From ee5d321b9b6e45fd29557b0b9b606bcb43aac82a Mon Sep 17 00:00:00 2001 From: zhangchen Date: Fri, 8 Dec 2023 01:45:45 +0000 Subject: [PATCH 1/4] fix bug of the memory out in large file Issue: https://gitee.com/openharmony/arkcompiler_ets_frontend/issues/I8MX8Y Signed-off-by: zhangchen Change-Id: Ifbfa88c22d677ebb57f0a547eed10b0af612f281 --- .../rename/RenameIdentifierTransformer.ts | 35 +- arkguard/test/grammar/big_files/bapis.js | 34 + arkguard/test/grammar/big_files/kntr-ark.js | 409920 +++++++++++++++ 3 files changed, 409977 insertions(+), 12 deletions(-) create mode 100644 arkguard/test/grammar/big_files/bapis.js create mode 100644 arkguard/test/grammar/big_files/kntr-ark.js diff --git a/arkguard/src/transformers/rename/RenameIdentifierTransformer.ts b/arkguard/src/transformers/rename/RenameIdentifierTransformer.ts index ab1542457f..f6b43289b4 100644 --- a/arkguard/src/transformers/rename/RenameIdentifierTransformer.ts +++ b/arkguard/src/transformers/rename/RenameIdentifierTransformer.ts @@ -125,15 +125,16 @@ namespace secharmony { manager.getReservedNames().forEach((name) => { reservedNames.push(name); }); - // collect all identifiers of shadow sourceFile - shadowIdentifiers = collectIdentifiers(shadowSourceAst, context); if (nameCache === undefined) { nameCache = new Map(); } - let root: Scope = manager.getRootScope(); + renameInScope(root); + + // collect all identifiers of shadow sourceFile + shadowIdentifiers = collectIdentifiers(shadowSourceAst, context); return setParentRecursive(visit(node), true); } @@ -148,25 +149,26 @@ namespace secharmony { // process symbols in scope, exclude property name. renameNamesInScope(scope); - for (const subScope of scope.children) { + let subScope = undefined; + for (let index = 0; index < scope.children.length; index++) { + subScope = scope.children[index]; renameInScope(subScope); + subScope = undefined; } } function renameNamesInScope(scope: Scope): void { - if (scope.parent) { - scope.parent.importNames.forEach((value) => { - scope.importNames.add(value); - }); - } - if (isExcludeScope(scope)) { return; } scope.defs.forEach((def) => { - if (scope.importNames.has(def.name)) { - scope.defs.delete(def); + let parentScope = scope; + while (parentScope) { + if (parentScope.importNames && parentScope.importNames.has(def.name)) { + scope.defs.delete(def); + } + parentScope = parentScope.parent; } }); @@ -255,6 +257,15 @@ namespace secharmony { if (mangledIdentifierNames.has(mangled)) { mangled = ''; } + + let parentScope = scope.parent; + while (parentScope) { + if (parentScope.mangledNames.has(mangled) || (parentScope.importNames && parentScope.importNames.has(mangled))) { + mangled = ''; + break; + } + parentScope = parentScope.parent; + } } while (mangled === ''); return mangled; diff --git a/arkguard/test/grammar/big_files/bapis.js b/arkguard/test/grammar/big_files/bapis.js new file mode 100644 index 0000000000..ac074a11dd --- /dev/null +++ b/arkguard/test/grammar/big_files/bapis.js @@ -0,0 +1,34 @@ +var Ue=Object.create;var En=Object.defineProperty;var Ve=Object.getOwnPropertyDescriptor;var _e=Object.getOwnPropertyNames;var Je=Object.getPrototypeOf,Fe=Object.prototype.hasOwnProperty;var A=(O,d)=>()=>(d||O((d={exports:{}}).exports,d),d.exports);var qe=(O,d,p,c)=>{if(d&&typeof d=="object"||typeof d=="function")for(let e of _e(d))!Fe.call(O,e)&&e!==p&&En(O,e,{get:()=>d[e],enumerable:!(c=Ve(d,e))||c.enumerable});return O};var ze=(O,d,p)=>(p=O!=null?Ue(Je(O)):{},qe(d||!O||!O.__esModule?En(p,"default",{value:O,enumerable:!0}):p,O));var Ji=A((er,xn)=>{"use strict";xn.exports=Ge;function Ge(O,d){for(var p=new Array(arguments.length-1),c=0,e=2,l=!0;e{"use strict";var Oi=Vn;Oi.length=function(d){var p=d.length;if(!p)return 0;for(var c=0;--p%4>1&&d.charAt(p)==="=";)++c;return Math.ceil(d.length*3)/4-c};var Xt=new Array(64),Un=new Array(123);for(Tt=0;Tt<64;)Un[Xt[Tt]=Tt<26?Tt+65:Tt<52?Tt+71:Tt<62?Tt-4:Tt-59|43]=Tt++;var Tt;Oi.encode=function(d,p,c){for(var e=null,l=[],t=0,i=0,n;p>2],n=(o&3)<<4,i=1;break;case 1:l[t++]=Xt[n|o>>4],n=(o&15)<<2,i=2;break;case 2:l[t++]=Xt[n|o>>6],l[t++]=Xt[o&63],i=0;break}t>8191&&((e||(e=[])).push(String.fromCharCode.apply(String,l)),t=0)}return i&&(l[t++]=Xt[n],l[t++]=61,i===1&&(l[t++]=61)),e?(t&&e.push(String.fromCharCode.apply(String,l.slice(0,t))),e.join("")):String.fromCharCode.apply(String,l.slice(0,t))};var Mn="invalid encoding";Oi.decode=function(d,p,c){for(var e=c,l=0,t,i=0;i1)break;if((n=Un[n])===void 0)throw Error(Mn);switch(l){case 0:t=n,l=1;break;case 1:p[c++]=t<<2|(n&48)>>4,t=n,l=2;break;case 2:p[c++]=(t&15)<<4|(n&60)>>2,t=n,l=3;break;case 3:p[c++]=(t&3)<<6|n,l=0;break}}if(l===1)throw Error(Mn);return c-e};Oi.test=function(d){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(d)}});var Fn=A((rr,Jn)=>{"use strict";Jn.exports=si;function si(){this._listeners={}}si.prototype.on=function(d,p,c){return(this._listeners[d]||(this._listeners[d]=[])).push({fn:p,ctx:c||this}),this};si.prototype.off=function(d,p){if(d===void 0)this._listeners={};else if(p===void 0)this._listeners[d]=[];else for(var c=this._listeners[d],e=0;e{"use strict";Wn.exports=qn(qn);function qn(O){return typeof Float32Array<"u"?function(){var d=new Float32Array([-0]),p=new Uint8Array(d.buffer),c=p[3]===128;function e(n,o,a){d[0]=n,o[a]=p[0],o[a+1]=p[1],o[a+2]=p[2],o[a+3]=p[3]}function l(n,o,a){d[0]=n,o[a]=p[3],o[a+1]=p[2],o[a+2]=p[1],o[a+3]=p[0]}O.writeFloatLE=c?e:l,O.writeFloatBE=c?l:e;function t(n,o){return p[0]=n[o],p[1]=n[o+1],p[2]=n[o+2],p[3]=n[o+3],d[0]}function i(n,o){return p[3]=n[o],p[2]=n[o+1],p[1]=n[o+2],p[0]=n[o+3],d[0]}O.readFloatLE=c?t:i,O.readFloatBE=c?i:t}():function(){function d(c,e,l,t){var i=e<0?1:0;if(i&&(e=-e),e===0)c(1/e>0?0:2147483648,l,t);else if(isNaN(e))c(2143289344,l,t);else if(e>34028234663852886e22)c((i<<31|2139095040)>>>0,l,t);else if(e<11754943508222875e-54)c((i<<31|Math.round(e/1401298464324817e-60))>>>0,l,t);else{var n=Math.floor(Math.log(e)/Math.LN2),o=Math.round(e*Math.pow(2,-n)*8388608)&8388607;c((i<<31|n+127<<23|o)>>>0,l,t)}}O.writeFloatLE=d.bind(null,zn),O.writeFloatBE=d.bind(null,Gn);function p(c,e,l){var t=c(e,l),i=(t>>31)*2+1,n=t>>>23&255,o=t&8388607;return n===255?o?NaN:i*(1/0):n===0?i*1401298464324817e-60*o:i*Math.pow(2,n-150)*(o+8388608)}O.readFloatLE=p.bind(null,Hn),O.readFloatBE=p.bind(null,$n)}(),typeof Float64Array<"u"?function(){var d=new Float64Array([-0]),p=new Uint8Array(d.buffer),c=p[7]===128;function e(n,o,a){d[0]=n,o[a]=p[0],o[a+1]=p[1],o[a+2]=p[2],o[a+3]=p[3],o[a+4]=p[4],o[a+5]=p[5],o[a+6]=p[6],o[a+7]=p[7]}function l(n,o,a){d[0]=n,o[a]=p[7],o[a+1]=p[6],o[a+2]=p[5],o[a+3]=p[4],o[a+4]=p[3],o[a+5]=p[2],o[a+6]=p[1],o[a+7]=p[0]}O.writeDoubleLE=c?e:l,O.writeDoubleBE=c?l:e;function t(n,o){return p[0]=n[o],p[1]=n[o+1],p[2]=n[o+2],p[3]=n[o+3],p[4]=n[o+4],p[5]=n[o+5],p[6]=n[o+6],p[7]=n[o+7],d[0]}function i(n,o){return p[7]=n[o],p[6]=n[o+1],p[5]=n[o+2],p[4]=n[o+3],p[3]=n[o+4],p[2]=n[o+5],p[1]=n[o+6],p[0]=n[o+7],d[0]}O.readDoubleLE=c?t:i,O.readDoubleBE=c?i:t}():function(){function d(c,e,l,t,i,n){var o=t<0?1:0;if(o&&(t=-t),t===0)c(0,i,n+e),c(1/t>0?0:2147483648,i,n+l);else if(isNaN(t))c(0,i,n+e),c(2146959360,i,n+l);else if(t>17976931348623157e292)c(0,i,n+e),c((o<<31|2146435072)>>>0,i,n+l);else{var a;if(t<22250738585072014e-324)a=t/5e-324,c(a>>>0,i,n+e),c((o<<31|a/4294967296)>>>0,i,n+l);else{var y=Math.floor(Math.log(t)/Math.LN2);y===1024&&(y=1023),a=t*Math.pow(2,-y),c(a*4503599627370496>>>0,i,n+e),c((o<<31|y+1023<<20|a*1048576&1048575)>>>0,i,n+l)}}}O.writeDoubleLE=d.bind(null,zn,0,4),O.writeDoubleBE=d.bind(null,Gn,4,0);function p(c,e,l,t,i){var n=c(t,i+e),o=c(t,i+l),a=(o>>31)*2+1,y=o>>>20&2047,s=4294967296*(o&1048575)+n;return y===2047?s?NaN:a*(1/0):y===0?a*5e-324*s:a*Math.pow(2,y-1075)*(s+4503599627370496)}O.readDoubleLE=p.bind(null,Hn,0,4),O.readDoubleBE=p.bind(null,$n,4,0)}(),O}function zn(O,d,p){d[p]=O&255,d[p+1]=O>>>8&255,d[p+2]=O>>>16&255,d[p+3]=O>>>24}function Gn(O,d,p){d[p]=O>>>24,d[p+1]=O>>>16&255,d[p+2]=O>>>8&255,d[p+3]=O&255}function Hn(O,d){return(O[d]|O[d+1]<<8|O[d+2]<<16|O[d+3]<<24)>>>0}function $n(O,d){return(O[d]<<24|O[d+1]<<16|O[d+2]<<8|O[d+3])>>>0}});var Fi=A((exports,module)=>{"use strict";module.exports=inquire;function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(O){}return null}});var Qn=A(Yn=>{"use strict";var qi=Yn;qi.length=function(d){for(var p=0,c=0,e=0;e191&&n<224?t[i++]=(n&31)<<6|d[p++]&63:n>239&&n<365?(n=((n&7)<<18|(d[p++]&63)<<12|(d[p++]&63)<<6|d[p++]&63)-65536,t[i++]=55296+(n>>10),t[i++]=56320+(n&1023)):t[i++]=(n&15)<<12|(d[p++]&63)<<6|d[p++]&63,i>8191&&((l||(l=[])).push(String.fromCharCode.apply(String,t)),i=0);return l?(i&&l.push(String.fromCharCode.apply(String,t.slice(0,i))),l.join("")):String.fromCharCode.apply(String,t.slice(0,i))};qi.write=function(d,p,c){for(var e=c,l,t,i=0;i>6|192,p[c++]=l&63|128):(l&64512)===55296&&((t=d.charCodeAt(i+1))&64512)===56320?(l=65536+((l&1023)<<10)+(t&1023),++i,p[c++]=l>>18|240,p[c++]=l>>12&63|128,p[c++]=l>>6&63|128,p[c++]=l&63|128):(p[c++]=l>>12|224,p[c++]=l>>6&63|128,p[c++]=l&63|128);return c-e}});var Xn=A((ar,Zn)=>{"use strict";Zn.exports=He;function He(O,d,p){var c=p||8192,e=c>>>1,l=null,t=c;return function(n){if(n<1||n>e)return O(n);t+n>c&&(l=O(c),t=0);var o=d.call(l,t,t+=n);return t&7&&(t=(t|7)+1),o}}});var tl=A((fr,jn)=>{"use strict";jn.exports=et;var ei=Ct();function et(O,d){this.lo=O>>>0,this.hi=d>>>0}var $t=et.zero=new et(0,0);$t.toNumber=function(){return 0};$t.zzEncode=$t.zzDecode=function(){return this};$t.length=function(){return 1};var $e=et.zeroHash="\0\0\0\0\0\0\0\0";et.fromNumber=function(d){if(d===0)return $t;var p=d<0;p&&(d=-d);var c=d>>>0,e=(d-c)/4294967296>>>0;return p&&(e=~e>>>0,c=~c>>>0,++c>4294967295&&(c=0,++e>4294967295&&(e=0))),new et(c,e)};et.from=function(d){if(typeof d=="number")return et.fromNumber(d);if(ei.isString(d))if(ei.Long)d=ei.Long.fromString(d);else return et.fromNumber(parseInt(d,10));return d.low||d.high?new et(d.low>>>0,d.high>>>0):$t};et.prototype.toNumber=function(d){if(!d&&this.hi>>>31){var p=~this.lo+1>>>0,c=~this.hi>>>0;return p||(c=c+1>>>0),-(p+c*4294967296)}return this.lo+this.hi*4294967296};et.prototype.toLong=function(d){return ei.Long?new ei.Long(this.lo|0,this.hi|0,!!d):{low:this.lo|0,high:this.hi|0,unsigned:!!d}};var Jt=String.prototype.charCodeAt;et.fromHash=function(d){return d===$e?$t:new et((Jt.call(d,0)|Jt.call(d,1)<<8|Jt.call(d,2)<<16|Jt.call(d,3)<<24)>>>0,(Jt.call(d,4)|Jt.call(d,5)<<8|Jt.call(d,6)<<16|Jt.call(d,7)<<24)>>>0)};et.prototype.toHash=function(){return String.fromCharCode(this.lo&255,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,this.hi&255,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)};et.prototype.zzEncode=function(){var d=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^d)>>>0,this.lo=(this.lo<<1^d)>>>0,this};et.prototype.zzDecode=function(){var d=-(this.lo&1);return this.lo=((this.lo>>>1|this.hi<<31)^d)>>>0,this.hi=(this.hi>>>1^d)>>>0,this};et.prototype.length=function(){var d=this.lo,p=(this.lo>>>28|this.hi<<4)>>>0,c=this.hi>>>24;return c===0?p===0?d<16384?d<128?1:2:d<2097152?3:4:p<16384?p<128?5:6:p<2097152?7:8:c<128?9:10}});var Ct=A(zi=>{"use strict";var N=zi;N.asPromise=Ji();N.base64=_n();N.EventEmitter=Fn();N.float=Kn();N.inquire=Fi();N.utf8=Qn();N.pool=Xn();N.LongBits=tl();N.isNode=!!(typeof global<"u"&&global&&global.process&&global.process.versions&&global.process.versions.node);N.global=N.isNode&&global||typeof window<"u"&&window||typeof self<"u"&&self||zi;N.emptyArray=Object.freeze?Object.freeze([]):[];N.emptyObject=Object.freeze?Object.freeze({}):{};N.isInteger=Number.isInteger||function(d){return typeof d=="number"&&isFinite(d)&&Math.floor(d)===d};N.isString=function(d){return typeof d=="string"||d instanceof String};N.isObject=function(d){return d&&typeof d=="object"};N.isset=N.isSet=function(d,p){var c=d[p];return c!=null&&d.hasOwnProperty(p)?typeof c!="object"||(Array.isArray(c)?c.length:Object.keys(c).length)>0:!1};N.Buffer=function(){try{var O=N.inquire("buffer").Buffer;return O.prototype.utf8Write?O:null}catch{return null}}();N._Buffer_from=null;N._Buffer_allocUnsafe=null;N.newBuffer=function(d){return typeof d=="number"?N.Buffer?N._Buffer_allocUnsafe(d):new N.Array(d):N.Buffer?N._Buffer_from(d):typeof Uint8Array>"u"?d:new Uint8Array(d)};N.Array=typeof Uint8Array<"u"?Uint8Array:Array;N.Long=N.global.dcodeIO&&N.global.dcodeIO.Long||N.global.Long||N.inquire("long");N.key2Re=/^true|false|0|1$/;N.key32Re=/^-?(?:0|[1-9][0-9]*)$/;N.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/;N.longToHash=function(d){return d?N.LongBits.from(d).toHash():N.LongBits.zeroHash};N.longFromHash=function(d,p){var c=N.LongBits.fromHash(d);return N.Long?N.Long.fromBits(c.lo,c.hi,p):c.toNumber(!!p)};function il(O,d,p){for(var c=Object.keys(d),e=0;e-1;--l)if(p[e[l]]===1&&this[e[l]]!==void 0&&this[e[l]]!==null)return e[l]}};N.oneOfSetter=function(d){return function(p){for(var c=0;c{"use strict";rl.exports=U;var vt=Ct(),Gi,vi=vt.LongBits,ll=vt.base64,el=vt.utf8;function oi(O,d,p){this.fn=O,this.len=d,this.next=void 0,this.val=p}function $i(){}function We(O){this.head=O.head,this.tail=O.tail,this.len=O.len,this.next=O.states}function U(){this.len=0,this.head=new oi($i,0,0),this.tail=this.head,this.states=null}var ol=function(){return vt.Buffer?function(){return(U.create=function(){return new Gi})()}:function(){return new U}};U.create=ol();U.alloc=function(d){return new vt.Array(d)};vt.Array!==Array&&(U.alloc=vt.pool(U.alloc,vt.Array.prototype.subarray));U.prototype._push=function(d,p,c){return this.tail=this.tail.next=new oi(d,p,c),this.len+=p,this};function Wi(O,d,p){d[p]=O&255}function Ke(O,d,p){for(;O>127;)d[p++]=O&127|128,O>>>=7;d[p]=O}function Ki(O,d){this.len=O,this.next=void 0,this.val=d}Ki.prototype=Object.create(oi.prototype);Ki.prototype.fn=Ke;U.prototype.uint32=function(d){return this.len+=(this.tail=this.tail.next=new Ki((d=d>>>0)<128?1:d<16384?2:d<2097152?3:d<268435456?4:5,d)).len,this};U.prototype.int32=function(d){return d<0?this._push(Yi,10,vi.fromNumber(d)):this.uint32(d)};U.prototype.sint32=function(d){return this.uint32((d<<1^d>>31)>>>0)};function Yi(O,d,p){for(;O.hi;)d[p++]=O.lo&127|128,O.lo=(O.lo>>>7|O.hi<<25)>>>0,O.hi>>>=7;for(;O.lo>127;)d[p++]=O.lo&127|128,O.lo=O.lo>>>7;d[p++]=O.lo}U.prototype.uint64=function(d){var p=vi.from(d);return this._push(Yi,p.length(),p)};U.prototype.int64=U.prototype.uint64;U.prototype.sint64=function(d){var p=vi.from(d).zzEncode();return this._push(Yi,p.length(),p)};U.prototype.bool=function(d){return this._push(Wi,1,d?1:0)};function Hi(O,d,p){d[p]=O&255,d[p+1]=O>>>8&255,d[p+2]=O>>>16&255,d[p+3]=O>>>24}U.prototype.fixed32=function(d){return this._push(Hi,4,d>>>0)};U.prototype.sfixed32=U.prototype.fixed32;U.prototype.fixed64=function(d){var p=vi.from(d);return this._push(Hi,4,p.lo)._push(Hi,4,p.hi)};U.prototype.sfixed64=U.prototype.fixed64;U.prototype.float=function(d){return this._push(vt.float.writeFloatLE,4,d)};U.prototype.double=function(d){return this._push(vt.float.writeDoubleLE,8,d)};var Ye=vt.Array.prototype.set?function(d,p,c){p.set(d,c)}:function(d,p,c){for(var e=0;e>>0;if(!p)return this._push(Wi,1,0);if(vt.isString(d)){var c=U.alloc(p=ll.length(d));ll.decode(d,c,0),d=c}return this.uint32(p)._push(Ye,p,d)};U.prototype.string=function(d){var p=el.length(d);return p?this.uint32(p)._push(el.write,p,d):this._push(Wi,1,0)};U.prototype.fork=function(){return this.states=new We(this),this.head=this.tail=new oi($i,0,0),this.len=0,this};U.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new oi($i,0,0),this.len=0),this};U.prototype.ldelim=function(){var d=this.head,p=this.tail,c=this.len;return this.reset().uint32(c),c&&(this.tail.next=d.next,this.tail=p,this.len+=c),this};U.prototype.finish=function(){for(var d=this.head.next,p=this.constructor.alloc(this.len),c=0;d;)d.fn(d.val,p,c),c+=d.len,d=d.next;return p};U._configure=function(O){Gi=O,U.create=ol(),Gi._configure()}});var al=A((yr,cl)=>{"use strict";cl.exports=Rt;var ul=gi();(Rt.prototype=Object.create(ul.prototype)).constructor=Rt;var Ft=Ct();function Rt(){ul.call(this)}Rt._configure=function(){Rt.alloc=Ft._Buffer_allocUnsafe,Rt.writeBytesBuffer=Ft.Buffer&&Ft.Buffer.prototype instanceof Uint8Array&&Ft.Buffer.prototype.set.name==="set"?function(d,p,c){p.set(d,c)}:function(d,p,c){if(d.copy)d.copy(p,c,0,d.length);else for(var e=0;e>>0;return this.uint32(p),p&&this._push(Rt.writeBytesBuffer,p,d),this};function Qe(O,d,p){O.length<40?Ft.utf8.write(O,d,p):d.utf8Write?d.utf8Write(O,p):d.write(O,p)}Rt.prototype.string=function(d){var p=Ft.Buffer.byteLength(d);return this.uint32(p),p&&this._push(Qe,p,d),this};Rt._configure()});var Si=A((br,bl)=>{"use strict";bl.exports=X;var mt=Ct(),Zi,dl=mt.LongBits,Ze=mt.utf8;function It(O,d){return RangeError("index out of range: "+O.pos+" + "+(d||1)+" > "+O.len)}function X(O){this.buf=O,this.pos=0,this.len=O.length}var fl=typeof Uint8Array<"u"?function(d){if(d instanceof Uint8Array||Array.isArray(d))return new X(d);throw Error("illegal buffer")}:function(d){if(Array.isArray(d))return new X(d);throw Error("illegal buffer")},yl=function(){return mt.Buffer?function(p){return(X.create=function(e){return mt.Buffer.isBuffer(e)?new Zi(e):fl(e)})(p)}:fl};X.create=yl();X.prototype._slice=mt.Array.prototype.subarray||mt.Array.prototype.slice;X.prototype.uint32=function(){var d=4294967295;return function(){if(d=(this.buf[this.pos]&127)>>>0,this.buf[this.pos++]<128||(d=(d|(this.buf[this.pos]&127)<<7)>>>0,this.buf[this.pos++]<128)||(d=(d|(this.buf[this.pos]&127)<<14)>>>0,this.buf[this.pos++]<128)||(d=(d|(this.buf[this.pos]&127)<<21)>>>0,this.buf[this.pos++]<128)||(d=(d|(this.buf[this.pos]&15)<<28)>>>0,this.buf[this.pos++]<128))return d;if((this.pos+=5)>this.len)throw this.pos=this.len,It(this,10);return d}}();X.prototype.int32=function(){return this.uint32()|0};X.prototype.sint32=function(){var d=this.uint32();return d>>>1^-(d&1)|0};function Qi(){var O=new dl(0,0),d=0;if(this.len-this.pos>4){for(;d<4;++d)if(O.lo=(O.lo|(this.buf[this.pos]&127)<>>0,this.buf[this.pos++]<128)return O;if(O.lo=(O.lo|(this.buf[this.pos]&127)<<28)>>>0,O.hi=(O.hi|(this.buf[this.pos]&127)>>4)>>>0,this.buf[this.pos++]<128)return O;d=0}else{for(;d<3;++d){if(this.pos>=this.len)throw It(this);if(O.lo=(O.lo|(this.buf[this.pos]&127)<>>0,this.buf[this.pos++]<128)return O}return O.lo=(O.lo|(this.buf[this.pos++]&127)<>>0,O}if(this.len-this.pos>4){for(;d<5;++d)if(O.hi=(O.hi|(this.buf[this.pos]&127)<>>0,this.buf[this.pos++]<128)return O}else for(;d<5;++d){if(this.pos>=this.len)throw It(this);if(O.hi=(O.hi|(this.buf[this.pos]&127)<>>0,this.buf[this.pos++]<128)return O}throw Error("invalid varint encoding")}X.prototype.bool=function(){return this.uint32()!==0};function wi(O,d){return(O[d-4]|O[d-3]<<8|O[d-2]<<16|O[d-1]<<24)>>>0}X.prototype.fixed32=function(){if(this.pos+4>this.len)throw It(this,4);return wi(this.buf,this.pos+=4)};X.prototype.sfixed32=function(){if(this.pos+4>this.len)throw It(this,4);return wi(this.buf,this.pos+=4)|0};function pl(){if(this.pos+8>this.len)throw It(this,8);return new dl(wi(this.buf,this.pos+=4),wi(this.buf,this.pos+=4))}X.prototype.float=function(){if(this.pos+4>this.len)throw It(this,4);var d=mt.float.readFloatLE(this.buf,this.pos);return this.pos+=4,d};X.prototype.double=function(){if(this.pos+8>this.len)throw It(this,4);var d=mt.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,d};X.prototype.bytes=function(){var d=this.uint32(),p=this.pos,c=this.pos+d;if(c>this.len)throw It(this,d);if(this.pos+=d,Array.isArray(this.buf))return this.buf.slice(p,c);if(p===c){var e=mt.Buffer;return e?e.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,p,c)};X.prototype.string=function(){var d=this.bytes();return Ze.read(d,0,d.length)};X.prototype.skip=function(d){if(typeof d=="number"){if(this.pos+d>this.len)throw It(this,d);this.pos+=d}else do if(this.pos>=this.len)throw It(this);while(this.buf[this.pos++]&128);return this};X.prototype.skipType=function(O){switch(O){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;(O=this.uint32()&7)!==4;)this.skipType(O);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+O+" at offset "+this.pos)}return this};X._configure=function(O){Zi=O,X.create=yl(),Zi._configure();var d=mt.Long?"toLong":"toNumber";mt.merge(X.prototype,{int64:function(){return Qi.call(this)[d](!1)},uint64:function(){return Qi.call(this)[d](!0)},sint64:function(){return Qi.call(this).zzDecode()[d](!1)},fixed64:function(){return pl.call(this)[d](!0)},sfixed64:function(){return pl.call(this)[d](!1)}})}});var vl=A((hr,sl)=>{"use strict";sl.exports=Wt;var Ol=Si();(Wt.prototype=Object.create(Ol.prototype)).constructor=Wt;var hl=Ct();function Wt(O){Ol.call(this,O)}Wt._configure=function(){hl.Buffer&&(Wt.prototype._slice=hl.Buffer.prototype.slice)};Wt.prototype.string=function(){var d=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+d,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+d,this.len))};Wt._configure()});var wl=A((Or,gl)=>{"use strict";gl.exports=ri;var Xi=Ct();(ri.prototype=Object.create(Xi.EventEmitter.prototype)).constructor=ri;function ri(O,d,p){if(typeof O!="function")throw TypeError("rpcImpl must be a function");Xi.EventEmitter.call(this),this.rpcImpl=O,this.requestDelimited=!!d,this.responseDelimited=!!p}ri.prototype.rpcCall=function O(d,p,c,e,l){if(!e)throw TypeError("request must be specified");var t=this;if(!l)return Xi.asPromise(O,t,d,p,c,e);if(!t.rpcImpl){setTimeout(function(){l(Error("already ended"))},0);return}try{return t.rpcImpl(d,p[t.requestDelimited?"encodeDelimited":"encode"](e).finish(),function(n,o){if(n)return t.emit("error",n,d),l(n);if(o===null){t.end(!0);return}if(!(o instanceof c))try{o=c[t.responseDelimited?"decodeDelimited":"decode"](o)}catch(a){return t.emit("error",a,d),l(a)}return t.emit("data",o,d),l(null,o)})}catch(i){t.emit("error",i,d),setTimeout(function(){l(i)},0);return}};ri.prototype.end=function(d){return this.rpcImpl&&(d||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}});var ji=A(Sl=>{"use strict";var Xe=Sl;Xe.Service=wl()});var tn=A((vr,kl)=>{"use strict";kl.exports={}});var Il=A(ml=>{"use strict";var bt=ml;bt.build="minimal";bt.Writer=gi();bt.BufferWriter=al();bt.Reader=Si();bt.BufferReader=vl();bt.util=Ct();bt.rpc=ji();bt.roots=tn();bt.configure=Tl;function Tl(){bt.util._configure(),bt.Writer._configure(bt.BufferWriter),bt.Reader._configure(bt.BufferReader)}Tl()});var Ll=A((wr,Pl)=>{"use strict";Pl.exports=nn;function nn(O,d){typeof O=="string"&&(d=O,O=void 0);var p=[];function c(l){if(typeof l!="string"){var t=e();if(nn.verbose&&console.log("codegen: "+t),t="return "+t,l){for(var i=Object.keys(l),n=new Array(i.length+1),o=new Array(i.length),a=0;a{"use strict";Nl.exports=ui;var je=Ji(),to=Fi(),ln=to("fs");function ui(O,d,p){return typeof d=="function"?(p=d,d={}):d||(d={}),p?!d.xhr&&ln&&ln.readFile?ln.readFile(O,function(e,l){return e&&typeof XMLHttpRequest<"u"?ui.xhr(O,d,p):e?p(e):p(null,d.binary?l:l.toString("utf8"))}):ui.xhr(O,d,p):je(ui,this,O,d)}ui.xhr=function(d,p,c){var e=new XMLHttpRequest;e.onreadystatechange=function(){if(e.readyState===4){if(e.status!==0&&e.status!==200)return c(Error("status "+e.status));if(p.binary){var t=e.response;if(!t){t=[];for(var i=0;i{"use strict";var on=Bl,Rl=on.isAbsolute=function(d){return/^(?:\/|\w+:)/.test(d)},en=on.normalize=function(d){d=d.replace(/\\/g,"/").replace(/\/{2,}/g,"/");var p=d.split("/"),c=Rl(d),e="";c&&(e=p.shift()+"/");for(var l=0;l0&&p[l-1]!==".."?p.splice(--l,2):c?p.splice(l,1):++l:p[l]==="."?p.splice(l,1):++l;return e+p.join("/")};on.resolve=function(d,p,c){return c||(p=en(p)),Rl(p)?p:(c||(d=en(d)),(d=d.replace(/(?:\/|^)[^/]+$/,"")).length?en(d+"/"+p):p)}});var Kt=A(Al=>{"use strict";var ci=Al,io=ot(),no=["double","float","int32","uint32","sint32","fixed32","sfixed32","int64","uint64","sint64","fixed64","sfixed64","bool","string","bytes"];function ai(O,d){var p=0,c={};for(d|=0;p{"use strict";Ml.exports=gt;var ki=Yt();((gt.prototype=Object.create(ki.prototype)).constructor=gt).className="Field";var El=Pt(),xl=Kt(),nt=ot(),rn,lo=/^required|optional|repeated$/;gt.fromJSON=function(d,p){return new gt(d,p.id,p.type,p.rule,p.extend,p.options,p.comment)};function gt(O,d,p,c,e,l,t){if(nt.isObject(c)?(t=e,l=c,c=e=void 0):nt.isObject(e)&&(t=l,l=e,e=void 0),ki.call(this,O,l),!nt.isInteger(d)||d<0)throw TypeError("id must be a non-negative integer");if(!nt.isString(p))throw TypeError("type must be a string");if(c!==void 0&&!lo.test(c=c.toString().toLowerCase()))throw TypeError("rule must be a string rule");if(e!==void 0&&!nt.isString(e))throw TypeError("extend must be a string");c==="proto3_optional"&&(c="optional"),this.rule=c&&c!=="optional"?c:void 0,this.type=p,this.id=d,this.extend=e||void 0,this.required=c==="required",this.optional=!this.required,this.repeated=c==="repeated",this.map=!1,this.message=null,this.partOf=null,this.typeDefault=null,this.defaultValue=null,this.long=nt.Long?xl.long[p]!==void 0:!1,this.bytes=p==="bytes",this.resolvedType=null,this.extensionField=null,this.declaringField=null,this._packed=null,this.comment=t}Object.defineProperty(gt.prototype,"packed",{get:function(){return this._packed===null&&(this._packed=this.getOption("packed")!==!1),this._packed}});gt.prototype.setOption=function(d,p,c){return d==="packed"&&(this._packed=null),ki.prototype.setOption.call(this,d,p,c)};gt.prototype.toJSON=function(d){var p=d?!!d.keepComments:!1;return nt.toObject(["rule",this.rule!=="optional"&&this.rule||void 0,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",p?this.comment:void 0])};gt.prototype.resolve=function(){if(this.resolved)return this;if((this.typeDefault=xl.defaults[this.type])===void 0?(this.resolvedType=(this.declaringField?this.declaringField.parent:this.parent).lookupTypeOrEnum(this.type),this.resolvedType instanceof rn?this.typeDefault=null:this.typeDefault=this.resolvedType.values[Object.keys(this.resolvedType.values)[0]]):this.options&&this.options.proto3_optional&&(this.typeDefault=null),this.options&&this.options.default!=null&&(this.typeDefault=this.options.default,this.resolvedType instanceof El&&typeof this.typeDefault=="string"&&(this.typeDefault=this.resolvedType.values[this.typeDefault])),this.options&&((this.options.packed===!0||this.options.packed!==void 0&&this.resolvedType&&!(this.resolvedType instanceof El))&&delete this.options.packed,Object.keys(this.options).length||(this.options=void 0)),this.long)this.typeDefault=nt.Long.fromNumber(this.typeDefault,this.type.charAt(0)==="u"),Object.freeze&&Object.freeze(this.typeDefault);else if(this.bytes&&typeof this.typeDefault=="string"){var d;nt.base64.test(this.typeDefault)?nt.base64.decode(this.typeDefault,d=nt.newBuffer(nt.base64.length(this.typeDefault)),0):nt.utf8.write(this.typeDefault,d=nt.newBuffer(nt.utf8.length(this.typeDefault)),0),this.typeDefault=d}return this.map?this.defaultValue=nt.emptyObject:this.repeated?this.defaultValue=nt.emptyArray:this.defaultValue=this.typeDefault,this.parent instanceof rn&&(this.parent.ctor.prototype[this.name]=this.defaultValue),ki.prototype.resolve.call(this)};gt.d=function(d,p,c,e){return typeof p=="function"?p=nt.decorateType(p).name:p&&typeof p=="object"&&(p=nt.decorateEnum(p).name),function(t,i){nt.decorateType(t.constructor).add(new gt(i,d,p,c,{default:e}))}};gt._configure=function(d){rn=d}});var jt=A((Ir,_l)=>{"use strict";_l.exports=wt;var mi=Yt();((wt.prototype=Object.create(mi.prototype)).constructor=wt).className="OneOf";var Ul=qt(),Ti=ot();function wt(O,d,p,c){if(Array.isArray(d)||(p=d,d=void 0),mi.call(this,O,p),!(d===void 0||Array.isArray(d)))throw TypeError("fieldNames must be an Array");this.oneof=d||[],this.fieldsArray=[],this.comment=c}wt.fromJSON=function(d,p){return new wt(d,p.oneof,p.options,p.comment)};wt.prototype.toJSON=function(d){var p=d?!!d.keepComments:!1;return Ti.toObject(["options",this.options,"oneof",this.oneof,"comment",p?this.comment:void 0])};function Vl(O){if(O.parent)for(var d=0;d-1&&this.oneof.splice(p,1),d.partOf=null,this};wt.prototype.onAdd=function(d){mi.prototype.onAdd.call(this,d);for(var p=this,c=0;c{"use strict";zl.exports=_;var un=Yt();((_.prototype=Object.create(un.prototype)).constructor=_).className="Namespace";var Jl=qt(),Ii=ot(),eo=jt(),ti,fi,ii;_.fromJSON=function(d,p){return new _(d,p.options).addJSON(p.nested)};function Fl(O,d){if(O&&O.length){for(var p={},c=0;cp)return!0}return!1};_.isReservedName=function(d,p){if(d){for(var c=0;c0;){var e=d.shift();if(c.nested&&c.nested[e]){if(c=c.nested[e],!(c instanceof _))throw Error("path conflicts with non-namespace objects")}else c.add(c=new _(e))}return p&&c.addJSON(p),c};_.prototype.resolveAll=function(){for(var d=this.nestedArray,p=0;p-1)return e}else if(e instanceof _&&(e=e.lookup(d.slice(1),p,!0)))return e}else for(var l=0;l{"use strict";Gl.exports=Mt;var cn=qt();((Mt.prototype=Object.create(cn.prototype)).constructor=Mt).className="MapField";var oo=Kt(),pi=ot();function Mt(O,d,p,c,e,l){if(cn.call(this,O,d,c,void 0,void 0,e,l),!pi.isString(p))throw TypeError("keyType must be a string");this.keyType=p,this.resolvedKeyType=null,this.map=!0}Mt.fromJSON=function(d,p){return new Mt(d,p.id,p.keyType,p.type,p.options,p.comment)};Mt.prototype.toJSON=function(d){var p=d?!!d.keepComments:!1;return pi.toObject(["keyType",this.keyType,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",p?this.comment:void 0])};Mt.prototype.resolve=function(){if(this.resolved)return this;if(oo.mapKey[this.keyType]===void 0)throw Error("invalid key type: "+this.keyType);return cn.prototype.resolve.call(this)};Mt.d=function(d,p,c){return typeof c=="function"?c=pi.decorateType(c).name:c&&typeof c=="object"&&(c=pi.decorateEnum(c).name),function(l,t){pi.decorateType(l.constructor).add(new Mt(t,d,p,c))}}});var Li=A((Nr,Hl)=>{"use strict";Hl.exports=Qt;var an=Yt();((Qt.prototype=Object.create(an.prototype)).constructor=Qt).className="Method";var li=ot();function Qt(O,d,p,c,e,l,t,i,n){if(li.isObject(e)?(t=e,e=l=void 0):li.isObject(l)&&(t=l,l=void 0),!(d===void 0||li.isString(d)))throw TypeError("type must be a string");if(!li.isString(p))throw TypeError("requestType must be a string");if(!li.isString(c))throw TypeError("responseType must be a string");an.call(this,O,t),this.type=d||"rpc",this.requestType=p,this.requestStream=e?!0:void 0,this.responseType=c,this.responseStream=l?!0:void 0,this.resolvedRequestType=null,this.resolvedResponseType=null,this.comment=i,this.parsedOptions=n}Qt.fromJSON=function(d,p){return new Qt(d,p.type,p.requestType,p.responseType,p.requestStream,p.responseStream,p.options,p.comment,p.parsedOptions)};Qt.prototype.toJSON=function(d){var p=d?!!d.keepComments:!1;return li.toObject(["type",this.type!=="rpc"&&this.type||void 0,"requestType",this.requestType,"requestStream",this.requestStream,"responseType",this.responseType,"responseStream",this.responseStream,"options",this.options,"comment",p?this.comment:void 0,"parsedOptions",this.parsedOptions])};Qt.prototype.resolve=function(){return this.resolved?this:(this.resolvedRequestType=this.parent.lookupType(this.requestType),this.resolvedResponseType=this.parent.lookupType(this.responseType),an.prototype.resolve.call(this))}});var Ni=A((Cr,Wl)=>{"use strict";Wl.exports=St;var zt=ni();((St.prototype=Object.create(zt.prototype)).constructor=St).className="Service";var fn=Li(),di=ot(),ro=ji();function St(O,d){zt.call(this,O,d),this.methods={},this._methodsArray=null}St.fromJSON=function(d,p){var c=new St(d,p.options);if(p.methods)for(var e=Object.keys(p.methods),l=0;l{"use strict";Kl.exports=Bt;var uo=Ct();function Bt(O){if(O)for(var d=Object.keys(O),p=0;p{"use strict";Ql.exports=fo;var co=Pt(),Ut=Kt(),Yl=ot();function ao(O){return"missing required '"+O.name+"'"}function fo(O){var d=Yl.codegen(["r","l"],O.name+"$decode")("if(!(r instanceof Reader))")("r=Reader.create(r)")("var c=l===undefined?r.len:r.pos+l,m=new this.ctor"+(O.fieldsArray.filter(function(i){return i.map}).length?",k,value":""))("while(r.pos>>3){");for(var p=0;p>>3){")("case 1: k=r.%s(); break",c.keyType)("case 2:"),Ut.basic[e]===void 0?d("value=types[%i].decode(r,r.uint32())",p):d("value=r.%s()",e),d("break")("default:")("r.skipType(tag2&7)")("break")("}")("}"),Ut.long[c.keyType]!==void 0?d('%s[typeof k==="object"?util.longToHash(k):k]=value',l):d("%s[k]=value",l)):c.repeated?(d("if(!(%s&&%s.length))",l,l)("%s=[]",l),Ut.packed[e]!==void 0&&d("if((t&7)===2){")("var c2=r.uint32()+r.pos")("while(r.pos{"use strict";Zl.exports=bo;var po=Pt(),dn=ot();function kt(O,d){return O.name+": "+d+(O.repeated&&d!=="array"?"[]":O.map&&d!=="object"?"{k:"+O.keyType+"}":"")+" expected"}function yn(O,d,p,c){if(d.resolvedType)if(d.resolvedType instanceof po){O("switch(%s){",c)("default:")("return%j",kt(d,"enum value"));for(var e=Object.keys(d.resolvedType.values),l=0;l{"use strict";var Xl=jl,yi=Pt(),Dt=ot();function hn(O,d,p,c){var e=!1;if(d.resolvedType)if(d.resolvedType instanceof yi){O("switch(d%s){",c);for(var l=d.resolvedType.values,t=Object.keys(l),i=0;i>>0",c,c);break;case"int32":case"sint32":case"sfixed32":O("m%s=d%s|0",c,c);break;case"uint64":n=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":O("if(util.Long)")("(m%s=util.Long.fromValue(d%s)).unsigned=%j",c,c,n)('else if(typeof d%s==="string")',c)("m%s=parseInt(d%s,10)",c,c)('else if(typeof d%s==="number")',c)("m%s=d%s",c,c)('else if(typeof d%s==="object")',c)("m%s=new util.LongBits(d%s.low>>>0,d%s.high>>>0).toNumber(%s)",c,c,c,n?"true":"");break;case"bytes":O('if(typeof d%s==="string")',c)("util.base64.decode(d%s,m%s=util.newBuffer(util.base64.length(d%s)),0)",c,c,c)("else if(d%s.length >= 0)",c)("m%s=d%s",c,c);break;case"string":O("m%s=String(d%s)",c,c);break;case"bool":O("m%s=Boolean(d%s)",c,c);break}}return O}Xl.fromObject=function(d){var p=d.fieldsArray,c=Dt.codegen(["d"],d.name+"$fromObject")("if(d instanceof this.ctor)")("return d");if(!p.length)return c("return new this.ctor");c("var m=new this.ctor");for(var e=0;e>>0,m%s.high>>>0).toNumber(%s):m%s",c,c,c,c,e?"true":"",c);break;case"bytes":O("d%s=o.bytes===String?util.base64.encode(m%s,0,m%s.length):o.bytes===Array?Array.prototype.slice.call(m%s):m%s",c,c,c,c,c);break;default:O("d%s=m%s",c,c);break}}return O}Xl.toObject=function(d){var p=d.fieldsArray.slice().sort(Dt.compareFieldsById);if(!p.length)return Dt.codegen()("return {}");for(var c=Dt.codegen(["m","o"],d.name+"$toObject")("if(!o)")("o={}")("var d={}"),e=[],l=[],t=[],i=0;i{"use strict";var ho=te,Oo=Ci();ho[".google.protobuf.Any"]={fromObject:function(O){if(O&&O["@type"]){var d=O["@type"].substring(O["@type"].lastIndexOf("/")+1),p=this.lookup(d);if(p){var c=O["@type"].charAt(0)==="."?O["@type"].slice(1):O["@type"];return c.indexOf("/")===-1&&(c="/"+c),this.create({type_url:c,value:p.encode(p.fromObject(O)).finish()})}}return this.fromObject(O)},toObject:function(O,d){var p="type.googleapis.com/",c="",e="";if(d&&d.json&&O.type_url&&O.value){e=O.type_url.substring(O.type_url.lastIndexOf("/")+1),c=O.type_url.substring(0,O.type_url.lastIndexOf("/")+1);var l=this.lookup(e);l&&(O=l.decode(O.value))}if(!(O instanceof this.ctor)&&O instanceof Oo){var t=O.$type.toObject(O,d),i=O.$type.fullName[0]==="."?O.$type.fullName.slice(1):O.$type.fullName;return c===""&&(c=p),e=c+i,t["@type"]=e,t}return this.toObject(O,d)}}});var Di=A((xr,ne)=>{"use strict";ne.exports=H;var Lt=ni();((H.prototype=Object.create(Lt.prototype)).constructor=H).className="Type";var so=Pt(),Sn=jt(),Ri=qt(),vo=Pi(),go=Ni(),gn=Ci(),wn=Si(),wo=gi(),pt=ot(),So=kn(),ko=pn(),To=bn(),ie=sn(),mo=vn();function H(O,d){Lt.call(this,O,d),this.fields={},this.oneofs=void 0,this.extensions=void 0,this.reserved=void 0,this.group=void 0,this._fieldsById=null,this._fieldsArray=null,this._oneofsArray=null,this._ctor=null}Object.defineProperties(H.prototype,{fieldsById:{get:function(){if(this._fieldsById)return this._fieldsById;this._fieldsById={};for(var O=Object.keys(this.fields),d=0;d{"use strict";ue.exports=Ot;var Ei=ni();((Ot.prototype=Object.create(Ei.prototype)).constructor=Ot).className="Root";var mn=qt(),ee=Pt(),Io=jt(),Gt=ot(),oe,Tn,bi;function Ot(O){Ei.call(this,"",O),this.deferred=[],this.files=[]}Ot.fromJSON=function(d,p){return p||(p=new Ot),d.options&&p.setOptions(d.options),p.addJSON(d.nested)};Ot.prototype.resolvePath=Gt.path.resolve;Ot.prototype.fetch=Gt.fetch;function re(){}Ot.prototype.load=function O(d,p,c){typeof p=="function"&&(c=p,p=void 0);var e=this;if(!c)return Gt.asPromise(O,e,d,p);var l=c===re;function t(v,g){if(c){var S=c;if(c=null,l)throw v;S(v,g)}}function i(v){var g=v.lastIndexOf("google/protobuf/");if(g>-1){var S=v.substring(g);if(S in bi)return S}return null}function n(v,g){try{if(Gt.isString(g)&&g.charAt(0)==="{"&&(g=JSON.parse(g)),!Gt.isString(g))e.setOptions(g.options).addJSON(g.nested);else{Tn.filename=v;var S=Tn(g,e,p),F,K=0;if(S.imports)for(;K-1)){if(e.files.push(v),v in bi){l?n(v,bi[v]):(++a,setTimeout(function(){--a,n(v,bi[v])}));return}if(l){var S;try{S=Gt.fs.readFileSync(v).toString("utf8")}catch(F){g||t(F);return}n(v,S)}else++a,e.fetch(v,function(F,K){if(--a,!!c){if(F){g?a||t(null,e):t(F);return}n(v,K)}})}}var a=0;Gt.isString(d)&&(d=[d]);for(var y=0,s;y-1&&this.deferred.splice(p,1)}}else if(d instanceof ee)Ai.test(d.name)&&delete d.parent[d.name];else if(d instanceof Ei){for(var c=0;c{"use strict";var j=ae.exports=Ct(),ce=tn(),In,Pn;j.codegen=Ll();j.fetch=Cl();j.path=Dl();j.fs=j.inquire("fs");j.toArray=function(d){if(d){for(var p=Object.keys(d),c=new Array(p.length),e=0;e0)l[n]=e(l[n]||{},t,i);else{var o=l[n];o&&(i=[].concat(o).concat(i)),l[n]=i}return l}if(typeof d!="object")throw TypeError("dst must be an object");if(!p)throw TypeError("path must be specified");return p=p.split("."),e(d,p,c)};Object.defineProperty(j,"decorateRoot",{get:function(){return ce.decorated||(ce.decorated=new(xi()))}})});var Yt=A((Vr,fe)=>{"use strict";fe.exports=st;st.className="ReflectionObject";var Mi=ot(),Ui;function st(O,d){if(!Mi.isString(O))throw TypeError("name must be a string");if(d&&!Mi.isObject(d))throw TypeError("options must be an object");this.options=d,this.parsedOptions=null,this.name=O,this.parent=null,this.resolved=!1,this.comment=null,this.filename=null}Object.defineProperties(st.prototype,{root:{get:function(){for(var O=this;O.parent!==null;)O=O.parent;return O}},fullName:{get:function(){for(var O=[this.name],d=this.parent;d;)O.unshift(d.name),d=d.parent;return O.join(".")}}});st.prototype.toJSON=function(){throw Error()};st.prototype.onAdd=function(d){this.parent&&this.parent!==d&&this.parent.remove(this),this.parent=d,this.resolved=!1;var p=d.root;p instanceof Ui&&p._handleAdd(this)};st.prototype.onRemove=function(d){var p=d.root;p instanceof Ui&&p._handleRemove(this),this.parent=null,this.resolved=!1};st.prototype.resolve=function(){return this.resolved?this:(this.root instanceof Ui&&(this.resolved=!0),this)};st.prototype.getOption=function(d){if(this.options)return this.options[d]};st.prototype.setOption=function(d,p,c){return(!c||!this.options||this.options[d]===void 0)&&((this.options||(this.options={}))[d]=p),this};st.prototype.setParsedOption=function(d,p,c){this.parsedOptions||(this.parsedOptions=[]);var e=this.parsedOptions;if(c){var l=e.find(function(n){return Object.prototype.hasOwnProperty.call(n,d)});if(l){var t=l[d];Mi.setProperty(t,c,p)}else l={},l[d]=Mi.setProperty({},c,p),e.push(l)}else{var i={};i[d]=p,e.push(i)}return this};st.prototype.setOptions=function(d,p){if(d)for(var c=Object.keys(d),e=0;e{"use strict";ye.exports=At;var pe=Yt();((At.prototype=Object.create(pe.prototype)).constructor=At).className="Enum";var de=ni(),Vi=ot();function At(O,d,p,c,e,l){if(pe.call(this,O,p),d&&typeof d!="object")throw TypeError("values must be an object");if(this.valuesById={},this.values=Object.create(this.valuesById),this.comment=c,this.comments=e||{},this.valuesOptions=l,this.reserved=void 0,d)for(var t=Object.keys(d),i=0;i{"use strict";he.exports=Bo;var Ro=Pt(),Ln=Kt(),Nn=ot();function be(O,d,p,c){return d.resolvedType.group?O("types[%i].encode(%s,w.uint32(%i)).uint32(%i)",p,c,(d.id<<3|3)>>>0,(d.id<<3|4)>>>0):O("types[%i].encode(%s,w.uint32(%i).fork()).ldelim()",p,c,(d.id<<3|2)>>>0)}function Bo(O){for(var d=Nn.codegen(["m","w"],O.name+"$encode")("if(!w)")("w=Writer.create()"),p,c,e=O.fieldsArray.slice().sort(Nn.compareFieldsById),p=0;p>>0,8|Ln.mapKey[l.keyType],l.keyType),n===void 0?d("types[%i].encode(%s[ks[i]],w.uint32(18).fork()).ldelim().ldelim()",t,c):d(".uint32(%i).%s(%s[ks[i]]).ldelim()",16|n,i,c),d("}")("}")):l.repeated?(d("if(%s!=null&&%s.length){",c,c),l.packed&&Ln.packed[i]!==void 0?d("w.uint32(%i).fork()",(l.id<<3|2)>>>0)("for(var i=0;i<%s.length;++i)",c)("w.%s(%s[i])",i,c)("w.ldelim()"):(d("for(var i=0;i<%s.length;++i)",c),n===void 0?be(d,l,t,c+"[i]"):d("w.uint32(%i).%s(%s[i])",(l.id<<3|n)>>>0,i,c)),d("}")):(l.optional&&d("if(%s!=null&&Object.hasOwnProperty.call(m,%j))",c,l.name),n===void 0?be(d,l,t,c):d("w.uint32(%i).%s(%s)",(l.id<<3|n)>>>0,i,c))}return d("return w")}});var se=A((Fr,Oe)=>{"use strict";var x=Oe.exports=Il();x.build="light";function Do(O,d,p){return typeof d=="function"?(p=d,d=new x.Root):d||(d=new x.Root),d.load(O,p)}x.load=Do;function Ao(O,d){return d||(d=new x.Root),d.loadSync(O)}x.loadSync=Ao;x.encoder=kn();x.decoder=pn();x.verifier=bn();x.converter=sn();x.ReflectionObject=Yt();x.Namespace=ni();x.Root=xi();x.Enum=Pt();x.Type=Di();x.Field=qt();x.OneOf=jt();x.MapField=Pi();x.Service=Ni();x.Method=Li();x.Message=Ci();x.wrappers=vn();x.types=Kt();x.util=ot();x.ReflectionObject._configure(x.Root);x.Namespace._configure(x.Type,x.Service,x.Enum);x.Root._configure(x.Type);x.Field._configure(x.Type)});var Rn=A((qr,we)=>{"use strict";we.exports=ge;var Cn=/[\s{}=;:[\],'"()<>]/g,Eo=/(?:"([^"\\]*(?:\\.[^"\\]*)*)")/g,xo=/(?:'([^'\\]*(?:\\.[^'\\]*)*)')/g,Mo=/^ *[*/]+ */,Uo=/^\s*\*?\/*/,Vo=/\n/g,_o=/\s/,Jo=/\\(.?)/g,Fo={0:"\0",r:"\r",n:` +`,t:" "};function ve(O){return O.replace(Jo,function(d,p){switch(p){case"\\":case"":return p;default:return Fo[p]||""}})}ge.unescape=ve;function ge(O,d){O=O.toString();var p=0,c=O.length,e=1,l=0,t={},i=[],n=null;function o(B){return Error("illegal "+B+" (line "+e+")")}function a(){var B=n==="'"?xo:Eo;B.lastIndex=p-1;var J=B.exec(O);if(!J)throw o("string");return p=B.lastIndex,F(n),n=null,ve(J[1])}function y(B){return O.charAt(B)}function s(B,J,V){var z={type:O.charAt(B++),lineEmpty:!1,leading:V},ut;d?ut=2:ut=3;var ct=B-ut,G;do if(--ct<0||(G=O.charAt(ct))===` +`){z.lineEmpty=!0;break}while(G===" "||G===" ");for(var k=O.substring(B,J).split(Vo),Y=0;Y0)return i.shift();if(n)return a();var B,J,V,z,ut,ct=p===0;do{if(p===c)return null;for(B=!1;_o.test(V=y(p));)if(V===` +`&&(ct=!0,++e),++p===c)return null;if(y(p)==="/"){if(++p===c)throw o("comment");if(y(p)==="/")if(d){if(z=p,ut=!1,v(p-1)){ut=!0;do if(p=g(p),p===c||(p++,!ct))break;while(v(p))}else p=Math.min(c,g(p)+1);ut&&(s(z,p,ct),ct=!0),e++,B=!0}else{for(ut=y(z=p+1)==="/";y(++p)!==` +`;)if(p===c)return null;++p,ut&&(s(z,p-1,ct),ct=!0),++e,B=!0}else if((V=y(p))==="*"){z=p+1,ut=d||y(z)==="*";do{if(V===` +`&&++e,++p===c)throw o("comment");J=V,V=y(p)}while(J!=="*"||V!=="/");++p,ut&&(s(z,p-2,ct),ct=!0),B=!0}else return"/"}}while(B);var G=p;Cn.lastIndex=0;var k=Cn.test(y(G++));if(!k)for(;G{"use strict";Ie.exports=Vt;Vt.filename=null;Vt.defaults={keepCase:!1};var qo=Rn(),Se=xi(),ke=Di(),Te=qt(),zo=Pi(),me=jt(),Go=Pt(),Ho=Ni(),$o=Li(),Bn=Kt(),Dn=ot(),Wo=/^[1-9][0-9]*$/,Ko=/^-?[1-9][0-9]*$/,Yo=/^0[x][0-9a-fA-F]+$/,Qo=/^-?0[x][0-9a-fA-F]+$/,Zo=/^0[0-7]+$/,Xo=/^-?0[0-7]+$/,jo=/^(?![eE])[0-9]*(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?$/,Et=/^[a-zA-Z_][a-zA-Z_0-9]*$/,xt=/^(?:\.?[a-zA-Z_][a-zA-Z_0-9]*)(?:\.[a-zA-Z_][a-zA-Z_0-9]*)*$/,tr=/^(?:\.[a-zA-Z_][a-zA-Z_0-9]*)+$/;function Vt(O,d,p){d instanceof Se||(p=d,d=new Se),p||(p=Vt.defaults);var c=p.preferTrailingComment||!1,e=qo(O,p.alternateCommentMode||!1),l=e.next,t=e.push,i=e.peek,n=e.skip,o=e.cmnt,a=!0,y,s,v,g,S=!1,F=d,K=p.keepCase?function(m){return m}:Dn.camelCase;function D(m,I,P){var R=Vt.filename;return P||(Vt.filename=null),Error("illegal "+(I||"token")+" '"+m+"' ("+(R?R+", ":"")+"line "+e.line+")")}function lt(){var m=[],I;do{if((I=l())!=='"'&&I!=="'")throw D(I);m.push(l()),n(I),I=i()}while(I==='"'||I==="'");return m.join("")}function B(m){var I=l();switch(I){case"'":case'"':return t(I),lt();case"true":case"TRUE":return!0;case"false":case"FALSE":return!1}try{return V(I,!0)}catch{if(m&&xt.test(I))return I;throw D(I,"value")}}function J(m,I){var P,R;do I&&((P=i())==='"'||P==="'")?m.push(lt()):m.push([R=z(l()),n("to",!0)?z(l()):R]);while(n(",",!0));n(";")}function V(m,I){var P=1;switch(m.charAt(0)==="-"&&(P=-1,m=m.substring(1)),m){case"inf":case"INF":case"Inf":return P*(1/0);case"nan":case"NAN":case"Nan":case"NaN":return NaN;case"0":return 0}if(Wo.test(m))return P*parseInt(m,10);if(Yo.test(m))return P*parseInt(m,16);if(Zo.test(m))return P*parseInt(m,8);if(jo.test(m))return P*parseFloat(m);throw D(m,"number",I)}function z(m,I){switch(m){case"max":case"MAX":case"Max":return 536870911;case"0":return 0}if(!I&&m.charAt(0)==="-")throw D(m,"id");if(Ko.test(m))return parseInt(m,10);if(Qo.test(m))return parseInt(m,16);if(Xo.test(m))return parseInt(m,8);throw D(m,"id")}function ut(){if(y!==void 0)throw D("package");if(y=l(),!xt.test(y))throw D(y,"name");F=F.define(y),n(";")}function ct(){var m=i(),I;switch(m){case"weak":I=v||(v=[]),l();break;case"public":l();default:I=s||(s=[]);break}m=lt(),n(";"),I.push(m)}function G(){if(n("="),g=lt(),S=g==="proto3",!S&&g!=="proto2")throw D(g,"syntax");n(";")}function k(m,I){switch(I){case"option":return $(m,I),n(";"),!0;case"message":return T(m,I),!0;case"enum":return q(m,I),!0;case"service":return it(m,I),!0;case"extend":return Zt(m,I),!0}return!1}function Y(m,I,P){var R=e.line;if(m&&(typeof m.comment!="string"&&(m.comment=o()),m.filename=Vt.filename),n("{",!0)){for(var C;(C=l())!=="}";)I(C);n(";",!0)}else P&&P(),n(";"),m&&(typeof m.comment!="string"||c)&&(m.comment=o(R)||m.comment)}function T(m,I){if(!Et.test(I=l()))throw D(I,"type name");var P=new ke(I);Y(P,function(C){if(!k(P,C))switch(C){case"map":M(P,C);break;case"required":case"repeated":w(P,C);break;case"optional":S?w(P,"proto3_optional"):w(P,"optional");break;case"oneof":W(P,C);break;case"extensions":J(P.extensions||(P.extensions=[]));break;case"reserved":J(P.reserved||(P.reserved=[]),!0);break;default:if(!S||!xt.test(C))throw D(C);t(C),w(P,"optional");break}}),m.add(P)}function w(m,I,P){var R=l();if(R==="group"){L(m,I);return}for(;R.endsWith(".")||i().startsWith(".");)R+=l();if(!xt.test(R))throw D(R,"type");var C=l();if(!Et.test(C))throw D(C,"name");C=K(C),n("=");var E=new Te(C,z(l()),R,I,P);if(Y(E,function(ht){if(ht==="option")$(E,ht),n(";");else throw D(ht)},function(){at(E)}),I==="proto3_optional"){var rt=new me("_"+C);E.setOption("proto3_optional",!0),rt.add(E),m.add(rt)}else m.add(E);!S&&E.repeated&&(Bn.packed[R]!==void 0||Bn.basic[R]===void 0)&&E.setOption("packed",!1,!0)}function L(m,I){var P=l();if(!Et.test(P))throw D(P,"name");var R=Dn.lcFirst(P);P===R&&(P=Dn.ucFirst(P)),n("=");var C=z(l()),E=new ke(P);E.group=!0;var rt=new Te(R,C,P,I);rt.filename=Vt.filename,Y(E,function(ht){switch(ht){case"option":$(E,ht),n(";");break;case"required":case"repeated":w(E,ht);break;case"optional":S?w(E,"proto3_optional"):w(E,"optional");break;case"message":T(E,ht);break;case"enum":q(E,ht);break;default:throw D(ht)}}),m.add(E).add(rt)}function M(m){n("<");var I=l();if(Bn.mapKey[I]===void 0)throw D(I,"type");n(",");var P=l();if(!xt.test(P))throw D(P,"type");n(">");var R=l();if(!Et.test(R))throw D(R,"name");n("=");var C=new zo(K(R),z(l()),I,P);Y(C,function(rt){if(rt==="option")$(C,rt),n(";");else throw D(rt)},function(){at(C)}),m.add(C)}function W(m,I){if(!Et.test(I=l()))throw D(I,"name");var P=new me(K(I));Y(P,function(C){C==="option"?($(P,C),n(";")):(t(C),w(P,"optional"))}),m.add(P)}function q(m,I){if(!Et.test(I=l()))throw D(I,"name");var P=new Go(I);Y(P,function(C){switch(C){case"option":$(P,C),n(";");break;case"reserved":J(P.reserved||(P.reserved=[]),!0);break;default:Z(P,C)}}),m.add(P)}function Z(m,I){if(!Et.test(I))throw D(I,"name");n("=");var P=z(l(),!0),R={options:void 0};R.setOption=function(C,E){this.options===void 0&&(this.options={}),this.options[C]=E},Y(R,function(E){if(E==="option")$(R,E),n(";");else throw D(E)},function(){at(R)}),m.add(I,P,R.comment,R.options)}function $(m,I){var P=n("(",!0);if(!xt.test(I=l()))throw D(I,"name");var R=I,C=R,E;P&&(n(")"),R="("+R+")",C=R,I=i(),tr.test(I)&&(E=I.slice(1),R+=I,l())),n("=");var rt=dt(m,R);Q(m,C,rt,E)}function dt(m,I){if(n("{",!0)){for(var P={};!n("}",!0);){if(!Et.test(ft=l()))throw D(ft,"name");if(ft===null)throw D(ft,"end of input");var R,C=ft;if(n(":",!0),i()==="{")R=dt(m,I+"."+ft);else if(i()==="["){R=[];var E;if(n("[",!0)){do E=B(!0),R.push(E);while(n(",",!0));n("]"),typeof E<"u"&&tt(m,I+"."+ft,E)}}else R=B(!0),tt(m,I+"."+ft,R);var rt=P[C];rt&&(R=[].concat(rt).concat(R)),P[C]=R,n(",",!0),n(";",!0)}return P}var _t=B(!0);return tt(m,I,_t),_t}function tt(m,I,P){m.setOption&&m.setOption(I,P)}function Q(m,I,P,R){m.setParsedOption&&m.setParsedOption(I,P,R)}function at(m){if(n("[",!0)){do $(m,"option");while(n(",",!0));n("]")}return m}function it(m,I){if(!Et.test(I=l()))throw D(I,"service name");var P=new Ho(I);Y(P,function(C){if(!k(P,C))if(C==="rpc")yt(P,C);else throw D(C)}),m.add(P)}function yt(m,I){var P=o(),R=I;if(!Et.test(I=l()))throw D(I,"name");var C=I,E,rt,_t,ht;if(n("("),n("stream",!0)&&(rt=!0),!xt.test(I=l())||(E=I,n(")"),n("returns"),n("("),n("stream",!0)&&(ht=!0),!xt.test(I=l())))throw D(I);_t=I,n(")");var hi=new $o(C,R,E,_t,rt,ht);hi.comment=P,Y(hi,function(_i){if(_i==="option")$(hi,_i),n(";");else throw D(_i)}),m.add(hi)}function Zt(m,I){if(!xt.test(I=l()))throw D(I,"reference");var P=I;Y(null,function(C){switch(C){case"required":case"repeated":w(m,C,P);break;case"optional":S?w(m,"proto3_optional",P):w(m,"optional",P);break;default:if(!S||!xt.test(C))throw D(C);t(C),w(m,"optional",P);break}})}for(var ft;(ft=l())!==null;)switch(ft){case"package":if(!a)throw D(ft);ut();break;case"import":if(!a)throw D(ft);ct();break;case"syntax":if(!a)throw D(ft);G();break;case"option":$(F,ft),n(";");break;default:if(k(F,ft)){a=!1;continue}throw D(ft)}return Vt.filename=null,{package:y,imports:s,weakImports:v,syntax:g,root:d}}});var Ce=A((Gr,Ne)=>{"use strict";Ne.exports=Nt;var ir=/\/|\./;function Nt(O,d){ir.test(O)||(O="google/protobuf/"+O+".proto",d={nested:{google:{nested:{protobuf:{nested:d}}}}}),Nt[O]=d}Nt("any",{Any:{fields:{type_url:{type:"string",id:1},value:{type:"bytes",id:2}}}});var Le;Nt("duration",{Duration:Le={fields:{seconds:{type:"int64",id:1},nanos:{type:"int32",id:2}}}});Nt("timestamp",{Timestamp:Le});Nt("empty",{Empty:{fields:{}}});Nt("struct",{Struct:{fields:{fields:{keyType:"string",type:"Value",id:1}}},Value:{oneofs:{kind:{oneof:["nullValue","numberValue","stringValue","boolValue","structValue","listValue"]}},fields:{nullValue:{type:"NullValue",id:1},numberValue:{type:"double",id:2},stringValue:{type:"string",id:3},boolValue:{type:"bool",id:4},structValue:{type:"Struct",id:5},listValue:{type:"ListValue",id:6}}},NullValue:{values:{NULL_VALUE:0}},ListValue:{fields:{values:{rule:"repeated",type:"Value",id:1}}}});Nt("wrappers",{DoubleValue:{fields:{value:{type:"double",id:1}}},FloatValue:{fields:{value:{type:"float",id:1}}},Int64Value:{fields:{value:{type:"int64",id:1}}},UInt64Value:{fields:{value:{type:"uint64",id:1}}},Int32Value:{fields:{value:{type:"int32",id:1}}},UInt32Value:{fields:{value:{type:"uint32",id:1}}},BoolValue:{fields:{value:{type:"bool",id:1}}},StringValue:{fields:{value:{type:"string",id:1}}},BytesValue:{fields:{value:{type:"bytes",id:1}}}});Nt("field_mask",{FieldMask:{fields:{paths:{rule:"repeated",type:"string",id:1}}}});Nt.get=function(d){return Nt[d]||null}});var Be=A((Hr,Re)=>{"use strict";var Ht=Re.exports=se();Ht.build="full";Ht.tokenize=Rn();Ht.parse=Pe();Ht.common=Ce();Ht.Root._configure(Ht.Type,Ht.parse,Ht.common)});var Ae=A(($r,De)=>{"use strict";De.exports=Be()});var Me=A((xe,An)=>{var Ee=function(O){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.default=void 0;var d=null;try{d=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch{}function p(T,w,L){this.low=T|0,this.high=w|0,this.unsigned=!!L}p.prototype.__isLong__,Object.defineProperty(p.prototype,"__isLong__",{value:!0});function c(T){return(T&&T.__isLong__)===!0}function e(T){var w=Math.clz32(T&-T);return T?31-w:w}p.isLong=c;var l={},t={};function i(T,w){var L,M,W;return w?(T>>>=0,(W=0<=T&&T<256)&&(M=t[T],M)?M:(L=o(T,0,!0),W&&(t[T]=L),L)):(T|=0,(W=-128<=T&&T<128)&&(M=l[T],M)?M:(L=o(T,T<0?-1:0,!1),W&&(l[T]=L),L))}p.fromInt=i;function n(T,w){if(isNaN(T))return w?B:lt;if(w){if(T<0)return B;if(T>=F)return ct}else{if(T<=-K)return G;if(T+1>=K)return ut}return T<0?n(-T,w).neg():o(T%S|0,T/S|0,w)}p.fromNumber=n;function o(T,w,L){return new p(T,w,L)}p.fromBits=o;var a=Math.pow;function y(T,w,L){if(T.length===0)throw Error("empty string");if(typeof w=="number"?(L=w,w=!1):w=!!w,T==="NaN"||T==="Infinity"||T==="+Infinity"||T==="-Infinity")return w?B:lt;if(L=L||10,L<2||360)throw Error("interior hyphen");if(M===0)return y(T.substring(1),w,L).neg();for(var W=n(a(L,8)),q=lt,Z=0;Z>>0:this.low},k.toNumber=function(){return this.unsigned?(this.high>>>0)*S+(this.low>>>0):this.high*S+(this.low>>>0)},k.toString=function(w){if(w=w||10,w<2||36>>0,Q=tt.toString(w);if(Z=dt,Z.isZero())return Q+$;for(;Q.length<6;)Q="0"+Q;$=""+Q+$}},k.getHighBits=function(){return this.high},k.getHighBitsUnsigned=function(){return this.high>>>0},k.getLowBits=function(){return this.low},k.getLowBitsUnsigned=function(){return this.low>>>0},k.getNumBitsAbs=function(){if(this.isNegative())return this.eq(G)?64:this.neg().getNumBitsAbs();for(var w=this.high!=0?this.high:this.low,L=31;L>0&&!(w&1<=0},k.isOdd=function(){return(this.low&1)===1},k.isEven=function(){return(this.low&1)===0},k.equals=function(w){return c(w)||(w=s(w)),this.unsigned!==w.unsigned&&this.high>>>31===1&&w.high>>>31===1?!1:this.high===w.high&&this.low===w.low},k.eq=k.equals,k.notEquals=function(w){return!this.eq(w)},k.neq=k.notEquals,k.ne=k.notEquals,k.lessThan=function(w){return this.comp(w)<0},k.lt=k.lessThan,k.lessThanOrEqual=function(w){return this.comp(w)<=0},k.lte=k.lessThanOrEqual,k.le=k.lessThanOrEqual,k.greaterThan=function(w){return this.comp(w)>0},k.gt=k.greaterThan,k.greaterThanOrEqual=function(w){return this.comp(w)>=0},k.gte=k.greaterThanOrEqual,k.ge=k.greaterThanOrEqual,k.compare=function(w){if(c(w)||(w=s(w)),this.eq(w))return 0;var L=this.isNegative(),M=w.isNegative();return L&&!M?-1:!L&&M?1:this.unsigned?w.high>>>0>this.high>>>0||w.high===this.high&&w.low>>>0>this.low>>>0?-1:1:this.sub(w).isNegative()?-1:1},k.comp=k.compare,k.negate=function(){return!this.unsigned&&this.eq(G)?G:this.not().add(J)},k.neg=k.negate,k.add=function(w){c(w)||(w=s(w));var L=this.high>>>16,M=this.high&65535,W=this.low>>>16,q=this.low&65535,Z=w.high>>>16,$=w.high&65535,dt=w.low>>>16,tt=w.low&65535,Q=0,at=0,it=0,yt=0;return yt+=q+tt,it+=yt>>>16,yt&=65535,it+=W+dt,at+=it>>>16,it&=65535,at+=M+$,Q+=at>>>16,at&=65535,Q+=L+Z,Q&=65535,o(it<<16|yt,Q<<16|at,this.unsigned)},k.subtract=function(w){return c(w)||(w=s(w)),this.add(w.neg())},k.sub=k.subtract,k.multiply=function(w){if(this.isZero())return this;if(c(w)||(w=s(w)),d){var L=d.mul(this.low,this.high,w.low,w.high);return o(L,d.get_high(),this.unsigned)}if(w.isZero())return this.unsigned?B:lt;if(this.eq(G))return w.isOdd()?G:lt;if(w.eq(G))return this.isOdd()?G:lt;if(this.isNegative())return w.isNegative()?this.neg().mul(w.neg()):this.neg().mul(w).neg();if(w.isNegative())return this.mul(w.neg()).neg();if(this.lt(D)&&w.lt(D))return n(this.toNumber()*w.toNumber(),this.unsigned);var M=this.high>>>16,W=this.high&65535,q=this.low>>>16,Z=this.low&65535,$=w.high>>>16,dt=w.high&65535,tt=w.low>>>16,Q=w.low&65535,at=0,it=0,yt=0,Zt=0;return Zt+=Z*Q,yt+=Zt>>>16,Zt&=65535,yt+=q*Q,it+=yt>>>16,yt&=65535,yt+=Z*tt,it+=yt>>>16,yt&=65535,it+=W*Q,at+=it>>>16,it&=65535,it+=q*tt,at+=it>>>16,it&=65535,it+=Z*dt,at+=it>>>16,it&=65535,at+=M*Q+W*tt+q*dt+Z*$,at&=65535,o(yt<<16|Zt,at<<16|it,this.unsigned)},k.mul=k.multiply,k.divide=function(w){if(c(w)||(w=s(w)),w.isZero())throw Error("division by zero");if(d){if(!this.unsigned&&this.high===-2147483648&&w.low===-1&&w.high===-1)return this;var L=(this.unsigned?d.div_u:d.div_s)(this.low,this.high,w.low,w.high);return o(L,d.get_high(),this.unsigned)}if(this.isZero())return this.unsigned?B:lt;var M,W,q;if(this.unsigned){if(w.unsigned||(w=w.toUnsigned()),w.gt(this))return B;if(w.gt(this.shru(1)))return V;q=B}else{if(this.eq(G)){if(w.eq(J)||w.eq(z))return G;if(w.eq(G))return J;var Z=this.shr(1);return M=Z.div(w).shl(1),M.eq(lt)?w.isNegative()?J:z:(W=this.sub(w.mul(M)),q=M.add(W.div(w)),q)}else if(w.eq(G))return this.unsigned?B:lt;if(this.isNegative())return w.isNegative()?this.neg().div(w.neg()):this.neg().div(w).neg();if(w.isNegative())return this.div(w.neg()).neg();q=lt}for(W=this;W.gte(w);){M=Math.max(1,Math.floor(W.toNumber()/w.toNumber()));for(var $=Math.ceil(Math.log(M)/Math.LN2),dt=$<=48?1:a(2,$-48),tt=n(M),Q=tt.mul(w);Q.isNegative()||Q.gt(W);)M-=dt,tt=n(M,this.unsigned),Q=tt.mul(w);tt.isZero()&&(tt=J),q=q.add(tt),W=W.sub(Q)}return q},k.div=k.divide,k.modulo=function(w){if(c(w)||(w=s(w)),d){var L=(this.unsigned?d.rem_u:d.rem_s)(this.low,this.high,w.low,w.high);return o(L,d.get_high(),this.unsigned)}return this.sub(this.div(w).mul(w))},k.mod=k.modulo,k.rem=k.modulo,k.not=function(){return o(~this.low,~this.high,this.unsigned)},k.countLeadingZeros=function(){return this.high?Math.clz32(this.high):Math.clz32(this.low)+32},k.clz=k.countLeadingZeros,k.countTrailingZeros=function(){return this.low?e(this.low):e(this.high)+32},k.ctz=k.countTrailingZeros,k.and=function(w){return c(w)||(w=s(w)),o(this.low&w.low,this.high&w.high,this.unsigned)},k.or=function(w){return c(w)||(w=s(w)),o(this.low|w.low,this.high|w.high,this.unsigned)},k.xor=function(w){return c(w)||(w=s(w)),o(this.low^w.low,this.high^w.high,this.unsigned)},k.shiftLeft=function(w){return c(w)&&(w=w.toInt()),(w&=63)===0?this:w<32?o(this.low<>>32-w,this.unsigned):o(0,this.low<>>w|this.high<<32-w,this.high>>w,this.unsigned):o(this.high>>w-32,this.high>=0?0:-1,this.unsigned)},k.shr=k.shiftRight,k.shiftRightUnsigned=function(w){return c(w)&&(w=w.toInt()),(w&=63)===0?this:w<32?o(this.low>>>w|this.high<<32-w,this.high>>>w,this.unsigned):w===32?o(this.high,0,this.unsigned):o(this.high>>>w-32,0,this.unsigned)},k.shru=k.shiftRightUnsigned,k.shr_u=k.shiftRightUnsigned,k.rotateLeft=function(w){var L;return c(w)&&(w=w.toInt()),(w&=63)===0?this:w===32?o(this.high,this.low,this.unsigned):w<32?(L=32-w,o(this.low<>>L,this.high<>>L,this.unsigned)):(w-=32,L=32-w,o(this.high<>>L,this.low<>>L,this.unsigned))},k.rotl=k.rotateLeft,k.rotateRight=function(w){var L;return c(w)&&(w=w.toInt()),(w&=63)===0?this:w===32?o(this.high,this.low,this.unsigned):w<32?(L=32-w,o(this.high<>>w,this.low<>>w,this.unsigned)):(w-=32,L=32-w,o(this.low<>>w,this.high<>>w,this.unsigned))},k.rotr=k.rotateRight,k.toSigned=function(){return this.unsigned?o(this.low,this.high,!1):this},k.toUnsigned=function(){return this.unsigned?this:o(this.low,this.high,!0)},k.toBytes=function(w){return w?this.toBytesLE():this.toBytesBE()},k.toBytesLE=function(){var w=this.high,L=this.low;return[L&255,L>>>8&255,L>>>16&255,L>>>24,w&255,w>>>8&255,w>>>16&255,w>>>24]},k.toBytesBE=function(){var w=this.high,L=this.low;return[w>>>24,w>>>16&255,w>>>8&255,w&255,L>>>24,L>>>16&255,L>>>8&255,L&255]},p.fromBytes=function(w,L,M){return M?p.fromBytesLE(w,L):p.fromBytesBE(w,L)},p.fromBytesLE=function(w,L){return new p(w[0]|w[1]<<8|w[2]<<16|w[3]<<24,w[4]|w[5]<<8|w[6]<<16|w[7]<<24,L)},p.fromBytesBE=function(w,L){return new p(w[4]<<24|w[5]<<16|w[6]<<8|w[7],w[0]<<24|w[1]<<16|w[2]<<8|w[3],L)};var Y=p;return O.default=Y,"default"in O?O.default:O}({});typeof define=="function"&&define.amd?define([],function(){return Ee}):typeof An=="object"&&typeof xe=="object"&&(An.exports=Ee)});var b=ze(Ae()),f=b.Reader,h=b.Writer,r=b.util;Reflect.defineProperty(r,"Long",{enumerable:!0,configurable:!1,writable:!1,value:Me()});b.configure();var u=b.roots.default||(b.roots.default={}),Wr=u.bilibili=(()=>{let O={};return O.account=function(){let d={};return d.fission=function(){let p={};return p.v1=function(){let c={};return c.Fission=function(){function e(l,t,i){b.rpc.Service.call(this,l,t,i)}return(e.prototype=Object.create(b.rpc.Service.prototype)).constructor=e,e.create=function(t,i,n){return new this(t,i,n)},Object.defineProperty(e.prototype.entrance=function l(t,i){return this.rpcCall(l,u.bilibili.account.fission.v1.EntranceReq,u.bilibili.account.fission.v1.EntranceReply,t,i)},"name",{value:"Entrance"}),Object.defineProperty(e.prototype.window=function l(t,i){return this.rpcCall(l,u.bilibili.account.fission.v1.WindowReq,u.bilibili.account.fission.v1.WindowReply,t,i)},"name",{value:"Window"}),Object.defineProperty(e.prototype.privacy=function l(t,i){return this.rpcCall(l,u.bilibili.account.fission.v1.PrivacyReq,u.bilibili.account.fission.v1.PrivacyReply,t,i)},"name",{value:"Privacy"}),e}(),c.EntranceReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){default:t.skipType(a&7);break}}return o},e.fromObject=function(t){return t instanceof u.bilibili.account.fission.v1.EntranceReq?t:new u.bilibili.account.fission.v1.EntranceReq},e.toObject=function(){return{}},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.account.fission.v1.EntranceReq"},e}(),c.EntranceReply=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.icon=t.string();break}case 2:{o.name=t.string();break}case 3:{o.url=t.string();break}case 4:{o.animateIcon=u.bilibili.account.fission.v1.AnimateIcon.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.account.fission.v1.EntranceReply)return t;let i=new u.bilibili.account.fission.v1.EntranceReply;if(t.icon!=null&&(i.icon=String(t.icon)),t.name!=null&&(i.name=String(t.name)),t.url!=null&&(i.url=String(t.url)),t.animateIcon!=null){if(typeof t.animateIcon!="object")throw TypeError(".bilibili.account.fission.v1.EntranceReply.animateIcon: object expected");i.animateIcon=u.bilibili.account.fission.v1.AnimateIcon.fromObject(t.animateIcon)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.icon="",n.name="",n.url="",n.animateIcon=null),t.icon!=null&&t.hasOwnProperty("icon")&&(n.icon=t.icon),t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),t.url!=null&&t.hasOwnProperty("url")&&(n.url=t.url),t.animateIcon!=null&&t.hasOwnProperty("animateIcon")&&(n.animateIcon=u.bilibili.account.fission.v1.AnimateIcon.toObject(t.animateIcon,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.account.fission.v1.EntranceReply"},e}(),c.AnimateIcon=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.icon=t.string();break}case 2:{o.json=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.account.fission.v1.AnimateIcon)return t;let i=new u.bilibili.account.fission.v1.AnimateIcon;return t.icon!=null&&(i.icon=String(t.icon)),t.json!=null&&(i.json=String(t.json)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.icon="",n.json=""),t.icon!=null&&t.hasOwnProperty("icon")&&(n.icon=t.icon),t.json!=null&&t.hasOwnProperty("json")&&(n.json=t.json),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.account.fission.v1.AnimateIcon"},e}(),c.WindowReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){default:t.skipType(a&7);break}}return o},e.fromObject=function(t){return t instanceof u.bilibili.account.fission.v1.WindowReq?t:new u.bilibili.account.fission.v1.WindowReq},e.toObject=function(){return{}},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.account.fission.v1.WindowReq"},e}(),c.WindowReply=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.type=t.int32();break}case 2:{o.url=t.string();break}case 3:{o.reportData=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.account.fission.v1.WindowReply)return t;let i=new u.bilibili.account.fission.v1.WindowReply;return t.type!=null&&(i.type=t.type|0),t.url!=null&&(i.url=String(t.url)),t.reportData!=null&&(i.reportData=String(t.reportData)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.type=0,n.url="",n.reportData=""),t.type!=null&&t.hasOwnProperty("type")&&(n.type=t.type),t.url!=null&&t.hasOwnProperty("url")&&(n.url=t.url),t.reportData!=null&&t.hasOwnProperty("reportData")&&(n.reportData=t.reportData),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.account.fission.v1.WindowReply"},e}(),c.PrivacyReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.activityUid=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.account.fission.v1.PrivacyReq)return t;let i=new u.bilibili.account.fission.v1.PrivacyReq;return t.activityUid!=null&&(i.activityUid=String(t.activityUid)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.activityUid=""),t.activityUid!=null&&t.hasOwnProperty("activityUid")&&(n.activityUid=t.activityUid),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.account.fission.v1.PrivacyReq"},e}(),c.PrivacyReply=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.message=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.account.fission.v1.PrivacyReply)return t;let i=new u.bilibili.account.fission.v1.PrivacyReply;return t.message!=null&&(i.message=String(t.message)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.message=""),t.message!=null&&t.hasOwnProperty("message")&&(n.message=t.message),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.account.fission.v1.PrivacyReply"},e}(),c}(),p}(),d}(),O.ad=function(){let d={};return d.v1=function(){let p={};return p.AdsControlDto=function(){function c(e){if(this.cids=[],this.eps=[],e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.hasDanmu=l.int32();break}case 2:{if(n.cids&&n.cids.length||(n.cids=[]),(o&7)===2){let a=l.uint32()+l.pos;for(;l.pos>>0,l.cids[i].high>>>0).toNumber())}if(l.eps){if(!Array.isArray(l.eps))throw TypeError(".bilibili.ad.v1.AdsControlDto.eps: array expected");t.eps=[];for(let i=0;i>>0,l.cids[n].high>>>0).toNumber():l.cids[n]}if(l.eps&&l.eps.length){i.eps=[];for(let n=0;n>>3){case 1:{n.epid=l.int64();break}case 2:{n.hasRecommend=l.bool();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.ad.v1.AdOgvEpDto)return l;let t=new u.bilibili.ad.v1.AdOgvEpDto;return l.epid!=null&&(r.Long?(t.epid=r.Long.fromValue(l.epid)).unsigned=!1:typeof l.epid=="string"?t.epid=parseInt(l.epid,10):typeof l.epid=="number"?t.epid=l.epid:typeof l.epid=="object"&&(t.epid=new r.LongBits(l.epid.low>>>0,l.epid.high>>>0).toNumber())),l.hasRecommend!=null&&(t.hasRecommend=!!l.hasRecommend),t},c.toObject=function(l,t){t||(t={});let i={};if(t.defaults){if(r.Long){let n=new r.Long(0,0,!1);i.epid=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.epid=t.longs===String?"0":0;i.hasRecommend=!1}return l.epid!=null&&l.hasOwnProperty("epid")&&(typeof l.epid=="number"?i.epid=t.longs===String?String(l.epid):l.epid:i.epid=t.longs===String?r.Long.prototype.toString.call(l.epid):t.longs===Number?new r.LongBits(l.epid.low>>>0,l.epid.high>>>0).toNumber():l.epid),l.hasRecommend!=null&&l.hasOwnProperty("hasRecommend")&&(i.hasRecommend=l.hasRecommend),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.ad.v1.AdOgvEpDto"},c}(),p.SourceContentDto=function(){function c(e){if(e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.requestId=l.string();break}case 2:{n.sourceId=l.int32();break}case 3:{n.resourceId=l.int32();break}case 4:{n.isAdLoc=l.bool();break}case 5:{n.serverType=u.google.protobuf.Int32Value.decode(l,l.uint32());break}case 6:{n.clientIp=l.string();break}case 7:{n.cardIndex=u.google.protobuf.Int32Value.decode(l,l.uint32());break}case 8:{n.index=l.int32();break}case 9:{n.adContent=u.bilibili.ad.v1.AdDto.decode(l,l.uint32());break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.ad.v1.SourceContentDto)return l;let t=new u.bilibili.ad.v1.SourceContentDto;if(l.requestId!=null&&(t.requestId=String(l.requestId)),l.sourceId!=null&&(t.sourceId=l.sourceId|0),l.resourceId!=null&&(t.resourceId=l.resourceId|0),l.isAdLoc!=null&&(t.isAdLoc=!!l.isAdLoc),l.serverType!=null){if(typeof l.serverType!="object")throw TypeError(".bilibili.ad.v1.SourceContentDto.serverType: object expected");t.serverType=u.google.protobuf.Int32Value.fromObject(l.serverType)}if(l.clientIp!=null&&(t.clientIp=String(l.clientIp)),l.cardIndex!=null){if(typeof l.cardIndex!="object")throw TypeError(".bilibili.ad.v1.SourceContentDto.cardIndex: object expected");t.cardIndex=u.google.protobuf.Int32Value.fromObject(l.cardIndex)}if(l.index!=null&&(t.index=l.index|0),l.adContent!=null){if(typeof l.adContent!="object")throw TypeError(".bilibili.ad.v1.SourceContentDto.adContent: object expected");t.adContent=u.bilibili.ad.v1.AdDto.fromObject(l.adContent)}return t},c.toObject=function(l,t){t||(t={});let i={};return t.defaults&&(i.requestId="",i.sourceId=0,i.resourceId=0,i.isAdLoc=!1,i.serverType=null,i.clientIp="",i.cardIndex=null,i.index=0,i.adContent=null),l.requestId!=null&&l.hasOwnProperty("requestId")&&(i.requestId=l.requestId),l.sourceId!=null&&l.hasOwnProperty("sourceId")&&(i.sourceId=l.sourceId),l.resourceId!=null&&l.hasOwnProperty("resourceId")&&(i.resourceId=l.resourceId),l.isAdLoc!=null&&l.hasOwnProperty("isAdLoc")&&(i.isAdLoc=l.isAdLoc),l.serverType!=null&&l.hasOwnProperty("serverType")&&(i.serverType=u.google.protobuf.Int32Value.toObject(l.serverType,t)),l.clientIp!=null&&l.hasOwnProperty("clientIp")&&(i.clientIp=l.clientIp),l.cardIndex!=null&&l.hasOwnProperty("cardIndex")&&(i.cardIndex=u.google.protobuf.Int32Value.toObject(l.cardIndex,t)),l.index!=null&&l.hasOwnProperty("index")&&(i.index=l.index),l.adContent!=null&&l.hasOwnProperty("adContent")&&(i.adContent=u.bilibili.ad.v1.AdDto.toObject(l.adContent,t)),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.ad.v1.SourceContentDto"},c}(),p.AdDto=function(){function c(e){if(e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.creativeId=l.int64();break}case 2:{n.adCb=l.string();break}case 3:{n.extra=u.bilibili.ad.v1.AdContentExtraDto.decode(l,l.uint32());break}case 4:{n.cmMark=l.int32();break}case 5:{n.topViewId=l.int64();break}case 6:{n.creativeType=l.int32();break}case 7:{n.cardType=l.int32();break}case 8:{n.creativeStyle=l.int32();break}case 9:{n.isAd=l.bool();break}case 10:{n.creativeContent=u.bilibili.ad.v1.CreativeDto.decode(l,l.uint32());break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.ad.v1.AdDto)return l;let t=new u.bilibili.ad.v1.AdDto;if(l.creativeId!=null&&(r.Long?(t.creativeId=r.Long.fromValue(l.creativeId)).unsigned=!1:typeof l.creativeId=="string"?t.creativeId=parseInt(l.creativeId,10):typeof l.creativeId=="number"?t.creativeId=l.creativeId:typeof l.creativeId=="object"&&(t.creativeId=new r.LongBits(l.creativeId.low>>>0,l.creativeId.high>>>0).toNumber())),l.adCb!=null&&(t.adCb=String(l.adCb)),l.extra!=null){if(typeof l.extra!="object")throw TypeError(".bilibili.ad.v1.AdDto.extra: object expected");t.extra=u.bilibili.ad.v1.AdContentExtraDto.fromObject(l.extra)}if(l.cmMark!=null&&(t.cmMark=l.cmMark|0),l.topViewId!=null&&(r.Long?(t.topViewId=r.Long.fromValue(l.topViewId)).unsigned=!1:typeof l.topViewId=="string"?t.topViewId=parseInt(l.topViewId,10):typeof l.topViewId=="number"?t.topViewId=l.topViewId:typeof l.topViewId=="object"&&(t.topViewId=new r.LongBits(l.topViewId.low>>>0,l.topViewId.high>>>0).toNumber())),l.creativeType!=null&&(t.creativeType=l.creativeType|0),l.cardType!=null&&(t.cardType=l.cardType|0),l.creativeStyle!=null&&(t.creativeStyle=l.creativeStyle|0),l.isAd!=null&&(t.isAd=!!l.isAd),l.creativeContent!=null){if(typeof l.creativeContent!="object")throw TypeError(".bilibili.ad.v1.AdDto.creativeContent: object expected");t.creativeContent=u.bilibili.ad.v1.CreativeDto.fromObject(l.creativeContent)}return t},c.toObject=function(l,t){t||(t={});let i={};if(t.defaults){if(r.Long){let n=new r.Long(0,0,!1);i.creativeId=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.creativeId=t.longs===String?"0":0;if(i.adCb="",i.extra=null,i.cmMark=0,r.Long){let n=new r.Long(0,0,!1);i.topViewId=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.topViewId=t.longs===String?"0":0;i.creativeType=0,i.cardType=0,i.creativeStyle=0,i.isAd=!1,i.creativeContent=null}return l.creativeId!=null&&l.hasOwnProperty("creativeId")&&(typeof l.creativeId=="number"?i.creativeId=t.longs===String?String(l.creativeId):l.creativeId:i.creativeId=t.longs===String?r.Long.prototype.toString.call(l.creativeId):t.longs===Number?new r.LongBits(l.creativeId.low>>>0,l.creativeId.high>>>0).toNumber():l.creativeId),l.adCb!=null&&l.hasOwnProperty("adCb")&&(i.adCb=l.adCb),l.extra!=null&&l.hasOwnProperty("extra")&&(i.extra=u.bilibili.ad.v1.AdContentExtraDto.toObject(l.extra,t)),l.cmMark!=null&&l.hasOwnProperty("cmMark")&&(i.cmMark=l.cmMark),l.topViewId!=null&&l.hasOwnProperty("topViewId")&&(typeof l.topViewId=="number"?i.topViewId=t.longs===String?String(l.topViewId):l.topViewId:i.topViewId=t.longs===String?r.Long.prototype.toString.call(l.topViewId):t.longs===Number?new r.LongBits(l.topViewId.low>>>0,l.topViewId.high>>>0).toNumber():l.topViewId),l.creativeType!=null&&l.hasOwnProperty("creativeType")&&(i.creativeType=l.creativeType),l.cardType!=null&&l.hasOwnProperty("cardType")&&(i.cardType=l.cardType),l.creativeStyle!=null&&l.hasOwnProperty("creativeStyle")&&(i.creativeStyle=l.creativeStyle),l.isAd!=null&&l.hasOwnProperty("isAd")&&(i.isAd=l.isAd),l.creativeContent!=null&&l.hasOwnProperty("creativeContent")&&(i.creativeContent=u.bilibili.ad.v1.CreativeDto.toObject(l.creativeContent,t)),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.ad.v1.AdDto"},c}(),p.AdContentExtraDto=function(){function c(e){if(this.showUrls=[],this.clickUrls=[],this.danmuListShowUrls=[],this.danmuListClickUrls=[],this.danmuDetailShowUrls=[],this.danmuTrolleyAddUrls=[],this.openWhitelist=[],this.downloadWhitelist=[],this.show_1sUrls=[],e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.layout=l.string();break}case 2:{n.showUrls&&n.showUrls.length||(n.showUrls=[]),n.showUrls.push(l.string());break}case 3:{n.clickUrls&&n.clickUrls.length||(n.clickUrls=[]),n.clickUrls.push(l.string());break}case 4:{n.danmuListShowUrls&&n.danmuListShowUrls.length||(n.danmuListShowUrls=[]),n.danmuListShowUrls.push(l.string());break}case 5:{n.danmuListClickUrls&&n.danmuListClickUrls.length||(n.danmuListClickUrls=[]),n.danmuListClickUrls.push(l.string());break}case 6:{n.danmuDetailShowUrls&&n.danmuDetailShowUrls.length||(n.danmuDetailShowUrls=[]),n.danmuDetailShowUrls.push(l.string());break}case 7:{n.danmuTrolleyAddUrls&&n.danmuTrolleyAddUrls.length||(n.danmuTrolleyAddUrls=[]),n.danmuTrolleyAddUrls.push(l.string());break}case 8:{n.useAdWebV2=l.bool();break}case 9:{n.openWhitelist&&n.openWhitelist.length||(n.openWhitelist=[]),n.openWhitelist.push(l.string());break}case 10:{n.downloadWhitelist&&n.downloadWhitelist.length||(n.downloadWhitelist=[]),n.downloadWhitelist.push(u.bilibili.ad.v1.AppPackageDto.decode(l,l.uint32()));break}case 11:{n.card=u.bilibili.ad.v1.AdCardDto.decode(l,l.uint32());break}case 12:{n.reportTime=l.int32();break}case 13:{n.appstorePriority=l.int32();break}case 14:{n.salesType=l.int32();break}case 15:{n.preloadLandingpage=l.int32();break}case 16:{n.specialIndustry=l.bool();break}case 17:{n.specialIndustryTips=l.string();break}case 18:{n.enableDownloadDialog=l.bool();break}case 19:{n.enableShare=l.bool();break}case 20:{n.upzoneEntranceType=l.int32();break}case 21:{n.upzoneEntranceReportId=l.int32();break}case 22:{n.shareInfo=u.bilibili.ad.v1.AdShareInfoDto.decode(l,l.uint32());break}case 23:{n.topviewPicUrl=l.string();break}case 24:{n.topviewVideoUrl=l.string();break}case 25:{n.clickArea=l.int32();break}case 26:{n.shopId=l.int64();break}case 27:{n.upMid=l.int64();break}case 28:{n.trackId=l.string();break}case 29:{n.enableStoreDirectLaunch=l.int32();break}case 30:{n.productId=l.int64();break}case 31:{n.enableDoubleJump=l.bool();break}case 32:{n.show_1sUrls&&n.show_1sUrls.length||(n.show_1sUrls=[]),n.show_1sUrls.push(l.string());break}case 33:{n.fromTrackId=l.string();break}case 34:{n.storeCallupCard=l.bool();break}case 35:{n.landingpageDownloadStyle=l.int32();break}case 36:{n.specialIndustryStyle=l.int32();break}case 37:{n.enableH5Alert=l.bool();break}case 38:{n.macroReplacePriority=l.int32();break}case 39:{n.feedbackPanelStyle=l.int32();break}case 40:{n.appstoreUrl=l.string();break}case 41:{n.enableH5PreLoad=l.int32();break}case 42:{n.h5PreLoadUrl=l.string();break}case 43:{n.cmFromTrackId=l.string();break}case 44:{n.abtest=l.string();break}case 45:{n.downloadUrlType=l.int32();break}case 46:{n.enableAutoCallup=l.int32();break}case 47:{n.externalLinkWarning=l.string();break}case 48:{n.liveBookingId=l.int64();break}case 49:{n.storeDplinkXiaomi=l.string();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.ad.v1.AdContentExtraDto)return l;let t=new u.bilibili.ad.v1.AdContentExtraDto;if(l.layout!=null&&(t.layout=String(l.layout)),l.showUrls){if(!Array.isArray(l.showUrls))throw TypeError(".bilibili.ad.v1.AdContentExtraDto.showUrls: array expected");t.showUrls=[];for(let i=0;i>>0,l.shopId.high>>>0).toNumber())),l.upMid!=null&&(r.Long?(t.upMid=r.Long.fromValue(l.upMid)).unsigned=!1:typeof l.upMid=="string"?t.upMid=parseInt(l.upMid,10):typeof l.upMid=="number"?t.upMid=l.upMid:typeof l.upMid=="object"&&(t.upMid=new r.LongBits(l.upMid.low>>>0,l.upMid.high>>>0).toNumber())),l.trackId!=null&&(t.trackId=String(l.trackId)),l.enableStoreDirectLaunch!=null&&(t.enableStoreDirectLaunch=l.enableStoreDirectLaunch|0),l.productId!=null&&(r.Long?(t.productId=r.Long.fromValue(l.productId)).unsigned=!1:typeof l.productId=="string"?t.productId=parseInt(l.productId,10):typeof l.productId=="number"?t.productId=l.productId:typeof l.productId=="object"&&(t.productId=new r.LongBits(l.productId.low>>>0,l.productId.high>>>0).toNumber())),l.enableDoubleJump!=null&&(t.enableDoubleJump=!!l.enableDoubleJump),l.show_1sUrls){if(!Array.isArray(l.show_1sUrls))throw TypeError(".bilibili.ad.v1.AdContentExtraDto.show_1sUrls: array expected");t.show_1sUrls=[];for(let i=0;i>>0,l.liveBookingId.high>>>0).toNumber())),l.storeDplinkXiaomi!=null&&(t.storeDplinkXiaomi=String(l.storeDplinkXiaomi)),t},c.toObject=function(l,t){t||(t={});let i={};if((t.arrays||t.defaults)&&(i.showUrls=[],i.clickUrls=[],i.danmuListShowUrls=[],i.danmuListClickUrls=[],i.danmuDetailShowUrls=[],i.danmuTrolleyAddUrls=[],i.openWhitelist=[],i.downloadWhitelist=[],i.show_1sUrls=[]),t.defaults){if(i.layout="",i.useAdWebV2=!1,i.card=null,i.reportTime=0,i.appstorePriority=0,i.salesType=0,i.preloadLandingpage=0,i.specialIndustry=!1,i.specialIndustryTips="",i.enableDownloadDialog=!1,i.enableShare=!1,i.upzoneEntranceType=0,i.upzoneEntranceReportId=0,i.shareInfo=null,i.topviewPicUrl="",i.topviewVideoUrl="",i.clickArea=0,r.Long){let n=new r.Long(0,0,!1);i.shopId=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.shopId=t.longs===String?"0":0;if(r.Long){let n=new r.Long(0,0,!1);i.upMid=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.upMid=t.longs===String?"0":0;if(i.trackId="",i.enableStoreDirectLaunch=0,r.Long){let n=new r.Long(0,0,!1);i.productId=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.productId=t.longs===String?"0":0;if(i.enableDoubleJump=!1,i.fromTrackId="",i.storeCallupCard=!1,i.landingpageDownloadStyle=0,i.specialIndustryStyle=0,i.enableH5Alert=!1,i.macroReplacePriority=0,i.feedbackPanelStyle=0,i.appstoreUrl="",i.enableH5PreLoad=0,i.h5PreLoadUrl="",i.cmFromTrackId="",i.abtest="",i.downloadUrlType=0,i.enableAutoCallup=0,i.externalLinkWarning="",r.Long){let n=new r.Long(0,0,!1);i.liveBookingId=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.liveBookingId=t.longs===String?"0":0;i.storeDplinkXiaomi=""}if(l.layout!=null&&l.hasOwnProperty("layout")&&(i.layout=l.layout),l.showUrls&&l.showUrls.length){i.showUrls=[];for(let n=0;n>>0,l.shopId.high>>>0).toNumber():l.shopId),l.upMid!=null&&l.hasOwnProperty("upMid")&&(typeof l.upMid=="number"?i.upMid=t.longs===String?String(l.upMid):l.upMid:i.upMid=t.longs===String?r.Long.prototype.toString.call(l.upMid):t.longs===Number?new r.LongBits(l.upMid.low>>>0,l.upMid.high>>>0).toNumber():l.upMid),l.trackId!=null&&l.hasOwnProperty("trackId")&&(i.trackId=l.trackId),l.enableStoreDirectLaunch!=null&&l.hasOwnProperty("enableStoreDirectLaunch")&&(i.enableStoreDirectLaunch=l.enableStoreDirectLaunch),l.productId!=null&&l.hasOwnProperty("productId")&&(typeof l.productId=="number"?i.productId=t.longs===String?String(l.productId):l.productId:i.productId=t.longs===String?r.Long.prototype.toString.call(l.productId):t.longs===Number?new r.LongBits(l.productId.low>>>0,l.productId.high>>>0).toNumber():l.productId),l.enableDoubleJump!=null&&l.hasOwnProperty("enableDoubleJump")&&(i.enableDoubleJump=l.enableDoubleJump),l.show_1sUrls&&l.show_1sUrls.length){i.show_1sUrls=[];for(let n=0;n>>0,l.liveBookingId.high>>>0).toNumber():l.liveBookingId),l.storeDplinkXiaomi!=null&&l.hasOwnProperty("storeDplinkXiaomi")&&(i.storeDplinkXiaomi=l.storeDplinkXiaomi),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.ad.v1.AdContentExtraDto"},c}(),p.CreativeDto=function(){function c(e){if(e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.title=l.string();break}case 2:{n.description=l.string();break}case 3:{n.imageUrl=l.string();break}case 4:{n.imageMd5=l.string();break}case 5:{n.url=l.string();break}case 6:{n.clickUrl=l.string();break}case 7:{n.showUrl=l.string();break}case 8:{n.videoId=l.int64();break}case 9:{n.thumbnailUrl=l.string();break}case 10:{n.thumbnailUrlMd5=l.string();break}case 11:{n.logoUrl=l.string();break}case 12:{n.logoMd5=l.string();break}case 13:{n.username=l.string();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.ad.v1.CreativeDto)return l;let t=new u.bilibili.ad.v1.CreativeDto;return l.title!=null&&(t.title=String(l.title)),l.description!=null&&(t.description=String(l.description)),l.imageUrl!=null&&(t.imageUrl=String(l.imageUrl)),l.imageMd5!=null&&(t.imageMd5=String(l.imageMd5)),l.url!=null&&(t.url=String(l.url)),l.clickUrl!=null&&(t.clickUrl=String(l.clickUrl)),l.showUrl!=null&&(t.showUrl=String(l.showUrl)),l.videoId!=null&&(r.Long?(t.videoId=r.Long.fromValue(l.videoId)).unsigned=!1:typeof l.videoId=="string"?t.videoId=parseInt(l.videoId,10):typeof l.videoId=="number"?t.videoId=l.videoId:typeof l.videoId=="object"&&(t.videoId=new r.LongBits(l.videoId.low>>>0,l.videoId.high>>>0).toNumber())),l.thumbnailUrl!=null&&(t.thumbnailUrl=String(l.thumbnailUrl)),l.thumbnailUrlMd5!=null&&(t.thumbnailUrlMd5=String(l.thumbnailUrlMd5)),l.logoUrl!=null&&(t.logoUrl=String(l.logoUrl)),l.logoMd5!=null&&(t.logoMd5=String(l.logoMd5)),l.username!=null&&(t.username=String(l.username)),t},c.toObject=function(l,t){t||(t={});let i={};if(t.defaults){if(i.title="",i.description="",i.imageUrl="",i.imageMd5="",i.url="",i.clickUrl="",i.showUrl="",r.Long){let n=new r.Long(0,0,!1);i.videoId=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.videoId=t.longs===String?"0":0;i.thumbnailUrl="",i.thumbnailUrlMd5="",i.logoUrl="",i.logoMd5="",i.username=""}return l.title!=null&&l.hasOwnProperty("title")&&(i.title=l.title),l.description!=null&&l.hasOwnProperty("description")&&(i.description=l.description),l.imageUrl!=null&&l.hasOwnProperty("imageUrl")&&(i.imageUrl=l.imageUrl),l.imageMd5!=null&&l.hasOwnProperty("imageMd5")&&(i.imageMd5=l.imageMd5),l.url!=null&&l.hasOwnProperty("url")&&(i.url=l.url),l.clickUrl!=null&&l.hasOwnProperty("clickUrl")&&(i.clickUrl=l.clickUrl),l.showUrl!=null&&l.hasOwnProperty("showUrl")&&(i.showUrl=l.showUrl),l.videoId!=null&&l.hasOwnProperty("videoId")&&(typeof l.videoId=="number"?i.videoId=t.longs===String?String(l.videoId):l.videoId:i.videoId=t.longs===String?r.Long.prototype.toString.call(l.videoId):t.longs===Number?new r.LongBits(l.videoId.low>>>0,l.videoId.high>>>0).toNumber():l.videoId),l.thumbnailUrl!=null&&l.hasOwnProperty("thumbnailUrl")&&(i.thumbnailUrl=l.thumbnailUrl),l.thumbnailUrlMd5!=null&&l.hasOwnProperty("thumbnailUrlMd5")&&(i.thumbnailUrlMd5=l.thumbnailUrlMd5),l.logoUrl!=null&&l.hasOwnProperty("logoUrl")&&(i.logoUrl=l.logoUrl),l.logoMd5!=null&&l.hasOwnProperty("logoMd5")&&(i.logoMd5=l.logoMd5),l.username!=null&&l.hasOwnProperty("username")&&(i.username=l.username),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.ad.v1.CreativeDto"},c}(),p.AppPackageDto=function(){function c(e){if(e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.size=l.int64();break}case 2:{n.displayName=l.string();break}case 3:{n.apkName=l.string();break}case 4:{n.url=l.string();break}case 5:{n.biliUrl=l.string();break}case 6:{n.md5=l.string();break}case 7:{n.icon=l.string();break}case 8:{n.devName=l.string();break}case 9:{n.authUrl=l.string();break}case 10:{n.authName=l.string();break}case 11:{n.version=l.string();break}case 12:{n.updateTime=l.string();break}case 13:{n.privacyName=l.string();break}case 14:{n.privacyUrl=l.string();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.ad.v1.AppPackageDto)return l;let t=new u.bilibili.ad.v1.AppPackageDto;return l.size!=null&&(r.Long?(t.size=r.Long.fromValue(l.size)).unsigned=!1:typeof l.size=="string"?t.size=parseInt(l.size,10):typeof l.size=="number"?t.size=l.size:typeof l.size=="object"&&(t.size=new r.LongBits(l.size.low>>>0,l.size.high>>>0).toNumber())),l.displayName!=null&&(t.displayName=String(l.displayName)),l.apkName!=null&&(t.apkName=String(l.apkName)),l.url!=null&&(t.url=String(l.url)),l.biliUrl!=null&&(t.biliUrl=String(l.biliUrl)),l.md5!=null&&(t.md5=String(l.md5)),l.icon!=null&&(t.icon=String(l.icon)),l.devName!=null&&(t.devName=String(l.devName)),l.authUrl!=null&&(t.authUrl=String(l.authUrl)),l.authName!=null&&(t.authName=String(l.authName)),l.version!=null&&(t.version=String(l.version)),l.updateTime!=null&&(t.updateTime=String(l.updateTime)),l.privacyName!=null&&(t.privacyName=String(l.privacyName)),l.privacyUrl!=null&&(t.privacyUrl=String(l.privacyUrl)),t},c.toObject=function(l,t){t||(t={});let i={};if(t.defaults){if(r.Long){let n=new r.Long(0,0,!1);i.size=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.size=t.longs===String?"0":0;i.displayName="",i.apkName="",i.url="",i.biliUrl="",i.md5="",i.icon="",i.devName="",i.authUrl="",i.authName="",i.version="",i.updateTime="",i.privacyName="",i.privacyUrl=""}return l.size!=null&&l.hasOwnProperty("size")&&(typeof l.size=="number"?i.size=t.longs===String?String(l.size):l.size:i.size=t.longs===String?r.Long.prototype.toString.call(l.size):t.longs===Number?new r.LongBits(l.size.low>>>0,l.size.high>>>0).toNumber():l.size),l.displayName!=null&&l.hasOwnProperty("displayName")&&(i.displayName=l.displayName),l.apkName!=null&&l.hasOwnProperty("apkName")&&(i.apkName=l.apkName),l.url!=null&&l.hasOwnProperty("url")&&(i.url=l.url),l.biliUrl!=null&&l.hasOwnProperty("biliUrl")&&(i.biliUrl=l.biliUrl),l.md5!=null&&l.hasOwnProperty("md5")&&(i.md5=l.md5),l.icon!=null&&l.hasOwnProperty("icon")&&(i.icon=l.icon),l.devName!=null&&l.hasOwnProperty("devName")&&(i.devName=l.devName),l.authUrl!=null&&l.hasOwnProperty("authUrl")&&(i.authUrl=l.authUrl),l.authName!=null&&l.hasOwnProperty("authName")&&(i.authName=l.authName),l.version!=null&&l.hasOwnProperty("version")&&(i.version=l.version),l.updateTime!=null&&l.hasOwnProperty("updateTime")&&(i.updateTime=l.updateTime),l.privacyName!=null&&l.hasOwnProperty("privacyName")&&(i.privacyName=l.privacyName),l.privacyUrl!=null&&l.hasOwnProperty("privacyUrl")&&(i.privacyUrl=l.privacyUrl),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.ad.v1.AppPackageDto"},c}(),p.WxProgramInfo=function(){function c(e){if(e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.orgId=l.string();break}case 2:{n.name=l.string();break}case 3:{n.path=l.string();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.ad.v1.WxProgramInfo)return l;let t=new u.bilibili.ad.v1.WxProgramInfo;return l.orgId!=null&&(t.orgId=String(l.orgId)),l.name!=null&&(t.name=String(l.name)),l.path!=null&&(t.path=String(l.path)),t},c.toObject=function(l,t){t||(t={});let i={};return t.defaults&&(i.orgId="",i.name="",i.path=""),l.orgId!=null&&l.hasOwnProperty("orgId")&&(i.orgId=l.orgId),l.name!=null&&l.hasOwnProperty("name")&&(i.name=l.name),l.path!=null&&l.hasOwnProperty("path")&&(i.path=l.path),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.ad.v1.WxProgramInfo"},c}(),p.AdCardDto=function(){function c(e){if(this.covers=[],this.videoBarrage=[],this.qualityInfos=[],this.gameTags=[],e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.cardType=l.int32();break}case 2:{n.title=l.string();break}case 3:{n.desc=l.string();break}case 4:{n.extraDesc=l.string();break}case 5:{n.longDesc=l.string();break}case 6:{n.shortTitle=l.string();break}case 7:{n.danmuTitle=l.string();break}case 8:{n.danmuHeight=l.int32();break}case 9:{n.danmuWidth=l.int32();break}case 10:{n.danmuLife=l.int32();break}case 11:{n.danmuBegin=l.int32();break}case 12:{n.danmuColor=l.string();break}case 13:{n.danmuH5url=l.string();break}case 14:{n.danmuIcon=l.string();break}case 15:{n.foldTime=l.int32();break}case 16:{n.adTag=l.string();break}case 17:{n.covers&&n.covers.length||(n.covers=[]),n.covers.push(u.bilibili.ad.v1.AdCoverDto.decode(l,l.uint32()));break}case 18:{n.jumpUrl=l.string();break}case 19:{n.imaxLandingPageJsonString=l.string();break}case 20:{n.callupUrl=l.string();break}case 21:{n.universalApp=l.string();break}case 22:{n.oriPrice=l.string();break}case 23:{n.curPrice=l.int32();break}case 24:{n.priceDesc=l.string();break}case 25:{n.priceSymbol=l.string();break}case 26:{n.goodsCurPrice=l.string();break}case 27:{n.goodsOriPrice=l.string();break}case 28:{n.good=u.bilibili.ad.v1.AdGoodDto.decode(l,l.uint32());break}case 29:{n.rank=l.int32();break}case 30:{n.hotScore=l.int32();break}case 31:{n.button=u.bilibili.ad.v1.AdButtonDto.decode(l,l.uint32());break}case 32:{n.adverLogo=l.string();break}case 33:{n.adverName=l.string();break}case 34:{n.adverPageUrl=l.string();break}case 35:{n.videoBarrage&&n.videoBarrage.length||(n.videoBarrage=[]),n.videoBarrage.push(l.string());break}case 36:{n.adTagStyle=u.bilibili.ad.v1.AdBusinessMarkDto.decode(l,l.uint32());break}case 37:{n.video=u.bilibili.ad.v1.AdAutoPlayVideoDto.decode(l,l.uint32());break}case 38:{n.feedbackPanel=u.bilibili.ad.v1.AdFeedbackPanelDto.decode(l,l.uint32());break}case 39:{n.adverMid=l.int64();break}case 40:{n.adverAccountId=l.int64();break}case 41:{n.duration=l.string();break}case 42:{n.qualityInfos&&n.qualityInfos.length||(n.qualityInfos=[]),n.qualityInfos.push(u.bilibili.ad.v1.QualityInfo.decode(l,l.uint32()));break}case 43:{n.dynamicText=l.string();break}case 44:{n.adver=u.bilibili.ad.v1.AdverDto.decode(l,l.uint32());break}case 45:{n.gradeLevel=l.int32();break}case 46:{n.supportTransition=l.bool();break}case 47:{n.transition=l.string();break}case 48:{n.underPlayerInteractionStyle=l.int32();break}case 49:{n.imaxLandingPageV2=l.string();break}case 50:{n.subcardModule=u.bilibili.ad.v1.SubCardModule.decode(l,l.uint32());break}case 51:{n.gradeDenominator=l.int32();break}case 52:{n.starLevel=l.int32();break}case 53:{n.bulletin=u.bilibili.ad.v1.Bulletin.decode(l,l.uint32());break}case 54:{n.gift=u.bilibili.ad.v1.Gift.decode(l,l.uint32());break}case 55:{n.gameTags&&n.gameTags.length||(n.gameTags=[]),n.gameTags.push(l.string());break}case 56:{n.oriMarkHidden=l.int32();break}case 57:{n.useMultiCover=l.bool();break}case 58:{n.wxProgramInfo=u.bilibili.ad.v1.WxProgramInfo.decode(l,l.uint32());break}case 59:{n.androidGamePageRes=u.bilibili.ad.v1.AndroidGamePageRes.decode(l,l.uint32());break}case 60:{n.notClickableArea=u.bilibili.ad.v1.NotClickableArea.decode(l,l.uint32());break}case 61:{n.forwardReply=u.bilibili.ad.v1.ForwardReply.decode(l,l.uint32());break}case 62:{n.avContent=l.string();break}case 63:{n.animInEnable=l.int32();break}case 64:{n.extraParams=l.string();break}case 65:{n.goodsItemId=l.int64();break}case 66:{n.cardStyle=l.int32();break}case 67:{n.gameInfo=u.bilibili.ad.v1.GameInfo.decode(l,l.uint32());break}case 68:{n.leftCoverBadgeNewStyle=u.bilibili.ad.v1.LeftCoverBadgeNewStyle.decode(l,l.uint32());break}case 69:{n.gameRank=u.bilibili.ad.v1.GameRank.decode(l,l.uint32());break}case 70:{n.gameRating=l.string();break}case 71:{n.rcmdReasonStyle=u.bilibili.ad.v1.FeedsRcmdReasonStyle.decode(l,l.uint32());break}case 72:{n.underframeCardStyle=l.int32();break}case 73:{n.lotteryText=l.string();break}case 74:{n.calenderInfo=u.bilibili.ad.v1.AdCardCalenderInfo.decode(l,l.uint32());break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.ad.v1.AdCardDto)return l;let t=new u.bilibili.ad.v1.AdCardDto;if(l.cardType!=null&&(t.cardType=l.cardType|0),l.title!=null&&(t.title=String(l.title)),l.desc!=null&&(t.desc=String(l.desc)),l.extraDesc!=null&&(t.extraDesc=String(l.extraDesc)),l.longDesc!=null&&(t.longDesc=String(l.longDesc)),l.shortTitle!=null&&(t.shortTitle=String(l.shortTitle)),l.danmuTitle!=null&&(t.danmuTitle=String(l.danmuTitle)),l.danmuHeight!=null&&(t.danmuHeight=l.danmuHeight|0),l.danmuWidth!=null&&(t.danmuWidth=l.danmuWidth|0),l.danmuLife!=null&&(t.danmuLife=l.danmuLife|0),l.danmuBegin!=null&&(t.danmuBegin=l.danmuBegin|0),l.danmuColor!=null&&(t.danmuColor=String(l.danmuColor)),l.danmuH5url!=null&&(t.danmuH5url=String(l.danmuH5url)),l.danmuIcon!=null&&(t.danmuIcon=String(l.danmuIcon)),l.foldTime!=null&&(t.foldTime=l.foldTime|0),l.adTag!=null&&(t.adTag=String(l.adTag)),l.covers){if(!Array.isArray(l.covers))throw TypeError(".bilibili.ad.v1.AdCardDto.covers: array expected");t.covers=[];for(let i=0;i>>0,l.adverMid.high>>>0).toNumber())),l.adverAccountId!=null&&(r.Long?(t.adverAccountId=r.Long.fromValue(l.adverAccountId)).unsigned=!1:typeof l.adverAccountId=="string"?t.adverAccountId=parseInt(l.adverAccountId,10):typeof l.adverAccountId=="number"?t.adverAccountId=l.adverAccountId:typeof l.adverAccountId=="object"&&(t.adverAccountId=new r.LongBits(l.adverAccountId.low>>>0,l.adverAccountId.high>>>0).toNumber())),l.duration!=null&&(t.duration=String(l.duration)),l.qualityInfos){if(!Array.isArray(l.qualityInfos))throw TypeError(".bilibili.ad.v1.AdCardDto.qualityInfos: array expected");t.qualityInfos=[];for(let i=0;i>>0,l.goodsItemId.high>>>0).toNumber())),l.cardStyle!=null&&(t.cardStyle=l.cardStyle|0),l.gameInfo!=null){if(typeof l.gameInfo!="object")throw TypeError(".bilibili.ad.v1.AdCardDto.gameInfo: object expected");t.gameInfo=u.bilibili.ad.v1.GameInfo.fromObject(l.gameInfo)}if(l.leftCoverBadgeNewStyle!=null){if(typeof l.leftCoverBadgeNewStyle!="object")throw TypeError(".bilibili.ad.v1.AdCardDto.leftCoverBadgeNewStyle: object expected");t.leftCoverBadgeNewStyle=u.bilibili.ad.v1.LeftCoverBadgeNewStyle.fromObject(l.leftCoverBadgeNewStyle)}if(l.gameRank!=null){if(typeof l.gameRank!="object")throw TypeError(".bilibili.ad.v1.AdCardDto.gameRank: object expected");t.gameRank=u.bilibili.ad.v1.GameRank.fromObject(l.gameRank)}if(l.gameRating!=null&&(t.gameRating=String(l.gameRating)),l.rcmdReasonStyle!=null){if(typeof l.rcmdReasonStyle!="object")throw TypeError(".bilibili.ad.v1.AdCardDto.rcmdReasonStyle: object expected");t.rcmdReasonStyle=u.bilibili.ad.v1.FeedsRcmdReasonStyle.fromObject(l.rcmdReasonStyle)}if(l.underframeCardStyle!=null&&(t.underframeCardStyle=l.underframeCardStyle|0),l.lotteryText!=null&&(t.lotteryText=String(l.lotteryText)),l.calenderInfo!=null){if(typeof l.calenderInfo!="object")throw TypeError(".bilibili.ad.v1.AdCardDto.calenderInfo: object expected");t.calenderInfo=u.bilibili.ad.v1.AdCardCalenderInfo.fromObject(l.calenderInfo)}return t},c.toObject=function(l,t){t||(t={});let i={};if((t.arrays||t.defaults)&&(i.covers=[],i.videoBarrage=[],i.qualityInfos=[],i.gameTags=[]),t.defaults){if(i.cardType=0,i.title="",i.desc="",i.extraDesc="",i.longDesc="",i.shortTitle="",i.danmuTitle="",i.danmuHeight=0,i.danmuWidth=0,i.danmuLife=0,i.danmuBegin=0,i.danmuColor="",i.danmuH5url="",i.danmuIcon="",i.foldTime=0,i.adTag="",i.jumpUrl="",i.imaxLandingPageJsonString="",i.callupUrl="",i.universalApp="",i.oriPrice="",i.curPrice=0,i.priceDesc="",i.priceSymbol="",i.goodsCurPrice="",i.goodsOriPrice="",i.good=null,i.rank=0,i.hotScore=0,i.button=null,i.adverLogo="",i.adverName="",i.adverPageUrl="",i.adTagStyle=null,i.video=null,i.feedbackPanel=null,r.Long){let n=new r.Long(0,0,!1);i.adverMid=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.adverMid=t.longs===String?"0":0;if(r.Long){let n=new r.Long(0,0,!1);i.adverAccountId=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.adverAccountId=t.longs===String?"0":0;if(i.duration="",i.dynamicText="",i.adver=null,i.gradeLevel=0,i.supportTransition=!1,i.transition="",i.underPlayerInteractionStyle=0,i.imaxLandingPageV2="",i.subcardModule=null,i.gradeDenominator=0,i.starLevel=0,i.bulletin=null,i.gift=null,i.oriMarkHidden=0,i.useMultiCover=!1,i.wxProgramInfo=null,i.androidGamePageRes=null,i.notClickableArea=null,i.forwardReply=null,i.avContent="",i.animInEnable=0,i.extraParams="",r.Long){let n=new r.Long(0,0,!1);i.goodsItemId=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.goodsItemId=t.longs===String?"0":0;i.cardStyle=0,i.gameInfo=null,i.leftCoverBadgeNewStyle=null,i.gameRank=null,i.gameRating="",i.rcmdReasonStyle=null,i.underframeCardStyle=0,i.lotteryText="",i.calenderInfo=null}if(l.cardType!=null&&l.hasOwnProperty("cardType")&&(i.cardType=l.cardType),l.title!=null&&l.hasOwnProperty("title")&&(i.title=l.title),l.desc!=null&&l.hasOwnProperty("desc")&&(i.desc=l.desc),l.extraDesc!=null&&l.hasOwnProperty("extraDesc")&&(i.extraDesc=l.extraDesc),l.longDesc!=null&&l.hasOwnProperty("longDesc")&&(i.longDesc=l.longDesc),l.shortTitle!=null&&l.hasOwnProperty("shortTitle")&&(i.shortTitle=l.shortTitle),l.danmuTitle!=null&&l.hasOwnProperty("danmuTitle")&&(i.danmuTitle=l.danmuTitle),l.danmuHeight!=null&&l.hasOwnProperty("danmuHeight")&&(i.danmuHeight=l.danmuHeight),l.danmuWidth!=null&&l.hasOwnProperty("danmuWidth")&&(i.danmuWidth=l.danmuWidth),l.danmuLife!=null&&l.hasOwnProperty("danmuLife")&&(i.danmuLife=l.danmuLife),l.danmuBegin!=null&&l.hasOwnProperty("danmuBegin")&&(i.danmuBegin=l.danmuBegin),l.danmuColor!=null&&l.hasOwnProperty("danmuColor")&&(i.danmuColor=l.danmuColor),l.danmuH5url!=null&&l.hasOwnProperty("danmuH5url")&&(i.danmuH5url=l.danmuH5url),l.danmuIcon!=null&&l.hasOwnProperty("danmuIcon")&&(i.danmuIcon=l.danmuIcon),l.foldTime!=null&&l.hasOwnProperty("foldTime")&&(i.foldTime=l.foldTime),l.adTag!=null&&l.hasOwnProperty("adTag")&&(i.adTag=l.adTag),l.covers&&l.covers.length){i.covers=[];for(let n=0;n>>0,l.adverMid.high>>>0).toNumber():l.adverMid),l.adverAccountId!=null&&l.hasOwnProperty("adverAccountId")&&(typeof l.adverAccountId=="number"?i.adverAccountId=t.longs===String?String(l.adverAccountId):l.adverAccountId:i.adverAccountId=t.longs===String?r.Long.prototype.toString.call(l.adverAccountId):t.longs===Number?new r.LongBits(l.adverAccountId.low>>>0,l.adverAccountId.high>>>0).toNumber():l.adverAccountId),l.duration!=null&&l.hasOwnProperty("duration")&&(i.duration=l.duration),l.qualityInfos&&l.qualityInfos.length){i.qualityInfos=[];for(let n=0;n>>0,l.goodsItemId.high>>>0).toNumber():l.goodsItemId),l.cardStyle!=null&&l.hasOwnProperty("cardStyle")&&(i.cardStyle=l.cardStyle),l.gameInfo!=null&&l.hasOwnProperty("gameInfo")&&(i.gameInfo=u.bilibili.ad.v1.GameInfo.toObject(l.gameInfo,t)),l.leftCoverBadgeNewStyle!=null&&l.hasOwnProperty("leftCoverBadgeNewStyle")&&(i.leftCoverBadgeNewStyle=u.bilibili.ad.v1.LeftCoverBadgeNewStyle.toObject(l.leftCoverBadgeNewStyle,t)),l.gameRank!=null&&l.hasOwnProperty("gameRank")&&(i.gameRank=u.bilibili.ad.v1.GameRank.toObject(l.gameRank,t)),l.gameRating!=null&&l.hasOwnProperty("gameRating")&&(i.gameRating=l.gameRating),l.rcmdReasonStyle!=null&&l.hasOwnProperty("rcmdReasonStyle")&&(i.rcmdReasonStyle=u.bilibili.ad.v1.FeedsRcmdReasonStyle.toObject(l.rcmdReasonStyle,t)),l.underframeCardStyle!=null&&l.hasOwnProperty("underframeCardStyle")&&(i.underframeCardStyle=l.underframeCardStyle),l.lotteryText!=null&&l.hasOwnProperty("lotteryText")&&(i.lotteryText=l.lotteryText),l.calenderInfo!=null&&l.hasOwnProperty("calenderInfo")&&(i.calenderInfo=u.bilibili.ad.v1.AdCardCalenderInfo.toObject(l.calenderInfo,t)),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.ad.v1.AdCardDto"},c}(),p.AdCardCalenderInfo=function(){function c(e){if(e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.title=l.string();break}case 2:{n.startTime=l.int64();break}case 3:{n.endTime=l.int64();break}case 4:{n.calenderId=l.int32();break}case 5:{n.comment=l.string();break}case 6:{n.calendarIdStr=l.string();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.ad.v1.AdCardCalenderInfo)return l;let t=new u.bilibili.ad.v1.AdCardCalenderInfo;return l.title!=null&&(t.title=String(l.title)),l.startTime!=null&&(r.Long?(t.startTime=r.Long.fromValue(l.startTime)).unsigned=!1:typeof l.startTime=="string"?t.startTime=parseInt(l.startTime,10):typeof l.startTime=="number"?t.startTime=l.startTime:typeof l.startTime=="object"&&(t.startTime=new r.LongBits(l.startTime.low>>>0,l.startTime.high>>>0).toNumber())),l.endTime!=null&&(r.Long?(t.endTime=r.Long.fromValue(l.endTime)).unsigned=!1:typeof l.endTime=="string"?t.endTime=parseInt(l.endTime,10):typeof l.endTime=="number"?t.endTime=l.endTime:typeof l.endTime=="object"&&(t.endTime=new r.LongBits(l.endTime.low>>>0,l.endTime.high>>>0).toNumber())),l.calenderId!=null&&(t.calenderId=l.calenderId|0),l.comment!=null&&(t.comment=String(l.comment)),l.calendarIdStr!=null&&(t.calendarIdStr=String(l.calendarIdStr)),t},c.toObject=function(l,t){t||(t={});let i={};if(t.defaults){if(i.title="",r.Long){let n=new r.Long(0,0,!1);i.startTime=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.startTime=t.longs===String?"0":0;if(r.Long){let n=new r.Long(0,0,!1);i.endTime=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.endTime=t.longs===String?"0":0;i.calenderId=0,i.comment="",i.calendarIdStr=""}return l.title!=null&&l.hasOwnProperty("title")&&(i.title=l.title),l.startTime!=null&&l.hasOwnProperty("startTime")&&(typeof l.startTime=="number"?i.startTime=t.longs===String?String(l.startTime):l.startTime:i.startTime=t.longs===String?r.Long.prototype.toString.call(l.startTime):t.longs===Number?new r.LongBits(l.startTime.low>>>0,l.startTime.high>>>0).toNumber():l.startTime),l.endTime!=null&&l.hasOwnProperty("endTime")&&(typeof l.endTime=="number"?i.endTime=t.longs===String?String(l.endTime):l.endTime:i.endTime=t.longs===String?r.Long.prototype.toString.call(l.endTime):t.longs===Number?new r.LongBits(l.endTime.low>>>0,l.endTime.high>>>0).toNumber():l.endTime),l.calenderId!=null&&l.hasOwnProperty("calenderId")&&(i.calenderId=l.calenderId),l.comment!=null&&l.hasOwnProperty("comment")&&(i.comment=l.comment),l.calendarIdStr!=null&&l.hasOwnProperty("calendarIdStr")&&(i.calendarIdStr=l.calendarIdStr),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.ad.v1.AdCardCalenderInfo"},c}(),p.FeedsRcmdReasonStyle=function(){function c(e){if(e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.bgColor=l.string();break}case 2:{n.bgColorNight=l.string();break}case 3:{n.bgStyle=l.int32();break}case 4:{n.borderColor=l.string();break}case 5:{n.borderColorNight=l.string();break}case 6:{n.textColor=l.string();break}case 7:{n.textColorNight=l.string();break}case 8:{n.text=l.string();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.ad.v1.FeedsRcmdReasonStyle)return l;let t=new u.bilibili.ad.v1.FeedsRcmdReasonStyle;return l.bgColor!=null&&(t.bgColor=String(l.bgColor)),l.bgColorNight!=null&&(t.bgColorNight=String(l.bgColorNight)),l.bgStyle!=null&&(t.bgStyle=l.bgStyle|0),l.borderColor!=null&&(t.borderColor=String(l.borderColor)),l.borderColorNight!=null&&(t.borderColorNight=String(l.borderColorNight)),l.textColor!=null&&(t.textColor=String(l.textColor)),l.textColorNight!=null&&(t.textColorNight=String(l.textColorNight)),l.text!=null&&(t.text=String(l.text)),t},c.toObject=function(l,t){t||(t={});let i={};return t.defaults&&(i.bgColor="",i.bgColorNight="",i.bgStyle=0,i.borderColor="",i.borderColorNight="",i.textColor="",i.textColorNight="",i.text=""),l.bgColor!=null&&l.hasOwnProperty("bgColor")&&(i.bgColor=l.bgColor),l.bgColorNight!=null&&l.hasOwnProperty("bgColorNight")&&(i.bgColorNight=l.bgColorNight),l.bgStyle!=null&&l.hasOwnProperty("bgStyle")&&(i.bgStyle=l.bgStyle),l.borderColor!=null&&l.hasOwnProperty("borderColor")&&(i.borderColor=l.borderColor),l.borderColorNight!=null&&l.hasOwnProperty("borderColorNight")&&(i.borderColorNight=l.borderColorNight),l.textColor!=null&&l.hasOwnProperty("textColor")&&(i.textColor=l.textColor),l.textColorNight!=null&&l.hasOwnProperty("textColorNight")&&(i.textColorNight=l.textColorNight),l.text!=null&&l.hasOwnProperty("text")&&(i.text=l.text),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.ad.v1.FeedsRcmdReasonStyle"},c}(),p.GameRank=function(){function c(e){if(e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.iconUrl=l.string();break}case 2:{n.nightIconUrl=l.string();break}case 3:{n.bkgNightColor=l.string();break}case 4:{n.bkgDayColor=l.string();break}case 5:{n.fontNightColor=l.string();break}case 6:{n.fontDayColor=l.string();break}case 7:{n.rankContent=l.string();break}case 8:{n.rankLink=l.string();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.ad.v1.GameRank)return l;let t=new u.bilibili.ad.v1.GameRank;return l.iconUrl!=null&&(t.iconUrl=String(l.iconUrl)),l.nightIconUrl!=null&&(t.nightIconUrl=String(l.nightIconUrl)),l.bkgNightColor!=null&&(t.bkgNightColor=String(l.bkgNightColor)),l.bkgDayColor!=null&&(t.bkgDayColor=String(l.bkgDayColor)),l.fontNightColor!=null&&(t.fontNightColor=String(l.fontNightColor)),l.fontDayColor!=null&&(t.fontDayColor=String(l.fontDayColor)),l.rankContent!=null&&(t.rankContent=String(l.rankContent)),l.rankLink!=null&&(t.rankLink=String(l.rankLink)),t},c.toObject=function(l,t){t||(t={});let i={};return t.defaults&&(i.iconUrl="",i.nightIconUrl="",i.bkgNightColor="",i.bkgDayColor="",i.fontNightColor="",i.fontDayColor="",i.rankContent="",i.rankLink=""),l.iconUrl!=null&&l.hasOwnProperty("iconUrl")&&(i.iconUrl=l.iconUrl),l.nightIconUrl!=null&&l.hasOwnProperty("nightIconUrl")&&(i.nightIconUrl=l.nightIconUrl),l.bkgNightColor!=null&&l.hasOwnProperty("bkgNightColor")&&(i.bkgNightColor=l.bkgNightColor),l.bkgDayColor!=null&&l.hasOwnProperty("bkgDayColor")&&(i.bkgDayColor=l.bkgDayColor),l.fontNightColor!=null&&l.hasOwnProperty("fontNightColor")&&(i.fontNightColor=l.fontNightColor),l.fontDayColor!=null&&l.hasOwnProperty("fontDayColor")&&(i.fontDayColor=l.fontDayColor),l.rankContent!=null&&l.hasOwnProperty("rankContent")&&(i.rankContent=l.rankContent),l.rankLink!=null&&l.hasOwnProperty("rankLink")&&(i.rankLink=l.rankLink),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.ad.v1.GameRank"},c}(),p.LeftCoverBadgeNewStyle=function(){function c(e){if(e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.iconUrl=l.string();break}case 2:{n.iconNightUrl=l.string();break}case 3:{n.iconWidth=l.int32();break}case 4:{n.iconHeight=l.int32();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.ad.v1.LeftCoverBadgeNewStyle)return l;let t=new u.bilibili.ad.v1.LeftCoverBadgeNewStyle;return l.iconUrl!=null&&(t.iconUrl=String(l.iconUrl)),l.iconNightUrl!=null&&(t.iconNightUrl=String(l.iconNightUrl)),l.iconWidth!=null&&(t.iconWidth=l.iconWidth|0),l.iconHeight!=null&&(t.iconHeight=l.iconHeight|0),t},c.toObject=function(l,t){t||(t={});let i={};return t.defaults&&(i.iconUrl="",i.iconNightUrl="",i.iconWidth=0,i.iconHeight=0),l.iconUrl!=null&&l.hasOwnProperty("iconUrl")&&(i.iconUrl=l.iconUrl),l.iconNightUrl!=null&&l.hasOwnProperty("iconNightUrl")&&(i.iconNightUrl=l.iconNightUrl),l.iconWidth!=null&&l.hasOwnProperty("iconWidth")&&(i.iconWidth=l.iconWidth),l.iconHeight!=null&&l.hasOwnProperty("iconHeight")&&(i.iconHeight=l.iconHeight),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.ad.v1.LeftCoverBadgeNewStyle"},c}(),p.GameInfo=function(){function c(e){if(e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.gameLogo=l.string();break}case 2:{n.gameName=l.string();break}case 3:{n.gameDesc=l.string();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.ad.v1.GameInfo)return l;let t=new u.bilibili.ad.v1.GameInfo;return l.gameLogo!=null&&(t.gameLogo=String(l.gameLogo)),l.gameName!=null&&(t.gameName=String(l.gameName)),l.gameDesc!=null&&(t.gameDesc=String(l.gameDesc)),t},c.toObject=function(l,t){t||(t={});let i={};return t.defaults&&(i.gameLogo="",i.gameName="",i.gameDesc=""),l.gameLogo!=null&&l.hasOwnProperty("gameLogo")&&(i.gameLogo=l.gameLogo),l.gameName!=null&&l.hasOwnProperty("gameName")&&(i.gameName=l.gameName),l.gameDesc!=null&&l.hasOwnProperty("gameDesc")&&(i.gameDesc=l.gameDesc),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.ad.v1.GameInfo"},c}(),p.Bulletin=function(){function c(e){if(e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.tagText=l.string();break}case 2:{n.text=l.string();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.ad.v1.Bulletin)return l;let t=new u.bilibili.ad.v1.Bulletin;return l.tagText!=null&&(t.tagText=String(l.tagText)),l.text!=null&&(t.text=String(l.text)),t},c.toObject=function(l,t){t||(t={});let i={};return t.defaults&&(i.tagText="",i.text=""),l.tagText!=null&&l.hasOwnProperty("tagText")&&(i.tagText=l.tagText),l.text!=null&&l.hasOwnProperty("text")&&(i.text=l.text),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.ad.v1.Bulletin"},c}(),p.Gift=function(){function c(e){if(e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.icon=l.string();break}case 2:{n.nightIcon=l.string();break}case 3:{n.text=l.string();break}case 4:{n.url=l.string();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.ad.v1.Gift)return l;let t=new u.bilibili.ad.v1.Gift;return l.icon!=null&&(t.icon=String(l.icon)),l.nightIcon!=null&&(t.nightIcon=String(l.nightIcon)),l.text!=null&&(t.text=String(l.text)),l.url!=null&&(t.url=String(l.url)),t},c.toObject=function(l,t){t||(t={});let i={};return t.defaults&&(i.icon="",i.nightIcon="",i.text="",i.url=""),l.icon!=null&&l.hasOwnProperty("icon")&&(i.icon=l.icon),l.nightIcon!=null&&l.hasOwnProperty("nightIcon")&&(i.nightIcon=l.nightIcon),l.text!=null&&l.hasOwnProperty("text")&&(i.text=l.text),l.url!=null&&l.hasOwnProperty("url")&&(i.url=l.url),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.ad.v1.Gift"},c}(),p.AdShareInfoDto=function(){function c(e){if(e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.title=l.string();break}case 2:{n.subtitle=l.string();break}case 3:{n.imageUrl=l.string();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.ad.v1.AdShareInfoDto)return l;let t=new u.bilibili.ad.v1.AdShareInfoDto;return l.title!=null&&(t.title=String(l.title)),l.subtitle!=null&&(t.subtitle=String(l.subtitle)),l.imageUrl!=null&&(t.imageUrl=String(l.imageUrl)),t},c.toObject=function(l,t){t||(t={});let i={};return t.defaults&&(i.title="",i.subtitle="",i.imageUrl=""),l.title!=null&&l.hasOwnProperty("title")&&(i.title=l.title),l.subtitle!=null&&l.hasOwnProperty("subtitle")&&(i.subtitle=l.subtitle),l.imageUrl!=null&&l.hasOwnProperty("imageUrl")&&(i.imageUrl=l.imageUrl),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.ad.v1.AdShareInfoDto"},c}(),p.AdCoverDto=function(){function c(e){if(this.reportUrls=[],e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.url=l.string();break}case 2:{n.loop=l.int32();break}case 3:{n.jumpUrl=l.string();break}case 4:{n.reportUrls&&n.reportUrls.length||(n.reportUrls=[]),n.reportUrls.push(l.string());break}case 5:{n.imageHeight=l.int32();break}case 6:{n.imageWidth=l.int32();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.ad.v1.AdCoverDto)return l;let t=new u.bilibili.ad.v1.AdCoverDto;if(l.url!=null&&(t.url=String(l.url)),l.loop!=null&&(t.loop=l.loop|0),l.jumpUrl!=null&&(t.jumpUrl=String(l.jumpUrl)),l.reportUrls){if(!Array.isArray(l.reportUrls))throw TypeError(".bilibili.ad.v1.AdCoverDto.reportUrls: array expected");t.reportUrls=[];for(let i=0;i>>3){case 1:{n.type=l.int32();break}case 2:{n.text=l.string();break}case 3:{n.jumpUrl=l.string();break}case 4:{n.reportUrls&&n.reportUrls.length||(n.reportUrls=[]),n.reportUrls.push(l.string());break}case 5:{n.dlsucCallupUrl=l.string();break}case 6:{n.gameId=l.int32();break}case 7:{n.gameMonitorParam=l.string();break}case 8:{n.gameChannelId=l.int32();break}case 9:{n.gameChannelExtra=l.string();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.ad.v1.AdButtonDto)return l;let t=new u.bilibili.ad.v1.AdButtonDto;if(l.type!=null&&(t.type=l.type|0),l.text!=null&&(t.text=String(l.text)),l.jumpUrl!=null&&(t.jumpUrl=String(l.jumpUrl)),l.reportUrls){if(!Array.isArray(l.reportUrls))throw TypeError(".bilibili.ad.v1.AdButtonDto.reportUrls: array expected");t.reportUrls=[];for(let i=0;i>>3){case 1:{n.type=l.int32();break}case 2:{n.text=l.string();break}case 3:{n.textColor=l.string();break}case 4:{n.textColorNight=l.string();break}case 5:{n.bgColor=l.string();break}case 6:{n.bgColorNight=l.string();break}case 7:{n.borderColor=l.string();break}case 8:{n.borderColorNight=l.string();break}case 9:{n.imgUrl=l.string();break}case 10:{n.imgHeight=l.int32();break}case 11:{n.imgWidth=l.int32();break}case 12:{n.bgBorderColor=l.string();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.ad.v1.AdBusinessMarkDto)return l;let t=new u.bilibili.ad.v1.AdBusinessMarkDto;return l.type!=null&&(t.type=l.type|0),l.text!=null&&(t.text=String(l.text)),l.textColor!=null&&(t.textColor=String(l.textColor)),l.textColorNight!=null&&(t.textColorNight=String(l.textColorNight)),l.bgColor!=null&&(t.bgColor=String(l.bgColor)),l.bgColorNight!=null&&(t.bgColorNight=String(l.bgColorNight)),l.borderColor!=null&&(t.borderColor=String(l.borderColor)),l.borderColorNight!=null&&(t.borderColorNight=String(l.borderColorNight)),l.imgUrl!=null&&(t.imgUrl=String(l.imgUrl)),l.imgHeight!=null&&(t.imgHeight=l.imgHeight|0),l.imgWidth!=null&&(t.imgWidth=l.imgWidth|0),l.bgBorderColor!=null&&(t.bgBorderColor=String(l.bgBorderColor)),t},c.toObject=function(l,t){t||(t={});let i={};return t.defaults&&(i.type=0,i.text="",i.textColor="",i.textColorNight="",i.bgColor="",i.bgColorNight="",i.borderColor="",i.borderColorNight="",i.imgUrl="",i.imgHeight=0,i.imgWidth=0,i.bgBorderColor=""),l.type!=null&&l.hasOwnProperty("type")&&(i.type=l.type),l.text!=null&&l.hasOwnProperty("text")&&(i.text=l.text),l.textColor!=null&&l.hasOwnProperty("textColor")&&(i.textColor=l.textColor),l.textColorNight!=null&&l.hasOwnProperty("textColorNight")&&(i.textColorNight=l.textColorNight),l.bgColor!=null&&l.hasOwnProperty("bgColor")&&(i.bgColor=l.bgColor),l.bgColorNight!=null&&l.hasOwnProperty("bgColorNight")&&(i.bgColorNight=l.bgColorNight),l.borderColor!=null&&l.hasOwnProperty("borderColor")&&(i.borderColor=l.borderColor),l.borderColorNight!=null&&l.hasOwnProperty("borderColorNight")&&(i.borderColorNight=l.borderColorNight),l.imgUrl!=null&&l.hasOwnProperty("imgUrl")&&(i.imgUrl=l.imgUrl),l.imgHeight!=null&&l.hasOwnProperty("imgHeight")&&(i.imgHeight=l.imgHeight),l.imgWidth!=null&&l.hasOwnProperty("imgWidth")&&(i.imgWidth=l.imgWidth),l.bgBorderColor!=null&&l.hasOwnProperty("bgBorderColor")&&(i.bgBorderColor=l.bgBorderColor),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.ad.v1.AdBusinessMarkDto"},c}(),p.AdAutoPlayVideoDto=function(){function c(e){if(this.process0Urls=[],this.play_3sUrls=[],this.play_5sUrls=[],this.customPlayUrls=[],this.play_10sUrls=[],this.play_15sUrls=[],e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.avid=l.int64();break}case 2:{n.cid=l.int64();break}case 3:{n.page=l.int64();break}case 4:{n.from=l.string();break}case 5:{n.url=l.string();break}case 6:{n.cover=l.string();break}case 7:{n.autoPlay=l.bool();break}case 8:{n.btnDycColor=l.bool();break}case 9:{n.btnDycTime=l.int32();break}case 10:{n.bizId=l.int64();break}case 11:{n.process0Urls&&n.process0Urls.length||(n.process0Urls=[]),n.process0Urls.push(l.string());break}case 12:{n.play_3sUrls&&n.play_3sUrls.length||(n.play_3sUrls=[]),n.play_3sUrls.push(l.string());break}case 13:{n.play_5sUrls&&n.play_5sUrls.length||(n.play_5sUrls=[]),n.play_5sUrls.push(l.string());break}case 14:{n.orientation=l.int32();break}case 15:{n.fromSpmid=l.string();break}case 16:{n.autoPlayValue=l.int32();break}case 17:{n.height=l.int32();break}case 18:{n.width=l.int32();break}case 19:{n.customPlayUrls&&n.customPlayUrls.length||(n.customPlayUrls=[]),n.customPlayUrls.push(u.bilibili.ad.v1.CustomPlayUrl.decode(l,l.uint32()));break}case 20:{n.play_10sUrls&&n.play_10sUrls.length||(n.play_10sUrls=[]),n.play_10sUrls.push(l.string());break}case 21:{n.play_15sUrls&&n.play_15sUrls.length||(n.play_15sUrls=[]),n.play_15sUrls.push(l.string());break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.ad.v1.AdAutoPlayVideoDto)return l;let t=new u.bilibili.ad.v1.AdAutoPlayVideoDto;if(l.avid!=null&&(r.Long?(t.avid=r.Long.fromValue(l.avid)).unsigned=!1:typeof l.avid=="string"?t.avid=parseInt(l.avid,10):typeof l.avid=="number"?t.avid=l.avid:typeof l.avid=="object"&&(t.avid=new r.LongBits(l.avid.low>>>0,l.avid.high>>>0).toNumber())),l.cid!=null&&(r.Long?(t.cid=r.Long.fromValue(l.cid)).unsigned=!1:typeof l.cid=="string"?t.cid=parseInt(l.cid,10):typeof l.cid=="number"?t.cid=l.cid:typeof l.cid=="object"&&(t.cid=new r.LongBits(l.cid.low>>>0,l.cid.high>>>0).toNumber())),l.page!=null&&(r.Long?(t.page=r.Long.fromValue(l.page)).unsigned=!1:typeof l.page=="string"?t.page=parseInt(l.page,10):typeof l.page=="number"?t.page=l.page:typeof l.page=="object"&&(t.page=new r.LongBits(l.page.low>>>0,l.page.high>>>0).toNumber())),l.from!=null&&(t.from=String(l.from)),l.url!=null&&(t.url=String(l.url)),l.cover!=null&&(t.cover=String(l.cover)),l.autoPlay!=null&&(t.autoPlay=!!l.autoPlay),l.btnDycColor!=null&&(t.btnDycColor=!!l.btnDycColor),l.btnDycTime!=null&&(t.btnDycTime=l.btnDycTime|0),l.bizId!=null&&(r.Long?(t.bizId=r.Long.fromValue(l.bizId)).unsigned=!1:typeof l.bizId=="string"?t.bizId=parseInt(l.bizId,10):typeof l.bizId=="number"?t.bizId=l.bizId:typeof l.bizId=="object"&&(t.bizId=new r.LongBits(l.bizId.low>>>0,l.bizId.high>>>0).toNumber())),l.process0Urls){if(!Array.isArray(l.process0Urls))throw TypeError(".bilibili.ad.v1.AdAutoPlayVideoDto.process0Urls: array expected");t.process0Urls=[];for(let i=0;i>>0,l.avid.high>>>0).toNumber():l.avid),l.cid!=null&&l.hasOwnProperty("cid")&&(typeof l.cid=="number"?i.cid=t.longs===String?String(l.cid):l.cid:i.cid=t.longs===String?r.Long.prototype.toString.call(l.cid):t.longs===Number?new r.LongBits(l.cid.low>>>0,l.cid.high>>>0).toNumber():l.cid),l.page!=null&&l.hasOwnProperty("page")&&(typeof l.page=="number"?i.page=t.longs===String?String(l.page):l.page:i.page=t.longs===String?r.Long.prototype.toString.call(l.page):t.longs===Number?new r.LongBits(l.page.low>>>0,l.page.high>>>0).toNumber():l.page),l.from!=null&&l.hasOwnProperty("from")&&(i.from=l.from),l.url!=null&&l.hasOwnProperty("url")&&(i.url=l.url),l.cover!=null&&l.hasOwnProperty("cover")&&(i.cover=l.cover),l.autoPlay!=null&&l.hasOwnProperty("autoPlay")&&(i.autoPlay=l.autoPlay),l.btnDycColor!=null&&l.hasOwnProperty("btnDycColor")&&(i.btnDycColor=l.btnDycColor),l.btnDycTime!=null&&l.hasOwnProperty("btnDycTime")&&(i.btnDycTime=l.btnDycTime),l.bizId!=null&&l.hasOwnProperty("bizId")&&(typeof l.bizId=="number"?i.bizId=t.longs===String?String(l.bizId):l.bizId:i.bizId=t.longs===String?r.Long.prototype.toString.call(l.bizId):t.longs===Number?new r.LongBits(l.bizId.low>>>0,l.bizId.high>>>0).toNumber():l.bizId),l.process0Urls&&l.process0Urls.length){i.process0Urls=[];for(let n=0;n>>3){case 1:{n.panelTypeText=l.string();break}case 2:{n.feedbackPanelDetail&&n.feedbackPanelDetail.length||(n.feedbackPanelDetail=[]),n.feedbackPanelDetail.push(u.bilibili.ad.v1.AdFeedbackPanelModuleDto.decode(l,l.uint32()));break}case 3:{n.toast=l.string();break}case 4:{n.openRecTips=l.string();break}case 5:{n.closeRecTips=l.string();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.ad.v1.AdFeedbackPanelDto)return l;let t=new u.bilibili.ad.v1.AdFeedbackPanelDto;if(l.panelTypeText!=null&&(t.panelTypeText=String(l.panelTypeText)),l.feedbackPanelDetail){if(!Array.isArray(l.feedbackPanelDetail))throw TypeError(".bilibili.ad.v1.AdFeedbackPanelDto.feedbackPanelDetail: array expected");t.feedbackPanelDetail=[];for(let i=0;i>>3){case 1:{n.moduleId=l.int32();break}case 2:{n.iconUrl=l.string();break}case 3:{n.jumpType=l.int32();break}case 4:{n.jumpUrl=l.string();break}case 5:{n.text=l.string();break}case 6:{n.secondaryPanel&&n.secondaryPanel.length||(n.secondaryPanel=[]),n.secondaryPanel.push(u.bilibili.ad.v1.AdSecondFeedbackPanelDto.decode(l,l.uint32()));break}case 7:{n.subText=l.string();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.ad.v1.AdFeedbackPanelModuleDto)return l;let t=new u.bilibili.ad.v1.AdFeedbackPanelModuleDto;if(l.moduleId!=null&&(t.moduleId=l.moduleId|0),l.iconUrl!=null&&(t.iconUrl=String(l.iconUrl)),l.jumpType!=null&&(t.jumpType=l.jumpType|0),l.jumpUrl!=null&&(t.jumpUrl=String(l.jumpUrl)),l.text!=null&&(t.text=String(l.text)),l.secondaryPanel){if(!Array.isArray(l.secondaryPanel))throw TypeError(".bilibili.ad.v1.AdFeedbackPanelModuleDto.secondaryPanel: array expected");t.secondaryPanel=[];for(let i=0;i>>3){case 1:{n.reasonId=l.int32();break}case 2:{n.text=l.string();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.ad.v1.AdSecondFeedbackPanelDto)return l;let t=new u.bilibili.ad.v1.AdSecondFeedbackPanelDto;return l.reasonId!=null&&(t.reasonId=l.reasonId|0),l.text!=null&&(t.text=String(l.text)),t},c.toObject=function(l,t){t||(t={});let i={};return t.defaults&&(i.reasonId=0,i.text=""),l.reasonId!=null&&l.hasOwnProperty("reasonId")&&(i.reasonId=l.reasonId),l.text!=null&&l.hasOwnProperty("text")&&(i.text=l.text),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.ad.v1.AdSecondFeedbackPanelDto"},c}(),p.AdGoodDto=function(){function c(e){if(e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.itemId=l.int64();break}case 2:{n.skuId=l.int64();break}case 3:{n.shopId=l.int64();break}case 4:{n.skuNum=l.int64();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.ad.v1.AdGoodDto)return l;let t=new u.bilibili.ad.v1.AdGoodDto;return l.itemId!=null&&(r.Long?(t.itemId=r.Long.fromValue(l.itemId)).unsigned=!1:typeof l.itemId=="string"?t.itemId=parseInt(l.itemId,10):typeof l.itemId=="number"?t.itemId=l.itemId:typeof l.itemId=="object"&&(t.itemId=new r.LongBits(l.itemId.low>>>0,l.itemId.high>>>0).toNumber())),l.skuId!=null&&(r.Long?(t.skuId=r.Long.fromValue(l.skuId)).unsigned=!1:typeof l.skuId=="string"?t.skuId=parseInt(l.skuId,10):typeof l.skuId=="number"?t.skuId=l.skuId:typeof l.skuId=="object"&&(t.skuId=new r.LongBits(l.skuId.low>>>0,l.skuId.high>>>0).toNumber())),l.shopId!=null&&(r.Long?(t.shopId=r.Long.fromValue(l.shopId)).unsigned=!1:typeof l.shopId=="string"?t.shopId=parseInt(l.shopId,10):typeof l.shopId=="number"?t.shopId=l.shopId:typeof l.shopId=="object"&&(t.shopId=new r.LongBits(l.shopId.low>>>0,l.shopId.high>>>0).toNumber())),l.skuNum!=null&&(r.Long?(t.skuNum=r.Long.fromValue(l.skuNum)).unsigned=!1:typeof l.skuNum=="string"?t.skuNum=parseInt(l.skuNum,10):typeof l.skuNum=="number"?t.skuNum=l.skuNum:typeof l.skuNum=="object"&&(t.skuNum=new r.LongBits(l.skuNum.low>>>0,l.skuNum.high>>>0).toNumber())),t},c.toObject=function(l,t){t||(t={});let i={};if(t.defaults){if(r.Long){let n=new r.Long(0,0,!1);i.itemId=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.itemId=t.longs===String?"0":0;if(r.Long){let n=new r.Long(0,0,!1);i.skuId=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.skuId=t.longs===String?"0":0;if(r.Long){let n=new r.Long(0,0,!1);i.shopId=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.shopId=t.longs===String?"0":0;if(r.Long){let n=new r.Long(0,0,!1);i.skuNum=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.skuNum=t.longs===String?"0":0}return l.itemId!=null&&l.hasOwnProperty("itemId")&&(typeof l.itemId=="number"?i.itemId=t.longs===String?String(l.itemId):l.itemId:i.itemId=t.longs===String?r.Long.prototype.toString.call(l.itemId):t.longs===Number?new r.LongBits(l.itemId.low>>>0,l.itemId.high>>>0).toNumber():l.itemId),l.skuId!=null&&l.hasOwnProperty("skuId")&&(typeof l.skuId=="number"?i.skuId=t.longs===String?String(l.skuId):l.skuId:i.skuId=t.longs===String?r.Long.prototype.toString.call(l.skuId):t.longs===Number?new r.LongBits(l.skuId.low>>>0,l.skuId.high>>>0).toNumber():l.skuId),l.shopId!=null&&l.hasOwnProperty("shopId")&&(typeof l.shopId=="number"?i.shopId=t.longs===String?String(l.shopId):l.shopId:i.shopId=t.longs===String?r.Long.prototype.toString.call(l.shopId):t.longs===Number?new r.LongBits(l.shopId.low>>>0,l.shopId.high>>>0).toNumber():l.shopId),l.skuNum!=null&&l.hasOwnProperty("skuNum")&&(typeof l.skuNum=="number"?i.skuNum=t.longs===String?String(l.skuNum):l.skuNum:i.skuNum=t.longs===String?r.Long.prototype.toString.call(l.skuNum):t.longs===Number?new r.LongBits(l.skuNum.low>>>0,l.skuNum.high>>>0).toNumber():l.skuNum),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.ad.v1.AdGoodDto"},c}(),p.QualityInfo=function(){function c(e){if(this.userFaces=[],e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.icon=l.string();break}case 2:{n.text=l.string();break}case 3:{n.isBg=l.bool();break}case 4:{n.bgColor=l.string();break}case 5:{n.bgColorNight=l.string();break}case 6:{n.textColor=l.string();break}case 7:{n.textColorNight=l.string();break}case 8:{n.userFaces&&n.userFaces.length||(n.userFaces=[]),n.userFaces.push(l.string());break}case 9:{n.iconNight=l.string();break}case 10:{n.bgStyle=l.int32();break}case 11:{n.borderColor=l.string();break}case 12:{n.borderColorNight=l.string();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.ad.v1.QualityInfo)return l;let t=new u.bilibili.ad.v1.QualityInfo;if(l.icon!=null&&(t.icon=String(l.icon)),l.text!=null&&(t.text=String(l.text)),l.isBg!=null&&(t.isBg=!!l.isBg),l.bgColor!=null&&(t.bgColor=String(l.bgColor)),l.bgColorNight!=null&&(t.bgColorNight=String(l.bgColorNight)),l.textColor!=null&&(t.textColor=String(l.textColor)),l.textColorNight!=null&&(t.textColorNight=String(l.textColorNight)),l.userFaces){if(!Array.isArray(l.userFaces))throw TypeError(".bilibili.ad.v1.QualityInfo.userFaces: array expected");t.userFaces=[];for(let i=0;i>>3){case 1:{n.adverId=l.int64();break}case 2:{n.adverLogo=l.string();break}case 3:{n.adverName=l.string();break}case 4:{n.adverType=l.int32();break}case 5:{n.adverPageUrl=l.string();break}case 6:{n.adverDesc=l.string();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.ad.v1.AdverDto)return l;let t=new u.bilibili.ad.v1.AdverDto;return l.adverId!=null&&(r.Long?(t.adverId=r.Long.fromValue(l.adverId)).unsigned=!1:typeof l.adverId=="string"?t.adverId=parseInt(l.adverId,10):typeof l.adverId=="number"?t.adverId=l.adverId:typeof l.adverId=="object"&&(t.adverId=new r.LongBits(l.adverId.low>>>0,l.adverId.high>>>0).toNumber())),l.adverLogo!=null&&(t.adverLogo=String(l.adverLogo)),l.adverName!=null&&(t.adverName=String(l.adverName)),l.adverType!=null&&(t.adverType=l.adverType|0),l.adverPageUrl!=null&&(t.adverPageUrl=String(l.adverPageUrl)),l.adverDesc!=null&&(t.adverDesc=String(l.adverDesc)),t},c.toObject=function(l,t){t||(t={});let i={};if(t.defaults){if(r.Long){let n=new r.Long(0,0,!1);i.adverId=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.adverId=t.longs===String?"0":0;i.adverLogo="",i.adverName="",i.adverType=0,i.adverPageUrl="",i.adverDesc=""}return l.adverId!=null&&l.hasOwnProperty("adverId")&&(typeof l.adverId=="number"?i.adverId=t.longs===String?String(l.adverId):l.adverId:i.adverId=t.longs===String?r.Long.prototype.toString.call(l.adverId):t.longs===Number?new r.LongBits(l.adverId.low>>>0,l.adverId.high>>>0).toNumber():l.adverId),l.adverLogo!=null&&l.hasOwnProperty("adverLogo")&&(i.adverLogo=l.adverLogo),l.adverName!=null&&l.hasOwnProperty("adverName")&&(i.adverName=l.adverName),l.adverType!=null&&l.hasOwnProperty("adverType")&&(i.adverType=l.adverType),l.adverPageUrl!=null&&l.hasOwnProperty("adverPageUrl")&&(i.adverPageUrl=l.adverPageUrl),l.adverDesc!=null&&l.hasOwnProperty("adverDesc")&&(i.adverDesc=l.adverDesc),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.ad.v1.AdverDto"},c}(),p.SubCardModule=function(){function c(e){if(this.tagInfos=[],e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.subcardType=l.string();break}case 2:{n.icon=l.string();break}case 3:{n.desc=l.string();break}case 4:{n.rankStars=l.string();break}case 5:{n.amountNumber=l.string();break}case 6:{n.avatar=l.string();break}case 7:{n.title=l.string();break}case 8:{n.button=u.bilibili.ad.v1.AdButtonDto.decode(l,l.uint32());break}case 9:{n.tagInfos&&n.tagInfos.length||(n.tagInfos=[]),n.tagInfos.push(u.bilibili.ad.v1.TagInfo.decode(l,l.uint32()));break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.ad.v1.SubCardModule)return l;let t=new u.bilibili.ad.v1.SubCardModule;if(l.subcardType!=null&&(t.subcardType=String(l.subcardType)),l.icon!=null&&(t.icon=String(l.icon)),l.desc!=null&&(t.desc=String(l.desc)),l.rankStars!=null&&(t.rankStars=String(l.rankStars)),l.amountNumber!=null&&(t.amountNumber=String(l.amountNumber)),l.avatar!=null&&(t.avatar=String(l.avatar)),l.title!=null&&(t.title=String(l.title)),l.button!=null){if(typeof l.button!="object")throw TypeError(".bilibili.ad.v1.SubCardModule.button: object expected");t.button=u.bilibili.ad.v1.AdButtonDto.fromObject(l.button)}if(l.tagInfos){if(!Array.isArray(l.tagInfos))throw TypeError(".bilibili.ad.v1.SubCardModule.tagInfos: array expected");t.tagInfos=[];for(let i=0;i>>3){case 1:{n.text=l.string();break}case 2:{n.textColor=l.string();break}case 3:{n.textColorNight=l.string();break}case 4:{n.bgColor=l.string();break}case 5:{n.bgColorNight=l.string();break}case 6:{n.borderColor=l.string();break}case 7:{n.borderColorNight=l.string();break}case 8:{n.type=l.string();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.ad.v1.TagInfo)return l;let t=new u.bilibili.ad.v1.TagInfo;return l.text!=null&&(t.text=String(l.text)),l.textColor!=null&&(t.textColor=String(l.textColor)),l.textColorNight!=null&&(t.textColorNight=String(l.textColorNight)),l.bgColor!=null&&(t.bgColor=String(l.bgColor)),l.bgColorNight!=null&&(t.bgColorNight=String(l.bgColorNight)),l.borderColor!=null&&(t.borderColor=String(l.borderColor)),l.borderColorNight!=null&&(t.borderColorNight=String(l.borderColorNight)),l.type!=null&&(t.type=String(l.type)),t},c.toObject=function(l,t){t||(t={});let i={};return t.defaults&&(i.text="",i.textColor="",i.textColorNight="",i.bgColor="",i.bgColorNight="",i.borderColor="",i.borderColorNight="",i.type=""),l.text!=null&&l.hasOwnProperty("text")&&(i.text=l.text),l.textColor!=null&&l.hasOwnProperty("textColor")&&(i.textColor=l.textColor),l.textColorNight!=null&&l.hasOwnProperty("textColorNight")&&(i.textColorNight=l.textColorNight),l.bgColor!=null&&l.hasOwnProperty("bgColor")&&(i.bgColor=l.bgColor),l.bgColorNight!=null&&l.hasOwnProperty("bgColorNight")&&(i.bgColorNight=l.bgColorNight),l.borderColor!=null&&l.hasOwnProperty("borderColor")&&(i.borderColor=l.borderColor),l.borderColorNight!=null&&l.hasOwnProperty("borderColorNight")&&(i.borderColorNight=l.borderColorNight),l.type!=null&&l.hasOwnProperty("type")&&(i.type=l.type),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.ad.v1.TagInfo"},c}(),p.TabInfoDto=function(){function c(e){if(e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.tabName=l.string();break}case 2:{n.extra=u.google.protobuf.Any.decode(l,l.uint32());break}case 3:{n.tabVersion=l.int32();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.ad.v1.TabInfoDto)return l;let t=new u.bilibili.ad.v1.TabInfoDto;if(l.tabName!=null&&(t.tabName=String(l.tabName)),l.extra!=null){if(typeof l.extra!="object")throw TypeError(".bilibili.ad.v1.TabInfoDto.extra: object expected");t.extra=u.google.protobuf.Any.fromObject(l.extra)}return l.tabVersion!=null&&(t.tabVersion=l.tabVersion|0),t},c.toObject=function(l,t){t||(t={});let i={};return t.defaults&&(i.tabName="",i.extra=null,i.tabVersion=0),l.tabName!=null&&l.hasOwnProperty("tabName")&&(i.tabName=l.tabName),l.extra!=null&&l.hasOwnProperty("extra")&&(i.extra=u.google.protobuf.Any.toObject(l.extra,t)),l.tabVersion!=null&&l.hasOwnProperty("tabVersion")&&(i.tabVersion=l.tabVersion),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.ad.v1.TabInfoDto"},c}(),p.TabExtraDto=function(){function c(e){if(this.downloadWhitelist=[],this.openWhitelist=[],e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.tabUrl=l.string();break}case 2:{n.enableStoreDirectLaunch=l.int32();break}case 3:{n.storeCallupCard=l.int32();break}case 4:{n.salesType=l.int32();break}case 5:{n.downloadWhitelist&&n.downloadWhitelist.length||(n.downloadWhitelist=[]),n.downloadWhitelist.push(u.bilibili.ad.v1.AppPackageDto.decode(l,l.uint32()));break}case 6:{n.specialIndustry=l.bool();break}case 7:{n.specialIndustryTips=l.string();break}case 8:{n.openWhitelist&&n.openWhitelist.length||(n.openWhitelist=[]),n.openWhitelist.push(l.string());break}case 9:{n.landingpageDownloadStyle=l.int32();break}case 10:{n.appstorePriority=l.int32();break}case 11:{n.useAdWebV2=l.bool();break}case 12:{n.enableDownloadDialog=l.bool();break}case 13:{n.appstoreUrl=l.string();break}case 14:{n.appstoreDelayTime=l.int32();break}case 15:{n.avContent=l.string();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.ad.v1.TabExtraDto)return l;let t=new u.bilibili.ad.v1.TabExtraDto;if(l.tabUrl!=null&&(t.tabUrl=String(l.tabUrl)),l.enableStoreDirectLaunch!=null&&(t.enableStoreDirectLaunch=l.enableStoreDirectLaunch|0),l.storeCallupCard!=null&&(t.storeCallupCard=l.storeCallupCard|0),l.salesType!=null&&(t.salesType=l.salesType|0),l.downloadWhitelist){if(!Array.isArray(l.downloadWhitelist))throw TypeError(".bilibili.ad.v1.TabExtraDto.downloadWhitelist: array expected");t.downloadWhitelist=[];for(let i=0;i>>3){case 1:{n.module1=u.bilibili.ad.v1.Module1.decode(l,l.uint32());break}case 2:{n.module3=u.bilibili.ad.v1.Module3.decode(l,l.uint32());break}case 3:{n.module4=u.bilibili.ad.v1.Module4.decode(l,l.uint32());break}case 4:{n.module5=u.bilibili.ad.v1.Module5.decode(l,l.uint32());break}case 5:{n.module6=u.bilibili.ad.v1.Module6.decode(l,l.uint32());break}case 6:{n.module7=u.bilibili.ad.v1.Module7.decode(l,l.uint32());break}case 7:{n.module8=u.bilibili.ad.v1.Module8.decode(l,l.uint32());break}case 8:{n.module9=u.bilibili.ad.v1.Module9.decode(l,l.uint32());break}case 9:{n.module10=u.bilibili.ad.v1.Module10.decode(l,l.uint32());break}case 10:{n.module11=u.bilibili.ad.v1.Module11.decode(l,l.uint32());break}case 11:{n.module12=u.bilibili.ad.v1.Module12.decode(l,l.uint32());break}case 12:{n.module13=u.bilibili.ad.v1.Module13.decode(l,l.uint32());break}case 13:{if(n.moduleSeq&&n.moduleSeq.length||(n.moduleSeq=[]),(o&7)===2){let a=l.uint32()+l.pos;for(;l.pos>>3){case 1:{n.logo=l.string();break}case 2:{n.name=l.string();break}case 3:{n.subTitile=l.string();break}case 4:{n.imageUrl&&n.imageUrl.length||(n.imageUrl=[]),n.imageUrl.push(l.string());break}case 5:{n.desc=l.string();break}case 6:{n.gameButton=u.bilibili.ad.v1.AdButtonDto.decode(l,l.uint32());break}case 7:{n.grade=l.double();break}case 8:{n.rankNum=l.string();break}case 9:{n.rankName=l.string();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.ad.v1.IosGamePageRes)return l;let t=new u.bilibili.ad.v1.IosGamePageRes;if(l.logo!=null&&(t.logo=String(l.logo)),l.name!=null&&(t.name=String(l.name)),l.subTitile!=null&&(t.subTitile=String(l.subTitile)),l.imageUrl){if(!Array.isArray(l.imageUrl))throw TypeError(".bilibili.ad.v1.IosGamePageRes.imageUrl: array expected");t.imageUrl=[];for(let i=0;i>>3){case 1:{n.gameName=l.string();break}case 2:{n.gameIcon=l.string();break}case 3:{n.developerInputName=l.string();break}case 4:{n.tagList&&n.tagList.length||(n.tagList=[]),n.tagList.push(u.bilibili.ad.v1.AndroidTag.decode(l,l.uint32()));break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.ad.v1.Module1)return l;let t=new u.bilibili.ad.v1.Module1;if(l.gameName!=null&&(t.gameName=String(l.gameName)),l.gameIcon!=null&&(t.gameIcon=String(l.gameIcon)),l.developerInputName!=null&&(t.developerInputName=String(l.developerInputName)),l.tagList){if(!Array.isArray(l.tagList))throw TypeError(".bilibili.ad.v1.Module1.tagList: array expected");t.tagList=[];for(let i=0;i>>3){case 1:{n.text=l.string();break}case 2:{n.type=l.int32();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.ad.v1.AndroidTag)return l;let t=new u.bilibili.ad.v1.AndroidTag;return l.text!=null&&(t.text=String(l.text)),l.type!=null&&(t.type=l.type|0),t},c.toObject=function(l,t){t||(t={});let i={};return t.defaults&&(i.text="",i.type=0),l.text!=null&&l.hasOwnProperty("text")&&(i.text=l.text),l.type!=null&&l.hasOwnProperty("type")&&(i.type=l.type),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.ad.v1.AndroidTag"},c}(),p.Module3=function(){function c(e){if(this.qualityParams=[],e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.display=l.bool();break}case 3:{n.qualityParams&&n.qualityParams.length||(n.qualityParams=[]),n.qualityParams.push(u.bilibili.ad.v1.QualityParmas.decode(l,l.uint32()));break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.ad.v1.Module3)return l;let t=new u.bilibili.ad.v1.Module3;if(l.display!=null&&(t.display=!!l.display),l.qualityParams){if(!Array.isArray(l.qualityParams))throw TypeError(".bilibili.ad.v1.Module3.qualityParams: array expected");t.qualityParams=[];for(let i=0;i>>3){case 1:{n.firstLine=l.string();break}case 2:{n.secondLine=l.string();break}case 3:{n.grade=l.double();break}case 4:{n.rankIcon=l.string();break}case 5:{n.qualityType=l.int32();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.ad.v1.QualityParmas)return l;let t=new u.bilibili.ad.v1.QualityParmas;return l.firstLine!=null&&(t.firstLine=String(l.firstLine)),l.secondLine!=null&&(t.secondLine=String(l.secondLine)),l.grade!=null&&(t.grade=Number(l.grade)),l.rankIcon!=null&&(t.rankIcon=String(l.rankIcon)),l.qualityType!=null&&(t.qualityType=l.qualityType|0),t},c.toObject=function(l,t){t||(t={});let i={};return t.defaults&&(i.firstLine="",i.secondLine="",i.grade=0,i.rankIcon="",i.qualityType=0),l.firstLine!=null&&l.hasOwnProperty("firstLine")&&(i.firstLine=l.firstLine),l.secondLine!=null&&l.hasOwnProperty("secondLine")&&(i.secondLine=l.secondLine),l.grade!=null&&l.hasOwnProperty("grade")&&(i.grade=t.json&&!isFinite(l.grade)?String(l.grade):l.grade),l.rankIcon!=null&&l.hasOwnProperty("rankIcon")&&(i.rankIcon=l.rankIcon),l.qualityType!=null&&l.hasOwnProperty("qualityType")&&(i.qualityType=l.qualityType),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.ad.v1.QualityParmas"},c}(),p.Module4=function(){function c(e){if(this.iconUrls=[],this.giftInfoIds=[],e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.display=l.bool();break}case 2:{n.giftNum=l.int32();break}case 3:{n.giftName=l.string();break}case 4:{n.giftIconNum=l.int32();break}case 5:{n.iconUrls&&n.iconUrls.length||(n.iconUrls=[]),n.iconUrls.push(l.string());break}case 6:{if(n.giftInfoIds&&n.giftInfoIds.length||(n.giftInfoIds=[]),(o&7)===2){let a=l.uint32()+l.pos;for(;l.pos>>0,l.giftInfoIds[i].high>>>0).toNumber())}return t},c.toObject=function(l,t){t||(t={});let i={};if((t.arrays||t.defaults)&&(i.iconUrls=[],i.giftInfoIds=[]),t.defaults&&(i.display=!1,i.giftNum=0,i.giftName="",i.giftIconNum=0),l.display!=null&&l.hasOwnProperty("display")&&(i.display=l.display),l.giftNum!=null&&l.hasOwnProperty("giftNum")&&(i.giftNum=l.giftNum),l.giftName!=null&&l.hasOwnProperty("giftName")&&(i.giftName=l.giftName),l.giftIconNum!=null&&l.hasOwnProperty("giftIconNum")&&(i.giftIconNum=l.giftIconNum),l.iconUrls&&l.iconUrls.length){i.iconUrls=[];for(let n=0;n>>0,l.giftInfoIds[n].high>>>0).toNumber():l.giftInfoIds[n]}return i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.ad.v1.Module4"},c}(),p.Module5=function(){function c(e){if(e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.display=l.bool();break}case 2:{n.gameSummary=l.string();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.ad.v1.Module5)return l;let t=new u.bilibili.ad.v1.Module5;return l.display!=null&&(t.display=!!l.display),l.gameSummary!=null&&(t.gameSummary=String(l.gameSummary)),t},c.toObject=function(l,t){t||(t={});let i={};return t.defaults&&(i.display=!1,i.gameSummary=""),l.display!=null&&l.hasOwnProperty("display")&&(i.display=l.display),l.gameSummary!=null&&l.hasOwnProperty("gameSummary")&&(i.gameSummary=l.gameSummary),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.ad.v1.Module5"},c}(),p.Module6=function(){function c(e){if(e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.display=l.bool();break}case 2:{n.gameDesc=l.string();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.ad.v1.Module6)return l;let t=new u.bilibili.ad.v1.Module6;return l.display!=null&&(t.display=!!l.display),l.gameDesc!=null&&(t.gameDesc=String(l.gameDesc)),t},c.toObject=function(l,t){t||(t={});let i={};return t.defaults&&(i.display=!1,i.gameDesc=""),l.display!=null&&l.hasOwnProperty("display")&&(i.display=l.display),l.gameDesc!=null&&l.hasOwnProperty("gameDesc")&&(i.gameDesc=l.gameDesc),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.ad.v1.Module6"},c}(),p.ScreenShots=function(){function c(e){if(e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.url=l.string();break}case 2:{n.height=l.int32();break}case 3:{n.width=l.int32();break}case 4:{n.seq=l.int32();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.ad.v1.ScreenShots)return l;let t=new u.bilibili.ad.v1.ScreenShots;return l.url!=null&&(t.url=String(l.url)),l.height!=null&&(t.height=l.height|0),l.width!=null&&(t.width=l.width|0),l.seq!=null&&(t.seq=l.seq|0),t},c.toObject=function(l,t){t||(t={});let i={};return t.defaults&&(i.url="",i.height=0,i.width=0,i.seq=0),l.url!=null&&l.hasOwnProperty("url")&&(i.url=l.url),l.height!=null&&l.hasOwnProperty("height")&&(i.height=l.height),l.width!=null&&l.hasOwnProperty("width")&&(i.width=l.width),l.seq!=null&&l.hasOwnProperty("seq")&&(i.seq=l.seq),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.ad.v1.ScreenShots"},c}(),p.Module7=function(){function c(e){if(this.screenShots=[],e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.display=l.bool();break}case 2:{n.screenShots&&n.screenShots.length||(n.screenShots=[]),n.screenShots.push(u.bilibili.ad.v1.ScreenShots.decode(l,l.uint32()));break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.ad.v1.Module7)return l;let t=new u.bilibili.ad.v1.Module7;if(l.display!=null&&(t.display=!!l.display),l.screenShots){if(!Array.isArray(l.screenShots))throw TypeError(".bilibili.ad.v1.Module7.screenShots: array expected");t.screenShots=[];for(let i=0;i>>3){case 1:{n.display=l.bool();break}case 2:{n.tagList&&n.tagList.length||(n.tagList=[]),n.tagList.push(l.string());break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.ad.v1.Module8)return l;let t=new u.bilibili.ad.v1.Module8;if(l.display!=null&&(t.display=!!l.display),l.tagList){if(!Array.isArray(l.tagList))throw TypeError(".bilibili.ad.v1.Module8.tagList: array expected");t.tagList=[];for(let i=0;i>>3){case 1:{n.display=l.bool();break}case 2:{n.devIntroduction=l.string();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.ad.v1.Module9)return l;let t=new u.bilibili.ad.v1.Module9;return l.display!=null&&(t.display=!!l.display),l.devIntroduction!=null&&(t.devIntroduction=String(l.devIntroduction)),t},c.toObject=function(l,t){t||(t={});let i={};return t.defaults&&(i.display=!1,i.devIntroduction=""),l.display!=null&&l.hasOwnProperty("display")&&(i.display=l.display),l.devIntroduction!=null&&l.hasOwnProperty("devIntroduction")&&(i.devIntroduction=l.devIntroduction),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.ad.v1.Module9"},c}(),p.Module10=function(){function c(e){if(e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.display=l.bool();break}case 2:{n.latestUpdate=l.string();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.ad.v1.Module10)return l;let t=new u.bilibili.ad.v1.Module10;return l.display!=null&&(t.display=!!l.display),l.latestUpdate!=null&&(t.latestUpdate=String(l.latestUpdate)),t},c.toObject=function(l,t){t||(t={});let i={};return t.defaults&&(i.display=!1,i.latestUpdate=""),l.display!=null&&l.hasOwnProperty("display")&&(i.display=l.display),l.latestUpdate!=null&&l.hasOwnProperty("latestUpdate")&&(i.latestUpdate=l.latestUpdate),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.ad.v1.Module10"},c}(),p.Module11=function(){function c(e){if(this.starNumberList=[],e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.display=l.bool();break}case 2:{if(n.starNumberList&&n.starNumberList.length||(n.starNumberList=[]),(o&7)===2){let a=l.uint32()+l.pos;for(;l.pos>>3){case 1:{n.gameBaseId=l.int64();break}case 2:{n.userName=l.string();break}case 3:{n.userFace=l.string();break}case 4:{n.userLevel=l.int32();break}case 5:{n.commentNo=l.string();break}case 6:{n.grade=l.int32();break}case 7:{n.content=l.string();break}case 8:{n.upCount=l.int32();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.ad.v1.Comment)return l;let t=new u.bilibili.ad.v1.Comment;return l.gameBaseId!=null&&(r.Long?(t.gameBaseId=r.Long.fromValue(l.gameBaseId)).unsigned=!1:typeof l.gameBaseId=="string"?t.gameBaseId=parseInt(l.gameBaseId,10):typeof l.gameBaseId=="number"?t.gameBaseId=l.gameBaseId:typeof l.gameBaseId=="object"&&(t.gameBaseId=new r.LongBits(l.gameBaseId.low>>>0,l.gameBaseId.high>>>0).toNumber())),l.userName!=null&&(t.userName=String(l.userName)),l.userFace!=null&&(t.userFace=String(l.userFace)),l.userLevel!=null&&(t.userLevel=l.userLevel|0),l.commentNo!=null&&(t.commentNo=String(l.commentNo)),l.grade!=null&&(t.grade=l.grade|0),l.content!=null&&(t.content=String(l.content)),l.upCount!=null&&(t.upCount=l.upCount|0),t},c.toObject=function(l,t){t||(t={});let i={};if(t.defaults){if(r.Long){let n=new r.Long(0,0,!1);i.gameBaseId=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.gameBaseId=t.longs===String?"0":0;i.userName="",i.userFace="",i.userLevel=0,i.commentNo="",i.grade=0,i.content="",i.upCount=0}return l.gameBaseId!=null&&l.hasOwnProperty("gameBaseId")&&(typeof l.gameBaseId=="number"?i.gameBaseId=t.longs===String?String(l.gameBaseId):l.gameBaseId:i.gameBaseId=t.longs===String?r.Long.prototype.toString.call(l.gameBaseId):t.longs===Number?new r.LongBits(l.gameBaseId.low>>>0,l.gameBaseId.high>>>0).toNumber():l.gameBaseId),l.userName!=null&&l.hasOwnProperty("userName")&&(i.userName=l.userName),l.userFace!=null&&l.hasOwnProperty("userFace")&&(i.userFace=l.userFace),l.userLevel!=null&&l.hasOwnProperty("userLevel")&&(i.userLevel=l.userLevel),l.commentNo!=null&&l.hasOwnProperty("commentNo")&&(i.commentNo=l.commentNo),l.grade!=null&&l.hasOwnProperty("grade")&&(i.grade=l.grade),l.content!=null&&l.hasOwnProperty("content")&&(i.content=l.content),l.upCount!=null&&l.hasOwnProperty("upCount")&&(i.upCount=l.upCount),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.ad.v1.Comment"},c}(),p.Module12=function(){function c(e){if(this.commentList=[],e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.display=l.bool();break}case 2:{n.commentList&&n.commentList.length||(n.commentList=[]),n.commentList.push(u.bilibili.ad.v1.Comment.decode(l,l.uint32()));break}case 3:{n.commentNum=l.string();break}case 4:{n.showAllComment=l.bool();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.ad.v1.Module12)return l;let t=new u.bilibili.ad.v1.Module12;if(l.display!=null&&(t.display=!!l.display),l.commentList){if(!Array.isArray(l.commentList))throw TypeError(".bilibili.ad.v1.Module12.commentList: array expected");t.commentList=[];for(let i=0;i>>3){case 1:{n.pkgSize=l.int64();break}case 2:{n.customerService=l.string();break}case 3:{n.website=l.string();break}case 4:{n.authority=l.string();break}case 5:{n.privacy=l.string();break}case 6:{n.developerName=l.string();break}case 7:{n.updateTime=l.string();break}case 8:{n.gameVersion=l.string();break}case 9:{n.androidPkgName=l.string();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.ad.v1.Module13)return l;let t=new u.bilibili.ad.v1.Module13;return l.pkgSize!=null&&(r.Long?(t.pkgSize=r.Long.fromValue(l.pkgSize)).unsigned=!1:typeof l.pkgSize=="string"?t.pkgSize=parseInt(l.pkgSize,10):typeof l.pkgSize=="number"?t.pkgSize=l.pkgSize:typeof l.pkgSize=="object"&&(t.pkgSize=new r.LongBits(l.pkgSize.low>>>0,l.pkgSize.high>>>0).toNumber())),l.customerService!=null&&(t.customerService=String(l.customerService)),l.website!=null&&(t.website=String(l.website)),l.authority!=null&&(t.authority=String(l.authority)),l.privacy!=null&&(t.privacy=String(l.privacy)),l.developerName!=null&&(t.developerName=String(l.developerName)),l.updateTime!=null&&(t.updateTime=String(l.updateTime)),l.gameVersion!=null&&(t.gameVersion=String(l.gameVersion)),l.androidPkgName!=null&&(t.androidPkgName=String(l.androidPkgName)),t},c.toObject=function(l,t){t||(t={});let i={};if(t.defaults){if(r.Long){let n=new r.Long(0,0,!1);i.pkgSize=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.pkgSize=t.longs===String?"0":0;i.customerService="",i.website="",i.authority="",i.privacy="",i.developerName="",i.updateTime="",i.gameVersion="",i.androidPkgName=""}return l.pkgSize!=null&&l.hasOwnProperty("pkgSize")&&(typeof l.pkgSize=="number"?i.pkgSize=t.longs===String?String(l.pkgSize):l.pkgSize:i.pkgSize=t.longs===String?r.Long.prototype.toString.call(l.pkgSize):t.longs===Number?new r.LongBits(l.pkgSize.low>>>0,l.pkgSize.high>>>0).toNumber():l.pkgSize),l.customerService!=null&&l.hasOwnProperty("customerService")&&(i.customerService=l.customerService),l.website!=null&&l.hasOwnProperty("website")&&(i.website=l.website),l.authority!=null&&l.hasOwnProperty("authority")&&(i.authority=l.authority),l.privacy!=null&&l.hasOwnProperty("privacy")&&(i.privacy=l.privacy),l.developerName!=null&&l.hasOwnProperty("developerName")&&(i.developerName=l.developerName),l.updateTime!=null&&l.hasOwnProperty("updateTime")&&(i.updateTime=l.updateTime),l.gameVersion!=null&&l.hasOwnProperty("gameVersion")&&(i.gameVersion=l.gameVersion),l.androidPkgName!=null&&l.hasOwnProperty("androidPkgName")&&(i.androidPkgName=l.androidPkgName),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.ad.v1.Module13"},c}(),p.Reward=function(){function c(e){if(e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.level=l.int32();break}case 2:{n.title=l.string();break}case 3:{n.content=l.string();break}case 4:{n.pic=l.string();break}case 5:{n.reach=l.bool();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.ad.v1.Reward)return l;let t=new u.bilibili.ad.v1.Reward;return l.level!=null&&(t.level=l.level|0),l.title!=null&&(t.title=String(l.title)),l.content!=null&&(t.content=String(l.content)),l.pic!=null&&(t.pic=String(l.pic)),l.reach!=null&&(t.reach=!!l.reach),t},c.toObject=function(l,t){t||(t={});let i={};return t.defaults&&(i.level=0,i.title="",i.content="",i.pic="",i.reach=!1),l.level!=null&&l.hasOwnProperty("level")&&(i.level=l.level),l.title!=null&&l.hasOwnProperty("title")&&(i.title=l.title),l.content!=null&&l.hasOwnProperty("content")&&(i.content=l.content),l.pic!=null&&l.hasOwnProperty("pic")&&(i.pic=l.pic),l.reach!=null&&l.hasOwnProperty("reach")&&(i.reach=l.reach),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.ad.v1.Reward"},c}(),p.Module14=function(){function c(e){if(this.rewardList=[],e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.rewardList&&n.rewardList.length||(n.rewardList=[]),n.rewardList.push(u.bilibili.ad.v1.Reward.decode(l,l.uint32()));break}case 2:{n.display=l.bool();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.ad.v1.Module14)return l;let t=new u.bilibili.ad.v1.Module14;if(l.rewardList){if(!Array.isArray(l.rewardList))throw TypeError(".bilibili.ad.v1.Module14.rewardList: array expected");t.rewardList=[];for(let i=0;i>>3){case 1:{n.coverUrl=l.string();break}case 2:{n.title=l.string();break}case 3:{n.desc=l.string();break}case 5:{n.button=u.bilibili.ad.v1.AdButtonDto.decode(l,l.uint32());break}case 6:{n.autoAnimateTimeMs=l.int32();break}case 7:{n.enableClick=l.bool();break}case 8:{n.panelUrl=l.string();break}case 9:{n.downloadWhitelist&&n.downloadWhitelist.length||(n.downloadWhitelist=[]),n.downloadWhitelist.push(u.bilibili.ad.v1.AppPackageDto.decode(l,l.uint32()));break}case 10:{n.openWhitelist&&n.openWhitelist.length||(n.openWhitelist=[]),n.openWhitelist.push(l.string());break}case 11:{n.useAdWebV2=l.bool();break}case 12:{n.enableStoreDirectLaunch=l.bool();break}case 13:{n.salesType=l.int32();break}case 15:{n.landingpageDownloadStyle=l.int32();break}case 16:{n.appstorePriority=l.int32();break}case 17:{n.appstoreUrl=l.string();break}case 18:{n.appstoreDelayTime=l.int32();break}case 19:{n.pageCoverType=l.int32();break}case 20:{n.pagePullType=l.int32();break}case 21:{n.androidGamePageRes=u.bilibili.ad.v1.AndroidGamePageRes.decode(l,l.uint32());break}case 22:{n.iosGamePageRes=u.bilibili.ad.v1.IosGamePageRes.decode(l,l.uint32());break}case 23:{n.adTagStyle=u.bilibili.ad.v1.AdBusinessMarkDto.decode(l,l.uint32());break}case 24:{n.feedbackPanel=u.bilibili.ad.v1.AdFeedbackPanelDto.decode(l,l.uint32());break}case 25:{n.adCb=l.string();break}case 26:{n.urlType=l.int32();break}case 27:{n.avContent=l.string();break}case 28:{n.downloadWhitelistMode=l.int32();break}case 29:{n.downloadWhitelistDuration=l.int64();break}case 30:{n.abtest=l.string();break}case 31:{n.downloadUrlType=l.int32();break}case 32:{n.enableAutoCallup=l.int32();break}case 33:{n.externalLinkWarning=l.string();break}case 34:{n.storeDplinkXiaomi=l.string();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.ad.v1.Tab2ExtraDto)return l;let t=new u.bilibili.ad.v1.Tab2ExtraDto;if(l.coverUrl!=null&&(t.coverUrl=String(l.coverUrl)),l.title!=null&&(t.title=String(l.title)),l.desc!=null&&(t.desc=String(l.desc)),l.button!=null){if(typeof l.button!="object")throw TypeError(".bilibili.ad.v1.Tab2ExtraDto.button: object expected");t.button=u.bilibili.ad.v1.AdButtonDto.fromObject(l.button)}if(l.autoAnimateTimeMs!=null&&(t.autoAnimateTimeMs=l.autoAnimateTimeMs|0),l.enableClick!=null&&(t.enableClick=!!l.enableClick),l.panelUrl!=null&&(t.panelUrl=String(l.panelUrl)),l.downloadWhitelist){if(!Array.isArray(l.downloadWhitelist))throw TypeError(".bilibili.ad.v1.Tab2ExtraDto.downloadWhitelist: array expected");t.downloadWhitelist=[];for(let i=0;i>>0,l.downloadWhitelistDuration.high>>>0).toNumber())),l.abtest!=null&&(t.abtest=String(l.abtest)),l.downloadUrlType!=null&&(t.downloadUrlType=l.downloadUrlType|0),l.enableAutoCallup!=null&&(t.enableAutoCallup=l.enableAutoCallup|0),l.externalLinkWarning!=null&&(t.externalLinkWarning=String(l.externalLinkWarning)),l.storeDplinkXiaomi!=null&&(t.storeDplinkXiaomi=String(l.storeDplinkXiaomi)),t},c.toObject=function(l,t){t||(t={});let i={};if((t.arrays||t.defaults)&&(i.downloadWhitelist=[],i.openWhitelist=[]),t.defaults){if(i.coverUrl="",i.title="",i.desc="",i.button=null,i.autoAnimateTimeMs=0,i.enableClick=!1,i.panelUrl="",i.useAdWebV2=!1,i.enableStoreDirectLaunch=!1,i.salesType=0,i.landingpageDownloadStyle=0,i.appstorePriority=0,i.appstoreUrl="",i.appstoreDelayTime=0,i.pageCoverType=0,i.pagePullType=0,i.androidGamePageRes=null,i.iosGamePageRes=null,i.adTagStyle=null,i.feedbackPanel=null,i.adCb="",i.urlType=0,i.avContent="",i.downloadWhitelistMode=0,r.Long){let n=new r.Long(0,0,!1);i.downloadWhitelistDuration=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.downloadWhitelistDuration=t.longs===String?"0":0;i.abtest="",i.downloadUrlType=0,i.enableAutoCallup=0,i.externalLinkWarning="",i.storeDplinkXiaomi=""}if(l.coverUrl!=null&&l.hasOwnProperty("coverUrl")&&(i.coverUrl=l.coverUrl),l.title!=null&&l.hasOwnProperty("title")&&(i.title=l.title),l.desc!=null&&l.hasOwnProperty("desc")&&(i.desc=l.desc),l.button!=null&&l.hasOwnProperty("button")&&(i.button=u.bilibili.ad.v1.AdButtonDto.toObject(l.button,t)),l.autoAnimateTimeMs!=null&&l.hasOwnProperty("autoAnimateTimeMs")&&(i.autoAnimateTimeMs=l.autoAnimateTimeMs),l.enableClick!=null&&l.hasOwnProperty("enableClick")&&(i.enableClick=l.enableClick),l.panelUrl!=null&&l.hasOwnProperty("panelUrl")&&(i.panelUrl=l.panelUrl),l.downloadWhitelist&&l.downloadWhitelist.length){i.downloadWhitelist=[];for(let n=0;n>>0,l.downloadWhitelistDuration.high>>>0).toNumber():l.downloadWhitelistDuration),l.abtest!=null&&l.hasOwnProperty("abtest")&&(i.abtest=l.abtest),l.downloadUrlType!=null&&l.hasOwnProperty("downloadUrlType")&&(i.downloadUrlType=l.downloadUrlType),l.enableAutoCallup!=null&&l.hasOwnProperty("enableAutoCallup")&&(i.enableAutoCallup=l.enableAutoCallup),l.externalLinkWarning!=null&&l.hasOwnProperty("externalLinkWarning")&&(i.externalLinkWarning=l.externalLinkWarning),l.storeDplinkXiaomi!=null&&l.hasOwnProperty("storeDplinkXiaomi")&&(i.storeDplinkXiaomi=l.storeDplinkXiaomi),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.ad.v1.Tab2ExtraDto"},c}(),p.CustomPlayUrl=function(){function c(e){if(this.urls=[],e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.playTime=l.int32();break}case 2:{n.urls&&n.urls.length||(n.urls=[]),n.urls.push(l.string());break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.ad.v1.CustomPlayUrl)return l;let t=new u.bilibili.ad.v1.CustomPlayUrl;if(l.playTime!=null&&(t.playTime=l.playTime|0),l.urls){if(!Array.isArray(l.urls))throw TypeError(".bilibili.ad.v1.CustomPlayUrl.urls: array expected");t.urls=[];for(let i=0;i>>3){case 1:{n.x=l.int32();break}case 2:{n.y=l.int32();break}case 3:{n.z=l.int32();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.ad.v1.NotClickableArea)return l;let t=new u.bilibili.ad.v1.NotClickableArea;return l.x!=null&&(t.x=l.x|0),l.y!=null&&(t.y=l.y|0),l.z!=null&&(t.z=l.z|0),t},c.toObject=function(l,t){t||(t={});let i={};return t.defaults&&(i.x=0,i.y=0,i.z=0),l.x!=null&&l.hasOwnProperty("x")&&(i.x=l.x),l.y!=null&&l.hasOwnProperty("y")&&(i.y=l.y),l.z!=null&&l.hasOwnProperty("z")&&(i.z=l.z),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.ad.v1.NotClickableArea"},c}(),p.ForwardReply=function(){function c(e){if(e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.commentId=l.int64();break}case 2:{n.message=l.string();break}case 3:{n.highlightText=l.string();break}case 4:{n.highlightPrefixIcon=l.string();break}case 5:{n.callupUrl=l.string();break}case 6:{n.jumpUrl=l.string();break}case 7:{n.jumpType=l.int32();break}case 8:{n.authorName=l.string();break}case 9:{n.authorIcon=l.string();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.ad.v1.ForwardReply)return l;let t=new u.bilibili.ad.v1.ForwardReply;return l.commentId!=null&&(r.Long?(t.commentId=r.Long.fromValue(l.commentId)).unsigned=!1:typeof l.commentId=="string"?t.commentId=parseInt(l.commentId,10):typeof l.commentId=="number"?t.commentId=l.commentId:typeof l.commentId=="object"&&(t.commentId=new r.LongBits(l.commentId.low>>>0,l.commentId.high>>>0).toNumber())),l.message!=null&&(t.message=String(l.message)),l.highlightText!=null&&(t.highlightText=String(l.highlightText)),l.highlightPrefixIcon!=null&&(t.highlightPrefixIcon=String(l.highlightPrefixIcon)),l.callupUrl!=null&&(t.callupUrl=String(l.callupUrl)),l.jumpUrl!=null&&(t.jumpUrl=String(l.jumpUrl)),l.jumpType!=null&&(t.jumpType=l.jumpType|0),l.authorName!=null&&(t.authorName=String(l.authorName)),l.authorIcon!=null&&(t.authorIcon=String(l.authorIcon)),t},c.toObject=function(l,t){t||(t={});let i={};if(t.defaults){if(r.Long){let n=new r.Long(0,0,!1);i.commentId=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.commentId=t.longs===String?"0":0;i.message="",i.highlightText="",i.highlightPrefixIcon="",i.callupUrl="",i.jumpUrl="",i.jumpType=0,i.authorName="",i.authorIcon=""}return l.commentId!=null&&l.hasOwnProperty("commentId")&&(typeof l.commentId=="number"?i.commentId=t.longs===String?String(l.commentId):l.commentId:i.commentId=t.longs===String?r.Long.prototype.toString.call(l.commentId):t.longs===Number?new r.LongBits(l.commentId.low>>>0,l.commentId.high>>>0).toNumber():l.commentId),l.message!=null&&l.hasOwnProperty("message")&&(i.message=l.message),l.highlightText!=null&&l.hasOwnProperty("highlightText")&&(i.highlightText=l.highlightText),l.highlightPrefixIcon!=null&&l.hasOwnProperty("highlightPrefixIcon")&&(i.highlightPrefixIcon=l.highlightPrefixIcon),l.callupUrl!=null&&l.hasOwnProperty("callupUrl")&&(i.callupUrl=l.callupUrl),l.jumpUrl!=null&&l.hasOwnProperty("jumpUrl")&&(i.jumpUrl=l.jumpUrl),l.jumpType!=null&&l.hasOwnProperty("jumpType")&&(i.jumpType=l.jumpType),l.authorName!=null&&l.hasOwnProperty("authorName")&&(i.authorName=l.authorName),l.authorIcon!=null&&l.hasOwnProperty("authorIcon")&&(i.authorIcon=l.authorIcon),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.ad.v1.ForwardReply"},c}(),p}(),d}(),O.api=function(){let d={};return d.probe=function(){let p={};return p.v1=function(){let c={};return c.ErrorReason=function(){let e={},l=Object.create(e);return l[e[0]="PROBE_UNSPECIFIED"]=0,l[e[1]="PROBE_CATEGORY_NOTFOUND"]=1,l[e[2]="PROBE_CATEGORY_CONFLICT"]=2,l}(),c.ProbeReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.mid=t.int64();break}case 2:{o.buvid=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.api.probe.v1.ProbeReq)return t;let i=new u.bilibili.api.probe.v1.ProbeReq;return t.mid!=null&&(r.Long?(i.mid=r.Long.fromValue(t.mid)).unsigned=!1:typeof t.mid=="string"?i.mid=parseInt(t.mid,10):typeof t.mid=="number"?i.mid=t.mid:typeof t.mid=="object"&&(i.mid=new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber())),t.buvid!=null&&(i.buvid=String(t.buvid)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.mid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mid=i.longs===String?"0":0;n.buvid=""}return t.mid!=null&&t.hasOwnProperty("mid")&&(typeof t.mid=="number"?n.mid=i.longs===String?String(t.mid):t.mid:n.mid=i.longs===String?r.Long.prototype.toString.call(t.mid):i.longs===Number?new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber():t.mid),t.buvid!=null&&t.hasOwnProperty("buvid")&&(n.buvid=t.buvid),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.api.probe.v1.ProbeReq"},e}(),c.ProbeReply=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.content=t.string();break}case 2:{o.timestamp=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.api.probe.v1.ProbeReply)return t;let i=new u.bilibili.api.probe.v1.ProbeReply;return t.content!=null&&(i.content=String(t.content)),t.timestamp!=null&&(r.Long?(i.timestamp=r.Long.fromValue(t.timestamp)).unsigned=!1:typeof t.timestamp=="string"?i.timestamp=parseInt(t.timestamp,10):typeof t.timestamp=="number"?i.timestamp=t.timestamp:typeof t.timestamp=="object"&&(i.timestamp=new r.LongBits(t.timestamp.low>>>0,t.timestamp.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(n.content="",r.Long){let o=new r.Long(0,0,!1);n.timestamp=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.timestamp=i.longs===String?"0":0;return t.content!=null&&t.hasOwnProperty("content")&&(n.content=t.content),t.timestamp!=null&&t.hasOwnProperty("timestamp")&&(typeof t.timestamp=="number"?n.timestamp=i.longs===String?String(t.timestamp):t.timestamp:n.timestamp=i.longs===String?r.Long.prototype.toString.call(t.timestamp):i.longs===Number?new r.LongBits(t.timestamp.low>>>0,t.timestamp.high>>>0).toNumber():t.timestamp),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.api.probe.v1.ProbeReply"},e}(),c.ProbeStreamReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.mid=t.int64();break}case 2:{o.sequence=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.api.probe.v1.ProbeStreamReq)return t;let i=new u.bilibili.api.probe.v1.ProbeStreamReq;return t.mid!=null&&(r.Long?(i.mid=r.Long.fromValue(t.mid)).unsigned=!1:typeof t.mid=="string"?i.mid=parseInt(t.mid,10):typeof t.mid=="number"?i.mid=t.mid:typeof t.mid=="object"&&(i.mid=new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber())),t.sequence!=null&&(r.Long?(i.sequence=r.Long.fromValue(t.sequence)).unsigned=!1:typeof t.sequence=="string"?i.sequence=parseInt(t.sequence,10):typeof t.sequence=="number"?i.sequence=t.sequence:typeof t.sequence=="object"&&(i.sequence=new r.LongBits(t.sequence.low>>>0,t.sequence.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.mid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.sequence=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.sequence=i.longs===String?"0":0}return t.mid!=null&&t.hasOwnProperty("mid")&&(typeof t.mid=="number"?n.mid=i.longs===String?String(t.mid):t.mid:n.mid=i.longs===String?r.Long.prototype.toString.call(t.mid):i.longs===Number?new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber():t.mid),t.sequence!=null&&t.hasOwnProperty("sequence")&&(typeof t.sequence=="number"?n.sequence=i.longs===String?String(t.sequence):t.sequence:n.sequence=i.longs===String?r.Long.prototype.toString.call(t.sequence):i.longs===Number?new r.LongBits(t.sequence.low>>>0,t.sequence.high>>>0).toNumber():t.sequence),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.api.probe.v1.ProbeStreamReq"},e}(),c.ProbeStreamReply=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.sequence=t.int64();break}case 2:{o.timestamp=t.int64();break}case 3:{o.content=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.api.probe.v1.ProbeStreamReply)return t;let i=new u.bilibili.api.probe.v1.ProbeStreamReply;return t.sequence!=null&&(r.Long?(i.sequence=r.Long.fromValue(t.sequence)).unsigned=!1:typeof t.sequence=="string"?i.sequence=parseInt(t.sequence,10):typeof t.sequence=="number"?i.sequence=t.sequence:typeof t.sequence=="object"&&(i.sequence=new r.LongBits(t.sequence.low>>>0,t.sequence.high>>>0).toNumber())),t.timestamp!=null&&(r.Long?(i.timestamp=r.Long.fromValue(t.timestamp)).unsigned=!1:typeof t.timestamp=="string"?i.timestamp=parseInt(t.timestamp,10):typeof t.timestamp=="number"?i.timestamp=t.timestamp:typeof t.timestamp=="object"&&(i.timestamp=new r.LongBits(t.timestamp.low>>>0,t.timestamp.high>>>0).toNumber())),t.content!=null&&(i.content=String(t.content)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.sequence=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.sequence=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.timestamp=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.timestamp=i.longs===String?"0":0;n.content=""}return t.sequence!=null&&t.hasOwnProperty("sequence")&&(typeof t.sequence=="number"?n.sequence=i.longs===String?String(t.sequence):t.sequence:n.sequence=i.longs===String?r.Long.prototype.toString.call(t.sequence):i.longs===Number?new r.LongBits(t.sequence.low>>>0,t.sequence.high>>>0).toNumber():t.sequence),t.timestamp!=null&&t.hasOwnProperty("timestamp")&&(typeof t.timestamp=="number"?n.timestamp=i.longs===String?String(t.timestamp):t.timestamp:n.timestamp=i.longs===String?r.Long.prototype.toString.call(t.timestamp):i.longs===Number?new r.LongBits(t.timestamp.low>>>0,t.timestamp.high>>>0).toNumber():t.timestamp),t.content!=null&&t.hasOwnProperty("content")&&(n.content=t.content),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.api.probe.v1.ProbeStreamReply"},e}(),c.ProbeSubReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.buvid=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.api.probe.v1.ProbeSubReq)return t;let i=new u.bilibili.api.probe.v1.ProbeSubReq;return t.buvid!=null&&(i.buvid=String(t.buvid)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.buvid=""),t.buvid!=null&&t.hasOwnProperty("buvid")&&(n.buvid=t.buvid),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.api.probe.v1.ProbeSubReq"},e}(),c.ProbeSubReply=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.messageId=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.api.probe.v1.ProbeSubReply)return t;let i=new u.bilibili.api.probe.v1.ProbeSubReply;return t.messageId!=null&&(r.Long?(i.messageId=r.Long.fromValue(t.messageId)).unsigned=!1:typeof t.messageId=="string"?i.messageId=parseInt(t.messageId,10):typeof t.messageId=="number"?i.messageId=t.messageId:typeof t.messageId=="object"&&(i.messageId=new r.LongBits(t.messageId.low>>>0,t.messageId.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(r.Long){let o=new r.Long(0,0,!1);n.messageId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.messageId=i.longs===String?"0":0;return t.messageId!=null&&t.hasOwnProperty("messageId")&&(typeof t.messageId=="number"?n.messageId=i.longs===String?String(t.messageId):t.messageId:n.messageId=i.longs===String?r.Long.prototype.toString.call(t.messageId):i.longs===Number?new r.LongBits(t.messageId.low>>>0,t.messageId.high>>>0).toNumber():t.messageId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.api.probe.v1.ProbeSubReply"},e}(),c.CodeReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.code=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.api.probe.v1.CodeReq)return t;let i=new u.bilibili.api.probe.v1.CodeReq;return t.code!=null&&(r.Long?(i.code=r.Long.fromValue(t.code)).unsigned=!1:typeof t.code=="string"?i.code=parseInt(t.code,10):typeof t.code=="number"?i.code=t.code:typeof t.code=="object"&&(i.code=new r.LongBits(t.code.low>>>0,t.code.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(r.Long){let o=new r.Long(0,0,!1);n.code=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.code=i.longs===String?"0":0;return t.code!=null&&t.hasOwnProperty("code")&&(typeof t.code=="number"?n.code=i.longs===String?String(t.code):t.code:n.code=i.longs===String?r.Long.prototype.toString.call(t.code):i.longs===Number?new r.LongBits(t.code.low>>>0,t.code.high>>>0).toNumber():t.code),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.api.probe.v1.CodeReq"},e}(),c.CodeReply=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.id=t.string();break}case 2:{o.id1=t.string();break}case 3:{o.code=t.int64();break}case 4:{o.messageS=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.api.probe.v1.CodeReply)return t;let i=new u.bilibili.api.probe.v1.CodeReply;return t.id!=null&&(i.id=String(t.id)),t.id1!=null&&(i.id1=String(t.id1)),t.code!=null&&(r.Long?(i.code=r.Long.fromValue(t.code)).unsigned=!1:typeof t.code=="string"?i.code=parseInt(t.code,10):typeof t.code=="number"?i.code=t.code:typeof t.code=="object"&&(i.code=new r.LongBits(t.code.low>>>0,t.code.high>>>0).toNumber())),t.messageS!=null&&(i.messageS=String(t.messageS)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.id="",n.id1="",r.Long){let o=new r.Long(0,0,!1);n.code=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.code=i.longs===String?"0":0;n.messageS=""}return t.id!=null&&t.hasOwnProperty("id")&&(n.id=t.id),t.id1!=null&&t.hasOwnProperty("id1")&&(n.id1=t.id1),t.code!=null&&t.hasOwnProperty("code")&&(typeof t.code=="number"?n.code=i.longs===String?String(t.code):t.code:n.code=i.longs===String?r.Long.prototype.toString.call(t.code):i.longs===Number?new r.LongBits(t.code.low>>>0,t.code.high>>>0).toNumber():t.code),t.messageS!=null&&t.hasOwnProperty("messageS")&&(n.messageS=t.messageS),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.api.probe.v1.CodeReply"},e}(),c.CreatTask=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.name=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.api.probe.v1.CreatTask)return t;let i=new u.bilibili.api.probe.v1.CreatTask;return t.name!=null&&(i.name=String(t.name)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.name=""),t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.api.probe.v1.CreatTask"},e}(),c.Task=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.name=t.string();break}case 2:{o.author=t.string();break}case 3:{o.cache=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.api.probe.v1.Task)return t;let i=new u.bilibili.api.probe.v1.Task;return t.name!=null&&(i.name=String(t.name)),t.author!=null&&(i.author=String(t.author)),t.cache!=null&&(i.cache=!!t.cache),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.name="",n.author="",n.cache=!1),t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),t.author!=null&&t.hasOwnProperty("author")&&(n.author=t.author),t.cache!=null&&t.hasOwnProperty("cache")&&(n.cache=t.cache),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.api.probe.v1.Task"},e}(),c.Probe=function(){function e(l,t,i){b.rpc.Service.call(this,l,t,i)}return(e.prototype=Object.create(b.rpc.Service.prototype)).constructor=e,e.create=function(t,i,n){return new this(t,i,n)},Object.defineProperty(e.prototype.testReq=function l(t,i){return this.rpcCall(l,u.bilibili.api.probe.v1.ProbeReq,u.bilibili.api.probe.v1.ProbeReply,t,i)},"name",{value:"TestReq"}),Object.defineProperty(e.prototype.testStream=function l(t,i){return this.rpcCall(l,u.bilibili.api.probe.v1.ProbeStreamReq,u.bilibili.api.probe.v1.ProbeStreamReply,t,i)},"name",{value:"TestStream"}),Object.defineProperty(e.prototype.testSub=function l(t,i){return this.rpcCall(l,u.bilibili.api.probe.v1.ProbeSubReq,u.bilibili.api.probe.v1.ProbeSubReply,t,i)},"name",{value:"TestSub"}),Object.defineProperty(e.prototype.testCode=function l(t,i){return this.rpcCall(l,u.bilibili.api.probe.v1.CodeReq,u.bilibili.api.probe.v1.CodeReply,t,i)},"name",{value:"TestCode"}),e}(),c.ErrorMessage=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.code=t.int64();break}case 2:{o.reason=t.string();break}case 3:{o.message=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.api.probe.v1.ErrorMessage)return t;let i=new u.bilibili.api.probe.v1.ErrorMessage;return t.code!=null&&(r.Long?(i.code=r.Long.fromValue(t.code)).unsigned=!1:typeof t.code=="string"?i.code=parseInt(t.code,10):typeof t.code=="number"?i.code=t.code:typeof t.code=="object"&&(i.code=new r.LongBits(t.code.low>>>0,t.code.high>>>0).toNumber())),t.reason!=null&&(i.reason=String(t.reason)),t.message!=null&&(i.message=String(t.message)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.code=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.code=i.longs===String?"0":0;n.reason="",n.message=""}return t.code!=null&&t.hasOwnProperty("code")&&(typeof t.code=="number"?n.code=i.longs===String?String(t.code):t.code:n.code=i.longs===String?r.Long.prototype.toString.call(t.code):i.longs===Number?new r.LongBits(t.code.low>>>0,t.code.high>>>0).toNumber():t.code),t.reason!=null&&t.hasOwnProperty("reason")&&(n.reason=t.reason),t.message!=null&&t.hasOwnProperty("message")&&(n.message=t.message),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.api.probe.v1.ErrorMessage"},e}(),c.Category=function(){let e={},l=Object.create(e);return l[e[0]="CATEGORY_UNSPECIFIED"]=0,l[e[1]="CATEGORY_ONE"]=1,l[e[2]="CATEGORY_TWO"]=2,l[e[3]="CATEGORY_THREE"]=3,l[e[4]="CATEGORY_FOUR"]=4,l}(),c.Embedded=function(){function e(l){if(this.repeatedBoolVal=[],this.repeatedInt32Val=[],this.repeatedInt64Val=[],this.repeatedFloatVal=[],this.repeatedDoubleVal=[],this.repeatedStringVal=[],this.mapStringVal={},this.mapErrorVal={},l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.boolVal=t.bool();break}case 2:{o.int32Val=t.int32();break}case 3:{o.int64Val=t.int64();break}case 4:{o.floatVal=t.float();break}case 5:{o.doubleVal=t.double();break}case 6:{o.stringVal=t.string();break}case 7:{if(o.repeatedBoolVal&&o.repeatedBoolVal.length||(o.repeatedBoolVal=[]),(s&7)===2){let v=t.uint32()+t.pos;for(;t.pos>>3){case 1:a=t.string();break;case 2:y=t.string();break;default:t.skipType(g&7);break}}o.mapStringVal[a]=y;break}case 14:{o.mapErrorVal===r.emptyObject&&(o.mapErrorVal={});let v=t.uint32()+t.pos;for(a="",y=null;t.pos>>3){case 1:a=t.string();break;case 2:y=u.bilibili.api.probe.v1.ErrorMessage.decode(t,t.uint32());break;default:t.skipType(g&7);break}}o.mapErrorVal[a]=y;break}default:t.skipType(s&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.api.probe.v1.Embedded)return t;let i=new u.bilibili.api.probe.v1.Embedded;if(t.boolVal!=null&&(i.boolVal=!!t.boolVal),t.int32Val!=null&&(i.int32Val=t.int32Val|0),t.int64Val!=null&&(r.Long?(i.int64Val=r.Long.fromValue(t.int64Val)).unsigned=!1:typeof t.int64Val=="string"?i.int64Val=parseInt(t.int64Val,10):typeof t.int64Val=="number"?i.int64Val=t.int64Val:typeof t.int64Val=="object"&&(i.int64Val=new r.LongBits(t.int64Val.low>>>0,t.int64Val.high>>>0).toNumber())),t.floatVal!=null&&(i.floatVal=Number(t.floatVal)),t.doubleVal!=null&&(i.doubleVal=Number(t.doubleVal)),t.stringVal!=null&&(i.stringVal=String(t.stringVal)),t.repeatedBoolVal){if(!Array.isArray(t.repeatedBoolVal))throw TypeError(".bilibili.api.probe.v1.Embedded.repeatedBoolVal: array expected");i.repeatedBoolVal=[];for(let n=0;n>>0,t.repeatedInt64Val[n].high>>>0).toNumber())}if(t.repeatedFloatVal){if(!Array.isArray(t.repeatedFloatVal))throw TypeError(".bilibili.api.probe.v1.Embedded.repeatedFloatVal: array expected");i.repeatedFloatVal=[];for(let n=0;n>>0,t.int64Val.high>>>0).toNumber():t.int64Val),t.floatVal!=null&&t.hasOwnProperty("floatVal")&&(n.floatVal=i.json&&!isFinite(t.floatVal)?String(t.floatVal):t.floatVal),t.doubleVal!=null&&t.hasOwnProperty("doubleVal")&&(n.doubleVal=i.json&&!isFinite(t.doubleVal)?String(t.doubleVal):t.doubleVal),t.stringVal!=null&&t.hasOwnProperty("stringVal")&&(n.stringVal=t.stringVal),t.repeatedBoolVal&&t.repeatedBoolVal.length){n.repeatedBoolVal=[];for(let a=0;a>>0,t.repeatedInt64Val[a].high>>>0).toNumber():t.repeatedInt64Val[a]}if(t.repeatedFloatVal&&t.repeatedFloatVal.length){n.repeatedFloatVal=[];for(let a=0;a>>3){case 1:{o.id=t.int32();break}case 2:{o.num=t.int64();break}case 3:{o.lang=t.string();break}case 4:{o.cate=t.int32();break}case 5:{o.embedded=u.bilibili.api.probe.v1.Embedded.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.api.probe.v1.SimpleMessage)return t;let i=new u.bilibili.api.probe.v1.SimpleMessage;switch(t.id!=null&&(i.id=t.id|0),t.num!=null&&(r.Long?(i.num=r.Long.fromValue(t.num)).unsigned=!1:typeof t.num=="string"?i.num=parseInt(t.num,10):typeof t.num=="number"?i.num=t.num:typeof t.num=="object"&&(i.num=new r.LongBits(t.num.low>>>0,t.num.high>>>0).toNumber())),t.lang!=null&&(i.lang=String(t.lang)),t.cate){default:if(typeof t.cate=="number"){i.cate=t.cate;break}break;case"CATEGORY_UNSPECIFIED":case 0:i.cate=0;break;case"CATEGORY_ONE":case 1:i.cate=1;break;case"CATEGORY_TWO":case 2:i.cate=2;break;case"CATEGORY_THREE":case 3:i.cate=3;break;case"CATEGORY_FOUR":case 4:i.cate=4;break}if(t.embedded!=null){if(typeof t.embedded!="object")throw TypeError(".bilibili.api.probe.v1.SimpleMessage.embedded: object expected");i.embedded=u.bilibili.api.probe.v1.Embedded.fromObject(t.embedded)}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.id=0,r.Long){let o=new r.Long(0,0,!1);n.num=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.num=i.longs===String?"0":0;n.lang="",n.cate=i.enums===String?"CATEGORY_UNSPECIFIED":0,n.embedded=null}return t.id!=null&&t.hasOwnProperty("id")&&(n.id=t.id),t.num!=null&&t.hasOwnProperty("num")&&(typeof t.num=="number"?n.num=i.longs===String?String(t.num):t.num:n.num=i.longs===String?r.Long.prototype.toString.call(t.num):i.longs===Number?new r.LongBits(t.num.low>>>0,t.num.high>>>0).toNumber():t.num),t.lang!=null&&t.hasOwnProperty("lang")&&(n.lang=t.lang),t.cate!=null&&t.hasOwnProperty("cate")&&(n.cate=i.enums===String?u.bilibili.api.probe.v1.Category[t.cate]===void 0?t.cate:u.bilibili.api.probe.v1.Category[t.cate]:t.cate),t.embedded!=null&&t.hasOwnProperty("embedded")&&(n.embedded=u.bilibili.api.probe.v1.Embedded.toObject(t.embedded,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.api.probe.v1.SimpleMessage"},e}(),c.DynamicMessageUpdate=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.body=u.bilibili.api.probe.v1.SimpleMessage.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.api.probe.v1.DynamicMessageUpdate)return t;let i=new u.bilibili.api.probe.v1.DynamicMessageUpdate;if(t.body!=null){if(typeof t.body!="object")throw TypeError(".bilibili.api.probe.v1.DynamicMessageUpdate.body: object expected");i.body=u.bilibili.api.probe.v1.SimpleMessage.fromObject(t.body)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.body=null),t.body!=null&&t.hasOwnProperty("body")&&(n.body=u.bilibili.api.probe.v1.SimpleMessage.toObject(t.body,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.api.probe.v1.DynamicMessageUpdate"},e}(),c.CreateTopic=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.id=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.api.probe.v1.CreateTopic)return t;let i=new u.bilibili.api.probe.v1.CreateTopic;return t.id!=null&&(r.Long?(i.id=r.Long.fromValue(t.id)).unsigned=!1:typeof t.id=="string"?i.id=parseInt(t.id,10):typeof t.id=="number"?i.id=t.id:typeof t.id=="object"&&(i.id=new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(r.Long){let o=new r.Long(0,0,!1);n.id=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.id=i.longs===String?"0":0;return t.id!=null&&t.hasOwnProperty("id")&&(typeof t.id=="number"?n.id=i.longs===String?String(t.id):t.id:n.id=i.longs===String?r.Long.prototype.toString.call(t.id):i.longs===Number?new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber():t.id),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.api.probe.v1.CreateTopic"},e}(),c.ProbeService=function(){function e(l,t,i){b.rpc.Service.call(this,l,t,i)}return(e.prototype=Object.create(b.rpc.Service.prototype)).constructor=e,e.create=function(t,i,n){return new this(t,i,n)},Object.defineProperty(e.prototype.echo=function l(t,i){return this.rpcCall(l,u.bilibili.api.probe.v1.SimpleMessage,u.bilibili.api.probe.v1.SimpleMessage,t,i)},"name",{value:"Echo"}),Object.defineProperty(e.prototype.echoBody=function l(t,i){return this.rpcCall(l,u.bilibili.api.probe.v1.SimpleMessage,u.bilibili.api.probe.v1.SimpleMessage,t,i)},"name",{value:"EchoBody"}),Object.defineProperty(e.prototype.echoDelete=function l(t,i){return this.rpcCall(l,u.bilibili.api.probe.v1.SimpleMessage,u.bilibili.api.probe.v1.SimpleMessage,t,i)},"name",{value:"EchoDelete"}),Object.defineProperty(e.prototype.echoPatch=function l(t,i){return this.rpcCall(l,u.bilibili.api.probe.v1.DynamicMessageUpdate,u.bilibili.api.probe.v1.DynamicMessageUpdate,t,i)},"name",{value:"EchoPatch"}),Object.defineProperty(e.prototype.echoError=function l(t,i){return this.rpcCall(l,u.bilibili.api.probe.v1.ErrorMessage,u.bilibili.api.probe.v1.ErrorMessage,t,i)},"name",{value:"EchoError"}),e}(),c}(),p}(),d.ticket=function(){let p={};return p.v1=function(){let c={};return c.Ticket=function(){function e(l,t,i){b.rpc.Service.call(this,l,t,i)}return(e.prototype=Object.create(b.rpc.Service.prototype)).constructor=e,e.create=function(t,i,n){return new this(t,i,n)},Object.defineProperty(e.prototype.getTicket=function l(t,i){return this.rpcCall(l,u.bilibili.api.ticket.v1.GetTicketRequest,u.bilibili.api.ticket.v1.GetTicketResponse,t,i)},"name",{value:"GetTicket"}),Object.defineProperty(e.prototype.genWebTicket=function l(t,i){return this.rpcCall(l,u.bilibili.api.ticket.v1.GenWebTicketRequest,u.bilibili.api.ticket.v1.GenWebTicketResponse,t,i)},"name",{value:"GenWebTicket"}),e}(),c.GetTicketRequest=function(){function e(l){if(this.context={},l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.context===r.emptyObject&&(o.context={});let v=t.uint32()+t.pos;for(a="",y=[];t.pos>>3){case 1:a=t.string();break;case 2:y=t.bytes();break;default:t.skipType(g&7);break}}o.context[a]=y;break}case 2:{o.keyId=t.string();break}case 3:{o.sign=t.bytes();break}case 4:{o.token=t.string();break}default:t.skipType(s&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.api.ticket.v1.GetTicketRequest)return t;let i=new u.bilibili.api.ticket.v1.GetTicketRequest;if(t.context){if(typeof t.context!="object")throw TypeError(".bilibili.api.ticket.v1.GetTicketRequest.context: object expected");i.context={};for(let n=Object.keys(t.context),o=0;o=0&&(i.context[n[o]]=t.context[n[o]])}return t.keyId!=null&&(i.keyId=String(t.keyId)),t.sign!=null&&(typeof t.sign=="string"?r.base64.decode(t.sign,i.sign=r.newBuffer(r.base64.length(t.sign)),0):t.sign.length>=0&&(i.sign=t.sign)),t.token!=null&&(i.token=String(t.token)),i},e.toObject=function(t,i){i||(i={});let n={};(i.objects||i.defaults)&&(n.context={}),i.defaults&&(n.keyId="",i.bytes===String?n.sign="":(n.sign=[],i.bytes!==Array&&(n.sign=r.newBuffer(n.sign))),n.token="");let o;if(t.context&&(o=Object.keys(t.context)).length){n.context={};for(let a=0;a>>3){case 1:{o.ticket=t.string();break}case 2:{o.createdAt=t.int64();break}case 3:{o.ttl=t.int64();break}case 4:{o.context=u.bilibili.api.ticket.v1.GetTicketResponse.Context.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.api.ticket.v1.GetTicketResponse)return t;let i=new u.bilibili.api.ticket.v1.GetTicketResponse;if(t.ticket!=null&&(i.ticket=String(t.ticket)),t.createdAt!=null&&(r.Long?(i.createdAt=r.Long.fromValue(t.createdAt)).unsigned=!1:typeof t.createdAt=="string"?i.createdAt=parseInt(t.createdAt,10):typeof t.createdAt=="number"?i.createdAt=t.createdAt:typeof t.createdAt=="object"&&(i.createdAt=new r.LongBits(t.createdAt.low>>>0,t.createdAt.high>>>0).toNumber())),t.ttl!=null&&(r.Long?(i.ttl=r.Long.fromValue(t.ttl)).unsigned=!1:typeof t.ttl=="string"?i.ttl=parseInt(t.ttl,10):typeof t.ttl=="number"?i.ttl=t.ttl:typeof t.ttl=="object"&&(i.ttl=new r.LongBits(t.ttl.low>>>0,t.ttl.high>>>0).toNumber())),t.context!=null){if(typeof t.context!="object")throw TypeError(".bilibili.api.ticket.v1.GetTicketResponse.context: object expected");i.context=u.bilibili.api.ticket.v1.GetTicketResponse.Context.fromObject(t.context)}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.ticket="",r.Long){let o=new r.Long(0,0,!1);n.createdAt=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.createdAt=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.ttl=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.ttl=i.longs===String?"0":0;n.context=null}return t.ticket!=null&&t.hasOwnProperty("ticket")&&(n.ticket=t.ticket),t.createdAt!=null&&t.hasOwnProperty("createdAt")&&(typeof t.createdAt=="number"?n.createdAt=i.longs===String?String(t.createdAt):t.createdAt:n.createdAt=i.longs===String?r.Long.prototype.toString.call(t.createdAt):i.longs===Number?new r.LongBits(t.createdAt.low>>>0,t.createdAt.high>>>0).toNumber():t.createdAt),t.ttl!=null&&t.hasOwnProperty("ttl")&&(typeof t.ttl=="number"?n.ttl=i.longs===String?String(t.ttl):t.ttl:n.ttl=i.longs===String?r.Long.prototype.toString.call(t.ttl):i.longs===Number?new r.LongBits(t.ttl.low>>>0,t.ttl.high>>>0).toNumber():t.ttl),t.context!=null&&t.hasOwnProperty("context")&&(n.context=u.bilibili.api.ticket.v1.GetTicketResponse.Context.toObject(t.context,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.api.ticket.v1.GetTicketResponse"},e.Context=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.vVoucher=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.api.ticket.v1.GetTicketResponse.Context)return i;let n=new u.bilibili.api.ticket.v1.GetTicketResponse.Context;return i.vVoucher!=null&&(n.vVoucher=String(i.vVoucher)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.vVoucher=""),i.vVoucher!=null&&i.hasOwnProperty("vVoucher")&&(o.vVoucher=i.vVoucher),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.api.ticket.v1.GetTicketResponse.Context"},l}(),e}(),c.GenWebTicketRequest=function(){function e(l){if(this.context={},l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.context===r.emptyObject&&(o.context={});let v=t.uint32()+t.pos;for(a="",y="";t.pos>>3){case 1:a=t.string();break;case 2:y=t.string();break;default:t.skipType(g&7);break}}o.context[a]=y;break}case 2:{o.keyId=t.string();break}case 3:{o.hexsign=t.string();break}case 4:{o.token=t.string();break}default:t.skipType(s&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.api.ticket.v1.GenWebTicketRequest)return t;let i=new u.bilibili.api.ticket.v1.GenWebTicketRequest;if(t.context){if(typeof t.context!="object")throw TypeError(".bilibili.api.ticket.v1.GenWebTicketRequest.context: object expected");i.context={};for(let n=Object.keys(t.context),o=0;o>>3){case 1:{o.ticket=t.string();break}case 2:{o.createdAt=t.int64();break}case 3:{o.ttl=t.int64();break}case 4:{o.context=u.bilibili.api.ticket.v1.GenWebTicketResponse.Context.decode(t,t.uint32());break}case 5:{o.nav=u.bilibili.api.ticket.v1.GenWebTicketResponse.Nav.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.api.ticket.v1.GenWebTicketResponse)return t;let i=new u.bilibili.api.ticket.v1.GenWebTicketResponse;if(t.ticket!=null&&(i.ticket=String(t.ticket)),t.createdAt!=null&&(r.Long?(i.createdAt=r.Long.fromValue(t.createdAt)).unsigned=!1:typeof t.createdAt=="string"?i.createdAt=parseInt(t.createdAt,10):typeof t.createdAt=="number"?i.createdAt=t.createdAt:typeof t.createdAt=="object"&&(i.createdAt=new r.LongBits(t.createdAt.low>>>0,t.createdAt.high>>>0).toNumber())),t.ttl!=null&&(r.Long?(i.ttl=r.Long.fromValue(t.ttl)).unsigned=!1:typeof t.ttl=="string"?i.ttl=parseInt(t.ttl,10):typeof t.ttl=="number"?i.ttl=t.ttl:typeof t.ttl=="object"&&(i.ttl=new r.LongBits(t.ttl.low>>>0,t.ttl.high>>>0).toNumber())),t.context!=null){if(typeof t.context!="object")throw TypeError(".bilibili.api.ticket.v1.GenWebTicketResponse.context: object expected");i.context=u.bilibili.api.ticket.v1.GenWebTicketResponse.Context.fromObject(t.context)}if(t.nav!=null){if(typeof t.nav!="object")throw TypeError(".bilibili.api.ticket.v1.GenWebTicketResponse.nav: object expected");i.nav=u.bilibili.api.ticket.v1.GenWebTicketResponse.Nav.fromObject(t.nav)}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.ticket="",r.Long){let o=new r.Long(0,0,!1);n.createdAt=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.createdAt=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.ttl=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.ttl=i.longs===String?"0":0;n.context=null,n.nav=null}return t.ticket!=null&&t.hasOwnProperty("ticket")&&(n.ticket=t.ticket),t.createdAt!=null&&t.hasOwnProperty("createdAt")&&(typeof t.createdAt=="number"?n.createdAt=i.longs===String?String(t.createdAt):t.createdAt:n.createdAt=i.longs===String?r.Long.prototype.toString.call(t.createdAt):i.longs===Number?new r.LongBits(t.createdAt.low>>>0,t.createdAt.high>>>0).toNumber():t.createdAt),t.ttl!=null&&t.hasOwnProperty("ttl")&&(typeof t.ttl=="number"?n.ttl=i.longs===String?String(t.ttl):t.ttl:n.ttl=i.longs===String?r.Long.prototype.toString.call(t.ttl):i.longs===Number?new r.LongBits(t.ttl.low>>>0,t.ttl.high>>>0).toNumber():t.ttl),t.context!=null&&t.hasOwnProperty("context")&&(n.context=u.bilibili.api.ticket.v1.GenWebTicketResponse.Context.toObject(t.context,i)),t.nav!=null&&t.hasOwnProperty("nav")&&(n.nav=u.bilibili.api.ticket.v1.GenWebTicketResponse.Nav.toObject(t.nav,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.api.ticket.v1.GenWebTicketResponse"},e.Context=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.vVoucher=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.api.ticket.v1.GenWebTicketResponse.Context)return i;let n=new u.bilibili.api.ticket.v1.GenWebTicketResponse.Context;return i.vVoucher!=null&&(n.vVoucher=String(i.vVoucher)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.vVoucher=""),i.vVoucher!=null&&i.hasOwnProperty("vVoucher")&&(o.vVoucher=i.vVoucher),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.api.ticket.v1.GenWebTicketResponse.Context"},l}(),e.Nav=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.img=i.string();break}case 2:{a.sub=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.api.ticket.v1.GenWebTicketResponse.Nav)return i;let n=new u.bilibili.api.ticket.v1.GenWebTicketResponse.Nav;return i.img!=null&&(n.img=String(i.img)),i.sub!=null&&(n.sub=String(i.sub)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.img="",o.sub=""),i.img!=null&&i.hasOwnProperty("img")&&(o.img=i.img),i.sub!=null&&i.hasOwnProperty("sub")&&(o.sub=i.sub),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.api.ticket.v1.GenWebTicketResponse.Nav"},l}(),e}(),c}(),p}(),d}(),O.app=function(){let d={};return d.archive=function(){let p={};return p.middleware=function(){let c={};return c.v1=function(){let e={};return e.PlayerArgs=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.qn=i.int64();break}case 2:{a.fnver=i.int64();break}case 3:{a.fnval=i.int64();break}case 4:{a.forceHost=i.int64();break}case 5:{a.voiceBalance=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.app.archive.middleware.v1.PlayerArgs)return i;let n=new u.bilibili.app.archive.middleware.v1.PlayerArgs;return i.qn!=null&&(r.Long?(n.qn=r.Long.fromValue(i.qn)).unsigned=!1:typeof i.qn=="string"?n.qn=parseInt(i.qn,10):typeof i.qn=="number"?n.qn=i.qn:typeof i.qn=="object"&&(n.qn=new r.LongBits(i.qn.low>>>0,i.qn.high>>>0).toNumber())),i.fnver!=null&&(r.Long?(n.fnver=r.Long.fromValue(i.fnver)).unsigned=!1:typeof i.fnver=="string"?n.fnver=parseInt(i.fnver,10):typeof i.fnver=="number"?n.fnver=i.fnver:typeof i.fnver=="object"&&(n.fnver=new r.LongBits(i.fnver.low>>>0,i.fnver.high>>>0).toNumber())),i.fnval!=null&&(r.Long?(n.fnval=r.Long.fromValue(i.fnval)).unsigned=!1:typeof i.fnval=="string"?n.fnval=parseInt(i.fnval,10):typeof i.fnval=="number"?n.fnval=i.fnval:typeof i.fnval=="object"&&(n.fnval=new r.LongBits(i.fnval.low>>>0,i.fnval.high>>>0).toNumber())),i.forceHost!=null&&(r.Long?(n.forceHost=r.Long.fromValue(i.forceHost)).unsigned=!1:typeof i.forceHost=="string"?n.forceHost=parseInt(i.forceHost,10):typeof i.forceHost=="number"?n.forceHost=i.forceHost:typeof i.forceHost=="object"&&(n.forceHost=new r.LongBits(i.forceHost.low>>>0,i.forceHost.high>>>0).toNumber())),i.voiceBalance!=null&&(r.Long?(n.voiceBalance=r.Long.fromValue(i.voiceBalance)).unsigned=!1:typeof i.voiceBalance=="string"?n.voiceBalance=parseInt(i.voiceBalance,10):typeof i.voiceBalance=="number"?n.voiceBalance=i.voiceBalance:typeof i.voiceBalance=="object"&&(n.voiceBalance=new r.LongBits(i.voiceBalance.low>>>0,i.voiceBalance.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.qn=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.qn=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.fnver=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.fnver=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.fnval=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.fnval=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.forceHost=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.forceHost=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.voiceBalance=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.voiceBalance=n.longs===String?"0":0}return i.qn!=null&&i.hasOwnProperty("qn")&&(typeof i.qn=="number"?o.qn=n.longs===String?String(i.qn):i.qn:o.qn=n.longs===String?r.Long.prototype.toString.call(i.qn):n.longs===Number?new r.LongBits(i.qn.low>>>0,i.qn.high>>>0).toNumber():i.qn),i.fnver!=null&&i.hasOwnProperty("fnver")&&(typeof i.fnver=="number"?o.fnver=n.longs===String?String(i.fnver):i.fnver:o.fnver=n.longs===String?r.Long.prototype.toString.call(i.fnver):n.longs===Number?new r.LongBits(i.fnver.low>>>0,i.fnver.high>>>0).toNumber():i.fnver),i.fnval!=null&&i.hasOwnProperty("fnval")&&(typeof i.fnval=="number"?o.fnval=n.longs===String?String(i.fnval):i.fnval:o.fnval=n.longs===String?r.Long.prototype.toString.call(i.fnval):n.longs===Number?new r.LongBits(i.fnval.low>>>0,i.fnval.high>>>0).toNumber():i.fnval),i.forceHost!=null&&i.hasOwnProperty("forceHost")&&(typeof i.forceHost=="number"?o.forceHost=n.longs===String?String(i.forceHost):i.forceHost:o.forceHost=n.longs===String?r.Long.prototype.toString.call(i.forceHost):n.longs===Number?new r.LongBits(i.forceHost.low>>>0,i.forceHost.high>>>0).toNumber():i.forceHost),i.voiceBalance!=null&&i.hasOwnProperty("voiceBalance")&&(typeof i.voiceBalance=="number"?o.voiceBalance=n.longs===String?String(i.voiceBalance):i.voiceBalance:o.voiceBalance=n.longs===String?r.Long.prototype.toString.call(i.voiceBalance):n.longs===Number?new r.LongBits(i.voiceBalance.low>>>0,i.voiceBalance.high>>>0).toNumber():i.voiceBalance),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.app.archive.middleware.v1.PlayerArgs"},l}(),e}(),c}(),p}(),d.card=function(){let p={};return p.v1=function(){let c={};return c.AdInfo=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.creativeId=t.int64();break}case 2:{o.creativeType=t.int32();break}case 3:{o.cardType=t.int32();break}case 4:{o.creativeContent=u.bilibili.app.card.v1.CreativeContent.decode(t,t.uint32());break}case 5:{o.adCb=t.string();break}case 6:{o.resource=t.int64();break}case 7:{o.source=t.int32();break}case 8:{o.requestId=t.string();break}case 9:{o.isAd=t.bool();break}case 10:{o.cmMark=t.int64();break}case 11:{o.index=t.int32();break}case 12:{o.isAdLoc=t.bool();break}case 13:{o.cardIndex=t.int32();break}case 14:{o.clientIp=t.string();break}case 15:{o.extra=t.bytes();break}case 16:{o.creativeStyle=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.card.v1.AdInfo)return t;let i=new u.bilibili.app.card.v1.AdInfo;if(t.creativeId!=null&&(r.Long?(i.creativeId=r.Long.fromValue(t.creativeId)).unsigned=!1:typeof t.creativeId=="string"?i.creativeId=parseInt(t.creativeId,10):typeof t.creativeId=="number"?i.creativeId=t.creativeId:typeof t.creativeId=="object"&&(i.creativeId=new r.LongBits(t.creativeId.low>>>0,t.creativeId.high>>>0).toNumber())),t.creativeType!=null&&(i.creativeType=t.creativeType|0),t.cardType!=null&&(i.cardType=t.cardType|0),t.creativeContent!=null){if(typeof t.creativeContent!="object")throw TypeError(".bilibili.app.card.v1.AdInfo.creativeContent: object expected");i.creativeContent=u.bilibili.app.card.v1.CreativeContent.fromObject(t.creativeContent)}return t.adCb!=null&&(i.adCb=String(t.adCb)),t.resource!=null&&(r.Long?(i.resource=r.Long.fromValue(t.resource)).unsigned=!1:typeof t.resource=="string"?i.resource=parseInt(t.resource,10):typeof t.resource=="number"?i.resource=t.resource:typeof t.resource=="object"&&(i.resource=new r.LongBits(t.resource.low>>>0,t.resource.high>>>0).toNumber())),t.source!=null&&(i.source=t.source|0),t.requestId!=null&&(i.requestId=String(t.requestId)),t.isAd!=null&&(i.isAd=!!t.isAd),t.cmMark!=null&&(r.Long?(i.cmMark=r.Long.fromValue(t.cmMark)).unsigned=!1:typeof t.cmMark=="string"?i.cmMark=parseInt(t.cmMark,10):typeof t.cmMark=="number"?i.cmMark=t.cmMark:typeof t.cmMark=="object"&&(i.cmMark=new r.LongBits(t.cmMark.low>>>0,t.cmMark.high>>>0).toNumber())),t.index!=null&&(i.index=t.index|0),t.isAdLoc!=null&&(i.isAdLoc=!!t.isAdLoc),t.cardIndex!=null&&(i.cardIndex=t.cardIndex|0),t.clientIp!=null&&(i.clientIp=String(t.clientIp)),t.extra!=null&&(typeof t.extra=="string"?r.base64.decode(t.extra,i.extra=r.newBuffer(r.base64.length(t.extra)),0):t.extra.length>=0&&(i.extra=t.extra)),t.creativeStyle!=null&&(i.creativeStyle=t.creativeStyle|0),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.creativeId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.creativeId=i.longs===String?"0":0;if(n.creativeType=0,n.cardType=0,n.creativeContent=null,n.adCb="",r.Long){let o=new r.Long(0,0,!1);n.resource=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.resource=i.longs===String?"0":0;if(n.source=0,n.requestId="",n.isAd=!1,r.Long){let o=new r.Long(0,0,!1);n.cmMark=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.cmMark=i.longs===String?"0":0;n.index=0,n.isAdLoc=!1,n.cardIndex=0,n.clientIp="",i.bytes===String?n.extra="":(n.extra=[],i.bytes!==Array&&(n.extra=r.newBuffer(n.extra))),n.creativeStyle=0}return t.creativeId!=null&&t.hasOwnProperty("creativeId")&&(typeof t.creativeId=="number"?n.creativeId=i.longs===String?String(t.creativeId):t.creativeId:n.creativeId=i.longs===String?r.Long.prototype.toString.call(t.creativeId):i.longs===Number?new r.LongBits(t.creativeId.low>>>0,t.creativeId.high>>>0).toNumber():t.creativeId),t.creativeType!=null&&t.hasOwnProperty("creativeType")&&(n.creativeType=t.creativeType),t.cardType!=null&&t.hasOwnProperty("cardType")&&(n.cardType=t.cardType),t.creativeContent!=null&&t.hasOwnProperty("creativeContent")&&(n.creativeContent=u.bilibili.app.card.v1.CreativeContent.toObject(t.creativeContent,i)),t.adCb!=null&&t.hasOwnProperty("adCb")&&(n.adCb=t.adCb),t.resource!=null&&t.hasOwnProperty("resource")&&(typeof t.resource=="number"?n.resource=i.longs===String?String(t.resource):t.resource:n.resource=i.longs===String?r.Long.prototype.toString.call(t.resource):i.longs===Number?new r.LongBits(t.resource.low>>>0,t.resource.high>>>0).toNumber():t.resource),t.source!=null&&t.hasOwnProperty("source")&&(n.source=t.source),t.requestId!=null&&t.hasOwnProperty("requestId")&&(n.requestId=t.requestId),t.isAd!=null&&t.hasOwnProperty("isAd")&&(n.isAd=t.isAd),t.cmMark!=null&&t.hasOwnProperty("cmMark")&&(typeof t.cmMark=="number"?n.cmMark=i.longs===String?String(t.cmMark):t.cmMark:n.cmMark=i.longs===String?r.Long.prototype.toString.call(t.cmMark):i.longs===Number?new r.LongBits(t.cmMark.low>>>0,t.cmMark.high>>>0).toNumber():t.cmMark),t.index!=null&&t.hasOwnProperty("index")&&(n.index=t.index),t.isAdLoc!=null&&t.hasOwnProperty("isAdLoc")&&(n.isAdLoc=t.isAdLoc),t.cardIndex!=null&&t.hasOwnProperty("cardIndex")&&(n.cardIndex=t.cardIndex),t.clientIp!=null&&t.hasOwnProperty("clientIp")&&(n.clientIp=t.clientIp),t.extra!=null&&t.hasOwnProperty("extra")&&(n.extra=i.bytes===String?r.base64.encode(t.extra,0,t.extra.length):i.bytes===Array?Array.prototype.slice.call(t.extra):t.extra),t.creativeStyle!=null&&t.hasOwnProperty("creativeStyle")&&(n.creativeStyle=t.creativeStyle),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.card.v1.AdInfo"},e}(),c.CreativeContent=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.description=t.string();break}case 3:{o.videoId=t.int64();break}case 4:{o.username=t.string();break}case 5:{o.imageUrl=t.string();break}case 6:{o.imageMd5=t.string();break}case 7:{o.logUrl=t.string();break}case 8:{o.logMd5=t.string();break}case 9:{o.url=t.string();break}case 10:{o.clickUrl=t.string();break}case 11:{o.showUrl=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.card.v1.CreativeContent)return t;let i=new u.bilibili.app.card.v1.CreativeContent;return t.title!=null&&(i.title=String(t.title)),t.description!=null&&(i.description=String(t.description)),t.videoId!=null&&(r.Long?(i.videoId=r.Long.fromValue(t.videoId)).unsigned=!1:typeof t.videoId=="string"?i.videoId=parseInt(t.videoId,10):typeof t.videoId=="number"?i.videoId=t.videoId:typeof t.videoId=="object"&&(i.videoId=new r.LongBits(t.videoId.low>>>0,t.videoId.high>>>0).toNumber())),t.username!=null&&(i.username=String(t.username)),t.imageUrl!=null&&(i.imageUrl=String(t.imageUrl)),t.imageMd5!=null&&(i.imageMd5=String(t.imageMd5)),t.logUrl!=null&&(i.logUrl=String(t.logUrl)),t.logMd5!=null&&(i.logMd5=String(t.logMd5)),t.url!=null&&(i.url=String(t.url)),t.clickUrl!=null&&(i.clickUrl=String(t.clickUrl)),t.showUrl!=null&&(i.showUrl=String(t.showUrl)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.title="",n.description="",r.Long){let o=new r.Long(0,0,!1);n.videoId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.videoId=i.longs===String?"0":0;n.username="",n.imageUrl="",n.imageMd5="",n.logUrl="",n.logMd5="",n.url="",n.clickUrl="",n.showUrl=""}return t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.description!=null&&t.hasOwnProperty("description")&&(n.description=t.description),t.videoId!=null&&t.hasOwnProperty("videoId")&&(typeof t.videoId=="number"?n.videoId=i.longs===String?String(t.videoId):t.videoId:n.videoId=i.longs===String?r.Long.prototype.toString.call(t.videoId):i.longs===Number?new r.LongBits(t.videoId.low>>>0,t.videoId.high>>>0).toNumber():t.videoId),t.username!=null&&t.hasOwnProperty("username")&&(n.username=t.username),t.imageUrl!=null&&t.hasOwnProperty("imageUrl")&&(n.imageUrl=t.imageUrl),t.imageMd5!=null&&t.hasOwnProperty("imageMd5")&&(n.imageMd5=t.imageMd5),t.logUrl!=null&&t.hasOwnProperty("logUrl")&&(n.logUrl=t.logUrl),t.logMd5!=null&&t.hasOwnProperty("logMd5")&&(n.logMd5=t.logMd5),t.url!=null&&t.hasOwnProperty("url")&&(n.url=t.url),t.clickUrl!=null&&t.hasOwnProperty("clickUrl")&&(n.clickUrl=t.clickUrl),t.showUrl!=null&&t.hasOwnProperty("showUrl")&&(n.showUrl=t.showUrl),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.card.v1.CreativeContent"},e}(),c.Card=function(){function e(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.smallCoverV5=u.bilibili.app.card.v1.SmallCoverV5.decode(i,i.uint32());break}case 2:{a.largeCoverV1=u.bilibili.app.card.v1.LargeCoverV1.decode(i,i.uint32());break}case 3:{a.threeItemAllV2=u.bilibili.app.card.v1.ThreeItemAllV2.decode(i,i.uint32());break}case 4:{a.threeItemV1=u.bilibili.app.card.v1.ThreeItemV1.decode(i,i.uint32());break}case 5:{a.hotTopic=u.bilibili.app.card.v1.HotTopic.decode(i,i.uint32());break}case 6:{a.threeItemHV5=u.bilibili.app.card.v1.DynamicHot.decode(i,i.uint32());break}case 7:{a.middleCoverV3=u.bilibili.app.card.v1.MiddleCoverV3.decode(i,i.uint32());break}case 8:{a.largeCoverV4=u.bilibili.app.card.v1.LargeCoverV4.decode(i,i.uint32());break}case 9:{a.popularTopEntrance=u.bilibili.app.card.v1.PopularTopEntrance.decode(i,i.uint32());break}case 10:{a.rcmdOneItem=u.bilibili.app.card.v1.RcmdOneItem.decode(i,i.uint32());break}case 11:{a.smallCoverV5Ad=u.bilibili.app.card.v1.SmallCoverV5Ad.decode(i,i.uint32());break}case 12:{a.topicList=u.bilibili.app.card.v1.TopicList.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},e.fromObject=function(i){if(i instanceof u.bilibili.app.card.v1.Card)return i;let n=new u.bilibili.app.card.v1.Card;if(i.smallCoverV5!=null){if(typeof i.smallCoverV5!="object")throw TypeError(".bilibili.app.card.v1.Card.smallCoverV5: object expected");n.smallCoverV5=u.bilibili.app.card.v1.SmallCoverV5.fromObject(i.smallCoverV5)}if(i.largeCoverV1!=null){if(typeof i.largeCoverV1!="object")throw TypeError(".bilibili.app.card.v1.Card.largeCoverV1: object expected");n.largeCoverV1=u.bilibili.app.card.v1.LargeCoverV1.fromObject(i.largeCoverV1)}if(i.threeItemAllV2!=null){if(typeof i.threeItemAllV2!="object")throw TypeError(".bilibili.app.card.v1.Card.threeItemAllV2: object expected");n.threeItemAllV2=u.bilibili.app.card.v1.ThreeItemAllV2.fromObject(i.threeItemAllV2)}if(i.threeItemV1!=null){if(typeof i.threeItemV1!="object")throw TypeError(".bilibili.app.card.v1.Card.threeItemV1: object expected");n.threeItemV1=u.bilibili.app.card.v1.ThreeItemV1.fromObject(i.threeItemV1)}if(i.hotTopic!=null){if(typeof i.hotTopic!="object")throw TypeError(".bilibili.app.card.v1.Card.hotTopic: object expected");n.hotTopic=u.bilibili.app.card.v1.HotTopic.fromObject(i.hotTopic)}if(i.threeItemHV5!=null){if(typeof i.threeItemHV5!="object")throw TypeError(".bilibili.app.card.v1.Card.threeItemHV5: object expected");n.threeItemHV5=u.bilibili.app.card.v1.DynamicHot.fromObject(i.threeItemHV5)}if(i.middleCoverV3!=null){if(typeof i.middleCoverV3!="object")throw TypeError(".bilibili.app.card.v1.Card.middleCoverV3: object expected");n.middleCoverV3=u.bilibili.app.card.v1.MiddleCoverV3.fromObject(i.middleCoverV3)}if(i.largeCoverV4!=null){if(typeof i.largeCoverV4!="object")throw TypeError(".bilibili.app.card.v1.Card.largeCoverV4: object expected");n.largeCoverV4=u.bilibili.app.card.v1.LargeCoverV4.fromObject(i.largeCoverV4)}if(i.popularTopEntrance!=null){if(typeof i.popularTopEntrance!="object")throw TypeError(".bilibili.app.card.v1.Card.popularTopEntrance: object expected");n.popularTopEntrance=u.bilibili.app.card.v1.PopularTopEntrance.fromObject(i.popularTopEntrance)}if(i.rcmdOneItem!=null){if(typeof i.rcmdOneItem!="object")throw TypeError(".bilibili.app.card.v1.Card.rcmdOneItem: object expected");n.rcmdOneItem=u.bilibili.app.card.v1.RcmdOneItem.fromObject(i.rcmdOneItem)}if(i.smallCoverV5Ad!=null){if(typeof i.smallCoverV5Ad!="object")throw TypeError(".bilibili.app.card.v1.Card.smallCoverV5Ad: object expected");n.smallCoverV5Ad=u.bilibili.app.card.v1.SmallCoverV5Ad.fromObject(i.smallCoverV5Ad)}if(i.topicList!=null){if(typeof i.topicList!="object")throw TypeError(".bilibili.app.card.v1.Card.topicList: object expected");n.topicList=u.bilibili.app.card.v1.TopicList.fromObject(i.topicList)}return n},e.toObject=function(i,n){n||(n={});let o={};return i.smallCoverV5!=null&&i.hasOwnProperty("smallCoverV5")&&(o.smallCoverV5=u.bilibili.app.card.v1.SmallCoverV5.toObject(i.smallCoverV5,n),n.oneofs&&(o.item="smallCoverV5")),i.largeCoverV1!=null&&i.hasOwnProperty("largeCoverV1")&&(o.largeCoverV1=u.bilibili.app.card.v1.LargeCoverV1.toObject(i.largeCoverV1,n),n.oneofs&&(o.item="largeCoverV1")),i.threeItemAllV2!=null&&i.hasOwnProperty("threeItemAllV2")&&(o.threeItemAllV2=u.bilibili.app.card.v1.ThreeItemAllV2.toObject(i.threeItemAllV2,n),n.oneofs&&(o.item="threeItemAllV2")),i.threeItemV1!=null&&i.hasOwnProperty("threeItemV1")&&(o.threeItemV1=u.bilibili.app.card.v1.ThreeItemV1.toObject(i.threeItemV1,n),n.oneofs&&(o.item="threeItemV1")),i.hotTopic!=null&&i.hasOwnProperty("hotTopic")&&(o.hotTopic=u.bilibili.app.card.v1.HotTopic.toObject(i.hotTopic,n),n.oneofs&&(o.item="hotTopic")),i.threeItemHV5!=null&&i.hasOwnProperty("threeItemHV5")&&(o.threeItemHV5=u.bilibili.app.card.v1.DynamicHot.toObject(i.threeItemHV5,n),n.oneofs&&(o.item="threeItemHV5")),i.middleCoverV3!=null&&i.hasOwnProperty("middleCoverV3")&&(o.middleCoverV3=u.bilibili.app.card.v1.MiddleCoverV3.toObject(i.middleCoverV3,n),n.oneofs&&(o.item="middleCoverV3")),i.largeCoverV4!=null&&i.hasOwnProperty("largeCoverV4")&&(o.largeCoverV4=u.bilibili.app.card.v1.LargeCoverV4.toObject(i.largeCoverV4,n),n.oneofs&&(o.item="largeCoverV4")),i.popularTopEntrance!=null&&i.hasOwnProperty("popularTopEntrance")&&(o.popularTopEntrance=u.bilibili.app.card.v1.PopularTopEntrance.toObject(i.popularTopEntrance,n),n.oneofs&&(o.item="popularTopEntrance")),i.rcmdOneItem!=null&&i.hasOwnProperty("rcmdOneItem")&&(o.rcmdOneItem=u.bilibili.app.card.v1.RcmdOneItem.toObject(i.rcmdOneItem,n),n.oneofs&&(o.item="rcmdOneItem")),i.smallCoverV5Ad!=null&&i.hasOwnProperty("smallCoverV5Ad")&&(o.smallCoverV5Ad=u.bilibili.app.card.v1.SmallCoverV5Ad.toObject(i.smallCoverV5Ad,n),n.oneofs&&(o.item="smallCoverV5Ad")),i.topicList!=null&&i.hasOwnProperty("topicList")&&(o.topicList=u.bilibili.app.card.v1.TopicList.toObject(i.topicList,n),n.oneofs&&(o.item="topicList")),o},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.app.card.v1.Card"},e}(),c.Base=function(){function e(l){if(this.threePointV2=[],this.threePointV3=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.cardType=t.string();break}case 2:{o.cardGoto=t.string();break}case 3:{o.goto=t.string();break}case 4:{o.param=t.string();break}case 5:{o.cover=t.string();break}case 6:{o.title=t.string();break}case 7:{o.uri=t.string();break}case 8:{o.threePoint=u.bilibili.app.card.v1.ThreePoint.decode(t,t.uint32());break}case 9:{o.args=u.bilibili.app.card.v1.Args.decode(t,t.uint32());break}case 10:{o.playerArgs=u.bilibili.app.card.v1.PlayerArgs.decode(t,t.uint32());break}case 11:{o.idx=t.int64();break}case 12:{o.adInfo=u.bilibili.app.card.v1.AdInfo.decode(t,t.uint32());break}case 13:{o.mask=u.bilibili.app.card.v1.Mask.decode(t,t.uint32());break}case 14:{o.fromType=t.string();break}case 15:{o.threePointV2&&o.threePointV2.length||(o.threePointV2=[]),o.threePointV2.push(u.bilibili.app.card.v1.ThreePointV2.decode(t,t.uint32()));break}case 16:{o.threePointV3&&o.threePointV3.length||(o.threePointV3=[]),o.threePointV3.push(u.bilibili.app.card.v1.ThreePointV3.decode(t,t.uint32()));break}case 17:{o.descButton=u.bilibili.app.card.v1.Button.decode(t,t.uint32());break}case 18:{o.threePointV4=u.bilibili.app.card.v1.ThreePointV4.decode(t,t.uint32());break}case 19:{o.upArgs=u.bilibili.app.card.v1.UpArgs.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.card.v1.Base)return t;let i=new u.bilibili.app.card.v1.Base;if(t.cardType!=null&&(i.cardType=String(t.cardType)),t.cardGoto!=null&&(i.cardGoto=String(t.cardGoto)),t.goto!=null&&(i.goto=String(t.goto)),t.param!=null&&(i.param=String(t.param)),t.cover!=null&&(i.cover=String(t.cover)),t.title!=null&&(i.title=String(t.title)),t.uri!=null&&(i.uri=String(t.uri)),t.threePoint!=null){if(typeof t.threePoint!="object")throw TypeError(".bilibili.app.card.v1.Base.threePoint: object expected");i.threePoint=u.bilibili.app.card.v1.ThreePoint.fromObject(t.threePoint)}if(t.args!=null){if(typeof t.args!="object")throw TypeError(".bilibili.app.card.v1.Base.args: object expected");i.args=u.bilibili.app.card.v1.Args.fromObject(t.args)}if(t.playerArgs!=null){if(typeof t.playerArgs!="object")throw TypeError(".bilibili.app.card.v1.Base.playerArgs: object expected");i.playerArgs=u.bilibili.app.card.v1.PlayerArgs.fromObject(t.playerArgs)}if(t.idx!=null&&(r.Long?(i.idx=r.Long.fromValue(t.idx)).unsigned=!1:typeof t.idx=="string"?i.idx=parseInt(t.idx,10):typeof t.idx=="number"?i.idx=t.idx:typeof t.idx=="object"&&(i.idx=new r.LongBits(t.idx.low>>>0,t.idx.high>>>0).toNumber())),t.adInfo!=null){if(typeof t.adInfo!="object")throw TypeError(".bilibili.app.card.v1.Base.adInfo: object expected");i.adInfo=u.bilibili.app.card.v1.AdInfo.fromObject(t.adInfo)}if(t.mask!=null){if(typeof t.mask!="object")throw TypeError(".bilibili.app.card.v1.Base.mask: object expected");i.mask=u.bilibili.app.card.v1.Mask.fromObject(t.mask)}if(t.fromType!=null&&(i.fromType=String(t.fromType)),t.threePointV2){if(!Array.isArray(t.threePointV2))throw TypeError(".bilibili.app.card.v1.Base.threePointV2: array expected");i.threePointV2=[];for(let n=0;n>>0,t.idx.high>>>0).toNumber():t.idx),t.adInfo!=null&&t.hasOwnProperty("adInfo")&&(n.adInfo=u.bilibili.app.card.v1.AdInfo.toObject(t.adInfo,i)),t.mask!=null&&t.hasOwnProperty("mask")&&(n.mask=u.bilibili.app.card.v1.Mask.toObject(t.mask,i)),t.fromType!=null&&t.hasOwnProperty("fromType")&&(n.fromType=t.fromType),t.threePointV2&&t.threePointV2.length){n.threePointV2=[];for(let o=0;o>>3){case 1:{o.upId=t.int64();break}case 2:{o.upName=t.string();break}case 3:{o.upFace=t.string();break}case 4:{o.selected=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.card.v1.UpArgs)return t;let i=new u.bilibili.app.card.v1.UpArgs;return t.upId!=null&&(r.Long?(i.upId=r.Long.fromValue(t.upId)).unsigned=!1:typeof t.upId=="string"?i.upId=parseInt(t.upId,10):typeof t.upId=="number"?i.upId=t.upId:typeof t.upId=="object"&&(i.upId=new r.LongBits(t.upId.low>>>0,t.upId.high>>>0).toNumber())),t.upName!=null&&(i.upName=String(t.upName)),t.upFace!=null&&(i.upFace=String(t.upFace)),t.selected!=null&&(r.Long?(i.selected=r.Long.fromValue(t.selected)).unsigned=!1:typeof t.selected=="string"?i.selected=parseInt(t.selected,10):typeof t.selected=="number"?i.selected=t.selected:typeof t.selected=="object"&&(i.selected=new r.LongBits(t.selected.low>>>0,t.selected.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.upId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.upId=i.longs===String?"0":0;if(n.upName="",n.upFace="",r.Long){let o=new r.Long(0,0,!1);n.selected=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.selected=i.longs===String?"0":0}return t.upId!=null&&t.hasOwnProperty("upId")&&(typeof t.upId=="number"?n.upId=i.longs===String?String(t.upId):t.upId:n.upId=i.longs===String?r.Long.prototype.toString.call(t.upId):i.longs===Number?new r.LongBits(t.upId.low>>>0,t.upId.high>>>0).toNumber():t.upId),t.upName!=null&&t.hasOwnProperty("upName")&&(n.upName=t.upName),t.upFace!=null&&t.hasOwnProperty("upFace")&&(n.upFace=t.upFace),t.selected!=null&&t.hasOwnProperty("selected")&&(typeof t.selected=="number"?n.selected=i.longs===String?String(t.selected):t.selected:n.selected=i.longs===String?r.Long.prototype.toString.call(t.selected):i.longs===Number?new r.LongBits(t.selected.low>>>0,t.selected.high>>>0).toNumber():t.selected),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.card.v1.UpArgs"},e}(),c.Button=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.text=t.string();break}case 2:{o.param=t.string();break}case 3:{o.uri=t.string();break}case 4:{o.event=t.string();break}case 5:{o.selected=t.int32();break}case 6:{o.type=t.int32();break}case 7:{o.eventV2=t.string();break}case 8:{o.relation=u.bilibili.app.card.v1.Relation.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.card.v1.Button)return t;let i=new u.bilibili.app.card.v1.Button;if(t.text!=null&&(i.text=String(t.text)),t.param!=null&&(i.param=String(t.param)),t.uri!=null&&(i.uri=String(t.uri)),t.event!=null&&(i.event=String(t.event)),t.selected!=null&&(i.selected=t.selected|0),t.type!=null&&(i.type=t.type|0),t.eventV2!=null&&(i.eventV2=String(t.eventV2)),t.relation!=null){if(typeof t.relation!="object")throw TypeError(".bilibili.app.card.v1.Button.relation: object expected");i.relation=u.bilibili.app.card.v1.Relation.fromObject(t.relation)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.text="",n.param="",n.uri="",n.event="",n.selected=0,n.type=0,n.eventV2="",n.relation=null),t.text!=null&&t.hasOwnProperty("text")&&(n.text=t.text),t.param!=null&&t.hasOwnProperty("param")&&(n.param=t.param),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),t.event!=null&&t.hasOwnProperty("event")&&(n.event=t.event),t.selected!=null&&t.hasOwnProperty("selected")&&(n.selected=t.selected),t.type!=null&&t.hasOwnProperty("type")&&(n.type=t.type),t.eventV2!=null&&t.hasOwnProperty("eventV2")&&(n.eventV2=t.eventV2),t.relation!=null&&t.hasOwnProperty("relation")&&(n.relation=u.bilibili.app.card.v1.Relation.toObject(t.relation,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.card.v1.Button"},e}(),c.ThreePoint=function(){function e(l){if(this.dislikeReasons=[],this.feedbacks=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.dislikeReasons&&o.dislikeReasons.length||(o.dislikeReasons=[]),o.dislikeReasons.push(u.bilibili.app.card.v1.DislikeReason.decode(t,t.uint32()));break}case 2:{o.feedbacks&&o.feedbacks.length||(o.feedbacks=[]),o.feedbacks.push(u.bilibili.app.card.v1.DislikeReason.decode(t,t.uint32()));break}case 3:{o.watchLater=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.card.v1.ThreePoint)return t;let i=new u.bilibili.app.card.v1.ThreePoint;if(t.dislikeReasons){if(!Array.isArray(t.dislikeReasons))throw TypeError(".bilibili.app.card.v1.ThreePoint.dislikeReasons: array expected");i.dislikeReasons=[];for(let n=0;n>>3){case 1:{o.id=t.int64();break}case 2:{o.name=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.card.v1.DislikeReason)return t;let i=new u.bilibili.app.card.v1.DislikeReason;return t.id!=null&&(r.Long?(i.id=r.Long.fromValue(t.id)).unsigned=!1:typeof t.id=="string"?i.id=parseInt(t.id,10):typeof t.id=="number"?i.id=t.id:typeof t.id=="object"&&(i.id=new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber())),t.name!=null&&(i.name=String(t.name)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.id=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.id=i.longs===String?"0":0;n.name=""}return t.id!=null&&t.hasOwnProperty("id")&&(typeof t.id=="number"?n.id=i.longs===String?String(t.id):t.id:n.id=i.longs===String?r.Long.prototype.toString.call(t.id):i.longs===Number?new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber():t.id),t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.card.v1.DislikeReason"},e}(),c.Args=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.type=t.int32();break}case 2:{o.upId=t.int64();break}case 3:{o.upName=t.string();break}case 4:{o.rid=t.int32();break}case 5:{o.rname=t.string();break}case 6:{o.tid=t.int64();break}case 7:{o.tname=t.string();break}case 8:{o.trackId=t.string();break}case 9:{o.state=t.string();break}case 10:{o.convergeType=t.int32();break}case 11:{o.aid=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.card.v1.Args)return t;let i=new u.bilibili.app.card.v1.Args;return t.type!=null&&(i.type=t.type|0),t.upId!=null&&(r.Long?(i.upId=r.Long.fromValue(t.upId)).unsigned=!1:typeof t.upId=="string"?i.upId=parseInt(t.upId,10):typeof t.upId=="number"?i.upId=t.upId:typeof t.upId=="object"&&(i.upId=new r.LongBits(t.upId.low>>>0,t.upId.high>>>0).toNumber())),t.upName!=null&&(i.upName=String(t.upName)),t.rid!=null&&(i.rid=t.rid|0),t.rname!=null&&(i.rname=String(t.rname)),t.tid!=null&&(r.Long?(i.tid=r.Long.fromValue(t.tid)).unsigned=!1:typeof t.tid=="string"?i.tid=parseInt(t.tid,10):typeof t.tid=="number"?i.tid=t.tid:typeof t.tid=="object"&&(i.tid=new r.LongBits(t.tid.low>>>0,t.tid.high>>>0).toNumber())),t.tname!=null&&(i.tname=String(t.tname)),t.trackId!=null&&(i.trackId=String(t.trackId)),t.state!=null&&(i.state=String(t.state)),t.convergeType!=null&&(i.convergeType=t.convergeType|0),t.aid!=null&&(r.Long?(i.aid=r.Long.fromValue(t.aid)).unsigned=!1:typeof t.aid=="string"?i.aid=parseInt(t.aid,10):typeof t.aid=="number"?i.aid=t.aid:typeof t.aid=="object"&&(i.aid=new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.type=0,r.Long){let o=new r.Long(0,0,!1);n.upId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.upId=i.longs===String?"0":0;if(n.upName="",n.rid=0,n.rname="",r.Long){let o=new r.Long(0,0,!1);n.tid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.tid=i.longs===String?"0":0;if(n.tname="",n.trackId="",n.state="",n.convergeType=0,r.Long){let o=new r.Long(0,0,!1);n.aid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.aid=i.longs===String?"0":0}return t.type!=null&&t.hasOwnProperty("type")&&(n.type=t.type),t.upId!=null&&t.hasOwnProperty("upId")&&(typeof t.upId=="number"?n.upId=i.longs===String?String(t.upId):t.upId:n.upId=i.longs===String?r.Long.prototype.toString.call(t.upId):i.longs===Number?new r.LongBits(t.upId.low>>>0,t.upId.high>>>0).toNumber():t.upId),t.upName!=null&&t.hasOwnProperty("upName")&&(n.upName=t.upName),t.rid!=null&&t.hasOwnProperty("rid")&&(n.rid=t.rid),t.rname!=null&&t.hasOwnProperty("rname")&&(n.rname=t.rname),t.tid!=null&&t.hasOwnProperty("tid")&&(typeof t.tid=="number"?n.tid=i.longs===String?String(t.tid):t.tid:n.tid=i.longs===String?r.Long.prototype.toString.call(t.tid):i.longs===Number?new r.LongBits(t.tid.low>>>0,t.tid.high>>>0).toNumber():t.tid),t.tname!=null&&t.hasOwnProperty("tname")&&(n.tname=t.tname),t.trackId!=null&&t.hasOwnProperty("trackId")&&(n.trackId=t.trackId),t.state!=null&&t.hasOwnProperty("state")&&(n.state=t.state),t.convergeType!=null&&t.hasOwnProperty("convergeType")&&(n.convergeType=t.convergeType),t.aid!=null&&t.hasOwnProperty("aid")&&(typeof t.aid=="number"?n.aid=i.longs===String?String(t.aid):t.aid:n.aid=i.longs===String?r.Long.prototype.toString.call(t.aid):i.longs===Number?new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber():t.aid),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.card.v1.Args"},e}(),c.PlayerArgs=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.isLive=t.int32();break}case 2:{o.aid=t.int64();break}case 3:{o.cid=t.int64();break}case 4:{o.subType=t.int32();break}case 5:{o.roomId=t.int64();break}case 7:{o.epId=t.int64();break}case 8:{o.isPreview=t.int32();break}case 9:{o.type=t.string();break}case 10:{o.duration=t.int64();break}case 11:{o.seasonId=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.card.v1.PlayerArgs)return t;let i=new u.bilibili.app.card.v1.PlayerArgs;return t.isLive!=null&&(i.isLive=t.isLive|0),t.aid!=null&&(r.Long?(i.aid=r.Long.fromValue(t.aid)).unsigned=!1:typeof t.aid=="string"?i.aid=parseInt(t.aid,10):typeof t.aid=="number"?i.aid=t.aid:typeof t.aid=="object"&&(i.aid=new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber())),t.cid!=null&&(r.Long?(i.cid=r.Long.fromValue(t.cid)).unsigned=!1:typeof t.cid=="string"?i.cid=parseInt(t.cid,10):typeof t.cid=="number"?i.cid=t.cid:typeof t.cid=="object"&&(i.cid=new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber())),t.subType!=null&&(i.subType=t.subType|0),t.roomId!=null&&(r.Long?(i.roomId=r.Long.fromValue(t.roomId)).unsigned=!1:typeof t.roomId=="string"?i.roomId=parseInt(t.roomId,10):typeof t.roomId=="number"?i.roomId=t.roomId:typeof t.roomId=="object"&&(i.roomId=new r.LongBits(t.roomId.low>>>0,t.roomId.high>>>0).toNumber())),t.epId!=null&&(r.Long?(i.epId=r.Long.fromValue(t.epId)).unsigned=!1:typeof t.epId=="string"?i.epId=parseInt(t.epId,10):typeof t.epId=="number"?i.epId=t.epId:typeof t.epId=="object"&&(i.epId=new r.LongBits(t.epId.low>>>0,t.epId.high>>>0).toNumber())),t.isPreview!=null&&(i.isPreview=t.isPreview|0),t.type!=null&&(i.type=String(t.type)),t.duration!=null&&(r.Long?(i.duration=r.Long.fromValue(t.duration)).unsigned=!1:typeof t.duration=="string"?i.duration=parseInt(t.duration,10):typeof t.duration=="number"?i.duration=t.duration:typeof t.duration=="object"&&(i.duration=new r.LongBits(t.duration.low>>>0,t.duration.high>>>0).toNumber())),t.seasonId!=null&&(r.Long?(i.seasonId=r.Long.fromValue(t.seasonId)).unsigned=!1:typeof t.seasonId=="string"?i.seasonId=parseInt(t.seasonId,10):typeof t.seasonId=="number"?i.seasonId=t.seasonId:typeof t.seasonId=="object"&&(i.seasonId=new r.LongBits(t.seasonId.low>>>0,t.seasonId.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.isLive=0,r.Long){let o=new r.Long(0,0,!1);n.aid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.aid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.cid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.cid=i.longs===String?"0":0;if(n.subType=0,r.Long){let o=new r.Long(0,0,!1);n.roomId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.roomId=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.epId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.epId=i.longs===String?"0":0;if(n.isPreview=0,n.type="",r.Long){let o=new r.Long(0,0,!1);n.duration=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.duration=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.seasonId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.seasonId=i.longs===String?"0":0}return t.isLive!=null&&t.hasOwnProperty("isLive")&&(n.isLive=t.isLive),t.aid!=null&&t.hasOwnProperty("aid")&&(typeof t.aid=="number"?n.aid=i.longs===String?String(t.aid):t.aid:n.aid=i.longs===String?r.Long.prototype.toString.call(t.aid):i.longs===Number?new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber():t.aid),t.cid!=null&&t.hasOwnProperty("cid")&&(typeof t.cid=="number"?n.cid=i.longs===String?String(t.cid):t.cid:n.cid=i.longs===String?r.Long.prototype.toString.call(t.cid):i.longs===Number?new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber():t.cid),t.subType!=null&&t.hasOwnProperty("subType")&&(n.subType=t.subType),t.roomId!=null&&t.hasOwnProperty("roomId")&&(typeof t.roomId=="number"?n.roomId=i.longs===String?String(t.roomId):t.roomId:n.roomId=i.longs===String?r.Long.prototype.toString.call(t.roomId):i.longs===Number?new r.LongBits(t.roomId.low>>>0,t.roomId.high>>>0).toNumber():t.roomId),t.epId!=null&&t.hasOwnProperty("epId")&&(typeof t.epId=="number"?n.epId=i.longs===String?String(t.epId):t.epId:n.epId=i.longs===String?r.Long.prototype.toString.call(t.epId):i.longs===Number?new r.LongBits(t.epId.low>>>0,t.epId.high>>>0).toNumber():t.epId),t.isPreview!=null&&t.hasOwnProperty("isPreview")&&(n.isPreview=t.isPreview),t.type!=null&&t.hasOwnProperty("type")&&(n.type=t.type),t.duration!=null&&t.hasOwnProperty("duration")&&(typeof t.duration=="number"?n.duration=i.longs===String?String(t.duration):t.duration:n.duration=i.longs===String?r.Long.prototype.toString.call(t.duration):i.longs===Number?new r.LongBits(t.duration.low>>>0,t.duration.high>>>0).toNumber():t.duration),t.seasonId!=null&&t.hasOwnProperty("seasonId")&&(typeof t.seasonId=="number"?n.seasonId=i.longs===String?String(t.seasonId):t.seasonId:n.seasonId=i.longs===String?r.Long.prototype.toString.call(t.seasonId):i.longs===Number?new r.LongBits(t.seasonId.low>>>0,t.seasonId.high>>>0).toNumber():t.seasonId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.card.v1.PlayerArgs"},e}(),c.Mask=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.avatar=u.bilibili.app.card.v1.Avatar.decode(t,t.uint32());break}case 2:{o.button=u.bilibili.app.card.v1.Button.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.card.v1.Mask)return t;let i=new u.bilibili.app.card.v1.Mask;if(t.avatar!=null){if(typeof t.avatar!="object")throw TypeError(".bilibili.app.card.v1.Mask.avatar: object expected");i.avatar=u.bilibili.app.card.v1.Avatar.fromObject(t.avatar)}if(t.button!=null){if(typeof t.button!="object")throw TypeError(".bilibili.app.card.v1.Mask.button: object expected");i.button=u.bilibili.app.card.v1.Button.fromObject(t.button)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.avatar=null,n.button=null),t.avatar!=null&&t.hasOwnProperty("avatar")&&(n.avatar=u.bilibili.app.card.v1.Avatar.toObject(t.avatar,i)),t.button!=null&&t.hasOwnProperty("button")&&(n.button=u.bilibili.app.card.v1.Button.toObject(t.button,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.card.v1.Mask"},e}(),c.Avatar=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.cover=t.string();break}case 2:{o.text=t.string();break}case 3:{o.uri=t.string();break}case 4:{o.type=t.int32();break}case 5:{o.event=t.string();break}case 6:{o.eventV2=t.string();break}case 7:{o.defalutCover=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.card.v1.Avatar)return t;let i=new u.bilibili.app.card.v1.Avatar;return t.cover!=null&&(i.cover=String(t.cover)),t.text!=null&&(i.text=String(t.text)),t.uri!=null&&(i.uri=String(t.uri)),t.type!=null&&(i.type=t.type|0),t.event!=null&&(i.event=String(t.event)),t.eventV2!=null&&(i.eventV2=String(t.eventV2)),t.defalutCover!=null&&(i.defalutCover=t.defalutCover|0),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.cover="",n.text="",n.uri="",n.type=0,n.event="",n.eventV2="",n.defalutCover=0),t.cover!=null&&t.hasOwnProperty("cover")&&(n.cover=t.cover),t.text!=null&&t.hasOwnProperty("text")&&(n.text=t.text),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),t.type!=null&&t.hasOwnProperty("type")&&(n.type=t.type),t.event!=null&&t.hasOwnProperty("event")&&(n.event=t.event),t.eventV2!=null&&t.hasOwnProperty("eventV2")&&(n.eventV2=t.eventV2),t.defalutCover!=null&&t.hasOwnProperty("defalutCover")&&(n.defalutCover=t.defalutCover),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.card.v1.Avatar"},e}(),c.ThreePointV2=function(){function e(l){if(this.reasons=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.subtitle=t.string();break}case 3:{o.reasons&&o.reasons.length||(o.reasons=[]),o.reasons.push(u.bilibili.app.card.v1.DislikeReason.decode(t,t.uint32()));break}case 4:{o.type=t.string();break}case 5:{o.id=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.card.v1.ThreePointV2)return t;let i=new u.bilibili.app.card.v1.ThreePointV2;if(t.title!=null&&(i.title=String(t.title)),t.subtitle!=null&&(i.subtitle=String(t.subtitle)),t.reasons){if(!Array.isArray(t.reasons))throw TypeError(".bilibili.app.card.v1.ThreePointV2.reasons: array expected");i.reasons=[];for(let n=0;n>>0,t.id.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if((i.arrays||i.defaults)&&(n.reasons=[]),i.defaults)if(n.title="",n.subtitle="",n.type="",r.Long){let o=new r.Long(0,0,!1);n.id=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.id=i.longs===String?"0":0;if(t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.subtitle!=null&&t.hasOwnProperty("subtitle")&&(n.subtitle=t.subtitle),t.reasons&&t.reasons.length){n.reasons=[];for(let o=0;o>>0,t.id.high>>>0).toNumber():t.id),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.card.v1.ThreePointV2"},e}(),c.ThreePointV3=function(){function e(l){if(this.reasons=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.selectedTitle=t.string();break}case 3:{o.subtitle=t.string();break}case 4:{o.reasons&&o.reasons.length||(o.reasons=[]),o.reasons.push(u.bilibili.app.card.v1.DislikeReason.decode(t,t.uint32()));break}case 5:{o.type=t.string();break}case 6:{o.id=t.int64();break}case 7:{o.selected=t.int32();break}case 8:{o.icon=t.string();break}case 9:{o.selectedIcon=t.string();break}case 10:{o.url=t.string();break}case 11:{o.defaultId=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.card.v1.ThreePointV3)return t;let i=new u.bilibili.app.card.v1.ThreePointV3;if(t.title!=null&&(i.title=String(t.title)),t.selectedTitle!=null&&(i.selectedTitle=String(t.selectedTitle)),t.subtitle!=null&&(i.subtitle=String(t.subtitle)),t.reasons){if(!Array.isArray(t.reasons))throw TypeError(".bilibili.app.card.v1.ThreePointV3.reasons: array expected");i.reasons=[];for(let n=0;n>>0,t.id.high>>>0).toNumber())),t.selected!=null&&(i.selected=t.selected|0),t.icon!=null&&(i.icon=String(t.icon)),t.selectedIcon!=null&&(i.selectedIcon=String(t.selectedIcon)),t.url!=null&&(i.url=String(t.url)),t.defaultId!=null&&(i.defaultId=t.defaultId|0),i},e.toObject=function(t,i){i||(i={});let n={};if((i.arrays||i.defaults)&&(n.reasons=[]),i.defaults){if(n.title="",n.selectedTitle="",n.subtitle="",n.type="",r.Long){let o=new r.Long(0,0,!1);n.id=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.id=i.longs===String?"0":0;n.selected=0,n.icon="",n.selectedIcon="",n.url="",n.defaultId=0}if(t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.selectedTitle!=null&&t.hasOwnProperty("selectedTitle")&&(n.selectedTitle=t.selectedTitle),t.subtitle!=null&&t.hasOwnProperty("subtitle")&&(n.subtitle=t.subtitle),t.reasons&&t.reasons.length){n.reasons=[];for(let o=0;o>>0,t.id.high>>>0).toNumber():t.id),t.selected!=null&&t.hasOwnProperty("selected")&&(n.selected=t.selected),t.icon!=null&&t.hasOwnProperty("icon")&&(n.icon=t.icon),t.selectedIcon!=null&&t.hasOwnProperty("selectedIcon")&&(n.selectedIcon=t.selectedIcon),t.url!=null&&t.hasOwnProperty("url")&&(n.url=t.url),t.defaultId!=null&&t.hasOwnProperty("defaultId")&&(n.defaultId=t.defaultId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.card.v1.ThreePointV3"},e}(),c.ThreePointV4=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.sharePlane=u.bilibili.app.card.v1.SharePlane.decode(t,t.uint32());break}case 2:{o.watchLater=u.bilibili.app.card.v1.WatchLater.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.card.v1.ThreePointV4)return t;let i=new u.bilibili.app.card.v1.ThreePointV4;if(t.sharePlane!=null){if(typeof t.sharePlane!="object")throw TypeError(".bilibili.app.card.v1.ThreePointV4.sharePlane: object expected");i.sharePlane=u.bilibili.app.card.v1.SharePlane.fromObject(t.sharePlane)}if(t.watchLater!=null){if(typeof t.watchLater!="object")throw TypeError(".bilibili.app.card.v1.ThreePointV4.watchLater: object expected");i.watchLater=u.bilibili.app.card.v1.WatchLater.fromObject(t.watchLater)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.sharePlane=null,n.watchLater=null),t.sharePlane!=null&&t.hasOwnProperty("sharePlane")&&(n.sharePlane=u.bilibili.app.card.v1.SharePlane.toObject(t.sharePlane,i)),t.watchLater!=null&&t.hasOwnProperty("watchLater")&&(n.watchLater=u.bilibili.app.card.v1.WatchLater.toObject(t.watchLater,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.card.v1.ThreePointV4"},e}(),c.SharePlane=function(){function e(l){if(this.shareTo={},l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.shareSubtitle=t.string();break}case 3:{o.desc=t.string();break}case 4:{o.cover=t.string();break}case 5:{o.aid=t.int64();break}case 6:{o.bvid=t.string();break}case 7:{o.shareTo===r.emptyObject&&(o.shareTo={});let v=t.uint32()+t.pos;for(a="",y=!1;t.pos>>3){case 1:a=t.string();break;case 2:y=t.bool();break;default:t.skipType(g&7);break}}o.shareTo[a]=y;break}case 8:{o.author=t.string();break}case 9:{o.authorId=t.int64();break}case 10:{o.shortLink=t.string();break}case 11:{o.playNumber=t.string();break}case 12:{o.firstCid=t.int64();break}default:t.skipType(s&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.card.v1.SharePlane)return t;let i=new u.bilibili.app.card.v1.SharePlane;if(t.title!=null&&(i.title=String(t.title)),t.shareSubtitle!=null&&(i.shareSubtitle=String(t.shareSubtitle)),t.desc!=null&&(i.desc=String(t.desc)),t.cover!=null&&(i.cover=String(t.cover)),t.aid!=null&&(r.Long?(i.aid=r.Long.fromValue(t.aid)).unsigned=!1:typeof t.aid=="string"?i.aid=parseInt(t.aid,10):typeof t.aid=="number"?i.aid=t.aid:typeof t.aid=="object"&&(i.aid=new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber())),t.bvid!=null&&(i.bvid=String(t.bvid)),t.shareTo){if(typeof t.shareTo!="object")throw TypeError(".bilibili.app.card.v1.SharePlane.shareTo: object expected");i.shareTo={};for(let n=Object.keys(t.shareTo),o=0;o>>0,t.authorId.high>>>0).toNumber())),t.shortLink!=null&&(i.shortLink=String(t.shortLink)),t.playNumber!=null&&(i.playNumber=String(t.playNumber)),t.firstCid!=null&&(r.Long?(i.firstCid=r.Long.fromValue(t.firstCid)).unsigned=!1:typeof t.firstCid=="string"?i.firstCid=parseInt(t.firstCid,10):typeof t.firstCid=="number"?i.firstCid=t.firstCid:typeof t.firstCid=="object"&&(i.firstCid=new r.LongBits(t.firstCid.low>>>0,t.firstCid.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if((i.objects||i.defaults)&&(n.shareTo={}),i.defaults){if(n.title="",n.shareSubtitle="",n.desc="",n.cover="",r.Long){let a=new r.Long(0,0,!1);n.aid=i.longs===String?a.toString():i.longs===Number?a.toNumber():a}else n.aid=i.longs===String?"0":0;if(n.bvid="",n.author="",r.Long){let a=new r.Long(0,0,!1);n.authorId=i.longs===String?a.toString():i.longs===Number?a.toNumber():a}else n.authorId=i.longs===String?"0":0;if(n.shortLink="",n.playNumber="",r.Long){let a=new r.Long(0,0,!1);n.firstCid=i.longs===String?a.toString():i.longs===Number?a.toNumber():a}else n.firstCid=i.longs===String?"0":0}t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.shareSubtitle!=null&&t.hasOwnProperty("shareSubtitle")&&(n.shareSubtitle=t.shareSubtitle),t.desc!=null&&t.hasOwnProperty("desc")&&(n.desc=t.desc),t.cover!=null&&t.hasOwnProperty("cover")&&(n.cover=t.cover),t.aid!=null&&t.hasOwnProperty("aid")&&(typeof t.aid=="number"?n.aid=i.longs===String?String(t.aid):t.aid:n.aid=i.longs===String?r.Long.prototype.toString.call(t.aid):i.longs===Number?new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber():t.aid),t.bvid!=null&&t.hasOwnProperty("bvid")&&(n.bvid=t.bvid);let o;if(t.shareTo&&(o=Object.keys(t.shareTo)).length){n.shareTo={};for(let a=0;a>>0,t.authorId.high>>>0).toNumber():t.authorId),t.shortLink!=null&&t.hasOwnProperty("shortLink")&&(n.shortLink=t.shortLink),t.playNumber!=null&&t.hasOwnProperty("playNumber")&&(n.playNumber=t.playNumber),t.firstCid!=null&&t.hasOwnProperty("firstCid")&&(typeof t.firstCid=="number"?n.firstCid=i.longs===String?String(t.firstCid):t.firstCid:n.firstCid=i.longs===String?r.Long.prototype.toString.call(t.firstCid):i.longs===Number?new r.LongBits(t.firstCid.low>>>0,t.firstCid.high>>>0).toNumber():t.firstCid),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.card.v1.SharePlane"},e}(),c.InlineProgressBar=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.iconDrag=t.string();break}case 2:{o.iconDragHash=t.string();break}case 3:{o.iconStop=t.string();break}case 4:{o.iconStopHash=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.card.v1.InlineProgressBar)return t;let i=new u.bilibili.app.card.v1.InlineProgressBar;return t.iconDrag!=null&&(i.iconDrag=String(t.iconDrag)),t.iconDragHash!=null&&(i.iconDragHash=String(t.iconDragHash)),t.iconStop!=null&&(i.iconStop=String(t.iconStop)),t.iconStopHash!=null&&(i.iconStopHash=String(t.iconStopHash)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.iconDrag="",n.iconDragHash="",n.iconStop="",n.iconStopHash=""),t.iconDrag!=null&&t.hasOwnProperty("iconDrag")&&(n.iconDrag=t.iconDrag),t.iconDragHash!=null&&t.hasOwnProperty("iconDragHash")&&(n.iconDragHash=t.iconDragHash),t.iconStop!=null&&t.hasOwnProperty("iconStop")&&(n.iconStop=t.iconStop),t.iconStopHash!=null&&t.hasOwnProperty("iconStopHash")&&(n.iconStopHash=t.iconStopHash),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.card.v1.InlineProgressBar"},e}(),c.WatchLater=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.aid=t.int64();break}case 2:{o.bvid=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.card.v1.WatchLater)return t;let i=new u.bilibili.app.card.v1.WatchLater;return t.aid!=null&&(r.Long?(i.aid=r.Long.fromValue(t.aid)).unsigned=!1:typeof t.aid=="string"?i.aid=parseInt(t.aid,10):typeof t.aid=="number"?i.aid=t.aid:typeof t.aid=="object"&&(i.aid=new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber())),t.bvid!=null&&(i.bvid=String(t.bvid)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.aid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.aid=i.longs===String?"0":0;n.bvid=""}return t.aid!=null&&t.hasOwnProperty("aid")&&(typeof t.aid=="number"?n.aid=i.longs===String?String(t.aid):t.aid:n.aid=i.longs===String?r.Long.prototype.toString.call(t.aid):i.longs===Number?new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber():t.aid),t.bvid!=null&&t.hasOwnProperty("bvid")&&(n.bvid=t.bvid),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.card.v1.WatchLater"},e}(),c.ReasonStyle=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.text=t.string();break}case 2:{o.textColor=t.string();break}case 3:{o.bgColor=t.string();break}case 4:{o.borderColor=t.string();break}case 5:{o.iconUrl=t.string();break}case 6:{o.textColorNight=t.string();break}case 7:{o.bgColorNight=t.string();break}case 8:{o.borderColorNight=t.string();break}case 9:{o.iconNightUrl=t.string();break}case 10:{o.bgStyle=t.int32();break}case 11:{o.uri=t.string();break}case 12:{o.iconBgUrl=t.string();break}case 13:{o.event=t.string();break}case 14:{o.eventV2=t.string();break}case 15:{o.rightIconType=t.int32();break}case 16:{o.leftIconType=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.card.v1.ReasonStyle)return t;let i=new u.bilibili.app.card.v1.ReasonStyle;return t.text!=null&&(i.text=String(t.text)),t.textColor!=null&&(i.textColor=String(t.textColor)),t.bgColor!=null&&(i.bgColor=String(t.bgColor)),t.borderColor!=null&&(i.borderColor=String(t.borderColor)),t.iconUrl!=null&&(i.iconUrl=String(t.iconUrl)),t.textColorNight!=null&&(i.textColorNight=String(t.textColorNight)),t.bgColorNight!=null&&(i.bgColorNight=String(t.bgColorNight)),t.borderColorNight!=null&&(i.borderColorNight=String(t.borderColorNight)),t.iconNightUrl!=null&&(i.iconNightUrl=String(t.iconNightUrl)),t.bgStyle!=null&&(i.bgStyle=t.bgStyle|0),t.uri!=null&&(i.uri=String(t.uri)),t.iconBgUrl!=null&&(i.iconBgUrl=String(t.iconBgUrl)),t.event!=null&&(i.event=String(t.event)),t.eventV2!=null&&(i.eventV2=String(t.eventV2)),t.rightIconType!=null&&(i.rightIconType=t.rightIconType|0),t.leftIconType!=null&&(i.leftIconType=String(t.leftIconType)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.text="",n.textColor="",n.bgColor="",n.borderColor="",n.iconUrl="",n.textColorNight="",n.bgColorNight="",n.borderColorNight="",n.iconNightUrl="",n.bgStyle=0,n.uri="",n.iconBgUrl="",n.event="",n.eventV2="",n.rightIconType=0,n.leftIconType=""),t.text!=null&&t.hasOwnProperty("text")&&(n.text=t.text),t.textColor!=null&&t.hasOwnProperty("textColor")&&(n.textColor=t.textColor),t.bgColor!=null&&t.hasOwnProperty("bgColor")&&(n.bgColor=t.bgColor),t.borderColor!=null&&t.hasOwnProperty("borderColor")&&(n.borderColor=t.borderColor),t.iconUrl!=null&&t.hasOwnProperty("iconUrl")&&(n.iconUrl=t.iconUrl),t.textColorNight!=null&&t.hasOwnProperty("textColorNight")&&(n.textColorNight=t.textColorNight),t.bgColorNight!=null&&t.hasOwnProperty("bgColorNight")&&(n.bgColorNight=t.bgColorNight),t.borderColorNight!=null&&t.hasOwnProperty("borderColorNight")&&(n.borderColorNight=t.borderColorNight),t.iconNightUrl!=null&&t.hasOwnProperty("iconNightUrl")&&(n.iconNightUrl=t.iconNightUrl),t.bgStyle!=null&&t.hasOwnProperty("bgStyle")&&(n.bgStyle=t.bgStyle),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),t.iconBgUrl!=null&&t.hasOwnProperty("iconBgUrl")&&(n.iconBgUrl=t.iconBgUrl),t.event!=null&&t.hasOwnProperty("event")&&(n.event=t.event),t.eventV2!=null&&t.hasOwnProperty("eventV2")&&(n.eventV2=t.eventV2),t.rightIconType!=null&&t.hasOwnProperty("rightIconType")&&(n.rightIconType=t.rightIconType),t.leftIconType!=null&&t.hasOwnProperty("leftIconType")&&(n.leftIconType=t.leftIconType),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.card.v1.ReasonStyle"},e}(),c.LikeButton=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.Aid=t.int64();break}case 2:{o.count=t.int32();break}case 3:{o.showCount=t.bool();break}case 4:{o.event=t.string();break}case 5:{o.selected=t.int32();break}case 6:{o.eventV2=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.card.v1.LikeButton)return t;let i=new u.bilibili.app.card.v1.LikeButton;return t.Aid!=null&&(r.Long?(i.Aid=r.Long.fromValue(t.Aid)).unsigned=!1:typeof t.Aid=="string"?i.Aid=parseInt(t.Aid,10):typeof t.Aid=="number"?i.Aid=t.Aid:typeof t.Aid=="object"&&(i.Aid=new r.LongBits(t.Aid.low>>>0,t.Aid.high>>>0).toNumber())),t.count!=null&&(i.count=t.count|0),t.showCount!=null&&(i.showCount=!!t.showCount),t.event!=null&&(i.event=String(t.event)),t.selected!=null&&(i.selected=t.selected|0),t.eventV2!=null&&(i.eventV2=String(t.eventV2)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.Aid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.Aid=i.longs===String?"0":0;n.count=0,n.showCount=!1,n.event="",n.selected=0,n.eventV2=""}return t.Aid!=null&&t.hasOwnProperty("Aid")&&(typeof t.Aid=="number"?n.Aid=i.longs===String?String(t.Aid):t.Aid:n.Aid=i.longs===String?r.Long.prototype.toString.call(t.Aid):i.longs===Number?new r.LongBits(t.Aid.low>>>0,t.Aid.high>>>0).toNumber():t.Aid),t.count!=null&&t.hasOwnProperty("count")&&(n.count=t.count),t.showCount!=null&&t.hasOwnProperty("showCount")&&(n.showCount=t.showCount),t.event!=null&&t.hasOwnProperty("event")&&(n.event=t.event),t.selected!=null&&t.hasOwnProperty("selected")&&(n.selected=t.selected),t.eventV2!=null&&t.hasOwnProperty("eventV2")&&(n.eventV2=t.eventV2),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.card.v1.LikeButton"},e}(),c.Up=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.id=t.int64();break}case 2:{o.name=t.string();break}case 3:{o.desc=t.string();break}case 4:{o.avatar=u.bilibili.app.card.v1.Avatar.decode(t,t.uint32());break}case 5:{o.officialIcon=t.int32();break}case 6:{o.descButton=u.bilibili.app.card.v1.Button.decode(t,t.uint32());break}case 7:{o.cooperation=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.card.v1.Up)return t;let i=new u.bilibili.app.card.v1.Up;if(t.id!=null&&(r.Long?(i.id=r.Long.fromValue(t.id)).unsigned=!1:typeof t.id=="string"?i.id=parseInt(t.id,10):typeof t.id=="number"?i.id=t.id:typeof t.id=="object"&&(i.id=new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber())),t.name!=null&&(i.name=String(t.name)),t.desc!=null&&(i.desc=String(t.desc)),t.avatar!=null){if(typeof t.avatar!="object")throw TypeError(".bilibili.app.card.v1.Up.avatar: object expected");i.avatar=u.bilibili.app.card.v1.Avatar.fromObject(t.avatar)}if(t.officialIcon!=null&&(i.officialIcon=t.officialIcon|0),t.descButton!=null){if(typeof t.descButton!="object")throw TypeError(".bilibili.app.card.v1.Up.descButton: object expected");i.descButton=u.bilibili.app.card.v1.Button.fromObject(t.descButton)}return t.cooperation!=null&&(i.cooperation=String(t.cooperation)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.id=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.id=i.longs===String?"0":0;n.name="",n.desc="",n.avatar=null,n.officialIcon=0,n.descButton=null,n.cooperation=""}return t.id!=null&&t.hasOwnProperty("id")&&(typeof t.id=="number"?n.id=i.longs===String?String(t.id):t.id:n.id=i.longs===String?r.Long.prototype.toString.call(t.id):i.longs===Number?new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber():t.id),t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),t.desc!=null&&t.hasOwnProperty("desc")&&(n.desc=t.desc),t.avatar!=null&&t.hasOwnProperty("avatar")&&(n.avatar=u.bilibili.app.card.v1.Avatar.toObject(t.avatar,i)),t.officialIcon!=null&&t.hasOwnProperty("officialIcon")&&(n.officialIcon=t.officialIcon),t.descButton!=null&&t.hasOwnProperty("descButton")&&(n.descButton=u.bilibili.app.card.v1.Button.toObject(t.descButton,i)),t.cooperation!=null&&t.hasOwnProperty("cooperation")&&(n.cooperation=t.cooperation),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.card.v1.Up"},e}(),c.Relation=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.status=t.int32();break}case 2:{o.isFollow=t.int32();break}case 3:{o.isFollowed=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.card.v1.Relation)return t;let i=new u.bilibili.app.card.v1.Relation;return t.status!=null&&(i.status=t.status|0),t.isFollow!=null&&(i.isFollow=t.isFollow|0),t.isFollowed!=null&&(i.isFollowed=t.isFollowed|0),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.status=0,n.isFollow=0,n.isFollowed=0),t.status!=null&&t.hasOwnProperty("status")&&(n.status=t.status),t.isFollow!=null&&t.hasOwnProperty("isFollow")&&(n.isFollow=t.isFollow),t.isFollowed!=null&&t.hasOwnProperty("isFollowed")&&(n.isFollowed=t.isFollowed),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.card.v1.Relation"},e}(),c.PanelMeta=function(){function e(l){if(this.functionalButtons=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.panelType=t.int32();break}case 2:{o.shareOrigin=t.string();break}case 3:{o.shareId=t.string();break}case 4:{o.functionalButtons&&o.functionalButtons.length||(o.functionalButtons=[]),o.functionalButtons.push(u.bilibili.app.card.v1.FunctionalButton.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.card.v1.PanelMeta)return t;let i=new u.bilibili.app.card.v1.PanelMeta;if(t.panelType!=null&&(i.panelType=t.panelType|0),t.shareOrigin!=null&&(i.shareOrigin=String(t.shareOrigin)),t.shareId!=null&&(i.shareId=String(t.shareId)),t.functionalButtons){if(!Array.isArray(t.functionalButtons))throw TypeError(".bilibili.app.card.v1.PanelMeta.functionalButtons: array expected");i.functionalButtons=[];for(let n=0;n>>3){case 1:{o.type=t.int32();break}case 2:{o.buttonMetas&&o.buttonMetas.length||(o.buttonMetas=[]),o.buttonMetas.push(u.bilibili.app.card.v1.FunctionalButtonMeta.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.card.v1.FunctionalButton)return t;let i=new u.bilibili.app.card.v1.FunctionalButton;if(t.type!=null&&(i.type=t.type|0),t.buttonMetas){if(!Array.isArray(t.buttonMetas))throw TypeError(".bilibili.app.card.v1.FunctionalButton.buttonMetas: array expected");i.buttonMetas=[];for(let n=0;n>>3){case 1:{o.icon=t.string();break}case 2:{o.text=t.string();break}case 3:{o.buttonStatus=t.string();break}case 4:{o.toast=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.card.v1.FunctionalButtonMeta)return t;let i=new u.bilibili.app.card.v1.FunctionalButtonMeta;return t.icon!=null&&(i.icon=String(t.icon)),t.text!=null&&(i.text=String(t.text)),t.buttonStatus!=null&&(i.buttonStatus=String(t.buttonStatus)),t.toast!=null&&(i.toast=String(t.toast)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.icon="",n.text="",n.buttonStatus="",n.toast=""),t.icon!=null&&t.hasOwnProperty("icon")&&(n.icon=t.icon),t.text!=null&&t.hasOwnProperty("text")&&(n.text=t.text),t.buttonStatus!=null&&t.hasOwnProperty("buttonStatus")&&(n.buttonStatus=t.buttonStatus),t.toast!=null&&t.hasOwnProperty("toast")&&(n.toast=t.toast),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.card.v1.FunctionalButtonMeta"},e}(),c.DoubleCards=function(){function e(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.smallCoverV2=u.bilibili.app.card.v1.SmallCoverV2.decode(i,i.uint32());break}case 2:{a.onePicV2=u.bilibili.app.card.v1.OnePicV2.decode(i,i.uint32());break}case 3:{a.threePicV2=u.bilibili.app.card.v1.ThreePicV2.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},e.fromObject=function(i){if(i instanceof u.bilibili.app.card.v1.DoubleCards)return i;let n=new u.bilibili.app.card.v1.DoubleCards;if(i.smallCoverV2!=null){if(typeof i.smallCoverV2!="object")throw TypeError(".bilibili.app.card.v1.DoubleCards.smallCoverV2: object expected");n.smallCoverV2=u.bilibili.app.card.v1.SmallCoverV2.fromObject(i.smallCoverV2)}if(i.onePicV2!=null){if(typeof i.onePicV2!="object")throw TypeError(".bilibili.app.card.v1.DoubleCards.onePicV2: object expected");n.onePicV2=u.bilibili.app.card.v1.OnePicV2.fromObject(i.onePicV2)}if(i.threePicV2!=null){if(typeof i.threePicV2!="object")throw TypeError(".bilibili.app.card.v1.DoubleCards.threePicV2: object expected");n.threePicV2=u.bilibili.app.card.v1.ThreePicV2.fromObject(i.threePicV2)}return n},e.toObject=function(i,n){n||(n={});let o={};return i.smallCoverV2!=null&&i.hasOwnProperty("smallCoverV2")&&(o.smallCoverV2=u.bilibili.app.card.v1.SmallCoverV2.toObject(i.smallCoverV2,n),n.oneofs&&(o.Card="smallCoverV2")),i.onePicV2!=null&&i.hasOwnProperty("onePicV2")&&(o.onePicV2=u.bilibili.app.card.v1.OnePicV2.toObject(i.onePicV2,n),n.oneofs&&(o.Card="onePicV2")),i.threePicV2!=null&&i.hasOwnProperty("threePicV2")&&(o.threePicV2=u.bilibili.app.card.v1.ThreePicV2.toObject(i.threePicV2,n),n.oneofs&&(o.Card="threePicV2")),o},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.app.card.v1.DoubleCards"},e}(),c.SmallCoverV2=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.base=u.bilibili.app.card.v1.Base.decode(t,t.uint32());break}case 2:{o.coverGif=t.string();break}case 3:{o.coverBlur=t.int32();break}case 4:{o.coverLeftText_1=t.string();break}case 5:{o.coverLeftIcon_1=t.int32();break}case 6:{o.coverLeftText_2=t.string();break}case 7:{o.coverLeftIcon_2=t.int32();break}case 8:{o.coverRightText=t.string();break}case 9:{o.coverRightIcon=t.int32();break}case 10:{o.coverRightBackgroundColor=t.string();break}case 11:{o.subtitle=t.string();break}case 12:{o.badge=t.string();break}case 13:{o.rcmdReason=t.string();break}case 14:{o.desc=t.string();break}case 15:{o.avatar=u.bilibili.app.card.v1.Avatar.decode(t,t.uint32());break}case 16:{o.officialIcon=t.int32();break}case 17:{o.canPlay=t.int32();break}case 18:{o.rcmdReasonStyle=u.bilibili.app.card.v1.ReasonStyle.decode(t,t.uint32());break}case 19:{o.rcmdReasonStyleV2=u.bilibili.app.card.v1.ReasonStyle.decode(t,t.uint32());break}case 20:{o.likeButton=u.bilibili.app.card.v1.LikeButton.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.card.v1.SmallCoverV2)return t;let i=new u.bilibili.app.card.v1.SmallCoverV2;if(t.base!=null){if(typeof t.base!="object")throw TypeError(".bilibili.app.card.v1.SmallCoverV2.base: object expected");i.base=u.bilibili.app.card.v1.Base.fromObject(t.base)}if(t.coverGif!=null&&(i.coverGif=String(t.coverGif)),t.coverBlur!=null&&(i.coverBlur=t.coverBlur|0),t.coverLeftText_1!=null&&(i.coverLeftText_1=String(t.coverLeftText_1)),t.coverLeftIcon_1!=null&&(i.coverLeftIcon_1=t.coverLeftIcon_1|0),t.coverLeftText_2!=null&&(i.coverLeftText_2=String(t.coverLeftText_2)),t.coverLeftIcon_2!=null&&(i.coverLeftIcon_2=t.coverLeftIcon_2|0),t.coverRightText!=null&&(i.coverRightText=String(t.coverRightText)),t.coverRightIcon!=null&&(i.coverRightIcon=t.coverRightIcon|0),t.coverRightBackgroundColor!=null&&(i.coverRightBackgroundColor=String(t.coverRightBackgroundColor)),t.subtitle!=null&&(i.subtitle=String(t.subtitle)),t.badge!=null&&(i.badge=String(t.badge)),t.rcmdReason!=null&&(i.rcmdReason=String(t.rcmdReason)),t.desc!=null&&(i.desc=String(t.desc)),t.avatar!=null){if(typeof t.avatar!="object")throw TypeError(".bilibili.app.card.v1.SmallCoverV2.avatar: object expected");i.avatar=u.bilibili.app.card.v1.Avatar.fromObject(t.avatar)}if(t.officialIcon!=null&&(i.officialIcon=t.officialIcon|0),t.canPlay!=null&&(i.canPlay=t.canPlay|0),t.rcmdReasonStyle!=null){if(typeof t.rcmdReasonStyle!="object")throw TypeError(".bilibili.app.card.v1.SmallCoverV2.rcmdReasonStyle: object expected");i.rcmdReasonStyle=u.bilibili.app.card.v1.ReasonStyle.fromObject(t.rcmdReasonStyle)}if(t.rcmdReasonStyleV2!=null){if(typeof t.rcmdReasonStyleV2!="object")throw TypeError(".bilibili.app.card.v1.SmallCoverV2.rcmdReasonStyleV2: object expected");i.rcmdReasonStyleV2=u.bilibili.app.card.v1.ReasonStyle.fromObject(t.rcmdReasonStyleV2)}if(t.likeButton!=null){if(typeof t.likeButton!="object")throw TypeError(".bilibili.app.card.v1.SmallCoverV2.likeButton: object expected");i.likeButton=u.bilibili.app.card.v1.LikeButton.fromObject(t.likeButton)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.base=null,n.coverGif="",n.coverBlur=0,n.coverLeftText_1="",n.coverLeftIcon_1=0,n.coverLeftText_2="",n.coverLeftIcon_2=0,n.coverRightText="",n.coverRightIcon=0,n.coverRightBackgroundColor="",n.subtitle="",n.badge="",n.rcmdReason="",n.desc="",n.avatar=null,n.officialIcon=0,n.canPlay=0,n.rcmdReasonStyle=null,n.rcmdReasonStyleV2=null,n.likeButton=null),t.base!=null&&t.hasOwnProperty("base")&&(n.base=u.bilibili.app.card.v1.Base.toObject(t.base,i)),t.coverGif!=null&&t.hasOwnProperty("coverGif")&&(n.coverGif=t.coverGif),t.coverBlur!=null&&t.hasOwnProperty("coverBlur")&&(n.coverBlur=t.coverBlur),t.coverLeftText_1!=null&&t.hasOwnProperty("coverLeftText_1")&&(n.coverLeftText_1=t.coverLeftText_1),t.coverLeftIcon_1!=null&&t.hasOwnProperty("coverLeftIcon_1")&&(n.coverLeftIcon_1=t.coverLeftIcon_1),t.coverLeftText_2!=null&&t.hasOwnProperty("coverLeftText_2")&&(n.coverLeftText_2=t.coverLeftText_2),t.coverLeftIcon_2!=null&&t.hasOwnProperty("coverLeftIcon_2")&&(n.coverLeftIcon_2=t.coverLeftIcon_2),t.coverRightText!=null&&t.hasOwnProperty("coverRightText")&&(n.coverRightText=t.coverRightText),t.coverRightIcon!=null&&t.hasOwnProperty("coverRightIcon")&&(n.coverRightIcon=t.coverRightIcon),t.coverRightBackgroundColor!=null&&t.hasOwnProperty("coverRightBackgroundColor")&&(n.coverRightBackgroundColor=t.coverRightBackgroundColor),t.subtitle!=null&&t.hasOwnProperty("subtitle")&&(n.subtitle=t.subtitle),t.badge!=null&&t.hasOwnProperty("badge")&&(n.badge=t.badge),t.rcmdReason!=null&&t.hasOwnProperty("rcmdReason")&&(n.rcmdReason=t.rcmdReason),t.desc!=null&&t.hasOwnProperty("desc")&&(n.desc=t.desc),t.avatar!=null&&t.hasOwnProperty("avatar")&&(n.avatar=u.bilibili.app.card.v1.Avatar.toObject(t.avatar,i)),t.officialIcon!=null&&t.hasOwnProperty("officialIcon")&&(n.officialIcon=t.officialIcon),t.canPlay!=null&&t.hasOwnProperty("canPlay")&&(n.canPlay=t.canPlay),t.rcmdReasonStyle!=null&&t.hasOwnProperty("rcmdReasonStyle")&&(n.rcmdReasonStyle=u.bilibili.app.card.v1.ReasonStyle.toObject(t.rcmdReasonStyle,i)),t.rcmdReasonStyleV2!=null&&t.hasOwnProperty("rcmdReasonStyleV2")&&(n.rcmdReasonStyleV2=u.bilibili.app.card.v1.ReasonStyle.toObject(t.rcmdReasonStyleV2,i)),t.likeButton!=null&&t.hasOwnProperty("likeButton")&&(n.likeButton=u.bilibili.app.card.v1.LikeButton.toObject(t.likeButton,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.card.v1.SmallCoverV2"},e}(),c.SmallCoverV3=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.base=u.bilibili.app.card.v1.Base.decode(t,t.uint32());break}case 2:{o.avatar=u.bilibili.app.card.v1.Avatar.decode(t,t.uint32());break}case 3:{o.coverLeftText=t.string();break}case 4:{o.coverRightButton=u.bilibili.app.card.v1.Button.decode(t,t.uint32());break}case 5:{o.rcmdReason=t.string();break}case 6:{o.desc=t.string();break}case 7:{o.officialIcon=t.int32();break}case 8:{o.canPlay=t.int32();break}case 9:{o.rcmdReasonStyle=u.bilibili.app.card.v1.ReasonStyle.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.card.v1.SmallCoverV3)return t;let i=new u.bilibili.app.card.v1.SmallCoverV3;if(t.base!=null){if(typeof t.base!="object")throw TypeError(".bilibili.app.card.v1.SmallCoverV3.base: object expected");i.base=u.bilibili.app.card.v1.Base.fromObject(t.base)}if(t.avatar!=null){if(typeof t.avatar!="object")throw TypeError(".bilibili.app.card.v1.SmallCoverV3.avatar: object expected");i.avatar=u.bilibili.app.card.v1.Avatar.fromObject(t.avatar)}if(t.coverLeftText!=null&&(i.coverLeftText=String(t.coverLeftText)),t.coverRightButton!=null){if(typeof t.coverRightButton!="object")throw TypeError(".bilibili.app.card.v1.SmallCoverV3.coverRightButton: object expected");i.coverRightButton=u.bilibili.app.card.v1.Button.fromObject(t.coverRightButton)}if(t.rcmdReason!=null&&(i.rcmdReason=String(t.rcmdReason)),t.desc!=null&&(i.desc=String(t.desc)),t.officialIcon!=null&&(i.officialIcon=t.officialIcon|0),t.canPlay!=null&&(i.canPlay=t.canPlay|0),t.rcmdReasonStyle!=null){if(typeof t.rcmdReasonStyle!="object")throw TypeError(".bilibili.app.card.v1.SmallCoverV3.rcmdReasonStyle: object expected");i.rcmdReasonStyle=u.bilibili.app.card.v1.ReasonStyle.fromObject(t.rcmdReasonStyle)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.base=null,n.avatar=null,n.coverLeftText="",n.coverRightButton=null,n.rcmdReason="",n.desc="",n.officialIcon=0,n.canPlay=0,n.rcmdReasonStyle=null),t.base!=null&&t.hasOwnProperty("base")&&(n.base=u.bilibili.app.card.v1.Base.toObject(t.base,i)),t.avatar!=null&&t.hasOwnProperty("avatar")&&(n.avatar=u.bilibili.app.card.v1.Avatar.toObject(t.avatar,i)),t.coverLeftText!=null&&t.hasOwnProperty("coverLeftText")&&(n.coverLeftText=t.coverLeftText),t.coverRightButton!=null&&t.hasOwnProperty("coverRightButton")&&(n.coverRightButton=u.bilibili.app.card.v1.Button.toObject(t.coverRightButton,i)),t.rcmdReason!=null&&t.hasOwnProperty("rcmdReason")&&(n.rcmdReason=t.rcmdReason),t.desc!=null&&t.hasOwnProperty("desc")&&(n.desc=t.desc),t.officialIcon!=null&&t.hasOwnProperty("officialIcon")&&(n.officialIcon=t.officialIcon),t.canPlay!=null&&t.hasOwnProperty("canPlay")&&(n.canPlay=t.canPlay),t.rcmdReasonStyle!=null&&t.hasOwnProperty("rcmdReasonStyle")&&(n.rcmdReasonStyle=u.bilibili.app.card.v1.ReasonStyle.toObject(t.rcmdReasonStyle,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.card.v1.SmallCoverV3"},e}(),c.MiddleCoverV2=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.base=u.bilibili.app.card.v1.Base.decode(t,t.uint32());break}case 2:{o.ratio=t.int32();break}case 3:{o.desc=t.string();break}case 4:{o.badge=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.card.v1.MiddleCoverV2)return t;let i=new u.bilibili.app.card.v1.MiddleCoverV2;if(t.base!=null){if(typeof t.base!="object")throw TypeError(".bilibili.app.card.v1.MiddleCoverV2.base: object expected");i.base=u.bilibili.app.card.v1.Base.fromObject(t.base)}return t.ratio!=null&&(i.ratio=t.ratio|0),t.desc!=null&&(i.desc=String(t.desc)),t.badge!=null&&(i.badge=String(t.badge)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.base=null,n.ratio=0,n.desc="",n.badge=""),t.base!=null&&t.hasOwnProperty("base")&&(n.base=u.bilibili.app.card.v1.Base.toObject(t.base,i)),t.ratio!=null&&t.hasOwnProperty("ratio")&&(n.ratio=t.ratio),t.desc!=null&&t.hasOwnProperty("desc")&&(n.desc=t.desc),t.badge!=null&&t.hasOwnProperty("badge")&&(n.badge=t.badge),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.card.v1.MiddleCoverV2"},e}(),c.LargeCoverV2=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.base=u.bilibili.app.card.v1.Base.decode(t,t.uint32());break}case 2:{o.avatar=u.bilibili.app.card.v1.Avatar.decode(t,t.uint32());break}case 3:{o.badge=t.string();break}case 4:{o.coverRightButton=u.bilibili.app.card.v1.Button.decode(t,t.uint32());break}case 5:{o.coverLeftText_1=t.string();break}case 6:{o.coverLeftIcon_1=t.int32();break}case 7:{o.coverLeftText_2=t.string();break}case 8:{o.coverLeftIcon_2=t.int32();break}case 9:{o.rcmdReason=t.string();break}case 10:{o.officialIcon=t.int32();break}case 11:{o.canPlay=t.int32();break}case 12:{o.rcmdReasonStyle=u.bilibili.app.card.v1.ReasonStyle.decode(t,t.uint32());break}case 13:{o.showTop=t.int32();break}case 14:{o.showBottom=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.card.v1.LargeCoverV2)return t;let i=new u.bilibili.app.card.v1.LargeCoverV2;if(t.base!=null){if(typeof t.base!="object")throw TypeError(".bilibili.app.card.v1.LargeCoverV2.base: object expected");i.base=u.bilibili.app.card.v1.Base.fromObject(t.base)}if(t.avatar!=null){if(typeof t.avatar!="object")throw TypeError(".bilibili.app.card.v1.LargeCoverV2.avatar: object expected");i.avatar=u.bilibili.app.card.v1.Avatar.fromObject(t.avatar)}if(t.badge!=null&&(i.badge=String(t.badge)),t.coverRightButton!=null){if(typeof t.coverRightButton!="object")throw TypeError(".bilibili.app.card.v1.LargeCoverV2.coverRightButton: object expected");i.coverRightButton=u.bilibili.app.card.v1.Button.fromObject(t.coverRightButton)}if(t.coverLeftText_1!=null&&(i.coverLeftText_1=String(t.coverLeftText_1)),t.coverLeftIcon_1!=null&&(i.coverLeftIcon_1=t.coverLeftIcon_1|0),t.coverLeftText_2!=null&&(i.coverLeftText_2=String(t.coverLeftText_2)),t.coverLeftIcon_2!=null&&(i.coverLeftIcon_2=t.coverLeftIcon_2|0),t.rcmdReason!=null&&(i.rcmdReason=String(t.rcmdReason)),t.officialIcon!=null&&(i.officialIcon=t.officialIcon|0),t.canPlay!=null&&(i.canPlay=t.canPlay|0),t.rcmdReasonStyle!=null){if(typeof t.rcmdReasonStyle!="object")throw TypeError(".bilibili.app.card.v1.LargeCoverV2.rcmdReasonStyle: object expected");i.rcmdReasonStyle=u.bilibili.app.card.v1.ReasonStyle.fromObject(t.rcmdReasonStyle)}return t.showTop!=null&&(i.showTop=t.showTop|0),t.showBottom!=null&&(i.showBottom=t.showBottom|0),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.base=null,n.avatar=null,n.badge="",n.coverRightButton=null,n.coverLeftText_1="",n.coverLeftIcon_1=0,n.coverLeftText_2="",n.coverLeftIcon_2=0,n.rcmdReason="",n.officialIcon=0,n.canPlay=0,n.rcmdReasonStyle=null,n.showTop=0,n.showBottom=0),t.base!=null&&t.hasOwnProperty("base")&&(n.base=u.bilibili.app.card.v1.Base.toObject(t.base,i)),t.avatar!=null&&t.hasOwnProperty("avatar")&&(n.avatar=u.bilibili.app.card.v1.Avatar.toObject(t.avatar,i)),t.badge!=null&&t.hasOwnProperty("badge")&&(n.badge=t.badge),t.coverRightButton!=null&&t.hasOwnProperty("coverRightButton")&&(n.coverRightButton=u.bilibili.app.card.v1.Button.toObject(t.coverRightButton,i)),t.coverLeftText_1!=null&&t.hasOwnProperty("coverLeftText_1")&&(n.coverLeftText_1=t.coverLeftText_1),t.coverLeftIcon_1!=null&&t.hasOwnProperty("coverLeftIcon_1")&&(n.coverLeftIcon_1=t.coverLeftIcon_1),t.coverLeftText_2!=null&&t.hasOwnProperty("coverLeftText_2")&&(n.coverLeftText_2=t.coverLeftText_2),t.coverLeftIcon_2!=null&&t.hasOwnProperty("coverLeftIcon_2")&&(n.coverLeftIcon_2=t.coverLeftIcon_2),t.rcmdReason!=null&&t.hasOwnProperty("rcmdReason")&&(n.rcmdReason=t.rcmdReason),t.officialIcon!=null&&t.hasOwnProperty("officialIcon")&&(n.officialIcon=t.officialIcon),t.canPlay!=null&&t.hasOwnProperty("canPlay")&&(n.canPlay=t.canPlay),t.rcmdReasonStyle!=null&&t.hasOwnProperty("rcmdReasonStyle")&&(n.rcmdReasonStyle=u.bilibili.app.card.v1.ReasonStyle.toObject(t.rcmdReasonStyle,i)),t.showTop!=null&&t.hasOwnProperty("showTop")&&(n.showTop=t.showTop),t.showBottom!=null&&t.hasOwnProperty("showBottom")&&(n.showBottom=t.showBottom),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.card.v1.LargeCoverV2"},e}(),c.ThreeItemV2=function(){function e(l){if(this.items=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.base=u.bilibili.app.card.v1.Base.decode(t,t.uint32());break}case 2:{o.titleIcon=t.int32();break}case 3:{o.moreUri=t.string();break}case 4:{o.moreText=t.string();break}case 5:{o.items&&o.items.length||(o.items=[]),o.items.push(u.bilibili.app.card.v1.ThreeItemV2Item.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.card.v1.ThreeItemV2)return t;let i=new u.bilibili.app.card.v1.ThreeItemV2;if(t.base!=null){if(typeof t.base!="object")throw TypeError(".bilibili.app.card.v1.ThreeItemV2.base: object expected");i.base=u.bilibili.app.card.v1.Base.fromObject(t.base)}if(t.titleIcon!=null&&(i.titleIcon=t.titleIcon|0),t.moreUri!=null&&(i.moreUri=String(t.moreUri)),t.moreText!=null&&(i.moreText=String(t.moreText)),t.items){if(!Array.isArray(t.items))throw TypeError(".bilibili.app.card.v1.ThreeItemV2.items: array expected");i.items=[];for(let n=0;n>>3){case 1:{o.base=u.bilibili.app.card.v1.Base.decode(t,t.uint32());break}case 2:{o.coverLeftIcon=t.int32();break}case 3:{o.descText_1=t.string();break}case 4:{o.descIcon_1=t.int32();break}case 5:{o.descText_2=t.string();break}case 6:{o.descIcon_2=t.int32();break}case 7:{o.badge=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.card.v1.ThreeItemV2Item)return t;let i=new u.bilibili.app.card.v1.ThreeItemV2Item;if(t.base!=null){if(typeof t.base!="object")throw TypeError(".bilibili.app.card.v1.ThreeItemV2Item.base: object expected");i.base=u.bilibili.app.card.v1.Base.fromObject(t.base)}return t.coverLeftIcon!=null&&(i.coverLeftIcon=t.coverLeftIcon|0),t.descText_1!=null&&(i.descText_1=String(t.descText_1)),t.descIcon_1!=null&&(i.descIcon_1=t.descIcon_1|0),t.descText_2!=null&&(i.descText_2=String(t.descText_2)),t.descIcon_2!=null&&(i.descIcon_2=t.descIcon_2|0),t.badge!=null&&(i.badge=String(t.badge)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.base=null,n.coverLeftIcon=0,n.descText_1="",n.descIcon_1=0,n.descText_2="",n.descIcon_2=0,n.badge=""),t.base!=null&&t.hasOwnProperty("base")&&(n.base=u.bilibili.app.card.v1.Base.toObject(t.base,i)),t.coverLeftIcon!=null&&t.hasOwnProperty("coverLeftIcon")&&(n.coverLeftIcon=t.coverLeftIcon),t.descText_1!=null&&t.hasOwnProperty("descText_1")&&(n.descText_1=t.descText_1),t.descIcon_1!=null&&t.hasOwnProperty("descIcon_1")&&(n.descIcon_1=t.descIcon_1),t.descText_2!=null&&t.hasOwnProperty("descText_2")&&(n.descText_2=t.descText_2),t.descIcon_2!=null&&t.hasOwnProperty("descIcon_2")&&(n.descIcon_2=t.descIcon_2),t.badge!=null&&t.hasOwnProperty("badge")&&(n.badge=t.badge),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.card.v1.ThreeItemV2Item"},e}(),c.SmallCoverV4=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.base=u.bilibili.app.card.v1.Base.decode(t,t.uint32());break}case 2:{o.coverBadge=t.string();break}case 3:{o.desc=t.string();break}case 4:{o.titleRightText=t.string();break}case 5:{o.titleRightPic=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.card.v1.SmallCoverV4)return t;let i=new u.bilibili.app.card.v1.SmallCoverV4;if(t.base!=null){if(typeof t.base!="object")throw TypeError(".bilibili.app.card.v1.SmallCoverV4.base: object expected");i.base=u.bilibili.app.card.v1.Base.fromObject(t.base)}return t.coverBadge!=null&&(i.coverBadge=String(t.coverBadge)),t.desc!=null&&(i.desc=String(t.desc)),t.titleRightText!=null&&(i.titleRightText=String(t.titleRightText)),t.titleRightPic!=null&&(i.titleRightPic=t.titleRightPic|0),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.base=null,n.coverBadge="",n.desc="",n.titleRightText="",n.titleRightPic=0),t.base!=null&&t.hasOwnProperty("base")&&(n.base=u.bilibili.app.card.v1.Base.toObject(t.base,i)),t.coverBadge!=null&&t.hasOwnProperty("coverBadge")&&(n.coverBadge=t.coverBadge),t.desc!=null&&t.hasOwnProperty("desc")&&(n.desc=t.desc),t.titleRightText!=null&&t.hasOwnProperty("titleRightText")&&(n.titleRightText=t.titleRightText),t.titleRightPic!=null&&t.hasOwnProperty("titleRightPic")&&(n.titleRightPic=t.titleRightPic),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.card.v1.SmallCoverV4"},e}(),c.TwoItemV2=function(){function e(l){if(this.items=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.base=u.bilibili.app.card.v1.Base.decode(t,t.uint32());break}case 2:{o.items&&o.items.length||(o.items=[]),o.items.push(u.bilibili.app.card.v1.TwoItemV2Item.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.card.v1.TwoItemV2)return t;let i=new u.bilibili.app.card.v1.TwoItemV2;if(t.base!=null){if(typeof t.base!="object")throw TypeError(".bilibili.app.card.v1.TwoItemV2.base: object expected");i.base=u.bilibili.app.card.v1.Base.fromObject(t.base)}if(t.items){if(!Array.isArray(t.items))throw TypeError(".bilibili.app.card.v1.TwoItemV2.items: array expected");i.items=[];for(let n=0;n>>3){case 1:{o.base=u.bilibili.app.card.v1.Base.decode(t,t.uint32());break}case 2:{o.badge=t.string();break}case 3:{o.coverLeftText_1=t.string();break}case 4:{o.coverLeftIcon_1=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.card.v1.TwoItemV2Item)return t;let i=new u.bilibili.app.card.v1.TwoItemV2Item;if(t.base!=null){if(typeof t.base!="object")throw TypeError(".bilibili.app.card.v1.TwoItemV2Item.base: object expected");i.base=u.bilibili.app.card.v1.Base.fromObject(t.base)}return t.badge!=null&&(i.badge=String(t.badge)),t.coverLeftText_1!=null&&(i.coverLeftText_1=String(t.coverLeftText_1)),t.coverLeftIcon_1!=null&&(i.coverLeftIcon_1=t.coverLeftIcon_1|0),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.base=null,n.badge="",n.coverLeftText_1="",n.coverLeftIcon_1=0),t.base!=null&&t.hasOwnProperty("base")&&(n.base=u.bilibili.app.card.v1.Base.toObject(t.base,i)),t.badge!=null&&t.hasOwnProperty("badge")&&(n.badge=t.badge),t.coverLeftText_1!=null&&t.hasOwnProperty("coverLeftText_1")&&(n.coverLeftText_1=t.coverLeftText_1),t.coverLeftIcon_1!=null&&t.hasOwnProperty("coverLeftIcon_1")&&(n.coverLeftIcon_1=t.coverLeftIcon_1),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.card.v1.TwoItemV2Item"},e}(),c.MultiItem=function(){function e(l){if(this.items=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.base=u.bilibili.app.card.v1.Base.decode(t,t.uint32());break}case 2:{o.moreUri=t.string();break}case 3:{o.moreText=t.string();break}case 4:{o.items&&o.items.length||(o.items=[]),o.items.push(u.bilibili.app.card.v1.DoubleCards.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.card.v1.MultiItem)return t;let i=new u.bilibili.app.card.v1.MultiItem;if(t.base!=null){if(typeof t.base!="object")throw TypeError(".bilibili.app.card.v1.MultiItem.base: object expected");i.base=u.bilibili.app.card.v1.Base.fromObject(t.base)}if(t.moreUri!=null&&(i.moreUri=String(t.moreUri)),t.moreText!=null&&(i.moreText=String(t.moreText)),t.items){if(!Array.isArray(t.items))throw TypeError(".bilibili.app.card.v1.MultiItem.items: array expected");i.items=[];for(let n=0;n>>3){case 1:{o.base=u.bilibili.app.card.v1.Base.decode(t,t.uint32());break}case 2:{o.leftCover=t.string();break}case 3:{o.rightCover_1=t.string();break}case 4:{o.rightCover_2=t.string();break}case 5:{o.coverLeftText_1=t.string();break}case 6:{o.coverLeftIcon_1=t.int32();break}case 7:{o.coverLeftText_2=t.string();break}case 8:{o.coverLeftIcon_2=t.int32();break}case 9:{o.coverRightText=t.string();break}case 10:{o.coverRightIcon=t.int32();break}case 11:{o.coverRightBackgroundColor=t.string();break}case 12:{o.badge=t.string();break}case 13:{o.rcmdReason=t.string();break}case 14:{o.desc=t.string();break}case 15:{o.avatar=u.bilibili.app.card.v1.Avatar.decode(t,t.uint32());break}case 16:{o.rcmdReasonStyle=u.bilibili.app.card.v1.ReasonStyle.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.card.v1.ThreePicV2)return t;let i=new u.bilibili.app.card.v1.ThreePicV2;if(t.base!=null){if(typeof t.base!="object")throw TypeError(".bilibili.app.card.v1.ThreePicV2.base: object expected");i.base=u.bilibili.app.card.v1.Base.fromObject(t.base)}if(t.leftCover!=null&&(i.leftCover=String(t.leftCover)),t.rightCover_1!=null&&(i.rightCover_1=String(t.rightCover_1)),t.rightCover_2!=null&&(i.rightCover_2=String(t.rightCover_2)),t.coverLeftText_1!=null&&(i.coverLeftText_1=String(t.coverLeftText_1)),t.coverLeftIcon_1!=null&&(i.coverLeftIcon_1=t.coverLeftIcon_1|0),t.coverLeftText_2!=null&&(i.coverLeftText_2=String(t.coverLeftText_2)),t.coverLeftIcon_2!=null&&(i.coverLeftIcon_2=t.coverLeftIcon_2|0),t.coverRightText!=null&&(i.coverRightText=String(t.coverRightText)),t.coverRightIcon!=null&&(i.coverRightIcon=t.coverRightIcon|0),t.coverRightBackgroundColor!=null&&(i.coverRightBackgroundColor=String(t.coverRightBackgroundColor)),t.badge!=null&&(i.badge=String(t.badge)),t.rcmdReason!=null&&(i.rcmdReason=String(t.rcmdReason)),t.desc!=null&&(i.desc=String(t.desc)),t.avatar!=null){if(typeof t.avatar!="object")throw TypeError(".bilibili.app.card.v1.ThreePicV2.avatar: object expected");i.avatar=u.bilibili.app.card.v1.Avatar.fromObject(t.avatar)}if(t.rcmdReasonStyle!=null){if(typeof t.rcmdReasonStyle!="object")throw TypeError(".bilibili.app.card.v1.ThreePicV2.rcmdReasonStyle: object expected");i.rcmdReasonStyle=u.bilibili.app.card.v1.ReasonStyle.fromObject(t.rcmdReasonStyle)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.base=null,n.leftCover="",n.rightCover_1="",n.rightCover_2="",n.coverLeftText_1="",n.coverLeftIcon_1=0,n.coverLeftText_2="",n.coverLeftIcon_2=0,n.coverRightText="",n.coverRightIcon=0,n.coverRightBackgroundColor="",n.badge="",n.rcmdReason="",n.desc="",n.avatar=null,n.rcmdReasonStyle=null),t.base!=null&&t.hasOwnProperty("base")&&(n.base=u.bilibili.app.card.v1.Base.toObject(t.base,i)),t.leftCover!=null&&t.hasOwnProperty("leftCover")&&(n.leftCover=t.leftCover),t.rightCover_1!=null&&t.hasOwnProperty("rightCover_1")&&(n.rightCover_1=t.rightCover_1),t.rightCover_2!=null&&t.hasOwnProperty("rightCover_2")&&(n.rightCover_2=t.rightCover_2),t.coverLeftText_1!=null&&t.hasOwnProperty("coverLeftText_1")&&(n.coverLeftText_1=t.coverLeftText_1),t.coverLeftIcon_1!=null&&t.hasOwnProperty("coverLeftIcon_1")&&(n.coverLeftIcon_1=t.coverLeftIcon_1),t.coverLeftText_2!=null&&t.hasOwnProperty("coverLeftText_2")&&(n.coverLeftText_2=t.coverLeftText_2),t.coverLeftIcon_2!=null&&t.hasOwnProperty("coverLeftIcon_2")&&(n.coverLeftIcon_2=t.coverLeftIcon_2),t.coverRightText!=null&&t.hasOwnProperty("coverRightText")&&(n.coverRightText=t.coverRightText),t.coverRightIcon!=null&&t.hasOwnProperty("coverRightIcon")&&(n.coverRightIcon=t.coverRightIcon),t.coverRightBackgroundColor!=null&&t.hasOwnProperty("coverRightBackgroundColor")&&(n.coverRightBackgroundColor=t.coverRightBackgroundColor),t.badge!=null&&t.hasOwnProperty("badge")&&(n.badge=t.badge),t.rcmdReason!=null&&t.hasOwnProperty("rcmdReason")&&(n.rcmdReason=t.rcmdReason),t.desc!=null&&t.hasOwnProperty("desc")&&(n.desc=t.desc),t.avatar!=null&&t.hasOwnProperty("avatar")&&(n.avatar=u.bilibili.app.card.v1.Avatar.toObject(t.avatar,i)),t.rcmdReasonStyle!=null&&t.hasOwnProperty("rcmdReasonStyle")&&(n.rcmdReasonStyle=u.bilibili.app.card.v1.ReasonStyle.toObject(t.rcmdReasonStyle,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.card.v1.ThreePicV2"},e}(),c.OnePicV2=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.base=u.bilibili.app.card.v1.Base.decode(t,t.uint32());break}case 2:{o.coverLeftIcon_1=t.int32();break}case 3:{o.coverLeftText_2=t.string();break}case 4:{o.coverRightText=t.string();break}case 5:{o.coverRightIcon=t.int32();break}case 6:{o.coverRightBackgroundColor=t.string();break}case 7:{o.badge=t.string();break}case 8:{o.rcmdReason=t.string();break}case 9:{o.avatar=u.bilibili.app.card.v1.Avatar.decode(t,t.uint32());break}case 10:{o.rcmdReasonStyle=u.bilibili.app.card.v1.ReasonStyle.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.card.v1.OnePicV2)return t;let i=new u.bilibili.app.card.v1.OnePicV2;if(t.base!=null){if(typeof t.base!="object")throw TypeError(".bilibili.app.card.v1.OnePicV2.base: object expected");i.base=u.bilibili.app.card.v1.Base.fromObject(t.base)}if(t.coverLeftIcon_1!=null&&(i.coverLeftIcon_1=t.coverLeftIcon_1|0),t.coverLeftText_2!=null&&(i.coverLeftText_2=String(t.coverLeftText_2)),t.coverRightText!=null&&(i.coverRightText=String(t.coverRightText)),t.coverRightIcon!=null&&(i.coverRightIcon=t.coverRightIcon|0),t.coverRightBackgroundColor!=null&&(i.coverRightBackgroundColor=String(t.coverRightBackgroundColor)),t.badge!=null&&(i.badge=String(t.badge)),t.rcmdReason!=null&&(i.rcmdReason=String(t.rcmdReason)),t.avatar!=null){if(typeof t.avatar!="object")throw TypeError(".bilibili.app.card.v1.OnePicV2.avatar: object expected");i.avatar=u.bilibili.app.card.v1.Avatar.fromObject(t.avatar)}if(t.rcmdReasonStyle!=null){if(typeof t.rcmdReasonStyle!="object")throw TypeError(".bilibili.app.card.v1.OnePicV2.rcmdReasonStyle: object expected");i.rcmdReasonStyle=u.bilibili.app.card.v1.ReasonStyle.fromObject(t.rcmdReasonStyle)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.base=null,n.coverLeftIcon_1=0,n.coverLeftText_2="",n.coverRightText="",n.coverRightIcon=0,n.coverRightBackgroundColor="",n.badge="",n.rcmdReason="",n.avatar=null,n.rcmdReasonStyle=null),t.base!=null&&t.hasOwnProperty("base")&&(n.base=u.bilibili.app.card.v1.Base.toObject(t.base,i)),t.coverLeftIcon_1!=null&&t.hasOwnProperty("coverLeftIcon_1")&&(n.coverLeftIcon_1=t.coverLeftIcon_1),t.coverLeftText_2!=null&&t.hasOwnProperty("coverLeftText_2")&&(n.coverLeftText_2=t.coverLeftText_2),t.coverRightText!=null&&t.hasOwnProperty("coverRightText")&&(n.coverRightText=t.coverRightText),t.coverRightIcon!=null&&t.hasOwnProperty("coverRightIcon")&&(n.coverRightIcon=t.coverRightIcon),t.coverRightBackgroundColor!=null&&t.hasOwnProperty("coverRightBackgroundColor")&&(n.coverRightBackgroundColor=t.coverRightBackgroundColor),t.badge!=null&&t.hasOwnProperty("badge")&&(n.badge=t.badge),t.rcmdReason!=null&&t.hasOwnProperty("rcmdReason")&&(n.rcmdReason=t.rcmdReason),t.avatar!=null&&t.hasOwnProperty("avatar")&&(n.avatar=u.bilibili.app.card.v1.Avatar.toObject(t.avatar,i)),t.rcmdReasonStyle!=null&&t.hasOwnProperty("rcmdReasonStyle")&&(n.rcmdReasonStyle=u.bilibili.app.card.v1.ReasonStyle.toObject(t.rcmdReasonStyle,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.card.v1.OnePicV2"},e}(),c.LargeCoverV3=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.base=u.bilibili.app.card.v1.Base.decode(t,t.uint32());break}case 2:{o.coverGif=t.string();break}case 3:{o.avatar=u.bilibili.app.card.v1.Avatar.decode(t,t.uint32());break}case 4:{o.topRcmdReasonStyle=u.bilibili.app.card.v1.ReasonStyle.decode(t,t.uint32());break}case 5:{o.bottomRcmdReasonStyle=u.bilibili.app.card.v1.ReasonStyle.decode(t,t.uint32());break}case 6:{o.coverLeftText_1=t.string();break}case 7:{o.coverLeftIcon_1=t.int32();break}case 8:{o.coverLeftText_2=t.string();break}case 9:{o.coverLeftIcon_2=t.int32();break}case 10:{o.coverRightText=t.string();break}case 11:{o.desc=t.string();break}case 12:{o.officialIcon=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.card.v1.LargeCoverV3)return t;let i=new u.bilibili.app.card.v1.LargeCoverV3;if(t.base!=null){if(typeof t.base!="object")throw TypeError(".bilibili.app.card.v1.LargeCoverV3.base: object expected");i.base=u.bilibili.app.card.v1.Base.fromObject(t.base)}if(t.coverGif!=null&&(i.coverGif=String(t.coverGif)),t.avatar!=null){if(typeof t.avatar!="object")throw TypeError(".bilibili.app.card.v1.LargeCoverV3.avatar: object expected");i.avatar=u.bilibili.app.card.v1.Avatar.fromObject(t.avatar)}if(t.topRcmdReasonStyle!=null){if(typeof t.topRcmdReasonStyle!="object")throw TypeError(".bilibili.app.card.v1.LargeCoverV3.topRcmdReasonStyle: object expected");i.topRcmdReasonStyle=u.bilibili.app.card.v1.ReasonStyle.fromObject(t.topRcmdReasonStyle)}if(t.bottomRcmdReasonStyle!=null){if(typeof t.bottomRcmdReasonStyle!="object")throw TypeError(".bilibili.app.card.v1.LargeCoverV3.bottomRcmdReasonStyle: object expected");i.bottomRcmdReasonStyle=u.bilibili.app.card.v1.ReasonStyle.fromObject(t.bottomRcmdReasonStyle)}return t.coverLeftText_1!=null&&(i.coverLeftText_1=String(t.coverLeftText_1)),t.coverLeftIcon_1!=null&&(i.coverLeftIcon_1=t.coverLeftIcon_1|0),t.coverLeftText_2!=null&&(i.coverLeftText_2=String(t.coverLeftText_2)),t.coverLeftIcon_2!=null&&(i.coverLeftIcon_2=t.coverLeftIcon_2|0),t.coverRightText!=null&&(i.coverRightText=String(t.coverRightText)),t.desc!=null&&(i.desc=String(t.desc)),t.officialIcon!=null&&(i.officialIcon=t.officialIcon|0),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.base=null,n.coverGif="",n.avatar=null,n.topRcmdReasonStyle=null,n.bottomRcmdReasonStyle=null,n.coverLeftText_1="",n.coverLeftIcon_1=0,n.coverLeftText_2="",n.coverLeftIcon_2=0,n.coverRightText="",n.desc="",n.officialIcon=0),t.base!=null&&t.hasOwnProperty("base")&&(n.base=u.bilibili.app.card.v1.Base.toObject(t.base,i)),t.coverGif!=null&&t.hasOwnProperty("coverGif")&&(n.coverGif=t.coverGif),t.avatar!=null&&t.hasOwnProperty("avatar")&&(n.avatar=u.bilibili.app.card.v1.Avatar.toObject(t.avatar,i)),t.topRcmdReasonStyle!=null&&t.hasOwnProperty("topRcmdReasonStyle")&&(n.topRcmdReasonStyle=u.bilibili.app.card.v1.ReasonStyle.toObject(t.topRcmdReasonStyle,i)),t.bottomRcmdReasonStyle!=null&&t.hasOwnProperty("bottomRcmdReasonStyle")&&(n.bottomRcmdReasonStyle=u.bilibili.app.card.v1.ReasonStyle.toObject(t.bottomRcmdReasonStyle,i)),t.coverLeftText_1!=null&&t.hasOwnProperty("coverLeftText_1")&&(n.coverLeftText_1=t.coverLeftText_1),t.coverLeftIcon_1!=null&&t.hasOwnProperty("coverLeftIcon_1")&&(n.coverLeftIcon_1=t.coverLeftIcon_1),t.coverLeftText_2!=null&&t.hasOwnProperty("coverLeftText_2")&&(n.coverLeftText_2=t.coverLeftText_2),t.coverLeftIcon_2!=null&&t.hasOwnProperty("coverLeftIcon_2")&&(n.coverLeftIcon_2=t.coverLeftIcon_2),t.coverRightText!=null&&t.hasOwnProperty("coverRightText")&&(n.coverRightText=t.coverRightText),t.desc!=null&&t.hasOwnProperty("desc")&&(n.desc=t.desc),t.officialIcon!=null&&t.hasOwnProperty("officialIcon")&&(n.officialIcon=t.officialIcon),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.card.v1.LargeCoverV3"},e}(),c.ThreePicV3=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.base=u.bilibili.app.card.v1.Base.decode(t,t.uint32());break}case 2:{o.leftCover=t.string();break}case 3:{o.rightCover_1=t.string();break}case 4:{o.rightCover_2=t.string();break}case 5:{o.coverLeftText_1=t.string();break}case 6:{o.coverLeftIcon_1=t.int32();break}case 7:{o.coverLeftText_2=t.string();break}case 8:{o.coverLeftIcon_2=t.int32();break}case 9:{o.coverRightText=t.string();break}case 10:{o.coverRightIcon=t.int32();break}case 11:{o.coverRightBackgroundColor=t.string();break}case 12:{o.badge=t.string();break}case 13:{o.rcmdReasonStyle=u.bilibili.app.card.v1.ReasonStyle.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.card.v1.ThreePicV3)return t;let i=new u.bilibili.app.card.v1.ThreePicV3;if(t.base!=null){if(typeof t.base!="object")throw TypeError(".bilibili.app.card.v1.ThreePicV3.base: object expected");i.base=u.bilibili.app.card.v1.Base.fromObject(t.base)}if(t.leftCover!=null&&(i.leftCover=String(t.leftCover)),t.rightCover_1!=null&&(i.rightCover_1=String(t.rightCover_1)),t.rightCover_2!=null&&(i.rightCover_2=String(t.rightCover_2)),t.coverLeftText_1!=null&&(i.coverLeftText_1=String(t.coverLeftText_1)),t.coverLeftIcon_1!=null&&(i.coverLeftIcon_1=t.coverLeftIcon_1|0),t.coverLeftText_2!=null&&(i.coverLeftText_2=String(t.coverLeftText_2)),t.coverLeftIcon_2!=null&&(i.coverLeftIcon_2=t.coverLeftIcon_2|0),t.coverRightText!=null&&(i.coverRightText=String(t.coverRightText)),t.coverRightIcon!=null&&(i.coverRightIcon=t.coverRightIcon|0),t.coverRightBackgroundColor!=null&&(i.coverRightBackgroundColor=String(t.coverRightBackgroundColor)),t.badge!=null&&(i.badge=String(t.badge)),t.rcmdReasonStyle!=null){if(typeof t.rcmdReasonStyle!="object")throw TypeError(".bilibili.app.card.v1.ThreePicV3.rcmdReasonStyle: object expected");i.rcmdReasonStyle=u.bilibili.app.card.v1.ReasonStyle.fromObject(t.rcmdReasonStyle)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.base=null,n.leftCover="",n.rightCover_1="",n.rightCover_2="",n.coverLeftText_1="",n.coverLeftIcon_1=0,n.coverLeftText_2="",n.coverLeftIcon_2=0,n.coverRightText="",n.coverRightIcon=0,n.coverRightBackgroundColor="",n.badge="",n.rcmdReasonStyle=null),t.base!=null&&t.hasOwnProperty("base")&&(n.base=u.bilibili.app.card.v1.Base.toObject(t.base,i)),t.leftCover!=null&&t.hasOwnProperty("leftCover")&&(n.leftCover=t.leftCover),t.rightCover_1!=null&&t.hasOwnProperty("rightCover_1")&&(n.rightCover_1=t.rightCover_1),t.rightCover_2!=null&&t.hasOwnProperty("rightCover_2")&&(n.rightCover_2=t.rightCover_2),t.coverLeftText_1!=null&&t.hasOwnProperty("coverLeftText_1")&&(n.coverLeftText_1=t.coverLeftText_1),t.coverLeftIcon_1!=null&&t.hasOwnProperty("coverLeftIcon_1")&&(n.coverLeftIcon_1=t.coverLeftIcon_1),t.coverLeftText_2!=null&&t.hasOwnProperty("coverLeftText_2")&&(n.coverLeftText_2=t.coverLeftText_2),t.coverLeftIcon_2!=null&&t.hasOwnProperty("coverLeftIcon_2")&&(n.coverLeftIcon_2=t.coverLeftIcon_2),t.coverRightText!=null&&t.hasOwnProperty("coverRightText")&&(n.coverRightText=t.coverRightText),t.coverRightIcon!=null&&t.hasOwnProperty("coverRightIcon")&&(n.coverRightIcon=t.coverRightIcon),t.coverRightBackgroundColor!=null&&t.hasOwnProperty("coverRightBackgroundColor")&&(n.coverRightBackgroundColor=t.coverRightBackgroundColor),t.badge!=null&&t.hasOwnProperty("badge")&&(n.badge=t.badge),t.rcmdReasonStyle!=null&&t.hasOwnProperty("rcmdReasonStyle")&&(n.rcmdReasonStyle=u.bilibili.app.card.v1.ReasonStyle.toObject(t.rcmdReasonStyle,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.card.v1.ThreePicV3"},e}(),c.OnePicV3=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.base=u.bilibili.app.card.v1.Base.decode(t,t.uint32());break}case 2:{o.coverLeftText_1=t.string();break}case 3:{o.coverLeftIcon_1=t.int32();break}case 4:{o.coverRightText=t.string();break}case 5:{o.coverRightIcon=t.int32();break}case 6:{o.coverRightBackgroundColor=t.string();break}case 7:{o.badge=t.string();break}case 8:{o.rcmdReasonStyle=u.bilibili.app.card.v1.ReasonStyle.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.card.v1.OnePicV3)return t;let i=new u.bilibili.app.card.v1.OnePicV3;if(t.base!=null){if(typeof t.base!="object")throw TypeError(".bilibili.app.card.v1.OnePicV3.base: object expected");i.base=u.bilibili.app.card.v1.Base.fromObject(t.base)}if(t.coverLeftText_1!=null&&(i.coverLeftText_1=String(t.coverLeftText_1)),t.coverLeftIcon_1!=null&&(i.coverLeftIcon_1=t.coverLeftIcon_1|0),t.coverRightText!=null&&(i.coverRightText=String(t.coverRightText)),t.coverRightIcon!=null&&(i.coverRightIcon=t.coverRightIcon|0),t.coverRightBackgroundColor!=null&&(i.coverRightBackgroundColor=String(t.coverRightBackgroundColor)),t.badge!=null&&(i.badge=String(t.badge)),t.rcmdReasonStyle!=null){if(typeof t.rcmdReasonStyle!="object")throw TypeError(".bilibili.app.card.v1.OnePicV3.rcmdReasonStyle: object expected");i.rcmdReasonStyle=u.bilibili.app.card.v1.ReasonStyle.fromObject(t.rcmdReasonStyle)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.base=null,n.coverLeftText_1="",n.coverLeftIcon_1=0,n.coverRightText="",n.coverRightIcon=0,n.coverRightBackgroundColor="",n.badge="",n.rcmdReasonStyle=null),t.base!=null&&t.hasOwnProperty("base")&&(n.base=u.bilibili.app.card.v1.Base.toObject(t.base,i)),t.coverLeftText_1!=null&&t.hasOwnProperty("coverLeftText_1")&&(n.coverLeftText_1=t.coverLeftText_1),t.coverLeftIcon_1!=null&&t.hasOwnProperty("coverLeftIcon_1")&&(n.coverLeftIcon_1=t.coverLeftIcon_1),t.coverRightText!=null&&t.hasOwnProperty("coverRightText")&&(n.coverRightText=t.coverRightText),t.coverRightIcon!=null&&t.hasOwnProperty("coverRightIcon")&&(n.coverRightIcon=t.coverRightIcon),t.coverRightBackgroundColor!=null&&t.hasOwnProperty("coverRightBackgroundColor")&&(n.coverRightBackgroundColor=t.coverRightBackgroundColor),t.badge!=null&&t.hasOwnProperty("badge")&&(n.badge=t.badge),t.rcmdReasonStyle!=null&&t.hasOwnProperty("rcmdReasonStyle")&&(n.rcmdReasonStyle=u.bilibili.app.card.v1.ReasonStyle.toObject(t.rcmdReasonStyle,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.card.v1.OnePicV3"},e}(),c.SmallCoverV7=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.base=u.bilibili.app.card.v1.Base.decode(t,t.uint32());break}case 2:{o.desc=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.card.v1.SmallCoverV7)return t;let i=new u.bilibili.app.card.v1.SmallCoverV7;if(t.base!=null){if(typeof t.base!="object")throw TypeError(".bilibili.app.card.v1.SmallCoverV7.base: object expected");i.base=u.bilibili.app.card.v1.Base.fromObject(t.base)}return t.desc!=null&&(i.desc=String(t.desc)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.base=null,n.desc=""),t.base!=null&&t.hasOwnProperty("base")&&(n.base=u.bilibili.app.card.v1.Base.toObject(t.base,i)),t.desc!=null&&t.hasOwnProperty("desc")&&(n.desc=t.desc),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.card.v1.SmallCoverV7"},e}(),c.SmallCoverV9=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.base=u.bilibili.app.card.v1.Base.decode(t,t.uint32());break}case 2:{o.coverLeftText_1=t.string();break}case 3:{o.coverLeftIcon_1=t.int32();break}case 4:{o.coverLeftText_2=t.string();break}case 5:{o.coverLeftIcon_2=t.int32();break}case 6:{o.coverRightText=t.string();break}case 7:{o.coverRightIcon=t.int32();break}case 8:{o.canPlay=t.int32();break}case 9:{o.rcmdReasonStyle=u.bilibili.app.card.v1.ReasonStyle.decode(t,t.uint32());break}case 10:{o.up=u.bilibili.app.card.v1.Up.decode(t,t.uint32());break}case 11:{o.leftCoverBadgeStyle=u.bilibili.app.card.v1.ReasonStyle.decode(t,t.uint32());break}case 12:{o.leftBottomRcmdReasonStyle=u.bilibili.app.card.v1.ReasonStyle.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.card.v1.SmallCoverV9)return t;let i=new u.bilibili.app.card.v1.SmallCoverV9;if(t.base!=null){if(typeof t.base!="object")throw TypeError(".bilibili.app.card.v1.SmallCoverV9.base: object expected");i.base=u.bilibili.app.card.v1.Base.fromObject(t.base)}if(t.coverLeftText_1!=null&&(i.coverLeftText_1=String(t.coverLeftText_1)),t.coverLeftIcon_1!=null&&(i.coverLeftIcon_1=t.coverLeftIcon_1|0),t.coverLeftText_2!=null&&(i.coverLeftText_2=String(t.coverLeftText_2)),t.coverLeftIcon_2!=null&&(i.coverLeftIcon_2=t.coverLeftIcon_2|0),t.coverRightText!=null&&(i.coverRightText=String(t.coverRightText)),t.coverRightIcon!=null&&(i.coverRightIcon=t.coverRightIcon|0),t.canPlay!=null&&(i.canPlay=t.canPlay|0),t.rcmdReasonStyle!=null){if(typeof t.rcmdReasonStyle!="object")throw TypeError(".bilibili.app.card.v1.SmallCoverV9.rcmdReasonStyle: object expected");i.rcmdReasonStyle=u.bilibili.app.card.v1.ReasonStyle.fromObject(t.rcmdReasonStyle)}if(t.up!=null){if(typeof t.up!="object")throw TypeError(".bilibili.app.card.v1.SmallCoverV9.up: object expected");i.up=u.bilibili.app.card.v1.Up.fromObject(t.up)}if(t.leftCoverBadgeStyle!=null){if(typeof t.leftCoverBadgeStyle!="object")throw TypeError(".bilibili.app.card.v1.SmallCoverV9.leftCoverBadgeStyle: object expected");i.leftCoverBadgeStyle=u.bilibili.app.card.v1.ReasonStyle.fromObject(t.leftCoverBadgeStyle)}if(t.leftBottomRcmdReasonStyle!=null){if(typeof t.leftBottomRcmdReasonStyle!="object")throw TypeError(".bilibili.app.card.v1.SmallCoverV9.leftBottomRcmdReasonStyle: object expected");i.leftBottomRcmdReasonStyle=u.bilibili.app.card.v1.ReasonStyle.fromObject(t.leftBottomRcmdReasonStyle)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.base=null,n.coverLeftText_1="",n.coverLeftIcon_1=0,n.coverLeftText_2="",n.coverLeftIcon_2=0,n.coverRightText="",n.coverRightIcon=0,n.canPlay=0,n.rcmdReasonStyle=null,n.up=null,n.leftCoverBadgeStyle=null,n.leftBottomRcmdReasonStyle=null),t.base!=null&&t.hasOwnProperty("base")&&(n.base=u.bilibili.app.card.v1.Base.toObject(t.base,i)),t.coverLeftText_1!=null&&t.hasOwnProperty("coverLeftText_1")&&(n.coverLeftText_1=t.coverLeftText_1),t.coverLeftIcon_1!=null&&t.hasOwnProperty("coverLeftIcon_1")&&(n.coverLeftIcon_1=t.coverLeftIcon_1),t.coverLeftText_2!=null&&t.hasOwnProperty("coverLeftText_2")&&(n.coverLeftText_2=t.coverLeftText_2),t.coverLeftIcon_2!=null&&t.hasOwnProperty("coverLeftIcon_2")&&(n.coverLeftIcon_2=t.coverLeftIcon_2),t.coverRightText!=null&&t.hasOwnProperty("coverRightText")&&(n.coverRightText=t.coverRightText),t.coverRightIcon!=null&&t.hasOwnProperty("coverRightIcon")&&(n.coverRightIcon=t.coverRightIcon),t.canPlay!=null&&t.hasOwnProperty("canPlay")&&(n.canPlay=t.canPlay),t.rcmdReasonStyle!=null&&t.hasOwnProperty("rcmdReasonStyle")&&(n.rcmdReasonStyle=u.bilibili.app.card.v1.ReasonStyle.toObject(t.rcmdReasonStyle,i)),t.up!=null&&t.hasOwnProperty("up")&&(n.up=u.bilibili.app.card.v1.Up.toObject(t.up,i)),t.leftCoverBadgeStyle!=null&&t.hasOwnProperty("leftCoverBadgeStyle")&&(n.leftCoverBadgeStyle=u.bilibili.app.card.v1.ReasonStyle.toObject(t.leftCoverBadgeStyle,i)),t.leftBottomRcmdReasonStyle!=null&&t.hasOwnProperty("leftBottomRcmdReasonStyle")&&(n.leftBottomRcmdReasonStyle=u.bilibili.app.card.v1.ReasonStyle.toObject(t.leftBottomRcmdReasonStyle,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.card.v1.SmallCoverV9"},e}(),c.SmallCoverConvergeV2=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.base=u.bilibili.app.card.v1.Base.decode(t,t.uint32());break}case 2:{o.coverLeftText_1=t.string();break}case 3:{o.coverLeftIcon_1=t.int32();break}case 4:{o.coverLeftText_2=t.string();break}case 5:{o.coverLeftIcon_2=t.int32();break}case 6:{o.coverRightText=t.string();break}case 7:{o.coverRightTopText=t.string();break}case 8:{o.rcmdReasonStyle=u.bilibili.app.card.v1.ReasonStyle.decode(t,t.uint32());break}case 9:{o.rcmdReasonStyleV2=u.bilibili.app.card.v1.ReasonStyle.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.card.v1.SmallCoverConvergeV2)return t;let i=new u.bilibili.app.card.v1.SmallCoverConvergeV2;if(t.base!=null){if(typeof t.base!="object")throw TypeError(".bilibili.app.card.v1.SmallCoverConvergeV2.base: object expected");i.base=u.bilibili.app.card.v1.Base.fromObject(t.base)}if(t.coverLeftText_1!=null&&(i.coverLeftText_1=String(t.coverLeftText_1)),t.coverLeftIcon_1!=null&&(i.coverLeftIcon_1=t.coverLeftIcon_1|0),t.coverLeftText_2!=null&&(i.coverLeftText_2=String(t.coverLeftText_2)),t.coverLeftIcon_2!=null&&(i.coverLeftIcon_2=t.coverLeftIcon_2|0),t.coverRightText!=null&&(i.coverRightText=String(t.coverRightText)),t.coverRightTopText!=null&&(i.coverRightTopText=String(t.coverRightTopText)),t.rcmdReasonStyle!=null){if(typeof t.rcmdReasonStyle!="object")throw TypeError(".bilibili.app.card.v1.SmallCoverConvergeV2.rcmdReasonStyle: object expected");i.rcmdReasonStyle=u.bilibili.app.card.v1.ReasonStyle.fromObject(t.rcmdReasonStyle)}if(t.rcmdReasonStyleV2!=null){if(typeof t.rcmdReasonStyleV2!="object")throw TypeError(".bilibili.app.card.v1.SmallCoverConvergeV2.rcmdReasonStyleV2: object expected");i.rcmdReasonStyleV2=u.bilibili.app.card.v1.ReasonStyle.fromObject(t.rcmdReasonStyleV2)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.base=null,n.coverLeftText_1="",n.coverLeftIcon_1=0,n.coverLeftText_2="",n.coverLeftIcon_2=0,n.coverRightText="",n.coverRightTopText="",n.rcmdReasonStyle=null,n.rcmdReasonStyleV2=null),t.base!=null&&t.hasOwnProperty("base")&&(n.base=u.bilibili.app.card.v1.Base.toObject(t.base,i)),t.coverLeftText_1!=null&&t.hasOwnProperty("coverLeftText_1")&&(n.coverLeftText_1=t.coverLeftText_1),t.coverLeftIcon_1!=null&&t.hasOwnProperty("coverLeftIcon_1")&&(n.coverLeftIcon_1=t.coverLeftIcon_1),t.coverLeftText_2!=null&&t.hasOwnProperty("coverLeftText_2")&&(n.coverLeftText_2=t.coverLeftText_2),t.coverLeftIcon_2!=null&&t.hasOwnProperty("coverLeftIcon_2")&&(n.coverLeftIcon_2=t.coverLeftIcon_2),t.coverRightText!=null&&t.hasOwnProperty("coverRightText")&&(n.coverRightText=t.coverRightText),t.coverRightTopText!=null&&t.hasOwnProperty("coverRightTopText")&&(n.coverRightTopText=t.coverRightTopText),t.rcmdReasonStyle!=null&&t.hasOwnProperty("rcmdReasonStyle")&&(n.rcmdReasonStyle=u.bilibili.app.card.v1.ReasonStyle.toObject(t.rcmdReasonStyle,i)),t.rcmdReasonStyleV2!=null&&t.hasOwnProperty("rcmdReasonStyleV2")&&(n.rcmdReasonStyleV2=u.bilibili.app.card.v1.ReasonStyle.toObject(t.rcmdReasonStyleV2,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.card.v1.SmallCoverConvergeV2"},e}(),c.SmallChannelSpecial=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.base=u.bilibili.app.card.v1.Base.decode(t,t.uint32());break}case 2:{o.bgCover=t.string();break}case 3:{o.desc_1=t.string();break}case 4:{o.desc_2=t.string();break}case 5:{o.badge=t.string();break}case 6:{o.rcmdReasonStyle_2=u.bilibili.app.card.v1.ReasonStyle.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.card.v1.SmallChannelSpecial)return t;let i=new u.bilibili.app.card.v1.SmallChannelSpecial;if(t.base!=null){if(typeof t.base!="object")throw TypeError(".bilibili.app.card.v1.SmallChannelSpecial.base: object expected");i.base=u.bilibili.app.card.v1.Base.fromObject(t.base)}if(t.bgCover!=null&&(i.bgCover=String(t.bgCover)),t.desc_1!=null&&(i.desc_1=String(t.desc_1)),t.desc_2!=null&&(i.desc_2=String(t.desc_2)),t.badge!=null&&(i.badge=String(t.badge)),t.rcmdReasonStyle_2!=null){if(typeof t.rcmdReasonStyle_2!="object")throw TypeError(".bilibili.app.card.v1.SmallChannelSpecial.rcmdReasonStyle_2: object expected");i.rcmdReasonStyle_2=u.bilibili.app.card.v1.ReasonStyle.fromObject(t.rcmdReasonStyle_2)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.base=null,n.bgCover="",n.desc_1="",n.desc_2="",n.badge="",n.rcmdReasonStyle_2=null),t.base!=null&&t.hasOwnProperty("base")&&(n.base=u.bilibili.app.card.v1.Base.toObject(t.base,i)),t.bgCover!=null&&t.hasOwnProperty("bgCover")&&(n.bgCover=t.bgCover),t.desc_1!=null&&t.hasOwnProperty("desc_1")&&(n.desc_1=t.desc_1),t.desc_2!=null&&t.hasOwnProperty("desc_2")&&(n.desc_2=t.desc_2),t.badge!=null&&t.hasOwnProperty("badge")&&(n.badge=t.badge),t.rcmdReasonStyle_2!=null&&t.hasOwnProperty("rcmdReasonStyle_2")&&(n.rcmdReasonStyle_2=u.bilibili.app.card.v1.ReasonStyle.toObject(t.rcmdReasonStyle_2,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.card.v1.SmallChannelSpecial"},e}(),c.SmallCoverV5Ad=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.base=u.bilibili.app.card.v1.Base.decode(t,t.uint32());break}case 2:{o.coverGif=t.string();break}case 3:{o.up=u.bilibili.app.card.v1.Up.decode(t,t.uint32());break}case 4:{o.coverRightText_1=t.string();break}case 5:{o.rightDesc_1=t.string();break}case 6:{o.rightDesc_2=t.string();break}case 7:{o.rcmdReasonStyle=u.bilibili.app.card.v1.ReasonStyle.decode(t,t.uint32());break}case 8:{o.hotwordEntrance=u.bilibili.app.card.v1.HotwordEntrance.decode(t,t.uint32());break}case 9:{o.cornerMarkStyle=u.bilibili.app.card.v1.ReasonStyle.decode(t,t.uint32());break}case 10:{o.rightIcon_1=t.int32();break}case 11:{o.rightIcon_2=t.int32();break}case 12:{o.leftCornerMarkStyle=u.bilibili.app.card.v1.ReasonStyle.decode(t,t.uint32());break}case 13:{o.coverRightTextContentDescription=t.string();break}case 14:{o.rightDesc_1ContentDescription=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.card.v1.SmallCoverV5Ad)return t;let i=new u.bilibili.app.card.v1.SmallCoverV5Ad;if(t.base!=null){if(typeof t.base!="object")throw TypeError(".bilibili.app.card.v1.SmallCoverV5Ad.base: object expected");i.base=u.bilibili.app.card.v1.Base.fromObject(t.base)}if(t.coverGif!=null&&(i.coverGif=String(t.coverGif)),t.up!=null){if(typeof t.up!="object")throw TypeError(".bilibili.app.card.v1.SmallCoverV5Ad.up: object expected");i.up=u.bilibili.app.card.v1.Up.fromObject(t.up)}if(t.coverRightText_1!=null&&(i.coverRightText_1=String(t.coverRightText_1)),t.rightDesc_1!=null&&(i.rightDesc_1=String(t.rightDesc_1)),t.rightDesc_2!=null&&(i.rightDesc_2=String(t.rightDesc_2)),t.rcmdReasonStyle!=null){if(typeof t.rcmdReasonStyle!="object")throw TypeError(".bilibili.app.card.v1.SmallCoverV5Ad.rcmdReasonStyle: object expected");i.rcmdReasonStyle=u.bilibili.app.card.v1.ReasonStyle.fromObject(t.rcmdReasonStyle)}if(t.hotwordEntrance!=null){if(typeof t.hotwordEntrance!="object")throw TypeError(".bilibili.app.card.v1.SmallCoverV5Ad.hotwordEntrance: object expected");i.hotwordEntrance=u.bilibili.app.card.v1.HotwordEntrance.fromObject(t.hotwordEntrance)}if(t.cornerMarkStyle!=null){if(typeof t.cornerMarkStyle!="object")throw TypeError(".bilibili.app.card.v1.SmallCoverV5Ad.cornerMarkStyle: object expected");i.cornerMarkStyle=u.bilibili.app.card.v1.ReasonStyle.fromObject(t.cornerMarkStyle)}if(t.rightIcon_1!=null&&(i.rightIcon_1=t.rightIcon_1|0),t.rightIcon_2!=null&&(i.rightIcon_2=t.rightIcon_2|0),t.leftCornerMarkStyle!=null){if(typeof t.leftCornerMarkStyle!="object")throw TypeError(".bilibili.app.card.v1.SmallCoverV5Ad.leftCornerMarkStyle: object expected");i.leftCornerMarkStyle=u.bilibili.app.card.v1.ReasonStyle.fromObject(t.leftCornerMarkStyle)}return t.coverRightTextContentDescription!=null&&(i.coverRightTextContentDescription=String(t.coverRightTextContentDescription)),t.rightDesc_1ContentDescription!=null&&(i.rightDesc_1ContentDescription=String(t.rightDesc_1ContentDescription)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.base=null,n.coverGif="",n.up=null,n.coverRightText_1="",n.rightDesc_1="",n.rightDesc_2="",n.rcmdReasonStyle=null,n.hotwordEntrance=null,n.cornerMarkStyle=null,n.rightIcon_1=0,n.rightIcon_2=0,n.leftCornerMarkStyle=null,n.coverRightTextContentDescription="",n.rightDesc_1ContentDescription=""),t.base!=null&&t.hasOwnProperty("base")&&(n.base=u.bilibili.app.card.v1.Base.toObject(t.base,i)),t.coverGif!=null&&t.hasOwnProperty("coverGif")&&(n.coverGif=t.coverGif),t.up!=null&&t.hasOwnProperty("up")&&(n.up=u.bilibili.app.card.v1.Up.toObject(t.up,i)),t.coverRightText_1!=null&&t.hasOwnProperty("coverRightText_1")&&(n.coverRightText_1=t.coverRightText_1),t.rightDesc_1!=null&&t.hasOwnProperty("rightDesc_1")&&(n.rightDesc_1=t.rightDesc_1),t.rightDesc_2!=null&&t.hasOwnProperty("rightDesc_2")&&(n.rightDesc_2=t.rightDesc_2),t.rcmdReasonStyle!=null&&t.hasOwnProperty("rcmdReasonStyle")&&(n.rcmdReasonStyle=u.bilibili.app.card.v1.ReasonStyle.toObject(t.rcmdReasonStyle,i)),t.hotwordEntrance!=null&&t.hasOwnProperty("hotwordEntrance")&&(n.hotwordEntrance=u.bilibili.app.card.v1.HotwordEntrance.toObject(t.hotwordEntrance,i)),t.cornerMarkStyle!=null&&t.hasOwnProperty("cornerMarkStyle")&&(n.cornerMarkStyle=u.bilibili.app.card.v1.ReasonStyle.toObject(t.cornerMarkStyle,i)),t.rightIcon_1!=null&&t.hasOwnProperty("rightIcon_1")&&(n.rightIcon_1=t.rightIcon_1),t.rightIcon_2!=null&&t.hasOwnProperty("rightIcon_2")&&(n.rightIcon_2=t.rightIcon_2),t.leftCornerMarkStyle!=null&&t.hasOwnProperty("leftCornerMarkStyle")&&(n.leftCornerMarkStyle=u.bilibili.app.card.v1.ReasonStyle.toObject(t.leftCornerMarkStyle,i)),t.coverRightTextContentDescription!=null&&t.hasOwnProperty("coverRightTextContentDescription")&&(n.coverRightTextContentDescription=t.coverRightTextContentDescription),t.rightDesc_1ContentDescription!=null&&t.hasOwnProperty("rightDesc_1ContentDescription")&&(n.rightDesc_1ContentDescription=t.rightDesc_1ContentDescription),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.card.v1.SmallCoverV5Ad"},e}(),c.SmallCoverV5=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.base=u.bilibili.app.card.v1.Base.decode(t,t.uint32());break}case 2:{o.coverGif=t.string();break}case 3:{o.up=u.bilibili.app.card.v1.Up.decode(t,t.uint32());break}case 4:{o.coverRightText_1=t.string();break}case 5:{o.rightDesc_1=t.string();break}case 6:{o.rightDesc_2=t.string();break}case 7:{o.rcmdReasonStyle=u.bilibili.app.card.v1.ReasonStyle.decode(t,t.uint32());break}case 8:{o.hotwordEntrance=u.bilibili.app.card.v1.HotwordEntrance.decode(t,t.uint32());break}case 9:{o.cornerMarkStyle=u.bilibili.app.card.v1.ReasonStyle.decode(t,t.uint32());break}case 10:{o.rightIcon_1=t.int32();break}case 11:{o.rightIcon_2=t.int32();break}case 12:{o.leftCornerMarkStyle=u.bilibili.app.card.v1.ReasonStyle.decode(t,t.uint32());break}case 13:{o.coverRightTextContentDescription=t.string();break}case 14:{o.rightDesc_1ContentDescription=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.card.v1.SmallCoverV5)return t;let i=new u.bilibili.app.card.v1.SmallCoverV5;if(t.base!=null){if(typeof t.base!="object")throw TypeError(".bilibili.app.card.v1.SmallCoverV5.base: object expected");i.base=u.bilibili.app.card.v1.Base.fromObject(t.base)}if(t.coverGif!=null&&(i.coverGif=String(t.coverGif)),t.up!=null){if(typeof t.up!="object")throw TypeError(".bilibili.app.card.v1.SmallCoverV5.up: object expected");i.up=u.bilibili.app.card.v1.Up.fromObject(t.up)}if(t.coverRightText_1!=null&&(i.coverRightText_1=String(t.coverRightText_1)),t.rightDesc_1!=null&&(i.rightDesc_1=String(t.rightDesc_1)),t.rightDesc_2!=null&&(i.rightDesc_2=String(t.rightDesc_2)),t.rcmdReasonStyle!=null){if(typeof t.rcmdReasonStyle!="object")throw TypeError(".bilibili.app.card.v1.SmallCoverV5.rcmdReasonStyle: object expected");i.rcmdReasonStyle=u.bilibili.app.card.v1.ReasonStyle.fromObject(t.rcmdReasonStyle)}if(t.hotwordEntrance!=null){if(typeof t.hotwordEntrance!="object")throw TypeError(".bilibili.app.card.v1.SmallCoverV5.hotwordEntrance: object expected");i.hotwordEntrance=u.bilibili.app.card.v1.HotwordEntrance.fromObject(t.hotwordEntrance)}if(t.cornerMarkStyle!=null){if(typeof t.cornerMarkStyle!="object")throw TypeError(".bilibili.app.card.v1.SmallCoverV5.cornerMarkStyle: object expected");i.cornerMarkStyle=u.bilibili.app.card.v1.ReasonStyle.fromObject(t.cornerMarkStyle)}if(t.rightIcon_1!=null&&(i.rightIcon_1=t.rightIcon_1|0),t.rightIcon_2!=null&&(i.rightIcon_2=t.rightIcon_2|0),t.leftCornerMarkStyle!=null){if(typeof t.leftCornerMarkStyle!="object")throw TypeError(".bilibili.app.card.v1.SmallCoverV5.leftCornerMarkStyle: object expected");i.leftCornerMarkStyle=u.bilibili.app.card.v1.ReasonStyle.fromObject(t.leftCornerMarkStyle)}return t.coverRightTextContentDescription!=null&&(i.coverRightTextContentDescription=String(t.coverRightTextContentDescription)),t.rightDesc_1ContentDescription!=null&&(i.rightDesc_1ContentDescription=String(t.rightDesc_1ContentDescription)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.base=null,n.coverGif="",n.up=null,n.coverRightText_1="",n.rightDesc_1="",n.rightDesc_2="",n.rcmdReasonStyle=null,n.hotwordEntrance=null,n.cornerMarkStyle=null,n.rightIcon_1=0,n.rightIcon_2=0,n.leftCornerMarkStyle=null,n.coverRightTextContentDescription="",n.rightDesc_1ContentDescription=""),t.base!=null&&t.hasOwnProperty("base")&&(n.base=u.bilibili.app.card.v1.Base.toObject(t.base,i)),t.coverGif!=null&&t.hasOwnProperty("coverGif")&&(n.coverGif=t.coverGif),t.up!=null&&t.hasOwnProperty("up")&&(n.up=u.bilibili.app.card.v1.Up.toObject(t.up,i)),t.coverRightText_1!=null&&t.hasOwnProperty("coverRightText_1")&&(n.coverRightText_1=t.coverRightText_1),t.rightDesc_1!=null&&t.hasOwnProperty("rightDesc_1")&&(n.rightDesc_1=t.rightDesc_1),t.rightDesc_2!=null&&t.hasOwnProperty("rightDesc_2")&&(n.rightDesc_2=t.rightDesc_2),t.rcmdReasonStyle!=null&&t.hasOwnProperty("rcmdReasonStyle")&&(n.rcmdReasonStyle=u.bilibili.app.card.v1.ReasonStyle.toObject(t.rcmdReasonStyle,i)),t.hotwordEntrance!=null&&t.hasOwnProperty("hotwordEntrance")&&(n.hotwordEntrance=u.bilibili.app.card.v1.HotwordEntrance.toObject(t.hotwordEntrance,i)),t.cornerMarkStyle!=null&&t.hasOwnProperty("cornerMarkStyle")&&(n.cornerMarkStyle=u.bilibili.app.card.v1.ReasonStyle.toObject(t.cornerMarkStyle,i)),t.rightIcon_1!=null&&t.hasOwnProperty("rightIcon_1")&&(n.rightIcon_1=t.rightIcon_1),t.rightIcon_2!=null&&t.hasOwnProperty("rightIcon_2")&&(n.rightIcon_2=t.rightIcon_2),t.leftCornerMarkStyle!=null&&t.hasOwnProperty("leftCornerMarkStyle")&&(n.leftCornerMarkStyle=u.bilibili.app.card.v1.ReasonStyle.toObject(t.leftCornerMarkStyle,i)),t.coverRightTextContentDescription!=null&&t.hasOwnProperty("coverRightTextContentDescription")&&(n.coverRightTextContentDescription=t.coverRightTextContentDescription),t.rightDesc_1ContentDescription!=null&&t.hasOwnProperty("rightDesc_1ContentDescription")&&(n.rightDesc_1ContentDescription=t.rightDesc_1ContentDescription),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.card.v1.SmallCoverV5"},e}(),c.HotwordEntrance=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.hotwordId=t.int64();break}case 2:{o.hotText=t.string();break}case 3:{o.h5Url=t.string();break}case 4:{o.icon=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.card.v1.HotwordEntrance)return t;let i=new u.bilibili.app.card.v1.HotwordEntrance;return t.hotwordId!=null&&(r.Long?(i.hotwordId=r.Long.fromValue(t.hotwordId)).unsigned=!1:typeof t.hotwordId=="string"?i.hotwordId=parseInt(t.hotwordId,10):typeof t.hotwordId=="number"?i.hotwordId=t.hotwordId:typeof t.hotwordId=="object"&&(i.hotwordId=new r.LongBits(t.hotwordId.low>>>0,t.hotwordId.high>>>0).toNumber())),t.hotText!=null&&(i.hotText=String(t.hotText)),t.h5Url!=null&&(i.h5Url=String(t.h5Url)),t.icon!=null&&(i.icon=String(t.icon)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.hotwordId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.hotwordId=i.longs===String?"0":0;n.hotText="",n.h5Url="",n.icon=""}return t.hotwordId!=null&&t.hasOwnProperty("hotwordId")&&(typeof t.hotwordId=="number"?n.hotwordId=i.longs===String?String(t.hotwordId):t.hotwordId:n.hotwordId=i.longs===String?r.Long.prototype.toString.call(t.hotwordId):i.longs===Number?new r.LongBits(t.hotwordId.low>>>0,t.hotwordId.high>>>0).toNumber():t.hotwordId),t.hotText!=null&&t.hasOwnProperty("hotText")&&(n.hotText=t.hotText),t.h5Url!=null&&t.hasOwnProperty("h5Url")&&(n.h5Url=t.h5Url),t.icon!=null&&t.hasOwnProperty("icon")&&(n.icon=t.icon),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.card.v1.HotwordEntrance"},e}(),c.LargeCoverV1=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.base=u.bilibili.app.card.v1.Base.decode(t,t.uint32());break}case 2:{o.coverGif=t.string();break}case 3:{o.avatar=u.bilibili.app.card.v1.Avatar.decode(t,t.uint32());break}case 4:{o.coverLeftText_1=t.string();break}case 5:{o.coverLeftText_2=t.string();break}case 6:{o.coverLeftText_3=t.string();break}case 7:{o.coverBadge=t.string();break}case 8:{o.topRcmdReason=t.string();break}case 9:{o.bottomRcmdReason=t.string();break}case 10:{o.desc=t.string();break}case 11:{o.officialIcon=t.int32();break}case 12:{o.canPlay=t.int32();break}case 13:{o.topRcmdReasonStyle=u.bilibili.app.card.v1.ReasonStyle.decode(t,t.uint32());break}case 14:{o.bottomRcmdReasonStyle=u.bilibili.app.card.v1.ReasonStyle.decode(t,t.uint32());break}case 15:{o.rcmdReasonStyleV2=u.bilibili.app.card.v1.ReasonStyle.decode(t,t.uint32());break}case 16:{o.leftCoverBadgeStyle=u.bilibili.app.card.v1.ReasonStyle.decode(t,t.uint32());break}case 17:{o.rightCoverBadgeStyle=u.bilibili.app.card.v1.ReasonStyle.decode(t,t.uint32());break}case 18:{o.coverBadge_2=t.string();break}case 19:{o.likeButton=u.bilibili.app.card.v1.LikeButton.decode(t,t.uint32());break}case 20:{o.titleSingleLine=t.int32();break}case 21:{o.coverRightText=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.card.v1.LargeCoverV1)return t;let i=new u.bilibili.app.card.v1.LargeCoverV1;if(t.base!=null){if(typeof t.base!="object")throw TypeError(".bilibili.app.card.v1.LargeCoverV1.base: object expected");i.base=u.bilibili.app.card.v1.Base.fromObject(t.base)}if(t.coverGif!=null&&(i.coverGif=String(t.coverGif)),t.avatar!=null){if(typeof t.avatar!="object")throw TypeError(".bilibili.app.card.v1.LargeCoverV1.avatar: object expected");i.avatar=u.bilibili.app.card.v1.Avatar.fromObject(t.avatar)}if(t.coverLeftText_1!=null&&(i.coverLeftText_1=String(t.coverLeftText_1)),t.coverLeftText_2!=null&&(i.coverLeftText_2=String(t.coverLeftText_2)),t.coverLeftText_3!=null&&(i.coverLeftText_3=String(t.coverLeftText_3)),t.coverBadge!=null&&(i.coverBadge=String(t.coverBadge)),t.topRcmdReason!=null&&(i.topRcmdReason=String(t.topRcmdReason)),t.bottomRcmdReason!=null&&(i.bottomRcmdReason=String(t.bottomRcmdReason)),t.desc!=null&&(i.desc=String(t.desc)),t.officialIcon!=null&&(i.officialIcon=t.officialIcon|0),t.canPlay!=null&&(i.canPlay=t.canPlay|0),t.topRcmdReasonStyle!=null){if(typeof t.topRcmdReasonStyle!="object")throw TypeError(".bilibili.app.card.v1.LargeCoverV1.topRcmdReasonStyle: object expected");i.topRcmdReasonStyle=u.bilibili.app.card.v1.ReasonStyle.fromObject(t.topRcmdReasonStyle)}if(t.bottomRcmdReasonStyle!=null){if(typeof t.bottomRcmdReasonStyle!="object")throw TypeError(".bilibili.app.card.v1.LargeCoverV1.bottomRcmdReasonStyle: object expected");i.bottomRcmdReasonStyle=u.bilibili.app.card.v1.ReasonStyle.fromObject(t.bottomRcmdReasonStyle)}if(t.rcmdReasonStyleV2!=null){if(typeof t.rcmdReasonStyleV2!="object")throw TypeError(".bilibili.app.card.v1.LargeCoverV1.rcmdReasonStyleV2: object expected");i.rcmdReasonStyleV2=u.bilibili.app.card.v1.ReasonStyle.fromObject(t.rcmdReasonStyleV2)}if(t.leftCoverBadgeStyle!=null){if(typeof t.leftCoverBadgeStyle!="object")throw TypeError(".bilibili.app.card.v1.LargeCoverV1.leftCoverBadgeStyle: object expected");i.leftCoverBadgeStyle=u.bilibili.app.card.v1.ReasonStyle.fromObject(t.leftCoverBadgeStyle)}if(t.rightCoverBadgeStyle!=null){if(typeof t.rightCoverBadgeStyle!="object")throw TypeError(".bilibili.app.card.v1.LargeCoverV1.rightCoverBadgeStyle: object expected");i.rightCoverBadgeStyle=u.bilibili.app.card.v1.ReasonStyle.fromObject(t.rightCoverBadgeStyle)}if(t.coverBadge_2!=null&&(i.coverBadge_2=String(t.coverBadge_2)),t.likeButton!=null){if(typeof t.likeButton!="object")throw TypeError(".bilibili.app.card.v1.LargeCoverV1.likeButton: object expected");i.likeButton=u.bilibili.app.card.v1.LikeButton.fromObject(t.likeButton)}return t.titleSingleLine!=null&&(i.titleSingleLine=t.titleSingleLine|0),t.coverRightText!=null&&(i.coverRightText=String(t.coverRightText)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.base=null,n.coverGif="",n.avatar=null,n.coverLeftText_1="",n.coverLeftText_2="",n.coverLeftText_3="",n.coverBadge="",n.topRcmdReason="",n.bottomRcmdReason="",n.desc="",n.officialIcon=0,n.canPlay=0,n.topRcmdReasonStyle=null,n.bottomRcmdReasonStyle=null,n.rcmdReasonStyleV2=null,n.leftCoverBadgeStyle=null,n.rightCoverBadgeStyle=null,n.coverBadge_2="",n.likeButton=null,n.titleSingleLine=0,n.coverRightText=""),t.base!=null&&t.hasOwnProperty("base")&&(n.base=u.bilibili.app.card.v1.Base.toObject(t.base,i)),t.coverGif!=null&&t.hasOwnProperty("coverGif")&&(n.coverGif=t.coverGif),t.avatar!=null&&t.hasOwnProperty("avatar")&&(n.avatar=u.bilibili.app.card.v1.Avatar.toObject(t.avatar,i)),t.coverLeftText_1!=null&&t.hasOwnProperty("coverLeftText_1")&&(n.coverLeftText_1=t.coverLeftText_1),t.coverLeftText_2!=null&&t.hasOwnProperty("coverLeftText_2")&&(n.coverLeftText_2=t.coverLeftText_2),t.coverLeftText_3!=null&&t.hasOwnProperty("coverLeftText_3")&&(n.coverLeftText_3=t.coverLeftText_3),t.coverBadge!=null&&t.hasOwnProperty("coverBadge")&&(n.coverBadge=t.coverBadge),t.topRcmdReason!=null&&t.hasOwnProperty("topRcmdReason")&&(n.topRcmdReason=t.topRcmdReason),t.bottomRcmdReason!=null&&t.hasOwnProperty("bottomRcmdReason")&&(n.bottomRcmdReason=t.bottomRcmdReason),t.desc!=null&&t.hasOwnProperty("desc")&&(n.desc=t.desc),t.officialIcon!=null&&t.hasOwnProperty("officialIcon")&&(n.officialIcon=t.officialIcon),t.canPlay!=null&&t.hasOwnProperty("canPlay")&&(n.canPlay=t.canPlay),t.topRcmdReasonStyle!=null&&t.hasOwnProperty("topRcmdReasonStyle")&&(n.topRcmdReasonStyle=u.bilibili.app.card.v1.ReasonStyle.toObject(t.topRcmdReasonStyle,i)),t.bottomRcmdReasonStyle!=null&&t.hasOwnProperty("bottomRcmdReasonStyle")&&(n.bottomRcmdReasonStyle=u.bilibili.app.card.v1.ReasonStyle.toObject(t.bottomRcmdReasonStyle,i)),t.rcmdReasonStyleV2!=null&&t.hasOwnProperty("rcmdReasonStyleV2")&&(n.rcmdReasonStyleV2=u.bilibili.app.card.v1.ReasonStyle.toObject(t.rcmdReasonStyleV2,i)),t.leftCoverBadgeStyle!=null&&t.hasOwnProperty("leftCoverBadgeStyle")&&(n.leftCoverBadgeStyle=u.bilibili.app.card.v1.ReasonStyle.toObject(t.leftCoverBadgeStyle,i)),t.rightCoverBadgeStyle!=null&&t.hasOwnProperty("rightCoverBadgeStyle")&&(n.rightCoverBadgeStyle=u.bilibili.app.card.v1.ReasonStyle.toObject(t.rightCoverBadgeStyle,i)),t.coverBadge_2!=null&&t.hasOwnProperty("coverBadge_2")&&(n.coverBadge_2=t.coverBadge_2),t.likeButton!=null&&t.hasOwnProperty("likeButton")&&(n.likeButton=u.bilibili.app.card.v1.LikeButton.toObject(t.likeButton,i)),t.titleSingleLine!=null&&t.hasOwnProperty("titleSingleLine")&&(n.titleSingleLine=t.titleSingleLine),t.coverRightText!=null&&t.hasOwnProperty("coverRightText")&&(n.coverRightText=t.coverRightText),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.card.v1.LargeCoverV1"},e}(),c.ThreeItemAllV2=function(){function e(l){if(this.item=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.base=u.bilibili.app.card.v1.Base.decode(t,t.uint32());break}case 2:{o.topRcmdReasonStyle=u.bilibili.app.card.v1.ReasonStyle.decode(t,t.uint32());break}case 3:{o.item&&o.item.length||(o.item=[]),o.item.push(u.bilibili.app.card.v1.TwoItemHV1Item.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.card.v1.ThreeItemAllV2)return t;let i=new u.bilibili.app.card.v1.ThreeItemAllV2;if(t.base!=null){if(typeof t.base!="object")throw TypeError(".bilibili.app.card.v1.ThreeItemAllV2.base: object expected");i.base=u.bilibili.app.card.v1.Base.fromObject(t.base)}if(t.topRcmdReasonStyle!=null){if(typeof t.topRcmdReasonStyle!="object")throw TypeError(".bilibili.app.card.v1.ThreeItemAllV2.topRcmdReasonStyle: object expected");i.topRcmdReasonStyle=u.bilibili.app.card.v1.ReasonStyle.fromObject(t.topRcmdReasonStyle)}if(t.item){if(!Array.isArray(t.item))throw TypeError(".bilibili.app.card.v1.ThreeItemAllV2.item: array expected");i.item=[];for(let n=0;n>>3){case 1:{o.title=t.string();break}case 2:{o.cover=t.string();break}case 3:{o.uri=t.string();break}case 4:{o.param=t.string();break}case 5:{o.args=u.bilibili.app.card.v1.Args.decode(t,t.uint32());break}case 6:{o.goto=t.string();break}case 7:{o.coverLeftText_1=t.string();break}case 8:{o.coverLeftIcon_1=t.int32();break}case 9:{o.coverRightText=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.card.v1.TwoItemHV1Item)return t;let i=new u.bilibili.app.card.v1.TwoItemHV1Item;if(t.title!=null&&(i.title=String(t.title)),t.cover!=null&&(i.cover=String(t.cover)),t.uri!=null&&(i.uri=String(t.uri)),t.param!=null&&(i.param=String(t.param)),t.args!=null){if(typeof t.args!="object")throw TypeError(".bilibili.app.card.v1.TwoItemHV1Item.args: object expected");i.args=u.bilibili.app.card.v1.Args.fromObject(t.args)}return t.goto!=null&&(i.goto=String(t.goto)),t.coverLeftText_1!=null&&(i.coverLeftText_1=String(t.coverLeftText_1)),t.coverLeftIcon_1!=null&&(i.coverLeftIcon_1=t.coverLeftIcon_1|0),t.coverRightText!=null&&(i.coverRightText=String(t.coverRightText)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.title="",n.cover="",n.uri="",n.param="",n.args=null,n.goto="",n.coverLeftText_1="",n.coverLeftIcon_1=0,n.coverRightText=""),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.cover!=null&&t.hasOwnProperty("cover")&&(n.cover=t.cover),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),t.param!=null&&t.hasOwnProperty("param")&&(n.param=t.param),t.args!=null&&t.hasOwnProperty("args")&&(n.args=u.bilibili.app.card.v1.Args.toObject(t.args,i)),t.goto!=null&&t.hasOwnProperty("goto")&&(n.goto=t.goto),t.coverLeftText_1!=null&&t.hasOwnProperty("coverLeftText_1")&&(n.coverLeftText_1=t.coverLeftText_1),t.coverLeftIcon_1!=null&&t.hasOwnProperty("coverLeftIcon_1")&&(n.coverLeftIcon_1=t.coverLeftIcon_1),t.coverRightText!=null&&t.hasOwnProperty("coverRightText")&&(n.coverRightText=t.coverRightText),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.card.v1.TwoItemHV1Item"},e}(),c.RcmdOneItem=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.base=u.bilibili.app.card.v1.Base.decode(t,t.uint32());break}case 2:{o.topRcmdReasonStyle=u.bilibili.app.card.v1.ReasonStyle.decode(t,t.uint32());break}case 3:{o.item=u.bilibili.app.card.v1.SmallCoverRcmdItem.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.card.v1.RcmdOneItem)return t;let i=new u.bilibili.app.card.v1.RcmdOneItem;if(t.base!=null){if(typeof t.base!="object")throw TypeError(".bilibili.app.card.v1.RcmdOneItem.base: object expected");i.base=u.bilibili.app.card.v1.Base.fromObject(t.base)}if(t.topRcmdReasonStyle!=null){if(typeof t.topRcmdReasonStyle!="object")throw TypeError(".bilibili.app.card.v1.RcmdOneItem.topRcmdReasonStyle: object expected");i.topRcmdReasonStyle=u.bilibili.app.card.v1.ReasonStyle.fromObject(t.topRcmdReasonStyle)}if(t.item!=null){if(typeof t.item!="object")throw TypeError(".bilibili.app.card.v1.RcmdOneItem.item: object expected");i.item=u.bilibili.app.card.v1.SmallCoverRcmdItem.fromObject(t.item)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.base=null,n.topRcmdReasonStyle=null,n.item=null),t.base!=null&&t.hasOwnProperty("base")&&(n.base=u.bilibili.app.card.v1.Base.toObject(t.base,i)),t.topRcmdReasonStyle!=null&&t.hasOwnProperty("topRcmdReasonStyle")&&(n.topRcmdReasonStyle=u.bilibili.app.card.v1.ReasonStyle.toObject(t.topRcmdReasonStyle,i)),t.item!=null&&t.hasOwnProperty("item")&&(n.item=u.bilibili.app.card.v1.SmallCoverRcmdItem.toObject(t.item,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.card.v1.RcmdOneItem"},e}(),c.SmallCoverRcmdItem=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.cover=t.string();break}case 3:{o.uri=t.string();break}case 4:{o.param=t.string();break}case 5:{o.goto=t.string();break}case 6:{o.coverRightText_1=t.string();break}case 7:{o.rightDesc_1=t.string();break}case 8:{o.rightDesc_2=t.string();break}case 9:{o.coverGif=t.string();break}case 10:{o.rightIcon_1=t.int32();break}case 11:{o.rightIcon_2=t.int32();break}case 12:{o.coverRightTextContentDescription=t.string();break}case 13:{o.rightDesc_1ContentDescription=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.card.v1.SmallCoverRcmdItem)return t;let i=new u.bilibili.app.card.v1.SmallCoverRcmdItem;return t.title!=null&&(i.title=String(t.title)),t.cover!=null&&(i.cover=String(t.cover)),t.uri!=null&&(i.uri=String(t.uri)),t.param!=null&&(i.param=String(t.param)),t.goto!=null&&(i.goto=String(t.goto)),t.coverRightText_1!=null&&(i.coverRightText_1=String(t.coverRightText_1)),t.rightDesc_1!=null&&(i.rightDesc_1=String(t.rightDesc_1)),t.rightDesc_2!=null&&(i.rightDesc_2=String(t.rightDesc_2)),t.coverGif!=null&&(i.coverGif=String(t.coverGif)),t.rightIcon_1!=null&&(i.rightIcon_1=t.rightIcon_1|0),t.rightIcon_2!=null&&(i.rightIcon_2=t.rightIcon_2|0),t.coverRightTextContentDescription!=null&&(i.coverRightTextContentDescription=String(t.coverRightTextContentDescription)),t.rightDesc_1ContentDescription!=null&&(i.rightDesc_1ContentDescription=String(t.rightDesc_1ContentDescription)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.title="",n.cover="",n.uri="",n.param="",n.goto="",n.coverRightText_1="",n.rightDesc_1="",n.rightDesc_2="",n.coverGif="",n.rightIcon_1=0,n.rightIcon_2=0,n.coverRightTextContentDescription="",n.rightDesc_1ContentDescription=""),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.cover!=null&&t.hasOwnProperty("cover")&&(n.cover=t.cover),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),t.param!=null&&t.hasOwnProperty("param")&&(n.param=t.param),t.goto!=null&&t.hasOwnProperty("goto")&&(n.goto=t.goto),t.coverRightText_1!=null&&t.hasOwnProperty("coverRightText_1")&&(n.coverRightText_1=t.coverRightText_1),t.rightDesc_1!=null&&t.hasOwnProperty("rightDesc_1")&&(n.rightDesc_1=t.rightDesc_1),t.rightDesc_2!=null&&t.hasOwnProperty("rightDesc_2")&&(n.rightDesc_2=t.rightDesc_2),t.coverGif!=null&&t.hasOwnProperty("coverGif")&&(n.coverGif=t.coverGif),t.rightIcon_1!=null&&t.hasOwnProperty("rightIcon_1")&&(n.rightIcon_1=t.rightIcon_1),t.rightIcon_2!=null&&t.hasOwnProperty("rightIcon_2")&&(n.rightIcon_2=t.rightIcon_2),t.coverRightTextContentDescription!=null&&t.hasOwnProperty("coverRightTextContentDescription")&&(n.coverRightTextContentDescription=t.coverRightTextContentDescription),t.rightDesc_1ContentDescription!=null&&t.hasOwnProperty("rightDesc_1ContentDescription")&&(n.rightDesc_1ContentDescription=t.rightDesc_1ContentDescription),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.card.v1.SmallCoverRcmdItem"},e}(),c.ThreeItemV1=function(){function e(l){if(this.items=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.base=u.bilibili.app.card.v1.Base.decode(t,t.uint32());break}case 2:{o.titleIcon=t.int32();break}case 3:{o.moreUri=t.string();break}case 4:{o.moreText=t.string();break}case 5:{o.items&&o.items.length||(o.items=[]),o.items.push(u.bilibili.app.card.v1.ThreeItemV1Item.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.card.v1.ThreeItemV1)return t;let i=new u.bilibili.app.card.v1.ThreeItemV1;if(t.base!=null){if(typeof t.base!="object")throw TypeError(".bilibili.app.card.v1.ThreeItemV1.base: object expected");i.base=u.bilibili.app.card.v1.Base.fromObject(t.base)}if(t.titleIcon!=null&&(i.titleIcon=t.titleIcon|0),t.moreUri!=null&&(i.moreUri=String(t.moreUri)),t.moreText!=null&&(i.moreText=String(t.moreText)),t.items){if(!Array.isArray(t.items))throw TypeError(".bilibili.app.card.v1.ThreeItemV1.items: array expected");i.items=[];for(let n=0;n>>3){case 1:{o.base=u.bilibili.app.card.v1.Base.decode(t,t.uint32());break}case 2:{o.coverLeftText=t.string();break}case 3:{o.coverLeftIcon=t.int32();break}case 4:{o.desc_1=t.string();break}case 5:{o.desc_2=t.string();break}case 6:{o.badge=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.card.v1.ThreeItemV1Item)return t;let i=new u.bilibili.app.card.v1.ThreeItemV1Item;if(t.base!=null){if(typeof t.base!="object")throw TypeError(".bilibili.app.card.v1.ThreeItemV1Item.base: object expected");i.base=u.bilibili.app.card.v1.Base.fromObject(t.base)}return t.coverLeftText!=null&&(i.coverLeftText=String(t.coverLeftText)),t.coverLeftIcon!=null&&(i.coverLeftIcon=t.coverLeftIcon|0),t.desc_1!=null&&(i.desc_1=String(t.desc_1)),t.desc_2!=null&&(i.desc_2=String(t.desc_2)),t.badge!=null&&(i.badge=String(t.badge)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.base=null,n.coverLeftText="",n.coverLeftIcon=0,n.desc_1="",n.desc_2="",n.badge=""),t.base!=null&&t.hasOwnProperty("base")&&(n.base=u.bilibili.app.card.v1.Base.toObject(t.base,i)),t.coverLeftText!=null&&t.hasOwnProperty("coverLeftText")&&(n.coverLeftText=t.coverLeftText),t.coverLeftIcon!=null&&t.hasOwnProperty("coverLeftIcon")&&(n.coverLeftIcon=t.coverLeftIcon),t.desc_1!=null&&t.hasOwnProperty("desc_1")&&(n.desc_1=t.desc_1),t.desc_2!=null&&t.hasOwnProperty("desc_2")&&(n.desc_2=t.desc_2),t.badge!=null&&t.hasOwnProperty("badge")&&(n.badge=t.badge),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.card.v1.ThreeItemV1Item"},e}(),c.HotTopic=function(){function e(l){if(this.items=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.base=u.bilibili.app.card.v1.Base.decode(t,t.uint32());break}case 2:{o.desc=t.string();break}case 3:{o.items&&o.items.length||(o.items=[]),o.items.push(u.bilibili.app.card.v1.HotTopicItem.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.card.v1.HotTopic)return t;let i=new u.bilibili.app.card.v1.HotTopic;if(t.base!=null){if(typeof t.base!="object")throw TypeError(".bilibili.app.card.v1.HotTopic.base: object expected");i.base=u.bilibili.app.card.v1.Base.fromObject(t.base)}if(t.desc!=null&&(i.desc=String(t.desc)),t.items){if(!Array.isArray(t.items))throw TypeError(".bilibili.app.card.v1.HotTopic.items: array expected");i.items=[];for(let n=0;n>>3){case 1:{o.cover=t.string();break}case 2:{o.uri=t.string();break}case 3:{o.param=t.string();break}case 4:{o.name=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.card.v1.HotTopicItem)return t;let i=new u.bilibili.app.card.v1.HotTopicItem;return t.cover!=null&&(i.cover=String(t.cover)),t.uri!=null&&(i.uri=String(t.uri)),t.param!=null&&(i.param=String(t.param)),t.name!=null&&(i.name=String(t.name)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.cover="",n.uri="",n.param="",n.name=""),t.cover!=null&&t.hasOwnProperty("cover")&&(n.cover=t.cover),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),t.param!=null&&t.hasOwnProperty("param")&&(n.param=t.param),t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.card.v1.HotTopicItem"},e}(),c.DynamicHot=function(){function e(l){if(this.covers=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.base=u.bilibili.app.card.v1.Base.decode(t,t.uint32());break}case 2:{o.topLeftTitle=t.string();break}case 3:{o.desc1=t.string();break}case 4:{o.desc2=t.string();break}case 5:{o.moreUri=t.string();break}case 6:{o.moreText=t.string();break}case 7:{o.covers&&o.covers.length||(o.covers=[]),o.covers.push(t.string());break}case 8:{o.coverRightText=t.string();break}case 9:{o.topRcmdReasonStyle=u.bilibili.app.card.v1.ReasonStyle.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.card.v1.DynamicHot)return t;let i=new u.bilibili.app.card.v1.DynamicHot;if(t.base!=null){if(typeof t.base!="object")throw TypeError(".bilibili.app.card.v1.DynamicHot.base: object expected");i.base=u.bilibili.app.card.v1.Base.fromObject(t.base)}if(t.topLeftTitle!=null&&(i.topLeftTitle=String(t.topLeftTitle)),t.desc1!=null&&(i.desc1=String(t.desc1)),t.desc2!=null&&(i.desc2=String(t.desc2)),t.moreUri!=null&&(i.moreUri=String(t.moreUri)),t.moreText!=null&&(i.moreText=String(t.moreText)),t.covers){if(!Array.isArray(t.covers))throw TypeError(".bilibili.app.card.v1.DynamicHot.covers: array expected");i.covers=[];for(let n=0;n>>3){case 1:{o.base=u.bilibili.app.card.v1.Base.decode(t,t.uint32());break}case 2:{o.desc1=t.string();break}case 3:{o.desc2=t.string();break}case 4:{o.coverBadgeStyle=u.bilibili.app.card.v1.ReasonStyle.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.card.v1.MiddleCoverV3)return t;let i=new u.bilibili.app.card.v1.MiddleCoverV3;if(t.base!=null){if(typeof t.base!="object")throw TypeError(".bilibili.app.card.v1.MiddleCoverV3.base: object expected");i.base=u.bilibili.app.card.v1.Base.fromObject(t.base)}if(t.desc1!=null&&(i.desc1=String(t.desc1)),t.desc2!=null&&(i.desc2=String(t.desc2)),t.coverBadgeStyle!=null){if(typeof t.coverBadgeStyle!="object")throw TypeError(".bilibili.app.card.v1.MiddleCoverV3.coverBadgeStyle: object expected");i.coverBadgeStyle=u.bilibili.app.card.v1.ReasonStyle.fromObject(t.coverBadgeStyle)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.base=null,n.desc1="",n.desc2="",n.coverBadgeStyle=null),t.base!=null&&t.hasOwnProperty("base")&&(n.base=u.bilibili.app.card.v1.Base.toObject(t.base,i)),t.desc1!=null&&t.hasOwnProperty("desc1")&&(n.desc1=t.desc1),t.desc2!=null&&t.hasOwnProperty("desc2")&&(n.desc2=t.desc2),t.coverBadgeStyle!=null&&t.hasOwnProperty("coverBadgeStyle")&&(n.coverBadgeStyle=u.bilibili.app.card.v1.ReasonStyle.toObject(t.coverBadgeStyle,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.card.v1.MiddleCoverV3"},e}(),c.LargeCoverV4=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.base=u.bilibili.app.card.v1.Base.decode(t,t.uint32());break}case 2:{o.coverLeftText_1=t.string();break}case 3:{o.coverLeftText_2=t.string();break}case 4:{o.coverLeftText_3=t.string();break}case 5:{o.coverBadge=t.string();break}case 6:{o.canPlay=t.int32();break}case 7:{o.up=u.bilibili.app.card.v1.Up.decode(t,t.uint32());break}case 8:{o.shortLink=t.string();break}case 9:{o.shareSubtitle=t.string();break}case 10:{o.playNumber=t.string();break}case 11:{o.bvid=t.string();break}case 12:{o.subParam=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.card.v1.LargeCoverV4)return t;let i=new u.bilibili.app.card.v1.LargeCoverV4;if(t.base!=null){if(typeof t.base!="object")throw TypeError(".bilibili.app.card.v1.LargeCoverV4.base: object expected");i.base=u.bilibili.app.card.v1.Base.fromObject(t.base)}if(t.coverLeftText_1!=null&&(i.coverLeftText_1=String(t.coverLeftText_1)),t.coverLeftText_2!=null&&(i.coverLeftText_2=String(t.coverLeftText_2)),t.coverLeftText_3!=null&&(i.coverLeftText_3=String(t.coverLeftText_3)),t.coverBadge!=null&&(i.coverBadge=String(t.coverBadge)),t.canPlay!=null&&(i.canPlay=t.canPlay|0),t.up!=null){if(typeof t.up!="object")throw TypeError(".bilibili.app.card.v1.LargeCoverV4.up: object expected");i.up=u.bilibili.app.card.v1.Up.fromObject(t.up)}return t.shortLink!=null&&(i.shortLink=String(t.shortLink)),t.shareSubtitle!=null&&(i.shareSubtitle=String(t.shareSubtitle)),t.playNumber!=null&&(i.playNumber=String(t.playNumber)),t.bvid!=null&&(i.bvid=String(t.bvid)),t.subParam!=null&&(i.subParam=String(t.subParam)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.base=null,n.coverLeftText_1="",n.coverLeftText_2="",n.coverLeftText_3="",n.coverBadge="",n.canPlay=0,n.up=null,n.shortLink="",n.shareSubtitle="",n.playNumber="",n.bvid="",n.subParam=""),t.base!=null&&t.hasOwnProperty("base")&&(n.base=u.bilibili.app.card.v1.Base.toObject(t.base,i)),t.coverLeftText_1!=null&&t.hasOwnProperty("coverLeftText_1")&&(n.coverLeftText_1=t.coverLeftText_1),t.coverLeftText_2!=null&&t.hasOwnProperty("coverLeftText_2")&&(n.coverLeftText_2=t.coverLeftText_2),t.coverLeftText_3!=null&&t.hasOwnProperty("coverLeftText_3")&&(n.coverLeftText_3=t.coverLeftText_3),t.coverBadge!=null&&t.hasOwnProperty("coverBadge")&&(n.coverBadge=t.coverBadge),t.canPlay!=null&&t.hasOwnProperty("canPlay")&&(n.canPlay=t.canPlay),t.up!=null&&t.hasOwnProperty("up")&&(n.up=u.bilibili.app.card.v1.Up.toObject(t.up,i)),t.shortLink!=null&&t.hasOwnProperty("shortLink")&&(n.shortLink=t.shortLink),t.shareSubtitle!=null&&t.hasOwnProperty("shareSubtitle")&&(n.shareSubtitle=t.shareSubtitle),t.playNumber!=null&&t.hasOwnProperty("playNumber")&&(n.playNumber=t.playNumber),t.bvid!=null&&t.hasOwnProperty("bvid")&&(n.bvid=t.bvid),t.subParam!=null&&t.hasOwnProperty("subParam")&&(n.subParam=t.subParam),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.card.v1.LargeCoverV4"},e}(),c.PopularTopEntrance=function(){function e(l){if(this.items=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.base=u.bilibili.app.card.v1.Base.decode(t,t.uint32());break}case 2:{o.items&&o.items.length||(o.items=[]),o.items.push(u.bilibili.app.card.v1.EntranceItem.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.card.v1.PopularTopEntrance)return t;let i=new u.bilibili.app.card.v1.PopularTopEntrance;if(t.base!=null){if(typeof t.base!="object")throw TypeError(".bilibili.app.card.v1.PopularTopEntrance.base: object expected");i.base=u.bilibili.app.card.v1.Base.fromObject(t.base)}if(t.items){if(!Array.isArray(t.items))throw TypeError(".bilibili.app.card.v1.PopularTopEntrance.items: array expected");i.items=[];for(let n=0;n>>3){case 1:{o.goto=t.string();break}case 2:{o.icon=t.string();break}case 3:{o.title=t.string();break}case 4:{o.moduleId=t.string();break}case 5:{o.uri=t.string();break}case 6:{o.entranceId=t.int64();break}case 7:{o.bubble=u.bilibili.app.card.v1.Bubble.decode(t,t.uint32());break}case 8:{o.entranceType=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.card.v1.EntranceItem)return t;let i=new u.bilibili.app.card.v1.EntranceItem;if(t.goto!=null&&(i.goto=String(t.goto)),t.icon!=null&&(i.icon=String(t.icon)),t.title!=null&&(i.title=String(t.title)),t.moduleId!=null&&(i.moduleId=String(t.moduleId)),t.uri!=null&&(i.uri=String(t.uri)),t.entranceId!=null&&(r.Long?(i.entranceId=r.Long.fromValue(t.entranceId)).unsigned=!1:typeof t.entranceId=="string"?i.entranceId=parseInt(t.entranceId,10):typeof t.entranceId=="number"?i.entranceId=t.entranceId:typeof t.entranceId=="object"&&(i.entranceId=new r.LongBits(t.entranceId.low>>>0,t.entranceId.high>>>0).toNumber())),t.bubble!=null){if(typeof t.bubble!="object")throw TypeError(".bilibili.app.card.v1.EntranceItem.bubble: object expected");i.bubble=u.bilibili.app.card.v1.Bubble.fromObject(t.bubble)}return t.entranceType!=null&&(i.entranceType=t.entranceType|0),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.goto="",n.icon="",n.title="",n.moduleId="",n.uri="",r.Long){let o=new r.Long(0,0,!1);n.entranceId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.entranceId=i.longs===String?"0":0;n.bubble=null,n.entranceType=0}return t.goto!=null&&t.hasOwnProperty("goto")&&(n.goto=t.goto),t.icon!=null&&t.hasOwnProperty("icon")&&(n.icon=t.icon),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.moduleId!=null&&t.hasOwnProperty("moduleId")&&(n.moduleId=t.moduleId),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),t.entranceId!=null&&t.hasOwnProperty("entranceId")&&(typeof t.entranceId=="number"?n.entranceId=i.longs===String?String(t.entranceId):t.entranceId:n.entranceId=i.longs===String?r.Long.prototype.toString.call(t.entranceId):i.longs===Number?new r.LongBits(t.entranceId.low>>>0,t.entranceId.high>>>0).toNumber():t.entranceId),t.bubble!=null&&t.hasOwnProperty("bubble")&&(n.bubble=u.bilibili.app.card.v1.Bubble.toObject(t.bubble,i)),t.entranceType!=null&&t.hasOwnProperty("entranceType")&&(n.entranceType=t.entranceType),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.card.v1.EntranceItem"},e}(),c.Bubble=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.bubbleContent=t.string();break}case 2:{o.version=t.int32();break}case 3:{o.stime=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.card.v1.Bubble)return t;let i=new u.bilibili.app.card.v1.Bubble;return t.bubbleContent!=null&&(i.bubbleContent=String(t.bubbleContent)),t.version!=null&&(i.version=t.version|0),t.stime!=null&&(r.Long?(i.stime=r.Long.fromValue(t.stime)).unsigned=!1:typeof t.stime=="string"?i.stime=parseInt(t.stime,10):typeof t.stime=="number"?i.stime=t.stime:typeof t.stime=="object"&&(i.stime=new r.LongBits(t.stime.low>>>0,t.stime.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(n.bubbleContent="",n.version=0,r.Long){let o=new r.Long(0,0,!1);n.stime=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.stime=i.longs===String?"0":0;return t.bubbleContent!=null&&t.hasOwnProperty("bubbleContent")&&(n.bubbleContent=t.bubbleContent),t.version!=null&&t.hasOwnProperty("version")&&(n.version=t.version),t.stime!=null&&t.hasOwnProperty("stime")&&(typeof t.stime=="number"?n.stime=i.longs===String?String(t.stime):t.stime:n.stime=i.longs===String?r.Long.prototype.toString.call(t.stime):i.longs===Number?new r.LongBits(t.stime.low>>>0,t.stime.high>>>0).toNumber():t.stime),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.card.v1.Bubble"},e}(),c.TopicList=function(){function e(l){if(this.topicListItem=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.base=u.bilibili.app.card.v1.Base.decode(t,t.uint32());break}case 2:{o.title=t.string();break}case 3:{o.titleIcon=t.string();break}case 4:{o.moreButton=u.bilibili.app.card.v1.TopicButton.decode(t,t.uint32());break}case 5:{o.topicListItem&&o.topicListItem.length||(o.topicListItem=[]),o.topicListItem.push(u.bilibili.app.card.v1.TopicListItem.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.card.v1.TopicList)return t;let i=new u.bilibili.app.card.v1.TopicList;if(t.base!=null){if(typeof t.base!="object")throw TypeError(".bilibili.app.card.v1.TopicList.base: object expected");i.base=u.bilibili.app.card.v1.Base.fromObject(t.base)}if(t.title!=null&&(i.title=String(t.title)),t.titleIcon!=null&&(i.titleIcon=String(t.titleIcon)),t.moreButton!=null){if(typeof t.moreButton!="object")throw TypeError(".bilibili.app.card.v1.TopicList.moreButton: object expected");i.moreButton=u.bilibili.app.card.v1.TopicButton.fromObject(t.moreButton)}if(t.topicListItem){if(!Array.isArray(t.topicListItem))throw TypeError(".bilibili.app.card.v1.TopicList.topicListItem: array expected");i.topicListItem=[];for(let n=0;n>>3){case 1:{o.icon=t.string();break}case 2:{o.iconTitle=t.string();break}case 3:{o.topicId=t.int64();break}case 4:{o.topicName=t.string();break}case 5:{o.url=t.string();break}case 6:{o.upMid=t.int64();break}case 7:{o.position=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.card.v1.TopicListItem)return t;let i=new u.bilibili.app.card.v1.TopicListItem;return t.icon!=null&&(i.icon=String(t.icon)),t.iconTitle!=null&&(i.iconTitle=String(t.iconTitle)),t.topicId!=null&&(r.Long?(i.topicId=r.Long.fromValue(t.topicId)).unsigned=!1:typeof t.topicId=="string"?i.topicId=parseInt(t.topicId,10):typeof t.topicId=="number"?i.topicId=t.topicId:typeof t.topicId=="object"&&(i.topicId=new r.LongBits(t.topicId.low>>>0,t.topicId.high>>>0).toNumber())),t.topicName!=null&&(i.topicName=String(t.topicName)),t.url!=null&&(i.url=String(t.url)),t.upMid!=null&&(r.Long?(i.upMid=r.Long.fromValue(t.upMid)).unsigned=!1:typeof t.upMid=="string"?i.upMid=parseInt(t.upMid,10):typeof t.upMid=="number"?i.upMid=t.upMid:typeof t.upMid=="object"&&(i.upMid=new r.LongBits(t.upMid.low>>>0,t.upMid.high>>>0).toNumber())),t.position!=null&&(r.Long?(i.position=r.Long.fromValue(t.position)).unsigned=!1:typeof t.position=="string"?i.position=parseInt(t.position,10):typeof t.position=="number"?i.position=t.position:typeof t.position=="object"&&(i.position=new r.LongBits(t.position.low>>>0,t.position.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.icon="",n.iconTitle="",r.Long){let o=new r.Long(0,0,!1);n.topicId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.topicId=i.longs===String?"0":0;if(n.topicName="",n.url="",r.Long){let o=new r.Long(0,0,!1);n.upMid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.upMid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.position=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.position=i.longs===String?"0":0}return t.icon!=null&&t.hasOwnProperty("icon")&&(n.icon=t.icon),t.iconTitle!=null&&t.hasOwnProperty("iconTitle")&&(n.iconTitle=t.iconTitle),t.topicId!=null&&t.hasOwnProperty("topicId")&&(typeof t.topicId=="number"?n.topicId=i.longs===String?String(t.topicId):t.topicId:n.topicId=i.longs===String?r.Long.prototype.toString.call(t.topicId):i.longs===Number?new r.LongBits(t.topicId.low>>>0,t.topicId.high>>>0).toNumber():t.topicId),t.topicName!=null&&t.hasOwnProperty("topicName")&&(n.topicName=t.topicName),t.url!=null&&t.hasOwnProperty("url")&&(n.url=t.url),t.upMid!=null&&t.hasOwnProperty("upMid")&&(typeof t.upMid=="number"?n.upMid=i.longs===String?String(t.upMid):t.upMid:n.upMid=i.longs===String?r.Long.prototype.toString.call(t.upMid):i.longs===Number?new r.LongBits(t.upMid.low>>>0,t.upMid.high>>>0).toNumber():t.upMid),t.position!=null&&t.hasOwnProperty("position")&&(typeof t.position=="number"?n.position=i.longs===String?String(t.position):t.position:n.position=i.longs===String?r.Long.prototype.toString.call(t.position):i.longs===Number?new r.LongBits(t.position.low>>>0,t.position.high>>>0).toNumber():t.position),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.card.v1.TopicListItem"},e}(),c.TopicButton=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.jumpUri=t.string();break}case 3:{o.redDot=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.card.v1.TopicButton)return t;let i=new u.bilibili.app.card.v1.TopicButton;return t.title!=null&&(i.title=String(t.title)),t.jumpUri!=null&&(i.jumpUri=String(t.jumpUri)),t.redDot!=null&&(i.redDot=!!t.redDot),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.title="",n.jumpUri="",n.redDot=!1),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.jumpUri!=null&&t.hasOwnProperty("jumpUri")&&(n.jumpUri=t.jumpUri),t.redDot!=null&&t.hasOwnProperty("redDot")&&(n.redDot=t.redDot),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.card.v1.TopicButton"},e}(),c}(),p}(),d.click=function(){let p={};return p.v1=function(){let c={};return c.Click=function(){function e(l,t,i){b.rpc.Service.call(this,l,t,i)}return(e.prototype=Object.create(b.rpc.Service.prototype)).constructor=e,e.create=function(t,i,n){return new this(t,i,n)},Object.defineProperty(e.prototype.heartBeat=function l(t,i){return this.rpcCall(l,u.bilibili.app.click.v1.HeartBeatReq,u.bilibili.app.click.v1.HeartBeatReply,t,i)},"name",{value:"HeartBeat"}),e}(),c.HeartBeatReq=function(){function e(l){if(this.playerStatus=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.sessionV2=t.string();break}case 2:{o.stage=t.int32();break}case 3:{o.streamTimeout=t.int64();break}case 4:{o.batchFrequency=t.int64();break}case 5:{o.frequency=t.float();break}case 6:{o.videoMeta=u.bilibili.app.click.v1.VideoMeta.decode(t,t.uint32());break}case 7:{o.appInfo=u.bilibili.app.click.v1.AppInfo.decode(t,t.uint32());break}case 8:{o.accountInfo=u.bilibili.app.click.v1.AccountInfo.decode(t,t.uint32());break}case 9:{o.preProcessResult=u.bilibili.app.click.v1.PreProcessResult.decode(t,t.uint32());break}case 10:{o.playerStatus&&o.playerStatus.length||(o.playerStatus=[]),o.playerStatus.push(u.bilibili.app.click.v1.PlayerStatus.decode(t,t.uint32()));break}case 11:{o.videoInfo=u.bilibili.app.click.v1.VideoInfo.decode(t,t.uint32());break}case 12:{o.extra=u.bilibili.app.click.v1.Extra.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.click.v1.HeartBeatReq)return t;let i=new u.bilibili.app.click.v1.HeartBeatReq;switch(t.sessionV2!=null&&(i.sessionV2=String(t.sessionV2)),t.stage){default:if(typeof t.stage=="number"){i.stage=t.stage;break}break;case"STAGE_UNKNOWN":case 0:i.stage=0;break;case"START":case 1:i.stage=1;break;case"END":case 2:i.stage=2;break;case"SAMPLE":case 3:i.stage=3;break}if(t.streamTimeout!=null&&(r.Long?(i.streamTimeout=r.Long.fromValue(t.streamTimeout)).unsigned=!1:typeof t.streamTimeout=="string"?i.streamTimeout=parseInt(t.streamTimeout,10):typeof t.streamTimeout=="number"?i.streamTimeout=t.streamTimeout:typeof t.streamTimeout=="object"&&(i.streamTimeout=new r.LongBits(t.streamTimeout.low>>>0,t.streamTimeout.high>>>0).toNumber())),t.batchFrequency!=null&&(r.Long?(i.batchFrequency=r.Long.fromValue(t.batchFrequency)).unsigned=!1:typeof t.batchFrequency=="string"?i.batchFrequency=parseInt(t.batchFrequency,10):typeof t.batchFrequency=="number"?i.batchFrequency=t.batchFrequency:typeof t.batchFrequency=="object"&&(i.batchFrequency=new r.LongBits(t.batchFrequency.low>>>0,t.batchFrequency.high>>>0).toNumber())),t.frequency!=null&&(i.frequency=Number(t.frequency)),t.videoMeta!=null){if(typeof t.videoMeta!="object")throw TypeError(".bilibili.app.click.v1.HeartBeatReq.videoMeta: object expected");i.videoMeta=u.bilibili.app.click.v1.VideoMeta.fromObject(t.videoMeta)}if(t.appInfo!=null){if(typeof t.appInfo!="object")throw TypeError(".bilibili.app.click.v1.HeartBeatReq.appInfo: object expected");i.appInfo=u.bilibili.app.click.v1.AppInfo.fromObject(t.appInfo)}if(t.accountInfo!=null){if(typeof t.accountInfo!="object")throw TypeError(".bilibili.app.click.v1.HeartBeatReq.accountInfo: object expected");i.accountInfo=u.bilibili.app.click.v1.AccountInfo.fromObject(t.accountInfo)}if(t.preProcessResult!=null){if(typeof t.preProcessResult!="object")throw TypeError(".bilibili.app.click.v1.HeartBeatReq.preProcessResult: object expected");i.preProcessResult=u.bilibili.app.click.v1.PreProcessResult.fromObject(t.preProcessResult)}if(t.playerStatus){if(!Array.isArray(t.playerStatus))throw TypeError(".bilibili.app.click.v1.HeartBeatReq.playerStatus: array expected");i.playerStatus=[];for(let n=0;n>>0,t.streamTimeout.high>>>0).toNumber():t.streamTimeout),t.batchFrequency!=null&&t.hasOwnProperty("batchFrequency")&&(typeof t.batchFrequency=="number"?n.batchFrequency=i.longs===String?String(t.batchFrequency):t.batchFrequency:n.batchFrequency=i.longs===String?r.Long.prototype.toString.call(t.batchFrequency):i.longs===Number?new r.LongBits(t.batchFrequency.low>>>0,t.batchFrequency.high>>>0).toNumber():t.batchFrequency),t.frequency!=null&&t.hasOwnProperty("frequency")&&(n.frequency=i.json&&!isFinite(t.frequency)?String(t.frequency):t.frequency),t.videoMeta!=null&&t.hasOwnProperty("videoMeta")&&(n.videoMeta=u.bilibili.app.click.v1.VideoMeta.toObject(t.videoMeta,i)),t.appInfo!=null&&t.hasOwnProperty("appInfo")&&(n.appInfo=u.bilibili.app.click.v1.AppInfo.toObject(t.appInfo,i)),t.accountInfo!=null&&t.hasOwnProperty("accountInfo")&&(n.accountInfo=u.bilibili.app.click.v1.AccountInfo.toObject(t.accountInfo,i)),t.preProcessResult!=null&&t.hasOwnProperty("preProcessResult")&&(n.preProcessResult=u.bilibili.app.click.v1.PreProcessResult.toObject(t.preProcessResult,i)),t.playerStatus&&t.playerStatus.length){n.playerStatus=[];for(let o=0;o>>3){case 1:{o.aid=t.int64();break}case 2:{o.cid=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.click.v1.VideoMeta)return t;let i=new u.bilibili.app.click.v1.VideoMeta;return t.aid!=null&&(r.Long?(i.aid=r.Long.fromValue(t.aid)).unsigned=!1:typeof t.aid=="string"?i.aid=parseInt(t.aid,10):typeof t.aid=="number"?i.aid=t.aid:typeof t.aid=="object"&&(i.aid=new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber())),t.cid!=null&&(r.Long?(i.cid=r.Long.fromValue(t.cid)).unsigned=!1:typeof t.cid=="string"?i.cid=parseInt(t.cid,10):typeof t.cid=="number"?i.cid=t.cid:typeof t.cid=="object"&&(i.cid=new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.aid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.aid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.cid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.cid=i.longs===String?"0":0}return t.aid!=null&&t.hasOwnProperty("aid")&&(typeof t.aid=="number"?n.aid=i.longs===String?String(t.aid):t.aid:n.aid=i.longs===String?r.Long.prototype.toString.call(t.aid):i.longs===Number?new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber():t.aid),t.cid!=null&&t.hasOwnProperty("cid")&&(typeof t.cid=="number"?n.cid=i.longs===String?String(t.cid):t.cid:n.cid=i.longs===String?r.Long.prototype.toString.call(t.cid):i.longs===Number?new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber():t.cid),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.click.v1.VideoMeta"},e}(),c.VideoInfo=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.cidDuration=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.click.v1.VideoInfo)return t;let i=new u.bilibili.app.click.v1.VideoInfo;return t.cidDuration!=null&&(r.Long?(i.cidDuration=r.Long.fromValue(t.cidDuration)).unsigned=!1:typeof t.cidDuration=="string"?i.cidDuration=parseInt(t.cidDuration,10):typeof t.cidDuration=="number"?i.cidDuration=t.cidDuration:typeof t.cidDuration=="object"&&(i.cidDuration=new r.LongBits(t.cidDuration.low>>>0,t.cidDuration.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(r.Long){let o=new r.Long(0,0,!1);n.cidDuration=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.cidDuration=i.longs===String?"0":0;return t.cidDuration!=null&&t.hasOwnProperty("cidDuration")&&(typeof t.cidDuration=="number"?n.cidDuration=i.longs===String?String(t.cidDuration):t.cidDuration:n.cidDuration=i.longs===String?r.Long.prototype.toString.call(t.cidDuration):i.longs===Number?new r.LongBits(t.cidDuration.low>>>0,t.cidDuration.high>>>0).toNumber():t.cidDuration),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.click.v1.VideoInfo"},e}(),c.AppInfo=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.topPageClass=t.string();break}case 2:{o.ftime=t.int64();break}case 3:{o.did=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.click.v1.AppInfo)return t;let i=new u.bilibili.app.click.v1.AppInfo;return t.topPageClass!=null&&(i.topPageClass=String(t.topPageClass)),t.ftime!=null&&(r.Long?(i.ftime=r.Long.fromValue(t.ftime)).unsigned=!1:typeof t.ftime=="string"?i.ftime=parseInt(t.ftime,10):typeof t.ftime=="number"?i.ftime=t.ftime:typeof t.ftime=="object"&&(i.ftime=new r.LongBits(t.ftime.low>>>0,t.ftime.high>>>0).toNumber())),t.did!=null&&(i.did=String(t.did)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.topPageClass="",r.Long){let o=new r.Long(0,0,!1);n.ftime=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.ftime=i.longs===String?"0":0;n.did=""}return t.topPageClass!=null&&t.hasOwnProperty("topPageClass")&&(n.topPageClass=t.topPageClass),t.ftime!=null&&t.hasOwnProperty("ftime")&&(typeof t.ftime=="number"?n.ftime=i.longs===String?String(t.ftime):t.ftime:n.ftime=i.longs===String?r.Long.prototype.toString.call(t.ftime):i.longs===Number?new r.LongBits(t.ftime.low>>>0,t.ftime.high>>>0).toNumber():t.ftime),t.did!=null&&t.hasOwnProperty("did")&&(n.did=t.did),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.click.v1.AppInfo"},e}(),c.AccountInfo=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.mid=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.click.v1.AccountInfo)return t;let i=new u.bilibili.app.click.v1.AccountInfo;return t.mid!=null&&(r.Long?(i.mid=r.Long.fromValue(t.mid)).unsigned=!1:typeof t.mid=="string"?i.mid=parseInt(t.mid,10):typeof t.mid=="number"?i.mid=t.mid:typeof t.mid=="object"&&(i.mid=new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(r.Long){let o=new r.Long(0,0,!1);n.mid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mid=i.longs===String?"0":0;return t.mid!=null&&t.hasOwnProperty("mid")&&(typeof t.mid=="number"?n.mid=i.longs===String?String(t.mid):t.mid:n.mid=i.longs===String?r.Long.prototype.toString.call(t.mid):i.longs===Number?new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber():t.mid),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.click.v1.AccountInfo"},e}(),c.PreProcessResult=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.vt=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.click.v1.PreProcessResult)return t;let i=new u.bilibili.app.click.v1.PreProcessResult;return t.vt!=null&&(r.Long?(i.vt=r.Long.fromValue(t.vt)).unsigned=!1:typeof t.vt=="string"?i.vt=parseInt(t.vt,10):typeof t.vt=="number"?i.vt=t.vt:typeof t.vt=="object"&&(i.vt=new r.LongBits(t.vt.low>>>0,t.vt.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(r.Long){let o=new r.Long(0,0,!1);n.vt=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.vt=i.longs===String?"0":0;return t.vt!=null&&t.hasOwnProperty("vt")&&(typeof t.vt=="number"?n.vt=i.longs===String?String(t.vt):t.vt:n.vt=i.longs===String?r.Long.prototype.toString.call(t.vt):i.longs===Number?new r.LongBits(t.vt.low>>>0,t.vt.high>>>0).toNumber():t.vt),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.click.v1.PreProcessResult"},e}(),c.PlayerStatus=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.playbackRate=t.float();break}case 2:{o.progress=t.int64();break}case 3:{o.state=t.int32();break}case 4:{o.isBuffering=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.click.v1.PlayerStatus)return t;let i=new u.bilibili.app.click.v1.PlayerStatus;switch(t.playbackRate!=null&&(i.playbackRate=Number(t.playbackRate)),t.progress!=null&&(r.Long?(i.progress=r.Long.fromValue(t.progress)).unsigned=!1:typeof t.progress=="string"?i.progress=parseInt(t.progress,10):typeof t.progress=="number"?i.progress=t.progress:typeof t.progress=="object"&&(i.progress=new r.LongBits(t.progress.low>>>0,t.progress.high>>>0).toNumber())),t.state){default:if(typeof t.state=="number"){i.state=t.state;break}break;case"STATE_UNKNOWN":case 0:i.state=0;break;case"PREPARING":case 1:i.state=1;break;case"PREPARED":case 2:i.state=2;break;case"PLAYING":case 3:i.state=3;break;case"PAUSED":case 4:i.state=4;break;case"STOPPED":case 5:i.state=5;break;case"FAILED":case 6:i.state=6;break}return t.isBuffering!=null&&(i.isBuffering=!!t.isBuffering),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.playbackRate=0,r.Long){let o=new r.Long(0,0,!1);n.progress=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.progress=i.longs===String?"0":0;n.state=i.enums===String?"STATE_UNKNOWN":0,n.isBuffering=!1}return t.playbackRate!=null&&t.hasOwnProperty("playbackRate")&&(n.playbackRate=i.json&&!isFinite(t.playbackRate)?String(t.playbackRate):t.playbackRate),t.progress!=null&&t.hasOwnProperty("progress")&&(typeof t.progress=="number"?n.progress=i.longs===String?String(t.progress):t.progress:n.progress=i.longs===String?r.Long.prototype.toString.call(t.progress):i.longs===Number?new r.LongBits(t.progress.low>>>0,t.progress.high>>>0).toNumber():t.progress),t.state!=null&&t.hasOwnProperty("state")&&(n.state=i.enums===String?u.bilibili.app.click.v1.PlayState[t.state]===void 0?t.state:u.bilibili.app.click.v1.PlayState[t.state]:t.state),t.isBuffering!=null&&t.hasOwnProperty("isBuffering")&&(n.isBuffering=t.isBuffering),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.click.v1.PlayerStatus"},e}(),c.PlayState=function(){let e={},l=Object.create(e);return l[e[0]="STATE_UNKNOWN"]=0,l[e[1]="PREPARING"]=1,l[e[2]="PREPARED"]=2,l[e[3]="PLAYING"]=3,l[e[4]="PAUSED"]=4,l[e[5]="STOPPED"]=5,l[e[6]="FAILED"]=6,l}(),c.Extra=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.session=t.string();break}case 2:{o.refer=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.click.v1.Extra)return t;let i=new u.bilibili.app.click.v1.Extra;return t.session!=null&&(i.session=String(t.session)),t.refer!=null&&(i.refer=String(t.refer)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.session="",n.refer=""),t.session!=null&&t.hasOwnProperty("session")&&(n.session=t.session),t.refer!=null&&t.hasOwnProperty("refer")&&(n.refer=t.refer),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.click.v1.Extra"},e}(),c.HeartBeatReply=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){default:t.skipType(a&7);break}}return o},e.fromObject=function(t){return t instanceof u.bilibili.app.click.v1.HeartBeatReply?t:new u.bilibili.app.click.v1.HeartBeatReply},e.toObject=function(){return{}},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.click.v1.HeartBeatReply"},e}(),c}(),p}(),d.distribution=function(){let p={};return p.v1=function(){let c={};return c.defaultValue=function(){function e(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.doubleValue=i.double();break}case 2:{a.floatValue=i.float();break}case 3:{a.int64Value=i.int64();break}case 4:{a.uint64Value=i.uint64();break}case 5:{a.int32Value=i.int32();break}case 6:{a.uint32Value=i.uint32();break}case 7:{a.boolValue=i.bool();break}case 8:{a.stringValue=i.string();break}case 9:{a.bytesValue=i.bytes();break}default:i.skipType(y&7);break}}return a},e.fromObject=function(i){if(i instanceof u.bilibili.app.distribution.v1.defaultValue)return i;let n=new u.bilibili.app.distribution.v1.defaultValue;return i.doubleValue!=null&&(n.doubleValue=Number(i.doubleValue)),i.floatValue!=null&&(n.floatValue=Number(i.floatValue)),i.int64Value!=null&&(r.Long?(n.int64Value=r.Long.fromValue(i.int64Value)).unsigned=!1:typeof i.int64Value=="string"?n.int64Value=parseInt(i.int64Value,10):typeof i.int64Value=="number"?n.int64Value=i.int64Value:typeof i.int64Value=="object"&&(n.int64Value=new r.LongBits(i.int64Value.low>>>0,i.int64Value.high>>>0).toNumber())),i.uint64Value!=null&&(r.Long?(n.uint64Value=r.Long.fromValue(i.uint64Value)).unsigned=!0:typeof i.uint64Value=="string"?n.uint64Value=parseInt(i.uint64Value,10):typeof i.uint64Value=="number"?n.uint64Value=i.uint64Value:typeof i.uint64Value=="object"&&(n.uint64Value=new r.LongBits(i.uint64Value.low>>>0,i.uint64Value.high>>>0).toNumber(!0))),i.int32Value!=null&&(n.int32Value=i.int32Value|0),i.uint32Value!=null&&(n.uint32Value=i.uint32Value>>>0),i.boolValue!=null&&(n.boolValue=!!i.boolValue),i.stringValue!=null&&(n.stringValue=String(i.stringValue)),i.bytesValue!=null&&(typeof i.bytesValue=="string"?r.base64.decode(i.bytesValue,n.bytesValue=r.newBuffer(r.base64.length(i.bytesValue)),0):i.bytesValue.length>=0&&(n.bytesValue=i.bytesValue)),n},e.toObject=function(i,n){n||(n={});let o={};return i.doubleValue!=null&&i.hasOwnProperty("doubleValue")&&(o.doubleValue=n.json&&!isFinite(i.doubleValue)?String(i.doubleValue):i.doubleValue,n.oneofs&&(o.value="doubleValue")),i.floatValue!=null&&i.hasOwnProperty("floatValue")&&(o.floatValue=n.json&&!isFinite(i.floatValue)?String(i.floatValue):i.floatValue,n.oneofs&&(o.value="floatValue")),i.int64Value!=null&&i.hasOwnProperty("int64Value")&&(typeof i.int64Value=="number"?o.int64Value=n.longs===String?String(i.int64Value):i.int64Value:o.int64Value=n.longs===String?r.Long.prototype.toString.call(i.int64Value):n.longs===Number?new r.LongBits(i.int64Value.low>>>0,i.int64Value.high>>>0).toNumber():i.int64Value,n.oneofs&&(o.value="int64Value")),i.uint64Value!=null&&i.hasOwnProperty("uint64Value")&&(typeof i.uint64Value=="number"?o.uint64Value=n.longs===String?String(i.uint64Value):i.uint64Value:o.uint64Value=n.longs===String?r.Long.prototype.toString.call(i.uint64Value):n.longs===Number?new r.LongBits(i.uint64Value.low>>>0,i.uint64Value.high>>>0).toNumber(!0):i.uint64Value,n.oneofs&&(o.value="uint64Value")),i.int32Value!=null&&i.hasOwnProperty("int32Value")&&(o.int32Value=i.int32Value,n.oneofs&&(o.value="int32Value")),i.uint32Value!=null&&i.hasOwnProperty("uint32Value")&&(o.uint32Value=i.uint32Value,n.oneofs&&(o.value="uint32Value")),i.boolValue!=null&&i.hasOwnProperty("boolValue")&&(o.boolValue=i.boolValue,n.oneofs&&(o.value="boolValue")),i.stringValue!=null&&i.hasOwnProperty("stringValue")&&(o.stringValue=i.stringValue,n.oneofs&&(o.value="stringValue")),i.bytesValue!=null&&i.hasOwnProperty("bytesValue")&&(o.bytesValue=n.bytes===String?r.base64.encode(i.bytesValue,0,i.bytesValue.length):n.bytes===Array?Array.prototype.slice.call(i.bytesValue):i.bytesValue,n.oneofs&&(o.value="bytesValue")),o},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.app.distribution.v1.defaultValue"},e}(),c.DoubleValue=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.value=t.double();break}case 2:{o.lastModified=t.int64();break}case 3:{o.defaultValue=t.double();break}case 4:{o.exp=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.distribution.v1.DoubleValue)return t;let i=new u.bilibili.app.distribution.v1.DoubleValue;return t.value!=null&&(i.value=Number(t.value)),t.lastModified!=null&&(r.Long?(i.lastModified=r.Long.fromValue(t.lastModified)).unsigned=!1:typeof t.lastModified=="string"?i.lastModified=parseInt(t.lastModified,10):typeof t.lastModified=="number"?i.lastModified=t.lastModified:typeof t.lastModified=="object"&&(i.lastModified=new r.LongBits(t.lastModified.low>>>0,t.lastModified.high>>>0).toNumber())),t.defaultValue!=null&&(i.defaultValue=Number(t.defaultValue)),t.exp!=null&&(i.exp=String(t.exp)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.value=0,r.Long){let o=new r.Long(0,0,!1);n.lastModified=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.lastModified=i.longs===String?"0":0;n.defaultValue=0,n.exp=""}return t.value!=null&&t.hasOwnProperty("value")&&(n.value=i.json&&!isFinite(t.value)?String(t.value):t.value),t.lastModified!=null&&t.hasOwnProperty("lastModified")&&(typeof t.lastModified=="number"?n.lastModified=i.longs===String?String(t.lastModified):t.lastModified:n.lastModified=i.longs===String?r.Long.prototype.toString.call(t.lastModified):i.longs===Number?new r.LongBits(t.lastModified.low>>>0,t.lastModified.high>>>0).toNumber():t.lastModified),t.defaultValue!=null&&t.hasOwnProperty("defaultValue")&&(n.defaultValue=i.json&&!isFinite(t.defaultValue)?String(t.defaultValue):t.defaultValue),t.exp!=null&&t.hasOwnProperty("exp")&&(n.exp=t.exp),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.distribution.v1.DoubleValue"},e}(),c.FloatValue=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.value=t.float();break}case 2:{o.lastModified=t.int64();break}case 3:{o.defaultValue=t.float();break}case 4:{o.exp=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.distribution.v1.FloatValue)return t;let i=new u.bilibili.app.distribution.v1.FloatValue;return t.value!=null&&(i.value=Number(t.value)),t.lastModified!=null&&(r.Long?(i.lastModified=r.Long.fromValue(t.lastModified)).unsigned=!1:typeof t.lastModified=="string"?i.lastModified=parseInt(t.lastModified,10):typeof t.lastModified=="number"?i.lastModified=t.lastModified:typeof t.lastModified=="object"&&(i.lastModified=new r.LongBits(t.lastModified.low>>>0,t.lastModified.high>>>0).toNumber())),t.defaultValue!=null&&(i.defaultValue=Number(t.defaultValue)),t.exp!=null&&(i.exp=String(t.exp)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.value=0,r.Long){let o=new r.Long(0,0,!1);n.lastModified=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.lastModified=i.longs===String?"0":0;n.defaultValue=0,n.exp=""}return t.value!=null&&t.hasOwnProperty("value")&&(n.value=i.json&&!isFinite(t.value)?String(t.value):t.value),t.lastModified!=null&&t.hasOwnProperty("lastModified")&&(typeof t.lastModified=="number"?n.lastModified=i.longs===String?String(t.lastModified):t.lastModified:n.lastModified=i.longs===String?r.Long.prototype.toString.call(t.lastModified):i.longs===Number?new r.LongBits(t.lastModified.low>>>0,t.lastModified.high>>>0).toNumber():t.lastModified),t.defaultValue!=null&&t.hasOwnProperty("defaultValue")&&(n.defaultValue=i.json&&!isFinite(t.defaultValue)?String(t.defaultValue):t.defaultValue),t.exp!=null&&t.hasOwnProperty("exp")&&(n.exp=t.exp),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.distribution.v1.FloatValue"},e}(),c.Int64Value=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.value=t.int64();break}case 2:{o.lastModified=t.int64();break}case 3:{o.defaultValue=t.int64();break}case 4:{o.exp=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.distribution.v1.Int64Value)return t;let i=new u.bilibili.app.distribution.v1.Int64Value;return t.value!=null&&(r.Long?(i.value=r.Long.fromValue(t.value)).unsigned=!1:typeof t.value=="string"?i.value=parseInt(t.value,10):typeof t.value=="number"?i.value=t.value:typeof t.value=="object"&&(i.value=new r.LongBits(t.value.low>>>0,t.value.high>>>0).toNumber())),t.lastModified!=null&&(r.Long?(i.lastModified=r.Long.fromValue(t.lastModified)).unsigned=!1:typeof t.lastModified=="string"?i.lastModified=parseInt(t.lastModified,10):typeof t.lastModified=="number"?i.lastModified=t.lastModified:typeof t.lastModified=="object"&&(i.lastModified=new r.LongBits(t.lastModified.low>>>0,t.lastModified.high>>>0).toNumber())),t.defaultValue!=null&&(r.Long?(i.defaultValue=r.Long.fromValue(t.defaultValue)).unsigned=!1:typeof t.defaultValue=="string"?i.defaultValue=parseInt(t.defaultValue,10):typeof t.defaultValue=="number"?i.defaultValue=t.defaultValue:typeof t.defaultValue=="object"&&(i.defaultValue=new r.LongBits(t.defaultValue.low>>>0,t.defaultValue.high>>>0).toNumber())),t.exp!=null&&(i.exp=String(t.exp)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.value=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.value=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.lastModified=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.lastModified=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.defaultValue=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.defaultValue=i.longs===String?"0":0;n.exp=""}return t.value!=null&&t.hasOwnProperty("value")&&(typeof t.value=="number"?n.value=i.longs===String?String(t.value):t.value:n.value=i.longs===String?r.Long.prototype.toString.call(t.value):i.longs===Number?new r.LongBits(t.value.low>>>0,t.value.high>>>0).toNumber():t.value),t.lastModified!=null&&t.hasOwnProperty("lastModified")&&(typeof t.lastModified=="number"?n.lastModified=i.longs===String?String(t.lastModified):t.lastModified:n.lastModified=i.longs===String?r.Long.prototype.toString.call(t.lastModified):i.longs===Number?new r.LongBits(t.lastModified.low>>>0,t.lastModified.high>>>0).toNumber():t.lastModified),t.defaultValue!=null&&t.hasOwnProperty("defaultValue")&&(typeof t.defaultValue=="number"?n.defaultValue=i.longs===String?String(t.defaultValue):t.defaultValue:n.defaultValue=i.longs===String?r.Long.prototype.toString.call(t.defaultValue):i.longs===Number?new r.LongBits(t.defaultValue.low>>>0,t.defaultValue.high>>>0).toNumber():t.defaultValue),t.exp!=null&&t.hasOwnProperty("exp")&&(n.exp=t.exp),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.distribution.v1.Int64Value"},e}(),c.UInt64Value=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.value=t.uint64();break}case 2:{o.lastModified=t.int64();break}case 3:{o.defaultValue=t.uint64();break}case 4:{o.exp=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.distribution.v1.UInt64Value)return t;let i=new u.bilibili.app.distribution.v1.UInt64Value;return t.value!=null&&(r.Long?(i.value=r.Long.fromValue(t.value)).unsigned=!0:typeof t.value=="string"?i.value=parseInt(t.value,10):typeof t.value=="number"?i.value=t.value:typeof t.value=="object"&&(i.value=new r.LongBits(t.value.low>>>0,t.value.high>>>0).toNumber(!0))),t.lastModified!=null&&(r.Long?(i.lastModified=r.Long.fromValue(t.lastModified)).unsigned=!1:typeof t.lastModified=="string"?i.lastModified=parseInt(t.lastModified,10):typeof t.lastModified=="number"?i.lastModified=t.lastModified:typeof t.lastModified=="object"&&(i.lastModified=new r.LongBits(t.lastModified.low>>>0,t.lastModified.high>>>0).toNumber())),t.defaultValue!=null&&(r.Long?(i.defaultValue=r.Long.fromValue(t.defaultValue)).unsigned=!0:typeof t.defaultValue=="string"?i.defaultValue=parseInt(t.defaultValue,10):typeof t.defaultValue=="number"?i.defaultValue=t.defaultValue:typeof t.defaultValue=="object"&&(i.defaultValue=new r.LongBits(t.defaultValue.low>>>0,t.defaultValue.high>>>0).toNumber(!0))),t.exp!=null&&(i.exp=String(t.exp)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!0);n.value=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.value=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.lastModified=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.lastModified=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!0);n.defaultValue=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.defaultValue=i.longs===String?"0":0;n.exp=""}return t.value!=null&&t.hasOwnProperty("value")&&(typeof t.value=="number"?n.value=i.longs===String?String(t.value):t.value:n.value=i.longs===String?r.Long.prototype.toString.call(t.value):i.longs===Number?new r.LongBits(t.value.low>>>0,t.value.high>>>0).toNumber(!0):t.value),t.lastModified!=null&&t.hasOwnProperty("lastModified")&&(typeof t.lastModified=="number"?n.lastModified=i.longs===String?String(t.lastModified):t.lastModified:n.lastModified=i.longs===String?r.Long.prototype.toString.call(t.lastModified):i.longs===Number?new r.LongBits(t.lastModified.low>>>0,t.lastModified.high>>>0).toNumber():t.lastModified),t.defaultValue!=null&&t.hasOwnProperty("defaultValue")&&(typeof t.defaultValue=="number"?n.defaultValue=i.longs===String?String(t.defaultValue):t.defaultValue:n.defaultValue=i.longs===String?r.Long.prototype.toString.call(t.defaultValue):i.longs===Number?new r.LongBits(t.defaultValue.low>>>0,t.defaultValue.high>>>0).toNumber(!0):t.defaultValue),t.exp!=null&&t.hasOwnProperty("exp")&&(n.exp=t.exp),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.distribution.v1.UInt64Value"},e}(),c.Int32Value=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.value=t.int32();break}case 2:{o.lastModified=t.int64();break}case 3:{o.defaultValue=t.int32();break}case 4:{o.exp=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.distribution.v1.Int32Value)return t;let i=new u.bilibili.app.distribution.v1.Int32Value;return t.value!=null&&(i.value=t.value|0),t.lastModified!=null&&(r.Long?(i.lastModified=r.Long.fromValue(t.lastModified)).unsigned=!1:typeof t.lastModified=="string"?i.lastModified=parseInt(t.lastModified,10):typeof t.lastModified=="number"?i.lastModified=t.lastModified:typeof t.lastModified=="object"&&(i.lastModified=new r.LongBits(t.lastModified.low>>>0,t.lastModified.high>>>0).toNumber())),t.defaultValue!=null&&(i.defaultValue=t.defaultValue|0),t.exp!=null&&(i.exp=String(t.exp)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.value=0,r.Long){let o=new r.Long(0,0,!1);n.lastModified=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.lastModified=i.longs===String?"0":0;n.defaultValue=0,n.exp=""}return t.value!=null&&t.hasOwnProperty("value")&&(n.value=t.value),t.lastModified!=null&&t.hasOwnProperty("lastModified")&&(typeof t.lastModified=="number"?n.lastModified=i.longs===String?String(t.lastModified):t.lastModified:n.lastModified=i.longs===String?r.Long.prototype.toString.call(t.lastModified):i.longs===Number?new r.LongBits(t.lastModified.low>>>0,t.lastModified.high>>>0).toNumber():t.lastModified),t.defaultValue!=null&&t.hasOwnProperty("defaultValue")&&(n.defaultValue=t.defaultValue),t.exp!=null&&t.hasOwnProperty("exp")&&(n.exp=t.exp),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.distribution.v1.Int32Value"},e}(),c.UInt32Value=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.value=t.uint32();break}case 2:{o.lastModified=t.int64();break}case 3:{o.defaultValue=t.uint32();break}case 4:{o.exp=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.distribution.v1.UInt32Value)return t;let i=new u.bilibili.app.distribution.v1.UInt32Value;return t.value!=null&&(i.value=t.value>>>0),t.lastModified!=null&&(r.Long?(i.lastModified=r.Long.fromValue(t.lastModified)).unsigned=!1:typeof t.lastModified=="string"?i.lastModified=parseInt(t.lastModified,10):typeof t.lastModified=="number"?i.lastModified=t.lastModified:typeof t.lastModified=="object"&&(i.lastModified=new r.LongBits(t.lastModified.low>>>0,t.lastModified.high>>>0).toNumber())),t.defaultValue!=null&&(i.defaultValue=t.defaultValue>>>0),t.exp!=null&&(i.exp=String(t.exp)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.value=0,r.Long){let o=new r.Long(0,0,!1);n.lastModified=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.lastModified=i.longs===String?"0":0;n.defaultValue=0,n.exp=""}return t.value!=null&&t.hasOwnProperty("value")&&(n.value=t.value),t.lastModified!=null&&t.hasOwnProperty("lastModified")&&(typeof t.lastModified=="number"?n.lastModified=i.longs===String?String(t.lastModified):t.lastModified:n.lastModified=i.longs===String?r.Long.prototype.toString.call(t.lastModified):i.longs===Number?new r.LongBits(t.lastModified.low>>>0,t.lastModified.high>>>0).toNumber():t.lastModified),t.defaultValue!=null&&t.hasOwnProperty("defaultValue")&&(n.defaultValue=t.defaultValue),t.exp!=null&&t.hasOwnProperty("exp")&&(n.exp=t.exp),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.distribution.v1.UInt32Value"},e}(),c.BoolValue=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.value=t.bool();break}case 2:{o.lastModified=t.int64();break}case 3:{o.defaultValue=t.bool();break}case 4:{o.exp=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.distribution.v1.BoolValue)return t;let i=new u.bilibili.app.distribution.v1.BoolValue;return t.value!=null&&(i.value=!!t.value),t.lastModified!=null&&(r.Long?(i.lastModified=r.Long.fromValue(t.lastModified)).unsigned=!1:typeof t.lastModified=="string"?i.lastModified=parseInt(t.lastModified,10):typeof t.lastModified=="number"?i.lastModified=t.lastModified:typeof t.lastModified=="object"&&(i.lastModified=new r.LongBits(t.lastModified.low>>>0,t.lastModified.high>>>0).toNumber())),t.defaultValue!=null&&(i.defaultValue=!!t.defaultValue),t.exp!=null&&(i.exp=String(t.exp)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.value=!1,r.Long){let o=new r.Long(0,0,!1);n.lastModified=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.lastModified=i.longs===String?"0":0;n.defaultValue=!1,n.exp=""}return t.value!=null&&t.hasOwnProperty("value")&&(n.value=t.value),t.lastModified!=null&&t.hasOwnProperty("lastModified")&&(typeof t.lastModified=="number"?n.lastModified=i.longs===String?String(t.lastModified):t.lastModified:n.lastModified=i.longs===String?r.Long.prototype.toString.call(t.lastModified):i.longs===Number?new r.LongBits(t.lastModified.low>>>0,t.lastModified.high>>>0).toNumber():t.lastModified),t.defaultValue!=null&&t.hasOwnProperty("defaultValue")&&(n.defaultValue=t.defaultValue),t.exp!=null&&t.hasOwnProperty("exp")&&(n.exp=t.exp),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.distribution.v1.BoolValue"},e}(),c.StringValue=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.value=t.string();break}case 2:{o.lastModified=t.int64();break}case 3:{o.defaultValue=t.string();break}case 4:{o.exp=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.distribution.v1.StringValue)return t;let i=new u.bilibili.app.distribution.v1.StringValue;return t.value!=null&&(i.value=String(t.value)),t.lastModified!=null&&(r.Long?(i.lastModified=r.Long.fromValue(t.lastModified)).unsigned=!1:typeof t.lastModified=="string"?i.lastModified=parseInt(t.lastModified,10):typeof t.lastModified=="number"?i.lastModified=t.lastModified:typeof t.lastModified=="object"&&(i.lastModified=new r.LongBits(t.lastModified.low>>>0,t.lastModified.high>>>0).toNumber())),t.defaultValue!=null&&(i.defaultValue=String(t.defaultValue)),t.exp!=null&&(i.exp=String(t.exp)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.value="",r.Long){let o=new r.Long(0,0,!1);n.lastModified=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.lastModified=i.longs===String?"0":0;n.defaultValue="",n.exp=""}return t.value!=null&&t.hasOwnProperty("value")&&(n.value=t.value),t.lastModified!=null&&t.hasOwnProperty("lastModified")&&(typeof t.lastModified=="number"?n.lastModified=i.longs===String?String(t.lastModified):t.lastModified:n.lastModified=i.longs===String?r.Long.prototype.toString.call(t.lastModified):i.longs===Number?new r.LongBits(t.lastModified.low>>>0,t.lastModified.high>>>0).toNumber():t.lastModified),t.defaultValue!=null&&t.hasOwnProperty("defaultValue")&&(n.defaultValue=t.defaultValue),t.exp!=null&&t.hasOwnProperty("exp")&&(n.exp=t.exp),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.distribution.v1.StringValue"},e}(),c.BytesValue=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.value=t.bytes();break}case 2:{o.lastModified=t.int64();break}case 3:{o.defaultValue=t.bytes();break}case 4:{o.exp=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.distribution.v1.BytesValue)return t;let i=new u.bilibili.app.distribution.v1.BytesValue;return t.value!=null&&(typeof t.value=="string"?r.base64.decode(t.value,i.value=r.newBuffer(r.base64.length(t.value)),0):t.value.length>=0&&(i.value=t.value)),t.lastModified!=null&&(r.Long?(i.lastModified=r.Long.fromValue(t.lastModified)).unsigned=!1:typeof t.lastModified=="string"?i.lastModified=parseInt(t.lastModified,10):typeof t.lastModified=="number"?i.lastModified=t.lastModified:typeof t.lastModified=="object"&&(i.lastModified=new r.LongBits(t.lastModified.low>>>0,t.lastModified.high>>>0).toNumber())),t.defaultValue!=null&&(typeof t.defaultValue=="string"?r.base64.decode(t.defaultValue,i.defaultValue=r.newBuffer(r.base64.length(t.defaultValue)),0):t.defaultValue.length>=0&&(i.defaultValue=t.defaultValue)),t.exp!=null&&(i.exp=String(t.exp)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(i.bytes===String?n.value="":(n.value=[],i.bytes!==Array&&(n.value=r.newBuffer(n.value))),r.Long){let o=new r.Long(0,0,!1);n.lastModified=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.lastModified=i.longs===String?"0":0;i.bytes===String?n.defaultValue="":(n.defaultValue=[],i.bytes!==Array&&(n.defaultValue=r.newBuffer(n.defaultValue))),n.exp=""}return t.value!=null&&t.hasOwnProperty("value")&&(n.value=i.bytes===String?r.base64.encode(t.value,0,t.value.length):i.bytes===Array?Array.prototype.slice.call(t.value):t.value),t.lastModified!=null&&t.hasOwnProperty("lastModified")&&(typeof t.lastModified=="number"?n.lastModified=i.longs===String?String(t.lastModified):t.lastModified:n.lastModified=i.longs===String?r.Long.prototype.toString.call(t.lastModified):i.longs===Number?new r.LongBits(t.lastModified.low>>>0,t.lastModified.high>>>0).toNumber():t.lastModified),t.defaultValue!=null&&t.hasOwnProperty("defaultValue")&&(n.defaultValue=i.bytes===String?r.base64.encode(t.defaultValue,0,t.defaultValue.length):i.bytes===Array?Array.prototype.slice.call(t.defaultValue):t.defaultValue),t.exp!=null&&t.hasOwnProperty("exp")&&(n.exp=t.exp),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.distribution.v1.BytesValue"},e}(),c.UserPreferenceReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){default:t.skipType(a&7);break}}return o},e.fromObject=function(t){return t instanceof u.bilibili.app.distribution.v1.UserPreferenceReq?t:new u.bilibili.app.distribution.v1.UserPreferenceReq},e.toObject=function(){return{}},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.distribution.v1.UserPreferenceReq"},e}(),c.UserPreferenceReply=function(){function e(l){if(this.preference=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.preference&&o.preference.length||(o.preference=[]),o.preference.push(u.google.protobuf.Any.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.distribution.v1.UserPreferenceReply)return t;let i=new u.bilibili.app.distribution.v1.UserPreferenceReply;if(t.preference){if(!Array.isArray(t.preference))throw TypeError(".bilibili.app.distribution.v1.UserPreferenceReply.preference: array expected");i.preference=[];for(let n=0;n>>3){case 1:{o.preference&&o.preference.length||(o.preference=[]),o.preference.push(u.google.protobuf.Any.decode(t,t.uint32()));break}case 2:{o.extraContext===r.emptyObject&&(o.extraContext={});let v=t.uint32()+t.pos;for(a="",y="";t.pos>>3){case 1:a=t.string();break;case 2:y=t.string();break;default:t.skipType(g&7);break}}o.extraContext[a]=y;break}default:t.skipType(s&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.distribution.v1.SetUserPreferenceReq)return t;let i=new u.bilibili.app.distribution.v1.SetUserPreferenceReq;if(t.preference){if(!Array.isArray(t.preference))throw TypeError(".bilibili.app.distribution.v1.SetUserPreferenceReq.preference: array expected");i.preference=[];for(let n=0;n>>3){default:t.skipType(a&7);break}}return o},e.fromObject=function(t){return t instanceof u.bilibili.app.distribution.v1.SetUserPreferenceReply?t:new u.bilibili.app.distribution.v1.SetUserPreferenceReply},e.toObject=function(){return{}},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.distribution.v1.SetUserPreferenceReply"},e}(),c.GetUserPreferenceReq=function(){function e(l){if(this.typeUrl=[],this.extraContext={},l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.typeUrl&&o.typeUrl.length||(o.typeUrl=[]),o.typeUrl.push(t.string());break}case 2:{o.extraContext===r.emptyObject&&(o.extraContext={});let v=t.uint32()+t.pos;for(a="",y="";t.pos>>3){case 1:a=t.string();break;case 2:y=t.string();break;default:t.skipType(g&7);break}}o.extraContext[a]=y;break}default:t.skipType(s&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.distribution.v1.GetUserPreferenceReq)return t;let i=new u.bilibili.app.distribution.v1.GetUserPreferenceReq;if(t.typeUrl){if(!Array.isArray(t.typeUrl))throw TypeError(".bilibili.app.distribution.v1.GetUserPreferenceReq.typeUrl: array expected");i.typeUrl=[];for(let n=0;n>>3){case 1:{o.value&&o.value.length||(o.value=[]),o.value.push(u.google.protobuf.Any.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.distribution.v1.GetUserPreferenceReply)return t;let i=new u.bilibili.app.distribution.v1.GetUserPreferenceReply;if(t.value){if(!Array.isArray(t.value))throw TypeError(".bilibili.app.distribution.v1.GetUserPreferenceReply.value: array expected");i.value=[];for(let n=0;n>>3){case 1:{a.enableDownloadAutoStart=u.bilibili.app.distribution.v1.BoolValue.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.app.distribution.download.v1.DownloadSettingsConfig)return i;let n=new u.bilibili.app.distribution.download.v1.DownloadSettingsConfig;if(i.enableDownloadAutoStart!=null){if(typeof i.enableDownloadAutoStart!="object")throw TypeError(".bilibili.app.distribution.download.v1.DownloadSettingsConfig.enableDownloadAutoStart: object expected");n.enableDownloadAutoStart=u.bilibili.app.distribution.v1.BoolValue.fromObject(i.enableDownloadAutoStart)}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.enableDownloadAutoStart=null),i.enableDownloadAutoStart!=null&&i.hasOwnProperty("enableDownloadAutoStart")&&(o.enableDownloadAutoStart=u.bilibili.app.distribution.v1.BoolValue.toObject(i.enableDownloadAutoStart,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.app.distribution.download.v1.DownloadSettingsConfig"},l}(),e}(),c}(),p.dynamic=function(){let c={};return c.v1=function(){let e={};return e.DynamicDeviceConfig=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.autoPlay=u.bilibili.app.distribution.dynamic.v1.DynamicAutoPlay.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.app.distribution.dynamic.v1.DynamicDeviceConfig)return i;let n=new u.bilibili.app.distribution.dynamic.v1.DynamicDeviceConfig;if(i.autoPlay!=null){if(typeof i.autoPlay!="object")throw TypeError(".bilibili.app.distribution.dynamic.v1.DynamicDeviceConfig.autoPlay: object expected");n.autoPlay=u.bilibili.app.distribution.dynamic.v1.DynamicAutoPlay.fromObject(i.autoPlay)}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.autoPlay=null),i.autoPlay!=null&&i.hasOwnProperty("autoPlay")&&(o.autoPlay=u.bilibili.app.distribution.dynamic.v1.DynamicAutoPlay.toObject(i.autoPlay,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.app.distribution.dynamic.v1.DynamicDeviceConfig"},l}(),e.DynamicAutoPlay=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.value=u.bilibili.app.distribution.v1.Int64Value.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.app.distribution.dynamic.v1.DynamicAutoPlay)return i;let n=new u.bilibili.app.distribution.dynamic.v1.DynamicAutoPlay;if(i.value!=null){if(typeof i.value!="object")throw TypeError(".bilibili.app.distribution.dynamic.v1.DynamicAutoPlay.value: object expected");n.value=u.bilibili.app.distribution.v1.Int64Value.fromObject(i.value)}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.value=null),i.value!=null&&i.hasOwnProperty("value")&&(o.value=u.bilibili.app.distribution.v1.Int64Value.toObject(i.value,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.app.distribution.dynamic.v1.DynamicAutoPlay"},l.AutoPlay=function(){let t={},i=Object.create(t);return i[t[0]="AP_UNKNOW"]=0,i[t[1]="Disable"]=1,i[t[2]="WIFIOnly"]=2,i[t[3]="WIFIAndCellular"]=3,i}(),l}(),e}(),c}(),p.experimental=function(){let c={};return c.v1=function(){let e={};return e.ExperimentalConfig=function(){function l(t){if(this.exps=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.flag=u.bilibili.app.distribution.v1.StringValue.decode(i,i.uint32());break}case 2:{a.exps&&a.exps.length||(a.exps=[]),a.exps.push(u.bilibili.app.distribution.experimental.v1.Exp.decode(i,i.uint32()));break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.app.distribution.experimental.v1.ExperimentalConfig)return i;let n=new u.bilibili.app.distribution.experimental.v1.ExperimentalConfig;if(i.flag!=null){if(typeof i.flag!="object")throw TypeError(".bilibili.app.distribution.experimental.v1.ExperimentalConfig.flag: object expected");n.flag=u.bilibili.app.distribution.v1.StringValue.fromObject(i.flag)}if(i.exps){if(!Array.isArray(i.exps))throw TypeError(".bilibili.app.distribution.experimental.v1.ExperimentalConfig.exps: array expected");n.exps=[];for(let o=0;o>>3){case 1:{a.id=u.bilibili.app.distribution.v1.Int64Value.decode(i,i.uint32());break}case 2:{a.bucket=u.bilibili.app.distribution.v1.Int32Value.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.app.distribution.experimental.v1.Exp)return i;let n=new u.bilibili.app.distribution.experimental.v1.Exp;if(i.id!=null){if(typeof i.id!="object")throw TypeError(".bilibili.app.distribution.experimental.v1.Exp.id: object expected");n.id=u.bilibili.app.distribution.v1.Int64Value.fromObject(i.id)}if(i.bucket!=null){if(typeof i.bucket!="object")throw TypeError(".bilibili.app.distribution.experimental.v1.Exp.bucket: object expected");n.bucket=u.bilibili.app.distribution.v1.Int32Value.fromObject(i.bucket)}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.id=null,o.bucket=null),i.id!=null&&i.hasOwnProperty("id")&&(o.id=u.bilibili.app.distribution.v1.Int64Value.toObject(i.id,n)),i.bucket!=null&&i.hasOwnProperty("bucket")&&(o.bucket=u.bilibili.app.distribution.v1.Int32Value.toObject(i.bucket,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.app.distribution.experimental.v1.Exp"},l}(),e.MultipleTusConfig=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.topLeft=u.bilibili.app.distribution.experimental.v1.TopLeft.decode(i,i.uint32());break}case 2:{a.dynamicSelect=u.bilibili.app.distribution.experimental.v1.DynamicSelect.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.app.distribution.experimental.v1.MultipleTusConfig)return i;let n=new u.bilibili.app.distribution.experimental.v1.MultipleTusConfig;if(i.topLeft!=null){if(typeof i.topLeft!="object")throw TypeError(".bilibili.app.distribution.experimental.v1.MultipleTusConfig.topLeft: object expected");n.topLeft=u.bilibili.app.distribution.experimental.v1.TopLeft.fromObject(i.topLeft)}if(i.dynamicSelect!=null){if(typeof i.dynamicSelect!="object")throw TypeError(".bilibili.app.distribution.experimental.v1.MultipleTusConfig.dynamicSelect: object expected");n.dynamicSelect=u.bilibili.app.distribution.experimental.v1.DynamicSelect.fromObject(i.dynamicSelect)}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.topLeft=null,o.dynamicSelect=null),i.topLeft!=null&&i.hasOwnProperty("topLeft")&&(o.topLeft=u.bilibili.app.distribution.experimental.v1.TopLeft.toObject(i.topLeft,n)),i.dynamicSelect!=null&&i.hasOwnProperty("dynamicSelect")&&(o.dynamicSelect=u.bilibili.app.distribution.experimental.v1.DynamicSelect.toObject(i.dynamicSelect,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.app.distribution.experimental.v1.MultipleTusConfig"},l}(),e.TopLeft=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.url=u.bilibili.app.distribution.v1.StringValue.decode(i,i.uint32());break}case 2:{a.storyForegroundImage=u.bilibili.app.distribution.v1.StringValue.decode(i,i.uint32());break}case 3:{a.storyBackgroundImage=u.bilibili.app.distribution.v1.StringValue.decode(i,i.uint32());break}case 4:{a.listenForegroundImage=u.bilibili.app.distribution.v1.StringValue.decode(i,i.uint32());break}case 5:{a.listenBackgroundImage=u.bilibili.app.distribution.v1.StringValue.decode(i,i.uint32());break}case 6:{a.iosStoryForegroundImage=u.bilibili.app.distribution.v1.StringValue.decode(i,i.uint32());break}case 7:{a.iosStoryBackgroundImage=u.bilibili.app.distribution.v1.StringValue.decode(i,i.uint32());break}case 8:{a.iosListenForegroundImage=u.bilibili.app.distribution.v1.StringValue.decode(i,i.uint32());break}case 9:{a.iosListenBackgroundImage=u.bilibili.app.distribution.v1.StringValue.decode(i,i.uint32());break}case 10:{a.goto=u.bilibili.app.distribution.v1.StringValue.decode(i,i.uint32());break}case 11:{a.urlV2=u.bilibili.app.distribution.v1.StringValue.decode(i,i.uint32());break}case 12:{a.gotoV2=u.bilibili.app.distribution.v1.Int64Value.decode(i,i.uint32());break}case 13:{a.badge=u.bilibili.app.distribution.v1.StringValue.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.app.distribution.experimental.v1.TopLeft)return i;let n=new u.bilibili.app.distribution.experimental.v1.TopLeft;if(i.url!=null){if(typeof i.url!="object")throw TypeError(".bilibili.app.distribution.experimental.v1.TopLeft.url: object expected");n.url=u.bilibili.app.distribution.v1.StringValue.fromObject(i.url)}if(i.storyForegroundImage!=null){if(typeof i.storyForegroundImage!="object")throw TypeError(".bilibili.app.distribution.experimental.v1.TopLeft.storyForegroundImage: object expected");n.storyForegroundImage=u.bilibili.app.distribution.v1.StringValue.fromObject(i.storyForegroundImage)}if(i.storyBackgroundImage!=null){if(typeof i.storyBackgroundImage!="object")throw TypeError(".bilibili.app.distribution.experimental.v1.TopLeft.storyBackgroundImage: object expected");n.storyBackgroundImage=u.bilibili.app.distribution.v1.StringValue.fromObject(i.storyBackgroundImage)}if(i.listenForegroundImage!=null){if(typeof i.listenForegroundImage!="object")throw TypeError(".bilibili.app.distribution.experimental.v1.TopLeft.listenForegroundImage: object expected");n.listenForegroundImage=u.bilibili.app.distribution.v1.StringValue.fromObject(i.listenForegroundImage)}if(i.listenBackgroundImage!=null){if(typeof i.listenBackgroundImage!="object")throw TypeError(".bilibili.app.distribution.experimental.v1.TopLeft.listenBackgroundImage: object expected");n.listenBackgroundImage=u.bilibili.app.distribution.v1.StringValue.fromObject(i.listenBackgroundImage)}if(i.iosStoryForegroundImage!=null){if(typeof i.iosStoryForegroundImage!="object")throw TypeError(".bilibili.app.distribution.experimental.v1.TopLeft.iosStoryForegroundImage: object expected");n.iosStoryForegroundImage=u.bilibili.app.distribution.v1.StringValue.fromObject(i.iosStoryForegroundImage)}if(i.iosStoryBackgroundImage!=null){if(typeof i.iosStoryBackgroundImage!="object")throw TypeError(".bilibili.app.distribution.experimental.v1.TopLeft.iosStoryBackgroundImage: object expected");n.iosStoryBackgroundImage=u.bilibili.app.distribution.v1.StringValue.fromObject(i.iosStoryBackgroundImage)}if(i.iosListenForegroundImage!=null){if(typeof i.iosListenForegroundImage!="object")throw TypeError(".bilibili.app.distribution.experimental.v1.TopLeft.iosListenForegroundImage: object expected");n.iosListenForegroundImage=u.bilibili.app.distribution.v1.StringValue.fromObject(i.iosListenForegroundImage)}if(i.iosListenBackgroundImage!=null){if(typeof i.iosListenBackgroundImage!="object")throw TypeError(".bilibili.app.distribution.experimental.v1.TopLeft.iosListenBackgroundImage: object expected");n.iosListenBackgroundImage=u.bilibili.app.distribution.v1.StringValue.fromObject(i.iosListenBackgroundImage)}if(i.goto!=null){if(typeof i.goto!="object")throw TypeError(".bilibili.app.distribution.experimental.v1.TopLeft.goto: object expected");n.goto=u.bilibili.app.distribution.v1.StringValue.fromObject(i.goto)}if(i.urlV2!=null){if(typeof i.urlV2!="object")throw TypeError(".bilibili.app.distribution.experimental.v1.TopLeft.urlV2: object expected");n.urlV2=u.bilibili.app.distribution.v1.StringValue.fromObject(i.urlV2)}if(i.gotoV2!=null){if(typeof i.gotoV2!="object")throw TypeError(".bilibili.app.distribution.experimental.v1.TopLeft.gotoV2: object expected");n.gotoV2=u.bilibili.app.distribution.v1.Int64Value.fromObject(i.gotoV2)}if(i.badge!=null){if(typeof i.badge!="object")throw TypeError(".bilibili.app.distribution.experimental.v1.TopLeft.badge: object expected");n.badge=u.bilibili.app.distribution.v1.StringValue.fromObject(i.badge)}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.url=null,o.storyForegroundImage=null,o.storyBackgroundImage=null,o.listenForegroundImage=null,o.listenBackgroundImage=null,o.iosStoryForegroundImage=null,o.iosStoryBackgroundImage=null,o.iosListenForegroundImage=null,o.iosListenBackgroundImage=null,o.goto=null,o.urlV2=null,o.gotoV2=null,o.badge=null),i.url!=null&&i.hasOwnProperty("url")&&(o.url=u.bilibili.app.distribution.v1.StringValue.toObject(i.url,n)),i.storyForegroundImage!=null&&i.hasOwnProperty("storyForegroundImage")&&(o.storyForegroundImage=u.bilibili.app.distribution.v1.StringValue.toObject(i.storyForegroundImage,n)),i.storyBackgroundImage!=null&&i.hasOwnProperty("storyBackgroundImage")&&(o.storyBackgroundImage=u.bilibili.app.distribution.v1.StringValue.toObject(i.storyBackgroundImage,n)),i.listenForegroundImage!=null&&i.hasOwnProperty("listenForegroundImage")&&(o.listenForegroundImage=u.bilibili.app.distribution.v1.StringValue.toObject(i.listenForegroundImage,n)),i.listenBackgroundImage!=null&&i.hasOwnProperty("listenBackgroundImage")&&(o.listenBackgroundImage=u.bilibili.app.distribution.v1.StringValue.toObject(i.listenBackgroundImage,n)),i.iosStoryForegroundImage!=null&&i.hasOwnProperty("iosStoryForegroundImage")&&(o.iosStoryForegroundImage=u.bilibili.app.distribution.v1.StringValue.toObject(i.iosStoryForegroundImage,n)),i.iosStoryBackgroundImage!=null&&i.hasOwnProperty("iosStoryBackgroundImage")&&(o.iosStoryBackgroundImage=u.bilibili.app.distribution.v1.StringValue.toObject(i.iosStoryBackgroundImage,n)),i.iosListenForegroundImage!=null&&i.hasOwnProperty("iosListenForegroundImage")&&(o.iosListenForegroundImage=u.bilibili.app.distribution.v1.StringValue.toObject(i.iosListenForegroundImage,n)),i.iosListenBackgroundImage!=null&&i.hasOwnProperty("iosListenBackgroundImage")&&(o.iosListenBackgroundImage=u.bilibili.app.distribution.v1.StringValue.toObject(i.iosListenBackgroundImage,n)),i.goto!=null&&i.hasOwnProperty("goto")&&(o.goto=u.bilibili.app.distribution.v1.StringValue.toObject(i.goto,n)),i.urlV2!=null&&i.hasOwnProperty("urlV2")&&(o.urlV2=u.bilibili.app.distribution.v1.StringValue.toObject(i.urlV2,n)),i.gotoV2!=null&&i.hasOwnProperty("gotoV2")&&(o.gotoV2=u.bilibili.app.distribution.v1.Int64Value.toObject(i.gotoV2,n)),i.badge!=null&&i.hasOwnProperty("badge")&&(o.badge=u.bilibili.app.distribution.v1.StringValue.toObject(i.badge,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.app.distribution.experimental.v1.TopLeft"},l}(),e.DynamicSelect=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.fold=u.bilibili.app.distribution.v1.BoolValue.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.app.distribution.experimental.v1.DynamicSelect)return i;let n=new u.bilibili.app.distribution.experimental.v1.DynamicSelect;if(i.fold!=null){if(typeof i.fold!="object")throw TypeError(".bilibili.app.distribution.experimental.v1.DynamicSelect.fold: object expected");n.fold=u.bilibili.app.distribution.v1.BoolValue.fromObject(i.fold)}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.fold=null),i.fold!=null&&i.hasOwnProperty("fold")&&(o.fold=u.bilibili.app.distribution.v1.BoolValue.toObject(i.fold,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.app.distribution.experimental.v1.DynamicSelect"},l}(),e}(),c}(),p.internaldevice=function(){let c={};return c.v1=function(){let e={};return e.InternalDeviceConfig=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.fts=u.bilibili.app.distribution.v1.Int64Value.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.app.distribution.internaldevice.v1.InternalDeviceConfig)return i;let n=new u.bilibili.app.distribution.internaldevice.v1.InternalDeviceConfig;if(i.fts!=null){if(typeof i.fts!="object")throw TypeError(".bilibili.app.distribution.internaldevice.v1.InternalDeviceConfig.fts: object expected");n.fts=u.bilibili.app.distribution.v1.Int64Value.fromObject(i.fts)}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.fts=null),i.fts!=null&&i.hasOwnProperty("fts")&&(o.fts=u.bilibili.app.distribution.v1.Int64Value.toObject(i.fts,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.app.distribution.internaldevice.v1.InternalDeviceConfig"},l}(),e}(),c}(),p.night=function(){let c={};return c.v1=function(){let e={};return e.NightSettingsConfig=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.isNightFollowSystem=u.bilibili.app.distribution.v1.BoolValue.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.app.distribution.night.v1.NightSettingsConfig)return i;let n=new u.bilibili.app.distribution.night.v1.NightSettingsConfig;if(i.isNightFollowSystem!=null){if(typeof i.isNightFollowSystem!="object")throw TypeError(".bilibili.app.distribution.night.v1.NightSettingsConfig.isNightFollowSystem: object expected");n.isNightFollowSystem=u.bilibili.app.distribution.v1.BoolValue.fromObject(i.isNightFollowSystem)}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.isNightFollowSystem=null),i.isNightFollowSystem!=null&&i.hasOwnProperty("isNightFollowSystem")&&(o.isNightFollowSystem=u.bilibili.app.distribution.v1.BoolValue.toObject(i.isNightFollowSystem,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.app.distribution.night.v1.NightSettingsConfig"},l}(),e}(),c}(),p.other=function(){let c={};return c.v1=function(){let e={};return e.OtherSettingsConfig=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.watermarkType=u.bilibili.app.distribution.v1.Int64Value.decode(i,i.uint32());break}case 2:{a.webImageQualityType=u.bilibili.app.distribution.v1.Int64Value.decode(i,i.uint32());break}case 3:{a.enableReadPasteboard=u.bilibili.app.distribution.v1.BoolValue.decode(i,i.uint32());break}case 4:{a.pasteAutoJump=u.bilibili.app.distribution.v1.BoolValue.decode(i,i.uint32());break}case 5:{a.miniScreenPlayWhenBack=u.bilibili.app.distribution.v1.BoolValue.decode(i,i.uint32());break}case 6:{a.enableResumePlaying=u.bilibili.app.distribution.v1.BoolValue.decode(i,i.uint32());break}case 7:{a.enableWifiAutoUpdate=u.bilibili.app.distribution.v1.BoolValue.decode(i,i.uint32());break}case 8:{a.enableGuideScreenshotShare=u.bilibili.app.distribution.v1.BoolValue.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.app.distribution.other.v1.OtherSettingsConfig)return i;let n=new u.bilibili.app.distribution.other.v1.OtherSettingsConfig;if(i.watermarkType!=null){if(typeof i.watermarkType!="object")throw TypeError(".bilibili.app.distribution.other.v1.OtherSettingsConfig.watermarkType: object expected");n.watermarkType=u.bilibili.app.distribution.v1.Int64Value.fromObject(i.watermarkType)}if(i.webImageQualityType!=null){if(typeof i.webImageQualityType!="object")throw TypeError(".bilibili.app.distribution.other.v1.OtherSettingsConfig.webImageQualityType: object expected");n.webImageQualityType=u.bilibili.app.distribution.v1.Int64Value.fromObject(i.webImageQualityType)}if(i.enableReadPasteboard!=null){if(typeof i.enableReadPasteboard!="object")throw TypeError(".bilibili.app.distribution.other.v1.OtherSettingsConfig.enableReadPasteboard: object expected");n.enableReadPasteboard=u.bilibili.app.distribution.v1.BoolValue.fromObject(i.enableReadPasteboard)}if(i.pasteAutoJump!=null){if(typeof i.pasteAutoJump!="object")throw TypeError(".bilibili.app.distribution.other.v1.OtherSettingsConfig.pasteAutoJump: object expected");n.pasteAutoJump=u.bilibili.app.distribution.v1.BoolValue.fromObject(i.pasteAutoJump)}if(i.miniScreenPlayWhenBack!=null){if(typeof i.miniScreenPlayWhenBack!="object")throw TypeError(".bilibili.app.distribution.other.v1.OtherSettingsConfig.miniScreenPlayWhenBack: object expected");n.miniScreenPlayWhenBack=u.bilibili.app.distribution.v1.BoolValue.fromObject(i.miniScreenPlayWhenBack)}if(i.enableResumePlaying!=null){if(typeof i.enableResumePlaying!="object")throw TypeError(".bilibili.app.distribution.other.v1.OtherSettingsConfig.enableResumePlaying: object expected");n.enableResumePlaying=u.bilibili.app.distribution.v1.BoolValue.fromObject(i.enableResumePlaying)}if(i.enableWifiAutoUpdate!=null){if(typeof i.enableWifiAutoUpdate!="object")throw TypeError(".bilibili.app.distribution.other.v1.OtherSettingsConfig.enableWifiAutoUpdate: object expected");n.enableWifiAutoUpdate=u.bilibili.app.distribution.v1.BoolValue.fromObject(i.enableWifiAutoUpdate)}if(i.enableGuideScreenshotShare!=null){if(typeof i.enableGuideScreenshotShare!="object")throw TypeError(".bilibili.app.distribution.other.v1.OtherSettingsConfig.enableGuideScreenshotShare: object expected");n.enableGuideScreenshotShare=u.bilibili.app.distribution.v1.BoolValue.fromObject(i.enableGuideScreenshotShare)}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.watermarkType=null,o.webImageQualityType=null,o.enableReadPasteboard=null,o.pasteAutoJump=null,o.miniScreenPlayWhenBack=null,o.enableResumePlaying=null,o.enableWifiAutoUpdate=null,o.enableGuideScreenshotShare=null),i.watermarkType!=null&&i.hasOwnProperty("watermarkType")&&(o.watermarkType=u.bilibili.app.distribution.v1.Int64Value.toObject(i.watermarkType,n)),i.webImageQualityType!=null&&i.hasOwnProperty("webImageQualityType")&&(o.webImageQualityType=u.bilibili.app.distribution.v1.Int64Value.toObject(i.webImageQualityType,n)),i.enableReadPasteboard!=null&&i.hasOwnProperty("enableReadPasteboard")&&(o.enableReadPasteboard=u.bilibili.app.distribution.v1.BoolValue.toObject(i.enableReadPasteboard,n)),i.pasteAutoJump!=null&&i.hasOwnProperty("pasteAutoJump")&&(o.pasteAutoJump=u.bilibili.app.distribution.v1.BoolValue.toObject(i.pasteAutoJump,n)),i.miniScreenPlayWhenBack!=null&&i.hasOwnProperty("miniScreenPlayWhenBack")&&(o.miniScreenPlayWhenBack=u.bilibili.app.distribution.v1.BoolValue.toObject(i.miniScreenPlayWhenBack,n)),i.enableResumePlaying!=null&&i.hasOwnProperty("enableResumePlaying")&&(o.enableResumePlaying=u.bilibili.app.distribution.v1.BoolValue.toObject(i.enableResumePlaying,n)),i.enableWifiAutoUpdate!=null&&i.hasOwnProperty("enableWifiAutoUpdate")&&(o.enableWifiAutoUpdate=u.bilibili.app.distribution.v1.BoolValue.toObject(i.enableWifiAutoUpdate,n)),i.enableGuideScreenshotShare!=null&&i.hasOwnProperty("enableGuideScreenshotShare")&&(o.enableGuideScreenshotShare=u.bilibili.app.distribution.v1.BoolValue.toObject(i.enableGuideScreenshotShare,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.app.distribution.other.v1.OtherSettingsConfig"},l.WatermarkType=function(){let t={},i=Object.create(t);return i[t[0]="WT_UNKNOW"]=0,i[t[1]="None"]=1,i[t[2]="Center"]=2,i[t[3]="BottomRight"]=3,i}(),l.WebImageQualityType=function(){let t={},i=Object.create(t);return i[t[0]="High"]=0,i[t[1]="Low"]=1,i[t[2]="Auto"]=2,i}(),l}(),e.MidPrivacySettingsConfig=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.recommendToKnown=u.bilibili.app.distribution.v1.BoolValue.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.app.distribution.other.v1.MidPrivacySettingsConfig)return i;let n=new u.bilibili.app.distribution.other.v1.MidPrivacySettingsConfig;if(i.recommendToKnown!=null){if(typeof i.recommendToKnown!="object")throw TypeError(".bilibili.app.distribution.other.v1.MidPrivacySettingsConfig.recommendToKnown: object expected");n.recommendToKnown=u.bilibili.app.distribution.v1.BoolValue.fromObject(i.recommendToKnown)}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.recommendToKnown=null),i.recommendToKnown!=null&&i.hasOwnProperty("recommendToKnown")&&(o.recommendToKnown=u.bilibili.app.distribution.v1.BoolValue.toObject(i.recommendToKnown,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.app.distribution.other.v1.MidPrivacySettingsConfig"},l}(),e.PrivacySettingsConfig=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.adRecommandStore=u.bilibili.app.distribution.v1.BoolValue.decode(i,i.uint32());break}case 2:{a.sensorAccess=u.bilibili.app.distribution.v1.BoolValue.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.app.distribution.other.v1.PrivacySettingsConfig)return i;let n=new u.bilibili.app.distribution.other.v1.PrivacySettingsConfig;if(i.adRecommandStore!=null){if(typeof i.adRecommandStore!="object")throw TypeError(".bilibili.app.distribution.other.v1.PrivacySettingsConfig.adRecommandStore: object expected");n.adRecommandStore=u.bilibili.app.distribution.v1.BoolValue.fromObject(i.adRecommandStore)}if(i.sensorAccess!=null){if(typeof i.sensorAccess!="object")throw TypeError(".bilibili.app.distribution.other.v1.PrivacySettingsConfig.sensorAccess: object expected");n.sensorAccess=u.bilibili.app.distribution.v1.BoolValue.fromObject(i.sensorAccess)}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.adRecommandStore=null,o.sensorAccess=null),i.adRecommandStore!=null&&i.hasOwnProperty("adRecommandStore")&&(o.adRecommandStore=u.bilibili.app.distribution.v1.BoolValue.toObject(i.adRecommandStore,n)),i.sensorAccess!=null&&i.hasOwnProperty("sensorAccess")&&(o.sensorAccess=u.bilibili.app.distribution.v1.BoolValue.toObject(i.sensorAccess,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.app.distribution.other.v1.PrivacySettingsConfig"},l}(),e}(),c}(),p.pegasus=function(){let c={};return c.v1=function(){let e={};return e.PegasusMidConfig=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.column=u.bilibili.app.distribution.v1.Int64Value.decode(i,i.uint32());break}case 2:{a.playMode=u.bilibili.app.distribution.v1.Int64Value.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.app.distribution.pegasus.v1.PegasusMidConfig)return i;let n=new u.bilibili.app.distribution.pegasus.v1.PegasusMidConfig;if(i.column!=null){if(typeof i.column!="object")throw TypeError(".bilibili.app.distribution.pegasus.v1.PegasusMidConfig.column: object expected");n.column=u.bilibili.app.distribution.v1.Int64Value.fromObject(i.column)}if(i.playMode!=null){if(typeof i.playMode!="object")throw TypeError(".bilibili.app.distribution.pegasus.v1.PegasusMidConfig.playMode: object expected");n.playMode=u.bilibili.app.distribution.v1.Int64Value.fromObject(i.playMode)}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.column=null,o.playMode=null),i.column!=null&&i.hasOwnProperty("column")&&(o.column=u.bilibili.app.distribution.v1.Int64Value.toObject(i.column,n)),i.playMode!=null&&i.hasOwnProperty("playMode")&&(o.playMode=u.bilibili.app.distribution.v1.Int64Value.toObject(i.playMode,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.app.distribution.pegasus.v1.PegasusMidConfig"},l.ColumnValue=function(){let t={},i=Object.create(t);return i[t[0]="PC_UNKNOW"]=0,i[t[1]="ServerSingle"]=1,i[t[2]="ServerDouble"]=2,i[t[3]="Single"]=3,i[t[4]="Double"]=4,i}(),l.PlayModeValue=function(){let t={},i=Object.create(t);return i[t[0]="PM_UNKNOWN"]=0,i[t[1]="ServerAutoPlay"]=1,i[t[2]="ServereStory"]=2,i[t[11]="AutoPlay"]=11,i[t[12]="Story"]=12,i}(),l}(),e.PegasusDeviceConfig=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.column=u.bilibili.app.distribution.pegasus.v1.PegasusColumnValue.decode(i,i.uint32());break}case 2:{a.mode=u.bilibili.app.distribution.pegasus.v1.FeedModeValue.decode(i,i.uint32());break}case 3:{a.autoPlay=u.bilibili.app.distribution.pegasus.v1.PegasusAutoPlay.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.app.distribution.pegasus.v1.PegasusDeviceConfig)return i;let n=new u.bilibili.app.distribution.pegasus.v1.PegasusDeviceConfig;if(i.column!=null){if(typeof i.column!="object")throw TypeError(".bilibili.app.distribution.pegasus.v1.PegasusDeviceConfig.column: object expected");n.column=u.bilibili.app.distribution.pegasus.v1.PegasusColumnValue.fromObject(i.column)}if(i.mode!=null){if(typeof i.mode!="object")throw TypeError(".bilibili.app.distribution.pegasus.v1.PegasusDeviceConfig.mode: object expected");n.mode=u.bilibili.app.distribution.pegasus.v1.FeedModeValue.fromObject(i.mode)}if(i.autoPlay!=null){if(typeof i.autoPlay!="object")throw TypeError(".bilibili.app.distribution.pegasus.v1.PegasusDeviceConfig.autoPlay: object expected");n.autoPlay=u.bilibili.app.distribution.pegasus.v1.PegasusAutoPlay.fromObject(i.autoPlay)}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.column=null,o.mode=null,o.autoPlay=null),i.column!=null&&i.hasOwnProperty("column")&&(o.column=u.bilibili.app.distribution.pegasus.v1.PegasusColumnValue.toObject(i.column,n)),i.mode!=null&&i.hasOwnProperty("mode")&&(o.mode=u.bilibili.app.distribution.pegasus.v1.FeedModeValue.toObject(i.mode,n)),i.autoPlay!=null&&i.hasOwnProperty("autoPlay")&&(o.autoPlay=u.bilibili.app.distribution.pegasus.v1.PegasusAutoPlay.toObject(i.autoPlay,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.app.distribution.pegasus.v1.PegasusDeviceConfig"},l}(),e.PegasusColumnValue=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.value=u.bilibili.app.distribution.v1.Int64Value.decode(i,i.uint32());break}case 2:{a.affectedByServerSide=u.bilibili.app.distribution.v1.BoolValue.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.app.distribution.pegasus.v1.PegasusColumnValue)return i;let n=new u.bilibili.app.distribution.pegasus.v1.PegasusColumnValue;if(i.value!=null){if(typeof i.value!="object")throw TypeError(".bilibili.app.distribution.pegasus.v1.PegasusColumnValue.value: object expected");n.value=u.bilibili.app.distribution.v1.Int64Value.fromObject(i.value)}if(i.affectedByServerSide!=null){if(typeof i.affectedByServerSide!="object")throw TypeError(".bilibili.app.distribution.pegasus.v1.PegasusColumnValue.affectedByServerSide: object expected");n.affectedByServerSide=u.bilibili.app.distribution.v1.BoolValue.fromObject(i.affectedByServerSide)}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.value=null,o.affectedByServerSide=null),i.value!=null&&i.hasOwnProperty("value")&&(o.value=u.bilibili.app.distribution.v1.Int64Value.toObject(i.value,n)),i.affectedByServerSide!=null&&i.hasOwnProperty("affectedByServerSide")&&(o.affectedByServerSide=u.bilibili.app.distribution.v1.BoolValue.toObject(i.affectedByServerSide,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.app.distribution.pegasus.v1.PegasusColumnValue"},l.PegasusColumn=function(){let t={},i=Object.create(t);return i[t[0]="PC_UNKNOW"]=0,i[t[1]="Single"]=1,i[t[2]="Double"]=2,i[t[3]="Triple"]=3,i}(),l}(),e.FeedModeValue=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.value=u.bilibili.app.distribution.v1.Int64Value.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.app.distribution.pegasus.v1.FeedModeValue)return i;let n=new u.bilibili.app.distribution.pegasus.v1.FeedModeValue;if(i.value!=null){if(typeof i.value!="object")throw TypeError(".bilibili.app.distribution.pegasus.v1.FeedModeValue.value: object expected");n.value=u.bilibili.app.distribution.v1.Int64Value.fromObject(i.value)}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.value=null),i.value!=null&&i.hasOwnProperty("value")&&(o.value=u.bilibili.app.distribution.v1.Int64Value.toObject(i.value,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.app.distribution.pegasus.v1.FeedModeValue"},l.FeedMode=function(){let t={},i=Object.create(t);return i[t[0]="FM_UNKNOW"]=0,i[t[1]="Regular"]=1,i[t[2]="OnlyFollowing"]=2,i}(),l}(),e.PegasusAutoPlay=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.single=u.bilibili.app.distribution.v1.Int64Value.decode(i,i.uint32());break}case 2:{a.double=u.bilibili.app.distribution.v1.Int64Value.decode(i,i.uint32());break}case 3:{a.singleAffectedByServerSide=u.bilibili.app.distribution.v1.BoolValue.decode(i,i.uint32());break}case 4:{a.doubleAffectedByServerSide=u.bilibili.app.distribution.v1.BoolValue.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.app.distribution.pegasus.v1.PegasusAutoPlay)return i;let n=new u.bilibili.app.distribution.pegasus.v1.PegasusAutoPlay;if(i.single!=null){if(typeof i.single!="object")throw TypeError(".bilibili.app.distribution.pegasus.v1.PegasusAutoPlay.single: object expected");n.single=u.bilibili.app.distribution.v1.Int64Value.fromObject(i.single)}if(i.double!=null){if(typeof i.double!="object")throw TypeError(".bilibili.app.distribution.pegasus.v1.PegasusAutoPlay.double: object expected");n.double=u.bilibili.app.distribution.v1.Int64Value.fromObject(i.double)}if(i.singleAffectedByServerSide!=null){if(typeof i.singleAffectedByServerSide!="object")throw TypeError(".bilibili.app.distribution.pegasus.v1.PegasusAutoPlay.singleAffectedByServerSide: object expected");n.singleAffectedByServerSide=u.bilibili.app.distribution.v1.BoolValue.fromObject(i.singleAffectedByServerSide)}if(i.doubleAffectedByServerSide!=null){if(typeof i.doubleAffectedByServerSide!="object")throw TypeError(".bilibili.app.distribution.pegasus.v1.PegasusAutoPlay.doubleAffectedByServerSide: object expected");n.doubleAffectedByServerSide=u.bilibili.app.distribution.v1.BoolValue.fromObject(i.doubleAffectedByServerSide)}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.single=null,o.double=null,o.singleAffectedByServerSide=null,o.doubleAffectedByServerSide=null),i.single!=null&&i.hasOwnProperty("single")&&(o.single=u.bilibili.app.distribution.v1.Int64Value.toObject(i.single,n)),i.double!=null&&i.hasOwnProperty("double")&&(o.double=u.bilibili.app.distribution.v1.Int64Value.toObject(i.double,n)),i.singleAffectedByServerSide!=null&&i.hasOwnProperty("singleAffectedByServerSide")&&(o.singleAffectedByServerSide=u.bilibili.app.distribution.v1.BoolValue.toObject(i.singleAffectedByServerSide,n)),i.doubleAffectedByServerSide!=null&&i.hasOwnProperty("doubleAffectedByServerSide")&&(o.doubleAffectedByServerSide=u.bilibili.app.distribution.v1.BoolValue.toObject(i.doubleAffectedByServerSide,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.app.distribution.pegasus.v1.PegasusAutoPlay"},l.AutoPlay=function(){let t={},i=Object.create(t);return i[t[0]="AP_UNKNOW"]=0,i[t[1]="Disable"]=1,i[t[2]="WIFIOnly"]=2,i[t[3]="WIFIAndCellular"]=3,i}(),l}(),e}(),c}(),p.play=function(){let c={};return c.v1=function(){let e={};return e.CloudPlayConfig=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.enablePanorama=u.bilibili.app.distribution.v1.BoolValue.decode(i,i.uint32());break}case 2:{a.enableDolby=u.bilibili.app.distribution.v1.BoolValue.decode(i,i.uint32());break}case 3:{a.enableShake=u.bilibili.app.distribution.v1.BoolValue.decode(i,i.uint32());break}case 4:{a.enableBackground=u.bilibili.app.distribution.v1.BoolValue.decode(i,i.uint32());break}case 5:{a.enableLossLess=u.bilibili.app.distribution.v1.BoolValue.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.app.distribution.play.v1.CloudPlayConfig)return i;let n=new u.bilibili.app.distribution.play.v1.CloudPlayConfig;if(i.enablePanorama!=null){if(typeof i.enablePanorama!="object")throw TypeError(".bilibili.app.distribution.play.v1.CloudPlayConfig.enablePanorama: object expected");n.enablePanorama=u.bilibili.app.distribution.v1.BoolValue.fromObject(i.enablePanorama)}if(i.enableDolby!=null){if(typeof i.enableDolby!="object")throw TypeError(".bilibili.app.distribution.play.v1.CloudPlayConfig.enableDolby: object expected");n.enableDolby=u.bilibili.app.distribution.v1.BoolValue.fromObject(i.enableDolby)}if(i.enableShake!=null){if(typeof i.enableShake!="object")throw TypeError(".bilibili.app.distribution.play.v1.CloudPlayConfig.enableShake: object expected");n.enableShake=u.bilibili.app.distribution.v1.BoolValue.fromObject(i.enableShake)}if(i.enableBackground!=null){if(typeof i.enableBackground!="object")throw TypeError(".bilibili.app.distribution.play.v1.CloudPlayConfig.enableBackground: object expected");n.enableBackground=u.bilibili.app.distribution.v1.BoolValue.fromObject(i.enableBackground)}if(i.enableLossLess!=null){if(typeof i.enableLossLess!="object")throw TypeError(".bilibili.app.distribution.play.v1.CloudPlayConfig.enableLossLess: object expected");n.enableLossLess=u.bilibili.app.distribution.v1.BoolValue.fromObject(i.enableLossLess)}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.enablePanorama=null,o.enableDolby=null,o.enableShake=null,o.enableBackground=null,o.enableLossLess=null),i.enablePanorama!=null&&i.hasOwnProperty("enablePanorama")&&(o.enablePanorama=u.bilibili.app.distribution.v1.BoolValue.toObject(i.enablePanorama,n)),i.enableDolby!=null&&i.hasOwnProperty("enableDolby")&&(o.enableDolby=u.bilibili.app.distribution.v1.BoolValue.toObject(i.enableDolby,n)),i.enableShake!=null&&i.hasOwnProperty("enableShake")&&(o.enableShake=u.bilibili.app.distribution.v1.BoolValue.toObject(i.enableShake,n)),i.enableBackground!=null&&i.hasOwnProperty("enableBackground")&&(o.enableBackground=u.bilibili.app.distribution.v1.BoolValue.toObject(i.enableBackground,n)),i.enableLossLess!=null&&i.hasOwnProperty("enableLossLess")&&(o.enableLossLess=u.bilibili.app.distribution.v1.BoolValue.toObject(i.enableLossLess,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.app.distribution.play.v1.CloudPlayConfig"},l}(),e.PlayConfig=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.shouldAutoPlay=u.bilibili.app.distribution.v1.BoolValue.decode(i,i.uint32());break}case 2:{a.shouldAutoFullScreen=u.bilibili.app.distribution.v1.BoolValue.decode(i,i.uint32());break}case 3:{a.enablePlayurlHTTPS=u.bilibili.app.distribution.v1.BoolValue.decode(i,i.uint32());break}case 4:{a.enableDanmakuInteraction=u.bilibili.app.distribution.v1.BoolValue.decode(i,i.uint32());break}case 5:{a.smallScreenStatus=u.bilibili.app.distribution.v1.Int64Value.decode(i,i.uint32());break}case 6:{a.playerCodecModeKey=u.bilibili.app.distribution.v1.Int64Value.decode(i,i.uint32());break}case 7:{a.enableGravityRotateScreen=u.bilibili.app.distribution.v1.BoolValue.decode(i,i.uint32());break}case 8:{a.enableDanmakuMonospaced=u.bilibili.app.distribution.v1.BoolValue.decode(i,i.uint32());break}case 9:{a.enableEditSubtitle=u.bilibili.app.distribution.v1.BoolValue.decode(i,i.uint32());break}case 10:{a.enableSubtitle=u.bilibili.app.distribution.v1.BoolValue.decode(i,i.uint32());break}case 11:{a.colorFilter=u.bilibili.app.distribution.v1.Int64Value.decode(i,i.uint32());break}case 12:{a.shouldAutoStory=u.bilibili.app.distribution.v1.BoolValue.decode(i,i.uint32());break}case 13:{a.landscapeAutoStory=u.bilibili.app.distribution.v1.BoolValue.decode(i,i.uint32());break}case 14:{a.volumeBalance=u.bilibili.app.distribution.v1.BoolValue.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.app.distribution.play.v1.PlayConfig)return i;let n=new u.bilibili.app.distribution.play.v1.PlayConfig;if(i.shouldAutoPlay!=null){if(typeof i.shouldAutoPlay!="object")throw TypeError(".bilibili.app.distribution.play.v1.PlayConfig.shouldAutoPlay: object expected");n.shouldAutoPlay=u.bilibili.app.distribution.v1.BoolValue.fromObject(i.shouldAutoPlay)}if(i.shouldAutoFullScreen!=null){if(typeof i.shouldAutoFullScreen!="object")throw TypeError(".bilibili.app.distribution.play.v1.PlayConfig.shouldAutoFullScreen: object expected");n.shouldAutoFullScreen=u.bilibili.app.distribution.v1.BoolValue.fromObject(i.shouldAutoFullScreen)}if(i.enablePlayurlHTTPS!=null){if(typeof i.enablePlayurlHTTPS!="object")throw TypeError(".bilibili.app.distribution.play.v1.PlayConfig.enablePlayurlHTTPS: object expected");n.enablePlayurlHTTPS=u.bilibili.app.distribution.v1.BoolValue.fromObject(i.enablePlayurlHTTPS)}if(i.enableDanmakuInteraction!=null){if(typeof i.enableDanmakuInteraction!="object")throw TypeError(".bilibili.app.distribution.play.v1.PlayConfig.enableDanmakuInteraction: object expected");n.enableDanmakuInteraction=u.bilibili.app.distribution.v1.BoolValue.fromObject(i.enableDanmakuInteraction)}if(i.smallScreenStatus!=null){if(typeof i.smallScreenStatus!="object")throw TypeError(".bilibili.app.distribution.play.v1.PlayConfig.smallScreenStatus: object expected");n.smallScreenStatus=u.bilibili.app.distribution.v1.Int64Value.fromObject(i.smallScreenStatus)}if(i.playerCodecModeKey!=null){if(typeof i.playerCodecModeKey!="object")throw TypeError(".bilibili.app.distribution.play.v1.PlayConfig.playerCodecModeKey: object expected");n.playerCodecModeKey=u.bilibili.app.distribution.v1.Int64Value.fromObject(i.playerCodecModeKey)}if(i.enableGravityRotateScreen!=null){if(typeof i.enableGravityRotateScreen!="object")throw TypeError(".bilibili.app.distribution.play.v1.PlayConfig.enableGravityRotateScreen: object expected");n.enableGravityRotateScreen=u.bilibili.app.distribution.v1.BoolValue.fromObject(i.enableGravityRotateScreen)}if(i.enableDanmakuMonospaced!=null){if(typeof i.enableDanmakuMonospaced!="object")throw TypeError(".bilibili.app.distribution.play.v1.PlayConfig.enableDanmakuMonospaced: object expected");n.enableDanmakuMonospaced=u.bilibili.app.distribution.v1.BoolValue.fromObject(i.enableDanmakuMonospaced)}if(i.enableEditSubtitle!=null){if(typeof i.enableEditSubtitle!="object")throw TypeError(".bilibili.app.distribution.play.v1.PlayConfig.enableEditSubtitle: object expected");n.enableEditSubtitle=u.bilibili.app.distribution.v1.BoolValue.fromObject(i.enableEditSubtitle)}if(i.enableSubtitle!=null){if(typeof i.enableSubtitle!="object")throw TypeError(".bilibili.app.distribution.play.v1.PlayConfig.enableSubtitle: object expected");n.enableSubtitle=u.bilibili.app.distribution.v1.BoolValue.fromObject(i.enableSubtitle)}if(i.colorFilter!=null){if(typeof i.colorFilter!="object")throw TypeError(".bilibili.app.distribution.play.v1.PlayConfig.colorFilter: object expected");n.colorFilter=u.bilibili.app.distribution.v1.Int64Value.fromObject(i.colorFilter)}if(i.shouldAutoStory!=null){if(typeof i.shouldAutoStory!="object")throw TypeError(".bilibili.app.distribution.play.v1.PlayConfig.shouldAutoStory: object expected");n.shouldAutoStory=u.bilibili.app.distribution.v1.BoolValue.fromObject(i.shouldAutoStory)}if(i.landscapeAutoStory!=null){if(typeof i.landscapeAutoStory!="object")throw TypeError(".bilibili.app.distribution.play.v1.PlayConfig.landscapeAutoStory: object expected");n.landscapeAutoStory=u.bilibili.app.distribution.v1.BoolValue.fromObject(i.landscapeAutoStory)}if(i.volumeBalance!=null){if(typeof i.volumeBalance!="object")throw TypeError(".bilibili.app.distribution.play.v1.PlayConfig.volumeBalance: object expected");n.volumeBalance=u.bilibili.app.distribution.v1.BoolValue.fromObject(i.volumeBalance)}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.shouldAutoPlay=null,o.shouldAutoFullScreen=null,o.enablePlayurlHTTPS=null,o.enableDanmakuInteraction=null,o.smallScreenStatus=null,o.playerCodecModeKey=null,o.enableGravityRotateScreen=null,o.enableDanmakuMonospaced=null,o.enableEditSubtitle=null,o.enableSubtitle=null,o.colorFilter=null,o.shouldAutoStory=null,o.landscapeAutoStory=null,o.volumeBalance=null),i.shouldAutoPlay!=null&&i.hasOwnProperty("shouldAutoPlay")&&(o.shouldAutoPlay=u.bilibili.app.distribution.v1.BoolValue.toObject(i.shouldAutoPlay,n)),i.shouldAutoFullScreen!=null&&i.hasOwnProperty("shouldAutoFullScreen")&&(o.shouldAutoFullScreen=u.bilibili.app.distribution.v1.BoolValue.toObject(i.shouldAutoFullScreen,n)),i.enablePlayurlHTTPS!=null&&i.hasOwnProperty("enablePlayurlHTTPS")&&(o.enablePlayurlHTTPS=u.bilibili.app.distribution.v1.BoolValue.toObject(i.enablePlayurlHTTPS,n)),i.enableDanmakuInteraction!=null&&i.hasOwnProperty("enableDanmakuInteraction")&&(o.enableDanmakuInteraction=u.bilibili.app.distribution.v1.BoolValue.toObject(i.enableDanmakuInteraction,n)),i.smallScreenStatus!=null&&i.hasOwnProperty("smallScreenStatus")&&(o.smallScreenStatus=u.bilibili.app.distribution.v1.Int64Value.toObject(i.smallScreenStatus,n)),i.playerCodecModeKey!=null&&i.hasOwnProperty("playerCodecModeKey")&&(o.playerCodecModeKey=u.bilibili.app.distribution.v1.Int64Value.toObject(i.playerCodecModeKey,n)),i.enableGravityRotateScreen!=null&&i.hasOwnProperty("enableGravityRotateScreen")&&(o.enableGravityRotateScreen=u.bilibili.app.distribution.v1.BoolValue.toObject(i.enableGravityRotateScreen,n)),i.enableDanmakuMonospaced!=null&&i.hasOwnProperty("enableDanmakuMonospaced")&&(o.enableDanmakuMonospaced=u.bilibili.app.distribution.v1.BoolValue.toObject(i.enableDanmakuMonospaced,n)),i.enableEditSubtitle!=null&&i.hasOwnProperty("enableEditSubtitle")&&(o.enableEditSubtitle=u.bilibili.app.distribution.v1.BoolValue.toObject(i.enableEditSubtitle,n)),i.enableSubtitle!=null&&i.hasOwnProperty("enableSubtitle")&&(o.enableSubtitle=u.bilibili.app.distribution.v1.BoolValue.toObject(i.enableSubtitle,n)),i.colorFilter!=null&&i.hasOwnProperty("colorFilter")&&(o.colorFilter=u.bilibili.app.distribution.v1.Int64Value.toObject(i.colorFilter,n)),i.shouldAutoStory!=null&&i.hasOwnProperty("shouldAutoStory")&&(o.shouldAutoStory=u.bilibili.app.distribution.v1.BoolValue.toObject(i.shouldAutoStory,n)),i.landscapeAutoStory!=null&&i.hasOwnProperty("landscapeAutoStory")&&(o.landscapeAutoStory=u.bilibili.app.distribution.v1.BoolValue.toObject(i.landscapeAutoStory,n)),i.volumeBalance!=null&&i.hasOwnProperty("volumeBalance")&&(o.volumeBalance=u.bilibili.app.distribution.v1.BoolValue.toObject(i.volumeBalance,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.app.distribution.play.v1.PlayConfig"},l.SmallScreenStatus=function(){let t={},i=Object.create(t);return i[t[0]="SSS_UNKNOW"]=0,i[t[1]="Small"]=1,i[t[2]="Default"]=2,i[t[3]="Large"]=3,i}(),l.PlayerCodecMode=function(){let t={},i=Object.create(t);return i[t[0]="Auto"]=0,i[t[1]="V3Hardware"]=1,i[t[2]="Software"]=2,i}(),l.ColorFilterEnum=function(){let t={},i=Object.create(t);return i[t[0]="NoColor"]=0,i[t[1]="Red"]=1,i[t[2]="Green"]=2,i[t[3]="Blue"]=3,i}(),l}(),e.SpecificPlayConfig=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.enableSegmentedSection=u.bilibili.app.distribution.v1.BoolValue.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.app.distribution.play.v1.SpecificPlayConfig)return i;let n=new u.bilibili.app.distribution.play.v1.SpecificPlayConfig;if(i.enableSegmentedSection!=null){if(typeof i.enableSegmentedSection!="object")throw TypeError(".bilibili.app.distribution.play.v1.SpecificPlayConfig.enableSegmentedSection: object expected");n.enableSegmentedSection=u.bilibili.app.distribution.v1.BoolValue.fromObject(i.enableSegmentedSection)}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.enableSegmentedSection=null),i.enableSegmentedSection!=null&&i.hasOwnProperty("enableSegmentedSection")&&(o.enableSegmentedSection=u.bilibili.app.distribution.v1.BoolValue.toObject(i.enableSegmentedSection,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.app.distribution.play.v1.SpecificPlayConfig"},l}(),e}(),c}(),p.search=function(){let c={};return c.v1=function(){let e={};return e.SearchDeviceConfig=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.autoPlay=u.bilibili.app.distribution.search.v1.SearchAutoPlay.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.app.distribution.search.v1.SearchDeviceConfig)return i;let n=new u.bilibili.app.distribution.search.v1.SearchDeviceConfig;if(i.autoPlay!=null){if(typeof i.autoPlay!="object")throw TypeError(".bilibili.app.distribution.search.v1.SearchDeviceConfig.autoPlay: object expected");n.autoPlay=u.bilibili.app.distribution.search.v1.SearchAutoPlay.fromObject(i.autoPlay)}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.autoPlay=null),i.autoPlay!=null&&i.hasOwnProperty("autoPlay")&&(o.autoPlay=u.bilibili.app.distribution.search.v1.SearchAutoPlay.toObject(i.autoPlay,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.app.distribution.search.v1.SearchDeviceConfig"},l}(),e.SearchAutoPlay=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.value=u.bilibili.app.distribution.v1.Int64Value.decode(i,i.uint32());break}case 2:{a.affectedByServerSide=u.bilibili.app.distribution.v1.BoolValue.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.app.distribution.search.v1.SearchAutoPlay)return i;let n=new u.bilibili.app.distribution.search.v1.SearchAutoPlay;if(i.value!=null){if(typeof i.value!="object")throw TypeError(".bilibili.app.distribution.search.v1.SearchAutoPlay.value: object expected");n.value=u.bilibili.app.distribution.v1.Int64Value.fromObject(i.value)}if(i.affectedByServerSide!=null){if(typeof i.affectedByServerSide!="object")throw TypeError(".bilibili.app.distribution.search.v1.SearchAutoPlay.affectedByServerSide: object expected");n.affectedByServerSide=u.bilibili.app.distribution.v1.BoolValue.fromObject(i.affectedByServerSide)}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.value=null,o.affectedByServerSide=null),i.value!=null&&i.hasOwnProperty("value")&&(o.value=u.bilibili.app.distribution.v1.Int64Value.toObject(i.value,n)),i.affectedByServerSide!=null&&i.hasOwnProperty("affectedByServerSide")&&(o.affectedByServerSide=u.bilibili.app.distribution.v1.BoolValue.toObject(i.affectedByServerSide,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.app.distribution.search.v1.SearchAutoPlay"},l.AutoPlay=function(){let t={},i=Object.create(t);return i[t[0]="AP_UNKNOW"]=0,i[t[1]="Disable"]=1,i[t[2]="WIFIOnly"]=2,i[t[3]="WIFIAndCellular"]=3,i}(),l}(),e}(),c}(),p.story=function(){let c={};return c.v1=function(){let e={};return e.MidStoryConfig=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.GestureType=u.bilibili.app.distribution.v1.Int64Value.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.app.distribution.story.v1.MidStoryConfig)return i;let n=new u.bilibili.app.distribution.story.v1.MidStoryConfig;if(i.GestureType!=null){if(typeof i.GestureType!="object")throw TypeError(".bilibili.app.distribution.story.v1.MidStoryConfig.GestureType: object expected");n.GestureType=u.bilibili.app.distribution.v1.Int64Value.fromObject(i.GestureType)}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.GestureType=null),i.GestureType!=null&&i.hasOwnProperty("GestureType")&&(o.GestureType=u.bilibili.app.distribution.v1.Int64Value.toObject(i.GestureType,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.app.distribution.story.v1.MidStoryConfig"},l.GestureTypeEnum=function(){let t={},i=Object.create(t);return i[t[0]="GESTURETYPE_UNKNOWN"]=0,i[t[1]="SINGLE_TAP_PAUSE"]=1,i[t[2]="DOUBLE_TAP_PAUSE"]=2,i}(),l}(),e.StoryConfig=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.GestureType=u.bilibili.app.distribution.v1.Int64Value.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.app.distribution.story.v1.StoryConfig)return i;let n=new u.bilibili.app.distribution.story.v1.StoryConfig;if(i.GestureType!=null){if(typeof i.GestureType!="object")throw TypeError(".bilibili.app.distribution.story.v1.StoryConfig.GestureType: object expected");n.GestureType=u.bilibili.app.distribution.v1.Int64Value.fromObject(i.GestureType)}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.GestureType=null),i.GestureType!=null&&i.hasOwnProperty("GestureType")&&(o.GestureType=u.bilibili.app.distribution.v1.Int64Value.toObject(i.GestureType,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.app.distribution.story.v1.StoryConfig"},l.GestureTypeEnum=function(){let t={},i=Object.create(t);return i[t[0]="GESTURETYPE_UNKNOWN"]=0,i[t[1]="SINGLE_TAP_PAUSE"]=1,i[t[2]="DOUBLE_TAP_PAUSE"]=2,i}(),l}(),e}(),c}(),p}(),d.dynamic=function(){let p={};return p.common=function(){let c={};return c.WHRatio=function(){let e={},l=Object.create(e);return l[e[0]="W_H_RATIO_1_1"]=0,l[e[1]="W_H_RATIO_16_9"]=1,l[e[2]="W_H_RATIO_3_4"]=2,l[e[3]="W_H_RATIO_CUSTOM"]=3,l}(),c.ItemWHRatio=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.ratio=t.int32();break}case 2:{o.width=t.int32();break}case 3:{o.height=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.common.ItemWHRatio)return t;let i=new u.bilibili.app.dynamic.common.ItemWHRatio;switch(t.ratio){default:if(typeof t.ratio=="number"){i.ratio=t.ratio;break}break;case"W_H_RATIO_1_1":case 0:i.ratio=0;break;case"W_H_RATIO_16_9":case 1:i.ratio=1;break;case"W_H_RATIO_3_4":case 2:i.ratio=2;break;case"W_H_RATIO_CUSTOM":case 3:i.ratio=3;break}return t.width!=null&&(i.width=t.width|0),t.height!=null&&(i.height=t.height|0),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.ratio=i.enums===String?"W_H_RATIO_1_1":0,n.width=0,n.height=0),t.ratio!=null&&t.hasOwnProperty("ratio")&&(n.ratio=i.enums===String?u.bilibili.app.dynamic.common.WHRatio[t.ratio]===void 0?t.ratio:u.bilibili.app.dynamic.common.WHRatio[t.ratio]:t.ratio),t.width!=null&&t.hasOwnProperty("width")&&(n.width=t.width),t.height!=null&&t.hasOwnProperty("height")&&(n.height=t.height),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.common.ItemWHRatio"},e}(),c}(),p.v1=function(){let c={};return c.Dynamic=function(){function e(l,t,i){b.rpc.Service.call(this,l,t,i)}return(e.prototype=Object.create(b.rpc.Service.prototype)).constructor=e,e.create=function(t,i,n){return new this(t,i,n)},Object.defineProperty(e.prototype.dynVideo=function l(t,i){return this.rpcCall(l,u.bilibili.app.dynamic.v1.DynVideoReq,u.bilibili.app.dynamic.v1.DynVideoReqReply,t,i)},"name",{value:"DynVideo"}),Object.defineProperty(e.prototype.dynDetails=function l(t,i){return this.rpcCall(l,u.bilibili.app.dynamic.v1.DynDetailsReq,u.bilibili.app.dynamic.v1.DynDetailsReply,t,i)},"name",{value:"DynDetails"}),Object.defineProperty(e.prototype.sVideo=function l(t,i){return this.rpcCall(l,u.bilibili.app.dynamic.v1.SVideoReq,u.bilibili.app.dynamic.v1.SVideoReply,t,i)},"name",{value:"SVideo"}),Object.defineProperty(e.prototype.dynTab=function l(t,i){return this.rpcCall(l,u.bilibili.app.dynamic.v1.DynTabReq,u.bilibili.app.dynamic.v1.DynTabReply,t,i)},"name",{value:"DynTab"}),Object.defineProperty(e.prototype.dynOurCitySwitch=function l(t,i){return this.rpcCall(l,u.bilibili.app.dynamic.v1.DynOurCitySwitchReq,u.bilibili.app.dynamic.v1.NoReply,t,i)},"name",{value:"DynOurCitySwitch"}),Object.defineProperty(e.prototype.dynOurCity=function l(t,i){return this.rpcCall(l,u.bilibili.app.dynamic.v1.DynOurCityReq,u.bilibili.app.dynamic.v1.DynOurCityReply,t,i)},"name",{value:"DynOurCity"}),Object.defineProperty(e.prototype.dynVideoPersonal=function l(t,i){return this.rpcCall(l,u.bilibili.app.dynamic.v1.DynVideoPersonalReq,u.bilibili.app.dynamic.v1.DynVideoPersonalReply,t,i)},"name",{value:"DynVideoPersonal"}),Object.defineProperty(e.prototype.dynUpdOffset=function l(t,i){return this.rpcCall(l,u.bilibili.app.dynamic.v1.DynUpdOffsetReq,u.bilibili.app.dynamic.v1.NoReply,t,i)},"name",{value:"DynUpdOffset"}),Object.defineProperty(e.prototype.dynRed=function l(t,i){return this.rpcCall(l,u.bilibili.app.dynamic.v1.DynRedReq,u.bilibili.app.dynamic.v1.DynRedReply,t,i)},"name",{value:"DynRed"}),Object.defineProperty(e.prototype.dynMixUpListViewMore=function l(t,i){return this.rpcCall(l,u.bilibili.app.dynamic.v1.NoReq,u.bilibili.app.dynamic.v1.DynMixUpListViewMoreReply,t,i)},"name",{value:"DynMixUpListViewMore"}),Object.defineProperty(e.prototype.dynMixUpListSearch=function l(t,i){return this.rpcCall(l,u.bilibili.app.dynamic.v1.DynMixUpListSearchReq,u.bilibili.app.dynamic.v1.DynMixUpListSearchReply,t,i)},"name",{value:"DynMixUpListSearch"}),Object.defineProperty(e.prototype.ourCityClickReport=function l(t,i){return this.rpcCall(l,u.bilibili.app.dynamic.v1.OurCityClickReportReq,u.bilibili.app.dynamic.v1.OurCityClickReportReply,t,i)},"name",{value:"OurCityClickReport"}),Object.defineProperty(e.prototype.geoCoder=function l(t,i){return this.rpcCall(l,u.bilibili.app.dynamic.v1.GeoCoderReq,u.bilibili.app.dynamic.v1.GeoCoderReply,t,i)},"name",{value:"GeoCoder"}),e}(),c.NoReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){default:t.skipType(a&7);break}}return o},e.fromObject=function(t){return t instanceof u.bilibili.app.dynamic.v1.NoReq?t:new u.bilibili.app.dynamic.v1.NoReq},e.toObject=function(){return{}},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v1.NoReq"},e}(),c.NoReply=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){default:t.skipType(a&7);break}}return o},e.fromObject=function(t){return t instanceof u.bilibili.app.dynamic.v1.NoReply?t:new u.bilibili.app.dynamic.v1.NoReply},e.toObject=function(){return{}},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v1.NoReply"},e}(),c.DynVideoReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.teenagersMode=t.int32();break}case 2:{o.updateBaseline=t.string();break}case 3:{o.offset=t.string();break}case 4:{o.page=t.int32();break}case 5:{o.refreshType=t.int32();break}case 6:{o.qn=t.int32();break}case 7:{o.fnver=t.int32();break}case 8:{o.fnval=t.int32();break}case 9:{o.forceHost=t.int32();break}case 10:{o.fourk=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v1.DynVideoReq)return t;let i=new u.bilibili.app.dynamic.v1.DynVideoReq;return t.teenagersMode!=null&&(i.teenagersMode=t.teenagersMode|0),t.updateBaseline!=null&&(i.updateBaseline=String(t.updateBaseline)),t.offset!=null&&(i.offset=String(t.offset)),t.page!=null&&(i.page=t.page|0),t.refreshType!=null&&(i.refreshType=t.refreshType|0),t.qn!=null&&(i.qn=t.qn|0),t.fnver!=null&&(i.fnver=t.fnver|0),t.fnval!=null&&(i.fnval=t.fnval|0),t.forceHost!=null&&(i.forceHost=t.forceHost|0),t.fourk!=null&&(i.fourk=t.fourk|0),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.teenagersMode=0,n.updateBaseline="",n.offset="",n.page=0,n.refreshType=0,n.qn=0,n.fnver=0,n.fnval=0,n.forceHost=0,n.fourk=0),t.teenagersMode!=null&&t.hasOwnProperty("teenagersMode")&&(n.teenagersMode=t.teenagersMode),t.updateBaseline!=null&&t.hasOwnProperty("updateBaseline")&&(n.updateBaseline=t.updateBaseline),t.offset!=null&&t.hasOwnProperty("offset")&&(n.offset=t.offset),t.page!=null&&t.hasOwnProperty("page")&&(n.page=t.page),t.refreshType!=null&&t.hasOwnProperty("refreshType")&&(n.refreshType=t.refreshType),t.qn!=null&&t.hasOwnProperty("qn")&&(n.qn=t.qn),t.fnver!=null&&t.hasOwnProperty("fnver")&&(n.fnver=t.fnver),t.fnval!=null&&t.hasOwnProperty("fnval")&&(n.fnval=t.fnval),t.forceHost!=null&&t.hasOwnProperty("forceHost")&&(n.forceHost=t.forceHost),t.fourk!=null&&t.hasOwnProperty("fourk")&&(n.fourk=t.fourk),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v1.DynVideoReq"},e}(),c.DynVideoReqReply=function(){function e(l){if(this.list=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.list&&o.list.length||(o.list=[]),o.list.push(u.bilibili.app.dynamic.v1.DynamicItem.decode(t,t.uint32()));break}case 2:{o.updateNum=t.int32();break}case 3:{o.historyOffset=t.string();break}case 4:{o.updateBaseline=t.string();break}case 5:{o.hasMore=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v1.DynVideoReqReply)return t;let i=new u.bilibili.app.dynamic.v1.DynVideoReqReply;if(t.list){if(!Array.isArray(t.list))throw TypeError(".bilibili.app.dynamic.v1.DynVideoReqReply.list: array expected");i.list=[];for(let n=0;n>>3){case 1:{o.cardType=t.string();break}case 2:{o.itemType=t.string();break}case 3:{o.modules&&o.modules.length||(o.modules=[]),o.modules.push(u.bilibili.app.dynamic.v1.Module.decode(t,t.uint32()));break}case 4:{o.dynIdStr=t.string();break}case 5:{o.origDynIdStr=t.string();break}case 6:{o.rType=t.int32();break}case 7:{o.hasFold=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v1.DynamicItem)return t;let i=new u.bilibili.app.dynamic.v1.DynamicItem;if(t.cardType!=null&&(i.cardType=String(t.cardType)),t.itemType!=null&&(i.itemType=String(t.itemType)),t.modules){if(!Array.isArray(t.modules))throw TypeError(".bilibili.app.dynamic.v1.DynamicItem.modules: array expected");i.modules=[];for(let n=0;n>>3){case 1:{a.moduleType=i.string();break}case 2:{a.moduleFold=u.bilibili.app.dynamic.v1.ModuleFold.decode(i,i.uint32());break}case 3:{a.moduleAuthor=u.bilibili.app.dynamic.v1.ModuleAuthor.decode(i,i.uint32());break}case 4:{a.moduleDynamic=u.bilibili.app.dynamic.v1.ModuleDynamic.decode(i,i.uint32());break}case 5:{a.moduleState=u.bilibili.app.dynamic.v1.ModuleState.decode(i,i.uint32());break}case 6:{a.moduleForward=u.bilibili.app.dynamic.v1.ModuleForward.decode(i,i.uint32());break}case 7:{a.moduleExtend=u.bilibili.app.dynamic.v1.ModuleExtend.decode(i,i.uint32());break}case 8:{a.moduleDispute=u.bilibili.app.dynamic.v1.ModuleDispute.decode(i,i.uint32());break}case 9:{a.moduleDesc=u.bilibili.app.dynamic.v1.ModuleDesc.decode(i,i.uint32());break}case 10:{a.moduleLikeUser=u.bilibili.app.dynamic.v1.ModuleLikeUser.decode(i,i.uint32());break}case 11:{a.moduleUpList=u.bilibili.app.dynamic.v1.ModuleDynUpList.decode(i,i.uint32());break}case 12:{a.moduleFollowList=u.bilibili.app.dynamic.v1.ModuleFollowList.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},e.fromObject=function(i){if(i instanceof u.bilibili.app.dynamic.v1.Module)return i;let n=new u.bilibili.app.dynamic.v1.Module;if(i.moduleType!=null&&(n.moduleType=String(i.moduleType)),i.moduleFold!=null){if(typeof i.moduleFold!="object")throw TypeError(".bilibili.app.dynamic.v1.Module.moduleFold: object expected");n.moduleFold=u.bilibili.app.dynamic.v1.ModuleFold.fromObject(i.moduleFold)}if(i.moduleAuthor!=null){if(typeof i.moduleAuthor!="object")throw TypeError(".bilibili.app.dynamic.v1.Module.moduleAuthor: object expected");n.moduleAuthor=u.bilibili.app.dynamic.v1.ModuleAuthor.fromObject(i.moduleAuthor)}if(i.moduleDynamic!=null){if(typeof i.moduleDynamic!="object")throw TypeError(".bilibili.app.dynamic.v1.Module.moduleDynamic: object expected");n.moduleDynamic=u.bilibili.app.dynamic.v1.ModuleDynamic.fromObject(i.moduleDynamic)}if(i.moduleState!=null){if(typeof i.moduleState!="object")throw TypeError(".bilibili.app.dynamic.v1.Module.moduleState: object expected");n.moduleState=u.bilibili.app.dynamic.v1.ModuleState.fromObject(i.moduleState)}if(i.moduleForward!=null){if(typeof i.moduleForward!="object")throw TypeError(".bilibili.app.dynamic.v1.Module.moduleForward: object expected");n.moduleForward=u.bilibili.app.dynamic.v1.ModuleForward.fromObject(i.moduleForward)}if(i.moduleExtend!=null){if(typeof i.moduleExtend!="object")throw TypeError(".bilibili.app.dynamic.v1.Module.moduleExtend: object expected");n.moduleExtend=u.bilibili.app.dynamic.v1.ModuleExtend.fromObject(i.moduleExtend)}if(i.moduleDispute!=null){if(typeof i.moduleDispute!="object")throw TypeError(".bilibili.app.dynamic.v1.Module.moduleDispute: object expected");n.moduleDispute=u.bilibili.app.dynamic.v1.ModuleDispute.fromObject(i.moduleDispute)}if(i.moduleDesc!=null){if(typeof i.moduleDesc!="object")throw TypeError(".bilibili.app.dynamic.v1.Module.moduleDesc: object expected");n.moduleDesc=u.bilibili.app.dynamic.v1.ModuleDesc.fromObject(i.moduleDesc)}if(i.moduleLikeUser!=null){if(typeof i.moduleLikeUser!="object")throw TypeError(".bilibili.app.dynamic.v1.Module.moduleLikeUser: object expected");n.moduleLikeUser=u.bilibili.app.dynamic.v1.ModuleLikeUser.fromObject(i.moduleLikeUser)}if(i.moduleUpList!=null){if(typeof i.moduleUpList!="object")throw TypeError(".bilibili.app.dynamic.v1.Module.moduleUpList: object expected");n.moduleUpList=u.bilibili.app.dynamic.v1.ModuleDynUpList.fromObject(i.moduleUpList)}if(i.moduleFollowList!=null){if(typeof i.moduleFollowList!="object")throw TypeError(".bilibili.app.dynamic.v1.Module.moduleFollowList: object expected");n.moduleFollowList=u.bilibili.app.dynamic.v1.ModuleFollowList.fromObject(i.moduleFollowList)}return n},e.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.moduleType=""),i.moduleType!=null&&i.hasOwnProperty("moduleType")&&(o.moduleType=i.moduleType),i.moduleFold!=null&&i.hasOwnProperty("moduleFold")&&(o.moduleFold=u.bilibili.app.dynamic.v1.ModuleFold.toObject(i.moduleFold,n),n.oneofs&&(o.moduleItem="moduleFold")),i.moduleAuthor!=null&&i.hasOwnProperty("moduleAuthor")&&(o.moduleAuthor=u.bilibili.app.dynamic.v1.ModuleAuthor.toObject(i.moduleAuthor,n),n.oneofs&&(o.moduleItem="moduleAuthor")),i.moduleDynamic!=null&&i.hasOwnProperty("moduleDynamic")&&(o.moduleDynamic=u.bilibili.app.dynamic.v1.ModuleDynamic.toObject(i.moduleDynamic,n),n.oneofs&&(o.moduleItem="moduleDynamic")),i.moduleState!=null&&i.hasOwnProperty("moduleState")&&(o.moduleState=u.bilibili.app.dynamic.v1.ModuleState.toObject(i.moduleState,n),n.oneofs&&(o.moduleItem="moduleState")),i.moduleForward!=null&&i.hasOwnProperty("moduleForward")&&(o.moduleForward=u.bilibili.app.dynamic.v1.ModuleForward.toObject(i.moduleForward,n),n.oneofs&&(o.moduleItem="moduleForward")),i.moduleExtend!=null&&i.hasOwnProperty("moduleExtend")&&(o.moduleExtend=u.bilibili.app.dynamic.v1.ModuleExtend.toObject(i.moduleExtend,n),n.oneofs&&(o.moduleItem="moduleExtend")),i.moduleDispute!=null&&i.hasOwnProperty("moduleDispute")&&(o.moduleDispute=u.bilibili.app.dynamic.v1.ModuleDispute.toObject(i.moduleDispute,n),n.oneofs&&(o.moduleItem="moduleDispute")),i.moduleDesc!=null&&i.hasOwnProperty("moduleDesc")&&(o.moduleDesc=u.bilibili.app.dynamic.v1.ModuleDesc.toObject(i.moduleDesc,n),n.oneofs&&(o.moduleItem="moduleDesc")),i.moduleLikeUser!=null&&i.hasOwnProperty("moduleLikeUser")&&(o.moduleLikeUser=u.bilibili.app.dynamic.v1.ModuleLikeUser.toObject(i.moduleLikeUser,n),n.oneofs&&(o.moduleItem="moduleLikeUser")),i.moduleUpList!=null&&i.hasOwnProperty("moduleUpList")&&(o.moduleUpList=u.bilibili.app.dynamic.v1.ModuleDynUpList.toObject(i.moduleUpList,n),n.oneofs&&(o.moduleItem="moduleUpList")),i.moduleFollowList!=null&&i.hasOwnProperty("moduleFollowList")&&(o.moduleFollowList=u.bilibili.app.dynamic.v1.ModuleFollowList.toObject(i.moduleFollowList,n),n.oneofs&&(o.moduleItem="moduleFollowList")),o},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.app.dynamic.v1.Module"},e}(),c.ModuleFold=function(){function e(l){if(this.foldUsers=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.foldType=t.int32();break}case 2:{o.text=t.string();break}case 3:{o.foldIds=t.string();break}case 4:{o.foldUsers&&o.foldUsers.length||(o.foldUsers=[]),o.foldUsers.push(u.bilibili.app.dynamic.v1.UserInfo.decode(t,t.uint32()));break}case 5:{o.foldTypeV2=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v1.ModuleFold)return t;let i=new u.bilibili.app.dynamic.v1.ModuleFold;if(t.foldType!=null&&(i.foldType=t.foldType|0),t.text!=null&&(i.text=String(t.text)),t.foldIds!=null&&(i.foldIds=String(t.foldIds)),t.foldUsers){if(!Array.isArray(t.foldUsers))throw TypeError(".bilibili.app.dynamic.v1.ModuleFold.foldUsers: array expected");i.foldUsers=[];for(let n=0;n>>3){case 1:{o.id=t.int64();break}case 2:{o.ptimeLabelText=t.string();break}case 3:{o.author=u.bilibili.app.dynamic.v1.UserInfo.decode(t,t.uint32());break}case 4:{o.decorateCard=u.bilibili.app.dynamic.v1.DecorateCard.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v1.ModuleAuthor)return t;let i=new u.bilibili.app.dynamic.v1.ModuleAuthor;if(t.id!=null&&(r.Long?(i.id=r.Long.fromValue(t.id)).unsigned=!1:typeof t.id=="string"?i.id=parseInt(t.id,10):typeof t.id=="number"?i.id=t.id:typeof t.id=="object"&&(i.id=new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber())),t.ptimeLabelText!=null&&(i.ptimeLabelText=String(t.ptimeLabelText)),t.author!=null){if(typeof t.author!="object")throw TypeError(".bilibili.app.dynamic.v1.ModuleAuthor.author: object expected");i.author=u.bilibili.app.dynamic.v1.UserInfo.fromObject(t.author)}if(t.decorateCard!=null){if(typeof t.decorateCard!="object")throw TypeError(".bilibili.app.dynamic.v1.ModuleAuthor.decorateCard: object expected");i.decorateCard=u.bilibili.app.dynamic.v1.DecorateCard.fromObject(t.decorateCard)}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.id=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.id=i.longs===String?"0":0;n.ptimeLabelText="",n.author=null,n.decorateCard=null}return t.id!=null&&t.hasOwnProperty("id")&&(typeof t.id=="number"?n.id=i.longs===String?String(t.id):t.id:n.id=i.longs===String?r.Long.prototype.toString.call(t.id):i.longs===Number?new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber():t.id),t.ptimeLabelText!=null&&t.hasOwnProperty("ptimeLabelText")&&(n.ptimeLabelText=t.ptimeLabelText),t.author!=null&&t.hasOwnProperty("author")&&(n.author=u.bilibili.app.dynamic.v1.UserInfo.toObject(t.author,i)),t.decorateCard!=null&&t.hasOwnProperty("decorateCard")&&(n.decorateCard=u.bilibili.app.dynamic.v1.DecorateCard.toObject(t.decorateCard,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v1.ModuleAuthor"},e}(),c.ModuleDispute=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.desc=t.string();break}case 3:{o.uri=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v1.ModuleDispute)return t;let i=new u.bilibili.app.dynamic.v1.ModuleDispute;return t.title!=null&&(i.title=String(t.title)),t.desc!=null&&(i.desc=String(t.desc)),t.uri!=null&&(i.uri=String(t.uri)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.title="",n.desc="",n.uri=""),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.desc!=null&&t.hasOwnProperty("desc")&&(n.desc=t.desc),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v1.ModuleDispute"},e}(),c.ModuleDesc=function(){function e(l){if(this.desc=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.desc&&o.desc.length||(o.desc=[]),o.desc.push(u.bilibili.app.dynamic.v1.Description.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v1.ModuleDesc)return t;let i=new u.bilibili.app.dynamic.v1.ModuleDesc;if(t.desc){if(!Array.isArray(t.desc))throw TypeError(".bilibili.app.dynamic.v1.ModuleDesc.desc: array expected");i.desc=[];for(let n=0;n>>3){case 1:{a.cardType=i.string();break}case 2:{a.cardUgc=u.bilibili.app.dynamic.v1.CardUGC.decode(i,i.uint32());break}case 3:{a.cardPgc=u.bilibili.app.dynamic.v1.CardPGC.decode(i,i.uint32());break}case 4:{a.cardCurrSeason=u.bilibili.app.dynamic.v1.CardCurrSeason.decode(i,i.uint32());break}case 5:{a.cardCurrBatch=u.bilibili.app.dynamic.v1.CardCurrBatch.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},e.fromObject=function(i){if(i instanceof u.bilibili.app.dynamic.v1.ModuleDynamic)return i;let n=new u.bilibili.app.dynamic.v1.ModuleDynamic;if(i.cardType!=null&&(n.cardType=String(i.cardType)),i.cardUgc!=null){if(typeof i.cardUgc!="object")throw TypeError(".bilibili.app.dynamic.v1.ModuleDynamic.cardUgc: object expected");n.cardUgc=u.bilibili.app.dynamic.v1.CardUGC.fromObject(i.cardUgc)}if(i.cardPgc!=null){if(typeof i.cardPgc!="object")throw TypeError(".bilibili.app.dynamic.v1.ModuleDynamic.cardPgc: object expected");n.cardPgc=u.bilibili.app.dynamic.v1.CardPGC.fromObject(i.cardPgc)}if(i.cardCurrSeason!=null){if(typeof i.cardCurrSeason!="object")throw TypeError(".bilibili.app.dynamic.v1.ModuleDynamic.cardCurrSeason: object expected");n.cardCurrSeason=u.bilibili.app.dynamic.v1.CardCurrSeason.fromObject(i.cardCurrSeason)}if(i.cardCurrBatch!=null){if(typeof i.cardCurrBatch!="object")throw TypeError(".bilibili.app.dynamic.v1.ModuleDynamic.cardCurrBatch: object expected");n.cardCurrBatch=u.bilibili.app.dynamic.v1.CardCurrBatch.fromObject(i.cardCurrBatch)}return n},e.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.cardType=""),i.cardType!=null&&i.hasOwnProperty("cardType")&&(o.cardType=i.cardType),i.cardUgc!=null&&i.hasOwnProperty("cardUgc")&&(o.cardUgc=u.bilibili.app.dynamic.v1.CardUGC.toObject(i.cardUgc,n),n.oneofs&&(o.card="cardUgc")),i.cardPgc!=null&&i.hasOwnProperty("cardPgc")&&(o.cardPgc=u.bilibili.app.dynamic.v1.CardPGC.toObject(i.cardPgc,n),n.oneofs&&(o.card="cardPgc")),i.cardCurrSeason!=null&&i.hasOwnProperty("cardCurrSeason")&&(o.cardCurrSeason=u.bilibili.app.dynamic.v1.CardCurrSeason.toObject(i.cardCurrSeason,n),n.oneofs&&(o.card="cardCurrSeason")),i.cardCurrBatch!=null&&i.hasOwnProperty("cardCurrBatch")&&(o.cardCurrBatch=u.bilibili.app.dynamic.v1.CardCurrBatch.toObject(i.cardCurrBatch,n),n.oneofs&&(o.card="cardCurrBatch")),o},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.app.dynamic.v1.ModuleDynamic"},e}(),c.ModuleLikeUser=function(){function e(l){if(this.likeUsers=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.likeUsers&&o.likeUsers.length||(o.likeUsers=[]),o.likeUsers.push(u.bilibili.app.dynamic.v1.LikeUser.decode(t,t.uint32()));break}case 2:{o.displayText=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v1.ModuleLikeUser)return t;let i=new u.bilibili.app.dynamic.v1.ModuleLikeUser;if(t.likeUsers){if(!Array.isArray(t.likeUsers))throw TypeError(".bilibili.app.dynamic.v1.ModuleLikeUser.likeUsers: array expected");i.likeUsers=[];for(let n=0;n>>3){case 1:{o.repost=t.int32();break}case 2:{o.like=t.int32();break}case 3:{o.reply=t.int32();break}case 4:{o.likeInfo=u.bilibili.app.dynamic.v1.LikeInfo.decode(t,t.uint32());break}case 5:{o.noComment=t.bool();break}case 6:{o.noForward=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v1.ModuleState)return t;let i=new u.bilibili.app.dynamic.v1.ModuleState;if(t.repost!=null&&(i.repost=t.repost|0),t.like!=null&&(i.like=t.like|0),t.reply!=null&&(i.reply=t.reply|0),t.likeInfo!=null){if(typeof t.likeInfo!="object")throw TypeError(".bilibili.app.dynamic.v1.ModuleState.likeInfo: object expected");i.likeInfo=u.bilibili.app.dynamic.v1.LikeInfo.fromObject(t.likeInfo)}return t.noComment!=null&&(i.noComment=!!t.noComment),t.noForward!=null&&(i.noForward=!!t.noForward),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.repost=0,n.like=0,n.reply=0,n.likeInfo=null,n.noComment=!1,n.noForward=!1),t.repost!=null&&t.hasOwnProperty("repost")&&(n.repost=t.repost),t.like!=null&&t.hasOwnProperty("like")&&(n.like=t.like),t.reply!=null&&t.hasOwnProperty("reply")&&(n.reply=t.reply),t.likeInfo!=null&&t.hasOwnProperty("likeInfo")&&(n.likeInfo=u.bilibili.app.dynamic.v1.LikeInfo.toObject(t.likeInfo,i)),t.noComment!=null&&t.hasOwnProperty("noComment")&&(n.noComment=t.noComment),t.noForward!=null&&t.hasOwnProperty("noForward")&&(n.noForward=t.noForward),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v1.ModuleState"},e}(),c.ModuleForward=function(){function e(l){if(this.modules=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.cardType=t.string();break}case 2:{o.modules&&o.modules.length||(o.modules=[]),o.modules.push(u.bilibili.app.dynamic.v1.Module.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v1.ModuleForward)return t;let i=new u.bilibili.app.dynamic.v1.ModuleForward;if(t.cardType!=null&&(i.cardType=String(t.cardType)),t.modules){if(!Array.isArray(t.modules))throw TypeError(".bilibili.app.dynamic.v1.ModuleForward.modules: array expected");i.modules=[];for(let n=0;n>>3){case 1:{o.title=t.string();break}case 2:{o.cover=t.string();break}case 3:{o.uri=t.string();break}case 4:{o.coverLeftText_1=t.string();break}case 5:{o.coverLeftText_2=t.string();break}case 6:{o.coverLeftText_3=t.string();break}case 7:{o.avid=t.int64();break}case 8:{o.cid=t.int64();break}case 9:{o.mediaType=t.int32();break}case 10:{o.dimension=u.bilibili.app.dynamic.v1.Dimension.decode(t,t.uint32());break}case 11:{o.badge&&o.badge.length||(o.badge=[]),o.badge.push(u.bilibili.app.dynamic.v1.VideoBadge.decode(t,t.uint32()));break}case 12:{o.canPlay=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v1.CardUGC)return t;let i=new u.bilibili.app.dynamic.v1.CardUGC;switch(t.title!=null&&(i.title=String(t.title)),t.cover!=null&&(i.cover=String(t.cover)),t.uri!=null&&(i.uri=String(t.uri)),t.coverLeftText_1!=null&&(i.coverLeftText_1=String(t.coverLeftText_1)),t.coverLeftText_2!=null&&(i.coverLeftText_2=String(t.coverLeftText_2)),t.coverLeftText_3!=null&&(i.coverLeftText_3=String(t.coverLeftText_3)),t.avid!=null&&(r.Long?(i.avid=r.Long.fromValue(t.avid)).unsigned=!1:typeof t.avid=="string"?i.avid=parseInt(t.avid,10):typeof t.avid=="number"?i.avid=t.avid:typeof t.avid=="object"&&(i.avid=new r.LongBits(t.avid.low>>>0,t.avid.high>>>0).toNumber())),t.cid!=null&&(r.Long?(i.cid=r.Long.fromValue(t.cid)).unsigned=!1:typeof t.cid=="string"?i.cid=parseInt(t.cid,10):typeof t.cid=="number"?i.cid=t.cid:typeof t.cid=="object"&&(i.cid=new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber())),t.mediaType){default:if(typeof t.mediaType=="number"){i.mediaType=t.mediaType;break}break;case"MediaTypeNone":case 0:i.mediaType=0;break;case"MediaTypeUGC":case 1:i.mediaType=1;break;case"MediaTypePGC":case 2:i.mediaType=2;break;case"MediaTypeLive":case 3:i.mediaType=3;break;case"MediaTypeVCS":case 4:i.mediaType=4;break}if(t.dimension!=null){if(typeof t.dimension!="object")throw TypeError(".bilibili.app.dynamic.v1.CardUGC.dimension: object expected");i.dimension=u.bilibili.app.dynamic.v1.Dimension.fromObject(t.dimension)}if(t.badge){if(!Array.isArray(t.badge))throw TypeError(".bilibili.app.dynamic.v1.CardUGC.badge: array expected");i.badge=[];for(let n=0;n>>0,t.avid.high>>>0).toNumber():t.avid),t.cid!=null&&t.hasOwnProperty("cid")&&(typeof t.cid=="number"?n.cid=i.longs===String?String(t.cid):t.cid:n.cid=i.longs===String?r.Long.prototype.toString.call(t.cid):i.longs===Number?new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber():t.cid),t.mediaType!=null&&t.hasOwnProperty("mediaType")&&(n.mediaType=i.enums===String?u.bilibili.app.dynamic.v1.MediaType[t.mediaType]===void 0?t.mediaType:u.bilibili.app.dynamic.v1.MediaType[t.mediaType]:t.mediaType),t.dimension!=null&&t.hasOwnProperty("dimension")&&(n.dimension=u.bilibili.app.dynamic.v1.Dimension.toObject(t.dimension,i)),t.badge&&t.badge.length){n.badge=[];for(let o=0;o>>3){case 1:{o.title=t.string();break}case 2:{o.cover=t.string();break}case 3:{o.uri=t.string();break}case 4:{o.coverLeftText_1=t.string();break}case 5:{o.coverLeftText_2=t.string();break}case 6:{o.coverLeftText_3=t.string();break}case 7:{o.cid=t.int64();break}case 8:{o.seasonId=t.int64();break}case 9:{o.epid=t.int64();break}case 10:{o.aid=t.int64();break}case 11:{o.mediaType=t.int32();break}case 12:{o.subType=t.int32();break}case 13:{o.isPreview=t.int32();break}case 14:{o.dimension=u.bilibili.app.dynamic.v1.Dimension.decode(t,t.uint32());break}case 15:{o.badge&&o.badge.length||(o.badge=[]),o.badge.push(u.bilibili.app.dynamic.v1.VideoBadge.decode(t,t.uint32()));break}case 16:{o.canPlay=t.int32();break}case 17:{o.season=u.bilibili.app.dynamic.v1.PGCSeason.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v1.CardPGC)return t;let i=new u.bilibili.app.dynamic.v1.CardPGC;switch(t.title!=null&&(i.title=String(t.title)),t.cover!=null&&(i.cover=String(t.cover)),t.uri!=null&&(i.uri=String(t.uri)),t.coverLeftText_1!=null&&(i.coverLeftText_1=String(t.coverLeftText_1)),t.coverLeftText_2!=null&&(i.coverLeftText_2=String(t.coverLeftText_2)),t.coverLeftText_3!=null&&(i.coverLeftText_3=String(t.coverLeftText_3)),t.cid!=null&&(r.Long?(i.cid=r.Long.fromValue(t.cid)).unsigned=!1:typeof t.cid=="string"?i.cid=parseInt(t.cid,10):typeof t.cid=="number"?i.cid=t.cid:typeof t.cid=="object"&&(i.cid=new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber())),t.seasonId!=null&&(r.Long?(i.seasonId=r.Long.fromValue(t.seasonId)).unsigned=!1:typeof t.seasonId=="string"?i.seasonId=parseInt(t.seasonId,10):typeof t.seasonId=="number"?i.seasonId=t.seasonId:typeof t.seasonId=="object"&&(i.seasonId=new r.LongBits(t.seasonId.low>>>0,t.seasonId.high>>>0).toNumber())),t.epid!=null&&(r.Long?(i.epid=r.Long.fromValue(t.epid)).unsigned=!1:typeof t.epid=="string"?i.epid=parseInt(t.epid,10):typeof t.epid=="number"?i.epid=t.epid:typeof t.epid=="object"&&(i.epid=new r.LongBits(t.epid.low>>>0,t.epid.high>>>0).toNumber())),t.aid!=null&&(r.Long?(i.aid=r.Long.fromValue(t.aid)).unsigned=!1:typeof t.aid=="string"?i.aid=parseInt(t.aid,10):typeof t.aid=="number"?i.aid=t.aid:typeof t.aid=="object"&&(i.aid=new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber())),t.mediaType){default:if(typeof t.mediaType=="number"){i.mediaType=t.mediaType;break}break;case"MediaTypeNone":case 0:i.mediaType=0;break;case"MediaTypeUGC":case 1:i.mediaType=1;break;case"MediaTypePGC":case 2:i.mediaType=2;break;case"MediaTypeLive":case 3:i.mediaType=3;break;case"MediaTypeVCS":case 4:i.mediaType=4;break}switch(t.subType){default:if(typeof t.subType=="number"){i.subType=t.subType;break}break;case"VideoSubTypeNone":case 0:i.subType=0;break;case"VideoSubTypeBangumi":case 1:i.subType=1;break;case"VideoSubTypeMovie":case 2:i.subType=2;break;case"VideoSubTypeDocumentary":case 3:i.subType=3;break;case"VideoSubTypeDomestic":case 4:i.subType=4;break;case"VideoSubTypeTeleplay":case 5:i.subType=5;break}if(t.isPreview!=null&&(i.isPreview=t.isPreview|0),t.dimension!=null){if(typeof t.dimension!="object")throw TypeError(".bilibili.app.dynamic.v1.CardPGC.dimension: object expected");i.dimension=u.bilibili.app.dynamic.v1.Dimension.fromObject(t.dimension)}if(t.badge){if(!Array.isArray(t.badge))throw TypeError(".bilibili.app.dynamic.v1.CardPGC.badge: array expected");i.badge=[];for(let n=0;n>>0,t.cid.high>>>0).toNumber():t.cid),t.seasonId!=null&&t.hasOwnProperty("seasonId")&&(typeof t.seasonId=="number"?n.seasonId=i.longs===String?String(t.seasonId):t.seasonId:n.seasonId=i.longs===String?r.Long.prototype.toString.call(t.seasonId):i.longs===Number?new r.LongBits(t.seasonId.low>>>0,t.seasonId.high>>>0).toNumber():t.seasonId),t.epid!=null&&t.hasOwnProperty("epid")&&(typeof t.epid=="number"?n.epid=i.longs===String?String(t.epid):t.epid:n.epid=i.longs===String?r.Long.prototype.toString.call(t.epid):i.longs===Number?new r.LongBits(t.epid.low>>>0,t.epid.high>>>0).toNumber():t.epid),t.aid!=null&&t.hasOwnProperty("aid")&&(typeof t.aid=="number"?n.aid=i.longs===String?String(t.aid):t.aid:n.aid=i.longs===String?r.Long.prototype.toString.call(t.aid):i.longs===Number?new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber():t.aid),t.mediaType!=null&&t.hasOwnProperty("mediaType")&&(n.mediaType=i.enums===String?u.bilibili.app.dynamic.v1.MediaType[t.mediaType]===void 0?t.mediaType:u.bilibili.app.dynamic.v1.MediaType[t.mediaType]:t.mediaType),t.subType!=null&&t.hasOwnProperty("subType")&&(n.subType=i.enums===String?u.bilibili.app.dynamic.v1.VideoSubType[t.subType]===void 0?t.subType:u.bilibili.app.dynamic.v1.VideoSubType[t.subType]:t.subType),t.isPreview!=null&&t.hasOwnProperty("isPreview")&&(n.isPreview=t.isPreview),t.dimension!=null&&t.hasOwnProperty("dimension")&&(n.dimension=u.bilibili.app.dynamic.v1.Dimension.toObject(t.dimension,i)),t.badge&&t.badge.length){n.badge=[];for(let o=0;o>>3){case 1:{o.title=t.string();break}case 2:{o.cover=t.string();break}case 3:{o.uri=t.string();break}case 4:{o.text_1=t.string();break}case 5:{o.desc=t.string();break}case 6:{o.badge=u.bilibili.app.dynamic.v1.VideoBadge.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v1.CardCurrSeason)return t;let i=new u.bilibili.app.dynamic.v1.CardCurrSeason;if(t.title!=null&&(i.title=String(t.title)),t.cover!=null&&(i.cover=String(t.cover)),t.uri!=null&&(i.uri=String(t.uri)),t.text_1!=null&&(i.text_1=String(t.text_1)),t.desc!=null&&(i.desc=String(t.desc)),t.badge!=null){if(typeof t.badge!="object")throw TypeError(".bilibili.app.dynamic.v1.CardCurrSeason.badge: object expected");i.badge=u.bilibili.app.dynamic.v1.VideoBadge.fromObject(t.badge)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.title="",n.cover="",n.uri="",n.text_1="",n.desc="",n.badge=null),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.cover!=null&&t.hasOwnProperty("cover")&&(n.cover=t.cover),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),t.text_1!=null&&t.hasOwnProperty("text_1")&&(n.text_1=t.text_1),t.desc!=null&&t.hasOwnProperty("desc")&&(n.desc=t.desc),t.badge!=null&&t.hasOwnProperty("badge")&&(n.badge=u.bilibili.app.dynamic.v1.VideoBadge.toObject(t.badge,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v1.CardCurrSeason"},e}(),c.CardCurrBatch=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.cover=t.string();break}case 3:{o.uri=t.string();break}case 4:{o.text_1=t.string();break}case 5:{o.text_2=t.string();break}case 6:{o.badge=u.bilibili.app.dynamic.v1.VideoBadge.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v1.CardCurrBatch)return t;let i=new u.bilibili.app.dynamic.v1.CardCurrBatch;if(t.title!=null&&(i.title=String(t.title)),t.cover!=null&&(i.cover=String(t.cover)),t.uri!=null&&(i.uri=String(t.uri)),t.text_1!=null&&(i.text_1=String(t.text_1)),t.text_2!=null&&(i.text_2=String(t.text_2)),t.badge!=null){if(typeof t.badge!="object")throw TypeError(".bilibili.app.dynamic.v1.CardCurrBatch.badge: object expected");i.badge=u.bilibili.app.dynamic.v1.VideoBadge.fromObject(t.badge)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.title="",n.cover="",n.uri="",n.text_1="",n.text_2="",n.badge=null),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.cover!=null&&t.hasOwnProperty("cover")&&(n.cover=t.cover),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),t.text_1!=null&&t.hasOwnProperty("text_1")&&(n.text_1=t.text_1),t.text_2!=null&&t.hasOwnProperty("text_2")&&(n.text_2=t.text_2),t.badge!=null&&t.hasOwnProperty("badge")&&(n.badge=u.bilibili.app.dynamic.v1.VideoBadge.toObject(t.badge,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v1.CardCurrBatch"},e}(),c.VideoBadge=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.text=t.string();break}case 2:{o.textColor=t.string();break}case 3:{o.textColorNight=t.string();break}case 4:{o.bgColor=t.string();break}case 5:{o.bgColorNight=t.string();break}case 6:{o.borderColor=t.string();break}case 7:{o.borderColorNight=t.string();break}case 8:{o.bgStyle=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v1.VideoBadge)return t;let i=new u.bilibili.app.dynamic.v1.VideoBadge;return t.text!=null&&(i.text=String(t.text)),t.textColor!=null&&(i.textColor=String(t.textColor)),t.textColorNight!=null&&(i.textColorNight=String(t.textColorNight)),t.bgColor!=null&&(i.bgColor=String(t.bgColor)),t.bgColorNight!=null&&(i.bgColorNight=String(t.bgColorNight)),t.borderColor!=null&&(i.borderColor=String(t.borderColor)),t.borderColorNight!=null&&(i.borderColorNight=String(t.borderColorNight)),t.bgStyle!=null&&(i.bgStyle=t.bgStyle|0),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.text="",n.textColor="",n.textColorNight="",n.bgColor="",n.bgColorNight="",n.borderColor="",n.borderColorNight="",n.bgStyle=0),t.text!=null&&t.hasOwnProperty("text")&&(n.text=t.text),t.textColor!=null&&t.hasOwnProperty("textColor")&&(n.textColor=t.textColor),t.textColorNight!=null&&t.hasOwnProperty("textColorNight")&&(n.textColorNight=t.textColorNight),t.bgColor!=null&&t.hasOwnProperty("bgColor")&&(n.bgColor=t.bgColor),t.bgColorNight!=null&&t.hasOwnProperty("bgColorNight")&&(n.bgColorNight=t.bgColorNight),t.borderColor!=null&&t.hasOwnProperty("borderColor")&&(n.borderColor=t.borderColor),t.borderColorNight!=null&&t.hasOwnProperty("borderColorNight")&&(n.borderColorNight=t.borderColorNight),t.bgStyle!=null&&t.hasOwnProperty("bgStyle")&&(n.bgStyle=t.bgStyle),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v1.VideoBadge"},e}(),c.Dimension=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.height=t.int64();break}case 2:{o.width=t.int64();break}case 3:{o.rotate=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v1.Dimension)return t;let i=new u.bilibili.app.dynamic.v1.Dimension;return t.height!=null&&(r.Long?(i.height=r.Long.fromValue(t.height)).unsigned=!1:typeof t.height=="string"?i.height=parseInt(t.height,10):typeof t.height=="number"?i.height=t.height:typeof t.height=="object"&&(i.height=new r.LongBits(t.height.low>>>0,t.height.high>>>0).toNumber())),t.width!=null&&(r.Long?(i.width=r.Long.fromValue(t.width)).unsigned=!1:typeof t.width=="string"?i.width=parseInt(t.width,10):typeof t.width=="number"?i.width=t.width:typeof t.width=="object"&&(i.width=new r.LongBits(t.width.low>>>0,t.width.high>>>0).toNumber())),t.rotate!=null&&(r.Long?(i.rotate=r.Long.fromValue(t.rotate)).unsigned=!1:typeof t.rotate=="string"?i.rotate=parseInt(t.rotate,10):typeof t.rotate=="number"?i.rotate=t.rotate:typeof t.rotate=="object"&&(i.rotate=new r.LongBits(t.rotate.low>>>0,t.rotate.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.height=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.height=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.width=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.width=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.rotate=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.rotate=i.longs===String?"0":0}return t.height!=null&&t.hasOwnProperty("height")&&(typeof t.height=="number"?n.height=i.longs===String?String(t.height):t.height:n.height=i.longs===String?r.Long.prototype.toString.call(t.height):i.longs===Number?new r.LongBits(t.height.low>>>0,t.height.high>>>0).toNumber():t.height),t.width!=null&&t.hasOwnProperty("width")&&(typeof t.width=="number"?n.width=i.longs===String?String(t.width):t.width:n.width=i.longs===String?r.Long.prototype.toString.call(t.width):i.longs===Number?new r.LongBits(t.width.low>>>0,t.width.high>>>0).toNumber():t.width),t.rotate!=null&&t.hasOwnProperty("rotate")&&(typeof t.rotate=="number"?n.rotate=i.longs===String?String(t.rotate):t.rotate:n.rotate=i.longs===String?r.Long.prototype.toString.call(t.rotate):i.longs===Number?new r.LongBits(t.rotate.low>>>0,t.rotate.high>>>0).toNumber():t.rotate),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v1.Dimension"},e}(),c.VideoSubType=function(){let e={},l=Object.create(e);return l[e[0]="VideoSubTypeNone"]=0,l[e[1]="VideoSubTypeBangumi"]=1,l[e[2]="VideoSubTypeMovie"]=2,l[e[3]="VideoSubTypeDocumentary"]=3,l[e[4]="VideoSubTypeDomestic"]=4,l[e[5]="VideoSubTypeTeleplay"]=5,l}(),c.MediaType=function(){let e={},l=Object.create(e);return l[e[0]="MediaTypeNone"]=0,l[e[1]="MediaTypeUGC"]=1,l[e[2]="MediaTypePGC"]=2,l[e[3]="MediaTypeLive"]=3,l[e[4]="MediaTypeVCS"]=4,l}(),c.ModuleExtend=function(){function e(l){if(this.extend=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.extend&&o.extend.length||(o.extend=[]),o.extend.push(u.bilibili.app.dynamic.v1.Extend.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v1.ModuleExtend)return t;let i=new u.bilibili.app.dynamic.v1.ModuleExtend;if(t.extend){if(!Array.isArray(t.extend))throw TypeError(".bilibili.app.dynamic.v1.ModuleExtend.extend: array expected");i.extend=[];for(let n=0;n>>3){case 1:{a.type=i.string();break}case 2:{a.extInfoTopic=u.bilibili.app.dynamic.v1.ExtInfoTopic.decode(i,i.uint32());break}case 3:{a.extInfoLbs=u.bilibili.app.dynamic.v1.ExtInfoLBS.decode(i,i.uint32());break}case 4:{a.extInfoHot=u.bilibili.app.dynamic.v1.ExtInfoHot.decode(i,i.uint32());break}case 5:{a.extInfoGame=u.bilibili.app.dynamic.v1.ExtInfoGame.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},e.fromObject=function(i){if(i instanceof u.bilibili.app.dynamic.v1.Extend)return i;let n=new u.bilibili.app.dynamic.v1.Extend;if(i.type!=null&&(n.type=String(i.type)),i.extInfoTopic!=null){if(typeof i.extInfoTopic!="object")throw TypeError(".bilibili.app.dynamic.v1.Extend.extInfoTopic: object expected");n.extInfoTopic=u.bilibili.app.dynamic.v1.ExtInfoTopic.fromObject(i.extInfoTopic)}if(i.extInfoLbs!=null){if(typeof i.extInfoLbs!="object")throw TypeError(".bilibili.app.dynamic.v1.Extend.extInfoLbs: object expected");n.extInfoLbs=u.bilibili.app.dynamic.v1.ExtInfoLBS.fromObject(i.extInfoLbs)}if(i.extInfoHot!=null){if(typeof i.extInfoHot!="object")throw TypeError(".bilibili.app.dynamic.v1.Extend.extInfoHot: object expected");n.extInfoHot=u.bilibili.app.dynamic.v1.ExtInfoHot.fromObject(i.extInfoHot)}if(i.extInfoGame!=null){if(typeof i.extInfoGame!="object")throw TypeError(".bilibili.app.dynamic.v1.Extend.extInfoGame: object expected");n.extInfoGame=u.bilibili.app.dynamic.v1.ExtInfoGame.fromObject(i.extInfoGame)}return n},e.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.type=""),i.type!=null&&i.hasOwnProperty("type")&&(o.type=i.type),i.extInfoTopic!=null&&i.hasOwnProperty("extInfoTopic")&&(o.extInfoTopic=u.bilibili.app.dynamic.v1.ExtInfoTopic.toObject(i.extInfoTopic,n),n.oneofs&&(o.extend="extInfoTopic")),i.extInfoLbs!=null&&i.hasOwnProperty("extInfoLbs")&&(o.extInfoLbs=u.bilibili.app.dynamic.v1.ExtInfoLBS.toObject(i.extInfoLbs,n),n.oneofs&&(o.extend="extInfoLbs")),i.extInfoHot!=null&&i.hasOwnProperty("extInfoHot")&&(o.extInfoHot=u.bilibili.app.dynamic.v1.ExtInfoHot.toObject(i.extInfoHot,n),n.oneofs&&(o.extend="extInfoHot")),i.extInfoGame!=null&&i.hasOwnProperty("extInfoGame")&&(o.extInfoGame=u.bilibili.app.dynamic.v1.ExtInfoGame.toObject(i.extInfoGame,n),n.oneofs&&(o.extend="extInfoGame")),o},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.app.dynamic.v1.Extend"},e}(),c.ExtInfoGame=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.uri=t.string();break}case 3:{o.icon=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v1.ExtInfoGame)return t;let i=new u.bilibili.app.dynamic.v1.ExtInfoGame;return t.title!=null&&(i.title=String(t.title)),t.uri!=null&&(i.uri=String(t.uri)),t.icon!=null&&(i.icon=String(t.icon)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.title="",n.uri="",n.icon=""),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),t.icon!=null&&t.hasOwnProperty("icon")&&(n.icon=t.icon),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v1.ExtInfoGame"},e}(),c.ExtInfoTopic=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.uri=t.string();break}case 3:{o.icon=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v1.ExtInfoTopic)return t;let i=new u.bilibili.app.dynamic.v1.ExtInfoTopic;return t.title!=null&&(i.title=String(t.title)),t.uri!=null&&(i.uri=String(t.uri)),t.icon!=null&&(i.icon=String(t.icon)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.title="",n.uri="",n.icon=""),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),t.icon!=null&&t.hasOwnProperty("icon")&&(n.icon=t.icon),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v1.ExtInfoTopic"},e}(),c.ExtInfoLBS=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.uri=t.string();break}case 3:{o.icon=t.string();break}case 4:{o.poiType=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v1.ExtInfoLBS)return t;let i=new u.bilibili.app.dynamic.v1.ExtInfoLBS;return t.title!=null&&(i.title=String(t.title)),t.uri!=null&&(i.uri=String(t.uri)),t.icon!=null&&(i.icon=String(t.icon)),t.poiType!=null&&(i.poiType=t.poiType|0),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.title="",n.uri="",n.icon="",n.poiType=0),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),t.icon!=null&&t.hasOwnProperty("icon")&&(n.icon=t.icon),t.poiType!=null&&t.hasOwnProperty("poiType")&&(n.poiType=t.poiType),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v1.ExtInfoLBS"},e}(),c.ExtInfoHot=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.uri=t.string();break}case 3:{o.icon=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v1.ExtInfoHot)return t;let i=new u.bilibili.app.dynamic.v1.ExtInfoHot;return t.title!=null&&(i.title=String(t.title)),t.uri!=null&&(i.uri=String(t.uri)),t.icon!=null&&(i.icon=String(t.icon)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.title="",n.uri="",n.icon=""),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),t.icon!=null&&t.hasOwnProperty("icon")&&(n.icon=t.icon),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v1.ExtInfoHot"},e}(),c.LikeInfo=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.animation=u.bilibili.app.dynamic.v1.LikeAnimation.decode(t,t.uint32());break}case 2:{o.isLike=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v1.LikeInfo)return t;let i=new u.bilibili.app.dynamic.v1.LikeInfo;if(t.animation!=null){if(typeof t.animation!="object")throw TypeError(".bilibili.app.dynamic.v1.LikeInfo.animation: object expected");i.animation=u.bilibili.app.dynamic.v1.LikeAnimation.fromObject(t.animation)}return t.isLike!=null&&(i.isLike=t.isLike|0),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.animation=null,n.isLike=0),t.animation!=null&&t.hasOwnProperty("animation")&&(n.animation=u.bilibili.app.dynamic.v1.LikeAnimation.toObject(t.animation,i)),t.isLike!=null&&t.hasOwnProperty("isLike")&&(n.isLike=t.isLike),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v1.LikeInfo"},e}(),c.LikeUser=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.uid=t.int64();break}case 2:{o.uname=t.string();break}case 3:{o.uri=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v1.LikeUser)return t;let i=new u.bilibili.app.dynamic.v1.LikeUser;return t.uid!=null&&(r.Long?(i.uid=r.Long.fromValue(t.uid)).unsigned=!1:typeof t.uid=="string"?i.uid=parseInt(t.uid,10):typeof t.uid=="number"?i.uid=t.uid:typeof t.uid=="object"&&(i.uid=new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber())),t.uname!=null&&(i.uname=String(t.uname)),t.uri!=null&&(i.uri=String(t.uri)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.uid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.uid=i.longs===String?"0":0;n.uname="",n.uri=""}return t.uid!=null&&t.hasOwnProperty("uid")&&(typeof t.uid=="number"?n.uid=i.longs===String?String(t.uid):t.uid:n.uid=i.longs===String?r.Long.prototype.toString.call(t.uid):i.longs===Number?new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber():t.uid),t.uname!=null&&t.hasOwnProperty("uname")&&(n.uname=t.uname),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v1.LikeUser"},e}(),c.LikeAnimation=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.begin=t.string();break}case 2:{o.proc=t.string();break}case 3:{o.end=t.string();break}case 4:{o.likeIconId=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v1.LikeAnimation)return t;let i=new u.bilibili.app.dynamic.v1.LikeAnimation;return t.begin!=null&&(i.begin=String(t.begin)),t.proc!=null&&(i.proc=String(t.proc)),t.end!=null&&(i.end=String(t.end)),t.likeIconId!=null&&(r.Long?(i.likeIconId=r.Long.fromValue(t.likeIconId)).unsigned=!1:typeof t.likeIconId=="string"?i.likeIconId=parseInt(t.likeIconId,10):typeof t.likeIconId=="number"?i.likeIconId=t.likeIconId:typeof t.likeIconId=="object"&&(i.likeIconId=new r.LongBits(t.likeIconId.low>>>0,t.likeIconId.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(n.begin="",n.proc="",n.end="",r.Long){let o=new r.Long(0,0,!1);n.likeIconId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.likeIconId=i.longs===String?"0":0;return t.begin!=null&&t.hasOwnProperty("begin")&&(n.begin=t.begin),t.proc!=null&&t.hasOwnProperty("proc")&&(n.proc=t.proc),t.end!=null&&t.hasOwnProperty("end")&&(n.end=t.end),t.likeIconId!=null&&t.hasOwnProperty("likeIconId")&&(typeof t.likeIconId=="number"?n.likeIconId=i.longs===String?String(t.likeIconId):t.likeIconId:n.likeIconId=i.longs===String?r.Long.prototype.toString.call(t.likeIconId):i.longs===Number?new r.LongBits(t.likeIconId.low>>>0,t.likeIconId.high>>>0).toNumber():t.likeIconId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v1.LikeAnimation"},e}(),c.Description=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.text=t.string();break}case 2:{o.type=t.string();break}case 3:{o.uri=t.string();break}case 4:{o.emojiType=t.string();break}case 5:{o.goodsType=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v1.Description)return t;let i=new u.bilibili.app.dynamic.v1.Description;return t.text!=null&&(i.text=String(t.text)),t.type!=null&&(i.type=String(t.type)),t.uri!=null&&(i.uri=String(t.uri)),t.emojiType!=null&&(i.emojiType=String(t.emojiType)),t.goodsType!=null&&(i.goodsType=String(t.goodsType)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.text="",n.type="",n.uri="",n.emojiType="",n.goodsType=""),t.text!=null&&t.hasOwnProperty("text")&&(n.text=t.text),t.type!=null&&t.hasOwnProperty("type")&&(n.type=t.type),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),t.emojiType!=null&&t.hasOwnProperty("emojiType")&&(n.emojiType=t.emojiType),t.goodsType!=null&&t.hasOwnProperty("goodsType")&&(n.goodsType=t.goodsType),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v1.Description"},e}(),c.DecorateCard=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.id=t.int64();break}case 2:{o.cardUrl=t.string();break}case 3:{o.jumpUrl=t.string();break}case 4:{o.fan=u.bilibili.app.dynamic.v1.DecoCardFan.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v1.DecorateCard)return t;let i=new u.bilibili.app.dynamic.v1.DecorateCard;if(t.id!=null&&(r.Long?(i.id=r.Long.fromValue(t.id)).unsigned=!1:typeof t.id=="string"?i.id=parseInt(t.id,10):typeof t.id=="number"?i.id=t.id:typeof t.id=="object"&&(i.id=new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber())),t.cardUrl!=null&&(i.cardUrl=String(t.cardUrl)),t.jumpUrl!=null&&(i.jumpUrl=String(t.jumpUrl)),t.fan!=null){if(typeof t.fan!="object")throw TypeError(".bilibili.app.dynamic.v1.DecorateCard.fan: object expected");i.fan=u.bilibili.app.dynamic.v1.DecoCardFan.fromObject(t.fan)}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.id=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.id=i.longs===String?"0":0;n.cardUrl="",n.jumpUrl="",n.fan=null}return t.id!=null&&t.hasOwnProperty("id")&&(typeof t.id=="number"?n.id=i.longs===String?String(t.id):t.id:n.id=i.longs===String?r.Long.prototype.toString.call(t.id):i.longs===Number?new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber():t.id),t.cardUrl!=null&&t.hasOwnProperty("cardUrl")&&(n.cardUrl=t.cardUrl),t.jumpUrl!=null&&t.hasOwnProperty("jumpUrl")&&(n.jumpUrl=t.jumpUrl),t.fan!=null&&t.hasOwnProperty("fan")&&(n.fan=u.bilibili.app.dynamic.v1.DecoCardFan.toObject(t.fan,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v1.DecorateCard"},e}(),c.DecoCardFan=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.isFan=t.int32();break}case 2:{o.number=t.int32();break}case 3:{o.color=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v1.DecoCardFan)return t;let i=new u.bilibili.app.dynamic.v1.DecoCardFan;return t.isFan!=null&&(i.isFan=t.isFan|0),t.number!=null&&(i.number=t.number|0),t.color!=null&&(i.color=String(t.color)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.isFan=0,n.number=0,n.color=""),t.isFan!=null&&t.hasOwnProperty("isFan")&&(n.isFan=t.isFan),t.number!=null&&t.hasOwnProperty("number")&&(n.number=t.number),t.color!=null&&t.hasOwnProperty("color")&&(n.color=t.color),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v1.DecoCardFan"},e}(),c.UserInfo=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.mid=t.int64();break}case 2:{o.name=t.string();break}case 3:{o.face=t.string();break}case 4:{o.official=u.bilibili.app.dynamic.v1.OfficialVerify.decode(t,t.uint32());break}case 5:{o.vip=u.bilibili.app.dynamic.v1.VipInfo.decode(t,t.uint32());break}case 6:{o.live=u.bilibili.app.dynamic.v1.LiveInfo.decode(t,t.uint32());break}case 7:{o.uri=t.string();break}case 8:{o.pendant=u.bilibili.app.dynamic.v1.UserPendant.decode(t,t.uint32());break}case 9:{o.nameplate=u.bilibili.app.dynamic.v1.Nameplate.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v1.UserInfo)return t;let i=new u.bilibili.app.dynamic.v1.UserInfo;if(t.mid!=null&&(r.Long?(i.mid=r.Long.fromValue(t.mid)).unsigned=!1:typeof t.mid=="string"?i.mid=parseInt(t.mid,10):typeof t.mid=="number"?i.mid=t.mid:typeof t.mid=="object"&&(i.mid=new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber())),t.name!=null&&(i.name=String(t.name)),t.face!=null&&(i.face=String(t.face)),t.official!=null){if(typeof t.official!="object")throw TypeError(".bilibili.app.dynamic.v1.UserInfo.official: object expected");i.official=u.bilibili.app.dynamic.v1.OfficialVerify.fromObject(t.official)}if(t.vip!=null){if(typeof t.vip!="object")throw TypeError(".bilibili.app.dynamic.v1.UserInfo.vip: object expected");i.vip=u.bilibili.app.dynamic.v1.VipInfo.fromObject(t.vip)}if(t.live!=null){if(typeof t.live!="object")throw TypeError(".bilibili.app.dynamic.v1.UserInfo.live: object expected");i.live=u.bilibili.app.dynamic.v1.LiveInfo.fromObject(t.live)}if(t.uri!=null&&(i.uri=String(t.uri)),t.pendant!=null){if(typeof t.pendant!="object")throw TypeError(".bilibili.app.dynamic.v1.UserInfo.pendant: object expected");i.pendant=u.bilibili.app.dynamic.v1.UserPendant.fromObject(t.pendant)}if(t.nameplate!=null){if(typeof t.nameplate!="object")throw TypeError(".bilibili.app.dynamic.v1.UserInfo.nameplate: object expected");i.nameplate=u.bilibili.app.dynamic.v1.Nameplate.fromObject(t.nameplate)}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.mid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mid=i.longs===String?"0":0;n.name="",n.face="",n.official=null,n.vip=null,n.live=null,n.uri="",n.pendant=null,n.nameplate=null}return t.mid!=null&&t.hasOwnProperty("mid")&&(typeof t.mid=="number"?n.mid=i.longs===String?String(t.mid):t.mid:n.mid=i.longs===String?r.Long.prototype.toString.call(t.mid):i.longs===Number?new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber():t.mid),t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),t.face!=null&&t.hasOwnProperty("face")&&(n.face=t.face),t.official!=null&&t.hasOwnProperty("official")&&(n.official=u.bilibili.app.dynamic.v1.OfficialVerify.toObject(t.official,i)),t.vip!=null&&t.hasOwnProperty("vip")&&(n.vip=u.bilibili.app.dynamic.v1.VipInfo.toObject(t.vip,i)),t.live!=null&&t.hasOwnProperty("live")&&(n.live=u.bilibili.app.dynamic.v1.LiveInfo.toObject(t.live,i)),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),t.pendant!=null&&t.hasOwnProperty("pendant")&&(n.pendant=u.bilibili.app.dynamic.v1.UserPendant.toObject(t.pendant,i)),t.nameplate!=null&&t.hasOwnProperty("nameplate")&&(n.nameplate=u.bilibili.app.dynamic.v1.Nameplate.toObject(t.nameplate,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v1.UserInfo"},e}(),c.Nameplate=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.nid=t.int64();break}case 2:{o.name=t.string();break}case 3:{o.image=t.string();break}case 4:{o.imageSmall=t.string();break}case 5:{o.level=t.string();break}case 6:{o.condition=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v1.Nameplate)return t;let i=new u.bilibili.app.dynamic.v1.Nameplate;return t.nid!=null&&(r.Long?(i.nid=r.Long.fromValue(t.nid)).unsigned=!1:typeof t.nid=="string"?i.nid=parseInt(t.nid,10):typeof t.nid=="number"?i.nid=t.nid:typeof t.nid=="object"&&(i.nid=new r.LongBits(t.nid.low>>>0,t.nid.high>>>0).toNumber())),t.name!=null&&(i.name=String(t.name)),t.image!=null&&(i.image=String(t.image)),t.imageSmall!=null&&(i.imageSmall=String(t.imageSmall)),t.level!=null&&(i.level=String(t.level)),t.condition!=null&&(i.condition=String(t.condition)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.nid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.nid=i.longs===String?"0":0;n.name="",n.image="",n.imageSmall="",n.level="",n.condition=""}return t.nid!=null&&t.hasOwnProperty("nid")&&(typeof t.nid=="number"?n.nid=i.longs===String?String(t.nid):t.nid:n.nid=i.longs===String?r.Long.prototype.toString.call(t.nid):i.longs===Number?new r.LongBits(t.nid.low>>>0,t.nid.high>>>0).toNumber():t.nid),t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),t.image!=null&&t.hasOwnProperty("image")&&(n.image=t.image),t.imageSmall!=null&&t.hasOwnProperty("imageSmall")&&(n.imageSmall=t.imageSmall),t.level!=null&&t.hasOwnProperty("level")&&(n.level=t.level),t.condition!=null&&t.hasOwnProperty("condition")&&(n.condition=t.condition),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v1.Nameplate"},e}(),c.UserPendant=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.pid=t.int64();break}case 2:{o.name=t.string();break}case 3:{o.image=t.string();break}case 4:{o.expire=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v1.UserPendant)return t;let i=new u.bilibili.app.dynamic.v1.UserPendant;return t.pid!=null&&(r.Long?(i.pid=r.Long.fromValue(t.pid)).unsigned=!1:typeof t.pid=="string"?i.pid=parseInt(t.pid,10):typeof t.pid=="number"?i.pid=t.pid:typeof t.pid=="object"&&(i.pid=new r.LongBits(t.pid.low>>>0,t.pid.high>>>0).toNumber())),t.name!=null&&(i.name=String(t.name)),t.image!=null&&(i.image=String(t.image)),t.expire!=null&&(r.Long?(i.expire=r.Long.fromValue(t.expire)).unsigned=!1:typeof t.expire=="string"?i.expire=parseInt(t.expire,10):typeof t.expire=="number"?i.expire=t.expire:typeof t.expire=="object"&&(i.expire=new r.LongBits(t.expire.low>>>0,t.expire.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.pid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.pid=i.longs===String?"0":0;if(n.name="",n.image="",r.Long){let o=new r.Long(0,0,!1);n.expire=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.expire=i.longs===String?"0":0}return t.pid!=null&&t.hasOwnProperty("pid")&&(typeof t.pid=="number"?n.pid=i.longs===String?String(t.pid):t.pid:n.pid=i.longs===String?r.Long.prototype.toString.call(t.pid):i.longs===Number?new r.LongBits(t.pid.low>>>0,t.pid.high>>>0).toNumber():t.pid),t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),t.image!=null&&t.hasOwnProperty("image")&&(n.image=t.image),t.expire!=null&&t.hasOwnProperty("expire")&&(typeof t.expire=="number"?n.expire=i.longs===String?String(t.expire):t.expire:n.expire=i.longs===String?r.Long.prototype.toString.call(t.expire):i.longs===Number?new r.LongBits(t.expire.low>>>0,t.expire.high>>>0).toNumber():t.expire),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v1.UserPendant"},e}(),c.OfficialVerify=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.type=t.int32();break}case 2:{o.desc=t.string();break}case 3:{o.isAtten=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v1.OfficialVerify)return t;let i=new u.bilibili.app.dynamic.v1.OfficialVerify;return t.type!=null&&(i.type=t.type|0),t.desc!=null&&(i.desc=String(t.desc)),t.isAtten!=null&&(i.isAtten=t.isAtten|0),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.type=0,n.desc="",n.isAtten=0),t.type!=null&&t.hasOwnProperty("type")&&(n.type=t.type),t.desc!=null&&t.hasOwnProperty("desc")&&(n.desc=t.desc),t.isAtten!=null&&t.hasOwnProperty("isAtten")&&(n.isAtten=t.isAtten),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v1.OfficialVerify"},e}(),c.VipInfo=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.Type=t.int32();break}case 2:{o.status=t.int32();break}case 3:{o.dueDate=t.int64();break}case 4:{o.label=u.bilibili.app.dynamic.v1.VipLabel.decode(t,t.uint32());break}case 5:{o.themeType=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v1.VipInfo)return t;let i=new u.bilibili.app.dynamic.v1.VipInfo;if(t.Type!=null&&(i.Type=t.Type|0),t.status!=null&&(i.status=t.status|0),t.dueDate!=null&&(r.Long?(i.dueDate=r.Long.fromValue(t.dueDate)).unsigned=!1:typeof t.dueDate=="string"?i.dueDate=parseInt(t.dueDate,10):typeof t.dueDate=="number"?i.dueDate=t.dueDate:typeof t.dueDate=="object"&&(i.dueDate=new r.LongBits(t.dueDate.low>>>0,t.dueDate.high>>>0).toNumber())),t.label!=null){if(typeof t.label!="object")throw TypeError(".bilibili.app.dynamic.v1.VipInfo.label: object expected");i.label=u.bilibili.app.dynamic.v1.VipLabel.fromObject(t.label)}return t.themeType!=null&&(i.themeType=t.themeType|0),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.Type=0,n.status=0,r.Long){let o=new r.Long(0,0,!1);n.dueDate=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.dueDate=i.longs===String?"0":0;n.label=null,n.themeType=0}return t.Type!=null&&t.hasOwnProperty("Type")&&(n.Type=t.Type),t.status!=null&&t.hasOwnProperty("status")&&(n.status=t.status),t.dueDate!=null&&t.hasOwnProperty("dueDate")&&(typeof t.dueDate=="number"?n.dueDate=i.longs===String?String(t.dueDate):t.dueDate:n.dueDate=i.longs===String?r.Long.prototype.toString.call(t.dueDate):i.longs===Number?new r.LongBits(t.dueDate.low>>>0,t.dueDate.high>>>0).toNumber():t.dueDate),t.label!=null&&t.hasOwnProperty("label")&&(n.label=u.bilibili.app.dynamic.v1.VipLabel.toObject(t.label,i)),t.themeType!=null&&t.hasOwnProperty("themeType")&&(n.themeType=t.themeType),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v1.VipInfo"},e}(),c.VipLabel=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.path=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v1.VipLabel)return t;let i=new u.bilibili.app.dynamic.v1.VipLabel;return t.path!=null&&(i.path=String(t.path)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.path=""),t.path!=null&&t.hasOwnProperty("path")&&(n.path=t.path),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v1.VipLabel"},e}(),c.LiveInfo=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.isLiving=t.int32();break}case 2:{o.uri=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v1.LiveInfo)return t;let i=new u.bilibili.app.dynamic.v1.LiveInfo;return t.isLiving!=null&&(i.isLiving=t.isLiving|0),t.uri!=null&&(i.uri=String(t.uri)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.isLiving=0,n.uri=""),t.isLiving!=null&&t.hasOwnProperty("isLiving")&&(n.isLiving=t.isLiving),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v1.LiveInfo"},e}(),c.DynDetailsReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.teenagersMode=t.int32();break}case 2:{o.dynamicIds=t.string();break}case 3:{o.qn=t.int32();break}case 4:{o.fnver=t.int32();break}case 5:{o.fnval=t.int32();break}case 6:{o.forceHost=t.int32();break}case 7:{o.fourk=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v1.DynDetailsReq)return t;let i=new u.bilibili.app.dynamic.v1.DynDetailsReq;return t.teenagersMode!=null&&(i.teenagersMode=t.teenagersMode|0),t.dynamicIds!=null&&(i.dynamicIds=String(t.dynamicIds)),t.qn!=null&&(i.qn=t.qn|0),t.fnver!=null&&(i.fnver=t.fnver|0),t.fnval!=null&&(i.fnval=t.fnval|0),t.forceHost!=null&&(i.forceHost=t.forceHost|0),t.fourk!=null&&(i.fourk=t.fourk|0),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.teenagersMode=0,n.dynamicIds="",n.qn=0,n.fnver=0,n.fnval=0,n.forceHost=0,n.fourk=0),t.teenagersMode!=null&&t.hasOwnProperty("teenagersMode")&&(n.teenagersMode=t.teenagersMode),t.dynamicIds!=null&&t.hasOwnProperty("dynamicIds")&&(n.dynamicIds=t.dynamicIds),t.qn!=null&&t.hasOwnProperty("qn")&&(n.qn=t.qn),t.fnver!=null&&t.hasOwnProperty("fnver")&&(n.fnver=t.fnver),t.fnval!=null&&t.hasOwnProperty("fnval")&&(n.fnval=t.fnval),t.forceHost!=null&&t.hasOwnProperty("forceHost")&&(n.forceHost=t.forceHost),t.fourk!=null&&t.hasOwnProperty("fourk")&&(n.fourk=t.fourk),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v1.DynDetailsReq"},e}(),c.DynDetailsReply=function(){function e(l){if(this.list=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.list&&o.list.length||(o.list=[]),o.list.push(u.bilibili.app.dynamic.v1.DynamicItem.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v1.DynDetailsReply)return t;let i=new u.bilibili.app.dynamic.v1.DynDetailsReply;if(t.list){if(!Array.isArray(t.list))throw TypeError(".bilibili.app.dynamic.v1.DynDetailsReply.list: array expected");i.list=[];for(let n=0;n>>3){case 1:{o.oid=t.int64();break}case 2:{o.type=t.int32();break}case 3:{o.offset=t.string();break}case 4:{o.qn=t.int32();break}case 5:{o.fnver=t.int32();break}case 6:{o.fnval=t.int32();break}case 7:{o.forceHost=t.int32();break}case 8:{o.fourk=t.int32();break}case 9:{o.spmid=t.string();break}case 10:{o.fromSpmid=t.string();break}case 11:{o.playerPreload=u.bilibili.app.dynamic.v1.PlayerPreloadParams.decode(t,t.uint32());break}case 12:{o.focusAid=t.int64();break}case 13:{o.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v1.SVideoReq)return t;let i=new u.bilibili.app.dynamic.v1.SVideoReq;switch(t.oid!=null&&(r.Long?(i.oid=r.Long.fromValue(t.oid)).unsigned=!1:typeof t.oid=="string"?i.oid=parseInt(t.oid,10):typeof t.oid=="number"?i.oid=t.oid:typeof t.oid=="object"&&(i.oid=new r.LongBits(t.oid.low>>>0,t.oid.high>>>0).toNumber())),t.type){default:if(typeof t.type=="number"){i.type=t.type;break}break;case"TypeNone":case 0:i.type=0;break;case"TypeDynamic":case 1:i.type=1;break;case"TypePopularIndex":case 2:i.type=2;break;case"TypePopularHotword":case 3:i.type=3;break}if(t.offset!=null&&(i.offset=String(t.offset)),t.qn!=null&&(i.qn=t.qn|0),t.fnver!=null&&(i.fnver=t.fnver|0),t.fnval!=null&&(i.fnval=t.fnval|0),t.forceHost!=null&&(i.forceHost=t.forceHost|0),t.fourk!=null&&(i.fourk=t.fourk|0),t.spmid!=null&&(i.spmid=String(t.spmid)),t.fromSpmid!=null&&(i.fromSpmid=String(t.fromSpmid)),t.playerPreload!=null){if(typeof t.playerPreload!="object")throw TypeError(".bilibili.app.dynamic.v1.SVideoReq.playerPreload: object expected");i.playerPreload=u.bilibili.app.dynamic.v1.PlayerPreloadParams.fromObject(t.playerPreload)}if(t.focusAid!=null&&(r.Long?(i.focusAid=r.Long.fromValue(t.focusAid)).unsigned=!1:typeof t.focusAid=="string"?i.focusAid=parseInt(t.focusAid,10):typeof t.focusAid=="number"?i.focusAid=t.focusAid:typeof t.focusAid=="object"&&(i.focusAid=new r.LongBits(t.focusAid.low>>>0,t.focusAid.high>>>0).toNumber())),t.playerArgs!=null){if(typeof t.playerArgs!="object")throw TypeError(".bilibili.app.dynamic.v1.SVideoReq.playerArgs: object expected");i.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.fromObject(t.playerArgs)}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.oid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.oid=i.longs===String?"0":0;if(n.type=i.enums===String?"TypeNone":0,n.offset="",n.qn=0,n.fnver=0,n.fnval=0,n.forceHost=0,n.fourk=0,n.spmid="",n.fromSpmid="",n.playerPreload=null,r.Long){let o=new r.Long(0,0,!1);n.focusAid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.focusAid=i.longs===String?"0":0;n.playerArgs=null}return t.oid!=null&&t.hasOwnProperty("oid")&&(typeof t.oid=="number"?n.oid=i.longs===String?String(t.oid):t.oid:n.oid=i.longs===String?r.Long.prototype.toString.call(t.oid):i.longs===Number?new r.LongBits(t.oid.low>>>0,t.oid.high>>>0).toNumber():t.oid),t.type!=null&&t.hasOwnProperty("type")&&(n.type=i.enums===String?u.bilibili.app.dynamic.v1.SVideoType[t.type]===void 0?t.type:u.bilibili.app.dynamic.v1.SVideoType[t.type]:t.type),t.offset!=null&&t.hasOwnProperty("offset")&&(n.offset=t.offset),t.qn!=null&&t.hasOwnProperty("qn")&&(n.qn=t.qn),t.fnver!=null&&t.hasOwnProperty("fnver")&&(n.fnver=t.fnver),t.fnval!=null&&t.hasOwnProperty("fnval")&&(n.fnval=t.fnval),t.forceHost!=null&&t.hasOwnProperty("forceHost")&&(n.forceHost=t.forceHost),t.fourk!=null&&t.hasOwnProperty("fourk")&&(n.fourk=t.fourk),t.spmid!=null&&t.hasOwnProperty("spmid")&&(n.spmid=t.spmid),t.fromSpmid!=null&&t.hasOwnProperty("fromSpmid")&&(n.fromSpmid=t.fromSpmid),t.playerPreload!=null&&t.hasOwnProperty("playerPreload")&&(n.playerPreload=u.bilibili.app.dynamic.v1.PlayerPreloadParams.toObject(t.playerPreload,i)),t.focusAid!=null&&t.hasOwnProperty("focusAid")&&(typeof t.focusAid=="number"?n.focusAid=i.longs===String?String(t.focusAid):t.focusAid:n.focusAid=i.longs===String?r.Long.prototype.toString.call(t.focusAid):i.longs===Number?new r.LongBits(t.focusAid.low>>>0,t.focusAid.high>>>0).toNumber():t.focusAid),t.playerArgs!=null&&t.hasOwnProperty("playerArgs")&&(n.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.toObject(t.playerArgs,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v1.SVideoReq"},e}(),c.SVideoType=function(){let e={},l=Object.create(e);return l[e[0]="TypeNone"]=0,l[e[1]="TypeDynamic"]=1,l[e[2]="TypePopularIndex"]=2,l[e[3]="TypePopularHotword"]=3,l}(),c.SVideoReply=function(){function e(l){if(this.list=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.list&&o.list.length||(o.list=[]),o.list.push(u.bilibili.app.dynamic.v1.SVideoItem.decode(t,t.uint32()));break}case 2:{o.offset=t.string();break}case 3:{o.hasMore=t.int32();break}case 4:{o.top=u.bilibili.app.dynamic.v1.SVideoTop.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v1.SVideoReply)return t;let i=new u.bilibili.app.dynamic.v1.SVideoReply;if(t.list){if(!Array.isArray(t.list))throw TypeError(".bilibili.app.dynamic.v1.SVideoReply.list: array expected");i.list=[];for(let n=0;n>>3){case 1:{o.Title=t.string();break}case 2:{o.Desc=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v1.SVideoTop)return t;let i=new u.bilibili.app.dynamic.v1.SVideoTop;return t.Title!=null&&(i.Title=String(t.Title)),t.Desc!=null&&(i.Desc=String(t.Desc)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.Title="",n.Desc=""),t.Title!=null&&t.hasOwnProperty("Title")&&(n.Title=t.Title),t.Desc!=null&&t.hasOwnProperty("Desc")&&(n.Desc=t.Desc),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v1.SVideoTop"},e}(),c.PlayerPreloadParams=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.qn=t.int32();break}case 2:{o.fnver=t.int32();break}case 3:{o.fnval=t.int32();break}case 4:{o.forceHost=t.int32();break}case 5:{o.fourk=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v1.PlayerPreloadParams)return t;let i=new u.bilibili.app.dynamic.v1.PlayerPreloadParams;return t.qn!=null&&(i.qn=t.qn|0),t.fnver!=null&&(i.fnver=t.fnver|0),t.fnval!=null&&(i.fnval=t.fnval|0),t.forceHost!=null&&(i.forceHost=t.forceHost|0),t.fourk!=null&&(i.fourk=t.fourk|0),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.qn=0,n.fnver=0,n.fnval=0,n.forceHost=0,n.fourk=0),t.qn!=null&&t.hasOwnProperty("qn")&&(n.qn=t.qn),t.fnver!=null&&t.hasOwnProperty("fnver")&&(n.fnver=t.fnver),t.fnval!=null&&t.hasOwnProperty("fnval")&&(n.fnval=t.fnval),t.forceHost!=null&&t.hasOwnProperty("forceHost")&&(n.forceHost=t.forceHost),t.fourk!=null&&t.hasOwnProperty("fourk")&&(n.fourk=t.fourk),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v1.PlayerPreloadParams"},e}(),c.SVideoItem=function(){function e(l){if(this.modules=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.cardType=t.string();break}case 2:{o.modules&&o.modules.length||(o.modules=[]),o.modules.push(u.bilibili.app.dynamic.v1.SVideoModule.decode(t,t.uint32()));break}case 3:{o.dynIdStr=t.string();break}case 4:{o.index=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v1.SVideoItem)return t;let i=new u.bilibili.app.dynamic.v1.SVideoItem;if(t.cardType!=null&&(i.cardType=String(t.cardType)),t.modules){if(!Array.isArray(t.modules))throw TypeError(".bilibili.app.dynamic.v1.SVideoItem.modules: array expected");i.modules=[];for(let n=0;n>>0,t.index.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if((i.arrays||i.defaults)&&(n.modules=[]),i.defaults)if(n.cardType="",n.dynIdStr="",r.Long){let o=new r.Long(0,0,!1);n.index=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.index=i.longs===String?"0":0;if(t.cardType!=null&&t.hasOwnProperty("cardType")&&(n.cardType=t.cardType),t.modules&&t.modules.length){n.modules=[];for(let o=0;o>>0,t.index.high>>>0).toNumber():t.index),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v1.SVideoItem"},e}(),c.SVideoModule=function(){function e(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.moduleType=i.string();break}case 2:{a.moduleAuthor=u.bilibili.app.dynamic.v1.SVideoModuleAuthor.decode(i,i.uint32());break}case 3:{a.modulePlayer=u.bilibili.app.dynamic.v1.SVideoModulePlayer.decode(i,i.uint32());break}case 4:{a.moduleDesc=u.bilibili.app.dynamic.v1.SVideoModuleDesc.decode(i,i.uint32());break}case 5:{a.moduleStat=u.bilibili.app.dynamic.v1.SVideoModuleStat.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},e.fromObject=function(i){if(i instanceof u.bilibili.app.dynamic.v1.SVideoModule)return i;let n=new u.bilibili.app.dynamic.v1.SVideoModule;if(i.moduleType!=null&&(n.moduleType=String(i.moduleType)),i.moduleAuthor!=null){if(typeof i.moduleAuthor!="object")throw TypeError(".bilibili.app.dynamic.v1.SVideoModule.moduleAuthor: object expected");n.moduleAuthor=u.bilibili.app.dynamic.v1.SVideoModuleAuthor.fromObject(i.moduleAuthor)}if(i.modulePlayer!=null){if(typeof i.modulePlayer!="object")throw TypeError(".bilibili.app.dynamic.v1.SVideoModule.modulePlayer: object expected");n.modulePlayer=u.bilibili.app.dynamic.v1.SVideoModulePlayer.fromObject(i.modulePlayer)}if(i.moduleDesc!=null){if(typeof i.moduleDesc!="object")throw TypeError(".bilibili.app.dynamic.v1.SVideoModule.moduleDesc: object expected");n.moduleDesc=u.bilibili.app.dynamic.v1.SVideoModuleDesc.fromObject(i.moduleDesc)}if(i.moduleStat!=null){if(typeof i.moduleStat!="object")throw TypeError(".bilibili.app.dynamic.v1.SVideoModule.moduleStat: object expected");n.moduleStat=u.bilibili.app.dynamic.v1.SVideoModuleStat.fromObject(i.moduleStat)}return n},e.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.moduleType=""),i.moduleType!=null&&i.hasOwnProperty("moduleType")&&(o.moduleType=i.moduleType),i.moduleAuthor!=null&&i.hasOwnProperty("moduleAuthor")&&(o.moduleAuthor=u.bilibili.app.dynamic.v1.SVideoModuleAuthor.toObject(i.moduleAuthor,n),n.oneofs&&(o.moduleItem="moduleAuthor")),i.modulePlayer!=null&&i.hasOwnProperty("modulePlayer")&&(o.modulePlayer=u.bilibili.app.dynamic.v1.SVideoModulePlayer.toObject(i.modulePlayer,n),n.oneofs&&(o.moduleItem="modulePlayer")),i.moduleDesc!=null&&i.hasOwnProperty("moduleDesc")&&(o.moduleDesc=u.bilibili.app.dynamic.v1.SVideoModuleDesc.toObject(i.moduleDesc,n),n.oneofs&&(o.moduleItem="moduleDesc")),i.moduleStat!=null&&i.hasOwnProperty("moduleStat")&&(o.moduleStat=u.bilibili.app.dynamic.v1.SVideoModuleStat.toObject(i.moduleStat,n),n.oneofs&&(o.moduleItem="moduleStat")),o},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.app.dynamic.v1.SVideoModule"},e}(),c.SVideoModuleAuthor=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.mid=t.int64();break}case 2:{o.name=t.string();break}case 3:{o.face=t.string();break}case 4:{o.pubDesc=t.string();break}case 5:{o.isAttention=t.int32();break}case 6:{o.uri=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v1.SVideoModuleAuthor)return t;let i=new u.bilibili.app.dynamic.v1.SVideoModuleAuthor;return t.mid!=null&&(r.Long?(i.mid=r.Long.fromValue(t.mid)).unsigned=!1:typeof t.mid=="string"?i.mid=parseInt(t.mid,10):typeof t.mid=="number"?i.mid=t.mid:typeof t.mid=="object"&&(i.mid=new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber())),t.name!=null&&(i.name=String(t.name)),t.face!=null&&(i.face=String(t.face)),t.pubDesc!=null&&(i.pubDesc=String(t.pubDesc)),t.isAttention!=null&&(i.isAttention=t.isAttention|0),t.uri!=null&&(i.uri=String(t.uri)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.mid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mid=i.longs===String?"0":0;n.name="",n.face="",n.pubDesc="",n.isAttention=0,n.uri=""}return t.mid!=null&&t.hasOwnProperty("mid")&&(typeof t.mid=="number"?n.mid=i.longs===String?String(t.mid):t.mid:n.mid=i.longs===String?r.Long.prototype.toString.call(t.mid):i.longs===Number?new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber():t.mid),t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),t.face!=null&&t.hasOwnProperty("face")&&(n.face=t.face),t.pubDesc!=null&&t.hasOwnProperty("pubDesc")&&(n.pubDesc=t.pubDesc),t.isAttention!=null&&t.hasOwnProperty("isAttention")&&(n.isAttention=t.isAttention),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v1.SVideoModuleAuthor"},e}(),c.SVideoModulePlayer=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.cover=t.string();break}case 3:{o.uri=t.string();break}case 4:{o.aid=t.int64();break}case 5:{o.cid=t.int64();break}case 6:{o.duration=t.int64();break}case 7:{o.dimension=u.bilibili.app.dynamic.v1.Dimension.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v1.SVideoModulePlayer)return t;let i=new u.bilibili.app.dynamic.v1.SVideoModulePlayer;if(t.title!=null&&(i.title=String(t.title)),t.cover!=null&&(i.cover=String(t.cover)),t.uri!=null&&(i.uri=String(t.uri)),t.aid!=null&&(r.Long?(i.aid=r.Long.fromValue(t.aid)).unsigned=!1:typeof t.aid=="string"?i.aid=parseInt(t.aid,10):typeof t.aid=="number"?i.aid=t.aid:typeof t.aid=="object"&&(i.aid=new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber())),t.cid!=null&&(r.Long?(i.cid=r.Long.fromValue(t.cid)).unsigned=!1:typeof t.cid=="string"?i.cid=parseInt(t.cid,10):typeof t.cid=="number"?i.cid=t.cid:typeof t.cid=="object"&&(i.cid=new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber())),t.duration!=null&&(r.Long?(i.duration=r.Long.fromValue(t.duration)).unsigned=!1:typeof t.duration=="string"?i.duration=parseInt(t.duration,10):typeof t.duration=="number"?i.duration=t.duration:typeof t.duration=="object"&&(i.duration=new r.LongBits(t.duration.low>>>0,t.duration.high>>>0).toNumber())),t.dimension!=null){if(typeof t.dimension!="object")throw TypeError(".bilibili.app.dynamic.v1.SVideoModulePlayer.dimension: object expected");i.dimension=u.bilibili.app.dynamic.v1.Dimension.fromObject(t.dimension)}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.title="",n.cover="",n.uri="",r.Long){let o=new r.Long(0,0,!1);n.aid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.aid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.cid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.cid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.duration=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.duration=i.longs===String?"0":0;n.dimension=null}return t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.cover!=null&&t.hasOwnProperty("cover")&&(n.cover=t.cover),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),t.aid!=null&&t.hasOwnProperty("aid")&&(typeof t.aid=="number"?n.aid=i.longs===String?String(t.aid):t.aid:n.aid=i.longs===String?r.Long.prototype.toString.call(t.aid):i.longs===Number?new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber():t.aid),t.cid!=null&&t.hasOwnProperty("cid")&&(typeof t.cid=="number"?n.cid=i.longs===String?String(t.cid):t.cid:n.cid=i.longs===String?r.Long.prototype.toString.call(t.cid):i.longs===Number?new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber():t.cid),t.duration!=null&&t.hasOwnProperty("duration")&&(typeof t.duration=="number"?n.duration=i.longs===String?String(t.duration):t.duration:n.duration=i.longs===String?r.Long.prototype.toString.call(t.duration):i.longs===Number?new r.LongBits(t.duration.low>>>0,t.duration.high>>>0).toNumber():t.duration),t.dimension!=null&&t.hasOwnProperty("dimension")&&(n.dimension=u.bilibili.app.dynamic.v1.Dimension.toObject(t.dimension,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v1.SVideoModulePlayer"},e}(),c.SVideoModuleDesc=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.text=t.string();break}case 2:{o.uri=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v1.SVideoModuleDesc)return t;let i=new u.bilibili.app.dynamic.v1.SVideoModuleDesc;return t.text!=null&&(i.text=String(t.text)),t.uri!=null&&(i.uri=String(t.uri)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.text="",n.uri=""),t.text!=null&&t.hasOwnProperty("text")&&(n.text=t.text),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v1.SVideoModuleDesc"},e}(),c.SVideoModuleStat=function(){function e(l){if(this.statInfo=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.statInfo&&o.statInfo.length||(o.statInfo=[]),o.statInfo.push(u.bilibili.app.dynamic.v1.SVideoStatInfo.decode(t,t.uint32()));break}case 2:{o.shareInfo=u.bilibili.app.dynamic.v1.ShareInfo.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v1.SVideoModuleStat)return t;let i=new u.bilibili.app.dynamic.v1.SVideoModuleStat;if(t.statInfo){if(!Array.isArray(t.statInfo))throw TypeError(".bilibili.app.dynamic.v1.SVideoModuleStat.statInfo: array expected");i.statInfo=[];for(let n=0;n>>3){case 1:{o.icon=t.int32();break}case 2:{o.num=t.int64();break}case 3:{o.selected=t.int32();break}case 4:{o.uri=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v1.SVideoStatInfo)return t;let i=new u.bilibili.app.dynamic.v1.SVideoStatInfo;return t.icon!=null&&(i.icon=t.icon|0),t.num!=null&&(r.Long?(i.num=r.Long.fromValue(t.num)).unsigned=!1:typeof t.num=="string"?i.num=parseInt(t.num,10):typeof t.num=="number"?i.num=t.num:typeof t.num=="object"&&(i.num=new r.LongBits(t.num.low>>>0,t.num.high>>>0).toNumber())),t.selected!=null&&(i.selected=t.selected|0),t.uri!=null&&(i.uri=String(t.uri)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.icon=0,r.Long){let o=new r.Long(0,0,!1);n.num=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.num=i.longs===String?"0":0;n.selected=0,n.uri=""}return t.icon!=null&&t.hasOwnProperty("icon")&&(n.icon=t.icon),t.num!=null&&t.hasOwnProperty("num")&&(typeof t.num=="number"?n.num=i.longs===String?String(t.num):t.num:n.num=i.longs===String?r.Long.prototype.toString.call(t.num):i.longs===Number?new r.LongBits(t.num.low>>>0,t.num.high>>>0).toNumber():t.num),t.selected!=null&&t.hasOwnProperty("selected")&&(n.selected=t.selected),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v1.SVideoStatInfo"},e}(),c.ShareInfo=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.aid=t.int64();break}case 2:{o.bvid=t.string();break}case 3:{o.title=t.string();break}case 4:{o.subtitle=t.string();break}case 5:{o.cover=t.string();break}case 6:{o.mid=t.int64();break}case 7:{o.name=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v1.ShareInfo)return t;let i=new u.bilibili.app.dynamic.v1.ShareInfo;return t.aid!=null&&(r.Long?(i.aid=r.Long.fromValue(t.aid)).unsigned=!1:typeof t.aid=="string"?i.aid=parseInt(t.aid,10):typeof t.aid=="number"?i.aid=t.aid:typeof t.aid=="object"&&(i.aid=new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber())),t.bvid!=null&&(i.bvid=String(t.bvid)),t.title!=null&&(i.title=String(t.title)),t.subtitle!=null&&(i.subtitle=String(t.subtitle)),t.cover!=null&&(i.cover=String(t.cover)),t.mid!=null&&(r.Long?(i.mid=r.Long.fromValue(t.mid)).unsigned=!1:typeof t.mid=="string"?i.mid=parseInt(t.mid,10):typeof t.mid=="number"?i.mid=t.mid:typeof t.mid=="object"&&(i.mid=new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber())),t.name!=null&&(i.name=String(t.name)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.aid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.aid=i.longs===String?"0":0;if(n.bvid="",n.title="",n.subtitle="",n.cover="",r.Long){let o=new r.Long(0,0,!1);n.mid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mid=i.longs===String?"0":0;n.name=""}return t.aid!=null&&t.hasOwnProperty("aid")&&(typeof t.aid=="number"?n.aid=i.longs===String?String(t.aid):t.aid:n.aid=i.longs===String?r.Long.prototype.toString.call(t.aid):i.longs===Number?new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber():t.aid),t.bvid!=null&&t.hasOwnProperty("bvid")&&(n.bvid=t.bvid),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.subtitle!=null&&t.hasOwnProperty("subtitle")&&(n.subtitle=t.subtitle),t.cover!=null&&t.hasOwnProperty("cover")&&(n.cover=t.cover),t.mid!=null&&t.hasOwnProperty("mid")&&(typeof t.mid=="number"?n.mid=i.longs===String?String(t.mid):t.mid:n.mid=i.longs===String?r.Long.prototype.toString.call(t.mid):i.longs===Number?new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber():t.mid),t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v1.ShareInfo"},e}(),c.DynTabReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.teenagersMode=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v1.DynTabReq)return t;let i=new u.bilibili.app.dynamic.v1.DynTabReq;return t.teenagersMode!=null&&(i.teenagersMode=t.teenagersMode|0),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.teenagersMode=0),t.teenagersMode!=null&&t.hasOwnProperty("teenagersMode")&&(n.teenagersMode=t.teenagersMode),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v1.DynTabReq"},e}(),c.DynTabReply=function(){function e(l){if(this.dynTab=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.dynTab&&o.dynTab.length||(o.dynTab=[]),o.dynTab.push(u.bilibili.app.dynamic.v1.DynTab.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v1.DynTabReply)return t;let i=new u.bilibili.app.dynamic.v1.DynTabReply;if(t.dynTab){if(!Array.isArray(t.dynTab))throw TypeError(".bilibili.app.dynamic.v1.DynTabReply.dynTab: array expected");i.dynTab=[];for(let n=0;n>>3){case 1:{o.title=t.string();break}case 2:{o.uri=t.string();break}case 3:{o.bubble=t.string();break}case 4:{o.redPoint=t.int32();break}case 5:{o.cityId=t.int64();break}case 6:{o.isPopup=t.int32();break}case 7:{o.popup=u.bilibili.app.dynamic.v1.Popup.decode(t,t.uint32());break}case 8:{o.defaultTab=t.bool();break}case 9:{o.subTitle=t.string();break}case 10:{o.anchor=t.string();break}case 11:{o.internalTest=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v1.DynTab)return t;let i=new u.bilibili.app.dynamic.v1.DynTab;if(t.title!=null&&(i.title=String(t.title)),t.uri!=null&&(i.uri=String(t.uri)),t.bubble!=null&&(i.bubble=String(t.bubble)),t.redPoint!=null&&(i.redPoint=t.redPoint|0),t.cityId!=null&&(r.Long?(i.cityId=r.Long.fromValue(t.cityId)).unsigned=!1:typeof t.cityId=="string"?i.cityId=parseInt(t.cityId,10):typeof t.cityId=="number"?i.cityId=t.cityId:typeof t.cityId=="object"&&(i.cityId=new r.LongBits(t.cityId.low>>>0,t.cityId.high>>>0).toNumber())),t.isPopup!=null&&(i.isPopup=t.isPopup|0),t.popup!=null){if(typeof t.popup!="object")throw TypeError(".bilibili.app.dynamic.v1.DynTab.popup: object expected");i.popup=u.bilibili.app.dynamic.v1.Popup.fromObject(t.popup)}return t.defaultTab!=null&&(i.defaultTab=!!t.defaultTab),t.subTitle!=null&&(i.subTitle=String(t.subTitle)),t.anchor!=null&&(i.anchor=String(t.anchor)),t.internalTest!=null&&(i.internalTest=String(t.internalTest)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.title="",n.uri="",n.bubble="",n.redPoint=0,r.Long){let o=new r.Long(0,0,!1);n.cityId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.cityId=i.longs===String?"0":0;n.isPopup=0,n.popup=null,n.defaultTab=!1,n.subTitle="",n.anchor="",n.internalTest=""}return t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),t.bubble!=null&&t.hasOwnProperty("bubble")&&(n.bubble=t.bubble),t.redPoint!=null&&t.hasOwnProperty("redPoint")&&(n.redPoint=t.redPoint),t.cityId!=null&&t.hasOwnProperty("cityId")&&(typeof t.cityId=="number"?n.cityId=i.longs===String?String(t.cityId):t.cityId:n.cityId=i.longs===String?r.Long.prototype.toString.call(t.cityId):i.longs===Number?new r.LongBits(t.cityId.low>>>0,t.cityId.high>>>0).toNumber():t.cityId),t.isPopup!=null&&t.hasOwnProperty("isPopup")&&(n.isPopup=t.isPopup),t.popup!=null&&t.hasOwnProperty("popup")&&(n.popup=u.bilibili.app.dynamic.v1.Popup.toObject(t.popup,i)),t.defaultTab!=null&&t.hasOwnProperty("defaultTab")&&(n.defaultTab=t.defaultTab),t.subTitle!=null&&t.hasOwnProperty("subTitle")&&(n.subTitle=t.subTitle),t.anchor!=null&&t.hasOwnProperty("anchor")&&(n.anchor=t.anchor),t.internalTest!=null&&t.hasOwnProperty("internalTest")&&(n.internalTest=t.internalTest),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v1.DynTab"},e}(),c.Popup=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.desc=t.string();break}case 3:{o.uri=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v1.Popup)return t;let i=new u.bilibili.app.dynamic.v1.Popup;return t.title!=null&&(i.title=String(t.title)),t.desc!=null&&(i.desc=String(t.desc)),t.uri!=null&&(i.uri=String(t.uri)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.title="",n.desc="",n.uri=""),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.desc!=null&&t.hasOwnProperty("desc")&&(n.desc=t.desc),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v1.Popup"},e}(),c.DynOurCitySwitchReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.switch=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v1.DynOurCitySwitchReq)return t;let i=new u.bilibili.app.dynamic.v1.DynOurCitySwitchReq;return t.switch!=null&&(i.switch=t.switch|0),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.switch=0),t.switch!=null&&t.hasOwnProperty("switch")&&(n.switch=t.switch),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v1.DynOurCitySwitchReq"},e}(),c.DynOurCityReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.cityId=t.int64();break}case 2:{o.lat=t.double();break}case 3:{o.lng=t.double();break}case 4:{o.offset=t.string();break}case 5:{o.pageSize=t.int32();break}case 6:{o.teenagersMode=t.int32();break}case 7:{o.qn=t.int32();break}case 8:{o.fnver=t.int32();break}case 9:{o.fnval=t.int32();break}case 10:{o.forceHost=t.int32();break}case 11:{o.fourk=t.int32();break}case 12:{o.lbsState=t.int32();break}case 13:{o.refreshCity=t.uint32();break}case 14:{o.expConf=u.bilibili.app.dynamic.v1.ExpConf.decode(t,t.uint32());break}case 15:{o.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.decode(t,t.uint32());break}case 16:{o.cityCode=t.int64();break}case 17:{o.buildTime=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v1.DynOurCityReq)return t;let i=new u.bilibili.app.dynamic.v1.DynOurCityReq;if(t.cityId!=null&&(r.Long?(i.cityId=r.Long.fromValue(t.cityId)).unsigned=!1:typeof t.cityId=="string"?i.cityId=parseInt(t.cityId,10):typeof t.cityId=="number"?i.cityId=t.cityId:typeof t.cityId=="object"&&(i.cityId=new r.LongBits(t.cityId.low>>>0,t.cityId.high>>>0).toNumber())),t.lat!=null&&(i.lat=Number(t.lat)),t.lng!=null&&(i.lng=Number(t.lng)),t.offset!=null&&(i.offset=String(t.offset)),t.pageSize!=null&&(i.pageSize=t.pageSize|0),t.teenagersMode!=null&&(i.teenagersMode=t.teenagersMode|0),t.qn!=null&&(i.qn=t.qn|0),t.fnver!=null&&(i.fnver=t.fnver|0),t.fnval!=null&&(i.fnval=t.fnval|0),t.forceHost!=null&&(i.forceHost=t.forceHost|0),t.fourk!=null&&(i.fourk=t.fourk|0),t.lbsState!=null&&(i.lbsState=t.lbsState|0),t.refreshCity!=null&&(i.refreshCity=t.refreshCity>>>0),t.expConf!=null){if(typeof t.expConf!="object")throw TypeError(".bilibili.app.dynamic.v1.DynOurCityReq.expConf: object expected");i.expConf=u.bilibili.app.dynamic.v1.ExpConf.fromObject(t.expConf)}if(t.playerArgs!=null){if(typeof t.playerArgs!="object")throw TypeError(".bilibili.app.dynamic.v1.DynOurCityReq.playerArgs: object expected");i.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.fromObject(t.playerArgs)}return t.cityCode!=null&&(r.Long?(i.cityCode=r.Long.fromValue(t.cityCode)).unsigned=!1:typeof t.cityCode=="string"?i.cityCode=parseInt(t.cityCode,10):typeof t.cityCode=="number"?i.cityCode=t.cityCode:typeof t.cityCode=="object"&&(i.cityCode=new r.LongBits(t.cityCode.low>>>0,t.cityCode.high>>>0).toNumber())),t.buildTime!=null&&(r.Long?(i.buildTime=r.Long.fromValue(t.buildTime)).unsigned=!1:typeof t.buildTime=="string"?i.buildTime=parseInt(t.buildTime,10):typeof t.buildTime=="number"?i.buildTime=t.buildTime:typeof t.buildTime=="object"&&(i.buildTime=new r.LongBits(t.buildTime.low>>>0,t.buildTime.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.cityId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.cityId=i.longs===String?"0":0;if(n.lat=0,n.lng=0,n.offset="",n.pageSize=0,n.teenagersMode=0,n.qn=0,n.fnver=0,n.fnval=0,n.forceHost=0,n.fourk=0,n.lbsState=0,n.refreshCity=0,n.expConf=null,n.playerArgs=null,r.Long){let o=new r.Long(0,0,!1);n.cityCode=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.cityCode=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.buildTime=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.buildTime=i.longs===String?"0":0}return t.cityId!=null&&t.hasOwnProperty("cityId")&&(typeof t.cityId=="number"?n.cityId=i.longs===String?String(t.cityId):t.cityId:n.cityId=i.longs===String?r.Long.prototype.toString.call(t.cityId):i.longs===Number?new r.LongBits(t.cityId.low>>>0,t.cityId.high>>>0).toNumber():t.cityId),t.lat!=null&&t.hasOwnProperty("lat")&&(n.lat=i.json&&!isFinite(t.lat)?String(t.lat):t.lat),t.lng!=null&&t.hasOwnProperty("lng")&&(n.lng=i.json&&!isFinite(t.lng)?String(t.lng):t.lng),t.offset!=null&&t.hasOwnProperty("offset")&&(n.offset=t.offset),t.pageSize!=null&&t.hasOwnProperty("pageSize")&&(n.pageSize=t.pageSize),t.teenagersMode!=null&&t.hasOwnProperty("teenagersMode")&&(n.teenagersMode=t.teenagersMode),t.qn!=null&&t.hasOwnProperty("qn")&&(n.qn=t.qn),t.fnver!=null&&t.hasOwnProperty("fnver")&&(n.fnver=t.fnver),t.fnval!=null&&t.hasOwnProperty("fnval")&&(n.fnval=t.fnval),t.forceHost!=null&&t.hasOwnProperty("forceHost")&&(n.forceHost=t.forceHost),t.fourk!=null&&t.hasOwnProperty("fourk")&&(n.fourk=t.fourk),t.lbsState!=null&&t.hasOwnProperty("lbsState")&&(n.lbsState=t.lbsState),t.refreshCity!=null&&t.hasOwnProperty("refreshCity")&&(n.refreshCity=t.refreshCity),t.expConf!=null&&t.hasOwnProperty("expConf")&&(n.expConf=u.bilibili.app.dynamic.v1.ExpConf.toObject(t.expConf,i)),t.playerArgs!=null&&t.hasOwnProperty("playerArgs")&&(n.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.toObject(t.playerArgs,i)),t.cityCode!=null&&t.hasOwnProperty("cityCode")&&(typeof t.cityCode=="number"?n.cityCode=i.longs===String?String(t.cityCode):t.cityCode:n.cityCode=i.longs===String?r.Long.prototype.toString.call(t.cityCode):i.longs===Number?new r.LongBits(t.cityCode.low>>>0,t.cityCode.high>>>0).toNumber():t.cityCode),t.buildTime!=null&&t.hasOwnProperty("buildTime")&&(typeof t.buildTime=="number"?n.buildTime=i.longs===String?String(t.buildTime):t.buildTime:n.buildTime=i.longs===String?r.Long.prototype.toString.call(t.buildTime):i.longs===Number?new r.LongBits(t.buildTime.low>>>0,t.buildTime.high>>>0).toNumber():t.buildTime),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v1.DynOurCityReq"},e}(),c.ExpConf=function(){function e(l){if(this.exps=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.expEnable=t.int32();break}case 2:{o.exps&&o.exps.length||(o.exps=[]),o.exps.push(u.bilibili.app.dynamic.v1.Exp.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v1.ExpConf)return t;let i=new u.bilibili.app.dynamic.v1.ExpConf;if(t.expEnable!=null&&(i.expEnable=t.expEnable|0),t.exps){if(!Array.isArray(t.exps))throw TypeError(".bilibili.app.dynamic.v1.ExpConf.exps: array expected");i.exps=[];for(let n=0;n>>3){case 1:{o.expName=t.string();break}case 2:{o.expGroup=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v1.Exp)return t;let i=new u.bilibili.app.dynamic.v1.Exp;return t.expName!=null&&(i.expName=String(t.expName)),t.expGroup!=null&&(i.expGroup=String(t.expGroup)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.expName="",n.expGroup=""),t.expName!=null&&t.hasOwnProperty("expName")&&(n.expName=t.expName),t.expGroup!=null&&t.hasOwnProperty("expGroup")&&(n.expGroup=t.expGroup),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v1.Exp"},e}(),c.DynOurCityReply=function(){function e(l){if(this.list=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.offset=t.string();break}case 2:{o.hasMore=t.int32();break}case 3:{o.style=t.int32();break}case 4:{o.topLabel=t.string();break}case 5:{o.list&&o.list.length||(o.list=[]),o.list.push(u.bilibili.app.dynamic.v1.DynOurCityItem.decode(t,t.uint32()));break}case 6:{o.topButtonLabel=t.string();break}case 7:{o.cityId=t.int32();break}case 8:{o.cityName=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v1.DynOurCityReply)return t;let i=new u.bilibili.app.dynamic.v1.DynOurCityReply;if(t.offset!=null&&(i.offset=String(t.offset)),t.hasMore!=null&&(i.hasMore=t.hasMore|0),t.style!=null&&(i.style=t.style|0),t.topLabel!=null&&(i.topLabel=String(t.topLabel)),t.list){if(!Array.isArray(t.list))throw TypeError(".bilibili.app.dynamic.v1.DynOurCityReply.list: array expected");i.list=[];for(let n=0;n>>3){case 1:{o.cardType=t.string();break}case 2:{o.dynId=t.int64();break}case 3:{o.uri=t.string();break}case 4:{o.modules&&o.modules.length||(o.modules=[]),o.modules.push(u.bilibili.app.dynamic.v1.DynOurCityModule.decode(t,t.uint32()));break}case 5:{o.rid=t.int64();break}case 6:{o.debugInfo=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v1.DynOurCityItem)return t;let i=new u.bilibili.app.dynamic.v1.DynOurCityItem;if(t.cardType!=null&&(i.cardType=String(t.cardType)),t.dynId!=null&&(r.Long?(i.dynId=r.Long.fromValue(t.dynId)).unsigned=!1:typeof t.dynId=="string"?i.dynId=parseInt(t.dynId,10):typeof t.dynId=="number"?i.dynId=t.dynId:typeof t.dynId=="object"&&(i.dynId=new r.LongBits(t.dynId.low>>>0,t.dynId.high>>>0).toNumber())),t.uri!=null&&(i.uri=String(t.uri)),t.modules){if(!Array.isArray(t.modules))throw TypeError(".bilibili.app.dynamic.v1.DynOurCityItem.modules: array expected");i.modules=[];for(let n=0;n>>0,t.rid.high>>>0).toNumber())),t.debugInfo!=null&&(i.debugInfo=String(t.debugInfo)),i},e.toObject=function(t,i){i||(i={});let n={};if((i.arrays||i.defaults)&&(n.modules=[]),i.defaults){if(n.cardType="",r.Long){let o=new r.Long(0,0,!1);n.dynId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.dynId=i.longs===String?"0":0;if(n.uri="",r.Long){let o=new r.Long(0,0,!1);n.rid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.rid=i.longs===String?"0":0;n.debugInfo=""}if(t.cardType!=null&&t.hasOwnProperty("cardType")&&(n.cardType=t.cardType),t.dynId!=null&&t.hasOwnProperty("dynId")&&(typeof t.dynId=="number"?n.dynId=i.longs===String?String(t.dynId):t.dynId:n.dynId=i.longs===String?r.Long.prototype.toString.call(t.dynId):i.longs===Number?new r.LongBits(t.dynId.low>>>0,t.dynId.high>>>0).toNumber():t.dynId),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),t.modules&&t.modules.length){n.modules=[];for(let o=0;o>>0,t.rid.high>>>0).toNumber():t.rid),t.debugInfo!=null&&t.hasOwnProperty("debugInfo")&&(n.debugInfo=t.debugInfo),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v1.DynOurCityItem"},e}(),c.DynOurCityModule=function(){function e(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.moduleType=i.string();break}case 2:{a.moduleCover=u.bilibili.app.dynamic.v1.DynOurCityModuleCover.decode(i,i.uint32());break}case 3:{a.moduleDesc=u.bilibili.app.dynamic.v1.DynOurCityModuleDesc.decode(i,i.uint32());break}case 4:{a.moduleAuthor=u.bilibili.app.dynamic.v1.DynOurCityModuleAuthor.decode(i,i.uint32());break}case 5:{a.moduleExtend=u.bilibili.app.dynamic.v1.DynOurCityModuleExtend.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},e.fromObject=function(i){if(i instanceof u.bilibili.app.dynamic.v1.DynOurCityModule)return i;let n=new u.bilibili.app.dynamic.v1.DynOurCityModule;if(i.moduleType!=null&&(n.moduleType=String(i.moduleType)),i.moduleCover!=null){if(typeof i.moduleCover!="object")throw TypeError(".bilibili.app.dynamic.v1.DynOurCityModule.moduleCover: object expected");n.moduleCover=u.bilibili.app.dynamic.v1.DynOurCityModuleCover.fromObject(i.moduleCover)}if(i.moduleDesc!=null){if(typeof i.moduleDesc!="object")throw TypeError(".bilibili.app.dynamic.v1.DynOurCityModule.moduleDesc: object expected");n.moduleDesc=u.bilibili.app.dynamic.v1.DynOurCityModuleDesc.fromObject(i.moduleDesc)}if(i.moduleAuthor!=null){if(typeof i.moduleAuthor!="object")throw TypeError(".bilibili.app.dynamic.v1.DynOurCityModule.moduleAuthor: object expected");n.moduleAuthor=u.bilibili.app.dynamic.v1.DynOurCityModuleAuthor.fromObject(i.moduleAuthor)}if(i.moduleExtend!=null){if(typeof i.moduleExtend!="object")throw TypeError(".bilibili.app.dynamic.v1.DynOurCityModule.moduleExtend: object expected");n.moduleExtend=u.bilibili.app.dynamic.v1.DynOurCityModuleExtend.fromObject(i.moduleExtend)}return n},e.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.moduleType=""),i.moduleType!=null&&i.hasOwnProperty("moduleType")&&(o.moduleType=i.moduleType),i.moduleCover!=null&&i.hasOwnProperty("moduleCover")&&(o.moduleCover=u.bilibili.app.dynamic.v1.DynOurCityModuleCover.toObject(i.moduleCover,n),n.oneofs&&(o.moduleItem="moduleCover")),i.moduleDesc!=null&&i.hasOwnProperty("moduleDesc")&&(o.moduleDesc=u.bilibili.app.dynamic.v1.DynOurCityModuleDesc.toObject(i.moduleDesc,n),n.oneofs&&(o.moduleItem="moduleDesc")),i.moduleAuthor!=null&&i.hasOwnProperty("moduleAuthor")&&(o.moduleAuthor=u.bilibili.app.dynamic.v1.DynOurCityModuleAuthor.toObject(i.moduleAuthor,n),n.oneofs&&(o.moduleItem="moduleAuthor")),i.moduleExtend!=null&&i.hasOwnProperty("moduleExtend")&&(o.moduleExtend=u.bilibili.app.dynamic.v1.DynOurCityModuleExtend.toObject(i.moduleExtend,n),n.oneofs&&(o.moduleItem="moduleExtend")),o},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.app.dynamic.v1.DynOurCityModule"},e}(),c.DynOurCityModuleCover=function(){function e(l){if(this.covers=[],this.badge=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.covers&&o.covers.length||(o.covers=[]),o.covers.push(t.string());break}case 2:{o.style=t.int32();break}case 3:{o.coverLeftIcon_1=t.int32();break}case 4:{o.coverLeftText_1=t.string();break}case 5:{o.coverLeftIcon_2=t.int32();break}case 6:{o.coverLeftText_2=t.string();break}case 7:{o.coverLeftText_3=t.string();break}case 8:{o.badge&&o.badge.length||(o.badge=[]),o.badge.push(u.bilibili.app.dynamic.v1.VideoBadge.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v1.DynOurCityModuleCover)return t;let i=new u.bilibili.app.dynamic.v1.DynOurCityModuleCover;if(t.covers){if(!Array.isArray(t.covers))throw TypeError(".bilibili.app.dynamic.v1.DynOurCityModuleCover.covers: array expected");i.covers=[];for(let n=0;n>>3){case 1:{o.desc=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v1.DynOurCityModuleDesc)return t;let i=new u.bilibili.app.dynamic.v1.DynOurCityModuleDesc;return t.desc!=null&&(i.desc=String(t.desc)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.desc=""),t.desc!=null&&t.hasOwnProperty("desc")&&(n.desc=t.desc),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v1.DynOurCityModuleDesc"},e}(),c.DynOurCityModuleAuthor=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.mid=t.int64();break}case 2:{o.name=t.string();break}case 3:{o.face=t.string();break}case 4:{o.uri=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v1.DynOurCityModuleAuthor)return t;let i=new u.bilibili.app.dynamic.v1.DynOurCityModuleAuthor;return t.mid!=null&&(r.Long?(i.mid=r.Long.fromValue(t.mid)).unsigned=!1:typeof t.mid=="string"?i.mid=parseInt(t.mid,10):typeof t.mid=="number"?i.mid=t.mid:typeof t.mid=="object"&&(i.mid=new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber())),t.name!=null&&(i.name=String(t.name)),t.face!=null&&(i.face=String(t.face)),t.uri!=null&&(i.uri=String(t.uri)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.mid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mid=i.longs===String?"0":0;n.name="",n.face="",n.uri=""}return t.mid!=null&&t.hasOwnProperty("mid")&&(typeof t.mid=="number"?n.mid=i.longs===String?String(t.mid):t.mid:n.mid=i.longs===String?r.Long.prototype.toString.call(t.mid):i.longs===Number?new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber():t.mid),t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),t.face!=null&&t.hasOwnProperty("face")&&(n.face=t.face),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v1.DynOurCityModuleAuthor"},e}(),c.DynOurCityModuleExtend=function(){function e(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.type=i.string();break}case 2:{a.extendLbs=u.bilibili.app.dynamic.v1.DynOurCityModuleExtendLBS.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},e.fromObject=function(i){if(i instanceof u.bilibili.app.dynamic.v1.DynOurCityModuleExtend)return i;let n=new u.bilibili.app.dynamic.v1.DynOurCityModuleExtend;if(i.type!=null&&(n.type=String(i.type)),i.extendLbs!=null){if(typeof i.extendLbs!="object")throw TypeError(".bilibili.app.dynamic.v1.DynOurCityModuleExtend.extendLbs: object expected");n.extendLbs=u.bilibili.app.dynamic.v1.DynOurCityModuleExtendLBS.fromObject(i.extendLbs)}return n},e.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.type=""),i.type!=null&&i.hasOwnProperty("type")&&(o.type=i.type),i.extendLbs!=null&&i.hasOwnProperty("extendLbs")&&(o.extendLbs=u.bilibili.app.dynamic.v1.DynOurCityModuleExtendLBS.toObject(i.extendLbs,n),n.oneofs&&(o.extend="extendLbs")),o},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.app.dynamic.v1.DynOurCityModuleExtend"},e}(),c.DynOurCityModuleExtendLBS=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.uri=t.string();break}case 3:{o.icon=t.string();break}case 4:{o.poiType=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v1.DynOurCityModuleExtendLBS)return t;let i=new u.bilibili.app.dynamic.v1.DynOurCityModuleExtendLBS;return t.title!=null&&(i.title=String(t.title)),t.uri!=null&&(i.uri=String(t.uri)),t.icon!=null&&(i.icon=String(t.icon)),t.poiType!=null&&(i.poiType=t.poiType|0),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.title="",n.uri="",n.icon="",n.poiType=0),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),t.icon!=null&&t.hasOwnProperty("icon")&&(n.icon=t.icon),t.poiType!=null&&t.hasOwnProperty("poiType")&&(n.poiType=t.poiType),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v1.DynOurCityModuleExtendLBS"},e}(),c.ModuleDynUpList=function(){function e(l){if(this.list=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.moduleTitle=t.string();break}case 2:{o.showAll=t.string();break}case 3:{o.list&&o.list.length||(o.list=[]),o.list.push(u.bilibili.app.dynamic.v1.UpListItem.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v1.ModuleDynUpList)return t;let i=new u.bilibili.app.dynamic.v1.ModuleDynUpList;if(t.moduleTitle!=null&&(i.moduleTitle=String(t.moduleTitle)),t.showAll!=null&&(i.showAll=String(t.showAll)),t.list){if(!Array.isArray(t.list))throw TypeError(".bilibili.app.dynamic.v1.ModuleDynUpList.list: array expected");i.list=[];for(let n=0;n>>3){case 1:{o.hasUpdate=t.int32();break}case 2:{o.face=t.string();break}case 3:{o.name=t.string();break}case 4:{o.uid=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v1.UpListItem)return t;let i=new u.bilibili.app.dynamic.v1.UpListItem;return t.hasUpdate!=null&&(i.hasUpdate=t.hasUpdate|0),t.face!=null&&(i.face=String(t.face)),t.name!=null&&(i.name=String(t.name)),t.uid!=null&&(r.Long?(i.uid=r.Long.fromValue(t.uid)).unsigned=!1:typeof t.uid=="string"?i.uid=parseInt(t.uid,10):typeof t.uid=="number"?i.uid=t.uid:typeof t.uid=="object"&&(i.uid=new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(n.hasUpdate=0,n.face="",n.name="",r.Long){let o=new r.Long(0,0,!1);n.uid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.uid=i.longs===String?"0":0;return t.hasUpdate!=null&&t.hasOwnProperty("hasUpdate")&&(n.hasUpdate=t.hasUpdate),t.face!=null&&t.hasOwnProperty("face")&&(n.face=t.face),t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),t.uid!=null&&t.hasOwnProperty("uid")&&(typeof t.uid=="number"?n.uid=i.longs===String?String(t.uid):t.uid:n.uid=i.longs===String?r.Long.prototype.toString.call(t.uid):i.longs===Number?new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber():t.uid),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v1.UpListItem"},e}(),c.ModuleFollowList=function(){function e(l){if(this.list=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.viewAllLink=t.string();break}case 2:{o.list&&o.list.length||(o.list=[]),o.list.push(u.bilibili.app.dynamic.v1.FollowListItem.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v1.ModuleFollowList)return t;let i=new u.bilibili.app.dynamic.v1.ModuleFollowList;if(t.viewAllLink!=null&&(i.viewAllLink=String(t.viewAllLink)),t.list){if(!Array.isArray(t.list))throw TypeError(".bilibili.app.dynamic.v1.ModuleFollowList.list: array expected");i.list=[];for(let n=0;n>>3){case 1:{o.seasonId=t.int32();break}case 2:{o.title=t.string();break}case 3:{o.cover=t.string();break}case 4:{o.url=t.string();break}case 5:{o.newEp=u.bilibili.app.dynamic.v1.NewEP.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v1.FollowListItem)return t;let i=new u.bilibili.app.dynamic.v1.FollowListItem;if(t.seasonId!=null&&(i.seasonId=t.seasonId|0),t.title!=null&&(i.title=String(t.title)),t.cover!=null&&(i.cover=String(t.cover)),t.url!=null&&(i.url=String(t.url)),t.newEp!=null){if(typeof t.newEp!="object")throw TypeError(".bilibili.app.dynamic.v1.FollowListItem.newEp: object expected");i.newEp=u.bilibili.app.dynamic.v1.NewEP.fromObject(t.newEp)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.seasonId=0,n.title="",n.cover="",n.url="",n.newEp=null),t.seasonId!=null&&t.hasOwnProperty("seasonId")&&(n.seasonId=t.seasonId),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.cover!=null&&t.hasOwnProperty("cover")&&(n.cover=t.cover),t.url!=null&&t.hasOwnProperty("url")&&(n.url=t.url),t.newEp!=null&&t.hasOwnProperty("newEp")&&(n.newEp=u.bilibili.app.dynamic.v1.NewEP.toObject(t.newEp,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v1.FollowListItem"},e}(),c.NewEP=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.id=t.int32();break}case 2:{o.indexShow=t.string();break}case 3:{o.cover=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v1.NewEP)return t;let i=new u.bilibili.app.dynamic.v1.NewEP;return t.id!=null&&(i.id=t.id|0),t.indexShow!=null&&(i.indexShow=String(t.indexShow)),t.cover!=null&&(i.cover=String(t.cover)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.id=0,n.indexShow="",n.cover=""),t.id!=null&&t.hasOwnProperty("id")&&(n.id=t.id),t.indexShow!=null&&t.hasOwnProperty("indexShow")&&(n.indexShow=t.indexShow),t.cover!=null&&t.hasOwnProperty("cover")&&(n.cover=t.cover),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v1.NewEP"},e}(),c.DynVideoPersonalReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.teenagersMode=t.int32();break}case 2:{o.hostUid=t.int64();break}case 3:{o.offset=t.string();break}case 4:{o.page=t.int32();break}case 5:{o.isPreload=t.int32();break}case 6:{o.qn=t.int32();break}case 7:{o.fnver=t.int32();break}case 8:{o.fnval=t.int32();break}case 9:{o.forceHost=t.int32();break}case 10:{o.fourk=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v1.DynVideoPersonalReq)return t;let i=new u.bilibili.app.dynamic.v1.DynVideoPersonalReq;return t.teenagersMode!=null&&(i.teenagersMode=t.teenagersMode|0),t.hostUid!=null&&(r.Long?(i.hostUid=r.Long.fromValue(t.hostUid)).unsigned=!1:typeof t.hostUid=="string"?i.hostUid=parseInt(t.hostUid,10):typeof t.hostUid=="number"?i.hostUid=t.hostUid:typeof t.hostUid=="object"&&(i.hostUid=new r.LongBits(t.hostUid.low>>>0,t.hostUid.high>>>0).toNumber())),t.offset!=null&&(i.offset=String(t.offset)),t.page!=null&&(i.page=t.page|0),t.isPreload!=null&&(i.isPreload=t.isPreload|0),t.qn!=null&&(i.qn=t.qn|0),t.fnver!=null&&(i.fnver=t.fnver|0),t.fnval!=null&&(i.fnval=t.fnval|0),t.forceHost!=null&&(i.forceHost=t.forceHost|0),t.fourk!=null&&(i.fourk=t.fourk|0),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.teenagersMode=0,r.Long){let o=new r.Long(0,0,!1);n.hostUid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.hostUid=i.longs===String?"0":0;n.offset="",n.page=0,n.isPreload=0,n.qn=0,n.fnver=0,n.fnval=0,n.forceHost=0,n.fourk=0}return t.teenagersMode!=null&&t.hasOwnProperty("teenagersMode")&&(n.teenagersMode=t.teenagersMode),t.hostUid!=null&&t.hasOwnProperty("hostUid")&&(typeof t.hostUid=="number"?n.hostUid=i.longs===String?String(t.hostUid):t.hostUid:n.hostUid=i.longs===String?r.Long.prototype.toString.call(t.hostUid):i.longs===Number?new r.LongBits(t.hostUid.low>>>0,t.hostUid.high>>>0).toNumber():t.hostUid),t.offset!=null&&t.hasOwnProperty("offset")&&(n.offset=t.offset),t.page!=null&&t.hasOwnProperty("page")&&(n.page=t.page),t.isPreload!=null&&t.hasOwnProperty("isPreload")&&(n.isPreload=t.isPreload),t.qn!=null&&t.hasOwnProperty("qn")&&(n.qn=t.qn),t.fnver!=null&&t.hasOwnProperty("fnver")&&(n.fnver=t.fnver),t.fnval!=null&&t.hasOwnProperty("fnval")&&(n.fnval=t.fnval),t.forceHost!=null&&t.hasOwnProperty("forceHost")&&(n.forceHost=t.forceHost),t.fourk!=null&&t.hasOwnProperty("fourk")&&(n.fourk=t.fourk),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v1.DynVideoPersonalReq"},e}(),c.DynVideoPersonalReply=function(){function e(l){if(this.list=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.list&&o.list.length||(o.list=[]),o.list.push(u.bilibili.app.dynamic.v1.DynamicItem.decode(t,t.uint32()));break}case 2:{o.offset=t.string();break}case 3:{o.hasMore=t.int32();break}case 4:{o.readOffset=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v1.DynVideoPersonalReply)return t;let i=new u.bilibili.app.dynamic.v1.DynVideoPersonalReply;if(t.list){if(!Array.isArray(t.list))throw TypeError(".bilibili.app.dynamic.v1.DynVideoPersonalReply.list: array expected");i.list=[];for(let n=0;n>>3){case 1:{o.hostUid=t.int64();break}case 2:{o.readOffset=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v1.DynUpdOffsetReq)return t;let i=new u.bilibili.app.dynamic.v1.DynUpdOffsetReq;return t.hostUid!=null&&(r.Long?(i.hostUid=r.Long.fromValue(t.hostUid)).unsigned=!1:typeof t.hostUid=="string"?i.hostUid=parseInt(t.hostUid,10):typeof t.hostUid=="number"?i.hostUid=t.hostUid:typeof t.hostUid=="object"&&(i.hostUid=new r.LongBits(t.hostUid.low>>>0,t.hostUid.high>>>0).toNumber())),t.readOffset!=null&&(i.readOffset=String(t.readOffset)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.hostUid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.hostUid=i.longs===String?"0":0;n.readOffset=""}return t.hostUid!=null&&t.hasOwnProperty("hostUid")&&(typeof t.hostUid=="number"?n.hostUid=i.longs===String?String(t.hostUid):t.hostUid:n.hostUid=i.longs===String?r.Long.prototype.toString.call(t.hostUid):i.longs===Number?new r.LongBits(t.hostUid.low>>>0,t.hostUid.high>>>0).toNumber():t.hostUid),t.readOffset!=null&&t.hasOwnProperty("readOffset")&&(n.readOffset=t.readOffset),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v1.DynUpdOffsetReq"},e}(),c.PGCSeason=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.isFinish=t.int32();break}case 2:{o.title=t.string();break}case 3:{o.type=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v1.PGCSeason)return t;let i=new u.bilibili.app.dynamic.v1.PGCSeason;return t.isFinish!=null&&(i.isFinish=t.isFinish|0),t.title!=null&&(i.title=String(t.title)),t.type!=null&&(i.type=t.type|0),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.isFinish=0,n.title="",n.type=0),t.isFinish!=null&&t.hasOwnProperty("isFinish")&&(n.isFinish=t.isFinish),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.type!=null&&t.hasOwnProperty("type")&&(n.type=t.type),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v1.PGCSeason"},e}(),c.DynRedReq=function(){function e(l){if(this.tabOffset=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.tabOffset&&o.tabOffset.length||(o.tabOffset=[]),o.tabOffset.push(u.bilibili.app.dynamic.v1.TabOffset.decode(t,t.uint32()));break}case 2:{o.isNewInstall=t.bool();break}case 3:{o.isCodeStart=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v1.DynRedReq)return t;let i=new u.bilibili.app.dynamic.v1.DynRedReq;if(t.tabOffset){if(!Array.isArray(t.tabOffset))throw TypeError(".bilibili.app.dynamic.v1.DynRedReq.tabOffset: array expected");i.tabOffset=[];for(let n=0;n>>3){case 1:{o.tab=t.int32();break}case 2:{o.offset=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v1.TabOffset)return t;let i=new u.bilibili.app.dynamic.v1.TabOffset;return t.tab!=null&&(i.tab=t.tab|0),t.offset!=null&&(i.offset=String(t.offset)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.tab=0,n.offset=""),t.tab!=null&&t.hasOwnProperty("tab")&&(n.tab=t.tab),t.offset!=null&&t.hasOwnProperty("offset")&&(n.offset=t.offset),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v1.TabOffset"},e}(),c.DynRedReply=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.redType=t.string();break}case 2:{o.dynRedItem=u.bilibili.app.dynamic.v1.DynRedItem.decode(t,t.uint32());break}case 3:{o.defaultTab=t.string();break}case 4:{o.redStyle=u.bilibili.app.dynamic.v1.DynRedStyle.decode(t,t.uint32());break}case 5:{o.tabRecallExtra=t.string();break}case 6:{o.bubbleInfo=u.bilibili.app.dynamic.v1.BubbleInfo.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v1.DynRedReply)return t;let i=new u.bilibili.app.dynamic.v1.DynRedReply;if(t.redType!=null&&(i.redType=String(t.redType)),t.dynRedItem!=null){if(typeof t.dynRedItem!="object")throw TypeError(".bilibili.app.dynamic.v1.DynRedReply.dynRedItem: object expected");i.dynRedItem=u.bilibili.app.dynamic.v1.DynRedItem.fromObject(t.dynRedItem)}if(t.defaultTab!=null&&(i.defaultTab=String(t.defaultTab)),t.redStyle!=null){if(typeof t.redStyle!="object")throw TypeError(".bilibili.app.dynamic.v1.DynRedReply.redStyle: object expected");i.redStyle=u.bilibili.app.dynamic.v1.DynRedStyle.fromObject(t.redStyle)}if(t.tabRecallExtra!=null&&(i.tabRecallExtra=String(t.tabRecallExtra)),t.bubbleInfo!=null){if(typeof t.bubbleInfo!="object")throw TypeError(".bilibili.app.dynamic.v1.DynRedReply.bubbleInfo: object expected");i.bubbleInfo=u.bilibili.app.dynamic.v1.BubbleInfo.fromObject(t.bubbleInfo)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.redType="",n.dynRedItem=null,n.defaultTab="",n.redStyle=null,n.tabRecallExtra="",n.bubbleInfo=null),t.redType!=null&&t.hasOwnProperty("redType")&&(n.redType=t.redType),t.dynRedItem!=null&&t.hasOwnProperty("dynRedItem")&&(n.dynRedItem=u.bilibili.app.dynamic.v1.DynRedItem.toObject(t.dynRedItem,i)),t.defaultTab!=null&&t.hasOwnProperty("defaultTab")&&(n.defaultTab=t.defaultTab),t.redStyle!=null&&t.hasOwnProperty("redStyle")&&(n.redStyle=u.bilibili.app.dynamic.v1.DynRedStyle.toObject(t.redStyle,i)),t.tabRecallExtra!=null&&t.hasOwnProperty("tabRecallExtra")&&(n.tabRecallExtra=t.tabRecallExtra),t.bubbleInfo!=null&&t.hasOwnProperty("bubbleInfo")&&(n.bubbleInfo=u.bilibili.app.dynamic.v1.BubbleInfo.toObject(t.bubbleInfo,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v1.DynRedReply"},e}(),c.BubbleInfo=function(){function e(l){if(this.modules=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.modules&&o.modules.length||(o.modules=[]),o.modules.push(u.bilibili.app.dynamic.v1.BubbleModule.decode(t,t.uint32()));break}case 2:{o.trackId=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v1.BubbleInfo)return t;let i=new u.bilibili.app.dynamic.v1.BubbleInfo;if(t.modules){if(!Array.isArray(t.modules))throw TypeError(".bilibili.app.dynamic.v1.BubbleInfo.modules: array expected");i.modules=[];for(let n=0;n>>3){case 1:{a.moduleType=i.int32();break}case 2:{a.user=u.bilibili.app.dynamic.v1.BubbleModuleUser.decode(i,i.uint32());break}case 3:{a.text=u.bilibili.app.dynamic.v1.BubbleModuleText.decode(i,i.uint32());break}case 4:{a.coloredTip=u.bilibili.app.dynamic.v1.BubbleModuleColoredTip.decode(i,i.uint32());break}case 5:{a.pic=u.bilibili.app.dynamic.v1.BubbleModulePic.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},e.fromObject=function(i){if(i instanceof u.bilibili.app.dynamic.v1.BubbleModule)return i;let n=new u.bilibili.app.dynamic.v1.BubbleModule;switch(i.moduleType){default:if(typeof i.moduleType=="number"){n.moduleType=i.moduleType;break}break;case"BUBBLE_MODULE_NONE":case 0:n.moduleType=0;break;case"BUBBLE_MODULE_USER":case 1:n.moduleType=1;break;case"BUBBLE_MODULE_TEXT":case 2:n.moduleType=2;break;case"BUBBLE_MODULE_COLORED_TIP":case 3:n.moduleType=3;break;case"BUBBLE_MODULE_PIC":case 4:n.moduleType=4;break}if(i.user!=null){if(typeof i.user!="object")throw TypeError(".bilibili.app.dynamic.v1.BubbleModule.user: object expected");n.user=u.bilibili.app.dynamic.v1.BubbleModuleUser.fromObject(i.user)}if(i.text!=null){if(typeof i.text!="object")throw TypeError(".bilibili.app.dynamic.v1.BubbleModule.text: object expected");n.text=u.bilibili.app.dynamic.v1.BubbleModuleText.fromObject(i.text)}if(i.coloredTip!=null){if(typeof i.coloredTip!="object")throw TypeError(".bilibili.app.dynamic.v1.BubbleModule.coloredTip: object expected");n.coloredTip=u.bilibili.app.dynamic.v1.BubbleModuleColoredTip.fromObject(i.coloredTip)}if(i.pic!=null){if(typeof i.pic!="object")throw TypeError(".bilibili.app.dynamic.v1.BubbleModule.pic: object expected");n.pic=u.bilibili.app.dynamic.v1.BubbleModulePic.fromObject(i.pic)}return n},e.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.moduleType=n.enums===String?"BUBBLE_MODULE_NONE":0),i.moduleType!=null&&i.hasOwnProperty("moduleType")&&(o.moduleType=n.enums===String?u.bilibili.app.dynamic.v1.BubbleModuleType[i.moduleType]===void 0?i.moduleType:u.bilibili.app.dynamic.v1.BubbleModuleType[i.moduleType]:i.moduleType),i.user!=null&&i.hasOwnProperty("user")&&(o.user=u.bilibili.app.dynamic.v1.BubbleModuleUser.toObject(i.user,n),n.oneofs&&(o.module="user")),i.text!=null&&i.hasOwnProperty("text")&&(o.text=u.bilibili.app.dynamic.v1.BubbleModuleText.toObject(i.text,n),n.oneofs&&(o.module="text")),i.coloredTip!=null&&i.hasOwnProperty("coloredTip")&&(o.coloredTip=u.bilibili.app.dynamic.v1.BubbleModuleColoredTip.toObject(i.coloredTip,n),n.oneofs&&(o.module="coloredTip")),i.pic!=null&&i.hasOwnProperty("pic")&&(o.pic=u.bilibili.app.dynamic.v1.BubbleModulePic.toObject(i.pic,n),n.oneofs&&(o.module="pic")),o},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.app.dynamic.v1.BubbleModule"},e}(),c.BubbleModuleType=function(){let e={},l=Object.create(e);return l[e[0]="BUBBLE_MODULE_NONE"]=0,l[e[1]="BUBBLE_MODULE_USER"]=1,l[e[2]="BUBBLE_MODULE_TEXT"]=2,l[e[3]="BUBBLE_MODULE_COLORED_TIP"]=3,l[e[4]="BUBBLE_MODULE_PIC"]=4,l}(),c.BubbleModuleUser=function(){function e(l){if(this.users=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.users&&o.users.length||(o.users=[]),o.users.push(u.bilibili.app.dynamic.v1.UserInfo.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v1.BubbleModuleUser)return t;let i=new u.bilibili.app.dynamic.v1.BubbleModuleUser;if(t.users){if(!Array.isArray(t.users))throw TypeError(".bilibili.app.dynamic.v1.BubbleModuleUser.users: array expected");i.users=[];for(let n=0;n>>3){case 1:{o.content=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v1.BubbleModuleText)return t;let i=new u.bilibili.app.dynamic.v1.BubbleModuleText;return t.content!=null&&(i.content=String(t.content)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.content=""),t.content!=null&&t.hasOwnProperty("content")&&(n.content=t.content),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v1.BubbleModuleText"},e}(),c.BubbleModuleColoredTip=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.prefixIcon=t.string();break}case 2:{o.isSvgaPrefixIcon=t.bool();break}case 3:{o.text=t.string();break}case 4:{o.textColor=u.bilibili.app.dynamic.v1.Color.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v1.BubbleModuleColoredTip)return t;let i=new u.bilibili.app.dynamic.v1.BubbleModuleColoredTip;if(t.prefixIcon!=null&&(i.prefixIcon=String(t.prefixIcon)),t.isSvgaPrefixIcon!=null&&(i.isSvgaPrefixIcon=!!t.isSvgaPrefixIcon),t.text!=null&&(i.text=String(t.text)),t.textColor!=null){if(typeof t.textColor!="object")throw TypeError(".bilibili.app.dynamic.v1.BubbleModuleColoredTip.textColor: object expected");i.textColor=u.bilibili.app.dynamic.v1.Color.fromObject(t.textColor)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.prefixIcon="",n.isSvgaPrefixIcon=!1,n.text="",n.textColor=null),t.prefixIcon!=null&&t.hasOwnProperty("prefixIcon")&&(n.prefixIcon=t.prefixIcon),t.isSvgaPrefixIcon!=null&&t.hasOwnProperty("isSvgaPrefixIcon")&&(n.isSvgaPrefixIcon=t.isSvgaPrefixIcon),t.text!=null&&t.hasOwnProperty("text")&&(n.text=t.text),t.textColor!=null&&t.hasOwnProperty("textColor")&&(n.textColor=u.bilibili.app.dynamic.v1.Color.toObject(t.textColor,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v1.BubbleModuleColoredTip"},e}(),c.BubbleModulePic=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.picDay=t.string();break}case 2:{o.picNight=t.string();break}case 3:{o.picWidth=t.int64();break}case 4:{o.picHeight=t.int64();break}case 5:{o.roundedCorner=t.bool();break}case 6:{o.roundedCornerRadius=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v1.BubbleModulePic)return t;let i=new u.bilibili.app.dynamic.v1.BubbleModulePic;return t.picDay!=null&&(i.picDay=String(t.picDay)),t.picNight!=null&&(i.picNight=String(t.picNight)),t.picWidth!=null&&(r.Long?(i.picWidth=r.Long.fromValue(t.picWidth)).unsigned=!1:typeof t.picWidth=="string"?i.picWidth=parseInt(t.picWidth,10):typeof t.picWidth=="number"?i.picWidth=t.picWidth:typeof t.picWidth=="object"&&(i.picWidth=new r.LongBits(t.picWidth.low>>>0,t.picWidth.high>>>0).toNumber())),t.picHeight!=null&&(r.Long?(i.picHeight=r.Long.fromValue(t.picHeight)).unsigned=!1:typeof t.picHeight=="string"?i.picHeight=parseInt(t.picHeight,10):typeof t.picHeight=="number"?i.picHeight=t.picHeight:typeof t.picHeight=="object"&&(i.picHeight=new r.LongBits(t.picHeight.low>>>0,t.picHeight.high>>>0).toNumber())),t.roundedCorner!=null&&(i.roundedCorner=!!t.roundedCorner),t.roundedCornerRadius!=null&&(r.Long?(i.roundedCornerRadius=r.Long.fromValue(t.roundedCornerRadius)).unsigned=!1:typeof t.roundedCornerRadius=="string"?i.roundedCornerRadius=parseInt(t.roundedCornerRadius,10):typeof t.roundedCornerRadius=="number"?i.roundedCornerRadius=t.roundedCornerRadius:typeof t.roundedCornerRadius=="object"&&(i.roundedCornerRadius=new r.LongBits(t.roundedCornerRadius.low>>>0,t.roundedCornerRadius.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.picDay="",n.picNight="",r.Long){let o=new r.Long(0,0,!1);n.picWidth=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.picWidth=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.picHeight=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.picHeight=i.longs===String?"0":0;if(n.roundedCorner=!1,r.Long){let o=new r.Long(0,0,!1);n.roundedCornerRadius=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.roundedCornerRadius=i.longs===String?"0":0}return t.picDay!=null&&t.hasOwnProperty("picDay")&&(n.picDay=t.picDay),t.picNight!=null&&t.hasOwnProperty("picNight")&&(n.picNight=t.picNight),t.picWidth!=null&&t.hasOwnProperty("picWidth")&&(typeof t.picWidth=="number"?n.picWidth=i.longs===String?String(t.picWidth):t.picWidth:n.picWidth=i.longs===String?r.Long.prototype.toString.call(t.picWidth):i.longs===Number?new r.LongBits(t.picWidth.low>>>0,t.picWidth.high>>>0).toNumber():t.picWidth),t.picHeight!=null&&t.hasOwnProperty("picHeight")&&(typeof t.picHeight=="number"?n.picHeight=i.longs===String?String(t.picHeight):t.picHeight:n.picHeight=i.longs===String?r.Long.prototype.toString.call(t.picHeight):i.longs===Number?new r.LongBits(t.picHeight.low>>>0,t.picHeight.high>>>0).toNumber():t.picHeight),t.roundedCorner!=null&&t.hasOwnProperty("roundedCorner")&&(n.roundedCorner=t.roundedCorner),t.roundedCornerRadius!=null&&t.hasOwnProperty("roundedCornerRadius")&&(typeof t.roundedCornerRadius=="number"?n.roundedCornerRadius=i.longs===String?String(t.roundedCornerRadius):t.roundedCornerRadius:n.roundedCornerRadius=i.longs===String?r.Long.prototype.toString.call(t.roundedCornerRadius):i.longs===Number?new r.LongBits(t.roundedCornerRadius.low>>>0,t.roundedCornerRadius.high>>>0).toNumber():t.roundedCornerRadius),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v1.BubbleModulePic"},e}(),c.DynRedStyle=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.bgType=t.int32();break}case 2:{o.cornerType=t.int32();break}case 3:{o.displayTime=t.int32();break}case 4:{o.cornerMark=t.string();break}case 5:{o.up=u.bilibili.app.dynamic.v1.DynRedStyleUp.decode(t,t.uint32());break}case 6:{o.type=t.int32();break}case 7:{o.cornerInfo=u.bilibili.app.dynamic.v1.CornerInfo.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v1.DynRedStyle)return t;let i=new u.bilibili.app.dynamic.v1.DynRedStyle;switch(t.bgType){default:if(typeof t.bgType=="number"){i.bgType=t.bgType;break}break;case"bg_type_default":case 0:i.bgType=0;break;case"bg_type_face":case 1:i.bgType=1;break}switch(t.cornerType){default:if(typeof t.cornerType=="number"){i.cornerType=t.cornerType;break}break;case"corner_type_none":case 0:i.cornerType=0;break;case"corner_type_text":case 1:i.cornerType=1;break;case"corner_type_animation":case 2:i.cornerType=2;break;case"corner_type_static":case 3:i.cornerType=3;break;case"corner_type_red_dot":case 4:i.cornerType=4;break;case"corner_type_number":case 5:i.cornerType=5;break}if(t.displayTime!=null&&(i.displayTime=t.displayTime|0),t.cornerMark!=null&&(i.cornerMark=String(t.cornerMark)),t.up!=null){if(typeof t.up!="object")throw TypeError(".bilibili.app.dynamic.v1.DynRedStyle.up: object expected");i.up=u.bilibili.app.dynamic.v1.DynRedStyleUp.fromObject(t.up)}switch(t.type){default:if(typeof t.type=="number"){i.type=t.type;break}break;case"STYLE_TYPE_NONE":case 0:i.type=0;break;case"STYLE_TYPE_LIVE":case 1:i.type=1;break;case"STYLE_TYPE_DYN_UP":case 2:i.type=2;break;case"STYLE_TYPE_OGV_UP":case 3:i.type=3;break;case"STYLE_TYPE_COLLECTION_UP":case 4:i.type=4;break}if(t.cornerInfo!=null){if(typeof t.cornerInfo!="object")throw TypeError(".bilibili.app.dynamic.v1.DynRedStyle.cornerInfo: object expected");i.cornerInfo=u.bilibili.app.dynamic.v1.CornerInfo.fromObject(t.cornerInfo)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.bgType=i.enums===String?"bg_type_default":0,n.cornerType=i.enums===String?"corner_type_none":0,n.displayTime=0,n.cornerMark="",n.up=null,n.type=i.enums===String?"STYLE_TYPE_NONE":0,n.cornerInfo=null),t.bgType!=null&&t.hasOwnProperty("bgType")&&(n.bgType=i.enums===String?u.bilibili.app.dynamic.v1.BgType[t.bgType]===void 0?t.bgType:u.bilibili.app.dynamic.v1.BgType[t.bgType]:t.bgType),t.cornerType!=null&&t.hasOwnProperty("cornerType")&&(n.cornerType=i.enums===String?u.bilibili.app.dynamic.v1.CornerType[t.cornerType]===void 0?t.cornerType:u.bilibili.app.dynamic.v1.CornerType[t.cornerType]:t.cornerType),t.displayTime!=null&&t.hasOwnProperty("displayTime")&&(n.displayTime=t.displayTime),t.cornerMark!=null&&t.hasOwnProperty("cornerMark")&&(n.cornerMark=t.cornerMark),t.up!=null&&t.hasOwnProperty("up")&&(n.up=u.bilibili.app.dynamic.v1.DynRedStyleUp.toObject(t.up,i)),t.type!=null&&t.hasOwnProperty("type")&&(n.type=i.enums===String?u.bilibili.app.dynamic.v1.StyleType[t.type]===void 0?t.type:u.bilibili.app.dynamic.v1.StyleType[t.type]:t.type),t.cornerInfo!=null&&t.hasOwnProperty("cornerInfo")&&(n.cornerInfo=u.bilibili.app.dynamic.v1.CornerInfo.toObject(t.cornerInfo,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v1.DynRedStyle"},e}(),c.CornerInfo=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.cornerType=t.int32();break}case 2:{o.cornerText=t.string();break}case 3:{o.cornerTextColor=u.bilibili.app.dynamic.v1.Color.decode(t,t.uint32());break}case 4:{o.cornerTextBgColor=u.bilibili.app.dynamic.v1.Color.decode(t,t.uint32());break}case 5:{o.cornerIcon=t.string();break}case 6:{o.cornerNumber=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v1.CornerInfo)return t;let i=new u.bilibili.app.dynamic.v1.CornerInfo;switch(t.cornerType){default:if(typeof t.cornerType=="number"){i.cornerType=t.cornerType;break}break;case"corner_type_none":case 0:i.cornerType=0;break;case"corner_type_text":case 1:i.cornerType=1;break;case"corner_type_animation":case 2:i.cornerType=2;break;case"corner_type_static":case 3:i.cornerType=3;break;case"corner_type_red_dot":case 4:i.cornerType=4;break;case"corner_type_number":case 5:i.cornerType=5;break}if(t.cornerText!=null&&(i.cornerText=String(t.cornerText)),t.cornerTextColor!=null){if(typeof t.cornerTextColor!="object")throw TypeError(".bilibili.app.dynamic.v1.CornerInfo.cornerTextColor: object expected");i.cornerTextColor=u.bilibili.app.dynamic.v1.Color.fromObject(t.cornerTextColor)}if(t.cornerTextBgColor!=null){if(typeof t.cornerTextBgColor!="object")throw TypeError(".bilibili.app.dynamic.v1.CornerInfo.cornerTextBgColor: object expected");i.cornerTextBgColor=u.bilibili.app.dynamic.v1.Color.fromObject(t.cornerTextBgColor)}return t.cornerIcon!=null&&(i.cornerIcon=String(t.cornerIcon)),t.cornerNumber!=null&&(r.Long?(i.cornerNumber=r.Long.fromValue(t.cornerNumber)).unsigned=!1:typeof t.cornerNumber=="string"?i.cornerNumber=parseInt(t.cornerNumber,10):typeof t.cornerNumber=="number"?i.cornerNumber=t.cornerNumber:typeof t.cornerNumber=="object"&&(i.cornerNumber=new r.LongBits(t.cornerNumber.low>>>0,t.cornerNumber.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(n.cornerType=i.enums===String?"corner_type_none":0,n.cornerText="",n.cornerTextColor=null,n.cornerTextBgColor=null,n.cornerIcon="",r.Long){let o=new r.Long(0,0,!1);n.cornerNumber=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.cornerNumber=i.longs===String?"0":0;return t.cornerType!=null&&t.hasOwnProperty("cornerType")&&(n.cornerType=i.enums===String?u.bilibili.app.dynamic.v1.CornerType[t.cornerType]===void 0?t.cornerType:u.bilibili.app.dynamic.v1.CornerType[t.cornerType]:t.cornerType),t.cornerText!=null&&t.hasOwnProperty("cornerText")&&(n.cornerText=t.cornerText),t.cornerTextColor!=null&&t.hasOwnProperty("cornerTextColor")&&(n.cornerTextColor=u.bilibili.app.dynamic.v1.Color.toObject(t.cornerTextColor,i)),t.cornerTextBgColor!=null&&t.hasOwnProperty("cornerTextBgColor")&&(n.cornerTextBgColor=u.bilibili.app.dynamic.v1.Color.toObject(t.cornerTextBgColor,i)),t.cornerIcon!=null&&t.hasOwnProperty("cornerIcon")&&(n.cornerIcon=t.cornerIcon),t.cornerNumber!=null&&t.hasOwnProperty("cornerNumber")&&(typeof t.cornerNumber=="number"?n.cornerNumber=i.longs===String?String(t.cornerNumber):t.cornerNumber:n.cornerNumber=i.longs===String?r.Long.prototype.toString.call(t.cornerNumber):i.longs===Number?new r.LongBits(t.cornerNumber.low>>>0,t.cornerNumber.high>>>0).toNumber():t.cornerNumber),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v1.CornerInfo"},e}(),c.Color=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.colorDay=t.string();break}case 2:{o.colorNight=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v1.Color)return t;let i=new u.bilibili.app.dynamic.v1.Color;return t.colorDay!=null&&(i.colorDay=String(t.colorDay)),t.colorNight!=null&&(i.colorNight=String(t.colorNight)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.colorDay="",n.colorNight=""),t.colorDay!=null&&t.hasOwnProperty("colorDay")&&(n.colorDay=t.colorDay),t.colorNight!=null&&t.hasOwnProperty("colorNight")&&(n.colorNight=t.colorNight),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v1.Color"},e}(),c.BgType=function(){let e={},l=Object.create(e);return l[e[0]="bg_type_default"]=0,l[e[1]="bg_type_face"]=1,l}(),c.CornerType=function(){let e={},l=Object.create(e);return l[e[0]="corner_type_none"]=0,l[e[1]="corner_type_text"]=1,l[e[2]="corner_type_animation"]=2,l[e[3]="corner_type_static"]=3,l[e[4]="corner_type_red_dot"]=4,l[e[5]="corner_type_number"]=5,l}(),c.DynRedStyleUp=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.uid=t.int64();break}case 2:{o.face=t.string();break}case 3:{o.faceType=t.int32();break}case 4:{o.borderColor=u.bilibili.app.dynamic.v1.Color.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v1.DynRedStyleUp)return t;let i=new u.bilibili.app.dynamic.v1.DynRedStyleUp;switch(t.uid!=null&&(r.Long?(i.uid=r.Long.fromValue(t.uid)).unsigned=!1:typeof t.uid=="string"?i.uid=parseInt(t.uid,10):typeof t.uid=="number"?i.uid=t.uid:typeof t.uid=="object"&&(i.uid=new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber())),t.face!=null&&(i.face=String(t.face)),t.faceType){default:if(typeof t.faceType=="number"){i.faceType=t.faceType;break}break;case"STYLE_TYPE_NONE":case 0:i.faceType=0;break;case"STYLE_TYPE_LIVE":case 1:i.faceType=1;break;case"STYLE_TYPE_DYN_UP":case 2:i.faceType=2;break;case"STYLE_TYPE_OGV_UP":case 3:i.faceType=3;break;case"STYLE_TYPE_COLLECTION_UP":case 4:i.faceType=4;break}if(t.borderColor!=null){if(typeof t.borderColor!="object")throw TypeError(".bilibili.app.dynamic.v1.DynRedStyleUp.borderColor: object expected");i.borderColor=u.bilibili.app.dynamic.v1.Color.fromObject(t.borderColor)}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.uid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.uid=i.longs===String?"0":0;n.face="",n.faceType=i.enums===String?"STYLE_TYPE_NONE":0,n.borderColor=null}return t.uid!=null&&t.hasOwnProperty("uid")&&(typeof t.uid=="number"?n.uid=i.longs===String?String(t.uid):t.uid:n.uid=i.longs===String?r.Long.prototype.toString.call(t.uid):i.longs===Number?new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber():t.uid),t.face!=null&&t.hasOwnProperty("face")&&(n.face=t.face),t.faceType!=null&&t.hasOwnProperty("faceType")&&(n.faceType=i.enums===String?u.bilibili.app.dynamic.v1.StyleType[t.faceType]===void 0?t.faceType:u.bilibili.app.dynamic.v1.StyleType[t.faceType]:t.faceType),t.borderColor!=null&&t.hasOwnProperty("borderColor")&&(n.borderColor=u.bilibili.app.dynamic.v1.Color.toObject(t.borderColor,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v1.DynRedStyleUp"},e}(),c.StyleType=function(){let e={},l=Object.create(e);return l[e[0]="STYLE_TYPE_NONE"]=0,l[e[1]="STYLE_TYPE_LIVE"]=1,l[e[2]="STYLE_TYPE_DYN_UP"]=2,l[e[3]="STYLE_TYPE_OGV_UP"]=3,l[e[4]="STYLE_TYPE_COLLECTION_UP"]=4,l}(),c.DynRedItem=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.count=t.uint64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v1.DynRedItem)return t;let i=new u.bilibili.app.dynamic.v1.DynRedItem;return t.count!=null&&(r.Long?(i.count=r.Long.fromValue(t.count)).unsigned=!0:typeof t.count=="string"?i.count=parseInt(t.count,10):typeof t.count=="number"?i.count=t.count:typeof t.count=="object"&&(i.count=new r.LongBits(t.count.low>>>0,t.count.high>>>0).toNumber(!0))),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(r.Long){let o=new r.Long(0,0,!0);n.count=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.count=i.longs===String?"0":0;return t.count!=null&&t.hasOwnProperty("count")&&(typeof t.count=="number"?n.count=i.longs===String?String(t.count):t.count:n.count=i.longs===String?r.Long.prototype.toString.call(t.count):i.longs===Number?new r.LongBits(t.count.low>>>0,t.count.high>>>0).toNumber(!0):t.count),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v1.DynRedItem"},e}(),c.MixUpListLiveItem=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.status=t.bool();break}case 2:{o.roomId=t.int64();break}case 3:{o.uri=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v1.MixUpListLiveItem)return t;let i=new u.bilibili.app.dynamic.v1.MixUpListLiveItem;return t.status!=null&&(i.status=!!t.status),t.roomId!=null&&(r.Long?(i.roomId=r.Long.fromValue(t.roomId)).unsigned=!1:typeof t.roomId=="string"?i.roomId=parseInt(t.roomId,10):typeof t.roomId=="number"?i.roomId=t.roomId:typeof t.roomId=="object"&&(i.roomId=new r.LongBits(t.roomId.low>>>0,t.roomId.high>>>0).toNumber())),t.uri!=null&&(i.uri=String(t.uri)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.status=!1,r.Long){let o=new r.Long(0,0,!1);n.roomId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.roomId=i.longs===String?"0":0;n.uri=""}return t.status!=null&&t.hasOwnProperty("status")&&(n.status=t.status),t.roomId!=null&&t.hasOwnProperty("roomId")&&(typeof t.roomId=="number"?n.roomId=i.longs===String?String(t.roomId):t.roomId:n.roomId=i.longs===String?r.Long.prototype.toString.call(t.roomId):i.longs===Number?new r.LongBits(t.roomId.low>>>0,t.roomId.high>>>0).toNumber():t.roomId),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v1.MixUpListLiveItem"},e}(),c.MixUpListItem=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.uid=t.int64();break}case 2:{o.specialAttention=t.int32();break}case 3:{o.reddotState=t.int32();break}case 4:{o.liveInfo=u.bilibili.app.dynamic.v1.MixUpListLiveItem.decode(t,t.uint32());break}case 5:{o.name=t.string();break}case 6:{o.face=t.string();break}case 7:{o.official=u.bilibili.app.dynamic.v1.OfficialVerify.decode(t,t.uint32());break}case 8:{o.vip=u.bilibili.app.dynamic.v1.VipInfo.decode(t,t.uint32());break}case 9:{o.relation=u.bilibili.app.dynamic.v1.Relation.decode(t,t.uint32());break}case 10:{o.premiereState=t.int32();break}case 11:{o.uri=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v1.MixUpListItem)return t;let i=new u.bilibili.app.dynamic.v1.MixUpListItem;if(t.uid!=null&&(r.Long?(i.uid=r.Long.fromValue(t.uid)).unsigned=!1:typeof t.uid=="string"?i.uid=parseInt(t.uid,10):typeof t.uid=="number"?i.uid=t.uid:typeof t.uid=="object"&&(i.uid=new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber())),t.specialAttention!=null&&(i.specialAttention=t.specialAttention|0),t.reddotState!=null&&(i.reddotState=t.reddotState|0),t.liveInfo!=null){if(typeof t.liveInfo!="object")throw TypeError(".bilibili.app.dynamic.v1.MixUpListItem.liveInfo: object expected");i.liveInfo=u.bilibili.app.dynamic.v1.MixUpListLiveItem.fromObject(t.liveInfo)}if(t.name!=null&&(i.name=String(t.name)),t.face!=null&&(i.face=String(t.face)),t.official!=null){if(typeof t.official!="object")throw TypeError(".bilibili.app.dynamic.v1.MixUpListItem.official: object expected");i.official=u.bilibili.app.dynamic.v1.OfficialVerify.fromObject(t.official)}if(t.vip!=null){if(typeof t.vip!="object")throw TypeError(".bilibili.app.dynamic.v1.MixUpListItem.vip: object expected");i.vip=u.bilibili.app.dynamic.v1.VipInfo.fromObject(t.vip)}if(t.relation!=null){if(typeof t.relation!="object")throw TypeError(".bilibili.app.dynamic.v1.MixUpListItem.relation: object expected");i.relation=u.bilibili.app.dynamic.v1.Relation.fromObject(t.relation)}return t.premiereState!=null&&(i.premiereState=t.premiereState|0),t.uri!=null&&(i.uri=String(t.uri)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.uid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.uid=i.longs===String?"0":0;n.specialAttention=0,n.reddotState=0,n.liveInfo=null,n.name="",n.face="",n.official=null,n.vip=null,n.relation=null,n.premiereState=0,n.uri=""}return t.uid!=null&&t.hasOwnProperty("uid")&&(typeof t.uid=="number"?n.uid=i.longs===String?String(t.uid):t.uid:n.uid=i.longs===String?r.Long.prototype.toString.call(t.uid):i.longs===Number?new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber():t.uid),t.specialAttention!=null&&t.hasOwnProperty("specialAttention")&&(n.specialAttention=t.specialAttention),t.reddotState!=null&&t.hasOwnProperty("reddotState")&&(n.reddotState=t.reddotState),t.liveInfo!=null&&t.hasOwnProperty("liveInfo")&&(n.liveInfo=u.bilibili.app.dynamic.v1.MixUpListLiveItem.toObject(t.liveInfo,i)),t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),t.face!=null&&t.hasOwnProperty("face")&&(n.face=t.face),t.official!=null&&t.hasOwnProperty("official")&&(n.official=u.bilibili.app.dynamic.v1.OfficialVerify.toObject(t.official,i)),t.vip!=null&&t.hasOwnProperty("vip")&&(n.vip=u.bilibili.app.dynamic.v1.VipInfo.toObject(t.vip,i)),t.relation!=null&&t.hasOwnProperty("relation")&&(n.relation=u.bilibili.app.dynamic.v1.Relation.toObject(t.relation,i)),t.premiereState!=null&&t.hasOwnProperty("premiereState")&&(n.premiereState=t.premiereState),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v1.MixUpListItem"},e}(),c.DynMixUpListViewMoreReply=function(){function e(l){if(this.items=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.items&&o.items.length||(o.items=[]),o.items.push(u.bilibili.app.dynamic.v1.MixUpListItem.decode(t,t.uint32()));break}case 2:{o.searchDefaultText=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v1.DynMixUpListViewMoreReply)return t;let i=new u.bilibili.app.dynamic.v1.DynMixUpListViewMoreReply;if(t.items){if(!Array.isArray(t.items))throw TypeError(".bilibili.app.dynamic.v1.DynMixUpListViewMoreReply.items: array expected");i.items=[];for(let n=0;n>>3){case 1:{o.name=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v1.DynMixUpListSearchReq)return t;let i=new u.bilibili.app.dynamic.v1.DynMixUpListSearchReq;return t.name!=null&&(i.name=String(t.name)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.name=""),t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v1.DynMixUpListSearchReq"},e}(),c.DynMixUpListSearchReply=function(){function e(l){if(this.items=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.items&&o.items.length||(o.items=[]),o.items.push(u.bilibili.app.dynamic.v1.MixUpListItem.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v1.DynMixUpListSearchReply)return t;let i=new u.bilibili.app.dynamic.v1.DynMixUpListSearchReply;if(t.items){if(!Array.isArray(t.items))throw TypeError(".bilibili.app.dynamic.v1.DynMixUpListSearchReply.items: array expected");i.items=[];for(let n=0;n>>3){case 1:{o.status=t.int32();break}case 2:{o.isFollow=t.int32();break}case 3:{o.isFollowed=t.int32();break}case 4:{o.title=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v1.Relation)return t;let i=new u.bilibili.app.dynamic.v1.Relation;switch(t.status){default:if(typeof t.status=="number"){i.status=t.status;break}break;case"relation_status_none":case 0:i.status=0;break;case"relation_status_nofollow":case 1:i.status=1;break;case"relation_status_follow":case 2:i.status=2;break;case"relation_status_followed":case 3:i.status=3;break;case"relation_status_mutual_concern":case 4:i.status=4;break;case"relation_status_special":case 5:i.status=5;break}return t.isFollow!=null&&(i.isFollow=t.isFollow|0),t.isFollowed!=null&&(i.isFollowed=t.isFollowed|0),t.title!=null&&(i.title=String(t.title)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.status=i.enums===String?"relation_status_none":0,n.isFollow=0,n.isFollowed=0,n.title=""),t.status!=null&&t.hasOwnProperty("status")&&(n.status=i.enums===String?u.bilibili.app.dynamic.v1.RelationStatus[t.status]===void 0?t.status:u.bilibili.app.dynamic.v1.RelationStatus[t.status]:t.status),t.isFollow!=null&&t.hasOwnProperty("isFollow")&&(n.isFollow=t.isFollow),t.isFollowed!=null&&t.hasOwnProperty("isFollowed")&&(n.isFollowed=t.isFollowed),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v1.Relation"},e}(),c.RelationStatus=function(){let e={},l=Object.create(e);return l[e[0]="relation_status_none"]=0,l[e[1]="relation_status_nofollow"]=1,l[e[2]="relation_status_follow"]=2,l[e[3]="relation_status_followed"]=3,l[e[4]="relation_status_mutual_concern"]=4,l[e[5]="relation_status_special"]=5,l}(),c.OurCityClickReportReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.dynamicId=t.string();break}case 2:{o.cityId=t.int64();break}case 3:{o.lat=t.double();break}case 4:{o.lng=t.double();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v1.OurCityClickReportReq)return t;let i=new u.bilibili.app.dynamic.v1.OurCityClickReportReq;return t.dynamicId!=null&&(i.dynamicId=String(t.dynamicId)),t.cityId!=null&&(r.Long?(i.cityId=r.Long.fromValue(t.cityId)).unsigned=!1:typeof t.cityId=="string"?i.cityId=parseInt(t.cityId,10):typeof t.cityId=="number"?i.cityId=t.cityId:typeof t.cityId=="object"&&(i.cityId=new r.LongBits(t.cityId.low>>>0,t.cityId.high>>>0).toNumber())),t.lat!=null&&(i.lat=Number(t.lat)),t.lng!=null&&(i.lng=Number(t.lng)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.dynamicId="",r.Long){let o=new r.Long(0,0,!1);n.cityId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.cityId=i.longs===String?"0":0;n.lat=0,n.lng=0}return t.dynamicId!=null&&t.hasOwnProperty("dynamicId")&&(n.dynamicId=t.dynamicId),t.cityId!=null&&t.hasOwnProperty("cityId")&&(typeof t.cityId=="number"?n.cityId=i.longs===String?String(t.cityId):t.cityId:n.cityId=i.longs===String?r.Long.prototype.toString.call(t.cityId):i.longs===Number?new r.LongBits(t.cityId.low>>>0,t.cityId.high>>>0).toNumber():t.cityId),t.lat!=null&&t.hasOwnProperty("lat")&&(n.lat=i.json&&!isFinite(t.lat)?String(t.lat):t.lat),t.lng!=null&&t.hasOwnProperty("lng")&&(n.lng=i.json&&!isFinite(t.lng)?String(t.lng):t.lng),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v1.OurCityClickReportReq"},e}(),c.OurCityClickReportReply=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){default:t.skipType(a&7);break}}return o},e.fromObject=function(t){return t instanceof u.bilibili.app.dynamic.v1.OurCityClickReportReply?t:new u.bilibili.app.dynamic.v1.OurCityClickReportReply},e.toObject=function(){return{}},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v1.OurCityClickReportReply"},e}(),c.GeoCoderReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.lat=t.double();break}case 2:{o.lng=t.double();break}case 3:{o.from=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v1.GeoCoderReq)return t;let i=new u.bilibili.app.dynamic.v1.GeoCoderReq;return t.lat!=null&&(i.lat=Number(t.lat)),t.lng!=null&&(i.lng=Number(t.lng)),t.from!=null&&(i.from=String(t.from)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.lat=0,n.lng=0,n.from=""),t.lat!=null&&t.hasOwnProperty("lat")&&(n.lat=i.json&&!isFinite(t.lat)?String(t.lat):t.lat),t.lng!=null&&t.hasOwnProperty("lng")&&(n.lng=i.json&&!isFinite(t.lng)?String(t.lng):t.lng),t.from!=null&&t.hasOwnProperty("from")&&(n.from=t.from),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v1.GeoCoderReq"},e}(),c.GeoCoderReply=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.address=t.string();break}case 2:{o.addressComponent=u.bilibili.app.dynamic.v1.AddressComponent.decode(t,t.uint32());break}case 3:{o.adInfo=u.bilibili.app.dynamic.v1.AdInfo.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v1.GeoCoderReply)return t;let i=new u.bilibili.app.dynamic.v1.GeoCoderReply;if(t.address!=null&&(i.address=String(t.address)),t.addressComponent!=null){if(typeof t.addressComponent!="object")throw TypeError(".bilibili.app.dynamic.v1.GeoCoderReply.addressComponent: object expected");i.addressComponent=u.bilibili.app.dynamic.v1.AddressComponent.fromObject(t.addressComponent)}if(t.adInfo!=null){if(typeof t.adInfo!="object")throw TypeError(".bilibili.app.dynamic.v1.GeoCoderReply.adInfo: object expected");i.adInfo=u.bilibili.app.dynamic.v1.AdInfo.fromObject(t.adInfo)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.address="",n.addressComponent=null,n.adInfo=null),t.address!=null&&t.hasOwnProperty("address")&&(n.address=t.address),t.addressComponent!=null&&t.hasOwnProperty("addressComponent")&&(n.addressComponent=u.bilibili.app.dynamic.v1.AddressComponent.toObject(t.addressComponent,i)),t.adInfo!=null&&t.hasOwnProperty("adInfo")&&(n.adInfo=u.bilibili.app.dynamic.v1.AdInfo.toObject(t.adInfo,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v1.GeoCoderReply"},e}(),c.AddressComponent=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.nation=t.string();break}case 2:{o.province=t.string();break}case 3:{o.city=t.string();break}case 4:{o.district=t.string();break}case 5:{o.street=t.string();break}case 6:{o.streetNumber=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v1.AddressComponent)return t;let i=new u.bilibili.app.dynamic.v1.AddressComponent;return t.nation!=null&&(i.nation=String(t.nation)),t.province!=null&&(i.province=String(t.province)),t.city!=null&&(i.city=String(t.city)),t.district!=null&&(i.district=String(t.district)),t.street!=null&&(i.street=String(t.street)),t.streetNumber!=null&&(i.streetNumber=String(t.streetNumber)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.nation="",n.province="",n.city="",n.district="",n.street="",n.streetNumber=""),t.nation!=null&&t.hasOwnProperty("nation")&&(n.nation=t.nation),t.province!=null&&t.hasOwnProperty("province")&&(n.province=t.province),t.city!=null&&t.hasOwnProperty("city")&&(n.city=t.city),t.district!=null&&t.hasOwnProperty("district")&&(n.district=t.district),t.street!=null&&t.hasOwnProperty("street")&&(n.street=t.street),t.streetNumber!=null&&t.hasOwnProperty("streetNumber")&&(n.streetNumber=t.streetNumber),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v1.AddressComponent"},e}(),c.AdInfo=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.nationCode=t.string();break}case 2:{o.adcode=t.string();break}case 3:{o.cityCode=t.string();break}case 4:{o.name=t.string();break}case 5:{o.gps=u.bilibili.app.dynamic.v1.Gps.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v1.AdInfo)return t;let i=new u.bilibili.app.dynamic.v1.AdInfo;if(t.nationCode!=null&&(i.nationCode=String(t.nationCode)),t.adcode!=null&&(i.adcode=String(t.adcode)),t.cityCode!=null&&(i.cityCode=String(t.cityCode)),t.name!=null&&(i.name=String(t.name)),t.gps!=null){if(typeof t.gps!="object")throw TypeError(".bilibili.app.dynamic.v1.AdInfo.gps: object expected");i.gps=u.bilibili.app.dynamic.v1.Gps.fromObject(t.gps)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.nationCode="",n.adcode="",n.cityCode="",n.name="",n.gps=null),t.nationCode!=null&&t.hasOwnProperty("nationCode")&&(n.nationCode=t.nationCode),t.adcode!=null&&t.hasOwnProperty("adcode")&&(n.adcode=t.adcode),t.cityCode!=null&&t.hasOwnProperty("cityCode")&&(n.cityCode=t.cityCode),t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),t.gps!=null&&t.hasOwnProperty("gps")&&(n.gps=u.bilibili.app.dynamic.v1.Gps.toObject(t.gps,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v1.AdInfo"},e}(),c.Gps=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.lat=t.double();break}case 2:{o.lng=t.double();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v1.Gps)return t;let i=new u.bilibili.app.dynamic.v1.Gps;return t.lat!=null&&(i.lat=Number(t.lat)),t.lng!=null&&(i.lng=Number(t.lng)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.lat=0,n.lng=0),t.lat!=null&&t.hasOwnProperty("lat")&&(n.lat=i.json&&!isFinite(t.lat)?String(t.lat):t.lat),t.lng!=null&&t.hasOwnProperty("lng")&&(n.lng=i.json&&!isFinite(t.lng)?String(t.lng):t.lng),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v1.Gps"},e}(),c}(),p.v2=function(){let c={};return c.Campus=function(){function e(l,t,i){b.rpc.Service.call(this,l,t,i)}return(e.prototype=Object.create(b.rpc.Service.prototype)).constructor=e,e.create=function(t,i,n){return new this(t,i,n)},Object.defineProperty(e.prototype.waterFlowRcmd=function l(t,i){return this.rpcCall(l,u.bilibili.app.dynamic.v2.WaterFlowRcmdReq,u.bilibili.app.dynamic.v2.WaterFlowRcmdResp,t,i)},"name",{value:"WaterFlowRcmd"}),e}(),c.WFItemType=function(){let e={},l=Object.create(e);return l[e[0]="WATER_FLOW_TYPE_NONE"]=0,l[e[1]="WATER_FLOW_TYPE_ARCHIVE"]=1,l[e[2]="WATER_FLOW_TYPE_DYNAMIC"]=2,l}(),c.WFItemDefault=function(){function e(l){if(this.annotations={},l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.cover=t.string();break}case 3:{o.bottomLeft_1=u.bilibili.app.dynamic.v2.CoverIconWithText.decode(t,t.uint32());break}case 4:{o.bottomLeft_2=u.bilibili.app.dynamic.v2.CoverIconWithText.decode(t,t.uint32());break}case 5:{o.bottomRight_1=u.bilibili.app.dynamic.v2.CoverIconWithText.decode(t,t.uint32());break}case 6:{o.uri=t.string();break}case 7:{o.rcmdReason=u.bilibili.app.dynamic.v2.RcmdReason.decode(t,t.uint32());break}case 8:{o.annotations===r.emptyObject&&(o.annotations={});let v=t.uint32()+t.pos;for(a="",y="";t.pos>>3){case 1:a=t.string();break;case 2:y=t.string();break;default:t.skipType(g&7);break}}o.annotations[a]=y;break}default:t.skipType(s&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.WFItemDefault)return t;let i=new u.bilibili.app.dynamic.v2.WFItemDefault;if(t.title!=null&&(i.title=String(t.title)),t.cover!=null&&(i.cover=String(t.cover)),t.bottomLeft_1!=null){if(typeof t.bottomLeft_1!="object")throw TypeError(".bilibili.app.dynamic.v2.WFItemDefault.bottomLeft_1: object expected");i.bottomLeft_1=u.bilibili.app.dynamic.v2.CoverIconWithText.fromObject(t.bottomLeft_1)}if(t.bottomLeft_2!=null){if(typeof t.bottomLeft_2!="object")throw TypeError(".bilibili.app.dynamic.v2.WFItemDefault.bottomLeft_2: object expected");i.bottomLeft_2=u.bilibili.app.dynamic.v2.CoverIconWithText.fromObject(t.bottomLeft_2)}if(t.bottomRight_1!=null){if(typeof t.bottomRight_1!="object")throw TypeError(".bilibili.app.dynamic.v2.WFItemDefault.bottomRight_1: object expected");i.bottomRight_1=u.bilibili.app.dynamic.v2.CoverIconWithText.fromObject(t.bottomRight_1)}if(t.uri!=null&&(i.uri=String(t.uri)),t.rcmdReason!=null){if(typeof t.rcmdReason!="object")throw TypeError(".bilibili.app.dynamic.v2.WFItemDefault.rcmdReason: object expected");i.rcmdReason=u.bilibili.app.dynamic.v2.RcmdReason.fromObject(t.rcmdReason)}if(t.annotations){if(typeof t.annotations!="object")throw TypeError(".bilibili.app.dynamic.v2.WFItemDefault.annotations: object expected");i.annotations={};for(let n=Object.keys(t.annotations),o=0;o>>3){case 1:{a.itemType=i.int32();break}case 2:{a.whRatio=u.bilibili.app.dynamic.common.ItemWHRatio.decode(i,i.uint32());break}case 3:{a.itemDefault=u.bilibili.app.dynamic.v2.WFItemDefault.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},e.fromObject=function(i){if(i instanceof u.bilibili.app.dynamic.v2.CampusWaterFlowItem)return i;let n=new u.bilibili.app.dynamic.v2.CampusWaterFlowItem;switch(i.itemType){default:if(typeof i.itemType=="number"){n.itemType=i.itemType;break}break;case"WATER_FLOW_TYPE_NONE":case 0:n.itemType=0;break;case"WATER_FLOW_TYPE_ARCHIVE":case 1:n.itemType=1;break;case"WATER_FLOW_TYPE_DYNAMIC":case 2:n.itemType=2;break}if(i.whRatio!=null){if(typeof i.whRatio!="object")throw TypeError(".bilibili.app.dynamic.v2.CampusWaterFlowItem.whRatio: object expected");n.whRatio=u.bilibili.app.dynamic.common.ItemWHRatio.fromObject(i.whRatio)}if(i.itemDefault!=null){if(typeof i.itemDefault!="object")throw TypeError(".bilibili.app.dynamic.v2.CampusWaterFlowItem.itemDefault: object expected");n.itemDefault=u.bilibili.app.dynamic.v2.WFItemDefault.fromObject(i.itemDefault)}return n},e.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.itemType=n.enums===String?"WATER_FLOW_TYPE_NONE":0,o.whRatio=null),i.itemType!=null&&i.hasOwnProperty("itemType")&&(o.itemType=n.enums===String?u.bilibili.app.dynamic.v2.WFItemType[i.itemType]===void 0?i.itemType:u.bilibili.app.dynamic.v2.WFItemType[i.itemType]:i.itemType),i.whRatio!=null&&i.hasOwnProperty("whRatio")&&(o.whRatio=u.bilibili.app.dynamic.common.ItemWHRatio.toObject(i.whRatio,n)),i.itemDefault!=null&&i.hasOwnProperty("itemDefault")&&(o.itemDefault=u.bilibili.app.dynamic.v2.WFItemDefault.toObject(i.itemDefault,n),n.oneofs&&(o.flowItem="itemDefault")),o},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.app.dynamic.v2.CampusWaterFlowItem"},e}(),c.WaterFlowRcmdReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.campusId=t.int64();break}case 2:{o.page=u.bilibili.pagination.FeedPagination.decode(t,t.uint32());break}case 3:{o.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.decode(t,t.uint32());break}case 4:{o.from=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.WaterFlowRcmdReq)return t;let i=new u.bilibili.app.dynamic.v2.WaterFlowRcmdReq;if(t.campusId!=null&&(r.Long?(i.campusId=r.Long.fromValue(t.campusId)).unsigned=!1:typeof t.campusId=="string"?i.campusId=parseInt(t.campusId,10):typeof t.campusId=="number"?i.campusId=t.campusId:typeof t.campusId=="object"&&(i.campusId=new r.LongBits(t.campusId.low>>>0,t.campusId.high>>>0).toNumber())),t.page!=null){if(typeof t.page!="object")throw TypeError(".bilibili.app.dynamic.v2.WaterFlowRcmdReq.page: object expected");i.page=u.bilibili.pagination.FeedPagination.fromObject(t.page)}if(t.playerArgs!=null){if(typeof t.playerArgs!="object")throw TypeError(".bilibili.app.dynamic.v2.WaterFlowRcmdReq.playerArgs: object expected");i.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.fromObject(t.playerArgs)}switch(t.from){default:if(typeof t.from=="number"){i.from=t.from;break}break;case"CAMPUS_RCMD_FROM_UNKNOWN":case 0:i.from=0;break;case"CAMPUS_RCMD_FROM_HOME_UN_OPEN":case 1:i.from=1;break;case"CAMPUS_RCMD_FROM_VISIT_OTHER":case 2:i.from=2;break;case"CAMPUS_RCMD_FROM_HOME_MOMENT":case 3:i.from=3;break;case"CAMPUS_RCMD_FROM_DYN_MOMENT":case 4:i.from=4;break;case"CAMPUS_RCMD_FROM_PAGE_SUBORDINATE_MOMENT":case 5:i.from=5;break}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.campusId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.campusId=i.longs===String?"0":0;n.page=null,n.playerArgs=null,n.from=i.enums===String?"CAMPUS_RCMD_FROM_UNKNOWN":0}return t.campusId!=null&&t.hasOwnProperty("campusId")&&(typeof t.campusId=="number"?n.campusId=i.longs===String?String(t.campusId):t.campusId:n.campusId=i.longs===String?r.Long.prototype.toString.call(t.campusId):i.longs===Number?new r.LongBits(t.campusId.low>>>0,t.campusId.high>>>0).toNumber():t.campusId),t.page!=null&&t.hasOwnProperty("page")&&(n.page=u.bilibili.pagination.FeedPagination.toObject(t.page,i)),t.playerArgs!=null&&t.hasOwnProperty("playerArgs")&&(n.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.toObject(t.playerArgs,i)),t.from!=null&&t.hasOwnProperty("from")&&(n.from=i.enums===String?u.bilibili.app.dynamic.v2.CampusRcmdReqFrom[t.from]===void 0?t.from:u.bilibili.app.dynamic.v2.CampusRcmdReqFrom[t.from]:t.from),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.WaterFlowRcmdReq"},e}(),c.WaterFlowRcmdResp=function(){function e(l){if(this.items=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.items&&o.items.length||(o.items=[]),o.items.push(u.bilibili.app.dynamic.v2.CampusWaterFlowItem.decode(t,t.uint32()));break}case 2:{o.offset=u.bilibili.pagination.FeedPaginationReply.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.WaterFlowRcmdResp)return t;let i=new u.bilibili.app.dynamic.v2.WaterFlowRcmdResp;if(t.items){if(!Array.isArray(t.items))throw TypeError(".bilibili.app.dynamic.v2.WaterFlowRcmdResp.items: array expected");i.items=[];for(let n=0;n>>3){default:t.skipType(a&7);break}}return o},e.fromObject=function(t){return t instanceof u.bilibili.app.dynamic.v2.NoReq?t:new u.bilibili.app.dynamic.v2.NoReq},e.toObject=function(){return{}},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.NoReq"},e}(),c.NoReply=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){default:t.skipType(a&7);break}}return o},e.fromObject=function(t){return t instanceof u.bilibili.app.dynamic.v2.NoReply?t:new u.bilibili.app.dynamic.v2.NoReply},e.toObject=function(){return{}},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.NoReply"},e}(),c.DynVideoReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.updateBaseline=t.string();break}case 2:{o.offset=t.string();break}case 3:{o.page=t.int32();break}case 4:{o.refreshType=t.int32();break}case 5:{o.playurlParam=u.bilibili.app.dynamic.v2.PlayurlParam.decode(t,t.uint32());break}case 6:{o.assistBaseline=t.string();break}case 7:{o.localTime=t.int32();break}case 8:{o.from=t.string();break}case 9:{o.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.decode(t,t.uint32());break}case 10:{o.reqSortOption=u.bilibili.app.dynamic.v2.FeedSortOptionReq.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.DynVideoReq)return t;let i=new u.bilibili.app.dynamic.v2.DynVideoReq;switch(t.updateBaseline!=null&&(i.updateBaseline=String(t.updateBaseline)),t.offset!=null&&(i.offset=String(t.offset)),t.page!=null&&(i.page=t.page|0),t.refreshType){default:if(typeof t.refreshType=="number"){i.refreshType=t.refreshType;break}break;case"refresh_new":case 0:i.refreshType=0;break;case"refresh_history":case 1:i.refreshType=1;break}if(t.playurlParam!=null){if(typeof t.playurlParam!="object")throw TypeError(".bilibili.app.dynamic.v2.DynVideoReq.playurlParam: object expected");i.playurlParam=u.bilibili.app.dynamic.v2.PlayurlParam.fromObject(t.playurlParam)}if(t.assistBaseline!=null&&(i.assistBaseline=String(t.assistBaseline)),t.localTime!=null&&(i.localTime=t.localTime|0),t.from!=null&&(i.from=String(t.from)),t.playerArgs!=null){if(typeof t.playerArgs!="object")throw TypeError(".bilibili.app.dynamic.v2.DynVideoReq.playerArgs: object expected");i.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.fromObject(t.playerArgs)}if(t.reqSortOption!=null){if(typeof t.reqSortOption!="object")throw TypeError(".bilibili.app.dynamic.v2.DynVideoReq.reqSortOption: object expected");i.reqSortOption=u.bilibili.app.dynamic.v2.FeedSortOptionReq.fromObject(t.reqSortOption)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.updateBaseline="",n.offset="",n.page=0,n.refreshType=i.enums===String?"refresh_new":0,n.playurlParam=null,n.assistBaseline="",n.localTime=0,n.from="",n.playerArgs=null,n.reqSortOption=null),t.updateBaseline!=null&&t.hasOwnProperty("updateBaseline")&&(n.updateBaseline=t.updateBaseline),t.offset!=null&&t.hasOwnProperty("offset")&&(n.offset=t.offset),t.page!=null&&t.hasOwnProperty("page")&&(n.page=t.page),t.refreshType!=null&&t.hasOwnProperty("refreshType")&&(n.refreshType=i.enums===String?u.bilibili.app.dynamic.v2.Refresh[t.refreshType]===void 0?t.refreshType:u.bilibili.app.dynamic.v2.Refresh[t.refreshType]:t.refreshType),t.playurlParam!=null&&t.hasOwnProperty("playurlParam")&&(n.playurlParam=u.bilibili.app.dynamic.v2.PlayurlParam.toObject(t.playurlParam,i)),t.assistBaseline!=null&&t.hasOwnProperty("assistBaseline")&&(n.assistBaseline=t.assistBaseline),t.localTime!=null&&t.hasOwnProperty("localTime")&&(n.localTime=t.localTime),t.from!=null&&t.hasOwnProperty("from")&&(n.from=t.from),t.playerArgs!=null&&t.hasOwnProperty("playerArgs")&&(n.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.toObject(t.playerArgs,i)),t.reqSortOption!=null&&t.hasOwnProperty("reqSortOption")&&(n.reqSortOption=u.bilibili.app.dynamic.v2.FeedSortOptionReq.toObject(t.reqSortOption,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.DynVideoReq"},e}(),c.Refresh=function(){let e={},l=Object.create(e);return l[e[0]="refresh_new"]=0,l[e[1]="refresh_history"]=1,l}(),c.PlayurlParam=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.qn=t.int32();break}case 2:{o.fnver=t.int32();break}case 3:{o.fnval=t.int32();break}case 4:{o.forceHost=t.int32();break}case 5:{o.fourk=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.PlayurlParam)return t;let i=new u.bilibili.app.dynamic.v2.PlayurlParam;return t.qn!=null&&(i.qn=t.qn|0),t.fnver!=null&&(i.fnver=t.fnver|0),t.fnval!=null&&(i.fnval=t.fnval|0),t.forceHost!=null&&(i.forceHost=t.forceHost|0),t.fourk!=null&&(i.fourk=t.fourk|0),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.qn=0,n.fnver=0,n.fnval=0,n.forceHost=0,n.fourk=0),t.qn!=null&&t.hasOwnProperty("qn")&&(n.qn=t.qn),t.fnver!=null&&t.hasOwnProperty("fnver")&&(n.fnver=t.fnver),t.fnval!=null&&t.hasOwnProperty("fnval")&&(n.fnval=t.fnval),t.forceHost!=null&&t.hasOwnProperty("forceHost")&&(n.forceHost=t.forceHost),t.fourk!=null&&t.hasOwnProperty("fourk")&&(n.fourk=t.fourk),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.PlayurlParam"},e}(),c.DynVideoReply=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.dynamicList=u.bilibili.app.dynamic.v2.CardVideoDynList.decode(t,t.uint32());break}case 2:{o.videoUpList=u.bilibili.app.dynamic.v2.CardVideoUpList.decode(t,t.uint32());break}case 3:{o.videoFollowList=u.bilibili.app.dynamic.v2.CardVideoFollowList.decode(t,t.uint32());break}case 4:{o.sortConfig=u.bilibili.app.dynamic.v2.FeedSortConfig.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.DynVideoReply)return t;let i=new u.bilibili.app.dynamic.v2.DynVideoReply;if(t.dynamicList!=null){if(typeof t.dynamicList!="object")throw TypeError(".bilibili.app.dynamic.v2.DynVideoReply.dynamicList: object expected");i.dynamicList=u.bilibili.app.dynamic.v2.CardVideoDynList.fromObject(t.dynamicList)}if(t.videoUpList!=null){if(typeof t.videoUpList!="object")throw TypeError(".bilibili.app.dynamic.v2.DynVideoReply.videoUpList: object expected");i.videoUpList=u.bilibili.app.dynamic.v2.CardVideoUpList.fromObject(t.videoUpList)}if(t.videoFollowList!=null){if(typeof t.videoFollowList!="object")throw TypeError(".bilibili.app.dynamic.v2.DynVideoReply.videoFollowList: object expected");i.videoFollowList=u.bilibili.app.dynamic.v2.CardVideoFollowList.fromObject(t.videoFollowList)}if(t.sortConfig!=null){if(typeof t.sortConfig!="object")throw TypeError(".bilibili.app.dynamic.v2.DynVideoReply.sortConfig: object expected");i.sortConfig=u.bilibili.app.dynamic.v2.FeedSortConfig.fromObject(t.sortConfig)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.dynamicList=null,n.videoUpList=null,n.videoFollowList=null,n.sortConfig=null),t.dynamicList!=null&&t.hasOwnProperty("dynamicList")&&(n.dynamicList=u.bilibili.app.dynamic.v2.CardVideoDynList.toObject(t.dynamicList,i)),t.videoUpList!=null&&t.hasOwnProperty("videoUpList")&&(n.videoUpList=u.bilibili.app.dynamic.v2.CardVideoUpList.toObject(t.videoUpList,i)),t.videoFollowList!=null&&t.hasOwnProperty("videoFollowList")&&(n.videoFollowList=u.bilibili.app.dynamic.v2.CardVideoFollowList.toObject(t.videoFollowList,i)),t.sortConfig!=null&&t.hasOwnProperty("sortConfig")&&(n.sortConfig=u.bilibili.app.dynamic.v2.FeedSortConfig.toObject(t.sortConfig,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.DynVideoReply"},e}(),c.CardVideoDynList=function(){function e(l){if(this.list=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.list&&o.list.length||(o.list=[]),o.list.push(u.bilibili.app.dynamic.v2.DynamicItem.decode(t,t.uint32()));break}case 2:{o.updateNum=t.int64();break}case 3:{o.historyOffset=t.string();break}case 4:{o.updateBaseline=t.string();break}case 5:{o.hasMore=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.CardVideoDynList)return t;let i=new u.bilibili.app.dynamic.v2.CardVideoDynList;if(t.list){if(!Array.isArray(t.list))throw TypeError(".bilibili.app.dynamic.v2.CardVideoDynList.list: array expected");i.list=[];for(let n=0;n>>0,t.updateNum.high>>>0).toNumber())),t.historyOffset!=null&&(i.historyOffset=String(t.historyOffset)),t.updateBaseline!=null&&(i.updateBaseline=String(t.updateBaseline)),t.hasMore!=null&&(i.hasMore=!!t.hasMore),i},e.toObject=function(t,i){i||(i={});let n={};if((i.arrays||i.defaults)&&(n.list=[]),i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.updateNum=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.updateNum=i.longs===String?"0":0;n.historyOffset="",n.updateBaseline="",n.hasMore=!1}if(t.list&&t.list.length){n.list=[];for(let o=0;o>>0,t.updateNum.high>>>0).toNumber():t.updateNum),t.historyOffset!=null&&t.hasOwnProperty("historyOffset")&&(n.historyOffset=t.historyOffset),t.updateBaseline!=null&&t.hasOwnProperty("updateBaseline")&&(n.updateBaseline=t.updateBaseline),t.hasMore!=null&&t.hasOwnProperty("hasMore")&&(n.hasMore=t.hasMore),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.CardVideoDynList"},e}(),c.DynAllReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.updateBaseline=t.string();break}case 2:{o.offset=t.string();break}case 3:{o.page=t.int32();break}case 4:{o.refreshType=t.int32();break}case 5:{o.playurlParam=u.bilibili.app.dynamic.v2.PlayurlParam.decode(t,t.uint32());break}case 6:{o.assistBaseline=t.string();break}case 7:{o.localTime=t.int32();break}case 8:{o.rcmdUpsParam=u.bilibili.app.dynamic.v2.RcmdUPsParam.decode(t,t.uint32());break}case 9:{o.adParam=u.bilibili.app.dynamic.v2.AdParam.decode(t,t.uint32());break}case 10:{o.coldStart=t.int32();break}case 11:{o.from=t.string();break}case 12:{o.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.decode(t,t.uint32());break}case 13:{o.tabRecallUid=t.int64();break}case 14:{o.tabRecallType=t.int32();break}case 15:{o.tabRecallExtra=t.string();break}case 16:{o.reqSortOption=u.bilibili.app.dynamic.v2.FeedSortOptionReq.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.DynAllReq)return t;let i=new u.bilibili.app.dynamic.v2.DynAllReq;switch(t.updateBaseline!=null&&(i.updateBaseline=String(t.updateBaseline)),t.offset!=null&&(i.offset=String(t.offset)),t.page!=null&&(i.page=t.page|0),t.refreshType){default:if(typeof t.refreshType=="number"){i.refreshType=t.refreshType;break}break;case"refresh_new":case 0:i.refreshType=0;break;case"refresh_history":case 1:i.refreshType=1;break}if(t.playurlParam!=null){if(typeof t.playurlParam!="object")throw TypeError(".bilibili.app.dynamic.v2.DynAllReq.playurlParam: object expected");i.playurlParam=u.bilibili.app.dynamic.v2.PlayurlParam.fromObject(t.playurlParam)}if(t.assistBaseline!=null&&(i.assistBaseline=String(t.assistBaseline)),t.localTime!=null&&(i.localTime=t.localTime|0),t.rcmdUpsParam!=null){if(typeof t.rcmdUpsParam!="object")throw TypeError(".bilibili.app.dynamic.v2.DynAllReq.rcmdUpsParam: object expected");i.rcmdUpsParam=u.bilibili.app.dynamic.v2.RcmdUPsParam.fromObject(t.rcmdUpsParam)}if(t.adParam!=null){if(typeof t.adParam!="object")throw TypeError(".bilibili.app.dynamic.v2.DynAllReq.adParam: object expected");i.adParam=u.bilibili.app.dynamic.v2.AdParam.fromObject(t.adParam)}if(t.coldStart!=null&&(i.coldStart=t.coldStart|0),t.from!=null&&(i.from=String(t.from)),t.playerArgs!=null){if(typeof t.playerArgs!="object")throw TypeError(".bilibili.app.dynamic.v2.DynAllReq.playerArgs: object expected");i.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.fromObject(t.playerArgs)}switch(t.tabRecallUid!=null&&(r.Long?(i.tabRecallUid=r.Long.fromValue(t.tabRecallUid)).unsigned=!1:typeof t.tabRecallUid=="string"?i.tabRecallUid=parseInt(t.tabRecallUid,10):typeof t.tabRecallUid=="number"?i.tabRecallUid=t.tabRecallUid:typeof t.tabRecallUid=="object"&&(i.tabRecallUid=new r.LongBits(t.tabRecallUid.low>>>0,t.tabRecallUid.high>>>0).toNumber())),t.tabRecallType){default:if(typeof t.tabRecallType=="number"){i.tabRecallType=t.tabRecallType;break}break;case"STYLE_TYPE_NONE":case 0:i.tabRecallType=0;break;case"STYLE_TYPE_LIVE":case 1:i.tabRecallType=1;break;case"STYLE_TYPE_DYN_UP":case 2:i.tabRecallType=2;break}if(t.tabRecallExtra!=null&&(i.tabRecallExtra=String(t.tabRecallExtra)),t.reqSortOption!=null){if(typeof t.reqSortOption!="object")throw TypeError(".bilibili.app.dynamic.v2.DynAllReq.reqSortOption: object expected");i.reqSortOption=u.bilibili.app.dynamic.v2.FeedSortOptionReq.fromObject(t.reqSortOption)}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.updateBaseline="",n.offset="",n.page=0,n.refreshType=i.enums===String?"refresh_new":0,n.playurlParam=null,n.assistBaseline="",n.localTime=0,n.rcmdUpsParam=null,n.adParam=null,n.coldStart=0,n.from="",n.playerArgs=null,r.Long){let o=new r.Long(0,0,!1);n.tabRecallUid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.tabRecallUid=i.longs===String?"0":0;n.tabRecallType=i.enums===String?"STYLE_TYPE_NONE":0,n.tabRecallExtra="",n.reqSortOption=null}return t.updateBaseline!=null&&t.hasOwnProperty("updateBaseline")&&(n.updateBaseline=t.updateBaseline),t.offset!=null&&t.hasOwnProperty("offset")&&(n.offset=t.offset),t.page!=null&&t.hasOwnProperty("page")&&(n.page=t.page),t.refreshType!=null&&t.hasOwnProperty("refreshType")&&(n.refreshType=i.enums===String?u.bilibili.app.dynamic.v2.Refresh[t.refreshType]===void 0?t.refreshType:u.bilibili.app.dynamic.v2.Refresh[t.refreshType]:t.refreshType),t.playurlParam!=null&&t.hasOwnProperty("playurlParam")&&(n.playurlParam=u.bilibili.app.dynamic.v2.PlayurlParam.toObject(t.playurlParam,i)),t.assistBaseline!=null&&t.hasOwnProperty("assistBaseline")&&(n.assistBaseline=t.assistBaseline),t.localTime!=null&&t.hasOwnProperty("localTime")&&(n.localTime=t.localTime),t.rcmdUpsParam!=null&&t.hasOwnProperty("rcmdUpsParam")&&(n.rcmdUpsParam=u.bilibili.app.dynamic.v2.RcmdUPsParam.toObject(t.rcmdUpsParam,i)),t.adParam!=null&&t.hasOwnProperty("adParam")&&(n.adParam=u.bilibili.app.dynamic.v2.AdParam.toObject(t.adParam,i)),t.coldStart!=null&&t.hasOwnProperty("coldStart")&&(n.coldStart=t.coldStart),t.from!=null&&t.hasOwnProperty("from")&&(n.from=t.from),t.playerArgs!=null&&t.hasOwnProperty("playerArgs")&&(n.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.toObject(t.playerArgs,i)),t.tabRecallUid!=null&&t.hasOwnProperty("tabRecallUid")&&(typeof t.tabRecallUid=="number"?n.tabRecallUid=i.longs===String?String(t.tabRecallUid):t.tabRecallUid:n.tabRecallUid=i.longs===String?r.Long.prototype.toString.call(t.tabRecallUid):i.longs===Number?new r.LongBits(t.tabRecallUid.low>>>0,t.tabRecallUid.high>>>0).toNumber():t.tabRecallUid),t.tabRecallType!=null&&t.hasOwnProperty("tabRecallType")&&(n.tabRecallType=i.enums===String?u.bilibili.app.dynamic.v2.StyleType[t.tabRecallType]===void 0?t.tabRecallType:u.bilibili.app.dynamic.v2.StyleType[t.tabRecallType]:t.tabRecallType),t.tabRecallExtra!=null&&t.hasOwnProperty("tabRecallExtra")&&(n.tabRecallExtra=t.tabRecallExtra),t.reqSortOption!=null&&t.hasOwnProperty("reqSortOption")&&(n.reqSortOption=u.bilibili.app.dynamic.v2.FeedSortOptionReq.toObject(t.reqSortOption,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.DynAllReq"},e}(),c.StyleType=function(){let e={},l=Object.create(e);return l[e[0]="STYLE_TYPE_NONE"]=0,l[e[1]="STYLE_TYPE_LIVE"]=1,l[e[2]="STYLE_TYPE_DYN_UP"]=2,l}(),c.RcmdUPsParam=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.dislikeTs=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.RcmdUPsParam)return t;let i=new u.bilibili.app.dynamic.v2.RcmdUPsParam;return t.dislikeTs!=null&&(r.Long?(i.dislikeTs=r.Long.fromValue(t.dislikeTs)).unsigned=!1:typeof t.dislikeTs=="string"?i.dislikeTs=parseInt(t.dislikeTs,10):typeof t.dislikeTs=="number"?i.dislikeTs=t.dislikeTs:typeof t.dislikeTs=="object"&&(i.dislikeTs=new r.LongBits(t.dislikeTs.low>>>0,t.dislikeTs.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(r.Long){let o=new r.Long(0,0,!1);n.dislikeTs=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.dislikeTs=i.longs===String?"0":0;return t.dislikeTs!=null&&t.hasOwnProperty("dislikeTs")&&(typeof t.dislikeTs=="number"?n.dislikeTs=i.longs===String?String(t.dislikeTs):t.dislikeTs:n.dislikeTs=i.longs===String?r.Long.prototype.toString.call(t.dislikeTs):i.longs===Number?new r.LongBits(t.dislikeTs.low>>>0,t.dislikeTs.high>>>0).toNumber():t.dislikeTs),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.RcmdUPsParam"},e}(),c.AdParam=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.adExtra=t.string();break}case 2:{o.requestId=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.AdParam)return t;let i=new u.bilibili.app.dynamic.v2.AdParam;return t.adExtra!=null&&(i.adExtra=String(t.adExtra)),t.requestId!=null&&(i.requestId=String(t.requestId)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.adExtra="",n.requestId=""),t.adExtra!=null&&t.hasOwnProperty("adExtra")&&(n.adExtra=t.adExtra),t.requestId!=null&&t.hasOwnProperty("requestId")&&(n.requestId=t.requestId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.AdParam"},e}(),c.Config=function(){function e(l){if(this.extraRouterKvs={},l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.storyVerticalExp=t.bool();break}case 2:{o.detailViewBits=t.uint64();break}case 3:{o.extraRouterKvs===r.emptyObject&&(o.extraRouterKvs={});let v=t.uint32()+t.pos;for(a="",y="";t.pos>>3){case 1:a=t.string();break;case 2:y=t.string();break;default:t.skipType(g&7);break}}o.extraRouterKvs[a]=y;break}default:t.skipType(s&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.Config)return t;let i=new u.bilibili.app.dynamic.v2.Config;if(t.storyVerticalExp!=null&&(i.storyVerticalExp=!!t.storyVerticalExp),t.detailViewBits!=null&&(r.Long?(i.detailViewBits=r.Long.fromValue(t.detailViewBits)).unsigned=!0:typeof t.detailViewBits=="string"?i.detailViewBits=parseInt(t.detailViewBits,10):typeof t.detailViewBits=="number"?i.detailViewBits=t.detailViewBits:typeof t.detailViewBits=="object"&&(i.detailViewBits=new r.LongBits(t.detailViewBits.low>>>0,t.detailViewBits.high>>>0).toNumber(!0))),t.extraRouterKvs){if(typeof t.extraRouterKvs!="object")throw TypeError(".bilibili.app.dynamic.v2.Config.extraRouterKvs: object expected");i.extraRouterKvs={};for(let n=Object.keys(t.extraRouterKvs),o=0;o>>0,t.detailViewBits.high>>>0).toNumber(!0):t.detailViewBits);let o;if(t.extraRouterKvs&&(o=Object.keys(t.extraRouterKvs)).length){n.extraRouterKvs={};for(let a=0;a>>3){case 1:{o.dynamicList=u.bilibili.app.dynamic.v2.DynamicList.decode(t,t.uint32());break}case 2:{o.upList=u.bilibili.app.dynamic.v2.CardVideoUpList.decode(t,t.uint32());break}case 3:{o.topicList=u.bilibili.app.dynamic.v2.TopicList.decode(t,t.uint32());break}case 4:{o.unfollow=u.bilibili.app.dynamic.v2.Unfollow.decode(t,t.uint32());break}case 5:{o.regionRcmd=u.bilibili.app.dynamic.v2.DynRegionRcmd.decode(t,t.uint32());break}case 6:{o.config=u.bilibili.app.dynamic.v2.Config.decode(t,t.uint32());break}case 7:{o.sortConfig=u.bilibili.app.dynamic.v2.FeedSortConfig.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.DynAllReply)return t;let i=new u.bilibili.app.dynamic.v2.DynAllReply;if(t.dynamicList!=null){if(typeof t.dynamicList!="object")throw TypeError(".bilibili.app.dynamic.v2.DynAllReply.dynamicList: object expected");i.dynamicList=u.bilibili.app.dynamic.v2.DynamicList.fromObject(t.dynamicList)}if(t.upList!=null){if(typeof t.upList!="object")throw TypeError(".bilibili.app.dynamic.v2.DynAllReply.upList: object expected");i.upList=u.bilibili.app.dynamic.v2.CardVideoUpList.fromObject(t.upList)}if(t.topicList!=null){if(typeof t.topicList!="object")throw TypeError(".bilibili.app.dynamic.v2.DynAllReply.topicList: object expected");i.topicList=u.bilibili.app.dynamic.v2.TopicList.fromObject(t.topicList)}if(t.unfollow!=null){if(typeof t.unfollow!="object")throw TypeError(".bilibili.app.dynamic.v2.DynAllReply.unfollow: object expected");i.unfollow=u.bilibili.app.dynamic.v2.Unfollow.fromObject(t.unfollow)}if(t.regionRcmd!=null){if(typeof t.regionRcmd!="object")throw TypeError(".bilibili.app.dynamic.v2.DynAllReply.regionRcmd: object expected");i.regionRcmd=u.bilibili.app.dynamic.v2.DynRegionRcmd.fromObject(t.regionRcmd)}if(t.config!=null){if(typeof t.config!="object")throw TypeError(".bilibili.app.dynamic.v2.DynAllReply.config: object expected");i.config=u.bilibili.app.dynamic.v2.Config.fromObject(t.config)}if(t.sortConfig!=null){if(typeof t.sortConfig!="object")throw TypeError(".bilibili.app.dynamic.v2.DynAllReply.sortConfig: object expected");i.sortConfig=u.bilibili.app.dynamic.v2.FeedSortConfig.fromObject(t.sortConfig)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.dynamicList=null,n.upList=null,n.topicList=null,n.unfollow=null,n.regionRcmd=null,n.config=null,n.sortConfig=null),t.dynamicList!=null&&t.hasOwnProperty("dynamicList")&&(n.dynamicList=u.bilibili.app.dynamic.v2.DynamicList.toObject(t.dynamicList,i)),t.upList!=null&&t.hasOwnProperty("upList")&&(n.upList=u.bilibili.app.dynamic.v2.CardVideoUpList.toObject(t.upList,i)),t.topicList!=null&&t.hasOwnProperty("topicList")&&(n.topicList=u.bilibili.app.dynamic.v2.TopicList.toObject(t.topicList,i)),t.unfollow!=null&&t.hasOwnProperty("unfollow")&&(n.unfollow=u.bilibili.app.dynamic.v2.Unfollow.toObject(t.unfollow,i)),t.regionRcmd!=null&&t.hasOwnProperty("regionRcmd")&&(n.regionRcmd=u.bilibili.app.dynamic.v2.DynRegionRcmd.toObject(t.regionRcmd,i)),t.config!=null&&t.hasOwnProperty("config")&&(n.config=u.bilibili.app.dynamic.v2.Config.toObject(t.config,i)),t.sortConfig!=null&&t.hasOwnProperty("sortConfig")&&(n.sortConfig=u.bilibili.app.dynamic.v2.FeedSortConfig.toObject(t.sortConfig,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.DynAllReply"},e}(),c.FeedSortConfig=function(){function e(l){if(this.sortOptions=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.sortOptions&&o.sortOptions.length||(o.sortOptions=[]),o.sortOptions.push(u.bilibili.app.dynamic.v2.FeedSortOption.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.FeedSortConfig)return t;let i=new u.bilibili.app.dynamic.v2.FeedSortConfig;if(t.title!=null&&(i.title=String(t.title)),t.sortOptions){if(!Array.isArray(t.sortOptions))throw TypeError(".bilibili.app.dynamic.v2.FeedSortConfig.sortOptions: array expected");i.sortOptions=[];for(let n=0;n>>3){case 1:{o.sortName=t.string();break}case 2:{o.sortType=t.string();break}case 3:{o.isSelected=t.bool();break}case 4:{o.noAutoNextPageWhenUnsatisfied=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.FeedSortOption)return t;let i=new u.bilibili.app.dynamic.v2.FeedSortOption;return t.sortName!=null&&(i.sortName=String(t.sortName)),t.sortType!=null&&(i.sortType=String(t.sortType)),t.isSelected!=null&&(i.isSelected=!!t.isSelected),t.noAutoNextPageWhenUnsatisfied!=null&&(i.noAutoNextPageWhenUnsatisfied=!!t.noAutoNextPageWhenUnsatisfied),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.sortName="",n.sortType="",n.isSelected=!1,n.noAutoNextPageWhenUnsatisfied=!1),t.sortName!=null&&t.hasOwnProperty("sortName")&&(n.sortName=t.sortName),t.sortType!=null&&t.hasOwnProperty("sortType")&&(n.sortType=t.sortType),t.isSelected!=null&&t.hasOwnProperty("isSelected")&&(n.isSelected=t.isSelected),t.noAutoNextPageWhenUnsatisfied!=null&&t.hasOwnProperty("noAutoNextPageWhenUnsatisfied")&&(n.noAutoNextPageWhenUnsatisfied=t.noAutoNextPageWhenUnsatisfied),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.FeedSortOption"},e}(),c.FeedSortOptionReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.sortType=t.string();break}case 2:{o.isColdRefresh=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.FeedSortOptionReq)return t;let i=new u.bilibili.app.dynamic.v2.FeedSortOptionReq;return t.sortType!=null&&(i.sortType=String(t.sortType)),t.isColdRefresh!=null&&(i.isColdRefresh=!!t.isColdRefresh),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.sortType="",n.isColdRefresh=!1),t.sortType!=null&&t.hasOwnProperty("sortType")&&(n.sortType=t.sortType),t.isColdRefresh!=null&&t.hasOwnProperty("isColdRefresh")&&(n.isColdRefresh=t.isColdRefresh),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.FeedSortOptionReq"},e}(),c.DynamicList=function(){function e(l){if(this.list=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.list&&o.list.length||(o.list=[]),o.list.push(u.bilibili.app.dynamic.v2.DynamicItem.decode(t,t.uint32()));break}case 2:{o.updateNum=t.int64();break}case 3:{o.historyOffset=t.string();break}case 4:{o.updateBaseline=t.string();break}case 5:{o.hasMore=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.DynamicList)return t;let i=new u.bilibili.app.dynamic.v2.DynamicList;if(t.list){if(!Array.isArray(t.list))throw TypeError(".bilibili.app.dynamic.v2.DynamicList.list: array expected");i.list=[];for(let n=0;n>>0,t.updateNum.high>>>0).toNumber())),t.historyOffset!=null&&(i.historyOffset=String(t.historyOffset)),t.updateBaseline!=null&&(i.updateBaseline=String(t.updateBaseline)),t.hasMore!=null&&(i.hasMore=!!t.hasMore),i},e.toObject=function(t,i){i||(i={});let n={};if((i.arrays||i.defaults)&&(n.list=[]),i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.updateNum=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.updateNum=i.longs===String?"0":0;n.historyOffset="",n.updateBaseline="",n.hasMore=!1}if(t.list&&t.list.length){n.list=[];for(let o=0;o>>0,t.updateNum.high>>>0).toNumber():t.updateNum),t.historyOffset!=null&&t.hasOwnProperty("historyOffset")&&(n.historyOffset=t.historyOffset),t.updateBaseline!=null&&t.hasOwnProperty("updateBaseline")&&(n.updateBaseline=t.updateBaseline),t.hasMore!=null&&t.hasOwnProperty("hasMore")&&(n.hasMore=t.hasMore),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.DynamicList"},e}(),c.TopicList=function(){function e(l){if(this.topicListItem=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.topicListItem&&o.topicListItem.length||(o.topicListItem=[]),o.topicListItem.push(u.bilibili.app.dynamic.v2.TopicListItem.decode(t,t.uint32()));break}case 3:{o.actButton=u.bilibili.app.dynamic.v2.TopicButton.decode(t,t.uint32());break}case 4:{o.moreButton=u.bilibili.app.dynamic.v2.TopicButton.decode(t,t.uint32());break}case 5:{o.serverInfo=t.string();break}case 6:{o.subTitle=t.string();break}case 7:{o.expStyle=t.int32();break}case 8:{o.titleIcon=t.string();break}case 9:{o.hintMessage=u.bilibili.app.dynamic.v2.DynamicItem.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.TopicList)return t;let i=new u.bilibili.app.dynamic.v2.TopicList;if(t.title!=null&&(i.title=String(t.title)),t.topicListItem){if(!Array.isArray(t.topicListItem))throw TypeError(".bilibili.app.dynamic.v2.TopicList.topicListItem: array expected");i.topicListItem=[];for(let n=0;n>>3){case 1:{o.icon=t.string();break}case 2:{o.iconTitle=t.string();break}case 3:{o.topicId=t.int64();break}case 4:{o.topicName=t.string();break}case 5:{o.url=t.string();break}case 6:{o.pos=t.int64();break}case 7:{o.serverInfo=t.string();break}case 8:{o.headIconUrl=t.string();break}case 9:{o.upMid=t.int64();break}case 10:{o.tailIconUrl=t.string();break}case 11:{o.extension=t.string();break}case 12:{o.position=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.TopicListItem)return t;let i=new u.bilibili.app.dynamic.v2.TopicListItem;return t.icon!=null&&(i.icon=String(t.icon)),t.iconTitle!=null&&(i.iconTitle=String(t.iconTitle)),t.topicId!=null&&(r.Long?(i.topicId=r.Long.fromValue(t.topicId)).unsigned=!1:typeof t.topicId=="string"?i.topicId=parseInt(t.topicId,10):typeof t.topicId=="number"?i.topicId=t.topicId:typeof t.topicId=="object"&&(i.topicId=new r.LongBits(t.topicId.low>>>0,t.topicId.high>>>0).toNumber())),t.topicName!=null&&(i.topicName=String(t.topicName)),t.url!=null&&(i.url=String(t.url)),t.pos!=null&&(r.Long?(i.pos=r.Long.fromValue(t.pos)).unsigned=!1:typeof t.pos=="string"?i.pos=parseInt(t.pos,10):typeof t.pos=="number"?i.pos=t.pos:typeof t.pos=="object"&&(i.pos=new r.LongBits(t.pos.low>>>0,t.pos.high>>>0).toNumber())),t.serverInfo!=null&&(i.serverInfo=String(t.serverInfo)),t.headIconUrl!=null&&(i.headIconUrl=String(t.headIconUrl)),t.upMid!=null&&(r.Long?(i.upMid=r.Long.fromValue(t.upMid)).unsigned=!1:typeof t.upMid=="string"?i.upMid=parseInt(t.upMid,10):typeof t.upMid=="number"?i.upMid=t.upMid:typeof t.upMid=="object"&&(i.upMid=new r.LongBits(t.upMid.low>>>0,t.upMid.high>>>0).toNumber())),t.tailIconUrl!=null&&(i.tailIconUrl=String(t.tailIconUrl)),t.extension!=null&&(i.extension=String(t.extension)),t.position!=null&&(r.Long?(i.position=r.Long.fromValue(t.position)).unsigned=!1:typeof t.position=="string"?i.position=parseInt(t.position,10):typeof t.position=="number"?i.position=t.position:typeof t.position=="object"&&(i.position=new r.LongBits(t.position.low>>>0,t.position.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.icon="",n.iconTitle="",r.Long){let o=new r.Long(0,0,!1);n.topicId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.topicId=i.longs===String?"0":0;if(n.topicName="",n.url="",r.Long){let o=new r.Long(0,0,!1);n.pos=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.pos=i.longs===String?"0":0;if(n.serverInfo="",n.headIconUrl="",r.Long){let o=new r.Long(0,0,!1);n.upMid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.upMid=i.longs===String?"0":0;if(n.tailIconUrl="",n.extension="",r.Long){let o=new r.Long(0,0,!1);n.position=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.position=i.longs===String?"0":0}return t.icon!=null&&t.hasOwnProperty("icon")&&(n.icon=t.icon),t.iconTitle!=null&&t.hasOwnProperty("iconTitle")&&(n.iconTitle=t.iconTitle),t.topicId!=null&&t.hasOwnProperty("topicId")&&(typeof t.topicId=="number"?n.topicId=i.longs===String?String(t.topicId):t.topicId:n.topicId=i.longs===String?r.Long.prototype.toString.call(t.topicId):i.longs===Number?new r.LongBits(t.topicId.low>>>0,t.topicId.high>>>0).toNumber():t.topicId),t.topicName!=null&&t.hasOwnProperty("topicName")&&(n.topicName=t.topicName),t.url!=null&&t.hasOwnProperty("url")&&(n.url=t.url),t.pos!=null&&t.hasOwnProperty("pos")&&(typeof t.pos=="number"?n.pos=i.longs===String?String(t.pos):t.pos:n.pos=i.longs===String?r.Long.prototype.toString.call(t.pos):i.longs===Number?new r.LongBits(t.pos.low>>>0,t.pos.high>>>0).toNumber():t.pos),t.serverInfo!=null&&t.hasOwnProperty("serverInfo")&&(n.serverInfo=t.serverInfo),t.headIconUrl!=null&&t.hasOwnProperty("headIconUrl")&&(n.headIconUrl=t.headIconUrl),t.upMid!=null&&t.hasOwnProperty("upMid")&&(typeof t.upMid=="number"?n.upMid=i.longs===String?String(t.upMid):t.upMid:n.upMid=i.longs===String?r.Long.prototype.toString.call(t.upMid):i.longs===Number?new r.LongBits(t.upMid.low>>>0,t.upMid.high>>>0).toNumber():t.upMid),t.tailIconUrl!=null&&t.hasOwnProperty("tailIconUrl")&&(n.tailIconUrl=t.tailIconUrl),t.extension!=null&&t.hasOwnProperty("extension")&&(n.extension=t.extension),t.position!=null&&t.hasOwnProperty("position")&&(typeof t.position=="number"?n.position=i.longs===String?String(t.position):t.position:n.position=i.longs===String?r.Long.prototype.toString.call(t.position):i.longs===Number?new r.LongBits(t.position.low>>>0,t.position.high>>>0).toNumber():t.position),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.TopicListItem"},e}(),c.TopicButton=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.icon=t.string();break}case 2:{o.title=t.string();break}case 3:{o.jumpUri=t.string();break}case 4:{o.redDot=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.TopicButton)return t;let i=new u.bilibili.app.dynamic.v2.TopicButton;return t.icon!=null&&(i.icon=String(t.icon)),t.title!=null&&(i.title=String(t.title)),t.jumpUri!=null&&(i.jumpUri=String(t.jumpUri)),t.redDot!=null&&(i.redDot=!!t.redDot),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.icon="",n.title="",n.jumpUri="",n.redDot=!1),t.icon!=null&&t.hasOwnProperty("icon")&&(n.icon=t.icon),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.jumpUri!=null&&t.hasOwnProperty("jumpUri")&&(n.jumpUri=t.jumpUri),t.redDot!=null&&t.hasOwnProperty("redDot")&&(n.redDot=t.redDot),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.TopicButton"},e}(),c.Unfollow=function(){function e(l){if(this.list=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.list&&o.list.length||(o.list=[]),o.list.push(u.bilibili.app.dynamic.v2.UnfollowUserItem.decode(t,t.uint32()));break}case 3:{o.TrackId=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.Unfollow)return t;let i=new u.bilibili.app.dynamic.v2.Unfollow;if(t.title!=null&&(i.title=String(t.title)),t.list){if(!Array.isArray(t.list))throw TypeError(".bilibili.app.dynamic.v2.Unfollow.list: array expected");i.list=[];for(let n=0;n>>3){case 1:{o.hasUpdate=t.bool();break}case 2:{o.face=t.string();break}case 3:{o.name=t.string();break}case 4:{o.uid=t.int64();break}case 5:{o.pos=t.int32();break}case 6:{o.liveState=t.int32();break}case 7:{o.official=u.bilibili.app.dynamic.v2.OfficialVerify.decode(t,t.uint32());break}case 8:{o.vip=u.bilibili.app.dynamic.v2.VipInfo.decode(t,t.uint32());break}case 9:{o.sign=t.string();break}case 10:{o.label=t.string();break}case 11:{o.button=u.bilibili.app.dynamic.v2.AdditionalButton.decode(t,t.uint32());break}case 12:{o.uri=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.UnfollowUserItem)return t;let i=new u.bilibili.app.dynamic.v2.UnfollowUserItem;switch(t.hasUpdate!=null&&(i.hasUpdate=!!t.hasUpdate),t.face!=null&&(i.face=String(t.face)),t.name!=null&&(i.name=String(t.name)),t.uid!=null&&(r.Long?(i.uid=r.Long.fromValue(t.uid)).unsigned=!1:typeof t.uid=="string"?i.uid=parseInt(t.uid,10):typeof t.uid=="number"?i.uid=t.uid:typeof t.uid=="object"&&(i.uid=new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber())),t.pos!=null&&(i.pos=t.pos|0),t.liveState){default:if(typeof t.liveState=="number"){i.liveState=t.liveState;break}break;case"live_none":case 0:i.liveState=0;break;case"live_live":case 1:i.liveState=1;break;case"live_rotation":case 2:i.liveState=2;break}if(t.official!=null){if(typeof t.official!="object")throw TypeError(".bilibili.app.dynamic.v2.UnfollowUserItem.official: object expected");i.official=u.bilibili.app.dynamic.v2.OfficialVerify.fromObject(t.official)}if(t.vip!=null){if(typeof t.vip!="object")throw TypeError(".bilibili.app.dynamic.v2.UnfollowUserItem.vip: object expected");i.vip=u.bilibili.app.dynamic.v2.VipInfo.fromObject(t.vip)}if(t.sign!=null&&(i.sign=String(t.sign)),t.label!=null&&(i.label=String(t.label)),t.button!=null){if(typeof t.button!="object")throw TypeError(".bilibili.app.dynamic.v2.UnfollowUserItem.button: object expected");i.button=u.bilibili.app.dynamic.v2.AdditionalButton.fromObject(t.button)}return t.uri!=null&&(i.uri=String(t.uri)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.hasUpdate=!1,n.face="",n.name="",r.Long){let o=new r.Long(0,0,!1);n.uid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.uid=i.longs===String?"0":0;n.pos=0,n.liveState=i.enums===String?"live_none":0,n.official=null,n.vip=null,n.sign="",n.label="",n.button=null,n.uri=""}return t.hasUpdate!=null&&t.hasOwnProperty("hasUpdate")&&(n.hasUpdate=t.hasUpdate),t.face!=null&&t.hasOwnProperty("face")&&(n.face=t.face),t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),t.uid!=null&&t.hasOwnProperty("uid")&&(typeof t.uid=="number"?n.uid=i.longs===String?String(t.uid):t.uid:n.uid=i.longs===String?r.Long.prototype.toString.call(t.uid):i.longs===Number?new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber():t.uid),t.pos!=null&&t.hasOwnProperty("pos")&&(n.pos=t.pos),t.liveState!=null&&t.hasOwnProperty("liveState")&&(n.liveState=i.enums===String?u.bilibili.app.dynamic.v2.LiveState[t.liveState]===void 0?t.liveState:u.bilibili.app.dynamic.v2.LiveState[t.liveState]:t.liveState),t.official!=null&&t.hasOwnProperty("official")&&(n.official=u.bilibili.app.dynamic.v2.OfficialVerify.toObject(t.official,i)),t.vip!=null&&t.hasOwnProperty("vip")&&(n.vip=u.bilibili.app.dynamic.v2.VipInfo.toObject(t.vip,i)),t.sign!=null&&t.hasOwnProperty("sign")&&(n.sign=t.sign),t.label!=null&&t.hasOwnProperty("label")&&(n.label=t.label),t.button!=null&&t.hasOwnProperty("button")&&(n.button=u.bilibili.app.dynamic.v2.AdditionalButton.toObject(t.button,i)),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.UnfollowUserItem"},e}(),c.DynDetailsReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.dynamicIds=t.string();break}case 2:{o.playurlParam=u.bilibili.app.dynamic.v2.PlayurlParam.decode(t,t.uint32());break}case 3:{o.localTime=t.int32();break}case 4:{o.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.decode(t,t.uint32());break}case 5:{o.config=u.bilibili.app.dynamic.v2.Config.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.DynDetailsReq)return t;let i=new u.bilibili.app.dynamic.v2.DynDetailsReq;if(t.dynamicIds!=null&&(i.dynamicIds=String(t.dynamicIds)),t.playurlParam!=null){if(typeof t.playurlParam!="object")throw TypeError(".bilibili.app.dynamic.v2.DynDetailsReq.playurlParam: object expected");i.playurlParam=u.bilibili.app.dynamic.v2.PlayurlParam.fromObject(t.playurlParam)}if(t.localTime!=null&&(i.localTime=t.localTime|0),t.playerArgs!=null){if(typeof t.playerArgs!="object")throw TypeError(".bilibili.app.dynamic.v2.DynDetailsReq.playerArgs: object expected");i.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.fromObject(t.playerArgs)}if(t.config!=null){if(typeof t.config!="object")throw TypeError(".bilibili.app.dynamic.v2.DynDetailsReq.config: object expected");i.config=u.bilibili.app.dynamic.v2.Config.fromObject(t.config)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.dynamicIds="",n.playurlParam=null,n.localTime=0,n.playerArgs=null,n.config=null),t.dynamicIds!=null&&t.hasOwnProperty("dynamicIds")&&(n.dynamicIds=t.dynamicIds),t.playurlParam!=null&&t.hasOwnProperty("playurlParam")&&(n.playurlParam=u.bilibili.app.dynamic.v2.PlayurlParam.toObject(t.playurlParam,i)),t.localTime!=null&&t.hasOwnProperty("localTime")&&(n.localTime=t.localTime),t.playerArgs!=null&&t.hasOwnProperty("playerArgs")&&(n.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.toObject(t.playerArgs,i)),t.config!=null&&t.hasOwnProperty("config")&&(n.config=u.bilibili.app.dynamic.v2.Config.toObject(t.config,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.DynDetailsReq"},e}(),c.DynDetailsReply=function(){function e(l){if(this.list=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.list&&o.list.length||(o.list=[]),o.list.push(u.bilibili.app.dynamic.v2.DynamicItem.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.DynDetailsReply)return t;let i=new u.bilibili.app.dynamic.v2.DynDetailsReply;if(t.list){if(!Array.isArray(t.list))throw TypeError(".bilibili.app.dynamic.v2.DynDetailsReply.list: array expected");i.list=[];for(let n=0;n>>3){case 1:{o.hostUid=t.int64();break}case 2:{o.offset=t.string();break}case 3:{o.page=t.int32();break}case 4:{o.isPreload=t.int32();break}case 5:{o.playurlParam=u.bilibili.app.dynamic.v2.PlayurlParam.decode(t,t.uint32());break}case 6:{o.localTime=t.int32();break}case 7:{o.footprint=t.string();break}case 8:{o.from=t.string();break}case 9:{o.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.decode(t,t.uint32());break}case 10:{o.pegasusAvid=t.int64();break}case 11:{o.personalExtra=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.DynVideoPersonalReq)return t;let i=new u.bilibili.app.dynamic.v2.DynVideoPersonalReq;if(t.hostUid!=null&&(r.Long?(i.hostUid=r.Long.fromValue(t.hostUid)).unsigned=!1:typeof t.hostUid=="string"?i.hostUid=parseInt(t.hostUid,10):typeof t.hostUid=="number"?i.hostUid=t.hostUid:typeof t.hostUid=="object"&&(i.hostUid=new r.LongBits(t.hostUid.low>>>0,t.hostUid.high>>>0).toNumber())),t.offset!=null&&(i.offset=String(t.offset)),t.page!=null&&(i.page=t.page|0),t.isPreload!=null&&(i.isPreload=t.isPreload|0),t.playurlParam!=null){if(typeof t.playurlParam!="object")throw TypeError(".bilibili.app.dynamic.v2.DynVideoPersonalReq.playurlParam: object expected");i.playurlParam=u.bilibili.app.dynamic.v2.PlayurlParam.fromObject(t.playurlParam)}if(t.localTime!=null&&(i.localTime=t.localTime|0),t.footprint!=null&&(i.footprint=String(t.footprint)),t.from!=null&&(i.from=String(t.from)),t.playerArgs!=null){if(typeof t.playerArgs!="object")throw TypeError(".bilibili.app.dynamic.v2.DynVideoPersonalReq.playerArgs: object expected");i.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.fromObject(t.playerArgs)}return t.pegasusAvid!=null&&(r.Long?(i.pegasusAvid=r.Long.fromValue(t.pegasusAvid)).unsigned=!1:typeof t.pegasusAvid=="string"?i.pegasusAvid=parseInt(t.pegasusAvid,10):typeof t.pegasusAvid=="number"?i.pegasusAvid=t.pegasusAvid:typeof t.pegasusAvid=="object"&&(i.pegasusAvid=new r.LongBits(t.pegasusAvid.low>>>0,t.pegasusAvid.high>>>0).toNumber())),t.personalExtra!=null&&(i.personalExtra=String(t.personalExtra)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.hostUid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.hostUid=i.longs===String?"0":0;if(n.offset="",n.page=0,n.isPreload=0,n.playurlParam=null,n.localTime=0,n.footprint="",n.from="",n.playerArgs=null,r.Long){let o=new r.Long(0,0,!1);n.pegasusAvid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.pegasusAvid=i.longs===String?"0":0;n.personalExtra=""}return t.hostUid!=null&&t.hasOwnProperty("hostUid")&&(typeof t.hostUid=="number"?n.hostUid=i.longs===String?String(t.hostUid):t.hostUid:n.hostUid=i.longs===String?r.Long.prototype.toString.call(t.hostUid):i.longs===Number?new r.LongBits(t.hostUid.low>>>0,t.hostUid.high>>>0).toNumber():t.hostUid),t.offset!=null&&t.hasOwnProperty("offset")&&(n.offset=t.offset),t.page!=null&&t.hasOwnProperty("page")&&(n.page=t.page),t.isPreload!=null&&t.hasOwnProperty("isPreload")&&(n.isPreload=t.isPreload),t.playurlParam!=null&&t.hasOwnProperty("playurlParam")&&(n.playurlParam=u.bilibili.app.dynamic.v2.PlayurlParam.toObject(t.playurlParam,i)),t.localTime!=null&&t.hasOwnProperty("localTime")&&(n.localTime=t.localTime),t.footprint!=null&&t.hasOwnProperty("footprint")&&(n.footprint=t.footprint),t.from!=null&&t.hasOwnProperty("from")&&(n.from=t.from),t.playerArgs!=null&&t.hasOwnProperty("playerArgs")&&(n.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.toObject(t.playerArgs,i)),t.pegasusAvid!=null&&t.hasOwnProperty("pegasusAvid")&&(typeof t.pegasusAvid=="number"?n.pegasusAvid=i.longs===String?String(t.pegasusAvid):t.pegasusAvid:n.pegasusAvid=i.longs===String?r.Long.prototype.toString.call(t.pegasusAvid):i.longs===Number?new r.LongBits(t.pegasusAvid.low>>>0,t.pegasusAvid.high>>>0).toNumber():t.pegasusAvid),t.personalExtra!=null&&t.hasOwnProperty("personalExtra")&&(n.personalExtra=t.personalExtra),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.DynVideoPersonalReq"},e}(),c.DynVideoPersonalReply=function(){function e(l){if(this.list=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.list&&o.list.length||(o.list=[]),o.list.push(u.bilibili.app.dynamic.v2.DynamicItem.decode(t,t.uint32()));break}case 2:{o.offset=t.string();break}case 3:{o.hasMore=t.bool();break}case 4:{o.readOffset=t.string();break}case 5:{o.relation=u.bilibili.app.dynamic.v2.Relation.decode(t,t.uint32());break}case 6:{o.additionUp=u.bilibili.app.dynamic.v2.TopAdditionUP.decode(t,t.uint32());break}case 7:{o.title=t.string();break}case 8:{o.titleSub=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.DynVideoPersonalReply)return t;let i=new u.bilibili.app.dynamic.v2.DynVideoPersonalReply;if(t.list){if(!Array.isArray(t.list))throw TypeError(".bilibili.app.dynamic.v2.DynVideoPersonalReply.list: array expected");i.list=[];for(let n=0;n>>3){case 1:{o.hostUid=t.int64();break}case 2:{o.readOffset=t.string();break}case 3:{o.footprint=t.string();break}case 4:{o.personalExtra=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.DynVideoUpdOffsetReq)return t;let i=new u.bilibili.app.dynamic.v2.DynVideoUpdOffsetReq;return t.hostUid!=null&&(r.Long?(i.hostUid=r.Long.fromValue(t.hostUid)).unsigned=!1:typeof t.hostUid=="string"?i.hostUid=parseInt(t.hostUid,10):typeof t.hostUid=="number"?i.hostUid=t.hostUid:typeof t.hostUid=="object"&&(i.hostUid=new r.LongBits(t.hostUid.low>>>0,t.hostUid.high>>>0).toNumber())),t.readOffset!=null&&(i.readOffset=String(t.readOffset)),t.footprint!=null&&(i.footprint=String(t.footprint)),t.personalExtra!=null&&(i.personalExtra=String(t.personalExtra)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.hostUid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.hostUid=i.longs===String?"0":0;n.readOffset="",n.footprint="",n.personalExtra=""}return t.hostUid!=null&&t.hasOwnProperty("hostUid")&&(typeof t.hostUid=="number"?n.hostUid=i.longs===String?String(t.hostUid):t.hostUid:n.hostUid=i.longs===String?r.Long.prototype.toString.call(t.hostUid):i.longs===Number?new r.LongBits(t.hostUid.low>>>0,t.hostUid.high>>>0).toNumber():t.hostUid),t.readOffset!=null&&t.hasOwnProperty("readOffset")&&(n.readOffset=t.readOffset),t.footprint!=null&&t.hasOwnProperty("footprint")&&(n.footprint=t.footprint),t.personalExtra!=null&&t.hasOwnProperty("personalExtra")&&(n.personalExtra=t.personalExtra),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.DynVideoUpdOffsetReq"},e}(),c.CardVideoUpList=function(){function e(l){if(this.list=[],this.listSecond=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.list&&o.list.length||(o.list=[]),o.list.push(u.bilibili.app.dynamic.v2.UpListItem.decode(t,t.uint32()));break}case 3:{o.footprint=t.string();break}case 4:{o.showLiveNum=t.int32();break}case 5:{o.moreLabel=u.bilibili.app.dynamic.v2.UpListMoreLabel.decode(t,t.uint32());break}case 6:{o.titleSwitch=t.int32();break}case 7:{o.showMoreLabel=t.bool();break}case 8:{o.showInPersonal=t.bool();break}case 9:{o.showMoreButton=t.bool();break}case 10:{o.listSecond&&o.listSecond.length||(o.listSecond=[]),o.listSecond.push(u.bilibili.app.dynamic.v2.UpListItem.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.CardVideoUpList)return t;let i=new u.bilibili.app.dynamic.v2.CardVideoUpList;if(t.title!=null&&(i.title=String(t.title)),t.list){if(!Array.isArray(t.list))throw TypeError(".bilibili.app.dynamic.v2.CardVideoUpList.list: array expected");i.list=[];for(let n=0;n>>3){case 1:{o.title=t.string();break}case 2:{o.uri=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.UpListMoreLabel)return t;let i=new u.bilibili.app.dynamic.v2.UpListMoreLabel;return t.title!=null&&(i.title=String(t.title)),t.uri!=null&&(i.uri=String(t.uri)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.title="",n.uri=""),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.UpListMoreLabel"},e}(),c.UpListItem=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.hasUpdate=t.bool();break}case 2:{o.face=t.string();break}case 3:{o.name=t.string();break}case 4:{o.uid=t.int64();break}case 5:{o.pos=t.int64();break}case 6:{o.userItemType=t.int32();break}case 7:{o.displayStyleDay=u.bilibili.app.dynamic.v2.UserItemStyle.decode(t,t.uint32());break}case 8:{o.displayStyleNight=u.bilibili.app.dynamic.v2.UserItemStyle.decode(t,t.uint32());break}case 9:{o.styleId=t.int64();break}case 10:{o.liveState=t.int32();break}case 11:{o.separator=t.bool();break}case 12:{o.uri=t.string();break}case 13:{o.isRecall=t.bool();break}case 14:{o.updateIcon=u.bilibili.app.dynamic.v2.IconBadge.decode(t,t.uint32());break}case 15:{o.liveRcmdReason=t.string();break}case 16:{o.liveCover=t.string();break}case 17:{o.personalExtra=t.string();break}case 18:{o.updateIconType=t.string();break}case 19:{o.trackId=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.UpListItem)return t;let i=new u.bilibili.app.dynamic.v2.UpListItem;switch(t.hasUpdate!=null&&(i.hasUpdate=!!t.hasUpdate),t.face!=null&&(i.face=String(t.face)),t.name!=null&&(i.name=String(t.name)),t.uid!=null&&(r.Long?(i.uid=r.Long.fromValue(t.uid)).unsigned=!1:typeof t.uid=="string"?i.uid=parseInt(t.uid,10):typeof t.uid=="number"?i.uid=t.uid:typeof t.uid=="object"&&(i.uid=new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber())),t.pos!=null&&(r.Long?(i.pos=r.Long.fromValue(t.pos)).unsigned=!1:typeof t.pos=="string"?i.pos=parseInt(t.pos,10):typeof t.pos=="number"?i.pos=t.pos:typeof t.pos=="object"&&(i.pos=new r.LongBits(t.pos.low>>>0,t.pos.high>>>0).toNumber())),t.userItemType){default:if(typeof t.userItemType=="number"){i.userItemType=t.userItemType;break}break;case"user_item_type_none":case 0:i.userItemType=0;break;case"user_item_type_live":case 1:i.userItemType=1;break;case"user_item_type_live_custom":case 2:i.userItemType=2;break;case"user_item_type_normal":case 3:i.userItemType=3;break;case"user_item_type_extend":case 4:i.userItemType=4;break;case"user_item_type_premiere_reserve":case 5:i.userItemType=5;break;case"user_item_type_premiere":case 6:i.userItemType=6;break;case"user_item_type_live_card":case 7:i.userItemType=7;break;case"user_item_type_ogv_season":case 8:i.userItemType=8;break;case"user_item_type_ugc_season":case 9:i.userItemType=9;break}if(t.displayStyleDay!=null){if(typeof t.displayStyleDay!="object")throw TypeError(".bilibili.app.dynamic.v2.UpListItem.displayStyleDay: object expected");i.displayStyleDay=u.bilibili.app.dynamic.v2.UserItemStyle.fromObject(t.displayStyleDay)}if(t.displayStyleNight!=null){if(typeof t.displayStyleNight!="object")throw TypeError(".bilibili.app.dynamic.v2.UpListItem.displayStyleNight: object expected");i.displayStyleNight=u.bilibili.app.dynamic.v2.UserItemStyle.fromObject(t.displayStyleNight)}switch(t.styleId!=null&&(r.Long?(i.styleId=r.Long.fromValue(t.styleId)).unsigned=!1:typeof t.styleId=="string"?i.styleId=parseInt(t.styleId,10):typeof t.styleId=="number"?i.styleId=t.styleId:typeof t.styleId=="object"&&(i.styleId=new r.LongBits(t.styleId.low>>>0,t.styleId.high>>>0).toNumber())),t.liveState){default:if(typeof t.liveState=="number"){i.liveState=t.liveState;break}break;case"live_none":case 0:i.liveState=0;break;case"live_live":case 1:i.liveState=1;break;case"live_rotation":case 2:i.liveState=2;break}if(t.separator!=null&&(i.separator=!!t.separator),t.uri!=null&&(i.uri=String(t.uri)),t.isRecall!=null&&(i.isRecall=!!t.isRecall),t.updateIcon!=null){if(typeof t.updateIcon!="object")throw TypeError(".bilibili.app.dynamic.v2.UpListItem.updateIcon: object expected");i.updateIcon=u.bilibili.app.dynamic.v2.IconBadge.fromObject(t.updateIcon)}return t.liveRcmdReason!=null&&(i.liveRcmdReason=String(t.liveRcmdReason)),t.liveCover!=null&&(i.liveCover=String(t.liveCover)),t.personalExtra!=null&&(i.personalExtra=String(t.personalExtra)),t.updateIconType!=null&&(i.updateIconType=String(t.updateIconType)),t.trackId!=null&&(i.trackId=String(t.trackId)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.hasUpdate=!1,n.face="",n.name="",r.Long){let o=new r.Long(0,0,!1);n.uid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.uid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.pos=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.pos=i.longs===String?"0":0;if(n.userItemType=i.enums===String?"user_item_type_none":0,n.displayStyleDay=null,n.displayStyleNight=null,r.Long){let o=new r.Long(0,0,!1);n.styleId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.styleId=i.longs===String?"0":0;n.liveState=i.enums===String?"live_none":0,n.separator=!1,n.uri="",n.isRecall=!1,n.updateIcon=null,n.liveRcmdReason="",n.liveCover="",n.personalExtra="",n.updateIconType="",n.trackId=""}return t.hasUpdate!=null&&t.hasOwnProperty("hasUpdate")&&(n.hasUpdate=t.hasUpdate),t.face!=null&&t.hasOwnProperty("face")&&(n.face=t.face),t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),t.uid!=null&&t.hasOwnProperty("uid")&&(typeof t.uid=="number"?n.uid=i.longs===String?String(t.uid):t.uid:n.uid=i.longs===String?r.Long.prototype.toString.call(t.uid):i.longs===Number?new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber():t.uid),t.pos!=null&&t.hasOwnProperty("pos")&&(typeof t.pos=="number"?n.pos=i.longs===String?String(t.pos):t.pos:n.pos=i.longs===String?r.Long.prototype.toString.call(t.pos):i.longs===Number?new r.LongBits(t.pos.low>>>0,t.pos.high>>>0).toNumber():t.pos),t.userItemType!=null&&t.hasOwnProperty("userItemType")&&(n.userItemType=i.enums===String?u.bilibili.app.dynamic.v2.UserItemType[t.userItemType]===void 0?t.userItemType:u.bilibili.app.dynamic.v2.UserItemType[t.userItemType]:t.userItemType),t.displayStyleDay!=null&&t.hasOwnProperty("displayStyleDay")&&(n.displayStyleDay=u.bilibili.app.dynamic.v2.UserItemStyle.toObject(t.displayStyleDay,i)),t.displayStyleNight!=null&&t.hasOwnProperty("displayStyleNight")&&(n.displayStyleNight=u.bilibili.app.dynamic.v2.UserItemStyle.toObject(t.displayStyleNight,i)),t.styleId!=null&&t.hasOwnProperty("styleId")&&(typeof t.styleId=="number"?n.styleId=i.longs===String?String(t.styleId):t.styleId:n.styleId=i.longs===String?r.Long.prototype.toString.call(t.styleId):i.longs===Number?new r.LongBits(t.styleId.low>>>0,t.styleId.high>>>0).toNumber():t.styleId),t.liveState!=null&&t.hasOwnProperty("liveState")&&(n.liveState=i.enums===String?u.bilibili.app.dynamic.v2.LiveState[t.liveState]===void 0?t.liveState:u.bilibili.app.dynamic.v2.LiveState[t.liveState]:t.liveState),t.separator!=null&&t.hasOwnProperty("separator")&&(n.separator=t.separator),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),t.isRecall!=null&&t.hasOwnProperty("isRecall")&&(n.isRecall=t.isRecall),t.updateIcon!=null&&t.hasOwnProperty("updateIcon")&&(n.updateIcon=u.bilibili.app.dynamic.v2.IconBadge.toObject(t.updateIcon,i)),t.liveRcmdReason!=null&&t.hasOwnProperty("liveRcmdReason")&&(n.liveRcmdReason=t.liveRcmdReason),t.liveCover!=null&&t.hasOwnProperty("liveCover")&&(n.liveCover=t.liveCover),t.personalExtra!=null&&t.hasOwnProperty("personalExtra")&&(n.personalExtra=t.personalExtra),t.updateIconType!=null&&t.hasOwnProperty("updateIconType")&&(n.updateIconType=t.updateIconType),t.trackId!=null&&t.hasOwnProperty("trackId")&&(n.trackId=t.trackId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.UpListItem"},e}(),c.UserItemType=function(){let e={},l=Object.create(e);return l[e[0]="user_item_type_none"]=0,l[e[1]="user_item_type_live"]=1,l[e[2]="user_item_type_live_custom"]=2,l[e[3]="user_item_type_normal"]=3,l[e[4]="user_item_type_extend"]=4,l[e[5]="user_item_type_premiere_reserve"]=5,l[e[6]="user_item_type_premiere"]=6,l[e[7]="user_item_type_live_card"]=7,l[e[8]="user_item_type_ogv_season"]=8,l[e[9]="user_item_type_ugc_season"]=9,l}(),c.UserItemStyle=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.rectText=t.string();break}case 2:{o.rectTextColor=t.string();break}case 3:{o.rectIcon=t.string();break}case 4:{o.rectBgColor=t.string();break}case 5:{o.outerAnimation=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.UserItemStyle)return t;let i=new u.bilibili.app.dynamic.v2.UserItemStyle;return t.rectText!=null&&(i.rectText=String(t.rectText)),t.rectTextColor!=null&&(i.rectTextColor=String(t.rectTextColor)),t.rectIcon!=null&&(i.rectIcon=String(t.rectIcon)),t.rectBgColor!=null&&(i.rectBgColor=String(t.rectBgColor)),t.outerAnimation!=null&&(i.outerAnimation=String(t.outerAnimation)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.rectText="",n.rectTextColor="",n.rectIcon="",n.rectBgColor="",n.outerAnimation=""),t.rectText!=null&&t.hasOwnProperty("rectText")&&(n.rectText=t.rectText),t.rectTextColor!=null&&t.hasOwnProperty("rectTextColor")&&(n.rectTextColor=t.rectTextColor),t.rectIcon!=null&&t.hasOwnProperty("rectIcon")&&(n.rectIcon=t.rectIcon),t.rectBgColor!=null&&t.hasOwnProperty("rectBgColor")&&(n.rectBgColor=t.rectBgColor),t.outerAnimation!=null&&t.hasOwnProperty("outerAnimation")&&(n.outerAnimation=t.outerAnimation),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.UserItemStyle"},e}(),c.CardVideoFollowList=function(){function e(l){if(this.list=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.viewAllLink=t.string();break}case 2:{o.list&&o.list.length||(o.list=[]),o.list.push(u.bilibili.app.dynamic.v2.FollowListItem.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.CardVideoFollowList)return t;let i=new u.bilibili.app.dynamic.v2.CardVideoFollowList;if(t.viewAllLink!=null&&(i.viewAllLink=String(t.viewAllLink)),t.list){if(!Array.isArray(t.list))throw TypeError(".bilibili.app.dynamic.v2.CardVideoFollowList.list: array expected");i.list=[];for(let n=0;n>>3){case 1:{o.seasonId=t.int64();break}case 2:{o.title=t.string();break}case 3:{o.cover=t.string();break}case 4:{o.url=t.string();break}case 5:{o.newEp=u.bilibili.app.dynamic.v2.NewEP.decode(t,t.uint32());break}case 6:{o.subTitle=t.string();break}case 7:{o.pos=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.FollowListItem)return t;let i=new u.bilibili.app.dynamic.v2.FollowListItem;if(t.seasonId!=null&&(r.Long?(i.seasonId=r.Long.fromValue(t.seasonId)).unsigned=!1:typeof t.seasonId=="string"?i.seasonId=parseInt(t.seasonId,10):typeof t.seasonId=="number"?i.seasonId=t.seasonId:typeof t.seasonId=="object"&&(i.seasonId=new r.LongBits(t.seasonId.low>>>0,t.seasonId.high>>>0).toNumber())),t.title!=null&&(i.title=String(t.title)),t.cover!=null&&(i.cover=String(t.cover)),t.url!=null&&(i.url=String(t.url)),t.newEp!=null){if(typeof t.newEp!="object")throw TypeError(".bilibili.app.dynamic.v2.FollowListItem.newEp: object expected");i.newEp=u.bilibili.app.dynamic.v2.NewEP.fromObject(t.newEp)}return t.subTitle!=null&&(i.subTitle=String(t.subTitle)),t.pos!=null&&(r.Long?(i.pos=r.Long.fromValue(t.pos)).unsigned=!1:typeof t.pos=="string"?i.pos=parseInt(t.pos,10):typeof t.pos=="number"?i.pos=t.pos:typeof t.pos=="object"&&(i.pos=new r.LongBits(t.pos.low>>>0,t.pos.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.seasonId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.seasonId=i.longs===String?"0":0;if(n.title="",n.cover="",n.url="",n.newEp=null,n.subTitle="",r.Long){let o=new r.Long(0,0,!1);n.pos=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.pos=i.longs===String?"0":0}return t.seasonId!=null&&t.hasOwnProperty("seasonId")&&(typeof t.seasonId=="number"?n.seasonId=i.longs===String?String(t.seasonId):t.seasonId:n.seasonId=i.longs===String?r.Long.prototype.toString.call(t.seasonId):i.longs===Number?new r.LongBits(t.seasonId.low>>>0,t.seasonId.high>>>0).toNumber():t.seasonId),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.cover!=null&&t.hasOwnProperty("cover")&&(n.cover=t.cover),t.url!=null&&t.hasOwnProperty("url")&&(n.url=t.url),t.newEp!=null&&t.hasOwnProperty("newEp")&&(n.newEp=u.bilibili.app.dynamic.v2.NewEP.toObject(t.newEp,i)),t.subTitle!=null&&t.hasOwnProperty("subTitle")&&(n.subTitle=t.subTitle),t.pos!=null&&t.hasOwnProperty("pos")&&(typeof t.pos=="number"?n.pos=i.longs===String?String(t.pos):t.pos:n.pos=i.longs===String?r.Long.prototype.toString.call(t.pos):i.longs===Number?new r.LongBits(t.pos.low>>>0,t.pos.high>>>0).toNumber():t.pos),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.FollowListItem"},e}(),c.NewEP=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.id=t.int32();break}case 2:{o.indexShow=t.string();break}case 3:{o.cover=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.NewEP)return t;let i=new u.bilibili.app.dynamic.v2.NewEP;return t.id!=null&&(i.id=t.id|0),t.indexShow!=null&&(i.indexShow=String(t.indexShow)),t.cover!=null&&(i.cover=String(t.cover)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.id=0,n.indexShow="",n.cover=""),t.id!=null&&t.hasOwnProperty("id")&&(n.id=t.id),t.indexShow!=null&&t.hasOwnProperty("indexShow")&&(n.indexShow=t.indexShow),t.cover!=null&&t.hasOwnProperty("cover")&&(n.cover=t.cover),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.NewEP"},e}(),c.DynAdditionCommonFollowReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.status=t.int32();break}case 2:{o.dynId=t.string();break}case 3:{o.cardType=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.DynAdditionCommonFollowReq)return t;let i=new u.bilibili.app.dynamic.v2.DynAdditionCommonFollowReq;switch(t.status){default:if(typeof t.status=="number"){i.status=t.status;break}break;case"none":case 0:i.status=0;break;case"uncheck":case 1:i.status=1;break;case"check":case 2:i.status=2;break}return t.dynId!=null&&(i.dynId=String(t.dynId)),t.cardType!=null&&(i.cardType=String(t.cardType)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.status=i.enums===String?"none":0,n.dynId="",n.cardType=""),t.status!=null&&t.hasOwnProperty("status")&&(n.status=i.enums===String?u.bilibili.app.dynamic.v2.AdditionalButtonStatus[t.status]===void 0?t.status:u.bilibili.app.dynamic.v2.AdditionalButtonStatus[t.status]:t.status),t.dynId!=null&&t.hasOwnProperty("dynId")&&(n.dynId=t.dynId),t.cardType!=null&&t.hasOwnProperty("cardType")&&(n.cardType=t.cardType),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.DynAdditionCommonFollowReq"},e}(),c.FollowType=function(){let e={},l=Object.create(e);return l[e[0]="ft_not_follow"]=0,l[e[1]="ft_follow"]=1,l}(),c.DynAdditionCommonFollowReply=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.status=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.DynAdditionCommonFollowReply)return t;let i=new u.bilibili.app.dynamic.v2.DynAdditionCommonFollowReply;switch(t.status){default:if(typeof t.status=="number"){i.status=t.status;break}break;case"none":case 0:i.status=0;break;case"uncheck":case 1:i.status=1;break;case"check":case 2:i.status=2;break}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.status=i.enums===String?"none":0),t.status!=null&&t.hasOwnProperty("status")&&(n.status=i.enums===String?u.bilibili.app.dynamic.v2.AdditionalButtonStatus[t.status]===void 0?t.status:u.bilibili.app.dynamic.v2.AdditionalButtonStatus[t.status]:t.status),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.DynAdditionCommonFollowReply"},e}(),c.DynThumbReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.uid=t.int64();break}case 2:{o.dynId=t.string();break}case 3:{o.dynType=t.int64();break}case 4:{o.rid=t.string();break}case 5:{o.type=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.DynThumbReq)return t;let i=new u.bilibili.app.dynamic.v2.DynThumbReq;switch(t.uid!=null&&(r.Long?(i.uid=r.Long.fromValue(t.uid)).unsigned=!1:typeof t.uid=="string"?i.uid=parseInt(t.uid,10):typeof t.uid=="number"?i.uid=t.uid:typeof t.uid=="object"&&(i.uid=new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber())),t.dynId!=null&&(i.dynId=String(t.dynId)),t.dynType!=null&&(r.Long?(i.dynType=r.Long.fromValue(t.dynType)).unsigned=!1:typeof t.dynType=="string"?i.dynType=parseInt(t.dynType,10):typeof t.dynType=="number"?i.dynType=t.dynType:typeof t.dynType=="object"&&(i.dynType=new r.LongBits(t.dynType.low>>>0,t.dynType.high>>>0).toNumber())),t.rid!=null&&(i.rid=String(t.rid)),t.type){default:if(typeof t.type=="number"){i.type=t.type;break}break;case"cancel":case 0:i.type=0;break;case"thumb":case 1:i.type=1;break}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.uid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.uid=i.longs===String?"0":0;if(n.dynId="",r.Long){let o=new r.Long(0,0,!1);n.dynType=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.dynType=i.longs===String?"0":0;n.rid="",n.type=i.enums===String?"cancel":0}return t.uid!=null&&t.hasOwnProperty("uid")&&(typeof t.uid=="number"?n.uid=i.longs===String?String(t.uid):t.uid:n.uid=i.longs===String?r.Long.prototype.toString.call(t.uid):i.longs===Number?new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber():t.uid),t.dynId!=null&&t.hasOwnProperty("dynId")&&(n.dynId=t.dynId),t.dynType!=null&&t.hasOwnProperty("dynType")&&(typeof t.dynType=="number"?n.dynType=i.longs===String?String(t.dynType):t.dynType:n.dynType=i.longs===String?r.Long.prototype.toString.call(t.dynType):i.longs===Number?new r.LongBits(t.dynType.low>>>0,t.dynType.high>>>0).toNumber():t.dynType),t.rid!=null&&t.hasOwnProperty("rid")&&(n.rid=t.rid),t.type!=null&&t.hasOwnProperty("type")&&(n.type=i.enums===String?u.bilibili.app.dynamic.v2.ThumbType[t.type]===void 0?t.type:u.bilibili.app.dynamic.v2.ThumbType[t.type]:t.type),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.DynThumbReq"},e}(),c.ThumbType=function(){let e={},l=Object.create(e);return l[e[0]="cancel"]=0,l[e[1]="thumb"]=1,l}(),c.DynFakeCardReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.content=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.DynFakeCardReq)return t;let i=new u.bilibili.app.dynamic.v2.DynFakeCardReq;return t.content!=null&&(i.content=String(t.content)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.content=""),t.content!=null&&t.hasOwnProperty("content")&&(n.content=t.content),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.DynFakeCardReq"},e}(),c.DynFakeCardReply=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.item=u.bilibili.app.dynamic.v2.DynamicItem.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.DynFakeCardReply)return t;let i=new u.bilibili.app.dynamic.v2.DynFakeCardReply;if(t.item!=null){if(typeof t.item!="object")throw TypeError(".bilibili.app.dynamic.v2.DynFakeCardReply.item: object expected");i.item=u.bilibili.app.dynamic.v2.DynamicItem.fromObject(t.item)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.item=null),t.item!=null&&t.hasOwnProperty("item")&&(n.item=u.bilibili.app.dynamic.v2.DynamicItem.toObject(t.item,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.DynFakeCardReply"},e}(),c.DynRcmdUpExchangeReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.uid=t.int64();break}case 2:{o.dislikeTs=t.int64();break}case 3:{o.from=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.DynRcmdUpExchangeReq)return t;let i=new u.bilibili.app.dynamic.v2.DynRcmdUpExchangeReq;return t.uid!=null&&(r.Long?(i.uid=r.Long.fromValue(t.uid)).unsigned=!1:typeof t.uid=="string"?i.uid=parseInt(t.uid,10):typeof t.uid=="number"?i.uid=t.uid:typeof t.uid=="object"&&(i.uid=new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber())),t.dislikeTs!=null&&(r.Long?(i.dislikeTs=r.Long.fromValue(t.dislikeTs)).unsigned=!1:typeof t.dislikeTs=="string"?i.dislikeTs=parseInt(t.dislikeTs,10):typeof t.dislikeTs=="number"?i.dislikeTs=t.dislikeTs:typeof t.dislikeTs=="object"&&(i.dislikeTs=new r.LongBits(t.dislikeTs.low>>>0,t.dislikeTs.high>>>0).toNumber())),t.from!=null&&(i.from=String(t.from)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.uid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.uid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.dislikeTs=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.dislikeTs=i.longs===String?"0":0;n.from=""}return t.uid!=null&&t.hasOwnProperty("uid")&&(typeof t.uid=="number"?n.uid=i.longs===String?String(t.uid):t.uid:n.uid=i.longs===String?r.Long.prototype.toString.call(t.uid):i.longs===Number?new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber():t.uid),t.dislikeTs!=null&&t.hasOwnProperty("dislikeTs")&&(typeof t.dislikeTs=="number"?n.dislikeTs=i.longs===String?String(t.dislikeTs):t.dislikeTs:n.dislikeTs=i.longs===String?r.Long.prototype.toString.call(t.dislikeTs):i.longs===Number?new r.LongBits(t.dislikeTs.low>>>0,t.dislikeTs.high>>>0).toNumber():t.dislikeTs),t.from!=null&&t.hasOwnProperty("from")&&(n.from=t.from),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.DynRcmdUpExchangeReq"},e}(),c.DynRcmdUpExchangeReply=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.unfollow=u.bilibili.app.dynamic.v2.Unfollow.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.DynRcmdUpExchangeReply)return t;let i=new u.bilibili.app.dynamic.v2.DynRcmdUpExchangeReply;if(t.unfollow!=null){if(typeof t.unfollow!="object")throw TypeError(".bilibili.app.dynamic.v2.DynRcmdUpExchangeReply.unfollow: object expected");i.unfollow=u.bilibili.app.dynamic.v2.Unfollow.fromObject(t.unfollow)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.unfollow=null),t.unfollow!=null&&t.hasOwnProperty("unfollow")&&(n.unfollow=u.bilibili.app.dynamic.v2.Unfollow.toObject(t.unfollow,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.DynRcmdUpExchangeReply"},e}(),c.DynAllPersonalReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.hostUid=t.int64();break}case 2:{o.offset=t.string();break}case 3:{o.page=t.int32();break}case 4:{o.isPreload=t.int32();break}case 5:{o.playurlParam=u.bilibili.app.dynamic.v2.PlayurlParam.decode(t,t.uint32());break}case 6:{o.localTime=t.int32();break}case 7:{o.footprint=t.string();break}case 8:{o.from=t.string();break}case 9:{o.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.decode(t,t.uint32());break}case 10:{o.personalExtra=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.DynAllPersonalReq)return t;let i=new u.bilibili.app.dynamic.v2.DynAllPersonalReq;if(t.hostUid!=null&&(r.Long?(i.hostUid=r.Long.fromValue(t.hostUid)).unsigned=!1:typeof t.hostUid=="string"?i.hostUid=parseInt(t.hostUid,10):typeof t.hostUid=="number"?i.hostUid=t.hostUid:typeof t.hostUid=="object"&&(i.hostUid=new r.LongBits(t.hostUid.low>>>0,t.hostUid.high>>>0).toNumber())),t.offset!=null&&(i.offset=String(t.offset)),t.page!=null&&(i.page=t.page|0),t.isPreload!=null&&(i.isPreload=t.isPreload|0),t.playurlParam!=null){if(typeof t.playurlParam!="object")throw TypeError(".bilibili.app.dynamic.v2.DynAllPersonalReq.playurlParam: object expected");i.playurlParam=u.bilibili.app.dynamic.v2.PlayurlParam.fromObject(t.playurlParam)}if(t.localTime!=null&&(i.localTime=t.localTime|0),t.footprint!=null&&(i.footprint=String(t.footprint)),t.from!=null&&(i.from=String(t.from)),t.playerArgs!=null){if(typeof t.playerArgs!="object")throw TypeError(".bilibili.app.dynamic.v2.DynAllPersonalReq.playerArgs: object expected");i.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.fromObject(t.playerArgs)}return t.personalExtra!=null&&(i.personalExtra=String(t.personalExtra)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.hostUid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.hostUid=i.longs===String?"0":0;n.offset="",n.page=0,n.isPreload=0,n.playurlParam=null,n.localTime=0,n.footprint="",n.from="",n.playerArgs=null,n.personalExtra=""}return t.hostUid!=null&&t.hasOwnProperty("hostUid")&&(typeof t.hostUid=="number"?n.hostUid=i.longs===String?String(t.hostUid):t.hostUid:n.hostUid=i.longs===String?r.Long.prototype.toString.call(t.hostUid):i.longs===Number?new r.LongBits(t.hostUid.low>>>0,t.hostUid.high>>>0).toNumber():t.hostUid),t.offset!=null&&t.hasOwnProperty("offset")&&(n.offset=t.offset),t.page!=null&&t.hasOwnProperty("page")&&(n.page=t.page),t.isPreload!=null&&t.hasOwnProperty("isPreload")&&(n.isPreload=t.isPreload),t.playurlParam!=null&&t.hasOwnProperty("playurlParam")&&(n.playurlParam=u.bilibili.app.dynamic.v2.PlayurlParam.toObject(t.playurlParam,i)),t.localTime!=null&&t.hasOwnProperty("localTime")&&(n.localTime=t.localTime),t.footprint!=null&&t.hasOwnProperty("footprint")&&(n.footprint=t.footprint),t.from!=null&&t.hasOwnProperty("from")&&(n.from=t.from),t.playerArgs!=null&&t.hasOwnProperty("playerArgs")&&(n.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.toObject(t.playerArgs,i)),t.personalExtra!=null&&t.hasOwnProperty("personalExtra")&&(n.personalExtra=t.personalExtra),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.DynAllPersonalReq"},e}(),c.DynAllPersonalReply=function(){function e(l){if(this.list=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.list&&o.list.length||(o.list=[]),o.list.push(u.bilibili.app.dynamic.v2.DynamicItem.decode(t,t.uint32()));break}case 2:{o.offset=t.string();break}case 3:{o.hasMore=t.bool();break}case 4:{o.readOffset=t.string();break}case 5:{o.relation=u.bilibili.app.dynamic.v2.Relation.decode(t,t.uint32());break}case 6:{o.additionUp=u.bilibili.app.dynamic.v2.TopAdditionUP.decode(t,t.uint32());break}case 7:{o.title=t.string();break}case 8:{o.titleSub=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.DynAllPersonalReply)return t;let i=new u.bilibili.app.dynamic.v2.DynAllPersonalReply;if(t.list){if(!Array.isArray(t.list))throw TypeError(".bilibili.app.dynamic.v2.DynAllPersonalReply.list: array expected");i.list=[];for(let n=0;n>>3){case 1:{o.up&&o.up.length||(o.up=[]),o.up.push(u.bilibili.app.dynamic.v2.AdditionUP.decode(t,t.uint32()));break}case 2:{o.hasFold=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.TopAdditionUP)return t;let i=new u.bilibili.app.dynamic.v2.TopAdditionUP;if(t.up){if(!Array.isArray(t.up))throw TypeError(".bilibili.app.dynamic.v2.TopAdditionUP.up: array expected");i.up=[];for(let n=0;n>>3){case 1:{o.hostUid=t.int64();break}case 2:{o.readOffset=t.string();break}case 3:{o.footprint=t.string();break}case 4:{o.personalExtra=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.DynAllUpdOffsetReq)return t;let i=new u.bilibili.app.dynamic.v2.DynAllUpdOffsetReq;return t.hostUid!=null&&(r.Long?(i.hostUid=r.Long.fromValue(t.hostUid)).unsigned=!1:typeof t.hostUid=="string"?i.hostUid=parseInt(t.hostUid,10):typeof t.hostUid=="number"?i.hostUid=t.hostUid:typeof t.hostUid=="object"&&(i.hostUid=new r.LongBits(t.hostUid.low>>>0,t.hostUid.high>>>0).toNumber())),t.readOffset!=null&&(i.readOffset=String(t.readOffset)),t.footprint!=null&&(i.footprint=String(t.footprint)),t.personalExtra!=null&&(i.personalExtra=String(t.personalExtra)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.hostUid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.hostUid=i.longs===String?"0":0;n.readOffset="",n.footprint="",n.personalExtra=""}return t.hostUid!=null&&t.hasOwnProperty("hostUid")&&(typeof t.hostUid=="number"?n.hostUid=i.longs===String?String(t.hostUid):t.hostUid:n.hostUid=i.longs===String?r.Long.prototype.toString.call(t.hostUid):i.longs===Number?new r.LongBits(t.hostUid.low>>>0,t.hostUid.high>>>0).toNumber():t.hostUid),t.readOffset!=null&&t.hasOwnProperty("readOffset")&&(n.readOffset=t.readOffset),t.footprint!=null&&t.hasOwnProperty("footprint")&&(n.footprint=t.footprint),t.personalExtra!=null&&t.hasOwnProperty("personalExtra")&&(n.personalExtra=t.personalExtra),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.DynAllUpdOffsetReq"},e}(),c.DynVoteReq=function(){function e(l){if(this.votes=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.voteId=t.int64();break}case 2:{if(o.votes&&o.votes.length||(o.votes=[]),(a&7)===2){let y=t.uint32()+t.pos;for(;t.pos>>0,t.voteId.high>>>0).toNumber())),t.votes){if(!Array.isArray(t.votes))throw TypeError(".bilibili.app.dynamic.v2.DynVoteReq.votes: array expected");i.votes=[];for(let n=0;n>>0,t.votes[n].high>>>0).toNumber())}switch(t.status){default:if(typeof t.status=="number"){i.status=t.status;break}break;case"normal":case 0:i.status=0;break;case"anonymous":case 1:i.status=1;break}return t.dynamicId!=null&&(i.dynamicId=String(t.dynamicId)),t.share!=null&&(i.share=!!t.share),i},e.toObject=function(t,i){i||(i={});let n={};if((i.arrays||i.defaults)&&(n.votes=[]),i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.voteId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.voteId=i.longs===String?"0":0;n.status=i.enums===String?"normal":0,n.dynamicId="",n.share=!1}if(t.voteId!=null&&t.hasOwnProperty("voteId")&&(typeof t.voteId=="number"?n.voteId=i.longs===String?String(t.voteId):t.voteId:n.voteId=i.longs===String?r.Long.prototype.toString.call(t.voteId):i.longs===Number?new r.LongBits(t.voteId.low>>>0,t.voteId.high>>>0).toNumber():t.voteId),t.votes&&t.votes.length){n.votes=[];for(let o=0;o>>0,t.votes[o].high>>>0).toNumber():t.votes[o]}return t.status!=null&&t.hasOwnProperty("status")&&(n.status=i.enums===String?u.bilibili.app.dynamic.v2.VoteStatus[t.status]===void 0?t.status:u.bilibili.app.dynamic.v2.VoteStatus[t.status]:t.status),t.dynamicId!=null&&t.hasOwnProperty("dynamicId")&&(n.dynamicId=t.dynamicId),t.share!=null&&t.hasOwnProperty("share")&&(n.share=t.share),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.DynVoteReq"},e}(),c.VoteStatus=function(){let e={},l=Object.create(e);return l[e[0]="normal"]=0,l[e[1]="anonymous"]=1,l}(),c.DynVoteReply=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.item=u.bilibili.app.dynamic.v2.AdditionVote2.decode(t,t.uint32());break}case 2:{o.toast=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.DynVoteReply)return t;let i=new u.bilibili.app.dynamic.v2.DynVoteReply;if(t.item!=null){if(typeof t.item!="object")throw TypeError(".bilibili.app.dynamic.v2.DynVoteReply.item: object expected");i.item=u.bilibili.app.dynamic.v2.AdditionVote2.fromObject(t.item)}return t.toast!=null&&(i.toast=String(t.toast)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.item=null,n.toast=""),t.item!=null&&t.hasOwnProperty("item")&&(n.item=u.bilibili.app.dynamic.v2.AdditionVote2.toObject(t.item,i)),t.toast!=null&&t.hasOwnProperty("toast")&&(n.toast=t.toast),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.DynVoteReply"},e}(),c.MixUpListLiveItem=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.status=t.bool();break}case 2:{o.roomId=t.int64();break}case 3:{o.uri=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.MixUpListLiveItem)return t;let i=new u.bilibili.app.dynamic.v2.MixUpListLiveItem;return t.status!=null&&(i.status=!!t.status),t.roomId!=null&&(r.Long?(i.roomId=r.Long.fromValue(t.roomId)).unsigned=!1:typeof t.roomId=="string"?i.roomId=parseInt(t.roomId,10):typeof t.roomId=="number"?i.roomId=t.roomId:typeof t.roomId=="object"&&(i.roomId=new r.LongBits(t.roomId.low>>>0,t.roomId.high>>>0).toNumber())),t.uri!=null&&(i.uri=String(t.uri)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.status=!1,r.Long){let o=new r.Long(0,0,!1);n.roomId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.roomId=i.longs===String?"0":0;n.uri=""}return t.status!=null&&t.hasOwnProperty("status")&&(n.status=t.status),t.roomId!=null&&t.hasOwnProperty("roomId")&&(typeof t.roomId=="number"?n.roomId=i.longs===String?String(t.roomId):t.roomId:n.roomId=i.longs===String?r.Long.prototype.toString.call(t.roomId):i.longs===Number?new r.LongBits(t.roomId.low>>>0,t.roomId.high>>>0).toNumber():t.roomId),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.MixUpListLiveItem"},e}(),c.MixUpListItem=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.uid=t.int64();break}case 2:{o.specialAttention=t.int32();break}case 3:{o.reddotState=t.int32();break}case 4:{o.liveInfo=u.bilibili.app.dynamic.v2.MixUpListLiveItem.decode(t,t.uint32());break}case 5:{o.name=t.string();break}case 6:{o.face=t.string();break}case 7:{o.official=u.bilibili.app.dynamic.v2.OfficialVerify.decode(t,t.uint32());break}case 8:{o.vip=u.bilibili.app.dynamic.v2.VipInfo.decode(t,t.uint32());break}case 9:{o.relation=u.bilibili.app.dynamic.v2.Relation.decode(t,t.uint32());break}case 10:{o.premiereState=t.int32();break}case 11:{o.uri=t.string();break}case 12:{o.avatar=u.bilibili.dagw.component.avatar.v1.AvatarItem.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.MixUpListItem)return t;let i=new u.bilibili.app.dynamic.v2.MixUpListItem;if(t.uid!=null&&(r.Long?(i.uid=r.Long.fromValue(t.uid)).unsigned=!1:typeof t.uid=="string"?i.uid=parseInt(t.uid,10):typeof t.uid=="number"?i.uid=t.uid:typeof t.uid=="object"&&(i.uid=new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber())),t.specialAttention!=null&&(i.specialAttention=t.specialAttention|0),t.reddotState!=null&&(i.reddotState=t.reddotState|0),t.liveInfo!=null){if(typeof t.liveInfo!="object")throw TypeError(".bilibili.app.dynamic.v2.MixUpListItem.liveInfo: object expected");i.liveInfo=u.bilibili.app.dynamic.v2.MixUpListLiveItem.fromObject(t.liveInfo)}if(t.name!=null&&(i.name=String(t.name)),t.face!=null&&(i.face=String(t.face)),t.official!=null){if(typeof t.official!="object")throw TypeError(".bilibili.app.dynamic.v2.MixUpListItem.official: object expected");i.official=u.bilibili.app.dynamic.v2.OfficialVerify.fromObject(t.official)}if(t.vip!=null){if(typeof t.vip!="object")throw TypeError(".bilibili.app.dynamic.v2.MixUpListItem.vip: object expected");i.vip=u.bilibili.app.dynamic.v2.VipInfo.fromObject(t.vip)}if(t.relation!=null){if(typeof t.relation!="object")throw TypeError(".bilibili.app.dynamic.v2.MixUpListItem.relation: object expected");i.relation=u.bilibili.app.dynamic.v2.Relation.fromObject(t.relation)}if(t.premiereState!=null&&(i.premiereState=t.premiereState|0),t.uri!=null&&(i.uri=String(t.uri)),t.avatar!=null){if(typeof t.avatar!="object")throw TypeError(".bilibili.app.dynamic.v2.MixUpListItem.avatar: object expected");i.avatar=u.bilibili.dagw.component.avatar.v1.AvatarItem.fromObject(t.avatar)}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.uid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.uid=i.longs===String?"0":0;n.specialAttention=0,n.reddotState=0,n.liveInfo=null,n.name="",n.face="",n.official=null,n.vip=null,n.relation=null,n.premiereState=0,n.uri="",n.avatar=null}return t.uid!=null&&t.hasOwnProperty("uid")&&(typeof t.uid=="number"?n.uid=i.longs===String?String(t.uid):t.uid:n.uid=i.longs===String?r.Long.prototype.toString.call(t.uid):i.longs===Number?new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber():t.uid),t.specialAttention!=null&&t.hasOwnProperty("specialAttention")&&(n.specialAttention=t.specialAttention),t.reddotState!=null&&t.hasOwnProperty("reddotState")&&(n.reddotState=t.reddotState),t.liveInfo!=null&&t.hasOwnProperty("liveInfo")&&(n.liveInfo=u.bilibili.app.dynamic.v2.MixUpListLiveItem.toObject(t.liveInfo,i)),t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),t.face!=null&&t.hasOwnProperty("face")&&(n.face=t.face),t.official!=null&&t.hasOwnProperty("official")&&(n.official=u.bilibili.app.dynamic.v2.OfficialVerify.toObject(t.official,i)),t.vip!=null&&t.hasOwnProperty("vip")&&(n.vip=u.bilibili.app.dynamic.v2.VipInfo.toObject(t.vip,i)),t.relation!=null&&t.hasOwnProperty("relation")&&(n.relation=u.bilibili.app.dynamic.v2.Relation.toObject(t.relation,i)),t.premiereState!=null&&t.hasOwnProperty("premiereState")&&(n.premiereState=t.premiereState),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),t.avatar!=null&&t.hasOwnProperty("avatar")&&(n.avatar=u.bilibili.dagw.component.avatar.v1.AvatarItem.toObject(t.avatar,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.MixUpListItem"},e}(),c.DynMixUpListViewMoreReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.sortType=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.DynMixUpListViewMoreReq)return t;let i=new u.bilibili.app.dynamic.v2.DynMixUpListViewMoreReq;return t.sortType!=null&&(i.sortType=t.sortType|0),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.sortType=0),t.sortType!=null&&t.hasOwnProperty("sortType")&&(n.sortType=t.sortType),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.DynMixUpListViewMoreReq"},e}(),c.SortType=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.sortType=t.int32();break}case 2:{o.sortTypeName=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.SortType)return t;let i=new u.bilibili.app.dynamic.v2.SortType;return t.sortType!=null&&(i.sortType=t.sortType|0),t.sortTypeName!=null&&(i.sortTypeName=String(t.sortTypeName)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.sortType=0,n.sortTypeName=""),t.sortType!=null&&t.hasOwnProperty("sortType")&&(n.sortType=t.sortType),t.sortTypeName!=null&&t.hasOwnProperty("sortTypeName")&&(n.sortTypeName=t.sortTypeName),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.SortType"},e}(),c.DynMixUpListViewMoreReply=function(){function e(l){if(this.items=[],this.sortTypes=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.items&&o.items.length||(o.items=[]),o.items.push(u.bilibili.app.dynamic.v2.MixUpListItem.decode(t,t.uint32()));break}case 2:{o.searchDefaultText=t.string();break}case 3:{o.sortTypes&&o.sortTypes.length||(o.sortTypes=[]),o.sortTypes.push(u.bilibili.app.dynamic.v2.SortType.decode(t,t.uint32()));break}case 4:{o.showMoreSortTypes=t.bool();break}case 5:{o.defaultSortType=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.DynMixUpListViewMoreReply)return t;let i=new u.bilibili.app.dynamic.v2.DynMixUpListViewMoreReply;if(t.items){if(!Array.isArray(t.items))throw TypeError(".bilibili.app.dynamic.v2.DynMixUpListViewMoreReply.items: array expected");i.items=[];for(let n=0;n>>3){case 1:{o.name=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.DynMixUpListSearchReq)return t;let i=new u.bilibili.app.dynamic.v2.DynMixUpListSearchReq;return t.name!=null&&(i.name=String(t.name)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.name=""),t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.DynMixUpListSearchReq"},e}(),c.DynMixUpListSearchReply=function(){function e(l){if(this.items=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.items&&o.items.length||(o.items=[]),o.items.push(u.bilibili.app.dynamic.v2.MixUpListItem.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.DynMixUpListSearchReply)return t;let i=new u.bilibili.app.dynamic.v2.DynMixUpListSearchReply;if(t.items){if(!Array.isArray(t.items))throw TypeError(".bilibili.app.dynamic.v2.DynMixUpListSearchReply.items: array expected");i.items=[];for(let n=0;n>>3){case 1:{o.historyOffset=t.string();break}case 2:{o.page=t.int32();break}case 3:{o.from=t.string();break}case 4:{o.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.decode(t,t.uint32());break}case 5:{o.localTime=t.int32();break}case 6:{o.fromType=t.int32();break}case 7:{o.fakeUid=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.DynLightReq)return t;let i=new u.bilibili.app.dynamic.v2.DynLightReq;if(t.historyOffset!=null&&(i.historyOffset=String(t.historyOffset)),t.page!=null&&(i.page=t.page|0),t.from!=null&&(i.from=String(t.from)),t.playerArgs!=null){if(typeof t.playerArgs!="object")throw TypeError(".bilibili.app.dynamic.v2.DynLightReq.playerArgs: object expected");i.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.fromObject(t.playerArgs)}switch(t.localTime!=null&&(i.localTime=t.localTime|0),t.fromType){default:if(typeof t.fromType=="number"){i.fromType=t.fromType;break}break;case"from_login":case 0:i.fromType=0;break;case"from_unlogin":case 1:i.fromType=1;break}return t.fakeUid!=null&&(r.Long?(i.fakeUid=r.Long.fromValue(t.fakeUid)).unsigned=!1:typeof t.fakeUid=="string"?i.fakeUid=parseInt(t.fakeUid,10):typeof t.fakeUid=="number"?i.fakeUid=t.fakeUid:typeof t.fakeUid=="object"&&(i.fakeUid=new r.LongBits(t.fakeUid.low>>>0,t.fakeUid.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(n.historyOffset="",n.page=0,n.from="",n.playerArgs=null,n.localTime=0,n.fromType=i.enums===String?"from_login":0,r.Long){let o=new r.Long(0,0,!1);n.fakeUid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.fakeUid=i.longs===String?"0":0;return t.historyOffset!=null&&t.hasOwnProperty("historyOffset")&&(n.historyOffset=t.historyOffset),t.page!=null&&t.hasOwnProperty("page")&&(n.page=t.page),t.from!=null&&t.hasOwnProperty("from")&&(n.from=t.from),t.playerArgs!=null&&t.hasOwnProperty("playerArgs")&&(n.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.toObject(t.playerArgs,i)),t.localTime!=null&&t.hasOwnProperty("localTime")&&(n.localTime=t.localTime),t.fromType!=null&&t.hasOwnProperty("fromType")&&(n.fromType=i.enums===String?u.bilibili.app.dynamic.v2.LightFromType[t.fromType]===void 0?t.fromType:u.bilibili.app.dynamic.v2.LightFromType[t.fromType]:t.fromType),t.fakeUid!=null&&t.hasOwnProperty("fakeUid")&&(typeof t.fakeUid=="number"?n.fakeUid=i.longs===String?String(t.fakeUid):t.fakeUid:n.fakeUid=i.longs===String?r.Long.prototype.toString.call(t.fakeUid):i.longs===Number?new r.LongBits(t.fakeUid.low>>>0,t.fakeUid.high>>>0).toNumber():t.fakeUid),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.DynLightReq"},e}(),c.LightFromType=function(){let e={},l=Object.create(e);return l[e[0]="from_login"]=0,l[e[1]="from_unlogin"]=1,l}(),c.DynLightReply=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.dynamicList=u.bilibili.app.dynamic.v2.DynamicList.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.DynLightReply)return t;let i=new u.bilibili.app.dynamic.v2.DynLightReply;if(t.dynamicList!=null){if(typeof t.dynamicList!="object")throw TypeError(".bilibili.app.dynamic.v2.DynLightReply.dynamicList: object expected");i.dynamicList=u.bilibili.app.dynamic.v2.DynamicList.fromObject(t.dynamicList)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.dynamicList=null),t.dynamicList!=null&&t.hasOwnProperty("dynamicList")&&(n.dynamicList=u.bilibili.app.dynamic.v2.DynamicList.toObject(t.dynamicList,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.DynLightReply"},e}(),c.DynDetailReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.uid=t.int64();break}case 2:{o.dynamicId=t.string();break}case 3:{o.dynType=t.int64();break}case 4:{o.rid=t.int64();break}case 5:{o.adParam=u.bilibili.app.dynamic.v2.AdParam.decode(t,t.uint32());break}case 6:{o.from=t.string();break}case 7:{o.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.decode(t,t.uint32());break}case 8:{o.shareId=t.string();break}case 9:{o.shareMode=t.int32();break}case 10:{o.localTime=t.int32();break}case 11:{o.pattern=t.string();break}case 12:{o.config=u.bilibili.app.dynamic.v2.Config.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.DynDetailReq)return t;let i=new u.bilibili.app.dynamic.v2.DynDetailReq;if(t.uid!=null&&(r.Long?(i.uid=r.Long.fromValue(t.uid)).unsigned=!1:typeof t.uid=="string"?i.uid=parseInt(t.uid,10):typeof t.uid=="number"?i.uid=t.uid:typeof t.uid=="object"&&(i.uid=new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber())),t.dynamicId!=null&&(i.dynamicId=String(t.dynamicId)),t.dynType!=null&&(r.Long?(i.dynType=r.Long.fromValue(t.dynType)).unsigned=!1:typeof t.dynType=="string"?i.dynType=parseInt(t.dynType,10):typeof t.dynType=="number"?i.dynType=t.dynType:typeof t.dynType=="object"&&(i.dynType=new r.LongBits(t.dynType.low>>>0,t.dynType.high>>>0).toNumber())),t.rid!=null&&(r.Long?(i.rid=r.Long.fromValue(t.rid)).unsigned=!1:typeof t.rid=="string"?i.rid=parseInt(t.rid,10):typeof t.rid=="number"?i.rid=t.rid:typeof t.rid=="object"&&(i.rid=new r.LongBits(t.rid.low>>>0,t.rid.high>>>0).toNumber())),t.adParam!=null){if(typeof t.adParam!="object")throw TypeError(".bilibili.app.dynamic.v2.DynDetailReq.adParam: object expected");i.adParam=u.bilibili.app.dynamic.v2.AdParam.fromObject(t.adParam)}if(t.from!=null&&(i.from=String(t.from)),t.playerArgs!=null){if(typeof t.playerArgs!="object")throw TypeError(".bilibili.app.dynamic.v2.DynDetailReq.playerArgs: object expected");i.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.fromObject(t.playerArgs)}if(t.shareId!=null&&(i.shareId=String(t.shareId)),t.shareMode!=null&&(i.shareMode=t.shareMode|0),t.localTime!=null&&(i.localTime=t.localTime|0),t.pattern!=null&&(i.pattern=String(t.pattern)),t.config!=null){if(typeof t.config!="object")throw TypeError(".bilibili.app.dynamic.v2.DynDetailReq.config: object expected");i.config=u.bilibili.app.dynamic.v2.Config.fromObject(t.config)}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.uid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.uid=i.longs===String?"0":0;if(n.dynamicId="",r.Long){let o=new r.Long(0,0,!1);n.dynType=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.dynType=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.rid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.rid=i.longs===String?"0":0;n.adParam=null,n.from="",n.playerArgs=null,n.shareId="",n.shareMode=0,n.localTime=0,n.pattern="",n.config=null}return t.uid!=null&&t.hasOwnProperty("uid")&&(typeof t.uid=="number"?n.uid=i.longs===String?String(t.uid):t.uid:n.uid=i.longs===String?r.Long.prototype.toString.call(t.uid):i.longs===Number?new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber():t.uid),t.dynamicId!=null&&t.hasOwnProperty("dynamicId")&&(n.dynamicId=t.dynamicId),t.dynType!=null&&t.hasOwnProperty("dynType")&&(typeof t.dynType=="number"?n.dynType=i.longs===String?String(t.dynType):t.dynType:n.dynType=i.longs===String?r.Long.prototype.toString.call(t.dynType):i.longs===Number?new r.LongBits(t.dynType.low>>>0,t.dynType.high>>>0).toNumber():t.dynType),t.rid!=null&&t.hasOwnProperty("rid")&&(typeof t.rid=="number"?n.rid=i.longs===String?String(t.rid):t.rid:n.rid=i.longs===String?r.Long.prototype.toString.call(t.rid):i.longs===Number?new r.LongBits(t.rid.low>>>0,t.rid.high>>>0).toNumber():t.rid),t.adParam!=null&&t.hasOwnProperty("adParam")&&(n.adParam=u.bilibili.app.dynamic.v2.AdParam.toObject(t.adParam,i)),t.from!=null&&t.hasOwnProperty("from")&&(n.from=t.from),t.playerArgs!=null&&t.hasOwnProperty("playerArgs")&&(n.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.toObject(t.playerArgs,i)),t.shareId!=null&&t.hasOwnProperty("shareId")&&(n.shareId=t.shareId),t.shareMode!=null&&t.hasOwnProperty("shareMode")&&(n.shareMode=t.shareMode),t.localTime!=null&&t.hasOwnProperty("localTime")&&(n.localTime=t.localTime),t.pattern!=null&&t.hasOwnProperty("pattern")&&(n.pattern=t.pattern),t.config!=null&&t.hasOwnProperty("config")&&(n.config=u.bilibili.app.dynamic.v2.Config.toObject(t.config,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.DynDetailReq"},e}(),c.DynDetailReply=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.item=u.bilibili.app.dynamic.v2.DynamicItem.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.DynDetailReply)return t;let i=new u.bilibili.app.dynamic.v2.DynDetailReply;if(t.item!=null){if(typeof t.item!="object")throw TypeError(".bilibili.app.dynamic.v2.DynDetailReply.item: object expected");i.item=u.bilibili.app.dynamic.v2.DynamicItem.fromObject(t.item)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.item=null),t.item!=null&&t.hasOwnProperty("item")&&(n.item=u.bilibili.app.dynamic.v2.DynamicItem.toObject(t.item,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.DynDetailReply"},e}(),c.LikeListReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.dynamicId=t.string();break}case 2:{o.dynType=t.int64();break}case 3:{o.rid=t.int64();break}case 4:{o.uidOffset=t.int64();break}case 5:{o.page=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.LikeListReq)return t;let i=new u.bilibili.app.dynamic.v2.LikeListReq;return t.dynamicId!=null&&(i.dynamicId=String(t.dynamicId)),t.dynType!=null&&(r.Long?(i.dynType=r.Long.fromValue(t.dynType)).unsigned=!1:typeof t.dynType=="string"?i.dynType=parseInt(t.dynType,10):typeof t.dynType=="number"?i.dynType=t.dynType:typeof t.dynType=="object"&&(i.dynType=new r.LongBits(t.dynType.low>>>0,t.dynType.high>>>0).toNumber())),t.rid!=null&&(r.Long?(i.rid=r.Long.fromValue(t.rid)).unsigned=!1:typeof t.rid=="string"?i.rid=parseInt(t.rid,10):typeof t.rid=="number"?i.rid=t.rid:typeof t.rid=="object"&&(i.rid=new r.LongBits(t.rid.low>>>0,t.rid.high>>>0).toNumber())),t.uidOffset!=null&&(r.Long?(i.uidOffset=r.Long.fromValue(t.uidOffset)).unsigned=!1:typeof t.uidOffset=="string"?i.uidOffset=parseInt(t.uidOffset,10):typeof t.uidOffset=="number"?i.uidOffset=t.uidOffset:typeof t.uidOffset=="object"&&(i.uidOffset=new r.LongBits(t.uidOffset.low>>>0,t.uidOffset.high>>>0).toNumber())),t.page!=null&&(i.page=t.page|0),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.dynamicId="",r.Long){let o=new r.Long(0,0,!1);n.dynType=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.dynType=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.rid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.rid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.uidOffset=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.uidOffset=i.longs===String?"0":0;n.page=0}return t.dynamicId!=null&&t.hasOwnProperty("dynamicId")&&(n.dynamicId=t.dynamicId),t.dynType!=null&&t.hasOwnProperty("dynType")&&(typeof t.dynType=="number"?n.dynType=i.longs===String?String(t.dynType):t.dynType:n.dynType=i.longs===String?r.Long.prototype.toString.call(t.dynType):i.longs===Number?new r.LongBits(t.dynType.low>>>0,t.dynType.high>>>0).toNumber():t.dynType),t.rid!=null&&t.hasOwnProperty("rid")&&(typeof t.rid=="number"?n.rid=i.longs===String?String(t.rid):t.rid:n.rid=i.longs===String?r.Long.prototype.toString.call(t.rid):i.longs===Number?new r.LongBits(t.rid.low>>>0,t.rid.high>>>0).toNumber():t.rid),t.uidOffset!=null&&t.hasOwnProperty("uidOffset")&&(typeof t.uidOffset=="number"?n.uidOffset=i.longs===String?String(t.uidOffset):t.uidOffset:n.uidOffset=i.longs===String?r.Long.prototype.toString.call(t.uidOffset):i.longs===Number?new r.LongBits(t.uidOffset.low>>>0,t.uidOffset.high>>>0).toNumber():t.uidOffset),t.page!=null&&t.hasOwnProperty("page")&&(n.page=t.page),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.LikeListReq"},e}(),c.LikeListReply=function(){function e(l){if(this.list=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.list&&o.list.length||(o.list=[]),o.list.push(u.bilibili.app.dynamic.v2.ModuleAuthor.decode(t,t.uint32()));break}case 2:{o.hasMore=t.bool();break}case 3:{o.totalCount=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.LikeListReply)return t;let i=new u.bilibili.app.dynamic.v2.LikeListReply;if(t.list){if(!Array.isArray(t.list))throw TypeError(".bilibili.app.dynamic.v2.LikeListReply.list: array expected");i.list=[];for(let n=0;n>>0,t.totalCount.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if((i.arrays||i.defaults)&&(n.list=[]),i.defaults)if(n.hasMore=!1,r.Long){let o=new r.Long(0,0,!1);n.totalCount=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.totalCount=i.longs===String?"0":0;if(t.list&&t.list.length){n.list=[];for(let o=0;o>>0,t.totalCount.high>>>0).toNumber():t.totalCount),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.LikeListReply"},e}(),c.RepostListReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.dynamicId=t.string();break}case 2:{o.dynType=t.int64();break}case 3:{o.rid=t.int64();break}case 4:{o.offset=t.string();break}case 5:{o.from=t.string();break}case 6:{o.repostType=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.RepostListReq)return t;let i=new u.bilibili.app.dynamic.v2.RepostListReq;switch(t.dynamicId!=null&&(i.dynamicId=String(t.dynamicId)),t.dynType!=null&&(r.Long?(i.dynType=r.Long.fromValue(t.dynType)).unsigned=!1:typeof t.dynType=="string"?i.dynType=parseInt(t.dynType,10):typeof t.dynType=="number"?i.dynType=t.dynType:typeof t.dynType=="object"&&(i.dynType=new r.LongBits(t.dynType.low>>>0,t.dynType.high>>>0).toNumber())),t.rid!=null&&(r.Long?(i.rid=r.Long.fromValue(t.rid)).unsigned=!1:typeof t.rid=="string"?i.rid=parseInt(t.rid,10):typeof t.rid=="number"?i.rid=t.rid:typeof t.rid=="object"&&(i.rid=new r.LongBits(t.rid.low>>>0,t.rid.high>>>0).toNumber())),t.offset!=null&&(i.offset=String(t.offset)),t.from!=null&&(i.from=String(t.from)),t.repostType){default:if(typeof t.repostType=="number"){i.repostType=t.repostType;break}break;case"repost_hot":case 0:i.repostType=0;break;case"repost_general":case 1:i.repostType=1;break}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.dynamicId="",r.Long){let o=new r.Long(0,0,!1);n.dynType=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.dynType=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.rid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.rid=i.longs===String?"0":0;n.offset="",n.from="",n.repostType=i.enums===String?"repost_hot":0}return t.dynamicId!=null&&t.hasOwnProperty("dynamicId")&&(n.dynamicId=t.dynamicId),t.dynType!=null&&t.hasOwnProperty("dynType")&&(typeof t.dynType=="number"?n.dynType=i.longs===String?String(t.dynType):t.dynType:n.dynType=i.longs===String?r.Long.prototype.toString.call(t.dynType):i.longs===Number?new r.LongBits(t.dynType.low>>>0,t.dynType.high>>>0).toNumber():t.dynType),t.rid!=null&&t.hasOwnProperty("rid")&&(typeof t.rid=="number"?n.rid=i.longs===String?String(t.rid):t.rid:n.rid=i.longs===String?r.Long.prototype.toString.call(t.rid):i.longs===Number?new r.LongBits(t.rid.low>>>0,t.rid.high>>>0).toNumber():t.rid),t.offset!=null&&t.hasOwnProperty("offset")&&(n.offset=t.offset),t.from!=null&&t.hasOwnProperty("from")&&(n.from=t.from),t.repostType!=null&&t.hasOwnProperty("repostType")&&(n.repostType=i.enums===String?u.bilibili.app.dynamic.v2.RepostType[t.repostType]===void 0?t.repostType:u.bilibili.app.dynamic.v2.RepostType[t.repostType]:t.repostType),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.RepostListReq"},e}(),c.RepostListRsp=function(){function e(l){if(this.list=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.list&&o.list.length||(o.list=[]),o.list.push(u.bilibili.app.dynamic.v2.DynamicItem.decode(t,t.uint32()));break}case 2:{o.offset=t.string();break}case 3:{o.hasMore=t.bool();break}case 4:{o.totalCount=t.int64();break}case 5:{o.repostType=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.RepostListRsp)return t;let i=new u.bilibili.app.dynamic.v2.RepostListRsp;if(t.list){if(!Array.isArray(t.list))throw TypeError(".bilibili.app.dynamic.v2.RepostListRsp.list: array expected");i.list=[];for(let n=0;n>>0,t.totalCount.high>>>0).toNumber())),t.repostType){default:if(typeof t.repostType=="number"){i.repostType=t.repostType;break}break;case"repost_hot":case 0:i.repostType=0;break;case"repost_general":case 1:i.repostType=1;break}return i},e.toObject=function(t,i){i||(i={});let n={};if((i.arrays||i.defaults)&&(n.list=[]),i.defaults){if(n.offset="",n.hasMore=!1,r.Long){let o=new r.Long(0,0,!1);n.totalCount=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.totalCount=i.longs===String?"0":0;n.repostType=i.enums===String?"repost_hot":0}if(t.list&&t.list.length){n.list=[];for(let o=0;o>>0,t.totalCount.high>>>0).toNumber():t.totalCount),t.repostType!=null&&t.hasOwnProperty("repostType")&&(n.repostType=i.enums===String?u.bilibili.app.dynamic.v2.RepostType[t.repostType]===void 0?t.repostType:u.bilibili.app.dynamic.v2.RepostType[t.repostType]:t.repostType),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.RepostListRsp"},e}(),c.RepostType=function(){let e={},l=Object.create(e);return l[e[0]="repost_hot"]=0,l[e[1]="repost_general"]=1,l}(),c.DynSpaceReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.hostUid=t.int64();break}case 2:{o.historyOffset=t.string();break}case 3:{o.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.decode(t,t.uint32());break}case 4:{o.localTime=t.int32();break}case 5:{o.page=t.int64();break}case 6:{o.from=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.DynSpaceReq)return t;let i=new u.bilibili.app.dynamic.v2.DynSpaceReq;if(t.hostUid!=null&&(r.Long?(i.hostUid=r.Long.fromValue(t.hostUid)).unsigned=!1:typeof t.hostUid=="string"?i.hostUid=parseInt(t.hostUid,10):typeof t.hostUid=="number"?i.hostUid=t.hostUid:typeof t.hostUid=="object"&&(i.hostUid=new r.LongBits(t.hostUid.low>>>0,t.hostUid.high>>>0).toNumber())),t.historyOffset!=null&&(i.historyOffset=String(t.historyOffset)),t.playerArgs!=null){if(typeof t.playerArgs!="object")throw TypeError(".bilibili.app.dynamic.v2.DynSpaceReq.playerArgs: object expected");i.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.fromObject(t.playerArgs)}return t.localTime!=null&&(i.localTime=t.localTime|0),t.page!=null&&(r.Long?(i.page=r.Long.fromValue(t.page)).unsigned=!1:typeof t.page=="string"?i.page=parseInt(t.page,10):typeof t.page=="number"?i.page=t.page:typeof t.page=="object"&&(i.page=new r.LongBits(t.page.low>>>0,t.page.high>>>0).toNumber())),t.from!=null&&(i.from=String(t.from)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.hostUid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.hostUid=i.longs===String?"0":0;if(n.historyOffset="",n.playerArgs=null,n.localTime=0,r.Long){let o=new r.Long(0,0,!1);n.page=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.page=i.longs===String?"0":0;n.from=""}return t.hostUid!=null&&t.hasOwnProperty("hostUid")&&(typeof t.hostUid=="number"?n.hostUid=i.longs===String?String(t.hostUid):t.hostUid:n.hostUid=i.longs===String?r.Long.prototype.toString.call(t.hostUid):i.longs===Number?new r.LongBits(t.hostUid.low>>>0,t.hostUid.high>>>0).toNumber():t.hostUid),t.historyOffset!=null&&t.hasOwnProperty("historyOffset")&&(n.historyOffset=t.historyOffset),t.playerArgs!=null&&t.hasOwnProperty("playerArgs")&&(n.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.toObject(t.playerArgs,i)),t.localTime!=null&&t.hasOwnProperty("localTime")&&(n.localTime=t.localTime),t.page!=null&&t.hasOwnProperty("page")&&(typeof t.page=="number"?n.page=i.longs===String?String(t.page):t.page:n.page=i.longs===String?r.Long.prototype.toString.call(t.page):i.longs===Number?new r.LongBits(t.page.low>>>0,t.page.high>>>0).toNumber():t.page),t.from!=null&&t.hasOwnProperty("from")&&(n.from=t.from),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.DynSpaceReq"},e}(),c.DynSpaceRsp=function(){function e(l){if(this.list=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.list&&o.list.length||(o.list=[]),o.list.push(u.bilibili.app.dynamic.v2.DynamicItem.decode(t,t.uint32()));break}case 2:{o.historyOffset=t.string();break}case 3:{o.hasMore=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.DynSpaceRsp)return t;let i=new u.bilibili.app.dynamic.v2.DynSpaceRsp;if(t.list){if(!Array.isArray(t.list))throw TypeError(".bilibili.app.dynamic.v2.DynSpaceRsp.list: array expected");i.list=[];for(let n=0;n>>3){case 1:{o.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.decode(t,t.uint32());break}case 2:{o.localTime=t.int32();break}case 3:{o.fakeUid=t.int64();break}case 4:{o.isRefresh=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.DynRcmdReq)return t;let i=new u.bilibili.app.dynamic.v2.DynRcmdReq;if(t.playerArgs!=null){if(typeof t.playerArgs!="object")throw TypeError(".bilibili.app.dynamic.v2.DynRcmdReq.playerArgs: object expected");i.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.fromObject(t.playerArgs)}return t.localTime!=null&&(i.localTime=t.localTime|0),t.fakeUid!=null&&(r.Long?(i.fakeUid=r.Long.fromValue(t.fakeUid)).unsigned=!1:typeof t.fakeUid=="string"?i.fakeUid=parseInt(t.fakeUid,10):typeof t.fakeUid=="number"?i.fakeUid=t.fakeUid:typeof t.fakeUid=="object"&&(i.fakeUid=new r.LongBits(t.fakeUid.low>>>0,t.fakeUid.high>>>0).toNumber())),t.isRefresh!=null&&(i.isRefresh=!!t.isRefresh),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.playerArgs=null,n.localTime=0,r.Long){let o=new r.Long(0,0,!1);n.fakeUid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.fakeUid=i.longs===String?"0":0;n.isRefresh=!1}return t.playerArgs!=null&&t.hasOwnProperty("playerArgs")&&(n.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.toObject(t.playerArgs,i)),t.localTime!=null&&t.hasOwnProperty("localTime")&&(n.localTime=t.localTime),t.fakeUid!=null&&t.hasOwnProperty("fakeUid")&&(typeof t.fakeUid=="number"?n.fakeUid=i.longs===String?String(t.fakeUid):t.fakeUid:n.fakeUid=i.longs===String?r.Long.prototype.toString.call(t.fakeUid):i.longs===Number?new r.LongBits(t.fakeUid.low>>>0,t.fakeUid.high>>>0).toNumber():t.fakeUid),t.isRefresh!=null&&t.hasOwnProperty("isRefresh")&&(n.isRefresh=t.isRefresh),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.DynRcmdReq"},e}(),c.DynRcmdReply=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.regionRcmd=u.bilibili.app.dynamic.v2.DynRegionRcmd.decode(t,t.uint32());break}case 2:{o.dynamicList=u.bilibili.app.dynamic.v2.DynamicList.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.DynRcmdReply)return t;let i=new u.bilibili.app.dynamic.v2.DynRcmdReply;if(t.regionRcmd!=null){if(typeof t.regionRcmd!="object")throw TypeError(".bilibili.app.dynamic.v2.DynRcmdReply.regionRcmd: object expected");i.regionRcmd=u.bilibili.app.dynamic.v2.DynRegionRcmd.fromObject(t.regionRcmd)}if(t.dynamicList!=null){if(typeof t.dynamicList!="object")throw TypeError(".bilibili.app.dynamic.v2.DynRcmdReply.dynamicList: object expected");i.dynamicList=u.bilibili.app.dynamic.v2.DynamicList.fromObject(t.dynamicList)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.regionRcmd=null,n.dynamicList=null),t.regionRcmd!=null&&t.hasOwnProperty("regionRcmd")&&(n.regionRcmd=u.bilibili.app.dynamic.v2.DynRegionRcmd.toObject(t.regionRcmd,i)),t.dynamicList!=null&&t.hasOwnProperty("dynamicList")&&(n.dynamicList=u.bilibili.app.dynamic.v2.DynamicList.toObject(t.dynamicList,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.DynRcmdReply"},e}(),c.DynRegionRcmd=function(){function e(l){if(this.items=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.items&&o.items.length||(o.items=[]),o.items.push(u.bilibili.app.dynamic.v2.DynRegionRcmdItem.decode(t,t.uint32()));break}case 2:{o.opts=u.bilibili.app.dynamic.v2.RcmdOption.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.DynRegionRcmd)return t;let i=new u.bilibili.app.dynamic.v2.DynRegionRcmd;if(t.items){if(!Array.isArray(t.items))throw TypeError(".bilibili.app.dynamic.v2.DynRegionRcmd.items: array expected");i.items=[];for(let n=0;n>>3){case 1:{o.showTitle=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.RcmdOption)return t;let i=new u.bilibili.app.dynamic.v2.RcmdOption;return t.showTitle!=null&&(i.showTitle=!!t.showTitle),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.showTitle=!1),t.showTitle!=null&&t.hasOwnProperty("showTitle")&&(n.showTitle=t.showTitle),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.RcmdOption"},e}(),c.DynRegionRcmdItem=function(){function e(l){if(this.items=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.rid=t.int64();break}case 2:{o.title=t.string();break}case 3:{o.items&&o.items.length||(o.items=[]),o.items.push(u.bilibili.app.dynamic.v2.ModuleRcmd.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.DynRegionRcmdItem)return t;let i=new u.bilibili.app.dynamic.v2.DynRegionRcmdItem;if(t.rid!=null&&(r.Long?(i.rid=r.Long.fromValue(t.rid)).unsigned=!1:typeof t.rid=="string"?i.rid=parseInt(t.rid,10):typeof t.rid=="number"?i.rid=t.rid:typeof t.rid=="object"&&(i.rid=new r.LongBits(t.rid.low>>>0,t.rid.high>>>0).toNumber())),t.title!=null&&(i.title=String(t.title)),t.items){if(!Array.isArray(t.items))throw TypeError(".bilibili.app.dynamic.v2.DynRegionRcmdItem.items: array expected");i.items=[];for(let n=0;n>>0,t.rid.high>>>0).toNumber():t.rid),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.items&&t.items.length){n.items=[];for(let o=0;o>>3){case 1:{o.author=u.bilibili.app.dynamic.v2.RcmdAuthor.decode(t,t.uint32());break}case 2:{o.items&&o.items.length||(o.items=[]),o.items.push(u.bilibili.app.dynamic.v2.RcmdItem.decode(t,t.uint32()));break}case 3:{o.serverInfo=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.ModuleRcmd)return t;let i=new u.bilibili.app.dynamic.v2.ModuleRcmd;if(t.author!=null){if(typeof t.author!="object")throw TypeError(".bilibili.app.dynamic.v2.ModuleRcmd.author: object expected");i.author=u.bilibili.app.dynamic.v2.RcmdAuthor.fromObject(t.author)}if(t.items){if(!Array.isArray(t.items))throw TypeError(".bilibili.app.dynamic.v2.ModuleRcmd.items: array expected");i.items=[];for(let n=0;n>>3){case 1:{o.author=u.bilibili.app.dynamic.v2.UserInfo.decode(t,t.uint32());break}case 2:{o.desc=t.string();break}case 3:{o.relation=u.bilibili.app.dynamic.v2.Relation.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.RcmdAuthor)return t;let i=new u.bilibili.app.dynamic.v2.RcmdAuthor;if(t.author!=null){if(typeof t.author!="object")throw TypeError(".bilibili.app.dynamic.v2.RcmdAuthor.author: object expected");i.author=u.bilibili.app.dynamic.v2.UserInfo.fromObject(t.author)}if(t.desc!=null&&(i.desc=String(t.desc)),t.relation!=null){if(typeof t.relation!="object")throw TypeError(".bilibili.app.dynamic.v2.RcmdAuthor.relation: object expected");i.relation=u.bilibili.app.dynamic.v2.Relation.fromObject(t.relation)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.author=null,n.desc="",n.relation=null),t.author!=null&&t.hasOwnProperty("author")&&(n.author=u.bilibili.app.dynamic.v2.UserInfo.toObject(t.author,i)),t.desc!=null&&t.hasOwnProperty("desc")&&(n.desc=t.desc),t.relation!=null&&t.hasOwnProperty("relation")&&(n.relation=u.bilibili.app.dynamic.v2.Relation.toObject(t.relation,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.RcmdAuthor"},e}(),c.RcmdItem=function(){function e(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.type=i.int32();break}case 2:{a.rcmdArchive=u.bilibili.app.dynamic.v2.RcmdArchive.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},e.fromObject=function(i){if(i instanceof u.bilibili.app.dynamic.v2.RcmdItem)return i;let n=new u.bilibili.app.dynamic.v2.RcmdItem;switch(i.type){default:if(typeof i.type=="number"){n.type=i.type;break}break;case"rcmd_archive":case 0:n.type=0;break;case"rcmd_dynamic":case 1:n.type=1;break}if(i.rcmdArchive!=null){if(typeof i.rcmdArchive!="object")throw TypeError(".bilibili.app.dynamic.v2.RcmdItem.rcmdArchive: object expected");n.rcmdArchive=u.bilibili.app.dynamic.v2.RcmdArchive.fromObject(i.rcmdArchive)}return n},e.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.type=n.enums===String?"rcmd_archive":0),i.type!=null&&i.hasOwnProperty("type")&&(o.type=n.enums===String?u.bilibili.app.dynamic.v2.RcmdType[i.type]===void 0?i.type:u.bilibili.app.dynamic.v2.RcmdType[i.type]:i.type),i.rcmdArchive!=null&&i.hasOwnProperty("rcmdArchive")&&(o.rcmdArchive=u.bilibili.app.dynamic.v2.RcmdArchive.toObject(i.rcmdArchive,n),n.oneofs&&(o.rcmdItem="rcmdArchive")),o},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.app.dynamic.v2.RcmdItem"},e}(),c.RcmdArchive=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.cover=t.string();break}case 3:{o.coverLeftIcon_1=t.int32();break}case 4:{o.coverLeftText_1=t.string();break}case 5:{o.uri=t.string();break}case 6:{o.isPgc=t.bool();break}case 7:{o.aid=t.int64();break}case 8:{o.badge=u.bilibili.app.dynamic.v2.IconBadge.decode(t,t.uint32());break}case 9:{o.coverLeftIcon_2=t.int32();break}case 10:{o.coverLeftText_2=t.string();break}case 11:{o.coverLeftIcon_3=t.int32();break}case 12:{o.coverLeftText_3=t.string();break}case 13:{o.desc=t.string();break}case 14:{o.trackId=t.string();break}case 15:{o.rcmdReason=u.bilibili.app.dynamic.v2.RcmdReason.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.RcmdArchive)return t;let i=new u.bilibili.app.dynamic.v2.RcmdArchive;switch(t.title!=null&&(i.title=String(t.title)),t.cover!=null&&(i.cover=String(t.cover)),t.coverLeftIcon_1){default:if(typeof t.coverLeftIcon_1=="number"){i.coverLeftIcon_1=t.coverLeftIcon_1;break}break;case"cover_icon_none":case 0:i.coverLeftIcon_1=0;break;case"cover_icon_play":case 1:i.coverLeftIcon_1=1;break;case"cover_icon_danmaku":case 2:i.coverLeftIcon_1=2;break;case"cover_icon_up":case 3:i.coverLeftIcon_1=3;break;case"cover_icon_vt":case 4:i.coverLeftIcon_1=4;break;case"cover_icon_view_cnt":case 5:i.coverLeftIcon_1=5;break;case"cover_icon_thumb_up":case 6:i.coverLeftIcon_1=6;break}if(t.coverLeftText_1!=null&&(i.coverLeftText_1=String(t.coverLeftText_1)),t.uri!=null&&(i.uri=String(t.uri)),t.isPgc!=null&&(i.isPgc=!!t.isPgc),t.aid!=null&&(r.Long?(i.aid=r.Long.fromValue(t.aid)).unsigned=!1:typeof t.aid=="string"?i.aid=parseInt(t.aid,10):typeof t.aid=="number"?i.aid=t.aid:typeof t.aid=="object"&&(i.aid=new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber())),t.badge!=null){if(typeof t.badge!="object")throw TypeError(".bilibili.app.dynamic.v2.RcmdArchive.badge: object expected");i.badge=u.bilibili.app.dynamic.v2.IconBadge.fromObject(t.badge)}switch(t.coverLeftIcon_2){default:if(typeof t.coverLeftIcon_2=="number"){i.coverLeftIcon_2=t.coverLeftIcon_2;break}break;case"cover_icon_none":case 0:i.coverLeftIcon_2=0;break;case"cover_icon_play":case 1:i.coverLeftIcon_2=1;break;case"cover_icon_danmaku":case 2:i.coverLeftIcon_2=2;break;case"cover_icon_up":case 3:i.coverLeftIcon_2=3;break;case"cover_icon_vt":case 4:i.coverLeftIcon_2=4;break;case"cover_icon_view_cnt":case 5:i.coverLeftIcon_2=5;break;case"cover_icon_thumb_up":case 6:i.coverLeftIcon_2=6;break}switch(t.coverLeftText_2!=null&&(i.coverLeftText_2=String(t.coverLeftText_2)),t.coverLeftIcon_3){default:if(typeof t.coverLeftIcon_3=="number"){i.coverLeftIcon_3=t.coverLeftIcon_3;break}break;case"cover_icon_none":case 0:i.coverLeftIcon_3=0;break;case"cover_icon_play":case 1:i.coverLeftIcon_3=1;break;case"cover_icon_danmaku":case 2:i.coverLeftIcon_3=2;break;case"cover_icon_up":case 3:i.coverLeftIcon_3=3;break;case"cover_icon_vt":case 4:i.coverLeftIcon_3=4;break;case"cover_icon_view_cnt":case 5:i.coverLeftIcon_3=5;break;case"cover_icon_thumb_up":case 6:i.coverLeftIcon_3=6;break}if(t.coverLeftText_3!=null&&(i.coverLeftText_3=String(t.coverLeftText_3)),t.desc!=null&&(i.desc=String(t.desc)),t.trackId!=null&&(i.trackId=String(t.trackId)),t.rcmdReason!=null){if(typeof t.rcmdReason!="object")throw TypeError(".bilibili.app.dynamic.v2.RcmdArchive.rcmdReason: object expected");i.rcmdReason=u.bilibili.app.dynamic.v2.RcmdReason.fromObject(t.rcmdReason)}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.title="",n.cover="",n.coverLeftIcon_1=i.enums===String?"cover_icon_none":0,n.coverLeftText_1="",n.uri="",n.isPgc=!1,r.Long){let o=new r.Long(0,0,!1);n.aid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.aid=i.longs===String?"0":0;n.badge=null,n.coverLeftIcon_2=i.enums===String?"cover_icon_none":0,n.coverLeftText_2="",n.coverLeftIcon_3=i.enums===String?"cover_icon_none":0,n.coverLeftText_3="",n.desc="",n.trackId="",n.rcmdReason=null}return t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.cover!=null&&t.hasOwnProperty("cover")&&(n.cover=t.cover),t.coverLeftIcon_1!=null&&t.hasOwnProperty("coverLeftIcon_1")&&(n.coverLeftIcon_1=i.enums===String?u.bilibili.app.dynamic.v2.CoverIcon[t.coverLeftIcon_1]===void 0?t.coverLeftIcon_1:u.bilibili.app.dynamic.v2.CoverIcon[t.coverLeftIcon_1]:t.coverLeftIcon_1),t.coverLeftText_1!=null&&t.hasOwnProperty("coverLeftText_1")&&(n.coverLeftText_1=t.coverLeftText_1),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),t.isPgc!=null&&t.hasOwnProperty("isPgc")&&(n.isPgc=t.isPgc),t.aid!=null&&t.hasOwnProperty("aid")&&(typeof t.aid=="number"?n.aid=i.longs===String?String(t.aid):t.aid:n.aid=i.longs===String?r.Long.prototype.toString.call(t.aid):i.longs===Number?new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber():t.aid),t.badge!=null&&t.hasOwnProperty("badge")&&(n.badge=u.bilibili.app.dynamic.v2.IconBadge.toObject(t.badge,i)),t.coverLeftIcon_2!=null&&t.hasOwnProperty("coverLeftIcon_2")&&(n.coverLeftIcon_2=i.enums===String?u.bilibili.app.dynamic.v2.CoverIcon[t.coverLeftIcon_2]===void 0?t.coverLeftIcon_2:u.bilibili.app.dynamic.v2.CoverIcon[t.coverLeftIcon_2]:t.coverLeftIcon_2),t.coverLeftText_2!=null&&t.hasOwnProperty("coverLeftText_2")&&(n.coverLeftText_2=t.coverLeftText_2),t.coverLeftIcon_3!=null&&t.hasOwnProperty("coverLeftIcon_3")&&(n.coverLeftIcon_3=i.enums===String?u.bilibili.app.dynamic.v2.CoverIcon[t.coverLeftIcon_3]===void 0?t.coverLeftIcon_3:u.bilibili.app.dynamic.v2.CoverIcon[t.coverLeftIcon_3]:t.coverLeftIcon_3),t.coverLeftText_3!=null&&t.hasOwnProperty("coverLeftText_3")&&(n.coverLeftText_3=t.coverLeftText_3),t.desc!=null&&t.hasOwnProperty("desc")&&(n.desc=t.desc),t.trackId!=null&&t.hasOwnProperty("trackId")&&(n.trackId=t.trackId),t.rcmdReason!=null&&t.hasOwnProperty("rcmdReason")&&(n.rcmdReason=u.bilibili.app.dynamic.v2.RcmdReason.toObject(t.rcmdReason,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.RcmdArchive"},e}(),c.RcmdReasonStyle=function(){let e={},l=Object.create(e);return l[e[0]="rcmd_reason_style_none"]=0,l[e[1]="rcmd_reason_style_campus_nearby"]=1,l[e[2]="rcmd_reason_style_campus_up"]=2,l[e[3]="rcmd_reason_style_campus_near_up_mix"]=3,l}(),c.RcmdReason=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.campusName=t.string();break}case 2:{o.style=t.int32();break}case 3:{o.rcmdReason=t.string();break}case 4:{o.upName=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.RcmdReason)return t;let i=new u.bilibili.app.dynamic.v2.RcmdReason;switch(t.campusName!=null&&(i.campusName=String(t.campusName)),t.style){default:if(typeof t.style=="number"){i.style=t.style;break}break;case"rcmd_reason_style_none":case 0:i.style=0;break;case"rcmd_reason_style_campus_nearby":case 1:i.style=1;break;case"rcmd_reason_style_campus_up":case 2:i.style=2;break;case"rcmd_reason_style_campus_near_up_mix":case 3:i.style=3;break}return t.rcmdReason!=null&&(i.rcmdReason=String(t.rcmdReason)),t.upName!=null&&(i.upName=String(t.upName)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.campusName="",n.style=i.enums===String?"rcmd_reason_style_none":0,n.rcmdReason="",n.upName=""),t.campusName!=null&&t.hasOwnProperty("campusName")&&(n.campusName=t.campusName),t.style!=null&&t.hasOwnProperty("style")&&(n.style=i.enums===String?u.bilibili.app.dynamic.v2.RcmdReasonStyle[t.style]===void 0?t.style:u.bilibili.app.dynamic.v2.RcmdReasonStyle[t.style]:t.style),t.rcmdReason!=null&&t.hasOwnProperty("rcmdReason")&&(n.rcmdReason=t.rcmdReason),t.upName!=null&&t.hasOwnProperty("upName")&&(n.upName=t.upName),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.RcmdReason"},e}(),c.DynServerDetailsReq=function(){function e(l){if(this.dynamicIds=[],this.topDynamicIds=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{if(o.dynamicIds&&o.dynamicIds.length||(o.dynamicIds=[]),(a&7)===2){let y=t.uint32()+t.pos;for(;t.pos>>0,t.dynamicIds[n].high>>>0).toNumber())}if(t.localTime!=null&&(i.localTime=t.localTime|0),t.playerArgs!=null){if(typeof t.playerArgs!="object")throw TypeError(".bilibili.app.dynamic.v2.DynServerDetailsReq.playerArgs: object expected");i.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.fromObject(t.playerArgs)}if(t.mobiApp!=null&&(i.mobiApp=String(t.mobiApp)),t.device!=null&&(i.device=String(t.device)),t.buvid!=null&&(i.buvid=String(t.buvid)),t.build!=null&&(r.Long?(i.build=r.Long.fromValue(t.build)).unsigned=!1:typeof t.build=="string"?i.build=parseInt(t.build,10):typeof t.build=="number"?i.build=t.build:typeof t.build=="object"&&(i.build=new r.LongBits(t.build.low>>>0,t.build.high>>>0).toNumber())),t.mid!=null&&(r.Long?(i.mid=r.Long.fromValue(t.mid)).unsigned=!1:typeof t.mid=="string"?i.mid=parseInt(t.mid,10):typeof t.mid=="number"?i.mid=t.mid:typeof t.mid=="object"&&(i.mid=new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber())),t.platform!=null&&(i.platform=String(t.platform)),t.isMaster!=null&&(i.isMaster=!!t.isMaster),t.topDynamicIds){if(!Array.isArray(t.topDynamicIds))throw TypeError(".bilibili.app.dynamic.v2.DynServerDetailsReq.topDynamicIds: array expected");i.topDynamicIds=[];for(let n=0;n>>0,t.topDynamicIds[n].high>>>0).toNumber())}return i},e.toObject=function(t,i){i||(i={});let n={};if((i.arrays||i.defaults)&&(n.dynamicIds=[],n.topDynamicIds=[]),i.defaults){if(n.localTime=0,n.playerArgs=null,n.mobiApp="",n.device="",n.buvid="",r.Long){let o=new r.Long(0,0,!1);n.build=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.build=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.mid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mid=i.longs===String?"0":0;n.platform="",n.isMaster=!1}if(t.dynamicIds&&t.dynamicIds.length){n.dynamicIds=[];for(let o=0;o>>0,t.dynamicIds[o].high>>>0).toNumber():t.dynamicIds[o]}if(t.localTime!=null&&t.hasOwnProperty("localTime")&&(n.localTime=t.localTime),t.playerArgs!=null&&t.hasOwnProperty("playerArgs")&&(n.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.toObject(t.playerArgs,i)),t.mobiApp!=null&&t.hasOwnProperty("mobiApp")&&(n.mobiApp=t.mobiApp),t.device!=null&&t.hasOwnProperty("device")&&(n.device=t.device),t.buvid!=null&&t.hasOwnProperty("buvid")&&(n.buvid=t.buvid),t.build!=null&&t.hasOwnProperty("build")&&(typeof t.build=="number"?n.build=i.longs===String?String(t.build):t.build:n.build=i.longs===String?r.Long.prototype.toString.call(t.build):i.longs===Number?new r.LongBits(t.build.low>>>0,t.build.high>>>0).toNumber():t.build),t.mid!=null&&t.hasOwnProperty("mid")&&(typeof t.mid=="number"?n.mid=i.longs===String?String(t.mid):t.mid:n.mid=i.longs===String?r.Long.prototype.toString.call(t.mid):i.longs===Number?new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber():t.mid),t.platform!=null&&t.hasOwnProperty("platform")&&(n.platform=t.platform),t.isMaster!=null&&t.hasOwnProperty("isMaster")&&(n.isMaster=t.isMaster),t.topDynamicIds&&t.topDynamicIds.length){n.topDynamicIds=[];for(let o=0;o>>0,t.topDynamicIds[o].high>>>0).toNumber():t.topDynamicIds[o]}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.DynServerDetailsReq"},e}(),c.DynServerDetailsReply=function(){function e(l){if(this.items={},l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.items===r.emptyObject&&(o.items={});let v=t.uint32()+t.pos;for(a=0,y=null;t.pos>>3){case 1:a=t.int64();break;case 2:y=u.bilibili.app.dynamic.v2.DynamicItem.decode(t,t.uint32());break;default:t.skipType(g&7);break}}o.items[typeof a=="object"?r.longToHash(a):a]=y;break}default:t.skipType(s&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.DynServerDetailsReply)return t;let i=new u.bilibili.app.dynamic.v2.DynServerDetailsReply;if(t.items){if(typeof t.items!="object")throw TypeError(".bilibili.app.dynamic.v2.DynServerDetailsReply.items: object expected");i.items={};for(let n=Object.keys(t.items),o=0;o>>3){case 1:{o.keyword=t.string();break}case 2:{o.page=t.int32();break}case 3:{o.localTime=t.int32();break}case 4:{o.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.DynSearchReq)return t;let i=new u.bilibili.app.dynamic.v2.DynSearchReq;if(t.keyword!=null&&(i.keyword=String(t.keyword)),t.page!=null&&(i.page=t.page|0),t.localTime!=null&&(i.localTime=t.localTime|0),t.playerArgs!=null){if(typeof t.playerArgs!="object")throw TypeError(".bilibili.app.dynamic.v2.DynSearchReq.playerArgs: object expected");i.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.fromObject(t.playerArgs)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.keyword="",n.page=0,n.localTime=0,n.playerArgs=null),t.keyword!=null&&t.hasOwnProperty("keyword")&&(n.keyword=t.keyword),t.page!=null&&t.hasOwnProperty("page")&&(n.page=t.page),t.localTime!=null&&t.hasOwnProperty("localTime")&&(n.localTime=t.localTime),t.playerArgs!=null&&t.hasOwnProperty("playerArgs")&&(n.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.toObject(t.playerArgs,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.DynSearchReq"},e}(),c.DynSearchReply=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.channelInfo=u.bilibili.app.dynamic.v2.SearchChannel.decode(t,t.uint32());break}case 2:{o.searchTopic=u.bilibili.app.dynamic.v2.SearchTopic.decode(t,t.uint32());break}case 3:{o.searchInfo=u.bilibili.app.dynamic.v2.SearchInfo.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.DynSearchReply)return t;let i=new u.bilibili.app.dynamic.v2.DynSearchReply;if(t.channelInfo!=null){if(typeof t.channelInfo!="object")throw TypeError(".bilibili.app.dynamic.v2.DynSearchReply.channelInfo: object expected");i.channelInfo=u.bilibili.app.dynamic.v2.SearchChannel.fromObject(t.channelInfo)}if(t.searchTopic!=null){if(typeof t.searchTopic!="object")throw TypeError(".bilibili.app.dynamic.v2.DynSearchReply.searchTopic: object expected");i.searchTopic=u.bilibili.app.dynamic.v2.SearchTopic.fromObject(t.searchTopic)}if(t.searchInfo!=null){if(typeof t.searchInfo!="object")throw TypeError(".bilibili.app.dynamic.v2.DynSearchReply.searchInfo: object expected");i.searchInfo=u.bilibili.app.dynamic.v2.SearchInfo.fromObject(t.searchInfo)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.channelInfo=null,n.searchTopic=null,n.searchInfo=null),t.channelInfo!=null&&t.hasOwnProperty("channelInfo")&&(n.channelInfo=u.bilibili.app.dynamic.v2.SearchChannel.toObject(t.channelInfo,i)),t.searchTopic!=null&&t.hasOwnProperty("searchTopic")&&(n.searchTopic=u.bilibili.app.dynamic.v2.SearchTopic.toObject(t.searchTopic,i)),t.searchInfo!=null&&t.hasOwnProperty("searchInfo")&&(n.searchInfo=u.bilibili.app.dynamic.v2.SearchInfo.toObject(t.searchInfo,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.DynSearchReply"},e}(),c.SearchInfo=function(){function e(l){if(this.list=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.list&&o.list.length||(o.list=[]),o.list.push(u.bilibili.app.dynamic.v2.DynamicItem.decode(t,t.uint32()));break}case 3:{o.trackId=t.string();break}case 4:{o.total=t.int64();break}case 5:{o.hasMore=t.bool();break}case 6:{o.version=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.SearchInfo)return t;let i=new u.bilibili.app.dynamic.v2.SearchInfo;if(t.title!=null&&(i.title=String(t.title)),t.list){if(!Array.isArray(t.list))throw TypeError(".bilibili.app.dynamic.v2.SearchInfo.list: array expected");i.list=[];for(let n=0;n>>0,t.total.high>>>0).toNumber())),t.hasMore!=null&&(i.hasMore=!!t.hasMore),t.version!=null&&(i.version=String(t.version)),i},e.toObject=function(t,i){i||(i={});let n={};if((i.arrays||i.defaults)&&(n.list=[]),i.defaults){if(n.title="",n.trackId="",r.Long){let o=new r.Long(0,0,!1);n.total=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.total=i.longs===String?"0":0;n.hasMore=!1,n.version=""}if(t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.list&&t.list.length){n.list=[];for(let o=0;o>>0,t.total.high>>>0).toNumber():t.total),t.hasMore!=null&&t.hasOwnProperty("hasMore")&&(n.hasMore=t.hasMore),t.version!=null&&t.hasOwnProperty("version")&&(n.version=t.version),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.SearchInfo"},e}(),c.SearchTopic=function(){function e(l){if(this.items=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.moreButton=u.bilibili.app.dynamic.v2.SearchTopicButton.decode(t,t.uint32());break}case 3:{o.items&&o.items.length||(o.items=[]),o.items.push(u.bilibili.app.dynamic.v2.SearchTopicItem.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.SearchTopic)return t;let i=new u.bilibili.app.dynamic.v2.SearchTopic;if(t.title!=null&&(i.title=String(t.title)),t.moreButton!=null){if(typeof t.moreButton!="object")throw TypeError(".bilibili.app.dynamic.v2.SearchTopic.moreButton: object expected");i.moreButton=u.bilibili.app.dynamic.v2.SearchTopicButton.fromObject(t.moreButton)}if(t.items){if(!Array.isArray(t.items))throw TypeError(".bilibili.app.dynamic.v2.SearchTopic.items: array expected");i.items=[];for(let n=0;n>>3){case 1:{o.title=t.string();break}case 2:{o.jumpUri=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.SearchTopicButton)return t;let i=new u.bilibili.app.dynamic.v2.SearchTopicButton;return t.title!=null&&(i.title=String(t.title)),t.jumpUri!=null&&(i.jumpUri=String(t.jumpUri)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.title="",n.jumpUri=""),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.jumpUri!=null&&t.hasOwnProperty("jumpUri")&&(n.jumpUri=t.jumpUri),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.SearchTopicButton"},e}(),c.SearchTopicItem=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.topicId=t.int64();break}case 2:{o.topicName=t.string();break}case 3:{o.desc=t.string();break}case 4:{o.url=t.string();break}case 5:{o.isActivity=t.bool();break}case 6:{o.tagIcon=t.string();break}case 7:{o.descLong=t.string();break}case 8:{o.cover=t.string();break}case 9:{o.tagText=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.SearchTopicItem)return t;let i=new u.bilibili.app.dynamic.v2.SearchTopicItem;return t.topicId!=null&&(r.Long?(i.topicId=r.Long.fromValue(t.topicId)).unsigned=!1:typeof t.topicId=="string"?i.topicId=parseInt(t.topicId,10):typeof t.topicId=="number"?i.topicId=t.topicId:typeof t.topicId=="object"&&(i.topicId=new r.LongBits(t.topicId.low>>>0,t.topicId.high>>>0).toNumber())),t.topicName!=null&&(i.topicName=String(t.topicName)),t.desc!=null&&(i.desc=String(t.desc)),t.url!=null&&(i.url=String(t.url)),t.isActivity!=null&&(i.isActivity=!!t.isActivity),t.tagIcon!=null&&(i.tagIcon=String(t.tagIcon)),t.descLong!=null&&(i.descLong=String(t.descLong)),t.cover!=null&&(i.cover=String(t.cover)),t.tagText!=null&&(i.tagText=String(t.tagText)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.topicId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.topicId=i.longs===String?"0":0;n.topicName="",n.desc="",n.url="",n.isActivity=!1,n.tagIcon="",n.descLong="",n.cover="",n.tagText=""}return t.topicId!=null&&t.hasOwnProperty("topicId")&&(typeof t.topicId=="number"?n.topicId=i.longs===String?String(t.topicId):t.topicId:n.topicId=i.longs===String?r.Long.prototype.toString.call(t.topicId):i.longs===Number?new r.LongBits(t.topicId.low>>>0,t.topicId.high>>>0).toNumber():t.topicId),t.topicName!=null&&t.hasOwnProperty("topicName")&&(n.topicName=t.topicName),t.desc!=null&&t.hasOwnProperty("desc")&&(n.desc=t.desc),t.url!=null&&t.hasOwnProperty("url")&&(n.url=t.url),t.isActivity!=null&&t.hasOwnProperty("isActivity")&&(n.isActivity=t.isActivity),t.tagIcon!=null&&t.hasOwnProperty("tagIcon")&&(n.tagIcon=t.tagIcon),t.descLong!=null&&t.hasOwnProperty("descLong")&&(n.descLong=t.descLong),t.cover!=null&&t.hasOwnProperty("cover")&&(n.cover=t.cover),t.tagText!=null&&t.hasOwnProperty("tagText")&&(n.tagText=t.tagText),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.SearchTopicItem"},e}(),c.SearchChannel=function(){function e(l){if(this.channels=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.moreButton=u.bilibili.app.dynamic.v2.SearchTopicButton.decode(t,t.uint32());break}case 3:{o.channels&&o.channels.length||(o.channels=[]),o.channels.push(u.bilibili.app.dynamic.v2.ChannelInfo.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.SearchChannel)return t;let i=new u.bilibili.app.dynamic.v2.SearchChannel;if(t.title!=null&&(i.title=String(t.title)),t.moreButton!=null){if(typeof t.moreButton!="object")throw TypeError(".bilibili.app.dynamic.v2.SearchChannel.moreButton: object expected");i.moreButton=u.bilibili.app.dynamic.v2.SearchTopicButton.fromObject(t.moreButton)}if(t.channels){if(!Array.isArray(t.channels))throw TypeError(".bilibili.app.dynamic.v2.SearchChannel.channels: array expected");i.channels=[];for(let n=0;n>>3){case 1:{o.channelId=t.int64();break}case 2:{o.channelName=t.string();break}case 3:{o.desc=t.string();break}case 4:{o.isAtten=t.bool();break}case 5:{o.typeIcon=t.string();break}case 6:{o.items&&o.items.length||(o.items=[]),o.items.push(u.bilibili.app.dynamic.v2.RcmdItem.decode(t,t.uint32()));break}case 7:{o.icon=t.string();break}case 8:{o.jumpUri=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.ChannelInfo)return t;let i=new u.bilibili.app.dynamic.v2.ChannelInfo;if(t.channelId!=null&&(r.Long?(i.channelId=r.Long.fromValue(t.channelId)).unsigned=!1:typeof t.channelId=="string"?i.channelId=parseInt(t.channelId,10):typeof t.channelId=="number"?i.channelId=t.channelId:typeof t.channelId=="object"&&(i.channelId=new r.LongBits(t.channelId.low>>>0,t.channelId.high>>>0).toNumber())),t.channelName!=null&&(i.channelName=String(t.channelName)),t.desc!=null&&(i.desc=String(t.desc)),t.isAtten!=null&&(i.isAtten=!!t.isAtten),t.typeIcon!=null&&(i.typeIcon=String(t.typeIcon)),t.items){if(!Array.isArray(t.items))throw TypeError(".bilibili.app.dynamic.v2.ChannelInfo.items: array expected");i.items=[];for(let n=0;n>>0,t.channelId.high>>>0).toNumber():t.channelId),t.channelName!=null&&t.hasOwnProperty("channelName")&&(n.channelName=t.channelName),t.desc!=null&&t.hasOwnProperty("desc")&&(n.desc=t.desc),t.isAtten!=null&&t.hasOwnProperty("isAtten")&&(n.isAtten=t.isAtten),t.typeIcon!=null&&t.hasOwnProperty("typeIcon")&&(n.typeIcon=t.typeIcon),t.items&&t.items.length){n.items=[];for(let o=0;o>>3){case 1:{o.result=t.int32();break}case 2:{o.fromType=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.SetDecisionReq)return t;let i=new u.bilibili.app.dynamic.v2.SetDecisionReq;switch(t.result!=null&&(i.result=t.result|0),t.fromType){default:if(typeof t.fromType=="number"){i.fromType=t.fromType;break}break;case"DYNAMIC":case 0:i.fromType=0;break;case"HOME":case 1:i.fromType=1;break}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.result=0,n.fromType=i.enums===String?"DYNAMIC":0),t.result!=null&&t.hasOwnProperty("result")&&(n.result=t.result),t.fromType!=null&&t.hasOwnProperty("fromType")&&(n.fromType=i.enums===String?u.bilibili.app.dynamic.v2.CampusReqFromType[t.fromType]===void 0?t.fromType:u.bilibili.app.dynamic.v2.CampusReqFromType[t.fromType]:t.fromType),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.SetDecisionReq"},e}(),c.CampusTop=function(){function e(l){if(this.tabs=[],this.banner=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.campusId=t.int64();break}case 2:{o.campusName=t.string();break}case 3:{o.tabs&&o.tabs.length||(o.tabs=[]),o.tabs.push(u.bilibili.app.dynamic.v2.CampusShowTabInfo.decode(t,t.uint32()));break}case 4:{o.switchLabel=u.bilibili.app.dynamic.v2.CampusLabel.decode(t,t.uint32());break}case 5:{o.title=t.string();break}case 6:{o.banner&&o.banner.length||(o.banner=[]),o.banner.push(u.bilibili.app.dynamic.v2.CampusBannerInfo.decode(t,t.uint32()));break}case 7:{o.inviteLabel=u.bilibili.app.dynamic.v2.CampusLabel.decode(t,t.uint32());break}case 8:{o.notice=u.bilibili.app.dynamic.v2.CampusNoticeInfo.decode(t,t.uint32());break}case 9:{o.topicSquare=u.bilibili.app.dynamic.v2.TopicSquareInfo.decode(t,t.uint32());break}case 10:{o.campusBadge=t.string();break}case 11:{o.campusBackground=t.string();break}case 12:{o.campusMotto=t.string();break}case 13:{o.mngEntry=u.bilibili.app.dynamic.v2.CampusLabel.decode(t,t.uint32());break}case 14:{o.campusIntro=t.string();break}case 15:{o.campusNameLink=t.string();break}case 16:{o.bottomLeftText=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.CampusTop)return t;let i=new u.bilibili.app.dynamic.v2.CampusTop;if(t.campusId!=null&&(r.Long?(i.campusId=r.Long.fromValue(t.campusId)).unsigned=!1:typeof t.campusId=="string"?i.campusId=parseInt(t.campusId,10):typeof t.campusId=="number"?i.campusId=t.campusId:typeof t.campusId=="object"&&(i.campusId=new r.LongBits(t.campusId.low>>>0,t.campusId.high>>>0).toNumber())),t.campusName!=null&&(i.campusName=String(t.campusName)),t.tabs){if(!Array.isArray(t.tabs))throw TypeError(".bilibili.app.dynamic.v2.CampusTop.tabs: array expected");i.tabs=[];for(let n=0;n>>0,t.campusId.high>>>0).toNumber():t.campusId),t.campusName!=null&&t.hasOwnProperty("campusName")&&(n.campusName=t.campusName),t.tabs&&t.tabs.length){n.tabs=[];for(let o=0;o>>3){case 1:{o.name=t.string();break}case 2:{o.url=t.string();break}case 3:{o.type=t.int32();break}case 4:{o.redDot=t.int32();break}case 5:{o.iconUrl=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.CampusShowTabInfo)return t;let i=new u.bilibili.app.dynamic.v2.CampusShowTabInfo;switch(t.name!=null&&(i.name=String(t.name)),t.url!=null&&(i.url=String(t.url)),t.type){default:if(typeof t.type=="number"){i.type=t.type;break}break;case"campus_none":case 0:i.type=0;break;case"campus_school":case 1:i.type=1;break;case"campus_dynamic":case 2:i.type=2;break;case"campus_account":case 3:i.type=3;break;case"campus_billboard":case 4:i.type=4;break;case"campus_topic":case 5:i.type=5;break;case"campues_other":case 6:i.type=6;break}return t.redDot!=null&&(i.redDot=t.redDot|0),t.iconUrl!=null&&(i.iconUrl=String(t.iconUrl)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.name="",n.url="",n.type=i.enums===String?"campus_none":0,n.redDot=0,n.iconUrl=""),t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),t.url!=null&&t.hasOwnProperty("url")&&(n.url=t.url),t.type!=null&&t.hasOwnProperty("type")&&(n.type=i.enums===String?u.bilibili.app.dynamic.v2.CampusTabType[t.type]===void 0?t.type:u.bilibili.app.dynamic.v2.CampusTabType[t.type]:t.type),t.redDot!=null&&t.hasOwnProperty("redDot")&&(n.redDot=t.redDot),t.iconUrl!=null&&t.hasOwnProperty("iconUrl")&&(n.iconUrl=t.iconUrl),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.CampusShowTabInfo"},e}(),c.CampusTabType=function(){let e={},l=Object.create(e);return l[e[0]="campus_none"]=0,l[e[1]="campus_school"]=1,l[e[2]="campus_dynamic"]=2,l[e[3]="campus_account"]=3,l[e[4]="campus_billboard"]=4,l[e[5]="campus_topic"]=5,l[e[6]="campues_other"]=6,l}(),c.CampusBannerInfo=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.image=t.string();break}case 2:{o.jumpUrl=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.CampusBannerInfo)return t;let i=new u.bilibili.app.dynamic.v2.CampusBannerInfo;return t.image!=null&&(i.image=String(t.image)),t.jumpUrl!=null&&(i.jumpUrl=String(t.jumpUrl)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.image="",n.jumpUrl=""),t.image!=null&&t.hasOwnProperty("image")&&(n.image=t.image),t.jumpUrl!=null&&t.hasOwnProperty("jumpUrl")&&(n.jumpUrl=t.jumpUrl),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.CampusBannerInfo"},e}(),c.CampusNoticeInfo=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.desc=t.string();break}case 3:{o.button=u.bilibili.app.dynamic.v2.CampusLabel.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.CampusNoticeInfo)return t;let i=new u.bilibili.app.dynamic.v2.CampusNoticeInfo;if(t.title!=null&&(i.title=String(t.title)),t.desc!=null&&(i.desc=String(t.desc)),t.button!=null){if(typeof t.button!="object")throw TypeError(".bilibili.app.dynamic.v2.CampusNoticeInfo.button: object expected");i.button=u.bilibili.app.dynamic.v2.CampusLabel.fromObject(t.button)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.title="",n.desc="",n.button=null),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.desc!=null&&t.hasOwnProperty("desc")&&(n.desc=t.desc),t.button!=null&&t.hasOwnProperty("button")&&(n.button=u.bilibili.app.dynamic.v2.CampusLabel.toObject(t.button,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.CampusNoticeInfo"},e}(),c.AlumniDynamicsReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.campusId=t.int64();break}case 2:{o.firstTime=t.int32();break}case 3:{o.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.decode(t,t.uint32());break}case 4:{o.localTime=t.int32();break}case 5:{o.page=t.int32();break}case 6:{o.fromType=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.AlumniDynamicsReq)return t;let i=new u.bilibili.app.dynamic.v2.AlumniDynamicsReq;if(t.campusId!=null&&(r.Long?(i.campusId=r.Long.fromValue(t.campusId)).unsigned=!1:typeof t.campusId=="string"?i.campusId=parseInt(t.campusId,10):typeof t.campusId=="number"?i.campusId=t.campusId:typeof t.campusId=="object"&&(i.campusId=new r.LongBits(t.campusId.low>>>0,t.campusId.high>>>0).toNumber())),t.firstTime!=null&&(i.firstTime=t.firstTime|0),t.playerArgs!=null){if(typeof t.playerArgs!="object")throw TypeError(".bilibili.app.dynamic.v2.AlumniDynamicsReq.playerArgs: object expected");i.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.fromObject(t.playerArgs)}switch(t.localTime!=null&&(i.localTime=t.localTime|0),t.page!=null&&(i.page=t.page|0),t.fromType){default:if(typeof t.fromType=="number"){i.fromType=t.fromType;break}break;case"DYNAMIC":case 0:i.fromType=0;break;case"HOME":case 1:i.fromType=1;break}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.campusId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.campusId=i.longs===String?"0":0;n.firstTime=0,n.playerArgs=null,n.localTime=0,n.page=0,n.fromType=i.enums===String?"DYNAMIC":0}return t.campusId!=null&&t.hasOwnProperty("campusId")&&(typeof t.campusId=="number"?n.campusId=i.longs===String?String(t.campusId):t.campusId:n.campusId=i.longs===String?r.Long.prototype.toString.call(t.campusId):i.longs===Number?new r.LongBits(t.campusId.low>>>0,t.campusId.high>>>0).toNumber():t.campusId),t.firstTime!=null&&t.hasOwnProperty("firstTime")&&(n.firstTime=t.firstTime),t.playerArgs!=null&&t.hasOwnProperty("playerArgs")&&(n.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.toObject(t.playerArgs,i)),t.localTime!=null&&t.hasOwnProperty("localTime")&&(n.localTime=t.localTime),t.page!=null&&t.hasOwnProperty("page")&&(n.page=t.page),t.fromType!=null&&t.hasOwnProperty("fromType")&&(n.fromType=i.enums===String?u.bilibili.app.dynamic.v2.CampusReqFromType[t.fromType]===void 0?t.fromType:u.bilibili.app.dynamic.v2.CampusReqFromType[t.fromType]:t.fromType),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.AlumniDynamicsReq"},e}(),c.AlumniDynamicsReply=function(){function e(l){if(this.list=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.list&&o.list.length||(o.list=[]),o.list.push(u.bilibili.app.dynamic.v2.DynamicItem.decode(t,t.uint32()));break}case 2:{o.toast=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.AlumniDynamicsReply)return t;let i=new u.bilibili.app.dynamic.v2.AlumniDynamicsReply;if(t.list){if(!Array.isArray(t.list))throw TypeError(".bilibili.app.dynamic.v2.AlumniDynamicsReply.list: array expected");i.list=[];for(let n=0;n>>3){case 1:{o.campusId=t.int64();break}case 2:{o.campusName=t.string();break}case 3:{o.lat=t.double();break}case 4:{o.lng=t.double();break}case 5:{o.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.decode(t,t.uint32());break}case 6:{o.fromType=t.int32();break}case 7:{o.pageType=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.CampusRcmdReq)return t;let i=new u.bilibili.app.dynamic.v2.CampusRcmdReq;if(t.campusId!=null&&(r.Long?(i.campusId=r.Long.fromValue(t.campusId)).unsigned=!1:typeof t.campusId=="string"?i.campusId=parseInt(t.campusId,10):typeof t.campusId=="number"?i.campusId=t.campusId:typeof t.campusId=="object"&&(i.campusId=new r.LongBits(t.campusId.low>>>0,t.campusId.high>>>0).toNumber())),t.campusName!=null&&(i.campusName=String(t.campusName)),t.lat!=null&&(i.lat=Number(t.lat)),t.lng!=null&&(i.lng=Number(t.lng)),t.playerArgs!=null){if(typeof t.playerArgs!="object")throw TypeError(".bilibili.app.dynamic.v2.CampusRcmdReq.playerArgs: object expected");i.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.fromObject(t.playerArgs)}switch(t.fromType){default:if(typeof t.fromType=="number"){i.fromType=t.fromType;break}break;case"DYNAMIC":case 0:i.fromType=0;break;case"HOME":case 1:i.fromType=1;break}switch(t.pageType){default:if(typeof t.pageType=="number"){i.pageType=t.pageType;break}break;case"PAGE_MAJOR":case 0:i.pageType=0;break;case"PAGE_SUBORDINATE":case 1:i.pageType=1;break;case"PAGE_MAJOR_DETAIL":case 2:i.pageType=2;break}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.campusId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.campusId=i.longs===String?"0":0;n.campusName="",n.lat=0,n.lng=0,n.playerArgs=null,n.fromType=i.enums===String?"DYNAMIC":0,n.pageType=i.enums===String?"PAGE_MAJOR":0}return t.campusId!=null&&t.hasOwnProperty("campusId")&&(typeof t.campusId=="number"?n.campusId=i.longs===String?String(t.campusId):t.campusId:n.campusId=i.longs===String?r.Long.prototype.toString.call(t.campusId):i.longs===Number?new r.LongBits(t.campusId.low>>>0,t.campusId.high>>>0).toNumber():t.campusId),t.campusName!=null&&t.hasOwnProperty("campusName")&&(n.campusName=t.campusName),t.lat!=null&&t.hasOwnProperty("lat")&&(n.lat=i.json&&!isFinite(t.lat)?String(t.lat):t.lat),t.lng!=null&&t.hasOwnProperty("lng")&&(n.lng=i.json&&!isFinite(t.lng)?String(t.lng):t.lng),t.playerArgs!=null&&t.hasOwnProperty("playerArgs")&&(n.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.toObject(t.playerArgs,i)),t.fromType!=null&&t.hasOwnProperty("fromType")&&(n.fromType=i.enums===String?u.bilibili.app.dynamic.v2.CampusReqFromType[t.fromType]===void 0?t.fromType:u.bilibili.app.dynamic.v2.CampusReqFromType[t.fromType]:t.fromType),t.pageType!=null&&t.hasOwnProperty("pageType")&&(n.pageType=i.enums===String?u.bilibili.app.dynamic.v2.CampusHomePageType[t.pageType]===void 0?t.pageType:u.bilibili.app.dynamic.v2.CampusHomePageType[t.pageType]:t.pageType),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.CampusRcmdReq"},e}(),c.CampusRcmdReply=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.top=u.bilibili.app.dynamic.v2.CampusRcmdTop.decode(t,t.uint32());break}case 2:{o.rcmd=u.bilibili.app.dynamic.v2.CampusRcmdInfo.decode(t,t.uint32());break}case 3:{o.campusTop=u.bilibili.app.dynamic.v2.CampusTop.decode(t,t.uint32());break}case 4:{o.pageType=t.int32();break}case 5:{o.jumpHomePop=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.CampusRcmdReply)return t;let i=new u.bilibili.app.dynamic.v2.CampusRcmdReply;if(t.top!=null){if(typeof t.top!="object")throw TypeError(".bilibili.app.dynamic.v2.CampusRcmdReply.top: object expected");i.top=u.bilibili.app.dynamic.v2.CampusRcmdTop.fromObject(t.top)}if(t.rcmd!=null){if(typeof t.rcmd!="object")throw TypeError(".bilibili.app.dynamic.v2.CampusRcmdReply.rcmd: object expected");i.rcmd=u.bilibili.app.dynamic.v2.CampusRcmdInfo.fromObject(t.rcmd)}if(t.campusTop!=null){if(typeof t.campusTop!="object")throw TypeError(".bilibili.app.dynamic.v2.CampusRcmdReply.campusTop: object expected");i.campusTop=u.bilibili.app.dynamic.v2.CampusTop.fromObject(t.campusTop)}return t.pageType!=null&&(i.pageType=t.pageType|0),t.jumpHomePop!=null&&(i.jumpHomePop=t.jumpHomePop|0),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.top=null,n.rcmd=null,n.campusTop=null,n.pageType=0,n.jumpHomePop=0),t.top!=null&&t.hasOwnProperty("top")&&(n.top=u.bilibili.app.dynamic.v2.CampusRcmdTop.toObject(t.top,i)),t.rcmd!=null&&t.hasOwnProperty("rcmd")&&(n.rcmd=u.bilibili.app.dynamic.v2.CampusRcmdInfo.toObject(t.rcmd,i)),t.campusTop!=null&&t.hasOwnProperty("campusTop")&&(n.campusTop=u.bilibili.app.dynamic.v2.CampusTop.toObject(t.campusTop,i)),t.pageType!=null&&t.hasOwnProperty("pageType")&&(n.pageType=t.pageType),t.jumpHomePop!=null&&t.hasOwnProperty("jumpHomePop")&&(n.jumpHomePop=t.jumpHomePop),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.CampusRcmdReply"},e}(),c.CampusRcmdTop=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.campusId=t.int64();break}case 2:{o.campusName=t.string();break}case 3:{o.title=t.string();break}case 4:{o.desc=t.string();break}case 5:{o.type=t.int32();break}case 6:{o.button=u.bilibili.app.dynamic.v2.RcmdTopButton.decode(t,t.uint32());break}case 7:{o.switchLabel=u.bilibili.app.dynamic.v2.CampusLabel.decode(t,t.uint32());break}case 8:{o.noticeLabel=u.bilibili.app.dynamic.v2.CampusLabel.decode(t,t.uint32());break}case 9:{o.desc_2=t.string();break}case 10:{o.desc_3=t.string();break}case 11:{o.inviteLabel=u.bilibili.app.dynamic.v2.CampusLabel.decode(t,t.uint32());break}case 12:{o.reserveLabel=u.bilibili.app.dynamic.v2.CampusLabel.decode(t,t.uint32());break}case 13:{o.reserveNumber=t.int64();break}case 14:{o.maxReserve=t.int64();break}case 15:{o.schoolLabel=u.bilibili.app.dynamic.v2.CampusLabel.decode(t,t.uint32());break}case 16:{o.mngLabel=u.bilibili.app.dynamic.v2.CampusLabel.decode(t,t.uint32());break}case 17:{o.rcmdTopic=u.bilibili.app.dynamic.v2.CampusHomeRcmdTopic.decode(t,t.uint32());break}case 18:{o.auditBeforeOpen=t.bool();break}case 19:{o.auditMessage=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.CampusRcmdTop)return t;let i=new u.bilibili.app.dynamic.v2.CampusRcmdTop;if(t.campusId!=null&&(r.Long?(i.campusId=r.Long.fromValue(t.campusId)).unsigned=!1:typeof t.campusId=="string"?i.campusId=parseInt(t.campusId,10):typeof t.campusId=="number"?i.campusId=t.campusId:typeof t.campusId=="object"&&(i.campusId=new r.LongBits(t.campusId.low>>>0,t.campusId.high>>>0).toNumber())),t.campusName!=null&&(i.campusName=String(t.campusName)),t.title!=null&&(i.title=String(t.title)),t.desc!=null&&(i.desc=String(t.desc)),t.type!=null&&(i.type=t.type|0),t.button!=null){if(typeof t.button!="object")throw TypeError(".bilibili.app.dynamic.v2.CampusRcmdTop.button: object expected");i.button=u.bilibili.app.dynamic.v2.RcmdTopButton.fromObject(t.button)}if(t.switchLabel!=null){if(typeof t.switchLabel!="object")throw TypeError(".bilibili.app.dynamic.v2.CampusRcmdTop.switchLabel: object expected");i.switchLabel=u.bilibili.app.dynamic.v2.CampusLabel.fromObject(t.switchLabel)}if(t.noticeLabel!=null){if(typeof t.noticeLabel!="object")throw TypeError(".bilibili.app.dynamic.v2.CampusRcmdTop.noticeLabel: object expected");i.noticeLabel=u.bilibili.app.dynamic.v2.CampusLabel.fromObject(t.noticeLabel)}if(t.desc_2!=null&&(i.desc_2=String(t.desc_2)),t.desc_3!=null&&(i.desc_3=String(t.desc_3)),t.inviteLabel!=null){if(typeof t.inviteLabel!="object")throw TypeError(".bilibili.app.dynamic.v2.CampusRcmdTop.inviteLabel: object expected");i.inviteLabel=u.bilibili.app.dynamic.v2.CampusLabel.fromObject(t.inviteLabel)}if(t.reserveLabel!=null){if(typeof t.reserveLabel!="object")throw TypeError(".bilibili.app.dynamic.v2.CampusRcmdTop.reserveLabel: object expected");i.reserveLabel=u.bilibili.app.dynamic.v2.CampusLabel.fromObject(t.reserveLabel)}if(t.reserveNumber!=null&&(r.Long?(i.reserveNumber=r.Long.fromValue(t.reserveNumber)).unsigned=!1:typeof t.reserveNumber=="string"?i.reserveNumber=parseInt(t.reserveNumber,10):typeof t.reserveNumber=="number"?i.reserveNumber=t.reserveNumber:typeof t.reserveNumber=="object"&&(i.reserveNumber=new r.LongBits(t.reserveNumber.low>>>0,t.reserveNumber.high>>>0).toNumber())),t.maxReserve!=null&&(r.Long?(i.maxReserve=r.Long.fromValue(t.maxReserve)).unsigned=!1:typeof t.maxReserve=="string"?i.maxReserve=parseInt(t.maxReserve,10):typeof t.maxReserve=="number"?i.maxReserve=t.maxReserve:typeof t.maxReserve=="object"&&(i.maxReserve=new r.LongBits(t.maxReserve.low>>>0,t.maxReserve.high>>>0).toNumber())),t.schoolLabel!=null){if(typeof t.schoolLabel!="object")throw TypeError(".bilibili.app.dynamic.v2.CampusRcmdTop.schoolLabel: object expected");i.schoolLabel=u.bilibili.app.dynamic.v2.CampusLabel.fromObject(t.schoolLabel)}if(t.mngLabel!=null){if(typeof t.mngLabel!="object")throw TypeError(".bilibili.app.dynamic.v2.CampusRcmdTop.mngLabel: object expected");i.mngLabel=u.bilibili.app.dynamic.v2.CampusLabel.fromObject(t.mngLabel)}if(t.rcmdTopic!=null){if(typeof t.rcmdTopic!="object")throw TypeError(".bilibili.app.dynamic.v2.CampusRcmdTop.rcmdTopic: object expected");i.rcmdTopic=u.bilibili.app.dynamic.v2.CampusHomeRcmdTopic.fromObject(t.rcmdTopic)}return t.auditBeforeOpen!=null&&(i.auditBeforeOpen=!!t.auditBeforeOpen),t.auditMessage!=null&&(i.auditMessage=String(t.auditMessage)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.campusId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.campusId=i.longs===String?"0":0;if(n.campusName="",n.title="",n.desc="",n.type=0,n.button=null,n.switchLabel=null,n.noticeLabel=null,n.desc_2="",n.desc_3="",n.inviteLabel=null,n.reserveLabel=null,r.Long){let o=new r.Long(0,0,!1);n.reserveNumber=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.reserveNumber=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.maxReserve=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.maxReserve=i.longs===String?"0":0;n.schoolLabel=null,n.mngLabel=null,n.rcmdTopic=null,n.auditBeforeOpen=!1,n.auditMessage=""}return t.campusId!=null&&t.hasOwnProperty("campusId")&&(typeof t.campusId=="number"?n.campusId=i.longs===String?String(t.campusId):t.campusId:n.campusId=i.longs===String?r.Long.prototype.toString.call(t.campusId):i.longs===Number?new r.LongBits(t.campusId.low>>>0,t.campusId.high>>>0).toNumber():t.campusId),t.campusName!=null&&t.hasOwnProperty("campusName")&&(n.campusName=t.campusName),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.desc!=null&&t.hasOwnProperty("desc")&&(n.desc=t.desc),t.type!=null&&t.hasOwnProperty("type")&&(n.type=t.type),t.button!=null&&t.hasOwnProperty("button")&&(n.button=u.bilibili.app.dynamic.v2.RcmdTopButton.toObject(t.button,i)),t.switchLabel!=null&&t.hasOwnProperty("switchLabel")&&(n.switchLabel=u.bilibili.app.dynamic.v2.CampusLabel.toObject(t.switchLabel,i)),t.noticeLabel!=null&&t.hasOwnProperty("noticeLabel")&&(n.noticeLabel=u.bilibili.app.dynamic.v2.CampusLabel.toObject(t.noticeLabel,i)),t.desc_2!=null&&t.hasOwnProperty("desc_2")&&(n.desc_2=t.desc_2),t.desc_3!=null&&t.hasOwnProperty("desc_3")&&(n.desc_3=t.desc_3),t.inviteLabel!=null&&t.hasOwnProperty("inviteLabel")&&(n.inviteLabel=u.bilibili.app.dynamic.v2.CampusLabel.toObject(t.inviteLabel,i)),t.reserveLabel!=null&&t.hasOwnProperty("reserveLabel")&&(n.reserveLabel=u.bilibili.app.dynamic.v2.CampusLabel.toObject(t.reserveLabel,i)),t.reserveNumber!=null&&t.hasOwnProperty("reserveNumber")&&(typeof t.reserveNumber=="number"?n.reserveNumber=i.longs===String?String(t.reserveNumber):t.reserveNumber:n.reserveNumber=i.longs===String?r.Long.prototype.toString.call(t.reserveNumber):i.longs===Number?new r.LongBits(t.reserveNumber.low>>>0,t.reserveNumber.high>>>0).toNumber():t.reserveNumber),t.maxReserve!=null&&t.hasOwnProperty("maxReserve")&&(typeof t.maxReserve=="number"?n.maxReserve=i.longs===String?String(t.maxReserve):t.maxReserve:n.maxReserve=i.longs===String?r.Long.prototype.toString.call(t.maxReserve):i.longs===Number?new r.LongBits(t.maxReserve.low>>>0,t.maxReserve.high>>>0).toNumber():t.maxReserve),t.schoolLabel!=null&&t.hasOwnProperty("schoolLabel")&&(n.schoolLabel=u.bilibili.app.dynamic.v2.CampusLabel.toObject(t.schoolLabel,i)),t.mngLabel!=null&&t.hasOwnProperty("mngLabel")&&(n.mngLabel=u.bilibili.app.dynamic.v2.CampusLabel.toObject(t.mngLabel,i)),t.rcmdTopic!=null&&t.hasOwnProperty("rcmdTopic")&&(n.rcmdTopic=u.bilibili.app.dynamic.v2.CampusHomeRcmdTopic.toObject(t.rcmdTopic,i)),t.auditBeforeOpen!=null&&t.hasOwnProperty("auditBeforeOpen")&&(n.auditBeforeOpen=t.auditBeforeOpen),t.auditMessage!=null&&t.hasOwnProperty("auditMessage")&&(n.auditMessage=t.auditMessage),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.CampusRcmdTop"},e}(),c.RcmdTopButton=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.text=t.string();break}case 2:{o.url=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.RcmdTopButton)return t;let i=new u.bilibili.app.dynamic.v2.RcmdTopButton;return t.text!=null&&(i.text=String(t.text)),t.url!=null&&(i.url=String(t.url)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.text="",n.url=""),t.text!=null&&t.hasOwnProperty("text")&&(n.text=t.text),t.url!=null&&t.hasOwnProperty("url")&&(n.url=t.url),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.RcmdTopButton"},e}(),c.CampusRcmdInfo=function(){function e(l){if(this.items=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.items&&o.items.length||(o.items=[]),o.items.push(u.bilibili.app.dynamic.v2.CampusRcmdItem.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.CampusRcmdInfo)return t;let i=new u.bilibili.app.dynamic.v2.CampusRcmdInfo;if(t.title!=null&&(i.title=String(t.title)),t.items){if(!Array.isArray(t.items))throw TypeError(".bilibili.app.dynamic.v2.CampusRcmdInfo.items: array expected");i.items=[];for(let n=0;n>>3){case 1:{o.title=t.string();break}case 2:{o.items&&o.items.length||(o.items=[]),o.items.push(u.bilibili.app.dynamic.v2.RcmdItem.decode(t,t.uint32()));break}case 3:{o.campusId=t.int64();break}case 4:{o.entryLabel=u.bilibili.app.dynamic.v2.CampusLabel.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.CampusRcmdItem)return t;let i=new u.bilibili.app.dynamic.v2.CampusRcmdItem;if(t.title!=null&&(i.title=String(t.title)),t.items){if(!Array.isArray(t.items))throw TypeError(".bilibili.app.dynamic.v2.CampusRcmdItem.items: array expected");i.items=[];for(let n=0;n>>0,t.campusId.high>>>0).toNumber())),t.entryLabel!=null){if(typeof t.entryLabel!="object")throw TypeError(".bilibili.app.dynamic.v2.CampusRcmdItem.entryLabel: object expected");i.entryLabel=u.bilibili.app.dynamic.v2.CampusLabel.fromObject(t.entryLabel)}return i},e.toObject=function(t,i){i||(i={});let n={};if((i.arrays||i.defaults)&&(n.items=[]),i.defaults){if(n.title="",r.Long){let o=new r.Long(0,0,!1);n.campusId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.campusId=i.longs===String?"0":0;n.entryLabel=null}if(t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.items&&t.items.length){n.items=[];for(let o=0;o>>0,t.campusId.high>>>0).toNumber():t.campusId),t.entryLabel!=null&&t.hasOwnProperty("entryLabel")&&(n.entryLabel=u.bilibili.app.dynamic.v2.CampusLabel.toObject(t.entryLabel,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.CampusRcmdItem"},e}(),c.CampusLabel=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.text=t.string();break}case 2:{o.url=t.string();break}case 3:{o.desc=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.CampusLabel)return t;let i=new u.bilibili.app.dynamic.v2.CampusLabel;return t.text!=null&&(i.text=String(t.text)),t.url!=null&&(i.url=String(t.url)),t.desc!=null&&(i.desc=String(t.desc)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.text="",n.url="",n.desc=""),t.text!=null&&t.hasOwnProperty("text")&&(n.text=t.text),t.url!=null&&t.hasOwnProperty("url")&&(n.url=t.url),t.desc!=null&&t.hasOwnProperty("desc")&&(n.desc=t.desc),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.CampusLabel"},e}(),c.SubscribeCampusReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.campusId=t.int64();break}case 2:{o.campusName=t.string();break}case 3:{o.fromType=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.SubscribeCampusReq)return t;let i=new u.bilibili.app.dynamic.v2.SubscribeCampusReq;switch(t.campusId!=null&&(r.Long?(i.campusId=r.Long.fromValue(t.campusId)).unsigned=!1:typeof t.campusId=="string"?i.campusId=parseInt(t.campusId,10):typeof t.campusId=="number"?i.campusId=t.campusId:typeof t.campusId=="object"&&(i.campusId=new r.LongBits(t.campusId.low>>>0,t.campusId.high>>>0).toNumber())),t.campusName!=null&&(i.campusName=String(t.campusName)),t.fromType){default:if(typeof t.fromType=="number"){i.fromType=t.fromType;break}break;case"DYNAMIC":case 0:i.fromType=0;break;case"HOME":case 1:i.fromType=1;break}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.campusId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.campusId=i.longs===String?"0":0;n.campusName="",n.fromType=i.enums===String?"DYNAMIC":0}return t.campusId!=null&&t.hasOwnProperty("campusId")&&(typeof t.campusId=="number"?n.campusId=i.longs===String?String(t.campusId):t.campusId:n.campusId=i.longs===String?r.Long.prototype.toString.call(t.campusId):i.longs===Number?new r.LongBits(t.campusId.low>>>0,t.campusId.high>>>0).toNumber():t.campusId),t.campusName!=null&&t.hasOwnProperty("campusName")&&(n.campusName=t.campusName),t.fromType!=null&&t.hasOwnProperty("fromType")&&(n.fromType=i.enums===String?u.bilibili.app.dynamic.v2.CampusReqFromType[t.fromType]===void 0?t.fromType:u.bilibili.app.dynamic.v2.CampusReqFromType[t.fromType]:t.fromType),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.SubscribeCampusReq"},e}(),c.SetRecentCampusReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.campusId=t.int64();break}case 2:{o.campusName=t.string();break}case 3:{o.fromType=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.SetRecentCampusReq)return t;let i=new u.bilibili.app.dynamic.v2.SetRecentCampusReq;switch(t.campusId!=null&&(r.Long?(i.campusId=r.Long.fromValue(t.campusId)).unsigned=!1:typeof t.campusId=="string"?i.campusId=parseInt(t.campusId,10):typeof t.campusId=="number"?i.campusId=t.campusId:typeof t.campusId=="object"&&(i.campusId=new r.LongBits(t.campusId.low>>>0,t.campusId.high>>>0).toNumber())),t.campusName!=null&&(i.campusName=String(t.campusName)),t.fromType){default:if(typeof t.fromType=="number"){i.fromType=t.fromType;break}break;case"DYNAMIC":case 0:i.fromType=0;break;case"HOME":case 1:i.fromType=1;break}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.campusId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.campusId=i.longs===String?"0":0;n.campusName="",n.fromType=i.enums===String?"DYNAMIC":0}return t.campusId!=null&&t.hasOwnProperty("campusId")&&(typeof t.campusId=="number"?n.campusId=i.longs===String?String(t.campusId):t.campusId:n.campusId=i.longs===String?r.Long.prototype.toString.call(t.campusId):i.longs===Number?new r.LongBits(t.campusId.low>>>0,t.campusId.high>>>0).toNumber():t.campusId),t.campusName!=null&&t.hasOwnProperty("campusName")&&(n.campusName=t.campusName),t.fromType!=null&&t.hasOwnProperty("fromType")&&(n.fromType=i.enums===String?u.bilibili.app.dynamic.v2.CampusReqFromType[t.fromType]===void 0?t.fromType:u.bilibili.app.dynamic.v2.CampusReqFromType[t.fromType]:t.fromType),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.SetRecentCampusReq"},e}(),c.DynTabReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.teenagersMode=t.int32();break}case 2:{o.fromType=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.DynTabReq)return t;let i=new u.bilibili.app.dynamic.v2.DynTabReq;switch(t.teenagersMode!=null&&(i.teenagersMode=t.teenagersMode|0),t.fromType){default:if(typeof t.fromType=="number"){i.fromType=t.fromType;break}break;case"DYNAMIC":case 0:i.fromType=0;break;case"HOME":case 1:i.fromType=1;break}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.teenagersMode=0,n.fromType=i.enums===String?"DYNAMIC":0),t.teenagersMode!=null&&t.hasOwnProperty("teenagersMode")&&(n.teenagersMode=t.teenagersMode),t.fromType!=null&&t.hasOwnProperty("fromType")&&(n.fromType=i.enums===String?u.bilibili.app.dynamic.v2.CampusReqFromType[t.fromType]===void 0?t.fromType:u.bilibili.app.dynamic.v2.CampusReqFromType[t.fromType]:t.fromType),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.DynTabReq"},e}(),c.DynTabReply=function(){function e(l){if(this.dynTab=[],this.screenTab=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.dynTab&&o.dynTab.length||(o.dynTab=[]),o.dynTab.push(u.bilibili.app.dynamic.v2.DynTab.decode(t,t.uint32()));break}case 2:{o.screenTab&&o.screenTab.length||(o.screenTab=[]),o.screenTab.push(u.bilibili.app.dynamic.v2.DynScreenTab.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.DynTabReply)return t;let i=new u.bilibili.app.dynamic.v2.DynTabReply;if(t.dynTab){if(!Array.isArray(t.dynTab))throw TypeError(".bilibili.app.dynamic.v2.DynTabReply.dynTab: array expected");i.dynTab=[];for(let n=0;n>>3){case 1:{o.title=t.string();break}case 2:{o.name=t.string();break}case 3:{o.defaultTab=t.bool();break}case 4:{o.strategyShowOnEntrance=t.bool();break}case 5:{o.strategyShowOnRefresh=t.bool();break}case 6:{o.strategyShowOnPullUp=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.DynScreenTab)return t;let i=new u.bilibili.app.dynamic.v2.DynScreenTab;return t.title!=null&&(i.title=String(t.title)),t.name!=null&&(i.name=String(t.name)),t.defaultTab!=null&&(i.defaultTab=!!t.defaultTab),t.strategyShowOnEntrance!=null&&(i.strategyShowOnEntrance=!!t.strategyShowOnEntrance),t.strategyShowOnRefresh!=null&&(i.strategyShowOnRefresh=!!t.strategyShowOnRefresh),t.strategyShowOnPullUp!=null&&(i.strategyShowOnPullUp=!!t.strategyShowOnPullUp),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.title="",n.name="",n.defaultTab=!1,n.strategyShowOnEntrance=!1,n.strategyShowOnRefresh=!1,n.strategyShowOnPullUp=!1),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),t.defaultTab!=null&&t.hasOwnProperty("defaultTab")&&(n.defaultTab=t.defaultTab),t.strategyShowOnEntrance!=null&&t.hasOwnProperty("strategyShowOnEntrance")&&(n.strategyShowOnEntrance=t.strategyShowOnEntrance),t.strategyShowOnRefresh!=null&&t.hasOwnProperty("strategyShowOnRefresh")&&(n.strategyShowOnRefresh=t.strategyShowOnRefresh),t.strategyShowOnPullUp!=null&&t.hasOwnProperty("strategyShowOnPullUp")&&(n.strategyShowOnPullUp=t.strategyShowOnPullUp),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.DynScreenTab"},e}(),c.DynTab=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.uri=t.string();break}case 3:{o.bubble=t.string();break}case 4:{o.redPoint=t.int32();break}case 5:{o.cityId=t.int64();break}case 6:{o.isPopup=t.int32();break}case 7:{o.popup=u.bilibili.app.dynamic.v2.Popup.decode(t,t.uint32());break}case 8:{o.defaultTab=t.bool();break}case 9:{o.subTitle=t.string();break}case 10:{o.anchor=t.string();break}case 11:{o.internalTest=t.string();break}case 12:{o.type=t.int32();break}case 13:{o.backUp=u.bilibili.app.dynamic.v2.DynTab.decode(t,t.uint32());break}case 14:{o.jumpHomePop=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.DynTab)return t;let i=new u.bilibili.app.dynamic.v2.DynTab;if(t.title!=null&&(i.title=String(t.title)),t.uri!=null&&(i.uri=String(t.uri)),t.bubble!=null&&(i.bubble=String(t.bubble)),t.redPoint!=null&&(i.redPoint=t.redPoint|0),t.cityId!=null&&(r.Long?(i.cityId=r.Long.fromValue(t.cityId)).unsigned=!1:typeof t.cityId=="string"?i.cityId=parseInt(t.cityId,10):typeof t.cityId=="number"?i.cityId=t.cityId:typeof t.cityId=="object"&&(i.cityId=new r.LongBits(t.cityId.low>>>0,t.cityId.high>>>0).toNumber())),t.isPopup!=null&&(i.isPopup=t.isPopup|0),t.popup!=null){if(typeof t.popup!="object")throw TypeError(".bilibili.app.dynamic.v2.DynTab.popup: object expected");i.popup=u.bilibili.app.dynamic.v2.Popup.fromObject(t.popup)}switch(t.defaultTab!=null&&(i.defaultTab=!!t.defaultTab),t.subTitle!=null&&(i.subTitle=String(t.subTitle)),t.anchor!=null&&(i.anchor=String(t.anchor)),t.internalTest!=null&&(i.internalTest=String(t.internalTest)),t.type){default:if(typeof t.type=="number"){i.type=t.type;break}break;case"show_type_none":case 0:i.type=0;break;case"show_type_backup":case 1:i.type=1;break}if(t.backUp!=null){if(typeof t.backUp!="object")throw TypeError(".bilibili.app.dynamic.v2.DynTab.backUp: object expected");i.backUp=u.bilibili.app.dynamic.v2.DynTab.fromObject(t.backUp)}return t.jumpHomePop!=null&&(i.jumpHomePop=String(t.jumpHomePop)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.title="",n.uri="",n.bubble="",n.redPoint=0,r.Long){let o=new r.Long(0,0,!1);n.cityId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.cityId=i.longs===String?"0":0;n.isPopup=0,n.popup=null,n.defaultTab=!1,n.subTitle="",n.anchor="",n.internalTest="",n.type=i.enums===String?"show_type_none":0,n.backUp=null,n.jumpHomePop=""}return t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),t.bubble!=null&&t.hasOwnProperty("bubble")&&(n.bubble=t.bubble),t.redPoint!=null&&t.hasOwnProperty("redPoint")&&(n.redPoint=t.redPoint),t.cityId!=null&&t.hasOwnProperty("cityId")&&(typeof t.cityId=="number"?n.cityId=i.longs===String?String(t.cityId):t.cityId:n.cityId=i.longs===String?r.Long.prototype.toString.call(t.cityId):i.longs===Number?new r.LongBits(t.cityId.low>>>0,t.cityId.high>>>0).toNumber():t.cityId),t.isPopup!=null&&t.hasOwnProperty("isPopup")&&(n.isPopup=t.isPopup),t.popup!=null&&t.hasOwnProperty("popup")&&(n.popup=u.bilibili.app.dynamic.v2.Popup.toObject(t.popup,i)),t.defaultTab!=null&&t.hasOwnProperty("defaultTab")&&(n.defaultTab=t.defaultTab),t.subTitle!=null&&t.hasOwnProperty("subTitle")&&(n.subTitle=t.subTitle),t.anchor!=null&&t.hasOwnProperty("anchor")&&(n.anchor=t.anchor),t.internalTest!=null&&t.hasOwnProperty("internalTest")&&(n.internalTest=t.internalTest),t.type!=null&&t.hasOwnProperty("type")&&(n.type=i.enums===String?u.bilibili.app.dynamic.v2.ShowType[t.type]===void 0?t.type:u.bilibili.app.dynamic.v2.ShowType[t.type]:t.type),t.backUp!=null&&t.hasOwnProperty("backUp")&&(n.backUp=u.bilibili.app.dynamic.v2.DynTab.toObject(t.backUp,i)),t.jumpHomePop!=null&&t.hasOwnProperty("jumpHomePop")&&(n.jumpHomePop=t.jumpHomePop),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.DynTab"},e}(),c.ShowType=function(){let e={},l=Object.create(e);return l[e[0]="show_type_none"]=0,l[e[1]="show_type_backup"]=1,l}(),c.Popup=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.desc=t.string();break}case 3:{o.uri=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.Popup)return t;let i=new u.bilibili.app.dynamic.v2.Popup;return t.title!=null&&(i.title=String(t.title)),t.desc!=null&&(i.desc=String(t.desc)),t.uri!=null&&(i.uri=String(t.uri)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.title="",n.desc="",n.uri=""),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.desc!=null&&t.hasOwnProperty("desc")&&(n.desc=t.desc),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.Popup"},e}(),c.SchoolSearchReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.keyword=t.string();break}case 2:{o.fromType=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.SchoolSearchReq)return t;let i=new u.bilibili.app.dynamic.v2.SchoolSearchReq;switch(t.keyword!=null&&(i.keyword=String(t.keyword)),t.fromType){default:if(typeof t.fromType=="number"){i.fromType=t.fromType;break}break;case"DYNAMIC":case 0:i.fromType=0;break;case"HOME":case 1:i.fromType=1;break}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.keyword="",n.fromType=i.enums===String?"DYNAMIC":0),t.keyword!=null&&t.hasOwnProperty("keyword")&&(n.keyword=t.keyword),t.fromType!=null&&t.hasOwnProperty("fromType")&&(n.fromType=i.enums===String?u.bilibili.app.dynamic.v2.CampusReqFromType[t.fromType]===void 0?t.fromType:u.bilibili.app.dynamic.v2.CampusReqFromType[t.fromType]:t.fromType),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.SchoolSearchReq"},e}(),c.SchoolSearchReply=function(){function e(l){if(this.items=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.items&&o.items.length||(o.items=[]),o.items.push(u.bilibili.app.dynamic.v2.CampusInfo.decode(t,t.uint32()));break}case 2:{o.toast=u.bilibili.app.dynamic.v2.SearchToast.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.SchoolSearchReply)return t;let i=new u.bilibili.app.dynamic.v2.SchoolSearchReply;if(t.items){if(!Array.isArray(t.items))throw TypeError(".bilibili.app.dynamic.v2.SchoolSearchReply.items: array expected");i.items=[];for(let n=0;n>>3){case 1:{o.descText_1=t.string();break}case 2:{o.descText_2=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.SearchToast)return t;let i=new u.bilibili.app.dynamic.v2.SearchToast;return t.descText_1!=null&&(i.descText_1=String(t.descText_1)),t.descText_2!=null&&(i.descText_2=String(t.descText_2)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.descText_1="",n.descText_2=""),t.descText_1!=null&&t.hasOwnProperty("descText_1")&&(n.descText_1=t.descText_1),t.descText_2!=null&&t.hasOwnProperty("descText_2")&&(n.descText_2=t.descText_2),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.SearchToast"},e}(),c.CampusInfo=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.campusId=t.int64();break}case 2:{o.campusName=t.string();break}case 3:{o.desc=t.string();break}case 4:{o.online=t.int64();break}case 5:{o.url=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.CampusInfo)return t;let i=new u.bilibili.app.dynamic.v2.CampusInfo;return t.campusId!=null&&(r.Long?(i.campusId=r.Long.fromValue(t.campusId)).unsigned=!1:typeof t.campusId=="string"?i.campusId=parseInt(t.campusId,10):typeof t.campusId=="number"?i.campusId=t.campusId:typeof t.campusId=="object"&&(i.campusId=new r.LongBits(t.campusId.low>>>0,t.campusId.high>>>0).toNumber())),t.campusName!=null&&(i.campusName=String(t.campusName)),t.desc!=null&&(i.desc=String(t.desc)),t.online!=null&&(r.Long?(i.online=r.Long.fromValue(t.online)).unsigned=!1:typeof t.online=="string"?i.online=parseInt(t.online,10):typeof t.online=="number"?i.online=t.online:typeof t.online=="object"&&(i.online=new r.LongBits(t.online.low>>>0,t.online.high>>>0).toNumber())),t.url!=null&&(i.url=String(t.url)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.campusId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.campusId=i.longs===String?"0":0;if(n.campusName="",n.desc="",r.Long){let o=new r.Long(0,0,!1);n.online=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.online=i.longs===String?"0":0;n.url=""}return t.campusId!=null&&t.hasOwnProperty("campusId")&&(typeof t.campusId=="number"?n.campusId=i.longs===String?String(t.campusId):t.campusId:n.campusId=i.longs===String?r.Long.prototype.toString.call(t.campusId):i.longs===Number?new r.LongBits(t.campusId.low>>>0,t.campusId.high>>>0).toNumber():t.campusId),t.campusName!=null&&t.hasOwnProperty("campusName")&&(n.campusName=t.campusName),t.desc!=null&&t.hasOwnProperty("desc")&&(n.desc=t.desc),t.online!=null&&t.hasOwnProperty("online")&&(typeof t.online=="number"?n.online=i.longs===String?String(t.online):t.online:n.online=i.longs===String?r.Long.prototype.toString.call(t.online):i.longs===Number?new r.LongBits(t.online.low>>>0,t.online.high>>>0).toNumber():t.online),t.url!=null&&t.hasOwnProperty("url")&&(n.url=t.url),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.CampusInfo"},e}(),c.SchoolRecommendReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.lat=t.float();break}case 2:{o.lng=t.float();break}case 3:{o.fromType=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.SchoolRecommendReq)return t;let i=new u.bilibili.app.dynamic.v2.SchoolRecommendReq;switch(t.lat!=null&&(i.lat=Number(t.lat)),t.lng!=null&&(i.lng=Number(t.lng)),t.fromType){default:if(typeof t.fromType=="number"){i.fromType=t.fromType;break}break;case"DYNAMIC":case 0:i.fromType=0;break;case"HOME":case 1:i.fromType=1;break}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.lat=0,n.lng=0,n.fromType=i.enums===String?"DYNAMIC":0),t.lat!=null&&t.hasOwnProperty("lat")&&(n.lat=i.json&&!isFinite(t.lat)?String(t.lat):t.lat),t.lng!=null&&t.hasOwnProperty("lng")&&(n.lng=i.json&&!isFinite(t.lng)?String(t.lng):t.lng),t.fromType!=null&&t.hasOwnProperty("fromType")&&(n.fromType=i.enums===String?u.bilibili.app.dynamic.v2.CampusReqFromType[t.fromType]===void 0?t.fromType:u.bilibili.app.dynamic.v2.CampusReqFromType[t.fromType]:t.fromType),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.SchoolRecommendReq"},e}(),c.SchoolRecommendReply=function(){function e(l){if(this.items=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.items&&o.items.length||(o.items=[]),o.items.push(u.bilibili.app.dynamic.v2.CampusInfo.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.SchoolRecommendReply)return t;let i=new u.bilibili.app.dynamic.v2.SchoolRecommendReply;if(t.items){if(!Array.isArray(t.items))throw TypeError(".bilibili.app.dynamic.v2.SchoolRecommendReply.items: array expected");i.items=[];for(let n=0;n>>3){case 1:{if(o.dynamicIds&&o.dynamicIds.length||(o.dynamicIds=[]),(a&7)===2){let y=t.uint32()+t.pos;for(;t.pos>>0,t.dynamicIds[n].high>>>0).toNumber())}if(t.searchWords){if(!Array.isArray(t.searchWords))throw TypeError(".bilibili.app.dynamic.v2.DynSpaceSearchDetailsReq.searchWords: array expected");i.searchWords=[];for(let n=0;n>>0,t.build.high>>>0).toNumber())),t.mid!=null&&(r.Long?(i.mid=r.Long.fromValue(t.mid)).unsigned=!1:typeof t.mid=="string"?i.mid=parseInt(t.mid,10):typeof t.mid=="number"?i.mid=t.mid:typeof t.mid=="object"&&(i.mid=new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber())),t.platform!=null&&(i.platform=String(t.platform)),t.ip!=null&&(i.ip=String(t.ip)),t.netType){default:if(typeof t.netType=="number"){i.netType=t.netType;break}break;case"NT_UNKNOWN":case 0:i.netType=0;break;case"WIFI":case 1:i.netType=1;break;case"CELLULAR":case 2:i.netType=2;break;case"OFFLINE":case 3:i.netType=3;break;case"OTHERNET":case 4:i.netType=4;break;case"ETHERNET":case 5:i.netType=5;break}switch(t.tfType){default:if(typeof t.tfType=="number"){i.tfType=t.tfType;break}break;case"TF_UNKNOWN":case 0:i.tfType=0;break;case"U_CARD":case 1:i.tfType=1;break;case"U_PKG":case 2:i.tfType=2;break;case"C_CARD":case 3:i.tfType=3;break;case"C_PKG":case 4:i.tfType=4;break;case"T_CARD":case 5:i.tfType=5;break;case"T_PKG":case 6:i.tfType=6;break}return i},e.toObject=function(t,i){i||(i={});let n={};if((i.arrays||i.defaults)&&(n.dynamicIds=[],n.searchWords=[]),i.defaults){if(n.localTime=0,n.playerArgs=null,n.mobiApp="",n.device="",n.buvid="",r.Long){let o=new r.Long(0,0,!1);n.build=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.build=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.mid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mid=i.longs===String?"0":0;n.platform="",n.ip="",n.netType=i.enums===String?"NT_UNKNOWN":0,n.tfType=i.enums===String?"TF_UNKNOWN":0}if(t.dynamicIds&&t.dynamicIds.length){n.dynamicIds=[];for(let o=0;o>>0,t.dynamicIds[o].high>>>0).toNumber():t.dynamicIds[o]}if(t.searchWords&&t.searchWords.length){n.searchWords=[];for(let o=0;o>>0,t.build.high>>>0).toNumber():t.build),t.mid!=null&&t.hasOwnProperty("mid")&&(typeof t.mid=="number"?n.mid=i.longs===String?String(t.mid):t.mid:n.mid=i.longs===String?r.Long.prototype.toString.call(t.mid):i.longs===Number?new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber():t.mid),t.platform!=null&&t.hasOwnProperty("platform")&&(n.platform=t.platform),t.ip!=null&&t.hasOwnProperty("ip")&&(n.ip=t.ip),t.netType!=null&&t.hasOwnProperty("netType")&&(n.netType=i.enums===String?u.bilibili.app.dynamic.v2.NetworkType[t.netType]===void 0?t.netType:u.bilibili.app.dynamic.v2.NetworkType[t.netType]:t.netType),t.tfType!=null&&t.hasOwnProperty("tfType")&&(n.tfType=i.enums===String?u.bilibili.app.dynamic.v2.TFType[t.tfType]===void 0?t.tfType:u.bilibili.app.dynamic.v2.TFType[t.tfType]:t.tfType),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.DynSpaceSearchDetailsReq"},e}(),c.DynSpaceSearchDetailsReply=function(){function e(l){if(this.items={},l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.items===r.emptyObject&&(o.items={});let v=t.uint32()+t.pos;for(a=0,y=null;t.pos>>3){case 1:a=t.int64();break;case 2:y=u.bilibili.app.dynamic.v2.DynamicItem.decode(t,t.uint32());break;default:t.skipType(g&7);break}}o.items[typeof a=="object"?r.longToHash(a):a]=y;break}default:t.skipType(s&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.DynSpaceSearchDetailsReply)return t;let i=new u.bilibili.app.dynamic.v2.DynSpaceSearchDetailsReply;if(t.items){if(typeof t.items!="object")throw TypeError(".bilibili.app.dynamic.v2.DynSpaceSearchDetailsReply.items: object expected");i.items={};for(let n=Object.keys(t.items),o=0;o>>3){case 1:{o.campusId=t.int64();break}case 2:{o.campusName=t.string();break}case 3:{o.offset=t.int64();break}case 4:{o.fromType=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.OfficialAccountsReq)return t;let i=new u.bilibili.app.dynamic.v2.OfficialAccountsReq;switch(t.campusId!=null&&(r.Long?(i.campusId=r.Long.fromValue(t.campusId)).unsigned=!1:typeof t.campusId=="string"?i.campusId=parseInt(t.campusId,10):typeof t.campusId=="number"?i.campusId=t.campusId:typeof t.campusId=="object"&&(i.campusId=new r.LongBits(t.campusId.low>>>0,t.campusId.high>>>0).toNumber())),t.campusName!=null&&(i.campusName=String(t.campusName)),t.offset!=null&&(r.Long?(i.offset=r.Long.fromValue(t.offset)).unsigned=!1:typeof t.offset=="string"?i.offset=parseInt(t.offset,10):typeof t.offset=="number"?i.offset=t.offset:typeof t.offset=="object"&&(i.offset=new r.LongBits(t.offset.low>>>0,t.offset.high>>>0).toNumber())),t.fromType){default:if(typeof t.fromType=="number"){i.fromType=t.fromType;break}break;case"DYNAMIC":case 0:i.fromType=0;break;case"HOME":case 1:i.fromType=1;break}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.campusId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.campusId=i.longs===String?"0":0;if(n.campusName="",r.Long){let o=new r.Long(0,0,!1);n.offset=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.offset=i.longs===String?"0":0;n.fromType=i.enums===String?"DYNAMIC":0}return t.campusId!=null&&t.hasOwnProperty("campusId")&&(typeof t.campusId=="number"?n.campusId=i.longs===String?String(t.campusId):t.campusId:n.campusId=i.longs===String?r.Long.prototype.toString.call(t.campusId):i.longs===Number?new r.LongBits(t.campusId.low>>>0,t.campusId.high>>>0).toNumber():t.campusId),t.campusName!=null&&t.hasOwnProperty("campusName")&&(n.campusName=t.campusName),t.offset!=null&&t.hasOwnProperty("offset")&&(typeof t.offset=="number"?n.offset=i.longs===String?String(t.offset):t.offset:n.offset=i.longs===String?r.Long.prototype.toString.call(t.offset):i.longs===Number?new r.LongBits(t.offset.low>>>0,t.offset.high>>>0).toNumber():t.offset),t.fromType!=null&&t.hasOwnProperty("fromType")&&(n.fromType=i.enums===String?u.bilibili.app.dynamic.v2.CampusReqFromType[t.fromType]===void 0?t.fromType:u.bilibili.app.dynamic.v2.CampusReqFromType[t.fromType]:t.fromType),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.OfficialAccountsReq"},e}(),c.OfficialAccountsReply=function(){function e(l){if(this.items=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.items&&o.items.length||(o.items=[]),o.items.push(u.bilibili.app.dynamic.v2.OfficialAccountInfo.decode(t,t.uint32()));break}case 2:{o.hasMore=t.bool();break}case 3:{o.offset=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.OfficialAccountsReply)return t;let i=new u.bilibili.app.dynamic.v2.OfficialAccountsReply;if(t.items){if(!Array.isArray(t.items))throw TypeError(".bilibili.app.dynamic.v2.OfficialAccountsReply.items: array expected");i.items=[];for(let n=0;n>>0,t.offset.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if((i.arrays||i.defaults)&&(n.items=[]),i.defaults)if(n.hasMore=!1,r.Long){let o=new r.Long(0,0,!1);n.offset=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.offset=i.longs===String?"0":0;if(t.items&&t.items.length){n.items=[];for(let o=0;o>>0,t.offset.high>>>0).toNumber():t.offset),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.OfficialAccountsReply"},e}(),c.OfficialAccountInfo=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.author=u.bilibili.app.dynamic.v2.UserInfo.decode(t,t.uint32());break}case 2:{o.mid=t.int64();break}case 3:{o.uri=t.string();break}case 4:{o.relation=u.bilibili.app.dynamic.v2.Relation.decode(t,t.uint32());break}case 5:{o.descText_1=t.string();break}case 6:{o.descText_2=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.OfficialAccountInfo)return t;let i=new u.bilibili.app.dynamic.v2.OfficialAccountInfo;if(t.author!=null){if(typeof t.author!="object")throw TypeError(".bilibili.app.dynamic.v2.OfficialAccountInfo.author: object expected");i.author=u.bilibili.app.dynamic.v2.UserInfo.fromObject(t.author)}if(t.mid!=null&&(r.Long?(i.mid=r.Long.fromValue(t.mid)).unsigned=!1:typeof t.mid=="string"?i.mid=parseInt(t.mid,10):typeof t.mid=="number"?i.mid=t.mid:typeof t.mid=="object"&&(i.mid=new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber())),t.uri!=null&&(i.uri=String(t.uri)),t.relation!=null){if(typeof t.relation!="object")throw TypeError(".bilibili.app.dynamic.v2.OfficialAccountInfo.relation: object expected");i.relation=u.bilibili.app.dynamic.v2.Relation.fromObject(t.relation)}return t.descText_1!=null&&(i.descText_1=String(t.descText_1)),t.descText_2!=null&&(i.descText_2=String(t.descText_2)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.author=null,r.Long){let o=new r.Long(0,0,!1);n.mid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mid=i.longs===String?"0":0;n.uri="",n.relation=null,n.descText_1="",n.descText_2=""}return t.author!=null&&t.hasOwnProperty("author")&&(n.author=u.bilibili.app.dynamic.v2.UserInfo.toObject(t.author,i)),t.mid!=null&&t.hasOwnProperty("mid")&&(typeof t.mid=="number"?n.mid=i.longs===String?String(t.mid):t.mid:n.mid=i.longs===String?r.Long.prototype.toString.call(t.mid):i.longs===Number?new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber():t.mid),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),t.relation!=null&&t.hasOwnProperty("relation")&&(n.relation=u.bilibili.app.dynamic.v2.Relation.toObject(t.relation,i)),t.descText_1!=null&&t.hasOwnProperty("descText_1")&&(n.descText_1=t.descText_1),t.descText_2!=null&&t.hasOwnProperty("descText_2")&&(n.descText_2=t.descText_2),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.OfficialAccountInfo"},e}(),c.OfficialDynamicsReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.campusId=t.int64();break}case 2:{o.campusName=t.string();break}case 3:{o.offset=t.int64();break}case 4:{o.fromType=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.OfficialDynamicsReq)return t;let i=new u.bilibili.app.dynamic.v2.OfficialDynamicsReq;switch(t.campusId!=null&&(r.Long?(i.campusId=r.Long.fromValue(t.campusId)).unsigned=!1:typeof t.campusId=="string"?i.campusId=parseInt(t.campusId,10):typeof t.campusId=="number"?i.campusId=t.campusId:typeof t.campusId=="object"&&(i.campusId=new r.LongBits(t.campusId.low>>>0,t.campusId.high>>>0).toNumber())),t.campusName!=null&&(i.campusName=String(t.campusName)),t.offset!=null&&(r.Long?(i.offset=r.Long.fromValue(t.offset)).unsigned=!1:typeof t.offset=="string"?i.offset=parseInt(t.offset,10):typeof t.offset=="number"?i.offset=t.offset:typeof t.offset=="object"&&(i.offset=new r.LongBits(t.offset.low>>>0,t.offset.high>>>0).toNumber())),t.fromType){default:if(typeof t.fromType=="number"){i.fromType=t.fromType;break}break;case"DYNAMIC":case 0:i.fromType=0;break;case"HOME":case 1:i.fromType=1;break}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.campusId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.campusId=i.longs===String?"0":0;if(n.campusName="",r.Long){let o=new r.Long(0,0,!1);n.offset=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.offset=i.longs===String?"0":0;n.fromType=i.enums===String?"DYNAMIC":0}return t.campusId!=null&&t.hasOwnProperty("campusId")&&(typeof t.campusId=="number"?n.campusId=i.longs===String?String(t.campusId):t.campusId:n.campusId=i.longs===String?r.Long.prototype.toString.call(t.campusId):i.longs===Number?new r.LongBits(t.campusId.low>>>0,t.campusId.high>>>0).toNumber():t.campusId),t.campusName!=null&&t.hasOwnProperty("campusName")&&(n.campusName=t.campusName),t.offset!=null&&t.hasOwnProperty("offset")&&(typeof t.offset=="number"?n.offset=i.longs===String?String(t.offset):t.offset:n.offset=i.longs===String?r.Long.prototype.toString.call(t.offset):i.longs===Number?new r.LongBits(t.offset.low>>>0,t.offset.high>>>0).toNumber():t.offset),t.fromType!=null&&t.hasOwnProperty("fromType")&&(n.fromType=i.enums===String?u.bilibili.app.dynamic.v2.CampusReqFromType[t.fromType]===void 0?t.fromType:u.bilibili.app.dynamic.v2.CampusReqFromType[t.fromType]:t.fromType),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.OfficialDynamicsReq"},e}(),c.OfficialDynamicsReply=function(){function e(l){if(this.items=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.items&&o.items.length||(o.items=[]),o.items.push(u.bilibili.app.dynamic.v2.OfficialItem.decode(t,t.uint32()));break}case 2:{o.offset=t.int64();break}case 3:{o.hasMore=t.bool();break}case 4:{o.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.OfficialDynamicsReply)return t;let i=new u.bilibili.app.dynamic.v2.OfficialDynamicsReply;if(t.items){if(!Array.isArray(t.items))throw TypeError(".bilibili.app.dynamic.v2.OfficialDynamicsReply.items: array expected");i.items=[];for(let n=0;n>>0,t.offset.high>>>0).toNumber())),t.hasMore!=null&&(i.hasMore=!!t.hasMore),t.playerArgs!=null){if(typeof t.playerArgs!="object")throw TypeError(".bilibili.app.dynamic.v2.OfficialDynamicsReply.playerArgs: object expected");i.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.fromObject(t.playerArgs)}return i},e.toObject=function(t,i){i||(i={});let n={};if((i.arrays||i.defaults)&&(n.items=[]),i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.offset=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.offset=i.longs===String?"0":0;n.hasMore=!1,n.playerArgs=null}if(t.items&&t.items.length){n.items=[];for(let o=0;o>>0,t.offset.high>>>0).toNumber():t.offset),t.hasMore!=null&&t.hasOwnProperty("hasMore")&&(n.hasMore=t.hasMore),t.playerArgs!=null&&t.hasOwnProperty("playerArgs")&&(n.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.toObject(t.playerArgs,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.OfficialDynamicsReply"},e}(),c.OfficialItem=function(){function e(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.type=i.int32();break}case 2:{a.rcmdArchive=u.bilibili.app.dynamic.v2.OfficialRcmdArchive.decode(i,i.uint32());break}case 3:{a.rcmdDynamic=u.bilibili.app.dynamic.v2.OfficialRcmdDynamic.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},e.fromObject=function(i){if(i instanceof u.bilibili.app.dynamic.v2.OfficialItem)return i;let n=new u.bilibili.app.dynamic.v2.OfficialItem;switch(i.type){default:if(typeof i.type=="number"){n.type=i.type;break}break;case"rcmd_archive":case 0:n.type=0;break;case"rcmd_dynamic":case 1:n.type=1;break}if(i.rcmdArchive!=null){if(typeof i.rcmdArchive!="object")throw TypeError(".bilibili.app.dynamic.v2.OfficialItem.rcmdArchive: object expected");n.rcmdArchive=u.bilibili.app.dynamic.v2.OfficialRcmdArchive.fromObject(i.rcmdArchive)}if(i.rcmdDynamic!=null){if(typeof i.rcmdDynamic!="object")throw TypeError(".bilibili.app.dynamic.v2.OfficialItem.rcmdDynamic: object expected");n.rcmdDynamic=u.bilibili.app.dynamic.v2.OfficialRcmdDynamic.fromObject(i.rcmdDynamic)}return n},e.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.type=n.enums===String?"rcmd_archive":0),i.type!=null&&i.hasOwnProperty("type")&&(o.type=n.enums===String?u.bilibili.app.dynamic.v2.RcmdType[i.type]===void 0?i.type:u.bilibili.app.dynamic.v2.RcmdType[i.type]:i.type),i.rcmdArchive!=null&&i.hasOwnProperty("rcmdArchive")&&(o.rcmdArchive=u.bilibili.app.dynamic.v2.OfficialRcmdArchive.toObject(i.rcmdArchive,n),n.oneofs&&(o.rcmdItem="rcmdArchive")),i.rcmdDynamic!=null&&i.hasOwnProperty("rcmdDynamic")&&(o.rcmdDynamic=u.bilibili.app.dynamic.v2.OfficialRcmdDynamic.toObject(i.rcmdDynamic,n),n.oneofs&&(o.rcmdItem="rcmdDynamic")),o},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.app.dynamic.v2.OfficialItem"},e}(),c.OfficialRcmdArchive=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.cover=t.string();break}case 3:{o.coverRightText=t.string();break}case 4:{o.descIcon_1=t.int32();break}case 5:{o.descText_1=t.string();break}case 6:{o.descIcon_2=t.int32();break}case 7:{o.descText_2=t.string();break}case 8:{o.reason=t.string();break}case 9:{o.showThreePoint=t.bool();break}case 10:{o.uri=t.string();break}case 11:{o.aid=t.int64();break}case 12:{o.mid=t.int64();break}case 13:{o.name=t.string();break}case 14:{o.dynamicId=t.int64();break}case 15:{o.cid=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.OfficialRcmdArchive)return t;let i=new u.bilibili.app.dynamic.v2.OfficialRcmdArchive;switch(t.title!=null&&(i.title=String(t.title)),t.cover!=null&&(i.cover=String(t.cover)),t.coverRightText!=null&&(i.coverRightText=String(t.coverRightText)),t.descIcon_1){default:if(typeof t.descIcon_1=="number"){i.descIcon_1=t.descIcon_1;break}break;case"cover_icon_none":case 0:i.descIcon_1=0;break;case"cover_icon_play":case 1:i.descIcon_1=1;break;case"cover_icon_danmaku":case 2:i.descIcon_1=2;break;case"cover_icon_up":case 3:i.descIcon_1=3;break;case"cover_icon_vt":case 4:i.descIcon_1=4;break;case"cover_icon_view_cnt":case 5:i.descIcon_1=5;break;case"cover_icon_thumb_up":case 6:i.descIcon_1=6;break}switch(t.descText_1!=null&&(i.descText_1=String(t.descText_1)),t.descIcon_2){default:if(typeof t.descIcon_2=="number"){i.descIcon_2=t.descIcon_2;break}break;case"cover_icon_none":case 0:i.descIcon_2=0;break;case"cover_icon_play":case 1:i.descIcon_2=1;break;case"cover_icon_danmaku":case 2:i.descIcon_2=2;break;case"cover_icon_up":case 3:i.descIcon_2=3;break;case"cover_icon_vt":case 4:i.descIcon_2=4;break;case"cover_icon_view_cnt":case 5:i.descIcon_2=5;break;case"cover_icon_thumb_up":case 6:i.descIcon_2=6;break}return t.descText_2!=null&&(i.descText_2=String(t.descText_2)),t.reason!=null&&(i.reason=String(t.reason)),t.showThreePoint!=null&&(i.showThreePoint=!!t.showThreePoint),t.uri!=null&&(i.uri=String(t.uri)),t.aid!=null&&(r.Long?(i.aid=r.Long.fromValue(t.aid)).unsigned=!1:typeof t.aid=="string"?i.aid=parseInt(t.aid,10):typeof t.aid=="number"?i.aid=t.aid:typeof t.aid=="object"&&(i.aid=new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber())),t.mid!=null&&(r.Long?(i.mid=r.Long.fromValue(t.mid)).unsigned=!1:typeof t.mid=="string"?i.mid=parseInt(t.mid,10):typeof t.mid=="number"?i.mid=t.mid:typeof t.mid=="object"&&(i.mid=new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber())),t.name!=null&&(i.name=String(t.name)),t.dynamicId!=null&&(r.Long?(i.dynamicId=r.Long.fromValue(t.dynamicId)).unsigned=!1:typeof t.dynamicId=="string"?i.dynamicId=parseInt(t.dynamicId,10):typeof t.dynamicId=="number"?i.dynamicId=t.dynamicId:typeof t.dynamicId=="object"&&(i.dynamicId=new r.LongBits(t.dynamicId.low>>>0,t.dynamicId.high>>>0).toNumber())),t.cid!=null&&(r.Long?(i.cid=r.Long.fromValue(t.cid)).unsigned=!1:typeof t.cid=="string"?i.cid=parseInt(t.cid,10):typeof t.cid=="number"?i.cid=t.cid:typeof t.cid=="object"&&(i.cid=new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.title="",n.cover="",n.coverRightText="",n.descIcon_1=i.enums===String?"cover_icon_none":0,n.descText_1="",n.descIcon_2=i.enums===String?"cover_icon_none":0,n.descText_2="",n.reason="",n.showThreePoint=!1,n.uri="",r.Long){let o=new r.Long(0,0,!1);n.aid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.aid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.mid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mid=i.longs===String?"0":0;if(n.name="",r.Long){let o=new r.Long(0,0,!1);n.dynamicId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.dynamicId=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.cid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.cid=i.longs===String?"0":0}return t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.cover!=null&&t.hasOwnProperty("cover")&&(n.cover=t.cover),t.coverRightText!=null&&t.hasOwnProperty("coverRightText")&&(n.coverRightText=t.coverRightText),t.descIcon_1!=null&&t.hasOwnProperty("descIcon_1")&&(n.descIcon_1=i.enums===String?u.bilibili.app.dynamic.v2.CoverIcon[t.descIcon_1]===void 0?t.descIcon_1:u.bilibili.app.dynamic.v2.CoverIcon[t.descIcon_1]:t.descIcon_1),t.descText_1!=null&&t.hasOwnProperty("descText_1")&&(n.descText_1=t.descText_1),t.descIcon_2!=null&&t.hasOwnProperty("descIcon_2")&&(n.descIcon_2=i.enums===String?u.bilibili.app.dynamic.v2.CoverIcon[t.descIcon_2]===void 0?t.descIcon_2:u.bilibili.app.dynamic.v2.CoverIcon[t.descIcon_2]:t.descIcon_2),t.descText_2!=null&&t.hasOwnProperty("descText_2")&&(n.descText_2=t.descText_2),t.reason!=null&&t.hasOwnProperty("reason")&&(n.reason=t.reason),t.showThreePoint!=null&&t.hasOwnProperty("showThreePoint")&&(n.showThreePoint=t.showThreePoint),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),t.aid!=null&&t.hasOwnProperty("aid")&&(typeof t.aid=="number"?n.aid=i.longs===String?String(t.aid):t.aid:n.aid=i.longs===String?r.Long.prototype.toString.call(t.aid):i.longs===Number?new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber():t.aid),t.mid!=null&&t.hasOwnProperty("mid")&&(typeof t.mid=="number"?n.mid=i.longs===String?String(t.mid):t.mid:n.mid=i.longs===String?r.Long.prototype.toString.call(t.mid):i.longs===Number?new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber():t.mid),t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),t.dynamicId!=null&&t.hasOwnProperty("dynamicId")&&(typeof t.dynamicId=="number"?n.dynamicId=i.longs===String?String(t.dynamicId):t.dynamicId:n.dynamicId=i.longs===String?r.Long.prototype.toString.call(t.dynamicId):i.longs===Number?new r.LongBits(t.dynamicId.low>>>0,t.dynamicId.high>>>0).toNumber():t.dynamicId),t.cid!=null&&t.hasOwnProperty("cid")&&(typeof t.cid=="number"?n.cid=i.longs===String?String(t.cid):t.cid:n.cid=i.longs===String?r.Long.prototype.toString.call(t.cid):i.longs===Number?new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber():t.cid),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.OfficialRcmdArchive"},e}(),c.OfficialRcmdDynamic=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.cover=t.string();break}case 3:{o.coverRightTopText=t.string();break}case 4:{o.descIcon_1=t.int32();break}case 5:{o.descText_1=t.string();break}case 6:{o.descIcon_2=t.int32();break}case 7:{o.descText_2=t.string();break}case 8:{o.reason=t.string();break}case 9:{o.uri=t.string();break}case 10:{o.dynamicId=t.int64();break}case 11:{o.mid=t.int64();break}case 12:{o.userName=t.string();break}case 13:{o.rid=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.OfficialRcmdDynamic)return t;let i=new u.bilibili.app.dynamic.v2.OfficialRcmdDynamic;switch(t.title!=null&&(i.title=String(t.title)),t.cover!=null&&(i.cover=String(t.cover)),t.coverRightTopText!=null&&(i.coverRightTopText=String(t.coverRightTopText)),t.descIcon_1){default:if(typeof t.descIcon_1=="number"){i.descIcon_1=t.descIcon_1;break}break;case"cover_icon_none":case 0:i.descIcon_1=0;break;case"cover_icon_play":case 1:i.descIcon_1=1;break;case"cover_icon_danmaku":case 2:i.descIcon_1=2;break;case"cover_icon_up":case 3:i.descIcon_1=3;break;case"cover_icon_vt":case 4:i.descIcon_1=4;break;case"cover_icon_view_cnt":case 5:i.descIcon_1=5;break;case"cover_icon_thumb_up":case 6:i.descIcon_1=6;break}switch(t.descText_1!=null&&(i.descText_1=String(t.descText_1)),t.descIcon_2){default:if(typeof t.descIcon_2=="number"){i.descIcon_2=t.descIcon_2;break}break;case"cover_icon_none":case 0:i.descIcon_2=0;break;case"cover_icon_play":case 1:i.descIcon_2=1;break;case"cover_icon_danmaku":case 2:i.descIcon_2=2;break;case"cover_icon_up":case 3:i.descIcon_2=3;break;case"cover_icon_vt":case 4:i.descIcon_2=4;break;case"cover_icon_view_cnt":case 5:i.descIcon_2=5;break;case"cover_icon_thumb_up":case 6:i.descIcon_2=6;break}return t.descText_2!=null&&(i.descText_2=String(t.descText_2)),t.reason!=null&&(i.reason=String(t.reason)),t.uri!=null&&(i.uri=String(t.uri)),t.dynamicId!=null&&(r.Long?(i.dynamicId=r.Long.fromValue(t.dynamicId)).unsigned=!1:typeof t.dynamicId=="string"?i.dynamicId=parseInt(t.dynamicId,10):typeof t.dynamicId=="number"?i.dynamicId=t.dynamicId:typeof t.dynamicId=="object"&&(i.dynamicId=new r.LongBits(t.dynamicId.low>>>0,t.dynamicId.high>>>0).toNumber())),t.mid!=null&&(r.Long?(i.mid=r.Long.fromValue(t.mid)).unsigned=!1:typeof t.mid=="string"?i.mid=parseInt(t.mid,10):typeof t.mid=="number"?i.mid=t.mid:typeof t.mid=="object"&&(i.mid=new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber())),t.userName!=null&&(i.userName=String(t.userName)),t.rid!=null&&(r.Long?(i.rid=r.Long.fromValue(t.rid)).unsigned=!1:typeof t.rid=="string"?i.rid=parseInt(t.rid,10):typeof t.rid=="number"?i.rid=t.rid:typeof t.rid=="object"&&(i.rid=new r.LongBits(t.rid.low>>>0,t.rid.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.title="",n.cover="",n.coverRightTopText="",n.descIcon_1=i.enums===String?"cover_icon_none":0,n.descText_1="",n.descIcon_2=i.enums===String?"cover_icon_none":0,n.descText_2="",n.reason="",n.uri="",r.Long){let o=new r.Long(0,0,!1);n.dynamicId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.dynamicId=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.mid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mid=i.longs===String?"0":0;if(n.userName="",r.Long){let o=new r.Long(0,0,!1);n.rid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.rid=i.longs===String?"0":0}return t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.cover!=null&&t.hasOwnProperty("cover")&&(n.cover=t.cover),t.coverRightTopText!=null&&t.hasOwnProperty("coverRightTopText")&&(n.coverRightTopText=t.coverRightTopText),t.descIcon_1!=null&&t.hasOwnProperty("descIcon_1")&&(n.descIcon_1=i.enums===String?u.bilibili.app.dynamic.v2.CoverIcon[t.descIcon_1]===void 0?t.descIcon_1:u.bilibili.app.dynamic.v2.CoverIcon[t.descIcon_1]:t.descIcon_1),t.descText_1!=null&&t.hasOwnProperty("descText_1")&&(n.descText_1=t.descText_1),t.descIcon_2!=null&&t.hasOwnProperty("descIcon_2")&&(n.descIcon_2=i.enums===String?u.bilibili.app.dynamic.v2.CoverIcon[t.descIcon_2]===void 0?t.descIcon_2:u.bilibili.app.dynamic.v2.CoverIcon[t.descIcon_2]:t.descIcon_2),t.descText_2!=null&&t.hasOwnProperty("descText_2")&&(n.descText_2=t.descText_2),t.reason!=null&&t.hasOwnProperty("reason")&&(n.reason=t.reason),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),t.dynamicId!=null&&t.hasOwnProperty("dynamicId")&&(typeof t.dynamicId=="number"?n.dynamicId=i.longs===String?String(t.dynamicId):t.dynamicId:n.dynamicId=i.longs===String?r.Long.prototype.toString.call(t.dynamicId):i.longs===Number?new r.LongBits(t.dynamicId.low>>>0,t.dynamicId.high>>>0).toNumber():t.dynamicId),t.mid!=null&&t.hasOwnProperty("mid")&&(typeof t.mid=="number"?n.mid=i.longs===String?String(t.mid):t.mid:n.mid=i.longs===String?r.Long.prototype.toString.call(t.mid):i.longs===Number?new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber():t.mid),t.userName!=null&&t.hasOwnProperty("userName")&&(n.userName=t.userName),t.rid!=null&&t.hasOwnProperty("rid")&&(typeof t.rid=="number"?n.rid=i.longs===String?String(t.rid):t.rid:n.rid=i.longs===String?r.Long.prototype.toString.call(t.rid):i.longs===Number?new r.LongBits(t.rid.low>>>0,t.rid.high>>>0).toNumber():t.rid),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.OfficialRcmdDynamic"},e}(),c.CampusRedDotReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.campusId=t.int64();break}case 2:{o.fromType=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.CampusRedDotReq)return t;let i=new u.bilibili.app.dynamic.v2.CampusRedDotReq;switch(t.campusId!=null&&(r.Long?(i.campusId=r.Long.fromValue(t.campusId)).unsigned=!1:typeof t.campusId=="string"?i.campusId=parseInt(t.campusId,10):typeof t.campusId=="number"?i.campusId=t.campusId:typeof t.campusId=="object"&&(i.campusId=new r.LongBits(t.campusId.low>>>0,t.campusId.high>>>0).toNumber())),t.fromType){default:if(typeof t.fromType=="number"){i.fromType=t.fromType;break}break;case"DYNAMIC":case 0:i.fromType=0;break;case"HOME":case 1:i.fromType=1;break}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.campusId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.campusId=i.longs===String?"0":0;n.fromType=i.enums===String?"DYNAMIC":0}return t.campusId!=null&&t.hasOwnProperty("campusId")&&(typeof t.campusId=="number"?n.campusId=i.longs===String?String(t.campusId):t.campusId:n.campusId=i.longs===String?r.Long.prototype.toString.call(t.campusId):i.longs===Number?new r.LongBits(t.campusId.low>>>0,t.campusId.high>>>0).toNumber():t.campusId),t.fromType!=null&&t.hasOwnProperty("fromType")&&(n.fromType=i.enums===String?u.bilibili.app.dynamic.v2.CampusReqFromType[t.fromType]===void 0?t.fromType:u.bilibili.app.dynamic.v2.CampusReqFromType[t.fromType]:t.fromType),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.CampusRedDotReq"},e}(),c.CampusRedDotReply=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.redDot=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.CampusRedDotReply)return t;let i=new u.bilibili.app.dynamic.v2.CampusRedDotReply;return t.redDot!=null&&(i.redDot=t.redDot|0),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.redDot=0),t.redDot!=null&&t.hasOwnProperty("redDot")&&(n.redDot=t.redDot),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.CampusRedDotReply"},e}(),c.CampusRcmdFeedReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.campusId=t.int64();break}case 2:{o.firstTime=t.int32();break}case 3:{o.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.decode(t,t.uint32());break}case 4:{o.localTime=t.int32();break}case 5:{o.page=t.int32();break}case 6:{o.scroll=t.int32();break}case 7:{o.viewDynId=t.string();break}case 8:{o.fromType=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.CampusRcmdFeedReq)return t;let i=new u.bilibili.app.dynamic.v2.CampusRcmdFeedReq;if(t.campusId!=null&&(r.Long?(i.campusId=r.Long.fromValue(t.campusId)).unsigned=!1:typeof t.campusId=="string"?i.campusId=parseInt(t.campusId,10):typeof t.campusId=="number"?i.campusId=t.campusId:typeof t.campusId=="object"&&(i.campusId=new r.LongBits(t.campusId.low>>>0,t.campusId.high>>>0).toNumber())),t.firstTime!=null&&(i.firstTime=t.firstTime|0),t.playerArgs!=null){if(typeof t.playerArgs!="object")throw TypeError(".bilibili.app.dynamic.v2.CampusRcmdFeedReq.playerArgs: object expected");i.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.fromObject(t.playerArgs)}switch(t.localTime!=null&&(i.localTime=t.localTime|0),t.page!=null&&(i.page=t.page|0),t.scroll!=null&&(i.scroll=t.scroll|0),t.viewDynId!=null&&(i.viewDynId=String(t.viewDynId)),t.fromType){default:if(typeof t.fromType=="number"){i.fromType=t.fromType;break}break;case"DYNAMIC":case 0:i.fromType=0;break;case"HOME":case 1:i.fromType=1;break}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.campusId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.campusId=i.longs===String?"0":0;n.firstTime=0,n.playerArgs=null,n.localTime=0,n.page=0,n.scroll=0,n.viewDynId="",n.fromType=i.enums===String?"DYNAMIC":0}return t.campusId!=null&&t.hasOwnProperty("campusId")&&(typeof t.campusId=="number"?n.campusId=i.longs===String?String(t.campusId):t.campusId:n.campusId=i.longs===String?r.Long.prototype.toString.call(t.campusId):i.longs===Number?new r.LongBits(t.campusId.low>>>0,t.campusId.high>>>0).toNumber():t.campusId),t.firstTime!=null&&t.hasOwnProperty("firstTime")&&(n.firstTime=t.firstTime),t.playerArgs!=null&&t.hasOwnProperty("playerArgs")&&(n.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.toObject(t.playerArgs,i)),t.localTime!=null&&t.hasOwnProperty("localTime")&&(n.localTime=t.localTime),t.page!=null&&t.hasOwnProperty("page")&&(n.page=t.page),t.scroll!=null&&t.hasOwnProperty("scroll")&&(n.scroll=t.scroll),t.viewDynId!=null&&t.hasOwnProperty("viewDynId")&&(n.viewDynId=t.viewDynId),t.fromType!=null&&t.hasOwnProperty("fromType")&&(n.fromType=i.enums===String?u.bilibili.app.dynamic.v2.CampusReqFromType[t.fromType]===void 0?t.fromType:u.bilibili.app.dynamic.v2.CampusReqFromType[t.fromType]:t.fromType),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.CampusRcmdFeedReq"},e}(),c.CampusRcmdFeedReply=function(){function e(l){if(this.list=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.list&&o.list.length||(o.list=[]),o.list.push(u.bilibili.app.dynamic.v2.DynamicItem.decode(t,t.uint32()));break}case 2:{o.toast=t.string();break}case 3:{o.guideBar=u.bilibili.app.dynamic.v2.GuideBarInfo.decode(t,t.uint32());break}case 4:{o.hasMore=t.bool();break}case 5:{o.update=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.CampusRcmdFeedReply)return t;let i=new u.bilibili.app.dynamic.v2.CampusRcmdFeedReply;if(t.list){if(!Array.isArray(t.list))throw TypeError(".bilibili.app.dynamic.v2.CampusRcmdFeedReply.list: array expected");i.list=[];for(let n=0;n>>3){case 1:{o.show=t.int32();break}case 2:{o.page=t.int32();break}case 3:{o.position=t.int32();break}case 4:{o.desc=t.string();break}case 5:{o.jumpPage=t.int32();break}case 6:{o.jumpPosition=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.GuideBarInfo)return t;let i=new u.bilibili.app.dynamic.v2.GuideBarInfo;return t.show!=null&&(i.show=t.show|0),t.page!=null&&(i.page=t.page|0),t.position!=null&&(i.position=t.position|0),t.desc!=null&&(i.desc=String(t.desc)),t.jumpPage!=null&&(i.jumpPage=t.jumpPage|0),t.jumpPosition!=null&&(i.jumpPosition=t.jumpPosition|0),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.show=0,n.page=0,n.position=0,n.desc="",n.jumpPage=0,n.jumpPosition=0),t.show!=null&&t.hasOwnProperty("show")&&(n.show=t.show),t.page!=null&&t.hasOwnProperty("page")&&(n.page=t.page),t.position!=null&&t.hasOwnProperty("position")&&(n.position=t.position),t.desc!=null&&t.hasOwnProperty("desc")&&(n.desc=t.desc),t.jumpPage!=null&&t.hasOwnProperty("jumpPage")&&(n.jumpPage=t.jumpPage),t.jumpPosition!=null&&t.hasOwnProperty("jumpPosition")&&(n.jumpPosition=t.jumpPosition),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.GuideBarInfo"},e}(),c.TopicSquareReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.campusId=t.int64();break}case 2:{o.fromType=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.TopicSquareReq)return t;let i=new u.bilibili.app.dynamic.v2.TopicSquareReq;switch(t.campusId!=null&&(r.Long?(i.campusId=r.Long.fromValue(t.campusId)).unsigned=!1:typeof t.campusId=="string"?i.campusId=parseInt(t.campusId,10):typeof t.campusId=="number"?i.campusId=t.campusId:typeof t.campusId=="object"&&(i.campusId=new r.LongBits(t.campusId.low>>>0,t.campusId.high>>>0).toNumber())),t.fromType){default:if(typeof t.fromType=="number"){i.fromType=t.fromType;break}break;case"DYNAMIC":case 0:i.fromType=0;break;case"HOME":case 1:i.fromType=1;break}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.campusId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.campusId=i.longs===String?"0":0;n.fromType=i.enums===String?"DYNAMIC":0}return t.campusId!=null&&t.hasOwnProperty("campusId")&&(typeof t.campusId=="number"?n.campusId=i.longs===String?String(t.campusId):t.campusId:n.campusId=i.longs===String?r.Long.prototype.toString.call(t.campusId):i.longs===Number?new r.LongBits(t.campusId.low>>>0,t.campusId.high>>>0).toNumber():t.campusId),t.fromType!=null&&t.hasOwnProperty("fromType")&&(n.fromType=i.enums===String?u.bilibili.app.dynamic.v2.CampusReqFromType[t.fromType]===void 0?t.fromType:u.bilibili.app.dynamic.v2.CampusReqFromType[t.fromType]:t.fromType),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.TopicSquareReq"},e}(),c.TopicSquareReply=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.info=u.bilibili.app.dynamic.v2.TopicSquareInfo.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.TopicSquareReply)return t;let i=new u.bilibili.app.dynamic.v2.TopicSquareReply;if(t.info!=null){if(typeof t.info!="object")throw TypeError(".bilibili.app.dynamic.v2.TopicSquareReply.info: object expected");i.info=u.bilibili.app.dynamic.v2.TopicSquareInfo.fromObject(t.info)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.info=null),t.info!=null&&t.hasOwnProperty("info")&&(n.info=u.bilibili.app.dynamic.v2.TopicSquareInfo.toObject(t.info,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.TopicSquareReply"},e}(),c.TopicSquareInfo=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.button=u.bilibili.app.dynamic.v2.CampusLabel.decode(t,t.uint32());break}case 3:{o.rcmd=u.bilibili.app.dynamic.v2.TopicRcmdCard.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.TopicSquareInfo)return t;let i=new u.bilibili.app.dynamic.v2.TopicSquareInfo;if(t.title!=null&&(i.title=String(t.title)),t.button!=null){if(typeof t.button!="object")throw TypeError(".bilibili.app.dynamic.v2.TopicSquareInfo.button: object expected");i.button=u.bilibili.app.dynamic.v2.CampusLabel.fromObject(t.button)}if(t.rcmd!=null){if(typeof t.rcmd!="object")throw TypeError(".bilibili.app.dynamic.v2.TopicSquareInfo.rcmd: object expected");i.rcmd=u.bilibili.app.dynamic.v2.TopicRcmdCard.fromObject(t.rcmd)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.title="",n.button=null,n.rcmd=null),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.button!=null&&t.hasOwnProperty("button")&&(n.button=u.bilibili.app.dynamic.v2.CampusLabel.toObject(t.button,i)),t.rcmd!=null&&t.hasOwnProperty("rcmd")&&(n.rcmd=u.bilibili.app.dynamic.v2.TopicRcmdCard.toObject(t.rcmd,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.TopicSquareInfo"},e}(),c.TopicRcmdCard=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.topicId=t.int64();break}case 2:{o.topicName=t.string();break}case 3:{o.url=t.string();break}case 4:{o.button=u.bilibili.app.dynamic.v2.CampusLabel.decode(t,t.uint32());break}case 5:{o.desc_1=t.string();break}case 6:{o.desc_2=t.string();break}case 7:{o.updateDesc=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.TopicRcmdCard)return t;let i=new u.bilibili.app.dynamic.v2.TopicRcmdCard;if(t.topicId!=null&&(r.Long?(i.topicId=r.Long.fromValue(t.topicId)).unsigned=!1:typeof t.topicId=="string"?i.topicId=parseInt(t.topicId,10):typeof t.topicId=="number"?i.topicId=t.topicId:typeof t.topicId=="object"&&(i.topicId=new r.LongBits(t.topicId.low>>>0,t.topicId.high>>>0).toNumber())),t.topicName!=null&&(i.topicName=String(t.topicName)),t.url!=null&&(i.url=String(t.url)),t.button!=null){if(typeof t.button!="object")throw TypeError(".bilibili.app.dynamic.v2.TopicRcmdCard.button: object expected");i.button=u.bilibili.app.dynamic.v2.CampusLabel.fromObject(t.button)}return t.desc_1!=null&&(i.desc_1=String(t.desc_1)),t.desc_2!=null&&(i.desc_2=String(t.desc_2)),t.updateDesc!=null&&(i.updateDesc=String(t.updateDesc)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.topicId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.topicId=i.longs===String?"0":0;n.topicName="",n.url="",n.button=null,n.desc_1="",n.desc_2="",n.updateDesc=""}return t.topicId!=null&&t.hasOwnProperty("topicId")&&(typeof t.topicId=="number"?n.topicId=i.longs===String?String(t.topicId):t.topicId:n.topicId=i.longs===String?r.Long.prototype.toString.call(t.topicId):i.longs===Number?new r.LongBits(t.topicId.low>>>0,t.topicId.high>>>0).toNumber():t.topicId),t.topicName!=null&&t.hasOwnProperty("topicName")&&(n.topicName=t.topicName),t.url!=null&&t.hasOwnProperty("url")&&(n.url=t.url),t.button!=null&&t.hasOwnProperty("button")&&(n.button=u.bilibili.app.dynamic.v2.CampusLabel.toObject(t.button,i)),t.desc_1!=null&&t.hasOwnProperty("desc_1")&&(n.desc_1=t.desc_1),t.desc_2!=null&&t.hasOwnProperty("desc_2")&&(n.desc_2=t.desc_2),t.updateDesc!=null&&t.hasOwnProperty("updateDesc")&&(n.updateDesc=t.updateDesc),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.TopicRcmdCard"},e}(),c.TopicListReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.campusId=t.int64();break}case 2:{o.offset=t.string();break}case 3:{o.fromType=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.TopicListReq)return t;let i=new u.bilibili.app.dynamic.v2.TopicListReq;switch(t.campusId!=null&&(r.Long?(i.campusId=r.Long.fromValue(t.campusId)).unsigned=!1:typeof t.campusId=="string"?i.campusId=parseInt(t.campusId,10):typeof t.campusId=="number"?i.campusId=t.campusId:typeof t.campusId=="object"&&(i.campusId=new r.LongBits(t.campusId.low>>>0,t.campusId.high>>>0).toNumber())),t.offset!=null&&(i.offset=String(t.offset)),t.fromType){default:if(typeof t.fromType=="number"){i.fromType=t.fromType;break}break;case"DYNAMIC":case 0:i.fromType=0;break;case"HOME":case 1:i.fromType=1;break}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.campusId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.campusId=i.longs===String?"0":0;n.offset="",n.fromType=i.enums===String?"DYNAMIC":0}return t.campusId!=null&&t.hasOwnProperty("campusId")&&(typeof t.campusId=="number"?n.campusId=i.longs===String?String(t.campusId):t.campusId:n.campusId=i.longs===String?r.Long.prototype.toString.call(t.campusId):i.longs===Number?new r.LongBits(t.campusId.low>>>0,t.campusId.high>>>0).toNumber():t.campusId),t.offset!=null&&t.hasOwnProperty("offset")&&(n.offset=t.offset),t.fromType!=null&&t.hasOwnProperty("fromType")&&(n.fromType=i.enums===String?u.bilibili.app.dynamic.v2.CampusReqFromType[t.fromType]===void 0?t.fromType:u.bilibili.app.dynamic.v2.CampusReqFromType[t.fromType]:t.fromType),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.TopicListReq"},e}(),c.TopicListReply=function(){function e(l){if(this.items=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.items&&o.items.length||(o.items=[]),o.items.push(u.bilibili.app.dynamic.v2.TopicItem.decode(t,t.uint32()));break}case 2:{o.hasMore=t.bool();break}case 3:{o.offset=t.string();break}case 4:{o.createTopicBtn=u.bilibili.app.dynamic.v2.IconButton.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.TopicListReply)return t;let i=new u.bilibili.app.dynamic.v2.TopicListReply;if(t.items){if(!Array.isArray(t.items))throw TypeError(".bilibili.app.dynamic.v2.TopicListReply.items: array expected");i.items=[];for(let n=0;n>>3){case 1:{o.dynamicId=t.int64();break}case 2:{o.fromType=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.CampusMateLikeListReq)return t;let i=new u.bilibili.app.dynamic.v2.CampusMateLikeListReq;switch(t.dynamicId!=null&&(r.Long?(i.dynamicId=r.Long.fromValue(t.dynamicId)).unsigned=!1:typeof t.dynamicId=="string"?i.dynamicId=parseInt(t.dynamicId,10):typeof t.dynamicId=="number"?i.dynamicId=t.dynamicId:typeof t.dynamicId=="object"&&(i.dynamicId=new r.LongBits(t.dynamicId.low>>>0,t.dynamicId.high>>>0).toNumber())),t.fromType){default:if(typeof t.fromType=="number"){i.fromType=t.fromType;break}break;case"DYNAMIC":case 0:i.fromType=0;break;case"HOME":case 1:i.fromType=1;break}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.dynamicId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.dynamicId=i.longs===String?"0":0;n.fromType=i.enums===String?"DYNAMIC":0}return t.dynamicId!=null&&t.hasOwnProperty("dynamicId")&&(typeof t.dynamicId=="number"?n.dynamicId=i.longs===String?String(t.dynamicId):t.dynamicId:n.dynamicId=i.longs===String?r.Long.prototype.toString.call(t.dynamicId):i.longs===Number?new r.LongBits(t.dynamicId.low>>>0,t.dynamicId.high>>>0).toNumber():t.dynamicId),t.fromType!=null&&t.hasOwnProperty("fromType")&&(n.fromType=i.enums===String?u.bilibili.app.dynamic.v2.CampusReqFromType[t.fromType]===void 0?t.fromType:u.bilibili.app.dynamic.v2.CampusReqFromType[t.fromType]:t.fromType),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.CampusMateLikeListReq"},e}(),c.CampusMateLikeListReply=function(){function e(l){if(this.list=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.list&&o.list.length||(o.list=[]),o.list.push(u.bilibili.app.dynamic.v2.ModuleAuthor.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.CampusMateLikeListReply)return t;let i=new u.bilibili.app.dynamic.v2.CampusMateLikeListReply;if(t.list){if(!Array.isArray(t.list))throw TypeError(".bilibili.app.dynamic.v2.CampusMateLikeListReply.list: array expected");i.list=[];for(let n=0;n>>3){case 1:{o.infos&&o.infos.length||(o.infos=[]),o.infos.push(u.bilibili.app.dynamic.v2.CampusFeedbackInfo.decode(t,t.uint32()));break}case 2:{o.from=t.int32();break}case 3:{o.fromType=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.CampusFeedbackReq)return t;let i=new u.bilibili.app.dynamic.v2.CampusFeedbackReq;if(t.infos){if(!Array.isArray(t.infos))throw TypeError(".bilibili.app.dynamic.v2.CampusFeedbackReq.infos: array expected");i.infos=[];for(let n=0;n>>3){case 1:{o.bizType=t.int32();break}case 2:{o.bizId=t.int64();break}case 3:{o.campusId=t.int64();break}case 4:{o.reason=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.CampusFeedbackInfo)return t;let i=new u.bilibili.app.dynamic.v2.CampusFeedbackInfo;return t.bizType!=null&&(i.bizType=t.bizType|0),t.bizId!=null&&(r.Long?(i.bizId=r.Long.fromValue(t.bizId)).unsigned=!1:typeof t.bizId=="string"?i.bizId=parseInt(t.bizId,10):typeof t.bizId=="number"?i.bizId=t.bizId:typeof t.bizId=="object"&&(i.bizId=new r.LongBits(t.bizId.low>>>0,t.bizId.high>>>0).toNumber())),t.campusId!=null&&(r.Long?(i.campusId=r.Long.fromValue(t.campusId)).unsigned=!1:typeof t.campusId=="string"?i.campusId=parseInt(t.campusId,10):typeof t.campusId=="number"?i.campusId=t.campusId:typeof t.campusId=="object"&&(i.campusId=new r.LongBits(t.campusId.low>>>0,t.campusId.high>>>0).toNumber())),t.reason!=null&&(i.reason=String(t.reason)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.bizType=0,r.Long){let o=new r.Long(0,0,!1);n.bizId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.bizId=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.campusId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.campusId=i.longs===String?"0":0;n.reason=""}return t.bizType!=null&&t.hasOwnProperty("bizType")&&(n.bizType=t.bizType),t.bizId!=null&&t.hasOwnProperty("bizId")&&(typeof t.bizId=="number"?n.bizId=i.longs===String?String(t.bizId):t.bizId:n.bizId=i.longs===String?r.Long.prototype.toString.call(t.bizId):i.longs===Number?new r.LongBits(t.bizId.low>>>0,t.bizId.high>>>0).toNumber():t.bizId),t.campusId!=null&&t.hasOwnProperty("campusId")&&(typeof t.campusId=="number"?n.campusId=i.longs===String?String(t.campusId):t.campusId:n.campusId=i.longs===String?r.Long.prototype.toString.call(t.campusId):i.longs===Number?new r.LongBits(t.campusId.low>>>0,t.campusId.high>>>0).toNumber():t.campusId),t.reason!=null&&t.hasOwnProperty("reason")&&(n.reason=t.reason),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.CampusFeedbackInfo"},e}(),c.CampusFeedbackReply=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.message=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.CampusFeedbackReply)return t;let i=new u.bilibili.app.dynamic.v2.CampusFeedbackReply;return t.message!=null&&(i.message=String(t.message)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.message=""),t.message!=null&&t.hasOwnProperty("message")&&(n.message=t.message),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.CampusFeedbackReply"},e}(),c.CampusBillBoardReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.campusId=t.int64();break}case 2:{o.versionCode=t.string();break}case 3:{o.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.decode(t,t.uint32());break}case 4:{o.fromType=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.CampusBillBoardReq)return t;let i=new u.bilibili.app.dynamic.v2.CampusBillBoardReq;if(t.campusId!=null&&(r.Long?(i.campusId=r.Long.fromValue(t.campusId)).unsigned=!1:typeof t.campusId=="string"?i.campusId=parseInt(t.campusId,10):typeof t.campusId=="number"?i.campusId=t.campusId:typeof t.campusId=="object"&&(i.campusId=new r.LongBits(t.campusId.low>>>0,t.campusId.high>>>0).toNumber())),t.versionCode!=null&&(i.versionCode=String(t.versionCode)),t.playerArgs!=null){if(typeof t.playerArgs!="object")throw TypeError(".bilibili.app.dynamic.v2.CampusBillBoardReq.playerArgs: object expected");i.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.fromObject(t.playerArgs)}switch(t.fromType){default:if(typeof t.fromType=="number"){i.fromType=t.fromType;break}break;case"DYNAMIC":case 0:i.fromType=0;break;case"HOME":case 1:i.fromType=1;break}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.campusId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.campusId=i.longs===String?"0":0;n.versionCode="",n.playerArgs=null,n.fromType=i.enums===String?"DYNAMIC":0}return t.campusId!=null&&t.hasOwnProperty("campusId")&&(typeof t.campusId=="number"?n.campusId=i.longs===String?String(t.campusId):t.campusId:n.campusId=i.longs===String?r.Long.prototype.toString.call(t.campusId):i.longs===Number?new r.LongBits(t.campusId.low>>>0,t.campusId.high>>>0).toNumber():t.campusId),t.versionCode!=null&&t.hasOwnProperty("versionCode")&&(n.versionCode=t.versionCode),t.playerArgs!=null&&t.hasOwnProperty("playerArgs")&&(n.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.toObject(t.playerArgs,i)),t.fromType!=null&&t.hasOwnProperty("fromType")&&(n.fromType=i.enums===String?u.bilibili.app.dynamic.v2.CampusReqFromType[t.fromType]===void 0?t.fromType:u.bilibili.app.dynamic.v2.CampusReqFromType[t.fromType]:t.fromType),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.CampusBillBoardReq"},e}(),c.CampusBillboardInternalReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.mid=t.int64();break}case 2:{o.campusId=t.int64();break}case 3:{o.versionCode=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.CampusBillboardInternalReq)return t;let i=new u.bilibili.app.dynamic.v2.CampusBillboardInternalReq;return t.mid!=null&&(r.Long?(i.mid=r.Long.fromValue(t.mid)).unsigned=!1:typeof t.mid=="string"?i.mid=parseInt(t.mid,10):typeof t.mid=="number"?i.mid=t.mid:typeof t.mid=="object"&&(i.mid=new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber())),t.campusId!=null&&(r.Long?(i.campusId=r.Long.fromValue(t.campusId)).unsigned=!1:typeof t.campusId=="string"?i.campusId=parseInt(t.campusId,10):typeof t.campusId=="number"?i.campusId=t.campusId:typeof t.campusId=="object"&&(i.campusId=new r.LongBits(t.campusId.low>>>0,t.campusId.high>>>0).toNumber())),t.versionCode!=null&&(i.versionCode=String(t.versionCode)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.mid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.campusId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.campusId=i.longs===String?"0":0;n.versionCode=""}return t.mid!=null&&t.hasOwnProperty("mid")&&(typeof t.mid=="number"?n.mid=i.longs===String?String(t.mid):t.mid:n.mid=i.longs===String?r.Long.prototype.toString.call(t.mid):i.longs===Number?new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber():t.mid),t.campusId!=null&&t.hasOwnProperty("campusId")&&(typeof t.campusId=="number"?n.campusId=i.longs===String?String(t.campusId):t.campusId:n.campusId=i.longs===String?r.Long.prototype.toString.call(t.campusId):i.longs===Number?new r.LongBits(t.campusId.low>>>0,t.campusId.high>>>0).toNumber():t.campusId),t.versionCode!=null&&t.hasOwnProperty("versionCode")&&(n.versionCode=t.versionCode),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.CampusBillboardInternalReq"},e}(),c.CampusBillBoardReply=function(){function e(l){if(this.list=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.helpUri=t.string();break}case 3:{o.campusName=t.string();break}case 4:{o.buildTime=t.int64();break}case 5:{o.versionCode=t.string();break}case 6:{o.list&&o.list.length||(o.list=[]),o.list.push(u.bilibili.app.dynamic.v2.OfficialItem.decode(t,t.uint32()));break}case 7:{o.shareUri=t.string();break}case 8:{o.bindNotice=t.int32();break}case 9:{o.updateToast=t.string();break}case 10:{o.campusId=t.int64();break}case 11:{o.openProgress=u.bilibili.app.dynamic.v2.CampusFeatureProgress.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.CampusBillBoardReply)return t;let i=new u.bilibili.app.dynamic.v2.CampusBillBoardReply;if(t.title!=null&&(i.title=String(t.title)),t.helpUri!=null&&(i.helpUri=String(t.helpUri)),t.campusName!=null&&(i.campusName=String(t.campusName)),t.buildTime!=null&&(r.Long?(i.buildTime=r.Long.fromValue(t.buildTime)).unsigned=!1:typeof t.buildTime=="string"?i.buildTime=parseInt(t.buildTime,10):typeof t.buildTime=="number"?i.buildTime=t.buildTime:typeof t.buildTime=="object"&&(i.buildTime=new r.LongBits(t.buildTime.low>>>0,t.buildTime.high>>>0).toNumber())),t.versionCode!=null&&(i.versionCode=String(t.versionCode)),t.list){if(!Array.isArray(t.list))throw TypeError(".bilibili.app.dynamic.v2.CampusBillBoardReply.list: array expected");i.list=[];for(let n=0;n>>0,t.campusId.high>>>0).toNumber())),t.openProgress!=null){if(typeof t.openProgress!="object")throw TypeError(".bilibili.app.dynamic.v2.CampusBillBoardReply.openProgress: object expected");i.openProgress=u.bilibili.app.dynamic.v2.CampusFeatureProgress.fromObject(t.openProgress)}return i},e.toObject=function(t,i){i||(i={});let n={};if((i.arrays||i.defaults)&&(n.list=[]),i.defaults){if(n.title="",n.helpUri="",n.campusName="",r.Long){let o=new r.Long(0,0,!1);n.buildTime=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.buildTime=i.longs===String?"0":0;if(n.versionCode="",n.shareUri="",n.bindNotice=0,n.updateToast="",r.Long){let o=new r.Long(0,0,!1);n.campusId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.campusId=i.longs===String?"0":0;n.openProgress=null}if(t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.helpUri!=null&&t.hasOwnProperty("helpUri")&&(n.helpUri=t.helpUri),t.campusName!=null&&t.hasOwnProperty("campusName")&&(n.campusName=t.campusName),t.buildTime!=null&&t.hasOwnProperty("buildTime")&&(typeof t.buildTime=="number"?n.buildTime=i.longs===String?String(t.buildTime):t.buildTime:n.buildTime=i.longs===String?r.Long.prototype.toString.call(t.buildTime):i.longs===Number?new r.LongBits(t.buildTime.low>>>0,t.buildTime.high>>>0).toNumber():t.buildTime),t.versionCode!=null&&t.hasOwnProperty("versionCode")&&(n.versionCode=t.versionCode),t.list&&t.list.length){n.list=[];for(let o=0;o>>0,t.campusId.high>>>0).toNumber():t.campusId),t.openProgress!=null&&t.hasOwnProperty("openProgress")&&(n.openProgress=u.bilibili.app.dynamic.v2.CampusFeatureProgress.toObject(t.openProgress,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.CampusBillBoardReply"},e}(),c.CampusFeatureProgress=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.progressFull=t.int64();break}case 2:{o.progressAchieved=t.int64();break}case 3:{o.descTitle=t.string();break}case 4:{o.desc_1=t.string();break}case 5:{o.btn=u.bilibili.app.dynamic.v2.CampusLabel.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.CampusFeatureProgress)return t;let i=new u.bilibili.app.dynamic.v2.CampusFeatureProgress;if(t.progressFull!=null&&(r.Long?(i.progressFull=r.Long.fromValue(t.progressFull)).unsigned=!1:typeof t.progressFull=="string"?i.progressFull=parseInt(t.progressFull,10):typeof t.progressFull=="number"?i.progressFull=t.progressFull:typeof t.progressFull=="object"&&(i.progressFull=new r.LongBits(t.progressFull.low>>>0,t.progressFull.high>>>0).toNumber())),t.progressAchieved!=null&&(r.Long?(i.progressAchieved=r.Long.fromValue(t.progressAchieved)).unsigned=!1:typeof t.progressAchieved=="string"?i.progressAchieved=parseInt(t.progressAchieved,10):typeof t.progressAchieved=="number"?i.progressAchieved=t.progressAchieved:typeof t.progressAchieved=="object"&&(i.progressAchieved=new r.LongBits(t.progressAchieved.low>>>0,t.progressAchieved.high>>>0).toNumber())),t.descTitle!=null&&(i.descTitle=String(t.descTitle)),t.desc_1!=null&&(i.desc_1=String(t.desc_1)),t.btn!=null){if(typeof t.btn!="object")throw TypeError(".bilibili.app.dynamic.v2.CampusFeatureProgress.btn: object expected");i.btn=u.bilibili.app.dynamic.v2.CampusLabel.fromObject(t.btn)}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.progressFull=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.progressFull=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.progressAchieved=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.progressAchieved=i.longs===String?"0":0;n.descTitle="",n.desc_1="",n.btn=null}return t.progressFull!=null&&t.hasOwnProperty("progressFull")&&(typeof t.progressFull=="number"?n.progressFull=i.longs===String?String(t.progressFull):t.progressFull:n.progressFull=i.longs===String?r.Long.prototype.toString.call(t.progressFull):i.longs===Number?new r.LongBits(t.progressFull.low>>>0,t.progressFull.high>>>0).toNumber():t.progressFull),t.progressAchieved!=null&&t.hasOwnProperty("progressAchieved")&&(typeof t.progressAchieved=="number"?n.progressAchieved=i.longs===String?String(t.progressAchieved):t.progressAchieved:n.progressAchieved=i.longs===String?r.Long.prototype.toString.call(t.progressAchieved):i.longs===Number?new r.LongBits(t.progressAchieved.low>>>0,t.progressAchieved.high>>>0).toNumber():t.progressAchieved),t.descTitle!=null&&t.hasOwnProperty("descTitle")&&(n.descTitle=t.descTitle),t.desc_1!=null&&t.hasOwnProperty("desc_1")&&(n.desc_1=t.desc_1),t.btn!=null&&t.hasOwnProperty("btn")&&(n.btn=u.bilibili.app.dynamic.v2.CampusLabel.toObject(t.btn,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.CampusFeatureProgress"},e}(),c.CampusTopicRcmdFeedReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.campusId=t.int64();break}case 2:{o.offset=t.string();break}case 3:{o.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.decode(t,t.uint32());break}case 4:{o.localTime=t.int32();break}case 5:{o.fromType=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.CampusTopicRcmdFeedReq)return t;let i=new u.bilibili.app.dynamic.v2.CampusTopicRcmdFeedReq;if(t.campusId!=null&&(r.Long?(i.campusId=r.Long.fromValue(t.campusId)).unsigned=!1:typeof t.campusId=="string"?i.campusId=parseInt(t.campusId,10):typeof t.campusId=="number"?i.campusId=t.campusId:typeof t.campusId=="object"&&(i.campusId=new r.LongBits(t.campusId.low>>>0,t.campusId.high>>>0).toNumber())),t.offset!=null&&(i.offset=String(t.offset)),t.playerArgs!=null){if(typeof t.playerArgs!="object")throw TypeError(".bilibili.app.dynamic.v2.CampusTopicRcmdFeedReq.playerArgs: object expected");i.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.fromObject(t.playerArgs)}switch(t.localTime!=null&&(i.localTime=t.localTime|0),t.fromType){default:if(typeof t.fromType=="number"){i.fromType=t.fromType;break}break;case"DYNAMIC":case 0:i.fromType=0;break;case"HOME":case 1:i.fromType=1;break}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.campusId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.campusId=i.longs===String?"0":0;n.offset="",n.playerArgs=null,n.localTime=0,n.fromType=i.enums===String?"DYNAMIC":0}return t.campusId!=null&&t.hasOwnProperty("campusId")&&(typeof t.campusId=="number"?n.campusId=i.longs===String?String(t.campusId):t.campusId:n.campusId=i.longs===String?r.Long.prototype.toString.call(t.campusId):i.longs===Number?new r.LongBits(t.campusId.low>>>0,t.campusId.high>>>0).toNumber():t.campusId),t.offset!=null&&t.hasOwnProperty("offset")&&(n.offset=t.offset),t.playerArgs!=null&&t.hasOwnProperty("playerArgs")&&(n.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.toObject(t.playerArgs,i)),t.localTime!=null&&t.hasOwnProperty("localTime")&&(n.localTime=t.localTime),t.fromType!=null&&t.hasOwnProperty("fromType")&&(n.fromType=i.enums===String?u.bilibili.app.dynamic.v2.CampusReqFromType[t.fromType]===void 0?t.fromType:u.bilibili.app.dynamic.v2.CampusReqFromType[t.fromType]:t.fromType),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.CampusTopicRcmdFeedReq"},e}(),c.CampusTopicRcmdFeedReply=function(){function e(l){if(this.list=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.list&&o.list.length||(o.list=[]),o.list.push(u.bilibili.app.dynamic.v2.DynamicItem.decode(t,t.uint32()));break}case 2:{o.toast=t.string();break}case 3:{o.hasMore=t.bool();break}case 4:{o.offset=t.string();break}case 5:{o.joinDiscuss=u.bilibili.app.dynamic.v2.IconButton.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.CampusTopicRcmdFeedReply)return t;let i=new u.bilibili.app.dynamic.v2.CampusTopicRcmdFeedReply;if(t.list){if(!Array.isArray(t.list))throw TypeError(".bilibili.app.dynamic.v2.CampusTopicRcmdFeedReply.list: array expected");i.list=[];for(let n=0;n>>3){case 1:{o.cid=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.UnfollowMatchReq)return t;let i=new u.bilibili.app.dynamic.v2.UnfollowMatchReq;return t.cid!=null&&(r.Long?(i.cid=r.Long.fromValue(t.cid)).unsigned=!1:typeof t.cid=="string"?i.cid=parseInt(t.cid,10):typeof t.cid=="number"?i.cid=t.cid:typeof t.cid=="object"&&(i.cid=new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(r.Long){let o=new r.Long(0,0,!1);n.cid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.cid=i.longs===String?"0":0;return t.cid!=null&&t.hasOwnProperty("cid")&&(typeof t.cid=="number"?n.cid=i.longs===String?String(t.cid):t.cid:n.cid=i.longs===String?r.Long.prototype.toString.call(t.cid):i.longs===Number?new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber():t.cid),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.UnfollowMatchReq"},e}(),c.HomePageTabSttingStatus=function(){let e={},l=Object.create(e);return l[e[0]="SETTING_INVALID"]=0,l[e[1]="SETTING_OPEN"]=1,l[e[2]="SETTING_CLOSE"]=2,l}(),c.CampusHomePageType=function(){let e={},l=Object.create(e);return l[e[0]="PAGE_MAJOR"]=0,l[e[1]="PAGE_SUBORDINATE"]=1,l[e[2]="PAGE_MAJOR_DETAIL"]=2,l}(),c.CampusReqFromType=function(){let e={},l=Object.create(e);return l[e[0]="DYNAMIC"]=0,l[e[1]="HOME"]=1,l}(),c.FetchTabSettingReply=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.status=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.FetchTabSettingReply)return t;let i=new u.bilibili.app.dynamic.v2.FetchTabSettingReply;switch(t.status){default:if(typeof t.status=="number"){i.status=t.status;break}break;case"SETTING_INVALID":case 0:i.status=0;break;case"SETTING_OPEN":case 1:i.status=1;break;case"SETTING_CLOSE":case 2:i.status=2;break}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.status=i.enums===String?"SETTING_INVALID":0),t.status!=null&&t.hasOwnProperty("status")&&(n.status=i.enums===String?u.bilibili.app.dynamic.v2.HomePageTabSttingStatus[t.status]===void 0?t.status:u.bilibili.app.dynamic.v2.HomePageTabSttingStatus[t.status]:t.status),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.FetchTabSettingReply"},e}(),c.UpdateTabSettingReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.status=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.UpdateTabSettingReq)return t;let i=new u.bilibili.app.dynamic.v2.UpdateTabSettingReq;switch(t.status){default:if(typeof t.status=="number"){i.status=t.status;break}break;case"SETTING_INVALID":case 0:i.status=0;break;case"SETTING_OPEN":case 1:i.status=1;break;case"SETTING_CLOSE":case 2:i.status=2;break}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.status=i.enums===String?"SETTING_INVALID":0),t.status!=null&&t.hasOwnProperty("status")&&(n.status=i.enums===String?u.bilibili.app.dynamic.v2.HomePageTabSttingStatus[t.status]===void 0?t.status:u.bilibili.app.dynamic.v2.HomePageTabSttingStatus[t.status]:t.status),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.UpdateTabSettingReq"},e}(),c.CampusSquareReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.campusId=t.int64();break}case 2:{o.lat=t.double();break}case 3:{o.lng=t.double();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.CampusSquareReq)return t;let i=new u.bilibili.app.dynamic.v2.CampusSquareReq;return t.campusId!=null&&(r.Long?(i.campusId=r.Long.fromValue(t.campusId)).unsigned=!1:typeof t.campusId=="string"?i.campusId=parseInt(t.campusId,10):typeof t.campusId=="number"?i.campusId=t.campusId:typeof t.campusId=="object"&&(i.campusId=new r.LongBits(t.campusId.low>>>0,t.campusId.high>>>0).toNumber())),t.lat!=null&&(i.lat=Number(t.lat)),t.lng!=null&&(i.lng=Number(t.lng)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.campusId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.campusId=i.longs===String?"0":0;n.lat=0,n.lng=0}return t.campusId!=null&&t.hasOwnProperty("campusId")&&(typeof t.campusId=="number"?n.campusId=i.longs===String?String(t.campusId):t.campusId:n.campusId=i.longs===String?r.Long.prototype.toString.call(t.campusId):i.longs===Number?new r.LongBits(t.campusId.low>>>0,t.campusId.high>>>0).toNumber():t.campusId),t.lat!=null&&t.hasOwnProperty("lat")&&(n.lat=i.json&&!isFinite(t.lat)?String(t.lat):t.lat),t.lng!=null&&t.hasOwnProperty("lng")&&(n.lng=i.json&&!isFinite(t.lng)?String(t.lng):t.lng),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.CampusSquareReq"},e}(),c.CampusSquareReply=function(){function e(l){if(this.list=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.list&&o.list.length||(o.list=[]),o.list.push(u.bilibili.app.dynamic.v2.RcmdCampusBrief.decode(t,t.uint32()));break}case 3:{o.button=u.bilibili.app.dynamic.v2.CampusLabel.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.CampusSquareReply)return t;let i=new u.bilibili.app.dynamic.v2.CampusSquareReply;if(t.title!=null&&(i.title=String(t.title)),t.list){if(!Array.isArray(t.list))throw TypeError(".bilibili.app.dynamic.v2.CampusSquareReply.list: array expected");i.list=[];for(let n=0;n>>3){case 1:{o.campusId=t.int64();break}case 2:{o.campusName=t.string();break}case 4:{o.campusBadge=t.string();break}case 5:{o.url=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.RcmdCampusBrief)return t;let i=new u.bilibili.app.dynamic.v2.RcmdCampusBrief;return t.campusId!=null&&(r.Long?(i.campusId=r.Long.fromValue(t.campusId)).unsigned=!1:typeof t.campusId=="string"?i.campusId=parseInt(t.campusId,10):typeof t.campusId=="number"?i.campusId=t.campusId:typeof t.campusId=="object"&&(i.campusId=new r.LongBits(t.campusId.low>>>0,t.campusId.high>>>0).toNumber())),t.campusName!=null&&(i.campusName=String(t.campusName)),t.campusBadge!=null&&(i.campusBadge=String(t.campusBadge)),t.url!=null&&(i.url=String(t.url)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.campusId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.campusId=i.longs===String?"0":0;n.campusName="",n.campusBadge="",n.url=""}return t.campusId!=null&&t.hasOwnProperty("campusId")&&(typeof t.campusId=="number"?n.campusId=i.longs===String?String(t.campusId):t.campusId:n.campusId=i.longs===String?r.Long.prototype.toString.call(t.campusId):i.longs===Number?new r.LongBits(t.campusId.low>>>0,t.campusId.high>>>0).toNumber():t.campusId),t.campusName!=null&&t.hasOwnProperty("campusName")&&(n.campusName=t.campusName),t.campusBadge!=null&&t.hasOwnProperty("campusBadge")&&(n.campusBadge=t.campusBadge),t.url!=null&&t.hasOwnProperty("url")&&(n.url=t.url),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.RcmdCampusBrief"},e}(),c.CampusRcmdReqFrom=function(){let e={},l=Object.create(e);return l[e[0]="CAMPUS_RCMD_FROM_UNKNOWN"]=0,l[e[1]="CAMPUS_RCMD_FROM_HOME_UN_OPEN"]=1,l[e[2]="CAMPUS_RCMD_FROM_VISIT_OTHER"]=2,l[e[3]="CAMPUS_RCMD_FROM_HOME_MOMENT"]=3,l[e[4]="CAMPUS_RCMD_FROM_DYN_MOMENT"]=4,l[e[5]="CAMPUS_RCMD_FROM_PAGE_SUBORDINATE_MOMENT"]=5,l}(),c.CampusRecommendReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.campusId=t.int64();break}case 2:{o.pageNo=t.int64();break}case 3:{o.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.decode(t,t.uint32());break}case 4:{o.from=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.CampusRecommendReq)return t;let i=new u.bilibili.app.dynamic.v2.CampusRecommendReq;if(t.campusId!=null&&(r.Long?(i.campusId=r.Long.fromValue(t.campusId)).unsigned=!1:typeof t.campusId=="string"?i.campusId=parseInt(t.campusId,10):typeof t.campusId=="number"?i.campusId=t.campusId:typeof t.campusId=="object"&&(i.campusId=new r.LongBits(t.campusId.low>>>0,t.campusId.high>>>0).toNumber())),t.pageNo!=null&&(r.Long?(i.pageNo=r.Long.fromValue(t.pageNo)).unsigned=!1:typeof t.pageNo=="string"?i.pageNo=parseInt(t.pageNo,10):typeof t.pageNo=="number"?i.pageNo=t.pageNo:typeof t.pageNo=="object"&&(i.pageNo=new r.LongBits(t.pageNo.low>>>0,t.pageNo.high>>>0).toNumber())),t.playerArgs!=null){if(typeof t.playerArgs!="object")throw TypeError(".bilibili.app.dynamic.v2.CampusRecommendReq.playerArgs: object expected");i.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.fromObject(t.playerArgs)}switch(t.from){default:if(typeof t.from=="number"){i.from=t.from;break}break;case"CAMPUS_RCMD_FROM_UNKNOWN":case 0:i.from=0;break;case"CAMPUS_RCMD_FROM_HOME_UN_OPEN":case 1:i.from=1;break;case"CAMPUS_RCMD_FROM_VISIT_OTHER":case 2:i.from=2;break;case"CAMPUS_RCMD_FROM_HOME_MOMENT":case 3:i.from=3;break;case"CAMPUS_RCMD_FROM_DYN_MOMENT":case 4:i.from=4;break;case"CAMPUS_RCMD_FROM_PAGE_SUBORDINATE_MOMENT":case 5:i.from=5;break}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.campusId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.campusId=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.pageNo=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.pageNo=i.longs===String?"0":0;n.playerArgs=null,n.from=i.enums===String?"CAMPUS_RCMD_FROM_UNKNOWN":0}return t.campusId!=null&&t.hasOwnProperty("campusId")&&(typeof t.campusId=="number"?n.campusId=i.longs===String?String(t.campusId):t.campusId:n.campusId=i.longs===String?r.Long.prototype.toString.call(t.campusId):i.longs===Number?new r.LongBits(t.campusId.low>>>0,t.campusId.high>>>0).toNumber():t.campusId),t.pageNo!=null&&t.hasOwnProperty("pageNo")&&(typeof t.pageNo=="number"?n.pageNo=i.longs===String?String(t.pageNo):t.pageNo:n.pageNo=i.longs===String?r.Long.prototype.toString.call(t.pageNo):i.longs===Number?new r.LongBits(t.pageNo.low>>>0,t.pageNo.high>>>0).toNumber():t.pageNo),t.playerArgs!=null&&t.hasOwnProperty("playerArgs")&&(n.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.toObject(t.playerArgs,i)),t.from!=null&&t.hasOwnProperty("from")&&(n.from=i.enums===String?u.bilibili.app.dynamic.v2.CampusRcmdReqFrom[t.from]===void 0?t.from:u.bilibili.app.dynamic.v2.CampusRcmdReqFrom[t.from]:t.from),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.CampusRecommendReq"},e}(),c.CampusRecommendReply=function(){function e(l){if(this.items=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.items&&o.items.length||(o.items=[]),o.items.push(u.bilibili.app.dynamic.v2.RcmdItem.decode(t,t.uint32()));break}case 2:{o.hasMore=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.CampusRecommendReply)return t;let i=new u.bilibili.app.dynamic.v2.CampusRecommendReply;if(t.items){if(!Array.isArray(t.items))throw TypeError(".bilibili.app.dynamic.v2.CampusRecommendReply.items: array expected");i.items=[];for(let n=0;n>>3){case 1:{o.top=u.bilibili.app.dynamic.v2.CampusRcmdTop.decode(t,t.uint32());break}case 2:{o.campusTop=u.bilibili.app.dynamic.v2.CampusTop.decode(t,t.uint32());break}case 3:{o.pageType=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.CampusHomePagesReply)return t;let i=new u.bilibili.app.dynamic.v2.CampusHomePagesReply;if(t.top!=null){if(typeof t.top!="object")throw TypeError(".bilibili.app.dynamic.v2.CampusHomePagesReply.top: object expected");i.top=u.bilibili.app.dynamic.v2.CampusRcmdTop.fromObject(t.top)}if(t.campusTop!=null){if(typeof t.campusTop!="object")throw TypeError(".bilibili.app.dynamic.v2.CampusHomePagesReply.campusTop: object expected");i.campusTop=u.bilibili.app.dynamic.v2.CampusTop.fromObject(t.campusTop)}return t.pageType!=null&&(i.pageType=t.pageType|0),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.top=null,n.campusTop=null,n.pageType=0),t.top!=null&&t.hasOwnProperty("top")&&(n.top=u.bilibili.app.dynamic.v2.CampusRcmdTop.toObject(t.top,i)),t.campusTop!=null&&t.hasOwnProperty("campusTop")&&(n.campusTop=u.bilibili.app.dynamic.v2.CampusTop.toObject(t.campusTop,i)),t.pageType!=null&&t.hasOwnProperty("pageType")&&(n.pageType=t.pageType),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.CampusHomePagesReply"},e}(),c.CampusHomePagesReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.campusId=t.int64();break}case 2:{o.campusName=t.string();break}case 3:{o.lat=t.double();break}case 4:{o.lng=t.double();break}case 5:{o.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.decode(t,t.uint32());break}case 6:{o.pageType=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.CampusHomePagesReq)return t;let i=new u.bilibili.app.dynamic.v2.CampusHomePagesReq;if(t.campusId!=null&&(r.Long?(i.campusId=r.Long.fromValue(t.campusId)).unsigned=!1:typeof t.campusId=="string"?i.campusId=parseInt(t.campusId,10):typeof t.campusId=="number"?i.campusId=t.campusId:typeof t.campusId=="object"&&(i.campusId=new r.LongBits(t.campusId.low>>>0,t.campusId.high>>>0).toNumber())),t.campusName!=null&&(i.campusName=String(t.campusName)),t.lat!=null&&(i.lat=Number(t.lat)),t.lng!=null&&(i.lng=Number(t.lng)),t.playerArgs!=null){if(typeof t.playerArgs!="object")throw TypeError(".bilibili.app.dynamic.v2.CampusHomePagesReq.playerArgs: object expected");i.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.fromObject(t.playerArgs)}switch(t.pageType){default:if(typeof t.pageType=="number"){i.pageType=t.pageType;break}break;case"PAGE_MAJOR":case 0:i.pageType=0;break;case"PAGE_SUBORDINATE":case 1:i.pageType=1;break;case"PAGE_MAJOR_DETAIL":case 2:i.pageType=2;break}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.campusId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.campusId=i.longs===String?"0":0;n.campusName="",n.lat=0,n.lng=0,n.playerArgs=null,n.pageType=i.enums===String?"PAGE_MAJOR":0}return t.campusId!=null&&t.hasOwnProperty("campusId")&&(typeof t.campusId=="number"?n.campusId=i.longs===String?String(t.campusId):t.campusId:n.campusId=i.longs===String?r.Long.prototype.toString.call(t.campusId):i.longs===Number?new r.LongBits(t.campusId.low>>>0,t.campusId.high>>>0).toNumber():t.campusId),t.campusName!=null&&t.hasOwnProperty("campusName")&&(n.campusName=t.campusName),t.lat!=null&&t.hasOwnProperty("lat")&&(n.lat=i.json&&!isFinite(t.lat)?String(t.lat):t.lat),t.lng!=null&&t.hasOwnProperty("lng")&&(n.lng=i.json&&!isFinite(t.lng)?String(t.lng):t.lng),t.playerArgs!=null&&t.hasOwnProperty("playerArgs")&&(n.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.toObject(t.playerArgs,i)),t.pageType!=null&&t.hasOwnProperty("pageType")&&(n.pageType=i.enums===String?u.bilibili.app.dynamic.v2.CampusHomePageType[t.pageType]===void 0?t.pageType:u.bilibili.app.dynamic.v2.CampusHomePageType[t.pageType]:t.pageType),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.CampusHomePagesReq"},e}(),c.CampusEntryTabReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.campusId=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.CampusEntryTabReq)return t;let i=new u.bilibili.app.dynamic.v2.CampusEntryTabReq;return t.campusId!=null&&(r.Long?(i.campusId=r.Long.fromValue(t.campusId)).unsigned=!1:typeof t.campusId=="string"?i.campusId=parseInt(t.campusId,10):typeof t.campusId=="number"?i.campusId=t.campusId:typeof t.campusId=="object"&&(i.campusId=new r.LongBits(t.campusId.low>>>0,t.campusId.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(r.Long){let o=new r.Long(0,0,!1);n.campusId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.campusId=i.longs===String?"0":0;return t.campusId!=null&&t.hasOwnProperty("campusId")&&(typeof t.campusId=="number"?n.campusId=i.longs===String?String(t.campusId):t.campusId:n.campusId=i.longs===String?r.Long.prototype.toString.call(t.campusId):i.longs===Number?new r.LongBits(t.campusId.low>>>0,t.campusId.high>>>0).toNumber():t.campusId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.CampusEntryTabReq"},e}(),c.CampusEntryType=function(){let e={},l=Object.create(e);return l[e[0]="NONE"]=0,l[e[1]="ENTRY_DYNAMIC"]=1,l[e[2]="ENTRY_HOME"]=2,l}(),c.CampusEntryTabResp=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.entryType=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.CampusEntryTabResp)return t;let i=new u.bilibili.app.dynamic.v2.CampusEntryTabResp;switch(t.entryType){default:if(typeof t.entryType=="number"){i.entryType=t.entryType;break}break;case"NONE":case 0:i.entryType=0;break;case"ENTRY_DYNAMIC":case 1:i.entryType=1;break;case"ENTRY_HOME":case 2:i.entryType=2;break}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.entryType=i.enums===String?"NONE":0),t.entryType!=null&&t.hasOwnProperty("entryType")&&(n.entryType=i.enums===String?u.bilibili.app.dynamic.v2.CampusEntryType[t.entryType]===void 0?t.entryType:u.bilibili.app.dynamic.v2.CampusEntryType[t.entryType]:t.entryType),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.CampusEntryTabResp"},e}(),c.CampusHomeRcmdTopic=function(){function e(l){if(this.topic=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=u.bilibili.app.dynamic.v2.ModuleTitle.decode(t,t.uint32());break}case 2:{o.topic&&o.topic.length||(o.topic=[]),o.topic.push(u.bilibili.app.dynamic.v2.TopicItem.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.CampusHomeRcmdTopic)return t;let i=new u.bilibili.app.dynamic.v2.CampusHomeRcmdTopic;if(t.title!=null){if(typeof t.title!="object")throw TypeError(".bilibili.app.dynamic.v2.CampusHomeRcmdTopic.title: object expected");i.title=u.bilibili.app.dynamic.v2.ModuleTitle.fromObject(t.title)}if(t.topic){if(!Array.isArray(t.topic))throw TypeError(".bilibili.app.dynamic.v2.CampusHomeRcmdTopic.topic: array expected");i.topic=[];for(let n=0;n>>3){case 1:{o.campusId=t.int64();break}case 2:{o.campusName=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.HomeSubscribeReq)return t;let i=new u.bilibili.app.dynamic.v2.HomeSubscribeReq;return t.campusId!=null&&(r.Long?(i.campusId=r.Long.fromValue(t.campusId)).unsigned=!1:typeof t.campusId=="string"?i.campusId=parseInt(t.campusId,10):typeof t.campusId=="number"?i.campusId=t.campusId:typeof t.campusId=="object"&&(i.campusId=new r.LongBits(t.campusId.low>>>0,t.campusId.high>>>0).toNumber())),t.campusName!=null&&(i.campusName=String(t.campusName)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.campusId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.campusId=i.longs===String?"0":0;n.campusName=""}return t.campusId!=null&&t.hasOwnProperty("campusId")&&(typeof t.campusId=="number"?n.campusId=i.longs===String?String(t.campusId):t.campusId:n.campusId=i.longs===String?r.Long.prototype.toString.call(t.campusId):i.longs===Number?new r.LongBits(t.campusId.low>>>0,t.campusId.high>>>0).toNumber():t.campusId),t.campusName!=null&&t.hasOwnProperty("campusName")&&(n.campusName=t.campusName),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.HomeSubscribeReq"},e}(),c.HomeSubscribeReply=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.online=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.HomeSubscribeReply)return t;let i=new u.bilibili.app.dynamic.v2.HomeSubscribeReply;switch(t.online){default:if(typeof t.online=="number"){i.online=t.online;break}break;case"campus_online_offline":case 0:i.online=0;break;case"campus_online_online":case 1:i.online=1;break}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.online=i.enums===String?"campus_online_offline":0),t.online!=null&&t.hasOwnProperty("online")&&(n.online=i.enums===String?u.bilibili.app.dynamic.v2.CampusOnlineStatus[t.online]===void 0?t.online:u.bilibili.app.dynamic.v2.CampusOnlineStatus[t.online]:t.online),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.HomeSubscribeReply"},e}(),c.CampusOnlineStatus=function(){let e={},l=Object.create(e);return l[e[0]="campus_online_offline"]=0,l[e[1]="campus_online_online"]=1,l}(),c.LbsPoiReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.poi=t.string();break}case 2:{o.type=t.int64();break}case 3:{o.offset=t.string();break}case 4:{o.refreshType=t.int32();break}case 5:{o.localTime=t.int32();break}case 6:{o.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.LbsPoiReq)return t;let i=new u.bilibili.app.dynamic.v2.LbsPoiReq;switch(t.poi!=null&&(i.poi=String(t.poi)),t.type!=null&&(r.Long?(i.type=r.Long.fromValue(t.type)).unsigned=!1:typeof t.type=="string"?i.type=parseInt(t.type,10):typeof t.type=="number"?i.type=t.type:typeof t.type=="object"&&(i.type=new r.LongBits(t.type.low>>>0,t.type.high>>>0).toNumber())),t.offset!=null&&(i.offset=String(t.offset)),t.refreshType){default:if(typeof t.refreshType=="number"){i.refreshType=t.refreshType;break}break;case"refresh_new":case 0:i.refreshType=0;break;case"refresh_history":case 1:i.refreshType=1;break}if(t.localTime!=null&&(i.localTime=t.localTime|0),t.playerArgs!=null){if(typeof t.playerArgs!="object")throw TypeError(".bilibili.app.dynamic.v2.LbsPoiReq.playerArgs: object expected");i.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.fromObject(t.playerArgs)}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.poi="",r.Long){let o=new r.Long(0,0,!1);n.type=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.type=i.longs===String?"0":0;n.offset="",n.refreshType=i.enums===String?"refresh_new":0,n.localTime=0,n.playerArgs=null}return t.poi!=null&&t.hasOwnProperty("poi")&&(n.poi=t.poi),t.type!=null&&t.hasOwnProperty("type")&&(typeof t.type=="number"?n.type=i.longs===String?String(t.type):t.type:n.type=i.longs===String?r.Long.prototype.toString.call(t.type):i.longs===Number?new r.LongBits(t.type.low>>>0,t.type.high>>>0).toNumber():t.type),t.offset!=null&&t.hasOwnProperty("offset")&&(n.offset=t.offset),t.refreshType!=null&&t.hasOwnProperty("refreshType")&&(n.refreshType=i.enums===String?u.bilibili.app.dynamic.v2.Refresh[t.refreshType]===void 0?t.refreshType:u.bilibili.app.dynamic.v2.Refresh[t.refreshType]:t.refreshType),t.localTime!=null&&t.hasOwnProperty("localTime")&&(n.localTime=t.localTime),t.playerArgs!=null&&t.hasOwnProperty("playerArgs")&&(n.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.toObject(t.playerArgs,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.LbsPoiReq"},e}(),c.LbsPoiDetail=function(){function e(l){if(this.basePic=[],this.cover=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.poi=t.string();break}case 2:{o.type=t.int64();break}case 3:{o.basePic&&o.basePic.length||(o.basePic=[]),o.basePic.push(t.string());break}case 4:{o.cover&&o.cover.length||(o.cover=[]),o.cover.push(t.string());break}case 5:{o.address=t.string();break}case 6:{o.title=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.LbsPoiDetail)return t;let i=new u.bilibili.app.dynamic.v2.LbsPoiDetail;if(t.poi!=null&&(i.poi=String(t.poi)),t.type!=null&&(r.Long?(i.type=r.Long.fromValue(t.type)).unsigned=!1:typeof t.type=="string"?i.type=parseInt(t.type,10):typeof t.type=="number"?i.type=t.type:typeof t.type=="object"&&(i.type=new r.LongBits(t.type.low>>>0,t.type.high>>>0).toNumber())),t.basePic){if(!Array.isArray(t.basePic))throw TypeError(".bilibili.app.dynamic.v2.LbsPoiDetail.basePic: array expected");i.basePic=[];for(let n=0;n>>0,t.type.high>>>0).toNumber():t.type),t.basePic&&t.basePic.length){n.basePic=[];for(let o=0;o>>3){case 1:{o.hasMore=t.bool();break}case 2:{o.offset=t.string();break}case 3:{o.detail=u.bilibili.app.dynamic.v2.LbsPoiDetail.decode(t,t.uint32());break}case 4:{o.list&&o.list.length||(o.list=[]),o.list.push(u.bilibili.app.dynamic.v2.DynamicItem.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.LbsPoiReply)return t;let i=new u.bilibili.app.dynamic.v2.LbsPoiReply;if(t.hasMore!=null&&(i.hasMore=!!t.hasMore),t.offset!=null&&(i.offset=String(t.offset)),t.detail!=null){if(typeof t.detail!="object")throw TypeError(".bilibili.app.dynamic.v2.LbsPoiReply.detail: object expected");i.detail=u.bilibili.app.dynamic.v2.LbsPoiDetail.fromObject(t.detail)}if(t.list){if(!Array.isArray(t.list))throw TypeError(".bilibili.app.dynamic.v2.LbsPoiReply.list: array expected");i.list=[];for(let n=0;n>>3){case 1:{o.offset=t.string();break}case 2:{o.tab=t.string();break}case 3:{o.localTime=t.int32();break}case 4:{o.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.decode(t,t.uint32());break}case 5:{o.adParam=u.bilibili.app.dynamic.v2.AdParam.decode(t,t.uint32());break}case 6:{o.coldStart=t.int32();break}case 7:{o.page=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.FeedFilterReq)return t;let i=new u.bilibili.app.dynamic.v2.FeedFilterReq;if(t.offset!=null&&(i.offset=String(t.offset)),t.tab!=null&&(i.tab=String(t.tab)),t.localTime!=null&&(i.localTime=t.localTime|0),t.playerArgs!=null){if(typeof t.playerArgs!="object")throw TypeError(".bilibili.app.dynamic.v2.FeedFilterReq.playerArgs: object expected");i.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.fromObject(t.playerArgs)}if(t.adParam!=null){if(typeof t.adParam!="object")throw TypeError(".bilibili.app.dynamic.v2.FeedFilterReq.adParam: object expected");i.adParam=u.bilibili.app.dynamic.v2.AdParam.fromObject(t.adParam)}return t.coldStart!=null&&(i.coldStart=t.coldStart|0),t.page!=null&&(r.Long?(i.page=r.Long.fromValue(t.page)).unsigned=!1:typeof t.page=="string"?i.page=parseInt(t.page,10):typeof t.page=="number"?i.page=t.page:typeof t.page=="object"&&(i.page=new r.LongBits(t.page.low>>>0,t.page.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(n.offset="",n.tab="",n.localTime=0,n.playerArgs=null,n.adParam=null,n.coldStart=0,r.Long){let o=new r.Long(0,0,!1);n.page=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.page=i.longs===String?"0":0;return t.offset!=null&&t.hasOwnProperty("offset")&&(n.offset=t.offset),t.tab!=null&&t.hasOwnProperty("tab")&&(n.tab=t.tab),t.localTime!=null&&t.hasOwnProperty("localTime")&&(n.localTime=t.localTime),t.playerArgs!=null&&t.hasOwnProperty("playerArgs")&&(n.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.toObject(t.playerArgs,i)),t.adParam!=null&&t.hasOwnProperty("adParam")&&(n.adParam=u.bilibili.app.dynamic.v2.AdParam.toObject(t.adParam,i)),t.coldStart!=null&&t.hasOwnProperty("coldStart")&&(n.coldStart=t.coldStart),t.page!=null&&t.hasOwnProperty("page")&&(typeof t.page=="number"?n.page=i.longs===String?String(t.page):t.page:n.page=i.longs===String?r.Long.prototype.toString.call(t.page):i.longs===Number?new r.LongBits(t.page.low>>>0,t.page.high>>>0).toNumber():t.page),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.FeedFilterReq"},e}(),c.FeedFilterReply=function(){function e(l){if(this.list=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.offset=t.string();break}case 2:{o.hasMore=t.bool();break}case 3:{o.list&&o.list.length||(o.list=[]),o.list.push(u.bilibili.app.dynamic.v2.DynamicItem.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.FeedFilterReply)return t;let i=new u.bilibili.app.dynamic.v2.FeedFilterReply;if(t.offset!=null&&(i.offset=String(t.offset)),t.hasMore!=null&&(i.hasMore=!!t.hasMore),t.list){if(!Array.isArray(t.list))throw TypeError(".bilibili.app.dynamic.v2.FeedFilterReply.list: array expected");i.list=[];for(let n=0;n>>3){case 1:{o.campusId=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.CampusMngDetailReq)return t;let i=new u.bilibili.app.dynamic.v2.CampusMngDetailReq;return t.campusId!=null&&(r.Long?(i.campusId=r.Long.fromValue(t.campusId)).unsigned=!1:typeof t.campusId=="string"?i.campusId=parseInt(t.campusId,10):typeof t.campusId=="number"?i.campusId=t.campusId:typeof t.campusId=="object"&&(i.campusId=new r.LongBits(t.campusId.low>>>0,t.campusId.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(r.Long){let o=new r.Long(0,0,!1);n.campusId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.campusId=i.longs===String?"0":0;return t.campusId!=null&&t.hasOwnProperty("campusId")&&(typeof t.campusId=="number"?n.campusId=i.longs===String?String(t.campusId):t.campusId:n.campusId=i.longs===String?r.Long.prototype.toString.call(t.campusId):i.longs===Number?new r.LongBits(t.campusId.low>>>0,t.campusId.high>>>0).toNumber():t.campusId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.CampusMngDetailReq"},e}(),c.CampusMngDetailReply=function(){function e(l){if(this.items=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.items&&o.items.length||(o.items=[]),o.items.push(u.bilibili.app.dynamic.v2.CampusMngItem.decode(t,t.uint32()));break}case 2:{o.topHintBarMsg=t.string();break}case 3:{o.bottomSubmitHintMsg=t.string();break}case 4:{o.campusId=t.int64();break}case 5:{o.campusName=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.CampusMngDetailReply)return t;let i=new u.bilibili.app.dynamic.v2.CampusMngDetailReply;if(t.items){if(!Array.isArray(t.items))throw TypeError(".bilibili.app.dynamic.v2.CampusMngDetailReply.items: array expected");i.items=[];for(let n=0;n>>0,t.campusId.high>>>0).toNumber())),t.campusName!=null&&(i.campusName=String(t.campusName)),i},e.toObject=function(t,i){i||(i={});let n={};if((i.arrays||i.defaults)&&(n.items=[]),i.defaults){if(n.topHintBarMsg="",n.bottomSubmitHintMsg="",r.Long){let o=new r.Long(0,0,!1);n.campusId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.campusId=i.longs===String?"0":0;n.campusName=""}if(t.items&&t.items.length){n.items=[];for(let o=0;o>>0,t.campusId.high>>>0).toNumber():t.campusId),t.campusName!=null&&t.hasOwnProperty("campusName")&&(n.campusName=t.campusName),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.CampusMngDetailReply"},e}(),c.CampusMngAuditStatus=function(){let e={},l=Object.create(e);return l[e[0]="campus_mng_audit_none"]=0,l[e[1]="campus_mng_audit_in_process"]=1,l[e[2]="campus_mng_audit_failed"]=2,l}(),c.CampusMngItem=function(){function e(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.auditStatus=i.int32();break}case 2:{a.auditMessage=i.string();break}case 3:{a.itemType=i.int32();break}case 4:{a.mngItemId=i.string();break}case 5:{a.isDel=i.bool();break}case 6:{a.basicInfo=u.bilibili.app.dynamic.v2.CampusMngBasicInfo.decode(i,i.uint32());break}case 7:{a.badge=u.bilibili.app.dynamic.v2.CampusMngBadge.decode(i,i.uint32());break}case 8:{a.slogan=u.bilibili.app.dynamic.v2.CampusMngSlogan.decode(i,i.uint32());break}case 9:{a.quiz=u.bilibili.app.dynamic.v2.CampusMngQuiz.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},e.fromObject=function(i){if(i instanceof u.bilibili.app.dynamic.v2.CampusMngItem)return i;let n=new u.bilibili.app.dynamic.v2.CampusMngItem;switch(i.auditStatus){default:if(typeof i.auditStatus=="number"){n.auditStatus=i.auditStatus;break}break;case"campus_mng_audit_none":case 0:n.auditStatus=0;break;case"campus_mng_audit_in_process":case 1:n.auditStatus=1;break;case"campus_mng_audit_failed":case 2:n.auditStatus=2;break}switch(i.auditMessage!=null&&(n.auditMessage=String(i.auditMessage)),i.itemType){default:if(typeof i.itemType=="number"){n.itemType=i.itemType;break}break;case"campus_mng_none":case 0:n.itemType=0;break;case"campus_mng_basic_info":case 1:n.itemType=1;break;case"campus_mng_badge":case 2:n.itemType=2;break;case"campus_mng_slogan":case 3:n.itemType=3;break;case"campus_mng_quiz":case 4:n.itemType=4;break}if(i.mngItemId!=null&&(n.mngItemId=String(i.mngItemId)),i.isDel!=null&&(n.isDel=!!i.isDel),i.basicInfo!=null){if(typeof i.basicInfo!="object")throw TypeError(".bilibili.app.dynamic.v2.CampusMngItem.basicInfo: object expected");n.basicInfo=u.bilibili.app.dynamic.v2.CampusMngBasicInfo.fromObject(i.basicInfo)}if(i.badge!=null){if(typeof i.badge!="object")throw TypeError(".bilibili.app.dynamic.v2.CampusMngItem.badge: object expected");n.badge=u.bilibili.app.dynamic.v2.CampusMngBadge.fromObject(i.badge)}if(i.slogan!=null){if(typeof i.slogan!="object")throw TypeError(".bilibili.app.dynamic.v2.CampusMngItem.slogan: object expected");n.slogan=u.bilibili.app.dynamic.v2.CampusMngSlogan.fromObject(i.slogan)}if(i.quiz!=null){if(typeof i.quiz!="object")throw TypeError(".bilibili.app.dynamic.v2.CampusMngItem.quiz: object expected");n.quiz=u.bilibili.app.dynamic.v2.CampusMngQuiz.fromObject(i.quiz)}return n},e.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.auditStatus=n.enums===String?"campus_mng_audit_none":0,o.auditMessage="",o.itemType=n.enums===String?"campus_mng_none":0,o.mngItemId="",o.isDel=!1),i.auditStatus!=null&&i.hasOwnProperty("auditStatus")&&(o.auditStatus=n.enums===String?u.bilibili.app.dynamic.v2.CampusMngAuditStatus[i.auditStatus]===void 0?i.auditStatus:u.bilibili.app.dynamic.v2.CampusMngAuditStatus[i.auditStatus]:i.auditStatus),i.auditMessage!=null&&i.hasOwnProperty("auditMessage")&&(o.auditMessage=i.auditMessage),i.itemType!=null&&i.hasOwnProperty("itemType")&&(o.itemType=n.enums===String?u.bilibili.app.dynamic.v2.CampusMngItemType[i.itemType]===void 0?i.itemType:u.bilibili.app.dynamic.v2.CampusMngItemType[i.itemType]:i.itemType),i.mngItemId!=null&&i.hasOwnProperty("mngItemId")&&(o.mngItemId=i.mngItemId),i.isDel!=null&&i.hasOwnProperty("isDel")&&(o.isDel=i.isDel),i.basicInfo!=null&&i.hasOwnProperty("basicInfo")&&(o.basicInfo=u.bilibili.app.dynamic.v2.CampusMngBasicInfo.toObject(i.basicInfo,n),n.oneofs&&(o.item="basicInfo")),i.badge!=null&&i.hasOwnProperty("badge")&&(o.badge=u.bilibili.app.dynamic.v2.CampusMngBadge.toObject(i.badge,n),n.oneofs&&(o.item="badge")),i.slogan!=null&&i.hasOwnProperty("slogan")&&(o.slogan=u.bilibili.app.dynamic.v2.CampusMngSlogan.toObject(i.slogan,n),n.oneofs&&(o.item="slogan")),i.quiz!=null&&i.hasOwnProperty("quiz")&&(o.quiz=u.bilibili.app.dynamic.v2.CampusMngQuiz.toObject(i.quiz,n),n.oneofs&&(o.item="quiz")),o},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.app.dynamic.v2.CampusMngItem"},e}(),c.CampusMngItemType=function(){let e={},l=Object.create(e);return l[e[0]="campus_mng_none"]=0,l[e[1]="campus_mng_basic_info"]=1,l[e[2]="campus_mng_badge"]=2,l[e[3]="campus_mng_slogan"]=3,l[e[4]="campus_mng_quiz"]=4,l}(),c.CampusMngBasicInfo=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.campusId=t.int64();break}case 2:{o.campusName=t.string();break}case 3:{o.hintMsg=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.CampusMngBasicInfo)return t;let i=new u.bilibili.app.dynamic.v2.CampusMngBasicInfo;return t.campusId!=null&&(r.Long?(i.campusId=r.Long.fromValue(t.campusId)).unsigned=!1:typeof t.campusId=="string"?i.campusId=parseInt(t.campusId,10):typeof t.campusId=="number"?i.campusId=t.campusId:typeof t.campusId=="object"&&(i.campusId=new r.LongBits(t.campusId.low>>>0,t.campusId.high>>>0).toNumber())),t.campusName!=null&&(i.campusName=String(t.campusName)),t.hintMsg!=null&&(i.hintMsg=String(t.hintMsg)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.campusId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.campusId=i.longs===String?"0":0;n.campusName="",n.hintMsg=""}return t.campusId!=null&&t.hasOwnProperty("campusId")&&(typeof t.campusId=="number"?n.campusId=i.longs===String?String(t.campusId):t.campusId:n.campusId=i.longs===String?r.Long.prototype.toString.call(t.campusId):i.longs===Number?new r.LongBits(t.campusId.low>>>0,t.campusId.high>>>0).toNumber():t.campusId),t.campusName!=null&&t.hasOwnProperty("campusName")&&(n.campusName=t.campusName),t.hintMsg!=null&&t.hasOwnProperty("hintMsg")&&(n.hintMsg=t.hintMsg),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.CampusMngBasicInfo"},e}(),c.CampusMngBadge=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.badgeUrl=t.string();break}case 3:{o.uploadHintMsg=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.CampusMngBadge)return t;let i=new u.bilibili.app.dynamic.v2.CampusMngBadge;return t.title!=null&&(i.title=String(t.title)),t.badgeUrl!=null&&(i.badgeUrl=String(t.badgeUrl)),t.uploadHintMsg!=null&&(i.uploadHintMsg=String(t.uploadHintMsg)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.title="",n.badgeUrl="",n.uploadHintMsg=""),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.badgeUrl!=null&&t.hasOwnProperty("badgeUrl")&&(n.badgeUrl=t.badgeUrl),t.uploadHintMsg!=null&&t.hasOwnProperty("uploadHintMsg")&&(n.uploadHintMsg=t.uploadHintMsg),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.CampusMngBadge"},e}(),c.CampusMngSlogan=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.slogan=t.string();break}case 3:{o.inputHintMsg=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.CampusMngSlogan)return t;let i=new u.bilibili.app.dynamic.v2.CampusMngSlogan;return t.title!=null&&(i.title=String(t.title)),t.slogan!=null&&(i.slogan=String(t.slogan)),t.inputHintMsg!=null&&(i.inputHintMsg=String(t.inputHintMsg)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.title="",n.slogan="",n.inputHintMsg=""),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.slogan!=null&&t.hasOwnProperty("slogan")&&(n.slogan=t.slogan),t.inputHintMsg!=null&&t.hasOwnProperty("inputHintMsg")&&(n.inputHintMsg=t.inputHintMsg),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.CampusMngSlogan"},e}(),c.CampusMngQuiz=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.moreLabel=u.bilibili.app.dynamic.v2.CampusLabel.decode(t,t.uint32());break}case 3:{o.addLabel=t.string();break}case 4:{o.submitLabel=t.string();break}case 5:{o.quizCount=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.CampusMngQuiz)return t;let i=new u.bilibili.app.dynamic.v2.CampusMngQuiz;if(t.title!=null&&(i.title=String(t.title)),t.moreLabel!=null){if(typeof t.moreLabel!="object")throw TypeError(".bilibili.app.dynamic.v2.CampusMngQuiz.moreLabel: object expected");i.moreLabel=u.bilibili.app.dynamic.v2.CampusLabel.fromObject(t.moreLabel)}return t.addLabel!=null&&(i.addLabel=String(t.addLabel)),t.submitLabel!=null&&(i.submitLabel=String(t.submitLabel)),t.quizCount!=null&&(r.Long?(i.quizCount=r.Long.fromValue(t.quizCount)).unsigned=!1:typeof t.quizCount=="string"?i.quizCount=parseInt(t.quizCount,10):typeof t.quizCount=="number"?i.quizCount=t.quizCount:typeof t.quizCount=="object"&&(i.quizCount=new r.LongBits(t.quizCount.low>>>0,t.quizCount.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(n.title="",n.moreLabel=null,n.addLabel="",n.submitLabel="",r.Long){let o=new r.Long(0,0,!1);n.quizCount=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.quizCount=i.longs===String?"0":0;return t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.moreLabel!=null&&t.hasOwnProperty("moreLabel")&&(n.moreLabel=u.bilibili.app.dynamic.v2.CampusLabel.toObject(t.moreLabel,i)),t.addLabel!=null&&t.hasOwnProperty("addLabel")&&(n.addLabel=t.addLabel),t.submitLabel!=null&&t.hasOwnProperty("submitLabel")&&(n.submitLabel=t.submitLabel),t.quizCount!=null&&t.hasOwnProperty("quizCount")&&(typeof t.quizCount=="number"?n.quizCount=i.longs===String?String(t.quizCount):t.quizCount:n.quizCount=i.longs===String?r.Long.prototype.toString.call(t.quizCount):i.longs===Number?new r.LongBits(t.quizCount.low>>>0,t.quizCount.high>>>0).toNumber():t.quizCount),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.CampusMngQuiz"},e}(),c.CampusMngSubmitReq=function(){function e(l){if(this.modifiedItems=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.campusId=t.int64();break}case 2:{o.modifiedItems&&o.modifiedItems.length||(o.modifiedItems=[]),o.modifiedItems.push(u.bilibili.app.dynamic.v2.CampusMngItem.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.CampusMngSubmitReq)return t;let i=new u.bilibili.app.dynamic.v2.CampusMngSubmitReq;if(t.campusId!=null&&(r.Long?(i.campusId=r.Long.fromValue(t.campusId)).unsigned=!1:typeof t.campusId=="string"?i.campusId=parseInt(t.campusId,10):typeof t.campusId=="number"?i.campusId=t.campusId:typeof t.campusId=="object"&&(i.campusId=new r.LongBits(t.campusId.low>>>0,t.campusId.high>>>0).toNumber())),t.modifiedItems){if(!Array.isArray(t.modifiedItems))throw TypeError(".bilibili.app.dynamic.v2.CampusMngSubmitReq.modifiedItems: array expected");i.modifiedItems=[];for(let n=0;n>>0,t.campusId.high>>>0).toNumber():t.campusId),t.modifiedItems&&t.modifiedItems.length){n.modifiedItems=[];for(let o=0;o>>3){case 1:{o.toast=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.CampusMngSubmitReply)return t;let i=new u.bilibili.app.dynamic.v2.CampusMngSubmitReply;return t.toast!=null&&(i.toast=String(t.toast)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.toast=""),t.toast!=null&&t.hasOwnProperty("toast")&&(n.toast=t.toast),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.CampusMngSubmitReply"},e}(),c.CampusMngQuizDetail=function(){function e(l){if(this.wrongAnswerList=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.quizId=t.int64();break}case 2:{o.question=t.string();break}case 3:{o.correctAnswer=t.string();break}case 4:{o.wrongAnswerList&&o.wrongAnswerList.length||(o.wrongAnswerList=[]),o.wrongAnswerList.push(t.string());break}case 5:{o.auditStatus=t.int32();break}case 6:{o.auditMessage=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.CampusMngQuizDetail)return t;let i=new u.bilibili.app.dynamic.v2.CampusMngQuizDetail;if(t.quizId!=null&&(r.Long?(i.quizId=r.Long.fromValue(t.quizId)).unsigned=!1:typeof t.quizId=="string"?i.quizId=parseInt(t.quizId,10):typeof t.quizId=="number"?i.quizId=t.quizId:typeof t.quizId=="object"&&(i.quizId=new r.LongBits(t.quizId.low>>>0,t.quizId.high>>>0).toNumber())),t.question!=null&&(i.question=String(t.question)),t.correctAnswer!=null&&(i.correctAnswer=String(t.correctAnswer)),t.wrongAnswerList){if(!Array.isArray(t.wrongAnswerList))throw TypeError(".bilibili.app.dynamic.v2.CampusMngQuizDetail.wrongAnswerList: array expected");i.wrongAnswerList=[];for(let n=0;n>>0,t.quizId.high>>>0).toNumber():t.quizId),t.question!=null&&t.hasOwnProperty("question")&&(n.question=t.question),t.correctAnswer!=null&&t.hasOwnProperty("correctAnswer")&&(n.correctAnswer=t.correctAnswer),t.wrongAnswerList&&t.wrongAnswerList.length){n.wrongAnswerList=[];for(let o=0;o>>3){case 1:{o.action=t.int32();break}case 2:{o.campusId=t.int64();break}case 3:{o.quiz&&o.quiz.length||(o.quiz=[]),o.quiz.push(u.bilibili.app.dynamic.v2.CampusMngQuizDetail.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.CampusMngQuizOperateReq)return t;let i=new u.bilibili.app.dynamic.v2.CampusMngQuizOperateReq;switch(t.action){default:if(typeof t.action=="number"){i.action=t.action;break}break;case"campus_mng_quiz_act_list":case 0:i.action=0;break;case"campus_mng_quiz_act_add":case 1:i.action=1;break;case"campus_mng_quiz_act_del":case 2:i.action=2;break}if(t.campusId!=null&&(r.Long?(i.campusId=r.Long.fromValue(t.campusId)).unsigned=!1:typeof t.campusId=="string"?i.campusId=parseInt(t.campusId,10):typeof t.campusId=="number"?i.campusId=t.campusId:typeof t.campusId=="object"&&(i.campusId=new r.LongBits(t.campusId.low>>>0,t.campusId.high>>>0).toNumber())),t.quiz){if(!Array.isArray(t.quiz))throw TypeError(".bilibili.app.dynamic.v2.CampusMngQuizOperateReq.quiz: array expected");i.quiz=[];for(let n=0;n>>0,t.campusId.high>>>0).toNumber():t.campusId),t.quiz&&t.quiz.length){n.quiz=[];for(let o=0;o>>3){case 1:{o.toast=t.string();break}case 2:{o.quiz&&o.quiz.length||(o.quiz=[]),o.quiz.push(u.bilibili.app.dynamic.v2.CampusMngQuizDetail.decode(t,t.uint32()));break}case 3:{o.quizTotal=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.CampusMngQuizOperateReply)return t;let i=new u.bilibili.app.dynamic.v2.CampusMngQuizOperateReply;if(t.toast!=null&&(i.toast=String(t.toast)),t.quiz){if(!Array.isArray(t.quiz))throw TypeError(".bilibili.app.dynamic.v2.CampusMngQuizOperateReply.quiz: array expected");i.quiz=[];for(let n=0;n>>0,t.quizTotal.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if((i.arrays||i.defaults)&&(n.quiz=[]),i.defaults)if(n.toast="",r.Long){let o=new r.Long(0,0,!1);n.quizTotal=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.quizTotal=i.longs===String?"0":0;if(t.toast!=null&&t.hasOwnProperty("toast")&&(n.toast=t.toast),t.quiz&&t.quiz.length){n.quiz=[];for(let o=0;o>>0,t.quizTotal.high>>>0).toNumber():t.quizTotal),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.CampusMngQuizOperateReply"},e}(),c.LegacyTopicFeedReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.topicId=t.int64();break}case 2:{o.topicName=t.string();break}case 3:{o.offset=t.string();break}case 4:{o.sortType=u.bilibili.app.dynamic.v2.SortType.decode(t,t.uint32());break}case 5:{o.cardFilter=u.bilibili.app.dynamic.v2.SortType.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.LegacyTopicFeedReq)return t;let i=new u.bilibili.app.dynamic.v2.LegacyTopicFeedReq;if(t.topicId!=null&&(r.Long?(i.topicId=r.Long.fromValue(t.topicId)).unsigned=!1:typeof t.topicId=="string"?i.topicId=parseInt(t.topicId,10):typeof t.topicId=="number"?i.topicId=t.topicId:typeof t.topicId=="object"&&(i.topicId=new r.LongBits(t.topicId.low>>>0,t.topicId.high>>>0).toNumber())),t.topicName!=null&&(i.topicName=String(t.topicName)),t.offset!=null&&(i.offset=String(t.offset)),t.sortType!=null){if(typeof t.sortType!="object")throw TypeError(".bilibili.app.dynamic.v2.LegacyTopicFeedReq.sortType: object expected");i.sortType=u.bilibili.app.dynamic.v2.SortType.fromObject(t.sortType)}if(t.cardFilter!=null){if(typeof t.cardFilter!="object")throw TypeError(".bilibili.app.dynamic.v2.LegacyTopicFeedReq.cardFilter: object expected");i.cardFilter=u.bilibili.app.dynamic.v2.SortType.fromObject(t.cardFilter)}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.topicId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.topicId=i.longs===String?"0":0;n.topicName="",n.offset="",n.sortType=null,n.cardFilter=null}return t.topicId!=null&&t.hasOwnProperty("topicId")&&(typeof t.topicId=="number"?n.topicId=i.longs===String?String(t.topicId):t.topicId:n.topicId=i.longs===String?r.Long.prototype.toString.call(t.topicId):i.longs===Number?new r.LongBits(t.topicId.low>>>0,t.topicId.high>>>0).toNumber():t.topicId),t.topicName!=null&&t.hasOwnProperty("topicName")&&(n.topicName=t.topicName),t.offset!=null&&t.hasOwnProperty("offset")&&(n.offset=t.offset),t.sortType!=null&&t.hasOwnProperty("sortType")&&(n.sortType=u.bilibili.app.dynamic.v2.SortType.toObject(t.sortType,i)),t.cardFilter!=null&&t.hasOwnProperty("cardFilter")&&(n.cardFilter=u.bilibili.app.dynamic.v2.SortType.toObject(t.cardFilter,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.LegacyTopicFeedReq"},e}(),c.LegacyTopicFeedReply=function(){function e(l){if(this.list=[],this.supportedSortTypes=[],this.feedCardFilters=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.list&&o.list.length||(o.list=[]),o.list.push(u.bilibili.app.dynamic.v2.DynamicItem.decode(t,t.uint32()));break}case 2:{o.hasMore=t.bool();break}case 3:{o.offset=t.string();break}case 4:{o.supportedSortTypes&&o.supportedSortTypes.length||(o.supportedSortTypes=[]),o.supportedSortTypes.push(u.bilibili.app.dynamic.v2.SortType.decode(t,t.uint32()));break}case 5:{o.feedCardFilters&&o.feedCardFilters.length||(o.feedCardFilters=[]),o.feedCardFilters.push(u.bilibili.app.dynamic.v2.SortType.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.LegacyTopicFeedReply)return t;let i=new u.bilibili.app.dynamic.v2.LegacyTopicFeedReply;if(t.list){if(!Array.isArray(t.list))throw TypeError(".bilibili.app.dynamic.v2.LegacyTopicFeedReply.list: array expected");i.list=[];for(let n=0;n>>3){case 1:{o.offset=t.string();break}case 2:{o.localTime=t.int32();break}case 3:{o.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.DynFriendReq)return t;let i=new u.bilibili.app.dynamic.v2.DynFriendReq;if(t.offset!=null&&(i.offset=String(t.offset)),t.localTime!=null&&(i.localTime=t.localTime|0),t.playerArgs!=null){if(typeof t.playerArgs!="object")throw TypeError(".bilibili.app.dynamic.v2.DynFriendReq.playerArgs: object expected");i.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.fromObject(t.playerArgs)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.offset="",n.localTime=0,n.playerArgs=null),t.offset!=null&&t.hasOwnProperty("offset")&&(n.offset=t.offset),t.localTime!=null&&t.hasOwnProperty("localTime")&&(n.localTime=t.localTime),t.playerArgs!=null&&t.hasOwnProperty("playerArgs")&&(n.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.toObject(t.playerArgs,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.DynFriendReq"},e}(),c.DynFriendReply=function(){function e(l){if(this.dynList=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.dynList&&o.dynList.length||(o.dynList=[]),o.dynList.push(u.bilibili.app.dynamic.v2.DynamicItem.decode(t,t.uint32()));break}case 2:{o.hasMore=t.bool();break}case 3:{o.offset=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.DynFriendReply)return t;let i=new u.bilibili.app.dynamic.v2.DynFriendReply;if(t.dynList){if(!Array.isArray(t.dynList))throw TypeError(".bilibili.app.dynamic.v2.DynFriendReply.dynList: array expected");i.dynList=[];for(let n=0;n>>3){case 1:{o.dynamicId=t.int64();break}case 2:{o.dynType=t.int64();break}case 3:{o.rid=t.int64();break}case 4:{o.offset=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.ReactionListReq)return t;let i=new u.bilibili.app.dynamic.v2.ReactionListReq;return t.dynamicId!=null&&(r.Long?(i.dynamicId=r.Long.fromValue(t.dynamicId)).unsigned=!1:typeof t.dynamicId=="string"?i.dynamicId=parseInt(t.dynamicId,10):typeof t.dynamicId=="number"?i.dynamicId=t.dynamicId:typeof t.dynamicId=="object"&&(i.dynamicId=new r.LongBits(t.dynamicId.low>>>0,t.dynamicId.high>>>0).toNumber())),t.dynType!=null&&(r.Long?(i.dynType=r.Long.fromValue(t.dynType)).unsigned=!1:typeof t.dynType=="string"?i.dynType=parseInt(t.dynType,10):typeof t.dynType=="number"?i.dynType=t.dynType:typeof t.dynType=="object"&&(i.dynType=new r.LongBits(t.dynType.low>>>0,t.dynType.high>>>0).toNumber())),t.rid!=null&&(r.Long?(i.rid=r.Long.fromValue(t.rid)).unsigned=!1:typeof t.rid=="string"?i.rid=parseInt(t.rid,10):typeof t.rid=="number"?i.rid=t.rid:typeof t.rid=="object"&&(i.rid=new r.LongBits(t.rid.low>>>0,t.rid.high>>>0).toNumber())),t.offset!=null&&(i.offset=String(t.offset)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.dynamicId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.dynamicId=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.dynType=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.dynType=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.rid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.rid=i.longs===String?"0":0;n.offset=""}return t.dynamicId!=null&&t.hasOwnProperty("dynamicId")&&(typeof t.dynamicId=="number"?n.dynamicId=i.longs===String?String(t.dynamicId):t.dynamicId:n.dynamicId=i.longs===String?r.Long.prototype.toString.call(t.dynamicId):i.longs===Number?new r.LongBits(t.dynamicId.low>>>0,t.dynamicId.high>>>0).toNumber():t.dynamicId),t.dynType!=null&&t.hasOwnProperty("dynType")&&(typeof t.dynType=="number"?n.dynType=i.longs===String?String(t.dynType):t.dynType:n.dynType=i.longs===String?r.Long.prototype.toString.call(t.dynType):i.longs===Number?new r.LongBits(t.dynType.low>>>0,t.dynType.high>>>0).toNumber():t.dynType),t.rid!=null&&t.hasOwnProperty("rid")&&(typeof t.rid=="number"?n.rid=i.longs===String?String(t.rid):t.rid:n.rid=i.longs===String?r.Long.prototype.toString.call(t.rid):i.longs===Number?new r.LongBits(t.rid.low>>>0,t.rid.high>>>0).toNumber():t.rid),t.offset!=null&&t.hasOwnProperty("offset")&&(n.offset=t.offset),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.ReactionListReq"},e}(),c.ReactionListReply=function(){function e(l){if(this.reactionList=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.reactionList&&o.reactionList.length||(o.reactionList=[]),o.reactionList.push(u.bilibili.app.dynamic.v2.ReactionListItem.decode(t,t.uint32()));break}case 3:{o.offset=t.string();break}case 4:{o.hasMore=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.ReactionListReply)return t;let i=new u.bilibili.app.dynamic.v2.ReactionListReply;if(t.title!=null&&(i.title=String(t.title)),t.reactionList){if(!Array.isArray(t.reactionList))throw TypeError(".bilibili.app.dynamic.v2.ReactionListReply.reactionList: array expected");i.reactionList=[];for(let n=0;n>>3){case 1:{o.user=u.bilibili.app.dynamic.v2.UserInfo.decode(t,t.uint32());break}case 2:{o.relation=u.bilibili.app.dynamic.v2.Relation.decode(t,t.uint32());break}case 3:{o.actText=t.string();break}case 4:{o.rcmdReason=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.ReactionListItem)return t;let i=new u.bilibili.app.dynamic.v2.ReactionListItem;if(t.user!=null){if(typeof t.user!="object")throw TypeError(".bilibili.app.dynamic.v2.ReactionListItem.user: object expected");i.user=u.bilibili.app.dynamic.v2.UserInfo.fromObject(t.user)}if(t.relation!=null){if(typeof t.relation!="object")throw TypeError(".bilibili.app.dynamic.v2.ReactionListItem.relation: object expected");i.relation=u.bilibili.app.dynamic.v2.Relation.fromObject(t.relation)}return t.actText!=null&&(i.actText=String(t.actText)),t.rcmdReason!=null&&(i.rcmdReason=String(t.rcmdReason)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.user=null,n.relation=null,n.actText="",n.rcmdReason=""),t.user!=null&&t.hasOwnProperty("user")&&(n.user=u.bilibili.app.dynamic.v2.UserInfo.toObject(t.user,i)),t.relation!=null&&t.hasOwnProperty("relation")&&(n.relation=u.bilibili.app.dynamic.v2.Relation.toObject(t.relation,i)),t.actText!=null&&t.hasOwnProperty("actText")&&(n.actText=t.actText),t.rcmdReason!=null&&t.hasOwnProperty("rcmdReason")&&(n.rcmdReason=t.rcmdReason),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.ReactionListItem"},e}(),c.DynamicItem=function(){function e(l){if(this.modules=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.cardType=t.int32();break}case 2:{o.itemType=t.int32();break}case 3:{o.modules&&o.modules.length||(o.modules=[]),o.modules.push(u.bilibili.app.dynamic.v2.Module.decode(t,t.uint32()));break}case 4:{o.extend=u.bilibili.app.dynamic.v2.Extend.decode(t,t.uint32());break}case 5:{o.hasFold=t.int32();break}case 6:{o.serverInfo=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.DynamicItem)return t;let i=new u.bilibili.app.dynamic.v2.DynamicItem;switch(t.cardType){default:if(typeof t.cardType=="number"){i.cardType=t.cardType;break}break;case"dyn_none":case 0:i.cardType=0;break;case"forward":case 1:i.cardType=1;break;case"av":case 2:i.cardType=2;break;case"pgc":case 3:i.cardType=3;break;case"courses":case 4:i.cardType=4;break;case"fold":case 5:i.cardType=5;break;case"word":case 6:i.cardType=6;break;case"draw":case 7:i.cardType=7;break;case"article":case 8:i.cardType=8;break;case"music":case 9:i.cardType=9;break;case"common_square":case 10:i.cardType=10;break;case"common_vertical":case 11:i.cardType=11;break;case"live":case 12:i.cardType=12;break;case"medialist":case 13:i.cardType=13;break;case"courses_season":case 14:i.cardType=14;break;case"ad":case 15:i.cardType=15;break;case"applet":case 16:i.cardType=16;break;case"subscription":case 17:i.cardType=17;break;case"live_rcmd":case 18:i.cardType=18;break;case"banner":case 19:i.cardType=19;break;case"ugc_season":case 20:i.cardType=20;break;case"subscription_new":case 21:i.cardType=21;break;case"story":case 22:i.cardType=22;break;case"topic_rcmd":case 23:i.cardType=23;break;case"cour_up":case 24:i.cardType=24;break;case"topic_set":case 25:i.cardType=25;break;case"notice":case 26:i.cardType=26;break;case"text_notice":case 27:i.cardType=27;break;case"onetime_notice":case 28:i.cardType=28;break}switch(t.itemType){default:if(typeof t.itemType=="number"){i.itemType=t.itemType;break}break;case"dyn_none":case 0:i.itemType=0;break;case"forward":case 1:i.itemType=1;break;case"av":case 2:i.itemType=2;break;case"pgc":case 3:i.itemType=3;break;case"courses":case 4:i.itemType=4;break;case"fold":case 5:i.itemType=5;break;case"word":case 6:i.itemType=6;break;case"draw":case 7:i.itemType=7;break;case"article":case 8:i.itemType=8;break;case"music":case 9:i.itemType=9;break;case"common_square":case 10:i.itemType=10;break;case"common_vertical":case 11:i.itemType=11;break;case"live":case 12:i.itemType=12;break;case"medialist":case 13:i.itemType=13;break;case"courses_season":case 14:i.itemType=14;break;case"ad":case 15:i.itemType=15;break;case"applet":case 16:i.itemType=16;break;case"subscription":case 17:i.itemType=17;break;case"live_rcmd":case 18:i.itemType=18;break;case"banner":case 19:i.itemType=19;break;case"ugc_season":case 20:i.itemType=20;break;case"subscription_new":case 21:i.itemType=21;break;case"story":case 22:i.itemType=22;break;case"topic_rcmd":case 23:i.itemType=23;break;case"cour_up":case 24:i.itemType=24;break;case"topic_set":case 25:i.itemType=25;break;case"notice":case 26:i.itemType=26;break;case"text_notice":case 27:i.itemType=27;break;case"onetime_notice":case 28:i.itemType=28;break}if(t.modules){if(!Array.isArray(t.modules))throw TypeError(".bilibili.app.dynamic.v2.DynamicItem.modules: array expected");i.modules=[];for(let n=0;n>>3){case 1:{a.moduleType=i.int32();break}case 2:{a.moduleAuthor=u.bilibili.app.dynamic.v2.ModuleAuthor.decode(i,i.uint32());break}case 3:{a.moduleDispute=u.bilibili.app.dynamic.v2.ModuleDispute.decode(i,i.uint32());break}case 4:{a.moduleDesc=u.bilibili.app.dynamic.v2.ModuleDesc.decode(i,i.uint32());break}case 5:{a.moduleDynamic=u.bilibili.app.dynamic.v2.ModuleDynamic.decode(i,i.uint32());break}case 6:{a.moduleLikeUser=u.bilibili.app.dynamic.v2.ModuleLikeUser.decode(i,i.uint32());break}case 7:{a.moduleExtend=u.bilibili.app.dynamic.v2.ModuleExtend.decode(i,i.uint32());break}case 8:{a.moduleAdditional=u.bilibili.app.dynamic.v2.ModuleAdditional.decode(i,i.uint32());break}case 9:{a.moduleStat=u.bilibili.app.dynamic.v2.ModuleStat.decode(i,i.uint32());break}case 10:{a.moduleFold=u.bilibili.app.dynamic.v2.ModuleFold.decode(i,i.uint32());break}case 11:{a.moduleComment=u.bilibili.app.dynamic.v2.ModuleComment.decode(i,i.uint32());break}case 12:{a.moduleInteraction=u.bilibili.app.dynamic.v2.ModuleInteraction.decode(i,i.uint32());break}case 13:{a.moduleAuthorForward=u.bilibili.app.dynamic.v2.ModuleAuthorForward.decode(i,i.uint32());break}case 14:{a.moduleAd=u.bilibili.app.dynamic.v2.ModuleAd.decode(i,i.uint32());break}case 15:{a.moduleBanner=u.bilibili.app.dynamic.v2.ModuleBanner.decode(i,i.uint32());break}case 16:{a.moduleItemNull=u.bilibili.app.dynamic.v2.ModuleItemNull.decode(i,i.uint32());break}case 17:{a.moduleShareInfo=u.bilibili.app.dynamic.v2.ModuleShareInfo.decode(i,i.uint32());break}case 18:{a.moduleRecommend=u.bilibili.app.dynamic.v2.ModuleRecommend.decode(i,i.uint32());break}case 19:{a.moduleTop=u.bilibili.app.dynamic.v2.ModuleTop.decode(i,i.uint32());break}case 20:{a.moduleButtom=u.bilibili.app.dynamic.v2.ModuleButtom.decode(i,i.uint32());break}case 21:{a.moduleStatForward=u.bilibili.app.dynamic.v2.ModuleStat.decode(i,i.uint32());break}case 22:{a.moduleStory=u.bilibili.app.dynamic.v2.ModuleStory.decode(i,i.uint32());break}case 23:{a.moduleTopic=u.bilibili.app.dynamic.v2.ModuleTopic.decode(i,i.uint32());break}case 24:{a.moduleTopicDetailsExt=u.bilibili.app.dynamic.v2.ModuleTopicDetailsExt.decode(i,i.uint32());break}case 25:{a.moduleTopTag=u.bilibili.app.dynamic.v2.ModuleTopTag.decode(i,i.uint32());break}case 26:{a.moduleTopicBrief=u.bilibili.app.dynamic.v2.ModuleTopicBrief.decode(i,i.uint32());break}case 27:{a.moduleTitle=u.bilibili.app.dynamic.v2.ModuleTitle.decode(i,i.uint32());break}case 28:{a.moduleButton=u.bilibili.app.dynamic.v2.ModuleButton.decode(i,i.uint32());break}case 29:{a.moduleNotice=u.bilibili.app.dynamic.v2.ModuleNotice.decode(i,i.uint32());break}case 30:{a.moduleOpusSummary=u.bilibili.app.dynamic.v2.ModuleOpusSummary.decode(i,i.uint32());break}case 31:{a.moduleCopyright=u.bilibili.app.dynamic.v2.ModuleCopyright.decode(i,i.uint32());break}case 32:{a.moduleParagraph=u.bilibili.app.dynamic.v2.ModuleParagraph.decode(i,i.uint32());break}case 33:{a.moduleBlocked=u.bilibili.app.dynamic.v2.ModuleBlocked.decode(i,i.uint32());break}case 34:{a.moduleTextNotice=u.bilibili.app.dynamic.v2.ModuleTextNotice.decode(i,i.uint32());break}case 35:{a.moduleOpusCollection=u.bilibili.app.dynamic.v2.ModuleOpusCollection.decode(i,i.uint32());break}case 36:{a.moduleOnetimeNotice=u.bilibili.app.dynamic.v2.ModuleOnetimeNotice.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},e.fromObject=function(i){if(i instanceof u.bilibili.app.dynamic.v2.Module)return i;let n=new u.bilibili.app.dynamic.v2.Module;switch(i.moduleType){default:if(typeof i.moduleType=="number"){n.moduleType=i.moduleType;break}break;case"module_none":case 0:n.moduleType=0;break;case"module_author":case 1:n.moduleType=1;break;case"module_dispute":case 2:n.moduleType=2;break;case"module_desc":case 3:n.moduleType=3;break;case"module_dynamic":case 4:n.moduleType=4;break;case"module_forward":case 5:n.moduleType=5;break;case"module_likeUser":case 6:n.moduleType=6;break;case"module_extend":case 7:n.moduleType=7;break;case"module_additional":case 8:n.moduleType=8;break;case"module_stat":case 9:n.moduleType=9;break;case"module_fold":case 10:n.moduleType=10;break;case"module_comment":case 11:n.moduleType=11;break;case"module_interaction":case 12:n.moduleType=12;break;case"module_author_forward":case 13:n.moduleType=13;break;case"module_ad":case 14:n.moduleType=14;break;case"module_banner":case 15:n.moduleType=15;break;case"module_item_null":case 16:n.moduleType=16;break;case"module_share_info":case 17:n.moduleType=17;break;case"module_recommend":case 18:n.moduleType=18;break;case"module_stat_forward":case 19:n.moduleType=19;break;case"module_top":case 20:n.moduleType=20;break;case"module_bottom":case 21:n.moduleType=21;break;case"module_story":case 22:n.moduleType=22;break;case"module_topic":case 23:n.moduleType=23;break;case"module_topic_details_ext":case 24:n.moduleType=24;break;case"module_top_tag":case 25:n.moduleType=25;break;case"module_topic_brief":case 26:n.moduleType=26;break;case"module_title":case 27:n.moduleType=27;break;case"module_button":case 28:n.moduleType=28;break;case"module_notice":case 29:n.moduleType=29;break;case"module_opus_summary":case 30:n.moduleType=30;break;case"module_copyright":case 31:n.moduleType=31;break;case"module_paragraph":case 32:n.moduleType=32;break;case"module_blocked":case 33:n.moduleType=33;break;case"module_text_notice":case 34:n.moduleType=34;break;case"module_opus_collection":case 35:n.moduleType=35;break;case"module_onetime_notice":case 36:n.moduleType=36;break}if(i.moduleAuthor!=null){if(typeof i.moduleAuthor!="object")throw TypeError(".bilibili.app.dynamic.v2.Module.moduleAuthor: object expected");n.moduleAuthor=u.bilibili.app.dynamic.v2.ModuleAuthor.fromObject(i.moduleAuthor)}if(i.moduleDispute!=null){if(typeof i.moduleDispute!="object")throw TypeError(".bilibili.app.dynamic.v2.Module.moduleDispute: object expected");n.moduleDispute=u.bilibili.app.dynamic.v2.ModuleDispute.fromObject(i.moduleDispute)}if(i.moduleDesc!=null){if(typeof i.moduleDesc!="object")throw TypeError(".bilibili.app.dynamic.v2.Module.moduleDesc: object expected");n.moduleDesc=u.bilibili.app.dynamic.v2.ModuleDesc.fromObject(i.moduleDesc)}if(i.moduleDynamic!=null){if(typeof i.moduleDynamic!="object")throw TypeError(".bilibili.app.dynamic.v2.Module.moduleDynamic: object expected");n.moduleDynamic=u.bilibili.app.dynamic.v2.ModuleDynamic.fromObject(i.moduleDynamic)}if(i.moduleLikeUser!=null){if(typeof i.moduleLikeUser!="object")throw TypeError(".bilibili.app.dynamic.v2.Module.moduleLikeUser: object expected");n.moduleLikeUser=u.bilibili.app.dynamic.v2.ModuleLikeUser.fromObject(i.moduleLikeUser)}if(i.moduleExtend!=null){if(typeof i.moduleExtend!="object")throw TypeError(".bilibili.app.dynamic.v2.Module.moduleExtend: object expected");n.moduleExtend=u.bilibili.app.dynamic.v2.ModuleExtend.fromObject(i.moduleExtend)}if(i.moduleAdditional!=null){if(typeof i.moduleAdditional!="object")throw TypeError(".bilibili.app.dynamic.v2.Module.moduleAdditional: object expected");n.moduleAdditional=u.bilibili.app.dynamic.v2.ModuleAdditional.fromObject(i.moduleAdditional)}if(i.moduleStat!=null){if(typeof i.moduleStat!="object")throw TypeError(".bilibili.app.dynamic.v2.Module.moduleStat: object expected");n.moduleStat=u.bilibili.app.dynamic.v2.ModuleStat.fromObject(i.moduleStat)}if(i.moduleFold!=null){if(typeof i.moduleFold!="object")throw TypeError(".bilibili.app.dynamic.v2.Module.moduleFold: object expected");n.moduleFold=u.bilibili.app.dynamic.v2.ModuleFold.fromObject(i.moduleFold)}if(i.moduleComment!=null){if(typeof i.moduleComment!="object")throw TypeError(".bilibili.app.dynamic.v2.Module.moduleComment: object expected");n.moduleComment=u.bilibili.app.dynamic.v2.ModuleComment.fromObject(i.moduleComment)}if(i.moduleInteraction!=null){if(typeof i.moduleInteraction!="object")throw TypeError(".bilibili.app.dynamic.v2.Module.moduleInteraction: object expected");n.moduleInteraction=u.bilibili.app.dynamic.v2.ModuleInteraction.fromObject(i.moduleInteraction)}if(i.moduleAuthorForward!=null){if(typeof i.moduleAuthorForward!="object")throw TypeError(".bilibili.app.dynamic.v2.Module.moduleAuthorForward: object expected");n.moduleAuthorForward=u.bilibili.app.dynamic.v2.ModuleAuthorForward.fromObject(i.moduleAuthorForward)}if(i.moduleAd!=null){if(typeof i.moduleAd!="object")throw TypeError(".bilibili.app.dynamic.v2.Module.moduleAd: object expected");n.moduleAd=u.bilibili.app.dynamic.v2.ModuleAd.fromObject(i.moduleAd)}if(i.moduleBanner!=null){if(typeof i.moduleBanner!="object")throw TypeError(".bilibili.app.dynamic.v2.Module.moduleBanner: object expected");n.moduleBanner=u.bilibili.app.dynamic.v2.ModuleBanner.fromObject(i.moduleBanner)}if(i.moduleItemNull!=null){if(typeof i.moduleItemNull!="object")throw TypeError(".bilibili.app.dynamic.v2.Module.moduleItemNull: object expected");n.moduleItemNull=u.bilibili.app.dynamic.v2.ModuleItemNull.fromObject(i.moduleItemNull)}if(i.moduleShareInfo!=null){if(typeof i.moduleShareInfo!="object")throw TypeError(".bilibili.app.dynamic.v2.Module.moduleShareInfo: object expected");n.moduleShareInfo=u.bilibili.app.dynamic.v2.ModuleShareInfo.fromObject(i.moduleShareInfo)}if(i.moduleRecommend!=null){if(typeof i.moduleRecommend!="object")throw TypeError(".bilibili.app.dynamic.v2.Module.moduleRecommend: object expected");n.moduleRecommend=u.bilibili.app.dynamic.v2.ModuleRecommend.fromObject(i.moduleRecommend)}if(i.moduleTop!=null){if(typeof i.moduleTop!="object")throw TypeError(".bilibili.app.dynamic.v2.Module.moduleTop: object expected");n.moduleTop=u.bilibili.app.dynamic.v2.ModuleTop.fromObject(i.moduleTop)}if(i.moduleButtom!=null){if(typeof i.moduleButtom!="object")throw TypeError(".bilibili.app.dynamic.v2.Module.moduleButtom: object expected");n.moduleButtom=u.bilibili.app.dynamic.v2.ModuleButtom.fromObject(i.moduleButtom)}if(i.moduleStatForward!=null){if(typeof i.moduleStatForward!="object")throw TypeError(".bilibili.app.dynamic.v2.Module.moduleStatForward: object expected");n.moduleStatForward=u.bilibili.app.dynamic.v2.ModuleStat.fromObject(i.moduleStatForward)}if(i.moduleStory!=null){if(typeof i.moduleStory!="object")throw TypeError(".bilibili.app.dynamic.v2.Module.moduleStory: object expected");n.moduleStory=u.bilibili.app.dynamic.v2.ModuleStory.fromObject(i.moduleStory)}if(i.moduleTopic!=null){if(typeof i.moduleTopic!="object")throw TypeError(".bilibili.app.dynamic.v2.Module.moduleTopic: object expected");n.moduleTopic=u.bilibili.app.dynamic.v2.ModuleTopic.fromObject(i.moduleTopic)}if(i.moduleTopicDetailsExt!=null){if(typeof i.moduleTopicDetailsExt!="object")throw TypeError(".bilibili.app.dynamic.v2.Module.moduleTopicDetailsExt: object expected");n.moduleTopicDetailsExt=u.bilibili.app.dynamic.v2.ModuleTopicDetailsExt.fromObject(i.moduleTopicDetailsExt)}if(i.moduleTopTag!=null){if(typeof i.moduleTopTag!="object")throw TypeError(".bilibili.app.dynamic.v2.Module.moduleTopTag: object expected");n.moduleTopTag=u.bilibili.app.dynamic.v2.ModuleTopTag.fromObject(i.moduleTopTag)}if(i.moduleTopicBrief!=null){if(typeof i.moduleTopicBrief!="object")throw TypeError(".bilibili.app.dynamic.v2.Module.moduleTopicBrief: object expected");n.moduleTopicBrief=u.bilibili.app.dynamic.v2.ModuleTopicBrief.fromObject(i.moduleTopicBrief)}if(i.moduleTitle!=null){if(typeof i.moduleTitle!="object")throw TypeError(".bilibili.app.dynamic.v2.Module.moduleTitle: object expected");n.moduleTitle=u.bilibili.app.dynamic.v2.ModuleTitle.fromObject(i.moduleTitle)}if(i.moduleButton!=null){if(typeof i.moduleButton!="object")throw TypeError(".bilibili.app.dynamic.v2.Module.moduleButton: object expected");n.moduleButton=u.bilibili.app.dynamic.v2.ModuleButton.fromObject(i.moduleButton)}if(i.moduleNotice!=null){if(typeof i.moduleNotice!="object")throw TypeError(".bilibili.app.dynamic.v2.Module.moduleNotice: object expected");n.moduleNotice=u.bilibili.app.dynamic.v2.ModuleNotice.fromObject(i.moduleNotice)}if(i.moduleOpusSummary!=null){if(typeof i.moduleOpusSummary!="object")throw TypeError(".bilibili.app.dynamic.v2.Module.moduleOpusSummary: object expected");n.moduleOpusSummary=u.bilibili.app.dynamic.v2.ModuleOpusSummary.fromObject(i.moduleOpusSummary)}if(i.moduleCopyright!=null){if(typeof i.moduleCopyright!="object")throw TypeError(".bilibili.app.dynamic.v2.Module.moduleCopyright: object expected");n.moduleCopyright=u.bilibili.app.dynamic.v2.ModuleCopyright.fromObject(i.moduleCopyright)}if(i.moduleParagraph!=null){if(typeof i.moduleParagraph!="object")throw TypeError(".bilibili.app.dynamic.v2.Module.moduleParagraph: object expected");n.moduleParagraph=u.bilibili.app.dynamic.v2.ModuleParagraph.fromObject(i.moduleParagraph)}if(i.moduleBlocked!=null){if(typeof i.moduleBlocked!="object")throw TypeError(".bilibili.app.dynamic.v2.Module.moduleBlocked: object expected");n.moduleBlocked=u.bilibili.app.dynamic.v2.ModuleBlocked.fromObject(i.moduleBlocked)}if(i.moduleTextNotice!=null){if(typeof i.moduleTextNotice!="object")throw TypeError(".bilibili.app.dynamic.v2.Module.moduleTextNotice: object expected");n.moduleTextNotice=u.bilibili.app.dynamic.v2.ModuleTextNotice.fromObject(i.moduleTextNotice)}if(i.moduleOpusCollection!=null){if(typeof i.moduleOpusCollection!="object")throw TypeError(".bilibili.app.dynamic.v2.Module.moduleOpusCollection: object expected");n.moduleOpusCollection=u.bilibili.app.dynamic.v2.ModuleOpusCollection.fromObject(i.moduleOpusCollection)}if(i.moduleOnetimeNotice!=null){if(typeof i.moduleOnetimeNotice!="object")throw TypeError(".bilibili.app.dynamic.v2.Module.moduleOnetimeNotice: object expected");n.moduleOnetimeNotice=u.bilibili.app.dynamic.v2.ModuleOnetimeNotice.fromObject(i.moduleOnetimeNotice)}return n},e.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.moduleType=n.enums===String?"module_none":0),i.moduleType!=null&&i.hasOwnProperty("moduleType")&&(o.moduleType=n.enums===String?u.bilibili.app.dynamic.v2.DynModuleType[i.moduleType]===void 0?i.moduleType:u.bilibili.app.dynamic.v2.DynModuleType[i.moduleType]:i.moduleType),i.moduleAuthor!=null&&i.hasOwnProperty("moduleAuthor")&&(o.moduleAuthor=u.bilibili.app.dynamic.v2.ModuleAuthor.toObject(i.moduleAuthor,n),n.oneofs&&(o.moduleItem="moduleAuthor")),i.moduleDispute!=null&&i.hasOwnProperty("moduleDispute")&&(o.moduleDispute=u.bilibili.app.dynamic.v2.ModuleDispute.toObject(i.moduleDispute,n),n.oneofs&&(o.moduleItem="moduleDispute")),i.moduleDesc!=null&&i.hasOwnProperty("moduleDesc")&&(o.moduleDesc=u.bilibili.app.dynamic.v2.ModuleDesc.toObject(i.moduleDesc,n),n.oneofs&&(o.moduleItem="moduleDesc")),i.moduleDynamic!=null&&i.hasOwnProperty("moduleDynamic")&&(o.moduleDynamic=u.bilibili.app.dynamic.v2.ModuleDynamic.toObject(i.moduleDynamic,n),n.oneofs&&(o.moduleItem="moduleDynamic")),i.moduleLikeUser!=null&&i.hasOwnProperty("moduleLikeUser")&&(o.moduleLikeUser=u.bilibili.app.dynamic.v2.ModuleLikeUser.toObject(i.moduleLikeUser,n),n.oneofs&&(o.moduleItem="moduleLikeUser")),i.moduleExtend!=null&&i.hasOwnProperty("moduleExtend")&&(o.moduleExtend=u.bilibili.app.dynamic.v2.ModuleExtend.toObject(i.moduleExtend,n),n.oneofs&&(o.moduleItem="moduleExtend")),i.moduleAdditional!=null&&i.hasOwnProperty("moduleAdditional")&&(o.moduleAdditional=u.bilibili.app.dynamic.v2.ModuleAdditional.toObject(i.moduleAdditional,n),n.oneofs&&(o.moduleItem="moduleAdditional")),i.moduleStat!=null&&i.hasOwnProperty("moduleStat")&&(o.moduleStat=u.bilibili.app.dynamic.v2.ModuleStat.toObject(i.moduleStat,n),n.oneofs&&(o.moduleItem="moduleStat")),i.moduleFold!=null&&i.hasOwnProperty("moduleFold")&&(o.moduleFold=u.bilibili.app.dynamic.v2.ModuleFold.toObject(i.moduleFold,n),n.oneofs&&(o.moduleItem="moduleFold")),i.moduleComment!=null&&i.hasOwnProperty("moduleComment")&&(o.moduleComment=u.bilibili.app.dynamic.v2.ModuleComment.toObject(i.moduleComment,n),n.oneofs&&(o.moduleItem="moduleComment")),i.moduleInteraction!=null&&i.hasOwnProperty("moduleInteraction")&&(o.moduleInteraction=u.bilibili.app.dynamic.v2.ModuleInteraction.toObject(i.moduleInteraction,n),n.oneofs&&(o.moduleItem="moduleInteraction")),i.moduleAuthorForward!=null&&i.hasOwnProperty("moduleAuthorForward")&&(o.moduleAuthorForward=u.bilibili.app.dynamic.v2.ModuleAuthorForward.toObject(i.moduleAuthorForward,n),n.oneofs&&(o.moduleItem="moduleAuthorForward")),i.moduleAd!=null&&i.hasOwnProperty("moduleAd")&&(o.moduleAd=u.bilibili.app.dynamic.v2.ModuleAd.toObject(i.moduleAd,n),n.oneofs&&(o.moduleItem="moduleAd")),i.moduleBanner!=null&&i.hasOwnProperty("moduleBanner")&&(o.moduleBanner=u.bilibili.app.dynamic.v2.ModuleBanner.toObject(i.moduleBanner,n),n.oneofs&&(o.moduleItem="moduleBanner")),i.moduleItemNull!=null&&i.hasOwnProperty("moduleItemNull")&&(o.moduleItemNull=u.bilibili.app.dynamic.v2.ModuleItemNull.toObject(i.moduleItemNull,n),n.oneofs&&(o.moduleItem="moduleItemNull")),i.moduleShareInfo!=null&&i.hasOwnProperty("moduleShareInfo")&&(o.moduleShareInfo=u.bilibili.app.dynamic.v2.ModuleShareInfo.toObject(i.moduleShareInfo,n),n.oneofs&&(o.moduleItem="moduleShareInfo")),i.moduleRecommend!=null&&i.hasOwnProperty("moduleRecommend")&&(o.moduleRecommend=u.bilibili.app.dynamic.v2.ModuleRecommend.toObject(i.moduleRecommend,n),n.oneofs&&(o.moduleItem="moduleRecommend")),i.moduleTop!=null&&i.hasOwnProperty("moduleTop")&&(o.moduleTop=u.bilibili.app.dynamic.v2.ModuleTop.toObject(i.moduleTop,n),n.oneofs&&(o.moduleItem="moduleTop")),i.moduleButtom!=null&&i.hasOwnProperty("moduleButtom")&&(o.moduleButtom=u.bilibili.app.dynamic.v2.ModuleButtom.toObject(i.moduleButtom,n),n.oneofs&&(o.moduleItem="moduleButtom")),i.moduleStatForward!=null&&i.hasOwnProperty("moduleStatForward")&&(o.moduleStatForward=u.bilibili.app.dynamic.v2.ModuleStat.toObject(i.moduleStatForward,n),n.oneofs&&(o.moduleItem="moduleStatForward")),i.moduleStory!=null&&i.hasOwnProperty("moduleStory")&&(o.moduleStory=u.bilibili.app.dynamic.v2.ModuleStory.toObject(i.moduleStory,n),n.oneofs&&(o.moduleItem="moduleStory")),i.moduleTopic!=null&&i.hasOwnProperty("moduleTopic")&&(o.moduleTopic=u.bilibili.app.dynamic.v2.ModuleTopic.toObject(i.moduleTopic,n),n.oneofs&&(o.moduleItem="moduleTopic")),i.moduleTopicDetailsExt!=null&&i.hasOwnProperty("moduleTopicDetailsExt")&&(o.moduleTopicDetailsExt=u.bilibili.app.dynamic.v2.ModuleTopicDetailsExt.toObject(i.moduleTopicDetailsExt,n),n.oneofs&&(o.moduleItem="moduleTopicDetailsExt")),i.moduleTopTag!=null&&i.hasOwnProperty("moduleTopTag")&&(o.moduleTopTag=u.bilibili.app.dynamic.v2.ModuleTopTag.toObject(i.moduleTopTag,n),n.oneofs&&(o.moduleItem="moduleTopTag")),i.moduleTopicBrief!=null&&i.hasOwnProperty("moduleTopicBrief")&&(o.moduleTopicBrief=u.bilibili.app.dynamic.v2.ModuleTopicBrief.toObject(i.moduleTopicBrief,n),n.oneofs&&(o.moduleItem="moduleTopicBrief")),i.moduleTitle!=null&&i.hasOwnProperty("moduleTitle")&&(o.moduleTitle=u.bilibili.app.dynamic.v2.ModuleTitle.toObject(i.moduleTitle,n),n.oneofs&&(o.moduleItem="moduleTitle")),i.moduleButton!=null&&i.hasOwnProperty("moduleButton")&&(o.moduleButton=u.bilibili.app.dynamic.v2.ModuleButton.toObject(i.moduleButton,n),n.oneofs&&(o.moduleItem="moduleButton")),i.moduleNotice!=null&&i.hasOwnProperty("moduleNotice")&&(o.moduleNotice=u.bilibili.app.dynamic.v2.ModuleNotice.toObject(i.moduleNotice,n),n.oneofs&&(o.moduleItem="moduleNotice")),i.moduleOpusSummary!=null&&i.hasOwnProperty("moduleOpusSummary")&&(o.moduleOpusSummary=u.bilibili.app.dynamic.v2.ModuleOpusSummary.toObject(i.moduleOpusSummary,n),n.oneofs&&(o.moduleItem="moduleOpusSummary")),i.moduleCopyright!=null&&i.hasOwnProperty("moduleCopyright")&&(o.moduleCopyright=u.bilibili.app.dynamic.v2.ModuleCopyright.toObject(i.moduleCopyright,n),n.oneofs&&(o.moduleItem="moduleCopyright")),i.moduleParagraph!=null&&i.hasOwnProperty("moduleParagraph")&&(o.moduleParagraph=u.bilibili.app.dynamic.v2.ModuleParagraph.toObject(i.moduleParagraph,n),n.oneofs&&(o.moduleItem="moduleParagraph")),i.moduleBlocked!=null&&i.hasOwnProperty("moduleBlocked")&&(o.moduleBlocked=u.bilibili.app.dynamic.v2.ModuleBlocked.toObject(i.moduleBlocked,n),n.oneofs&&(o.moduleItem="moduleBlocked")),i.moduleTextNotice!=null&&i.hasOwnProperty("moduleTextNotice")&&(o.moduleTextNotice=u.bilibili.app.dynamic.v2.ModuleTextNotice.toObject(i.moduleTextNotice,n),n.oneofs&&(o.moduleItem="moduleTextNotice")),i.moduleOpusCollection!=null&&i.hasOwnProperty("moduleOpusCollection")&&(o.moduleOpusCollection=u.bilibili.app.dynamic.v2.ModuleOpusCollection.toObject(i.moduleOpusCollection,n),n.oneofs&&(o.moduleItem="moduleOpusCollection")),i.moduleOnetimeNotice!=null&&i.hasOwnProperty("moduleOnetimeNotice")&&(o.moduleOnetimeNotice=u.bilibili.app.dynamic.v2.ModuleOnetimeNotice.toObject(i.moduleOnetimeNotice,n),n.oneofs&&(o.moduleItem="moduleOnetimeNotice")),o},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.app.dynamic.v2.Module"},e}(),c.DynModuleType=function(){let e={},l=Object.create(e);return l[e[0]="module_none"]=0,l[e[1]="module_author"]=1,l[e[2]="module_dispute"]=2,l[e[3]="module_desc"]=3,l[e[4]="module_dynamic"]=4,l[e[5]="module_forward"]=5,l[e[6]="module_likeUser"]=6,l[e[7]="module_extend"]=7,l[e[8]="module_additional"]=8,l[e[9]="module_stat"]=9,l[e[10]="module_fold"]=10,l[e[11]="module_comment"]=11,l[e[12]="module_interaction"]=12,l[e[13]="module_author_forward"]=13,l[e[14]="module_ad"]=14,l[e[15]="module_banner"]=15,l[e[16]="module_item_null"]=16,l[e[17]="module_share_info"]=17,l[e[18]="module_recommend"]=18,l[e[19]="module_stat_forward"]=19,l[e[20]="module_top"]=20,l[e[21]="module_bottom"]=21,l[e[22]="module_story"]=22,l[e[23]="module_topic"]=23,l[e[24]="module_topic_details_ext"]=24,l[e[25]="module_top_tag"]=25,l[e[26]="module_topic_brief"]=26,l[e[27]="module_title"]=27,l[e[28]="module_button"]=28,l[e[29]="module_notice"]=29,l[e[30]="module_opus_summary"]=30,l[e[31]="module_copyright"]=31,l[e[32]="module_paragraph"]=32,l[e[33]="module_blocked"]=33,l[e[34]="module_text_notice"]=34,l[e[35]="module_opus_collection"]=35,l[e[36]="module_onetime_notice"]=36,l}(),c.Extend=function(){function e(l){if(this.origDesc=[],this.desc=[],this.historyReport={},l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.dynIdStr=t.string();break}case 2:{o.businessId=t.string();break}case 3:{o.origDynIdStr=t.string();break}case 4:{o.origName=t.string();break}case 5:{o.origImgUrl=t.string();break}case 6:{o.origDesc&&o.origDesc.length||(o.origDesc=[]),o.origDesc.push(u.bilibili.app.dynamic.v2.Description.decode(t,t.uint32()));break}case 7:{o.desc&&o.desc.length||(o.desc=[]),o.desc.push(u.bilibili.app.dynamic.v2.Description.decode(t,t.uint32()));break}case 8:{o.origDynType=t.int32();break}case 9:{o.shareType=t.string();break}case 10:{o.shareScene=t.string();break}case 11:{o.isFastShare=t.bool();break}case 12:{o.rType=t.int32();break}case 13:{o.dynType=t.int64();break}case 14:{o.uid=t.int64();break}case 15:{o.cardUrl=t.string();break}case 16:{o.sourceContent=u.google.protobuf.Any.decode(t,t.uint32());break}case 17:{o.origFace=t.string();break}case 18:{o.reply=u.bilibili.app.dynamic.v2.ExtendReply.decode(t,t.uint32());break}case 19:{o.trackId=t.string();break}case 20:{o.opusSummary=u.bilibili.app.dynamic.v2.ModuleOpusSummary.decode(t,t.uint32());break}case 21:{o.onlyFansProperty=u.bilibili.app.dynamic.v2.OnlyFansProperty.decode(t,t.uint32());break}case 22:{o.featureGate=u.bilibili.app.dynamic.v2.DynFeatureGate.decode(t,t.uint32());break}case 23:{o.isInAudit=t.bool();break}case 24:{o.historyReport===r.emptyObject&&(o.historyReport={});let v=t.uint32()+t.pos;for(a="",y="";t.pos>>3){case 1:a=t.string();break;case 2:y=t.string();break;default:t.skipType(g&7);break}}o.historyReport[a]=y;break}case 25:{o.reportMetricData=t.string();break}case 26:{o.descTextOpus=u.bilibili.app.dynamic.v2.TextParagraph.decode(t,t.uint32());break}default:t.skipType(s&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.Extend)return t;let i=new u.bilibili.app.dynamic.v2.Extend;if(t.dynIdStr!=null&&(i.dynIdStr=String(t.dynIdStr)),t.businessId!=null&&(i.businessId=String(t.businessId)),t.origDynIdStr!=null&&(i.origDynIdStr=String(t.origDynIdStr)),t.origName!=null&&(i.origName=String(t.origName)),t.origImgUrl!=null&&(i.origImgUrl=String(t.origImgUrl)),t.origDesc){if(!Array.isArray(t.origDesc))throw TypeError(".bilibili.app.dynamic.v2.Extend.origDesc: array expected");i.origDesc=[];for(let n=0;n>>0,t.dynType.high>>>0).toNumber())),t.uid!=null&&(r.Long?(i.uid=r.Long.fromValue(t.uid)).unsigned=!1:typeof t.uid=="string"?i.uid=parseInt(t.uid,10):typeof t.uid=="number"?i.uid=t.uid:typeof t.uid=="object"&&(i.uid=new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber())),t.cardUrl!=null&&(i.cardUrl=String(t.cardUrl)),t.sourceContent!=null){if(typeof t.sourceContent!="object")throw TypeError(".bilibili.app.dynamic.v2.Extend.sourceContent: object expected");i.sourceContent=u.google.protobuf.Any.fromObject(t.sourceContent)}if(t.origFace!=null&&(i.origFace=String(t.origFace)),t.reply!=null){if(typeof t.reply!="object")throw TypeError(".bilibili.app.dynamic.v2.Extend.reply: object expected");i.reply=u.bilibili.app.dynamic.v2.ExtendReply.fromObject(t.reply)}if(t.trackId!=null&&(i.trackId=String(t.trackId)),t.opusSummary!=null){if(typeof t.opusSummary!="object")throw TypeError(".bilibili.app.dynamic.v2.Extend.opusSummary: object expected");i.opusSummary=u.bilibili.app.dynamic.v2.ModuleOpusSummary.fromObject(t.opusSummary)}if(t.onlyFansProperty!=null){if(typeof t.onlyFansProperty!="object")throw TypeError(".bilibili.app.dynamic.v2.Extend.onlyFansProperty: object expected");i.onlyFansProperty=u.bilibili.app.dynamic.v2.OnlyFansProperty.fromObject(t.onlyFansProperty)}if(t.featureGate!=null){if(typeof t.featureGate!="object")throw TypeError(".bilibili.app.dynamic.v2.Extend.featureGate: object expected");i.featureGate=u.bilibili.app.dynamic.v2.DynFeatureGate.fromObject(t.featureGate)}if(t.isInAudit!=null&&(i.isInAudit=!!t.isInAudit),t.historyReport){if(typeof t.historyReport!="object")throw TypeError(".bilibili.app.dynamic.v2.Extend.historyReport: object expected");i.historyReport={};for(let n=Object.keys(t.historyReport),o=0;o>>0,t.dynType.high>>>0).toNumber():t.dynType),t.uid!=null&&t.hasOwnProperty("uid")&&(typeof t.uid=="number"?n.uid=i.longs===String?String(t.uid):t.uid:n.uid=i.longs===String?r.Long.prototype.toString.call(t.uid):i.longs===Number?new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber():t.uid),t.cardUrl!=null&&t.hasOwnProperty("cardUrl")&&(n.cardUrl=t.cardUrl),t.sourceContent!=null&&t.hasOwnProperty("sourceContent")&&(n.sourceContent=u.google.protobuf.Any.toObject(t.sourceContent,i)),t.origFace!=null&&t.hasOwnProperty("origFace")&&(n.origFace=t.origFace),t.reply!=null&&t.hasOwnProperty("reply")&&(n.reply=u.bilibili.app.dynamic.v2.ExtendReply.toObject(t.reply,i)),t.trackId!=null&&t.hasOwnProperty("trackId")&&(n.trackId=t.trackId),t.opusSummary!=null&&t.hasOwnProperty("opusSummary")&&(n.opusSummary=u.bilibili.app.dynamic.v2.ModuleOpusSummary.toObject(t.opusSummary,i)),t.onlyFansProperty!=null&&t.hasOwnProperty("onlyFansProperty")&&(n.onlyFansProperty=u.bilibili.app.dynamic.v2.OnlyFansProperty.toObject(t.onlyFansProperty,i)),t.featureGate!=null&&t.hasOwnProperty("featureGate")&&(n.featureGate=u.bilibili.app.dynamic.v2.DynFeatureGate.toObject(t.featureGate,i)),t.isInAudit!=null&&t.hasOwnProperty("isInAudit")&&(n.isInAudit=t.isInAudit);let o;if(t.historyReport&&(o=Object.keys(t.historyReport)).length){n.historyReport={};for(let a=0;a>>3){case 1:{o.enhancedInteraction=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.DynFeatureGate)return t;let i=new u.bilibili.app.dynamic.v2.DynFeatureGate;return t.enhancedInteraction!=null&&(i.enhancedInteraction=!!t.enhancedInteraction),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.enhancedInteraction=!1),t.enhancedInteraction!=null&&t.hasOwnProperty("enhancedInteraction")&&(n.enhancedInteraction=t.enhancedInteraction),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.DynFeatureGate"},e}(),c.OnlyFansProperty=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.hasPrivilege=t.bool();break}case 2:{o.isOnlyFans=t.bool();break}case 3:{o.allowDownload=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.OnlyFansProperty)return t;let i=new u.bilibili.app.dynamic.v2.OnlyFansProperty;return t.hasPrivilege!=null&&(i.hasPrivilege=!!t.hasPrivilege),t.isOnlyFans!=null&&(i.isOnlyFans=!!t.isOnlyFans),t.allowDownload!=null&&(i.allowDownload=!!t.allowDownload),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.hasPrivilege=!1,n.isOnlyFans=!1,n.allowDownload=!1),t.hasPrivilege!=null&&t.hasOwnProperty("hasPrivilege")&&(n.hasPrivilege=t.hasPrivilege),t.isOnlyFans!=null&&t.hasOwnProperty("isOnlyFans")&&(n.isOnlyFans=t.isOnlyFans),t.allowDownload!=null&&t.hasOwnProperty("allowDownload")&&(n.allowDownload=t.allowDownload),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.OnlyFansProperty"},e}(),c.ExtendReply=function(){function e(l){if(this.params=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.uri=t.string();break}case 2:{o.params&&o.params.length||(o.params=[]),o.params.push(u.bilibili.app.dynamic.v2.ExtendReplyParam.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.ExtendReply)return t;let i=new u.bilibili.app.dynamic.v2.ExtendReply;if(t.uri!=null&&(i.uri=String(t.uri)),t.params){if(!Array.isArray(t.params))throw TypeError(".bilibili.app.dynamic.v2.ExtendReply.params: array expected");i.params=[];for(let n=0;n>>3){case 1:{o.key=t.string();break}case 2:{o.value=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.ExtendReplyParam)return t;let i=new u.bilibili.app.dynamic.v2.ExtendReplyParam;return t.key!=null&&(i.key=String(t.key)),t.value!=null&&(i.value=String(t.value)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.key="",n.value=""),t.key!=null&&t.hasOwnProperty("key")&&(n.key=t.key),t.value!=null&&t.hasOwnProperty("value")&&(n.value=t.value),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.ExtendReplyParam"},e}(),c.Description=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.text=t.string();break}case 2:{o.type=t.int32();break}case 3:{o.uri=t.string();break}case 4:{o.emojiType=t.int32();break}case 5:{o.goodsType=t.string();break}case 6:{o.iconUrl=t.string();break}case 7:{o.iconName=t.string();break}case 8:{o.rid=t.string();break}case 9:{o.goods=u.bilibili.app.dynamic.v2.ModuleDescGoods.decode(t,t.uint32());break}case 10:{o.origText=t.string();break}case 11:{o.emojiSize=t.int32();break}case 12:{o.emojiSizeSpec=u.bilibili.app.dynamic.v2.EmojiSizeSpec.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.Description)return t;let i=new u.bilibili.app.dynamic.v2.Description;switch(t.text!=null&&(i.text=String(t.text)),t.type){default:if(typeof t.type=="number"){i.type=t.type;break}break;case"desc_type_none":case 0:i.type=0;break;case"desc_type_text":case 1:i.type=1;break;case"desc_type_aite":case 2:i.type=2;break;case"desc_type_lottery":case 3:i.type=3;break;case"desc_type_vote":case 4:i.type=4;break;case"desc_type_topic":case 5:i.type=5;break;case"desc_type_goods":case 6:i.type=6;break;case"desc_type_bv":case 7:i.type=7;break;case"desc_type_av":case 8:i.type=8;break;case"desc_type_emoji":case 9:i.type=9;break;case"desc_type_user":case 10:i.type=10;break;case"desc_type_cv":case 11:i.type=11;break;case"desc_type_vc":case 12:i.type=12;break;case"desc_type_web":case 13:i.type=13;break;case"desc_type_taobao":case 14:i.type=14;break;case"desc_type_mail":case 15:i.type=15;break;case"desc_type_ogv_season":case 16:i.type=16;break;case"desc_type_ogv_ep":case 17:i.type=17;break;case"desc_type_search_word":case 18:i.type=18;break}switch(t.uri!=null&&(i.uri=String(t.uri)),t.emojiType){default:if(typeof t.emojiType=="number"){i.emojiType=t.emojiType;break}break;case"emoji_none":case 0:i.emojiType=0;break;case"emoji_old":case 1:i.emojiType=1;break;case"emoji_new":case 2:i.emojiType=2;break;case"vip":case 3:i.emojiType=3;break}if(t.goodsType!=null&&(i.goodsType=String(t.goodsType)),t.iconUrl!=null&&(i.iconUrl=String(t.iconUrl)),t.iconName!=null&&(i.iconName=String(t.iconName)),t.rid!=null&&(i.rid=String(t.rid)),t.goods!=null){if(typeof t.goods!="object")throw TypeError(".bilibili.app.dynamic.v2.Description.goods: object expected");i.goods=u.bilibili.app.dynamic.v2.ModuleDescGoods.fromObject(t.goods)}if(t.origText!=null&&(i.origText=String(t.origText)),t.emojiSize!=null&&(i.emojiSize=t.emojiSize|0),t.emojiSizeSpec!=null){if(typeof t.emojiSizeSpec!="object")throw TypeError(".bilibili.app.dynamic.v2.Description.emojiSizeSpec: object expected");i.emojiSizeSpec=u.bilibili.app.dynamic.v2.EmojiSizeSpec.fromObject(t.emojiSizeSpec)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.text="",n.type=i.enums===String?"desc_type_none":0,n.uri="",n.emojiType=i.enums===String?"emoji_none":0,n.goodsType="",n.iconUrl="",n.iconName="",n.rid="",n.goods=null,n.origText="",n.emojiSize=0,n.emojiSizeSpec=null),t.text!=null&&t.hasOwnProperty("text")&&(n.text=t.text),t.type!=null&&t.hasOwnProperty("type")&&(n.type=i.enums===String?u.bilibili.app.dynamic.v2.DescType[t.type]===void 0?t.type:u.bilibili.app.dynamic.v2.DescType[t.type]:t.type),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),t.emojiType!=null&&t.hasOwnProperty("emojiType")&&(n.emojiType=i.enums===String?u.bilibili.app.dynamic.v2.EmojiType[t.emojiType]===void 0?t.emojiType:u.bilibili.app.dynamic.v2.EmojiType[t.emojiType]:t.emojiType),t.goodsType!=null&&t.hasOwnProperty("goodsType")&&(n.goodsType=t.goodsType),t.iconUrl!=null&&t.hasOwnProperty("iconUrl")&&(n.iconUrl=t.iconUrl),t.iconName!=null&&t.hasOwnProperty("iconName")&&(n.iconName=t.iconName),t.rid!=null&&t.hasOwnProperty("rid")&&(n.rid=t.rid),t.goods!=null&&t.hasOwnProperty("goods")&&(n.goods=u.bilibili.app.dynamic.v2.ModuleDescGoods.toObject(t.goods,i)),t.origText!=null&&t.hasOwnProperty("origText")&&(n.origText=t.origText),t.emojiSize!=null&&t.hasOwnProperty("emojiSize")&&(n.emojiSize=t.emojiSize),t.emojiSizeSpec!=null&&t.hasOwnProperty("emojiSizeSpec")&&(n.emojiSizeSpec=u.bilibili.app.dynamic.v2.EmojiSizeSpec.toObject(t.emojiSizeSpec,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.Description"},e}(),c.EmojiSizeSpec=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.width=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.EmojiSizeSpec)return t;let i=new u.bilibili.app.dynamic.v2.EmojiSizeSpec;return t.width!=null&&(r.Long?(i.width=r.Long.fromValue(t.width)).unsigned=!1:typeof t.width=="string"?i.width=parseInt(t.width,10):typeof t.width=="number"?i.width=t.width:typeof t.width=="object"&&(i.width=new r.LongBits(t.width.low>>>0,t.width.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(r.Long){let o=new r.Long(0,0,!1);n.width=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.width=i.longs===String?"0":0;return t.width!=null&&t.hasOwnProperty("width")&&(typeof t.width=="number"?n.width=i.longs===String?String(t.width):t.width:n.width=i.longs===String?r.Long.prototype.toString.call(t.width):i.longs===Number?new r.LongBits(t.width.low>>>0,t.width.high>>>0).toNumber():t.width),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.EmojiSizeSpec"},e}(),c.DescType=function(){let e={},l=Object.create(e);return l[e[0]="desc_type_none"]=0,l[e[1]="desc_type_text"]=1,l[e[2]="desc_type_aite"]=2,l[e[3]="desc_type_lottery"]=3,l[e[4]="desc_type_vote"]=4,l[e[5]="desc_type_topic"]=5,l[e[6]="desc_type_goods"]=6,l[e[7]="desc_type_bv"]=7,l[e[8]="desc_type_av"]=8,l[e[9]="desc_type_emoji"]=9,l[e[10]="desc_type_user"]=10,l[e[11]="desc_type_cv"]=11,l[e[12]="desc_type_vc"]=12,l[e[13]="desc_type_web"]=13,l[e[14]="desc_type_taobao"]=14,l[e[15]="desc_type_mail"]=15,l[e[16]="desc_type_ogv_season"]=16,l[e[17]="desc_type_ogv_ep"]=17,l[e[18]="desc_type_search_word"]=18,l}(),c.EmojiType=function(){let e={},l=Object.create(e);return l[e[0]="emoji_none"]=0,l[e[1]="emoji_old"]=1,l[e[2]="emoji_new"]=2,l[e[3]="vip"]=3,l}(),c.ModuleDescGoods=function(){function e(l){if(this.openWhiteList=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.sourceType=t.int32();break}case 2:{o.jumpUrl=t.string();break}case 3:{o.schemaUrl=t.string();break}case 4:{o.itemId=t.int64();break}case 5:{o.openWhiteList&&o.openWhiteList.length||(o.openWhiteList=[]),o.openWhiteList.push(t.string());break}case 6:{o.userWebV2=t.bool();break}case 7:{o.adMark=t.string();break}case 8:{o.schemaPackageName=t.string();break}case 9:{o.jumpType=t.int32();break}case 10:{o.appName=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.ModuleDescGoods)return t;let i=new u.bilibili.app.dynamic.v2.ModuleDescGoods;if(t.sourceType!=null&&(i.sourceType=t.sourceType|0),t.jumpUrl!=null&&(i.jumpUrl=String(t.jumpUrl)),t.schemaUrl!=null&&(i.schemaUrl=String(t.schemaUrl)),t.itemId!=null&&(r.Long?(i.itemId=r.Long.fromValue(t.itemId)).unsigned=!1:typeof t.itemId=="string"?i.itemId=parseInt(t.itemId,10):typeof t.itemId=="number"?i.itemId=t.itemId:typeof t.itemId=="object"&&(i.itemId=new r.LongBits(t.itemId.low>>>0,t.itemId.high>>>0).toNumber())),t.openWhiteList){if(!Array.isArray(t.openWhiteList))throw TypeError(".bilibili.app.dynamic.v2.ModuleDescGoods.openWhiteList: array expected");i.openWhiteList=[];for(let n=0;n>>0,t.itemId.high>>>0).toNumber():t.itemId),t.openWhiteList&&t.openWhiteList.length){n.openWhiteList=[];for(let o=0;o>>3){case 1:{o.mid=t.int64();break}case 2:{o.ptimeLabelText=t.string();break}case 3:{o.author=u.bilibili.app.dynamic.v2.UserInfo.decode(t,t.uint32());break}case 4:{o.decorateCard=u.bilibili.app.dynamic.v2.DecorateCard.decode(t,t.uint32());break}case 5:{o.uri=t.string();break}case 6:{o.tpList&&o.tpList.length||(o.tpList=[]),o.tpList.push(u.bilibili.app.dynamic.v2.ThreePointItem.decode(t,t.uint32()));break}case 7:{o.badgeType=t.int32();break}case 8:{o.badgeButton=u.bilibili.app.dynamic.v2.ModuleAuthorBadgeButton.decode(t,t.uint32());break}case 9:{o.attend=t.int32();break}case 10:{o.relation=u.bilibili.app.dynamic.v2.Relation.decode(t,t.uint32());break}case 11:{o.weight=u.bilibili.app.dynamic.v2.Weight.decode(t,t.uint32());break}case 12:{o.showFollow=t.bool();break}case 13:{o.isTop=t.bool();break}case 14:{o.ptimeLocationText=t.string();break}case 15:{o.showLevel=t.bool();break}case 16:{o.onlyFans=u.bilibili.app.dynamic.v2.OnlyFans.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.ModuleAuthor)return t;let i=new u.bilibili.app.dynamic.v2.ModuleAuthor;if(t.mid!=null&&(r.Long?(i.mid=r.Long.fromValue(t.mid)).unsigned=!1:typeof t.mid=="string"?i.mid=parseInt(t.mid,10):typeof t.mid=="number"?i.mid=t.mid:typeof t.mid=="object"&&(i.mid=new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber())),t.ptimeLabelText!=null&&(i.ptimeLabelText=String(t.ptimeLabelText)),t.author!=null){if(typeof t.author!="object")throw TypeError(".bilibili.app.dynamic.v2.ModuleAuthor.author: object expected");i.author=u.bilibili.app.dynamic.v2.UserInfo.fromObject(t.author)}if(t.decorateCard!=null){if(typeof t.decorateCard!="object")throw TypeError(".bilibili.app.dynamic.v2.ModuleAuthor.decorateCard: object expected");i.decorateCard=u.bilibili.app.dynamic.v2.DecorateCard.fromObject(t.decorateCard)}if(t.uri!=null&&(i.uri=String(t.uri)),t.tpList){if(!Array.isArray(t.tpList))throw TypeError(".bilibili.app.dynamic.v2.ModuleAuthor.tpList: array expected");i.tpList=[];for(let n=0;n>>0,t.mid.high>>>0).toNumber():t.mid),t.ptimeLabelText!=null&&t.hasOwnProperty("ptimeLabelText")&&(n.ptimeLabelText=t.ptimeLabelText),t.author!=null&&t.hasOwnProperty("author")&&(n.author=u.bilibili.app.dynamic.v2.UserInfo.toObject(t.author,i)),t.decorateCard!=null&&t.hasOwnProperty("decorateCard")&&(n.decorateCard=u.bilibili.app.dynamic.v2.DecorateCard.toObject(t.decorateCard,i)),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),t.tpList&&t.tpList.length){n.tpList=[];for(let o=0;o>>3){case 1:{o.isOnlyFans=t.bool();break}case 2:{o.badge=u.bilibili.app.dynamic.v2.IconBadge.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.OnlyFans)return t;let i=new u.bilibili.app.dynamic.v2.OnlyFans;if(t.isOnlyFans!=null&&(i.isOnlyFans=!!t.isOnlyFans),t.badge!=null){if(typeof t.badge!="object")throw TypeError(".bilibili.app.dynamic.v2.OnlyFans.badge: object expected");i.badge=u.bilibili.app.dynamic.v2.IconBadge.fromObject(t.badge)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.isOnlyFans=!1,n.badge=null),t.isOnlyFans!=null&&t.hasOwnProperty("isOnlyFans")&&(n.isOnlyFans=t.isOnlyFans),t.badge!=null&&t.hasOwnProperty("badge")&&(n.badge=u.bilibili.app.dynamic.v2.IconBadge.toObject(t.badge,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.OnlyFans"},e}(),c.IconBadge=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.iconBgUrl=t.string();break}case 2:{o.text=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.IconBadge)return t;let i=new u.bilibili.app.dynamic.v2.IconBadge;return t.iconBgUrl!=null&&(i.iconBgUrl=String(t.iconBgUrl)),t.text!=null&&(i.text=String(t.text)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.iconBgUrl="",n.text=""),t.iconBgUrl!=null&&t.hasOwnProperty("iconBgUrl")&&(n.iconBgUrl=t.iconBgUrl),t.text!=null&&t.hasOwnProperty("text")&&(n.text=t.text),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.IconBadge"},e}(),c.UserInfo=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.mid=t.int64();break}case 2:{o.name=t.string();break}case 3:{o.face=t.string();break}case 4:{o.official=u.bilibili.app.dynamic.v2.OfficialVerify.decode(t,t.uint32());break}case 5:{o.vip=u.bilibili.app.dynamic.v2.VipInfo.decode(t,t.uint32());break}case 6:{o.live=u.bilibili.app.dynamic.v2.LiveInfo.decode(t,t.uint32());break}case 7:{o.uri=t.string();break}case 8:{o.pendant=u.bilibili.app.dynamic.v2.UserPendant.decode(t,t.uint32());break}case 9:{o.nameplate=u.bilibili.app.dynamic.v2.Nameplate.decode(t,t.uint32());break}case 10:{o.level=t.int32();break}case 11:{o.sign=t.string();break}case 12:{o.faceNft=t.int32();break}case 13:{o.faceNftNew=t.int32();break}case 14:{o.nftInfo=u.bilibili.app.dynamic.v2.NFTInfo.decode(t,t.uint32());break}case 15:{o.isSeniorMember=t.int32();break}case 16:{o.avatar=u.bilibili.dagw.component.avatar.v1.AvatarItem.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.UserInfo)return t;let i=new u.bilibili.app.dynamic.v2.UserInfo;if(t.mid!=null&&(r.Long?(i.mid=r.Long.fromValue(t.mid)).unsigned=!1:typeof t.mid=="string"?i.mid=parseInt(t.mid,10):typeof t.mid=="number"?i.mid=t.mid:typeof t.mid=="object"&&(i.mid=new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber())),t.name!=null&&(i.name=String(t.name)),t.face!=null&&(i.face=String(t.face)),t.official!=null){if(typeof t.official!="object")throw TypeError(".bilibili.app.dynamic.v2.UserInfo.official: object expected");i.official=u.bilibili.app.dynamic.v2.OfficialVerify.fromObject(t.official)}if(t.vip!=null){if(typeof t.vip!="object")throw TypeError(".bilibili.app.dynamic.v2.UserInfo.vip: object expected");i.vip=u.bilibili.app.dynamic.v2.VipInfo.fromObject(t.vip)}if(t.live!=null){if(typeof t.live!="object")throw TypeError(".bilibili.app.dynamic.v2.UserInfo.live: object expected");i.live=u.bilibili.app.dynamic.v2.LiveInfo.fromObject(t.live)}if(t.uri!=null&&(i.uri=String(t.uri)),t.pendant!=null){if(typeof t.pendant!="object")throw TypeError(".bilibili.app.dynamic.v2.UserInfo.pendant: object expected");i.pendant=u.bilibili.app.dynamic.v2.UserPendant.fromObject(t.pendant)}if(t.nameplate!=null){if(typeof t.nameplate!="object")throw TypeError(".bilibili.app.dynamic.v2.UserInfo.nameplate: object expected");i.nameplate=u.bilibili.app.dynamic.v2.Nameplate.fromObject(t.nameplate)}if(t.level!=null&&(i.level=t.level|0),t.sign!=null&&(i.sign=String(t.sign)),t.faceNft!=null&&(i.faceNft=t.faceNft|0),t.faceNftNew!=null&&(i.faceNftNew=t.faceNftNew|0),t.nftInfo!=null){if(typeof t.nftInfo!="object")throw TypeError(".bilibili.app.dynamic.v2.UserInfo.nftInfo: object expected");i.nftInfo=u.bilibili.app.dynamic.v2.NFTInfo.fromObject(t.nftInfo)}if(t.isSeniorMember!=null&&(i.isSeniorMember=t.isSeniorMember|0),t.avatar!=null){if(typeof t.avatar!="object")throw TypeError(".bilibili.app.dynamic.v2.UserInfo.avatar: object expected");i.avatar=u.bilibili.dagw.component.avatar.v1.AvatarItem.fromObject(t.avatar)}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.mid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mid=i.longs===String?"0":0;n.name="",n.face="",n.official=null,n.vip=null,n.live=null,n.uri="",n.pendant=null,n.nameplate=null,n.level=0,n.sign="",n.faceNft=0,n.faceNftNew=0,n.nftInfo=null,n.isSeniorMember=0,n.avatar=null}return t.mid!=null&&t.hasOwnProperty("mid")&&(typeof t.mid=="number"?n.mid=i.longs===String?String(t.mid):t.mid:n.mid=i.longs===String?r.Long.prototype.toString.call(t.mid):i.longs===Number?new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber():t.mid),t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),t.face!=null&&t.hasOwnProperty("face")&&(n.face=t.face),t.official!=null&&t.hasOwnProperty("official")&&(n.official=u.bilibili.app.dynamic.v2.OfficialVerify.toObject(t.official,i)),t.vip!=null&&t.hasOwnProperty("vip")&&(n.vip=u.bilibili.app.dynamic.v2.VipInfo.toObject(t.vip,i)),t.live!=null&&t.hasOwnProperty("live")&&(n.live=u.bilibili.app.dynamic.v2.LiveInfo.toObject(t.live,i)),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),t.pendant!=null&&t.hasOwnProperty("pendant")&&(n.pendant=u.bilibili.app.dynamic.v2.UserPendant.toObject(t.pendant,i)),t.nameplate!=null&&t.hasOwnProperty("nameplate")&&(n.nameplate=u.bilibili.app.dynamic.v2.Nameplate.toObject(t.nameplate,i)),t.level!=null&&t.hasOwnProperty("level")&&(n.level=t.level),t.sign!=null&&t.hasOwnProperty("sign")&&(n.sign=t.sign),t.faceNft!=null&&t.hasOwnProperty("faceNft")&&(n.faceNft=t.faceNft),t.faceNftNew!=null&&t.hasOwnProperty("faceNftNew")&&(n.faceNftNew=t.faceNftNew),t.nftInfo!=null&&t.hasOwnProperty("nftInfo")&&(n.nftInfo=u.bilibili.app.dynamic.v2.NFTInfo.toObject(t.nftInfo,i)),t.isSeniorMember!=null&&t.hasOwnProperty("isSeniorMember")&&(n.isSeniorMember=t.isSeniorMember),t.avatar!=null&&t.hasOwnProperty("avatar")&&(n.avatar=u.bilibili.dagw.component.avatar.v1.AvatarItem.toObject(t.avatar,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.UserInfo"},e}(),c.UserPendant=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.pid=t.int64();break}case 2:{o.name=t.string();break}case 3:{o.image=t.string();break}case 4:{o.expire=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.UserPendant)return t;let i=new u.bilibili.app.dynamic.v2.UserPendant;return t.pid!=null&&(r.Long?(i.pid=r.Long.fromValue(t.pid)).unsigned=!1:typeof t.pid=="string"?i.pid=parseInt(t.pid,10):typeof t.pid=="number"?i.pid=t.pid:typeof t.pid=="object"&&(i.pid=new r.LongBits(t.pid.low>>>0,t.pid.high>>>0).toNumber())),t.name!=null&&(i.name=String(t.name)),t.image!=null&&(i.image=String(t.image)),t.expire!=null&&(r.Long?(i.expire=r.Long.fromValue(t.expire)).unsigned=!1:typeof t.expire=="string"?i.expire=parseInt(t.expire,10):typeof t.expire=="number"?i.expire=t.expire:typeof t.expire=="object"&&(i.expire=new r.LongBits(t.expire.low>>>0,t.expire.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.pid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.pid=i.longs===String?"0":0;if(n.name="",n.image="",r.Long){let o=new r.Long(0,0,!1);n.expire=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.expire=i.longs===String?"0":0}return t.pid!=null&&t.hasOwnProperty("pid")&&(typeof t.pid=="number"?n.pid=i.longs===String?String(t.pid):t.pid:n.pid=i.longs===String?r.Long.prototype.toString.call(t.pid):i.longs===Number?new r.LongBits(t.pid.low>>>0,t.pid.high>>>0).toNumber():t.pid),t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),t.image!=null&&t.hasOwnProperty("image")&&(n.image=t.image),t.expire!=null&&t.hasOwnProperty("expire")&&(typeof t.expire=="number"?n.expire=i.longs===String?String(t.expire):t.expire:n.expire=i.longs===String?r.Long.prototype.toString.call(t.expire):i.longs===Number?new r.LongBits(t.expire.low>>>0,t.expire.high>>>0).toNumber():t.expire),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.UserPendant"},e}(),c.Nameplate=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.nid=t.int64();break}case 2:{o.name=t.string();break}case 3:{o.image=t.string();break}case 4:{o.imageSmall=t.string();break}case 5:{o.level=t.string();break}case 6:{o.condition=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.Nameplate)return t;let i=new u.bilibili.app.dynamic.v2.Nameplate;return t.nid!=null&&(r.Long?(i.nid=r.Long.fromValue(t.nid)).unsigned=!1:typeof t.nid=="string"?i.nid=parseInt(t.nid,10):typeof t.nid=="number"?i.nid=t.nid:typeof t.nid=="object"&&(i.nid=new r.LongBits(t.nid.low>>>0,t.nid.high>>>0).toNumber())),t.name!=null&&(i.name=String(t.name)),t.image!=null&&(i.image=String(t.image)),t.imageSmall!=null&&(i.imageSmall=String(t.imageSmall)),t.level!=null&&(i.level=String(t.level)),t.condition!=null&&(i.condition=String(t.condition)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.nid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.nid=i.longs===String?"0":0;n.name="",n.image="",n.imageSmall="",n.level="",n.condition=""}return t.nid!=null&&t.hasOwnProperty("nid")&&(typeof t.nid=="number"?n.nid=i.longs===String?String(t.nid):t.nid:n.nid=i.longs===String?r.Long.prototype.toString.call(t.nid):i.longs===Number?new r.LongBits(t.nid.low>>>0,t.nid.high>>>0).toNumber():t.nid),t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),t.image!=null&&t.hasOwnProperty("image")&&(n.image=t.image),t.imageSmall!=null&&t.hasOwnProperty("imageSmall")&&(n.imageSmall=t.imageSmall),t.level!=null&&t.hasOwnProperty("level")&&(n.level=t.level),t.condition!=null&&t.hasOwnProperty("condition")&&(n.condition=t.condition),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.Nameplate"},e}(),c.NFTInfo=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.regionType=t.int32();break}case 2:{o.regionIcon=t.string();break}case 3:{o.regionShowStatus=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.NFTInfo)return t;let i=new u.bilibili.app.dynamic.v2.NFTInfo;switch(t.regionType){default:if(typeof t.regionType=="number"){i.regionType=t.regionType;break}break;case"nft_region_default":case 0:i.regionType=0;break;case"nft_region_mainlang":case 1:i.regionType=1;break;case"nft_region_gat":case 2:i.regionType=2;break}switch(t.regionIcon!=null&&(i.regionIcon=String(t.regionIcon)),t.regionShowStatus){default:if(typeof t.regionShowStatus=="number"){i.regionShowStatus=t.regionShowStatus;break}break;case"nft_show_default":case 0:i.regionShowStatus=0;break;case"nft_show_zoominmainlang":case 1:i.regionShowStatus=1;break;case"nft_show_raw":case 2:i.regionShowStatus=2;break}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.regionType=i.enums===String?"nft_region_default":0,n.regionIcon="",n.regionShowStatus=i.enums===String?"nft_show_default":0),t.regionType!=null&&t.hasOwnProperty("regionType")&&(n.regionType=i.enums===String?u.bilibili.app.dynamic.v2.NFTRegionType[t.regionType]===void 0?t.regionType:u.bilibili.app.dynamic.v2.NFTRegionType[t.regionType]:t.regionType),t.regionIcon!=null&&t.hasOwnProperty("regionIcon")&&(n.regionIcon=t.regionIcon),t.regionShowStatus!=null&&t.hasOwnProperty("regionShowStatus")&&(n.regionShowStatus=i.enums===String?u.bilibili.app.dynamic.v2.NFTShowStatus[t.regionShowStatus]===void 0?t.regionShowStatus:u.bilibili.app.dynamic.v2.NFTShowStatus[t.regionShowStatus]:t.regionShowStatus),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.NFTInfo"},e}(),c.NFTRegionType=function(){let e={},l=Object.create(e);return l[e[0]="nft_region_default"]=0,l[e[1]="nft_region_mainlang"]=1,l[e[2]="nft_region_gat"]=2,l}(),c.NFTShowStatus=function(){let e={},l=Object.create(e);return l[e[0]="nft_show_default"]=0,l[e[1]="nft_show_zoominmainlang"]=1,l[e[2]="nft_show_raw"]=2,l}(),c.OfficialVerify=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.type=t.int32();break}case 2:{o.desc=t.string();break}case 3:{o.isAtten=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.OfficialVerify)return t;let i=new u.bilibili.app.dynamic.v2.OfficialVerify;return t.type!=null&&(i.type=t.type|0),t.desc!=null&&(i.desc=String(t.desc)),t.isAtten!=null&&(i.isAtten=t.isAtten|0),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.type=0,n.desc="",n.isAtten=0),t.type!=null&&t.hasOwnProperty("type")&&(n.type=t.type),t.desc!=null&&t.hasOwnProperty("desc")&&(n.desc=t.desc),t.isAtten!=null&&t.hasOwnProperty("isAtten")&&(n.isAtten=t.isAtten),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.OfficialVerify"},e}(),c.VipInfo=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.Type=t.int32();break}case 2:{o.status=t.int32();break}case 3:{o.dueDate=t.int64();break}case 4:{o.label=u.bilibili.app.dynamic.v2.VipLabel.decode(t,t.uint32());break}case 5:{o.themeType=t.int32();break}case 6:{o.avatarSubscript=t.int32();break}case 7:{o.nicknameColor=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.VipInfo)return t;let i=new u.bilibili.app.dynamic.v2.VipInfo;if(t.Type!=null&&(i.Type=t.Type|0),t.status!=null&&(i.status=t.status|0),t.dueDate!=null&&(r.Long?(i.dueDate=r.Long.fromValue(t.dueDate)).unsigned=!1:typeof t.dueDate=="string"?i.dueDate=parseInt(t.dueDate,10):typeof t.dueDate=="number"?i.dueDate=t.dueDate:typeof t.dueDate=="object"&&(i.dueDate=new r.LongBits(t.dueDate.low>>>0,t.dueDate.high>>>0).toNumber())),t.label!=null){if(typeof t.label!="object")throw TypeError(".bilibili.app.dynamic.v2.VipInfo.label: object expected");i.label=u.bilibili.app.dynamic.v2.VipLabel.fromObject(t.label)}return t.themeType!=null&&(i.themeType=t.themeType|0),t.avatarSubscript!=null&&(i.avatarSubscript=t.avatarSubscript|0),t.nicknameColor!=null&&(i.nicknameColor=String(t.nicknameColor)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.Type=0,n.status=0,r.Long){let o=new r.Long(0,0,!1);n.dueDate=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.dueDate=i.longs===String?"0":0;n.label=null,n.themeType=0,n.avatarSubscript=0,n.nicknameColor=""}return t.Type!=null&&t.hasOwnProperty("Type")&&(n.Type=t.Type),t.status!=null&&t.hasOwnProperty("status")&&(n.status=t.status),t.dueDate!=null&&t.hasOwnProperty("dueDate")&&(typeof t.dueDate=="number"?n.dueDate=i.longs===String?String(t.dueDate):t.dueDate:n.dueDate=i.longs===String?r.Long.prototype.toString.call(t.dueDate):i.longs===Number?new r.LongBits(t.dueDate.low>>>0,t.dueDate.high>>>0).toNumber():t.dueDate),t.label!=null&&t.hasOwnProperty("label")&&(n.label=u.bilibili.app.dynamic.v2.VipLabel.toObject(t.label,i)),t.themeType!=null&&t.hasOwnProperty("themeType")&&(n.themeType=t.themeType),t.avatarSubscript!=null&&t.hasOwnProperty("avatarSubscript")&&(n.avatarSubscript=t.avatarSubscript),t.nicknameColor!=null&&t.hasOwnProperty("nicknameColor")&&(n.nicknameColor=t.nicknameColor),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.VipInfo"},e}(),c.VipLabel=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.path=t.string();break}case 2:{o.text=t.string();break}case 3:{o.labelTheme=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.VipLabel)return t;let i=new u.bilibili.app.dynamic.v2.VipLabel;return t.path!=null&&(i.path=String(t.path)),t.text!=null&&(i.text=String(t.text)),t.labelTheme!=null&&(i.labelTheme=String(t.labelTheme)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.path="",n.text="",n.labelTheme=""),t.path!=null&&t.hasOwnProperty("path")&&(n.path=t.path),t.text!=null&&t.hasOwnProperty("text")&&(n.text=t.text),t.labelTheme!=null&&t.hasOwnProperty("labelTheme")&&(n.labelTheme=t.labelTheme),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.VipLabel"},e}(),c.DecorateCard=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.id=t.int64();break}case 2:{o.cardUrl=t.string();break}case 3:{o.jumpUrl=t.string();break}case 4:{o.fan=u.bilibili.app.dynamic.v2.DecoCardFan.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.DecorateCard)return t;let i=new u.bilibili.app.dynamic.v2.DecorateCard;if(t.id!=null&&(r.Long?(i.id=r.Long.fromValue(t.id)).unsigned=!1:typeof t.id=="string"?i.id=parseInt(t.id,10):typeof t.id=="number"?i.id=t.id:typeof t.id=="object"&&(i.id=new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber())),t.cardUrl!=null&&(i.cardUrl=String(t.cardUrl)),t.jumpUrl!=null&&(i.jumpUrl=String(t.jumpUrl)),t.fan!=null){if(typeof t.fan!="object")throw TypeError(".bilibili.app.dynamic.v2.DecorateCard.fan: object expected");i.fan=u.bilibili.app.dynamic.v2.DecoCardFan.fromObject(t.fan)}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.id=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.id=i.longs===String?"0":0;n.cardUrl="",n.jumpUrl="",n.fan=null}return t.id!=null&&t.hasOwnProperty("id")&&(typeof t.id=="number"?n.id=i.longs===String?String(t.id):t.id:n.id=i.longs===String?r.Long.prototype.toString.call(t.id):i.longs===Number?new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber():t.id),t.cardUrl!=null&&t.hasOwnProperty("cardUrl")&&(n.cardUrl=t.cardUrl),t.jumpUrl!=null&&t.hasOwnProperty("jumpUrl")&&(n.jumpUrl=t.jumpUrl),t.fan!=null&&t.hasOwnProperty("fan")&&(n.fan=u.bilibili.app.dynamic.v2.DecoCardFan.toObject(t.fan,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.DecorateCard"},e}(),c.DecoCardFan=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.isFan=t.int32();break}case 2:{o.number=t.int32();break}case 3:{o.numberStr=t.string();break}case 4:{o.color=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.DecoCardFan)return t;let i=new u.bilibili.app.dynamic.v2.DecoCardFan;return t.isFan!=null&&(i.isFan=t.isFan|0),t.number!=null&&(i.number=t.number|0),t.numberStr!=null&&(i.numberStr=String(t.numberStr)),t.color!=null&&(i.color=String(t.color)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.isFan=0,n.number=0,n.numberStr="",n.color=""),t.isFan!=null&&t.hasOwnProperty("isFan")&&(n.isFan=t.isFan),t.number!=null&&t.hasOwnProperty("number")&&(n.number=t.number),t.numberStr!=null&&t.hasOwnProperty("numberStr")&&(n.numberStr=t.numberStr),t.color!=null&&t.hasOwnProperty("color")&&(n.color=t.color),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.DecoCardFan"},e}(),c.LiveInfo=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.isLiving=t.int32();break}case 2:{o.uri=t.string();break}case 3:{o.liveState=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.LiveInfo)return t;let i=new u.bilibili.app.dynamic.v2.LiveInfo;switch(t.isLiving!=null&&(i.isLiving=t.isLiving|0),t.uri!=null&&(i.uri=String(t.uri)),t.liveState){default:if(typeof t.liveState=="number"){i.liveState=t.liveState;break}break;case"live_none":case 0:i.liveState=0;break;case"live_live":case 1:i.liveState=1;break;case"live_rotation":case 2:i.liveState=2;break}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.isLiving=0,n.uri="",n.liveState=i.enums===String?"live_none":0),t.isLiving!=null&&t.hasOwnProperty("isLiving")&&(n.isLiving=t.isLiving),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),t.liveState!=null&&t.hasOwnProperty("liveState")&&(n.liveState=i.enums===String?u.bilibili.app.dynamic.v2.LiveState[t.liveState]===void 0?t.liveState:u.bilibili.app.dynamic.v2.LiveState[t.liveState]:t.liveState),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.LiveInfo"},e}(),c.ModuleAuthorBadgeType=function(){let e={},l=Object.create(e);return l[e[0]="module_author_badge_type_none"]=0,l[e[1]="module_author_badge_type_threePoint"]=1,l[e[2]="module_author_badge_type_button"]=2,l[e[3]="module_author_badge_type_weight"]=3,l}(),c.ModuleAuthorBadgeButton=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.icon=t.string();break}case 2:{o.title=t.string();break}case 3:{o.state=t.int32();break}case 4:{o.id=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.ModuleAuthorBadgeButton)return t;let i=new u.bilibili.app.dynamic.v2.ModuleAuthorBadgeButton;return t.icon!=null&&(i.icon=String(t.icon)),t.title!=null&&(i.title=String(t.title)),t.state!=null&&(i.state=t.state|0),t.id!=null&&(r.Long?(i.id=r.Long.fromValue(t.id)).unsigned=!1:typeof t.id=="string"?i.id=parseInt(t.id,10):typeof t.id=="number"?i.id=t.id:typeof t.id=="object"&&(i.id=new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(n.icon="",n.title="",n.state=0,r.Long){let o=new r.Long(0,0,!1);n.id=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.id=i.longs===String?"0":0;return t.icon!=null&&t.hasOwnProperty("icon")&&(n.icon=t.icon),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.state!=null&&t.hasOwnProperty("state")&&(n.state=t.state),t.id!=null&&t.hasOwnProperty("id")&&(typeof t.id=="number"?n.id=i.longs===String?String(t.id):t.id:n.id=i.longs===String?r.Long.prototype.toString.call(t.id):i.longs===Number?new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber():t.id),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.ModuleAuthorBadgeButton"},e}(),c.Relation=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.status=t.int32();break}case 2:{o.isFollow=t.int32();break}case 3:{o.isFollowed=t.int32();break}case 4:{o.title=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.Relation)return t;let i=new u.bilibili.app.dynamic.v2.Relation;switch(t.status){default:if(typeof t.status=="number"){i.status=t.status;break}break;case"relation_status_none":case 0:i.status=0;break;case"relation_status_nofollow":case 1:i.status=1;break;case"relation_status_follow":case 2:i.status=2;break;case"relation_status_followed":case 3:i.status=3;break;case"relation_status_mutual_concern":case 4:i.status=4;break;case"relation_status_special":case 5:i.status=5;break}return t.isFollow!=null&&(i.isFollow=t.isFollow|0),t.isFollowed!=null&&(i.isFollowed=t.isFollowed|0),t.title!=null&&(i.title=String(t.title)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.status=i.enums===String?"relation_status_none":0,n.isFollow=0,n.isFollowed=0,n.title=""),t.status!=null&&t.hasOwnProperty("status")&&(n.status=i.enums===String?u.bilibili.app.dynamic.v2.RelationStatus[t.status]===void 0?t.status:u.bilibili.app.dynamic.v2.RelationStatus[t.status]:t.status),t.isFollow!=null&&t.hasOwnProperty("isFollow")&&(n.isFollow=t.isFollow),t.isFollowed!=null&&t.hasOwnProperty("isFollowed")&&(n.isFollowed=t.isFollowed),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.Relation"},e}(),c.RelationStatus=function(){let e={},l=Object.create(e);return l[e[0]="relation_status_none"]=0,l[e[1]="relation_status_nofollow"]=1,l[e[2]="relation_status_follow"]=2,l[e[3]="relation_status_followed"]=3,l[e[4]="relation_status_mutual_concern"]=4,l[e[5]="relation_status_special"]=5,l}(),c.Weight=function(){function e(l){if(this.items=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.items&&o.items.length||(o.items=[]),o.items.push(u.bilibili.app.dynamic.v2.WeightItem.decode(t,t.uint32()));break}case 3:{o.icon=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.Weight)return t;let i=new u.bilibili.app.dynamic.v2.Weight;if(t.title!=null&&(i.title=String(t.title)),t.items){if(!Array.isArray(t.items))throw TypeError(".bilibili.app.dynamic.v2.Weight.items: array expected");i.items=[];for(let n=0;n>>3){case 1:{a.type=i.int32();break}case 2:{a.button=u.bilibili.app.dynamic.v2.WeightButton.decode(i,i.uint32());break}case 3:{a.dislike=u.bilibili.app.dynamic.v2.WeightDislike.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},e.fromObject=function(i){if(i instanceof u.bilibili.app.dynamic.v2.WeightItem)return i;let n=new u.bilibili.app.dynamic.v2.WeightItem;switch(i.type){default:if(typeof i.type=="number"){n.type=i.type;break}break;case"weight_none":case 0:n.type=0;break;case"weight_dislike":case 1:n.type=1;break;case"weight_jump":case 2:n.type=2;break}if(i.button!=null){if(typeof i.button!="object")throw TypeError(".bilibili.app.dynamic.v2.WeightItem.button: object expected");n.button=u.bilibili.app.dynamic.v2.WeightButton.fromObject(i.button)}if(i.dislike!=null){if(typeof i.dislike!="object")throw TypeError(".bilibili.app.dynamic.v2.WeightItem.dislike: object expected");n.dislike=u.bilibili.app.dynamic.v2.WeightDislike.fromObject(i.dislike)}return n},e.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.type=n.enums===String?"weight_none":0),i.type!=null&&i.hasOwnProperty("type")&&(o.type=n.enums===String?u.bilibili.app.dynamic.v2.WeightType[i.type]===void 0?i.type:u.bilibili.app.dynamic.v2.WeightType[i.type]:i.type),i.button!=null&&i.hasOwnProperty("button")&&(o.button=u.bilibili.app.dynamic.v2.WeightButton.toObject(i.button,n),n.oneofs&&(o.item="button")),i.dislike!=null&&i.hasOwnProperty("dislike")&&(o.dislike=u.bilibili.app.dynamic.v2.WeightDislike.toObject(i.dislike,n),n.oneofs&&(o.item="dislike")),o},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.app.dynamic.v2.WeightItem"},e}(),c.WeightType=function(){let e={},l=Object.create(e);return l[e[0]="weight_none"]=0,l[e[1]="weight_dislike"]=1,l[e[2]="weight_jump"]=2,l}(),c.WeightDislike=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.feedBackType=t.string();break}case 2:{o.title=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.WeightDislike)return t;let i=new u.bilibili.app.dynamic.v2.WeightDislike;return t.feedBackType!=null&&(i.feedBackType=String(t.feedBackType)),t.title!=null&&(i.title=String(t.title)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.feedBackType="",n.title=""),t.feedBackType!=null&&t.hasOwnProperty("feedBackType")&&(n.feedBackType=t.feedBackType),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.WeightDislike"},e}(),c.WeightButton=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.jumpUrl=t.string();break}case 2:{o.title=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.WeightButton)return t;let i=new u.bilibili.app.dynamic.v2.WeightButton;return t.jumpUrl!=null&&(i.jumpUrl=String(t.jumpUrl)),t.title!=null&&(i.title=String(t.title)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.jumpUrl="",n.title=""),t.jumpUrl!=null&&t.hasOwnProperty("jumpUrl")&&(n.jumpUrl=t.jumpUrl),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.WeightButton"},e}(),c.ThreePointItem=function(){function e(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.type=i.int32();break}case 2:{a.default=u.bilibili.app.dynamic.v2.ThreePointDefault.decode(i,i.uint32());break}case 3:{a.autoPlayer=u.bilibili.app.dynamic.v2.ThreePointAutoPlay.decode(i,i.uint32());break}case 4:{a.share=u.bilibili.app.dynamic.v2.ThreePointShare.decode(i,i.uint32());break}case 5:{a.attention=u.bilibili.app.dynamic.v2.ThreePointAttention.decode(i,i.uint32());break}case 6:{a.wait=u.bilibili.app.dynamic.v2.ThreePointWait.decode(i,i.uint32());break}case 7:{a.dislike=u.bilibili.app.dynamic.v2.ThreePointDislike.decode(i,i.uint32());break}case 8:{a.favorite=u.bilibili.app.dynamic.v2.ThreePointFavorite.decode(i,i.uint32());break}case 9:{a.top=u.bilibili.app.dynamic.v2.ThreePointTop.decode(i,i.uint32());break}case 10:{a.comment=u.bilibili.app.dynamic.v2.ThreePointComment.decode(i,i.uint32());break}case 11:{a.hide=u.bilibili.app.dynamic.v2.ThreePointHide.decode(i,i.uint32());break}case 12:{a.topicIrrelevant=u.bilibili.app.dynamic.v2.ThreePointTopicIrrelevant.decode(i,i.uint32());break}case 13:{a.dynEdit=u.bilibili.app.dynamic.v2.ThreePointDynEdit.decode(i,i.uint32());break}case 14:{a.coin=u.bilibili.app.dynamic.v2.ThreePointDynCoin.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},e.fromObject=function(i){if(i instanceof u.bilibili.app.dynamic.v2.ThreePointItem)return i;let n=new u.bilibili.app.dynamic.v2.ThreePointItem;switch(i.type){default:if(typeof i.type=="number"){n.type=i.type;break}break;case"tp_none":case 0:n.type=0;break;case"background":case 1:n.type=1;break;case"auto_play":case 2:n.type=2;break;case"share":case 3:n.type=3;break;case"wait":case 4:n.type=4;break;case"attention":case 5:n.type=5;break;case"report":case 6:n.type=6;break;case"delete":case 7:n.type=7;break;case"dislike":case 8:n.type=8;break;case"favorite":case 9:n.type=9;break;case"top":case 10:n.type=10;break;case"comment":case 11:n.type=11;break;case"hide":case 12:n.type=12;break;case"campus_delete":case 13:n.type=13;break;case"topic_irrelevant":case 14:n.type=14;break;case"batch_cancel":case 15:n.type=15;break;case"topic_set_cancel":case 16:n.type=16;break;case"dynamic_edit":case 17:n.type=17;break;case"create_video":case 18:n.type=18;break;case"coin":case 19:n.type=19;break;case"ogv_subscribe":case 20:n.type=20;break}if(i.default!=null){if(typeof i.default!="object")throw TypeError(".bilibili.app.dynamic.v2.ThreePointItem.default: object expected");n.default=u.bilibili.app.dynamic.v2.ThreePointDefault.fromObject(i.default)}if(i.autoPlayer!=null){if(typeof i.autoPlayer!="object")throw TypeError(".bilibili.app.dynamic.v2.ThreePointItem.autoPlayer: object expected");n.autoPlayer=u.bilibili.app.dynamic.v2.ThreePointAutoPlay.fromObject(i.autoPlayer)}if(i.share!=null){if(typeof i.share!="object")throw TypeError(".bilibili.app.dynamic.v2.ThreePointItem.share: object expected");n.share=u.bilibili.app.dynamic.v2.ThreePointShare.fromObject(i.share)}if(i.attention!=null){if(typeof i.attention!="object")throw TypeError(".bilibili.app.dynamic.v2.ThreePointItem.attention: object expected");n.attention=u.bilibili.app.dynamic.v2.ThreePointAttention.fromObject(i.attention)}if(i.wait!=null){if(typeof i.wait!="object")throw TypeError(".bilibili.app.dynamic.v2.ThreePointItem.wait: object expected");n.wait=u.bilibili.app.dynamic.v2.ThreePointWait.fromObject(i.wait)}if(i.dislike!=null){if(typeof i.dislike!="object")throw TypeError(".bilibili.app.dynamic.v2.ThreePointItem.dislike: object expected");n.dislike=u.bilibili.app.dynamic.v2.ThreePointDislike.fromObject(i.dislike)}if(i.favorite!=null){if(typeof i.favorite!="object")throw TypeError(".bilibili.app.dynamic.v2.ThreePointItem.favorite: object expected");n.favorite=u.bilibili.app.dynamic.v2.ThreePointFavorite.fromObject(i.favorite)}if(i.top!=null){if(typeof i.top!="object")throw TypeError(".bilibili.app.dynamic.v2.ThreePointItem.top: object expected");n.top=u.bilibili.app.dynamic.v2.ThreePointTop.fromObject(i.top)}if(i.comment!=null){if(typeof i.comment!="object")throw TypeError(".bilibili.app.dynamic.v2.ThreePointItem.comment: object expected");n.comment=u.bilibili.app.dynamic.v2.ThreePointComment.fromObject(i.comment)}if(i.hide!=null){if(typeof i.hide!="object")throw TypeError(".bilibili.app.dynamic.v2.ThreePointItem.hide: object expected");n.hide=u.bilibili.app.dynamic.v2.ThreePointHide.fromObject(i.hide)}if(i.topicIrrelevant!=null){if(typeof i.topicIrrelevant!="object")throw TypeError(".bilibili.app.dynamic.v2.ThreePointItem.topicIrrelevant: object expected");n.topicIrrelevant=u.bilibili.app.dynamic.v2.ThreePointTopicIrrelevant.fromObject(i.topicIrrelevant)}if(i.dynEdit!=null){if(typeof i.dynEdit!="object")throw TypeError(".bilibili.app.dynamic.v2.ThreePointItem.dynEdit: object expected");n.dynEdit=u.bilibili.app.dynamic.v2.ThreePointDynEdit.fromObject(i.dynEdit)}if(i.coin!=null){if(typeof i.coin!="object")throw TypeError(".bilibili.app.dynamic.v2.ThreePointItem.coin: object expected");n.coin=u.bilibili.app.dynamic.v2.ThreePointDynCoin.fromObject(i.coin)}return n},e.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.type=n.enums===String?"tp_none":0),i.type!=null&&i.hasOwnProperty("type")&&(o.type=n.enums===String?u.bilibili.app.dynamic.v2.ThreePointType[i.type]===void 0?i.type:u.bilibili.app.dynamic.v2.ThreePointType[i.type]:i.type),i.default!=null&&i.hasOwnProperty("default")&&(o.default=u.bilibili.app.dynamic.v2.ThreePointDefault.toObject(i.default,n),n.oneofs&&(o.item="default")),i.autoPlayer!=null&&i.hasOwnProperty("autoPlayer")&&(o.autoPlayer=u.bilibili.app.dynamic.v2.ThreePointAutoPlay.toObject(i.autoPlayer,n),n.oneofs&&(o.item="autoPlayer")),i.share!=null&&i.hasOwnProperty("share")&&(o.share=u.bilibili.app.dynamic.v2.ThreePointShare.toObject(i.share,n),n.oneofs&&(o.item="share")),i.attention!=null&&i.hasOwnProperty("attention")&&(o.attention=u.bilibili.app.dynamic.v2.ThreePointAttention.toObject(i.attention,n),n.oneofs&&(o.item="attention")),i.wait!=null&&i.hasOwnProperty("wait")&&(o.wait=u.bilibili.app.dynamic.v2.ThreePointWait.toObject(i.wait,n),n.oneofs&&(o.item="wait")),i.dislike!=null&&i.hasOwnProperty("dislike")&&(o.dislike=u.bilibili.app.dynamic.v2.ThreePointDislike.toObject(i.dislike,n),n.oneofs&&(o.item="dislike")),i.favorite!=null&&i.hasOwnProperty("favorite")&&(o.favorite=u.bilibili.app.dynamic.v2.ThreePointFavorite.toObject(i.favorite,n),n.oneofs&&(o.item="favorite")),i.top!=null&&i.hasOwnProperty("top")&&(o.top=u.bilibili.app.dynamic.v2.ThreePointTop.toObject(i.top,n),n.oneofs&&(o.item="top")),i.comment!=null&&i.hasOwnProperty("comment")&&(o.comment=u.bilibili.app.dynamic.v2.ThreePointComment.toObject(i.comment,n),n.oneofs&&(o.item="comment")),i.hide!=null&&i.hasOwnProperty("hide")&&(o.hide=u.bilibili.app.dynamic.v2.ThreePointHide.toObject(i.hide,n),n.oneofs&&(o.item="hide")),i.topicIrrelevant!=null&&i.hasOwnProperty("topicIrrelevant")&&(o.topicIrrelevant=u.bilibili.app.dynamic.v2.ThreePointTopicIrrelevant.toObject(i.topicIrrelevant,n),n.oneofs&&(o.item="topicIrrelevant")),i.dynEdit!=null&&i.hasOwnProperty("dynEdit")&&(o.dynEdit=u.bilibili.app.dynamic.v2.ThreePointDynEdit.toObject(i.dynEdit,n),n.oneofs&&(o.item="dynEdit")),i.coin!=null&&i.hasOwnProperty("coin")&&(o.coin=u.bilibili.app.dynamic.v2.ThreePointDynCoin.toObject(i.coin,n),n.oneofs&&(o.item="coin")),o},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.app.dynamic.v2.ThreePointItem"},e}(),c.ThreePointType=function(){let e={},l=Object.create(e);return l[e[0]="tp_none"]=0,l[e[1]="background"]=1,l[e[2]="auto_play"]=2,l[e[3]="share"]=3,l[e[4]="wait"]=4,l[e[5]="attention"]=5,l[e[6]="report"]=6,l[e[7]="delete"]=7,l[e[8]="dislike"]=8,l[e[9]="favorite"]=9,l[e[10]="top"]=10,l[e[11]="comment"]=11,l[e[12]="hide"]=12,l[e[13]="campus_delete"]=13,l[e[14]="topic_irrelevant"]=14,l[e[15]="batch_cancel"]=15,l[e[16]="topic_set_cancel"]=16,l[e[17]="dynamic_edit"]=17,l[e[18]="create_video"]=18,l[e[19]="coin"]=19,l[e[20]="ogv_subscribe"]=20,l}(),c.ThreePointDefault=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.icon=t.string();break}case 2:{o.title=t.string();break}case 3:{o.uri=t.string();break}case 4:{o.id=t.string();break}case 5:{o.toast=u.bilibili.app.dynamic.v2.ThreePointDefaultToast.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.ThreePointDefault)return t;let i=new u.bilibili.app.dynamic.v2.ThreePointDefault;if(t.icon!=null&&(i.icon=String(t.icon)),t.title!=null&&(i.title=String(t.title)),t.uri!=null&&(i.uri=String(t.uri)),t.id!=null&&(i.id=String(t.id)),t.toast!=null){if(typeof t.toast!="object")throw TypeError(".bilibili.app.dynamic.v2.ThreePointDefault.toast: object expected");i.toast=u.bilibili.app.dynamic.v2.ThreePointDefaultToast.fromObject(t.toast)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.icon="",n.title="",n.uri="",n.id="",n.toast=null),t.icon!=null&&t.hasOwnProperty("icon")&&(n.icon=t.icon),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),t.id!=null&&t.hasOwnProperty("id")&&(n.id=t.id),t.toast!=null&&t.hasOwnProperty("toast")&&(n.toast=u.bilibili.app.dynamic.v2.ThreePointDefaultToast.toObject(t.toast,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.ThreePointDefault"},e}(),c.ThreePointDefaultToast=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.desc=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.ThreePointDefaultToast)return t;let i=new u.bilibili.app.dynamic.v2.ThreePointDefaultToast;return t.title!=null&&(i.title=String(t.title)),t.desc!=null&&(i.desc=String(t.desc)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.title="",n.desc=""),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.desc!=null&&t.hasOwnProperty("desc")&&(n.desc=t.desc),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.ThreePointDefaultToast"},e}(),c.ThreePointAutoPlay=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.openIcon=t.string();break}case 2:{o.openText=t.string();break}case 3:{o.closeIcon=t.string();break}case 4:{o.closeText=t.string();break}case 5:{o.openTextV2=t.string();break}case 6:{o.closeTextV2=t.string();break}case 7:{o.onlyIcon=t.string();break}case 8:{o.onlyText=t.string();break}case 9:{o.openIconV2=t.string();break}case 10:{o.closeIconV2=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.ThreePointAutoPlay)return t;let i=new u.bilibili.app.dynamic.v2.ThreePointAutoPlay;return t.openIcon!=null&&(i.openIcon=String(t.openIcon)),t.openText!=null&&(i.openText=String(t.openText)),t.closeIcon!=null&&(i.closeIcon=String(t.closeIcon)),t.closeText!=null&&(i.closeText=String(t.closeText)),t.openTextV2!=null&&(i.openTextV2=String(t.openTextV2)),t.closeTextV2!=null&&(i.closeTextV2=String(t.closeTextV2)),t.onlyIcon!=null&&(i.onlyIcon=String(t.onlyIcon)),t.onlyText!=null&&(i.onlyText=String(t.onlyText)),t.openIconV2!=null&&(i.openIconV2=String(t.openIconV2)),t.closeIconV2!=null&&(i.closeIconV2=String(t.closeIconV2)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.openIcon="",n.openText="",n.closeIcon="",n.closeText="",n.openTextV2="",n.closeTextV2="",n.onlyIcon="",n.onlyText="",n.openIconV2="",n.closeIconV2=""),t.openIcon!=null&&t.hasOwnProperty("openIcon")&&(n.openIcon=t.openIcon),t.openText!=null&&t.hasOwnProperty("openText")&&(n.openText=t.openText),t.closeIcon!=null&&t.hasOwnProperty("closeIcon")&&(n.closeIcon=t.closeIcon),t.closeText!=null&&t.hasOwnProperty("closeText")&&(n.closeText=t.closeText),t.openTextV2!=null&&t.hasOwnProperty("openTextV2")&&(n.openTextV2=t.openTextV2),t.closeTextV2!=null&&t.hasOwnProperty("closeTextV2")&&(n.closeTextV2=t.closeTextV2),t.onlyIcon!=null&&t.hasOwnProperty("onlyIcon")&&(n.onlyIcon=t.onlyIcon),t.onlyText!=null&&t.hasOwnProperty("onlyText")&&(n.onlyText=t.onlyText),t.openIconV2!=null&&t.hasOwnProperty("openIconV2")&&(n.openIconV2=t.openIconV2),t.closeIconV2!=null&&t.hasOwnProperty("closeIconV2")&&(n.closeIconV2=t.closeIconV2),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.ThreePointAutoPlay"},e}(),c.ThreePointShare=function(){function e(l){if(this.channel=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.icon=t.string();break}case 2:{o.title=t.string();break}case 3:{o.channel&&o.channel.length||(o.channel=[]),o.channel.push(u.bilibili.app.dynamic.v2.ThreePointShareChannel.decode(t,t.uint32()));break}case 4:{o.channelName=t.string();break}case 5:{o.reserve=u.bilibili.app.dynamic.v2.ShareReserve.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.ThreePointShare)return t;let i=new u.bilibili.app.dynamic.v2.ThreePointShare;if(t.icon!=null&&(i.icon=String(t.icon)),t.title!=null&&(i.title=String(t.title)),t.channel){if(!Array.isArray(t.channel))throw TypeError(".bilibili.app.dynamic.v2.ThreePointShare.channel: array expected");i.channel=[];for(let n=0;n>>3){case 1:{o.title=t.string();break}case 2:{o.desc=t.string();break}case 3:{o.qrCodeIcon=t.string();break}case 4:{o.qrCodeText=t.string();break}case 5:{o.qrCodeUrl=t.string();break}case 6:{o.userInfo=u.bilibili.app.dynamic.v2.AdditionUserInfo.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.ShareReserve)return t;let i=new u.bilibili.app.dynamic.v2.ShareReserve;if(t.title!=null&&(i.title=String(t.title)),t.desc!=null&&(i.desc=String(t.desc)),t.qrCodeIcon!=null&&(i.qrCodeIcon=String(t.qrCodeIcon)),t.qrCodeText!=null&&(i.qrCodeText=String(t.qrCodeText)),t.qrCodeUrl!=null&&(i.qrCodeUrl=String(t.qrCodeUrl)),t.userInfo!=null){if(typeof t.userInfo!="object")throw TypeError(".bilibili.app.dynamic.v2.ShareReserve.userInfo: object expected");i.userInfo=u.bilibili.app.dynamic.v2.AdditionUserInfo.fromObject(t.userInfo)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.title="",n.desc="",n.qrCodeIcon="",n.qrCodeText="",n.qrCodeUrl="",n.userInfo=null),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.desc!=null&&t.hasOwnProperty("desc")&&(n.desc=t.desc),t.qrCodeIcon!=null&&t.hasOwnProperty("qrCodeIcon")&&(n.qrCodeIcon=t.qrCodeIcon),t.qrCodeText!=null&&t.hasOwnProperty("qrCodeText")&&(n.qrCodeText=t.qrCodeText),t.qrCodeUrl!=null&&t.hasOwnProperty("qrCodeUrl")&&(n.qrCodeUrl=t.qrCodeUrl),t.userInfo!=null&&t.hasOwnProperty("userInfo")&&(n.userInfo=u.bilibili.app.dynamic.v2.AdditionUserInfo.toObject(t.userInfo,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.ShareReserve"},e}(),c.ThreePointShareChannel=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.icon=t.string();break}case 2:{o.title=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.ThreePointShareChannel)return t;let i=new u.bilibili.app.dynamic.v2.ThreePointShareChannel;return t.icon!=null&&(i.icon=String(t.icon)),t.title!=null&&(i.title=String(t.title)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.icon="",n.title=""),t.icon!=null&&t.hasOwnProperty("icon")&&(n.icon=t.icon),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.ThreePointShareChannel"},e}(),c.ThreePointAttention=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.attentionIcon=t.string();break}case 2:{o.attentionText=t.string();break}case 3:{o.notAttentionIcon=t.string();break}case 4:{o.notAttentionText=t.string();break}case 5:{o.status=t.int32();break}case 6:{o.subscribeOid=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.ThreePointAttention)return t;let i=new u.bilibili.app.dynamic.v2.ThreePointAttention;switch(t.attentionIcon!=null&&(i.attentionIcon=String(t.attentionIcon)),t.attentionText!=null&&(i.attentionText=String(t.attentionText)),t.notAttentionIcon!=null&&(i.notAttentionIcon=String(t.notAttentionIcon)),t.notAttentionText!=null&&(i.notAttentionText=String(t.notAttentionText)),t.status){default:if(typeof t.status=="number"){i.status=t.status;break}break;case"tp_not_attention":case 0:i.status=0;break;case"tp_attention":case 1:i.status=1;break}return t.subscribeOid!=null&&(i.subscribeOid=String(t.subscribeOid)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.attentionIcon="",n.attentionText="",n.notAttentionIcon="",n.notAttentionText="",n.status=i.enums===String?"tp_not_attention":0,n.subscribeOid=""),t.attentionIcon!=null&&t.hasOwnProperty("attentionIcon")&&(n.attentionIcon=t.attentionIcon),t.attentionText!=null&&t.hasOwnProperty("attentionText")&&(n.attentionText=t.attentionText),t.notAttentionIcon!=null&&t.hasOwnProperty("notAttentionIcon")&&(n.notAttentionIcon=t.notAttentionIcon),t.notAttentionText!=null&&t.hasOwnProperty("notAttentionText")&&(n.notAttentionText=t.notAttentionText),t.status!=null&&t.hasOwnProperty("status")&&(n.status=i.enums===String?u.bilibili.app.dynamic.v2.ThreePointAttentionStatus[t.status]===void 0?t.status:u.bilibili.app.dynamic.v2.ThreePointAttentionStatus[t.status]:t.status),t.subscribeOid!=null&&t.hasOwnProperty("subscribeOid")&&(n.subscribeOid=t.subscribeOid),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.ThreePointAttention"},e}(),c.ThreePointAttentionStatus=function(){let e={},l=Object.create(e);return l[e[0]="tp_not_attention"]=0,l[e[1]="tp_attention"]=1,l}(),c.ThreePointWait=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.additionIcon=t.string();break}case 2:{o.additionText=t.string();break}case 3:{o.noAdditionIcon=t.string();break}case 4:{o.noAdditionText=t.string();break}case 5:{o.id=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.ThreePointWait)return t;let i=new u.bilibili.app.dynamic.v2.ThreePointWait;return t.additionIcon!=null&&(i.additionIcon=String(t.additionIcon)),t.additionText!=null&&(i.additionText=String(t.additionText)),t.noAdditionIcon!=null&&(i.noAdditionIcon=String(t.noAdditionIcon)),t.noAdditionText!=null&&(i.noAdditionText=String(t.noAdditionText)),t.id!=null&&(r.Long?(i.id=r.Long.fromValue(t.id)).unsigned=!1:typeof t.id=="string"?i.id=parseInt(t.id,10):typeof t.id=="number"?i.id=t.id:typeof t.id=="object"&&(i.id=new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(n.additionIcon="",n.additionText="",n.noAdditionIcon="",n.noAdditionText="",r.Long){let o=new r.Long(0,0,!1);n.id=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.id=i.longs===String?"0":0;return t.additionIcon!=null&&t.hasOwnProperty("additionIcon")&&(n.additionIcon=t.additionIcon),t.additionText!=null&&t.hasOwnProperty("additionText")&&(n.additionText=t.additionText),t.noAdditionIcon!=null&&t.hasOwnProperty("noAdditionIcon")&&(n.noAdditionIcon=t.noAdditionIcon),t.noAdditionText!=null&&t.hasOwnProperty("noAdditionText")&&(n.noAdditionText=t.noAdditionText),t.id!=null&&t.hasOwnProperty("id")&&(typeof t.id=="number"?n.id=i.longs===String?String(t.id):t.id:n.id=i.longs===String?r.Long.prototype.toString.call(t.id):i.longs===Number?new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber():t.id),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.ThreePointWait"},e}(),c.ThreePointDislike=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.icon=t.string();break}case 2:{o.title=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.ThreePointDislike)return t;let i=new u.bilibili.app.dynamic.v2.ThreePointDislike;return t.icon!=null&&(i.icon=String(t.icon)),t.title!=null&&(i.title=String(t.title)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.icon="",n.title=""),t.icon!=null&&t.hasOwnProperty("icon")&&(n.icon=t.icon),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.ThreePointDislike"},e}(),c.ThreePointFavorite=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.icon=t.string();break}case 2:{o.title=t.string();break}case 3:{o.id=t.int64();break}case 4:{o.isFavourite=t.bool();break}case 5:{o.cancelIcon=t.string();break}case 6:{o.cancelTitle=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.ThreePointFavorite)return t;let i=new u.bilibili.app.dynamic.v2.ThreePointFavorite;return t.icon!=null&&(i.icon=String(t.icon)),t.title!=null&&(i.title=String(t.title)),t.id!=null&&(r.Long?(i.id=r.Long.fromValue(t.id)).unsigned=!1:typeof t.id=="string"?i.id=parseInt(t.id,10):typeof t.id=="number"?i.id=t.id:typeof t.id=="object"&&(i.id=new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber())),t.isFavourite!=null&&(i.isFavourite=!!t.isFavourite),t.cancelIcon!=null&&(i.cancelIcon=String(t.cancelIcon)),t.cancelTitle!=null&&(i.cancelTitle=String(t.cancelTitle)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.icon="",n.title="",r.Long){let o=new r.Long(0,0,!1);n.id=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.id=i.longs===String?"0":0;n.isFavourite=!1,n.cancelIcon="",n.cancelTitle=""}return t.icon!=null&&t.hasOwnProperty("icon")&&(n.icon=t.icon),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.id!=null&&t.hasOwnProperty("id")&&(typeof t.id=="number"?n.id=i.longs===String?String(t.id):t.id:n.id=i.longs===String?r.Long.prototype.toString.call(t.id):i.longs===Number?new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber():t.id),t.isFavourite!=null&&t.hasOwnProperty("isFavourite")&&(n.isFavourite=t.isFavourite),t.cancelIcon!=null&&t.hasOwnProperty("cancelIcon")&&(n.cancelIcon=t.cancelIcon),t.cancelTitle!=null&&t.hasOwnProperty("cancelTitle")&&(n.cancelTitle=t.cancelTitle),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.ThreePointFavorite"},e}(),c.ThreePointTop=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.icon=t.string();break}case 2:{o.title=t.string();break}case 3:{o.type=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.ThreePointTop)return t;let i=new u.bilibili.app.dynamic.v2.ThreePointTop;switch(t.icon!=null&&(i.icon=String(t.icon)),t.title!=null&&(i.title=String(t.title)),t.type){default:if(typeof t.type=="number"){i.type=t.type;break}break;case"top_none":case 0:i.type=0;break;case"top_cancel":case 1:i.type=1;break}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.icon="",n.title="",n.type=i.enums===String?"top_none":0),t.icon!=null&&t.hasOwnProperty("icon")&&(n.icon=t.icon),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.type!=null&&t.hasOwnProperty("type")&&(n.type=i.enums===String?u.bilibili.app.dynamic.v2.TopType[t.type]===void 0?t.type:u.bilibili.app.dynamic.v2.TopType[t.type]:t.type),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.ThreePointTop"},e}(),c.ThreePointTopicIrrelevant=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.icon=t.string();break}case 2:{o.title=t.string();break}case 3:{o.toast=t.string();break}case 4:{o.topicId=t.int64();break}case 5:{o.resId=t.int64();break}case 6:{o.resType=t.int64();break}case 7:{o.reason=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.ThreePointTopicIrrelevant)return t;let i=new u.bilibili.app.dynamic.v2.ThreePointTopicIrrelevant;return t.icon!=null&&(i.icon=String(t.icon)),t.title!=null&&(i.title=String(t.title)),t.toast!=null&&(i.toast=String(t.toast)),t.topicId!=null&&(r.Long?(i.topicId=r.Long.fromValue(t.topicId)).unsigned=!1:typeof t.topicId=="string"?i.topicId=parseInt(t.topicId,10):typeof t.topicId=="number"?i.topicId=t.topicId:typeof t.topicId=="object"&&(i.topicId=new r.LongBits(t.topicId.low>>>0,t.topicId.high>>>0).toNumber())),t.resId!=null&&(r.Long?(i.resId=r.Long.fromValue(t.resId)).unsigned=!1:typeof t.resId=="string"?i.resId=parseInt(t.resId,10):typeof t.resId=="number"?i.resId=t.resId:typeof t.resId=="object"&&(i.resId=new r.LongBits(t.resId.low>>>0,t.resId.high>>>0).toNumber())),t.resType!=null&&(r.Long?(i.resType=r.Long.fromValue(t.resType)).unsigned=!1:typeof t.resType=="string"?i.resType=parseInt(t.resType,10):typeof t.resType=="number"?i.resType=t.resType:typeof t.resType=="object"&&(i.resType=new r.LongBits(t.resType.low>>>0,t.resType.high>>>0).toNumber())),t.reason!=null&&(i.reason=String(t.reason)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.icon="",n.title="",n.toast="",r.Long){let o=new r.Long(0,0,!1);n.topicId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.topicId=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.resId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.resId=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.resType=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.resType=i.longs===String?"0":0;n.reason=""}return t.icon!=null&&t.hasOwnProperty("icon")&&(n.icon=t.icon),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.toast!=null&&t.hasOwnProperty("toast")&&(n.toast=t.toast),t.topicId!=null&&t.hasOwnProperty("topicId")&&(typeof t.topicId=="number"?n.topicId=i.longs===String?String(t.topicId):t.topicId:n.topicId=i.longs===String?r.Long.prototype.toString.call(t.topicId):i.longs===Number?new r.LongBits(t.topicId.low>>>0,t.topicId.high>>>0).toNumber():t.topicId),t.resId!=null&&t.hasOwnProperty("resId")&&(typeof t.resId=="number"?n.resId=i.longs===String?String(t.resId):t.resId:n.resId=i.longs===String?r.Long.prototype.toString.call(t.resId):i.longs===Number?new r.LongBits(t.resId.low>>>0,t.resId.high>>>0).toNumber():t.resId),t.resType!=null&&t.hasOwnProperty("resType")&&(typeof t.resType=="number"?n.resType=i.longs===String?String(t.resType):t.resType:n.resType=i.longs===String?r.Long.prototype.toString.call(t.resType):i.longs===Number?new r.LongBits(t.resType.low>>>0,t.resType.high>>>0).toNumber():t.resType),t.reason!=null&&t.hasOwnProperty("reason")&&(n.reason=t.reason),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.ThreePointTopicIrrelevant"},e}(),c.ThreePointDynEdit=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.dynId=t.int64();break}case 2:{o.originId=t.int64();break}case 3:{o.isOriginDeleted=t.bool();break}case 4:{o.url=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.ThreePointDynEdit)return t;let i=new u.bilibili.app.dynamic.v2.ThreePointDynEdit;return t.dynId!=null&&(r.Long?(i.dynId=r.Long.fromValue(t.dynId)).unsigned=!1:typeof t.dynId=="string"?i.dynId=parseInt(t.dynId,10):typeof t.dynId=="number"?i.dynId=t.dynId:typeof t.dynId=="object"&&(i.dynId=new r.LongBits(t.dynId.low>>>0,t.dynId.high>>>0).toNumber())),t.originId!=null&&(r.Long?(i.originId=r.Long.fromValue(t.originId)).unsigned=!1:typeof t.originId=="string"?i.originId=parseInt(t.originId,10):typeof t.originId=="number"?i.originId=t.originId:typeof t.originId=="object"&&(i.originId=new r.LongBits(t.originId.low>>>0,t.originId.high>>>0).toNumber())),t.isOriginDeleted!=null&&(i.isOriginDeleted=!!t.isOriginDeleted),t.url!=null&&(i.url=String(t.url)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.dynId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.dynId=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.originId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.originId=i.longs===String?"0":0;n.isOriginDeleted=!1,n.url=""}return t.dynId!=null&&t.hasOwnProperty("dynId")&&(typeof t.dynId=="number"?n.dynId=i.longs===String?String(t.dynId):t.dynId:n.dynId=i.longs===String?r.Long.prototype.toString.call(t.dynId):i.longs===Number?new r.LongBits(t.dynId.low>>>0,t.dynId.high>>>0).toNumber():t.dynId),t.originId!=null&&t.hasOwnProperty("originId")&&(typeof t.originId=="number"?n.originId=i.longs===String?String(t.originId):t.originId:n.originId=i.longs===String?r.Long.prototype.toString.call(t.originId):i.longs===Number?new r.LongBits(t.originId.low>>>0,t.originId.high>>>0).toNumber():t.originId),t.isOriginDeleted!=null&&t.hasOwnProperty("isOriginDeleted")&&(n.isOriginDeleted=t.isOriginDeleted),t.url!=null&&t.hasOwnProperty("url")&&(n.url=t.url),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.ThreePointDynEdit"},e}(),c.ThreePointDynCoin=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.hadCoin=t.bool();break}case 2:{o.coinNum=t.int64();break}case 3:{o.coinBusiness=t.string();break}case 4:{o.oid=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.ThreePointDynCoin)return t;let i=new u.bilibili.app.dynamic.v2.ThreePointDynCoin;return t.hadCoin!=null&&(i.hadCoin=!!t.hadCoin),t.coinNum!=null&&(r.Long?(i.coinNum=r.Long.fromValue(t.coinNum)).unsigned=!1:typeof t.coinNum=="string"?i.coinNum=parseInt(t.coinNum,10):typeof t.coinNum=="number"?i.coinNum=t.coinNum:typeof t.coinNum=="object"&&(i.coinNum=new r.LongBits(t.coinNum.low>>>0,t.coinNum.high>>>0).toNumber())),t.coinBusiness!=null&&(i.coinBusiness=String(t.coinBusiness)),t.oid!=null&&(r.Long?(i.oid=r.Long.fromValue(t.oid)).unsigned=!1:typeof t.oid=="string"?i.oid=parseInt(t.oid,10):typeof t.oid=="number"?i.oid=t.oid:typeof t.oid=="object"&&(i.oid=new r.LongBits(t.oid.low>>>0,t.oid.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.hadCoin=!1,r.Long){let o=new r.Long(0,0,!1);n.coinNum=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.coinNum=i.longs===String?"0":0;if(n.coinBusiness="",r.Long){let o=new r.Long(0,0,!1);n.oid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.oid=i.longs===String?"0":0}return t.hadCoin!=null&&t.hasOwnProperty("hadCoin")&&(n.hadCoin=t.hadCoin),t.coinNum!=null&&t.hasOwnProperty("coinNum")&&(typeof t.coinNum=="number"?n.coinNum=i.longs===String?String(t.coinNum):t.coinNum:n.coinNum=i.longs===String?r.Long.prototype.toString.call(t.coinNum):i.longs===Number?new r.LongBits(t.coinNum.low>>>0,t.coinNum.high>>>0).toNumber():t.coinNum),t.coinBusiness!=null&&t.hasOwnProperty("coinBusiness")&&(n.coinBusiness=t.coinBusiness),t.oid!=null&&t.hasOwnProperty("oid")&&(typeof t.oid=="number"?n.oid=i.longs===String?String(t.oid):t.oid:n.oid=i.longs===String?r.Long.prototype.toString.call(t.oid):i.longs===Number?new r.LongBits(t.oid.low>>>0,t.oid.high>>>0).toNumber():t.oid),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.ThreePointDynCoin"},e}(),c.TopType=function(){let e={},l=Object.create(e);return l[e[0]="top_none"]=0,l[e[1]="top_cancel"]=1,l}(),c.ThreePointComment=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.upSelection=u.bilibili.app.dynamic.v2.CommentDetail.decode(t,t.uint32());break}case 2:{o.upClose=u.bilibili.app.dynamic.v2.CommentDetail.decode(t,t.uint32());break}case 3:{o.icon=t.string();break}case 4:{o.title=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.ThreePointComment)return t;let i=new u.bilibili.app.dynamic.v2.ThreePointComment;if(t.upSelection!=null){if(typeof t.upSelection!="object")throw TypeError(".bilibili.app.dynamic.v2.ThreePointComment.upSelection: object expected");i.upSelection=u.bilibili.app.dynamic.v2.CommentDetail.fromObject(t.upSelection)}if(t.upClose!=null){if(typeof t.upClose!="object")throw TypeError(".bilibili.app.dynamic.v2.ThreePointComment.upClose: object expected");i.upClose=u.bilibili.app.dynamic.v2.CommentDetail.fromObject(t.upClose)}return t.icon!=null&&(i.icon=String(t.icon)),t.title!=null&&(i.title=String(t.title)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.upSelection=null,n.upClose=null,n.icon="",n.title=""),t.upSelection!=null&&t.hasOwnProperty("upSelection")&&(n.upSelection=u.bilibili.app.dynamic.v2.CommentDetail.toObject(t.upSelection,i)),t.upClose!=null&&t.hasOwnProperty("upClose")&&(n.upClose=u.bilibili.app.dynamic.v2.CommentDetail.toObject(t.upClose,i)),t.icon!=null&&t.hasOwnProperty("icon")&&(n.icon=t.icon),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.ThreePointComment"},e}(),c.CommentDetail=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.canModify=t.bool();break}case 2:{o.status=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.CommentDetail)return t;let i=new u.bilibili.app.dynamic.v2.CommentDetail;return t.canModify!=null&&(i.canModify=!!t.canModify),t.status!=null&&(r.Long?(i.status=r.Long.fromValue(t.status)).unsigned=!1:typeof t.status=="string"?i.status=parseInt(t.status,10):typeof t.status=="number"?i.status=t.status:typeof t.status=="object"&&(i.status=new r.LongBits(t.status.low>>>0,t.status.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(n.canModify=!1,r.Long){let o=new r.Long(0,0,!1);n.status=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.status=i.longs===String?"0":0;return t.canModify!=null&&t.hasOwnProperty("canModify")&&(n.canModify=t.canModify),t.status!=null&&t.hasOwnProperty("status")&&(typeof t.status=="number"?n.status=i.longs===String?String(t.status):t.status:n.status=i.longs===String?r.Long.prototype.toString.call(t.status):i.longs===Number?new r.LongBits(t.status.low>>>0,t.status.high>>>0).toNumber():t.status),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.CommentDetail"},e}(),c.ThreePointHide=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.icon=t.string();break}case 2:{o.title=t.string();break}case 3:{o.interactive=u.bilibili.app.dynamic.v2.ThreePointHideInteractive.decode(t,t.uint32());break}case 4:{o.blookFid=t.int64();break}case 5:{o.blookType=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.ThreePointHide)return t;let i=new u.bilibili.app.dynamic.v2.ThreePointHide;if(t.icon!=null&&(i.icon=String(t.icon)),t.title!=null&&(i.title=String(t.title)),t.interactive!=null){if(typeof t.interactive!="object")throw TypeError(".bilibili.app.dynamic.v2.ThreePointHide.interactive: object expected");i.interactive=u.bilibili.app.dynamic.v2.ThreePointHideInteractive.fromObject(t.interactive)}return t.blookFid!=null&&(r.Long?(i.blookFid=r.Long.fromValue(t.blookFid)).unsigned=!1:typeof t.blookFid=="string"?i.blookFid=parseInt(t.blookFid,10):typeof t.blookFid=="number"?i.blookFid=t.blookFid:typeof t.blookFid=="object"&&(i.blookFid=new r.LongBits(t.blookFid.low>>>0,t.blookFid.high>>>0).toNumber())),t.blookType!=null&&(i.blookType=String(t.blookType)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.icon="",n.title="",n.interactive=null,r.Long){let o=new r.Long(0,0,!1);n.blookFid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.blookFid=i.longs===String?"0":0;n.blookType=""}return t.icon!=null&&t.hasOwnProperty("icon")&&(n.icon=t.icon),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.interactive!=null&&t.hasOwnProperty("interactive")&&(n.interactive=u.bilibili.app.dynamic.v2.ThreePointHideInteractive.toObject(t.interactive,i)),t.blookFid!=null&&t.hasOwnProperty("blookFid")&&(typeof t.blookFid=="number"?n.blookFid=i.longs===String?String(t.blookFid):t.blookFid:n.blookFid=i.longs===String?r.Long.prototype.toString.call(t.blookFid):i.longs===Number?new r.LongBits(t.blookFid.low>>>0,t.blookFid.high>>>0).toNumber():t.blookFid),t.blookType!=null&&t.hasOwnProperty("blookType")&&(n.blookType=t.blookType),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.ThreePointHide"},e}(),c.ThreePointHideInteractive=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.confirm=t.string();break}case 3:{o.cancel=t.string();break}case 4:{o.toast=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.ThreePointHideInteractive)return t;let i=new u.bilibili.app.dynamic.v2.ThreePointHideInteractive;return t.title!=null&&(i.title=String(t.title)),t.confirm!=null&&(i.confirm=String(t.confirm)),t.cancel!=null&&(i.cancel=String(t.cancel)),t.toast!=null&&(i.toast=String(t.toast)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.title="",n.confirm="",n.cancel="",n.toast=""),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.confirm!=null&&t.hasOwnProperty("confirm")&&(n.confirm=t.confirm),t.cancel!=null&&t.hasOwnProperty("cancel")&&(n.cancel=t.cancel),t.toast!=null&&t.hasOwnProperty("toast")&&(n.toast=t.toast),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.ThreePointHideInteractive"},e}(),c.ModuleDispute=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.desc=t.string();break}case 3:{o.uri=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.ModuleDispute)return t;let i=new u.bilibili.app.dynamic.v2.ModuleDispute;return t.title!=null&&(i.title=String(t.title)),t.desc!=null&&(i.desc=String(t.desc)),t.uri!=null&&(i.uri=String(t.uri)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.title="",n.desc="",n.uri=""),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.desc!=null&&t.hasOwnProperty("desc")&&(n.desc=t.desc),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.ModuleDispute"},e}(),c.ModuleDesc=function(){function e(l){if(this.desc=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.desc&&o.desc.length||(o.desc=[]),o.desc.push(u.bilibili.app.dynamic.v2.Description.decode(t,t.uint32()));break}case 2:{o.jumpUri=t.string();break}case 3:{o.text=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.ModuleDesc)return t;let i=new u.bilibili.app.dynamic.v2.ModuleDesc;if(t.desc){if(!Array.isArray(t.desc))throw TypeError(".bilibili.app.dynamic.v2.ModuleDesc.desc: array expected");i.desc=[];for(let n=0;n>>3){case 1:{a.type=i.int32();break}case 2:{a.dynArchive=u.bilibili.app.dynamic.v2.MdlDynArchive.decode(i,i.uint32());break}case 3:{a.dynPgc=u.bilibili.app.dynamic.v2.MdlDynPGC.decode(i,i.uint32());break}case 4:{a.dynCourSeason=u.bilibili.app.dynamic.v2.MdlDynCourSeason.decode(i,i.uint32());break}case 5:{a.dynCourBatch=u.bilibili.app.dynamic.v2.MdlDynCourBatch.decode(i,i.uint32());break}case 6:{a.dynForward=u.bilibili.app.dynamic.v2.MdlDynForward.decode(i,i.uint32());break}case 7:{a.dynDraw=u.bilibili.app.dynamic.v2.MdlDynDraw.decode(i,i.uint32());break}case 8:{a.dynArticle=u.bilibili.app.dynamic.v2.MdlDynArticle.decode(i,i.uint32());break}case 9:{a.dynMusic=u.bilibili.app.dynamic.v2.MdlDynMusic.decode(i,i.uint32());break}case 10:{a.dynCommon=u.bilibili.app.dynamic.v2.MdlDynCommon.decode(i,i.uint32());break}case 11:{a.dynCommonLive=u.bilibili.app.dynamic.v2.MdlDynLive.decode(i,i.uint32());break}case 12:{a.dynMedialist=u.bilibili.app.dynamic.v2.MdlDynMedialist.decode(i,i.uint32());break}case 13:{a.dynApplet=u.bilibili.app.dynamic.v2.MdlDynApplet.decode(i,i.uint32());break}case 14:{a.dynSubscription=u.bilibili.app.dynamic.v2.MdlDynSubscription.decode(i,i.uint32());break}case 15:{a.dynLiveRcmd=u.bilibili.app.dynamic.v2.MdlDynLiveRcmd.decode(i,i.uint32());break}case 16:{a.dynUgcSeason=u.bilibili.app.dynamic.v2.MdlDynUGCSeason.decode(i,i.uint32());break}case 17:{a.dynSubscriptionNew=u.bilibili.app.dynamic.v2.MdlDynSubscriptionNew.decode(i,i.uint32());break}case 18:{a.dynCourBatchUp=u.bilibili.app.dynamic.v2.MdlDynCourUp.decode(i,i.uint32());break}case 19:{a.dynTopicSet=u.bilibili.app.dynamic.v2.MdlDynTopicSet.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},e.fromObject=function(i){if(i instanceof u.bilibili.app.dynamic.v2.ModuleDynamic)return i;let n=new u.bilibili.app.dynamic.v2.ModuleDynamic;switch(i.type){default:if(typeof i.type=="number"){n.type=i.type;break}break;case"mdl_dyn_archive":case 0:n.type=0;break;case"mdl_dyn_pgc":case 1:n.type=1;break;case"mdl_dyn_cour_season":case 2:n.type=2;break;case"mdl_dyn_cour_batch":case 3:n.type=3;break;case"mdl_dyn_forward":case 4:n.type=4;break;case"mdl_dyn_draw":case 5:n.type=5;break;case"mdl_dyn_article":case 6:n.type=6;break;case"mdl_dyn_music":case 7:n.type=7;break;case"mdl_dyn_common":case 8:n.type=8;break;case"mdl_dyn_live":case 9:n.type=9;break;case"mdl_dyn_medialist":case 10:n.type=10;break;case"mdl_dyn_applet":case 11:n.type=11;break;case"mdl_dyn_subscription":case 12:n.type=12;break;case"mdl_dyn_live_rcmd":case 13:n.type=13;break;case"mdl_dyn_ugc_season":case 14:n.type=14;break;case"mdl_dyn_subscription_new":case 15:n.type=15;break;case"mdl_dyn_cour_up":case 16:n.type=16;break;case"mdl_dyn_topic_set":case 17:n.type=17;break}if(i.dynArchive!=null){if(typeof i.dynArchive!="object")throw TypeError(".bilibili.app.dynamic.v2.ModuleDynamic.dynArchive: object expected");n.dynArchive=u.bilibili.app.dynamic.v2.MdlDynArchive.fromObject(i.dynArchive)}if(i.dynPgc!=null){if(typeof i.dynPgc!="object")throw TypeError(".bilibili.app.dynamic.v2.ModuleDynamic.dynPgc: object expected");n.dynPgc=u.bilibili.app.dynamic.v2.MdlDynPGC.fromObject(i.dynPgc)}if(i.dynCourSeason!=null){if(typeof i.dynCourSeason!="object")throw TypeError(".bilibili.app.dynamic.v2.ModuleDynamic.dynCourSeason: object expected");n.dynCourSeason=u.bilibili.app.dynamic.v2.MdlDynCourSeason.fromObject(i.dynCourSeason)}if(i.dynCourBatch!=null){if(typeof i.dynCourBatch!="object")throw TypeError(".bilibili.app.dynamic.v2.ModuleDynamic.dynCourBatch: object expected");n.dynCourBatch=u.bilibili.app.dynamic.v2.MdlDynCourBatch.fromObject(i.dynCourBatch)}if(i.dynForward!=null){if(typeof i.dynForward!="object")throw TypeError(".bilibili.app.dynamic.v2.ModuleDynamic.dynForward: object expected");n.dynForward=u.bilibili.app.dynamic.v2.MdlDynForward.fromObject(i.dynForward)}if(i.dynDraw!=null){if(typeof i.dynDraw!="object")throw TypeError(".bilibili.app.dynamic.v2.ModuleDynamic.dynDraw: object expected");n.dynDraw=u.bilibili.app.dynamic.v2.MdlDynDraw.fromObject(i.dynDraw)}if(i.dynArticle!=null){if(typeof i.dynArticle!="object")throw TypeError(".bilibili.app.dynamic.v2.ModuleDynamic.dynArticle: object expected");n.dynArticle=u.bilibili.app.dynamic.v2.MdlDynArticle.fromObject(i.dynArticle)}if(i.dynMusic!=null){if(typeof i.dynMusic!="object")throw TypeError(".bilibili.app.dynamic.v2.ModuleDynamic.dynMusic: object expected");n.dynMusic=u.bilibili.app.dynamic.v2.MdlDynMusic.fromObject(i.dynMusic)}if(i.dynCommon!=null){if(typeof i.dynCommon!="object")throw TypeError(".bilibili.app.dynamic.v2.ModuleDynamic.dynCommon: object expected");n.dynCommon=u.bilibili.app.dynamic.v2.MdlDynCommon.fromObject(i.dynCommon)}if(i.dynCommonLive!=null){if(typeof i.dynCommonLive!="object")throw TypeError(".bilibili.app.dynamic.v2.ModuleDynamic.dynCommonLive: object expected");n.dynCommonLive=u.bilibili.app.dynamic.v2.MdlDynLive.fromObject(i.dynCommonLive)}if(i.dynMedialist!=null){if(typeof i.dynMedialist!="object")throw TypeError(".bilibili.app.dynamic.v2.ModuleDynamic.dynMedialist: object expected");n.dynMedialist=u.bilibili.app.dynamic.v2.MdlDynMedialist.fromObject(i.dynMedialist)}if(i.dynApplet!=null){if(typeof i.dynApplet!="object")throw TypeError(".bilibili.app.dynamic.v2.ModuleDynamic.dynApplet: object expected");n.dynApplet=u.bilibili.app.dynamic.v2.MdlDynApplet.fromObject(i.dynApplet)}if(i.dynSubscription!=null){if(typeof i.dynSubscription!="object")throw TypeError(".bilibili.app.dynamic.v2.ModuleDynamic.dynSubscription: object expected");n.dynSubscription=u.bilibili.app.dynamic.v2.MdlDynSubscription.fromObject(i.dynSubscription)}if(i.dynLiveRcmd!=null){if(typeof i.dynLiveRcmd!="object")throw TypeError(".bilibili.app.dynamic.v2.ModuleDynamic.dynLiveRcmd: object expected");n.dynLiveRcmd=u.bilibili.app.dynamic.v2.MdlDynLiveRcmd.fromObject(i.dynLiveRcmd)}if(i.dynUgcSeason!=null){if(typeof i.dynUgcSeason!="object")throw TypeError(".bilibili.app.dynamic.v2.ModuleDynamic.dynUgcSeason: object expected");n.dynUgcSeason=u.bilibili.app.dynamic.v2.MdlDynUGCSeason.fromObject(i.dynUgcSeason)}if(i.dynSubscriptionNew!=null){if(typeof i.dynSubscriptionNew!="object")throw TypeError(".bilibili.app.dynamic.v2.ModuleDynamic.dynSubscriptionNew: object expected");n.dynSubscriptionNew=u.bilibili.app.dynamic.v2.MdlDynSubscriptionNew.fromObject(i.dynSubscriptionNew)}if(i.dynCourBatchUp!=null){if(typeof i.dynCourBatchUp!="object")throw TypeError(".bilibili.app.dynamic.v2.ModuleDynamic.dynCourBatchUp: object expected");n.dynCourBatchUp=u.bilibili.app.dynamic.v2.MdlDynCourUp.fromObject(i.dynCourBatchUp)}if(i.dynTopicSet!=null){if(typeof i.dynTopicSet!="object")throw TypeError(".bilibili.app.dynamic.v2.ModuleDynamic.dynTopicSet: object expected");n.dynTopicSet=u.bilibili.app.dynamic.v2.MdlDynTopicSet.fromObject(i.dynTopicSet)}return n},e.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.type=n.enums===String?"mdl_dyn_archive":0),i.type!=null&&i.hasOwnProperty("type")&&(o.type=n.enums===String?u.bilibili.app.dynamic.v2.ModuleDynamicType[i.type]===void 0?i.type:u.bilibili.app.dynamic.v2.ModuleDynamicType[i.type]:i.type),i.dynArchive!=null&&i.hasOwnProperty("dynArchive")&&(o.dynArchive=u.bilibili.app.dynamic.v2.MdlDynArchive.toObject(i.dynArchive,n),n.oneofs&&(o.moduleItem="dynArchive")),i.dynPgc!=null&&i.hasOwnProperty("dynPgc")&&(o.dynPgc=u.bilibili.app.dynamic.v2.MdlDynPGC.toObject(i.dynPgc,n),n.oneofs&&(o.moduleItem="dynPgc")),i.dynCourSeason!=null&&i.hasOwnProperty("dynCourSeason")&&(o.dynCourSeason=u.bilibili.app.dynamic.v2.MdlDynCourSeason.toObject(i.dynCourSeason,n),n.oneofs&&(o.moduleItem="dynCourSeason")),i.dynCourBatch!=null&&i.hasOwnProperty("dynCourBatch")&&(o.dynCourBatch=u.bilibili.app.dynamic.v2.MdlDynCourBatch.toObject(i.dynCourBatch,n),n.oneofs&&(o.moduleItem="dynCourBatch")),i.dynForward!=null&&i.hasOwnProperty("dynForward")&&(o.dynForward=u.bilibili.app.dynamic.v2.MdlDynForward.toObject(i.dynForward,n),n.oneofs&&(o.moduleItem="dynForward")),i.dynDraw!=null&&i.hasOwnProperty("dynDraw")&&(o.dynDraw=u.bilibili.app.dynamic.v2.MdlDynDraw.toObject(i.dynDraw,n),n.oneofs&&(o.moduleItem="dynDraw")),i.dynArticle!=null&&i.hasOwnProperty("dynArticle")&&(o.dynArticle=u.bilibili.app.dynamic.v2.MdlDynArticle.toObject(i.dynArticle,n),n.oneofs&&(o.moduleItem="dynArticle")),i.dynMusic!=null&&i.hasOwnProperty("dynMusic")&&(o.dynMusic=u.bilibili.app.dynamic.v2.MdlDynMusic.toObject(i.dynMusic,n),n.oneofs&&(o.moduleItem="dynMusic")),i.dynCommon!=null&&i.hasOwnProperty("dynCommon")&&(o.dynCommon=u.bilibili.app.dynamic.v2.MdlDynCommon.toObject(i.dynCommon,n),n.oneofs&&(o.moduleItem="dynCommon")),i.dynCommonLive!=null&&i.hasOwnProperty("dynCommonLive")&&(o.dynCommonLive=u.bilibili.app.dynamic.v2.MdlDynLive.toObject(i.dynCommonLive,n),n.oneofs&&(o.moduleItem="dynCommonLive")),i.dynMedialist!=null&&i.hasOwnProperty("dynMedialist")&&(o.dynMedialist=u.bilibili.app.dynamic.v2.MdlDynMedialist.toObject(i.dynMedialist,n),n.oneofs&&(o.moduleItem="dynMedialist")),i.dynApplet!=null&&i.hasOwnProperty("dynApplet")&&(o.dynApplet=u.bilibili.app.dynamic.v2.MdlDynApplet.toObject(i.dynApplet,n),n.oneofs&&(o.moduleItem="dynApplet")),i.dynSubscription!=null&&i.hasOwnProperty("dynSubscription")&&(o.dynSubscription=u.bilibili.app.dynamic.v2.MdlDynSubscription.toObject(i.dynSubscription,n),n.oneofs&&(o.moduleItem="dynSubscription")),i.dynLiveRcmd!=null&&i.hasOwnProperty("dynLiveRcmd")&&(o.dynLiveRcmd=u.bilibili.app.dynamic.v2.MdlDynLiveRcmd.toObject(i.dynLiveRcmd,n),n.oneofs&&(o.moduleItem="dynLiveRcmd")),i.dynUgcSeason!=null&&i.hasOwnProperty("dynUgcSeason")&&(o.dynUgcSeason=u.bilibili.app.dynamic.v2.MdlDynUGCSeason.toObject(i.dynUgcSeason,n),n.oneofs&&(o.moduleItem="dynUgcSeason")),i.dynSubscriptionNew!=null&&i.hasOwnProperty("dynSubscriptionNew")&&(o.dynSubscriptionNew=u.bilibili.app.dynamic.v2.MdlDynSubscriptionNew.toObject(i.dynSubscriptionNew,n),n.oneofs&&(o.moduleItem="dynSubscriptionNew")),i.dynCourBatchUp!=null&&i.hasOwnProperty("dynCourBatchUp")&&(o.dynCourBatchUp=u.bilibili.app.dynamic.v2.MdlDynCourUp.toObject(i.dynCourBatchUp,n),n.oneofs&&(o.moduleItem="dynCourBatchUp")),i.dynTopicSet!=null&&i.hasOwnProperty("dynTopicSet")&&(o.dynTopicSet=u.bilibili.app.dynamic.v2.MdlDynTopicSet.toObject(i.dynTopicSet,n),n.oneofs&&(o.moduleItem="dynTopicSet")),o},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.app.dynamic.v2.ModuleDynamic"},e}(),c.ModuleDynamicType=function(){let e={},l=Object.create(e);return l[e[0]="mdl_dyn_archive"]=0,l[e[1]="mdl_dyn_pgc"]=1,l[e[2]="mdl_dyn_cour_season"]=2,l[e[3]="mdl_dyn_cour_batch"]=3,l[e[4]="mdl_dyn_forward"]=4,l[e[5]="mdl_dyn_draw"]=5,l[e[6]="mdl_dyn_article"]=6,l[e[7]="mdl_dyn_music"]=7,l[e[8]="mdl_dyn_common"]=8,l[e[9]="mdl_dyn_live"]=9,l[e[10]="mdl_dyn_medialist"]=10,l[e[11]="mdl_dyn_applet"]=11,l[e[12]="mdl_dyn_subscription"]=12,l[e[13]="mdl_dyn_live_rcmd"]=13,l[e[14]="mdl_dyn_ugc_season"]=14,l[e[15]="mdl_dyn_subscription_new"]=15,l[e[16]="mdl_dyn_cour_up"]=16,l[e[17]="mdl_dyn_topic_set"]=17,l}(),c.MdlDynForward=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.item=u.bilibili.app.dynamic.v2.DynamicItem.decode(t,t.uint32());break}case 2:{o.rtype=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.MdlDynForward)return t;let i=new u.bilibili.app.dynamic.v2.MdlDynForward;if(t.item!=null){if(typeof t.item!="object")throw TypeError(".bilibili.app.dynamic.v2.MdlDynForward.item: object expected");i.item=u.bilibili.app.dynamic.v2.DynamicItem.fromObject(t.item)}return t.rtype!=null&&(i.rtype=t.rtype|0),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.item=null,n.rtype=0),t.item!=null&&t.hasOwnProperty("item")&&(n.item=u.bilibili.app.dynamic.v2.DynamicItem.toObject(t.item,i)),t.rtype!=null&&t.hasOwnProperty("rtype")&&(n.rtype=t.rtype),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.MdlDynForward"},e}(),c.ModuleLikeUser=function(){function e(l){if(this.likeUsers=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.likeUsers&&o.likeUsers.length||(o.likeUsers=[]),o.likeUsers.push(u.bilibili.app.dynamic.v2.LikeUser.decode(t,t.uint32()));break}case 2:{o.displayText=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.ModuleLikeUser)return t;let i=new u.bilibili.app.dynamic.v2.ModuleLikeUser;if(t.likeUsers){if(!Array.isArray(t.likeUsers))throw TypeError(".bilibili.app.dynamic.v2.ModuleLikeUser.likeUsers: array expected");i.likeUsers=[];for(let n=0;n>>3){case 1:{o.uid=t.int64();break}case 2:{o.uname=t.string();break}case 3:{o.uri=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.LikeUser)return t;let i=new u.bilibili.app.dynamic.v2.LikeUser;return t.uid!=null&&(r.Long?(i.uid=r.Long.fromValue(t.uid)).unsigned=!1:typeof t.uid=="string"?i.uid=parseInt(t.uid,10):typeof t.uid=="number"?i.uid=t.uid:typeof t.uid=="object"&&(i.uid=new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber())),t.uname!=null&&(i.uname=String(t.uname)),t.uri!=null&&(i.uri=String(t.uri)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.uid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.uid=i.longs===String?"0":0;n.uname="",n.uri=""}return t.uid!=null&&t.hasOwnProperty("uid")&&(typeof t.uid=="number"?n.uid=i.longs===String?String(t.uid):t.uid:n.uid=i.longs===String?r.Long.prototype.toString.call(t.uid):i.longs===Number?new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber():t.uid),t.uname!=null&&t.hasOwnProperty("uname")&&(n.uname=t.uname),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.LikeUser"},e}(),c.ModuleExtend=function(){function e(l){if(this.extend=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.extend&&o.extend.length||(o.extend=[]),o.extend.push(u.bilibili.app.dynamic.v2.ModuleExtendItem.decode(t,t.uint32()));break}case 2:{o.uri=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.ModuleExtend)return t;let i=new u.bilibili.app.dynamic.v2.ModuleExtend;if(t.extend){if(!Array.isArray(t.extend))throw TypeError(".bilibili.app.dynamic.v2.ModuleExtend.extend: array expected");i.extend=[];for(let n=0;n>>3){case 1:{a.type=i.int32();break}case 2:{a.extInfoTopic=u.bilibili.app.dynamic.v2.ExtInfoTopic.decode(i,i.uint32());break}case 3:{a.extInfoLbs=u.bilibili.app.dynamic.v2.ExtInfoLBS.decode(i,i.uint32());break}case 4:{a.extInfoHot=u.bilibili.app.dynamic.v2.ExtInfoHot.decode(i,i.uint32());break}case 5:{a.extInfoGame=u.bilibili.app.dynamic.v2.ExtInfoGame.decode(i,i.uint32());break}case 6:{a.extInfoCommon=u.bilibili.app.dynamic.v2.ExtInfoCommon.decode(i,i.uint32());break}case 7:{a.extInfoOgv=u.bilibili.app.dynamic.v2.ExtInfoOGV.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},e.fromObject=function(i){if(i instanceof u.bilibili.app.dynamic.v2.ModuleExtendItem)return i;let n=new u.bilibili.app.dynamic.v2.ModuleExtendItem;switch(i.type){default:if(typeof i.type=="number"){n.type=i.type;break}break;case"dyn_ext_type_none":case 0:n.type=0;break;case"dyn_ext_type_topic":case 1:n.type=1;break;case"dyn_ext_type_lbs":case 2:n.type=2;break;case"dyn_ext_type_hot":case 3:n.type=3;break;case"dyn_ext_type_game":case 4:n.type=4;break;case"dyn_ext_type_common":case 5:n.type=5;break;case"dyn_ext_type_biliCut":case 6:n.type=6;break;case"dyn_ext_type_ogv":case 7:n.type=7;break;case"dyn_ext_type_auto_ogv":case 8:n.type=8;break}if(i.extInfoTopic!=null){if(typeof i.extInfoTopic!="object")throw TypeError(".bilibili.app.dynamic.v2.ModuleExtendItem.extInfoTopic: object expected");n.extInfoTopic=u.bilibili.app.dynamic.v2.ExtInfoTopic.fromObject(i.extInfoTopic)}if(i.extInfoLbs!=null){if(typeof i.extInfoLbs!="object")throw TypeError(".bilibili.app.dynamic.v2.ModuleExtendItem.extInfoLbs: object expected");n.extInfoLbs=u.bilibili.app.dynamic.v2.ExtInfoLBS.fromObject(i.extInfoLbs)}if(i.extInfoHot!=null){if(typeof i.extInfoHot!="object")throw TypeError(".bilibili.app.dynamic.v2.ModuleExtendItem.extInfoHot: object expected");n.extInfoHot=u.bilibili.app.dynamic.v2.ExtInfoHot.fromObject(i.extInfoHot)}if(i.extInfoGame!=null){if(typeof i.extInfoGame!="object")throw TypeError(".bilibili.app.dynamic.v2.ModuleExtendItem.extInfoGame: object expected");n.extInfoGame=u.bilibili.app.dynamic.v2.ExtInfoGame.fromObject(i.extInfoGame)}if(i.extInfoCommon!=null){if(typeof i.extInfoCommon!="object")throw TypeError(".bilibili.app.dynamic.v2.ModuleExtendItem.extInfoCommon: object expected");n.extInfoCommon=u.bilibili.app.dynamic.v2.ExtInfoCommon.fromObject(i.extInfoCommon)}if(i.extInfoOgv!=null){if(typeof i.extInfoOgv!="object")throw TypeError(".bilibili.app.dynamic.v2.ModuleExtendItem.extInfoOgv: object expected");n.extInfoOgv=u.bilibili.app.dynamic.v2.ExtInfoOGV.fromObject(i.extInfoOgv)}return n},e.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.type=n.enums===String?"dyn_ext_type_none":0),i.type!=null&&i.hasOwnProperty("type")&&(o.type=n.enums===String?u.bilibili.app.dynamic.v2.DynExtendType[i.type]===void 0?i.type:u.bilibili.app.dynamic.v2.DynExtendType[i.type]:i.type),i.extInfoTopic!=null&&i.hasOwnProperty("extInfoTopic")&&(o.extInfoTopic=u.bilibili.app.dynamic.v2.ExtInfoTopic.toObject(i.extInfoTopic,n),n.oneofs&&(o.extend="extInfoTopic")),i.extInfoLbs!=null&&i.hasOwnProperty("extInfoLbs")&&(o.extInfoLbs=u.bilibili.app.dynamic.v2.ExtInfoLBS.toObject(i.extInfoLbs,n),n.oneofs&&(o.extend="extInfoLbs")),i.extInfoHot!=null&&i.hasOwnProperty("extInfoHot")&&(o.extInfoHot=u.bilibili.app.dynamic.v2.ExtInfoHot.toObject(i.extInfoHot,n),n.oneofs&&(o.extend="extInfoHot")),i.extInfoGame!=null&&i.hasOwnProperty("extInfoGame")&&(o.extInfoGame=u.bilibili.app.dynamic.v2.ExtInfoGame.toObject(i.extInfoGame,n),n.oneofs&&(o.extend="extInfoGame")),i.extInfoCommon!=null&&i.hasOwnProperty("extInfoCommon")&&(o.extInfoCommon=u.bilibili.app.dynamic.v2.ExtInfoCommon.toObject(i.extInfoCommon,n),n.oneofs&&(o.extend="extInfoCommon")),i.extInfoOgv!=null&&i.hasOwnProperty("extInfoOgv")&&(o.extInfoOgv=u.bilibili.app.dynamic.v2.ExtInfoOGV.toObject(i.extInfoOgv,n),n.oneofs&&(o.extend="extInfoOgv")),o},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.app.dynamic.v2.ModuleExtendItem"},e}(),c.DynExtendType=function(){let e={},l=Object.create(e);return l[e[0]="dyn_ext_type_none"]=0,l[e[1]="dyn_ext_type_topic"]=1,l[e[2]="dyn_ext_type_lbs"]=2,l[e[3]="dyn_ext_type_hot"]=3,l[e[4]="dyn_ext_type_game"]=4,l[e[5]="dyn_ext_type_common"]=5,l[e[6]="dyn_ext_type_biliCut"]=6,l[e[7]="dyn_ext_type_ogv"]=7,l[e[8]="dyn_ext_type_auto_ogv"]=8,l}(),c.ExtInfoTopic=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.uri=t.string();break}case 3:{o.icon=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.ExtInfoTopic)return t;let i=new u.bilibili.app.dynamic.v2.ExtInfoTopic;return t.title!=null&&(i.title=String(t.title)),t.uri!=null&&(i.uri=String(t.uri)),t.icon!=null&&(i.icon=String(t.icon)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.title="",n.uri="",n.icon=""),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),t.icon!=null&&t.hasOwnProperty("icon")&&(n.icon=t.icon),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.ExtInfoTopic"},e}(),c.ExtInfoLBS=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.uri=t.string();break}case 3:{o.icon=t.string();break}case 4:{o.poiType=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.ExtInfoLBS)return t;let i=new u.bilibili.app.dynamic.v2.ExtInfoLBS;return t.title!=null&&(i.title=String(t.title)),t.uri!=null&&(i.uri=String(t.uri)),t.icon!=null&&(i.icon=String(t.icon)),t.poiType!=null&&(i.poiType=t.poiType|0),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.title="",n.uri="",n.icon="",n.poiType=0),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),t.icon!=null&&t.hasOwnProperty("icon")&&(n.icon=t.icon),t.poiType!=null&&t.hasOwnProperty("poiType")&&(n.poiType=t.poiType),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.ExtInfoLBS"},e}(),c.ExtInfoHot=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.uri=t.string();break}case 3:{o.icon=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.ExtInfoHot)return t;let i=new u.bilibili.app.dynamic.v2.ExtInfoHot;return t.title!=null&&(i.title=String(t.title)),t.uri!=null&&(i.uri=String(t.uri)),t.icon!=null&&(i.icon=String(t.icon)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.title="",n.uri="",n.icon=""),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),t.icon!=null&&t.hasOwnProperty("icon")&&(n.icon=t.icon),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.ExtInfoHot"},e}(),c.ExtInfoGame=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.uri=t.string();break}case 3:{o.icon=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.ExtInfoGame)return t;let i=new u.bilibili.app.dynamic.v2.ExtInfoGame;return t.title!=null&&(i.title=String(t.title)),t.uri!=null&&(i.uri=String(t.uri)),t.icon!=null&&(i.icon=String(t.icon)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.title="",n.uri="",n.icon=""),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),t.icon!=null&&t.hasOwnProperty("icon")&&(n.icon=t.icon),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.ExtInfoGame"},e}(),c.ExtInfoCommon=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.uri=t.string();break}case 3:{o.icon=t.string();break}case 4:{o.poiType=t.int32();break}case 5:{o.type=t.int32();break}case 6:{o.subModule=t.string();break}case 7:{o.actionText=t.string();break}case 8:{o.actionUrl=t.string();break}case 9:{o.rid=t.int64();break}case 10:{o.isShowLight=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.ExtInfoCommon)return t;let i=new u.bilibili.app.dynamic.v2.ExtInfoCommon;switch(t.title!=null&&(i.title=String(t.title)),t.uri!=null&&(i.uri=String(t.uri)),t.icon!=null&&(i.icon=String(t.icon)),t.poiType!=null&&(i.poiType=t.poiType|0),t.type){default:if(typeof t.type=="number"){i.type=t.type;break}break;case"dyn_ext_type_none":case 0:i.type=0;break;case"dyn_ext_type_topic":case 1:i.type=1;break;case"dyn_ext_type_lbs":case 2:i.type=2;break;case"dyn_ext_type_hot":case 3:i.type=3;break;case"dyn_ext_type_game":case 4:i.type=4;break;case"dyn_ext_type_common":case 5:i.type=5;break;case"dyn_ext_type_biliCut":case 6:i.type=6;break;case"dyn_ext_type_ogv":case 7:i.type=7;break;case"dyn_ext_type_auto_ogv":case 8:i.type=8;break}return t.subModule!=null&&(i.subModule=String(t.subModule)),t.actionText!=null&&(i.actionText=String(t.actionText)),t.actionUrl!=null&&(i.actionUrl=String(t.actionUrl)),t.rid!=null&&(r.Long?(i.rid=r.Long.fromValue(t.rid)).unsigned=!1:typeof t.rid=="string"?i.rid=parseInt(t.rid,10):typeof t.rid=="number"?i.rid=t.rid:typeof t.rid=="object"&&(i.rid=new r.LongBits(t.rid.low>>>0,t.rid.high>>>0).toNumber())),t.isShowLight!=null&&(i.isShowLight=!!t.isShowLight),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.title="",n.uri="",n.icon="",n.poiType=0,n.type=i.enums===String?"dyn_ext_type_none":0,n.subModule="",n.actionText="",n.actionUrl="",r.Long){let o=new r.Long(0,0,!1);n.rid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.rid=i.longs===String?"0":0;n.isShowLight=!1}return t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),t.icon!=null&&t.hasOwnProperty("icon")&&(n.icon=t.icon),t.poiType!=null&&t.hasOwnProperty("poiType")&&(n.poiType=t.poiType),t.type!=null&&t.hasOwnProperty("type")&&(n.type=i.enums===String?u.bilibili.app.dynamic.v2.DynExtendType[t.type]===void 0?t.type:u.bilibili.app.dynamic.v2.DynExtendType[t.type]:t.type),t.subModule!=null&&t.hasOwnProperty("subModule")&&(n.subModule=t.subModule),t.actionText!=null&&t.hasOwnProperty("actionText")&&(n.actionText=t.actionText),t.actionUrl!=null&&t.hasOwnProperty("actionUrl")&&(n.actionUrl=t.actionUrl),t.rid!=null&&t.hasOwnProperty("rid")&&(typeof t.rid=="number"?n.rid=i.longs===String?String(t.rid):t.rid:n.rid=i.longs===String?r.Long.prototype.toString.call(t.rid):i.longs===Number?new r.LongBits(t.rid.low>>>0,t.rid.high>>>0).toNumber():t.rid),t.isShowLight!=null&&t.hasOwnProperty("isShowLight")&&(n.isShowLight=t.isShowLight),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.ExtInfoCommon"},e}(),c.ExtInfoOGV=function(){function e(l){if(this.infoOgv=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.infoOgv&&o.infoOgv.length||(o.infoOgv=[]),o.infoOgv.push(u.bilibili.app.dynamic.v2.InfoOGV.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.ExtInfoOGV)return t;let i=new u.bilibili.app.dynamic.v2.ExtInfoOGV;if(t.infoOgv){if(!Array.isArray(t.infoOgv))throw TypeError(".bilibili.app.dynamic.v2.ExtInfoOGV.infoOgv: array expected");i.infoOgv=[];for(let n=0;n>>3){case 1:{o.title=t.string();break}case 2:{o.uri=t.string();break}case 3:{o.icon=t.string();break}case 4:{o.subModule=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.InfoOGV)return t;let i=new u.bilibili.app.dynamic.v2.InfoOGV;return t.title!=null&&(i.title=String(t.title)),t.uri!=null&&(i.uri=String(t.uri)),t.icon!=null&&(i.icon=String(t.icon)),t.subModule!=null&&(i.subModule=String(t.subModule)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.title="",n.uri="",n.icon="",n.subModule=""),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),t.icon!=null&&t.hasOwnProperty("icon")&&(n.icon=t.icon),t.subModule!=null&&t.hasOwnProperty("subModule")&&(n.subModule=t.subModule),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.InfoOGV"},e}(),c.ModuleStat=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.repost=t.int64();break}case 2:{o.like=t.int64();break}case 3:{o.reply=t.int64();break}case 4:{o.likeInfo=u.bilibili.app.dynamic.v2.LikeInfo.decode(t,t.uint32());break}case 5:{o.noComment=t.bool();break}case 6:{o.noForward=t.bool();break}case 7:{o.replyUrl=t.string();break}case 8:{o.noCommentText=t.string();break}case 9:{o.noForwardText=t.string();break}case 10:{o.favorite=t.int64();break}case 11:{o.isFavorite=t.bool();break}case 12:{o.noLike=t.bool();break}case 13:{o.noLikeText=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.ModuleStat)return t;let i=new u.bilibili.app.dynamic.v2.ModuleStat;if(t.repost!=null&&(r.Long?(i.repost=r.Long.fromValue(t.repost)).unsigned=!1:typeof t.repost=="string"?i.repost=parseInt(t.repost,10):typeof t.repost=="number"?i.repost=t.repost:typeof t.repost=="object"&&(i.repost=new r.LongBits(t.repost.low>>>0,t.repost.high>>>0).toNumber())),t.like!=null&&(r.Long?(i.like=r.Long.fromValue(t.like)).unsigned=!1:typeof t.like=="string"?i.like=parseInt(t.like,10):typeof t.like=="number"?i.like=t.like:typeof t.like=="object"&&(i.like=new r.LongBits(t.like.low>>>0,t.like.high>>>0).toNumber())),t.reply!=null&&(r.Long?(i.reply=r.Long.fromValue(t.reply)).unsigned=!1:typeof t.reply=="string"?i.reply=parseInt(t.reply,10):typeof t.reply=="number"?i.reply=t.reply:typeof t.reply=="object"&&(i.reply=new r.LongBits(t.reply.low>>>0,t.reply.high>>>0).toNumber())),t.likeInfo!=null){if(typeof t.likeInfo!="object")throw TypeError(".bilibili.app.dynamic.v2.ModuleStat.likeInfo: object expected");i.likeInfo=u.bilibili.app.dynamic.v2.LikeInfo.fromObject(t.likeInfo)}return t.noComment!=null&&(i.noComment=!!t.noComment),t.noForward!=null&&(i.noForward=!!t.noForward),t.replyUrl!=null&&(i.replyUrl=String(t.replyUrl)),t.noCommentText!=null&&(i.noCommentText=String(t.noCommentText)),t.noForwardText!=null&&(i.noForwardText=String(t.noForwardText)),t.favorite!=null&&(r.Long?(i.favorite=r.Long.fromValue(t.favorite)).unsigned=!1:typeof t.favorite=="string"?i.favorite=parseInt(t.favorite,10):typeof t.favorite=="number"?i.favorite=t.favorite:typeof t.favorite=="object"&&(i.favorite=new r.LongBits(t.favorite.low>>>0,t.favorite.high>>>0).toNumber())),t.isFavorite!=null&&(i.isFavorite=!!t.isFavorite),t.noLike!=null&&(i.noLike=!!t.noLike),t.noLikeText!=null&&(i.noLikeText=String(t.noLikeText)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.repost=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.repost=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.like=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.like=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.reply=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.reply=i.longs===String?"0":0;if(n.likeInfo=null,n.noComment=!1,n.noForward=!1,n.replyUrl="",n.noCommentText="",n.noForwardText="",r.Long){let o=new r.Long(0,0,!1);n.favorite=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.favorite=i.longs===String?"0":0;n.isFavorite=!1,n.noLike=!1,n.noLikeText=""}return t.repost!=null&&t.hasOwnProperty("repost")&&(typeof t.repost=="number"?n.repost=i.longs===String?String(t.repost):t.repost:n.repost=i.longs===String?r.Long.prototype.toString.call(t.repost):i.longs===Number?new r.LongBits(t.repost.low>>>0,t.repost.high>>>0).toNumber():t.repost),t.like!=null&&t.hasOwnProperty("like")&&(typeof t.like=="number"?n.like=i.longs===String?String(t.like):t.like:n.like=i.longs===String?r.Long.prototype.toString.call(t.like):i.longs===Number?new r.LongBits(t.like.low>>>0,t.like.high>>>0).toNumber():t.like),t.reply!=null&&t.hasOwnProperty("reply")&&(typeof t.reply=="number"?n.reply=i.longs===String?String(t.reply):t.reply:n.reply=i.longs===String?r.Long.prototype.toString.call(t.reply):i.longs===Number?new r.LongBits(t.reply.low>>>0,t.reply.high>>>0).toNumber():t.reply),t.likeInfo!=null&&t.hasOwnProperty("likeInfo")&&(n.likeInfo=u.bilibili.app.dynamic.v2.LikeInfo.toObject(t.likeInfo,i)),t.noComment!=null&&t.hasOwnProperty("noComment")&&(n.noComment=t.noComment),t.noForward!=null&&t.hasOwnProperty("noForward")&&(n.noForward=t.noForward),t.replyUrl!=null&&t.hasOwnProperty("replyUrl")&&(n.replyUrl=t.replyUrl),t.noCommentText!=null&&t.hasOwnProperty("noCommentText")&&(n.noCommentText=t.noCommentText),t.noForwardText!=null&&t.hasOwnProperty("noForwardText")&&(n.noForwardText=t.noForwardText),t.favorite!=null&&t.hasOwnProperty("favorite")&&(typeof t.favorite=="number"?n.favorite=i.longs===String?String(t.favorite):t.favorite:n.favorite=i.longs===String?r.Long.prototype.toString.call(t.favorite):i.longs===Number?new r.LongBits(t.favorite.low>>>0,t.favorite.high>>>0).toNumber():t.favorite),t.isFavorite!=null&&t.hasOwnProperty("isFavorite")&&(n.isFavorite=t.isFavorite),t.noLike!=null&&t.hasOwnProperty("noLike")&&(n.noLike=t.noLike),t.noLikeText!=null&&t.hasOwnProperty("noLikeText")&&(n.noLikeText=t.noLikeText),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.ModuleStat"},e}(),c.LikeInfo=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.animation=u.bilibili.app.dynamic.v2.LikeAnimation.decode(t,t.uint32());break}case 2:{o.isLike=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.LikeInfo)return t;let i=new u.bilibili.app.dynamic.v2.LikeInfo;if(t.animation!=null){if(typeof t.animation!="object")throw TypeError(".bilibili.app.dynamic.v2.LikeInfo.animation: object expected");i.animation=u.bilibili.app.dynamic.v2.LikeAnimation.fromObject(t.animation)}return t.isLike!=null&&(i.isLike=!!t.isLike),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.animation=null,n.isLike=!1),t.animation!=null&&t.hasOwnProperty("animation")&&(n.animation=u.bilibili.app.dynamic.v2.LikeAnimation.toObject(t.animation,i)),t.isLike!=null&&t.hasOwnProperty("isLike")&&(n.isLike=t.isLike),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.LikeInfo"},e}(),c.LikeAnimation=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.begin=t.string();break}case 2:{o.proc=t.string();break}case 3:{o.end=t.string();break}case 4:{o.likeIconId=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.LikeAnimation)return t;let i=new u.bilibili.app.dynamic.v2.LikeAnimation;return t.begin!=null&&(i.begin=String(t.begin)),t.proc!=null&&(i.proc=String(t.proc)),t.end!=null&&(i.end=String(t.end)),t.likeIconId!=null&&(r.Long?(i.likeIconId=r.Long.fromValue(t.likeIconId)).unsigned=!1:typeof t.likeIconId=="string"?i.likeIconId=parseInt(t.likeIconId,10):typeof t.likeIconId=="number"?i.likeIconId=t.likeIconId:typeof t.likeIconId=="object"&&(i.likeIconId=new r.LongBits(t.likeIconId.low>>>0,t.likeIconId.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(n.begin="",n.proc="",n.end="",r.Long){let o=new r.Long(0,0,!1);n.likeIconId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.likeIconId=i.longs===String?"0":0;return t.begin!=null&&t.hasOwnProperty("begin")&&(n.begin=t.begin),t.proc!=null&&t.hasOwnProperty("proc")&&(n.proc=t.proc),t.end!=null&&t.hasOwnProperty("end")&&(n.end=t.end),t.likeIconId!=null&&t.hasOwnProperty("likeIconId")&&(typeof t.likeIconId=="number"?n.likeIconId=i.longs===String?String(t.likeIconId):t.likeIconId:n.likeIconId=i.longs===String?r.Long.prototype.toString.call(t.likeIconId):i.longs===Number?new r.LongBits(t.likeIconId.low>>>0,t.likeIconId.high>>>0).toNumber():t.likeIconId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.LikeAnimation"},e}(),c.ModuleFold=function(){function e(l){if(this.foldUsers=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.foldType=t.int32();break}case 2:{o.text=t.string();break}case 3:{o.foldIds=t.string();break}case 4:{o.foldUsers&&o.foldUsers.length||(o.foldUsers=[]),o.foldUsers.push(u.bilibili.app.dynamic.v2.UserInfo.decode(t,t.uint32()));break}case 5:{o.topicMergedResource=u.bilibili.app.dynamic.v2.TopicMergedResource.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.ModuleFold)return t;let i=new u.bilibili.app.dynamic.v2.ModuleFold;switch(t.foldType){default:if(typeof t.foldType=="number"){i.foldType=t.foldType;break}break;case"FoldTypeZore":case 0:i.foldType=0;break;case"FoldTypePublish":case 1:i.foldType=1;break;case"FoldTypeFrequent":case 2:i.foldType=2;break;case"FoldTypeUnite":case 3:i.foldType=3;break;case"FoldTypeLimit":case 4:i.foldType=4;break;case"FoldTypeTopicMerged":case 5:i.foldType=5;break}if(t.text!=null&&(i.text=String(t.text)),t.foldIds!=null&&(i.foldIds=String(t.foldIds)),t.foldUsers){if(!Array.isArray(t.foldUsers))throw TypeError(".bilibili.app.dynamic.v2.ModuleFold.foldUsers: array expected");i.foldUsers=[];for(let n=0;n>>3){case 1:{o.mergeType=t.int32();break}case 2:{o.mergedResCnt=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.TopicMergedResource)return t;let i=new u.bilibili.app.dynamic.v2.TopicMergedResource;return t.mergeType!=null&&(i.mergeType=t.mergeType|0),t.mergedResCnt!=null&&(i.mergedResCnt=t.mergedResCnt|0),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.mergeType=0,n.mergedResCnt=0),t.mergeType!=null&&t.hasOwnProperty("mergeType")&&(n.mergeType=t.mergeType),t.mergedResCnt!=null&&t.hasOwnProperty("mergedResCnt")&&(n.mergedResCnt=t.mergedResCnt),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.TopicMergedResource"},e}(),c.ModuleComment=function(){function e(l){if(this.cmtShowItem=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.cmtShowItem&&o.cmtShowItem.length||(o.cmtShowItem=[]),o.cmtShowItem.push(u.bilibili.app.dynamic.v2.CmtShowItem.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.ModuleComment)return t;let i=new u.bilibili.app.dynamic.v2.ModuleComment;if(t.cmtShowItem){if(!Array.isArray(t.cmtShowItem))throw TypeError(".bilibili.app.dynamic.v2.ModuleComment.cmtShowItem: array expected");i.cmtShowItem=[];for(let n=0;n>>3){case 1:{o.uid=t.int64();break}case 2:{o.uname=t.string();break}case 3:{o.uri=t.string();break}case 4:{o.comment=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.CmtShowItem)return t;let i=new u.bilibili.app.dynamic.v2.CmtShowItem;return t.uid!=null&&(r.Long?(i.uid=r.Long.fromValue(t.uid)).unsigned=!1:typeof t.uid=="string"?i.uid=parseInt(t.uid,10):typeof t.uid=="number"?i.uid=t.uid:typeof t.uid=="object"&&(i.uid=new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber())),t.uname!=null&&(i.uname=String(t.uname)),t.uri!=null&&(i.uri=String(t.uri)),t.comment!=null&&(i.comment=String(t.comment)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.uid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.uid=i.longs===String?"0":0;n.uname="",n.uri="",n.comment=""}return t.uid!=null&&t.hasOwnProperty("uid")&&(typeof t.uid=="number"?n.uid=i.longs===String?String(t.uid):t.uid:n.uid=i.longs===String?r.Long.prototype.toString.call(t.uid):i.longs===Number?new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber():t.uid),t.uname!=null&&t.hasOwnProperty("uname")&&(n.uname=t.uname),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),t.comment!=null&&t.hasOwnProperty("comment")&&(n.comment=t.comment),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.CmtShowItem"},e}(),c.ModuleInteraction=function(){function e(l){if(this.interactionItem=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.interactionItem&&o.interactionItem.length||(o.interactionItem=[]),o.interactionItem.push(u.bilibili.app.dynamic.v2.InteractionItem.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.ModuleInteraction)return t;let i=new u.bilibili.app.dynamic.v2.ModuleInteraction;if(t.interactionItem){if(!Array.isArray(t.interactionItem))throw TypeError(".bilibili.app.dynamic.v2.ModuleInteraction.interactionItem: array expected");i.interactionItem=[];for(let n=0;n>>3){case 1:{o.iconType=t.int32();break}case 2:{o.desc&&o.desc.length||(o.desc=[]),o.desc.push(u.bilibili.app.dynamic.v2.Description.decode(t,t.uint32()));break}case 3:{o.uri=t.string();break}case 4:{o.dynamicId=t.string();break}case 6:{o.commentMid=t.int64();break}case 7:{o.faces&&o.faces.length||(o.faces=[]),o.faces.push(u.bilibili.app.dynamic.v2.InteractionFace.decode(t,t.uint32()));break}case 8:{o.stat=u.bilibili.app.dynamic.v2.InteractionStat.decode(t,t.uint32());break}case 9:{o.icon=t.string();break}case 10:{o.tailIcon=t.string();break}case 11:{o.tailDesc&&o.tailDesc.length||(o.tailDesc=[]),o.tailDesc.push(u.bilibili.app.dynamic.v2.Description.decode(t,t.uint32()));break}case 12:{o.extendClickParam===r.emptyObject&&(o.extendClickParam={});let v=t.uint32()+t.pos;for(a="",y="";t.pos>>3){case 1:a=t.string();break;case 2:y=t.string();break;default:t.skipType(g&7);break}}o.extendClickParam[a]=y;break}default:t.skipType(s&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.InteractionItem)return t;let i=new u.bilibili.app.dynamic.v2.InteractionItem;switch(t.iconType){default:if(typeof t.iconType=="number"){i.iconType=t.iconType;break}break;case"local_icon_comment":case 0:i.iconType=0;break;case"local_icon_like":case 1:i.iconType=1;break;case"local_icon_avatar":case 2:i.iconType=2;break;case"local_icon_cover":case 3:i.iconType=3;break;case"local_icon_like_and_forward":case 4:i.iconType=4;break}if(t.desc){if(!Array.isArray(t.desc))throw TypeError(".bilibili.app.dynamic.v2.InteractionItem.desc: array expected");i.desc=[];for(let n=0;n>>0,t.commentMid.high>>>0).toNumber())),t.faces){if(!Array.isArray(t.faces))throw TypeError(".bilibili.app.dynamic.v2.InteractionItem.faces: array expected");i.faces=[];for(let n=0;n>>0,t.commentMid.high>>>0).toNumber():t.commentMid),t.faces&&t.faces.length){n.faces=[];for(let a=0;a>>3){case 1:{o.mid=t.int64();break}case 2:{o.face=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.InteractionFace)return t;let i=new u.bilibili.app.dynamic.v2.InteractionFace;return t.mid!=null&&(r.Long?(i.mid=r.Long.fromValue(t.mid)).unsigned=!1:typeof t.mid=="string"?i.mid=parseInt(t.mid,10):typeof t.mid=="number"?i.mid=t.mid:typeof t.mid=="object"&&(i.mid=new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber())),t.face!=null&&(i.face=String(t.face)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.mid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mid=i.longs===String?"0":0;n.face=""}return t.mid!=null&&t.hasOwnProperty("mid")&&(typeof t.mid=="number"?n.mid=i.longs===String?String(t.mid):t.mid:n.mid=i.longs===String?r.Long.prototype.toString.call(t.mid):i.longs===Number?new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber():t.mid),t.face!=null&&t.hasOwnProperty("face")&&(n.face=t.face),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.InteractionFace"},e}(),c.InteractionStat=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.like=t.int64();break}case 2:{o.forward=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.InteractionStat)return t;let i=new u.bilibili.app.dynamic.v2.InteractionStat;return t.like!=null&&(r.Long?(i.like=r.Long.fromValue(t.like)).unsigned=!1:typeof t.like=="string"?i.like=parseInt(t.like,10):typeof t.like=="number"?i.like=t.like:typeof t.like=="object"&&(i.like=new r.LongBits(t.like.low>>>0,t.like.high>>>0).toNumber())),t.forward!=null&&(r.Long?(i.forward=r.Long.fromValue(t.forward)).unsigned=!1:typeof t.forward=="string"?i.forward=parseInt(t.forward,10):typeof t.forward=="number"?i.forward=t.forward:typeof t.forward=="object"&&(i.forward=new r.LongBits(t.forward.low>>>0,t.forward.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.like=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.like=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.forward=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.forward=i.longs===String?"0":0}return t.like!=null&&t.hasOwnProperty("like")&&(typeof t.like=="number"?n.like=i.longs===String?String(t.like):t.like:n.like=i.longs===String?r.Long.prototype.toString.call(t.like):i.longs===Number?new r.LongBits(t.like.low>>>0,t.like.high>>>0).toNumber():t.like),t.forward!=null&&t.hasOwnProperty("forward")&&(typeof t.forward=="number"?n.forward=i.longs===String?String(t.forward):t.forward:n.forward=i.longs===String?r.Long.prototype.toString.call(t.forward):i.longs===Number?new r.LongBits(t.forward.low>>>0,t.forward.high>>>0).toNumber():t.forward),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.InteractionStat"},e}(),c.ModuleAuthorForward=function(){function e(l){if(this.title=[],this.tpList=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title&&o.title.length||(o.title=[]),o.title.push(u.bilibili.app.dynamic.v2.ModuleAuthorForwardTitle.decode(t,t.uint32()));break}case 2:{o.url=t.string();break}case 3:{o.uid=t.int64();break}case 4:{o.ptimeLabelText=t.string();break}case 5:{o.showFollow=t.bool();break}case 6:{o.faceUrl=t.string();break}case 7:{o.relation=u.bilibili.app.dynamic.v2.Relation.decode(t,t.uint32());break}case 8:{o.tpList&&o.tpList.length||(o.tpList=[]),o.tpList.push(u.bilibili.app.dynamic.v2.ThreePointItem.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.ModuleAuthorForward)return t;let i=new u.bilibili.app.dynamic.v2.ModuleAuthorForward;if(t.title){if(!Array.isArray(t.title))throw TypeError(".bilibili.app.dynamic.v2.ModuleAuthorForward.title: array expected");i.title=[];for(let n=0;n>>0,t.uid.high>>>0).toNumber())),t.ptimeLabelText!=null&&(i.ptimeLabelText=String(t.ptimeLabelText)),t.showFollow!=null&&(i.showFollow=!!t.showFollow),t.faceUrl!=null&&(i.faceUrl=String(t.faceUrl)),t.relation!=null){if(typeof t.relation!="object")throw TypeError(".bilibili.app.dynamic.v2.ModuleAuthorForward.relation: object expected");i.relation=u.bilibili.app.dynamic.v2.Relation.fromObject(t.relation)}if(t.tpList){if(!Array.isArray(t.tpList))throw TypeError(".bilibili.app.dynamic.v2.ModuleAuthorForward.tpList: array expected");i.tpList=[];for(let n=0;n>>0,t.uid.high>>>0).toNumber():t.uid),t.ptimeLabelText!=null&&t.hasOwnProperty("ptimeLabelText")&&(n.ptimeLabelText=t.ptimeLabelText),t.showFollow!=null&&t.hasOwnProperty("showFollow")&&(n.showFollow=t.showFollow),t.faceUrl!=null&&t.hasOwnProperty("faceUrl")&&(n.faceUrl=t.faceUrl),t.relation!=null&&t.hasOwnProperty("relation")&&(n.relation=u.bilibili.app.dynamic.v2.Relation.toObject(t.relation,i)),t.tpList&&t.tpList.length){n.tpList=[];for(let o=0;o>>3){case 1:{o.text=t.string();break}case 2:{o.url=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.ModuleAuthorForwardTitle)return t;let i=new u.bilibili.app.dynamic.v2.ModuleAuthorForwardTitle;return t.text!=null&&(i.text=String(t.text)),t.url!=null&&(i.url=String(t.url)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.text="",n.url=""),t.text!=null&&t.hasOwnProperty("text")&&(n.text=t.text),t.url!=null&&t.hasOwnProperty("url")&&(n.url=t.url),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.ModuleAuthorForwardTitle"},e}(),c.ModuleAd=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.sourceContent=u.google.protobuf.Any.decode(t,t.uint32());break}case 2:{o.moduleAuthor=u.bilibili.app.dynamic.v2.ModuleAuthor.decode(t,t.uint32());break}case 3:{o.adContentType=t.int32();break}case 4:{o.coverLeftText_1=t.string();break}case 5:{o.coverLeftText_2=t.string();break}case 6:{o.coverLeftText_3=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.ModuleAd)return t;let i=new u.bilibili.app.dynamic.v2.ModuleAd;if(t.sourceContent!=null){if(typeof t.sourceContent!="object")throw TypeError(".bilibili.app.dynamic.v2.ModuleAd.sourceContent: object expected");i.sourceContent=u.google.protobuf.Any.fromObject(t.sourceContent)}if(t.moduleAuthor!=null){if(typeof t.moduleAuthor!="object")throw TypeError(".bilibili.app.dynamic.v2.ModuleAd.moduleAuthor: object expected");i.moduleAuthor=u.bilibili.app.dynamic.v2.ModuleAuthor.fromObject(t.moduleAuthor)}return t.adContentType!=null&&(i.adContentType=t.adContentType|0),t.coverLeftText_1!=null&&(i.coverLeftText_1=String(t.coverLeftText_1)),t.coverLeftText_2!=null&&(i.coverLeftText_2=String(t.coverLeftText_2)),t.coverLeftText_3!=null&&(i.coverLeftText_3=String(t.coverLeftText_3)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.sourceContent=null,n.moduleAuthor=null,n.adContentType=0,n.coverLeftText_1="",n.coverLeftText_2="",n.coverLeftText_3=""),t.sourceContent!=null&&t.hasOwnProperty("sourceContent")&&(n.sourceContent=u.google.protobuf.Any.toObject(t.sourceContent,i)),t.moduleAuthor!=null&&t.hasOwnProperty("moduleAuthor")&&(n.moduleAuthor=u.bilibili.app.dynamic.v2.ModuleAuthor.toObject(t.moduleAuthor,i)),t.adContentType!=null&&t.hasOwnProperty("adContentType")&&(n.adContentType=t.adContentType),t.coverLeftText_1!=null&&t.hasOwnProperty("coverLeftText_1")&&(n.coverLeftText_1=t.coverLeftText_1),t.coverLeftText_2!=null&&t.hasOwnProperty("coverLeftText_2")&&(n.coverLeftText_2=t.coverLeftText_2),t.coverLeftText_3!=null&&t.hasOwnProperty("coverLeftText_3")&&(n.coverLeftText_3=t.coverLeftText_3),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.ModuleAd"},e}(),c.ModuleBanner=function(){function e(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.title=i.string();break}case 2:{a.type=i.int32();break}case 3:{a.user=u.bilibili.app.dynamic.v2.ModuleBannerUser.decode(i,i.uint32());break}case 4:{a.dislikeText=i.string();break}case 5:{a.dislikeIcon=i.string();break}default:i.skipType(y&7);break}}return a},e.fromObject=function(i){if(i instanceof u.bilibili.app.dynamic.v2.ModuleBanner)return i;let n=new u.bilibili.app.dynamic.v2.ModuleBanner;switch(i.title!=null&&(n.title=String(i.title)),i.type){default:if(typeof i.type=="number"){n.type=i.type;break}break;case"module_banner_type_none":case 0:n.type=0;break;case"module_banner_type_user":case 1:n.type=1;break}if(i.user!=null){if(typeof i.user!="object")throw TypeError(".bilibili.app.dynamic.v2.ModuleBanner.user: object expected");n.user=u.bilibili.app.dynamic.v2.ModuleBannerUser.fromObject(i.user)}return i.dislikeText!=null&&(n.dislikeText=String(i.dislikeText)),i.dislikeIcon!=null&&(n.dislikeIcon=String(i.dislikeIcon)),n},e.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.title="",o.type=n.enums===String?"module_banner_type_none":0,o.dislikeText="",o.dislikeIcon=""),i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.type!=null&&i.hasOwnProperty("type")&&(o.type=n.enums===String?u.bilibili.app.dynamic.v2.ModuleBannerType[i.type]===void 0?i.type:u.bilibili.app.dynamic.v2.ModuleBannerType[i.type]:i.type),i.user!=null&&i.hasOwnProperty("user")&&(o.user=u.bilibili.app.dynamic.v2.ModuleBannerUser.toObject(i.user,n),n.oneofs&&(o.item="user")),i.dislikeText!=null&&i.hasOwnProperty("dislikeText")&&(o.dislikeText=i.dislikeText),i.dislikeIcon!=null&&i.hasOwnProperty("dislikeIcon")&&(o.dislikeIcon=i.dislikeIcon),o},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.app.dynamic.v2.ModuleBanner"},e}(),c.ModuleBannerType=function(){let e={},l=Object.create(e);return l[e[0]="module_banner_type_none"]=0,l[e[1]="module_banner_type_user"]=1,l}(),c.ModuleBannerUser=function(){function e(l){if(this.list=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.list&&o.list.length||(o.list=[]),o.list.push(u.bilibili.app.dynamic.v2.ModuleBannerUserItem.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.ModuleBannerUser)return t;let i=new u.bilibili.app.dynamic.v2.ModuleBannerUser;if(t.list){if(!Array.isArray(t.list))throw TypeError(".bilibili.app.dynamic.v2.ModuleBannerUser.list: array expected");i.list=[];for(let n=0;n>>3){case 1:{o.face=t.string();break}case 2:{o.name=t.string();break}case 3:{o.uid=t.int64();break}case 4:{o.liveState=t.int32();break}case 5:{o.official=u.bilibili.app.dynamic.v2.OfficialVerify.decode(t,t.uint32());break}case 6:{o.vip=u.bilibili.app.dynamic.v2.VipInfo.decode(t,t.uint32());break}case 7:{o.label=t.string();break}case 8:{o.button=u.bilibili.app.dynamic.v2.AdditionalButton.decode(t,t.uint32());break}case 9:{o.uri=t.string();break}case 10:{o.relation=u.bilibili.app.dynamic.v2.Relation.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.ModuleBannerUserItem)return t;let i=new u.bilibili.app.dynamic.v2.ModuleBannerUserItem;switch(t.face!=null&&(i.face=String(t.face)),t.name!=null&&(i.name=String(t.name)),t.uid!=null&&(r.Long?(i.uid=r.Long.fromValue(t.uid)).unsigned=!1:typeof t.uid=="string"?i.uid=parseInt(t.uid,10):typeof t.uid=="number"?i.uid=t.uid:typeof t.uid=="object"&&(i.uid=new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber())),t.liveState){default:if(typeof t.liveState=="number"){i.liveState=t.liveState;break}break;case"live_none":case 0:i.liveState=0;break;case"live_live":case 1:i.liveState=1;break;case"live_rotation":case 2:i.liveState=2;break}if(t.official!=null){if(typeof t.official!="object")throw TypeError(".bilibili.app.dynamic.v2.ModuleBannerUserItem.official: object expected");i.official=u.bilibili.app.dynamic.v2.OfficialVerify.fromObject(t.official)}if(t.vip!=null){if(typeof t.vip!="object")throw TypeError(".bilibili.app.dynamic.v2.ModuleBannerUserItem.vip: object expected");i.vip=u.bilibili.app.dynamic.v2.VipInfo.fromObject(t.vip)}if(t.label!=null&&(i.label=String(t.label)),t.button!=null){if(typeof t.button!="object")throw TypeError(".bilibili.app.dynamic.v2.ModuleBannerUserItem.button: object expected");i.button=u.bilibili.app.dynamic.v2.AdditionalButton.fromObject(t.button)}if(t.uri!=null&&(i.uri=String(t.uri)),t.relation!=null){if(typeof t.relation!="object")throw TypeError(".bilibili.app.dynamic.v2.ModuleBannerUserItem.relation: object expected");i.relation=u.bilibili.app.dynamic.v2.Relation.fromObject(t.relation)}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.face="",n.name="",r.Long){let o=new r.Long(0,0,!1);n.uid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.uid=i.longs===String?"0":0;n.liveState=i.enums===String?"live_none":0,n.official=null,n.vip=null,n.label="",n.button=null,n.uri="",n.relation=null}return t.face!=null&&t.hasOwnProperty("face")&&(n.face=t.face),t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),t.uid!=null&&t.hasOwnProperty("uid")&&(typeof t.uid=="number"?n.uid=i.longs===String?String(t.uid):t.uid:n.uid=i.longs===String?r.Long.prototype.toString.call(t.uid):i.longs===Number?new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber():t.uid),t.liveState!=null&&t.hasOwnProperty("liveState")&&(n.liveState=i.enums===String?u.bilibili.app.dynamic.v2.LiveState[t.liveState]===void 0?t.liveState:u.bilibili.app.dynamic.v2.LiveState[t.liveState]:t.liveState),t.official!=null&&t.hasOwnProperty("official")&&(n.official=u.bilibili.app.dynamic.v2.OfficialVerify.toObject(t.official,i)),t.vip!=null&&t.hasOwnProperty("vip")&&(n.vip=u.bilibili.app.dynamic.v2.VipInfo.toObject(t.vip,i)),t.label!=null&&t.hasOwnProperty("label")&&(n.label=t.label),t.button!=null&&t.hasOwnProperty("button")&&(n.button=u.bilibili.app.dynamic.v2.AdditionalButton.toObject(t.button,i)),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),t.relation!=null&&t.hasOwnProperty("relation")&&(n.relation=u.bilibili.app.dynamic.v2.Relation.toObject(t.relation,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.ModuleBannerUserItem"},e}(),c.ModuleItemNull=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.icon=t.string();break}case 2:{o.text=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.ModuleItemNull)return t;let i=new u.bilibili.app.dynamic.v2.ModuleItemNull;return t.icon!=null&&(i.icon=String(t.icon)),t.text!=null&&(i.text=String(t.text)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.icon="",n.text=""),t.icon!=null&&t.hasOwnProperty("icon")&&(n.icon=t.icon),t.text!=null&&t.hasOwnProperty("text")&&(n.text=t.text),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.ModuleItemNull"},e}(),c.ModuleShareInfo=function(){function e(l){if(this.shareChannels=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.shareChannels&&o.shareChannels.length||(o.shareChannels=[]),o.shareChannels.push(u.bilibili.app.dynamic.v2.ShareChannel.decode(t,t.uint32()));break}case 3:{o.shareOrigin=t.string();break}case 4:{o.oid=t.string();break}case 5:{o.sid=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.ModuleShareInfo)return t;let i=new u.bilibili.app.dynamic.v2.ModuleShareInfo;if(t.title!=null&&(i.title=String(t.title)),t.shareChannels){if(!Array.isArray(t.shareChannels))throw TypeError(".bilibili.app.dynamic.v2.ModuleShareInfo.shareChannels: array expected");i.shareChannels=[];for(let n=0;n>>3){case 1:{o.name=t.string();break}case 2:{o.image=t.string();break}case 3:{o.channel=t.string();break}case 4:{o.reserve=u.bilibili.app.dynamic.v2.ShareReserve.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.ShareChannel)return t;let i=new u.bilibili.app.dynamic.v2.ShareChannel;if(t.name!=null&&(i.name=String(t.name)),t.image!=null&&(i.image=String(t.image)),t.channel!=null&&(i.channel=String(t.channel)),t.reserve!=null){if(typeof t.reserve!="object")throw TypeError(".bilibili.app.dynamic.v2.ShareChannel.reserve: object expected");i.reserve=u.bilibili.app.dynamic.v2.ShareReserve.fromObject(t.reserve)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.name="",n.image="",n.channel="",n.reserve=null),t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),t.image!=null&&t.hasOwnProperty("image")&&(n.image=t.image),t.channel!=null&&t.hasOwnProperty("channel")&&(n.channel=t.channel),t.reserve!=null&&t.hasOwnProperty("reserve")&&(n.reserve=u.bilibili.app.dynamic.v2.ShareReserve.toObject(t.reserve,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.ShareChannel"},e}(),c.ModuleRecommend=function(){function e(l){if(this.ad=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.moduleTitle=t.string();break}case 2:{o.image=t.string();break}case 3:{o.tag=t.string();break}case 4:{o.title=t.string();break}case 5:{o.jumpUrl=t.string();break}case 6:{o.ad&&o.ad.length||(o.ad=[]),o.ad.push(u.google.protobuf.Any.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.ModuleRecommend)return t;let i=new u.bilibili.app.dynamic.v2.ModuleRecommend;if(t.moduleTitle!=null&&(i.moduleTitle=String(t.moduleTitle)),t.image!=null&&(i.image=String(t.image)),t.tag!=null&&(i.tag=String(t.tag)),t.title!=null&&(i.title=String(t.title)),t.jumpUrl!=null&&(i.jumpUrl=String(t.jumpUrl)),t.ad){if(!Array.isArray(t.ad))throw TypeError(".bilibili.app.dynamic.v2.ModuleRecommend.ad: array expected");i.ad=[];for(let n=0;n>>3){case 1:{o.tpList&&o.tpList.length||(o.tpList=[]),o.tpList.push(u.bilibili.app.dynamic.v2.ThreePointItem.decode(t,t.uint32()));break}case 2:{o.archive=u.bilibili.app.dynamic.v2.MdlDynArchive.decode(t,t.uint32());break}case 3:{o.author=u.bilibili.app.dynamic.v2.ModuleAuthor.decode(t,t.uint32());break}case 4:{o.hiddenNavBar=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.ModuleTop)return t;let i=new u.bilibili.app.dynamic.v2.ModuleTop;if(t.tpList){if(!Array.isArray(t.tpList))throw TypeError(".bilibili.app.dynamic.v2.ModuleTop.tpList: array expected");i.tpList=[];for(let n=0;n>>3){case 1:{o.moduleStat=u.bilibili.app.dynamic.v2.ModuleStat.decode(t,t.uint32());break}case 2:{o.commentBox=t.bool();break}case 3:{o.commentBoxMsg=t.string();break}case 4:{if(o.interactionIcons&&o.interactionIcons.length||(o.interactionIcons=[]),(a&7)===2){let y=t.uint32()+t.pos;for(;t.pos>>3){case 1:{o.title=t.string();break}case 2:{o.items&&o.items.length||(o.items=[]),o.items.push(u.bilibili.app.dynamic.v2.StoryItem.decode(t,t.uint32()));break}case 3:{o.showPublishEntrance=t.bool();break}case 4:{o.foldState=t.int64();break}case 5:{o.uri=t.string();break}case 6:{o.cover=t.string();break}case 7:{o.publishText=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.ModuleStory)return t;let i=new u.bilibili.app.dynamic.v2.ModuleStory;if(t.title!=null&&(i.title=String(t.title)),t.items){if(!Array.isArray(t.items))throw TypeError(".bilibili.app.dynamic.v2.ModuleStory.items: array expected");i.items=[];for(let n=0;n>>0,t.foldState.high>>>0).toNumber())),t.uri!=null&&(i.uri=String(t.uri)),t.cover!=null&&(i.cover=String(t.cover)),t.publishText!=null&&(i.publishText=String(t.publishText)),i},e.toObject=function(t,i){i||(i={});let n={};if((i.arrays||i.defaults)&&(n.items=[]),i.defaults){if(n.title="",n.showPublishEntrance=!1,r.Long){let o=new r.Long(0,0,!1);n.foldState=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.foldState=i.longs===String?"0":0;n.uri="",n.cover="",n.publishText=""}if(t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.items&&t.items.length){n.items=[];for(let o=0;o>>0,t.foldState.high>>>0).toNumber():t.foldState),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),t.cover!=null&&t.hasOwnProperty("cover")&&(n.cover=t.cover),t.publishText!=null&&t.hasOwnProperty("publishText")&&(n.publishText=t.publishText),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.ModuleStory"},e}(),c.StoryItem=function(){function e(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.author=u.bilibili.app.dynamic.v2.UserInfo.decode(i,i.uint32());break}case 2:{a.desc=i.string();break}case 3:{a.status=i.int64();break}case 4:{a.type=i.int32();break}case 5:{a.storyArchive=u.bilibili.app.dynamic.v2.StoryArchive.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},e.fromObject=function(i){if(i instanceof u.bilibili.app.dynamic.v2.StoryItem)return i;let n=new u.bilibili.app.dynamic.v2.StoryItem;if(i.author!=null){if(typeof i.author!="object")throw TypeError(".bilibili.app.dynamic.v2.StoryItem.author: object expected");n.author=u.bilibili.app.dynamic.v2.UserInfo.fromObject(i.author)}switch(i.desc!=null&&(n.desc=String(i.desc)),i.status!=null&&(r.Long?(n.status=r.Long.fromValue(i.status)).unsigned=!1:typeof i.status=="string"?n.status=parseInt(i.status,10):typeof i.status=="number"?n.status=i.status:typeof i.status=="object"&&(n.status=new r.LongBits(i.status.low>>>0,i.status.high>>>0).toNumber())),i.type){default:if(typeof i.type=="number"){n.type=i.type;break}break;case"rcmd_archive":case 0:n.type=0;break;case"rcmd_dynamic":case 1:n.type=1;break}if(i.storyArchive!=null){if(typeof i.storyArchive!="object")throw TypeError(".bilibili.app.dynamic.v2.StoryItem.storyArchive: object expected");n.storyArchive=u.bilibili.app.dynamic.v2.StoryArchive.fromObject(i.storyArchive)}return n},e.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(o.author=null,o.desc="",r.Long){let a=new r.Long(0,0,!1);o.status=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.status=n.longs===String?"0":0;o.type=n.enums===String?"rcmd_archive":0}return i.author!=null&&i.hasOwnProperty("author")&&(o.author=u.bilibili.app.dynamic.v2.UserInfo.toObject(i.author,n)),i.desc!=null&&i.hasOwnProperty("desc")&&(o.desc=i.desc),i.status!=null&&i.hasOwnProperty("status")&&(typeof i.status=="number"?o.status=n.longs===String?String(i.status):i.status:o.status=n.longs===String?r.Long.prototype.toString.call(i.status):n.longs===Number?new r.LongBits(i.status.low>>>0,i.status.high>>>0).toNumber():i.status),i.type!=null&&i.hasOwnProperty("type")&&(o.type=n.enums===String?u.bilibili.app.dynamic.v2.RcmdType[i.type]===void 0?i.type:u.bilibili.app.dynamic.v2.RcmdType[i.type]:i.type),i.storyArchive!=null&&i.hasOwnProperty("storyArchive")&&(o.storyArchive=u.bilibili.app.dynamic.v2.StoryArchive.toObject(i.storyArchive,n),n.oneofs&&(o.rcmdItem="storyArchive")),o},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.app.dynamic.v2.StoryItem"},e}(),c.RcmdType=function(){let e={},l=Object.create(e);return l[e[0]="rcmd_archive"]=0,l[e[1]="rcmd_dynamic"]=1,l}(),c.StoryArchive=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.cover=t.string();break}case 2:{o.aid=t.int64();break}case 3:{o.uri=t.string();break}case 4:{o.dimension=u.bilibili.app.dynamic.v2.Dimension.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.StoryArchive)return t;let i=new u.bilibili.app.dynamic.v2.StoryArchive;if(t.cover!=null&&(i.cover=String(t.cover)),t.aid!=null&&(r.Long?(i.aid=r.Long.fromValue(t.aid)).unsigned=!1:typeof t.aid=="string"?i.aid=parseInt(t.aid,10):typeof t.aid=="number"?i.aid=t.aid:typeof t.aid=="object"&&(i.aid=new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber())),t.uri!=null&&(i.uri=String(t.uri)),t.dimension!=null){if(typeof t.dimension!="object")throw TypeError(".bilibili.app.dynamic.v2.StoryArchive.dimension: object expected");i.dimension=u.bilibili.app.dynamic.v2.Dimension.fromObject(t.dimension)}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.cover="",r.Long){let o=new r.Long(0,0,!1);n.aid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.aid=i.longs===String?"0":0;n.uri="",n.dimension=null}return t.cover!=null&&t.hasOwnProperty("cover")&&(n.cover=t.cover),t.aid!=null&&t.hasOwnProperty("aid")&&(typeof t.aid=="number"?n.aid=i.longs===String?String(t.aid):t.aid:n.aid=i.longs===String?r.Long.prototype.toString.call(t.aid):i.longs===Number?new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber():t.aid),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),t.dimension!=null&&t.hasOwnProperty("dimension")&&(n.dimension=u.bilibili.app.dynamic.v2.Dimension.toObject(t.dimension,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.StoryArchive"},e}(),c.ModuleTopic=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.id=t.int64();break}case 2:{o.name=t.string();break}case 3:{o.url=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.ModuleTopic)return t;let i=new u.bilibili.app.dynamic.v2.ModuleTopic;return t.id!=null&&(r.Long?(i.id=r.Long.fromValue(t.id)).unsigned=!1:typeof t.id=="string"?i.id=parseInt(t.id,10):typeof t.id=="number"?i.id=t.id:typeof t.id=="object"&&(i.id=new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber())),t.name!=null&&(i.name=String(t.name)),t.url!=null&&(i.url=String(t.url)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.id=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.id=i.longs===String?"0":0;n.name="",n.url=""}return t.id!=null&&t.hasOwnProperty("id")&&(typeof t.id=="number"?n.id=i.longs===String?String(t.id):t.id:n.id=i.longs===String?r.Long.prototype.toString.call(t.id):i.longs===Number?new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber():t.id),t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),t.url!=null&&t.hasOwnProperty("url")&&(n.url=t.url),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.ModuleTopic"},e}(),c.ModuleTopicDetailsExt=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.commentGuide=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.ModuleTopicDetailsExt)return t;let i=new u.bilibili.app.dynamic.v2.ModuleTopicDetailsExt;return t.commentGuide!=null&&(i.commentGuide=String(t.commentGuide)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.commentGuide=""),t.commentGuide!=null&&t.hasOwnProperty("commentGuide")&&(n.commentGuide=t.commentGuide),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.ModuleTopicDetailsExt"},e}(),c.ModuleTopTag=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.tagName=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.ModuleTopTag)return t;let i=new u.bilibili.app.dynamic.v2.ModuleTopTag;return t.tagName!=null&&(i.tagName=String(t.tagName)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.tagName=""),t.tagName!=null&&t.hasOwnProperty("tagName")&&(n.tagName=t.tagName),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.ModuleTopTag"},e}(),c.ModuleTopicBrief=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.topic=u.bilibili.app.dynamic.v2.TopicItem.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.ModuleTopicBrief)return t;let i=new u.bilibili.app.dynamic.v2.ModuleTopicBrief;if(t.topic!=null){if(typeof t.topic!="object")throw TypeError(".bilibili.app.dynamic.v2.ModuleTopicBrief.topic: object expected");i.topic=u.bilibili.app.dynamic.v2.TopicItem.fromObject(t.topic)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.topic=null),t.topic!=null&&t.hasOwnProperty("topic")&&(n.topic=u.bilibili.app.dynamic.v2.TopicItem.toObject(t.topic,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.ModuleTopicBrief"},e}(),c.ModuleTitle=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.rightBtn=u.bilibili.app.dynamic.v2.IconButton.decode(t,t.uint32());break}case 3:{o.titleStyle=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.ModuleTitle)return t;let i=new u.bilibili.app.dynamic.v2.ModuleTitle;if(t.title!=null&&(i.title=String(t.title)),t.rightBtn!=null){if(typeof t.rightBtn!="object")throw TypeError(".bilibili.app.dynamic.v2.ModuleTitle.rightBtn: object expected");i.rightBtn=u.bilibili.app.dynamic.v2.IconButton.fromObject(t.rightBtn)}return t.titleStyle!=null&&(i.titleStyle=t.titleStyle|0),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.title="",n.rightBtn=null,n.titleStyle=0),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.rightBtn!=null&&t.hasOwnProperty("rightBtn")&&(n.rightBtn=u.bilibili.app.dynamic.v2.IconButton.toObject(t.rightBtn,i)),t.titleStyle!=null&&t.hasOwnProperty("titleStyle")&&(n.titleStyle=t.titleStyle),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.ModuleTitle"},e}(),c.ModuleButton=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.btn=u.bilibili.app.dynamic.v2.IconButton.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.ModuleButton)return t;let i=new u.bilibili.app.dynamic.v2.ModuleButton;if(t.btn!=null){if(typeof t.btn!="object")throw TypeError(".bilibili.app.dynamic.v2.ModuleButton.btn: object expected");i.btn=u.bilibili.app.dynamic.v2.IconButton.fromObject(t.btn)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.btn=null),t.btn!=null&&t.hasOwnProperty("btn")&&(n.btn=u.bilibili.app.dynamic.v2.IconButton.toObject(t.btn,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.ModuleButton"},e}(),c.ModuleNotice=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.identity=t.string();break}case 2:{o.icon=t.string();break}case 3:{o.title=t.string();break}case 4:{o.url=t.string();break}case 5:{o.noticeType=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.ModuleNotice)return t;let i=new u.bilibili.app.dynamic.v2.ModuleNotice;return t.identity!=null&&(i.identity=String(t.identity)),t.icon!=null&&(i.icon=String(t.icon)),t.title!=null&&(i.title=String(t.title)),t.url!=null&&(i.url=String(t.url)),t.noticeType!=null&&(i.noticeType=t.noticeType|0),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.identity="",n.icon="",n.title="",n.url="",n.noticeType=0),t.identity!=null&&t.hasOwnProperty("identity")&&(n.identity=t.identity),t.icon!=null&&t.hasOwnProperty("icon")&&(n.icon=t.icon),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.url!=null&&t.hasOwnProperty("url")&&(n.url=t.url),t.noticeType!=null&&t.hasOwnProperty("noticeType")&&(n.noticeType=t.noticeType),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.ModuleNotice"},e}(),c.ModuleOpusSummary=function(){function e(l){if(this.covers=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=u.bilibili.app.dynamic.v2.Paragraph.decode(t,t.uint32());break}case 2:{o.summary=u.bilibili.app.dynamic.v2.Paragraph.decode(t,t.uint32());break}case 3:{o.summaryJumpBtnText=t.string();break}case 4:{o.covers&&o.covers.length||(o.covers=[]),o.covers.push(u.bilibili.app.dynamic.v2.MdlDynDrawItem.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.ModuleOpusSummary)return t;let i=new u.bilibili.app.dynamic.v2.ModuleOpusSummary;if(t.title!=null){if(typeof t.title!="object")throw TypeError(".bilibili.app.dynamic.v2.ModuleOpusSummary.title: object expected");i.title=u.bilibili.app.dynamic.v2.Paragraph.fromObject(t.title)}if(t.summary!=null){if(typeof t.summary!="object")throw TypeError(".bilibili.app.dynamic.v2.ModuleOpusSummary.summary: object expected");i.summary=u.bilibili.app.dynamic.v2.Paragraph.fromObject(t.summary)}if(t.summaryJumpBtnText!=null&&(i.summaryJumpBtnText=String(t.summaryJumpBtnText)),t.covers){if(!Array.isArray(t.covers))throw TypeError(".bilibili.app.dynamic.v2.ModuleOpusSummary.covers: array expected");i.covers=[];for(let n=0;n>>3){case 1:{o.icon=u.bilibili.app.dynamic.v2.ImageSet.decode(t,t.uint32());break}case 2:{o.bgImg=u.bilibili.app.dynamic.v2.ImageSet.decode(t,t.uint32());break}case 3:{o.hintMessage=t.string();break}case 4:{o.actBtn=u.bilibili.app.dynamic.v2.IconButton.decode(t,t.uint32());break}case 5:{o.blockStyle=t.int32();break}case 6:{o.subHintMessage=t.string();break}case 7:{o.videoBottomTextUpper=u.bilibili.app.dynamic.v2.OneLineText.decode(t,t.uint32());break}case 8:{o.videoBottomTextLower=u.bilibili.app.dynamic.v2.OneLineText.decode(t,t.uint32());break}case 9:{o.archiveTitle=t.string();break}case 10:{o.hintMessageOneLine=u.bilibili.app.dynamic.v2.OneLineText.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.ModuleBlocked)return t;let i=new u.bilibili.app.dynamic.v2.ModuleBlocked;if(t.icon!=null){if(typeof t.icon!="object")throw TypeError(".bilibili.app.dynamic.v2.ModuleBlocked.icon: object expected");i.icon=u.bilibili.app.dynamic.v2.ImageSet.fromObject(t.icon)}if(t.bgImg!=null){if(typeof t.bgImg!="object")throw TypeError(".bilibili.app.dynamic.v2.ModuleBlocked.bgImg: object expected");i.bgImg=u.bilibili.app.dynamic.v2.ImageSet.fromObject(t.bgImg)}if(t.hintMessage!=null&&(i.hintMessage=String(t.hintMessage)),t.actBtn!=null){if(typeof t.actBtn!="object")throw TypeError(".bilibili.app.dynamic.v2.ModuleBlocked.actBtn: object expected");i.actBtn=u.bilibili.app.dynamic.v2.IconButton.fromObject(t.actBtn)}switch(t.blockStyle){default:if(typeof t.blockStyle=="number"){i.blockStyle=t.blockStyle;break}break;case"BLOCKED_STYLE_DEFAULT":case 0:i.blockStyle=0;break;case"BLOCKED_STYLE_IN_AUDIT":case 1:i.blockStyle=1;break;case"BLOCKED_STYLE_ONLY_FANS_LIST":case 2:i.blockStyle=2;break;case"BLOCKED_STYLE_ONLY_FANS_VIDEO":case 3:i.blockStyle=3;break}if(t.subHintMessage!=null&&(i.subHintMessage=String(t.subHintMessage)),t.videoBottomTextUpper!=null){if(typeof t.videoBottomTextUpper!="object")throw TypeError(".bilibili.app.dynamic.v2.ModuleBlocked.videoBottomTextUpper: object expected");i.videoBottomTextUpper=u.bilibili.app.dynamic.v2.OneLineText.fromObject(t.videoBottomTextUpper)}if(t.videoBottomTextLower!=null){if(typeof t.videoBottomTextLower!="object")throw TypeError(".bilibili.app.dynamic.v2.ModuleBlocked.videoBottomTextLower: object expected");i.videoBottomTextLower=u.bilibili.app.dynamic.v2.OneLineText.fromObject(t.videoBottomTextLower)}if(t.archiveTitle!=null&&(i.archiveTitle=String(t.archiveTitle)),t.hintMessageOneLine!=null){if(typeof t.hintMessageOneLine!="object")throw TypeError(".bilibili.app.dynamic.v2.ModuleBlocked.hintMessageOneLine: object expected");i.hintMessageOneLine=u.bilibili.app.dynamic.v2.OneLineText.fromObject(t.hintMessageOneLine)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.icon=null,n.bgImg=null,n.hintMessage="",n.actBtn=null,n.blockStyle=i.enums===String?"BLOCKED_STYLE_DEFAULT":0,n.subHintMessage="",n.videoBottomTextUpper=null,n.videoBottomTextLower=null,n.archiveTitle="",n.hintMessageOneLine=null),t.icon!=null&&t.hasOwnProperty("icon")&&(n.icon=u.bilibili.app.dynamic.v2.ImageSet.toObject(t.icon,i)),t.bgImg!=null&&t.hasOwnProperty("bgImg")&&(n.bgImg=u.bilibili.app.dynamic.v2.ImageSet.toObject(t.bgImg,i)),t.hintMessage!=null&&t.hasOwnProperty("hintMessage")&&(n.hintMessage=t.hintMessage),t.actBtn!=null&&t.hasOwnProperty("actBtn")&&(n.actBtn=u.bilibili.app.dynamic.v2.IconButton.toObject(t.actBtn,i)),t.blockStyle!=null&&t.hasOwnProperty("blockStyle")&&(n.blockStyle=i.enums===String?u.bilibili.app.dynamic.v2.MdlBlockedStyle[t.blockStyle]===void 0?t.blockStyle:u.bilibili.app.dynamic.v2.MdlBlockedStyle[t.blockStyle]:t.blockStyle),t.subHintMessage!=null&&t.hasOwnProperty("subHintMessage")&&(n.subHintMessage=t.subHintMessage),t.videoBottomTextUpper!=null&&t.hasOwnProperty("videoBottomTextUpper")&&(n.videoBottomTextUpper=u.bilibili.app.dynamic.v2.OneLineText.toObject(t.videoBottomTextUpper,i)),t.videoBottomTextLower!=null&&t.hasOwnProperty("videoBottomTextLower")&&(n.videoBottomTextLower=u.bilibili.app.dynamic.v2.OneLineText.toObject(t.videoBottomTextLower,i)),t.archiveTitle!=null&&t.hasOwnProperty("archiveTitle")&&(n.archiveTitle=t.archiveTitle),t.hintMessageOneLine!=null&&t.hasOwnProperty("hintMessageOneLine")&&(n.hintMessageOneLine=u.bilibili.app.dynamic.v2.OneLineText.toObject(t.hintMessageOneLine,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.ModuleBlocked"},e}(),c.MdlBlockedStyle=function(){let e={},l=Object.create(e);return l[e[0]="BLOCKED_STYLE_DEFAULT"]=0,l[e[1]="BLOCKED_STYLE_IN_AUDIT"]=1,l[e[2]="BLOCKED_STYLE_ONLY_FANS_LIST"]=2,l[e[3]="BLOCKED_STYLE_ONLY_FANS_VIDEO"]=3,l}(),c.ImageSet=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.imgDay=t.string();break}case 2:{o.imgDark=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.ImageSet)return t;let i=new u.bilibili.app.dynamic.v2.ImageSet;return t.imgDay!=null&&(i.imgDay=String(t.imgDay)),t.imgDark!=null&&(i.imgDark=String(t.imgDark)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.imgDay="",n.imgDark=""),t.imgDay!=null&&t.hasOwnProperty("imgDay")&&(n.imgDay=t.imgDay),t.imgDark!=null&&t.hasOwnProperty("imgDark")&&(n.imgDark=t.imgDark),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.ImageSet"},e}(),c.ModuleTextNotice=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.notice=u.bilibili.app.dynamic.v2.OneLineText.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.ModuleTextNotice)return t;let i=new u.bilibili.app.dynamic.v2.ModuleTextNotice;if(t.notice!=null){if(typeof t.notice!="object")throw TypeError(".bilibili.app.dynamic.v2.ModuleTextNotice.notice: object expected");i.notice=u.bilibili.app.dynamic.v2.OneLineText.fromObject(t.notice)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.notice=null),t.notice!=null&&t.hasOwnProperty("notice")&&(n.notice=u.bilibili.app.dynamic.v2.OneLineText.toObject(t.notice,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.ModuleTextNotice"},e}(),c.ModuleOnetimeNotice=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.uuid=t.string();break}case 2:{o.textNotice=u.bilibili.app.dynamic.v2.TextParagraph.decode(t,t.uint32());break}case 3:{o.jumpUri=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.ModuleOnetimeNotice)return t;let i=new u.bilibili.app.dynamic.v2.ModuleOnetimeNotice;if(t.uuid!=null&&(i.uuid=String(t.uuid)),t.textNotice!=null){if(typeof t.textNotice!="object")throw TypeError(".bilibili.app.dynamic.v2.ModuleOnetimeNotice.textNotice: object expected");i.textNotice=u.bilibili.app.dynamic.v2.TextParagraph.fromObject(t.textNotice)}return t.jumpUri!=null&&(i.jumpUri=String(t.jumpUri)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.uuid="",n.textNotice=null,n.jumpUri=""),t.uuid!=null&&t.hasOwnProperty("uuid")&&(n.uuid=t.uuid),t.textNotice!=null&&t.hasOwnProperty("textNotice")&&(n.textNotice=u.bilibili.app.dynamic.v2.TextParagraph.toObject(t.textNotice,i)),t.jumpUri!=null&&t.hasOwnProperty("jumpUri")&&(n.jumpUri=t.jumpUri),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.ModuleOnetimeNotice"},e}(),c.MdlDynArchive=function(){function e(l){if(this.badge=[],this.badgeCategory=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.cover=t.string();break}case 3:{o.uri=t.string();break}case 4:{o.coverLeftText_1=t.string();break}case 5:{o.coverLeftText_2=t.string();break}case 6:{o.coverLeftText_3=t.string();break}case 7:{o.avid=t.int64();break}case 8:{o.cid=t.int64();break}case 9:{o.mediaType=t.int32();break}case 10:{o.dimension=u.bilibili.app.dynamic.v2.Dimension.decode(t,t.uint32());break}case 11:{o.badge&&o.badge.length||(o.badge=[]),o.badge.push(u.bilibili.app.dynamic.v2.VideoBadge.decode(t,t.uint32()));break}case 12:{o.canPlay=t.bool();break}case 13:{o.stype=t.int32();break}case 14:{o.isPGC=t.bool();break}case 15:{o.inlineURL=t.string();break}case 16:{o.EpisodeId=t.int64();break}case 17:{o.SubType=t.int32();break}case 18:{o.PgcSeasonId=t.int64();break}case 19:{o.playIcon=t.string();break}case 20:{o.duration=t.int64();break}case 21:{o.jumpUrl=t.string();break}case 22:{o.isPreview=t.bool();break}case 23:{o.badgeCategory&&o.badgeCategory.length||(o.badgeCategory=[]),o.badgeCategory.push(u.bilibili.app.dynamic.v2.VideoBadge.decode(t,t.uint32()));break}case 24:{o.isFeature=t.bool();break}case 25:{o.reserveType=t.int32();break}case 26:{o.bvid=t.string();break}case 27:{o.view=t.int32();break}case 28:{o.showPremiereBadge=t.bool();break}case 29:{o.premiereCard=t.bool();break}case 30:{o.showProgress=t.bool();break}case 31:{o.partDuration=t.int64();break}case 32:{o.partProgress=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.MdlDynArchive)return t;let i=new u.bilibili.app.dynamic.v2.MdlDynArchive;switch(t.title!=null&&(i.title=String(t.title)),t.cover!=null&&(i.cover=String(t.cover)),t.uri!=null&&(i.uri=String(t.uri)),t.coverLeftText_1!=null&&(i.coverLeftText_1=String(t.coverLeftText_1)),t.coverLeftText_2!=null&&(i.coverLeftText_2=String(t.coverLeftText_2)),t.coverLeftText_3!=null&&(i.coverLeftText_3=String(t.coverLeftText_3)),t.avid!=null&&(r.Long?(i.avid=r.Long.fromValue(t.avid)).unsigned=!1:typeof t.avid=="string"?i.avid=parseInt(t.avid,10):typeof t.avid=="number"?i.avid=t.avid:typeof t.avid=="object"&&(i.avid=new r.LongBits(t.avid.low>>>0,t.avid.high>>>0).toNumber())),t.cid!=null&&(r.Long?(i.cid=r.Long.fromValue(t.cid)).unsigned=!1:typeof t.cid=="string"?i.cid=parseInt(t.cid,10):typeof t.cid=="number"?i.cid=t.cid:typeof t.cid=="object"&&(i.cid=new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber())),t.mediaType){default:if(typeof t.mediaType=="number"){i.mediaType=t.mediaType;break}break;case"MediaTypeNone":case 0:i.mediaType=0;break;case"MediaTypeUGC":case 1:i.mediaType=1;break;case"MediaTypePGC":case 2:i.mediaType=2;break;case"MediaTypeLive":case 3:i.mediaType=3;break;case"MediaTypeVCS":case 4:i.mediaType=4;break}if(t.dimension!=null){if(typeof t.dimension!="object")throw TypeError(".bilibili.app.dynamic.v2.MdlDynArchive.dimension: object expected");i.dimension=u.bilibili.app.dynamic.v2.Dimension.fromObject(t.dimension)}if(t.badge){if(!Array.isArray(t.badge))throw TypeError(".bilibili.app.dynamic.v2.MdlDynArchive.badge: array expected");i.badge=[];for(let n=0;n>>0,t.EpisodeId.high>>>0).toNumber())),t.SubType!=null&&(i.SubType=t.SubType|0),t.PgcSeasonId!=null&&(r.Long?(i.PgcSeasonId=r.Long.fromValue(t.PgcSeasonId)).unsigned=!1:typeof t.PgcSeasonId=="string"?i.PgcSeasonId=parseInt(t.PgcSeasonId,10):typeof t.PgcSeasonId=="number"?i.PgcSeasonId=t.PgcSeasonId:typeof t.PgcSeasonId=="object"&&(i.PgcSeasonId=new r.LongBits(t.PgcSeasonId.low>>>0,t.PgcSeasonId.high>>>0).toNumber())),t.playIcon!=null&&(i.playIcon=String(t.playIcon)),t.duration!=null&&(r.Long?(i.duration=r.Long.fromValue(t.duration)).unsigned=!1:typeof t.duration=="string"?i.duration=parseInt(t.duration,10):typeof t.duration=="number"?i.duration=t.duration:typeof t.duration=="object"&&(i.duration=new r.LongBits(t.duration.low>>>0,t.duration.high>>>0).toNumber())),t.jumpUrl!=null&&(i.jumpUrl=String(t.jumpUrl)),t.isPreview!=null&&(i.isPreview=!!t.isPreview),t.badgeCategory){if(!Array.isArray(t.badgeCategory))throw TypeError(".bilibili.app.dynamic.v2.MdlDynArchive.badgeCategory: array expected");i.badgeCategory=[];for(let n=0;n>>0,t.partDuration.high>>>0).toNumber())),t.partProgress!=null&&(r.Long?(i.partProgress=r.Long.fromValue(t.partProgress)).unsigned=!1:typeof t.partProgress=="string"?i.partProgress=parseInt(t.partProgress,10):typeof t.partProgress=="number"?i.partProgress=t.partProgress:typeof t.partProgress=="object"&&(i.partProgress=new r.LongBits(t.partProgress.low>>>0,t.partProgress.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if((i.arrays||i.defaults)&&(n.badge=[],n.badgeCategory=[]),i.defaults){if(n.title="",n.cover="",n.uri="",n.coverLeftText_1="",n.coverLeftText_2="",n.coverLeftText_3="",r.Long){let o=new r.Long(0,0,!1);n.avid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.avid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.cid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.cid=i.longs===String?"0":0;if(n.mediaType=i.enums===String?"MediaTypeNone":0,n.dimension=null,n.canPlay=!1,n.stype=i.enums===String?"video_type_general":0,n.isPGC=!1,n.inlineURL="",r.Long){let o=new r.Long(0,0,!1);n.EpisodeId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.EpisodeId=i.longs===String?"0":0;if(n.SubType=0,r.Long){let o=new r.Long(0,0,!1);n.PgcSeasonId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.PgcSeasonId=i.longs===String?"0":0;if(n.playIcon="",r.Long){let o=new r.Long(0,0,!1);n.duration=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.duration=i.longs===String?"0":0;if(n.jumpUrl="",n.isPreview=!1,n.isFeature=!1,n.reserveType=i.enums===String?"reserve_none":0,n.bvid="",n.view=0,n.showPremiereBadge=!1,n.premiereCard=!1,n.showProgress=!1,r.Long){let o=new r.Long(0,0,!1);n.partDuration=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.partDuration=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.partProgress=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.partProgress=i.longs===String?"0":0}if(t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.cover!=null&&t.hasOwnProperty("cover")&&(n.cover=t.cover),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),t.coverLeftText_1!=null&&t.hasOwnProperty("coverLeftText_1")&&(n.coverLeftText_1=t.coverLeftText_1),t.coverLeftText_2!=null&&t.hasOwnProperty("coverLeftText_2")&&(n.coverLeftText_2=t.coverLeftText_2),t.coverLeftText_3!=null&&t.hasOwnProperty("coverLeftText_3")&&(n.coverLeftText_3=t.coverLeftText_3),t.avid!=null&&t.hasOwnProperty("avid")&&(typeof t.avid=="number"?n.avid=i.longs===String?String(t.avid):t.avid:n.avid=i.longs===String?r.Long.prototype.toString.call(t.avid):i.longs===Number?new r.LongBits(t.avid.low>>>0,t.avid.high>>>0).toNumber():t.avid),t.cid!=null&&t.hasOwnProperty("cid")&&(typeof t.cid=="number"?n.cid=i.longs===String?String(t.cid):t.cid:n.cid=i.longs===String?r.Long.prototype.toString.call(t.cid):i.longs===Number?new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber():t.cid),t.mediaType!=null&&t.hasOwnProperty("mediaType")&&(n.mediaType=i.enums===String?u.bilibili.app.dynamic.v2.MediaType[t.mediaType]===void 0?t.mediaType:u.bilibili.app.dynamic.v2.MediaType[t.mediaType]:t.mediaType),t.dimension!=null&&t.hasOwnProperty("dimension")&&(n.dimension=u.bilibili.app.dynamic.v2.Dimension.toObject(t.dimension,i)),t.badge&&t.badge.length){n.badge=[];for(let o=0;o>>0,t.EpisodeId.high>>>0).toNumber():t.EpisodeId),t.SubType!=null&&t.hasOwnProperty("SubType")&&(n.SubType=t.SubType),t.PgcSeasonId!=null&&t.hasOwnProperty("PgcSeasonId")&&(typeof t.PgcSeasonId=="number"?n.PgcSeasonId=i.longs===String?String(t.PgcSeasonId):t.PgcSeasonId:n.PgcSeasonId=i.longs===String?r.Long.prototype.toString.call(t.PgcSeasonId):i.longs===Number?new r.LongBits(t.PgcSeasonId.low>>>0,t.PgcSeasonId.high>>>0).toNumber():t.PgcSeasonId),t.playIcon!=null&&t.hasOwnProperty("playIcon")&&(n.playIcon=t.playIcon),t.duration!=null&&t.hasOwnProperty("duration")&&(typeof t.duration=="number"?n.duration=i.longs===String?String(t.duration):t.duration:n.duration=i.longs===String?r.Long.prototype.toString.call(t.duration):i.longs===Number?new r.LongBits(t.duration.low>>>0,t.duration.high>>>0).toNumber():t.duration),t.jumpUrl!=null&&t.hasOwnProperty("jumpUrl")&&(n.jumpUrl=t.jumpUrl),t.isPreview!=null&&t.hasOwnProperty("isPreview")&&(n.isPreview=t.isPreview),t.badgeCategory&&t.badgeCategory.length){n.badgeCategory=[];for(let o=0;o>>0,t.partDuration.high>>>0).toNumber():t.partDuration),t.partProgress!=null&&t.hasOwnProperty("partProgress")&&(typeof t.partProgress=="number"?n.partProgress=i.longs===String?String(t.partProgress):t.partProgress:n.partProgress=i.longs===String?r.Long.prototype.toString.call(t.partProgress):i.longs===Number?new r.LongBits(t.partProgress.low>>>0,t.partProgress.high>>>0).toNumber():t.partProgress),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.MdlDynArchive"},e}(),c.MediaType=function(){let e={},l=Object.create(e);return l[e[0]="MediaTypeNone"]=0,l[e[1]="MediaTypeUGC"]=1,l[e[2]="MediaTypePGC"]=2,l[e[3]="MediaTypeLive"]=3,l[e[4]="MediaTypeVCS"]=4,l}(),c.ReserveType=function(){let e={},l=Object.create(e);return l[e[0]="reserve_none"]=0,l[e[1]="reserve_recall"]=1,l}(),c.Dimension=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.height=t.int64();break}case 2:{o.width=t.int64();break}case 3:{o.rotate=t.int64();break}case 4:{o.forceHorizontal=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.Dimension)return t;let i=new u.bilibili.app.dynamic.v2.Dimension;return t.height!=null&&(r.Long?(i.height=r.Long.fromValue(t.height)).unsigned=!1:typeof t.height=="string"?i.height=parseInt(t.height,10):typeof t.height=="number"?i.height=t.height:typeof t.height=="object"&&(i.height=new r.LongBits(t.height.low>>>0,t.height.high>>>0).toNumber())),t.width!=null&&(r.Long?(i.width=r.Long.fromValue(t.width)).unsigned=!1:typeof t.width=="string"?i.width=parseInt(t.width,10):typeof t.width=="number"?i.width=t.width:typeof t.width=="object"&&(i.width=new r.LongBits(t.width.low>>>0,t.width.high>>>0).toNumber())),t.rotate!=null&&(r.Long?(i.rotate=r.Long.fromValue(t.rotate)).unsigned=!1:typeof t.rotate=="string"?i.rotate=parseInt(t.rotate,10):typeof t.rotate=="number"?i.rotate=t.rotate:typeof t.rotate=="object"&&(i.rotate=new r.LongBits(t.rotate.low>>>0,t.rotate.high>>>0).toNumber())),t.forceHorizontal!=null&&(i.forceHorizontal=!!t.forceHorizontal),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.height=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.height=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.width=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.width=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.rotate=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.rotate=i.longs===String?"0":0;n.forceHorizontal=!1}return t.height!=null&&t.hasOwnProperty("height")&&(typeof t.height=="number"?n.height=i.longs===String?String(t.height):t.height:n.height=i.longs===String?r.Long.prototype.toString.call(t.height):i.longs===Number?new r.LongBits(t.height.low>>>0,t.height.high>>>0).toNumber():t.height),t.width!=null&&t.hasOwnProperty("width")&&(typeof t.width=="number"?n.width=i.longs===String?String(t.width):t.width:n.width=i.longs===String?r.Long.prototype.toString.call(t.width):i.longs===Number?new r.LongBits(t.width.low>>>0,t.width.high>>>0).toNumber():t.width),t.rotate!=null&&t.hasOwnProperty("rotate")&&(typeof t.rotate=="number"?n.rotate=i.longs===String?String(t.rotate):t.rotate:n.rotate=i.longs===String?r.Long.prototype.toString.call(t.rotate):i.longs===Number?new r.LongBits(t.rotate.low>>>0,t.rotate.high>>>0).toNumber():t.rotate),t.forceHorizontal!=null&&t.hasOwnProperty("forceHorizontal")&&(n.forceHorizontal=t.forceHorizontal),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.Dimension"},e}(),c.VideoBadge=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.text=t.string();break}case 2:{o.textColor=t.string();break}case 3:{o.textColorNight=t.string();break}case 4:{o.bgColor=t.string();break}case 5:{o.bgColorNight=t.string();break}case 6:{o.borderColor=t.string();break}case 7:{o.borderColorNight=t.string();break}case 8:{o.bgStyle=t.int32();break}case 9:{o.bgAlpha=t.int32();break}case 10:{o.bgAlphaNight=t.int32();break}case 11:{o.headIcon=t.string();break}case 12:{o.headIconLocal=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.VideoBadge)return t;let i=new u.bilibili.app.dynamic.v2.VideoBadge;switch(t.text!=null&&(i.text=String(t.text)),t.textColor!=null&&(i.textColor=String(t.textColor)),t.textColorNight!=null&&(i.textColorNight=String(t.textColorNight)),t.bgColor!=null&&(i.bgColor=String(t.bgColor)),t.bgColorNight!=null&&(i.bgColorNight=String(t.bgColorNight)),t.borderColor!=null&&(i.borderColor=String(t.borderColor)),t.borderColorNight!=null&&(i.borderColorNight=String(t.borderColorNight)),t.bgStyle!=null&&(i.bgStyle=t.bgStyle|0),t.bgAlpha!=null&&(i.bgAlpha=t.bgAlpha|0),t.bgAlphaNight!=null&&(i.bgAlphaNight=t.bgAlphaNight|0),t.headIcon!=null&&(i.headIcon=String(t.headIcon)),t.headIconLocal){default:if(typeof t.headIconLocal=="number"){i.headIconLocal=t.headIconLocal;break}break;case"ICON_RES_LOCAL_NONE":case 0:i.headIconLocal=0;break;case"ICON_RES_LOCAL_LIVE":case 1:i.headIconLocal=1;break}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.text="",n.textColor="",n.textColorNight="",n.bgColor="",n.bgColorNight="",n.borderColor="",n.borderColorNight="",n.bgStyle=0,n.bgAlpha=0,n.bgAlphaNight=0,n.headIcon="",n.headIconLocal=i.enums===String?"ICON_RES_LOCAL_NONE":0),t.text!=null&&t.hasOwnProperty("text")&&(n.text=t.text),t.textColor!=null&&t.hasOwnProperty("textColor")&&(n.textColor=t.textColor),t.textColorNight!=null&&t.hasOwnProperty("textColorNight")&&(n.textColorNight=t.textColorNight),t.bgColor!=null&&t.hasOwnProperty("bgColor")&&(n.bgColor=t.bgColor),t.bgColorNight!=null&&t.hasOwnProperty("bgColorNight")&&(n.bgColorNight=t.bgColorNight),t.borderColor!=null&&t.hasOwnProperty("borderColor")&&(n.borderColor=t.borderColor),t.borderColorNight!=null&&t.hasOwnProperty("borderColorNight")&&(n.borderColorNight=t.borderColorNight),t.bgStyle!=null&&t.hasOwnProperty("bgStyle")&&(n.bgStyle=t.bgStyle),t.bgAlpha!=null&&t.hasOwnProperty("bgAlpha")&&(n.bgAlpha=t.bgAlpha),t.bgAlphaNight!=null&&t.hasOwnProperty("bgAlphaNight")&&(n.bgAlphaNight=t.bgAlphaNight),t.headIcon!=null&&t.hasOwnProperty("headIcon")&&(n.headIcon=t.headIcon),t.headIconLocal!=null&&t.hasOwnProperty("headIconLocal")&&(n.headIconLocal=i.enums===String?u.bilibili.app.dynamic.v2.IconResLocal[t.headIconLocal]===void 0?t.headIconLocal:u.bilibili.app.dynamic.v2.IconResLocal[t.headIconLocal]:t.headIconLocal),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.VideoBadge"},e}(),c.IconResLocal=function(){let e={},l=Object.create(e);return l[e[0]="ICON_RES_LOCAL_NONE"]=0,l[e[1]="ICON_RES_LOCAL_LIVE"]=1,l}(),c.VideoType=function(){let e={},l=Object.create(e);return l[e[0]="video_type_general"]=0,l[e[1]="video_type_dynamic"]=1,l[e[2]="video_type_playback"]=2,l[e[3]="video_type_story"]=3,l}(),c.MdlDynPGC=function(){function e(l){if(this.badge=[],this.badgeCategory=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.cover=t.string();break}case 3:{o.uri=t.string();break}case 4:{o.coverLeftText_1=t.string();break}case 5:{o.coverLeftText_2=t.string();break}case 6:{o.coverLeftText_3=t.string();break}case 7:{o.cid=t.int64();break}case 8:{o.seasonId=t.int64();break}case 9:{o.epid=t.int64();break}case 10:{o.aid=t.int64();break}case 11:{o.mediaType=t.int32();break}case 12:{o.subType=t.int32();break}case 13:{o.isPreview=t.bool();break}case 14:{o.dimension=u.bilibili.app.dynamic.v2.Dimension.decode(t,t.uint32());break}case 15:{o.badge&&o.badge.length||(o.badge=[]),o.badge.push(u.bilibili.app.dynamic.v2.VideoBadge.decode(t,t.uint32()));break}case 16:{o.canPlay=t.bool();break}case 17:{o.season=u.bilibili.app.dynamic.v2.PGCSeason.decode(t,t.uint32());break}case 18:{o.playIcon=t.string();break}case 19:{o.duration=t.int64();break}case 20:{o.jumpUrl=t.string();break}case 21:{o.badgeCategory&&o.badgeCategory.length||(o.badgeCategory=[]),o.badgeCategory.push(u.bilibili.app.dynamic.v2.VideoBadge.decode(t,t.uint32()));break}case 22:{o.isFeature=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.MdlDynPGC)return t;let i=new u.bilibili.app.dynamic.v2.MdlDynPGC;switch(t.title!=null&&(i.title=String(t.title)),t.cover!=null&&(i.cover=String(t.cover)),t.uri!=null&&(i.uri=String(t.uri)),t.coverLeftText_1!=null&&(i.coverLeftText_1=String(t.coverLeftText_1)),t.coverLeftText_2!=null&&(i.coverLeftText_2=String(t.coverLeftText_2)),t.coverLeftText_3!=null&&(i.coverLeftText_3=String(t.coverLeftText_3)),t.cid!=null&&(r.Long?(i.cid=r.Long.fromValue(t.cid)).unsigned=!1:typeof t.cid=="string"?i.cid=parseInt(t.cid,10):typeof t.cid=="number"?i.cid=t.cid:typeof t.cid=="object"&&(i.cid=new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber())),t.seasonId!=null&&(r.Long?(i.seasonId=r.Long.fromValue(t.seasonId)).unsigned=!1:typeof t.seasonId=="string"?i.seasonId=parseInt(t.seasonId,10):typeof t.seasonId=="number"?i.seasonId=t.seasonId:typeof t.seasonId=="object"&&(i.seasonId=new r.LongBits(t.seasonId.low>>>0,t.seasonId.high>>>0).toNumber())),t.epid!=null&&(r.Long?(i.epid=r.Long.fromValue(t.epid)).unsigned=!1:typeof t.epid=="string"?i.epid=parseInt(t.epid,10):typeof t.epid=="number"?i.epid=t.epid:typeof t.epid=="object"&&(i.epid=new r.LongBits(t.epid.low>>>0,t.epid.high>>>0).toNumber())),t.aid!=null&&(r.Long?(i.aid=r.Long.fromValue(t.aid)).unsigned=!1:typeof t.aid=="string"?i.aid=parseInt(t.aid,10):typeof t.aid=="number"?i.aid=t.aid:typeof t.aid=="object"&&(i.aid=new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber())),t.mediaType){default:if(typeof t.mediaType=="number"){i.mediaType=t.mediaType;break}break;case"MediaTypeNone":case 0:i.mediaType=0;break;case"MediaTypeUGC":case 1:i.mediaType=1;break;case"MediaTypePGC":case 2:i.mediaType=2;break;case"MediaTypeLive":case 3:i.mediaType=3;break;case"MediaTypeVCS":case 4:i.mediaType=4;break}switch(t.subType){default:if(typeof t.subType=="number"){i.subType=t.subType;break}break;case"VideoSubTypeNone":case 0:i.subType=0;break;case"VideoSubTypeBangumi":case 1:i.subType=1;break;case"VideoSubTypeMovie":case 2:i.subType=2;break;case"VideoSubTypeDocumentary":case 3:i.subType=3;break;case"VideoSubTypeDomestic":case 4:i.subType=4;break;case"VideoSubTypeTeleplay":case 5:i.subType=5;break}if(t.isPreview!=null&&(i.isPreview=!!t.isPreview),t.dimension!=null){if(typeof t.dimension!="object")throw TypeError(".bilibili.app.dynamic.v2.MdlDynPGC.dimension: object expected");i.dimension=u.bilibili.app.dynamic.v2.Dimension.fromObject(t.dimension)}if(t.badge){if(!Array.isArray(t.badge))throw TypeError(".bilibili.app.dynamic.v2.MdlDynPGC.badge: array expected");i.badge=[];for(let n=0;n>>0,t.duration.high>>>0).toNumber())),t.jumpUrl!=null&&(i.jumpUrl=String(t.jumpUrl)),t.badgeCategory){if(!Array.isArray(t.badgeCategory))throw TypeError(".bilibili.app.dynamic.v2.MdlDynPGC.badgeCategory: array expected");i.badgeCategory=[];for(let n=0;n>>0,t.cid.high>>>0).toNumber():t.cid),t.seasonId!=null&&t.hasOwnProperty("seasonId")&&(typeof t.seasonId=="number"?n.seasonId=i.longs===String?String(t.seasonId):t.seasonId:n.seasonId=i.longs===String?r.Long.prototype.toString.call(t.seasonId):i.longs===Number?new r.LongBits(t.seasonId.low>>>0,t.seasonId.high>>>0).toNumber():t.seasonId),t.epid!=null&&t.hasOwnProperty("epid")&&(typeof t.epid=="number"?n.epid=i.longs===String?String(t.epid):t.epid:n.epid=i.longs===String?r.Long.prototype.toString.call(t.epid):i.longs===Number?new r.LongBits(t.epid.low>>>0,t.epid.high>>>0).toNumber():t.epid),t.aid!=null&&t.hasOwnProperty("aid")&&(typeof t.aid=="number"?n.aid=i.longs===String?String(t.aid):t.aid:n.aid=i.longs===String?r.Long.prototype.toString.call(t.aid):i.longs===Number?new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber():t.aid),t.mediaType!=null&&t.hasOwnProperty("mediaType")&&(n.mediaType=i.enums===String?u.bilibili.app.dynamic.v2.MediaType[t.mediaType]===void 0?t.mediaType:u.bilibili.app.dynamic.v2.MediaType[t.mediaType]:t.mediaType),t.subType!=null&&t.hasOwnProperty("subType")&&(n.subType=i.enums===String?u.bilibili.app.dynamic.v2.VideoSubType[t.subType]===void 0?t.subType:u.bilibili.app.dynamic.v2.VideoSubType[t.subType]:t.subType),t.isPreview!=null&&t.hasOwnProperty("isPreview")&&(n.isPreview=t.isPreview),t.dimension!=null&&t.hasOwnProperty("dimension")&&(n.dimension=u.bilibili.app.dynamic.v2.Dimension.toObject(t.dimension,i)),t.badge&&t.badge.length){n.badge=[];for(let o=0;o>>0,t.duration.high>>>0).toNumber():t.duration),t.jumpUrl!=null&&t.hasOwnProperty("jumpUrl")&&(n.jumpUrl=t.jumpUrl),t.badgeCategory&&t.badgeCategory.length){n.badgeCategory=[];for(let o=0;o>>3){case 1:{o.isFinish=t.int32();break}case 2:{o.title=t.string();break}case 3:{o.type=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.PGCSeason)return t;let i=new u.bilibili.app.dynamic.v2.PGCSeason;return t.isFinish!=null&&(i.isFinish=t.isFinish|0),t.title!=null&&(i.title=String(t.title)),t.type!=null&&(i.type=t.type|0),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.isFinish=0,n.title="",n.type=0),t.isFinish!=null&&t.hasOwnProperty("isFinish")&&(n.isFinish=t.isFinish),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.type!=null&&t.hasOwnProperty("type")&&(n.type=t.type),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.PGCSeason"},e}(),c.MdlDynCourSeason=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.cover=t.string();break}case 3:{o.uri=t.string();break}case 4:{o.text_1=t.string();break}case 5:{o.desc=t.string();break}case 6:{o.badge=u.bilibili.app.dynamic.v2.VideoBadge.decode(t,t.uint32());break}case 7:{o.playIcon=t.string();break}case 8:{o.canPlay=t.bool();break}case 9:{o.isPreview=t.bool();break}case 10:{o.avid=t.int64();break}case 11:{o.cid=t.int64();break}case 12:{o.epid=t.int64();break}case 13:{o.duration=t.int64();break}case 14:{o.seasonId=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.MdlDynCourSeason)return t;let i=new u.bilibili.app.dynamic.v2.MdlDynCourSeason;if(t.title!=null&&(i.title=String(t.title)),t.cover!=null&&(i.cover=String(t.cover)),t.uri!=null&&(i.uri=String(t.uri)),t.text_1!=null&&(i.text_1=String(t.text_1)),t.desc!=null&&(i.desc=String(t.desc)),t.badge!=null){if(typeof t.badge!="object")throw TypeError(".bilibili.app.dynamic.v2.MdlDynCourSeason.badge: object expected");i.badge=u.bilibili.app.dynamic.v2.VideoBadge.fromObject(t.badge)}return t.playIcon!=null&&(i.playIcon=String(t.playIcon)),t.canPlay!=null&&(i.canPlay=!!t.canPlay),t.isPreview!=null&&(i.isPreview=!!t.isPreview),t.avid!=null&&(r.Long?(i.avid=r.Long.fromValue(t.avid)).unsigned=!1:typeof t.avid=="string"?i.avid=parseInt(t.avid,10):typeof t.avid=="number"?i.avid=t.avid:typeof t.avid=="object"&&(i.avid=new r.LongBits(t.avid.low>>>0,t.avid.high>>>0).toNumber())),t.cid!=null&&(r.Long?(i.cid=r.Long.fromValue(t.cid)).unsigned=!1:typeof t.cid=="string"?i.cid=parseInt(t.cid,10):typeof t.cid=="number"?i.cid=t.cid:typeof t.cid=="object"&&(i.cid=new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber())),t.epid!=null&&(r.Long?(i.epid=r.Long.fromValue(t.epid)).unsigned=!1:typeof t.epid=="string"?i.epid=parseInt(t.epid,10):typeof t.epid=="number"?i.epid=t.epid:typeof t.epid=="object"&&(i.epid=new r.LongBits(t.epid.low>>>0,t.epid.high>>>0).toNumber())),t.duration!=null&&(r.Long?(i.duration=r.Long.fromValue(t.duration)).unsigned=!1:typeof t.duration=="string"?i.duration=parseInt(t.duration,10):typeof t.duration=="number"?i.duration=t.duration:typeof t.duration=="object"&&(i.duration=new r.LongBits(t.duration.low>>>0,t.duration.high>>>0).toNumber())),t.seasonId!=null&&(r.Long?(i.seasonId=r.Long.fromValue(t.seasonId)).unsigned=!1:typeof t.seasonId=="string"?i.seasonId=parseInt(t.seasonId,10):typeof t.seasonId=="number"?i.seasonId=t.seasonId:typeof t.seasonId=="object"&&(i.seasonId=new r.LongBits(t.seasonId.low>>>0,t.seasonId.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.title="",n.cover="",n.uri="",n.text_1="",n.desc="",n.badge=null,n.playIcon="",n.canPlay=!1,n.isPreview=!1,r.Long){let o=new r.Long(0,0,!1);n.avid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.avid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.cid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.cid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.epid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.epid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.duration=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.duration=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.seasonId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.seasonId=i.longs===String?"0":0}return t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.cover!=null&&t.hasOwnProperty("cover")&&(n.cover=t.cover),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),t.text_1!=null&&t.hasOwnProperty("text_1")&&(n.text_1=t.text_1),t.desc!=null&&t.hasOwnProperty("desc")&&(n.desc=t.desc),t.badge!=null&&t.hasOwnProperty("badge")&&(n.badge=u.bilibili.app.dynamic.v2.VideoBadge.toObject(t.badge,i)),t.playIcon!=null&&t.hasOwnProperty("playIcon")&&(n.playIcon=t.playIcon),t.canPlay!=null&&t.hasOwnProperty("canPlay")&&(n.canPlay=t.canPlay),t.isPreview!=null&&t.hasOwnProperty("isPreview")&&(n.isPreview=t.isPreview),t.avid!=null&&t.hasOwnProperty("avid")&&(typeof t.avid=="number"?n.avid=i.longs===String?String(t.avid):t.avid:n.avid=i.longs===String?r.Long.prototype.toString.call(t.avid):i.longs===Number?new r.LongBits(t.avid.low>>>0,t.avid.high>>>0).toNumber():t.avid),t.cid!=null&&t.hasOwnProperty("cid")&&(typeof t.cid=="number"?n.cid=i.longs===String?String(t.cid):t.cid:n.cid=i.longs===String?r.Long.prototype.toString.call(t.cid):i.longs===Number?new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber():t.cid),t.epid!=null&&t.hasOwnProperty("epid")&&(typeof t.epid=="number"?n.epid=i.longs===String?String(t.epid):t.epid:n.epid=i.longs===String?r.Long.prototype.toString.call(t.epid):i.longs===Number?new r.LongBits(t.epid.low>>>0,t.epid.high>>>0).toNumber():t.epid),t.duration!=null&&t.hasOwnProperty("duration")&&(typeof t.duration=="number"?n.duration=i.longs===String?String(t.duration):t.duration:n.duration=i.longs===String?r.Long.prototype.toString.call(t.duration):i.longs===Number?new r.LongBits(t.duration.low>>>0,t.duration.high>>>0).toNumber():t.duration),t.seasonId!=null&&t.hasOwnProperty("seasonId")&&(typeof t.seasonId=="number"?n.seasonId=i.longs===String?String(t.seasonId):t.seasonId:n.seasonId=i.longs===String?r.Long.prototype.toString.call(t.seasonId):i.longs===Number?new r.LongBits(t.seasonId.low>>>0,t.seasonId.high>>>0).toNumber():t.seasonId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.MdlDynCourSeason"},e}(),c.MdlDynCourBatch=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.cover=t.string();break}case 3:{o.uri=t.string();break}case 4:{o.text_1=t.string();break}case 5:{o.text_2=t.string();break}case 6:{o.badge=u.bilibili.app.dynamic.v2.VideoBadge.decode(t,t.uint32());break}case 7:{o.playIcon=t.string();break}case 8:{o.canPlay=t.bool();break}case 9:{o.isPreview=t.bool();break}case 10:{o.coverLeftText_1=t.string();break}case 11:{o.coverLeftText_2=t.string();break}case 12:{o.coverLeftText_3=t.string();break}case 13:{o.avid=t.int64();break}case 14:{o.cid=t.int64();break}case 15:{o.epid=t.int64();break}case 16:{o.duration=t.int64();break}case 17:{o.seasonId=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.MdlDynCourBatch)return t;let i=new u.bilibili.app.dynamic.v2.MdlDynCourBatch;if(t.title!=null&&(i.title=String(t.title)),t.cover!=null&&(i.cover=String(t.cover)),t.uri!=null&&(i.uri=String(t.uri)),t.text_1!=null&&(i.text_1=String(t.text_1)),t.text_2!=null&&(i.text_2=String(t.text_2)),t.badge!=null){if(typeof t.badge!="object")throw TypeError(".bilibili.app.dynamic.v2.MdlDynCourBatch.badge: object expected");i.badge=u.bilibili.app.dynamic.v2.VideoBadge.fromObject(t.badge)}return t.playIcon!=null&&(i.playIcon=String(t.playIcon)),t.canPlay!=null&&(i.canPlay=!!t.canPlay),t.isPreview!=null&&(i.isPreview=!!t.isPreview),t.coverLeftText_1!=null&&(i.coverLeftText_1=String(t.coverLeftText_1)),t.coverLeftText_2!=null&&(i.coverLeftText_2=String(t.coverLeftText_2)),t.coverLeftText_3!=null&&(i.coverLeftText_3=String(t.coverLeftText_3)),t.avid!=null&&(r.Long?(i.avid=r.Long.fromValue(t.avid)).unsigned=!1:typeof t.avid=="string"?i.avid=parseInt(t.avid,10):typeof t.avid=="number"?i.avid=t.avid:typeof t.avid=="object"&&(i.avid=new r.LongBits(t.avid.low>>>0,t.avid.high>>>0).toNumber())),t.cid!=null&&(r.Long?(i.cid=r.Long.fromValue(t.cid)).unsigned=!1:typeof t.cid=="string"?i.cid=parseInt(t.cid,10):typeof t.cid=="number"?i.cid=t.cid:typeof t.cid=="object"&&(i.cid=new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber())),t.epid!=null&&(r.Long?(i.epid=r.Long.fromValue(t.epid)).unsigned=!1:typeof t.epid=="string"?i.epid=parseInt(t.epid,10):typeof t.epid=="number"?i.epid=t.epid:typeof t.epid=="object"&&(i.epid=new r.LongBits(t.epid.low>>>0,t.epid.high>>>0).toNumber())),t.duration!=null&&(r.Long?(i.duration=r.Long.fromValue(t.duration)).unsigned=!1:typeof t.duration=="string"?i.duration=parseInt(t.duration,10):typeof t.duration=="number"?i.duration=t.duration:typeof t.duration=="object"&&(i.duration=new r.LongBits(t.duration.low>>>0,t.duration.high>>>0).toNumber())),t.seasonId!=null&&(r.Long?(i.seasonId=r.Long.fromValue(t.seasonId)).unsigned=!1:typeof t.seasonId=="string"?i.seasonId=parseInt(t.seasonId,10):typeof t.seasonId=="number"?i.seasonId=t.seasonId:typeof t.seasonId=="object"&&(i.seasonId=new r.LongBits(t.seasonId.low>>>0,t.seasonId.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.title="",n.cover="",n.uri="",n.text_1="",n.text_2="",n.badge=null,n.playIcon="",n.canPlay=!1,n.isPreview=!1,n.coverLeftText_1="",n.coverLeftText_2="",n.coverLeftText_3="",r.Long){let o=new r.Long(0,0,!1);n.avid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.avid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.cid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.cid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.epid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.epid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.duration=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.duration=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.seasonId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.seasonId=i.longs===String?"0":0}return t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.cover!=null&&t.hasOwnProperty("cover")&&(n.cover=t.cover),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),t.text_1!=null&&t.hasOwnProperty("text_1")&&(n.text_1=t.text_1),t.text_2!=null&&t.hasOwnProperty("text_2")&&(n.text_2=t.text_2),t.badge!=null&&t.hasOwnProperty("badge")&&(n.badge=u.bilibili.app.dynamic.v2.VideoBadge.toObject(t.badge,i)),t.playIcon!=null&&t.hasOwnProperty("playIcon")&&(n.playIcon=t.playIcon),t.canPlay!=null&&t.hasOwnProperty("canPlay")&&(n.canPlay=t.canPlay),t.isPreview!=null&&t.hasOwnProperty("isPreview")&&(n.isPreview=t.isPreview),t.coverLeftText_1!=null&&t.hasOwnProperty("coverLeftText_1")&&(n.coverLeftText_1=t.coverLeftText_1),t.coverLeftText_2!=null&&t.hasOwnProperty("coverLeftText_2")&&(n.coverLeftText_2=t.coverLeftText_2),t.coverLeftText_3!=null&&t.hasOwnProperty("coverLeftText_3")&&(n.coverLeftText_3=t.coverLeftText_3),t.avid!=null&&t.hasOwnProperty("avid")&&(typeof t.avid=="number"?n.avid=i.longs===String?String(t.avid):t.avid:n.avid=i.longs===String?r.Long.prototype.toString.call(t.avid):i.longs===Number?new r.LongBits(t.avid.low>>>0,t.avid.high>>>0).toNumber():t.avid),t.cid!=null&&t.hasOwnProperty("cid")&&(typeof t.cid=="number"?n.cid=i.longs===String?String(t.cid):t.cid:n.cid=i.longs===String?r.Long.prototype.toString.call(t.cid):i.longs===Number?new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber():t.cid),t.epid!=null&&t.hasOwnProperty("epid")&&(typeof t.epid=="number"?n.epid=i.longs===String?String(t.epid):t.epid:n.epid=i.longs===String?r.Long.prototype.toString.call(t.epid):i.longs===Number?new r.LongBits(t.epid.low>>>0,t.epid.high>>>0).toNumber():t.epid),t.duration!=null&&t.hasOwnProperty("duration")&&(typeof t.duration=="number"?n.duration=i.longs===String?String(t.duration):t.duration:n.duration=i.longs===String?r.Long.prototype.toString.call(t.duration):i.longs===Number?new r.LongBits(t.duration.low>>>0,t.duration.high>>>0).toNumber():t.duration),t.seasonId!=null&&t.hasOwnProperty("seasonId")&&(typeof t.seasonId=="number"?n.seasonId=i.longs===String?String(t.seasonId):t.seasonId:n.seasonId=i.longs===String?r.Long.prototype.toString.call(t.seasonId):i.longs===Number?new r.LongBits(t.seasonId.low>>>0,t.seasonId.high>>>0).toNumber():t.seasonId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.MdlDynCourBatch"},e}(),c.MdlDynDraw=function(){function e(l){if(this.items=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.items&&o.items.length||(o.items=[]),o.items.push(u.bilibili.app.dynamic.v2.MdlDynDrawItem.decode(t,t.uint32()));break}case 2:{o.uri=t.string();break}case 3:{o.id=t.int64();break}case 4:{o.isDrawFirst=t.bool();break}case 5:{o.isBigCover=t.bool();break}case 6:{o.isArticleCover=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.MdlDynDraw)return t;let i=new u.bilibili.app.dynamic.v2.MdlDynDraw;if(t.items){if(!Array.isArray(t.items))throw TypeError(".bilibili.app.dynamic.v2.MdlDynDraw.items: array expected");i.items=[];for(let n=0;n>>0,t.id.high>>>0).toNumber())),t.isDrawFirst!=null&&(i.isDrawFirst=!!t.isDrawFirst),t.isBigCover!=null&&(i.isBigCover=!!t.isBigCover),t.isArticleCover!=null&&(i.isArticleCover=!!t.isArticleCover),i},e.toObject=function(t,i){i||(i={});let n={};if((i.arrays||i.defaults)&&(n.items=[]),i.defaults){if(n.uri="",r.Long){let o=new r.Long(0,0,!1);n.id=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.id=i.longs===String?"0":0;n.isDrawFirst=!1,n.isBigCover=!1,n.isArticleCover=!1}if(t.items&&t.items.length){n.items=[];for(let o=0;o>>0,t.id.high>>>0).toNumber():t.id),t.isDrawFirst!=null&&t.hasOwnProperty("isDrawFirst")&&(n.isDrawFirst=t.isDrawFirst),t.isBigCover!=null&&t.hasOwnProperty("isBigCover")&&(n.isBigCover=t.isBigCover),t.isArticleCover!=null&&t.hasOwnProperty("isArticleCover")&&(n.isArticleCover=t.isArticleCover),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.MdlDynDraw"},e}(),c.MdlDynDrawItem=function(){function e(l){if(this.tags=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.src=t.string();break}case 2:{o.width=t.int64();break}case 3:{o.height=t.int64();break}case 4:{o.size=t.float();break}case 5:{o.tags&&o.tags.length||(o.tags=[]),o.tags.push(u.bilibili.app.dynamic.v2.MdlDynDrawTag.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.MdlDynDrawItem)return t;let i=new u.bilibili.app.dynamic.v2.MdlDynDrawItem;if(t.src!=null&&(i.src=String(t.src)),t.width!=null&&(r.Long?(i.width=r.Long.fromValue(t.width)).unsigned=!1:typeof t.width=="string"?i.width=parseInt(t.width,10):typeof t.width=="number"?i.width=t.width:typeof t.width=="object"&&(i.width=new r.LongBits(t.width.low>>>0,t.width.high>>>0).toNumber())),t.height!=null&&(r.Long?(i.height=r.Long.fromValue(t.height)).unsigned=!1:typeof t.height=="string"?i.height=parseInt(t.height,10):typeof t.height=="number"?i.height=t.height:typeof t.height=="object"&&(i.height=new r.LongBits(t.height.low>>>0,t.height.high>>>0).toNumber())),t.size!=null&&(i.size=Number(t.size)),t.tags){if(!Array.isArray(t.tags))throw TypeError(".bilibili.app.dynamic.v2.MdlDynDrawItem.tags: array expected");i.tags=[];for(let n=0;n>>0,t.width.high>>>0).toNumber():t.width),t.height!=null&&t.hasOwnProperty("height")&&(typeof t.height=="number"?n.height=i.longs===String?String(t.height):t.height:n.height=i.longs===String?r.Long.prototype.toString.call(t.height):i.longs===Number?new r.LongBits(t.height.low>>>0,t.height.high>>>0).toNumber():t.height),t.size!=null&&t.hasOwnProperty("size")&&(n.size=i.json&&!isFinite(t.size)?String(t.size):t.size),t.tags&&t.tags.length){n.tags=[];for(let o=0;o>>3){case 1:{o.type=t.int32();break}case 2:{o.item=u.bilibili.app.dynamic.v2.MdlDynDrawTagItem.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.MdlDynDrawTag)return t;let i=new u.bilibili.app.dynamic.v2.MdlDynDrawTag;switch(t.type){default:if(typeof t.type=="number"){i.type=t.type;break}break;case"mdl_draw_tag_none":case 0:i.type=0;break;case"mdl_draw_tag_common":case 1:i.type=1;break;case"mdl_draw_tag_goods":case 2:i.type=2;break;case"mdl_draw_tag_user":case 3:i.type=3;break;case"mdl_draw_tag_topic":case 4:i.type=4;break;case"mdl_draw_tag_lbs":case 5:i.type=5;break}if(t.item!=null){if(typeof t.item!="object")throw TypeError(".bilibili.app.dynamic.v2.MdlDynDrawTag.item: object expected");i.item=u.bilibili.app.dynamic.v2.MdlDynDrawTagItem.fromObject(t.item)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.type=i.enums===String?"mdl_draw_tag_none":0,n.item=null),t.type!=null&&t.hasOwnProperty("type")&&(n.type=i.enums===String?u.bilibili.app.dynamic.v2.MdlDynDrawTagType[t.type]===void 0?t.type:u.bilibili.app.dynamic.v2.MdlDynDrawTagType[t.type]:t.type),t.item!=null&&t.hasOwnProperty("item")&&(n.item=u.bilibili.app.dynamic.v2.MdlDynDrawTagItem.toObject(t.item,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.MdlDynDrawTag"},e}(),c.MdlDynDrawTagType=function(){let e={},l=Object.create(e);return l[e[0]="mdl_draw_tag_none"]=0,l[e[1]="mdl_draw_tag_common"]=1,l[e[2]="mdl_draw_tag_goods"]=2,l[e[3]="mdl_draw_tag_user"]=3,l[e[4]="mdl_draw_tag_topic"]=4,l[e[5]="mdl_draw_tag_lbs"]=5,l}(),c.MdlDynDrawTagItem=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.url=t.string();break}case 2:{o.text=t.string();break}case 3:{o.x=t.int64();break}case 4:{o.y=t.int64();break}case 5:{o.orientation=t.int32();break}case 6:{o.source=t.int32();break}case 7:{o.itemId=t.int64();break}case 8:{o.mid=t.int64();break}case 9:{o.tid=t.int64();break}case 10:{o.poi=t.string();break}case 11:{o.schemaUrl=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.MdlDynDrawTagItem)return t;let i=new u.bilibili.app.dynamic.v2.MdlDynDrawTagItem;return t.url!=null&&(i.url=String(t.url)),t.text!=null&&(i.text=String(t.text)),t.x!=null&&(r.Long?(i.x=r.Long.fromValue(t.x)).unsigned=!1:typeof t.x=="string"?i.x=parseInt(t.x,10):typeof t.x=="number"?i.x=t.x:typeof t.x=="object"&&(i.x=new r.LongBits(t.x.low>>>0,t.x.high>>>0).toNumber())),t.y!=null&&(r.Long?(i.y=r.Long.fromValue(t.y)).unsigned=!1:typeof t.y=="string"?i.y=parseInt(t.y,10):typeof t.y=="number"?i.y=t.y:typeof t.y=="object"&&(i.y=new r.LongBits(t.y.low>>>0,t.y.high>>>0).toNumber())),t.orientation!=null&&(i.orientation=t.orientation|0),t.source!=null&&(i.source=t.source|0),t.itemId!=null&&(r.Long?(i.itemId=r.Long.fromValue(t.itemId)).unsigned=!1:typeof t.itemId=="string"?i.itemId=parseInt(t.itemId,10):typeof t.itemId=="number"?i.itemId=t.itemId:typeof t.itemId=="object"&&(i.itemId=new r.LongBits(t.itemId.low>>>0,t.itemId.high>>>0).toNumber())),t.mid!=null&&(r.Long?(i.mid=r.Long.fromValue(t.mid)).unsigned=!1:typeof t.mid=="string"?i.mid=parseInt(t.mid,10):typeof t.mid=="number"?i.mid=t.mid:typeof t.mid=="object"&&(i.mid=new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber())),t.tid!=null&&(r.Long?(i.tid=r.Long.fromValue(t.tid)).unsigned=!1:typeof t.tid=="string"?i.tid=parseInt(t.tid,10):typeof t.tid=="number"?i.tid=t.tid:typeof t.tid=="object"&&(i.tid=new r.LongBits(t.tid.low>>>0,t.tid.high>>>0).toNumber())),t.poi!=null&&(i.poi=String(t.poi)),t.schemaUrl!=null&&(i.schemaUrl=String(t.schemaUrl)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.url="",n.text="",r.Long){let o=new r.Long(0,0,!1);n.x=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.x=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.y=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.y=i.longs===String?"0":0;if(n.orientation=0,n.source=0,r.Long){let o=new r.Long(0,0,!1);n.itemId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.itemId=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.mid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.tid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.tid=i.longs===String?"0":0;n.poi="",n.schemaUrl=""}return t.url!=null&&t.hasOwnProperty("url")&&(n.url=t.url),t.text!=null&&t.hasOwnProperty("text")&&(n.text=t.text),t.x!=null&&t.hasOwnProperty("x")&&(typeof t.x=="number"?n.x=i.longs===String?String(t.x):t.x:n.x=i.longs===String?r.Long.prototype.toString.call(t.x):i.longs===Number?new r.LongBits(t.x.low>>>0,t.x.high>>>0).toNumber():t.x),t.y!=null&&t.hasOwnProperty("y")&&(typeof t.y=="number"?n.y=i.longs===String?String(t.y):t.y:n.y=i.longs===String?r.Long.prototype.toString.call(t.y):i.longs===Number?new r.LongBits(t.y.low>>>0,t.y.high>>>0).toNumber():t.y),t.orientation!=null&&t.hasOwnProperty("orientation")&&(n.orientation=t.orientation),t.source!=null&&t.hasOwnProperty("source")&&(n.source=t.source),t.itemId!=null&&t.hasOwnProperty("itemId")&&(typeof t.itemId=="number"?n.itemId=i.longs===String?String(t.itemId):t.itemId:n.itemId=i.longs===String?r.Long.prototype.toString.call(t.itemId):i.longs===Number?new r.LongBits(t.itemId.low>>>0,t.itemId.high>>>0).toNumber():t.itemId),t.mid!=null&&t.hasOwnProperty("mid")&&(typeof t.mid=="number"?n.mid=i.longs===String?String(t.mid):t.mid:n.mid=i.longs===String?r.Long.prototype.toString.call(t.mid):i.longs===Number?new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber():t.mid),t.tid!=null&&t.hasOwnProperty("tid")&&(typeof t.tid=="number"?n.tid=i.longs===String?String(t.tid):t.tid:n.tid=i.longs===String?r.Long.prototype.toString.call(t.tid):i.longs===Number?new r.LongBits(t.tid.low>>>0,t.tid.high>>>0).toNumber():t.tid),t.poi!=null&&t.hasOwnProperty("poi")&&(n.poi=t.poi),t.schemaUrl!=null&&t.hasOwnProperty("schemaUrl")&&(n.schemaUrl=t.schemaUrl),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.MdlDynDrawTagItem"},e}(),c.MdlDynArticle=function(){function e(l){if(this.covers=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.id=t.int64();break}case 2:{o.uri=t.string();break}case 3:{o.title=t.string();break}case 4:{o.desc=t.string();break}case 5:{o.covers&&o.covers.length||(o.covers=[]),o.covers.push(t.string());break}case 6:{o.label=t.string();break}case 7:{o.templateID=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.MdlDynArticle)return t;let i=new u.bilibili.app.dynamic.v2.MdlDynArticle;if(t.id!=null&&(r.Long?(i.id=r.Long.fromValue(t.id)).unsigned=!1:typeof t.id=="string"?i.id=parseInt(t.id,10):typeof t.id=="number"?i.id=t.id:typeof t.id=="object"&&(i.id=new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber())),t.uri!=null&&(i.uri=String(t.uri)),t.title!=null&&(i.title=String(t.title)),t.desc!=null&&(i.desc=String(t.desc)),t.covers){if(!Array.isArray(t.covers))throw TypeError(".bilibili.app.dynamic.v2.MdlDynArticle.covers: array expected");i.covers=[];for(let n=0;n>>0,t.id.high>>>0).toNumber():t.id),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.desc!=null&&t.hasOwnProperty("desc")&&(n.desc=t.desc),t.covers&&t.covers.length){n.covers=[];for(let o=0;o>>3){case 1:{o.id=t.int64();break}case 2:{o.uri=t.string();break}case 3:{o.upId=t.int64();break}case 4:{o.title=t.string();break}case 5:{o.cover=t.string();break}case 6:{o.label1=t.string();break}case 7:{o.upper=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.MdlDynMusic)return t;let i=new u.bilibili.app.dynamic.v2.MdlDynMusic;return t.id!=null&&(r.Long?(i.id=r.Long.fromValue(t.id)).unsigned=!1:typeof t.id=="string"?i.id=parseInt(t.id,10):typeof t.id=="number"?i.id=t.id:typeof t.id=="object"&&(i.id=new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber())),t.uri!=null&&(i.uri=String(t.uri)),t.upId!=null&&(r.Long?(i.upId=r.Long.fromValue(t.upId)).unsigned=!1:typeof t.upId=="string"?i.upId=parseInt(t.upId,10):typeof t.upId=="number"?i.upId=t.upId:typeof t.upId=="object"&&(i.upId=new r.LongBits(t.upId.low>>>0,t.upId.high>>>0).toNumber())),t.title!=null&&(i.title=String(t.title)),t.cover!=null&&(i.cover=String(t.cover)),t.label1!=null&&(i.label1=String(t.label1)),t.upper!=null&&(i.upper=String(t.upper)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.id=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.id=i.longs===String?"0":0;if(n.uri="",r.Long){let o=new r.Long(0,0,!1);n.upId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.upId=i.longs===String?"0":0;n.title="",n.cover="",n.label1="",n.upper=""}return t.id!=null&&t.hasOwnProperty("id")&&(typeof t.id=="number"?n.id=i.longs===String?String(t.id):t.id:n.id=i.longs===String?r.Long.prototype.toString.call(t.id):i.longs===Number?new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber():t.id),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),t.upId!=null&&t.hasOwnProperty("upId")&&(typeof t.upId=="number"?n.upId=i.longs===String?String(t.upId):t.upId:n.upId=i.longs===String?r.Long.prototype.toString.call(t.upId):i.longs===Number?new r.LongBits(t.upId.low>>>0,t.upId.high>>>0).toNumber():t.upId),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.cover!=null&&t.hasOwnProperty("cover")&&(n.cover=t.cover),t.label1!=null&&t.hasOwnProperty("label1")&&(n.label1=t.label1),t.upper!=null&&t.hasOwnProperty("upper")&&(n.upper=t.upper),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.MdlDynMusic"},e}(),c.MdlDynCommon=function(){function e(l){if(this.badge=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.oid=t.int64();break}case 2:{o.uri=t.string();break}case 3:{o.title=t.string();break}case 4:{o.desc=t.string();break}case 5:{o.cover=t.string();break}case 6:{o.label=t.string();break}case 7:{o.bizType=t.int32();break}case 8:{o.sketchID=t.int64();break}case 9:{o.style=t.int32();break}case 10:{o.badge&&o.badge.length||(o.badge=[]),o.badge.push(u.bilibili.app.dynamic.v2.VideoBadge.decode(t,t.uint32()));break}case 11:{o.button=u.bilibili.app.dynamic.v2.AdditionalButton.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.MdlDynCommon)return t;let i=new u.bilibili.app.dynamic.v2.MdlDynCommon;switch(t.oid!=null&&(r.Long?(i.oid=r.Long.fromValue(t.oid)).unsigned=!1:typeof t.oid=="string"?i.oid=parseInt(t.oid,10):typeof t.oid=="number"?i.oid=t.oid:typeof t.oid=="object"&&(i.oid=new r.LongBits(t.oid.low>>>0,t.oid.high>>>0).toNumber())),t.uri!=null&&(i.uri=String(t.uri)),t.title!=null&&(i.title=String(t.title)),t.desc!=null&&(i.desc=String(t.desc)),t.cover!=null&&(i.cover=String(t.cover)),t.label!=null&&(i.label=String(t.label)),t.bizType!=null&&(i.bizType=t.bizType|0),t.sketchID!=null&&(r.Long?(i.sketchID=r.Long.fromValue(t.sketchID)).unsigned=!1:typeof t.sketchID=="string"?i.sketchID=parseInt(t.sketchID,10):typeof t.sketchID=="number"?i.sketchID=t.sketchID:typeof t.sketchID=="object"&&(i.sketchID=new r.LongBits(t.sketchID.low>>>0,t.sketchID.high>>>0).toNumber())),t.style){default:if(typeof t.style=="number"){i.style=t.style;break}break;case"mdl_dyn_common_none":case 0:i.style=0;break;case"mdl_dyn_common_square":case 1:i.style=1;break;case"mdl_dyn_common_vertica":case 2:i.style=2;break}if(t.badge){if(!Array.isArray(t.badge))throw TypeError(".bilibili.app.dynamic.v2.MdlDynCommon.badge: array expected");i.badge=[];for(let n=0;n>>0,t.oid.high>>>0).toNumber():t.oid),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.desc!=null&&t.hasOwnProperty("desc")&&(n.desc=t.desc),t.cover!=null&&t.hasOwnProperty("cover")&&(n.cover=t.cover),t.label!=null&&t.hasOwnProperty("label")&&(n.label=t.label),t.bizType!=null&&t.hasOwnProperty("bizType")&&(n.bizType=t.bizType),t.sketchID!=null&&t.hasOwnProperty("sketchID")&&(typeof t.sketchID=="number"?n.sketchID=i.longs===String?String(t.sketchID):t.sketchID:n.sketchID=i.longs===String?r.Long.prototype.toString.call(t.sketchID):i.longs===Number?new r.LongBits(t.sketchID.low>>>0,t.sketchID.high>>>0).toNumber():t.sketchID),t.style!=null&&t.hasOwnProperty("style")&&(n.style=i.enums===String?u.bilibili.app.dynamic.v2.MdlDynCommonType[t.style]===void 0?t.style:u.bilibili.app.dynamic.v2.MdlDynCommonType[t.style]:t.style),t.badge&&t.badge.length){n.badge=[];for(let o=0;o>>3){case 1:{o.type=t.int32();break}case 2:{o.jumpStyle=u.bilibili.app.dynamic.v2.AdditionalButtonStyle.decode(t,t.uint32());break}case 3:{o.jumpUrl=t.string();break}case 4:{o.uncheck=u.bilibili.app.dynamic.v2.AdditionalButtonStyle.decode(t,t.uint32());break}case 5:{o.check=u.bilibili.app.dynamic.v2.AdditionalButtonStyle.decode(t,t.uint32());break}case 6:{o.status=t.int32();break}case 7:{o.clickType=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.AdditionalButton)return t;let i=new u.bilibili.app.dynamic.v2.AdditionalButton;switch(t.type){default:if(typeof t.type=="number"){i.type=t.type;break}break;case"bt_none":case 0:i.type=0;break;case"bt_jump":case 1:i.type=1;break;case"bt_button":case 2:i.type=2;break}if(t.jumpStyle!=null){if(typeof t.jumpStyle!="object")throw TypeError(".bilibili.app.dynamic.v2.AdditionalButton.jumpStyle: object expected");i.jumpStyle=u.bilibili.app.dynamic.v2.AdditionalButtonStyle.fromObject(t.jumpStyle)}if(t.jumpUrl!=null&&(i.jumpUrl=String(t.jumpUrl)),t.uncheck!=null){if(typeof t.uncheck!="object")throw TypeError(".bilibili.app.dynamic.v2.AdditionalButton.uncheck: object expected");i.uncheck=u.bilibili.app.dynamic.v2.AdditionalButtonStyle.fromObject(t.uncheck)}if(t.check!=null){if(typeof t.check!="object")throw TypeError(".bilibili.app.dynamic.v2.AdditionalButton.check: object expected");i.check=u.bilibili.app.dynamic.v2.AdditionalButtonStyle.fromObject(t.check)}switch(t.status){default:if(typeof t.status=="number"){i.status=t.status;break}break;case"none":case 0:i.status=0;break;case"uncheck":case 1:i.status=1;break;case"check":case 2:i.status=2;break}switch(t.clickType){default:if(typeof t.clickType=="number"){i.clickType=t.clickType;break}break;case"click_none":case 0:i.clickType=0;break;case"click_up":case 1:i.clickType=1;break}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.type=i.enums===String?"bt_none":0,n.jumpStyle=null,n.jumpUrl="",n.uncheck=null,n.check=null,n.status=i.enums===String?"none":0,n.clickType=i.enums===String?"click_none":0),t.type!=null&&t.hasOwnProperty("type")&&(n.type=i.enums===String?u.bilibili.app.dynamic.v2.AddButtonType[t.type]===void 0?t.type:u.bilibili.app.dynamic.v2.AddButtonType[t.type]:t.type),t.jumpStyle!=null&&t.hasOwnProperty("jumpStyle")&&(n.jumpStyle=u.bilibili.app.dynamic.v2.AdditionalButtonStyle.toObject(t.jumpStyle,i)),t.jumpUrl!=null&&t.hasOwnProperty("jumpUrl")&&(n.jumpUrl=t.jumpUrl),t.uncheck!=null&&t.hasOwnProperty("uncheck")&&(n.uncheck=u.bilibili.app.dynamic.v2.AdditionalButtonStyle.toObject(t.uncheck,i)),t.check!=null&&t.hasOwnProperty("check")&&(n.check=u.bilibili.app.dynamic.v2.AdditionalButtonStyle.toObject(t.check,i)),t.status!=null&&t.hasOwnProperty("status")&&(n.status=i.enums===String?u.bilibili.app.dynamic.v2.AdditionalButtonStatus[t.status]===void 0?t.status:u.bilibili.app.dynamic.v2.AdditionalButtonStatus[t.status]:t.status),t.clickType!=null&&t.hasOwnProperty("clickType")&&(n.clickType=i.enums===String?u.bilibili.app.dynamic.v2.AdditionalButtonClickType[t.clickType]===void 0?t.clickType:u.bilibili.app.dynamic.v2.AdditionalButtonClickType[t.clickType]:t.clickType),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.AdditionalButton"},e}(),c.AddButtonType=function(){let e={},l=Object.create(e);return l[e[0]="bt_none"]=0,l[e[1]="bt_jump"]=1,l[e[2]="bt_button"]=2,l}(),c.AdditionalButtonStatus=function(){let e={},l=Object.create(e);return l[e[0]="none"]=0,l[e[1]="uncheck"]=1,l[e[2]="check"]=2,l}(),c.AdditionalButtonClickType=function(){let e={},l=Object.create(e);return l[e[0]="click_none"]=0,l[e[1]="click_up"]=1,l}(),c.AdditionalButtonStyle=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.icon=t.string();break}case 2:{o.text=t.string();break}case 3:{o.interactive=u.bilibili.app.dynamic.v2.AdditionalButtonInteractive.decode(t,t.uint32());break}case 4:{o.bgStyle=t.int32();break}case 5:{o.toast=t.string();break}case 6:{o.disable=t.int32();break}case 7:{o.share=u.bilibili.app.dynamic.v2.AdditionalButtonShare.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.AdditionalButtonStyle)return t;let i=new u.bilibili.app.dynamic.v2.AdditionalButtonStyle;if(t.icon!=null&&(i.icon=String(t.icon)),t.text!=null&&(i.text=String(t.text)),t.interactive!=null){if(typeof t.interactive!="object")throw TypeError(".bilibili.app.dynamic.v2.AdditionalButtonStyle.interactive: object expected");i.interactive=u.bilibili.app.dynamic.v2.AdditionalButtonInteractive.fromObject(t.interactive)}switch(t.bgStyle){default:if(typeof t.bgStyle=="number"){i.bgStyle=t.bgStyle;break}break;case"fill":case 0:i.bgStyle=0;break;case"stroke":case 1:i.bgStyle=1;break;case"gray":case 2:i.bgStyle=2;break}switch(t.toast!=null&&(i.toast=String(t.toast)),t.disable){default:if(typeof t.disable=="number"){i.disable=t.disable;break}break;case"highlight":case 0:i.disable=0;break;case"gary":case 1:i.disable=1;break}if(t.share!=null){if(typeof t.share!="object")throw TypeError(".bilibili.app.dynamic.v2.AdditionalButtonStyle.share: object expected");i.share=u.bilibili.app.dynamic.v2.AdditionalButtonShare.fromObject(t.share)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.icon="",n.text="",n.interactive=null,n.bgStyle=i.enums===String?"fill":0,n.toast="",n.disable=i.enums===String?"highlight":0,n.share=null),t.icon!=null&&t.hasOwnProperty("icon")&&(n.icon=t.icon),t.text!=null&&t.hasOwnProperty("text")&&(n.text=t.text),t.interactive!=null&&t.hasOwnProperty("interactive")&&(n.interactive=u.bilibili.app.dynamic.v2.AdditionalButtonInteractive.toObject(t.interactive,i)),t.bgStyle!=null&&t.hasOwnProperty("bgStyle")&&(n.bgStyle=i.enums===String?u.bilibili.app.dynamic.v2.AddButtonBgStyle[t.bgStyle]===void 0?t.bgStyle:u.bilibili.app.dynamic.v2.AddButtonBgStyle[t.bgStyle]:t.bgStyle),t.toast!=null&&t.hasOwnProperty("toast")&&(n.toast=t.toast),t.disable!=null&&t.hasOwnProperty("disable")&&(n.disable=i.enums===String?u.bilibili.app.dynamic.v2.DisableState[t.disable]===void 0?t.disable:u.bilibili.app.dynamic.v2.DisableState[t.disable]:t.disable),t.share!=null&&t.hasOwnProperty("share")&&(n.share=u.bilibili.app.dynamic.v2.AdditionalButtonShare.toObject(t.share,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.AdditionalButtonStyle"},e}(),c.AdditionalButtonShare=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.show=t.int32();break}case 2:{o.icon=t.string();break}case 3:{o.text=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.AdditionalButtonShare)return t;let i=new u.bilibili.app.dynamic.v2.AdditionalButtonShare;switch(t.show){default:if(typeof t.show=="number"){i.show=t.show;break}break;case"st_none":case 0:i.show=0;break;case"st_show":case 1:i.show=1;break}return t.icon!=null&&(i.icon=String(t.icon)),t.text!=null&&(i.text=String(t.text)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.show=i.enums===String?"st_none":0,n.icon="",n.text=""),t.show!=null&&t.hasOwnProperty("show")&&(n.show=i.enums===String?u.bilibili.app.dynamic.v2.AdditionalShareShowType[t.show]===void 0?t.show:u.bilibili.app.dynamic.v2.AdditionalShareShowType[t.show]:t.show),t.icon!=null&&t.hasOwnProperty("icon")&&(n.icon=t.icon),t.text!=null&&t.hasOwnProperty("text")&&(n.text=t.text),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.AdditionalButtonShare"},e}(),c.AdditionalShareShowType=function(){let e={},l=Object.create(e);return l[e[0]="st_none"]=0,l[e[1]="st_show"]=1,l}(),c.DisableState=function(){let e={},l=Object.create(e);return l[e[0]="highlight"]=0,l[e[1]="gary"]=1,l}(),c.AddButtonBgStyle=function(){let e={},l=Object.create(e);return l[e[0]="fill"]=0,l[e[1]="stroke"]=1,l[e[2]="gray"]=2,l}(),c.AdditionalButtonInteractive=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.popups=t.string();break}case 2:{o.confirm=t.string();break}case 3:{o.cancel=t.string();break}case 4:{o.desc=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.AdditionalButtonInteractive)return t;let i=new u.bilibili.app.dynamic.v2.AdditionalButtonInteractive;return t.popups!=null&&(i.popups=String(t.popups)),t.confirm!=null&&(i.confirm=String(t.confirm)),t.cancel!=null&&(i.cancel=String(t.cancel)),t.desc!=null&&(i.desc=String(t.desc)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.popups="",n.confirm="",n.cancel="",n.desc=""),t.popups!=null&&t.hasOwnProperty("popups")&&(n.popups=t.popups),t.confirm!=null&&t.hasOwnProperty("confirm")&&(n.confirm=t.confirm),t.cancel!=null&&t.hasOwnProperty("cancel")&&(n.cancel=t.cancel),t.desc!=null&&t.hasOwnProperty("desc")&&(n.desc=t.desc),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.AdditionalButtonInteractive"},e}(),c.MdlDynCommonType=function(){let e={},l=Object.create(e);return l[e[0]="mdl_dyn_common_none"]=0,l[e[1]="mdl_dyn_common_square"]=1,l[e[2]="mdl_dyn_common_vertica"]=2,l}(),c.MdlDynLive=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.id=t.int64();break}case 2:{o.uri=t.string();break}case 3:{o.title=t.string();break}case 4:{o.cover=t.string();break}case 5:{o.coverLabel=t.string();break}case 6:{o.coverLabel2=t.string();break}case 7:{o.liveState=t.int32();break}case 8:{o.badge=u.bilibili.app.dynamic.v2.VideoBadge.decode(t,t.uint32());break}case 9:{o.reserveType=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.MdlDynLive)return t;let i=new u.bilibili.app.dynamic.v2.MdlDynLive;switch(t.id!=null&&(r.Long?(i.id=r.Long.fromValue(t.id)).unsigned=!1:typeof t.id=="string"?i.id=parseInt(t.id,10):typeof t.id=="number"?i.id=t.id:typeof t.id=="object"&&(i.id=new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber())),t.uri!=null&&(i.uri=String(t.uri)),t.title!=null&&(i.title=String(t.title)),t.cover!=null&&(i.cover=String(t.cover)),t.coverLabel!=null&&(i.coverLabel=String(t.coverLabel)),t.coverLabel2!=null&&(i.coverLabel2=String(t.coverLabel2)),t.liveState){default:if(typeof t.liveState=="number"){i.liveState=t.liveState;break}break;case"live_none":case 0:i.liveState=0;break;case"live_live":case 1:i.liveState=1;break;case"live_rotation":case 2:i.liveState=2;break}if(t.badge!=null){if(typeof t.badge!="object")throw TypeError(".bilibili.app.dynamic.v2.MdlDynLive.badge: object expected");i.badge=u.bilibili.app.dynamic.v2.VideoBadge.fromObject(t.badge)}switch(t.reserveType){default:if(typeof t.reserveType=="number"){i.reserveType=t.reserveType;break}break;case"reserve_none":case 0:i.reserveType=0;break;case"reserve_recall":case 1:i.reserveType=1;break}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.id=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.id=i.longs===String?"0":0;n.uri="",n.title="",n.cover="",n.coverLabel="",n.coverLabel2="",n.liveState=i.enums===String?"live_none":0,n.badge=null,n.reserveType=i.enums===String?"reserve_none":0}return t.id!=null&&t.hasOwnProperty("id")&&(typeof t.id=="number"?n.id=i.longs===String?String(t.id):t.id:n.id=i.longs===String?r.Long.prototype.toString.call(t.id):i.longs===Number?new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber():t.id),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.cover!=null&&t.hasOwnProperty("cover")&&(n.cover=t.cover),t.coverLabel!=null&&t.hasOwnProperty("coverLabel")&&(n.coverLabel=t.coverLabel),t.coverLabel2!=null&&t.hasOwnProperty("coverLabel2")&&(n.coverLabel2=t.coverLabel2),t.liveState!=null&&t.hasOwnProperty("liveState")&&(n.liveState=i.enums===String?u.bilibili.app.dynamic.v2.LiveState[t.liveState]===void 0?t.liveState:u.bilibili.app.dynamic.v2.LiveState[t.liveState]:t.liveState),t.badge!=null&&t.hasOwnProperty("badge")&&(n.badge=u.bilibili.app.dynamic.v2.VideoBadge.toObject(t.badge,i)),t.reserveType!=null&&t.hasOwnProperty("reserveType")&&(n.reserveType=i.enums===String?u.bilibili.app.dynamic.v2.ReserveType[t.reserveType]===void 0?t.reserveType:u.bilibili.app.dynamic.v2.ReserveType[t.reserveType]:t.reserveType),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.MdlDynLive"},e}(),c.LiveState=function(){let e={},l=Object.create(e);return l[e[0]="live_none"]=0,l[e[1]="live_live"]=1,l[e[2]="live_rotation"]=2,l}(),c.MdlDynMedialist=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.id=t.int64();break}case 2:{o.uri=t.string();break}case 3:{o.title=t.string();break}case 4:{o.subTitle=t.string();break}case 5:{o.cover=t.string();break}case 6:{o.coverType=t.int32();break}case 7:{o.badge=u.bilibili.app.dynamic.v2.VideoBadge.decode(t,t.uint32());break}case 8:{o.coverBottomRightIcon=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.MdlDynMedialist)return t;let i=new u.bilibili.app.dynamic.v2.MdlDynMedialist;if(t.id!=null&&(r.Long?(i.id=r.Long.fromValue(t.id)).unsigned=!1:typeof t.id=="string"?i.id=parseInt(t.id,10):typeof t.id=="number"?i.id=t.id:typeof t.id=="object"&&(i.id=new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber())),t.uri!=null&&(i.uri=String(t.uri)),t.title!=null&&(i.title=String(t.title)),t.subTitle!=null&&(i.subTitle=String(t.subTitle)),t.cover!=null&&(i.cover=String(t.cover)),t.coverType!=null&&(i.coverType=t.coverType|0),t.badge!=null){if(typeof t.badge!="object")throw TypeError(".bilibili.app.dynamic.v2.MdlDynMedialist.badge: object expected");i.badge=u.bilibili.app.dynamic.v2.VideoBadge.fromObject(t.badge)}return t.coverBottomRightIcon!=null&&(i.coverBottomRightIcon=String(t.coverBottomRightIcon)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.id=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.id=i.longs===String?"0":0;n.uri="",n.title="",n.subTitle="",n.cover="",n.coverType=0,n.badge=null,n.coverBottomRightIcon=""}return t.id!=null&&t.hasOwnProperty("id")&&(typeof t.id=="number"?n.id=i.longs===String?String(t.id):t.id:n.id=i.longs===String?r.Long.prototype.toString.call(t.id):i.longs===Number?new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber():t.id),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.subTitle!=null&&t.hasOwnProperty("subTitle")&&(n.subTitle=t.subTitle),t.cover!=null&&t.hasOwnProperty("cover")&&(n.cover=t.cover),t.coverType!=null&&t.hasOwnProperty("coverType")&&(n.coverType=t.coverType),t.badge!=null&&t.hasOwnProperty("badge")&&(n.badge=u.bilibili.app.dynamic.v2.VideoBadge.toObject(t.badge,i)),t.coverBottomRightIcon!=null&&t.hasOwnProperty("coverBottomRightIcon")&&(n.coverBottomRightIcon=t.coverBottomRightIcon),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.MdlDynMedialist"},e}(),c.MdlDynApplet=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.id=t.int64();break}case 2:{o.uri=t.string();break}case 4:{o.title=t.string();break}case 5:{o.subTitle=t.string();break}case 6:{o.cover=t.string();break}case 7:{o.icon=t.string();break}case 8:{o.label=t.string();break}case 9:{o.buttonTitle=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.MdlDynApplet)return t;let i=new u.bilibili.app.dynamic.v2.MdlDynApplet;return t.id!=null&&(r.Long?(i.id=r.Long.fromValue(t.id)).unsigned=!1:typeof t.id=="string"?i.id=parseInt(t.id,10):typeof t.id=="number"?i.id=t.id:typeof t.id=="object"&&(i.id=new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber())),t.uri!=null&&(i.uri=String(t.uri)),t.title!=null&&(i.title=String(t.title)),t.subTitle!=null&&(i.subTitle=String(t.subTitle)),t.cover!=null&&(i.cover=String(t.cover)),t.icon!=null&&(i.icon=String(t.icon)),t.label!=null&&(i.label=String(t.label)),t.buttonTitle!=null&&(i.buttonTitle=String(t.buttonTitle)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.id=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.id=i.longs===String?"0":0;n.uri="",n.title="",n.subTitle="",n.cover="",n.icon="",n.label="",n.buttonTitle=""}return t.id!=null&&t.hasOwnProperty("id")&&(typeof t.id=="number"?n.id=i.longs===String?String(t.id):t.id:n.id=i.longs===String?r.Long.prototype.toString.call(t.id):i.longs===Number?new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber():t.id),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.subTitle!=null&&t.hasOwnProperty("subTitle")&&(n.subTitle=t.subTitle),t.cover!=null&&t.hasOwnProperty("cover")&&(n.cover=t.cover),t.icon!=null&&t.hasOwnProperty("icon")&&(n.icon=t.icon),t.label!=null&&t.hasOwnProperty("label")&&(n.label=t.label),t.buttonTitle!=null&&t.hasOwnProperty("buttonTitle")&&(n.buttonTitle=t.buttonTitle),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.MdlDynApplet"},e}(),c.MdlDynSubscription=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.id=t.int64();break}case 2:{o.adId=t.int64();break}case 3:{o.uri=t.string();break}case 4:{o.title=t.string();break}case 5:{o.cover=t.string();break}case 6:{o.adTitle=t.string();break}case 7:{o.badge=u.bilibili.app.dynamic.v2.VideoBadge.decode(t,t.uint32());break}case 8:{o.tips=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.MdlDynSubscription)return t;let i=new u.bilibili.app.dynamic.v2.MdlDynSubscription;if(t.id!=null&&(r.Long?(i.id=r.Long.fromValue(t.id)).unsigned=!1:typeof t.id=="string"?i.id=parseInt(t.id,10):typeof t.id=="number"?i.id=t.id:typeof t.id=="object"&&(i.id=new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber())),t.adId!=null&&(r.Long?(i.adId=r.Long.fromValue(t.adId)).unsigned=!1:typeof t.adId=="string"?i.adId=parseInt(t.adId,10):typeof t.adId=="number"?i.adId=t.adId:typeof t.adId=="object"&&(i.adId=new r.LongBits(t.adId.low>>>0,t.adId.high>>>0).toNumber())),t.uri!=null&&(i.uri=String(t.uri)),t.title!=null&&(i.title=String(t.title)),t.cover!=null&&(i.cover=String(t.cover)),t.adTitle!=null&&(i.adTitle=String(t.adTitle)),t.badge!=null){if(typeof t.badge!="object")throw TypeError(".bilibili.app.dynamic.v2.MdlDynSubscription.badge: object expected");i.badge=u.bilibili.app.dynamic.v2.VideoBadge.fromObject(t.badge)}return t.tips!=null&&(i.tips=String(t.tips)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.id=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.id=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.adId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.adId=i.longs===String?"0":0;n.uri="",n.title="",n.cover="",n.adTitle="",n.badge=null,n.tips=""}return t.id!=null&&t.hasOwnProperty("id")&&(typeof t.id=="number"?n.id=i.longs===String?String(t.id):t.id:n.id=i.longs===String?r.Long.prototype.toString.call(t.id):i.longs===Number?new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber():t.id),t.adId!=null&&t.hasOwnProperty("adId")&&(typeof t.adId=="number"?n.adId=i.longs===String?String(t.adId):t.adId:n.adId=i.longs===String?r.Long.prototype.toString.call(t.adId):i.longs===Number?new r.LongBits(t.adId.low>>>0,t.adId.high>>>0).toNumber():t.adId),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.cover!=null&&t.hasOwnProperty("cover")&&(n.cover=t.cover),t.adTitle!=null&&t.hasOwnProperty("adTitle")&&(n.adTitle=t.adTitle),t.badge!=null&&t.hasOwnProperty("badge")&&(n.badge=u.bilibili.app.dynamic.v2.VideoBadge.toObject(t.badge,i)),t.tips!=null&&t.hasOwnProperty("tips")&&(n.tips=t.tips),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.MdlDynSubscription"},e}(),c.MdlDynLiveRcmd=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.content=t.string();break}case 2:{o.reserveType=t.int32();break}case 3:{o.pendant=u.bilibili.app.dynamic.v2.LivePendant.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.MdlDynLiveRcmd)return t;let i=new u.bilibili.app.dynamic.v2.MdlDynLiveRcmd;switch(t.content!=null&&(i.content=String(t.content)),t.reserveType){default:if(typeof t.reserveType=="number"){i.reserveType=t.reserveType;break}break;case"reserve_none":case 0:i.reserveType=0;break;case"reserve_recall":case 1:i.reserveType=1;break}if(t.pendant!=null){if(typeof t.pendant!="object")throw TypeError(".bilibili.app.dynamic.v2.MdlDynLiveRcmd.pendant: object expected");i.pendant=u.bilibili.app.dynamic.v2.LivePendant.fromObject(t.pendant)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.content="",n.reserveType=i.enums===String?"reserve_none":0,n.pendant=null),t.content!=null&&t.hasOwnProperty("content")&&(n.content=t.content),t.reserveType!=null&&t.hasOwnProperty("reserveType")&&(n.reserveType=i.enums===String?u.bilibili.app.dynamic.v2.ReserveType[t.reserveType]===void 0?t.reserveType:u.bilibili.app.dynamic.v2.ReserveType[t.reserveType]:t.reserveType),t.pendant!=null&&t.hasOwnProperty("pendant")&&(n.pendant=u.bilibili.app.dynamic.v2.LivePendant.toObject(t.pendant,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.MdlDynLiveRcmd"},e}(),c.LivePendant=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.text=t.string();break}case 2:{o.icon=t.string();break}case 3:{o.pendantId=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.LivePendant)return t;let i=new u.bilibili.app.dynamic.v2.LivePendant;return t.text!=null&&(i.text=String(t.text)),t.icon!=null&&(i.icon=String(t.icon)),t.pendantId!=null&&(r.Long?(i.pendantId=r.Long.fromValue(t.pendantId)).unsigned=!1:typeof t.pendantId=="string"?i.pendantId=parseInt(t.pendantId,10):typeof t.pendantId=="number"?i.pendantId=t.pendantId:typeof t.pendantId=="object"&&(i.pendantId=new r.LongBits(t.pendantId.low>>>0,t.pendantId.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(n.text="",n.icon="",r.Long){let o=new r.Long(0,0,!1);n.pendantId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.pendantId=i.longs===String?"0":0;return t.text!=null&&t.hasOwnProperty("text")&&(n.text=t.text),t.icon!=null&&t.hasOwnProperty("icon")&&(n.icon=t.icon),t.pendantId!=null&&t.hasOwnProperty("pendantId")&&(typeof t.pendantId=="number"?n.pendantId=i.longs===String?String(t.pendantId):t.pendantId:n.pendantId=i.longs===String?r.Long.prototype.toString.call(t.pendantId):i.longs===Number?new r.LongBits(t.pendantId.low>>>0,t.pendantId.high>>>0).toNumber():t.pendantId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.LivePendant"},e}(),c.MdlDynUGCSeason=function(){function e(l){if(this.badge=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.cover=t.string();break}case 3:{o.uri=t.string();break}case 4:{o.coverLeftText_1=t.string();break}case 5:{o.coverLeftText_2=t.string();break}case 6:{o.coverLeftText_3=t.string();break}case 7:{o.id=t.int64();break}case 8:{o.inlineURL=t.string();break}case 9:{o.canPlay=t.bool();break}case 10:{o.playIcon=t.string();break}case 11:{o.avid=t.int64();break}case 12:{o.cid=t.int64();break}case 13:{o.dimension=u.bilibili.app.dynamic.v2.Dimension.decode(t,t.uint32());break}case 14:{o.duration=t.int64();break}case 15:{o.jumpUrl=t.string();break}case 16:{o.badge&&o.badge.length||(o.badge=[]),o.badge.push(u.bilibili.app.dynamic.v2.VideoBadge.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.MdlDynUGCSeason)return t;let i=new u.bilibili.app.dynamic.v2.MdlDynUGCSeason;if(t.title!=null&&(i.title=String(t.title)),t.cover!=null&&(i.cover=String(t.cover)),t.uri!=null&&(i.uri=String(t.uri)),t.coverLeftText_1!=null&&(i.coverLeftText_1=String(t.coverLeftText_1)),t.coverLeftText_2!=null&&(i.coverLeftText_2=String(t.coverLeftText_2)),t.coverLeftText_3!=null&&(i.coverLeftText_3=String(t.coverLeftText_3)),t.id!=null&&(r.Long?(i.id=r.Long.fromValue(t.id)).unsigned=!1:typeof t.id=="string"?i.id=parseInt(t.id,10):typeof t.id=="number"?i.id=t.id:typeof t.id=="object"&&(i.id=new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber())),t.inlineURL!=null&&(i.inlineURL=String(t.inlineURL)),t.canPlay!=null&&(i.canPlay=!!t.canPlay),t.playIcon!=null&&(i.playIcon=String(t.playIcon)),t.avid!=null&&(r.Long?(i.avid=r.Long.fromValue(t.avid)).unsigned=!1:typeof t.avid=="string"?i.avid=parseInt(t.avid,10):typeof t.avid=="number"?i.avid=t.avid:typeof t.avid=="object"&&(i.avid=new r.LongBits(t.avid.low>>>0,t.avid.high>>>0).toNumber())),t.cid!=null&&(r.Long?(i.cid=r.Long.fromValue(t.cid)).unsigned=!1:typeof t.cid=="string"?i.cid=parseInt(t.cid,10):typeof t.cid=="number"?i.cid=t.cid:typeof t.cid=="object"&&(i.cid=new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber())),t.dimension!=null){if(typeof t.dimension!="object")throw TypeError(".bilibili.app.dynamic.v2.MdlDynUGCSeason.dimension: object expected");i.dimension=u.bilibili.app.dynamic.v2.Dimension.fromObject(t.dimension)}if(t.duration!=null&&(r.Long?(i.duration=r.Long.fromValue(t.duration)).unsigned=!1:typeof t.duration=="string"?i.duration=parseInt(t.duration,10):typeof t.duration=="number"?i.duration=t.duration:typeof t.duration=="object"&&(i.duration=new r.LongBits(t.duration.low>>>0,t.duration.high>>>0).toNumber())),t.jumpUrl!=null&&(i.jumpUrl=String(t.jumpUrl)),t.badge){if(!Array.isArray(t.badge))throw TypeError(".bilibili.app.dynamic.v2.MdlDynUGCSeason.badge: array expected");i.badge=[];for(let n=0;n>>0,t.id.high>>>0).toNumber():t.id),t.inlineURL!=null&&t.hasOwnProperty("inlineURL")&&(n.inlineURL=t.inlineURL),t.canPlay!=null&&t.hasOwnProperty("canPlay")&&(n.canPlay=t.canPlay),t.playIcon!=null&&t.hasOwnProperty("playIcon")&&(n.playIcon=t.playIcon),t.avid!=null&&t.hasOwnProperty("avid")&&(typeof t.avid=="number"?n.avid=i.longs===String?String(t.avid):t.avid:n.avid=i.longs===String?r.Long.prototype.toString.call(t.avid):i.longs===Number?new r.LongBits(t.avid.low>>>0,t.avid.high>>>0).toNumber():t.avid),t.cid!=null&&t.hasOwnProperty("cid")&&(typeof t.cid=="number"?n.cid=i.longs===String?String(t.cid):t.cid:n.cid=i.longs===String?r.Long.prototype.toString.call(t.cid):i.longs===Number?new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber():t.cid),t.dimension!=null&&t.hasOwnProperty("dimension")&&(n.dimension=u.bilibili.app.dynamic.v2.Dimension.toObject(t.dimension,i)),t.duration!=null&&t.hasOwnProperty("duration")&&(typeof t.duration=="number"?n.duration=i.longs===String?String(t.duration):t.duration:n.duration=i.longs===String?r.Long.prototype.toString.call(t.duration):i.longs===Number?new r.LongBits(t.duration.low>>>0,t.duration.high>>>0).toNumber():t.duration),t.jumpUrl!=null&&t.hasOwnProperty("jumpUrl")&&(n.jumpUrl=t.jumpUrl),t.badge&&t.badge.length){n.badge=[];for(let o=0;o>>3){case 1:{a.style=i.int32();break}case 2:{a.dynSubscription=u.bilibili.app.dynamic.v2.MdlDynSubscription.decode(i,i.uint32());break}case 3:{a.dynLiveRcmd=u.bilibili.app.dynamic.v2.MdlDynLiveRcmd.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},e.fromObject=function(i){if(i instanceof u.bilibili.app.dynamic.v2.MdlDynSubscriptionNew)return i;let n=new u.bilibili.app.dynamic.v2.MdlDynSubscriptionNew;switch(i.style){default:if(typeof i.style=="number"){n.style=i.style;break}break;case"mdl_dyn_subscription_new_style_nont":case 0:n.style=0;break;case"mdl_dyn_subscription_new_style_live":case 1:n.style=1;break;case"mdl_dyn_subscription_new_style_draw":case 2:n.style=2;break}if(i.dynSubscription!=null){if(typeof i.dynSubscription!="object")throw TypeError(".bilibili.app.dynamic.v2.MdlDynSubscriptionNew.dynSubscription: object expected");n.dynSubscription=u.bilibili.app.dynamic.v2.MdlDynSubscription.fromObject(i.dynSubscription)}if(i.dynLiveRcmd!=null){if(typeof i.dynLiveRcmd!="object")throw TypeError(".bilibili.app.dynamic.v2.MdlDynSubscriptionNew.dynLiveRcmd: object expected");n.dynLiveRcmd=u.bilibili.app.dynamic.v2.MdlDynLiveRcmd.fromObject(i.dynLiveRcmd)}return n},e.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.style=n.enums===String?"mdl_dyn_subscription_new_style_nont":0),i.style!=null&&i.hasOwnProperty("style")&&(o.style=n.enums===String?u.bilibili.app.dynamic.v2.MdlDynSubscriptionNewStyle[i.style]===void 0?i.style:u.bilibili.app.dynamic.v2.MdlDynSubscriptionNewStyle[i.style]:i.style),i.dynSubscription!=null&&i.hasOwnProperty("dynSubscription")&&(o.dynSubscription=u.bilibili.app.dynamic.v2.MdlDynSubscription.toObject(i.dynSubscription,n),n.oneofs&&(o.item="dynSubscription")),i.dynLiveRcmd!=null&&i.hasOwnProperty("dynLiveRcmd")&&(o.dynLiveRcmd=u.bilibili.app.dynamic.v2.MdlDynLiveRcmd.toObject(i.dynLiveRcmd,n),n.oneofs&&(o.item="dynLiveRcmd")),o},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.app.dynamic.v2.MdlDynSubscriptionNew"},e}(),c.MdlDynSubscriptionNewStyle=function(){let e={},l=Object.create(e);return l[e[0]="mdl_dyn_subscription_new_style_nont"]=0,l[e[1]="mdl_dyn_subscription_new_style_live"]=1,l[e[2]="mdl_dyn_subscription_new_style_draw"]=2,l}(),c.MdlDynCourUp=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.desc=t.string();break}case 3:{o.cover=t.string();break}case 4:{o.uri=t.string();break}case 5:{o.text_1=t.string();break}case 6:{o.badge=u.bilibili.app.dynamic.v2.VideoBadge.decode(t,t.uint32());break}case 7:{o.playIcon=t.string();break}case 8:{o.canPlay=t.bool();break}case 9:{o.isPreview=t.bool();break}case 10:{o.avid=t.int64();break}case 11:{o.cid=t.int64();break}case 12:{o.epid=t.int64();break}case 13:{o.duration=t.int64();break}case 14:{o.seasonId=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.MdlDynCourUp)return t;let i=new u.bilibili.app.dynamic.v2.MdlDynCourUp;if(t.title!=null&&(i.title=String(t.title)),t.desc!=null&&(i.desc=String(t.desc)),t.cover!=null&&(i.cover=String(t.cover)),t.uri!=null&&(i.uri=String(t.uri)),t.text_1!=null&&(i.text_1=String(t.text_1)),t.badge!=null){if(typeof t.badge!="object")throw TypeError(".bilibili.app.dynamic.v2.MdlDynCourUp.badge: object expected");i.badge=u.bilibili.app.dynamic.v2.VideoBadge.fromObject(t.badge)}return t.playIcon!=null&&(i.playIcon=String(t.playIcon)),t.canPlay!=null&&(i.canPlay=!!t.canPlay),t.isPreview!=null&&(i.isPreview=!!t.isPreview),t.avid!=null&&(r.Long?(i.avid=r.Long.fromValue(t.avid)).unsigned=!1:typeof t.avid=="string"?i.avid=parseInt(t.avid,10):typeof t.avid=="number"?i.avid=t.avid:typeof t.avid=="object"&&(i.avid=new r.LongBits(t.avid.low>>>0,t.avid.high>>>0).toNumber())),t.cid!=null&&(r.Long?(i.cid=r.Long.fromValue(t.cid)).unsigned=!1:typeof t.cid=="string"?i.cid=parseInt(t.cid,10):typeof t.cid=="number"?i.cid=t.cid:typeof t.cid=="object"&&(i.cid=new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber())),t.epid!=null&&(r.Long?(i.epid=r.Long.fromValue(t.epid)).unsigned=!1:typeof t.epid=="string"?i.epid=parseInt(t.epid,10):typeof t.epid=="number"?i.epid=t.epid:typeof t.epid=="object"&&(i.epid=new r.LongBits(t.epid.low>>>0,t.epid.high>>>0).toNumber())),t.duration!=null&&(r.Long?(i.duration=r.Long.fromValue(t.duration)).unsigned=!1:typeof t.duration=="string"?i.duration=parseInt(t.duration,10):typeof t.duration=="number"?i.duration=t.duration:typeof t.duration=="object"&&(i.duration=new r.LongBits(t.duration.low>>>0,t.duration.high>>>0).toNumber())),t.seasonId!=null&&(r.Long?(i.seasonId=r.Long.fromValue(t.seasonId)).unsigned=!1:typeof t.seasonId=="string"?i.seasonId=parseInt(t.seasonId,10):typeof t.seasonId=="number"?i.seasonId=t.seasonId:typeof t.seasonId=="object"&&(i.seasonId=new r.LongBits(t.seasonId.low>>>0,t.seasonId.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.title="",n.desc="",n.cover="",n.uri="",n.text_1="",n.badge=null,n.playIcon="",n.canPlay=!1,n.isPreview=!1,r.Long){let o=new r.Long(0,0,!1);n.avid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.avid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.cid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.cid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.epid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.epid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.duration=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.duration=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.seasonId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.seasonId=i.longs===String?"0":0}return t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.desc!=null&&t.hasOwnProperty("desc")&&(n.desc=t.desc),t.cover!=null&&t.hasOwnProperty("cover")&&(n.cover=t.cover),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),t.text_1!=null&&t.hasOwnProperty("text_1")&&(n.text_1=t.text_1),t.badge!=null&&t.hasOwnProperty("badge")&&(n.badge=u.bilibili.app.dynamic.v2.VideoBadge.toObject(t.badge,i)),t.playIcon!=null&&t.hasOwnProperty("playIcon")&&(n.playIcon=t.playIcon),t.canPlay!=null&&t.hasOwnProperty("canPlay")&&(n.canPlay=t.canPlay),t.isPreview!=null&&t.hasOwnProperty("isPreview")&&(n.isPreview=t.isPreview),t.avid!=null&&t.hasOwnProperty("avid")&&(typeof t.avid=="number"?n.avid=i.longs===String?String(t.avid):t.avid:n.avid=i.longs===String?r.Long.prototype.toString.call(t.avid):i.longs===Number?new r.LongBits(t.avid.low>>>0,t.avid.high>>>0).toNumber():t.avid),t.cid!=null&&t.hasOwnProperty("cid")&&(typeof t.cid=="number"?n.cid=i.longs===String?String(t.cid):t.cid:n.cid=i.longs===String?r.Long.prototype.toString.call(t.cid):i.longs===Number?new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber():t.cid),t.epid!=null&&t.hasOwnProperty("epid")&&(typeof t.epid=="number"?n.epid=i.longs===String?String(t.epid):t.epid:n.epid=i.longs===String?r.Long.prototype.toString.call(t.epid):i.longs===Number?new r.LongBits(t.epid.low>>>0,t.epid.high>>>0).toNumber():t.epid),t.duration!=null&&t.hasOwnProperty("duration")&&(typeof t.duration=="number"?n.duration=i.longs===String?String(t.duration):t.duration:n.duration=i.longs===String?r.Long.prototype.toString.call(t.duration):i.longs===Number?new r.LongBits(t.duration.low>>>0,t.duration.high>>>0).toNumber():t.duration),t.seasonId!=null&&t.hasOwnProperty("seasonId")&&(typeof t.seasonId=="number"?n.seasonId=i.longs===String?String(t.seasonId):t.seasonId:n.seasonId=i.longs===String?r.Long.prototype.toString.call(t.seasonId):i.longs===Number?new r.LongBits(t.seasonId.low>>>0,t.seasonId.high>>>0).toNumber():t.seasonId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.MdlDynCourUp"},e}(),c.MdlDynTopicSet=function(){function e(l){if(this.topics=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.topics&&o.topics.length||(o.topics=[]),o.topics.push(u.bilibili.app.dynamic.v2.TopicItem.decode(t,t.uint32()));break}case 2:{o.moreBtn=u.bilibili.app.dynamic.v2.IconButton.decode(t,t.uint32());break}case 3:{o.topicSetId=t.int64();break}case 4:{o.pushId=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.MdlDynTopicSet)return t;let i=new u.bilibili.app.dynamic.v2.MdlDynTopicSet;if(t.topics){if(!Array.isArray(t.topics))throw TypeError(".bilibili.app.dynamic.v2.MdlDynTopicSet.topics: array expected");i.topics=[];for(let n=0;n>>0,t.topicSetId.high>>>0).toNumber())),t.pushId!=null&&(r.Long?(i.pushId=r.Long.fromValue(t.pushId)).unsigned=!1:typeof t.pushId=="string"?i.pushId=parseInt(t.pushId,10):typeof t.pushId=="number"?i.pushId=t.pushId:typeof t.pushId=="object"&&(i.pushId=new r.LongBits(t.pushId.low>>>0,t.pushId.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if((i.arrays||i.defaults)&&(n.topics=[]),i.defaults){if(n.moreBtn=null,r.Long){let o=new r.Long(0,0,!1);n.topicSetId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.topicSetId=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.pushId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.pushId=i.longs===String?"0":0}if(t.topics&&t.topics.length){n.topics=[];for(let o=0;o>>0,t.topicSetId.high>>>0).toNumber():t.topicSetId),t.pushId!=null&&t.hasOwnProperty("pushId")&&(typeof t.pushId=="number"?n.pushId=i.longs===String?String(t.pushId):t.pushId:n.pushId=i.longs===String?r.Long.prototype.toString.call(t.pushId):i.longs===Number?new r.LongBits(t.pushId.low>>>0,t.pushId.high>>>0).toNumber():t.pushId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.MdlDynTopicSet"},e}(),c.TopicItem=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.topicId=t.int64();break}case 2:{o.topicName=t.string();break}case 3:{o.url=t.string();break}case 4:{o.desc=t.string();break}case 5:{o.desc_2=t.string();break}case 6:{o.rcmdDesc=t.string();break}case 7:{o.button=u.bilibili.app.dynamic.v2.IconButton.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.TopicItem)return t;let i=new u.bilibili.app.dynamic.v2.TopicItem;if(t.topicId!=null&&(r.Long?(i.topicId=r.Long.fromValue(t.topicId)).unsigned=!1:typeof t.topicId=="string"?i.topicId=parseInt(t.topicId,10):typeof t.topicId=="number"?i.topicId=t.topicId:typeof t.topicId=="object"&&(i.topicId=new r.LongBits(t.topicId.low>>>0,t.topicId.high>>>0).toNumber())),t.topicName!=null&&(i.topicName=String(t.topicName)),t.url!=null&&(i.url=String(t.url)),t.desc!=null&&(i.desc=String(t.desc)),t.desc_2!=null&&(i.desc_2=String(t.desc_2)),t.rcmdDesc!=null&&(i.rcmdDesc=String(t.rcmdDesc)),t.button!=null){if(typeof t.button!="object")throw TypeError(".bilibili.app.dynamic.v2.TopicItem.button: object expected");i.button=u.bilibili.app.dynamic.v2.IconButton.fromObject(t.button)}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.topicId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.topicId=i.longs===String?"0":0;n.topicName="",n.url="",n.desc="",n.desc_2="",n.rcmdDesc="",n.button=null}return t.topicId!=null&&t.hasOwnProperty("topicId")&&(typeof t.topicId=="number"?n.topicId=i.longs===String?String(t.topicId):t.topicId:n.topicId=i.longs===String?r.Long.prototype.toString.call(t.topicId):i.longs===Number?new r.LongBits(t.topicId.low>>>0,t.topicId.high>>>0).toNumber():t.topicId),t.topicName!=null&&t.hasOwnProperty("topicName")&&(n.topicName=t.topicName),t.url!=null&&t.hasOwnProperty("url")&&(n.url=t.url),t.desc!=null&&t.hasOwnProperty("desc")&&(n.desc=t.desc),t.desc_2!=null&&t.hasOwnProperty("desc_2")&&(n.desc_2=t.desc_2),t.rcmdDesc!=null&&t.hasOwnProperty("rcmdDesc")&&(n.rcmdDesc=t.rcmdDesc),t.button!=null&&t.hasOwnProperty("button")&&(n.button=u.bilibili.app.dynamic.v2.IconButton.toObject(t.button,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.TopicItem"},e}(),c.IconButton=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.text=t.string();break}case 2:{o.iconHead=t.string();break}case 3:{o.iconTail=t.string();break}case 4:{o.jumpUri=t.string();break}case 5:{o.routerAction=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.IconButton)return t;let i=new u.bilibili.app.dynamic.v2.IconButton;switch(t.text!=null&&(i.text=String(t.text)),t.iconHead!=null&&(i.iconHead=String(t.iconHead)),t.iconTail!=null&&(i.iconTail=String(t.iconTail)),t.jumpUri!=null&&(i.jumpUri=String(t.jumpUri)),t.routerAction){default:if(typeof t.routerAction=="number"){i.routerAction=t.routerAction;break}break;case"OPEN":case 0:i.routerAction=0;break;case"EMBED":case 1:i.routerAction=1;break}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.text="",n.iconHead="",n.iconTail="",n.jumpUri="",n.routerAction=i.enums===String?"OPEN":0),t.text!=null&&t.hasOwnProperty("text")&&(n.text=t.text),t.iconHead!=null&&t.hasOwnProperty("iconHead")&&(n.iconHead=t.iconHead),t.iconTail!=null&&t.hasOwnProperty("iconTail")&&(n.iconTail=t.iconTail),t.jumpUri!=null&&t.hasOwnProperty("jumpUri")&&(n.jumpUri=t.jumpUri),t.routerAction!=null&&t.hasOwnProperty("routerAction")&&(n.routerAction=i.enums===String?u.bilibili.app.dynamic.v2.RouterAction[t.routerAction]===void 0?t.routerAction:u.bilibili.app.dynamic.v2.RouterAction[t.routerAction]:t.routerAction),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.IconButton"},e}(),c.RouterAction=function(){let e={},l=Object.create(e);return l[e[0]="OPEN"]=0,l[e[1]="EMBED"]=1,l}(),c.ModuleAdditional=function(){function e(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.type=i.int32();break}case 2:{a.pgc=u.bilibili.app.dynamic.v2.AdditionalPGC.decode(i,i.uint32());break}case 3:{a.goods=u.bilibili.app.dynamic.v2.AdditionGoods.decode(i,i.uint32());break}case 4:{a.vote=u.bilibili.app.dynamic.v2.AdditionVote.decode(i,i.uint32());break}case 5:{a.common=u.bilibili.app.dynamic.v2.AdditionCommon.decode(i,i.uint32());break}case 6:{a.esport=u.bilibili.app.dynamic.v2.AdditionEsport.decode(i,i.uint32());break}case 8:{a.vote2=u.bilibili.app.dynamic.v2.AdditionVote2.decode(i,i.uint32());break}case 9:{a.ugc=u.bilibili.app.dynamic.v2.AdditionUgc.decode(i,i.uint32());break}case 10:{a.up=u.bilibili.app.dynamic.v2.AdditionUP.decode(i,i.uint32());break}case 12:{a.article=u.bilibili.app.dynamic.v2.AdditionArticle.decode(i,i.uint32());break}case 13:{a.live=u.bilibili.app.dynamic.v2.AdditionLiveRoom.decode(i,i.uint32());break}case 14:{a.music=u.bilibili.app.dynamic.v2.AdditionMusic.decode(i,i.uint32());break}case 7:{a.rid=i.int64();break}case 11:{a.needWriteCalender=i.bool();break}default:i.skipType(y&7);break}}return a},e.fromObject=function(i){if(i instanceof u.bilibili.app.dynamic.v2.ModuleAdditional)return i;let n=new u.bilibili.app.dynamic.v2.ModuleAdditional;switch(i.type){default:if(typeof i.type=="number"){n.type=i.type;break}break;case"additional_none":case 0:n.type=0;break;case"additional_type_pgc":case 1:n.type=1;break;case"additional_type_goods":case 2:n.type=2;break;case"additional_type_vote":case 3:n.type=3;break;case"additional_type_common":case 4:n.type=4;break;case"additional_type_esport":case 5:n.type=5;break;case"additional_type_up_rcmd":case 6:n.type=6;break;case"additional_type_ugc":case 7:n.type=7;break;case"additional_type_up_reservation":case 8:n.type=8;break;case"additional_type_article":case 9:n.type=9;break;case"additional_type_live_room":case 10:n.type=10;break;case"additional_type_music":case 11:n.type=11;break}if(i.pgc!=null){if(typeof i.pgc!="object")throw TypeError(".bilibili.app.dynamic.v2.ModuleAdditional.pgc: object expected");n.pgc=u.bilibili.app.dynamic.v2.AdditionalPGC.fromObject(i.pgc)}if(i.goods!=null){if(typeof i.goods!="object")throw TypeError(".bilibili.app.dynamic.v2.ModuleAdditional.goods: object expected");n.goods=u.bilibili.app.dynamic.v2.AdditionGoods.fromObject(i.goods)}if(i.vote!=null){if(typeof i.vote!="object")throw TypeError(".bilibili.app.dynamic.v2.ModuleAdditional.vote: object expected");n.vote=u.bilibili.app.dynamic.v2.AdditionVote.fromObject(i.vote)}if(i.common!=null){if(typeof i.common!="object")throw TypeError(".bilibili.app.dynamic.v2.ModuleAdditional.common: object expected");n.common=u.bilibili.app.dynamic.v2.AdditionCommon.fromObject(i.common)}if(i.esport!=null){if(typeof i.esport!="object")throw TypeError(".bilibili.app.dynamic.v2.ModuleAdditional.esport: object expected");n.esport=u.bilibili.app.dynamic.v2.AdditionEsport.fromObject(i.esport)}if(i.vote2!=null){if(typeof i.vote2!="object")throw TypeError(".bilibili.app.dynamic.v2.ModuleAdditional.vote2: object expected");n.vote2=u.bilibili.app.dynamic.v2.AdditionVote2.fromObject(i.vote2)}if(i.ugc!=null){if(typeof i.ugc!="object")throw TypeError(".bilibili.app.dynamic.v2.ModuleAdditional.ugc: object expected");n.ugc=u.bilibili.app.dynamic.v2.AdditionUgc.fromObject(i.ugc)}if(i.up!=null){if(typeof i.up!="object")throw TypeError(".bilibili.app.dynamic.v2.ModuleAdditional.up: object expected");n.up=u.bilibili.app.dynamic.v2.AdditionUP.fromObject(i.up)}if(i.article!=null){if(typeof i.article!="object")throw TypeError(".bilibili.app.dynamic.v2.ModuleAdditional.article: object expected");n.article=u.bilibili.app.dynamic.v2.AdditionArticle.fromObject(i.article)}if(i.live!=null){if(typeof i.live!="object")throw TypeError(".bilibili.app.dynamic.v2.ModuleAdditional.live: object expected");n.live=u.bilibili.app.dynamic.v2.AdditionLiveRoom.fromObject(i.live)}if(i.music!=null){if(typeof i.music!="object")throw TypeError(".bilibili.app.dynamic.v2.ModuleAdditional.music: object expected");n.music=u.bilibili.app.dynamic.v2.AdditionMusic.fromObject(i.music)}return i.rid!=null&&(r.Long?(n.rid=r.Long.fromValue(i.rid)).unsigned=!1:typeof i.rid=="string"?n.rid=parseInt(i.rid,10):typeof i.rid=="number"?n.rid=i.rid:typeof i.rid=="object"&&(n.rid=new r.LongBits(i.rid.low>>>0,i.rid.high>>>0).toNumber())),i.needWriteCalender!=null&&(n.needWriteCalender=!!i.needWriteCalender),n},e.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(o.type=n.enums===String?"additional_none":0,r.Long){let a=new r.Long(0,0,!1);o.rid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.rid=n.longs===String?"0":0;o.needWriteCalender=!1}return i.type!=null&&i.hasOwnProperty("type")&&(o.type=n.enums===String?u.bilibili.app.dynamic.v2.AdditionalType[i.type]===void 0?i.type:u.bilibili.app.dynamic.v2.AdditionalType[i.type]:i.type),i.pgc!=null&&i.hasOwnProperty("pgc")&&(o.pgc=u.bilibili.app.dynamic.v2.AdditionalPGC.toObject(i.pgc,n),n.oneofs&&(o.item="pgc")),i.goods!=null&&i.hasOwnProperty("goods")&&(o.goods=u.bilibili.app.dynamic.v2.AdditionGoods.toObject(i.goods,n),n.oneofs&&(o.item="goods")),i.vote!=null&&i.hasOwnProperty("vote")&&(o.vote=u.bilibili.app.dynamic.v2.AdditionVote.toObject(i.vote,n),n.oneofs&&(o.item="vote")),i.common!=null&&i.hasOwnProperty("common")&&(o.common=u.bilibili.app.dynamic.v2.AdditionCommon.toObject(i.common,n),n.oneofs&&(o.item="common")),i.esport!=null&&i.hasOwnProperty("esport")&&(o.esport=u.bilibili.app.dynamic.v2.AdditionEsport.toObject(i.esport,n),n.oneofs&&(o.item="esport")),i.rid!=null&&i.hasOwnProperty("rid")&&(typeof i.rid=="number"?o.rid=n.longs===String?String(i.rid):i.rid:o.rid=n.longs===String?r.Long.prototype.toString.call(i.rid):n.longs===Number?new r.LongBits(i.rid.low>>>0,i.rid.high>>>0).toNumber():i.rid),i.vote2!=null&&i.hasOwnProperty("vote2")&&(o.vote2=u.bilibili.app.dynamic.v2.AdditionVote2.toObject(i.vote2,n),n.oneofs&&(o.item="vote2")),i.ugc!=null&&i.hasOwnProperty("ugc")&&(o.ugc=u.bilibili.app.dynamic.v2.AdditionUgc.toObject(i.ugc,n),n.oneofs&&(o.item="ugc")),i.up!=null&&i.hasOwnProperty("up")&&(o.up=u.bilibili.app.dynamic.v2.AdditionUP.toObject(i.up,n),n.oneofs&&(o.item="up")),i.needWriteCalender!=null&&i.hasOwnProperty("needWriteCalender")&&(o.needWriteCalender=i.needWriteCalender),i.article!=null&&i.hasOwnProperty("article")&&(o.article=u.bilibili.app.dynamic.v2.AdditionArticle.toObject(i.article,n),n.oneofs&&(o.item="article")),i.live!=null&&i.hasOwnProperty("live")&&(o.live=u.bilibili.app.dynamic.v2.AdditionLiveRoom.toObject(i.live,n),n.oneofs&&(o.item="live")),i.music!=null&&i.hasOwnProperty("music")&&(o.music=u.bilibili.app.dynamic.v2.AdditionMusic.toObject(i.music,n),n.oneofs&&(o.item="music")),o},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.app.dynamic.v2.ModuleAdditional"},e}(),c.AdditionalType=function(){let e={},l=Object.create(e);return l[e[0]="additional_none"]=0,l[e[1]="additional_type_pgc"]=1,l[e[2]="additional_type_goods"]=2,l[e[3]="additional_type_vote"]=3,l[e[4]="additional_type_common"]=4,l[e[5]="additional_type_esport"]=5,l[e[6]="additional_type_up_rcmd"]=6,l[e[7]="additional_type_ugc"]=7,l[e[8]="additional_type_up_reservation"]=8,l[e[9]="additional_type_article"]=9,l[e[10]="additional_type_live_room"]=10,l[e[11]="additional_type_music"]=11,l}(),c.AdditionalPGC=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.headText=t.string();break}case 2:{o.title=t.string();break}case 3:{o.imageUrl=t.string();break}case 4:{o.descText_1=t.string();break}case 5:{o.descText_2=t.string();break}case 6:{o.url=t.string();break}case 7:{o.button=u.bilibili.app.dynamic.v2.AdditionalButton.decode(t,t.uint32());break}case 8:{o.headIcon=t.string();break}case 9:{o.style=t.int32();break}case 10:{o.type=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.AdditionalPGC)return t;let i=new u.bilibili.app.dynamic.v2.AdditionalPGC;if(t.headText!=null&&(i.headText=String(t.headText)),t.title!=null&&(i.title=String(t.title)),t.imageUrl!=null&&(i.imageUrl=String(t.imageUrl)),t.descText_1!=null&&(i.descText_1=String(t.descText_1)),t.descText_2!=null&&(i.descText_2=String(t.descText_2)),t.url!=null&&(i.url=String(t.url)),t.button!=null){if(typeof t.button!="object")throw TypeError(".bilibili.app.dynamic.v2.AdditionalPGC.button: object expected");i.button=u.bilibili.app.dynamic.v2.AdditionalButton.fromObject(t.button)}switch(t.headIcon!=null&&(i.headIcon=String(t.headIcon)),t.style){default:if(typeof t.style=="number"){i.style=t.style;break}break;case"add_style_vertical":case 0:i.style=0;break;case"add_style_square":case 1:i.style=1;break}return t.type!=null&&(i.type=String(t.type)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.headText="",n.title="",n.imageUrl="",n.descText_1="",n.descText_2="",n.url="",n.button=null,n.headIcon="",n.style=i.enums===String?"add_style_vertical":0,n.type=""),t.headText!=null&&t.hasOwnProperty("headText")&&(n.headText=t.headText),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.imageUrl!=null&&t.hasOwnProperty("imageUrl")&&(n.imageUrl=t.imageUrl),t.descText_1!=null&&t.hasOwnProperty("descText_1")&&(n.descText_1=t.descText_1),t.descText_2!=null&&t.hasOwnProperty("descText_2")&&(n.descText_2=t.descText_2),t.url!=null&&t.hasOwnProperty("url")&&(n.url=t.url),t.button!=null&&t.hasOwnProperty("button")&&(n.button=u.bilibili.app.dynamic.v2.AdditionalButton.toObject(t.button,i)),t.headIcon!=null&&t.hasOwnProperty("headIcon")&&(n.headIcon=t.headIcon),t.style!=null&&t.hasOwnProperty("style")&&(n.style=i.enums===String?u.bilibili.app.dynamic.v2.ImageStyle[t.style]===void 0?t.style:u.bilibili.app.dynamic.v2.ImageStyle[t.style]:t.style),t.type!=null&&t.hasOwnProperty("type")&&(n.type=t.type),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.AdditionalPGC"},e}(),c.ImageStyle=function(){let e={},l=Object.create(e);return l[e[0]="add_style_vertical"]=0,l[e[1]="add_style_square"]=1,l}(),c.AdditionGoods=function(){function e(l){if(this.goodsItems=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.rcmdDesc=t.string();break}case 2:{o.goodsItems&&o.goodsItems.length||(o.goodsItems=[]),o.goodsItems.push(u.bilibili.app.dynamic.v2.GoodsItem.decode(t,t.uint32()));break}case 3:{o.cardType=t.string();break}case 4:{o.icon=t.string();break}case 5:{o.uri=t.string();break}case 6:{o.sourceType=t.int32();break}case 7:{o.jumpType=t.int32();break}case 8:{o.appName=t.string();break}case 9:{o.adMarkIcon=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.AdditionGoods)return t;let i=new u.bilibili.app.dynamic.v2.AdditionGoods;if(t.rcmdDesc!=null&&(i.rcmdDesc=String(t.rcmdDesc)),t.goodsItems){if(!Array.isArray(t.goodsItems))throw TypeError(".bilibili.app.dynamic.v2.AdditionGoods.goodsItems: array expected");i.goodsItems=[];for(let n=0;n>>3){case 1:{o.cover=t.string();break}case 2:{o.schemaPackageName=t.string();break}case 3:{o.sourceType=t.int32();break}case 4:{o.jumpUrl=t.string();break}case 5:{o.jumpDesc=t.string();break}case 6:{o.title=t.string();break}case 7:{o.brief=t.string();break}case 8:{o.price=t.string();break}case 9:{o.itemId=t.int64();break}case 10:{o.schemaUrl=t.string();break}case 11:{o.openWhiteList&&o.openWhiteList.length||(o.openWhiteList=[]),o.openWhiteList.push(t.string());break}case 12:{o.userWebV2=t.bool();break}case 13:{o.adMark=t.string();break}case 14:{o.appName=t.string();break}case 15:{o.jumpType=t.int32();break}case 16:{o.cmCachePassthrough=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.GoodsItem)return t;let i=new u.bilibili.app.dynamic.v2.GoodsItem;if(t.cover!=null&&(i.cover=String(t.cover)),t.schemaPackageName!=null&&(i.schemaPackageName=String(t.schemaPackageName)),t.sourceType!=null&&(i.sourceType=t.sourceType|0),t.jumpUrl!=null&&(i.jumpUrl=String(t.jumpUrl)),t.jumpDesc!=null&&(i.jumpDesc=String(t.jumpDesc)),t.title!=null&&(i.title=String(t.title)),t.brief!=null&&(i.brief=String(t.brief)),t.price!=null&&(i.price=String(t.price)),t.itemId!=null&&(r.Long?(i.itemId=r.Long.fromValue(t.itemId)).unsigned=!1:typeof t.itemId=="string"?i.itemId=parseInt(t.itemId,10):typeof t.itemId=="number"?i.itemId=t.itemId:typeof t.itemId=="object"&&(i.itemId=new r.LongBits(t.itemId.low>>>0,t.itemId.high>>>0).toNumber())),t.schemaUrl!=null&&(i.schemaUrl=String(t.schemaUrl)),t.openWhiteList){if(!Array.isArray(t.openWhiteList))throw TypeError(".bilibili.app.dynamic.v2.GoodsItem.openWhiteList: array expected");i.openWhiteList=[];for(let n=0;n>>0,t.itemId.high>>>0).toNumber():t.itemId),t.schemaUrl!=null&&t.hasOwnProperty("schemaUrl")&&(n.schemaUrl=t.schemaUrl),t.openWhiteList&&t.openWhiteList.length){n.openWhiteList=[];for(let o=0;o>>3){case 1:{o.imageUrl=t.string();break}case 2:{o.title=t.string();break}case 3:{o.text_1=t.string();break}case 4:{o.buttonText=t.string();break}case 5:{o.url=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.AdditionVote)return t;let i=new u.bilibili.app.dynamic.v2.AdditionVote;return t.imageUrl!=null&&(i.imageUrl=String(t.imageUrl)),t.title!=null&&(i.title=String(t.title)),t.text_1!=null&&(i.text_1=String(t.text_1)),t.buttonText!=null&&(i.buttonText=String(t.buttonText)),t.url!=null&&(i.url=String(t.url)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.imageUrl="",n.title="",n.text_1="",n.buttonText="",n.url=""),t.imageUrl!=null&&t.hasOwnProperty("imageUrl")&&(n.imageUrl=t.imageUrl),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.text_1!=null&&t.hasOwnProperty("text_1")&&(n.text_1=t.text_1),t.buttonText!=null&&t.hasOwnProperty("buttonText")&&(n.buttonText=t.buttonText),t.url!=null&&t.hasOwnProperty("url")&&(n.url=t.url),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.AdditionVote"},e}(),c.AdditionUgc=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.headText=t.string();break}case 2:{o.title=t.string();break}case 3:{o.cover=t.string();break}case 4:{o.descText_1=t.string();break}case 5:{o.descText_2=t.string();break}case 6:{o.uri=t.string();break}case 7:{o.duration=t.string();break}case 8:{o.lineFeed=t.bool();break}case 9:{o.cardType=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.AdditionUgc)return t;let i=new u.bilibili.app.dynamic.v2.AdditionUgc;return t.headText!=null&&(i.headText=String(t.headText)),t.title!=null&&(i.title=String(t.title)),t.cover!=null&&(i.cover=String(t.cover)),t.descText_1!=null&&(i.descText_1=String(t.descText_1)),t.descText_2!=null&&(i.descText_2=String(t.descText_2)),t.uri!=null&&(i.uri=String(t.uri)),t.duration!=null&&(i.duration=String(t.duration)),t.lineFeed!=null&&(i.lineFeed=!!t.lineFeed),t.cardType!=null&&(i.cardType=String(t.cardType)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.headText="",n.title="",n.cover="",n.descText_1="",n.descText_2="",n.uri="",n.duration="",n.lineFeed=!1,n.cardType=""),t.headText!=null&&t.hasOwnProperty("headText")&&(n.headText=t.headText),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.cover!=null&&t.hasOwnProperty("cover")&&(n.cover=t.cover),t.descText_1!=null&&t.hasOwnProperty("descText_1")&&(n.descText_1=t.descText_1),t.descText_2!=null&&t.hasOwnProperty("descText_2")&&(n.descText_2=t.descText_2),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),t.duration!=null&&t.hasOwnProperty("duration")&&(n.duration=t.duration),t.lineFeed!=null&&t.hasOwnProperty("lineFeed")&&(n.lineFeed=t.lineFeed),t.cardType!=null&&t.hasOwnProperty("cardType")&&(n.cardType=t.cardType),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.AdditionUgc"},e}(),c.AdditionCommon=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.headText=t.string();break}case 2:{o.title=t.string();break}case 3:{o.imageUrl=t.string();break}case 4:{o.descText_1=t.string();break}case 5:{o.descText_2=t.string();break}case 6:{o.url=t.string();break}case 7:{o.button=u.bilibili.app.dynamic.v2.AdditionalButton.decode(t,t.uint32());break}case 8:{o.headIcon=t.string();break}case 9:{o.style=t.int32();break}case 10:{o.type=t.string();break}case 11:{o.cardType=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.AdditionCommon)return t;let i=new u.bilibili.app.dynamic.v2.AdditionCommon;if(t.headText!=null&&(i.headText=String(t.headText)),t.title!=null&&(i.title=String(t.title)),t.imageUrl!=null&&(i.imageUrl=String(t.imageUrl)),t.descText_1!=null&&(i.descText_1=String(t.descText_1)),t.descText_2!=null&&(i.descText_2=String(t.descText_2)),t.url!=null&&(i.url=String(t.url)),t.button!=null){if(typeof t.button!="object")throw TypeError(".bilibili.app.dynamic.v2.AdditionCommon.button: object expected");i.button=u.bilibili.app.dynamic.v2.AdditionalButton.fromObject(t.button)}switch(t.headIcon!=null&&(i.headIcon=String(t.headIcon)),t.style){default:if(typeof t.style=="number"){i.style=t.style;break}break;case"add_style_vertical":case 0:i.style=0;break;case"add_style_square":case 1:i.style=1;break}return t.type!=null&&(i.type=String(t.type)),t.cardType!=null&&(i.cardType=String(t.cardType)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.headText="",n.title="",n.imageUrl="",n.descText_1="",n.descText_2="",n.url="",n.button=null,n.headIcon="",n.style=i.enums===String?"add_style_vertical":0,n.type="",n.cardType=""),t.headText!=null&&t.hasOwnProperty("headText")&&(n.headText=t.headText),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.imageUrl!=null&&t.hasOwnProperty("imageUrl")&&(n.imageUrl=t.imageUrl),t.descText_1!=null&&t.hasOwnProperty("descText_1")&&(n.descText_1=t.descText_1),t.descText_2!=null&&t.hasOwnProperty("descText_2")&&(n.descText_2=t.descText_2),t.url!=null&&t.hasOwnProperty("url")&&(n.url=t.url),t.button!=null&&t.hasOwnProperty("button")&&(n.button=u.bilibili.app.dynamic.v2.AdditionalButton.toObject(t.button,i)),t.headIcon!=null&&t.hasOwnProperty("headIcon")&&(n.headIcon=t.headIcon),t.style!=null&&t.hasOwnProperty("style")&&(n.style=i.enums===String?u.bilibili.app.dynamic.v2.ImageStyle[t.style]===void 0?t.style:u.bilibili.app.dynamic.v2.ImageStyle[t.style]:t.style),t.type!=null&&t.hasOwnProperty("type")&&(n.type=t.type),t.cardType!=null&&t.hasOwnProperty("cardType")&&(n.cardType=t.cardType),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.AdditionCommon"},e}(),c.AdditionEsport=function(){function e(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.style=i.int32();break}case 2:{a.additionEsportMoba=u.bilibili.app.dynamic.v2.AdditionEsportMoba.decode(i,i.uint32());break}case 3:{a.type=i.string();break}case 4:{a.cardType=i.string();break}default:i.skipType(y&7);break}}return a},e.fromObject=function(i){if(i instanceof u.bilibili.app.dynamic.v2.AdditionEsport)return i;let n=new u.bilibili.app.dynamic.v2.AdditionEsport;switch(i.style){default:if(typeof i.style=="number"){n.style=i.style;break}break;case"moba":case 0:n.style=0;break}if(i.additionEsportMoba!=null){if(typeof i.additionEsportMoba!="object")throw TypeError(".bilibili.app.dynamic.v2.AdditionEsport.additionEsportMoba: object expected");n.additionEsportMoba=u.bilibili.app.dynamic.v2.AdditionEsportMoba.fromObject(i.additionEsportMoba)}return i.type!=null&&(n.type=String(i.type)),i.cardType!=null&&(n.cardType=String(i.cardType)),n},e.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.style=n.enums===String?"moba":0,o.type="",o.cardType=""),i.style!=null&&i.hasOwnProperty("style")&&(o.style=n.enums===String?u.bilibili.app.dynamic.v2.EspaceStyle[i.style]===void 0?i.style:u.bilibili.app.dynamic.v2.EspaceStyle[i.style]:i.style),i.additionEsportMoba!=null&&i.hasOwnProperty("additionEsportMoba")&&(o.additionEsportMoba=u.bilibili.app.dynamic.v2.AdditionEsportMoba.toObject(i.additionEsportMoba,n),n.oneofs&&(o.item="additionEsportMoba")),i.type!=null&&i.hasOwnProperty("type")&&(o.type=i.type),i.cardType!=null&&i.hasOwnProperty("cardType")&&(o.cardType=i.cardType),o},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.app.dynamic.v2.AdditionEsport"},e}(),c.EspaceStyle=function(){let e={},l=Object.create(e);return l[e[0]="moba"]=0,l}(),c.AdditionEsportMoba=function(){function e(l){if(this.matchTeam=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.headText=t.string();break}case 2:{o.title=t.string();break}case 3:{o.matchTeam&&o.matchTeam.length||(o.matchTeam=[]),o.matchTeam.push(u.bilibili.app.dynamic.v2.MatchTeam.decode(t,t.uint32()));break}case 4:{o.additionEsportMobaStatus=u.bilibili.app.dynamic.v2.AdditionEsportMobaStatus.decode(t,t.uint32());break}case 5:{o.uri=t.string();break}case 6:{o.button=u.bilibili.app.dynamic.v2.AdditionalButton.decode(t,t.uint32());break}case 7:{o.subTitle=t.string();break}case 10:{o.type=t.string();break}case 11:{o.cardType=t.string();break}case 12:{o.headIcon=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.AdditionEsportMoba)return t;let i=new u.bilibili.app.dynamic.v2.AdditionEsportMoba;if(t.headText!=null&&(i.headText=String(t.headText)),t.title!=null&&(i.title=String(t.title)),t.matchTeam){if(!Array.isArray(t.matchTeam))throw TypeError(".bilibili.app.dynamic.v2.AdditionEsportMoba.matchTeam: array expected");i.matchTeam=[];for(let n=0;n>>3){case 1:{o.additionEsportMobaStatusDesc&&o.additionEsportMobaStatusDesc.length||(o.additionEsportMobaStatusDesc=[]),o.additionEsportMobaStatusDesc.push(u.bilibili.app.dynamic.v2.AdditionEsportMobaStatusDesc.decode(t,t.uint32()));break}case 2:{o.title=t.string();break}case 3:{o.status=t.int32();break}case 4:{o.color=t.string();break}case 5:{o.nightColor=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.AdditionEsportMobaStatus)return t;let i=new u.bilibili.app.dynamic.v2.AdditionEsportMobaStatus;if(t.additionEsportMobaStatusDesc){if(!Array.isArray(t.additionEsportMobaStatusDesc))throw TypeError(".bilibili.app.dynamic.v2.AdditionEsportMobaStatus.additionEsportMobaStatusDesc: array expected");i.additionEsportMobaStatusDesc=[];for(let n=0;n>>3){case 1:{o.title=t.string();break}case 2:{o.color=t.string();break}case 3:{o.nightColor=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.AdditionEsportMobaStatusDesc)return t;let i=new u.bilibili.app.dynamic.v2.AdditionEsportMobaStatusDesc;return t.title!=null&&(i.title=String(t.title)),t.color!=null&&(i.color=String(t.color)),t.nightColor!=null&&(i.nightColor=String(t.nightColor)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.title="",n.color="",n.nightColor=""),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.color!=null&&t.hasOwnProperty("color")&&(n.color=t.color),t.nightColor!=null&&t.hasOwnProperty("nightColor")&&(n.nightColor=t.nightColor),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.AdditionEsportMobaStatusDesc"},e}(),c.MatchTeam=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.id=t.int64();break}case 2:{o.name=t.string();break}case 3:{o.cover=t.string();break}case 4:{o.color=t.string();break}case 5:{o.nightColor=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.MatchTeam)return t;let i=new u.bilibili.app.dynamic.v2.MatchTeam;return t.id!=null&&(r.Long?(i.id=r.Long.fromValue(t.id)).unsigned=!1:typeof t.id=="string"?i.id=parseInt(t.id,10):typeof t.id=="number"?i.id=t.id:typeof t.id=="object"&&(i.id=new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber())),t.name!=null&&(i.name=String(t.name)),t.cover!=null&&(i.cover=String(t.cover)),t.color!=null&&(i.color=String(t.color)),t.nightColor!=null&&(i.nightColor=String(t.nightColor)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.id=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.id=i.longs===String?"0":0;n.name="",n.cover="",n.color="",n.nightColor=""}return t.id!=null&&t.hasOwnProperty("id")&&(typeof t.id=="number"?n.id=i.longs===String?String(t.id):t.id:n.id=i.longs===String?r.Long.prototype.toString.call(t.id):i.longs===Number?new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber():t.id),t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),t.cover!=null&&t.hasOwnProperty("cover")&&(n.cover=t.cover),t.color!=null&&t.hasOwnProperty("color")&&(n.color=t.color),t.nightColor!=null&&t.hasOwnProperty("nightColor")&&(n.nightColor=t.nightColor),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.MatchTeam"},e}(),c.AdditionUP=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.descText_1=u.bilibili.app.dynamic.v2.HighlightText.decode(t,t.uint32());break}case 3:{o.descText_2=t.string();break}case 4:{o.url=t.string();break}case 5:{o.button=u.bilibili.app.dynamic.v2.AdditionalButton.decode(t,t.uint32());break}case 6:{o.cardType=t.string();break}case 7:{o.reserveTotal=t.int64();break}case 8:{o.actSkin=u.bilibili.app.dynamic.v2.AdditionalActSkin.decode(t,t.uint32());break}case 9:{o.rid=t.int64();break}case 10:{o.lotteryType=t.int32();break}case 11:{o.descText_3=u.bilibili.app.dynamic.v2.HighlightText.decode(t,t.uint32());break}case 12:{o.upMid=t.int64();break}case 13:{o.userInfo=u.bilibili.app.dynamic.v2.AdditionUserInfo.decode(t,t.uint32());break}case 14:{o.dynamicId=t.string();break}case 15:{o.showText_2=t.bool();break}case 16:{o.dynType=t.int64();break}case 17:{o.businessId=t.string();break}case 18:{o.badgeText=t.string();break}case 19:{o.isPremiere=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.AdditionUP)return t;let i=new u.bilibili.app.dynamic.v2.AdditionUP;if(t.title!=null&&(i.title=String(t.title)),t.descText_1!=null){if(typeof t.descText_1!="object")throw TypeError(".bilibili.app.dynamic.v2.AdditionUP.descText_1: object expected");i.descText_1=u.bilibili.app.dynamic.v2.HighlightText.fromObject(t.descText_1)}if(t.descText_2!=null&&(i.descText_2=String(t.descText_2)),t.url!=null&&(i.url=String(t.url)),t.button!=null){if(typeof t.button!="object")throw TypeError(".bilibili.app.dynamic.v2.AdditionUP.button: object expected");i.button=u.bilibili.app.dynamic.v2.AdditionalButton.fromObject(t.button)}if(t.cardType!=null&&(i.cardType=String(t.cardType)),t.reserveTotal!=null&&(r.Long?(i.reserveTotal=r.Long.fromValue(t.reserveTotal)).unsigned=!1:typeof t.reserveTotal=="string"?i.reserveTotal=parseInt(t.reserveTotal,10):typeof t.reserveTotal=="number"?i.reserveTotal=t.reserveTotal:typeof t.reserveTotal=="object"&&(i.reserveTotal=new r.LongBits(t.reserveTotal.low>>>0,t.reserveTotal.high>>>0).toNumber())),t.actSkin!=null){if(typeof t.actSkin!="object")throw TypeError(".bilibili.app.dynamic.v2.AdditionUP.actSkin: object expected");i.actSkin=u.bilibili.app.dynamic.v2.AdditionalActSkin.fromObject(t.actSkin)}switch(t.rid!=null&&(r.Long?(i.rid=r.Long.fromValue(t.rid)).unsigned=!1:typeof t.rid=="string"?i.rid=parseInt(t.rid,10):typeof t.rid=="number"?i.rid=t.rid:typeof t.rid=="object"&&(i.rid=new r.LongBits(t.rid.low>>>0,t.rid.high>>>0).toNumber())),t.lotteryType){default:if(typeof t.lotteryType=="number"){i.lotteryType=t.lotteryType;break}break;case"reserve_relation_lottery_type_default":case 0:i.lotteryType=0;break;case"reserve_relation_lottery_type_cron":case 1:i.lotteryType=1;break}if(t.descText_3!=null){if(typeof t.descText_3!="object")throw TypeError(".bilibili.app.dynamic.v2.AdditionUP.descText_3: object expected");i.descText_3=u.bilibili.app.dynamic.v2.HighlightText.fromObject(t.descText_3)}if(t.upMid!=null&&(r.Long?(i.upMid=r.Long.fromValue(t.upMid)).unsigned=!1:typeof t.upMid=="string"?i.upMid=parseInt(t.upMid,10):typeof t.upMid=="number"?i.upMid=t.upMid:typeof t.upMid=="object"&&(i.upMid=new r.LongBits(t.upMid.low>>>0,t.upMid.high>>>0).toNumber())),t.userInfo!=null){if(typeof t.userInfo!="object")throw TypeError(".bilibili.app.dynamic.v2.AdditionUP.userInfo: object expected");i.userInfo=u.bilibili.app.dynamic.v2.AdditionUserInfo.fromObject(t.userInfo)}return t.dynamicId!=null&&(i.dynamicId=String(t.dynamicId)),t.showText_2!=null&&(i.showText_2=!!t.showText_2),t.dynType!=null&&(r.Long?(i.dynType=r.Long.fromValue(t.dynType)).unsigned=!1:typeof t.dynType=="string"?i.dynType=parseInt(t.dynType,10):typeof t.dynType=="number"?i.dynType=t.dynType:typeof t.dynType=="object"&&(i.dynType=new r.LongBits(t.dynType.low>>>0,t.dynType.high>>>0).toNumber())),t.businessId!=null&&(i.businessId=String(t.businessId)),t.badgeText!=null&&(i.badgeText=String(t.badgeText)),t.isPremiere!=null&&(i.isPremiere=!!t.isPremiere),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.title="",n.descText_1=null,n.descText_2="",n.url="",n.button=null,n.cardType="",r.Long){let o=new r.Long(0,0,!1);n.reserveTotal=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.reserveTotal=i.longs===String?"0":0;if(n.actSkin=null,r.Long){let o=new r.Long(0,0,!1);n.rid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.rid=i.longs===String?"0":0;if(n.lotteryType=i.enums===String?"reserve_relation_lottery_type_default":0,n.descText_3=null,r.Long){let o=new r.Long(0,0,!1);n.upMid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.upMid=i.longs===String?"0":0;if(n.userInfo=null,n.dynamicId="",n.showText_2=!1,r.Long){let o=new r.Long(0,0,!1);n.dynType=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.dynType=i.longs===String?"0":0;n.businessId="",n.badgeText="",n.isPremiere=!1}return t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.descText_1!=null&&t.hasOwnProperty("descText_1")&&(n.descText_1=u.bilibili.app.dynamic.v2.HighlightText.toObject(t.descText_1,i)),t.descText_2!=null&&t.hasOwnProperty("descText_2")&&(n.descText_2=t.descText_2),t.url!=null&&t.hasOwnProperty("url")&&(n.url=t.url),t.button!=null&&t.hasOwnProperty("button")&&(n.button=u.bilibili.app.dynamic.v2.AdditionalButton.toObject(t.button,i)),t.cardType!=null&&t.hasOwnProperty("cardType")&&(n.cardType=t.cardType),t.reserveTotal!=null&&t.hasOwnProperty("reserveTotal")&&(typeof t.reserveTotal=="number"?n.reserveTotal=i.longs===String?String(t.reserveTotal):t.reserveTotal:n.reserveTotal=i.longs===String?r.Long.prototype.toString.call(t.reserveTotal):i.longs===Number?new r.LongBits(t.reserveTotal.low>>>0,t.reserveTotal.high>>>0).toNumber():t.reserveTotal),t.actSkin!=null&&t.hasOwnProperty("actSkin")&&(n.actSkin=u.bilibili.app.dynamic.v2.AdditionalActSkin.toObject(t.actSkin,i)),t.rid!=null&&t.hasOwnProperty("rid")&&(typeof t.rid=="number"?n.rid=i.longs===String?String(t.rid):t.rid:n.rid=i.longs===String?r.Long.prototype.toString.call(t.rid):i.longs===Number?new r.LongBits(t.rid.low>>>0,t.rid.high>>>0).toNumber():t.rid),t.lotteryType!=null&&t.hasOwnProperty("lotteryType")&&(n.lotteryType=i.enums===String?u.bilibili.app.dynamic.v2.ReserveRelationLotteryType[t.lotteryType]===void 0?t.lotteryType:u.bilibili.app.dynamic.v2.ReserveRelationLotteryType[t.lotteryType]:t.lotteryType),t.descText_3!=null&&t.hasOwnProperty("descText_3")&&(n.descText_3=u.bilibili.app.dynamic.v2.HighlightText.toObject(t.descText_3,i)),t.upMid!=null&&t.hasOwnProperty("upMid")&&(typeof t.upMid=="number"?n.upMid=i.longs===String?String(t.upMid):t.upMid:n.upMid=i.longs===String?r.Long.prototype.toString.call(t.upMid):i.longs===Number?new r.LongBits(t.upMid.low>>>0,t.upMid.high>>>0).toNumber():t.upMid),t.userInfo!=null&&t.hasOwnProperty("userInfo")&&(n.userInfo=u.bilibili.app.dynamic.v2.AdditionUserInfo.toObject(t.userInfo,i)),t.dynamicId!=null&&t.hasOwnProperty("dynamicId")&&(n.dynamicId=t.dynamicId),t.showText_2!=null&&t.hasOwnProperty("showText_2")&&(n.showText_2=t.showText_2),t.dynType!=null&&t.hasOwnProperty("dynType")&&(typeof t.dynType=="number"?n.dynType=i.longs===String?String(t.dynType):t.dynType:n.dynType=i.longs===String?r.Long.prototype.toString.call(t.dynType):i.longs===Number?new r.LongBits(t.dynType.low>>>0,t.dynType.high>>>0).toNumber():t.dynType),t.businessId!=null&&t.hasOwnProperty("businessId")&&(n.businessId=t.businessId),t.badgeText!=null&&t.hasOwnProperty("badgeText")&&(n.badgeText=t.badgeText),t.isPremiere!=null&&t.hasOwnProperty("isPremiere")&&(n.isPremiere=t.isPremiere),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.AdditionUP"},e}(),c.AdditionUserInfo=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.name=t.string();break}case 2:{o.face=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.AdditionUserInfo)return t;let i=new u.bilibili.app.dynamic.v2.AdditionUserInfo;return t.name!=null&&(i.name=String(t.name)),t.face!=null&&(i.face=String(t.face)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.name="",n.face=""),t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),t.face!=null&&t.hasOwnProperty("face")&&(n.face=t.face),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.AdditionUserInfo"},e}(),c.AdditionalActSkin=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.svga=t.string();break}case 2:{o.lastImage=t.string();break}case 3:{o.playTimes=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.AdditionalActSkin)return t;let i=new u.bilibili.app.dynamic.v2.AdditionalActSkin;return t.svga!=null&&(i.svga=String(t.svga)),t.lastImage!=null&&(i.lastImage=String(t.lastImage)),t.playTimes!=null&&(r.Long?(i.playTimes=r.Long.fromValue(t.playTimes)).unsigned=!1:typeof t.playTimes=="string"?i.playTimes=parseInt(t.playTimes,10):typeof t.playTimes=="number"?i.playTimes=t.playTimes:typeof t.playTimes=="object"&&(i.playTimes=new r.LongBits(t.playTimes.low>>>0,t.playTimes.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(n.svga="",n.lastImage="",r.Long){let o=new r.Long(0,0,!1);n.playTimes=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.playTimes=i.longs===String?"0":0;return t.svga!=null&&t.hasOwnProperty("svga")&&(n.svga=t.svga),t.lastImage!=null&&t.hasOwnProperty("lastImage")&&(n.lastImage=t.lastImage),t.playTimes!=null&&t.hasOwnProperty("playTimes")&&(typeof t.playTimes=="number"?n.playTimes=i.longs===String?String(t.playTimes):t.playTimes:n.playTimes=i.longs===String?r.Long.prototype.toString.call(t.playTimes):i.longs===Number?new r.LongBits(t.playTimes.low>>>0,t.playTimes.high>>>0).toNumber():t.playTimes),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.AdditionalActSkin"},e}(),c.HighlightText=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.text=t.string();break}case 2:{o.textStyle=t.int32();break}case 3:{o.jumpUrl=t.string();break}case 4:{o.icon=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.HighlightText)return t;let i=new u.bilibili.app.dynamic.v2.HighlightText;switch(t.text!=null&&(i.text=String(t.text)),t.textStyle){default:if(typeof t.textStyle=="number"){i.textStyle=t.textStyle;break}break;case"style_none":case 0:i.textStyle=0;break;case"style_highlight":case 1:i.textStyle=1;break}return t.jumpUrl!=null&&(i.jumpUrl=String(t.jumpUrl)),t.icon!=null&&(i.icon=String(t.icon)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.text="",n.textStyle=i.enums===String?"style_none":0,n.jumpUrl="",n.icon=""),t.text!=null&&t.hasOwnProperty("text")&&(n.text=t.text),t.textStyle!=null&&t.hasOwnProperty("textStyle")&&(n.textStyle=i.enums===String?u.bilibili.app.dynamic.v2.HighlightTextStyle[t.textStyle]===void 0?t.textStyle:u.bilibili.app.dynamic.v2.HighlightTextStyle[t.textStyle]:t.textStyle),t.jumpUrl!=null&&t.hasOwnProperty("jumpUrl")&&(n.jumpUrl=t.jumpUrl),t.icon!=null&&t.hasOwnProperty("icon")&&(n.icon=t.icon),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.HighlightText"},e}(),c.HighlightTextStyle=function(){let e={},l=Object.create(e);return l[e[0]="style_none"]=0,l[e[1]="style_highlight"]=1,l}(),c.ReserveRelationLotteryType=function(){let e={},l=Object.create(e);return l[e[0]="reserve_relation_lottery_type_default"]=0,l[e[1]="reserve_relation_lottery_type_cron"]=1,l}(),c.AdditionArticle=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.cover=u.bilibili.app.dynamic.v2.MdlDynDrawItem.decode(t,t.uint32());break}case 3:{o.descTextLeft=t.string();break}case 4:{o.descTextRight=t.string();break}case 5:{o.uri=t.string();break}case 6:{o.cardType=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.AdditionArticle)return t;let i=new u.bilibili.app.dynamic.v2.AdditionArticle;if(t.title!=null&&(i.title=String(t.title)),t.cover!=null){if(typeof t.cover!="object")throw TypeError(".bilibili.app.dynamic.v2.AdditionArticle.cover: object expected");i.cover=u.bilibili.app.dynamic.v2.MdlDynDrawItem.fromObject(t.cover)}return t.descTextLeft!=null&&(i.descTextLeft=String(t.descTextLeft)),t.descTextRight!=null&&(i.descTextRight=String(t.descTextRight)),t.uri!=null&&(i.uri=String(t.uri)),t.cardType!=null&&(i.cardType=String(t.cardType)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.title="",n.cover=null,n.descTextLeft="",n.descTextRight="",n.uri="",n.cardType=""),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.cover!=null&&t.hasOwnProperty("cover")&&(n.cover=u.bilibili.app.dynamic.v2.MdlDynDrawItem.toObject(t.cover,i)),t.descTextLeft!=null&&t.hasOwnProperty("descTextLeft")&&(n.descTextLeft=t.descTextLeft),t.descTextRight!=null&&t.hasOwnProperty("descTextRight")&&(n.descTextRight=t.descTextRight),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),t.cardType!=null&&t.hasOwnProperty("cardType")&&(n.cardType=t.cardType),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.AdditionArticle"},e}(),c.AdditionLiveRoom=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.cover=t.string();break}case 3:{o.badge=u.bilibili.app.dynamic.v2.VideoBadge.decode(t,t.uint32());break}case 4:{o.descTextUpper=u.bilibili.app.dynamic.v2.CoverIconWithText.decode(t,t.uint32());break}case 5:{o.descTextLower=t.string();break}case 6:{o.uri=t.string();break}case 7:{o.cardType=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.AdditionLiveRoom)return t;let i=new u.bilibili.app.dynamic.v2.AdditionLiveRoom;if(t.title!=null&&(i.title=String(t.title)),t.cover!=null&&(i.cover=String(t.cover)),t.badge!=null){if(typeof t.badge!="object")throw TypeError(".bilibili.app.dynamic.v2.AdditionLiveRoom.badge: object expected");i.badge=u.bilibili.app.dynamic.v2.VideoBadge.fromObject(t.badge)}if(t.descTextUpper!=null){if(typeof t.descTextUpper!="object")throw TypeError(".bilibili.app.dynamic.v2.AdditionLiveRoom.descTextUpper: object expected");i.descTextUpper=u.bilibili.app.dynamic.v2.CoverIconWithText.fromObject(t.descTextUpper)}return t.descTextLower!=null&&(i.descTextLower=String(t.descTextLower)),t.uri!=null&&(i.uri=String(t.uri)),t.cardType!=null&&(i.cardType=String(t.cardType)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.title="",n.cover="",n.badge=null,n.descTextUpper=null,n.descTextLower="",n.uri="",n.cardType=""),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.cover!=null&&t.hasOwnProperty("cover")&&(n.cover=t.cover),t.badge!=null&&t.hasOwnProperty("badge")&&(n.badge=u.bilibili.app.dynamic.v2.VideoBadge.toObject(t.badge,i)),t.descTextUpper!=null&&t.hasOwnProperty("descTextUpper")&&(n.descTextUpper=u.bilibili.app.dynamic.v2.CoverIconWithText.toObject(t.descTextUpper,i)),t.descTextLower!=null&&t.hasOwnProperty("descTextLower")&&(n.descTextLower=t.descTextLower),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),t.cardType!=null&&t.hasOwnProperty("cardType")&&(n.cardType=t.cardType),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.AdditionLiveRoom"},e}(),c.AdditionMusic=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.musicCard=u.bilibili.app.dynamic.v2.MdlDynMusic.decode(t,t.uint32());break}case 2:{o.cardType=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.AdditionMusic)return t;let i=new u.bilibili.app.dynamic.v2.AdditionMusic;if(t.musicCard!=null){if(typeof t.musicCard!="object")throw TypeError(".bilibili.app.dynamic.v2.AdditionMusic.musicCard: object expected");i.musicCard=u.bilibili.app.dynamic.v2.MdlDynMusic.fromObject(t.musicCard)}return t.cardType!=null&&(i.cardType=String(t.cardType)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.musicCard=null,n.cardType=""),t.musicCard!=null&&t.hasOwnProperty("musicCard")&&(n.musicCard=u.bilibili.app.dynamic.v2.MdlDynMusic.toObject(t.musicCard,i)),t.cardType!=null&&t.hasOwnProperty("cardType")&&(n.cardType=t.cardType),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.AdditionMusic"},e}(),c.CoverIcon=function(){let e={},l=Object.create(e);return l[e[0]="cover_icon_none"]=0,l[e[1]="cover_icon_play"]=1,l[e[2]="cover_icon_danmaku"]=2,l[e[3]="cover_icon_up"]=3,l[e[4]="cover_icon_vt"]=4,l[e[5]="cover_icon_view_cnt"]=5,l[e[6]="cover_icon_thumb_up"]=6,l}(),c.CoverIconWithText=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.icon=t.int32();break}case 2:{o.text=t.string();break}case 3:{o.iconChecked=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.CoverIconWithText)return t;let i=new u.bilibili.app.dynamic.v2.CoverIconWithText;switch(t.icon){default:if(typeof t.icon=="number"){i.icon=t.icon;break}break;case"cover_icon_none":case 0:i.icon=0;break;case"cover_icon_play":case 1:i.icon=1;break;case"cover_icon_danmaku":case 2:i.icon=2;break;case"cover_icon_up":case 3:i.icon=3;break;case"cover_icon_vt":case 4:i.icon=4;break;case"cover_icon_view_cnt":case 5:i.icon=5;break;case"cover_icon_thumb_up":case 6:i.icon=6;break}return t.text!=null&&(i.text=String(t.text)),t.iconChecked!=null&&(i.iconChecked=!!t.iconChecked),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.icon=i.enums===String?"cover_icon_none":0,n.text="",n.iconChecked=!1),t.icon!=null&&t.hasOwnProperty("icon")&&(n.icon=i.enums===String?u.bilibili.app.dynamic.v2.CoverIcon[t.icon]===void 0?t.icon:u.bilibili.app.dynamic.v2.CoverIcon[t.icon]:t.icon),t.text!=null&&t.hasOwnProperty("text")&&(n.text=t.text),t.iconChecked!=null&&t.hasOwnProperty("iconChecked")&&(n.iconChecked=t.iconChecked),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.CoverIconWithText"},e}(),c.AdditionVote2=function(){function e(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.additionVoteType=i.int32();break}case 2:{a.voteId=i.int64();break}case 3:{a.title=i.string();break}case 4:{a.label=i.string();break}case 5:{a.deadline=i.int64();break}case 6:{a.openText=i.string();break}case 7:{a.closeText=i.string();break}case 8:{a.votedText=i.string();break}case 9:{a.state=i.int32();break}case 10:{a.additionVoteWord=u.bilibili.app.dynamic.v2.AdditionVoteWord.decode(i,i.uint32());break}case 11:{a.additionVotePic=u.bilibili.app.dynamic.v2.AdditionVotePic.decode(i,i.uint32());break}case 12:{a.additionVoteDefaule=u.bilibili.app.dynamic.v2.AdditionVoteDefaule.decode(i,i.uint32());break}case 13:{a.bizType=i.int32();break}case 14:{a.total=i.int64();break}case 15:{a.cardType=i.string();break}case 16:{a.tips=i.string();break}case 17:{a.uri=i.string();break}case 18:{a.isVoted=i.bool();break}case 19:{a.choiceCnt=i.int32();break}case 20:{a.defauleSelectShare=i.bool();break}case 21:{a.onlyFansVote=u.bilibili.app.dynamic.v2.OnlyFansVoteProperty.decode(i,i.uint32());break}case 22:{a.voteOwnerMid=i.int64();break}default:i.skipType(y&7);break}}return a},e.fromObject=function(i){if(i instanceof u.bilibili.app.dynamic.v2.AdditionVote2)return i;let n=new u.bilibili.app.dynamic.v2.AdditionVote2;switch(i.additionVoteType){default:if(typeof i.additionVoteType=="number"){n.additionVoteType=i.additionVoteType;break}break;case"addition_vote_type_none":case 0:n.additionVoteType=0;break;case"addition_vote_type_word":case 1:n.additionVoteType=1;break;case"addition_vote_type_pic":case 2:n.additionVoteType=2;break;case"addition_vote_type_default":case 3:n.additionVoteType=3;break}switch(i.voteId!=null&&(r.Long?(n.voteId=r.Long.fromValue(i.voteId)).unsigned=!1:typeof i.voteId=="string"?n.voteId=parseInt(i.voteId,10):typeof i.voteId=="number"?n.voteId=i.voteId:typeof i.voteId=="object"&&(n.voteId=new r.LongBits(i.voteId.low>>>0,i.voteId.high>>>0).toNumber())),i.title!=null&&(n.title=String(i.title)),i.label!=null&&(n.label=String(i.label)),i.deadline!=null&&(r.Long?(n.deadline=r.Long.fromValue(i.deadline)).unsigned=!1:typeof i.deadline=="string"?n.deadline=parseInt(i.deadline,10):typeof i.deadline=="number"?n.deadline=i.deadline:typeof i.deadline=="object"&&(n.deadline=new r.LongBits(i.deadline.low>>>0,i.deadline.high>>>0).toNumber())),i.openText!=null&&(n.openText=String(i.openText)),i.closeText!=null&&(n.closeText=String(i.closeText)),i.votedText!=null&&(n.votedText=String(i.votedText)),i.state){default:if(typeof i.state=="number"){n.state=i.state;break}break;case"addition_vote_state_none":case 0:n.state=0;break;case"addition_vote_state_open":case 1:n.state=1;break;case"addition_vote_state_close":case 2:n.state=2;break}if(i.additionVoteWord!=null){if(typeof i.additionVoteWord!="object")throw TypeError(".bilibili.app.dynamic.v2.AdditionVote2.additionVoteWord: object expected");n.additionVoteWord=u.bilibili.app.dynamic.v2.AdditionVoteWord.fromObject(i.additionVoteWord)}if(i.additionVotePic!=null){if(typeof i.additionVotePic!="object")throw TypeError(".bilibili.app.dynamic.v2.AdditionVote2.additionVotePic: object expected");n.additionVotePic=u.bilibili.app.dynamic.v2.AdditionVotePic.fromObject(i.additionVotePic)}if(i.additionVoteDefaule!=null){if(typeof i.additionVoteDefaule!="object")throw TypeError(".bilibili.app.dynamic.v2.AdditionVote2.additionVoteDefaule: object expected");n.additionVoteDefaule=u.bilibili.app.dynamic.v2.AdditionVoteDefaule.fromObject(i.additionVoteDefaule)}if(i.bizType!=null&&(n.bizType=i.bizType|0),i.total!=null&&(r.Long?(n.total=r.Long.fromValue(i.total)).unsigned=!1:typeof i.total=="string"?n.total=parseInt(i.total,10):typeof i.total=="number"?n.total=i.total:typeof i.total=="object"&&(n.total=new r.LongBits(i.total.low>>>0,i.total.high>>>0).toNumber())),i.cardType!=null&&(n.cardType=String(i.cardType)),i.tips!=null&&(n.tips=String(i.tips)),i.uri!=null&&(n.uri=String(i.uri)),i.isVoted!=null&&(n.isVoted=!!i.isVoted),i.choiceCnt!=null&&(n.choiceCnt=i.choiceCnt|0),i.defauleSelectShare!=null&&(n.defauleSelectShare=!!i.defauleSelectShare),i.onlyFansVote!=null){if(typeof i.onlyFansVote!="object")throw TypeError(".bilibili.app.dynamic.v2.AdditionVote2.onlyFansVote: object expected");n.onlyFansVote=u.bilibili.app.dynamic.v2.OnlyFansVoteProperty.fromObject(i.onlyFansVote)}return i.voteOwnerMid!=null&&(r.Long?(n.voteOwnerMid=r.Long.fromValue(i.voteOwnerMid)).unsigned=!1:typeof i.voteOwnerMid=="string"?n.voteOwnerMid=parseInt(i.voteOwnerMid,10):typeof i.voteOwnerMid=="number"?n.voteOwnerMid=i.voteOwnerMid:typeof i.voteOwnerMid=="object"&&(n.voteOwnerMid=new r.LongBits(i.voteOwnerMid.low>>>0,i.voteOwnerMid.high>>>0).toNumber())),n},e.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(o.additionVoteType=n.enums===String?"addition_vote_type_none":0,r.Long){let a=new r.Long(0,0,!1);o.voteId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.voteId=n.longs===String?"0":0;if(o.title="",o.label="",r.Long){let a=new r.Long(0,0,!1);o.deadline=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.deadline=n.longs===String?"0":0;if(o.openText="",o.closeText="",o.votedText="",o.state=n.enums===String?"addition_vote_state_none":0,o.bizType=0,r.Long){let a=new r.Long(0,0,!1);o.total=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.total=n.longs===String?"0":0;if(o.cardType="",o.tips="",o.uri="",o.isVoted=!1,o.choiceCnt=0,o.defauleSelectShare=!1,o.onlyFansVote=null,r.Long){let a=new r.Long(0,0,!1);o.voteOwnerMid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.voteOwnerMid=n.longs===String?"0":0}return i.additionVoteType!=null&&i.hasOwnProperty("additionVoteType")&&(o.additionVoteType=n.enums===String?u.bilibili.app.dynamic.v2.AdditionVoteType[i.additionVoteType]===void 0?i.additionVoteType:u.bilibili.app.dynamic.v2.AdditionVoteType[i.additionVoteType]:i.additionVoteType),i.voteId!=null&&i.hasOwnProperty("voteId")&&(typeof i.voteId=="number"?o.voteId=n.longs===String?String(i.voteId):i.voteId:o.voteId=n.longs===String?r.Long.prototype.toString.call(i.voteId):n.longs===Number?new r.LongBits(i.voteId.low>>>0,i.voteId.high>>>0).toNumber():i.voteId),i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.label!=null&&i.hasOwnProperty("label")&&(o.label=i.label),i.deadline!=null&&i.hasOwnProperty("deadline")&&(typeof i.deadline=="number"?o.deadline=n.longs===String?String(i.deadline):i.deadline:o.deadline=n.longs===String?r.Long.prototype.toString.call(i.deadline):n.longs===Number?new r.LongBits(i.deadline.low>>>0,i.deadline.high>>>0).toNumber():i.deadline),i.openText!=null&&i.hasOwnProperty("openText")&&(o.openText=i.openText),i.closeText!=null&&i.hasOwnProperty("closeText")&&(o.closeText=i.closeText),i.votedText!=null&&i.hasOwnProperty("votedText")&&(o.votedText=i.votedText),i.state!=null&&i.hasOwnProperty("state")&&(o.state=n.enums===String?u.bilibili.app.dynamic.v2.AdditionVoteState[i.state]===void 0?i.state:u.bilibili.app.dynamic.v2.AdditionVoteState[i.state]:i.state),i.additionVoteWord!=null&&i.hasOwnProperty("additionVoteWord")&&(o.additionVoteWord=u.bilibili.app.dynamic.v2.AdditionVoteWord.toObject(i.additionVoteWord,n),n.oneofs&&(o.item="additionVoteWord")),i.additionVotePic!=null&&i.hasOwnProperty("additionVotePic")&&(o.additionVotePic=u.bilibili.app.dynamic.v2.AdditionVotePic.toObject(i.additionVotePic,n),n.oneofs&&(o.item="additionVotePic")),i.additionVoteDefaule!=null&&i.hasOwnProperty("additionVoteDefaule")&&(o.additionVoteDefaule=u.bilibili.app.dynamic.v2.AdditionVoteDefaule.toObject(i.additionVoteDefaule,n),n.oneofs&&(o.item="additionVoteDefaule")),i.bizType!=null&&i.hasOwnProperty("bizType")&&(o.bizType=i.bizType),i.total!=null&&i.hasOwnProperty("total")&&(typeof i.total=="number"?o.total=n.longs===String?String(i.total):i.total:o.total=n.longs===String?r.Long.prototype.toString.call(i.total):n.longs===Number?new r.LongBits(i.total.low>>>0,i.total.high>>>0).toNumber():i.total),i.cardType!=null&&i.hasOwnProperty("cardType")&&(o.cardType=i.cardType),i.tips!=null&&i.hasOwnProperty("tips")&&(o.tips=i.tips),i.uri!=null&&i.hasOwnProperty("uri")&&(o.uri=i.uri),i.isVoted!=null&&i.hasOwnProperty("isVoted")&&(o.isVoted=i.isVoted),i.choiceCnt!=null&&i.hasOwnProperty("choiceCnt")&&(o.choiceCnt=i.choiceCnt),i.defauleSelectShare!=null&&i.hasOwnProperty("defauleSelectShare")&&(o.defauleSelectShare=i.defauleSelectShare),i.onlyFansVote!=null&&i.hasOwnProperty("onlyFansVote")&&(o.onlyFansVote=u.bilibili.app.dynamic.v2.OnlyFansVoteProperty.toObject(i.onlyFansVote,n)),i.voteOwnerMid!=null&&i.hasOwnProperty("voteOwnerMid")&&(typeof i.voteOwnerMid=="number"?o.voteOwnerMid=n.longs===String?String(i.voteOwnerMid):i.voteOwnerMid:o.voteOwnerMid=n.longs===String?r.Long.prototype.toString.call(i.voteOwnerMid):n.longs===Number?new r.LongBits(i.voteOwnerMid.low>>>0,i.voteOwnerMid.high>>>0).toNumber():i.voteOwnerMid),o},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.app.dynamic.v2.AdditionVote2"},e}(),c.OnlyFansVoteProperty=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.isOnlyFansVote=t.bool();break}case 2:{o.hasVotePermission=t.bool();break}case 3:{o.voteBtnText=t.string();break}case 4:{o.voteBtnUri=t.string();break}case 5:{o.voteAnnotationPart_1=t.string();break}case 6:{o.voteAnnotationPart_2=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.OnlyFansVoteProperty)return t;let i=new u.bilibili.app.dynamic.v2.OnlyFansVoteProperty;return t.isOnlyFansVote!=null&&(i.isOnlyFansVote=!!t.isOnlyFansVote),t.hasVotePermission!=null&&(i.hasVotePermission=!!t.hasVotePermission),t.voteBtnText!=null&&(i.voteBtnText=String(t.voteBtnText)),t.voteBtnUri!=null&&(i.voteBtnUri=String(t.voteBtnUri)),t.voteAnnotationPart_1!=null&&(i.voteAnnotationPart_1=String(t.voteAnnotationPart_1)),t.voteAnnotationPart_2!=null&&(i.voteAnnotationPart_2=String(t.voteAnnotationPart_2)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.isOnlyFansVote=!1,n.hasVotePermission=!1,n.voteBtnText="",n.voteBtnUri="",n.voteAnnotationPart_1="",n.voteAnnotationPart_2=""),t.isOnlyFansVote!=null&&t.hasOwnProperty("isOnlyFansVote")&&(n.isOnlyFansVote=t.isOnlyFansVote),t.hasVotePermission!=null&&t.hasOwnProperty("hasVotePermission")&&(n.hasVotePermission=t.hasVotePermission),t.voteBtnText!=null&&t.hasOwnProperty("voteBtnText")&&(n.voteBtnText=t.voteBtnText),t.voteBtnUri!=null&&t.hasOwnProperty("voteBtnUri")&&(n.voteBtnUri=t.voteBtnUri),t.voteAnnotationPart_1!=null&&t.hasOwnProperty("voteAnnotationPart_1")&&(n.voteAnnotationPart_1=t.voteAnnotationPart_1),t.voteAnnotationPart_2!=null&&t.hasOwnProperty("voteAnnotationPart_2")&&(n.voteAnnotationPart_2=t.voteAnnotationPart_2),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.OnlyFansVoteProperty"},e}(),c.AdditionVoteType=function(){let e={},l=Object.create(e);return l[e[0]="addition_vote_type_none"]=0,l[e[1]="addition_vote_type_word"]=1,l[e[2]="addition_vote_type_pic"]=2,l[e[3]="addition_vote_type_default"]=3,l}(),c.AdditionVoteWord=function(){function e(l){if(this.item=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.item&&o.item.length||(o.item=[]),o.item.push(u.bilibili.app.dynamic.v2.AdditionVoteWordItem.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.AdditionVoteWord)return t;let i=new u.bilibili.app.dynamic.v2.AdditionVoteWord;if(t.item){if(!Array.isArray(t.item))throw TypeError(".bilibili.app.dynamic.v2.AdditionVoteWord.item: array expected");i.item=[];for(let n=0;n>>3){case 1:{o.optIdx=t.int32();break}case 2:{o.title=t.string();break}case 3:{o.isVote=t.bool();break}case 4:{o.total=t.int32();break}case 5:{o.persent=t.double();break}case 6:{o.isMaxOption=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.AdditionVoteWordItem)return t;let i=new u.bilibili.app.dynamic.v2.AdditionVoteWordItem;return t.optIdx!=null&&(i.optIdx=t.optIdx|0),t.title!=null&&(i.title=String(t.title)),t.isVote!=null&&(i.isVote=!!t.isVote),t.total!=null&&(i.total=t.total|0),t.persent!=null&&(i.persent=Number(t.persent)),t.isMaxOption!=null&&(i.isMaxOption=!!t.isMaxOption),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.optIdx=0,n.title="",n.isVote=!1,n.total=0,n.persent=0,n.isMaxOption=!1),t.optIdx!=null&&t.hasOwnProperty("optIdx")&&(n.optIdx=t.optIdx),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.isVote!=null&&t.hasOwnProperty("isVote")&&(n.isVote=t.isVote),t.total!=null&&t.hasOwnProperty("total")&&(n.total=t.total),t.persent!=null&&t.hasOwnProperty("persent")&&(n.persent=i.json&&!isFinite(t.persent)?String(t.persent):t.persent),t.isMaxOption!=null&&t.hasOwnProperty("isMaxOption")&&(n.isMaxOption=t.isMaxOption),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.AdditionVoteWordItem"},e}(),c.AdditionVotePic=function(){function e(l){if(this.item=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.item&&o.item.length||(o.item=[]),o.item.push(u.bilibili.app.dynamic.v2.AdditionVotePicItem.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.AdditionVotePic)return t;let i=new u.bilibili.app.dynamic.v2.AdditionVotePic;if(t.item){if(!Array.isArray(t.item))throw TypeError(".bilibili.app.dynamic.v2.AdditionVotePic.item: array expected");i.item=[];for(let n=0;n>>3){case 1:{o.optIdx=t.int32();break}case 2:{o.cover=t.string();break}case 3:{o.isVote=t.bool();break}case 4:{o.total=t.int32();break}case 5:{o.persent=t.double();break}case 6:{o.title=t.string();break}case 7:{o.isMaxOption=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.AdditionVotePicItem)return t;let i=new u.bilibili.app.dynamic.v2.AdditionVotePicItem;return t.optIdx!=null&&(i.optIdx=t.optIdx|0),t.cover!=null&&(i.cover=String(t.cover)),t.isVote!=null&&(i.isVote=!!t.isVote),t.total!=null&&(i.total=t.total|0),t.persent!=null&&(i.persent=Number(t.persent)),t.title!=null&&(i.title=String(t.title)),t.isMaxOption!=null&&(i.isMaxOption=!!t.isMaxOption),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.optIdx=0,n.cover="",n.isVote=!1,n.total=0,n.persent=0,n.title="",n.isMaxOption=!1),t.optIdx!=null&&t.hasOwnProperty("optIdx")&&(n.optIdx=t.optIdx),t.cover!=null&&t.hasOwnProperty("cover")&&(n.cover=t.cover),t.isVote!=null&&t.hasOwnProperty("isVote")&&(n.isVote=t.isVote),t.total!=null&&t.hasOwnProperty("total")&&(n.total=t.total),t.persent!=null&&t.hasOwnProperty("persent")&&(n.persent=i.json&&!isFinite(t.persent)?String(t.persent):t.persent),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.isMaxOption!=null&&t.hasOwnProperty("isMaxOption")&&(n.isMaxOption=t.isMaxOption),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.AdditionVotePicItem"},e}(),c.AdditionVoteDefaule=function(){function e(l){if(this.cover=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.cover&&o.cover.length||(o.cover=[]),o.cover.push(t.string());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.AdditionVoteDefaule)return t;let i=new u.bilibili.app.dynamic.v2.AdditionVoteDefaule;if(t.cover){if(!Array.isArray(t.cover))throw TypeError(".bilibili.app.dynamic.v2.AdditionVoteDefaule.cover: array expected");i.cover=[];for(let n=0;n>>3){case 1:{o.opusId=t.int64();break}case 2:{o.opusType=t.int32();break}case 3:{o.oid=t.int64();break}case 4:{o.modules&&o.modules.length||(o.modules=[]),o.modules.push(u.bilibili.app.dynamic.v2.Module.decode(t,t.uint32()));break}case 5:{o.extend=u.bilibili.app.dynamic.v2.Extend.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.OpusItem)return t;let i=new u.bilibili.app.dynamic.v2.OpusItem;switch(t.opusId!=null&&(r.Long?(i.opusId=r.Long.fromValue(t.opusId)).unsigned=!1:typeof t.opusId=="string"?i.opusId=parseInt(t.opusId,10):typeof t.opusId=="number"?i.opusId=t.opusId:typeof t.opusId=="object"&&(i.opusId=new r.LongBits(t.opusId.low>>>0,t.opusId.high>>>0).toNumber())),t.opusType){default:if(typeof t.opusType=="number"){i.opusType=t.opusType;break}break;case"OPUS_TYPE_DYN":case 0:i.opusType=0;break;case"OPUS_TYPE_ARTICLE":case 1:i.opusType=1;break;case"OPUS_TYPE_NOTE":case 2:i.opusType=2;break;case"OPUS_TYPE_WORD":case 3:i.opusType=3;break;case"OPUS_TYPE_REPOST":case 4:i.opusType=4;break}if(t.oid!=null&&(r.Long?(i.oid=r.Long.fromValue(t.oid)).unsigned=!1:typeof t.oid=="string"?i.oid=parseInt(t.oid,10):typeof t.oid=="number"?i.oid=t.oid:typeof t.oid=="object"&&(i.oid=new r.LongBits(t.oid.low>>>0,t.oid.high>>>0).toNumber())),t.modules){if(!Array.isArray(t.modules))throw TypeError(".bilibili.app.dynamic.v2.OpusItem.modules: array expected");i.modules=[];for(let n=0;n>>0,t.opusId.high>>>0).toNumber():t.opusId),t.opusType!=null&&t.hasOwnProperty("opusType")&&(n.opusType=i.enums===String?u.bilibili.app.dynamic.v2.OpusType[t.opusType]===void 0?t.opusType:u.bilibili.app.dynamic.v2.OpusType[t.opusType]:t.opusType),t.oid!=null&&t.hasOwnProperty("oid")&&(typeof t.oid=="number"?n.oid=i.longs===String?String(t.oid):t.oid:n.oid=i.longs===String?r.Long.prototype.toString.call(t.oid):i.longs===Number?new r.LongBits(t.oid.low>>>0,t.oid.high>>>0).toNumber():t.oid),t.modules&&t.modules.length){n.modules=[];for(let o=0;o>>3){case 1:{o.opusId=t.int64();break}case 2:{o.cardUri=t.string();break}case 3:{o.coverPic=u.bilibili.app.dynamic.v2.MdlDynDrawItem.decode(t,t.uint32());break}case 4:{o.textParagraph=u.bilibili.app.dynamic.v2.Paragraph.decode(t,t.uint32());break}case 5:{o.bottomText=u.bilibili.app.dynamic.v2.CoverIconWithText.decode(t,t.uint32());break}case 6:{o.clickToast=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.OpusFavItem)return t;let i=new u.bilibili.app.dynamic.v2.OpusFavItem;if(t.opusId!=null&&(r.Long?(i.opusId=r.Long.fromValue(t.opusId)).unsigned=!1:typeof t.opusId=="string"?i.opusId=parseInt(t.opusId,10):typeof t.opusId=="number"?i.opusId=t.opusId:typeof t.opusId=="object"&&(i.opusId=new r.LongBits(t.opusId.low>>>0,t.opusId.high>>>0).toNumber())),t.cardUri!=null&&(i.cardUri=String(t.cardUri)),t.coverPic!=null){if(typeof t.coverPic!="object")throw TypeError(".bilibili.app.dynamic.v2.OpusFavItem.coverPic: object expected");i.coverPic=u.bilibili.app.dynamic.v2.MdlDynDrawItem.fromObject(t.coverPic)}if(t.textParagraph!=null){if(typeof t.textParagraph!="object")throw TypeError(".bilibili.app.dynamic.v2.OpusFavItem.textParagraph: object expected");i.textParagraph=u.bilibili.app.dynamic.v2.Paragraph.fromObject(t.textParagraph)}if(t.bottomText!=null){if(typeof t.bottomText!="object")throw TypeError(".bilibili.app.dynamic.v2.OpusFavItem.bottomText: object expected");i.bottomText=u.bilibili.app.dynamic.v2.CoverIconWithText.fromObject(t.bottomText)}return t.clickToast!=null&&(i.clickToast=String(t.clickToast)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.opusId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.opusId=i.longs===String?"0":0;n.cardUri="",n.coverPic=null,n.textParagraph=null,n.bottomText=null,n.clickToast=""}return t.opusId!=null&&t.hasOwnProperty("opusId")&&(typeof t.opusId=="number"?n.opusId=i.longs===String?String(t.opusId):t.opusId:n.opusId=i.longs===String?r.Long.prototype.toString.call(t.opusId):i.longs===Number?new r.LongBits(t.opusId.low>>>0,t.opusId.high>>>0).toNumber():t.opusId),t.cardUri!=null&&t.hasOwnProperty("cardUri")&&(n.cardUri=t.cardUri),t.coverPic!=null&&t.hasOwnProperty("coverPic")&&(n.coverPic=u.bilibili.app.dynamic.v2.MdlDynDrawItem.toObject(t.coverPic,i)),t.textParagraph!=null&&t.hasOwnProperty("textParagraph")&&(n.textParagraph=u.bilibili.app.dynamic.v2.Paragraph.toObject(t.textParagraph,i)),t.bottomText!=null&&t.hasOwnProperty("bottomText")&&(n.bottomText=u.bilibili.app.dynamic.v2.CoverIconWithText.toObject(t.bottomText,i)),t.clickToast!=null&&t.hasOwnProperty("clickToast")&&(n.clickToast=t.clickToast),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.OpusFavItem"},e}(),c.FlowItemType=function(){let e={},l=Object.create(e);return l[e[0]="FLOW_ITEM_TYPE_INVALID"]=0,l[e[1]="FLOW_ITEM_TYPE_OPUS"]=1,l}(),c.OpusFlowItem=function(){function e(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.itemType=i.int32();break}case 2:{a.oid=i.int64();break}case 3:{a.extend=u.bilibili.app.dynamic.v2.Extend.decode(i,i.uint32());break}case 4:{a.flowItemOpus=u.bilibili.app.dynamic.v2.FlowItemOpus.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},e.fromObject=function(i){if(i instanceof u.bilibili.app.dynamic.v2.OpusFlowItem)return i;let n=new u.bilibili.app.dynamic.v2.OpusFlowItem;switch(i.itemType){default:if(typeof i.itemType=="number"){n.itemType=i.itemType;break}break;case"FLOW_ITEM_TYPE_INVALID":case 0:n.itemType=0;break;case"FLOW_ITEM_TYPE_OPUS":case 1:n.itemType=1;break}if(i.oid!=null&&(r.Long?(n.oid=r.Long.fromValue(i.oid)).unsigned=!1:typeof i.oid=="string"?n.oid=parseInt(i.oid,10):typeof i.oid=="number"?n.oid=i.oid:typeof i.oid=="object"&&(n.oid=new r.LongBits(i.oid.low>>>0,i.oid.high>>>0).toNumber())),i.extend!=null){if(typeof i.extend!="object")throw TypeError(".bilibili.app.dynamic.v2.OpusFlowItem.extend: object expected");n.extend=u.bilibili.app.dynamic.v2.Extend.fromObject(i.extend)}if(i.flowItemOpus!=null){if(typeof i.flowItemOpus!="object")throw TypeError(".bilibili.app.dynamic.v2.OpusFlowItem.flowItemOpus: object expected");n.flowItemOpus=u.bilibili.app.dynamic.v2.FlowItemOpus.fromObject(i.flowItemOpus)}return n},e.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(o.itemType=n.enums===String?"FLOW_ITEM_TYPE_INVALID":0,r.Long){let a=new r.Long(0,0,!1);o.oid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.oid=n.longs===String?"0":0;o.extend=null}return i.itemType!=null&&i.hasOwnProperty("itemType")&&(o.itemType=n.enums===String?u.bilibili.app.dynamic.v2.FlowItemType[i.itemType]===void 0?i.itemType:u.bilibili.app.dynamic.v2.FlowItemType[i.itemType]:i.itemType),i.oid!=null&&i.hasOwnProperty("oid")&&(typeof i.oid=="number"?o.oid=n.longs===String?String(i.oid):i.oid:o.oid=n.longs===String?r.Long.prototype.toString.call(i.oid):n.longs===Number?new r.LongBits(i.oid.low>>>0,i.oid.high>>>0).toNumber():i.oid),i.extend!=null&&i.hasOwnProperty("extend")&&(o.extend=u.bilibili.app.dynamic.v2.Extend.toObject(i.extend,n)),i.flowItemOpus!=null&&i.hasOwnProperty("flowItemOpus")&&(o.flowItemOpus=u.bilibili.app.dynamic.v2.FlowItemOpus.toObject(i.flowItemOpus,n),n.oneofs&&(o.data="flowItemOpus")),o},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.app.dynamic.v2.OpusFlowItem"},e}(),c.FlowItemOpus=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.coverPic=u.bilibili.app.dynamic.v2.MdlDynDrawItem.decode(t,t.uint32());break}case 2:{o.coverWhRatio=u.bilibili.app.dynamic.common.ItemWHRatio.decode(t,t.uint32());break}case 3:{o.bottomLeftText_1=u.bilibili.app.dynamic.v2.CoverIconWithText.decode(t,t.uint32());break}case 4:{o.bottomLeftText_2=u.bilibili.app.dynamic.v2.CoverIconWithText.decode(t,t.uint32());break}case 5:{o.textParagraph=u.bilibili.app.dynamic.v2.Paragraph.decode(t,t.uint32());break}case 6:{o.topRightBadge=u.bilibili.app.dynamic.v2.VideoBadge.decode(t,t.uint32());break}case 7:{o.darkCoverPic=u.bilibili.app.dynamic.v2.MdlDynDrawItem.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.FlowItemOpus)return t;let i=new u.bilibili.app.dynamic.v2.FlowItemOpus;if(t.coverPic!=null){if(typeof t.coverPic!="object")throw TypeError(".bilibili.app.dynamic.v2.FlowItemOpus.coverPic: object expected");i.coverPic=u.bilibili.app.dynamic.v2.MdlDynDrawItem.fromObject(t.coverPic)}if(t.coverWhRatio!=null){if(typeof t.coverWhRatio!="object")throw TypeError(".bilibili.app.dynamic.v2.FlowItemOpus.coverWhRatio: object expected");i.coverWhRatio=u.bilibili.app.dynamic.common.ItemWHRatio.fromObject(t.coverWhRatio)}if(t.bottomLeftText_1!=null){if(typeof t.bottomLeftText_1!="object")throw TypeError(".bilibili.app.dynamic.v2.FlowItemOpus.bottomLeftText_1: object expected");i.bottomLeftText_1=u.bilibili.app.dynamic.v2.CoverIconWithText.fromObject(t.bottomLeftText_1)}if(t.bottomLeftText_2!=null){if(typeof t.bottomLeftText_2!="object")throw TypeError(".bilibili.app.dynamic.v2.FlowItemOpus.bottomLeftText_2: object expected");i.bottomLeftText_2=u.bilibili.app.dynamic.v2.CoverIconWithText.fromObject(t.bottomLeftText_2)}if(t.textParagraph!=null){if(typeof t.textParagraph!="object")throw TypeError(".bilibili.app.dynamic.v2.FlowItemOpus.textParagraph: object expected");i.textParagraph=u.bilibili.app.dynamic.v2.Paragraph.fromObject(t.textParagraph)}if(t.topRightBadge!=null){if(typeof t.topRightBadge!="object")throw TypeError(".bilibili.app.dynamic.v2.FlowItemOpus.topRightBadge: object expected");i.topRightBadge=u.bilibili.app.dynamic.v2.VideoBadge.fromObject(t.topRightBadge)}if(t.darkCoverPic!=null){if(typeof t.darkCoverPic!="object")throw TypeError(".bilibili.app.dynamic.v2.FlowItemOpus.darkCoverPic: object expected");i.darkCoverPic=u.bilibili.app.dynamic.v2.MdlDynDrawItem.fromObject(t.darkCoverPic)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.coverPic=null,n.coverWhRatio=null,n.bottomLeftText_1=null,n.bottomLeftText_2=null,n.textParagraph=null,n.topRightBadge=null,n.darkCoverPic=null),t.coverPic!=null&&t.hasOwnProperty("coverPic")&&(n.coverPic=u.bilibili.app.dynamic.v2.MdlDynDrawItem.toObject(t.coverPic,i)),t.coverWhRatio!=null&&t.hasOwnProperty("coverWhRatio")&&(n.coverWhRatio=u.bilibili.app.dynamic.common.ItemWHRatio.toObject(t.coverWhRatio,i)),t.bottomLeftText_1!=null&&t.hasOwnProperty("bottomLeftText_1")&&(n.bottomLeftText_1=u.bilibili.app.dynamic.v2.CoverIconWithText.toObject(t.bottomLeftText_1,i)),t.bottomLeftText_2!=null&&t.hasOwnProperty("bottomLeftText_2")&&(n.bottomLeftText_2=u.bilibili.app.dynamic.v2.CoverIconWithText.toObject(t.bottomLeftText_2,i)),t.textParagraph!=null&&t.hasOwnProperty("textParagraph")&&(n.textParagraph=u.bilibili.app.dynamic.v2.Paragraph.toObject(t.textParagraph,i)),t.topRightBadge!=null&&t.hasOwnProperty("topRightBadge")&&(n.topRightBadge=u.bilibili.app.dynamic.v2.VideoBadge.toObject(t.topRightBadge,i)),t.darkCoverPic!=null&&t.hasOwnProperty("darkCoverPic")&&(n.darkCoverPic=u.bilibili.app.dynamic.v2.MdlDynDrawItem.toObject(t.darkCoverPic,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.FlowItemOpus"},e}(),c.SectionOpusCollection=function(){function e(l){if(this.allCollections=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.allCollections&&o.allCollections.length||(o.allCollections=[]),o.allCollections.push(u.bilibili.app.dynamic.v2.OpusCollectionWithCover.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.SectionOpusCollection)return t;let i=new u.bilibili.app.dynamic.v2.SectionOpusCollection;if(t.title!=null&&(i.title=String(t.title)),t.allCollections){if(!Array.isArray(t.allCollections))throw TypeError(".bilibili.app.dynamic.v2.SectionOpusCollection.allCollections: array expected");i.allCollections=[];for(let n=0;n>>3){case 1:{o.collectionInfo=u.bilibili.app.dynamic.v2.OpusCollection.decode(t,t.uint32());break}case 2:{o.coverPic=t.string();break}case 3:{o.coverBottomText=u.bilibili.app.dynamic.v2.CoverIconWithText.decode(t,t.uint32());break}case 4:{o.subTitleText=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.OpusCollectionWithCover)return t;let i=new u.bilibili.app.dynamic.v2.OpusCollectionWithCover;if(t.collectionInfo!=null){if(typeof t.collectionInfo!="object")throw TypeError(".bilibili.app.dynamic.v2.OpusCollectionWithCover.collectionInfo: object expected");i.collectionInfo=u.bilibili.app.dynamic.v2.OpusCollection.fromObject(t.collectionInfo)}if(t.coverPic!=null&&(i.coverPic=String(t.coverPic)),t.coverBottomText!=null){if(typeof t.coverBottomText!="object")throw TypeError(".bilibili.app.dynamic.v2.OpusCollectionWithCover.coverBottomText: object expected");i.coverBottomText=u.bilibili.app.dynamic.v2.CoverIconWithText.fromObject(t.coverBottomText)}return t.subTitleText!=null&&(i.subTitleText=String(t.subTitleText)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.collectionInfo=null,n.coverPic="",n.coverBottomText=null,n.subTitleText=""),t.collectionInfo!=null&&t.hasOwnProperty("collectionInfo")&&(n.collectionInfo=u.bilibili.app.dynamic.v2.OpusCollection.toObject(t.collectionInfo,i)),t.coverPic!=null&&t.hasOwnProperty("coverPic")&&(n.coverPic=t.coverPic),t.coverBottomText!=null&&t.hasOwnProperty("coverBottomText")&&(n.coverBottomText=u.bilibili.app.dynamic.v2.CoverIconWithText.toObject(t.coverBottomText,i)),t.subTitleText!=null&&t.hasOwnProperty("subTitleText")&&(n.subTitleText=t.subTitleText),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.OpusCollectionWithCover"},e}(),c.SectionNoteNavigationBar=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.rightIcon=t.string();break}case 3:{o.jumpUrl=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.SectionNoteNavigationBar)return t;let i=new u.bilibili.app.dynamic.v2.SectionNoteNavigationBar;return t.title!=null&&(i.title=String(t.title)),t.rightIcon!=null&&(i.rightIcon=String(t.rightIcon)),t.jumpUrl!=null&&(i.jumpUrl=String(t.jumpUrl)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.title="",n.rightIcon="",n.jumpUrl=""),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.rightIcon!=null&&t.hasOwnProperty("rightIcon")&&(n.rightIcon=t.rightIcon),t.jumpUrl!=null&&t.hasOwnProperty("jumpUrl")&&(n.jumpUrl=t.jumpUrl),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.SectionNoteNavigationBar"},e}(),c.ModuleCopyright=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.leftText=t.string();break}case 2:{o.rightText=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.ModuleCopyright)return t;let i=new u.bilibili.app.dynamic.v2.ModuleCopyright;return t.leftText!=null&&(i.leftText=String(t.leftText)),t.rightText!=null&&(i.rightText=String(t.rightText)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.leftText="",n.rightText=""),t.leftText!=null&&t.hasOwnProperty("leftText")&&(n.leftText=t.leftText),t.rightText!=null&&t.hasOwnProperty("rightText")&&(n.rightText=t.rightText),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.ModuleCopyright"},e}(),c.ModuleParagraph=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.paragraph=u.bilibili.app.dynamic.v2.Paragraph.decode(t,t.uint32());break}case 2:{o.isArticleTitle=t.bool();break}case 3:{o.paraSpacing=u.bilibili.app.dynamic.v2.ParaSpacing.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.ModuleParagraph)return t;let i=new u.bilibili.app.dynamic.v2.ModuleParagraph;if(t.paragraph!=null){if(typeof t.paragraph!="object")throw TypeError(".bilibili.app.dynamic.v2.ModuleParagraph.paragraph: object expected");i.paragraph=u.bilibili.app.dynamic.v2.Paragraph.fromObject(t.paragraph)}if(t.isArticleTitle!=null&&(i.isArticleTitle=!!t.isArticleTitle),t.paraSpacing!=null){if(typeof t.paraSpacing!="object")throw TypeError(".bilibili.app.dynamic.v2.ModuleParagraph.paraSpacing: object expected");i.paraSpacing=u.bilibili.app.dynamic.v2.ParaSpacing.fromObject(t.paraSpacing)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.paragraph=null,n.isArticleTitle=!1,n.paraSpacing=null),t.paragraph!=null&&t.hasOwnProperty("paragraph")&&(n.paragraph=u.bilibili.app.dynamic.v2.Paragraph.toObject(t.paragraph,i)),t.isArticleTitle!=null&&t.hasOwnProperty("isArticleTitle")&&(n.isArticleTitle=t.isArticleTitle),t.paraSpacing!=null&&t.hasOwnProperty("paraSpacing")&&(n.paraSpacing=u.bilibili.app.dynamic.v2.ParaSpacing.toObject(t.paraSpacing,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.ModuleParagraph"},e}(),c.ParaSpacing=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.spacingBeforePara=t.double();break}case 2:{o.spacingAfterPara=t.double();break}case 3:{o.lineSpacing=t.double();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.ParaSpacing)return t;let i=new u.bilibili.app.dynamic.v2.ParaSpacing;return t.spacingBeforePara!=null&&(i.spacingBeforePara=Number(t.spacingBeforePara)),t.spacingAfterPara!=null&&(i.spacingAfterPara=Number(t.spacingAfterPara)),t.lineSpacing!=null&&(i.lineSpacing=Number(t.lineSpacing)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.spacingBeforePara=0,n.spacingAfterPara=0,n.lineSpacing=0),t.spacingBeforePara!=null&&t.hasOwnProperty("spacingBeforePara")&&(n.spacingBeforePara=i.json&&!isFinite(t.spacingBeforePara)?String(t.spacingBeforePara):t.spacingBeforePara),t.spacingAfterPara!=null&&t.hasOwnProperty("spacingAfterPara")&&(n.spacingAfterPara=i.json&&!isFinite(t.spacingAfterPara)?String(t.spacingAfterPara):t.spacingAfterPara),t.lineSpacing!=null&&t.hasOwnProperty("lineSpacing")&&(n.lineSpacing=i.json&&!isFinite(t.lineSpacing)?String(t.lineSpacing):t.lineSpacing),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.ParaSpacing"},e}(),c.OneLineText=function(){function e(l){if(this.texts=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.texts&&o.texts.length||(o.texts=[]),o.texts.push(u.bilibili.app.dynamic.v2.TextWithPriority.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.OneLineText)return t;let i=new u.bilibili.app.dynamic.v2.OneLineText;if(t.texts){if(!Array.isArray(t.texts))throw TypeError(".bilibili.app.dynamic.v2.OneLineText.texts: array expected");i.texts=[];for(let n=0;n>>3){case 1:{o.text=t.string();break}case 2:{o.priority=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.TextWithPriority)return t;let i=new u.bilibili.app.dynamic.v2.TextWithPriority;return t.text!=null&&(i.text=String(t.text)),t.priority!=null&&(r.Long?(i.priority=r.Long.fromValue(t.priority)).unsigned=!1:typeof t.priority=="string"?i.priority=parseInt(t.priority,10):typeof t.priority=="number"?i.priority=t.priority:typeof t.priority=="object"&&(i.priority=new r.LongBits(t.priority.low>>>0,t.priority.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(n.text="",r.Long){let o=new r.Long(0,0,!1);n.priority=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.priority=i.longs===String?"0":0;return t.text!=null&&t.hasOwnProperty("text")&&(n.text=t.text),t.priority!=null&&t.hasOwnProperty("priority")&&(typeof t.priority=="number"?n.priority=i.longs===String?String(t.priority):t.priority:n.priority=i.longs===String?r.Long.prototype.toString.call(t.priority):i.longs===Number?new r.LongBits(t.priority.low>>>0,t.priority.high>>>0).toNumber():t.priority),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.TextWithPriority"},e}(),c.ModuleOpusCollection=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.collectionInfo=u.bilibili.app.dynamic.v2.OpusCollection.decode(t,t.uint32());break}case 2:{o.titleUpper=t.string();break}case 3:{o.title=t.string();break}case 4:{o.titlePrefixIcon=t.string();break}case 5:{o.totalText=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.ModuleOpusCollection)return t;let i=new u.bilibili.app.dynamic.v2.ModuleOpusCollection;if(t.collectionInfo!=null){if(typeof t.collectionInfo!="object")throw TypeError(".bilibili.app.dynamic.v2.ModuleOpusCollection.collectionInfo: object expected");i.collectionInfo=u.bilibili.app.dynamic.v2.OpusCollection.fromObject(t.collectionInfo)}return t.titleUpper!=null&&(i.titleUpper=String(t.titleUpper)),t.title!=null&&(i.title=String(t.title)),t.titlePrefixIcon!=null&&(i.titlePrefixIcon=String(t.titlePrefixIcon)),t.totalText!=null&&(i.totalText=String(t.totalText)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.collectionInfo=null,n.titleUpper="",n.title="",n.titlePrefixIcon="",n.totalText=""),t.collectionInfo!=null&&t.hasOwnProperty("collectionInfo")&&(n.collectionInfo=u.bilibili.app.dynamic.v2.OpusCollection.toObject(t.collectionInfo,i)),t.titleUpper!=null&&t.hasOwnProperty("titleUpper")&&(n.titleUpper=t.titleUpper),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.titlePrefixIcon!=null&&t.hasOwnProperty("titlePrefixIcon")&&(n.titlePrefixIcon=t.titlePrefixIcon),t.totalText!=null&&t.hasOwnProperty("totalText")&&(n.totalText=t.totalText),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.ModuleOpusCollection"},e}(),c.OpusCollection=function(){function e(l){if(this.allItems=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.collectionId=t.int64();break}case 2:{o.title=u.bilibili.app.dynamic.v2.OneLineText.decode(t,t.uint32());break}case 3:{o.detailUri=t.string();break}case 4:{o.intro=t.string();break}case 5:{o.allItems&&o.allItems.length||(o.allItems=[]),o.allItems.push(u.bilibili.app.dynamic.v2.OpusCollectionItem.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.OpusCollection)return t;let i=new u.bilibili.app.dynamic.v2.OpusCollection;if(t.collectionId!=null&&(r.Long?(i.collectionId=r.Long.fromValue(t.collectionId)).unsigned=!1:typeof t.collectionId=="string"?i.collectionId=parseInt(t.collectionId,10):typeof t.collectionId=="number"?i.collectionId=t.collectionId:typeof t.collectionId=="object"&&(i.collectionId=new r.LongBits(t.collectionId.low>>>0,t.collectionId.high>>>0).toNumber())),t.title!=null){if(typeof t.title!="object")throw TypeError(".bilibili.app.dynamic.v2.OpusCollection.title: object expected");i.title=u.bilibili.app.dynamic.v2.OneLineText.fromObject(t.title)}if(t.detailUri!=null&&(i.detailUri=String(t.detailUri)),t.intro!=null&&(i.intro=String(t.intro)),t.allItems){if(!Array.isArray(t.allItems))throw TypeError(".bilibili.app.dynamic.v2.OpusCollection.allItems: array expected");i.allItems=[];for(let n=0;n>>0,t.collectionId.high>>>0).toNumber():t.collectionId),t.title!=null&&t.hasOwnProperty("title")&&(n.title=u.bilibili.app.dynamic.v2.OneLineText.toObject(t.title,i)),t.detailUri!=null&&t.hasOwnProperty("detailUri")&&(n.detailUri=t.detailUri),t.intro!=null&&t.hasOwnProperty("intro")&&(n.intro=t.intro),t.allItems&&t.allItems.length){n.allItems=[];for(let o=0;o>>3){case 1:{o.opusId=t.int64();break}case 2:{o.title=t.string();break}case 3:{o.pubTime=t.string();break}case 4:{o.uri=t.string();break}case 5:{o.isSelectedHighlight=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.OpusCollectionItem)return t;let i=new u.bilibili.app.dynamic.v2.OpusCollectionItem;return t.opusId!=null&&(r.Long?(i.opusId=r.Long.fromValue(t.opusId)).unsigned=!1:typeof t.opusId=="string"?i.opusId=parseInt(t.opusId,10):typeof t.opusId=="number"?i.opusId=t.opusId:typeof t.opusId=="object"&&(i.opusId=new r.LongBits(t.opusId.low>>>0,t.opusId.high>>>0).toNumber())),t.title!=null&&(i.title=String(t.title)),t.pubTime!=null&&(i.pubTime=String(t.pubTime)),t.uri!=null&&(i.uri=String(t.uri)),t.isSelectedHighlight!=null&&(i.isSelectedHighlight=!!t.isSelectedHighlight),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.opusId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.opusId=i.longs===String?"0":0;n.title="",n.pubTime="",n.uri="",n.isSelectedHighlight=!1}return t.opusId!=null&&t.hasOwnProperty("opusId")&&(typeof t.opusId=="number"?n.opusId=i.longs===String?String(t.opusId):t.opusId:n.opusId=i.longs===String?r.Long.prototype.toString.call(t.opusId):i.longs===Number?new r.LongBits(t.opusId.low>>>0,t.opusId.high>>>0).toNumber():t.opusId),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.pubTime!=null&&t.hasOwnProperty("pubTime")&&(n.pubTime=t.pubTime),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),t.isSelectedHighlight!=null&&t.hasOwnProperty("isSelectedHighlight")&&(n.isSelectedHighlight=t.isSelectedHighlight),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.OpusCollectionItem"},e}(),c.Opus=function(){function e(l,t,i){b.rpc.Service.call(this,l,t,i)}return(e.prototype=Object.create(b.rpc.Service.prototype)).constructor=e,e.create=function(t,i,n){return new this(t,i,n)},Object.defineProperty(e.prototype.opusDetail=function l(t,i){return this.rpcCall(l,u.bilibili.app.dynamic.v2.OpusDetailReq,u.bilibili.app.dynamic.v2.OpusDetailResp,t,i)},"name",{value:"OpusDetail"}),Object.defineProperty(e.prototype.listFav=function l(t,i){return this.rpcCall(l,u.bilibili.app.dynamic.v2.ListFavReq,u.bilibili.app.dynamic.v2.ListFavResp,t,i)},"name",{value:"ListFav"}),Object.defineProperty(e.prototype.opusSpaceFlow=function l(t,i){return this.rpcCall(l,u.bilibili.app.dynamic.v2.OpusSpaceFlowReq,u.bilibili.app.dynamic.v2.OpusSpaceFlowResp,t,i)},"name",{value:"OpusSpaceFlow"}),e}(),c.OpusDetailReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.opusType=t.int32();break}case 2:{o.oid=t.int64();break}case 3:{o.dynType=t.int64();break}case 4:{o.shareId=t.string();break}case 9:{o.shareMode=t.int32();break}case 10:{o.localTime=t.int32();break}case 11:{o.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.decode(t,t.uint32());break}case 12:{o.config=u.bilibili.app.dynamic.v2.Config.decode(t,t.uint32());break}case 13:{o.adParam=u.bilibili.app.dynamic.v2.AdParam.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.OpusDetailReq)return t;let i=new u.bilibili.app.dynamic.v2.OpusDetailReq;switch(t.opusType){default:if(typeof t.opusType=="number"){i.opusType=t.opusType;break}break;case"OPUS_TYPE_DYN":case 0:i.opusType=0;break;case"OPUS_TYPE_ARTICLE":case 1:i.opusType=1;break;case"OPUS_TYPE_NOTE":case 2:i.opusType=2;break;case"OPUS_TYPE_WORD":case 3:i.opusType=3;break;case"OPUS_TYPE_REPOST":case 4:i.opusType=4;break}if(t.oid!=null&&(r.Long?(i.oid=r.Long.fromValue(t.oid)).unsigned=!1:typeof t.oid=="string"?i.oid=parseInt(t.oid,10):typeof t.oid=="number"?i.oid=t.oid:typeof t.oid=="object"&&(i.oid=new r.LongBits(t.oid.low>>>0,t.oid.high>>>0).toNumber())),t.dynType!=null&&(r.Long?(i.dynType=r.Long.fromValue(t.dynType)).unsigned=!1:typeof t.dynType=="string"?i.dynType=parseInt(t.dynType,10):typeof t.dynType=="number"?i.dynType=t.dynType:typeof t.dynType=="object"&&(i.dynType=new r.LongBits(t.dynType.low>>>0,t.dynType.high>>>0).toNumber())),t.shareId!=null&&(i.shareId=String(t.shareId)),t.shareMode!=null&&(i.shareMode=t.shareMode|0),t.localTime!=null&&(i.localTime=t.localTime|0),t.playerArgs!=null){if(typeof t.playerArgs!="object")throw TypeError(".bilibili.app.dynamic.v2.OpusDetailReq.playerArgs: object expected");i.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.fromObject(t.playerArgs)}if(t.config!=null){if(typeof t.config!="object")throw TypeError(".bilibili.app.dynamic.v2.OpusDetailReq.config: object expected");i.config=u.bilibili.app.dynamic.v2.Config.fromObject(t.config)}if(t.adParam!=null){if(typeof t.adParam!="object")throw TypeError(".bilibili.app.dynamic.v2.OpusDetailReq.adParam: object expected");i.adParam=u.bilibili.app.dynamic.v2.AdParam.fromObject(t.adParam)}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.opusType=i.enums===String?"OPUS_TYPE_DYN":0,r.Long){let o=new r.Long(0,0,!1);n.oid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.oid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.dynType=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.dynType=i.longs===String?"0":0;n.shareId="",n.shareMode=0,n.localTime=0,n.playerArgs=null,n.config=null,n.adParam=null}return t.opusType!=null&&t.hasOwnProperty("opusType")&&(n.opusType=i.enums===String?u.bilibili.app.dynamic.v2.OpusType[t.opusType]===void 0?t.opusType:u.bilibili.app.dynamic.v2.OpusType[t.opusType]:t.opusType),t.oid!=null&&t.hasOwnProperty("oid")&&(typeof t.oid=="number"?n.oid=i.longs===String?String(t.oid):t.oid:n.oid=i.longs===String?r.Long.prototype.toString.call(t.oid):i.longs===Number?new r.LongBits(t.oid.low>>>0,t.oid.high>>>0).toNumber():t.oid),t.dynType!=null&&t.hasOwnProperty("dynType")&&(typeof t.dynType=="number"?n.dynType=i.longs===String?String(t.dynType):t.dynType:n.dynType=i.longs===String?r.Long.prototype.toString.call(t.dynType):i.longs===Number?new r.LongBits(t.dynType.low>>>0,t.dynType.high>>>0).toNumber():t.dynType),t.shareId!=null&&t.hasOwnProperty("shareId")&&(n.shareId=t.shareId),t.shareMode!=null&&t.hasOwnProperty("shareMode")&&(n.shareMode=t.shareMode),t.localTime!=null&&t.hasOwnProperty("localTime")&&(n.localTime=t.localTime),t.playerArgs!=null&&t.hasOwnProperty("playerArgs")&&(n.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.toObject(t.playerArgs,i)),t.config!=null&&t.hasOwnProperty("config")&&(n.config=u.bilibili.app.dynamic.v2.Config.toObject(t.config,i)),t.adParam!=null&&t.hasOwnProperty("adParam")&&(n.adParam=u.bilibili.app.dynamic.v2.AdParam.toObject(t.adParam,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.OpusDetailReq"},e}(),c.OpusDetailResp=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.opusItem=u.bilibili.app.dynamic.v2.OpusItem.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.OpusDetailResp)return t;let i=new u.bilibili.app.dynamic.v2.OpusDetailResp;if(t.opusItem!=null){if(typeof t.opusItem!="object")throw TypeError(".bilibili.app.dynamic.v2.OpusDetailResp.opusItem: object expected");i.opusItem=u.bilibili.app.dynamic.v2.OpusItem.fromObject(t.opusItem)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.opusItem=null),t.opusItem!=null&&t.hasOwnProperty("opusItem")&&(n.opusItem=u.bilibili.app.dynamic.v2.OpusItem.toObject(t.opusItem,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.OpusDetailResp"},e}(),c.ListFavReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.localTime=t.int32();break}case 2:{o.pagination=u.bilibili.pagination.Pagination.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.ListFavReq)return t;let i=new u.bilibili.app.dynamic.v2.ListFavReq;if(t.localTime!=null&&(i.localTime=t.localTime|0),t.pagination!=null){if(typeof t.pagination!="object")throw TypeError(".bilibili.app.dynamic.v2.ListFavReq.pagination: object expected");i.pagination=u.bilibili.pagination.Pagination.fromObject(t.pagination)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.localTime=0,n.pagination=null),t.localTime!=null&&t.hasOwnProperty("localTime")&&(n.localTime=t.localTime),t.pagination!=null&&t.hasOwnProperty("pagination")&&(n.pagination=u.bilibili.pagination.Pagination.toObject(t.pagination,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.ListFavReq"},e}(),c.ListFavResp=function(){function e(l){if(this.itemList=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.itemList&&o.itemList.length||(o.itemList=[]),o.itemList.push(u.bilibili.app.dynamic.v2.OpusFavItem.decode(t,t.uint32()));break}case 2:{o.nextPage=u.bilibili.pagination.PaginationReply.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.ListFavResp)return t;let i=new u.bilibili.app.dynamic.v2.ListFavResp;if(t.itemList){if(!Array.isArray(t.itemList))throw TypeError(".bilibili.app.dynamic.v2.ListFavResp.itemList: array expected");i.itemList=[];for(let n=0;n>>3){case 1:{o.hostMid=t.int64();break}case 2:{o.localTime=t.int32();break}case 3:{o.pagination=u.bilibili.pagination.Pagination.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.OpusSpaceFlowReq)return t;let i=new u.bilibili.app.dynamic.v2.OpusSpaceFlowReq;if(t.hostMid!=null&&(r.Long?(i.hostMid=r.Long.fromValue(t.hostMid)).unsigned=!1:typeof t.hostMid=="string"?i.hostMid=parseInt(t.hostMid,10):typeof t.hostMid=="number"?i.hostMid=t.hostMid:typeof t.hostMid=="object"&&(i.hostMid=new r.LongBits(t.hostMid.low>>>0,t.hostMid.high>>>0).toNumber())),t.localTime!=null&&(i.localTime=t.localTime|0),t.pagination!=null){if(typeof t.pagination!="object")throw TypeError(".bilibili.app.dynamic.v2.OpusSpaceFlowReq.pagination: object expected");i.pagination=u.bilibili.pagination.Pagination.fromObject(t.pagination)}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.hostMid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.hostMid=i.longs===String?"0":0;n.localTime=0,n.pagination=null}return t.hostMid!=null&&t.hasOwnProperty("hostMid")&&(typeof t.hostMid=="number"?n.hostMid=i.longs===String?String(t.hostMid):t.hostMid:n.hostMid=i.longs===String?r.Long.prototype.toString.call(t.hostMid):i.longs===Number?new r.LongBits(t.hostMid.low>>>0,t.hostMid.high>>>0).toNumber():t.hostMid),t.localTime!=null&&t.hasOwnProperty("localTime")&&(n.localTime=t.localTime),t.pagination!=null&&t.hasOwnProperty("pagination")&&(n.pagination=u.bilibili.pagination.Pagination.toObject(t.pagination,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.OpusSpaceFlowReq"},e}(),c.OpusSpaceFlowResp=function(){function e(l){if(this.itemList=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.itemList&&o.itemList.length||(o.itemList=[]),o.itemList.push(u.bilibili.app.dynamic.v2.OpusFlowItem.decode(t,t.uint32()));break}case 2:{o.nextPage=u.bilibili.pagination.PaginationReply.decode(t,t.uint32());break}case 3:{o.hostUpOpusCollection=u.bilibili.app.dynamic.v2.SectionOpusCollection.decode(t,t.uint32());break}case 4:{o.hostUpNoteNavBar=u.bilibili.app.dynamic.v2.SectionNoteNavigationBar.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.OpusSpaceFlowResp)return t;let i=new u.bilibili.app.dynamic.v2.OpusSpaceFlowResp;if(t.itemList){if(!Array.isArray(t.itemList))throw TypeError(".bilibili.app.dynamic.v2.OpusSpaceFlowResp.itemList: array expected");i.itemList=[];for(let n=0;n>>3){case 1:{a.paraType=i.int32();break}case 2:{a.paraFormat=u.bilibili.app.dynamic.v2.Paragraph.ParagraphFormat.decode(i,i.uint32());break}case 3:{a.text=u.bilibili.app.dynamic.v2.TextParagraph.decode(i,i.uint32());break}case 4:{a.pic=u.bilibili.app.dynamic.v2.PicParagraph.decode(i,i.uint32());break}case 5:{a.line=u.bilibili.app.dynamic.v2.LineParagraph.decode(i,i.uint32());break}case 6:{a.linkCard=u.bilibili.app.dynamic.v2.CardParagraph.decode(i,i.uint32());break}case 7:{a.code=u.bilibili.app.dynamic.v2.CodeParagraph.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},e.fromObject=function(i){if(i instanceof u.bilibili.app.dynamic.v2.Paragraph)return i;let n=new u.bilibili.app.dynamic.v2.Paragraph;switch(i.paraType){default:if(typeof i.paraType=="number"){n.paraType=i.paraType;break}break;case"INVALID":case 0:n.paraType=0;break;case"TEXT":case 1:n.paraType=1;break;case"PICTURES":case 2:n.paraType=2;break;case"LINE":case 3:n.paraType=3;break;case"REFERENCE":case 4:n.paraType=4;break;case"SORTED_LIST":case 5:n.paraType=5;break;case"UNSORTED_LIST":case 6:n.paraType=6;break;case"LINK_CARD":case 7:n.paraType=7;break;case"CODE":case 8:n.paraType=8;break}if(i.paraFormat!=null){if(typeof i.paraFormat!="object")throw TypeError(".bilibili.app.dynamic.v2.Paragraph.paraFormat: object expected");n.paraFormat=u.bilibili.app.dynamic.v2.Paragraph.ParagraphFormat.fromObject(i.paraFormat)}if(i.text!=null){if(typeof i.text!="object")throw TypeError(".bilibili.app.dynamic.v2.Paragraph.text: object expected");n.text=u.bilibili.app.dynamic.v2.TextParagraph.fromObject(i.text)}if(i.pic!=null){if(typeof i.pic!="object")throw TypeError(".bilibili.app.dynamic.v2.Paragraph.pic: object expected");n.pic=u.bilibili.app.dynamic.v2.PicParagraph.fromObject(i.pic)}if(i.line!=null){if(typeof i.line!="object")throw TypeError(".bilibili.app.dynamic.v2.Paragraph.line: object expected");n.line=u.bilibili.app.dynamic.v2.LineParagraph.fromObject(i.line)}if(i.linkCard!=null){if(typeof i.linkCard!="object")throw TypeError(".bilibili.app.dynamic.v2.Paragraph.linkCard: object expected");n.linkCard=u.bilibili.app.dynamic.v2.CardParagraph.fromObject(i.linkCard)}if(i.code!=null){if(typeof i.code!="object")throw TypeError(".bilibili.app.dynamic.v2.Paragraph.code: object expected");n.code=u.bilibili.app.dynamic.v2.CodeParagraph.fromObject(i.code)}return n},e.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.paraType=n.enums===String?"INVALID":0,o.paraFormat=null),i.paraType!=null&&i.hasOwnProperty("paraType")&&(o.paraType=n.enums===String?u.bilibili.app.dynamic.v2.Paragraph.ParagraphType[i.paraType]===void 0?i.paraType:u.bilibili.app.dynamic.v2.Paragraph.ParagraphType[i.paraType]:i.paraType),i.paraFormat!=null&&i.hasOwnProperty("paraFormat")&&(o.paraFormat=u.bilibili.app.dynamic.v2.Paragraph.ParagraphFormat.toObject(i.paraFormat,n)),i.text!=null&&i.hasOwnProperty("text")&&(o.text=u.bilibili.app.dynamic.v2.TextParagraph.toObject(i.text,n),n.oneofs&&(o.content="text")),i.pic!=null&&i.hasOwnProperty("pic")&&(o.pic=u.bilibili.app.dynamic.v2.PicParagraph.toObject(i.pic,n),n.oneofs&&(o.content="pic")),i.line!=null&&i.hasOwnProperty("line")&&(o.line=u.bilibili.app.dynamic.v2.LineParagraph.toObject(i.line,n),n.oneofs&&(o.content="line")),i.linkCard!=null&&i.hasOwnProperty("linkCard")&&(o.linkCard=u.bilibili.app.dynamic.v2.CardParagraph.toObject(i.linkCard,n),n.oneofs&&(o.content="linkCard")),i.code!=null&&i.hasOwnProperty("code")&&(o.code=u.bilibili.app.dynamic.v2.CodeParagraph.toObject(i.code,n),n.oneofs&&(o.content="code")),o},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.app.dynamic.v2.Paragraph"},e.ParagraphType=function(){let t={},i=Object.create(t);return i[t[0]="INVALID"]=0,i[t[1]="TEXT"]=1,i[t[2]="PICTURES"]=2,i[t[3]="LINE"]=3,i[t[4]="REFERENCE"]=4,i[t[5]="SORTED_LIST"]=5,i[t[6]="UNSORTED_LIST"]=6,i[t[7]="LINK_CARD"]=7,i[t[8]="CODE"]=8,i}(),e.ParagraphAlign=function(){let t={},i=Object.create(t);return i[t[0]="LEFT"]=0,i[t[1]="MIDDLE"]=1,i[t[2]="RIGHT"]=2,i}(),e.ListFormat=function(){function t(i){if(i)for(let n=Object.keys(i),o=0;o>>3){case 1:{y.level=n.int32();break}case 2:{y.order=n.int32();break}case 3:{y.theme=n.string();break}default:n.skipType(s&7);break}}return y},t.fromObject=function(n){if(n instanceof u.bilibili.app.dynamic.v2.Paragraph.ListFormat)return n;let o=new u.bilibili.app.dynamic.v2.Paragraph.ListFormat;return n.level!=null&&(o.level=n.level|0),n.order!=null&&(o.order=n.order|0),n.theme!=null&&(o.theme=String(n.theme)),o},t.toObject=function(n,o){o||(o={});let a={};return o.defaults&&(a.level=0,a.order=0,a.theme=""),n.level!=null&&n.hasOwnProperty("level")&&(a.level=n.level),n.order!=null&&n.hasOwnProperty("order")&&(a.order=n.order),n.theme!=null&&n.hasOwnProperty("theme")&&(a.theme=n.theme),a},t.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},t.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/bilibili.app.dynamic.v2.Paragraph.ListFormat"},t}(),e.ParagraphFormat=function(){function t(i){if(i)for(let n=Object.keys(i),o=0;o>>3){case 1:{y.align=n.int32();break}case 2:{y.listFormat=u.bilibili.app.dynamic.v2.Paragraph.ListFormat.decode(n,n.uint32());break}default:n.skipType(s&7);break}}return y},t.fromObject=function(n){if(n instanceof u.bilibili.app.dynamic.v2.Paragraph.ParagraphFormat)return n;let o=new u.bilibili.app.dynamic.v2.Paragraph.ParagraphFormat;switch(n.align){default:if(typeof n.align=="number"){o.align=n.align;break}break;case"LEFT":case 0:o.align=0;break;case"MIDDLE":case 1:o.align=1;break;case"RIGHT":case 2:o.align=2;break}if(n.listFormat!=null){if(typeof n.listFormat!="object")throw TypeError(".bilibili.app.dynamic.v2.Paragraph.ParagraphFormat.listFormat: object expected");o.listFormat=u.bilibili.app.dynamic.v2.Paragraph.ListFormat.fromObject(n.listFormat)}return o},t.toObject=function(n,o){o||(o={});let a={};return o.defaults&&(a.align=o.enums===String?"LEFT":0,a.listFormat=null),n.align!=null&&n.hasOwnProperty("align")&&(a.align=o.enums===String?u.bilibili.app.dynamic.v2.Paragraph.ParagraphAlign[n.align]===void 0?n.align:u.bilibili.app.dynamic.v2.Paragraph.ParagraphAlign[n.align]:n.align),n.listFormat!=null&&n.hasOwnProperty("listFormat")&&(a.listFormat=u.bilibili.app.dynamic.v2.Paragraph.ListFormat.toObject(n.listFormat,o)),a},t.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},t.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/bilibili.app.dynamic.v2.Paragraph.ParagraphFormat"},t}(),e}(),c.PicParagraph=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 2:{o.style=t.int32();break}case 1:{o.pics=u.bilibili.app.dynamic.v2.MdlDynDraw.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.PicParagraph)return t;let i=new u.bilibili.app.dynamic.v2.PicParagraph;switch(t.style){default:if(typeof t.style=="number"){i.style=t.style;break}break;case"INVALID":case 0:i.style=0;break;case"NINE_CELL":case 1:i.style=1;break;case"BIG_SCROLL":case 2:i.style=2;break}if(t.pics!=null){if(typeof t.pics!="object")throw TypeError(".bilibili.app.dynamic.v2.PicParagraph.pics: object expected");i.pics=u.bilibili.app.dynamic.v2.MdlDynDraw.fromObject(t.pics)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.pics=null,n.style=i.enums===String?"INVALID":0),t.pics!=null&&t.hasOwnProperty("pics")&&(n.pics=u.bilibili.app.dynamic.v2.MdlDynDraw.toObject(t.pics,i)),t.style!=null&&t.hasOwnProperty("style")&&(n.style=i.enums===String?u.bilibili.app.dynamic.v2.PicParagraph.PicParagraphStyle[t.style]===void 0?t.style:u.bilibili.app.dynamic.v2.PicParagraph.PicParagraphStyle[t.style]:t.style),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.PicParagraph"},e.PicParagraphStyle=function(){let l={},t=Object.create(l);return t[l[0]="INVALID"]=0,t[l[1]="NINE_CELL"]=1,t[l[2]="BIG_SCROLL"]=2,t}(),e}(),c.LineParagraph=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.pic=u.bilibili.app.dynamic.v2.MdlDynDrawItem.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.LineParagraph)return t;let i=new u.bilibili.app.dynamic.v2.LineParagraph;if(t.pic!=null){if(typeof t.pic!="object")throw TypeError(".bilibili.app.dynamic.v2.LineParagraph.pic: object expected");i.pic=u.bilibili.app.dynamic.v2.MdlDynDrawItem.fromObject(t.pic)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.pic=null),t.pic!=null&&t.hasOwnProperty("pic")&&(n.pic=u.bilibili.app.dynamic.v2.MdlDynDrawItem.toObject(t.pic,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.LineParagraph"},e}(),c.TextParagraph=function(){function e(l){if(this.nodes=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.nodes&&o.nodes.length||(o.nodes=[]),o.nodes.push(u.bilibili.app.dynamic.v2.TextNode.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.TextParagraph)return t;let i=new u.bilibili.app.dynamic.v2.TextParagraph;if(t.nodes){if(!Array.isArray(t.nodes))throw TypeError(".bilibili.app.dynamic.v2.TextParagraph.nodes: array expected");i.nodes=[];for(let n=0;n>>3){case 1:{a.nodeType=i.int32();break}case 2:{a.rawText=i.string();break}case 3:{a.word=u.bilibili.app.dynamic.v2.WordNode.decode(i,i.uint32());break}case 4:{a.emote=u.bilibili.app.dynamic.v2.EmoteNode.decode(i,i.uint32());break}case 5:{a.link=u.bilibili.app.dynamic.v2.LinkNode.decode(i,i.uint32());break}case 6:{a.formula=u.bilibili.app.dynamic.v2.FormulaNode.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},e.fromObject=function(i){if(i instanceof u.bilibili.app.dynamic.v2.TextNode)return i;let n=new u.bilibili.app.dynamic.v2.TextNode;switch(i.nodeType){default:if(typeof i.nodeType=="number"){n.nodeType=i.nodeType;break}break;case"INVALID":case 0:n.nodeType=0;break;case"WORDS":case 1:n.nodeType=1;break;case"EMOTE":case 2:n.nodeType=2;break;case"AT":case 3:n.nodeType=3;break;case"BIZ_LINK":case 4:n.nodeType=4;break;case"FORMULA":case 5:n.nodeType=5;break}if(i.rawText!=null&&(n.rawText=String(i.rawText)),i.word!=null){if(typeof i.word!="object")throw TypeError(".bilibili.app.dynamic.v2.TextNode.word: object expected");n.word=u.bilibili.app.dynamic.v2.WordNode.fromObject(i.word)}if(i.emote!=null){if(typeof i.emote!="object")throw TypeError(".bilibili.app.dynamic.v2.TextNode.emote: object expected");n.emote=u.bilibili.app.dynamic.v2.EmoteNode.fromObject(i.emote)}if(i.link!=null){if(typeof i.link!="object")throw TypeError(".bilibili.app.dynamic.v2.TextNode.link: object expected");n.link=u.bilibili.app.dynamic.v2.LinkNode.fromObject(i.link)}if(i.formula!=null){if(typeof i.formula!="object")throw TypeError(".bilibili.app.dynamic.v2.TextNode.formula: object expected");n.formula=u.bilibili.app.dynamic.v2.FormulaNode.fromObject(i.formula)}return n},e.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.nodeType=n.enums===String?"INVALID":0,o.rawText=""),i.nodeType!=null&&i.hasOwnProperty("nodeType")&&(o.nodeType=n.enums===String?u.bilibili.app.dynamic.v2.TextNode.TextNodeType[i.nodeType]===void 0?i.nodeType:u.bilibili.app.dynamic.v2.TextNode.TextNodeType[i.nodeType]:i.nodeType),i.rawText!=null&&i.hasOwnProperty("rawText")&&(o.rawText=i.rawText),i.word!=null&&i.hasOwnProperty("word")&&(o.word=u.bilibili.app.dynamic.v2.WordNode.toObject(i.word,n),n.oneofs&&(o.text="word")),i.emote!=null&&i.hasOwnProperty("emote")&&(o.emote=u.bilibili.app.dynamic.v2.EmoteNode.toObject(i.emote,n),n.oneofs&&(o.text="emote")),i.link!=null&&i.hasOwnProperty("link")&&(o.link=u.bilibili.app.dynamic.v2.LinkNode.toObject(i.link,n),n.oneofs&&(o.text="link")),i.formula!=null&&i.hasOwnProperty("formula")&&(o.formula=u.bilibili.app.dynamic.v2.FormulaNode.toObject(i.formula,n),n.oneofs&&(o.text="formula")),o},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.app.dynamic.v2.TextNode"},e.TextNodeType=function(){let t={},i=Object.create(t);return i[t[0]="INVALID"]=0,i[t[1]="WORDS"]=1,i[t[2]="EMOTE"]=2,i[t[3]="AT"]=3,i[t[4]="BIZ_LINK"]=4,i[t[5]="FORMULA"]=5,i}(),e}(),c.WordNode=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.words=t.string();break}case 2:{o.fontSize=t.double();break}case 3:{o.color=u.bilibili.app.dynamic.v2.Colors.decode(t,t.uint32());break}case 4:{o.style=u.bilibili.app.dynamic.v2.WordNode.WordNodeStyle.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.WordNode)return t;let i=new u.bilibili.app.dynamic.v2.WordNode;if(t.words!=null&&(i.words=String(t.words)),t.fontSize!=null&&(i.fontSize=Number(t.fontSize)),t.color!=null){if(typeof t.color!="object")throw TypeError(".bilibili.app.dynamic.v2.WordNode.color: object expected");i.color=u.bilibili.app.dynamic.v2.Colors.fromObject(t.color)}if(t.style!=null){if(typeof t.style!="object")throw TypeError(".bilibili.app.dynamic.v2.WordNode.style: object expected");i.style=u.bilibili.app.dynamic.v2.WordNode.WordNodeStyle.fromObject(t.style)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.words="",n.fontSize=0,n.color=null,n.style=null),t.words!=null&&t.hasOwnProperty("words")&&(n.words=t.words),t.fontSize!=null&&t.hasOwnProperty("fontSize")&&(n.fontSize=i.json&&!isFinite(t.fontSize)?String(t.fontSize):t.fontSize),t.color!=null&&t.hasOwnProperty("color")&&(n.color=u.bilibili.app.dynamic.v2.Colors.toObject(t.color,i)),t.style!=null&&t.hasOwnProperty("style")&&(n.style=u.bilibili.app.dynamic.v2.WordNode.WordNodeStyle.toObject(t.style,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.WordNode"},e.WordNodeStyle=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.bold=i.bool();break}case 2:{a.italic=i.bool();break}case 3:{a.strikethrough=i.bool();break}case 4:{a.underline=i.bool();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.app.dynamic.v2.WordNode.WordNodeStyle)return i;let n=new u.bilibili.app.dynamic.v2.WordNode.WordNodeStyle;return i.bold!=null&&(n.bold=!!i.bold),i.italic!=null&&(n.italic=!!i.italic),i.strikethrough!=null&&(n.strikethrough=!!i.strikethrough),i.underline!=null&&(n.underline=!!i.underline),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.bold=!1,o.italic=!1,o.strikethrough=!1,o.underline=!1),i.bold!=null&&i.hasOwnProperty("bold")&&(o.bold=i.bold),i.italic!=null&&i.hasOwnProperty("italic")&&(o.italic=i.italic),i.strikethrough!=null&&i.hasOwnProperty("strikethrough")&&(o.strikethrough=i.strikethrough),i.underline!=null&&i.hasOwnProperty("underline")&&(o.underline=i.underline),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.app.dynamic.v2.WordNode.WordNodeStyle"},l}(),e}(),c.EmoteNode=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.rawText=u.bilibili.app.dynamic.v2.WordNode.decode(t,t.uint32());break}case 2:{o.emoteUrl=t.string();break}case 3:{o.emoteWidth=u.bilibili.app.dynamic.v2.EmoteSize.decode(t,t.uint32());break}case 4:{o.isInlineImg=t.bool();break}case 5:{o.inlineImgCfg=u.bilibili.app.dynamic.v2.ImgInlineCfg.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.EmoteNode)return t;let i=new u.bilibili.app.dynamic.v2.EmoteNode;if(t.rawText!=null){if(typeof t.rawText!="object")throw TypeError(".bilibili.app.dynamic.v2.EmoteNode.rawText: object expected");i.rawText=u.bilibili.app.dynamic.v2.WordNode.fromObject(t.rawText)}if(t.emoteUrl!=null&&(i.emoteUrl=String(t.emoteUrl)),t.emoteWidth!=null){if(typeof t.emoteWidth!="object")throw TypeError(".bilibili.app.dynamic.v2.EmoteNode.emoteWidth: object expected");i.emoteWidth=u.bilibili.app.dynamic.v2.EmoteSize.fromObject(t.emoteWidth)}if(t.isInlineImg!=null&&(i.isInlineImg=!!t.isInlineImg),t.inlineImgCfg!=null){if(typeof t.inlineImgCfg!="object")throw TypeError(".bilibili.app.dynamic.v2.EmoteNode.inlineImgCfg: object expected");i.inlineImgCfg=u.bilibili.app.dynamic.v2.ImgInlineCfg.fromObject(t.inlineImgCfg)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.rawText=null,n.emoteUrl="",n.emoteWidth=null,n.isInlineImg=!1,n.inlineImgCfg=null),t.rawText!=null&&t.hasOwnProperty("rawText")&&(n.rawText=u.bilibili.app.dynamic.v2.WordNode.toObject(t.rawText,i)),t.emoteUrl!=null&&t.hasOwnProperty("emoteUrl")&&(n.emoteUrl=t.emoteUrl),t.emoteWidth!=null&&t.hasOwnProperty("emoteWidth")&&(n.emoteWidth=u.bilibili.app.dynamic.v2.EmoteSize.toObject(t.emoteWidth,i)),t.isInlineImg!=null&&t.hasOwnProperty("isInlineImg")&&(n.isInlineImg=t.isInlineImg),t.inlineImgCfg!=null&&t.hasOwnProperty("inlineImgCfg")&&(n.inlineImgCfg=u.bilibili.app.dynamic.v2.ImgInlineCfg.toObject(t.inlineImgCfg,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.EmoteNode"},e}(),c.ImgInlineCfg=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.width=t.double();break}case 2:{o.height=t.double();break}case 3:{o.color=u.bilibili.app.dynamic.v2.Colors.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.ImgInlineCfg)return t;let i=new u.bilibili.app.dynamic.v2.ImgInlineCfg;if(t.width!=null&&(i.width=Number(t.width)),t.height!=null&&(i.height=Number(t.height)),t.color!=null){if(typeof t.color!="object")throw TypeError(".bilibili.app.dynamic.v2.ImgInlineCfg.color: object expected");i.color=u.bilibili.app.dynamic.v2.Colors.fromObject(t.color)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.width=0,n.height=0,n.color=null),t.width!=null&&t.hasOwnProperty("width")&&(n.width=i.json&&!isFinite(t.width)?String(t.width):t.width),t.height!=null&&t.hasOwnProperty("height")&&(n.height=i.json&&!isFinite(t.height)?String(t.height):t.height),t.color!=null&&t.hasOwnProperty("color")&&(n.color=u.bilibili.app.dynamic.v2.Colors.toObject(t.color,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.ImgInlineCfg"},e}(),c.Colors=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.colorDay=t.string();break}case 2:{o.colorNight=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.Colors)return t;let i=new u.bilibili.app.dynamic.v2.Colors;return t.colorDay!=null&&(i.colorDay=String(t.colorDay)),t.colorNight!=null&&(i.colorNight=String(t.colorNight)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.colorDay="",n.colorNight=""),t.colorDay!=null&&t.hasOwnProperty("colorDay")&&(n.colorDay=t.colorDay),t.colorNight!=null&&t.hasOwnProperty("colorNight")&&(n.colorNight=t.colorNight),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.Colors"},e}(),c.EmoteSize=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.width=t.double();break}case 2:{o.emojiSize=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.EmoteSize)return t;let i=new u.bilibili.app.dynamic.v2.EmoteSize;return t.width!=null&&(i.width=Number(t.width)),t.emojiSize!=null&&(i.emojiSize=t.emojiSize|0),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.width=0,n.emojiSize=0),t.width!=null&&t.hasOwnProperty("width")&&(n.width=i.json&&!isFinite(t.width)?String(t.width):t.width),t.emojiSize!=null&&t.hasOwnProperty("emojiSize")&&(n.emojiSize=t.emojiSize),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.EmoteSize"},e}(),c.LinkNodeType=function(){let e={},l=Object.create(e);return l[e[0]="INVALID"]=0,l[e[1]="VIDEO"]=1,l[e[2]="RESERVE"]=2,l[e[3]="VOTE"]=3,l[e[4]="LIVE"]=4,l[e[5]="LOTTERY"]=5,l[e[6]="MATCH"]=6,l[e[7]="GOODS"]=7,l[e[8]="OGV_SS"]=8,l[e[9]="OGV_EP"]=9,l[e[10]="MANGA"]=10,l[e[11]="CHEESE"]=11,l[e[12]="VIDEO_TS"]=12,l[e[13]="AT"]=13,l[e[14]="HASH_TAG"]=14,l[e[15]="ARTICLE"]=15,l[e[16]="URL"]=16,l[e[17]="MAIL"]=17,l[e[18]="LBS"]=18,l[e[19]="ACTIVITY"]=19,l[e[20]="ATTACH_CARD_OFFICIAL_ACTIVITY"]=20,l[e[21]="GAME"]=21,l[e[22]="DECORATION"]=22,l[e[23]="UP_TOPIC"]=23,l[e[24]="UP_ACTIVITY"]=24,l[e[25]="UP_MAOER"]=25,l[e[26]="MEMBER_GOODS"]=26,l[e[27]="OPENMALL_UP_ITEMS"]=27,l[e[28]="SEARCH"]=28,l[e[29]="MUSIC"]=29,l[e[30]="GPT_RCMD_QUESTION"]=30,l[e[31]="MEMBER_TICKET"]=31,l[e[32]="REPOST_PIC_URL"]=32,l[e[33]="REPOST_PIC_DYN_URL"]=33,l[e[34]="OGV_FOLLOW_CARD"]=34,l}(),c.LinkNode=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.showText=u.bilibili.app.dynamic.v2.WordNode.decode(t,t.uint32());break}case 2:{o.link=t.string();break}case 3:{o.icon=t.string();break}case 4:{o.iconSuffix=t.string();break}case 5:{o.linkType=t.string();break}case 6:{o.linkTypeEnum=t.int32();break}case 7:{o.bizId=t.string();break}case 8:{o.timestamp=t.int64();break}case 9:{o.goodsItem=u.bilibili.app.dynamic.v2.GoodsItem.decode(t,t.uint32());break}case 10:{o.noteVideoTs=u.bilibili.app.dynamic.v2.NoteVideoTS.decode(t,t.uint32());break}case 11:{o.bizData=u.google.protobuf.Any.decode(t,t.uint32());break}case 12:{o.linkPics=u.bilibili.app.dynamic.v2.MdlDynDraw.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.LinkNode)return t;let i=new u.bilibili.app.dynamic.v2.LinkNode;if(t.showText!=null){if(typeof t.showText!="object")throw TypeError(".bilibili.app.dynamic.v2.LinkNode.showText: object expected");i.showText=u.bilibili.app.dynamic.v2.WordNode.fromObject(t.showText)}switch(t.link!=null&&(i.link=String(t.link)),t.icon!=null&&(i.icon=String(t.icon)),t.iconSuffix!=null&&(i.iconSuffix=String(t.iconSuffix)),t.linkType!=null&&(i.linkType=String(t.linkType)),t.linkTypeEnum){default:if(typeof t.linkTypeEnum=="number"){i.linkTypeEnum=t.linkTypeEnum;break}break;case"INVALID":case 0:i.linkTypeEnum=0;break;case"VIDEO":case 1:i.linkTypeEnum=1;break;case"RESERVE":case 2:i.linkTypeEnum=2;break;case"VOTE":case 3:i.linkTypeEnum=3;break;case"LIVE":case 4:i.linkTypeEnum=4;break;case"LOTTERY":case 5:i.linkTypeEnum=5;break;case"MATCH":case 6:i.linkTypeEnum=6;break;case"GOODS":case 7:i.linkTypeEnum=7;break;case"OGV_SS":case 8:i.linkTypeEnum=8;break;case"OGV_EP":case 9:i.linkTypeEnum=9;break;case"MANGA":case 10:i.linkTypeEnum=10;break;case"CHEESE":case 11:i.linkTypeEnum=11;break;case"VIDEO_TS":case 12:i.linkTypeEnum=12;break;case"AT":case 13:i.linkTypeEnum=13;break;case"HASH_TAG":case 14:i.linkTypeEnum=14;break;case"ARTICLE":case 15:i.linkTypeEnum=15;break;case"URL":case 16:i.linkTypeEnum=16;break;case"MAIL":case 17:i.linkTypeEnum=17;break;case"LBS":case 18:i.linkTypeEnum=18;break;case"ACTIVITY":case 19:i.linkTypeEnum=19;break;case"ATTACH_CARD_OFFICIAL_ACTIVITY":case 20:i.linkTypeEnum=20;break;case"GAME":case 21:i.linkTypeEnum=21;break;case"DECORATION":case 22:i.linkTypeEnum=22;break;case"UP_TOPIC":case 23:i.linkTypeEnum=23;break;case"UP_ACTIVITY":case 24:i.linkTypeEnum=24;break;case"UP_MAOER":case 25:i.linkTypeEnum=25;break;case"MEMBER_GOODS":case 26:i.linkTypeEnum=26;break;case"OPENMALL_UP_ITEMS":case 27:i.linkTypeEnum=27;break;case"SEARCH":case 28:i.linkTypeEnum=28;break;case"MUSIC":case 29:i.linkTypeEnum=29;break;case"GPT_RCMD_QUESTION":case 30:i.linkTypeEnum=30;break;case"MEMBER_TICKET":case 31:i.linkTypeEnum=31;break;case"REPOST_PIC_URL":case 32:i.linkTypeEnum=32;break;case"REPOST_PIC_DYN_URL":case 33:i.linkTypeEnum=33;break;case"OGV_FOLLOW_CARD":case 34:i.linkTypeEnum=34;break}if(t.bizId!=null&&(i.bizId=String(t.bizId)),t.timestamp!=null&&(r.Long?(i.timestamp=r.Long.fromValue(t.timestamp)).unsigned=!1:typeof t.timestamp=="string"?i.timestamp=parseInt(t.timestamp,10):typeof t.timestamp=="number"?i.timestamp=t.timestamp:typeof t.timestamp=="object"&&(i.timestamp=new r.LongBits(t.timestamp.low>>>0,t.timestamp.high>>>0).toNumber())),t.goodsItem!=null){if(typeof t.goodsItem!="object")throw TypeError(".bilibili.app.dynamic.v2.LinkNode.goodsItem: object expected");i.goodsItem=u.bilibili.app.dynamic.v2.GoodsItem.fromObject(t.goodsItem)}if(t.noteVideoTs!=null){if(typeof t.noteVideoTs!="object")throw TypeError(".bilibili.app.dynamic.v2.LinkNode.noteVideoTs: object expected");i.noteVideoTs=u.bilibili.app.dynamic.v2.NoteVideoTS.fromObject(t.noteVideoTs)}if(t.bizData!=null){if(typeof t.bizData!="object")throw TypeError(".bilibili.app.dynamic.v2.LinkNode.bizData: object expected");i.bizData=u.google.protobuf.Any.fromObject(t.bizData)}if(t.linkPics!=null){if(typeof t.linkPics!="object")throw TypeError(".bilibili.app.dynamic.v2.LinkNode.linkPics: object expected");i.linkPics=u.bilibili.app.dynamic.v2.MdlDynDraw.fromObject(t.linkPics)}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.showText=null,n.link="",n.icon="",n.iconSuffix="",n.linkType="",n.linkTypeEnum=i.enums===String?"INVALID":0,n.bizId="",r.Long){let o=new r.Long(0,0,!1);n.timestamp=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.timestamp=i.longs===String?"0":0;n.goodsItem=null,n.noteVideoTs=null,n.bizData=null,n.linkPics=null}return t.showText!=null&&t.hasOwnProperty("showText")&&(n.showText=u.bilibili.app.dynamic.v2.WordNode.toObject(t.showText,i)),t.link!=null&&t.hasOwnProperty("link")&&(n.link=t.link),t.icon!=null&&t.hasOwnProperty("icon")&&(n.icon=t.icon),t.iconSuffix!=null&&t.hasOwnProperty("iconSuffix")&&(n.iconSuffix=t.iconSuffix),t.linkType!=null&&t.hasOwnProperty("linkType")&&(n.linkType=t.linkType),t.linkTypeEnum!=null&&t.hasOwnProperty("linkTypeEnum")&&(n.linkTypeEnum=i.enums===String?u.bilibili.app.dynamic.v2.LinkNodeType[t.linkTypeEnum]===void 0?t.linkTypeEnum:u.bilibili.app.dynamic.v2.LinkNodeType[t.linkTypeEnum]:t.linkTypeEnum),t.bizId!=null&&t.hasOwnProperty("bizId")&&(n.bizId=t.bizId),t.timestamp!=null&&t.hasOwnProperty("timestamp")&&(typeof t.timestamp=="number"?n.timestamp=i.longs===String?String(t.timestamp):t.timestamp:n.timestamp=i.longs===String?r.Long.prototype.toString.call(t.timestamp):i.longs===Number?new r.LongBits(t.timestamp.low>>>0,t.timestamp.high>>>0).toNumber():t.timestamp),t.goodsItem!=null&&t.hasOwnProperty("goodsItem")&&(n.goodsItem=u.bilibili.app.dynamic.v2.GoodsItem.toObject(t.goodsItem,i)),t.noteVideoTs!=null&&t.hasOwnProperty("noteVideoTs")&&(n.noteVideoTs=u.bilibili.app.dynamic.v2.NoteVideoTS.toObject(t.noteVideoTs,i)),t.bizData!=null&&t.hasOwnProperty("bizData")&&(n.bizData=u.google.protobuf.Any.toObject(t.bizData,i)),t.linkPics!=null&&t.hasOwnProperty("linkPics")&&(n.linkPics=u.bilibili.app.dynamic.v2.MdlDynDraw.toObject(t.linkPics,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.LinkNode"},e}(),c.NoteVideoTS=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.cid=t.int64();break}case 2:{o.oidType=t.int64();break}case 3:{o.status=t.int64();break}case 4:{o.index=t.int64();break}case 5:{o.seconds=t.int64();break}case 6:{o.cidCount=t.int64();break}case 7:{o.key=t.string();break}case 8:{o.title=t.string();break}case 9:{o.epid=t.int64();break}case 10:{o.desc=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.NoteVideoTS)return t;let i=new u.bilibili.app.dynamic.v2.NoteVideoTS;return t.cid!=null&&(r.Long?(i.cid=r.Long.fromValue(t.cid)).unsigned=!1:typeof t.cid=="string"?i.cid=parseInt(t.cid,10):typeof t.cid=="number"?i.cid=t.cid:typeof t.cid=="object"&&(i.cid=new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber())),t.oidType!=null&&(r.Long?(i.oidType=r.Long.fromValue(t.oidType)).unsigned=!1:typeof t.oidType=="string"?i.oidType=parseInt(t.oidType,10):typeof t.oidType=="number"?i.oidType=t.oidType:typeof t.oidType=="object"&&(i.oidType=new r.LongBits(t.oidType.low>>>0,t.oidType.high>>>0).toNumber())),t.status!=null&&(r.Long?(i.status=r.Long.fromValue(t.status)).unsigned=!1:typeof t.status=="string"?i.status=parseInt(t.status,10):typeof t.status=="number"?i.status=t.status:typeof t.status=="object"&&(i.status=new r.LongBits(t.status.low>>>0,t.status.high>>>0).toNumber())),t.index!=null&&(r.Long?(i.index=r.Long.fromValue(t.index)).unsigned=!1:typeof t.index=="string"?i.index=parseInt(t.index,10):typeof t.index=="number"?i.index=t.index:typeof t.index=="object"&&(i.index=new r.LongBits(t.index.low>>>0,t.index.high>>>0).toNumber())),t.seconds!=null&&(r.Long?(i.seconds=r.Long.fromValue(t.seconds)).unsigned=!1:typeof t.seconds=="string"?i.seconds=parseInt(t.seconds,10):typeof t.seconds=="number"?i.seconds=t.seconds:typeof t.seconds=="object"&&(i.seconds=new r.LongBits(t.seconds.low>>>0,t.seconds.high>>>0).toNumber())),t.cidCount!=null&&(r.Long?(i.cidCount=r.Long.fromValue(t.cidCount)).unsigned=!1:typeof t.cidCount=="string"?i.cidCount=parseInt(t.cidCount,10):typeof t.cidCount=="number"?i.cidCount=t.cidCount:typeof t.cidCount=="object"&&(i.cidCount=new r.LongBits(t.cidCount.low>>>0,t.cidCount.high>>>0).toNumber())),t.key!=null&&(i.key=String(t.key)),t.title!=null&&(i.title=String(t.title)),t.epid!=null&&(r.Long?(i.epid=r.Long.fromValue(t.epid)).unsigned=!1:typeof t.epid=="string"?i.epid=parseInt(t.epid,10):typeof t.epid=="number"?i.epid=t.epid:typeof t.epid=="object"&&(i.epid=new r.LongBits(t.epid.low>>>0,t.epid.high>>>0).toNumber())),t.desc!=null&&(i.desc=String(t.desc)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.cid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.cid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.oidType=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.oidType=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.status=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.status=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.index=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.index=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.seconds=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.seconds=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.cidCount=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.cidCount=i.longs===String?"0":0;if(n.key="",n.title="",r.Long){let o=new r.Long(0,0,!1);n.epid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.epid=i.longs===String?"0":0;n.desc=""}return t.cid!=null&&t.hasOwnProperty("cid")&&(typeof t.cid=="number"?n.cid=i.longs===String?String(t.cid):t.cid:n.cid=i.longs===String?r.Long.prototype.toString.call(t.cid):i.longs===Number?new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber():t.cid),t.oidType!=null&&t.hasOwnProperty("oidType")&&(typeof t.oidType=="number"?n.oidType=i.longs===String?String(t.oidType):t.oidType:n.oidType=i.longs===String?r.Long.prototype.toString.call(t.oidType):i.longs===Number?new r.LongBits(t.oidType.low>>>0,t.oidType.high>>>0).toNumber():t.oidType),t.status!=null&&t.hasOwnProperty("status")&&(typeof t.status=="number"?n.status=i.longs===String?String(t.status):t.status:n.status=i.longs===String?r.Long.prototype.toString.call(t.status):i.longs===Number?new r.LongBits(t.status.low>>>0,t.status.high>>>0).toNumber():t.status),t.index!=null&&t.hasOwnProperty("index")&&(typeof t.index=="number"?n.index=i.longs===String?String(t.index):t.index:n.index=i.longs===String?r.Long.prototype.toString.call(t.index):i.longs===Number?new r.LongBits(t.index.low>>>0,t.index.high>>>0).toNumber():t.index),t.seconds!=null&&t.hasOwnProperty("seconds")&&(typeof t.seconds=="number"?n.seconds=i.longs===String?String(t.seconds):t.seconds:n.seconds=i.longs===String?r.Long.prototype.toString.call(t.seconds):i.longs===Number?new r.LongBits(t.seconds.low>>>0,t.seconds.high>>>0).toNumber():t.seconds),t.cidCount!=null&&t.hasOwnProperty("cidCount")&&(typeof t.cidCount=="number"?n.cidCount=i.longs===String?String(t.cidCount):t.cidCount:n.cidCount=i.longs===String?r.Long.prototype.toString.call(t.cidCount):i.longs===Number?new r.LongBits(t.cidCount.low>>>0,t.cidCount.high>>>0).toNumber():t.cidCount),t.key!=null&&t.hasOwnProperty("key")&&(n.key=t.key),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.epid!=null&&t.hasOwnProperty("epid")&&(typeof t.epid=="number"?n.epid=i.longs===String?String(t.epid):t.epid:n.epid=i.longs===String?r.Long.prototype.toString.call(t.epid):i.longs===Number?new r.LongBits(t.epid.low>>>0,t.epid.high>>>0).toNumber():t.epid),t.desc!=null&&t.hasOwnProperty("desc")&&(n.desc=t.desc),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.NoteVideoTS"},e}(),c.FormulaNode=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.latexContent=u.bilibili.app.dynamic.v2.WordNode.decode(t,t.uint32());break}case 2:{o.imageSpec=u.bilibili.app.dynamic.v2.ImgInlineCfg.decode(t,t.uint32());break}case 4:{o.imgUrl=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.FormulaNode)return t;let i=new u.bilibili.app.dynamic.v2.FormulaNode;if(t.latexContent!=null){if(typeof t.latexContent!="object")throw TypeError(".bilibili.app.dynamic.v2.FormulaNode.latexContent: object expected");i.latexContent=u.bilibili.app.dynamic.v2.WordNode.fromObject(t.latexContent)}if(t.imageSpec!=null){if(typeof t.imageSpec!="object")throw TypeError(".bilibili.app.dynamic.v2.FormulaNode.imageSpec: object expected");i.imageSpec=u.bilibili.app.dynamic.v2.ImgInlineCfg.fromObject(t.imageSpec)}return t.imgUrl!=null&&(i.imgUrl=String(t.imgUrl)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.latexContent=null,n.imageSpec=null,n.imgUrl=""),t.latexContent!=null&&t.hasOwnProperty("latexContent")&&(n.latexContent=u.bilibili.app.dynamic.v2.WordNode.toObject(t.latexContent,i)),t.imageSpec!=null&&t.hasOwnProperty("imageSpec")&&(n.imageSpec=u.bilibili.app.dynamic.v2.ImgInlineCfg.toObject(t.imageSpec,i)),t.imgUrl!=null&&t.hasOwnProperty("imgUrl")&&(n.imgUrl=t.imgUrl),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.FormulaNode"},e}(),c.CardParagraph=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.additionalCard=u.bilibili.app.dynamic.v2.ModuleAdditional.decode(t,t.uint32());break}case 2:{o.bizType=t.int32();break}case 3:{o.bizId=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.CardParagraph)return t;let i=new u.bilibili.app.dynamic.v2.CardParagraph;if(t.additionalCard!=null){if(typeof t.additionalCard!="object")throw TypeError(".bilibili.app.dynamic.v2.CardParagraph.additionalCard: object expected");i.additionalCard=u.bilibili.app.dynamic.v2.ModuleAdditional.fromObject(t.additionalCard)}switch(t.bizType){default:if(typeof t.bizType=="number"){i.bizType=t.bizType;break}break;case"INVALID":case 0:i.bizType=0;break;case"VIDEO":case 1:i.bizType=1;break;case"RESERVE":case 2:i.bizType=2;break;case"VOTE":case 3:i.bizType=3;break;case"LIVE":case 4:i.bizType=4;break;case"LOTTERY":case 5:i.bizType=5;break;case"MATCH":case 6:i.bizType=6;break;case"GOODS":case 7:i.bizType=7;break;case"OGV_SS":case 8:i.bizType=8;break;case"OGV_EP":case 9:i.bizType=9;break;case"MANGA":case 10:i.bizType=10;break;case"CHEESE":case 11:i.bizType=11;break;case"VIDEO_TS":case 12:i.bizType=12;break;case"AT":case 13:i.bizType=13;break;case"HASH_TAG":case 14:i.bizType=14;break;case"ARTICLE":case 15:i.bizType=15;break;case"URL":case 16:i.bizType=16;break;case"MAIL":case 17:i.bizType=17;break;case"LBS":case 18:i.bizType=18;break;case"ACTIVITY":case 19:i.bizType=19;break;case"ATTACH_CARD_OFFICIAL_ACTIVITY":case 20:i.bizType=20;break;case"GAME":case 21:i.bizType=21;break;case"DECORATION":case 22:i.bizType=22;break;case"UP_TOPIC":case 23:i.bizType=23;break;case"UP_ACTIVITY":case 24:i.bizType=24;break;case"UP_MAOER":case 25:i.bizType=25;break;case"MEMBER_GOODS":case 26:i.bizType=26;break;case"OPENMALL_UP_ITEMS":case 27:i.bizType=27;break;case"SEARCH":case 28:i.bizType=28;break;case"MUSIC":case 29:i.bizType=29;break;case"GPT_RCMD_QUESTION":case 30:i.bizType=30;break;case"MEMBER_TICKET":case 31:i.bizType=31;break;case"REPOST_PIC_URL":case 32:i.bizType=32;break;case"REPOST_PIC_DYN_URL":case 33:i.bizType=33;break;case"OGV_FOLLOW_CARD":case 34:i.bizType=34;break}return t.bizId!=null&&(i.bizId=String(t.bizId)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.additionalCard=null,n.bizType=i.enums===String?"INVALID":0,n.bizId=""),t.additionalCard!=null&&t.hasOwnProperty("additionalCard")&&(n.additionalCard=u.bilibili.app.dynamic.v2.ModuleAdditional.toObject(t.additionalCard,i)),t.bizType!=null&&t.hasOwnProperty("bizType")&&(n.bizType=i.enums===String?u.bilibili.app.dynamic.v2.LinkNodeType[t.bizType]===void 0?t.bizType:u.bilibili.app.dynamic.v2.LinkNodeType[t.bizType]:t.bizType),t.bizId!=null&&t.hasOwnProperty("bizId")&&(n.bizId=t.bizId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.CardParagraph"},e}(),c.CodeParagraph=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.codeLang=t.string();break}case 2:{o.codeContent=t.string();break}case 3:{o.popupLink=t.string();break}case 4:{o.barIcon=t.string();break}case 5:{o.barNotice=t.string();break}case 6:{o.btnText=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.dynamic.v2.CodeParagraph)return t;let i=new u.bilibili.app.dynamic.v2.CodeParagraph;return t.codeLang!=null&&(i.codeLang=String(t.codeLang)),t.codeContent!=null&&(i.codeContent=String(t.codeContent)),t.popupLink!=null&&(i.popupLink=String(t.popupLink)),t.barIcon!=null&&(i.barIcon=String(t.barIcon)),t.barNotice!=null&&(i.barNotice=String(t.barNotice)),t.btnText!=null&&(i.btnText=String(t.btnText)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.codeLang="",n.codeContent="",n.popupLink="",n.barIcon="",n.barNotice="",n.btnText=""),t.codeLang!=null&&t.hasOwnProperty("codeLang")&&(n.codeLang=t.codeLang),t.codeContent!=null&&t.hasOwnProperty("codeContent")&&(n.codeContent=t.codeContent),t.popupLink!=null&&t.hasOwnProperty("popupLink")&&(n.popupLink=t.popupLink),t.barIcon!=null&&t.hasOwnProperty("barIcon")&&(n.barIcon=t.barIcon),t.barNotice!=null&&t.hasOwnProperty("barNotice")&&(n.barNotice=t.barNotice),t.btnText!=null&&t.hasOwnProperty("btnText")&&(n.btnText=t.btnText),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.dynamic.v2.CodeParagraph"},e}(),c}(),p}(),d.interface_=function(){let p={};return p.v1=function(){let c={};return c.History=function(){function e(l,t,i){b.rpc.Service.call(this,l,t,i)}return(e.prototype=Object.create(b.rpc.Service.prototype)).constructor=e,e.create=function(t,i,n){return new this(t,i,n)},Object.defineProperty(e.prototype.historyTab=function l(t,i){return this.rpcCall(l,u.bilibili.app.interface_.v1.HistoryTabReq,u.bilibili.app.interface_.v1.HistoryTabReply,t,i)},"name",{value:"HistoryTab"}),Object.defineProperty(e.prototype.historyTabV2=function l(t,i){return this.rpcCall(l,u.bilibili.app.interface_.v1.HistoryTabReq,u.bilibili.app.interface_.v1.HistoryTabReply,t,i)},"name",{value:"HistoryTabV2"}),Object.defineProperty(e.prototype.cursor=function l(t,i){return this.rpcCall(l,u.bilibili.app.interface_.v1.CursorReq,u.bilibili.app.interface_.v1.CursorReply,t,i)},"name",{value:"Cursor"}),Object.defineProperty(e.prototype.cursorV2=function l(t,i){return this.rpcCall(l,u.bilibili.app.interface_.v1.CursorV2Req,u.bilibili.app.interface_.v1.CursorV2Reply,t,i)},"name",{value:"CursorV2"}),Object.defineProperty(e.prototype.delete=function l(t,i){return this.rpcCall(l,u.bilibili.app.interface_.v1.DeleteReq,u.bilibili.app.interface_.v1.NoReply,t,i)},"name",{value:"Delete"}),Object.defineProperty(e.prototype.search=function l(t,i){return this.rpcCall(l,u.bilibili.app.interface_.v1.SearchReq,u.bilibili.app.interface_.v1.SearchReply,t,i)},"name",{value:"Search"}),Object.defineProperty(e.prototype.clear=function l(t,i){return this.rpcCall(l,u.bilibili.app.interface_.v1.ClearReq,u.bilibili.app.interface_.v1.NoReply,t,i)},"name",{value:"Clear"}),Object.defineProperty(e.prototype.latestHistory=function l(t,i){return this.rpcCall(l,u.bilibili.app.interface_.v1.LatestHistoryReq,u.bilibili.app.interface_.v1.LatestHistoryReply,t,i)},"name",{value:"LatestHistory"}),e}(),c.HistoryTabReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.business=t.string();break}case 2:{o.source=t.int32();break}case 3:{o.keyword=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.interface_.v1.HistoryTabReq)return t;let i=new u.bilibili.app.interface_.v1.HistoryTabReq;switch(t.business!=null&&(i.business=String(t.business)),t.source){default:if(typeof t.source=="number"){i.source=t.source;break}break;case"history":case 0:i.source=0;break;case"shopping":case 1:i.source=1;break}return t.keyword!=null&&(i.keyword=String(t.keyword)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.business="",n.source=i.enums===String?"history":0,n.keyword=""),t.business!=null&&t.hasOwnProperty("business")&&(n.business=t.business),t.source!=null&&t.hasOwnProperty("source")&&(n.source=i.enums===String?u.bilibili.app.interface_.v1.HistorySource[t.source]===void 0?t.source:u.bilibili.app.interface_.v1.HistorySource[t.source]:t.source),t.keyword!=null&&t.hasOwnProperty("keyword")&&(n.keyword=t.keyword),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.interface_.v1.HistoryTabReq"},e}(),c.HistoryTabReply=function(){function e(l){if(this.tab=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.tab&&o.tab.length||(o.tab=[]),o.tab.push(u.bilibili.app.interface_.v1.CursorTab.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.interface_.v1.HistoryTabReply)return t;let i=new u.bilibili.app.interface_.v1.HistoryTabReply;if(t.tab){if(!Array.isArray(t.tab))throw TypeError(".bilibili.app.interface_.v1.HistoryTabReply.tab: array expected");i.tab=[];for(let n=0;n>>3){case 1:{o.cursor=u.bilibili.app.interface_.v1.Cursor.decode(t,t.uint32());break}case 2:{o.business=t.string();break}case 3:{o.playerPreload=u.bilibili.app.interface_.v1.PlayerPreloadParams.decode(t,t.uint32());break}case 4:{o.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.interface_.v1.CursorReq)return t;let i=new u.bilibili.app.interface_.v1.CursorReq;if(t.cursor!=null){if(typeof t.cursor!="object")throw TypeError(".bilibili.app.interface_.v1.CursorReq.cursor: object expected");i.cursor=u.bilibili.app.interface_.v1.Cursor.fromObject(t.cursor)}if(t.business!=null&&(i.business=String(t.business)),t.playerPreload!=null){if(typeof t.playerPreload!="object")throw TypeError(".bilibili.app.interface_.v1.CursorReq.playerPreload: object expected");i.playerPreload=u.bilibili.app.interface_.v1.PlayerPreloadParams.fromObject(t.playerPreload)}if(t.playerArgs!=null){if(typeof t.playerArgs!="object")throw TypeError(".bilibili.app.interface_.v1.CursorReq.playerArgs: object expected");i.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.fromObject(t.playerArgs)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.cursor=null,n.business="",n.playerPreload=null,n.playerArgs=null),t.cursor!=null&&t.hasOwnProperty("cursor")&&(n.cursor=u.bilibili.app.interface_.v1.Cursor.toObject(t.cursor,i)),t.business!=null&&t.hasOwnProperty("business")&&(n.business=t.business),t.playerPreload!=null&&t.hasOwnProperty("playerPreload")&&(n.playerPreload=u.bilibili.app.interface_.v1.PlayerPreloadParams.toObject(t.playerPreload,i)),t.playerArgs!=null&&t.hasOwnProperty("playerArgs")&&(n.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.toObject(t.playerArgs,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.interface_.v1.CursorReq"},e}(),c.CursorReply=function(){function e(l){if(this.items=[],this.tab=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.items&&o.items.length||(o.items=[]),o.items.push(u.bilibili.app.interface_.v1.CursorItem.decode(t,t.uint32()));break}case 2:{o.tab&&o.tab.length||(o.tab=[]),o.tab.push(u.bilibili.app.interface_.v1.CursorTab.decode(t,t.uint32()));break}case 3:{o.cursor=u.bilibili.app.interface_.v1.Cursor.decode(t,t.uint32());break}case 4:{o.hasMore=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.interface_.v1.CursorReply)return t;let i=new u.bilibili.app.interface_.v1.CursorReply;if(t.items){if(!Array.isArray(t.items))throw TypeError(".bilibili.app.interface_.v1.CursorReply.items: array expected");i.items=[];for(let n=0;n>>3){case 1:{o.cursor=u.bilibili.app.interface_.v1.Cursor.decode(t,t.uint32());break}case 2:{o.business=t.string();break}case 3:{o.playerPreload=u.bilibili.app.interface_.v1.PlayerPreloadParams.decode(t,t.uint32());break}case 4:{o.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.decode(t,t.uint32());break}case 5:{o.isLocal=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.interface_.v1.CursorV2Req)return t;let i=new u.bilibili.app.interface_.v1.CursorV2Req;if(t.cursor!=null){if(typeof t.cursor!="object")throw TypeError(".bilibili.app.interface_.v1.CursorV2Req.cursor: object expected");i.cursor=u.bilibili.app.interface_.v1.Cursor.fromObject(t.cursor)}if(t.business!=null&&(i.business=String(t.business)),t.playerPreload!=null){if(typeof t.playerPreload!="object")throw TypeError(".bilibili.app.interface_.v1.CursorV2Req.playerPreload: object expected");i.playerPreload=u.bilibili.app.interface_.v1.PlayerPreloadParams.fromObject(t.playerPreload)}if(t.playerArgs!=null){if(typeof t.playerArgs!="object")throw TypeError(".bilibili.app.interface_.v1.CursorV2Req.playerArgs: object expected");i.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.fromObject(t.playerArgs)}return t.isLocal!=null&&(i.isLocal=!!t.isLocal),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.cursor=null,n.business="",n.playerPreload=null,n.playerArgs=null,n.isLocal=!1),t.cursor!=null&&t.hasOwnProperty("cursor")&&(n.cursor=u.bilibili.app.interface_.v1.Cursor.toObject(t.cursor,i)),t.business!=null&&t.hasOwnProperty("business")&&(n.business=t.business),t.playerPreload!=null&&t.hasOwnProperty("playerPreload")&&(n.playerPreload=u.bilibili.app.interface_.v1.PlayerPreloadParams.toObject(t.playerPreload,i)),t.playerArgs!=null&&t.hasOwnProperty("playerArgs")&&(n.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.toObject(t.playerArgs,i)),t.isLocal!=null&&t.hasOwnProperty("isLocal")&&(n.isLocal=t.isLocal),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.interface_.v1.CursorV2Req"},e}(),c.CursorV2Reply=function(){function e(l){if(this.items=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.items&&o.items.length||(o.items=[]),o.items.push(u.bilibili.app.interface_.v1.CursorItem.decode(t,t.uint32()));break}case 2:{o.cursor=u.bilibili.app.interface_.v1.Cursor.decode(t,t.uint32());break}case 3:{o.hasMore=t.bool();break}case 4:{o.emptyLink=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.interface_.v1.CursorV2Reply)return t;let i=new u.bilibili.app.interface_.v1.CursorV2Reply;if(t.items){if(!Array.isArray(t.items))throw TypeError(".bilibili.app.interface_.v1.CursorV2Reply.items: array expected");i.items=[];for(let n=0;n>>3){case 1:{a.cardUgc=u.bilibili.app.interface_.v1.CardUGC.decode(i,i.uint32());break}case 2:{a.cardOgv=u.bilibili.app.interface_.v1.CardOGV.decode(i,i.uint32());break}case 3:{a.cardArticle=u.bilibili.app.interface_.v1.CardArticle.decode(i,i.uint32());break}case 4:{a.cardLive=u.bilibili.app.interface_.v1.CardLive.decode(i,i.uint32());break}case 5:{a.cardCheese=u.bilibili.app.interface_.v1.CardCheese.decode(i,i.uint32());break}case 6:{a.title=i.string();break}case 7:{a.uri=i.string();break}case 8:{a.viewAt=i.int64();break}case 9:{a.kid=i.int64();break}case 10:{a.oid=i.int64();break}case 11:{a.business=i.string();break}case 12:{a.tp=i.int32();break}case 13:{a.dt=u.bilibili.app.interface_.v1.DeviceType.decode(i,i.uint32());break}case 14:{a.hasShare=i.bool();break}default:i.skipType(y&7);break}}return a},e.fromObject=function(i){if(i instanceof u.bilibili.app.interface_.v1.CursorItem)return i;let n=new u.bilibili.app.interface_.v1.CursorItem;if(i.cardUgc!=null){if(typeof i.cardUgc!="object")throw TypeError(".bilibili.app.interface_.v1.CursorItem.cardUgc: object expected");n.cardUgc=u.bilibili.app.interface_.v1.CardUGC.fromObject(i.cardUgc)}if(i.cardOgv!=null){if(typeof i.cardOgv!="object")throw TypeError(".bilibili.app.interface_.v1.CursorItem.cardOgv: object expected");n.cardOgv=u.bilibili.app.interface_.v1.CardOGV.fromObject(i.cardOgv)}if(i.cardArticle!=null){if(typeof i.cardArticle!="object")throw TypeError(".bilibili.app.interface_.v1.CursorItem.cardArticle: object expected");n.cardArticle=u.bilibili.app.interface_.v1.CardArticle.fromObject(i.cardArticle)}if(i.cardLive!=null){if(typeof i.cardLive!="object")throw TypeError(".bilibili.app.interface_.v1.CursorItem.cardLive: object expected");n.cardLive=u.bilibili.app.interface_.v1.CardLive.fromObject(i.cardLive)}if(i.cardCheese!=null){if(typeof i.cardCheese!="object")throw TypeError(".bilibili.app.interface_.v1.CursorItem.cardCheese: object expected");n.cardCheese=u.bilibili.app.interface_.v1.CardCheese.fromObject(i.cardCheese)}if(i.title!=null&&(n.title=String(i.title)),i.uri!=null&&(n.uri=String(i.uri)),i.viewAt!=null&&(r.Long?(n.viewAt=r.Long.fromValue(i.viewAt)).unsigned=!1:typeof i.viewAt=="string"?n.viewAt=parseInt(i.viewAt,10):typeof i.viewAt=="number"?n.viewAt=i.viewAt:typeof i.viewAt=="object"&&(n.viewAt=new r.LongBits(i.viewAt.low>>>0,i.viewAt.high>>>0).toNumber())),i.kid!=null&&(r.Long?(n.kid=r.Long.fromValue(i.kid)).unsigned=!1:typeof i.kid=="string"?n.kid=parseInt(i.kid,10):typeof i.kid=="number"?n.kid=i.kid:typeof i.kid=="object"&&(n.kid=new r.LongBits(i.kid.low>>>0,i.kid.high>>>0).toNumber())),i.oid!=null&&(r.Long?(n.oid=r.Long.fromValue(i.oid)).unsigned=!1:typeof i.oid=="string"?n.oid=parseInt(i.oid,10):typeof i.oid=="number"?n.oid=i.oid:typeof i.oid=="object"&&(n.oid=new r.LongBits(i.oid.low>>>0,i.oid.high>>>0).toNumber())),i.business!=null&&(n.business=String(i.business)),i.tp!=null&&(n.tp=i.tp|0),i.dt!=null){if(typeof i.dt!="object")throw TypeError(".bilibili.app.interface_.v1.CursorItem.dt: object expected");n.dt=u.bilibili.app.interface_.v1.DeviceType.fromObject(i.dt)}return i.hasShare!=null&&(n.hasShare=!!i.hasShare),n},e.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(o.title="",o.uri="",r.Long){let a=new r.Long(0,0,!1);o.viewAt=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.viewAt=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.kid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.kid=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.oid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.oid=n.longs===String?"0":0;o.business="",o.tp=0,o.dt=null,o.hasShare=!1}return i.cardUgc!=null&&i.hasOwnProperty("cardUgc")&&(o.cardUgc=u.bilibili.app.interface_.v1.CardUGC.toObject(i.cardUgc,n),n.oneofs&&(o.cardItem="cardUgc")),i.cardOgv!=null&&i.hasOwnProperty("cardOgv")&&(o.cardOgv=u.bilibili.app.interface_.v1.CardOGV.toObject(i.cardOgv,n),n.oneofs&&(o.cardItem="cardOgv")),i.cardArticle!=null&&i.hasOwnProperty("cardArticle")&&(o.cardArticle=u.bilibili.app.interface_.v1.CardArticle.toObject(i.cardArticle,n),n.oneofs&&(o.cardItem="cardArticle")),i.cardLive!=null&&i.hasOwnProperty("cardLive")&&(o.cardLive=u.bilibili.app.interface_.v1.CardLive.toObject(i.cardLive,n),n.oneofs&&(o.cardItem="cardLive")),i.cardCheese!=null&&i.hasOwnProperty("cardCheese")&&(o.cardCheese=u.bilibili.app.interface_.v1.CardCheese.toObject(i.cardCheese,n),n.oneofs&&(o.cardItem="cardCheese")),i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.uri!=null&&i.hasOwnProperty("uri")&&(o.uri=i.uri),i.viewAt!=null&&i.hasOwnProperty("viewAt")&&(typeof i.viewAt=="number"?o.viewAt=n.longs===String?String(i.viewAt):i.viewAt:o.viewAt=n.longs===String?r.Long.prototype.toString.call(i.viewAt):n.longs===Number?new r.LongBits(i.viewAt.low>>>0,i.viewAt.high>>>0).toNumber():i.viewAt),i.kid!=null&&i.hasOwnProperty("kid")&&(typeof i.kid=="number"?o.kid=n.longs===String?String(i.kid):i.kid:o.kid=n.longs===String?r.Long.prototype.toString.call(i.kid):n.longs===Number?new r.LongBits(i.kid.low>>>0,i.kid.high>>>0).toNumber():i.kid),i.oid!=null&&i.hasOwnProperty("oid")&&(typeof i.oid=="number"?o.oid=n.longs===String?String(i.oid):i.oid:o.oid=n.longs===String?r.Long.prototype.toString.call(i.oid):n.longs===Number?new r.LongBits(i.oid.low>>>0,i.oid.high>>>0).toNumber():i.oid),i.business!=null&&i.hasOwnProperty("business")&&(o.business=i.business),i.tp!=null&&i.hasOwnProperty("tp")&&(o.tp=i.tp),i.dt!=null&&i.hasOwnProperty("dt")&&(o.dt=u.bilibili.app.interface_.v1.DeviceType.toObject(i.dt,n)),i.hasShare!=null&&i.hasOwnProperty("hasShare")&&(o.hasShare=i.hasShare),o},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.app.interface_.v1.CursorItem"},e}(),c.CardUGC=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.cover=t.string();break}case 2:{o.progress=t.int64();break}case 3:{o.duration=t.int64();break}case 4:{o.name=t.string();break}case 5:{o.mid=t.int64();break}case 6:{o.displayAttention=t.bool();break}case 7:{o.cid=t.int64();break}case 8:{o.page=t.int32();break}case 9:{o.subtitle=t.string();break}case 10:{o.relation=u.bilibili.app.interface_.v1.Relation.decode(t,t.uint32());break}case 11:{o.bvid=t.string();break}case 12:{o.videos=t.int64();break}case 13:{o.shortLink=t.string();break}case 14:{o.shareSubtitle=t.string();break}case 15:{o.view=t.int64();break}case 16:{o.state=t.int64();break}case 17:{o.badge=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.interface_.v1.CardUGC)return t;let i=new u.bilibili.app.interface_.v1.CardUGC;if(t.cover!=null&&(i.cover=String(t.cover)),t.progress!=null&&(r.Long?(i.progress=r.Long.fromValue(t.progress)).unsigned=!1:typeof t.progress=="string"?i.progress=parseInt(t.progress,10):typeof t.progress=="number"?i.progress=t.progress:typeof t.progress=="object"&&(i.progress=new r.LongBits(t.progress.low>>>0,t.progress.high>>>0).toNumber())),t.duration!=null&&(r.Long?(i.duration=r.Long.fromValue(t.duration)).unsigned=!1:typeof t.duration=="string"?i.duration=parseInt(t.duration,10):typeof t.duration=="number"?i.duration=t.duration:typeof t.duration=="object"&&(i.duration=new r.LongBits(t.duration.low>>>0,t.duration.high>>>0).toNumber())),t.name!=null&&(i.name=String(t.name)),t.mid!=null&&(r.Long?(i.mid=r.Long.fromValue(t.mid)).unsigned=!1:typeof t.mid=="string"?i.mid=parseInt(t.mid,10):typeof t.mid=="number"?i.mid=t.mid:typeof t.mid=="object"&&(i.mid=new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber())),t.displayAttention!=null&&(i.displayAttention=!!t.displayAttention),t.cid!=null&&(r.Long?(i.cid=r.Long.fromValue(t.cid)).unsigned=!1:typeof t.cid=="string"?i.cid=parseInt(t.cid,10):typeof t.cid=="number"?i.cid=t.cid:typeof t.cid=="object"&&(i.cid=new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber())),t.page!=null&&(i.page=t.page|0),t.subtitle!=null&&(i.subtitle=String(t.subtitle)),t.relation!=null){if(typeof t.relation!="object")throw TypeError(".bilibili.app.interface_.v1.CardUGC.relation: object expected");i.relation=u.bilibili.app.interface_.v1.Relation.fromObject(t.relation)}return t.bvid!=null&&(i.bvid=String(t.bvid)),t.videos!=null&&(r.Long?(i.videos=r.Long.fromValue(t.videos)).unsigned=!1:typeof t.videos=="string"?i.videos=parseInt(t.videos,10):typeof t.videos=="number"?i.videos=t.videos:typeof t.videos=="object"&&(i.videos=new r.LongBits(t.videos.low>>>0,t.videos.high>>>0).toNumber())),t.shortLink!=null&&(i.shortLink=String(t.shortLink)),t.shareSubtitle!=null&&(i.shareSubtitle=String(t.shareSubtitle)),t.view!=null&&(r.Long?(i.view=r.Long.fromValue(t.view)).unsigned=!1:typeof t.view=="string"?i.view=parseInt(t.view,10):typeof t.view=="number"?i.view=t.view:typeof t.view=="object"&&(i.view=new r.LongBits(t.view.low>>>0,t.view.high>>>0).toNumber())),t.state!=null&&(r.Long?(i.state=r.Long.fromValue(t.state)).unsigned=!1:typeof t.state=="string"?i.state=parseInt(t.state,10):typeof t.state=="number"?i.state=t.state:typeof t.state=="object"&&(i.state=new r.LongBits(t.state.low>>>0,t.state.high>>>0).toNumber())),t.badge!=null&&(i.badge=String(t.badge)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.cover="",r.Long){let o=new r.Long(0,0,!1);n.progress=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.progress=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.duration=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.duration=i.longs===String?"0":0;if(n.name="",r.Long){let o=new r.Long(0,0,!1);n.mid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mid=i.longs===String?"0":0;if(n.displayAttention=!1,r.Long){let o=new r.Long(0,0,!1);n.cid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.cid=i.longs===String?"0":0;if(n.page=0,n.subtitle="",n.relation=null,n.bvid="",r.Long){let o=new r.Long(0,0,!1);n.videos=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.videos=i.longs===String?"0":0;if(n.shortLink="",n.shareSubtitle="",r.Long){let o=new r.Long(0,0,!1);n.view=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.view=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.state=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.state=i.longs===String?"0":0;n.badge=""}return t.cover!=null&&t.hasOwnProperty("cover")&&(n.cover=t.cover),t.progress!=null&&t.hasOwnProperty("progress")&&(typeof t.progress=="number"?n.progress=i.longs===String?String(t.progress):t.progress:n.progress=i.longs===String?r.Long.prototype.toString.call(t.progress):i.longs===Number?new r.LongBits(t.progress.low>>>0,t.progress.high>>>0).toNumber():t.progress),t.duration!=null&&t.hasOwnProperty("duration")&&(typeof t.duration=="number"?n.duration=i.longs===String?String(t.duration):t.duration:n.duration=i.longs===String?r.Long.prototype.toString.call(t.duration):i.longs===Number?new r.LongBits(t.duration.low>>>0,t.duration.high>>>0).toNumber():t.duration),t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),t.mid!=null&&t.hasOwnProperty("mid")&&(typeof t.mid=="number"?n.mid=i.longs===String?String(t.mid):t.mid:n.mid=i.longs===String?r.Long.prototype.toString.call(t.mid):i.longs===Number?new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber():t.mid),t.displayAttention!=null&&t.hasOwnProperty("displayAttention")&&(n.displayAttention=t.displayAttention),t.cid!=null&&t.hasOwnProperty("cid")&&(typeof t.cid=="number"?n.cid=i.longs===String?String(t.cid):t.cid:n.cid=i.longs===String?r.Long.prototype.toString.call(t.cid):i.longs===Number?new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber():t.cid),t.page!=null&&t.hasOwnProperty("page")&&(n.page=t.page),t.subtitle!=null&&t.hasOwnProperty("subtitle")&&(n.subtitle=t.subtitle),t.relation!=null&&t.hasOwnProperty("relation")&&(n.relation=u.bilibili.app.interface_.v1.Relation.toObject(t.relation,i)),t.bvid!=null&&t.hasOwnProperty("bvid")&&(n.bvid=t.bvid),t.videos!=null&&t.hasOwnProperty("videos")&&(typeof t.videos=="number"?n.videos=i.longs===String?String(t.videos):t.videos:n.videos=i.longs===String?r.Long.prototype.toString.call(t.videos):i.longs===Number?new r.LongBits(t.videos.low>>>0,t.videos.high>>>0).toNumber():t.videos),t.shortLink!=null&&t.hasOwnProperty("shortLink")&&(n.shortLink=t.shortLink),t.shareSubtitle!=null&&t.hasOwnProperty("shareSubtitle")&&(n.shareSubtitle=t.shareSubtitle),t.view!=null&&t.hasOwnProperty("view")&&(typeof t.view=="number"?n.view=i.longs===String?String(t.view):t.view:n.view=i.longs===String?r.Long.prototype.toString.call(t.view):i.longs===Number?new r.LongBits(t.view.low>>>0,t.view.high>>>0).toNumber():t.view),t.state!=null&&t.hasOwnProperty("state")&&(typeof t.state=="number"?n.state=i.longs===String?String(t.state):t.state:n.state=i.longs===String?r.Long.prototype.toString.call(t.state):i.longs===Number?new r.LongBits(t.state.low>>>0,t.state.high>>>0).toNumber():t.state),t.badge!=null&&t.hasOwnProperty("badge")&&(n.badge=t.badge),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.interface_.v1.CardUGC"},e}(),c.CardOGV=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.cover=t.string();break}case 2:{o.progress=t.int64();break}case 3:{o.duration=t.int64();break}case 4:{o.subtitle=t.string();break}case 5:{o.badge=t.string();break}case 6:{o.state=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.interface_.v1.CardOGV)return t;let i=new u.bilibili.app.interface_.v1.CardOGV;return t.cover!=null&&(i.cover=String(t.cover)),t.progress!=null&&(r.Long?(i.progress=r.Long.fromValue(t.progress)).unsigned=!1:typeof t.progress=="string"?i.progress=parseInt(t.progress,10):typeof t.progress=="number"?i.progress=t.progress:typeof t.progress=="object"&&(i.progress=new r.LongBits(t.progress.low>>>0,t.progress.high>>>0).toNumber())),t.duration!=null&&(r.Long?(i.duration=r.Long.fromValue(t.duration)).unsigned=!1:typeof t.duration=="string"?i.duration=parseInt(t.duration,10):typeof t.duration=="number"?i.duration=t.duration:typeof t.duration=="object"&&(i.duration=new r.LongBits(t.duration.low>>>0,t.duration.high>>>0).toNumber())),t.subtitle!=null&&(i.subtitle=String(t.subtitle)),t.badge!=null&&(i.badge=String(t.badge)),t.state!=null&&(r.Long?(i.state=r.Long.fromValue(t.state)).unsigned=!1:typeof t.state=="string"?i.state=parseInt(t.state,10):typeof t.state=="number"?i.state=t.state:typeof t.state=="object"&&(i.state=new r.LongBits(t.state.low>>>0,t.state.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.cover="",r.Long){let o=new r.Long(0,0,!1);n.progress=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.progress=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.duration=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.duration=i.longs===String?"0":0;if(n.subtitle="",n.badge="",r.Long){let o=new r.Long(0,0,!1);n.state=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.state=i.longs===String?"0":0}return t.cover!=null&&t.hasOwnProperty("cover")&&(n.cover=t.cover),t.progress!=null&&t.hasOwnProperty("progress")&&(typeof t.progress=="number"?n.progress=i.longs===String?String(t.progress):t.progress:n.progress=i.longs===String?r.Long.prototype.toString.call(t.progress):i.longs===Number?new r.LongBits(t.progress.low>>>0,t.progress.high>>>0).toNumber():t.progress),t.duration!=null&&t.hasOwnProperty("duration")&&(typeof t.duration=="number"?n.duration=i.longs===String?String(t.duration):t.duration:n.duration=i.longs===String?r.Long.prototype.toString.call(t.duration):i.longs===Number?new r.LongBits(t.duration.low>>>0,t.duration.high>>>0).toNumber():t.duration),t.subtitle!=null&&t.hasOwnProperty("subtitle")&&(n.subtitle=t.subtitle),t.badge!=null&&t.hasOwnProperty("badge")&&(n.badge=t.badge),t.state!=null&&t.hasOwnProperty("state")&&(typeof t.state=="number"?n.state=i.longs===String?String(t.state):t.state:n.state=i.longs===String?r.Long.prototype.toString.call(t.state):i.longs===Number?new r.LongBits(t.state.low>>>0,t.state.high>>>0).toNumber():t.state),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.interface_.v1.CardOGV"},e}(),c.CardArticle=function(){function e(l){if(this.covers=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.covers&&o.covers.length||(o.covers=[]),o.covers.push(t.string());break}case 2:{o.name=t.string();break}case 3:{o.mid=t.int64();break}case 4:{o.displayAttention=t.bool();break}case 5:{o.badge=t.string();break}case 6:{o.relation=u.bilibili.app.interface_.v1.Relation.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.interface_.v1.CardArticle)return t;let i=new u.bilibili.app.interface_.v1.CardArticle;if(t.covers){if(!Array.isArray(t.covers))throw TypeError(".bilibili.app.interface_.v1.CardArticle.covers: array expected");i.covers=[];for(let n=0;n>>0,t.mid.high>>>0).toNumber())),t.displayAttention!=null&&(i.displayAttention=!!t.displayAttention),t.badge!=null&&(i.badge=String(t.badge)),t.relation!=null){if(typeof t.relation!="object")throw TypeError(".bilibili.app.interface_.v1.CardArticle.relation: object expected");i.relation=u.bilibili.app.interface_.v1.Relation.fromObject(t.relation)}return i},e.toObject=function(t,i){i||(i={});let n={};if((i.arrays||i.defaults)&&(n.covers=[]),i.defaults){if(n.name="",r.Long){let o=new r.Long(0,0,!1);n.mid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mid=i.longs===String?"0":0;n.displayAttention=!1,n.badge="",n.relation=null}if(t.covers&&t.covers.length){n.covers=[];for(let o=0;o>>0,t.mid.high>>>0).toNumber():t.mid),t.displayAttention!=null&&t.hasOwnProperty("displayAttention")&&(n.displayAttention=t.displayAttention),t.badge!=null&&t.hasOwnProperty("badge")&&(n.badge=t.badge),t.relation!=null&&t.hasOwnProperty("relation")&&(n.relation=u.bilibili.app.interface_.v1.Relation.toObject(t.relation,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.interface_.v1.CardArticle"},e}(),c.CardLive=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.cover=t.string();break}case 2:{o.name=t.string();break}case 3:{o.mid=t.int64();break}case 4:{o.tag=t.string();break}case 5:{o.status=t.int32();break}case 6:{o.displayAttention=t.bool();break}case 7:{o.relation=u.bilibili.app.interface_.v1.Relation.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.interface_.v1.CardLive)return t;let i=new u.bilibili.app.interface_.v1.CardLive;if(t.cover!=null&&(i.cover=String(t.cover)),t.name!=null&&(i.name=String(t.name)),t.mid!=null&&(r.Long?(i.mid=r.Long.fromValue(t.mid)).unsigned=!1:typeof t.mid=="string"?i.mid=parseInt(t.mid,10):typeof t.mid=="number"?i.mid=t.mid:typeof t.mid=="object"&&(i.mid=new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber())),t.tag!=null&&(i.tag=String(t.tag)),t.status!=null&&(i.status=t.status|0),t.displayAttention!=null&&(i.displayAttention=!!t.displayAttention),t.relation!=null){if(typeof t.relation!="object")throw TypeError(".bilibili.app.interface_.v1.CardLive.relation: object expected");i.relation=u.bilibili.app.interface_.v1.Relation.fromObject(t.relation)}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.cover="",n.name="",r.Long){let o=new r.Long(0,0,!1);n.mid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mid=i.longs===String?"0":0;n.tag="",n.status=0,n.displayAttention=!1,n.relation=null}return t.cover!=null&&t.hasOwnProperty("cover")&&(n.cover=t.cover),t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),t.mid!=null&&t.hasOwnProperty("mid")&&(typeof t.mid=="number"?n.mid=i.longs===String?String(t.mid):t.mid:n.mid=i.longs===String?r.Long.prototype.toString.call(t.mid):i.longs===Number?new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber():t.mid),t.tag!=null&&t.hasOwnProperty("tag")&&(n.tag=t.tag),t.status!=null&&t.hasOwnProperty("status")&&(n.status=t.status),t.displayAttention!=null&&t.hasOwnProperty("displayAttention")&&(n.displayAttention=t.displayAttention),t.relation!=null&&t.hasOwnProperty("relation")&&(n.relation=u.bilibili.app.interface_.v1.Relation.toObject(t.relation,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.interface_.v1.CardLive"},e}(),c.CardCheese=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.cover=t.string();break}case 2:{o.progress=t.int64();break}case 3:{o.duration=t.int64();break}case 4:{o.subtitle=t.string();break}case 5:{o.state=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.interface_.v1.CardCheese)return t;let i=new u.bilibili.app.interface_.v1.CardCheese;return t.cover!=null&&(i.cover=String(t.cover)),t.progress!=null&&(r.Long?(i.progress=r.Long.fromValue(t.progress)).unsigned=!1:typeof t.progress=="string"?i.progress=parseInt(t.progress,10):typeof t.progress=="number"?i.progress=t.progress:typeof t.progress=="object"&&(i.progress=new r.LongBits(t.progress.low>>>0,t.progress.high>>>0).toNumber())),t.duration!=null&&(r.Long?(i.duration=r.Long.fromValue(t.duration)).unsigned=!1:typeof t.duration=="string"?i.duration=parseInt(t.duration,10):typeof t.duration=="number"?i.duration=t.duration:typeof t.duration=="object"&&(i.duration=new r.LongBits(t.duration.low>>>0,t.duration.high>>>0).toNumber())),t.subtitle!=null&&(i.subtitle=String(t.subtitle)),t.state!=null&&(r.Long?(i.state=r.Long.fromValue(t.state)).unsigned=!1:typeof t.state=="string"?i.state=parseInt(t.state,10):typeof t.state=="number"?i.state=t.state:typeof t.state=="object"&&(i.state=new r.LongBits(t.state.low>>>0,t.state.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.cover="",r.Long){let o=new r.Long(0,0,!1);n.progress=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.progress=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.duration=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.duration=i.longs===String?"0":0;if(n.subtitle="",r.Long){let o=new r.Long(0,0,!1);n.state=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.state=i.longs===String?"0":0}return t.cover!=null&&t.hasOwnProperty("cover")&&(n.cover=t.cover),t.progress!=null&&t.hasOwnProperty("progress")&&(typeof t.progress=="number"?n.progress=i.longs===String?String(t.progress):t.progress:n.progress=i.longs===String?r.Long.prototype.toString.call(t.progress):i.longs===Number?new r.LongBits(t.progress.low>>>0,t.progress.high>>>0).toNumber():t.progress),t.duration!=null&&t.hasOwnProperty("duration")&&(typeof t.duration=="number"?n.duration=i.longs===String?String(t.duration):t.duration:n.duration=i.longs===String?r.Long.prototype.toString.call(t.duration):i.longs===Number?new r.LongBits(t.duration.low>>>0,t.duration.high>>>0).toNumber():t.duration),t.subtitle!=null&&t.hasOwnProperty("subtitle")&&(n.subtitle=t.subtitle),t.state!=null&&t.hasOwnProperty("state")&&(typeof t.state=="number"?n.state=i.longs===String?String(t.state):t.state:n.state=i.longs===String?r.Long.prototype.toString.call(t.state):i.longs===Number?new r.LongBits(t.state.low>>>0,t.state.high>>>0).toNumber():t.state),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.interface_.v1.CardCheese"},e}(),c.CursorTab=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.business=t.string();break}case 2:{o.name=t.string();break}case 3:{o.router=t.string();break}case 4:{o.focus=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.interface_.v1.CursorTab)return t;let i=new u.bilibili.app.interface_.v1.CursorTab;return t.business!=null&&(i.business=String(t.business)),t.name!=null&&(i.name=String(t.name)),t.router!=null&&(i.router=String(t.router)),t.focus!=null&&(i.focus=!!t.focus),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.business="",n.name="",n.router="",n.focus=!1),t.business!=null&&t.hasOwnProperty("business")&&(n.business=t.business),t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),t.router!=null&&t.hasOwnProperty("router")&&(n.router=t.router),t.focus!=null&&t.hasOwnProperty("focus")&&(n.focus=t.focus),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.interface_.v1.CursorTab"},e}(),c.Cursor=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.max=t.int64();break}case 2:{o.maxTp=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.interface_.v1.Cursor)return t;let i=new u.bilibili.app.interface_.v1.Cursor;return t.max!=null&&(r.Long?(i.max=r.Long.fromValue(t.max)).unsigned=!1:typeof t.max=="string"?i.max=parseInt(t.max,10):typeof t.max=="number"?i.max=t.max:typeof t.max=="object"&&(i.max=new r.LongBits(t.max.low>>>0,t.max.high>>>0).toNumber())),t.maxTp!=null&&(i.maxTp=t.maxTp|0),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.max=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.max=i.longs===String?"0":0;n.maxTp=0}return t.max!=null&&t.hasOwnProperty("max")&&(typeof t.max=="number"?n.max=i.longs===String?String(t.max):t.max:n.max=i.longs===String?r.Long.prototype.toString.call(t.max):i.longs===Number?new r.LongBits(t.max.low>>>0,t.max.high>>>0).toNumber():t.max),t.maxTp!=null&&t.hasOwnProperty("maxTp")&&(n.maxTp=t.maxTp),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.interface_.v1.Cursor"},e}(),c.DeleteReq=function(){function e(l){if(this.hisInfo=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.hisInfo&&o.hisInfo.length||(o.hisInfo=[]),o.hisInfo.push(u.bilibili.app.interface_.v1.HisInfo.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.interface_.v1.DeleteReq)return t;let i=new u.bilibili.app.interface_.v1.DeleteReq;if(t.hisInfo){if(!Array.isArray(t.hisInfo))throw TypeError(".bilibili.app.interface_.v1.DeleteReq.hisInfo: array expected");i.hisInfo=[];for(let n=0;n>>3){case 1:{o.business=t.string();break}case 2:{o.kid=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.interface_.v1.HisInfo)return t;let i=new u.bilibili.app.interface_.v1.HisInfo;return t.business!=null&&(i.business=String(t.business)),t.kid!=null&&(r.Long?(i.kid=r.Long.fromValue(t.kid)).unsigned=!1:typeof t.kid=="string"?i.kid=parseInt(t.kid,10):typeof t.kid=="number"?i.kid=t.kid:typeof t.kid=="object"&&(i.kid=new r.LongBits(t.kid.low>>>0,t.kid.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(n.business="",r.Long){let o=new r.Long(0,0,!1);n.kid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.kid=i.longs===String?"0":0;return t.business!=null&&t.hasOwnProperty("business")&&(n.business=t.business),t.kid!=null&&t.hasOwnProperty("kid")&&(typeof t.kid=="number"?n.kid=i.longs===String?String(t.kid):t.kid:n.kid=i.longs===String?r.Long.prototype.toString.call(t.kid):i.longs===Number?new r.LongBits(t.kid.low>>>0,t.kid.high>>>0).toNumber():t.kid),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.interface_.v1.HisInfo"},e}(),c.NoReply=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){default:t.skipType(a&7);break}}return o},e.fromObject=function(t){return t instanceof u.bilibili.app.interface_.v1.NoReply?t:new u.bilibili.app.interface_.v1.NoReply},e.toObject=function(){return{}},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.interface_.v1.NoReply"},e}(),c.DeviceType=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.type=t.int32();break}case 2:{o.icon=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.interface_.v1.DeviceType)return t;let i=new u.bilibili.app.interface_.v1.DeviceType;switch(t.type){default:if(typeof t.type=="number"){i.type=t.type;break}break;case"Unknown":case 0:i.type=0;break;case"Phone":case 1:i.type=1;break;case"Pad":case 2:i.type=2;break;case"PC":case 3:i.type=3;break;case"TV":case 4:i.type=4;break;case"Car":case 5:i.type=5;break;case"Iot":case 6:i.type=6;break;case"AndPad":case 7:i.type=7;break}return t.icon!=null&&(i.icon=String(t.icon)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.type=i.enums===String?"Unknown":0,n.icon=""),t.type!=null&&t.hasOwnProperty("type")&&(n.type=i.enums===String?u.bilibili.app.interface_.v1.DT[t.type]===void 0?t.type:u.bilibili.app.interface_.v1.DT[t.type]:t.type),t.icon!=null&&t.hasOwnProperty("icon")&&(n.icon=t.icon),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.interface_.v1.DeviceType"},e}(),c.DT=function(){let e={},l=Object.create(e);return l[e[0]="Unknown"]=0,l[e[1]="Phone"]=1,l[e[2]="Pad"]=2,l[e[3]="PC"]=3,l[e[4]="TV"]=4,l[e[5]="Car"]=5,l[e[6]="Iot"]=6,l[e[7]="AndPad"]=7,l}(),c.Relation=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.status=t.int32();break}case 2:{o.isFollow=t.int32();break}case 3:{o.isFollowed=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.interface_.v1.Relation)return t;let i=new u.bilibili.app.interface_.v1.Relation;return t.status!=null&&(i.status=t.status|0),t.isFollow!=null&&(i.isFollow=t.isFollow|0),t.isFollowed!=null&&(i.isFollowed=t.isFollowed|0),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.status=0,n.isFollow=0,n.isFollowed=0),t.status!=null&&t.hasOwnProperty("status")&&(n.status=t.status),t.isFollow!=null&&t.hasOwnProperty("isFollow")&&(n.isFollow=t.isFollow),t.isFollowed!=null&&t.hasOwnProperty("isFollowed")&&(n.isFollowed=t.isFollowed),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.interface_.v1.Relation"},e}(),c.SearchReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.keyword=t.string();break}case 2:{o.pn=t.int64();break}case 3:{o.business=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.interface_.v1.SearchReq)return t;let i=new u.bilibili.app.interface_.v1.SearchReq;return t.keyword!=null&&(i.keyword=String(t.keyword)),t.pn!=null&&(r.Long?(i.pn=r.Long.fromValue(t.pn)).unsigned=!1:typeof t.pn=="string"?i.pn=parseInt(t.pn,10):typeof t.pn=="number"?i.pn=t.pn:typeof t.pn=="object"&&(i.pn=new r.LongBits(t.pn.low>>>0,t.pn.high>>>0).toNumber())),t.business!=null&&(i.business=String(t.business)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.keyword="",r.Long){let o=new r.Long(0,0,!1);n.pn=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.pn=i.longs===String?"0":0;n.business=""}return t.keyword!=null&&t.hasOwnProperty("keyword")&&(n.keyword=t.keyword),t.pn!=null&&t.hasOwnProperty("pn")&&(typeof t.pn=="number"?n.pn=i.longs===String?String(t.pn):t.pn:n.pn=i.longs===String?r.Long.prototype.toString.call(t.pn):i.longs===Number?new r.LongBits(t.pn.low>>>0,t.pn.high>>>0).toNumber():t.pn),t.business!=null&&t.hasOwnProperty("business")&&(n.business=t.business),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.interface_.v1.SearchReq"},e}(),c.SearchReply=function(){function e(l){if(this.items=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.items&&o.items.length||(o.items=[]),o.items.push(u.bilibili.app.interface_.v1.CursorItem.decode(t,t.uint32()));break}case 2:{o.hasMore=t.bool();break}case 3:{o.page=u.bilibili.app.interface_.v1.Page.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.interface_.v1.SearchReply)return t;let i=new u.bilibili.app.interface_.v1.SearchReply;if(t.items){if(!Array.isArray(t.items))throw TypeError(".bilibili.app.interface_.v1.SearchReply.items: array expected");i.items=[];for(let n=0;n>>3){case 1:{o.pn=t.int64();break}case 2:{o.total=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.interface_.v1.Page)return t;let i=new u.bilibili.app.interface_.v1.Page;return t.pn!=null&&(r.Long?(i.pn=r.Long.fromValue(t.pn)).unsigned=!1:typeof t.pn=="string"?i.pn=parseInt(t.pn,10):typeof t.pn=="number"?i.pn=t.pn:typeof t.pn=="object"&&(i.pn=new r.LongBits(t.pn.low>>>0,t.pn.high>>>0).toNumber())),t.total!=null&&(r.Long?(i.total=r.Long.fromValue(t.total)).unsigned=!1:typeof t.total=="string"?i.total=parseInt(t.total,10):typeof t.total=="number"?i.total=t.total:typeof t.total=="object"&&(i.total=new r.LongBits(t.total.low>>>0,t.total.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.pn=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.pn=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.total=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.total=i.longs===String?"0":0}return t.pn!=null&&t.hasOwnProperty("pn")&&(typeof t.pn=="number"?n.pn=i.longs===String?String(t.pn):t.pn:n.pn=i.longs===String?r.Long.prototype.toString.call(t.pn):i.longs===Number?new r.LongBits(t.pn.low>>>0,t.pn.high>>>0).toNumber():t.pn),t.total!=null&&t.hasOwnProperty("total")&&(typeof t.total=="number"?n.total=i.longs===String?String(t.total):t.total:n.total=i.longs===String?r.Long.prototype.toString.call(t.total):i.longs===Number?new r.LongBits(t.total.low>>>0,t.total.high>>>0).toNumber():t.total),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.interface_.v1.Page"},e}(),c.PlayerPreloadParams=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.qn=t.int64();break}case 2:{o.fnver=t.int64();break}case 3:{o.fnval=t.int64();break}case 4:{o.forceHost=t.int64();break}case 5:{o.fourk=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.interface_.v1.PlayerPreloadParams)return t;let i=new u.bilibili.app.interface_.v1.PlayerPreloadParams;return t.qn!=null&&(r.Long?(i.qn=r.Long.fromValue(t.qn)).unsigned=!1:typeof t.qn=="string"?i.qn=parseInt(t.qn,10):typeof t.qn=="number"?i.qn=t.qn:typeof t.qn=="object"&&(i.qn=new r.LongBits(t.qn.low>>>0,t.qn.high>>>0).toNumber())),t.fnver!=null&&(r.Long?(i.fnver=r.Long.fromValue(t.fnver)).unsigned=!1:typeof t.fnver=="string"?i.fnver=parseInt(t.fnver,10):typeof t.fnver=="number"?i.fnver=t.fnver:typeof t.fnver=="object"&&(i.fnver=new r.LongBits(t.fnver.low>>>0,t.fnver.high>>>0).toNumber())),t.fnval!=null&&(r.Long?(i.fnval=r.Long.fromValue(t.fnval)).unsigned=!1:typeof t.fnval=="string"?i.fnval=parseInt(t.fnval,10):typeof t.fnval=="number"?i.fnval=t.fnval:typeof t.fnval=="object"&&(i.fnval=new r.LongBits(t.fnval.low>>>0,t.fnval.high>>>0).toNumber())),t.forceHost!=null&&(r.Long?(i.forceHost=r.Long.fromValue(t.forceHost)).unsigned=!1:typeof t.forceHost=="string"?i.forceHost=parseInt(t.forceHost,10):typeof t.forceHost=="number"?i.forceHost=t.forceHost:typeof t.forceHost=="object"&&(i.forceHost=new r.LongBits(t.forceHost.low>>>0,t.forceHost.high>>>0).toNumber())),t.fourk!=null&&(r.Long?(i.fourk=r.Long.fromValue(t.fourk)).unsigned=!1:typeof t.fourk=="string"?i.fourk=parseInt(t.fourk,10):typeof t.fourk=="number"?i.fourk=t.fourk:typeof t.fourk=="object"&&(i.fourk=new r.LongBits(t.fourk.low>>>0,t.fourk.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.qn=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.qn=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.fnver=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.fnver=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.fnval=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.fnval=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.forceHost=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.forceHost=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.fourk=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.fourk=i.longs===String?"0":0}return t.qn!=null&&t.hasOwnProperty("qn")&&(typeof t.qn=="number"?n.qn=i.longs===String?String(t.qn):t.qn:n.qn=i.longs===String?r.Long.prototype.toString.call(t.qn):i.longs===Number?new r.LongBits(t.qn.low>>>0,t.qn.high>>>0).toNumber():t.qn),t.fnver!=null&&t.hasOwnProperty("fnver")&&(typeof t.fnver=="number"?n.fnver=i.longs===String?String(t.fnver):t.fnver:n.fnver=i.longs===String?r.Long.prototype.toString.call(t.fnver):i.longs===Number?new r.LongBits(t.fnver.low>>>0,t.fnver.high>>>0).toNumber():t.fnver),t.fnval!=null&&t.hasOwnProperty("fnval")&&(typeof t.fnval=="number"?n.fnval=i.longs===String?String(t.fnval):t.fnval:n.fnval=i.longs===String?r.Long.prototype.toString.call(t.fnval):i.longs===Number?new r.LongBits(t.fnval.low>>>0,t.fnval.high>>>0).toNumber():t.fnval),t.forceHost!=null&&t.hasOwnProperty("forceHost")&&(typeof t.forceHost=="number"?n.forceHost=i.longs===String?String(t.forceHost):t.forceHost:n.forceHost=i.longs===String?r.Long.prototype.toString.call(t.forceHost):i.longs===Number?new r.LongBits(t.forceHost.low>>>0,t.forceHost.high>>>0).toNumber():t.forceHost),t.fourk!=null&&t.hasOwnProperty("fourk")&&(typeof t.fourk=="number"?n.fourk=i.longs===String?String(t.fourk):t.fourk:n.fourk=i.longs===String?r.Long.prototype.toString.call(t.fourk):i.longs===Number?new r.LongBits(t.fourk.low>>>0,t.fourk.high>>>0).toNumber():t.fourk),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.interface_.v1.PlayerPreloadParams"},e}(),c.ClearReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.business=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.interface_.v1.ClearReq)return t;let i=new u.bilibili.app.interface_.v1.ClearReq;return t.business!=null&&(i.business=String(t.business)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.business=""),t.business!=null&&t.hasOwnProperty("business")&&(n.business=t.business),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.interface_.v1.ClearReq"},e}(),c.LatestHistoryReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.business=t.string();break}case 2:{o.playerPreload=u.bilibili.app.interface_.v1.PlayerPreloadParams.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.interface_.v1.LatestHistoryReq)return t;let i=new u.bilibili.app.interface_.v1.LatestHistoryReq;if(t.business!=null&&(i.business=String(t.business)),t.playerPreload!=null){if(typeof t.playerPreload!="object")throw TypeError(".bilibili.app.interface_.v1.LatestHistoryReq.playerPreload: object expected");i.playerPreload=u.bilibili.app.interface_.v1.PlayerPreloadParams.fromObject(t.playerPreload)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.business="",n.playerPreload=null),t.business!=null&&t.hasOwnProperty("business")&&(n.business=t.business),t.playerPreload!=null&&t.hasOwnProperty("playerPreload")&&(n.playerPreload=u.bilibili.app.interface_.v1.PlayerPreloadParams.toObject(t.playerPreload,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.interface_.v1.LatestHistoryReq"},e}(),c.LatestHistoryReply=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.items=u.bilibili.app.interface_.v1.CursorItem.decode(t,t.uint32());break}case 2:{o.scene=t.string();break}case 3:{o.rtime=t.int64();break}case 4:{o.flag=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.interface_.v1.LatestHistoryReply)return t;let i=new u.bilibili.app.interface_.v1.LatestHistoryReply;if(t.items!=null){if(typeof t.items!="object")throw TypeError(".bilibili.app.interface_.v1.LatestHistoryReply.items: object expected");i.items=u.bilibili.app.interface_.v1.CursorItem.fromObject(t.items)}return t.scene!=null&&(i.scene=String(t.scene)),t.rtime!=null&&(r.Long?(i.rtime=r.Long.fromValue(t.rtime)).unsigned=!1:typeof t.rtime=="string"?i.rtime=parseInt(t.rtime,10):typeof t.rtime=="number"?i.rtime=t.rtime:typeof t.rtime=="object"&&(i.rtime=new r.LongBits(t.rtime.low>>>0,t.rtime.high>>>0).toNumber())),t.flag!=null&&(i.flag=String(t.flag)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.items=null,n.scene="",r.Long){let o=new r.Long(0,0,!1);n.rtime=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.rtime=i.longs===String?"0":0;n.flag=""}return t.items!=null&&t.hasOwnProperty("items")&&(n.items=u.bilibili.app.interface_.v1.CursorItem.toObject(t.items,i)),t.scene!=null&&t.hasOwnProperty("scene")&&(n.scene=t.scene),t.rtime!=null&&t.hasOwnProperty("rtime")&&(typeof t.rtime=="number"?n.rtime=i.longs===String?String(t.rtime):t.rtime:n.rtime=i.longs===String?r.Long.prototype.toString.call(t.rtime):i.longs===Number?new r.LongBits(t.rtime.low>>>0,t.rtime.high>>>0).toNumber():t.rtime),t.flag!=null&&t.hasOwnProperty("flag")&&(n.flag=t.flag),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.interface_.v1.LatestHistoryReply"},e}(),c.Media=function(){function e(l,t,i){b.rpc.Service.call(this,l,t,i)}return(e.prototype=Object.create(b.rpc.Service.prototype)).constructor=e,e.create=function(t,i,n){return new this(t,i,n)},Object.defineProperty(e.prototype.mediaTab=function l(t,i){return this.rpcCall(l,u.bilibili.app.interface_.v1.MediaTabReq,u.bilibili.app.interface_.v1.MediaTabReply,t,i)},"name",{value:"MediaTab"}),Object.defineProperty(e.prototype.mediaDetail=function l(t,i){return this.rpcCall(l,u.bilibili.app.interface_.v1.MediaDetailReq,u.bilibili.app.interface_.v1.MediaDetailReply,t,i)},"name",{value:"MediaDetail"}),Object.defineProperty(e.prototype.mediaVideo=function l(t,i){return this.rpcCall(l,u.bilibili.app.interface_.v1.MediaVideoReq,u.bilibili.app.interface_.v1.MediaVideoReply,t,i)},"name",{value:"MediaVideo"}),Object.defineProperty(e.prototype.mediaRelation=function l(t,i){return this.rpcCall(l,u.bilibili.app.interface_.v1.MediaRelationReq,u.bilibili.app.interface_.v1.MediaRelationReply,t,i)},"name",{value:"MediaRelation"}),Object.defineProperty(e.prototype.mediaFollow=function l(t,i){return this.rpcCall(l,u.bilibili.app.interface_.v1.MediaFollowReq,u.bilibili.app.interface_.v1.MediaFollowReply,t,i)},"name",{value:"MediaFollow"}),Object.defineProperty(e.prototype.mediaComment=function l(t,i){return this.rpcCall(l,u.bilibili.app.interface_.v1.MediaCommentReq,u.bilibili.app.interface_.v1.MediaCommentReply,t,i)},"name",{value:"MediaComment"}),e}(),c.MediaCommentReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.id=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.interface_.v1.MediaCommentReq)return t;let i=new u.bilibili.app.interface_.v1.MediaCommentReq;return t.id!=null&&(i.id=String(t.id)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.id=""),t.id!=null&&t.hasOwnProperty("id")&&(n.id=t.id),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.interface_.v1.MediaCommentReq"},e}(),c.MediaCommentReply=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.errMsg=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.interface_.v1.MediaCommentReply)return t;let i=new u.bilibili.app.interface_.v1.MediaCommentReply;return t.errMsg!=null&&(i.errMsg=String(t.errMsg)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.errMsg=""),t.errMsg!=null&&t.hasOwnProperty("errMsg")&&(n.errMsg=t.errMsg),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.interface_.v1.MediaCommentReply"},e}(),c.CommentItem=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.icon=t.string();break}case 2:{o.url=t.string();break}case 3:{o.title=t.string();break}case 4:{o.type=t.int32();break}case 5:{o.actionType=t.string();break}case 6:{o.id=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.interface_.v1.CommentItem)return t;let i=new u.bilibili.app.interface_.v1.CommentItem;switch(t.icon!=null&&(i.icon=String(t.icon)),t.url!=null&&(i.url=String(t.url)),t.title!=null&&(i.title=String(t.title)),t.type){default:if(typeof t.type=="number"){i.type=t.type;break}break;case"comment_type_none":case 0:i.type=0;break;case"comment_type_redirect":case 1:i.type=1;break;case"comment_type_judge":case 2:i.type=2;break}return t.actionType!=null&&(i.actionType=String(t.actionType)),t.id!=null&&(i.id=String(t.id)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.icon="",n.url="",n.title="",n.type=i.enums===String?"comment_type_none":0,n.actionType="",n.id=""),t.icon!=null&&t.hasOwnProperty("icon")&&(n.icon=t.icon),t.url!=null&&t.hasOwnProperty("url")&&(n.url=t.url),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.type!=null&&t.hasOwnProperty("type")&&(n.type=i.enums===String?u.bilibili.app.interface_.v1.CommentType[t.type]===void 0?t.type:u.bilibili.app.interface_.v1.CommentType[t.type]:t.type),t.actionType!=null&&t.hasOwnProperty("actionType")&&(n.actionType=t.actionType),t.id!=null&&t.hasOwnProperty("id")&&(n.id=t.id),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.interface_.v1.CommentItem"},e}(),c.CommentType=function(){let e={},l=Object.create(e);return l[e[0]="comment_type_none"]=0,l[e[1]="comment_type_redirect"]=1,l[e[2]="comment_type_judge"]=2,l}(),c.MediaRelationReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.bizId=t.int64();break}case 2:{o.bizType=t.int64();break}case 3:{o.feedId=t.int64();break}case 5:{o.offset=t.string();break}case 6:{o.ps=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.interface_.v1.MediaRelationReq)return t;let i=new u.bilibili.app.interface_.v1.MediaRelationReq;return t.bizId!=null&&(r.Long?(i.bizId=r.Long.fromValue(t.bizId)).unsigned=!1:typeof t.bizId=="string"?i.bizId=parseInt(t.bizId,10):typeof t.bizId=="number"?i.bizId=t.bizId:typeof t.bizId=="object"&&(i.bizId=new r.LongBits(t.bizId.low>>>0,t.bizId.high>>>0).toNumber())),t.bizType!=null&&(r.Long?(i.bizType=r.Long.fromValue(t.bizType)).unsigned=!1:typeof t.bizType=="string"?i.bizType=parseInt(t.bizType,10):typeof t.bizType=="number"?i.bizType=t.bizType:typeof t.bizType=="object"&&(i.bizType=new r.LongBits(t.bizType.low>>>0,t.bizType.high>>>0).toNumber())),t.feedId!=null&&(r.Long?(i.feedId=r.Long.fromValue(t.feedId)).unsigned=!1:typeof t.feedId=="string"?i.feedId=parseInt(t.feedId,10):typeof t.feedId=="number"?i.feedId=t.feedId:typeof t.feedId=="object"&&(i.feedId=new r.LongBits(t.feedId.low>>>0,t.feedId.high>>>0).toNumber())),t.offset!=null&&(i.offset=String(t.offset)),t.ps!=null&&(i.ps=t.ps|0),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.bizId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.bizId=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.bizType=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.bizType=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.feedId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.feedId=i.longs===String?"0":0;n.offset="",n.ps=0}return t.bizId!=null&&t.hasOwnProperty("bizId")&&(typeof t.bizId=="number"?n.bizId=i.longs===String?String(t.bizId):t.bizId:n.bizId=i.longs===String?r.Long.prototype.toString.call(t.bizId):i.longs===Number?new r.LongBits(t.bizId.low>>>0,t.bizId.high>>>0).toNumber():t.bizId),t.bizType!=null&&t.hasOwnProperty("bizType")&&(typeof t.bizType=="number"?n.bizType=i.longs===String?String(t.bizType):t.bizType:n.bizType=i.longs===String?r.Long.prototype.toString.call(t.bizType):i.longs===Number?new r.LongBits(t.bizType.low>>>0,t.bizType.high>>>0).toNumber():t.bizType),t.feedId!=null&&t.hasOwnProperty("feedId")&&(typeof t.feedId=="number"?n.feedId=i.longs===String?String(t.feedId):t.feedId:n.feedId=i.longs===String?r.Long.prototype.toString.call(t.feedId):i.longs===Number?new r.LongBits(t.feedId.low>>>0,t.feedId.high>>>0).toNumber():t.feedId),t.offset!=null&&t.hasOwnProperty("offset")&&(n.offset=t.offset),t.ps!=null&&t.hasOwnProperty("ps")&&(n.ps=t.ps),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.interface_.v1.MediaRelationReq"},e}(),c.MediaRelationReply=function(){function e(l){if(this.list=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.offset=t.string();break}case 2:{o.hasMore=t.bool();break}case 3:{o.list&&o.list.length||(o.list=[]),o.list.push(u.bilibili.app.interface_.v1.SmallItem.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.interface_.v1.MediaRelationReply)return t;let i=new u.bilibili.app.interface_.v1.MediaRelationReply;if(t.offset!=null&&(i.offset=String(t.offset)),t.hasMore!=null&&(i.hasMore=!!t.hasMore),t.list){if(!Array.isArray(t.list))throw TypeError(".bilibili.app.interface_.v1.MediaRelationReply.list: array expected");i.list=[];for(let n=0;n>>3){case 1:{o.id=t.string();break}case 2:{o.type=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.interface_.v1.MediaFollowReq)return t;let i=new u.bilibili.app.interface_.v1.MediaFollowReq;switch(t.id!=null&&(i.id=String(t.id)),t.type){default:if(typeof t.type=="number"){i.type=t.type;break}break;case"BUT_INVALID":case 0:i.type=0;break;case"BUT_REDIRECT":case 1:i.type=1;break;case"BUT_LIKE":case 2:i.type=2;break}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.id="",n.type=i.enums===String?"BUT_INVALID":0),t.id!=null&&t.hasOwnProperty("id")&&(n.id=t.id),t.type!=null&&t.hasOwnProperty("type")&&(n.type=i.enums===String?u.bilibili.app.interface_.v1.ButType[t.type]===void 0?t.type:u.bilibili.app.interface_.v1.ButType[t.type]:t.type),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.interface_.v1.MediaFollowReq"},e}(),c.MediaFollowReply=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){default:t.skipType(a&7);break}}return o},e.fromObject=function(t){return t instanceof u.bilibili.app.interface_.v1.MediaFollowReply?t:new u.bilibili.app.interface_.v1.MediaFollowReply},e.toObject=function(){return{}},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.interface_.v1.MediaFollowReply"},e}(),c.MediaVideoReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.bizId=t.int64();break}case 2:{o.bizType=t.int64();break}case 3:{o.feedId=t.int64();break}case 5:{o.offset=t.string();break}case 6:{o.ps=t.int32();break}case 7:{o.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.interface_.v1.MediaVideoReq)return t;let i=new u.bilibili.app.interface_.v1.MediaVideoReq;if(t.bizId!=null&&(r.Long?(i.bizId=r.Long.fromValue(t.bizId)).unsigned=!1:typeof t.bizId=="string"?i.bizId=parseInt(t.bizId,10):typeof t.bizId=="number"?i.bizId=t.bizId:typeof t.bizId=="object"&&(i.bizId=new r.LongBits(t.bizId.low>>>0,t.bizId.high>>>0).toNumber())),t.bizType!=null&&(r.Long?(i.bizType=r.Long.fromValue(t.bizType)).unsigned=!1:typeof t.bizType=="string"?i.bizType=parseInt(t.bizType,10):typeof t.bizType=="number"?i.bizType=t.bizType:typeof t.bizType=="object"&&(i.bizType=new r.LongBits(t.bizType.low>>>0,t.bizType.high>>>0).toNumber())),t.feedId!=null&&(r.Long?(i.feedId=r.Long.fromValue(t.feedId)).unsigned=!1:typeof t.feedId=="string"?i.feedId=parseInt(t.feedId,10):typeof t.feedId=="number"?i.feedId=t.feedId:typeof t.feedId=="object"&&(i.feedId=new r.LongBits(t.feedId.low>>>0,t.feedId.high>>>0).toNumber())),t.offset!=null&&(i.offset=String(t.offset)),t.ps!=null&&(i.ps=t.ps|0),t.playerArgs!=null){if(typeof t.playerArgs!="object")throw TypeError(".bilibili.app.interface_.v1.MediaVideoReq.playerArgs: object expected");i.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.fromObject(t.playerArgs)}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.bizId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.bizId=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.bizType=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.bizType=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.feedId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.feedId=i.longs===String?"0":0;n.offset="",n.ps=0,n.playerArgs=null}return t.bizId!=null&&t.hasOwnProperty("bizId")&&(typeof t.bizId=="number"?n.bizId=i.longs===String?String(t.bizId):t.bizId:n.bizId=i.longs===String?r.Long.prototype.toString.call(t.bizId):i.longs===Number?new r.LongBits(t.bizId.low>>>0,t.bizId.high>>>0).toNumber():t.bizId),t.bizType!=null&&t.hasOwnProperty("bizType")&&(typeof t.bizType=="number"?n.bizType=i.longs===String?String(t.bizType):t.bizType:n.bizType=i.longs===String?r.Long.prototype.toString.call(t.bizType):i.longs===Number?new r.LongBits(t.bizType.low>>>0,t.bizType.high>>>0).toNumber():t.bizType),t.feedId!=null&&t.hasOwnProperty("feedId")&&(typeof t.feedId=="number"?n.feedId=i.longs===String?String(t.feedId):t.feedId:n.feedId=i.longs===String?r.Long.prototype.toString.call(t.feedId):i.longs===Number?new r.LongBits(t.feedId.low>>>0,t.feedId.high>>>0).toNumber():t.feedId),t.offset!=null&&t.hasOwnProperty("offset")&&(n.offset=t.offset),t.ps!=null&&t.hasOwnProperty("ps")&&(n.ps=t.ps),t.playerArgs!=null&&t.hasOwnProperty("playerArgs")&&(n.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.toObject(t.playerArgs,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.interface_.v1.MediaVideoReq"},e}(),c.MediaVideoReply=function(){function e(l){if(this.list=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.offset=t.string();break}case 2:{o.hasMore=t.bool();break}case 3:{o.list&&o.list.length||(o.list=[]),o.list.push(u.bilibili.app.interface_.v1.BigItem.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.interface_.v1.MediaVideoReply)return t;let i=new u.bilibili.app.interface_.v1.MediaVideoReply;if(t.offset!=null&&(i.offset=String(t.offset)),t.hasMore!=null&&(i.hasMore=!!t.hasMore),t.list){if(!Array.isArray(t.list))throw TypeError(".bilibili.app.interface_.v1.MediaVideoReply.list: array expected");i.list=[];for(let n=0;n>>3){case 1:{o.title=t.string();break}case 2:{o.coverImageUri=t.string();break}case 3:{o.uri=t.string();break}case 4:{o.coverRightText=t.string();break}case 5:{o.coverLeftText1=t.string();break}case 6:{o.coverLeftIcon1=t.int64();break}case 7:{o.coverLeftText2=t.string();break}case 8:{o.coverLeftIcon2=t.int64();break}case 9:{o.param=t.int64();break}case 10:{o.mid=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.interface_.v1.SmallItem)return t;let i=new u.bilibili.app.interface_.v1.SmallItem;return t.title!=null&&(i.title=String(t.title)),t.coverImageUri!=null&&(i.coverImageUri=String(t.coverImageUri)),t.uri!=null&&(i.uri=String(t.uri)),t.coverRightText!=null&&(i.coverRightText=String(t.coverRightText)),t.coverLeftText1!=null&&(i.coverLeftText1=String(t.coverLeftText1)),t.coverLeftIcon1!=null&&(r.Long?(i.coverLeftIcon1=r.Long.fromValue(t.coverLeftIcon1)).unsigned=!1:typeof t.coverLeftIcon1=="string"?i.coverLeftIcon1=parseInt(t.coverLeftIcon1,10):typeof t.coverLeftIcon1=="number"?i.coverLeftIcon1=t.coverLeftIcon1:typeof t.coverLeftIcon1=="object"&&(i.coverLeftIcon1=new r.LongBits(t.coverLeftIcon1.low>>>0,t.coverLeftIcon1.high>>>0).toNumber())),t.coverLeftText2!=null&&(i.coverLeftText2=String(t.coverLeftText2)),t.coverLeftIcon2!=null&&(r.Long?(i.coverLeftIcon2=r.Long.fromValue(t.coverLeftIcon2)).unsigned=!1:typeof t.coverLeftIcon2=="string"?i.coverLeftIcon2=parseInt(t.coverLeftIcon2,10):typeof t.coverLeftIcon2=="number"?i.coverLeftIcon2=t.coverLeftIcon2:typeof t.coverLeftIcon2=="object"&&(i.coverLeftIcon2=new r.LongBits(t.coverLeftIcon2.low>>>0,t.coverLeftIcon2.high>>>0).toNumber())),t.param!=null&&(r.Long?(i.param=r.Long.fromValue(t.param)).unsigned=!1:typeof t.param=="string"?i.param=parseInt(t.param,10):typeof t.param=="number"?i.param=t.param:typeof t.param=="object"&&(i.param=new r.LongBits(t.param.low>>>0,t.param.high>>>0).toNumber())),t.mid!=null&&(r.Long?(i.mid=r.Long.fromValue(t.mid)).unsigned=!1:typeof t.mid=="string"?i.mid=parseInt(t.mid,10):typeof t.mid=="number"?i.mid=t.mid:typeof t.mid=="object"&&(i.mid=new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.title="",n.coverImageUri="",n.uri="",n.coverRightText="",n.coverLeftText1="",r.Long){let o=new r.Long(0,0,!1);n.coverLeftIcon1=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.coverLeftIcon1=i.longs===String?"0":0;if(n.coverLeftText2="",r.Long){let o=new r.Long(0,0,!1);n.coverLeftIcon2=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.coverLeftIcon2=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.param=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.param=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.mid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mid=i.longs===String?"0":0}return t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.coverImageUri!=null&&t.hasOwnProperty("coverImageUri")&&(n.coverImageUri=t.coverImageUri),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),t.coverRightText!=null&&t.hasOwnProperty("coverRightText")&&(n.coverRightText=t.coverRightText),t.coverLeftText1!=null&&t.hasOwnProperty("coverLeftText1")&&(n.coverLeftText1=t.coverLeftText1),t.coverLeftIcon1!=null&&t.hasOwnProperty("coverLeftIcon1")&&(typeof t.coverLeftIcon1=="number"?n.coverLeftIcon1=i.longs===String?String(t.coverLeftIcon1):t.coverLeftIcon1:n.coverLeftIcon1=i.longs===String?r.Long.prototype.toString.call(t.coverLeftIcon1):i.longs===Number?new r.LongBits(t.coverLeftIcon1.low>>>0,t.coverLeftIcon1.high>>>0).toNumber():t.coverLeftIcon1),t.coverLeftText2!=null&&t.hasOwnProperty("coverLeftText2")&&(n.coverLeftText2=t.coverLeftText2),t.coverLeftIcon2!=null&&t.hasOwnProperty("coverLeftIcon2")&&(typeof t.coverLeftIcon2=="number"?n.coverLeftIcon2=i.longs===String?String(t.coverLeftIcon2):t.coverLeftIcon2:n.coverLeftIcon2=i.longs===String?r.Long.prototype.toString.call(t.coverLeftIcon2):i.longs===Number?new r.LongBits(t.coverLeftIcon2.low>>>0,t.coverLeftIcon2.high>>>0).toNumber():t.coverLeftIcon2),t.param!=null&&t.hasOwnProperty("param")&&(typeof t.param=="number"?n.param=i.longs===String?String(t.param):t.param:n.param=i.longs===String?r.Long.prototype.toString.call(t.param):i.longs===Number?new r.LongBits(t.param.low>>>0,t.param.high>>>0).toNumber():t.param),t.mid!=null&&t.hasOwnProperty("mid")&&(typeof t.mid=="number"?n.mid=i.longs===String?String(t.mid):t.mid:n.mid=i.longs===String?r.Long.prototype.toString.call(t.mid):i.longs===Number?new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber():t.mid),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.interface_.v1.SmallItem"},e}(),c.BigItem=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.coverImageUri=t.string();break}case 3:{o.uri=t.string();break}case 4:{o.coverRightText=t.string();break}case 5:{o.coverLeftText1=t.string();break}case 6:{o.coverLeftIcon1=t.int64();break}case 7:{o.coverLeftText2=t.string();break}case 8:{o.coverLeftIcon2=t.int64();break}case 9:{o.userCard=u.bilibili.app.interface_.v1.UserCard.decode(t,t.uint32());break}case 10:{o.likeButton=u.bilibili.app.interface_.v1.LikeButton.decode(t,t.uint32());break}case 11:{o.param=t.int64();break}case 12:{o.sharePlane=u.bilibili.app.card.v1.SharePlane.decode(t,t.uint32());break}case 13:{o.threePointMeta=u.bilibili.app.card.v1.PanelMeta.decode(t,t.uint32());break}case 14:{o.inlineProgressBar=u.bilibili.app.card.v1.InlineProgressBar.decode(t,t.uint32());break}case 15:{o.canPlay=t.int32();break}case 16:{o.playerArgs=u.bilibili.app.card.v1.PlayerArgs.decode(t,t.uint32());break}case 17:{o.isFav=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.interface_.v1.BigItem)return t;let i=new u.bilibili.app.interface_.v1.BigItem;if(t.title!=null&&(i.title=String(t.title)),t.coverImageUri!=null&&(i.coverImageUri=String(t.coverImageUri)),t.uri!=null&&(i.uri=String(t.uri)),t.coverRightText!=null&&(i.coverRightText=String(t.coverRightText)),t.coverLeftText1!=null&&(i.coverLeftText1=String(t.coverLeftText1)),t.coverLeftIcon1!=null&&(r.Long?(i.coverLeftIcon1=r.Long.fromValue(t.coverLeftIcon1)).unsigned=!1:typeof t.coverLeftIcon1=="string"?i.coverLeftIcon1=parseInt(t.coverLeftIcon1,10):typeof t.coverLeftIcon1=="number"?i.coverLeftIcon1=t.coverLeftIcon1:typeof t.coverLeftIcon1=="object"&&(i.coverLeftIcon1=new r.LongBits(t.coverLeftIcon1.low>>>0,t.coverLeftIcon1.high>>>0).toNumber())),t.coverLeftText2!=null&&(i.coverLeftText2=String(t.coverLeftText2)),t.coverLeftIcon2!=null&&(r.Long?(i.coverLeftIcon2=r.Long.fromValue(t.coverLeftIcon2)).unsigned=!1:typeof t.coverLeftIcon2=="string"?i.coverLeftIcon2=parseInt(t.coverLeftIcon2,10):typeof t.coverLeftIcon2=="number"?i.coverLeftIcon2=t.coverLeftIcon2:typeof t.coverLeftIcon2=="object"&&(i.coverLeftIcon2=new r.LongBits(t.coverLeftIcon2.low>>>0,t.coverLeftIcon2.high>>>0).toNumber())),t.userCard!=null){if(typeof t.userCard!="object")throw TypeError(".bilibili.app.interface_.v1.BigItem.userCard: object expected");i.userCard=u.bilibili.app.interface_.v1.UserCard.fromObject(t.userCard)}if(t.likeButton!=null){if(typeof t.likeButton!="object")throw TypeError(".bilibili.app.interface_.v1.BigItem.likeButton: object expected");i.likeButton=u.bilibili.app.interface_.v1.LikeButton.fromObject(t.likeButton)}if(t.param!=null&&(r.Long?(i.param=r.Long.fromValue(t.param)).unsigned=!1:typeof t.param=="string"?i.param=parseInt(t.param,10):typeof t.param=="number"?i.param=t.param:typeof t.param=="object"&&(i.param=new r.LongBits(t.param.low>>>0,t.param.high>>>0).toNumber())),t.sharePlane!=null){if(typeof t.sharePlane!="object")throw TypeError(".bilibili.app.interface_.v1.BigItem.sharePlane: object expected");i.sharePlane=u.bilibili.app.card.v1.SharePlane.fromObject(t.sharePlane)}if(t.threePointMeta!=null){if(typeof t.threePointMeta!="object")throw TypeError(".bilibili.app.interface_.v1.BigItem.threePointMeta: object expected");i.threePointMeta=u.bilibili.app.card.v1.PanelMeta.fromObject(t.threePointMeta)}if(t.inlineProgressBar!=null){if(typeof t.inlineProgressBar!="object")throw TypeError(".bilibili.app.interface_.v1.BigItem.inlineProgressBar: object expected");i.inlineProgressBar=u.bilibili.app.card.v1.InlineProgressBar.fromObject(t.inlineProgressBar)}if(t.canPlay!=null&&(i.canPlay=t.canPlay|0),t.playerArgs!=null){if(typeof t.playerArgs!="object")throw TypeError(".bilibili.app.interface_.v1.BigItem.playerArgs: object expected");i.playerArgs=u.bilibili.app.card.v1.PlayerArgs.fromObject(t.playerArgs)}return t.isFav!=null&&(i.isFav=!!t.isFav),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.title="",n.coverImageUri="",n.uri="",n.coverRightText="",n.coverLeftText1="",r.Long){let o=new r.Long(0,0,!1);n.coverLeftIcon1=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.coverLeftIcon1=i.longs===String?"0":0;if(n.coverLeftText2="",r.Long){let o=new r.Long(0,0,!1);n.coverLeftIcon2=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.coverLeftIcon2=i.longs===String?"0":0;if(n.userCard=null,n.likeButton=null,r.Long){let o=new r.Long(0,0,!1);n.param=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.param=i.longs===String?"0":0;n.sharePlane=null,n.threePointMeta=null,n.inlineProgressBar=null,n.canPlay=0,n.playerArgs=null,n.isFav=!1}return t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.coverImageUri!=null&&t.hasOwnProperty("coverImageUri")&&(n.coverImageUri=t.coverImageUri),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),t.coverRightText!=null&&t.hasOwnProperty("coverRightText")&&(n.coverRightText=t.coverRightText),t.coverLeftText1!=null&&t.hasOwnProperty("coverLeftText1")&&(n.coverLeftText1=t.coverLeftText1),t.coverLeftIcon1!=null&&t.hasOwnProperty("coverLeftIcon1")&&(typeof t.coverLeftIcon1=="number"?n.coverLeftIcon1=i.longs===String?String(t.coverLeftIcon1):t.coverLeftIcon1:n.coverLeftIcon1=i.longs===String?r.Long.prototype.toString.call(t.coverLeftIcon1):i.longs===Number?new r.LongBits(t.coverLeftIcon1.low>>>0,t.coverLeftIcon1.high>>>0).toNumber():t.coverLeftIcon1),t.coverLeftText2!=null&&t.hasOwnProperty("coverLeftText2")&&(n.coverLeftText2=t.coverLeftText2),t.coverLeftIcon2!=null&&t.hasOwnProperty("coverLeftIcon2")&&(typeof t.coverLeftIcon2=="number"?n.coverLeftIcon2=i.longs===String?String(t.coverLeftIcon2):t.coverLeftIcon2:n.coverLeftIcon2=i.longs===String?r.Long.prototype.toString.call(t.coverLeftIcon2):i.longs===Number?new r.LongBits(t.coverLeftIcon2.low>>>0,t.coverLeftIcon2.high>>>0).toNumber():t.coverLeftIcon2),t.userCard!=null&&t.hasOwnProperty("userCard")&&(n.userCard=u.bilibili.app.interface_.v1.UserCard.toObject(t.userCard,i)),t.likeButton!=null&&t.hasOwnProperty("likeButton")&&(n.likeButton=u.bilibili.app.interface_.v1.LikeButton.toObject(t.likeButton,i)),t.param!=null&&t.hasOwnProperty("param")&&(typeof t.param=="number"?n.param=i.longs===String?String(t.param):t.param:n.param=i.longs===String?r.Long.prototype.toString.call(t.param):i.longs===Number?new r.LongBits(t.param.low>>>0,t.param.high>>>0).toNumber():t.param),t.sharePlane!=null&&t.hasOwnProperty("sharePlane")&&(n.sharePlane=u.bilibili.app.card.v1.SharePlane.toObject(t.sharePlane,i)),t.threePointMeta!=null&&t.hasOwnProperty("threePointMeta")&&(n.threePointMeta=u.bilibili.app.card.v1.PanelMeta.toObject(t.threePointMeta,i)),t.inlineProgressBar!=null&&t.hasOwnProperty("inlineProgressBar")&&(n.inlineProgressBar=u.bilibili.app.card.v1.InlineProgressBar.toObject(t.inlineProgressBar,i)),t.canPlay!=null&&t.hasOwnProperty("canPlay")&&(n.canPlay=t.canPlay),t.playerArgs!=null&&t.hasOwnProperty("playerArgs")&&(n.playerArgs=u.bilibili.app.card.v1.PlayerArgs.toObject(t.playerArgs,i)),t.isFav!=null&&t.hasOwnProperty("isFav")&&(n.isFav=t.isFav),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.interface_.v1.BigItem"},e}(),c.LikeButton=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.aid=t.int64();break}case 2:{o.count=t.int32();break}case 3:{o.showCount=t.bool();break}case 4:{o.event=t.string();break}case 5:{o.selected=t.int32();break}case 6:{o.eventV2=t.string();break}case 7:{o.likeResource=u.bilibili.app.interface_.v1.LikeButtonResource.decode(t,t.uint32());break}case 8:{o.disLikeResource=u.bilibili.app.interface_.v1.LikeButtonResource.decode(t,t.uint32());break}case 9:{o.likeNightResource=u.bilibili.app.interface_.v1.LikeButtonResource.decode(t,t.uint32());break}case 10:{o.disLikeNightResource=u.bilibili.app.interface_.v1.LikeButtonResource.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.interface_.v1.LikeButton)return t;let i=new u.bilibili.app.interface_.v1.LikeButton;if(t.aid!=null&&(r.Long?(i.aid=r.Long.fromValue(t.aid)).unsigned=!1:typeof t.aid=="string"?i.aid=parseInt(t.aid,10):typeof t.aid=="number"?i.aid=t.aid:typeof t.aid=="object"&&(i.aid=new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber())),t.count!=null&&(i.count=t.count|0),t.showCount!=null&&(i.showCount=!!t.showCount),t.event!=null&&(i.event=String(t.event)),t.selected!=null&&(i.selected=t.selected|0),t.eventV2!=null&&(i.eventV2=String(t.eventV2)),t.likeResource!=null){if(typeof t.likeResource!="object")throw TypeError(".bilibili.app.interface_.v1.LikeButton.likeResource: object expected");i.likeResource=u.bilibili.app.interface_.v1.LikeButtonResource.fromObject(t.likeResource)}if(t.disLikeResource!=null){if(typeof t.disLikeResource!="object")throw TypeError(".bilibili.app.interface_.v1.LikeButton.disLikeResource: object expected");i.disLikeResource=u.bilibili.app.interface_.v1.LikeButtonResource.fromObject(t.disLikeResource)}if(t.likeNightResource!=null){if(typeof t.likeNightResource!="object")throw TypeError(".bilibili.app.interface_.v1.LikeButton.likeNightResource: object expected");i.likeNightResource=u.bilibili.app.interface_.v1.LikeButtonResource.fromObject(t.likeNightResource)}if(t.disLikeNightResource!=null){if(typeof t.disLikeNightResource!="object")throw TypeError(".bilibili.app.interface_.v1.LikeButton.disLikeNightResource: object expected");i.disLikeNightResource=u.bilibili.app.interface_.v1.LikeButtonResource.fromObject(t.disLikeNightResource)}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.aid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.aid=i.longs===String?"0":0;n.count=0,n.showCount=!1,n.event="",n.selected=0,n.eventV2="",n.likeResource=null,n.disLikeResource=null,n.likeNightResource=null,n.disLikeNightResource=null}return t.aid!=null&&t.hasOwnProperty("aid")&&(typeof t.aid=="number"?n.aid=i.longs===String?String(t.aid):t.aid:n.aid=i.longs===String?r.Long.prototype.toString.call(t.aid):i.longs===Number?new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber():t.aid),t.count!=null&&t.hasOwnProperty("count")&&(n.count=t.count),t.showCount!=null&&t.hasOwnProperty("showCount")&&(n.showCount=t.showCount),t.event!=null&&t.hasOwnProperty("event")&&(n.event=t.event),t.selected!=null&&t.hasOwnProperty("selected")&&(n.selected=t.selected),t.eventV2!=null&&t.hasOwnProperty("eventV2")&&(n.eventV2=t.eventV2),t.likeResource!=null&&t.hasOwnProperty("likeResource")&&(n.likeResource=u.bilibili.app.interface_.v1.LikeButtonResource.toObject(t.likeResource,i)),t.disLikeResource!=null&&t.hasOwnProperty("disLikeResource")&&(n.disLikeResource=u.bilibili.app.interface_.v1.LikeButtonResource.toObject(t.disLikeResource,i)),t.likeNightResource!=null&&t.hasOwnProperty("likeNightResource")&&(n.likeNightResource=u.bilibili.app.interface_.v1.LikeButtonResource.toObject(t.likeNightResource,i)),t.disLikeNightResource!=null&&t.hasOwnProperty("disLikeNightResource")&&(n.disLikeNightResource=u.bilibili.app.interface_.v1.LikeButtonResource.toObject(t.disLikeNightResource,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.interface_.v1.LikeButton"},e}(),c.LikeButtonResource=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.url=t.string();break}case 2:{o.hash=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.interface_.v1.LikeButtonResource)return t;let i=new u.bilibili.app.interface_.v1.LikeButtonResource;return t.url!=null&&(i.url=String(t.url)),t.hash!=null&&(i.hash=String(t.hash)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.url="",n.hash=""),t.url!=null&&t.hasOwnProperty("url")&&(n.url=t.url),t.hash!=null&&t.hasOwnProperty("hash")&&(n.hash=t.hash),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.interface_.v1.LikeButtonResource"},e}(),c.LikeCard=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.like=t.int64();break}case 2:{o.isFollow=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.interface_.v1.LikeCard)return t;let i=new u.bilibili.app.interface_.v1.LikeCard;return t.like!=null&&(r.Long?(i.like=r.Long.fromValue(t.like)).unsigned=!1:typeof t.like=="string"?i.like=parseInt(t.like,10):typeof t.like=="number"?i.like=t.like:typeof t.like=="object"&&(i.like=new r.LongBits(t.like.low>>>0,t.like.high>>>0).toNumber())),t.isFollow!=null&&(i.isFollow=!!t.isFollow),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.like=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.like=i.longs===String?"0":0;n.isFollow=!1}return t.like!=null&&t.hasOwnProperty("like")&&(typeof t.like=="number"?n.like=i.longs===String?String(t.like):t.like:n.like=i.longs===String?r.Long.prototype.toString.call(t.like):i.longs===Number?new r.LongBits(t.like.low>>>0,t.like.high>>>0).toNumber():t.like),t.isFollow!=null&&t.hasOwnProperty("isFollow")&&(n.isFollow=t.isFollow),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.interface_.v1.LikeCard"},e}(),c.UserCard=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.userName=t.string();break}case 2:{o.userFace=t.string();break}case 3:{o.userUrl=t.string();break}case 4:{o.mid=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.interface_.v1.UserCard)return t;let i=new u.bilibili.app.interface_.v1.UserCard;return t.userName!=null&&(i.userName=String(t.userName)),t.userFace!=null&&(i.userFace=String(t.userFace)),t.userUrl!=null&&(i.userUrl=String(t.userUrl)),t.mid!=null&&(r.Long?(i.mid=r.Long.fromValue(t.mid)).unsigned=!1:typeof t.mid=="string"?i.mid=parseInt(t.mid,10):typeof t.mid=="number"?i.mid=t.mid:typeof t.mid=="object"&&(i.mid=new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(n.userName="",n.userFace="",n.userUrl="",r.Long){let o=new r.Long(0,0,!1);n.mid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mid=i.longs===String?"0":0;return t.userName!=null&&t.hasOwnProperty("userName")&&(n.userName=t.userName),t.userFace!=null&&t.hasOwnProperty("userFace")&&(n.userFace=t.userFace),t.userUrl!=null&&t.hasOwnProperty("userUrl")&&(n.userUrl=t.userUrl),t.mid!=null&&t.hasOwnProperty("mid")&&(typeof t.mid=="number"?n.mid=i.longs===String?String(t.mid):t.mid:n.mid=i.longs===String?r.Long.prototype.toString.call(t.mid):i.longs===Number?new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber():t.mid),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.interface_.v1.UserCard"},e}(),c.MediaDetailReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.bizId=t.int64();break}case 2:{o.bizType=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.interface_.v1.MediaDetailReq)return t;let i=new u.bilibili.app.interface_.v1.MediaDetailReq;return t.bizId!=null&&(r.Long?(i.bizId=r.Long.fromValue(t.bizId)).unsigned=!1:typeof t.bizId=="string"?i.bizId=parseInt(t.bizId,10):typeof t.bizId=="number"?i.bizId=t.bizId:typeof t.bizId=="object"&&(i.bizId=new r.LongBits(t.bizId.low>>>0,t.bizId.high>>>0).toNumber())),t.bizType!=null&&(r.Long?(i.bizType=r.Long.fromValue(t.bizType)).unsigned=!1:typeof t.bizType=="string"?i.bizType=parseInt(t.bizType,10):typeof t.bizType=="number"?i.bizType=t.bizType:typeof t.bizType=="object"&&(i.bizType=new r.LongBits(t.bizType.low>>>0,t.bizType.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.bizId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.bizId=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.bizType=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.bizType=i.longs===String?"0":0}return t.bizId!=null&&t.hasOwnProperty("bizId")&&(typeof t.bizId=="number"?n.bizId=i.longs===String?String(t.bizId):t.bizId:n.bizId=i.longs===String?r.Long.prototype.toString.call(t.bizId):i.longs===Number?new r.LongBits(t.bizId.low>>>0,t.bizId.high>>>0).toNumber():t.bizId),t.bizType!=null&&t.hasOwnProperty("bizType")&&(typeof t.bizType=="number"?n.bizType=i.longs===String?String(t.bizType):t.bizType:n.bizType=i.longs===String?r.Long.prototype.toString.call(t.bizType):i.longs===Number?new r.LongBits(t.bizType.low>>>0,t.bizType.high>>>0).toNumber():t.bizType),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.interface_.v1.MediaDetailReq"},e}(),c.Overview=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.text=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.interface_.v1.Overview)return t;let i=new u.bilibili.app.interface_.v1.Overview;return t.title!=null&&(i.title=String(t.title)),t.text!=null&&(i.text=String(t.text)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.title="",n.text=""),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.text!=null&&t.hasOwnProperty("text")&&(n.text=t.text),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.interface_.v1.Overview"},e}(),c.Staff=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.text=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.interface_.v1.Staff)return t;let i=new u.bilibili.app.interface_.v1.Staff;return t.title!=null&&(i.title=String(t.title)),t.text!=null&&(i.text=String(t.text)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.title="",n.text=""),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.text!=null&&t.hasOwnProperty("text")&&(n.text=t.text),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.interface_.v1.Staff"},e}(),c.MediaDetailReply=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.cast=u.bilibili.app.interface_.v1.Cast.decode(t,t.uint32());break}case 2:{o.staff=u.bilibili.app.interface_.v1.Staff.decode(t,t.uint32());break}case 3:{o.overview=u.bilibili.app.interface_.v1.Overview.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.interface_.v1.MediaDetailReply)return t;let i=new u.bilibili.app.interface_.v1.MediaDetailReply;if(t.cast!=null){if(typeof t.cast!="object")throw TypeError(".bilibili.app.interface_.v1.MediaDetailReply.cast: object expected");i.cast=u.bilibili.app.interface_.v1.Cast.fromObject(t.cast)}if(t.staff!=null){if(typeof t.staff!="object")throw TypeError(".bilibili.app.interface_.v1.MediaDetailReply.staff: object expected");i.staff=u.bilibili.app.interface_.v1.Staff.fromObject(t.staff)}if(t.overview!=null){if(typeof t.overview!="object")throw TypeError(".bilibili.app.interface_.v1.MediaDetailReply.overview: object expected");i.overview=u.bilibili.app.interface_.v1.Overview.fromObject(t.overview)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.cast=null,n.staff=null,n.overview=null),t.cast!=null&&t.hasOwnProperty("cast")&&(n.cast=u.bilibili.app.interface_.v1.Cast.toObject(t.cast,i)),t.staff!=null&&t.hasOwnProperty("staff")&&(n.staff=u.bilibili.app.interface_.v1.Staff.toObject(t.staff,i)),t.overview!=null&&t.hasOwnProperty("overview")&&(n.overview=u.bilibili.app.interface_.v1.Overview.toObject(t.overview,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.interface_.v1.MediaDetailReply"},e}(),c.Cast=function(){function e(l){if(this.person=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.person&&o.person.length||(o.person=[]),o.person.push(u.bilibili.app.interface_.v1.MediaPerson.decode(t,t.uint32()));break}case 2:{o.title=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.interface_.v1.Cast)return t;let i=new u.bilibili.app.interface_.v1.Cast;if(t.person){if(!Array.isArray(t.person))throw TypeError(".bilibili.app.interface_.v1.Cast.person: array expected");i.person=[];for(let n=0;n>>3){case 1:{o.realName=t.string();break}case 2:{o.squareUrl=t.string();break}case 3:{o.character=t.string();break}case 4:{o.personId=t.int64();break}case 5:{o.type=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.interface_.v1.MediaPerson)return t;let i=new u.bilibili.app.interface_.v1.MediaPerson;return t.realName!=null&&(i.realName=String(t.realName)),t.squareUrl!=null&&(i.squareUrl=String(t.squareUrl)),t.character!=null&&(i.character=String(t.character)),t.personId!=null&&(r.Long?(i.personId=r.Long.fromValue(t.personId)).unsigned=!1:typeof t.personId=="string"?i.personId=parseInt(t.personId,10):typeof t.personId=="number"?i.personId=t.personId:typeof t.personId=="object"&&(i.personId=new r.LongBits(t.personId.low>>>0,t.personId.high>>>0).toNumber())),t.type!=null&&(i.type=String(t.type)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.realName="",n.squareUrl="",n.character="",r.Long){let o=new r.Long(0,0,!1);n.personId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.personId=i.longs===String?"0":0;n.type=""}return t.realName!=null&&t.hasOwnProperty("realName")&&(n.realName=t.realName),t.squareUrl!=null&&t.hasOwnProperty("squareUrl")&&(n.squareUrl=t.squareUrl),t.character!=null&&t.hasOwnProperty("character")&&(n.character=t.character),t.personId!=null&&t.hasOwnProperty("personId")&&(typeof t.personId=="number"?n.personId=i.longs===String?String(t.personId):t.personId:n.personId=i.longs===String?r.Long.prototype.toString.call(t.personId):i.longs===Number?new r.LongBits(t.personId.low>>>0,t.personId.high>>>0).toNumber():t.personId),t.type!=null&&t.hasOwnProperty("type")&&(n.type=t.type),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.interface_.v1.MediaPerson"},e}(),c.MediaTabReq=function(){function e(l){if(this.args={},l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.bizId=t.int64();break}case 2:{o.bizType=t.int64();break}case 3:{o.source=t.string();break}case 4:{o.spmid=t.string();break}case 5:{o.args===r.emptyObject&&(o.args={});let v=t.uint32()+t.pos;for(a="",y="";t.pos>>3){case 1:a=t.string();break;case 2:y=t.string();break;default:t.skipType(g&7);break}}o.args[a]=y;break}default:t.skipType(s&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.interface_.v1.MediaTabReq)return t;let i=new u.bilibili.app.interface_.v1.MediaTabReq;if(t.bizId!=null&&(r.Long?(i.bizId=r.Long.fromValue(t.bizId)).unsigned=!1:typeof t.bizId=="string"?i.bizId=parseInt(t.bizId,10):typeof t.bizId=="number"?i.bizId=t.bizId:typeof t.bizId=="object"&&(i.bizId=new r.LongBits(t.bizId.low>>>0,t.bizId.high>>>0).toNumber())),t.bizType!=null&&(r.Long?(i.bizType=r.Long.fromValue(t.bizType)).unsigned=!1:typeof t.bizType=="string"?i.bizType=parseInt(t.bizType,10):typeof t.bizType=="number"?i.bizType=t.bizType:typeof t.bizType=="object"&&(i.bizType=new r.LongBits(t.bizType.low>>>0,t.bizType.high>>>0).toNumber())),t.source!=null&&(i.source=String(t.source)),t.spmid!=null&&(i.spmid=String(t.spmid)),t.args){if(typeof t.args!="object")throw TypeError(".bilibili.app.interface_.v1.MediaTabReq.args: object expected");i.args={};for(let n=Object.keys(t.args),o=0;o>>0,t.bizId.high>>>0).toNumber():t.bizId),t.bizType!=null&&t.hasOwnProperty("bizType")&&(typeof t.bizType=="number"?n.bizType=i.longs===String?String(t.bizType):t.bizType:n.bizType=i.longs===String?r.Long.prototype.toString.call(t.bizType):i.longs===Number?new r.LongBits(t.bizType.low>>>0,t.bizType.high>>>0).toNumber():t.bizType),t.source!=null&&t.hasOwnProperty("source")&&(n.source=t.source),t.spmid!=null&&t.hasOwnProperty("spmid")&&(n.spmid=t.spmid);let o;if(t.args&&(o=Object.keys(t.args)).length){n.args={};for(let a=0;a>>3){case 1:{o.cover=t.string();break}case 2:{o.curTitle=t.string();break}case 3:{o.style=t.string();break}case 4:{o.label=t.string();break}case 5:{o.butFirst=u.bilibili.app.interface_.v1.Button.decode(t,t.uint32());break}case 6:{o.butSecond=u.bilibili.app.interface_.v1.Supernatant.decode(t,t.uint32());break}case 7:{o.scores=u.bilibili.app.interface_.v1.Scores.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.interface_.v1.MediaCard)return t;let i=new u.bilibili.app.interface_.v1.MediaCard;if(t.cover!=null&&(i.cover=String(t.cover)),t.curTitle!=null&&(i.curTitle=String(t.curTitle)),t.style!=null&&(i.style=String(t.style)),t.label!=null&&(i.label=String(t.label)),t.butFirst!=null){if(typeof t.butFirst!="object")throw TypeError(".bilibili.app.interface_.v1.MediaCard.butFirst: object expected");i.butFirst=u.bilibili.app.interface_.v1.Button.fromObject(t.butFirst)}if(t.butSecond!=null){if(typeof t.butSecond!="object")throw TypeError(".bilibili.app.interface_.v1.MediaCard.butSecond: object expected");i.butSecond=u.bilibili.app.interface_.v1.Supernatant.fromObject(t.butSecond)}if(t.scores!=null){if(typeof t.scores!="object")throw TypeError(".bilibili.app.interface_.v1.MediaCard.scores: object expected");i.scores=u.bilibili.app.interface_.v1.Scores.fromObject(t.scores)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.cover="",n.curTitle="",n.style="",n.label="",n.butFirst=null,n.butSecond=null,n.scores=null),t.cover!=null&&t.hasOwnProperty("cover")&&(n.cover=t.cover),t.curTitle!=null&&t.hasOwnProperty("curTitle")&&(n.curTitle=t.curTitle),t.style!=null&&t.hasOwnProperty("style")&&(n.style=t.style),t.label!=null&&t.hasOwnProperty("label")&&(n.label=t.label),t.butFirst!=null&&t.hasOwnProperty("butFirst")&&(n.butFirst=u.bilibili.app.interface_.v1.Button.toObject(t.butFirst,i)),t.butSecond!=null&&t.hasOwnProperty("butSecond")&&(n.butSecond=u.bilibili.app.interface_.v1.Supernatant.toObject(t.butSecond,i)),t.scores!=null&&t.hasOwnProperty("scores")&&(n.scores=u.bilibili.app.interface_.v1.Scores.toObject(t.scores,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.interface_.v1.MediaCard"},e}(),c.Scores=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.score=t.float();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.interface_.v1.Scores)return t;let i=new u.bilibili.app.interface_.v1.Scores;return t.score!=null&&(i.score=Number(t.score)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.score=0),t.score!=null&&t.hasOwnProperty("score")&&(n.score=i.json&&!isFinite(t.score)?String(t.score):t.score),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.interface_.v1.Scores"},e}(),c.Supernatant=function(){function e(l){if(this.item=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.item&&o.item.length||(o.item=[]),o.item.push(u.bilibili.app.interface_.v1.CommentItem.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.interface_.v1.Supernatant)return t;let i=new u.bilibili.app.interface_.v1.Supernatant;if(t.title!=null&&(i.title=String(t.title)),t.item){if(!Array.isArray(t.item))throw TypeError(".bilibili.app.interface_.v1.Supernatant.item: array expected");i.item=[];for(let n=0;n>>3){case 1:{o.title=t.string();break}case 2:{o.link=t.string();break}case 3:{o.id=t.string();break}case 4:{o.icon=t.int64();break}case 5:{o.butType=t.int32();break}case 6:{o.followState=t.int32();break}case 7:{o.hasTitle=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.interface_.v1.Button)return t;let i=new u.bilibili.app.interface_.v1.Button;switch(t.title!=null&&(i.title=String(t.title)),t.link!=null&&(i.link=String(t.link)),t.id!=null&&(i.id=String(t.id)),t.icon!=null&&(r.Long?(i.icon=r.Long.fromValue(t.icon)).unsigned=!1:typeof t.icon=="string"?i.icon=parseInt(t.icon,10):typeof t.icon=="number"?i.icon=t.icon:typeof t.icon=="object"&&(i.icon=new r.LongBits(t.icon.low>>>0,t.icon.high>>>0).toNumber())),t.butType){default:if(typeof t.butType=="number"){i.butType=t.butType;break}break;case"BUT_INVALID":case 0:i.butType=0;break;case"BUT_REDIRECT":case 1:i.butType=1;break;case"BUT_LIKE":case 2:i.butType=2;break}return t.followState!=null&&(i.followState=t.followState|0),t.hasTitle!=null&&(i.hasTitle=String(t.hasTitle)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.title="",n.link="",n.id="",r.Long){let o=new r.Long(0,0,!1);n.icon=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.icon=i.longs===String?"0":0;n.butType=i.enums===String?"BUT_INVALID":0,n.followState=0,n.hasTitle=""}return t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.link!=null&&t.hasOwnProperty("link")&&(n.link=t.link),t.id!=null&&t.hasOwnProperty("id")&&(n.id=t.id),t.icon!=null&&t.hasOwnProperty("icon")&&(typeof t.icon=="number"?n.icon=i.longs===String?String(t.icon):t.icon:n.icon=i.longs===String?r.Long.prototype.toString.call(t.icon):i.longs===Number?new r.LongBits(t.icon.low>>>0,t.icon.high>>>0).toNumber():t.icon),t.butType!=null&&t.hasOwnProperty("butType")&&(n.butType=i.enums===String?u.bilibili.app.interface_.v1.ButType[t.butType]===void 0?t.butType:u.bilibili.app.interface_.v1.ButType[t.butType]:t.butType),t.followState!=null&&t.hasOwnProperty("followState")&&(n.followState=t.followState),t.hasTitle!=null&&t.hasOwnProperty("hasTitle")&&(n.hasTitle=t.hasTitle),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.interface_.v1.Button"},e}(),c.ButType=function(){let e={},l=Object.create(e);return l[e[0]="BUT_INVALID"]=0,l[e[1]="BUT_REDIRECT"]=1,l[e[2]="BUT_LIKE"]=2,l}(),c.ShowTab=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.tabType=t.int32();break}case 2:{o.title=t.string();break}case 3:{o.url=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.interface_.v1.ShowTab)return t;let i=new u.bilibili.app.interface_.v1.ShowTab;switch(t.tabType){default:if(typeof t.tabType=="number"){i.tabType=t.tabType;break}break;case"TAB_INVALID":case 0:i.tabType=0;break;case"TAB_OGV_DETAIL":case 6:i.tabType=6;break;case"TAB_OGV_REPLY":case 7:i.tabType=7;break;case"TAB_FEED_BID":case 8:i.tabType=8;break;case"TAB_FEED_SMALL":case 9:i.tabType=9;break}return t.title!=null&&(i.title=String(t.title)),t.url!=null&&(i.url=String(t.url)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.tabType=i.enums===String?"TAB_INVALID":0,n.title="",n.url=""),t.tabType!=null&&t.hasOwnProperty("tabType")&&(n.tabType=i.enums===String?u.bilibili.app.interface_.v1.TabType[t.tabType]===void 0?t.tabType:u.bilibili.app.interface_.v1.TabType[t.tabType]:t.tabType),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.url!=null&&t.hasOwnProperty("url")&&(n.url=t.url),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.interface_.v1.ShowTab"},e}(),c.TabType=function(){let e={},l=Object.create(e);return l[e[0]="TAB_INVALID"]=0,l[e[6]="TAB_OGV_DETAIL"]=6,l[e[7]="TAB_OGV_REPLY"]=7,l[e[8]="TAB_FEED_BID"]=8,l[e[9]="TAB_FEED_SMALL"]=9,l}(),c.MediaTabReply=function(){function e(l){if(this.tab=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.mediaCard=u.bilibili.app.interface_.v1.MediaCard.decode(t,t.uint32());break}case 2:{o.tab&&o.tab.length||(o.tab=[]),o.tab.push(u.bilibili.app.interface_.v1.ShowTab.decode(t,t.uint32()));break}case 3:{o.defaultTabIndex=t.int64();break}case 4:{o.channelInfo=u.bilibili.app.interface_.v1.ChannelInfo.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.interface_.v1.MediaTabReply)return t;let i=new u.bilibili.app.interface_.v1.MediaTabReply;if(t.mediaCard!=null){if(typeof t.mediaCard!="object")throw TypeError(".bilibili.app.interface_.v1.MediaTabReply.mediaCard: object expected");i.mediaCard=u.bilibili.app.interface_.v1.MediaCard.fromObject(t.mediaCard)}if(t.tab){if(!Array.isArray(t.tab))throw TypeError(".bilibili.app.interface_.v1.MediaTabReply.tab: array expected");i.tab=[];for(let n=0;n>>0,t.defaultTabIndex.high>>>0).toNumber())),t.channelInfo!=null){if(typeof t.channelInfo!="object")throw TypeError(".bilibili.app.interface_.v1.MediaTabReply.channelInfo: object expected");i.channelInfo=u.bilibili.app.interface_.v1.ChannelInfo.fromObject(t.channelInfo)}return i},e.toObject=function(t,i){i||(i={});let n={};if((i.arrays||i.defaults)&&(n.tab=[]),i.defaults){if(n.mediaCard=null,r.Long){let o=new r.Long(0,0,!1);n.defaultTabIndex=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.defaultTabIndex=i.longs===String?"0":0;n.channelInfo=null}if(t.mediaCard!=null&&t.hasOwnProperty("mediaCard")&&(n.mediaCard=u.bilibili.app.interface_.v1.MediaCard.toObject(t.mediaCard,i)),t.tab&&t.tab.length){n.tab=[];for(let o=0;o>>0,t.defaultTabIndex.high>>>0).toNumber():t.defaultTabIndex),t.channelInfo!=null&&t.hasOwnProperty("channelInfo")&&(n.channelInfo=u.bilibili.app.interface_.v1.ChannelInfo.toObject(t.channelInfo,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.interface_.v1.MediaTabReply"},e}(),c.ChannelInfo=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.channelId=t.int64();break}case 2:{o.subscribed=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.interface_.v1.ChannelInfo)return t;let i=new u.bilibili.app.interface_.v1.ChannelInfo;return t.channelId!=null&&(r.Long?(i.channelId=r.Long.fromValue(t.channelId)).unsigned=!1:typeof t.channelId=="string"?i.channelId=parseInt(t.channelId,10):typeof t.channelId=="number"?i.channelId=t.channelId:typeof t.channelId=="object"&&(i.channelId=new r.LongBits(t.channelId.low>>>0,t.channelId.high>>>0).toNumber())),t.subscribed!=null&&(i.subscribed=!!t.subscribed),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.channelId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.channelId=i.longs===String?"0":0;n.subscribed=!1}return t.channelId!=null&&t.hasOwnProperty("channelId")&&(typeof t.channelId=="number"?n.channelId=i.longs===String?String(t.channelId):t.channelId:n.channelId=i.longs===String?r.Long.prototype.toString.call(t.channelId):i.longs===Number?new r.LongBits(t.channelId.low>>>0,t.channelId.high>>>0).toNumber():t.channelId),t.subscribed!=null&&t.hasOwnProperty("subscribed")&&(n.subscribed=t.subscribed),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.interface_.v1.ChannelInfo"},e}(),c.Search=function(){function e(l,t,i){b.rpc.Service.call(this,l,t,i)}return(e.prototype=Object.create(b.rpc.Service.prototype)).constructor=e,e.create=function(t,i,n){return new this(t,i,n)},Object.defineProperty(e.prototype.suggest3=function l(t,i){return this.rpcCall(l,u.bilibili.app.interface_.v1.SuggestionResult3Req,u.bilibili.app.interface_.v1.SuggestionResult3Reply,t,i)},"name",{value:"Suggest3"}),Object.defineProperty(e.prototype.defaultWords=function l(t,i){return this.rpcCall(l,u.bilibili.app.interface_.v1.DefaultWordsReq,u.bilibili.app.interface_.v1.DefaultWordsReply,t,i)},"name",{value:"DefaultWords"}),e}(),c.DefaultWordsReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.from=t.int64();break}case 2:{o.loginEvent=t.int64();break}case 3:{o.teenagersMode=t.int32();break}case 4:{o.lessonsMode=t.int32();break}case 5:{o.tab=t.string();break}case 6:{o.eventId=t.string();break}case 7:{o.avid=t.string();break}case 8:{o.query=t.string();break}case 9:{o.an=t.int64();break}case 10:{o.isFresh=t.int64();break}case 11:{o.splashGuide=t.string();break}case 12:{o.splashId=t.int64();break}case 13:{o.refreshType=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.interface_.v1.DefaultWordsReq)return t;let i=new u.bilibili.app.interface_.v1.DefaultWordsReq;return t.from!=null&&(r.Long?(i.from=r.Long.fromValue(t.from)).unsigned=!1:typeof t.from=="string"?i.from=parseInt(t.from,10):typeof t.from=="number"?i.from=t.from:typeof t.from=="object"&&(i.from=new r.LongBits(t.from.low>>>0,t.from.high>>>0).toNumber())),t.loginEvent!=null&&(r.Long?(i.loginEvent=r.Long.fromValue(t.loginEvent)).unsigned=!1:typeof t.loginEvent=="string"?i.loginEvent=parseInt(t.loginEvent,10):typeof t.loginEvent=="number"?i.loginEvent=t.loginEvent:typeof t.loginEvent=="object"&&(i.loginEvent=new r.LongBits(t.loginEvent.low>>>0,t.loginEvent.high>>>0).toNumber())),t.teenagersMode!=null&&(i.teenagersMode=t.teenagersMode|0),t.lessonsMode!=null&&(i.lessonsMode=t.lessonsMode|0),t.tab!=null&&(i.tab=String(t.tab)),t.eventId!=null&&(i.eventId=String(t.eventId)),t.avid!=null&&(i.avid=String(t.avid)),t.query!=null&&(i.query=String(t.query)),t.an!=null&&(r.Long?(i.an=r.Long.fromValue(t.an)).unsigned=!1:typeof t.an=="string"?i.an=parseInt(t.an,10):typeof t.an=="number"?i.an=t.an:typeof t.an=="object"&&(i.an=new r.LongBits(t.an.low>>>0,t.an.high>>>0).toNumber())),t.isFresh!=null&&(r.Long?(i.isFresh=r.Long.fromValue(t.isFresh)).unsigned=!1:typeof t.isFresh=="string"?i.isFresh=parseInt(t.isFresh,10):typeof t.isFresh=="number"?i.isFresh=t.isFresh:typeof t.isFresh=="object"&&(i.isFresh=new r.LongBits(t.isFresh.low>>>0,t.isFresh.high>>>0).toNumber())),t.splashGuide!=null&&(i.splashGuide=String(t.splashGuide)),t.splashId!=null&&(r.Long?(i.splashId=r.Long.fromValue(t.splashId)).unsigned=!1:typeof t.splashId=="string"?i.splashId=parseInt(t.splashId,10):typeof t.splashId=="number"?i.splashId=t.splashId:typeof t.splashId=="object"&&(i.splashId=new r.LongBits(t.splashId.low>>>0,t.splashId.high>>>0).toNumber())),t.refreshType!=null&&(r.Long?(i.refreshType=r.Long.fromValue(t.refreshType)).unsigned=!1:typeof t.refreshType=="string"?i.refreshType=parseInt(t.refreshType,10):typeof t.refreshType=="number"?i.refreshType=t.refreshType:typeof t.refreshType=="object"&&(i.refreshType=new r.LongBits(t.refreshType.low>>>0,t.refreshType.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.from=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.from=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.loginEvent=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.loginEvent=i.longs===String?"0":0;if(n.teenagersMode=0,n.lessonsMode=0,n.tab="",n.eventId="",n.avid="",n.query="",r.Long){let o=new r.Long(0,0,!1);n.an=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.an=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.isFresh=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.isFresh=i.longs===String?"0":0;if(n.splashGuide="",r.Long){let o=new r.Long(0,0,!1);n.splashId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.splashId=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.refreshType=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.refreshType=i.longs===String?"0":0}return t.from!=null&&t.hasOwnProperty("from")&&(typeof t.from=="number"?n.from=i.longs===String?String(t.from):t.from:n.from=i.longs===String?r.Long.prototype.toString.call(t.from):i.longs===Number?new r.LongBits(t.from.low>>>0,t.from.high>>>0).toNumber():t.from),t.loginEvent!=null&&t.hasOwnProperty("loginEvent")&&(typeof t.loginEvent=="number"?n.loginEvent=i.longs===String?String(t.loginEvent):t.loginEvent:n.loginEvent=i.longs===String?r.Long.prototype.toString.call(t.loginEvent):i.longs===Number?new r.LongBits(t.loginEvent.low>>>0,t.loginEvent.high>>>0).toNumber():t.loginEvent),t.teenagersMode!=null&&t.hasOwnProperty("teenagersMode")&&(n.teenagersMode=t.teenagersMode),t.lessonsMode!=null&&t.hasOwnProperty("lessonsMode")&&(n.lessonsMode=t.lessonsMode),t.tab!=null&&t.hasOwnProperty("tab")&&(n.tab=t.tab),t.eventId!=null&&t.hasOwnProperty("eventId")&&(n.eventId=t.eventId),t.avid!=null&&t.hasOwnProperty("avid")&&(n.avid=t.avid),t.query!=null&&t.hasOwnProperty("query")&&(n.query=t.query),t.an!=null&&t.hasOwnProperty("an")&&(typeof t.an=="number"?n.an=i.longs===String?String(t.an):t.an:n.an=i.longs===String?r.Long.prototype.toString.call(t.an):i.longs===Number?new r.LongBits(t.an.low>>>0,t.an.high>>>0).toNumber():t.an),t.isFresh!=null&&t.hasOwnProperty("isFresh")&&(typeof t.isFresh=="number"?n.isFresh=i.longs===String?String(t.isFresh):t.isFresh:n.isFresh=i.longs===String?r.Long.prototype.toString.call(t.isFresh):i.longs===Number?new r.LongBits(t.isFresh.low>>>0,t.isFresh.high>>>0).toNumber():t.isFresh),t.splashGuide!=null&&t.hasOwnProperty("splashGuide")&&(n.splashGuide=t.splashGuide),t.splashId!=null&&t.hasOwnProperty("splashId")&&(typeof t.splashId=="number"?n.splashId=i.longs===String?String(t.splashId):t.splashId:n.splashId=i.longs===String?r.Long.prototype.toString.call(t.splashId):i.longs===Number?new r.LongBits(t.splashId.low>>>0,t.splashId.high>>>0).toNumber():t.splashId),t.refreshType!=null&&t.hasOwnProperty("refreshType")&&(typeof t.refreshType=="number"?n.refreshType=i.longs===String?String(t.refreshType):t.refreshType:n.refreshType=i.longs===String?r.Long.prototype.toString.call(t.refreshType):i.longs===Number?new r.LongBits(t.refreshType.low>>>0,t.refreshType.high>>>0).toNumber():t.refreshType),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.interface_.v1.DefaultWordsReq"},e}(),c.DefaultWordsReply=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.trackid=t.string();break}case 2:{o.param=t.string();break}case 3:{o.show=t.string();break}case 4:{o.word=t.string();break}case 5:{o.showFront=t.int64();break}case 6:{o.expStr=t.string();break}case 7:{o.goto=t.string();break}case 8:{o.value=t.string();break}case 9:{o.uri=t.string();break}case 10:{o.enableRefresh=t.int64();break}case 11:{o.refreshIntervalMilli=t.uint64();break}case 12:{o.enableAnimation=t.int64();break}case 13:{o.animationTimeMilli=t.uint64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.interface_.v1.DefaultWordsReply)return t;let i=new u.bilibili.app.interface_.v1.DefaultWordsReply;return t.trackid!=null&&(i.trackid=String(t.trackid)),t.param!=null&&(i.param=String(t.param)),t.show!=null&&(i.show=String(t.show)),t.word!=null&&(i.word=String(t.word)),t.showFront!=null&&(r.Long?(i.showFront=r.Long.fromValue(t.showFront)).unsigned=!1:typeof t.showFront=="string"?i.showFront=parseInt(t.showFront,10):typeof t.showFront=="number"?i.showFront=t.showFront:typeof t.showFront=="object"&&(i.showFront=new r.LongBits(t.showFront.low>>>0,t.showFront.high>>>0).toNumber())),t.expStr!=null&&(i.expStr=String(t.expStr)),t.goto!=null&&(i.goto=String(t.goto)),t.value!=null&&(i.value=String(t.value)),t.uri!=null&&(i.uri=String(t.uri)),t.enableRefresh!=null&&(r.Long?(i.enableRefresh=r.Long.fromValue(t.enableRefresh)).unsigned=!1:typeof t.enableRefresh=="string"?i.enableRefresh=parseInt(t.enableRefresh,10):typeof t.enableRefresh=="number"?i.enableRefresh=t.enableRefresh:typeof t.enableRefresh=="object"&&(i.enableRefresh=new r.LongBits(t.enableRefresh.low>>>0,t.enableRefresh.high>>>0).toNumber())),t.refreshIntervalMilli!=null&&(r.Long?(i.refreshIntervalMilli=r.Long.fromValue(t.refreshIntervalMilli)).unsigned=!0:typeof t.refreshIntervalMilli=="string"?i.refreshIntervalMilli=parseInt(t.refreshIntervalMilli,10):typeof t.refreshIntervalMilli=="number"?i.refreshIntervalMilli=t.refreshIntervalMilli:typeof t.refreshIntervalMilli=="object"&&(i.refreshIntervalMilli=new r.LongBits(t.refreshIntervalMilli.low>>>0,t.refreshIntervalMilli.high>>>0).toNumber(!0))),t.enableAnimation!=null&&(r.Long?(i.enableAnimation=r.Long.fromValue(t.enableAnimation)).unsigned=!1:typeof t.enableAnimation=="string"?i.enableAnimation=parseInt(t.enableAnimation,10):typeof t.enableAnimation=="number"?i.enableAnimation=t.enableAnimation:typeof t.enableAnimation=="object"&&(i.enableAnimation=new r.LongBits(t.enableAnimation.low>>>0,t.enableAnimation.high>>>0).toNumber())),t.animationTimeMilli!=null&&(r.Long?(i.animationTimeMilli=r.Long.fromValue(t.animationTimeMilli)).unsigned=!0:typeof t.animationTimeMilli=="string"?i.animationTimeMilli=parseInt(t.animationTimeMilli,10):typeof t.animationTimeMilli=="number"?i.animationTimeMilli=t.animationTimeMilli:typeof t.animationTimeMilli=="object"&&(i.animationTimeMilli=new r.LongBits(t.animationTimeMilli.low>>>0,t.animationTimeMilli.high>>>0).toNumber(!0))),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.trackid="",n.param="",n.show="",n.word="",r.Long){let o=new r.Long(0,0,!1);n.showFront=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.showFront=i.longs===String?"0":0;if(n.expStr="",n.goto="",n.value="",n.uri="",r.Long){let o=new r.Long(0,0,!1);n.enableRefresh=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.enableRefresh=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!0);n.refreshIntervalMilli=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.refreshIntervalMilli=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.enableAnimation=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.enableAnimation=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!0);n.animationTimeMilli=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.animationTimeMilli=i.longs===String?"0":0}return t.trackid!=null&&t.hasOwnProperty("trackid")&&(n.trackid=t.trackid),t.param!=null&&t.hasOwnProperty("param")&&(n.param=t.param),t.show!=null&&t.hasOwnProperty("show")&&(n.show=t.show),t.word!=null&&t.hasOwnProperty("word")&&(n.word=t.word),t.showFront!=null&&t.hasOwnProperty("showFront")&&(typeof t.showFront=="number"?n.showFront=i.longs===String?String(t.showFront):t.showFront:n.showFront=i.longs===String?r.Long.prototype.toString.call(t.showFront):i.longs===Number?new r.LongBits(t.showFront.low>>>0,t.showFront.high>>>0).toNumber():t.showFront),t.expStr!=null&&t.hasOwnProperty("expStr")&&(n.expStr=t.expStr),t.goto!=null&&t.hasOwnProperty("goto")&&(n.goto=t.goto),t.value!=null&&t.hasOwnProperty("value")&&(n.value=t.value),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),t.enableRefresh!=null&&t.hasOwnProperty("enableRefresh")&&(typeof t.enableRefresh=="number"?n.enableRefresh=i.longs===String?String(t.enableRefresh):t.enableRefresh:n.enableRefresh=i.longs===String?r.Long.prototype.toString.call(t.enableRefresh):i.longs===Number?new r.LongBits(t.enableRefresh.low>>>0,t.enableRefresh.high>>>0).toNumber():t.enableRefresh),t.refreshIntervalMilli!=null&&t.hasOwnProperty("refreshIntervalMilli")&&(typeof t.refreshIntervalMilli=="number"?n.refreshIntervalMilli=i.longs===String?String(t.refreshIntervalMilli):t.refreshIntervalMilli:n.refreshIntervalMilli=i.longs===String?r.Long.prototype.toString.call(t.refreshIntervalMilli):i.longs===Number?new r.LongBits(t.refreshIntervalMilli.low>>>0,t.refreshIntervalMilli.high>>>0).toNumber(!0):t.refreshIntervalMilli),t.enableAnimation!=null&&t.hasOwnProperty("enableAnimation")&&(typeof t.enableAnimation=="number"?n.enableAnimation=i.longs===String?String(t.enableAnimation):t.enableAnimation:n.enableAnimation=i.longs===String?r.Long.prototype.toString.call(t.enableAnimation):i.longs===Number?new r.LongBits(t.enableAnimation.low>>>0,t.enableAnimation.high>>>0).toNumber():t.enableAnimation),t.animationTimeMilli!=null&&t.hasOwnProperty("animationTimeMilli")&&(typeof t.animationTimeMilli=="number"?n.animationTimeMilli=i.longs===String?String(t.animationTimeMilli):t.animationTimeMilli:n.animationTimeMilli=i.longs===String?r.Long.prototype.toString.call(t.animationTimeMilli):i.longs===Number?new r.LongBits(t.animationTimeMilli.low>>>0,t.animationTimeMilli.high>>>0).toNumber(!0):t.animationTimeMilli),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.interface_.v1.DefaultWordsReply"},e}(),c.SuggestionResult3Req=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.keyword=t.string();break}case 2:{o.highlight=t.int32();break}case 3:{o.teenagersMode=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.interface_.v1.SuggestionResult3Req)return t;let i=new u.bilibili.app.interface_.v1.SuggestionResult3Req;return t.keyword!=null&&(i.keyword=String(t.keyword)),t.highlight!=null&&(i.highlight=t.highlight|0),t.teenagersMode!=null&&(i.teenagersMode=t.teenagersMode|0),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.keyword="",n.highlight=0,n.teenagersMode=0),t.keyword!=null&&t.hasOwnProperty("keyword")&&(n.keyword=t.keyword),t.highlight!=null&&t.hasOwnProperty("highlight")&&(n.highlight=t.highlight),t.teenagersMode!=null&&t.hasOwnProperty("teenagersMode")&&(n.teenagersMode=t.teenagersMode),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.interface_.v1.SuggestionResult3Req"},e}(),c.SuggestionResult3Reply=function(){function e(l){if(this.list=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.trackid=t.string();break}case 2:{o.list&&o.list.length||(o.list=[]),o.list.push(u.bilibili.app.interface_.v1.ResultItem.decode(t,t.uint32()));break}case 3:{o.expStr=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.interface_.v1.SuggestionResult3Reply)return t;let i=new u.bilibili.app.interface_.v1.SuggestionResult3Reply;if(t.trackid!=null&&(i.trackid=String(t.trackid)),t.list){if(!Array.isArray(t.list))throw TypeError(".bilibili.app.interface_.v1.SuggestionResult3Reply.list: array expected");i.list=[];for(let n=0;n>>3){case 1:{o.from=t.string();break}case 2:{o.title=t.string();break}case 3:{o.keyword=t.string();break}case 4:{o.position=t.int32();break}case 5:{o.cover=t.string();break}case 6:{o.coverSize=t.double();break}case 7:{o.sugType=t.string();break}case 8:{o.termType=t.int32();break}case 9:{o.goto=t.string();break}case 10:{o.uri=t.string();break}case 11:{o.officialVerify=u.bilibili.app.interface_.v1.OfficialVerify.decode(t,t.uint32());break}case 12:{o.param=t.string();break}case 13:{o.mid=t.int64();break}case 14:{o.fans=t.int32();break}case 15:{o.level=t.int32();break}case 16:{o.archives=t.int32();break}case 17:{o.ptime=t.int64();break}case 18:{o.seasonTypeName=t.string();break}case 19:{o.area=t.string();break}case 20:{o.style=t.string();break}case 21:{o.label=t.string();break}case 22:{o.rating=t.double();break}case 23:{o.vote=t.int32();break}case 24:{o.badges&&o.badges.length||(o.badges=[]),o.badges.push(u.bilibili.app.interface_.v1.ReasonStyle.decode(t,t.uint32()));break}case 25:{o.styles=t.string();break}case 26:{o.moduleId=t.int64();break}case 27:{o.liveLink=t.string();break}case 28:{o.faceNftNew=t.int32();break}case 29:{o.nftFaceIcon=u.bilibili.app.interface_.v1.NftFaceIcon.decode(t,t.uint32());break}case 30:{o.isSeniorMember=t.int32();break}case 31:{o.isSugStyleExp=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.interface_.v1.ResultItem)return t;let i=new u.bilibili.app.interface_.v1.ResultItem;if(t.from!=null&&(i.from=String(t.from)),t.title!=null&&(i.title=String(t.title)),t.keyword!=null&&(i.keyword=String(t.keyword)),t.position!=null&&(i.position=t.position|0),t.cover!=null&&(i.cover=String(t.cover)),t.coverSize!=null&&(i.coverSize=Number(t.coverSize)),t.sugType!=null&&(i.sugType=String(t.sugType)),t.termType!=null&&(i.termType=t.termType|0),t.goto!=null&&(i.goto=String(t.goto)),t.uri!=null&&(i.uri=String(t.uri)),t.officialVerify!=null){if(typeof t.officialVerify!="object")throw TypeError(".bilibili.app.interface_.v1.ResultItem.officialVerify: object expected");i.officialVerify=u.bilibili.app.interface_.v1.OfficialVerify.fromObject(t.officialVerify)}if(t.param!=null&&(i.param=String(t.param)),t.mid!=null&&(r.Long?(i.mid=r.Long.fromValue(t.mid)).unsigned=!1:typeof t.mid=="string"?i.mid=parseInt(t.mid,10):typeof t.mid=="number"?i.mid=t.mid:typeof t.mid=="object"&&(i.mid=new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber())),t.fans!=null&&(i.fans=t.fans|0),t.level!=null&&(i.level=t.level|0),t.archives!=null&&(i.archives=t.archives|0),t.ptime!=null&&(r.Long?(i.ptime=r.Long.fromValue(t.ptime)).unsigned=!1:typeof t.ptime=="string"?i.ptime=parseInt(t.ptime,10):typeof t.ptime=="number"?i.ptime=t.ptime:typeof t.ptime=="object"&&(i.ptime=new r.LongBits(t.ptime.low>>>0,t.ptime.high>>>0).toNumber())),t.seasonTypeName!=null&&(i.seasonTypeName=String(t.seasonTypeName)),t.area!=null&&(i.area=String(t.area)),t.style!=null&&(i.style=String(t.style)),t.label!=null&&(i.label=String(t.label)),t.rating!=null&&(i.rating=Number(t.rating)),t.vote!=null&&(i.vote=t.vote|0),t.badges){if(!Array.isArray(t.badges))throw TypeError(".bilibili.app.interface_.v1.ResultItem.badges: array expected");i.badges=[];for(let n=0;n>>0,t.moduleId.high>>>0).toNumber())),t.liveLink!=null&&(i.liveLink=String(t.liveLink)),t.faceNftNew!=null&&(i.faceNftNew=t.faceNftNew|0),t.nftFaceIcon!=null){if(typeof t.nftFaceIcon!="object")throw TypeError(".bilibili.app.interface_.v1.ResultItem.nftFaceIcon: object expected");i.nftFaceIcon=u.bilibili.app.interface_.v1.NftFaceIcon.fromObject(t.nftFaceIcon)}return t.isSeniorMember!=null&&(i.isSeniorMember=t.isSeniorMember|0),t.isSugStyleExp!=null&&(i.isSugStyleExp=t.isSugStyleExp|0),i},e.toObject=function(t,i){i||(i={});let n={};if((i.arrays||i.defaults)&&(n.badges=[]),i.defaults){if(n.from="",n.title="",n.keyword="",n.position=0,n.cover="",n.coverSize=0,n.sugType="",n.termType=0,n.goto="",n.uri="",n.officialVerify=null,n.param="",r.Long){let o=new r.Long(0,0,!1);n.mid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mid=i.longs===String?"0":0;if(n.fans=0,n.level=0,n.archives=0,r.Long){let o=new r.Long(0,0,!1);n.ptime=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.ptime=i.longs===String?"0":0;if(n.seasonTypeName="",n.area="",n.style="",n.label="",n.rating=0,n.vote=0,n.styles="",r.Long){let o=new r.Long(0,0,!1);n.moduleId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.moduleId=i.longs===String?"0":0;n.liveLink="",n.faceNftNew=0,n.nftFaceIcon=null,n.isSeniorMember=0,n.isSugStyleExp=0}if(t.from!=null&&t.hasOwnProperty("from")&&(n.from=t.from),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.keyword!=null&&t.hasOwnProperty("keyword")&&(n.keyword=t.keyword),t.position!=null&&t.hasOwnProperty("position")&&(n.position=t.position),t.cover!=null&&t.hasOwnProperty("cover")&&(n.cover=t.cover),t.coverSize!=null&&t.hasOwnProperty("coverSize")&&(n.coverSize=i.json&&!isFinite(t.coverSize)?String(t.coverSize):t.coverSize),t.sugType!=null&&t.hasOwnProperty("sugType")&&(n.sugType=t.sugType),t.termType!=null&&t.hasOwnProperty("termType")&&(n.termType=t.termType),t.goto!=null&&t.hasOwnProperty("goto")&&(n.goto=t.goto),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),t.officialVerify!=null&&t.hasOwnProperty("officialVerify")&&(n.officialVerify=u.bilibili.app.interface_.v1.OfficialVerify.toObject(t.officialVerify,i)),t.param!=null&&t.hasOwnProperty("param")&&(n.param=t.param),t.mid!=null&&t.hasOwnProperty("mid")&&(typeof t.mid=="number"?n.mid=i.longs===String?String(t.mid):t.mid:n.mid=i.longs===String?r.Long.prototype.toString.call(t.mid):i.longs===Number?new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber():t.mid),t.fans!=null&&t.hasOwnProperty("fans")&&(n.fans=t.fans),t.level!=null&&t.hasOwnProperty("level")&&(n.level=t.level),t.archives!=null&&t.hasOwnProperty("archives")&&(n.archives=t.archives),t.ptime!=null&&t.hasOwnProperty("ptime")&&(typeof t.ptime=="number"?n.ptime=i.longs===String?String(t.ptime):t.ptime:n.ptime=i.longs===String?r.Long.prototype.toString.call(t.ptime):i.longs===Number?new r.LongBits(t.ptime.low>>>0,t.ptime.high>>>0).toNumber():t.ptime),t.seasonTypeName!=null&&t.hasOwnProperty("seasonTypeName")&&(n.seasonTypeName=t.seasonTypeName),t.area!=null&&t.hasOwnProperty("area")&&(n.area=t.area),t.style!=null&&t.hasOwnProperty("style")&&(n.style=t.style),t.label!=null&&t.hasOwnProperty("label")&&(n.label=t.label),t.rating!=null&&t.hasOwnProperty("rating")&&(n.rating=i.json&&!isFinite(t.rating)?String(t.rating):t.rating),t.vote!=null&&t.hasOwnProperty("vote")&&(n.vote=t.vote),t.badges&&t.badges.length){n.badges=[];for(let o=0;o>>0,t.moduleId.high>>>0).toNumber():t.moduleId),t.liveLink!=null&&t.hasOwnProperty("liveLink")&&(n.liveLink=t.liveLink),t.faceNftNew!=null&&t.hasOwnProperty("faceNftNew")&&(n.faceNftNew=t.faceNftNew),t.nftFaceIcon!=null&&t.hasOwnProperty("nftFaceIcon")&&(n.nftFaceIcon=u.bilibili.app.interface_.v1.NftFaceIcon.toObject(t.nftFaceIcon,i)),t.isSeniorMember!=null&&t.hasOwnProperty("isSeniorMember")&&(n.isSeniorMember=t.isSeniorMember),t.isSugStyleExp!=null&&t.hasOwnProperty("isSugStyleExp")&&(n.isSugStyleExp=t.isSugStyleExp),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.interface_.v1.ResultItem"},e}(),c.NftFaceIcon=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.regionType=t.int32();break}case 2:{o.icon=t.string();break}case 3:{o.showStatus=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.interface_.v1.NftFaceIcon)return t;let i=new u.bilibili.app.interface_.v1.NftFaceIcon;return t.regionType!=null&&(i.regionType=t.regionType|0),t.icon!=null&&(i.icon=String(t.icon)),t.showStatus!=null&&(i.showStatus=t.showStatus|0),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.regionType=0,n.icon="",n.showStatus=0),t.regionType!=null&&t.hasOwnProperty("regionType")&&(n.regionType=t.regionType),t.icon!=null&&t.hasOwnProperty("icon")&&(n.icon=t.icon),t.showStatus!=null&&t.hasOwnProperty("showStatus")&&(n.showStatus=t.showStatus),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.interface_.v1.NftFaceIcon"},e}(),c.OfficialVerify=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.type=t.int32();break}case 2:{o.desc=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.interface_.v1.OfficialVerify)return t;let i=new u.bilibili.app.interface_.v1.OfficialVerify;return t.type!=null&&(i.type=t.type|0),t.desc!=null&&(i.desc=String(t.desc)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.type=0,n.desc=""),t.type!=null&&t.hasOwnProperty("type")&&(n.type=t.type),t.desc!=null&&t.hasOwnProperty("desc")&&(n.desc=t.desc),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.interface_.v1.OfficialVerify"},e}(),c.ReasonStyle=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.text=t.string();break}case 2:{o.textColor=t.string();break}case 3:{o.textColorNight=t.string();break}case 4:{o.bgColor=t.string();break}case 5:{o.bgColorNight=t.string();break}case 6:{o.borderColor=t.string();break}case 7:{o.borderColorNight=t.string();break}case 8:{o.bgStyle=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.interface_.v1.ReasonStyle)return t;let i=new u.bilibili.app.interface_.v1.ReasonStyle;return t.text!=null&&(i.text=String(t.text)),t.textColor!=null&&(i.textColor=String(t.textColor)),t.textColorNight!=null&&(i.textColorNight=String(t.textColorNight)),t.bgColor!=null&&(i.bgColor=String(t.bgColor)),t.bgColorNight!=null&&(i.bgColorNight=String(t.bgColorNight)),t.borderColor!=null&&(i.borderColor=String(t.borderColor)),t.borderColorNight!=null&&(i.borderColorNight=String(t.borderColorNight)),t.bgStyle!=null&&(i.bgStyle=t.bgStyle|0),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.text="",n.textColor="",n.textColorNight="",n.bgColor="",n.bgColorNight="",n.borderColor="",n.borderColorNight="",n.bgStyle=0),t.text!=null&&t.hasOwnProperty("text")&&(n.text=t.text),t.textColor!=null&&t.hasOwnProperty("textColor")&&(n.textColor=t.textColor),t.textColorNight!=null&&t.hasOwnProperty("textColorNight")&&(n.textColorNight=t.textColorNight),t.bgColor!=null&&t.hasOwnProperty("bgColor")&&(n.bgColor=t.bgColor),t.bgColorNight!=null&&t.hasOwnProperty("bgColorNight")&&(n.bgColorNight=t.bgColorNight),t.borderColor!=null&&t.hasOwnProperty("borderColor")&&(n.borderColor=t.borderColor),t.borderColorNight!=null&&t.hasOwnProperty("borderColorNight")&&(n.borderColorNight=t.borderColorNight),t.bgStyle!=null&&t.hasOwnProperty("bgStyle")&&(n.bgStyle=t.bgStyle),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.interface_.v1.ReasonStyle"},e}(),c.Space=function(){function e(l,t,i){b.rpc.Service.call(this,l,t,i)}return(e.prototype=Object.create(b.rpc.Service.prototype)).constructor=e,e.create=function(t,i,n){return new this(t,i,n)},Object.defineProperty(e.prototype.searchTab=function l(t,i){return this.rpcCall(l,u.bilibili.app.interface_.v1.SearchTabReq,u.bilibili.app.interface_.v1.SearchTabReply,t,i)},"name",{value:"SearchTab"}),Object.defineProperty(e.prototype.searchArchive=function l(t,i){return this.rpcCall(l,u.bilibili.app.interface_.v1.SearchArchiveReq,u.bilibili.app.interface_.v1.SearchArchiveReply,t,i)},"name",{value:"SearchArchive"}),Object.defineProperty(e.prototype.searchDynamic=function l(t,i){return this.rpcCall(l,u.bilibili.app.interface_.v1.SearchDynamicReq,u.bilibili.app.interface_.v1.SearchDynamicReply,t,i)},"name",{value:"SearchDynamic"}),e}(),c.From=function(){let e={},l=Object.create(e);return l[e[0]="ArchiveTab"]=0,l[e[1]="DynamicTab"]=1,l}(),c.SearchTabReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.keyword=t.string();break}case 2:{o.mid=t.int64();break}case 3:{o.from=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.interface_.v1.SearchTabReq)return t;let i=new u.bilibili.app.interface_.v1.SearchTabReq;switch(t.keyword!=null&&(i.keyword=String(t.keyword)),t.mid!=null&&(r.Long?(i.mid=r.Long.fromValue(t.mid)).unsigned=!1:typeof t.mid=="string"?i.mid=parseInt(t.mid,10):typeof t.mid=="number"?i.mid=t.mid:typeof t.mid=="object"&&(i.mid=new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber())),t.from){default:if(typeof t.from=="number"){i.from=t.from;break}break;case"ArchiveTab":case 0:i.from=0;break;case"DynamicTab":case 1:i.from=1;break}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.keyword="",r.Long){let o=new r.Long(0,0,!1);n.mid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mid=i.longs===String?"0":0;n.from=i.enums===String?"ArchiveTab":0}return t.keyword!=null&&t.hasOwnProperty("keyword")&&(n.keyword=t.keyword),t.mid!=null&&t.hasOwnProperty("mid")&&(typeof t.mid=="number"?n.mid=i.longs===String?String(t.mid):t.mid:n.mid=i.longs===String?r.Long.prototype.toString.call(t.mid):i.longs===Number?new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber():t.mid),t.from!=null&&t.hasOwnProperty("from")&&(n.from=i.enums===String?u.bilibili.app.interface_.v1.From[t.from]===void 0?t.from:u.bilibili.app.interface_.v1.From[t.from]:t.from),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.interface_.v1.SearchTabReq"},e}(),c.SearchTabReply=function(){function e(l){if(this.tabs=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.focus=t.int64();break}case 2:{o.tabs&&o.tabs.length||(o.tabs=[]),o.tabs.push(u.bilibili.app.interface_.v1.Tab.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.interface_.v1.SearchTabReply)return t;let i=new u.bilibili.app.interface_.v1.SearchTabReply;if(t.focus!=null&&(r.Long?(i.focus=r.Long.fromValue(t.focus)).unsigned=!1:typeof t.focus=="string"?i.focus=parseInt(t.focus,10):typeof t.focus=="number"?i.focus=t.focus:typeof t.focus=="object"&&(i.focus=new r.LongBits(t.focus.low>>>0,t.focus.high>>>0).toNumber())),t.tabs){if(!Array.isArray(t.tabs))throw TypeError(".bilibili.app.interface_.v1.SearchTabReply.tabs: array expected");i.tabs=[];for(let n=0;n>>0,t.focus.high>>>0).toNumber():t.focus),t.tabs&&t.tabs.length){n.tabs=[];for(let o=0;o>>3){case 1:{o.title=t.string();break}case 2:{o.uri=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.interface_.v1.Tab)return t;let i=new u.bilibili.app.interface_.v1.Tab;return t.title!=null&&(i.title=String(t.title)),t.uri!=null&&(i.uri=String(t.uri)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.title="",n.uri=""),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.interface_.v1.Tab"},e}(),c.SearchArchiveReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.keyword=t.string();break}case 2:{o.mid=t.int64();break}case 3:{o.pn=t.int64();break}case 4:{o.ps=t.int64();break}case 5:{o.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.interface_.v1.SearchArchiveReq)return t;let i=new u.bilibili.app.interface_.v1.SearchArchiveReq;if(t.keyword!=null&&(i.keyword=String(t.keyword)),t.mid!=null&&(r.Long?(i.mid=r.Long.fromValue(t.mid)).unsigned=!1:typeof t.mid=="string"?i.mid=parseInt(t.mid,10):typeof t.mid=="number"?i.mid=t.mid:typeof t.mid=="object"&&(i.mid=new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber())),t.pn!=null&&(r.Long?(i.pn=r.Long.fromValue(t.pn)).unsigned=!1:typeof t.pn=="string"?i.pn=parseInt(t.pn,10):typeof t.pn=="number"?i.pn=t.pn:typeof t.pn=="object"&&(i.pn=new r.LongBits(t.pn.low>>>0,t.pn.high>>>0).toNumber())),t.ps!=null&&(r.Long?(i.ps=r.Long.fromValue(t.ps)).unsigned=!1:typeof t.ps=="string"?i.ps=parseInt(t.ps,10):typeof t.ps=="number"?i.ps=t.ps:typeof t.ps=="object"&&(i.ps=new r.LongBits(t.ps.low>>>0,t.ps.high>>>0).toNumber())),t.playerArgs!=null){if(typeof t.playerArgs!="object")throw TypeError(".bilibili.app.interface_.v1.SearchArchiveReq.playerArgs: object expected");i.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.fromObject(t.playerArgs)}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.keyword="",r.Long){let o=new r.Long(0,0,!1);n.mid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.pn=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.pn=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.ps=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.ps=i.longs===String?"0":0;n.playerArgs=null}return t.keyword!=null&&t.hasOwnProperty("keyword")&&(n.keyword=t.keyword),t.mid!=null&&t.hasOwnProperty("mid")&&(typeof t.mid=="number"?n.mid=i.longs===String?String(t.mid):t.mid:n.mid=i.longs===String?r.Long.prototype.toString.call(t.mid):i.longs===Number?new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber():t.mid),t.pn!=null&&t.hasOwnProperty("pn")&&(typeof t.pn=="number"?n.pn=i.longs===String?String(t.pn):t.pn:n.pn=i.longs===String?r.Long.prototype.toString.call(t.pn):i.longs===Number?new r.LongBits(t.pn.low>>>0,t.pn.high>>>0).toNumber():t.pn),t.ps!=null&&t.hasOwnProperty("ps")&&(typeof t.ps=="number"?n.ps=i.longs===String?String(t.ps):t.ps:n.ps=i.longs===String?r.Long.prototype.toString.call(t.ps):i.longs===Number?new r.LongBits(t.ps.low>>>0,t.ps.high>>>0).toNumber():t.ps),t.playerArgs!=null&&t.hasOwnProperty("playerArgs")&&(n.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.toObject(t.playerArgs,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.interface_.v1.SearchArchiveReq"},e}(),c.SearchArchiveReply=function(){function e(l){if(this.archives=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.archives&&o.archives.length||(o.archives=[]),o.archives.push(u.bilibili.app.interface_.v1.Arc.decode(t,t.uint32()));break}case 2:{o.total=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.interface_.v1.SearchArchiveReply)return t;let i=new u.bilibili.app.interface_.v1.SearchArchiveReply;if(t.archives){if(!Array.isArray(t.archives))throw TypeError(".bilibili.app.interface_.v1.SearchArchiveReply.archives: array expected");i.archives=[];for(let n=0;n>>0,t.total.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if((i.arrays||i.defaults)&&(n.archives=[]),i.defaults)if(r.Long){let o=new r.Long(0,0,!1);n.total=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.total=i.longs===String?"0":0;if(t.archives&&t.archives.length){n.archives=[];for(let o=0;o>>0,t.total.high>>>0).toNumber():t.total),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.interface_.v1.SearchArchiveReply"},e}(),c.Arc=function(){function e(l){if(this.badges=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.archive=u.archive.service.v1.Arc.decode(t,t.uint32());break}case 2:{o.uri=t.string();break}case 3:{o.viewContent=t.string();break}case 4:{o.iconType=t.int64();break}case 5:{o.coverIcon=t.string();break}case 6:{o.isFold=t.bool();break}case 7:{o.isPugv=t.bool();break}case 8:{o.publishTimeText=t.string();break}case 9:{o.badges&&o.badges.length||(o.badges=[]),o.badges.push(t.string());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.interface_.v1.Arc)return t;let i=new u.bilibili.app.interface_.v1.Arc;if(t.archive!=null){if(typeof t.archive!="object")throw TypeError(".bilibili.app.interface_.v1.Arc.archive: object expected");i.archive=u.archive.service.v1.Arc.fromObject(t.archive)}if(t.uri!=null&&(i.uri=String(t.uri)),t.viewContent!=null&&(i.viewContent=String(t.viewContent)),t.iconType!=null&&(r.Long?(i.iconType=r.Long.fromValue(t.iconType)).unsigned=!1:typeof t.iconType=="string"?i.iconType=parseInt(t.iconType,10):typeof t.iconType=="number"?i.iconType=t.iconType:typeof t.iconType=="object"&&(i.iconType=new r.LongBits(t.iconType.low>>>0,t.iconType.high>>>0).toNumber())),t.coverIcon!=null&&(i.coverIcon=String(t.coverIcon)),t.isFold!=null&&(i.isFold=!!t.isFold),t.isPugv!=null&&(i.isPugv=!!t.isPugv),t.publishTimeText!=null&&(i.publishTimeText=String(t.publishTimeText)),t.badges){if(!Array.isArray(t.badges))throw TypeError(".bilibili.app.interface_.v1.Arc.badges: array expected");i.badges=[];for(let n=0;n>>0,t.iconType.high>>>0).toNumber():t.iconType),t.coverIcon!=null&&t.hasOwnProperty("coverIcon")&&(n.coverIcon=t.coverIcon),t.isFold!=null&&t.hasOwnProperty("isFold")&&(n.isFold=t.isFold),t.isPugv!=null&&t.hasOwnProperty("isPugv")&&(n.isPugv=t.isPugv),t.publishTimeText!=null&&t.hasOwnProperty("publishTimeText")&&(n.publishTimeText=t.publishTimeText),t.badges&&t.badges.length){n.badges=[];for(let o=0;o>>3){case 1:{o.keyword=t.string();break}case 2:{o.mid=t.int64();break}case 3:{o.pn=t.int64();break}case 4:{o.ps=t.int64();break}case 5:{o.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.interface_.v1.SearchDynamicReq)return t;let i=new u.bilibili.app.interface_.v1.SearchDynamicReq;if(t.keyword!=null&&(i.keyword=String(t.keyword)),t.mid!=null&&(r.Long?(i.mid=r.Long.fromValue(t.mid)).unsigned=!1:typeof t.mid=="string"?i.mid=parseInt(t.mid,10):typeof t.mid=="number"?i.mid=t.mid:typeof t.mid=="object"&&(i.mid=new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber())),t.pn!=null&&(r.Long?(i.pn=r.Long.fromValue(t.pn)).unsigned=!1:typeof t.pn=="string"?i.pn=parseInt(t.pn,10):typeof t.pn=="number"?i.pn=t.pn:typeof t.pn=="object"&&(i.pn=new r.LongBits(t.pn.low>>>0,t.pn.high>>>0).toNumber())),t.ps!=null&&(r.Long?(i.ps=r.Long.fromValue(t.ps)).unsigned=!1:typeof t.ps=="string"?i.ps=parseInt(t.ps,10):typeof t.ps=="number"?i.ps=t.ps:typeof t.ps=="object"&&(i.ps=new r.LongBits(t.ps.low>>>0,t.ps.high>>>0).toNumber())),t.playerArgs!=null){if(typeof t.playerArgs!="object")throw TypeError(".bilibili.app.interface_.v1.SearchDynamicReq.playerArgs: object expected");i.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.fromObject(t.playerArgs)}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.keyword="",r.Long){let o=new r.Long(0,0,!1);n.mid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.pn=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.pn=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.ps=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.ps=i.longs===String?"0":0;n.playerArgs=null}return t.keyword!=null&&t.hasOwnProperty("keyword")&&(n.keyword=t.keyword),t.mid!=null&&t.hasOwnProperty("mid")&&(typeof t.mid=="number"?n.mid=i.longs===String?String(t.mid):t.mid:n.mid=i.longs===String?r.Long.prototype.toString.call(t.mid):i.longs===Number?new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber():t.mid),t.pn!=null&&t.hasOwnProperty("pn")&&(typeof t.pn=="number"?n.pn=i.longs===String?String(t.pn):t.pn:n.pn=i.longs===String?r.Long.prototype.toString.call(t.pn):i.longs===Number?new r.LongBits(t.pn.low>>>0,t.pn.high>>>0).toNumber():t.pn),t.ps!=null&&t.hasOwnProperty("ps")&&(typeof t.ps=="number"?n.ps=i.longs===String?String(t.ps):t.ps:n.ps=i.longs===String?r.Long.prototype.toString.call(t.ps):i.longs===Number?new r.LongBits(t.ps.low>>>0,t.ps.high>>>0).toNumber():t.ps),t.playerArgs!=null&&t.hasOwnProperty("playerArgs")&&(n.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.toObject(t.playerArgs,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.interface_.v1.SearchDynamicReq"},e}(),c.SearchDynamicReply=function(){function e(l){if(this.dynamics=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.dynamics&&o.dynamics.length||(o.dynamics=[]),o.dynamics.push(u.bilibili.app.interface_.v1.Dynamic.decode(t,t.uint32()));break}case 2:{o.total=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.interface_.v1.SearchDynamicReply)return t;let i=new u.bilibili.app.interface_.v1.SearchDynamicReply;if(t.dynamics){if(!Array.isArray(t.dynamics))throw TypeError(".bilibili.app.interface_.v1.SearchDynamicReply.dynamics: array expected");i.dynamics=[];for(let n=0;n>>0,t.total.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if((i.arrays||i.defaults)&&(n.dynamics=[]),i.defaults)if(r.Long){let o=new r.Long(0,0,!1);n.total=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.total=i.longs===String?"0":0;if(t.dynamics&&t.dynamics.length){n.dynamics=[];for(let o=0;o>>0,t.total.high>>>0).toNumber():t.total),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.interface_.v1.SearchDynamicReply"},e}(),c.Dynamic=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.dynamic=u.bilibili.app.dynamic.v2.DynamicItem.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.interface_.v1.Dynamic)return t;let i=new u.bilibili.app.interface_.v1.Dynamic;if(t.dynamic!=null){if(typeof t.dynamic!="object")throw TypeError(".bilibili.app.interface_.v1.Dynamic.dynamic: object expected");i.dynamic=u.bilibili.app.dynamic.v2.DynamicItem.fromObject(t.dynamic)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.dynamic=null),t.dynamic!=null&&t.hasOwnProperty("dynamic")&&(n.dynamic=u.bilibili.app.dynamic.v2.DynamicItem.toObject(t.dynamic,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.interface_.v1.Dynamic"},e}(),c.Teenagers=function(){function e(l,t,i){b.rpc.Service.call(this,l,t,i)}return(e.prototype=Object.create(b.rpc.Service.prototype)).constructor=e,e.create=function(t,i,n){return new this(t,i,n)},Object.defineProperty(e.prototype.modifyPwd=function l(t,i){return this.rpcCall(l,u.bilibili.app.interface_.v1.ModifyPwdReq,u.bilibili.app.interface_.v1.ModifyPwdReply,t,i)},"name",{value:"ModifyPwd"}),Object.defineProperty(e.prototype.verifyPwd=function l(t,i){return this.rpcCall(l,u.bilibili.app.interface_.v1.VerifyPwdReq,u.bilibili.app.interface_.v1.VerifyPwdReply,t,i)},"name",{value:"VerifyPwd"}),Object.defineProperty(e.prototype.updateStatus=function l(t,i){return this.rpcCall(l,u.bilibili.app.interface_.v1.UpdateStatusReq,u.bilibili.app.interface_.v1.UpdateStatusReply,t,i)},"name",{value:"UpdateStatus"}),Object.defineProperty(e.prototype.modeStatus=function l(t,i){return this.rpcCall(l,u.bilibili.app.interface_.v1.ModeStatusReq,u.bilibili.app.interface_.v1.ModeStatusReply,t,i)},"name",{value:"ModeStatus"}),Object.defineProperty(e.prototype.facialRecognitionVerify=function l(t,i){return this.rpcCall(l,u.bilibili.app.interface_.v1.FacialRecognitionVerifyReq,u.bilibili.app.interface_.v1.FacialRecognitionVerifyReply,t,i)},"name",{value:"FacialRecognitionVerify"}),e}(),c.ModifyPwdReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.oldPwd=t.string();break}case 2:{o.newPwd=t.string();break}case 3:{o.deviceToken=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.interface_.v1.ModifyPwdReq)return t;let i=new u.bilibili.app.interface_.v1.ModifyPwdReq;return t.oldPwd!=null&&(i.oldPwd=String(t.oldPwd)),t.newPwd!=null&&(i.newPwd=String(t.newPwd)),t.deviceToken!=null&&(i.deviceToken=String(t.deviceToken)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.oldPwd="",n.newPwd="",n.deviceToken=""),t.oldPwd!=null&&t.hasOwnProperty("oldPwd")&&(n.oldPwd=t.oldPwd),t.newPwd!=null&&t.hasOwnProperty("newPwd")&&(n.newPwd=t.newPwd),t.deviceToken!=null&&t.hasOwnProperty("deviceToken")&&(n.deviceToken=t.deviceToken),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.interface_.v1.ModifyPwdReq"},e}(),c.ModifyPwdReply=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){default:t.skipType(a&7);break}}return o},e.fromObject=function(t){return t instanceof u.bilibili.app.interface_.v1.ModifyPwdReply?t:new u.bilibili.app.interface_.v1.ModifyPwdReply},e.toObject=function(){return{}},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.interface_.v1.ModifyPwdReply"},e}(),c.PwdFrom=function(){let e={},l=Object.create(e);return l[e[0]="UnknownFrom"]=0,l[e[1]="TeenagersAntiAddictionFrom"]=1,l[e[2]="TeenagersCurfewFrom"]=2,l[e[3]="TeenagersLoginFrom"]=3,l[e[4]="TeenagersLogOutFrom"]=4,l[e[5]="FamilyAntiAddictionFrom"]=5,l[e[6]="FamilyCurfewFrom"]=6,l[e[7]="FamilyLogOutFrom"]=7,l[e[8]="FamilyTimeLockFrom"]=8,l[e[9]="TeenagersQuitPwdFrom"]=9,l[e[10]="TeenagersModifyPwdFrom"]=10,l[e[11]="FamilyQuitFrom"]=11,l}(),c.VerifyPwdReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.pwd=t.string();break}case 2:{o.pwdFrom=t.int32();break}case 3:{o.isDynamic=t.bool();break}case 4:{o.closeDevice=t.bool();break}case 5:{o.deviceToken=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.interface_.v1.VerifyPwdReq)return t;let i=new u.bilibili.app.interface_.v1.VerifyPwdReq;switch(t.pwd!=null&&(i.pwd=String(t.pwd)),t.pwdFrom){default:if(typeof t.pwdFrom=="number"){i.pwdFrom=t.pwdFrom;break}break;case"UnknownFrom":case 0:i.pwdFrom=0;break;case"TeenagersAntiAddictionFrom":case 1:i.pwdFrom=1;break;case"TeenagersCurfewFrom":case 2:i.pwdFrom=2;break;case"TeenagersLoginFrom":case 3:i.pwdFrom=3;break;case"TeenagersLogOutFrom":case 4:i.pwdFrom=4;break;case"FamilyAntiAddictionFrom":case 5:i.pwdFrom=5;break;case"FamilyCurfewFrom":case 6:i.pwdFrom=6;break;case"FamilyLogOutFrom":case 7:i.pwdFrom=7;break;case"FamilyTimeLockFrom":case 8:i.pwdFrom=8;break;case"TeenagersQuitPwdFrom":case 9:i.pwdFrom=9;break;case"TeenagersModifyPwdFrom":case 10:i.pwdFrom=10;break;case"FamilyQuitFrom":case 11:i.pwdFrom=11;break}return t.isDynamic!=null&&(i.isDynamic=!!t.isDynamic),t.closeDevice!=null&&(i.closeDevice=!!t.closeDevice),t.deviceToken!=null&&(i.deviceToken=String(t.deviceToken)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.pwd="",n.pwdFrom=i.enums===String?"UnknownFrom":0,n.isDynamic=!1,n.closeDevice=!1,n.deviceToken=""),t.pwd!=null&&t.hasOwnProperty("pwd")&&(n.pwd=t.pwd),t.pwdFrom!=null&&t.hasOwnProperty("pwdFrom")&&(n.pwdFrom=i.enums===String?u.bilibili.app.interface_.v1.PwdFrom[t.pwdFrom]===void 0?t.pwdFrom:u.bilibili.app.interface_.v1.PwdFrom[t.pwdFrom]:t.pwdFrom),t.isDynamic!=null&&t.hasOwnProperty("isDynamic")&&(n.isDynamic=t.isDynamic),t.closeDevice!=null&&t.hasOwnProperty("closeDevice")&&(n.closeDevice=t.closeDevice),t.deviceToken!=null&&t.hasOwnProperty("deviceToken")&&(n.deviceToken=t.deviceToken),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.interface_.v1.VerifyPwdReq"},e}(),c.VerifyPwdReply=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){default:t.skipType(a&7);break}}return o},e.fromObject=function(t){return t instanceof u.bilibili.app.interface_.v1.VerifyPwdReply?t:new u.bilibili.app.interface_.v1.VerifyPwdReply},e.toObject=function(){return{}},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.interface_.v1.VerifyPwdReply"},e}(),c.UpdateStatusReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.pwd=t.string();break}case 2:{o.switch=t.bool();break}case 3:{o.pwdFrom=t.int32();break}case 4:{o.deviceToken=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.interface_.v1.UpdateStatusReq)return t;let i=new u.bilibili.app.interface_.v1.UpdateStatusReq;switch(t.pwd!=null&&(i.pwd=String(t.pwd)),t.switch!=null&&(i.switch=!!t.switch),t.pwdFrom){default:if(typeof t.pwdFrom=="number"){i.pwdFrom=t.pwdFrom;break}break;case"UnknownFrom":case 0:i.pwdFrom=0;break;case"TeenagersAntiAddictionFrom":case 1:i.pwdFrom=1;break;case"TeenagersCurfewFrom":case 2:i.pwdFrom=2;break;case"TeenagersLoginFrom":case 3:i.pwdFrom=3;break;case"TeenagersLogOutFrom":case 4:i.pwdFrom=4;break;case"FamilyAntiAddictionFrom":case 5:i.pwdFrom=5;break;case"FamilyCurfewFrom":case 6:i.pwdFrom=6;break;case"FamilyLogOutFrom":case 7:i.pwdFrom=7;break;case"FamilyTimeLockFrom":case 8:i.pwdFrom=8;break;case"TeenagersQuitPwdFrom":case 9:i.pwdFrom=9;break;case"TeenagersModifyPwdFrom":case 10:i.pwdFrom=10;break;case"FamilyQuitFrom":case 11:i.pwdFrom=11;break}return t.deviceToken!=null&&(i.deviceToken=String(t.deviceToken)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.pwd="",n.switch=!1,n.pwdFrom=i.enums===String?"UnknownFrom":0,n.deviceToken=""),t.pwd!=null&&t.hasOwnProperty("pwd")&&(n.pwd=t.pwd),t.switch!=null&&t.hasOwnProperty("switch")&&(n.switch=t.switch),t.pwdFrom!=null&&t.hasOwnProperty("pwdFrom")&&(n.pwdFrom=i.enums===String?u.bilibili.app.interface_.v1.PwdFrom[t.pwdFrom]===void 0?t.pwdFrom:u.bilibili.app.interface_.v1.PwdFrom[t.pwdFrom]:t.pwdFrom),t.deviceToken!=null&&t.hasOwnProperty("deviceToken")&&(n.deviceToken=t.deviceToken),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.interface_.v1.UpdateStatusReq"},e}(),c.UpdateStatusReply=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){default:t.skipType(a&7);break}}return o},e.fromObject=function(t){return t instanceof u.bilibili.app.interface_.v1.UpdateStatusReply?t:new u.bilibili.app.interface_.v1.UpdateStatusReply},e.toObject=function(){return{}},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.interface_.v1.UpdateStatusReply"},e}(),c.ModeStatusReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.deviceToken=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.interface_.v1.ModeStatusReq)return t;let i=new u.bilibili.app.interface_.v1.ModeStatusReq;return t.deviceToken!=null&&(i.deviceToken=String(t.deviceToken)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.deviceToken=""),t.deviceToken!=null&&t.hasOwnProperty("deviceToken")&&(n.deviceToken=t.deviceToken),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.interface_.v1.ModeStatusReq"},e}(),c.ModeStatusReply=function(){function e(l){if(this.userModels=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.userModels&&o.userModels.length||(o.userModels=[]),o.userModels.push(u.bilibili.app.interface_.v1.UserModel.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.interface_.v1.ModeStatusReply)return t;let i=new u.bilibili.app.interface_.v1.ModeStatusReply;if(t.userModels){if(!Array.isArray(t.userModels))throw TypeError(".bilibili.app.interface_.v1.ModeStatusReply.userModels: array expected");i.userModels=[];for(let n=0;n>>3){case 1:{o.interval=t.int64();break}case 2:{o.useLocalTime=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.interface_.v1.Policy)return t;let i=new u.bilibili.app.interface_.v1.Policy;return t.interval!=null&&(r.Long?(i.interval=r.Long.fromValue(t.interval)).unsigned=!1:typeof t.interval=="string"?i.interval=parseInt(t.interval,10):typeof t.interval=="number"?i.interval=t.interval:typeof t.interval=="object"&&(i.interval=new r.LongBits(t.interval.low>>>0,t.interval.high>>>0).toNumber())),t.useLocalTime!=null&&(i.useLocalTime=!!t.useLocalTime),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.interval=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.interval=i.longs===String?"0":0;n.useLocalTime=!1}return t.interval!=null&&t.hasOwnProperty("interval")&&(typeof t.interval=="number"?n.interval=i.longs===String?String(t.interval):t.interval:n.interval=i.longs===String?r.Long.prototype.toString.call(t.interval):i.longs===Number?new r.LongBits(t.interval.low>>>0,t.interval.high>>>0).toNumber():t.interval),t.useLocalTime!=null&&t.hasOwnProperty("useLocalTime")&&(n.useLocalTime=t.useLocalTime),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.interface_.v1.Policy"},e}(),c.UserModel=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.mid=t.int64();break}case 2:{o.mode=t.string();break}case 3:{o.wsxcde=t.string();break}case 4:{o.status=t.int32();break}case 5:{o.policy=u.bilibili.app.interface_.v1.Policy.decode(t,t.uint32());break}case 6:{o.isForced=t.bool();break}case 7:{o.mustTeen=t.bool();break}case 8:{o.mustRealName=t.bool();break}case 9:{o.isParentControl=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.interface_.v1.UserModel)return t;let i=new u.bilibili.app.interface_.v1.UserModel;switch(t.mid!=null&&(r.Long?(i.mid=r.Long.fromValue(t.mid)).unsigned=!1:typeof t.mid=="string"?i.mid=parseInt(t.mid,10):typeof t.mid=="number"?i.mid=t.mid:typeof t.mid=="object"&&(i.mid=new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber())),t.mode!=null&&(i.mode=String(t.mode)),t.wsxcde!=null&&(i.wsxcde=String(t.wsxcde)),t.status){default:if(typeof t.status=="number"){i.status=t.status;break}break;case"CloseStatus":case 0:i.status=0;break;case"OpenStatus":case 1:i.status=1;break;case"NotSetStatus":case 2:i.status=2;break}if(t.policy!=null){if(typeof t.policy!="object")throw TypeError(".bilibili.app.interface_.v1.UserModel.policy: object expected");i.policy=u.bilibili.app.interface_.v1.Policy.fromObject(t.policy)}return t.isForced!=null&&(i.isForced=!!t.isForced),t.mustTeen!=null&&(i.mustTeen=!!t.mustTeen),t.mustRealName!=null&&(i.mustRealName=!!t.mustRealName),t.isParentControl!=null&&(i.isParentControl=!!t.isParentControl),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.mid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mid=i.longs===String?"0":0;n.mode="",n.wsxcde="",n.status=i.enums===String?"CloseStatus":0,n.policy=null,n.isForced=!1,n.mustTeen=!1,n.mustRealName=!1,n.isParentControl=!1}return t.mid!=null&&t.hasOwnProperty("mid")&&(typeof t.mid=="number"?n.mid=i.longs===String?String(t.mid):t.mid:n.mid=i.longs===String?r.Long.prototype.toString.call(t.mid):i.longs===Number?new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber():t.mid),t.mode!=null&&t.hasOwnProperty("mode")&&(n.mode=t.mode),t.wsxcde!=null&&t.hasOwnProperty("wsxcde")&&(n.wsxcde=t.wsxcde),t.status!=null&&t.hasOwnProperty("status")&&(n.status=i.enums===String?u.bilibili.app.interface_.v1.ModelStatus[t.status]===void 0?t.status:u.bilibili.app.interface_.v1.ModelStatus[t.status]:t.status),t.policy!=null&&t.hasOwnProperty("policy")&&(n.policy=u.bilibili.app.interface_.v1.Policy.toObject(t.policy,i)),t.isForced!=null&&t.hasOwnProperty("isForced")&&(n.isForced=t.isForced),t.mustTeen!=null&&t.hasOwnProperty("mustTeen")&&(n.mustTeen=t.mustTeen),t.mustRealName!=null&&t.hasOwnProperty("mustRealName")&&(n.mustRealName=t.mustRealName),t.isParentControl!=null&&t.hasOwnProperty("isParentControl")&&(n.isParentControl=t.isParentControl),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.interface_.v1.UserModel"},e}(),c.FacialRecognitionVerifyFrom=function(){let e={},l=Object.create(e);return l[e[0]="VerifyUnknownFrom"]=0,l[e[1]="VerifyFromGuardian"]=1,l[e[2]="VerifyFromAppeal"]=2,l}(),c.FacialRecognitionVerifyReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.from=t.int32();break}case 2:{o.deviceToken=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.interface_.v1.FacialRecognitionVerifyReq)return t;let i=new u.bilibili.app.interface_.v1.FacialRecognitionVerifyReq;switch(t.from){default:if(typeof t.from=="number"){i.from=t.from;break}break;case"VerifyUnknownFrom":case 0:i.from=0;break;case"VerifyFromGuardian":case 1:i.from=1;break;case"VerifyFromAppeal":case 2:i.from=2;break}return t.deviceToken!=null&&(i.deviceToken=String(t.deviceToken)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.from=i.enums===String?"VerifyUnknownFrom":0,n.deviceToken=""),t.from!=null&&t.hasOwnProperty("from")&&(n.from=i.enums===String?u.bilibili.app.interface_.v1.FacialRecognitionVerifyFrom[t.from]===void 0?t.from:u.bilibili.app.interface_.v1.FacialRecognitionVerifyFrom[t.from]:t.from),t.deviceToken!=null&&t.hasOwnProperty("deviceToken")&&(n.deviceToken=t.deviceToken),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.interface_.v1.FacialRecognitionVerifyReq"},e}(),c.FacialRecognitionVerifyReply=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){default:t.skipType(a&7);break}}return o},e.fromObject=function(t){return t instanceof u.bilibili.app.interface_.v1.FacialRecognitionVerifyReply?t:new u.bilibili.app.interface_.v1.FacialRecognitionVerifyReply},e.toObject=function(){return{}},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.interface_.v1.FacialRecognitionVerifyReply"},e}(),c}(),p}(),d.listener=function(){let p={};return p.v1=function(){let c={};return c.PlaylistOffset=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.direction=t.int32();break}case 2:{o.lastItem=u.bilibili.app.listener.v1.PlayItem.decode(t,t.uint32());break}case 3:{o.randomState=u.bilibili.app.listener.v1.RandomOrderStatus.decode(t,t.uint32());break}case 4:{o.sortOpt=u.bilibili.app.listener.v1.SortOption.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.listener.v1.PlaylistOffset)return t;let i=new u.bilibili.app.listener.v1.PlaylistOffset;switch(t.direction){default:if(typeof t.direction=="number"){i.direction=t.direction;break}break;case"DOWN":case 0:i.direction=0;break;case"UP":case 1:i.direction=1;break}if(t.lastItem!=null){if(typeof t.lastItem!="object")throw TypeError(".bilibili.app.listener.v1.PlaylistOffset.lastItem: object expected");i.lastItem=u.bilibili.app.listener.v1.PlayItem.fromObject(t.lastItem)}if(t.randomState!=null){if(typeof t.randomState!="object")throw TypeError(".bilibili.app.listener.v1.PlaylistOffset.randomState: object expected");i.randomState=u.bilibili.app.listener.v1.RandomOrderStatus.fromObject(t.randomState)}if(t.sortOpt!=null){if(typeof t.sortOpt!="object")throw TypeError(".bilibili.app.listener.v1.PlaylistOffset.sortOpt: object expected");i.sortOpt=u.bilibili.app.listener.v1.SortOption.fromObject(t.sortOpt)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.direction=i.enums===String?"DOWN":0,n.lastItem=null,n.randomState=null,n.sortOpt=null),t.direction!=null&&t.hasOwnProperty("direction")&&(n.direction=i.enums===String?u.bilibili.app.listener.v1.PlaylistOffset.PlaylistScrollDirection[t.direction]===void 0?t.direction:u.bilibili.app.listener.v1.PlaylistOffset.PlaylistScrollDirection[t.direction]:t.direction),t.lastItem!=null&&t.hasOwnProperty("lastItem")&&(n.lastItem=u.bilibili.app.listener.v1.PlayItem.toObject(t.lastItem,i)),t.randomState!=null&&t.hasOwnProperty("randomState")&&(n.randomState=u.bilibili.app.listener.v1.RandomOrderStatus.toObject(t.randomState,i)),t.sortOpt!=null&&t.hasOwnProperty("sortOpt")&&(n.sortOpt=u.bilibili.app.listener.v1.SortOption.toObject(t.sortOpt,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.listener.v1.PlaylistOffset"},e.PlaylistScrollDirection=function(){let l={},t=Object.create(l);return t[l[0]="DOWN"]=0,t[l[1]="UP"]=1,t}(),e}(),c.RandomOrderStatus=function(){function e(l){if(this.exposedPos=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{if(o.exposedPos&&o.exposedPos.length||(o.exposedPos=[]),(a&7)===2){let y=t.uint32()+t.pos;for(;t.pos>>0,t.exposedPos[n].high>>>0).toNumber(!0))}return i},e.toObject=function(t,i){i||(i={});let n={};if((i.arrays||i.defaults)&&(n.exposedPos=[]),t.exposedPos&&t.exposedPos.length){n.exposedPos=[];for(let o=0;o>>0,t.exposedPos[o].high>>>0).toNumber(!0):t.exposedPos[o]}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.listener.v1.RandomOrderStatus"},e}(),c.Listener=function(){function e(l,t,i){b.rpc.Service.call(this,l,t,i)}return(e.prototype=Object.create(b.rpc.Service.prototype)).constructor=e,e.create=function(t,i,n){return new this(t,i,n)},Object.defineProperty(e.prototype.ping=function l(t,i){return this.rpcCall(l,u.google.protobuf.Empty,u.google.protobuf.Empty,t,i)},"name",{value:"Ping"}),Object.defineProperty(e.prototype.playURL=function l(t,i){return this.rpcCall(l,u.bilibili.app.listener.v1.PlayURLReq,u.bilibili.app.listener.v1.PlayURLResp,t,i)},"name",{value:"PlayURL"}),Object.defineProperty(e.prototype.bKArcDetails=function l(t,i){return this.rpcCall(l,u.bilibili.app.listener.v1.BKArcDetailsReq,u.bilibili.app.listener.v1.BKArcDetailsResp,t,i)},"name",{value:"BKArcDetails"}),Object.defineProperty(e.prototype.playlist=function l(t,i){return this.rpcCall(l,u.bilibili.app.listener.v1.PlaylistReq,u.bilibili.app.listener.v1.PlaylistResp,t,i)},"name",{value:"Playlist"}),Object.defineProperty(e.prototype.playlistAdd=function l(t,i){return this.rpcCall(l,u.bilibili.app.listener.v1.PlaylistAddReq,u.google.protobuf.Empty,t,i)},"name",{value:"PlaylistAdd"}),Object.defineProperty(e.prototype.playlistDel=function l(t,i){return this.rpcCall(l,u.bilibili.app.listener.v1.PlaylistDelReq,u.google.protobuf.Empty,t,i)},"name",{value:"PlaylistDel"}),Object.defineProperty(e.prototype.rcmdPlaylist=function l(t,i){return this.rpcCall(l,u.bilibili.app.listener.v1.RcmdPlaylistReq,u.bilibili.app.listener.v1.RcmdPlaylistResp,t,i)},"name",{value:"RcmdPlaylist"}),Object.defineProperty(e.prototype.playHistory=function l(t,i){return this.rpcCall(l,u.bilibili.app.listener.v1.PlayHistoryReq,u.bilibili.app.listener.v1.PlayHistoryResp,t,i)},"name",{value:"PlayHistory"}),Object.defineProperty(e.prototype.playHistoryAdd=function l(t,i){return this.rpcCall(l,u.bilibili.app.listener.v1.PlayHistoryAddReq,u.google.protobuf.Empty,t,i)},"name",{value:"PlayHistoryAdd"}),Object.defineProperty(e.prototype.playHistoryDel=function l(t,i){return this.rpcCall(l,u.bilibili.app.listener.v1.PlayHistoryDelReq,u.google.protobuf.Empty,t,i)},"name",{value:"PlayHistoryDel"}),Object.defineProperty(e.prototype.playActionReport=function l(t,i){return this.rpcCall(l,u.bilibili.app.listener.v1.PlayActionReportReq,u.google.protobuf.Empty,t,i)},"name",{value:"PlayActionReport"}),Object.defineProperty(e.prototype.tripleLike=function l(t,i){return this.rpcCall(l,u.bilibili.app.listener.v1.TripleLikeReq,u.bilibili.app.listener.v1.TripleLikeResp,t,i)},"name",{value:"TripleLike"}),Object.defineProperty(e.prototype.thumbUp=function l(t,i){return this.rpcCall(l,u.bilibili.app.listener.v1.ThumbUpReq,u.bilibili.app.listener.v1.ThumbUpResp,t,i)},"name",{value:"ThumbUp"}),Object.defineProperty(e.prototype.coinAdd=function l(t,i){return this.rpcCall(l,u.bilibili.app.listener.v1.CoinAddReq,u.bilibili.app.listener.v1.CoinAddResp,t,i)},"name",{value:"CoinAdd"}),Object.defineProperty(e.prototype.favItemAdd=function l(t,i){return this.rpcCall(l,u.bilibili.app.listener.v1.FavItemAddReq,u.bilibili.app.listener.v1.FavItemAddResp,t,i)},"name",{value:"FavItemAdd"}),Object.defineProperty(e.prototype.favItemDel=function l(t,i){return this.rpcCall(l,u.bilibili.app.listener.v1.FavItemDelReq,u.bilibili.app.listener.v1.FavItemDelResp,t,i)},"name",{value:"FavItemDel"}),Object.defineProperty(e.prototype.favItemBatch=function l(t,i){return this.rpcCall(l,u.bilibili.app.listener.v1.FavItemBatchReq,u.bilibili.app.listener.v1.FavItemBatchResp,t,i)},"name",{value:"FavItemBatch"}),Object.defineProperty(e.prototype.favoredInAnyFolders=function l(t,i){return this.rpcCall(l,u.bilibili.app.listener.v1.FavoredInAnyFoldersReq,u.bilibili.app.listener.v1.FavoredInAnyFoldersResp,t,i)},"name",{value:"FavoredInAnyFolders"}),Object.defineProperty(e.prototype.favFolderList=function l(t,i){return this.rpcCall(l,u.bilibili.app.listener.v1.FavFolderListReq,u.bilibili.app.listener.v1.FavFolderListResp,t,i)},"name",{value:"FavFolderList"}),Object.defineProperty(e.prototype.favFolderDetail=function l(t,i){return this.rpcCall(l,u.bilibili.app.listener.v1.FavFolderDetailReq,u.bilibili.app.listener.v1.FavFolderDetailResp,t,i)},"name",{value:"FavFolderDetail"}),Object.defineProperty(e.prototype.favFolderCreate=function l(t,i){return this.rpcCall(l,u.bilibili.app.listener.v1.FavFolderCreateReq,u.bilibili.app.listener.v1.FavFolderCreateResp,t,i)},"name",{value:"FavFolderCreate"}),Object.defineProperty(e.prototype.favFolderDelete=function l(t,i){return this.rpcCall(l,u.bilibili.app.listener.v1.FavFolderDeleteReq,u.bilibili.app.listener.v1.FavFolderDeleteResp,t,i)},"name",{value:"FavFolderDelete"}),Object.defineProperty(e.prototype.pickFeed=function l(t,i){return this.rpcCall(l,u.bilibili.app.listener.v1.PickFeedReq,u.bilibili.app.listener.v1.PickFeedResp,t,i)},"name",{value:"PickFeed"}),Object.defineProperty(e.prototype.pickCardDetail=function l(t,i){return this.rpcCall(l,u.bilibili.app.listener.v1.PickCardDetailReq,u.bilibili.app.listener.v1.PickCardDetailResp,t,i)},"name",{value:"PickCardDetail"}),Object.defineProperty(e.prototype.medialist=function l(t,i){return this.rpcCall(l,u.bilibili.app.listener.v1.MedialistReq,u.bilibili.app.listener.v1.MedialistResp,t,i)},"name",{value:"Medialist"}),Object.defineProperty(e.prototype.event=function l(t,i){return this.rpcCall(l,u.bilibili.app.listener.v1.EventReq,u.bilibili.app.listener.v1.EventResp,t,i)},"name",{value:"Event"}),e}(),c.PlayItem=function(){function e(l){if(this.subId=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.itemType=t.int32();break}case 3:{o.oid=t.int64();break}case 4:{if(o.subId&&o.subId.length||(o.subId=[]),(a&7)===2){let y=t.uint32()+t.pos;for(;t.pos>>0,t.oid.high>>>0).toNumber())),t.subId){if(!Array.isArray(t.subId))throw TypeError(".bilibili.app.listener.v1.PlayItem.subId: array expected");i.subId=[];for(let n=0;n>>0,t.subId[n].high>>>0).toNumber())}if(t.et!=null){if(typeof t.et!="object")throw TypeError(".bilibili.app.listener.v1.PlayItem.et: object expected");i.et=u.bilibili.app.listener.v1.EventTracking.fromObject(t.et)}return t.pos!=null&&(r.Long?(i.pos=r.Long.fromValue(t.pos)).unsigned=!1:typeof t.pos=="string"?i.pos=parseInt(t.pos,10):typeof t.pos=="number"?i.pos=t.pos:typeof t.pos=="object"&&(i.pos=new r.LongBits(t.pos.low>>>0,t.pos.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if((i.arrays||i.defaults)&&(n.subId=[]),i.defaults){if(n.itemType=0,r.Long){let o=new r.Long(0,0,!1);n.oid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.oid=i.longs===String?"0":0;if(n.et=null,r.Long){let o=new r.Long(0,0,!1);n.pos=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.pos=i.longs===String?"0":0}if(t.itemType!=null&&t.hasOwnProperty("itemType")&&(n.itemType=t.itemType),t.oid!=null&&t.hasOwnProperty("oid")&&(typeof t.oid=="number"?n.oid=i.longs===String?String(t.oid):t.oid:n.oid=i.longs===String?r.Long.prototype.toString.call(t.oid):i.longs===Number?new r.LongBits(t.oid.low>>>0,t.oid.high>>>0).toNumber():t.oid),t.subId&&t.subId.length){n.subId=[];for(let o=0;o>>0,t.subId[o].high>>>0).toNumber():t.subId[o]}return t.et!=null&&t.hasOwnProperty("et")&&(n.et=u.bilibili.app.listener.v1.EventTracking.toObject(t.et,i)),t.pos!=null&&t.hasOwnProperty("pos")&&(typeof t.pos=="number"?n.pos=i.longs===String?String(t.pos):t.pos:n.pos=i.longs===String?r.Long.prototype.toString.call(t.pos):i.longs===Number?new r.LongBits(t.pos.low>>>0,t.pos.high>>>0).toNumber():t.pos),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.listener.v1.PlayItem"},e}(),c.EventTracking=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.operator=t.string();break}case 2:{o.batch=t.string();break}case 3:{o.trackId=t.string();break}case 4:{o.entityType=t.string();break}case 5:{o.entityId=t.string();break}case 6:{o.trackJson=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.listener.v1.EventTracking)return t;let i=new u.bilibili.app.listener.v1.EventTracking;return t.operator!=null&&(i.operator=String(t.operator)),t.batch!=null&&(i.batch=String(t.batch)),t.trackId!=null&&(i.trackId=String(t.trackId)),t.entityType!=null&&(i.entityType=String(t.entityType)),t.entityId!=null&&(i.entityId=String(t.entityId)),t.trackJson!=null&&(i.trackJson=String(t.trackJson)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.operator="",n.batch="",n.trackId="",n.entityType="",n.entityId="",n.trackJson=""),t.operator!=null&&t.hasOwnProperty("operator")&&(n.operator=t.operator),t.batch!=null&&t.hasOwnProperty("batch")&&(n.batch=t.batch),t.trackId!=null&&t.hasOwnProperty("trackId")&&(n.trackId=t.trackId),t.entityType!=null&&t.hasOwnProperty("entityType")&&(n.entityType=t.entityType),t.entityId!=null&&t.hasOwnProperty("entityId")&&(n.entityId=t.entityId),t.trackJson!=null&&t.hasOwnProperty("trackJson")&&(n.trackJson=t.trackJson),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.listener.v1.EventTracking"},e}(),c.PlayURLReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.item=u.bilibili.app.listener.v1.PlayItem.decode(t,t.uint32());break}case 2:{o.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.listener.v1.PlayURLReq)return t;let i=new u.bilibili.app.listener.v1.PlayURLReq;if(t.item!=null){if(typeof t.item!="object")throw TypeError(".bilibili.app.listener.v1.PlayURLReq.item: object expected");i.item=u.bilibili.app.listener.v1.PlayItem.fromObject(t.item)}if(t.playerArgs!=null){if(typeof t.playerArgs!="object")throw TypeError(".bilibili.app.listener.v1.PlayURLReq.playerArgs: object expected");i.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.fromObject(t.playerArgs)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.item=null,n.playerArgs=null),t.item!=null&&t.hasOwnProperty("item")&&(n.item=u.bilibili.app.listener.v1.PlayItem.toObject(t.item,i)),t.playerArgs!=null&&t.hasOwnProperty("playerArgs")&&(n.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.toObject(t.playerArgs,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.listener.v1.PlayURLReq"},e}(),c.PlayURLResp=function(){function e(l){if(this.playerInfo={},l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.item=u.bilibili.app.listener.v1.PlayItem.decode(t,t.uint32());break}case 2:{o.playable=t.int32();break}case 3:{o.message=t.string();break}case 4:{o.playerInfo===r.emptyObject&&(o.playerInfo={});let v=t.uint32()+t.pos;for(a=0,y=null;t.pos>>3){case 1:a=t.int64();break;case 2:y=u.bilibili.app.listener.v1.PlayInfo.decode(t,t.uint32());break;default:t.skipType(g&7);break}}o.playerInfo[typeof a=="object"?r.longToHash(a):a]=y;break}default:t.skipType(s&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.listener.v1.PlayURLResp)return t;let i=new u.bilibili.app.listener.v1.PlayURLResp;if(t.item!=null){if(typeof t.item!="object")throw TypeError(".bilibili.app.listener.v1.PlayURLResp.item: object expected");i.item=u.bilibili.app.listener.v1.PlayItem.fromObject(t.item)}if(t.playable!=null&&(i.playable=t.playable|0),t.message!=null&&(i.message=String(t.message)),t.playerInfo){if(typeof t.playerInfo!="object")throw TypeError(".bilibili.app.listener.v1.PlayURLResp.playerInfo: object expected");i.playerInfo={};for(let n=Object.keys(t.playerInfo),o=0;o>>3){case 1:{a.qn=i.uint32();break}case 2:{a.format=i.string();break}case 3:{a.qnType=i.int32();break}case 4:{a.playUrl=u.bilibili.app.listener.v1.PlayURL.decode(i,i.uint32());break}case 5:{a.playDash=u.bilibili.app.listener.v1.PlayDASH.decode(i,i.uint32());break}case 6:{a.fnver=i.uint32();break}case 7:{a.fnval=i.uint32();break}case 8:{a.formats&&a.formats.length||(a.formats=[]),a.formats.push(u.bilibili.app.listener.v1.FormatDescription.decode(i,i.uint32()));break}case 9:{a.videoCodecid=i.uint32();break}case 10:{a.length=i.uint64();break}case 11:{a.code=i.uint32();break}case 12:{a.message=i.string();break}case 13:{a.expireTime=i.uint64();break}case 14:{a.volume=u.bilibili.app.playurl.v1.VolumeInfo.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},e.fromObject=function(i){if(i instanceof u.bilibili.app.listener.v1.PlayInfo)return i;let n=new u.bilibili.app.listener.v1.PlayInfo;if(i.qn!=null&&(n.qn=i.qn>>>0),i.format!=null&&(n.format=String(i.format)),i.qnType!=null&&(n.qnType=i.qnType|0),i.playUrl!=null){if(typeof i.playUrl!="object")throw TypeError(".bilibili.app.listener.v1.PlayInfo.playUrl: object expected");n.playUrl=u.bilibili.app.listener.v1.PlayURL.fromObject(i.playUrl)}if(i.playDash!=null){if(typeof i.playDash!="object")throw TypeError(".bilibili.app.listener.v1.PlayInfo.playDash: object expected");n.playDash=u.bilibili.app.listener.v1.PlayDASH.fromObject(i.playDash)}if(i.fnver!=null&&(n.fnver=i.fnver>>>0),i.fnval!=null&&(n.fnval=i.fnval>>>0),i.formats){if(!Array.isArray(i.formats))throw TypeError(".bilibili.app.listener.v1.PlayInfo.formats: array expected");n.formats=[];for(let o=0;o>>0),i.length!=null&&(r.Long?(n.length=r.Long.fromValue(i.length)).unsigned=!0:typeof i.length=="string"?n.length=parseInt(i.length,10):typeof i.length=="number"?n.length=i.length:typeof i.length=="object"&&(n.length=new r.LongBits(i.length.low>>>0,i.length.high>>>0).toNumber(!0))),i.code!=null&&(n.code=i.code>>>0),i.message!=null&&(n.message=String(i.message)),i.expireTime!=null&&(r.Long?(n.expireTime=r.Long.fromValue(i.expireTime)).unsigned=!0:typeof i.expireTime=="string"?n.expireTime=parseInt(i.expireTime,10):typeof i.expireTime=="number"?n.expireTime=i.expireTime:typeof i.expireTime=="object"&&(n.expireTime=new r.LongBits(i.expireTime.low>>>0,i.expireTime.high>>>0).toNumber(!0))),i.volume!=null){if(typeof i.volume!="object")throw TypeError(".bilibili.app.listener.v1.PlayInfo.volume: object expected");n.volume=u.bilibili.app.playurl.v1.VolumeInfo.fromObject(i.volume)}return n},e.toObject=function(i,n){n||(n={});let o={};if((n.arrays||n.defaults)&&(o.formats=[]),n.defaults){if(o.qn=0,o.format="",o.qnType=0,o.fnver=0,o.fnval=0,o.videoCodecid=0,r.Long){let a=new r.Long(0,0,!0);o.length=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.length=n.longs===String?"0":0;if(o.code=0,o.message="",r.Long){let a=new r.Long(0,0,!0);o.expireTime=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.expireTime=n.longs===String?"0":0;o.volume=null}if(i.qn!=null&&i.hasOwnProperty("qn")&&(o.qn=i.qn),i.format!=null&&i.hasOwnProperty("format")&&(o.format=i.format),i.qnType!=null&&i.hasOwnProperty("qnType")&&(o.qnType=i.qnType),i.playUrl!=null&&i.hasOwnProperty("playUrl")&&(o.playUrl=u.bilibili.app.listener.v1.PlayURL.toObject(i.playUrl,n),n.oneofs&&(o.info="playUrl")),i.playDash!=null&&i.hasOwnProperty("playDash")&&(o.playDash=u.bilibili.app.listener.v1.PlayDASH.toObject(i.playDash,n),n.oneofs&&(o.info="playDash")),i.fnver!=null&&i.hasOwnProperty("fnver")&&(o.fnver=i.fnver),i.fnval!=null&&i.hasOwnProperty("fnval")&&(o.fnval=i.fnval),i.formats&&i.formats.length){o.formats=[];for(let a=0;a>>0,i.length.high>>>0).toNumber(!0):i.length),i.code!=null&&i.hasOwnProperty("code")&&(o.code=i.code),i.message!=null&&i.hasOwnProperty("message")&&(o.message=i.message),i.expireTime!=null&&i.hasOwnProperty("expireTime")&&(typeof i.expireTime=="number"?o.expireTime=n.longs===String?String(i.expireTime):i.expireTime:o.expireTime=n.longs===String?r.Long.prototype.toString.call(i.expireTime):n.longs===Number?new r.LongBits(i.expireTime.low>>>0,i.expireTime.high>>>0).toNumber(!0):i.expireTime),i.volume!=null&&i.hasOwnProperty("volume")&&(o.volume=u.bilibili.app.playurl.v1.VolumeInfo.toObject(i.volume,n)),o},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.app.listener.v1.PlayInfo"},e}(),c.PlayURL=function(){function e(l){if(this.durl=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.durl&&o.durl.length||(o.durl=[]),o.durl.push(u.bilibili.app.listener.v1.ResponseUrl.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.listener.v1.PlayURL)return t;let i=new u.bilibili.app.listener.v1.PlayURL;if(t.durl){if(!Array.isArray(t.durl))throw TypeError(".bilibili.app.listener.v1.PlayURL.durl: array expected");i.durl=[];for(let n=0;n>>3){case 1:{o.order=t.uint32();break}case 2:{o.length=t.uint64();break}case 3:{o.size=t.uint64();break}case 4:{o.ahead=t.string();break}case 5:{o.vhead=t.string();break}case 6:{o.url=t.string();break}case 7:{o.backupUrl&&o.backupUrl.length||(o.backupUrl=[]),o.backupUrl.push(t.string());break}case 8:{o.md5=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.listener.v1.ResponseUrl)return t;let i=new u.bilibili.app.listener.v1.ResponseUrl;if(t.order!=null&&(i.order=t.order>>>0),t.length!=null&&(r.Long?(i.length=r.Long.fromValue(t.length)).unsigned=!0:typeof t.length=="string"?i.length=parseInt(t.length,10):typeof t.length=="number"?i.length=t.length:typeof t.length=="object"&&(i.length=new r.LongBits(t.length.low>>>0,t.length.high>>>0).toNumber(!0))),t.size!=null&&(r.Long?(i.size=r.Long.fromValue(t.size)).unsigned=!0:typeof t.size=="string"?i.size=parseInt(t.size,10):typeof t.size=="number"?i.size=t.size:typeof t.size=="object"&&(i.size=new r.LongBits(t.size.low>>>0,t.size.high>>>0).toNumber(!0))),t.ahead!=null&&(i.ahead=String(t.ahead)),t.vhead!=null&&(i.vhead=String(t.vhead)),t.url!=null&&(i.url=String(t.url)),t.backupUrl){if(!Array.isArray(t.backupUrl))throw TypeError(".bilibili.app.listener.v1.ResponseUrl.backupUrl: array expected");i.backupUrl=[];for(let n=0;n>>0,t.length.high>>>0).toNumber(!0):t.length),t.size!=null&&t.hasOwnProperty("size")&&(typeof t.size=="number"?n.size=i.longs===String?String(t.size):t.size:n.size=i.longs===String?r.Long.prototype.toString.call(t.size):i.longs===Number?new r.LongBits(t.size.low>>>0,t.size.high>>>0).toNumber(!0):t.size),t.ahead!=null&&t.hasOwnProperty("ahead")&&(n.ahead=t.ahead),t.vhead!=null&&t.hasOwnProperty("vhead")&&(n.vhead=t.vhead),t.url!=null&&t.hasOwnProperty("url")&&(n.url=t.url),t.backupUrl&&t.backupUrl.length){n.backupUrl=[];for(let o=0;o>>3){case 1:{o.duration=t.uint32();break}case 2:{o.minBufferTime=t.float();break}case 3:{o.audio&&o.audio.length||(o.audio=[]),o.audio.push(u.bilibili.app.listener.v1.DashItem.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.listener.v1.PlayDASH)return t;let i=new u.bilibili.app.listener.v1.PlayDASH;if(t.duration!=null&&(i.duration=t.duration>>>0),t.minBufferTime!=null&&(i.minBufferTime=Number(t.minBufferTime)),t.audio){if(!Array.isArray(t.audio))throw TypeError(".bilibili.app.listener.v1.PlayDASH.audio: array expected");i.audio=[];for(let n=0;n>>3){case 1:{o.quality=t.uint32();break}case 2:{o.format=t.string();break}case 3:{o.description=t.string();break}case 4:{o.displayDesc=t.string();break}case 5:{o.superscript=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.listener.v1.FormatDescription)return t;let i=new u.bilibili.app.listener.v1.FormatDescription;return t.quality!=null&&(i.quality=t.quality>>>0),t.format!=null&&(i.format=String(t.format)),t.description!=null&&(i.description=String(t.description)),t.displayDesc!=null&&(i.displayDesc=String(t.displayDesc)),t.superscript!=null&&(i.superscript=String(t.superscript)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.quality=0,n.format="",n.description="",n.displayDesc="",n.superscript=""),t.quality!=null&&t.hasOwnProperty("quality")&&(n.quality=t.quality),t.format!=null&&t.hasOwnProperty("format")&&(n.format=t.format),t.description!=null&&t.hasOwnProperty("description")&&(n.description=t.description),t.displayDesc!=null&&t.hasOwnProperty("displayDesc")&&(n.displayDesc=t.displayDesc),t.superscript!=null&&t.hasOwnProperty("superscript")&&(n.superscript=t.superscript),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.listener.v1.FormatDescription"},e}(),c.DashSegmentBase=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.initialization=t.string();break}case 2:{o.indexRange=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.listener.v1.DashSegmentBase)return t;let i=new u.bilibili.app.listener.v1.DashSegmentBase;return t.initialization!=null&&(i.initialization=String(t.initialization)),t.indexRange!=null&&(i.indexRange=String(t.indexRange)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.initialization="",n.indexRange=""),t.initialization!=null&&t.hasOwnProperty("initialization")&&(n.initialization=t.initialization),t.indexRange!=null&&t.hasOwnProperty("indexRange")&&(n.indexRange=t.indexRange),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.listener.v1.DashSegmentBase"},e}(),c.DashItem=function(){function e(l){if(this.backupUrl=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.id=t.uint32();break}case 2:{o.baseUrl=t.string();break}case 3:{o.backupUrl&&o.backupUrl.length||(o.backupUrl=[]),o.backupUrl.push(t.string());break}case 4:{o.bandwidth=t.uint32();break}case 5:{o.mimeType=t.string();break}case 6:{o.codecs=t.string();break}case 12:{o.segmentBase=u.bilibili.app.listener.v1.DashSegmentBase.decode(t,t.uint32());break}case 13:{o.codecid=t.uint32();break}case 14:{o.md5=t.string();break}case 15:{o.size=t.uint64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.listener.v1.DashItem)return t;let i=new u.bilibili.app.listener.v1.DashItem;if(t.id!=null&&(i.id=t.id>>>0),t.baseUrl!=null&&(i.baseUrl=String(t.baseUrl)),t.backupUrl){if(!Array.isArray(t.backupUrl))throw TypeError(".bilibili.app.listener.v1.DashItem.backupUrl: array expected");i.backupUrl=[];for(let n=0;n>>0),t.mimeType!=null&&(i.mimeType=String(t.mimeType)),t.codecs!=null&&(i.codecs=String(t.codecs)),t.segmentBase!=null){if(typeof t.segmentBase!="object")throw TypeError(".bilibili.app.listener.v1.DashItem.segmentBase: object expected");i.segmentBase=u.bilibili.app.listener.v1.DashSegmentBase.fromObject(t.segmentBase)}return t.codecid!=null&&(i.codecid=t.codecid>>>0),t.md5!=null&&(i.md5=String(t.md5)),t.size!=null&&(r.Long?(i.size=r.Long.fromValue(t.size)).unsigned=!0:typeof t.size=="string"?i.size=parseInt(t.size,10):typeof t.size=="number"?i.size=t.size:typeof t.size=="object"&&(i.size=new r.LongBits(t.size.low>>>0,t.size.high>>>0).toNumber(!0))),i},e.toObject=function(t,i){i||(i={});let n={};if((i.arrays||i.defaults)&&(n.backupUrl=[]),i.defaults)if(n.id=0,n.baseUrl="",n.bandwidth=0,n.mimeType="",n.codecs="",n.segmentBase=null,n.codecid=0,n.md5="",r.Long){let o=new r.Long(0,0,!0);n.size=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.size=i.longs===String?"0":0;if(t.id!=null&&t.hasOwnProperty("id")&&(n.id=t.id),t.baseUrl!=null&&t.hasOwnProperty("baseUrl")&&(n.baseUrl=t.baseUrl),t.backupUrl&&t.backupUrl.length){n.backupUrl=[];for(let o=0;o>>0,t.size.high>>>0).toNumber(!0):t.size),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.listener.v1.DashItem"},e}(),c.BKArcDetailsReq=function(){function e(l){if(this.items=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.items&&o.items.length||(o.items=[]),o.items.push(u.bilibili.app.listener.v1.PlayItem.decode(t,t.uint32()));break}case 2:{o.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.listener.v1.BKArcDetailsReq)return t;let i=new u.bilibili.app.listener.v1.BKArcDetailsReq;if(t.items){if(!Array.isArray(t.items))throw TypeError(".bilibili.app.listener.v1.BKArcDetailsReq.items: array expected");i.items=[];for(let n=0;n>>3){case 1:{o.list&&o.list.length||(o.list=[]),o.list.push(u.bilibili.app.listener.v1.DetailItem.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.listener.v1.BKArcDetailsResp)return t;let i=new u.bilibili.app.listener.v1.BKArcDetailsResp;if(t.list){if(!Array.isArray(t.list))throw TypeError(".bilibili.app.listener.v1.BKArcDetailsResp.list: array expected");i.list=[];for(let n=0;n>>3){case 1:{o.oid=t.int64();break}case 2:{o.title=t.string();break}case 3:{o.cover=t.string();break}case 4:{o.desc=t.string();break}case 5:{o.duration=t.int64();break}case 6:{o.rid=t.int32();break}case 7:{o.rname=t.string();break}case 8:{o.publish=t.int64();break}case 9:{o.displayedOid=t.string();break}case 10:{o.copyright=t.int32();break}case 11:{o.rights=u.bilibili.app.listener.v1.BKArcRights.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.listener.v1.BKArchive)return t;let i=new u.bilibili.app.listener.v1.BKArchive;if(t.oid!=null&&(r.Long?(i.oid=r.Long.fromValue(t.oid)).unsigned=!1:typeof t.oid=="string"?i.oid=parseInt(t.oid,10):typeof t.oid=="number"?i.oid=t.oid:typeof t.oid=="object"&&(i.oid=new r.LongBits(t.oid.low>>>0,t.oid.high>>>0).toNumber())),t.title!=null&&(i.title=String(t.title)),t.cover!=null&&(i.cover=String(t.cover)),t.desc!=null&&(i.desc=String(t.desc)),t.duration!=null&&(r.Long?(i.duration=r.Long.fromValue(t.duration)).unsigned=!1:typeof t.duration=="string"?i.duration=parseInt(t.duration,10):typeof t.duration=="number"?i.duration=t.duration:typeof t.duration=="object"&&(i.duration=new r.LongBits(t.duration.low>>>0,t.duration.high>>>0).toNumber())),t.rid!=null&&(i.rid=t.rid|0),t.rname!=null&&(i.rname=String(t.rname)),t.publish!=null&&(r.Long?(i.publish=r.Long.fromValue(t.publish)).unsigned=!1:typeof t.publish=="string"?i.publish=parseInt(t.publish,10):typeof t.publish=="number"?i.publish=t.publish:typeof t.publish=="object"&&(i.publish=new r.LongBits(t.publish.low>>>0,t.publish.high>>>0).toNumber())),t.displayedOid!=null&&(i.displayedOid=String(t.displayedOid)),t.copyright!=null&&(i.copyright=t.copyright|0),t.rights!=null){if(typeof t.rights!="object")throw TypeError(".bilibili.app.listener.v1.BKArchive.rights: object expected");i.rights=u.bilibili.app.listener.v1.BKArcRights.fromObject(t.rights)}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.oid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.oid=i.longs===String?"0":0;if(n.title="",n.cover="",n.desc="",r.Long){let o=new r.Long(0,0,!1);n.duration=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.duration=i.longs===String?"0":0;if(n.rid=0,n.rname="",r.Long){let o=new r.Long(0,0,!1);n.publish=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.publish=i.longs===String?"0":0;n.displayedOid="",n.copyright=0,n.rights=null}return t.oid!=null&&t.hasOwnProperty("oid")&&(typeof t.oid=="number"?n.oid=i.longs===String?String(t.oid):t.oid:n.oid=i.longs===String?r.Long.prototype.toString.call(t.oid):i.longs===Number?new r.LongBits(t.oid.low>>>0,t.oid.high>>>0).toNumber():t.oid),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.cover!=null&&t.hasOwnProperty("cover")&&(n.cover=t.cover),t.desc!=null&&t.hasOwnProperty("desc")&&(n.desc=t.desc),t.duration!=null&&t.hasOwnProperty("duration")&&(typeof t.duration=="number"?n.duration=i.longs===String?String(t.duration):t.duration:n.duration=i.longs===String?r.Long.prototype.toString.call(t.duration):i.longs===Number?new r.LongBits(t.duration.low>>>0,t.duration.high>>>0).toNumber():t.duration),t.rid!=null&&t.hasOwnProperty("rid")&&(n.rid=t.rid),t.rname!=null&&t.hasOwnProperty("rname")&&(n.rname=t.rname),t.publish!=null&&t.hasOwnProperty("publish")&&(typeof t.publish=="number"?n.publish=i.longs===String?String(t.publish):t.publish:n.publish=i.longs===String?r.Long.prototype.toString.call(t.publish):i.longs===Number?new r.LongBits(t.publish.low>>>0,t.publish.high>>>0).toNumber():t.publish),t.displayedOid!=null&&t.hasOwnProperty("displayedOid")&&(n.displayedOid=t.displayedOid),t.copyright!=null&&t.hasOwnProperty("copyright")&&(n.copyright=t.copyright),t.rights!=null&&t.hasOwnProperty("rights")&&(n.rights=u.bilibili.app.listener.v1.BKArcRights.toObject(t.rights,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.listener.v1.BKArchive"},e}(),c.BKArcRights=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.noReprint=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.listener.v1.BKArcRights)return t;let i=new u.bilibili.app.listener.v1.BKArcRights;return t.noReprint!=null&&(i.noReprint=t.noReprint|0),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.noReprint=0),t.noReprint!=null&&t.hasOwnProperty("noReprint")&&(n.noReprint=t.noReprint),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.listener.v1.BKArcRights"},e}(),c.BKArcPart=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.oid=t.int64();break}case 2:{o.subId=t.int64();break}case 3:{o.title=t.string();break}case 4:{o.duration=t.int64();break}case 5:{o.page=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.listener.v1.BKArcPart)return t;let i=new u.bilibili.app.listener.v1.BKArcPart;return t.oid!=null&&(r.Long?(i.oid=r.Long.fromValue(t.oid)).unsigned=!1:typeof t.oid=="string"?i.oid=parseInt(t.oid,10):typeof t.oid=="number"?i.oid=t.oid:typeof t.oid=="object"&&(i.oid=new r.LongBits(t.oid.low>>>0,t.oid.high>>>0).toNumber())),t.subId!=null&&(r.Long?(i.subId=r.Long.fromValue(t.subId)).unsigned=!1:typeof t.subId=="string"?i.subId=parseInt(t.subId,10):typeof t.subId=="number"?i.subId=t.subId:typeof t.subId=="object"&&(i.subId=new r.LongBits(t.subId.low>>>0,t.subId.high>>>0).toNumber())),t.title!=null&&(i.title=String(t.title)),t.duration!=null&&(r.Long?(i.duration=r.Long.fromValue(t.duration)).unsigned=!1:typeof t.duration=="string"?i.duration=parseInt(t.duration,10):typeof t.duration=="number"?i.duration=t.duration:typeof t.duration=="object"&&(i.duration=new r.LongBits(t.duration.low>>>0,t.duration.high>>>0).toNumber())),t.page!=null&&(i.page=t.page|0),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.oid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.oid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.subId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.subId=i.longs===String?"0":0;if(n.title="",r.Long){let o=new r.Long(0,0,!1);n.duration=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.duration=i.longs===String?"0":0;n.page=0}return t.oid!=null&&t.hasOwnProperty("oid")&&(typeof t.oid=="number"?n.oid=i.longs===String?String(t.oid):t.oid:n.oid=i.longs===String?r.Long.prototype.toString.call(t.oid):i.longs===Number?new r.LongBits(t.oid.low>>>0,t.oid.high>>>0).toNumber():t.oid),t.subId!=null&&t.hasOwnProperty("subId")&&(typeof t.subId=="number"?n.subId=i.longs===String?String(t.subId):t.subId:n.subId=i.longs===String?r.Long.prototype.toString.call(t.subId):i.longs===Number?new r.LongBits(t.subId.low>>>0,t.subId.high>>>0).toNumber():t.subId),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.duration!=null&&t.hasOwnProperty("duration")&&(typeof t.duration=="number"?n.duration=i.longs===String?String(t.duration):t.duration:n.duration=i.longs===String?r.Long.prototype.toString.call(t.duration):i.longs===Number?new r.LongBits(t.duration.low>>>0,t.duration.high>>>0).toNumber():t.duration),t.page!=null&&t.hasOwnProperty("page")&&(n.page=t.page),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.listener.v1.BKArcPart"},e}(),c.DetailItem=function(){function e(l){if(this.parts=[],this.playerInfo={},l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.item=u.bilibili.app.listener.v1.PlayItem.decode(t,t.uint32());break}case 2:{o.arc=u.bilibili.app.listener.v1.BKArchive.decode(t,t.uint32());break}case 3:{o.parts&&o.parts.length||(o.parts=[]),o.parts.push(u.bilibili.app.listener.v1.BKArcPart.decode(t,t.uint32()));break}case 4:{o.owner=u.bilibili.app.listener.v1.Author.decode(t,t.uint32());break}case 5:{o.stat=u.bilibili.app.listener.v1.BKStat.decode(t,t.uint32());break}case 6:{o.lastPart=t.int64();break}case 7:{o.progress=t.int64();break}case 8:{o.playable=t.int32();break}case 9:{o.message=t.string();break}case 10:{o.playerInfo===r.emptyObject&&(o.playerInfo={});let v=t.uint32()+t.pos;for(a=0,y=null;t.pos>>3){case 1:a=t.int64();break;case 2:y=u.bilibili.app.listener.v1.PlayInfo.decode(t,t.uint32());break;default:t.skipType(g&7);break}}o.playerInfo[typeof a=="object"?r.longToHash(a):a]=y;break}case 11:{o.associatedItem=u.bilibili.app.listener.v1.PlayItem.decode(t,t.uint32());break}case 12:{o.lastPlayTime=t.int64();break}case 13:{o.historyTag=t.string();break}case 14:{o.deviceType=u.bilibili.app.interface_.v1.DeviceType.decode(t,t.uint32());break}case 15:{o.ugcSeasonInfo=u.bilibili.app.listener.v1.FavFolder.decode(t,t.uint32());break}default:t.skipType(s&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.listener.v1.DetailItem)return t;let i=new u.bilibili.app.listener.v1.DetailItem;if(t.item!=null){if(typeof t.item!="object")throw TypeError(".bilibili.app.listener.v1.DetailItem.item: object expected");i.item=u.bilibili.app.listener.v1.PlayItem.fromObject(t.item)}if(t.arc!=null){if(typeof t.arc!="object")throw TypeError(".bilibili.app.listener.v1.DetailItem.arc: object expected");i.arc=u.bilibili.app.listener.v1.BKArchive.fromObject(t.arc)}if(t.parts){if(!Array.isArray(t.parts))throw TypeError(".bilibili.app.listener.v1.DetailItem.parts: array expected");i.parts=[];for(let n=0;n>>0,t.lastPart.high>>>0).toNumber())),t.progress!=null&&(r.Long?(i.progress=r.Long.fromValue(t.progress)).unsigned=!1:typeof t.progress=="string"?i.progress=parseInt(t.progress,10):typeof t.progress=="number"?i.progress=t.progress:typeof t.progress=="object"&&(i.progress=new r.LongBits(t.progress.low>>>0,t.progress.high>>>0).toNumber())),t.playable!=null&&(i.playable=t.playable|0),t.message!=null&&(i.message=String(t.message)),t.playerInfo){if(typeof t.playerInfo!="object")throw TypeError(".bilibili.app.listener.v1.DetailItem.playerInfo: object expected");i.playerInfo={};for(let n=Object.keys(t.playerInfo),o=0;o>>0,t.lastPlayTime.high>>>0).toNumber())),t.historyTag!=null&&(i.historyTag=String(t.historyTag)),t.deviceType!=null){if(typeof t.deviceType!="object")throw TypeError(".bilibili.app.listener.v1.DetailItem.deviceType: object expected");i.deviceType=u.bilibili.app.interface_.v1.DeviceType.fromObject(t.deviceType)}if(t.ugcSeasonInfo!=null){if(typeof t.ugcSeasonInfo!="object")throw TypeError(".bilibili.app.listener.v1.DetailItem.ugcSeasonInfo: object expected");i.ugcSeasonInfo=u.bilibili.app.listener.v1.FavFolder.fromObject(t.ugcSeasonInfo)}return i},e.toObject=function(t,i){i||(i={});let n={};if((i.arrays||i.defaults)&&(n.parts=[]),(i.objects||i.defaults)&&(n.playerInfo={}),i.defaults){if(n.item=null,n.arc=null,n.owner=null,n.stat=null,r.Long){let a=new r.Long(0,0,!1);n.lastPart=i.longs===String?a.toString():i.longs===Number?a.toNumber():a}else n.lastPart=i.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);n.progress=i.longs===String?a.toString():i.longs===Number?a.toNumber():a}else n.progress=i.longs===String?"0":0;if(n.playable=0,n.message="",n.associatedItem=null,r.Long){let a=new r.Long(0,0,!1);n.lastPlayTime=i.longs===String?a.toString():i.longs===Number?a.toNumber():a}else n.lastPlayTime=i.longs===String?"0":0;n.historyTag="",n.deviceType=null,n.ugcSeasonInfo=null}if(t.item!=null&&t.hasOwnProperty("item")&&(n.item=u.bilibili.app.listener.v1.PlayItem.toObject(t.item,i)),t.arc!=null&&t.hasOwnProperty("arc")&&(n.arc=u.bilibili.app.listener.v1.BKArchive.toObject(t.arc,i)),t.parts&&t.parts.length){n.parts=[];for(let a=0;a>>0,t.lastPart.high>>>0).toNumber():t.lastPart),t.progress!=null&&t.hasOwnProperty("progress")&&(typeof t.progress=="number"?n.progress=i.longs===String?String(t.progress):t.progress:n.progress=i.longs===String?r.Long.prototype.toString.call(t.progress):i.longs===Number?new r.LongBits(t.progress.low>>>0,t.progress.high>>>0).toNumber():t.progress),t.playable!=null&&t.hasOwnProperty("playable")&&(n.playable=t.playable),t.message!=null&&t.hasOwnProperty("message")&&(n.message=t.message);let o;if(t.playerInfo&&(o=Object.keys(t.playerInfo)).length){n.playerInfo={};for(let a=0;a>>0,t.lastPlayTime.high>>>0).toNumber():t.lastPlayTime),t.historyTag!=null&&t.hasOwnProperty("historyTag")&&(n.historyTag=t.historyTag),t.deviceType!=null&&t.hasOwnProperty("deviceType")&&(n.deviceType=u.bilibili.app.interface_.v1.DeviceType.toObject(t.deviceType,i)),t.ugcSeasonInfo!=null&&t.hasOwnProperty("ugcSeasonInfo")&&(n.ugcSeasonInfo=u.bilibili.app.listener.v1.FavFolder.toObject(t.ugcSeasonInfo,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.listener.v1.DetailItem"},e}(),c.Author=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.mid=t.int64();break}case 2:{o.name=t.string();break}case 3:{o.avatar=t.string();break}case 4:{o.relation=u.bilibili.app.listener.v1.FollowRelation.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.listener.v1.Author)return t;let i=new u.bilibili.app.listener.v1.Author;if(t.mid!=null&&(r.Long?(i.mid=r.Long.fromValue(t.mid)).unsigned=!1:typeof t.mid=="string"?i.mid=parseInt(t.mid,10):typeof t.mid=="number"?i.mid=t.mid:typeof t.mid=="object"&&(i.mid=new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber())),t.name!=null&&(i.name=String(t.name)),t.avatar!=null&&(i.avatar=String(t.avatar)),t.relation!=null){if(typeof t.relation!="object")throw TypeError(".bilibili.app.listener.v1.Author.relation: object expected");i.relation=u.bilibili.app.listener.v1.FollowRelation.fromObject(t.relation)}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.mid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mid=i.longs===String?"0":0;n.name="",n.avatar="",n.relation=null}return t.mid!=null&&t.hasOwnProperty("mid")&&(typeof t.mid=="number"?n.mid=i.longs===String?String(t.mid):t.mid:n.mid=i.longs===String?r.Long.prototype.toString.call(t.mid):i.longs===Number?new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber():t.mid),t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),t.avatar!=null&&t.hasOwnProperty("avatar")&&(n.avatar=t.avatar),t.relation!=null&&t.hasOwnProperty("relation")&&(n.relation=u.bilibili.app.listener.v1.FollowRelation.toObject(t.relation,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.listener.v1.Author"},e}(),c.FollowRelation=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.status=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.listener.v1.FollowRelation)return t;let i=new u.bilibili.app.listener.v1.FollowRelation;switch(t.status){default:if(typeof t.status=="number"){i.status=t.status;break}break;case"UNSPECIFIED":case 0:i.status=0;break;case"NO_FOLLOW":case 1:i.status=1;break;case"FOLLOWING":case 2:i.status=2;break;case"FOLLOWED":case 3:i.status=3;break;case"MUTUAL_FOLLOWING":case 4:i.status=4;break;case"SPECIAL_FOLLOWING":case 5:i.status=5;break}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.status=i.enums===String?"UNSPECIFIED":0),t.status!=null&&t.hasOwnProperty("status")&&(n.status=i.enums===String?u.bilibili.app.listener.v1.FollowRelation.RelationStatus[t.status]===void 0?t.status:u.bilibili.app.listener.v1.FollowRelation.RelationStatus[t.status]:t.status),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.listener.v1.FollowRelation"},e.RelationStatus=function(){let l={},t=Object.create(l);return t[l[0]="UNSPECIFIED"]=0,t[l[1]="NO_FOLLOW"]=1,t[l[2]="FOLLOWING"]=2,t[l[3]="FOLLOWED"]=3,t[l[4]="MUTUAL_FOLLOWING"]=4,t[l[5]="SPECIAL_FOLLOWING"]=5,t}(),e}(),c.BKStat=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.like=t.int32();break}case 2:{o.coin=t.int32();break}case 3:{o.favourite=t.int32();break}case 4:{o.reply=t.int32();break}case 5:{o.share=t.int32();break}case 6:{o.view=t.int32();break}case 7:{o.hasLike=t.bool();break}case 8:{o.hasCoin=t.bool();break}case 9:{o.hasFav=t.bool();break}case 10:{o.useViewVt=t.bool();break}case 11:{o.viewVtText=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.listener.v1.BKStat)return t;let i=new u.bilibili.app.listener.v1.BKStat;return t.like!=null&&(i.like=t.like|0),t.coin!=null&&(i.coin=t.coin|0),t.favourite!=null&&(i.favourite=t.favourite|0),t.reply!=null&&(i.reply=t.reply|0),t.share!=null&&(i.share=t.share|0),t.view!=null&&(i.view=t.view|0),t.hasLike!=null&&(i.hasLike=!!t.hasLike),t.hasCoin!=null&&(i.hasCoin=!!t.hasCoin),t.hasFav!=null&&(i.hasFav=!!t.hasFav),t.useViewVt!=null&&(i.useViewVt=!!t.useViewVt),t.viewVtText!=null&&(i.viewVtText=String(t.viewVtText)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.like=0,n.coin=0,n.favourite=0,n.reply=0,n.share=0,n.view=0,n.hasLike=!1,n.hasCoin=!1,n.hasFav=!1,n.useViewVt=!1,n.viewVtText=""),t.like!=null&&t.hasOwnProperty("like")&&(n.like=t.like),t.coin!=null&&t.hasOwnProperty("coin")&&(n.coin=t.coin),t.favourite!=null&&t.hasOwnProperty("favourite")&&(n.favourite=t.favourite),t.reply!=null&&t.hasOwnProperty("reply")&&(n.reply=t.reply),t.share!=null&&t.hasOwnProperty("share")&&(n.share=t.share),t.view!=null&&t.hasOwnProperty("view")&&(n.view=t.view),t.hasLike!=null&&t.hasOwnProperty("hasLike")&&(n.hasLike=t.hasLike),t.hasCoin!=null&&t.hasOwnProperty("hasCoin")&&(n.hasCoin=t.hasCoin),t.hasFav!=null&&t.hasOwnProperty("hasFav")&&(n.hasFav=t.hasFav),t.useViewVt!=null&&t.hasOwnProperty("useViewVt")&&(n.useViewVt=t.useViewVt),t.viewVtText!=null&&t.hasOwnProperty("viewVtText")&&(n.viewVtText=t.viewVtText),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.listener.v1.BKStat"},e}(),c.PlaylistSource=function(){let e={},l=Object.create(e);return l[e[0]="DEFAULT"]=0,l[e[1]="MEM_SPACE"]=1,l[e[2]="AUDIO_COLLECTION"]=2,l[e[3]="AUDIO_CARD"]=3,l[e[4]="USER_FAVOURITE"]=4,l[e[5]="UP_ARCHIVE"]=5,l[e[6]="AUDIO_CACHE"]=6,l[e[7]="PICK_CARD"]=7,l[e[8]="MEDIA_LIST"]=8,l}(),c.ListOrder=function(){let e={},l=Object.create(e);return l[e[0]="NO_ORDER"]=0,l[e[1]="ORDER_NORMAL"]=1,l[e[2]="ORDER_REVERSE"]=2,l[e[3]="ORDER_RANDOM"]=3,l}(),c.ListSortField=function(){let e={},l=Object.create(e);return l[e[0]="NO_SORT"]=0,l[e[1]="SORT_CTIME"]=1,l[e[2]="SORT_VIEWCNT"]=2,l[e[3]="SORT_FAVCNT"]=3,l}(),c.SortOption=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.order=t.int32();break}case 2:{o.sortField=t.int32();break}case 3:{o.isSwitching=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.listener.v1.SortOption)return t;let i=new u.bilibili.app.listener.v1.SortOption;switch(t.order){default:if(typeof t.order=="number"){i.order=t.order;break}break;case"NO_ORDER":case 0:i.order=0;break;case"ORDER_NORMAL":case 1:i.order=1;break;case"ORDER_REVERSE":case 2:i.order=2;break;case"ORDER_RANDOM":case 3:i.order=3;break}switch(t.sortField){default:if(typeof t.sortField=="number"){i.sortField=t.sortField;break}break;case"NO_SORT":case 0:i.sortField=0;break;case"SORT_CTIME":case 1:i.sortField=1;break;case"SORT_VIEWCNT":case 2:i.sortField=2;break;case"SORT_FAVCNT":case 3:i.sortField=3;break}return t.isSwitching!=null&&(i.isSwitching=!!t.isSwitching),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.order=i.enums===String?"NO_ORDER":0,n.sortField=i.enums===String?"NO_SORT":0,n.isSwitching=!1),t.order!=null&&t.hasOwnProperty("order")&&(n.order=i.enums===String?u.bilibili.app.listener.v1.ListOrder[t.order]===void 0?t.order:u.bilibili.app.listener.v1.ListOrder[t.order]:t.order),t.sortField!=null&&t.hasOwnProperty("sortField")&&(n.sortField=i.enums===String?u.bilibili.app.listener.v1.ListSortField[t.sortField]===void 0?t.sortField:u.bilibili.app.listener.v1.ListSortField[t.sortField]:t.sortField),t.isSwitching!=null&&t.hasOwnProperty("isSwitching")&&(n.isSwitching=t.isSwitching),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.listener.v1.SortOption"},e}(),c.PlaylistReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.from=t.int32();break}case 2:{o.id=t.int64();break}case 3:{o.anchor=u.bilibili.app.listener.v1.PlayItem.decode(t,t.uint32());break}case 4:{o.pageOpt=u.bilibili.app.listener.v1.PageOption.decode(t,t.uint32());break}case 5:{o.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.decode(t,t.uint32());break}case 6:{o.extraId=t.int64();break}case 7:{o.sortOpt=u.bilibili.app.listener.v1.SortOption.decode(t,t.uint32());break}case 8:{o.pagination=u.bilibili.pagination.Pagination.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.listener.v1.PlaylistReq)return t;let i=new u.bilibili.app.listener.v1.PlaylistReq;switch(t.from){default:if(typeof t.from=="number"){i.from=t.from;break}break;case"DEFAULT":case 0:i.from=0;break;case"MEM_SPACE":case 1:i.from=1;break;case"AUDIO_COLLECTION":case 2:i.from=2;break;case"AUDIO_CARD":case 3:i.from=3;break;case"USER_FAVOURITE":case 4:i.from=4;break;case"UP_ARCHIVE":case 5:i.from=5;break;case"AUDIO_CACHE":case 6:i.from=6;break;case"PICK_CARD":case 7:i.from=7;break;case"MEDIA_LIST":case 8:i.from=8;break}if(t.id!=null&&(r.Long?(i.id=r.Long.fromValue(t.id)).unsigned=!1:typeof t.id=="string"?i.id=parseInt(t.id,10):typeof t.id=="number"?i.id=t.id:typeof t.id=="object"&&(i.id=new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber())),t.anchor!=null){if(typeof t.anchor!="object")throw TypeError(".bilibili.app.listener.v1.PlaylistReq.anchor: object expected");i.anchor=u.bilibili.app.listener.v1.PlayItem.fromObject(t.anchor)}if(t.pageOpt!=null){if(typeof t.pageOpt!="object")throw TypeError(".bilibili.app.listener.v1.PlaylistReq.pageOpt: object expected");i.pageOpt=u.bilibili.app.listener.v1.PageOption.fromObject(t.pageOpt)}if(t.playerArgs!=null){if(typeof t.playerArgs!="object")throw TypeError(".bilibili.app.listener.v1.PlaylistReq.playerArgs: object expected");i.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.fromObject(t.playerArgs)}if(t.extraId!=null&&(r.Long?(i.extraId=r.Long.fromValue(t.extraId)).unsigned=!1:typeof t.extraId=="string"?i.extraId=parseInt(t.extraId,10):typeof t.extraId=="number"?i.extraId=t.extraId:typeof t.extraId=="object"&&(i.extraId=new r.LongBits(t.extraId.low>>>0,t.extraId.high>>>0).toNumber())),t.sortOpt!=null){if(typeof t.sortOpt!="object")throw TypeError(".bilibili.app.listener.v1.PlaylistReq.sortOpt: object expected");i.sortOpt=u.bilibili.app.listener.v1.SortOption.fromObject(t.sortOpt)}if(t.pagination!=null){if(typeof t.pagination!="object")throw TypeError(".bilibili.app.listener.v1.PlaylistReq.pagination: object expected");i.pagination=u.bilibili.pagination.Pagination.fromObject(t.pagination)}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.from=i.enums===String?"DEFAULT":0,r.Long){let o=new r.Long(0,0,!1);n.id=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.id=i.longs===String?"0":0;if(n.anchor=null,n.pageOpt=null,n.playerArgs=null,r.Long){let o=new r.Long(0,0,!1);n.extraId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.extraId=i.longs===String?"0":0;n.sortOpt=null,n.pagination=null}return t.from!=null&&t.hasOwnProperty("from")&&(n.from=i.enums===String?u.bilibili.app.listener.v1.PlaylistSource[t.from]===void 0?t.from:u.bilibili.app.listener.v1.PlaylistSource[t.from]:t.from),t.id!=null&&t.hasOwnProperty("id")&&(typeof t.id=="number"?n.id=i.longs===String?String(t.id):t.id:n.id=i.longs===String?r.Long.prototype.toString.call(t.id):i.longs===Number?new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber():t.id),t.anchor!=null&&t.hasOwnProperty("anchor")&&(n.anchor=u.bilibili.app.listener.v1.PlayItem.toObject(t.anchor,i)),t.pageOpt!=null&&t.hasOwnProperty("pageOpt")&&(n.pageOpt=u.bilibili.app.listener.v1.PageOption.toObject(t.pageOpt,i)),t.playerArgs!=null&&t.hasOwnProperty("playerArgs")&&(n.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.toObject(t.playerArgs,i)),t.extraId!=null&&t.hasOwnProperty("extraId")&&(typeof t.extraId=="number"?n.extraId=i.longs===String?String(t.extraId):t.extraId:n.extraId=i.longs===String?r.Long.prototype.toString.call(t.extraId):i.longs===Number?new r.LongBits(t.extraId.low>>>0,t.extraId.high>>>0).toNumber():t.extraId),t.sortOpt!=null&&t.hasOwnProperty("sortOpt")&&(n.sortOpt=u.bilibili.app.listener.v1.SortOption.toObject(t.sortOpt,i)),t.pagination!=null&&t.hasOwnProperty("pagination")&&(n.pagination=u.bilibili.pagination.Pagination.toObject(t.pagination,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.listener.v1.PlaylistReq"},e}(),c.PageOption=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.pageSize=t.uint32();break}case 2:{o.direction=t.int32();break}case 3:{o.lastItem=u.bilibili.app.listener.v1.PlayItem.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.listener.v1.PageOption)return t;let i=new u.bilibili.app.listener.v1.PageOption;switch(t.pageSize!=null&&(i.pageSize=t.pageSize>>>0),t.direction){default:if(typeof t.direction=="number"){i.direction=t.direction;break}break;case"SCROLL_DOWN":case 0:i.direction=0;break;case"SCROLL_UP":case 1:i.direction=1;break}if(t.lastItem!=null){if(typeof t.lastItem!="object")throw TypeError(".bilibili.app.listener.v1.PageOption.lastItem: object expected");i.lastItem=u.bilibili.app.listener.v1.PlayItem.fromObject(t.lastItem)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.pageSize=0,n.direction=i.enums===String?"SCROLL_DOWN":0,n.lastItem=null),t.pageSize!=null&&t.hasOwnProperty("pageSize")&&(n.pageSize=t.pageSize),t.direction!=null&&t.hasOwnProperty("direction")&&(n.direction=i.enums===String?u.bilibili.app.listener.v1.PageOption.Direction[t.direction]===void 0?t.direction:u.bilibili.app.listener.v1.PageOption.Direction[t.direction]:t.direction),t.lastItem!=null&&t.hasOwnProperty("lastItem")&&(n.lastItem=u.bilibili.app.listener.v1.PlayItem.toObject(t.lastItem,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.listener.v1.PageOption"},e.Direction=function(){let l={},t=Object.create(l);return t[l[0]="SCROLL_DOWN"]=0,t[l[1]="SCROLL_UP"]=1,t}(),e}(),c.PlaylistResp=function(){function e(l){if(this.list=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.total=t.uint32();break}case 2:{o.reachStart=t.bool();break}case 3:{o.reachEnd=t.bool();break}case 4:{o.list&&o.list.length||(o.list=[]),o.list.push(u.bilibili.app.listener.v1.DetailItem.decode(t,t.uint32()));break}case 5:{o.lastPlay=u.bilibili.app.listener.v1.PlayItem.decode(t,t.uint32());break}case 6:{o.lastProgress=t.int64();break}case 7:{o.paginationReply=u.bilibili.pagination.PaginationReply.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.listener.v1.PlaylistResp)return t;let i=new u.bilibili.app.listener.v1.PlaylistResp;if(t.total!=null&&(i.total=t.total>>>0),t.reachStart!=null&&(i.reachStart=!!t.reachStart),t.reachEnd!=null&&(i.reachEnd=!!t.reachEnd),t.list){if(!Array.isArray(t.list))throw TypeError(".bilibili.app.listener.v1.PlaylistResp.list: array expected");i.list=[];for(let n=0;n>>0,t.lastProgress.high>>>0).toNumber())),t.paginationReply!=null){if(typeof t.paginationReply!="object")throw TypeError(".bilibili.app.listener.v1.PlaylistResp.paginationReply: object expected");i.paginationReply=u.bilibili.pagination.PaginationReply.fromObject(t.paginationReply)}return i},e.toObject=function(t,i){i||(i={});let n={};if((i.arrays||i.defaults)&&(n.list=[]),i.defaults){if(n.total=0,n.reachStart=!1,n.reachEnd=!1,n.lastPlay=null,r.Long){let o=new r.Long(0,0,!1);n.lastProgress=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.lastProgress=i.longs===String?"0":0;n.paginationReply=null}if(t.total!=null&&t.hasOwnProperty("total")&&(n.total=t.total),t.reachStart!=null&&t.hasOwnProperty("reachStart")&&(n.reachStart=t.reachStart),t.reachEnd!=null&&t.hasOwnProperty("reachEnd")&&(n.reachEnd=t.reachEnd),t.list&&t.list.length){n.list=[];for(let o=0;o>>0,t.lastProgress.high>>>0).toNumber():t.lastProgress),t.paginationReply!=null&&t.hasOwnProperty("paginationReply")&&(n.paginationReply=u.bilibili.pagination.PaginationReply.toObject(t.paginationReply,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.listener.v1.PlaylistResp"},e}(),c.PlaylistAddReq=function(){function e(t){if(this.items=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.items&&a.items.length||(a.items=[]),a.items.push(u.bilibili.app.listener.v1.PlayItem.decode(i,i.uint32()));break}case 2:{a.after=u.bilibili.app.listener.v1.PlayItem.decode(i,i.uint32());break}case 3:{a.head=i.bool();break}case 4:{a.tail=i.bool();break}default:i.skipType(y&7);break}}return a},e.fromObject=function(i){if(i instanceof u.bilibili.app.listener.v1.PlaylistAddReq)return i;let n=new u.bilibili.app.listener.v1.PlaylistAddReq;if(i.items){if(!Array.isArray(i.items))throw TypeError(".bilibili.app.listener.v1.PlaylistAddReq.items: array expected");n.items=[];for(let o=0;o>>3){case 1:{o.items&&o.items.length||(o.items=[]),o.items.push(u.bilibili.app.listener.v1.PlayItem.decode(t,t.uint32()));break}case 2:{o.truncate=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.listener.v1.PlaylistDelReq)return t;let i=new u.bilibili.app.listener.v1.PlaylistDelReq;if(t.items){if(!Array.isArray(t.items))throw TypeError(".bilibili.app.listener.v1.PlaylistDelReq.items: array expected");i.items=[];for(let n=0;n>>3){case 1:{o.pageOpt=u.bilibili.app.listener.v1.PageOption.decode(t,t.uint32());break}case 2:{o.localTodayZero=t.int64();break}case 3:{o.pagination=u.bilibili.pagination.Pagination.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.listener.v1.PlayHistoryReq)return t;let i=new u.bilibili.app.listener.v1.PlayHistoryReq;if(t.pageOpt!=null){if(typeof t.pageOpt!="object")throw TypeError(".bilibili.app.listener.v1.PlayHistoryReq.pageOpt: object expected");i.pageOpt=u.bilibili.app.listener.v1.PageOption.fromObject(t.pageOpt)}if(t.localTodayZero!=null&&(r.Long?(i.localTodayZero=r.Long.fromValue(t.localTodayZero)).unsigned=!1:typeof t.localTodayZero=="string"?i.localTodayZero=parseInt(t.localTodayZero,10):typeof t.localTodayZero=="number"?i.localTodayZero=t.localTodayZero:typeof t.localTodayZero=="object"&&(i.localTodayZero=new r.LongBits(t.localTodayZero.low>>>0,t.localTodayZero.high>>>0).toNumber())),t.pagination!=null){if(typeof t.pagination!="object")throw TypeError(".bilibili.app.listener.v1.PlayHistoryReq.pagination: object expected");i.pagination=u.bilibili.pagination.Pagination.fromObject(t.pagination)}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.pageOpt=null,r.Long){let o=new r.Long(0,0,!1);n.localTodayZero=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.localTodayZero=i.longs===String?"0":0;n.pagination=null}return t.pageOpt!=null&&t.hasOwnProperty("pageOpt")&&(n.pageOpt=u.bilibili.app.listener.v1.PageOption.toObject(t.pageOpt,i)),t.localTodayZero!=null&&t.hasOwnProperty("localTodayZero")&&(typeof t.localTodayZero=="number"?n.localTodayZero=i.longs===String?String(t.localTodayZero):t.localTodayZero:n.localTodayZero=i.longs===String?r.Long.prototype.toString.call(t.localTodayZero):i.longs===Number?new r.LongBits(t.localTodayZero.low>>>0,t.localTodayZero.high>>>0).toNumber():t.localTodayZero),t.pagination!=null&&t.hasOwnProperty("pagination")&&(n.pagination=u.bilibili.pagination.Pagination.toObject(t.pagination,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.listener.v1.PlayHistoryReq"},e}(),c.PlayHistoryResp=function(){function e(l){if(this.list=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.total=t.uint32();break}case 2:{o.reachEnd=t.bool();break}case 3:{o.list&&o.list.length||(o.list=[]),o.list.push(u.bilibili.app.listener.v1.DetailItem.decode(t,t.uint32()));break}case 4:{o.paginationReply=u.bilibili.pagination.PaginationReply.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.listener.v1.PlayHistoryResp)return t;let i=new u.bilibili.app.listener.v1.PlayHistoryResp;if(t.total!=null&&(i.total=t.total>>>0),t.reachEnd!=null&&(i.reachEnd=!!t.reachEnd),t.list){if(!Array.isArray(t.list))throw TypeError(".bilibili.app.listener.v1.PlayHistoryResp.list: array expected");i.list=[];for(let n=0;n>>3){case 1:{o.item=u.bilibili.app.listener.v1.PlayItem.decode(t,t.uint32());break}case 2:{o.progress=t.int64();break}case 3:{o.duration=t.int64();break}case 4:{o.playStyle=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.listener.v1.PlayHistoryAddReq)return t;let i=new u.bilibili.app.listener.v1.PlayHistoryAddReq;if(t.item!=null){if(typeof t.item!="object")throw TypeError(".bilibili.app.listener.v1.PlayHistoryAddReq.item: object expected");i.item=u.bilibili.app.listener.v1.PlayItem.fromObject(t.item)}return t.progress!=null&&(r.Long?(i.progress=r.Long.fromValue(t.progress)).unsigned=!1:typeof t.progress=="string"?i.progress=parseInt(t.progress,10):typeof t.progress=="number"?i.progress=t.progress:typeof t.progress=="object"&&(i.progress=new r.LongBits(t.progress.low>>>0,t.progress.high>>>0).toNumber())),t.duration!=null&&(r.Long?(i.duration=r.Long.fromValue(t.duration)).unsigned=!1:typeof t.duration=="string"?i.duration=parseInt(t.duration,10):typeof t.duration=="number"?i.duration=t.duration:typeof t.duration=="object"&&(i.duration=new r.LongBits(t.duration.low>>>0,t.duration.high>>>0).toNumber())),t.playStyle!=null&&(i.playStyle=t.playStyle|0),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.item=null,r.Long){let o=new r.Long(0,0,!1);n.progress=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.progress=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.duration=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.duration=i.longs===String?"0":0;n.playStyle=0}return t.item!=null&&t.hasOwnProperty("item")&&(n.item=u.bilibili.app.listener.v1.PlayItem.toObject(t.item,i)),t.progress!=null&&t.hasOwnProperty("progress")&&(typeof t.progress=="number"?n.progress=i.longs===String?String(t.progress):t.progress:n.progress=i.longs===String?r.Long.prototype.toString.call(t.progress):i.longs===Number?new r.LongBits(t.progress.low>>>0,t.progress.high>>>0).toNumber():t.progress),t.duration!=null&&t.hasOwnProperty("duration")&&(typeof t.duration=="number"?n.duration=i.longs===String?String(t.duration):t.duration:n.duration=i.longs===String?r.Long.prototype.toString.call(t.duration):i.longs===Number?new r.LongBits(t.duration.low>>>0,t.duration.high>>>0).toNumber():t.duration),t.playStyle!=null&&t.hasOwnProperty("playStyle")&&(n.playStyle=t.playStyle),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.listener.v1.PlayHistoryAddReq"},e}(),c.PlayHistoryDelReq=function(){function e(l){if(this.items=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.items&&o.items.length||(o.items=[]),o.items.push(u.bilibili.app.listener.v1.PlayItem.decode(t,t.uint32()));break}case 2:{o.truncate=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.listener.v1.PlayHistoryDelReq)return t;let i=new u.bilibili.app.listener.v1.PlayHistoryDelReq;if(t.items){if(!Array.isArray(t.items))throw TypeError(".bilibili.app.listener.v1.PlayHistoryDelReq.items: array expected");i.items=[];for(let n=0;n>>3){case 1:{o.item=u.bilibili.app.listener.v1.PlayItem.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.listener.v1.TripleLikeReq)return t;let i=new u.bilibili.app.listener.v1.TripleLikeReq;if(t.item!=null){if(typeof t.item!="object")throw TypeError(".bilibili.app.listener.v1.TripleLikeReq.item: object expected");i.item=u.bilibili.app.listener.v1.PlayItem.fromObject(t.item)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.item=null),t.item!=null&&t.hasOwnProperty("item")&&(n.item=u.bilibili.app.listener.v1.PlayItem.toObject(t.item,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.listener.v1.TripleLikeReq"},e}(),c.TripleLikeResp=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.message=t.string();break}case 2:{o.thumbOk=t.bool();break}case 3:{o.coinOk=t.bool();break}case 4:{o.favOk=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.listener.v1.TripleLikeResp)return t;let i=new u.bilibili.app.listener.v1.TripleLikeResp;return t.message!=null&&(i.message=String(t.message)),t.thumbOk!=null&&(i.thumbOk=!!t.thumbOk),t.coinOk!=null&&(i.coinOk=!!t.coinOk),t.favOk!=null&&(i.favOk=!!t.favOk),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.message="",n.thumbOk=!1,n.coinOk=!1,n.favOk=!1),t.message!=null&&t.hasOwnProperty("message")&&(n.message=t.message),t.thumbOk!=null&&t.hasOwnProperty("thumbOk")&&(n.thumbOk=t.thumbOk),t.coinOk!=null&&t.hasOwnProperty("coinOk")&&(n.coinOk=t.coinOk),t.favOk!=null&&t.hasOwnProperty("favOk")&&(n.favOk=t.favOk),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.listener.v1.TripleLikeResp"},e}(),c.ThumbUpReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.item=u.bilibili.app.listener.v1.PlayItem.decode(t,t.uint32());break}case 2:{o.action=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.listener.v1.ThumbUpReq)return t;let i=new u.bilibili.app.listener.v1.ThumbUpReq;if(t.item!=null){if(typeof t.item!="object")throw TypeError(".bilibili.app.listener.v1.ThumbUpReq.item: object expected");i.item=u.bilibili.app.listener.v1.PlayItem.fromObject(t.item)}switch(t.action){default:if(typeof t.action=="number"){i.action=t.action;break}break;case"LIKE":case 0:i.action=0;break;case"CANCEL_LIKE":case 1:i.action=1;break;case"DISLIKE":case 2:i.action=2;break;case"CANCEL_DISLIKE":case 3:i.action=3;break}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.item=null,n.action=i.enums===String?"LIKE":0),t.item!=null&&t.hasOwnProperty("item")&&(n.item=u.bilibili.app.listener.v1.PlayItem.toObject(t.item,i)),t.action!=null&&t.hasOwnProperty("action")&&(n.action=i.enums===String?u.bilibili.app.listener.v1.ThumbUpReq.ThumbType[t.action]===void 0?t.action:u.bilibili.app.listener.v1.ThumbUpReq.ThumbType[t.action]:t.action),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.listener.v1.ThumbUpReq"},e.ThumbType=function(){let l={},t=Object.create(l);return t[l[0]="LIKE"]=0,t[l[1]="CANCEL_LIKE"]=1,t[l[2]="DISLIKE"]=2,t[l[3]="CANCEL_DISLIKE"]=3,t}(),e}(),c.ThumbUpResp=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.message=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.listener.v1.ThumbUpResp)return t;let i=new u.bilibili.app.listener.v1.ThumbUpResp;return t.message!=null&&(i.message=String(t.message)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.message=""),t.message!=null&&t.hasOwnProperty("message")&&(n.message=t.message),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.listener.v1.ThumbUpResp"},e}(),c.CoinAddReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.item=u.bilibili.app.listener.v1.PlayItem.decode(t,t.uint32());break}case 2:{o.num=t.int32();break}case 3:{o.thumbUp=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.listener.v1.CoinAddReq)return t;let i=new u.bilibili.app.listener.v1.CoinAddReq;if(t.item!=null){if(typeof t.item!="object")throw TypeError(".bilibili.app.listener.v1.CoinAddReq.item: object expected");i.item=u.bilibili.app.listener.v1.PlayItem.fromObject(t.item)}return t.num!=null&&(i.num=t.num|0),t.thumbUp!=null&&(i.thumbUp=!!t.thumbUp),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.item=null,n.num=0,n.thumbUp=!1),t.item!=null&&t.hasOwnProperty("item")&&(n.item=u.bilibili.app.listener.v1.PlayItem.toObject(t.item,i)),t.num!=null&&t.hasOwnProperty("num")&&(n.num=t.num),t.thumbUp!=null&&t.hasOwnProperty("thumbUp")&&(n.thumbUp=t.thumbUp),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.listener.v1.CoinAddReq"},e}(),c.CoinAddResp=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.message=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.listener.v1.CoinAddResp)return t;let i=new u.bilibili.app.listener.v1.CoinAddResp;return t.message!=null&&(i.message=String(t.message)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.message=""),t.message!=null&&t.hasOwnProperty("message")&&(n.message=t.message),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.listener.v1.CoinAddResp"},e}(),c.PlayActionReportReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.item=u.bilibili.app.listener.v1.PlayItem.decode(t,t.uint32());break}case 2:{o.fromSpmid=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.listener.v1.PlayActionReportReq)return t;let i=new u.bilibili.app.listener.v1.PlayActionReportReq;if(t.item!=null){if(typeof t.item!="object")throw TypeError(".bilibili.app.listener.v1.PlayActionReportReq.item: object expected");i.item=u.bilibili.app.listener.v1.PlayItem.fromObject(t.item)}return t.fromSpmid!=null&&(i.fromSpmid=String(t.fromSpmid)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.item=null,n.fromSpmid=""),t.item!=null&&t.hasOwnProperty("item")&&(n.item=u.bilibili.app.listener.v1.PlayItem.toObject(t.item,i)),t.fromSpmid!=null&&t.hasOwnProperty("fromSpmid")&&(n.fromSpmid=t.fromSpmid),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.listener.v1.PlayActionReportReq"},e}(),c.RcmdPlaylistReq=function(){function e(l){if(this.annotations={},l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.from=t.int32();break}case 2:{o.id=t.int64();break}case 3:{o.needHistory=t.bool();break}case 4:{o.needTopCards=t.bool();break}case 5:{o.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.decode(t,t.uint32());break}case 6:{o.page=u.bilibili.pagination.Pagination.decode(t,t.uint32());break}case 7:{o.annotations===r.emptyObject&&(o.annotations={});let v=t.uint32()+t.pos;for(a="",y="";t.pos>>3){case 1:a=t.string();break;case 2:y=t.string();break;default:t.skipType(g&7);break}}o.annotations[a]=y;break}default:t.skipType(s&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.listener.v1.RcmdPlaylistReq)return t;let i=new u.bilibili.app.listener.v1.RcmdPlaylistReq;switch(t.from){default:if(typeof t.from=="number"){i.from=t.from;break}break;case"UNSPECIFIED":case 0:i.from=0;break;case"UP_ARCHIVE":case 1:i.from=1;break;case"INDEX_ENTRY":case 2:i.from=2;break;case"ARCHIVE_VIEW":case 3:i.from=3;break}if(t.id!=null&&(r.Long?(i.id=r.Long.fromValue(t.id)).unsigned=!1:typeof t.id=="string"?i.id=parseInt(t.id,10):typeof t.id=="number"?i.id=t.id:typeof t.id=="object"&&(i.id=new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber())),t.needHistory!=null&&(i.needHistory=!!t.needHistory),t.needTopCards!=null&&(i.needTopCards=!!t.needTopCards),t.playerArgs!=null){if(typeof t.playerArgs!="object")throw TypeError(".bilibili.app.listener.v1.RcmdPlaylistReq.playerArgs: object expected");i.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.fromObject(t.playerArgs)}if(t.page!=null){if(typeof t.page!="object")throw TypeError(".bilibili.app.listener.v1.RcmdPlaylistReq.page: object expected");i.page=u.bilibili.pagination.Pagination.fromObject(t.page)}if(t.annotations){if(typeof t.annotations!="object")throw TypeError(".bilibili.app.listener.v1.RcmdPlaylistReq.annotations: object expected");i.annotations={};for(let n=Object.keys(t.annotations),o=0;o>>0,t.id.high>>>0).toNumber():t.id),t.needHistory!=null&&t.hasOwnProperty("needHistory")&&(n.needHistory=t.needHistory),t.needTopCards!=null&&t.hasOwnProperty("needTopCards")&&(n.needTopCards=t.needTopCards),t.playerArgs!=null&&t.hasOwnProperty("playerArgs")&&(n.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.toObject(t.playerArgs,i)),t.page!=null&&t.hasOwnProperty("page")&&(n.page=u.bilibili.pagination.Pagination.toObject(t.page,i));let o;if(t.annotations&&(o=Object.keys(t.annotations)).length){n.annotations={};for(let a=0;a>>3){case 1:{o.rcmdFrom=t.int64();break}case 2:{o.id=t.int64();break}case 3:{o.page=t.int32();break}case 4:{o.sessionId=t.string();break}case 5:{o.fromTrackid=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.listener.v1.RcmdOffset)return t;let i=new u.bilibili.app.listener.v1.RcmdOffset;return t.rcmdFrom!=null&&(r.Long?(i.rcmdFrom=r.Long.fromValue(t.rcmdFrom)).unsigned=!1:typeof t.rcmdFrom=="string"?i.rcmdFrom=parseInt(t.rcmdFrom,10):typeof t.rcmdFrom=="number"?i.rcmdFrom=t.rcmdFrom:typeof t.rcmdFrom=="object"&&(i.rcmdFrom=new r.LongBits(t.rcmdFrom.low>>>0,t.rcmdFrom.high>>>0).toNumber())),t.id!=null&&(r.Long?(i.id=r.Long.fromValue(t.id)).unsigned=!1:typeof t.id=="string"?i.id=parseInt(t.id,10):typeof t.id=="number"?i.id=t.id:typeof t.id=="object"&&(i.id=new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber())),t.page!=null&&(i.page=t.page|0),t.sessionId!=null&&(i.sessionId=String(t.sessionId)),t.fromTrackid!=null&&(i.fromTrackid=String(t.fromTrackid)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.rcmdFrom=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.rcmdFrom=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.id=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.id=i.longs===String?"0":0;n.page=0,n.sessionId="",n.fromTrackid=""}return t.rcmdFrom!=null&&t.hasOwnProperty("rcmdFrom")&&(typeof t.rcmdFrom=="number"?n.rcmdFrom=i.longs===String?String(t.rcmdFrom):t.rcmdFrom:n.rcmdFrom=i.longs===String?r.Long.prototype.toString.call(t.rcmdFrom):i.longs===Number?new r.LongBits(t.rcmdFrom.low>>>0,t.rcmdFrom.high>>>0).toNumber():t.rcmdFrom),t.id!=null&&t.hasOwnProperty("id")&&(typeof t.id=="number"?n.id=i.longs===String?String(t.id):t.id:n.id=i.longs===String?r.Long.prototype.toString.call(t.id):i.longs===Number?new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber():t.id),t.page!=null&&t.hasOwnProperty("page")&&(n.page=t.page),t.sessionId!=null&&t.hasOwnProperty("sessionId")&&(n.sessionId=t.sessionId),t.fromTrackid!=null&&t.hasOwnProperty("fromTrackid")&&(n.fromTrackid=t.fromTrackid),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.listener.v1.RcmdOffset"},e}(),c.RcmdPlaylistResp=function(){function e(l){if(this.list=[],this.topCards=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.list&&o.list.length||(o.list=[]),o.list.push(u.bilibili.app.listener.v1.DetailItem.decode(t,t.uint32()));break}case 2:{o.historyLen=t.int64();break}case 3:{o.topCards&&o.topCards.length||(o.topCards=[]),o.topCards.push(u.bilibili.app.listener.v1.TopCard.decode(t,t.uint32()));break}case 4:{o.nextPage=u.bilibili.pagination.PaginationReply.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.listener.v1.RcmdPlaylistResp)return t;let i=new u.bilibili.app.listener.v1.RcmdPlaylistResp;if(t.list){if(!Array.isArray(t.list))throw TypeError(".bilibili.app.listener.v1.RcmdPlaylistResp.list: array expected");i.list=[];for(let n=0;n>>0,t.historyLen.high>>>0).toNumber())),t.topCards){if(!Array.isArray(t.topCards))throw TypeError(".bilibili.app.listener.v1.RcmdPlaylistResp.topCards: array expected");i.topCards=[];for(let n=0;n>>0,t.historyLen.high>>>0).toNumber():t.historyLen),t.topCards&&t.topCards.length){n.topCards=[];for(let o=0;o>>3){case 1:{a.title=i.string();break}case 2:{a.playStyle=i.int32();break}case 3:{a.cardType=i.int32();break}case 4:{a.listenHistory=u.bilibili.app.listener.v1.TpcdHistory.decode(i,i.uint32());break}case 5:{a.favFolder=u.bilibili.app.listener.v1.TpcdFavFolder.decode(i,i.uint32());break}case 6:{a.upRecall=u.bilibili.app.listener.v1.TpcdUpRecall.decode(i,i.uint32());break}case 7:{a.pickToday=u.bilibili.app.listener.v1.TpcdPickToday.decode(i,i.uint32());break}case 8:{a.pos=i.int64();break}case 9:{a.titleIcon=i.string();break}default:i.skipType(y&7);break}}return a},e.fromObject=function(i){if(i instanceof u.bilibili.app.listener.v1.TopCard)return i;let n=new u.bilibili.app.listener.v1.TopCard;switch(i.title!=null&&(n.title=String(i.title)),i.playStyle){default:if(typeof i.playStyle=="number"){n.playStyle=i.playStyle;break}break;case"NO_INTERRUPT":case 0:n.playStyle=0;break;case"PLAY_TARGET":case 1:n.playStyle=1;break;case"PLAY_FIRST":case 2:n.playStyle=2;break}switch(i.cardType){default:if(typeof i.cardType=="number"){n.cardType=i.cardType;break}break;case"UNSPECIFIED":case 0:n.cardType=0;break;case"LISTEN_HISTORY":case 1:n.cardType=1;break;case"FAVORITE_FOLDER":case 2:n.cardType=2;break;case"UP_RECALL":case 3:n.cardType=3;break;case"PICK_TODAY":case 4:n.cardType=4;break}if(i.listenHistory!=null){if(typeof i.listenHistory!="object")throw TypeError(".bilibili.app.listener.v1.TopCard.listenHistory: object expected");n.listenHistory=u.bilibili.app.listener.v1.TpcdHistory.fromObject(i.listenHistory)}if(i.favFolder!=null){if(typeof i.favFolder!="object")throw TypeError(".bilibili.app.listener.v1.TopCard.favFolder: object expected");n.favFolder=u.bilibili.app.listener.v1.TpcdFavFolder.fromObject(i.favFolder)}if(i.upRecall!=null){if(typeof i.upRecall!="object")throw TypeError(".bilibili.app.listener.v1.TopCard.upRecall: object expected");n.upRecall=u.bilibili.app.listener.v1.TpcdUpRecall.fromObject(i.upRecall)}if(i.pickToday!=null){if(typeof i.pickToday!="object")throw TypeError(".bilibili.app.listener.v1.TopCard.pickToday: object expected");n.pickToday=u.bilibili.app.listener.v1.TpcdPickToday.fromObject(i.pickToday)}return i.pos!=null&&(r.Long?(n.pos=r.Long.fromValue(i.pos)).unsigned=!1:typeof i.pos=="string"?n.pos=parseInt(i.pos,10):typeof i.pos=="number"?n.pos=i.pos:typeof i.pos=="object"&&(n.pos=new r.LongBits(i.pos.low>>>0,i.pos.high>>>0).toNumber())),i.titleIcon!=null&&(n.titleIcon=String(i.titleIcon)),n},e.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(o.title="",o.playStyle=n.enums===String?"NO_INTERRUPT":0,o.cardType=n.enums===String?"UNSPECIFIED":0,r.Long){let a=new r.Long(0,0,!1);o.pos=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.pos=n.longs===String?"0":0;o.titleIcon=""}return i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.playStyle!=null&&i.hasOwnProperty("playStyle")&&(o.playStyle=n.enums===String?u.bilibili.app.listener.v1.TopCard.PlayStrategy[i.playStyle]===void 0?i.playStyle:u.bilibili.app.listener.v1.TopCard.PlayStrategy[i.playStyle]:i.playStyle),i.cardType!=null&&i.hasOwnProperty("cardType")&&(o.cardType=n.enums===String?u.bilibili.app.listener.v1.TopCardType[i.cardType]===void 0?i.cardType:u.bilibili.app.listener.v1.TopCardType[i.cardType]:i.cardType),i.listenHistory!=null&&i.hasOwnProperty("listenHistory")&&(o.listenHistory=u.bilibili.app.listener.v1.TpcdHistory.toObject(i.listenHistory,n),n.oneofs&&(o.card="listenHistory")),i.favFolder!=null&&i.hasOwnProperty("favFolder")&&(o.favFolder=u.bilibili.app.listener.v1.TpcdFavFolder.toObject(i.favFolder,n),n.oneofs&&(o.card="favFolder")),i.upRecall!=null&&i.hasOwnProperty("upRecall")&&(o.upRecall=u.bilibili.app.listener.v1.TpcdUpRecall.toObject(i.upRecall,n),n.oneofs&&(o.card="upRecall")),i.pickToday!=null&&i.hasOwnProperty("pickToday")&&(o.pickToday=u.bilibili.app.listener.v1.TpcdPickToday.toObject(i.pickToday,n),n.oneofs&&(o.card="pickToday")),i.pos!=null&&i.hasOwnProperty("pos")&&(typeof i.pos=="number"?o.pos=n.longs===String?String(i.pos):i.pos:o.pos=n.longs===String?r.Long.prototype.toString.call(i.pos):n.longs===Number?new r.LongBits(i.pos.low>>>0,i.pos.high>>>0).toNumber():i.pos),i.titleIcon!=null&&i.hasOwnProperty("titleIcon")&&(o.titleIcon=i.titleIcon),o},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.app.listener.v1.TopCard"},e.PlayStrategy=function(){let t={},i=Object.create(t);return i[t[0]="NO_INTERRUPT"]=0,i[t[1]="PLAY_TARGET"]=1,i[t[2]="PLAY_FIRST"]=2,i}(),e}(),c.TpcdHistory=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.item=u.bilibili.app.listener.v1.DetailItem.decode(t,t.uint32());break}case 2:{o.text=t.string();break}case 3:{o.pic=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.listener.v1.TpcdHistory)return t;let i=new u.bilibili.app.listener.v1.TpcdHistory;if(t.item!=null){if(typeof t.item!="object")throw TypeError(".bilibili.app.listener.v1.TpcdHistory.item: object expected");i.item=u.bilibili.app.listener.v1.DetailItem.fromObject(t.item)}return t.text!=null&&(i.text=String(t.text)),t.pic!=null&&(i.pic=String(t.pic)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.item=null,n.text="",n.pic=""),t.item!=null&&t.hasOwnProperty("item")&&(n.item=u.bilibili.app.listener.v1.DetailItem.toObject(t.item,i)),t.text!=null&&t.hasOwnProperty("text")&&(n.text=t.text),t.pic!=null&&t.hasOwnProperty("pic")&&(n.pic=t.pic),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.listener.v1.TpcdHistory"},e}(),c.TpcdFavFolder=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.item=u.bilibili.app.listener.v1.DetailItem.decode(t,t.uint32());break}case 2:{o.text=t.string();break}case 3:{o.pic=t.string();break}case 4:{o.fid=t.int64();break}case 5:{o.folderType=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.listener.v1.TpcdFavFolder)return t;let i=new u.bilibili.app.listener.v1.TpcdFavFolder;if(t.item!=null){if(typeof t.item!="object")throw TypeError(".bilibili.app.listener.v1.TpcdFavFolder.item: object expected");i.item=u.bilibili.app.listener.v1.DetailItem.fromObject(t.item)}return t.text!=null&&(i.text=String(t.text)),t.pic!=null&&(i.pic=String(t.pic)),t.fid!=null&&(r.Long?(i.fid=r.Long.fromValue(t.fid)).unsigned=!1:typeof t.fid=="string"?i.fid=parseInt(t.fid,10):typeof t.fid=="number"?i.fid=t.fid:typeof t.fid=="object"&&(i.fid=new r.LongBits(t.fid.low>>>0,t.fid.high>>>0).toNumber())),t.folderType!=null&&(i.folderType=t.folderType|0),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.item=null,n.text="",n.pic="",r.Long){let o=new r.Long(0,0,!1);n.fid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.fid=i.longs===String?"0":0;n.folderType=0}return t.item!=null&&t.hasOwnProperty("item")&&(n.item=u.bilibili.app.listener.v1.DetailItem.toObject(t.item,i)),t.text!=null&&t.hasOwnProperty("text")&&(n.text=t.text),t.pic!=null&&t.hasOwnProperty("pic")&&(n.pic=t.pic),t.fid!=null&&t.hasOwnProperty("fid")&&(typeof t.fid=="number"?n.fid=i.longs===String?String(t.fid):t.fid:n.fid=i.longs===String?r.Long.prototype.toString.call(t.fid):i.longs===Number?new r.LongBits(t.fid.low>>>0,t.fid.high>>>0).toNumber():t.fid),t.folderType!=null&&t.hasOwnProperty("folderType")&&(n.folderType=t.folderType),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.listener.v1.TpcdFavFolder"},e}(),c.TpcdUpRecall=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.upMid=t.int64();break}case 2:{o.text=t.string();break}case 3:{o.avatar=t.string();break}case 4:{o.medialistType=t.int64();break}case 5:{o.medialistBizId=t.int64();break}case 6:{o.item=u.bilibili.app.listener.v1.DetailItem.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.listener.v1.TpcdUpRecall)return t;let i=new u.bilibili.app.listener.v1.TpcdUpRecall;if(t.upMid!=null&&(r.Long?(i.upMid=r.Long.fromValue(t.upMid)).unsigned=!1:typeof t.upMid=="string"?i.upMid=parseInt(t.upMid,10):typeof t.upMid=="number"?i.upMid=t.upMid:typeof t.upMid=="object"&&(i.upMid=new r.LongBits(t.upMid.low>>>0,t.upMid.high>>>0).toNumber())),t.text!=null&&(i.text=String(t.text)),t.avatar!=null&&(i.avatar=String(t.avatar)),t.medialistType!=null&&(r.Long?(i.medialistType=r.Long.fromValue(t.medialistType)).unsigned=!1:typeof t.medialistType=="string"?i.medialistType=parseInt(t.medialistType,10):typeof t.medialistType=="number"?i.medialistType=t.medialistType:typeof t.medialistType=="object"&&(i.medialistType=new r.LongBits(t.medialistType.low>>>0,t.medialistType.high>>>0).toNumber())),t.medialistBizId!=null&&(r.Long?(i.medialistBizId=r.Long.fromValue(t.medialistBizId)).unsigned=!1:typeof t.medialistBizId=="string"?i.medialistBizId=parseInt(t.medialistBizId,10):typeof t.medialistBizId=="number"?i.medialistBizId=t.medialistBizId:typeof t.medialistBizId=="object"&&(i.medialistBizId=new r.LongBits(t.medialistBizId.low>>>0,t.medialistBizId.high>>>0).toNumber())),t.item!=null){if(typeof t.item!="object")throw TypeError(".bilibili.app.listener.v1.TpcdUpRecall.item: object expected");i.item=u.bilibili.app.listener.v1.DetailItem.fromObject(t.item)}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.upMid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.upMid=i.longs===String?"0":0;if(n.text="",n.avatar="",r.Long){let o=new r.Long(0,0,!1);n.medialistType=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.medialistType=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.medialistBizId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.medialistBizId=i.longs===String?"0":0;n.item=null}return t.upMid!=null&&t.hasOwnProperty("upMid")&&(typeof t.upMid=="number"?n.upMid=i.longs===String?String(t.upMid):t.upMid:n.upMid=i.longs===String?r.Long.prototype.toString.call(t.upMid):i.longs===Number?new r.LongBits(t.upMid.low>>>0,t.upMid.high>>>0).toNumber():t.upMid),t.text!=null&&t.hasOwnProperty("text")&&(n.text=t.text),t.avatar!=null&&t.hasOwnProperty("avatar")&&(n.avatar=t.avatar),t.medialistType!=null&&t.hasOwnProperty("medialistType")&&(typeof t.medialistType=="number"?n.medialistType=i.longs===String?String(t.medialistType):t.medialistType:n.medialistType=i.longs===String?r.Long.prototype.toString.call(t.medialistType):i.longs===Number?new r.LongBits(t.medialistType.low>>>0,t.medialistType.high>>>0).toNumber():t.medialistType),t.medialistBizId!=null&&t.hasOwnProperty("medialistBizId")&&(typeof t.medialistBizId=="number"?n.medialistBizId=i.longs===String?String(t.medialistBizId):t.medialistBizId:n.medialistBizId=i.longs===String?r.Long.prototype.toString.call(t.medialistBizId):i.longs===Number?new r.LongBits(t.medialistBizId.low>>>0,t.medialistBizId.high>>>0).toNumber():t.medialistBizId),t.item!=null&&t.hasOwnProperty("item")&&(n.item=u.bilibili.app.listener.v1.DetailItem.toObject(t.item,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.listener.v1.TpcdUpRecall"},e}(),c.TpcdPickToday=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.item=u.bilibili.app.listener.v1.DetailItem.decode(t,t.uint32());break}case 2:{o.text=t.string();break}case 3:{o.pic=t.string();break}case 4:{o.pickId=t.int64();break}case 5:{o.pickCardId=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.listener.v1.TpcdPickToday)return t;let i=new u.bilibili.app.listener.v1.TpcdPickToday;if(t.item!=null){if(typeof t.item!="object")throw TypeError(".bilibili.app.listener.v1.TpcdPickToday.item: object expected");i.item=u.bilibili.app.listener.v1.DetailItem.fromObject(t.item)}return t.text!=null&&(i.text=String(t.text)),t.pic!=null&&(i.pic=String(t.pic)),t.pickId!=null&&(r.Long?(i.pickId=r.Long.fromValue(t.pickId)).unsigned=!1:typeof t.pickId=="string"?i.pickId=parseInt(t.pickId,10):typeof t.pickId=="number"?i.pickId=t.pickId:typeof t.pickId=="object"&&(i.pickId=new r.LongBits(t.pickId.low>>>0,t.pickId.high>>>0).toNumber())),t.pickCardId!=null&&(r.Long?(i.pickCardId=r.Long.fromValue(t.pickCardId)).unsigned=!1:typeof t.pickCardId=="string"?i.pickCardId=parseInt(t.pickCardId,10):typeof t.pickCardId=="number"?i.pickCardId=t.pickCardId:typeof t.pickCardId=="object"&&(i.pickCardId=new r.LongBits(t.pickCardId.low>>>0,t.pickCardId.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.item=null,n.text="",n.pic="",r.Long){let o=new r.Long(0,0,!1);n.pickId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.pickId=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.pickCardId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.pickCardId=i.longs===String?"0":0}return t.item!=null&&t.hasOwnProperty("item")&&(n.item=u.bilibili.app.listener.v1.DetailItem.toObject(t.item,i)),t.text!=null&&t.hasOwnProperty("text")&&(n.text=t.text),t.pic!=null&&t.hasOwnProperty("pic")&&(n.pic=t.pic),t.pickId!=null&&t.hasOwnProperty("pickId")&&(typeof t.pickId=="number"?n.pickId=i.longs===String?String(t.pickId):t.pickId:n.pickId=i.longs===String?r.Long.prototype.toString.call(t.pickId):i.longs===Number?new r.LongBits(t.pickId.low>>>0,t.pickId.high>>>0).toNumber():t.pickId),t.pickCardId!=null&&t.hasOwnProperty("pickCardId")&&(typeof t.pickCardId=="number"?n.pickCardId=i.longs===String?String(t.pickCardId):t.pickCardId:n.pickCardId=i.longs===String?r.Long.prototype.toString.call(t.pickCardId):i.longs===Number?new r.LongBits(t.pickCardId.low>>>0,t.pickCardId.high>>>0).toNumber():t.pickCardId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.listener.v1.TpcdPickToday"},e}(),c.FavFolderAuthor=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.mid=t.int64();break}case 2:{o.name=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.listener.v1.FavFolderAuthor)return t;let i=new u.bilibili.app.listener.v1.FavFolderAuthor;return t.mid!=null&&(r.Long?(i.mid=r.Long.fromValue(t.mid)).unsigned=!1:typeof t.mid=="string"?i.mid=parseInt(t.mid,10):typeof t.mid=="number"?i.mid=t.mid:typeof t.mid=="object"&&(i.mid=new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber())),t.name!=null&&(i.name=String(t.name)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.mid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mid=i.longs===String?"0":0;n.name=""}return t.mid!=null&&t.hasOwnProperty("mid")&&(typeof t.mid=="number"?n.mid=i.longs===String?String(t.mid):t.mid:n.mid=i.longs===String?r.Long.prototype.toString.call(t.mid):i.longs===Number?new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber():t.mid),t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.listener.v1.FavFolderAuthor"},e}(),c.FavFolder=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.fid=t.int64();break}case 2:{o.folderType=t.int32();break}case 3:{o.owner=u.bilibili.app.listener.v1.FavFolderAuthor.decode(t,t.uint32());break}case 4:{o.name=t.string();break}case 5:{o.cover=t.string();break}case 6:{o.desc=t.string();break}case 7:{o.count=t.int32();break}case 8:{o.attr=t.int32();break}case 9:{o.state=t.int32();break}case 10:{o.favored=t.int32();break}case 11:{o.ctime=t.int64();break}case 12:{o.mtime=t.int64();break}case 13:{o.statFavCnt=t.int32();break}case 14:{o.statShareCnt=t.int32();break}case 15:{o.statLikeCnt=t.int32();break}case 16:{o.statPlayCnt=t.int32();break}case 17:{o.statReplyCnt=t.int32();break}case 18:{o.favState=t.int32();break}case 19:{o.useViewVt=t.bool();break}case 20:{o.viewVtText=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.listener.v1.FavFolder)return t;let i=new u.bilibili.app.listener.v1.FavFolder;if(t.fid!=null&&(r.Long?(i.fid=r.Long.fromValue(t.fid)).unsigned=!1:typeof t.fid=="string"?i.fid=parseInt(t.fid,10):typeof t.fid=="number"?i.fid=t.fid:typeof t.fid=="object"&&(i.fid=new r.LongBits(t.fid.low>>>0,t.fid.high>>>0).toNumber())),t.folderType!=null&&(i.folderType=t.folderType|0),t.owner!=null){if(typeof t.owner!="object")throw TypeError(".bilibili.app.listener.v1.FavFolder.owner: object expected");i.owner=u.bilibili.app.listener.v1.FavFolderAuthor.fromObject(t.owner)}return t.name!=null&&(i.name=String(t.name)),t.cover!=null&&(i.cover=String(t.cover)),t.desc!=null&&(i.desc=String(t.desc)),t.count!=null&&(i.count=t.count|0),t.attr!=null&&(i.attr=t.attr|0),t.state!=null&&(i.state=t.state|0),t.favored!=null&&(i.favored=t.favored|0),t.ctime!=null&&(r.Long?(i.ctime=r.Long.fromValue(t.ctime)).unsigned=!1:typeof t.ctime=="string"?i.ctime=parseInt(t.ctime,10):typeof t.ctime=="number"?i.ctime=t.ctime:typeof t.ctime=="object"&&(i.ctime=new r.LongBits(t.ctime.low>>>0,t.ctime.high>>>0).toNumber())),t.mtime!=null&&(r.Long?(i.mtime=r.Long.fromValue(t.mtime)).unsigned=!1:typeof t.mtime=="string"?i.mtime=parseInt(t.mtime,10):typeof t.mtime=="number"?i.mtime=t.mtime:typeof t.mtime=="object"&&(i.mtime=new r.LongBits(t.mtime.low>>>0,t.mtime.high>>>0).toNumber())),t.statFavCnt!=null&&(i.statFavCnt=t.statFavCnt|0),t.statShareCnt!=null&&(i.statShareCnt=t.statShareCnt|0),t.statLikeCnt!=null&&(i.statLikeCnt=t.statLikeCnt|0),t.statPlayCnt!=null&&(i.statPlayCnt=t.statPlayCnt|0),t.statReplyCnt!=null&&(i.statReplyCnt=t.statReplyCnt|0),t.favState!=null&&(i.favState=t.favState|0),t.useViewVt!=null&&(i.useViewVt=!!t.useViewVt),t.viewVtText!=null&&(i.viewVtText=String(t.viewVtText)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.fid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.fid=i.longs===String?"0":0;if(n.folderType=0,n.owner=null,n.name="",n.cover="",n.desc="",n.count=0,n.attr=0,n.state=0,n.favored=0,r.Long){let o=new r.Long(0,0,!1);n.ctime=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.ctime=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.mtime=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mtime=i.longs===String?"0":0;n.statFavCnt=0,n.statShareCnt=0,n.statLikeCnt=0,n.statPlayCnt=0,n.statReplyCnt=0,n.favState=0,n.useViewVt=!1,n.viewVtText=""}return t.fid!=null&&t.hasOwnProperty("fid")&&(typeof t.fid=="number"?n.fid=i.longs===String?String(t.fid):t.fid:n.fid=i.longs===String?r.Long.prototype.toString.call(t.fid):i.longs===Number?new r.LongBits(t.fid.low>>>0,t.fid.high>>>0).toNumber():t.fid),t.folderType!=null&&t.hasOwnProperty("folderType")&&(n.folderType=t.folderType),t.owner!=null&&t.hasOwnProperty("owner")&&(n.owner=u.bilibili.app.listener.v1.FavFolderAuthor.toObject(t.owner,i)),t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),t.cover!=null&&t.hasOwnProperty("cover")&&(n.cover=t.cover),t.desc!=null&&t.hasOwnProperty("desc")&&(n.desc=t.desc),t.count!=null&&t.hasOwnProperty("count")&&(n.count=t.count),t.attr!=null&&t.hasOwnProperty("attr")&&(n.attr=t.attr),t.state!=null&&t.hasOwnProperty("state")&&(n.state=t.state),t.favored!=null&&t.hasOwnProperty("favored")&&(n.favored=t.favored),t.ctime!=null&&t.hasOwnProperty("ctime")&&(typeof t.ctime=="number"?n.ctime=i.longs===String?String(t.ctime):t.ctime:n.ctime=i.longs===String?r.Long.prototype.toString.call(t.ctime):i.longs===Number?new r.LongBits(t.ctime.low>>>0,t.ctime.high>>>0).toNumber():t.ctime),t.mtime!=null&&t.hasOwnProperty("mtime")&&(typeof t.mtime=="number"?n.mtime=i.longs===String?String(t.mtime):t.mtime:n.mtime=i.longs===String?r.Long.prototype.toString.call(t.mtime):i.longs===Number?new r.LongBits(t.mtime.low>>>0,t.mtime.high>>>0).toNumber():t.mtime),t.statFavCnt!=null&&t.hasOwnProperty("statFavCnt")&&(n.statFavCnt=t.statFavCnt),t.statShareCnt!=null&&t.hasOwnProperty("statShareCnt")&&(n.statShareCnt=t.statShareCnt),t.statLikeCnt!=null&&t.hasOwnProperty("statLikeCnt")&&(n.statLikeCnt=t.statLikeCnt),t.statPlayCnt!=null&&t.hasOwnProperty("statPlayCnt")&&(n.statPlayCnt=t.statPlayCnt),t.statReplyCnt!=null&&t.hasOwnProperty("statReplyCnt")&&(n.statReplyCnt=t.statReplyCnt),t.favState!=null&&t.hasOwnProperty("favState")&&(n.favState=t.favState),t.useViewVt!=null&&t.hasOwnProperty("useViewVt")&&(n.useViewVt=t.useViewVt),t.viewVtText!=null&&t.hasOwnProperty("viewVtText")&&(n.viewVtText=t.viewVtText),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.listener.v1.FavFolder"},e}(),c.FavFolderListReq=function(){function e(l){if(this.folderTypes=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{if(o.folderTypes&&o.folderTypes.length||(o.folderTypes=[]),(a&7)===2){let y=t.uint32()+t.pos;for(;t.pos>>3){case 1:{o.list&&o.list.length||(o.list=[]),o.list.push(u.bilibili.app.listener.v1.FavFolder.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.listener.v1.FavFolderListResp)return t;let i=new u.bilibili.app.listener.v1.FavFolderListResp;if(t.list){if(!Array.isArray(t.list))throw TypeError(".bilibili.app.listener.v1.FavFolderListResp.list: array expected");i.list=[];for(let n=0;n>>3){case 1:{o.itemType=t.int32();break}case 2:{o.oid=t.int64();break}case 3:{o.fid=t.int64();break}case 4:{o.mid=t.int64();break}case 5:{o.mtime=t.int64();break}case 6:{o.ctime=t.int64();break}case 7:{o.et=u.bilibili.app.listener.v1.EventTracking.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.listener.v1.FavItem)return t;let i=new u.bilibili.app.listener.v1.FavItem;if(t.itemType!=null&&(i.itemType=t.itemType|0),t.oid!=null&&(r.Long?(i.oid=r.Long.fromValue(t.oid)).unsigned=!1:typeof t.oid=="string"?i.oid=parseInt(t.oid,10):typeof t.oid=="number"?i.oid=t.oid:typeof t.oid=="object"&&(i.oid=new r.LongBits(t.oid.low>>>0,t.oid.high>>>0).toNumber())),t.fid!=null&&(r.Long?(i.fid=r.Long.fromValue(t.fid)).unsigned=!1:typeof t.fid=="string"?i.fid=parseInt(t.fid,10):typeof t.fid=="number"?i.fid=t.fid:typeof t.fid=="object"&&(i.fid=new r.LongBits(t.fid.low>>>0,t.fid.high>>>0).toNumber())),t.mid!=null&&(r.Long?(i.mid=r.Long.fromValue(t.mid)).unsigned=!1:typeof t.mid=="string"?i.mid=parseInt(t.mid,10):typeof t.mid=="number"?i.mid=t.mid:typeof t.mid=="object"&&(i.mid=new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber())),t.mtime!=null&&(r.Long?(i.mtime=r.Long.fromValue(t.mtime)).unsigned=!1:typeof t.mtime=="string"?i.mtime=parseInt(t.mtime,10):typeof t.mtime=="number"?i.mtime=t.mtime:typeof t.mtime=="object"&&(i.mtime=new r.LongBits(t.mtime.low>>>0,t.mtime.high>>>0).toNumber())),t.ctime!=null&&(r.Long?(i.ctime=r.Long.fromValue(t.ctime)).unsigned=!1:typeof t.ctime=="string"?i.ctime=parseInt(t.ctime,10):typeof t.ctime=="number"?i.ctime=t.ctime:typeof t.ctime=="object"&&(i.ctime=new r.LongBits(t.ctime.low>>>0,t.ctime.high>>>0).toNumber())),t.et!=null){if(typeof t.et!="object")throw TypeError(".bilibili.app.listener.v1.FavItem.et: object expected");i.et=u.bilibili.app.listener.v1.EventTracking.fromObject(t.et)}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.itemType=0,r.Long){let o=new r.Long(0,0,!1);n.oid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.oid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.fid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.fid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.mid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.mtime=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mtime=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.ctime=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.ctime=i.longs===String?"0":0;n.et=null}return t.itemType!=null&&t.hasOwnProperty("itemType")&&(n.itemType=t.itemType),t.oid!=null&&t.hasOwnProperty("oid")&&(typeof t.oid=="number"?n.oid=i.longs===String?String(t.oid):t.oid:n.oid=i.longs===String?r.Long.prototype.toString.call(t.oid):i.longs===Number?new r.LongBits(t.oid.low>>>0,t.oid.high>>>0).toNumber():t.oid),t.fid!=null&&t.hasOwnProperty("fid")&&(typeof t.fid=="number"?n.fid=i.longs===String?String(t.fid):t.fid:n.fid=i.longs===String?r.Long.prototype.toString.call(t.fid):i.longs===Number?new r.LongBits(t.fid.low>>>0,t.fid.high>>>0).toNumber():t.fid),t.mid!=null&&t.hasOwnProperty("mid")&&(typeof t.mid=="number"?n.mid=i.longs===String?String(t.mid):t.mid:n.mid=i.longs===String?r.Long.prototype.toString.call(t.mid):i.longs===Number?new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber():t.mid),t.mtime!=null&&t.hasOwnProperty("mtime")&&(typeof t.mtime=="number"?n.mtime=i.longs===String?String(t.mtime):t.mtime:n.mtime=i.longs===String?r.Long.prototype.toString.call(t.mtime):i.longs===Number?new r.LongBits(t.mtime.low>>>0,t.mtime.high>>>0).toNumber():t.mtime),t.ctime!=null&&t.hasOwnProperty("ctime")&&(typeof t.ctime=="number"?n.ctime=i.longs===String?String(t.ctime):t.ctime:n.ctime=i.longs===String?r.Long.prototype.toString.call(t.ctime):i.longs===Number?new r.LongBits(t.ctime.low>>>0,t.ctime.high>>>0).toNumber():t.ctime),t.et!=null&&t.hasOwnProperty("et")&&(n.et=u.bilibili.app.listener.v1.EventTracking.toObject(t.et,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.listener.v1.FavItem"},e}(),c.FavItemDetail=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.item=u.bilibili.app.listener.v1.FavItem.decode(t,t.uint32());break}case 2:{o.owner=u.bilibili.app.listener.v1.FavItemAuthor.decode(t,t.uint32());break}case 3:{o.stat=u.bilibili.app.listener.v1.FavItemStat.decode(t,t.uint32());break}case 4:{o.cover=t.string();break}case 5:{o.name=t.string();break}case 6:{o.duration=t.int64();break}case 7:{o.state=t.int32();break}case 8:{o.message=t.string();break}case 9:{o.parts=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.listener.v1.FavItemDetail)return t;let i=new u.bilibili.app.listener.v1.FavItemDetail;if(t.item!=null){if(typeof t.item!="object")throw TypeError(".bilibili.app.listener.v1.FavItemDetail.item: object expected");i.item=u.bilibili.app.listener.v1.FavItem.fromObject(t.item)}if(t.owner!=null){if(typeof t.owner!="object")throw TypeError(".bilibili.app.listener.v1.FavItemDetail.owner: object expected");i.owner=u.bilibili.app.listener.v1.FavItemAuthor.fromObject(t.owner)}if(t.stat!=null){if(typeof t.stat!="object")throw TypeError(".bilibili.app.listener.v1.FavItemDetail.stat: object expected");i.stat=u.bilibili.app.listener.v1.FavItemStat.fromObject(t.stat)}return t.cover!=null&&(i.cover=String(t.cover)),t.name!=null&&(i.name=String(t.name)),t.duration!=null&&(r.Long?(i.duration=r.Long.fromValue(t.duration)).unsigned=!1:typeof t.duration=="string"?i.duration=parseInt(t.duration,10):typeof t.duration=="number"?i.duration=t.duration:typeof t.duration=="object"&&(i.duration=new r.LongBits(t.duration.low>>>0,t.duration.high>>>0).toNumber())),t.state!=null&&(i.state=t.state|0),t.message!=null&&(i.message=String(t.message)),t.parts!=null&&(i.parts=t.parts|0),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.item=null,n.owner=null,n.stat=null,n.cover="",n.name="",r.Long){let o=new r.Long(0,0,!1);n.duration=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.duration=i.longs===String?"0":0;n.state=0,n.message="",n.parts=0}return t.item!=null&&t.hasOwnProperty("item")&&(n.item=u.bilibili.app.listener.v1.FavItem.toObject(t.item,i)),t.owner!=null&&t.hasOwnProperty("owner")&&(n.owner=u.bilibili.app.listener.v1.FavItemAuthor.toObject(t.owner,i)),t.stat!=null&&t.hasOwnProperty("stat")&&(n.stat=u.bilibili.app.listener.v1.FavItemStat.toObject(t.stat,i)),t.cover!=null&&t.hasOwnProperty("cover")&&(n.cover=t.cover),t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),t.duration!=null&&t.hasOwnProperty("duration")&&(typeof t.duration=="number"?n.duration=i.longs===String?String(t.duration):t.duration:n.duration=i.longs===String?r.Long.prototype.toString.call(t.duration):i.longs===Number?new r.LongBits(t.duration.low>>>0,t.duration.high>>>0).toNumber():t.duration),t.state!=null&&t.hasOwnProperty("state")&&(n.state=t.state),t.message!=null&&t.hasOwnProperty("message")&&(n.message=t.message),t.parts!=null&&t.hasOwnProperty("parts")&&(n.parts=t.parts),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.listener.v1.FavItemDetail"},e}(),c.FavItemAuthor=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.mid=t.int64();break}case 2:{o.name=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.listener.v1.FavItemAuthor)return t;let i=new u.bilibili.app.listener.v1.FavItemAuthor;return t.mid!=null&&(r.Long?(i.mid=r.Long.fromValue(t.mid)).unsigned=!1:typeof t.mid=="string"?i.mid=parseInt(t.mid,10):typeof t.mid=="number"?i.mid=t.mid:typeof t.mid=="object"&&(i.mid=new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber())),t.name!=null&&(i.name=String(t.name)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.mid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mid=i.longs===String?"0":0;n.name=""}return t.mid!=null&&t.hasOwnProperty("mid")&&(typeof t.mid=="number"?n.mid=i.longs===String?String(t.mid):t.mid:n.mid=i.longs===String?r.Long.prototype.toString.call(t.mid):i.longs===Number?new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber():t.mid),t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.listener.v1.FavItemAuthor"},e}(),c.FavItemStat=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.view=t.int32();break}case 2:{o.reply=t.int32();break}case 3:{o.useViewVt=t.bool();break}case 4:{o.viewVtText=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.listener.v1.FavItemStat)return t;let i=new u.bilibili.app.listener.v1.FavItemStat;return t.view!=null&&(i.view=t.view|0),t.reply!=null&&(i.reply=t.reply|0),t.useViewVt!=null&&(i.useViewVt=!!t.useViewVt),t.viewVtText!=null&&(i.viewVtText=String(t.viewVtText)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.view=0,n.reply=0,n.useViewVt=!1,n.viewVtText=""),t.view!=null&&t.hasOwnProperty("view")&&(n.view=t.view),t.reply!=null&&t.hasOwnProperty("reply")&&(n.reply=t.reply),t.useViewVt!=null&&t.hasOwnProperty("useViewVt")&&(n.useViewVt=t.useViewVt),t.viewVtText!=null&&t.hasOwnProperty("viewVtText")&&(n.viewVtText=t.viewVtText),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.listener.v1.FavItemStat"},e}(),c.FavFolderDetailReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.fid=t.int64();break}case 2:{o.folderType=t.int32();break}case 3:{o.favMid=t.int64();break}case 4:{o.lastItem=u.bilibili.app.listener.v1.FavItem.decode(t,t.uint32());break}case 5:{o.pageSize=t.uint32();break}case 6:{o.needFolderInfo=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.listener.v1.FavFolderDetailReq)return t;let i=new u.bilibili.app.listener.v1.FavFolderDetailReq;if(t.fid!=null&&(r.Long?(i.fid=r.Long.fromValue(t.fid)).unsigned=!1:typeof t.fid=="string"?i.fid=parseInt(t.fid,10):typeof t.fid=="number"?i.fid=t.fid:typeof t.fid=="object"&&(i.fid=new r.LongBits(t.fid.low>>>0,t.fid.high>>>0).toNumber())),t.folderType!=null&&(i.folderType=t.folderType|0),t.favMid!=null&&(r.Long?(i.favMid=r.Long.fromValue(t.favMid)).unsigned=!1:typeof t.favMid=="string"?i.favMid=parseInt(t.favMid,10):typeof t.favMid=="number"?i.favMid=t.favMid:typeof t.favMid=="object"&&(i.favMid=new r.LongBits(t.favMid.low>>>0,t.favMid.high>>>0).toNumber())),t.lastItem!=null){if(typeof t.lastItem!="object")throw TypeError(".bilibili.app.listener.v1.FavFolderDetailReq.lastItem: object expected");i.lastItem=u.bilibili.app.listener.v1.FavItem.fromObject(t.lastItem)}return t.pageSize!=null&&(i.pageSize=t.pageSize>>>0),t.needFolderInfo!=null&&(i.needFolderInfo=!!t.needFolderInfo),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.fid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.fid=i.longs===String?"0":0;if(n.folderType=0,r.Long){let o=new r.Long(0,0,!1);n.favMid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.favMid=i.longs===String?"0":0;n.lastItem=null,n.pageSize=0,n.needFolderInfo=!1}return t.fid!=null&&t.hasOwnProperty("fid")&&(typeof t.fid=="number"?n.fid=i.longs===String?String(t.fid):t.fid:n.fid=i.longs===String?r.Long.prototype.toString.call(t.fid):i.longs===Number?new r.LongBits(t.fid.low>>>0,t.fid.high>>>0).toNumber():t.fid),t.folderType!=null&&t.hasOwnProperty("folderType")&&(n.folderType=t.folderType),t.favMid!=null&&t.hasOwnProperty("favMid")&&(typeof t.favMid=="number"?n.favMid=i.longs===String?String(t.favMid):t.favMid:n.favMid=i.longs===String?r.Long.prototype.toString.call(t.favMid):i.longs===Number?new r.LongBits(t.favMid.low>>>0,t.favMid.high>>>0).toNumber():t.favMid),t.lastItem!=null&&t.hasOwnProperty("lastItem")&&(n.lastItem=u.bilibili.app.listener.v1.FavItem.toObject(t.lastItem,i)),t.pageSize!=null&&t.hasOwnProperty("pageSize")&&(n.pageSize=t.pageSize),t.needFolderInfo!=null&&t.hasOwnProperty("needFolderInfo")&&(n.needFolderInfo=t.needFolderInfo),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.listener.v1.FavFolderDetailReq"},e}(),c.FavFolderDetailResp=function(){function e(l){if(this.list=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.total=t.uint32();break}case 2:{o.reachEnd=t.bool();break}case 3:{o.list&&o.list.length||(o.list=[]),o.list.push(u.bilibili.app.listener.v1.FavItemDetail.decode(t,t.uint32()));break}case 4:{o.folderInfo=u.bilibili.app.listener.v1.FavFolder.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.listener.v1.FavFolderDetailResp)return t;let i=new u.bilibili.app.listener.v1.FavFolderDetailResp;if(t.total!=null&&(i.total=t.total>>>0),t.reachEnd!=null&&(i.reachEnd=!!t.reachEnd),t.list){if(!Array.isArray(t.list))throw TypeError(".bilibili.app.listener.v1.FavFolderDetailResp.list: array expected");i.list=[];for(let n=0;n>>3){case 1:{o.name=t.string();break}case 2:{o.desc=t.string();break}case 3:{o.public=t.int32();break}case 4:{o.folderType=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.listener.v1.FavFolderCreateReq)return t;let i=new u.bilibili.app.listener.v1.FavFolderCreateReq;return t.name!=null&&(i.name=String(t.name)),t.desc!=null&&(i.desc=String(t.desc)),t.public!=null&&(i.public=t.public|0),t.folderType!=null&&(i.folderType=t.folderType|0),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.name="",n.desc="",n.public=0,n.folderType=0),t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),t.desc!=null&&t.hasOwnProperty("desc")&&(n.desc=t.desc),t.public!=null&&t.hasOwnProperty("public")&&(n.public=t.public),t.folderType!=null&&t.hasOwnProperty("folderType")&&(n.folderType=t.folderType),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.listener.v1.FavFolderCreateReq"},e}(),c.FavFolderCreateResp=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.fid=t.int64();break}case 2:{o.folderType=t.int32();break}case 3:{o.message=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.listener.v1.FavFolderCreateResp)return t;let i=new u.bilibili.app.listener.v1.FavFolderCreateResp;return t.fid!=null&&(r.Long?(i.fid=r.Long.fromValue(t.fid)).unsigned=!1:typeof t.fid=="string"?i.fid=parseInt(t.fid,10):typeof t.fid=="number"?i.fid=t.fid:typeof t.fid=="object"&&(i.fid=new r.LongBits(t.fid.low>>>0,t.fid.high>>>0).toNumber())),t.folderType!=null&&(i.folderType=t.folderType|0),t.message!=null&&(i.message=String(t.message)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.fid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.fid=i.longs===String?"0":0;n.folderType=0,n.message=""}return t.fid!=null&&t.hasOwnProperty("fid")&&(typeof t.fid=="number"?n.fid=i.longs===String?String(t.fid):t.fid:n.fid=i.longs===String?r.Long.prototype.toString.call(t.fid):i.longs===Number?new r.LongBits(t.fid.low>>>0,t.fid.high>>>0).toNumber():t.fid),t.folderType!=null&&t.hasOwnProperty("folderType")&&(n.folderType=t.folderType),t.message!=null&&t.hasOwnProperty("message")&&(n.message=t.message),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.listener.v1.FavFolderCreateResp"},e}(),c.FavFolderDeleteReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.fid=t.int64();break}case 2:{o.folderType=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.listener.v1.FavFolderDeleteReq)return t;let i=new u.bilibili.app.listener.v1.FavFolderDeleteReq;return t.fid!=null&&(r.Long?(i.fid=r.Long.fromValue(t.fid)).unsigned=!1:typeof t.fid=="string"?i.fid=parseInt(t.fid,10):typeof t.fid=="number"?i.fid=t.fid:typeof t.fid=="object"&&(i.fid=new r.LongBits(t.fid.low>>>0,t.fid.high>>>0).toNumber())),t.folderType!=null&&(i.folderType=t.folderType|0),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.fid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.fid=i.longs===String?"0":0;n.folderType=0}return t.fid!=null&&t.hasOwnProperty("fid")&&(typeof t.fid=="number"?n.fid=i.longs===String?String(t.fid):t.fid:n.fid=i.longs===String?r.Long.prototype.toString.call(t.fid):i.longs===Number?new r.LongBits(t.fid.low>>>0,t.fid.high>>>0).toNumber():t.fid),t.folderType!=null&&t.hasOwnProperty("folderType")&&(n.folderType=t.folderType),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.listener.v1.FavFolderDeleteReq"},e}(),c.FavFolderDeleteResp=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.message=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.listener.v1.FavFolderDeleteResp)return t;let i=new u.bilibili.app.listener.v1.FavFolderDeleteResp;return t.message!=null&&(i.message=String(t.message)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.message=""),t.message!=null&&t.hasOwnProperty("message")&&(n.message=t.message),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.listener.v1.FavFolderDeleteResp"},e}(),c.FavItemAddReq=function(){function e(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.fid=i.int64();break}case 2:{a.folderType=i.int32();break}case 3:{a.play=u.bilibili.app.listener.v1.PlayItem.decode(i,i.uint32());break}case 4:{a.fav=u.bilibili.app.listener.v1.FavItem.decode(i,i.uint32());break}case 5:{a.isFastAddFav=i.bool();break}default:i.skipType(y&7);break}}return a},e.fromObject=function(i){if(i instanceof u.bilibili.app.listener.v1.FavItemAddReq)return i;let n=new u.bilibili.app.listener.v1.FavItemAddReq;if(i.fid!=null&&(r.Long?(n.fid=r.Long.fromValue(i.fid)).unsigned=!1:typeof i.fid=="string"?n.fid=parseInt(i.fid,10):typeof i.fid=="number"?n.fid=i.fid:typeof i.fid=="object"&&(n.fid=new r.LongBits(i.fid.low>>>0,i.fid.high>>>0).toNumber())),i.folderType!=null&&(n.folderType=i.folderType|0),i.play!=null){if(typeof i.play!="object")throw TypeError(".bilibili.app.listener.v1.FavItemAddReq.play: object expected");n.play=u.bilibili.app.listener.v1.PlayItem.fromObject(i.play)}if(i.fav!=null){if(typeof i.fav!="object")throw TypeError(".bilibili.app.listener.v1.FavItemAddReq.fav: object expected");n.fav=u.bilibili.app.listener.v1.FavItem.fromObject(i.fav)}return i.isFastAddFav!=null&&(n.isFastAddFav=!!i.isFastAddFav),n},e.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.fid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.fid=n.longs===String?"0":0;o.folderType=0,o.isFastAddFav=!1}return i.fid!=null&&i.hasOwnProperty("fid")&&(typeof i.fid=="number"?o.fid=n.longs===String?String(i.fid):i.fid:o.fid=n.longs===String?r.Long.prototype.toString.call(i.fid):n.longs===Number?new r.LongBits(i.fid.low>>>0,i.fid.high>>>0).toNumber():i.fid),i.folderType!=null&&i.hasOwnProperty("folderType")&&(o.folderType=i.folderType),i.play!=null&&i.hasOwnProperty("play")&&(o.play=u.bilibili.app.listener.v1.PlayItem.toObject(i.play,n),n.oneofs&&(o.item="play")),i.fav!=null&&i.hasOwnProperty("fav")&&(o.fav=u.bilibili.app.listener.v1.FavItem.toObject(i.fav,n),n.oneofs&&(o.item="fav")),i.isFastAddFav!=null&&i.hasOwnProperty("isFastAddFav")&&(o.isFastAddFav=i.isFastAddFav),o},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.app.listener.v1.FavItemAddReq"},e}(),c.FavItemAddResp=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.message=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.listener.v1.FavItemAddResp)return t;let i=new u.bilibili.app.listener.v1.FavItemAddResp;return t.message!=null&&(i.message=String(t.message)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.message=""),t.message!=null&&t.hasOwnProperty("message")&&(n.message=t.message),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.listener.v1.FavItemAddResp"},e}(),c.FavItemDelReq=function(){function e(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.fid=i.int64();break}case 2:{a.folderType=i.int32();break}case 3:{a.play=u.bilibili.app.listener.v1.PlayItem.decode(i,i.uint32());break}case 4:{a.fav=u.bilibili.app.listener.v1.FavItem.decode(i,i.uint32());break}case 5:{a.isFastDelFav=i.bool();break}default:i.skipType(y&7);break}}return a},e.fromObject=function(i){if(i instanceof u.bilibili.app.listener.v1.FavItemDelReq)return i;let n=new u.bilibili.app.listener.v1.FavItemDelReq;if(i.fid!=null&&(r.Long?(n.fid=r.Long.fromValue(i.fid)).unsigned=!1:typeof i.fid=="string"?n.fid=parseInt(i.fid,10):typeof i.fid=="number"?n.fid=i.fid:typeof i.fid=="object"&&(n.fid=new r.LongBits(i.fid.low>>>0,i.fid.high>>>0).toNumber())),i.folderType!=null&&(n.folderType=i.folderType|0),i.play!=null){if(typeof i.play!="object")throw TypeError(".bilibili.app.listener.v1.FavItemDelReq.play: object expected");n.play=u.bilibili.app.listener.v1.PlayItem.fromObject(i.play)}if(i.fav!=null){if(typeof i.fav!="object")throw TypeError(".bilibili.app.listener.v1.FavItemDelReq.fav: object expected");n.fav=u.bilibili.app.listener.v1.FavItem.fromObject(i.fav)}return i.isFastDelFav!=null&&(n.isFastDelFav=!!i.isFastDelFav),n},e.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.fid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.fid=n.longs===String?"0":0;o.folderType=0,o.isFastDelFav=!1}return i.fid!=null&&i.hasOwnProperty("fid")&&(typeof i.fid=="number"?o.fid=n.longs===String?String(i.fid):i.fid:o.fid=n.longs===String?r.Long.prototype.toString.call(i.fid):n.longs===Number?new r.LongBits(i.fid.low>>>0,i.fid.high>>>0).toNumber():i.fid),i.folderType!=null&&i.hasOwnProperty("folderType")&&(o.folderType=i.folderType),i.play!=null&&i.hasOwnProperty("play")&&(o.play=u.bilibili.app.listener.v1.PlayItem.toObject(i.play,n),n.oneofs&&(o.item="play")),i.fav!=null&&i.hasOwnProperty("fav")&&(o.fav=u.bilibili.app.listener.v1.FavItem.toObject(i.fav,n),n.oneofs&&(o.item="fav")),i.isFastDelFav!=null&&i.hasOwnProperty("isFastDelFav")&&(o.isFastDelFav=i.isFastDelFav),o},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.app.listener.v1.FavItemDelReq"},e}(),c.FavItemDelResp=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.message=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.listener.v1.FavItemDelResp)return t;let i=new u.bilibili.app.listener.v1.FavItemDelResp;return t.message!=null&&(i.message=String(t.message)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.message=""),t.message!=null&&t.hasOwnProperty("message")&&(n.message=t.message),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.listener.v1.FavItemDelResp"},e}(),c.FavFolderAction=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.fid=t.int64();break}case 2:{o.folderType=t.int32();break}case 3:{o.action=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.listener.v1.FavFolderAction)return t;let i=new u.bilibili.app.listener.v1.FavFolderAction;switch(t.fid!=null&&(r.Long?(i.fid=r.Long.fromValue(t.fid)).unsigned=!1:typeof t.fid=="string"?i.fid=parseInt(t.fid,10):typeof t.fid=="number"?i.fid=t.fid:typeof t.fid=="object"&&(i.fid=new r.LongBits(t.fid.low>>>0,t.fid.high>>>0).toNumber())),t.folderType!=null&&(i.folderType=t.folderType|0),t.action){default:if(typeof t.action=="number"){i.action=t.action;break}break;case"UNSPECIFIED":case 0:i.action=0;break;case"ADD":case 1:i.action=1;break;case"DEL":case 2:i.action=2;break}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.fid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.fid=i.longs===String?"0":0;n.folderType=0,n.action=i.enums===String?"UNSPECIFIED":0}return t.fid!=null&&t.hasOwnProperty("fid")&&(typeof t.fid=="number"?n.fid=i.longs===String?String(t.fid):t.fid:n.fid=i.longs===String?r.Long.prototype.toString.call(t.fid):i.longs===Number?new r.LongBits(t.fid.low>>>0,t.fid.high>>>0).toNumber():t.fid),t.folderType!=null&&t.hasOwnProperty("folderType")&&(n.folderType=t.folderType),t.action!=null&&t.hasOwnProperty("action")&&(n.action=i.enums===String?u.bilibili.app.listener.v1.FavFolderAction.Action[t.action]===void 0?t.action:u.bilibili.app.listener.v1.FavFolderAction.Action[t.action]:t.action),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.listener.v1.FavFolderAction"},e.Action=function(){let l={},t=Object.create(l);return t[l[0]="UNSPECIFIED"]=0,t[l[1]="ADD"]=1,t[l[2]="DEL"]=2,t}(),e}(),c.FavItemBatchReq=function(){function e(t){if(this.actions=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.actions&&a.actions.length||(a.actions=[]),a.actions.push(u.bilibili.app.listener.v1.FavFolderAction.decode(i,i.uint32()));break}case 2:{a.play=u.bilibili.app.listener.v1.PlayItem.decode(i,i.uint32());break}case 3:{a.fav=u.bilibili.app.listener.v1.FavItem.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},e.fromObject=function(i){if(i instanceof u.bilibili.app.listener.v1.FavItemBatchReq)return i;let n=new u.bilibili.app.listener.v1.FavItemBatchReq;if(i.actions){if(!Array.isArray(i.actions))throw TypeError(".bilibili.app.listener.v1.FavItemBatchReq.actions: array expected");n.actions=[];for(let o=0;o>>3){case 1:{o.message=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.listener.v1.FavItemBatchResp)return t;let i=new u.bilibili.app.listener.v1.FavItemBatchResp;return t.message!=null&&(i.message=String(t.message)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.message=""),t.message!=null&&t.hasOwnProperty("message")&&(n.message=t.message),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.listener.v1.FavItemBatchResp"},e}(),c.FavoredInAnyFoldersReq=function(){function e(l){if(this.folderTypes=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{if(o.folderTypes&&o.folderTypes.length||(o.folderTypes=[]),(a&7)===2){let y=t.uint32()+t.pos;for(;t.pos>>3){case 1:{o.fid=t.int64();break}case 2:{o.folderType=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.listener.v1.FavFolderMeta)return t;let i=new u.bilibili.app.listener.v1.FavFolderMeta;return t.fid!=null&&(r.Long?(i.fid=r.Long.fromValue(t.fid)).unsigned=!1:typeof t.fid=="string"?i.fid=parseInt(t.fid,10):typeof t.fid=="number"?i.fid=t.fid:typeof t.fid=="object"&&(i.fid=new r.LongBits(t.fid.low>>>0,t.fid.high>>>0).toNumber())),t.folderType!=null&&(i.folderType=t.folderType|0),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.fid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.fid=i.longs===String?"0":0;n.folderType=0}return t.fid!=null&&t.hasOwnProperty("fid")&&(typeof t.fid=="number"?n.fid=i.longs===String?String(t.fid):t.fid:n.fid=i.longs===String?r.Long.prototype.toString.call(t.fid):i.longs===Number?new r.LongBits(t.fid.low>>>0,t.fid.high>>>0).toNumber():t.fid),t.folderType!=null&&t.hasOwnProperty("folderType")&&(n.folderType=t.folderType),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.listener.v1.FavFolderMeta"},e}(),c.FavoredInAnyFoldersResp=function(){function e(l){if(this.folders=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.folders&&o.folders.length||(o.folders=[]),o.folders.push(u.bilibili.app.listener.v1.FavFolderMeta.decode(t,t.uint32()));break}case 2:{o.item=u.bilibili.app.listener.v1.PlayItem.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.listener.v1.FavoredInAnyFoldersResp)return t;let i=new u.bilibili.app.listener.v1.FavoredInAnyFoldersResp;if(t.folders){if(!Array.isArray(t.folders))throw TypeError(".bilibili.app.listener.v1.FavoredInAnyFoldersResp.folders: array expected");i.folders=[];for(let n=0;n>>3){case 1:{o.offset=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.listener.v1.PickFeedReq)return t;let i=new u.bilibili.app.listener.v1.PickFeedReq;return t.offset!=null&&(r.Long?(i.offset=r.Long.fromValue(t.offset)).unsigned=!1:typeof t.offset=="string"?i.offset=parseInt(t.offset,10):typeof t.offset=="number"?i.offset=t.offset:typeof t.offset=="object"&&(i.offset=new r.LongBits(t.offset.low>>>0,t.offset.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(r.Long){let o=new r.Long(0,0,!1);n.offset=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.offset=i.longs===String?"0":0;return t.offset!=null&&t.hasOwnProperty("offset")&&(typeof t.offset=="number"?n.offset=i.longs===String?String(t.offset):t.offset:n.offset=i.longs===String?r.Long.prototype.toString.call(t.offset):i.longs===Number?new r.LongBits(t.offset.low>>>0,t.offset.high>>>0).toNumber():t.offset),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.listener.v1.PickFeedReq"},e}(),c.PickFeedResp=function(){function e(l){if(this.cards=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.offset=t.int64();break}case 2:{o.cards&&o.cards.length||(o.cards=[]),o.cards.push(u.bilibili.app.listener.v1.PickCard.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.listener.v1.PickFeedResp)return t;let i=new u.bilibili.app.listener.v1.PickFeedResp;if(t.offset!=null&&(r.Long?(i.offset=r.Long.fromValue(t.offset)).unsigned=!1:typeof t.offset=="string"?i.offset=parseInt(t.offset,10):typeof t.offset=="number"?i.offset=t.offset:typeof t.offset=="object"&&(i.offset=new r.LongBits(t.offset.low>>>0,t.offset.high>>>0).toNumber())),t.cards){if(!Array.isArray(t.cards))throw TypeError(".bilibili.app.listener.v1.PickFeedResp.cards: array expected");i.cards=[];for(let n=0;n>>0,t.offset.high>>>0).toNumber():t.offset),t.cards&&t.cards.length){n.cards=[];for(let o=0;o>>3){case 1:{o.pickId=t.int64();break}case 2:{o.cardId=t.int64();break}case 3:{o.cardName=t.string();break}case 4:{o.modules&&o.modules.length||(o.modules=[]),o.modules.push(u.bilibili.app.listener.v1.CardModule.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.listener.v1.PickCard)return t;let i=new u.bilibili.app.listener.v1.PickCard;if(t.pickId!=null&&(r.Long?(i.pickId=r.Long.fromValue(t.pickId)).unsigned=!1:typeof t.pickId=="string"?i.pickId=parseInt(t.pickId,10):typeof t.pickId=="number"?i.pickId=t.pickId:typeof t.pickId=="object"&&(i.pickId=new r.LongBits(t.pickId.low>>>0,t.pickId.high>>>0).toNumber())),t.cardId!=null&&(r.Long?(i.cardId=r.Long.fromValue(t.cardId)).unsigned=!1:typeof t.cardId=="string"?i.cardId=parseInt(t.cardId,10):typeof t.cardId=="number"?i.cardId=t.cardId:typeof t.cardId=="object"&&(i.cardId=new r.LongBits(t.cardId.low>>>0,t.cardId.high>>>0).toNumber())),t.cardName!=null&&(i.cardName=String(t.cardName)),t.modules){if(!Array.isArray(t.modules))throw TypeError(".bilibili.app.listener.v1.PickCard.modules: array expected");i.modules=[];for(let n=0;n>>0,t.pickId.high>>>0).toNumber():t.pickId),t.cardId!=null&&t.hasOwnProperty("cardId")&&(typeof t.cardId=="number"?n.cardId=i.longs===String?String(t.cardId):t.cardId:n.cardId=i.longs===String?r.Long.prototype.toString.call(t.cardId):i.longs===Number?new r.LongBits(t.cardId.low>>>0,t.cardId.high>>>0).toNumber():t.cardId),t.cardName!=null&&t.hasOwnProperty("cardName")&&(n.cardName=t.cardName),t.modules&&t.modules.length){n.modules=[];for(let o=0;o>>3){case 1:{a.moduleType=i.int32();break}case 2:{a.moduleHeader=u.bilibili.app.listener.v1.PkcmHeader.decode(i,i.uint32());break}case 3:{a.moduleArchive=u.bilibili.app.listener.v1.PkcmArchive.decode(i,i.uint32());break}case 4:{a.moduleCbtn=u.bilibili.app.listener.v1.PkcmCenterButton.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},e.fromObject=function(i){if(i instanceof u.bilibili.app.listener.v1.CardModule)return i;let n=new u.bilibili.app.listener.v1.CardModule;switch(i.moduleType){default:if(typeof i.moduleType=="number"){n.moduleType=i.moduleType;break}break;case"Module_invalid":case 0:n.moduleType=0;break;case"Module_header":case 1:n.moduleType=1;break;case"Module_archive":case 2:n.moduleType=2;break;case"Module_cbtn":case 3:n.moduleType=3;break}if(i.moduleHeader!=null){if(typeof i.moduleHeader!="object")throw TypeError(".bilibili.app.listener.v1.CardModule.moduleHeader: object expected");n.moduleHeader=u.bilibili.app.listener.v1.PkcmHeader.fromObject(i.moduleHeader)}if(i.moduleArchive!=null){if(typeof i.moduleArchive!="object")throw TypeError(".bilibili.app.listener.v1.CardModule.moduleArchive: object expected");n.moduleArchive=u.bilibili.app.listener.v1.PkcmArchive.fromObject(i.moduleArchive)}if(i.moduleCbtn!=null){if(typeof i.moduleCbtn!="object")throw TypeError(".bilibili.app.listener.v1.CardModule.moduleCbtn: object expected");n.moduleCbtn=u.bilibili.app.listener.v1.PkcmCenterButton.fromObject(i.moduleCbtn)}return n},e.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.moduleType=n.enums===String?"Module_invalid":0),i.moduleType!=null&&i.hasOwnProperty("moduleType")&&(o.moduleType=n.enums===String?u.bilibili.app.listener.v1.CardModuleType[i.moduleType]===void 0?i.moduleType:u.bilibili.app.listener.v1.CardModuleType[i.moduleType]:i.moduleType),i.moduleHeader!=null&&i.hasOwnProperty("moduleHeader")&&(o.moduleHeader=u.bilibili.app.listener.v1.PkcmHeader.toObject(i.moduleHeader,n),n.oneofs&&(o.module="moduleHeader")),i.moduleArchive!=null&&i.hasOwnProperty("moduleArchive")&&(o.moduleArchive=u.bilibili.app.listener.v1.PkcmArchive.toObject(i.moduleArchive,n),n.oneofs&&(o.module="moduleArchive")),i.moduleCbtn!=null&&i.hasOwnProperty("moduleCbtn")&&(o.moduleCbtn=u.bilibili.app.listener.v1.PkcmCenterButton.toObject(i.moduleCbtn,n),n.oneofs&&(o.module="moduleCbtn")),o},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.app.listener.v1.CardModule"},e}(),c.CardModuleType=function(){let e={},l=Object.create(e);return l[e[0]="Module_invalid"]=0,l[e[1]="Module_header"]=1,l[e[2]="Module_archive"]=2,l[e[3]="Module_cbtn"]=3,l}(),c.PkcmHeader=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.desc=t.string();break}case 3:{o.btnIcon=t.string();break}case 4:{o.btnText=t.string();break}case 5:{o.btnUri=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.listener.v1.PkcmHeader)return t;let i=new u.bilibili.app.listener.v1.PkcmHeader;return t.title!=null&&(i.title=String(t.title)),t.desc!=null&&(i.desc=String(t.desc)),t.btnIcon!=null&&(i.btnIcon=String(t.btnIcon)),t.btnText!=null&&(i.btnText=String(t.btnText)),t.btnUri!=null&&(i.btnUri=String(t.btnUri)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.title="",n.desc="",n.btnIcon="",n.btnText="",n.btnUri=""),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.desc!=null&&t.hasOwnProperty("desc")&&(n.desc=t.desc),t.btnIcon!=null&&t.hasOwnProperty("btnIcon")&&(n.btnIcon=t.btnIcon),t.btnText!=null&&t.hasOwnProperty("btnText")&&(n.btnText=t.btnText),t.btnUri!=null&&t.hasOwnProperty("btnUri")&&(n.btnUri=t.btnUri),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.listener.v1.PkcmHeader"},e}(),c.PkcmArchive=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.arc=u.bilibili.app.listener.v1.PickArchive.decode(t,t.uint32());break}case 2:{o.pickReason=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.listener.v1.PkcmArchive)return t;let i=new u.bilibili.app.listener.v1.PkcmArchive;if(t.arc!=null){if(typeof t.arc!="object")throw TypeError(".bilibili.app.listener.v1.PkcmArchive.arc: object expected");i.arc=u.bilibili.app.listener.v1.PickArchive.fromObject(t.arc)}return t.pickReason!=null&&(i.pickReason=String(t.pickReason)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.arc=null,n.pickReason=""),t.arc!=null&&t.hasOwnProperty("arc")&&(n.arc=u.bilibili.app.listener.v1.PickArchive.toObject(t.arc,i)),t.pickReason!=null&&t.hasOwnProperty("pickReason")&&(n.pickReason=t.pickReason),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.listener.v1.PkcmArchive"},e}(),c.PickArchive=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.item=u.bilibili.app.listener.v1.PlayItem.decode(t,t.uint32());break}case 2:{o.title=t.string();break}case 3:{o.owner=u.bilibili.app.listener.v1.PickArchiveAuthor.decode(t,t.uint32());break}case 4:{o.cover=t.string();break}case 5:{o.duration=t.int64();break}case 6:{o.parts=t.int32();break}case 7:{o.statView=t.int32();break}case 8:{o.statReply=t.int32();break}case 9:{o.state=t.int32();break}case 10:{o.message=t.string();break}case 11:{o.useStatViewVt=t.bool();break}case 12:{o.statViewVtText=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.listener.v1.PickArchive)return t;let i=new u.bilibili.app.listener.v1.PickArchive;if(t.item!=null){if(typeof t.item!="object")throw TypeError(".bilibili.app.listener.v1.PickArchive.item: object expected");i.item=u.bilibili.app.listener.v1.PlayItem.fromObject(t.item)}if(t.title!=null&&(i.title=String(t.title)),t.owner!=null){if(typeof t.owner!="object")throw TypeError(".bilibili.app.listener.v1.PickArchive.owner: object expected");i.owner=u.bilibili.app.listener.v1.PickArchiveAuthor.fromObject(t.owner)}return t.cover!=null&&(i.cover=String(t.cover)),t.duration!=null&&(r.Long?(i.duration=r.Long.fromValue(t.duration)).unsigned=!1:typeof t.duration=="string"?i.duration=parseInt(t.duration,10):typeof t.duration=="number"?i.duration=t.duration:typeof t.duration=="object"&&(i.duration=new r.LongBits(t.duration.low>>>0,t.duration.high>>>0).toNumber())),t.parts!=null&&(i.parts=t.parts|0),t.statView!=null&&(i.statView=t.statView|0),t.statReply!=null&&(i.statReply=t.statReply|0),t.state!=null&&(i.state=t.state|0),t.message!=null&&(i.message=String(t.message)),t.useStatViewVt!=null&&(i.useStatViewVt=!!t.useStatViewVt),t.statViewVtText!=null&&(i.statViewVtText=String(t.statViewVtText)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.item=null,n.title="",n.owner=null,n.cover="",r.Long){let o=new r.Long(0,0,!1);n.duration=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.duration=i.longs===String?"0":0;n.parts=0,n.statView=0,n.statReply=0,n.state=0,n.message="",n.useStatViewVt=!1,n.statViewVtText=""}return t.item!=null&&t.hasOwnProperty("item")&&(n.item=u.bilibili.app.listener.v1.PlayItem.toObject(t.item,i)),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.owner!=null&&t.hasOwnProperty("owner")&&(n.owner=u.bilibili.app.listener.v1.PickArchiveAuthor.toObject(t.owner,i)),t.cover!=null&&t.hasOwnProperty("cover")&&(n.cover=t.cover),t.duration!=null&&t.hasOwnProperty("duration")&&(typeof t.duration=="number"?n.duration=i.longs===String?String(t.duration):t.duration:n.duration=i.longs===String?r.Long.prototype.toString.call(t.duration):i.longs===Number?new r.LongBits(t.duration.low>>>0,t.duration.high>>>0).toNumber():t.duration),t.parts!=null&&t.hasOwnProperty("parts")&&(n.parts=t.parts),t.statView!=null&&t.hasOwnProperty("statView")&&(n.statView=t.statView),t.statReply!=null&&t.hasOwnProperty("statReply")&&(n.statReply=t.statReply),t.state!=null&&t.hasOwnProperty("state")&&(n.state=t.state),t.message!=null&&t.hasOwnProperty("message")&&(n.message=t.message),t.useStatViewVt!=null&&t.hasOwnProperty("useStatViewVt")&&(n.useStatViewVt=t.useStatViewVt),t.statViewVtText!=null&&t.hasOwnProperty("statViewVtText")&&(n.statViewVtText=t.statViewVtText),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.listener.v1.PickArchive"},e}(),c.PickArchiveAuthor=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.mid=t.int64();break}case 2:{o.name=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.listener.v1.PickArchiveAuthor)return t;let i=new u.bilibili.app.listener.v1.PickArchiveAuthor;return t.mid!=null&&(r.Long?(i.mid=r.Long.fromValue(t.mid)).unsigned=!1:typeof t.mid=="string"?i.mid=parseInt(t.mid,10):typeof t.mid=="number"?i.mid=t.mid:typeof t.mid=="object"&&(i.mid=new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber())),t.name!=null&&(i.name=String(t.name)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.mid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mid=i.longs===String?"0":0;n.name=""}return t.mid!=null&&t.hasOwnProperty("mid")&&(typeof t.mid=="number"?n.mid=i.longs===String?String(t.mid):t.mid:n.mid=i.longs===String?r.Long.prototype.toString.call(t.mid):i.longs===Number?new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber():t.mid),t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.listener.v1.PickArchiveAuthor"},e}(),c.PkcmCenterButton=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.iconHead=t.string();break}case 2:{o.iconTail=t.string();break}case 3:{o.title=t.string();break}case 4:{o.uri=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.listener.v1.PkcmCenterButton)return t;let i=new u.bilibili.app.listener.v1.PkcmCenterButton;return t.iconHead!=null&&(i.iconHead=String(t.iconHead)),t.iconTail!=null&&(i.iconTail=String(t.iconTail)),t.title!=null&&(i.title=String(t.title)),t.uri!=null&&(i.uri=String(t.uri)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.iconHead="",n.iconTail="",n.title="",n.uri=""),t.iconHead!=null&&t.hasOwnProperty("iconHead")&&(n.iconHead=t.iconHead),t.iconTail!=null&&t.hasOwnProperty("iconTail")&&(n.iconTail=t.iconTail),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.listener.v1.PkcmCenterButton"},e}(),c.PickCardDetailReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.cardId=t.int64();break}case 2:{o.pickId=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.listener.v1.PickCardDetailReq)return t;let i=new u.bilibili.app.listener.v1.PickCardDetailReq;return t.cardId!=null&&(r.Long?(i.cardId=r.Long.fromValue(t.cardId)).unsigned=!1:typeof t.cardId=="string"?i.cardId=parseInt(t.cardId,10):typeof t.cardId=="number"?i.cardId=t.cardId:typeof t.cardId=="object"&&(i.cardId=new r.LongBits(t.cardId.low>>>0,t.cardId.high>>>0).toNumber())),t.pickId!=null&&(r.Long?(i.pickId=r.Long.fromValue(t.pickId)).unsigned=!1:typeof t.pickId=="string"?i.pickId=parseInt(t.pickId,10):typeof t.pickId=="number"?i.pickId=t.pickId:typeof t.pickId=="object"&&(i.pickId=new r.LongBits(t.pickId.low>>>0,t.pickId.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.cardId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.cardId=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.pickId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.pickId=i.longs===String?"0":0}return t.cardId!=null&&t.hasOwnProperty("cardId")&&(typeof t.cardId=="number"?n.cardId=i.longs===String?String(t.cardId):t.cardId:n.cardId=i.longs===String?r.Long.prototype.toString.call(t.cardId):i.longs===Number?new r.LongBits(t.cardId.low>>>0,t.cardId.high>>>0).toNumber():t.cardId),t.pickId!=null&&t.hasOwnProperty("pickId")&&(typeof t.pickId=="number"?n.pickId=i.longs===String?String(t.pickId):t.pickId:n.pickId=i.longs===String?r.Long.prototype.toString.call(t.pickId):i.longs===Number?new r.LongBits(t.pickId.low>>>0,t.pickId.high>>>0).toNumber():t.pickId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.listener.v1.PickCardDetailReq"},e}(),c.PickCardDetailResp=function(){function e(l){if(this.modules=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.cardId=t.int64();break}case 2:{o.pickId=t.int64();break}case 3:{o.modules&&o.modules.length||(o.modules=[]),o.modules.push(u.bilibili.app.listener.v1.CardModule.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.listener.v1.PickCardDetailResp)return t;let i=new u.bilibili.app.listener.v1.PickCardDetailResp;if(t.cardId!=null&&(r.Long?(i.cardId=r.Long.fromValue(t.cardId)).unsigned=!1:typeof t.cardId=="string"?i.cardId=parseInt(t.cardId,10):typeof t.cardId=="number"?i.cardId=t.cardId:typeof t.cardId=="object"&&(i.cardId=new r.LongBits(t.cardId.low>>>0,t.cardId.high>>>0).toNumber())),t.pickId!=null&&(r.Long?(i.pickId=r.Long.fromValue(t.pickId)).unsigned=!1:typeof t.pickId=="string"?i.pickId=parseInt(t.pickId,10):typeof t.pickId=="number"?i.pickId=t.pickId:typeof t.pickId=="object"&&(i.pickId=new r.LongBits(t.pickId.low>>>0,t.pickId.high>>>0).toNumber())),t.modules){if(!Array.isArray(t.modules))throw TypeError(".bilibili.app.listener.v1.PickCardDetailResp.modules: array expected");i.modules=[];for(let n=0;n>>0,t.cardId.high>>>0).toNumber():t.cardId),t.pickId!=null&&t.hasOwnProperty("pickId")&&(typeof t.pickId=="number"?n.pickId=i.longs===String?String(t.pickId):t.pickId:n.pickId=i.longs===String?r.Long.prototype.toString.call(t.pickId):i.longs===Number?new r.LongBits(t.pickId.low>>>0,t.pickId.high>>>0).toNumber():t.pickId),t.modules&&t.modules.length){n.modules=[];for(let o=0;o>>3){case 1:{o.eventType=t.int32();break}case 2:{o.item=u.bilibili.app.listener.v1.PlayItem.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.listener.v1.EventReq)return t;let i=new u.bilibili.app.listener.v1.EventReq;switch(t.eventType){default:if(typeof t.eventType=="number"){i.eventType=t.eventType;break}break;case"INVALID":case 0:i.eventType=0;break;case"GUIDE_BAR_SHOW":case 1:i.eventType=1;break}if(t.item!=null){if(typeof t.item!="object")throw TypeError(".bilibili.app.listener.v1.EventReq.item: object expected");i.item=u.bilibili.app.listener.v1.PlayItem.fromObject(t.item)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.eventType=i.enums===String?"INVALID":0,n.item=null),t.eventType!=null&&t.hasOwnProperty("eventType")&&(n.eventType=i.enums===String?u.bilibili.app.listener.v1.EventReq.EventType[t.eventType]===void 0?t.eventType:u.bilibili.app.listener.v1.EventReq.EventType[t.eventType]:t.eventType),t.item!=null&&t.hasOwnProperty("item")&&(n.item=u.bilibili.app.listener.v1.PlayItem.toObject(t.item,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.listener.v1.EventReq"},e.EventType=function(){let l={},t=Object.create(l);return t[l[0]="INVALID"]=0,t[l[1]="GUIDE_BAR_SHOW"]=1,t}(),e}(),c.EventResp=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){default:t.skipType(a&7);break}}return o},e.fromObject=function(t){return t instanceof u.bilibili.app.listener.v1.EventResp?t:new u.bilibili.app.listener.v1.EventResp},e.toObject=function(){return{}},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.listener.v1.EventResp"},e}(),c.MedialistReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.listType=t.int64();break}case 2:{o.bizId=t.int64();break}case 3:{o.offset=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.listener.v1.MedialistReq)return t;let i=new u.bilibili.app.listener.v1.MedialistReq;return t.listType!=null&&(r.Long?(i.listType=r.Long.fromValue(t.listType)).unsigned=!1:typeof t.listType=="string"?i.listType=parseInt(t.listType,10):typeof t.listType=="number"?i.listType=t.listType:typeof t.listType=="object"&&(i.listType=new r.LongBits(t.listType.low>>>0,t.listType.high>>>0).toNumber())),t.bizId!=null&&(r.Long?(i.bizId=r.Long.fromValue(t.bizId)).unsigned=!1:typeof t.bizId=="string"?i.bizId=parseInt(t.bizId,10):typeof t.bizId=="number"?i.bizId=t.bizId:typeof t.bizId=="object"&&(i.bizId=new r.LongBits(t.bizId.low>>>0,t.bizId.high>>>0).toNumber())),t.offset!=null&&(i.offset=String(t.offset)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.listType=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.listType=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.bizId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.bizId=i.longs===String?"0":0;n.offset=""}return t.listType!=null&&t.hasOwnProperty("listType")&&(typeof t.listType=="number"?n.listType=i.longs===String?String(t.listType):t.listType:n.listType=i.longs===String?r.Long.prototype.toString.call(t.listType):i.longs===Number?new r.LongBits(t.listType.low>>>0,t.listType.high>>>0).toNumber():t.listType),t.bizId!=null&&t.hasOwnProperty("bizId")&&(typeof t.bizId=="number"?n.bizId=i.longs===String?String(t.bizId):t.bizId:n.bizId=i.longs===String?r.Long.prototype.toString.call(t.bizId):i.longs===Number?new r.LongBits(t.bizId.low>>>0,t.bizId.high>>>0).toNumber():t.bizId),t.offset!=null&&t.hasOwnProperty("offset")&&(n.offset=t.offset),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.listener.v1.MedialistReq"},e}(),c.MedialistResp=function(){function e(l){if(this.items=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.total=t.int64();break}case 2:{o.hasMore=t.bool();break}case 3:{o.offset=t.string();break}case 4:{o.items&&o.items.length||(o.items=[]),o.items.push(u.bilibili.app.listener.v1.MedialistItem.decode(t,t.uint32()));break}case 5:{o.upInfo=u.bilibili.app.listener.v1.MedialistUpInfo.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.listener.v1.MedialistResp)return t;let i=new u.bilibili.app.listener.v1.MedialistResp;if(t.total!=null&&(r.Long?(i.total=r.Long.fromValue(t.total)).unsigned=!1:typeof t.total=="string"?i.total=parseInt(t.total,10):typeof t.total=="number"?i.total=t.total:typeof t.total=="object"&&(i.total=new r.LongBits(t.total.low>>>0,t.total.high>>>0).toNumber())),t.hasMore!=null&&(i.hasMore=!!t.hasMore),t.offset!=null&&(i.offset=String(t.offset)),t.items){if(!Array.isArray(t.items))throw TypeError(".bilibili.app.listener.v1.MedialistResp.items: array expected");i.items=[];for(let n=0;n>>0,t.total.high>>>0).toNumber():t.total),t.hasMore!=null&&t.hasOwnProperty("hasMore")&&(n.hasMore=t.hasMore),t.offset!=null&&t.hasOwnProperty("offset")&&(n.offset=t.offset),t.items&&t.items.length){n.items=[];for(let o=0;o>>3){case 1:{o.item=u.bilibili.app.listener.v1.PlayItem.decode(t,t.uint32());break}case 2:{o.title=t.string();break}case 3:{o.cover=t.string();break}case 4:{o.duration=t.int64();break}case 5:{o.parts=t.int32();break}case 6:{o.upMid=t.int64();break}case 7:{o.upName=t.string();break}case 8:{o.state=t.int32();break}case 9:{o.message=t.string();break}case 10:{o.statView=t.int64();break}case 11:{o.statReply=t.int64();break}case 12:{o.useStatViewVt=t.bool();break}case 13:{o.statViewVtText=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.listener.v1.MedialistItem)return t;let i=new u.bilibili.app.listener.v1.MedialistItem;if(t.item!=null){if(typeof t.item!="object")throw TypeError(".bilibili.app.listener.v1.MedialistItem.item: object expected");i.item=u.bilibili.app.listener.v1.PlayItem.fromObject(t.item)}return t.title!=null&&(i.title=String(t.title)),t.cover!=null&&(i.cover=String(t.cover)),t.duration!=null&&(r.Long?(i.duration=r.Long.fromValue(t.duration)).unsigned=!1:typeof t.duration=="string"?i.duration=parseInt(t.duration,10):typeof t.duration=="number"?i.duration=t.duration:typeof t.duration=="object"&&(i.duration=new r.LongBits(t.duration.low>>>0,t.duration.high>>>0).toNumber())),t.parts!=null&&(i.parts=t.parts|0),t.upMid!=null&&(r.Long?(i.upMid=r.Long.fromValue(t.upMid)).unsigned=!1:typeof t.upMid=="string"?i.upMid=parseInt(t.upMid,10):typeof t.upMid=="number"?i.upMid=t.upMid:typeof t.upMid=="object"&&(i.upMid=new r.LongBits(t.upMid.low>>>0,t.upMid.high>>>0).toNumber())),t.upName!=null&&(i.upName=String(t.upName)),t.state!=null&&(i.state=t.state|0),t.message!=null&&(i.message=String(t.message)),t.statView!=null&&(r.Long?(i.statView=r.Long.fromValue(t.statView)).unsigned=!1:typeof t.statView=="string"?i.statView=parseInt(t.statView,10):typeof t.statView=="number"?i.statView=t.statView:typeof t.statView=="object"&&(i.statView=new r.LongBits(t.statView.low>>>0,t.statView.high>>>0).toNumber())),t.statReply!=null&&(r.Long?(i.statReply=r.Long.fromValue(t.statReply)).unsigned=!1:typeof t.statReply=="string"?i.statReply=parseInt(t.statReply,10):typeof t.statReply=="number"?i.statReply=t.statReply:typeof t.statReply=="object"&&(i.statReply=new r.LongBits(t.statReply.low>>>0,t.statReply.high>>>0).toNumber())),t.useStatViewVt!=null&&(i.useStatViewVt=!!t.useStatViewVt),t.statViewVtText!=null&&(i.statViewVtText=String(t.statViewVtText)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.item=null,n.title="",n.cover="",r.Long){let o=new r.Long(0,0,!1);n.duration=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.duration=i.longs===String?"0":0;if(n.parts=0,r.Long){let o=new r.Long(0,0,!1);n.upMid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.upMid=i.longs===String?"0":0;if(n.upName="",n.state=0,n.message="",r.Long){let o=new r.Long(0,0,!1);n.statView=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.statView=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.statReply=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.statReply=i.longs===String?"0":0;n.useStatViewVt=!1,n.statViewVtText=""}return t.item!=null&&t.hasOwnProperty("item")&&(n.item=u.bilibili.app.listener.v1.PlayItem.toObject(t.item,i)),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.cover!=null&&t.hasOwnProperty("cover")&&(n.cover=t.cover),t.duration!=null&&t.hasOwnProperty("duration")&&(typeof t.duration=="number"?n.duration=i.longs===String?String(t.duration):t.duration:n.duration=i.longs===String?r.Long.prototype.toString.call(t.duration):i.longs===Number?new r.LongBits(t.duration.low>>>0,t.duration.high>>>0).toNumber():t.duration),t.parts!=null&&t.hasOwnProperty("parts")&&(n.parts=t.parts),t.upMid!=null&&t.hasOwnProperty("upMid")&&(typeof t.upMid=="number"?n.upMid=i.longs===String?String(t.upMid):t.upMid:n.upMid=i.longs===String?r.Long.prototype.toString.call(t.upMid):i.longs===Number?new r.LongBits(t.upMid.low>>>0,t.upMid.high>>>0).toNumber():t.upMid),t.upName!=null&&t.hasOwnProperty("upName")&&(n.upName=t.upName),t.state!=null&&t.hasOwnProperty("state")&&(n.state=t.state),t.message!=null&&t.hasOwnProperty("message")&&(n.message=t.message),t.statView!=null&&t.hasOwnProperty("statView")&&(typeof t.statView=="number"?n.statView=i.longs===String?String(t.statView):t.statView:n.statView=i.longs===String?r.Long.prototype.toString.call(t.statView):i.longs===Number?new r.LongBits(t.statView.low>>>0,t.statView.high>>>0).toNumber():t.statView),t.statReply!=null&&t.hasOwnProperty("statReply")&&(typeof t.statReply=="number"?n.statReply=i.longs===String?String(t.statReply):t.statReply:n.statReply=i.longs===String?r.Long.prototype.toString.call(t.statReply):i.longs===Number?new r.LongBits(t.statReply.low>>>0,t.statReply.high>>>0).toNumber():t.statReply),t.useStatViewVt!=null&&t.hasOwnProperty("useStatViewVt")&&(n.useStatViewVt=t.useStatViewVt),t.statViewVtText!=null&&t.hasOwnProperty("statViewVtText")&&(n.statViewVtText=t.statViewVtText),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.listener.v1.MedialistItem"},e}(),c.MedialistUpInfo=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.mid=t.int64();break}case 2:{o.avatar=t.string();break}case 3:{o.fans=t.int64();break}case 4:{o.name=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.listener.v1.MedialistUpInfo)return t;let i=new u.bilibili.app.listener.v1.MedialistUpInfo;return t.mid!=null&&(r.Long?(i.mid=r.Long.fromValue(t.mid)).unsigned=!1:typeof t.mid=="string"?i.mid=parseInt(t.mid,10):typeof t.mid=="number"?i.mid=t.mid:typeof t.mid=="object"&&(i.mid=new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber())),t.avatar!=null&&(i.avatar=String(t.avatar)),t.fans!=null&&(r.Long?(i.fans=r.Long.fromValue(t.fans)).unsigned=!1:typeof t.fans=="string"?i.fans=parseInt(t.fans,10):typeof t.fans=="number"?i.fans=t.fans:typeof t.fans=="object"&&(i.fans=new r.LongBits(t.fans.low>>>0,t.fans.high>>>0).toNumber())),t.name!=null&&(i.name=String(t.name)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.mid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mid=i.longs===String?"0":0;if(n.avatar="",r.Long){let o=new r.Long(0,0,!1);n.fans=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.fans=i.longs===String?"0":0;n.name=""}return t.mid!=null&&t.hasOwnProperty("mid")&&(typeof t.mid=="number"?n.mid=i.longs===String?String(t.mid):t.mid:n.mid=i.longs===String?r.Long.prototype.toString.call(t.mid):i.longs===Number?new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber():t.mid),t.avatar!=null&&t.hasOwnProperty("avatar")&&(n.avatar=t.avatar),t.fans!=null&&t.hasOwnProperty("fans")&&(typeof t.fans=="number"?n.fans=i.longs===String?String(t.fans):t.fans:n.fans=i.longs===String?r.Long.prototype.toString.call(t.fans):i.longs===Number?new r.LongBits(t.fans.low>>>0,t.fans.high>>>0).toNumber():t.fans),t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.listener.v1.MedialistUpInfo"},e}(),c.Music=function(){function e(l,t,i){b.rpc.Service.call(this,l,t,i)}return(e.prototype=Object.create(b.rpc.Service.prototype)).constructor=e,e.create=function(t,i,n){return new this(t,i,n)},Object.defineProperty(e.prototype.favTabShow=function l(t,i){return this.rpcCall(l,u.bilibili.app.listener.v1.FavTabShowReq,u.bilibili.app.listener.v1.FavTabShowResp,t,i)},"name",{value:"FavTabShow"}),Object.defineProperty(e.prototype.mainFavMusicSubTabList=function l(t,i){return this.rpcCall(l,u.bilibili.app.listener.v1.MainFavMusicSubTabListReq,u.bilibili.app.listener.v1.MainFavMusicSubTabListResp,t,i)},"name",{value:"MainFavMusicSubTabList"}),Object.defineProperty(e.prototype.mainFavMusicMenuList=function l(t,i){return this.rpcCall(l,u.bilibili.app.listener.v1.MainFavMusicMenuListReq,u.bilibili.app.listener.v1.MainFavMusicMenuListResp,t,i)},"name",{value:"MainFavMusicMenuList"}),Object.defineProperty(e.prototype.menuEdit=function l(t,i){return this.rpcCall(l,u.bilibili.app.listener.v1.MenuEditReq,u.bilibili.app.listener.v1.MenuEditResp,t,i)},"name",{value:"MenuEdit"}),Object.defineProperty(e.prototype.menuDelete=function l(t,i){return this.rpcCall(l,u.bilibili.app.listener.v1.MenuDeleteReq,u.bilibili.app.listener.v1.MenuDeleteResp,t,i)},"name",{value:"MenuDelete"}),Object.defineProperty(e.prototype.menuSubscribe=function l(t,i){return this.rpcCall(l,u.bilibili.app.listener.v1.MenuSubscribeReq,u.bilibili.app.listener.v1.MenuSubscribeResp,t,i)},"name",{value:"MenuSubscribe"}),Object.defineProperty(e.prototype.click=function l(t,i){return this.rpcCall(l,u.bilibili.app.listener.v1.ClickReq,u.bilibili.app.listener.v1.ClickResp,t,i)},"name",{value:"Click"}),e}(),c.FavTabShowReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.mid=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.listener.v1.FavTabShowReq)return t;let i=new u.bilibili.app.listener.v1.FavTabShowReq;return t.mid!=null&&(r.Long?(i.mid=r.Long.fromValue(t.mid)).unsigned=!1:typeof t.mid=="string"?i.mid=parseInt(t.mid,10):typeof t.mid=="number"?i.mid=t.mid:typeof t.mid=="object"&&(i.mid=new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(r.Long){let o=new r.Long(0,0,!1);n.mid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mid=i.longs===String?"0":0;return t.mid!=null&&t.hasOwnProperty("mid")&&(typeof t.mid=="number"?n.mid=i.longs===String?String(t.mid):t.mid:n.mid=i.longs===String?r.Long.prototype.toString.call(t.mid):i.longs===Number?new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber():t.mid),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.listener.v1.FavTabShowReq"},e}(),c.FavTabShowResp=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.showMenu=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.listener.v1.FavTabShowResp)return t;let i=new u.bilibili.app.listener.v1.FavTabShowResp;return t.showMenu!=null&&(i.showMenu=!!t.showMenu),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.showMenu=!1),t.showMenu!=null&&t.hasOwnProperty("showMenu")&&(n.showMenu=t.showMenu),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.listener.v1.FavTabShowResp"},e}(),c.MainFavMusicSubTabListReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){default:t.skipType(a&7);break}}return o},e.fromObject=function(t){return t instanceof u.bilibili.app.listener.v1.MainFavMusicSubTabListReq?t:new u.bilibili.app.listener.v1.MainFavMusicSubTabListReq},e.toObject=function(){return{}},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.listener.v1.MainFavMusicSubTabListReq"},e}(),c.MainFavMusicSubTabListResp=function(){function e(l){if(this.tabs=[],this.firstPageRes={},l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.tabs&&o.tabs.length||(o.tabs=[]),o.tabs.push(u.bilibili.app.listener.v1.MusicSubTab.decode(t,t.uint32()));break}case 2:{o.defaultTabRes=u.bilibili.app.listener.v1.MainFavMusicMenuListResp.decode(t,t.uint32());break}case 3:{o.firstPageRes===r.emptyObject&&(o.firstPageRes={});let v=t.uint32()+t.pos;for(a=0,y=null;t.pos>>3){case 1:a=t.int32();break;case 2:y=u.bilibili.app.listener.v1.MainFavMusicMenuListResp.decode(t,t.uint32());break;default:t.skipType(g&7);break}}o.firstPageRes[a]=y;break}default:t.skipType(s&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.listener.v1.MainFavMusicSubTabListResp)return t;let i=new u.bilibili.app.listener.v1.MainFavMusicSubTabListResp;if(t.tabs){if(!Array.isArray(t.tabs))throw TypeError(".bilibili.app.listener.v1.MainFavMusicSubTabListResp.tabs: array expected");i.tabs=[];for(let n=0;n>>3){case 1:{o.name=t.string();break}case 2:{o.tabType=t.int32();break}case 3:{o.total=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.listener.v1.MusicSubTab)return t;let i=new u.bilibili.app.listener.v1.MusicSubTab;return t.name!=null&&(i.name=String(t.name)),t.tabType!=null&&(i.tabType=t.tabType|0),t.total!=null&&(r.Long?(i.total=r.Long.fromValue(t.total)).unsigned=!1:typeof t.total=="string"?i.total=parseInt(t.total,10):typeof t.total=="number"?i.total=t.total:typeof t.total=="object"&&(i.total=new r.LongBits(t.total.low>>>0,t.total.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(n.name="",n.tabType=0,r.Long){let o=new r.Long(0,0,!1);n.total=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.total=i.longs===String?"0":0;return t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),t.tabType!=null&&t.hasOwnProperty("tabType")&&(n.tabType=t.tabType),t.total!=null&&t.hasOwnProperty("total")&&(typeof t.total=="number"?n.total=i.longs===String?String(t.total):t.total:n.total=i.longs===String?r.Long.prototype.toString.call(t.total):i.longs===Number?new r.LongBits(t.total.low>>>0,t.total.high>>>0).toNumber():t.total),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.listener.v1.MusicSubTab"},e}(),c.MusicMenu=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.id=t.int64();break}case 2:{o.menuType=t.int32();break}case 3:{o.title=t.string();break}case 4:{o.desc=t.string();break}case 5:{o.cover=t.string();break}case 6:{o.owner=u.bilibili.app.listener.v1.MusicMenuAuthor.decode(t,t.uint32());break}case 7:{o.state=t.int32();break}case 8:{o.attr=t.int64();break}case 9:{o.stat=u.bilibili.app.listener.v1.MusicMenuStat.decode(t,t.uint32());break}case 10:{o.total=t.int64();break}case 11:{o.ctime=t.int64();break}case 12:{o.uri=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.listener.v1.MusicMenu)return t;let i=new u.bilibili.app.listener.v1.MusicMenu;if(t.id!=null&&(r.Long?(i.id=r.Long.fromValue(t.id)).unsigned=!1:typeof t.id=="string"?i.id=parseInt(t.id,10):typeof t.id=="number"?i.id=t.id:typeof t.id=="object"&&(i.id=new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber())),t.menuType!=null&&(i.menuType=t.menuType|0),t.title!=null&&(i.title=String(t.title)),t.desc!=null&&(i.desc=String(t.desc)),t.cover!=null&&(i.cover=String(t.cover)),t.owner!=null){if(typeof t.owner!="object")throw TypeError(".bilibili.app.listener.v1.MusicMenu.owner: object expected");i.owner=u.bilibili.app.listener.v1.MusicMenuAuthor.fromObject(t.owner)}if(t.state!=null&&(i.state=t.state|0),t.attr!=null&&(r.Long?(i.attr=r.Long.fromValue(t.attr)).unsigned=!1:typeof t.attr=="string"?i.attr=parseInt(t.attr,10):typeof t.attr=="number"?i.attr=t.attr:typeof t.attr=="object"&&(i.attr=new r.LongBits(t.attr.low>>>0,t.attr.high>>>0).toNumber())),t.stat!=null){if(typeof t.stat!="object")throw TypeError(".bilibili.app.listener.v1.MusicMenu.stat: object expected");i.stat=u.bilibili.app.listener.v1.MusicMenuStat.fromObject(t.stat)}return t.total!=null&&(r.Long?(i.total=r.Long.fromValue(t.total)).unsigned=!1:typeof t.total=="string"?i.total=parseInt(t.total,10):typeof t.total=="number"?i.total=t.total:typeof t.total=="object"&&(i.total=new r.LongBits(t.total.low>>>0,t.total.high>>>0).toNumber())),t.ctime!=null&&(r.Long?(i.ctime=r.Long.fromValue(t.ctime)).unsigned=!1:typeof t.ctime=="string"?i.ctime=parseInt(t.ctime,10):typeof t.ctime=="number"?i.ctime=t.ctime:typeof t.ctime=="object"&&(i.ctime=new r.LongBits(t.ctime.low>>>0,t.ctime.high>>>0).toNumber())),t.uri!=null&&(i.uri=String(t.uri)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.id=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.id=i.longs===String?"0":0;if(n.menuType=0,n.title="",n.desc="",n.cover="",n.owner=null,n.state=0,r.Long){let o=new r.Long(0,0,!1);n.attr=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.attr=i.longs===String?"0":0;if(n.stat=null,r.Long){let o=new r.Long(0,0,!1);n.total=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.total=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.ctime=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.ctime=i.longs===String?"0":0;n.uri=""}return t.id!=null&&t.hasOwnProperty("id")&&(typeof t.id=="number"?n.id=i.longs===String?String(t.id):t.id:n.id=i.longs===String?r.Long.prototype.toString.call(t.id):i.longs===Number?new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber():t.id),t.menuType!=null&&t.hasOwnProperty("menuType")&&(n.menuType=t.menuType),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.desc!=null&&t.hasOwnProperty("desc")&&(n.desc=t.desc),t.cover!=null&&t.hasOwnProperty("cover")&&(n.cover=t.cover),t.owner!=null&&t.hasOwnProperty("owner")&&(n.owner=u.bilibili.app.listener.v1.MusicMenuAuthor.toObject(t.owner,i)),t.state!=null&&t.hasOwnProperty("state")&&(n.state=t.state),t.attr!=null&&t.hasOwnProperty("attr")&&(typeof t.attr=="number"?n.attr=i.longs===String?String(t.attr):t.attr:n.attr=i.longs===String?r.Long.prototype.toString.call(t.attr):i.longs===Number?new r.LongBits(t.attr.low>>>0,t.attr.high>>>0).toNumber():t.attr),t.stat!=null&&t.hasOwnProperty("stat")&&(n.stat=u.bilibili.app.listener.v1.MusicMenuStat.toObject(t.stat,i)),t.total!=null&&t.hasOwnProperty("total")&&(typeof t.total=="number"?n.total=i.longs===String?String(t.total):t.total:n.total=i.longs===String?r.Long.prototype.toString.call(t.total):i.longs===Number?new r.LongBits(t.total.low>>>0,t.total.high>>>0).toNumber():t.total),t.ctime!=null&&t.hasOwnProperty("ctime")&&(typeof t.ctime=="number"?n.ctime=i.longs===String?String(t.ctime):t.ctime:n.ctime=i.longs===String?r.Long.prototype.toString.call(t.ctime):i.longs===Number?new r.LongBits(t.ctime.low>>>0,t.ctime.high>>>0).toNumber():t.ctime),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.listener.v1.MusicMenu"},e}(),c.MusicMenuAuthor=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.mid=t.int64();break}case 2:{o.name=t.string();break}case 3:{o.avatar=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.listener.v1.MusicMenuAuthor)return t;let i=new u.bilibili.app.listener.v1.MusicMenuAuthor;return t.mid!=null&&(r.Long?(i.mid=r.Long.fromValue(t.mid)).unsigned=!1:typeof t.mid=="string"?i.mid=parseInt(t.mid,10):typeof t.mid=="number"?i.mid=t.mid:typeof t.mid=="object"&&(i.mid=new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber())),t.name!=null&&(i.name=String(t.name)),t.avatar!=null&&(i.avatar=String(t.avatar)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.mid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mid=i.longs===String?"0":0;n.name="",n.avatar=""}return t.mid!=null&&t.hasOwnProperty("mid")&&(typeof t.mid=="number"?n.mid=i.longs===String?String(t.mid):t.mid:n.mid=i.longs===String?r.Long.prototype.toString.call(t.mid):i.longs===Number?new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber():t.mid),t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),t.avatar!=null&&t.hasOwnProperty("avatar")&&(n.avatar=t.avatar),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.listener.v1.MusicMenuAuthor"},e}(),c.MusicMenuStat=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.play=t.int64();break}case 2:{o.reply=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.listener.v1.MusicMenuStat)return t;let i=new u.bilibili.app.listener.v1.MusicMenuStat;return t.play!=null&&(r.Long?(i.play=r.Long.fromValue(t.play)).unsigned=!1:typeof t.play=="string"?i.play=parseInt(t.play,10):typeof t.play=="number"?i.play=t.play:typeof t.play=="object"&&(i.play=new r.LongBits(t.play.low>>>0,t.play.high>>>0).toNumber())),t.reply!=null&&(r.Long?(i.reply=r.Long.fromValue(t.reply)).unsigned=!1:typeof t.reply=="string"?i.reply=parseInt(t.reply,10):typeof t.reply=="number"?i.reply=t.reply:typeof t.reply=="object"&&(i.reply=new r.LongBits(t.reply.low>>>0,t.reply.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.play=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.play=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.reply=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.reply=i.longs===String?"0":0}return t.play!=null&&t.hasOwnProperty("play")&&(typeof t.play=="number"?n.play=i.longs===String?String(t.play):t.play:n.play=i.longs===String?r.Long.prototype.toString.call(t.play):i.longs===Number?new r.LongBits(t.play.low>>>0,t.play.high>>>0).toNumber():t.play),t.reply!=null&&t.hasOwnProperty("reply")&&(typeof t.reply=="number"?n.reply=i.longs===String?String(t.reply):t.reply:n.reply=i.longs===String?r.Long.prototype.toString.call(t.reply):i.longs===Number?new r.LongBits(t.reply.low>>>0,t.reply.high>>>0).toNumber():t.reply),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.listener.v1.MusicMenuStat"},e}(),c.MainFavMusicMenuListReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.tabType=t.int32();break}case 2:{o.offset=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.listener.v1.MainFavMusicMenuListReq)return t;let i=new u.bilibili.app.listener.v1.MainFavMusicMenuListReq;return t.tabType!=null&&(i.tabType=t.tabType|0),t.offset!=null&&(i.offset=String(t.offset)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.tabType=0,n.offset=""),t.tabType!=null&&t.hasOwnProperty("tabType")&&(n.tabType=t.tabType),t.offset!=null&&t.hasOwnProperty("offset")&&(n.offset=t.offset),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.listener.v1.MainFavMusicMenuListReq"},e}(),c.MainFavMusicMenuListResp=function(){function e(l){if(this.menuList=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.tabType=t.int32();break}case 2:{o.menuList&&o.menuList.length||(o.menuList=[]),o.menuList.push(u.bilibili.app.listener.v1.MusicMenu.decode(t,t.uint32()));break}case 3:{o.hasMore=t.bool();break}case 4:{o.offset=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.listener.v1.MainFavMusicMenuListResp)return t;let i=new u.bilibili.app.listener.v1.MainFavMusicMenuListResp;if(t.tabType!=null&&(i.tabType=t.tabType|0),t.menuList){if(!Array.isArray(t.menuList))throw TypeError(".bilibili.app.listener.v1.MainFavMusicMenuListResp.menuList: array expected");i.menuList=[];for(let n=0;n>>3){case 1:{o.id=t.int64();break}case 2:{o.title=t.string();break}case 3:{o.desc=t.string();break}case 4:{o.isPublic=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.listener.v1.MenuEditReq)return t;let i=new u.bilibili.app.listener.v1.MenuEditReq;return t.id!=null&&(r.Long?(i.id=r.Long.fromValue(t.id)).unsigned=!1:typeof t.id=="string"?i.id=parseInt(t.id,10):typeof t.id=="number"?i.id=t.id:typeof t.id=="object"&&(i.id=new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber())),t.title!=null&&(i.title=String(t.title)),t.desc!=null&&(i.desc=String(t.desc)),t.isPublic!=null&&(i.isPublic=t.isPublic|0),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.id=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.id=i.longs===String?"0":0;n.title="",n.desc="",n.isPublic=0}return t.id!=null&&t.hasOwnProperty("id")&&(typeof t.id=="number"?n.id=i.longs===String?String(t.id):t.id:n.id=i.longs===String?r.Long.prototype.toString.call(t.id):i.longs===Number?new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber():t.id),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.desc!=null&&t.hasOwnProperty("desc")&&(n.desc=t.desc),t.isPublic!=null&&t.hasOwnProperty("isPublic")&&(n.isPublic=t.isPublic),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.listener.v1.MenuEditReq"},e}(),c.MenuEditResp=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.message=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.listener.v1.MenuEditResp)return t;let i=new u.bilibili.app.listener.v1.MenuEditResp;return t.message!=null&&(i.message=String(t.message)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.message=""),t.message!=null&&t.hasOwnProperty("message")&&(n.message=t.message),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.listener.v1.MenuEditResp"},e}(),c.MenuDeleteReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.id=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.listener.v1.MenuDeleteReq)return t;let i=new u.bilibili.app.listener.v1.MenuDeleteReq;return t.id!=null&&(r.Long?(i.id=r.Long.fromValue(t.id)).unsigned=!1:typeof t.id=="string"?i.id=parseInt(t.id,10):typeof t.id=="number"?i.id=t.id:typeof t.id=="object"&&(i.id=new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(r.Long){let o=new r.Long(0,0,!1);n.id=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.id=i.longs===String?"0":0;return t.id!=null&&t.hasOwnProperty("id")&&(typeof t.id=="number"?n.id=i.longs===String?String(t.id):t.id:n.id=i.longs===String?r.Long.prototype.toString.call(t.id):i.longs===Number?new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber():t.id),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.listener.v1.MenuDeleteReq"},e}(),c.MenuDeleteResp=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.message=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.listener.v1.MenuDeleteResp)return t;let i=new u.bilibili.app.listener.v1.MenuDeleteResp;return t.message!=null&&(i.message=String(t.message)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.message=""),t.message!=null&&t.hasOwnProperty("message")&&(n.message=t.message),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.listener.v1.MenuDeleteResp"},e}(),c.MenuSubscribeReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.action=t.int32();break}case 2:{o.targetId=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.listener.v1.MenuSubscribeReq)return t;let i=new u.bilibili.app.listener.v1.MenuSubscribeReq;switch(t.action){default:if(typeof t.action=="number"){i.action=t.action;break}break;case"INVALID":case 0:i.action=0;break;case"ADD":case 1:i.action=1;break;case"DEL":case 2:i.action=2;break}return t.targetId!=null&&(r.Long?(i.targetId=r.Long.fromValue(t.targetId)).unsigned=!1:typeof t.targetId=="string"?i.targetId=parseInt(t.targetId,10):typeof t.targetId=="number"?i.targetId=t.targetId:typeof t.targetId=="object"&&(i.targetId=new r.LongBits(t.targetId.low>>>0,t.targetId.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(n.action=i.enums===String?"INVALID":0,r.Long){let o=new r.Long(0,0,!1);n.targetId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.targetId=i.longs===String?"0":0;return t.action!=null&&t.hasOwnProperty("action")&&(n.action=i.enums===String?u.bilibili.app.listener.v1.MenuSubscribeReq.SubscribeAction[t.action]===void 0?t.action:u.bilibili.app.listener.v1.MenuSubscribeReq.SubscribeAction[t.action]:t.action),t.targetId!=null&&t.hasOwnProperty("targetId")&&(typeof t.targetId=="number"?n.targetId=i.longs===String?String(t.targetId):t.targetId:n.targetId=i.longs===String?r.Long.prototype.toString.call(t.targetId):i.longs===Number?new r.LongBits(t.targetId.low>>>0,t.targetId.high>>>0).toNumber():t.targetId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.listener.v1.MenuSubscribeReq"},e.SubscribeAction=function(){let l={},t=Object.create(l);return t[l[0]="INVALID"]=0,t[l[1]="ADD"]=1,t[l[2]="DEL"]=2,t}(),e}(),c.MenuSubscribeResp=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.message=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.listener.v1.MenuSubscribeResp)return t;let i=new u.bilibili.app.listener.v1.MenuSubscribeResp;return t.message!=null&&(i.message=String(t.message)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.message=""),t.message!=null&&t.hasOwnProperty("message")&&(n.message=t.message),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.listener.v1.MenuSubscribeResp"},e}(),c.ClickReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.sid=t.int64();break}case 2:{o.action=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.listener.v1.ClickReq)return t;let i=new u.bilibili.app.listener.v1.ClickReq;switch(t.sid!=null&&(r.Long?(i.sid=r.Long.fromValue(t.sid)).unsigned=!1:typeof t.sid=="string"?i.sid=parseInt(t.sid,10):typeof t.sid=="number"?i.sid=t.sid:typeof t.sid=="object"&&(i.sid=new r.LongBits(t.sid.low>>>0,t.sid.high>>>0).toNumber())),t.action){default:if(typeof t.action=="number"){i.action=t.action;break}break;case"INVALID":case 0:i.action=0;break;case"SHARE":case 1:i.action=1;break}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.sid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.sid=i.longs===String?"0":0;n.action=i.enums===String?"INVALID":0}return t.sid!=null&&t.hasOwnProperty("sid")&&(typeof t.sid=="number"?n.sid=i.longs===String?String(t.sid):t.sid:n.sid=i.longs===String?r.Long.prototype.toString.call(t.sid):i.longs===Number?new r.LongBits(t.sid.low>>>0,t.sid.high>>>0).toNumber():t.sid),t.action!=null&&t.hasOwnProperty("action")&&(n.action=i.enums===String?u.bilibili.app.listener.v1.ClickReq.ClickAction[t.action]===void 0?t.action:u.bilibili.app.listener.v1.ClickReq.ClickAction[t.action]:t.action),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.listener.v1.ClickReq"},e.ClickAction=function(){let l={},t=Object.create(l);return t[l[0]="INVALID"]=0,t[l[1]="SHARE"]=1,t}(),e}(),c.ClickResp=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){default:t.skipType(a&7);break}}return o},e.fromObject=function(t){return t instanceof u.bilibili.app.listener.v1.ClickResp?t:new u.bilibili.app.listener.v1.ClickResp},e.toObject=function(){return{}},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.listener.v1.ClickResp"},e}(),c}(),p}(),d.mine=function(){let p={};return p.v1=function(){let c={};return c.Mine=function(){function e(l,t,i){b.rpc.Service.call(this,l,t,i)}return(e.prototype=Object.create(b.rpc.Service.prototype)).constructor=e,e.create=function(t,i,n){return new this(t,i,n)},Object.defineProperty(e.prototype.pubModule=function l(t,i){return this.rpcCall(l,u.bilibili.app.mine.v1.PubModuleReq,u.bilibili.app.mine.v1.PubModuleResp,t,i)},"name",{value:"PubModule"}),e}(),c.PubModuleReq=function(){function e(l){if(this.dynIds=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.userOriginalState=t.int64();break}case 2:{if(o.dynIds&&o.dynIds.length||(o.dynIds=[]),(a&7)===2){let y=t.uint32()+t.pos;for(;t.pos>>0,t.userOriginalState.high>>>0).toNumber())),t.dynIds){if(!Array.isArray(t.dynIds))throw TypeError(".bilibili.app.mine.v1.PubModuleReq.dynIds: array expected");i.dynIds=[];for(let n=0;n>>0,t.dynIds[n].high>>>0).toNumber())}return t.cardNum!=null&&(r.Long?(i.cardNum=r.Long.fromValue(t.cardNum)).unsigned=!1:typeof t.cardNum=="string"?i.cardNum=parseInt(t.cardNum,10):typeof t.cardNum=="number"?i.cardNum=t.cardNum:typeof t.cardNum=="object"&&(i.cardNum=new r.LongBits(t.cardNum.low>>>0,t.cardNum.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if((i.arrays||i.defaults)&&(n.dynIds=[]),i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.userOriginalState=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.userOriginalState=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.cardNum=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.cardNum=i.longs===String?"0":0}if(t.userOriginalState!=null&&t.hasOwnProperty("userOriginalState")&&(typeof t.userOriginalState=="number"?n.userOriginalState=i.longs===String?String(t.userOriginalState):t.userOriginalState:n.userOriginalState=i.longs===String?r.Long.prototype.toString.call(t.userOriginalState):i.longs===Number?new r.LongBits(t.userOriginalState.low>>>0,t.userOriginalState.high>>>0).toNumber():t.userOriginalState),t.dynIds&&t.dynIds.length){n.dynIds=[];for(let o=0;o>>0,t.dynIds[o].high>>>0).toNumber():t.dynIds[o]}return t.cardNum!=null&&t.hasOwnProperty("cardNum")&&(typeof t.cardNum=="number"?n.cardNum=i.longs===String?String(t.cardNum):t.cardNum:n.cardNum=i.longs===String?r.Long.prototype.toString.call(t.cardNum):i.longs===Number?new r.LongBits(t.cardNum.low>>>0,t.cardNum.high>>>0).toNumber():t.cardNum),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.mine.v1.PubModuleReq"},e}(),c.PubModuleResp=function(){function e(l){if(this.pubCard=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.pubCard&&o.pubCard.length||(o.pubCard=[]),o.pubCard.push(u.bilibili.app.mine.v1.PubCard.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.mine.v1.PubModuleResp)return t;let i=new u.bilibili.app.mine.v1.PubModuleResp;if(t.pubCard){if(!Array.isArray(t.pubCard))throw TypeError(".bilibili.app.mine.v1.PubModuleResp.pubCard: array expected");i.pubCard=[];for(let n=0;n>>3){case 1:{o.lightIcon=t.string();break}case 2:{o.darkIcon=t.string();break}case 3:{o.url=t.string();break}case 4:{o.text=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.mine.v1.Button)return t;let i=new u.bilibili.app.mine.v1.Button;return t.lightIcon!=null&&(i.lightIcon=String(t.lightIcon)),t.darkIcon!=null&&(i.darkIcon=String(t.darkIcon)),t.url!=null&&(i.url=String(t.url)),t.text!=null&&(i.text=String(t.text)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.lightIcon="",n.darkIcon="",n.url="",n.text=""),t.lightIcon!=null&&t.hasOwnProperty("lightIcon")&&(n.lightIcon=t.lightIcon),t.darkIcon!=null&&t.hasOwnProperty("darkIcon")&&(n.darkIcon=t.darkIcon),t.url!=null&&t.hasOwnProperty("url")&&(n.url=t.url),t.text!=null&&t.hasOwnProperty("text")&&(n.text=t.text),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.mine.v1.Button"},e}(),c.Title=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.main=t.string();break}case 2:{o.sub=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.mine.v1.Title)return t;let i=new u.bilibili.app.mine.v1.Title;return t.main!=null&&(i.main=String(t.main)),t.sub!=null&&(i.sub=String(t.sub)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.main="",n.sub=""),t.main!=null&&t.hasOwnProperty("main")&&(n.main=t.main),t.sub!=null&&t.hasOwnProperty("sub")&&(n.sub=t.sub),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.mine.v1.Title"},e}(),c.CardType=function(){let e={},l=Object.create(e);return l[e[0]="CARD_UNKNOWN"]=0,l[e[1]="PUBGUIDE"]=1,l[e[2]="UGC"]=2,l[e[3]="OPUS"]=3,l[e[4]="MORE"]=4,l}(),c.PubCard=function(){function e(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.pubGuide=u.bilibili.app.mine.v1.CardPubGuide.decode(i,i.uint32());break}case 2:{a.ugc=u.bilibili.app.mine.v1.CardUGC.decode(i,i.uint32());break}case 3:{a.opus=u.bilibili.app.mine.v1.CardOpus.decode(i,i.uint32());break}case 4:{a.more=u.bilibili.app.mine.v1.CardMore.decode(i,i.uint32());break}case 5:{a.type=i.int32();break}default:i.skipType(y&7);break}}return a},e.fromObject=function(i){if(i instanceof u.bilibili.app.mine.v1.PubCard)return i;let n=new u.bilibili.app.mine.v1.PubCard;if(i.pubGuide!=null){if(typeof i.pubGuide!="object")throw TypeError(".bilibili.app.mine.v1.PubCard.pubGuide: object expected");n.pubGuide=u.bilibili.app.mine.v1.CardPubGuide.fromObject(i.pubGuide)}if(i.ugc!=null){if(typeof i.ugc!="object")throw TypeError(".bilibili.app.mine.v1.PubCard.ugc: object expected");n.ugc=u.bilibili.app.mine.v1.CardUGC.fromObject(i.ugc)}if(i.opus!=null){if(typeof i.opus!="object")throw TypeError(".bilibili.app.mine.v1.PubCard.opus: object expected");n.opus=u.bilibili.app.mine.v1.CardOpus.fromObject(i.opus)}if(i.more!=null){if(typeof i.more!="object")throw TypeError(".bilibili.app.mine.v1.PubCard.more: object expected");n.more=u.bilibili.app.mine.v1.CardMore.fromObject(i.more)}switch(i.type){default:if(typeof i.type=="number"){n.type=i.type;break}break;case"CARD_UNKNOWN":case 0:n.type=0;break;case"PUBGUIDE":case 1:n.type=1;break;case"UGC":case 2:n.type=2;break;case"OPUS":case 3:n.type=3;break;case"MORE":case 4:n.type=4;break}return n},e.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.type=n.enums===String?"CARD_UNKNOWN":0),i.pubGuide!=null&&i.hasOwnProperty("pubGuide")&&(o.pubGuide=u.bilibili.app.mine.v1.CardPubGuide.toObject(i.pubGuide,n),n.oneofs&&(o.card="pubGuide")),i.ugc!=null&&i.hasOwnProperty("ugc")&&(o.ugc=u.bilibili.app.mine.v1.CardUGC.toObject(i.ugc,n),n.oneofs&&(o.card="ugc")),i.opus!=null&&i.hasOwnProperty("opus")&&(o.opus=u.bilibili.app.mine.v1.CardOpus.toObject(i.opus,n),n.oneofs&&(o.card="opus")),i.more!=null&&i.hasOwnProperty("more")&&(o.more=u.bilibili.app.mine.v1.CardMore.toObject(i.more,n),n.oneofs&&(o.card="more")),i.type!=null&&i.hasOwnProperty("type")&&(o.type=n.enums===String?u.bilibili.app.mine.v1.CardType[i.type]===void 0?i.type:u.bilibili.app.mine.v1.CardType[i.type]:i.type),o},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.app.mine.v1.PubCard"},e}(),c.CardPubGuide=function(){function e(l){if(this.material=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=u.bilibili.app.mine.v1.Title.decode(t,t.uint32());break}case 2:{o.button=u.bilibili.app.mine.v1.Button.decode(t,t.uint32());break}case 3:{o.material&&o.material.length||(o.material=[]),o.material.push(u.bilibili.app.mine.v1.PubGuideMaterial.decode(t,t.uint32()));break}case 4:{o.moreButton=u.bilibili.app.mine.v1.Button.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.mine.v1.CardPubGuide)return t;let i=new u.bilibili.app.mine.v1.CardPubGuide;if(t.title!=null){if(typeof t.title!="object")throw TypeError(".bilibili.app.mine.v1.CardPubGuide.title: object expected");i.title=u.bilibili.app.mine.v1.Title.fromObject(t.title)}if(t.button!=null){if(typeof t.button!="object")throw TypeError(".bilibili.app.mine.v1.CardPubGuide.button: object expected");i.button=u.bilibili.app.mine.v1.Button.fromObject(t.button)}if(t.material){if(!Array.isArray(t.material))throw TypeError(".bilibili.app.mine.v1.CardPubGuide.material: array expected");i.material=[];for(let n=0;n>>3){case 1:{o.id=t.int64();break}case 2:{o.title=u.bilibili.app.mine.v1.Title.decode(t,t.uint32());break}case 3:{o.cover=t.string();break}case 4:{o.url=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.mine.v1.PubGuideMaterial)return t;let i=new u.bilibili.app.mine.v1.PubGuideMaterial;if(t.id!=null&&(r.Long?(i.id=r.Long.fromValue(t.id)).unsigned=!1:typeof t.id=="string"?i.id=parseInt(t.id,10):typeof t.id=="number"?i.id=t.id:typeof t.id=="object"&&(i.id=new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber())),t.title!=null){if(typeof t.title!="object")throw TypeError(".bilibili.app.mine.v1.PubGuideMaterial.title: object expected");i.title=u.bilibili.app.mine.v1.Title.fromObject(t.title)}return t.cover!=null&&(i.cover=String(t.cover)),t.url!=null&&(i.url=String(t.url)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.id=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.id=i.longs===String?"0":0;n.title=null,n.cover="",n.url=""}return t.id!=null&&t.hasOwnProperty("id")&&(typeof t.id=="number"?n.id=i.longs===String?String(t.id):t.id:n.id=i.longs===String?r.Long.prototype.toString.call(t.id):i.longs===Number?new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber():t.id),t.title!=null&&t.hasOwnProperty("title")&&(n.title=u.bilibili.app.mine.v1.Title.toObject(t.title,i)),t.cover!=null&&t.hasOwnProperty("cover")&&(n.cover=t.cover),t.url!=null&&t.hasOwnProperty("url")&&(n.url=t.url),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.mine.v1.PubGuideMaterial"},e}(),c.CardUGC=function(){function e(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.title=i.string();break}case 2:{a.titleColor=u.bilibili.app.mine.v1.Color.decode(i,i.uint32());break}case 3:{a.buttonTitle=u.bilibili.app.mine.v1.SubTitleWithButton.decode(i,i.uint32());break}case 4:{a.statTitle=u.bilibili.app.mine.v1.SubTitleWithStat.decode(i,i.uint32());break}case 5:{a.arc=u.bilibili.app.mine.v1.Arc.decode(i,i.uint32());break}case 6:{a.url=i.string();break}case 7:{a.hasShare=i.bool();break}case 8:{a.archiveVideoAuditJson=i.string();break}default:i.skipType(y&7);break}}return a},e.fromObject=function(i){if(i instanceof u.bilibili.app.mine.v1.CardUGC)return i;let n=new u.bilibili.app.mine.v1.CardUGC;if(i.title!=null&&(n.title=String(i.title)),i.titleColor!=null){if(typeof i.titleColor!="object")throw TypeError(".bilibili.app.mine.v1.CardUGC.titleColor: object expected");n.titleColor=u.bilibili.app.mine.v1.Color.fromObject(i.titleColor)}if(i.buttonTitle!=null){if(typeof i.buttonTitle!="object")throw TypeError(".bilibili.app.mine.v1.CardUGC.buttonTitle: object expected");n.buttonTitle=u.bilibili.app.mine.v1.SubTitleWithButton.fromObject(i.buttonTitle)}if(i.statTitle!=null){if(typeof i.statTitle!="object")throw TypeError(".bilibili.app.mine.v1.CardUGC.statTitle: object expected");n.statTitle=u.bilibili.app.mine.v1.SubTitleWithStat.fromObject(i.statTitle)}if(i.arc!=null){if(typeof i.arc!="object")throw TypeError(".bilibili.app.mine.v1.CardUGC.arc: object expected");n.arc=u.bilibili.app.mine.v1.Arc.fromObject(i.arc)}return i.url!=null&&(n.url=String(i.url)),i.hasShare!=null&&(n.hasShare=!!i.hasShare),i.archiveVideoAuditJson!=null&&(n.archiveVideoAuditJson=String(i.archiveVideoAuditJson)),n},e.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.title="",o.titleColor=null,o.arc=null,o.url="",o.hasShare=!1,o.archiveVideoAuditJson=""),i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.titleColor!=null&&i.hasOwnProperty("titleColor")&&(o.titleColor=u.bilibili.app.mine.v1.Color.toObject(i.titleColor,n)),i.buttonTitle!=null&&i.hasOwnProperty("buttonTitle")&&(o.buttonTitle=u.bilibili.app.mine.v1.SubTitleWithButton.toObject(i.buttonTitle,n),n.oneofs&&(o.subtitle="buttonTitle")),i.statTitle!=null&&i.hasOwnProperty("statTitle")&&(o.statTitle=u.bilibili.app.mine.v1.SubTitleWithStat.toObject(i.statTitle,n),n.oneofs&&(o.subtitle="statTitle")),i.arc!=null&&i.hasOwnProperty("arc")&&(o.arc=u.bilibili.app.mine.v1.Arc.toObject(i.arc,n)),i.url!=null&&i.hasOwnProperty("url")&&(o.url=i.url),i.hasShare!=null&&i.hasOwnProperty("hasShare")&&(o.hasShare=i.hasShare),i.archiveVideoAuditJson!=null&&i.hasOwnProperty("archiveVideoAuditJson")&&(o.archiveVideoAuditJson=i.archiveVideoAuditJson),o},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.app.mine.v1.CardUGC"},e}(),c.CardUGCSubTitleType=function(){let e={},l=Object.create(e);return l[e[0]="CAEDUGCSUBTITLE_UNKNOWN"]=0,l[e[1]="SUBTITLE_BUTTON"]=1,l[e[2]="SUBTITLE_STAT"]=2,l}(),c.Arc=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.date=t.string();break}case 2:{o.stat=u.bilibili.app.mine.v1.Stat.decode(t,t.uint32());break}case 3:{o.cover=t.string();break}case 4:{o.duration=t.int64();break}case 5:{o.aid=t.int64();break}case 6:{o.cid=t.int64();break}case 7:{o.state=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.mine.v1.Arc)return t;let i=new u.bilibili.app.mine.v1.Arc;if(t.date!=null&&(i.date=String(t.date)),t.stat!=null){if(typeof t.stat!="object")throw TypeError(".bilibili.app.mine.v1.Arc.stat: object expected");i.stat=u.bilibili.app.mine.v1.Stat.fromObject(t.stat)}switch(t.cover!=null&&(i.cover=String(t.cover)),t.duration!=null&&(r.Long?(i.duration=r.Long.fromValue(t.duration)).unsigned=!1:typeof t.duration=="string"?i.duration=parseInt(t.duration,10):typeof t.duration=="number"?i.duration=t.duration:typeof t.duration=="object"&&(i.duration=new r.LongBits(t.duration.low>>>0,t.duration.high>>>0).toNumber())),t.aid!=null&&(r.Long?(i.aid=r.Long.fromValue(t.aid)).unsigned=!1:typeof t.aid=="string"?i.aid=parseInt(t.aid,10):typeof t.aid=="number"?i.aid=t.aid:typeof t.aid=="object"&&(i.aid=new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber())),t.cid!=null&&(r.Long?(i.cid=r.Long.fromValue(t.cid)).unsigned=!1:typeof t.cid=="string"?i.cid=parseInt(t.cid,10):typeof t.cid=="number"?i.cid=t.cid:typeof t.cid=="object"&&(i.cid=new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber())),t.state){default:if(typeof t.state=="number"){i.state=t.state;break}break;case"STATE_UNKNOWN":case 0:i.state=0;break;case"OPEN":case 1:i.state=1;break;case"ORANGE":case 2:i.state=2;break;case"WAIT":case 3:i.state=3;break;case"RECICLE":case 4:i.state=4;break;case"LOCK":case 5:i.state=5;break;case"FIXED":case 6:i.state=6;break;case"USER_DELAY":case 7:i.state=7;break;case"FAST_PUB":case 8:i.state=8;break;case"XCODE_FAIL":case 9:i.state=9;break}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.date="",n.stat=null,n.cover="",r.Long){let o=new r.Long(0,0,!1);n.duration=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.duration=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.aid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.aid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.cid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.cid=i.longs===String?"0":0;n.state=i.enums===String?"STATE_UNKNOWN":0}return t.date!=null&&t.hasOwnProperty("date")&&(n.date=t.date),t.stat!=null&&t.hasOwnProperty("stat")&&(n.stat=u.bilibili.app.mine.v1.Stat.toObject(t.stat,i)),t.cover!=null&&t.hasOwnProperty("cover")&&(n.cover=t.cover),t.duration!=null&&t.hasOwnProperty("duration")&&(typeof t.duration=="number"?n.duration=i.longs===String?String(t.duration):t.duration:n.duration=i.longs===String?r.Long.prototype.toString.call(t.duration):i.longs===Number?new r.LongBits(t.duration.low>>>0,t.duration.high>>>0).toNumber():t.duration),t.aid!=null&&t.hasOwnProperty("aid")&&(typeof t.aid=="number"?n.aid=i.longs===String?String(t.aid):t.aid:n.aid=i.longs===String?r.Long.prototype.toString.call(t.aid):i.longs===Number?new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber():t.aid),t.cid!=null&&t.hasOwnProperty("cid")&&(typeof t.cid=="number"?n.cid=i.longs===String?String(t.cid):t.cid:n.cid=i.longs===String?r.Long.prototype.toString.call(t.cid):i.longs===Number?new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber():t.cid),t.state!=null&&t.hasOwnProperty("state")&&(n.state=i.enums===String?u.bilibili.app.mine.v1.ArcState[t.state]===void 0?t.state:u.bilibili.app.mine.v1.ArcState[t.state]:t.state),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.mine.v1.Arc"},e}(),c.ArcState=function(){let e={},l=Object.create(e);return l[e[0]="STATE_UNKNOWN"]=0,l[e[1]="OPEN"]=1,l[e[2]="ORANGE"]=2,l[e[3]="WAIT"]=3,l[e[4]="RECICLE"]=4,l[e[5]="LOCK"]=5,l[e[6]="FIXED"]=6,l[e[7]="USER_DELAY"]=7,l[e[8]="FAST_PUB"]=8,l[e[9]="XCODE_FAIL"]=9,l}(),c.SubTitleWithStat=function(){function e(l){if(this.icon=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.icon&&o.icon.length||(o.icon=[]),o.icon.push(t.string());break}case 2:{o.text=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.mine.v1.SubTitleWithStat)return t;let i=new u.bilibili.app.mine.v1.SubTitleWithStat;if(t.icon){if(!Array.isArray(t.icon))throw TypeError(".bilibili.app.mine.v1.SubTitleWithStat.icon: array expected");i.icon=[];for(let n=0;n>>3){case 1:{o.icon=t.string();break}case 2:{o.url=t.string();break}case 3:{o.backgroundColor=u.bilibili.app.mine.v1.Color.decode(t,t.uint32());break}case 4:{o.text=t.string();break}case 5:{o.textColor=u.bilibili.app.mine.v1.Color.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.mine.v1.SubTitleWithButton)return t;let i=new u.bilibili.app.mine.v1.SubTitleWithButton;if(t.icon!=null&&(i.icon=String(t.icon)),t.url!=null&&(i.url=String(t.url)),t.backgroundColor!=null){if(typeof t.backgroundColor!="object")throw TypeError(".bilibili.app.mine.v1.SubTitleWithButton.backgroundColor: object expected");i.backgroundColor=u.bilibili.app.mine.v1.Color.fromObject(t.backgroundColor)}if(t.text!=null&&(i.text=String(t.text)),t.textColor!=null){if(typeof t.textColor!="object")throw TypeError(".bilibili.app.mine.v1.SubTitleWithButton.textColor: object expected");i.textColor=u.bilibili.app.mine.v1.Color.fromObject(t.textColor)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.icon="",n.url="",n.backgroundColor=null,n.text="",n.textColor=null),t.icon!=null&&t.hasOwnProperty("icon")&&(n.icon=t.icon),t.url!=null&&t.hasOwnProperty("url")&&(n.url=t.url),t.backgroundColor!=null&&t.hasOwnProperty("backgroundColor")&&(n.backgroundColor=u.bilibili.app.mine.v1.Color.toObject(t.backgroundColor,i)),t.text!=null&&t.hasOwnProperty("text")&&(n.text=t.text),t.textColor!=null&&t.hasOwnProperty("textColor")&&(n.textColor=u.bilibili.app.mine.v1.Color.toObject(t.textColor,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.mine.v1.SubTitleWithButton"},e}(),c.CardOpus=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.wordParagraph=u.bilibili.app.dynamic.v2.Paragraph.decode(t,t.uint32());break}case 2:{o.cover=t.string();break}case 3:{o.url=t.string();break}case 4:{o.statTitle=u.bilibili.app.mine.v1.SubTitleWithStat.decode(t,t.uint32());break}case 5:{o.stat=u.bilibili.app.mine.v1.Stat.decode(t,t.uint32());break}case 6:{o.date=t.string();break}case 7:{o.dynId=t.int64();break}case 8:{o.hasShare=t.bool();break}case 9:{o.state=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.mine.v1.CardOpus)return t;let i=new u.bilibili.app.mine.v1.CardOpus;if(t.wordParagraph!=null){if(typeof t.wordParagraph!="object")throw TypeError(".bilibili.app.mine.v1.CardOpus.wordParagraph: object expected");i.wordParagraph=u.bilibili.app.dynamic.v2.Paragraph.fromObject(t.wordParagraph)}if(t.cover!=null&&(i.cover=String(t.cover)),t.url!=null&&(i.url=String(t.url)),t.statTitle!=null){if(typeof t.statTitle!="object")throw TypeError(".bilibili.app.mine.v1.CardOpus.statTitle: object expected");i.statTitle=u.bilibili.app.mine.v1.SubTitleWithStat.fromObject(t.statTitle)}if(t.stat!=null){if(typeof t.stat!="object")throw TypeError(".bilibili.app.mine.v1.CardOpus.stat: object expected");i.stat=u.bilibili.app.mine.v1.Stat.fromObject(t.stat)}switch(t.date!=null&&(i.date=String(t.date)),t.dynId!=null&&(r.Long?(i.dynId=r.Long.fromValue(t.dynId)).unsigned=!1:typeof t.dynId=="string"?i.dynId=parseInt(t.dynId,10):typeof t.dynId=="number"?i.dynId=t.dynId:typeof t.dynId=="object"&&(i.dynId=new r.LongBits(t.dynId.low>>>0,t.dynId.high>>>0).toNumber())),t.hasShare!=null&&(i.hasShare=!!t.hasShare),t.state){default:if(typeof t.state=="number"){i.state=t.state;break}break;case"OPUS_UNKNOWN":case 0:i.state=0;break;case"OPUS_OPEN":case 1:i.state=1;break;case"OPUS_NO_FORWARD":case 2:i.state=2;break}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.wordParagraph=null,n.cover="",n.url="",n.statTitle=null,n.stat=null,n.date="",r.Long){let o=new r.Long(0,0,!1);n.dynId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.dynId=i.longs===String?"0":0;n.hasShare=!1,n.state=i.enums===String?"OPUS_UNKNOWN":0}return t.wordParagraph!=null&&t.hasOwnProperty("wordParagraph")&&(n.wordParagraph=u.bilibili.app.dynamic.v2.Paragraph.toObject(t.wordParagraph,i)),t.cover!=null&&t.hasOwnProperty("cover")&&(n.cover=t.cover),t.url!=null&&t.hasOwnProperty("url")&&(n.url=t.url),t.statTitle!=null&&t.hasOwnProperty("statTitle")&&(n.statTitle=u.bilibili.app.mine.v1.SubTitleWithStat.toObject(t.statTitle,i)),t.stat!=null&&t.hasOwnProperty("stat")&&(n.stat=u.bilibili.app.mine.v1.Stat.toObject(t.stat,i)),t.date!=null&&t.hasOwnProperty("date")&&(n.date=t.date),t.dynId!=null&&t.hasOwnProperty("dynId")&&(typeof t.dynId=="number"?n.dynId=i.longs===String?String(t.dynId):t.dynId:n.dynId=i.longs===String?r.Long.prototype.toString.call(t.dynId):i.longs===Number?new r.LongBits(t.dynId.low>>>0,t.dynId.high>>>0).toNumber():t.dynId),t.hasShare!=null&&t.hasOwnProperty("hasShare")&&(n.hasShare=t.hasShare),t.state!=null&&t.hasOwnProperty("state")&&(n.state=i.enums===String?u.bilibili.app.mine.v1.OpusState[t.state]===void 0?t.state:u.bilibili.app.mine.v1.OpusState[t.state]:t.state),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.mine.v1.CardOpus"},e}(),c.OpusState=function(){let e={},l=Object.create(e);return l[e[0]="OPUS_UNKNOWN"]=0,l[e[1]="OPUS_OPEN"]=1,l[e[2]="OPUS_NO_FORWARD"]=2,l}(),c.Stat=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.playIcon=t.string();break}case 2:{o.play=t.string();break}case 3:{o.likeIcon=t.string();break}case 4:{o.like=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.mine.v1.Stat)return t;let i=new u.bilibili.app.mine.v1.Stat;return t.playIcon!=null&&(i.playIcon=String(t.playIcon)),t.play!=null&&(i.play=String(t.play)),t.likeIcon!=null&&(i.likeIcon=String(t.likeIcon)),t.like!=null&&(i.like=String(t.like)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.playIcon="",n.play="",n.likeIcon="",n.like=""),t.playIcon!=null&&t.hasOwnProperty("playIcon")&&(n.playIcon=t.playIcon),t.play!=null&&t.hasOwnProperty("play")&&(n.play=t.play),t.likeIcon!=null&&t.hasOwnProperty("likeIcon")&&(n.likeIcon=t.likeIcon),t.like!=null&&t.hasOwnProperty("like")&&(n.like=t.like),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.mine.v1.Stat"},e}(),c.Color=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.lightColor=t.string();break}case 2:{o.darkColor=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.mine.v1.Color)return t;let i=new u.bilibili.app.mine.v1.Color;return t.lightColor!=null&&(i.lightColor=String(t.lightColor)),t.darkColor!=null&&(i.darkColor=String(t.darkColor)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.lightColor="",n.darkColor=""),t.lightColor!=null&&t.hasOwnProperty("lightColor")&&(n.lightColor=t.lightColor),t.darkColor!=null&&t.hasOwnProperty("darkColor")&&(n.darkColor=t.darkColor),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.mine.v1.Color"},e}(),c.CardMore=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.button=u.bilibili.app.mine.v1.Button.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.mine.v1.CardMore)return t;let i=new u.bilibili.app.mine.v1.CardMore;if(t.button!=null){if(typeof t.button!="object")throw TypeError(".bilibili.app.mine.v1.CardMore.button: object expected");i.button=u.bilibili.app.mine.v1.Button.fromObject(t.button)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.button=null),t.button!=null&&t.hasOwnProperty("button")&&(n.button=u.bilibili.app.mine.v1.Button.toObject(t.button,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.mine.v1.CardMore"},e}(),c}(),p}(),d.nativeact=function(){let p={};return p.v1=function(){let c={};return c.OfficialInfo=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.role=t.int32();break}case 2:{o.title=t.string();break}case 3:{o.desc=t.string();break}case 4:{o.type=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.OfficialInfo)return t;let i=new u.bilibili.app.nativeact.v1.OfficialInfo;return t.role!=null&&(i.role=t.role|0),t.title!=null&&(i.title=String(t.title)),t.desc!=null&&(i.desc=String(t.desc)),t.type!=null&&(i.type=t.type|0),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.role=0,n.title="",n.desc="",n.type=0),t.role!=null&&t.hasOwnProperty("role")&&(n.role=t.role),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.desc!=null&&t.hasOwnProperty("desc")&&(n.desc=t.desc),t.type!=null&&t.hasOwnProperty("type")&&(n.type=t.type),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.OfficialInfo"},e}(),c.VipInfo=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.type=t.int32();break}case 2:{o.status=t.int32();break}case 3:{o.dueDate=t.int64();break}case 4:{o.vipPayType=t.int32();break}case 5:{o.themeType=t.int32();break}case 6:{o.label=u.bilibili.app.nativeact.v1.VipLabel.decode(t,t.uint32());break}case 7:{o.avatarSubscript=t.int32();break}case 8:{o.nicknameColor=t.string();break}case 9:{o.role=t.int64();break}case 10:{o.avatarSubscriptUrl=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.VipInfo)return t;let i=new u.bilibili.app.nativeact.v1.VipInfo;if(t.type!=null&&(i.type=t.type|0),t.status!=null&&(i.status=t.status|0),t.dueDate!=null&&(r.Long?(i.dueDate=r.Long.fromValue(t.dueDate)).unsigned=!1:typeof t.dueDate=="string"?i.dueDate=parseInt(t.dueDate,10):typeof t.dueDate=="number"?i.dueDate=t.dueDate:typeof t.dueDate=="object"&&(i.dueDate=new r.LongBits(t.dueDate.low>>>0,t.dueDate.high>>>0).toNumber())),t.vipPayType!=null&&(i.vipPayType=t.vipPayType|0),t.themeType!=null&&(i.themeType=t.themeType|0),t.label!=null){if(typeof t.label!="object")throw TypeError(".bilibili.app.nativeact.v1.VipInfo.label: object expected");i.label=u.bilibili.app.nativeact.v1.VipLabel.fromObject(t.label)}return t.avatarSubscript!=null&&(i.avatarSubscript=t.avatarSubscript|0),t.nicknameColor!=null&&(i.nicknameColor=String(t.nicknameColor)),t.role!=null&&(r.Long?(i.role=r.Long.fromValue(t.role)).unsigned=!1:typeof t.role=="string"?i.role=parseInt(t.role,10):typeof t.role=="number"?i.role=t.role:typeof t.role=="object"&&(i.role=new r.LongBits(t.role.low>>>0,t.role.high>>>0).toNumber())),t.avatarSubscriptUrl!=null&&(i.avatarSubscriptUrl=String(t.avatarSubscriptUrl)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.type=0,n.status=0,r.Long){let o=new r.Long(0,0,!1);n.dueDate=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.dueDate=i.longs===String?"0":0;if(n.vipPayType=0,n.themeType=0,n.label=null,n.avatarSubscript=0,n.nicknameColor="",r.Long){let o=new r.Long(0,0,!1);n.role=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.role=i.longs===String?"0":0;n.avatarSubscriptUrl=""}return t.type!=null&&t.hasOwnProperty("type")&&(n.type=t.type),t.status!=null&&t.hasOwnProperty("status")&&(n.status=t.status),t.dueDate!=null&&t.hasOwnProperty("dueDate")&&(typeof t.dueDate=="number"?n.dueDate=i.longs===String?String(t.dueDate):t.dueDate:n.dueDate=i.longs===String?r.Long.prototype.toString.call(t.dueDate):i.longs===Number?new r.LongBits(t.dueDate.low>>>0,t.dueDate.high>>>0).toNumber():t.dueDate),t.vipPayType!=null&&t.hasOwnProperty("vipPayType")&&(n.vipPayType=t.vipPayType),t.themeType!=null&&t.hasOwnProperty("themeType")&&(n.themeType=t.themeType),t.label!=null&&t.hasOwnProperty("label")&&(n.label=u.bilibili.app.nativeact.v1.VipLabel.toObject(t.label,i)),t.avatarSubscript!=null&&t.hasOwnProperty("avatarSubscript")&&(n.avatarSubscript=t.avatarSubscript),t.nicknameColor!=null&&t.hasOwnProperty("nicknameColor")&&(n.nicknameColor=t.nicknameColor),t.role!=null&&t.hasOwnProperty("role")&&(typeof t.role=="number"?n.role=i.longs===String?String(t.role):t.role:n.role=i.longs===String?r.Long.prototype.toString.call(t.role):i.longs===Number?new r.LongBits(t.role.low>>>0,t.role.high>>>0).toNumber():t.role),t.avatarSubscriptUrl!=null&&t.hasOwnProperty("avatarSubscriptUrl")&&(n.avatarSubscriptUrl=t.avatarSubscriptUrl),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.VipInfo"},e}(),c.VipLabel=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.path=t.string();break}case 3:{o.text=t.string();break}case 4:{o.labelTheme=t.string();break}case 5:{o.textColor=t.string();break}case 6:{o.bgStyle=t.int32();break}case 7:{o.bgColor=t.string();break}case 8:{o.borderColor=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.VipLabel)return t;let i=new u.bilibili.app.nativeact.v1.VipLabel;return t.path!=null&&(i.path=String(t.path)),t.text!=null&&(i.text=String(t.text)),t.labelTheme!=null&&(i.labelTheme=String(t.labelTheme)),t.textColor!=null&&(i.textColor=String(t.textColor)),t.bgStyle!=null&&(i.bgStyle=t.bgStyle|0),t.bgColor!=null&&(i.bgColor=String(t.bgColor)),t.borderColor!=null&&(i.borderColor=String(t.borderColor)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.path="",n.text="",n.labelTheme="",n.textColor="",n.bgStyle=0,n.bgColor="",n.borderColor=""),t.path!=null&&t.hasOwnProperty("path")&&(n.path=t.path),t.text!=null&&t.hasOwnProperty("text")&&(n.text=t.text),t.labelTheme!=null&&t.hasOwnProperty("labelTheme")&&(n.labelTheme=t.labelTheme),t.textColor!=null&&t.hasOwnProperty("textColor")&&(n.textColor=t.textColor),t.bgStyle!=null&&t.hasOwnProperty("bgStyle")&&(n.bgStyle=t.bgStyle),t.bgColor!=null&&t.hasOwnProperty("bgColor")&&(n.bgColor=t.bgColor),t.borderColor!=null&&t.hasOwnProperty("borderColor")&&(n.borderColor=t.borderColor),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.VipLabel"},e}(),c.ProgressEvent=function(){function e(l){if(this.Items=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.PageID=t.int64();break}case 2:{o.Items&&o.Items.length||(o.Items=[]),o.Items.push(u.bilibili.app.nativeact.v1.ProgressEventItem.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.ProgressEvent)return t;let i=new u.bilibili.app.nativeact.v1.ProgressEvent;if(t.PageID!=null&&(r.Long?(i.PageID=r.Long.fromValue(t.PageID)).unsigned=!1:typeof t.PageID=="string"?i.PageID=parseInt(t.PageID,10):typeof t.PageID=="number"?i.PageID=t.PageID:typeof t.PageID=="object"&&(i.PageID=new r.LongBits(t.PageID.low>>>0,t.PageID.high>>>0).toNumber())),t.Items){if(!Array.isArray(t.Items))throw TypeError(".bilibili.app.nativeact.v1.ProgressEvent.Items: array expected");i.Items=[];for(let n=0;n>>0,t.PageID.high>>>0).toNumber():t.PageID),t.Items&&t.Items.length){n.Items=[];for(let o=0;o>>3){case 1:{o.ItemID=t.int64();break}case 2:{o.Type=t.string();break}case 3:{o.Num=t.int64();break}case 4:{o.DisplayNum=t.string();break}case 5:{o.WebKey=t.string();break}case 6:{o.dimension=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.ProgressEventItem)return t;let i=new u.bilibili.app.nativeact.v1.ProgressEventItem;return t.ItemID!=null&&(r.Long?(i.ItemID=r.Long.fromValue(t.ItemID)).unsigned=!1:typeof t.ItemID=="string"?i.ItemID=parseInt(t.ItemID,10):typeof t.ItemID=="number"?i.ItemID=t.ItemID:typeof t.ItemID=="object"&&(i.ItemID=new r.LongBits(t.ItemID.low>>>0,t.ItemID.high>>>0).toNumber())),t.Type!=null&&(i.Type=String(t.Type)),t.Num!=null&&(r.Long?(i.Num=r.Long.fromValue(t.Num)).unsigned=!1:typeof t.Num=="string"?i.Num=parseInt(t.Num,10):typeof t.Num=="number"?i.Num=t.Num:typeof t.Num=="object"&&(i.Num=new r.LongBits(t.Num.low>>>0,t.Num.high>>>0).toNumber())),t.DisplayNum!=null&&(i.DisplayNum=String(t.DisplayNum)),t.WebKey!=null&&(i.WebKey=String(t.WebKey)),t.dimension!=null&&(r.Long?(i.dimension=r.Long.fromValue(t.dimension)).unsigned=!1:typeof t.dimension=="string"?i.dimension=parseInt(t.dimension,10):typeof t.dimension=="number"?i.dimension=t.dimension:typeof t.dimension=="object"&&(i.dimension=new r.LongBits(t.dimension.low>>>0,t.dimension.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.ItemID=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.ItemID=i.longs===String?"0":0;if(n.Type="",r.Long){let o=new r.Long(0,0,!1);n.Num=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.Num=i.longs===String?"0":0;if(n.DisplayNum="",n.WebKey="",r.Long){let o=new r.Long(0,0,!1);n.dimension=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.dimension=i.longs===String?"0":0}return t.ItemID!=null&&t.hasOwnProperty("ItemID")&&(typeof t.ItemID=="number"?n.ItemID=i.longs===String?String(t.ItemID):t.ItemID:n.ItemID=i.longs===String?r.Long.prototype.toString.call(t.ItemID):i.longs===Number?new r.LongBits(t.ItemID.low>>>0,t.ItemID.high>>>0).toNumber():t.ItemID),t.Type!=null&&t.hasOwnProperty("Type")&&(n.Type=t.Type),t.Num!=null&&t.hasOwnProperty("Num")&&(typeof t.Num=="number"?n.Num=i.longs===String?String(t.Num):t.Num:n.Num=i.longs===String?r.Long.prototype.toString.call(t.Num):i.longs===Number?new r.LongBits(t.Num.low>>>0,t.Num.high>>>0).toNumber():t.Num),t.DisplayNum!=null&&t.hasOwnProperty("DisplayNum")&&(n.DisplayNum=t.DisplayNum),t.WebKey!=null&&t.hasOwnProperty("WebKey")&&(n.WebKey=t.WebKey),t.dimension!=null&&t.hasOwnProperty("dimension")&&(typeof t.dimension=="number"?n.dimension=i.longs===String?String(t.dimension):t.dimension:n.dimension=i.longs===String?r.Long.prototype.toString.call(t.dimension):i.longs===Number?new r.LongBits(t.dimension.low>>>0,t.dimension.high>>>0).toNumber():t.dimension),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.ProgressEventItem"},e}(),c.NativeAct=function(){function e(l,t,i){b.rpc.Service.call(this,l,t,i)}return(e.prototype=Object.create(b.rpc.Service.prototype)).constructor=e,e.create=function(t,i,n){return new this(t,i,n)},Object.defineProperty(e.prototype.ping=function l(t,i){return this.rpcCall(l,u.google.protobuf.Empty,u.google.protobuf.Empty,t,i)},"name",{value:"Ping"}),Object.defineProperty(e.prototype.index=function l(t,i){return this.rpcCall(l,u.bilibili.app.nativeact.v1.IndexReq,u.bilibili.app.nativeact.v1.PageResp,t,i)},"name",{value:"Index"}),Object.defineProperty(e.prototype.topicIndex=function l(t,i){return this.rpcCall(l,u.bilibili.app.nativeact.v1.TopicIndexReq,u.bilibili.app.nativeact.v1.PageResp,t,i)},"name",{value:"TopicIndex"}),Object.defineProperty(e.prototype.inlineIndex=function l(t,i){return this.rpcCall(l,u.bilibili.app.nativeact.v1.InlineIndexReq,u.bilibili.app.nativeact.v1.PageResp,t,i)},"name",{value:"InlineIndex"}),Object.defineProperty(e.prototype.tabIndex=function l(t,i){return this.rpcCall(l,u.bilibili.app.nativeact.v1.TabIndexReq,u.bilibili.app.nativeact.v1.PageResp,t,i)},"name",{value:"TabIndex"}),Object.defineProperty(e.prototype.dynamic=function l(t,i){return this.rpcCall(l,u.bilibili.app.nativeact.v1.DynamicReq,u.bilibili.app.nativeact.v1.DynamicResp,t,i)},"name",{value:"Dynamic"}),Object.defineProperty(e.prototype.editor=function l(t,i){return this.rpcCall(l,u.bilibili.app.nativeact.v1.EditorReq,u.bilibili.app.nativeact.v1.EditorResp,t,i)},"name",{value:"Editor"}),Object.defineProperty(e.prototype.resource=function l(t,i){return this.rpcCall(l,u.bilibili.app.nativeact.v1.ResourceReq,u.bilibili.app.nativeact.v1.ResourceResp,t,i)},"name",{value:"Resource"}),Object.defineProperty(e.prototype.video=function l(t,i){return this.rpcCall(l,u.bilibili.app.nativeact.v1.VideoReq,u.bilibili.app.nativeact.v1.VideoResp,t,i)},"name",{value:"Video"}),Object.defineProperty(e.prototype.vote=function l(t,i){return this.rpcCall(l,u.bilibili.app.nativeact.v1.VoteReq,u.bilibili.app.nativeact.v1.VoteResp,t,i)},"name",{value:"Vote"}),Object.defineProperty(e.prototype.reserve=function l(t,i){return this.rpcCall(l,u.bilibili.app.nativeact.v1.ReserveReq,u.bilibili.app.nativeact.v1.ReserveRly,t,i)},"name",{value:"Reserve"}),Object.defineProperty(e.prototype.timelineSupernatant=function l(t,i){return this.rpcCall(l,u.bilibili.app.nativeact.v1.TimelineSupernatantReq,u.bilibili.app.nativeact.v1.TimelineSupernatantResp,t,i)},"name",{value:"TimelineSupernatant"}),Object.defineProperty(e.prototype.ogvSupernatant=function l(t,i){return this.rpcCall(l,u.bilibili.app.nativeact.v1.OgvSupernatantReq,u.bilibili.app.nativeact.v1.OgvSupernatantResp,t,i)},"name",{value:"OgvSupernatant"}),Object.defineProperty(e.prototype.followOgv=function l(t,i){return this.rpcCall(l,u.bilibili.app.nativeact.v1.FollowOgvReq,u.bilibili.app.nativeact.v1.FollowOgvRly,t,i)},"name",{value:"FollowOgv"}),Object.defineProperty(e.prototype.progress=function l(t,i){return this.rpcCall(l,u.bilibili.app.nativeact.v1.ProgressReq,u.bilibili.app.nativeact.v1.ProgressRly,t,i)},"name",{value:"Progress"}),Object.defineProperty(e.prototype.bottomTab=function l(t,i){return this.rpcCall(l,u.bilibili.app.nativeact.v1.BottomTabReq,u.bilibili.app.nativeact.v1.BottomTabRly,t,i)},"name",{value:"BottomTab"}),Object.defineProperty(e.prototype.handleClick=function l(t,i){return this.rpcCall(l,u.bilibili.app.nativeact.v1.HandleClickReq,u.bilibili.app.nativeact.v1.HandleClickRly,t,i)},"name",{value:"HandleClick"}),e}(),c.IndexReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.pageId=t.int64();break}case 2:{o.activityFrom=t.string();break}case 3:{o.dynamicId=t.int64();break}case 4:{o.shareOrigin=t.string();break}case 5:{o.tabId=t.int64();break}case 6:{o.tabModuleId=t.int64();break}case 7:{o.httpsUrlReq=t.int32();break}case 8:{o.fromSpmid=t.string();break}case 9:{o.currentTab=t.string();break}case 10:{o.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.decode(t,t.uint32());break}case 11:{o.localTime=t.int32();break}case 12:{o.isColdStart=t.bool();break}case 13:{o.primaryPageId=t.int64();break}case 14:{o.tabFrom=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.IndexReq)return t;let i=new u.bilibili.app.nativeact.v1.IndexReq;if(t.pageId!=null&&(r.Long?(i.pageId=r.Long.fromValue(t.pageId)).unsigned=!1:typeof t.pageId=="string"?i.pageId=parseInt(t.pageId,10):typeof t.pageId=="number"?i.pageId=t.pageId:typeof t.pageId=="object"&&(i.pageId=new r.LongBits(t.pageId.low>>>0,t.pageId.high>>>0).toNumber())),t.activityFrom!=null&&(i.activityFrom=String(t.activityFrom)),t.dynamicId!=null&&(r.Long?(i.dynamicId=r.Long.fromValue(t.dynamicId)).unsigned=!1:typeof t.dynamicId=="string"?i.dynamicId=parseInt(t.dynamicId,10):typeof t.dynamicId=="number"?i.dynamicId=t.dynamicId:typeof t.dynamicId=="object"&&(i.dynamicId=new r.LongBits(t.dynamicId.low>>>0,t.dynamicId.high>>>0).toNumber())),t.shareOrigin!=null&&(i.shareOrigin=String(t.shareOrigin)),t.tabId!=null&&(r.Long?(i.tabId=r.Long.fromValue(t.tabId)).unsigned=!1:typeof t.tabId=="string"?i.tabId=parseInt(t.tabId,10):typeof t.tabId=="number"?i.tabId=t.tabId:typeof t.tabId=="object"&&(i.tabId=new r.LongBits(t.tabId.low>>>0,t.tabId.high>>>0).toNumber())),t.tabModuleId!=null&&(r.Long?(i.tabModuleId=r.Long.fromValue(t.tabModuleId)).unsigned=!1:typeof t.tabModuleId=="string"?i.tabModuleId=parseInt(t.tabModuleId,10):typeof t.tabModuleId=="number"?i.tabModuleId=t.tabModuleId:typeof t.tabModuleId=="object"&&(i.tabModuleId=new r.LongBits(t.tabModuleId.low>>>0,t.tabModuleId.high>>>0).toNumber())),t.httpsUrlReq!=null&&(i.httpsUrlReq=t.httpsUrlReq|0),t.fromSpmid!=null&&(i.fromSpmid=String(t.fromSpmid)),t.currentTab!=null&&(i.currentTab=String(t.currentTab)),t.playerArgs!=null){if(typeof t.playerArgs!="object")throw TypeError(".bilibili.app.nativeact.v1.IndexReq.playerArgs: object expected");i.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.fromObject(t.playerArgs)}return t.localTime!=null&&(i.localTime=t.localTime|0),t.isColdStart!=null&&(i.isColdStart=!!t.isColdStart),t.primaryPageId!=null&&(r.Long?(i.primaryPageId=r.Long.fromValue(t.primaryPageId)).unsigned=!1:typeof t.primaryPageId=="string"?i.primaryPageId=parseInt(t.primaryPageId,10):typeof t.primaryPageId=="number"?i.primaryPageId=t.primaryPageId:typeof t.primaryPageId=="object"&&(i.primaryPageId=new r.LongBits(t.primaryPageId.low>>>0,t.primaryPageId.high>>>0).toNumber())),t.tabFrom!=null&&(i.tabFrom=String(t.tabFrom)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.pageId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.pageId=i.longs===String?"0":0;if(n.activityFrom="",r.Long){let o=new r.Long(0,0,!1);n.dynamicId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.dynamicId=i.longs===String?"0":0;if(n.shareOrigin="",r.Long){let o=new r.Long(0,0,!1);n.tabId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.tabId=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.tabModuleId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.tabModuleId=i.longs===String?"0":0;if(n.httpsUrlReq=0,n.fromSpmid="",n.currentTab="",n.playerArgs=null,n.localTime=0,n.isColdStart=!1,r.Long){let o=new r.Long(0,0,!1);n.primaryPageId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.primaryPageId=i.longs===String?"0":0;n.tabFrom=""}return t.pageId!=null&&t.hasOwnProperty("pageId")&&(typeof t.pageId=="number"?n.pageId=i.longs===String?String(t.pageId):t.pageId:n.pageId=i.longs===String?r.Long.prototype.toString.call(t.pageId):i.longs===Number?new r.LongBits(t.pageId.low>>>0,t.pageId.high>>>0).toNumber():t.pageId),t.activityFrom!=null&&t.hasOwnProperty("activityFrom")&&(n.activityFrom=t.activityFrom),t.dynamicId!=null&&t.hasOwnProperty("dynamicId")&&(typeof t.dynamicId=="number"?n.dynamicId=i.longs===String?String(t.dynamicId):t.dynamicId:n.dynamicId=i.longs===String?r.Long.prototype.toString.call(t.dynamicId):i.longs===Number?new r.LongBits(t.dynamicId.low>>>0,t.dynamicId.high>>>0).toNumber():t.dynamicId),t.shareOrigin!=null&&t.hasOwnProperty("shareOrigin")&&(n.shareOrigin=t.shareOrigin),t.tabId!=null&&t.hasOwnProperty("tabId")&&(typeof t.tabId=="number"?n.tabId=i.longs===String?String(t.tabId):t.tabId:n.tabId=i.longs===String?r.Long.prototype.toString.call(t.tabId):i.longs===Number?new r.LongBits(t.tabId.low>>>0,t.tabId.high>>>0).toNumber():t.tabId),t.tabModuleId!=null&&t.hasOwnProperty("tabModuleId")&&(typeof t.tabModuleId=="number"?n.tabModuleId=i.longs===String?String(t.tabModuleId):t.tabModuleId:n.tabModuleId=i.longs===String?r.Long.prototype.toString.call(t.tabModuleId):i.longs===Number?new r.LongBits(t.tabModuleId.low>>>0,t.tabModuleId.high>>>0).toNumber():t.tabModuleId),t.httpsUrlReq!=null&&t.hasOwnProperty("httpsUrlReq")&&(n.httpsUrlReq=t.httpsUrlReq),t.fromSpmid!=null&&t.hasOwnProperty("fromSpmid")&&(n.fromSpmid=t.fromSpmid),t.currentTab!=null&&t.hasOwnProperty("currentTab")&&(n.currentTab=t.currentTab),t.playerArgs!=null&&t.hasOwnProperty("playerArgs")&&(n.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.toObject(t.playerArgs,i)),t.localTime!=null&&t.hasOwnProperty("localTime")&&(n.localTime=t.localTime),t.isColdStart!=null&&t.hasOwnProperty("isColdStart")&&(n.isColdStart=t.isColdStart),t.primaryPageId!=null&&t.hasOwnProperty("primaryPageId")&&(typeof t.primaryPageId=="number"?n.primaryPageId=i.longs===String?String(t.primaryPageId):t.primaryPageId:n.primaryPageId=i.longs===String?r.Long.prototype.toString.call(t.primaryPageId):i.longs===Number?new r.LongBits(t.primaryPageId.low>>>0,t.primaryPageId.high>>>0).toNumber():t.primaryPageId),t.tabFrom!=null&&t.hasOwnProperty("tabFrom")&&(n.tabFrom=t.tabFrom),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.IndexReq"},e}(),c.TopicIndexReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.pageId=t.int64();break}case 2:{o.activityFrom=t.string();break}case 3:{o.dynamicId=t.int64();break}case 4:{o.shareOrigin=t.string();break}case 5:{o.tabId=t.int64();break}case 6:{o.tabModuleId=t.int64();break}case 7:{o.httpsUrlReq=t.int32();break}case 8:{o.fromSpmid=t.string();break}case 9:{o.currentTab=t.string();break}case 10:{o.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.decode(t,t.uint32());break}case 11:{o.localTime=t.int32();break}case 12:{o.isColdStart=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.TopicIndexReq)return t;let i=new u.bilibili.app.nativeact.v1.TopicIndexReq;if(t.pageId!=null&&(r.Long?(i.pageId=r.Long.fromValue(t.pageId)).unsigned=!1:typeof t.pageId=="string"?i.pageId=parseInt(t.pageId,10):typeof t.pageId=="number"?i.pageId=t.pageId:typeof t.pageId=="object"&&(i.pageId=new r.LongBits(t.pageId.low>>>0,t.pageId.high>>>0).toNumber())),t.activityFrom!=null&&(i.activityFrom=String(t.activityFrom)),t.dynamicId!=null&&(r.Long?(i.dynamicId=r.Long.fromValue(t.dynamicId)).unsigned=!1:typeof t.dynamicId=="string"?i.dynamicId=parseInt(t.dynamicId,10):typeof t.dynamicId=="number"?i.dynamicId=t.dynamicId:typeof t.dynamicId=="object"&&(i.dynamicId=new r.LongBits(t.dynamicId.low>>>0,t.dynamicId.high>>>0).toNumber())),t.shareOrigin!=null&&(i.shareOrigin=String(t.shareOrigin)),t.tabId!=null&&(r.Long?(i.tabId=r.Long.fromValue(t.tabId)).unsigned=!1:typeof t.tabId=="string"?i.tabId=parseInt(t.tabId,10):typeof t.tabId=="number"?i.tabId=t.tabId:typeof t.tabId=="object"&&(i.tabId=new r.LongBits(t.tabId.low>>>0,t.tabId.high>>>0).toNumber())),t.tabModuleId!=null&&(r.Long?(i.tabModuleId=r.Long.fromValue(t.tabModuleId)).unsigned=!1:typeof t.tabModuleId=="string"?i.tabModuleId=parseInt(t.tabModuleId,10):typeof t.tabModuleId=="number"?i.tabModuleId=t.tabModuleId:typeof t.tabModuleId=="object"&&(i.tabModuleId=new r.LongBits(t.tabModuleId.low>>>0,t.tabModuleId.high>>>0).toNumber())),t.httpsUrlReq!=null&&(i.httpsUrlReq=t.httpsUrlReq|0),t.fromSpmid!=null&&(i.fromSpmid=String(t.fromSpmid)),t.currentTab!=null&&(i.currentTab=String(t.currentTab)),t.playerArgs!=null){if(typeof t.playerArgs!="object")throw TypeError(".bilibili.app.nativeact.v1.TopicIndexReq.playerArgs: object expected");i.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.fromObject(t.playerArgs)}return t.localTime!=null&&(i.localTime=t.localTime|0),t.isColdStart!=null&&(i.isColdStart=!!t.isColdStart),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.pageId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.pageId=i.longs===String?"0":0;if(n.activityFrom="",r.Long){let o=new r.Long(0,0,!1);n.dynamicId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.dynamicId=i.longs===String?"0":0;if(n.shareOrigin="",r.Long){let o=new r.Long(0,0,!1);n.tabId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.tabId=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.tabModuleId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.tabModuleId=i.longs===String?"0":0;n.httpsUrlReq=0,n.fromSpmid="",n.currentTab="",n.playerArgs=null,n.localTime=0,n.isColdStart=!1}return t.pageId!=null&&t.hasOwnProperty("pageId")&&(typeof t.pageId=="number"?n.pageId=i.longs===String?String(t.pageId):t.pageId:n.pageId=i.longs===String?r.Long.prototype.toString.call(t.pageId):i.longs===Number?new r.LongBits(t.pageId.low>>>0,t.pageId.high>>>0).toNumber():t.pageId),t.activityFrom!=null&&t.hasOwnProperty("activityFrom")&&(n.activityFrom=t.activityFrom),t.dynamicId!=null&&t.hasOwnProperty("dynamicId")&&(typeof t.dynamicId=="number"?n.dynamicId=i.longs===String?String(t.dynamicId):t.dynamicId:n.dynamicId=i.longs===String?r.Long.prototype.toString.call(t.dynamicId):i.longs===Number?new r.LongBits(t.dynamicId.low>>>0,t.dynamicId.high>>>0).toNumber():t.dynamicId),t.shareOrigin!=null&&t.hasOwnProperty("shareOrigin")&&(n.shareOrigin=t.shareOrigin),t.tabId!=null&&t.hasOwnProperty("tabId")&&(typeof t.tabId=="number"?n.tabId=i.longs===String?String(t.tabId):t.tabId:n.tabId=i.longs===String?r.Long.prototype.toString.call(t.tabId):i.longs===Number?new r.LongBits(t.tabId.low>>>0,t.tabId.high>>>0).toNumber():t.tabId),t.tabModuleId!=null&&t.hasOwnProperty("tabModuleId")&&(typeof t.tabModuleId=="number"?n.tabModuleId=i.longs===String?String(t.tabModuleId):t.tabModuleId:n.tabModuleId=i.longs===String?r.Long.prototype.toString.call(t.tabModuleId):i.longs===Number?new r.LongBits(t.tabModuleId.low>>>0,t.tabModuleId.high>>>0).toNumber():t.tabModuleId),t.httpsUrlReq!=null&&t.hasOwnProperty("httpsUrlReq")&&(n.httpsUrlReq=t.httpsUrlReq),t.fromSpmid!=null&&t.hasOwnProperty("fromSpmid")&&(n.fromSpmid=t.fromSpmid),t.currentTab!=null&&t.hasOwnProperty("currentTab")&&(n.currentTab=t.currentTab),t.playerArgs!=null&&t.hasOwnProperty("playerArgs")&&(n.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.toObject(t.playerArgs,i)),t.localTime!=null&&t.hasOwnProperty("localTime")&&(n.localTime=t.localTime),t.isColdStart!=null&&t.hasOwnProperty("isColdStart")&&(n.isColdStart=t.isColdStart),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.TopicIndexReq"},e}(),c.InlineIndexReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.pageId=t.int64();break}case 2:{o.httpsUrlReq=t.int32();break}case 3:{o.fromSpmid=t.string();break}case 4:{o.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.decode(t,t.uint32());break}case 5:{o.localTime=t.int32();break}case 6:{o.isColdStart=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.InlineIndexReq)return t;let i=new u.bilibili.app.nativeact.v1.InlineIndexReq;if(t.pageId!=null&&(r.Long?(i.pageId=r.Long.fromValue(t.pageId)).unsigned=!1:typeof t.pageId=="string"?i.pageId=parseInt(t.pageId,10):typeof t.pageId=="number"?i.pageId=t.pageId:typeof t.pageId=="object"&&(i.pageId=new r.LongBits(t.pageId.low>>>0,t.pageId.high>>>0).toNumber())),t.httpsUrlReq!=null&&(i.httpsUrlReq=t.httpsUrlReq|0),t.fromSpmid!=null&&(i.fromSpmid=String(t.fromSpmid)),t.playerArgs!=null){if(typeof t.playerArgs!="object")throw TypeError(".bilibili.app.nativeact.v1.InlineIndexReq.playerArgs: object expected");i.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.fromObject(t.playerArgs)}return t.localTime!=null&&(i.localTime=t.localTime|0),t.isColdStart!=null&&(i.isColdStart=!!t.isColdStart),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.pageId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.pageId=i.longs===String?"0":0;n.httpsUrlReq=0,n.fromSpmid="",n.playerArgs=null,n.localTime=0,n.isColdStart=!1}return t.pageId!=null&&t.hasOwnProperty("pageId")&&(typeof t.pageId=="number"?n.pageId=i.longs===String?String(t.pageId):t.pageId:n.pageId=i.longs===String?r.Long.prototype.toString.call(t.pageId):i.longs===Number?new r.LongBits(t.pageId.low>>>0,t.pageId.high>>>0).toNumber():t.pageId),t.httpsUrlReq!=null&&t.hasOwnProperty("httpsUrlReq")&&(n.httpsUrlReq=t.httpsUrlReq),t.fromSpmid!=null&&t.hasOwnProperty("fromSpmid")&&(n.fromSpmid=t.fromSpmid),t.playerArgs!=null&&t.hasOwnProperty("playerArgs")&&(n.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.toObject(t.playerArgs,i)),t.localTime!=null&&t.hasOwnProperty("localTime")&&(n.localTime=t.localTime),t.isColdStart!=null&&t.hasOwnProperty("isColdStart")&&(n.isColdStart=t.isColdStart),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.InlineIndexReq"},e}(),c.TabIndexReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.pageId=t.int64();break}case 2:{o.httpsUrlReq=t.int32();break}case 3:{o.fromSpmid=t.string();break}case 4:{o.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.decode(t,t.uint32());break}case 5:{o.primaryPageId=t.int64();break}case 6:{o.localTime=t.int32();break}case 7:{o.isColdStart=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.TabIndexReq)return t;let i=new u.bilibili.app.nativeact.v1.TabIndexReq;if(t.pageId!=null&&(r.Long?(i.pageId=r.Long.fromValue(t.pageId)).unsigned=!1:typeof t.pageId=="string"?i.pageId=parseInt(t.pageId,10):typeof t.pageId=="number"?i.pageId=t.pageId:typeof t.pageId=="object"&&(i.pageId=new r.LongBits(t.pageId.low>>>0,t.pageId.high>>>0).toNumber())),t.httpsUrlReq!=null&&(i.httpsUrlReq=t.httpsUrlReq|0),t.fromSpmid!=null&&(i.fromSpmid=String(t.fromSpmid)),t.playerArgs!=null){if(typeof t.playerArgs!="object")throw TypeError(".bilibili.app.nativeact.v1.TabIndexReq.playerArgs: object expected");i.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.fromObject(t.playerArgs)}return t.primaryPageId!=null&&(r.Long?(i.primaryPageId=r.Long.fromValue(t.primaryPageId)).unsigned=!1:typeof t.primaryPageId=="string"?i.primaryPageId=parseInt(t.primaryPageId,10):typeof t.primaryPageId=="number"?i.primaryPageId=t.primaryPageId:typeof t.primaryPageId=="object"&&(i.primaryPageId=new r.LongBits(t.primaryPageId.low>>>0,t.primaryPageId.high>>>0).toNumber())),t.localTime!=null&&(i.localTime=t.localTime|0),t.isColdStart!=null&&(i.isColdStart=!!t.isColdStart),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.pageId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.pageId=i.longs===String?"0":0;if(n.httpsUrlReq=0,n.fromSpmid="",n.playerArgs=null,r.Long){let o=new r.Long(0,0,!1);n.primaryPageId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.primaryPageId=i.longs===String?"0":0;n.localTime=0,n.isColdStart=!1}return t.pageId!=null&&t.hasOwnProperty("pageId")&&(typeof t.pageId=="number"?n.pageId=i.longs===String?String(t.pageId):t.pageId:n.pageId=i.longs===String?r.Long.prototype.toString.call(t.pageId):i.longs===Number?new r.LongBits(t.pageId.low>>>0,t.pageId.high>>>0).toNumber():t.pageId),t.httpsUrlReq!=null&&t.hasOwnProperty("httpsUrlReq")&&(n.httpsUrlReq=t.httpsUrlReq),t.fromSpmid!=null&&t.hasOwnProperty("fromSpmid")&&(n.fromSpmid=t.fromSpmid),t.playerArgs!=null&&t.hasOwnProperty("playerArgs")&&(n.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.toObject(t.playerArgs,i)),t.primaryPageId!=null&&t.hasOwnProperty("primaryPageId")&&(typeof t.primaryPageId=="number"?n.primaryPageId=i.longs===String?String(t.primaryPageId):t.primaryPageId:n.primaryPageId=i.longs===String?r.Long.prototype.toString.call(t.primaryPageId):i.longs===Number?new r.LongBits(t.primaryPageId.low>>>0,t.primaryPageId.high>>>0).toNumber():t.primaryPageId),t.localTime!=null&&t.hasOwnProperty("localTime")&&(n.localTime=t.localTime),t.isColdStart!=null&&t.hasOwnProperty("isColdStart")&&(n.isColdStart=t.isColdStart),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.TabIndexReq"},e}(),c.PageResp=function(){function e(l){if(this.moduleList=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.isOnline=t.bool();break}case 2:{o.ignoreAppDarkTheme=t.bool();break}case 3:{o.pageColor=u.bilibili.app.nativeact.v1.Color.decode(t,t.uint32());break}case 4:{o.pageShare=u.bilibili.app.nativeact.v1.PageShare.decode(t,t.uint32());break}case 5:{o.pageHeader=u.bilibili.app.nativeact.v1.Module.decode(t,t.uint32());break}case 6:{o.participation=u.bilibili.app.nativeact.v1.Module.decode(t,t.uint32());break}case 7:{o.moduleList&&o.moduleList.length||(o.moduleList=[]),o.moduleList.push(u.bilibili.app.nativeact.v1.Module.decode(t,t.uint32()));break}case 8:{o.isDynamicFeed=t.bool();break}case 9:{o.layerDynamic=u.bilibili.app.nativeact.v1.LayerDynamic.decode(t,t.uint32());break}case 10:{o.isEditorFeed=t.bool();break}case 11:{o.sponsorType=t.int64();break}case 12:{o.topTab=u.bilibili.app.nativeact.v1.TopTab.decode(t,t.uint32());break}case 13:{o.hoverButton=u.bilibili.app.nativeact.v1.Module.decode(t,t.uint32());break}case 14:{o.bottomButton=u.bilibili.app.nativeact.v1.Module.decode(t,t.uint32());break}case 15:{o.pageId=t.int64();break}case 16:{o.topicInfo=u.bilibili.app.nativeact.v1.TopicInfo.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.PageResp)return t;let i=new u.bilibili.app.nativeact.v1.PageResp;if(t.isOnline!=null&&(i.isOnline=!!t.isOnline),t.ignoreAppDarkTheme!=null&&(i.ignoreAppDarkTheme=!!t.ignoreAppDarkTheme),t.pageColor!=null){if(typeof t.pageColor!="object")throw TypeError(".bilibili.app.nativeact.v1.PageResp.pageColor: object expected");i.pageColor=u.bilibili.app.nativeact.v1.Color.fromObject(t.pageColor)}if(t.pageShare!=null){if(typeof t.pageShare!="object")throw TypeError(".bilibili.app.nativeact.v1.PageResp.pageShare: object expected");i.pageShare=u.bilibili.app.nativeact.v1.PageShare.fromObject(t.pageShare)}if(t.pageHeader!=null){if(typeof t.pageHeader!="object")throw TypeError(".bilibili.app.nativeact.v1.PageResp.pageHeader: object expected");i.pageHeader=u.bilibili.app.nativeact.v1.Module.fromObject(t.pageHeader)}if(t.participation!=null){if(typeof t.participation!="object")throw TypeError(".bilibili.app.nativeact.v1.PageResp.participation: object expected");i.participation=u.bilibili.app.nativeact.v1.Module.fromObject(t.participation)}if(t.moduleList){if(!Array.isArray(t.moduleList))throw TypeError(".bilibili.app.nativeact.v1.PageResp.moduleList: array expected");i.moduleList=[];for(let n=0;n>>0,t.sponsorType.high>>>0).toNumber())),t.topTab!=null){if(typeof t.topTab!="object")throw TypeError(".bilibili.app.nativeact.v1.PageResp.topTab: object expected");i.topTab=u.bilibili.app.nativeact.v1.TopTab.fromObject(t.topTab)}if(t.hoverButton!=null){if(typeof t.hoverButton!="object")throw TypeError(".bilibili.app.nativeact.v1.PageResp.hoverButton: object expected");i.hoverButton=u.bilibili.app.nativeact.v1.Module.fromObject(t.hoverButton)}if(t.bottomButton!=null){if(typeof t.bottomButton!="object")throw TypeError(".bilibili.app.nativeact.v1.PageResp.bottomButton: object expected");i.bottomButton=u.bilibili.app.nativeact.v1.Module.fromObject(t.bottomButton)}if(t.pageId!=null&&(r.Long?(i.pageId=r.Long.fromValue(t.pageId)).unsigned=!1:typeof t.pageId=="string"?i.pageId=parseInt(t.pageId,10):typeof t.pageId=="number"?i.pageId=t.pageId:typeof t.pageId=="object"&&(i.pageId=new r.LongBits(t.pageId.low>>>0,t.pageId.high>>>0).toNumber())),t.topicInfo!=null){if(typeof t.topicInfo!="object")throw TypeError(".bilibili.app.nativeact.v1.PageResp.topicInfo: object expected");i.topicInfo=u.bilibili.app.nativeact.v1.TopicInfo.fromObject(t.topicInfo)}return i},e.toObject=function(t,i){i||(i={});let n={};if((i.arrays||i.defaults)&&(n.moduleList=[]),i.defaults){if(n.isOnline=!1,n.ignoreAppDarkTheme=!1,n.pageColor=null,n.pageShare=null,n.pageHeader=null,n.participation=null,n.isDynamicFeed=!1,n.layerDynamic=null,n.isEditorFeed=!1,r.Long){let o=new r.Long(0,0,!1);n.sponsorType=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.sponsorType=i.longs===String?"0":0;if(n.topTab=null,n.hoverButton=null,n.bottomButton=null,r.Long){let o=new r.Long(0,0,!1);n.pageId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.pageId=i.longs===String?"0":0;n.topicInfo=null}if(t.isOnline!=null&&t.hasOwnProperty("isOnline")&&(n.isOnline=t.isOnline),t.ignoreAppDarkTheme!=null&&t.hasOwnProperty("ignoreAppDarkTheme")&&(n.ignoreAppDarkTheme=t.ignoreAppDarkTheme),t.pageColor!=null&&t.hasOwnProperty("pageColor")&&(n.pageColor=u.bilibili.app.nativeact.v1.Color.toObject(t.pageColor,i)),t.pageShare!=null&&t.hasOwnProperty("pageShare")&&(n.pageShare=u.bilibili.app.nativeact.v1.PageShare.toObject(t.pageShare,i)),t.pageHeader!=null&&t.hasOwnProperty("pageHeader")&&(n.pageHeader=u.bilibili.app.nativeact.v1.Module.toObject(t.pageHeader,i)),t.participation!=null&&t.hasOwnProperty("participation")&&(n.participation=u.bilibili.app.nativeact.v1.Module.toObject(t.participation,i)),t.moduleList&&t.moduleList.length){n.moduleList=[];for(let o=0;o>>0,t.sponsorType.high>>>0).toNumber():t.sponsorType),t.topTab!=null&&t.hasOwnProperty("topTab")&&(n.topTab=u.bilibili.app.nativeact.v1.TopTab.toObject(t.topTab,i)),t.hoverButton!=null&&t.hasOwnProperty("hoverButton")&&(n.hoverButton=u.bilibili.app.nativeact.v1.Module.toObject(t.hoverButton,i)),t.bottomButton!=null&&t.hasOwnProperty("bottomButton")&&(n.bottomButton=u.bilibili.app.nativeact.v1.Module.toObject(t.bottomButton,i)),t.pageId!=null&&t.hasOwnProperty("pageId")&&(typeof t.pageId=="number"?n.pageId=i.longs===String?String(t.pageId):t.pageId:n.pageId=i.longs===String?r.Long.prototype.toString.call(t.pageId):i.longs===Number?new r.LongBits(t.pageId.low>>>0,t.pageId.high>>>0).toNumber():t.pageId),t.topicInfo!=null&&t.hasOwnProperty("topicInfo")&&(n.topicInfo=u.bilibili.app.nativeact.v1.TopicInfo.toObject(t.topicInfo,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.PageResp"},e}(),c.TopicInfo=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.topicId=t.int64();break}case 2:{o.title=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.TopicInfo)return t;let i=new u.bilibili.app.nativeact.v1.TopicInfo;return t.topicId!=null&&(r.Long?(i.topicId=r.Long.fromValue(t.topicId)).unsigned=!1:typeof t.topicId=="string"?i.topicId=parseInt(t.topicId,10):typeof t.topicId=="number"?i.topicId=t.topicId:typeof t.topicId=="object"&&(i.topicId=new r.LongBits(t.topicId.low>>>0,t.topicId.high>>>0).toNumber())),t.title!=null&&(i.title=String(t.title)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.topicId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.topicId=i.longs===String?"0":0;n.title=""}return t.topicId!=null&&t.hasOwnProperty("topicId")&&(typeof t.topicId=="number"?n.topicId=i.longs===String?String(t.topicId):t.topicId:n.topicId=i.longs===String?r.Long.prototype.toString.call(t.topicId):i.longs===Number?new r.LongBits(t.topicId.low>>>0,t.topicId.high>>>0).toNumber():t.topicId),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.TopicInfo"},e}(),c.PageShare=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.type=t.int64();break}case 2:{o.title=t.string();break}case 3:{o.desc=t.string();break}case 4:{o.image=t.string();break}case 5:{o.insideUri=t.string();break}case 6:{o.outsideUri=t.string();break}case 7:{o.origin=t.string();break}case 8:{o.sid=t.string();break}case 9:{o.spacePageUrl=t.string();break}case 10:{o.spaceExclusivePageUrl=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.PageShare)return t;let i=new u.bilibili.app.nativeact.v1.PageShare;return t.type!=null&&(r.Long?(i.type=r.Long.fromValue(t.type)).unsigned=!1:typeof t.type=="string"?i.type=parseInt(t.type,10):typeof t.type=="number"?i.type=t.type:typeof t.type=="object"&&(i.type=new r.LongBits(t.type.low>>>0,t.type.high>>>0).toNumber())),t.title!=null&&(i.title=String(t.title)),t.desc!=null&&(i.desc=String(t.desc)),t.image!=null&&(i.image=String(t.image)),t.insideUri!=null&&(i.insideUri=String(t.insideUri)),t.outsideUri!=null&&(i.outsideUri=String(t.outsideUri)),t.origin!=null&&(i.origin=String(t.origin)),t.sid!=null&&(i.sid=String(t.sid)),t.spacePageUrl!=null&&(i.spacePageUrl=String(t.spacePageUrl)),t.spaceExclusivePageUrl!=null&&(i.spaceExclusivePageUrl=String(t.spaceExclusivePageUrl)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.type=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.type=i.longs===String?"0":0;n.title="",n.desc="",n.image="",n.insideUri="",n.outsideUri="",n.origin="",n.sid="",n.spacePageUrl="",n.spaceExclusivePageUrl=""}return t.type!=null&&t.hasOwnProperty("type")&&(typeof t.type=="number"?n.type=i.longs===String?String(t.type):t.type:n.type=i.longs===String?r.Long.prototype.toString.call(t.type):i.longs===Number?new r.LongBits(t.type.low>>>0,t.type.high>>>0).toNumber():t.type),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.desc!=null&&t.hasOwnProperty("desc")&&(n.desc=t.desc),t.image!=null&&t.hasOwnProperty("image")&&(n.image=t.image),t.insideUri!=null&&t.hasOwnProperty("insideUri")&&(n.insideUri=t.insideUri),t.outsideUri!=null&&t.hasOwnProperty("outsideUri")&&(n.outsideUri=t.outsideUri),t.origin!=null&&t.hasOwnProperty("origin")&&(n.origin=t.origin),t.sid!=null&&t.hasOwnProperty("sid")&&(n.sid=t.sid),t.spacePageUrl!=null&&t.hasOwnProperty("spacePageUrl")&&(n.spacePageUrl=t.spacePageUrl),t.spaceExclusivePageUrl!=null&&t.hasOwnProperty("spaceExclusivePageUrl")&&(n.spaceExclusivePageUrl=t.spaceExclusivePageUrl),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.PageShare"},e}(),c.Module=function(){function e(l){if(this.moduleItems=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.moduleType=t.string();break}case 2:{o.moduleId=t.int64();break}case 3:{o.moduleColor=u.bilibili.app.nativeact.v1.Color.decode(t,t.uint32());break}case 4:{o.moduleSetting=u.bilibili.app.nativeact.v1.Setting.decode(t,t.uint32());break}case 5:{o.moduleItems&&o.moduleItems.length||(o.moduleItems=[]),o.moduleItems.push(u.bilibili.app.nativeact.v1.ModuleItem.decode(t,t.uint32()));break}case 6:{o.subpageParams=t.string();break}case 7:{o.moduleUkey=t.string();break}case 8:{o.hasMore=t.bool();break}case 9:{o.isFeed=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.Module)return t;let i=new u.bilibili.app.nativeact.v1.Module;if(t.moduleType!=null&&(i.moduleType=String(t.moduleType)),t.moduleId!=null&&(r.Long?(i.moduleId=r.Long.fromValue(t.moduleId)).unsigned=!1:typeof t.moduleId=="string"?i.moduleId=parseInt(t.moduleId,10):typeof t.moduleId=="number"?i.moduleId=t.moduleId:typeof t.moduleId=="object"&&(i.moduleId=new r.LongBits(t.moduleId.low>>>0,t.moduleId.high>>>0).toNumber())),t.moduleColor!=null){if(typeof t.moduleColor!="object")throw TypeError(".bilibili.app.nativeact.v1.Module.moduleColor: object expected");i.moduleColor=u.bilibili.app.nativeact.v1.Color.fromObject(t.moduleColor)}if(t.moduleSetting!=null){if(typeof t.moduleSetting!="object")throw TypeError(".bilibili.app.nativeact.v1.Module.moduleSetting: object expected");i.moduleSetting=u.bilibili.app.nativeact.v1.Setting.fromObject(t.moduleSetting)}if(t.moduleItems){if(!Array.isArray(t.moduleItems))throw TypeError(".bilibili.app.nativeact.v1.Module.moduleItems: array expected");i.moduleItems=[];for(let n=0;n>>0,t.moduleId.high>>>0).toNumber():t.moduleId),t.moduleColor!=null&&t.hasOwnProperty("moduleColor")&&(n.moduleColor=u.bilibili.app.nativeact.v1.Color.toObject(t.moduleColor,i)),t.moduleSetting!=null&&t.hasOwnProperty("moduleSetting")&&(n.moduleSetting=u.bilibili.app.nativeact.v1.Setting.toObject(t.moduleSetting,i)),t.moduleItems&&t.moduleItems.length){n.moduleItems=[];for(let o=0;o>>3){case 1:{o.title=t.string();break}case 2:{o.params=t.string();break}case 3:{o.tabs&&o.tabs.length||(o.tabs=[]),o.tabs.push(u.bilibili.app.nativeact.v1.SubpageTab.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.SubpageData)return t;let i=new u.bilibili.app.nativeact.v1.SubpageData;if(t.title!=null&&(i.title=String(t.title)),t.params!=null&&(i.params=String(t.params)),t.tabs){if(!Array.isArray(t.tabs))throw TypeError(".bilibili.app.nativeact.v1.SubpageData.tabs: array expected");i.tabs=[];for(let n=0;n>>3){case 1:{o.name=t.string();break}case 2:{o.params=t.string();break}case 3:{o.sort=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.SubpageTab)return t;let i=new u.bilibili.app.nativeact.v1.SubpageTab;switch(t.name!=null&&(i.name=String(t.name)),t.params!=null&&(i.params=String(t.params)),t.sort){default:if(typeof t.sort=="number"){i.sort=t.sort;break}break;case"StTypeDefault":case 0:i.sort=0;break;case"StRandom":case 3:i.sort=3;break}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.name="",n.params="",n.sort=i.enums===String?"StTypeDefault":0),t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),t.params!=null&&t.hasOwnProperty("params")&&(n.params=t.params),t.sort!=null&&t.hasOwnProperty("sort")&&(n.sort=i.enums===String?u.bilibili.app.nativeact.v1.SortCategory[t.sort]===void 0?t.sort:u.bilibili.app.nativeact.v1.SortCategory[t.sort]:t.sort),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.SubpageTab"},e}(),c.SortCategory=function(){let e={},l=Object.create(e);return l[e[0]="StTypeDefault"]=0,l[e[3]="StRandom"]=3,l}(),c.Setting=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.displayMoreButton=t.bool();break}case 2:{o.displayTitle=t.bool();break}case 3:{o.autoCarousel=t.bool();break}case 4:{o.topTabFollowImg=t.bool();break}case 5:{o.topTabFadeAway=t.bool();break}case 6:{o.autoPlay=t.bool();break}case 7:{o.displayUnfoldButton=t.bool();break}case 8:{o.displayNum=t.bool();break}case 9:{o.displayViewNum=t.bool();break}case 10:{o.displaySubscribeBtn=t.bool();break}case 11:{o.unfoldRest=t.bool();break}case 12:{o.displayProgressNum=t.bool();break}case 13:{o.displayNodeNum=t.bool();break}case 14:{o.displayNodeDesc=t.bool();break}case 15:{o.pressSave=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.Setting)return t;let i=new u.bilibili.app.nativeact.v1.Setting;return t.displayMoreButton!=null&&(i.displayMoreButton=!!t.displayMoreButton),t.displayTitle!=null&&(i.displayTitle=!!t.displayTitle),t.autoCarousel!=null&&(i.autoCarousel=!!t.autoCarousel),t.topTabFollowImg!=null&&(i.topTabFollowImg=!!t.topTabFollowImg),t.topTabFadeAway!=null&&(i.topTabFadeAway=!!t.topTabFadeAway),t.autoPlay!=null&&(i.autoPlay=!!t.autoPlay),t.displayUnfoldButton!=null&&(i.displayUnfoldButton=!!t.displayUnfoldButton),t.displayNum!=null&&(i.displayNum=!!t.displayNum),t.displayViewNum!=null&&(i.displayViewNum=!!t.displayViewNum),t.displaySubscribeBtn!=null&&(i.displaySubscribeBtn=!!t.displaySubscribeBtn),t.unfoldRest!=null&&(i.unfoldRest=!!t.unfoldRest),t.displayProgressNum!=null&&(i.displayProgressNum=!!t.displayProgressNum),t.displayNodeNum!=null&&(i.displayNodeNum=!!t.displayNodeNum),t.displayNodeDesc!=null&&(i.displayNodeDesc=!!t.displayNodeDesc),t.pressSave!=null&&(i.pressSave=!!t.pressSave),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.displayMoreButton=!1,n.displayTitle=!1,n.autoCarousel=!1,n.topTabFollowImg=!1,n.topTabFadeAway=!1,n.autoPlay=!1,n.displayUnfoldButton=!1,n.displayNum=!1,n.displayViewNum=!1,n.displaySubscribeBtn=!1,n.unfoldRest=!1,n.displayProgressNum=!1,n.displayNodeNum=!1,n.displayNodeDesc=!1,n.pressSave=!1),t.displayMoreButton!=null&&t.hasOwnProperty("displayMoreButton")&&(n.displayMoreButton=t.displayMoreButton),t.displayTitle!=null&&t.hasOwnProperty("displayTitle")&&(n.displayTitle=t.displayTitle),t.autoCarousel!=null&&t.hasOwnProperty("autoCarousel")&&(n.autoCarousel=t.autoCarousel),t.topTabFollowImg!=null&&t.hasOwnProperty("topTabFollowImg")&&(n.topTabFollowImg=t.topTabFollowImg),t.topTabFadeAway!=null&&t.hasOwnProperty("topTabFadeAway")&&(n.topTabFadeAway=t.topTabFadeAway),t.autoPlay!=null&&t.hasOwnProperty("autoPlay")&&(n.autoPlay=t.autoPlay),t.displayUnfoldButton!=null&&t.hasOwnProperty("displayUnfoldButton")&&(n.displayUnfoldButton=t.displayUnfoldButton),t.displayNum!=null&&t.hasOwnProperty("displayNum")&&(n.displayNum=t.displayNum),t.displayViewNum!=null&&t.hasOwnProperty("displayViewNum")&&(n.displayViewNum=t.displayViewNum),t.displaySubscribeBtn!=null&&t.hasOwnProperty("displaySubscribeBtn")&&(n.displaySubscribeBtn=t.displaySubscribeBtn),t.unfoldRest!=null&&t.hasOwnProperty("unfoldRest")&&(n.unfoldRest=t.unfoldRest),t.displayProgressNum!=null&&t.hasOwnProperty("displayProgressNum")&&(n.displayProgressNum=t.displayProgressNum),t.displayNodeNum!=null&&t.hasOwnProperty("displayNodeNum")&&(n.displayNodeNum=t.displayNodeNum),t.displayNodeDesc!=null&&t.hasOwnProperty("displayNodeDesc")&&(n.displayNodeDesc=t.displayNodeDesc),t.pressSave!=null&&t.hasOwnProperty("pressSave")&&(n.pressSave=t.pressSave),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.Setting"},e}(),c.ModuleItem=function(){function e(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.cardType=i.string();break}case 2:{a.cardId=i.string();break}case 10:{a.editorRecommendCard=u.bilibili.app.nativeact.v1.EditorRecommendCard.decode(i,i.uint32());break}case 11:{a.participationCard=u.bilibili.app.nativeact.v1.ParticipationCard.decode(i,i.uint32());break}case 12:{a.headerCard=u.bilibili.app.nativeact.v1.HeaderCard.decode(i,i.uint32());break}case 13:{a.dynamicCard=u.bilibili.app.nativeact.v1.DynamicCard.decode(i,i.uint32());break}case 14:{a.textCard=u.bilibili.app.nativeact.v1.TextCard.decode(i,i.uint32());break}case 15:{a.textTitleCard=u.bilibili.app.nativeact.v1.TextTitleCard.decode(i,i.uint32());break}case 16:{a.imageTitleCard=u.bilibili.app.nativeact.v1.ImageTitleCard.decode(i,i.uint32());break}case 17:{a.dynamicMoreCard=u.bilibili.app.nativeact.v1.DynamicMoreCard.decode(i,i.uint32());break}case 18:{a.dynamicActMoreCard=u.bilibili.app.nativeact.v1.DynamicActMoreCard.decode(i,i.uint32());break}case 19:{a.liveCard=u.bilibili.app.nativeact.v1.LiveCard.decode(i,i.uint32());break}case 20:{a.carouselImgCard=u.bilibili.app.nativeact.v1.CarouselImgCard.decode(i,i.uint32());break}case 21:{a.carouselWordCard=u.bilibili.app.nativeact.v1.CarouselWordCard.decode(i,i.uint32());break}case 22:{a.resourceCard=u.bilibili.app.nativeact.v1.ResourceCard.decode(i,i.uint32());break}case 23:{a.resourceMoreCard=u.bilibili.app.nativeact.v1.ResourceMoreCard.decode(i,i.uint32());break}case 24:{a.gameCard=u.bilibili.app.nativeact.v1.GameCard.decode(i,i.uint32());break}case 25:{a.videoCard=u.bilibili.app.nativeact.v1.VideoCard.decode(i,i.uint32());break}case 26:{a.videoMoreCard=u.bilibili.app.nativeact.v1.VideoMoreCard.decode(i,i.uint32());break}case 27:{a.recommendCard=u.bilibili.app.nativeact.v1.RcmdCard.decode(i,i.uint32());break}case 28:{a.recommendVerticalCard=u.bilibili.app.nativeact.v1.RcmdVerticalCard.decode(i,i.uint32());break}case 29:{a.relativeactCard=u.bilibili.app.nativeact.v1.RelativeactCard.decode(i,i.uint32());break}case 30:{a.relativeactCapsuleCard=u.bilibili.app.nativeact.v1.RelativeactCapsuleCard.decode(i,i.uint32());break}case 31:{a.statementCard=u.bilibili.app.nativeact.v1.StatementCard.decode(i,i.uint32());break}case 32:{a.iconCard=u.bilibili.app.nativeact.v1.IconCard.decode(i,i.uint32());break}case 33:{a.voteCard=u.bilibili.app.nativeact.v1.VoteCard.decode(i,i.uint32());break}case 34:{a.reserveCard=u.bilibili.app.nativeact.v1.ReserveCard.decode(i,i.uint32());break}case 35:{a.timelineHeadCard=u.bilibili.app.nativeact.v1.TimelineHeadCard.decode(i,i.uint32());break}case 36:{a.timelineEventTextCard=u.bilibili.app.nativeact.v1.TimelineEventTextCard.decode(i,i.uint32());break}case 37:{a.timelineEventImageCard=u.bilibili.app.nativeact.v1.TimelineEventImageCard.decode(i,i.uint32());break}case 38:{a.timelineEventImagetextCard=u.bilibili.app.nativeact.v1.TimelineEventImagetextCard.decode(i,i.uint32());break}case 39:{a.timelineEventResourceCard=u.bilibili.app.nativeact.v1.TimelineEventResourceCard.decode(i,i.uint32());break}case 40:{a.timelineMoreCard=u.bilibili.app.nativeact.v1.TimelineMoreCard.decode(i,i.uint32());break}case 41:{a.timelineUnfoldCard=u.bilibili.app.nativeact.v1.TimelineUnfoldCard.decode(i,i.uint32());break}case 42:{a.ogvOneCard=u.bilibili.app.nativeact.v1.OgvOneCard.decode(i,i.uint32());break}case 43:{a.ogvThreeCard=u.bilibili.app.nativeact.v1.OgvThreeCard.decode(i,i.uint32());break}case 44:{a.ogvMoreCard=u.bilibili.app.nativeact.v1.OgvMoreCard.decode(i,i.uint32());break}case 45:{a.navigationCard=u.bilibili.app.nativeact.v1.NavigationCard.decode(i,i.uint32());break}case 46:{a.replyCard=u.bilibili.app.nativeact.v1.ReplyCard.decode(i,i.uint32());break}case 47:{a.tabCard=u.bilibili.app.nativeact.v1.TabCard.decode(i,i.uint32());break}case 48:{a.newactHeaderCard=u.bilibili.app.nativeact.v1.NewactHeader.decode(i,i.uint32());break}case 49:{a.newactAwardCard=u.bilibili.app.nativeact.v1.NewactAward.decode(i,i.uint32());break}case 50:{a.newactStatementCard=u.bilibili.app.nativeact.v1.NewactStatement.decode(i,i.uint32());break}case 51:{a.progressCard=u.bilibili.app.nativeact.v1.ProgressCard.decode(i,i.uint32());break}case 52:{a.selectCard=u.bilibili.app.nativeact.v1.SelectCard.decode(i,i.uint32());break}case 53:{a.clickCard=u.bilibili.app.nativeact.v1.ClickCard.decode(i,i.uint32());break}case 54:{a.hoverButtonCard=u.bilibili.app.nativeact.v1.HoverButtonCard.decode(i,i.uint32());break}case 55:{a.bottomButtonCard=u.bilibili.app.nativeact.v1.ClickCard.decode(i,i.uint32());break}case 56:{a.competitionCard=u.bilibili.app.nativeact.v1.CompetitionCard.decode(i,i.uint32());break}case 57:{a.competitionMoreCard=u.bilibili.app.nativeact.v1.CompetitionMoreCard.decode(i,i.uint32());break}case 58:{a.carouselImgWordCard=u.bilibili.app.nativeact.v1.CarouselImgWordCard.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},e.fromObject=function(i){if(i instanceof u.bilibili.app.nativeact.v1.ModuleItem)return i;let n=new u.bilibili.app.nativeact.v1.ModuleItem;if(i.cardType!=null&&(n.cardType=String(i.cardType)),i.cardId!=null&&(n.cardId=String(i.cardId)),i.editorRecommendCard!=null){if(typeof i.editorRecommendCard!="object")throw TypeError(".bilibili.app.nativeact.v1.ModuleItem.editorRecommendCard: object expected");n.editorRecommendCard=u.bilibili.app.nativeact.v1.EditorRecommendCard.fromObject(i.editorRecommendCard)}if(i.participationCard!=null){if(typeof i.participationCard!="object")throw TypeError(".bilibili.app.nativeact.v1.ModuleItem.participationCard: object expected");n.participationCard=u.bilibili.app.nativeact.v1.ParticipationCard.fromObject(i.participationCard)}if(i.headerCard!=null){if(typeof i.headerCard!="object")throw TypeError(".bilibili.app.nativeact.v1.ModuleItem.headerCard: object expected");n.headerCard=u.bilibili.app.nativeact.v1.HeaderCard.fromObject(i.headerCard)}if(i.dynamicCard!=null){if(typeof i.dynamicCard!="object")throw TypeError(".bilibili.app.nativeact.v1.ModuleItem.dynamicCard: object expected");n.dynamicCard=u.bilibili.app.nativeact.v1.DynamicCard.fromObject(i.dynamicCard)}if(i.textCard!=null){if(typeof i.textCard!="object")throw TypeError(".bilibili.app.nativeact.v1.ModuleItem.textCard: object expected");n.textCard=u.bilibili.app.nativeact.v1.TextCard.fromObject(i.textCard)}if(i.textTitleCard!=null){if(typeof i.textTitleCard!="object")throw TypeError(".bilibili.app.nativeact.v1.ModuleItem.textTitleCard: object expected");n.textTitleCard=u.bilibili.app.nativeact.v1.TextTitleCard.fromObject(i.textTitleCard)}if(i.imageTitleCard!=null){if(typeof i.imageTitleCard!="object")throw TypeError(".bilibili.app.nativeact.v1.ModuleItem.imageTitleCard: object expected");n.imageTitleCard=u.bilibili.app.nativeact.v1.ImageTitleCard.fromObject(i.imageTitleCard)}if(i.dynamicMoreCard!=null){if(typeof i.dynamicMoreCard!="object")throw TypeError(".bilibili.app.nativeact.v1.ModuleItem.dynamicMoreCard: object expected");n.dynamicMoreCard=u.bilibili.app.nativeact.v1.DynamicMoreCard.fromObject(i.dynamicMoreCard)}if(i.dynamicActMoreCard!=null){if(typeof i.dynamicActMoreCard!="object")throw TypeError(".bilibili.app.nativeact.v1.ModuleItem.dynamicActMoreCard: object expected");n.dynamicActMoreCard=u.bilibili.app.nativeact.v1.DynamicActMoreCard.fromObject(i.dynamicActMoreCard)}if(i.liveCard!=null){if(typeof i.liveCard!="object")throw TypeError(".bilibili.app.nativeact.v1.ModuleItem.liveCard: object expected");n.liveCard=u.bilibili.app.nativeact.v1.LiveCard.fromObject(i.liveCard)}if(i.carouselImgCard!=null){if(typeof i.carouselImgCard!="object")throw TypeError(".bilibili.app.nativeact.v1.ModuleItem.carouselImgCard: object expected");n.carouselImgCard=u.bilibili.app.nativeact.v1.CarouselImgCard.fromObject(i.carouselImgCard)}if(i.carouselWordCard!=null){if(typeof i.carouselWordCard!="object")throw TypeError(".bilibili.app.nativeact.v1.ModuleItem.carouselWordCard: object expected");n.carouselWordCard=u.bilibili.app.nativeact.v1.CarouselWordCard.fromObject(i.carouselWordCard)}if(i.resourceCard!=null){if(typeof i.resourceCard!="object")throw TypeError(".bilibili.app.nativeact.v1.ModuleItem.resourceCard: object expected");n.resourceCard=u.bilibili.app.nativeact.v1.ResourceCard.fromObject(i.resourceCard)}if(i.resourceMoreCard!=null){if(typeof i.resourceMoreCard!="object")throw TypeError(".bilibili.app.nativeact.v1.ModuleItem.resourceMoreCard: object expected");n.resourceMoreCard=u.bilibili.app.nativeact.v1.ResourceMoreCard.fromObject(i.resourceMoreCard)}if(i.gameCard!=null){if(typeof i.gameCard!="object")throw TypeError(".bilibili.app.nativeact.v1.ModuleItem.gameCard: object expected");n.gameCard=u.bilibili.app.nativeact.v1.GameCard.fromObject(i.gameCard)}if(i.videoCard!=null){if(typeof i.videoCard!="object")throw TypeError(".bilibili.app.nativeact.v1.ModuleItem.videoCard: object expected");n.videoCard=u.bilibili.app.nativeact.v1.VideoCard.fromObject(i.videoCard)}if(i.videoMoreCard!=null){if(typeof i.videoMoreCard!="object")throw TypeError(".bilibili.app.nativeact.v1.ModuleItem.videoMoreCard: object expected");n.videoMoreCard=u.bilibili.app.nativeact.v1.VideoMoreCard.fromObject(i.videoMoreCard)}if(i.recommendCard!=null){if(typeof i.recommendCard!="object")throw TypeError(".bilibili.app.nativeact.v1.ModuleItem.recommendCard: object expected");n.recommendCard=u.bilibili.app.nativeact.v1.RcmdCard.fromObject(i.recommendCard)}if(i.recommendVerticalCard!=null){if(typeof i.recommendVerticalCard!="object")throw TypeError(".bilibili.app.nativeact.v1.ModuleItem.recommendVerticalCard: object expected");n.recommendVerticalCard=u.bilibili.app.nativeact.v1.RcmdVerticalCard.fromObject(i.recommendVerticalCard)}if(i.relativeactCard!=null){if(typeof i.relativeactCard!="object")throw TypeError(".bilibili.app.nativeact.v1.ModuleItem.relativeactCard: object expected");n.relativeactCard=u.bilibili.app.nativeact.v1.RelativeactCard.fromObject(i.relativeactCard)}if(i.relativeactCapsuleCard!=null){if(typeof i.relativeactCapsuleCard!="object")throw TypeError(".bilibili.app.nativeact.v1.ModuleItem.relativeactCapsuleCard: object expected");n.relativeactCapsuleCard=u.bilibili.app.nativeact.v1.RelativeactCapsuleCard.fromObject(i.relativeactCapsuleCard)}if(i.statementCard!=null){if(typeof i.statementCard!="object")throw TypeError(".bilibili.app.nativeact.v1.ModuleItem.statementCard: object expected");n.statementCard=u.bilibili.app.nativeact.v1.StatementCard.fromObject(i.statementCard)}if(i.iconCard!=null){if(typeof i.iconCard!="object")throw TypeError(".bilibili.app.nativeact.v1.ModuleItem.iconCard: object expected");n.iconCard=u.bilibili.app.nativeact.v1.IconCard.fromObject(i.iconCard)}if(i.voteCard!=null){if(typeof i.voteCard!="object")throw TypeError(".bilibili.app.nativeact.v1.ModuleItem.voteCard: object expected");n.voteCard=u.bilibili.app.nativeact.v1.VoteCard.fromObject(i.voteCard)}if(i.reserveCard!=null){if(typeof i.reserveCard!="object")throw TypeError(".bilibili.app.nativeact.v1.ModuleItem.reserveCard: object expected");n.reserveCard=u.bilibili.app.nativeact.v1.ReserveCard.fromObject(i.reserveCard)}if(i.timelineHeadCard!=null){if(typeof i.timelineHeadCard!="object")throw TypeError(".bilibili.app.nativeact.v1.ModuleItem.timelineHeadCard: object expected");n.timelineHeadCard=u.bilibili.app.nativeact.v1.TimelineHeadCard.fromObject(i.timelineHeadCard)}if(i.timelineEventTextCard!=null){if(typeof i.timelineEventTextCard!="object")throw TypeError(".bilibili.app.nativeact.v1.ModuleItem.timelineEventTextCard: object expected");n.timelineEventTextCard=u.bilibili.app.nativeact.v1.TimelineEventTextCard.fromObject(i.timelineEventTextCard)}if(i.timelineEventImageCard!=null){if(typeof i.timelineEventImageCard!="object")throw TypeError(".bilibili.app.nativeact.v1.ModuleItem.timelineEventImageCard: object expected");n.timelineEventImageCard=u.bilibili.app.nativeact.v1.TimelineEventImageCard.fromObject(i.timelineEventImageCard)}if(i.timelineEventImagetextCard!=null){if(typeof i.timelineEventImagetextCard!="object")throw TypeError(".bilibili.app.nativeact.v1.ModuleItem.timelineEventImagetextCard: object expected");n.timelineEventImagetextCard=u.bilibili.app.nativeact.v1.TimelineEventImagetextCard.fromObject(i.timelineEventImagetextCard)}if(i.timelineEventResourceCard!=null){if(typeof i.timelineEventResourceCard!="object")throw TypeError(".bilibili.app.nativeact.v1.ModuleItem.timelineEventResourceCard: object expected");n.timelineEventResourceCard=u.bilibili.app.nativeact.v1.TimelineEventResourceCard.fromObject(i.timelineEventResourceCard)}if(i.timelineMoreCard!=null){if(typeof i.timelineMoreCard!="object")throw TypeError(".bilibili.app.nativeact.v1.ModuleItem.timelineMoreCard: object expected");n.timelineMoreCard=u.bilibili.app.nativeact.v1.TimelineMoreCard.fromObject(i.timelineMoreCard)}if(i.timelineUnfoldCard!=null){if(typeof i.timelineUnfoldCard!="object")throw TypeError(".bilibili.app.nativeact.v1.ModuleItem.timelineUnfoldCard: object expected");n.timelineUnfoldCard=u.bilibili.app.nativeact.v1.TimelineUnfoldCard.fromObject(i.timelineUnfoldCard)}if(i.ogvOneCard!=null){if(typeof i.ogvOneCard!="object")throw TypeError(".bilibili.app.nativeact.v1.ModuleItem.ogvOneCard: object expected");n.ogvOneCard=u.bilibili.app.nativeact.v1.OgvOneCard.fromObject(i.ogvOneCard)}if(i.ogvThreeCard!=null){if(typeof i.ogvThreeCard!="object")throw TypeError(".bilibili.app.nativeact.v1.ModuleItem.ogvThreeCard: object expected");n.ogvThreeCard=u.bilibili.app.nativeact.v1.OgvThreeCard.fromObject(i.ogvThreeCard)}if(i.ogvMoreCard!=null){if(typeof i.ogvMoreCard!="object")throw TypeError(".bilibili.app.nativeact.v1.ModuleItem.ogvMoreCard: object expected");n.ogvMoreCard=u.bilibili.app.nativeact.v1.OgvMoreCard.fromObject(i.ogvMoreCard)}if(i.navigationCard!=null){if(typeof i.navigationCard!="object")throw TypeError(".bilibili.app.nativeact.v1.ModuleItem.navigationCard: object expected");n.navigationCard=u.bilibili.app.nativeact.v1.NavigationCard.fromObject(i.navigationCard)}if(i.replyCard!=null){if(typeof i.replyCard!="object")throw TypeError(".bilibili.app.nativeact.v1.ModuleItem.replyCard: object expected");n.replyCard=u.bilibili.app.nativeact.v1.ReplyCard.fromObject(i.replyCard)}if(i.tabCard!=null){if(typeof i.tabCard!="object")throw TypeError(".bilibili.app.nativeact.v1.ModuleItem.tabCard: object expected");n.tabCard=u.bilibili.app.nativeact.v1.TabCard.fromObject(i.tabCard)}if(i.newactHeaderCard!=null){if(typeof i.newactHeaderCard!="object")throw TypeError(".bilibili.app.nativeact.v1.ModuleItem.newactHeaderCard: object expected");n.newactHeaderCard=u.bilibili.app.nativeact.v1.NewactHeader.fromObject(i.newactHeaderCard)}if(i.newactAwardCard!=null){if(typeof i.newactAwardCard!="object")throw TypeError(".bilibili.app.nativeact.v1.ModuleItem.newactAwardCard: object expected");n.newactAwardCard=u.bilibili.app.nativeact.v1.NewactAward.fromObject(i.newactAwardCard)}if(i.newactStatementCard!=null){if(typeof i.newactStatementCard!="object")throw TypeError(".bilibili.app.nativeact.v1.ModuleItem.newactStatementCard: object expected");n.newactStatementCard=u.bilibili.app.nativeact.v1.NewactStatement.fromObject(i.newactStatementCard)}if(i.progressCard!=null){if(typeof i.progressCard!="object")throw TypeError(".bilibili.app.nativeact.v1.ModuleItem.progressCard: object expected");n.progressCard=u.bilibili.app.nativeact.v1.ProgressCard.fromObject(i.progressCard)}if(i.selectCard!=null){if(typeof i.selectCard!="object")throw TypeError(".bilibili.app.nativeact.v1.ModuleItem.selectCard: object expected");n.selectCard=u.bilibili.app.nativeact.v1.SelectCard.fromObject(i.selectCard)}if(i.clickCard!=null){if(typeof i.clickCard!="object")throw TypeError(".bilibili.app.nativeact.v1.ModuleItem.clickCard: object expected");n.clickCard=u.bilibili.app.nativeact.v1.ClickCard.fromObject(i.clickCard)}if(i.hoverButtonCard!=null){if(typeof i.hoverButtonCard!="object")throw TypeError(".bilibili.app.nativeact.v1.ModuleItem.hoverButtonCard: object expected");n.hoverButtonCard=u.bilibili.app.nativeact.v1.HoverButtonCard.fromObject(i.hoverButtonCard)}if(i.bottomButtonCard!=null){if(typeof i.bottomButtonCard!="object")throw TypeError(".bilibili.app.nativeact.v1.ModuleItem.bottomButtonCard: object expected");n.bottomButtonCard=u.bilibili.app.nativeact.v1.ClickCard.fromObject(i.bottomButtonCard)}if(i.competitionCard!=null){if(typeof i.competitionCard!="object")throw TypeError(".bilibili.app.nativeact.v1.ModuleItem.competitionCard: object expected");n.competitionCard=u.bilibili.app.nativeact.v1.CompetitionCard.fromObject(i.competitionCard)}if(i.competitionMoreCard!=null){if(typeof i.competitionMoreCard!="object")throw TypeError(".bilibili.app.nativeact.v1.ModuleItem.competitionMoreCard: object expected");n.competitionMoreCard=u.bilibili.app.nativeact.v1.CompetitionMoreCard.fromObject(i.competitionMoreCard)}if(i.carouselImgWordCard!=null){if(typeof i.carouselImgWordCard!="object")throw TypeError(".bilibili.app.nativeact.v1.ModuleItem.carouselImgWordCard: object expected");n.carouselImgWordCard=u.bilibili.app.nativeact.v1.CarouselImgWordCard.fromObject(i.carouselImgWordCard)}return n},e.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.cardType="",o.cardId=""),i.cardType!=null&&i.hasOwnProperty("cardType")&&(o.cardType=i.cardType),i.cardId!=null&&i.hasOwnProperty("cardId")&&(o.cardId=i.cardId),i.editorRecommendCard!=null&&i.hasOwnProperty("editorRecommendCard")&&(o.editorRecommendCard=u.bilibili.app.nativeact.v1.EditorRecommendCard.toObject(i.editorRecommendCard,n),n.oneofs&&(o.cardDetail="editorRecommendCard")),i.participationCard!=null&&i.hasOwnProperty("participationCard")&&(o.participationCard=u.bilibili.app.nativeact.v1.ParticipationCard.toObject(i.participationCard,n),n.oneofs&&(o.cardDetail="participationCard")),i.headerCard!=null&&i.hasOwnProperty("headerCard")&&(o.headerCard=u.bilibili.app.nativeact.v1.HeaderCard.toObject(i.headerCard,n),n.oneofs&&(o.cardDetail="headerCard")),i.dynamicCard!=null&&i.hasOwnProperty("dynamicCard")&&(o.dynamicCard=u.bilibili.app.nativeact.v1.DynamicCard.toObject(i.dynamicCard,n),n.oneofs&&(o.cardDetail="dynamicCard")),i.textCard!=null&&i.hasOwnProperty("textCard")&&(o.textCard=u.bilibili.app.nativeact.v1.TextCard.toObject(i.textCard,n),n.oneofs&&(o.cardDetail="textCard")),i.textTitleCard!=null&&i.hasOwnProperty("textTitleCard")&&(o.textTitleCard=u.bilibili.app.nativeact.v1.TextTitleCard.toObject(i.textTitleCard,n),n.oneofs&&(o.cardDetail="textTitleCard")),i.imageTitleCard!=null&&i.hasOwnProperty("imageTitleCard")&&(o.imageTitleCard=u.bilibili.app.nativeact.v1.ImageTitleCard.toObject(i.imageTitleCard,n),n.oneofs&&(o.cardDetail="imageTitleCard")),i.dynamicMoreCard!=null&&i.hasOwnProperty("dynamicMoreCard")&&(o.dynamicMoreCard=u.bilibili.app.nativeact.v1.DynamicMoreCard.toObject(i.dynamicMoreCard,n),n.oneofs&&(o.cardDetail="dynamicMoreCard")),i.dynamicActMoreCard!=null&&i.hasOwnProperty("dynamicActMoreCard")&&(o.dynamicActMoreCard=u.bilibili.app.nativeact.v1.DynamicActMoreCard.toObject(i.dynamicActMoreCard,n),n.oneofs&&(o.cardDetail="dynamicActMoreCard")),i.liveCard!=null&&i.hasOwnProperty("liveCard")&&(o.liveCard=u.bilibili.app.nativeact.v1.LiveCard.toObject(i.liveCard,n),n.oneofs&&(o.cardDetail="liveCard")),i.carouselImgCard!=null&&i.hasOwnProperty("carouselImgCard")&&(o.carouselImgCard=u.bilibili.app.nativeact.v1.CarouselImgCard.toObject(i.carouselImgCard,n),n.oneofs&&(o.cardDetail="carouselImgCard")),i.carouselWordCard!=null&&i.hasOwnProperty("carouselWordCard")&&(o.carouselWordCard=u.bilibili.app.nativeact.v1.CarouselWordCard.toObject(i.carouselWordCard,n),n.oneofs&&(o.cardDetail="carouselWordCard")),i.resourceCard!=null&&i.hasOwnProperty("resourceCard")&&(o.resourceCard=u.bilibili.app.nativeact.v1.ResourceCard.toObject(i.resourceCard,n),n.oneofs&&(o.cardDetail="resourceCard")),i.resourceMoreCard!=null&&i.hasOwnProperty("resourceMoreCard")&&(o.resourceMoreCard=u.bilibili.app.nativeact.v1.ResourceMoreCard.toObject(i.resourceMoreCard,n),n.oneofs&&(o.cardDetail="resourceMoreCard")),i.gameCard!=null&&i.hasOwnProperty("gameCard")&&(o.gameCard=u.bilibili.app.nativeact.v1.GameCard.toObject(i.gameCard,n),n.oneofs&&(o.cardDetail="gameCard")),i.videoCard!=null&&i.hasOwnProperty("videoCard")&&(o.videoCard=u.bilibili.app.nativeact.v1.VideoCard.toObject(i.videoCard,n),n.oneofs&&(o.cardDetail="videoCard")),i.videoMoreCard!=null&&i.hasOwnProperty("videoMoreCard")&&(o.videoMoreCard=u.bilibili.app.nativeact.v1.VideoMoreCard.toObject(i.videoMoreCard,n),n.oneofs&&(o.cardDetail="videoMoreCard")),i.recommendCard!=null&&i.hasOwnProperty("recommendCard")&&(o.recommendCard=u.bilibili.app.nativeact.v1.RcmdCard.toObject(i.recommendCard,n),n.oneofs&&(o.cardDetail="recommendCard")),i.recommendVerticalCard!=null&&i.hasOwnProperty("recommendVerticalCard")&&(o.recommendVerticalCard=u.bilibili.app.nativeact.v1.RcmdVerticalCard.toObject(i.recommendVerticalCard,n),n.oneofs&&(o.cardDetail="recommendVerticalCard")),i.relativeactCard!=null&&i.hasOwnProperty("relativeactCard")&&(o.relativeactCard=u.bilibili.app.nativeact.v1.RelativeactCard.toObject(i.relativeactCard,n),n.oneofs&&(o.cardDetail="relativeactCard")),i.relativeactCapsuleCard!=null&&i.hasOwnProperty("relativeactCapsuleCard")&&(o.relativeactCapsuleCard=u.bilibili.app.nativeact.v1.RelativeactCapsuleCard.toObject(i.relativeactCapsuleCard,n),n.oneofs&&(o.cardDetail="relativeactCapsuleCard")),i.statementCard!=null&&i.hasOwnProperty("statementCard")&&(o.statementCard=u.bilibili.app.nativeact.v1.StatementCard.toObject(i.statementCard,n),n.oneofs&&(o.cardDetail="statementCard")),i.iconCard!=null&&i.hasOwnProperty("iconCard")&&(o.iconCard=u.bilibili.app.nativeact.v1.IconCard.toObject(i.iconCard,n),n.oneofs&&(o.cardDetail="iconCard")),i.voteCard!=null&&i.hasOwnProperty("voteCard")&&(o.voteCard=u.bilibili.app.nativeact.v1.VoteCard.toObject(i.voteCard,n),n.oneofs&&(o.cardDetail="voteCard")),i.reserveCard!=null&&i.hasOwnProperty("reserveCard")&&(o.reserveCard=u.bilibili.app.nativeact.v1.ReserveCard.toObject(i.reserveCard,n),n.oneofs&&(o.cardDetail="reserveCard")),i.timelineHeadCard!=null&&i.hasOwnProperty("timelineHeadCard")&&(o.timelineHeadCard=u.bilibili.app.nativeact.v1.TimelineHeadCard.toObject(i.timelineHeadCard,n),n.oneofs&&(o.cardDetail="timelineHeadCard")),i.timelineEventTextCard!=null&&i.hasOwnProperty("timelineEventTextCard")&&(o.timelineEventTextCard=u.bilibili.app.nativeact.v1.TimelineEventTextCard.toObject(i.timelineEventTextCard,n),n.oneofs&&(o.cardDetail="timelineEventTextCard")),i.timelineEventImageCard!=null&&i.hasOwnProperty("timelineEventImageCard")&&(o.timelineEventImageCard=u.bilibili.app.nativeact.v1.TimelineEventImageCard.toObject(i.timelineEventImageCard,n),n.oneofs&&(o.cardDetail="timelineEventImageCard")),i.timelineEventImagetextCard!=null&&i.hasOwnProperty("timelineEventImagetextCard")&&(o.timelineEventImagetextCard=u.bilibili.app.nativeact.v1.TimelineEventImagetextCard.toObject(i.timelineEventImagetextCard,n),n.oneofs&&(o.cardDetail="timelineEventImagetextCard")),i.timelineEventResourceCard!=null&&i.hasOwnProperty("timelineEventResourceCard")&&(o.timelineEventResourceCard=u.bilibili.app.nativeact.v1.TimelineEventResourceCard.toObject(i.timelineEventResourceCard,n),n.oneofs&&(o.cardDetail="timelineEventResourceCard")),i.timelineMoreCard!=null&&i.hasOwnProperty("timelineMoreCard")&&(o.timelineMoreCard=u.bilibili.app.nativeact.v1.TimelineMoreCard.toObject(i.timelineMoreCard,n),n.oneofs&&(o.cardDetail="timelineMoreCard")),i.timelineUnfoldCard!=null&&i.hasOwnProperty("timelineUnfoldCard")&&(o.timelineUnfoldCard=u.bilibili.app.nativeact.v1.TimelineUnfoldCard.toObject(i.timelineUnfoldCard,n),n.oneofs&&(o.cardDetail="timelineUnfoldCard")),i.ogvOneCard!=null&&i.hasOwnProperty("ogvOneCard")&&(o.ogvOneCard=u.bilibili.app.nativeact.v1.OgvOneCard.toObject(i.ogvOneCard,n),n.oneofs&&(o.cardDetail="ogvOneCard")),i.ogvThreeCard!=null&&i.hasOwnProperty("ogvThreeCard")&&(o.ogvThreeCard=u.bilibili.app.nativeact.v1.OgvThreeCard.toObject(i.ogvThreeCard,n),n.oneofs&&(o.cardDetail="ogvThreeCard")),i.ogvMoreCard!=null&&i.hasOwnProperty("ogvMoreCard")&&(o.ogvMoreCard=u.bilibili.app.nativeact.v1.OgvMoreCard.toObject(i.ogvMoreCard,n),n.oneofs&&(o.cardDetail="ogvMoreCard")),i.navigationCard!=null&&i.hasOwnProperty("navigationCard")&&(o.navigationCard=u.bilibili.app.nativeact.v1.NavigationCard.toObject(i.navigationCard,n),n.oneofs&&(o.cardDetail="navigationCard")),i.replyCard!=null&&i.hasOwnProperty("replyCard")&&(o.replyCard=u.bilibili.app.nativeact.v1.ReplyCard.toObject(i.replyCard,n),n.oneofs&&(o.cardDetail="replyCard")),i.tabCard!=null&&i.hasOwnProperty("tabCard")&&(o.tabCard=u.bilibili.app.nativeact.v1.TabCard.toObject(i.tabCard,n),n.oneofs&&(o.cardDetail="tabCard")),i.newactHeaderCard!=null&&i.hasOwnProperty("newactHeaderCard")&&(o.newactHeaderCard=u.bilibili.app.nativeact.v1.NewactHeader.toObject(i.newactHeaderCard,n),n.oneofs&&(o.cardDetail="newactHeaderCard")),i.newactAwardCard!=null&&i.hasOwnProperty("newactAwardCard")&&(o.newactAwardCard=u.bilibili.app.nativeact.v1.NewactAward.toObject(i.newactAwardCard,n),n.oneofs&&(o.cardDetail="newactAwardCard")),i.newactStatementCard!=null&&i.hasOwnProperty("newactStatementCard")&&(o.newactStatementCard=u.bilibili.app.nativeact.v1.NewactStatement.toObject(i.newactStatementCard,n),n.oneofs&&(o.cardDetail="newactStatementCard")),i.progressCard!=null&&i.hasOwnProperty("progressCard")&&(o.progressCard=u.bilibili.app.nativeact.v1.ProgressCard.toObject(i.progressCard,n),n.oneofs&&(o.cardDetail="progressCard")),i.selectCard!=null&&i.hasOwnProperty("selectCard")&&(o.selectCard=u.bilibili.app.nativeact.v1.SelectCard.toObject(i.selectCard,n),n.oneofs&&(o.cardDetail="selectCard")),i.clickCard!=null&&i.hasOwnProperty("clickCard")&&(o.clickCard=u.bilibili.app.nativeact.v1.ClickCard.toObject(i.clickCard,n),n.oneofs&&(o.cardDetail="clickCard")),i.hoverButtonCard!=null&&i.hasOwnProperty("hoverButtonCard")&&(o.hoverButtonCard=u.bilibili.app.nativeact.v1.HoverButtonCard.toObject(i.hoverButtonCard,n),n.oneofs&&(o.cardDetail="hoverButtonCard")),i.bottomButtonCard!=null&&i.hasOwnProperty("bottomButtonCard")&&(o.bottomButtonCard=u.bilibili.app.nativeact.v1.ClickCard.toObject(i.bottomButtonCard,n),n.oneofs&&(o.cardDetail="bottomButtonCard")),i.competitionCard!=null&&i.hasOwnProperty("competitionCard")&&(o.competitionCard=u.bilibili.app.nativeact.v1.CompetitionCard.toObject(i.competitionCard,n),n.oneofs&&(o.cardDetail="competitionCard")),i.competitionMoreCard!=null&&i.hasOwnProperty("competitionMoreCard")&&(o.competitionMoreCard=u.bilibili.app.nativeact.v1.CompetitionMoreCard.toObject(i.competitionMoreCard,n),n.oneofs&&(o.cardDetail="competitionMoreCard")),i.carouselImgWordCard!=null&&i.hasOwnProperty("carouselImgWordCard")&&(o.carouselImgWordCard=u.bilibili.app.nativeact.v1.CarouselImgWordCard.toObject(i.carouselImgWordCard,n),n.oneofs&&(o.cardDetail="carouselImgWordCard")),o},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.app.nativeact.v1.ModuleItem"},e}(),c.CompetitionMoreCard=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.text=t.string();break}case 2:{o.uri=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.CompetitionMoreCard)return t;let i=new u.bilibili.app.nativeact.v1.CompetitionMoreCard;return t.text!=null&&(i.text=String(t.text)),t.uri!=null&&(i.uri=String(t.uri)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.text="",n.uri=""),t.text!=null&&t.hasOwnProperty("text")&&(n.text=t.text),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.CompetitionMoreCard"},e}(),c.CompetitionCard=function(){function e(l){if(this.item=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.day=t.string();break}case 2:{o.week=t.string();break}case 3:{o.item&&o.item.length||(o.item=[]),o.item.push(u.bilibili.app.nativeact.v1.CompetitionItem.decode(t,t.uint32()));break}case 4:{o.msg=t.string();break}case 5:{o.seasonId=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.CompetitionCard)return t;let i=new u.bilibili.app.nativeact.v1.CompetitionCard;if(t.day!=null&&(i.day=String(t.day)),t.week!=null&&(i.week=String(t.week)),t.item){if(!Array.isArray(t.item))throw TypeError(".bilibili.app.nativeact.v1.CompetitionCard.item: array expected");i.item=[];for(let n=0;n>>0,t.seasonId.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if((i.arrays||i.defaults)&&(n.item=[]),i.defaults)if(n.day="",n.week="",n.msg="",r.Long){let o=new r.Long(0,0,!1);n.seasonId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.seasonId=i.longs===String?"0":0;if(t.day!=null&&t.hasOwnProperty("day")&&(n.day=t.day),t.week!=null&&t.hasOwnProperty("week")&&(n.week=t.week),t.item&&t.item.length){n.item=[];for(let o=0;o>>0,t.seasonId.high>>>0).toNumber():t.seasonId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.CompetitionCard"},e}(),c.CompetitionItem=function(){function e(l){if(this.clickButton=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.leftText=t.string();break}case 2:{o.gameStage=t.string();break}case 3:{o.home=u.bilibili.app.nativeact.v1.Team.decode(t,t.uint32());break}case 4:{o.away=u.bilibili.app.nativeact.v1.Team.decode(t,t.uint32());break}case 5:{o.watchPoint=t.string();break}case 6:{o.watchPointIcon=t.string();break}case 7:{o.url=t.string();break}case 8:{o.contestStatus=t.int32();break}case 9:{o.clickButton&&o.clickButton.length||(o.clickButton=[]),o.clickButton.push(u.bilibili.app.nativeact.v1.ClickButton.decode(t,t.uint32()));break}case 10:{o.id=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.CompetitionItem)return t;let i=new u.bilibili.app.nativeact.v1.CompetitionItem;if(t.leftText!=null&&(i.leftText=String(t.leftText)),t.gameStage!=null&&(i.gameStage=String(t.gameStage)),t.home!=null){if(typeof t.home!="object")throw TypeError(".bilibili.app.nativeact.v1.CompetitionItem.home: object expected");i.home=u.bilibili.app.nativeact.v1.Team.fromObject(t.home)}if(t.away!=null){if(typeof t.away!="object")throw TypeError(".bilibili.app.nativeact.v1.CompetitionItem.away: object expected");i.away=u.bilibili.app.nativeact.v1.Team.fromObject(t.away)}if(t.watchPoint!=null&&(i.watchPoint=String(t.watchPoint)),t.watchPointIcon!=null&&(i.watchPointIcon=String(t.watchPointIcon)),t.url!=null&&(i.url=String(t.url)),t.contestStatus!=null&&(i.contestStatus=t.contestStatus|0),t.clickButton){if(!Array.isArray(t.clickButton))throw TypeError(".bilibili.app.nativeact.v1.CompetitionItem.clickButton: array expected");i.clickButton=[];for(let n=0;n>>0,t.id.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if((i.arrays||i.defaults)&&(n.clickButton=[]),i.defaults)if(n.leftText="",n.gameStage="",n.home=null,n.away=null,n.watchPoint="",n.watchPointIcon="",n.url="",n.contestStatus=0,r.Long){let o=new r.Long(0,0,!1);n.id=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.id=i.longs===String?"0":0;if(t.leftText!=null&&t.hasOwnProperty("leftText")&&(n.leftText=t.leftText),t.gameStage!=null&&t.hasOwnProperty("gameStage")&&(n.gameStage=t.gameStage),t.home!=null&&t.hasOwnProperty("home")&&(n.home=u.bilibili.app.nativeact.v1.Team.toObject(t.home,i)),t.away!=null&&t.hasOwnProperty("away")&&(n.away=u.bilibili.app.nativeact.v1.Team.toObject(t.away,i)),t.watchPoint!=null&&t.hasOwnProperty("watchPoint")&&(n.watchPoint=t.watchPoint),t.watchPointIcon!=null&&t.hasOwnProperty("watchPointIcon")&&(n.watchPointIcon=t.watchPointIcon),t.url!=null&&t.hasOwnProperty("url")&&(n.url=t.url),t.contestStatus!=null&&t.hasOwnProperty("contestStatus")&&(n.contestStatus=t.contestStatus),t.clickButton&&t.clickButton.length){n.clickButton=[];for(let o=0;o>>0,t.id.high>>>0).toNumber():t.id),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.CompetitionItem"},e}(),c.ComAction=function(){let e={},l=Object.create(e);return l[e[0]="ComActUnknown"]=0,l[e[1]="ComActRedirect"]=1,l[e[2]="ComActRequest"]=2,l[e[3]="ComAClickUnable"]=3,l}(),c.ClickButton=function(){function e(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.action=i.int32();break}case 2:{a.redirectAct=u.bilibili.app.nativeact.v1.ComClickActRedirect.decode(i,i.uint32());break}case 3:{a.requestAct=u.bilibili.app.nativeact.v1.ComClickActRequest.decode(i,i.uint32());break}case 4:{a.clickUnable=u.bilibili.app.nativeact.v1.ComClickUnable.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},e.fromObject=function(i){if(i instanceof u.bilibili.app.nativeact.v1.ClickButton)return i;let n=new u.bilibili.app.nativeact.v1.ClickButton;switch(i.action){default:if(typeof i.action=="number"){n.action=i.action;break}break;case"ComActUnknown":case 0:n.action=0;break;case"ComActRedirect":case 1:n.action=1;break;case"ComActRequest":case 2:n.action=2;break;case"ComAClickUnable":case 3:n.action=3;break}if(i.redirectAct!=null){if(typeof i.redirectAct!="object")throw TypeError(".bilibili.app.nativeact.v1.ClickButton.redirectAct: object expected");n.redirectAct=u.bilibili.app.nativeact.v1.ComClickActRedirect.fromObject(i.redirectAct)}if(i.requestAct!=null){if(typeof i.requestAct!="object")throw TypeError(".bilibili.app.nativeact.v1.ClickButton.requestAct: object expected");n.requestAct=u.bilibili.app.nativeact.v1.ComClickActRequest.fromObject(i.requestAct)}if(i.clickUnable!=null){if(typeof i.clickUnable!="object")throw TypeError(".bilibili.app.nativeact.v1.ClickButton.clickUnable: object expected");n.clickUnable=u.bilibili.app.nativeact.v1.ComClickUnable.fromObject(i.clickUnable)}return n},e.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.action=n.enums===String?"ComActUnknown":0),i.action!=null&&i.hasOwnProperty("action")&&(o.action=n.enums===String?u.bilibili.app.nativeact.v1.ComAction[i.action]===void 0?i.action:u.bilibili.app.nativeact.v1.ComAction[i.action]:i.action),i.redirectAct!=null&&i.hasOwnProperty("redirectAct")&&(o.redirectAct=u.bilibili.app.nativeact.v1.ComClickActRedirect.toObject(i.redirectAct,n),n.oneofs&&(o.actionDetail="redirectAct")),i.requestAct!=null&&i.hasOwnProperty("requestAct")&&(o.requestAct=u.bilibili.app.nativeact.v1.ComClickActRequest.toObject(i.requestAct,n),n.oneofs&&(o.actionDetail="requestAct")),i.clickUnable!=null&&i.hasOwnProperty("clickUnable")&&(o.clickUnable=u.bilibili.app.nativeact.v1.ComClickUnable.toObject(i.clickUnable,n),n.oneofs&&(o.actionDetail="clickUnable")),o},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.app.nativeact.v1.ClickButton"},e}(),c.ComClickActRequest=function(){function e(l){if(this.details=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.id=t.int64();break}case 2:{o.reqType=t.int32();break}case 3:{o.state=t.int32();break}case 4:{o.details&&o.details.length||(o.details=[]),o.details.push(u.bilibili.app.nativeact.v1.ClickRequestDetail.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.ComClickActRequest)return t;let i=new u.bilibili.app.nativeact.v1.ComClickActRequest;switch(t.id!=null&&(r.Long?(i.id=r.Long.fromValue(t.id)).unsigned=!1:typeof t.id=="string"?i.id=parseInt(t.id,10):typeof t.id=="number"?i.id=t.id:typeof t.id=="object"&&(i.id=new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber())),t.reqType){default:if(typeof t.reqType=="number"){i.reqType=t.reqType;break}break;case"CRTypeUnknown":case 0:i.reqType=0;break;case"CRTypeFollowUser":case 1:i.reqType=1;break;case"CRTypeFollowEpisode":case 2:i.reqType=2;break;case"CRTypeFollowComic":case 3:i.reqType=3;break;case"CRTypeReserve":case 4:i.reqType=4;break;case"CRTypeReceiveAward":case 5:i.reqType=5;break;case"CRTypeMallWantGo":case 6:i.reqType=6;break;case"CRTypeActivity":case 7:i.reqType=7;break;case"CRTypeUpReserve":case 8:i.reqType=8;break;case"CRTypeContestFav":case 9:i.reqType=9;break}switch(t.state){default:if(typeof t.state=="number"){i.state=t.state;break}break;case"CRSUnknown":case 0:i.state=0;break;case"CRSDone":case 1:i.state=1;break;case"CRSUndone":case 2:i.state=2;break;case"CRSDisable":case 3:i.state=3;break}if(t.details){if(!Array.isArray(t.details))throw TypeError(".bilibili.app.nativeact.v1.ComClickActRequest.details: array expected");i.details=[];for(let n=0;n>>0,t.id.high>>>0).toNumber():t.id),t.reqType!=null&&t.hasOwnProperty("reqType")&&(n.reqType=i.enums===String?u.bilibili.app.nativeact.v1.ClickRequestType[t.reqType]===void 0?t.reqType:u.bilibili.app.nativeact.v1.ClickRequestType[t.reqType]:t.reqType),t.state!=null&&t.hasOwnProperty("state")&&(n.state=i.enums===String?u.bilibili.app.nativeact.v1.ClickRequestState[t.state]===void 0?t.state:u.bilibili.app.nativeact.v1.ClickRequestState[t.state]:t.state),t.details&&t.details.length){n.details=[];for(let o=0;o>>3){case 1:{o.url=t.string();break}case 2:{o.title=t.string();break}case 3:{o.icon=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.ComClickActRedirect)return t;let i=new u.bilibili.app.nativeact.v1.ComClickActRedirect;return t.url!=null&&(i.url=String(t.url)),t.title!=null&&(i.title=String(t.title)),t.icon!=null&&(i.icon=String(t.icon)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.url="",n.title="",n.icon=""),t.url!=null&&t.hasOwnProperty("url")&&(n.url=t.url),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.icon!=null&&t.hasOwnProperty("icon")&&(n.icon=t.icon),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.ComClickActRedirect"},e}(),c.ComClickUnable=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.ComClickUnable)return t;let i=new u.bilibili.app.nativeact.v1.ComClickUnable;return t.title!=null&&(i.title=String(t.title)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.title=""),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.ComClickUnable"},e}(),c.Team=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.id=t.int64();break}case 2:{o.score=t.string();break}case 3:{o.logo=t.string();break}case 4:{o.title=t.string();break}case 5:{o.homeSmallScore=t.string();break}case 6:{o.result=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.Team)return t;let i=new u.bilibili.app.nativeact.v1.Team;switch(t.id!=null&&(r.Long?(i.id=r.Long.fromValue(t.id)).unsigned=!1:typeof t.id=="string"?i.id=parseInt(t.id,10):typeof t.id=="number"?i.id=t.id:typeof t.id=="object"&&(i.id=new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber())),t.score!=null&&(i.score=String(t.score)),t.logo!=null&&(i.logo=String(t.logo)),t.title!=null&&(i.title=String(t.title)),t.homeSmallScore!=null&&(i.homeSmallScore=String(t.homeSmallScore)),t.result){default:if(typeof t.result=="number"){i.result=t.result;break}break;case"UNKNOW":case 0:i.result=0;break;case"DOGFALL":case 1:i.result=1;break;case"WIN":case 2:i.result=2;break;case"LOSE":case 3:i.result=3;break}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.id=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.id=i.longs===String?"0":0;n.score="",n.logo="",n.title="",n.homeSmallScore="",n.result=i.enums===String?"UNKNOW":0}return t.id!=null&&t.hasOwnProperty("id")&&(typeof t.id=="number"?n.id=i.longs===String?String(t.id):t.id:n.id=i.longs===String?r.Long.prototype.toString.call(t.id):i.longs===Number?new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber():t.id),t.score!=null&&t.hasOwnProperty("score")&&(n.score=t.score),t.logo!=null&&t.hasOwnProperty("logo")&&(n.logo=t.logo),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.homeSmallScore!=null&&t.hasOwnProperty("homeSmallScore")&&(n.homeSmallScore=t.homeSmallScore),t.result!=null&&t.hasOwnProperty("result")&&(n.result=i.enums===String?u.bilibili.app.nativeact.v1.MatchResult[t.result]===void 0?t.result:u.bilibili.app.nativeact.v1.MatchResult[t.result]:t.result),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.Team"},e}(),c.MatchResult=function(){let e={},l=Object.create(e);return l[e[0]="UNKNOW"]=0,l[e[1]="DOGFALL"]=1,l[e[2]="WIN"]=2,l[e[3]="LOSE"]=3,l}(),c.CarouselImgWordCard=function(){function e(l){if(this.words=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.durationTime=t.int64();break}case 2:{o.scrollType=t.int64();break}case 3:{o.words&&o.words.length||(o.words=[]),o.words.push(u.bilibili.app.nativeact.v1.CarouselImgWordItem.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.CarouselImgWordCard)return t;let i=new u.bilibili.app.nativeact.v1.CarouselImgWordCard;if(t.durationTime!=null&&(r.Long?(i.durationTime=r.Long.fromValue(t.durationTime)).unsigned=!1:typeof t.durationTime=="string"?i.durationTime=parseInt(t.durationTime,10):typeof t.durationTime=="number"?i.durationTime=t.durationTime:typeof t.durationTime=="object"&&(i.durationTime=new r.LongBits(t.durationTime.low>>>0,t.durationTime.high>>>0).toNumber())),t.scrollType!=null&&(r.Long?(i.scrollType=r.Long.fromValue(t.scrollType)).unsigned=!1:typeof t.scrollType=="string"?i.scrollType=parseInt(t.scrollType,10):typeof t.scrollType=="number"?i.scrollType=t.scrollType:typeof t.scrollType=="object"&&(i.scrollType=new r.LongBits(t.scrollType.low>>>0,t.scrollType.high>>>0).toNumber())),t.words){if(!Array.isArray(t.words))throw TypeError(".bilibili.app.nativeact.v1.CarouselImgWordCard.words: array expected");i.words=[];for(let n=0;n>>0,t.durationTime.high>>>0).toNumber():t.durationTime),t.scrollType!=null&&t.hasOwnProperty("scrollType")&&(typeof t.scrollType=="number"?n.scrollType=i.longs===String?String(t.scrollType):t.scrollType:n.scrollType=i.longs===String?r.Long.prototype.toString.call(t.scrollType):i.longs===Number?new r.LongBits(t.scrollType.low>>>0,t.scrollType.high>>>0).toNumber():t.scrollType),t.words&&t.words.length){n.words=[];for(let o=0;o>>3){case 1:{o.img=t.string();break}case 2:{o.url=t.string();break}case 3:{o.context=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.CarouselImgWordItem)return t;let i=new u.bilibili.app.nativeact.v1.CarouselImgWordItem;return t.img!=null&&(i.img=String(t.img)),t.url!=null&&(i.url=String(t.url)),t.context!=null&&(i.context=String(t.context)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.img="",n.url="",n.context=""),t.img!=null&&t.hasOwnProperty("img")&&(n.img=t.img),t.url!=null&&t.hasOwnProperty("url")&&(n.url=t.url),t.context!=null&&t.hasOwnProperty("context")&&(n.context=t.context),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.CarouselImgWordItem"},e}(),c.GameCard=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.image=t.string();break}case 2:{o.title=t.string();break}case 3:{o.uri=t.string();break}case 4:{o.subtitle=t.string();break}case 5:{o.content=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.GameCard)return t;let i=new u.bilibili.app.nativeact.v1.GameCard;return t.image!=null&&(i.image=String(t.image)),t.title!=null&&(i.title=String(t.title)),t.uri!=null&&(i.uri=String(t.uri)),t.subtitle!=null&&(i.subtitle=String(t.subtitle)),t.content!=null&&(i.content=String(t.content)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.image="",n.title="",n.uri="",n.subtitle="",n.content=""),t.image!=null&&t.hasOwnProperty("image")&&(n.image=t.image),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),t.subtitle!=null&&t.hasOwnProperty("subtitle")&&(n.subtitle=t.subtitle),t.content!=null&&t.hasOwnProperty("content")&&(n.content=t.content),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.GameCard"},e}(),c.LiveCard=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.hasLive=t.int32();break}case 2:{o.content=u.bilibili.app.nativeact.v1.LiveItem.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.LiveCard)return t;let i=new u.bilibili.app.nativeact.v1.LiveCard;if(t.hasLive!=null&&(i.hasLive=t.hasLive|0),t.content!=null){if(typeof t.content!="object")throw TypeError(".bilibili.app.nativeact.v1.LiveCard.content: object expected");i.content=u.bilibili.app.nativeact.v1.LiveItem.fromObject(t.content)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.hasLive=0,n.content=null),t.hasLive!=null&&t.hasOwnProperty("hasLive")&&(n.hasLive=t.hasLive),t.content!=null&&t.hasOwnProperty("content")&&(n.content=u.bilibili.app.nativeact.v1.LiveItem.toObject(t.content,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.LiveCard"},e}(),c.LiveItem=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.roomId=t.int64();break}case 2:{o.uid=t.int64();break}case 3:{o.liveStatus=t.int64();break}case 4:{o.roomType=t.int64();break}case 5:{o.playType=t.int64();break}case 6:{o.title=t.string();break}case 7:{o.cover=t.string();break}case 8:{o.online=t.int64();break}case 9:{o.areaId=t.int64();break}case 10:{o.areaName=t.string();break}case 11:{o.parentAreaId=t.int64();break}case 12:{o.parentAreaName=t.string();break}case 13:{o.liveScreenType=t.int64();break}case 14:{o.lastEndTime=t.int64();break}case 15:{o.link=t.string();break}case 16:{o.liveId=t.uint64();break}case 17:{o.watchedShow=u.bilibili.app.nativeact.v1.LiveWatchedShow.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.LiveItem)return t;let i=new u.bilibili.app.nativeact.v1.LiveItem;if(t.roomId!=null&&(r.Long?(i.roomId=r.Long.fromValue(t.roomId)).unsigned=!1:typeof t.roomId=="string"?i.roomId=parseInt(t.roomId,10):typeof t.roomId=="number"?i.roomId=t.roomId:typeof t.roomId=="object"&&(i.roomId=new r.LongBits(t.roomId.low>>>0,t.roomId.high>>>0).toNumber())),t.uid!=null&&(r.Long?(i.uid=r.Long.fromValue(t.uid)).unsigned=!1:typeof t.uid=="string"?i.uid=parseInt(t.uid,10):typeof t.uid=="number"?i.uid=t.uid:typeof t.uid=="object"&&(i.uid=new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber())),t.liveStatus!=null&&(r.Long?(i.liveStatus=r.Long.fromValue(t.liveStatus)).unsigned=!1:typeof t.liveStatus=="string"?i.liveStatus=parseInt(t.liveStatus,10):typeof t.liveStatus=="number"?i.liveStatus=t.liveStatus:typeof t.liveStatus=="object"&&(i.liveStatus=new r.LongBits(t.liveStatus.low>>>0,t.liveStatus.high>>>0).toNumber())),t.roomType!=null&&(r.Long?(i.roomType=r.Long.fromValue(t.roomType)).unsigned=!1:typeof t.roomType=="string"?i.roomType=parseInt(t.roomType,10):typeof t.roomType=="number"?i.roomType=t.roomType:typeof t.roomType=="object"&&(i.roomType=new r.LongBits(t.roomType.low>>>0,t.roomType.high>>>0).toNumber())),t.playType!=null&&(r.Long?(i.playType=r.Long.fromValue(t.playType)).unsigned=!1:typeof t.playType=="string"?i.playType=parseInt(t.playType,10):typeof t.playType=="number"?i.playType=t.playType:typeof t.playType=="object"&&(i.playType=new r.LongBits(t.playType.low>>>0,t.playType.high>>>0).toNumber())),t.title!=null&&(i.title=String(t.title)),t.cover!=null&&(i.cover=String(t.cover)),t.online!=null&&(r.Long?(i.online=r.Long.fromValue(t.online)).unsigned=!1:typeof t.online=="string"?i.online=parseInt(t.online,10):typeof t.online=="number"?i.online=t.online:typeof t.online=="object"&&(i.online=new r.LongBits(t.online.low>>>0,t.online.high>>>0).toNumber())),t.areaId!=null&&(r.Long?(i.areaId=r.Long.fromValue(t.areaId)).unsigned=!1:typeof t.areaId=="string"?i.areaId=parseInt(t.areaId,10):typeof t.areaId=="number"?i.areaId=t.areaId:typeof t.areaId=="object"&&(i.areaId=new r.LongBits(t.areaId.low>>>0,t.areaId.high>>>0).toNumber())),t.areaName!=null&&(i.areaName=String(t.areaName)),t.parentAreaId!=null&&(r.Long?(i.parentAreaId=r.Long.fromValue(t.parentAreaId)).unsigned=!1:typeof t.parentAreaId=="string"?i.parentAreaId=parseInt(t.parentAreaId,10):typeof t.parentAreaId=="number"?i.parentAreaId=t.parentAreaId:typeof t.parentAreaId=="object"&&(i.parentAreaId=new r.LongBits(t.parentAreaId.low>>>0,t.parentAreaId.high>>>0).toNumber())),t.parentAreaName!=null&&(i.parentAreaName=String(t.parentAreaName)),t.liveScreenType!=null&&(r.Long?(i.liveScreenType=r.Long.fromValue(t.liveScreenType)).unsigned=!1:typeof t.liveScreenType=="string"?i.liveScreenType=parseInt(t.liveScreenType,10):typeof t.liveScreenType=="number"?i.liveScreenType=t.liveScreenType:typeof t.liveScreenType=="object"&&(i.liveScreenType=new r.LongBits(t.liveScreenType.low>>>0,t.liveScreenType.high>>>0).toNumber())),t.lastEndTime!=null&&(r.Long?(i.lastEndTime=r.Long.fromValue(t.lastEndTime)).unsigned=!1:typeof t.lastEndTime=="string"?i.lastEndTime=parseInt(t.lastEndTime,10):typeof t.lastEndTime=="number"?i.lastEndTime=t.lastEndTime:typeof t.lastEndTime=="object"&&(i.lastEndTime=new r.LongBits(t.lastEndTime.low>>>0,t.lastEndTime.high>>>0).toNumber())),t.link!=null&&(i.link=String(t.link)),t.liveId!=null&&(r.Long?(i.liveId=r.Long.fromValue(t.liveId)).unsigned=!0:typeof t.liveId=="string"?i.liveId=parseInt(t.liveId,10):typeof t.liveId=="number"?i.liveId=t.liveId:typeof t.liveId=="object"&&(i.liveId=new r.LongBits(t.liveId.low>>>0,t.liveId.high>>>0).toNumber(!0))),t.watchedShow!=null){if(typeof t.watchedShow!="object")throw TypeError(".bilibili.app.nativeact.v1.LiveItem.watchedShow: object expected");i.watchedShow=u.bilibili.app.nativeact.v1.LiveWatchedShow.fromObject(t.watchedShow)}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.roomId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.roomId=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.uid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.uid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.liveStatus=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.liveStatus=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.roomType=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.roomType=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.playType=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.playType=i.longs===String?"0":0;if(n.title="",n.cover="",r.Long){let o=new r.Long(0,0,!1);n.online=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.online=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.areaId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.areaId=i.longs===String?"0":0;if(n.areaName="",r.Long){let o=new r.Long(0,0,!1);n.parentAreaId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.parentAreaId=i.longs===String?"0":0;if(n.parentAreaName="",r.Long){let o=new r.Long(0,0,!1);n.liveScreenType=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.liveScreenType=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.lastEndTime=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.lastEndTime=i.longs===String?"0":0;if(n.link="",r.Long){let o=new r.Long(0,0,!0);n.liveId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.liveId=i.longs===String?"0":0;n.watchedShow=null}return t.roomId!=null&&t.hasOwnProperty("roomId")&&(typeof t.roomId=="number"?n.roomId=i.longs===String?String(t.roomId):t.roomId:n.roomId=i.longs===String?r.Long.prototype.toString.call(t.roomId):i.longs===Number?new r.LongBits(t.roomId.low>>>0,t.roomId.high>>>0).toNumber():t.roomId),t.uid!=null&&t.hasOwnProperty("uid")&&(typeof t.uid=="number"?n.uid=i.longs===String?String(t.uid):t.uid:n.uid=i.longs===String?r.Long.prototype.toString.call(t.uid):i.longs===Number?new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber():t.uid),t.liveStatus!=null&&t.hasOwnProperty("liveStatus")&&(typeof t.liveStatus=="number"?n.liveStatus=i.longs===String?String(t.liveStatus):t.liveStatus:n.liveStatus=i.longs===String?r.Long.prototype.toString.call(t.liveStatus):i.longs===Number?new r.LongBits(t.liveStatus.low>>>0,t.liveStatus.high>>>0).toNumber():t.liveStatus),t.roomType!=null&&t.hasOwnProperty("roomType")&&(typeof t.roomType=="number"?n.roomType=i.longs===String?String(t.roomType):t.roomType:n.roomType=i.longs===String?r.Long.prototype.toString.call(t.roomType):i.longs===Number?new r.LongBits(t.roomType.low>>>0,t.roomType.high>>>0).toNumber():t.roomType),t.playType!=null&&t.hasOwnProperty("playType")&&(typeof t.playType=="number"?n.playType=i.longs===String?String(t.playType):t.playType:n.playType=i.longs===String?r.Long.prototype.toString.call(t.playType):i.longs===Number?new r.LongBits(t.playType.low>>>0,t.playType.high>>>0).toNumber():t.playType),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.cover!=null&&t.hasOwnProperty("cover")&&(n.cover=t.cover),t.online!=null&&t.hasOwnProperty("online")&&(typeof t.online=="number"?n.online=i.longs===String?String(t.online):t.online:n.online=i.longs===String?r.Long.prototype.toString.call(t.online):i.longs===Number?new r.LongBits(t.online.low>>>0,t.online.high>>>0).toNumber():t.online),t.areaId!=null&&t.hasOwnProperty("areaId")&&(typeof t.areaId=="number"?n.areaId=i.longs===String?String(t.areaId):t.areaId:n.areaId=i.longs===String?r.Long.prototype.toString.call(t.areaId):i.longs===Number?new r.LongBits(t.areaId.low>>>0,t.areaId.high>>>0).toNumber():t.areaId),t.areaName!=null&&t.hasOwnProperty("areaName")&&(n.areaName=t.areaName),t.parentAreaId!=null&&t.hasOwnProperty("parentAreaId")&&(typeof t.parentAreaId=="number"?n.parentAreaId=i.longs===String?String(t.parentAreaId):t.parentAreaId:n.parentAreaId=i.longs===String?r.Long.prototype.toString.call(t.parentAreaId):i.longs===Number?new r.LongBits(t.parentAreaId.low>>>0,t.parentAreaId.high>>>0).toNumber():t.parentAreaId),t.parentAreaName!=null&&t.hasOwnProperty("parentAreaName")&&(n.parentAreaName=t.parentAreaName),t.liveScreenType!=null&&t.hasOwnProperty("liveScreenType")&&(typeof t.liveScreenType=="number"?n.liveScreenType=i.longs===String?String(t.liveScreenType):t.liveScreenType:n.liveScreenType=i.longs===String?r.Long.prototype.toString.call(t.liveScreenType):i.longs===Number?new r.LongBits(t.liveScreenType.low>>>0,t.liveScreenType.high>>>0).toNumber():t.liveScreenType),t.lastEndTime!=null&&t.hasOwnProperty("lastEndTime")&&(typeof t.lastEndTime=="number"?n.lastEndTime=i.longs===String?String(t.lastEndTime):t.lastEndTime:n.lastEndTime=i.longs===String?r.Long.prototype.toString.call(t.lastEndTime):i.longs===Number?new r.LongBits(t.lastEndTime.low>>>0,t.lastEndTime.high>>>0).toNumber():t.lastEndTime),t.link!=null&&t.hasOwnProperty("link")&&(n.link=t.link),t.liveId!=null&&t.hasOwnProperty("liveId")&&(typeof t.liveId=="number"?n.liveId=i.longs===String?String(t.liveId):t.liveId:n.liveId=i.longs===String?r.Long.prototype.toString.call(t.liveId):i.longs===Number?new r.LongBits(t.liveId.low>>>0,t.liveId.high>>>0).toNumber(!0):t.liveId),t.watchedShow!=null&&t.hasOwnProperty("watchedShow")&&(n.watchedShow=u.bilibili.app.nativeact.v1.LiveWatchedShow.toObject(t.watchedShow,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.LiveItem"},e}(),c.LiveWatchedShow=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.switch=t.bool();break}case 2:{o.num=t.int64();break}case 3:{o.textSmall=t.string();break}case 4:{o.textLarge=t.string();break}case 5:{o.icon=t.string();break}case 6:{o.iconLocation=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.LiveWatchedShow)return t;let i=new u.bilibili.app.nativeact.v1.LiveWatchedShow;return t.switch!=null&&(i.switch=!!t.switch),t.num!=null&&(r.Long?(i.num=r.Long.fromValue(t.num)).unsigned=!1:typeof t.num=="string"?i.num=parseInt(t.num,10):typeof t.num=="number"?i.num=t.num:typeof t.num=="object"&&(i.num=new r.LongBits(t.num.low>>>0,t.num.high>>>0).toNumber())),t.textSmall!=null&&(i.textSmall=String(t.textSmall)),t.textLarge!=null&&(i.textLarge=String(t.textLarge)),t.icon!=null&&(i.icon=String(t.icon)),t.iconLocation!=null&&(i.iconLocation=String(t.iconLocation)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.switch=!1,r.Long){let o=new r.Long(0,0,!1);n.num=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.num=i.longs===String?"0":0;n.textSmall="",n.textLarge="",n.icon="",n.iconLocation=""}return t.switch!=null&&t.hasOwnProperty("switch")&&(n.switch=t.switch),t.num!=null&&t.hasOwnProperty("num")&&(typeof t.num=="number"?n.num=i.longs===String?String(t.num):t.num:n.num=i.longs===String?r.Long.prototype.toString.call(t.num):i.longs===Number?new r.LongBits(t.num.low>>>0,t.num.high>>>0).toNumber():t.num),t.textSmall!=null&&t.hasOwnProperty("textSmall")&&(n.textSmall=t.textSmall),t.textLarge!=null&&t.hasOwnProperty("textLarge")&&(n.textLarge=t.textLarge),t.icon!=null&&t.hasOwnProperty("icon")&&(n.icon=t.icon),t.iconLocation!=null&&t.hasOwnProperty("iconLocation")&&(n.iconLocation=t.iconLocation),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.LiveWatchedShow"},e}(),c.Color=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.bgColor=t.string();break}case 2:{o.titleColor=t.string();break}case 3:{o.topFontColor=t.string();break}case 4:{o.bottomFontColor=t.string();break}case 5:{o.fontColor=t.string();break}case 6:{o.textTitleFontColor=t.string();break}case 7:{o.indicatorColor=t.string();break}case 8:{o.cardBgColor=t.string();break}case 9:{o.cardTitleFontColor=t.string();break}case 10:{o.cardTitleBgColor=t.string();break}case 11:{o.viewMoreFontColor=t.string();break}case 12:{o.viewMoreBgColor=t.string();break}case 13:{o.timelineColor=t.string();break}case 14:{o.rcmdFontColor=t.string();break}case 15:{o.subtitleFontColor=t.string();break}case 16:{o.selectedFontColor=t.string();break}case 17:{o.selectedBgColor=t.string();break}case 18:{o.unselectedFontColor=t.string();break}case 19:{o.unselectedBgColor=t.string();break}case 20:{o.ntSelectedFontColor=t.string();break}case 21:{o.ntSelectedBgColor=t.string();break}case 22:{o.ntUnselectedFontColor=t.string();break}case 23:{o.ntUnselectedBgColor=t.string();break}case 24:{o.progressBarColor=t.string();break}case 25:{o.panelBgColor=t.string();break}case 26:{o.panelSelectColor=t.string();break}case 27:{o.panelSelectFontColor=t.string();break}case 28:{o.panelNtSelectFontColor=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.Color)return t;let i=new u.bilibili.app.nativeact.v1.Color;return t.bgColor!=null&&(i.bgColor=String(t.bgColor)),t.titleColor!=null&&(i.titleColor=String(t.titleColor)),t.topFontColor!=null&&(i.topFontColor=String(t.topFontColor)),t.bottomFontColor!=null&&(i.bottomFontColor=String(t.bottomFontColor)),t.fontColor!=null&&(i.fontColor=String(t.fontColor)),t.textTitleFontColor!=null&&(i.textTitleFontColor=String(t.textTitleFontColor)),t.indicatorColor!=null&&(i.indicatorColor=String(t.indicatorColor)),t.cardBgColor!=null&&(i.cardBgColor=String(t.cardBgColor)),t.cardTitleFontColor!=null&&(i.cardTitleFontColor=String(t.cardTitleFontColor)),t.cardTitleBgColor!=null&&(i.cardTitleBgColor=String(t.cardTitleBgColor)),t.viewMoreFontColor!=null&&(i.viewMoreFontColor=String(t.viewMoreFontColor)),t.viewMoreBgColor!=null&&(i.viewMoreBgColor=String(t.viewMoreBgColor)),t.timelineColor!=null&&(i.timelineColor=String(t.timelineColor)),t.rcmdFontColor!=null&&(i.rcmdFontColor=String(t.rcmdFontColor)),t.subtitleFontColor!=null&&(i.subtitleFontColor=String(t.subtitleFontColor)),t.selectedFontColor!=null&&(i.selectedFontColor=String(t.selectedFontColor)),t.selectedBgColor!=null&&(i.selectedBgColor=String(t.selectedBgColor)),t.unselectedFontColor!=null&&(i.unselectedFontColor=String(t.unselectedFontColor)),t.unselectedBgColor!=null&&(i.unselectedBgColor=String(t.unselectedBgColor)),t.ntSelectedFontColor!=null&&(i.ntSelectedFontColor=String(t.ntSelectedFontColor)),t.ntSelectedBgColor!=null&&(i.ntSelectedBgColor=String(t.ntSelectedBgColor)),t.ntUnselectedFontColor!=null&&(i.ntUnselectedFontColor=String(t.ntUnselectedFontColor)),t.ntUnselectedBgColor!=null&&(i.ntUnselectedBgColor=String(t.ntUnselectedBgColor)),t.progressBarColor!=null&&(i.progressBarColor=String(t.progressBarColor)),t.panelBgColor!=null&&(i.panelBgColor=String(t.panelBgColor)),t.panelSelectColor!=null&&(i.panelSelectColor=String(t.panelSelectColor)),t.panelSelectFontColor!=null&&(i.panelSelectFontColor=String(t.panelSelectFontColor)),t.panelNtSelectFontColor!=null&&(i.panelNtSelectFontColor=String(t.panelNtSelectFontColor)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.bgColor="",n.titleColor="",n.topFontColor="",n.bottomFontColor="",n.fontColor="",n.textTitleFontColor="",n.indicatorColor="",n.cardBgColor="",n.cardTitleFontColor="",n.cardTitleBgColor="",n.viewMoreFontColor="",n.viewMoreBgColor="",n.timelineColor="",n.rcmdFontColor="",n.subtitleFontColor="",n.selectedFontColor="",n.selectedBgColor="",n.unselectedFontColor="",n.unselectedBgColor="",n.ntSelectedFontColor="",n.ntSelectedBgColor="",n.ntUnselectedFontColor="",n.ntUnselectedBgColor="",n.progressBarColor="",n.panelBgColor="",n.panelSelectColor="",n.panelSelectFontColor="",n.panelNtSelectFontColor=""),t.bgColor!=null&&t.hasOwnProperty("bgColor")&&(n.bgColor=t.bgColor),t.titleColor!=null&&t.hasOwnProperty("titleColor")&&(n.titleColor=t.titleColor),t.topFontColor!=null&&t.hasOwnProperty("topFontColor")&&(n.topFontColor=t.topFontColor),t.bottomFontColor!=null&&t.hasOwnProperty("bottomFontColor")&&(n.bottomFontColor=t.bottomFontColor),t.fontColor!=null&&t.hasOwnProperty("fontColor")&&(n.fontColor=t.fontColor),t.textTitleFontColor!=null&&t.hasOwnProperty("textTitleFontColor")&&(n.textTitleFontColor=t.textTitleFontColor),t.indicatorColor!=null&&t.hasOwnProperty("indicatorColor")&&(n.indicatorColor=t.indicatorColor),t.cardBgColor!=null&&t.hasOwnProperty("cardBgColor")&&(n.cardBgColor=t.cardBgColor),t.cardTitleFontColor!=null&&t.hasOwnProperty("cardTitleFontColor")&&(n.cardTitleFontColor=t.cardTitleFontColor),t.cardTitleBgColor!=null&&t.hasOwnProperty("cardTitleBgColor")&&(n.cardTitleBgColor=t.cardTitleBgColor),t.viewMoreFontColor!=null&&t.hasOwnProperty("viewMoreFontColor")&&(n.viewMoreFontColor=t.viewMoreFontColor),t.viewMoreBgColor!=null&&t.hasOwnProperty("viewMoreBgColor")&&(n.viewMoreBgColor=t.viewMoreBgColor),t.timelineColor!=null&&t.hasOwnProperty("timelineColor")&&(n.timelineColor=t.timelineColor),t.rcmdFontColor!=null&&t.hasOwnProperty("rcmdFontColor")&&(n.rcmdFontColor=t.rcmdFontColor),t.subtitleFontColor!=null&&t.hasOwnProperty("subtitleFontColor")&&(n.subtitleFontColor=t.subtitleFontColor),t.selectedFontColor!=null&&t.hasOwnProperty("selectedFontColor")&&(n.selectedFontColor=t.selectedFontColor),t.selectedBgColor!=null&&t.hasOwnProperty("selectedBgColor")&&(n.selectedBgColor=t.selectedBgColor),t.unselectedFontColor!=null&&t.hasOwnProperty("unselectedFontColor")&&(n.unselectedFontColor=t.unselectedFontColor),t.unselectedBgColor!=null&&t.hasOwnProperty("unselectedBgColor")&&(n.unselectedBgColor=t.unselectedBgColor),t.ntSelectedFontColor!=null&&t.hasOwnProperty("ntSelectedFontColor")&&(n.ntSelectedFontColor=t.ntSelectedFontColor),t.ntSelectedBgColor!=null&&t.hasOwnProperty("ntSelectedBgColor")&&(n.ntSelectedBgColor=t.ntSelectedBgColor),t.ntUnselectedFontColor!=null&&t.hasOwnProperty("ntUnselectedFontColor")&&(n.ntUnselectedFontColor=t.ntUnselectedFontColor),t.ntUnselectedBgColor!=null&&t.hasOwnProperty("ntUnselectedBgColor")&&(n.ntUnselectedBgColor=t.ntUnselectedBgColor),t.progressBarColor!=null&&t.hasOwnProperty("progressBarColor")&&(n.progressBarColor=t.progressBarColor),t.panelBgColor!=null&&t.hasOwnProperty("panelBgColor")&&(n.panelBgColor=t.panelBgColor),t.panelSelectColor!=null&&t.hasOwnProperty("panelSelectColor")&&(n.panelSelectColor=t.panelSelectColor),t.panelSelectFontColor!=null&&t.hasOwnProperty("panelSelectFontColor")&&(n.panelSelectFontColor=t.panelSelectFontColor),t.panelNtSelectFontColor!=null&&t.hasOwnProperty("panelNtSelectFontColor")&&(n.panelNtSelectFontColor=t.panelNtSelectFontColor),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.Color"},e}(),c.EditorRecommendCard=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.topIcon=t.string();break}case 2:{o.topContent=t.string();break}case 3:{o.bottomIcon=t.string();break}case 4:{o.bottomContent=t.string();break}case 5:{o.coverImageUri=t.string();break}case 6:{o.title=t.string();break}case 7:{o.uri=t.string();break}case 8:{o.position1=t.string();break}case 9:{o.position2=t.string();break}case 10:{o.position3=t.string();break}case 11:{o.position4=t.string();break}case 12:{o.position5=t.string();break}case 13:{o.share=u.bilibili.app.nativeact.v1.Share.decode(t,t.uint32());break}case 14:{o.badge=u.bilibili.app.nativeact.v1.Badge.decode(t,t.uint32());break}case 15:{o.reportDic=u.bilibili.app.nativeact.v1.ReportDic.decode(t,t.uint32());break}case 16:{o.setting=u.bilibili.app.nativeact.v1.Setting.decode(t,t.uint32());break}case 17:{o.middleIcon=t.string();break}case 18:{o.resourceType=t.string();break}case 19:{o.positionIcon1=t.int32();break}case 20:{o.positionIcon2=t.int32();break}case 21:{o.positionIcon3=t.int32();break}case 22:{o.positionIcon4=t.int32();break}case 23:{o.positionIcon5=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.EditorRecommendCard)return t;let i=new u.bilibili.app.nativeact.v1.EditorRecommendCard;if(t.topIcon!=null&&(i.topIcon=String(t.topIcon)),t.topContent!=null&&(i.topContent=String(t.topContent)),t.bottomIcon!=null&&(i.bottomIcon=String(t.bottomIcon)),t.bottomContent!=null&&(i.bottomContent=String(t.bottomContent)),t.coverImageUri!=null&&(i.coverImageUri=String(t.coverImageUri)),t.title!=null&&(i.title=String(t.title)),t.uri!=null&&(i.uri=String(t.uri)),t.position1!=null&&(i.position1=String(t.position1)),t.position2!=null&&(i.position2=String(t.position2)),t.position3!=null&&(i.position3=String(t.position3)),t.position4!=null&&(i.position4=String(t.position4)),t.position5!=null&&(i.position5=String(t.position5)),t.share!=null){if(typeof t.share!="object")throw TypeError(".bilibili.app.nativeact.v1.EditorRecommendCard.share: object expected");i.share=u.bilibili.app.nativeact.v1.Share.fromObject(t.share)}if(t.badge!=null){if(typeof t.badge!="object")throw TypeError(".bilibili.app.nativeact.v1.EditorRecommendCard.badge: object expected");i.badge=u.bilibili.app.nativeact.v1.Badge.fromObject(t.badge)}if(t.reportDic!=null){if(typeof t.reportDic!="object")throw TypeError(".bilibili.app.nativeact.v1.EditorRecommendCard.reportDic: object expected");i.reportDic=u.bilibili.app.nativeact.v1.ReportDic.fromObject(t.reportDic)}if(t.setting!=null){if(typeof t.setting!="object")throw TypeError(".bilibili.app.nativeact.v1.EditorRecommendCard.setting: object expected");i.setting=u.bilibili.app.nativeact.v1.Setting.fromObject(t.setting)}return t.middleIcon!=null&&(i.middleIcon=String(t.middleIcon)),t.resourceType!=null&&(i.resourceType=String(t.resourceType)),t.positionIcon1!=null&&(i.positionIcon1=t.positionIcon1|0),t.positionIcon2!=null&&(i.positionIcon2=t.positionIcon2|0),t.positionIcon3!=null&&(i.positionIcon3=t.positionIcon3|0),t.positionIcon4!=null&&(i.positionIcon4=t.positionIcon4|0),t.positionIcon5!=null&&(i.positionIcon5=t.positionIcon5|0),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.topIcon="",n.topContent="",n.bottomIcon="",n.bottomContent="",n.coverImageUri="",n.title="",n.uri="",n.position1="",n.position2="",n.position3="",n.position4="",n.position5="",n.share=null,n.badge=null,n.reportDic=null,n.setting=null,n.middleIcon="",n.resourceType="",n.positionIcon1=0,n.positionIcon2=0,n.positionIcon3=0,n.positionIcon4=0,n.positionIcon5=0),t.topIcon!=null&&t.hasOwnProperty("topIcon")&&(n.topIcon=t.topIcon),t.topContent!=null&&t.hasOwnProperty("topContent")&&(n.topContent=t.topContent),t.bottomIcon!=null&&t.hasOwnProperty("bottomIcon")&&(n.bottomIcon=t.bottomIcon),t.bottomContent!=null&&t.hasOwnProperty("bottomContent")&&(n.bottomContent=t.bottomContent),t.coverImageUri!=null&&t.hasOwnProperty("coverImageUri")&&(n.coverImageUri=t.coverImageUri),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),t.position1!=null&&t.hasOwnProperty("position1")&&(n.position1=t.position1),t.position2!=null&&t.hasOwnProperty("position2")&&(n.position2=t.position2),t.position3!=null&&t.hasOwnProperty("position3")&&(n.position3=t.position3),t.position4!=null&&t.hasOwnProperty("position4")&&(n.position4=t.position4),t.position5!=null&&t.hasOwnProperty("position5")&&(n.position5=t.position5),t.share!=null&&t.hasOwnProperty("share")&&(n.share=u.bilibili.app.nativeact.v1.Share.toObject(t.share,i)),t.badge!=null&&t.hasOwnProperty("badge")&&(n.badge=u.bilibili.app.nativeact.v1.Badge.toObject(t.badge,i)),t.reportDic!=null&&t.hasOwnProperty("reportDic")&&(n.reportDic=u.bilibili.app.nativeact.v1.ReportDic.toObject(t.reportDic,i)),t.setting!=null&&t.hasOwnProperty("setting")&&(n.setting=u.bilibili.app.nativeact.v1.Setting.toObject(t.setting,i)),t.middleIcon!=null&&t.hasOwnProperty("middleIcon")&&(n.middleIcon=t.middleIcon),t.resourceType!=null&&t.hasOwnProperty("resourceType")&&(n.resourceType=t.resourceType),t.positionIcon1!=null&&t.hasOwnProperty("positionIcon1")&&(n.positionIcon1=t.positionIcon1),t.positionIcon2!=null&&t.hasOwnProperty("positionIcon2")&&(n.positionIcon2=t.positionIcon2),t.positionIcon3!=null&&t.hasOwnProperty("positionIcon3")&&(n.positionIcon3=t.positionIcon3),t.positionIcon4!=null&&t.hasOwnProperty("positionIcon4")&&(n.positionIcon4=t.positionIcon4),t.positionIcon5!=null&&t.hasOwnProperty("positionIcon5")&&(n.positionIcon5=t.positionIcon5),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.EditorRecommendCard"},e}(),c.ParticipationCard=function(){function e(l){if(this.items=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.image=t.string();break}case 2:{o.selectedImage=t.string();break}case 3:{o.items&&o.items.length||(o.items=[]),o.items.push(u.bilibili.app.nativeact.v1.ParticipationCardItem.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.ParticipationCard)return t;let i=new u.bilibili.app.nativeact.v1.ParticipationCard;if(t.image!=null&&(i.image=String(t.image)),t.selectedImage!=null&&(i.selectedImage=String(t.selectedImage)),t.items){if(!Array.isArray(t.items))throw TypeError(".bilibili.app.nativeact.v1.ParticipationCard.items: array expected");i.items=[];for(let n=0;n>>3){case 1:{o.image=t.string();break}case 2:{o.uri=t.string();break}case 3:{o.title=t.string();break}case 4:{o.type=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.ParticipationCardItem)return t;let i=new u.bilibili.app.nativeact.v1.ParticipationCardItem;return t.image!=null&&(i.image=String(t.image)),t.uri!=null&&(i.uri=String(t.uri)),t.title!=null&&(i.title=String(t.title)),t.type!=null&&(i.type=String(t.type)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.image="",n.uri="",n.title="",n.type=""),t.image!=null&&t.hasOwnProperty("image")&&(n.image=t.image),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.type!=null&&t.hasOwnProperty("type")&&(n.type=t.type),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.ParticipationCardItem"},e}(),c.HeaderCard=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.userImage=t.string();break}case 2:{o.userName=t.string();break}case 3:{o.sponsorContent=t.string();break}case 4:{o.highLightImage=t.string();break}case 5:{o.lowLightImage=t.string();break}case 6:{o.uri=t.string();break}case 7:{o.viewNum=t.string();break}case 8:{o.discussNum=t.string();break}case 9:{o.isSubscribed=t.bool();break}case 10:{o.mid=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.HeaderCard)return t;let i=new u.bilibili.app.nativeact.v1.HeaderCard;return t.userImage!=null&&(i.userImage=String(t.userImage)),t.userName!=null&&(i.userName=String(t.userName)),t.sponsorContent!=null&&(i.sponsorContent=String(t.sponsorContent)),t.highLightImage!=null&&(i.highLightImage=String(t.highLightImage)),t.lowLightImage!=null&&(i.lowLightImage=String(t.lowLightImage)),t.uri!=null&&(i.uri=String(t.uri)),t.viewNum!=null&&(i.viewNum=String(t.viewNum)),t.discussNum!=null&&(i.discussNum=String(t.discussNum)),t.isSubscribed!=null&&(i.isSubscribed=!!t.isSubscribed),t.mid!=null&&(r.Long?(i.mid=r.Long.fromValue(t.mid)).unsigned=!1:typeof t.mid=="string"?i.mid=parseInt(t.mid,10):typeof t.mid=="number"?i.mid=t.mid:typeof t.mid=="object"&&(i.mid=new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(n.userImage="",n.userName="",n.sponsorContent="",n.highLightImage="",n.lowLightImage="",n.uri="",n.viewNum="",n.discussNum="",n.isSubscribed=!1,r.Long){let o=new r.Long(0,0,!1);n.mid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mid=i.longs===String?"0":0;return t.userImage!=null&&t.hasOwnProperty("userImage")&&(n.userImage=t.userImage),t.userName!=null&&t.hasOwnProperty("userName")&&(n.userName=t.userName),t.sponsorContent!=null&&t.hasOwnProperty("sponsorContent")&&(n.sponsorContent=t.sponsorContent),t.highLightImage!=null&&t.hasOwnProperty("highLightImage")&&(n.highLightImage=t.highLightImage),t.lowLightImage!=null&&t.hasOwnProperty("lowLightImage")&&(n.lowLightImage=t.lowLightImage),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),t.viewNum!=null&&t.hasOwnProperty("viewNum")&&(n.viewNum=t.viewNum),t.discussNum!=null&&t.hasOwnProperty("discussNum")&&(n.discussNum=t.discussNum),t.isSubscribed!=null&&t.hasOwnProperty("isSubscribed")&&(n.isSubscribed=t.isSubscribed),t.mid!=null&&t.hasOwnProperty("mid")&&(typeof t.mid=="number"?n.mid=i.longs===String?String(t.mid):t.mid:n.mid=i.longs===String?r.Long.prototype.toString.call(t.mid):i.longs===Number?new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber():t.mid),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.HeaderCard"},e}(),c.Share=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.displayLater=t.bool();break}case 2:{o.oid=t.int64();break}case 3:{o.shareOrigin=t.string();break}case 4:{o.shareType=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.Share)return t;let i=new u.bilibili.app.nativeact.v1.Share;return t.displayLater!=null&&(i.displayLater=!!t.displayLater),t.oid!=null&&(r.Long?(i.oid=r.Long.fromValue(t.oid)).unsigned=!1:typeof t.oid=="string"?i.oid=parseInt(t.oid,10):typeof t.oid=="number"?i.oid=t.oid:typeof t.oid=="object"&&(i.oid=new r.LongBits(t.oid.low>>>0,t.oid.high>>>0).toNumber())),t.shareOrigin!=null&&(i.shareOrigin=String(t.shareOrigin)),t.shareType!=null&&(r.Long?(i.shareType=r.Long.fromValue(t.shareType)).unsigned=!1:typeof t.shareType=="string"?i.shareType=parseInt(t.shareType,10):typeof t.shareType=="number"?i.shareType=t.shareType:typeof t.shareType=="object"&&(i.shareType=new r.LongBits(t.shareType.low>>>0,t.shareType.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.displayLater=!1,r.Long){let o=new r.Long(0,0,!1);n.oid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.oid=i.longs===String?"0":0;if(n.shareOrigin="",r.Long){let o=new r.Long(0,0,!1);n.shareType=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.shareType=i.longs===String?"0":0}return t.displayLater!=null&&t.hasOwnProperty("displayLater")&&(n.displayLater=t.displayLater),t.oid!=null&&t.hasOwnProperty("oid")&&(typeof t.oid=="number"?n.oid=i.longs===String?String(t.oid):t.oid:n.oid=i.longs===String?r.Long.prototype.toString.call(t.oid):i.longs===Number?new r.LongBits(t.oid.low>>>0,t.oid.high>>>0).toNumber():t.oid),t.shareOrigin!=null&&t.hasOwnProperty("shareOrigin")&&(n.shareOrigin=t.shareOrigin),t.shareType!=null&&t.hasOwnProperty("shareType")&&(typeof t.shareType=="number"?n.shareType=i.longs===String?String(t.shareType):t.shareType:n.shareType=i.longs===String?r.Long.prototype.toString.call(t.shareType):i.longs===Number?new r.LongBits(t.shareType.low>>>0,t.shareType.high>>>0).toNumber():t.shareType),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.Share"},e}(),c.Badge=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.text=t.string();break}case 2:{o.bgColor=t.string();break}case 3:{o.bgColorNight=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.Badge)return t;let i=new u.bilibili.app.nativeact.v1.Badge;return t.text!=null&&(i.text=String(t.text)),t.bgColor!=null&&(i.bgColor=String(t.bgColor)),t.bgColorNight!=null&&(i.bgColorNight=String(t.bgColorNight)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.text="",n.bgColor="",n.bgColorNight=""),t.text!=null&&t.hasOwnProperty("text")&&(n.text=t.text),t.bgColor!=null&&t.hasOwnProperty("bgColor")&&(n.bgColor=t.bgColor),t.bgColorNight!=null&&t.hasOwnProperty("bgColorNight")&&(n.bgColorNight=t.bgColorNight),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.Badge"},e}(),c.ReportDic=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.bizType=t.string();break}case 2:{o.seasonType=t.string();break}case 3:{o.aid=t.int64();break}case 4:{o.cid=t.int64();break}case 5:{o.subType=t.int32();break}case 6:{o.epId=t.int64();break}case 7:{o.isPreview=t.int32();break}case 8:{o.seasonId=t.int64();break}case 9:{o.authorName=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.ReportDic)return t;let i=new u.bilibili.app.nativeact.v1.ReportDic;return t.bizType!=null&&(i.bizType=String(t.bizType)),t.seasonType!=null&&(i.seasonType=String(t.seasonType)),t.aid!=null&&(r.Long?(i.aid=r.Long.fromValue(t.aid)).unsigned=!1:typeof t.aid=="string"?i.aid=parseInt(t.aid,10):typeof t.aid=="number"?i.aid=t.aid:typeof t.aid=="object"&&(i.aid=new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber())),t.cid!=null&&(r.Long?(i.cid=r.Long.fromValue(t.cid)).unsigned=!1:typeof t.cid=="string"?i.cid=parseInt(t.cid,10):typeof t.cid=="number"?i.cid=t.cid:typeof t.cid=="object"&&(i.cid=new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber())),t.subType!=null&&(i.subType=t.subType|0),t.epId!=null&&(r.Long?(i.epId=r.Long.fromValue(t.epId)).unsigned=!1:typeof t.epId=="string"?i.epId=parseInt(t.epId,10):typeof t.epId=="number"?i.epId=t.epId:typeof t.epId=="object"&&(i.epId=new r.LongBits(t.epId.low>>>0,t.epId.high>>>0).toNumber())),t.isPreview!=null&&(i.isPreview=t.isPreview|0),t.seasonId!=null&&(r.Long?(i.seasonId=r.Long.fromValue(t.seasonId)).unsigned=!1:typeof t.seasonId=="string"?i.seasonId=parseInt(t.seasonId,10):typeof t.seasonId=="number"?i.seasonId=t.seasonId:typeof t.seasonId=="object"&&(i.seasonId=new r.LongBits(t.seasonId.low>>>0,t.seasonId.high>>>0).toNumber())),t.authorName!=null&&(i.authorName=String(t.authorName)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.bizType="",n.seasonType="",r.Long){let o=new r.Long(0,0,!1);n.aid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.aid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.cid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.cid=i.longs===String?"0":0;if(n.subType=0,r.Long){let o=new r.Long(0,0,!1);n.epId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.epId=i.longs===String?"0":0;if(n.isPreview=0,r.Long){let o=new r.Long(0,0,!1);n.seasonId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.seasonId=i.longs===String?"0":0;n.authorName=""}return t.bizType!=null&&t.hasOwnProperty("bizType")&&(n.bizType=t.bizType),t.seasonType!=null&&t.hasOwnProperty("seasonType")&&(n.seasonType=t.seasonType),t.aid!=null&&t.hasOwnProperty("aid")&&(typeof t.aid=="number"?n.aid=i.longs===String?String(t.aid):t.aid:n.aid=i.longs===String?r.Long.prototype.toString.call(t.aid):i.longs===Number?new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber():t.aid),t.cid!=null&&t.hasOwnProperty("cid")&&(typeof t.cid=="number"?n.cid=i.longs===String?String(t.cid):t.cid:n.cid=i.longs===String?r.Long.prototype.toString.call(t.cid):i.longs===Number?new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber():t.cid),t.subType!=null&&t.hasOwnProperty("subType")&&(n.subType=t.subType),t.epId!=null&&t.hasOwnProperty("epId")&&(typeof t.epId=="number"?n.epId=i.longs===String?String(t.epId):t.epId:n.epId=i.longs===String?r.Long.prototype.toString.call(t.epId):i.longs===Number?new r.LongBits(t.epId.low>>>0,t.epId.high>>>0).toNumber():t.epId),t.isPreview!=null&&t.hasOwnProperty("isPreview")&&(n.isPreview=t.isPreview),t.seasonId!=null&&t.hasOwnProperty("seasonId")&&(typeof t.seasonId=="number"?n.seasonId=i.longs===String?String(t.seasonId):t.seasonId:n.seasonId=i.longs===String?r.Long.prototype.toString.call(t.seasonId):i.longs===Number?new r.LongBits(t.seasonId.low>>>0,t.seasonId.high>>>0).toNumber():t.seasonId),t.authorName!=null&&t.hasOwnProperty("authorName")&&(n.authorName=t.authorName),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.ReportDic"},e}(),c.DynamicCard=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.dynamic=u.bilibili.app.dynamic.v2.DynamicItem.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.DynamicCard)return t;let i=new u.bilibili.app.nativeact.v1.DynamicCard;if(t.dynamic!=null){if(typeof t.dynamic!="object")throw TypeError(".bilibili.app.nativeact.v1.DynamicCard.dynamic: object expected");i.dynamic=u.bilibili.app.dynamic.v2.DynamicItem.fromObject(t.dynamic)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.dynamic=null),t.dynamic!=null&&t.hasOwnProperty("dynamic")&&(n.dynamic=u.bilibili.app.dynamic.v2.DynamicItem.toObject(t.dynamic,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.DynamicCard"},e}(),c.DynamicReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.rawParams=t.string();break}case 2:{o.params=u.bilibili.app.nativeact.v1.DynamicParams.decode(t,t.uint32());break}case 3:{o.fromSpmid=t.string();break}case 4:{o.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.decode(t,t.uint32());break}case 5:{o.localTime=t.int32();break}case 6:{o.isColdStart=t.bool();break}case 7:{o.primaryPageId=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.DynamicReq)return t;let i=new u.bilibili.app.nativeact.v1.DynamicReq;if(t.rawParams!=null&&(i.rawParams=String(t.rawParams)),t.params!=null){if(typeof t.params!="object")throw TypeError(".bilibili.app.nativeact.v1.DynamicReq.params: object expected");i.params=u.bilibili.app.nativeact.v1.DynamicParams.fromObject(t.params)}if(t.fromSpmid!=null&&(i.fromSpmid=String(t.fromSpmid)),t.playerArgs!=null){if(typeof t.playerArgs!="object")throw TypeError(".bilibili.app.nativeact.v1.DynamicReq.playerArgs: object expected");i.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.fromObject(t.playerArgs)}return t.localTime!=null&&(i.localTime=t.localTime|0),t.isColdStart!=null&&(i.isColdStart=!!t.isColdStart),t.primaryPageId!=null&&(r.Long?(i.primaryPageId=r.Long.fromValue(t.primaryPageId)).unsigned=!1:typeof t.primaryPageId=="string"?i.primaryPageId=parseInt(t.primaryPageId,10):typeof t.primaryPageId=="number"?i.primaryPageId=t.primaryPageId:typeof t.primaryPageId=="object"&&(i.primaryPageId=new r.LongBits(t.primaryPageId.low>>>0,t.primaryPageId.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(n.rawParams="",n.params=null,n.fromSpmid="",n.playerArgs=null,n.localTime=0,n.isColdStart=!1,r.Long){let o=new r.Long(0,0,!1);n.primaryPageId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.primaryPageId=i.longs===String?"0":0;return t.rawParams!=null&&t.hasOwnProperty("rawParams")&&(n.rawParams=t.rawParams),t.params!=null&&t.hasOwnProperty("params")&&(n.params=u.bilibili.app.nativeact.v1.DynamicParams.toObject(t.params,i)),t.fromSpmid!=null&&t.hasOwnProperty("fromSpmid")&&(n.fromSpmid=t.fromSpmid),t.playerArgs!=null&&t.hasOwnProperty("playerArgs")&&(n.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.toObject(t.playerArgs,i)),t.localTime!=null&&t.hasOwnProperty("localTime")&&(n.localTime=t.localTime),t.isColdStart!=null&&t.hasOwnProperty("isColdStart")&&(n.isColdStart=t.isColdStart),t.primaryPageId!=null&&t.hasOwnProperty("primaryPageId")&&(typeof t.primaryPageId=="number"?n.primaryPageId=i.longs===String?String(t.primaryPageId):t.primaryPageId:n.primaryPageId=i.longs===String?r.Long.prototype.toString.call(t.primaryPageId):i.longs===Number?new r.LongBits(t.primaryPageId.low>>>0,t.primaryPageId.high>>>0).toNumber():t.primaryPageId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.DynamicReq"},e}(),c.DynamicParams=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.feedOffset=u.google.protobuf.Any.decode(t,t.uint32());break}case 2:{o.offset=t.int64();break}case 3:{o.lastGroup=t.int64();break}case 4:{o.moduleId=t.int64();break}case 5:{o.sortType=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.DynamicParams)return t;let i=new u.bilibili.app.nativeact.v1.DynamicParams;if(t.feedOffset!=null){if(typeof t.feedOffset!="object")throw TypeError(".bilibili.app.nativeact.v1.DynamicParams.feedOffset: object expected");i.feedOffset=u.google.protobuf.Any.fromObject(t.feedOffset)}return t.offset!=null&&(r.Long?(i.offset=r.Long.fromValue(t.offset)).unsigned=!1:typeof t.offset=="string"?i.offset=parseInt(t.offset,10):typeof t.offset=="number"?i.offset=t.offset:typeof t.offset=="object"&&(i.offset=new r.LongBits(t.offset.low>>>0,t.offset.high>>>0).toNumber())),t.lastGroup!=null&&(r.Long?(i.lastGroup=r.Long.fromValue(t.lastGroup)).unsigned=!1:typeof t.lastGroup=="string"?i.lastGroup=parseInt(t.lastGroup,10):typeof t.lastGroup=="number"?i.lastGroup=t.lastGroup:typeof t.lastGroup=="object"&&(i.lastGroup=new r.LongBits(t.lastGroup.low>>>0,t.lastGroup.high>>>0).toNumber())),t.moduleId!=null&&(r.Long?(i.moduleId=r.Long.fromValue(t.moduleId)).unsigned=!1:typeof t.moduleId=="string"?i.moduleId=parseInt(t.moduleId,10):typeof t.moduleId=="number"?i.moduleId=t.moduleId:typeof t.moduleId=="object"&&(i.moduleId=new r.LongBits(t.moduleId.low>>>0,t.moduleId.high>>>0).toNumber())),t.sortType!=null&&(r.Long?(i.sortType=r.Long.fromValue(t.sortType)).unsigned=!1:typeof t.sortType=="string"?i.sortType=parseInt(t.sortType,10):typeof t.sortType=="number"?i.sortType=t.sortType:typeof t.sortType=="object"&&(i.sortType=new r.LongBits(t.sortType.low>>>0,t.sortType.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.feedOffset=null,r.Long){let o=new r.Long(0,0,!1);n.offset=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.offset=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.lastGroup=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.lastGroup=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.moduleId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.moduleId=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.sortType=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.sortType=i.longs===String?"0":0}return t.feedOffset!=null&&t.hasOwnProperty("feedOffset")&&(n.feedOffset=u.google.protobuf.Any.toObject(t.feedOffset,i)),t.offset!=null&&t.hasOwnProperty("offset")&&(typeof t.offset=="number"?n.offset=i.longs===String?String(t.offset):t.offset:n.offset=i.longs===String?r.Long.prototype.toString.call(t.offset):i.longs===Number?new r.LongBits(t.offset.low>>>0,t.offset.high>>>0).toNumber():t.offset),t.lastGroup!=null&&t.hasOwnProperty("lastGroup")&&(typeof t.lastGroup=="number"?n.lastGroup=i.longs===String?String(t.lastGroup):t.lastGroup:n.lastGroup=i.longs===String?r.Long.prototype.toString.call(t.lastGroup):i.longs===Number?new r.LongBits(t.lastGroup.low>>>0,t.lastGroup.high>>>0).toNumber():t.lastGroup),t.moduleId!=null&&t.hasOwnProperty("moduleId")&&(typeof t.moduleId=="number"?n.moduleId=i.longs===String?String(t.moduleId):t.moduleId:n.moduleId=i.longs===String?r.Long.prototype.toString.call(t.moduleId):i.longs===Number?new r.LongBits(t.moduleId.low>>>0,t.moduleId.high>>>0).toNumber():t.moduleId),t.sortType!=null&&t.hasOwnProperty("sortType")&&(typeof t.sortType=="number"?n.sortType=i.longs===String?String(t.sortType):t.sortType:n.sortType=i.longs===String?r.Long.prototype.toString.call(t.sortType):i.longs===Number?new r.LongBits(t.sortType.low>>>0,t.sortType.high>>>0).toNumber():t.sortType),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.DynamicParams"},e}(),c.DynamicResp=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.module=u.bilibili.app.nativeact.v1.Module.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.DynamicResp)return t;let i=new u.bilibili.app.nativeact.v1.DynamicResp;if(t.module!=null){if(typeof t.module!="object")throw TypeError(".bilibili.app.nativeact.v1.DynamicResp.module: object expected");i.module=u.bilibili.app.nativeact.v1.Module.fromObject(t.module)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.module=null),t.module!=null&&t.hasOwnProperty("module")&&(n.module=u.bilibili.app.nativeact.v1.Module.toObject(t.module,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.DynamicResp"},e}(),c.TextCard=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.text=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.TextCard)return t;let i=new u.bilibili.app.nativeact.v1.TextCard;return t.text!=null&&(i.text=String(t.text)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.text=""),t.text!=null&&t.hasOwnProperty("text")&&(n.text=t.text),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.TextCard"},e}(),c.TextTitleCard=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.TextTitleCard)return t;let i=new u.bilibili.app.nativeact.v1.TextTitleCard;return t.title!=null&&(i.title=String(t.title)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.title=""),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.TextTitleCard"},e}(),c.ImageTitleCard=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.image=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.ImageTitleCard)return t;let i=new u.bilibili.app.nativeact.v1.ImageTitleCard;return t.image!=null&&(i.image=String(t.image)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.image=""),t.image!=null&&t.hasOwnProperty("image")&&(n.image=t.image),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.ImageTitleCard"},e}(),c.DynamicMoreCard=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.text=t.string();break}case 2:{o.uri=t.string();break}case 3:{o.subpageData=u.bilibili.app.nativeact.v1.SubpageData.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.DynamicMoreCard)return t;let i=new u.bilibili.app.nativeact.v1.DynamicMoreCard;if(t.text!=null&&(i.text=String(t.text)),t.uri!=null&&(i.uri=String(t.uri)),t.subpageData!=null){if(typeof t.subpageData!="object")throw TypeError(".bilibili.app.nativeact.v1.DynamicMoreCard.subpageData: object expected");i.subpageData=u.bilibili.app.nativeact.v1.SubpageData.fromObject(t.subpageData)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.text="",n.uri="",n.subpageData=null),t.text!=null&&t.hasOwnProperty("text")&&(n.text=t.text),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),t.subpageData!=null&&t.hasOwnProperty("subpageData")&&(n.subpageData=u.bilibili.app.nativeact.v1.SubpageData.toObject(t.subpageData,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.DynamicMoreCard"},e}(),c.DynamicActMoreCard=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.text=t.string();break}case 2:{o.uri=t.string();break}case 3:{o.subpageData=u.bilibili.app.nativeact.v1.SubpageData.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.DynamicActMoreCard)return t;let i=new u.bilibili.app.nativeact.v1.DynamicActMoreCard;if(t.text!=null&&(i.text=String(t.text)),t.uri!=null&&(i.uri=String(t.uri)),t.subpageData!=null){if(typeof t.subpageData!="object")throw TypeError(".bilibili.app.nativeact.v1.DynamicActMoreCard.subpageData: object expected");i.subpageData=u.bilibili.app.nativeact.v1.SubpageData.fromObject(t.subpageData)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.text="",n.uri="",n.subpageData=null),t.text!=null&&t.hasOwnProperty("text")&&(n.text=t.text),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),t.subpageData!=null&&t.hasOwnProperty("subpageData")&&(n.subpageData=u.bilibili.app.nativeact.v1.SubpageData.toObject(t.subpageData,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.DynamicActMoreCard"},e}(),c.LayerDynamic=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.dynamic=u.bilibili.app.dynamic.v2.DynamicItem.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.LayerDynamic)return t;let i=new u.bilibili.app.nativeact.v1.LayerDynamic;if(t.title!=null&&(i.title=String(t.title)),t.dynamic!=null){if(typeof t.dynamic!="object")throw TypeError(".bilibili.app.nativeact.v1.LayerDynamic.dynamic: object expected");i.dynamic=u.bilibili.app.dynamic.v2.DynamicItem.fromObject(t.dynamic)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.title="",n.dynamic=null),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.dynamic!=null&&t.hasOwnProperty("dynamic")&&(n.dynamic=u.bilibili.app.dynamic.v2.DynamicItem.toObject(t.dynamic,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.LayerDynamic"},e}(),c.EditorReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.rawParams=t.string();break}case 2:{o.params=u.bilibili.app.nativeact.v1.EditorParams.decode(t,t.uint32());break}case 3:{o.primaryPageId=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.EditorReq)return t;let i=new u.bilibili.app.nativeact.v1.EditorReq;if(t.rawParams!=null&&(i.rawParams=String(t.rawParams)),t.params!=null){if(typeof t.params!="object")throw TypeError(".bilibili.app.nativeact.v1.EditorReq.params: object expected");i.params=u.bilibili.app.nativeact.v1.EditorParams.fromObject(t.params)}return t.primaryPageId!=null&&(r.Long?(i.primaryPageId=r.Long.fromValue(t.primaryPageId)).unsigned=!1:typeof t.primaryPageId=="string"?i.primaryPageId=parseInt(t.primaryPageId,10):typeof t.primaryPageId=="number"?i.primaryPageId=t.primaryPageId:typeof t.primaryPageId=="object"&&(i.primaryPageId=new r.LongBits(t.primaryPageId.low>>>0,t.primaryPageId.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(n.rawParams="",n.params=null,r.Long){let o=new r.Long(0,0,!1);n.primaryPageId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.primaryPageId=i.longs===String?"0":0;return t.rawParams!=null&&t.hasOwnProperty("rawParams")&&(n.rawParams=t.rawParams),t.params!=null&&t.hasOwnProperty("params")&&(n.params=u.bilibili.app.nativeact.v1.EditorParams.toObject(t.params,i)),t.primaryPageId!=null&&t.hasOwnProperty("primaryPageId")&&(typeof t.primaryPageId=="number"?n.primaryPageId=i.longs===String?String(t.primaryPageId):t.primaryPageId:n.primaryPageId=i.longs===String?r.Long.prototype.toString.call(t.primaryPageId):i.longs===Number?new r.LongBits(t.primaryPageId.low>>>0,t.primaryPageId.high>>>0).toNumber():t.primaryPageId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.EditorReq"},e}(),c.EditorParams=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.offset=t.int64();break}case 2:{o.moduleId=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.EditorParams)return t;let i=new u.bilibili.app.nativeact.v1.EditorParams;return t.offset!=null&&(r.Long?(i.offset=r.Long.fromValue(t.offset)).unsigned=!1:typeof t.offset=="string"?i.offset=parseInt(t.offset,10):typeof t.offset=="number"?i.offset=t.offset:typeof t.offset=="object"&&(i.offset=new r.LongBits(t.offset.low>>>0,t.offset.high>>>0).toNumber())),t.moduleId!=null&&(r.Long?(i.moduleId=r.Long.fromValue(t.moduleId)).unsigned=!1:typeof t.moduleId=="string"?i.moduleId=parseInt(t.moduleId,10):typeof t.moduleId=="number"?i.moduleId=t.moduleId:typeof t.moduleId=="object"&&(i.moduleId=new r.LongBits(t.moduleId.low>>>0,t.moduleId.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.offset=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.offset=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.moduleId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.moduleId=i.longs===String?"0":0}return t.offset!=null&&t.hasOwnProperty("offset")&&(typeof t.offset=="number"?n.offset=i.longs===String?String(t.offset):t.offset:n.offset=i.longs===String?r.Long.prototype.toString.call(t.offset):i.longs===Number?new r.LongBits(t.offset.low>>>0,t.offset.high>>>0).toNumber():t.offset),t.moduleId!=null&&t.hasOwnProperty("moduleId")&&(typeof t.moduleId=="number"?n.moduleId=i.longs===String?String(t.moduleId):t.moduleId:n.moduleId=i.longs===String?r.Long.prototype.toString.call(t.moduleId):i.longs===Number?new r.LongBits(t.moduleId.low>>>0,t.moduleId.high>>>0).toNumber():t.moduleId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.EditorParams"},e}(),c.EditorResp=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.module=u.bilibili.app.nativeact.v1.Module.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.EditorResp)return t;let i=new u.bilibili.app.nativeact.v1.EditorResp;if(t.module!=null){if(typeof t.module!="object")throw TypeError(".bilibili.app.nativeact.v1.EditorResp.module: object expected");i.module=u.bilibili.app.nativeact.v1.Module.fromObject(t.module)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.module=null),t.module!=null&&t.hasOwnProperty("module")&&(n.module=u.bilibili.app.nativeact.v1.Module.toObject(t.module,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.EditorResp"},e}(),c.CarouselImgCard=function(){function e(l){if(this.images=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.contentStyle=t.int64();break}case 2:{o.images&&o.images.length||(o.images=[]),o.images.push(u.bilibili.app.nativeact.v1.CarouselImgItem.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.CarouselImgCard)return t;let i=new u.bilibili.app.nativeact.v1.CarouselImgCard;if(t.contentStyle!=null&&(r.Long?(i.contentStyle=r.Long.fromValue(t.contentStyle)).unsigned=!1:typeof t.contentStyle=="string"?i.contentStyle=parseInt(t.contentStyle,10):typeof t.contentStyle=="number"?i.contentStyle=t.contentStyle:typeof t.contentStyle=="object"&&(i.contentStyle=new r.LongBits(t.contentStyle.low>>>0,t.contentStyle.high>>>0).toNumber())),t.images){if(!Array.isArray(t.images))throw TypeError(".bilibili.app.nativeact.v1.CarouselImgCard.images: array expected");i.images=[];for(let n=0;n>>0,t.contentStyle.high>>>0).toNumber():t.contentStyle),t.images&&t.images.length){n.images=[];for(let o=0;o>>3){case 1:{o.image=t.string();break}case 2:{o.uri=t.string();break}case 3:{o.length=t.int64();break}case 4:{o.width=t.int64();break}case 5:{o.topTab=u.bilibili.app.nativeact.v1.TopTab.decode(t,t.uint32());break}case 6:{o.height=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.CarouselImgItem)return t;let i=new u.bilibili.app.nativeact.v1.CarouselImgItem;if(t.image!=null&&(i.image=String(t.image)),t.uri!=null&&(i.uri=String(t.uri)),t.length!=null&&(r.Long?(i.length=r.Long.fromValue(t.length)).unsigned=!1:typeof t.length=="string"?i.length=parseInt(t.length,10):typeof t.length=="number"?i.length=t.length:typeof t.length=="object"&&(i.length=new r.LongBits(t.length.low>>>0,t.length.high>>>0).toNumber())),t.width!=null&&(r.Long?(i.width=r.Long.fromValue(t.width)).unsigned=!1:typeof t.width=="string"?i.width=parseInt(t.width,10):typeof t.width=="number"?i.width=t.width:typeof t.width=="object"&&(i.width=new r.LongBits(t.width.low>>>0,t.width.high>>>0).toNumber())),t.topTab!=null){if(typeof t.topTab!="object")throw TypeError(".bilibili.app.nativeact.v1.CarouselImgItem.topTab: object expected");i.topTab=u.bilibili.app.nativeact.v1.TopTab.fromObject(t.topTab)}return t.height!=null&&(r.Long?(i.height=r.Long.fromValue(t.height)).unsigned=!1:typeof t.height=="string"?i.height=parseInt(t.height,10):typeof t.height=="number"?i.height=t.height:typeof t.height=="object"&&(i.height=new r.LongBits(t.height.low>>>0,t.height.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.image="",n.uri="",r.Long){let o=new r.Long(0,0,!1);n.length=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.length=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.width=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.width=i.longs===String?"0":0;if(n.topTab=null,r.Long){let o=new r.Long(0,0,!1);n.height=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.height=i.longs===String?"0":0}return t.image!=null&&t.hasOwnProperty("image")&&(n.image=t.image),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),t.length!=null&&t.hasOwnProperty("length")&&(typeof t.length=="number"?n.length=i.longs===String?String(t.length):t.length:n.length=i.longs===String?r.Long.prototype.toString.call(t.length):i.longs===Number?new r.LongBits(t.length.low>>>0,t.length.high>>>0).toNumber():t.length),t.width!=null&&t.hasOwnProperty("width")&&(typeof t.width=="number"?n.width=i.longs===String?String(t.width):t.width:n.width=i.longs===String?r.Long.prototype.toString.call(t.width):i.longs===Number?new r.LongBits(t.width.low>>>0,t.width.high>>>0).toNumber():t.width),t.topTab!=null&&t.hasOwnProperty("topTab")&&(n.topTab=u.bilibili.app.nativeact.v1.TopTab.toObject(t.topTab,i)),t.height!=null&&t.hasOwnProperty("height")&&(typeof t.height=="number"?n.height=i.longs===String?String(t.height):t.height:n.height=i.longs===String?r.Long.prototype.toString.call(t.height):i.longs===Number?new r.LongBits(t.height.low>>>0,t.height.high>>>0).toNumber():t.height),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.CarouselImgItem"},e}(),c.TopTab=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.bgImage1=t.string();break}case 2:{o.bgImage2=t.string();break}case 3:{o.tabTopColor=t.string();break}case 4:{o.tabMiddleColor=t.string();break}case 5:{o.tabBottomColor=t.string();break}case 6:{o.fontColor=t.string();break}case 7:{o.barType=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.TopTab)return t;let i=new u.bilibili.app.nativeact.v1.TopTab;return t.bgImage1!=null&&(i.bgImage1=String(t.bgImage1)),t.bgImage2!=null&&(i.bgImage2=String(t.bgImage2)),t.tabTopColor!=null&&(i.tabTopColor=String(t.tabTopColor)),t.tabMiddleColor!=null&&(i.tabMiddleColor=String(t.tabMiddleColor)),t.tabBottomColor!=null&&(i.tabBottomColor=String(t.tabBottomColor)),t.fontColor!=null&&(i.fontColor=String(t.fontColor)),t.barType!=null&&(r.Long?(i.barType=r.Long.fromValue(t.barType)).unsigned=!1:typeof t.barType=="string"?i.barType=parseInt(t.barType,10):typeof t.barType=="number"?i.barType=t.barType:typeof t.barType=="object"&&(i.barType=new r.LongBits(t.barType.low>>>0,t.barType.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(n.bgImage1="",n.bgImage2="",n.tabTopColor="",n.tabMiddleColor="",n.tabBottomColor="",n.fontColor="",r.Long){let o=new r.Long(0,0,!1);n.barType=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.barType=i.longs===String?"0":0;return t.bgImage1!=null&&t.hasOwnProperty("bgImage1")&&(n.bgImage1=t.bgImage1),t.bgImage2!=null&&t.hasOwnProperty("bgImage2")&&(n.bgImage2=t.bgImage2),t.tabTopColor!=null&&t.hasOwnProperty("tabTopColor")&&(n.tabTopColor=t.tabTopColor),t.tabMiddleColor!=null&&t.hasOwnProperty("tabMiddleColor")&&(n.tabMiddleColor=t.tabMiddleColor),t.tabBottomColor!=null&&t.hasOwnProperty("tabBottomColor")&&(n.tabBottomColor=t.tabBottomColor),t.fontColor!=null&&t.hasOwnProperty("fontColor")&&(n.fontColor=t.fontColor),t.barType!=null&&t.hasOwnProperty("barType")&&(typeof t.barType=="number"?n.barType=i.longs===String?String(t.barType):t.barType:n.barType=i.longs===String?r.Long.prototype.toString.call(t.barType):i.longs===Number?new r.LongBits(t.barType.low>>>0,t.barType.high>>>0).toNumber():t.barType),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.TopTab"},e}(),c.CarouselWordCard=function(){function e(l){if(this.words=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.contentStyle=t.int64();break}case 2:{o.scrollType=t.int64();break}case 3:{o.words&&o.words.length||(o.words=[]),o.words.push(u.bilibili.app.nativeact.v1.CarouselWordItem.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.CarouselWordCard)return t;let i=new u.bilibili.app.nativeact.v1.CarouselWordCard;if(t.contentStyle!=null&&(r.Long?(i.contentStyle=r.Long.fromValue(t.contentStyle)).unsigned=!1:typeof t.contentStyle=="string"?i.contentStyle=parseInt(t.contentStyle,10):typeof t.contentStyle=="number"?i.contentStyle=t.contentStyle:typeof t.contentStyle=="object"&&(i.contentStyle=new r.LongBits(t.contentStyle.low>>>0,t.contentStyle.high>>>0).toNumber())),t.scrollType!=null&&(r.Long?(i.scrollType=r.Long.fromValue(t.scrollType)).unsigned=!1:typeof t.scrollType=="string"?i.scrollType=parseInt(t.scrollType,10):typeof t.scrollType=="number"?i.scrollType=t.scrollType:typeof t.scrollType=="object"&&(i.scrollType=new r.LongBits(t.scrollType.low>>>0,t.scrollType.high>>>0).toNumber())),t.words){if(!Array.isArray(t.words))throw TypeError(".bilibili.app.nativeact.v1.CarouselWordCard.words: array expected");i.words=[];for(let n=0;n>>0,t.contentStyle.high>>>0).toNumber():t.contentStyle),t.scrollType!=null&&t.hasOwnProperty("scrollType")&&(typeof t.scrollType=="number"?n.scrollType=i.longs===String?String(t.scrollType):t.scrollType:n.scrollType=i.longs===String?r.Long.prototype.toString.call(t.scrollType):i.longs===Number?new r.LongBits(t.scrollType.low>>>0,t.scrollType.high>>>0).toNumber():t.scrollType),t.words&&t.words.length){n.words=[];for(let o=0;o>>3){case 1:{o.content=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.CarouselWordItem)return t;let i=new u.bilibili.app.nativeact.v1.CarouselWordItem;return t.content!=null&&(i.content=String(t.content)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.content=""),t.content!=null&&t.hasOwnProperty("content")&&(n.content=t.content),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.CarouselWordItem"},e}(),c.ResourceCard=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.coverImageUri=t.string();break}case 3:{o.uri=t.string();break}case 4:{o.coverRightText=t.string();break}case 5:{o.coverLeftText1=t.string();break}case 6:{o.coverLeftIcon1=t.int64();break}case 7:{o.coverLeftText2=t.string();break}case 8:{o.coverLeftIcon2=t.int64();break}case 9:{o.badge=u.bilibili.app.nativeact.v1.Badge.decode(t,t.uint32());break}case 10:{o.reportDic=u.bilibili.app.nativeact.v1.ReportDic.decode(t,t.uint32());break}case 11:{o.resourceType=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.ResourceCard)return t;let i=new u.bilibili.app.nativeact.v1.ResourceCard;if(t.title!=null&&(i.title=String(t.title)),t.coverImageUri!=null&&(i.coverImageUri=String(t.coverImageUri)),t.uri!=null&&(i.uri=String(t.uri)),t.coverRightText!=null&&(i.coverRightText=String(t.coverRightText)),t.coverLeftText1!=null&&(i.coverLeftText1=String(t.coverLeftText1)),t.coverLeftIcon1!=null&&(r.Long?(i.coverLeftIcon1=r.Long.fromValue(t.coverLeftIcon1)).unsigned=!1:typeof t.coverLeftIcon1=="string"?i.coverLeftIcon1=parseInt(t.coverLeftIcon1,10):typeof t.coverLeftIcon1=="number"?i.coverLeftIcon1=t.coverLeftIcon1:typeof t.coverLeftIcon1=="object"&&(i.coverLeftIcon1=new r.LongBits(t.coverLeftIcon1.low>>>0,t.coverLeftIcon1.high>>>0).toNumber())),t.coverLeftText2!=null&&(i.coverLeftText2=String(t.coverLeftText2)),t.coverLeftIcon2!=null&&(r.Long?(i.coverLeftIcon2=r.Long.fromValue(t.coverLeftIcon2)).unsigned=!1:typeof t.coverLeftIcon2=="string"?i.coverLeftIcon2=parseInt(t.coverLeftIcon2,10):typeof t.coverLeftIcon2=="number"?i.coverLeftIcon2=t.coverLeftIcon2:typeof t.coverLeftIcon2=="object"&&(i.coverLeftIcon2=new r.LongBits(t.coverLeftIcon2.low>>>0,t.coverLeftIcon2.high>>>0).toNumber())),t.badge!=null){if(typeof t.badge!="object")throw TypeError(".bilibili.app.nativeact.v1.ResourceCard.badge: object expected");i.badge=u.bilibili.app.nativeact.v1.Badge.fromObject(t.badge)}if(t.reportDic!=null){if(typeof t.reportDic!="object")throw TypeError(".bilibili.app.nativeact.v1.ResourceCard.reportDic: object expected");i.reportDic=u.bilibili.app.nativeact.v1.ReportDic.fromObject(t.reportDic)}return t.resourceType!=null&&(i.resourceType=String(t.resourceType)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.title="",n.coverImageUri="",n.uri="",n.coverRightText="",n.coverLeftText1="",r.Long){let o=new r.Long(0,0,!1);n.coverLeftIcon1=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.coverLeftIcon1=i.longs===String?"0":0;if(n.coverLeftText2="",r.Long){let o=new r.Long(0,0,!1);n.coverLeftIcon2=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.coverLeftIcon2=i.longs===String?"0":0;n.badge=null,n.reportDic=null,n.resourceType=""}return t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.coverImageUri!=null&&t.hasOwnProperty("coverImageUri")&&(n.coverImageUri=t.coverImageUri),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),t.coverRightText!=null&&t.hasOwnProperty("coverRightText")&&(n.coverRightText=t.coverRightText),t.coverLeftText1!=null&&t.hasOwnProperty("coverLeftText1")&&(n.coverLeftText1=t.coverLeftText1),t.coverLeftIcon1!=null&&t.hasOwnProperty("coverLeftIcon1")&&(typeof t.coverLeftIcon1=="number"?n.coverLeftIcon1=i.longs===String?String(t.coverLeftIcon1):t.coverLeftIcon1:n.coverLeftIcon1=i.longs===String?r.Long.prototype.toString.call(t.coverLeftIcon1):i.longs===Number?new r.LongBits(t.coverLeftIcon1.low>>>0,t.coverLeftIcon1.high>>>0).toNumber():t.coverLeftIcon1),t.coverLeftText2!=null&&t.hasOwnProperty("coverLeftText2")&&(n.coverLeftText2=t.coverLeftText2),t.coverLeftIcon2!=null&&t.hasOwnProperty("coverLeftIcon2")&&(typeof t.coverLeftIcon2=="number"?n.coverLeftIcon2=i.longs===String?String(t.coverLeftIcon2):t.coverLeftIcon2:n.coverLeftIcon2=i.longs===String?r.Long.prototype.toString.call(t.coverLeftIcon2):i.longs===Number?new r.LongBits(t.coverLeftIcon2.low>>>0,t.coverLeftIcon2.high>>>0).toNumber():t.coverLeftIcon2),t.badge!=null&&t.hasOwnProperty("badge")&&(n.badge=u.bilibili.app.nativeact.v1.Badge.toObject(t.badge,i)),t.reportDic!=null&&t.hasOwnProperty("reportDic")&&(n.reportDic=u.bilibili.app.nativeact.v1.ReportDic.toObject(t.reportDic,i)),t.resourceType!=null&&t.hasOwnProperty("resourceType")&&(n.resourceType=t.resourceType),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.ResourceCard"},e}(),c.ResourceMoreCard=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.text=t.string();break}case 2:{o.uri=t.string();break}case 3:{o.subpageData=u.bilibili.app.nativeact.v1.SubpageData.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.ResourceMoreCard)return t;let i=new u.bilibili.app.nativeact.v1.ResourceMoreCard;if(t.text!=null&&(i.text=String(t.text)),t.uri!=null&&(i.uri=String(t.uri)),t.subpageData!=null){if(typeof t.subpageData!="object")throw TypeError(".bilibili.app.nativeact.v1.ResourceMoreCard.subpageData: object expected");i.subpageData=u.bilibili.app.nativeact.v1.SubpageData.fromObject(t.subpageData)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.text="",n.uri="",n.subpageData=null),t.text!=null&&t.hasOwnProperty("text")&&(n.text=t.text),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),t.subpageData!=null&&t.hasOwnProperty("subpageData")&&(n.subpageData=u.bilibili.app.nativeact.v1.SubpageData.toObject(t.subpageData,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.ResourceMoreCard"},e}(),c.ResourceReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.rawParams=t.string();break}case 2:{o.params=u.bilibili.app.nativeact.v1.ResourceParams.decode(t,t.uint32());break}case 3:{o.primaryPageId=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.ResourceReq)return t;let i=new u.bilibili.app.nativeact.v1.ResourceReq;if(t.rawParams!=null&&(i.rawParams=String(t.rawParams)),t.params!=null){if(typeof t.params!="object")throw TypeError(".bilibili.app.nativeact.v1.ResourceReq.params: object expected");i.params=u.bilibili.app.nativeact.v1.ResourceParams.fromObject(t.params)}return t.primaryPageId!=null&&(r.Long?(i.primaryPageId=r.Long.fromValue(t.primaryPageId)).unsigned=!1:typeof t.primaryPageId=="string"?i.primaryPageId=parseInt(t.primaryPageId,10):typeof t.primaryPageId=="number"?i.primaryPageId=t.primaryPageId:typeof t.primaryPageId=="object"&&(i.primaryPageId=new r.LongBits(t.primaryPageId.low>>>0,t.primaryPageId.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(n.rawParams="",n.params=null,r.Long){let o=new r.Long(0,0,!1);n.primaryPageId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.primaryPageId=i.longs===String?"0":0;return t.rawParams!=null&&t.hasOwnProperty("rawParams")&&(n.rawParams=t.rawParams),t.params!=null&&t.hasOwnProperty("params")&&(n.params=u.bilibili.app.nativeact.v1.ResourceParams.toObject(t.params,i)),t.primaryPageId!=null&&t.hasOwnProperty("primaryPageId")&&(typeof t.primaryPageId=="number"?n.primaryPageId=i.longs===String?String(t.primaryPageId):t.primaryPageId:n.primaryPageId=i.longs===String?r.Long.prototype.toString.call(t.primaryPageId):i.longs===Number?new r.LongBits(t.primaryPageId.low>>>0,t.primaryPageId.high>>>0).toNumber():t.primaryPageId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.ResourceReq"},e}(),c.ResourceParams=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.offset=t.int64();break}case 2:{o.topicOffset=t.string();break}case 3:{o.moduleId=t.int64();break}case 4:{o.sortType=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.ResourceParams)return t;let i=new u.bilibili.app.nativeact.v1.ResourceParams;return t.offset!=null&&(r.Long?(i.offset=r.Long.fromValue(t.offset)).unsigned=!1:typeof t.offset=="string"?i.offset=parseInt(t.offset,10):typeof t.offset=="number"?i.offset=t.offset:typeof t.offset=="object"&&(i.offset=new r.LongBits(t.offset.low>>>0,t.offset.high>>>0).toNumber())),t.topicOffset!=null&&(i.topicOffset=String(t.topicOffset)),t.moduleId!=null&&(r.Long?(i.moduleId=r.Long.fromValue(t.moduleId)).unsigned=!1:typeof t.moduleId=="string"?i.moduleId=parseInt(t.moduleId,10):typeof t.moduleId=="number"?i.moduleId=t.moduleId:typeof t.moduleId=="object"&&(i.moduleId=new r.LongBits(t.moduleId.low>>>0,t.moduleId.high>>>0).toNumber())),t.sortType!=null&&(r.Long?(i.sortType=r.Long.fromValue(t.sortType)).unsigned=!1:typeof t.sortType=="string"?i.sortType=parseInt(t.sortType,10):typeof t.sortType=="number"?i.sortType=t.sortType:typeof t.sortType=="object"&&(i.sortType=new r.LongBits(t.sortType.low>>>0,t.sortType.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.offset=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.offset=i.longs===String?"0":0;if(n.topicOffset="",r.Long){let o=new r.Long(0,0,!1);n.moduleId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.moduleId=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.sortType=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.sortType=i.longs===String?"0":0}return t.offset!=null&&t.hasOwnProperty("offset")&&(typeof t.offset=="number"?n.offset=i.longs===String?String(t.offset):t.offset:n.offset=i.longs===String?r.Long.prototype.toString.call(t.offset):i.longs===Number?new r.LongBits(t.offset.low>>>0,t.offset.high>>>0).toNumber():t.offset),t.topicOffset!=null&&t.hasOwnProperty("topicOffset")&&(n.topicOffset=t.topicOffset),t.moduleId!=null&&t.hasOwnProperty("moduleId")&&(typeof t.moduleId=="number"?n.moduleId=i.longs===String?String(t.moduleId):t.moduleId:n.moduleId=i.longs===String?r.Long.prototype.toString.call(t.moduleId):i.longs===Number?new r.LongBits(t.moduleId.low>>>0,t.moduleId.high>>>0).toNumber():t.moduleId),t.sortType!=null&&t.hasOwnProperty("sortType")&&(typeof t.sortType=="number"?n.sortType=i.longs===String?String(t.sortType):t.sortType:n.sortType=i.longs===String?r.Long.prototype.toString.call(t.sortType):i.longs===Number?new r.LongBits(t.sortType.low>>>0,t.sortType.high>>>0).toNumber():t.sortType),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.ResourceParams"},e}(),c.ResourceResp=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.module=u.bilibili.app.nativeact.v1.Module.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.ResourceResp)return t;let i=new u.bilibili.app.nativeact.v1.ResourceResp;if(t.module!=null){if(typeof t.module!="object")throw TypeError(".bilibili.app.nativeact.v1.ResourceResp.module: object expected");i.module=u.bilibili.app.nativeact.v1.Module.fromObject(t.module)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.module=null),t.module!=null&&t.hasOwnProperty("module")&&(n.module=u.bilibili.app.nativeact.v1.Module.toObject(t.module,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.ResourceResp"},e}(),c.VideoCard=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.coverImageUri=t.string();break}case 3:{o.coverLeftText1=t.string();break}case 4:{o.coverLeftText2=t.string();break}case 5:{o.coverLeftText3=t.string();break}case 6:{o.uri=t.string();break}case 7:{o.badge=u.bilibili.app.nativeact.v1.Badge.decode(t,t.uint32());break}case 8:{o.rights=u.bilibili.app.nativeact.v1.VideoRights.decode(t,t.uint32());break}case 9:{o.dimension=u.bilibili.app.nativeact.v1.PlayerDimension.decode(t,t.uint32());break}case 10:{o.reportDic=u.bilibili.app.nativeact.v1.ReportDic.decode(t,t.uint32());break}case 11:{o.resourceType=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.VideoCard)return t;let i=new u.bilibili.app.nativeact.v1.VideoCard;if(t.title!=null&&(i.title=String(t.title)),t.coverImageUri!=null&&(i.coverImageUri=String(t.coverImageUri)),t.coverLeftText1!=null&&(i.coverLeftText1=String(t.coverLeftText1)),t.coverLeftText2!=null&&(i.coverLeftText2=String(t.coverLeftText2)),t.coverLeftText3!=null&&(i.coverLeftText3=String(t.coverLeftText3)),t.uri!=null&&(i.uri=String(t.uri)),t.badge!=null){if(typeof t.badge!="object")throw TypeError(".bilibili.app.nativeact.v1.VideoCard.badge: object expected");i.badge=u.bilibili.app.nativeact.v1.Badge.fromObject(t.badge)}if(t.rights!=null){if(typeof t.rights!="object")throw TypeError(".bilibili.app.nativeact.v1.VideoCard.rights: object expected");i.rights=u.bilibili.app.nativeact.v1.VideoRights.fromObject(t.rights)}if(t.dimension!=null){if(typeof t.dimension!="object")throw TypeError(".bilibili.app.nativeact.v1.VideoCard.dimension: object expected");i.dimension=u.bilibili.app.nativeact.v1.PlayerDimension.fromObject(t.dimension)}if(t.reportDic!=null){if(typeof t.reportDic!="object")throw TypeError(".bilibili.app.nativeact.v1.VideoCard.reportDic: object expected");i.reportDic=u.bilibili.app.nativeact.v1.ReportDic.fromObject(t.reportDic)}return t.resourceType!=null&&(i.resourceType=String(t.resourceType)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.title="",n.coverImageUri="",n.coverLeftText1="",n.coverLeftText2="",n.coverLeftText3="",n.uri="",n.badge=null,n.rights=null,n.dimension=null,n.reportDic=null,n.resourceType=""),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.coverImageUri!=null&&t.hasOwnProperty("coverImageUri")&&(n.coverImageUri=t.coverImageUri),t.coverLeftText1!=null&&t.hasOwnProperty("coverLeftText1")&&(n.coverLeftText1=t.coverLeftText1),t.coverLeftText2!=null&&t.hasOwnProperty("coverLeftText2")&&(n.coverLeftText2=t.coverLeftText2),t.coverLeftText3!=null&&t.hasOwnProperty("coverLeftText3")&&(n.coverLeftText3=t.coverLeftText3),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),t.badge!=null&&t.hasOwnProperty("badge")&&(n.badge=u.bilibili.app.nativeact.v1.Badge.toObject(t.badge,i)),t.rights!=null&&t.hasOwnProperty("rights")&&(n.rights=u.bilibili.app.nativeact.v1.VideoRights.toObject(t.rights,i)),t.dimension!=null&&t.hasOwnProperty("dimension")&&(n.dimension=u.bilibili.app.nativeact.v1.PlayerDimension.toObject(t.dimension,i)),t.reportDic!=null&&t.hasOwnProperty("reportDic")&&(n.reportDic=u.bilibili.app.nativeact.v1.ReportDic.toObject(t.reportDic,i)),t.resourceType!=null&&t.hasOwnProperty("resourceType")&&(n.resourceType=t.resourceType),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.VideoCard"},e}(),c.VideoRights=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.ugcPay=t.bool();break}case 2:{o.isCooperation=t.bool();break}case 3:{o.isPgc=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.VideoRights)return t;let i=new u.bilibili.app.nativeact.v1.VideoRights;return t.ugcPay!=null&&(i.ugcPay=!!t.ugcPay),t.isCooperation!=null&&(i.isCooperation=!!t.isCooperation),t.isPgc!=null&&(i.isPgc=!!t.isPgc),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.ugcPay=!1,n.isCooperation=!1,n.isPgc=!1),t.ugcPay!=null&&t.hasOwnProperty("ugcPay")&&(n.ugcPay=t.ugcPay),t.isCooperation!=null&&t.hasOwnProperty("isCooperation")&&(n.isCooperation=t.isCooperation),t.isPgc!=null&&t.hasOwnProperty("isPgc")&&(n.isPgc=t.isPgc),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.VideoRights"},e}(),c.PlayerDimension=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.width=t.int64();break}case 2:{o.height=t.int64();break}case 3:{o.rotate=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.PlayerDimension)return t;let i=new u.bilibili.app.nativeact.v1.PlayerDimension;return t.width!=null&&(r.Long?(i.width=r.Long.fromValue(t.width)).unsigned=!1:typeof t.width=="string"?i.width=parseInt(t.width,10):typeof t.width=="number"?i.width=t.width:typeof t.width=="object"&&(i.width=new r.LongBits(t.width.low>>>0,t.width.high>>>0).toNumber())),t.height!=null&&(r.Long?(i.height=r.Long.fromValue(t.height)).unsigned=!1:typeof t.height=="string"?i.height=parseInt(t.height,10):typeof t.height=="number"?i.height=t.height:typeof t.height=="object"&&(i.height=new r.LongBits(t.height.low>>>0,t.height.high>>>0).toNumber())),t.rotate!=null&&(i.rotate=!!t.rotate),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.width=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.width=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.height=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.height=i.longs===String?"0":0;n.rotate=!1}return t.width!=null&&t.hasOwnProperty("width")&&(typeof t.width=="number"?n.width=i.longs===String?String(t.width):t.width:n.width=i.longs===String?r.Long.prototype.toString.call(t.width):i.longs===Number?new r.LongBits(t.width.low>>>0,t.width.high>>>0).toNumber():t.width),t.height!=null&&t.hasOwnProperty("height")&&(typeof t.height=="number"?n.height=i.longs===String?String(t.height):t.height:n.height=i.longs===String?r.Long.prototype.toString.call(t.height):i.longs===Number?new r.LongBits(t.height.low>>>0,t.height.high>>>0).toNumber():t.height),t.rotate!=null&&t.hasOwnProperty("rotate")&&(n.rotate=t.rotate),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.PlayerDimension"},e}(),c.VideoMoreCard=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.text=t.string();break}case 2:{o.uri=t.string();break}case 3:{o.subpageData=u.bilibili.app.nativeact.v1.SubpageData.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.VideoMoreCard)return t;let i=new u.bilibili.app.nativeact.v1.VideoMoreCard;if(t.text!=null&&(i.text=String(t.text)),t.uri!=null&&(i.uri=String(t.uri)),t.subpageData!=null){if(typeof t.subpageData!="object")throw TypeError(".bilibili.app.nativeact.v1.VideoMoreCard.subpageData: object expected");i.subpageData=u.bilibili.app.nativeact.v1.SubpageData.fromObject(t.subpageData)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.text="",n.uri="",n.subpageData=null),t.text!=null&&t.hasOwnProperty("text")&&(n.text=t.text),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),t.subpageData!=null&&t.hasOwnProperty("subpageData")&&(n.subpageData=u.bilibili.app.nativeact.v1.SubpageData.toObject(t.subpageData,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.VideoMoreCard"},e}(),c.VideoReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.rawParams=t.string();break}case 2:{o.params=u.bilibili.app.nativeact.v1.VideoParams.decode(t,t.uint32());break}case 3:{o.primaryPageId=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.VideoReq)return t;let i=new u.bilibili.app.nativeact.v1.VideoReq;if(t.rawParams!=null&&(i.rawParams=String(t.rawParams)),t.params!=null){if(typeof t.params!="object")throw TypeError(".bilibili.app.nativeact.v1.VideoReq.params: object expected");i.params=u.bilibili.app.nativeact.v1.VideoParams.fromObject(t.params)}return t.primaryPageId!=null&&(r.Long?(i.primaryPageId=r.Long.fromValue(t.primaryPageId)).unsigned=!1:typeof t.primaryPageId=="string"?i.primaryPageId=parseInt(t.primaryPageId,10):typeof t.primaryPageId=="number"?i.primaryPageId=t.primaryPageId:typeof t.primaryPageId=="object"&&(i.primaryPageId=new r.LongBits(t.primaryPageId.low>>>0,t.primaryPageId.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(n.rawParams="",n.params=null,r.Long){let o=new r.Long(0,0,!1);n.primaryPageId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.primaryPageId=i.longs===String?"0":0;return t.rawParams!=null&&t.hasOwnProperty("rawParams")&&(n.rawParams=t.rawParams),t.params!=null&&t.hasOwnProperty("params")&&(n.params=u.bilibili.app.nativeact.v1.VideoParams.toObject(t.params,i)),t.primaryPageId!=null&&t.hasOwnProperty("primaryPageId")&&(typeof t.primaryPageId=="number"?n.primaryPageId=i.longs===String?String(t.primaryPageId):t.primaryPageId:n.primaryPageId=i.longs===String?r.Long.prototype.toString.call(t.primaryPageId):i.longs===Number?new r.LongBits(t.primaryPageId.low>>>0,t.primaryPageId.high>>>0).toNumber():t.primaryPageId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.VideoReq"},e}(),c.VideoParams=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.offset=t.int64();break}case 2:{o.topicOffset=t.string();break}case 3:{o.moduleId=t.int64();break}case 4:{o.sortType=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.VideoParams)return t;let i=new u.bilibili.app.nativeact.v1.VideoParams;return t.offset!=null&&(r.Long?(i.offset=r.Long.fromValue(t.offset)).unsigned=!1:typeof t.offset=="string"?i.offset=parseInt(t.offset,10):typeof t.offset=="number"?i.offset=t.offset:typeof t.offset=="object"&&(i.offset=new r.LongBits(t.offset.low>>>0,t.offset.high>>>0).toNumber())),t.topicOffset!=null&&(i.topicOffset=String(t.topicOffset)),t.moduleId!=null&&(r.Long?(i.moduleId=r.Long.fromValue(t.moduleId)).unsigned=!1:typeof t.moduleId=="string"?i.moduleId=parseInt(t.moduleId,10):typeof t.moduleId=="number"?i.moduleId=t.moduleId:typeof t.moduleId=="object"&&(i.moduleId=new r.LongBits(t.moduleId.low>>>0,t.moduleId.high>>>0).toNumber())),t.sortType!=null&&(r.Long?(i.sortType=r.Long.fromValue(t.sortType)).unsigned=!1:typeof t.sortType=="string"?i.sortType=parseInt(t.sortType,10):typeof t.sortType=="number"?i.sortType=t.sortType:typeof t.sortType=="object"&&(i.sortType=new r.LongBits(t.sortType.low>>>0,t.sortType.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.offset=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.offset=i.longs===String?"0":0;if(n.topicOffset="",r.Long){let o=new r.Long(0,0,!1);n.moduleId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.moduleId=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.sortType=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.sortType=i.longs===String?"0":0}return t.offset!=null&&t.hasOwnProperty("offset")&&(typeof t.offset=="number"?n.offset=i.longs===String?String(t.offset):t.offset:n.offset=i.longs===String?r.Long.prototype.toString.call(t.offset):i.longs===Number?new r.LongBits(t.offset.low>>>0,t.offset.high>>>0).toNumber():t.offset),t.topicOffset!=null&&t.hasOwnProperty("topicOffset")&&(n.topicOffset=t.topicOffset),t.moduleId!=null&&t.hasOwnProperty("moduleId")&&(typeof t.moduleId=="number"?n.moduleId=i.longs===String?String(t.moduleId):t.moduleId:n.moduleId=i.longs===String?r.Long.prototype.toString.call(t.moduleId):i.longs===Number?new r.LongBits(t.moduleId.low>>>0,t.moduleId.high>>>0).toNumber():t.moduleId),t.sortType!=null&&t.hasOwnProperty("sortType")&&(typeof t.sortType=="number"?n.sortType=i.longs===String?String(t.sortType):t.sortType:n.sortType=i.longs===String?r.Long.prototype.toString.call(t.sortType):i.longs===Number?new r.LongBits(t.sortType.low>>>0,t.sortType.high>>>0).toNumber():t.sortType),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.VideoParams"},e}(),c.VideoResp=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.module=u.bilibili.app.nativeact.v1.Module.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.VideoResp)return t;let i=new u.bilibili.app.nativeact.v1.VideoResp;if(t.module!=null){if(typeof t.module!="object")throw TypeError(".bilibili.app.nativeact.v1.VideoResp.module: object expected");i.module=u.bilibili.app.nativeact.v1.Module.fromObject(t.module)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.module=null),t.module!=null&&t.hasOwnProperty("module")&&(n.module=u.bilibili.app.nativeact.v1.Module.toObject(t.module,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.VideoResp"},e}(),c.RedirectType=function(){let e={},l=Object.create(e);return l[e[0]="RtTypeDefault"]=0,l[e[1]="RtTypeSpace"]=1,l[e[2]="RtTypeUri"]=2,l}(),c.RcmdCard=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.mid=t.int64();break}case 2:{o.name=t.string();break}case 3:{o.face=t.string();break}case 4:{o.uri=t.string();break}case 5:{o.reason=t.string();break}case 6:{o.isFollowed=t.bool();break}case 7:{o.official=u.bilibili.app.nativeact.v1.OfficialInfo.decode(t,t.uint32());break}case 8:{o.vip=u.bilibili.app.nativeact.v1.VipInfo.decode(t,t.uint32());break}case 9:{o.rankIcon=t.string();break}case 10:{o.redirectType=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.RcmdCard)return t;let i=new u.bilibili.app.nativeact.v1.RcmdCard;if(t.mid!=null&&(r.Long?(i.mid=r.Long.fromValue(t.mid)).unsigned=!1:typeof t.mid=="string"?i.mid=parseInt(t.mid,10):typeof t.mid=="number"?i.mid=t.mid:typeof t.mid=="object"&&(i.mid=new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber())),t.name!=null&&(i.name=String(t.name)),t.face!=null&&(i.face=String(t.face)),t.uri!=null&&(i.uri=String(t.uri)),t.reason!=null&&(i.reason=String(t.reason)),t.isFollowed!=null&&(i.isFollowed=!!t.isFollowed),t.official!=null){if(typeof t.official!="object")throw TypeError(".bilibili.app.nativeact.v1.RcmdCard.official: object expected");i.official=u.bilibili.app.nativeact.v1.OfficialInfo.fromObject(t.official)}if(t.vip!=null){if(typeof t.vip!="object")throw TypeError(".bilibili.app.nativeact.v1.RcmdCard.vip: object expected");i.vip=u.bilibili.app.nativeact.v1.VipInfo.fromObject(t.vip)}switch(t.rankIcon!=null&&(i.rankIcon=String(t.rankIcon)),t.redirectType){default:if(typeof t.redirectType=="number"){i.redirectType=t.redirectType;break}break;case"RtTypeDefault":case 0:i.redirectType=0;break;case"RtTypeSpace":case 1:i.redirectType=1;break;case"RtTypeUri":case 2:i.redirectType=2;break}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.mid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mid=i.longs===String?"0":0;n.name="",n.face="",n.uri="",n.reason="",n.isFollowed=!1,n.official=null,n.vip=null,n.rankIcon="",n.redirectType=i.enums===String?"RtTypeDefault":0}return t.mid!=null&&t.hasOwnProperty("mid")&&(typeof t.mid=="number"?n.mid=i.longs===String?String(t.mid):t.mid:n.mid=i.longs===String?r.Long.prototype.toString.call(t.mid):i.longs===Number?new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber():t.mid),t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),t.face!=null&&t.hasOwnProperty("face")&&(n.face=t.face),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),t.reason!=null&&t.hasOwnProperty("reason")&&(n.reason=t.reason),t.isFollowed!=null&&t.hasOwnProperty("isFollowed")&&(n.isFollowed=t.isFollowed),t.official!=null&&t.hasOwnProperty("official")&&(n.official=u.bilibili.app.nativeact.v1.OfficialInfo.toObject(t.official,i)),t.vip!=null&&t.hasOwnProperty("vip")&&(n.vip=u.bilibili.app.nativeact.v1.VipInfo.toObject(t.vip,i)),t.rankIcon!=null&&t.hasOwnProperty("rankIcon")&&(n.rankIcon=t.rankIcon),t.redirectType!=null&&t.hasOwnProperty("redirectType")&&(n.redirectType=i.enums===String?u.bilibili.app.nativeact.v1.RedirectType[t.redirectType]===void 0?t.redirectType:u.bilibili.app.nativeact.v1.RedirectType[t.redirectType]:t.redirectType),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.RcmdCard"},e}(),c.RcmdVerticalCard=function(){function e(l){if(this.items=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.items&&o.items.length||(o.items=[]),o.items.push(u.bilibili.app.nativeact.v1.RcmdCard.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.RcmdVerticalCard)return t;let i=new u.bilibili.app.nativeact.v1.RcmdVerticalCard;if(t.items){if(!Array.isArray(t.items))throw TypeError(".bilibili.app.nativeact.v1.RcmdVerticalCard.items: array expected");i.items=[];for(let n=0;n>>3){case 1:{o.image=t.string();break}case 2:{o.title=t.string();break}case 3:{o.desc=t.string();break}case 4:{o.uri=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.RelativeactCard)return t;let i=new u.bilibili.app.nativeact.v1.RelativeactCard;return t.image!=null&&(i.image=String(t.image)),t.title!=null&&(i.title=String(t.title)),t.desc!=null&&(i.desc=String(t.desc)),t.uri!=null&&(i.uri=String(t.uri)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.image="",n.title="",n.desc="",n.uri=""),t.image!=null&&t.hasOwnProperty("image")&&(n.image=t.image),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.desc!=null&&t.hasOwnProperty("desc")&&(n.desc=t.desc),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.RelativeactCard"},e}(),c.RelativeactCapsuleCard=function(){function e(l){if(this.items=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.Title=t.string();break}case 2:{o.items&&o.items.length||(o.items=[]),o.items.push(u.bilibili.app.nativeact.v1.RelativeactCapsuleItem.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.RelativeactCapsuleCard)return t;let i=new u.bilibili.app.nativeact.v1.RelativeactCapsuleCard;if(t.Title!=null&&(i.Title=String(t.Title)),t.items){if(!Array.isArray(t.items))throw TypeError(".bilibili.app.nativeact.v1.RelativeactCapsuleCard.items: array expected");i.items=[];for(let n=0;n>>3){case 1:{o.pageId=t.int64();break}case 2:{o.title=t.string();break}case 3:{o.uri=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.RelativeactCapsuleItem)return t;let i=new u.bilibili.app.nativeact.v1.RelativeactCapsuleItem;return t.pageId!=null&&(r.Long?(i.pageId=r.Long.fromValue(t.pageId)).unsigned=!1:typeof t.pageId=="string"?i.pageId=parseInt(t.pageId,10):typeof t.pageId=="number"?i.pageId=t.pageId:typeof t.pageId=="object"&&(i.pageId=new r.LongBits(t.pageId.low>>>0,t.pageId.high>>>0).toNumber())),t.title!=null&&(i.title=String(t.title)),t.uri!=null&&(i.uri=String(t.uri)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.pageId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.pageId=i.longs===String?"0":0;n.title="",n.uri=""}return t.pageId!=null&&t.hasOwnProperty("pageId")&&(typeof t.pageId=="number"?n.pageId=i.longs===String?String(t.pageId):t.pageId:n.pageId=i.longs===String?r.Long.prototype.toString.call(t.pageId):i.longs===Number?new r.LongBits(t.pageId.low>>>0,t.pageId.high>>>0).toNumber():t.pageId),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.RelativeactCapsuleItem"},e}(),c.StatementCard=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.content=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.StatementCard)return t;let i=new u.bilibili.app.nativeact.v1.StatementCard;return t.content!=null&&(i.content=String(t.content)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.content=""),t.content!=null&&t.hasOwnProperty("content")&&(n.content=t.content),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.StatementCard"},e}(),c.IconCard=function(){function e(l){if(this.items=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.items&&o.items.length||(o.items=[]),o.items.push(u.bilibili.app.nativeact.v1.IconItem.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.IconCard)return t;let i=new u.bilibili.app.nativeact.v1.IconCard;if(t.items){if(!Array.isArray(t.items))throw TypeError(".bilibili.app.nativeact.v1.IconCard.items: array expected");i.items=[];for(let n=0;n>>3){case 1:{o.title=t.string();break}case 2:{o.image=t.string();break}case 3:{o.uri=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.IconItem)return t;let i=new u.bilibili.app.nativeact.v1.IconItem;return t.title!=null&&(i.title=String(t.title)),t.image!=null&&(i.image=String(t.image)),t.uri!=null&&(i.uri=String(t.uri)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.title="",n.image="",n.uri=""),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.image!=null&&t.hasOwnProperty("image")&&(n.image=t.image),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.IconItem"},e}(),c.MessageBoxType=function(){let e={},l=Object.create(e);return l[e[0]="Dialog"]=0,l[e[1]="Toast"]=1,l}(),c.MessageBox=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.alertMsg=t.string();break}case 2:{o.confirmButtonText=t.string();break}case 3:{o.cancelButtonText=t.string();break}case 4:{o.confirmMsg=t.string();break}case 5:{o.cancelMsg=t.string();break}case 6:{o.type=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.MessageBox)return t;let i=new u.bilibili.app.nativeact.v1.MessageBox;switch(t.alertMsg!=null&&(i.alertMsg=String(t.alertMsg)),t.confirmButtonText!=null&&(i.confirmButtonText=String(t.confirmButtonText)),t.cancelButtonText!=null&&(i.cancelButtonText=String(t.cancelButtonText)),t.confirmMsg!=null&&(i.confirmMsg=String(t.confirmMsg)),t.cancelMsg!=null&&(i.cancelMsg=String(t.cancelMsg)),t.type){default:if(typeof t.type=="number"){i.type=t.type;break}break;case"Dialog":case 0:i.type=0;break;case"Toast":case 1:i.type=1;break}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.alertMsg="",n.confirmButtonText="",n.cancelButtonText="",n.confirmMsg="",n.cancelMsg="",n.type=i.enums===String?"Dialog":0),t.alertMsg!=null&&t.hasOwnProperty("alertMsg")&&(n.alertMsg=t.alertMsg),t.confirmButtonText!=null&&t.hasOwnProperty("confirmButtonText")&&(n.confirmButtonText=t.confirmButtonText),t.cancelButtonText!=null&&t.hasOwnProperty("cancelButtonText")&&(n.cancelButtonText=t.cancelButtonText),t.confirmMsg!=null&&t.hasOwnProperty("confirmMsg")&&(n.confirmMsg=t.confirmMsg),t.cancelMsg!=null&&t.hasOwnProperty("cancelMsg")&&(n.cancelMsg=t.cancelMsg),t.type!=null&&t.hasOwnProperty("type")&&(n.type=i.enums===String?u.bilibili.app.nativeact.v1.MessageBoxType[t.type]===void 0?t.type:u.bilibili.app.nativeact.v1.MessageBoxType[t.type]:t.type),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.MessageBox"},e}(),c.Area=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.height=t.int64();break}case 2:{o.width=t.int64();break}case 3:{o.x=t.int64();break}case 4:{o.y=t.int64();break}case 5:{o.ukey=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.Area)return t;let i=new u.bilibili.app.nativeact.v1.Area;return t.height!=null&&(r.Long?(i.height=r.Long.fromValue(t.height)).unsigned=!1:typeof t.height=="string"?i.height=parseInt(t.height,10):typeof t.height=="number"?i.height=t.height:typeof t.height=="object"&&(i.height=new r.LongBits(t.height.low>>>0,t.height.high>>>0).toNumber())),t.width!=null&&(r.Long?(i.width=r.Long.fromValue(t.width)).unsigned=!1:typeof t.width=="string"?i.width=parseInt(t.width,10):typeof t.width=="number"?i.width=t.width:typeof t.width=="object"&&(i.width=new r.LongBits(t.width.low>>>0,t.width.high>>>0).toNumber())),t.x!=null&&(r.Long?(i.x=r.Long.fromValue(t.x)).unsigned=!1:typeof t.x=="string"?i.x=parseInt(t.x,10):typeof t.x=="number"?i.x=t.x:typeof t.x=="object"&&(i.x=new r.LongBits(t.x.low>>>0,t.x.high>>>0).toNumber())),t.y!=null&&(r.Long?(i.y=r.Long.fromValue(t.y)).unsigned=!1:typeof t.y=="string"?i.y=parseInt(t.y,10):typeof t.y=="number"?i.y=t.y:typeof t.y=="object"&&(i.y=new r.LongBits(t.y.low>>>0,t.y.high>>>0).toNumber())),t.ukey!=null&&(i.ukey=String(t.ukey)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.height=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.height=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.width=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.width=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.x=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.x=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.y=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.y=i.longs===String?"0":0;n.ukey=""}return t.height!=null&&t.hasOwnProperty("height")&&(typeof t.height=="number"?n.height=i.longs===String?String(t.height):t.height:n.height=i.longs===String?r.Long.prototype.toString.call(t.height):i.longs===Number?new r.LongBits(t.height.low>>>0,t.height.high>>>0).toNumber():t.height),t.width!=null&&t.hasOwnProperty("width")&&(typeof t.width=="number"?n.width=i.longs===String?String(t.width):t.width:n.width=i.longs===String?r.Long.prototype.toString.call(t.width):i.longs===Number?new r.LongBits(t.width.low>>>0,t.width.high>>>0).toNumber():t.width),t.x!=null&&t.hasOwnProperty("x")&&(typeof t.x=="number"?n.x=i.longs===String?String(t.x):t.x:n.x=i.longs===String?r.Long.prototype.toString.call(t.x):i.longs===Number?new r.LongBits(t.x.low>>>0,t.x.high>>>0).toNumber():t.x),t.y!=null&&t.hasOwnProperty("y")&&(typeof t.y=="number"?n.y=i.longs===String?String(t.y):t.y:n.y=i.longs===String?r.Long.prototype.toString.call(t.y):i.longs===Number?new r.LongBits(t.y.low>>>0,t.y.high>>>0).toNumber():t.y),t.ukey!=null&&t.hasOwnProperty("ukey")&&(n.ukey=t.ukey),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.Area"},e}(),c.VoteCard=function(){function e(l){if(this.buttons=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.bgImage=u.bilibili.app.nativeact.v1.SizeImage.decode(t,t.uint32());break}case 2:{o.optionNum=t.int64();break}case 3:{o.buttons&&o.buttons.length||(o.buttons=[]),o.buttons.push(u.bilibili.app.nativeact.v1.VoteButton.decode(t,t.uint32()));break}case 4:{o.leftNum=u.bilibili.app.nativeact.v1.VoteNum.decode(t,t.uint32());break}case 5:{o.progress=u.bilibili.app.nativeact.v1.VoteProgress.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.VoteCard)return t;let i=new u.bilibili.app.nativeact.v1.VoteCard;if(t.bgImage!=null){if(typeof t.bgImage!="object")throw TypeError(".bilibili.app.nativeact.v1.VoteCard.bgImage: object expected");i.bgImage=u.bilibili.app.nativeact.v1.SizeImage.fromObject(t.bgImage)}if(t.optionNum!=null&&(r.Long?(i.optionNum=r.Long.fromValue(t.optionNum)).unsigned=!1:typeof t.optionNum=="string"?i.optionNum=parseInt(t.optionNum,10):typeof t.optionNum=="number"?i.optionNum=t.optionNum:typeof t.optionNum=="object"&&(i.optionNum=new r.LongBits(t.optionNum.low>>>0,t.optionNum.high>>>0).toNumber())),t.buttons){if(!Array.isArray(t.buttons))throw TypeError(".bilibili.app.nativeact.v1.VoteCard.buttons: array expected");i.buttons=[];for(let n=0;n>>0,t.optionNum.high>>>0).toNumber():t.optionNum),t.buttons&&t.buttons.length){n.buttons=[];for(let o=0;o>>3){case 1:{o.area=u.bilibili.app.nativeact.v1.Area.decode(t,t.uint32());break}case 2:{o.doneImage=t.string();break}case 3:{o.undoneImage=t.string();break}case 4:{o.hasVoted=t.bool();break}case 5:{o.messageBox=u.bilibili.app.nativeact.v1.MessageBox.decode(t,t.uint32());break}case 6:{o.voteParams=t.string();break}case 7:{o.sourceItemId=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.VoteButton)return t;let i=new u.bilibili.app.nativeact.v1.VoteButton;if(t.area!=null){if(typeof t.area!="object")throw TypeError(".bilibili.app.nativeact.v1.VoteButton.area: object expected");i.area=u.bilibili.app.nativeact.v1.Area.fromObject(t.area)}if(t.doneImage!=null&&(i.doneImage=String(t.doneImage)),t.undoneImage!=null&&(i.undoneImage=String(t.undoneImage)),t.hasVoted!=null&&(i.hasVoted=!!t.hasVoted),t.messageBox!=null){if(typeof t.messageBox!="object")throw TypeError(".bilibili.app.nativeact.v1.VoteButton.messageBox: object expected");i.messageBox=u.bilibili.app.nativeact.v1.MessageBox.fromObject(t.messageBox)}return t.voteParams!=null&&(i.voteParams=String(t.voteParams)),t.sourceItemId!=null&&(r.Long?(i.sourceItemId=r.Long.fromValue(t.sourceItemId)).unsigned=!1:typeof t.sourceItemId=="string"?i.sourceItemId=parseInt(t.sourceItemId,10):typeof t.sourceItemId=="number"?i.sourceItemId=t.sourceItemId:typeof t.sourceItemId=="object"&&(i.sourceItemId=new r.LongBits(t.sourceItemId.low>>>0,t.sourceItemId.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(n.area=null,n.doneImage="",n.undoneImage="",n.hasVoted=!1,n.messageBox=null,n.voteParams="",r.Long){let o=new r.Long(0,0,!1);n.sourceItemId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.sourceItemId=i.longs===String?"0":0;return t.area!=null&&t.hasOwnProperty("area")&&(n.area=u.bilibili.app.nativeact.v1.Area.toObject(t.area,i)),t.doneImage!=null&&t.hasOwnProperty("doneImage")&&(n.doneImage=t.doneImage),t.undoneImage!=null&&t.hasOwnProperty("undoneImage")&&(n.undoneImage=t.undoneImage),t.hasVoted!=null&&t.hasOwnProperty("hasVoted")&&(n.hasVoted=t.hasVoted),t.messageBox!=null&&t.hasOwnProperty("messageBox")&&(n.messageBox=u.bilibili.app.nativeact.v1.MessageBox.toObject(t.messageBox,i)),t.voteParams!=null&&t.hasOwnProperty("voteParams")&&(n.voteParams=t.voteParams),t.sourceItemId!=null&&t.hasOwnProperty("sourceItemId")&&(typeof t.sourceItemId=="number"?n.sourceItemId=i.longs===String?String(t.sourceItemId):t.sourceItemId:n.sourceItemId=i.longs===String?r.Long.prototype.toString.call(t.sourceItemId):i.longs===Number?new r.LongBits(t.sourceItemId.low>>>0,t.sourceItemId.high>>>0).toNumber():t.sourceItemId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.VoteButton"},e}(),c.VoteNum=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.area=u.bilibili.app.nativeact.v1.Area.decode(t,t.uint32());break}case 2:{o.num=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.VoteNum)return t;let i=new u.bilibili.app.nativeact.v1.VoteNum;if(t.area!=null){if(typeof t.area!="object")throw TypeError(".bilibili.app.nativeact.v1.VoteNum.area: object expected");i.area=u.bilibili.app.nativeact.v1.Area.fromObject(t.area)}return t.num!=null&&(r.Long?(i.num=r.Long.fromValue(t.num)).unsigned=!1:typeof t.num=="string"?i.num=parseInt(t.num,10):typeof t.num=="number"?i.num=t.num:typeof t.num=="object"&&(i.num=new r.LongBits(t.num.low>>>0,t.num.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(n.area=null,r.Long){let o=new r.Long(0,0,!1);n.num=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.num=i.longs===String?"0":0;return t.area!=null&&t.hasOwnProperty("area")&&(n.area=u.bilibili.app.nativeact.v1.Area.toObject(t.area,i)),t.num!=null&&t.hasOwnProperty("num")&&(typeof t.num=="number"?n.num=i.longs===String?String(t.num):t.num:n.num=i.longs===String?r.Long.prototype.toString.call(t.num):i.longs===Number?new r.LongBits(t.num.low>>>0,t.num.high>>>0).toNumber():t.num),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.VoteNum"},e}(),c.VoteProgressStyle=function(){let e={},l=Object.create(e);return l[e[0]="VPStyleDefault"]=0,l[e[1]="VPStyleCircle"]=1,l[e[2]="VPStyleSquare"]=2,l}(),c.VoteProgress=function(){function e(l){if(this.items=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.area=u.bilibili.app.nativeact.v1.Area.decode(t,t.uint32());break}case 2:{o.style=t.int32();break}case 3:{o.items&&o.items.length||(o.items=[]),o.items.push(u.bilibili.app.nativeact.v1.VoteProgress.VoteProgressItem.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.VoteProgress)return t;let i=new u.bilibili.app.nativeact.v1.VoteProgress;if(t.area!=null){if(typeof t.area!="object")throw TypeError(".bilibili.app.nativeact.v1.VoteProgress.area: object expected");i.area=u.bilibili.app.nativeact.v1.Area.fromObject(t.area)}switch(t.style){default:if(typeof t.style=="number"){i.style=t.style;break}break;case"VPStyleDefault":case 0:i.style=0;break;case"VPStyleCircle":case 1:i.style=1;break;case"VPStyleSquare":case 2:i.style=2;break}if(t.items){if(!Array.isArray(t.items))throw TypeError(".bilibili.app.nativeact.v1.VoteProgress.items: array expected");i.items=[];for(let n=0;n>>3){case 1:{a.color=i.string();break}case 2:{a.num=i.int64();break}case 3:{a.sourceItemId=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.app.nativeact.v1.VoteProgress.VoteProgressItem)return i;let n=new u.bilibili.app.nativeact.v1.VoteProgress.VoteProgressItem;return i.color!=null&&(n.color=String(i.color)),i.num!=null&&(r.Long?(n.num=r.Long.fromValue(i.num)).unsigned=!1:typeof i.num=="string"?n.num=parseInt(i.num,10):typeof i.num=="number"?n.num=i.num:typeof i.num=="object"&&(n.num=new r.LongBits(i.num.low>>>0,i.num.high>>>0).toNumber())),i.sourceItemId!=null&&(r.Long?(n.sourceItemId=r.Long.fromValue(i.sourceItemId)).unsigned=!1:typeof i.sourceItemId=="string"?n.sourceItemId=parseInt(i.sourceItemId,10):typeof i.sourceItemId=="number"?n.sourceItemId=i.sourceItemId:typeof i.sourceItemId=="object"&&(n.sourceItemId=new r.LongBits(i.sourceItemId.low>>>0,i.sourceItemId.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(o.color="",r.Long){let a=new r.Long(0,0,!1);o.num=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.num=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.sourceItemId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.sourceItemId=n.longs===String?"0":0}return i.color!=null&&i.hasOwnProperty("color")&&(o.color=i.color),i.num!=null&&i.hasOwnProperty("num")&&(typeof i.num=="number"?o.num=n.longs===String?String(i.num):i.num:o.num=n.longs===String?r.Long.prototype.toString.call(i.num):n.longs===Number?new r.LongBits(i.num.low>>>0,i.num.high>>>0).toNumber():i.num),i.sourceItemId!=null&&i.hasOwnProperty("sourceItemId")&&(typeof i.sourceItemId=="number"?o.sourceItemId=n.longs===String?String(i.sourceItemId):i.sourceItemId:o.sourceItemId=n.longs===String?r.Long.prototype.toString.call(i.sourceItemId):n.longs===Number?new r.LongBits(i.sourceItemId.low>>>0,i.sourceItemId.high>>>0).toNumber():i.sourceItemId),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.app.nativeact.v1.VoteProgress.VoteProgressItem"},l}(),e}(),c.ActionType=function(){let e={},l=Object.create(e);return l[e[0]="Default"]=0,l[e[1]="Do"]=1,l[e[2]="Undo"]=2,l}(),c.VoteReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.rawParams=t.string();break}case 2:{o.params=u.bilibili.app.nativeact.v1.VoteParams.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.VoteReq)return t;let i=new u.bilibili.app.nativeact.v1.VoteReq;if(t.rawParams!=null&&(i.rawParams=String(t.rawParams)),t.params!=null){if(typeof t.params!="object")throw TypeError(".bilibili.app.nativeact.v1.VoteReq.params: object expected");i.params=u.bilibili.app.nativeact.v1.VoteParams.fromObject(t.params)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.rawParams="",n.params=null),t.rawParams!=null&&t.hasOwnProperty("rawParams")&&(n.rawParams=t.rawParams),t.params!=null&&t.hasOwnProperty("params")&&(n.params=u.bilibili.app.nativeact.v1.VoteParams.toObject(t.params,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.VoteReq"},e}(),c.VoteResp=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.voteParams=t.string();break}case 2:{o.leftNum=t.int64();break}case 3:{o.canVoteNum=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.VoteResp)return t;let i=new u.bilibili.app.nativeact.v1.VoteResp;return t.voteParams!=null&&(i.voteParams=String(t.voteParams)),t.leftNum!=null&&(r.Long?(i.leftNum=r.Long.fromValue(t.leftNum)).unsigned=!1:typeof t.leftNum=="string"?i.leftNum=parseInt(t.leftNum,10):typeof t.leftNum=="number"?i.leftNum=t.leftNum:typeof t.leftNum=="object"&&(i.leftNum=new r.LongBits(t.leftNum.low>>>0,t.leftNum.high>>>0).toNumber())),t.canVoteNum!=null&&(r.Long?(i.canVoteNum=r.Long.fromValue(t.canVoteNum)).unsigned=!1:typeof t.canVoteNum=="string"?i.canVoteNum=parseInt(t.canVoteNum,10):typeof t.canVoteNum=="number"?i.canVoteNum=t.canVoteNum:typeof t.canVoteNum=="object"&&(i.canVoteNum=new r.LongBits(t.canVoteNum.low>>>0,t.canVoteNum.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.voteParams="",r.Long){let o=new r.Long(0,0,!1);n.leftNum=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.leftNum=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.canVoteNum=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.canVoteNum=i.longs===String?"0":0}return t.voteParams!=null&&t.hasOwnProperty("voteParams")&&(n.voteParams=t.voteParams),t.leftNum!=null&&t.hasOwnProperty("leftNum")&&(typeof t.leftNum=="number"?n.leftNum=i.longs===String?String(t.leftNum):t.leftNum:n.leftNum=i.longs===String?r.Long.prototype.toString.call(t.leftNum):i.longs===Number?new r.LongBits(t.leftNum.low>>>0,t.leftNum.high>>>0).toNumber():t.leftNum),t.canVoteNum!=null&&t.hasOwnProperty("canVoteNum")&&(typeof t.canVoteNum=="number"?n.canVoteNum=i.longs===String?String(t.canVoteNum):t.canVoteNum:n.canVoteNum=i.longs===String?r.Long.prototype.toString.call(t.canVoteNum):i.longs===Number?new r.LongBits(t.canVoteNum.low>>>0,t.canVoteNum.high>>>0).toNumber():t.canVoteNum),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.VoteResp"},e}(),c.VoteParams=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.action=t.int32();break}case 2:{o.sid=t.int64();break}case 3:{o.gid=t.int64();break}case 4:{o.sourceItemId=t.int64();break}case 5:{o.type=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.VoteParams)return t;let i=new u.bilibili.app.nativeact.v1.VoteParams;switch(t.action){default:if(typeof t.action=="number"){i.action=t.action;break}break;case"Default":case 0:i.action=0;break;case"Do":case 1:i.action=1;break;case"Undo":case 2:i.action=2;break}return t.sid!=null&&(r.Long?(i.sid=r.Long.fromValue(t.sid)).unsigned=!1:typeof t.sid=="string"?i.sid=parseInt(t.sid,10):typeof t.sid=="number"?i.sid=t.sid:typeof t.sid=="object"&&(i.sid=new r.LongBits(t.sid.low>>>0,t.sid.high>>>0).toNumber())),t.gid!=null&&(r.Long?(i.gid=r.Long.fromValue(t.gid)).unsigned=!1:typeof t.gid=="string"?i.gid=parseInt(t.gid,10):typeof t.gid=="number"?i.gid=t.gid:typeof t.gid=="object"&&(i.gid=new r.LongBits(t.gid.low>>>0,t.gid.high>>>0).toNumber())),t.sourceItemId!=null&&(r.Long?(i.sourceItemId=r.Long.fromValue(t.sourceItemId)).unsigned=!1:typeof t.sourceItemId=="string"?i.sourceItemId=parseInt(t.sourceItemId,10):typeof t.sourceItemId=="number"?i.sourceItemId=t.sourceItemId:typeof t.sourceItemId=="object"&&(i.sourceItemId=new r.LongBits(t.sourceItemId.low>>>0,t.sourceItemId.high>>>0).toNumber())),t.type!=null&&(i.type=String(t.type)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.action=i.enums===String?"Default":0,r.Long){let o=new r.Long(0,0,!1);n.sid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.sid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.gid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.gid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.sourceItemId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.sourceItemId=i.longs===String?"0":0;n.type=""}return t.action!=null&&t.hasOwnProperty("action")&&(n.action=i.enums===String?u.bilibili.app.nativeact.v1.ActionType[t.action]===void 0?t.action:u.bilibili.app.nativeact.v1.ActionType[t.action]:t.action),t.sid!=null&&t.hasOwnProperty("sid")&&(typeof t.sid=="number"?n.sid=i.longs===String?String(t.sid):t.sid:n.sid=i.longs===String?r.Long.prototype.toString.call(t.sid):i.longs===Number?new r.LongBits(t.sid.low>>>0,t.sid.high>>>0).toNumber():t.sid),t.gid!=null&&t.hasOwnProperty("gid")&&(typeof t.gid=="number"?n.gid=i.longs===String?String(t.gid):t.gid:n.gid=i.longs===String?r.Long.prototype.toString.call(t.gid):i.longs===Number?new r.LongBits(t.gid.low>>>0,t.gid.high>>>0).toNumber():t.gid),t.sourceItemId!=null&&t.hasOwnProperty("sourceItemId")&&(typeof t.sourceItemId=="number"?n.sourceItemId=i.longs===String?String(t.sourceItemId):t.sourceItemId:n.sourceItemId=i.longs===String?r.Long.prototype.toString.call(t.sourceItemId):i.longs===Number?new r.LongBits(t.sourceItemId.low>>>0,t.sourceItemId.high>>>0).toNumber():t.sourceItemId),t.type!=null&&t.hasOwnProperty("type")&&(n.type=t.type),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.VoteParams"},e}(),c.ReserveCard=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.sid=t.int64();break}case 2:{o.mid=t.int64();break}case 3:{o.name=t.string();break}case 4:{o.face=t.string();break}case 5:{o.uri=t.string();break}case 6:{o.title=t.string();break}case 7:{o.content=t.string();break}case 8:{o.num=t.int64();break}case 9:{o.subtitle=t.string();break}case 10:{o.button=u.bilibili.app.nativeact.v1.ReserveButton.decode(t,t.uint32());break}case 11:{o.hideReserveNum=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.ReserveCard)return t;let i=new u.bilibili.app.nativeact.v1.ReserveCard;if(t.sid!=null&&(r.Long?(i.sid=r.Long.fromValue(t.sid)).unsigned=!1:typeof t.sid=="string"?i.sid=parseInt(t.sid,10):typeof t.sid=="number"?i.sid=t.sid:typeof t.sid=="object"&&(i.sid=new r.LongBits(t.sid.low>>>0,t.sid.high>>>0).toNumber())),t.mid!=null&&(r.Long?(i.mid=r.Long.fromValue(t.mid)).unsigned=!1:typeof t.mid=="string"?i.mid=parseInt(t.mid,10):typeof t.mid=="number"?i.mid=t.mid:typeof t.mid=="object"&&(i.mid=new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber())),t.name!=null&&(i.name=String(t.name)),t.face!=null&&(i.face=String(t.face)),t.uri!=null&&(i.uri=String(t.uri)),t.title!=null&&(i.title=String(t.title)),t.content!=null&&(i.content=String(t.content)),t.num!=null&&(r.Long?(i.num=r.Long.fromValue(t.num)).unsigned=!1:typeof t.num=="string"?i.num=parseInt(t.num,10):typeof t.num=="number"?i.num=t.num:typeof t.num=="object"&&(i.num=new r.LongBits(t.num.low>>>0,t.num.high>>>0).toNumber())),t.subtitle!=null&&(i.subtitle=String(t.subtitle)),t.button!=null){if(typeof t.button!="object")throw TypeError(".bilibili.app.nativeact.v1.ReserveCard.button: object expected");i.button=u.bilibili.app.nativeact.v1.ReserveButton.fromObject(t.button)}return t.hideReserveNum!=null&&(i.hideReserveNum=!!t.hideReserveNum),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.sid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.sid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.mid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mid=i.longs===String?"0":0;if(n.name="",n.face="",n.uri="",n.title="",n.content="",r.Long){let o=new r.Long(0,0,!1);n.num=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.num=i.longs===String?"0":0;n.subtitle="",n.button=null,n.hideReserveNum=!1}return t.sid!=null&&t.hasOwnProperty("sid")&&(typeof t.sid=="number"?n.sid=i.longs===String?String(t.sid):t.sid:n.sid=i.longs===String?r.Long.prototype.toString.call(t.sid):i.longs===Number?new r.LongBits(t.sid.low>>>0,t.sid.high>>>0).toNumber():t.sid),t.mid!=null&&t.hasOwnProperty("mid")&&(typeof t.mid=="number"?n.mid=i.longs===String?String(t.mid):t.mid:n.mid=i.longs===String?r.Long.prototype.toString.call(t.mid):i.longs===Number?new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber():t.mid),t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),t.face!=null&&t.hasOwnProperty("face")&&(n.face=t.face),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.content!=null&&t.hasOwnProperty("content")&&(n.content=t.content),t.num!=null&&t.hasOwnProperty("num")&&(typeof t.num=="number"?n.num=i.longs===String?String(t.num):t.num:n.num=i.longs===String?r.Long.prototype.toString.call(t.num):i.longs===Number?new r.LongBits(t.num.low>>>0,t.num.high>>>0).toNumber():t.num),t.subtitle!=null&&t.hasOwnProperty("subtitle")&&(n.subtitle=t.subtitle),t.button!=null&&t.hasOwnProperty("button")&&(n.button=u.bilibili.app.nativeact.v1.ReserveButton.toObject(t.button,i)),t.hideReserveNum!=null&&t.hasOwnProperty("hideReserveNum")&&(n.hideReserveNum=t.hideReserveNum),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.ReserveCard"},e}(),c.ReserveGoto=function(){let e={},l=Object.create(e);return l[e[0]="Reserve"]=0,l[e[1]="Redirect"]=1,l[e[2]="Unable"]=2,l}(),c.ReserveButton=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.goto=t.int32();break}case 2:{o.messageBox=u.bilibili.app.nativeact.v1.MessageBox.decode(t,t.uint32());break}case 3:{o.reserveParams=t.string();break}case 4:{o.hasDone=t.bool();break}case 5:{o.doneText=t.string();break}case 6:{o.undoneText=t.string();break}case 7:{o.icon=t.string();break}case 8:{o.isHighlight=t.bool();break}case 9:{o.url=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.ReserveButton)return t;let i=new u.bilibili.app.nativeact.v1.ReserveButton;switch(t.goto){default:if(typeof t.goto=="number"){i.goto=t.goto;break}break;case"Reserve":case 0:i.goto=0;break;case"Redirect":case 1:i.goto=1;break;case"Unable":case 2:i.goto=2;break}if(t.messageBox!=null){if(typeof t.messageBox!="object")throw TypeError(".bilibili.app.nativeact.v1.ReserveButton.messageBox: object expected");i.messageBox=u.bilibili.app.nativeact.v1.MessageBox.fromObject(t.messageBox)}return t.reserveParams!=null&&(i.reserveParams=String(t.reserveParams)),t.hasDone!=null&&(i.hasDone=!!t.hasDone),t.doneText!=null&&(i.doneText=String(t.doneText)),t.undoneText!=null&&(i.undoneText=String(t.undoneText)),t.icon!=null&&(i.icon=String(t.icon)),t.isHighlight!=null&&(i.isHighlight=!!t.isHighlight),t.url!=null&&(i.url=String(t.url)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.goto=i.enums===String?"Reserve":0,n.messageBox=null,n.reserveParams="",n.hasDone=!1,n.doneText="",n.undoneText="",n.icon="",n.isHighlight=!1,n.url=""),t.goto!=null&&t.hasOwnProperty("goto")&&(n.goto=i.enums===String?u.bilibili.app.nativeact.v1.ReserveGoto[t.goto]===void 0?t.goto:u.bilibili.app.nativeact.v1.ReserveGoto[t.goto]:t.goto),t.messageBox!=null&&t.hasOwnProperty("messageBox")&&(n.messageBox=u.bilibili.app.nativeact.v1.MessageBox.toObject(t.messageBox,i)),t.reserveParams!=null&&t.hasOwnProperty("reserveParams")&&(n.reserveParams=t.reserveParams),t.hasDone!=null&&t.hasOwnProperty("hasDone")&&(n.hasDone=t.hasDone),t.doneText!=null&&t.hasOwnProperty("doneText")&&(n.doneText=t.doneText),t.undoneText!=null&&t.hasOwnProperty("undoneText")&&(n.undoneText=t.undoneText),t.icon!=null&&t.hasOwnProperty("icon")&&(n.icon=t.icon),t.isHighlight!=null&&t.hasOwnProperty("isHighlight")&&(n.isHighlight=t.isHighlight),t.url!=null&&t.hasOwnProperty("url")&&(n.url=t.url),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.ReserveButton"},e}(),c.ReserveReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.rawParams=t.string();break}case 2:{o.params=u.bilibili.app.nativeact.v1.ReserveParams.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.ReserveReq)return t;let i=new u.bilibili.app.nativeact.v1.ReserveReq;if(t.rawParams!=null&&(i.rawParams=String(t.rawParams)),t.params!=null){if(typeof t.params!="object")throw TypeError(".bilibili.app.nativeact.v1.ReserveReq.params: object expected");i.params=u.bilibili.app.nativeact.v1.ReserveParams.fromObject(t.params)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.rawParams="",n.params=null),t.rawParams!=null&&t.hasOwnProperty("rawParams")&&(n.rawParams=t.rawParams),t.params!=null&&t.hasOwnProperty("params")&&(n.params=u.bilibili.app.nativeact.v1.ReserveParams.toObject(t.params,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.ReserveReq"},e}(),c.ReserveParams=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.action=t.int32();break}case 2:{o.sid=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.ReserveParams)return t;let i=new u.bilibili.app.nativeact.v1.ReserveParams;switch(t.action){default:if(typeof t.action=="number"){i.action=t.action;break}break;case"Default":case 0:i.action=0;break;case"Do":case 1:i.action=1;break;case"Undo":case 2:i.action=2;break}return t.sid!=null&&(r.Long?(i.sid=r.Long.fromValue(t.sid)).unsigned=!1:typeof t.sid=="string"?i.sid=parseInt(t.sid,10):typeof t.sid=="number"?i.sid=t.sid:typeof t.sid=="object"&&(i.sid=new r.LongBits(t.sid.low>>>0,t.sid.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(n.action=i.enums===String?"Default":0,r.Long){let o=new r.Long(0,0,!1);n.sid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.sid=i.longs===String?"0":0;return t.action!=null&&t.hasOwnProperty("action")&&(n.action=i.enums===String?u.bilibili.app.nativeact.v1.ActionType[t.action]===void 0?t.action:u.bilibili.app.nativeact.v1.ActionType[t.action]:t.action),t.sid!=null&&t.hasOwnProperty("sid")&&(typeof t.sid=="number"?n.sid=i.longs===String?String(t.sid):t.sid:n.sid=i.longs===String?r.Long.prototype.toString.call(t.sid):i.longs===Number?new r.LongBits(t.sid.low>>>0,t.sid.high>>>0).toNumber():t.sid),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.ReserveParams"},e}(),c.ReserveRly=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.reserveParams=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.ReserveRly)return t;let i=new u.bilibili.app.nativeact.v1.ReserveRly;return t.reserveParams!=null&&(i.reserveParams=String(t.reserveParams)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.reserveParams=""),t.reserveParams!=null&&t.hasOwnProperty("reserveParams")&&(n.reserveParams=t.reserveParams),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.ReserveRly"},e}(),c.TimelineHeadCard=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.stage=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.TimelineHeadCard)return t;let i=new u.bilibili.app.nativeact.v1.TimelineHeadCard;return t.stage!=null&&(i.stage=String(t.stage)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.stage=""),t.stage!=null&&t.hasOwnProperty("stage")&&(n.stage=t.stage),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.TimelineHeadCard"},e}(),c.TimelineEventTextCard=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.subtitle=t.string();break}case 3:{o.content=t.string();break}case 4:{o.uri=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.TimelineEventTextCard)return t;let i=new u.bilibili.app.nativeact.v1.TimelineEventTextCard;return t.title!=null&&(i.title=String(t.title)),t.subtitle!=null&&(i.subtitle=String(t.subtitle)),t.content!=null&&(i.content=String(t.content)),t.uri!=null&&(i.uri=String(t.uri)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.title="",n.subtitle="",n.content="",n.uri=""),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.subtitle!=null&&t.hasOwnProperty("subtitle")&&(n.subtitle=t.subtitle),t.content!=null&&t.hasOwnProperty("content")&&(n.content=t.content),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.TimelineEventTextCard"},e}(),c.TimelineEventImageCard=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.image=u.bilibili.app.nativeact.v1.SizeImage.decode(t,t.uint32());break}case 2:{o.title=t.string();break}case 3:{o.uri=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.TimelineEventImageCard)return t;let i=new u.bilibili.app.nativeact.v1.TimelineEventImageCard;if(t.image!=null){if(typeof t.image!="object")throw TypeError(".bilibili.app.nativeact.v1.TimelineEventImageCard.image: object expected");i.image=u.bilibili.app.nativeact.v1.SizeImage.fromObject(t.image)}return t.title!=null&&(i.title=String(t.title)),t.uri!=null&&(i.uri=String(t.uri)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.image=null,n.title="",n.uri=""),t.image!=null&&t.hasOwnProperty("image")&&(n.image=u.bilibili.app.nativeact.v1.SizeImage.toObject(t.image,i)),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.TimelineEventImageCard"},e}(),c.TimelineEventImagetextCard=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.subtitle=t.string();break}case 3:{o.content=t.string();break}case 4:{o.image=t.string();break}case 5:{o.uri=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.TimelineEventImagetextCard)return t;let i=new u.bilibili.app.nativeact.v1.TimelineEventImagetextCard;return t.title!=null&&(i.title=String(t.title)),t.subtitle!=null&&(i.subtitle=String(t.subtitle)),t.content!=null&&(i.content=String(t.content)),t.image!=null&&(i.image=String(t.image)),t.uri!=null&&(i.uri=String(t.uri)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.title="",n.subtitle="",n.content="",n.image="",n.uri=""),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.subtitle!=null&&t.hasOwnProperty("subtitle")&&(n.subtitle=t.subtitle),t.content!=null&&t.hasOwnProperty("content")&&(n.content=t.content),t.image!=null&&t.hasOwnProperty("image")&&(n.image=t.image),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.TimelineEventImagetextCard"},e}(),c.TimelineEventResourceCard=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.coverImageUri=t.string();break}case 3:{o.uri=t.string();break}case 4:{o.position1=t.string();break}case 5:{o.position2=t.string();break}case 6:{o.badge=u.bilibili.app.nativeact.v1.Badge.decode(t,t.uint32());break}case 7:{o.reportDic=u.bilibili.app.nativeact.v1.ReportDic.decode(t,t.uint32());break}case 8:{o.resourceType=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.TimelineEventResourceCard)return t;let i=new u.bilibili.app.nativeact.v1.TimelineEventResourceCard;if(t.title!=null&&(i.title=String(t.title)),t.coverImageUri!=null&&(i.coverImageUri=String(t.coverImageUri)),t.uri!=null&&(i.uri=String(t.uri)),t.position1!=null&&(i.position1=String(t.position1)),t.position2!=null&&(i.position2=String(t.position2)),t.badge!=null){if(typeof t.badge!="object")throw TypeError(".bilibili.app.nativeact.v1.TimelineEventResourceCard.badge: object expected");i.badge=u.bilibili.app.nativeact.v1.Badge.fromObject(t.badge)}if(t.reportDic!=null){if(typeof t.reportDic!="object")throw TypeError(".bilibili.app.nativeact.v1.TimelineEventResourceCard.reportDic: object expected");i.reportDic=u.bilibili.app.nativeact.v1.ReportDic.fromObject(t.reportDic)}return t.resourceType!=null&&(i.resourceType=String(t.resourceType)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.title="",n.coverImageUri="",n.uri="",n.position1="",n.position2="",n.badge=null,n.reportDic=null,n.resourceType=""),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.coverImageUri!=null&&t.hasOwnProperty("coverImageUri")&&(n.coverImageUri=t.coverImageUri),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),t.position1!=null&&t.hasOwnProperty("position1")&&(n.position1=t.position1),t.position2!=null&&t.hasOwnProperty("position2")&&(n.position2=t.position2),t.badge!=null&&t.hasOwnProperty("badge")&&(n.badge=u.bilibili.app.nativeact.v1.Badge.toObject(t.badge,i)),t.reportDic!=null&&t.hasOwnProperty("reportDic")&&(n.reportDic=u.bilibili.app.nativeact.v1.ReportDic.toObject(t.reportDic,i)),t.resourceType!=null&&t.hasOwnProperty("resourceType")&&(n.resourceType=t.resourceType),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.TimelineEventResourceCard"},e}(),c.TimelineMoreCard=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.buttonText=t.string();break}case 2:{o.supernatantTitle=t.string();break}case 3:{o.params=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.TimelineMoreCard)return t;let i=new u.bilibili.app.nativeact.v1.TimelineMoreCard;return t.buttonText!=null&&(i.buttonText=String(t.buttonText)),t.supernatantTitle!=null&&(i.supernatantTitle=String(t.supernatantTitle)),t.params!=null&&(i.params=String(t.params)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.buttonText="",n.supernatantTitle="",n.params=""),t.buttonText!=null&&t.hasOwnProperty("buttonText")&&(n.buttonText=t.buttonText),t.supernatantTitle!=null&&t.hasOwnProperty("supernatantTitle")&&(n.supernatantTitle=t.supernatantTitle),t.params!=null&&t.hasOwnProperty("params")&&(n.params=t.params),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.TimelineMoreCard"},e}(),c.TimelineUnfoldCard=function(){function e(l){if(this.cards=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.unfoldText=t.string();break}case 2:{o.foldText=t.string();break}case 3:{o.cards&&o.cards.length||(o.cards=[]),o.cards.push(u.bilibili.app.nativeact.v1.TimelineUnfoldCard.Card.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.TimelineUnfoldCard)return t;let i=new u.bilibili.app.nativeact.v1.TimelineUnfoldCard;if(t.unfoldText!=null&&(i.unfoldText=String(t.unfoldText)),t.foldText!=null&&(i.foldText=String(t.foldText)),t.cards){if(!Array.isArray(t.cards))throw TypeError(".bilibili.app.nativeact.v1.TimelineUnfoldCard.cards: array expected");i.cards=[];for(let n=0;n>>3){case 1:{y.timelineHeadCard=u.bilibili.app.nativeact.v1.TimelineHeadCard.decode(n,n.uint32());break}case 2:{y.timelineEventTextCard=u.bilibili.app.nativeact.v1.TimelineEventTextCard.decode(n,n.uint32());break}case 3:{y.timelineEventImageCard=u.bilibili.app.nativeact.v1.TimelineEventImageCard.decode(n,n.uint32());break}case 4:{y.timelineEventImagetextCard=u.bilibili.app.nativeact.v1.TimelineEventImagetextCard.decode(n,n.uint32());break}case 5:{y.timelineEventResourceCard=u.bilibili.app.nativeact.v1.TimelineEventResourceCard.decode(n,n.uint32());break}default:n.skipType(s&7);break}}return y},l.fromObject=function(n){if(n instanceof u.bilibili.app.nativeact.v1.TimelineUnfoldCard.Card)return n;let o=new u.bilibili.app.nativeact.v1.TimelineUnfoldCard.Card;if(n.timelineHeadCard!=null){if(typeof n.timelineHeadCard!="object")throw TypeError(".bilibili.app.nativeact.v1.TimelineUnfoldCard.Card.timelineHeadCard: object expected");o.timelineHeadCard=u.bilibili.app.nativeact.v1.TimelineHeadCard.fromObject(n.timelineHeadCard)}if(n.timelineEventTextCard!=null){if(typeof n.timelineEventTextCard!="object")throw TypeError(".bilibili.app.nativeact.v1.TimelineUnfoldCard.Card.timelineEventTextCard: object expected");o.timelineEventTextCard=u.bilibili.app.nativeact.v1.TimelineEventTextCard.fromObject(n.timelineEventTextCard)}if(n.timelineEventImageCard!=null){if(typeof n.timelineEventImageCard!="object")throw TypeError(".bilibili.app.nativeact.v1.TimelineUnfoldCard.Card.timelineEventImageCard: object expected");o.timelineEventImageCard=u.bilibili.app.nativeact.v1.TimelineEventImageCard.fromObject(n.timelineEventImageCard)}if(n.timelineEventImagetextCard!=null){if(typeof n.timelineEventImagetextCard!="object")throw TypeError(".bilibili.app.nativeact.v1.TimelineUnfoldCard.Card.timelineEventImagetextCard: object expected");o.timelineEventImagetextCard=u.bilibili.app.nativeact.v1.TimelineEventImagetextCard.fromObject(n.timelineEventImagetextCard)}if(n.timelineEventResourceCard!=null){if(typeof n.timelineEventResourceCard!="object")throw TypeError(".bilibili.app.nativeact.v1.TimelineUnfoldCard.Card.timelineEventResourceCard: object expected");o.timelineEventResourceCard=u.bilibili.app.nativeact.v1.TimelineEventResourceCard.fromObject(n.timelineEventResourceCard)}return o},l.toObject=function(n,o){o||(o={});let a={};return n.timelineHeadCard!=null&&n.hasOwnProperty("timelineHeadCard")&&(a.timelineHeadCard=u.bilibili.app.nativeact.v1.TimelineHeadCard.toObject(n.timelineHeadCard,o),o.oneofs&&(a.cardDetail="timelineHeadCard")),n.timelineEventTextCard!=null&&n.hasOwnProperty("timelineEventTextCard")&&(a.timelineEventTextCard=u.bilibili.app.nativeact.v1.TimelineEventTextCard.toObject(n.timelineEventTextCard,o),o.oneofs&&(a.cardDetail="timelineEventTextCard")),n.timelineEventImageCard!=null&&n.hasOwnProperty("timelineEventImageCard")&&(a.timelineEventImageCard=u.bilibili.app.nativeact.v1.TimelineEventImageCard.toObject(n.timelineEventImageCard,o),o.oneofs&&(a.cardDetail="timelineEventImageCard")),n.timelineEventImagetextCard!=null&&n.hasOwnProperty("timelineEventImagetextCard")&&(a.timelineEventImagetextCard=u.bilibili.app.nativeact.v1.TimelineEventImagetextCard.toObject(n.timelineEventImagetextCard,o),o.oneofs&&(a.cardDetail="timelineEventImagetextCard")),n.timelineEventResourceCard!=null&&n.hasOwnProperty("timelineEventResourceCard")&&(a.timelineEventResourceCard=u.bilibili.app.nativeact.v1.TimelineEventResourceCard.toObject(n.timelineEventResourceCard,o),o.oneofs&&(a.cardDetail="timelineEventResourceCard")),a},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/bilibili.app.nativeact.v1.TimelineUnfoldCard.Card"},l}(),e}(),c.TimelineSupernatantReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.rawParams=t.string();break}case 2:{o.params=u.bilibili.app.nativeact.v1.TimelineSupernatantParams.decode(t,t.uint32());break}case 3:{o.primaryPageId=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.TimelineSupernatantReq)return t;let i=new u.bilibili.app.nativeact.v1.TimelineSupernatantReq;if(t.rawParams!=null&&(i.rawParams=String(t.rawParams)),t.params!=null){if(typeof t.params!="object")throw TypeError(".bilibili.app.nativeact.v1.TimelineSupernatantReq.params: object expected");i.params=u.bilibili.app.nativeact.v1.TimelineSupernatantParams.fromObject(t.params)}return t.primaryPageId!=null&&(r.Long?(i.primaryPageId=r.Long.fromValue(t.primaryPageId)).unsigned=!1:typeof t.primaryPageId=="string"?i.primaryPageId=parseInt(t.primaryPageId,10):typeof t.primaryPageId=="number"?i.primaryPageId=t.primaryPageId:typeof t.primaryPageId=="object"&&(i.primaryPageId=new r.LongBits(t.primaryPageId.low>>>0,t.primaryPageId.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(n.rawParams="",n.params=null,r.Long){let o=new r.Long(0,0,!1);n.primaryPageId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.primaryPageId=i.longs===String?"0":0;return t.rawParams!=null&&t.hasOwnProperty("rawParams")&&(n.rawParams=t.rawParams),t.params!=null&&t.hasOwnProperty("params")&&(n.params=u.bilibili.app.nativeact.v1.TimelineSupernatantParams.toObject(t.params,i)),t.primaryPageId!=null&&t.hasOwnProperty("primaryPageId")&&(typeof t.primaryPageId=="number"?n.primaryPageId=i.longs===String?String(t.primaryPageId):t.primaryPageId:n.primaryPageId=i.longs===String?r.Long.prototype.toString.call(t.primaryPageId):i.longs===Number?new r.LongBits(t.primaryPageId.low>>>0,t.primaryPageId.high>>>0).toNumber():t.primaryPageId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.TimelineSupernatantReq"},e}(),c.TimelineSupernatantParams=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.lastIndex=t.int64();break}case 2:{o.offset=t.int64();break}case 3:{o.moduleId=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.TimelineSupernatantParams)return t;let i=new u.bilibili.app.nativeact.v1.TimelineSupernatantParams;return t.lastIndex!=null&&(r.Long?(i.lastIndex=r.Long.fromValue(t.lastIndex)).unsigned=!1:typeof t.lastIndex=="string"?i.lastIndex=parseInt(t.lastIndex,10):typeof t.lastIndex=="number"?i.lastIndex=t.lastIndex:typeof t.lastIndex=="object"&&(i.lastIndex=new r.LongBits(t.lastIndex.low>>>0,t.lastIndex.high>>>0).toNumber())),t.offset!=null&&(r.Long?(i.offset=r.Long.fromValue(t.offset)).unsigned=!1:typeof t.offset=="string"?i.offset=parseInt(t.offset,10):typeof t.offset=="number"?i.offset=t.offset:typeof t.offset=="object"&&(i.offset=new r.LongBits(t.offset.low>>>0,t.offset.high>>>0).toNumber())),t.moduleId!=null&&(r.Long?(i.moduleId=r.Long.fromValue(t.moduleId)).unsigned=!1:typeof t.moduleId=="string"?i.moduleId=parseInt(t.moduleId,10):typeof t.moduleId=="number"?i.moduleId=t.moduleId:typeof t.moduleId=="object"&&(i.moduleId=new r.LongBits(t.moduleId.low>>>0,t.moduleId.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.lastIndex=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.lastIndex=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.offset=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.offset=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.moduleId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.moduleId=i.longs===String?"0":0}return t.lastIndex!=null&&t.hasOwnProperty("lastIndex")&&(typeof t.lastIndex=="number"?n.lastIndex=i.longs===String?String(t.lastIndex):t.lastIndex:n.lastIndex=i.longs===String?r.Long.prototype.toString.call(t.lastIndex):i.longs===Number?new r.LongBits(t.lastIndex.low>>>0,t.lastIndex.high>>>0).toNumber():t.lastIndex),t.offset!=null&&t.hasOwnProperty("offset")&&(typeof t.offset=="number"?n.offset=i.longs===String?String(t.offset):t.offset:n.offset=i.longs===String?r.Long.prototype.toString.call(t.offset):i.longs===Number?new r.LongBits(t.offset.low>>>0,t.offset.high>>>0).toNumber():t.offset),t.moduleId!=null&&t.hasOwnProperty("moduleId")&&(typeof t.moduleId=="number"?n.moduleId=i.longs===String?String(t.moduleId):t.moduleId:n.moduleId=i.longs===String?r.Long.prototype.toString.call(t.moduleId):i.longs===Number?new r.LongBits(t.moduleId.low>>>0,t.moduleId.high>>>0).toNumber():t.moduleId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.TimelineSupernatantParams"},e}(),c.TimelineSupernatantResp=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.module=u.bilibili.app.nativeact.v1.Module.decode(t,t.uint32());break}case 2:{o.lastIndex=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.TimelineSupernatantResp)return t;let i=new u.bilibili.app.nativeact.v1.TimelineSupernatantResp;if(t.module!=null){if(typeof t.module!="object")throw TypeError(".bilibili.app.nativeact.v1.TimelineSupernatantResp.module: object expected");i.module=u.bilibili.app.nativeact.v1.Module.fromObject(t.module)}return t.lastIndex!=null&&(r.Long?(i.lastIndex=r.Long.fromValue(t.lastIndex)).unsigned=!1:typeof t.lastIndex=="string"?i.lastIndex=parseInt(t.lastIndex,10):typeof t.lastIndex=="number"?i.lastIndex=t.lastIndex:typeof t.lastIndex=="object"&&(i.lastIndex=new r.LongBits(t.lastIndex.low>>>0,t.lastIndex.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(n.module=null,r.Long){let o=new r.Long(0,0,!1);n.lastIndex=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.lastIndex=i.longs===String?"0":0;return t.module!=null&&t.hasOwnProperty("module")&&(n.module=u.bilibili.app.nativeact.v1.Module.toObject(t.module,i)),t.lastIndex!=null&&t.hasOwnProperty("lastIndex")&&(typeof t.lastIndex=="number"?n.lastIndex=i.longs===String?String(t.lastIndex):t.lastIndex:n.lastIndex=i.longs===String?r.Long.prototype.toString.call(t.lastIndex):i.longs===Number?new r.LongBits(t.lastIndex.low>>>0,t.lastIndex.high>>>0).toNumber():t.lastIndex),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.TimelineSupernatantResp"},e}(),c.OgvOneCard=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.position1=t.string();break}case 2:{o.position2=t.string();break}case 3:{o.position3=t.string();break}case 4:{o.coverRightText1=t.string();break}case 5:{o.coverRightText2=t.string();break}case 6:{o.rcmdContent=t.string();break}case 7:{o.rcmdIcon=t.string();break}case 8:{o.followButton=u.bilibili.app.nativeact.v1.OgvFollowButton.decode(t,t.uint32());break}case 13:{o.image=t.string();break}case 14:{o.badge=u.bilibili.app.nativeact.v1.Badge.decode(t,t.uint32());break}case 15:{o.title=t.string();break}case 16:{o.reportDic=u.bilibili.app.nativeact.v1.ReportDic.decode(t,t.uint32());break}case 17:{o.url=t.string();break}case 18:{o.resourceType=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.OgvOneCard)return t;let i=new u.bilibili.app.nativeact.v1.OgvOneCard;if(t.position1!=null&&(i.position1=String(t.position1)),t.position2!=null&&(i.position2=String(t.position2)),t.position3!=null&&(i.position3=String(t.position3)),t.coverRightText1!=null&&(i.coverRightText1=String(t.coverRightText1)),t.coverRightText2!=null&&(i.coverRightText2=String(t.coverRightText2)),t.rcmdContent!=null&&(i.rcmdContent=String(t.rcmdContent)),t.rcmdIcon!=null&&(i.rcmdIcon=String(t.rcmdIcon)),t.followButton!=null){if(typeof t.followButton!="object")throw TypeError(".bilibili.app.nativeact.v1.OgvOneCard.followButton: object expected");i.followButton=u.bilibili.app.nativeact.v1.OgvFollowButton.fromObject(t.followButton)}if(t.image!=null&&(i.image=String(t.image)),t.badge!=null){if(typeof t.badge!="object")throw TypeError(".bilibili.app.nativeact.v1.OgvOneCard.badge: object expected");i.badge=u.bilibili.app.nativeact.v1.Badge.fromObject(t.badge)}if(t.title!=null&&(i.title=String(t.title)),t.reportDic!=null){if(typeof t.reportDic!="object")throw TypeError(".bilibili.app.nativeact.v1.OgvOneCard.reportDic: object expected");i.reportDic=u.bilibili.app.nativeact.v1.ReportDic.fromObject(t.reportDic)}return t.url!=null&&(i.url=String(t.url)),t.resourceType!=null&&(i.resourceType=String(t.resourceType)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.position1="",n.position2="",n.position3="",n.coverRightText1="",n.coverRightText2="",n.rcmdContent="",n.rcmdIcon="",n.followButton=null,n.image="",n.badge=null,n.title="",n.reportDic=null,n.url="",n.resourceType=""),t.position1!=null&&t.hasOwnProperty("position1")&&(n.position1=t.position1),t.position2!=null&&t.hasOwnProperty("position2")&&(n.position2=t.position2),t.position3!=null&&t.hasOwnProperty("position3")&&(n.position3=t.position3),t.coverRightText1!=null&&t.hasOwnProperty("coverRightText1")&&(n.coverRightText1=t.coverRightText1),t.coverRightText2!=null&&t.hasOwnProperty("coverRightText2")&&(n.coverRightText2=t.coverRightText2),t.rcmdContent!=null&&t.hasOwnProperty("rcmdContent")&&(n.rcmdContent=t.rcmdContent),t.rcmdIcon!=null&&t.hasOwnProperty("rcmdIcon")&&(n.rcmdIcon=t.rcmdIcon),t.followButton!=null&&t.hasOwnProperty("followButton")&&(n.followButton=u.bilibili.app.nativeact.v1.OgvFollowButton.toObject(t.followButton,i)),t.image!=null&&t.hasOwnProperty("image")&&(n.image=t.image),t.badge!=null&&t.hasOwnProperty("badge")&&(n.badge=u.bilibili.app.nativeact.v1.Badge.toObject(t.badge,i)),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.reportDic!=null&&t.hasOwnProperty("reportDic")&&(n.reportDic=u.bilibili.app.nativeact.v1.ReportDic.toObject(t.reportDic,i)),t.url!=null&&t.hasOwnProperty("url")&&(n.url=t.url),t.resourceType!=null&&t.hasOwnProperty("resourceType")&&(n.resourceType=t.resourceType),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.OgvOneCard"},e}(),c.OgvThreeCard=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.coverLeftText1=t.string();break}case 2:{o.subtitle=t.string();break}case 3:{o.followButton=u.bilibili.app.nativeact.v1.OgvFollowButton.decode(t,t.uint32());break}case 4:{o.image=t.string();break}case 5:{o.badge=u.bilibili.app.nativeact.v1.Badge.decode(t,t.uint32());break}case 6:{o.title=t.string();break}case 7:{o.reportDic=u.bilibili.app.nativeact.v1.ReportDic.decode(t,t.uint32());break}case 8:{o.url=t.string();break}case 9:{o.resourceType=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.OgvThreeCard)return t;let i=new u.bilibili.app.nativeact.v1.OgvThreeCard;if(t.coverLeftText1!=null&&(i.coverLeftText1=String(t.coverLeftText1)),t.subtitle!=null&&(i.subtitle=String(t.subtitle)),t.followButton!=null){if(typeof t.followButton!="object")throw TypeError(".bilibili.app.nativeact.v1.OgvThreeCard.followButton: object expected");i.followButton=u.bilibili.app.nativeact.v1.OgvFollowButton.fromObject(t.followButton)}if(t.image!=null&&(i.image=String(t.image)),t.badge!=null){if(typeof t.badge!="object")throw TypeError(".bilibili.app.nativeact.v1.OgvThreeCard.badge: object expected");i.badge=u.bilibili.app.nativeact.v1.Badge.fromObject(t.badge)}if(t.title!=null&&(i.title=String(t.title)),t.reportDic!=null){if(typeof t.reportDic!="object")throw TypeError(".bilibili.app.nativeact.v1.OgvThreeCard.reportDic: object expected");i.reportDic=u.bilibili.app.nativeact.v1.ReportDic.fromObject(t.reportDic)}return t.url!=null&&(i.url=String(t.url)),t.resourceType!=null&&(i.resourceType=String(t.resourceType)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.coverLeftText1="",n.subtitle="",n.followButton=null,n.image="",n.badge=null,n.title="",n.reportDic=null,n.url="",n.resourceType=""),t.coverLeftText1!=null&&t.hasOwnProperty("coverLeftText1")&&(n.coverLeftText1=t.coverLeftText1),t.subtitle!=null&&t.hasOwnProperty("subtitle")&&(n.subtitle=t.subtitle),t.followButton!=null&&t.hasOwnProperty("followButton")&&(n.followButton=u.bilibili.app.nativeact.v1.OgvFollowButton.toObject(t.followButton,i)),t.image!=null&&t.hasOwnProperty("image")&&(n.image=t.image),t.badge!=null&&t.hasOwnProperty("badge")&&(n.badge=u.bilibili.app.nativeact.v1.Badge.toObject(t.badge,i)),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.reportDic!=null&&t.hasOwnProperty("reportDic")&&(n.reportDic=u.bilibili.app.nativeact.v1.ReportDic.toObject(t.reportDic,i)),t.url!=null&&t.hasOwnProperty("url")&&(n.url=t.url),t.resourceType!=null&&t.hasOwnProperty("resourceType")&&(n.resourceType=t.resourceType),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.OgvThreeCard"},e}(),c.OgvFollowButton=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.isFollowed=t.bool();break}case 2:{o.followText=t.string();break}case 3:{o.followIcon=t.string();break}case 4:{o.unfollowText=t.string();break}case 5:{o.unfollowIcon=t.string();break}case 6:{o.followParams=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.OgvFollowButton)return t;let i=new u.bilibili.app.nativeact.v1.OgvFollowButton;return t.isFollowed!=null&&(i.isFollowed=!!t.isFollowed),t.followText!=null&&(i.followText=String(t.followText)),t.followIcon!=null&&(i.followIcon=String(t.followIcon)),t.unfollowText!=null&&(i.unfollowText=String(t.unfollowText)),t.unfollowIcon!=null&&(i.unfollowIcon=String(t.unfollowIcon)),t.followParams!=null&&(i.followParams=String(t.followParams)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.isFollowed=!1,n.followText="",n.followIcon="",n.unfollowText="",n.unfollowIcon="",n.followParams=""),t.isFollowed!=null&&t.hasOwnProperty("isFollowed")&&(n.isFollowed=t.isFollowed),t.followText!=null&&t.hasOwnProperty("followText")&&(n.followText=t.followText),t.followIcon!=null&&t.hasOwnProperty("followIcon")&&(n.followIcon=t.followIcon),t.unfollowText!=null&&t.hasOwnProperty("unfollowText")&&(n.unfollowText=t.unfollowText),t.unfollowIcon!=null&&t.hasOwnProperty("unfollowIcon")&&(n.unfollowIcon=t.unfollowIcon),t.followParams!=null&&t.hasOwnProperty("followParams")&&(n.followParams=t.followParams),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.OgvFollowButton"},e}(),c.OgvMoreCard=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.buttonText=t.string();break}case 2:{o.supernatantTitle=t.string();break}case 3:{o.params=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.OgvMoreCard)return t;let i=new u.bilibili.app.nativeact.v1.OgvMoreCard;return t.buttonText!=null&&(i.buttonText=String(t.buttonText)),t.supernatantTitle!=null&&(i.supernatantTitle=String(t.supernatantTitle)),t.params!=null&&(i.params=String(t.params)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.buttonText="",n.supernatantTitle="",n.params=""),t.buttonText!=null&&t.hasOwnProperty("buttonText")&&(n.buttonText=t.buttonText),t.supernatantTitle!=null&&t.hasOwnProperty("supernatantTitle")&&(n.supernatantTitle=t.supernatantTitle),t.params!=null&&t.hasOwnProperty("params")&&(n.params=t.params),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.OgvMoreCard"},e}(),c.OgvSupernatantReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.rawParams=t.string();break}case 2:{o.params=u.bilibili.app.nativeact.v1.OgvSupernatantParams.decode(t,t.uint32());break}case 3:{o.primaryPageId=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.OgvSupernatantReq)return t;let i=new u.bilibili.app.nativeact.v1.OgvSupernatantReq;if(t.rawParams!=null&&(i.rawParams=String(t.rawParams)),t.params!=null){if(typeof t.params!="object")throw TypeError(".bilibili.app.nativeact.v1.OgvSupernatantReq.params: object expected");i.params=u.bilibili.app.nativeact.v1.OgvSupernatantParams.fromObject(t.params)}return t.primaryPageId!=null&&(r.Long?(i.primaryPageId=r.Long.fromValue(t.primaryPageId)).unsigned=!1:typeof t.primaryPageId=="string"?i.primaryPageId=parseInt(t.primaryPageId,10):typeof t.primaryPageId=="number"?i.primaryPageId=t.primaryPageId:typeof t.primaryPageId=="object"&&(i.primaryPageId=new r.LongBits(t.primaryPageId.low>>>0,t.primaryPageId.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(n.rawParams="",n.params=null,r.Long){let o=new r.Long(0,0,!1);n.primaryPageId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.primaryPageId=i.longs===String?"0":0;return t.rawParams!=null&&t.hasOwnProperty("rawParams")&&(n.rawParams=t.rawParams),t.params!=null&&t.hasOwnProperty("params")&&(n.params=u.bilibili.app.nativeact.v1.OgvSupernatantParams.toObject(t.params,i)),t.primaryPageId!=null&&t.hasOwnProperty("primaryPageId")&&(typeof t.primaryPageId=="number"?n.primaryPageId=i.longs===String?String(t.primaryPageId):t.primaryPageId:n.primaryPageId=i.longs===String?r.Long.prototype.toString.call(t.primaryPageId):i.longs===Number?new r.LongBits(t.primaryPageId.low>>>0,t.primaryPageId.high>>>0).toNumber():t.primaryPageId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.OgvSupernatantReq"},e}(),c.OgvSupernatantParams=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.lastIndex=t.int64();break}case 2:{o.offset=t.int64();break}case 3:{o.moduleId=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.OgvSupernatantParams)return t;let i=new u.bilibili.app.nativeact.v1.OgvSupernatantParams;return t.lastIndex!=null&&(r.Long?(i.lastIndex=r.Long.fromValue(t.lastIndex)).unsigned=!1:typeof t.lastIndex=="string"?i.lastIndex=parseInt(t.lastIndex,10):typeof t.lastIndex=="number"?i.lastIndex=t.lastIndex:typeof t.lastIndex=="object"&&(i.lastIndex=new r.LongBits(t.lastIndex.low>>>0,t.lastIndex.high>>>0).toNumber())),t.offset!=null&&(r.Long?(i.offset=r.Long.fromValue(t.offset)).unsigned=!1:typeof t.offset=="string"?i.offset=parseInt(t.offset,10):typeof t.offset=="number"?i.offset=t.offset:typeof t.offset=="object"&&(i.offset=new r.LongBits(t.offset.low>>>0,t.offset.high>>>0).toNumber())),t.moduleId!=null&&(r.Long?(i.moduleId=r.Long.fromValue(t.moduleId)).unsigned=!1:typeof t.moduleId=="string"?i.moduleId=parseInt(t.moduleId,10):typeof t.moduleId=="number"?i.moduleId=t.moduleId:typeof t.moduleId=="object"&&(i.moduleId=new r.LongBits(t.moduleId.low>>>0,t.moduleId.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.lastIndex=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.lastIndex=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.offset=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.offset=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.moduleId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.moduleId=i.longs===String?"0":0}return t.lastIndex!=null&&t.hasOwnProperty("lastIndex")&&(typeof t.lastIndex=="number"?n.lastIndex=i.longs===String?String(t.lastIndex):t.lastIndex:n.lastIndex=i.longs===String?r.Long.prototype.toString.call(t.lastIndex):i.longs===Number?new r.LongBits(t.lastIndex.low>>>0,t.lastIndex.high>>>0).toNumber():t.lastIndex),t.offset!=null&&t.hasOwnProperty("offset")&&(typeof t.offset=="number"?n.offset=i.longs===String?String(t.offset):t.offset:n.offset=i.longs===String?r.Long.prototype.toString.call(t.offset):i.longs===Number?new r.LongBits(t.offset.low>>>0,t.offset.high>>>0).toNumber():t.offset),t.moduleId!=null&&t.hasOwnProperty("moduleId")&&(typeof t.moduleId=="number"?n.moduleId=i.longs===String?String(t.moduleId):t.moduleId:n.moduleId=i.longs===String?r.Long.prototype.toString.call(t.moduleId):i.longs===Number?new r.LongBits(t.moduleId.low>>>0,t.moduleId.high>>>0).toNumber():t.moduleId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.OgvSupernatantParams"},e}(),c.OgvSupernatantResp=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.module=u.bilibili.app.nativeact.v1.Module.decode(t,t.uint32());break}case 2:{o.lastIndex=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.OgvSupernatantResp)return t;let i=new u.bilibili.app.nativeact.v1.OgvSupernatantResp;if(t.module!=null){if(typeof t.module!="object")throw TypeError(".bilibili.app.nativeact.v1.OgvSupernatantResp.module: object expected");i.module=u.bilibili.app.nativeact.v1.Module.fromObject(t.module)}return t.lastIndex!=null&&(r.Long?(i.lastIndex=r.Long.fromValue(t.lastIndex)).unsigned=!1:typeof t.lastIndex=="string"?i.lastIndex=parseInt(t.lastIndex,10):typeof t.lastIndex=="number"?i.lastIndex=t.lastIndex:typeof t.lastIndex=="object"&&(i.lastIndex=new r.LongBits(t.lastIndex.low>>>0,t.lastIndex.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(n.module=null,r.Long){let o=new r.Long(0,0,!1);n.lastIndex=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.lastIndex=i.longs===String?"0":0;return t.module!=null&&t.hasOwnProperty("module")&&(n.module=u.bilibili.app.nativeact.v1.Module.toObject(t.module,i)),t.lastIndex!=null&&t.hasOwnProperty("lastIndex")&&(typeof t.lastIndex=="number"?n.lastIndex=i.longs===String?String(t.lastIndex):t.lastIndex:n.lastIndex=i.longs===String?r.Long.prototype.toString.call(t.lastIndex):i.longs===Number?new r.LongBits(t.lastIndex.low>>>0,t.lastIndex.high>>>0).toNumber():t.lastIndex),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.OgvSupernatantResp"},e}(),c.FollowOgvReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.rawParams=t.string();break}case 2:{o.params=u.bilibili.app.nativeact.v1.FollowOgvParams.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.FollowOgvReq)return t;let i=new u.bilibili.app.nativeact.v1.FollowOgvReq;if(t.rawParams!=null&&(i.rawParams=String(t.rawParams)),t.params!=null){if(typeof t.params!="object")throw TypeError(".bilibili.app.nativeact.v1.FollowOgvReq.params: object expected");i.params=u.bilibili.app.nativeact.v1.FollowOgvParams.fromObject(t.params)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.rawParams="",n.params=null),t.rawParams!=null&&t.hasOwnProperty("rawParams")&&(n.rawParams=t.rawParams),t.params!=null&&t.hasOwnProperty("params")&&(n.params=u.bilibili.app.nativeact.v1.FollowOgvParams.toObject(t.params,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.FollowOgvReq"},e}(),c.FollowOgvParams=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.action=t.int32();break}case 2:{o.seasonId=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.FollowOgvParams)return t;let i=new u.bilibili.app.nativeact.v1.FollowOgvParams;switch(t.action){default:if(typeof t.action=="number"){i.action=t.action;break}break;case"Default":case 0:i.action=0;break;case"Do":case 1:i.action=1;break;case"Undo":case 2:i.action=2;break}return t.seasonId!=null&&(i.seasonId=t.seasonId|0),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.action=i.enums===String?"Default":0,n.seasonId=0),t.action!=null&&t.hasOwnProperty("action")&&(n.action=i.enums===String?u.bilibili.app.nativeact.v1.ActionType[t.action]===void 0?t.action:u.bilibili.app.nativeact.v1.ActionType[t.action]:t.action),t.seasonId!=null&&t.hasOwnProperty("seasonId")&&(n.seasonId=t.seasonId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.FollowOgvParams"},e}(),c.FollowOgvRly=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.followParams=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.FollowOgvRly)return t;let i=new u.bilibili.app.nativeact.v1.FollowOgvRly;return t.followParams!=null&&(i.followParams=String(t.followParams)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.followParams=""),t.followParams!=null&&t.hasOwnProperty("followParams")&&(n.followParams=t.followParams),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.FollowOgvRly"},e}(),c.NavigationCard=function(){function e(l){if(this.items=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.items&&o.items.length||(o.items=[]),o.items.push(u.bilibili.app.nativeact.v1.NavigationItem.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.NavigationCard)return t;let i=new u.bilibili.app.nativeact.v1.NavigationCard;if(t.items){if(!Array.isArray(t.items))throw TypeError(".bilibili.app.nativeact.v1.NavigationCard.items: array expected");i.items=[];for(let n=0;n>>3){case 1:{o.moduleId=t.int64();break}case 2:{o.title=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.NavigationItem)return t;let i=new u.bilibili.app.nativeact.v1.NavigationItem;return t.moduleId!=null&&(r.Long?(i.moduleId=r.Long.fromValue(t.moduleId)).unsigned=!1:typeof t.moduleId=="string"?i.moduleId=parseInt(t.moduleId,10):typeof t.moduleId=="number"?i.moduleId=t.moduleId:typeof t.moduleId=="object"&&(i.moduleId=new r.LongBits(t.moduleId.low>>>0,t.moduleId.high>>>0).toNumber())),t.title!=null&&(i.title=String(t.title)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.moduleId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.moduleId=i.longs===String?"0":0;n.title=""}return t.moduleId!=null&&t.hasOwnProperty("moduleId")&&(typeof t.moduleId=="number"?n.moduleId=i.longs===String?String(t.moduleId):t.moduleId:n.moduleId=i.longs===String?r.Long.prototype.toString.call(t.moduleId):i.longs===Number?new r.LongBits(t.moduleId.low>>>0,t.moduleId.high>>>0).toNumber():t.moduleId),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.NavigationItem"},e}(),c.ReplyCard=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.replyId=t.int64();break}case 2:{o.type=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.ReplyCard)return t;let i=new u.bilibili.app.nativeact.v1.ReplyCard;return t.replyId!=null&&(r.Long?(i.replyId=r.Long.fromValue(t.replyId)).unsigned=!1:typeof t.replyId=="string"?i.replyId=parseInt(t.replyId,10):typeof t.replyId=="number"?i.replyId=t.replyId:typeof t.replyId=="object"&&(i.replyId=new r.LongBits(t.replyId.low>>>0,t.replyId.high>>>0).toNumber())),t.type!=null&&(r.Long?(i.type=r.Long.fromValue(t.type)).unsigned=!1:typeof t.type=="string"?i.type=parseInt(t.type,10):typeof t.type=="number"?i.type=t.type:typeof t.type=="object"&&(i.type=new r.LongBits(t.type.low>>>0,t.type.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.replyId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.replyId=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.type=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.type=i.longs===String?"0":0}return t.replyId!=null&&t.hasOwnProperty("replyId")&&(typeof t.replyId=="number"?n.replyId=i.longs===String?String(t.replyId):t.replyId:n.replyId=i.longs===String?r.Long.prototype.toString.call(t.replyId):i.longs===Number?new r.LongBits(t.replyId.low>>>0,t.replyId.high>>>0).toNumber():t.replyId),t.type!=null&&t.hasOwnProperty("type")&&(typeof t.type=="number"?n.type=i.longs===String?String(t.type):t.type:n.type=i.longs===String?r.Long.prototype.toString.call(t.type):i.longs===Number?new r.LongBits(t.type.low>>>0,t.type.high>>>0).toNumber():t.type),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.ReplyCard"},e}(),c.TabStyle=function(){let e={},l=Object.create(e);return l[e[0]="TabStyleDefault"]=0,l[e[1]="TabStyleColor"]=1,l[e[2]="TabStyleImage"]=2,l}(),c.SelectCard=function(){function e(l){if(this.items=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.currentTab=t.int64();break}case 2:{o.items&&o.items.length||(o.items=[]),o.items.push(u.bilibili.app.nativeact.v1.SelectItem.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.SelectCard)return t;let i=new u.bilibili.app.nativeact.v1.SelectCard;if(t.currentTab!=null&&(r.Long?(i.currentTab=r.Long.fromValue(t.currentTab)).unsigned=!1:typeof t.currentTab=="string"?i.currentTab=parseInt(t.currentTab,10):typeof t.currentTab=="number"?i.currentTab=t.currentTab:typeof t.currentTab=="object"&&(i.currentTab=new r.LongBits(t.currentTab.low>>>0,t.currentTab.high>>>0).toNumber())),t.items){if(!Array.isArray(t.items))throw TypeError(".bilibili.app.nativeact.v1.SelectCard.items: array expected");i.items=[];for(let n=0;n>>0,t.currentTab.high>>>0).toNumber():t.currentTab),t.items&&t.items.length){n.items=[];for(let o=0;o>>3){case 1:{o.currentTab=t.int64();break}case 2:{o.style=t.int32();break}case 3:{o.items&&o.items.length||(o.items=[]),o.items.push(u.bilibili.app.nativeact.v1.TabItem.decode(t,t.uint32()));break}case 4:{o.bgImage=u.bilibili.app.nativeact.v1.SizeImage.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.TabCard)return t;let i=new u.bilibili.app.nativeact.v1.TabCard;switch(t.currentTab!=null&&(r.Long?(i.currentTab=r.Long.fromValue(t.currentTab)).unsigned=!1:typeof t.currentTab=="string"?i.currentTab=parseInt(t.currentTab,10):typeof t.currentTab=="number"?i.currentTab=t.currentTab:typeof t.currentTab=="object"&&(i.currentTab=new r.LongBits(t.currentTab.low>>>0,t.currentTab.high>>>0).toNumber())),t.style){default:if(typeof t.style=="number"){i.style=t.style;break}break;case"TabStyleDefault":case 0:i.style=0;break;case"TabStyleColor":case 1:i.style=1;break;case"TabStyleImage":case 2:i.style=2;break}if(t.items){if(!Array.isArray(t.items))throw TypeError(".bilibili.app.nativeact.v1.TabCard.items: array expected");i.items=[];for(let n=0;n>>0,t.currentTab.high>>>0).toNumber():t.currentTab),t.style!=null&&t.hasOwnProperty("style")&&(n.style=i.enums===String?u.bilibili.app.nativeact.v1.TabStyle[t.style]===void 0?t.style:u.bilibili.app.nativeact.v1.TabStyle[t.style]:t.style),t.items&&t.items.length){n.items=[];for(let o=0;o>>3){case 1:{o.pageId=t.int64();break}case 2:{o.title=t.string();break}case 3:{o.pageShare=u.bilibili.app.nativeact.v1.PageShare.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.SelectItem)return t;let i=new u.bilibili.app.nativeact.v1.SelectItem;if(t.pageId!=null&&(r.Long?(i.pageId=r.Long.fromValue(t.pageId)).unsigned=!1:typeof t.pageId=="string"?i.pageId=parseInt(t.pageId,10):typeof t.pageId=="number"?i.pageId=t.pageId:typeof t.pageId=="object"&&(i.pageId=new r.LongBits(t.pageId.low>>>0,t.pageId.high>>>0).toNumber())),t.title!=null&&(i.title=String(t.title)),t.pageShare!=null){if(typeof t.pageShare!="object")throw TypeError(".bilibili.app.nativeact.v1.SelectItem.pageShare: object expected");i.pageShare=u.bilibili.app.nativeact.v1.PageShare.fromObject(t.pageShare)}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.pageId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.pageId=i.longs===String?"0":0;n.title="",n.pageShare=null}return t.pageId!=null&&t.hasOwnProperty("pageId")&&(typeof t.pageId=="number"?n.pageId=i.longs===String?String(t.pageId):t.pageId:n.pageId=i.longs===String?r.Long.prototype.toString.call(t.pageId):i.longs===Number?new r.LongBits(t.pageId.low>>>0,t.pageId.high>>>0).toNumber():t.pageId),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.pageShare!=null&&t.hasOwnProperty("pageShare")&&(n.pageShare=u.bilibili.app.nativeact.v1.PageShare.toObject(t.pageShare,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.SelectItem"},e}(),c.TabItem=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.pageId=t.int64();break}case 2:{o.title=t.string();break}case 3:{o.disableClick=t.bool();break}case 4:{o.disableClickToast=t.string();break}case 5:{o.selectedImage=u.bilibili.app.nativeact.v1.SizeImage.decode(t,t.uint32());break}case 6:{o.unselectedImage=u.bilibili.app.nativeact.v1.SizeImage.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.TabItem)return t;let i=new u.bilibili.app.nativeact.v1.TabItem;if(t.pageId!=null&&(r.Long?(i.pageId=r.Long.fromValue(t.pageId)).unsigned=!1:typeof t.pageId=="string"?i.pageId=parseInt(t.pageId,10):typeof t.pageId=="number"?i.pageId=t.pageId:typeof t.pageId=="object"&&(i.pageId=new r.LongBits(t.pageId.low>>>0,t.pageId.high>>>0).toNumber())),t.title!=null&&(i.title=String(t.title)),t.disableClick!=null&&(i.disableClick=!!t.disableClick),t.disableClickToast!=null&&(i.disableClickToast=String(t.disableClickToast)),t.selectedImage!=null){if(typeof t.selectedImage!="object")throw TypeError(".bilibili.app.nativeact.v1.TabItem.selectedImage: object expected");i.selectedImage=u.bilibili.app.nativeact.v1.SizeImage.fromObject(t.selectedImage)}if(t.unselectedImage!=null){if(typeof t.unselectedImage!="object")throw TypeError(".bilibili.app.nativeact.v1.TabItem.unselectedImage: object expected");i.unselectedImage=u.bilibili.app.nativeact.v1.SizeImage.fromObject(t.unselectedImage)}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.pageId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.pageId=i.longs===String?"0":0;n.title="",n.disableClick=!1,n.disableClickToast="",n.selectedImage=null,n.unselectedImage=null}return t.pageId!=null&&t.hasOwnProperty("pageId")&&(typeof t.pageId=="number"?n.pageId=i.longs===String?String(t.pageId):t.pageId:n.pageId=i.longs===String?r.Long.prototype.toString.call(t.pageId):i.longs===Number?new r.LongBits(t.pageId.low>>>0,t.pageId.high>>>0).toNumber():t.pageId),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.disableClick!=null&&t.hasOwnProperty("disableClick")&&(n.disableClick=t.disableClick),t.disableClickToast!=null&&t.hasOwnProperty("disableClickToast")&&(n.disableClickToast=t.disableClickToast),t.selectedImage!=null&&t.hasOwnProperty("selectedImage")&&(n.selectedImage=u.bilibili.app.nativeact.v1.SizeImage.toObject(t.selectedImage,i)),t.unselectedImage!=null&&t.hasOwnProperty("unselectedImage")&&(n.unselectedImage=u.bilibili.app.nativeact.v1.SizeImage.toObject(t.unselectedImage,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.TabItem"},e}(),c.SizeImage=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.image=t.string();break}case 2:{o.height=t.int64();break}case 3:{o.width=t.int64();break}case 4:{o.size=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.SizeImage)return t;let i=new u.bilibili.app.nativeact.v1.SizeImage;return t.image!=null&&(i.image=String(t.image)),t.height!=null&&(r.Long?(i.height=r.Long.fromValue(t.height)).unsigned=!1:typeof t.height=="string"?i.height=parseInt(t.height,10):typeof t.height=="number"?i.height=t.height:typeof t.height=="object"&&(i.height=new r.LongBits(t.height.low>>>0,t.height.high>>>0).toNumber())),t.width!=null&&(r.Long?(i.width=r.Long.fromValue(t.width)).unsigned=!1:typeof t.width=="string"?i.width=parseInt(t.width,10):typeof t.width=="number"?i.width=t.width:typeof t.width=="object"&&(i.width=new r.LongBits(t.width.low>>>0,t.width.high>>>0).toNumber())),t.size!=null&&(r.Long?(i.size=r.Long.fromValue(t.size)).unsigned=!1:typeof t.size=="string"?i.size=parseInt(t.size,10):typeof t.size=="number"?i.size=t.size:typeof t.size=="object"&&(i.size=new r.LongBits(t.size.low>>>0,t.size.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.image="",r.Long){let o=new r.Long(0,0,!1);n.height=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.height=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.width=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.width=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.size=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.size=i.longs===String?"0":0}return t.image!=null&&t.hasOwnProperty("image")&&(n.image=t.image),t.height!=null&&t.hasOwnProperty("height")&&(typeof t.height=="number"?n.height=i.longs===String?String(t.height):t.height:n.height=i.longs===String?r.Long.prototype.toString.call(t.height):i.longs===Number?new r.LongBits(t.height.low>>>0,t.height.high>>>0).toNumber():t.height),t.width!=null&&t.hasOwnProperty("width")&&(typeof t.width=="number"?n.width=i.longs===String?String(t.width):t.width:n.width=i.longs===String?r.Long.prototype.toString.call(t.width):i.longs===Number?new r.LongBits(t.width.low>>>0,t.width.high>>>0).toNumber():t.width),t.size!=null&&t.hasOwnProperty("size")&&(typeof t.size=="number"?n.size=i.longs===String?String(t.size):t.size:n.size=i.longs===String?r.Long.prototype.toString.call(t.size):i.longs===Number?new r.LongBits(t.size.low>>>0,t.size.high>>>0).toNumber():t.size),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.SizeImage"},e}(),c.NewactHeader=function(){function e(l){if(this.features=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.time=t.string();break}case 3:{o.image=t.string();break}case 4:{o.sponsorTitle=t.string();break}case 5:{o.mid=t.int64();break}case 6:{o.userName=t.string();break}case 7:{o.userFace=t.string();break}case 8:{o.userUrl=t.string();break}case 9:{o.features&&o.features.length||(o.features=[]),o.features.push(u.bilibili.app.nativeact.v1.NewactFeature.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.NewactHeader)return t;let i=new u.bilibili.app.nativeact.v1.NewactHeader;if(t.title!=null&&(i.title=String(t.title)),t.time!=null&&(i.time=String(t.time)),t.image!=null&&(i.image=String(t.image)),t.sponsorTitle!=null&&(i.sponsorTitle=String(t.sponsorTitle)),t.mid!=null&&(r.Long?(i.mid=r.Long.fromValue(t.mid)).unsigned=!1:typeof t.mid=="string"?i.mid=parseInt(t.mid,10):typeof t.mid=="number"?i.mid=t.mid:typeof t.mid=="object"&&(i.mid=new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber())),t.userName!=null&&(i.userName=String(t.userName)),t.userFace!=null&&(i.userFace=String(t.userFace)),t.userUrl!=null&&(i.userUrl=String(t.userUrl)),t.features){if(!Array.isArray(t.features))throw TypeError(".bilibili.app.nativeact.v1.NewactHeader.features: array expected");i.features=[];for(let n=0;n>>0,t.mid.high>>>0).toNumber():t.mid),t.userName!=null&&t.hasOwnProperty("userName")&&(n.userName=t.userName),t.userFace!=null&&t.hasOwnProperty("userFace")&&(n.userFace=t.userFace),t.userUrl!=null&&t.hasOwnProperty("userUrl")&&(n.userUrl=t.userUrl),t.features&&t.features.length){n.features=[];for(let o=0;o>>3){case 1:{o.name=t.string();break}case 2:{o.borderColor=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.NewactFeature)return t;let i=new u.bilibili.app.nativeact.v1.NewactFeature;return t.name!=null&&(i.name=String(t.name)),t.borderColor!=null&&(i.borderColor=String(t.borderColor)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.name="",n.borderColor=""),t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),t.borderColor!=null&&t.hasOwnProperty("borderColor")&&(n.borderColor=t.borderColor),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.NewactFeature"},e}(),c.NewactAward=function(){function e(l){if(this.items=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.items&&o.items.length||(o.items=[]),o.items.push(u.bilibili.app.nativeact.v1.NewactAwardItem.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.NewactAward)return t;let i=new u.bilibili.app.nativeact.v1.NewactAward;if(t.title!=null&&(i.title=String(t.title)),t.items){if(!Array.isArray(t.items))throw TypeError(".bilibili.app.nativeact.v1.NewactAward.items: array expected");i.items=[];for(let n=0;n>>3){case 1:{o.title=t.string();break}case 2:{o.content=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.NewactAwardItem)return t;let i=new u.bilibili.app.nativeact.v1.NewactAwardItem;return t.title!=null&&(i.title=String(t.title)),t.content!=null&&(i.content=String(t.content)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.title="",n.content=""),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.content!=null&&t.hasOwnProperty("content")&&(n.content=t.content),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.NewactAwardItem"},e}(),c.NewactStatement=function(){function e(l){if(this.items=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.items&&o.items.length||(o.items=[]),o.items.push(u.bilibili.app.nativeact.v1.NewactStatementItem.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.NewactStatement)return t;let i=new u.bilibili.app.nativeact.v1.NewactStatement;if(t.title!=null&&(i.title=String(t.title)),t.items){if(!Array.isArray(t.items))throw TypeError(".bilibili.app.nativeact.v1.NewactStatement.items: array expected");i.items=[];for(let n=0;n>>3){case 1:{o.title=t.string();break}case 2:{o.content=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.NewactStatementItem)return t;let i=new u.bilibili.app.nativeact.v1.NewactStatementItem;return t.title!=null&&(i.title=String(t.title)),t.content!=null&&(i.content=String(t.content)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.title="",n.content=""),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.content!=null&&t.hasOwnProperty("content")&&(n.content=t.content),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.NewactStatementItem"},e}(),c.ProgressStyle=function(){let e={},l=Object.create(e);return l[e[0]="PStyleDefault"]=0,l[e[1]="PStyleRound"]=1,l[e[2]="PStyleRectangle"]=2,l[e[3]="PStyleNode"]=3,l}(),c.ProgressSlot=function(){let e={},l=Object.create(e);return l[e[0]="PSlotDefault"]=0,l[e[1]="PSlotOutline"]=1,l[e[2]="PSlotFill"]=2,l}(),c.ProgressBar=function(){let e={},l=Object.create(e);return l[e[0]="PBarDefault"]=0,l[e[1]="PBarColor"]=1,l[e[2]="PBarTexture"]=2,l}(),c.ProgressCard=function(){function e(l){if(this.nodes=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.style=t.int32();break}case 2:{o.slotType=t.int32();break}case 3:{o.barType=t.int32();break}case 4:{o.textureImage=t.string();break}case 5:{o.num=t.int64();break}case 6:{o.displayNum=t.string();break}case 7:{o.nodes&&o.nodes.length||(o.nodes=[]),o.nodes.push(u.bilibili.app.nativeact.v1.ProgressNode.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.ProgressCard)return t;let i=new u.bilibili.app.nativeact.v1.ProgressCard;switch(t.style){default:if(typeof t.style=="number"){i.style=t.style;break}break;case"PStyleDefault":case 0:i.style=0;break;case"PStyleRound":case 1:i.style=1;break;case"PStyleRectangle":case 2:i.style=2;break;case"PStyleNode":case 3:i.style=3;break}switch(t.slotType){default:if(typeof t.slotType=="number"){i.slotType=t.slotType;break}break;case"PSlotDefault":case 0:i.slotType=0;break;case"PSlotOutline":case 1:i.slotType=1;break;case"PSlotFill":case 2:i.slotType=2;break}switch(t.barType){default:if(typeof t.barType=="number"){i.barType=t.barType;break}break;case"PBarDefault":case 0:i.barType=0;break;case"PBarColor":case 1:i.barType=1;break;case"PBarTexture":case 2:i.barType=2;break}if(t.textureImage!=null&&(i.textureImage=String(t.textureImage)),t.num!=null&&(r.Long?(i.num=r.Long.fromValue(t.num)).unsigned=!1:typeof t.num=="string"?i.num=parseInt(t.num,10):typeof t.num=="number"?i.num=t.num:typeof t.num=="object"&&(i.num=new r.LongBits(t.num.low>>>0,t.num.high>>>0).toNumber())),t.displayNum!=null&&(i.displayNum=String(t.displayNum)),t.nodes){if(!Array.isArray(t.nodes))throw TypeError(".bilibili.app.nativeact.v1.ProgressCard.nodes: array expected");i.nodes=[];for(let n=0;n>>0,t.num.high>>>0).toNumber():t.num),t.displayNum!=null&&t.hasOwnProperty("displayNum")&&(n.displayNum=t.displayNum),t.nodes&&t.nodes.length){n.nodes=[];for(let o=0;o>>3){case 1:{o.name=t.string();break}case 2:{o.num=t.int64();break}case 3:{o.displayNum=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.ProgressNode)return t;let i=new u.bilibili.app.nativeact.v1.ProgressNode;return t.name!=null&&(i.name=String(t.name)),t.num!=null&&(r.Long?(i.num=r.Long.fromValue(t.num)).unsigned=!1:typeof t.num=="string"?i.num=parseInt(t.num,10):typeof t.num=="number"?i.num=t.num:typeof t.num=="object"&&(i.num=new r.LongBits(t.num.low>>>0,t.num.high>>>0).toNumber())),t.displayNum!=null&&(i.displayNum=String(t.displayNum)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.name="",r.Long){let o=new r.Long(0,0,!1);n.num=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.num=i.longs===String?"0":0;n.displayNum=""}return t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),t.num!=null&&t.hasOwnProperty("num")&&(typeof t.num=="number"?n.num=i.longs===String?String(t.num):t.num:n.num=i.longs===String?r.Long.prototype.toString.call(t.num):i.longs===Number?new r.LongBits(t.num.low>>>0,t.num.high>>>0).toNumber():t.num),t.displayNum!=null&&t.hasOwnProperty("displayNum")&&(n.displayNum=t.displayNum),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.ProgressNode"},e}(),c.ProgressReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.pageId=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.ProgressReq)return t;let i=new u.bilibili.app.nativeact.v1.ProgressReq;return t.pageId!=null&&(r.Long?(i.pageId=r.Long.fromValue(t.pageId)).unsigned=!1:typeof t.pageId=="string"?i.pageId=parseInt(t.pageId,10):typeof t.pageId=="number"?i.pageId=t.pageId:typeof t.pageId=="object"&&(i.pageId=new r.LongBits(t.pageId.low>>>0,t.pageId.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(r.Long){let o=new r.Long(0,0,!1);n.pageId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.pageId=i.longs===String?"0":0;return t.pageId!=null&&t.hasOwnProperty("pageId")&&(typeof t.pageId=="number"?n.pageId=i.longs===String?String(t.pageId):t.pageId:n.pageId=i.longs===String?r.Long.prototype.toString.call(t.pageId):i.longs===Number?new r.LongBits(t.pageId.low>>>0,t.pageId.high>>>0).toNumber():t.pageId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.ProgressReq"},e}(),c.ProgressRly=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.event=u.bilibili.app.nativeact.v1.ProgressEvent.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.ProgressRly)return t;let i=new u.bilibili.app.nativeact.v1.ProgressRly;if(t.event!=null){if(typeof t.event!="object")throw TypeError(".bilibili.app.nativeact.v1.ProgressRly.event: object expected");i.event=u.bilibili.app.nativeact.v1.ProgressEvent.fromObject(t.event)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.event=null),t.event!=null&&t.hasOwnProperty("event")&&(n.event=u.bilibili.app.nativeact.v1.ProgressEvent.toObject(t.event,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.ProgressRly"},e}(),c.BottomTabReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.tabId=t.int64();break}case 2:{o.tabModuleId=t.int64();break}case 3:{o.pageId=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.BottomTabReq)return t;let i=new u.bilibili.app.nativeact.v1.BottomTabReq;return t.tabId!=null&&(r.Long?(i.tabId=r.Long.fromValue(t.tabId)).unsigned=!1:typeof t.tabId=="string"?i.tabId=parseInt(t.tabId,10):typeof t.tabId=="number"?i.tabId=t.tabId:typeof t.tabId=="object"&&(i.tabId=new r.LongBits(t.tabId.low>>>0,t.tabId.high>>>0).toNumber())),t.tabModuleId!=null&&(r.Long?(i.tabModuleId=r.Long.fromValue(t.tabModuleId)).unsigned=!1:typeof t.tabModuleId=="string"?i.tabModuleId=parseInt(t.tabModuleId,10):typeof t.tabModuleId=="number"?i.tabModuleId=t.tabModuleId:typeof t.tabModuleId=="object"&&(i.tabModuleId=new r.LongBits(t.tabModuleId.low>>>0,t.tabModuleId.high>>>0).toNumber())),t.pageId!=null&&(r.Long?(i.pageId=r.Long.fromValue(t.pageId)).unsigned=!1:typeof t.pageId=="string"?i.pageId=parseInt(t.pageId,10):typeof t.pageId=="number"?i.pageId=t.pageId:typeof t.pageId=="object"&&(i.pageId=new r.LongBits(t.pageId.low>>>0,t.pageId.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.tabId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.tabId=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.tabModuleId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.tabModuleId=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.pageId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.pageId=i.longs===String?"0":0}return t.tabId!=null&&t.hasOwnProperty("tabId")&&(typeof t.tabId=="number"?n.tabId=i.longs===String?String(t.tabId):t.tabId:n.tabId=i.longs===String?r.Long.prototype.toString.call(t.tabId):i.longs===Number?new r.LongBits(t.tabId.low>>>0,t.tabId.high>>>0).toNumber():t.tabId),t.tabModuleId!=null&&t.hasOwnProperty("tabModuleId")&&(typeof t.tabModuleId=="number"?n.tabModuleId=i.longs===String?String(t.tabModuleId):t.tabModuleId:n.tabModuleId=i.longs===String?r.Long.prototype.toString.call(t.tabModuleId):i.longs===Number?new r.LongBits(t.tabModuleId.low>>>0,t.tabModuleId.high>>>0).toNumber():t.tabModuleId),t.pageId!=null&&t.hasOwnProperty("pageId")&&(typeof t.pageId=="number"?n.pageId=i.longs===String?String(t.pageId):t.pageId:n.pageId=i.longs===String?r.Long.prototype.toString.call(t.pageId):i.longs===Number?new r.LongBits(t.pageId.low>>>0,t.pageId.high>>>0).toNumber():t.pageId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.BottomTabReq"},e}(),c.BottomTabRly=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.errLimit=u.bilibili.app.nativeact.v1.BottomTabErrLimit.decode(t,t.uint32());break}case 2:{o.tab=u.bilibili.app.nativeact.v1.BottomTab.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.BottomTabRly)return t;let i=new u.bilibili.app.nativeact.v1.BottomTabRly;if(t.errLimit!=null){if(typeof t.errLimit!="object")throw TypeError(".bilibili.app.nativeact.v1.BottomTabRly.errLimit: object expected");i.errLimit=u.bilibili.app.nativeact.v1.BottomTabErrLimit.fromObject(t.errLimit)}if(t.tab!=null){if(typeof t.tab!="object")throw TypeError(".bilibili.app.nativeact.v1.BottomTabRly.tab: object expected");i.tab=u.bilibili.app.nativeact.v1.BottomTab.fromObject(t.tab)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.errLimit=null,n.tab=null),t.errLimit!=null&&t.hasOwnProperty("errLimit")&&(n.errLimit=u.bilibili.app.nativeact.v1.BottomTabErrLimit.toObject(t.errLimit,i)),t.tab!=null&&t.hasOwnProperty("tab")&&(n.tab=u.bilibili.app.nativeact.v1.BottomTab.toObject(t.tab,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.BottomTabRly"},e}(),c.BottomTabErrLimit=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.code=t.int64();break}case 2:{o.message=t.string();break}case 3:{o.button=u.bilibili.app.nativeact.v1.BottomTabErrLimit.Button.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.BottomTabErrLimit)return t;let i=new u.bilibili.app.nativeact.v1.BottomTabErrLimit;if(t.code!=null&&(r.Long?(i.code=r.Long.fromValue(t.code)).unsigned=!1:typeof t.code=="string"?i.code=parseInt(t.code,10):typeof t.code=="number"?i.code=t.code:typeof t.code=="object"&&(i.code=new r.LongBits(t.code.low>>>0,t.code.high>>>0).toNumber())),t.message!=null&&(i.message=String(t.message)),t.button!=null){if(typeof t.button!="object")throw TypeError(".bilibili.app.nativeact.v1.BottomTabErrLimit.button: object expected");i.button=u.bilibili.app.nativeact.v1.BottomTabErrLimit.Button.fromObject(t.button)}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.code=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.code=i.longs===String?"0":0;n.message="",n.button=null}return t.code!=null&&t.hasOwnProperty("code")&&(typeof t.code=="number"?n.code=i.longs===String?String(t.code):t.code:n.code=i.longs===String?r.Long.prototype.toString.call(t.code):i.longs===Number?new r.LongBits(t.code.low>>>0,t.code.high>>>0).toNumber():t.code),t.message!=null&&t.hasOwnProperty("message")&&(n.message=t.message),t.button!=null&&t.hasOwnProperty("button")&&(n.button=u.bilibili.app.nativeact.v1.BottomTabErrLimit.Button.toObject(t.button,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.BottomTabErrLimit"},e.Button=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.content=i.string();break}case 2:{a.url=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.app.nativeact.v1.BottomTabErrLimit.Button)return i;let n=new u.bilibili.app.nativeact.v1.BottomTabErrLimit.Button;return i.content!=null&&(n.content=String(i.content)),i.url!=null&&(n.url=String(i.url)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.content="",o.url=""),i.content!=null&&i.hasOwnProperty("content")&&(o.content=i.content),i.url!=null&&i.hasOwnProperty("url")&&(o.url=i.url),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.app.nativeact.v1.BottomTabErrLimit.Button"},l}(),e}(),c.BottomTabBgType=function(){let e={},l=Object.create(e);return l[e[0]="BTBTUnknown"]=0,l[e[1]="BTBTImage"]=1,l[e[2]="BTBTColor"]=2,l}(),c.BottomTabIconType=function(){let e={},l=Object.create(e);return l[e[0]="BTITUnknown"]=0,l[e[1]="BTITIconText"]=1,l[e[2]="BTITText"]=2,l}(),c.BottomTab=function(){function e(l){if(this.items=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.bgType=t.int32();break}case 2:{o.bgImage=t.string();break}case 3:{o.bgColor=t.string();break}case 4:{o.iconType=t.int32();break}case 5:{o.selectedFontColor=t.string();break}case 6:{o.unselectedFontColor=t.string();break}case 7:{o.items&&o.items.length||(o.items=[]),o.items.push(u.bilibili.app.nativeact.v1.BottomTabItem.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.BottomTab)return t;let i=new u.bilibili.app.nativeact.v1.BottomTab;switch(t.bgType){default:if(typeof t.bgType=="number"){i.bgType=t.bgType;break}break;case"BTBTUnknown":case 0:i.bgType=0;break;case"BTBTImage":case 1:i.bgType=1;break;case"BTBTColor":case 2:i.bgType=2;break}switch(t.bgImage!=null&&(i.bgImage=String(t.bgImage)),t.bgColor!=null&&(i.bgColor=String(t.bgColor)),t.iconType){default:if(typeof t.iconType=="number"){i.iconType=t.iconType;break}break;case"BTITUnknown":case 0:i.iconType=0;break;case"BTITIconText":case 1:i.iconType=1;break;case"BTITText":case 2:i.iconType=2;break}if(t.selectedFontColor!=null&&(i.selectedFontColor=String(t.selectedFontColor)),t.unselectedFontColor!=null&&(i.unselectedFontColor=String(t.unselectedFontColor)),t.items){if(!Array.isArray(t.items))throw TypeError(".bilibili.app.nativeact.v1.BottomTab.items: array expected");i.items=[];for(let n=0;n>>3){case 1:{o.goto=t.int32();break}case 2:{o.tabId=t.int64();break}case 3:{o.tabModuleId=t.int64();break}case 4:{o.title=t.string();break}case 5:{o.selected=t.bool();break}case 6:{o.selectedImage=t.string();break}case 7:{o.unselectedImage=t.string();break}case 8:{o.url=t.string();break}case 9:{o.pageId=t.int64();break}case 10:{o.pageTitle=t.string();break}case 11:{o.pageFid=t.int64();break}case 12:{o.shareOrigin=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.BottomTabItem)return t;let i=new u.bilibili.app.nativeact.v1.BottomTabItem;switch(t.goto){default:if(typeof t.goto=="number"){i.goto=t.goto;break}break;case"BTGUnknown":case 0:i.goto=0;break;case"BTGNaPage":case 1:i.goto=1;break;case"BTGRedirect":case 2:i.goto=2;break}return t.tabId!=null&&(r.Long?(i.tabId=r.Long.fromValue(t.tabId)).unsigned=!1:typeof t.tabId=="string"?i.tabId=parseInt(t.tabId,10):typeof t.tabId=="number"?i.tabId=t.tabId:typeof t.tabId=="object"&&(i.tabId=new r.LongBits(t.tabId.low>>>0,t.tabId.high>>>0).toNumber())),t.tabModuleId!=null&&(r.Long?(i.tabModuleId=r.Long.fromValue(t.tabModuleId)).unsigned=!1:typeof t.tabModuleId=="string"?i.tabModuleId=parseInt(t.tabModuleId,10):typeof t.tabModuleId=="number"?i.tabModuleId=t.tabModuleId:typeof t.tabModuleId=="object"&&(i.tabModuleId=new r.LongBits(t.tabModuleId.low>>>0,t.tabModuleId.high>>>0).toNumber())),t.title!=null&&(i.title=String(t.title)),t.selected!=null&&(i.selected=!!t.selected),t.selectedImage!=null&&(i.selectedImage=String(t.selectedImage)),t.unselectedImage!=null&&(i.unselectedImage=String(t.unselectedImage)),t.url!=null&&(i.url=String(t.url)),t.pageId!=null&&(r.Long?(i.pageId=r.Long.fromValue(t.pageId)).unsigned=!1:typeof t.pageId=="string"?i.pageId=parseInt(t.pageId,10):typeof t.pageId=="number"?i.pageId=t.pageId:typeof t.pageId=="object"&&(i.pageId=new r.LongBits(t.pageId.low>>>0,t.pageId.high>>>0).toNumber())),t.pageTitle!=null&&(i.pageTitle=String(t.pageTitle)),t.pageFid!=null&&(r.Long?(i.pageFid=r.Long.fromValue(t.pageFid)).unsigned=!1:typeof t.pageFid=="string"?i.pageFid=parseInt(t.pageFid,10):typeof t.pageFid=="number"?i.pageFid=t.pageFid:typeof t.pageFid=="object"&&(i.pageFid=new r.LongBits(t.pageFid.low>>>0,t.pageFid.high>>>0).toNumber())),t.shareOrigin!=null&&(i.shareOrigin=String(t.shareOrigin)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.goto=i.enums===String?"BTGUnknown":0,r.Long){let o=new r.Long(0,0,!1);n.tabId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.tabId=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.tabModuleId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.tabModuleId=i.longs===String?"0":0;if(n.title="",n.selected=!1,n.selectedImage="",n.unselectedImage="",n.url="",r.Long){let o=new r.Long(0,0,!1);n.pageId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.pageId=i.longs===String?"0":0;if(n.pageTitle="",r.Long){let o=new r.Long(0,0,!1);n.pageFid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.pageFid=i.longs===String?"0":0;n.shareOrigin=""}return t.goto!=null&&t.hasOwnProperty("goto")&&(n.goto=i.enums===String?u.bilibili.app.nativeact.v1.BottomTabGoto[t.goto]===void 0?t.goto:u.bilibili.app.nativeact.v1.BottomTabGoto[t.goto]:t.goto),t.tabId!=null&&t.hasOwnProperty("tabId")&&(typeof t.tabId=="number"?n.tabId=i.longs===String?String(t.tabId):t.tabId:n.tabId=i.longs===String?r.Long.prototype.toString.call(t.tabId):i.longs===Number?new r.LongBits(t.tabId.low>>>0,t.tabId.high>>>0).toNumber():t.tabId),t.tabModuleId!=null&&t.hasOwnProperty("tabModuleId")&&(typeof t.tabModuleId=="number"?n.tabModuleId=i.longs===String?String(t.tabModuleId):t.tabModuleId:n.tabModuleId=i.longs===String?r.Long.prototype.toString.call(t.tabModuleId):i.longs===Number?new r.LongBits(t.tabModuleId.low>>>0,t.tabModuleId.high>>>0).toNumber():t.tabModuleId),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.selected!=null&&t.hasOwnProperty("selected")&&(n.selected=t.selected),t.selectedImage!=null&&t.hasOwnProperty("selectedImage")&&(n.selectedImage=t.selectedImage),t.unselectedImage!=null&&t.hasOwnProperty("unselectedImage")&&(n.unselectedImage=t.unselectedImage),t.url!=null&&t.hasOwnProperty("url")&&(n.url=t.url),t.pageId!=null&&t.hasOwnProperty("pageId")&&(typeof t.pageId=="number"?n.pageId=i.longs===String?String(t.pageId):t.pageId:n.pageId=i.longs===String?r.Long.prototype.toString.call(t.pageId):i.longs===Number?new r.LongBits(t.pageId.low>>>0,t.pageId.high>>>0).toNumber():t.pageId),t.pageTitle!=null&&t.hasOwnProperty("pageTitle")&&(n.pageTitle=t.pageTitle),t.pageFid!=null&&t.hasOwnProperty("pageFid")&&(typeof t.pageFid=="number"?n.pageFid=i.longs===String?String(t.pageFid):t.pageFid:n.pageFid=i.longs===String?r.Long.prototype.toString.call(t.pageFid):i.longs===Number?new r.LongBits(t.pageFid.low>>>0,t.pageFid.high>>>0).toNumber():t.pageFid),t.shareOrigin!=null&&t.hasOwnProperty("shareOrigin")&&(n.shareOrigin=t.shareOrigin),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.BottomTabItem"},e}(),c.ClickCard=function(){function e(l){if(this.items=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.bgImage=u.bilibili.app.nativeact.v1.SizeImage.decode(t,t.uint32());break}case 2:{o.items&&o.items.length||(o.items=[]),o.items.push(u.bilibili.app.nativeact.v1.ClickItem.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.ClickCard)return t;let i=new u.bilibili.app.nativeact.v1.ClickCard;if(t.bgImage!=null){if(typeof t.bgImage!="object")throw TypeError(".bilibili.app.nativeact.v1.ClickCard.bgImage: object expected");i.bgImage=u.bilibili.app.nativeact.v1.SizeImage.fromObject(t.bgImage)}if(t.items){if(!Array.isArray(t.items))throw TypeError(".bilibili.app.nativeact.v1.ClickCard.items: array expected");i.items=[];for(let n=0;n>>3){case 1:{a.areaId=i.int64();break}case 2:{a.area=u.bilibili.app.nativeact.v1.Area.decode(i,i.uint32());break}case 3:{a.action=i.int32();break}case 4:{a.redirectAct=u.bilibili.app.nativeact.v1.ClickActRedirect.decode(i,i.uint32());break}case 5:{a.requestAct=u.bilibili.app.nativeact.v1.ClickActRequest.decode(i,i.uint32());break}case 6:{a.rtProgressAct=u.bilibili.app.nativeact.v1.ClickActProgress.decode(i,i.uint32());break}case 7:{a.nrtProgressAct=u.bilibili.app.nativeact.v1.ClickActProgress.decode(i,i.uint32());break}case 8:{a.imageAct=u.bilibili.app.nativeact.v1.ClickActImage.decode(i,i.uint32());break}case 9:{a.layerAct=u.bilibili.app.nativeact.v1.ClickActLayer.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},e.fromObject=function(i){if(i instanceof u.bilibili.app.nativeact.v1.ClickItem)return i;let n=new u.bilibili.app.nativeact.v1.ClickItem;if(i.areaId!=null&&(r.Long?(n.areaId=r.Long.fromValue(i.areaId)).unsigned=!1:typeof i.areaId=="string"?n.areaId=parseInt(i.areaId,10):typeof i.areaId=="number"?n.areaId=i.areaId:typeof i.areaId=="object"&&(n.areaId=new r.LongBits(i.areaId.low>>>0,i.areaId.high>>>0).toNumber())),i.area!=null){if(typeof i.area!="object")throw TypeError(".bilibili.app.nativeact.v1.ClickItem.area: object expected");n.area=u.bilibili.app.nativeact.v1.Area.fromObject(i.area)}switch(i.action){default:if(typeof i.action=="number"){n.action=i.action;break}break;case"ActUnknown":case 0:n.action=0;break;case"ActRedirect":case 1:n.action=1;break;case"ActRequest":case 2:n.action=2;break;case"ActRTProgress":case 3:n.action=3;break;case"ActNRTProgress":case 4:n.action=4;break;case"ActImage":case 5:n.action=5;break;case"ActLayer":case 6:n.action=6;break}if(i.redirectAct!=null){if(typeof i.redirectAct!="object")throw TypeError(".bilibili.app.nativeact.v1.ClickItem.redirectAct: object expected");n.redirectAct=u.bilibili.app.nativeact.v1.ClickActRedirect.fromObject(i.redirectAct)}if(i.requestAct!=null){if(typeof i.requestAct!="object")throw TypeError(".bilibili.app.nativeact.v1.ClickItem.requestAct: object expected");n.requestAct=u.bilibili.app.nativeact.v1.ClickActRequest.fromObject(i.requestAct)}if(i.rtProgressAct!=null){if(typeof i.rtProgressAct!="object")throw TypeError(".bilibili.app.nativeact.v1.ClickItem.rtProgressAct: object expected");n.rtProgressAct=u.bilibili.app.nativeact.v1.ClickActProgress.fromObject(i.rtProgressAct)}if(i.nrtProgressAct!=null){if(typeof i.nrtProgressAct!="object")throw TypeError(".bilibili.app.nativeact.v1.ClickItem.nrtProgressAct: object expected");n.nrtProgressAct=u.bilibili.app.nativeact.v1.ClickActProgress.fromObject(i.nrtProgressAct)}if(i.imageAct!=null){if(typeof i.imageAct!="object")throw TypeError(".bilibili.app.nativeact.v1.ClickItem.imageAct: object expected");n.imageAct=u.bilibili.app.nativeact.v1.ClickActImage.fromObject(i.imageAct)}if(i.layerAct!=null){if(typeof i.layerAct!="object")throw TypeError(".bilibili.app.nativeact.v1.ClickItem.layerAct: object expected");n.layerAct=u.bilibili.app.nativeact.v1.ClickActLayer.fromObject(i.layerAct)}return n},e.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.areaId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.areaId=n.longs===String?"0":0;o.area=null,o.action=n.enums===String?"ActUnknown":0}return i.areaId!=null&&i.hasOwnProperty("areaId")&&(typeof i.areaId=="number"?o.areaId=n.longs===String?String(i.areaId):i.areaId:o.areaId=n.longs===String?r.Long.prototype.toString.call(i.areaId):n.longs===Number?new r.LongBits(i.areaId.low>>>0,i.areaId.high>>>0).toNumber():i.areaId),i.area!=null&&i.hasOwnProperty("area")&&(o.area=u.bilibili.app.nativeact.v1.Area.toObject(i.area,n)),i.action!=null&&i.hasOwnProperty("action")&&(o.action=n.enums===String?u.bilibili.app.nativeact.v1.ClickItem.Action[i.action]===void 0?i.action:u.bilibili.app.nativeact.v1.ClickItem.Action[i.action]:i.action),i.redirectAct!=null&&i.hasOwnProperty("redirectAct")&&(o.redirectAct=u.bilibili.app.nativeact.v1.ClickActRedirect.toObject(i.redirectAct,n),n.oneofs&&(o.actionDetail="redirectAct")),i.requestAct!=null&&i.hasOwnProperty("requestAct")&&(o.requestAct=u.bilibili.app.nativeact.v1.ClickActRequest.toObject(i.requestAct,n),n.oneofs&&(o.actionDetail="requestAct")),i.rtProgressAct!=null&&i.hasOwnProperty("rtProgressAct")&&(o.rtProgressAct=u.bilibili.app.nativeact.v1.ClickActProgress.toObject(i.rtProgressAct,n),n.oneofs&&(o.actionDetail="rtProgressAct")),i.nrtProgressAct!=null&&i.hasOwnProperty("nrtProgressAct")&&(o.nrtProgressAct=u.bilibili.app.nativeact.v1.ClickActProgress.toObject(i.nrtProgressAct,n),n.oneofs&&(o.actionDetail="nrtProgressAct")),i.imageAct!=null&&i.hasOwnProperty("imageAct")&&(o.imageAct=u.bilibili.app.nativeact.v1.ClickActImage.toObject(i.imageAct,n),n.oneofs&&(o.actionDetail="imageAct")),i.layerAct!=null&&i.hasOwnProperty("layerAct")&&(o.layerAct=u.bilibili.app.nativeact.v1.ClickActLayer.toObject(i.layerAct,n),n.oneofs&&(o.actionDetail="layerAct")),o},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.app.nativeact.v1.ClickItem"},e.Action=function(){let t={},i=Object.create(t);return i[t[0]="ActUnknown"]=0,i[t[1]="ActRedirect"]=1,i[t[2]="ActRequest"]=2,i[t[3]="ActRTProgress"]=3,i[t[4]="ActNRTProgress"]=4,i[t[5]="ActImage"]=5,i[t[6]="ActLayer"]=6,i}(),e}(),c.ClickActRedirect=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.url=t.string();break}case 2:{o.image=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.ClickActRedirect)return t;let i=new u.bilibili.app.nativeact.v1.ClickActRedirect;return t.url!=null&&(i.url=String(t.url)),t.image!=null&&(i.image=String(t.image)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.url="",n.image=""),t.url!=null&&t.hasOwnProperty("url")&&(n.url=t.url),t.image!=null&&t.hasOwnProperty("image")&&(n.image=t.image),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.ClickActRedirect"},e}(),c.ClickRequestType=function(){let e={},l=Object.create(e);return l[e[0]="CRTypeUnknown"]=0,l[e[1]="CRTypeFollowUser"]=1,l[e[2]="CRTypeFollowEpisode"]=2,l[e[3]="CRTypeFollowComic"]=3,l[e[4]="CRTypeReserve"]=4,l[e[5]="CRTypeReceiveAward"]=5,l[e[6]="CRTypeMallWantGo"]=6,l[e[7]="CRTypeActivity"]=7,l[e[8]="CRTypeUpReserve"]=8,l[e[9]="CRTypeContestFav"]=9,l}(),c.ClickRequestState=function(){let e={},l=Object.create(e);return l[e[0]="CRSUnknown"]=0,l[e[1]="CRSDone"]=1,l[e[2]="CRSUndone"]=2,l[e[3]="CRSDisable"]=3,l}(),c.ClickRequestDetail=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.state=t.int32();break}case 2:{o.params=t.string();break}case 3:{o.image=t.string();break}case 4:{o.messageBox=u.bilibili.app.nativeact.v1.MessageBox.decode(t,t.uint32());break}case 5:{o.text=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.ClickRequestDetail)return t;let i=new u.bilibili.app.nativeact.v1.ClickRequestDetail;switch(t.state){default:if(typeof t.state=="number"){i.state=t.state;break}break;case"CRSUnknown":case 0:i.state=0;break;case"CRSDone":case 1:i.state=1;break;case"CRSUndone":case 2:i.state=2;break;case"CRSDisable":case 3:i.state=3;break}if(t.params!=null&&(i.params=String(t.params)),t.image!=null&&(i.image=String(t.image)),t.messageBox!=null){if(typeof t.messageBox!="object")throw TypeError(".bilibili.app.nativeact.v1.ClickRequestDetail.messageBox: object expected");i.messageBox=u.bilibili.app.nativeact.v1.MessageBox.fromObject(t.messageBox)}return t.text!=null&&(i.text=String(t.text)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.state=i.enums===String?"CRSUnknown":0,n.params="",n.image="",n.messageBox=null,n.text=""),t.state!=null&&t.hasOwnProperty("state")&&(n.state=i.enums===String?u.bilibili.app.nativeact.v1.ClickRequestState[t.state]===void 0?t.state:u.bilibili.app.nativeact.v1.ClickRequestState[t.state]:t.state),t.params!=null&&t.hasOwnProperty("params")&&(n.params=t.params),t.image!=null&&t.hasOwnProperty("image")&&(n.image=t.image),t.messageBox!=null&&t.hasOwnProperty("messageBox")&&(n.messageBox=u.bilibili.app.nativeact.v1.MessageBox.toObject(t.messageBox,i)),t.text!=null&&t.hasOwnProperty("text")&&(n.text=t.text),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.ClickRequestDetail"},e}(),c.ClickActRequest=function(){function e(l){if(this.details=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.id=t.int64();break}case 2:{o.reqType=t.int32();break}case 3:{o.state=t.int32();break}case 4:{o.details&&o.details.length||(o.details=[]),o.details.push(u.bilibili.app.nativeact.v1.ClickRequestDetail.decode(t,t.uint32()));break}case 5:{o.syncHoverButton=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.ClickActRequest)return t;let i=new u.bilibili.app.nativeact.v1.ClickActRequest;switch(t.id!=null&&(r.Long?(i.id=r.Long.fromValue(t.id)).unsigned=!1:typeof t.id=="string"?i.id=parseInt(t.id,10):typeof t.id=="number"?i.id=t.id:typeof t.id=="object"&&(i.id=new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber())),t.reqType){default:if(typeof t.reqType=="number"){i.reqType=t.reqType;break}break;case"CRTypeUnknown":case 0:i.reqType=0;break;case"CRTypeFollowUser":case 1:i.reqType=1;break;case"CRTypeFollowEpisode":case 2:i.reqType=2;break;case"CRTypeFollowComic":case 3:i.reqType=3;break;case"CRTypeReserve":case 4:i.reqType=4;break;case"CRTypeReceiveAward":case 5:i.reqType=5;break;case"CRTypeMallWantGo":case 6:i.reqType=6;break;case"CRTypeActivity":case 7:i.reqType=7;break;case"CRTypeUpReserve":case 8:i.reqType=8;break;case"CRTypeContestFav":case 9:i.reqType=9;break}switch(t.state){default:if(typeof t.state=="number"){i.state=t.state;break}break;case"CRSUnknown":case 0:i.state=0;break;case"CRSDone":case 1:i.state=1;break;case"CRSUndone":case 2:i.state=2;break;case"CRSDisable":case 3:i.state=3;break}if(t.details){if(!Array.isArray(t.details))throw TypeError(".bilibili.app.nativeact.v1.ClickActRequest.details: array expected");i.details=[];for(let n=0;n>>0,t.id.high>>>0).toNumber():t.id),t.reqType!=null&&t.hasOwnProperty("reqType")&&(n.reqType=i.enums===String?u.bilibili.app.nativeact.v1.ClickRequestType[t.reqType]===void 0?t.reqType:u.bilibili.app.nativeact.v1.ClickRequestType[t.reqType]:t.reqType),t.state!=null&&t.hasOwnProperty("state")&&(n.state=i.enums===String?u.bilibili.app.nativeact.v1.ClickRequestState[t.state]===void 0?t.state:u.bilibili.app.nativeact.v1.ClickRequestState[t.state]:t.state),t.details&&t.details.length){n.details=[];for(let o=0;o>>3){case 1:{o.color=u.bilibili.app.nativeact.v1.Color.decode(t,t.uint32());break}case 2:{o.fontType=t.int32();break}case 3:{o.fontSize=t.int64();break}case 4:{o.displayMode=t.int32();break}case 5:{o.currentNum=t.string();break}case 6:{o.targetNum=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.ClickActProgress)return t;let i=new u.bilibili.app.nativeact.v1.ClickActProgress;if(t.color!=null){if(typeof t.color!="object")throw TypeError(".bilibili.app.nativeact.v1.ClickActProgress.color: object expected");i.color=u.bilibili.app.nativeact.v1.Color.fromObject(t.color)}switch(t.fontType){default:if(typeof t.fontType=="number"){i.fontType=t.fontType;break}break;case"FontTypeUnknown":case 0:i.fontType=0;break;case"FontTypeNormal":case 1:i.fontType=1;break;case"FontTypeBold":case 2:i.fontType=2;break}switch(t.fontSize!=null&&(r.Long?(i.fontSize=r.Long.fromValue(t.fontSize)).unsigned=!1:typeof t.fontSize=="string"?i.fontSize=parseInt(t.fontSize,10):typeof t.fontSize=="number"?i.fontSize=t.fontSize:typeof t.fontSize=="object"&&(i.fontSize=new r.LongBits(t.fontSize.low>>>0,t.fontSize.high>>>0).toNumber())),t.displayMode){default:if(typeof t.displayMode=="number"){i.displayMode=t.displayMode;break}break;case"DisplayUnknown":case 0:i.displayMode=0;break;case"DisplayCurr":case 1:i.displayMode=1;break;case"DisplayCurrTarget":case 2:i.displayMode=2;break}return t.currentNum!=null&&(i.currentNum=String(t.currentNum)),t.targetNum!=null&&(i.targetNum=String(t.targetNum)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.color=null,n.fontType=i.enums===String?"FontTypeUnknown":0,r.Long){let o=new r.Long(0,0,!1);n.fontSize=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.fontSize=i.longs===String?"0":0;n.displayMode=i.enums===String?"DisplayUnknown":0,n.currentNum="",n.targetNum=""}return t.color!=null&&t.hasOwnProperty("color")&&(n.color=u.bilibili.app.nativeact.v1.Color.toObject(t.color,i)),t.fontType!=null&&t.hasOwnProperty("fontType")&&(n.fontType=i.enums===String?u.bilibili.app.nativeact.v1.FontType[t.fontType]===void 0?t.fontType:u.bilibili.app.nativeact.v1.FontType[t.fontType]:t.fontType),t.fontSize!=null&&t.hasOwnProperty("fontSize")&&(typeof t.fontSize=="number"?n.fontSize=i.longs===String?String(t.fontSize):t.fontSize:n.fontSize=i.longs===String?r.Long.prototype.toString.call(t.fontSize):i.longs===Number?new r.LongBits(t.fontSize.low>>>0,t.fontSize.high>>>0).toNumber():t.fontSize),t.displayMode!=null&&t.hasOwnProperty("displayMode")&&(n.displayMode=i.enums===String?u.bilibili.app.nativeact.v1.ClickActProgress.DisplayMode[t.displayMode]===void 0?t.displayMode:u.bilibili.app.nativeact.v1.ClickActProgress.DisplayMode[t.displayMode]:t.displayMode),t.currentNum!=null&&t.hasOwnProperty("currentNum")&&(n.currentNum=t.currentNum),t.targetNum!=null&&t.hasOwnProperty("targetNum")&&(n.targetNum=t.targetNum),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.ClickActProgress"},e.DisplayMode=function(){let l={},t=Object.create(l);return t[l[0]="DisplayUnknown"]=0,t[l[1]="DisplayCurr"]=1,t[l[2]="DisplayCurrTarget"]=2,t}(),e}(),c.ClickActImage=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.image=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.ClickActImage)return t;let i=new u.bilibili.app.nativeact.v1.ClickActImage;return t.image!=null&&(i.image=String(t.image)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.image=""),t.image!=null&&t.hasOwnProperty("image")&&(n.image=t.image),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.ClickActImage"},e}(),c.ClickActLayer=function(){function e(l){if(this.images=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.buttonImage=t.string();break}case 2:{o.mode=t.int32();break}case 3:{o.images&&o.images.length||(o.images=[]),o.images.push(u.bilibili.app.nativeact.v1.SizeImage.decode(t,t.uint32()));break}case 4:{o.url=t.string();break}case 5:{o.style=t.int32();break}case 6:{o.title=t.string();break}case 7:{o.color=u.bilibili.app.nativeact.v1.Color.decode(t,t.uint32());break}case 8:{o.imageTitle=t.string();break}case 9:{o.shareImage=u.bilibili.app.nativeact.v1.SizeImage.decode(t,t.uint32());break}case 10:{o.share=u.bilibili.app.nativeact.v1.Share.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.ClickActLayer)return t;let i=new u.bilibili.app.nativeact.v1.ClickActLayer;switch(t.buttonImage!=null&&(i.buttonImage=String(t.buttonImage)),t.mode){default:if(typeof t.mode=="number"){i.mode=t.mode;break}break;case"LMUnknown":case 0:i.mode=0;break;case"LMImage":case 1:i.mode=1;break;case"LMRedirect":case 2:i.mode=2;break}if(t.images){if(!Array.isArray(t.images))throw TypeError(".bilibili.app.nativeact.v1.ClickActLayer.images: array expected");i.images=[];for(let n=0;n>>3){case 1:{o.action=t.int32();break}case 2:{o.id=t.int64();break}case 3:{o.reqType=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.ClickRequestParams)return t;let i=new u.bilibili.app.nativeact.v1.ClickRequestParams;switch(t.action){default:if(typeof t.action=="number"){i.action=t.action;break}break;case"Default":case 0:i.action=0;break;case"Do":case 1:i.action=1;break;case"Undo":case 2:i.action=2;break}switch(t.id!=null&&(r.Long?(i.id=r.Long.fromValue(t.id)).unsigned=!1:typeof t.id=="string"?i.id=parseInt(t.id,10):typeof t.id=="number"?i.id=t.id:typeof t.id=="object"&&(i.id=new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber())),t.reqType){default:if(typeof t.reqType=="number"){i.reqType=t.reqType;break}break;case"CRTypeUnknown":case 0:i.reqType=0;break;case"CRTypeFollowUser":case 1:i.reqType=1;break;case"CRTypeFollowEpisode":case 2:i.reqType=2;break;case"CRTypeFollowComic":case 3:i.reqType=3;break;case"CRTypeReserve":case 4:i.reqType=4;break;case"CRTypeReceiveAward":case 5:i.reqType=5;break;case"CRTypeMallWantGo":case 6:i.reqType=6;break;case"CRTypeActivity":case 7:i.reqType=7;break;case"CRTypeUpReserve":case 8:i.reqType=8;break;case"CRTypeContestFav":case 9:i.reqType=9;break}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.action=i.enums===String?"Default":0,r.Long){let o=new r.Long(0,0,!1);n.id=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.id=i.longs===String?"0":0;n.reqType=i.enums===String?"CRTypeUnknown":0}return t.action!=null&&t.hasOwnProperty("action")&&(n.action=i.enums===String?u.bilibili.app.nativeact.v1.ActionType[t.action]===void 0?t.action:u.bilibili.app.nativeact.v1.ActionType[t.action]:t.action),t.id!=null&&t.hasOwnProperty("id")&&(typeof t.id=="number"?n.id=i.longs===String?String(t.id):t.id:n.id=i.longs===String?r.Long.prototype.toString.call(t.id):i.longs===Number?new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber():t.id),t.reqType!=null&&t.hasOwnProperty("reqType")&&(n.reqType=i.enums===String?u.bilibili.app.nativeact.v1.ClickRequestType[t.reqType]===void 0?t.reqType:u.bilibili.app.nativeact.v1.ClickRequestType[t.reqType]:t.reqType),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.ClickRequestParams"},e}(),c.HandleClickReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.rawParams=t.string();break}case 2:{o.params=u.bilibili.app.nativeact.v1.ClickRequestParams.decode(t,t.uint32());break}case 3:{o.spmid=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.HandleClickReq)return t;let i=new u.bilibili.app.nativeact.v1.HandleClickReq;if(t.rawParams!=null&&(i.rawParams=String(t.rawParams)),t.params!=null){if(typeof t.params!="object")throw TypeError(".bilibili.app.nativeact.v1.HandleClickReq.params: object expected");i.params=u.bilibili.app.nativeact.v1.ClickRequestParams.fromObject(t.params)}return t.spmid!=null&&(i.spmid=String(t.spmid)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.rawParams="",n.params=null,n.spmid=""),t.rawParams!=null&&t.hasOwnProperty("rawParams")&&(n.rawParams=t.rawParams),t.params!=null&&t.hasOwnProperty("params")&&(n.params=u.bilibili.app.nativeact.v1.ClickRequestParams.toObject(t.params,i)),t.spmid!=null&&t.hasOwnProperty("spmid")&&(n.spmid=t.spmid),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.HandleClickReq"},e}(),c.HandleClickRly=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.state=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.HandleClickRly)return t;let i=new u.bilibili.app.nativeact.v1.HandleClickRly;switch(t.state){default:if(typeof t.state=="number"){i.state=t.state;break}break;case"CRSUnknown":case 0:i.state=0;break;case"CRSDone":case 1:i.state=1;break;case"CRSUndone":case 2:i.state=2;break;case"CRSDisable":case 3:i.state=3;break}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.state=i.enums===String?"CRSUnknown":0),t.state!=null&&t.hasOwnProperty("state")&&(n.state=i.enums===String?u.bilibili.app.nativeact.v1.ClickRequestState[t.state]===void 0?t.state:u.bilibili.app.nativeact.v1.ClickRequestState[t.state]:t.state),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.nativeact.v1.HandleClickRly"},e}(),c.HoverButtonCard=function(){function e(l){if(this.mutexUkeys=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.item=u.bilibili.app.nativeact.v1.ClickItem.decode(t,t.uint32());break}case 2:{o.mutexUkeys&&o.mutexUkeys.length||(o.mutexUkeys=[]),o.mutexUkeys.push(t.string());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.nativeact.v1.HoverButtonCard)return t;let i=new u.bilibili.app.nativeact.v1.HoverButtonCard;if(t.item!=null){if(typeof t.item!="object")throw TypeError(".bilibili.app.nativeact.v1.HoverButtonCard.item: object expected");i.item=u.bilibili.app.nativeact.v1.ClickItem.fromObject(t.item)}if(t.mutexUkeys){if(!Array.isArray(t.mutexUkeys))throw TypeError(".bilibili.app.nativeact.v1.HoverButtonCard.mutexUkeys: array expected");i.mutexUkeys=[];for(let n=0;n>>3){default:t.skipType(a&7);break}}return o},e.fromObject=function(t){return t instanceof u.bilibili.app.playeronline.v1.NoReply?t:new u.bilibili.app.playeronline.v1.NoReply},e.toObject=function(){return{}},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.playeronline.v1.NoReply"},e}(),c.ReportWatchReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.aid=t.int64();break}case 2:{o.biz=t.string();break}case 3:{o.buvid=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.playeronline.v1.ReportWatchReq)return t;let i=new u.bilibili.app.playeronline.v1.ReportWatchReq;return t.aid!=null&&(r.Long?(i.aid=r.Long.fromValue(t.aid)).unsigned=!1:typeof t.aid=="string"?i.aid=parseInt(t.aid,10):typeof t.aid=="number"?i.aid=t.aid:typeof t.aid=="object"&&(i.aid=new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber())),t.biz!=null&&(i.biz=String(t.biz)),t.buvid!=null&&(i.buvid=String(t.buvid)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.aid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.aid=i.longs===String?"0":0;n.biz="",n.buvid=""}return t.aid!=null&&t.hasOwnProperty("aid")&&(typeof t.aid=="number"?n.aid=i.longs===String?String(t.aid):t.aid:n.aid=i.longs===String?r.Long.prototype.toString.call(t.aid):i.longs===Number?new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber():t.aid),t.biz!=null&&t.hasOwnProperty("biz")&&(n.biz=t.biz),t.buvid!=null&&t.hasOwnProperty("buvid")&&(n.buvid=t.buvid),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.playeronline.v1.ReportWatchReq"},e}(),c.PremiereInfoReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.aid=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.playeronline.v1.PremiereInfoReq)return t;let i=new u.bilibili.app.playeronline.v1.PremiereInfoReq;return t.aid!=null&&(r.Long?(i.aid=r.Long.fromValue(t.aid)).unsigned=!1:typeof t.aid=="string"?i.aid=parseInt(t.aid,10):typeof t.aid=="number"?i.aid=t.aid:typeof t.aid=="object"&&(i.aid=new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(r.Long){let o=new r.Long(0,0,!1);n.aid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.aid=i.longs===String?"0":0;return t.aid!=null&&t.hasOwnProperty("aid")&&(typeof t.aid=="number"?n.aid=i.longs===String?String(t.aid):t.aid:n.aid=i.longs===String?r.Long.prototype.toString.call(t.aid):i.longs===Number?new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber():t.aid),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.playeronline.v1.PremiereInfoReq"},e}(),c.PremiereInfoReply=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.premiereOverText=t.string();break}case 2:{o.participant=t.int64();break}case 3:{o.interaction=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.playeronline.v1.PremiereInfoReply)return t;let i=new u.bilibili.app.playeronline.v1.PremiereInfoReply;return t.premiereOverText!=null&&(i.premiereOverText=String(t.premiereOverText)),t.participant!=null&&(r.Long?(i.participant=r.Long.fromValue(t.participant)).unsigned=!1:typeof t.participant=="string"?i.participant=parseInt(t.participant,10):typeof t.participant=="number"?i.participant=t.participant:typeof t.participant=="object"&&(i.participant=new r.LongBits(t.participant.low>>>0,t.participant.high>>>0).toNumber())),t.interaction!=null&&(r.Long?(i.interaction=r.Long.fromValue(t.interaction)).unsigned=!1:typeof t.interaction=="string"?i.interaction=parseInt(t.interaction,10):typeof t.interaction=="number"?i.interaction=t.interaction:typeof t.interaction=="object"&&(i.interaction=new r.LongBits(t.interaction.low>>>0,t.interaction.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.premiereOverText="",r.Long){let o=new r.Long(0,0,!1);n.participant=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.participant=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.interaction=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.interaction=i.longs===String?"0":0}return t.premiereOverText!=null&&t.hasOwnProperty("premiereOverText")&&(n.premiereOverText=t.premiereOverText),t.participant!=null&&t.hasOwnProperty("participant")&&(typeof t.participant=="number"?n.participant=i.longs===String?String(t.participant):t.participant:n.participant=i.longs===String?r.Long.prototype.toString.call(t.participant):i.longs===Number?new r.LongBits(t.participant.low>>>0,t.participant.high>>>0).toNumber():t.participant),t.interaction!=null&&t.hasOwnProperty("interaction")&&(typeof t.interaction=="number"?n.interaction=i.longs===String?String(t.interaction):t.interaction:n.interaction=i.longs===String?r.Long.prototype.toString.call(t.interaction):i.longs===Number?new r.LongBits(t.interaction.low>>>0,t.interaction.high>>>0).toNumber():t.interaction),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.playeronline.v1.PremiereInfoReply"},e}(),c.PlayerOnlineReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.aid=t.int64();break}case 2:{o.cid=t.int64();break}case 3:{o.playOpen=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.playeronline.v1.PlayerOnlineReq)return t;let i=new u.bilibili.app.playeronline.v1.PlayerOnlineReq;return t.aid!=null&&(r.Long?(i.aid=r.Long.fromValue(t.aid)).unsigned=!1:typeof t.aid=="string"?i.aid=parseInt(t.aid,10):typeof t.aid=="number"?i.aid=t.aid:typeof t.aid=="object"&&(i.aid=new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber())),t.cid!=null&&(r.Long?(i.cid=r.Long.fromValue(t.cid)).unsigned=!1:typeof t.cid=="string"?i.cid=parseInt(t.cid,10):typeof t.cid=="number"?i.cid=t.cid:typeof t.cid=="object"&&(i.cid=new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber())),t.playOpen!=null&&(i.playOpen=!!t.playOpen),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.aid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.aid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.cid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.cid=i.longs===String?"0":0;n.playOpen=!1}return t.aid!=null&&t.hasOwnProperty("aid")&&(typeof t.aid=="number"?n.aid=i.longs===String?String(t.aid):t.aid:n.aid=i.longs===String?r.Long.prototype.toString.call(t.aid):i.longs===Number?new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber():t.aid),t.cid!=null&&t.hasOwnProperty("cid")&&(typeof t.cid=="number"?n.cid=i.longs===String?String(t.cid):t.cid:n.cid=i.longs===String?r.Long.prototype.toString.call(t.cid):i.longs===Number?new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber():t.cid),t.playOpen!=null&&t.hasOwnProperty("playOpen")&&(n.playOpen=t.playOpen),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.playeronline.v1.PlayerOnlineReq"},e}(),c.PlayerOnlineReply=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.totalText=t.string();break}case 2:{o.secNext=t.int64();break}case 3:{o.bottomShow=t.bool();break}case 4:{o.sdmShow=t.bool();break}case 5:{o.sdmText=t.string();break}case 6:{o.totalNumber=t.int64();break}case 7:{o.totalNumberText=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.playeronline.v1.PlayerOnlineReply)return t;let i=new u.bilibili.app.playeronline.v1.PlayerOnlineReply;return t.totalText!=null&&(i.totalText=String(t.totalText)),t.secNext!=null&&(r.Long?(i.secNext=r.Long.fromValue(t.secNext)).unsigned=!1:typeof t.secNext=="string"?i.secNext=parseInt(t.secNext,10):typeof t.secNext=="number"?i.secNext=t.secNext:typeof t.secNext=="object"&&(i.secNext=new r.LongBits(t.secNext.low>>>0,t.secNext.high>>>0).toNumber())),t.bottomShow!=null&&(i.bottomShow=!!t.bottomShow),t.sdmShow!=null&&(i.sdmShow=!!t.sdmShow),t.sdmText!=null&&(i.sdmText=String(t.sdmText)),t.totalNumber!=null&&(r.Long?(i.totalNumber=r.Long.fromValue(t.totalNumber)).unsigned=!1:typeof t.totalNumber=="string"?i.totalNumber=parseInt(t.totalNumber,10):typeof t.totalNumber=="number"?i.totalNumber=t.totalNumber:typeof t.totalNumber=="object"&&(i.totalNumber=new r.LongBits(t.totalNumber.low>>>0,t.totalNumber.high>>>0).toNumber())),t.totalNumberText!=null&&(i.totalNumberText=String(t.totalNumberText)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.totalText="",r.Long){let o=new r.Long(0,0,!1);n.secNext=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.secNext=i.longs===String?"0":0;if(n.bottomShow=!1,n.sdmShow=!1,n.sdmText="",r.Long){let o=new r.Long(0,0,!1);n.totalNumber=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.totalNumber=i.longs===String?"0":0;n.totalNumberText=""}return t.totalText!=null&&t.hasOwnProperty("totalText")&&(n.totalText=t.totalText),t.secNext!=null&&t.hasOwnProperty("secNext")&&(typeof t.secNext=="number"?n.secNext=i.longs===String?String(t.secNext):t.secNext:n.secNext=i.longs===String?r.Long.prototype.toString.call(t.secNext):i.longs===Number?new r.LongBits(t.secNext.low>>>0,t.secNext.high>>>0).toNumber():t.secNext),t.bottomShow!=null&&t.hasOwnProperty("bottomShow")&&(n.bottomShow=t.bottomShow),t.sdmShow!=null&&t.hasOwnProperty("sdmShow")&&(n.sdmShow=t.sdmShow),t.sdmText!=null&&t.hasOwnProperty("sdmText")&&(n.sdmText=t.sdmText),t.totalNumber!=null&&t.hasOwnProperty("totalNumber")&&(typeof t.totalNumber=="number"?n.totalNumber=i.longs===String?String(t.totalNumber):t.totalNumber:n.totalNumber=i.longs===String?r.Long.prototype.toString.call(t.totalNumber):i.longs===Number?new r.LongBits(t.totalNumber.low>>>0,t.totalNumber.high>>>0).toNumber():t.totalNumber),t.totalNumberText!=null&&t.hasOwnProperty("totalNumberText")&&(n.totalNumberText=t.totalNumberText),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.playeronline.v1.PlayerOnlineReply"},e}(),c}(),p}(),d.playerunite=function(){let p={};return p.pgcanymodel=function(){let c={};return c.PGCAnyModel=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 3:{o.business=u.bilibili.pgc.gateway.player.v2.PlayViewBusinessInfo.decode(t,t.uint32());break}case 4:{o.event=u.bilibili.pgc.gateway.player.v2.Event.decode(t,t.uint32());break}case 5:{o.viewInfo=u.bilibili.pgc.gateway.player.v2.ViewInfo.decode(t,t.uint32());break}case 6:{o.playExtConf=u.bilibili.pgc.gateway.player.v2.PlayAbilityExtConf.decode(t,t.uint32());break}case 7:{o.playExtInfo=u.bilibili.pgc.gateway.player.v2.PlayExtInfo.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.playerunite.pgcanymodel.PGCAnyModel)return t;let i=new u.bilibili.app.playerunite.pgcanymodel.PGCAnyModel;if(t.business!=null){if(typeof t.business!="object")throw TypeError(".bilibili.app.playerunite.pgcanymodel.PGCAnyModel.business: object expected");i.business=u.bilibili.pgc.gateway.player.v2.PlayViewBusinessInfo.fromObject(t.business)}if(t.event!=null){if(typeof t.event!="object")throw TypeError(".bilibili.app.playerunite.pgcanymodel.PGCAnyModel.event: object expected");i.event=u.bilibili.pgc.gateway.player.v2.Event.fromObject(t.event)}if(t.viewInfo!=null){if(typeof t.viewInfo!="object")throw TypeError(".bilibili.app.playerunite.pgcanymodel.PGCAnyModel.viewInfo: object expected");i.viewInfo=u.bilibili.pgc.gateway.player.v2.ViewInfo.fromObject(t.viewInfo)}if(t.playExtConf!=null){if(typeof t.playExtConf!="object")throw TypeError(".bilibili.app.playerunite.pgcanymodel.PGCAnyModel.playExtConf: object expected");i.playExtConf=u.bilibili.pgc.gateway.player.v2.PlayAbilityExtConf.fromObject(t.playExtConf)}if(t.playExtInfo!=null){if(typeof t.playExtInfo!="object")throw TypeError(".bilibili.app.playerunite.pgcanymodel.PGCAnyModel.playExtInfo: object expected");i.playExtInfo=u.bilibili.pgc.gateway.player.v2.PlayExtInfo.fromObject(t.playExtInfo)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.business=null,n.event=null,n.viewInfo=null,n.playExtConf=null,n.playExtInfo=null),t.business!=null&&t.hasOwnProperty("business")&&(n.business=u.bilibili.pgc.gateway.player.v2.PlayViewBusinessInfo.toObject(t.business,i)),t.event!=null&&t.hasOwnProperty("event")&&(n.event=u.bilibili.pgc.gateway.player.v2.Event.toObject(t.event,i)),t.viewInfo!=null&&t.hasOwnProperty("viewInfo")&&(n.viewInfo=u.bilibili.pgc.gateway.player.v2.ViewInfo.toObject(t.viewInfo,i)),t.playExtConf!=null&&t.hasOwnProperty("playExtConf")&&(n.playExtConf=u.bilibili.pgc.gateway.player.v2.PlayAbilityExtConf.toObject(t.playExtConf,i)),t.playExtInfo!=null&&t.hasOwnProperty("playExtInfo")&&(n.playExtInfo=u.bilibili.pgc.gateway.player.v2.PlayExtInfo.toObject(t.playExtInfo,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.playerunite.pgcanymodel.PGCAnyModel"},e}(),c}(),p.pugvanymodel=function(){let c={};return c.PUGVAnyModel=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.seasonId=t.int64();break}case 2:{o.episodeId=t.int64();break}case 3:{o.status=t.int32();break}case 4:{o.riskControl=u.bilibili.app.playerunite.pugvanymodel.RiskControl.decode(t,t.uint32());break}case 5:{o.playerMask=u.bilibili.app.playerunite.pugvanymodel.PlayerMask.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.playerunite.pugvanymodel.PUGVAnyModel)return t;let i=new u.bilibili.app.playerunite.pugvanymodel.PUGVAnyModel;switch(t.seasonId!=null&&(r.Long?(i.seasonId=r.Long.fromValue(t.seasonId)).unsigned=!1:typeof t.seasonId=="string"?i.seasonId=parseInt(t.seasonId,10):typeof t.seasonId=="number"?i.seasonId=t.seasonId:typeof t.seasonId=="object"&&(i.seasonId=new r.LongBits(t.seasonId.low>>>0,t.seasonId.high>>>0).toNumber())),t.episodeId!=null&&(r.Long?(i.episodeId=r.Long.fromValue(t.episodeId)).unsigned=!1:typeof t.episodeId=="string"?i.episodeId=parseInt(t.episodeId,10):typeof t.episodeId=="number"?i.episodeId=t.episodeId:typeof t.episodeId=="object"&&(i.episodeId=new r.LongBits(t.episodeId.low>>>0,t.episodeId.high>>>0).toNumber())),t.status){default:if(typeof t.status=="number"){i.status=t.status;break}break;case"EPISODE_STATUS_UNSPECIFIED":case 0:i.status=0;break;case"EPISODE_STATUS_TRY_WATCH_WHOLE":case 1:i.status=1;break;case"EPISODE_STATUS_NOT_TRY_WATCH":case 2:i.status=2;break;case"EPISODE_STATUS_TRY_WATCH_5_MINUTES":case 3:i.status=3;break}if(t.riskControl!=null){if(typeof t.riskControl!="object")throw TypeError(".bilibili.app.playerunite.pugvanymodel.PUGVAnyModel.riskControl: object expected");i.riskControl=u.bilibili.app.playerunite.pugvanymodel.RiskControl.fromObject(t.riskControl)}if(t.playerMask!=null){if(typeof t.playerMask!="object")throw TypeError(".bilibili.app.playerunite.pugvanymodel.PUGVAnyModel.playerMask: object expected");i.playerMask=u.bilibili.app.playerunite.pugvanymodel.PlayerMask.fromObject(t.playerMask)}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.seasonId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.seasonId=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.episodeId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.episodeId=i.longs===String?"0":0;n.status=i.enums===String?"EPISODE_STATUS_UNSPECIFIED":0,n.riskControl=null,n.playerMask=null}return t.seasonId!=null&&t.hasOwnProperty("seasonId")&&(typeof t.seasonId=="number"?n.seasonId=i.longs===String?String(t.seasonId):t.seasonId:n.seasonId=i.longs===String?r.Long.prototype.toString.call(t.seasonId):i.longs===Number?new r.LongBits(t.seasonId.low>>>0,t.seasonId.high>>>0).toNumber():t.seasonId),t.episodeId!=null&&t.hasOwnProperty("episodeId")&&(typeof t.episodeId=="number"?n.episodeId=i.longs===String?String(t.episodeId):t.episodeId:n.episodeId=i.longs===String?r.Long.prototype.toString.call(t.episodeId):i.longs===Number?new r.LongBits(t.episodeId.low>>>0,t.episodeId.high>>>0).toNumber():t.episodeId),t.status!=null&&t.hasOwnProperty("status")&&(n.status=i.enums===String?u.bilibili.app.playerunite.pugvanymodel.EpisodeStatus[t.status]===void 0?t.status:u.bilibili.app.playerunite.pugvanymodel.EpisodeStatus[t.status]:t.status),t.riskControl!=null&&t.hasOwnProperty("riskControl")&&(n.riskControl=u.bilibili.app.playerunite.pugvanymodel.RiskControl.toObject(t.riskControl,i)),t.playerMask!=null&&t.hasOwnProperty("playerMask")&&(n.playerMask=u.bilibili.app.playerunite.pugvanymodel.PlayerMask.toObject(t.playerMask,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.playerunite.pugvanymodel.PUGVAnyModel"},e}(),c.EpisodeStatus=function(){let e={},l=Object.create(e);return l[e[0]="EPISODE_STATUS_UNSPECIFIED"]=0,l[e[1]="EPISODE_STATUS_TRY_WATCH_WHOLE"]=1,l[e[2]="EPISODE_STATUS_NOT_TRY_WATCH"]=2,l[e[3]="EPISODE_STATUS_TRY_WATCH_5_MINUTES"]=3,l}(),c.RiskControl=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.needSendSms=t.bool();break}case 2:{o.title=t.string();break}case 3:{o.riskMessage=t.string();break}case 4:{o.actionDesc=t.string();break}case 5:{o.sendSmsUrl=t.string();break}case 6:{o.buvid=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.playerunite.pugvanymodel.RiskControl)return t;let i=new u.bilibili.app.playerunite.pugvanymodel.RiskControl;return t.needSendSms!=null&&(i.needSendSms=!!t.needSendSms),t.title!=null&&(i.title=String(t.title)),t.riskMessage!=null&&(i.riskMessage=String(t.riskMessage)),t.actionDesc!=null&&(i.actionDesc=String(t.actionDesc)),t.sendSmsUrl!=null&&(i.sendSmsUrl=String(t.sendSmsUrl)),t.buvid!=null&&(i.buvid=String(t.buvid)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.needSendSms=!1,n.title="",n.riskMessage="",n.actionDesc="",n.sendSmsUrl="",n.buvid=""),t.needSendSms!=null&&t.hasOwnProperty("needSendSms")&&(n.needSendSms=t.needSendSms),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.riskMessage!=null&&t.hasOwnProperty("riskMessage")&&(n.riskMessage=t.riskMessage),t.actionDesc!=null&&t.hasOwnProperty("actionDesc")&&(n.actionDesc=t.actionDesc),t.sendSmsUrl!=null&&t.hasOwnProperty("sendSmsUrl")&&(n.sendSmsUrl=t.sendSmsUrl),t.buvid!=null&&t.hasOwnProperty("buvid")&&(n.buvid=t.buvid),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.playerunite.pugvanymodel.RiskControl"},e}(),c.PlayerMask=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.prefix=t.string();break}case 3:{o.suffix=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.playerunite.pugvanymodel.PlayerMask)return t;let i=new u.bilibili.app.playerunite.pugvanymodel.PlayerMask;return t.title!=null&&(i.title=String(t.title)),t.prefix!=null&&(i.prefix=String(t.prefix)),t.suffix!=null&&(i.suffix=String(t.suffix)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.title="",n.prefix="",n.suffix=""),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.prefix!=null&&t.hasOwnProperty("prefix")&&(n.prefix=t.prefix),t.suffix!=null&&t.hasOwnProperty("suffix")&&(n.suffix=t.suffix),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.playerunite.pugvanymodel.PlayerMask"},e}(),c}(),p.ugcanymodel=function(){let c={};return c.UGCAnyModel=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.playLimit=u.bilibili.app.playerunite.ugcanymodel.PlayLimit.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.playerunite.ugcanymodel.UGCAnyModel)return t;let i=new u.bilibili.app.playerunite.ugcanymodel.UGCAnyModel;if(t.playLimit!=null){if(typeof t.playLimit!="object")throw TypeError(".bilibili.app.playerunite.ugcanymodel.UGCAnyModel.playLimit: object expected");i.playLimit=u.bilibili.app.playerunite.ugcanymodel.PlayLimit.fromObject(t.playLimit)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.playLimit=null),t.playLimit!=null&&t.hasOwnProperty("playLimit")&&(n.playLimit=u.bilibili.app.playerunite.ugcanymodel.PlayLimit.toObject(t.playLimit,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.playerunite.ugcanymodel.UGCAnyModel"},e}(),c.PlayLimit=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.code=t.int32();break}case 2:{o.message=t.string();break}case 3:{o.subMessage=t.string();break}case 4:{o.button=u.bilibili.app.playerunite.ugcanymodel.ButtonStyle.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.playerunite.ugcanymodel.PlayLimit)return t;let i=new u.bilibili.app.playerunite.ugcanymodel.PlayLimit;switch(t.code){default:if(typeof t.code=="number"){i.code=t.code;break}break;case"PLC_UNKNOWN":case 0:i.code=0;break;case"PLC_UGCNOTPAYED":case 1:i.code=1;break;case"PLC_ChargingPlusNotPass":case 2:i.code=2;break;case"PLC_ChargingPlusUpgrade":case 3:i.code=3;break;case"PLC_ChargingPlusReject":case 4:i.code=4;break}if(t.message!=null&&(i.message=String(t.message)),t.subMessage!=null&&(i.subMessage=String(t.subMessage)),t.button!=null){if(typeof t.button!="object")throw TypeError(".bilibili.app.playerunite.ugcanymodel.PlayLimit.button: object expected");i.button=u.bilibili.app.playerunite.ugcanymodel.ButtonStyle.fromObject(t.button)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.code=i.enums===String?"PLC_UNKNOWN":0,n.message="",n.subMessage="",n.button=null),t.code!=null&&t.hasOwnProperty("code")&&(n.code=i.enums===String?u.bilibili.app.playerunite.ugcanymodel.PlayLimitCode[t.code]===void 0?t.code:u.bilibili.app.playerunite.ugcanymodel.PlayLimitCode[t.code]:t.code),t.message!=null&&t.hasOwnProperty("message")&&(n.message=t.message),t.subMessage!=null&&t.hasOwnProperty("subMessage")&&(n.subMessage=t.subMessage),t.button!=null&&t.hasOwnProperty("button")&&(n.button=u.bilibili.app.playerunite.ugcanymodel.ButtonStyle.toObject(t.button,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.playerunite.ugcanymodel.PlayLimit"},e}(),c.PlayLimitCode=function(){let e={},l=Object.create(e);return l[e[0]="PLC_UNKNOWN"]=0,l[e[1]="PLC_UGCNOTPAYED"]=1,l[e[2]="PLC_ChargingPlusNotPass"]=2,l[e[3]="PLC_ChargingPlusUpgrade"]=3,l[e[4]="PLC_ChargingPlusReject"]=4,l}(),c.ButtonStyle=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.text=t.string();break}case 2:{o.textColor=t.string();break}case 3:{o.bgColor=t.string();break}case 4:{o.jumpLink=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.playerunite.ugcanymodel.ButtonStyle)return t;let i=new u.bilibili.app.playerunite.ugcanymodel.ButtonStyle;return t.text!=null&&(i.text=String(t.text)),t.textColor!=null&&(i.textColor=String(t.textColor)),t.bgColor!=null&&(i.bgColor=String(t.bgColor)),t.jumpLink!=null&&(i.jumpLink=String(t.jumpLink)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.text="",n.textColor="",n.bgColor="",n.jumpLink=""),t.text!=null&&t.hasOwnProperty("text")&&(n.text=t.text),t.textColor!=null&&t.hasOwnProperty("textColor")&&(n.textColor=t.textColor),t.bgColor!=null&&t.hasOwnProperty("bgColor")&&(n.bgColor=t.bgColor),t.jumpLink!=null&&t.hasOwnProperty("jumpLink")&&(n.jumpLink=t.jumpLink),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.playerunite.ugcanymodel.ButtonStyle"},e}(),c}(),p.v1=function(){let c={};return c.Player=function(){function e(l,t,i){b.rpc.Service.call(this,l,t,i)}return(e.prototype=Object.create(b.rpc.Service.prototype)).constructor=e,e.create=function(t,i,n){return new this(t,i,n)},Object.defineProperty(e.prototype.playViewUnite=function l(t,i){return this.rpcCall(l,u.bilibili.app.playerunite.v1.PlayViewUniteReq,u.bilibili.app.playerunite.v1.PlayViewUniteReply,t,i)},"name",{value:"PlayViewUnite"}),e}(),c.PlayViewUniteReq=function(){function e(l){if(this.extraContent={},l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.vod=u.bilibili.playershared.VideoVod.decode(t,t.uint32());break}case 2:{o.spmid=t.string();break}case 3:{o.fromSpmid=t.string();break}case 4:{o.extraContent===r.emptyObject&&(o.extraContent={});let v=t.uint32()+t.pos;for(a="",y="";t.pos>>3){case 1:a=t.string();break;case 2:y=t.string();break;default:t.skipType(g&7);break}}o.extraContent[a]=y;break}case 5:{o.bvid=t.string();break}case 6:{o.adExtra=t.string();break}case 7:{o.fragment=u.bilibili.playershared.Fragment.decode(t,t.uint32());break}case 8:{o.fromScene=t.string();break}default:t.skipType(s&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.playerunite.v1.PlayViewUniteReq)return t;let i=new u.bilibili.app.playerunite.v1.PlayViewUniteReq;if(t.vod!=null){if(typeof t.vod!="object")throw TypeError(".bilibili.app.playerunite.v1.PlayViewUniteReq.vod: object expected");i.vod=u.bilibili.playershared.VideoVod.fromObject(t.vod)}if(t.spmid!=null&&(i.spmid=String(t.spmid)),t.fromSpmid!=null&&(i.fromSpmid=String(t.fromSpmid)),t.extraContent){if(typeof t.extraContent!="object")throw TypeError(".bilibili.app.playerunite.v1.PlayViewUniteReq.extraContent: object expected");i.extraContent={};for(let n=Object.keys(t.extraContent),o=0;o>>3){case 1:{o.vodInfo=u.bilibili.playershared.VodInfo.decode(t,t.uint32());break}case 2:{o.playArcConf=u.bilibili.playershared.PlayArcConf.decode(t,t.uint32());break}case 3:{o.playDeviceConf=u.bilibili.playershared.PlayDeviceConf.decode(t,t.uint32());break}case 4:{o.event=u.bilibili.playershared.Event.decode(t,t.uint32());break}case 5:{o.supplement=u.google.protobuf.Any.decode(t,t.uint32());break}case 6:{o.playArc=u.bilibili.playershared.PlayArc.decode(t,t.uint32());break}case 7:{o.qnTrialInfo=u.bilibili.playershared.QnTrialInfo.decode(t,t.uint32());break}case 8:{o.history=u.bilibili.playershared.History.decode(t,t.uint32());break}case 9:{o.viewInfo=u.bilibili.playershared.ViewInfo.decode(t,t.uint32());break}case 10:{o.fragmentVideo=u.bilibili.playershared.FragmentVideo.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.playerunite.v1.PlayViewUniteReply)return t;let i=new u.bilibili.app.playerunite.v1.PlayViewUniteReply;if(t.vodInfo!=null){if(typeof t.vodInfo!="object")throw TypeError(".bilibili.app.playerunite.v1.PlayViewUniteReply.vodInfo: object expected");i.vodInfo=u.bilibili.playershared.VodInfo.fromObject(t.vodInfo)}if(t.playArcConf!=null){if(typeof t.playArcConf!="object")throw TypeError(".bilibili.app.playerunite.v1.PlayViewUniteReply.playArcConf: object expected");i.playArcConf=u.bilibili.playershared.PlayArcConf.fromObject(t.playArcConf)}if(t.playDeviceConf!=null){if(typeof t.playDeviceConf!="object")throw TypeError(".bilibili.app.playerunite.v1.PlayViewUniteReply.playDeviceConf: object expected");i.playDeviceConf=u.bilibili.playershared.PlayDeviceConf.fromObject(t.playDeviceConf)}if(t.event!=null){if(typeof t.event!="object")throw TypeError(".bilibili.app.playerunite.v1.PlayViewUniteReply.event: object expected");i.event=u.bilibili.playershared.Event.fromObject(t.event)}if(t.supplement!=null){if(typeof t.supplement!="object")throw TypeError(".bilibili.app.playerunite.v1.PlayViewUniteReply.supplement: object expected");i.supplement=u.google.protobuf.Any.fromObject(t.supplement)}if(t.playArc!=null){if(typeof t.playArc!="object")throw TypeError(".bilibili.app.playerunite.v1.PlayViewUniteReply.playArc: object expected");i.playArc=u.bilibili.playershared.PlayArc.fromObject(t.playArc)}if(t.qnTrialInfo!=null){if(typeof t.qnTrialInfo!="object")throw TypeError(".bilibili.app.playerunite.v1.PlayViewUniteReply.qnTrialInfo: object expected");i.qnTrialInfo=u.bilibili.playershared.QnTrialInfo.fromObject(t.qnTrialInfo)}if(t.history!=null){if(typeof t.history!="object")throw TypeError(".bilibili.app.playerunite.v1.PlayViewUniteReply.history: object expected");i.history=u.bilibili.playershared.History.fromObject(t.history)}if(t.viewInfo!=null){if(typeof t.viewInfo!="object")throw TypeError(".bilibili.app.playerunite.v1.PlayViewUniteReply.viewInfo: object expected");i.viewInfo=u.bilibili.playershared.ViewInfo.fromObject(t.viewInfo)}if(t.fragmentVideo!=null){if(typeof t.fragmentVideo!="object")throw TypeError(".bilibili.app.playerunite.v1.PlayViewUniteReply.fragmentVideo: object expected");i.fragmentVideo=u.bilibili.playershared.FragmentVideo.fromObject(t.fragmentVideo)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.vodInfo=null,n.playArcConf=null,n.playDeviceConf=null,n.event=null,n.supplement=null,n.playArc=null,n.qnTrialInfo=null,n.history=null,n.viewInfo=null,n.fragmentVideo=null),t.vodInfo!=null&&t.hasOwnProperty("vodInfo")&&(n.vodInfo=u.bilibili.playershared.VodInfo.toObject(t.vodInfo,i)),t.playArcConf!=null&&t.hasOwnProperty("playArcConf")&&(n.playArcConf=u.bilibili.playershared.PlayArcConf.toObject(t.playArcConf,i)),t.playDeviceConf!=null&&t.hasOwnProperty("playDeviceConf")&&(n.playDeviceConf=u.bilibili.playershared.PlayDeviceConf.toObject(t.playDeviceConf,i)),t.event!=null&&t.hasOwnProperty("event")&&(n.event=u.bilibili.playershared.Event.toObject(t.event,i)),t.supplement!=null&&t.hasOwnProperty("supplement")&&(n.supplement=u.google.protobuf.Any.toObject(t.supplement,i)),t.playArc!=null&&t.hasOwnProperty("playArc")&&(n.playArc=u.bilibili.playershared.PlayArc.toObject(t.playArc,i)),t.qnTrialInfo!=null&&t.hasOwnProperty("qnTrialInfo")&&(n.qnTrialInfo=u.bilibili.playershared.QnTrialInfo.toObject(t.qnTrialInfo,i)),t.history!=null&&t.hasOwnProperty("history")&&(n.history=u.bilibili.playershared.History.toObject(t.history,i)),t.viewInfo!=null&&t.hasOwnProperty("viewInfo")&&(n.viewInfo=u.bilibili.playershared.ViewInfo.toObject(t.viewInfo,i)),t.fragmentVideo!=null&&t.hasOwnProperty("fragmentVideo")&&(n.fragmentVideo=u.bilibili.playershared.FragmentVideo.toObject(t.fragmentVideo,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.playerunite.v1.PlayViewUniteReply"},e}(),c}(),p}(),d.playurl=function(){let p={};return p.v1=function(){let c={};return c.PlayURL=function(){function e(l,t,i){b.rpc.Service.call(this,l,t,i)}return(e.prototype=Object.create(b.rpc.Service.prototype)).constructor=e,e.create=function(t,i,n){return new this(t,i,n)},Object.defineProperty(e.prototype.playURL=function l(t,i){return this.rpcCall(l,u.bilibili.app.playurl.v1.PlayURLReq,u.bilibili.app.playurl.v1.PlayURLReply,t,i)},"name",{value:"PlayURL"}),Object.defineProperty(e.prototype.project=function l(t,i){return this.rpcCall(l,u.bilibili.app.playurl.v1.ProjectReq,u.bilibili.app.playurl.v1.ProjectReply,t,i)},"name",{value:"Project"}),Object.defineProperty(e.prototype.playView=function l(t,i){return this.rpcCall(l,u.bilibili.app.playurl.v1.PlayViewReq,u.bilibili.app.playurl.v1.PlayViewReply,t,i)},"name",{value:"PlayView"}),Object.defineProperty(e.prototype.playConfEdit=function l(t,i){return this.rpcCall(l,u.bilibili.app.playurl.v1.PlayConfEditReq,u.bilibili.app.playurl.v1.PlayConfEditReply,t,i)},"name",{value:"PlayConfEdit"}),Object.defineProperty(e.prototype.playConf=function l(t,i){return this.rpcCall(l,u.bilibili.app.playurl.v1.PlayConfReq,u.bilibili.app.playurl.v1.PlayConfReply,t,i)},"name",{value:"PlayConf"}),e}(),c.PlayURLReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.aid=t.int64();break}case 2:{o.cid=t.int64();break}case 3:{o.qn=t.int64();break}case 4:{o.fnver=t.int32();break}case 5:{o.fnval=t.int32();break}case 6:{o.download=t.uint32();break}case 7:{o.forceHost=t.int32();break}case 8:{o.fourk=t.bool();break}case 9:{o.spmid=t.string();break}case 10:{o.fromSpmid=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.playurl.v1.PlayURLReq)return t;let i=new u.bilibili.app.playurl.v1.PlayURLReq;return t.aid!=null&&(r.Long?(i.aid=r.Long.fromValue(t.aid)).unsigned=!1:typeof t.aid=="string"?i.aid=parseInt(t.aid,10):typeof t.aid=="number"?i.aid=t.aid:typeof t.aid=="object"&&(i.aid=new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber())),t.cid!=null&&(r.Long?(i.cid=r.Long.fromValue(t.cid)).unsigned=!1:typeof t.cid=="string"?i.cid=parseInt(t.cid,10):typeof t.cid=="number"?i.cid=t.cid:typeof t.cid=="object"&&(i.cid=new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber())),t.qn!=null&&(r.Long?(i.qn=r.Long.fromValue(t.qn)).unsigned=!1:typeof t.qn=="string"?i.qn=parseInt(t.qn,10):typeof t.qn=="number"?i.qn=t.qn:typeof t.qn=="object"&&(i.qn=new r.LongBits(t.qn.low>>>0,t.qn.high>>>0).toNumber())),t.fnver!=null&&(i.fnver=t.fnver|0),t.fnval!=null&&(i.fnval=t.fnval|0),t.download!=null&&(i.download=t.download>>>0),t.forceHost!=null&&(i.forceHost=t.forceHost|0),t.fourk!=null&&(i.fourk=!!t.fourk),t.spmid!=null&&(i.spmid=String(t.spmid)),t.fromSpmid!=null&&(i.fromSpmid=String(t.fromSpmid)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.aid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.aid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.cid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.cid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.qn=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.qn=i.longs===String?"0":0;n.fnver=0,n.fnval=0,n.download=0,n.forceHost=0,n.fourk=!1,n.spmid="",n.fromSpmid=""}return t.aid!=null&&t.hasOwnProperty("aid")&&(typeof t.aid=="number"?n.aid=i.longs===String?String(t.aid):t.aid:n.aid=i.longs===String?r.Long.prototype.toString.call(t.aid):i.longs===Number?new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber():t.aid),t.cid!=null&&t.hasOwnProperty("cid")&&(typeof t.cid=="number"?n.cid=i.longs===String?String(t.cid):t.cid:n.cid=i.longs===String?r.Long.prototype.toString.call(t.cid):i.longs===Number?new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber():t.cid),t.qn!=null&&t.hasOwnProperty("qn")&&(typeof t.qn=="number"?n.qn=i.longs===String?String(t.qn):t.qn:n.qn=i.longs===String?r.Long.prototype.toString.call(t.qn):i.longs===Number?new r.LongBits(t.qn.low>>>0,t.qn.high>>>0).toNumber():t.qn),t.fnver!=null&&t.hasOwnProperty("fnver")&&(n.fnver=t.fnver),t.fnval!=null&&t.hasOwnProperty("fnval")&&(n.fnval=t.fnval),t.download!=null&&t.hasOwnProperty("download")&&(n.download=t.download),t.forceHost!=null&&t.hasOwnProperty("forceHost")&&(n.forceHost=t.forceHost),t.fourk!=null&&t.hasOwnProperty("fourk")&&(n.fourk=t.fourk),t.spmid!=null&&t.hasOwnProperty("spmid")&&(n.spmid=t.spmid),t.fromSpmid!=null&&t.hasOwnProperty("fromSpmid")&&(n.fromSpmid=t.fromSpmid),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.playurl.v1.PlayURLReq"},e}(),c.PlayURLReply=function(){function e(l){if(this.durl=[],this.supportFormats=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.quality=t.uint32();break}case 2:{o.format=t.string();break}case 3:{o.timelength=t.uint64();break}case 4:{o.videoCodecid=t.uint32();break}case 5:{o.fnver=t.uint32();break}case 6:{o.fnval=t.uint32();break}case 7:{o.videoProject=t.bool();break}case 8:{o.durl&&o.durl.length||(o.durl=[]),o.durl.push(u.bilibili.app.playurl.v1.ResponseUrl.decode(t,t.uint32()));break}case 9:{o.dash=u.bilibili.app.playurl.v1.ResponseDash.decode(t,t.uint32());break}case 10:{o.noRexcode=t.int32();break}case 11:{o.upgradeLimit=u.bilibili.app.playurl.v1.UpgradeLimit.decode(t,t.uint32());break}case 12:{o.supportFormats&&o.supportFormats.length||(o.supportFormats=[]),o.supportFormats.push(u.bilibili.app.playurl.v1.FormatDescription.decode(t,t.uint32()));break}case 13:{o.type=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.playurl.v1.PlayURLReply)return t;let i=new u.bilibili.app.playurl.v1.PlayURLReply;if(t.quality!=null&&(i.quality=t.quality>>>0),t.format!=null&&(i.format=String(t.format)),t.timelength!=null&&(r.Long?(i.timelength=r.Long.fromValue(t.timelength)).unsigned=!0:typeof t.timelength=="string"?i.timelength=parseInt(t.timelength,10):typeof t.timelength=="number"?i.timelength=t.timelength:typeof t.timelength=="object"&&(i.timelength=new r.LongBits(t.timelength.low>>>0,t.timelength.high>>>0).toNumber(!0))),t.videoCodecid!=null&&(i.videoCodecid=t.videoCodecid>>>0),t.fnver!=null&&(i.fnver=t.fnver>>>0),t.fnval!=null&&(i.fnval=t.fnval>>>0),t.videoProject!=null&&(i.videoProject=!!t.videoProject),t.durl){if(!Array.isArray(t.durl))throw TypeError(".bilibili.app.playurl.v1.PlayURLReply.durl: array expected");i.durl=[];for(let n=0;n>>0,t.timelength.high>>>0).toNumber(!0):t.timelength),t.videoCodecid!=null&&t.hasOwnProperty("videoCodecid")&&(n.videoCodecid=t.videoCodecid),t.fnver!=null&&t.hasOwnProperty("fnver")&&(n.fnver=t.fnver),t.fnval!=null&&t.hasOwnProperty("fnval")&&(n.fnval=t.fnval),t.videoProject!=null&&t.hasOwnProperty("videoProject")&&(n.videoProject=t.videoProject),t.durl&&t.durl.length){n.durl=[];for(let o=0;o>>3){case 1:{o.order=t.uint32();break}case 2:{o.length=t.uint64();break}case 3:{o.size=t.uint64();break}case 4:{o.url=t.string();break}case 5:{o.backupUrl&&o.backupUrl.length||(o.backupUrl=[]),o.backupUrl.push(t.string());break}case 6:{o.md5=t.string();break}case 7:{o.quality=t.uint32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.playurl.v1.ResponseUrl)return t;let i=new u.bilibili.app.playurl.v1.ResponseUrl;if(t.order!=null&&(i.order=t.order>>>0),t.length!=null&&(r.Long?(i.length=r.Long.fromValue(t.length)).unsigned=!0:typeof t.length=="string"?i.length=parseInt(t.length,10):typeof t.length=="number"?i.length=t.length:typeof t.length=="object"&&(i.length=new r.LongBits(t.length.low>>>0,t.length.high>>>0).toNumber(!0))),t.size!=null&&(r.Long?(i.size=r.Long.fromValue(t.size)).unsigned=!0:typeof t.size=="string"?i.size=parseInt(t.size,10):typeof t.size=="number"?i.size=t.size:typeof t.size=="object"&&(i.size=new r.LongBits(t.size.low>>>0,t.size.high>>>0).toNumber(!0))),t.url!=null&&(i.url=String(t.url)),t.backupUrl){if(!Array.isArray(t.backupUrl))throw TypeError(".bilibili.app.playurl.v1.ResponseUrl.backupUrl: array expected");i.backupUrl=[];for(let n=0;n>>0),i},e.toObject=function(t,i){i||(i={});let n={};if((i.arrays||i.defaults)&&(n.backupUrl=[]),i.defaults){if(n.order=0,r.Long){let o=new r.Long(0,0,!0);n.length=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.length=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!0);n.size=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.size=i.longs===String?"0":0;n.url="",n.md5="",n.quality=0}if(t.order!=null&&t.hasOwnProperty("order")&&(n.order=t.order),t.length!=null&&t.hasOwnProperty("length")&&(typeof t.length=="number"?n.length=i.longs===String?String(t.length):t.length:n.length=i.longs===String?r.Long.prototype.toString.call(t.length):i.longs===Number?new r.LongBits(t.length.low>>>0,t.length.high>>>0).toNumber(!0):t.length),t.size!=null&&t.hasOwnProperty("size")&&(typeof t.size=="number"?n.size=i.longs===String?String(t.size):t.size:n.size=i.longs===String?r.Long.prototype.toString.call(t.size):i.longs===Number?new r.LongBits(t.size.low>>>0,t.size.high>>>0).toNumber(!0):t.size),t.url!=null&&t.hasOwnProperty("url")&&(n.url=t.url),t.backupUrl&&t.backupUrl.length){n.backupUrl=[];for(let o=0;o>>3){case 1:{o.video&&o.video.length||(o.video=[]),o.video.push(u.bilibili.app.playurl.v1.DashItem.decode(t,t.uint32()));break}case 2:{o.audio&&o.audio.length||(o.audio=[]),o.audio.push(u.bilibili.app.playurl.v1.DashItem.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.playurl.v1.ResponseDash)return t;let i=new u.bilibili.app.playurl.v1.ResponseDash;if(t.video){if(!Array.isArray(t.video))throw TypeError(".bilibili.app.playurl.v1.ResponseDash.video: array expected");i.video=[];for(let n=0;n>>3){case 1:{o.id=t.uint32();break}case 2:{o.baseUrl=t.string();break}case 3:{o.backupUrl&&o.backupUrl.length||(o.backupUrl=[]),o.backupUrl.push(t.string());break}case 4:{o.bandwidth=t.uint32();break}case 5:{o.codecid=t.uint32();break}case 6:{o.md5=t.string();break}case 7:{o.size=t.uint64();break}case 8:{o.frameRate=t.string();break}case 9:{o.widevinePssh=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.playurl.v1.DashItem)return t;let i=new u.bilibili.app.playurl.v1.DashItem;if(t.id!=null&&(i.id=t.id>>>0),t.baseUrl!=null&&(i.baseUrl=String(t.baseUrl)),t.backupUrl){if(!Array.isArray(t.backupUrl))throw TypeError(".bilibili.app.playurl.v1.DashItem.backupUrl: array expected");i.backupUrl=[];for(let n=0;n>>0),t.codecid!=null&&(i.codecid=t.codecid>>>0),t.md5!=null&&(i.md5=String(t.md5)),t.size!=null&&(r.Long?(i.size=r.Long.fromValue(t.size)).unsigned=!0:typeof t.size=="string"?i.size=parseInt(t.size,10):typeof t.size=="number"?i.size=t.size:typeof t.size=="object"&&(i.size=new r.LongBits(t.size.low>>>0,t.size.high>>>0).toNumber(!0))),t.frameRate!=null&&(i.frameRate=String(t.frameRate)),t.widevinePssh!=null&&(i.widevinePssh=String(t.widevinePssh)),i},e.toObject=function(t,i){i||(i={});let n={};if((i.arrays||i.defaults)&&(n.backupUrl=[]),i.defaults){if(n.id=0,n.baseUrl="",n.bandwidth=0,n.codecid=0,n.md5="",r.Long){let o=new r.Long(0,0,!0);n.size=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.size=i.longs===String?"0":0;n.frameRate="",n.widevinePssh=""}if(t.id!=null&&t.hasOwnProperty("id")&&(n.id=t.id),t.baseUrl!=null&&t.hasOwnProperty("baseUrl")&&(n.baseUrl=t.baseUrl),t.backupUrl&&t.backupUrl.length){n.backupUrl=[];for(let o=0;o>>0,t.size.high>>>0).toNumber(!0):t.size),t.frameRate!=null&&t.hasOwnProperty("frameRate")&&(n.frameRate=t.frameRate),t.widevinePssh!=null&&t.hasOwnProperty("widevinePssh")&&(n.widevinePssh=t.widevinePssh),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.playurl.v1.DashItem"},e}(),c.PlayLimit=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.code=t.int32();break}case 2:{o.message=t.string();break}case 3:{o.subMessage=t.string();break}case 4:{o.button=u.bilibili.app.playurl.v1.ButtonStyle.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.playurl.v1.PlayLimit)return t;let i=new u.bilibili.app.playurl.v1.PlayLimit;switch(t.code){default:if(typeof t.code=="number"){i.code=t.code;break}break;case"PLCUnkown":case 0:i.code=0;break;case"PLCUgcNotPayed":case 1:i.code=1;break;case"PLCChargingPlusNotPass":case 2:i.code=2;break;case"PLCChargingPlusUpgrade":case 3:i.code=3;break}if(t.message!=null&&(i.message=String(t.message)),t.subMessage!=null&&(i.subMessage=String(t.subMessage)),t.button!=null){if(typeof t.button!="object")throw TypeError(".bilibili.app.playurl.v1.PlayLimit.button: object expected");i.button=u.bilibili.app.playurl.v1.ButtonStyle.fromObject(t.button)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.code=i.enums===String?"PLCUnkown":0,n.message="",n.subMessage="",n.button=null),t.code!=null&&t.hasOwnProperty("code")&&(n.code=i.enums===String?u.bilibili.app.playurl.v1.PlayLimitCode[t.code]===void 0?t.code:u.bilibili.app.playurl.v1.PlayLimitCode[t.code]:t.code),t.message!=null&&t.hasOwnProperty("message")&&(n.message=t.message),t.subMessage!=null&&t.hasOwnProperty("subMessage")&&(n.subMessage=t.subMessage),t.button!=null&&t.hasOwnProperty("button")&&(n.button=u.bilibili.app.playurl.v1.ButtonStyle.toObject(t.button,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.playurl.v1.PlayLimit"},e}(),c.PlayLimitCode=function(){let e={},l=Object.create(e);return l[e[0]="PLCUnkown"]=0,l[e[1]="PLCUgcNotPayed"]=1,l[e[2]="PLCChargingPlusNotPass"]=2,l[e[3]="PLCChargingPlusUpgrade"]=3,l}(),c.ButtonStyle=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.text=t.string();break}case 2:{o.textColor=t.string();break}case 3:{o.bgColor=t.string();break}case 4:{o.jumpLink=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.playurl.v1.ButtonStyle)return t;let i=new u.bilibili.app.playurl.v1.ButtonStyle;return t.text!=null&&(i.text=String(t.text)),t.textColor!=null&&(i.textColor=String(t.textColor)),t.bgColor!=null&&(i.bgColor=String(t.bgColor)),t.jumpLink!=null&&(i.jumpLink=String(t.jumpLink)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.text="",n.textColor="",n.bgColor="",n.jumpLink=""),t.text!=null&&t.hasOwnProperty("text")&&(n.text=t.text),t.textColor!=null&&t.hasOwnProperty("textColor")&&(n.textColor=t.textColor),t.bgColor!=null&&t.hasOwnProperty("bgColor")&&(n.bgColor=t.bgColor),t.jumpLink!=null&&t.hasOwnProperty("jumpLink")&&(n.jumpLink=t.jumpLink),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.playurl.v1.ButtonStyle"},e}(),c.UpgradeLimit=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.code=t.int32();break}case 2:{o.message=t.string();break}case 3:{o.image=t.string();break}case 4:{o.button=u.bilibili.app.playurl.v1.UpgradeButton.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.playurl.v1.UpgradeLimit)return t;let i=new u.bilibili.app.playurl.v1.UpgradeLimit;if(t.code!=null&&(i.code=t.code|0),t.message!=null&&(i.message=String(t.message)),t.image!=null&&(i.image=String(t.image)),t.button!=null){if(typeof t.button!="object")throw TypeError(".bilibili.app.playurl.v1.UpgradeLimit.button: object expected");i.button=u.bilibili.app.playurl.v1.UpgradeButton.fromObject(t.button)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.code=0,n.message="",n.image="",n.button=null),t.code!=null&&t.hasOwnProperty("code")&&(n.code=t.code),t.message!=null&&t.hasOwnProperty("message")&&(n.message=t.message),t.image!=null&&t.hasOwnProperty("image")&&(n.image=t.image),t.button!=null&&t.hasOwnProperty("button")&&(n.button=u.bilibili.app.playurl.v1.UpgradeButton.toObject(t.button,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.playurl.v1.UpgradeLimit"},e}(),c.UpgradeButton=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.link=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.playurl.v1.UpgradeButton)return t;let i=new u.bilibili.app.playurl.v1.UpgradeButton;return t.title!=null&&(i.title=String(t.title)),t.link!=null&&(i.link=String(t.link)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.title="",n.link=""),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.link!=null&&t.hasOwnProperty("link")&&(n.link=t.link),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.playurl.v1.UpgradeButton"},e}(),c.FormatDescription=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.quality=t.uint32();break}case 2:{o.format=t.string();break}case 3:{o.description=t.string();break}case 4:{o.newDescription=t.string();break}case 5:{o.displayDesc=t.string();break}case 6:{o.superscript=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.playurl.v1.FormatDescription)return t;let i=new u.bilibili.app.playurl.v1.FormatDescription;return t.quality!=null&&(i.quality=t.quality>>>0),t.format!=null&&(i.format=String(t.format)),t.description!=null&&(i.description=String(t.description)),t.newDescription!=null&&(i.newDescription=String(t.newDescription)),t.displayDesc!=null&&(i.displayDesc=String(t.displayDesc)),t.superscript!=null&&(i.superscript=String(t.superscript)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.quality=0,n.format="",n.description="",n.newDescription="",n.displayDesc="",n.superscript=""),t.quality!=null&&t.hasOwnProperty("quality")&&(n.quality=t.quality),t.format!=null&&t.hasOwnProperty("format")&&(n.format=t.format),t.description!=null&&t.hasOwnProperty("description")&&(n.description=t.description),t.newDescription!=null&&t.hasOwnProperty("newDescription")&&(n.newDescription=t.newDescription),t.displayDesc!=null&&t.hasOwnProperty("displayDesc")&&(n.displayDesc=t.displayDesc),t.superscript!=null&&t.hasOwnProperty("superscript")&&(n.superscript=t.superscript),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.playurl.v1.FormatDescription"},e}(),c.ProjectReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.aid=t.int64();break}case 2:{o.cid=t.int64();break}case 3:{o.qn=t.int64();break}case 4:{o.fnver=t.int32();break}case 5:{o.fnval=t.int32();break}case 6:{o.download=t.uint32();break}case 7:{o.forceHost=t.int32();break}case 8:{o.fourk=t.bool();break}case 9:{o.spmid=t.string();break}case 10:{o.fromSpmid=t.string();break}case 11:{o.protocol=t.int32();break}case 12:{o.deviceType=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.playurl.v1.ProjectReq)return t;let i=new u.bilibili.app.playurl.v1.ProjectReq;return t.aid!=null&&(r.Long?(i.aid=r.Long.fromValue(t.aid)).unsigned=!1:typeof t.aid=="string"?i.aid=parseInt(t.aid,10):typeof t.aid=="number"?i.aid=t.aid:typeof t.aid=="object"&&(i.aid=new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber())),t.cid!=null&&(r.Long?(i.cid=r.Long.fromValue(t.cid)).unsigned=!1:typeof t.cid=="string"?i.cid=parseInt(t.cid,10):typeof t.cid=="number"?i.cid=t.cid:typeof t.cid=="object"&&(i.cid=new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber())),t.qn!=null&&(r.Long?(i.qn=r.Long.fromValue(t.qn)).unsigned=!1:typeof t.qn=="string"?i.qn=parseInt(t.qn,10):typeof t.qn=="number"?i.qn=t.qn:typeof t.qn=="object"&&(i.qn=new r.LongBits(t.qn.low>>>0,t.qn.high>>>0).toNumber())),t.fnver!=null&&(i.fnver=t.fnver|0),t.fnval!=null&&(i.fnval=t.fnval|0),t.download!=null&&(i.download=t.download>>>0),t.forceHost!=null&&(i.forceHost=t.forceHost|0),t.fourk!=null&&(i.fourk=!!t.fourk),t.spmid!=null&&(i.spmid=String(t.spmid)),t.fromSpmid!=null&&(i.fromSpmid=String(t.fromSpmid)),t.protocol!=null&&(i.protocol=t.protocol|0),t.deviceType!=null&&(i.deviceType=t.deviceType|0),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.aid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.aid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.cid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.cid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.qn=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.qn=i.longs===String?"0":0;n.fnver=0,n.fnval=0,n.download=0,n.forceHost=0,n.fourk=!1,n.spmid="",n.fromSpmid="",n.protocol=0,n.deviceType=0}return t.aid!=null&&t.hasOwnProperty("aid")&&(typeof t.aid=="number"?n.aid=i.longs===String?String(t.aid):t.aid:n.aid=i.longs===String?r.Long.prototype.toString.call(t.aid):i.longs===Number?new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber():t.aid),t.cid!=null&&t.hasOwnProperty("cid")&&(typeof t.cid=="number"?n.cid=i.longs===String?String(t.cid):t.cid:n.cid=i.longs===String?r.Long.prototype.toString.call(t.cid):i.longs===Number?new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber():t.cid),t.qn!=null&&t.hasOwnProperty("qn")&&(typeof t.qn=="number"?n.qn=i.longs===String?String(t.qn):t.qn:n.qn=i.longs===String?r.Long.prototype.toString.call(t.qn):i.longs===Number?new r.LongBits(t.qn.low>>>0,t.qn.high>>>0).toNumber():t.qn),t.fnver!=null&&t.hasOwnProperty("fnver")&&(n.fnver=t.fnver),t.fnval!=null&&t.hasOwnProperty("fnval")&&(n.fnval=t.fnval),t.download!=null&&t.hasOwnProperty("download")&&(n.download=t.download),t.forceHost!=null&&t.hasOwnProperty("forceHost")&&(n.forceHost=t.forceHost),t.fourk!=null&&t.hasOwnProperty("fourk")&&(n.fourk=t.fourk),t.spmid!=null&&t.hasOwnProperty("spmid")&&(n.spmid=t.spmid),t.fromSpmid!=null&&t.hasOwnProperty("fromSpmid")&&(n.fromSpmid=t.fromSpmid),t.protocol!=null&&t.hasOwnProperty("protocol")&&(n.protocol=t.protocol),t.deviceType!=null&&t.hasOwnProperty("deviceType")&&(n.deviceType=t.deviceType),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.playurl.v1.ProjectReq"},e}(),c.ProjectReply=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.project=u.bilibili.app.playurl.v1.PlayURLReply.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.playurl.v1.ProjectReply)return t;let i=new u.bilibili.app.playurl.v1.ProjectReply;if(t.project!=null){if(typeof t.project!="object")throw TypeError(".bilibili.app.playurl.v1.ProjectReply.project: object expected");i.project=u.bilibili.app.playurl.v1.PlayURLReply.fromObject(t.project)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.project=null),t.project!=null&&t.hasOwnProperty("project")&&(n.project=u.bilibili.app.playurl.v1.PlayURLReply.toObject(t.project,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.playurl.v1.ProjectReply"},e}(),c.PlayViewReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.aid=t.int64();break}case 2:{o.cid=t.int64();break}case 3:{o.qn=t.int64();break}case 4:{o.fnver=t.int32();break}case 5:{o.fnval=t.int32();break}case 6:{o.download=t.uint32();break}case 7:{o.forceHost=t.int32();break}case 8:{o.fourk=t.bool();break}case 9:{o.spmid=t.string();break}case 10:{o.fromSpmid=t.string();break}case 11:{o.teenagersMode=t.int32();break}case 12:{o.preferCodecType=t.int32();break}case 13:{o.business=t.int32();break}case 14:{o.voiceBalance=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.playurl.v1.PlayViewReq)return t;let i=new u.bilibili.app.playurl.v1.PlayViewReq;switch(t.aid!=null&&(r.Long?(i.aid=r.Long.fromValue(t.aid)).unsigned=!1:typeof t.aid=="string"?i.aid=parseInt(t.aid,10):typeof t.aid=="number"?i.aid=t.aid:typeof t.aid=="object"&&(i.aid=new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber())),t.cid!=null&&(r.Long?(i.cid=r.Long.fromValue(t.cid)).unsigned=!1:typeof t.cid=="string"?i.cid=parseInt(t.cid,10):typeof t.cid=="number"?i.cid=t.cid:typeof t.cid=="object"&&(i.cid=new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber())),t.qn!=null&&(r.Long?(i.qn=r.Long.fromValue(t.qn)).unsigned=!1:typeof t.qn=="string"?i.qn=parseInt(t.qn,10):typeof t.qn=="number"?i.qn=t.qn:typeof t.qn=="object"&&(i.qn=new r.LongBits(t.qn.low>>>0,t.qn.high>>>0).toNumber())),t.fnver!=null&&(i.fnver=t.fnver|0),t.fnval!=null&&(i.fnval=t.fnval|0),t.download!=null&&(i.download=t.download>>>0),t.forceHost!=null&&(i.forceHost=t.forceHost|0),t.fourk!=null&&(i.fourk=!!t.fourk),t.spmid!=null&&(i.spmid=String(t.spmid)),t.fromSpmid!=null&&(i.fromSpmid=String(t.fromSpmid)),t.teenagersMode!=null&&(i.teenagersMode=t.teenagersMode|0),t.preferCodecType){default:if(typeof t.preferCodecType=="number"){i.preferCodecType=t.preferCodecType;break}break;case"NOCODE":case 0:i.preferCodecType=0;break;case"CODE264":case 1:i.preferCodecType=1;break;case"CODE265":case 2:i.preferCodecType=2;break;case"CODEAV1":case 3:i.preferCodecType=3;break}switch(t.business){default:if(typeof t.business=="number"){i.business=t.business;break}break;case"UNKNOWN":case 0:i.business=0;break;case"STORY":case 1:i.business=1;break}return t.voiceBalance!=null&&(r.Long?(i.voiceBalance=r.Long.fromValue(t.voiceBalance)).unsigned=!1:typeof t.voiceBalance=="string"?i.voiceBalance=parseInt(t.voiceBalance,10):typeof t.voiceBalance=="number"?i.voiceBalance=t.voiceBalance:typeof t.voiceBalance=="object"&&(i.voiceBalance=new r.LongBits(t.voiceBalance.low>>>0,t.voiceBalance.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.aid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.aid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.cid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.cid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.qn=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.qn=i.longs===String?"0":0;if(n.fnver=0,n.fnval=0,n.download=0,n.forceHost=0,n.fourk=!1,n.spmid="",n.fromSpmid="",n.teenagersMode=0,n.preferCodecType=i.enums===String?"NOCODE":0,n.business=i.enums===String?"UNKNOWN":0,r.Long){let o=new r.Long(0,0,!1);n.voiceBalance=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.voiceBalance=i.longs===String?"0":0}return t.aid!=null&&t.hasOwnProperty("aid")&&(typeof t.aid=="number"?n.aid=i.longs===String?String(t.aid):t.aid:n.aid=i.longs===String?r.Long.prototype.toString.call(t.aid):i.longs===Number?new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber():t.aid),t.cid!=null&&t.hasOwnProperty("cid")&&(typeof t.cid=="number"?n.cid=i.longs===String?String(t.cid):t.cid:n.cid=i.longs===String?r.Long.prototype.toString.call(t.cid):i.longs===Number?new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber():t.cid),t.qn!=null&&t.hasOwnProperty("qn")&&(typeof t.qn=="number"?n.qn=i.longs===String?String(t.qn):t.qn:n.qn=i.longs===String?r.Long.prototype.toString.call(t.qn):i.longs===Number?new r.LongBits(t.qn.low>>>0,t.qn.high>>>0).toNumber():t.qn),t.fnver!=null&&t.hasOwnProperty("fnver")&&(n.fnver=t.fnver),t.fnval!=null&&t.hasOwnProperty("fnval")&&(n.fnval=t.fnval),t.download!=null&&t.hasOwnProperty("download")&&(n.download=t.download),t.forceHost!=null&&t.hasOwnProperty("forceHost")&&(n.forceHost=t.forceHost),t.fourk!=null&&t.hasOwnProperty("fourk")&&(n.fourk=t.fourk),t.spmid!=null&&t.hasOwnProperty("spmid")&&(n.spmid=t.spmid),t.fromSpmid!=null&&t.hasOwnProperty("fromSpmid")&&(n.fromSpmid=t.fromSpmid),t.teenagersMode!=null&&t.hasOwnProperty("teenagersMode")&&(n.teenagersMode=t.teenagersMode),t.preferCodecType!=null&&t.hasOwnProperty("preferCodecType")&&(n.preferCodecType=i.enums===String?u.bilibili.app.playurl.v1.CodeType[t.preferCodecType]===void 0?t.preferCodecType:u.bilibili.app.playurl.v1.CodeType[t.preferCodecType]:t.preferCodecType),t.business!=null&&t.hasOwnProperty("business")&&(n.business=i.enums===String?u.bilibili.app.playurl.v1.Business[t.business]===void 0?t.business:u.bilibili.app.playurl.v1.Business[t.business]:t.business),t.voiceBalance!=null&&t.hasOwnProperty("voiceBalance")&&(typeof t.voiceBalance=="number"?n.voiceBalance=i.longs===String?String(t.voiceBalance):t.voiceBalance:n.voiceBalance=i.longs===String?r.Long.prototype.toString.call(t.voiceBalance):i.longs===Number?new r.LongBits(t.voiceBalance.low>>>0,t.voiceBalance.high>>>0).toNumber():t.voiceBalance),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.playurl.v1.PlayViewReq"},e}(),c.Business=function(){let e={},l=Object.create(e);return l[e[0]="UNKNOWN"]=0,l[e[1]="STORY"]=1,l}(),c.CodeType=function(){let e={},l=Object.create(e);return l[e[0]="NOCODE"]=0,l[e[1]="CODE264"]=1,l[e[2]="CODE265"]=2,l[e[3]="CODEAV1"]=3,l}(),c.PlayViewReply=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.videoInfo=u.bilibili.app.playurl.v1.VideoInfo.decode(t,t.uint32());break}case 2:{o.playConf=u.bilibili.app.playurl.v1.PlayAbilityConf.decode(t,t.uint32());break}case 3:{o.upgradeLimit=u.bilibili.app.playurl.v1.UpgradeLimit.decode(t,t.uint32());break}case 4:{o.chronos=u.bilibili.app.playurl.v1.Chronos.decode(t,t.uint32());break}case 5:{o.playArc=u.bilibili.app.playurl.v1.PlayArcConf.decode(t,t.uint32());break}case 6:{o.event=u.bilibili.app.playurl.v1.Event.decode(t,t.uint32());break}case 7:{o.ab=u.bilibili.app.playurl.v1.AB.decode(t,t.uint32());break}case 8:{o.playLimit=u.bilibili.app.playurl.v1.PlayLimit.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.playurl.v1.PlayViewReply)return t;let i=new u.bilibili.app.playurl.v1.PlayViewReply;if(t.videoInfo!=null){if(typeof t.videoInfo!="object")throw TypeError(".bilibili.app.playurl.v1.PlayViewReply.videoInfo: object expected");i.videoInfo=u.bilibili.app.playurl.v1.VideoInfo.fromObject(t.videoInfo)}if(t.playConf!=null){if(typeof t.playConf!="object")throw TypeError(".bilibili.app.playurl.v1.PlayViewReply.playConf: object expected");i.playConf=u.bilibili.app.playurl.v1.PlayAbilityConf.fromObject(t.playConf)}if(t.upgradeLimit!=null){if(typeof t.upgradeLimit!="object")throw TypeError(".bilibili.app.playurl.v1.PlayViewReply.upgradeLimit: object expected");i.upgradeLimit=u.bilibili.app.playurl.v1.UpgradeLimit.fromObject(t.upgradeLimit)}if(t.chronos!=null){if(typeof t.chronos!="object")throw TypeError(".bilibili.app.playurl.v1.PlayViewReply.chronos: object expected");i.chronos=u.bilibili.app.playurl.v1.Chronos.fromObject(t.chronos)}if(t.playArc!=null){if(typeof t.playArc!="object")throw TypeError(".bilibili.app.playurl.v1.PlayViewReply.playArc: object expected");i.playArc=u.bilibili.app.playurl.v1.PlayArcConf.fromObject(t.playArc)}if(t.event!=null){if(typeof t.event!="object")throw TypeError(".bilibili.app.playurl.v1.PlayViewReply.event: object expected");i.event=u.bilibili.app.playurl.v1.Event.fromObject(t.event)}if(t.ab!=null){if(typeof t.ab!="object")throw TypeError(".bilibili.app.playurl.v1.PlayViewReply.ab: object expected");i.ab=u.bilibili.app.playurl.v1.AB.fromObject(t.ab)}if(t.playLimit!=null){if(typeof t.playLimit!="object")throw TypeError(".bilibili.app.playurl.v1.PlayViewReply.playLimit: object expected");i.playLimit=u.bilibili.app.playurl.v1.PlayLimit.fromObject(t.playLimit)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.videoInfo=null,n.playConf=null,n.upgradeLimit=null,n.chronos=null,n.playArc=null,n.event=null,n.ab=null,n.playLimit=null),t.videoInfo!=null&&t.hasOwnProperty("videoInfo")&&(n.videoInfo=u.bilibili.app.playurl.v1.VideoInfo.toObject(t.videoInfo,i)),t.playConf!=null&&t.hasOwnProperty("playConf")&&(n.playConf=u.bilibili.app.playurl.v1.PlayAbilityConf.toObject(t.playConf,i)),t.upgradeLimit!=null&&t.hasOwnProperty("upgradeLimit")&&(n.upgradeLimit=u.bilibili.app.playurl.v1.UpgradeLimit.toObject(t.upgradeLimit,i)),t.chronos!=null&&t.hasOwnProperty("chronos")&&(n.chronos=u.bilibili.app.playurl.v1.Chronos.toObject(t.chronos,i)),t.playArc!=null&&t.hasOwnProperty("playArc")&&(n.playArc=u.bilibili.app.playurl.v1.PlayArcConf.toObject(t.playArc,i)),t.event!=null&&t.hasOwnProperty("event")&&(n.event=u.bilibili.app.playurl.v1.Event.toObject(t.event,i)),t.ab!=null&&t.hasOwnProperty("ab")&&(n.ab=u.bilibili.app.playurl.v1.AB.toObject(t.ab,i)),t.playLimit!=null&&t.hasOwnProperty("playLimit")&&(n.playLimit=u.bilibili.app.playurl.v1.PlayLimit.toObject(t.playLimit,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.playurl.v1.PlayViewReply"},e}(),c.AB=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.glance=u.bilibili.app.playurl.v1.Glance.decode(t,t.uint32());break}case 2:{o.group=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.playurl.v1.AB)return t;let i=new u.bilibili.app.playurl.v1.AB;if(t.glance!=null){if(typeof t.glance!="object")throw TypeError(".bilibili.app.playurl.v1.AB.glance: object expected");i.glance=u.bilibili.app.playurl.v1.Glance.fromObject(t.glance)}switch(t.group){default:if(typeof t.group=="number"){i.group=t.group;break}break;case"UnknownGroup":case 0:i.group=0;break;case"A":case 1:i.group=1;break;case"B":case 2:i.group=2;break;case"C":case 3:i.group=3;break}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.glance=null,n.group=i.enums===String?"UnknownGroup":0),t.glance!=null&&t.hasOwnProperty("glance")&&(n.glance=u.bilibili.app.playurl.v1.Glance.toObject(t.glance,i)),t.group!=null&&t.hasOwnProperty("group")&&(n.group=i.enums===String?u.bilibili.app.playurl.v1.Group[t.group]===void 0?t.group:u.bilibili.app.playurl.v1.Group[t.group]:t.group),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.playurl.v1.AB"},e}(),c.Glance=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.canWatch=t.bool();break}case 2:{o.times=t.int64();break}case 3:{o.duration=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.playurl.v1.Glance)return t;let i=new u.bilibili.app.playurl.v1.Glance;return t.canWatch!=null&&(i.canWatch=!!t.canWatch),t.times!=null&&(r.Long?(i.times=r.Long.fromValue(t.times)).unsigned=!1:typeof t.times=="string"?i.times=parseInt(t.times,10):typeof t.times=="number"?i.times=t.times:typeof t.times=="object"&&(i.times=new r.LongBits(t.times.low>>>0,t.times.high>>>0).toNumber())),t.duration!=null&&(r.Long?(i.duration=r.Long.fromValue(t.duration)).unsigned=!1:typeof t.duration=="string"?i.duration=parseInt(t.duration,10):typeof t.duration=="number"?i.duration=t.duration:typeof t.duration=="object"&&(i.duration=new r.LongBits(t.duration.low>>>0,t.duration.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.canWatch=!1,r.Long){let o=new r.Long(0,0,!1);n.times=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.times=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.duration=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.duration=i.longs===String?"0":0}return t.canWatch!=null&&t.hasOwnProperty("canWatch")&&(n.canWatch=t.canWatch),t.times!=null&&t.hasOwnProperty("times")&&(typeof t.times=="number"?n.times=i.longs===String?String(t.times):t.times:n.times=i.longs===String?r.Long.prototype.toString.call(t.times):i.longs===Number?new r.LongBits(t.times.low>>>0,t.times.high>>>0).toNumber():t.times),t.duration!=null&&t.hasOwnProperty("duration")&&(typeof t.duration=="number"?n.duration=i.longs===String?String(t.duration):t.duration:n.duration=i.longs===String?r.Long.prototype.toString.call(t.duration):i.longs===Number?new r.LongBits(t.duration.low>>>0,t.duration.high>>>0).toNumber():t.duration),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.playurl.v1.Glance"},e}(),c.Group=function(){let e={},l=Object.create(e);return l[e[0]="UnknownGroup"]=0,l[e[1]="A"]=1,l[e[2]="B"]=2,l[e[3]="C"]=3,l}(),c.Event=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.shake=u.bilibili.app.playurl.v1.Shake.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.playurl.v1.Event)return t;let i=new u.bilibili.app.playurl.v1.Event;if(t.shake!=null){if(typeof t.shake!="object")throw TypeError(".bilibili.app.playurl.v1.Event.shake: object expected");i.shake=u.bilibili.app.playurl.v1.Shake.fromObject(t.shake)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.shake=null),t.shake!=null&&t.hasOwnProperty("shake")&&(n.shake=u.bilibili.app.playurl.v1.Shake.toObject(t.shake,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.playurl.v1.Event"},e}(),c.Shake=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.file=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.playurl.v1.Shake)return t;let i=new u.bilibili.app.playurl.v1.Shake;return t.file!=null&&(i.file=String(t.file)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.file=""),t.file!=null&&t.hasOwnProperty("file")&&(n.file=t.file),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.playurl.v1.Shake"},e}(),c.Chronos=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.md5=t.string();break}case 2:{o.file=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.playurl.v1.Chronos)return t;let i=new u.bilibili.app.playurl.v1.Chronos;return t.md5!=null&&(i.md5=String(t.md5)),t.file!=null&&(i.file=String(t.file)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.md5="",n.file=""),t.md5!=null&&t.hasOwnProperty("md5")&&(n.md5=t.md5),t.file!=null&&t.hasOwnProperty("file")&&(n.file=t.file),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.playurl.v1.Chronos"},e}(),c.PlayConfReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){default:t.skipType(a&7);break}}return o},e.fromObject=function(t){return t instanceof u.bilibili.app.playurl.v1.PlayConfReq?t:new u.bilibili.app.playurl.v1.PlayConfReq},e.toObject=function(){return{}},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.playurl.v1.PlayConfReq"},e}(),c.PlayConfReply=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.playConf=u.bilibili.app.playurl.v1.PlayAbilityConf.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.playurl.v1.PlayConfReply)return t;let i=new u.bilibili.app.playurl.v1.PlayConfReply;if(t.playConf!=null){if(typeof t.playConf!="object")throw TypeError(".bilibili.app.playurl.v1.PlayConfReply.playConf: object expected");i.playConf=u.bilibili.app.playurl.v1.PlayAbilityConf.fromObject(t.playConf)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.playConf=null),t.playConf!=null&&t.hasOwnProperty("playConf")&&(n.playConf=u.bilibili.app.playurl.v1.PlayAbilityConf.toObject(t.playConf,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.playurl.v1.PlayConfReply"},e}(),c.PlayAbilityConf=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.backgroundPlayConf=u.bilibili.app.playurl.v1.CloudConf.decode(t,t.uint32());break}case 2:{o.flipConf=u.bilibili.app.playurl.v1.CloudConf.decode(t,t.uint32());break}case 3:{o.castConf=u.bilibili.app.playurl.v1.CloudConf.decode(t,t.uint32());break}case 4:{o.feedbackConf=u.bilibili.app.playurl.v1.CloudConf.decode(t,t.uint32());break}case 5:{o.subtitleConf=u.bilibili.app.playurl.v1.CloudConf.decode(t,t.uint32());break}case 6:{o.playbackRateConf=u.bilibili.app.playurl.v1.CloudConf.decode(t,t.uint32());break}case 7:{o.timeUpConf=u.bilibili.app.playurl.v1.CloudConf.decode(t,t.uint32());break}case 8:{o.playbackModeConf=u.bilibili.app.playurl.v1.CloudConf.decode(t,t.uint32());break}case 9:{o.scaleModeConf=u.bilibili.app.playurl.v1.CloudConf.decode(t,t.uint32());break}case 10:{o.likeConf=u.bilibili.app.playurl.v1.CloudConf.decode(t,t.uint32());break}case 11:{o.dislikeConf=u.bilibili.app.playurl.v1.CloudConf.decode(t,t.uint32());break}case 12:{o.coinConf=u.bilibili.app.playurl.v1.CloudConf.decode(t,t.uint32());break}case 13:{o.elecConf=u.bilibili.app.playurl.v1.CloudConf.decode(t,t.uint32());break}case 14:{o.shareConf=u.bilibili.app.playurl.v1.CloudConf.decode(t,t.uint32());break}case 15:{o.screenShotConf=u.bilibili.app.playurl.v1.CloudConf.decode(t,t.uint32());break}case 16:{o.lockScreenConf=u.bilibili.app.playurl.v1.CloudConf.decode(t,t.uint32());break}case 17:{o.recommendConf=u.bilibili.app.playurl.v1.CloudConf.decode(t,t.uint32());break}case 18:{o.playbackSpeedConf=u.bilibili.app.playurl.v1.CloudConf.decode(t,t.uint32());break}case 19:{o.definitionConf=u.bilibili.app.playurl.v1.CloudConf.decode(t,t.uint32());break}case 20:{o.selectionsConf=u.bilibili.app.playurl.v1.CloudConf.decode(t,t.uint32());break}case 21:{o.nextConf=u.bilibili.app.playurl.v1.CloudConf.decode(t,t.uint32());break}case 22:{o.editDmConf=u.bilibili.app.playurl.v1.CloudConf.decode(t,t.uint32());break}case 23:{o.smallWindowConf=u.bilibili.app.playurl.v1.CloudConf.decode(t,t.uint32());break}case 24:{o.shakeConf=u.bilibili.app.playurl.v1.CloudConf.decode(t,t.uint32());break}case 25:{o.outerDmConf=u.bilibili.app.playurl.v1.CloudConf.decode(t,t.uint32());break}case 26:{o.innerDmConf=u.bilibili.app.playurl.v1.CloudConf.decode(t,t.uint32());break}case 27:{o.panoramaConf=u.bilibili.app.playurl.v1.CloudConf.decode(t,t.uint32());break}case 28:{o.dolbyConf=u.bilibili.app.playurl.v1.CloudConf.decode(t,t.uint32());break}case 29:{o.colorFilterConf=u.bilibili.app.playurl.v1.CloudConf.decode(t,t.uint32());break}case 30:{o.lossLessConf=u.bilibili.app.playurl.v1.CloudConf.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.playurl.v1.PlayAbilityConf)return t;let i=new u.bilibili.app.playurl.v1.PlayAbilityConf;if(t.backgroundPlayConf!=null){if(typeof t.backgroundPlayConf!="object")throw TypeError(".bilibili.app.playurl.v1.PlayAbilityConf.backgroundPlayConf: object expected");i.backgroundPlayConf=u.bilibili.app.playurl.v1.CloudConf.fromObject(t.backgroundPlayConf)}if(t.flipConf!=null){if(typeof t.flipConf!="object")throw TypeError(".bilibili.app.playurl.v1.PlayAbilityConf.flipConf: object expected");i.flipConf=u.bilibili.app.playurl.v1.CloudConf.fromObject(t.flipConf)}if(t.castConf!=null){if(typeof t.castConf!="object")throw TypeError(".bilibili.app.playurl.v1.PlayAbilityConf.castConf: object expected");i.castConf=u.bilibili.app.playurl.v1.CloudConf.fromObject(t.castConf)}if(t.feedbackConf!=null){if(typeof t.feedbackConf!="object")throw TypeError(".bilibili.app.playurl.v1.PlayAbilityConf.feedbackConf: object expected");i.feedbackConf=u.bilibili.app.playurl.v1.CloudConf.fromObject(t.feedbackConf)}if(t.subtitleConf!=null){if(typeof t.subtitleConf!="object")throw TypeError(".bilibili.app.playurl.v1.PlayAbilityConf.subtitleConf: object expected");i.subtitleConf=u.bilibili.app.playurl.v1.CloudConf.fromObject(t.subtitleConf)}if(t.playbackRateConf!=null){if(typeof t.playbackRateConf!="object")throw TypeError(".bilibili.app.playurl.v1.PlayAbilityConf.playbackRateConf: object expected");i.playbackRateConf=u.bilibili.app.playurl.v1.CloudConf.fromObject(t.playbackRateConf)}if(t.timeUpConf!=null){if(typeof t.timeUpConf!="object")throw TypeError(".bilibili.app.playurl.v1.PlayAbilityConf.timeUpConf: object expected");i.timeUpConf=u.bilibili.app.playurl.v1.CloudConf.fromObject(t.timeUpConf)}if(t.playbackModeConf!=null){if(typeof t.playbackModeConf!="object")throw TypeError(".bilibili.app.playurl.v1.PlayAbilityConf.playbackModeConf: object expected");i.playbackModeConf=u.bilibili.app.playurl.v1.CloudConf.fromObject(t.playbackModeConf)}if(t.scaleModeConf!=null){if(typeof t.scaleModeConf!="object")throw TypeError(".bilibili.app.playurl.v1.PlayAbilityConf.scaleModeConf: object expected");i.scaleModeConf=u.bilibili.app.playurl.v1.CloudConf.fromObject(t.scaleModeConf)}if(t.likeConf!=null){if(typeof t.likeConf!="object")throw TypeError(".bilibili.app.playurl.v1.PlayAbilityConf.likeConf: object expected");i.likeConf=u.bilibili.app.playurl.v1.CloudConf.fromObject(t.likeConf)}if(t.dislikeConf!=null){if(typeof t.dislikeConf!="object")throw TypeError(".bilibili.app.playurl.v1.PlayAbilityConf.dislikeConf: object expected");i.dislikeConf=u.bilibili.app.playurl.v1.CloudConf.fromObject(t.dislikeConf)}if(t.coinConf!=null){if(typeof t.coinConf!="object")throw TypeError(".bilibili.app.playurl.v1.PlayAbilityConf.coinConf: object expected");i.coinConf=u.bilibili.app.playurl.v1.CloudConf.fromObject(t.coinConf)}if(t.elecConf!=null){if(typeof t.elecConf!="object")throw TypeError(".bilibili.app.playurl.v1.PlayAbilityConf.elecConf: object expected");i.elecConf=u.bilibili.app.playurl.v1.CloudConf.fromObject(t.elecConf)}if(t.shareConf!=null){if(typeof t.shareConf!="object")throw TypeError(".bilibili.app.playurl.v1.PlayAbilityConf.shareConf: object expected");i.shareConf=u.bilibili.app.playurl.v1.CloudConf.fromObject(t.shareConf)}if(t.screenShotConf!=null){if(typeof t.screenShotConf!="object")throw TypeError(".bilibili.app.playurl.v1.PlayAbilityConf.screenShotConf: object expected");i.screenShotConf=u.bilibili.app.playurl.v1.CloudConf.fromObject(t.screenShotConf)}if(t.lockScreenConf!=null){if(typeof t.lockScreenConf!="object")throw TypeError(".bilibili.app.playurl.v1.PlayAbilityConf.lockScreenConf: object expected");i.lockScreenConf=u.bilibili.app.playurl.v1.CloudConf.fromObject(t.lockScreenConf)}if(t.recommendConf!=null){if(typeof t.recommendConf!="object")throw TypeError(".bilibili.app.playurl.v1.PlayAbilityConf.recommendConf: object expected");i.recommendConf=u.bilibili.app.playurl.v1.CloudConf.fromObject(t.recommendConf)}if(t.playbackSpeedConf!=null){if(typeof t.playbackSpeedConf!="object")throw TypeError(".bilibili.app.playurl.v1.PlayAbilityConf.playbackSpeedConf: object expected");i.playbackSpeedConf=u.bilibili.app.playurl.v1.CloudConf.fromObject(t.playbackSpeedConf)}if(t.definitionConf!=null){if(typeof t.definitionConf!="object")throw TypeError(".bilibili.app.playurl.v1.PlayAbilityConf.definitionConf: object expected");i.definitionConf=u.bilibili.app.playurl.v1.CloudConf.fromObject(t.definitionConf)}if(t.selectionsConf!=null){if(typeof t.selectionsConf!="object")throw TypeError(".bilibili.app.playurl.v1.PlayAbilityConf.selectionsConf: object expected");i.selectionsConf=u.bilibili.app.playurl.v1.CloudConf.fromObject(t.selectionsConf)}if(t.nextConf!=null){if(typeof t.nextConf!="object")throw TypeError(".bilibili.app.playurl.v1.PlayAbilityConf.nextConf: object expected");i.nextConf=u.bilibili.app.playurl.v1.CloudConf.fromObject(t.nextConf)}if(t.editDmConf!=null){if(typeof t.editDmConf!="object")throw TypeError(".bilibili.app.playurl.v1.PlayAbilityConf.editDmConf: object expected");i.editDmConf=u.bilibili.app.playurl.v1.CloudConf.fromObject(t.editDmConf)}if(t.smallWindowConf!=null){if(typeof t.smallWindowConf!="object")throw TypeError(".bilibili.app.playurl.v1.PlayAbilityConf.smallWindowConf: object expected");i.smallWindowConf=u.bilibili.app.playurl.v1.CloudConf.fromObject(t.smallWindowConf)}if(t.shakeConf!=null){if(typeof t.shakeConf!="object")throw TypeError(".bilibili.app.playurl.v1.PlayAbilityConf.shakeConf: object expected");i.shakeConf=u.bilibili.app.playurl.v1.CloudConf.fromObject(t.shakeConf)}if(t.outerDmConf!=null){if(typeof t.outerDmConf!="object")throw TypeError(".bilibili.app.playurl.v1.PlayAbilityConf.outerDmConf: object expected");i.outerDmConf=u.bilibili.app.playurl.v1.CloudConf.fromObject(t.outerDmConf)}if(t.innerDmConf!=null){if(typeof t.innerDmConf!="object")throw TypeError(".bilibili.app.playurl.v1.PlayAbilityConf.innerDmConf: object expected");i.innerDmConf=u.bilibili.app.playurl.v1.CloudConf.fromObject(t.innerDmConf)}if(t.panoramaConf!=null){if(typeof t.panoramaConf!="object")throw TypeError(".bilibili.app.playurl.v1.PlayAbilityConf.panoramaConf: object expected");i.panoramaConf=u.bilibili.app.playurl.v1.CloudConf.fromObject(t.panoramaConf)}if(t.dolbyConf!=null){if(typeof t.dolbyConf!="object")throw TypeError(".bilibili.app.playurl.v1.PlayAbilityConf.dolbyConf: object expected");i.dolbyConf=u.bilibili.app.playurl.v1.CloudConf.fromObject(t.dolbyConf)}if(t.colorFilterConf!=null){if(typeof t.colorFilterConf!="object")throw TypeError(".bilibili.app.playurl.v1.PlayAbilityConf.colorFilterConf: object expected");i.colorFilterConf=u.bilibili.app.playurl.v1.CloudConf.fromObject(t.colorFilterConf)}if(t.lossLessConf!=null){if(typeof t.lossLessConf!="object")throw TypeError(".bilibili.app.playurl.v1.PlayAbilityConf.lossLessConf: object expected");i.lossLessConf=u.bilibili.app.playurl.v1.CloudConf.fromObject(t.lossLessConf)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.backgroundPlayConf=null,n.flipConf=null,n.castConf=null,n.feedbackConf=null,n.subtitleConf=null,n.playbackRateConf=null,n.timeUpConf=null,n.playbackModeConf=null,n.scaleModeConf=null,n.likeConf=null,n.dislikeConf=null,n.coinConf=null,n.elecConf=null,n.shareConf=null,n.screenShotConf=null,n.lockScreenConf=null,n.recommendConf=null,n.playbackSpeedConf=null,n.definitionConf=null,n.selectionsConf=null,n.nextConf=null,n.editDmConf=null,n.smallWindowConf=null,n.shakeConf=null,n.outerDmConf=null,n.innerDmConf=null,n.panoramaConf=null,n.dolbyConf=null,n.colorFilterConf=null,n.lossLessConf=null),t.backgroundPlayConf!=null&&t.hasOwnProperty("backgroundPlayConf")&&(n.backgroundPlayConf=u.bilibili.app.playurl.v1.CloudConf.toObject(t.backgroundPlayConf,i)),t.flipConf!=null&&t.hasOwnProperty("flipConf")&&(n.flipConf=u.bilibili.app.playurl.v1.CloudConf.toObject(t.flipConf,i)),t.castConf!=null&&t.hasOwnProperty("castConf")&&(n.castConf=u.bilibili.app.playurl.v1.CloudConf.toObject(t.castConf,i)),t.feedbackConf!=null&&t.hasOwnProperty("feedbackConf")&&(n.feedbackConf=u.bilibili.app.playurl.v1.CloudConf.toObject(t.feedbackConf,i)),t.subtitleConf!=null&&t.hasOwnProperty("subtitleConf")&&(n.subtitleConf=u.bilibili.app.playurl.v1.CloudConf.toObject(t.subtitleConf,i)),t.playbackRateConf!=null&&t.hasOwnProperty("playbackRateConf")&&(n.playbackRateConf=u.bilibili.app.playurl.v1.CloudConf.toObject(t.playbackRateConf,i)),t.timeUpConf!=null&&t.hasOwnProperty("timeUpConf")&&(n.timeUpConf=u.bilibili.app.playurl.v1.CloudConf.toObject(t.timeUpConf,i)),t.playbackModeConf!=null&&t.hasOwnProperty("playbackModeConf")&&(n.playbackModeConf=u.bilibili.app.playurl.v1.CloudConf.toObject(t.playbackModeConf,i)),t.scaleModeConf!=null&&t.hasOwnProperty("scaleModeConf")&&(n.scaleModeConf=u.bilibili.app.playurl.v1.CloudConf.toObject(t.scaleModeConf,i)),t.likeConf!=null&&t.hasOwnProperty("likeConf")&&(n.likeConf=u.bilibili.app.playurl.v1.CloudConf.toObject(t.likeConf,i)),t.dislikeConf!=null&&t.hasOwnProperty("dislikeConf")&&(n.dislikeConf=u.bilibili.app.playurl.v1.CloudConf.toObject(t.dislikeConf,i)),t.coinConf!=null&&t.hasOwnProperty("coinConf")&&(n.coinConf=u.bilibili.app.playurl.v1.CloudConf.toObject(t.coinConf,i)),t.elecConf!=null&&t.hasOwnProperty("elecConf")&&(n.elecConf=u.bilibili.app.playurl.v1.CloudConf.toObject(t.elecConf,i)),t.shareConf!=null&&t.hasOwnProperty("shareConf")&&(n.shareConf=u.bilibili.app.playurl.v1.CloudConf.toObject(t.shareConf,i)),t.screenShotConf!=null&&t.hasOwnProperty("screenShotConf")&&(n.screenShotConf=u.bilibili.app.playurl.v1.CloudConf.toObject(t.screenShotConf,i)),t.lockScreenConf!=null&&t.hasOwnProperty("lockScreenConf")&&(n.lockScreenConf=u.bilibili.app.playurl.v1.CloudConf.toObject(t.lockScreenConf,i)),t.recommendConf!=null&&t.hasOwnProperty("recommendConf")&&(n.recommendConf=u.bilibili.app.playurl.v1.CloudConf.toObject(t.recommendConf,i)),t.playbackSpeedConf!=null&&t.hasOwnProperty("playbackSpeedConf")&&(n.playbackSpeedConf=u.bilibili.app.playurl.v1.CloudConf.toObject(t.playbackSpeedConf,i)),t.definitionConf!=null&&t.hasOwnProperty("definitionConf")&&(n.definitionConf=u.bilibili.app.playurl.v1.CloudConf.toObject(t.definitionConf,i)),t.selectionsConf!=null&&t.hasOwnProperty("selectionsConf")&&(n.selectionsConf=u.bilibili.app.playurl.v1.CloudConf.toObject(t.selectionsConf,i)),t.nextConf!=null&&t.hasOwnProperty("nextConf")&&(n.nextConf=u.bilibili.app.playurl.v1.CloudConf.toObject(t.nextConf,i)),t.editDmConf!=null&&t.hasOwnProperty("editDmConf")&&(n.editDmConf=u.bilibili.app.playurl.v1.CloudConf.toObject(t.editDmConf,i)),t.smallWindowConf!=null&&t.hasOwnProperty("smallWindowConf")&&(n.smallWindowConf=u.bilibili.app.playurl.v1.CloudConf.toObject(t.smallWindowConf,i)),t.shakeConf!=null&&t.hasOwnProperty("shakeConf")&&(n.shakeConf=u.bilibili.app.playurl.v1.CloudConf.toObject(t.shakeConf,i)),t.outerDmConf!=null&&t.hasOwnProperty("outerDmConf")&&(n.outerDmConf=u.bilibili.app.playurl.v1.CloudConf.toObject(t.outerDmConf,i)),t.innerDmConf!=null&&t.hasOwnProperty("innerDmConf")&&(n.innerDmConf=u.bilibili.app.playurl.v1.CloudConf.toObject(t.innerDmConf,i)),t.panoramaConf!=null&&t.hasOwnProperty("panoramaConf")&&(n.panoramaConf=u.bilibili.app.playurl.v1.CloudConf.toObject(t.panoramaConf,i)),t.dolbyConf!=null&&t.hasOwnProperty("dolbyConf")&&(n.dolbyConf=u.bilibili.app.playurl.v1.CloudConf.toObject(t.dolbyConf,i)),t.colorFilterConf!=null&&t.hasOwnProperty("colorFilterConf")&&(n.colorFilterConf=u.bilibili.app.playurl.v1.CloudConf.toObject(t.colorFilterConf,i)),t.lossLessConf!=null&&t.hasOwnProperty("lossLessConf")&&(n.lossLessConf=u.bilibili.app.playurl.v1.CloudConf.toObject(t.lossLessConf,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.playurl.v1.PlayAbilityConf"},e}(),c.PlayArcConf=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.backgroundPlayConf=u.bilibili.app.playurl.v1.ArcConf.decode(t,t.uint32());break}case 2:{o.flipConf=u.bilibili.app.playurl.v1.ArcConf.decode(t,t.uint32());break}case 3:{o.castConf=u.bilibili.app.playurl.v1.ArcConf.decode(t,t.uint32());break}case 4:{o.feedbackConf=u.bilibili.app.playurl.v1.ArcConf.decode(t,t.uint32());break}case 5:{o.subtitleConf=u.bilibili.app.playurl.v1.ArcConf.decode(t,t.uint32());break}case 6:{o.playbackRateConf=u.bilibili.app.playurl.v1.ArcConf.decode(t,t.uint32());break}case 7:{o.timeUpConf=u.bilibili.app.playurl.v1.ArcConf.decode(t,t.uint32());break}case 8:{o.playbackModeConf=u.bilibili.app.playurl.v1.ArcConf.decode(t,t.uint32());break}case 9:{o.scaleModeConf=u.bilibili.app.playurl.v1.ArcConf.decode(t,t.uint32());break}case 10:{o.likeConf=u.bilibili.app.playurl.v1.ArcConf.decode(t,t.uint32());break}case 11:{o.dislikeConf=u.bilibili.app.playurl.v1.ArcConf.decode(t,t.uint32());break}case 12:{o.coinConf=u.bilibili.app.playurl.v1.ArcConf.decode(t,t.uint32());break}case 13:{o.elecConf=u.bilibili.app.playurl.v1.ArcConf.decode(t,t.uint32());break}case 14:{o.shareConf=u.bilibili.app.playurl.v1.ArcConf.decode(t,t.uint32());break}case 15:{o.screenShotConf=u.bilibili.app.playurl.v1.ArcConf.decode(t,t.uint32());break}case 16:{o.lockScreenConf=u.bilibili.app.playurl.v1.ArcConf.decode(t,t.uint32());break}case 17:{o.recommendConf=u.bilibili.app.playurl.v1.ArcConf.decode(t,t.uint32());break}case 18:{o.playbackSpeedConf=u.bilibili.app.playurl.v1.ArcConf.decode(t,t.uint32());break}case 19:{o.definitionConf=u.bilibili.app.playurl.v1.ArcConf.decode(t,t.uint32());break}case 20:{o.selectionsConf=u.bilibili.app.playurl.v1.ArcConf.decode(t,t.uint32());break}case 21:{o.nextConf=u.bilibili.app.playurl.v1.ArcConf.decode(t,t.uint32());break}case 22:{o.editDmConf=u.bilibili.app.playurl.v1.ArcConf.decode(t,t.uint32());break}case 23:{o.smallWindowConf=u.bilibili.app.playurl.v1.ArcConf.decode(t,t.uint32());break}case 24:{o.shakeConf=u.bilibili.app.playurl.v1.ArcConf.decode(t,t.uint32());break}case 25:{o.outerDmConf=u.bilibili.app.playurl.v1.ArcConf.decode(t,t.uint32());break}case 26:{o.innerDmConf=u.bilibili.app.playurl.v1.ArcConf.decode(t,t.uint32());break}case 27:{o.panoramaConf=u.bilibili.app.playurl.v1.ArcConf.decode(t,t.uint32());break}case 28:{o.dolbyConf=u.bilibili.app.playurl.v1.ArcConf.decode(t,t.uint32());break}case 29:{o.screenRecordingConf=u.bilibili.app.playurl.v1.ArcConf.decode(t,t.uint32());break}case 30:{o.colorFilterConf=u.bilibili.app.playurl.v1.ArcConf.decode(t,t.uint32());break}case 31:{o.lossLessConf=u.bilibili.app.playurl.v1.ArcConf.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.playurl.v1.PlayArcConf)return t;let i=new u.bilibili.app.playurl.v1.PlayArcConf;if(t.backgroundPlayConf!=null){if(typeof t.backgroundPlayConf!="object")throw TypeError(".bilibili.app.playurl.v1.PlayArcConf.backgroundPlayConf: object expected");i.backgroundPlayConf=u.bilibili.app.playurl.v1.ArcConf.fromObject(t.backgroundPlayConf)}if(t.flipConf!=null){if(typeof t.flipConf!="object")throw TypeError(".bilibili.app.playurl.v1.PlayArcConf.flipConf: object expected");i.flipConf=u.bilibili.app.playurl.v1.ArcConf.fromObject(t.flipConf)}if(t.castConf!=null){if(typeof t.castConf!="object")throw TypeError(".bilibili.app.playurl.v1.PlayArcConf.castConf: object expected");i.castConf=u.bilibili.app.playurl.v1.ArcConf.fromObject(t.castConf)}if(t.feedbackConf!=null){if(typeof t.feedbackConf!="object")throw TypeError(".bilibili.app.playurl.v1.PlayArcConf.feedbackConf: object expected");i.feedbackConf=u.bilibili.app.playurl.v1.ArcConf.fromObject(t.feedbackConf)}if(t.subtitleConf!=null){if(typeof t.subtitleConf!="object")throw TypeError(".bilibili.app.playurl.v1.PlayArcConf.subtitleConf: object expected");i.subtitleConf=u.bilibili.app.playurl.v1.ArcConf.fromObject(t.subtitleConf)}if(t.playbackRateConf!=null){if(typeof t.playbackRateConf!="object")throw TypeError(".bilibili.app.playurl.v1.PlayArcConf.playbackRateConf: object expected");i.playbackRateConf=u.bilibili.app.playurl.v1.ArcConf.fromObject(t.playbackRateConf)}if(t.timeUpConf!=null){if(typeof t.timeUpConf!="object")throw TypeError(".bilibili.app.playurl.v1.PlayArcConf.timeUpConf: object expected");i.timeUpConf=u.bilibili.app.playurl.v1.ArcConf.fromObject(t.timeUpConf)}if(t.playbackModeConf!=null){if(typeof t.playbackModeConf!="object")throw TypeError(".bilibili.app.playurl.v1.PlayArcConf.playbackModeConf: object expected");i.playbackModeConf=u.bilibili.app.playurl.v1.ArcConf.fromObject(t.playbackModeConf)}if(t.scaleModeConf!=null){if(typeof t.scaleModeConf!="object")throw TypeError(".bilibili.app.playurl.v1.PlayArcConf.scaleModeConf: object expected");i.scaleModeConf=u.bilibili.app.playurl.v1.ArcConf.fromObject(t.scaleModeConf)}if(t.likeConf!=null){if(typeof t.likeConf!="object")throw TypeError(".bilibili.app.playurl.v1.PlayArcConf.likeConf: object expected");i.likeConf=u.bilibili.app.playurl.v1.ArcConf.fromObject(t.likeConf)}if(t.dislikeConf!=null){if(typeof t.dislikeConf!="object")throw TypeError(".bilibili.app.playurl.v1.PlayArcConf.dislikeConf: object expected");i.dislikeConf=u.bilibili.app.playurl.v1.ArcConf.fromObject(t.dislikeConf)}if(t.coinConf!=null){if(typeof t.coinConf!="object")throw TypeError(".bilibili.app.playurl.v1.PlayArcConf.coinConf: object expected");i.coinConf=u.bilibili.app.playurl.v1.ArcConf.fromObject(t.coinConf)}if(t.elecConf!=null){if(typeof t.elecConf!="object")throw TypeError(".bilibili.app.playurl.v1.PlayArcConf.elecConf: object expected");i.elecConf=u.bilibili.app.playurl.v1.ArcConf.fromObject(t.elecConf)}if(t.shareConf!=null){if(typeof t.shareConf!="object")throw TypeError(".bilibili.app.playurl.v1.PlayArcConf.shareConf: object expected");i.shareConf=u.bilibili.app.playurl.v1.ArcConf.fromObject(t.shareConf)}if(t.screenShotConf!=null){if(typeof t.screenShotConf!="object")throw TypeError(".bilibili.app.playurl.v1.PlayArcConf.screenShotConf: object expected");i.screenShotConf=u.bilibili.app.playurl.v1.ArcConf.fromObject(t.screenShotConf)}if(t.lockScreenConf!=null){if(typeof t.lockScreenConf!="object")throw TypeError(".bilibili.app.playurl.v1.PlayArcConf.lockScreenConf: object expected");i.lockScreenConf=u.bilibili.app.playurl.v1.ArcConf.fromObject(t.lockScreenConf)}if(t.recommendConf!=null){if(typeof t.recommendConf!="object")throw TypeError(".bilibili.app.playurl.v1.PlayArcConf.recommendConf: object expected");i.recommendConf=u.bilibili.app.playurl.v1.ArcConf.fromObject(t.recommendConf)}if(t.playbackSpeedConf!=null){if(typeof t.playbackSpeedConf!="object")throw TypeError(".bilibili.app.playurl.v1.PlayArcConf.playbackSpeedConf: object expected");i.playbackSpeedConf=u.bilibili.app.playurl.v1.ArcConf.fromObject(t.playbackSpeedConf)}if(t.definitionConf!=null){if(typeof t.definitionConf!="object")throw TypeError(".bilibili.app.playurl.v1.PlayArcConf.definitionConf: object expected");i.definitionConf=u.bilibili.app.playurl.v1.ArcConf.fromObject(t.definitionConf)}if(t.selectionsConf!=null){if(typeof t.selectionsConf!="object")throw TypeError(".bilibili.app.playurl.v1.PlayArcConf.selectionsConf: object expected");i.selectionsConf=u.bilibili.app.playurl.v1.ArcConf.fromObject(t.selectionsConf)}if(t.nextConf!=null){if(typeof t.nextConf!="object")throw TypeError(".bilibili.app.playurl.v1.PlayArcConf.nextConf: object expected");i.nextConf=u.bilibili.app.playurl.v1.ArcConf.fromObject(t.nextConf)}if(t.editDmConf!=null){if(typeof t.editDmConf!="object")throw TypeError(".bilibili.app.playurl.v1.PlayArcConf.editDmConf: object expected");i.editDmConf=u.bilibili.app.playurl.v1.ArcConf.fromObject(t.editDmConf)}if(t.smallWindowConf!=null){if(typeof t.smallWindowConf!="object")throw TypeError(".bilibili.app.playurl.v1.PlayArcConf.smallWindowConf: object expected");i.smallWindowConf=u.bilibili.app.playurl.v1.ArcConf.fromObject(t.smallWindowConf)}if(t.shakeConf!=null){if(typeof t.shakeConf!="object")throw TypeError(".bilibili.app.playurl.v1.PlayArcConf.shakeConf: object expected");i.shakeConf=u.bilibili.app.playurl.v1.ArcConf.fromObject(t.shakeConf)}if(t.outerDmConf!=null){if(typeof t.outerDmConf!="object")throw TypeError(".bilibili.app.playurl.v1.PlayArcConf.outerDmConf: object expected");i.outerDmConf=u.bilibili.app.playurl.v1.ArcConf.fromObject(t.outerDmConf)}if(t.innerDmConf!=null){if(typeof t.innerDmConf!="object")throw TypeError(".bilibili.app.playurl.v1.PlayArcConf.innerDmConf: object expected");i.innerDmConf=u.bilibili.app.playurl.v1.ArcConf.fromObject(t.innerDmConf)}if(t.panoramaConf!=null){if(typeof t.panoramaConf!="object")throw TypeError(".bilibili.app.playurl.v1.PlayArcConf.panoramaConf: object expected");i.panoramaConf=u.bilibili.app.playurl.v1.ArcConf.fromObject(t.panoramaConf)}if(t.dolbyConf!=null){if(typeof t.dolbyConf!="object")throw TypeError(".bilibili.app.playurl.v1.PlayArcConf.dolbyConf: object expected");i.dolbyConf=u.bilibili.app.playurl.v1.ArcConf.fromObject(t.dolbyConf)}if(t.screenRecordingConf!=null){if(typeof t.screenRecordingConf!="object")throw TypeError(".bilibili.app.playurl.v1.PlayArcConf.screenRecordingConf: object expected");i.screenRecordingConf=u.bilibili.app.playurl.v1.ArcConf.fromObject(t.screenRecordingConf)}if(t.colorFilterConf!=null){if(typeof t.colorFilterConf!="object")throw TypeError(".bilibili.app.playurl.v1.PlayArcConf.colorFilterConf: object expected");i.colorFilterConf=u.bilibili.app.playurl.v1.ArcConf.fromObject(t.colorFilterConf)}if(t.lossLessConf!=null){if(typeof t.lossLessConf!="object")throw TypeError(".bilibili.app.playurl.v1.PlayArcConf.lossLessConf: object expected");i.lossLessConf=u.bilibili.app.playurl.v1.ArcConf.fromObject(t.lossLessConf)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.backgroundPlayConf=null,n.flipConf=null,n.castConf=null,n.feedbackConf=null,n.subtitleConf=null,n.playbackRateConf=null,n.timeUpConf=null,n.playbackModeConf=null,n.scaleModeConf=null,n.likeConf=null,n.dislikeConf=null,n.coinConf=null,n.elecConf=null,n.shareConf=null,n.screenShotConf=null,n.lockScreenConf=null,n.recommendConf=null,n.playbackSpeedConf=null,n.definitionConf=null,n.selectionsConf=null,n.nextConf=null,n.editDmConf=null,n.smallWindowConf=null,n.shakeConf=null,n.outerDmConf=null,n.innerDmConf=null,n.panoramaConf=null,n.dolbyConf=null,n.screenRecordingConf=null,n.colorFilterConf=null,n.lossLessConf=null),t.backgroundPlayConf!=null&&t.hasOwnProperty("backgroundPlayConf")&&(n.backgroundPlayConf=u.bilibili.app.playurl.v1.ArcConf.toObject(t.backgroundPlayConf,i)),t.flipConf!=null&&t.hasOwnProperty("flipConf")&&(n.flipConf=u.bilibili.app.playurl.v1.ArcConf.toObject(t.flipConf,i)),t.castConf!=null&&t.hasOwnProperty("castConf")&&(n.castConf=u.bilibili.app.playurl.v1.ArcConf.toObject(t.castConf,i)),t.feedbackConf!=null&&t.hasOwnProperty("feedbackConf")&&(n.feedbackConf=u.bilibili.app.playurl.v1.ArcConf.toObject(t.feedbackConf,i)),t.subtitleConf!=null&&t.hasOwnProperty("subtitleConf")&&(n.subtitleConf=u.bilibili.app.playurl.v1.ArcConf.toObject(t.subtitleConf,i)),t.playbackRateConf!=null&&t.hasOwnProperty("playbackRateConf")&&(n.playbackRateConf=u.bilibili.app.playurl.v1.ArcConf.toObject(t.playbackRateConf,i)),t.timeUpConf!=null&&t.hasOwnProperty("timeUpConf")&&(n.timeUpConf=u.bilibili.app.playurl.v1.ArcConf.toObject(t.timeUpConf,i)),t.playbackModeConf!=null&&t.hasOwnProperty("playbackModeConf")&&(n.playbackModeConf=u.bilibili.app.playurl.v1.ArcConf.toObject(t.playbackModeConf,i)),t.scaleModeConf!=null&&t.hasOwnProperty("scaleModeConf")&&(n.scaleModeConf=u.bilibili.app.playurl.v1.ArcConf.toObject(t.scaleModeConf,i)),t.likeConf!=null&&t.hasOwnProperty("likeConf")&&(n.likeConf=u.bilibili.app.playurl.v1.ArcConf.toObject(t.likeConf,i)),t.dislikeConf!=null&&t.hasOwnProperty("dislikeConf")&&(n.dislikeConf=u.bilibili.app.playurl.v1.ArcConf.toObject(t.dislikeConf,i)),t.coinConf!=null&&t.hasOwnProperty("coinConf")&&(n.coinConf=u.bilibili.app.playurl.v1.ArcConf.toObject(t.coinConf,i)),t.elecConf!=null&&t.hasOwnProperty("elecConf")&&(n.elecConf=u.bilibili.app.playurl.v1.ArcConf.toObject(t.elecConf,i)),t.shareConf!=null&&t.hasOwnProperty("shareConf")&&(n.shareConf=u.bilibili.app.playurl.v1.ArcConf.toObject(t.shareConf,i)),t.screenShotConf!=null&&t.hasOwnProperty("screenShotConf")&&(n.screenShotConf=u.bilibili.app.playurl.v1.ArcConf.toObject(t.screenShotConf,i)),t.lockScreenConf!=null&&t.hasOwnProperty("lockScreenConf")&&(n.lockScreenConf=u.bilibili.app.playurl.v1.ArcConf.toObject(t.lockScreenConf,i)),t.recommendConf!=null&&t.hasOwnProperty("recommendConf")&&(n.recommendConf=u.bilibili.app.playurl.v1.ArcConf.toObject(t.recommendConf,i)),t.playbackSpeedConf!=null&&t.hasOwnProperty("playbackSpeedConf")&&(n.playbackSpeedConf=u.bilibili.app.playurl.v1.ArcConf.toObject(t.playbackSpeedConf,i)),t.definitionConf!=null&&t.hasOwnProperty("definitionConf")&&(n.definitionConf=u.bilibili.app.playurl.v1.ArcConf.toObject(t.definitionConf,i)),t.selectionsConf!=null&&t.hasOwnProperty("selectionsConf")&&(n.selectionsConf=u.bilibili.app.playurl.v1.ArcConf.toObject(t.selectionsConf,i)),t.nextConf!=null&&t.hasOwnProperty("nextConf")&&(n.nextConf=u.bilibili.app.playurl.v1.ArcConf.toObject(t.nextConf,i)),t.editDmConf!=null&&t.hasOwnProperty("editDmConf")&&(n.editDmConf=u.bilibili.app.playurl.v1.ArcConf.toObject(t.editDmConf,i)),t.smallWindowConf!=null&&t.hasOwnProperty("smallWindowConf")&&(n.smallWindowConf=u.bilibili.app.playurl.v1.ArcConf.toObject(t.smallWindowConf,i)),t.shakeConf!=null&&t.hasOwnProperty("shakeConf")&&(n.shakeConf=u.bilibili.app.playurl.v1.ArcConf.toObject(t.shakeConf,i)),t.outerDmConf!=null&&t.hasOwnProperty("outerDmConf")&&(n.outerDmConf=u.bilibili.app.playurl.v1.ArcConf.toObject(t.outerDmConf,i)),t.innerDmConf!=null&&t.hasOwnProperty("innerDmConf")&&(n.innerDmConf=u.bilibili.app.playurl.v1.ArcConf.toObject(t.innerDmConf,i)),t.panoramaConf!=null&&t.hasOwnProperty("panoramaConf")&&(n.panoramaConf=u.bilibili.app.playurl.v1.ArcConf.toObject(t.panoramaConf,i)),t.dolbyConf!=null&&t.hasOwnProperty("dolbyConf")&&(n.dolbyConf=u.bilibili.app.playurl.v1.ArcConf.toObject(t.dolbyConf,i)),t.screenRecordingConf!=null&&t.hasOwnProperty("screenRecordingConf")&&(n.screenRecordingConf=u.bilibili.app.playurl.v1.ArcConf.toObject(t.screenRecordingConf,i)),t.colorFilterConf!=null&&t.hasOwnProperty("colorFilterConf")&&(n.colorFilterConf=u.bilibili.app.playurl.v1.ArcConf.toObject(t.colorFilterConf,i)),t.lossLessConf!=null&&t.hasOwnProperty("lossLessConf")&&(n.lossLessConf=u.bilibili.app.playurl.v1.ArcConf.toObject(t.lossLessConf,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.playurl.v1.PlayArcConf"},e}(),c.ConfType=function(){let e={},l=Object.create(e);return l[e[0]="NoType"]=0,l[e[1]="FLIPCONF"]=1,l[e[2]="CASTCONF"]=2,l[e[3]="FEEDBACK"]=3,l[e[4]="SUBTITLE"]=4,l[e[5]="PLAYBACKRATE"]=5,l[e[6]="TIMEUP"]=6,l[e[7]="PLAYBACKMODE"]=7,l[e[8]="SCALEMODE"]=8,l[e[9]="BACKGROUNDPLAY"]=9,l[e[10]="LIKE"]=10,l[e[11]="DISLIKE"]=11,l[e[12]="COIN"]=12,l[e[13]="ELEC"]=13,l[e[14]="SHARE"]=14,l[e[15]="SCREENSHOT"]=15,l[e[16]="LOCKSCREEN"]=16,l[e[17]="RECOMMEND"]=17,l[e[18]="PLAYBACKSPEED"]=18,l[e[19]="DEFINITION"]=19,l[e[20]="SELECTIONS"]=20,l[e[21]="NEXT"]=21,l[e[22]="EDITDM"]=22,l[e[23]="SMALLWINDOW"]=23,l[e[24]="SHAKE"]=24,l[e[25]="OUTERDM"]=25,l[e[26]="INNERDM"]=26,l[e[27]="PANORAMA"]=27,l[e[28]="DOLBY"]=28,l[e[29]="COLORFILTER"]=29,l[e[30]="LOSSLESS"]=30,l}(),c.ConfValue=function(){function e(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.switchVal=i.bool();break}case 2:{a.selectedVal=i.int64();break}default:i.skipType(y&7);break}}return a},e.fromObject=function(i){if(i instanceof u.bilibili.app.playurl.v1.ConfValue)return i;let n=new u.bilibili.app.playurl.v1.ConfValue;return i.switchVal!=null&&(n.switchVal=!!i.switchVal),i.selectedVal!=null&&(r.Long?(n.selectedVal=r.Long.fromValue(i.selectedVal)).unsigned=!1:typeof i.selectedVal=="string"?n.selectedVal=parseInt(i.selectedVal,10):typeof i.selectedVal=="number"?n.selectedVal=i.selectedVal:typeof i.selectedVal=="object"&&(n.selectedVal=new r.LongBits(i.selectedVal.low>>>0,i.selectedVal.high>>>0).toNumber())),n},e.toObject=function(i,n){n||(n={});let o={};return i.switchVal!=null&&i.hasOwnProperty("switchVal")&&(o.switchVal=i.switchVal,n.oneofs&&(o.value="switchVal")),i.selectedVal!=null&&i.hasOwnProperty("selectedVal")&&(typeof i.selectedVal=="number"?o.selectedVal=n.longs===String?String(i.selectedVal):i.selectedVal:o.selectedVal=n.longs===String?r.Long.prototype.toString.call(i.selectedVal):n.longs===Number?new r.LongBits(i.selectedVal.low>>>0,i.selectedVal.high>>>0).toNumber():i.selectedVal,n.oneofs&&(o.value="selectedVal")),o},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.app.playurl.v1.ConfValue"},e}(),c.CloudConf=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.show=t.bool();break}case 2:{o.confType=t.int32();break}case 3:{o.fieldValue=u.bilibili.app.playurl.v1.FieldValue.decode(t,t.uint32());break}case 4:{o.confValue=u.bilibili.app.playurl.v1.ConfValue.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.playurl.v1.CloudConf)return t;let i=new u.bilibili.app.playurl.v1.CloudConf;switch(t.show!=null&&(i.show=!!t.show),t.confType){default:if(typeof t.confType=="number"){i.confType=t.confType;break}break;case"NoType":case 0:i.confType=0;break;case"FLIPCONF":case 1:i.confType=1;break;case"CASTCONF":case 2:i.confType=2;break;case"FEEDBACK":case 3:i.confType=3;break;case"SUBTITLE":case 4:i.confType=4;break;case"PLAYBACKRATE":case 5:i.confType=5;break;case"TIMEUP":case 6:i.confType=6;break;case"PLAYBACKMODE":case 7:i.confType=7;break;case"SCALEMODE":case 8:i.confType=8;break;case"BACKGROUNDPLAY":case 9:i.confType=9;break;case"LIKE":case 10:i.confType=10;break;case"DISLIKE":case 11:i.confType=11;break;case"COIN":case 12:i.confType=12;break;case"ELEC":case 13:i.confType=13;break;case"SHARE":case 14:i.confType=14;break;case"SCREENSHOT":case 15:i.confType=15;break;case"LOCKSCREEN":case 16:i.confType=16;break;case"RECOMMEND":case 17:i.confType=17;break;case"PLAYBACKSPEED":case 18:i.confType=18;break;case"DEFINITION":case 19:i.confType=19;break;case"SELECTIONS":case 20:i.confType=20;break;case"NEXT":case 21:i.confType=21;break;case"EDITDM":case 22:i.confType=22;break;case"SMALLWINDOW":case 23:i.confType=23;break;case"SHAKE":case 24:i.confType=24;break;case"OUTERDM":case 25:i.confType=25;break;case"INNERDM":case 26:i.confType=26;break;case"PANORAMA":case 27:i.confType=27;break;case"DOLBY":case 28:i.confType=28;break;case"COLORFILTER":case 29:i.confType=29;break;case"LOSSLESS":case 30:i.confType=30;break}if(t.fieldValue!=null){if(typeof t.fieldValue!="object")throw TypeError(".bilibili.app.playurl.v1.CloudConf.fieldValue: object expected");i.fieldValue=u.bilibili.app.playurl.v1.FieldValue.fromObject(t.fieldValue)}if(t.confValue!=null){if(typeof t.confValue!="object")throw TypeError(".bilibili.app.playurl.v1.CloudConf.confValue: object expected");i.confValue=u.bilibili.app.playurl.v1.ConfValue.fromObject(t.confValue)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.show=!1,n.confType=i.enums===String?"NoType":0,n.fieldValue=null,n.confValue=null),t.show!=null&&t.hasOwnProperty("show")&&(n.show=t.show),t.confType!=null&&t.hasOwnProperty("confType")&&(n.confType=i.enums===String?u.bilibili.app.playurl.v1.ConfType[t.confType]===void 0?t.confType:u.bilibili.app.playurl.v1.ConfType[t.confType]:t.confType),t.fieldValue!=null&&t.hasOwnProperty("fieldValue")&&(n.fieldValue=u.bilibili.app.playurl.v1.FieldValue.toObject(t.fieldValue,i)),t.confValue!=null&&t.hasOwnProperty("confValue")&&(n.confValue=u.bilibili.app.playurl.v1.ConfValue.toObject(t.confValue,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.playurl.v1.CloudConf"},e}(),c.FieldValue=function(){function e(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.switch=i.bool();break}default:i.skipType(y&7);break}}return a},e.fromObject=function(i){if(i instanceof u.bilibili.app.playurl.v1.FieldValue)return i;let n=new u.bilibili.app.playurl.v1.FieldValue;return i.switch!=null&&(n.switch=!!i.switch),n},e.toObject=function(i,n){n||(n={});let o={};return i.switch!=null&&i.hasOwnProperty("switch")&&(o.switch=i.switch,n.oneofs&&(o.value="switch")),o},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.app.playurl.v1.FieldValue"},e}(),c.ArcConf=function(){function e(l){if(this.unsupportScene=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.isSupport=t.bool();break}case 2:{o.disabled=t.bool();break}case 3:{o.extraContent=u.bilibili.app.playurl.v1.ExtraContent.decode(t,t.uint32());break}case 4:{if(o.unsupportScene&&o.unsupportScene.length||(o.unsupportScene=[]),(a&7)===2){let y=t.uint32()+t.pos;for(;t.pos>>0,t.unsupportScene[n].high>>>0).toNumber())}return i},e.toObject=function(t,i){i||(i={});let n={};if((i.arrays||i.defaults)&&(n.unsupportScene=[]),i.defaults&&(n.isSupport=!1,n.disabled=!1,n.extraContent=null),t.isSupport!=null&&t.hasOwnProperty("isSupport")&&(n.isSupport=t.isSupport),t.disabled!=null&&t.hasOwnProperty("disabled")&&(n.disabled=t.disabled),t.extraContent!=null&&t.hasOwnProperty("extraContent")&&(n.extraContent=u.bilibili.app.playurl.v1.ExtraContent.toObject(t.extraContent,i)),t.unsupportScene&&t.unsupportScene.length){n.unsupportScene=[];for(let o=0;o>>0,t.unsupportScene[o].high>>>0).toNumber():t.unsupportScene[o]}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.playurl.v1.ArcConf"},e}(),c.ExtraContent=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.disabledReason=t.string();break}case 2:{o.disabledCode=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.playurl.v1.ExtraContent)return t;let i=new u.bilibili.app.playurl.v1.ExtraContent;return t.disabledReason!=null&&(i.disabledReason=String(t.disabledReason)),t.disabledCode!=null&&(r.Long?(i.disabledCode=r.Long.fromValue(t.disabledCode)).unsigned=!1:typeof t.disabledCode=="string"?i.disabledCode=parseInt(t.disabledCode,10):typeof t.disabledCode=="number"?i.disabledCode=t.disabledCode:typeof t.disabledCode=="object"&&(i.disabledCode=new r.LongBits(t.disabledCode.low>>>0,t.disabledCode.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(n.disabledReason="",r.Long){let o=new r.Long(0,0,!1);n.disabledCode=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.disabledCode=i.longs===String?"0":0;return t.disabledReason!=null&&t.hasOwnProperty("disabledReason")&&(n.disabledReason=t.disabledReason),t.disabledCode!=null&&t.hasOwnProperty("disabledCode")&&(typeof t.disabledCode=="number"?n.disabledCode=i.longs===String?String(t.disabledCode):t.disabledCode:n.disabledCode=i.longs===String?r.Long.prototype.toString.call(t.disabledCode):i.longs===Number?new r.LongBits(t.disabledCode.low>>>0,t.disabledCode.high>>>0).toNumber():t.disabledCode),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.playurl.v1.ExtraContent"},e}(),c.VideoInfo=function(){function e(l){if(this.streamList=[],this.dashAudio=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.quality=t.uint32();break}case 2:{o.format=t.string();break}case 3:{o.timelength=t.uint64();break}case 4:{o.videoCodecid=t.uint32();break}case 5:{o.streamList&&o.streamList.length||(o.streamList=[]),o.streamList.push(u.bilibili.app.playurl.v1.Stream.decode(t,t.uint32()));break}case 6:{o.dashAudio&&o.dashAudio.length||(o.dashAudio=[]),o.dashAudio.push(u.bilibili.app.playurl.v1.DashItem.decode(t,t.uint32()));break}case 7:{o.dolby=u.bilibili.app.playurl.v1.DolbyItem.decode(t,t.uint32());break}case 8:{o.volume=u.bilibili.app.playurl.v1.VolumeInfo.decode(t,t.uint32());break}case 9:{o.lossLessItem=u.bilibili.app.playurl.v1.LossLessItem.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.playurl.v1.VideoInfo)return t;let i=new u.bilibili.app.playurl.v1.VideoInfo;if(t.quality!=null&&(i.quality=t.quality>>>0),t.format!=null&&(i.format=String(t.format)),t.timelength!=null&&(r.Long?(i.timelength=r.Long.fromValue(t.timelength)).unsigned=!0:typeof t.timelength=="string"?i.timelength=parseInt(t.timelength,10):typeof t.timelength=="number"?i.timelength=t.timelength:typeof t.timelength=="object"&&(i.timelength=new r.LongBits(t.timelength.low>>>0,t.timelength.high>>>0).toNumber(!0))),t.videoCodecid!=null&&(i.videoCodecid=t.videoCodecid>>>0),t.streamList){if(!Array.isArray(t.streamList))throw TypeError(".bilibili.app.playurl.v1.VideoInfo.streamList: array expected");i.streamList=[];for(let n=0;n>>0,t.timelength.high>>>0).toNumber(!0):t.timelength),t.videoCodecid!=null&&t.hasOwnProperty("videoCodecid")&&(n.videoCodecid=t.videoCodecid),t.streamList&&t.streamList.length){n.streamList=[];for(let o=0;o>>3){case 1:{o.isLosslessAudio=t.bool();break}case 2:{o.audio=u.bilibili.app.playurl.v1.DashItem.decode(t,t.uint32());break}case 3:{o.needVip=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.playurl.v1.LossLessItem)return t;let i=new u.bilibili.app.playurl.v1.LossLessItem;if(t.isLosslessAudio!=null&&(i.isLosslessAudio=!!t.isLosslessAudio),t.audio!=null){if(typeof t.audio!="object")throw TypeError(".bilibili.app.playurl.v1.LossLessItem.audio: object expected");i.audio=u.bilibili.app.playurl.v1.DashItem.fromObject(t.audio)}return t.needVip!=null&&(i.needVip=!!t.needVip),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.isLosslessAudio=!1,n.audio=null,n.needVip=!1),t.isLosslessAudio!=null&&t.hasOwnProperty("isLosslessAudio")&&(n.isLosslessAudio=t.isLosslessAudio),t.audio!=null&&t.hasOwnProperty("audio")&&(n.audio=u.bilibili.app.playurl.v1.DashItem.toObject(t.audio,i)),t.needVip!=null&&t.hasOwnProperty("needVip")&&(n.needVip=t.needVip),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.playurl.v1.LossLessItem"},e}(),c.VolumeInfo=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.measuredI=t.double();break}case 2:{o.measuredLra=t.double();break}case 3:{o.measuredTp=t.double();break}case 4:{o.measuredThreshold=t.double();break}case 5:{o.targetOffset=t.double();break}case 6:{o.targetI=t.double();break}case 7:{o.targetTp=t.double();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.playurl.v1.VolumeInfo)return t;let i=new u.bilibili.app.playurl.v1.VolumeInfo;return t.measuredI!=null&&(i.measuredI=Number(t.measuredI)),t.measuredLra!=null&&(i.measuredLra=Number(t.measuredLra)),t.measuredTp!=null&&(i.measuredTp=Number(t.measuredTp)),t.measuredThreshold!=null&&(i.measuredThreshold=Number(t.measuredThreshold)),t.targetOffset!=null&&(i.targetOffset=Number(t.targetOffset)),t.targetI!=null&&(i.targetI=Number(t.targetI)),t.targetTp!=null&&(i.targetTp=Number(t.targetTp)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.measuredI=0,n.measuredLra=0,n.measuredTp=0,n.measuredThreshold=0,n.targetOffset=0,n.targetI=0,n.targetTp=0),t.measuredI!=null&&t.hasOwnProperty("measuredI")&&(n.measuredI=i.json&&!isFinite(t.measuredI)?String(t.measuredI):t.measuredI),t.measuredLra!=null&&t.hasOwnProperty("measuredLra")&&(n.measuredLra=i.json&&!isFinite(t.measuredLra)?String(t.measuredLra):t.measuredLra),t.measuredTp!=null&&t.hasOwnProperty("measuredTp")&&(n.measuredTp=i.json&&!isFinite(t.measuredTp)?String(t.measuredTp):t.measuredTp),t.measuredThreshold!=null&&t.hasOwnProperty("measuredThreshold")&&(n.measuredThreshold=i.json&&!isFinite(t.measuredThreshold)?String(t.measuredThreshold):t.measuredThreshold),t.targetOffset!=null&&t.hasOwnProperty("targetOffset")&&(n.targetOffset=i.json&&!isFinite(t.targetOffset)?String(t.targetOffset):t.targetOffset),t.targetI!=null&&t.hasOwnProperty("targetI")&&(n.targetI=i.json&&!isFinite(t.targetI)?String(t.targetI):t.targetI),t.targetTp!=null&&t.hasOwnProperty("targetTp")&&(n.targetTp=i.json&&!isFinite(t.targetTp)?String(t.targetTp):t.targetTp),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.playurl.v1.VolumeInfo"},e}(),c.DolbyItem=function(){function e(l){if(this.audio=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.type=t.int32();break}case 2:{o.audio&&o.audio.length||(o.audio=[]),o.audio.push(u.bilibili.app.playurl.v1.DashItem.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.playurl.v1.DolbyItem)return t;let i=new u.bilibili.app.playurl.v1.DolbyItem;switch(t.type){default:if(typeof t.type=="number"){i.type=t.type;break}break;case"NONE":case 0:i.type=0;break;case"COMMON":case 1:i.type=1;break;case"ATMOS":case 2:i.type=2;break}if(t.audio){if(!Array.isArray(t.audio))throw TypeError(".bilibili.app.playurl.v1.DolbyItem.audio: array expected");i.audio=[];for(let n=0;n>>3){case 1:{a.streamInfo=u.bilibili.app.playurl.v1.StreamInfo.decode(i,i.uint32());break}case 2:{a.dashVideo=u.bilibili.app.playurl.v1.DashVideo.decode(i,i.uint32());break}case 3:{a.segmentVideo=u.bilibili.app.playurl.v1.SegmentVideo.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},e.fromObject=function(i){if(i instanceof u.bilibili.app.playurl.v1.Stream)return i;let n=new u.bilibili.app.playurl.v1.Stream;if(i.streamInfo!=null){if(typeof i.streamInfo!="object")throw TypeError(".bilibili.app.playurl.v1.Stream.streamInfo: object expected");n.streamInfo=u.bilibili.app.playurl.v1.StreamInfo.fromObject(i.streamInfo)}if(i.dashVideo!=null){if(typeof i.dashVideo!="object")throw TypeError(".bilibili.app.playurl.v1.Stream.dashVideo: object expected");n.dashVideo=u.bilibili.app.playurl.v1.DashVideo.fromObject(i.dashVideo)}if(i.segmentVideo!=null){if(typeof i.segmentVideo!="object")throw TypeError(".bilibili.app.playurl.v1.Stream.segmentVideo: object expected");n.segmentVideo=u.bilibili.app.playurl.v1.SegmentVideo.fromObject(i.segmentVideo)}return n},e.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.streamInfo=null),i.streamInfo!=null&&i.hasOwnProperty("streamInfo")&&(o.streamInfo=u.bilibili.app.playurl.v1.StreamInfo.toObject(i.streamInfo,n)),i.dashVideo!=null&&i.hasOwnProperty("dashVideo")&&(o.dashVideo=u.bilibili.app.playurl.v1.DashVideo.toObject(i.dashVideo,n),n.oneofs&&(o.content="dashVideo")),i.segmentVideo!=null&&i.hasOwnProperty("segmentVideo")&&(o.segmentVideo=u.bilibili.app.playurl.v1.SegmentVideo.toObject(i.segmentVideo,n),n.oneofs&&(o.content="segmentVideo")),o},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.app.playurl.v1.Stream"},e}(),c.SegmentVideo=function(){function e(l){if(this.segment=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.segment&&o.segment.length||(o.segment=[]),o.segment.push(u.bilibili.app.playurl.v1.ResponseUrl.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.playurl.v1.SegmentVideo)return t;let i=new u.bilibili.app.playurl.v1.SegmentVideo;if(t.segment){if(!Array.isArray(t.segment))throw TypeError(".bilibili.app.playurl.v1.SegmentVideo.segment: array expected");i.segment=[];for(let n=0;n>>3){case 1:{o.quality=t.uint32();break}case 2:{o.format=t.string();break}case 3:{o.description=t.string();break}case 4:{o.errCode=t.int32();break}case 5:{o.limit=u.bilibili.app.playurl.v1.StreamLimit.decode(t,t.uint32());break}case 6:{o.needVip=t.bool();break}case 7:{o.needLogin=t.bool();break}case 8:{o.intact=t.bool();break}case 9:{o.noRexcode=t.bool();break}case 10:{o.attribute=t.int64();break}case 11:{o.newDescription=t.string();break}case 12:{o.displayDesc=t.string();break}case 13:{o.superscript=t.string();break}case 14:{o.vipFree=t.bool();break}case 15:{o.subtitle=t.string();break}case 16:{o.scheme=u.bilibili.app.playurl.v1.Scheme.decode(t,t.uint32());break}case 17:{o.supportDrm=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.playurl.v1.StreamInfo)return t;let i=new u.bilibili.app.playurl.v1.StreamInfo;switch(t.quality!=null&&(i.quality=t.quality>>>0),t.format!=null&&(i.format=String(t.format)),t.description!=null&&(i.description=String(t.description)),t.errCode){default:if(typeof t.errCode=="number"){i.errCode=t.errCode;break}break;case"NoErr":case 0:i.errCode=0;break;case"WithMultiDeviceLoginErr":case 1:i.errCode=1;break}if(t.limit!=null){if(typeof t.limit!="object")throw TypeError(".bilibili.app.playurl.v1.StreamInfo.limit: object expected");i.limit=u.bilibili.app.playurl.v1.StreamLimit.fromObject(t.limit)}if(t.needVip!=null&&(i.needVip=!!t.needVip),t.needLogin!=null&&(i.needLogin=!!t.needLogin),t.intact!=null&&(i.intact=!!t.intact),t.noRexcode!=null&&(i.noRexcode=!!t.noRexcode),t.attribute!=null&&(r.Long?(i.attribute=r.Long.fromValue(t.attribute)).unsigned=!1:typeof t.attribute=="string"?i.attribute=parseInt(t.attribute,10):typeof t.attribute=="number"?i.attribute=t.attribute:typeof t.attribute=="object"&&(i.attribute=new r.LongBits(t.attribute.low>>>0,t.attribute.high>>>0).toNumber())),t.newDescription!=null&&(i.newDescription=String(t.newDescription)),t.displayDesc!=null&&(i.displayDesc=String(t.displayDesc)),t.superscript!=null&&(i.superscript=String(t.superscript)),t.vipFree!=null&&(i.vipFree=!!t.vipFree),t.subtitle!=null&&(i.subtitle=String(t.subtitle)),t.scheme!=null){if(typeof t.scheme!="object")throw TypeError(".bilibili.app.playurl.v1.StreamInfo.scheme: object expected");i.scheme=u.bilibili.app.playurl.v1.Scheme.fromObject(t.scheme)}return t.supportDrm!=null&&(i.supportDrm=!!t.supportDrm),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.quality=0,n.format="",n.description="",n.errCode=i.enums===String?"NoErr":0,n.limit=null,n.needVip=!1,n.needLogin=!1,n.intact=!1,n.noRexcode=!1,r.Long){let o=new r.Long(0,0,!1);n.attribute=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.attribute=i.longs===String?"0":0;n.newDescription="",n.displayDesc="",n.superscript="",n.vipFree=!1,n.subtitle="",n.scheme=null,n.supportDrm=!1}return t.quality!=null&&t.hasOwnProperty("quality")&&(n.quality=t.quality),t.format!=null&&t.hasOwnProperty("format")&&(n.format=t.format),t.description!=null&&t.hasOwnProperty("description")&&(n.description=t.description),t.errCode!=null&&t.hasOwnProperty("errCode")&&(n.errCode=i.enums===String?u.bilibili.app.playurl.v1.PlayErr[t.errCode]===void 0?t.errCode:u.bilibili.app.playurl.v1.PlayErr[t.errCode]:t.errCode),t.limit!=null&&t.hasOwnProperty("limit")&&(n.limit=u.bilibili.app.playurl.v1.StreamLimit.toObject(t.limit,i)),t.needVip!=null&&t.hasOwnProperty("needVip")&&(n.needVip=t.needVip),t.needLogin!=null&&t.hasOwnProperty("needLogin")&&(n.needLogin=t.needLogin),t.intact!=null&&t.hasOwnProperty("intact")&&(n.intact=t.intact),t.noRexcode!=null&&t.hasOwnProperty("noRexcode")&&(n.noRexcode=t.noRexcode),t.attribute!=null&&t.hasOwnProperty("attribute")&&(typeof t.attribute=="number"?n.attribute=i.longs===String?String(t.attribute):t.attribute:n.attribute=i.longs===String?r.Long.prototype.toString.call(t.attribute):i.longs===Number?new r.LongBits(t.attribute.low>>>0,t.attribute.high>>>0).toNumber():t.attribute),t.newDescription!=null&&t.hasOwnProperty("newDescription")&&(n.newDescription=t.newDescription),t.displayDesc!=null&&t.hasOwnProperty("displayDesc")&&(n.displayDesc=t.displayDesc),t.superscript!=null&&t.hasOwnProperty("superscript")&&(n.superscript=t.superscript),t.vipFree!=null&&t.hasOwnProperty("vipFree")&&(n.vipFree=t.vipFree),t.subtitle!=null&&t.hasOwnProperty("subtitle")&&(n.subtitle=t.subtitle),t.scheme!=null&&t.hasOwnProperty("scheme")&&(n.scheme=u.bilibili.app.playurl.v1.Scheme.toObject(t.scheme,i)),t.supportDrm!=null&&t.hasOwnProperty("supportDrm")&&(n.supportDrm=t.supportDrm),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.playurl.v1.StreamInfo"},e}(),c.Scheme=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.actionType=t.int32();break}case 2:{o.toast=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.playurl.v1.Scheme)return t;let i=new u.bilibili.app.playurl.v1.Scheme;switch(t.actionType){default:if(typeof t.actionType=="number"){i.actionType=t.actionType;break}break;case"UNKNOWN":case 0:i.actionType=0;break;case"SHOW_TOAST":case 1:i.actionType=1;break}return t.toast!=null&&(i.toast=String(t.toast)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.actionType=i.enums===String?"UNKNOWN":0,n.toast=""),t.actionType!=null&&t.hasOwnProperty("actionType")&&(n.actionType=i.enums===String?u.bilibili.app.playurl.v1.Scheme.ActionType[t.actionType]===void 0?t.actionType:u.bilibili.app.playurl.v1.Scheme.ActionType[t.actionType]:t.actionType),t.toast!=null&&t.hasOwnProperty("toast")&&(n.toast=t.toast),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.playurl.v1.Scheme"},e.ActionType=function(){let l={},t=Object.create(l);return t[l[0]="UNKNOWN"]=0,t[l[1]="SHOW_TOAST"]=1,t}(),e}(),c.StreamLimit=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.uri=t.string();break}case 3:{o.msg=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.playurl.v1.StreamLimit)return t;let i=new u.bilibili.app.playurl.v1.StreamLimit;return t.title!=null&&(i.title=String(t.title)),t.uri!=null&&(i.uri=String(t.uri)),t.msg!=null&&(i.msg=String(t.msg)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.title="",n.uri="",n.msg=""),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),t.msg!=null&&t.hasOwnProperty("msg")&&(n.msg=t.msg),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.playurl.v1.StreamLimit"},e}(),c.PlayConfEditReply=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){default:t.skipType(a&7);break}}return o},e.fromObject=function(t){return t instanceof u.bilibili.app.playurl.v1.PlayConfEditReply?t:new u.bilibili.app.playurl.v1.PlayConfEditReply},e.toObject=function(){return{}},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.playurl.v1.PlayConfEditReply"},e}(),c.PlayConfEditReq=function(){function e(l){if(this.playConf=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.playConf&&o.playConf.length||(o.playConf=[]),o.playConf.push(u.bilibili.app.playurl.v1.PlayConfState.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.playurl.v1.PlayConfEditReq)return t;let i=new u.bilibili.app.playurl.v1.PlayConfEditReq;if(t.playConf){if(!Array.isArray(t.playConf))throw TypeError(".bilibili.app.playurl.v1.PlayConfEditReq.playConf: array expected");i.playConf=[];for(let n=0;n>>3){case 1:{o.confType=t.int32();break}case 2:{o.show=t.bool();break}case 3:{o.fieldValue=u.bilibili.app.playurl.v1.FieldValue.decode(t,t.uint32());break}case 4:{o.confValue=u.bilibili.app.playurl.v1.ConfValue.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.playurl.v1.PlayConfState)return t;let i=new u.bilibili.app.playurl.v1.PlayConfState;switch(t.confType){default:if(typeof t.confType=="number"){i.confType=t.confType;break}break;case"NoType":case 0:i.confType=0;break;case"FLIPCONF":case 1:i.confType=1;break;case"CASTCONF":case 2:i.confType=2;break;case"FEEDBACK":case 3:i.confType=3;break;case"SUBTITLE":case 4:i.confType=4;break;case"PLAYBACKRATE":case 5:i.confType=5;break;case"TIMEUP":case 6:i.confType=6;break;case"PLAYBACKMODE":case 7:i.confType=7;break;case"SCALEMODE":case 8:i.confType=8;break;case"BACKGROUNDPLAY":case 9:i.confType=9;break;case"LIKE":case 10:i.confType=10;break;case"DISLIKE":case 11:i.confType=11;break;case"COIN":case 12:i.confType=12;break;case"ELEC":case 13:i.confType=13;break;case"SHARE":case 14:i.confType=14;break;case"SCREENSHOT":case 15:i.confType=15;break;case"LOCKSCREEN":case 16:i.confType=16;break;case"RECOMMEND":case 17:i.confType=17;break;case"PLAYBACKSPEED":case 18:i.confType=18;break;case"DEFINITION":case 19:i.confType=19;break;case"SELECTIONS":case 20:i.confType=20;break;case"NEXT":case 21:i.confType=21;break;case"EDITDM":case 22:i.confType=22;break;case"SMALLWINDOW":case 23:i.confType=23;break;case"SHAKE":case 24:i.confType=24;break;case"OUTERDM":case 25:i.confType=25;break;case"INNERDM":case 26:i.confType=26;break;case"PANORAMA":case 27:i.confType=27;break;case"DOLBY":case 28:i.confType=28;break;case"COLORFILTER":case 29:i.confType=29;break;case"LOSSLESS":case 30:i.confType=30;break}if(t.show!=null&&(i.show=!!t.show),t.fieldValue!=null){if(typeof t.fieldValue!="object")throw TypeError(".bilibili.app.playurl.v1.PlayConfState.fieldValue: object expected");i.fieldValue=u.bilibili.app.playurl.v1.FieldValue.fromObject(t.fieldValue)}if(t.confValue!=null){if(typeof t.confValue!="object")throw TypeError(".bilibili.app.playurl.v1.PlayConfState.confValue: object expected");i.confValue=u.bilibili.app.playurl.v1.ConfValue.fromObject(t.confValue)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.confType=i.enums===String?"NoType":0,n.show=!1,n.fieldValue=null,n.confValue=null),t.confType!=null&&t.hasOwnProperty("confType")&&(n.confType=i.enums===String?u.bilibili.app.playurl.v1.ConfType[t.confType]===void 0?t.confType:u.bilibili.app.playurl.v1.ConfType[t.confType]:t.confType),t.show!=null&&t.hasOwnProperty("show")&&(n.show=t.show),t.fieldValue!=null&&t.hasOwnProperty("fieldValue")&&(n.fieldValue=u.bilibili.app.playurl.v1.FieldValue.toObject(t.fieldValue,i)),t.confValue!=null&&t.hasOwnProperty("confValue")&&(n.confValue=u.bilibili.app.playurl.v1.ConfValue.toObject(t.confValue,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.playurl.v1.PlayConfState"},e}(),c.DashVideo=function(){function e(l){if(this.backupUrl=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.baseUrl=t.string();break}case 2:{o.backupUrl&&o.backupUrl.length||(o.backupUrl=[]),o.backupUrl.push(t.string());break}case 3:{o.bandwidth=t.uint32();break}case 4:{o.codecid=t.uint32();break}case 5:{o.md5=t.string();break}case 6:{o.size=t.uint64();break}case 7:{o.audioId=t.uint32();break}case 8:{o.noRexcode=t.bool();break}case 9:{o.frameRate=t.string();break}case 10:{o.width=t.uint32();break}case 11:{o.height=t.uint32();break}case 12:{o.widevinePssh=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.playurl.v1.DashVideo)return t;let i=new u.bilibili.app.playurl.v1.DashVideo;if(t.baseUrl!=null&&(i.baseUrl=String(t.baseUrl)),t.backupUrl){if(!Array.isArray(t.backupUrl))throw TypeError(".bilibili.app.playurl.v1.DashVideo.backupUrl: array expected");i.backupUrl=[];for(let n=0;n>>0),t.codecid!=null&&(i.codecid=t.codecid>>>0),t.md5!=null&&(i.md5=String(t.md5)),t.size!=null&&(r.Long?(i.size=r.Long.fromValue(t.size)).unsigned=!0:typeof t.size=="string"?i.size=parseInt(t.size,10):typeof t.size=="number"?i.size=t.size:typeof t.size=="object"&&(i.size=new r.LongBits(t.size.low>>>0,t.size.high>>>0).toNumber(!0))),t.audioId!=null&&(i.audioId=t.audioId>>>0),t.noRexcode!=null&&(i.noRexcode=!!t.noRexcode),t.frameRate!=null&&(i.frameRate=String(t.frameRate)),t.width!=null&&(i.width=t.width>>>0),t.height!=null&&(i.height=t.height>>>0),t.widevinePssh!=null&&(i.widevinePssh=String(t.widevinePssh)),i},e.toObject=function(t,i){i||(i={});let n={};if((i.arrays||i.defaults)&&(n.backupUrl=[]),i.defaults){if(n.baseUrl="",n.bandwidth=0,n.codecid=0,n.md5="",r.Long){let o=new r.Long(0,0,!0);n.size=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.size=i.longs===String?"0":0;n.audioId=0,n.noRexcode=!1,n.frameRate="",n.width=0,n.height=0,n.widevinePssh=""}if(t.baseUrl!=null&&t.hasOwnProperty("baseUrl")&&(n.baseUrl=t.baseUrl),t.backupUrl&&t.backupUrl.length){n.backupUrl=[];for(let o=0;o>>0,t.size.high>>>0).toNumber(!0):t.size),t.audioId!=null&&t.hasOwnProperty("audioId")&&(n.audioId=t.audioId),t.noRexcode!=null&&t.hasOwnProperty("noRexcode")&&(n.noRexcode=t.noRexcode),t.frameRate!=null&&t.hasOwnProperty("frameRate")&&(n.frameRate=t.frameRate),t.width!=null&&t.hasOwnProperty("width")&&(n.width=t.width),t.height!=null&&t.hasOwnProperty("height")&&(n.height=t.height),t.widevinePssh!=null&&t.hasOwnProperty("widevinePssh")&&(n.widevinePssh=t.widevinePssh),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.playurl.v1.DashVideo"},e}(),c.VideoType=function(){let e={},l=Object.create(e);return l[e[0]="Unknown"]=0,l[e[1]="FLV"]=1,l[e[2]="DASH"]=2,l[e[3]="MP4"]=3,l}(),c}(),p}(),d.resource=function(){let p={};return p.privacy=function(){let c={};return c.v1=function(){let e={};return e.Privacy=function(){function l(t,i,n){b.rpc.Service.call(this,t,i,n)}return(l.prototype=Object.create(b.rpc.Service.prototype)).constructor=l,l.create=function(i,n,o){return new this(i,n,o)},Object.defineProperty(l.prototype.privacyConfig=function t(i,n){return this.rpcCall(t,u.bilibili.app.resource.privacy.v1.NoArgRequest,u.bilibili.app.resource.privacy.v1.PrivacyConfigReply,i,n)},"name",{value:"PrivacyConfig"}),Object.defineProperty(l.prototype.setPrivacyConfig=function t(i,n){return this.rpcCall(t,u.bilibili.app.resource.privacy.v1.SetPrivacyConfigRequest,u.bilibili.app.resource.privacy.v1.NoReply,i,n)},"name",{value:"SetPrivacyConfig"}),l}(),e.NoArgRequest=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){default:i.skipType(y&7);break}}return a},l.fromObject=function(i){return i instanceof u.bilibili.app.resource.privacy.v1.NoArgRequest?i:new u.bilibili.app.resource.privacy.v1.NoArgRequest},l.toObject=function(){return{}},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.app.resource.privacy.v1.NoArgRequest"},l}(),e.NoReply=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){default:i.skipType(y&7);break}}return a},l.fromObject=function(i){return i instanceof u.bilibili.app.resource.privacy.v1.NoReply?i:new u.bilibili.app.resource.privacy.v1.NoReply},l.toObject=function(){return{}},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.app.resource.privacy.v1.NoReply"},l}(),e.PrivacyConfigReply=function(){function l(t){if(this.privacyConfigItem=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.privacyConfigItem&&a.privacyConfigItem.length||(a.privacyConfigItem=[]),a.privacyConfigItem.push(u.bilibili.app.resource.privacy.v1.PrivacyConfigItem.decode(i,i.uint32()));break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.app.resource.privacy.v1.PrivacyConfigReply)return i;let n=new u.bilibili.app.resource.privacy.v1.PrivacyConfigReply;if(i.privacyConfigItem){if(!Array.isArray(i.privacyConfigItem))throw TypeError(".bilibili.app.resource.privacy.v1.PrivacyConfigReply.privacyConfigItem: array expected");n.privacyConfigItem=[];for(let o=0;o>>3){case 1:{a.privacyConfigType=i.int32();break}case 2:{a.title=i.string();break}case 3:{a.state=i.int32();break}case 4:{a.subTitle=i.string();break}case 5:{a.subTitleUri=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.app.resource.privacy.v1.PrivacyConfigItem)return i;let n=new u.bilibili.app.resource.privacy.v1.PrivacyConfigItem;switch(i.privacyConfigType){default:if(typeof i.privacyConfigType=="number"){n.privacyConfigType=i.privacyConfigType;break}break;case"none":case 0:n.privacyConfigType=0;break;case"dynamic_city":case 1:n.privacyConfigType=1;break}switch(i.title!=null&&(n.title=String(i.title)),i.state){default:if(typeof i.state=="number"){n.state=i.state;break}break;case"close":case 0:n.state=0;break;case"open":case 1:n.state=1;break}return i.subTitle!=null&&(n.subTitle=String(i.subTitle)),i.subTitleUri!=null&&(n.subTitleUri=String(i.subTitleUri)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.privacyConfigType=n.enums===String?"none":0,o.title="",o.state=n.enums===String?"close":0,o.subTitle="",o.subTitleUri=""),i.privacyConfigType!=null&&i.hasOwnProperty("privacyConfigType")&&(o.privacyConfigType=n.enums===String?u.bilibili.app.resource.privacy.v1.PrivacyConfigType[i.privacyConfigType]===void 0?i.privacyConfigType:u.bilibili.app.resource.privacy.v1.PrivacyConfigType[i.privacyConfigType]:i.privacyConfigType),i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.state!=null&&i.hasOwnProperty("state")&&(o.state=n.enums===String?u.bilibili.app.resource.privacy.v1.PrivacyConfigState[i.state]===void 0?i.state:u.bilibili.app.resource.privacy.v1.PrivacyConfigState[i.state]:i.state),i.subTitle!=null&&i.hasOwnProperty("subTitle")&&(o.subTitle=i.subTitle),i.subTitleUri!=null&&i.hasOwnProperty("subTitleUri")&&(o.subTitleUri=i.subTitleUri),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.app.resource.privacy.v1.PrivacyConfigItem"},l}(),e.PrivacyConfigType=function(){let l={},t=Object.create(l);return t[l[0]="none"]=0,t[l[1]="dynamic_city"]=1,t}(),e.PrivacyConfigState=function(){let l={},t=Object.create(l);return t[l[0]="close"]=0,t[l[1]="open"]=1,t}(),e.SetPrivacyConfigRequest=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.privacyConfigType=i.int32();break}case 2:{a.state=i.int32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.app.resource.privacy.v1.SetPrivacyConfigRequest)return i;let n=new u.bilibili.app.resource.privacy.v1.SetPrivacyConfigRequest;switch(i.privacyConfigType){default:if(typeof i.privacyConfigType=="number"){n.privacyConfigType=i.privacyConfigType;break}break;case"none":case 0:n.privacyConfigType=0;break;case"dynamic_city":case 1:n.privacyConfigType=1;break}switch(i.state){default:if(typeof i.state=="number"){n.state=i.state;break}break;case"close":case 0:n.state=0;break;case"open":case 1:n.state=1;break}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.privacyConfigType=n.enums===String?"none":0,o.state=n.enums===String?"close":0),i.privacyConfigType!=null&&i.hasOwnProperty("privacyConfigType")&&(o.privacyConfigType=n.enums===String?u.bilibili.app.resource.privacy.v1.PrivacyConfigType[i.privacyConfigType]===void 0?i.privacyConfigType:u.bilibili.app.resource.privacy.v1.PrivacyConfigType[i.privacyConfigType]:i.privacyConfigType),i.state!=null&&i.hasOwnProperty("state")&&(o.state=n.enums===String?u.bilibili.app.resource.privacy.v1.PrivacyConfigState[i.state]===void 0?i.state:u.bilibili.app.resource.privacy.v1.PrivacyConfigState[i.state]:i.state),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.app.resource.privacy.v1.SetPrivacyConfigRequest"},l}(),e}(),c}(),p.v1=function(){let c={};return c.Module=function(){function e(l,t,i){b.rpc.Service.call(this,l,t,i)}return(e.prototype=Object.create(b.rpc.Service.prototype)).constructor=e,e.create=function(t,i,n){return new this(t,i,n)},Object.defineProperty(e.prototype.list=function l(t,i){return this.rpcCall(l,u.bilibili.app.resource.v1.ListReq,u.bilibili.app.resource.v1.ListReply,t,i)},"name",{value:"List"}),e}(),c.EnvType=function(){let e={},l=Object.create(e);return l[e[0]="Unknown"]=0,l[e[1]="Release"]=1,l[e[2]="Test"]=2,l}(),c.LevelType=function(){let e={},l=Object.create(e);return l[e[0]="Undefined"]=0,l[e[1]="High"]=1,l[e[2]="Middle"]=2,l[e[3]="Low"]=3,l}(),c.ListReq=function(){function e(l){if(this.versionList=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.poolName=t.string();break}case 2:{o.moduleName=t.string();break}case 3:{o.versionList&&o.versionList.length||(o.versionList=[]),o.versionList.push(u.bilibili.app.resource.v1.VersionListReq.decode(t,t.uint32()));break}case 4:{o.env=t.int32();break}case 5:{o.sysVer=t.int32();break}case 6:{o.scale=t.int32();break}case 7:{o.arch=t.int32();break}case 8:{o.listVersion=t.int64();break}case 9:{o.lite=t.int32();break}case 10:{o.supportType=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.resource.v1.ListReq)return t;let i=new u.bilibili.app.resource.v1.ListReq;if(t.poolName!=null&&(i.poolName=String(t.poolName)),t.moduleName!=null&&(i.moduleName=String(t.moduleName)),t.versionList){if(!Array.isArray(t.versionList))throw TypeError(".bilibili.app.resource.v1.ListReq.versionList: array expected");i.versionList=[];for(let n=0;n>>0,t.listVersion.high>>>0).toNumber())),t.lite!=null&&(i.lite=t.lite|0),t.supportType!=null&&(r.Long?(i.supportType=r.Long.fromValue(t.supportType)).unsigned=!1:typeof t.supportType=="string"?i.supportType=parseInt(t.supportType,10):typeof t.supportType=="number"?i.supportType=t.supportType:typeof t.supportType=="object"&&(i.supportType=new r.LongBits(t.supportType.low>>>0,t.supportType.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if((i.arrays||i.defaults)&&(n.versionList=[]),i.defaults){if(n.poolName="",n.moduleName="",n.env=i.enums===String?"Unknown":0,n.sysVer=0,n.scale=0,n.arch=0,r.Long){let o=new r.Long(0,0,!1);n.listVersion=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.listVersion=i.longs===String?"0":0;if(n.lite=0,r.Long){let o=new r.Long(0,0,!1);n.supportType=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.supportType=i.longs===String?"0":0}if(t.poolName!=null&&t.hasOwnProperty("poolName")&&(n.poolName=t.poolName),t.moduleName!=null&&t.hasOwnProperty("moduleName")&&(n.moduleName=t.moduleName),t.versionList&&t.versionList.length){n.versionList=[];for(let o=0;o>>0,t.listVersion.high>>>0).toNumber():t.listVersion),t.lite!=null&&t.hasOwnProperty("lite")&&(n.lite=t.lite),t.supportType!=null&&t.hasOwnProperty("supportType")&&(typeof t.supportType=="number"?n.supportType=i.longs===String?String(t.supportType):t.supportType:n.supportType=i.longs===String?r.Long.prototype.toString.call(t.supportType):i.longs===Number?new r.LongBits(t.supportType.low>>>0,t.supportType.high>>>0).toNumber():t.supportType),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.resource.v1.ListReq"},e}(),c.VersionListReq=function(){function e(l){if(this.versions=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.poolName=t.string();break}case 2:{o.versions&&o.versions.length||(o.versions=[]),o.versions.push(u.bilibili.app.resource.v1.VersionReq.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.resource.v1.VersionListReq)return t;let i=new u.bilibili.app.resource.v1.VersionListReq;if(t.poolName!=null&&(i.poolName=String(t.poolName)),t.versions){if(!Array.isArray(t.versions))throw TypeError(".bilibili.app.resource.v1.VersionListReq.versions: array expected");i.versions=[];for(let n=0;n>>3){case 1:{o.moduleName=t.string();break}case 2:{o.version=t.int64();break}case 3:{o.type=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.resource.v1.VersionReq)return t;let i=new u.bilibili.app.resource.v1.VersionReq;return t.moduleName!=null&&(i.moduleName=String(t.moduleName)),t.version!=null&&(r.Long?(i.version=r.Long.fromValue(t.version)).unsigned=!1:typeof t.version=="string"?i.version=parseInt(t.version,10):typeof t.version=="number"?i.version=t.version:typeof t.version=="object"&&(i.version=new r.LongBits(t.version.low>>>0,t.version.high>>>0).toNumber())),t.type!=null&&(r.Long?(i.type=r.Long.fromValue(t.type)).unsigned=!1:typeof t.type=="string"?i.type=parseInt(t.type,10):typeof t.type=="number"?i.type=t.type:typeof t.type=="object"&&(i.type=new r.LongBits(t.type.low>>>0,t.type.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.moduleName="",r.Long){let o=new r.Long(0,0,!1);n.version=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.version=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.type=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.type=i.longs===String?"0":0}return t.moduleName!=null&&t.hasOwnProperty("moduleName")&&(n.moduleName=t.moduleName),t.version!=null&&t.hasOwnProperty("version")&&(typeof t.version=="number"?n.version=i.longs===String?String(t.version):t.version:n.version=i.longs===String?r.Long.prototype.toString.call(t.version):i.longs===Number?new r.LongBits(t.version.low>>>0,t.version.high>>>0).toNumber():t.version),t.type!=null&&t.hasOwnProperty("type")&&(typeof t.type=="number"?n.type=i.longs===String?String(t.type):t.type:n.type=i.longs===String?r.Long.prototype.toString.call(t.type):i.longs===Number?new r.LongBits(t.type.low>>>0,t.type.high>>>0).toNumber():t.type),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.resource.v1.VersionReq"},e}(),c.IncrementType=function(){let e={},l=Object.create(e);return l[e[0]="Total"]=0,l[e[1]="Incremental"]=1,l}(),c.CompressType=function(){let e={},l=Object.create(e);return l[e[0]="Unzip"]=0,l[e[1]="Original"]=1,l}(),c.ListReply=function(){function e(l){if(this.pools=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.env=t.string();break}case 2:{o.pools&&o.pools.length||(o.pools=[]),o.pools.push(u.bilibili.app.resource.v1.PoolReply.decode(t,t.uint32()));break}case 3:{o.listVersion=t.int64();break}case 4:{o.host=u.bilibili.app.resource.v1.Host.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.resource.v1.ListReply)return t;let i=new u.bilibili.app.resource.v1.ListReply;if(t.env!=null&&(i.env=String(t.env)),t.pools){if(!Array.isArray(t.pools))throw TypeError(".bilibili.app.resource.v1.ListReply.pools: array expected");i.pools=[];for(let n=0;n>>0,t.listVersion.high>>>0).toNumber())),t.host!=null){if(typeof t.host!="object")throw TypeError(".bilibili.app.resource.v1.ListReply.host: object expected");i.host=u.bilibili.app.resource.v1.Host.fromObject(t.host)}return i},e.toObject=function(t,i){i||(i={});let n={};if((i.arrays||i.defaults)&&(n.pools=[]),i.defaults){if(n.env="",r.Long){let o=new r.Long(0,0,!1);n.listVersion=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.listVersion=i.longs===String?"0":0;n.host=null}if(t.env!=null&&t.hasOwnProperty("env")&&(n.env=t.env),t.pools&&t.pools.length){n.pools=[];for(let o=0;o>>0,t.listVersion.high>>>0).toNumber():t.listVersion),t.host!=null&&t.hasOwnProperty("host")&&(n.host=u.bilibili.app.resource.v1.Host.toObject(t.host,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.resource.v1.ListReply"},e}(),c.Host=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.boss=t.string();break}case 2:{o.bfs=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.resource.v1.Host)return t;let i=new u.bilibili.app.resource.v1.Host;return t.boss!=null&&(i.boss=String(t.boss)),t.bfs!=null&&(i.bfs=String(t.bfs)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.boss="",n.bfs=""),t.boss!=null&&t.hasOwnProperty("boss")&&(n.boss=t.boss),t.bfs!=null&&t.hasOwnProperty("bfs")&&(n.bfs=t.bfs),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.resource.v1.Host"},e}(),c.PoolReply=function(){function e(l){if(this.modules=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.name=t.string();break}case 2:{o.modules&&o.modules.length||(o.modules=[]),o.modules.push(u.bilibili.app.resource.v1.ModuleReply.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.resource.v1.PoolReply)return t;let i=new u.bilibili.app.resource.v1.PoolReply;if(t.name!=null&&(i.name=String(t.name)),t.modules){if(!Array.isArray(t.modules))throw TypeError(".bilibili.app.resource.v1.PoolReply.modules: array expected");i.modules=[];for(let n=0;n>>3){case 1:{o.md5=t.string();break}case 2:{o.url=t.string();break}case 3:{o.size=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.resource.v1.PatchInfo)return t;let i=new u.bilibili.app.resource.v1.PatchInfo;return t.md5!=null&&(i.md5=String(t.md5)),t.url!=null&&(i.url=String(t.url)),t.size!=null&&(r.Long?(i.size=r.Long.fromValue(t.size)).unsigned=!1:typeof t.size=="string"?i.size=parseInt(t.size,10):typeof t.size=="number"?i.size=t.size:typeof t.size=="object"&&(i.size=new r.LongBits(t.size.low>>>0,t.size.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(n.md5="",n.url="",r.Long){let o=new r.Long(0,0,!1);n.size=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.size=i.longs===String?"0":0;return t.md5!=null&&t.hasOwnProperty("md5")&&(n.md5=t.md5),t.url!=null&&t.hasOwnProperty("url")&&(n.url=t.url),t.size!=null&&t.hasOwnProperty("size")&&(typeof t.size=="number"?n.size=i.longs===String?String(t.size):t.size:n.size=i.longs===String?r.Long.prototype.toString.call(t.size):i.longs===Number?new r.LongBits(t.size.low>>>0,t.size.high>>>0).toNumber():t.size),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.resource.v1.PatchInfo"},e}(),c.ModuleReply=function(){function e(l){if(this.patchMap={},l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.name=t.string();break}case 2:{o.version=t.int64();break}case 3:{o.url=t.string();break}case 4:{o.md5=t.string();break}case 5:{o.totalMd5=t.string();break}case 6:{o.increment=t.int32();break}case 7:{o.isWifi=t.bool();break}case 8:{o.level=t.int32();break}case 9:{o.filename=t.string();break}case 10:{o.fileType=t.string();break}case 11:{o.fileSize=t.int64();break}case 12:{o.compress=t.int32();break}case 13:{o.publishTime=t.int64();break}case 14:{o.poolId=t.int64();break}case 15:{o.moduleId=t.int64();break}case 16:{o.versionId=t.int64();break}case 17:{o.fileId=t.int64();break}case 18:{o.zipCheck=t.bool();break}case 19:{o.downloadStrategy=t.int64();break}case 20:{o.experimentStrategy=t.int64();break}case 21:{o.patchMap===r.emptyObject&&(o.patchMap={});let v=t.uint32()+t.pos;for(a="",y=null;t.pos>>3){case 1:a=t.string();break;case 2:y=u.bilibili.app.resource.v1.PatchInfo.decode(t,t.uint32());break;default:t.skipType(g&7);break}}o.patchMap[a]=y;break}case 22:{o.supportType=t.int64();break}default:t.skipType(s&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.resource.v1.ModuleReply)return t;let i=new u.bilibili.app.resource.v1.ModuleReply;switch(t.name!=null&&(i.name=String(t.name)),t.version!=null&&(r.Long?(i.version=r.Long.fromValue(t.version)).unsigned=!1:typeof t.version=="string"?i.version=parseInt(t.version,10):typeof t.version=="number"?i.version=t.version:typeof t.version=="object"&&(i.version=new r.LongBits(t.version.low>>>0,t.version.high>>>0).toNumber())),t.url!=null&&(i.url=String(t.url)),t.md5!=null&&(i.md5=String(t.md5)),t.totalMd5!=null&&(i.totalMd5=String(t.totalMd5)),t.increment){default:if(typeof t.increment=="number"){i.increment=t.increment;break}break;case"Total":case 0:i.increment=0;break;case"Incremental":case 1:i.increment=1;break}switch(t.isWifi!=null&&(i.isWifi=!!t.isWifi),t.level){default:if(typeof t.level=="number"){i.level=t.level;break}break;case"Undefined":case 0:i.level=0;break;case"High":case 1:i.level=1;break;case"Middle":case 2:i.level=2;break;case"Low":case 3:i.level=3;break}switch(t.filename!=null&&(i.filename=String(t.filename)),t.fileType!=null&&(i.fileType=String(t.fileType)),t.fileSize!=null&&(r.Long?(i.fileSize=r.Long.fromValue(t.fileSize)).unsigned=!1:typeof t.fileSize=="string"?i.fileSize=parseInt(t.fileSize,10):typeof t.fileSize=="number"?i.fileSize=t.fileSize:typeof t.fileSize=="object"&&(i.fileSize=new r.LongBits(t.fileSize.low>>>0,t.fileSize.high>>>0).toNumber())),t.compress){default:if(typeof t.compress=="number"){i.compress=t.compress;break}break;case"Unzip":case 0:i.compress=0;break;case"Original":case 1:i.compress=1;break}if(t.publishTime!=null&&(r.Long?(i.publishTime=r.Long.fromValue(t.publishTime)).unsigned=!1:typeof t.publishTime=="string"?i.publishTime=parseInt(t.publishTime,10):typeof t.publishTime=="number"?i.publishTime=t.publishTime:typeof t.publishTime=="object"&&(i.publishTime=new r.LongBits(t.publishTime.low>>>0,t.publishTime.high>>>0).toNumber())),t.poolId!=null&&(r.Long?(i.poolId=r.Long.fromValue(t.poolId)).unsigned=!1:typeof t.poolId=="string"?i.poolId=parseInt(t.poolId,10):typeof t.poolId=="number"?i.poolId=t.poolId:typeof t.poolId=="object"&&(i.poolId=new r.LongBits(t.poolId.low>>>0,t.poolId.high>>>0).toNumber())),t.moduleId!=null&&(r.Long?(i.moduleId=r.Long.fromValue(t.moduleId)).unsigned=!1:typeof t.moduleId=="string"?i.moduleId=parseInt(t.moduleId,10):typeof t.moduleId=="number"?i.moduleId=t.moduleId:typeof t.moduleId=="object"&&(i.moduleId=new r.LongBits(t.moduleId.low>>>0,t.moduleId.high>>>0).toNumber())),t.versionId!=null&&(r.Long?(i.versionId=r.Long.fromValue(t.versionId)).unsigned=!1:typeof t.versionId=="string"?i.versionId=parseInt(t.versionId,10):typeof t.versionId=="number"?i.versionId=t.versionId:typeof t.versionId=="object"&&(i.versionId=new r.LongBits(t.versionId.low>>>0,t.versionId.high>>>0).toNumber())),t.fileId!=null&&(r.Long?(i.fileId=r.Long.fromValue(t.fileId)).unsigned=!1:typeof t.fileId=="string"?i.fileId=parseInt(t.fileId,10):typeof t.fileId=="number"?i.fileId=t.fileId:typeof t.fileId=="object"&&(i.fileId=new r.LongBits(t.fileId.low>>>0,t.fileId.high>>>0).toNumber())),t.zipCheck!=null&&(i.zipCheck=!!t.zipCheck),t.downloadStrategy!=null&&(r.Long?(i.downloadStrategy=r.Long.fromValue(t.downloadStrategy)).unsigned=!1:typeof t.downloadStrategy=="string"?i.downloadStrategy=parseInt(t.downloadStrategy,10):typeof t.downloadStrategy=="number"?i.downloadStrategy=t.downloadStrategy:typeof t.downloadStrategy=="object"&&(i.downloadStrategy=new r.LongBits(t.downloadStrategy.low>>>0,t.downloadStrategy.high>>>0).toNumber())),t.experimentStrategy!=null&&(r.Long?(i.experimentStrategy=r.Long.fromValue(t.experimentStrategy)).unsigned=!1:typeof t.experimentStrategy=="string"?i.experimentStrategy=parseInt(t.experimentStrategy,10):typeof t.experimentStrategy=="number"?i.experimentStrategy=t.experimentStrategy:typeof t.experimentStrategy=="object"&&(i.experimentStrategy=new r.LongBits(t.experimentStrategy.low>>>0,t.experimentStrategy.high>>>0).toNumber())),t.patchMap){if(typeof t.patchMap!="object")throw TypeError(".bilibili.app.resource.v1.ModuleReply.patchMap: object expected");i.patchMap={};for(let n=Object.keys(t.patchMap),o=0;o>>0,t.supportType.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if((i.objects||i.defaults)&&(n.patchMap={}),i.defaults){if(n.name="",r.Long){let a=new r.Long(0,0,!1);n.version=i.longs===String?a.toString():i.longs===Number?a.toNumber():a}else n.version=i.longs===String?"0":0;if(n.url="",n.md5="",n.totalMd5="",n.increment=i.enums===String?"Total":0,n.isWifi=!1,n.level=i.enums===String?"Undefined":0,n.filename="",n.fileType="",r.Long){let a=new r.Long(0,0,!1);n.fileSize=i.longs===String?a.toString():i.longs===Number?a.toNumber():a}else n.fileSize=i.longs===String?"0":0;if(n.compress=i.enums===String?"Unzip":0,r.Long){let a=new r.Long(0,0,!1);n.publishTime=i.longs===String?a.toString():i.longs===Number?a.toNumber():a}else n.publishTime=i.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);n.poolId=i.longs===String?a.toString():i.longs===Number?a.toNumber():a}else n.poolId=i.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);n.moduleId=i.longs===String?a.toString():i.longs===Number?a.toNumber():a}else n.moduleId=i.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);n.versionId=i.longs===String?a.toString():i.longs===Number?a.toNumber():a}else n.versionId=i.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);n.fileId=i.longs===String?a.toString():i.longs===Number?a.toNumber():a}else n.fileId=i.longs===String?"0":0;if(n.zipCheck=!1,r.Long){let a=new r.Long(0,0,!1);n.downloadStrategy=i.longs===String?a.toString():i.longs===Number?a.toNumber():a}else n.downloadStrategy=i.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);n.experimentStrategy=i.longs===String?a.toString():i.longs===Number?a.toNumber():a}else n.experimentStrategy=i.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);n.supportType=i.longs===String?a.toString():i.longs===Number?a.toNumber():a}else n.supportType=i.longs===String?"0":0}t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),t.version!=null&&t.hasOwnProperty("version")&&(typeof t.version=="number"?n.version=i.longs===String?String(t.version):t.version:n.version=i.longs===String?r.Long.prototype.toString.call(t.version):i.longs===Number?new r.LongBits(t.version.low>>>0,t.version.high>>>0).toNumber():t.version),t.url!=null&&t.hasOwnProperty("url")&&(n.url=t.url),t.md5!=null&&t.hasOwnProperty("md5")&&(n.md5=t.md5),t.totalMd5!=null&&t.hasOwnProperty("totalMd5")&&(n.totalMd5=t.totalMd5),t.increment!=null&&t.hasOwnProperty("increment")&&(n.increment=i.enums===String?u.bilibili.app.resource.v1.IncrementType[t.increment]===void 0?t.increment:u.bilibili.app.resource.v1.IncrementType[t.increment]:t.increment),t.isWifi!=null&&t.hasOwnProperty("isWifi")&&(n.isWifi=t.isWifi),t.level!=null&&t.hasOwnProperty("level")&&(n.level=i.enums===String?u.bilibili.app.resource.v1.LevelType[t.level]===void 0?t.level:u.bilibili.app.resource.v1.LevelType[t.level]:t.level),t.filename!=null&&t.hasOwnProperty("filename")&&(n.filename=t.filename),t.fileType!=null&&t.hasOwnProperty("fileType")&&(n.fileType=t.fileType),t.fileSize!=null&&t.hasOwnProperty("fileSize")&&(typeof t.fileSize=="number"?n.fileSize=i.longs===String?String(t.fileSize):t.fileSize:n.fileSize=i.longs===String?r.Long.prototype.toString.call(t.fileSize):i.longs===Number?new r.LongBits(t.fileSize.low>>>0,t.fileSize.high>>>0).toNumber():t.fileSize),t.compress!=null&&t.hasOwnProperty("compress")&&(n.compress=i.enums===String?u.bilibili.app.resource.v1.CompressType[t.compress]===void 0?t.compress:u.bilibili.app.resource.v1.CompressType[t.compress]:t.compress),t.publishTime!=null&&t.hasOwnProperty("publishTime")&&(typeof t.publishTime=="number"?n.publishTime=i.longs===String?String(t.publishTime):t.publishTime:n.publishTime=i.longs===String?r.Long.prototype.toString.call(t.publishTime):i.longs===Number?new r.LongBits(t.publishTime.low>>>0,t.publishTime.high>>>0).toNumber():t.publishTime),t.poolId!=null&&t.hasOwnProperty("poolId")&&(typeof t.poolId=="number"?n.poolId=i.longs===String?String(t.poolId):t.poolId:n.poolId=i.longs===String?r.Long.prototype.toString.call(t.poolId):i.longs===Number?new r.LongBits(t.poolId.low>>>0,t.poolId.high>>>0).toNumber():t.poolId),t.moduleId!=null&&t.hasOwnProperty("moduleId")&&(typeof t.moduleId=="number"?n.moduleId=i.longs===String?String(t.moduleId):t.moduleId:n.moduleId=i.longs===String?r.Long.prototype.toString.call(t.moduleId):i.longs===Number?new r.LongBits(t.moduleId.low>>>0,t.moduleId.high>>>0).toNumber():t.moduleId),t.versionId!=null&&t.hasOwnProperty("versionId")&&(typeof t.versionId=="number"?n.versionId=i.longs===String?String(t.versionId):t.versionId:n.versionId=i.longs===String?r.Long.prototype.toString.call(t.versionId):i.longs===Number?new r.LongBits(t.versionId.low>>>0,t.versionId.high>>>0).toNumber():t.versionId),t.fileId!=null&&t.hasOwnProperty("fileId")&&(typeof t.fileId=="number"?n.fileId=i.longs===String?String(t.fileId):t.fileId:n.fileId=i.longs===String?r.Long.prototype.toString.call(t.fileId):i.longs===Number?new r.LongBits(t.fileId.low>>>0,t.fileId.high>>>0).toNumber():t.fileId),t.zipCheck!=null&&t.hasOwnProperty("zipCheck")&&(n.zipCheck=t.zipCheck),t.downloadStrategy!=null&&t.hasOwnProperty("downloadStrategy")&&(typeof t.downloadStrategy=="number"?n.downloadStrategy=i.longs===String?String(t.downloadStrategy):t.downloadStrategy:n.downloadStrategy=i.longs===String?r.Long.prototype.toString.call(t.downloadStrategy):i.longs===Number?new r.LongBits(t.downloadStrategy.low>>>0,t.downloadStrategy.high>>>0).toNumber():t.downloadStrategy),t.experimentStrategy!=null&&t.hasOwnProperty("experimentStrategy")&&(typeof t.experimentStrategy=="number"?n.experimentStrategy=i.longs===String?String(t.experimentStrategy):t.experimentStrategy:n.experimentStrategy=i.longs===String?r.Long.prototype.toString.call(t.experimentStrategy):i.longs===Number?new r.LongBits(t.experimentStrategy.low>>>0,t.experimentStrategy.high>>>0).toNumber():t.experimentStrategy);let o;if(t.patchMap&&(o=Object.keys(t.patchMap)).length){n.patchMap={};for(let a=0;a>>0,t.supportType.high>>>0).toNumber():t.supportType),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.resource.v1.ModuleReply"},e}(),c.LegacyResource=function(){function e(l,t,i){b.rpc.Service.call(this,l,t,i)}return(e.prototype=Object.create(b.rpc.Service.prototype)).constructor=e,e.create=function(t,i,n){return new this(t,i,n)},Object.defineProperty(e.prototype.download=function l(t,i){return this.rpcCall(l,u.bilibili.app.resource.v1.DownloadReq,u.bilibili.app.resource.v1.DownloadReply,t,i)},"name",{value:"Download"}),e}(),c.DownloadReply=function(){function e(l){if(this.resource=[],this.dwtime={},l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.ver=t.string();break}case 2:{o.resource&&o.resource.length||(o.resource=[]),o.resource.push(u.bilibili.app.resource.v1.Download.decode(t,t.uint32()));break}case 3:{o.dwtime===r.emptyObject&&(o.dwtime={});let v=t.uint32()+t.pos;for(a="",y=null;t.pos>>3){case 1:a=t.string();break;case 2:y=u.bilibili.app.resource.v1.DwTime.decode(t,t.uint32());break;default:t.skipType(g&7);break}}o.dwtime[a]=y;break}default:t.skipType(s&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.resource.v1.DownloadReply)return t;let i=new u.bilibili.app.resource.v1.DownloadReply;if(t.ver!=null&&(i.ver=String(t.ver)),t.resource){if(!Array.isArray(t.resource))throw TypeError(".bilibili.app.resource.v1.DownloadReply.resource: array expected");i.resource=[];for(let n=0;n>>3){case 1:{o.type=t.string();break}case 2:{o.extraValue=t.string();break}case 3:{o.list&&o.list.length||(o.list=[]),o.list.push(u.bilibili.app.resource.v1.ResourceItem.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.resource.v1.Download)return t;let i=new u.bilibili.app.resource.v1.Download;if(t.type!=null&&(i.type=String(t.type)),t.extraValue!=null&&(i.extraValue=String(t.extraValue)),t.list){if(!Array.isArray(t.list))throw TypeError(".bilibili.app.resource.v1.Download.list: array expected");i.list=[];for(let n=0;n>>3){case 1:{o.ver=t.string();break}case 2:{o.type=t.string();break}case 3:{o.screenWidth=t.int64();break}case 4:{o.screenHeight=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.resource.v1.DownloadReq)return t;let i=new u.bilibili.app.resource.v1.DownloadReq;return t.ver!=null&&(i.ver=String(t.ver)),t.type!=null&&(i.type=String(t.type)),t.screenWidth!=null&&(r.Long?(i.screenWidth=r.Long.fromValue(t.screenWidth)).unsigned=!1:typeof t.screenWidth=="string"?i.screenWidth=parseInt(t.screenWidth,10):typeof t.screenWidth=="number"?i.screenWidth=t.screenWidth:typeof t.screenWidth=="object"&&(i.screenWidth=new r.LongBits(t.screenWidth.low>>>0,t.screenWidth.high>>>0).toNumber())),t.screenHeight!=null&&(r.Long?(i.screenHeight=r.Long.fromValue(t.screenHeight)).unsigned=!1:typeof t.screenHeight=="string"?i.screenHeight=parseInt(t.screenHeight,10):typeof t.screenHeight=="number"?i.screenHeight=t.screenHeight:typeof t.screenHeight=="object"&&(i.screenHeight=new r.LongBits(t.screenHeight.low>>>0,t.screenHeight.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.ver="",n.type="",r.Long){let o=new r.Long(0,0,!1);n.screenWidth=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.screenWidth=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.screenHeight=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.screenHeight=i.longs===String?"0":0}return t.ver!=null&&t.hasOwnProperty("ver")&&(n.ver=t.ver),t.type!=null&&t.hasOwnProperty("type")&&(n.type=t.type),t.screenWidth!=null&&t.hasOwnProperty("screenWidth")&&(typeof t.screenWidth=="number"?n.screenWidth=i.longs===String?String(t.screenWidth):t.screenWidth:n.screenWidth=i.longs===String?r.Long.prototype.toString.call(t.screenWidth):i.longs===Number?new r.LongBits(t.screenWidth.low>>>0,t.screenWidth.high>>>0).toNumber():t.screenWidth),t.screenHeight!=null&&t.hasOwnProperty("screenHeight")&&(typeof t.screenHeight=="number"?n.screenHeight=i.longs===String?String(t.screenHeight):t.screenHeight:n.screenHeight=i.longs===String?r.Long.prototype.toString.call(t.screenHeight):i.longs===Number?new r.LongBits(t.screenHeight.low>>>0,t.screenHeight.high>>>0).toNumber():t.screenHeight),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.resource.v1.DownloadReq"},e}(),c.ResourceItem=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.taskId=t.string();break}case 2:{o.fileName=t.string();break}case 3:{o.type=t.string();break}case 4:{o.url=t.string();break}case 5:{o.hash=t.string();break}case 6:{o.size=t.int32();break}case 7:{o.expectDw=t.int32();break}case 8:{o.effectTime=t.int64();break}case 9:{o.expireTime=t.int64();break}case 10:{o.priority=t.int32();break}case 11:{o.extra=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.resource.v1.ResourceItem)return t;let i=new u.bilibili.app.resource.v1.ResourceItem;return t.taskId!=null&&(i.taskId=String(t.taskId)),t.fileName!=null&&(i.fileName=String(t.fileName)),t.type!=null&&(i.type=String(t.type)),t.url!=null&&(i.url=String(t.url)),t.hash!=null&&(i.hash=String(t.hash)),t.size!=null&&(i.size=t.size|0),t.expectDw!=null&&(i.expectDw=t.expectDw|0),t.effectTime!=null&&(r.Long?(i.effectTime=r.Long.fromValue(t.effectTime)).unsigned=!1:typeof t.effectTime=="string"?i.effectTime=parseInt(t.effectTime,10):typeof t.effectTime=="number"?i.effectTime=t.effectTime:typeof t.effectTime=="object"&&(i.effectTime=new r.LongBits(t.effectTime.low>>>0,t.effectTime.high>>>0).toNumber())),t.expireTime!=null&&(r.Long?(i.expireTime=r.Long.fromValue(t.expireTime)).unsigned=!1:typeof t.expireTime=="string"?i.expireTime=parseInt(t.expireTime,10):typeof t.expireTime=="number"?i.expireTime=t.expireTime:typeof t.expireTime=="object"&&(i.expireTime=new r.LongBits(t.expireTime.low>>>0,t.expireTime.high>>>0).toNumber())),t.priority!=null&&(i.priority=t.priority|0),t.extra!=null&&(i.extra=String(t.extra)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.taskId="",n.fileName="",n.type="",n.url="",n.hash="",n.size=0,n.expectDw=0,r.Long){let o=new r.Long(0,0,!1);n.effectTime=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.effectTime=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.expireTime=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.expireTime=i.longs===String?"0":0;n.priority=0,n.extra=""}return t.taskId!=null&&t.hasOwnProperty("taskId")&&(n.taskId=t.taskId),t.fileName!=null&&t.hasOwnProperty("fileName")&&(n.fileName=t.fileName),t.type!=null&&t.hasOwnProperty("type")&&(n.type=t.type),t.url!=null&&t.hasOwnProperty("url")&&(n.url=t.url),t.hash!=null&&t.hasOwnProperty("hash")&&(n.hash=t.hash),t.size!=null&&t.hasOwnProperty("size")&&(n.size=t.size),t.expectDw!=null&&t.hasOwnProperty("expectDw")&&(n.expectDw=t.expectDw),t.effectTime!=null&&t.hasOwnProperty("effectTime")&&(typeof t.effectTime=="number"?n.effectTime=i.longs===String?String(t.effectTime):t.effectTime:n.effectTime=i.longs===String?r.Long.prototype.toString.call(t.effectTime):i.longs===Number?new r.LongBits(t.effectTime.low>>>0,t.effectTime.high>>>0).toNumber():t.effectTime),t.expireTime!=null&&t.hasOwnProperty("expireTime")&&(typeof t.expireTime=="number"?n.expireTime=i.longs===String?String(t.expireTime):t.expireTime:n.expireTime=i.longs===String?r.Long.prototype.toString.call(t.expireTime):i.longs===Number?new r.LongBits(t.expireTime.low>>>0,t.expireTime.high>>>0).toNumber():t.expireTime),t.priority!=null&&t.hasOwnProperty("priority")&&(n.priority=t.priority),t.extra!=null&&t.hasOwnProperty("extra")&&(n.extra=t.extra),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.resource.v1.ResourceItem"},e}(),c.DwTimePiece=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.start=t.int64();break}case 2:{o.end=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.resource.v1.DwTimePiece)return t;let i=new u.bilibili.app.resource.v1.DwTimePiece;return t.start!=null&&(r.Long?(i.start=r.Long.fromValue(t.start)).unsigned=!1:typeof t.start=="string"?i.start=parseInt(t.start,10):typeof t.start=="number"?i.start=t.start:typeof t.start=="object"&&(i.start=new r.LongBits(t.start.low>>>0,t.start.high>>>0).toNumber())),t.end!=null&&(r.Long?(i.end=r.Long.fromValue(t.end)).unsigned=!1:typeof t.end=="string"?i.end=parseInt(t.end,10):typeof t.end=="number"?i.end=t.end:typeof t.end=="object"&&(i.end=new r.LongBits(t.end.low>>>0,t.end.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.start=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.start=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.end=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.end=i.longs===String?"0":0}return t.start!=null&&t.hasOwnProperty("start")&&(typeof t.start=="number"?n.start=i.longs===String?String(t.start):t.start:n.start=i.longs===String?r.Long.prototype.toString.call(t.start):i.longs===Number?new r.LongBits(t.start.low>>>0,t.start.high>>>0).toNumber():t.start),t.end!=null&&t.hasOwnProperty("end")&&(typeof t.end=="number"?n.end=i.longs===String?String(t.end):t.end:n.end=i.longs===String?r.Long.prototype.toString.call(t.end):i.longs===Number?new r.LongBits(t.end.low>>>0,t.end.high>>>0).toNumber():t.end),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.resource.v1.DwTimePiece"},e}(),c.DwTime=function(){function e(l){if(this.peak=[],this.low=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.type=t.int32();break}case 2:{o.peak&&o.peak.length||(o.peak=[]),o.peak.push(u.bilibili.app.resource.v1.DwTimePiece.decode(t,t.uint32()));break}case 3:{o.low&&o.low.length||(o.low=[]),o.low.push(u.bilibili.app.resource.v1.DwTimePiece.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.resource.v1.DwTime)return t;let i=new u.bilibili.app.resource.v1.DwTime;if(t.type!=null&&(i.type=t.type|0),t.peak){if(!Array.isArray(t.peak))throw TypeError(".bilibili.app.resource.v1.DwTime.peak: array expected");i.peak=[];for(let n=0;n>>3){default:t.skipType(a&7);break}}return o},e.fromObject=function(t){return t instanceof u.bilibili.app.search.v2.GetChatAuthReq?t:new u.bilibili.app.search.v2.GetChatAuthReq},e.toObject=function(){return{}},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.search.v2.GetChatAuthReq"},e}(),c.GetChatAuthReply=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.display=t.bool();break}case 2:{o.icon=t.string();break}case 3:{o.iconNight=t.string();break}case 4:{o.jumpLink=t.string();break}case 5:{o.textGuide=t.string();break}case 6:{o.jumpLinkType=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.search.v2.GetChatAuthReply)return t;let i=new u.bilibili.app.search.v2.GetChatAuthReply;return t.display!=null&&(i.display=!!t.display),t.icon!=null&&(i.icon=String(t.icon)),t.iconNight!=null&&(i.iconNight=String(t.iconNight)),t.jumpLink!=null&&(i.jumpLink=String(t.jumpLink)),t.textGuide!=null&&(i.textGuide=String(t.textGuide)),t.jumpLinkType!=null&&(i.jumpLinkType=t.jumpLinkType|0),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.display=!1,n.icon="",n.iconNight="",n.jumpLink="",n.textGuide="",n.jumpLinkType=0),t.display!=null&&t.hasOwnProperty("display")&&(n.display=t.display),t.icon!=null&&t.hasOwnProperty("icon")&&(n.icon=t.icon),t.iconNight!=null&&t.hasOwnProperty("iconNight")&&(n.iconNight=t.iconNight),t.jumpLink!=null&&t.hasOwnProperty("jumpLink")&&(n.jumpLink=t.jumpLink),t.textGuide!=null&&t.hasOwnProperty("textGuide")&&(n.textGuide=t.textGuide),t.jumpLinkType!=null&&t.hasOwnProperty("jumpLinkType")&&(n.jumpLinkType=t.jumpLinkType),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.search.v2.GetChatAuthReply"},e}(),c.SearchEggReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){default:t.skipType(a&7);break}}return o},e.fromObject=function(t){return t instanceof u.bilibili.app.search.v2.SearchEggReq?t:new u.bilibili.app.search.v2.SearchEggReq},e.toObject=function(){return{}},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.search.v2.SearchEggReq"},e}(),c.SearchEggReply=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.code=t.int32();break}case 2:{o.seid=t.string();break}case 3:{o.result=u.bilibili.app.search.v2.SearchEggInfos.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.search.v2.SearchEggReply)return t;let i=new u.bilibili.app.search.v2.SearchEggReply;if(t.code!=null&&(i.code=t.code|0),t.seid!=null&&(i.seid=String(t.seid)),t.result!=null){if(typeof t.result!="object")throw TypeError(".bilibili.app.search.v2.SearchEggReply.result: object expected");i.result=u.bilibili.app.search.v2.SearchEggInfos.fromObject(t.result)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.code=0,n.seid="",n.result=null),t.code!=null&&t.hasOwnProperty("code")&&(n.code=t.code),t.seid!=null&&t.hasOwnProperty("seid")&&(n.seid=t.seid),t.result!=null&&t.hasOwnProperty("result")&&(n.result=u.bilibili.app.search.v2.SearchEggInfos.toObject(t.result,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.search.v2.SearchEggReply"},e}(),c.SearchEggInfos=function(){function e(l){if(this.eggInfo=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.eggInfo&&o.eggInfo.length||(o.eggInfo=[]),o.eggInfo.push(u.bilibili.app.search.v2.SearchEggInfo.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.search.v2.SearchEggInfos)return t;let i=new u.bilibili.app.search.v2.SearchEggInfos;if(t.eggInfo){if(!Array.isArray(t.eggInfo))throw TypeError(".bilibili.app.search.v2.SearchEggInfos.eggInfo: array expected");i.eggInfo=[];for(let n=0;n>>3){case 1:{o.eggType=t.int32();break}case 2:{o.id=t.int64();break}case 3:{o.isCommercial=t.int32();break}case 4:{o.maskColor=t.string();break}case 5:{o.maskTransparency=t.int64();break}case 6:{o.md5=t.string();break}case 7:{o.reType=t.int32();break}case 8:{o.reUrl=t.string();break}case 9:{o.reValue=t.string();break}case 10:{o.showCount=t.int32();break}case 11:{o.size=t.int64();break}case 12:{o.source=t.int64();break}case 13:{o.url=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.search.v2.SearchEggInfo)return t;let i=new u.bilibili.app.search.v2.SearchEggInfo;return t.eggType!=null&&(i.eggType=t.eggType|0),t.id!=null&&(r.Long?(i.id=r.Long.fromValue(t.id)).unsigned=!1:typeof t.id=="string"?i.id=parseInt(t.id,10):typeof t.id=="number"?i.id=t.id:typeof t.id=="object"&&(i.id=new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber())),t.isCommercial!=null&&(i.isCommercial=t.isCommercial|0),t.maskColor!=null&&(i.maskColor=String(t.maskColor)),t.maskTransparency!=null&&(r.Long?(i.maskTransparency=r.Long.fromValue(t.maskTransparency)).unsigned=!1:typeof t.maskTransparency=="string"?i.maskTransparency=parseInt(t.maskTransparency,10):typeof t.maskTransparency=="number"?i.maskTransparency=t.maskTransparency:typeof t.maskTransparency=="object"&&(i.maskTransparency=new r.LongBits(t.maskTransparency.low>>>0,t.maskTransparency.high>>>0).toNumber())),t.md5!=null&&(i.md5=String(t.md5)),t.reType!=null&&(i.reType=t.reType|0),t.reUrl!=null&&(i.reUrl=String(t.reUrl)),t.reValue!=null&&(i.reValue=String(t.reValue)),t.showCount!=null&&(i.showCount=t.showCount|0),t.size!=null&&(r.Long?(i.size=r.Long.fromValue(t.size)).unsigned=!1:typeof t.size=="string"?i.size=parseInt(t.size,10):typeof t.size=="number"?i.size=t.size:typeof t.size=="object"&&(i.size=new r.LongBits(t.size.low>>>0,t.size.high>>>0).toNumber())),t.source!=null&&(r.Long?(i.source=r.Long.fromValue(t.source)).unsigned=!1:typeof t.source=="string"?i.source=parseInt(t.source,10):typeof t.source=="number"?i.source=t.source:typeof t.source=="object"&&(i.source=new r.LongBits(t.source.low>>>0,t.source.high>>>0).toNumber())),t.url!=null&&(i.url=String(t.url)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.eggType=0,r.Long){let o=new r.Long(0,0,!1);n.id=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.id=i.longs===String?"0":0;if(n.isCommercial=0,n.maskColor="",r.Long){let o=new r.Long(0,0,!1);n.maskTransparency=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.maskTransparency=i.longs===String?"0":0;if(n.md5="",n.reType=0,n.reUrl="",n.reValue="",n.showCount=0,r.Long){let o=new r.Long(0,0,!1);n.size=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.size=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.source=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.source=i.longs===String?"0":0;n.url=""}return t.eggType!=null&&t.hasOwnProperty("eggType")&&(n.eggType=t.eggType),t.id!=null&&t.hasOwnProperty("id")&&(typeof t.id=="number"?n.id=i.longs===String?String(t.id):t.id:n.id=i.longs===String?r.Long.prototype.toString.call(t.id):i.longs===Number?new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber():t.id),t.isCommercial!=null&&t.hasOwnProperty("isCommercial")&&(n.isCommercial=t.isCommercial),t.maskColor!=null&&t.hasOwnProperty("maskColor")&&(n.maskColor=t.maskColor),t.maskTransparency!=null&&t.hasOwnProperty("maskTransparency")&&(typeof t.maskTransparency=="number"?n.maskTransparency=i.longs===String?String(t.maskTransparency):t.maskTransparency:n.maskTransparency=i.longs===String?r.Long.prototype.toString.call(t.maskTransparency):i.longs===Number?new r.LongBits(t.maskTransparency.low>>>0,t.maskTransparency.high>>>0).toNumber():t.maskTransparency),t.md5!=null&&t.hasOwnProperty("md5")&&(n.md5=t.md5),t.reType!=null&&t.hasOwnProperty("reType")&&(n.reType=t.reType),t.reUrl!=null&&t.hasOwnProperty("reUrl")&&(n.reUrl=t.reUrl),t.reValue!=null&&t.hasOwnProperty("reValue")&&(n.reValue=t.reValue),t.showCount!=null&&t.hasOwnProperty("showCount")&&(n.showCount=t.showCount),t.size!=null&&t.hasOwnProperty("size")&&(typeof t.size=="number"?n.size=i.longs===String?String(t.size):t.size:n.size=i.longs===String?r.Long.prototype.toString.call(t.size):i.longs===Number?new r.LongBits(t.size.low>>>0,t.size.high>>>0).toNumber():t.size),t.source!=null&&t.hasOwnProperty("source")&&(typeof t.source=="number"?n.source=i.longs===String?String(t.source):t.source:n.source=i.longs===String?r.Long.prototype.toString.call(t.source):i.longs===Number?new r.LongBits(t.source.low>>>0,t.source.high>>>0).toNumber():t.source),t.url!=null&&t.hasOwnProperty("url")&&(n.url=t.url),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.search.v2.SearchEggInfo"},e}(),c.GetChatResultReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.query=t.string();break}case 2:{o.sessionId=t.string();break}case 3:{o.fromSource=t.string();break}case 4:{o.trackId=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.search.v2.GetChatResultReq)return t;let i=new u.bilibili.app.search.v2.GetChatResultReq;return t.query!=null&&(i.query=String(t.query)),t.sessionId!=null&&(i.sessionId=String(t.sessionId)),t.fromSource!=null&&(i.fromSource=String(t.fromSource)),t.trackId!=null&&(i.trackId=String(t.trackId)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.query="",n.sessionId="",n.fromSource="",n.trackId=""),t.query!=null&&t.hasOwnProperty("query")&&(n.query=t.query),t.sessionId!=null&&t.hasOwnProperty("sessionId")&&(n.sessionId=t.sessionId),t.fromSource!=null&&t.hasOwnProperty("fromSource")&&(n.fromSource=t.fromSource),t.trackId!=null&&t.hasOwnProperty("trackId")&&(n.trackId=t.trackId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.search.v2.GetChatResultReq"},e}(),c.CancelChatTaskReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.sessionId=t.string();break}case 2:{o.fromSource=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.search.v2.CancelChatTaskReq)return t;let i=new u.bilibili.app.search.v2.CancelChatTaskReq;return t.sessionId!=null&&(i.sessionId=String(t.sessionId)),t.fromSource!=null&&(i.fromSource=String(t.fromSource)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.sessionId="",n.fromSource=""),t.sessionId!=null&&t.hasOwnProperty("sessionId")&&(n.sessionId=t.sessionId),t.fromSource!=null&&t.hasOwnProperty("fromSource")&&(n.fromSource=t.fromSource),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.search.v2.CancelChatTaskReq"},e}(),c.CancelChatTaskReply=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.code=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.search.v2.CancelChatTaskReply)return t;let i=new u.bilibili.app.search.v2.CancelChatTaskReply;return t.code!=null&&(i.code=t.code|0),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.code=0),t.code!=null&&t.hasOwnProperty("code")&&(n.code=t.code),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.search.v2.CancelChatTaskReply"},e}(),c.SubmitChatTaskReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.query=t.string();break}case 2:{o.trackId=t.string();break}case 3:{o.fromSource=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.search.v2.SubmitChatTaskReq)return t;let i=new u.bilibili.app.search.v2.SubmitChatTaskReq;return t.query!=null&&(i.query=String(t.query)),t.trackId!=null&&(i.trackId=String(t.trackId)),t.fromSource!=null&&(i.fromSource=String(t.fromSource)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.query="",n.trackId="",n.fromSource=""),t.query!=null&&t.hasOwnProperty("query")&&(n.query=t.query),t.trackId!=null&&t.hasOwnProperty("trackId")&&(n.trackId=t.trackId),t.fromSource!=null&&t.hasOwnProperty("fromSource")&&(n.fromSource=t.fromSource),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.search.v2.SubmitChatTaskReq"},e}(),c.SubmitChatTaskReply=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.code=t.int32();break}case 2:{o.sessionId=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.search.v2.SubmitChatTaskReply)return t;let i=new u.bilibili.app.search.v2.SubmitChatTaskReply;return t.code!=null&&(i.code=t.code|0),t.sessionId!=null&&(i.sessionId=String(t.sessionId)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.code=0,n.sessionId=""),t.code!=null&&t.hasOwnProperty("code")&&(n.code=t.code),t.sessionId!=null&&t.hasOwnProperty("sessionId")&&(n.sessionId=t.sessionId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.search.v2.SubmitChatTaskReply"},e}(),c.QueryRecAfterClickReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.param=t.string();break}case 2:{o.pos=t.int32();break}case 3:{o.trackId=t.string();break}case 4:{o.qvId=t.string();break}case 5:{o.keyword=t.string();break}case 6:{o.clickUrl=t.string();break}case 7:{o.fromSource=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.search.v2.QueryRecAfterClickReq)return t;let i=new u.bilibili.app.search.v2.QueryRecAfterClickReq;return t.param!=null&&(i.param=String(t.param)),t.pos!=null&&(i.pos=t.pos|0),t.trackId!=null&&(i.trackId=String(t.trackId)),t.qvId!=null&&(i.qvId=String(t.qvId)),t.keyword!=null&&(i.keyword=String(t.keyword)),t.clickUrl!=null&&(i.clickUrl=String(t.clickUrl)),t.fromSource!=null&&(i.fromSource=String(t.fromSource)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.param="",n.pos=0,n.trackId="",n.qvId="",n.keyword="",n.clickUrl="",n.fromSource=""),t.param!=null&&t.hasOwnProperty("param")&&(n.param=t.param),t.pos!=null&&t.hasOwnProperty("pos")&&(n.pos=t.pos),t.trackId!=null&&t.hasOwnProperty("trackId")&&(n.trackId=t.trackId),t.qvId!=null&&t.hasOwnProperty("qvId")&&(n.qvId=t.qvId),t.keyword!=null&&t.hasOwnProperty("keyword")&&(n.keyword=t.keyword),t.clickUrl!=null&&t.hasOwnProperty("clickUrl")&&(n.clickUrl=t.clickUrl),t.fromSource!=null&&t.hasOwnProperty("fromSource")&&(n.fromSource=t.fromSource),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.search.v2.QueryRecAfterClickReq"},e}(),c.QueryRecAfterClickItem=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.showName=t.string();break}case 2:{o.recommendReason=t.string();break}case 3:{o.iconType=t.int32();break}case 4:{o.url=t.string();break}case 5:{o.icon=t.string();break}case 6:{o.iconNight=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.search.v2.QueryRecAfterClickItem)return t;let i=new u.bilibili.app.search.v2.QueryRecAfterClickItem;return t.showName!=null&&(i.showName=String(t.showName)),t.recommendReason!=null&&(i.recommendReason=String(t.recommendReason)),t.iconType!=null&&(i.iconType=t.iconType|0),t.url!=null&&(i.url=String(t.url)),t.icon!=null&&(i.icon=String(t.icon)),t.iconNight!=null&&(i.iconNight=String(t.iconNight)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.showName="",n.recommendReason="",n.iconType=0,n.url="",n.icon="",n.iconNight=""),t.showName!=null&&t.hasOwnProperty("showName")&&(n.showName=t.showName),t.recommendReason!=null&&t.hasOwnProperty("recommendReason")&&(n.recommendReason=t.recommendReason),t.iconType!=null&&t.hasOwnProperty("iconType")&&(n.iconType=t.iconType),t.url!=null&&t.hasOwnProperty("url")&&(n.url=t.url),t.icon!=null&&t.hasOwnProperty("icon")&&(n.icon=t.icon),t.iconNight!=null&&t.hasOwnProperty("iconNight")&&(n.iconNight=t.iconNight),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.search.v2.QueryRecAfterClickItem"},e}(),c.QueryRecAfterClickResult=function(){function e(l){if(this.queryRecList=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.queryRecList&&o.queryRecList.length||(o.queryRecList=[]),o.queryRecList.push(u.bilibili.app.search.v2.QueryRecAfterClickItem.decode(t,t.uint32()));break}case 2:{o.relatedTitle=t.string();break}case 3:{o.param=t.string();break}case 4:{o.goto=t.string();break}case 5:{o.linktype=t.string();break}case 6:{o.position=t.int32();break}case 7:{o.trackid=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.search.v2.QueryRecAfterClickResult)return t;let i=new u.bilibili.app.search.v2.QueryRecAfterClickResult;if(t.queryRecList){if(!Array.isArray(t.queryRecList))throw TypeError(".bilibili.app.search.v2.QueryRecAfterClickResult.queryRecList: array expected");i.queryRecList=[];for(let n=0;n>>3){case 1:{o.code=t.int32();break}case 2:{o.queryRecResult=u.bilibili.app.search.v2.QueryRecAfterClickResult.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.search.v2.QueryRecAfterClickReply)return t;let i=new u.bilibili.app.search.v2.QueryRecAfterClickReply;if(t.code!=null&&(i.code=t.code|0),t.queryRecResult!=null){if(typeof t.queryRecResult!="object")throw TypeError(".bilibili.app.search.v2.QueryRecAfterClickReply.queryRecResult: object expected");i.queryRecResult=u.bilibili.app.search.v2.QueryRecAfterClickResult.fromObject(t.queryRecResult)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.code=0,n.queryRecResult=null),t.code!=null&&t.hasOwnProperty("code")&&(n.code=t.code),t.queryRecResult!=null&&t.hasOwnProperty("queryRecResult")&&(n.queryRecResult=u.bilibili.app.search.v2.QueryRecAfterClickResult.toObject(t.queryRecResult,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.search.v2.QueryRecAfterClickReply"},e}(),c.SearchShortUrlReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.shortUrl=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.search.v2.SearchShortUrlReq)return t;let i=new u.bilibili.app.search.v2.SearchShortUrlReq;return t.shortUrl!=null&&(i.shortUrl=String(t.shortUrl)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.shortUrl=""),t.shortUrl!=null&&t.hasOwnProperty("shortUrl")&&(n.shortUrl=t.shortUrl),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.search.v2.SearchShortUrlReq"},e}(),c.SearchShortUrlReply=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.originUrl=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.search.v2.SearchShortUrlReply)return t;let i=new u.bilibili.app.search.v2.SearchShortUrlReply;return t.originUrl!=null&&(i.originUrl=String(t.originUrl)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.originUrl=""),t.originUrl!=null&&t.hasOwnProperty("originUrl")&&(n.originUrl=t.originUrl),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.search.v2.SearchShortUrlReply"},e}(),c}(),p}(),d.show=function(){let p={};return p.v1=function(){let c={};return c.AppShow=function(){function e(l,t,i){b.rpc.Service.call(this,l,t,i)}return(e.prototype=Object.create(b.rpc.Service.prototype)).constructor=e,e.create=function(t,i,n){return new this(t,i,n)},Object.defineProperty(e.prototype.getActProgress=function l(t,i){return this.rpcCall(l,u.bilibili.app.show.v1.GetActProgressReq,u.bilibili.app.show.v1.GetActProgressReply,t,i)},"name",{value:"GetActProgress"}),e}(),c.GetActProgressReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.PageID=t.int64();break}case 2:{o.Mid=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.show.v1.GetActProgressReq)return t;let i=new u.bilibili.app.show.v1.GetActProgressReq;return t.PageID!=null&&(r.Long?(i.PageID=r.Long.fromValue(t.PageID)).unsigned=!1:typeof t.PageID=="string"?i.PageID=parseInt(t.PageID,10):typeof t.PageID=="number"?i.PageID=t.PageID:typeof t.PageID=="object"&&(i.PageID=new r.LongBits(t.PageID.low>>>0,t.PageID.high>>>0).toNumber())),t.Mid!=null&&(r.Long?(i.Mid=r.Long.fromValue(t.Mid)).unsigned=!1:typeof t.Mid=="string"?i.Mid=parseInt(t.Mid,10):typeof t.Mid=="number"?i.Mid=t.Mid:typeof t.Mid=="object"&&(i.Mid=new r.LongBits(t.Mid.low>>>0,t.Mid.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.PageID=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.PageID=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.Mid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.Mid=i.longs===String?"0":0}return t.PageID!=null&&t.hasOwnProperty("PageID")&&(typeof t.PageID=="number"?n.PageID=i.longs===String?String(t.PageID):t.PageID:n.PageID=i.longs===String?r.Long.prototype.toString.call(t.PageID):i.longs===Number?new r.LongBits(t.PageID.low>>>0,t.PageID.high>>>0).toNumber():t.PageID),t.Mid!=null&&t.hasOwnProperty("Mid")&&(typeof t.Mid=="number"?n.Mid=i.longs===String?String(t.Mid):t.Mid:n.Mid=i.longs===String?r.Long.prototype.toString.call(t.Mid):i.longs===Number?new r.LongBits(t.Mid.low>>>0,t.Mid.high>>>0).toNumber():t.Mid),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.show.v1.GetActProgressReq"},e}(),c.GetActProgressReply=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.event=u.bilibili.broadcast.message.main.NativePageEvent.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.show.v1.GetActProgressReply)return t;let i=new u.bilibili.app.show.v1.GetActProgressReply;if(t.event!=null){if(typeof t.event!="object")throw TypeError(".bilibili.app.show.v1.GetActProgressReply.event: object expected");i.event=u.bilibili.broadcast.message.main.NativePageEvent.fromObject(t.event)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.event=null),t.event!=null&&t.hasOwnProperty("event")&&(n.event=u.bilibili.broadcast.message.main.NativePageEvent.toObject(t.event,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.show.v1.GetActProgressReply"},e}(),c.Mixture=function(){function e(l,t,i){b.rpc.Service.call(this,l,t,i)}return(e.prototype=Object.create(b.rpc.Service.prototype)).constructor=e,e.create=function(t,i,n){return new this(t,i,n)},Object.defineProperty(e.prototype.widget=function l(t,i){return this.rpcCall(l,u.bilibili.app.show.v1.WidgetReq,u.bilibili.app.show.v1.WidgetReply,t,i)},"name",{value:"Widget"}),e}(),c.WidgetReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.fromSpmid=t.string();break}case 2:{o.pageNo=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.show.v1.WidgetReq)return t;let i=new u.bilibili.app.show.v1.WidgetReq;return t.fromSpmid!=null&&(i.fromSpmid=String(t.fromSpmid)),t.pageNo!=null&&(i.pageNo=t.pageNo|0),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.fromSpmid="",n.pageNo=0),t.fromSpmid!=null&&t.hasOwnProperty("fromSpmid")&&(n.fromSpmid=t.fromSpmid),t.pageNo!=null&&t.hasOwnProperty("pageNo")&&(n.pageNo=t.pageNo),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.show.v1.WidgetReq"},e}(),c.WidgetReply=function(){function e(l){if(this.item=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.item&&o.item.length||(o.item=[]),o.item.push(u.bilibili.app.show.v1.WidgetItem.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.show.v1.WidgetReply)return t;let i=new u.bilibili.app.show.v1.WidgetReply;if(t.item){if(!Array.isArray(t.item))throw TypeError(".bilibili.app.show.v1.WidgetReply.item: array expected");i.item=[];for(let n=0;n>>3){case 1:{o.cover=t.string();break}case 2:{o.view=t.string();break}case 3:{o.rcmdReason=u.bilibili.app.show.v1.RcmdReason.decode(t,t.uint32());break}case 4:{o.title=t.string();break}case 5:{o.name=t.string();break}case 6:{o.uri=t.string();break}case 7:{o.goto=t.string();break}case 8:{o.id=t.int64();break}case 9:{o.viewIcon=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.show.v1.WidgetItem)return t;let i=new u.bilibili.app.show.v1.WidgetItem;if(t.cover!=null&&(i.cover=String(t.cover)),t.view!=null&&(i.view=String(t.view)),t.rcmdReason!=null){if(typeof t.rcmdReason!="object")throw TypeError(".bilibili.app.show.v1.WidgetItem.rcmdReason: object expected");i.rcmdReason=u.bilibili.app.show.v1.RcmdReason.fromObject(t.rcmdReason)}return t.title!=null&&(i.title=String(t.title)),t.name!=null&&(i.name=String(t.name)),t.uri!=null&&(i.uri=String(t.uri)),t.goto!=null&&(i.goto=String(t.goto)),t.id!=null&&(r.Long?(i.id=r.Long.fromValue(t.id)).unsigned=!1:typeof t.id=="string"?i.id=parseInt(t.id,10):typeof t.id=="number"?i.id=t.id:typeof t.id=="object"&&(i.id=new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber())),t.viewIcon!=null&&(i.viewIcon=t.viewIcon|0),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.cover="",n.view="",n.rcmdReason=null,n.title="",n.name="",n.uri="",n.goto="",r.Long){let o=new r.Long(0,0,!1);n.id=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.id=i.longs===String?"0":0;n.viewIcon=0}return t.cover!=null&&t.hasOwnProperty("cover")&&(n.cover=t.cover),t.view!=null&&t.hasOwnProperty("view")&&(n.view=t.view),t.rcmdReason!=null&&t.hasOwnProperty("rcmdReason")&&(n.rcmdReason=u.bilibili.app.show.v1.RcmdReason.toObject(t.rcmdReason,i)),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),t.goto!=null&&t.hasOwnProperty("goto")&&(n.goto=t.goto),t.id!=null&&t.hasOwnProperty("id")&&(typeof t.id=="number"?n.id=i.longs===String?String(t.id):t.id:n.id=i.longs===String?r.Long.prototype.toString.call(t.id):i.longs===Number?new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber():t.id),t.viewIcon!=null&&t.hasOwnProperty("viewIcon")&&(n.viewIcon=t.viewIcon),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.show.v1.WidgetItem"},e}(),c.RcmdReason=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.content=t.string();break}case 2:{o.cornerMark=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.show.v1.RcmdReason)return t;let i=new u.bilibili.app.show.v1.RcmdReason;return t.content!=null&&(i.content=String(t.content)),t.cornerMark!=null&&(i.cornerMark=t.cornerMark|0),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.content="",n.cornerMark=0),t.content!=null&&t.hasOwnProperty("content")&&(n.content=t.content),t.cornerMark!=null&&t.hasOwnProperty("cornerMark")&&(n.cornerMark=t.cornerMark),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.show.v1.RcmdReason"},e}(),c.Popular=function(){function e(l,t,i){b.rpc.Service.call(this,l,t,i)}return(e.prototype=Object.create(b.rpc.Service.prototype)).constructor=e,e.create=function(t,i,n){return new this(t,i,n)},Object.defineProperty(e.prototype.index=function l(t,i){return this.rpcCall(l,u.bilibili.app.show.v1.PopularResultReq,u.bilibili.app.show.v1.PopularReply,t,i)},"name",{value:"Index"}),e}(),c.PopularResultReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.idx=t.int64();break}case 2:{o.loginEvent=t.int32();break}case 3:{o.qn=t.int32();break}case 4:{o.fnver=t.int32();break}case 5:{o.fnval=t.int32();break}case 6:{o.forceHost=t.int32();break}case 7:{o.fourk=t.int32();break}case 8:{o.spmid=t.string();break}case 9:{o.lastParam=t.string();break}case 10:{o.ver=t.string();break}case 11:{o.entranceId=t.int64();break}case 12:{o.locationIds=t.string();break}case 13:{o.sourceId=t.int32();break}case 14:{o.flush=t.int32();break}case 15:{o.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.decode(t,t.uint32());break}case 16:{o.popularAd=u.bilibili.app.show.v1.PopularAd.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.show.v1.PopularResultReq)return t;let i=new u.bilibili.app.show.v1.PopularResultReq;if(t.idx!=null&&(r.Long?(i.idx=r.Long.fromValue(t.idx)).unsigned=!1:typeof t.idx=="string"?i.idx=parseInt(t.idx,10):typeof t.idx=="number"?i.idx=t.idx:typeof t.idx=="object"&&(i.idx=new r.LongBits(t.idx.low>>>0,t.idx.high>>>0).toNumber())),t.loginEvent!=null&&(i.loginEvent=t.loginEvent|0),t.qn!=null&&(i.qn=t.qn|0),t.fnver!=null&&(i.fnver=t.fnver|0),t.fnval!=null&&(i.fnval=t.fnval|0),t.forceHost!=null&&(i.forceHost=t.forceHost|0),t.fourk!=null&&(i.fourk=t.fourk|0),t.spmid!=null&&(i.spmid=String(t.spmid)),t.lastParam!=null&&(i.lastParam=String(t.lastParam)),t.ver!=null&&(i.ver=String(t.ver)),t.entranceId!=null&&(r.Long?(i.entranceId=r.Long.fromValue(t.entranceId)).unsigned=!1:typeof t.entranceId=="string"?i.entranceId=parseInt(t.entranceId,10):typeof t.entranceId=="number"?i.entranceId=t.entranceId:typeof t.entranceId=="object"&&(i.entranceId=new r.LongBits(t.entranceId.low>>>0,t.entranceId.high>>>0).toNumber())),t.locationIds!=null&&(i.locationIds=String(t.locationIds)),t.sourceId!=null&&(i.sourceId=t.sourceId|0),t.flush!=null&&(i.flush=t.flush|0),t.playerArgs!=null){if(typeof t.playerArgs!="object")throw TypeError(".bilibili.app.show.v1.PopularResultReq.playerArgs: object expected");i.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.fromObject(t.playerArgs)}if(t.popularAd!=null){if(typeof t.popularAd!="object")throw TypeError(".bilibili.app.show.v1.PopularResultReq.popularAd: object expected");i.popularAd=u.bilibili.app.show.v1.PopularAd.fromObject(t.popularAd)}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.idx=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.idx=i.longs===String?"0":0;if(n.loginEvent=0,n.qn=0,n.fnver=0,n.fnval=0,n.forceHost=0,n.fourk=0,n.spmid="",n.lastParam="",n.ver="",r.Long){let o=new r.Long(0,0,!1);n.entranceId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.entranceId=i.longs===String?"0":0;n.locationIds="",n.sourceId=0,n.flush=0,n.playerArgs=null,n.popularAd=null}return t.idx!=null&&t.hasOwnProperty("idx")&&(typeof t.idx=="number"?n.idx=i.longs===String?String(t.idx):t.idx:n.idx=i.longs===String?r.Long.prototype.toString.call(t.idx):i.longs===Number?new r.LongBits(t.idx.low>>>0,t.idx.high>>>0).toNumber():t.idx),t.loginEvent!=null&&t.hasOwnProperty("loginEvent")&&(n.loginEvent=t.loginEvent),t.qn!=null&&t.hasOwnProperty("qn")&&(n.qn=t.qn),t.fnver!=null&&t.hasOwnProperty("fnver")&&(n.fnver=t.fnver),t.fnval!=null&&t.hasOwnProperty("fnval")&&(n.fnval=t.fnval),t.forceHost!=null&&t.hasOwnProperty("forceHost")&&(n.forceHost=t.forceHost),t.fourk!=null&&t.hasOwnProperty("fourk")&&(n.fourk=t.fourk),t.spmid!=null&&t.hasOwnProperty("spmid")&&(n.spmid=t.spmid),t.lastParam!=null&&t.hasOwnProperty("lastParam")&&(n.lastParam=t.lastParam),t.ver!=null&&t.hasOwnProperty("ver")&&(n.ver=t.ver),t.entranceId!=null&&t.hasOwnProperty("entranceId")&&(typeof t.entranceId=="number"?n.entranceId=i.longs===String?String(t.entranceId):t.entranceId:n.entranceId=i.longs===String?r.Long.prototype.toString.call(t.entranceId):i.longs===Number?new r.LongBits(t.entranceId.low>>>0,t.entranceId.high>>>0).toNumber():t.entranceId),t.locationIds!=null&&t.hasOwnProperty("locationIds")&&(n.locationIds=t.locationIds),t.sourceId!=null&&t.hasOwnProperty("sourceId")&&(n.sourceId=t.sourceId),t.flush!=null&&t.hasOwnProperty("flush")&&(n.flush=t.flush),t.playerArgs!=null&&t.hasOwnProperty("playerArgs")&&(n.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.toObject(t.playerArgs,i)),t.popularAd!=null&&t.hasOwnProperty("popularAd")&&(n.popularAd=u.bilibili.app.show.v1.PopularAd.toObject(t.popularAd,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.show.v1.PopularResultReq"},e}(),c.PopularAd=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.extra=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.show.v1.PopularAd)return t;let i=new u.bilibili.app.show.v1.PopularAd;return t.extra!=null&&(i.extra=String(t.extra)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.extra=""),t.extra!=null&&t.hasOwnProperty("extra")&&(n.extra=t.extra),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.show.v1.PopularAd"},e}(),c.PopularReply=function(){function e(l){if(this.items=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.items&&o.items.length||(o.items=[]),o.items.push(u.bilibili.app.card.v1.Card.decode(t,t.uint32()));break}case 2:{o.config=u.bilibili.app.show.v1.Config.decode(t,t.uint32());break}case 3:{o.ver=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.show.v1.PopularReply)return t;let i=new u.bilibili.app.show.v1.PopularReply;if(t.items){if(!Array.isArray(t.items))throw TypeError(".bilibili.app.show.v1.PopularReply.items: array expected");i.items=[];for(let n=0;n>>3){case 1:{o.itemTitle=t.string();break}case 2:{o.bottomText=t.string();break}case 3:{o.bottomTextCover=t.string();break}case 4:{o.bottomTextUrl=t.string();break}case 5:{o.topItems&&o.topItems.length||(o.topItems=[]),o.topItems.push(u.bilibili.app.show.v1.EntranceShow.decode(t,t.uint32()));break}case 6:{o.headImage=t.string();break}case 7:{o.pageItems&&o.pageItems.length||(o.pageItems=[]),o.pageItems.push(u.bilibili.app.show.v1.EntranceShow.decode(t,t.uint32()));break}case 8:{o.hit=t.int64();break}case 9:{o.toast=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.show.v1.Config)return t;let i=new u.bilibili.app.show.v1.Config;if(t.itemTitle!=null&&(i.itemTitle=String(t.itemTitle)),t.bottomText!=null&&(i.bottomText=String(t.bottomText)),t.bottomTextCover!=null&&(i.bottomTextCover=String(t.bottomTextCover)),t.bottomTextUrl!=null&&(i.bottomTextUrl=String(t.bottomTextUrl)),t.topItems){if(!Array.isArray(t.topItems))throw TypeError(".bilibili.app.show.v1.Config.topItems: array expected");i.topItems=[];for(let n=0;n>>0,t.hit.high>>>0).toNumber())),t.toast!=null&&(i.toast=String(t.toast)),i},e.toObject=function(t,i){i||(i={});let n={};if((i.arrays||i.defaults)&&(n.topItems=[],n.pageItems=[]),i.defaults){if(n.itemTitle="",n.bottomText="",n.bottomTextCover="",n.bottomTextUrl="",n.headImage="",r.Long){let o=new r.Long(0,0,!1);n.hit=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.hit=i.longs===String?"0":0;n.toast=""}if(t.itemTitle!=null&&t.hasOwnProperty("itemTitle")&&(n.itemTitle=t.itemTitle),t.bottomText!=null&&t.hasOwnProperty("bottomText")&&(n.bottomText=t.bottomText),t.bottomTextCover!=null&&t.hasOwnProperty("bottomTextCover")&&(n.bottomTextCover=t.bottomTextCover),t.bottomTextUrl!=null&&t.hasOwnProperty("bottomTextUrl")&&(n.bottomTextUrl=t.bottomTextUrl),t.topItems&&t.topItems.length){n.topItems=[];for(let o=0;o>>0,t.hit.high>>>0).toNumber():t.hit),t.toast!=null&&t.hasOwnProperty("toast")&&(n.toast=t.toast),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.show.v1.Config"},e}(),c.EntranceShow=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.icon=t.string();break}case 2:{o.title=t.string();break}case 3:{o.moduleId=t.string();break}case 4:{o.uri=t.string();break}case 5:{o.bubble=u.bilibili.app.show.v1.Bubble.decode(t,t.uint32());break}case 6:{o.entranceId=t.int64();break}case 7:{o.topPhoto=t.string();break}case 8:{o.entranceType=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.show.v1.EntranceShow)return t;let i=new u.bilibili.app.show.v1.EntranceShow;if(t.icon!=null&&(i.icon=String(t.icon)),t.title!=null&&(i.title=String(t.title)),t.moduleId!=null&&(i.moduleId=String(t.moduleId)),t.uri!=null&&(i.uri=String(t.uri)),t.bubble!=null){if(typeof t.bubble!="object")throw TypeError(".bilibili.app.show.v1.EntranceShow.bubble: object expected");i.bubble=u.bilibili.app.show.v1.Bubble.fromObject(t.bubble)}return t.entranceId!=null&&(r.Long?(i.entranceId=r.Long.fromValue(t.entranceId)).unsigned=!1:typeof t.entranceId=="string"?i.entranceId=parseInt(t.entranceId,10):typeof t.entranceId=="number"?i.entranceId=t.entranceId:typeof t.entranceId=="object"&&(i.entranceId=new r.LongBits(t.entranceId.low>>>0,t.entranceId.high>>>0).toNumber())),t.topPhoto!=null&&(i.topPhoto=String(t.topPhoto)),t.entranceType!=null&&(i.entranceType=t.entranceType|0),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.icon="",n.title="",n.moduleId="",n.uri="",n.bubble=null,r.Long){let o=new r.Long(0,0,!1);n.entranceId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.entranceId=i.longs===String?"0":0;n.topPhoto="",n.entranceType=0}return t.icon!=null&&t.hasOwnProperty("icon")&&(n.icon=t.icon),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.moduleId!=null&&t.hasOwnProperty("moduleId")&&(n.moduleId=t.moduleId),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),t.bubble!=null&&t.hasOwnProperty("bubble")&&(n.bubble=u.bilibili.app.show.v1.Bubble.toObject(t.bubble,i)),t.entranceId!=null&&t.hasOwnProperty("entranceId")&&(typeof t.entranceId=="number"?n.entranceId=i.longs===String?String(t.entranceId):t.entranceId:n.entranceId=i.longs===String?r.Long.prototype.toString.call(t.entranceId):i.longs===Number?new r.LongBits(t.entranceId.low>>>0,t.entranceId.high>>>0).toNumber():t.entranceId),t.topPhoto!=null&&t.hasOwnProperty("topPhoto")&&(n.topPhoto=t.topPhoto),t.entranceType!=null&&t.hasOwnProperty("entranceType")&&(n.entranceType=t.entranceType),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.show.v1.EntranceShow"},e}(),c.Bubble=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.bubbleContent=t.string();break}case 2:{o.version=t.int32();break}case 3:{o.stime=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.show.v1.Bubble)return t;let i=new u.bilibili.app.show.v1.Bubble;return t.bubbleContent!=null&&(i.bubbleContent=String(t.bubbleContent)),t.version!=null&&(i.version=t.version|0),t.stime!=null&&(r.Long?(i.stime=r.Long.fromValue(t.stime)).unsigned=!1:typeof t.stime=="string"?i.stime=parseInt(t.stime,10):typeof t.stime=="number"?i.stime=t.stime:typeof t.stime=="object"&&(i.stime=new r.LongBits(t.stime.low>>>0,t.stime.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(n.bubbleContent="",n.version=0,r.Long){let o=new r.Long(0,0,!1);n.stime=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.stime=i.longs===String?"0":0;return t.bubbleContent!=null&&t.hasOwnProperty("bubbleContent")&&(n.bubbleContent=t.bubbleContent),t.version!=null&&t.hasOwnProperty("version")&&(n.version=t.version),t.stime!=null&&t.hasOwnProperty("stime")&&(typeof t.stime=="number"?n.stime=i.longs===String?String(t.stime):t.stime:n.stime=i.longs===String?r.Long.prototype.toString.call(t.stime):i.longs===Number?new r.LongBits(t.stime.low>>>0,t.stime.high>>>0).toNumber():t.stime),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.show.v1.Bubble"},e}(),c.Rank=function(){function e(l,t,i){b.rpc.Service.call(this,l,t,i)}return(e.prototype=Object.create(b.rpc.Service.prototype)).constructor=e,e.create=function(t,i,n){return new this(t,i,n)},Object.defineProperty(e.prototype.rankAll=function l(t,i){return this.rpcCall(l,u.bilibili.app.show.v1.RankAllResultReq,u.bilibili.app.show.v1.RankListReply,t,i)},"name",{value:"RankAll"}),Object.defineProperty(e.prototype.rankRegion=function l(t,i){return this.rpcCall(l,u.bilibili.app.show.v1.RankRegionResultReq,u.bilibili.app.show.v1.RankListReply,t,i)},"name",{value:"RankRegion"}),e}(),c.RankAllResultReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.order=t.string();break}case 2:{o.pn=t.int32();break}case 3:{o.ps=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.show.v1.RankAllResultReq)return t;let i=new u.bilibili.app.show.v1.RankAllResultReq;return t.order!=null&&(i.order=String(t.order)),t.pn!=null&&(i.pn=t.pn|0),t.ps!=null&&(i.ps=t.ps|0),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.order="",n.pn=0,n.ps=0),t.order!=null&&t.hasOwnProperty("order")&&(n.order=t.order),t.pn!=null&&t.hasOwnProperty("pn")&&(n.pn=t.pn),t.ps!=null&&t.hasOwnProperty("ps")&&(n.ps=t.ps),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.show.v1.RankAllResultReq"},e}(),c.RankRegionResultReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.rid=t.int32();break}case 2:{o.pn=t.int32();break}case 3:{o.ps=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.show.v1.RankRegionResultReq)return t;let i=new u.bilibili.app.show.v1.RankRegionResultReq;return t.rid!=null&&(i.rid=t.rid|0),t.pn!=null&&(i.pn=t.pn|0),t.ps!=null&&(i.ps=t.ps|0),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.rid=0,n.pn=0,n.ps=0),t.rid!=null&&t.hasOwnProperty("rid")&&(n.rid=t.rid),t.pn!=null&&t.hasOwnProperty("pn")&&(n.pn=t.pn),t.ps!=null&&t.hasOwnProperty("ps")&&(n.ps=t.ps),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.show.v1.RankRegionResultReq"},e}(),c.RankListReply=function(){function e(l){if(this.items=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.items&&o.items.length||(o.items=[]),o.items.push(u.bilibili.app.show.v1.Item.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.show.v1.RankListReply)return t;let i=new u.bilibili.app.show.v1.RankListReply;if(t.items){if(!Array.isArray(t.items))throw TypeError(".bilibili.app.show.v1.RankListReply.items: array expected");i.items=[];for(let n=0;n>>3){case 1:{o.title=t.string();break}case 2:{o.cover=t.string();break}case 3:{o.param=t.string();break}case 4:{o.uri=t.string();break}case 5:{o.redirectUrl=t.string();break}case 6:{o.goto=t.string();break}case 7:{o.play=t.int32();break}case 8:{o.danmaku=t.int32();break}case 9:{o.mid=t.int64();break}case 10:{o.name=t.string();break}case 11:{o.face=t.string();break}case 12:{o.reply=t.int32();break}case 13:{o.favourite=t.int32();break}case 14:{o.pubDate=t.int64();break}case 15:{o.rid=t.int32();break}case 16:{o.rname=t.string();break}case 17:{o.duration=t.int64();break}case 18:{o.like=t.int32();break}case 19:{o.cid=t.int64();break}case 20:{o.pts=t.int64();break}case 21:{o.cooperation=t.string();break}case 22:{o.attribute=t.int32();break}case 23:{o.follower=t.int64();break}case 24:{o.officialVerify=u.bilibili.app.show.v1.OfficialVerify.decode(t,t.uint32());break}case 25:{o.children&&o.children.length||(o.children=[]),o.children.push(u.bilibili.app.show.v1.Item.decode(t,t.uint32()));break}case 26:{o.relation=u.bilibili.app.show.v1.Relation.decode(t,t.uint32());break}case 27:{o.playText=t.string();break}case 28:{o.playIcon=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.show.v1.Item)return t;let i=new u.bilibili.app.show.v1.Item;if(t.title!=null&&(i.title=String(t.title)),t.cover!=null&&(i.cover=String(t.cover)),t.param!=null&&(i.param=String(t.param)),t.uri!=null&&(i.uri=String(t.uri)),t.redirectUrl!=null&&(i.redirectUrl=String(t.redirectUrl)),t.goto!=null&&(i.goto=String(t.goto)),t.play!=null&&(i.play=t.play|0),t.danmaku!=null&&(i.danmaku=t.danmaku|0),t.mid!=null&&(r.Long?(i.mid=r.Long.fromValue(t.mid)).unsigned=!1:typeof t.mid=="string"?i.mid=parseInt(t.mid,10):typeof t.mid=="number"?i.mid=t.mid:typeof t.mid=="object"&&(i.mid=new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber())),t.name!=null&&(i.name=String(t.name)),t.face!=null&&(i.face=String(t.face)),t.reply!=null&&(i.reply=t.reply|0),t.favourite!=null&&(i.favourite=t.favourite|0),t.pubDate!=null&&(r.Long?(i.pubDate=r.Long.fromValue(t.pubDate)).unsigned=!1:typeof t.pubDate=="string"?i.pubDate=parseInt(t.pubDate,10):typeof t.pubDate=="number"?i.pubDate=t.pubDate:typeof t.pubDate=="object"&&(i.pubDate=new r.LongBits(t.pubDate.low>>>0,t.pubDate.high>>>0).toNumber())),t.rid!=null&&(i.rid=t.rid|0),t.rname!=null&&(i.rname=String(t.rname)),t.duration!=null&&(r.Long?(i.duration=r.Long.fromValue(t.duration)).unsigned=!1:typeof t.duration=="string"?i.duration=parseInt(t.duration,10):typeof t.duration=="number"?i.duration=t.duration:typeof t.duration=="object"&&(i.duration=new r.LongBits(t.duration.low>>>0,t.duration.high>>>0).toNumber())),t.like!=null&&(i.like=t.like|0),t.cid!=null&&(r.Long?(i.cid=r.Long.fromValue(t.cid)).unsigned=!1:typeof t.cid=="string"?i.cid=parseInt(t.cid,10):typeof t.cid=="number"?i.cid=t.cid:typeof t.cid=="object"&&(i.cid=new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber())),t.pts!=null&&(r.Long?(i.pts=r.Long.fromValue(t.pts)).unsigned=!1:typeof t.pts=="string"?i.pts=parseInt(t.pts,10):typeof t.pts=="number"?i.pts=t.pts:typeof t.pts=="object"&&(i.pts=new r.LongBits(t.pts.low>>>0,t.pts.high>>>0).toNumber())),t.cooperation!=null&&(i.cooperation=String(t.cooperation)),t.attribute!=null&&(i.attribute=t.attribute|0),t.follower!=null&&(r.Long?(i.follower=r.Long.fromValue(t.follower)).unsigned=!1:typeof t.follower=="string"?i.follower=parseInt(t.follower,10):typeof t.follower=="number"?i.follower=t.follower:typeof t.follower=="object"&&(i.follower=new r.LongBits(t.follower.low>>>0,t.follower.high>>>0).toNumber())),t.officialVerify!=null){if(typeof t.officialVerify!="object")throw TypeError(".bilibili.app.show.v1.Item.officialVerify: object expected");i.officialVerify=u.bilibili.app.show.v1.OfficialVerify.fromObject(t.officialVerify)}if(t.children){if(!Array.isArray(t.children))throw TypeError(".bilibili.app.show.v1.Item.children: array expected");i.children=[];for(let n=0;n>>0,t.mid.high>>>0).toNumber():t.mid),t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),t.face!=null&&t.hasOwnProperty("face")&&(n.face=t.face),t.reply!=null&&t.hasOwnProperty("reply")&&(n.reply=t.reply),t.favourite!=null&&t.hasOwnProperty("favourite")&&(n.favourite=t.favourite),t.pubDate!=null&&t.hasOwnProperty("pubDate")&&(typeof t.pubDate=="number"?n.pubDate=i.longs===String?String(t.pubDate):t.pubDate:n.pubDate=i.longs===String?r.Long.prototype.toString.call(t.pubDate):i.longs===Number?new r.LongBits(t.pubDate.low>>>0,t.pubDate.high>>>0).toNumber():t.pubDate),t.rid!=null&&t.hasOwnProperty("rid")&&(n.rid=t.rid),t.rname!=null&&t.hasOwnProperty("rname")&&(n.rname=t.rname),t.duration!=null&&t.hasOwnProperty("duration")&&(typeof t.duration=="number"?n.duration=i.longs===String?String(t.duration):t.duration:n.duration=i.longs===String?r.Long.prototype.toString.call(t.duration):i.longs===Number?new r.LongBits(t.duration.low>>>0,t.duration.high>>>0).toNumber():t.duration),t.like!=null&&t.hasOwnProperty("like")&&(n.like=t.like),t.cid!=null&&t.hasOwnProperty("cid")&&(typeof t.cid=="number"?n.cid=i.longs===String?String(t.cid):t.cid:n.cid=i.longs===String?r.Long.prototype.toString.call(t.cid):i.longs===Number?new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber():t.cid),t.pts!=null&&t.hasOwnProperty("pts")&&(typeof t.pts=="number"?n.pts=i.longs===String?String(t.pts):t.pts:n.pts=i.longs===String?r.Long.prototype.toString.call(t.pts):i.longs===Number?new r.LongBits(t.pts.low>>>0,t.pts.high>>>0).toNumber():t.pts),t.cooperation!=null&&t.hasOwnProperty("cooperation")&&(n.cooperation=t.cooperation),t.attribute!=null&&t.hasOwnProperty("attribute")&&(n.attribute=t.attribute),t.follower!=null&&t.hasOwnProperty("follower")&&(typeof t.follower=="number"?n.follower=i.longs===String?String(t.follower):t.follower:n.follower=i.longs===String?r.Long.prototype.toString.call(t.follower):i.longs===Number?new r.LongBits(t.follower.low>>>0,t.follower.high>>>0).toNumber():t.follower),t.officialVerify!=null&&t.hasOwnProperty("officialVerify")&&(n.officialVerify=u.bilibili.app.show.v1.OfficialVerify.toObject(t.officialVerify,i)),t.children&&t.children.length){n.children=[];for(let o=0;o>>3){case 1:{o.type=t.int32();break}case 2:{o.desc=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.show.v1.OfficialVerify)return t;let i=new u.bilibili.app.show.v1.OfficialVerify;return t.type!=null&&(i.type=t.type|0),t.desc!=null&&(i.desc=String(t.desc)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.type=0,n.desc=""),t.type!=null&&t.hasOwnProperty("type")&&(n.type=t.type),t.desc!=null&&t.hasOwnProperty("desc")&&(n.desc=t.desc),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.show.v1.OfficialVerify"},e}(),c.Relation=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.status=t.int32();break}case 2:{o.isFollow=t.int32();break}case 3:{o.isFollowed=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.show.v1.Relation)return t;let i=new u.bilibili.app.show.v1.Relation;return t.status!=null&&(i.status=t.status|0),t.isFollow!=null&&(i.isFollow=t.isFollow|0),t.isFollowed!=null&&(i.isFollowed=t.isFollowed|0),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.status=0,n.isFollow=0,n.isFollowed=0),t.status!=null&&t.hasOwnProperty("status")&&(n.status=t.status),t.isFollow!=null&&t.hasOwnProperty("isFollow")&&(n.isFollow=t.isFollow),t.isFollowed!=null&&t.hasOwnProperty("isFollowed")&&(n.isFollowed=t.isFollowed),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.show.v1.Relation"},e}(),c}(),p}(),d.topic=function(){let p={};return p.v1=function(){let c={};return c.Topic=function(){function e(l,t,i){b.rpc.Service.call(this,l,t,i)}return(e.prototype=Object.create(b.rpc.Service.prototype)).constructor=e,e.create=function(t,i,n){return new this(t,i,n)},Object.defineProperty(e.prototype.topicDetailsAll=function l(t,i){return this.rpcCall(l,u.bilibili.app.topic.v1.TopicDetailsAllReq,u.bilibili.app.topic.v1.TopicDetailsAllReply,t,i)},"name",{value:"TopicDetailsAll"}),Object.defineProperty(e.prototype.topicDetailsFold=function l(t,i){return this.rpcCall(l,u.bilibili.app.topic.v1.TopicDetailsFoldReq,u.bilibili.app.topic.v1.TopicDetailsFoldReply,t,i)},"name",{value:"TopicDetailsFold"}),Object.defineProperty(e.prototype.topicSetDetails=function l(t,i){return this.rpcCall(l,u.bilibili.app.topic.v1.TopicSetDetailsReq,u.bilibili.app.topic.v1.TopicSetDetailsReply,t,i)},"name",{value:"TopicSetDetails"}),Object.defineProperty(e.prototype.topicMergedResource=function l(t,i){return this.rpcCall(l,u.bilibili.app.topic.v1.TopicMergedResourceReq,u.bilibili.app.topic.v1.TopicMergedResourceReply,t,i)},"name",{value:"TopicMergedResource"}),Object.defineProperty(e.prototype.topicReserveButtonClick=function l(t,i){return this.rpcCall(l,u.bilibili.app.topic.v1.TopicReserveButtonClickReq,u.bilibili.app.topic.v1.TopicReserveButtonClickReply,t,i)},"name",{value:"TopicReserveButtonClick"}),Object.defineProperty(e.prototype.reportUserRatingFeedCardChoice=function l(t,i){return this.rpcCall(l,u.bilibili.app.topic.v1.ReportUserRatingFeedCardChoiceReq,u.google.protobuf.Empty,t,i)},"name",{value:"ReportUserRatingFeedCardChoice"}),Object.defineProperty(e.prototype.reportUserCloseFeedCard=function l(t,i){return this.rpcCall(l,u.bilibili.app.topic.v1.ReportUserCloseFeedCardReq,u.google.protobuf.Empty,t,i)},"name",{value:"ReportUserCloseFeedCard"}),e}(),c.TopicMergedResourceReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.topicId=t.int64();break}case 2:{o.type=t.int32();break}case 3:{o.rid=t.int64();break}case 4:{o.mergeType=t.int32();break}case 5:{o.offset=t.string();break}case 6:{o.localTime=t.int32();break}case 7:{o.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.decode(t,t.uint32());break}case 8:{o.fromSortBy=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.topic.v1.TopicMergedResourceReq)return t;let i=new u.bilibili.app.topic.v1.TopicMergedResourceReq;if(t.topicId!=null&&(r.Long?(i.topicId=r.Long.fromValue(t.topicId)).unsigned=!1:typeof t.topicId=="string"?i.topicId=parseInt(t.topicId,10):typeof t.topicId=="number"?i.topicId=t.topicId:typeof t.topicId=="object"&&(i.topicId=new r.LongBits(t.topicId.low>>>0,t.topicId.high>>>0).toNumber())),t.type!=null&&(i.type=t.type|0),t.rid!=null&&(r.Long?(i.rid=r.Long.fromValue(t.rid)).unsigned=!1:typeof t.rid=="string"?i.rid=parseInt(t.rid,10):typeof t.rid=="number"?i.rid=t.rid:typeof t.rid=="object"&&(i.rid=new r.LongBits(t.rid.low>>>0,t.rid.high>>>0).toNumber())),t.mergeType!=null&&(i.mergeType=t.mergeType|0),t.offset!=null&&(i.offset=String(t.offset)),t.localTime!=null&&(i.localTime=t.localTime|0),t.playerArgs!=null){if(typeof t.playerArgs!="object")throw TypeError(".bilibili.app.topic.v1.TopicMergedResourceReq.playerArgs: object expected");i.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.fromObject(t.playerArgs)}return t.fromSortBy!=null&&(r.Long?(i.fromSortBy=r.Long.fromValue(t.fromSortBy)).unsigned=!1:typeof t.fromSortBy=="string"?i.fromSortBy=parseInt(t.fromSortBy,10):typeof t.fromSortBy=="number"?i.fromSortBy=t.fromSortBy:typeof t.fromSortBy=="object"&&(i.fromSortBy=new r.LongBits(t.fromSortBy.low>>>0,t.fromSortBy.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.topicId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.topicId=i.longs===String?"0":0;if(n.type=0,r.Long){let o=new r.Long(0,0,!1);n.rid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.rid=i.longs===String?"0":0;if(n.mergeType=0,n.offset="",n.localTime=0,n.playerArgs=null,r.Long){let o=new r.Long(0,0,!1);n.fromSortBy=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.fromSortBy=i.longs===String?"0":0}return t.topicId!=null&&t.hasOwnProperty("topicId")&&(typeof t.topicId=="number"?n.topicId=i.longs===String?String(t.topicId):t.topicId:n.topicId=i.longs===String?r.Long.prototype.toString.call(t.topicId):i.longs===Number?new r.LongBits(t.topicId.low>>>0,t.topicId.high>>>0).toNumber():t.topicId),t.type!=null&&t.hasOwnProperty("type")&&(n.type=t.type),t.rid!=null&&t.hasOwnProperty("rid")&&(typeof t.rid=="number"?n.rid=i.longs===String?String(t.rid):t.rid:n.rid=i.longs===String?r.Long.prototype.toString.call(t.rid):i.longs===Number?new r.LongBits(t.rid.low>>>0,t.rid.high>>>0).toNumber():t.rid),t.mergeType!=null&&t.hasOwnProperty("mergeType")&&(n.mergeType=t.mergeType),t.offset!=null&&t.hasOwnProperty("offset")&&(n.offset=t.offset),t.localTime!=null&&t.hasOwnProperty("localTime")&&(n.localTime=t.localTime),t.playerArgs!=null&&t.hasOwnProperty("playerArgs")&&(n.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.toObject(t.playerArgs,i)),t.fromSortBy!=null&&t.hasOwnProperty("fromSortBy")&&(typeof t.fromSortBy=="number"?n.fromSortBy=i.longs===String?String(t.fromSortBy):t.fromSortBy:n.fromSortBy=i.longs===String?r.Long.prototype.toString.call(t.fromSortBy):i.longs===Number?new r.LongBits(t.fromSortBy.low>>>0,t.fromSortBy.high>>>0).toNumber():t.fromSortBy),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.topic.v1.TopicMergedResourceReq"},e}(),c.TopicMergedResourceReply=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.topicCardList=u.bilibili.app.topic.v1.TopicCardList.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.topic.v1.TopicMergedResourceReply)return t;let i=new u.bilibili.app.topic.v1.TopicMergedResourceReply;if(t.topicCardList!=null){if(typeof t.topicCardList!="object")throw TypeError(".bilibili.app.topic.v1.TopicMergedResourceReply.topicCardList: object expected");i.topicCardList=u.bilibili.app.topic.v1.TopicCardList.fromObject(t.topicCardList)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.topicCardList=null),t.topicCardList!=null&&t.hasOwnProperty("topicCardList")&&(n.topicCardList=u.bilibili.app.topic.v1.TopicCardList.toObject(t.topicCardList,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.topic.v1.TopicMergedResourceReply"},e}(),c.TopicSetDetailsReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.setId=t.int64();break}case 2:{o.sortBy=t.int64();break}case 3:{o.offset=t.string();break}case 4:{o.pageSize=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.topic.v1.TopicSetDetailsReq)return t;let i=new u.bilibili.app.topic.v1.TopicSetDetailsReq;return t.setId!=null&&(r.Long?(i.setId=r.Long.fromValue(t.setId)).unsigned=!1:typeof t.setId=="string"?i.setId=parseInt(t.setId,10):typeof t.setId=="number"?i.setId=t.setId:typeof t.setId=="object"&&(i.setId=new r.LongBits(t.setId.low>>>0,t.setId.high>>>0).toNumber())),t.sortBy!=null&&(r.Long?(i.sortBy=r.Long.fromValue(t.sortBy)).unsigned=!1:typeof t.sortBy=="string"?i.sortBy=parseInt(t.sortBy,10):typeof t.sortBy=="number"?i.sortBy=t.sortBy:typeof t.sortBy=="object"&&(i.sortBy=new r.LongBits(t.sortBy.low>>>0,t.sortBy.high>>>0).toNumber())),t.offset!=null&&(i.offset=String(t.offset)),t.pageSize!=null&&(i.pageSize=t.pageSize|0),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.setId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.setId=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.sortBy=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.sortBy=i.longs===String?"0":0;n.offset="",n.pageSize=0}return t.setId!=null&&t.hasOwnProperty("setId")&&(typeof t.setId=="number"?n.setId=i.longs===String?String(t.setId):t.setId:n.setId=i.longs===String?r.Long.prototype.toString.call(t.setId):i.longs===Number?new r.LongBits(t.setId.low>>>0,t.setId.high>>>0).toNumber():t.setId),t.sortBy!=null&&t.hasOwnProperty("sortBy")&&(typeof t.sortBy=="number"?n.sortBy=i.longs===String?String(t.sortBy):t.sortBy:n.sortBy=i.longs===String?r.Long.prototype.toString.call(t.sortBy):i.longs===Number?new r.LongBits(t.sortBy.low>>>0,t.sortBy.high>>>0).toNumber():t.sortBy),t.offset!=null&&t.hasOwnProperty("offset")&&(n.offset=t.offset),t.pageSize!=null&&t.hasOwnProperty("pageSize")&&(n.pageSize=t.pageSize),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.topic.v1.TopicSetDetailsReq"},e}(),c.TopicSetHeadInfo=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.topicSet=u.bilibili.app.topic.v1.TopicSet.decode(t,t.uint32());break}case 2:{o.topicCntText=t.string();break}case 3:{o.headImgUrl=t.string();break}case 4:{o.missionUrl=t.string();break}case 5:{o.missionText=t.string();break}case 6:{o.iconUrl=t.string();break}case 7:{o.isFav=t.bool();break}case 8:{o.isFirstTime=t.bool();break}case 9:{o.recordText=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.topic.v1.TopicSetHeadInfo)return t;let i=new u.bilibili.app.topic.v1.TopicSetHeadInfo;if(t.topicSet!=null){if(typeof t.topicSet!="object")throw TypeError(".bilibili.app.topic.v1.TopicSetHeadInfo.topicSet: object expected");i.topicSet=u.bilibili.app.topic.v1.TopicSet.fromObject(t.topicSet)}return t.topicCntText!=null&&(i.topicCntText=String(t.topicCntText)),t.headImgUrl!=null&&(i.headImgUrl=String(t.headImgUrl)),t.missionUrl!=null&&(i.missionUrl=String(t.missionUrl)),t.missionText!=null&&(i.missionText=String(t.missionText)),t.iconUrl!=null&&(i.iconUrl=String(t.iconUrl)),t.isFav!=null&&(i.isFav=!!t.isFav),t.isFirstTime!=null&&(i.isFirstTime=!!t.isFirstTime),t.recordText!=null&&(i.recordText=String(t.recordText)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.topicSet=null,n.topicCntText="",n.headImgUrl="",n.missionUrl="",n.missionText="",n.iconUrl="",n.isFav=!1,n.isFirstTime=!1,n.recordText=""),t.topicSet!=null&&t.hasOwnProperty("topicSet")&&(n.topicSet=u.bilibili.app.topic.v1.TopicSet.toObject(t.topicSet,i)),t.topicCntText!=null&&t.hasOwnProperty("topicCntText")&&(n.topicCntText=t.topicCntText),t.headImgUrl!=null&&t.hasOwnProperty("headImgUrl")&&(n.headImgUrl=t.headImgUrl),t.missionUrl!=null&&t.hasOwnProperty("missionUrl")&&(n.missionUrl=t.missionUrl),t.missionText!=null&&t.hasOwnProperty("missionText")&&(n.missionText=t.missionText),t.iconUrl!=null&&t.hasOwnProperty("iconUrl")&&(n.iconUrl=t.iconUrl),t.isFav!=null&&t.hasOwnProperty("isFav")&&(n.isFav=t.isFav),t.isFirstTime!=null&&t.hasOwnProperty("isFirstTime")&&(n.isFirstTime=t.isFirstTime),t.recordText!=null&&t.hasOwnProperty("recordText")&&(n.recordText=t.recordText),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.topic.v1.TopicSetHeadInfo"},e}(),c.TopicSetDetailsReply=function(){function e(l){if(this.topicInfo=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.topicSetHeadInfo=u.bilibili.app.topic.v1.TopicSetHeadInfo.decode(t,t.uint32());break}case 2:{o.topicInfo&&o.topicInfo.length||(o.topicInfo=[]),o.topicInfo.push(u.bilibili.app.topic.v1.TopicInfo.decode(t,t.uint32()));break}case 3:{o.hasMore=t.bool();break}case 4:{o.offset=t.string();break}case 5:{o.sortCfg=u.bilibili.app.topic.v1.TopicSetSortCfg.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.topic.v1.TopicSetDetailsReply)return t;let i=new u.bilibili.app.topic.v1.TopicSetDetailsReply;if(t.topicSetHeadInfo!=null){if(typeof t.topicSetHeadInfo!="object")throw TypeError(".bilibili.app.topic.v1.TopicSetDetailsReply.topicSetHeadInfo: object expected");i.topicSetHeadInfo=u.bilibili.app.topic.v1.TopicSetHeadInfo.fromObject(t.topicSetHeadInfo)}if(t.topicInfo){if(!Array.isArray(t.topicInfo))throw TypeError(".bilibili.app.topic.v1.TopicSetDetailsReply.topicInfo: array expected");i.topicInfo=[];for(let n=0;n>>3){case 1:{o.defaultSortBy=t.int64();break}case 2:{o.allSortBy&&o.allSortBy.length||(o.allSortBy=[]),o.allSortBy.push(u.bilibili.app.topic.v1.SortContent.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.topic.v1.TopicSetSortCfg)return t;let i=new u.bilibili.app.topic.v1.TopicSetSortCfg;if(t.defaultSortBy!=null&&(r.Long?(i.defaultSortBy=r.Long.fromValue(t.defaultSortBy)).unsigned=!1:typeof t.defaultSortBy=="string"?i.defaultSortBy=parseInt(t.defaultSortBy,10):typeof t.defaultSortBy=="number"?i.defaultSortBy=t.defaultSortBy:typeof t.defaultSortBy=="object"&&(i.defaultSortBy=new r.LongBits(t.defaultSortBy.low>>>0,t.defaultSortBy.high>>>0).toNumber())),t.allSortBy){if(!Array.isArray(t.allSortBy))throw TypeError(".bilibili.app.topic.v1.TopicSetSortCfg.allSortBy: array expected");i.allSortBy=[];for(let n=0;n>>0,t.defaultSortBy.high>>>0).toNumber():t.defaultSortBy),t.allSortBy&&t.allSortBy.length){n.allSortBy=[];for(let o=0;o>>3){case 1:{o.topicId=t.int64();break}case 2:{o.sortBy=t.int64();break}case 3:{o.offset=t.string();break}case 4:{o.pageSize=t.int32();break}case 5:{o.localTime=t.int32();break}case 6:{o.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.decode(t,t.uint32());break}case 7:{o.needRefresh=t.int32();break}case 8:{o.source=t.string();break}case 9:{o.topicDetailsExtMode=t.int32();break}case 10:{o.fromSpmid=t.string();break}case 11:{o.extra===r.emptyObject&&(o.extra={});let v=t.uint32()+t.pos;for(a="",y="";t.pos>>3){case 1:a=t.string();break;case 2:y=t.string();break;default:t.skipType(g&7);break}}o.extra[a]=y;break}case 12:{o.isTopDynamic=t.bool();break}default:t.skipType(s&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.topic.v1.TopicDetailsAllReq)return t;let i=new u.bilibili.app.topic.v1.TopicDetailsAllReq;if(t.topicId!=null&&(r.Long?(i.topicId=r.Long.fromValue(t.topicId)).unsigned=!1:typeof t.topicId=="string"?i.topicId=parseInt(t.topicId,10):typeof t.topicId=="number"?i.topicId=t.topicId:typeof t.topicId=="object"&&(i.topicId=new r.LongBits(t.topicId.low>>>0,t.topicId.high>>>0).toNumber())),t.sortBy!=null&&(r.Long?(i.sortBy=r.Long.fromValue(t.sortBy)).unsigned=!1:typeof t.sortBy=="string"?i.sortBy=parseInt(t.sortBy,10):typeof t.sortBy=="number"?i.sortBy=t.sortBy:typeof t.sortBy=="object"&&(i.sortBy=new r.LongBits(t.sortBy.low>>>0,t.sortBy.high>>>0).toNumber())),t.offset!=null&&(i.offset=String(t.offset)),t.pageSize!=null&&(i.pageSize=t.pageSize|0),t.localTime!=null&&(i.localTime=t.localTime|0),t.playerArgs!=null){if(typeof t.playerArgs!="object")throw TypeError(".bilibili.app.topic.v1.TopicDetailsAllReq.playerArgs: object expected");i.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.fromObject(t.playerArgs)}switch(t.needRefresh!=null&&(i.needRefresh=t.needRefresh|0),t.source!=null&&(i.source=String(t.source)),t.topicDetailsExtMode){default:if(typeof t.topicDetailsExtMode=="number"){i.topicDetailsExtMode=t.topicDetailsExtMode;break}break;case"MODE_ILLEGAL_TYPE":case 0:i.topicDetailsExtMode=0;break;case"STORY":case 1:i.topicDetailsExtMode=1;break}if(t.fromSpmid!=null&&(i.fromSpmid=String(t.fromSpmid)),t.extra){if(typeof t.extra!="object")throw TypeError(".bilibili.app.topic.v1.TopicDetailsAllReq.extra: object expected");i.extra={};for(let n=Object.keys(t.extra),o=0;o>>0,t.topicId.high>>>0).toNumber():t.topicId),t.sortBy!=null&&t.hasOwnProperty("sortBy")&&(typeof t.sortBy=="number"?n.sortBy=i.longs===String?String(t.sortBy):t.sortBy:n.sortBy=i.longs===String?r.Long.prototype.toString.call(t.sortBy):i.longs===Number?new r.LongBits(t.sortBy.low>>>0,t.sortBy.high>>>0).toNumber():t.sortBy),t.offset!=null&&t.hasOwnProperty("offset")&&(n.offset=t.offset),t.pageSize!=null&&t.hasOwnProperty("pageSize")&&(n.pageSize=t.pageSize),t.localTime!=null&&t.hasOwnProperty("localTime")&&(n.localTime=t.localTime),t.playerArgs!=null&&t.hasOwnProperty("playerArgs")&&(n.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.toObject(t.playerArgs,i)),t.needRefresh!=null&&t.hasOwnProperty("needRefresh")&&(n.needRefresh=t.needRefresh),t.source!=null&&t.hasOwnProperty("source")&&(n.source=t.source),t.topicDetailsExtMode!=null&&t.hasOwnProperty("topicDetailsExtMode")&&(n.topicDetailsExtMode=i.enums===String?u.bilibili.app.topic.v1.TopicDetailsExtMode[t.topicDetailsExtMode]===void 0?t.topicDetailsExtMode:u.bilibili.app.topic.v1.TopicDetailsExtMode[t.topicDetailsExtMode]:t.topicDetailsExtMode),t.fromSpmid!=null&&t.hasOwnProperty("fromSpmid")&&(n.fromSpmid=t.fromSpmid);let o;if(t.extra&&(o=Object.keys(t.extra)).length){n.extra={};for(let a=0;a>>3){case 1:{o.detailsTopInfo=u.bilibili.app.topic.v1.DetailsTopInfo.decode(t,t.uint32());break}case 2:{o.topicActivities=u.bilibili.app.topic.v1.TopicActivities.decode(t,t.uint32());break}case 3:{o.topicCardList=u.bilibili.app.topic.v1.TopicCardList.decode(t,t.uint32());break}case 4:{o.functionalCard=u.bilibili.app.topic.v1.FunctionalCard.decode(t,t.uint32());break}case 5:{o.pubLayer=u.bilibili.app.topic.v1.PubLayer.decode(t,t.uint32());break}case 6:{o.timeLineResource=u.bilibili.app.topic.v1.TimeLineResource.decode(t,t.uint32());break}case 7:{o.topicServerConfig=u.bilibili.app.topic.v1.TopicServerConfig.decode(t,t.uint32());break}case 8:{o.topicOnline=u.bilibili.app.topic.v1.TopicOnline.decode(t,t.uint32());break}case 9:{o.topicTopCards&&o.topicTopCards.length||(o.topicTopCards=[]),o.topicTopCards.push(u.bilibili.app.topic.v1.TopicTopCard.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.topic.v1.TopicDetailsAllReply)return t;let i=new u.bilibili.app.topic.v1.TopicDetailsAllReply;if(t.detailsTopInfo!=null){if(typeof t.detailsTopInfo!="object")throw TypeError(".bilibili.app.topic.v1.TopicDetailsAllReply.detailsTopInfo: object expected");i.detailsTopInfo=u.bilibili.app.topic.v1.DetailsTopInfo.fromObject(t.detailsTopInfo)}if(t.topicActivities!=null){if(typeof t.topicActivities!="object")throw TypeError(".bilibili.app.topic.v1.TopicDetailsAllReply.topicActivities: object expected");i.topicActivities=u.bilibili.app.topic.v1.TopicActivities.fromObject(t.topicActivities)}if(t.topicCardList!=null){if(typeof t.topicCardList!="object")throw TypeError(".bilibili.app.topic.v1.TopicDetailsAllReply.topicCardList: object expected");i.topicCardList=u.bilibili.app.topic.v1.TopicCardList.fromObject(t.topicCardList)}if(t.functionalCard!=null){if(typeof t.functionalCard!="object")throw TypeError(".bilibili.app.topic.v1.TopicDetailsAllReply.functionalCard: object expected");i.functionalCard=u.bilibili.app.topic.v1.FunctionalCard.fromObject(t.functionalCard)}if(t.pubLayer!=null){if(typeof t.pubLayer!="object")throw TypeError(".bilibili.app.topic.v1.TopicDetailsAllReply.pubLayer: object expected");i.pubLayer=u.bilibili.app.topic.v1.PubLayer.fromObject(t.pubLayer)}if(t.timeLineResource!=null){if(typeof t.timeLineResource!="object")throw TypeError(".bilibili.app.topic.v1.TopicDetailsAllReply.timeLineResource: object expected");i.timeLineResource=u.bilibili.app.topic.v1.TimeLineResource.fromObject(t.timeLineResource)}if(t.topicServerConfig!=null){if(typeof t.topicServerConfig!="object")throw TypeError(".bilibili.app.topic.v1.TopicDetailsAllReply.topicServerConfig: object expected");i.topicServerConfig=u.bilibili.app.topic.v1.TopicServerConfig.fromObject(t.topicServerConfig)}if(t.topicOnline!=null){if(typeof t.topicOnline!="object")throw TypeError(".bilibili.app.topic.v1.TopicDetailsAllReply.topicOnline: object expected");i.topicOnline=u.bilibili.app.topic.v1.TopicOnline.fromObject(t.topicOnline)}if(t.topicTopCards){if(!Array.isArray(t.topicTopCards))throw TypeError(".bilibili.app.topic.v1.TopicDetailsAllReply.topicTopCards: array expected");i.topicTopCards=[];for(let n=0;n>>3){case 1:{o.pubEventsIncreaseThreshold=t.int64();break}case 2:{o.pubEventsHiddenTimeoutThreshold=t.int64();break}case 3:{o.vertOnlineRefreshTime=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.topic.v1.TopicServerConfig)return t;let i=new u.bilibili.app.topic.v1.TopicServerConfig;return t.pubEventsIncreaseThreshold!=null&&(r.Long?(i.pubEventsIncreaseThreshold=r.Long.fromValue(t.pubEventsIncreaseThreshold)).unsigned=!1:typeof t.pubEventsIncreaseThreshold=="string"?i.pubEventsIncreaseThreshold=parseInt(t.pubEventsIncreaseThreshold,10):typeof t.pubEventsIncreaseThreshold=="number"?i.pubEventsIncreaseThreshold=t.pubEventsIncreaseThreshold:typeof t.pubEventsIncreaseThreshold=="object"&&(i.pubEventsIncreaseThreshold=new r.LongBits(t.pubEventsIncreaseThreshold.low>>>0,t.pubEventsIncreaseThreshold.high>>>0).toNumber())),t.pubEventsHiddenTimeoutThreshold!=null&&(r.Long?(i.pubEventsHiddenTimeoutThreshold=r.Long.fromValue(t.pubEventsHiddenTimeoutThreshold)).unsigned=!1:typeof t.pubEventsHiddenTimeoutThreshold=="string"?i.pubEventsHiddenTimeoutThreshold=parseInt(t.pubEventsHiddenTimeoutThreshold,10):typeof t.pubEventsHiddenTimeoutThreshold=="number"?i.pubEventsHiddenTimeoutThreshold=t.pubEventsHiddenTimeoutThreshold:typeof t.pubEventsHiddenTimeoutThreshold=="object"&&(i.pubEventsHiddenTimeoutThreshold=new r.LongBits(t.pubEventsHiddenTimeoutThreshold.low>>>0,t.pubEventsHiddenTimeoutThreshold.high>>>0).toNumber())),t.vertOnlineRefreshTime!=null&&(r.Long?(i.vertOnlineRefreshTime=r.Long.fromValue(t.vertOnlineRefreshTime)).unsigned=!1:typeof t.vertOnlineRefreshTime=="string"?i.vertOnlineRefreshTime=parseInt(t.vertOnlineRefreshTime,10):typeof t.vertOnlineRefreshTime=="number"?i.vertOnlineRefreshTime=t.vertOnlineRefreshTime:typeof t.vertOnlineRefreshTime=="object"&&(i.vertOnlineRefreshTime=new r.LongBits(t.vertOnlineRefreshTime.low>>>0,t.vertOnlineRefreshTime.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.pubEventsIncreaseThreshold=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.pubEventsIncreaseThreshold=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.pubEventsHiddenTimeoutThreshold=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.pubEventsHiddenTimeoutThreshold=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.vertOnlineRefreshTime=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.vertOnlineRefreshTime=i.longs===String?"0":0}return t.pubEventsIncreaseThreshold!=null&&t.hasOwnProperty("pubEventsIncreaseThreshold")&&(typeof t.pubEventsIncreaseThreshold=="number"?n.pubEventsIncreaseThreshold=i.longs===String?String(t.pubEventsIncreaseThreshold):t.pubEventsIncreaseThreshold:n.pubEventsIncreaseThreshold=i.longs===String?r.Long.prototype.toString.call(t.pubEventsIncreaseThreshold):i.longs===Number?new r.LongBits(t.pubEventsIncreaseThreshold.low>>>0,t.pubEventsIncreaseThreshold.high>>>0).toNumber():t.pubEventsIncreaseThreshold),t.pubEventsHiddenTimeoutThreshold!=null&&t.hasOwnProperty("pubEventsHiddenTimeoutThreshold")&&(typeof t.pubEventsHiddenTimeoutThreshold=="number"?n.pubEventsHiddenTimeoutThreshold=i.longs===String?String(t.pubEventsHiddenTimeoutThreshold):t.pubEventsHiddenTimeoutThreshold:n.pubEventsHiddenTimeoutThreshold=i.longs===String?r.Long.prototype.toString.call(t.pubEventsHiddenTimeoutThreshold):i.longs===Number?new r.LongBits(t.pubEventsHiddenTimeoutThreshold.low>>>0,t.pubEventsHiddenTimeoutThreshold.high>>>0).toNumber():t.pubEventsHiddenTimeoutThreshold),t.vertOnlineRefreshTime!=null&&t.hasOwnProperty("vertOnlineRefreshTime")&&(typeof t.vertOnlineRefreshTime=="number"?n.vertOnlineRefreshTime=i.longs===String?String(t.vertOnlineRefreshTime):t.vertOnlineRefreshTime:n.vertOnlineRefreshTime=i.longs===String?r.Long.prototype.toString.call(t.vertOnlineRefreshTime):i.longs===Number?new r.LongBits(t.vertOnlineRefreshTime.low>>>0,t.vertOnlineRefreshTime.high>>>0).toNumber():t.vertOnlineRefreshTime),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.topic.v1.TopicServerConfig"},e}(),c.TimeLineResource=function(){function e(l){if(this.timeLineEvents=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.timeLineId=t.int64();break}case 2:{o.timeLineTitle=t.string();break}case 3:{o.timeLineEvents&&o.timeLineEvents.length||(o.timeLineEvents=[]),o.timeLineEvents.push(u.bilibili.app.topic.v1.TimeLineEvents.decode(t,t.uint32()));break}case 4:{o.hasMore=t.bool();break}case 5:{o.startTime=t.int64();break}case 6:{o.endTime=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.topic.v1.TimeLineResource)return t;let i=new u.bilibili.app.topic.v1.TimeLineResource;if(t.timeLineId!=null&&(r.Long?(i.timeLineId=r.Long.fromValue(t.timeLineId)).unsigned=!1:typeof t.timeLineId=="string"?i.timeLineId=parseInt(t.timeLineId,10):typeof t.timeLineId=="number"?i.timeLineId=t.timeLineId:typeof t.timeLineId=="object"&&(i.timeLineId=new r.LongBits(t.timeLineId.low>>>0,t.timeLineId.high>>>0).toNumber())),t.timeLineTitle!=null&&(i.timeLineTitle=String(t.timeLineTitle)),t.timeLineEvents){if(!Array.isArray(t.timeLineEvents))throw TypeError(".bilibili.app.topic.v1.TimeLineResource.timeLineEvents: array expected");i.timeLineEvents=[];for(let n=0;n>>0,t.startTime.high>>>0).toNumber())),t.endTime!=null&&(r.Long?(i.endTime=r.Long.fromValue(t.endTime)).unsigned=!1:typeof t.endTime=="string"?i.endTime=parseInt(t.endTime,10):typeof t.endTime=="number"?i.endTime=t.endTime:typeof t.endTime=="object"&&(i.endTime=new r.LongBits(t.endTime.low>>>0,t.endTime.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if((i.arrays||i.defaults)&&(n.timeLineEvents=[]),i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.timeLineId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.timeLineId=i.longs===String?"0":0;if(n.timeLineTitle="",n.hasMore=!1,r.Long){let o=new r.Long(0,0,!1);n.startTime=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.startTime=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.endTime=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.endTime=i.longs===String?"0":0}if(t.timeLineId!=null&&t.hasOwnProperty("timeLineId")&&(typeof t.timeLineId=="number"?n.timeLineId=i.longs===String?String(t.timeLineId):t.timeLineId:n.timeLineId=i.longs===String?r.Long.prototype.toString.call(t.timeLineId):i.longs===Number?new r.LongBits(t.timeLineId.low>>>0,t.timeLineId.high>>>0).toNumber():t.timeLineId),t.timeLineTitle!=null&&t.hasOwnProperty("timeLineTitle")&&(n.timeLineTitle=t.timeLineTitle),t.timeLineEvents&&t.timeLineEvents.length){n.timeLineEvents=[];for(let o=0;o>>0,t.startTime.high>>>0).toNumber():t.startTime),t.endTime!=null&&t.hasOwnProperty("endTime")&&(typeof t.endTime=="number"?n.endTime=i.longs===String?String(t.endTime):t.endTime:n.endTime=i.longs===String?r.Long.prototype.toString.call(t.endTime):i.longs===Number?new r.LongBits(t.endTime.low>>>0,t.endTime.high>>>0).toNumber():t.endTime),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.topic.v1.TimeLineResource"},e}(),c.TimeLineEvents=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.eventId=t.int64();break}case 2:{o.title=t.string();break}case 3:{o.timeDesc=t.string();break}case 4:{o.jumpLink=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.topic.v1.TimeLineEvents)return t;let i=new u.bilibili.app.topic.v1.TimeLineEvents;return t.eventId!=null&&(r.Long?(i.eventId=r.Long.fromValue(t.eventId)).unsigned=!1:typeof t.eventId=="string"?i.eventId=parseInt(t.eventId,10):typeof t.eventId=="number"?i.eventId=t.eventId:typeof t.eventId=="object"&&(i.eventId=new r.LongBits(t.eventId.low>>>0,t.eventId.high>>>0).toNumber())),t.title!=null&&(i.title=String(t.title)),t.timeDesc!=null&&(i.timeDesc=String(t.timeDesc)),t.jumpLink!=null&&(i.jumpLink=String(t.jumpLink)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.eventId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.eventId=i.longs===String?"0":0;n.title="",n.timeDesc="",n.jumpLink=""}return t.eventId!=null&&t.hasOwnProperty("eventId")&&(typeof t.eventId=="number"?n.eventId=i.longs===String?String(t.eventId):t.eventId:n.eventId=i.longs===String?r.Long.prototype.toString.call(t.eventId):i.longs===Number?new r.LongBits(t.eventId.low>>>0,t.eventId.high>>>0).toNumber():t.eventId),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.timeDesc!=null&&t.hasOwnProperty("timeDesc")&&(n.timeDesc=t.timeDesc),t.jumpLink!=null&&t.hasOwnProperty("jumpLink")&&(n.jumpLink=t.jumpLink),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.topic.v1.TimeLineEvents"},e}(),c.PubLayer=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.showType=t.int32();break}case 2:{o.jumpLink=t.string();break}case 3:{o.buttonMeta=u.bilibili.app.topic.v1.ButtonMeta.decode(t,t.uint32());break}case 4:{o.closePubLayerEntry=t.bool();break}case 5:{o.userAvatar=t.string();break}case 6:{o.isHalfScreen=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.topic.v1.PubLayer)return t;let i=new u.bilibili.app.topic.v1.PubLayer;if(t.showType!=null&&(i.showType=t.showType|0),t.jumpLink!=null&&(i.jumpLink=String(t.jumpLink)),t.buttonMeta!=null){if(typeof t.buttonMeta!="object")throw TypeError(".bilibili.app.topic.v1.PubLayer.buttonMeta: object expected");i.buttonMeta=u.bilibili.app.topic.v1.ButtonMeta.fromObject(t.buttonMeta)}return t.closePubLayerEntry!=null&&(i.closePubLayerEntry=!!t.closePubLayerEntry),t.userAvatar!=null&&(i.userAvatar=String(t.userAvatar)),t.isHalfScreen!=null&&(i.isHalfScreen=!!t.isHalfScreen),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.showType=0,n.jumpLink="",n.buttonMeta=null,n.closePubLayerEntry=!1,n.userAvatar="",n.isHalfScreen=!1),t.showType!=null&&t.hasOwnProperty("showType")&&(n.showType=t.showType),t.jumpLink!=null&&t.hasOwnProperty("jumpLink")&&(n.jumpLink=t.jumpLink),t.buttonMeta!=null&&t.hasOwnProperty("buttonMeta")&&(n.buttonMeta=u.bilibili.app.topic.v1.ButtonMeta.toObject(t.buttonMeta,i)),t.closePubLayerEntry!=null&&t.hasOwnProperty("closePubLayerEntry")&&(n.closePubLayerEntry=t.closePubLayerEntry),t.userAvatar!=null&&t.hasOwnProperty("userAvatar")&&(n.userAvatar=t.userAvatar),t.isHalfScreen!=null&&t.hasOwnProperty("isHalfScreen")&&(n.isHalfScreen=t.isHalfScreen),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.topic.v1.PubLayer"},e}(),c.ButtonMeta=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.text=t.string();break}case 2:{o.icon=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.topic.v1.ButtonMeta)return t;let i=new u.bilibili.app.topic.v1.ButtonMeta;return t.text!=null&&(i.text=String(t.text)),t.icon!=null&&(i.icon=String(t.icon)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.text="",n.icon=""),t.text!=null&&t.hasOwnProperty("text")&&(n.text=t.text),t.icon!=null&&t.hasOwnProperty("icon")&&(n.icon=t.icon),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.topic.v1.ButtonMeta"},e}(),c.FunctionalCard=function(){function e(l){if(this.capsules=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.capsules&&o.capsules.length||(o.capsules=[]),o.capsules.push(u.bilibili.app.topic.v1.TopicCapsule.decode(t,t.uint32()));break}case 2:{o.trafficCard=u.bilibili.app.topic.v1.TrafficCard.decode(t,t.uint32());break}case 3:{o.gameCard=u.bilibili.app.topic.v1.GameCard.decode(t,t.uint32());break}case 4:{o.startTime=t.int64();break}case 5:{o.endTime=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.topic.v1.FunctionalCard)return t;let i=new u.bilibili.app.topic.v1.FunctionalCard;if(t.capsules){if(!Array.isArray(t.capsules))throw TypeError(".bilibili.app.topic.v1.FunctionalCard.capsules: array expected");i.capsules=[];for(let n=0;n>>0,t.startTime.high>>>0).toNumber())),t.endTime!=null&&(r.Long?(i.endTime=r.Long.fromValue(t.endTime)).unsigned=!1:typeof t.endTime=="string"?i.endTime=parseInt(t.endTime,10):typeof t.endTime=="number"?i.endTime=t.endTime:typeof t.endTime=="object"&&(i.endTime=new r.LongBits(t.endTime.low>>>0,t.endTime.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if((i.arrays||i.defaults)&&(n.capsules=[]),i.defaults){if(n.trafficCard=null,n.gameCard=null,r.Long){let o=new r.Long(0,0,!1);n.startTime=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.startTime=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.endTime=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.endTime=i.longs===String?"0":0}if(t.capsules&&t.capsules.length){n.capsules=[];for(let o=0;o>>0,t.startTime.high>>>0).toNumber():t.startTime),t.endTime!=null&&t.hasOwnProperty("endTime")&&(typeof t.endTime=="number"?n.endTime=i.longs===String?String(t.endTime):t.endTime:n.endTime=i.longs===String?r.Long.prototype.toString.call(t.endTime):i.longs===Number?new r.LongBits(t.endTime.low>>>0,t.endTime.high>>>0).toNumber():t.endTime),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.topic.v1.FunctionalCard"},e}(),c.GameCard=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.gameId=t.int64();break}case 2:{o.gameIcon=t.string();break}case 3:{o.gameName=t.string();break}case 4:{o.score=t.string();break}case 5:{o.gameTags=t.string();break}case 6:{o.notice=t.string();break}case 7:{o.gameLink=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.topic.v1.GameCard)return t;let i=new u.bilibili.app.topic.v1.GameCard;return t.gameId!=null&&(r.Long?(i.gameId=r.Long.fromValue(t.gameId)).unsigned=!1:typeof t.gameId=="string"?i.gameId=parseInt(t.gameId,10):typeof t.gameId=="number"?i.gameId=t.gameId:typeof t.gameId=="object"&&(i.gameId=new r.LongBits(t.gameId.low>>>0,t.gameId.high>>>0).toNumber())),t.gameIcon!=null&&(i.gameIcon=String(t.gameIcon)),t.gameName!=null&&(i.gameName=String(t.gameName)),t.score!=null&&(i.score=String(t.score)),t.gameTags!=null&&(i.gameTags=String(t.gameTags)),t.notice!=null&&(i.notice=String(t.notice)),t.gameLink!=null&&(i.gameLink=String(t.gameLink)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.gameId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.gameId=i.longs===String?"0":0;n.gameIcon="",n.gameName="",n.score="",n.gameTags="",n.notice="",n.gameLink=""}return t.gameId!=null&&t.hasOwnProperty("gameId")&&(typeof t.gameId=="number"?n.gameId=i.longs===String?String(t.gameId):t.gameId:n.gameId=i.longs===String?r.Long.prototype.toString.call(t.gameId):i.longs===Number?new r.LongBits(t.gameId.low>>>0,t.gameId.high>>>0).toNumber():t.gameId),t.gameIcon!=null&&t.hasOwnProperty("gameIcon")&&(n.gameIcon=t.gameIcon),t.gameName!=null&&t.hasOwnProperty("gameName")&&(n.gameName=t.gameName),t.score!=null&&t.hasOwnProperty("score")&&(n.score=t.score),t.gameTags!=null&&t.hasOwnProperty("gameTags")&&(n.gameTags=t.gameTags),t.notice!=null&&t.hasOwnProperty("notice")&&(n.notice=t.notice),t.gameLink!=null&&t.hasOwnProperty("gameLink")&&(n.gameLink=t.gameLink),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.topic.v1.GameCard"},e}(),c.TopicCapsule=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.name=t.string();break}case 2:{o.jumpUrl=t.string();break}case 3:{o.iconUrl=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.topic.v1.TopicCapsule)return t;let i=new u.bilibili.app.topic.v1.TopicCapsule;return t.name!=null&&(i.name=String(t.name)),t.jumpUrl!=null&&(i.jumpUrl=String(t.jumpUrl)),t.iconUrl!=null&&(i.iconUrl=String(t.iconUrl)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.name="",n.jumpUrl="",n.iconUrl=""),t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),t.jumpUrl!=null&&t.hasOwnProperty("jumpUrl")&&(n.jumpUrl=t.jumpUrl),t.iconUrl!=null&&t.hasOwnProperty("iconUrl")&&(n.iconUrl=t.iconUrl),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.topic.v1.TopicCapsule"},e}(),c.TrafficCard=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.name=t.string();break}case 2:{o.jumpUrl=t.string();break}case 3:{o.iconUrl=t.string();break}case 4:{o.basePic=t.string();break}case 5:{o.benefitPoint=t.string();break}case 6:{o.cardDesc=t.string();break}case 7:{o.jumpTitle=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.topic.v1.TrafficCard)return t;let i=new u.bilibili.app.topic.v1.TrafficCard;return t.name!=null&&(i.name=String(t.name)),t.jumpUrl!=null&&(i.jumpUrl=String(t.jumpUrl)),t.iconUrl!=null&&(i.iconUrl=String(t.iconUrl)),t.basePic!=null&&(i.basePic=String(t.basePic)),t.benefitPoint!=null&&(i.benefitPoint=String(t.benefitPoint)),t.cardDesc!=null&&(i.cardDesc=String(t.cardDesc)),t.jumpTitle!=null&&(i.jumpTitle=String(t.jumpTitle)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.name="",n.jumpUrl="",n.iconUrl="",n.basePic="",n.benefitPoint="",n.cardDesc="",n.jumpTitle=""),t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),t.jumpUrl!=null&&t.hasOwnProperty("jumpUrl")&&(n.jumpUrl=t.jumpUrl),t.iconUrl!=null&&t.hasOwnProperty("iconUrl")&&(n.iconUrl=t.iconUrl),t.basePic!=null&&t.hasOwnProperty("basePic")&&(n.basePic=t.basePic),t.benefitPoint!=null&&t.hasOwnProperty("benefitPoint")&&(n.benefitPoint=t.benefitPoint),t.cardDesc!=null&&t.hasOwnProperty("cardDesc")&&(n.cardDesc=t.cardDesc),t.jumpTitle!=null&&t.hasOwnProperty("jumpTitle")&&(n.jumpTitle=t.jumpTitle),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.topic.v1.TrafficCard"},e}(),c.DetailsTopInfo=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.topicInfo=u.bilibili.app.topic.v1.TopicInfo.decode(t,t.uint32());break}case 2:{o.user=u.bilibili.app.topic.v1.User.decode(t,t.uint32());break}case 3:{o.statsDesc=t.string();break}case 4:{o.hasCreateJurisdiction=t.bool();break}case 5:{o.operationContent=u.bilibili.app.topic.v1.OperationContent.decode(t,t.uint32());break}case 6:{o.headImgUrl=t.string();break}case 7:{o.headImgBackcolor=t.string();break}case 8:{o.wordColor=t.int32();break}case 9:{o.missionPageShowType=t.int32();break}case 10:{o.missionUrl=t.string();break}case 11:{o.missionText=t.string();break}case 12:{o.topicSet=u.bilibili.app.topic.v1.TopicSet.decode(t,t.uint32());break}case 13:{o.symbol=t.string();break}case 14:{o.icon=t.string();break}case 15:{o.headBgImgUrl=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.topic.v1.DetailsTopInfo)return t;let i=new u.bilibili.app.topic.v1.DetailsTopInfo;if(t.topicInfo!=null){if(typeof t.topicInfo!="object")throw TypeError(".bilibili.app.topic.v1.DetailsTopInfo.topicInfo: object expected");i.topicInfo=u.bilibili.app.topic.v1.TopicInfo.fromObject(t.topicInfo)}if(t.user!=null){if(typeof t.user!="object")throw TypeError(".bilibili.app.topic.v1.DetailsTopInfo.user: object expected");i.user=u.bilibili.app.topic.v1.User.fromObject(t.user)}if(t.statsDesc!=null&&(i.statsDesc=String(t.statsDesc)),t.hasCreateJurisdiction!=null&&(i.hasCreateJurisdiction=!!t.hasCreateJurisdiction),t.operationContent!=null){if(typeof t.operationContent!="object")throw TypeError(".bilibili.app.topic.v1.DetailsTopInfo.operationContent: object expected");i.operationContent=u.bilibili.app.topic.v1.OperationContent.fromObject(t.operationContent)}if(t.headImgUrl!=null&&(i.headImgUrl=String(t.headImgUrl)),t.headImgBackcolor!=null&&(i.headImgBackcolor=String(t.headImgBackcolor)),t.wordColor!=null&&(i.wordColor=t.wordColor|0),t.missionPageShowType!=null&&(i.missionPageShowType=t.missionPageShowType|0),t.missionUrl!=null&&(i.missionUrl=String(t.missionUrl)),t.missionText!=null&&(i.missionText=String(t.missionText)),t.topicSet!=null){if(typeof t.topicSet!="object")throw TypeError(".bilibili.app.topic.v1.DetailsTopInfo.topicSet: object expected");i.topicSet=u.bilibili.app.topic.v1.TopicSet.fromObject(t.topicSet)}return t.symbol!=null&&(i.symbol=String(t.symbol)),t.icon!=null&&(i.icon=String(t.icon)),t.headBgImgUrl!=null&&(i.headBgImgUrl=String(t.headBgImgUrl)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.topicInfo=null,n.user=null,n.statsDesc="",n.hasCreateJurisdiction=!1,n.operationContent=null,n.headImgUrl="",n.headImgBackcolor="",n.wordColor=0,n.missionPageShowType=0,n.missionUrl="",n.missionText="",n.topicSet=null,n.symbol="",n.icon="",n.headBgImgUrl=""),t.topicInfo!=null&&t.hasOwnProperty("topicInfo")&&(n.topicInfo=u.bilibili.app.topic.v1.TopicInfo.toObject(t.topicInfo,i)),t.user!=null&&t.hasOwnProperty("user")&&(n.user=u.bilibili.app.topic.v1.User.toObject(t.user,i)),t.statsDesc!=null&&t.hasOwnProperty("statsDesc")&&(n.statsDesc=t.statsDesc),t.hasCreateJurisdiction!=null&&t.hasOwnProperty("hasCreateJurisdiction")&&(n.hasCreateJurisdiction=t.hasCreateJurisdiction),t.operationContent!=null&&t.hasOwnProperty("operationContent")&&(n.operationContent=u.bilibili.app.topic.v1.OperationContent.toObject(t.operationContent,i)),t.headImgUrl!=null&&t.hasOwnProperty("headImgUrl")&&(n.headImgUrl=t.headImgUrl),t.headImgBackcolor!=null&&t.hasOwnProperty("headImgBackcolor")&&(n.headImgBackcolor=t.headImgBackcolor),t.wordColor!=null&&t.hasOwnProperty("wordColor")&&(n.wordColor=t.wordColor),t.missionPageShowType!=null&&t.hasOwnProperty("missionPageShowType")&&(n.missionPageShowType=t.missionPageShowType),t.missionUrl!=null&&t.hasOwnProperty("missionUrl")&&(n.missionUrl=t.missionUrl),t.missionText!=null&&t.hasOwnProperty("missionText")&&(n.missionText=t.missionText),t.topicSet!=null&&t.hasOwnProperty("topicSet")&&(n.topicSet=u.bilibili.app.topic.v1.TopicSet.toObject(t.topicSet,i)),t.symbol!=null&&t.hasOwnProperty("symbol")&&(n.symbol=t.symbol),t.icon!=null&&t.hasOwnProperty("icon")&&(n.icon=t.icon),t.headBgImgUrl!=null&&t.hasOwnProperty("headBgImgUrl")&&(n.headBgImgUrl=t.headBgImgUrl),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.topic.v1.DetailsTopInfo"},e}(),c.TopicSet=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.setId=t.int64();break}case 2:{o.setName=t.string();break}case 3:{o.jumpUrl=t.string();break}case 4:{o.desc=t.string();break}case 5:{o.setTypeText=t.string();break}case 6:{o.setTypeColor=t.string();break}case 7:{o.setType=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.topic.v1.TopicSet)return t;let i=new u.bilibili.app.topic.v1.TopicSet;return t.setId!=null&&(r.Long?(i.setId=r.Long.fromValue(t.setId)).unsigned=!1:typeof t.setId=="string"?i.setId=parseInt(t.setId,10):typeof t.setId=="number"?i.setId=t.setId:typeof t.setId=="object"&&(i.setId=new r.LongBits(t.setId.low>>>0,t.setId.high>>>0).toNumber())),t.setName!=null&&(i.setName=String(t.setName)),t.jumpUrl!=null&&(i.jumpUrl=String(t.jumpUrl)),t.desc!=null&&(i.desc=String(t.desc)),t.setTypeText!=null&&(i.setTypeText=String(t.setTypeText)),t.setTypeColor!=null&&(i.setTypeColor=String(t.setTypeColor)),t.setType!=null&&(i.setType=t.setType|0),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.setId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.setId=i.longs===String?"0":0;n.setName="",n.jumpUrl="",n.desc="",n.setTypeText="",n.setTypeColor="",n.setType=0}return t.setId!=null&&t.hasOwnProperty("setId")&&(typeof t.setId=="number"?n.setId=i.longs===String?String(t.setId):t.setId:n.setId=i.longs===String?r.Long.prototype.toString.call(t.setId):i.longs===Number?new r.LongBits(t.setId.low>>>0,t.setId.high>>>0).toNumber():t.setId),t.setName!=null&&t.hasOwnProperty("setName")&&(n.setName=t.setName),t.jumpUrl!=null&&t.hasOwnProperty("jumpUrl")&&(n.jumpUrl=t.jumpUrl),t.desc!=null&&t.hasOwnProperty("desc")&&(n.desc=t.desc),t.setTypeText!=null&&t.hasOwnProperty("setTypeText")&&(n.setTypeText=t.setTypeText),t.setTypeColor!=null&&t.hasOwnProperty("setTypeColor")&&(n.setTypeColor=t.setTypeColor),t.setType!=null&&t.hasOwnProperty("setType")&&(n.setType=t.setType),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.topic.v1.TopicSet"},e}(),c.OperationContent=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.operationCard=u.bilibili.app.topic.v1.OperationCard.decode(t,t.uint32());break}case 2:{o.startTime=t.int64();break}case 3:{o.endTime=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.topic.v1.OperationContent)return t;let i=new u.bilibili.app.topic.v1.OperationContent;if(t.operationCard!=null){if(typeof t.operationCard!="object")throw TypeError(".bilibili.app.topic.v1.OperationContent.operationCard: object expected");i.operationCard=u.bilibili.app.topic.v1.OperationCard.fromObject(t.operationCard)}return t.startTime!=null&&(r.Long?(i.startTime=r.Long.fromValue(t.startTime)).unsigned=!1:typeof t.startTime=="string"?i.startTime=parseInt(t.startTime,10):typeof t.startTime=="number"?i.startTime=t.startTime:typeof t.startTime=="object"&&(i.startTime=new r.LongBits(t.startTime.low>>>0,t.startTime.high>>>0).toNumber())),t.endTime!=null&&(r.Long?(i.endTime=r.Long.fromValue(t.endTime)).unsigned=!1:typeof t.endTime=="string"?i.endTime=parseInt(t.endTime,10):typeof t.endTime=="number"?i.endTime=t.endTime:typeof t.endTime=="object"&&(i.endTime=new r.LongBits(t.endTime.low>>>0,t.endTime.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.operationCard=null,r.Long){let o=new r.Long(0,0,!1);n.startTime=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.startTime=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.endTime=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.endTime=i.longs===String?"0":0}return t.operationCard!=null&&t.hasOwnProperty("operationCard")&&(n.operationCard=u.bilibili.app.topic.v1.OperationCard.toObject(t.operationCard,i)),t.startTime!=null&&t.hasOwnProperty("startTime")&&(typeof t.startTime=="number"?n.startTime=i.longs===String?String(t.startTime):t.startTime:n.startTime=i.longs===String?r.Long.prototype.toString.call(t.startTime):i.longs===Number?new r.LongBits(t.startTime.low>>>0,t.startTime.high>>>0).toNumber():t.startTime),t.endTime!=null&&t.hasOwnProperty("endTime")&&(typeof t.endTime=="number"?n.endTime=i.longs===String?String(t.endTime):t.endTime:n.endTime=i.longs===String?r.Long.prototype.toString.call(t.endTime):i.longs===Number?new r.LongBits(t.endTime.low>>>0,t.endTime.high>>>0).toNumber():t.endTime),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.topic.v1.OperationContent"},e}(),c.OperationCard=function(){function e(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.largeCoverInline=u.bilibili.app.topic.v1.LargeCoverInline.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},e.fromObject=function(i){if(i instanceof u.bilibili.app.topic.v1.OperationCard)return i;let n=new u.bilibili.app.topic.v1.OperationCard;if(i.largeCoverInline!=null){if(typeof i.largeCoverInline!="object")throw TypeError(".bilibili.app.topic.v1.OperationCard.largeCoverInline: object expected");n.largeCoverInline=u.bilibili.app.topic.v1.LargeCoverInline.fromObject(i.largeCoverInline)}return n},e.toObject=function(i,n){n||(n={});let o={};return i.largeCoverInline!=null&&i.hasOwnProperty("largeCoverInline")&&(o.largeCoverInline=u.bilibili.app.topic.v1.LargeCoverInline.toObject(i.largeCoverInline,n),n.oneofs&&(o.Card="largeCoverInline")),o},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.app.topic.v1.OperationCard"},e}(),c.LargeCoverInline=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.base=u.bilibili.app.card.v1.Base.decode(t,t.uint32());break}case 2:{o.coverLeftText_1=t.string();break}case 3:{o.coverLeftIcon_1=t.int32();break}case 4:{o.coverLeftText_2=t.string();break}case 5:{o.coverLeftIcon_2=t.int32();break}case 6:{o.rightTopLiveBadge=u.bilibili.app.topic.v1.RightTopLiveBadge.decode(t,t.uint32());break}case 7:{o.extraUri=t.string();break}case 8:{o.inlineProgressBar=u.bilibili.app.topic.v1.InlineProgressBar.decode(t,t.uint32());break}case 9:{o.topicThreePoint=u.bilibili.app.topic.v1.TopicThreePoint.decode(t,t.uint32());break}case 10:{o.coverLeftDesc=t.string();break}case 11:{o.hideDanmuSwitch=t.bool();break}case 12:{o.disableDanmu=t.bool();break}case 13:{o.canPlay=t.int32();break}case 14:{o.durationText=t.string();break}case 15:{o.relationData=u.bilibili.app.topic.v1.RelationData.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.topic.v1.LargeCoverInline)return t;let i=new u.bilibili.app.topic.v1.LargeCoverInline;if(t.base!=null){if(typeof t.base!="object")throw TypeError(".bilibili.app.topic.v1.LargeCoverInline.base: object expected");i.base=u.bilibili.app.card.v1.Base.fromObject(t.base)}if(t.coverLeftText_1!=null&&(i.coverLeftText_1=String(t.coverLeftText_1)),t.coverLeftIcon_1!=null&&(i.coverLeftIcon_1=t.coverLeftIcon_1|0),t.coverLeftText_2!=null&&(i.coverLeftText_2=String(t.coverLeftText_2)),t.coverLeftIcon_2!=null&&(i.coverLeftIcon_2=t.coverLeftIcon_2|0),t.rightTopLiveBadge!=null){if(typeof t.rightTopLiveBadge!="object")throw TypeError(".bilibili.app.topic.v1.LargeCoverInline.rightTopLiveBadge: object expected");i.rightTopLiveBadge=u.bilibili.app.topic.v1.RightTopLiveBadge.fromObject(t.rightTopLiveBadge)}if(t.extraUri!=null&&(i.extraUri=String(t.extraUri)),t.inlineProgressBar!=null){if(typeof t.inlineProgressBar!="object")throw TypeError(".bilibili.app.topic.v1.LargeCoverInline.inlineProgressBar: object expected");i.inlineProgressBar=u.bilibili.app.topic.v1.InlineProgressBar.fromObject(t.inlineProgressBar)}if(t.topicThreePoint!=null){if(typeof t.topicThreePoint!="object")throw TypeError(".bilibili.app.topic.v1.LargeCoverInline.topicThreePoint: object expected");i.topicThreePoint=u.bilibili.app.topic.v1.TopicThreePoint.fromObject(t.topicThreePoint)}if(t.coverLeftDesc!=null&&(i.coverLeftDesc=String(t.coverLeftDesc)),t.hideDanmuSwitch!=null&&(i.hideDanmuSwitch=!!t.hideDanmuSwitch),t.disableDanmu!=null&&(i.disableDanmu=!!t.disableDanmu),t.canPlay!=null&&(i.canPlay=t.canPlay|0),t.durationText!=null&&(i.durationText=String(t.durationText)),t.relationData!=null){if(typeof t.relationData!="object")throw TypeError(".bilibili.app.topic.v1.LargeCoverInline.relationData: object expected");i.relationData=u.bilibili.app.topic.v1.RelationData.fromObject(t.relationData)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.base=null,n.coverLeftText_1="",n.coverLeftIcon_1=0,n.coverLeftText_2="",n.coverLeftIcon_2=0,n.rightTopLiveBadge=null,n.extraUri="",n.inlineProgressBar=null,n.topicThreePoint=null,n.coverLeftDesc="",n.hideDanmuSwitch=!1,n.disableDanmu=!1,n.canPlay=0,n.durationText="",n.relationData=null),t.base!=null&&t.hasOwnProperty("base")&&(n.base=u.bilibili.app.card.v1.Base.toObject(t.base,i)),t.coverLeftText_1!=null&&t.hasOwnProperty("coverLeftText_1")&&(n.coverLeftText_1=t.coverLeftText_1),t.coverLeftIcon_1!=null&&t.hasOwnProperty("coverLeftIcon_1")&&(n.coverLeftIcon_1=t.coverLeftIcon_1),t.coverLeftText_2!=null&&t.hasOwnProperty("coverLeftText_2")&&(n.coverLeftText_2=t.coverLeftText_2),t.coverLeftIcon_2!=null&&t.hasOwnProperty("coverLeftIcon_2")&&(n.coverLeftIcon_2=t.coverLeftIcon_2),t.rightTopLiveBadge!=null&&t.hasOwnProperty("rightTopLiveBadge")&&(n.rightTopLiveBadge=u.bilibili.app.topic.v1.RightTopLiveBadge.toObject(t.rightTopLiveBadge,i)),t.extraUri!=null&&t.hasOwnProperty("extraUri")&&(n.extraUri=t.extraUri),t.inlineProgressBar!=null&&t.hasOwnProperty("inlineProgressBar")&&(n.inlineProgressBar=u.bilibili.app.topic.v1.InlineProgressBar.toObject(t.inlineProgressBar,i)),t.topicThreePoint!=null&&t.hasOwnProperty("topicThreePoint")&&(n.topicThreePoint=u.bilibili.app.topic.v1.TopicThreePoint.toObject(t.topicThreePoint,i)),t.coverLeftDesc!=null&&t.hasOwnProperty("coverLeftDesc")&&(n.coverLeftDesc=t.coverLeftDesc),t.hideDanmuSwitch!=null&&t.hasOwnProperty("hideDanmuSwitch")&&(n.hideDanmuSwitch=t.hideDanmuSwitch),t.disableDanmu!=null&&t.hasOwnProperty("disableDanmu")&&(n.disableDanmu=t.disableDanmu),t.canPlay!=null&&t.hasOwnProperty("canPlay")&&(n.canPlay=t.canPlay),t.durationText!=null&&t.hasOwnProperty("durationText")&&(n.durationText=t.durationText),t.relationData!=null&&t.hasOwnProperty("relationData")&&(n.relationData=u.bilibili.app.topic.v1.RelationData.toObject(t.relationData,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.topic.v1.LargeCoverInline"},e}(),c.RelationData=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.isFav=t.bool();break}case 2:{o.isCoin=t.bool();break}case 3:{o.isFollow=t.bool();break}case 4:{o.isLike=t.bool();break}case 5:{o.likeCount=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.topic.v1.RelationData)return t;let i=new u.bilibili.app.topic.v1.RelationData;return t.isFav!=null&&(i.isFav=!!t.isFav),t.isCoin!=null&&(i.isCoin=!!t.isCoin),t.isFollow!=null&&(i.isFollow=!!t.isFollow),t.isLike!=null&&(i.isLike=!!t.isLike),t.likeCount!=null&&(r.Long?(i.likeCount=r.Long.fromValue(t.likeCount)).unsigned=!1:typeof t.likeCount=="string"?i.likeCount=parseInt(t.likeCount,10):typeof t.likeCount=="number"?i.likeCount=t.likeCount:typeof t.likeCount=="object"&&(i.likeCount=new r.LongBits(t.likeCount.low>>>0,t.likeCount.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(n.isFav=!1,n.isCoin=!1,n.isFollow=!1,n.isLike=!1,r.Long){let o=new r.Long(0,0,!1);n.likeCount=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.likeCount=i.longs===String?"0":0;return t.isFav!=null&&t.hasOwnProperty("isFav")&&(n.isFav=t.isFav),t.isCoin!=null&&t.hasOwnProperty("isCoin")&&(n.isCoin=t.isCoin),t.isFollow!=null&&t.hasOwnProperty("isFollow")&&(n.isFollow=t.isFollow),t.isLike!=null&&t.hasOwnProperty("isLike")&&(n.isLike=t.isLike),t.likeCount!=null&&t.hasOwnProperty("likeCount")&&(typeof t.likeCount=="number"?n.likeCount=i.longs===String?String(t.likeCount):t.likeCount:n.likeCount=i.longs===String?r.Long.prototype.toString.call(t.likeCount):i.longs===Number?new r.LongBits(t.likeCount.low>>>0,t.likeCount.high>>>0).toNumber():t.likeCount),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.topic.v1.RelationData"},e}(),c.TopicThreePoint=function(){function e(l){if(this.dynThreePointItems=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.dynThreePointItems&&o.dynThreePointItems.length||(o.dynThreePointItems=[]),o.dynThreePointItems.push(u.bilibili.app.dynamic.v2.ThreePointItem.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.topic.v1.TopicThreePoint)return t;let i=new u.bilibili.app.topic.v1.TopicThreePoint;if(t.dynThreePointItems){if(!Array.isArray(t.dynThreePointItems))throw TypeError(".bilibili.app.topic.v1.TopicThreePoint.dynThreePointItems: array expected");i.dynThreePointItems=[];for(let n=0;n>>3){case 1:{o.title=t.string();break}case 2:{o.jumpUrl=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.topic.v1.ThreePointItem)return t;let i=new u.bilibili.app.topic.v1.ThreePointItem;return t.title!=null&&(i.title=String(t.title)),t.jumpUrl!=null&&(i.jumpUrl=String(t.jumpUrl)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.title="",n.jumpUrl=""),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.jumpUrl!=null&&t.hasOwnProperty("jumpUrl")&&(n.jumpUrl=t.jumpUrl),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.topic.v1.ThreePointItem"},e}(),c.InlineProgressBar=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.iconDrag=t.string();break}case 2:{o.iconDragHash=t.string();break}case 3:{o.iconStop=t.string();break}case 4:{o.iconStopHash=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.topic.v1.InlineProgressBar)return t;let i=new u.bilibili.app.topic.v1.InlineProgressBar;return t.iconDrag!=null&&(i.iconDrag=String(t.iconDrag)),t.iconDragHash!=null&&(i.iconDragHash=String(t.iconDragHash)),t.iconStop!=null&&(i.iconStop=String(t.iconStop)),t.iconStopHash!=null&&(i.iconStopHash=String(t.iconStopHash)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.iconDrag="",n.iconDragHash="",n.iconStop="",n.iconStopHash=""),t.iconDrag!=null&&t.hasOwnProperty("iconDrag")&&(n.iconDrag=t.iconDrag),t.iconDragHash!=null&&t.hasOwnProperty("iconDragHash")&&(n.iconDragHash=t.iconDragHash),t.iconStop!=null&&t.hasOwnProperty("iconStop")&&(n.iconStop=t.iconStop),t.iconStopHash!=null&&t.hasOwnProperty("iconStopHash")&&(n.iconStopHash=t.iconStopHash),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.topic.v1.InlineProgressBar"},e}(),c.RightTopLiveBadge=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.liveStatus=t.int64();break}case 2:{o.inLive=u.bilibili.app.topic.v1.LiveBadgeResource.decode(t,t.uint32());break}case 3:{o.liveStatsDesc=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.topic.v1.RightTopLiveBadge)return t;let i=new u.bilibili.app.topic.v1.RightTopLiveBadge;if(t.liveStatus!=null&&(r.Long?(i.liveStatus=r.Long.fromValue(t.liveStatus)).unsigned=!1:typeof t.liveStatus=="string"?i.liveStatus=parseInt(t.liveStatus,10):typeof t.liveStatus=="number"?i.liveStatus=t.liveStatus:typeof t.liveStatus=="object"&&(i.liveStatus=new r.LongBits(t.liveStatus.low>>>0,t.liveStatus.high>>>0).toNumber())),t.inLive!=null){if(typeof t.inLive!="object")throw TypeError(".bilibili.app.topic.v1.RightTopLiveBadge.inLive: object expected");i.inLive=u.bilibili.app.topic.v1.LiveBadgeResource.fromObject(t.inLive)}return t.liveStatsDesc!=null&&(i.liveStatsDesc=String(t.liveStatsDesc)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.liveStatus=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.liveStatus=i.longs===String?"0":0;n.inLive=null,n.liveStatsDesc=""}return t.liveStatus!=null&&t.hasOwnProperty("liveStatus")&&(typeof t.liveStatus=="number"?n.liveStatus=i.longs===String?String(t.liveStatus):t.liveStatus:n.liveStatus=i.longs===String?r.Long.prototype.toString.call(t.liveStatus):i.longs===Number?new r.LongBits(t.liveStatus.low>>>0,t.liveStatus.high>>>0).toNumber():t.liveStatus),t.inLive!=null&&t.hasOwnProperty("inLive")&&(n.inLive=u.bilibili.app.topic.v1.LiveBadgeResource.toObject(t.inLive,i)),t.liveStatsDesc!=null&&t.hasOwnProperty("liveStatsDesc")&&(n.liveStatsDesc=t.liveStatsDesc),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.topic.v1.RightTopLiveBadge"},e}(),c.LiveBadgeResource=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.text=t.string();break}case 2:{o.animationUrl=t.string();break}case 3:{o.animationUrlHash=t.string();break}case 4:{o.backgroundColorLight=t.string();break}case 5:{o.backgroundColorNight=t.string();break}case 6:{o.alphaLight=t.int64();break}case 7:{o.alphaNight=t.int64();break}case 8:{o.fontColor=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.topic.v1.LiveBadgeResource)return t;let i=new u.bilibili.app.topic.v1.LiveBadgeResource;return t.text!=null&&(i.text=String(t.text)),t.animationUrl!=null&&(i.animationUrl=String(t.animationUrl)),t.animationUrlHash!=null&&(i.animationUrlHash=String(t.animationUrlHash)),t.backgroundColorLight!=null&&(i.backgroundColorLight=String(t.backgroundColorLight)),t.backgroundColorNight!=null&&(i.backgroundColorNight=String(t.backgroundColorNight)),t.alphaLight!=null&&(r.Long?(i.alphaLight=r.Long.fromValue(t.alphaLight)).unsigned=!1:typeof t.alphaLight=="string"?i.alphaLight=parseInt(t.alphaLight,10):typeof t.alphaLight=="number"?i.alphaLight=t.alphaLight:typeof t.alphaLight=="object"&&(i.alphaLight=new r.LongBits(t.alphaLight.low>>>0,t.alphaLight.high>>>0).toNumber())),t.alphaNight!=null&&(r.Long?(i.alphaNight=r.Long.fromValue(t.alphaNight)).unsigned=!1:typeof t.alphaNight=="string"?i.alphaNight=parseInt(t.alphaNight,10):typeof t.alphaNight=="number"?i.alphaNight=t.alphaNight:typeof t.alphaNight=="object"&&(i.alphaNight=new r.LongBits(t.alphaNight.low>>>0,t.alphaNight.high>>>0).toNumber())),t.fontColor!=null&&(i.fontColor=String(t.fontColor)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.text="",n.animationUrl="",n.animationUrlHash="",n.backgroundColorLight="",n.backgroundColorNight="",r.Long){let o=new r.Long(0,0,!1);n.alphaLight=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.alphaLight=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.alphaNight=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.alphaNight=i.longs===String?"0":0;n.fontColor=""}return t.text!=null&&t.hasOwnProperty("text")&&(n.text=t.text),t.animationUrl!=null&&t.hasOwnProperty("animationUrl")&&(n.animationUrl=t.animationUrl),t.animationUrlHash!=null&&t.hasOwnProperty("animationUrlHash")&&(n.animationUrlHash=t.animationUrlHash),t.backgroundColorLight!=null&&t.hasOwnProperty("backgroundColorLight")&&(n.backgroundColorLight=t.backgroundColorLight),t.backgroundColorNight!=null&&t.hasOwnProperty("backgroundColorNight")&&(n.backgroundColorNight=t.backgroundColorNight),t.alphaLight!=null&&t.hasOwnProperty("alphaLight")&&(typeof t.alphaLight=="number"?n.alphaLight=i.longs===String?String(t.alphaLight):t.alphaLight:n.alphaLight=i.longs===String?r.Long.prototype.toString.call(t.alphaLight):i.longs===Number?new r.LongBits(t.alphaLight.low>>>0,t.alphaLight.high>>>0).toNumber():t.alphaLight),t.alphaNight!=null&&t.hasOwnProperty("alphaNight")&&(typeof t.alphaNight=="number"?n.alphaNight=i.longs===String?String(t.alphaNight):t.alphaNight:n.alphaNight=i.longs===String?r.Long.prototype.toString.call(t.alphaNight):i.longs===Number?new r.LongBits(t.alphaNight.low>>>0,t.alphaNight.high>>>0).toNumber():t.alphaNight),t.fontColor!=null&&t.hasOwnProperty("fontColor")&&(n.fontColor=t.fontColor),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.topic.v1.LiveBadgeResource"},e}(),c.User=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.uid=t.int64();break}case 2:{o.face=t.string();break}case 3:{o.name=t.string();break}case 4:{o.nameDesc=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.topic.v1.User)return t;let i=new u.bilibili.app.topic.v1.User;return t.uid!=null&&(r.Long?(i.uid=r.Long.fromValue(t.uid)).unsigned=!1:typeof t.uid=="string"?i.uid=parseInt(t.uid,10):typeof t.uid=="number"?i.uid=t.uid:typeof t.uid=="object"&&(i.uid=new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber())),t.face!=null&&(i.face=String(t.face)),t.name!=null&&(i.name=String(t.name)),t.nameDesc!=null&&(i.nameDesc=String(t.nameDesc)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.uid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.uid=i.longs===String?"0":0;n.face="",n.name="",n.nameDesc=""}return t.uid!=null&&t.hasOwnProperty("uid")&&(typeof t.uid=="number"?n.uid=i.longs===String?String(t.uid):t.uid:n.uid=i.longs===String?r.Long.prototype.toString.call(t.uid):i.longs===Number?new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber():t.uid),t.face!=null&&t.hasOwnProperty("face")&&(n.face=t.face),t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),t.nameDesc!=null&&t.hasOwnProperty("nameDesc")&&(n.nameDesc=t.nameDesc),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.topic.v1.User"},e}(),c.TopicActivities=function(){function e(l){if(this.activity=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.activity&&o.activity.length||(o.activity=[]),o.activity.push(u.bilibili.app.topic.v1.TopicActivity.decode(t,t.uint32()));break}case 2:{o.actListTitle=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.topic.v1.TopicActivities)return t;let i=new u.bilibili.app.topic.v1.TopicActivities;if(t.activity){if(!Array.isArray(t.activity))throw TypeError(".bilibili.app.topic.v1.TopicActivities.activity: array expected");i.activity=[];for(let n=0;n>>3){case 1:{o.topicCardItems&&o.topicCardItems.length||(o.topicCardItems=[]),o.topicCardItems.push(u.bilibili.app.topic.v1.TopicCardItem.decode(t,t.uint32()));break}case 2:{o.offset=t.string();break}case 3:{o.hasMore=t.bool();break}case 4:{o.topicSortByConf=u.bilibili.app.topic.v1.TopicSortByConf.decode(t,t.uint32());break}case 5:{o.noCardResultReply=u.bilibili.app.topic.v1.NoCardResultReply.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.topic.v1.TopicCardList)return t;let i=new u.bilibili.app.topic.v1.TopicCardList;if(t.topicCardItems){if(!Array.isArray(t.topicCardItems))throw TypeError(".bilibili.app.topic.v1.TopicCardList.topicCardItems: array expected");i.topicCardItems=[];for(let n=0;n>>3){case 1:{o.defaultGuideText=t.string();break}case 2:{o.showButton=u.bilibili.app.topic.v1.ShowButton.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.topic.v1.NoCardResultReply)return t;let i=new u.bilibili.app.topic.v1.NoCardResultReply;if(t.defaultGuideText!=null&&(i.defaultGuideText=String(t.defaultGuideText)),t.showButton!=null){if(typeof t.showButton!="object")throw TypeError(".bilibili.app.topic.v1.NoCardResultReply.showButton: object expected");i.showButton=u.bilibili.app.topic.v1.ShowButton.fromObject(t.showButton)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.defaultGuideText="",n.showButton=null),t.defaultGuideText!=null&&t.hasOwnProperty("defaultGuideText")&&(n.defaultGuideText=t.defaultGuideText),t.showButton!=null&&t.hasOwnProperty("showButton")&&(n.showButton=u.bilibili.app.topic.v1.ShowButton.toObject(t.showButton,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.topic.v1.NoCardResultReply"},e}(),c.ShowButton=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.showText=t.string();break}case 2:{o.jumpUrl=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.topic.v1.ShowButton)return t;let i=new u.bilibili.app.topic.v1.ShowButton;return t.showText!=null&&(i.showText=String(t.showText)),t.jumpUrl!=null&&(i.jumpUrl=String(t.jumpUrl)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.showText="",n.jumpUrl=""),t.showText!=null&&t.hasOwnProperty("showText")&&(n.showText=t.showText),t.jumpUrl!=null&&t.hasOwnProperty("jumpUrl")&&(n.jumpUrl=t.jumpUrl),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.topic.v1.ShowButton"},e}(),c.TopicCardItem=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.type=t.int32();break}case 2:{o.dynamicItem=u.bilibili.app.dynamic.v2.DynamicItem.decode(t,t.uint32());break}case 3:{o.fordCardItem=u.bilibili.app.topic.v1.FoldCardItem.decode(t,t.uint32());break}case 4:{o.videoSmallCardItem=u.bilibili.app.topic.v1.VideoSmallCardItem.decode(t,t.uint32());break}case 5:{o.feedCard=u.bilibili.app.topic.v1.FeedCard.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.topic.v1.TopicCardItem)return t;let i=new u.bilibili.app.topic.v1.TopicCardItem;switch(t.type){default:if(typeof t.type=="number"){i.type=t.type;break}break;case"ILLEGAL_TYPE":case 0:i.type=0;break;case"DYNAMIC":case 1:i.type=1;break;case"FOLD":case 2:i.type=2;break;case"VIDEO_SMALL_CARD":case 3:i.type=3;break;case"FEED_CARD":case 4:i.type=4;break}if(t.dynamicItem!=null){if(typeof t.dynamicItem!="object")throw TypeError(".bilibili.app.topic.v1.TopicCardItem.dynamicItem: object expected");i.dynamicItem=u.bilibili.app.dynamic.v2.DynamicItem.fromObject(t.dynamicItem)}if(t.fordCardItem!=null){if(typeof t.fordCardItem!="object")throw TypeError(".bilibili.app.topic.v1.TopicCardItem.fordCardItem: object expected");i.fordCardItem=u.bilibili.app.topic.v1.FoldCardItem.fromObject(t.fordCardItem)}if(t.videoSmallCardItem!=null){if(typeof t.videoSmallCardItem!="object")throw TypeError(".bilibili.app.topic.v1.TopicCardItem.videoSmallCardItem: object expected");i.videoSmallCardItem=u.bilibili.app.topic.v1.VideoSmallCardItem.fromObject(t.videoSmallCardItem)}if(t.feedCard!=null){if(typeof t.feedCard!="object")throw TypeError(".bilibili.app.topic.v1.TopicCardItem.feedCard: object expected");i.feedCard=u.bilibili.app.topic.v1.FeedCard.fromObject(t.feedCard)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.type=i.enums===String?"ILLEGAL_TYPE":0,n.dynamicItem=null,n.fordCardItem=null,n.videoSmallCardItem=null,n.feedCard=null),t.type!=null&&t.hasOwnProperty("type")&&(n.type=i.enums===String?u.bilibili.app.topic.v1.TopicCardType[t.type]===void 0?t.type:u.bilibili.app.topic.v1.TopicCardType[t.type]:t.type),t.dynamicItem!=null&&t.hasOwnProperty("dynamicItem")&&(n.dynamicItem=u.bilibili.app.dynamic.v2.DynamicItem.toObject(t.dynamicItem,i)),t.fordCardItem!=null&&t.hasOwnProperty("fordCardItem")&&(n.fordCardItem=u.bilibili.app.topic.v1.FoldCardItem.toObject(t.fordCardItem,i)),t.videoSmallCardItem!=null&&t.hasOwnProperty("videoSmallCardItem")&&(n.videoSmallCardItem=u.bilibili.app.topic.v1.VideoSmallCardItem.toObject(t.videoSmallCardItem,i)),t.feedCard!=null&&t.hasOwnProperty("feedCard")&&(n.feedCard=u.bilibili.app.topic.v1.FeedCard.toObject(t.feedCard,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.topic.v1.TopicCardItem"},e}(),c.TopicCardType=function(){let e={},l=Object.create(e);return l[e[0]="ILLEGAL_TYPE"]=0,l[e[1]="DYNAMIC"]=1,l[e[2]="FOLD"]=2,l[e[3]="VIDEO_SMALL_CARD"]=3,l[e[4]="FEED_CARD"]=4,l}(),c.VideoSmallCardItem=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.videoCardBase=u.bilibili.app.topic.v1.VideoCardBase.decode(t,t.uint32());break}case 2:{o.coverLeftBadgeText=t.string();break}case 3:{o.cardStatIcon_1=t.int64();break}case 4:{o.cardStatText_1=t.string();break}case 5:{o.cardStatIcon_2=t.int64();break}case 6:{o.cardStatText_2=t.string();break}case 7:{o.serverInfo=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.topic.v1.VideoSmallCardItem)return t;let i=new u.bilibili.app.topic.v1.VideoSmallCardItem;if(t.videoCardBase!=null){if(typeof t.videoCardBase!="object")throw TypeError(".bilibili.app.topic.v1.VideoSmallCardItem.videoCardBase: object expected");i.videoCardBase=u.bilibili.app.topic.v1.VideoCardBase.fromObject(t.videoCardBase)}return t.coverLeftBadgeText!=null&&(i.coverLeftBadgeText=String(t.coverLeftBadgeText)),t.cardStatIcon_1!=null&&(r.Long?(i.cardStatIcon_1=r.Long.fromValue(t.cardStatIcon_1)).unsigned=!1:typeof t.cardStatIcon_1=="string"?i.cardStatIcon_1=parseInt(t.cardStatIcon_1,10):typeof t.cardStatIcon_1=="number"?i.cardStatIcon_1=t.cardStatIcon_1:typeof t.cardStatIcon_1=="object"&&(i.cardStatIcon_1=new r.LongBits(t.cardStatIcon_1.low>>>0,t.cardStatIcon_1.high>>>0).toNumber())),t.cardStatText_1!=null&&(i.cardStatText_1=String(t.cardStatText_1)),t.cardStatIcon_2!=null&&(r.Long?(i.cardStatIcon_2=r.Long.fromValue(t.cardStatIcon_2)).unsigned=!1:typeof t.cardStatIcon_2=="string"?i.cardStatIcon_2=parseInt(t.cardStatIcon_2,10):typeof t.cardStatIcon_2=="number"?i.cardStatIcon_2=t.cardStatIcon_2:typeof t.cardStatIcon_2=="object"&&(i.cardStatIcon_2=new r.LongBits(t.cardStatIcon_2.low>>>0,t.cardStatIcon_2.high>>>0).toNumber())),t.cardStatText_2!=null&&(i.cardStatText_2=String(t.cardStatText_2)),t.serverInfo!=null&&(i.serverInfo=String(t.serverInfo)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.videoCardBase=null,n.coverLeftBadgeText="",r.Long){let o=new r.Long(0,0,!1);n.cardStatIcon_1=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.cardStatIcon_1=i.longs===String?"0":0;if(n.cardStatText_1="",r.Long){let o=new r.Long(0,0,!1);n.cardStatIcon_2=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.cardStatIcon_2=i.longs===String?"0":0;n.cardStatText_2="",n.serverInfo=""}return t.videoCardBase!=null&&t.hasOwnProperty("videoCardBase")&&(n.videoCardBase=u.bilibili.app.topic.v1.VideoCardBase.toObject(t.videoCardBase,i)),t.coverLeftBadgeText!=null&&t.hasOwnProperty("coverLeftBadgeText")&&(n.coverLeftBadgeText=t.coverLeftBadgeText),t.cardStatIcon_1!=null&&t.hasOwnProperty("cardStatIcon_1")&&(typeof t.cardStatIcon_1=="number"?n.cardStatIcon_1=i.longs===String?String(t.cardStatIcon_1):t.cardStatIcon_1:n.cardStatIcon_1=i.longs===String?r.Long.prototype.toString.call(t.cardStatIcon_1):i.longs===Number?new r.LongBits(t.cardStatIcon_1.low>>>0,t.cardStatIcon_1.high>>>0).toNumber():t.cardStatIcon_1),t.cardStatText_1!=null&&t.hasOwnProperty("cardStatText_1")&&(n.cardStatText_1=t.cardStatText_1),t.cardStatIcon_2!=null&&t.hasOwnProperty("cardStatIcon_2")&&(typeof t.cardStatIcon_2=="number"?n.cardStatIcon_2=i.longs===String?String(t.cardStatIcon_2):t.cardStatIcon_2:n.cardStatIcon_2=i.longs===String?r.Long.prototype.toString.call(t.cardStatIcon_2):i.longs===Number?new r.LongBits(t.cardStatIcon_2.low>>>0,t.cardStatIcon_2.high>>>0).toNumber():t.cardStatIcon_2),t.cardStatText_2!=null&&t.hasOwnProperty("cardStatText_2")&&(n.cardStatText_2=t.cardStatText_2),t.serverInfo!=null&&t.hasOwnProperty("serverInfo")&&(n.serverInfo=t.serverInfo),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.topic.v1.VideoSmallCardItem"},e}(),c.VideoCardBase=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.cover=t.string();break}case 2:{o.title=t.string();break}case 3:{o.upName=t.string();break}case 4:{o.play=t.int64();break}case 5:{o.jumpLink=t.string();break}case 6:{o.aid=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.topic.v1.VideoCardBase)return t;let i=new u.bilibili.app.topic.v1.VideoCardBase;return t.cover!=null&&(i.cover=String(t.cover)),t.title!=null&&(i.title=String(t.title)),t.upName!=null&&(i.upName=String(t.upName)),t.play!=null&&(r.Long?(i.play=r.Long.fromValue(t.play)).unsigned=!1:typeof t.play=="string"?i.play=parseInt(t.play,10):typeof t.play=="number"?i.play=t.play:typeof t.play=="object"&&(i.play=new r.LongBits(t.play.low>>>0,t.play.high>>>0).toNumber())),t.jumpLink!=null&&(i.jumpLink=String(t.jumpLink)),t.aid!=null&&(r.Long?(i.aid=r.Long.fromValue(t.aid)).unsigned=!1:typeof t.aid=="string"?i.aid=parseInt(t.aid,10):typeof t.aid=="number"?i.aid=t.aid:typeof t.aid=="object"&&(i.aid=new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.cover="",n.title="",n.upName="",r.Long){let o=new r.Long(0,0,!1);n.play=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.play=i.longs===String?"0":0;if(n.jumpLink="",r.Long){let o=new r.Long(0,0,!1);n.aid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.aid=i.longs===String?"0":0}return t.cover!=null&&t.hasOwnProperty("cover")&&(n.cover=t.cover),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.upName!=null&&t.hasOwnProperty("upName")&&(n.upName=t.upName),t.play!=null&&t.hasOwnProperty("play")&&(typeof t.play=="number"?n.play=i.longs===String?String(t.play):t.play:n.play=i.longs===String?r.Long.prototype.toString.call(t.play):i.longs===Number?new r.LongBits(t.play.low>>>0,t.play.high>>>0).toNumber():t.play),t.jumpLink!=null&&t.hasOwnProperty("jumpLink")&&(n.jumpLink=t.jumpLink),t.aid!=null&&t.hasOwnProperty("aid")&&(typeof t.aid=="number"?n.aid=i.longs===String?String(t.aid):t.aid:n.aid=i.longs===String?r.Long.prototype.toString.call(t.aid):i.longs===Number?new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber():t.aid),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.topic.v1.VideoCardBase"},e}(),c.FoldCardItem=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.isShowFold=t.int32();break}case 2:{o.foldCount=t.int64();break}case 3:{o.cardShowDesc=t.string();break}case 4:{o.foldDesc=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.topic.v1.FoldCardItem)return t;let i=new u.bilibili.app.topic.v1.FoldCardItem;return t.isShowFold!=null&&(i.isShowFold=t.isShowFold|0),t.foldCount!=null&&(r.Long?(i.foldCount=r.Long.fromValue(t.foldCount)).unsigned=!1:typeof t.foldCount=="string"?i.foldCount=parseInt(t.foldCount,10):typeof t.foldCount=="number"?i.foldCount=t.foldCount:typeof t.foldCount=="object"&&(i.foldCount=new r.LongBits(t.foldCount.low>>>0,t.foldCount.high>>>0).toNumber())),t.cardShowDesc!=null&&(i.cardShowDesc=String(t.cardShowDesc)),t.foldDesc!=null&&(i.foldDesc=String(t.foldDesc)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.isShowFold=0,r.Long){let o=new r.Long(0,0,!1);n.foldCount=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.foldCount=i.longs===String?"0":0;n.cardShowDesc="",n.foldDesc=""}return t.isShowFold!=null&&t.hasOwnProperty("isShowFold")&&(n.isShowFold=t.isShowFold),t.foldCount!=null&&t.hasOwnProperty("foldCount")&&(typeof t.foldCount=="number"?n.foldCount=i.longs===String?String(t.foldCount):t.foldCount:n.foldCount=i.longs===String?r.Long.prototype.toString.call(t.foldCount):i.longs===Number?new r.LongBits(t.foldCount.low>>>0,t.foldCount.high>>>0).toNumber():t.foldCount),t.cardShowDesc!=null&&t.hasOwnProperty("cardShowDesc")&&(n.cardShowDesc=t.cardShowDesc),t.foldDesc!=null&&t.hasOwnProperty("foldDesc")&&(n.foldDesc=t.foldDesc),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.topic.v1.FoldCardItem"},e}(),c.TopicDetailsFoldReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.topicId=t.int64();break}case 2:{o.offset=t.string();break}case 3:{o.pageSize=t.int32();break}case 4:{o.localTime=t.int32();break}case 5:{o.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.decode(t,t.uint32());break}case 6:{o.fromSortBy=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.topic.v1.TopicDetailsFoldReq)return t;let i=new u.bilibili.app.topic.v1.TopicDetailsFoldReq;if(t.topicId!=null&&(r.Long?(i.topicId=r.Long.fromValue(t.topicId)).unsigned=!1:typeof t.topicId=="string"?i.topicId=parseInt(t.topicId,10):typeof t.topicId=="number"?i.topicId=t.topicId:typeof t.topicId=="object"&&(i.topicId=new r.LongBits(t.topicId.low>>>0,t.topicId.high>>>0).toNumber())),t.offset!=null&&(i.offset=String(t.offset)),t.pageSize!=null&&(i.pageSize=t.pageSize|0),t.localTime!=null&&(i.localTime=t.localTime|0),t.playerArgs!=null){if(typeof t.playerArgs!="object")throw TypeError(".bilibili.app.topic.v1.TopicDetailsFoldReq.playerArgs: object expected");i.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.fromObject(t.playerArgs)}return t.fromSortBy!=null&&(r.Long?(i.fromSortBy=r.Long.fromValue(t.fromSortBy)).unsigned=!1:typeof t.fromSortBy=="string"?i.fromSortBy=parseInt(t.fromSortBy,10):typeof t.fromSortBy=="number"?i.fromSortBy=t.fromSortBy:typeof t.fromSortBy=="object"&&(i.fromSortBy=new r.LongBits(t.fromSortBy.low>>>0,t.fromSortBy.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.topicId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.topicId=i.longs===String?"0":0;if(n.offset="",n.pageSize=0,n.localTime=0,n.playerArgs=null,r.Long){let o=new r.Long(0,0,!1);n.fromSortBy=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.fromSortBy=i.longs===String?"0":0}return t.topicId!=null&&t.hasOwnProperty("topicId")&&(typeof t.topicId=="number"?n.topicId=i.longs===String?String(t.topicId):t.topicId:n.topicId=i.longs===String?r.Long.prototype.toString.call(t.topicId):i.longs===Number?new r.LongBits(t.topicId.low>>>0,t.topicId.high>>>0).toNumber():t.topicId),t.offset!=null&&t.hasOwnProperty("offset")&&(n.offset=t.offset),t.pageSize!=null&&t.hasOwnProperty("pageSize")&&(n.pageSize=t.pageSize),t.localTime!=null&&t.hasOwnProperty("localTime")&&(n.localTime=t.localTime),t.playerArgs!=null&&t.hasOwnProperty("playerArgs")&&(n.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.toObject(t.playerArgs,i)),t.fromSortBy!=null&&t.hasOwnProperty("fromSortBy")&&(typeof t.fromSortBy=="number"?n.fromSortBy=i.longs===String?String(t.fromSortBy):t.fromSortBy:n.fromSortBy=i.longs===String?r.Long.prototype.toString.call(t.fromSortBy):i.longs===Number?new r.LongBits(t.fromSortBy.low>>>0,t.fromSortBy.high>>>0).toNumber():t.fromSortBy),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.topic.v1.TopicDetailsFoldReq"},e}(),c.TopicDetailsFoldReply=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.topicCardList=u.bilibili.app.topic.v1.TopicCardList.decode(t,t.uint32());break}case 2:{o.foldCount=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.topic.v1.TopicDetailsFoldReply)return t;let i=new u.bilibili.app.topic.v1.TopicDetailsFoldReply;if(t.topicCardList!=null){if(typeof t.topicCardList!="object")throw TypeError(".bilibili.app.topic.v1.TopicDetailsFoldReply.topicCardList: object expected");i.topicCardList=u.bilibili.app.topic.v1.TopicCardList.fromObject(t.topicCardList)}return t.foldCount!=null&&(r.Long?(i.foldCount=r.Long.fromValue(t.foldCount)).unsigned=!1:typeof t.foldCount=="string"?i.foldCount=parseInt(t.foldCount,10):typeof t.foldCount=="number"?i.foldCount=t.foldCount:typeof t.foldCount=="object"&&(i.foldCount=new r.LongBits(t.foldCount.low>>>0,t.foldCount.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(n.topicCardList=null,r.Long){let o=new r.Long(0,0,!1);n.foldCount=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.foldCount=i.longs===String?"0":0;return t.topicCardList!=null&&t.hasOwnProperty("topicCardList")&&(n.topicCardList=u.bilibili.app.topic.v1.TopicCardList.toObject(t.topicCardList,i)),t.foldCount!=null&&t.hasOwnProperty("foldCount")&&(typeof t.foldCount=="number"?n.foldCount=i.longs===String?String(t.foldCount):t.foldCount:n.foldCount=i.longs===String?r.Long.prototype.toString.call(t.foldCount):i.longs===Number?new r.LongBits(t.foldCount.low>>>0,t.foldCount.high>>>0).toNumber():t.foldCount),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.topic.v1.TopicDetailsFoldReply"},e}(),c.TopicInfo=function(){function e(l){if(this.categoryMap={},this.topicCategories=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.id=t.int64();break}case 2:{o.name=t.string();break}case 3:{o.uid=t.int64();break}case 4:{o.view=t.int64();break}case 5:{o.discuss=t.int64();break}case 6:{o.fav=t.int64();break}case 7:{o.dynamics=t.int64();break}case 8:{o.state=t.int32();break}case 9:{o.jumpUrl=t.string();break}case 10:{o.backcolor=t.string();break}case 11:{o.isFav=t.bool();break}case 12:{o.description=t.string();break}case 13:{o.createSource=t.int32();break}case 14:{o.sharePic=t.string();break}case 15:{o.share=t.int64();break}case 16:{o.like=t.int64();break}case 17:{o.shareUrl=t.string();break}case 18:{o.isLike=t.bool();break}case 19:{o.type=t.int32();break}case 20:{o.statsDesc=t.string();break}case 21:{o.fixedTopicIcon=t.string();break}case 22:{o.categories=t.int64();break}case 23:{o.categoryMap===r.emptyObject&&(o.categoryMap={});let v=t.uint32()+t.pos;for(a=0,y=!1;t.pos>>3){case 1:a=t.int32();break;case 2:y=t.bool();break;default:t.skipType(g&7);break}}o.categoryMap[a]=y;break}case 24:{o.topicCategories&&o.topicCategories.length||(o.topicCategories=[]),o.topicCategories.push(t.string());break}case 25:{o.isBusiness=t.bool();break}default:t.skipType(s&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.topic.v1.TopicInfo)return t;let i=new u.bilibili.app.topic.v1.TopicInfo;if(t.id!=null&&(r.Long?(i.id=r.Long.fromValue(t.id)).unsigned=!1:typeof t.id=="string"?i.id=parseInt(t.id,10):typeof t.id=="number"?i.id=t.id:typeof t.id=="object"&&(i.id=new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber())),t.name!=null&&(i.name=String(t.name)),t.uid!=null&&(r.Long?(i.uid=r.Long.fromValue(t.uid)).unsigned=!1:typeof t.uid=="string"?i.uid=parseInt(t.uid,10):typeof t.uid=="number"?i.uid=t.uid:typeof t.uid=="object"&&(i.uid=new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber())),t.view!=null&&(r.Long?(i.view=r.Long.fromValue(t.view)).unsigned=!1:typeof t.view=="string"?i.view=parseInt(t.view,10):typeof t.view=="number"?i.view=t.view:typeof t.view=="object"&&(i.view=new r.LongBits(t.view.low>>>0,t.view.high>>>0).toNumber())),t.discuss!=null&&(r.Long?(i.discuss=r.Long.fromValue(t.discuss)).unsigned=!1:typeof t.discuss=="string"?i.discuss=parseInt(t.discuss,10):typeof t.discuss=="number"?i.discuss=t.discuss:typeof t.discuss=="object"&&(i.discuss=new r.LongBits(t.discuss.low>>>0,t.discuss.high>>>0).toNumber())),t.fav!=null&&(r.Long?(i.fav=r.Long.fromValue(t.fav)).unsigned=!1:typeof t.fav=="string"?i.fav=parseInt(t.fav,10):typeof t.fav=="number"?i.fav=t.fav:typeof t.fav=="object"&&(i.fav=new r.LongBits(t.fav.low>>>0,t.fav.high>>>0).toNumber())),t.dynamics!=null&&(r.Long?(i.dynamics=r.Long.fromValue(t.dynamics)).unsigned=!1:typeof t.dynamics=="string"?i.dynamics=parseInt(t.dynamics,10):typeof t.dynamics=="number"?i.dynamics=t.dynamics:typeof t.dynamics=="object"&&(i.dynamics=new r.LongBits(t.dynamics.low>>>0,t.dynamics.high>>>0).toNumber())),t.state!=null&&(i.state=t.state|0),t.jumpUrl!=null&&(i.jumpUrl=String(t.jumpUrl)),t.backcolor!=null&&(i.backcolor=String(t.backcolor)),t.isFav!=null&&(i.isFav=!!t.isFav),t.description!=null&&(i.description=String(t.description)),t.createSource!=null&&(i.createSource=t.createSource|0),t.sharePic!=null&&(i.sharePic=String(t.sharePic)),t.share!=null&&(r.Long?(i.share=r.Long.fromValue(t.share)).unsigned=!1:typeof t.share=="string"?i.share=parseInt(t.share,10):typeof t.share=="number"?i.share=t.share:typeof t.share=="object"&&(i.share=new r.LongBits(t.share.low>>>0,t.share.high>>>0).toNumber())),t.like!=null&&(r.Long?(i.like=r.Long.fromValue(t.like)).unsigned=!1:typeof t.like=="string"?i.like=parseInt(t.like,10):typeof t.like=="number"?i.like=t.like:typeof t.like=="object"&&(i.like=new r.LongBits(t.like.low>>>0,t.like.high>>>0).toNumber())),t.shareUrl!=null&&(i.shareUrl=String(t.shareUrl)),t.isLike!=null&&(i.isLike=!!t.isLike),t.type!=null&&(i.type=t.type|0),t.statsDesc!=null&&(i.statsDesc=String(t.statsDesc)),t.fixedTopicIcon!=null&&(i.fixedTopicIcon=String(t.fixedTopicIcon)),t.categories!=null&&(r.Long?(i.categories=r.Long.fromValue(t.categories)).unsigned=!1:typeof t.categories=="string"?i.categories=parseInt(t.categories,10):typeof t.categories=="number"?i.categories=t.categories:typeof t.categories=="object"&&(i.categories=new r.LongBits(t.categories.low>>>0,t.categories.high>>>0).toNumber())),t.categoryMap){if(typeof t.categoryMap!="object")throw TypeError(".bilibili.app.topic.v1.TopicInfo.categoryMap: object expected");i.categoryMap={};for(let n=Object.keys(t.categoryMap),o=0;o>>0,t.id.high>>>0).toNumber():t.id),t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),t.uid!=null&&t.hasOwnProperty("uid")&&(typeof t.uid=="number"?n.uid=i.longs===String?String(t.uid):t.uid:n.uid=i.longs===String?r.Long.prototype.toString.call(t.uid):i.longs===Number?new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber():t.uid),t.view!=null&&t.hasOwnProperty("view")&&(typeof t.view=="number"?n.view=i.longs===String?String(t.view):t.view:n.view=i.longs===String?r.Long.prototype.toString.call(t.view):i.longs===Number?new r.LongBits(t.view.low>>>0,t.view.high>>>0).toNumber():t.view),t.discuss!=null&&t.hasOwnProperty("discuss")&&(typeof t.discuss=="number"?n.discuss=i.longs===String?String(t.discuss):t.discuss:n.discuss=i.longs===String?r.Long.prototype.toString.call(t.discuss):i.longs===Number?new r.LongBits(t.discuss.low>>>0,t.discuss.high>>>0).toNumber():t.discuss),t.fav!=null&&t.hasOwnProperty("fav")&&(typeof t.fav=="number"?n.fav=i.longs===String?String(t.fav):t.fav:n.fav=i.longs===String?r.Long.prototype.toString.call(t.fav):i.longs===Number?new r.LongBits(t.fav.low>>>0,t.fav.high>>>0).toNumber():t.fav),t.dynamics!=null&&t.hasOwnProperty("dynamics")&&(typeof t.dynamics=="number"?n.dynamics=i.longs===String?String(t.dynamics):t.dynamics:n.dynamics=i.longs===String?r.Long.prototype.toString.call(t.dynamics):i.longs===Number?new r.LongBits(t.dynamics.low>>>0,t.dynamics.high>>>0).toNumber():t.dynamics),t.state!=null&&t.hasOwnProperty("state")&&(n.state=t.state),t.jumpUrl!=null&&t.hasOwnProperty("jumpUrl")&&(n.jumpUrl=t.jumpUrl),t.backcolor!=null&&t.hasOwnProperty("backcolor")&&(n.backcolor=t.backcolor),t.isFav!=null&&t.hasOwnProperty("isFav")&&(n.isFav=t.isFav),t.description!=null&&t.hasOwnProperty("description")&&(n.description=t.description),t.createSource!=null&&t.hasOwnProperty("createSource")&&(n.createSource=t.createSource),t.sharePic!=null&&t.hasOwnProperty("sharePic")&&(n.sharePic=t.sharePic),t.share!=null&&t.hasOwnProperty("share")&&(typeof t.share=="number"?n.share=i.longs===String?String(t.share):t.share:n.share=i.longs===String?r.Long.prototype.toString.call(t.share):i.longs===Number?new r.LongBits(t.share.low>>>0,t.share.high>>>0).toNumber():t.share),t.like!=null&&t.hasOwnProperty("like")&&(typeof t.like=="number"?n.like=i.longs===String?String(t.like):t.like:n.like=i.longs===String?r.Long.prototype.toString.call(t.like):i.longs===Number?new r.LongBits(t.like.low>>>0,t.like.high>>>0).toNumber():t.like),t.shareUrl!=null&&t.hasOwnProperty("shareUrl")&&(n.shareUrl=t.shareUrl),t.isLike!=null&&t.hasOwnProperty("isLike")&&(n.isLike=t.isLike),t.type!=null&&t.hasOwnProperty("type")&&(n.type=t.type),t.statsDesc!=null&&t.hasOwnProperty("statsDesc")&&(n.statsDesc=t.statsDesc),t.fixedTopicIcon!=null&&t.hasOwnProperty("fixedTopicIcon")&&(n.fixedTopicIcon=t.fixedTopicIcon),t.categories!=null&&t.hasOwnProperty("categories")&&(typeof t.categories=="number"?n.categories=i.longs===String?String(t.categories):t.categories:n.categories=i.longs===String?r.Long.prototype.toString.call(t.categories):i.longs===Number?new r.LongBits(t.categories.low>>>0,t.categories.high>>>0).toNumber():t.categories);let o;if(t.categoryMap&&(o=Object.keys(t.categoryMap)).length){n.categoryMap={};for(let a=0;a>>3){case 1:{o.activityId=t.int64();break}case 2:{o.activityName=t.string();break}case 3:{o.jumpUrl=t.string();break}case 4:{o.iconUrl=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.topic.v1.TopicActivity)return t;let i=new u.bilibili.app.topic.v1.TopicActivity;return t.activityId!=null&&(r.Long?(i.activityId=r.Long.fromValue(t.activityId)).unsigned=!1:typeof t.activityId=="string"?i.activityId=parseInt(t.activityId,10):typeof t.activityId=="number"?i.activityId=t.activityId:typeof t.activityId=="object"&&(i.activityId=new r.LongBits(t.activityId.low>>>0,t.activityId.high>>>0).toNumber())),t.activityName!=null&&(i.activityName=String(t.activityName)),t.jumpUrl!=null&&(i.jumpUrl=String(t.jumpUrl)),t.iconUrl!=null&&(i.iconUrl=String(t.iconUrl)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.activityId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.activityId=i.longs===String?"0":0;n.activityName="",n.jumpUrl="",n.iconUrl=""}return t.activityId!=null&&t.hasOwnProperty("activityId")&&(typeof t.activityId=="number"?n.activityId=i.longs===String?String(t.activityId):t.activityId:n.activityId=i.longs===String?r.Long.prototype.toString.call(t.activityId):i.longs===Number?new r.LongBits(t.activityId.low>>>0,t.activityId.high>>>0).toNumber():t.activityId),t.activityName!=null&&t.hasOwnProperty("activityName")&&(n.activityName=t.activityName),t.jumpUrl!=null&&t.hasOwnProperty("jumpUrl")&&(n.jumpUrl=t.jumpUrl),t.iconUrl!=null&&t.hasOwnProperty("iconUrl")&&(n.iconUrl=t.iconUrl),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.topic.v1.TopicActivity"},e}(),c.TopicSortByConf=function(){function e(l){if(this.allSortBy=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.defaultSortBy=t.int64();break}case 2:{o.allSortBy&&o.allSortBy.length||(o.allSortBy=[]),o.allSortBy.push(u.bilibili.app.topic.v1.SortContent.decode(t,t.uint32()));break}case 3:{o.showSortBy=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.topic.v1.TopicSortByConf)return t;let i=new u.bilibili.app.topic.v1.TopicSortByConf;if(t.defaultSortBy!=null&&(r.Long?(i.defaultSortBy=r.Long.fromValue(t.defaultSortBy)).unsigned=!1:typeof t.defaultSortBy=="string"?i.defaultSortBy=parseInt(t.defaultSortBy,10):typeof t.defaultSortBy=="number"?i.defaultSortBy=t.defaultSortBy:typeof t.defaultSortBy=="object"&&(i.defaultSortBy=new r.LongBits(t.defaultSortBy.low>>>0,t.defaultSortBy.high>>>0).toNumber())),t.allSortBy){if(!Array.isArray(t.allSortBy))throw TypeError(".bilibili.app.topic.v1.TopicSortByConf.allSortBy: array expected");i.allSortBy=[];for(let n=0;n>>0,t.showSortBy.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if((i.arrays||i.defaults)&&(n.allSortBy=[]),i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.defaultSortBy=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.defaultSortBy=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.showSortBy=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.showSortBy=i.longs===String?"0":0}if(t.defaultSortBy!=null&&t.hasOwnProperty("defaultSortBy")&&(typeof t.defaultSortBy=="number"?n.defaultSortBy=i.longs===String?String(t.defaultSortBy):t.defaultSortBy:n.defaultSortBy=i.longs===String?r.Long.prototype.toString.call(t.defaultSortBy):i.longs===Number?new r.LongBits(t.defaultSortBy.low>>>0,t.defaultSortBy.high>>>0).toNumber():t.defaultSortBy),t.allSortBy&&t.allSortBy.length){n.allSortBy=[];for(let o=0;o>>0,t.showSortBy.high>>>0).toNumber():t.showSortBy),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.topic.v1.TopicSortByConf"},e}(),c.SortContent=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.sortBy=t.int64();break}case 2:{o.sortName=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.topic.v1.SortContent)return t;let i=new u.bilibili.app.topic.v1.SortContent;return t.sortBy!=null&&(r.Long?(i.sortBy=r.Long.fromValue(t.sortBy)).unsigned=!1:typeof t.sortBy=="string"?i.sortBy=parseInt(t.sortBy,10):typeof t.sortBy=="number"?i.sortBy=t.sortBy:typeof t.sortBy=="object"&&(i.sortBy=new r.LongBits(t.sortBy.low>>>0,t.sortBy.high>>>0).toNumber())),t.sortName!=null&&(i.sortName=String(t.sortName)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.sortBy=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.sortBy=i.longs===String?"0":0;n.sortName=""}return t.sortBy!=null&&t.hasOwnProperty("sortBy")&&(typeof t.sortBy=="number"?n.sortBy=i.longs===String?String(t.sortBy):t.sortBy:n.sortBy=i.longs===String?r.Long.prototype.toString.call(t.sortBy):i.longs===Number?new r.LongBits(t.sortBy.low>>>0,t.sortBy.high>>>0).toNumber():t.sortBy),t.sortName!=null&&t.hasOwnProperty("sortName")&&(n.sortName=t.sortName),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.topic.v1.SortContent"},e}(),c.TopicOnline=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.onlineNum=t.int64();break}case 2:{o.onlineText=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.topic.v1.TopicOnline)return t;let i=new u.bilibili.app.topic.v1.TopicOnline;return t.onlineNum!=null&&(r.Long?(i.onlineNum=r.Long.fromValue(t.onlineNum)).unsigned=!1:typeof t.onlineNum=="string"?i.onlineNum=parseInt(t.onlineNum,10):typeof t.onlineNum=="number"?i.onlineNum=t.onlineNum:typeof t.onlineNum=="object"&&(i.onlineNum=new r.LongBits(t.onlineNum.low>>>0,t.onlineNum.high>>>0).toNumber())),t.onlineText!=null&&(i.onlineText=String(t.onlineText)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.onlineNum=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.onlineNum=i.longs===String?"0":0;n.onlineText=""}return t.onlineNum!=null&&t.hasOwnProperty("onlineNum")&&(typeof t.onlineNum=="number"?n.onlineNum=i.longs===String?String(t.onlineNum):t.onlineNum:n.onlineNum=i.longs===String?r.Long.prototype.toString.call(t.onlineNum):i.longs===Number?new r.LongBits(t.onlineNum.low>>>0,t.onlineNum.high>>>0).toNumber():t.onlineNum),t.onlineText!=null&&t.hasOwnProperty("onlineText")&&(n.onlineText=t.onlineText),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.topic.v1.TopicOnline"},e}(),c.TopicTopCardType=function(){let e={},l=Object.create(e);return l[e[0]="Unknown_Type"]=0,l[e[1]="Capsules_Type"]=1,l[e[2]="Traffic_Card_Type"]=2,l[e[3]="Game_Card_Type"]=3,l[e[4]="Time_Line_Type"]=4,l[e[5]="Large_Cover_Inline_Type"]=5,l[e[6]="Reservation_Card_Type"]=6,l[e[7]="Esport_Card_Type"]=7,l[e[8]="IPTopic_Card_Type"]=8,l[e[9]="Head_Click_Area_Card_Type"]=9,l[e[10]="Item_Card_Type"]=10,l}(),c.TopicTopCard=function(){function e(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.type=i.int32();break}case 2:{a.capsules=u.bilibili.app.topic.v1.TopicCapsuleInfo.decode(i,i.uint32());break}case 3:{a.trafficCard=u.bilibili.app.topic.v1.TrafficCard.decode(i,i.uint32());break}case 4:{a.gameCard=u.bilibili.app.topic.v1.GameCard.decode(i,i.uint32());break}case 5:{a.timeLineResource=u.bilibili.app.topic.v1.TimeLineResource.decode(i,i.uint32());break}case 6:{a.largeCoverInline=u.bilibili.app.topic.v1.LargeCoverInline.decode(i,i.uint32());break}case 7:{a.reservationCard=u.bilibili.app.topic.v1.ReserveRelationInfo.decode(i,i.uint32());break}case 8:{a.esportCard=u.bilibili.app.topic.v1.EsportInfo.decode(i,i.uint32());break}case 11:{a.ipTopicCard=u.bilibili.app.topic.v1.IPTopicCard.decode(i,i.uint32());break}case 12:{a.headClickAreaCard=u.bilibili.app.topic.v1.HeadClickAreaCard.decode(i,i.uint32());break}case 13:{a.itemCard=u.bilibili.app.topic.v1.ItemCard.decode(i,i.uint32());break}case 9:{a.startTime=i.int64();break}case 10:{a.endTime=i.int64();break}default:i.skipType(y&7);break}}return a},e.fromObject=function(i){if(i instanceof u.bilibili.app.topic.v1.TopicTopCard)return i;let n=new u.bilibili.app.topic.v1.TopicTopCard;switch(i.type){default:if(typeof i.type=="number"){n.type=i.type;break}break;case"Unknown_Type":case 0:n.type=0;break;case"Capsules_Type":case 1:n.type=1;break;case"Traffic_Card_Type":case 2:n.type=2;break;case"Game_Card_Type":case 3:n.type=3;break;case"Time_Line_Type":case 4:n.type=4;break;case"Large_Cover_Inline_Type":case 5:n.type=5;break;case"Reservation_Card_Type":case 6:n.type=6;break;case"Esport_Card_Type":case 7:n.type=7;break;case"IPTopic_Card_Type":case 8:n.type=8;break;case"Head_Click_Area_Card_Type":case 9:n.type=9;break;case"Item_Card_Type":case 10:n.type=10;break}if(i.capsules!=null){if(typeof i.capsules!="object")throw TypeError(".bilibili.app.topic.v1.TopicTopCard.capsules: object expected");n.capsules=u.bilibili.app.topic.v1.TopicCapsuleInfo.fromObject(i.capsules)}if(i.trafficCard!=null){if(typeof i.trafficCard!="object")throw TypeError(".bilibili.app.topic.v1.TopicTopCard.trafficCard: object expected");n.trafficCard=u.bilibili.app.topic.v1.TrafficCard.fromObject(i.trafficCard)}if(i.gameCard!=null){if(typeof i.gameCard!="object")throw TypeError(".bilibili.app.topic.v1.TopicTopCard.gameCard: object expected");n.gameCard=u.bilibili.app.topic.v1.GameCard.fromObject(i.gameCard)}if(i.timeLineResource!=null){if(typeof i.timeLineResource!="object")throw TypeError(".bilibili.app.topic.v1.TopicTopCard.timeLineResource: object expected");n.timeLineResource=u.bilibili.app.topic.v1.TimeLineResource.fromObject(i.timeLineResource)}if(i.largeCoverInline!=null){if(typeof i.largeCoverInline!="object")throw TypeError(".bilibili.app.topic.v1.TopicTopCard.largeCoverInline: object expected");n.largeCoverInline=u.bilibili.app.topic.v1.LargeCoverInline.fromObject(i.largeCoverInline)}if(i.reservationCard!=null){if(typeof i.reservationCard!="object")throw TypeError(".bilibili.app.topic.v1.TopicTopCard.reservationCard: object expected");n.reservationCard=u.bilibili.app.topic.v1.ReserveRelationInfo.fromObject(i.reservationCard)}if(i.esportCard!=null){if(typeof i.esportCard!="object")throw TypeError(".bilibili.app.topic.v1.TopicTopCard.esportCard: object expected");n.esportCard=u.bilibili.app.topic.v1.EsportInfo.fromObject(i.esportCard)}if(i.ipTopicCard!=null){if(typeof i.ipTopicCard!="object")throw TypeError(".bilibili.app.topic.v1.TopicTopCard.ipTopicCard: object expected");n.ipTopicCard=u.bilibili.app.topic.v1.IPTopicCard.fromObject(i.ipTopicCard)}if(i.headClickAreaCard!=null){if(typeof i.headClickAreaCard!="object")throw TypeError(".bilibili.app.topic.v1.TopicTopCard.headClickAreaCard: object expected");n.headClickAreaCard=u.bilibili.app.topic.v1.HeadClickAreaCard.fromObject(i.headClickAreaCard)}if(i.itemCard!=null){if(typeof i.itemCard!="object")throw TypeError(".bilibili.app.topic.v1.TopicTopCard.itemCard: object expected");n.itemCard=u.bilibili.app.topic.v1.ItemCard.fromObject(i.itemCard)}return i.startTime!=null&&(r.Long?(n.startTime=r.Long.fromValue(i.startTime)).unsigned=!1:typeof i.startTime=="string"?n.startTime=parseInt(i.startTime,10):typeof i.startTime=="number"?n.startTime=i.startTime:typeof i.startTime=="object"&&(n.startTime=new r.LongBits(i.startTime.low>>>0,i.startTime.high>>>0).toNumber())),i.endTime!=null&&(r.Long?(n.endTime=r.Long.fromValue(i.endTime)).unsigned=!1:typeof i.endTime=="string"?n.endTime=parseInt(i.endTime,10):typeof i.endTime=="number"?n.endTime=i.endTime:typeof i.endTime=="object"&&(n.endTime=new r.LongBits(i.endTime.low>>>0,i.endTime.high>>>0).toNumber())),n},e.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(o.type=n.enums===String?"Unknown_Type":0,r.Long){let a=new r.Long(0,0,!1);o.startTime=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.startTime=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.endTime=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.endTime=n.longs===String?"0":0}return i.type!=null&&i.hasOwnProperty("type")&&(o.type=n.enums===String?u.bilibili.app.topic.v1.TopicTopCardType[i.type]===void 0?i.type:u.bilibili.app.topic.v1.TopicTopCardType[i.type]:i.type),i.capsules!=null&&i.hasOwnProperty("capsules")&&(o.capsules=u.bilibili.app.topic.v1.TopicCapsuleInfo.toObject(i.capsules,n),n.oneofs&&(o.cardItem="capsules")),i.trafficCard!=null&&i.hasOwnProperty("trafficCard")&&(o.trafficCard=u.bilibili.app.topic.v1.TrafficCard.toObject(i.trafficCard,n),n.oneofs&&(o.cardItem="trafficCard")),i.gameCard!=null&&i.hasOwnProperty("gameCard")&&(o.gameCard=u.bilibili.app.topic.v1.GameCard.toObject(i.gameCard,n),n.oneofs&&(o.cardItem="gameCard")),i.timeLineResource!=null&&i.hasOwnProperty("timeLineResource")&&(o.timeLineResource=u.bilibili.app.topic.v1.TimeLineResource.toObject(i.timeLineResource,n),n.oneofs&&(o.cardItem="timeLineResource")),i.largeCoverInline!=null&&i.hasOwnProperty("largeCoverInline")&&(o.largeCoverInline=u.bilibili.app.topic.v1.LargeCoverInline.toObject(i.largeCoverInline,n),n.oneofs&&(o.cardItem="largeCoverInline")),i.reservationCard!=null&&i.hasOwnProperty("reservationCard")&&(o.reservationCard=u.bilibili.app.topic.v1.ReserveRelationInfo.toObject(i.reservationCard,n),n.oneofs&&(o.cardItem="reservationCard")),i.esportCard!=null&&i.hasOwnProperty("esportCard")&&(o.esportCard=u.bilibili.app.topic.v1.EsportInfo.toObject(i.esportCard,n),n.oneofs&&(o.cardItem="esportCard")),i.startTime!=null&&i.hasOwnProperty("startTime")&&(typeof i.startTime=="number"?o.startTime=n.longs===String?String(i.startTime):i.startTime:o.startTime=n.longs===String?r.Long.prototype.toString.call(i.startTime):n.longs===Number?new r.LongBits(i.startTime.low>>>0,i.startTime.high>>>0).toNumber():i.startTime),i.endTime!=null&&i.hasOwnProperty("endTime")&&(typeof i.endTime=="number"?o.endTime=n.longs===String?String(i.endTime):i.endTime:o.endTime=n.longs===String?r.Long.prototype.toString.call(i.endTime):n.longs===Number?new r.LongBits(i.endTime.low>>>0,i.endTime.high>>>0).toNumber():i.endTime),i.ipTopicCard!=null&&i.hasOwnProperty("ipTopicCard")&&(o.ipTopicCard=u.bilibili.app.topic.v1.IPTopicCard.toObject(i.ipTopicCard,n),n.oneofs&&(o.cardItem="ipTopicCard")),i.headClickAreaCard!=null&&i.hasOwnProperty("headClickAreaCard")&&(o.headClickAreaCard=u.bilibili.app.topic.v1.HeadClickAreaCard.toObject(i.headClickAreaCard,n),n.oneofs&&(o.cardItem="headClickAreaCard")),i.itemCard!=null&&i.hasOwnProperty("itemCard")&&(o.itemCard=u.bilibili.app.topic.v1.ItemCard.toObject(i.itemCard,n),n.oneofs&&(o.cardItem="itemCard")),o},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.app.topic.v1.TopicTopCard"},e}(),c.TopicCapsuleInfo=function(){function e(l){if(this.capsules=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.capsules&&o.capsules.length||(o.capsules=[]),o.capsules.push(u.bilibili.app.topic.v1.TopicCapsule.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.topic.v1.TopicCapsuleInfo)return t;let i=new u.bilibili.app.topic.v1.TopicCapsuleInfo;if(t.capsules){if(!Array.isArray(t.capsules))throw TypeError(".bilibili.app.topic.v1.TopicCapsuleInfo.capsules: array expected");i.capsules=[];for(let n=0;n>>3){case 1:{o.sid=t.int64();break}case 2:{o.title=t.string();break}case 3:{o.total=t.int64();break}case 4:{o.stime=t.int64();break}case 5:{o.etime=t.int64();break}case 6:{o.isFollow=t.int64();break}case 7:{o.state=t.int32();break}case 8:{o.oid=t.string();break}case 9:{o.type=t.int32();break}case 10:{o.upmid=t.int64();break}case 11:{o.reserveRecordCtime=t.int64();break}case 12:{o.livePlanStartTime=t.int64();break}case 13:{o.timeDescText=t.string();break}case 14:{o.numberDescText=t.string();break}case 15:{o.startTime=t.int64();break}case 16:{o.endTime=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.topic.v1.ReserveRelationInfo)return t;let i=new u.bilibili.app.topic.v1.ReserveRelationInfo;return t.sid!=null&&(r.Long?(i.sid=r.Long.fromValue(t.sid)).unsigned=!1:typeof t.sid=="string"?i.sid=parseInt(t.sid,10):typeof t.sid=="number"?i.sid=t.sid:typeof t.sid=="object"&&(i.sid=new r.LongBits(t.sid.low>>>0,t.sid.high>>>0).toNumber())),t.title!=null&&(i.title=String(t.title)),t.total!=null&&(r.Long?(i.total=r.Long.fromValue(t.total)).unsigned=!1:typeof t.total=="string"?i.total=parseInt(t.total,10):typeof t.total=="number"?i.total=t.total:typeof t.total=="object"&&(i.total=new r.LongBits(t.total.low>>>0,t.total.high>>>0).toNumber())),t.stime!=null&&(r.Long?(i.stime=r.Long.fromValue(t.stime)).unsigned=!1:typeof t.stime=="string"?i.stime=parseInt(t.stime,10):typeof t.stime=="number"?i.stime=t.stime:typeof t.stime=="object"&&(i.stime=new r.LongBits(t.stime.low>>>0,t.stime.high>>>0).toNumber())),t.etime!=null&&(r.Long?(i.etime=r.Long.fromValue(t.etime)).unsigned=!1:typeof t.etime=="string"?i.etime=parseInt(t.etime,10):typeof t.etime=="number"?i.etime=t.etime:typeof t.etime=="object"&&(i.etime=new r.LongBits(t.etime.low>>>0,t.etime.high>>>0).toNumber())),t.isFollow!=null&&(r.Long?(i.isFollow=r.Long.fromValue(t.isFollow)).unsigned=!1:typeof t.isFollow=="string"?i.isFollow=parseInt(t.isFollow,10):typeof t.isFollow=="number"?i.isFollow=t.isFollow:typeof t.isFollow=="object"&&(i.isFollow=new r.LongBits(t.isFollow.low>>>0,t.isFollow.high>>>0).toNumber())),t.state!=null&&(i.state=t.state|0),t.oid!=null&&(i.oid=String(t.oid)),t.type!=null&&(i.type=t.type|0),t.upmid!=null&&(r.Long?(i.upmid=r.Long.fromValue(t.upmid)).unsigned=!1:typeof t.upmid=="string"?i.upmid=parseInt(t.upmid,10):typeof t.upmid=="number"?i.upmid=t.upmid:typeof t.upmid=="object"&&(i.upmid=new r.LongBits(t.upmid.low>>>0,t.upmid.high>>>0).toNumber())),t.reserveRecordCtime!=null&&(r.Long?(i.reserveRecordCtime=r.Long.fromValue(t.reserveRecordCtime)).unsigned=!1:typeof t.reserveRecordCtime=="string"?i.reserveRecordCtime=parseInt(t.reserveRecordCtime,10):typeof t.reserveRecordCtime=="number"?i.reserveRecordCtime=t.reserveRecordCtime:typeof t.reserveRecordCtime=="object"&&(i.reserveRecordCtime=new r.LongBits(t.reserveRecordCtime.low>>>0,t.reserveRecordCtime.high>>>0).toNumber())),t.livePlanStartTime!=null&&(r.Long?(i.livePlanStartTime=r.Long.fromValue(t.livePlanStartTime)).unsigned=!1:typeof t.livePlanStartTime=="string"?i.livePlanStartTime=parseInt(t.livePlanStartTime,10):typeof t.livePlanStartTime=="number"?i.livePlanStartTime=t.livePlanStartTime:typeof t.livePlanStartTime=="object"&&(i.livePlanStartTime=new r.LongBits(t.livePlanStartTime.low>>>0,t.livePlanStartTime.high>>>0).toNumber())),t.timeDescText!=null&&(i.timeDescText=String(t.timeDescText)),t.numberDescText!=null&&(i.numberDescText=String(t.numberDescText)),t.startTime!=null&&(r.Long?(i.startTime=r.Long.fromValue(t.startTime)).unsigned=!1:typeof t.startTime=="string"?i.startTime=parseInt(t.startTime,10):typeof t.startTime=="number"?i.startTime=t.startTime:typeof t.startTime=="object"&&(i.startTime=new r.LongBits(t.startTime.low>>>0,t.startTime.high>>>0).toNumber())),t.endTime!=null&&(r.Long?(i.endTime=r.Long.fromValue(t.endTime)).unsigned=!1:typeof t.endTime=="string"?i.endTime=parseInt(t.endTime,10):typeof t.endTime=="number"?i.endTime=t.endTime:typeof t.endTime=="object"&&(i.endTime=new r.LongBits(t.endTime.low>>>0,t.endTime.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.sid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.sid=i.longs===String?"0":0;if(n.title="",r.Long){let o=new r.Long(0,0,!1);n.total=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.total=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.stime=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.stime=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.etime=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.etime=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.isFollow=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.isFollow=i.longs===String?"0":0;if(n.state=0,n.oid="",n.type=0,r.Long){let o=new r.Long(0,0,!1);n.upmid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.upmid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.reserveRecordCtime=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.reserveRecordCtime=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.livePlanStartTime=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.livePlanStartTime=i.longs===String?"0":0;if(n.timeDescText="",n.numberDescText="",r.Long){let o=new r.Long(0,0,!1);n.startTime=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.startTime=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.endTime=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.endTime=i.longs===String?"0":0}return t.sid!=null&&t.hasOwnProperty("sid")&&(typeof t.sid=="number"?n.sid=i.longs===String?String(t.sid):t.sid:n.sid=i.longs===String?r.Long.prototype.toString.call(t.sid):i.longs===Number?new r.LongBits(t.sid.low>>>0,t.sid.high>>>0).toNumber():t.sid),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.total!=null&&t.hasOwnProperty("total")&&(typeof t.total=="number"?n.total=i.longs===String?String(t.total):t.total:n.total=i.longs===String?r.Long.prototype.toString.call(t.total):i.longs===Number?new r.LongBits(t.total.low>>>0,t.total.high>>>0).toNumber():t.total),t.stime!=null&&t.hasOwnProperty("stime")&&(typeof t.stime=="number"?n.stime=i.longs===String?String(t.stime):t.stime:n.stime=i.longs===String?r.Long.prototype.toString.call(t.stime):i.longs===Number?new r.LongBits(t.stime.low>>>0,t.stime.high>>>0).toNumber():t.stime),t.etime!=null&&t.hasOwnProperty("etime")&&(typeof t.etime=="number"?n.etime=i.longs===String?String(t.etime):t.etime:n.etime=i.longs===String?r.Long.prototype.toString.call(t.etime):i.longs===Number?new r.LongBits(t.etime.low>>>0,t.etime.high>>>0).toNumber():t.etime),t.isFollow!=null&&t.hasOwnProperty("isFollow")&&(typeof t.isFollow=="number"?n.isFollow=i.longs===String?String(t.isFollow):t.isFollow:n.isFollow=i.longs===String?r.Long.prototype.toString.call(t.isFollow):i.longs===Number?new r.LongBits(t.isFollow.low>>>0,t.isFollow.high>>>0).toNumber():t.isFollow),t.state!=null&&t.hasOwnProperty("state")&&(n.state=t.state),t.oid!=null&&t.hasOwnProperty("oid")&&(n.oid=t.oid),t.type!=null&&t.hasOwnProperty("type")&&(n.type=t.type),t.upmid!=null&&t.hasOwnProperty("upmid")&&(typeof t.upmid=="number"?n.upmid=i.longs===String?String(t.upmid):t.upmid:n.upmid=i.longs===String?r.Long.prototype.toString.call(t.upmid):i.longs===Number?new r.LongBits(t.upmid.low>>>0,t.upmid.high>>>0).toNumber():t.upmid),t.reserveRecordCtime!=null&&t.hasOwnProperty("reserveRecordCtime")&&(typeof t.reserveRecordCtime=="number"?n.reserveRecordCtime=i.longs===String?String(t.reserveRecordCtime):t.reserveRecordCtime:n.reserveRecordCtime=i.longs===String?r.Long.prototype.toString.call(t.reserveRecordCtime):i.longs===Number?new r.LongBits(t.reserveRecordCtime.low>>>0,t.reserveRecordCtime.high>>>0).toNumber():t.reserveRecordCtime),t.livePlanStartTime!=null&&t.hasOwnProperty("livePlanStartTime")&&(typeof t.livePlanStartTime=="number"?n.livePlanStartTime=i.longs===String?String(t.livePlanStartTime):t.livePlanStartTime:n.livePlanStartTime=i.longs===String?r.Long.prototype.toString.call(t.livePlanStartTime):i.longs===Number?new r.LongBits(t.livePlanStartTime.low>>>0,t.livePlanStartTime.high>>>0).toNumber():t.livePlanStartTime),t.timeDescText!=null&&t.hasOwnProperty("timeDescText")&&(n.timeDescText=t.timeDescText),t.numberDescText!=null&&t.hasOwnProperty("numberDescText")&&(n.numberDescText=t.numberDescText),t.startTime!=null&&t.hasOwnProperty("startTime")&&(typeof t.startTime=="number"?n.startTime=i.longs===String?String(t.startTime):t.startTime:n.startTime=i.longs===String?r.Long.prototype.toString.call(t.startTime):i.longs===Number?new r.LongBits(t.startTime.low>>>0,t.startTime.high>>>0).toNumber():t.startTime),t.endTime!=null&&t.hasOwnProperty("endTime")&&(typeof t.endTime=="number"?n.endTime=i.longs===String?String(t.endTime):t.endTime:n.endTime=i.longs===String?r.Long.prototype.toString.call(t.endTime):i.longs===Number?new r.LongBits(t.endTime.low>>>0,t.endTime.high>>>0).toNumber():t.endTime),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.topic.v1.ReserveRelationInfo"},e}(),c.EsportInfo=function(){function e(l){if(this.items=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.id=t.int64();break}case 2:{o.items&&o.items.length||(o.items=[]),o.items.push(u.bilibili.app.topic.v1.MatchInfo.decode(t,t.uint32()));break}case 3:{o.startTime=t.int64();break}case 4:{o.endTime=t.int64();break}case 5:{o.playerRating=u.bilibili.app.topic.v1.PlayerRatingInMatch.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.topic.v1.EsportInfo)return t;let i=new u.bilibili.app.topic.v1.EsportInfo;if(t.id!=null&&(r.Long?(i.id=r.Long.fromValue(t.id)).unsigned=!1:typeof t.id=="string"?i.id=parseInt(t.id,10):typeof t.id=="number"?i.id=t.id:typeof t.id=="object"&&(i.id=new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber())),t.items){if(!Array.isArray(t.items))throw TypeError(".bilibili.app.topic.v1.EsportInfo.items: array expected");i.items=[];for(let n=0;n>>0,t.startTime.high>>>0).toNumber())),t.endTime!=null&&(r.Long?(i.endTime=r.Long.fromValue(t.endTime)).unsigned=!1:typeof t.endTime=="string"?i.endTime=parseInt(t.endTime,10):typeof t.endTime=="number"?i.endTime=t.endTime:typeof t.endTime=="object"&&(i.endTime=new r.LongBits(t.endTime.low>>>0,t.endTime.high>>>0).toNumber())),t.playerRating!=null){if(typeof t.playerRating!="object")throw TypeError(".bilibili.app.topic.v1.EsportInfo.playerRating: object expected");i.playerRating=u.bilibili.app.topic.v1.PlayerRatingInMatch.fromObject(t.playerRating)}return i},e.toObject=function(t,i){i||(i={});let n={};if((i.arrays||i.defaults)&&(n.items=[]),i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.id=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.id=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.startTime=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.startTime=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.endTime=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.endTime=i.longs===String?"0":0;n.playerRating=null}if(t.id!=null&&t.hasOwnProperty("id")&&(typeof t.id=="number"?n.id=i.longs===String?String(t.id):t.id:n.id=i.longs===String?r.Long.prototype.toString.call(t.id):i.longs===Number?new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber():t.id),t.items&&t.items.length){n.items=[];for(let o=0;o>>0,t.startTime.high>>>0).toNumber():t.startTime),t.endTime!=null&&t.hasOwnProperty("endTime")&&(typeof t.endTime=="number"?n.endTime=i.longs===String?String(t.endTime):t.endTime:n.endTime=i.longs===String?r.Long.prototype.toString.call(t.endTime):i.longs===Number?new r.LongBits(t.endTime.low>>>0,t.endTime.high>>>0).toNumber():t.endTime),t.playerRating!=null&&t.hasOwnProperty("playerRating")&&(n.playerRating=u.bilibili.app.topic.v1.PlayerRatingInMatch.toObject(t.playerRating,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.topic.v1.EsportInfo"},e}(),c.PlayerRatingInMatch=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.playerFace=t.string();break}case 2:{o.playerName=t.string();break}case 3:{o.hotRemark=t.string();break}case 4:{o.rating=t.string();break}case 5:{o.jumpUri=t.string();break}case 6:{o.playerId=t.int64();break}case 7:{o.matchId=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.topic.v1.PlayerRatingInMatch)return t;let i=new u.bilibili.app.topic.v1.PlayerRatingInMatch;return t.playerFace!=null&&(i.playerFace=String(t.playerFace)),t.playerName!=null&&(i.playerName=String(t.playerName)),t.hotRemark!=null&&(i.hotRemark=String(t.hotRemark)),t.rating!=null&&(i.rating=String(t.rating)),t.jumpUri!=null&&(i.jumpUri=String(t.jumpUri)),t.playerId!=null&&(r.Long?(i.playerId=r.Long.fromValue(t.playerId)).unsigned=!1:typeof t.playerId=="string"?i.playerId=parseInt(t.playerId,10):typeof t.playerId=="number"?i.playerId=t.playerId:typeof t.playerId=="object"&&(i.playerId=new r.LongBits(t.playerId.low>>>0,t.playerId.high>>>0).toNumber())),t.matchId!=null&&(r.Long?(i.matchId=r.Long.fromValue(t.matchId)).unsigned=!1:typeof t.matchId=="string"?i.matchId=parseInt(t.matchId,10):typeof t.matchId=="number"?i.matchId=t.matchId:typeof t.matchId=="object"&&(i.matchId=new r.LongBits(t.matchId.low>>>0,t.matchId.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.playerFace="",n.playerName="",n.hotRemark="",n.rating="",n.jumpUri="",r.Long){let o=new r.Long(0,0,!1);n.playerId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.playerId=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.matchId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.matchId=i.longs===String?"0":0}return t.playerFace!=null&&t.hasOwnProperty("playerFace")&&(n.playerFace=t.playerFace),t.playerName!=null&&t.hasOwnProperty("playerName")&&(n.playerName=t.playerName),t.hotRemark!=null&&t.hasOwnProperty("hotRemark")&&(n.hotRemark=t.hotRemark),t.rating!=null&&t.hasOwnProperty("rating")&&(n.rating=t.rating),t.jumpUri!=null&&t.hasOwnProperty("jumpUri")&&(n.jumpUri=t.jumpUri),t.playerId!=null&&t.hasOwnProperty("playerId")&&(typeof t.playerId=="number"?n.playerId=i.longs===String?String(t.playerId):t.playerId:n.playerId=i.longs===String?r.Long.prototype.toString.call(t.playerId):i.longs===Number?new r.LongBits(t.playerId.low>>>0,t.playerId.high>>>0).toNumber():t.playerId),t.matchId!=null&&t.hasOwnProperty("matchId")&&(typeof t.matchId=="number"?n.matchId=i.longs===String?String(t.matchId):t.matchId:n.matchId=i.longs===String?r.Long.prototype.toString.call(t.matchId):i.longs===Number?new r.LongBits(t.matchId.low>>>0,t.matchId.high>>>0).toNumber():t.matchId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.topic.v1.PlayerRatingInMatch"},e}(),c.MatchInfo=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.id=t.int64();break}case 2:{o.status=t.int32();break}case 3:{o.matchStage=t.string();break}case 4:{o.home=u.bilibili.app.topic.v1.MatchTeamInfo.decode(t,t.uint32());break}case 5:{o.away=u.bilibili.app.topic.v1.MatchTeamInfo.decode(t,t.uint32());break}case 6:{o.matchLabel=u.bilibili.app.topic.v1.MatchCardDisplay.decode(t,t.uint32());break}case 7:{o.matchTime=u.bilibili.app.topic.v1.MatchCardDisplay.decode(t,t.uint32());break}case 8:{o.matchButton=u.bilibili.app.topic.v1.MatchCardDisplay.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.topic.v1.MatchInfo)return t;let i=new u.bilibili.app.topic.v1.MatchInfo;if(t.id!=null&&(r.Long?(i.id=r.Long.fromValue(t.id)).unsigned=!1:typeof t.id=="string"?i.id=parseInt(t.id,10):typeof t.id=="number"?i.id=t.id:typeof t.id=="object"&&(i.id=new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber())),t.status!=null&&(i.status=t.status|0),t.matchStage!=null&&(i.matchStage=String(t.matchStage)),t.home!=null){if(typeof t.home!="object")throw TypeError(".bilibili.app.topic.v1.MatchInfo.home: object expected");i.home=u.bilibili.app.topic.v1.MatchTeamInfo.fromObject(t.home)}if(t.away!=null){if(typeof t.away!="object")throw TypeError(".bilibili.app.topic.v1.MatchInfo.away: object expected");i.away=u.bilibili.app.topic.v1.MatchTeamInfo.fromObject(t.away)}if(t.matchLabel!=null){if(typeof t.matchLabel!="object")throw TypeError(".bilibili.app.topic.v1.MatchInfo.matchLabel: object expected");i.matchLabel=u.bilibili.app.topic.v1.MatchCardDisplay.fromObject(t.matchLabel)}if(t.matchTime!=null){if(typeof t.matchTime!="object")throw TypeError(".bilibili.app.topic.v1.MatchInfo.matchTime: object expected");i.matchTime=u.bilibili.app.topic.v1.MatchCardDisplay.fromObject(t.matchTime)}if(t.matchButton!=null){if(typeof t.matchButton!="object")throw TypeError(".bilibili.app.topic.v1.MatchInfo.matchButton: object expected");i.matchButton=u.bilibili.app.topic.v1.MatchCardDisplay.fromObject(t.matchButton)}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.id=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.id=i.longs===String?"0":0;n.status=0,n.matchStage="",n.home=null,n.away=null,n.matchLabel=null,n.matchTime=null,n.matchButton=null}return t.id!=null&&t.hasOwnProperty("id")&&(typeof t.id=="number"?n.id=i.longs===String?String(t.id):t.id:n.id=i.longs===String?r.Long.prototype.toString.call(t.id):i.longs===Number?new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber():t.id),t.status!=null&&t.hasOwnProperty("status")&&(n.status=t.status),t.matchStage!=null&&t.hasOwnProperty("matchStage")&&(n.matchStage=t.matchStage),t.home!=null&&t.hasOwnProperty("home")&&(n.home=u.bilibili.app.topic.v1.MatchTeamInfo.toObject(t.home,i)),t.away!=null&&t.hasOwnProperty("away")&&(n.away=u.bilibili.app.topic.v1.MatchTeamInfo.toObject(t.away,i)),t.matchLabel!=null&&t.hasOwnProperty("matchLabel")&&(n.matchLabel=u.bilibili.app.topic.v1.MatchCardDisplay.toObject(t.matchLabel,i)),t.matchTime!=null&&t.hasOwnProperty("matchTime")&&(n.matchTime=u.bilibili.app.topic.v1.MatchCardDisplay.toObject(t.matchTime,i)),t.matchButton!=null&&t.hasOwnProperty("matchButton")&&(n.matchButton=u.bilibili.app.topic.v1.MatchCardDisplay.toObject(t.matchButton,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.topic.v1.MatchInfo"},e}(),c.MatchTeamInfo=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.id=t.int64();break}case 2:{o.title=t.string();break}case 3:{o.cover=t.string();break}case 4:{o.score=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.topic.v1.MatchTeamInfo)return t;let i=new u.bilibili.app.topic.v1.MatchTeamInfo;return t.id!=null&&(r.Long?(i.id=r.Long.fromValue(t.id)).unsigned=!1:typeof t.id=="string"?i.id=parseInt(t.id,10):typeof t.id=="number"?i.id=t.id:typeof t.id=="object"&&(i.id=new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber())),t.title!=null&&(i.title=String(t.title)),t.cover!=null&&(i.cover=String(t.cover)),t.score!=null&&(r.Long?(i.score=r.Long.fromValue(t.score)).unsigned=!1:typeof t.score=="string"?i.score=parseInt(t.score,10):typeof t.score=="number"?i.score=t.score:typeof t.score=="object"&&(i.score=new r.LongBits(t.score.low>>>0,t.score.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.id=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.id=i.longs===String?"0":0;if(n.title="",n.cover="",r.Long){let o=new r.Long(0,0,!1);n.score=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.score=i.longs===String?"0":0}return t.id!=null&&t.hasOwnProperty("id")&&(typeof t.id=="number"?n.id=i.longs===String?String(t.id):t.id:n.id=i.longs===String?r.Long.prototype.toString.call(t.id):i.longs===Number?new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber():t.id),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.cover!=null&&t.hasOwnProperty("cover")&&(n.cover=t.cover),t.score!=null&&t.hasOwnProperty("score")&&(typeof t.score=="number"?n.score=i.longs===String?String(t.score):t.score:n.score=i.longs===String?r.Long.prototype.toString.call(t.score):i.longs===Number?new r.LongBits(t.score.low>>>0,t.score.high>>>0).toNumber():t.score),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.topic.v1.MatchTeamInfo"},e}(),c.MatchCardDisplay=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.text=t.string();break}case 2:{o.textColor=t.string();break}case 3:{o.textColorNight=t.string();break}case 4:{o.uri=t.string();break}case 5:{o.liveLink=t.string();break}case 6:{o.texts=u.bilibili.app.topic.v1.Texts.decode(t,t.uint32());break}case 7:{o.state=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.topic.v1.MatchCardDisplay)return t;let i=new u.bilibili.app.topic.v1.MatchCardDisplay;if(t.text!=null&&(i.text=String(t.text)),t.textColor!=null&&(i.textColor=String(t.textColor)),t.textColorNight!=null&&(i.textColorNight=String(t.textColorNight)),t.uri!=null&&(i.uri=String(t.uri)),t.liveLink!=null&&(i.liveLink=String(t.liveLink)),t.texts!=null){if(typeof t.texts!="object")throw TypeError(".bilibili.app.topic.v1.MatchCardDisplay.texts: object expected");i.texts=u.bilibili.app.topic.v1.Texts.fromObject(t.texts)}return t.state!=null&&(i.state=t.state|0),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.text="",n.textColor="",n.textColorNight="",n.uri="",n.liveLink="",n.texts=null,n.state=0),t.text!=null&&t.hasOwnProperty("text")&&(n.text=t.text),t.textColor!=null&&t.hasOwnProperty("textColor")&&(n.textColor=t.textColor),t.textColorNight!=null&&t.hasOwnProperty("textColorNight")&&(n.textColorNight=t.textColorNight),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),t.liveLink!=null&&t.hasOwnProperty("liveLink")&&(n.liveLink=t.liveLink),t.texts!=null&&t.hasOwnProperty("texts")&&(n.texts=u.bilibili.app.topic.v1.Texts.toObject(t.texts,i)),t.state!=null&&t.hasOwnProperty("state")&&(n.state=t.state),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.topic.v1.MatchCardDisplay"},e}(),c.Texts=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.bookingText=t.string();break}case 2:{o.unbookingText=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.topic.v1.Texts)return t;let i=new u.bilibili.app.topic.v1.Texts;return t.bookingText!=null&&(i.bookingText=String(t.bookingText)),t.unbookingText!=null&&(i.unbookingText=String(t.unbookingText)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.bookingText="",n.unbookingText=""),t.bookingText!=null&&t.hasOwnProperty("bookingText")&&(n.bookingText=t.bookingText),t.unbookingText!=null&&t.hasOwnProperty("unbookingText")&&(n.unbookingText=t.unbookingText),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.topic.v1.Texts"},e}(),c.ReserveButtonStatus=function(){let e={},l=Object.create(e);return l[e[0]="RESERVE_BUTTON_STATUS_NONE"]=0,l[e[1]="RESERVE_BUTTON_STATUS_UNCHECK"]=1,l[e[2]="RESERVE_BUTTON_STATUS_CHECK"]=2,l}(),c.TopicReserveButtonClickReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.uid=t.int64();break}case 2:{o.reserveId=t.int64();break}case 3:{o.reserveTotal=t.int64();break}case 4:{o.curBtnStatus=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.topic.v1.TopicReserveButtonClickReq)return t;let i=new u.bilibili.app.topic.v1.TopicReserveButtonClickReq;switch(t.uid!=null&&(r.Long?(i.uid=r.Long.fromValue(t.uid)).unsigned=!1:typeof t.uid=="string"?i.uid=parseInt(t.uid,10):typeof t.uid=="number"?i.uid=t.uid:typeof t.uid=="object"&&(i.uid=new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber())),t.reserveId!=null&&(r.Long?(i.reserveId=r.Long.fromValue(t.reserveId)).unsigned=!1:typeof t.reserveId=="string"?i.reserveId=parseInt(t.reserveId,10):typeof t.reserveId=="number"?i.reserveId=t.reserveId:typeof t.reserveId=="object"&&(i.reserveId=new r.LongBits(t.reserveId.low>>>0,t.reserveId.high>>>0).toNumber())),t.reserveTotal!=null&&(r.Long?(i.reserveTotal=r.Long.fromValue(t.reserveTotal)).unsigned=!1:typeof t.reserveTotal=="string"?i.reserveTotal=parseInt(t.reserveTotal,10):typeof t.reserveTotal=="number"?i.reserveTotal=t.reserveTotal:typeof t.reserveTotal=="object"&&(i.reserveTotal=new r.LongBits(t.reserveTotal.low>>>0,t.reserveTotal.high>>>0).toNumber())),t.curBtnStatus){default:if(typeof t.curBtnStatus=="number"){i.curBtnStatus=t.curBtnStatus;break}break;case"RESERVE_BUTTON_STATUS_NONE":case 0:i.curBtnStatus=0;break;case"RESERVE_BUTTON_STATUS_UNCHECK":case 1:i.curBtnStatus=1;break;case"RESERVE_BUTTON_STATUS_CHECK":case 2:i.curBtnStatus=2;break}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.uid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.uid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.reserveId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.reserveId=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.reserveTotal=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.reserveTotal=i.longs===String?"0":0;n.curBtnStatus=i.enums===String?"RESERVE_BUTTON_STATUS_NONE":0}return t.uid!=null&&t.hasOwnProperty("uid")&&(typeof t.uid=="number"?n.uid=i.longs===String?String(t.uid):t.uid:n.uid=i.longs===String?r.Long.prototype.toString.call(t.uid):i.longs===Number?new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber():t.uid),t.reserveId!=null&&t.hasOwnProperty("reserveId")&&(typeof t.reserveId=="number"?n.reserveId=i.longs===String?String(t.reserveId):t.reserveId:n.reserveId=i.longs===String?r.Long.prototype.toString.call(t.reserveId):i.longs===Number?new r.LongBits(t.reserveId.low>>>0,t.reserveId.high>>>0).toNumber():t.reserveId),t.reserveTotal!=null&&t.hasOwnProperty("reserveTotal")&&(typeof t.reserveTotal=="number"?n.reserveTotal=i.longs===String?String(t.reserveTotal):t.reserveTotal:n.reserveTotal=i.longs===String?r.Long.prototype.toString.call(t.reserveTotal):i.longs===Number?new r.LongBits(t.reserveTotal.low>>>0,t.reserveTotal.high>>>0).toNumber():t.reserveTotal),t.curBtnStatus!=null&&t.hasOwnProperty("curBtnStatus")&&(n.curBtnStatus=i.enums===String?u.bilibili.app.topic.v1.ReserveButtonStatus[t.curBtnStatus]===void 0?t.curBtnStatus:u.bilibili.app.topic.v1.ReserveButtonStatus[t.curBtnStatus]:t.curBtnStatus),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.topic.v1.TopicReserveButtonClickReq"},e}(),c.ReserveButtonMode=function(){let e={},l=Object.create(e);return l[e[0]="RESERVE_BUTTON_MODE_NONE"]=0,l[e[1]="RESERVE_BUTTON_MODE_RESERVE"]=1,l[e[2]="RESERVE_BUTTON_MODE_UP_CANCEL"]=2,l}(),c.TopicReserveButtonClickReply=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.finalBtnStatus=t.int32();break}case 2:{o.btnMode=t.int32();break}case 3:{o.reserveUpdate=t.int64();break}case 4:{o.descUpdate=t.string();break}case 5:{o.hasActivity=t.bool();break}case 6:{o.activityUrl=t.string();break}case 7:{o.toast=t.string();break}case 8:{o.reserveCalendarInfo=u.bilibili.app.topic.v1.ReserveCalendarInfo.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.topic.v1.TopicReserveButtonClickReply)return t;let i=new u.bilibili.app.topic.v1.TopicReserveButtonClickReply;switch(t.finalBtnStatus){default:if(typeof t.finalBtnStatus=="number"){i.finalBtnStatus=t.finalBtnStatus;break}break;case"RESERVE_BUTTON_STATUS_NONE":case 0:i.finalBtnStatus=0;break;case"RESERVE_BUTTON_STATUS_UNCHECK":case 1:i.finalBtnStatus=1;break;case"RESERVE_BUTTON_STATUS_CHECK":case 2:i.finalBtnStatus=2;break}switch(t.btnMode){default:if(typeof t.btnMode=="number"){i.btnMode=t.btnMode;break}break;case"RESERVE_BUTTON_MODE_NONE":case 0:i.btnMode=0;break;case"RESERVE_BUTTON_MODE_RESERVE":case 1:i.btnMode=1;break;case"RESERVE_BUTTON_MODE_UP_CANCEL":case 2:i.btnMode=2;break}if(t.reserveUpdate!=null&&(r.Long?(i.reserveUpdate=r.Long.fromValue(t.reserveUpdate)).unsigned=!1:typeof t.reserveUpdate=="string"?i.reserveUpdate=parseInt(t.reserveUpdate,10):typeof t.reserveUpdate=="number"?i.reserveUpdate=t.reserveUpdate:typeof t.reserveUpdate=="object"&&(i.reserveUpdate=new r.LongBits(t.reserveUpdate.low>>>0,t.reserveUpdate.high>>>0).toNumber())),t.descUpdate!=null&&(i.descUpdate=String(t.descUpdate)),t.hasActivity!=null&&(i.hasActivity=!!t.hasActivity),t.activityUrl!=null&&(i.activityUrl=String(t.activityUrl)),t.toast!=null&&(i.toast=String(t.toast)),t.reserveCalendarInfo!=null){if(typeof t.reserveCalendarInfo!="object")throw TypeError(".bilibili.app.topic.v1.TopicReserveButtonClickReply.reserveCalendarInfo: object expected");i.reserveCalendarInfo=u.bilibili.app.topic.v1.ReserveCalendarInfo.fromObject(t.reserveCalendarInfo)}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.finalBtnStatus=i.enums===String?"RESERVE_BUTTON_STATUS_NONE":0,n.btnMode=i.enums===String?"RESERVE_BUTTON_MODE_NONE":0,r.Long){let o=new r.Long(0,0,!1);n.reserveUpdate=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.reserveUpdate=i.longs===String?"0":0;n.descUpdate="",n.hasActivity=!1,n.activityUrl="",n.toast="",n.reserveCalendarInfo=null}return t.finalBtnStatus!=null&&t.hasOwnProperty("finalBtnStatus")&&(n.finalBtnStatus=i.enums===String?u.bilibili.app.topic.v1.ReserveButtonStatus[t.finalBtnStatus]===void 0?t.finalBtnStatus:u.bilibili.app.topic.v1.ReserveButtonStatus[t.finalBtnStatus]:t.finalBtnStatus),t.btnMode!=null&&t.hasOwnProperty("btnMode")&&(n.btnMode=i.enums===String?u.bilibili.app.topic.v1.ReserveButtonMode[t.btnMode]===void 0?t.btnMode:u.bilibili.app.topic.v1.ReserveButtonMode[t.btnMode]:t.btnMode),t.reserveUpdate!=null&&t.hasOwnProperty("reserveUpdate")&&(typeof t.reserveUpdate=="number"?n.reserveUpdate=i.longs===String?String(t.reserveUpdate):t.reserveUpdate:n.reserveUpdate=i.longs===String?r.Long.prototype.toString.call(t.reserveUpdate):i.longs===Number?new r.LongBits(t.reserveUpdate.low>>>0,t.reserveUpdate.high>>>0).toNumber():t.reserveUpdate),t.descUpdate!=null&&t.hasOwnProperty("descUpdate")&&(n.descUpdate=t.descUpdate),t.hasActivity!=null&&t.hasOwnProperty("hasActivity")&&(n.hasActivity=t.hasActivity),t.activityUrl!=null&&t.hasOwnProperty("activityUrl")&&(n.activityUrl=t.activityUrl),t.toast!=null&&t.hasOwnProperty("toast")&&(n.toast=t.toast),t.reserveCalendarInfo!=null&&t.hasOwnProperty("reserveCalendarInfo")&&(n.reserveCalendarInfo=u.bilibili.app.topic.v1.ReserveCalendarInfo.toObject(t.reserveCalendarInfo,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.topic.v1.TopicReserveButtonClickReply"},e}(),c.ReserveCalendarInfo=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.startTs=t.int64();break}case 3:{o.endTs=t.int64();break}case 4:{o.description=t.string();break}case 5:{o.businessId=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.topic.v1.ReserveCalendarInfo)return t;let i=new u.bilibili.app.topic.v1.ReserveCalendarInfo;return t.title!=null&&(i.title=String(t.title)),t.startTs!=null&&(r.Long?(i.startTs=r.Long.fromValue(t.startTs)).unsigned=!1:typeof t.startTs=="string"?i.startTs=parseInt(t.startTs,10):typeof t.startTs=="number"?i.startTs=t.startTs:typeof t.startTs=="object"&&(i.startTs=new r.LongBits(t.startTs.low>>>0,t.startTs.high>>>0).toNumber())),t.endTs!=null&&(r.Long?(i.endTs=r.Long.fromValue(t.endTs)).unsigned=!1:typeof t.endTs=="string"?i.endTs=parseInt(t.endTs,10):typeof t.endTs=="number"?i.endTs=t.endTs:typeof t.endTs=="object"&&(i.endTs=new r.LongBits(t.endTs.low>>>0,t.endTs.high>>>0).toNumber())),t.description!=null&&(i.description=String(t.description)),t.businessId!=null&&(i.businessId=String(t.businessId)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.title="",r.Long){let o=new r.Long(0,0,!1);n.startTs=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.startTs=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.endTs=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.endTs=i.longs===String?"0":0;n.description="",n.businessId=""}return t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.startTs!=null&&t.hasOwnProperty("startTs")&&(typeof t.startTs=="number"?n.startTs=i.longs===String?String(t.startTs):t.startTs:n.startTs=i.longs===String?r.Long.prototype.toString.call(t.startTs):i.longs===Number?new r.LongBits(t.startTs.low>>>0,t.startTs.high>>>0).toNumber():t.startTs),t.endTs!=null&&t.hasOwnProperty("endTs")&&(typeof t.endTs=="number"?n.endTs=i.longs===String?String(t.endTs):t.endTs:n.endTs=i.longs===String?r.Long.prototype.toString.call(t.endTs):i.longs===Number?new r.LongBits(t.endTs.low>>>0,t.endTs.high>>>0).toNumber():t.endTs),t.description!=null&&t.hasOwnProperty("description")&&(n.description=t.description),t.businessId!=null&&t.hasOwnProperty("businessId")&&(n.businessId=t.businessId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.topic.v1.ReserveCalendarInfo"},e}(),c.IPTopicCard=function(){function e(l){if(this.items=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.items&&o.items.length||(o.items=[]),o.items.push(u.bilibili.app.topic.v1.IPTopicInfo.decode(t,t.uint32()));break}case 2:{o.startTime=t.int64();break}case 3:{o.endTime=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.topic.v1.IPTopicCard)return t;let i=new u.bilibili.app.topic.v1.IPTopicCard;if(t.items){if(!Array.isArray(t.items))throw TypeError(".bilibili.app.topic.v1.IPTopicCard.items: array expected");i.items=[];for(let n=0;n>>0,t.startTime.high>>>0).toNumber())),t.endTime!=null&&(r.Long?(i.endTime=r.Long.fromValue(t.endTime)).unsigned=!1:typeof t.endTime=="string"?i.endTime=parseInt(t.endTime,10):typeof t.endTime=="number"?i.endTime=t.endTime:typeof t.endTime=="object"&&(i.endTime=new r.LongBits(t.endTime.low>>>0,t.endTime.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if((i.arrays||i.defaults)&&(n.items=[]),i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.startTime=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.startTime=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.endTime=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.endTime=i.longs===String?"0":0}if(t.items&&t.items.length){n.items=[];for(let o=0;o>>0,t.startTime.high>>>0).toNumber():t.startTime),t.endTime!=null&&t.hasOwnProperty("endTime")&&(typeof t.endTime=="number"?n.endTime=i.longs===String?String(t.endTime):t.endTime:n.endTime=i.longs===String?r.Long.prototype.toString.call(t.endTime):i.longs===Number?new r.LongBits(t.endTime.low>>>0,t.endTime.high>>>0).toNumber():t.endTime),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.topic.v1.IPTopicCard"},e}(),c.IPTopicInfo=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.name=t.string();break}case 2:{o.statsDesc=t.string();break}case 3:{o.jumpUrl=t.string();break}case 4:{o.icon=t.string();break}case 5:{o.id=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.topic.v1.IPTopicInfo)return t;let i=new u.bilibili.app.topic.v1.IPTopicInfo;return t.name!=null&&(i.name=String(t.name)),t.statsDesc!=null&&(i.statsDesc=String(t.statsDesc)),t.jumpUrl!=null&&(i.jumpUrl=String(t.jumpUrl)),t.icon!=null&&(i.icon=String(t.icon)),t.id!=null&&(r.Long?(i.id=r.Long.fromValue(t.id)).unsigned=!1:typeof t.id=="string"?i.id=parseInt(t.id,10):typeof t.id=="number"?i.id=t.id:typeof t.id=="object"&&(i.id=new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(n.name="",n.statsDesc="",n.jumpUrl="",n.icon="",r.Long){let o=new r.Long(0,0,!1);n.id=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.id=i.longs===String?"0":0;return t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),t.statsDesc!=null&&t.hasOwnProperty("statsDesc")&&(n.statsDesc=t.statsDesc),t.jumpUrl!=null&&t.hasOwnProperty("jumpUrl")&&(n.jumpUrl=t.jumpUrl),t.icon!=null&&t.hasOwnProperty("icon")&&(n.icon=t.icon),t.id!=null&&t.hasOwnProperty("id")&&(typeof t.id=="number"?n.id=i.longs===String?String(t.id):t.id:n.id=i.longs===String?r.Long.prototype.toString.call(t.id):i.longs===Number?new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber():t.id),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.topic.v1.IPTopicInfo"},e}(),c.FeedCard=function(){function e(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.type=i.int32();break}case 2:{a.userRating=u.bilibili.app.topic.v1.FeedCardUserRating.decode(i,i.uint32());break}case 3:{a.leadCollection=u.bilibili.app.topic.v1.FeedCardLeadCollection.decode(i,i.uint32());break}case 4:{a.itemCard=u.bilibili.app.topic.v1.ItemCard.decode(i,i.uint32());break}case 5:{a.taskCard=u.bilibili.app.topic.v1.FeedCardTask.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},e.fromObject=function(i){if(i instanceof u.bilibili.app.topic.v1.FeedCard)return i;let n=new u.bilibili.app.topic.v1.FeedCard;switch(i.type){default:if(typeof i.type=="number"){n.type=i.type;break}break;case"FEED_CARD_TYPE_UNKNOWN":case 0:n.type=0;break;case"FEED_CARD_TYPE_USER_RATING":case 1:n.type=1;break;case"FEED_CARD_TYPE_LEAD_COLLECTION":case 2:n.type=2;break;case"FEED_CARD_TYPE_ITEM":case 3:n.type=3;break;case"FEED_CARD_TYPE_TASK":case 4:n.type=4;break}if(i.userRating!=null){if(typeof i.userRating!="object")throw TypeError(".bilibili.app.topic.v1.FeedCard.userRating: object expected");n.userRating=u.bilibili.app.topic.v1.FeedCardUserRating.fromObject(i.userRating)}if(i.leadCollection!=null){if(typeof i.leadCollection!="object")throw TypeError(".bilibili.app.topic.v1.FeedCard.leadCollection: object expected");n.leadCollection=u.bilibili.app.topic.v1.FeedCardLeadCollection.fromObject(i.leadCollection)}if(i.itemCard!=null){if(typeof i.itemCard!="object")throw TypeError(".bilibili.app.topic.v1.FeedCard.itemCard: object expected");n.itemCard=u.bilibili.app.topic.v1.ItemCard.fromObject(i.itemCard)}if(i.taskCard!=null){if(typeof i.taskCard!="object")throw TypeError(".bilibili.app.topic.v1.FeedCard.taskCard: object expected");n.taskCard=u.bilibili.app.topic.v1.FeedCardTask.fromObject(i.taskCard)}return n},e.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.type=n.enums===String?"FEED_CARD_TYPE_UNKNOWN":0),i.type!=null&&i.hasOwnProperty("type")&&(o.type=n.enums===String?u.bilibili.app.topic.v1.FeedCardType[i.type]===void 0?i.type:u.bilibili.app.topic.v1.FeedCardType[i.type]:i.type),i.userRating!=null&&i.hasOwnProperty("userRating")&&(o.userRating=u.bilibili.app.topic.v1.FeedCardUserRating.toObject(i.userRating,n),n.oneofs&&(o.detail="userRating")),i.leadCollection!=null&&i.hasOwnProperty("leadCollection")&&(o.leadCollection=u.bilibili.app.topic.v1.FeedCardLeadCollection.toObject(i.leadCollection,n),n.oneofs&&(o.detail="leadCollection")),i.itemCard!=null&&i.hasOwnProperty("itemCard")&&(o.itemCard=u.bilibili.app.topic.v1.ItemCard.toObject(i.itemCard,n),n.oneofs&&(o.detail="itemCard")),i.taskCard!=null&&i.hasOwnProperty("taskCard")&&(o.taskCard=u.bilibili.app.topic.v1.FeedCardTask.toObject(i.taskCard,n),n.oneofs&&(o.detail="taskCard")),o},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.app.topic.v1.FeedCard"},e}(),c.FeedCardType=function(){let e={},l=Object.create(e);return l[e[0]="FEED_CARD_TYPE_UNKNOWN"]=0,l[e[1]="FEED_CARD_TYPE_USER_RATING"]=1,l[e[2]="FEED_CARD_TYPE_LEAD_COLLECTION"]=2,l[e[3]="FEED_CARD_TYPE_ITEM"]=3,l[e[4]="FEED_CARD_TYPE_TASK"]=4,l}(),c.FeedCardLeadCollection=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.buttonText=t.string();break}case 3:{o.icon=t.string();break}case 4:{o.pressedButtonText=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.topic.v1.FeedCardLeadCollection)return t;let i=new u.bilibili.app.topic.v1.FeedCardLeadCollection;return t.title!=null&&(i.title=String(t.title)),t.buttonText!=null&&(i.buttonText=String(t.buttonText)),t.icon!=null&&(i.icon=String(t.icon)),t.pressedButtonText!=null&&(i.pressedButtonText=String(t.pressedButtonText)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.title="",n.buttonText="",n.icon="",n.pressedButtonText=""),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.buttonText!=null&&t.hasOwnProperty("buttonText")&&(n.buttonText=t.buttonText),t.icon!=null&&t.hasOwnProperty("icon")&&(n.icon=t.icon),t.pressedButtonText!=null&&t.hasOwnProperty("pressedButtonText")&&(n.pressedButtonText=t.pressedButtonText),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.topic.v1.FeedCardLeadCollection"},e}(),c.FeedCardUserRatingOptionType=function(){let e={},l=Object.create(e);return l[e[0]="FEED_CARD_USER_RATING_OPTION_TYPE_UNKNOWN"]=0,l[e[1]="FEED_CARD_USER_RATING_OPTION_TYPE_VERY_DISSATISFIED"]=1,l[e[2]="FEED_CARD_USER_RATING_OPTION_TYPE_DISSATISFIED"]=2,l[e[3]="FEED_CARD_USER_RATING_OPTION_TYPE_AVERAGE"]=3,l[e[4]="FEED_CARD_USER_RATING_OPTION_TYPE_SATISFIED"]=4,l[e[5]="FEED_CARD_USER_RATING_OPTION_TYPE_VERY_SATISFIED"]=5,l}(),c.FeedCardUserRating=function(){function e(l){if(this.options=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.options&&o.options.length||(o.options=[]),o.options.push(u.bilibili.app.topic.v1.FeedCardUserRating.UserRatingOption.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.topic.v1.FeedCardUserRating)return t;let i=new u.bilibili.app.topic.v1.FeedCardUserRating;if(t.title!=null&&(i.title=String(t.title)),t.options){if(!Array.isArray(t.options))throw TypeError(".bilibili.app.topic.v1.FeedCardUserRating.options: array expected");i.options=[];for(let n=0;n>>3){case 1:{a.icon=i.string();break}case 2:{a.text=i.string();break}case 3:{a.type=i.int32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.app.topic.v1.FeedCardUserRating.UserRatingOption)return i;let n=new u.bilibili.app.topic.v1.FeedCardUserRating.UserRatingOption;switch(i.icon!=null&&(n.icon=String(i.icon)),i.text!=null&&(n.text=String(i.text)),i.type){default:if(typeof i.type=="number"){n.type=i.type;break}break;case"FEED_CARD_USER_RATING_OPTION_TYPE_UNKNOWN":case 0:n.type=0;break;case"FEED_CARD_USER_RATING_OPTION_TYPE_VERY_DISSATISFIED":case 1:n.type=1;break;case"FEED_CARD_USER_RATING_OPTION_TYPE_DISSATISFIED":case 2:n.type=2;break;case"FEED_CARD_USER_RATING_OPTION_TYPE_AVERAGE":case 3:n.type=3;break;case"FEED_CARD_USER_RATING_OPTION_TYPE_SATISFIED":case 4:n.type=4;break;case"FEED_CARD_USER_RATING_OPTION_TYPE_VERY_SATISFIED":case 5:n.type=5;break}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.icon="",o.text="",o.type=n.enums===String?"FEED_CARD_USER_RATING_OPTION_TYPE_UNKNOWN":0),i.icon!=null&&i.hasOwnProperty("icon")&&(o.icon=i.icon),i.text!=null&&i.hasOwnProperty("text")&&(o.text=i.text),i.type!=null&&i.hasOwnProperty("type")&&(o.type=n.enums===String?u.bilibili.app.topic.v1.FeedCardUserRatingOptionType[i.type]===void 0?i.type:u.bilibili.app.topic.v1.FeedCardUserRatingOptionType[i.type]:i.type),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.app.topic.v1.FeedCardUserRating.UserRatingOption"},l}(),e}(),c.ReportUserRatingFeedCardChoiceReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.topicId=t.int64();break}case 2:{o.optionType=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.topic.v1.ReportUserRatingFeedCardChoiceReq)return t;let i=new u.bilibili.app.topic.v1.ReportUserRatingFeedCardChoiceReq;switch(t.topicId!=null&&(r.Long?(i.topicId=r.Long.fromValue(t.topicId)).unsigned=!1:typeof t.topicId=="string"?i.topicId=parseInt(t.topicId,10):typeof t.topicId=="number"?i.topicId=t.topicId:typeof t.topicId=="object"&&(i.topicId=new r.LongBits(t.topicId.low>>>0,t.topicId.high>>>0).toNumber())),t.optionType){default:if(typeof t.optionType=="number"){i.optionType=t.optionType;break}break;case"FEED_CARD_USER_RATING_OPTION_TYPE_UNKNOWN":case 0:i.optionType=0;break;case"FEED_CARD_USER_RATING_OPTION_TYPE_VERY_DISSATISFIED":case 1:i.optionType=1;break;case"FEED_CARD_USER_RATING_OPTION_TYPE_DISSATISFIED":case 2:i.optionType=2;break;case"FEED_CARD_USER_RATING_OPTION_TYPE_AVERAGE":case 3:i.optionType=3;break;case"FEED_CARD_USER_RATING_OPTION_TYPE_SATISFIED":case 4:i.optionType=4;break;case"FEED_CARD_USER_RATING_OPTION_TYPE_VERY_SATISFIED":case 5:i.optionType=5;break}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.topicId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.topicId=i.longs===String?"0":0;n.optionType=i.enums===String?"FEED_CARD_USER_RATING_OPTION_TYPE_UNKNOWN":0}return t.topicId!=null&&t.hasOwnProperty("topicId")&&(typeof t.topicId=="number"?n.topicId=i.longs===String?String(t.topicId):t.topicId:n.topicId=i.longs===String?r.Long.prototype.toString.call(t.topicId):i.longs===Number?new r.LongBits(t.topicId.low>>>0,t.topicId.high>>>0).toNumber():t.topicId),t.optionType!=null&&t.hasOwnProperty("optionType")&&(n.optionType=i.enums===String?u.bilibili.app.topic.v1.FeedCardUserRatingOptionType[t.optionType]===void 0?t.optionType:u.bilibili.app.topic.v1.FeedCardUserRatingOptionType[t.optionType]:t.optionType),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.topic.v1.ReportUserRatingFeedCardChoiceReq"},e}(),c.ReportUserCloseFeedCardReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.topicId=t.int64();break}case 2:{o.feedCardType=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.topic.v1.ReportUserCloseFeedCardReq)return t;let i=new u.bilibili.app.topic.v1.ReportUserCloseFeedCardReq;switch(t.topicId!=null&&(r.Long?(i.topicId=r.Long.fromValue(t.topicId)).unsigned=!1:typeof t.topicId=="string"?i.topicId=parseInt(t.topicId,10):typeof t.topicId=="number"?i.topicId=t.topicId:typeof t.topicId=="object"&&(i.topicId=new r.LongBits(t.topicId.low>>>0,t.topicId.high>>>0).toNumber())),t.feedCardType){default:if(typeof t.feedCardType=="number"){i.feedCardType=t.feedCardType;break}break;case"FEED_CARD_TYPE_UNKNOWN":case 0:i.feedCardType=0;break;case"FEED_CARD_TYPE_USER_RATING":case 1:i.feedCardType=1;break;case"FEED_CARD_TYPE_LEAD_COLLECTION":case 2:i.feedCardType=2;break;case"FEED_CARD_TYPE_ITEM":case 3:i.feedCardType=3;break;case"FEED_CARD_TYPE_TASK":case 4:i.feedCardType=4;break}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.topicId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.topicId=i.longs===String?"0":0;n.feedCardType=i.enums===String?"FEED_CARD_TYPE_UNKNOWN":0}return t.topicId!=null&&t.hasOwnProperty("topicId")&&(typeof t.topicId=="number"?n.topicId=i.longs===String?String(t.topicId):t.topicId:n.topicId=i.longs===String?r.Long.prototype.toString.call(t.topicId):i.longs===Number?new r.LongBits(t.topicId.low>>>0,t.topicId.high>>>0).toNumber():t.topicId),t.feedCardType!=null&&t.hasOwnProperty("feedCardType")&&(n.feedCardType=i.enums===String?u.bilibili.app.topic.v1.FeedCardType[t.feedCardType]===void 0?t.feedCardType:u.bilibili.app.topic.v1.FeedCardType[t.feedCardType]:t.feedCardType),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.topic.v1.ReportUserCloseFeedCardReq"},e}(),c.HeadClickAreaCard=function(){function e(l){if(this.clickRows=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.clickRows&&o.clickRows.length||(o.clickRows=[]),o.clickRows.push(u.bilibili.app.topic.v1.HeadClickAreaRow.decode(t,t.uint32()));break}case 2:{o.startTime=t.int64();break}case 3:{o.endTime=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.topic.v1.HeadClickAreaCard)return t;let i=new u.bilibili.app.topic.v1.HeadClickAreaCard;if(t.clickRows){if(!Array.isArray(t.clickRows))throw TypeError(".bilibili.app.topic.v1.HeadClickAreaCard.clickRows: array expected");i.clickRows=[];for(let n=0;n>>0,t.startTime.high>>>0).toNumber())),t.endTime!=null&&(r.Long?(i.endTime=r.Long.fromValue(t.endTime)).unsigned=!1:typeof t.endTime=="string"?i.endTime=parseInt(t.endTime,10):typeof t.endTime=="number"?i.endTime=t.endTime:typeof t.endTime=="object"&&(i.endTime=new r.LongBits(t.endTime.low>>>0,t.endTime.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if((i.arrays||i.defaults)&&(n.clickRows=[]),i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.startTime=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.startTime=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.endTime=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.endTime=i.longs===String?"0":0}if(t.clickRows&&t.clickRows.length){n.clickRows=[];for(let o=0;o>>0,t.startTime.high>>>0).toNumber():t.startTime),t.endTime!=null&&t.hasOwnProperty("endTime")&&(typeof t.endTime=="number"?n.endTime=i.longs===String?String(t.endTime):t.endTime:n.endTime=i.longs===String?r.Long.prototype.toString.call(t.endTime):i.longs===Number?new r.LongBits(t.endTime.low>>>0,t.endTime.high>>>0).toNumber():t.endTime),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.topic.v1.HeadClickAreaCard"},e}(),c.HeadClickAreaRow=function(){function e(l){if(this.rects=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.rects&&o.rects.length||(o.rects=[]),o.rects.push(u.bilibili.app.topic.v1.HeadClickRect.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.topic.v1.HeadClickAreaRow)return t;let i=new u.bilibili.app.topic.v1.HeadClickAreaRow;if(t.rects){if(!Array.isArray(t.rects))throw TypeError(".bilibili.app.topic.v1.HeadClickAreaRow.rects: array expected");i.rects=[];for(let n=0;n>>3){case 1:{o.w=t.int32();break}case 2:{o.h=t.int32();break}case 3:{o.pic=t.string();break}case 4:{o.path=u.bilibili.app.topic.v1.ClickPath.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.topic.v1.HeadClickRect)return t;let i=new u.bilibili.app.topic.v1.HeadClickRect;if(t.w!=null&&(i.w=t.w|0),t.h!=null&&(i.h=t.h|0),t.pic!=null&&(i.pic=String(t.pic)),t.path!=null){if(typeof t.path!="object")throw TypeError(".bilibili.app.topic.v1.HeadClickRect.path: object expected");i.path=u.bilibili.app.topic.v1.ClickPath.fromObject(t.path)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.w=0,n.h=0,n.pic="",n.path=null),t.w!=null&&t.hasOwnProperty("w")&&(n.w=t.w),t.h!=null&&t.hasOwnProperty("h")&&(n.h=t.h),t.pic!=null&&t.hasOwnProperty("pic")&&(n.pic=t.pic),t.path!=null&&t.hasOwnProperty("path")&&(n.path=u.bilibili.app.topic.v1.ClickPath.toObject(t.path,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.topic.v1.HeadClickRect"},e}(),c.ClickPath=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.type=t.int32();break}case 2:{o.path=t.string();break}case 3:{o.underlying=t.string();break}case 4:{o.wxProName=t.string();break}case 5:{o.wxProId=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.topic.v1.ClickPath)return t;let i=new u.bilibili.app.topic.v1.ClickPath;return t.type!=null&&(i.type=t.type|0),t.path!=null&&(i.path=String(t.path)),t.underlying!=null&&(i.underlying=String(t.underlying)),t.wxProName!=null&&(i.wxProName=String(t.wxProName)),t.wxProId!=null&&(i.wxProId=String(t.wxProId)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.type=0,n.path="",n.underlying="",n.wxProName="",n.wxProId=""),t.type!=null&&t.hasOwnProperty("type")&&(n.type=t.type),t.path!=null&&t.hasOwnProperty("path")&&(n.path=t.path),t.underlying!=null&&t.hasOwnProperty("underlying")&&(n.underlying=t.underlying),t.wxProName!=null&&t.hasOwnProperty("wxProName")&&(n.wxProName=t.wxProName),t.wxProId!=null&&t.hasOwnProperty("wxProId")&&(n.wxProId=t.wxProId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.topic.v1.ClickPath"},e}(),c.ItemCard=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.itemId=t.int64();break}case 2:{o.bizData=t.string();break}case 3:{o.startTime=t.int64();break}case 4:{o.endTime=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.topic.v1.ItemCard)return t;let i=new u.bilibili.app.topic.v1.ItemCard;return t.itemId!=null&&(r.Long?(i.itemId=r.Long.fromValue(t.itemId)).unsigned=!1:typeof t.itemId=="string"?i.itemId=parseInt(t.itemId,10):typeof t.itemId=="number"?i.itemId=t.itemId:typeof t.itemId=="object"&&(i.itemId=new r.LongBits(t.itemId.low>>>0,t.itemId.high>>>0).toNumber())),t.bizData!=null&&(i.bizData=String(t.bizData)),t.startTime!=null&&(r.Long?(i.startTime=r.Long.fromValue(t.startTime)).unsigned=!1:typeof t.startTime=="string"?i.startTime=parseInt(t.startTime,10):typeof t.startTime=="number"?i.startTime=t.startTime:typeof t.startTime=="object"&&(i.startTime=new r.LongBits(t.startTime.low>>>0,t.startTime.high>>>0).toNumber())),t.endTime!=null&&(r.Long?(i.endTime=r.Long.fromValue(t.endTime)).unsigned=!1:typeof t.endTime=="string"?i.endTime=parseInt(t.endTime,10):typeof t.endTime=="number"?i.endTime=t.endTime:typeof t.endTime=="object"&&(i.endTime=new r.LongBits(t.endTime.low>>>0,t.endTime.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.itemId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.itemId=i.longs===String?"0":0;if(n.bizData="",r.Long){let o=new r.Long(0,0,!1);n.startTime=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.startTime=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.endTime=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.endTime=i.longs===String?"0":0}return t.itemId!=null&&t.hasOwnProperty("itemId")&&(typeof t.itemId=="number"?n.itemId=i.longs===String?String(t.itemId):t.itemId:n.itemId=i.longs===String?r.Long.prototype.toString.call(t.itemId):i.longs===Number?new r.LongBits(t.itemId.low>>>0,t.itemId.high>>>0).toNumber():t.itemId),t.bizData!=null&&t.hasOwnProperty("bizData")&&(n.bizData=t.bizData),t.startTime!=null&&t.hasOwnProperty("startTime")&&(typeof t.startTime=="number"?n.startTime=i.longs===String?String(t.startTime):t.startTime:n.startTime=i.longs===String?r.Long.prototype.toString.call(t.startTime):i.longs===Number?new r.LongBits(t.startTime.low>>>0,t.startTime.high>>>0).toNumber():t.startTime),t.endTime!=null&&t.hasOwnProperty("endTime")&&(typeof t.endTime=="number"?n.endTime=i.longs===String?String(t.endTime):t.endTime:n.endTime=i.longs===String?r.Long.prototype.toString.call(t.endTime):i.longs===Number?new r.LongBits(t.endTime.low>>>0,t.endTime.high>>>0).toNumber():t.endTime),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.topic.v1.ItemCard"},e}(),c.FeedCardTask=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.subTitle=t.string();break}case 3:{o.cover=t.string();break}case 4:{o.buttonText=t.string();break}case 5:{o.jumpUrl=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.topic.v1.FeedCardTask)return t;let i=new u.bilibili.app.topic.v1.FeedCardTask;return t.title!=null&&(i.title=String(t.title)),t.subTitle!=null&&(i.subTitle=String(t.subTitle)),t.cover!=null&&(i.cover=String(t.cover)),t.buttonText!=null&&(i.buttonText=String(t.buttonText)),t.jumpUrl!=null&&(i.jumpUrl=String(t.jumpUrl)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.title="",n.subTitle="",n.cover="",n.buttonText="",n.jumpUrl=""),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.subTitle!=null&&t.hasOwnProperty("subTitle")&&(n.subTitle=t.subTitle),t.cover!=null&&t.hasOwnProperty("cover")&&(n.cover=t.cover),t.buttonText!=null&&t.hasOwnProperty("buttonText")&&(n.buttonText=t.buttonText),t.jumpUrl!=null&&t.hasOwnProperty("jumpUrl")&&(n.jumpUrl=t.jumpUrl),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.topic.v1.FeedCardTask"},e}(),c}(),p}(),d.view=function(){let p={};return p.v1=function(){let c={};return c.View=function(){function e(l,t,i){b.rpc.Service.call(this,l,t,i)}return(e.prototype=Object.create(b.rpc.Service.prototype)).constructor=e,e.create=function(t,i,n){return new this(t,i,n)},Object.defineProperty(e.prototype.view=function l(t,i){return this.rpcCall(l,u.bilibili.app.view.v1.ViewReq,u.bilibili.app.view.v1.ViewReply,t,i)},"name",{value:"View"}),Object.defineProperty(e.prototype.viewTag=function l(t,i){return this.rpcCall(l,u.bilibili.app.view.v1.ViewTagReq,u.bilibili.app.view.v1.ViewTagReply,t,i)},"name",{value:"ViewTag"}),Object.defineProperty(e.prototype.viewMaterial=function l(t,i){return this.rpcCall(l,u.bilibili.app.view.v1.ViewMaterialReq,u.bilibili.app.view.v1.ViewMaterialReply,t,i)},"name",{value:"ViewMaterial"}),Object.defineProperty(e.prototype.viewProgress=function l(t,i){return this.rpcCall(l,u.bilibili.app.view.v1.ViewProgressReq,u.bilibili.app.view.v1.ViewProgressReply,t,i)},"name",{value:"ViewProgress"}),Object.defineProperty(e.prototype.shortFormVideoDownload=function l(t,i){return this.rpcCall(l,u.bilibili.app.view.v1.ShortFormVideoDownloadReq,u.bilibili.app.view.v1.ShortFormVideoDownloadReply,t,i)},"name",{value:"ShortFormVideoDownload"}),Object.defineProperty(e.prototype.clickPlayerCard=function l(t,i){return this.rpcCall(l,u.bilibili.app.view.v1.ClickPlayerCardReq,u.bilibili.app.view.v1.NoReply,t,i)},"name",{value:"ClickPlayerCard"}),Object.defineProperty(e.prototype.clickPlayerCardV2=function l(t,i){return this.rpcCall(l,u.bilibili.app.view.v1.ClickPlayerCardReq,u.bilibili.app.view.v1.ClickPlayerCardReply,t,i)},"name",{value:"ClickPlayerCardV2"}),Object.defineProperty(e.prototype.clickActivitySeason=function l(t,i){return this.rpcCall(l,u.bilibili.app.view.v1.ClickActivitySeasonReq,u.bilibili.app.view.v1.NoReply,t,i)},"name",{value:"ClickActivitySeason"}),Object.defineProperty(e.prototype.season=function l(t,i){return this.rpcCall(l,u.bilibili.app.view.v1.SeasonReq,u.bilibili.app.view.v1.SeasonReply,t,i)},"name",{value:"Season"}),Object.defineProperty(e.prototype.exposePlayerCard=function l(t,i){return this.rpcCall(l,u.bilibili.app.view.v1.ExposePlayerCardReq,u.bilibili.app.view.v1.NoReply,t,i)},"name",{value:"ExposePlayerCard"}),Object.defineProperty(e.prototype.addContract=function l(t,i){return this.rpcCall(l,u.bilibili.app.view.v1.AddContractReq,u.bilibili.app.view.v1.NoReply,t,i)},"name",{value:"AddContract"}),Object.defineProperty(e.prototype.feedView=function l(t,i){return this.rpcCall(l,u.bilibili.app.view.v1.FeedViewReq,u.bilibili.app.view.v1.FeedViewReply,t,i)},"name",{value:"FeedView"}),Object.defineProperty(e.prototype.chronosPkg=function l(t,i){return this.rpcCall(l,u.bilibili.app.view.v1.ChronosPkgReq,u.bilibili.app.view.v1.Chronos,t,i)},"name",{value:"ChronosPkg"}),Object.defineProperty(e.prototype.cacheView=function l(t,i){return this.rpcCall(l,u.bilibili.app.view.v1.CacheViewReq,u.bilibili.app.view.v1.CacheViewReply,t,i)},"name",{value:"CacheView"}),Object.defineProperty(e.prototype.continuousPlay=function l(t,i){return this.rpcCall(l,u.bilibili.app.view.v1.ContinuousPlayReq,u.bilibili.app.view.v1.ContinuousPlayReply,t,i)},"name",{value:"ContinuousPlay"}),Object.defineProperty(e.prototype.relatesFeed=function l(t,i){return this.rpcCall(l,u.bilibili.app.view.v1.RelatesFeedReq,u.bilibili.app.view.v1.RelatesFeedReply,t,i)},"name",{value:"RelatesFeed"}),Object.defineProperty(e.prototype.premiereArchive=function l(t,i){return this.rpcCall(l,u.bilibili.app.view.v1.PremiereArchiveReq,u.bilibili.app.view.v1.PremiereArchiveReply,t,i)},"name",{value:"PremiereArchive"}),Object.defineProperty(e.prototype.reserve=function l(t,i){return this.rpcCall(l,u.bilibili.app.view.v1.ReserveReq,u.bilibili.app.view.v1.ReserveReply,t,i)},"name",{value:"Reserve"}),Object.defineProperty(e.prototype.playerRelates=function l(t,i){return this.rpcCall(l,u.bilibili.app.view.v1.PlayerRelatesReq,u.bilibili.app.view.v1.PlayerRelatesReply,t,i)},"name",{value:"PlayerRelates"}),Object.defineProperty(e.prototype.seasonActivityRecord=function l(t,i){return this.rpcCall(l,u.bilibili.app.view.v1.SeasonActivityRecordReq,u.bilibili.app.view.v1.SeasonActivityRecordReply,t,i)},"name",{value:"SeasonActivityRecord"}),Object.defineProperty(e.prototype.seasonWidgetExpose=function l(t,i){return this.rpcCall(l,u.bilibili.app.view.v1.SeasonWidgetExposeReq,u.bilibili.app.view.v1.SeasonWidgetExposeReply,t,i)},"name",{value:"SeasonWidgetExpose"}),Object.defineProperty(e.prototype.getArcsPlayer=function l(t,i){return this.rpcCall(l,u.bilibili.app.view.v1.GetArcsPlayerReq,u.bilibili.app.view.v1.GetArcsPlayerReply,t,i)},"name",{value:"GetArcsPlayer"}),Object.defineProperty(e.prototype.getUser=function l(t,i){return this.rpcCall(l,u.bilibili.app.view.v1.GetUserReq,u.bilibili.app.view.v1.GetUserReply,t,i)},"name",{value:"GetUser"}),Object.defineProperty(e.prototype.tFInfo=function l(t,i){return this.rpcCall(l,u.bilibili.app.view.v1.TFInfoReq,u.bilibili.app.view.v1.TFInfoReply,t,i)},"name",{value:"TFInfo"}),e}(),c.GetUserReq=function(){function e(l){if(this.mids=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{if(o.mids&&o.mids.length||(o.mids=[]),(a&7)===2){let y=t.uint32()+t.pos;for(;t.pos>>0,t.mids[n].high>>>0).toNumber())}return t.aid!=null&&(r.Long?(i.aid=r.Long.fromValue(t.aid)).unsigned=!1:typeof t.aid=="string"?i.aid=parseInt(t.aid,10):typeof t.aid=="number"?i.aid=t.aid:typeof t.aid=="object"&&(i.aid=new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber())),t.upMid!=null&&(r.Long?(i.upMid=r.Long.fromValue(t.upMid)).unsigned=!1:typeof t.upMid=="string"?i.upMid=parseInt(t.upMid,10):typeof t.upMid=="number"?i.upMid=t.upMid:typeof t.upMid=="object"&&(i.upMid=new r.LongBits(t.upMid.low>>>0,t.upMid.high>>>0).toNumber())),t.onlyFans!=null&&(i.onlyFans=!!t.onlyFans),i},e.toObject=function(t,i){i||(i={});let n={};if((i.arrays||i.defaults)&&(n.mids=[]),i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.aid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.aid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.upMid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.upMid=i.longs===String?"0":0;n.onlyFans=!1}if(t.mids&&t.mids.length){n.mids=[];for(let o=0;o>>0,t.mids[o].high>>>0).toNumber():t.mids[o]}return t.aid!=null&&t.hasOwnProperty("aid")&&(typeof t.aid=="number"?n.aid=i.longs===String?String(t.aid):t.aid:n.aid=i.longs===String?r.Long.prototype.toString.call(t.aid):i.longs===Number?new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber():t.aid),t.upMid!=null&&t.hasOwnProperty("upMid")&&(typeof t.upMid=="number"?n.upMid=i.longs===String?String(t.upMid):t.upMid:n.upMid=i.longs===String?r.Long.prototype.toString.call(t.upMid):i.longs===Number?new r.LongBits(t.upMid.low>>>0,t.upMid.high>>>0).toNumber():t.upMid),t.onlyFans!=null&&t.hasOwnProperty("onlyFans")&&(n.onlyFans=t.onlyFans),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.GetUserReq"},e}(),c.GetUserReply=function(){function e(l){if(this.likeList=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.likeList&&o.likeList.length||(o.likeList=[]),o.likeList.push(u.bilibili.app.view.v1.User.decode(t,t.uint32()));break}case 2:{o.title=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.GetUserReply)return t;let i=new u.bilibili.app.view.v1.GetUserReply;if(t.likeList){if(!Array.isArray(t.likeList))throw TypeError(".bilibili.app.view.v1.GetUserReply.likeList: array expected");i.likeList=[];for(let n=0;n>>3){case 1:{o.playAvs&&o.playAvs.length||(o.playAvs=[]),o.playAvs.push(u.bilibili.app.view.v1.PlayAv.decode(t,t.uint32()));break}case 2:{o.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.GetArcsPlayerReq)return t;let i=new u.bilibili.app.view.v1.GetArcsPlayerReq;if(t.playAvs){if(!Array.isArray(t.playAvs))throw TypeError(".bilibili.app.view.v1.GetArcsPlayerReq.playAvs: array expected");i.playAvs=[];for(let n=0;n>>3){case 1:{o.arcsPlayer&&o.arcsPlayer.length||(o.arcsPlayer=[]),o.arcsPlayer.push(u.bilibili.app.view.v1.ArcsPlayer.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.GetArcsPlayerReply)return t;let i=new u.bilibili.app.view.v1.GetArcsPlayerReply;if(t.arcsPlayer){if(!Array.isArray(t.arcsPlayer))throw TypeError(".bilibili.app.view.v1.GetArcsPlayerReply.arcsPlayer: array expected");i.arcsPlayer=[];for(let n=0;n>>3){case 1:{o.aid=t.int64();break}case 2:{o.playerInfo===r.emptyObject&&(o.playerInfo={});let v=t.uint32()+t.pos;for(a=0,y="";t.pos>>3){case 1:a=t.int64();break;case 2:y=t.string();break;default:t.skipType(g&7);break}}o.playerInfo[typeof a=="object"?r.longToHash(a):a]=y;break}default:t.skipType(s&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.ArcsPlayer)return t;let i=new u.bilibili.app.view.v1.ArcsPlayer;if(t.aid!=null&&(r.Long?(i.aid=r.Long.fromValue(t.aid)).unsigned=!1:typeof t.aid=="string"?i.aid=parseInt(t.aid,10):typeof t.aid=="number"?i.aid=t.aid:typeof t.aid=="object"&&(i.aid=new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber())),t.playerInfo){if(typeof t.playerInfo!="object")throw TypeError(".bilibili.app.view.v1.ArcsPlayer.playerInfo: object expected");i.playerInfo={};for(let n=Object.keys(t.playerInfo),o=0;o>>0,t.aid.high>>>0).toNumber():t.aid);let o;if(t.playerInfo&&(o=Object.keys(t.playerInfo)).length){n.playerInfo={};for(let a=0;a>>3){case 1:{o.aid=t.int64();break}case 2:{o.cid=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.PlayAv)return t;let i=new u.bilibili.app.view.v1.PlayAv;return t.aid!=null&&(r.Long?(i.aid=r.Long.fromValue(t.aid)).unsigned=!1:typeof t.aid=="string"?i.aid=parseInt(t.aid,10):typeof t.aid=="number"?i.aid=t.aid:typeof t.aid=="object"&&(i.aid=new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber())),t.cid!=null&&(r.Long?(i.cid=r.Long.fromValue(t.cid)).unsigned=!1:typeof t.cid=="string"?i.cid=parseInt(t.cid,10):typeof t.cid=="number"?i.cid=t.cid:typeof t.cid=="object"&&(i.cid=new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.aid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.aid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.cid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.cid=i.longs===String?"0":0}return t.aid!=null&&t.hasOwnProperty("aid")&&(typeof t.aid=="number"?n.aid=i.longs===String?String(t.aid):t.aid:n.aid=i.longs===String?r.Long.prototype.toString.call(t.aid):i.longs===Number?new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber():t.aid),t.cid!=null&&t.hasOwnProperty("cid")&&(typeof t.cid=="number"?n.cid=i.longs===String?String(t.cid):t.cid:n.cid=i.longs===String?r.Long.prototype.toString.call(t.cid):i.longs===Number?new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber():t.cid),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.PlayAv"},e}(),c.SeasonWidgetExposeReply=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.seasonId=t.int64();break}case 2:{o.activityId=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.SeasonWidgetExposeReply)return t;let i=new u.bilibili.app.view.v1.SeasonWidgetExposeReply;return t.seasonId!=null&&(r.Long?(i.seasonId=r.Long.fromValue(t.seasonId)).unsigned=!1:typeof t.seasonId=="string"?i.seasonId=parseInt(t.seasonId,10):typeof t.seasonId=="number"?i.seasonId=t.seasonId:typeof t.seasonId=="object"&&(i.seasonId=new r.LongBits(t.seasonId.low>>>0,t.seasonId.high>>>0).toNumber())),t.activityId!=null&&(r.Long?(i.activityId=r.Long.fromValue(t.activityId)).unsigned=!1:typeof t.activityId=="string"?i.activityId=parseInt(t.activityId,10):typeof t.activityId=="number"?i.activityId=t.activityId:typeof t.activityId=="object"&&(i.activityId=new r.LongBits(t.activityId.low>>>0,t.activityId.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.seasonId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.seasonId=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.activityId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.activityId=i.longs===String?"0":0}return t.seasonId!=null&&t.hasOwnProperty("seasonId")&&(typeof t.seasonId=="number"?n.seasonId=i.longs===String?String(t.seasonId):t.seasonId:n.seasonId=i.longs===String?r.Long.prototype.toString.call(t.seasonId):i.longs===Number?new r.LongBits(t.seasonId.low>>>0,t.seasonId.high>>>0).toNumber():t.seasonId),t.activityId!=null&&t.hasOwnProperty("activityId")&&(typeof t.activityId=="number"?n.activityId=i.longs===String?String(t.activityId):t.activityId:n.activityId=i.longs===String?r.Long.prototype.toString.call(t.activityId):i.longs===Number?new r.LongBits(t.activityId.low>>>0,t.activityId.high>>>0).toNumber():t.activityId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.SeasonWidgetExposeReply"},e}(),c.SeasonWidgetExposeReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.mid=t.int64();break}case 2:{o.type=t.int32();break}case 3:{o.seasonId=t.int64();break}case 4:{o.activityId=t.int64();break}case 5:{o.aid=t.int64();break}case 6:{o.cid=t.int64();break}case 7:{o.scene=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.SeasonWidgetExposeReq)return t;let i=new u.bilibili.app.view.v1.SeasonWidgetExposeReq;return t.mid!=null&&(r.Long?(i.mid=r.Long.fromValue(t.mid)).unsigned=!1:typeof t.mid=="string"?i.mid=parseInt(t.mid,10):typeof t.mid=="number"?i.mid=t.mid:typeof t.mid=="object"&&(i.mid=new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber())),t.type!=null&&(i.type=t.type|0),t.seasonId!=null&&(r.Long?(i.seasonId=r.Long.fromValue(t.seasonId)).unsigned=!1:typeof t.seasonId=="string"?i.seasonId=parseInt(t.seasonId,10):typeof t.seasonId=="number"?i.seasonId=t.seasonId:typeof t.seasonId=="object"&&(i.seasonId=new r.LongBits(t.seasonId.low>>>0,t.seasonId.high>>>0).toNumber())),t.activityId!=null&&(r.Long?(i.activityId=r.Long.fromValue(t.activityId)).unsigned=!1:typeof t.activityId=="string"?i.activityId=parseInt(t.activityId,10):typeof t.activityId=="number"?i.activityId=t.activityId:typeof t.activityId=="object"&&(i.activityId=new r.LongBits(t.activityId.low>>>0,t.activityId.high>>>0).toNumber())),t.aid!=null&&(r.Long?(i.aid=r.Long.fromValue(t.aid)).unsigned=!1:typeof t.aid=="string"?i.aid=parseInt(t.aid,10):typeof t.aid=="number"?i.aid=t.aid:typeof t.aid=="object"&&(i.aid=new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber())),t.cid!=null&&(r.Long?(i.cid=r.Long.fromValue(t.cid)).unsigned=!1:typeof t.cid=="string"?i.cid=parseInt(t.cid,10):typeof t.cid=="number"?i.cid=t.cid:typeof t.cid=="object"&&(i.cid=new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber())),t.scene!=null&&(r.Long?(i.scene=r.Long.fromValue(t.scene)).unsigned=!1:typeof t.scene=="string"?i.scene=parseInt(t.scene,10):typeof t.scene=="number"?i.scene=t.scene:typeof t.scene=="object"&&(i.scene=new r.LongBits(t.scene.low>>>0,t.scene.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.mid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mid=i.longs===String?"0":0;if(n.type=0,r.Long){let o=new r.Long(0,0,!1);n.seasonId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.seasonId=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.activityId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.activityId=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.aid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.aid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.cid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.cid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.scene=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.scene=i.longs===String?"0":0}return t.mid!=null&&t.hasOwnProperty("mid")&&(typeof t.mid=="number"?n.mid=i.longs===String?String(t.mid):t.mid:n.mid=i.longs===String?r.Long.prototype.toString.call(t.mid):i.longs===Number?new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber():t.mid),t.type!=null&&t.hasOwnProperty("type")&&(n.type=t.type),t.seasonId!=null&&t.hasOwnProperty("seasonId")&&(typeof t.seasonId=="number"?n.seasonId=i.longs===String?String(t.seasonId):t.seasonId:n.seasonId=i.longs===String?r.Long.prototype.toString.call(t.seasonId):i.longs===Number?new r.LongBits(t.seasonId.low>>>0,t.seasonId.high>>>0).toNumber():t.seasonId),t.activityId!=null&&t.hasOwnProperty("activityId")&&(typeof t.activityId=="number"?n.activityId=i.longs===String?String(t.activityId):t.activityId:n.activityId=i.longs===String?r.Long.prototype.toString.call(t.activityId):i.longs===Number?new r.LongBits(t.activityId.low>>>0,t.activityId.high>>>0).toNumber():t.activityId),t.aid!=null&&t.hasOwnProperty("aid")&&(typeof t.aid=="number"?n.aid=i.longs===String?String(t.aid):t.aid:n.aid=i.longs===String?r.Long.prototype.toString.call(t.aid):i.longs===Number?new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber():t.aid),t.cid!=null&&t.hasOwnProperty("cid")&&(typeof t.cid=="number"?n.cid=i.longs===String?String(t.cid):t.cid:n.cid=i.longs===String?r.Long.prototype.toString.call(t.cid):i.longs===Number?new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber():t.cid),t.scene!=null&&t.hasOwnProperty("scene")&&(typeof t.scene=="number"?n.scene=i.longs===String?String(t.scene):t.scene:n.scene=i.longs===String?r.Long.prototype.toString.call(t.scene):i.longs===Number?new r.LongBits(t.scene.low>>>0,t.scene.high>>>0).toNumber():t.scene),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.SeasonWidgetExposeReq"},e}(),c.SeasonActivityRecordReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.seasonId=t.int64();break}case 2:{o.activityId=t.int64();break}case 3:{o.action=t.int32();break}case 4:{o.aid=t.int64();break}case 5:{o.cid=t.int64();break}case 6:{o.scene=t.int64();break}case 7:{o.spmid=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.SeasonActivityRecordReq)return t;let i=new u.bilibili.app.view.v1.SeasonActivityRecordReq;return t.seasonId!=null&&(r.Long?(i.seasonId=r.Long.fromValue(t.seasonId)).unsigned=!1:typeof t.seasonId=="string"?i.seasonId=parseInt(t.seasonId,10):typeof t.seasonId=="number"?i.seasonId=t.seasonId:typeof t.seasonId=="object"&&(i.seasonId=new r.LongBits(t.seasonId.low>>>0,t.seasonId.high>>>0).toNumber())),t.activityId!=null&&(r.Long?(i.activityId=r.Long.fromValue(t.activityId)).unsigned=!1:typeof t.activityId=="string"?i.activityId=parseInt(t.activityId,10):typeof t.activityId=="number"?i.activityId=t.activityId:typeof t.activityId=="object"&&(i.activityId=new r.LongBits(t.activityId.low>>>0,t.activityId.high>>>0).toNumber())),t.action!=null&&(i.action=t.action|0),t.aid!=null&&(r.Long?(i.aid=r.Long.fromValue(t.aid)).unsigned=!1:typeof t.aid=="string"?i.aid=parseInt(t.aid,10):typeof t.aid=="number"?i.aid=t.aid:typeof t.aid=="object"&&(i.aid=new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber())),t.cid!=null&&(r.Long?(i.cid=r.Long.fromValue(t.cid)).unsigned=!1:typeof t.cid=="string"?i.cid=parseInt(t.cid,10):typeof t.cid=="number"?i.cid=t.cid:typeof t.cid=="object"&&(i.cid=new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber())),t.scene!=null&&(r.Long?(i.scene=r.Long.fromValue(t.scene)).unsigned=!1:typeof t.scene=="string"?i.scene=parseInt(t.scene,10):typeof t.scene=="number"?i.scene=t.scene:typeof t.scene=="object"&&(i.scene=new r.LongBits(t.scene.low>>>0,t.scene.high>>>0).toNumber())),t.spmid!=null&&(i.spmid=String(t.spmid)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.seasonId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.seasonId=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.activityId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.activityId=i.longs===String?"0":0;if(n.action=0,r.Long){let o=new r.Long(0,0,!1);n.aid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.aid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.cid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.cid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.scene=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.scene=i.longs===String?"0":0;n.spmid=""}return t.seasonId!=null&&t.hasOwnProperty("seasonId")&&(typeof t.seasonId=="number"?n.seasonId=i.longs===String?String(t.seasonId):t.seasonId:n.seasonId=i.longs===String?r.Long.prototype.toString.call(t.seasonId):i.longs===Number?new r.LongBits(t.seasonId.low>>>0,t.seasonId.high>>>0).toNumber():t.seasonId),t.activityId!=null&&t.hasOwnProperty("activityId")&&(typeof t.activityId=="number"?n.activityId=i.longs===String?String(t.activityId):t.activityId:n.activityId=i.longs===String?r.Long.prototype.toString.call(t.activityId):i.longs===Number?new r.LongBits(t.activityId.low>>>0,t.activityId.high>>>0).toNumber():t.activityId),t.action!=null&&t.hasOwnProperty("action")&&(n.action=t.action),t.aid!=null&&t.hasOwnProperty("aid")&&(typeof t.aid=="number"?n.aid=i.longs===String?String(t.aid):t.aid:n.aid=i.longs===String?r.Long.prototype.toString.call(t.aid):i.longs===Number?new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber():t.aid),t.cid!=null&&t.hasOwnProperty("cid")&&(typeof t.cid=="number"?n.cid=i.longs===String?String(t.cid):t.cid:n.cid=i.longs===String?r.Long.prototype.toString.call(t.cid):i.longs===Number?new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber():t.cid),t.scene!=null&&t.hasOwnProperty("scene")&&(typeof t.scene=="number"?n.scene=i.longs===String?String(t.scene):t.scene:n.scene=i.longs===String?r.Long.prototype.toString.call(t.scene):i.longs===Number?new r.LongBits(t.scene.low>>>0,t.scene.high>>>0).toNumber():t.scene),t.spmid!=null&&t.hasOwnProperty("spmid")&&(n.spmid=t.spmid),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.SeasonActivityRecordReq"},e}(),c.SeasonActivityRecordReply=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.activity=u.bilibili.app.view.v1.UgcSeasonActivity.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.SeasonActivityRecordReply)return t;let i=new u.bilibili.app.view.v1.SeasonActivityRecordReply;if(t.activity!=null){if(typeof t.activity!="object")throw TypeError(".bilibili.app.view.v1.SeasonActivityRecordReply.activity: object expected");i.activity=u.bilibili.app.view.v1.UgcSeasonActivity.fromObject(t.activity)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.activity=null),t.activity!=null&&t.hasOwnProperty("activity")&&(n.activity=u.bilibili.app.view.v1.UgcSeasonActivity.toObject(t.activity,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.SeasonActivityRecordReply"},e}(),c.PlayerRelatesReply=function(){function e(l){if(this.list=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.list&&o.list.length||(o.list=[]),o.list.push(u.bilibili.app.view.v1.Relate.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.PlayerRelatesReply)return t;let i=new u.bilibili.app.view.v1.PlayerRelatesReply;if(t.list){if(!Array.isArray(t.list))throw TypeError(".bilibili.app.view.v1.PlayerRelatesReply.list: array expected");i.list=[];for(let n=0;n>>3){case 1:{o.aid=t.int64();break}case 2:{o.bvid=t.string();break}case 3:{o.from=t.string();break}case 4:{o.spmid=t.string();break}case 5:{o.fromSpmid=t.string();break}case 6:{o.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.decode(t,t.uint32());break}case 7:{o.sessionId=t.string();break}case 8:{o.fromTrackId=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.PlayerRelatesReq)return t;let i=new u.bilibili.app.view.v1.PlayerRelatesReq;if(t.aid!=null&&(r.Long?(i.aid=r.Long.fromValue(t.aid)).unsigned=!1:typeof t.aid=="string"?i.aid=parseInt(t.aid,10):typeof t.aid=="number"?i.aid=t.aid:typeof t.aid=="object"&&(i.aid=new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber())),t.bvid!=null&&(i.bvid=String(t.bvid)),t.from!=null&&(i.from=String(t.from)),t.spmid!=null&&(i.spmid=String(t.spmid)),t.fromSpmid!=null&&(i.fromSpmid=String(t.fromSpmid)),t.playerArgs!=null){if(typeof t.playerArgs!="object")throw TypeError(".bilibili.app.view.v1.PlayerRelatesReq.playerArgs: object expected");i.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.fromObject(t.playerArgs)}return t.sessionId!=null&&(i.sessionId=String(t.sessionId)),t.fromTrackId!=null&&(i.fromTrackId=String(t.fromTrackId)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.aid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.aid=i.longs===String?"0":0;n.bvid="",n.from="",n.spmid="",n.fromSpmid="",n.playerArgs=null,n.sessionId="",n.fromTrackId=""}return t.aid!=null&&t.hasOwnProperty("aid")&&(typeof t.aid=="number"?n.aid=i.longs===String?String(t.aid):t.aid:n.aid=i.longs===String?r.Long.prototype.toString.call(t.aid):i.longs===Number?new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber():t.aid),t.bvid!=null&&t.hasOwnProperty("bvid")&&(n.bvid=t.bvid),t.from!=null&&t.hasOwnProperty("from")&&(n.from=t.from),t.spmid!=null&&t.hasOwnProperty("spmid")&&(n.spmid=t.spmid),t.fromSpmid!=null&&t.hasOwnProperty("fromSpmid")&&(n.fromSpmid=t.fromSpmid),t.playerArgs!=null&&t.hasOwnProperty("playerArgs")&&(n.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.toObject(t.playerArgs,i)),t.sessionId!=null&&t.hasOwnProperty("sessionId")&&(n.sessionId=t.sessionId),t.fromTrackId!=null&&t.hasOwnProperty("fromTrackId")&&(n.fromTrackId=t.fromTrackId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.PlayerRelatesReq"},e}(),c.ViewMaterialReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.aid=t.int64();break}case 2:{o.bvid=t.string();break}case 3:{o.cid=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.ViewMaterialReq)return t;let i=new u.bilibili.app.view.v1.ViewMaterialReq;return t.aid!=null&&(r.Long?(i.aid=r.Long.fromValue(t.aid)).unsigned=!1:typeof t.aid=="string"?i.aid=parseInt(t.aid,10):typeof t.aid=="number"?i.aid=t.aid:typeof t.aid=="object"&&(i.aid=new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber())),t.bvid!=null&&(i.bvid=String(t.bvid)),t.cid!=null&&(r.Long?(i.cid=r.Long.fromValue(t.cid)).unsigned=!1:typeof t.cid=="string"?i.cid=parseInt(t.cid,10):typeof t.cid=="number"?i.cid=t.cid:typeof t.cid=="object"&&(i.cid=new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.aid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.aid=i.longs===String?"0":0;if(n.bvid="",r.Long){let o=new r.Long(0,0,!1);n.cid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.cid=i.longs===String?"0":0}return t.aid!=null&&t.hasOwnProperty("aid")&&(typeof t.aid=="number"?n.aid=i.longs===String?String(t.aid):t.aid:n.aid=i.longs===String?r.Long.prototype.toString.call(t.aid):i.longs===Number?new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber():t.aid),t.bvid!=null&&t.hasOwnProperty("bvid")&&(n.bvid=t.bvid),t.cid!=null&&t.hasOwnProperty("cid")&&(typeof t.cid=="number"?n.cid=i.longs===String?String(t.cid):t.cid:n.cid=i.longs===String?r.Long.prototype.toString.call(t.cid):i.longs===Number?new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber():t.cid),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.ViewMaterialReq"},e}(),c.ViewMaterialReply=function(){function e(l){if(this.materialRes=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.materialRes&&o.materialRes.length||(o.materialRes=[]),o.materialRes.push(u.bilibili.app.view.v1.MaterialRes.decode(t,t.uint32()));break}case 2:{o.materialLeft=u.bilibili.app.view.v1.MaterialLeft.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.ViewMaterialReply)return t;let i=new u.bilibili.app.view.v1.ViewMaterialReply;if(t.materialRes){if(!Array.isArray(t.materialRes))throw TypeError(".bilibili.app.view.v1.ViewMaterialReply.materialRes: array expected");i.materialRes=[];for(let n=0;n>>3){case 1:{o.icon=t.string();break}case 2:{o.text=t.string();break}case 3:{o.url=t.string();break}case 4:{o.leftType=t.string();break}case 5:{o.param=t.string();break}case 6:{o.operationalType=t.string();break}case 7:{o.staticIcon=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.MaterialLeft)return t;let i=new u.bilibili.app.view.v1.MaterialLeft;return t.icon!=null&&(i.icon=String(t.icon)),t.text!=null&&(i.text=String(t.text)),t.url!=null&&(i.url=String(t.url)),t.leftType!=null&&(i.leftType=String(t.leftType)),t.param!=null&&(i.param=String(t.param)),t.operationalType!=null&&(i.operationalType=String(t.operationalType)),t.staticIcon!=null&&(i.staticIcon=String(t.staticIcon)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.icon="",n.text="",n.url="",n.leftType="",n.param="",n.operationalType="",n.staticIcon=""),t.icon!=null&&t.hasOwnProperty("icon")&&(n.icon=t.icon),t.text!=null&&t.hasOwnProperty("text")&&(n.text=t.text),t.url!=null&&t.hasOwnProperty("url")&&(n.url=t.url),t.leftType!=null&&t.hasOwnProperty("leftType")&&(n.leftType=t.leftType),t.param!=null&&t.hasOwnProperty("param")&&(n.param=t.param),t.operationalType!=null&&t.hasOwnProperty("operationalType")&&(n.operationalType=t.operationalType),t.staticIcon!=null&&t.hasOwnProperty("staticIcon")&&(n.staticIcon=t.staticIcon),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.MaterialLeft"},e}(),c.MaterialRes=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.id=t.int64();break}case 2:{o.icon=t.string();break}case 3:{o.url=t.string();break}case 4:{o.typ=t.int32();break}case 5:{o.name=t.string();break}case 6:{o.bgColor=t.string();break}case 7:{o.bgPic=t.string();break}case 8:{o.jumpType=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.MaterialRes)return t;let i=new u.bilibili.app.view.v1.MaterialRes;return t.id!=null&&(r.Long?(i.id=r.Long.fromValue(t.id)).unsigned=!1:typeof t.id=="string"?i.id=parseInt(t.id,10):typeof t.id=="number"?i.id=t.id:typeof t.id=="object"&&(i.id=new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber())),t.icon!=null&&(i.icon=String(t.icon)),t.url!=null&&(i.url=String(t.url)),t.typ!=null&&(i.typ=t.typ|0),t.name!=null&&(i.name=String(t.name)),t.bgColor!=null&&(i.bgColor=String(t.bgColor)),t.bgPic!=null&&(i.bgPic=String(t.bgPic)),t.jumpType!=null&&(i.jumpType=t.jumpType|0),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.id=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.id=i.longs===String?"0":0;n.icon="",n.url="",n.typ=0,n.name="",n.bgColor="",n.bgPic="",n.jumpType=0}return t.id!=null&&t.hasOwnProperty("id")&&(typeof t.id=="number"?n.id=i.longs===String?String(t.id):t.id:n.id=i.longs===String?r.Long.prototype.toString.call(t.id):i.longs===Number?new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber():t.id),t.icon!=null&&t.hasOwnProperty("icon")&&(n.icon=t.icon),t.url!=null&&t.hasOwnProperty("url")&&(n.url=t.url),t.typ!=null&&t.hasOwnProperty("typ")&&(n.typ=t.typ),t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),t.bgColor!=null&&t.hasOwnProperty("bgColor")&&(n.bgColor=t.bgColor),t.bgPic!=null&&t.hasOwnProperty("bgPic")&&(n.bgPic=t.bgPic),t.jumpType!=null&&t.hasOwnProperty("jumpType")&&(n.jumpType=t.jumpType),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.MaterialRes"},e}(),c.ViewTagReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.aid=t.int64();break}case 2:{o.bvid=t.string();break}case 3:{o.cid=t.int64();break}case 4:{o.spmid=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.ViewTagReq)return t;let i=new u.bilibili.app.view.v1.ViewTagReq;return t.aid!=null&&(r.Long?(i.aid=r.Long.fromValue(t.aid)).unsigned=!1:typeof t.aid=="string"?i.aid=parseInt(t.aid,10):typeof t.aid=="number"?i.aid=t.aid:typeof t.aid=="object"&&(i.aid=new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber())),t.bvid!=null&&(i.bvid=String(t.bvid)),t.cid!=null&&(r.Long?(i.cid=r.Long.fromValue(t.cid)).unsigned=!1:typeof t.cid=="string"?i.cid=parseInt(t.cid,10):typeof t.cid=="number"?i.cid=t.cid:typeof t.cid=="object"&&(i.cid=new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber())),t.spmid!=null&&(i.spmid=String(t.spmid)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.aid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.aid=i.longs===String?"0":0;if(n.bvid="",r.Long){let o=new r.Long(0,0,!1);n.cid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.cid=i.longs===String?"0":0;n.spmid=""}return t.aid!=null&&t.hasOwnProperty("aid")&&(typeof t.aid=="number"?n.aid=i.longs===String?String(t.aid):t.aid:n.aid=i.longs===String?r.Long.prototype.toString.call(t.aid):i.longs===Number?new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber():t.aid),t.bvid!=null&&t.hasOwnProperty("bvid")&&(n.bvid=t.bvid),t.cid!=null&&t.hasOwnProperty("cid")&&(typeof t.cid=="number"?n.cid=i.longs===String?String(t.cid):t.cid:n.cid=i.longs===String?r.Long.prototype.toString.call(t.cid):i.longs===Number?new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber():t.cid),t.spmid!=null&&t.hasOwnProperty("spmid")&&(n.spmid=t.spmid),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.ViewTagReq"},e}(),c.ViewTagReply=function(){function e(l){if(this.specialCellNew=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.specialCellNew&&o.specialCellNew.length||(o.specialCellNew=[]),o.specialCellNew.push(u.bilibili.app.view.v1.SpecialCell.decode(t,t.uint32()));break}case 2:{o.materialLeft=u.bilibili.app.view.v1.MaterialLeft.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.ViewTagReply)return t;let i=new u.bilibili.app.view.v1.ViewTagReply;if(t.specialCellNew){if(!Array.isArray(t.specialCellNew))throw TypeError(".bilibili.app.view.v1.ViewTagReply.specialCellNew: array expected");i.specialCellNew=[];for(let n=0;n>>3){case 1:{o.reserveId=t.int64();break}case 2:{o.reserveAction=t.int64();break}case 3:{o.upId=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.ReserveReq)return t;let i=new u.bilibili.app.view.v1.ReserveReq;return t.reserveId!=null&&(r.Long?(i.reserveId=r.Long.fromValue(t.reserveId)).unsigned=!1:typeof t.reserveId=="string"?i.reserveId=parseInt(t.reserveId,10):typeof t.reserveId=="number"?i.reserveId=t.reserveId:typeof t.reserveId=="object"&&(i.reserveId=new r.LongBits(t.reserveId.low>>>0,t.reserveId.high>>>0).toNumber())),t.reserveAction!=null&&(r.Long?(i.reserveAction=r.Long.fromValue(t.reserveAction)).unsigned=!1:typeof t.reserveAction=="string"?i.reserveAction=parseInt(t.reserveAction,10):typeof t.reserveAction=="number"?i.reserveAction=t.reserveAction:typeof t.reserveAction=="object"&&(i.reserveAction=new r.LongBits(t.reserveAction.low>>>0,t.reserveAction.high>>>0).toNumber())),t.upId!=null&&(r.Long?(i.upId=r.Long.fromValue(t.upId)).unsigned=!1:typeof t.upId=="string"?i.upId=parseInt(t.upId,10):typeof t.upId=="number"?i.upId=t.upId:typeof t.upId=="object"&&(i.upId=new r.LongBits(t.upId.low>>>0,t.upId.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.reserveId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.reserveId=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.reserveAction=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.reserveAction=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.upId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.upId=i.longs===String?"0":0}return t.reserveId!=null&&t.hasOwnProperty("reserveId")&&(typeof t.reserveId=="number"?n.reserveId=i.longs===String?String(t.reserveId):t.reserveId:n.reserveId=i.longs===String?r.Long.prototype.toString.call(t.reserveId):i.longs===Number?new r.LongBits(t.reserveId.low>>>0,t.reserveId.high>>>0).toNumber():t.reserveId),t.reserveAction!=null&&t.hasOwnProperty("reserveAction")&&(typeof t.reserveAction=="number"?n.reserveAction=i.longs===String?String(t.reserveAction):t.reserveAction:n.reserveAction=i.longs===String?r.Long.prototype.toString.call(t.reserveAction):i.longs===Number?new r.LongBits(t.reserveAction.low>>>0,t.reserveAction.high>>>0).toNumber():t.reserveAction),t.upId!=null&&t.hasOwnProperty("upId")&&(typeof t.upId=="number"?n.upId=i.longs===String?String(t.upId):t.upId:n.upId=i.longs===String?r.Long.prototype.toString.call(t.upId):i.longs===Number?new r.LongBits(t.upId.low>>>0,t.upId.high>>>0).toNumber():t.upId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.ReserveReq"},e}(),c.ReserveReply=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.reserveId=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.ReserveReply)return t;let i=new u.bilibili.app.view.v1.ReserveReply;return t.reserveId!=null&&(r.Long?(i.reserveId=r.Long.fromValue(t.reserveId)).unsigned=!1:typeof t.reserveId=="string"?i.reserveId=parseInt(t.reserveId,10):typeof t.reserveId=="number"?i.reserveId=t.reserveId:typeof t.reserveId=="object"&&(i.reserveId=new r.LongBits(t.reserveId.low>>>0,t.reserveId.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(r.Long){let o=new r.Long(0,0,!1);n.reserveId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.reserveId=i.longs===String?"0":0;return t.reserveId!=null&&t.hasOwnProperty("reserveId")&&(typeof t.reserveId=="number"?n.reserveId=i.longs===String?String(t.reserveId):t.reserveId:n.reserveId=i.longs===String?r.Long.prototype.toString.call(t.reserveId):i.longs===Number?new r.LongBits(t.reserveId.low>>>0,t.reserveId.high>>>0).toNumber():t.reserveId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.ReserveReply"},e}(),c.PremiereArchiveReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.aid=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.PremiereArchiveReq)return t;let i=new u.bilibili.app.view.v1.PremiereArchiveReq;return t.aid!=null&&(r.Long?(i.aid=r.Long.fromValue(t.aid)).unsigned=!1:typeof t.aid=="string"?i.aid=parseInt(t.aid,10):typeof t.aid=="number"?i.aid=t.aid:typeof t.aid=="object"&&(i.aid=new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(r.Long){let o=new r.Long(0,0,!1);n.aid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.aid=i.longs===String?"0":0;return t.aid!=null&&t.hasOwnProperty("aid")&&(typeof t.aid=="number"?n.aid=i.longs===String?String(t.aid):t.aid:n.aid=i.longs===String?r.Long.prototype.toString.call(t.aid):i.longs===Number?new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber():t.aid),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.PremiereArchiveReq"},e}(),c.PremiereArchiveReply=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.premiere=u.bilibili.app.view.v1.Premiere.decode(t,t.uint32());break}case 2:{o.riskStatus=t.bool();break}case 3:{o.riskReason=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.PremiereArchiveReply)return t;let i=new u.bilibili.app.view.v1.PremiereArchiveReply;if(t.premiere!=null){if(typeof t.premiere!="object")throw TypeError(".bilibili.app.view.v1.PremiereArchiveReply.premiere: object expected");i.premiere=u.bilibili.app.view.v1.Premiere.fromObject(t.premiere)}return t.riskStatus!=null&&(i.riskStatus=!!t.riskStatus),t.riskReason!=null&&(i.riskReason=String(t.riskReason)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.premiere=null,n.riskStatus=!1,n.riskReason=""),t.premiere!=null&&t.hasOwnProperty("premiere")&&(n.premiere=u.bilibili.app.view.v1.Premiere.toObject(t.premiere,i)),t.riskStatus!=null&&t.hasOwnProperty("riskStatus")&&(n.riskStatus=t.riskStatus),t.riskReason!=null&&t.hasOwnProperty("riskReason")&&(n.riskReason=t.riskReason),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.PremiereArchiveReply"},e}(),c.Premiere=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.premiereState=t.int32();break}case 2:{o.startTime=t.int64();break}case 3:{o.serviceTime=t.int64();break}case 4:{o.roomId=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.Premiere)return t;let i=new u.bilibili.app.view.v1.Premiere;switch(t.premiereState){default:if(typeof t.premiereState=="number"){i.premiereState=t.premiereState;break}break;case"premiere_none":case 0:i.premiereState=0;break;case"premiere_before":case 1:i.premiereState=1;break;case"premiere_in":case 2:i.premiereState=2;break;case"premiere_after":case 3:i.premiereState=3;break}return t.startTime!=null&&(r.Long?(i.startTime=r.Long.fromValue(t.startTime)).unsigned=!1:typeof t.startTime=="string"?i.startTime=parseInt(t.startTime,10):typeof t.startTime=="number"?i.startTime=t.startTime:typeof t.startTime=="object"&&(i.startTime=new r.LongBits(t.startTime.low>>>0,t.startTime.high>>>0).toNumber())),t.serviceTime!=null&&(r.Long?(i.serviceTime=r.Long.fromValue(t.serviceTime)).unsigned=!1:typeof t.serviceTime=="string"?i.serviceTime=parseInt(t.serviceTime,10):typeof t.serviceTime=="number"?i.serviceTime=t.serviceTime:typeof t.serviceTime=="object"&&(i.serviceTime=new r.LongBits(t.serviceTime.low>>>0,t.serviceTime.high>>>0).toNumber())),t.roomId!=null&&(r.Long?(i.roomId=r.Long.fromValue(t.roomId)).unsigned=!1:typeof t.roomId=="string"?i.roomId=parseInt(t.roomId,10):typeof t.roomId=="number"?i.roomId=t.roomId:typeof t.roomId=="object"&&(i.roomId=new r.LongBits(t.roomId.low>>>0,t.roomId.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.premiereState=i.enums===String?"premiere_none":0,r.Long){let o=new r.Long(0,0,!1);n.startTime=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.startTime=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.serviceTime=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.serviceTime=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.roomId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.roomId=i.longs===String?"0":0}return t.premiereState!=null&&t.hasOwnProperty("premiereState")&&(n.premiereState=i.enums===String?u.bilibili.app.view.v1.PremiereState[t.premiereState]===void 0?t.premiereState:u.bilibili.app.view.v1.PremiereState[t.premiereState]:t.premiereState),t.startTime!=null&&t.hasOwnProperty("startTime")&&(typeof t.startTime=="number"?n.startTime=i.longs===String?String(t.startTime):t.startTime:n.startTime=i.longs===String?r.Long.prototype.toString.call(t.startTime):i.longs===Number?new r.LongBits(t.startTime.low>>>0,t.startTime.high>>>0).toNumber():t.startTime),t.serviceTime!=null&&t.hasOwnProperty("serviceTime")&&(typeof t.serviceTime=="number"?n.serviceTime=i.longs===String?String(t.serviceTime):t.serviceTime:n.serviceTime=i.longs===String?r.Long.prototype.toString.call(t.serviceTime):i.longs===Number?new r.LongBits(t.serviceTime.low>>>0,t.serviceTime.high>>>0).toNumber():t.serviceTime),t.roomId!=null&&t.hasOwnProperty("roomId")&&(typeof t.roomId=="number"?n.roomId=i.longs===String?String(t.roomId):t.roomId:n.roomId=i.longs===String?r.Long.prototype.toString.call(t.roomId):i.longs===Number?new r.LongBits(t.roomId.low>>>0,t.roomId.high>>>0).toNumber():t.roomId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.Premiere"},e}(),c.PremiereState=function(){let e={},l=Object.create(e);return l[e[0]="premiere_none"]=0,l[e[1]="premiere_before"]=1,l[e[2]="premiere_in"]=2,l[e[3]="premiere_after"]=3,l}(),c.RelatesFeedReply=function(){function e(l){if(this.list=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.list&&o.list.length||(o.list=[]),o.list.push(u.bilibili.app.view.v1.Relate.decode(t,t.uint32()));break}case 2:{o.hasNext=t.bool();break}case 3:{o.pagination=u.bilibili.pagination.PaginationReply.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.RelatesFeedReply)return t;let i=new u.bilibili.app.view.v1.RelatesFeedReply;if(t.list){if(!Array.isArray(t.list))throw TypeError(".bilibili.app.view.v1.RelatesFeedReply.list: array expected");i.list=[];for(let n=0;n>>3){case 1:{o.aid=t.int64();break}case 2:{o.bvid=t.string();break}case 3:{o.from=t.string();break}case 4:{o.spmid=t.string();break}case 5:{o.fromSpmid=t.string();break}case 6:{o.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.decode(t,t.uint32());break}case 7:{o.relatesPage=t.int64();break}case 8:{o.sessionId=t.string();break}case 9:{o.autoplay=t.int32();break}case 10:{o.fromTrackId=t.string();break}case 11:{o.bizExtra=t.string();break}case 12:{o.deviceType=t.int64();break}case 13:{o.adExtra=t.string();break}case 14:{o.pagination=u.bilibili.pagination.Pagination.decode(t,t.uint32());break}case 15:{o.refreshNum=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.RelatesFeedReq)return t;let i=new u.bilibili.app.view.v1.RelatesFeedReq;if(t.aid!=null&&(r.Long?(i.aid=r.Long.fromValue(t.aid)).unsigned=!1:typeof t.aid=="string"?i.aid=parseInt(t.aid,10):typeof t.aid=="number"?i.aid=t.aid:typeof t.aid=="object"&&(i.aid=new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber())),t.bvid!=null&&(i.bvid=String(t.bvid)),t.from!=null&&(i.from=String(t.from)),t.spmid!=null&&(i.spmid=String(t.spmid)),t.fromSpmid!=null&&(i.fromSpmid=String(t.fromSpmid)),t.playerArgs!=null){if(typeof t.playerArgs!="object")throw TypeError(".bilibili.app.view.v1.RelatesFeedReq.playerArgs: object expected");i.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.fromObject(t.playerArgs)}if(t.relatesPage!=null&&(r.Long?(i.relatesPage=r.Long.fromValue(t.relatesPage)).unsigned=!1:typeof t.relatesPage=="string"?i.relatesPage=parseInt(t.relatesPage,10):typeof t.relatesPage=="number"?i.relatesPage=t.relatesPage:typeof t.relatesPage=="object"&&(i.relatesPage=new r.LongBits(t.relatesPage.low>>>0,t.relatesPage.high>>>0).toNumber())),t.sessionId!=null&&(i.sessionId=String(t.sessionId)),t.autoplay!=null&&(i.autoplay=t.autoplay|0),t.fromTrackId!=null&&(i.fromTrackId=String(t.fromTrackId)),t.bizExtra!=null&&(i.bizExtra=String(t.bizExtra)),t.deviceType!=null&&(r.Long?(i.deviceType=r.Long.fromValue(t.deviceType)).unsigned=!1:typeof t.deviceType=="string"?i.deviceType=parseInt(t.deviceType,10):typeof t.deviceType=="number"?i.deviceType=t.deviceType:typeof t.deviceType=="object"&&(i.deviceType=new r.LongBits(t.deviceType.low>>>0,t.deviceType.high>>>0).toNumber())),t.adExtra!=null&&(i.adExtra=String(t.adExtra)),t.pagination!=null){if(typeof t.pagination!="object")throw TypeError(".bilibili.app.view.v1.RelatesFeedReq.pagination: object expected");i.pagination=u.bilibili.pagination.Pagination.fromObject(t.pagination)}return t.refreshNum!=null&&(i.refreshNum=t.refreshNum|0),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.aid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.aid=i.longs===String?"0":0;if(n.bvid="",n.from="",n.spmid="",n.fromSpmid="",n.playerArgs=null,r.Long){let o=new r.Long(0,0,!1);n.relatesPage=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.relatesPage=i.longs===String?"0":0;if(n.sessionId="",n.autoplay=0,n.fromTrackId="",n.bizExtra="",r.Long){let o=new r.Long(0,0,!1);n.deviceType=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.deviceType=i.longs===String?"0":0;n.adExtra="",n.pagination=null,n.refreshNum=0}return t.aid!=null&&t.hasOwnProperty("aid")&&(typeof t.aid=="number"?n.aid=i.longs===String?String(t.aid):t.aid:n.aid=i.longs===String?r.Long.prototype.toString.call(t.aid):i.longs===Number?new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber():t.aid),t.bvid!=null&&t.hasOwnProperty("bvid")&&(n.bvid=t.bvid),t.from!=null&&t.hasOwnProperty("from")&&(n.from=t.from),t.spmid!=null&&t.hasOwnProperty("spmid")&&(n.spmid=t.spmid),t.fromSpmid!=null&&t.hasOwnProperty("fromSpmid")&&(n.fromSpmid=t.fromSpmid),t.playerArgs!=null&&t.hasOwnProperty("playerArgs")&&(n.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.toObject(t.playerArgs,i)),t.relatesPage!=null&&t.hasOwnProperty("relatesPage")&&(typeof t.relatesPage=="number"?n.relatesPage=i.longs===String?String(t.relatesPage):t.relatesPage:n.relatesPage=i.longs===String?r.Long.prototype.toString.call(t.relatesPage):i.longs===Number?new r.LongBits(t.relatesPage.low>>>0,t.relatesPage.high>>>0).toNumber():t.relatesPage),t.sessionId!=null&&t.hasOwnProperty("sessionId")&&(n.sessionId=t.sessionId),t.autoplay!=null&&t.hasOwnProperty("autoplay")&&(n.autoplay=t.autoplay),t.fromTrackId!=null&&t.hasOwnProperty("fromTrackId")&&(n.fromTrackId=t.fromTrackId),t.bizExtra!=null&&t.hasOwnProperty("bizExtra")&&(n.bizExtra=t.bizExtra),t.deviceType!=null&&t.hasOwnProperty("deviceType")&&(typeof t.deviceType=="number"?n.deviceType=i.longs===String?String(t.deviceType):t.deviceType:n.deviceType=i.longs===String?r.Long.prototype.toString.call(t.deviceType):i.longs===Number?new r.LongBits(t.deviceType.low>>>0,t.deviceType.high>>>0).toNumber():t.deviceType),t.adExtra!=null&&t.hasOwnProperty("adExtra")&&(n.adExtra=t.adExtra),t.pagination!=null&&t.hasOwnProperty("pagination")&&(n.pagination=u.bilibili.pagination.Pagination.toObject(t.pagination,i)),t.refreshNum!=null&&t.hasOwnProperty("refreshNum")&&(n.refreshNum=t.refreshNum),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.RelatesFeedReq"},e}(),c.CacheViewReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.aid=t.int64();break}case 2:{o.bvid=t.string();break}case 3:{o.from=t.string();break}case 4:{o.trackid=t.string();break}case 5:{o.adExtra=t.string();break}case 6:{o.spmid=t.string();break}case 7:{o.fromSpmid=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.CacheViewReq)return t;let i=new u.bilibili.app.view.v1.CacheViewReq;return t.aid!=null&&(r.Long?(i.aid=r.Long.fromValue(t.aid)).unsigned=!1:typeof t.aid=="string"?i.aid=parseInt(t.aid,10):typeof t.aid=="number"?i.aid=t.aid:typeof t.aid=="object"&&(i.aid=new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber())),t.bvid!=null&&(i.bvid=String(t.bvid)),t.from!=null&&(i.from=String(t.from)),t.trackid!=null&&(i.trackid=String(t.trackid)),t.adExtra!=null&&(i.adExtra=String(t.adExtra)),t.spmid!=null&&(i.spmid=String(t.spmid)),t.fromSpmid!=null&&(i.fromSpmid=String(t.fromSpmid)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.aid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.aid=i.longs===String?"0":0;n.bvid="",n.from="",n.trackid="",n.adExtra="",n.spmid="",n.fromSpmid=""}return t.aid!=null&&t.hasOwnProperty("aid")&&(typeof t.aid=="number"?n.aid=i.longs===String?String(t.aid):t.aid:n.aid=i.longs===String?r.Long.prototype.toString.call(t.aid):i.longs===Number?new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber():t.aid),t.bvid!=null&&t.hasOwnProperty("bvid")&&(n.bvid=t.bvid),t.from!=null&&t.hasOwnProperty("from")&&(n.from=t.from),t.trackid!=null&&t.hasOwnProperty("trackid")&&(n.trackid=t.trackid),t.adExtra!=null&&t.hasOwnProperty("adExtra")&&(n.adExtra=t.adExtra),t.spmid!=null&&t.hasOwnProperty("spmid")&&(n.spmid=t.spmid),t.fromSpmid!=null&&t.hasOwnProperty("fromSpmid")&&(n.fromSpmid=t.fromSpmid),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.CacheViewReq"},e}(),c.CacheViewReply=function(){function e(l){if(this.pages=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.arc=u.archive.service.v1.Arc.decode(t,t.uint32());break}case 2:{o.pages&&o.pages.length||(o.pages=[]),o.pages.push(u.bilibili.app.view.v1.ViewPage.decode(t,t.uint32()));break}case 3:{o.ownerExt=u.bilibili.app.view.v1.OnwerExt.decode(t,t.uint32());break}case 4:{o.reqUser=u.bilibili.app.view.v1.ReqUser.decode(t,t.uint32());break}case 5:{o.season=u.bilibili.app.view.v1.Season.decode(t,t.uint32());break}case 6:{o.elecRank=u.bilibili.app.view.v1.ElecRank.decode(t,t.uint32());break}case 7:{o.history=u.bilibili.app.view.v1.History.decode(t,t.uint32());break}case 8:{o.dislike=u.bilibili.app.view.v1.Dislike.decode(t,t.uint32());break}case 9:{o.playerIcon=u.bilibili.app.view.v1.PlayerIcon.decode(t,t.uint32());break}case 10:{o.bvid=t.string();break}case 11:{o.shortLink=t.string();break}case 12:{o.shareSubtitle=t.string();break}case 13:{o.tfPanelCustomized=u.bilibili.app.view.v1.TFPanelCustomized.decode(t,t.uint32());break}case 14:{o.online=u.bilibili.app.view.v1.Online.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.CacheViewReply)return t;let i=new u.bilibili.app.view.v1.CacheViewReply;if(t.arc!=null){if(typeof t.arc!="object")throw TypeError(".bilibili.app.view.v1.CacheViewReply.arc: object expected");i.arc=u.archive.service.v1.Arc.fromObject(t.arc)}if(t.pages){if(!Array.isArray(t.pages))throw TypeError(".bilibili.app.view.v1.CacheViewReply.pages: array expected");i.pages=[];for(let n=0;n>>3){case 1:{o.serviceKey=t.string();break}case 2:{o.engineVersion=t.string();break}case 3:{o.messageProtocol=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.ChronosPkgReq)return t;let i=new u.bilibili.app.view.v1.ChronosPkgReq;return t.serviceKey!=null&&(i.serviceKey=String(t.serviceKey)),t.engineVersion!=null&&(i.engineVersion=String(t.engineVersion)),t.messageProtocol!=null&&(i.messageProtocol=String(t.messageProtocol)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.serviceKey="",n.engineVersion="",n.messageProtocol=""),t.serviceKey!=null&&t.hasOwnProperty("serviceKey")&&(n.serviceKey=t.serviceKey),t.engineVersion!=null&&t.hasOwnProperty("engineVersion")&&(n.engineVersion=t.engineVersion),t.messageProtocol!=null&&t.hasOwnProperty("messageProtocol")&&(n.messageProtocol=t.messageProtocol),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.ChronosPkgReq"},e}(),c.FeedViewReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.aid=t.int64();break}case 2:{o.bvid=t.string();break}case 3:{o.from=t.string();break}case 4:{o.spmid=t.string();break}case 5:{o.fromSpmid=t.string();break}case 6:{o.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.decode(t,t.uint32());break}case 7:{o.displayId=t.int64();break}case 8:{o.sessionId=t.string();break}case 9:{o.pageVersion=t.string();break}case 10:{o.fromTrackId=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.FeedViewReq)return t;let i=new u.bilibili.app.view.v1.FeedViewReq;if(t.aid!=null&&(r.Long?(i.aid=r.Long.fromValue(t.aid)).unsigned=!1:typeof t.aid=="string"?i.aid=parseInt(t.aid,10):typeof t.aid=="number"?i.aid=t.aid:typeof t.aid=="object"&&(i.aid=new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber())),t.bvid!=null&&(i.bvid=String(t.bvid)),t.from!=null&&(i.from=String(t.from)),t.spmid!=null&&(i.spmid=String(t.spmid)),t.fromSpmid!=null&&(i.fromSpmid=String(t.fromSpmid)),t.playerArgs!=null){if(typeof t.playerArgs!="object")throw TypeError(".bilibili.app.view.v1.FeedViewReq.playerArgs: object expected");i.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.fromObject(t.playerArgs)}return t.displayId!=null&&(r.Long?(i.displayId=r.Long.fromValue(t.displayId)).unsigned=!1:typeof t.displayId=="string"?i.displayId=parseInt(t.displayId,10):typeof t.displayId=="number"?i.displayId=t.displayId:typeof t.displayId=="object"&&(i.displayId=new r.LongBits(t.displayId.low>>>0,t.displayId.high>>>0).toNumber())),t.sessionId!=null&&(i.sessionId=String(t.sessionId)),t.pageVersion!=null&&(i.pageVersion=String(t.pageVersion)),t.fromTrackId!=null&&(i.fromTrackId=String(t.fromTrackId)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.aid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.aid=i.longs===String?"0":0;if(n.bvid="",n.from="",n.spmid="",n.fromSpmid="",n.playerArgs=null,r.Long){let o=new r.Long(0,0,!1);n.displayId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.displayId=i.longs===String?"0":0;n.sessionId="",n.pageVersion="",n.fromTrackId=""}return t.aid!=null&&t.hasOwnProperty("aid")&&(typeof t.aid=="number"?n.aid=i.longs===String?String(t.aid):t.aid:n.aid=i.longs===String?r.Long.prototype.toString.call(t.aid):i.longs===Number?new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber():t.aid),t.bvid!=null&&t.hasOwnProperty("bvid")&&(n.bvid=t.bvid),t.from!=null&&t.hasOwnProperty("from")&&(n.from=t.from),t.spmid!=null&&t.hasOwnProperty("spmid")&&(n.spmid=t.spmid),t.fromSpmid!=null&&t.hasOwnProperty("fromSpmid")&&(n.fromSpmid=t.fromSpmid),t.playerArgs!=null&&t.hasOwnProperty("playerArgs")&&(n.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.toObject(t.playerArgs,i)),t.displayId!=null&&t.hasOwnProperty("displayId")&&(typeof t.displayId=="number"?n.displayId=i.longs===String?String(t.displayId):t.displayId:n.displayId=i.longs===String?r.Long.prototype.toString.call(t.displayId):i.longs===Number?new r.LongBits(t.displayId.low>>>0,t.displayId.high>>>0).toNumber():t.displayId),t.sessionId!=null&&t.hasOwnProperty("sessionId")&&(n.sessionId=t.sessionId),t.pageVersion!=null&&t.hasOwnProperty("pageVersion")&&(n.pageVersion=t.pageVersion),t.fromTrackId!=null&&t.hasOwnProperty("fromTrackId")&&(n.fromTrackId=t.fromTrackId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.FeedViewReq"},e}(),c.FeedViewItem=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.view=u.bilibili.app.view.v1.ViewReply.decode(t,t.uint32());break}case 2:{o.goto=t.string();break}case 3:{o.uri=t.string();break}case 4:{o.trackId=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.FeedViewItem)return t;let i=new u.bilibili.app.view.v1.FeedViewItem;if(t.view!=null){if(typeof t.view!="object")throw TypeError(".bilibili.app.view.v1.FeedViewItem.view: object expected");i.view=u.bilibili.app.view.v1.ViewReply.fromObject(t.view)}return t.goto!=null&&(i.goto=String(t.goto)),t.uri!=null&&(i.uri=String(t.uri)),t.trackId!=null&&(i.trackId=String(t.trackId)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.view=null,n.goto="",n.uri="",n.trackId=""),t.view!=null&&t.hasOwnProperty("view")&&(n.view=u.bilibili.app.view.v1.ViewReply.toObject(t.view,i)),t.goto!=null&&t.hasOwnProperty("goto")&&(n.goto=t.goto),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),t.trackId!=null&&t.hasOwnProperty("trackId")&&(n.trackId=t.trackId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.FeedViewItem"},e}(),c.FeedViewReply=function(){function e(l){if(this.list=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.list&&o.list.length||(o.list=[]),o.list.push(u.bilibili.app.view.v1.FeedViewItem.decode(t,t.uint32()));break}case 2:{o.hasNext=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.FeedViewReply)return t;let i=new u.bilibili.app.view.v1.FeedViewReply;if(t.list){if(!Array.isArray(t.list))throw TypeError(".bilibili.app.view.v1.FeedViewReply.list: array expected");i.list=[];for(let n=0;n>>3){default:t.skipType(a&7);break}}return o},e.fromObject=function(t){return t instanceof u.bilibili.app.view.v1.NoReply?t:new u.bilibili.app.view.v1.NoReply},e.toObject=function(){return{}},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.NoReply"},e}(),c.ViewReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.aid=t.int64();break}case 2:{o.bvid=t.string();break}case 3:{o.from=t.string();break}case 4:{o.trackid=t.string();break}case 5:{o.adExtra=t.string();break}case 6:{o.qn=t.int32();break}case 7:{o.fnver=t.int32();break}case 8:{o.fnval=t.int32();break}case 9:{o.forceHost=t.int32();break}case 10:{o.fourk=t.int32();break}case 11:{o.spmid=t.string();break}case 12:{o.fromSpmid=t.string();break}case 13:{o.autoplay=t.int32();break}case 14:{o.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.decode(t,t.uint32());break}case 15:{o.pageVersion=t.string();break}case 16:{o.bizExtra=t.string();break}case 17:{o.deviceType=t.int64();break}case 18:{o.relatesPage=t.int64();break}case 19:{o.sessionId=t.string();break}case 20:{o.inFeedPlay=t.int32();break}case 21:{o.playMode=t.string();break}case 22:{o.pagination=u.bilibili.pagination.Pagination.decode(t,t.uint32());break}case 23:{o.refresh=t.int32();break}case 24:{o.refreshNum=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.ViewReq)return t;let i=new u.bilibili.app.view.v1.ViewReq;if(t.aid!=null&&(r.Long?(i.aid=r.Long.fromValue(t.aid)).unsigned=!1:typeof t.aid=="string"?i.aid=parseInt(t.aid,10):typeof t.aid=="number"?i.aid=t.aid:typeof t.aid=="object"&&(i.aid=new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber())),t.bvid!=null&&(i.bvid=String(t.bvid)),t.from!=null&&(i.from=String(t.from)),t.trackid!=null&&(i.trackid=String(t.trackid)),t.adExtra!=null&&(i.adExtra=String(t.adExtra)),t.qn!=null&&(i.qn=t.qn|0),t.fnver!=null&&(i.fnver=t.fnver|0),t.fnval!=null&&(i.fnval=t.fnval|0),t.forceHost!=null&&(i.forceHost=t.forceHost|0),t.fourk!=null&&(i.fourk=t.fourk|0),t.spmid!=null&&(i.spmid=String(t.spmid)),t.fromSpmid!=null&&(i.fromSpmid=String(t.fromSpmid)),t.autoplay!=null&&(i.autoplay=t.autoplay|0),t.playerArgs!=null){if(typeof t.playerArgs!="object")throw TypeError(".bilibili.app.view.v1.ViewReq.playerArgs: object expected");i.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.fromObject(t.playerArgs)}if(t.pageVersion!=null&&(i.pageVersion=String(t.pageVersion)),t.bizExtra!=null&&(i.bizExtra=String(t.bizExtra)),t.deviceType!=null&&(r.Long?(i.deviceType=r.Long.fromValue(t.deviceType)).unsigned=!1:typeof t.deviceType=="string"?i.deviceType=parseInt(t.deviceType,10):typeof t.deviceType=="number"?i.deviceType=t.deviceType:typeof t.deviceType=="object"&&(i.deviceType=new r.LongBits(t.deviceType.low>>>0,t.deviceType.high>>>0).toNumber())),t.relatesPage!=null&&(r.Long?(i.relatesPage=r.Long.fromValue(t.relatesPage)).unsigned=!1:typeof t.relatesPage=="string"?i.relatesPage=parseInt(t.relatesPage,10):typeof t.relatesPage=="number"?i.relatesPage=t.relatesPage:typeof t.relatesPage=="object"&&(i.relatesPage=new r.LongBits(t.relatesPage.low>>>0,t.relatesPage.high>>>0).toNumber())),t.sessionId!=null&&(i.sessionId=String(t.sessionId)),t.inFeedPlay!=null&&(i.inFeedPlay=t.inFeedPlay|0),t.playMode!=null&&(i.playMode=String(t.playMode)),t.pagination!=null){if(typeof t.pagination!="object")throw TypeError(".bilibili.app.view.v1.ViewReq.pagination: object expected");i.pagination=u.bilibili.pagination.Pagination.fromObject(t.pagination)}return t.refresh!=null&&(i.refresh=t.refresh|0),t.refreshNum!=null&&(i.refreshNum=t.refreshNum|0),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.aid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.aid=i.longs===String?"0":0;if(n.bvid="",n.from="",n.trackid="",n.adExtra="",n.qn=0,n.fnver=0,n.fnval=0,n.forceHost=0,n.fourk=0,n.spmid="",n.fromSpmid="",n.autoplay=0,n.playerArgs=null,n.pageVersion="",n.bizExtra="",r.Long){let o=new r.Long(0,0,!1);n.deviceType=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.deviceType=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.relatesPage=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.relatesPage=i.longs===String?"0":0;n.sessionId="",n.inFeedPlay=0,n.playMode="",n.pagination=null,n.refresh=0,n.refreshNum=0}return t.aid!=null&&t.hasOwnProperty("aid")&&(typeof t.aid=="number"?n.aid=i.longs===String?String(t.aid):t.aid:n.aid=i.longs===String?r.Long.prototype.toString.call(t.aid):i.longs===Number?new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber():t.aid),t.bvid!=null&&t.hasOwnProperty("bvid")&&(n.bvid=t.bvid),t.from!=null&&t.hasOwnProperty("from")&&(n.from=t.from),t.trackid!=null&&t.hasOwnProperty("trackid")&&(n.trackid=t.trackid),t.adExtra!=null&&t.hasOwnProperty("adExtra")&&(n.adExtra=t.adExtra),t.qn!=null&&t.hasOwnProperty("qn")&&(n.qn=t.qn),t.fnver!=null&&t.hasOwnProperty("fnver")&&(n.fnver=t.fnver),t.fnval!=null&&t.hasOwnProperty("fnval")&&(n.fnval=t.fnval),t.forceHost!=null&&t.hasOwnProperty("forceHost")&&(n.forceHost=t.forceHost),t.fourk!=null&&t.hasOwnProperty("fourk")&&(n.fourk=t.fourk),t.spmid!=null&&t.hasOwnProperty("spmid")&&(n.spmid=t.spmid),t.fromSpmid!=null&&t.hasOwnProperty("fromSpmid")&&(n.fromSpmid=t.fromSpmid),t.autoplay!=null&&t.hasOwnProperty("autoplay")&&(n.autoplay=t.autoplay),t.playerArgs!=null&&t.hasOwnProperty("playerArgs")&&(n.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.toObject(t.playerArgs,i)),t.pageVersion!=null&&t.hasOwnProperty("pageVersion")&&(n.pageVersion=t.pageVersion),t.bizExtra!=null&&t.hasOwnProperty("bizExtra")&&(n.bizExtra=t.bizExtra),t.deviceType!=null&&t.hasOwnProperty("deviceType")&&(typeof t.deviceType=="number"?n.deviceType=i.longs===String?String(t.deviceType):t.deviceType:n.deviceType=i.longs===String?r.Long.prototype.toString.call(t.deviceType):i.longs===Number?new r.LongBits(t.deviceType.low>>>0,t.deviceType.high>>>0).toNumber():t.deviceType),t.relatesPage!=null&&t.hasOwnProperty("relatesPage")&&(typeof t.relatesPage=="number"?n.relatesPage=i.longs===String?String(t.relatesPage):t.relatesPage:n.relatesPage=i.longs===String?r.Long.prototype.toString.call(t.relatesPage):i.longs===Number?new r.LongBits(t.relatesPage.low>>>0,t.relatesPage.high>>>0).toNumber():t.relatesPage),t.sessionId!=null&&t.hasOwnProperty("sessionId")&&(n.sessionId=t.sessionId),t.inFeedPlay!=null&&t.hasOwnProperty("inFeedPlay")&&(n.inFeedPlay=t.inFeedPlay),t.playMode!=null&&t.hasOwnProperty("playMode")&&(n.playMode=t.playMode),t.pagination!=null&&t.hasOwnProperty("pagination")&&(n.pagination=u.bilibili.pagination.Pagination.toObject(t.pagination,i)),t.refresh!=null&&t.hasOwnProperty("refresh")&&(n.refresh=t.refresh),t.refreshNum!=null&&t.hasOwnProperty("refreshNum")&&(n.refreshNum=t.refreshNum),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.ViewReq"},e}(),c.ViewReply=function(){function e(l){if(this.pages=[],this.tag=[],this.tIcon={},this.relates=[],this.relateTab=[],this.bgm=[],this.staff=[],this.cms=[],this.descV2=[],this.sticker=[],this.descTag=[],this.videoSource=[],this.specialCellNew=[],this.playToast=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.arc=u.archive.service.v1.Arc.decode(t,t.uint32());break}case 2:{o.pages&&o.pages.length||(o.pages=[]),o.pages.push(u.bilibili.app.view.v1.ViewPage.decode(t,t.uint32()));break}case 3:{o.ownerExt=u.bilibili.app.view.v1.OnwerExt.decode(t,t.uint32());break}case 4:{o.reqUser=u.bilibili.app.view.v1.ReqUser.decode(t,t.uint32());break}case 5:{o.tag&&o.tag.length||(o.tag=[]),o.tag.push(u.bilibili.app.view.v1.Tag.decode(t,t.uint32()));break}case 6:{o.tIcon===r.emptyObject&&(o.tIcon={});let v=t.uint32()+t.pos;for(a="",y=null;t.pos>>3){case 1:a=t.string();break;case 2:y=u.bilibili.app.view.v1.TIcon.decode(t,t.uint32());break;default:t.skipType(g&7);break}}o.tIcon[a]=y;break}case 7:{o.season=u.bilibili.app.view.v1.Season.decode(t,t.uint32());break}case 8:{o.elecRank=u.bilibili.app.view.v1.ElecRank.decode(t,t.uint32());break}case 9:{o.history=u.bilibili.app.view.v1.History.decode(t,t.uint32());break}case 10:{o.relates&&o.relates.length||(o.relates=[]),o.relates.push(u.bilibili.app.view.v1.Relate.decode(t,t.uint32()));break}case 11:{o.dislike=u.bilibili.app.view.v1.Dislike.decode(t,t.uint32());break}case 12:{o.playerIcon=u.bilibili.app.view.v1.PlayerIcon.decode(t,t.uint32());break}case 13:{o.vipActive=t.string();break}case 14:{o.bvid=t.string();break}case 15:{o.honor=u.bilibili.app.view.v1.Honor.decode(t,t.uint32());break}case 16:{o.relateTab&&o.relateTab.length||(o.relateTab=[]),o.relateTab.push(u.bilibili.app.view.v1.RelateTab.decode(t,t.uint32()));break}case 17:{o.activityUrl=t.string();break}case 18:{o.bgm&&o.bgm.length||(o.bgm=[]),o.bgm.push(u.bilibili.app.view.v1.Bgm.decode(t,t.uint32()));break}case 19:{o.staff&&o.staff.length||(o.staff=[]),o.staff.push(u.bilibili.app.view.v1.Staff.decode(t,t.uint32()));break}case 20:{o.argueMsg=t.string();break}case 21:{o.shortLink=t.string();break}case 22:{o.playParam=t.int32();break}case 23:{o.label=u.bilibili.app.view.v1.Label.decode(t,t.uint32());break}case 24:{o.ugcSeason=u.bilibili.app.view.v1.UgcSeason.decode(t,t.uint32());break}case 25:{o.config=u.bilibili.app.view.v1.Config.decode(t,t.uint32());break}case 26:{o.shareSubtitle=t.string();break}case 27:{o.interaction=u.bilibili.app.view.v1.Interaction.decode(t,t.uint32());break}case 28:{o.ecode=t.int32();break}case 29:{o.customConfig=u.bilibili.app.view.v1.CustomConfig.decode(t,t.uint32());break}case 30:{o.cms&&o.cms.length||(o.cms=[]),o.cms.push(u.bilibili.app.view.v1.CM.decode(t,t.uint32()));break}case 31:{o.cmConfig=u.bilibili.app.view.v1.CMConfig.decode(t,t.uint32());break}case 32:{o.tab=u.bilibili.app.view.v1.Tab.decode(t,t.uint32());break}case 33:{o.rank=u.bilibili.app.view.v1.Rank.decode(t,t.uint32());break}case 34:{o.tfPanelCustomized=u.bilibili.app.view.v1.TFPanelCustomized.decode(t,t.uint32());break}case 35:{o.upAct=u.bilibili.app.view.v1.UpAct.decode(t,t.uint32());break}case 36:{o.userGarb=u.bilibili.app.view.v1.UserGarb.decode(t,t.uint32());break}case 37:{o.activitySeason=u.bilibili.app.view.v1.ActivitySeason.decode(t,t.uint32());break}case 38:{o.badgeUrl=t.string();break}case 39:{o.liveOrderInfo=u.bilibili.app.view.v1.LiveOrderInfo.decode(t,t.uint32());break}case 40:{o.descV2&&o.descV2.length||(o.descV2=[]),o.descV2.push(u.bilibili.app.view.v1.DescV2.decode(t,t.uint32()));break}case 41:{o.cmIpad=u.bilibili.app.view.v1.CmIpad.decode(t,t.uint32());break}case 42:{o.sticker&&o.sticker.length||(o.sticker=[]),o.sticker.push(u.bilibili.app.view.v1.ViewMaterial.decode(t,t.uint32()));break}case 43:{o.upLikeImg=u.bilibili.app.view.v1.UpLikeImg.decode(t,t.uint32());break}case 44:{o.likeCustom=u.bilibili.app.view.v1.LikeCustom.decode(t,t.uint32());break}case 45:{o.descTag&&o.descTag.length||(o.descTag=[]),o.descTag.push(u.bilibili.app.view.v1.Tag.decode(t,t.uint32()));break}case 46:{o.specialCell=u.bilibili.app.view.v1.SpecialCell.decode(t,t.uint32());break}case 47:{o.online=u.bilibili.app.view.v1.Online.decode(t,t.uint32());break}case 48:{o.cmUnderPlayer=u.google.protobuf.Any.decode(t,t.uint32());break}case 49:{o.videoSource&&o.videoSource.length||(o.videoSource=[]),o.videoSource.push(u.bilibili.app.view.v1.ViewMaterial.decode(t,t.uint32()));break}case 50:{o.specialCellNew&&o.specialCellNew.length||(o.specialCellNew=[]),o.specialCellNew.push(u.bilibili.app.view.v1.SpecialCell.decode(t,t.uint32()));break}case 51:{o.premiere=u.bilibili.app.view.v1.PremiereResource.decode(t,t.uint32());break}case 52:{o.refreshSpecialCell=t.bool();break}case 53:{o.materialLeft=u.bilibili.app.view.v1.MaterialLeft.decode(t,t.uint32());break}case 54:{o.notesCount=t.int64();break}case 55:{o.pullAction=u.bilibili.app.view.v1.PullClientAction.decode(t,t.uint32());break}case 56:{o.arcExtra=u.bilibili.app.view.v1.ArcExtra.decode(t,t.uint32());break}case 57:{o.pagination=u.bilibili.pagination.PaginationReply.decode(t,t.uint32());break}case 58:{o.likeAnimation=u.bilibili.app.view.v1.LikeAnimation.decode(t,t.uint32());break}case 59:{o.replyPreface=u.bilibili.app.view.v1.ReplyStyle.decode(t,t.uint32());break}case 60:{o.refreshPage=u.bilibili.app.view.v1.RefreshPage.decode(t,t.uint32());break}case 61:{o.coinCustom=u.bilibili.app.view.v1.CoinCustom.decode(t,t.uint32());break}case 62:{o.controlConfig=u.bilibili.app.view.v1.ControlConfig.decode(t,t.uint32());break}case 63:{o.upViewMaterial=u.bilibili.app.view.v1.UpViewMaterial.decode(t,t.uint32());break}case 64:{o.userRelation=u.bilibili.app.view.v1.UserRelation.decode(t,t.uint32());break}case 65:{o.coinStyle=u.bilibili.app.view.v1.CoinStyle.decode(t,t.uint32());break}case 66:{o.rabbitYear=u.bilibili.app.view.v1.RabbitYear.decode(t,t.uint32());break}case 67:{o.statV2=u.bilibili.app.view.v1.ArchiveStat.decode(t,t.uint32());break}case 68:{o.chargingPlus=u.bilibili.app.view.v1.ChargingPlus.decode(t,t.uint32());break}case 69:{o.rejectPage=u.bilibili.app.view.v1.RejectPage.decode(t,t.uint32());break}case 70:{o.playToast&&o.playToast.length||(o.playToast=[]),o.playToast.push(u.bilibili.app.view.v1.PlayToast.decode(t,t.uint32()));break}case 71:{o.viewState=t.int32();break}case 72:{o.argueBar=u.bilibili.app.view.v1.ArgueBar.decode(t,t.uint32());break}default:t.skipType(s&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.ViewReply)return t;let i=new u.bilibili.app.view.v1.ViewReply;if(t.arc!=null){if(typeof t.arc!="object")throw TypeError(".bilibili.app.view.v1.ViewReply.arc: object expected");i.arc=u.archive.service.v1.Arc.fromObject(t.arc)}if(t.pages){if(!Array.isArray(t.pages))throw TypeError(".bilibili.app.view.v1.ViewReply.pages: array expected");i.pages=[];for(let n=0;n>>0,t.notesCount.high>>>0).toNumber())),t.pullAction!=null){if(typeof t.pullAction!="object")throw TypeError(".bilibili.app.view.v1.ViewReply.pullAction: object expected");i.pullAction=u.bilibili.app.view.v1.PullClientAction.fromObject(t.pullAction)}if(t.arcExtra!=null){if(typeof t.arcExtra!="object")throw TypeError(".bilibili.app.view.v1.ViewReply.arcExtra: object expected");i.arcExtra=u.bilibili.app.view.v1.ArcExtra.fromObject(t.arcExtra)}if(t.pagination!=null){if(typeof t.pagination!="object")throw TypeError(".bilibili.app.view.v1.ViewReply.pagination: object expected");i.pagination=u.bilibili.pagination.PaginationReply.fromObject(t.pagination)}if(t.likeAnimation!=null){if(typeof t.likeAnimation!="object")throw TypeError(".bilibili.app.view.v1.ViewReply.likeAnimation: object expected");i.likeAnimation=u.bilibili.app.view.v1.LikeAnimation.fromObject(t.likeAnimation)}if(t.replyPreface!=null){if(typeof t.replyPreface!="object")throw TypeError(".bilibili.app.view.v1.ViewReply.replyPreface: object expected");i.replyPreface=u.bilibili.app.view.v1.ReplyStyle.fromObject(t.replyPreface)}if(t.refreshPage!=null){if(typeof t.refreshPage!="object")throw TypeError(".bilibili.app.view.v1.ViewReply.refreshPage: object expected");i.refreshPage=u.bilibili.app.view.v1.RefreshPage.fromObject(t.refreshPage)}if(t.coinCustom!=null){if(typeof t.coinCustom!="object")throw TypeError(".bilibili.app.view.v1.ViewReply.coinCustom: object expected");i.coinCustom=u.bilibili.app.view.v1.CoinCustom.fromObject(t.coinCustom)}if(t.controlConfig!=null){if(typeof t.controlConfig!="object")throw TypeError(".bilibili.app.view.v1.ViewReply.controlConfig: object expected");i.controlConfig=u.bilibili.app.view.v1.ControlConfig.fromObject(t.controlConfig)}if(t.upViewMaterial!=null){if(typeof t.upViewMaterial!="object")throw TypeError(".bilibili.app.view.v1.ViewReply.upViewMaterial: object expected");i.upViewMaterial=u.bilibili.app.view.v1.UpViewMaterial.fromObject(t.upViewMaterial)}if(t.userRelation!=null){if(typeof t.userRelation!="object")throw TypeError(".bilibili.app.view.v1.ViewReply.userRelation: object expected");i.userRelation=u.bilibili.app.view.v1.UserRelation.fromObject(t.userRelation)}if(t.coinStyle!=null){if(typeof t.coinStyle!="object")throw TypeError(".bilibili.app.view.v1.ViewReply.coinStyle: object expected");i.coinStyle=u.bilibili.app.view.v1.CoinStyle.fromObject(t.coinStyle)}if(t.rabbitYear!=null){if(typeof t.rabbitYear!="object")throw TypeError(".bilibili.app.view.v1.ViewReply.rabbitYear: object expected");i.rabbitYear=u.bilibili.app.view.v1.RabbitYear.fromObject(t.rabbitYear)}if(t.statV2!=null){if(typeof t.statV2!="object")throw TypeError(".bilibili.app.view.v1.ViewReply.statV2: object expected");i.statV2=u.bilibili.app.view.v1.ArchiveStat.fromObject(t.statV2)}if(t.chargingPlus!=null){if(typeof t.chargingPlus!="object")throw TypeError(".bilibili.app.view.v1.ViewReply.chargingPlus: object expected");i.chargingPlus=u.bilibili.app.view.v1.ChargingPlus.fromObject(t.chargingPlus)}if(t.rejectPage!=null){if(typeof t.rejectPage!="object")throw TypeError(".bilibili.app.view.v1.ViewReply.rejectPage: object expected");i.rejectPage=u.bilibili.app.view.v1.RejectPage.fromObject(t.rejectPage)}if(t.playToast){if(!Array.isArray(t.playToast))throw TypeError(".bilibili.app.view.v1.ViewReply.playToast: array expected");i.playToast=[];for(let n=0;n>>0,t.notesCount.high>>>0).toNumber():t.notesCount),t.pullAction!=null&&t.hasOwnProperty("pullAction")&&(n.pullAction=u.bilibili.app.view.v1.PullClientAction.toObject(t.pullAction,i)),t.arcExtra!=null&&t.hasOwnProperty("arcExtra")&&(n.arcExtra=u.bilibili.app.view.v1.ArcExtra.toObject(t.arcExtra,i)),t.pagination!=null&&t.hasOwnProperty("pagination")&&(n.pagination=u.bilibili.pagination.PaginationReply.toObject(t.pagination,i)),t.likeAnimation!=null&&t.hasOwnProperty("likeAnimation")&&(n.likeAnimation=u.bilibili.app.view.v1.LikeAnimation.toObject(t.likeAnimation,i)),t.replyPreface!=null&&t.hasOwnProperty("replyPreface")&&(n.replyPreface=u.bilibili.app.view.v1.ReplyStyle.toObject(t.replyPreface,i)),t.refreshPage!=null&&t.hasOwnProperty("refreshPage")&&(n.refreshPage=u.bilibili.app.view.v1.RefreshPage.toObject(t.refreshPage,i)),t.coinCustom!=null&&t.hasOwnProperty("coinCustom")&&(n.coinCustom=u.bilibili.app.view.v1.CoinCustom.toObject(t.coinCustom,i)),t.controlConfig!=null&&t.hasOwnProperty("controlConfig")&&(n.controlConfig=u.bilibili.app.view.v1.ControlConfig.toObject(t.controlConfig,i)),t.upViewMaterial!=null&&t.hasOwnProperty("upViewMaterial")&&(n.upViewMaterial=u.bilibili.app.view.v1.UpViewMaterial.toObject(t.upViewMaterial,i)),t.userRelation!=null&&t.hasOwnProperty("userRelation")&&(n.userRelation=u.bilibili.app.view.v1.UserRelation.toObject(t.userRelation,i)),t.coinStyle!=null&&t.hasOwnProperty("coinStyle")&&(n.coinStyle=u.bilibili.app.view.v1.CoinStyle.toObject(t.coinStyle,i)),t.rabbitYear!=null&&t.hasOwnProperty("rabbitYear")&&(n.rabbitYear=u.bilibili.app.view.v1.RabbitYear.toObject(t.rabbitYear,i)),t.statV2!=null&&t.hasOwnProperty("statV2")&&(n.statV2=u.bilibili.app.view.v1.ArchiveStat.toObject(t.statV2,i)),t.chargingPlus!=null&&t.hasOwnProperty("chargingPlus")&&(n.chargingPlus=u.bilibili.app.view.v1.ChargingPlus.toObject(t.chargingPlus,i)),t.rejectPage!=null&&t.hasOwnProperty("rejectPage")&&(n.rejectPage=u.bilibili.app.view.v1.RejectPage.toObject(t.rejectPage,i)),t.playToast&&t.playToast.length){n.playToast=[];for(let a=0;a>>3){case 1:{o.bgColor=t.string();break}case 2:{o.textColor=t.string();break}case 3:{o.iconColor=t.string();break}case 4:{o.msg=t.string();break}case 5:{o.bgColorNight=t.string();break}case 6:{o.textColorNight=t.string();break}case 7:{o.iconColorNight=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.ArgueBar)return t;let i=new u.bilibili.app.view.v1.ArgueBar;return t.bgColor!=null&&(i.bgColor=String(t.bgColor)),t.textColor!=null&&(i.textColor=String(t.textColor)),t.iconColor!=null&&(i.iconColor=String(t.iconColor)),t.msg!=null&&(i.msg=String(t.msg)),t.bgColorNight!=null&&(i.bgColorNight=String(t.bgColorNight)),t.textColorNight!=null&&(i.textColorNight=String(t.textColorNight)),t.iconColorNight!=null&&(i.iconColorNight=String(t.iconColorNight)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.bgColor="",n.textColor="",n.iconColor="",n.msg="",n.bgColorNight="",n.textColorNight="",n.iconColorNight=""),t.bgColor!=null&&t.hasOwnProperty("bgColor")&&(n.bgColor=t.bgColor),t.textColor!=null&&t.hasOwnProperty("textColor")&&(n.textColor=t.textColor),t.iconColor!=null&&t.hasOwnProperty("iconColor")&&(n.iconColor=t.iconColor),t.msg!=null&&t.hasOwnProperty("msg")&&(n.msg=t.msg),t.bgColorNight!=null&&t.hasOwnProperty("bgColorNight")&&(n.bgColorNight=t.bgColorNight),t.textColorNight!=null&&t.hasOwnProperty("textColorNight")&&(n.textColorNight=t.textColorNight),t.iconColorNight!=null&&t.hasOwnProperty("iconColorNight")&&(n.iconColorNight=t.iconColorNight),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.ArgueBar"},e}(),c.ViewState=function(){let e={},l=Object.create(e);return l[e[0]="ViewNone"]=0,l[e[1]="ViewHostOnlySelf"]=1,l}(),c.ChargingPlus=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.pass=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.ChargingPlus)return t;let i=new u.bilibili.app.view.v1.ChargingPlus;return t.pass!=null&&(i.pass=!!t.pass),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.pass=!1),t.pass!=null&&t.hasOwnProperty("pass")&&(n.pass=t.pass),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.ChargingPlus"},e}(),c.PlayToastEnum=function(){let e={},l=Object.create(e);return l[e[0]="PLAYTOAST_UNKNOWN"]=0,l[e[1]="PLAYTOAST_CHARGINGPLUS"]=1,l}(),c.PlayToast=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.business=t.int32();break}case 2:{o.iconUrl=t.string();break}case 3:{o.text=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.PlayToast)return t;let i=new u.bilibili.app.view.v1.PlayToast;switch(t.business){default:if(typeof t.business=="number"){i.business=t.business;break}break;case"PLAYTOAST_UNKNOWN":case 0:i.business=0;break;case"PLAYTOAST_CHARGINGPLUS":case 1:i.business=1;break}return t.iconUrl!=null&&(i.iconUrl=String(t.iconUrl)),t.text!=null&&(i.text=String(t.text)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.business=i.enums===String?"PLAYTOAST_UNKNOWN":0,n.iconUrl="",n.text=""),t.business!=null&&t.hasOwnProperty("business")&&(n.business=i.enums===String?u.bilibili.app.view.v1.PlayToastEnum[t.business]===void 0?t.business:u.bilibili.app.view.v1.PlayToastEnum[t.business]:t.business),t.iconUrl!=null&&t.hasOwnProperty("iconUrl")&&(n.iconUrl=t.iconUrl),t.text!=null&&t.hasOwnProperty("text")&&(n.text=t.text),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.PlayToast"},e}(),c.RejectPageEnum=function(){let e={},l=Object.create(e);return l[e[0]="REJECTPAGE_UNKNOWN"]=0,l[e[1]="REJECTPAGE_CHARGINGPLUS"]=1,l}(),c.RejectPage=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.business=t.int32();break}case 2:{o.pic=t.string();break}case 3:{o.primaryText=t.string();break}case 4:{o.secondaryText=t.string();break}case 5:{o.button=u.bilibili.app.view.v1.Button.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.RejectPage)return t;let i=new u.bilibili.app.view.v1.RejectPage;switch(t.business){default:if(typeof t.business=="number"){i.business=t.business;break}break;case"REJECTPAGE_UNKNOWN":case 0:i.business=0;break;case"REJECTPAGE_CHARGINGPLUS":case 1:i.business=1;break}if(t.pic!=null&&(i.pic=String(t.pic)),t.primaryText!=null&&(i.primaryText=String(t.primaryText)),t.secondaryText!=null&&(i.secondaryText=String(t.secondaryText)),t.button!=null){if(typeof t.button!="object")throw TypeError(".bilibili.app.view.v1.RejectPage.button: object expected");i.button=u.bilibili.app.view.v1.Button.fromObject(t.button)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.business=i.enums===String?"REJECTPAGE_UNKNOWN":0,n.pic="",n.primaryText="",n.secondaryText="",n.button=null),t.business!=null&&t.hasOwnProperty("business")&&(n.business=i.enums===String?u.bilibili.app.view.v1.RejectPageEnum[t.business]===void 0?t.business:u.bilibili.app.view.v1.RejectPageEnum[t.business]:t.business),t.pic!=null&&t.hasOwnProperty("pic")&&(n.pic=t.pic),t.primaryText!=null&&t.hasOwnProperty("primaryText")&&(n.primaryText=t.primaryText),t.secondaryText!=null&&t.hasOwnProperty("secondaryText")&&(n.secondaryText=t.secondaryText),t.button!=null&&t.hasOwnProperty("button")&&(n.button=u.bilibili.app.view.v1.Button.toObject(t.button,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.RejectPage"},e}(),c.CoinStyle=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.coinAppZipIcon=t.string();break}case 2:{o.coinAppIcon_1=t.string();break}case 3:{o.coinAppIcon_2=t.string();break}case 4:{o.coinAppIcon_3=t.string();break}case 5:{o.coinAppIcon_4=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.CoinStyle)return t;let i=new u.bilibili.app.view.v1.CoinStyle;return t.coinAppZipIcon!=null&&(i.coinAppZipIcon=String(t.coinAppZipIcon)),t.coinAppIcon_1!=null&&(i.coinAppIcon_1=String(t.coinAppIcon_1)),t.coinAppIcon_2!=null&&(i.coinAppIcon_2=String(t.coinAppIcon_2)),t.coinAppIcon_3!=null&&(i.coinAppIcon_3=String(t.coinAppIcon_3)),t.coinAppIcon_4!=null&&(i.coinAppIcon_4=String(t.coinAppIcon_4)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.coinAppZipIcon="",n.coinAppIcon_1="",n.coinAppIcon_2="",n.coinAppIcon_3="",n.coinAppIcon_4=""),t.coinAppZipIcon!=null&&t.hasOwnProperty("coinAppZipIcon")&&(n.coinAppZipIcon=t.coinAppZipIcon),t.coinAppIcon_1!=null&&t.hasOwnProperty("coinAppIcon_1")&&(n.coinAppIcon_1=t.coinAppIcon_1),t.coinAppIcon_2!=null&&t.hasOwnProperty("coinAppIcon_2")&&(n.coinAppIcon_2=t.coinAppIcon_2),t.coinAppIcon_3!=null&&t.hasOwnProperty("coinAppIcon_3")&&(n.coinAppIcon_3=t.coinAppIcon_3),t.coinAppIcon_4!=null&&t.hasOwnProperty("coinAppIcon_4")&&(n.coinAppIcon_4=t.coinAppIcon_4),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.CoinStyle"},e}(),c.UserRelation=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.likeInfo=u.bilibili.app.view.v1.InteractArea.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.UserRelation)return t;let i=new u.bilibili.app.view.v1.UserRelation;if(t.likeInfo!=null){if(typeof t.likeInfo!="object")throw TypeError(".bilibili.app.view.v1.UserRelation.likeInfo: object expected");i.likeInfo=u.bilibili.app.view.v1.InteractArea.fromObject(t.likeInfo)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.likeInfo=null),t.likeInfo!=null&&t.hasOwnProperty("likeInfo")&&(n.likeInfo=u.bilibili.app.view.v1.InteractArea.toObject(t.likeInfo,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.UserRelation"},e}(),c.UpViewMaterial=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.likeInfo=u.bilibili.app.view.v1.InteractArea.decode(t,t.uint32());break}case 2:{o.dataCenterInfo=t.string();break}case 3:{o.tabModule=u.bilibili.app.view.v1.TabModule.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.UpViewMaterial)return t;let i=new u.bilibili.app.view.v1.UpViewMaterial;if(t.likeInfo!=null){if(typeof t.likeInfo!="object")throw TypeError(".bilibili.app.view.v1.UpViewMaterial.likeInfo: object expected");i.likeInfo=u.bilibili.app.view.v1.InteractArea.fromObject(t.likeInfo)}if(t.dataCenterInfo!=null&&(i.dataCenterInfo=String(t.dataCenterInfo)),t.tabModule!=null){if(typeof t.tabModule!="object")throw TypeError(".bilibili.app.view.v1.UpViewMaterial.tabModule: object expected");i.tabModule=u.bilibili.app.view.v1.TabModule.fromObject(t.tabModule)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.likeInfo=null,n.dataCenterInfo="",n.tabModule=null),t.likeInfo!=null&&t.hasOwnProperty("likeInfo")&&(n.likeInfo=u.bilibili.app.view.v1.InteractArea.toObject(t.likeInfo,i)),t.dataCenterInfo!=null&&t.hasOwnProperty("dataCenterInfo")&&(n.dataCenterInfo=t.dataCenterInfo),t.tabModule!=null&&t.hasOwnProperty("tabModule")&&(n.tabModule=u.bilibili.app.view.v1.TabModule.toObject(t.tabModule,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.UpViewMaterial"},e}(),c.TabModule=function(){function e(l){if(this.extTabs=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.extTabs&&o.extTabs.length||(o.extTabs=[]),o.extTabs.push(u.bilibili.app.view.v1.ExtTab.decode(t,t.uint32()));break}case 2:{o.idx=t.int32();break}case 3:{o.protocolUrl=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.TabModule)return t;let i=new u.bilibili.app.view.v1.TabModule;if(t.extTabs){if(!Array.isArray(t.extTabs))throw TypeError(".bilibili.app.view.v1.TabModule.extTabs: array expected");i.extTabs=[];for(let n=0;n>>3){case 1:{o.extType=t.int32();break}case 2:{o.data=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.ExtTab)return t;let i=new u.bilibili.app.view.v1.ExtTab;switch(t.extType){default:if(typeof t.extType=="number"){i.extType=t.extType;break}break;case"ExtNone":case 0:i.extType=0;break;case"ExtDataCenter":case 1:i.extType=1;break;case"ExtDataEarnings":case 2:i.extType=2;break}return t.data!=null&&(i.data=String(t.data)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.extType=i.enums===String?"ExtNone":0,n.data=""),t.extType!=null&&t.hasOwnProperty("extType")&&(n.extType=i.enums===String?u.bilibili.app.view.v1.ExtType[t.extType]===void 0?t.extType:u.bilibili.app.view.v1.ExtType[t.extType]:t.extType),t.data!=null&&t.hasOwnProperty("data")&&(n.data=t.data),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.ExtTab"},e}(),c.ExtType=function(){let e={},l=Object.create(e);return l[e[0]="ExtNone"]=0,l[e[1]="ExtDataCenter"]=1,l[e[2]="ExtDataEarnings"]=2,l}(),c.InteractArea=function(){function e(l){if(this.list=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.list&&o.list.length||(o.list=[]),o.list.push(u.bilibili.app.view.v1.User.decode(t,t.uint32()));break}case 2:{o.text=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.InteractArea)return t;let i=new u.bilibili.app.view.v1.InteractArea;if(t.list){if(!Array.isArray(t.list))throw TypeError(".bilibili.app.view.v1.InteractArea.list: array expected");i.list=[];for(let n=0;n>>3){case 1:{o.mid=t.int64();break}case 2:{o.name=t.string();break}case 3:{o.face=t.string();break}case 4:{o.follower=t.int64();break}case 5:{o.isAttention=t.int64();break}case 6:{o.isInterrelation=t.int64();break}case 7:{o.isFollow=t.int64();break}case 8:{o.interactDesc=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.User)return t;let i=new u.bilibili.app.view.v1.User;return t.mid!=null&&(r.Long?(i.mid=r.Long.fromValue(t.mid)).unsigned=!1:typeof t.mid=="string"?i.mid=parseInt(t.mid,10):typeof t.mid=="number"?i.mid=t.mid:typeof t.mid=="object"&&(i.mid=new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber())),t.name!=null&&(i.name=String(t.name)),t.face!=null&&(i.face=String(t.face)),t.follower!=null&&(r.Long?(i.follower=r.Long.fromValue(t.follower)).unsigned=!1:typeof t.follower=="string"?i.follower=parseInt(t.follower,10):typeof t.follower=="number"?i.follower=t.follower:typeof t.follower=="object"&&(i.follower=new r.LongBits(t.follower.low>>>0,t.follower.high>>>0).toNumber())),t.isAttention!=null&&(r.Long?(i.isAttention=r.Long.fromValue(t.isAttention)).unsigned=!1:typeof t.isAttention=="string"?i.isAttention=parseInt(t.isAttention,10):typeof t.isAttention=="number"?i.isAttention=t.isAttention:typeof t.isAttention=="object"&&(i.isAttention=new r.LongBits(t.isAttention.low>>>0,t.isAttention.high>>>0).toNumber())),t.isInterrelation!=null&&(r.Long?(i.isInterrelation=r.Long.fromValue(t.isInterrelation)).unsigned=!1:typeof t.isInterrelation=="string"?i.isInterrelation=parseInt(t.isInterrelation,10):typeof t.isInterrelation=="number"?i.isInterrelation=t.isInterrelation:typeof t.isInterrelation=="object"&&(i.isInterrelation=new r.LongBits(t.isInterrelation.low>>>0,t.isInterrelation.high>>>0).toNumber())),t.isFollow!=null&&(r.Long?(i.isFollow=r.Long.fromValue(t.isFollow)).unsigned=!1:typeof t.isFollow=="string"?i.isFollow=parseInt(t.isFollow,10):typeof t.isFollow=="number"?i.isFollow=t.isFollow:typeof t.isFollow=="object"&&(i.isFollow=new r.LongBits(t.isFollow.low>>>0,t.isFollow.high>>>0).toNumber())),t.interactDesc!=null&&(i.interactDesc=String(t.interactDesc)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.mid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mid=i.longs===String?"0":0;if(n.name="",n.face="",r.Long){let o=new r.Long(0,0,!1);n.follower=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.follower=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.isAttention=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.isAttention=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.isInterrelation=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.isInterrelation=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.isFollow=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.isFollow=i.longs===String?"0":0;n.interactDesc=""}return t.mid!=null&&t.hasOwnProperty("mid")&&(typeof t.mid=="number"?n.mid=i.longs===String?String(t.mid):t.mid:n.mid=i.longs===String?r.Long.prototype.toString.call(t.mid):i.longs===Number?new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber():t.mid),t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),t.face!=null&&t.hasOwnProperty("face")&&(n.face=t.face),t.follower!=null&&t.hasOwnProperty("follower")&&(typeof t.follower=="number"?n.follower=i.longs===String?String(t.follower):t.follower:n.follower=i.longs===String?r.Long.prototype.toString.call(t.follower):i.longs===Number?new r.LongBits(t.follower.low>>>0,t.follower.high>>>0).toNumber():t.follower),t.isAttention!=null&&t.hasOwnProperty("isAttention")&&(typeof t.isAttention=="number"?n.isAttention=i.longs===String?String(t.isAttention):t.isAttention:n.isAttention=i.longs===String?r.Long.prototype.toString.call(t.isAttention):i.longs===Number?new r.LongBits(t.isAttention.low>>>0,t.isAttention.high>>>0).toNumber():t.isAttention),t.isInterrelation!=null&&t.hasOwnProperty("isInterrelation")&&(typeof t.isInterrelation=="number"?n.isInterrelation=i.longs===String?String(t.isInterrelation):t.isInterrelation:n.isInterrelation=i.longs===String?r.Long.prototype.toString.call(t.isInterrelation):i.longs===Number?new r.LongBits(t.isInterrelation.low>>>0,t.isInterrelation.high>>>0).toNumber():t.isInterrelation),t.isFollow!=null&&t.hasOwnProperty("isFollow")&&(typeof t.isFollow=="number"?n.isFollow=i.longs===String?String(t.isFollow):t.isFollow:n.isFollow=i.longs===String?r.Long.prototype.toString.call(t.isFollow):i.longs===Number?new r.LongBits(t.isFollow.low>>>0,t.isFollow.high>>>0).toNumber():t.isFollow),t.interactDesc!=null&&t.hasOwnProperty("interactDesc")&&(n.interactDesc=t.interactDesc),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.User"},e}(),c.NftFaceIcon=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.RegionType=t.int32();break}case 2:{o.Icon=t.string();break}case 3:{o.ShowStatus=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.NftFaceIcon)return t;let i=new u.bilibili.app.view.v1.NftFaceIcon;return t.RegionType!=null&&(i.RegionType=t.RegionType|0),t.Icon!=null&&(i.Icon=String(t.Icon)),t.ShowStatus!=null&&(i.ShowStatus=t.ShowStatus|0),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.RegionType=0,n.Icon="",n.ShowStatus=0),t.RegionType!=null&&t.hasOwnProperty("RegionType")&&(n.RegionType=t.RegionType),t.Icon!=null&&t.hasOwnProperty("Icon")&&(n.Icon=t.Icon),t.ShowStatus!=null&&t.hasOwnProperty("ShowStatus")&&(n.ShowStatus=t.ShowStatus),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.NftFaceIcon"},e}(),c.ControlConfig=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.likeShow=u.bilibili.app.view.v1.Control.decode(t,t.uint32());break}case 2:{o.dislikeShow=u.bilibili.app.view.v1.Control.decode(t,t.uint32());break}case 3:{o.coinShow=u.bilibili.app.view.v1.Control.decode(t,t.uint32());break}case 4:{o.favShow=u.bilibili.app.view.v1.Control.decode(t,t.uint32());break}case 5:{o.shareShow=u.bilibili.app.view.v1.Control.decode(t,t.uint32());break}case 6:{o.toastShow=u.bilibili.app.view.v1.Control.decode(t,t.uint32());break}case 7:{o.materialShow=u.bilibili.app.view.v1.Control.decode(t,t.uint32());break}case 8:{o.danmuShow=u.bilibili.app.view.v1.Control.decode(t,t.uint32());break}case 9:{o.remarkShow=u.bilibili.app.view.v1.Control.decode(t,t.uint32());break}case 10:{o.halfDanmuSend=u.bilibili.app.view.v1.Control.decode(t,t.uint32());break}case 11:{o.upShow=u.bilibili.app.view.v1.Control.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.ControlConfig)return t;let i=new u.bilibili.app.view.v1.ControlConfig;if(t.likeShow!=null){if(typeof t.likeShow!="object")throw TypeError(".bilibili.app.view.v1.ControlConfig.likeShow: object expected");i.likeShow=u.bilibili.app.view.v1.Control.fromObject(t.likeShow)}if(t.dislikeShow!=null){if(typeof t.dislikeShow!="object")throw TypeError(".bilibili.app.view.v1.ControlConfig.dislikeShow: object expected");i.dislikeShow=u.bilibili.app.view.v1.Control.fromObject(t.dislikeShow)}if(t.coinShow!=null){if(typeof t.coinShow!="object")throw TypeError(".bilibili.app.view.v1.ControlConfig.coinShow: object expected");i.coinShow=u.bilibili.app.view.v1.Control.fromObject(t.coinShow)}if(t.favShow!=null){if(typeof t.favShow!="object")throw TypeError(".bilibili.app.view.v1.ControlConfig.favShow: object expected");i.favShow=u.bilibili.app.view.v1.Control.fromObject(t.favShow)}if(t.shareShow!=null){if(typeof t.shareShow!="object")throw TypeError(".bilibili.app.view.v1.ControlConfig.shareShow: object expected");i.shareShow=u.bilibili.app.view.v1.Control.fromObject(t.shareShow)}if(t.toastShow!=null){if(typeof t.toastShow!="object")throw TypeError(".bilibili.app.view.v1.ControlConfig.toastShow: object expected");i.toastShow=u.bilibili.app.view.v1.Control.fromObject(t.toastShow)}if(t.materialShow!=null){if(typeof t.materialShow!="object")throw TypeError(".bilibili.app.view.v1.ControlConfig.materialShow: object expected");i.materialShow=u.bilibili.app.view.v1.Control.fromObject(t.materialShow)}if(t.danmuShow!=null){if(typeof t.danmuShow!="object")throw TypeError(".bilibili.app.view.v1.ControlConfig.danmuShow: object expected");i.danmuShow=u.bilibili.app.view.v1.Control.fromObject(t.danmuShow)}if(t.remarkShow!=null){if(typeof t.remarkShow!="object")throw TypeError(".bilibili.app.view.v1.ControlConfig.remarkShow: object expected");i.remarkShow=u.bilibili.app.view.v1.Control.fromObject(t.remarkShow)}if(t.halfDanmuSend!=null){if(typeof t.halfDanmuSend!="object")throw TypeError(".bilibili.app.view.v1.ControlConfig.halfDanmuSend: object expected");i.halfDanmuSend=u.bilibili.app.view.v1.Control.fromObject(t.halfDanmuSend)}if(t.upShow!=null){if(typeof t.upShow!="object")throw TypeError(".bilibili.app.view.v1.ControlConfig.upShow: object expected");i.upShow=u.bilibili.app.view.v1.Control.fromObject(t.upShow)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.likeShow=null,n.dislikeShow=null,n.coinShow=null,n.favShow=null,n.shareShow=null,n.toastShow=null,n.materialShow=null,n.danmuShow=null,n.remarkShow=null,n.halfDanmuSend=null,n.upShow=null),t.likeShow!=null&&t.hasOwnProperty("likeShow")&&(n.likeShow=u.bilibili.app.view.v1.Control.toObject(t.likeShow,i)),t.dislikeShow!=null&&t.hasOwnProperty("dislikeShow")&&(n.dislikeShow=u.bilibili.app.view.v1.Control.toObject(t.dislikeShow,i)),t.coinShow!=null&&t.hasOwnProperty("coinShow")&&(n.coinShow=u.bilibili.app.view.v1.Control.toObject(t.coinShow,i)),t.favShow!=null&&t.hasOwnProperty("favShow")&&(n.favShow=u.bilibili.app.view.v1.Control.toObject(t.favShow,i)),t.shareShow!=null&&t.hasOwnProperty("shareShow")&&(n.shareShow=u.bilibili.app.view.v1.Control.toObject(t.shareShow,i)),t.toastShow!=null&&t.hasOwnProperty("toastShow")&&(n.toastShow=u.bilibili.app.view.v1.Control.toObject(t.toastShow,i)),t.materialShow!=null&&t.hasOwnProperty("materialShow")&&(n.materialShow=u.bilibili.app.view.v1.Control.toObject(t.materialShow,i)),t.danmuShow!=null&&t.hasOwnProperty("danmuShow")&&(n.danmuShow=u.bilibili.app.view.v1.Control.toObject(t.danmuShow,i)),t.remarkShow!=null&&t.hasOwnProperty("remarkShow")&&(n.remarkShow=u.bilibili.app.view.v1.Control.toObject(t.remarkShow,i)),t.halfDanmuSend!=null&&t.hasOwnProperty("halfDanmuSend")&&(n.halfDanmuSend=u.bilibili.app.view.v1.Control.toObject(t.halfDanmuSend,i)),t.upShow!=null&&t.hasOwnProperty("upShow")&&(n.upShow=u.bilibili.app.view.v1.Control.toObject(t.upShow,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.ControlConfig"},e}(),c.Control=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.limit=t.bool();break}case 2:{o.disable=t.bool();break}case 3:{o.disableClickTip=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.Control)return t;let i=new u.bilibili.app.view.v1.Control;return t.limit!=null&&(i.limit=!!t.limit),t.disable!=null&&(i.disable=!!t.disable),t.disableClickTip!=null&&(i.disableClickTip=String(t.disableClickTip)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.limit=!1,n.disable=!1,n.disableClickTip=""),t.limit!=null&&t.hasOwnProperty("limit")&&(n.limit=t.limit),t.disable!=null&&t.hasOwnProperty("disable")&&(n.disable=t.disable),t.disableClickTip!=null&&t.hasOwnProperty("disableClickTip")&&(n.disableClickTip=t.disableClickTip),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.Control"},e}(),c.CoinCustom=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.toast=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.CoinCustom)return t;let i=new u.bilibili.app.view.v1.CoinCustom;return t.toast!=null&&(i.toast=String(t.toast)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.toast=""),t.toast!=null&&t.hasOwnProperty("toast")&&(n.toast=t.toast),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.CoinCustom"},e}(),c.RefreshPage=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.refreshable=t.int32();break}case 2:{o.refreshIcon=t.int32();break}case 3:{o.refreshText=t.string();break}case 4:{o.refreshShow=t.float();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.RefreshPage)return t;let i=new u.bilibili.app.view.v1.RefreshPage;return t.refreshable!=null&&(i.refreshable=t.refreshable|0),t.refreshIcon!=null&&(i.refreshIcon=t.refreshIcon|0),t.refreshText!=null&&(i.refreshText=String(t.refreshText)),t.refreshShow!=null&&(i.refreshShow=Number(t.refreshShow)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.refreshable=0,n.refreshIcon=0,n.refreshText="",n.refreshShow=0),t.refreshable!=null&&t.hasOwnProperty("refreshable")&&(n.refreshable=t.refreshable),t.refreshIcon!=null&&t.hasOwnProperty("refreshIcon")&&(n.refreshIcon=t.refreshIcon),t.refreshText!=null&&t.hasOwnProperty("refreshText")&&(n.refreshText=t.refreshText),t.refreshShow!=null&&t.hasOwnProperty("refreshShow")&&(n.refreshShow=i.json&&!isFinite(t.refreshShow)?String(t.refreshShow):t.refreshShow),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.RefreshPage"},e}(),c.ReplyStyle=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.badgeUrl=t.string();break}case 2:{o.badgeText=t.string();break}case 3:{o.badgeType=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.ReplyStyle)return t;let i=new u.bilibili.app.view.v1.ReplyStyle;return t.badgeUrl!=null&&(i.badgeUrl=String(t.badgeUrl)),t.badgeText!=null&&(i.badgeText=String(t.badgeText)),t.badgeType!=null&&(r.Long?(i.badgeType=r.Long.fromValue(t.badgeType)).unsigned=!1:typeof t.badgeType=="string"?i.badgeType=parseInt(t.badgeType,10):typeof t.badgeType=="number"?i.badgeType=t.badgeType:typeof t.badgeType=="object"&&(i.badgeType=new r.LongBits(t.badgeType.low>>>0,t.badgeType.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(n.badgeUrl="",n.badgeText="",r.Long){let o=new r.Long(0,0,!1);n.badgeType=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.badgeType=i.longs===String?"0":0;return t.badgeUrl!=null&&t.hasOwnProperty("badgeUrl")&&(n.badgeUrl=t.badgeUrl),t.badgeText!=null&&t.hasOwnProperty("badgeText")&&(n.badgeText=t.badgeText),t.badgeType!=null&&t.hasOwnProperty("badgeType")&&(typeof t.badgeType=="number"?n.badgeType=i.longs===String?String(t.badgeType):t.badgeType:n.badgeType=i.longs===String?r.Long.prototype.toString.call(t.badgeType):i.longs===Number?new r.LongBits(t.badgeType.low>>>0,t.badgeType.high>>>0).toNumber():t.badgeType),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.ReplyStyle"},e}(),c.LikeAnimation=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.likeIcon=t.string();break}case 2:{o.likedIcon=t.string();break}case 3:{o.likeAnimation=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.LikeAnimation)return t;let i=new u.bilibili.app.view.v1.LikeAnimation;return t.likeIcon!=null&&(i.likeIcon=String(t.likeIcon)),t.likedIcon!=null&&(i.likedIcon=String(t.likedIcon)),t.likeAnimation!=null&&(i.likeAnimation=String(t.likeAnimation)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.likeIcon="",n.likedIcon="",n.likeAnimation=""),t.likeIcon!=null&&t.hasOwnProperty("likeIcon")&&(n.likeIcon=t.likeIcon),t.likedIcon!=null&&t.hasOwnProperty("likedIcon")&&(n.likedIcon=t.likedIcon),t.likeAnimation!=null&&t.hasOwnProperty("likeAnimation")&&(n.likeAnimation=t.likeAnimation),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.LikeAnimation"},e}(),c.ArcExtra=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.arcPubLocation=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.ArcExtra)return t;let i=new u.bilibili.app.view.v1.ArcExtra;return t.arcPubLocation!=null&&(i.arcPubLocation=String(t.arcPubLocation)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.arcPubLocation=""),t.arcPubLocation!=null&&t.hasOwnProperty("arcPubLocation")&&(n.arcPubLocation=t.arcPubLocation),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.ArcExtra"},e}(),c.PullClientAction=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.type=t.string();break}case 2:{o.pullAction=t.bool();break}case 3:{o.params=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.PullClientAction)return t;let i=new u.bilibili.app.view.v1.PullClientAction;return t.type!=null&&(i.type=String(t.type)),t.pullAction!=null&&(i.pullAction=!!t.pullAction),t.params!=null&&(i.params=String(t.params)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.type="",n.pullAction=!1,n.params=""),t.type!=null&&t.hasOwnProperty("type")&&(n.type=t.type),t.pullAction!=null&&t.hasOwnProperty("pullAction")&&(n.pullAction=t.pullAction),t.params!=null&&t.hasOwnProperty("params")&&(n.params=t.params),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.PullClientAction"},e}(),c.GoodsInfo=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.goodsId=t.string();break}case 2:{o.category=t.int32();break}case 3:{o.goodsPrice=t.int64();break}case 4:{o.payState=t.int32();break}case 5:{o.goodsName=t.string();break}case 6:{o.priceFmt=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.GoodsInfo)return t;let i=new u.bilibili.app.view.v1.GoodsInfo;switch(t.goodsId!=null&&(i.goodsId=String(t.goodsId)),t.category){default:if(typeof t.category=="number"){i.category=t.category;break}break;case"CategoryUnknown":case 0:i.category=0;break;case"CategorySeason":case 1:i.category=1;break}switch(t.goodsPrice!=null&&(r.Long?(i.goodsPrice=r.Long.fromValue(t.goodsPrice)).unsigned=!1:typeof t.goodsPrice=="string"?i.goodsPrice=parseInt(t.goodsPrice,10):typeof t.goodsPrice=="number"?i.goodsPrice=t.goodsPrice:typeof t.goodsPrice=="object"&&(i.goodsPrice=new r.LongBits(t.goodsPrice.low>>>0,t.goodsPrice.high>>>0).toNumber())),t.payState){default:if(typeof t.payState=="number"){i.payState=t.payState;break}break;case"PayStateUnknown":case 0:i.payState=0;break;case"PayStateActive":case 1:i.payState=1;break}return t.goodsName!=null&&(i.goodsName=String(t.goodsName)),t.priceFmt!=null&&(i.priceFmt=String(t.priceFmt)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.goodsId="",n.category=i.enums===String?"CategoryUnknown":0,r.Long){let o=new r.Long(0,0,!1);n.goodsPrice=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.goodsPrice=i.longs===String?"0":0;n.payState=i.enums===String?"PayStateUnknown":0,n.goodsName="",n.priceFmt=""}return t.goodsId!=null&&t.hasOwnProperty("goodsId")&&(n.goodsId=t.goodsId),t.category!=null&&t.hasOwnProperty("category")&&(n.category=i.enums===String?u.bilibili.app.view.v1.Category[t.category]===void 0?t.category:u.bilibili.app.view.v1.Category[t.category]:t.category),t.goodsPrice!=null&&t.hasOwnProperty("goodsPrice")&&(typeof t.goodsPrice=="number"?n.goodsPrice=i.longs===String?String(t.goodsPrice):t.goodsPrice:n.goodsPrice=i.longs===String?r.Long.prototype.toString.call(t.goodsPrice):i.longs===Number?new r.LongBits(t.goodsPrice.low>>>0,t.goodsPrice.high>>>0).toNumber():t.goodsPrice),t.payState!=null&&t.hasOwnProperty("payState")&&(n.payState=i.enums===String?u.bilibili.app.view.v1.PayState[t.payState]===void 0?t.payState:u.bilibili.app.view.v1.PayState[t.payState]:t.payState),t.goodsName!=null&&t.hasOwnProperty("goodsName")&&(n.goodsName=t.goodsName),t.priceFmt!=null&&t.hasOwnProperty("priceFmt")&&(n.priceFmt=t.priceFmt),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.GoodsInfo"},e}(),c.PremiereResource=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.premiere=u.bilibili.app.view.v1.Premiere.decode(t,t.uint32());break}case 2:{o.reserve=u.bilibili.app.view.v1.PremiereReserve.decode(t,t.uint32());break}case 3:{o.text=u.bilibili.app.view.v1.PremiereText.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.PremiereResource)return t;let i=new u.bilibili.app.view.v1.PremiereResource;if(t.premiere!=null){if(typeof t.premiere!="object")throw TypeError(".bilibili.app.view.v1.PremiereResource.premiere: object expected");i.premiere=u.bilibili.app.view.v1.Premiere.fromObject(t.premiere)}if(t.reserve!=null){if(typeof t.reserve!="object")throw TypeError(".bilibili.app.view.v1.PremiereResource.reserve: object expected");i.reserve=u.bilibili.app.view.v1.PremiereReserve.fromObject(t.reserve)}if(t.text!=null){if(typeof t.text!="object")throw TypeError(".bilibili.app.view.v1.PremiereResource.text: object expected");i.text=u.bilibili.app.view.v1.PremiereText.fromObject(t.text)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.premiere=null,n.reserve=null,n.text=null),t.premiere!=null&&t.hasOwnProperty("premiere")&&(n.premiere=u.bilibili.app.view.v1.Premiere.toObject(t.premiere,i)),t.reserve!=null&&t.hasOwnProperty("reserve")&&(n.reserve=u.bilibili.app.view.v1.PremiereReserve.toObject(t.reserve,i)),t.text!=null&&t.hasOwnProperty("text")&&(n.text=u.bilibili.app.view.v1.PremiereText.toObject(t.text,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.PremiereResource"},e}(),c.PremiereReserve=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.reserveId=t.int64();break}case 2:{o.count=t.int64();break}case 3:{o.isFollow=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.PremiereReserve)return t;let i=new u.bilibili.app.view.v1.PremiereReserve;return t.reserveId!=null&&(r.Long?(i.reserveId=r.Long.fromValue(t.reserveId)).unsigned=!1:typeof t.reserveId=="string"?i.reserveId=parseInt(t.reserveId,10):typeof t.reserveId=="number"?i.reserveId=t.reserveId:typeof t.reserveId=="object"&&(i.reserveId=new r.LongBits(t.reserveId.low>>>0,t.reserveId.high>>>0).toNumber())),t.count!=null&&(r.Long?(i.count=r.Long.fromValue(t.count)).unsigned=!1:typeof t.count=="string"?i.count=parseInt(t.count,10):typeof t.count=="number"?i.count=t.count:typeof t.count=="object"&&(i.count=new r.LongBits(t.count.low>>>0,t.count.high>>>0).toNumber())),t.isFollow!=null&&(i.isFollow=!!t.isFollow),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.reserveId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.reserveId=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.count=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.count=i.longs===String?"0":0;n.isFollow=!1}return t.reserveId!=null&&t.hasOwnProperty("reserveId")&&(typeof t.reserveId=="number"?n.reserveId=i.longs===String?String(t.reserveId):t.reserveId:n.reserveId=i.longs===String?r.Long.prototype.toString.call(t.reserveId):i.longs===Number?new r.LongBits(t.reserveId.low>>>0,t.reserveId.high>>>0).toNumber():t.reserveId),t.count!=null&&t.hasOwnProperty("count")&&(typeof t.count=="number"?n.count=i.longs===String?String(t.count):t.count:n.count=i.longs===String?r.Long.prototype.toString.call(t.count):i.longs===Number?new r.LongBits(t.count.low>>>0,t.count.high>>>0).toNumber():t.count),t.isFollow!=null&&t.hasOwnProperty("isFollow")&&(n.isFollow=t.isFollow),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.PremiereReserve"},e}(),c.PremiereText=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.subtitle=t.string();break}case 3:{o.onlineText=t.string();break}case 4:{o.onlineIcon=t.string();break}case 5:{o.onlineIconDark=t.string();break}case 6:{o.introTitle=t.string();break}case 7:{o.introIcon=t.string();break}case 8:{o.guidancePulldown=t.string();break}case 9:{o.guidanceEntry=t.string();break}case 10:{o.introIconNight=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.PremiereText)return t;let i=new u.bilibili.app.view.v1.PremiereText;return t.title!=null&&(i.title=String(t.title)),t.subtitle!=null&&(i.subtitle=String(t.subtitle)),t.onlineText!=null&&(i.onlineText=String(t.onlineText)),t.onlineIcon!=null&&(i.onlineIcon=String(t.onlineIcon)),t.onlineIconDark!=null&&(i.onlineIconDark=String(t.onlineIconDark)),t.introTitle!=null&&(i.introTitle=String(t.introTitle)),t.introIcon!=null&&(i.introIcon=String(t.introIcon)),t.guidancePulldown!=null&&(i.guidancePulldown=String(t.guidancePulldown)),t.guidanceEntry!=null&&(i.guidanceEntry=String(t.guidanceEntry)),t.introIconNight!=null&&(i.introIconNight=String(t.introIconNight)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.title="",n.subtitle="",n.onlineText="",n.onlineIcon="",n.onlineIconDark="",n.introTitle="",n.introIcon="",n.guidancePulldown="",n.guidanceEntry="",n.introIconNight=""),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.subtitle!=null&&t.hasOwnProperty("subtitle")&&(n.subtitle=t.subtitle),t.onlineText!=null&&t.hasOwnProperty("onlineText")&&(n.onlineText=t.onlineText),t.onlineIcon!=null&&t.hasOwnProperty("onlineIcon")&&(n.onlineIcon=t.onlineIcon),t.onlineIconDark!=null&&t.hasOwnProperty("onlineIconDark")&&(n.onlineIconDark=t.onlineIconDark),t.introTitle!=null&&t.hasOwnProperty("introTitle")&&(n.introTitle=t.introTitle),t.introIcon!=null&&t.hasOwnProperty("introIcon")&&(n.introIcon=t.introIcon),t.guidancePulldown!=null&&t.hasOwnProperty("guidancePulldown")&&(n.guidancePulldown=t.guidancePulldown),t.guidanceEntry!=null&&t.hasOwnProperty("guidanceEntry")&&(n.guidanceEntry=t.guidanceEntry),t.introIconNight!=null&&t.hasOwnProperty("introIconNight")&&(n.introIconNight=t.introIconNight),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.PremiereText"},e}(),c.ContinuousPlayReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.aid=t.int64();break}case 2:{o.from=t.string();break}case 3:{o.trackid=t.string();break}case 4:{o.spmid=t.string();break}case 5:{o.fromSpmid=t.string();break}case 6:{o.autoplay=t.int32();break}case 7:{o.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.decode(t,t.uint32());break}case 8:{o.deviceType=t.int64();break}case 9:{o.sessionId=t.string();break}case 10:{o.displayId=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.ContinuousPlayReq)return t;let i=new u.bilibili.app.view.v1.ContinuousPlayReq;if(t.aid!=null&&(r.Long?(i.aid=r.Long.fromValue(t.aid)).unsigned=!1:typeof t.aid=="string"?i.aid=parseInt(t.aid,10):typeof t.aid=="number"?i.aid=t.aid:typeof t.aid=="object"&&(i.aid=new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber())),t.from!=null&&(i.from=String(t.from)),t.trackid!=null&&(i.trackid=String(t.trackid)),t.spmid!=null&&(i.spmid=String(t.spmid)),t.fromSpmid!=null&&(i.fromSpmid=String(t.fromSpmid)),t.autoplay!=null&&(i.autoplay=t.autoplay|0),t.playerArgs!=null){if(typeof t.playerArgs!="object")throw TypeError(".bilibili.app.view.v1.ContinuousPlayReq.playerArgs: object expected");i.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.fromObject(t.playerArgs)}return t.deviceType!=null&&(r.Long?(i.deviceType=r.Long.fromValue(t.deviceType)).unsigned=!1:typeof t.deviceType=="string"?i.deviceType=parseInt(t.deviceType,10):typeof t.deviceType=="number"?i.deviceType=t.deviceType:typeof t.deviceType=="object"&&(i.deviceType=new r.LongBits(t.deviceType.low>>>0,t.deviceType.high>>>0).toNumber())),t.sessionId!=null&&(i.sessionId=String(t.sessionId)),t.displayId!=null&&(r.Long?(i.displayId=r.Long.fromValue(t.displayId)).unsigned=!1:typeof t.displayId=="string"?i.displayId=parseInt(t.displayId,10):typeof t.displayId=="number"?i.displayId=t.displayId:typeof t.displayId=="object"&&(i.displayId=new r.LongBits(t.displayId.low>>>0,t.displayId.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.aid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.aid=i.longs===String?"0":0;if(n.from="",n.trackid="",n.spmid="",n.fromSpmid="",n.autoplay=0,n.playerArgs=null,r.Long){let o=new r.Long(0,0,!1);n.deviceType=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.deviceType=i.longs===String?"0":0;if(n.sessionId="",r.Long){let o=new r.Long(0,0,!1);n.displayId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.displayId=i.longs===String?"0":0}return t.aid!=null&&t.hasOwnProperty("aid")&&(typeof t.aid=="number"?n.aid=i.longs===String?String(t.aid):t.aid:n.aid=i.longs===String?r.Long.prototype.toString.call(t.aid):i.longs===Number?new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber():t.aid),t.from!=null&&t.hasOwnProperty("from")&&(n.from=t.from),t.trackid!=null&&t.hasOwnProperty("trackid")&&(n.trackid=t.trackid),t.spmid!=null&&t.hasOwnProperty("spmid")&&(n.spmid=t.spmid),t.fromSpmid!=null&&t.hasOwnProperty("fromSpmid")&&(n.fromSpmid=t.fromSpmid),t.autoplay!=null&&t.hasOwnProperty("autoplay")&&(n.autoplay=t.autoplay),t.playerArgs!=null&&t.hasOwnProperty("playerArgs")&&(n.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.toObject(t.playerArgs,i)),t.deviceType!=null&&t.hasOwnProperty("deviceType")&&(typeof t.deviceType=="number"?n.deviceType=i.longs===String?String(t.deviceType):t.deviceType:n.deviceType=i.longs===String?r.Long.prototype.toString.call(t.deviceType):i.longs===Number?new r.LongBits(t.deviceType.low>>>0,t.deviceType.high>>>0).toNumber():t.deviceType),t.sessionId!=null&&t.hasOwnProperty("sessionId")&&(n.sessionId=t.sessionId),t.displayId!=null&&t.hasOwnProperty("displayId")&&(typeof t.displayId=="number"?n.displayId=i.longs===String?String(t.displayId):t.displayId:n.displayId=i.longs===String?r.Long.prototype.toString.call(t.displayId):i.longs===Number?new r.LongBits(t.displayId.low>>>0,t.displayId.high>>>0).toNumber():t.displayId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.ContinuousPlayReq"},e}(),c.ContinuousPlayReply=function(){function e(l){if(this.relates=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.relates&&o.relates.length||(o.relates=[]),o.relates.push(u.bilibili.app.view.v1.Relate.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.ContinuousPlayReply)return t;let i=new u.bilibili.app.view.v1.ContinuousPlayReply;if(t.relates){if(!Array.isArray(t.relates))throw TypeError(".bilibili.app.view.v1.ContinuousPlayReply.relates: array expected");i.relates=[];for(let n=0;n>>3){case 1:{o.onlineShow=t.bool();break}case 2:{o.playerOnlineLogo=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.Online)return t;let i=new u.bilibili.app.view.v1.Online;return t.onlineShow!=null&&(i.onlineShow=!!t.onlineShow),t.playerOnlineLogo!=null&&(i.playerOnlineLogo=String(t.playerOnlineLogo)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.onlineShow=!1,n.playerOnlineLogo=""),t.onlineShow!=null&&t.hasOwnProperty("onlineShow")&&(n.onlineShow=t.onlineShow),t.playerOnlineLogo!=null&&t.hasOwnProperty("playerOnlineLogo")&&(n.playerOnlineLogo=t.playerOnlineLogo),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.Online"},e}(),c.LikeCustom=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.likeSwitch=t.bool();break}case 2:{o.fullToHalfProgress=t.int64();break}case 3:{o.nonFullProgress=t.int64();break}case 4:{o.updateCount=t.int64();break}case 5:{o.immediatelyUpgrade=t.bool();break}case 6:{o.likeComment=u.bilibili.app.view.v1.LikeComment.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.LikeCustom)return t;let i=new u.bilibili.app.view.v1.LikeCustom;if(t.likeSwitch!=null&&(i.likeSwitch=!!t.likeSwitch),t.fullToHalfProgress!=null&&(r.Long?(i.fullToHalfProgress=r.Long.fromValue(t.fullToHalfProgress)).unsigned=!1:typeof t.fullToHalfProgress=="string"?i.fullToHalfProgress=parseInt(t.fullToHalfProgress,10):typeof t.fullToHalfProgress=="number"?i.fullToHalfProgress=t.fullToHalfProgress:typeof t.fullToHalfProgress=="object"&&(i.fullToHalfProgress=new r.LongBits(t.fullToHalfProgress.low>>>0,t.fullToHalfProgress.high>>>0).toNumber())),t.nonFullProgress!=null&&(r.Long?(i.nonFullProgress=r.Long.fromValue(t.nonFullProgress)).unsigned=!1:typeof t.nonFullProgress=="string"?i.nonFullProgress=parseInt(t.nonFullProgress,10):typeof t.nonFullProgress=="number"?i.nonFullProgress=t.nonFullProgress:typeof t.nonFullProgress=="object"&&(i.nonFullProgress=new r.LongBits(t.nonFullProgress.low>>>0,t.nonFullProgress.high>>>0).toNumber())),t.updateCount!=null&&(r.Long?(i.updateCount=r.Long.fromValue(t.updateCount)).unsigned=!1:typeof t.updateCount=="string"?i.updateCount=parseInt(t.updateCount,10):typeof t.updateCount=="number"?i.updateCount=t.updateCount:typeof t.updateCount=="object"&&(i.updateCount=new r.LongBits(t.updateCount.low>>>0,t.updateCount.high>>>0).toNumber())),t.immediatelyUpgrade!=null&&(i.immediatelyUpgrade=!!t.immediatelyUpgrade),t.likeComment!=null){if(typeof t.likeComment!="object")throw TypeError(".bilibili.app.view.v1.LikeCustom.likeComment: object expected");i.likeComment=u.bilibili.app.view.v1.LikeComment.fromObject(t.likeComment)}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.likeSwitch=!1,r.Long){let o=new r.Long(0,0,!1);n.fullToHalfProgress=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.fullToHalfProgress=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.nonFullProgress=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.nonFullProgress=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.updateCount=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.updateCount=i.longs===String?"0":0;n.immediatelyUpgrade=!1,n.likeComment=null}return t.likeSwitch!=null&&t.hasOwnProperty("likeSwitch")&&(n.likeSwitch=t.likeSwitch),t.fullToHalfProgress!=null&&t.hasOwnProperty("fullToHalfProgress")&&(typeof t.fullToHalfProgress=="number"?n.fullToHalfProgress=i.longs===String?String(t.fullToHalfProgress):t.fullToHalfProgress:n.fullToHalfProgress=i.longs===String?r.Long.prototype.toString.call(t.fullToHalfProgress):i.longs===Number?new r.LongBits(t.fullToHalfProgress.low>>>0,t.fullToHalfProgress.high>>>0).toNumber():t.fullToHalfProgress),t.nonFullProgress!=null&&t.hasOwnProperty("nonFullProgress")&&(typeof t.nonFullProgress=="number"?n.nonFullProgress=i.longs===String?String(t.nonFullProgress):t.nonFullProgress:n.nonFullProgress=i.longs===String?r.Long.prototype.toString.call(t.nonFullProgress):i.longs===Number?new r.LongBits(t.nonFullProgress.low>>>0,t.nonFullProgress.high>>>0).toNumber():t.nonFullProgress),t.updateCount!=null&&t.hasOwnProperty("updateCount")&&(typeof t.updateCount=="number"?n.updateCount=i.longs===String?String(t.updateCount):t.updateCount:n.updateCount=i.longs===String?r.Long.prototype.toString.call(t.updateCount):i.longs===Number?new r.LongBits(t.updateCount.low>>>0,t.updateCount.high>>>0).toNumber():t.updateCount),t.immediatelyUpgrade!=null&&t.hasOwnProperty("immediatelyUpgrade")&&(n.immediatelyUpgrade=t.immediatelyUpgrade),t.likeComment!=null&&t.hasOwnProperty("likeComment")&&(n.likeComment=u.bilibili.app.view.v1.LikeComment.toObject(t.likeComment,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.LikeCustom"},e}(),c.LikeComment=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.reply=t.string();break}case 2:{o.title=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.LikeComment)return t;let i=new u.bilibili.app.view.v1.LikeComment;return t.reply!=null&&(i.reply=String(t.reply)),t.title!=null&&(i.title=String(t.title)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.reply="",n.title=""),t.reply!=null&&t.hasOwnProperty("reply")&&(n.reply=t.reply),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.LikeComment"},e}(),c.UpLikeImg=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.preImg=t.string();break}case 2:{o.sucImg=t.string();break}case 3:{o.content=t.string();break}case 4:{o.type=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.UpLikeImg)return t;let i=new u.bilibili.app.view.v1.UpLikeImg;return t.preImg!=null&&(i.preImg=String(t.preImg)),t.sucImg!=null&&(i.sucImg=String(t.sucImg)),t.content!=null&&(i.content=String(t.content)),t.type!=null&&(r.Long?(i.type=r.Long.fromValue(t.type)).unsigned=!1:typeof t.type=="string"?i.type=parseInt(t.type,10):typeof t.type=="number"?i.type=t.type:typeof t.type=="object"&&(i.type=new r.LongBits(t.type.low>>>0,t.type.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(n.preImg="",n.sucImg="",n.content="",r.Long){let o=new r.Long(0,0,!1);n.type=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.type=i.longs===String?"0":0;return t.preImg!=null&&t.hasOwnProperty("preImg")&&(n.preImg=t.preImg),t.sucImg!=null&&t.hasOwnProperty("sucImg")&&(n.sucImg=t.sucImg),t.content!=null&&t.hasOwnProperty("content")&&(n.content=t.content),t.type!=null&&t.hasOwnProperty("type")&&(typeof t.type=="number"?n.type=i.longs===String?String(t.type):t.type:n.type=i.longs===String?r.Long.prototype.toString.call(t.type):i.longs===Number?new r.LongBits(t.type.low>>>0,t.type.high>>>0).toNumber():t.type),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.UpLikeImg"},e}(),c.ViewMaterial=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.oid=t.int64();break}case 2:{o.mid=t.int64();break}case 3:{o.title=t.string();break}case 4:{o.author=t.string();break}case 5:{o.jumpUrl=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.ViewMaterial)return t;let i=new u.bilibili.app.view.v1.ViewMaterial;return t.oid!=null&&(r.Long?(i.oid=r.Long.fromValue(t.oid)).unsigned=!1:typeof t.oid=="string"?i.oid=parseInt(t.oid,10):typeof t.oid=="number"?i.oid=t.oid:typeof t.oid=="object"&&(i.oid=new r.LongBits(t.oid.low>>>0,t.oid.high>>>0).toNumber())),t.mid!=null&&(r.Long?(i.mid=r.Long.fromValue(t.mid)).unsigned=!1:typeof t.mid=="string"?i.mid=parseInt(t.mid,10):typeof t.mid=="number"?i.mid=t.mid:typeof t.mid=="object"&&(i.mid=new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber())),t.title!=null&&(i.title=String(t.title)),t.author!=null&&(i.author=String(t.author)),t.jumpUrl!=null&&(i.jumpUrl=String(t.jumpUrl)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.oid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.oid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.mid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mid=i.longs===String?"0":0;n.title="",n.author="",n.jumpUrl=""}return t.oid!=null&&t.hasOwnProperty("oid")&&(typeof t.oid=="number"?n.oid=i.longs===String?String(t.oid):t.oid:n.oid=i.longs===String?r.Long.prototype.toString.call(t.oid):i.longs===Number?new r.LongBits(t.oid.low>>>0,t.oid.high>>>0).toNumber():t.oid),t.mid!=null&&t.hasOwnProperty("mid")&&(typeof t.mid=="number"?n.mid=i.longs===String?String(t.mid):t.mid:n.mid=i.longs===String?r.Long.prototype.toString.call(t.mid):i.longs===Number?new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber():t.mid),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.author!=null&&t.hasOwnProperty("author")&&(n.author=t.author),t.jumpUrl!=null&&t.hasOwnProperty("jumpUrl")&&(n.jumpUrl=t.jumpUrl),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.ViewMaterial"},e}(),c.CmIpad=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.cm=u.bilibili.app.view.v1.CM.decode(t,t.uint32());break}case 2:{o.author=u.archive.service.v1.Author.decode(t,t.uint32());break}case 3:{o.stat=u.archive.service.v1.Stat.decode(t,t.uint32());break}case 4:{o.duration=t.int64();break}case 5:{o.aid=t.int64();break}case 6:{o.statV2=u.bilibili.app.view.v1.ArchiveStat.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.CmIpad)return t;let i=new u.bilibili.app.view.v1.CmIpad;if(t.cm!=null){if(typeof t.cm!="object")throw TypeError(".bilibili.app.view.v1.CmIpad.cm: object expected");i.cm=u.bilibili.app.view.v1.CM.fromObject(t.cm)}if(t.author!=null){if(typeof t.author!="object")throw TypeError(".bilibili.app.view.v1.CmIpad.author: object expected");i.author=u.archive.service.v1.Author.fromObject(t.author)}if(t.stat!=null){if(typeof t.stat!="object")throw TypeError(".bilibili.app.view.v1.CmIpad.stat: object expected");i.stat=u.archive.service.v1.Stat.fromObject(t.stat)}if(t.duration!=null&&(r.Long?(i.duration=r.Long.fromValue(t.duration)).unsigned=!1:typeof t.duration=="string"?i.duration=parseInt(t.duration,10):typeof t.duration=="number"?i.duration=t.duration:typeof t.duration=="object"&&(i.duration=new r.LongBits(t.duration.low>>>0,t.duration.high>>>0).toNumber())),t.aid!=null&&(r.Long?(i.aid=r.Long.fromValue(t.aid)).unsigned=!1:typeof t.aid=="string"?i.aid=parseInt(t.aid,10):typeof t.aid=="number"?i.aid=t.aid:typeof t.aid=="object"&&(i.aid=new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber())),t.statV2!=null){if(typeof t.statV2!="object")throw TypeError(".bilibili.app.view.v1.CmIpad.statV2: object expected");i.statV2=u.bilibili.app.view.v1.ArchiveStat.fromObject(t.statV2)}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.cm=null,n.author=null,n.stat=null,r.Long){let o=new r.Long(0,0,!1);n.duration=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.duration=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.aid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.aid=i.longs===String?"0":0;n.statV2=null}return t.cm!=null&&t.hasOwnProperty("cm")&&(n.cm=u.bilibili.app.view.v1.CM.toObject(t.cm,i)),t.author!=null&&t.hasOwnProperty("author")&&(n.author=u.archive.service.v1.Author.toObject(t.author,i)),t.stat!=null&&t.hasOwnProperty("stat")&&(n.stat=u.archive.service.v1.Stat.toObject(t.stat,i)),t.duration!=null&&t.hasOwnProperty("duration")&&(typeof t.duration=="number"?n.duration=i.longs===String?String(t.duration):t.duration:n.duration=i.longs===String?r.Long.prototype.toString.call(t.duration):i.longs===Number?new r.LongBits(t.duration.low>>>0,t.duration.high>>>0).toNumber():t.duration),t.aid!=null&&t.hasOwnProperty("aid")&&(typeof t.aid=="number"?n.aid=i.longs===String?String(t.aid):t.aid:n.aid=i.longs===String?r.Long.prototype.toString.call(t.aid):i.longs===Number?new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber():t.aid),t.statV2!=null&&t.hasOwnProperty("statV2")&&(n.statV2=u.bilibili.app.view.v1.ArchiveStat.toObject(t.statV2,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.CmIpad"},e}(),c.LiveOrderInfo=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.sid=t.int64();break}case 2:{o.text=t.string();break}case 3:{o.livePlanStartTime=t.int64();break}case 4:{o.isFollow=t.bool();break}case 5:{o.followCount=t.int64();break}case 6:{o.style=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.LiveOrderInfo)return t;let i=new u.bilibili.app.view.v1.LiveOrderInfo;return t.sid!=null&&(r.Long?(i.sid=r.Long.fromValue(t.sid)).unsigned=!1:typeof t.sid=="string"?i.sid=parseInt(t.sid,10):typeof t.sid=="number"?i.sid=t.sid:typeof t.sid=="object"&&(i.sid=new r.LongBits(t.sid.low>>>0,t.sid.high>>>0).toNumber())),t.text!=null&&(i.text=String(t.text)),t.livePlanStartTime!=null&&(r.Long?(i.livePlanStartTime=r.Long.fromValue(t.livePlanStartTime)).unsigned=!1:typeof t.livePlanStartTime=="string"?i.livePlanStartTime=parseInt(t.livePlanStartTime,10):typeof t.livePlanStartTime=="number"?i.livePlanStartTime=t.livePlanStartTime:typeof t.livePlanStartTime=="object"&&(i.livePlanStartTime=new r.LongBits(t.livePlanStartTime.low>>>0,t.livePlanStartTime.high>>>0).toNumber())),t.isFollow!=null&&(i.isFollow=!!t.isFollow),t.followCount!=null&&(r.Long?(i.followCount=r.Long.fromValue(t.followCount)).unsigned=!1:typeof t.followCount=="string"?i.followCount=parseInt(t.followCount,10):typeof t.followCount=="number"?i.followCount=t.followCount:typeof t.followCount=="object"&&(i.followCount=new r.LongBits(t.followCount.low>>>0,t.followCount.high>>>0).toNumber())),t.style!=null&&(i.style=String(t.style)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.sid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.sid=i.longs===String?"0":0;if(n.text="",r.Long){let o=new r.Long(0,0,!1);n.livePlanStartTime=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.livePlanStartTime=i.longs===String?"0":0;if(n.isFollow=!1,r.Long){let o=new r.Long(0,0,!1);n.followCount=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.followCount=i.longs===String?"0":0;n.style=""}return t.sid!=null&&t.hasOwnProperty("sid")&&(typeof t.sid=="number"?n.sid=i.longs===String?String(t.sid):t.sid:n.sid=i.longs===String?r.Long.prototype.toString.call(t.sid):i.longs===Number?new r.LongBits(t.sid.low>>>0,t.sid.high>>>0).toNumber():t.sid),t.text!=null&&t.hasOwnProperty("text")&&(n.text=t.text),t.livePlanStartTime!=null&&t.hasOwnProperty("livePlanStartTime")&&(typeof t.livePlanStartTime=="number"?n.livePlanStartTime=i.longs===String?String(t.livePlanStartTime):t.livePlanStartTime:n.livePlanStartTime=i.longs===String?r.Long.prototype.toString.call(t.livePlanStartTime):i.longs===Number?new r.LongBits(t.livePlanStartTime.low>>>0,t.livePlanStartTime.high>>>0).toNumber():t.livePlanStartTime),t.isFollow!=null&&t.hasOwnProperty("isFollow")&&(n.isFollow=t.isFollow),t.followCount!=null&&t.hasOwnProperty("followCount")&&(typeof t.followCount=="number"?n.followCount=i.longs===String?String(t.followCount):t.followCount:n.followCount=i.longs===String?r.Long.prototype.toString.call(t.followCount):i.longs===Number?new r.LongBits(t.followCount.low>>>0,t.followCount.high>>>0).toNumber():t.followCount),t.style!=null&&t.hasOwnProperty("style")&&(n.style=t.style),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.LiveOrderInfo"},e}(),c.ActivitySeason=function(){function e(l){if(this.pages=[],this.staff=[],this.descV2=[],this.specialCellNew=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.arc=u.archive.service.v1.Arc.decode(t,t.uint32());break}case 2:{o.pages&&o.pages.length||(o.pages=[]),o.pages.push(u.bilibili.app.view.v1.ViewPage.decode(t,t.uint32()));break}case 3:{o.ownerExt=u.bilibili.app.view.v1.OnwerExt.decode(t,t.uint32());break}case 4:{o.reqUser=u.bilibili.app.view.v1.ReqUser.decode(t,t.uint32());break}case 5:{o.elecRank=u.bilibili.app.view.v1.ElecRank.decode(t,t.uint32());break}case 6:{o.history=u.bilibili.app.view.v1.History.decode(t,t.uint32());break}case 7:{o.bvid=t.string();break}case 8:{o.honor=u.bilibili.app.view.v1.Honor.decode(t,t.uint32());break}case 9:{o.staff&&o.staff.length||(o.staff=[]),o.staff.push(u.bilibili.app.view.v1.Staff.decode(t,t.uint32()));break}case 10:{o.ugcSeason=u.bilibili.app.view.v1.UgcSeason.decode(t,t.uint32());break}case 11:{o.tab=u.bilibili.app.view.v1.Tab.decode(t,t.uint32());break}case 12:{o.rank=u.bilibili.app.view.v1.Rank.decode(t,t.uint32());break}case 13:{o.order=u.bilibili.app.view.v1.Order.decode(t,t.uint32());break}case 14:{o.supportDislike=t.bool();break}case 15:{o.operationRelate=u.bilibili.app.view.v1.OperationRelate.decode(t,t.uint32());break}case 16:{o.activityResource=u.bilibili.app.view.v1.ActivityResource.decode(t,t.uint32());break}case 17:{o.shortLink=t.string();break}case 18:{o.label=u.bilibili.app.view.v1.Label.decode(t,t.uint32());break}case 19:{o.dislike=u.bilibili.app.view.v1.Dislike.decode(t,t.uint32());break}case 20:{o.playerIcon=u.bilibili.app.view.v1.PlayerIcon.decode(t,t.uint32());break}case 21:{o.shareSubtitle=t.string();break}case 22:{o.cmConfig=u.bilibili.app.view.v1.CMConfig.decode(t,t.uint32());break}case 23:{o.tfPanelCustomized=u.bilibili.app.view.v1.TFPanelCustomized.decode(t,t.uint32());break}case 24:{o.argueMsg=t.string();break}case 25:{o.ecode=t.int32();break}case 26:{o.customConfig=u.bilibili.app.view.v1.CustomConfig.decode(t,t.uint32());break}case 27:{o.badgeUrl=t.string();break}case 28:{o.descV2&&o.descV2.length||(o.descV2=[]),o.descV2.push(u.bilibili.app.view.v1.DescV2.decode(t,t.uint32()));break}case 29:{o.config=u.bilibili.app.view.v1.Config.decode(t,t.uint32());break}case 30:{o.online=u.bilibili.app.view.v1.Online.decode(t,t.uint32());break}case 31:{o.arcExtra=u.bilibili.app.view.v1.ArcExtra.decode(t,t.uint32());break}case 32:{o.replyPreface=u.bilibili.app.view.v1.ReplyStyle.decode(t,t.uint32());break}case 33:{o.upLikeImg=u.bilibili.app.view.v1.UpLikeImg.decode(t,t.uint32());break}case 34:{o.specialCellNew&&o.specialCellNew.length||(o.specialCellNew=[]),o.specialCellNew.push(u.bilibili.app.view.v1.SpecialCell.decode(t,t.uint32()));break}case 35:{o.likeAnimation=u.bilibili.app.view.v1.LikeAnimation.decode(t,t.uint32());break}case 36:{o.userGarb=u.bilibili.app.view.v1.UserGarb.decode(t,t.uint32());break}case 37:{o.controlConfig=u.bilibili.app.view.v1.ControlConfig.decode(t,t.uint32());break}case 38:{o.coinStyle=u.bilibili.app.view.v1.CoinStyle.decode(t,t.uint32());break}case 39:{o.rabbitYear=u.bilibili.app.view.v1.RabbitYear.decode(t,t.uint32());break}case 40:{o.statV2=u.bilibili.app.view.v1.ArchiveStat.decode(t,t.uint32());break}case 41:{o.argueBar=u.bilibili.app.view.v1.ArgueBar.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.ActivitySeason)return t;let i=new u.bilibili.app.view.v1.ActivitySeason;if(t.arc!=null){if(typeof t.arc!="object")throw TypeError(".bilibili.app.view.v1.ActivitySeason.arc: object expected");i.arc=u.archive.service.v1.Arc.fromObject(t.arc)}if(t.pages){if(!Array.isArray(t.pages))throw TypeError(".bilibili.app.view.v1.ActivitySeason.pages: array expected");i.pages=[];for(let n=0;n>>3){case 1:{o.playerAutomate=u.bilibili.app.view.v1.PlayerAutomate.decode(t,t.uint32());break}case 2:{o.dmSummon=u.bilibili.app.view.v1.DmSummon.decode(t,t.uint32());break}case 3:{o.halfScreen=u.bilibili.app.view.v1.HalfScreen.decode(t,t.uint32());break}case 4:{o.specialDm=u.bilibili.app.view.v1.SpecialDm.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.RabbitYear)return t;let i=new u.bilibili.app.view.v1.RabbitYear;if(t.playerAutomate!=null){if(typeof t.playerAutomate!="object")throw TypeError(".bilibili.app.view.v1.RabbitYear.playerAutomate: object expected");i.playerAutomate=u.bilibili.app.view.v1.PlayerAutomate.fromObject(t.playerAutomate)}if(t.dmSummon!=null){if(typeof t.dmSummon!="object")throw TypeError(".bilibili.app.view.v1.RabbitYear.dmSummon: object expected");i.dmSummon=u.bilibili.app.view.v1.DmSummon.fromObject(t.dmSummon)}if(t.halfScreen!=null){if(typeof t.halfScreen!="object")throw TypeError(".bilibili.app.view.v1.RabbitYear.halfScreen: object expected");i.halfScreen=u.bilibili.app.view.v1.HalfScreen.fromObject(t.halfScreen)}if(t.specialDm!=null){if(typeof t.specialDm!="object")throw TypeError(".bilibili.app.view.v1.RabbitYear.specialDm: object expected");i.specialDm=u.bilibili.app.view.v1.SpecialDm.fromObject(t.specialDm)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.playerAutomate=null,n.dmSummon=null,n.halfScreen=null,n.specialDm=null),t.playerAutomate!=null&&t.hasOwnProperty("playerAutomate")&&(n.playerAutomate=u.bilibili.app.view.v1.PlayerAutomate.toObject(t.playerAutomate,i)),t.dmSummon!=null&&t.hasOwnProperty("dmSummon")&&(n.dmSummon=u.bilibili.app.view.v1.DmSummon.toObject(t.dmSummon,i)),t.halfScreen!=null&&t.hasOwnProperty("halfScreen")&&(n.halfScreen=u.bilibili.app.view.v1.HalfScreen.toObject(t.halfScreen,i)),t.specialDm!=null&&t.hasOwnProperty("specialDm")&&(n.specialDm=u.bilibili.app.view.v1.SpecialDm.toObject(t.specialDm,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.RabbitYear"},e}(),c.SpecialDm=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.start=t.int64();break}case 2:{o.end=t.int64();break}case 3:{o.isDisplay=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.SpecialDm)return t;let i=new u.bilibili.app.view.v1.SpecialDm;return t.start!=null&&(r.Long?(i.start=r.Long.fromValue(t.start)).unsigned=!1:typeof t.start=="string"?i.start=parseInt(t.start,10):typeof t.start=="number"?i.start=t.start:typeof t.start=="object"&&(i.start=new r.LongBits(t.start.low>>>0,t.start.high>>>0).toNumber())),t.end!=null&&(r.Long?(i.end=r.Long.fromValue(t.end)).unsigned=!1:typeof t.end=="string"?i.end=parseInt(t.end,10):typeof t.end=="number"?i.end=t.end:typeof t.end=="object"&&(i.end=new r.LongBits(t.end.low>>>0,t.end.high>>>0).toNumber())),t.isDisplay!=null&&(i.isDisplay=!!t.isDisplay),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.start=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.start=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.end=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.end=i.longs===String?"0":0;n.isDisplay=!1}return t.start!=null&&t.hasOwnProperty("start")&&(typeof t.start=="number"?n.start=i.longs===String?String(t.start):t.start:n.start=i.longs===String?r.Long.prototype.toString.call(t.start):i.longs===Number?new r.LongBits(t.start.low>>>0,t.start.high>>>0).toNumber():t.start),t.end!=null&&t.hasOwnProperty("end")&&(typeof t.end=="number"?n.end=i.longs===String?String(t.end):t.end:n.end=i.longs===String?r.Long.prototype.toString.call(t.end):i.longs===Number?new r.LongBits(t.end.low>>>0,t.end.high>>>0).toNumber():t.end),t.isDisplay!=null&&t.hasOwnProperty("isDisplay")&&(n.isDisplay=t.isDisplay),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.SpecialDm"},e}(),c.PlayerAutomate=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.dailyMax=t.int64();break}case 2:{o.url=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.PlayerAutomate)return t;let i=new u.bilibili.app.view.v1.PlayerAutomate;return t.dailyMax!=null&&(r.Long?(i.dailyMax=r.Long.fromValue(t.dailyMax)).unsigned=!1:typeof t.dailyMax=="string"?i.dailyMax=parseInt(t.dailyMax,10):typeof t.dailyMax=="number"?i.dailyMax=t.dailyMax:typeof t.dailyMax=="object"&&(i.dailyMax=new r.LongBits(t.dailyMax.low>>>0,t.dailyMax.high>>>0).toNumber())),t.url!=null&&(i.url=String(t.url)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.dailyMax=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.dailyMax=i.longs===String?"0":0;n.url=""}return t.dailyMax!=null&&t.hasOwnProperty("dailyMax")&&(typeof t.dailyMax=="number"?n.dailyMax=i.longs===String?String(t.dailyMax):t.dailyMax:n.dailyMax=i.longs===String?r.Long.prototype.toString.call(t.dailyMax):i.longs===Number?new r.LongBits(t.dailyMax.low>>>0,t.dailyMax.high>>>0).toNumber():t.dailyMax),t.url!=null&&t.hasOwnProperty("url")&&(n.url=t.url),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.PlayerAutomate"},e}(),c.DmSummon=function(){function e(l){if(this.title=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title&&o.title.length||(o.title=[]),o.title.push(t.string());break}case 2:{o.url=t.string();break}case 3:{o.errMsg=t.string();break}case 4:{o.longContent=t.string();break}case 5:{o.shortContent=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.DmSummon)return t;let i=new u.bilibili.app.view.v1.DmSummon;if(t.title){if(!Array.isArray(t.title))throw TypeError(".bilibili.app.view.v1.DmSummon.title: array expected");i.title=[];for(let n=0;n>>3){case 1:{o.dailyMax=t.int64();break}case 2:{o.url=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.HalfScreen)return t;let i=new u.bilibili.app.view.v1.HalfScreen;return t.dailyMax!=null&&(r.Long?(i.dailyMax=r.Long.fromValue(t.dailyMax)).unsigned=!1:typeof t.dailyMax=="string"?i.dailyMax=parseInt(t.dailyMax,10):typeof t.dailyMax=="number"?i.dailyMax=t.dailyMax:typeof t.dailyMax=="object"&&(i.dailyMax=new r.LongBits(t.dailyMax.low>>>0,t.dailyMax.high>>>0).toNumber())),t.url!=null&&(i.url=String(t.url)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.dailyMax=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.dailyMax=i.longs===String?"0":0;n.url=""}return t.dailyMax!=null&&t.hasOwnProperty("dailyMax")&&(typeof t.dailyMax=="number"?n.dailyMax=i.longs===String?String(t.dailyMax):t.dailyMax:n.dailyMax=i.longs===String?r.Long.prototype.toString.call(t.dailyMax):i.longs===Number?new r.LongBits(t.dailyMax.low>>>0,t.dailyMax.high>>>0).toNumber():t.dailyMax),t.url!=null&&t.hasOwnProperty("url")&&(n.url=t.url),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.HalfScreen"},e}(),c.DescV2=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.text=t.string();break}case 2:{o.type=t.int32();break}case 3:{o.uri=t.string();break}case 4:{o.rid=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.DescV2)return t;let i=new u.bilibili.app.view.v1.DescV2;switch(t.text!=null&&(i.text=String(t.text)),t.type){default:if(typeof t.type=="number"){i.type=t.type;break}break;case"DescTypeUnknown":case 0:i.type=0;break;case"DescTypeText":case 1:i.type=1;break;case"DescTypeAt":case 2:i.type=2;break}return t.uri!=null&&(i.uri=String(t.uri)),t.rid!=null&&(r.Long?(i.rid=r.Long.fromValue(t.rid)).unsigned=!1:typeof t.rid=="string"?i.rid=parseInt(t.rid,10):typeof t.rid=="number"?i.rid=t.rid:typeof t.rid=="object"&&(i.rid=new r.LongBits(t.rid.low>>>0,t.rid.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(n.text="",n.type=i.enums===String?"DescTypeUnknown":0,n.uri="",r.Long){let o=new r.Long(0,0,!1);n.rid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.rid=i.longs===String?"0":0;return t.text!=null&&t.hasOwnProperty("text")&&(n.text=t.text),t.type!=null&&t.hasOwnProperty("type")&&(n.type=i.enums===String?u.bilibili.app.view.v1.DescType[t.type]===void 0?t.type:u.bilibili.app.view.v1.DescType[t.type]:t.type),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),t.rid!=null&&t.hasOwnProperty("rid")&&(typeof t.rid=="number"?n.rid=i.longs===String?String(t.rid):t.rid:n.rid=i.longs===String?r.Long.prototype.toString.call(t.rid):i.longs===Number?new r.LongBits(t.rid.low>>>0,t.rid.high>>>0).toNumber():t.rid),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.DescV2"},e}(),c.DescType=function(){let e={},l=Object.create(e);return l[e[0]="DescTypeUnknown"]=0,l[e[1]="DescTypeText"]=1,l[e[2]="DescTypeAt"]=2,l}(),c.ActivityResource=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.modPoolName=t.string();break}case 2:{o.modResourceName=t.string();break}case 3:{o.bgColor=t.string();break}case 4:{o.selectedBgColor=t.string();break}case 5:{o.textColor=t.string();break}case 6:{o.lightTextColor=t.string();break}case 7:{o.darkTextColor=t.string();break}case 8:{o.dividerColor=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.ActivityResource)return t;let i=new u.bilibili.app.view.v1.ActivityResource;return t.modPoolName!=null&&(i.modPoolName=String(t.modPoolName)),t.modResourceName!=null&&(i.modResourceName=String(t.modResourceName)),t.bgColor!=null&&(i.bgColor=String(t.bgColor)),t.selectedBgColor!=null&&(i.selectedBgColor=String(t.selectedBgColor)),t.textColor!=null&&(i.textColor=String(t.textColor)),t.lightTextColor!=null&&(i.lightTextColor=String(t.lightTextColor)),t.darkTextColor!=null&&(i.darkTextColor=String(t.darkTextColor)),t.dividerColor!=null&&(i.dividerColor=String(t.dividerColor)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.modPoolName="",n.modResourceName="",n.bgColor="",n.selectedBgColor="",n.textColor="",n.lightTextColor="",n.darkTextColor="",n.dividerColor=""),t.modPoolName!=null&&t.hasOwnProperty("modPoolName")&&(n.modPoolName=t.modPoolName),t.modResourceName!=null&&t.hasOwnProperty("modResourceName")&&(n.modResourceName=t.modResourceName),t.bgColor!=null&&t.hasOwnProperty("bgColor")&&(n.bgColor=t.bgColor),t.selectedBgColor!=null&&t.hasOwnProperty("selectedBgColor")&&(n.selectedBgColor=t.selectedBgColor),t.textColor!=null&&t.hasOwnProperty("textColor")&&(n.textColor=t.textColor),t.lightTextColor!=null&&t.hasOwnProperty("lightTextColor")&&(n.lightTextColor=t.lightTextColor),t.darkTextColor!=null&&t.hasOwnProperty("darkTextColor")&&(n.darkTextColor=t.darkTextColor),t.dividerColor!=null&&t.hasOwnProperty("dividerColor")&&(n.dividerColor=t.dividerColor),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.ActivityResource"},e}(),c.OperationRelate=function(){function e(l){if(this.relateItem=[],this.aiRelateItem=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.relateItem&&o.relateItem.length||(o.relateItem=[]),o.relateItem.push(u.bilibili.app.view.v1.RelateItem.decode(t,t.uint32()));break}case 3:{o.aiRelateItem&&o.aiRelateItem.length||(o.aiRelateItem=[]),o.aiRelateItem.push(u.bilibili.app.view.v1.Relate.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.OperationRelate)return t;let i=new u.bilibili.app.view.v1.OperationRelate;if(t.title!=null&&(i.title=String(t.title)),t.relateItem){if(!Array.isArray(t.relateItem))throw TypeError(".bilibili.app.view.v1.OperationRelate.relateItem: array expected");i.relateItem=[];for(let n=0;n>>3){case 1:{o.url=t.string();break}case 2:{o.cover=t.string();break}case 3:{o.useDefaultBrowser=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.RelateItem)return t;let i=new u.bilibili.app.view.v1.RelateItem;return t.url!=null&&(i.url=String(t.url)),t.cover!=null&&(i.cover=String(t.cover)),t.useDefaultBrowser!=null&&(i.useDefaultBrowser=!!t.useDefaultBrowser),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.url="",n.cover="",n.useDefaultBrowser=!1),t.url!=null&&t.hasOwnProperty("url")&&(n.url=t.url),t.cover!=null&&t.hasOwnProperty("cover")&&(n.cover=t.cover),t.useDefaultBrowser!=null&&t.hasOwnProperty("useDefaultBrowser")&&(n.useDefaultBrowser=t.useDefaultBrowser),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.RelateItem"},e}(),c.Order=function(){function e(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.status=i.bool();break}case 2:{a.title=i.string();break}case 3:{a.buttonTitle=i.string();break}case 4:{a.buttonSelectedTitle=i.string();break}case 5:{a.seasonStatView=i.int64();break}case 6:{a.seasonStatDanmaku=i.int64();break}case 7:{a.orderType=i.int32();break}case 8:{a.reserve=u.bilibili.app.view.v1.BizReserveActivityParam.decode(i,i.uint32());break}case 9:{a.favSeason=u.bilibili.app.view.v1.BizFavSeasonParam.decode(i,i.uint32());break}case 10:{a.intro=i.string();break}case 11:{a.seasonStatViewVt=u.bilibili.app.view.v1.StatInfo.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},e.fromObject=function(i){if(i instanceof u.bilibili.app.view.v1.Order)return i;let n=new u.bilibili.app.view.v1.Order;switch(i.status!=null&&(n.status=!!i.status),i.title!=null&&(n.title=String(i.title)),i.buttonTitle!=null&&(n.buttonTitle=String(i.buttonTitle)),i.buttonSelectedTitle!=null&&(n.buttonSelectedTitle=String(i.buttonSelectedTitle)),i.seasonStatView!=null&&(r.Long?(n.seasonStatView=r.Long.fromValue(i.seasonStatView)).unsigned=!1:typeof i.seasonStatView=="string"?n.seasonStatView=parseInt(i.seasonStatView,10):typeof i.seasonStatView=="number"?n.seasonStatView=i.seasonStatView:typeof i.seasonStatView=="object"&&(n.seasonStatView=new r.LongBits(i.seasonStatView.low>>>0,i.seasonStatView.high>>>0).toNumber())),i.seasonStatDanmaku!=null&&(r.Long?(n.seasonStatDanmaku=r.Long.fromValue(i.seasonStatDanmaku)).unsigned=!1:typeof i.seasonStatDanmaku=="string"?n.seasonStatDanmaku=parseInt(i.seasonStatDanmaku,10):typeof i.seasonStatDanmaku=="number"?n.seasonStatDanmaku=i.seasonStatDanmaku:typeof i.seasonStatDanmaku=="object"&&(n.seasonStatDanmaku=new r.LongBits(i.seasonStatDanmaku.low>>>0,i.seasonStatDanmaku.high>>>0).toNumber())),i.orderType){default:if(typeof i.orderType=="number"){n.orderType=i.orderType;break}break;case"BizTypeNone":case 0:n.orderType=0;break;case"BizTypeFollowVideo":case 1:n.orderType=1;break;case"BizTypeReserveActivity":case 2:n.orderType=2;break;case"BizTypeJumpLink":case 3:n.orderType=3;break;case"BizTypeFavSeason":case 4:n.orderType=4;break;case"BizTypeReserveGame":case 5:n.orderType=5;break}if(i.reserve!=null){if(typeof i.reserve!="object")throw TypeError(".bilibili.app.view.v1.Order.reserve: object expected");n.reserve=u.bilibili.app.view.v1.BizReserveActivityParam.fromObject(i.reserve)}if(i.favSeason!=null){if(typeof i.favSeason!="object")throw TypeError(".bilibili.app.view.v1.Order.favSeason: object expected");n.favSeason=u.bilibili.app.view.v1.BizFavSeasonParam.fromObject(i.favSeason)}if(i.intro!=null&&(n.intro=String(i.intro)),i.seasonStatViewVt!=null){if(typeof i.seasonStatViewVt!="object")throw TypeError(".bilibili.app.view.v1.Order.seasonStatViewVt: object expected");n.seasonStatViewVt=u.bilibili.app.view.v1.StatInfo.fromObject(i.seasonStatViewVt)}return n},e.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(o.status=!1,o.title="",o.buttonTitle="",o.buttonSelectedTitle="",r.Long){let a=new r.Long(0,0,!1);o.seasonStatView=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.seasonStatView=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.seasonStatDanmaku=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.seasonStatDanmaku=n.longs===String?"0":0;o.orderType=n.enums===String?"BizTypeNone":0,o.intro="",o.seasonStatViewVt=null}return i.status!=null&&i.hasOwnProperty("status")&&(o.status=i.status),i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.buttonTitle!=null&&i.hasOwnProperty("buttonTitle")&&(o.buttonTitle=i.buttonTitle),i.buttonSelectedTitle!=null&&i.hasOwnProperty("buttonSelectedTitle")&&(o.buttonSelectedTitle=i.buttonSelectedTitle),i.seasonStatView!=null&&i.hasOwnProperty("seasonStatView")&&(typeof i.seasonStatView=="number"?o.seasonStatView=n.longs===String?String(i.seasonStatView):i.seasonStatView:o.seasonStatView=n.longs===String?r.Long.prototype.toString.call(i.seasonStatView):n.longs===Number?new r.LongBits(i.seasonStatView.low>>>0,i.seasonStatView.high>>>0).toNumber():i.seasonStatView),i.seasonStatDanmaku!=null&&i.hasOwnProperty("seasonStatDanmaku")&&(typeof i.seasonStatDanmaku=="number"?o.seasonStatDanmaku=n.longs===String?String(i.seasonStatDanmaku):i.seasonStatDanmaku:o.seasonStatDanmaku=n.longs===String?r.Long.prototype.toString.call(i.seasonStatDanmaku):n.longs===Number?new r.LongBits(i.seasonStatDanmaku.low>>>0,i.seasonStatDanmaku.high>>>0).toNumber():i.seasonStatDanmaku),i.orderType!=null&&i.hasOwnProperty("orderType")&&(o.orderType=n.enums===String?u.bilibili.app.view.v1.BizType[i.orderType]===void 0?i.orderType:u.bilibili.app.view.v1.BizType[i.orderType]:i.orderType),i.reserve!=null&&i.hasOwnProperty("reserve")&&(o.reserve=u.bilibili.app.view.v1.BizReserveActivityParam.toObject(i.reserve,n),n.oneofs&&(o.orderParam="reserve")),i.favSeason!=null&&i.hasOwnProperty("favSeason")&&(o.favSeason=u.bilibili.app.view.v1.BizFavSeasonParam.toObject(i.favSeason,n),n.oneofs&&(o.orderParam="favSeason")),i.intro!=null&&i.hasOwnProperty("intro")&&(o.intro=i.intro),i.seasonStatViewVt!=null&&i.hasOwnProperty("seasonStatViewVt")&&(o.seasonStatViewVt=u.bilibili.app.view.v1.StatInfo.toObject(i.seasonStatViewVt,n)),o},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.app.view.v1.Order"},e}(),c.StatInfo=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.icon=t.int32();break}case 2:{o.text=t.string();break}case 3:{o.pureText=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.StatInfo)return t;let i=new u.bilibili.app.view.v1.StatInfo;return t.icon!=null&&(i.icon=t.icon|0),t.text!=null&&(i.text=String(t.text)),t.pureText!=null&&(i.pureText=String(t.pureText)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.icon=0,n.text="",n.pureText=""),t.icon!=null&&t.hasOwnProperty("icon")&&(n.icon=t.icon),t.text!=null&&t.hasOwnProperty("text")&&(n.text=t.text),t.pureText!=null&&t.hasOwnProperty("pureText")&&(n.pureText=t.pureText),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.StatInfo"},e}(),c.BizType=function(){let e={},l=Object.create(e);return l[e[0]="BizTypeNone"]=0,l[e[1]="BizTypeFollowVideo"]=1,l[e[2]="BizTypeReserveActivity"]=2,l[e[3]="BizTypeJumpLink"]=3,l[e[4]="BizTypeFavSeason"]=4,l[e[5]="BizTypeReserveGame"]=5,l}(),c.UserGarb=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.urlImageAniCut=t.string();break}case 2:{o.likeToast=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.UserGarb)return t;let i=new u.bilibili.app.view.v1.UserGarb;return t.urlImageAniCut!=null&&(i.urlImageAniCut=String(t.urlImageAniCut)),t.likeToast!=null&&(i.likeToast=String(t.likeToast)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.urlImageAniCut="",n.likeToast=""),t.urlImageAniCut!=null&&t.hasOwnProperty("urlImageAniCut")&&(n.urlImageAniCut=t.urlImageAniCut),t.likeToast!=null&&t.hasOwnProperty("likeToast")&&(n.likeToast=t.likeToast),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.UserGarb"},e}(),c.Rank=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.icon=t.string();break}case 2:{o.iconNight=t.string();break}case 3:{o.text=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.Rank)return t;let i=new u.bilibili.app.view.v1.Rank;return t.icon!=null&&(i.icon=String(t.icon)),t.iconNight!=null&&(i.iconNight=String(t.iconNight)),t.text!=null&&(i.text=String(t.text)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.icon="",n.iconNight="",n.text=""),t.icon!=null&&t.hasOwnProperty("icon")&&(n.icon=t.icon),t.iconNight!=null&&t.hasOwnProperty("iconNight")&&(n.iconNight=t.iconNight),t.text!=null&&t.hasOwnProperty("text")&&(n.text=t.text),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.Rank"},e}(),c.Tab=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.background=t.string();break}case 2:{o.otype=t.int32();break}case 3:{o.oid=t.int64();break}case 4:{o.uri=t.string();break}case 5:{o.style=t.int32();break}case 6:{o.text=t.string();break}case 7:{o.textColor=t.string();break}case 8:{o.textColorSelected=t.string();break}case 9:{o.pic=t.string();break}case 10:{o.id=t.int64();break}case 11:{o.adTabInfo=u.google.protobuf.Any.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.Tab)return t;let i=new u.bilibili.app.view.v1.Tab;switch(t.background!=null&&(i.background=String(t.background)),t.otype){default:if(typeof t.otype=="number"){i.otype=t.otype;break}break;case"UnknownOtype":case 0:i.otype=0;break;case"URL":case 1:i.otype=1;break;case"TopicNA":case 2:i.otype=2;break;case"CmURI":case 3:i.otype=3;break}switch(t.oid!=null&&(r.Long?(i.oid=r.Long.fromValue(t.oid)).unsigned=!1:typeof t.oid=="string"?i.oid=parseInt(t.oid,10):typeof t.oid=="number"?i.oid=t.oid:typeof t.oid=="object"&&(i.oid=new r.LongBits(t.oid.low>>>0,t.oid.high>>>0).toNumber())),t.uri!=null&&(i.uri=String(t.uri)),t.style){default:if(typeof t.style=="number"){i.style=t.style;break}break;case"UnknownStyle":case 0:i.style=0;break;case"Text":case 1:i.style=1;break;case"Pic":case 2:i.style=2;break}if(t.text!=null&&(i.text=String(t.text)),t.textColor!=null&&(i.textColor=String(t.textColor)),t.textColorSelected!=null&&(i.textColorSelected=String(t.textColorSelected)),t.pic!=null&&(i.pic=String(t.pic)),t.id!=null&&(r.Long?(i.id=r.Long.fromValue(t.id)).unsigned=!1:typeof t.id=="string"?i.id=parseInt(t.id,10):typeof t.id=="number"?i.id=t.id:typeof t.id=="object"&&(i.id=new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber())),t.adTabInfo!=null){if(typeof t.adTabInfo!="object")throw TypeError(".bilibili.app.view.v1.Tab.adTabInfo: object expected");i.adTabInfo=u.google.protobuf.Any.fromObject(t.adTabInfo)}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.background="",n.otype=i.enums===String?"UnknownOtype":0,r.Long){let o=new r.Long(0,0,!1);n.oid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.oid=i.longs===String?"0":0;if(n.uri="",n.style=i.enums===String?"UnknownStyle":0,n.text="",n.textColor="",n.textColorSelected="",n.pic="",r.Long){let o=new r.Long(0,0,!1);n.id=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.id=i.longs===String?"0":0;n.adTabInfo=null}return t.background!=null&&t.hasOwnProperty("background")&&(n.background=t.background),t.otype!=null&&t.hasOwnProperty("otype")&&(n.otype=i.enums===String?u.bilibili.app.view.v1.TabOtype[t.otype]===void 0?t.otype:u.bilibili.app.view.v1.TabOtype[t.otype]:t.otype),t.oid!=null&&t.hasOwnProperty("oid")&&(typeof t.oid=="number"?n.oid=i.longs===String?String(t.oid):t.oid:n.oid=i.longs===String?r.Long.prototype.toString.call(t.oid):i.longs===Number?new r.LongBits(t.oid.low>>>0,t.oid.high>>>0).toNumber():t.oid),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),t.style!=null&&t.hasOwnProperty("style")&&(n.style=i.enums===String?u.bilibili.app.view.v1.TabStyle[t.style]===void 0?t.style:u.bilibili.app.view.v1.TabStyle[t.style]:t.style),t.text!=null&&t.hasOwnProperty("text")&&(n.text=t.text),t.textColor!=null&&t.hasOwnProperty("textColor")&&(n.textColor=t.textColor),t.textColorSelected!=null&&t.hasOwnProperty("textColorSelected")&&(n.textColorSelected=t.textColorSelected),t.pic!=null&&t.hasOwnProperty("pic")&&(n.pic=t.pic),t.id!=null&&t.hasOwnProperty("id")&&(typeof t.id=="number"?n.id=i.longs===String?String(t.id):t.id:n.id=i.longs===String?r.Long.prototype.toString.call(t.id):i.longs===Number?new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber():t.id),t.adTabInfo!=null&&t.hasOwnProperty("adTabInfo")&&(n.adTabInfo=u.google.protobuf.Any.toObject(t.adTabInfo,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.Tab"},e}(),c.TabStyle=function(){let e={},l=Object.create(e);return l[e[0]="UnknownStyle"]=0,l[e[1]="Text"]=1,l[e[2]="Pic"]=2,l}(),c.TabOtype=function(){let e={},l=Object.create(e);return l[e[0]="UnknownOtype"]=0,l[e[1]="URL"]=1,l[e[2]="TopicNA"]=2,l[e[3]="CmURI"]=3,l}(),c.ECode=function(){let e={},l=Object.create(e);return l[e[0]="DEFAULT"]=0,l[e[1]="CODE404"]=1,l}(),c.ViewPage=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.page=u.archive.service.v1.Page.decode(t,t.uint32());break}case 2:{o.audio=u.bilibili.app.view.v1.Audio.decode(t,t.uint32());break}case 3:{o.dm=u.bilibili.app.view.v1.DM.decode(t,t.uint32());break}case 4:{o.downloadTitle=t.string();break}case 5:{o.downloadSubtitle=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.ViewPage)return t;let i=new u.bilibili.app.view.v1.ViewPage;if(t.page!=null){if(typeof t.page!="object")throw TypeError(".bilibili.app.view.v1.ViewPage.page: object expected");i.page=u.archive.service.v1.Page.fromObject(t.page)}if(t.audio!=null){if(typeof t.audio!="object")throw TypeError(".bilibili.app.view.v1.ViewPage.audio: object expected");i.audio=u.bilibili.app.view.v1.Audio.fromObject(t.audio)}if(t.dm!=null){if(typeof t.dm!="object")throw TypeError(".bilibili.app.view.v1.ViewPage.dm: object expected");i.dm=u.bilibili.app.view.v1.DM.fromObject(t.dm)}return t.downloadTitle!=null&&(i.downloadTitle=String(t.downloadTitle)),t.downloadSubtitle!=null&&(i.downloadSubtitle=String(t.downloadSubtitle)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.page=null,n.audio=null,n.dm=null,n.downloadTitle="",n.downloadSubtitle=""),t.page!=null&&t.hasOwnProperty("page")&&(n.page=u.archive.service.v1.Page.toObject(t.page,i)),t.audio!=null&&t.hasOwnProperty("audio")&&(n.audio=u.bilibili.app.view.v1.Audio.toObject(t.audio,i)),t.dm!=null&&t.hasOwnProperty("dm")&&(n.dm=u.bilibili.app.view.v1.DM.toObject(t.dm,i)),t.downloadTitle!=null&&t.hasOwnProperty("downloadTitle")&&(n.downloadTitle=t.downloadTitle),t.downloadSubtitle!=null&&t.hasOwnProperty("downloadSubtitle")&&(n.downloadSubtitle=t.downloadSubtitle),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.ViewPage"},e}(),c.Audio=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.coverUrl=t.string();break}case 3:{o.songId=t.int64();break}case 4:{o.playCount=t.int64();break}case 5:{o.replyCount=t.int64();break}case 6:{o.upperId=t.int64();break}case 7:{o.entrance=t.string();break}case 8:{o.songAttr=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.Audio)return t;let i=new u.bilibili.app.view.v1.Audio;return t.title!=null&&(i.title=String(t.title)),t.coverUrl!=null&&(i.coverUrl=String(t.coverUrl)),t.songId!=null&&(r.Long?(i.songId=r.Long.fromValue(t.songId)).unsigned=!1:typeof t.songId=="string"?i.songId=parseInt(t.songId,10):typeof t.songId=="number"?i.songId=t.songId:typeof t.songId=="object"&&(i.songId=new r.LongBits(t.songId.low>>>0,t.songId.high>>>0).toNumber())),t.playCount!=null&&(r.Long?(i.playCount=r.Long.fromValue(t.playCount)).unsigned=!1:typeof t.playCount=="string"?i.playCount=parseInt(t.playCount,10):typeof t.playCount=="number"?i.playCount=t.playCount:typeof t.playCount=="object"&&(i.playCount=new r.LongBits(t.playCount.low>>>0,t.playCount.high>>>0).toNumber())),t.replyCount!=null&&(r.Long?(i.replyCount=r.Long.fromValue(t.replyCount)).unsigned=!1:typeof t.replyCount=="string"?i.replyCount=parseInt(t.replyCount,10):typeof t.replyCount=="number"?i.replyCount=t.replyCount:typeof t.replyCount=="object"&&(i.replyCount=new r.LongBits(t.replyCount.low>>>0,t.replyCount.high>>>0).toNumber())),t.upperId!=null&&(r.Long?(i.upperId=r.Long.fromValue(t.upperId)).unsigned=!1:typeof t.upperId=="string"?i.upperId=parseInt(t.upperId,10):typeof t.upperId=="number"?i.upperId=t.upperId:typeof t.upperId=="object"&&(i.upperId=new r.LongBits(t.upperId.low>>>0,t.upperId.high>>>0).toNumber())),t.entrance!=null&&(i.entrance=String(t.entrance)),t.songAttr!=null&&(r.Long?(i.songAttr=r.Long.fromValue(t.songAttr)).unsigned=!1:typeof t.songAttr=="string"?i.songAttr=parseInt(t.songAttr,10):typeof t.songAttr=="number"?i.songAttr=t.songAttr:typeof t.songAttr=="object"&&(i.songAttr=new r.LongBits(t.songAttr.low>>>0,t.songAttr.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.title="",n.coverUrl="",r.Long){let o=new r.Long(0,0,!1);n.songId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.songId=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.playCount=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.playCount=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.replyCount=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.replyCount=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.upperId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.upperId=i.longs===String?"0":0;if(n.entrance="",r.Long){let o=new r.Long(0,0,!1);n.songAttr=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.songAttr=i.longs===String?"0":0}return t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.coverUrl!=null&&t.hasOwnProperty("coverUrl")&&(n.coverUrl=t.coverUrl),t.songId!=null&&t.hasOwnProperty("songId")&&(typeof t.songId=="number"?n.songId=i.longs===String?String(t.songId):t.songId:n.songId=i.longs===String?r.Long.prototype.toString.call(t.songId):i.longs===Number?new r.LongBits(t.songId.low>>>0,t.songId.high>>>0).toNumber():t.songId),t.playCount!=null&&t.hasOwnProperty("playCount")&&(typeof t.playCount=="number"?n.playCount=i.longs===String?String(t.playCount):t.playCount:n.playCount=i.longs===String?r.Long.prototype.toString.call(t.playCount):i.longs===Number?new r.LongBits(t.playCount.low>>>0,t.playCount.high>>>0).toNumber():t.playCount),t.replyCount!=null&&t.hasOwnProperty("replyCount")&&(typeof t.replyCount=="number"?n.replyCount=i.longs===String?String(t.replyCount):t.replyCount:n.replyCount=i.longs===String?r.Long.prototype.toString.call(t.replyCount):i.longs===Number?new r.LongBits(t.replyCount.low>>>0,t.replyCount.high>>>0).toNumber():t.replyCount),t.upperId!=null&&t.hasOwnProperty("upperId")&&(typeof t.upperId=="number"?n.upperId=i.longs===String?String(t.upperId):t.upperId:n.upperId=i.longs===String?r.Long.prototype.toString.call(t.upperId):i.longs===Number?new r.LongBits(t.upperId.low>>>0,t.upperId.high>>>0).toNumber():t.upperId),t.entrance!=null&&t.hasOwnProperty("entrance")&&(n.entrance=t.entrance),t.songAttr!=null&&t.hasOwnProperty("songAttr")&&(typeof t.songAttr=="number"?n.songAttr=i.longs===String?String(t.songAttr):t.songAttr:n.songAttr=i.longs===String?r.Long.prototype.toString.call(t.songAttr):i.longs===Number?new r.LongBits(t.songAttr.low>>>0,t.songAttr.high>>>0).toNumber():t.songAttr),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.Audio"},e}(),c.DM=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.closed=t.bool();break}case 2:{o.realName=t.bool();break}case 3:{o.count=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.DM)return t;let i=new u.bilibili.app.view.v1.DM;return t.closed!=null&&(i.closed=!!t.closed),t.realName!=null&&(i.realName=!!t.realName),t.count!=null&&(r.Long?(i.count=r.Long.fromValue(t.count)).unsigned=!1:typeof t.count=="string"?i.count=parseInt(t.count,10):typeof t.count=="number"?i.count=t.count:typeof t.count=="object"&&(i.count=new r.LongBits(t.count.low>>>0,t.count.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(n.closed=!1,n.realName=!1,r.Long){let o=new r.Long(0,0,!1);n.count=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.count=i.longs===String?"0":0;return t.closed!=null&&t.hasOwnProperty("closed")&&(n.closed=t.closed),t.realName!=null&&t.hasOwnProperty("realName")&&(n.realName=t.realName),t.count!=null&&t.hasOwnProperty("count")&&(typeof t.count=="number"?n.count=i.longs===String?String(t.count):t.count:n.count=i.longs===String?r.Long.prototype.toString.call(t.count):i.longs===Number?new r.LongBits(t.count.low>>>0,t.count.high>>>0).toNumber():t.count),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.DM"},e}(),c.OnwerExt=function(){function e(l){if(this.assists=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.officialVerify=u.bilibili.app.view.v1.OfficialVerify.decode(t,t.uint32());break}case 2:{o.live=u.bilibili.app.view.v1.Live.decode(t,t.uint32());break}case 3:{o.vip=u.bilibili.app.view.v1.Vip.decode(t,t.uint32());break}case 4:{if(o.assists&&o.assists.length||(o.assists=[]),(a&7)===2){let y=t.uint32()+t.pos;for(;t.pos>>0,t.assists[n].high>>>0).toNumber())}if(t.fans!=null&&(r.Long?(i.fans=r.Long.fromValue(t.fans)).unsigned=!1:typeof t.fans=="string"?i.fans=parseInt(t.fans,10):typeof t.fans=="number"?i.fans=t.fans:typeof t.fans=="object"&&(i.fans=new r.LongBits(t.fans.low>>>0,t.fans.high>>>0).toNumber())),t.arcCount!=null&&(i.arcCount=String(t.arcCount)),t.nftFaceIcon!=null){if(typeof t.nftFaceIcon!="object")throw TypeError(".bilibili.app.view.v1.OnwerExt.nftFaceIcon: object expected");i.nftFaceIcon=u.bilibili.app.view.v1.NftFaceIcon.fromObject(t.nftFaceIcon)}return i},e.toObject=function(t,i){i||(i={});let n={};if((i.arrays||i.defaults)&&(n.assists=[]),i.defaults){if(n.officialVerify=null,n.live=null,n.vip=null,r.Long){let o=new r.Long(0,0,!1);n.fans=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.fans=i.longs===String?"0":0;n.arcCount="",n.nftFaceIcon=null}if(t.officialVerify!=null&&t.hasOwnProperty("officialVerify")&&(n.officialVerify=u.bilibili.app.view.v1.OfficialVerify.toObject(t.officialVerify,i)),t.live!=null&&t.hasOwnProperty("live")&&(n.live=u.bilibili.app.view.v1.Live.toObject(t.live,i)),t.vip!=null&&t.hasOwnProperty("vip")&&(n.vip=u.bilibili.app.view.v1.Vip.toObject(t.vip,i)),t.assists&&t.assists.length){n.assists=[];for(let o=0;o>>0,t.assists[o].high>>>0).toNumber():t.assists[o]}return t.fans!=null&&t.hasOwnProperty("fans")&&(typeof t.fans=="number"?n.fans=i.longs===String?String(t.fans):t.fans:n.fans=i.longs===String?r.Long.prototype.toString.call(t.fans):i.longs===Number?new r.LongBits(t.fans.low>>>0,t.fans.high>>>0).toNumber():t.fans),t.arcCount!=null&&t.hasOwnProperty("arcCount")&&(n.arcCount=t.arcCount),t.nftFaceIcon!=null&&t.hasOwnProperty("nftFaceIcon")&&(n.nftFaceIcon=u.bilibili.app.view.v1.NftFaceIcon.toObject(t.nftFaceIcon,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.OnwerExt"},e}(),c.OfficialVerify=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.type=t.int32();break}case 2:{o.desc=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.OfficialVerify)return t;let i=new u.bilibili.app.view.v1.OfficialVerify;return t.type!=null&&(i.type=t.type|0),t.desc!=null&&(i.desc=String(t.desc)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.type=0,n.desc=""),t.type!=null&&t.hasOwnProperty("type")&&(n.type=t.type),t.desc!=null&&t.hasOwnProperty("desc")&&(n.desc=t.desc),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.OfficialVerify"},e}(),c.Live=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.mid=t.int64();break}case 2:{o.roomid=t.int64();break}case 3:{o.uri=t.string();break}case 4:{o.endpageUri=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.Live)return t;let i=new u.bilibili.app.view.v1.Live;return t.mid!=null&&(r.Long?(i.mid=r.Long.fromValue(t.mid)).unsigned=!1:typeof t.mid=="string"?i.mid=parseInt(t.mid,10):typeof t.mid=="number"?i.mid=t.mid:typeof t.mid=="object"&&(i.mid=new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber())),t.roomid!=null&&(r.Long?(i.roomid=r.Long.fromValue(t.roomid)).unsigned=!1:typeof t.roomid=="string"?i.roomid=parseInt(t.roomid,10):typeof t.roomid=="number"?i.roomid=t.roomid:typeof t.roomid=="object"&&(i.roomid=new r.LongBits(t.roomid.low>>>0,t.roomid.high>>>0).toNumber())),t.uri!=null&&(i.uri=String(t.uri)),t.endpageUri!=null&&(i.endpageUri=String(t.endpageUri)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.mid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.roomid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.roomid=i.longs===String?"0":0;n.uri="",n.endpageUri=""}return t.mid!=null&&t.hasOwnProperty("mid")&&(typeof t.mid=="number"?n.mid=i.longs===String?String(t.mid):t.mid:n.mid=i.longs===String?r.Long.prototype.toString.call(t.mid):i.longs===Number?new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber():t.mid),t.roomid!=null&&t.hasOwnProperty("roomid")&&(typeof t.roomid=="number"?n.roomid=i.longs===String?String(t.roomid):t.roomid:n.roomid=i.longs===String?r.Long.prototype.toString.call(t.roomid):i.longs===Number?new r.LongBits(t.roomid.low>>>0,t.roomid.high>>>0).toNumber():t.roomid),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),t.endpageUri!=null&&t.hasOwnProperty("endpageUri")&&(n.endpageUri=t.endpageUri),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.Live"},e}(),c.Vip=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.type=t.int32();break}case 2:{o.dueDate=t.int64();break}case 3:{o.dueRemark=t.string();break}case 4:{o.accessStatus=t.int32();break}case 5:{o.vipStatus=t.int32();break}case 6:{o.vipStatusWarn=t.string();break}case 7:{o.themeType=t.int32();break}case 8:{o.label=u.bilibili.app.view.v1.VipLabel.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.Vip)return t;let i=new u.bilibili.app.view.v1.Vip;if(t.type!=null&&(i.type=t.type|0),t.dueDate!=null&&(r.Long?(i.dueDate=r.Long.fromValue(t.dueDate)).unsigned=!1:typeof t.dueDate=="string"?i.dueDate=parseInt(t.dueDate,10):typeof t.dueDate=="number"?i.dueDate=t.dueDate:typeof t.dueDate=="object"&&(i.dueDate=new r.LongBits(t.dueDate.low>>>0,t.dueDate.high>>>0).toNumber())),t.dueRemark!=null&&(i.dueRemark=String(t.dueRemark)),t.accessStatus!=null&&(i.accessStatus=t.accessStatus|0),t.vipStatus!=null&&(i.vipStatus=t.vipStatus|0),t.vipStatusWarn!=null&&(i.vipStatusWarn=String(t.vipStatusWarn)),t.themeType!=null&&(i.themeType=t.themeType|0),t.label!=null){if(typeof t.label!="object")throw TypeError(".bilibili.app.view.v1.Vip.label: object expected");i.label=u.bilibili.app.view.v1.VipLabel.fromObject(t.label)}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.type=0,r.Long){let o=new r.Long(0,0,!1);n.dueDate=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.dueDate=i.longs===String?"0":0;n.dueRemark="",n.accessStatus=0,n.vipStatus=0,n.vipStatusWarn="",n.themeType=0,n.label=null}return t.type!=null&&t.hasOwnProperty("type")&&(n.type=t.type),t.dueDate!=null&&t.hasOwnProperty("dueDate")&&(typeof t.dueDate=="number"?n.dueDate=i.longs===String?String(t.dueDate):t.dueDate:n.dueDate=i.longs===String?r.Long.prototype.toString.call(t.dueDate):i.longs===Number?new r.LongBits(t.dueDate.low>>>0,t.dueDate.high>>>0).toNumber():t.dueDate),t.dueRemark!=null&&t.hasOwnProperty("dueRemark")&&(n.dueRemark=t.dueRemark),t.accessStatus!=null&&t.hasOwnProperty("accessStatus")&&(n.accessStatus=t.accessStatus),t.vipStatus!=null&&t.hasOwnProperty("vipStatus")&&(n.vipStatus=t.vipStatus),t.vipStatusWarn!=null&&t.hasOwnProperty("vipStatusWarn")&&(n.vipStatusWarn=t.vipStatusWarn),t.themeType!=null&&t.hasOwnProperty("themeType")&&(n.themeType=t.themeType),t.label!=null&&t.hasOwnProperty("label")&&(n.label=u.bilibili.app.view.v1.VipLabel.toObject(t.label,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.Vip"},e}(),c.VipLabel=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.path=t.string();break}case 2:{o.text=t.string();break}case 3:{o.labelTheme=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.VipLabel)return t;let i=new u.bilibili.app.view.v1.VipLabel;return t.path!=null&&(i.path=String(t.path)),t.text!=null&&(i.text=String(t.text)),t.labelTheme!=null&&(i.labelTheme=String(t.labelTheme)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.path="",n.text="",n.labelTheme=""),t.path!=null&&t.hasOwnProperty("path")&&(n.path=t.path),t.text!=null&&t.hasOwnProperty("text")&&(n.text=t.text),t.labelTheme!=null&&t.hasOwnProperty("labelTheme")&&(n.labelTheme=t.labelTheme),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.VipLabel"},e}(),c.ReqUser=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.attention=t.int32();break}case 2:{o.guestAttention=t.int32();break}case 3:{o.favorite=t.int32();break}case 4:{o.like=t.int32();break}case 5:{o.dislike=t.int32();break}case 6:{o.coin=t.int32();break}case 7:{o.attentionLevel=t.int32();break}case 8:{o.favSeason=t.int32();break}case 9:{o.elecPlusBtn=u.bilibili.app.view.v1.Button.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.ReqUser)return t;let i=new u.bilibili.app.view.v1.ReqUser;if(t.attention!=null&&(i.attention=t.attention|0),t.guestAttention!=null&&(i.guestAttention=t.guestAttention|0),t.favorite!=null&&(i.favorite=t.favorite|0),t.like!=null&&(i.like=t.like|0),t.dislike!=null&&(i.dislike=t.dislike|0),t.coin!=null&&(i.coin=t.coin|0),t.attentionLevel!=null&&(i.attentionLevel=t.attentionLevel|0),t.favSeason!=null&&(i.favSeason=t.favSeason|0),t.elecPlusBtn!=null){if(typeof t.elecPlusBtn!="object")throw TypeError(".bilibili.app.view.v1.ReqUser.elecPlusBtn: object expected");i.elecPlusBtn=u.bilibili.app.view.v1.Button.fromObject(t.elecPlusBtn)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.attention=0,n.guestAttention=0,n.favorite=0,n.like=0,n.dislike=0,n.coin=0,n.attentionLevel=0,n.favSeason=0,n.elecPlusBtn=null),t.attention!=null&&t.hasOwnProperty("attention")&&(n.attention=t.attention),t.guestAttention!=null&&t.hasOwnProperty("guestAttention")&&(n.guestAttention=t.guestAttention),t.favorite!=null&&t.hasOwnProperty("favorite")&&(n.favorite=t.favorite),t.like!=null&&t.hasOwnProperty("like")&&(n.like=t.like),t.dislike!=null&&t.hasOwnProperty("dislike")&&(n.dislike=t.dislike),t.coin!=null&&t.hasOwnProperty("coin")&&(n.coin=t.coin),t.attentionLevel!=null&&t.hasOwnProperty("attentionLevel")&&(n.attentionLevel=t.attentionLevel),t.favSeason!=null&&t.hasOwnProperty("favSeason")&&(n.favSeason=t.favSeason),t.elecPlusBtn!=null&&t.hasOwnProperty("elecPlusBtn")&&(n.elecPlusBtn=u.bilibili.app.view.v1.Button.toObject(t.elecPlusBtn,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.ReqUser"},e}(),c.Tag=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.id=t.int64();break}case 2:{o.name=t.string();break}case 3:{o.likes=t.int64();break}case 4:{o.hates=t.int64();break}case 5:{o.liked=t.int32();break}case 6:{o.hated=t.int32();break}case 7:{o.uri=t.string();break}case 8:{o.tagType=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.Tag)return t;let i=new u.bilibili.app.view.v1.Tag;return t.id!=null&&(r.Long?(i.id=r.Long.fromValue(t.id)).unsigned=!1:typeof t.id=="string"?i.id=parseInt(t.id,10):typeof t.id=="number"?i.id=t.id:typeof t.id=="object"&&(i.id=new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber())),t.name!=null&&(i.name=String(t.name)),t.likes!=null&&(r.Long?(i.likes=r.Long.fromValue(t.likes)).unsigned=!1:typeof t.likes=="string"?i.likes=parseInt(t.likes,10):typeof t.likes=="number"?i.likes=t.likes:typeof t.likes=="object"&&(i.likes=new r.LongBits(t.likes.low>>>0,t.likes.high>>>0).toNumber())),t.hates!=null&&(r.Long?(i.hates=r.Long.fromValue(t.hates)).unsigned=!1:typeof t.hates=="string"?i.hates=parseInt(t.hates,10):typeof t.hates=="number"?i.hates=t.hates:typeof t.hates=="object"&&(i.hates=new r.LongBits(t.hates.low>>>0,t.hates.high>>>0).toNumber())),t.liked!=null&&(i.liked=t.liked|0),t.hated!=null&&(i.hated=t.hated|0),t.uri!=null&&(i.uri=String(t.uri)),t.tagType!=null&&(i.tagType=String(t.tagType)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.id=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.id=i.longs===String?"0":0;if(n.name="",r.Long){let o=new r.Long(0,0,!1);n.likes=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.likes=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.hates=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.hates=i.longs===String?"0":0;n.liked=0,n.hated=0,n.uri="",n.tagType=""}return t.id!=null&&t.hasOwnProperty("id")&&(typeof t.id=="number"?n.id=i.longs===String?String(t.id):t.id:n.id=i.longs===String?r.Long.prototype.toString.call(t.id):i.longs===Number?new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber():t.id),t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),t.likes!=null&&t.hasOwnProperty("likes")&&(typeof t.likes=="number"?n.likes=i.longs===String?String(t.likes):t.likes:n.likes=i.longs===String?r.Long.prototype.toString.call(t.likes):i.longs===Number?new r.LongBits(t.likes.low>>>0,t.likes.high>>>0).toNumber():t.likes),t.hates!=null&&t.hasOwnProperty("hates")&&(typeof t.hates=="number"?n.hates=i.longs===String?String(t.hates):t.hates:n.hates=i.longs===String?r.Long.prototype.toString.call(t.hates):i.longs===Number?new r.LongBits(t.hates.low>>>0,t.hates.high>>>0).toNumber():t.hates),t.liked!=null&&t.hasOwnProperty("liked")&&(n.liked=t.liked),t.hated!=null&&t.hasOwnProperty("hated")&&(n.hated=t.hated),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),t.tagType!=null&&t.hasOwnProperty("tagType")&&(n.tagType=t.tagType),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.Tag"},e}(),c.SpecialCell=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.icon=t.string();break}case 2:{o.iconNight=t.string();break}case 3:{o.text=t.string();break}case 4:{o.textColor=t.string();break}case 5:{o.textColorNight=t.string();break}case 6:{o.jumpUrl=t.string();break}case 7:{o.cellType=t.string();break}case 8:{o.cellBgcolor=t.string();break}case 9:{o.cellBgcolorNight=t.string();break}case 10:{o.param=t.string();break}case 11:{o.pageTitle=t.string();break}case 12:{o.jumpType=t.string();break}case 13:{o.endIcon=t.string();break}case 14:{o.endIconNight=t.string();break}case 15:{o.notesCount=t.int64();break}case 16:{o.cellFluid=u.bilibili.app.view.v1.CellFluid.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.SpecialCell)return t;let i=new u.bilibili.app.view.v1.SpecialCell;if(t.icon!=null&&(i.icon=String(t.icon)),t.iconNight!=null&&(i.iconNight=String(t.iconNight)),t.text!=null&&(i.text=String(t.text)),t.textColor!=null&&(i.textColor=String(t.textColor)),t.textColorNight!=null&&(i.textColorNight=String(t.textColorNight)),t.jumpUrl!=null&&(i.jumpUrl=String(t.jumpUrl)),t.cellType!=null&&(i.cellType=String(t.cellType)),t.cellBgcolor!=null&&(i.cellBgcolor=String(t.cellBgcolor)),t.cellBgcolorNight!=null&&(i.cellBgcolorNight=String(t.cellBgcolorNight)),t.param!=null&&(i.param=String(t.param)),t.pageTitle!=null&&(i.pageTitle=String(t.pageTitle)),t.jumpType!=null&&(i.jumpType=String(t.jumpType)),t.endIcon!=null&&(i.endIcon=String(t.endIcon)),t.endIconNight!=null&&(i.endIconNight=String(t.endIconNight)),t.notesCount!=null&&(r.Long?(i.notesCount=r.Long.fromValue(t.notesCount)).unsigned=!1:typeof t.notesCount=="string"?i.notesCount=parseInt(t.notesCount,10):typeof t.notesCount=="number"?i.notesCount=t.notesCount:typeof t.notesCount=="object"&&(i.notesCount=new r.LongBits(t.notesCount.low>>>0,t.notesCount.high>>>0).toNumber())),t.cellFluid!=null){if(typeof t.cellFluid!="object")throw TypeError(".bilibili.app.view.v1.SpecialCell.cellFluid: object expected");i.cellFluid=u.bilibili.app.view.v1.CellFluid.fromObject(t.cellFluid)}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.icon="",n.iconNight="",n.text="",n.textColor="",n.textColorNight="",n.jumpUrl="",n.cellType="",n.cellBgcolor="",n.cellBgcolorNight="",n.param="",n.pageTitle="",n.jumpType="",n.endIcon="",n.endIconNight="",r.Long){let o=new r.Long(0,0,!1);n.notesCount=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.notesCount=i.longs===String?"0":0;n.cellFluid=null}return t.icon!=null&&t.hasOwnProperty("icon")&&(n.icon=t.icon),t.iconNight!=null&&t.hasOwnProperty("iconNight")&&(n.iconNight=t.iconNight),t.text!=null&&t.hasOwnProperty("text")&&(n.text=t.text),t.textColor!=null&&t.hasOwnProperty("textColor")&&(n.textColor=t.textColor),t.textColorNight!=null&&t.hasOwnProperty("textColorNight")&&(n.textColorNight=t.textColorNight),t.jumpUrl!=null&&t.hasOwnProperty("jumpUrl")&&(n.jumpUrl=t.jumpUrl),t.cellType!=null&&t.hasOwnProperty("cellType")&&(n.cellType=t.cellType),t.cellBgcolor!=null&&t.hasOwnProperty("cellBgcolor")&&(n.cellBgcolor=t.cellBgcolor),t.cellBgcolorNight!=null&&t.hasOwnProperty("cellBgcolorNight")&&(n.cellBgcolorNight=t.cellBgcolorNight),t.param!=null&&t.hasOwnProperty("param")&&(n.param=t.param),t.pageTitle!=null&&t.hasOwnProperty("pageTitle")&&(n.pageTitle=t.pageTitle),t.jumpType!=null&&t.hasOwnProperty("jumpType")&&(n.jumpType=t.jumpType),t.endIcon!=null&&t.hasOwnProperty("endIcon")&&(n.endIcon=t.endIcon),t.endIconNight!=null&&t.hasOwnProperty("endIconNight")&&(n.endIconNight=t.endIconNight),t.notesCount!=null&&t.hasOwnProperty("notesCount")&&(typeof t.notesCount=="number"?n.notesCount=i.longs===String?String(t.notesCount):t.notesCount:n.notesCount=i.longs===String?r.Long.prototype.toString.call(t.notesCount):i.longs===Number?new r.LongBits(t.notesCount.low>>>0,t.notesCount.high>>>0).toNumber():t.notesCount),t.cellFluid!=null&&t.hasOwnProperty("cellFluid")&&(n.cellFluid=u.bilibili.app.view.v1.CellFluid.toObject(t.cellFluid,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.SpecialCell"},e}(),c.CellFluid=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.topBaseColor=t.string();break}case 2:{o.topSplitColor=t.string();break}case 3:{o.topTextColor=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.CellFluid)return t;let i=new u.bilibili.app.view.v1.CellFluid;return t.topBaseColor!=null&&(i.topBaseColor=String(t.topBaseColor)),t.topSplitColor!=null&&(i.topSplitColor=String(t.topSplitColor)),t.topTextColor!=null&&(i.topTextColor=String(t.topTextColor)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.topBaseColor="",n.topSplitColor="",n.topTextColor=""),t.topBaseColor!=null&&t.hasOwnProperty("topBaseColor")&&(n.topBaseColor=t.topBaseColor),t.topSplitColor!=null&&t.hasOwnProperty("topSplitColor")&&(n.topSplitColor=t.topSplitColor),t.topTextColor!=null&&t.hasOwnProperty("topTextColor")&&(n.topTextColor=t.topTextColor),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.CellFluid"},e}(),c.TIcon=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.icon=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.TIcon)return t;let i=new u.bilibili.app.view.v1.TIcon;return t.icon!=null&&(i.icon=String(t.icon)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.icon=""),t.icon!=null&&t.hasOwnProperty("icon")&&(n.icon=t.icon),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.TIcon"},e}(),c.Season=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.allowDownload=t.string();break}case 2:{o.seasonId=t.int64();break}case 3:{o.isJump=t.int32();break}case 4:{o.title=t.string();break}case 5:{o.cover=t.string();break}case 6:{o.isFinish=t.int32();break}case 7:{o.newestEpId=t.int64();break}case 8:{o.newestEpIndex=t.string();break}case 9:{o.totalCount=t.int64();break}case 10:{o.weekday=t.int32();break}case 11:{o.userSeason=u.bilibili.app.view.v1.UserSeason.decode(t,t.uint32());break}case 12:{o.player=u.bilibili.app.view.v1.SeasonPlayer.decode(t,t.uint32());break}case 13:{o.ogvPlayurl=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.Season)return t;let i=new u.bilibili.app.view.v1.Season;if(t.allowDownload!=null&&(i.allowDownload=String(t.allowDownload)),t.seasonId!=null&&(r.Long?(i.seasonId=r.Long.fromValue(t.seasonId)).unsigned=!1:typeof t.seasonId=="string"?i.seasonId=parseInt(t.seasonId,10):typeof t.seasonId=="number"?i.seasonId=t.seasonId:typeof t.seasonId=="object"&&(i.seasonId=new r.LongBits(t.seasonId.low>>>0,t.seasonId.high>>>0).toNumber())),t.isJump!=null&&(i.isJump=t.isJump|0),t.title!=null&&(i.title=String(t.title)),t.cover!=null&&(i.cover=String(t.cover)),t.isFinish!=null&&(i.isFinish=t.isFinish|0),t.newestEpId!=null&&(r.Long?(i.newestEpId=r.Long.fromValue(t.newestEpId)).unsigned=!1:typeof t.newestEpId=="string"?i.newestEpId=parseInt(t.newestEpId,10):typeof t.newestEpId=="number"?i.newestEpId=t.newestEpId:typeof t.newestEpId=="object"&&(i.newestEpId=new r.LongBits(t.newestEpId.low>>>0,t.newestEpId.high>>>0).toNumber())),t.newestEpIndex!=null&&(i.newestEpIndex=String(t.newestEpIndex)),t.totalCount!=null&&(r.Long?(i.totalCount=r.Long.fromValue(t.totalCount)).unsigned=!1:typeof t.totalCount=="string"?i.totalCount=parseInt(t.totalCount,10):typeof t.totalCount=="number"?i.totalCount=t.totalCount:typeof t.totalCount=="object"&&(i.totalCount=new r.LongBits(t.totalCount.low>>>0,t.totalCount.high>>>0).toNumber())),t.weekday!=null&&(i.weekday=t.weekday|0),t.userSeason!=null){if(typeof t.userSeason!="object")throw TypeError(".bilibili.app.view.v1.Season.userSeason: object expected");i.userSeason=u.bilibili.app.view.v1.UserSeason.fromObject(t.userSeason)}if(t.player!=null){if(typeof t.player!="object")throw TypeError(".bilibili.app.view.v1.Season.player: object expected");i.player=u.bilibili.app.view.v1.SeasonPlayer.fromObject(t.player)}return t.ogvPlayurl!=null&&(i.ogvPlayurl=String(t.ogvPlayurl)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.allowDownload="",r.Long){let o=new r.Long(0,0,!1);n.seasonId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.seasonId=i.longs===String?"0":0;if(n.isJump=0,n.title="",n.cover="",n.isFinish=0,r.Long){let o=new r.Long(0,0,!1);n.newestEpId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.newestEpId=i.longs===String?"0":0;if(n.newestEpIndex="",r.Long){let o=new r.Long(0,0,!1);n.totalCount=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.totalCount=i.longs===String?"0":0;n.weekday=0,n.userSeason=null,n.player=null,n.ogvPlayurl=""}return t.allowDownload!=null&&t.hasOwnProperty("allowDownload")&&(n.allowDownload=t.allowDownload),t.seasonId!=null&&t.hasOwnProperty("seasonId")&&(typeof t.seasonId=="number"?n.seasonId=i.longs===String?String(t.seasonId):t.seasonId:n.seasonId=i.longs===String?r.Long.prototype.toString.call(t.seasonId):i.longs===Number?new r.LongBits(t.seasonId.low>>>0,t.seasonId.high>>>0).toNumber():t.seasonId),t.isJump!=null&&t.hasOwnProperty("isJump")&&(n.isJump=t.isJump),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.cover!=null&&t.hasOwnProperty("cover")&&(n.cover=t.cover),t.isFinish!=null&&t.hasOwnProperty("isFinish")&&(n.isFinish=t.isFinish),t.newestEpId!=null&&t.hasOwnProperty("newestEpId")&&(typeof t.newestEpId=="number"?n.newestEpId=i.longs===String?String(t.newestEpId):t.newestEpId:n.newestEpId=i.longs===String?r.Long.prototype.toString.call(t.newestEpId):i.longs===Number?new r.LongBits(t.newestEpId.low>>>0,t.newestEpId.high>>>0).toNumber():t.newestEpId),t.newestEpIndex!=null&&t.hasOwnProperty("newestEpIndex")&&(n.newestEpIndex=t.newestEpIndex),t.totalCount!=null&&t.hasOwnProperty("totalCount")&&(typeof t.totalCount=="number"?n.totalCount=i.longs===String?String(t.totalCount):t.totalCount:n.totalCount=i.longs===String?r.Long.prototype.toString.call(t.totalCount):i.longs===Number?new r.LongBits(t.totalCount.low>>>0,t.totalCount.high>>>0).toNumber():t.totalCount),t.weekday!=null&&t.hasOwnProperty("weekday")&&(n.weekday=t.weekday),t.userSeason!=null&&t.hasOwnProperty("userSeason")&&(n.userSeason=u.bilibili.app.view.v1.UserSeason.toObject(t.userSeason,i)),t.player!=null&&t.hasOwnProperty("player")&&(n.player=u.bilibili.app.view.v1.SeasonPlayer.toObject(t.player,i)),t.ogvPlayurl!=null&&t.hasOwnProperty("ogvPlayurl")&&(n.ogvPlayurl=t.ogvPlayurl),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.Season"},e}(),c.UserSeason=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.attention=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.UserSeason)return t;let i=new u.bilibili.app.view.v1.UserSeason;return t.attention!=null&&(i.attention=String(t.attention)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.attention=""),t.attention!=null&&t.hasOwnProperty("attention")&&(n.attention=t.attention),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.UserSeason"},e}(),c.SeasonPlayer=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.aid=t.int64();break}case 2:{o.vid=t.string();break}case 3:{o.cid=t.int64();break}case 4:{o.from=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.SeasonPlayer)return t;let i=new u.bilibili.app.view.v1.SeasonPlayer;return t.aid!=null&&(r.Long?(i.aid=r.Long.fromValue(t.aid)).unsigned=!1:typeof t.aid=="string"?i.aid=parseInt(t.aid,10):typeof t.aid=="number"?i.aid=t.aid:typeof t.aid=="object"&&(i.aid=new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber())),t.vid!=null&&(i.vid=String(t.vid)),t.cid!=null&&(r.Long?(i.cid=r.Long.fromValue(t.cid)).unsigned=!1:typeof t.cid=="string"?i.cid=parseInt(t.cid,10):typeof t.cid=="number"?i.cid=t.cid:typeof t.cid=="object"&&(i.cid=new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber())),t.from!=null&&(i.from=String(t.from)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.aid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.aid=i.longs===String?"0":0;if(n.vid="",r.Long){let o=new r.Long(0,0,!1);n.cid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.cid=i.longs===String?"0":0;n.from=""}return t.aid!=null&&t.hasOwnProperty("aid")&&(typeof t.aid=="number"?n.aid=i.longs===String?String(t.aid):t.aid:n.aid=i.longs===String?r.Long.prototype.toString.call(t.aid):i.longs===Number?new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber():t.aid),t.vid!=null&&t.hasOwnProperty("vid")&&(n.vid=t.vid),t.cid!=null&&t.hasOwnProperty("cid")&&(typeof t.cid=="number"?n.cid=i.longs===String?String(t.cid):t.cid:n.cid=i.longs===String?r.Long.prototype.toString.call(t.cid):i.longs===Number?new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber():t.cid),t.from!=null&&t.hasOwnProperty("from")&&(n.from=t.from),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.SeasonPlayer"},e}(),c.ElecRank=function(){function e(l){if(this.list=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.list&&o.list.length||(o.list=[]),o.list.push(u.bilibili.app.view.v1.ElecRankItem.decode(t,t.uint32()));break}case 2:{o.count=t.int64();break}case 3:{o.text=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.ElecRank)return t;let i=new u.bilibili.app.view.v1.ElecRank;if(t.list){if(!Array.isArray(t.list))throw TypeError(".bilibili.app.view.v1.ElecRank.list: array expected");i.list=[];for(let n=0;n>>0,t.count.high>>>0).toNumber())),t.text!=null&&(i.text=String(t.text)),i},e.toObject=function(t,i){i||(i={});let n={};if((i.arrays||i.defaults)&&(n.list=[]),i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.count=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.count=i.longs===String?"0":0;n.text=""}if(t.list&&t.list.length){n.list=[];for(let o=0;o>>0,t.count.high>>>0).toNumber():t.count),t.text!=null&&t.hasOwnProperty("text")&&(n.text=t.text),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.ElecRank"},e}(),c.ElecRankItem=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.avatar=t.string();break}case 2:{o.nickname=t.string();break}case 3:{o.message=t.string();break}case 4:{o.mid=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.ElecRankItem)return t;let i=new u.bilibili.app.view.v1.ElecRankItem;return t.avatar!=null&&(i.avatar=String(t.avatar)),t.nickname!=null&&(i.nickname=String(t.nickname)),t.message!=null&&(i.message=String(t.message)),t.mid!=null&&(r.Long?(i.mid=r.Long.fromValue(t.mid)).unsigned=!1:typeof t.mid=="string"?i.mid=parseInt(t.mid,10):typeof t.mid=="number"?i.mid=t.mid:typeof t.mid=="object"&&(i.mid=new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(n.avatar="",n.nickname="",n.message="",r.Long){let o=new r.Long(0,0,!1);n.mid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mid=i.longs===String?"0":0;return t.avatar!=null&&t.hasOwnProperty("avatar")&&(n.avatar=t.avatar),t.nickname!=null&&t.hasOwnProperty("nickname")&&(n.nickname=t.nickname),t.message!=null&&t.hasOwnProperty("message")&&(n.message=t.message),t.mid!=null&&t.hasOwnProperty("mid")&&(typeof t.mid=="number"?n.mid=i.longs===String?String(t.mid):t.mid:n.mid=i.longs===String?r.Long.prototype.toString.call(t.mid):i.longs===Number?new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber():t.mid),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.ElecRankItem"},e}(),c.History=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.cid=t.int64();break}case 2:{o.progress=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.History)return t;let i=new u.bilibili.app.view.v1.History;return t.cid!=null&&(r.Long?(i.cid=r.Long.fromValue(t.cid)).unsigned=!1:typeof t.cid=="string"?i.cid=parseInt(t.cid,10):typeof t.cid=="number"?i.cid=t.cid:typeof t.cid=="object"&&(i.cid=new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber())),t.progress!=null&&(r.Long?(i.progress=r.Long.fromValue(t.progress)).unsigned=!1:typeof t.progress=="string"?i.progress=parseInt(t.progress,10):typeof t.progress=="number"?i.progress=t.progress:typeof t.progress=="object"&&(i.progress=new r.LongBits(t.progress.low>>>0,t.progress.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.cid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.cid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.progress=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.progress=i.longs===String?"0":0}return t.cid!=null&&t.hasOwnProperty("cid")&&(typeof t.cid=="number"?n.cid=i.longs===String?String(t.cid):t.cid:n.cid=i.longs===String?r.Long.prototype.toString.call(t.cid):i.longs===Number?new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber():t.cid),t.progress!=null&&t.hasOwnProperty("progress")&&(typeof t.progress=="number"?n.progress=i.longs===String?String(t.progress):t.progress:n.progress=i.longs===String?r.Long.prototype.toString.call(t.progress):i.longs===Number?new r.LongBits(t.progress.low>>>0,t.progress.high>>>0).toNumber():t.progress),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.History"},e}(),c.Relate=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.aid=t.int64();break}case 2:{o.pic=t.string();break}case 3:{o.title=t.string();break}case 4:{o.author=u.archive.service.v1.Author.decode(t,t.uint32());break}case 5:{o.stat=u.archive.service.v1.Stat.decode(t,t.uint32());break}case 6:{o.duration=t.int64();break}case 7:{o.goto=t.string();break}case 8:{o.param=t.string();break}case 9:{o.uri=t.string();break}case 10:{o.jumpUrl=t.string();break}case 11:{o.rating=t.double();break}case 12:{o.reserve=t.string();break}case 13:{o.from=t.string();break}case 14:{o.desc=t.string();break}case 15:{o.rcmdReason=t.string();break}case 16:{o.badge=t.string();break}case 17:{o.cid=t.int64();break}case 18:{o.seasonType=t.int32();break}case 19:{o.ratingCount=t.int32();break}case 20:{o.tagName=t.string();break}case 21:{o.packInfo=u.bilibili.app.view.v1.PackInfo.decode(t,t.uint32());break}case 22:{o.notice=u.bilibili.app.view.v1.Notice.decode(t,t.uint32());break}case 23:{o.button=u.bilibili.app.view.v1.Button.decode(t,t.uint32());break}case 24:{o.trackid=t.string();break}case 25:{o.newCard=t.int32();break}case 26:{o.rcmdReasonStyle=u.bilibili.app.view.v1.ReasonStyle.decode(t,t.uint32());break}case 27:{o.coverGif=t.string();break}case 28:{o.cm=u.bilibili.app.view.v1.CM.decode(t,t.uint32());break}case 29:{o.reserveStatus=t.int64();break}case 30:{o.rcmdReasonExtra=t.string();break}case 31:{o.recThreePoint=u.bilibili.app.view.v1.RecThreePoint.decode(t,t.uint32());break}case 32:{o.uniqueId=t.string();break}case 33:{o.materialId=t.int64();break}case 34:{o.fromSourceType=t.int64();break}case 35:{o.fromSourceId=t.string();break}case 36:{o.dimension=u.archive.service.v1.Dimension.decode(t,t.uint32());break}case 37:{o.cover=t.string();break}case 38:{o.badgeStyle=u.bilibili.app.view.v1.ReasonStyle.decode(t,t.uint32());break}case 39:{o.powerIconStyle=u.bilibili.app.view.v1.PowerIconStyle.decode(t,t.uint32());break}case 40:{o.reserveStatusText=t.string();break}case 41:{o.dislikeReportData=t.string();break}case 42:{o.rankInfoGame=u.bilibili.app.view.v1.RankInfo.decode(t,t.uint32());break}case 43:{o.firstFrame=t.string();break}case 44:{o.gameRecommendReason=t.string();break}case 45:{o.wikiInfoGame=u.bilibili.app.view.v1.WikiInfo.decode(t,t.uint32());break}case 46:{o.liveInfo=u.bilibili.app.view.v1.LiveInfo.decode(t,t.uint32());break}case 47:{o.statV2=u.bilibili.app.view.v1.ArchiveStat.decode(t,t.uint32());break}case 48:{o.reportFlowData=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.Relate)return t;let i=new u.bilibili.app.view.v1.Relate;if(t.aid!=null&&(r.Long?(i.aid=r.Long.fromValue(t.aid)).unsigned=!1:typeof t.aid=="string"?i.aid=parseInt(t.aid,10):typeof t.aid=="number"?i.aid=t.aid:typeof t.aid=="object"&&(i.aid=new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber())),t.pic!=null&&(i.pic=String(t.pic)),t.title!=null&&(i.title=String(t.title)),t.author!=null){if(typeof t.author!="object")throw TypeError(".bilibili.app.view.v1.Relate.author: object expected");i.author=u.archive.service.v1.Author.fromObject(t.author)}if(t.stat!=null){if(typeof t.stat!="object")throw TypeError(".bilibili.app.view.v1.Relate.stat: object expected");i.stat=u.archive.service.v1.Stat.fromObject(t.stat)}if(t.duration!=null&&(r.Long?(i.duration=r.Long.fromValue(t.duration)).unsigned=!1:typeof t.duration=="string"?i.duration=parseInt(t.duration,10):typeof t.duration=="number"?i.duration=t.duration:typeof t.duration=="object"&&(i.duration=new r.LongBits(t.duration.low>>>0,t.duration.high>>>0).toNumber())),t.goto!=null&&(i.goto=String(t.goto)),t.param!=null&&(i.param=String(t.param)),t.uri!=null&&(i.uri=String(t.uri)),t.jumpUrl!=null&&(i.jumpUrl=String(t.jumpUrl)),t.rating!=null&&(i.rating=Number(t.rating)),t.reserve!=null&&(i.reserve=String(t.reserve)),t.from!=null&&(i.from=String(t.from)),t.desc!=null&&(i.desc=String(t.desc)),t.rcmdReason!=null&&(i.rcmdReason=String(t.rcmdReason)),t.badge!=null&&(i.badge=String(t.badge)),t.cid!=null&&(r.Long?(i.cid=r.Long.fromValue(t.cid)).unsigned=!1:typeof t.cid=="string"?i.cid=parseInt(t.cid,10):typeof t.cid=="number"?i.cid=t.cid:typeof t.cid=="object"&&(i.cid=new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber())),t.seasonType!=null&&(i.seasonType=t.seasonType|0),t.ratingCount!=null&&(i.ratingCount=t.ratingCount|0),t.tagName!=null&&(i.tagName=String(t.tagName)),t.packInfo!=null){if(typeof t.packInfo!="object")throw TypeError(".bilibili.app.view.v1.Relate.packInfo: object expected");i.packInfo=u.bilibili.app.view.v1.PackInfo.fromObject(t.packInfo)}if(t.notice!=null){if(typeof t.notice!="object")throw TypeError(".bilibili.app.view.v1.Relate.notice: object expected");i.notice=u.bilibili.app.view.v1.Notice.fromObject(t.notice)}if(t.button!=null){if(typeof t.button!="object")throw TypeError(".bilibili.app.view.v1.Relate.button: object expected");i.button=u.bilibili.app.view.v1.Button.fromObject(t.button)}if(t.trackid!=null&&(i.trackid=String(t.trackid)),t.newCard!=null&&(i.newCard=t.newCard|0),t.rcmdReasonStyle!=null){if(typeof t.rcmdReasonStyle!="object")throw TypeError(".bilibili.app.view.v1.Relate.rcmdReasonStyle: object expected");i.rcmdReasonStyle=u.bilibili.app.view.v1.ReasonStyle.fromObject(t.rcmdReasonStyle)}if(t.coverGif!=null&&(i.coverGif=String(t.coverGif)),t.cm!=null){if(typeof t.cm!="object")throw TypeError(".bilibili.app.view.v1.Relate.cm: object expected");i.cm=u.bilibili.app.view.v1.CM.fromObject(t.cm)}if(t.reserveStatus!=null&&(r.Long?(i.reserveStatus=r.Long.fromValue(t.reserveStatus)).unsigned=!1:typeof t.reserveStatus=="string"?i.reserveStatus=parseInt(t.reserveStatus,10):typeof t.reserveStatus=="number"?i.reserveStatus=t.reserveStatus:typeof t.reserveStatus=="object"&&(i.reserveStatus=new r.LongBits(t.reserveStatus.low>>>0,t.reserveStatus.high>>>0).toNumber())),t.rcmdReasonExtra!=null&&(i.rcmdReasonExtra=String(t.rcmdReasonExtra)),t.recThreePoint!=null){if(typeof t.recThreePoint!="object")throw TypeError(".bilibili.app.view.v1.Relate.recThreePoint: object expected");i.recThreePoint=u.bilibili.app.view.v1.RecThreePoint.fromObject(t.recThreePoint)}if(t.uniqueId!=null&&(i.uniqueId=String(t.uniqueId)),t.materialId!=null&&(r.Long?(i.materialId=r.Long.fromValue(t.materialId)).unsigned=!1:typeof t.materialId=="string"?i.materialId=parseInt(t.materialId,10):typeof t.materialId=="number"?i.materialId=t.materialId:typeof t.materialId=="object"&&(i.materialId=new r.LongBits(t.materialId.low>>>0,t.materialId.high>>>0).toNumber())),t.fromSourceType!=null&&(r.Long?(i.fromSourceType=r.Long.fromValue(t.fromSourceType)).unsigned=!1:typeof t.fromSourceType=="string"?i.fromSourceType=parseInt(t.fromSourceType,10):typeof t.fromSourceType=="number"?i.fromSourceType=t.fromSourceType:typeof t.fromSourceType=="object"&&(i.fromSourceType=new r.LongBits(t.fromSourceType.low>>>0,t.fromSourceType.high>>>0).toNumber())),t.fromSourceId!=null&&(i.fromSourceId=String(t.fromSourceId)),t.dimension!=null){if(typeof t.dimension!="object")throw TypeError(".bilibili.app.view.v1.Relate.dimension: object expected");i.dimension=u.archive.service.v1.Dimension.fromObject(t.dimension)}if(t.cover!=null&&(i.cover=String(t.cover)),t.badgeStyle!=null){if(typeof t.badgeStyle!="object")throw TypeError(".bilibili.app.view.v1.Relate.badgeStyle: object expected");i.badgeStyle=u.bilibili.app.view.v1.ReasonStyle.fromObject(t.badgeStyle)}if(t.powerIconStyle!=null){if(typeof t.powerIconStyle!="object")throw TypeError(".bilibili.app.view.v1.Relate.powerIconStyle: object expected");i.powerIconStyle=u.bilibili.app.view.v1.PowerIconStyle.fromObject(t.powerIconStyle)}if(t.reserveStatusText!=null&&(i.reserveStatusText=String(t.reserveStatusText)),t.dislikeReportData!=null&&(i.dislikeReportData=String(t.dislikeReportData)),t.rankInfoGame!=null){if(typeof t.rankInfoGame!="object")throw TypeError(".bilibili.app.view.v1.Relate.rankInfoGame: object expected");i.rankInfoGame=u.bilibili.app.view.v1.RankInfo.fromObject(t.rankInfoGame)}if(t.firstFrame!=null&&(i.firstFrame=String(t.firstFrame)),t.gameRecommendReason!=null&&(i.gameRecommendReason=String(t.gameRecommendReason)),t.wikiInfoGame!=null){if(typeof t.wikiInfoGame!="object")throw TypeError(".bilibili.app.view.v1.Relate.wikiInfoGame: object expected");i.wikiInfoGame=u.bilibili.app.view.v1.WikiInfo.fromObject(t.wikiInfoGame)}if(t.liveInfo!=null){if(typeof t.liveInfo!="object")throw TypeError(".bilibili.app.view.v1.Relate.liveInfo: object expected");i.liveInfo=u.bilibili.app.view.v1.LiveInfo.fromObject(t.liveInfo)}if(t.statV2!=null){if(typeof t.statV2!="object")throw TypeError(".bilibili.app.view.v1.Relate.statV2: object expected");i.statV2=u.bilibili.app.view.v1.ArchiveStat.fromObject(t.statV2)}return t.reportFlowData!=null&&(i.reportFlowData=String(t.reportFlowData)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.aid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.aid=i.longs===String?"0":0;if(n.pic="",n.title="",n.author=null,n.stat=null,r.Long){let o=new r.Long(0,0,!1);n.duration=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.duration=i.longs===String?"0":0;if(n.goto="",n.param="",n.uri="",n.jumpUrl="",n.rating=0,n.reserve="",n.from="",n.desc="",n.rcmdReason="",n.badge="",r.Long){let o=new r.Long(0,0,!1);n.cid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.cid=i.longs===String?"0":0;if(n.seasonType=0,n.ratingCount=0,n.tagName="",n.packInfo=null,n.notice=null,n.button=null,n.trackid="",n.newCard=0,n.rcmdReasonStyle=null,n.coverGif="",n.cm=null,r.Long){let o=new r.Long(0,0,!1);n.reserveStatus=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.reserveStatus=i.longs===String?"0":0;if(n.rcmdReasonExtra="",n.recThreePoint=null,n.uniqueId="",r.Long){let o=new r.Long(0,0,!1);n.materialId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.materialId=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.fromSourceType=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.fromSourceType=i.longs===String?"0":0;n.fromSourceId="",n.dimension=null,n.cover="",n.badgeStyle=null,n.powerIconStyle=null,n.reserveStatusText="",n.dislikeReportData="",n.rankInfoGame=null,n.firstFrame="",n.gameRecommendReason="",n.wikiInfoGame=null,n.liveInfo=null,n.statV2=null,n.reportFlowData=""}return t.aid!=null&&t.hasOwnProperty("aid")&&(typeof t.aid=="number"?n.aid=i.longs===String?String(t.aid):t.aid:n.aid=i.longs===String?r.Long.prototype.toString.call(t.aid):i.longs===Number?new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber():t.aid),t.pic!=null&&t.hasOwnProperty("pic")&&(n.pic=t.pic),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.author!=null&&t.hasOwnProperty("author")&&(n.author=u.archive.service.v1.Author.toObject(t.author,i)),t.stat!=null&&t.hasOwnProperty("stat")&&(n.stat=u.archive.service.v1.Stat.toObject(t.stat,i)),t.duration!=null&&t.hasOwnProperty("duration")&&(typeof t.duration=="number"?n.duration=i.longs===String?String(t.duration):t.duration:n.duration=i.longs===String?r.Long.prototype.toString.call(t.duration):i.longs===Number?new r.LongBits(t.duration.low>>>0,t.duration.high>>>0).toNumber():t.duration),t.goto!=null&&t.hasOwnProperty("goto")&&(n.goto=t.goto),t.param!=null&&t.hasOwnProperty("param")&&(n.param=t.param),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),t.jumpUrl!=null&&t.hasOwnProperty("jumpUrl")&&(n.jumpUrl=t.jumpUrl),t.rating!=null&&t.hasOwnProperty("rating")&&(n.rating=i.json&&!isFinite(t.rating)?String(t.rating):t.rating),t.reserve!=null&&t.hasOwnProperty("reserve")&&(n.reserve=t.reserve),t.from!=null&&t.hasOwnProperty("from")&&(n.from=t.from),t.desc!=null&&t.hasOwnProperty("desc")&&(n.desc=t.desc),t.rcmdReason!=null&&t.hasOwnProperty("rcmdReason")&&(n.rcmdReason=t.rcmdReason),t.badge!=null&&t.hasOwnProperty("badge")&&(n.badge=t.badge),t.cid!=null&&t.hasOwnProperty("cid")&&(typeof t.cid=="number"?n.cid=i.longs===String?String(t.cid):t.cid:n.cid=i.longs===String?r.Long.prototype.toString.call(t.cid):i.longs===Number?new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber():t.cid),t.seasonType!=null&&t.hasOwnProperty("seasonType")&&(n.seasonType=t.seasonType),t.ratingCount!=null&&t.hasOwnProperty("ratingCount")&&(n.ratingCount=t.ratingCount),t.tagName!=null&&t.hasOwnProperty("tagName")&&(n.tagName=t.tagName),t.packInfo!=null&&t.hasOwnProperty("packInfo")&&(n.packInfo=u.bilibili.app.view.v1.PackInfo.toObject(t.packInfo,i)),t.notice!=null&&t.hasOwnProperty("notice")&&(n.notice=u.bilibili.app.view.v1.Notice.toObject(t.notice,i)),t.button!=null&&t.hasOwnProperty("button")&&(n.button=u.bilibili.app.view.v1.Button.toObject(t.button,i)),t.trackid!=null&&t.hasOwnProperty("trackid")&&(n.trackid=t.trackid),t.newCard!=null&&t.hasOwnProperty("newCard")&&(n.newCard=t.newCard),t.rcmdReasonStyle!=null&&t.hasOwnProperty("rcmdReasonStyle")&&(n.rcmdReasonStyle=u.bilibili.app.view.v1.ReasonStyle.toObject(t.rcmdReasonStyle,i)),t.coverGif!=null&&t.hasOwnProperty("coverGif")&&(n.coverGif=t.coverGif),t.cm!=null&&t.hasOwnProperty("cm")&&(n.cm=u.bilibili.app.view.v1.CM.toObject(t.cm,i)),t.reserveStatus!=null&&t.hasOwnProperty("reserveStatus")&&(typeof t.reserveStatus=="number"?n.reserveStatus=i.longs===String?String(t.reserveStatus):t.reserveStatus:n.reserveStatus=i.longs===String?r.Long.prototype.toString.call(t.reserveStatus):i.longs===Number?new r.LongBits(t.reserveStatus.low>>>0,t.reserveStatus.high>>>0).toNumber():t.reserveStatus),t.rcmdReasonExtra!=null&&t.hasOwnProperty("rcmdReasonExtra")&&(n.rcmdReasonExtra=t.rcmdReasonExtra),t.recThreePoint!=null&&t.hasOwnProperty("recThreePoint")&&(n.recThreePoint=u.bilibili.app.view.v1.RecThreePoint.toObject(t.recThreePoint,i)),t.uniqueId!=null&&t.hasOwnProperty("uniqueId")&&(n.uniqueId=t.uniqueId),t.materialId!=null&&t.hasOwnProperty("materialId")&&(typeof t.materialId=="number"?n.materialId=i.longs===String?String(t.materialId):t.materialId:n.materialId=i.longs===String?r.Long.prototype.toString.call(t.materialId):i.longs===Number?new r.LongBits(t.materialId.low>>>0,t.materialId.high>>>0).toNumber():t.materialId),t.fromSourceType!=null&&t.hasOwnProperty("fromSourceType")&&(typeof t.fromSourceType=="number"?n.fromSourceType=i.longs===String?String(t.fromSourceType):t.fromSourceType:n.fromSourceType=i.longs===String?r.Long.prototype.toString.call(t.fromSourceType):i.longs===Number?new r.LongBits(t.fromSourceType.low>>>0,t.fromSourceType.high>>>0).toNumber():t.fromSourceType),t.fromSourceId!=null&&t.hasOwnProperty("fromSourceId")&&(n.fromSourceId=t.fromSourceId),t.dimension!=null&&t.hasOwnProperty("dimension")&&(n.dimension=u.archive.service.v1.Dimension.toObject(t.dimension,i)),t.cover!=null&&t.hasOwnProperty("cover")&&(n.cover=t.cover),t.badgeStyle!=null&&t.hasOwnProperty("badgeStyle")&&(n.badgeStyle=u.bilibili.app.view.v1.ReasonStyle.toObject(t.badgeStyle,i)),t.powerIconStyle!=null&&t.hasOwnProperty("powerIconStyle")&&(n.powerIconStyle=u.bilibili.app.view.v1.PowerIconStyle.toObject(t.powerIconStyle,i)),t.reserveStatusText!=null&&t.hasOwnProperty("reserveStatusText")&&(n.reserveStatusText=t.reserveStatusText),t.dislikeReportData!=null&&t.hasOwnProperty("dislikeReportData")&&(n.dislikeReportData=t.dislikeReportData),t.rankInfoGame!=null&&t.hasOwnProperty("rankInfoGame")&&(n.rankInfoGame=u.bilibili.app.view.v1.RankInfo.toObject(t.rankInfoGame,i)),t.firstFrame!=null&&t.hasOwnProperty("firstFrame")&&(n.firstFrame=t.firstFrame),t.gameRecommendReason!=null&&t.hasOwnProperty("gameRecommendReason")&&(n.gameRecommendReason=t.gameRecommendReason),t.wikiInfoGame!=null&&t.hasOwnProperty("wikiInfoGame")&&(n.wikiInfoGame=u.bilibili.app.view.v1.WikiInfo.toObject(t.wikiInfoGame,i)),t.liveInfo!=null&&t.hasOwnProperty("liveInfo")&&(n.liveInfo=u.bilibili.app.view.v1.LiveInfo.toObject(t.liveInfo,i)),t.statV2!=null&&t.hasOwnProperty("statV2")&&(n.statV2=u.bilibili.app.view.v1.ArchiveStat.toObject(t.statV2,i)),t.reportFlowData!=null&&t.hasOwnProperty("reportFlowData")&&(n.reportFlowData=t.reportFlowData),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.Relate"},e}(),c.LiveInfo=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.areaName=t.string();break}case 2:{o.watchedShow=t.int64();break}case 3:{o.liveStatus=t.int64();break}case 4:{o.iconType=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.LiveInfo)return t;let i=new u.bilibili.app.view.v1.LiveInfo;return t.areaName!=null&&(i.areaName=String(t.areaName)),t.watchedShow!=null&&(r.Long?(i.watchedShow=r.Long.fromValue(t.watchedShow)).unsigned=!1:typeof t.watchedShow=="string"?i.watchedShow=parseInt(t.watchedShow,10):typeof t.watchedShow=="number"?i.watchedShow=t.watchedShow:typeof t.watchedShow=="object"&&(i.watchedShow=new r.LongBits(t.watchedShow.low>>>0,t.watchedShow.high>>>0).toNumber())),t.liveStatus!=null&&(r.Long?(i.liveStatus=r.Long.fromValue(t.liveStatus)).unsigned=!1:typeof t.liveStatus=="string"?i.liveStatus=parseInt(t.liveStatus,10):typeof t.liveStatus=="number"?i.liveStatus=t.liveStatus:typeof t.liveStatus=="object"&&(i.liveStatus=new r.LongBits(t.liveStatus.low>>>0,t.liveStatus.high>>>0).toNumber())),t.iconType!=null&&(r.Long?(i.iconType=r.Long.fromValue(t.iconType)).unsigned=!1:typeof t.iconType=="string"?i.iconType=parseInt(t.iconType,10):typeof t.iconType=="number"?i.iconType=t.iconType:typeof t.iconType=="object"&&(i.iconType=new r.LongBits(t.iconType.low>>>0,t.iconType.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.areaName="",r.Long){let o=new r.Long(0,0,!1);n.watchedShow=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.watchedShow=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.liveStatus=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.liveStatus=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.iconType=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.iconType=i.longs===String?"0":0}return t.areaName!=null&&t.hasOwnProperty("areaName")&&(n.areaName=t.areaName),t.watchedShow!=null&&t.hasOwnProperty("watchedShow")&&(typeof t.watchedShow=="number"?n.watchedShow=i.longs===String?String(t.watchedShow):t.watchedShow:n.watchedShow=i.longs===String?r.Long.prototype.toString.call(t.watchedShow):i.longs===Number?new r.LongBits(t.watchedShow.low>>>0,t.watchedShow.high>>>0).toNumber():t.watchedShow),t.liveStatus!=null&&t.hasOwnProperty("liveStatus")&&(typeof t.liveStatus=="number"?n.liveStatus=i.longs===String?String(t.liveStatus):t.liveStatus:n.liveStatus=i.longs===String?r.Long.prototype.toString.call(t.liveStatus):i.longs===Number?new r.LongBits(t.liveStatus.low>>>0,t.liveStatus.high>>>0).toNumber():t.liveStatus),t.iconType!=null&&t.hasOwnProperty("iconType")&&(typeof t.iconType=="number"?n.iconType=i.longs===String?String(t.iconType):t.iconType:n.iconType=i.longs===String?r.Long.prototype.toString.call(t.iconType):i.longs===Number?new r.LongBits(t.iconType.low>>>0,t.iconType.high>>>0).toNumber():t.iconType),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.LiveInfo"},e}(),c.WikiInfo=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.wikiLabel=t.string();break}case 2:{o.wikiUrl=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.WikiInfo)return t;let i=new u.bilibili.app.view.v1.WikiInfo;return t.wikiLabel!=null&&(i.wikiLabel=String(t.wikiLabel)),t.wikiUrl!=null&&(i.wikiUrl=String(t.wikiUrl)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.wikiLabel="",n.wikiUrl=""),t.wikiLabel!=null&&t.hasOwnProperty("wikiLabel")&&(n.wikiLabel=t.wikiLabel),t.wikiUrl!=null&&t.hasOwnProperty("wikiUrl")&&(n.wikiUrl=t.wikiUrl),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.WikiInfo"},e}(),c.RankInfo=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.iconUrlNight=t.string();break}case 2:{o.iconUrlDay=t.string();break}case 3:{o.bkgNightColor=t.string();break}case 4:{o.bkgDayColor=t.string();break}case 5:{o.fontNightColor=t.string();break}case 6:{o.fontDayColor=t.string();break}case 7:{o.rankContent=t.string();break}case 8:{o.rankLink=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.RankInfo)return t;let i=new u.bilibili.app.view.v1.RankInfo;return t.iconUrlNight!=null&&(i.iconUrlNight=String(t.iconUrlNight)),t.iconUrlDay!=null&&(i.iconUrlDay=String(t.iconUrlDay)),t.bkgNightColor!=null&&(i.bkgNightColor=String(t.bkgNightColor)),t.bkgDayColor!=null&&(i.bkgDayColor=String(t.bkgDayColor)),t.fontNightColor!=null&&(i.fontNightColor=String(t.fontNightColor)),t.fontDayColor!=null&&(i.fontDayColor=String(t.fontDayColor)),t.rankContent!=null&&(i.rankContent=String(t.rankContent)),t.rankLink!=null&&(i.rankLink=String(t.rankLink)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.iconUrlNight="",n.iconUrlDay="",n.bkgNightColor="",n.bkgDayColor="",n.fontNightColor="",n.fontDayColor="",n.rankContent="",n.rankLink=""),t.iconUrlNight!=null&&t.hasOwnProperty("iconUrlNight")&&(n.iconUrlNight=t.iconUrlNight),t.iconUrlDay!=null&&t.hasOwnProperty("iconUrlDay")&&(n.iconUrlDay=t.iconUrlDay),t.bkgNightColor!=null&&t.hasOwnProperty("bkgNightColor")&&(n.bkgNightColor=t.bkgNightColor),t.bkgDayColor!=null&&t.hasOwnProperty("bkgDayColor")&&(n.bkgDayColor=t.bkgDayColor),t.fontNightColor!=null&&t.hasOwnProperty("fontNightColor")&&(n.fontNightColor=t.fontNightColor),t.fontDayColor!=null&&t.hasOwnProperty("fontDayColor")&&(n.fontDayColor=t.fontDayColor),t.rankContent!=null&&t.hasOwnProperty("rankContent")&&(n.rankContent=t.rankContent),t.rankLink!=null&&t.hasOwnProperty("rankLink")&&(n.rankLink=t.rankLink),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.RankInfo"},e}(),c.PowerIconStyle=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.iconUrl=t.string();break}case 2:{o.iconNightUrl=t.string();break}case 3:{o.iconWidth=t.int64();break}case 4:{o.iconHeight=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.PowerIconStyle)return t;let i=new u.bilibili.app.view.v1.PowerIconStyle;return t.iconUrl!=null&&(i.iconUrl=String(t.iconUrl)),t.iconNightUrl!=null&&(i.iconNightUrl=String(t.iconNightUrl)),t.iconWidth!=null&&(r.Long?(i.iconWidth=r.Long.fromValue(t.iconWidth)).unsigned=!1:typeof t.iconWidth=="string"?i.iconWidth=parseInt(t.iconWidth,10):typeof t.iconWidth=="number"?i.iconWidth=t.iconWidth:typeof t.iconWidth=="object"&&(i.iconWidth=new r.LongBits(t.iconWidth.low>>>0,t.iconWidth.high>>>0).toNumber())),t.iconHeight!=null&&(r.Long?(i.iconHeight=r.Long.fromValue(t.iconHeight)).unsigned=!1:typeof t.iconHeight=="string"?i.iconHeight=parseInt(t.iconHeight,10):typeof t.iconHeight=="number"?i.iconHeight=t.iconHeight:typeof t.iconHeight=="object"&&(i.iconHeight=new r.LongBits(t.iconHeight.low>>>0,t.iconHeight.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.iconUrl="",n.iconNightUrl="",r.Long){let o=new r.Long(0,0,!1);n.iconWidth=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.iconWidth=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.iconHeight=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.iconHeight=i.longs===String?"0":0}return t.iconUrl!=null&&t.hasOwnProperty("iconUrl")&&(n.iconUrl=t.iconUrl),t.iconNightUrl!=null&&t.hasOwnProperty("iconNightUrl")&&(n.iconNightUrl=t.iconNightUrl),t.iconWidth!=null&&t.hasOwnProperty("iconWidth")&&(typeof t.iconWidth=="number"?n.iconWidth=i.longs===String?String(t.iconWidth):t.iconWidth:n.iconWidth=i.longs===String?r.Long.prototype.toString.call(t.iconWidth):i.longs===Number?new r.LongBits(t.iconWidth.low>>>0,t.iconWidth.high>>>0).toNumber():t.iconWidth),t.iconHeight!=null&&t.hasOwnProperty("iconHeight")&&(typeof t.iconHeight=="number"?n.iconHeight=i.longs===String?String(t.iconHeight):t.iconHeight:n.iconHeight=i.longs===String?r.Long.prototype.toString.call(t.iconHeight):i.longs===Number?new r.LongBits(t.iconHeight.low>>>0,t.iconHeight.high>>>0).toNumber():t.iconHeight),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.PowerIconStyle"},e}(),c.RecThreePoint=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.dislike=u.bilibili.app.view.v1.RecDislike.decode(t,t.uint32());break}case 2:{o.feedback=u.bilibili.app.view.v1.RecDislike.decode(t,t.uint32());break}case 3:{o.watchLater=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.RecThreePoint)return t;let i=new u.bilibili.app.view.v1.RecThreePoint;if(t.dislike!=null){if(typeof t.dislike!="object")throw TypeError(".bilibili.app.view.v1.RecThreePoint.dislike: object expected");i.dislike=u.bilibili.app.view.v1.RecDislike.fromObject(t.dislike)}if(t.feedback!=null){if(typeof t.feedback!="object")throw TypeError(".bilibili.app.view.v1.RecThreePoint.feedback: object expected");i.feedback=u.bilibili.app.view.v1.RecDislike.fromObject(t.feedback)}return t.watchLater!=null&&(i.watchLater=!!t.watchLater),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.dislike=null,n.feedback=null,n.watchLater=!1),t.dislike!=null&&t.hasOwnProperty("dislike")&&(n.dislike=u.bilibili.app.view.v1.RecDislike.toObject(t.dislike,i)),t.feedback!=null&&t.hasOwnProperty("feedback")&&(n.feedback=u.bilibili.app.view.v1.RecDislike.toObject(t.feedback,i)),t.watchLater!=null&&t.hasOwnProperty("watchLater")&&(n.watchLater=t.watchLater),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.RecThreePoint"},e}(),c.RecDislike=function(){function e(l){if(this.dislikeReason=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.subTitle=t.string();break}case 3:{o.closedSubTitle=t.string();break}case 4:{o.pasteText=t.string();break}case 5:{o.closedPasteText=t.string();break}case 6:{o.dislikeReason&&o.dislikeReason.length||(o.dislikeReason=[]),o.dislikeReason.push(u.bilibili.app.view.v1.DislikeReasons.decode(t,t.uint32()));break}case 7:{o.toast=t.string();break}case 8:{o.closedToast=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.RecDislike)return t;let i=new u.bilibili.app.view.v1.RecDislike;if(t.title!=null&&(i.title=String(t.title)),t.subTitle!=null&&(i.subTitle=String(t.subTitle)),t.closedSubTitle!=null&&(i.closedSubTitle=String(t.closedSubTitle)),t.pasteText!=null&&(i.pasteText=String(t.pasteText)),t.closedPasteText!=null&&(i.closedPasteText=String(t.closedPasteText)),t.dislikeReason){if(!Array.isArray(t.dislikeReason))throw TypeError(".bilibili.app.view.v1.RecDislike.dislikeReason: array expected");i.dislikeReason=[];for(let n=0;n>>3){case 1:{o.text=t.string();break}case 2:{o.textColor=t.string();break}case 3:{o.textColorNight=t.string();break}case 4:{o.bgColor=t.string();break}case 5:{o.bgColorNight=t.string();break}case 6:{o.borderColor=t.string();break}case 7:{o.borderColorNight=t.string();break}case 8:{o.bgStyle=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.BadgeStyle)return t;let i=new u.bilibili.app.view.v1.BadgeStyle;return t.text!=null&&(i.text=String(t.text)),t.textColor!=null&&(i.textColor=String(t.textColor)),t.textColorNight!=null&&(i.textColorNight=String(t.textColorNight)),t.bgColor!=null&&(i.bgColor=String(t.bgColor)),t.bgColorNight!=null&&(i.bgColorNight=String(t.bgColorNight)),t.borderColor!=null&&(i.borderColor=String(t.borderColor)),t.borderColorNight!=null&&(i.borderColorNight=String(t.borderColorNight)),t.bgStyle!=null&&(i.bgStyle=t.bgStyle|0),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.text="",n.textColor="",n.textColorNight="",n.bgColor="",n.bgColorNight="",n.borderColor="",n.borderColorNight="",n.bgStyle=0),t.text!=null&&t.hasOwnProperty("text")&&(n.text=t.text),t.textColor!=null&&t.hasOwnProperty("textColor")&&(n.textColor=t.textColor),t.textColorNight!=null&&t.hasOwnProperty("textColorNight")&&(n.textColorNight=t.textColorNight),t.bgColor!=null&&t.hasOwnProperty("bgColor")&&(n.bgColor=t.bgColor),t.bgColorNight!=null&&t.hasOwnProperty("bgColorNight")&&(n.bgColorNight=t.bgColorNight),t.borderColor!=null&&t.hasOwnProperty("borderColor")&&(n.borderColor=t.borderColor),t.borderColorNight!=null&&t.hasOwnProperty("borderColorNight")&&(n.borderColorNight=t.borderColorNight),t.bgStyle!=null&&t.hasOwnProperty("bgStyle")&&(n.bgStyle=t.bgStyle),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.BadgeStyle"},e}(),c.ReasonStyle=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.text=t.string();break}case 2:{o.textColor=t.string();break}case 3:{o.bgColor=t.string();break}case 4:{o.borderColor=t.string();break}case 5:{o.textColorNight=t.string();break}case 6:{o.bgColorNight=t.string();break}case 7:{o.borderColorNight=t.string();break}case 8:{o.bgStyle=t.int32();break}case 9:{o.selected=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.ReasonStyle)return t;let i=new u.bilibili.app.view.v1.ReasonStyle;return t.text!=null&&(i.text=String(t.text)),t.textColor!=null&&(i.textColor=String(t.textColor)),t.bgColor!=null&&(i.bgColor=String(t.bgColor)),t.borderColor!=null&&(i.borderColor=String(t.borderColor)),t.textColorNight!=null&&(i.textColorNight=String(t.textColorNight)),t.bgColorNight!=null&&(i.bgColorNight=String(t.bgColorNight)),t.borderColorNight!=null&&(i.borderColorNight=String(t.borderColorNight)),t.bgStyle!=null&&(i.bgStyle=t.bgStyle|0),t.selected!=null&&(i.selected=t.selected|0),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.text="",n.textColor="",n.bgColor="",n.borderColor="",n.textColorNight="",n.bgColorNight="",n.borderColorNight="",n.bgStyle=0,n.selected=0),t.text!=null&&t.hasOwnProperty("text")&&(n.text=t.text),t.textColor!=null&&t.hasOwnProperty("textColor")&&(n.textColor=t.textColor),t.bgColor!=null&&t.hasOwnProperty("bgColor")&&(n.bgColor=t.bgColor),t.borderColor!=null&&t.hasOwnProperty("borderColor")&&(n.borderColor=t.borderColor),t.textColorNight!=null&&t.hasOwnProperty("textColorNight")&&(n.textColorNight=t.textColorNight),t.bgColorNight!=null&&t.hasOwnProperty("bgColorNight")&&(n.bgColorNight=t.bgColorNight),t.borderColorNight!=null&&t.hasOwnProperty("borderColorNight")&&(n.borderColorNight=t.borderColorNight),t.bgStyle!=null&&t.hasOwnProperty("bgStyle")&&(n.bgStyle=t.bgStyle),t.selected!=null&&t.hasOwnProperty("selected")&&(n.selected=t.selected),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.ReasonStyle"},e}(),c.PackInfo=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.uri=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.PackInfo)return t;let i=new u.bilibili.app.view.v1.PackInfo;return t.title!=null&&(i.title=String(t.title)),t.uri!=null&&(i.uri=String(t.uri)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.title="",n.uri=""),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.PackInfo"},e}(),c.Notice=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.desc=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.Notice)return t;let i=new u.bilibili.app.view.v1.Notice;return t.title!=null&&(i.title=String(t.title)),t.desc!=null&&(i.desc=String(t.desc)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.title="",n.desc=""),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.desc!=null&&t.hasOwnProperty("desc")&&(n.desc=t.desc),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.Notice"},e}(),c.Button=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.uri=t.string();break}case 3:{o.icon=t.string();break}case 4:{o.jumpShowType=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.Button)return t;let i=new u.bilibili.app.view.v1.Button;switch(t.title!=null&&(i.title=String(t.title)),t.uri!=null&&(i.uri=String(t.uri)),t.icon!=null&&(i.icon=String(t.icon)),t.jumpShowType){default:if(typeof t.jumpShowType=="number"){i.jumpShowType=t.jumpShowType;break}break;case"JST_DEFAULT":case 0:i.jumpShowType=0;break;case"JST_FULLSCREEN":case 1:i.jumpShowType=1;break;case"JST_HALFSCREEN":case 2:i.jumpShowType=2;break}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.title="",n.uri="",n.icon="",n.jumpShowType=i.enums===String?"JST_DEFAULT":0),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),t.icon!=null&&t.hasOwnProperty("icon")&&(n.icon=t.icon),t.jumpShowType!=null&&t.hasOwnProperty("jumpShowType")&&(n.jumpShowType=i.enums===String?u.bilibili.app.view.v1.JumpShowType[t.jumpShowType]===void 0?t.jumpShowType:u.bilibili.app.view.v1.JumpShowType[t.jumpShowType]:t.jumpShowType),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.Button"},e}(),c.JumpShowType=function(){let e={},l=Object.create(e);return l[e[0]="JST_DEFAULT"]=0,l[e[1]="JST_FULLSCREEN"]=1,l[e[2]="JST_HALFSCREEN"]=2,l}(),c.Dislike=function(){function e(l){if(this.reasons=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.subtitle=t.string();break}case 3:{o.reasons&&o.reasons.length||(o.reasons=[]),o.reasons.push(u.bilibili.app.view.v1.DislikeReasons.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.Dislike)return t;let i=new u.bilibili.app.view.v1.Dislike;if(t.title!=null&&(i.title=String(t.title)),t.subtitle!=null&&(i.subtitle=String(t.subtitle)),t.reasons){if(!Array.isArray(t.reasons))throw TypeError(".bilibili.app.view.v1.Dislike.reasons: array expected");i.reasons=[];for(let n=0;n>>3){case 1:{o.id=t.int64();break}case 2:{o.mid=t.int64();break}case 3:{o.rid=t.int32();break}case 4:{o.tagId=t.int64();break}case 5:{o.name=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.DislikeReasons)return t;let i=new u.bilibili.app.view.v1.DislikeReasons;return t.id!=null&&(r.Long?(i.id=r.Long.fromValue(t.id)).unsigned=!1:typeof t.id=="string"?i.id=parseInt(t.id,10):typeof t.id=="number"?i.id=t.id:typeof t.id=="object"&&(i.id=new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber())),t.mid!=null&&(r.Long?(i.mid=r.Long.fromValue(t.mid)).unsigned=!1:typeof t.mid=="string"?i.mid=parseInt(t.mid,10):typeof t.mid=="number"?i.mid=t.mid:typeof t.mid=="object"&&(i.mid=new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber())),t.rid!=null&&(i.rid=t.rid|0),t.tagId!=null&&(r.Long?(i.tagId=r.Long.fromValue(t.tagId)).unsigned=!1:typeof t.tagId=="string"?i.tagId=parseInt(t.tagId,10):typeof t.tagId=="number"?i.tagId=t.tagId:typeof t.tagId=="object"&&(i.tagId=new r.LongBits(t.tagId.low>>>0,t.tagId.high>>>0).toNumber())),t.name!=null&&(i.name=String(t.name)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.id=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.id=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.mid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mid=i.longs===String?"0":0;if(n.rid=0,r.Long){let o=new r.Long(0,0,!1);n.tagId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.tagId=i.longs===String?"0":0;n.name=""}return t.id!=null&&t.hasOwnProperty("id")&&(typeof t.id=="number"?n.id=i.longs===String?String(t.id):t.id:n.id=i.longs===String?r.Long.prototype.toString.call(t.id):i.longs===Number?new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber():t.id),t.mid!=null&&t.hasOwnProperty("mid")&&(typeof t.mid=="number"?n.mid=i.longs===String?String(t.mid):t.mid:n.mid=i.longs===String?r.Long.prototype.toString.call(t.mid):i.longs===Number?new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber():t.mid),t.rid!=null&&t.hasOwnProperty("rid")&&(n.rid=t.rid),t.tagId!=null&&t.hasOwnProperty("tagId")&&(typeof t.tagId=="number"?n.tagId=i.longs===String?String(t.tagId):t.tagId:n.tagId=i.longs===String?r.Long.prototype.toString.call(t.tagId):i.longs===Number?new r.LongBits(t.tagId.low>>>0,t.tagId.high>>>0).toNumber():t.tagId),t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.DislikeReasons"},e}(),c.PlayerIcon=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.url1=t.string();break}case 2:{o.hash1=t.string();break}case 3:{o.url2=t.string();break}case 4:{o.hash2=t.string();break}case 5:{o.dragLeftPng=t.string();break}case 6:{o.middlePng=t.string();break}case 7:{o.dragRightPng=t.string();break}case 8:{o.dragData=u.bilibili.app.view.v1.IconData.decode(t,t.uint32());break}case 9:{o.nodragData=u.bilibili.app.view.v1.IconData.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.PlayerIcon)return t;let i=new u.bilibili.app.view.v1.PlayerIcon;if(t.url1!=null&&(i.url1=String(t.url1)),t.hash1!=null&&(i.hash1=String(t.hash1)),t.url2!=null&&(i.url2=String(t.url2)),t.hash2!=null&&(i.hash2=String(t.hash2)),t.dragLeftPng!=null&&(i.dragLeftPng=String(t.dragLeftPng)),t.middlePng!=null&&(i.middlePng=String(t.middlePng)),t.dragRightPng!=null&&(i.dragRightPng=String(t.dragRightPng)),t.dragData!=null){if(typeof t.dragData!="object")throw TypeError(".bilibili.app.view.v1.PlayerIcon.dragData: object expected");i.dragData=u.bilibili.app.view.v1.IconData.fromObject(t.dragData)}if(t.nodragData!=null){if(typeof t.nodragData!="object")throw TypeError(".bilibili.app.view.v1.PlayerIcon.nodragData: object expected");i.nodragData=u.bilibili.app.view.v1.IconData.fromObject(t.nodragData)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.url1="",n.hash1="",n.url2="",n.hash2="",n.dragLeftPng="",n.middlePng="",n.dragRightPng="",n.dragData=null,n.nodragData=null),t.url1!=null&&t.hasOwnProperty("url1")&&(n.url1=t.url1),t.hash1!=null&&t.hasOwnProperty("hash1")&&(n.hash1=t.hash1),t.url2!=null&&t.hasOwnProperty("url2")&&(n.url2=t.url2),t.hash2!=null&&t.hasOwnProperty("hash2")&&(n.hash2=t.hash2),t.dragLeftPng!=null&&t.hasOwnProperty("dragLeftPng")&&(n.dragLeftPng=t.dragLeftPng),t.middlePng!=null&&t.hasOwnProperty("middlePng")&&(n.middlePng=t.middlePng),t.dragRightPng!=null&&t.hasOwnProperty("dragRightPng")&&(n.dragRightPng=t.dragRightPng),t.dragData!=null&&t.hasOwnProperty("dragData")&&(n.dragData=u.bilibili.app.view.v1.IconData.toObject(t.dragData,i)),t.nodragData!=null&&t.hasOwnProperty("nodragData")&&(n.nodragData=u.bilibili.app.view.v1.IconData.toObject(t.nodragData,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.PlayerIcon"},e}(),c.IconData=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.metaJson=t.string();break}case 2:{o.spritsImg=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.IconData)return t;let i=new u.bilibili.app.view.v1.IconData;return t.metaJson!=null&&(i.metaJson=String(t.metaJson)),t.spritsImg!=null&&(i.spritsImg=String(t.spritsImg)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.metaJson="",n.spritsImg=""),t.metaJson!=null&&t.hasOwnProperty("metaJson")&&(n.metaJson=t.metaJson),t.spritsImg!=null&&t.hasOwnProperty("spritsImg")&&(n.spritsImg=t.spritsImg),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.IconData"},e}(),c.CM=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.sourceContent=u.google.protobuf.Any.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.CM)return t;let i=new u.bilibili.app.view.v1.CM;if(t.sourceContent!=null){if(typeof t.sourceContent!="object")throw TypeError(".bilibili.app.view.v1.CM.sourceContent: object expected");i.sourceContent=u.google.protobuf.Any.fromObject(t.sourceContent)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.sourceContent=null),t.sourceContent!=null&&t.hasOwnProperty("sourceContent")&&(n.sourceContent=u.google.protobuf.Any.toObject(t.sourceContent,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.CM"},e}(),c.AdInfo=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.creativeId=t.int64();break}case 2:{o.creativeType=t.int64();break}case 3:{o.creativeContent=u.bilibili.app.view.v1.CreativeContent.decode(t,t.uint32());break}case 4:{o.adCb=t.string();break}case 5:{o.cardType=t.int32();break}case 6:{o.Extra=t.bytes();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.AdInfo)return t;let i=new u.bilibili.app.view.v1.AdInfo;if(t.creativeId!=null&&(r.Long?(i.creativeId=r.Long.fromValue(t.creativeId)).unsigned=!1:typeof t.creativeId=="string"?i.creativeId=parseInt(t.creativeId,10):typeof t.creativeId=="number"?i.creativeId=t.creativeId:typeof t.creativeId=="object"&&(i.creativeId=new r.LongBits(t.creativeId.low>>>0,t.creativeId.high>>>0).toNumber())),t.creativeType!=null&&(r.Long?(i.creativeType=r.Long.fromValue(t.creativeType)).unsigned=!1:typeof t.creativeType=="string"?i.creativeType=parseInt(t.creativeType,10):typeof t.creativeType=="number"?i.creativeType=t.creativeType:typeof t.creativeType=="object"&&(i.creativeType=new r.LongBits(t.creativeType.low>>>0,t.creativeType.high>>>0).toNumber())),t.creativeContent!=null){if(typeof t.creativeContent!="object")throw TypeError(".bilibili.app.view.v1.AdInfo.creativeContent: object expected");i.creativeContent=u.bilibili.app.view.v1.CreativeContent.fromObject(t.creativeContent)}return t.adCb!=null&&(i.adCb=String(t.adCb)),t.cardType!=null&&(i.cardType=t.cardType|0),t.Extra!=null&&(typeof t.Extra=="string"?r.base64.decode(t.Extra,i.Extra=r.newBuffer(r.base64.length(t.Extra)),0):t.Extra.length>=0&&(i.Extra=t.Extra)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.creativeId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.creativeId=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.creativeType=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.creativeType=i.longs===String?"0":0;n.creativeContent=null,n.adCb="",n.cardType=0,i.bytes===String?n.Extra="":(n.Extra=[],i.bytes!==Array&&(n.Extra=r.newBuffer(n.Extra)))}return t.creativeId!=null&&t.hasOwnProperty("creativeId")&&(typeof t.creativeId=="number"?n.creativeId=i.longs===String?String(t.creativeId):t.creativeId:n.creativeId=i.longs===String?r.Long.prototype.toString.call(t.creativeId):i.longs===Number?new r.LongBits(t.creativeId.low>>>0,t.creativeId.high>>>0).toNumber():t.creativeId),t.creativeType!=null&&t.hasOwnProperty("creativeType")&&(typeof t.creativeType=="number"?n.creativeType=i.longs===String?String(t.creativeType):t.creativeType:n.creativeType=i.longs===String?r.Long.prototype.toString.call(t.creativeType):i.longs===Number?new r.LongBits(t.creativeType.low>>>0,t.creativeType.high>>>0).toNumber():t.creativeType),t.creativeContent!=null&&t.hasOwnProperty("creativeContent")&&(n.creativeContent=u.bilibili.app.view.v1.CreativeContent.toObject(t.creativeContent,i)),t.adCb!=null&&t.hasOwnProperty("adCb")&&(n.adCb=t.adCb),t.cardType!=null&&t.hasOwnProperty("cardType")&&(n.cardType=t.cardType),t.Extra!=null&&t.hasOwnProperty("Extra")&&(n.Extra=i.bytes===String?r.base64.encode(t.Extra,0,t.Extra.length):i.bytes===Array?Array.prototype.slice.call(t.Extra):t.Extra),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.AdInfo"},e}(),c.CreativeContent=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.description=t.string();break}case 3:{o.buttonTitle=t.string();break}case 4:{o.videoId=t.int64();break}case 5:{o.username=t.string();break}case 6:{o.imageUrl=t.string();break}case 7:{o.imageMd5=t.string();break}case 8:{o.logUrl=t.string();break}case 9:{o.logMd5=t.string();break}case 10:{o.url=t.string();break}case 11:{o.clickUrl=t.string();break}case 12:{o.showUrl=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.CreativeContent)return t;let i=new u.bilibili.app.view.v1.CreativeContent;return t.title!=null&&(i.title=String(t.title)),t.description!=null&&(i.description=String(t.description)),t.buttonTitle!=null&&(i.buttonTitle=String(t.buttonTitle)),t.videoId!=null&&(r.Long?(i.videoId=r.Long.fromValue(t.videoId)).unsigned=!1:typeof t.videoId=="string"?i.videoId=parseInt(t.videoId,10):typeof t.videoId=="number"?i.videoId=t.videoId:typeof t.videoId=="object"&&(i.videoId=new r.LongBits(t.videoId.low>>>0,t.videoId.high>>>0).toNumber())),t.username!=null&&(i.username=String(t.username)),t.imageUrl!=null&&(i.imageUrl=String(t.imageUrl)),t.imageMd5!=null&&(i.imageMd5=String(t.imageMd5)),t.logUrl!=null&&(i.logUrl=String(t.logUrl)),t.logMd5!=null&&(i.logMd5=String(t.logMd5)),t.url!=null&&(i.url=String(t.url)),t.clickUrl!=null&&(i.clickUrl=String(t.clickUrl)),t.showUrl!=null&&(i.showUrl=String(t.showUrl)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.title="",n.description="",n.buttonTitle="",r.Long){let o=new r.Long(0,0,!1);n.videoId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.videoId=i.longs===String?"0":0;n.username="",n.imageUrl="",n.imageMd5="",n.logUrl="",n.logMd5="",n.url="",n.clickUrl="",n.showUrl=""}return t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.description!=null&&t.hasOwnProperty("description")&&(n.description=t.description),t.buttonTitle!=null&&t.hasOwnProperty("buttonTitle")&&(n.buttonTitle=t.buttonTitle),t.videoId!=null&&t.hasOwnProperty("videoId")&&(typeof t.videoId=="number"?n.videoId=i.longs===String?String(t.videoId):t.videoId:n.videoId=i.longs===String?r.Long.prototype.toString.call(t.videoId):i.longs===Number?new r.LongBits(t.videoId.low>>>0,t.videoId.high>>>0).toNumber():t.videoId),t.username!=null&&t.hasOwnProperty("username")&&(n.username=t.username),t.imageUrl!=null&&t.hasOwnProperty("imageUrl")&&(n.imageUrl=t.imageUrl),t.imageMd5!=null&&t.hasOwnProperty("imageMd5")&&(n.imageMd5=t.imageMd5),t.logUrl!=null&&t.hasOwnProperty("logUrl")&&(n.logUrl=t.logUrl),t.logMd5!=null&&t.hasOwnProperty("logMd5")&&(n.logMd5=t.logMd5),t.url!=null&&t.hasOwnProperty("url")&&(n.url=t.url),t.clickUrl!=null&&t.hasOwnProperty("clickUrl")&&(n.clickUrl=t.clickUrl),t.showUrl!=null&&t.hasOwnProperty("showUrl")&&(n.showUrl=t.showUrl),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.CreativeContent"},e}(),c.CMConfig=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.adsControl=u.google.protobuf.Any.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.CMConfig)return t;let i=new u.bilibili.app.view.v1.CMConfig;if(t.adsControl!=null){if(typeof t.adsControl!="object")throw TypeError(".bilibili.app.view.v1.CMConfig.adsControl: object expected");i.adsControl=u.google.protobuf.Any.fromObject(t.adsControl)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.adsControl=null),t.adsControl!=null&&t.hasOwnProperty("adsControl")&&(n.adsControl=u.google.protobuf.Any.toObject(t.adsControl,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.CMConfig"},e}(),c.Asset=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.paid=t.int32();break}case 2:{o.price=t.int64();break}case 3:{o.msg=u.bilibili.app.view.v1.AssetMsg.decode(t,t.uint32());break}case 4:{o.previewMsg=u.bilibili.app.view.v1.AssetMsg.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.Asset)return t;let i=new u.bilibili.app.view.v1.Asset;if(t.paid!=null&&(i.paid=t.paid|0),t.price!=null&&(r.Long?(i.price=r.Long.fromValue(t.price)).unsigned=!1:typeof t.price=="string"?i.price=parseInt(t.price,10):typeof t.price=="number"?i.price=t.price:typeof t.price=="object"&&(i.price=new r.LongBits(t.price.low>>>0,t.price.high>>>0).toNumber())),t.msg!=null){if(typeof t.msg!="object")throw TypeError(".bilibili.app.view.v1.Asset.msg: object expected");i.msg=u.bilibili.app.view.v1.AssetMsg.fromObject(t.msg)}if(t.previewMsg!=null){if(typeof t.previewMsg!="object")throw TypeError(".bilibili.app.view.v1.Asset.previewMsg: object expected");i.previewMsg=u.bilibili.app.view.v1.AssetMsg.fromObject(t.previewMsg)}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.paid=0,r.Long){let o=new r.Long(0,0,!1);n.price=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.price=i.longs===String?"0":0;n.msg=null,n.previewMsg=null}return t.paid!=null&&t.hasOwnProperty("paid")&&(n.paid=t.paid),t.price!=null&&t.hasOwnProperty("price")&&(typeof t.price=="number"?n.price=i.longs===String?String(t.price):t.price:n.price=i.longs===String?r.Long.prototype.toString.call(t.price):i.longs===Number?new r.LongBits(t.price.low>>>0,t.price.high>>>0).toNumber():t.price),t.msg!=null&&t.hasOwnProperty("msg")&&(n.msg=u.bilibili.app.view.v1.AssetMsg.toObject(t.msg,i)),t.previewMsg!=null&&t.hasOwnProperty("previewMsg")&&(n.previewMsg=u.bilibili.app.view.v1.AssetMsg.toObject(t.previewMsg,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.Asset"},e}(),c.AssetMsg=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.desc1=t.string();break}case 2:{o.desc2=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.AssetMsg)return t;let i=new u.bilibili.app.view.v1.AssetMsg;return t.desc1!=null&&(i.desc1=String(t.desc1)),t.desc2!=null&&(i.desc2=String(t.desc2)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.desc1="",n.desc2=""),t.desc1!=null&&t.hasOwnProperty("desc1")&&(n.desc1=t.desc1),t.desc2!=null&&t.hasOwnProperty("desc2")&&(n.desc2=t.desc2),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.AssetMsg"},e}(),c.Bgm=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.sid=t.int64();break}case 2:{o.mid=t.int64();break}case 3:{o.title=t.string();break}case 4:{o.author=t.string();break}case 5:{o.jumpUrl=t.string();break}case 6:{o.cover=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.Bgm)return t;let i=new u.bilibili.app.view.v1.Bgm;return t.sid!=null&&(r.Long?(i.sid=r.Long.fromValue(t.sid)).unsigned=!1:typeof t.sid=="string"?i.sid=parseInt(t.sid,10):typeof t.sid=="number"?i.sid=t.sid:typeof t.sid=="object"&&(i.sid=new r.LongBits(t.sid.low>>>0,t.sid.high>>>0).toNumber())),t.mid!=null&&(r.Long?(i.mid=r.Long.fromValue(t.mid)).unsigned=!1:typeof t.mid=="string"?i.mid=parseInt(t.mid,10):typeof t.mid=="number"?i.mid=t.mid:typeof t.mid=="object"&&(i.mid=new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber())),t.title!=null&&(i.title=String(t.title)),t.author!=null&&(i.author=String(t.author)),t.jumpUrl!=null&&(i.jumpUrl=String(t.jumpUrl)),t.cover!=null&&(i.cover=String(t.cover)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.sid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.sid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.mid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mid=i.longs===String?"0":0;n.title="",n.author="",n.jumpUrl="",n.cover=""}return t.sid!=null&&t.hasOwnProperty("sid")&&(typeof t.sid=="number"?n.sid=i.longs===String?String(t.sid):t.sid:n.sid=i.longs===String?r.Long.prototype.toString.call(t.sid):i.longs===Number?new r.LongBits(t.sid.low>>>0,t.sid.high>>>0).toNumber():t.sid),t.mid!=null&&t.hasOwnProperty("mid")&&(typeof t.mid=="number"?n.mid=i.longs===String?String(t.mid):t.mid:n.mid=i.longs===String?r.Long.prototype.toString.call(t.mid):i.longs===Number?new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber():t.mid),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.author!=null&&t.hasOwnProperty("author")&&(n.author=t.author),t.jumpUrl!=null&&t.hasOwnProperty("jumpUrl")&&(n.jumpUrl=t.jumpUrl),t.cover!=null&&t.hasOwnProperty("cover")&&(n.cover=t.cover),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.Bgm"},e}(),c.Staff=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.mid=t.int64();break}case 2:{o.title=t.string();break}case 3:{o.face=t.string();break}case 4:{o.name=t.string();break}case 5:{o.officialVerify=u.bilibili.app.view.v1.OfficialVerify.decode(t,t.uint32());break}case 6:{o.vip=u.bilibili.app.view.v1.Vip.decode(t,t.uint32());break}case 7:{o.attention=t.int32();break}case 8:{o.labelStyle=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.Staff)return t;let i=new u.bilibili.app.view.v1.Staff;if(t.mid!=null&&(r.Long?(i.mid=r.Long.fromValue(t.mid)).unsigned=!1:typeof t.mid=="string"?i.mid=parseInt(t.mid,10):typeof t.mid=="number"?i.mid=t.mid:typeof t.mid=="object"&&(i.mid=new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber())),t.title!=null&&(i.title=String(t.title)),t.face!=null&&(i.face=String(t.face)),t.name!=null&&(i.name=String(t.name)),t.officialVerify!=null){if(typeof t.officialVerify!="object")throw TypeError(".bilibili.app.view.v1.Staff.officialVerify: object expected");i.officialVerify=u.bilibili.app.view.v1.OfficialVerify.fromObject(t.officialVerify)}if(t.vip!=null){if(typeof t.vip!="object")throw TypeError(".bilibili.app.view.v1.Staff.vip: object expected");i.vip=u.bilibili.app.view.v1.Vip.fromObject(t.vip)}return t.attention!=null&&(i.attention=t.attention|0),t.labelStyle!=null&&(i.labelStyle=t.labelStyle|0),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.mid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mid=i.longs===String?"0":0;n.title="",n.face="",n.name="",n.officialVerify=null,n.vip=null,n.attention=0,n.labelStyle=0}return t.mid!=null&&t.hasOwnProperty("mid")&&(typeof t.mid=="number"?n.mid=i.longs===String?String(t.mid):t.mid:n.mid=i.longs===String?r.Long.prototype.toString.call(t.mid):i.longs===Number?new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber():t.mid),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.face!=null&&t.hasOwnProperty("face")&&(n.face=t.face),t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),t.officialVerify!=null&&t.hasOwnProperty("officialVerify")&&(n.officialVerify=u.bilibili.app.view.v1.OfficialVerify.toObject(t.officialVerify,i)),t.vip!=null&&t.hasOwnProperty("vip")&&(n.vip=u.bilibili.app.view.v1.Vip.toObject(t.vip,i)),t.attention!=null&&t.hasOwnProperty("attention")&&(n.attention=t.attention),t.labelStyle!=null&&t.hasOwnProperty("labelStyle")&&(n.labelStyle=t.labelStyle),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.Staff"},e}(),c.Label=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.type=t.int32();break}case 2:{o.uri=t.string();break}case 3:{o.icon=t.string();break}case 4:{o.iconNight=t.string();break}case 5:{o.iconWidth=t.int64();break}case 6:{o.iconHeight=t.int64();break}case 7:{o.lottie=t.string();break}case 8:{o.lottieNight=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.Label)return t;let i=new u.bilibili.app.view.v1.Label;return t.type!=null&&(i.type=t.type|0),t.uri!=null&&(i.uri=String(t.uri)),t.icon!=null&&(i.icon=String(t.icon)),t.iconNight!=null&&(i.iconNight=String(t.iconNight)),t.iconWidth!=null&&(r.Long?(i.iconWidth=r.Long.fromValue(t.iconWidth)).unsigned=!1:typeof t.iconWidth=="string"?i.iconWidth=parseInt(t.iconWidth,10):typeof t.iconWidth=="number"?i.iconWidth=t.iconWidth:typeof t.iconWidth=="object"&&(i.iconWidth=new r.LongBits(t.iconWidth.low>>>0,t.iconWidth.high>>>0).toNumber())),t.iconHeight!=null&&(r.Long?(i.iconHeight=r.Long.fromValue(t.iconHeight)).unsigned=!1:typeof t.iconHeight=="string"?i.iconHeight=parseInt(t.iconHeight,10):typeof t.iconHeight=="number"?i.iconHeight=t.iconHeight:typeof t.iconHeight=="object"&&(i.iconHeight=new r.LongBits(t.iconHeight.low>>>0,t.iconHeight.high>>>0).toNumber())),t.lottie!=null&&(i.lottie=String(t.lottie)),t.lottieNight!=null&&(i.lottieNight=String(t.lottieNight)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.type=0,n.uri="",n.icon="",n.iconNight="",r.Long){let o=new r.Long(0,0,!1);n.iconWidth=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.iconWidth=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.iconHeight=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.iconHeight=i.longs===String?"0":0;n.lottie="",n.lottieNight=""}return t.type!=null&&t.hasOwnProperty("type")&&(n.type=t.type),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),t.icon!=null&&t.hasOwnProperty("icon")&&(n.icon=t.icon),t.iconNight!=null&&t.hasOwnProperty("iconNight")&&(n.iconNight=t.iconNight),t.iconWidth!=null&&t.hasOwnProperty("iconWidth")&&(typeof t.iconWidth=="number"?n.iconWidth=i.longs===String?String(t.iconWidth):t.iconWidth:n.iconWidth=i.longs===String?r.Long.prototype.toString.call(t.iconWidth):i.longs===Number?new r.LongBits(t.iconWidth.low>>>0,t.iconWidth.high>>>0).toNumber():t.iconWidth),t.iconHeight!=null&&t.hasOwnProperty("iconHeight")&&(typeof t.iconHeight=="number"?n.iconHeight=i.longs===String?String(t.iconHeight):t.iconHeight:n.iconHeight=i.longs===String?r.Long.prototype.toString.call(t.iconHeight):i.longs===Number?new r.LongBits(t.iconHeight.low>>>0,t.iconHeight.high>>>0).toNumber():t.iconHeight),t.lottie!=null&&t.hasOwnProperty("lottie")&&(n.lottie=t.lottie),t.lottieNight!=null&&t.hasOwnProperty("lottieNight")&&(n.lottieNight=t.lottieNight),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.Label"},e}(),c.SeasonType=function(){let e={},l=Object.create(e);return l[e[0]="Unknown"]=0,l[e[1]="Base"]=1,l[e[2]="Good"]=2,l}(),c.UgcSeason=function(){function e(l){if(this.sections=[],this.seasonAbility=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.id=t.int64();break}case 2:{o.title=t.string();break}case 3:{o.cover=t.string();break}case 4:{o.intro=t.string();break}case 5:{o.sections&&o.sections.length||(o.sections=[]),o.sections.push(u.bilibili.app.view.v1.Section.decode(t,t.uint32()));break}case 6:{o.stat=u.bilibili.app.view.v1.UgcSeasonStat.decode(t,t.uint32());break}case 7:{o.labelText=t.string();break}case 8:{o.labelTextColor=t.string();break}case 9:{o.labelBgColor=t.string();break}case 10:{o.labelTextNightColor=t.string();break}case 11:{o.labelBgNightColor=t.string();break}case 12:{o.descRight=t.string();break}case 13:{o.epCount=t.int64();break}case 14:{o.seasonType=t.int32();break}case 15:{o.showContinualButton=t.bool();break}case 16:{o.epNum=t.int64();break}case 17:{o.seasonPay=t.bool();break}case 18:{o.goodsInfo=u.bilibili.app.view.v1.GoodsInfo.decode(t,t.uint32());break}case 19:{o.payButton=u.bilibili.app.view.v1.ButtonStyle.decode(t,t.uint32());break}case 20:{o.labelTextNew=t.string();break}case 21:{o.activity=u.bilibili.app.view.v1.UgcSeasonActivity.decode(t,t.uint32());break}case 22:{o.seasonAbility&&o.seasonAbility.length||(o.seasonAbility=[]),o.seasonAbility.push(t.string());break}case 23:{o.statV2=u.bilibili.app.view.v1.UgcSeasonStatV2.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.UgcSeason)return t;let i=new u.bilibili.app.view.v1.UgcSeason;if(t.id!=null&&(r.Long?(i.id=r.Long.fromValue(t.id)).unsigned=!1:typeof t.id=="string"?i.id=parseInt(t.id,10):typeof t.id=="number"?i.id=t.id:typeof t.id=="object"&&(i.id=new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber())),t.title!=null&&(i.title=String(t.title)),t.cover!=null&&(i.cover=String(t.cover)),t.intro!=null&&(i.intro=String(t.intro)),t.sections){if(!Array.isArray(t.sections))throw TypeError(".bilibili.app.view.v1.UgcSeason.sections: array expected");i.sections=[];for(let n=0;n>>0,t.epCount.high>>>0).toNumber())),t.seasonType){default:if(typeof t.seasonType=="number"){i.seasonType=t.seasonType;break}break;case"Unknown":case 0:i.seasonType=0;break;case"Base":case 1:i.seasonType=1;break;case"Good":case 2:i.seasonType=2;break}if(t.showContinualButton!=null&&(i.showContinualButton=!!t.showContinualButton),t.epNum!=null&&(r.Long?(i.epNum=r.Long.fromValue(t.epNum)).unsigned=!1:typeof t.epNum=="string"?i.epNum=parseInt(t.epNum,10):typeof t.epNum=="number"?i.epNum=t.epNum:typeof t.epNum=="object"&&(i.epNum=new r.LongBits(t.epNum.low>>>0,t.epNum.high>>>0).toNumber())),t.seasonPay!=null&&(i.seasonPay=!!t.seasonPay),t.goodsInfo!=null){if(typeof t.goodsInfo!="object")throw TypeError(".bilibili.app.view.v1.UgcSeason.goodsInfo: object expected");i.goodsInfo=u.bilibili.app.view.v1.GoodsInfo.fromObject(t.goodsInfo)}if(t.payButton!=null){if(typeof t.payButton!="object")throw TypeError(".bilibili.app.view.v1.UgcSeason.payButton: object expected");i.payButton=u.bilibili.app.view.v1.ButtonStyle.fromObject(t.payButton)}if(t.labelTextNew!=null&&(i.labelTextNew=String(t.labelTextNew)),t.activity!=null){if(typeof t.activity!="object")throw TypeError(".bilibili.app.view.v1.UgcSeason.activity: object expected");i.activity=u.bilibili.app.view.v1.UgcSeasonActivity.fromObject(t.activity)}if(t.seasonAbility){if(!Array.isArray(t.seasonAbility))throw TypeError(".bilibili.app.view.v1.UgcSeason.seasonAbility: array expected");i.seasonAbility=[];for(let n=0;n>>0,t.id.high>>>0).toNumber():t.id),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.cover!=null&&t.hasOwnProperty("cover")&&(n.cover=t.cover),t.intro!=null&&t.hasOwnProperty("intro")&&(n.intro=t.intro),t.sections&&t.sections.length){n.sections=[];for(let o=0;o>>0,t.epCount.high>>>0).toNumber():t.epCount),t.seasonType!=null&&t.hasOwnProperty("seasonType")&&(n.seasonType=i.enums===String?u.bilibili.app.view.v1.SeasonType[t.seasonType]===void 0?t.seasonType:u.bilibili.app.view.v1.SeasonType[t.seasonType]:t.seasonType),t.showContinualButton!=null&&t.hasOwnProperty("showContinualButton")&&(n.showContinualButton=t.showContinualButton),t.epNum!=null&&t.hasOwnProperty("epNum")&&(typeof t.epNum=="number"?n.epNum=i.longs===String?String(t.epNum):t.epNum:n.epNum=i.longs===String?r.Long.prototype.toString.call(t.epNum):i.longs===Number?new r.LongBits(t.epNum.low>>>0,t.epNum.high>>>0).toNumber():t.epNum),t.seasonPay!=null&&t.hasOwnProperty("seasonPay")&&(n.seasonPay=t.seasonPay),t.goodsInfo!=null&&t.hasOwnProperty("goodsInfo")&&(n.goodsInfo=u.bilibili.app.view.v1.GoodsInfo.toObject(t.goodsInfo,i)),t.payButton!=null&&t.hasOwnProperty("payButton")&&(n.payButton=u.bilibili.app.view.v1.ButtonStyle.toObject(t.payButton,i)),t.labelTextNew!=null&&t.hasOwnProperty("labelTextNew")&&(n.labelTextNew=t.labelTextNew),t.activity!=null&&t.hasOwnProperty("activity")&&(n.activity=u.bilibili.app.view.v1.UgcSeasonActivity.toObject(t.activity,i)),t.seasonAbility&&t.seasonAbility.length){n.seasonAbility=[];for(let o=0;o>>3){case 11:{o.viewVt=u.bilibili.app.view.v1.StatInfo.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.UgcSeasonStatV2)return t;let i=new u.bilibili.app.view.v1.UgcSeasonStatV2;if(t.viewVt!=null){if(typeof t.viewVt!="object")throw TypeError(".bilibili.app.view.v1.UgcSeasonStatV2.viewVt: object expected");i.viewVt=u.bilibili.app.view.v1.StatInfo.fromObject(t.viewVt)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.viewVt=null),t.viewVt!=null&&t.hasOwnProperty("viewVt")&&(n.viewVt=u.bilibili.app.view.v1.StatInfo.toObject(t.viewVt,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.UgcSeasonStatV2"},e}(),c.UgcSeasonActivity=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.type=t.int32();break}case 2:{o.oid=t.int64();break}case 3:{o.activityId=t.int64();break}case 4:{o.title=t.string();break}case 5:{o.intro=t.string();break}case 6:{o.dayCount=t.int32();break}case 7:{o.userCount=t.int32();break}case 8:{o.joinDeadline=t.int64();break}case 9:{o.activityDeadline=t.int64();break}case 10:{o.checkinViewTime=t.int32();break}case 11:{o.newActivity=t.bool();break}case 12:{o.userActivity=u.bilibili.app.view.v1.UserActivity.decode(t,t.uint32());break}case 13:{o.seasonShow=u.bilibili.app.view.v1.SeasonShow.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.UgcSeasonActivity)return t;let i=new u.bilibili.app.view.v1.UgcSeasonActivity;if(t.type!=null&&(i.type=t.type|0),t.oid!=null&&(r.Long?(i.oid=r.Long.fromValue(t.oid)).unsigned=!1:typeof t.oid=="string"?i.oid=parseInt(t.oid,10):typeof t.oid=="number"?i.oid=t.oid:typeof t.oid=="object"&&(i.oid=new r.LongBits(t.oid.low>>>0,t.oid.high>>>0).toNumber())),t.activityId!=null&&(r.Long?(i.activityId=r.Long.fromValue(t.activityId)).unsigned=!1:typeof t.activityId=="string"?i.activityId=parseInt(t.activityId,10):typeof t.activityId=="number"?i.activityId=t.activityId:typeof t.activityId=="object"&&(i.activityId=new r.LongBits(t.activityId.low>>>0,t.activityId.high>>>0).toNumber())),t.title!=null&&(i.title=String(t.title)),t.intro!=null&&(i.intro=String(t.intro)),t.dayCount!=null&&(i.dayCount=t.dayCount|0),t.userCount!=null&&(i.userCount=t.userCount|0),t.joinDeadline!=null&&(r.Long?(i.joinDeadline=r.Long.fromValue(t.joinDeadline)).unsigned=!1:typeof t.joinDeadline=="string"?i.joinDeadline=parseInt(t.joinDeadline,10):typeof t.joinDeadline=="number"?i.joinDeadline=t.joinDeadline:typeof t.joinDeadline=="object"&&(i.joinDeadline=new r.LongBits(t.joinDeadline.low>>>0,t.joinDeadline.high>>>0).toNumber())),t.activityDeadline!=null&&(r.Long?(i.activityDeadline=r.Long.fromValue(t.activityDeadline)).unsigned=!1:typeof t.activityDeadline=="string"?i.activityDeadline=parseInt(t.activityDeadline,10):typeof t.activityDeadline=="number"?i.activityDeadline=t.activityDeadline:typeof t.activityDeadline=="object"&&(i.activityDeadline=new r.LongBits(t.activityDeadline.low>>>0,t.activityDeadline.high>>>0).toNumber())),t.checkinViewTime!=null&&(i.checkinViewTime=t.checkinViewTime|0),t.newActivity!=null&&(i.newActivity=!!t.newActivity),t.userActivity!=null){if(typeof t.userActivity!="object")throw TypeError(".bilibili.app.view.v1.UgcSeasonActivity.userActivity: object expected");i.userActivity=u.bilibili.app.view.v1.UserActivity.fromObject(t.userActivity)}if(t.seasonShow!=null){if(typeof t.seasonShow!="object")throw TypeError(".bilibili.app.view.v1.UgcSeasonActivity.seasonShow: object expected");i.seasonShow=u.bilibili.app.view.v1.SeasonShow.fromObject(t.seasonShow)}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.type=0,r.Long){let o=new r.Long(0,0,!1);n.oid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.oid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.activityId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.activityId=i.longs===String?"0":0;if(n.title="",n.intro="",n.dayCount=0,n.userCount=0,r.Long){let o=new r.Long(0,0,!1);n.joinDeadline=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.joinDeadline=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.activityDeadline=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.activityDeadline=i.longs===String?"0":0;n.checkinViewTime=0,n.newActivity=!1,n.userActivity=null,n.seasonShow=null}return t.type!=null&&t.hasOwnProperty("type")&&(n.type=t.type),t.oid!=null&&t.hasOwnProperty("oid")&&(typeof t.oid=="number"?n.oid=i.longs===String?String(t.oid):t.oid:n.oid=i.longs===String?r.Long.prototype.toString.call(t.oid):i.longs===Number?new r.LongBits(t.oid.low>>>0,t.oid.high>>>0).toNumber():t.oid),t.activityId!=null&&t.hasOwnProperty("activityId")&&(typeof t.activityId=="number"?n.activityId=i.longs===String?String(t.activityId):t.activityId:n.activityId=i.longs===String?r.Long.prototype.toString.call(t.activityId):i.longs===Number?new r.LongBits(t.activityId.low>>>0,t.activityId.high>>>0).toNumber():t.activityId),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.intro!=null&&t.hasOwnProperty("intro")&&(n.intro=t.intro),t.dayCount!=null&&t.hasOwnProperty("dayCount")&&(n.dayCount=t.dayCount),t.userCount!=null&&t.hasOwnProperty("userCount")&&(n.userCount=t.userCount),t.joinDeadline!=null&&t.hasOwnProperty("joinDeadline")&&(typeof t.joinDeadline=="number"?n.joinDeadline=i.longs===String?String(t.joinDeadline):t.joinDeadline:n.joinDeadline=i.longs===String?r.Long.prototype.toString.call(t.joinDeadline):i.longs===Number?new r.LongBits(t.joinDeadline.low>>>0,t.joinDeadline.high>>>0).toNumber():t.joinDeadline),t.activityDeadline!=null&&t.hasOwnProperty("activityDeadline")&&(typeof t.activityDeadline=="number"?n.activityDeadline=i.longs===String?String(t.activityDeadline):t.activityDeadline:n.activityDeadline=i.longs===String?r.Long.prototype.toString.call(t.activityDeadline):i.longs===Number?new r.LongBits(t.activityDeadline.low>>>0,t.activityDeadline.high>>>0).toNumber():t.activityDeadline),t.checkinViewTime!=null&&t.hasOwnProperty("checkinViewTime")&&(n.checkinViewTime=t.checkinViewTime),t.newActivity!=null&&t.hasOwnProperty("newActivity")&&(n.newActivity=t.newActivity),t.userActivity!=null&&t.hasOwnProperty("userActivity")&&(n.userActivity=u.bilibili.app.view.v1.UserActivity.toObject(t.userActivity,i)),t.seasonShow!=null&&t.hasOwnProperty("seasonShow")&&(n.seasonShow=u.bilibili.app.view.v1.SeasonShow.toObject(t.seasonShow,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.UgcSeasonActivity"},e}(),c.UserActivity=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.userState=t.int32();break}case 2:{o.lastCheckinDate=t.int64();break}case 3:{o.checkinToday=t.int32();break}case 4:{o.userDayCount=t.int32();break}case 5:{o.userViewTime=t.int32();break}case 6:{o.portrait=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.UserActivity)return t;let i=new u.bilibili.app.view.v1.UserActivity;return t.userState!=null&&(i.userState=t.userState|0),t.lastCheckinDate!=null&&(r.Long?(i.lastCheckinDate=r.Long.fromValue(t.lastCheckinDate)).unsigned=!1:typeof t.lastCheckinDate=="string"?i.lastCheckinDate=parseInt(t.lastCheckinDate,10):typeof t.lastCheckinDate=="number"?i.lastCheckinDate=t.lastCheckinDate:typeof t.lastCheckinDate=="object"&&(i.lastCheckinDate=new r.LongBits(t.lastCheckinDate.low>>>0,t.lastCheckinDate.high>>>0).toNumber())),t.checkinToday!=null&&(i.checkinToday=t.checkinToday|0),t.userDayCount!=null&&(i.userDayCount=t.userDayCount|0),t.userViewTime!=null&&(i.userViewTime=t.userViewTime|0),t.portrait!=null&&(i.portrait=String(t.portrait)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.userState=0,r.Long){let o=new r.Long(0,0,!1);n.lastCheckinDate=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.lastCheckinDate=i.longs===String?"0":0;n.checkinToday=0,n.userDayCount=0,n.userViewTime=0,n.portrait=""}return t.userState!=null&&t.hasOwnProperty("userState")&&(n.userState=t.userState),t.lastCheckinDate!=null&&t.hasOwnProperty("lastCheckinDate")&&(typeof t.lastCheckinDate=="number"?n.lastCheckinDate=i.longs===String?String(t.lastCheckinDate):t.lastCheckinDate:n.lastCheckinDate=i.longs===String?r.Long.prototype.toString.call(t.lastCheckinDate):i.longs===Number?new r.LongBits(t.lastCheckinDate.low>>>0,t.lastCheckinDate.high>>>0).toNumber():t.lastCheckinDate),t.checkinToday!=null&&t.hasOwnProperty("checkinToday")&&(n.checkinToday=t.checkinToday),t.userDayCount!=null&&t.hasOwnProperty("userDayCount")&&(n.userDayCount=t.userDayCount),t.userViewTime!=null&&t.hasOwnProperty("userViewTime")&&(n.userViewTime=t.userViewTime),t.portrait!=null&&t.hasOwnProperty("portrait")&&(n.portrait=t.portrait),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.UserActivity"},e}(),c.SeasonShow=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.buttonText=t.string();break}case 2:{o.joinText=t.string();break}case 3:{o.ruleText=t.string();break}case 4:{o.checkinText=t.string();break}case 5:{o.checkinPrompt=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.SeasonShow)return t;let i=new u.bilibili.app.view.v1.SeasonShow;return t.buttonText!=null&&(i.buttonText=String(t.buttonText)),t.joinText!=null&&(i.joinText=String(t.joinText)),t.ruleText!=null&&(i.ruleText=String(t.ruleText)),t.checkinText!=null&&(i.checkinText=String(t.checkinText)),t.checkinPrompt!=null&&(i.checkinPrompt=String(t.checkinPrompt)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.buttonText="",n.joinText="",n.ruleText="",n.checkinText="",n.checkinPrompt=""),t.buttonText!=null&&t.hasOwnProperty("buttonText")&&(n.buttonText=t.buttonText),t.joinText!=null&&t.hasOwnProperty("joinText")&&(n.joinText=t.joinText),t.ruleText!=null&&t.hasOwnProperty("ruleText")&&(n.ruleText=t.ruleText),t.checkinText!=null&&t.hasOwnProperty("checkinText")&&(n.checkinText=t.checkinText),t.checkinPrompt!=null&&t.hasOwnProperty("checkinPrompt")&&(n.checkinPrompt=t.checkinPrompt),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.SeasonShow"},e}(),c.ButtonStyle=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.text=t.string();break}case 2:{o.textColor=t.string();break}case 3:{o.textColorNight=t.string();break}case 4:{o.bgColor=t.string();break}case 5:{o.bgColorNight=t.string();break}case 6:{o.jumpLink=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.ButtonStyle)return t;let i=new u.bilibili.app.view.v1.ButtonStyle;return t.text!=null&&(i.text=String(t.text)),t.textColor!=null&&(i.textColor=String(t.textColor)),t.textColorNight!=null&&(i.textColorNight=String(t.textColorNight)),t.bgColor!=null&&(i.bgColor=String(t.bgColor)),t.bgColorNight!=null&&(i.bgColorNight=String(t.bgColorNight)),t.jumpLink!=null&&(i.jumpLink=String(t.jumpLink)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.text="",n.textColor="",n.textColorNight="",n.bgColor="",n.bgColorNight="",n.jumpLink=""),t.text!=null&&t.hasOwnProperty("text")&&(n.text=t.text),t.textColor!=null&&t.hasOwnProperty("textColor")&&(n.textColor=t.textColor),t.textColorNight!=null&&t.hasOwnProperty("textColorNight")&&(n.textColorNight=t.textColorNight),t.bgColor!=null&&t.hasOwnProperty("bgColor")&&(n.bgColor=t.bgColor),t.bgColorNight!=null&&t.hasOwnProperty("bgColorNight")&&(n.bgColorNight=t.bgColorNight),t.jumpLink!=null&&t.hasOwnProperty("jumpLink")&&(n.jumpLink=t.jumpLink),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.ButtonStyle"},e}(),c.UgcSeasonStat=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.seasonId=t.int64();break}case 2:{o.view=t.int32();break}case 3:{o.danmaku=t.int32();break}case 4:{o.reply=t.int32();break}case 5:{o.fav=t.int32();break}case 6:{o.coin=t.int32();break}case 7:{o.share=t.int32();break}case 8:{o.nowRank=t.int32();break}case 9:{o.hisRank=t.int32();break}case 10:{o.like=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.UgcSeasonStat)return t;let i=new u.bilibili.app.view.v1.UgcSeasonStat;return t.seasonId!=null&&(r.Long?(i.seasonId=r.Long.fromValue(t.seasonId)).unsigned=!1:typeof t.seasonId=="string"?i.seasonId=parseInt(t.seasonId,10):typeof t.seasonId=="number"?i.seasonId=t.seasonId:typeof t.seasonId=="object"&&(i.seasonId=new r.LongBits(t.seasonId.low>>>0,t.seasonId.high>>>0).toNumber())),t.view!=null&&(i.view=t.view|0),t.danmaku!=null&&(i.danmaku=t.danmaku|0),t.reply!=null&&(i.reply=t.reply|0),t.fav!=null&&(i.fav=t.fav|0),t.coin!=null&&(i.coin=t.coin|0),t.share!=null&&(i.share=t.share|0),t.nowRank!=null&&(i.nowRank=t.nowRank|0),t.hisRank!=null&&(i.hisRank=t.hisRank|0),t.like!=null&&(i.like=t.like|0),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.seasonId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.seasonId=i.longs===String?"0":0;n.view=0,n.danmaku=0,n.reply=0,n.fav=0,n.coin=0,n.share=0,n.nowRank=0,n.hisRank=0,n.like=0}return t.seasonId!=null&&t.hasOwnProperty("seasonId")&&(typeof t.seasonId=="number"?n.seasonId=i.longs===String?String(t.seasonId):t.seasonId:n.seasonId=i.longs===String?r.Long.prototype.toString.call(t.seasonId):i.longs===Number?new r.LongBits(t.seasonId.low>>>0,t.seasonId.high>>>0).toNumber():t.seasonId),t.view!=null&&t.hasOwnProperty("view")&&(n.view=t.view),t.danmaku!=null&&t.hasOwnProperty("danmaku")&&(n.danmaku=t.danmaku),t.reply!=null&&t.hasOwnProperty("reply")&&(n.reply=t.reply),t.fav!=null&&t.hasOwnProperty("fav")&&(n.fav=t.fav),t.coin!=null&&t.hasOwnProperty("coin")&&(n.coin=t.coin),t.share!=null&&t.hasOwnProperty("share")&&(n.share=t.share),t.nowRank!=null&&t.hasOwnProperty("nowRank")&&(n.nowRank=t.nowRank),t.hisRank!=null&&t.hasOwnProperty("hisRank")&&(n.hisRank=t.hisRank),t.like!=null&&t.hasOwnProperty("like")&&(n.like=t.like),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.UgcSeasonStat"},e}(),c.Section=function(){function e(l){if(this.episodes=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.id=t.int64();break}case 2:{o.title=t.string();break}case 3:{o.type=t.int64();break}case 4:{o.episodes&&o.episodes.length||(o.episodes=[]),o.episodes.push(u.bilibili.app.view.v1.Episode.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.Section)return t;let i=new u.bilibili.app.view.v1.Section;if(t.id!=null&&(r.Long?(i.id=r.Long.fromValue(t.id)).unsigned=!1:typeof t.id=="string"?i.id=parseInt(t.id,10):typeof t.id=="number"?i.id=t.id:typeof t.id=="object"&&(i.id=new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber())),t.title!=null&&(i.title=String(t.title)),t.type!=null&&(r.Long?(i.type=r.Long.fromValue(t.type)).unsigned=!1:typeof t.type=="string"?i.type=parseInt(t.type,10):typeof t.type=="number"?i.type=t.type:typeof t.type=="object"&&(i.type=new r.LongBits(t.type.low>>>0,t.type.high>>>0).toNumber())),t.episodes){if(!Array.isArray(t.episodes))throw TypeError(".bilibili.app.view.v1.Section.episodes: array expected");i.episodes=[];for(let n=0;n>>0,t.id.high>>>0).toNumber():t.id),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.type!=null&&t.hasOwnProperty("type")&&(typeof t.type=="number"?n.type=i.longs===String?String(t.type):t.type:n.type=i.longs===String?r.Long.prototype.toString.call(t.type):i.longs===Number?new r.LongBits(t.type.low>>>0,t.type.high>>>0).toNumber():t.type),t.episodes&&t.episodes.length){n.episodes=[];for(let o=0;o>>3){case 1:{o.id=t.int64();break}case 2:{o.aid=t.int64();break}case 3:{o.cid=t.int64();break}case 4:{o.title=t.string();break}case 5:{o.cover=t.string();break}case 6:{o.coverRightText=t.string();break}case 7:{o.page=u.archive.service.v1.Page.decode(t,t.uint32());break}case 8:{o.stat=u.archive.service.v1.Stat.decode(t,t.uint32());break}case 9:{o.bvid=t.string();break}case 10:{o.author=u.archive.service.v1.Author.decode(t,t.uint32());break}case 11:{o.authorDesc=t.string();break}case 12:{o.badgeStyle=u.bilibili.app.view.v1.BadgeStyle.decode(t,t.uint32());break}case 13:{o.needPay=t.bool();break}case 14:{o.episodePay=t.bool();break}case 15:{o.freeWatch=t.bool();break}case 16:{o.firstFrame=t.string();break}case 17:{o.statV2=u.bilibili.app.view.v1.ArchiveStat.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.Episode)return t;let i=new u.bilibili.app.view.v1.Episode;if(t.id!=null&&(r.Long?(i.id=r.Long.fromValue(t.id)).unsigned=!1:typeof t.id=="string"?i.id=parseInt(t.id,10):typeof t.id=="number"?i.id=t.id:typeof t.id=="object"&&(i.id=new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber())),t.aid!=null&&(r.Long?(i.aid=r.Long.fromValue(t.aid)).unsigned=!1:typeof t.aid=="string"?i.aid=parseInt(t.aid,10):typeof t.aid=="number"?i.aid=t.aid:typeof t.aid=="object"&&(i.aid=new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber())),t.cid!=null&&(r.Long?(i.cid=r.Long.fromValue(t.cid)).unsigned=!1:typeof t.cid=="string"?i.cid=parseInt(t.cid,10):typeof t.cid=="number"?i.cid=t.cid:typeof t.cid=="object"&&(i.cid=new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber())),t.title!=null&&(i.title=String(t.title)),t.cover!=null&&(i.cover=String(t.cover)),t.coverRightText!=null&&(i.coverRightText=String(t.coverRightText)),t.page!=null){if(typeof t.page!="object")throw TypeError(".bilibili.app.view.v1.Episode.page: object expected");i.page=u.archive.service.v1.Page.fromObject(t.page)}if(t.stat!=null){if(typeof t.stat!="object")throw TypeError(".bilibili.app.view.v1.Episode.stat: object expected");i.stat=u.archive.service.v1.Stat.fromObject(t.stat)}if(t.bvid!=null&&(i.bvid=String(t.bvid)),t.author!=null){if(typeof t.author!="object")throw TypeError(".bilibili.app.view.v1.Episode.author: object expected");i.author=u.archive.service.v1.Author.fromObject(t.author)}if(t.authorDesc!=null&&(i.authorDesc=String(t.authorDesc)),t.badgeStyle!=null){if(typeof t.badgeStyle!="object")throw TypeError(".bilibili.app.view.v1.Episode.badgeStyle: object expected");i.badgeStyle=u.bilibili.app.view.v1.BadgeStyle.fromObject(t.badgeStyle)}if(t.needPay!=null&&(i.needPay=!!t.needPay),t.episodePay!=null&&(i.episodePay=!!t.episodePay),t.freeWatch!=null&&(i.freeWatch=!!t.freeWatch),t.firstFrame!=null&&(i.firstFrame=String(t.firstFrame)),t.statV2!=null){if(typeof t.statV2!="object")throw TypeError(".bilibili.app.view.v1.Episode.statV2: object expected");i.statV2=u.bilibili.app.view.v1.ArchiveStat.fromObject(t.statV2)}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.id=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.id=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.aid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.aid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.cid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.cid=i.longs===String?"0":0;n.title="",n.cover="",n.coverRightText="",n.page=null,n.stat=null,n.bvid="",n.author=null,n.authorDesc="",n.badgeStyle=null,n.needPay=!1,n.episodePay=!1,n.freeWatch=!1,n.firstFrame="",n.statV2=null}return t.id!=null&&t.hasOwnProperty("id")&&(typeof t.id=="number"?n.id=i.longs===String?String(t.id):t.id:n.id=i.longs===String?r.Long.prototype.toString.call(t.id):i.longs===Number?new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber():t.id),t.aid!=null&&t.hasOwnProperty("aid")&&(typeof t.aid=="number"?n.aid=i.longs===String?String(t.aid):t.aid:n.aid=i.longs===String?r.Long.prototype.toString.call(t.aid):i.longs===Number?new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber():t.aid),t.cid!=null&&t.hasOwnProperty("cid")&&(typeof t.cid=="number"?n.cid=i.longs===String?String(t.cid):t.cid:n.cid=i.longs===String?r.Long.prototype.toString.call(t.cid):i.longs===Number?new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber():t.cid),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.cover!=null&&t.hasOwnProperty("cover")&&(n.cover=t.cover),t.coverRightText!=null&&t.hasOwnProperty("coverRightText")&&(n.coverRightText=t.coverRightText),t.page!=null&&t.hasOwnProperty("page")&&(n.page=u.archive.service.v1.Page.toObject(t.page,i)),t.stat!=null&&t.hasOwnProperty("stat")&&(n.stat=u.archive.service.v1.Stat.toObject(t.stat,i)),t.bvid!=null&&t.hasOwnProperty("bvid")&&(n.bvid=t.bvid),t.author!=null&&t.hasOwnProperty("author")&&(n.author=u.archive.service.v1.Author.toObject(t.author,i)),t.authorDesc!=null&&t.hasOwnProperty("authorDesc")&&(n.authorDesc=t.authorDesc),t.badgeStyle!=null&&t.hasOwnProperty("badgeStyle")&&(n.badgeStyle=u.bilibili.app.view.v1.BadgeStyle.toObject(t.badgeStyle,i)),t.needPay!=null&&t.hasOwnProperty("needPay")&&(n.needPay=t.needPay),t.episodePay!=null&&t.hasOwnProperty("episodePay")&&(n.episodePay=t.episodePay),t.freeWatch!=null&&t.hasOwnProperty("freeWatch")&&(n.freeWatch=t.freeWatch),t.firstFrame!=null&&t.hasOwnProperty("firstFrame")&&(n.firstFrame=t.firstFrame),t.statV2!=null&&t.hasOwnProperty("statV2")&&(n.statV2=u.bilibili.app.view.v1.ArchiveStat.toObject(t.statV2,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.Episode"},e}(),c.ArchiveStat=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 11:{o.viewVt=u.bilibili.app.view.v1.StatInfo.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.ArchiveStat)return t;let i=new u.bilibili.app.view.v1.ArchiveStat;if(t.viewVt!=null){if(typeof t.viewVt!="object")throw TypeError(".bilibili.app.view.v1.ArchiveStat.viewVt: object expected");i.viewVt=u.bilibili.app.view.v1.StatInfo.fromObject(t.viewVt)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.viewVt=null),t.viewVt!=null&&t.hasOwnProperty("viewVt")&&(n.viewVt=u.bilibili.app.view.v1.StatInfo.toObject(t.viewVt,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.ArchiveStat"},e}(),c.Config=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.relatesTitle=t.string();break}case 2:{o.relatesStyle=t.int32();break}case 3:{o.relateGifExp=t.int32();break}case 4:{o.endPageHalf=t.int32();break}case 5:{o.endPageFull=t.int32();break}case 6:{o.autoSwindow=t.bool();break}case 7:{o.popupInfo=t.bool();break}case 8:{o.abtestSmallWindow=t.string();break}case 9:{o.recThreePointStyle=t.int32();break}case 10:{o.isAbsoluteTime=t.bool();break}case 11:{o.newSwindow=t.bool();break}case 12:{o.relatesBiserial=t.bool();break}case 13:{o.listenerConf=u.bilibili.app.view.v1.ListenerConfig.decode(t,t.uint32());break}case 14:{o.relatesFeedStyle=t.string();break}case 15:{o.relatesFeedPopup=t.bool();break}case 16:{o.relatesHasNext=t.bool();break}case 17:{o.localPlay=t.int32();break}case 18:{o.playStory=t.bool();break}case 19:{o.arcPlayStory=t.bool();break}case 20:{o.storyIcon=t.string();break}case 21:{o.landscapeStory=t.bool();break}case 22:{o.arcLandscapeStory=t.bool();break}case 23:{o.landscapeIcon=t.string();break}case 24:{o.showListenButton=t.bool();break}case 25:{o.validShowM=t.int64();break}case 26:{o.validShowN=t.int64();break}case 27:{o.dmTreasureBoxControl=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.Config)return t;let i=new u.bilibili.app.view.v1.Config;if(t.relatesTitle!=null&&(i.relatesTitle=String(t.relatesTitle)),t.relatesStyle!=null&&(i.relatesStyle=t.relatesStyle|0),t.relateGifExp!=null&&(i.relateGifExp=t.relateGifExp|0),t.endPageHalf!=null&&(i.endPageHalf=t.endPageHalf|0),t.endPageFull!=null&&(i.endPageFull=t.endPageFull|0),t.autoSwindow!=null&&(i.autoSwindow=!!t.autoSwindow),t.popupInfo!=null&&(i.popupInfo=!!t.popupInfo),t.abtestSmallWindow!=null&&(i.abtestSmallWindow=String(t.abtestSmallWindow)),t.recThreePointStyle!=null&&(i.recThreePointStyle=t.recThreePointStyle|0),t.isAbsoluteTime!=null&&(i.isAbsoluteTime=!!t.isAbsoluteTime),t.newSwindow!=null&&(i.newSwindow=!!t.newSwindow),t.relatesBiserial!=null&&(i.relatesBiserial=!!t.relatesBiserial),t.listenerConf!=null){if(typeof t.listenerConf!="object")throw TypeError(".bilibili.app.view.v1.Config.listenerConf: object expected");i.listenerConf=u.bilibili.app.view.v1.ListenerConfig.fromObject(t.listenerConf)}return t.relatesFeedStyle!=null&&(i.relatesFeedStyle=String(t.relatesFeedStyle)),t.relatesFeedPopup!=null&&(i.relatesFeedPopup=!!t.relatesFeedPopup),t.relatesHasNext!=null&&(i.relatesHasNext=!!t.relatesHasNext),t.localPlay!=null&&(i.localPlay=t.localPlay|0),t.playStory!=null&&(i.playStory=!!t.playStory),t.arcPlayStory!=null&&(i.arcPlayStory=!!t.arcPlayStory),t.storyIcon!=null&&(i.storyIcon=String(t.storyIcon)),t.landscapeStory!=null&&(i.landscapeStory=!!t.landscapeStory),t.arcLandscapeStory!=null&&(i.arcLandscapeStory=!!t.arcLandscapeStory),t.landscapeIcon!=null&&(i.landscapeIcon=String(t.landscapeIcon)),t.showListenButton!=null&&(i.showListenButton=!!t.showListenButton),t.validShowM!=null&&(r.Long?(i.validShowM=r.Long.fromValue(t.validShowM)).unsigned=!1:typeof t.validShowM=="string"?i.validShowM=parseInt(t.validShowM,10):typeof t.validShowM=="number"?i.validShowM=t.validShowM:typeof t.validShowM=="object"&&(i.validShowM=new r.LongBits(t.validShowM.low>>>0,t.validShowM.high>>>0).toNumber())),t.validShowN!=null&&(r.Long?(i.validShowN=r.Long.fromValue(t.validShowN)).unsigned=!1:typeof t.validShowN=="string"?i.validShowN=parseInt(t.validShowN,10):typeof t.validShowN=="number"?i.validShowN=t.validShowN:typeof t.validShowN=="object"&&(i.validShowN=new r.LongBits(t.validShowN.low>>>0,t.validShowN.high>>>0).toNumber())),t.dmTreasureBoxControl!=null&&(i.dmTreasureBoxControl=!!t.dmTreasureBoxControl),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.relatesTitle="",n.relatesStyle=0,n.relateGifExp=0,n.endPageHalf=0,n.endPageFull=0,n.autoSwindow=!1,n.popupInfo=!1,n.abtestSmallWindow="",n.recThreePointStyle=0,n.isAbsoluteTime=!1,n.newSwindow=!1,n.relatesBiserial=!1,n.listenerConf=null,n.relatesFeedStyle="",n.relatesFeedPopup=!1,n.relatesHasNext=!1,n.localPlay=0,n.playStory=!1,n.arcPlayStory=!1,n.storyIcon="",n.landscapeStory=!1,n.arcLandscapeStory=!1,n.landscapeIcon="",n.showListenButton=!1,r.Long){let o=new r.Long(0,0,!1);n.validShowM=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.validShowM=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.validShowN=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.validShowN=i.longs===String?"0":0;n.dmTreasureBoxControl=!1}return t.relatesTitle!=null&&t.hasOwnProperty("relatesTitle")&&(n.relatesTitle=t.relatesTitle),t.relatesStyle!=null&&t.hasOwnProperty("relatesStyle")&&(n.relatesStyle=t.relatesStyle),t.relateGifExp!=null&&t.hasOwnProperty("relateGifExp")&&(n.relateGifExp=t.relateGifExp),t.endPageHalf!=null&&t.hasOwnProperty("endPageHalf")&&(n.endPageHalf=t.endPageHalf),t.endPageFull!=null&&t.hasOwnProperty("endPageFull")&&(n.endPageFull=t.endPageFull),t.autoSwindow!=null&&t.hasOwnProperty("autoSwindow")&&(n.autoSwindow=t.autoSwindow),t.popupInfo!=null&&t.hasOwnProperty("popupInfo")&&(n.popupInfo=t.popupInfo),t.abtestSmallWindow!=null&&t.hasOwnProperty("abtestSmallWindow")&&(n.abtestSmallWindow=t.abtestSmallWindow),t.recThreePointStyle!=null&&t.hasOwnProperty("recThreePointStyle")&&(n.recThreePointStyle=t.recThreePointStyle),t.isAbsoluteTime!=null&&t.hasOwnProperty("isAbsoluteTime")&&(n.isAbsoluteTime=t.isAbsoluteTime),t.newSwindow!=null&&t.hasOwnProperty("newSwindow")&&(n.newSwindow=t.newSwindow),t.relatesBiserial!=null&&t.hasOwnProperty("relatesBiserial")&&(n.relatesBiserial=t.relatesBiserial),t.listenerConf!=null&&t.hasOwnProperty("listenerConf")&&(n.listenerConf=u.bilibili.app.view.v1.ListenerConfig.toObject(t.listenerConf,i)),t.relatesFeedStyle!=null&&t.hasOwnProperty("relatesFeedStyle")&&(n.relatesFeedStyle=t.relatesFeedStyle),t.relatesFeedPopup!=null&&t.hasOwnProperty("relatesFeedPopup")&&(n.relatesFeedPopup=t.relatesFeedPopup),t.relatesHasNext!=null&&t.hasOwnProperty("relatesHasNext")&&(n.relatesHasNext=t.relatesHasNext),t.localPlay!=null&&t.hasOwnProperty("localPlay")&&(n.localPlay=t.localPlay),t.playStory!=null&&t.hasOwnProperty("playStory")&&(n.playStory=t.playStory),t.arcPlayStory!=null&&t.hasOwnProperty("arcPlayStory")&&(n.arcPlayStory=t.arcPlayStory),t.storyIcon!=null&&t.hasOwnProperty("storyIcon")&&(n.storyIcon=t.storyIcon),t.landscapeStory!=null&&t.hasOwnProperty("landscapeStory")&&(n.landscapeStory=t.landscapeStory),t.arcLandscapeStory!=null&&t.hasOwnProperty("arcLandscapeStory")&&(n.arcLandscapeStory=t.arcLandscapeStory),t.landscapeIcon!=null&&t.hasOwnProperty("landscapeIcon")&&(n.landscapeIcon=t.landscapeIcon),t.showListenButton!=null&&t.hasOwnProperty("showListenButton")&&(n.showListenButton=t.showListenButton),t.validShowM!=null&&t.hasOwnProperty("validShowM")&&(typeof t.validShowM=="number"?n.validShowM=i.longs===String?String(t.validShowM):t.validShowM:n.validShowM=i.longs===String?r.Long.prototype.toString.call(t.validShowM):i.longs===Number?new r.LongBits(t.validShowM.low>>>0,t.validShowM.high>>>0).toNumber():t.validShowM),t.validShowN!=null&&t.hasOwnProperty("validShowN")&&(typeof t.validShowN=="number"?n.validShowN=i.longs===String?String(t.validShowN):t.validShowN:n.validShowN=i.longs===String?r.Long.prototype.toString.call(t.validShowN):i.longs===Number?new r.LongBits(t.validShowN.low>>>0,t.validShowN.high>>>0).toNumber():t.validShowN),t.dmTreasureBoxControl!=null&&t.hasOwnProperty("dmTreasureBoxControl")&&(n.dmTreasureBoxControl=t.dmTreasureBoxControl),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.Config"},e}(),c.ListenerConfig=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.jumpStyle=t.int64();break}case 2:{o.guideBar=u.bilibili.app.view.v1.ListenerGuideBar.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.ListenerConfig)return t;let i=new u.bilibili.app.view.v1.ListenerConfig;if(t.jumpStyle!=null&&(r.Long?(i.jumpStyle=r.Long.fromValue(t.jumpStyle)).unsigned=!1:typeof t.jumpStyle=="string"?i.jumpStyle=parseInt(t.jumpStyle,10):typeof t.jumpStyle=="number"?i.jumpStyle=t.jumpStyle:typeof t.jumpStyle=="object"&&(i.jumpStyle=new r.LongBits(t.jumpStyle.low>>>0,t.jumpStyle.high>>>0).toNumber())),t.guideBar!=null){if(typeof t.guideBar!="object")throw TypeError(".bilibili.app.view.v1.ListenerConfig.guideBar: object expected");i.guideBar=u.bilibili.app.view.v1.ListenerGuideBar.fromObject(t.guideBar)}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.jumpStyle=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.jumpStyle=i.longs===String?"0":0;n.guideBar=null}return t.jumpStyle!=null&&t.hasOwnProperty("jumpStyle")&&(typeof t.jumpStyle=="number"?n.jumpStyle=i.longs===String?String(t.jumpStyle):t.jumpStyle:n.jumpStyle=i.longs===String?r.Long.prototype.toString.call(t.jumpStyle):i.longs===Number?new r.LongBits(t.jumpStyle.low>>>0,t.jumpStyle.high>>>0).toNumber():t.jumpStyle),t.guideBar!=null&&t.hasOwnProperty("guideBar")&&(n.guideBar=u.bilibili.app.view.v1.ListenerGuideBar.toObject(t.guideBar,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.ListenerConfig"},e}(),c.ListenerGuideBar=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.showStrategy=t.int64();break}case 2:{o.icon=t.string();break}case 3:{o.text=t.string();break}case 4:{o.btnText=t.string();break}case 5:{o.showTime=t.int64();break}case 6:{o.backgroundTime=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.ListenerGuideBar)return t;let i=new u.bilibili.app.view.v1.ListenerGuideBar;return t.showStrategy!=null&&(r.Long?(i.showStrategy=r.Long.fromValue(t.showStrategy)).unsigned=!1:typeof t.showStrategy=="string"?i.showStrategy=parseInt(t.showStrategy,10):typeof t.showStrategy=="number"?i.showStrategy=t.showStrategy:typeof t.showStrategy=="object"&&(i.showStrategy=new r.LongBits(t.showStrategy.low>>>0,t.showStrategy.high>>>0).toNumber())),t.icon!=null&&(i.icon=String(t.icon)),t.text!=null&&(i.text=String(t.text)),t.btnText!=null&&(i.btnText=String(t.btnText)),t.showTime!=null&&(r.Long?(i.showTime=r.Long.fromValue(t.showTime)).unsigned=!1:typeof t.showTime=="string"?i.showTime=parseInt(t.showTime,10):typeof t.showTime=="number"?i.showTime=t.showTime:typeof t.showTime=="object"&&(i.showTime=new r.LongBits(t.showTime.low>>>0,t.showTime.high>>>0).toNumber())),t.backgroundTime!=null&&(r.Long?(i.backgroundTime=r.Long.fromValue(t.backgroundTime)).unsigned=!1:typeof t.backgroundTime=="string"?i.backgroundTime=parseInt(t.backgroundTime,10):typeof t.backgroundTime=="number"?i.backgroundTime=t.backgroundTime:typeof t.backgroundTime=="object"&&(i.backgroundTime=new r.LongBits(t.backgroundTime.low>>>0,t.backgroundTime.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.showStrategy=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.showStrategy=i.longs===String?"0":0;if(n.icon="",n.text="",n.btnText="",r.Long){let o=new r.Long(0,0,!1);n.showTime=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.showTime=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.backgroundTime=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.backgroundTime=i.longs===String?"0":0}return t.showStrategy!=null&&t.hasOwnProperty("showStrategy")&&(typeof t.showStrategy=="number"?n.showStrategy=i.longs===String?String(t.showStrategy):t.showStrategy:n.showStrategy=i.longs===String?r.Long.prototype.toString.call(t.showStrategy):i.longs===Number?new r.LongBits(t.showStrategy.low>>>0,t.showStrategy.high>>>0).toNumber():t.showStrategy),t.icon!=null&&t.hasOwnProperty("icon")&&(n.icon=t.icon),t.text!=null&&t.hasOwnProperty("text")&&(n.text=t.text),t.btnText!=null&&t.hasOwnProperty("btnText")&&(n.btnText=t.btnText),t.showTime!=null&&t.hasOwnProperty("showTime")&&(typeof t.showTime=="number"?n.showTime=i.longs===String?String(t.showTime):t.showTime:n.showTime=i.longs===String?r.Long.prototype.toString.call(t.showTime):i.longs===Number?new r.LongBits(t.showTime.low>>>0,t.showTime.high>>>0).toNumber():t.showTime),t.backgroundTime!=null&&t.hasOwnProperty("backgroundTime")&&(typeof t.backgroundTime=="number"?n.backgroundTime=i.longs===String?String(t.backgroundTime):t.backgroundTime:n.backgroundTime=i.longs===String?r.Long.prototype.toString.call(t.backgroundTime):i.longs===Number?new r.LongBits(t.backgroundTime.low>>>0,t.backgroundTime.high>>>0).toNumber():t.backgroundTime),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.ListenerGuideBar"},e}(),c.Interaction=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.historyNode=u.bilibili.app.view.v1.Node.decode(t,t.uint32());break}case 2:{o.graphVersion=t.int64();break}case 3:{o.msg=t.string();break}case 4:{o.evaluation=t.string();break}case 5:{o.mark=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.Interaction)return t;let i=new u.bilibili.app.view.v1.Interaction;if(t.historyNode!=null){if(typeof t.historyNode!="object")throw TypeError(".bilibili.app.view.v1.Interaction.historyNode: object expected");i.historyNode=u.bilibili.app.view.v1.Node.fromObject(t.historyNode)}return t.graphVersion!=null&&(r.Long?(i.graphVersion=r.Long.fromValue(t.graphVersion)).unsigned=!1:typeof t.graphVersion=="string"?i.graphVersion=parseInt(t.graphVersion,10):typeof t.graphVersion=="number"?i.graphVersion=t.graphVersion:typeof t.graphVersion=="object"&&(i.graphVersion=new r.LongBits(t.graphVersion.low>>>0,t.graphVersion.high>>>0).toNumber())),t.msg!=null&&(i.msg=String(t.msg)),t.evaluation!=null&&(i.evaluation=String(t.evaluation)),t.mark!=null&&(r.Long?(i.mark=r.Long.fromValue(t.mark)).unsigned=!1:typeof t.mark=="string"?i.mark=parseInt(t.mark,10):typeof t.mark=="number"?i.mark=t.mark:typeof t.mark=="object"&&(i.mark=new r.LongBits(t.mark.low>>>0,t.mark.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.historyNode=null,r.Long){let o=new r.Long(0,0,!1);n.graphVersion=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.graphVersion=i.longs===String?"0":0;if(n.msg="",n.evaluation="",r.Long){let o=new r.Long(0,0,!1);n.mark=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mark=i.longs===String?"0":0}return t.historyNode!=null&&t.hasOwnProperty("historyNode")&&(n.historyNode=u.bilibili.app.view.v1.Node.toObject(t.historyNode,i)),t.graphVersion!=null&&t.hasOwnProperty("graphVersion")&&(typeof t.graphVersion=="number"?n.graphVersion=i.longs===String?String(t.graphVersion):t.graphVersion:n.graphVersion=i.longs===String?r.Long.prototype.toString.call(t.graphVersion):i.longs===Number?new r.LongBits(t.graphVersion.low>>>0,t.graphVersion.high>>>0).toNumber():t.graphVersion),t.msg!=null&&t.hasOwnProperty("msg")&&(n.msg=t.msg),t.evaluation!=null&&t.hasOwnProperty("evaluation")&&(n.evaluation=t.evaluation),t.mark!=null&&t.hasOwnProperty("mark")&&(typeof t.mark=="number"?n.mark=i.longs===String?String(t.mark):t.mark:n.mark=i.longs===String?r.Long.prototype.toString.call(t.mark):i.longs===Number?new r.LongBits(t.mark.low>>>0,t.mark.high>>>0).toNumber():t.mark),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.Interaction"},e}(),c.Honor=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.icon=t.string();break}case 2:{o.iconNight=t.string();break}case 3:{o.text=t.string();break}case 4:{o.textExtra=t.string();break}case 5:{o.textColor=t.string();break}case 6:{o.textColorNight=t.string();break}case 7:{o.bgColor=t.string();break}case 8:{o.bgColorNight=t.string();break}case 9:{o.url=t.string();break}case 10:{o.urlText=t.string();break}case 11:{o.category=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.Honor)return t;let i=new u.bilibili.app.view.v1.Honor;return t.icon!=null&&(i.icon=String(t.icon)),t.iconNight!=null&&(i.iconNight=String(t.iconNight)),t.text!=null&&(i.text=String(t.text)),t.textExtra!=null&&(i.textExtra=String(t.textExtra)),t.textColor!=null&&(i.textColor=String(t.textColor)),t.textColorNight!=null&&(i.textColorNight=String(t.textColorNight)),t.bgColor!=null&&(i.bgColor=String(t.bgColor)),t.bgColorNight!=null&&(i.bgColorNight=String(t.bgColorNight)),t.url!=null&&(i.url=String(t.url)),t.urlText!=null&&(i.urlText=String(t.urlText)),t.category!=null&&(i.category=String(t.category)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.icon="",n.iconNight="",n.text="",n.textExtra="",n.textColor="",n.textColorNight="",n.bgColor="",n.bgColorNight="",n.url="",n.urlText="",n.category=""),t.icon!=null&&t.hasOwnProperty("icon")&&(n.icon=t.icon),t.iconNight!=null&&t.hasOwnProperty("iconNight")&&(n.iconNight=t.iconNight),t.text!=null&&t.hasOwnProperty("text")&&(n.text=t.text),t.textExtra!=null&&t.hasOwnProperty("textExtra")&&(n.textExtra=t.textExtra),t.textColor!=null&&t.hasOwnProperty("textColor")&&(n.textColor=t.textColor),t.textColorNight!=null&&t.hasOwnProperty("textColorNight")&&(n.textColorNight=t.textColorNight),t.bgColor!=null&&t.hasOwnProperty("bgColor")&&(n.bgColor=t.bgColor),t.bgColorNight!=null&&t.hasOwnProperty("bgColorNight")&&(n.bgColorNight=t.bgColorNight),t.url!=null&&t.hasOwnProperty("url")&&(n.url=t.url),t.urlText!=null&&t.hasOwnProperty("urlText")&&(n.urlText=t.urlText),t.category!=null&&t.hasOwnProperty("category")&&(n.category=t.category),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.Honor"},e}(),c.RelateTab=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.id=t.string();break}case 2:{o.title=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.RelateTab)return t;let i=new u.bilibili.app.view.v1.RelateTab;return t.id!=null&&(i.id=String(t.id)),t.title!=null&&(i.title=String(t.title)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.id="",n.title=""),t.id!=null&&t.hasOwnProperty("id")&&(n.id=t.id),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.RelateTab"},e}(),c.UpAct=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.sid=t.int64();break}case 2:{o.mid=t.int64();break}case 3:{o.title=t.string();break}case 4:{o.statement=t.string();break}case 5:{o.image=t.string();break}case 6:{o.url=t.string();break}case 7:{o.button=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.UpAct)return t;let i=new u.bilibili.app.view.v1.UpAct;return t.sid!=null&&(r.Long?(i.sid=r.Long.fromValue(t.sid)).unsigned=!1:typeof t.sid=="string"?i.sid=parseInt(t.sid,10):typeof t.sid=="number"?i.sid=t.sid:typeof t.sid=="object"&&(i.sid=new r.LongBits(t.sid.low>>>0,t.sid.high>>>0).toNumber())),t.mid!=null&&(r.Long?(i.mid=r.Long.fromValue(t.mid)).unsigned=!1:typeof t.mid=="string"?i.mid=parseInt(t.mid,10):typeof t.mid=="number"?i.mid=t.mid:typeof t.mid=="object"&&(i.mid=new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber())),t.title!=null&&(i.title=String(t.title)),t.statement!=null&&(i.statement=String(t.statement)),t.image!=null&&(i.image=String(t.image)),t.url!=null&&(i.url=String(t.url)),t.button!=null&&(i.button=String(t.button)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.sid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.sid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.mid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mid=i.longs===String?"0":0;n.title="",n.statement="",n.image="",n.url="",n.button=""}return t.sid!=null&&t.hasOwnProperty("sid")&&(typeof t.sid=="number"?n.sid=i.longs===String?String(t.sid):t.sid:n.sid=i.longs===String?r.Long.prototype.toString.call(t.sid):i.longs===Number?new r.LongBits(t.sid.low>>>0,t.sid.high>>>0).toNumber():t.sid),t.mid!=null&&t.hasOwnProperty("mid")&&(typeof t.mid=="number"?n.mid=i.longs===String?String(t.mid):t.mid:n.mid=i.longs===String?r.Long.prototype.toString.call(t.mid):i.longs===Number?new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber():t.mid),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.statement!=null&&t.hasOwnProperty("statement")&&(n.statement=t.statement),t.image!=null&&t.hasOwnProperty("image")&&(n.image=t.image),t.url!=null&&t.hasOwnProperty("url")&&(n.url=t.url),t.button!=null&&t.hasOwnProperty("button")&&(n.button=t.button),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.UpAct"},e}(),c.Node=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.nodeId=t.int64();break}case 2:{o.title=t.string();break}case 3:{o.cid=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.Node)return t;let i=new u.bilibili.app.view.v1.Node;return t.nodeId!=null&&(r.Long?(i.nodeId=r.Long.fromValue(t.nodeId)).unsigned=!1:typeof t.nodeId=="string"?i.nodeId=parseInt(t.nodeId,10):typeof t.nodeId=="number"?i.nodeId=t.nodeId:typeof t.nodeId=="object"&&(i.nodeId=new r.LongBits(t.nodeId.low>>>0,t.nodeId.high>>>0).toNumber())),t.title!=null&&(i.title=String(t.title)),t.cid!=null&&(r.Long?(i.cid=r.Long.fromValue(t.cid)).unsigned=!1:typeof t.cid=="string"?i.cid=parseInt(t.cid,10):typeof t.cid=="number"?i.cid=t.cid:typeof t.cid=="object"&&(i.cid=new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.nodeId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.nodeId=i.longs===String?"0":0;if(n.title="",r.Long){let o=new r.Long(0,0,!1);n.cid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.cid=i.longs===String?"0":0}return t.nodeId!=null&&t.hasOwnProperty("nodeId")&&(typeof t.nodeId=="number"?n.nodeId=i.longs===String?String(t.nodeId):t.nodeId:n.nodeId=i.longs===String?r.Long.prototype.toString.call(t.nodeId):i.longs===Number?new r.LongBits(t.nodeId.low>>>0,t.nodeId.high>>>0).toNumber():t.nodeId),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.cid!=null&&t.hasOwnProperty("cid")&&(typeof t.cid=="number"?n.cid=i.longs===String?String(t.cid):t.cid:n.cid=i.longs===String?r.Long.prototype.toString.call(t.cid):i.longs===Number?new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber():t.cid),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.Node"},e}(),c.ViewProgressReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.aid=t.int64();break}case 2:{o.cid=t.int64();break}case 3:{o.upMid=t.int64();break}case 4:{o.engineVersion=t.string();break}case 5:{o.messageProtocol=t.string();break}case 6:{o.serviceKey=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.ViewProgressReq)return t;let i=new u.bilibili.app.view.v1.ViewProgressReq;return t.aid!=null&&(r.Long?(i.aid=r.Long.fromValue(t.aid)).unsigned=!1:typeof t.aid=="string"?i.aid=parseInt(t.aid,10):typeof t.aid=="number"?i.aid=t.aid:typeof t.aid=="object"&&(i.aid=new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber())),t.cid!=null&&(r.Long?(i.cid=r.Long.fromValue(t.cid)).unsigned=!1:typeof t.cid=="string"?i.cid=parseInt(t.cid,10):typeof t.cid=="number"?i.cid=t.cid:typeof t.cid=="object"&&(i.cid=new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber())),t.upMid!=null&&(r.Long?(i.upMid=r.Long.fromValue(t.upMid)).unsigned=!1:typeof t.upMid=="string"?i.upMid=parseInt(t.upMid,10):typeof t.upMid=="number"?i.upMid=t.upMid:typeof t.upMid=="object"&&(i.upMid=new r.LongBits(t.upMid.low>>>0,t.upMid.high>>>0).toNumber())),t.engineVersion!=null&&(i.engineVersion=String(t.engineVersion)),t.messageProtocol!=null&&(i.messageProtocol=String(t.messageProtocol)),t.serviceKey!=null&&(i.serviceKey=String(t.serviceKey)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.aid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.aid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.cid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.cid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.upMid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.upMid=i.longs===String?"0":0;n.engineVersion="",n.messageProtocol="",n.serviceKey=""}return t.aid!=null&&t.hasOwnProperty("aid")&&(typeof t.aid=="number"?n.aid=i.longs===String?String(t.aid):t.aid:n.aid=i.longs===String?r.Long.prototype.toString.call(t.aid):i.longs===Number?new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber():t.aid),t.cid!=null&&t.hasOwnProperty("cid")&&(typeof t.cid=="number"?n.cid=i.longs===String?String(t.cid):t.cid:n.cid=i.longs===String?r.Long.prototype.toString.call(t.cid):i.longs===Number?new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber():t.cid),t.upMid!=null&&t.hasOwnProperty("upMid")&&(typeof t.upMid=="number"?n.upMid=i.longs===String?String(t.upMid):t.upMid:n.upMid=i.longs===String?r.Long.prototype.toString.call(t.upMid):i.longs===Number?new r.LongBits(t.upMid.low>>>0,t.upMid.high>>>0).toNumber():t.upMid),t.engineVersion!=null&&t.hasOwnProperty("engineVersion")&&(n.engineVersion=t.engineVersion),t.messageProtocol!=null&&t.hasOwnProperty("messageProtocol")&&(n.messageProtocol=t.messageProtocol),t.serviceKey!=null&&t.hasOwnProperty("serviceKey")&&(n.serviceKey=t.serviceKey),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.ViewProgressReq"},e}(),c.ViewProgressReply=function(){function e(l){if(this.points=[],this.buzzwordPeriods=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.videoGuide=u.bilibili.app.view.v1.VideoGuide.decode(t,t.uint32());break}case 2:{o.chronos=u.bilibili.app.view.v1.Chronos.decode(t,t.uint32());break}case 3:{o.arcShot=u.bilibili.app.view.v1.VideoShot.decode(t,t.uint32());break}case 4:{o.points&&o.points.length||(o.points=[]),o.points.push(u.bilibili.app.view.v1.VideoPoint.decode(t,t.uint32()));break}case 5:{o.pointMaterial=u.bilibili.app.view.v1.PointMaterial.decode(t,t.uint32());break}case 6:{o.pointPermanent=t.bool();break}case 7:{o.buzzwordPeriods&&o.buzzwordPeriods.length||(o.buzzwordPeriods=[]),o.buzzwordPeriods.push(u.bilibili.app.view.v1.BuzzwordConfig.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.ViewProgressReply)return t;let i=new u.bilibili.app.view.v1.ViewProgressReply;if(t.videoGuide!=null){if(typeof t.videoGuide!="object")throw TypeError(".bilibili.app.view.v1.ViewProgressReply.videoGuide: object expected");i.videoGuide=u.bilibili.app.view.v1.VideoGuide.fromObject(t.videoGuide)}if(t.chronos!=null){if(typeof t.chronos!="object")throw TypeError(".bilibili.app.view.v1.ViewProgressReply.chronos: object expected");i.chronos=u.bilibili.app.view.v1.Chronos.fromObject(t.chronos)}if(t.arcShot!=null){if(typeof t.arcShot!="object")throw TypeError(".bilibili.app.view.v1.ViewProgressReply.arcShot: object expected");i.arcShot=u.bilibili.app.view.v1.VideoShot.fromObject(t.arcShot)}if(t.points){if(!Array.isArray(t.points))throw TypeError(".bilibili.app.view.v1.ViewProgressReply.points: array expected");i.points=[];for(let n=0;n>>3){case 1:{o.url=t.string();break}case 2:{o.materialSource=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.PointMaterial)return t;let i=new u.bilibili.app.view.v1.PointMaterial;switch(t.url!=null&&(i.url=String(t.url)),t.materialSource){default:if(typeof t.materialSource=="number"){i.materialSource=t.materialSource;break}break;case"Default":case 0:i.materialSource=0;break;case"BiJian":case 1:i.materialSource=1;break}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.url="",n.materialSource=i.enums===String?"Default":0),t.url!=null&&t.hasOwnProperty("url")&&(n.url=t.url),t.materialSource!=null&&t.hasOwnProperty("materialSource")&&(n.materialSource=i.enums===String?u.bilibili.app.view.v1.MaterialSource[t.materialSource]===void 0?t.materialSource:u.bilibili.app.view.v1.MaterialSource[t.materialSource]:t.materialSource),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.PointMaterial"},e}(),c.MaterialSource=function(){let e={},l=Object.create(e);return l[e[0]="Default"]=0,l[e[1]="BiJian"]=1,l}(),c.VideoShot=function(){function e(l){if(this.image=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.pvData=t.string();break}case 2:{o.imgXLen=t.int32();break}case 3:{o.imgYLen=t.int32();break}case 4:{o.imgXSize=t.int32();break}case 5:{o.imgYSize=t.int32();break}case 6:{o.image&&o.image.length||(o.image=[]),o.image.push(t.string());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.VideoShot)return t;let i=new u.bilibili.app.view.v1.VideoShot;if(t.pvData!=null&&(i.pvData=String(t.pvData)),t.imgXLen!=null&&(i.imgXLen=t.imgXLen|0),t.imgYLen!=null&&(i.imgYLen=t.imgYLen|0),t.imgXSize!=null&&(i.imgXSize=t.imgXSize|0),t.imgYSize!=null&&(i.imgYSize=t.imgYSize|0),t.image){if(!Array.isArray(t.image))throw TypeError(".bilibili.app.view.v1.VideoShot.image: array expected");i.image=[];for(let n=0;n>>3){case 1:{o.type=t.int32();break}case 2:{o.from=t.int64();break}case 3:{o.to=t.int64();break}case 4:{o.content=t.string();break}case 5:{o.cover=t.string();break}case 6:{o.logoUrl=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.VideoPoint)return t;let i=new u.bilibili.app.view.v1.VideoPoint;return t.type!=null&&(i.type=t.type|0),t.from!=null&&(r.Long?(i.from=r.Long.fromValue(t.from)).unsigned=!1:typeof t.from=="string"?i.from=parseInt(t.from,10):typeof t.from=="number"?i.from=t.from:typeof t.from=="object"&&(i.from=new r.LongBits(t.from.low>>>0,t.from.high>>>0).toNumber())),t.to!=null&&(r.Long?(i.to=r.Long.fromValue(t.to)).unsigned=!1:typeof t.to=="string"?i.to=parseInt(t.to,10):typeof t.to=="number"?i.to=t.to:typeof t.to=="object"&&(i.to=new r.LongBits(t.to.low>>>0,t.to.high>>>0).toNumber())),t.content!=null&&(i.content=String(t.content)),t.cover!=null&&(i.cover=String(t.cover)),t.logoUrl!=null&&(i.logoUrl=String(t.logoUrl)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.type=0,r.Long){let o=new r.Long(0,0,!1);n.from=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.from=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.to=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.to=i.longs===String?"0":0;n.content="",n.cover="",n.logoUrl=""}return t.type!=null&&t.hasOwnProperty("type")&&(n.type=t.type),t.from!=null&&t.hasOwnProperty("from")&&(typeof t.from=="number"?n.from=i.longs===String?String(t.from):t.from:n.from=i.longs===String?r.Long.prototype.toString.call(t.from):i.longs===Number?new r.LongBits(t.from.low>>>0,t.from.high>>>0).toNumber():t.from),t.to!=null&&t.hasOwnProperty("to")&&(typeof t.to=="number"?n.to=i.longs===String?String(t.to):t.to:n.to=i.longs===String?r.Long.prototype.toString.call(t.to):i.longs===Number?new r.LongBits(t.to.low>>>0,t.to.high>>>0).toNumber():t.to),t.content!=null&&t.hasOwnProperty("content")&&(n.content=t.content),t.cover!=null&&t.hasOwnProperty("cover")&&(n.cover=t.cover),t.logoUrl!=null&&t.hasOwnProperty("logoUrl")&&(n.logoUrl=t.logoUrl),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.VideoPoint"},e}(),c.Chronos=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.md5=t.string();break}case 2:{o.file=t.string();break}case 3:{o.sign=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.Chronos)return t;let i=new u.bilibili.app.view.v1.Chronos;return t.md5!=null&&(i.md5=String(t.md5)),t.file!=null&&(i.file=String(t.file)),t.sign!=null&&(i.sign=String(t.sign)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.md5="",n.file="",n.sign=""),t.md5!=null&&t.hasOwnProperty("md5")&&(n.md5=t.md5),t.file!=null&&t.hasOwnProperty("file")&&(n.file=t.file),t.sign!=null&&t.hasOwnProperty("sign")&&(n.sign=t.sign),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.Chronos"},e}(),c.VideoGuide=function(){function e(l){if(this.attention=[],this.commandDms=[],this.operationCard=[],this.operationCardNew=[],this.cardsSecond=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.attention&&o.attention.length||(o.attention=[]),o.attention.push(u.bilibili.app.view.v1.Attention.decode(t,t.uint32()));break}case 2:{o.commandDms&&o.commandDms.length||(o.commandDms=[]),o.commandDms.push(u.bilibili.app.view.v1.CommandDm.decode(t,t.uint32()));break}case 3:{o.operationCard&&o.operationCard.length||(o.operationCard=[]),o.operationCard.push(u.bilibili.app.view.v1.OperationCard.decode(t,t.uint32()));break}case 4:{o.operationCardNew&&o.operationCardNew.length||(o.operationCardNew=[]),o.operationCardNew.push(u.bilibili.app.view.v1.OperationCardNew.decode(t,t.uint32()));break}case 5:{o.contractCard=u.bilibili.app.view.v1.ContractCard.decode(t,t.uint32());break}case 6:{o.cardsSecond&&o.cardsSecond.length||(o.cardsSecond=[]),o.cardsSecond.push(u.bilibili.app.view.v1.OperationCardV2.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.VideoGuide)return t;let i=new u.bilibili.app.view.v1.VideoGuide;if(t.attention){if(!Array.isArray(t.attention))throw TypeError(".bilibili.app.view.v1.VideoGuide.attention: array expected");i.attention=[];for(let n=0;n>>3){case 1:{a.id=i.int64();break}case 2:{a.from=i.int32();break}case 3:{a.to=i.int32();break}case 4:{a.status=i.bool();break}case 5:{a.bizType=i.int32();break}case 6:{a.content=u.bilibili.app.view.v1.OperationCardV2Content.decode(i,i.uint32());break}case 7:{a.follow=u.bilibili.app.view.v1.BizFollowVideoParam.decode(i,i.uint32());break}case 8:{a.reserve=u.bilibili.app.view.v1.BizReserveActivityParam.decode(i,i.uint32());break}case 9:{a.jump=u.bilibili.app.view.v1.BizJumpLinkParam.decode(i,i.uint32());break}case 10:{a.game=u.bilibili.app.view.v1.BizReserveGameParam.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},e.fromObject=function(i){if(i instanceof u.bilibili.app.view.v1.OperationCardV2)return i;let n=new u.bilibili.app.view.v1.OperationCardV2;switch(i.id!=null&&(r.Long?(n.id=r.Long.fromValue(i.id)).unsigned=!1:typeof i.id=="string"?n.id=parseInt(i.id,10):typeof i.id=="number"?n.id=i.id:typeof i.id=="object"&&(n.id=new r.LongBits(i.id.low>>>0,i.id.high>>>0).toNumber())),i.from!=null&&(n.from=i.from|0),i.to!=null&&(n.to=i.to|0),i.status!=null&&(n.status=!!i.status),i.bizType){default:if(typeof i.bizType=="number"){n.bizType=i.bizType;break}break;case"BizTypeNone":case 0:n.bizType=0;break;case"BizTypeFollowVideo":case 1:n.bizType=1;break;case"BizTypeReserveActivity":case 2:n.bizType=2;break;case"BizTypeJumpLink":case 3:n.bizType=3;break;case"BizTypeFavSeason":case 4:n.bizType=4;break;case"BizTypeReserveGame":case 5:n.bizType=5;break}if(i.content!=null){if(typeof i.content!="object")throw TypeError(".bilibili.app.view.v1.OperationCardV2.content: object expected");n.content=u.bilibili.app.view.v1.OperationCardV2Content.fromObject(i.content)}if(i.follow!=null){if(typeof i.follow!="object")throw TypeError(".bilibili.app.view.v1.OperationCardV2.follow: object expected");n.follow=u.bilibili.app.view.v1.BizFollowVideoParam.fromObject(i.follow)}if(i.reserve!=null){if(typeof i.reserve!="object")throw TypeError(".bilibili.app.view.v1.OperationCardV2.reserve: object expected");n.reserve=u.bilibili.app.view.v1.BizReserveActivityParam.fromObject(i.reserve)}if(i.jump!=null){if(typeof i.jump!="object")throw TypeError(".bilibili.app.view.v1.OperationCardV2.jump: object expected");n.jump=u.bilibili.app.view.v1.BizJumpLinkParam.fromObject(i.jump)}if(i.game!=null){if(typeof i.game!="object")throw TypeError(".bilibili.app.view.v1.OperationCardV2.game: object expected");n.game=u.bilibili.app.view.v1.BizReserveGameParam.fromObject(i.game)}return n},e.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.id=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.id=n.longs===String?"0":0;o.from=0,o.to=0,o.status=!1,o.bizType=n.enums===String?"BizTypeNone":0,o.content=null}return i.id!=null&&i.hasOwnProperty("id")&&(typeof i.id=="number"?o.id=n.longs===String?String(i.id):i.id:o.id=n.longs===String?r.Long.prototype.toString.call(i.id):n.longs===Number?new r.LongBits(i.id.low>>>0,i.id.high>>>0).toNumber():i.id),i.from!=null&&i.hasOwnProperty("from")&&(o.from=i.from),i.to!=null&&i.hasOwnProperty("to")&&(o.to=i.to),i.status!=null&&i.hasOwnProperty("status")&&(o.status=i.status),i.bizType!=null&&i.hasOwnProperty("bizType")&&(o.bizType=n.enums===String?u.bilibili.app.view.v1.BizType[i.bizType]===void 0?i.bizType:u.bilibili.app.view.v1.BizType[i.bizType]:i.bizType),i.content!=null&&i.hasOwnProperty("content")&&(o.content=u.bilibili.app.view.v1.OperationCardV2Content.toObject(i.content,n)),i.follow!=null&&i.hasOwnProperty("follow")&&(o.follow=u.bilibili.app.view.v1.BizFollowVideoParam.toObject(i.follow,n),n.oneofs&&(o.param="follow")),i.reserve!=null&&i.hasOwnProperty("reserve")&&(o.reserve=u.bilibili.app.view.v1.BizReserveActivityParam.toObject(i.reserve,n),n.oneofs&&(o.param="reserve")),i.jump!=null&&i.hasOwnProperty("jump")&&(o.jump=u.bilibili.app.view.v1.BizJumpLinkParam.toObject(i.jump,n),n.oneofs&&(o.param="jump")),i.game!=null&&i.hasOwnProperty("game")&&(o.game=u.bilibili.app.view.v1.BizReserveGameParam.toObject(i.game,n),n.oneofs&&(o.param="game")),o},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.app.view.v1.OperationCardV2"},e}(),c.OperationCardV2Content=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.subtitle=t.string();break}case 3:{o.icon=t.string();break}case 4:{o.buttonTitle=t.string();break}case 5:{o.buttonSelectedTitle=t.string();break}case 6:{o.showSelected=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.OperationCardV2Content)return t;let i=new u.bilibili.app.view.v1.OperationCardV2Content;return t.title!=null&&(i.title=String(t.title)),t.subtitle!=null&&(i.subtitle=String(t.subtitle)),t.icon!=null&&(i.icon=String(t.icon)),t.buttonTitle!=null&&(i.buttonTitle=String(t.buttonTitle)),t.buttonSelectedTitle!=null&&(i.buttonSelectedTitle=String(t.buttonSelectedTitle)),t.showSelected!=null&&(i.showSelected=!!t.showSelected),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.title="",n.subtitle="",n.icon="",n.buttonTitle="",n.buttonSelectedTitle="",n.showSelected=!1),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.subtitle!=null&&t.hasOwnProperty("subtitle")&&(n.subtitle=t.subtitle),t.icon!=null&&t.hasOwnProperty("icon")&&(n.icon=t.icon),t.buttonTitle!=null&&t.hasOwnProperty("buttonTitle")&&(n.buttonTitle=t.buttonTitle),t.buttonSelectedTitle!=null&&t.hasOwnProperty("buttonSelectedTitle")&&(n.buttonSelectedTitle=t.buttonSelectedTitle),t.showSelected!=null&&t.hasOwnProperty("showSelected")&&(n.showSelected=t.showSelected),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.OperationCardV2Content"},e}(),c.ContractCard=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.displayProgress=t.float();break}case 2:{o.displayAccuracy=t.int64();break}case 3:{o.displayDuration=t.int64();break}case 4:{o.showMode=t.int32();break}case 5:{o.pageType=t.int32();break}case 6:{o.upper=u.bilibili.app.view.v1.UpperInfos.decode(t,t.uint32());break}case 7:{o.isFollowDisplay=t.int32();break}case 8:{o.text=u.bilibili.app.view.v1.ContractText.decode(t,t.uint32());break}case 9:{o.followDisplayEndDuration=t.int64();break}case 10:{o.isPlayDisplay=t.int32();break}case 11:{o.isInteractDisplay=t.int32();break}case 12:{o.playDisplaySwitch=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.ContractCard)return t;let i=new u.bilibili.app.view.v1.ContractCard;if(t.displayProgress!=null&&(i.displayProgress=Number(t.displayProgress)),t.displayAccuracy!=null&&(r.Long?(i.displayAccuracy=r.Long.fromValue(t.displayAccuracy)).unsigned=!1:typeof t.displayAccuracy=="string"?i.displayAccuracy=parseInt(t.displayAccuracy,10):typeof t.displayAccuracy=="number"?i.displayAccuracy=t.displayAccuracy:typeof t.displayAccuracy=="object"&&(i.displayAccuracy=new r.LongBits(t.displayAccuracy.low>>>0,t.displayAccuracy.high>>>0).toNumber())),t.displayDuration!=null&&(r.Long?(i.displayDuration=r.Long.fromValue(t.displayDuration)).unsigned=!1:typeof t.displayDuration=="string"?i.displayDuration=parseInt(t.displayDuration,10):typeof t.displayDuration=="number"?i.displayDuration=t.displayDuration:typeof t.displayDuration=="object"&&(i.displayDuration=new r.LongBits(t.displayDuration.low>>>0,t.displayDuration.high>>>0).toNumber())),t.showMode!=null&&(i.showMode=t.showMode|0),t.pageType!=null&&(i.pageType=t.pageType|0),t.upper!=null){if(typeof t.upper!="object")throw TypeError(".bilibili.app.view.v1.ContractCard.upper: object expected");i.upper=u.bilibili.app.view.v1.UpperInfos.fromObject(t.upper)}if(t.isFollowDisplay!=null&&(i.isFollowDisplay=t.isFollowDisplay|0),t.text!=null){if(typeof t.text!="object")throw TypeError(".bilibili.app.view.v1.ContractCard.text: object expected");i.text=u.bilibili.app.view.v1.ContractText.fromObject(t.text)}return t.followDisplayEndDuration!=null&&(r.Long?(i.followDisplayEndDuration=r.Long.fromValue(t.followDisplayEndDuration)).unsigned=!1:typeof t.followDisplayEndDuration=="string"?i.followDisplayEndDuration=parseInt(t.followDisplayEndDuration,10):typeof t.followDisplayEndDuration=="number"?i.followDisplayEndDuration=t.followDisplayEndDuration:typeof t.followDisplayEndDuration=="object"&&(i.followDisplayEndDuration=new r.LongBits(t.followDisplayEndDuration.low>>>0,t.followDisplayEndDuration.high>>>0).toNumber())),t.isPlayDisplay!=null&&(i.isPlayDisplay=t.isPlayDisplay|0),t.isInteractDisplay!=null&&(i.isInteractDisplay=t.isInteractDisplay|0),t.playDisplaySwitch!=null&&(i.playDisplaySwitch=!!t.playDisplaySwitch),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.displayProgress=0,r.Long){let o=new r.Long(0,0,!1);n.displayAccuracy=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.displayAccuracy=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.displayDuration=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.displayDuration=i.longs===String?"0":0;if(n.showMode=0,n.pageType=0,n.upper=null,n.isFollowDisplay=0,n.text=null,r.Long){let o=new r.Long(0,0,!1);n.followDisplayEndDuration=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.followDisplayEndDuration=i.longs===String?"0":0;n.isPlayDisplay=0,n.isInteractDisplay=0,n.playDisplaySwitch=!1}return t.displayProgress!=null&&t.hasOwnProperty("displayProgress")&&(n.displayProgress=i.json&&!isFinite(t.displayProgress)?String(t.displayProgress):t.displayProgress),t.displayAccuracy!=null&&t.hasOwnProperty("displayAccuracy")&&(typeof t.displayAccuracy=="number"?n.displayAccuracy=i.longs===String?String(t.displayAccuracy):t.displayAccuracy:n.displayAccuracy=i.longs===String?r.Long.prototype.toString.call(t.displayAccuracy):i.longs===Number?new r.LongBits(t.displayAccuracy.low>>>0,t.displayAccuracy.high>>>0).toNumber():t.displayAccuracy),t.displayDuration!=null&&t.hasOwnProperty("displayDuration")&&(typeof t.displayDuration=="number"?n.displayDuration=i.longs===String?String(t.displayDuration):t.displayDuration:n.displayDuration=i.longs===String?r.Long.prototype.toString.call(t.displayDuration):i.longs===Number?new r.LongBits(t.displayDuration.low>>>0,t.displayDuration.high>>>0).toNumber():t.displayDuration),t.showMode!=null&&t.hasOwnProperty("showMode")&&(n.showMode=t.showMode),t.pageType!=null&&t.hasOwnProperty("pageType")&&(n.pageType=t.pageType),t.upper!=null&&t.hasOwnProperty("upper")&&(n.upper=u.bilibili.app.view.v1.UpperInfos.toObject(t.upper,i)),t.isFollowDisplay!=null&&t.hasOwnProperty("isFollowDisplay")&&(n.isFollowDisplay=t.isFollowDisplay),t.text!=null&&t.hasOwnProperty("text")&&(n.text=u.bilibili.app.view.v1.ContractText.toObject(t.text,i)),t.followDisplayEndDuration!=null&&t.hasOwnProperty("followDisplayEndDuration")&&(typeof t.followDisplayEndDuration=="number"?n.followDisplayEndDuration=i.longs===String?String(t.followDisplayEndDuration):t.followDisplayEndDuration:n.followDisplayEndDuration=i.longs===String?r.Long.prototype.toString.call(t.followDisplayEndDuration):i.longs===Number?new r.LongBits(t.followDisplayEndDuration.low>>>0,t.followDisplayEndDuration.high>>>0).toNumber():t.followDisplayEndDuration),t.isPlayDisplay!=null&&t.hasOwnProperty("isPlayDisplay")&&(n.isPlayDisplay=t.isPlayDisplay),t.isInteractDisplay!=null&&t.hasOwnProperty("isInteractDisplay")&&(n.isInteractDisplay=t.isInteractDisplay),t.playDisplaySwitch!=null&&t.hasOwnProperty("playDisplaySwitch")&&(n.playDisplaySwitch=t.playDisplaySwitch),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.ContractCard"},e}(),c.ContractText=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.subtitle=t.string();break}case 3:{o.inlineTitle=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.ContractText)return t;let i=new u.bilibili.app.view.v1.ContractText;return t.title!=null&&(i.title=String(t.title)),t.subtitle!=null&&(i.subtitle=String(t.subtitle)),t.inlineTitle!=null&&(i.inlineTitle=String(t.inlineTitle)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.title="",n.subtitle="",n.inlineTitle=""),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.subtitle!=null&&t.hasOwnProperty("subtitle")&&(n.subtitle=t.subtitle),t.inlineTitle!=null&&t.hasOwnProperty("inlineTitle")&&(n.inlineTitle=t.inlineTitle),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.ContractText"},e}(),c.UpperInfos=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.fansCount=t.int64();break}case 2:{o.arcCountLastHalfYear=t.int64();break}case 3:{o.firstUpDates=t.int64();break}case 4:{o.totalPlayCount=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.UpperInfos)return t;let i=new u.bilibili.app.view.v1.UpperInfos;return t.fansCount!=null&&(r.Long?(i.fansCount=r.Long.fromValue(t.fansCount)).unsigned=!1:typeof t.fansCount=="string"?i.fansCount=parseInt(t.fansCount,10):typeof t.fansCount=="number"?i.fansCount=t.fansCount:typeof t.fansCount=="object"&&(i.fansCount=new r.LongBits(t.fansCount.low>>>0,t.fansCount.high>>>0).toNumber())),t.arcCountLastHalfYear!=null&&(r.Long?(i.arcCountLastHalfYear=r.Long.fromValue(t.arcCountLastHalfYear)).unsigned=!1:typeof t.arcCountLastHalfYear=="string"?i.arcCountLastHalfYear=parseInt(t.arcCountLastHalfYear,10):typeof t.arcCountLastHalfYear=="number"?i.arcCountLastHalfYear=t.arcCountLastHalfYear:typeof t.arcCountLastHalfYear=="object"&&(i.arcCountLastHalfYear=new r.LongBits(t.arcCountLastHalfYear.low>>>0,t.arcCountLastHalfYear.high>>>0).toNumber())),t.firstUpDates!=null&&(r.Long?(i.firstUpDates=r.Long.fromValue(t.firstUpDates)).unsigned=!1:typeof t.firstUpDates=="string"?i.firstUpDates=parseInt(t.firstUpDates,10):typeof t.firstUpDates=="number"?i.firstUpDates=t.firstUpDates:typeof t.firstUpDates=="object"&&(i.firstUpDates=new r.LongBits(t.firstUpDates.low>>>0,t.firstUpDates.high>>>0).toNumber())),t.totalPlayCount!=null&&(r.Long?(i.totalPlayCount=r.Long.fromValue(t.totalPlayCount)).unsigned=!1:typeof t.totalPlayCount=="string"?i.totalPlayCount=parseInt(t.totalPlayCount,10):typeof t.totalPlayCount=="number"?i.totalPlayCount=t.totalPlayCount:typeof t.totalPlayCount=="object"&&(i.totalPlayCount=new r.LongBits(t.totalPlayCount.low>>>0,t.totalPlayCount.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.fansCount=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.fansCount=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.arcCountLastHalfYear=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.arcCountLastHalfYear=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.firstUpDates=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.firstUpDates=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.totalPlayCount=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.totalPlayCount=i.longs===String?"0":0}return t.fansCount!=null&&t.hasOwnProperty("fansCount")&&(typeof t.fansCount=="number"?n.fansCount=i.longs===String?String(t.fansCount):t.fansCount:n.fansCount=i.longs===String?r.Long.prototype.toString.call(t.fansCount):i.longs===Number?new r.LongBits(t.fansCount.low>>>0,t.fansCount.high>>>0).toNumber():t.fansCount),t.arcCountLastHalfYear!=null&&t.hasOwnProperty("arcCountLastHalfYear")&&(typeof t.arcCountLastHalfYear=="number"?n.arcCountLastHalfYear=i.longs===String?String(t.arcCountLastHalfYear):t.arcCountLastHalfYear:n.arcCountLastHalfYear=i.longs===String?r.Long.prototype.toString.call(t.arcCountLastHalfYear):i.longs===Number?new r.LongBits(t.arcCountLastHalfYear.low>>>0,t.arcCountLastHalfYear.high>>>0).toNumber():t.arcCountLastHalfYear),t.firstUpDates!=null&&t.hasOwnProperty("firstUpDates")&&(typeof t.firstUpDates=="number"?n.firstUpDates=i.longs===String?String(t.firstUpDates):t.firstUpDates:n.firstUpDates=i.longs===String?r.Long.prototype.toString.call(t.firstUpDates):i.longs===Number?new r.LongBits(t.firstUpDates.low>>>0,t.firstUpDates.high>>>0).toNumber():t.firstUpDates),t.totalPlayCount!=null&&t.hasOwnProperty("totalPlayCount")&&(typeof t.totalPlayCount=="number"?n.totalPlayCount=i.longs===String?String(t.totalPlayCount):t.totalPlayCount:n.totalPlayCount=i.longs===String?r.Long.prototype.toString.call(t.totalPlayCount):i.longs===Number?new r.LongBits(t.totalPlayCount.low>>>0,t.totalPlayCount.high>>>0).toNumber():t.totalPlayCount),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.UpperInfos"},e}(),c.OperationCardNew=function(){function e(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.id=i.int64();break}case 2:{a.from=i.int32();break}case 3:{a.to=i.int32();break}case 4:{a.status=i.bool();break}case 5:{a.cardType=i.int32();break}case 6:{a.standard=u.bilibili.app.view.v1.StandardCard.decode(i,i.uint32());break}case 7:{a.skip=u.bilibili.app.view.v1.OperationCard.decode(i,i.uint32());break}case 8:{a.bizType=i.int32();break}case 9:{a.follow=u.bilibili.app.view.v1.BizFollowVideoParam.decode(i,i.uint32());break}case 10:{a.reserve=u.bilibili.app.view.v1.BizReserveActivityParam.decode(i,i.uint32());break}case 11:{a.jump=u.bilibili.app.view.v1.BizJumpLinkParam.decode(i,i.uint32());break}case 12:{a.game=u.bilibili.app.view.v1.BizReserveGameParam.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},e.fromObject=function(i){if(i instanceof u.bilibili.app.view.v1.OperationCardNew)return i;let n=new u.bilibili.app.view.v1.OperationCardNew;switch(i.id!=null&&(r.Long?(n.id=r.Long.fromValue(i.id)).unsigned=!1:typeof i.id=="string"?n.id=parseInt(i.id,10):typeof i.id=="number"?n.id=i.id:typeof i.id=="object"&&(n.id=new r.LongBits(i.id.low>>>0,i.id.high>>>0).toNumber())),i.from!=null&&(n.from=i.from|0),i.to!=null&&(n.to=i.to|0),i.status!=null&&(n.status=!!i.status),i.cardType){default:if(typeof i.cardType=="number"){n.cardType=i.cardType;break}break;case"CardTypeNone":case 0:n.cardType=0;break;case"CardTypeStandard":case 1:n.cardType=1;break;case"CardTypeSkip":case 2:n.cardType=2;break}if(i.standard!=null){if(typeof i.standard!="object")throw TypeError(".bilibili.app.view.v1.OperationCardNew.standard: object expected");n.standard=u.bilibili.app.view.v1.StandardCard.fromObject(i.standard)}if(i.skip!=null){if(typeof i.skip!="object")throw TypeError(".bilibili.app.view.v1.OperationCardNew.skip: object expected");n.skip=u.bilibili.app.view.v1.OperationCard.fromObject(i.skip)}switch(i.bizType){default:if(typeof i.bizType=="number"){n.bizType=i.bizType;break}break;case"BizTypeNone":case 0:n.bizType=0;break;case"BizTypeFollowVideo":case 1:n.bizType=1;break;case"BizTypeReserveActivity":case 2:n.bizType=2;break;case"BizTypeJumpLink":case 3:n.bizType=3;break;case"BizTypeFavSeason":case 4:n.bizType=4;break;case"BizTypeReserveGame":case 5:n.bizType=5;break}if(i.follow!=null){if(typeof i.follow!="object")throw TypeError(".bilibili.app.view.v1.OperationCardNew.follow: object expected");n.follow=u.bilibili.app.view.v1.BizFollowVideoParam.fromObject(i.follow)}if(i.reserve!=null){if(typeof i.reserve!="object")throw TypeError(".bilibili.app.view.v1.OperationCardNew.reserve: object expected");n.reserve=u.bilibili.app.view.v1.BizReserveActivityParam.fromObject(i.reserve)}if(i.jump!=null){if(typeof i.jump!="object")throw TypeError(".bilibili.app.view.v1.OperationCardNew.jump: object expected");n.jump=u.bilibili.app.view.v1.BizJumpLinkParam.fromObject(i.jump)}if(i.game!=null){if(typeof i.game!="object")throw TypeError(".bilibili.app.view.v1.OperationCardNew.game: object expected");n.game=u.bilibili.app.view.v1.BizReserveGameParam.fromObject(i.game)}return n},e.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.id=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.id=n.longs===String?"0":0;o.from=0,o.to=0,o.status=!1,o.cardType=n.enums===String?"CardTypeNone":0,o.bizType=n.enums===String?"BizTypeNone":0}return i.id!=null&&i.hasOwnProperty("id")&&(typeof i.id=="number"?o.id=n.longs===String?String(i.id):i.id:o.id=n.longs===String?r.Long.prototype.toString.call(i.id):n.longs===Number?new r.LongBits(i.id.low>>>0,i.id.high>>>0).toNumber():i.id),i.from!=null&&i.hasOwnProperty("from")&&(o.from=i.from),i.to!=null&&i.hasOwnProperty("to")&&(o.to=i.to),i.status!=null&&i.hasOwnProperty("status")&&(o.status=i.status),i.cardType!=null&&i.hasOwnProperty("cardType")&&(o.cardType=n.enums===String?u.bilibili.app.view.v1.OperationCardType[i.cardType]===void 0?i.cardType:u.bilibili.app.view.v1.OperationCardType[i.cardType]:i.cardType),i.standard!=null&&i.hasOwnProperty("standard")&&(o.standard=u.bilibili.app.view.v1.StandardCard.toObject(i.standard,n),n.oneofs&&(o.render="standard")),i.skip!=null&&i.hasOwnProperty("skip")&&(o.skip=u.bilibili.app.view.v1.OperationCard.toObject(i.skip,n),n.oneofs&&(o.render="skip")),i.bizType!=null&&i.hasOwnProperty("bizType")&&(o.bizType=n.enums===String?u.bilibili.app.view.v1.BizType[i.bizType]===void 0?i.bizType:u.bilibili.app.view.v1.BizType[i.bizType]:i.bizType),i.follow!=null&&i.hasOwnProperty("follow")&&(o.follow=u.bilibili.app.view.v1.BizFollowVideoParam.toObject(i.follow,n),n.oneofs&&(o.param="follow")),i.reserve!=null&&i.hasOwnProperty("reserve")&&(o.reserve=u.bilibili.app.view.v1.BizReserveActivityParam.toObject(i.reserve,n),n.oneofs&&(o.param="reserve")),i.jump!=null&&i.hasOwnProperty("jump")&&(o.jump=u.bilibili.app.view.v1.BizJumpLinkParam.toObject(i.jump,n),n.oneofs&&(o.param="jump")),i.game!=null&&i.hasOwnProperty("game")&&(o.game=u.bilibili.app.view.v1.BizReserveGameParam.toObject(i.game,n),n.oneofs&&(o.param="game")),o},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.app.view.v1.OperationCardNew"},e}(),c.OperationCardType=function(){let e={},l=Object.create(e);return l[e[0]="CardTypeNone"]=0,l[e[1]="CardTypeStandard"]=1,l[e[2]="CardTypeSkip"]=2,l}(),c.StandardCard=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.buttonTitle=t.string();break}case 3:{o.buttonSelectedTitle=t.string();break}case 4:{o.showSelected=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.StandardCard)return t;let i=new u.bilibili.app.view.v1.StandardCard;return t.title!=null&&(i.title=String(t.title)),t.buttonTitle!=null&&(i.buttonTitle=String(t.buttonTitle)),t.buttonSelectedTitle!=null&&(i.buttonSelectedTitle=String(t.buttonSelectedTitle)),t.showSelected!=null&&(i.showSelected=!!t.showSelected),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.title="",n.buttonTitle="",n.buttonSelectedTitle="",n.showSelected=!1),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.buttonTitle!=null&&t.hasOwnProperty("buttonTitle")&&(n.buttonTitle=t.buttonTitle),t.buttonSelectedTitle!=null&&t.hasOwnProperty("buttonSelectedTitle")&&(n.buttonSelectedTitle=t.buttonSelectedTitle),t.showSelected!=null&&t.hasOwnProperty("showSelected")&&(n.showSelected=t.showSelected),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.StandardCard"},e}(),c.OperationCard=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.startTime=t.int32();break}case 2:{o.endTime=t.int32();break}case 3:{o.icon=t.string();break}case 4:{o.title=t.string();break}case 5:{o.buttonText=t.string();break}case 6:{o.url=t.string();break}case 7:{o.content=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.OperationCard)return t;let i=new u.bilibili.app.view.v1.OperationCard;return t.startTime!=null&&(i.startTime=t.startTime|0),t.endTime!=null&&(i.endTime=t.endTime|0),t.icon!=null&&(i.icon=String(t.icon)),t.title!=null&&(i.title=String(t.title)),t.buttonText!=null&&(i.buttonText=String(t.buttonText)),t.url!=null&&(i.url=String(t.url)),t.content!=null&&(i.content=String(t.content)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.startTime=0,n.endTime=0,n.icon="",n.title="",n.buttonText="",n.url="",n.content=""),t.startTime!=null&&t.hasOwnProperty("startTime")&&(n.startTime=t.startTime),t.endTime!=null&&t.hasOwnProperty("endTime")&&(n.endTime=t.endTime),t.icon!=null&&t.hasOwnProperty("icon")&&(n.icon=t.icon),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.buttonText!=null&&t.hasOwnProperty("buttonText")&&(n.buttonText=t.buttonText),t.url!=null&&t.hasOwnProperty("url")&&(n.url=t.url),t.content!=null&&t.hasOwnProperty("content")&&(n.content=t.content),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.OperationCard"},e}(),c.CommandDm=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.id=t.int64();break}case 2:{o.oid=t.int64();break}case 3:{o.mid=t.int64();break}case 4:{o.command=t.string();break}case 5:{o.content=t.string();break}case 6:{o.progress=t.int32();break}case 7:{o.ctime=t.string();break}case 8:{o.mtime=t.string();break}case 9:{o.extra=t.string();break}case 10:{o.idStr=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.CommandDm)return t;let i=new u.bilibili.app.view.v1.CommandDm;return t.id!=null&&(r.Long?(i.id=r.Long.fromValue(t.id)).unsigned=!1:typeof t.id=="string"?i.id=parseInt(t.id,10):typeof t.id=="number"?i.id=t.id:typeof t.id=="object"&&(i.id=new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber())),t.oid!=null&&(r.Long?(i.oid=r.Long.fromValue(t.oid)).unsigned=!1:typeof t.oid=="string"?i.oid=parseInt(t.oid,10):typeof t.oid=="number"?i.oid=t.oid:typeof t.oid=="object"&&(i.oid=new r.LongBits(t.oid.low>>>0,t.oid.high>>>0).toNumber())),t.mid!=null&&(r.Long?(i.mid=r.Long.fromValue(t.mid)).unsigned=!1:typeof t.mid=="string"?i.mid=parseInt(t.mid,10):typeof t.mid=="number"?i.mid=t.mid:typeof t.mid=="object"&&(i.mid=new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber())),t.command!=null&&(i.command=String(t.command)),t.content!=null&&(i.content=String(t.content)),t.progress!=null&&(i.progress=t.progress|0),t.ctime!=null&&(i.ctime=String(t.ctime)),t.mtime!=null&&(i.mtime=String(t.mtime)),t.extra!=null&&(i.extra=String(t.extra)),t.idStr!=null&&(i.idStr=String(t.idStr)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.id=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.id=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.oid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.oid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.mid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mid=i.longs===String?"0":0;n.command="",n.content="",n.progress=0,n.ctime="",n.mtime="",n.extra="",n.idStr=""}return t.id!=null&&t.hasOwnProperty("id")&&(typeof t.id=="number"?n.id=i.longs===String?String(t.id):t.id:n.id=i.longs===String?r.Long.prototype.toString.call(t.id):i.longs===Number?new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber():t.id),t.oid!=null&&t.hasOwnProperty("oid")&&(typeof t.oid=="number"?n.oid=i.longs===String?String(t.oid):t.oid:n.oid=i.longs===String?r.Long.prototype.toString.call(t.oid):i.longs===Number?new r.LongBits(t.oid.low>>>0,t.oid.high>>>0).toNumber():t.oid),t.mid!=null&&t.hasOwnProperty("mid")&&(typeof t.mid=="number"?n.mid=i.longs===String?String(t.mid):t.mid:n.mid=i.longs===String?r.Long.prototype.toString.call(t.mid):i.longs===Number?new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber():t.mid),t.command!=null&&t.hasOwnProperty("command")&&(n.command=t.command),t.content!=null&&t.hasOwnProperty("content")&&(n.content=t.content),t.progress!=null&&t.hasOwnProperty("progress")&&(n.progress=t.progress),t.ctime!=null&&t.hasOwnProperty("ctime")&&(n.ctime=t.ctime),t.mtime!=null&&t.hasOwnProperty("mtime")&&(n.mtime=t.mtime),t.extra!=null&&t.hasOwnProperty("extra")&&(n.extra=t.extra),t.idStr!=null&&t.hasOwnProperty("idStr")&&(n.idStr=t.idStr),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.CommandDm"},e}(),c.Attention=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.startTime=t.int32();break}case 2:{o.endTime=t.int32();break}case 3:{o.posX=t.double();break}case 4:{o.posY=t.double();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.Attention)return t;let i=new u.bilibili.app.view.v1.Attention;return t.startTime!=null&&(i.startTime=t.startTime|0),t.endTime!=null&&(i.endTime=t.endTime|0),t.posX!=null&&(i.posX=Number(t.posX)),t.posY!=null&&(i.posY=Number(t.posY)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.startTime=0,n.endTime=0,n.posX=0,n.posY=0),t.startTime!=null&&t.hasOwnProperty("startTime")&&(n.startTime=t.startTime),t.endTime!=null&&t.hasOwnProperty("endTime")&&(n.endTime=t.endTime),t.posX!=null&&t.hasOwnProperty("posX")&&(n.posX=i.json&&!isFinite(t.posX)?String(t.posX):t.posX),t.posY!=null&&t.hasOwnProperty("posY")&&(n.posY=i.json&&!isFinite(t.posY)?String(t.posY):t.posY),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.Attention"},e}(),c.CustomConfig=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.redirectUrl=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.CustomConfig)return t;let i=new u.bilibili.app.view.v1.CustomConfig;return t.redirectUrl!=null&&(i.redirectUrl=String(t.redirectUrl)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.redirectUrl=""),t.redirectUrl!=null&&t.hasOwnProperty("redirectUrl")&&(n.redirectUrl=t.redirectUrl),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.CustomConfig"},e}(),c.TFPanelCustomized=function(){function e(l){if(this.subPanel={},l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.rightBtnImg=t.string();break}case 2:{o.rightBtnText=t.string();break}case 3:{o.rightBtnTextColor=t.string();break}case 4:{o.rightBtnLink=t.string();break}case 5:{o.mainLabel=t.string();break}case 6:{o.operator=t.string();break}case 7:{o.subPanel===r.emptyObject&&(o.subPanel={});let v=t.uint32()+t.pos;for(a="",y=null;t.pos>>3){case 1:a=t.string();break;case 2:y=u.bilibili.app.view.v1.subTFPanel.decode(t,t.uint32());break;default:t.skipType(g&7);break}}o.subPanel[a]=y;break}default:t.skipType(s&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.TFPanelCustomized)return t;let i=new u.bilibili.app.view.v1.TFPanelCustomized;if(t.rightBtnImg!=null&&(i.rightBtnImg=String(t.rightBtnImg)),t.rightBtnText!=null&&(i.rightBtnText=String(t.rightBtnText)),t.rightBtnTextColor!=null&&(i.rightBtnTextColor=String(t.rightBtnTextColor)),t.rightBtnLink!=null&&(i.rightBtnLink=String(t.rightBtnLink)),t.mainLabel!=null&&(i.mainLabel=String(t.mainLabel)),t.operator!=null&&(i.operator=String(t.operator)),t.subPanel){if(typeof t.subPanel!="object")throw TypeError(".bilibili.app.view.v1.TFPanelCustomized.subPanel: object expected");i.subPanel={};for(let n=Object.keys(t.subPanel),o=0;o>>3){case 1:{o.rightBtnImg=t.string();break}case 2:{o.rightBtnText=t.string();break}case 3:{o.rightBtnTextColor=t.string();break}case 4:{o.rightBtnLink=t.string();break}case 5:{o.mainLabel=t.string();break}case 6:{o.operator=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.subTFPanel)return t;let i=new u.bilibili.app.view.v1.subTFPanel;return t.rightBtnImg!=null&&(i.rightBtnImg=String(t.rightBtnImg)),t.rightBtnText!=null&&(i.rightBtnText=String(t.rightBtnText)),t.rightBtnTextColor!=null&&(i.rightBtnTextColor=String(t.rightBtnTextColor)),t.rightBtnLink!=null&&(i.rightBtnLink=String(t.rightBtnLink)),t.mainLabel!=null&&(i.mainLabel=String(t.mainLabel)),t.operator!=null&&(i.operator=String(t.operator)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.rightBtnImg="",n.rightBtnText="",n.rightBtnTextColor="",n.rightBtnLink="",n.mainLabel="",n.operator=""),t.rightBtnImg!=null&&t.hasOwnProperty("rightBtnImg")&&(n.rightBtnImg=t.rightBtnImg),t.rightBtnText!=null&&t.hasOwnProperty("rightBtnText")&&(n.rightBtnText=t.rightBtnText),t.rightBtnTextColor!=null&&t.hasOwnProperty("rightBtnTextColor")&&(n.rightBtnTextColor=t.rightBtnTextColor),t.rightBtnLink!=null&&t.hasOwnProperty("rightBtnLink")&&(n.rightBtnLink=t.rightBtnLink),t.mainLabel!=null&&t.hasOwnProperty("mainLabel")&&(n.mainLabel=t.mainLabel),t.operator!=null&&t.hasOwnProperty("operator")&&(n.operator=t.operator),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.subTFPanel"},e}(),c.TFToast=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.btnText=t.string();break}case 2:{o.btnLink=t.string();break}case 3:{o.title=t.string();break}case 4:{o.description=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.TFToast)return t;let i=new u.bilibili.app.view.v1.TFToast;return t.btnText!=null&&(i.btnText=String(t.btnText)),t.btnLink!=null&&(i.btnLink=String(t.btnLink)),t.title!=null&&(i.title=String(t.title)),t.description!=null&&(i.description=String(t.description)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.btnText="",n.btnLink="",n.title="",n.description=""),t.btnText!=null&&t.hasOwnProperty("btnText")&&(n.btnText=t.btnText),t.btnLink!=null&&t.hasOwnProperty("btnLink")&&(n.btnLink=t.btnLink),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.description!=null&&t.hasOwnProperty("description")&&(n.description=t.description),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.TFToast"},e}(),c.ShortFormVideoDownloadReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.aid=t.int64();break}case 2:{o.cid=t.int64();break}case 3:{o.mid=t.int64();break}case 4:{o.buvid=t.string();break}case 5:{o.mobiApp=t.string();break}case 6:{o.build=t.int64();break}case 7:{o.device=t.string();break}case 8:{o.platform=t.string();break}case 9:{o.spmid=t.string();break}case 10:{o.restriction=u.bilibili.app.view.v1.Restriction.decode(t,t.uint32());break}case 11:{o.tfIsp=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.ShortFormVideoDownloadReq)return t;let i=new u.bilibili.app.view.v1.ShortFormVideoDownloadReq;if(t.aid!=null&&(r.Long?(i.aid=r.Long.fromValue(t.aid)).unsigned=!1:typeof t.aid=="string"?i.aid=parseInt(t.aid,10):typeof t.aid=="number"?i.aid=t.aid:typeof t.aid=="object"&&(i.aid=new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber())),t.cid!=null&&(r.Long?(i.cid=r.Long.fromValue(t.cid)).unsigned=!1:typeof t.cid=="string"?i.cid=parseInt(t.cid,10):typeof t.cid=="number"?i.cid=t.cid:typeof t.cid=="object"&&(i.cid=new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber())),t.mid!=null&&(r.Long?(i.mid=r.Long.fromValue(t.mid)).unsigned=!1:typeof t.mid=="string"?i.mid=parseInt(t.mid,10):typeof t.mid=="number"?i.mid=t.mid:typeof t.mid=="object"&&(i.mid=new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber())),t.buvid!=null&&(i.buvid=String(t.buvid)),t.mobiApp!=null&&(i.mobiApp=String(t.mobiApp)),t.build!=null&&(r.Long?(i.build=r.Long.fromValue(t.build)).unsigned=!1:typeof t.build=="string"?i.build=parseInt(t.build,10):typeof t.build=="number"?i.build=t.build:typeof t.build=="object"&&(i.build=new r.LongBits(t.build.low>>>0,t.build.high>>>0).toNumber())),t.device!=null&&(i.device=String(t.device)),t.platform!=null&&(i.platform=String(t.platform)),t.spmid!=null&&(i.spmid=String(t.spmid)),t.restriction!=null){if(typeof t.restriction!="object")throw TypeError(".bilibili.app.view.v1.ShortFormVideoDownloadReq.restriction: object expected");i.restriction=u.bilibili.app.view.v1.Restriction.fromObject(t.restriction)}return t.tfIsp!=null&&(i.tfIsp=String(t.tfIsp)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.aid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.aid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.cid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.cid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.mid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mid=i.longs===String?"0":0;if(n.buvid="",n.mobiApp="",r.Long){let o=new r.Long(0,0,!1);n.build=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.build=i.longs===String?"0":0;n.device="",n.platform="",n.spmid="",n.restriction=null,n.tfIsp=""}return t.aid!=null&&t.hasOwnProperty("aid")&&(typeof t.aid=="number"?n.aid=i.longs===String?String(t.aid):t.aid:n.aid=i.longs===String?r.Long.prototype.toString.call(t.aid):i.longs===Number?new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber():t.aid),t.cid!=null&&t.hasOwnProperty("cid")&&(typeof t.cid=="number"?n.cid=i.longs===String?String(t.cid):t.cid:n.cid=i.longs===String?r.Long.prototype.toString.call(t.cid):i.longs===Number?new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber():t.cid),t.mid!=null&&t.hasOwnProperty("mid")&&(typeof t.mid=="number"?n.mid=i.longs===String?String(t.mid):t.mid:n.mid=i.longs===String?r.Long.prototype.toString.call(t.mid):i.longs===Number?new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber():t.mid),t.buvid!=null&&t.hasOwnProperty("buvid")&&(n.buvid=t.buvid),t.mobiApp!=null&&t.hasOwnProperty("mobiApp")&&(n.mobiApp=t.mobiApp),t.build!=null&&t.hasOwnProperty("build")&&(typeof t.build=="number"?n.build=i.longs===String?String(t.build):t.build:n.build=i.longs===String?r.Long.prototype.toString.call(t.build):i.longs===Number?new r.LongBits(t.build.low>>>0,t.build.high>>>0).toNumber():t.build),t.device!=null&&t.hasOwnProperty("device")&&(n.device=t.device),t.platform!=null&&t.hasOwnProperty("platform")&&(n.platform=t.platform),t.spmid!=null&&t.hasOwnProperty("spmid")&&(n.spmid=t.spmid),t.restriction!=null&&t.hasOwnProperty("restriction")&&(n.restriction=u.bilibili.app.view.v1.Restriction.toObject(t.restriction,i)),t.tfIsp!=null&&t.hasOwnProperty("tfIsp")&&(n.tfIsp=t.tfIsp),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.ShortFormVideoDownloadReq"},e}(),c.Restriction=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.IsTeenagers=t.bool();break}case 2:{o.IsLessons=t.bool();break}case 3:{o.IsReview=t.bool();break}case 4:{o.DisableRcmd=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.Restriction)return t;let i=new u.bilibili.app.view.v1.Restriction;return t.IsTeenagers!=null&&(i.IsTeenagers=!!t.IsTeenagers),t.IsLessons!=null&&(i.IsLessons=!!t.IsLessons),t.IsReview!=null&&(i.IsReview=!!t.IsReview),t.DisableRcmd!=null&&(i.DisableRcmd=!!t.DisableRcmd),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.IsTeenagers=!1,n.IsLessons=!1,n.IsReview=!1,n.DisableRcmd=!1),t.IsTeenagers!=null&&t.hasOwnProperty("IsTeenagers")&&(n.IsTeenagers=t.IsTeenagers),t.IsLessons!=null&&t.hasOwnProperty("IsLessons")&&(n.IsLessons=t.IsLessons),t.IsReview!=null&&t.hasOwnProperty("IsReview")&&(n.IsReview=t.IsReview),t.DisableRcmd!=null&&t.hasOwnProperty("DisableRcmd")&&(n.DisableRcmd=t.DisableRcmd),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.Restriction"},e}(),c.ShortFormVideoDownloadReply=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.hasDownloadUrl=t.bool();break}case 2:{o.downloadUrl=t.string();break}case 3:{o.md5=t.string();break}case 4:{o.size=t.uint64();break}case 5:{o.backupDownloadUrl=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.ShortFormVideoDownloadReply)return t;let i=new u.bilibili.app.view.v1.ShortFormVideoDownloadReply;return t.hasDownloadUrl!=null&&(i.hasDownloadUrl=!!t.hasDownloadUrl),t.downloadUrl!=null&&(i.downloadUrl=String(t.downloadUrl)),t.md5!=null&&(i.md5=String(t.md5)),t.size!=null&&(r.Long?(i.size=r.Long.fromValue(t.size)).unsigned=!0:typeof t.size=="string"?i.size=parseInt(t.size,10):typeof t.size=="number"?i.size=t.size:typeof t.size=="object"&&(i.size=new r.LongBits(t.size.low>>>0,t.size.high>>>0).toNumber(!0))),t.backupDownloadUrl!=null&&(i.backupDownloadUrl=String(t.backupDownloadUrl)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.hasDownloadUrl=!1,n.downloadUrl="",n.md5="",r.Long){let o=new r.Long(0,0,!0);n.size=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.size=i.longs===String?"0":0;n.backupDownloadUrl=""}return t.hasDownloadUrl!=null&&t.hasOwnProperty("hasDownloadUrl")&&(n.hasDownloadUrl=t.hasDownloadUrl),t.downloadUrl!=null&&t.hasOwnProperty("downloadUrl")&&(n.downloadUrl=t.downloadUrl),t.md5!=null&&t.hasOwnProperty("md5")&&(n.md5=t.md5),t.size!=null&&t.hasOwnProperty("size")&&(typeof t.size=="number"?n.size=i.longs===String?String(t.size):t.size:n.size=i.longs===String?r.Long.prototype.toString.call(t.size):i.longs===Number?new r.LongBits(t.size.low>>>0,t.size.high>>>0).toNumber(!0):t.size),t.backupDownloadUrl!=null&&t.hasOwnProperty("backupDownloadUrl")&&(n.backupDownloadUrl=t.backupDownloadUrl),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.ShortFormVideoDownloadReply"},e}(),c.ClickPlayerCardReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.id=t.int64();break}case 2:{o.aid=t.int64();break}case 3:{o.cid=t.int64();break}case 4:{o.action=t.int64();break}case 5:{o.spmid=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.ClickPlayerCardReq)return t;let i=new u.bilibili.app.view.v1.ClickPlayerCardReq;return t.id!=null&&(r.Long?(i.id=r.Long.fromValue(t.id)).unsigned=!1:typeof t.id=="string"?i.id=parseInt(t.id,10):typeof t.id=="number"?i.id=t.id:typeof t.id=="object"&&(i.id=new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber())),t.aid!=null&&(r.Long?(i.aid=r.Long.fromValue(t.aid)).unsigned=!1:typeof t.aid=="string"?i.aid=parseInt(t.aid,10):typeof t.aid=="number"?i.aid=t.aid:typeof t.aid=="object"&&(i.aid=new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber())),t.cid!=null&&(r.Long?(i.cid=r.Long.fromValue(t.cid)).unsigned=!1:typeof t.cid=="string"?i.cid=parseInt(t.cid,10):typeof t.cid=="number"?i.cid=t.cid:typeof t.cid=="object"&&(i.cid=new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber())),t.action!=null&&(r.Long?(i.action=r.Long.fromValue(t.action)).unsigned=!1:typeof t.action=="string"?i.action=parseInt(t.action,10):typeof t.action=="number"?i.action=t.action:typeof t.action=="object"&&(i.action=new r.LongBits(t.action.low>>>0,t.action.high>>>0).toNumber())),t.spmid!=null&&(i.spmid=String(t.spmid)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.id=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.id=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.aid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.aid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.cid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.cid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.action=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.action=i.longs===String?"0":0;n.spmid=""}return t.id!=null&&t.hasOwnProperty("id")&&(typeof t.id=="number"?n.id=i.longs===String?String(t.id):t.id:n.id=i.longs===String?r.Long.prototype.toString.call(t.id):i.longs===Number?new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber():t.id),t.aid!=null&&t.hasOwnProperty("aid")&&(typeof t.aid=="number"?n.aid=i.longs===String?String(t.aid):t.aid:n.aid=i.longs===String?r.Long.prototype.toString.call(t.aid):i.longs===Number?new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber():t.aid),t.cid!=null&&t.hasOwnProperty("cid")&&(typeof t.cid=="number"?n.cid=i.longs===String?String(t.cid):t.cid:n.cid=i.longs===String?r.Long.prototype.toString.call(t.cid):i.longs===Number?new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber():t.cid),t.action!=null&&t.hasOwnProperty("action")&&(typeof t.action=="number"?n.action=i.longs===String?String(t.action):t.action:n.action=i.longs===String?r.Long.prototype.toString.call(t.action):i.longs===Number?new r.LongBits(t.action.low>>>0,t.action.high>>>0).toNumber():t.action),t.spmid!=null&&t.hasOwnProperty("spmid")&&(n.spmid=t.spmid),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.ClickPlayerCardReq"},e}(),c.ClickPlayerCardReply=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.message=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.ClickPlayerCardReply)return t;let i=new u.bilibili.app.view.v1.ClickPlayerCardReply;return t.message!=null&&(i.message=String(t.message)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.message=""),t.message!=null&&t.hasOwnProperty("message")&&(n.message=t.message),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.ClickPlayerCardReply"},e}(),c.ClickActivitySeasonReq=function(){function e(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.orderType=i.int32();break}case 2:{a.spmid=i.string();break}case 3:{a.reserve=u.bilibili.app.view.v1.BizReserveActivityParam.decode(i,i.uint32());break}case 4:{a.favSeason=u.bilibili.app.view.v1.BizFavSeasonParam.decode(i,i.uint32());break}case 5:{a.action=i.int64();break}default:i.skipType(y&7);break}}return a},e.fromObject=function(i){if(i instanceof u.bilibili.app.view.v1.ClickActivitySeasonReq)return i;let n=new u.bilibili.app.view.v1.ClickActivitySeasonReq;switch(i.orderType){default:if(typeof i.orderType=="number"){n.orderType=i.orderType;break}break;case"BizTypeNone":case 0:n.orderType=0;break;case"BizTypeFollowVideo":case 1:n.orderType=1;break;case"BizTypeReserveActivity":case 2:n.orderType=2;break;case"BizTypeJumpLink":case 3:n.orderType=3;break;case"BizTypeFavSeason":case 4:n.orderType=4;break;case"BizTypeReserveGame":case 5:n.orderType=5;break}if(i.spmid!=null&&(n.spmid=String(i.spmid)),i.reserve!=null){if(typeof i.reserve!="object")throw TypeError(".bilibili.app.view.v1.ClickActivitySeasonReq.reserve: object expected");n.reserve=u.bilibili.app.view.v1.BizReserveActivityParam.fromObject(i.reserve)}if(i.favSeason!=null){if(typeof i.favSeason!="object")throw TypeError(".bilibili.app.view.v1.ClickActivitySeasonReq.favSeason: object expected");n.favSeason=u.bilibili.app.view.v1.BizFavSeasonParam.fromObject(i.favSeason)}return i.action!=null&&(r.Long?(n.action=r.Long.fromValue(i.action)).unsigned=!1:typeof i.action=="string"?n.action=parseInt(i.action,10):typeof i.action=="number"?n.action=i.action:typeof i.action=="object"&&(n.action=new r.LongBits(i.action.low>>>0,i.action.high>>>0).toNumber())),n},e.toObject=function(i,n){n||(n={});let o={};if(n.defaults)if(o.orderType=n.enums===String?"BizTypeNone":0,o.spmid="",r.Long){let a=new r.Long(0,0,!1);o.action=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.action=n.longs===String?"0":0;return i.orderType!=null&&i.hasOwnProperty("orderType")&&(o.orderType=n.enums===String?u.bilibili.app.view.v1.BizType[i.orderType]===void 0?i.orderType:u.bilibili.app.view.v1.BizType[i.orderType]:i.orderType),i.spmid!=null&&i.hasOwnProperty("spmid")&&(o.spmid=i.spmid),i.reserve!=null&&i.hasOwnProperty("reserve")&&(o.reserve=u.bilibili.app.view.v1.BizReserveActivityParam.toObject(i.reserve,n),n.oneofs&&(o.orderParam="reserve")),i.favSeason!=null&&i.hasOwnProperty("favSeason")&&(o.favSeason=u.bilibili.app.view.v1.BizFavSeasonParam.toObject(i.favSeason,n),n.oneofs&&(o.orderParam="favSeason")),i.action!=null&&i.hasOwnProperty("action")&&(typeof i.action=="number"?o.action=n.longs===String?String(i.action):i.action:o.action=n.longs===String?r.Long.prototype.toString.call(i.action):n.longs===Number?new r.LongBits(i.action.low>>>0,i.action.high>>>0).toNumber():i.action),o},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.app.view.v1.ClickActivitySeasonReq"},e}(),c.BizFollowVideoParam=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.seasonId=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.BizFollowVideoParam)return t;let i=new u.bilibili.app.view.v1.BizFollowVideoParam;return t.seasonId!=null&&(r.Long?(i.seasonId=r.Long.fromValue(t.seasonId)).unsigned=!1:typeof t.seasonId=="string"?i.seasonId=parseInt(t.seasonId,10):typeof t.seasonId=="number"?i.seasonId=t.seasonId:typeof t.seasonId=="object"&&(i.seasonId=new r.LongBits(t.seasonId.low>>>0,t.seasonId.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(r.Long){let o=new r.Long(0,0,!1);n.seasonId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.seasonId=i.longs===String?"0":0;return t.seasonId!=null&&t.hasOwnProperty("seasonId")&&(typeof t.seasonId=="number"?n.seasonId=i.longs===String?String(t.seasonId):t.seasonId:n.seasonId=i.longs===String?r.Long.prototype.toString.call(t.seasonId):i.longs===Number?new r.LongBits(t.seasonId.low>>>0,t.seasonId.high>>>0).toNumber():t.seasonId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.BizFollowVideoParam"},e}(),c.BizReserveActivityParam=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.activityId=t.int64();break}case 2:{o.from=t.string();break}case 3:{o.type=t.string();break}case 4:{o.oid=t.int64();break}case 5:{o.reserveId=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.BizReserveActivityParam)return t;let i=new u.bilibili.app.view.v1.BizReserveActivityParam;return t.activityId!=null&&(r.Long?(i.activityId=r.Long.fromValue(t.activityId)).unsigned=!1:typeof t.activityId=="string"?i.activityId=parseInt(t.activityId,10):typeof t.activityId=="number"?i.activityId=t.activityId:typeof t.activityId=="object"&&(i.activityId=new r.LongBits(t.activityId.low>>>0,t.activityId.high>>>0).toNumber())),t.from!=null&&(i.from=String(t.from)),t.type!=null&&(i.type=String(t.type)),t.oid!=null&&(r.Long?(i.oid=r.Long.fromValue(t.oid)).unsigned=!1:typeof t.oid=="string"?i.oid=parseInt(t.oid,10):typeof t.oid=="number"?i.oid=t.oid:typeof t.oid=="object"&&(i.oid=new r.LongBits(t.oid.low>>>0,t.oid.high>>>0).toNumber())),t.reserveId!=null&&(r.Long?(i.reserveId=r.Long.fromValue(t.reserveId)).unsigned=!1:typeof t.reserveId=="string"?i.reserveId=parseInt(t.reserveId,10):typeof t.reserveId=="number"?i.reserveId=t.reserveId:typeof t.reserveId=="object"&&(i.reserveId=new r.LongBits(t.reserveId.low>>>0,t.reserveId.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.activityId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.activityId=i.longs===String?"0":0;if(n.from="",n.type="",r.Long){let o=new r.Long(0,0,!1);n.oid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.oid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.reserveId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.reserveId=i.longs===String?"0":0}return t.activityId!=null&&t.hasOwnProperty("activityId")&&(typeof t.activityId=="number"?n.activityId=i.longs===String?String(t.activityId):t.activityId:n.activityId=i.longs===String?r.Long.prototype.toString.call(t.activityId):i.longs===Number?new r.LongBits(t.activityId.low>>>0,t.activityId.high>>>0).toNumber():t.activityId),t.from!=null&&t.hasOwnProperty("from")&&(n.from=t.from),t.type!=null&&t.hasOwnProperty("type")&&(n.type=t.type),t.oid!=null&&t.hasOwnProperty("oid")&&(typeof t.oid=="number"?n.oid=i.longs===String?String(t.oid):t.oid:n.oid=i.longs===String?r.Long.prototype.toString.call(t.oid):i.longs===Number?new r.LongBits(t.oid.low>>>0,t.oid.high>>>0).toNumber():t.oid),t.reserveId!=null&&t.hasOwnProperty("reserveId")&&(typeof t.reserveId=="number"?n.reserveId=i.longs===String?String(t.reserveId):t.reserveId:n.reserveId=i.longs===String?r.Long.prototype.toString.call(t.reserveId):i.longs===Number?new r.LongBits(t.reserveId.low>>>0,t.reserveId.high>>>0).toNumber():t.reserveId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.BizReserveActivityParam"},e}(),c.BizJumpLinkParam=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.url=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.BizJumpLinkParam)return t;let i=new u.bilibili.app.view.v1.BizJumpLinkParam;return t.url!=null&&(i.url=String(t.url)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.url=""),t.url!=null&&t.hasOwnProperty("url")&&(n.url=t.url),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.BizJumpLinkParam"},e}(),c.BizReserveGameParam=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.gameId=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.BizReserveGameParam)return t;let i=new u.bilibili.app.view.v1.BizReserveGameParam;return t.gameId!=null&&(r.Long?(i.gameId=r.Long.fromValue(t.gameId)).unsigned=!1:typeof t.gameId=="string"?i.gameId=parseInt(t.gameId,10):typeof t.gameId=="number"?i.gameId=t.gameId:typeof t.gameId=="object"&&(i.gameId=new r.LongBits(t.gameId.low>>>0,t.gameId.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(r.Long){let o=new r.Long(0,0,!1);n.gameId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.gameId=i.longs===String?"0":0;return t.gameId!=null&&t.hasOwnProperty("gameId")&&(typeof t.gameId=="number"?n.gameId=i.longs===String?String(t.gameId):t.gameId:n.gameId=i.longs===String?r.Long.prototype.toString.call(t.gameId):i.longs===Number?new r.LongBits(t.gameId.low>>>0,t.gameId.high>>>0).toNumber():t.gameId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.BizReserveGameParam"},e}(),c.BizFavSeasonParam=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.seasonId=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.BizFavSeasonParam)return t;let i=new u.bilibili.app.view.v1.BizFavSeasonParam;return t.seasonId!=null&&(r.Long?(i.seasonId=r.Long.fromValue(t.seasonId)).unsigned=!1:typeof t.seasonId=="string"?i.seasonId=parseInt(t.seasonId,10):typeof t.seasonId=="number"?i.seasonId=t.seasonId:typeof t.seasonId=="object"&&(i.seasonId=new r.LongBits(t.seasonId.low>>>0,t.seasonId.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(r.Long){let o=new r.Long(0,0,!1);n.seasonId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.seasonId=i.longs===String?"0":0;return t.seasonId!=null&&t.hasOwnProperty("seasonId")&&(typeof t.seasonId=="number"?n.seasonId=i.longs===String?String(t.seasonId):t.seasonId:n.seasonId=i.longs===String?r.Long.prototype.toString.call(t.seasonId):i.longs===Number?new r.LongBits(t.seasonId.low>>>0,t.seasonId.high>>>0).toNumber():t.seasonId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.BizFavSeasonParam"},e}(),c.SeasonReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.seasonId=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.SeasonReq)return t;let i=new u.bilibili.app.view.v1.SeasonReq;return t.seasonId!=null&&(r.Long?(i.seasonId=r.Long.fromValue(t.seasonId)).unsigned=!1:typeof t.seasonId=="string"?i.seasonId=parseInt(t.seasonId,10):typeof t.seasonId=="number"?i.seasonId=t.seasonId:typeof t.seasonId=="object"&&(i.seasonId=new r.LongBits(t.seasonId.low>>>0,t.seasonId.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(r.Long){let o=new r.Long(0,0,!1);n.seasonId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.seasonId=i.longs===String?"0":0;return t.seasonId!=null&&t.hasOwnProperty("seasonId")&&(typeof t.seasonId=="number"?n.seasonId=i.longs===String?String(t.seasonId):t.seasonId:n.seasonId=i.longs===String?r.Long.prototype.toString.call(t.seasonId):i.longs===Number?new r.LongBits(t.seasonId.low>>>0,t.seasonId.high>>>0).toNumber():t.seasonId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.SeasonReq"},e}(),c.SeasonReply=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.season=u.bilibili.app.view.v1.UgcSeason.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.SeasonReply)return t;let i=new u.bilibili.app.view.v1.SeasonReply;if(t.season!=null){if(typeof t.season!="object")throw TypeError(".bilibili.app.view.v1.SeasonReply.season: object expected");i.season=u.bilibili.app.view.v1.UgcSeason.fromObject(t.season)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.season=null),t.season!=null&&t.hasOwnProperty("season")&&(n.season=u.bilibili.app.view.v1.UgcSeason.toObject(t.season,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.SeasonReply"},e}(),c.ExposePlayerCardReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.cardType=t.int32();break}case 2:{o.aid=t.int64();break}case 3:{o.cid=t.int64();break}case 4:{o.spmid=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.ExposePlayerCardReq)return t;let i=new u.bilibili.app.view.v1.ExposePlayerCardReq;switch(t.cardType){default:if(typeof t.cardType=="number"){i.cardType=t.cardType;break}break;case"PlayerCardTypeNone":case 0:i.cardType=0;break;case"PlayerCardTypeAttention":case 1:i.cardType=1;break;case"PlayerCardTypeOperation":case 2:i.cardType=2;break;case"PlayerCardTypeContract":case 3:i.cardType=3;break}return t.aid!=null&&(r.Long?(i.aid=r.Long.fromValue(t.aid)).unsigned=!1:typeof t.aid=="string"?i.aid=parseInt(t.aid,10):typeof t.aid=="number"?i.aid=t.aid:typeof t.aid=="object"&&(i.aid=new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber())),t.cid!=null&&(r.Long?(i.cid=r.Long.fromValue(t.cid)).unsigned=!1:typeof t.cid=="string"?i.cid=parseInt(t.cid,10):typeof t.cid=="number"?i.cid=t.cid:typeof t.cid=="object"&&(i.cid=new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber())),t.spmid!=null&&(i.spmid=String(t.spmid)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.cardType=i.enums===String?"PlayerCardTypeNone":0,r.Long){let o=new r.Long(0,0,!1);n.aid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.aid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.cid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.cid=i.longs===String?"0":0;n.spmid=""}return t.cardType!=null&&t.hasOwnProperty("cardType")&&(n.cardType=i.enums===String?u.bilibili.app.view.v1.PlayerCardType[t.cardType]===void 0?t.cardType:u.bilibili.app.view.v1.PlayerCardType[t.cardType]:t.cardType),t.aid!=null&&t.hasOwnProperty("aid")&&(typeof t.aid=="number"?n.aid=i.longs===String?String(t.aid):t.aid:n.aid=i.longs===String?r.Long.prototype.toString.call(t.aid):i.longs===Number?new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber():t.aid),t.cid!=null&&t.hasOwnProperty("cid")&&(typeof t.cid=="number"?n.cid=i.longs===String?String(t.cid):t.cid:n.cid=i.longs===String?r.Long.prototype.toString.call(t.cid):i.longs===Number?new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber():t.cid),t.spmid!=null&&t.hasOwnProperty("spmid")&&(n.spmid=t.spmid),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.ExposePlayerCardReq"},e}(),c.PlayerCardType=function(){let e={},l=Object.create(e);return l[e[0]="PlayerCardTypeNone"]=0,l[e[1]="PlayerCardTypeAttention"]=1,l[e[2]="PlayerCardTypeOperation"]=2,l[e[3]="PlayerCardTypeContract"]=3,l}(),c.AddContractReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.aid=t.int64();break}case 2:{o.upMid=t.int64();break}case 3:{o.spmid=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.AddContractReq)return t;let i=new u.bilibili.app.view.v1.AddContractReq;return t.aid!=null&&(r.Long?(i.aid=r.Long.fromValue(t.aid)).unsigned=!1:typeof t.aid=="string"?i.aid=parseInt(t.aid,10):typeof t.aid=="number"?i.aid=t.aid:typeof t.aid=="object"&&(i.aid=new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber())),t.upMid!=null&&(r.Long?(i.upMid=r.Long.fromValue(t.upMid)).unsigned=!1:typeof t.upMid=="string"?i.upMid=parseInt(t.upMid,10):typeof t.upMid=="number"?i.upMid=t.upMid:typeof t.upMid=="object"&&(i.upMid=new r.LongBits(t.upMid.low>>>0,t.upMid.high>>>0).toNumber())),t.spmid!=null&&(i.spmid=String(t.spmid)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.aid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.aid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.upMid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.upMid=i.longs===String?"0":0;n.spmid=""}return t.aid!=null&&t.hasOwnProperty("aid")&&(typeof t.aid=="number"?n.aid=i.longs===String?String(t.aid):t.aid:n.aid=i.longs===String?r.Long.prototype.toString.call(t.aid):i.longs===Number?new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber():t.aid),t.upMid!=null&&t.hasOwnProperty("upMid")&&(typeof t.upMid=="number"?n.upMid=i.longs===String?String(t.upMid):t.upMid:n.upMid=i.longs===String?r.Long.prototype.toString.call(t.upMid):i.longs===Number?new r.LongBits(t.upMid.low>>>0,t.upMid.high>>>0).toNumber():t.upMid),t.spmid!=null&&t.hasOwnProperty("spmid")&&(n.spmid=t.spmid),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.AddContractReq"},e}(),c.BuzzwordConfig=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.name=t.string();break}case 2:{o.schema=t.string();break}case 3:{o.source=t.int32();break}case 4:{o.start=t.int64();break}case 5:{o.end=t.int64();break}case 6:{o.followControl=t.bool();break}case 7:{o.id=t.int64();break}case 8:{o.buzzwordId=t.int64();break}case 9:{o.schemaType=t.int32();break}case 10:{o.picture=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.BuzzwordConfig)return t;let i=new u.bilibili.app.view.v1.BuzzwordConfig;return t.name!=null&&(i.name=String(t.name)),t.schema!=null&&(i.schema=String(t.schema)),t.source!=null&&(i.source=t.source|0),t.start!=null&&(r.Long?(i.start=r.Long.fromValue(t.start)).unsigned=!1:typeof t.start=="string"?i.start=parseInt(t.start,10):typeof t.start=="number"?i.start=t.start:typeof t.start=="object"&&(i.start=new r.LongBits(t.start.low>>>0,t.start.high>>>0).toNumber())),t.end!=null&&(r.Long?(i.end=r.Long.fromValue(t.end)).unsigned=!1:typeof t.end=="string"?i.end=parseInt(t.end,10):typeof t.end=="number"?i.end=t.end:typeof t.end=="object"&&(i.end=new r.LongBits(t.end.low>>>0,t.end.high>>>0).toNumber())),t.followControl!=null&&(i.followControl=!!t.followControl),t.id!=null&&(r.Long?(i.id=r.Long.fromValue(t.id)).unsigned=!1:typeof t.id=="string"?i.id=parseInt(t.id,10):typeof t.id=="number"?i.id=t.id:typeof t.id=="object"&&(i.id=new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber())),t.buzzwordId!=null&&(r.Long?(i.buzzwordId=r.Long.fromValue(t.buzzwordId)).unsigned=!1:typeof t.buzzwordId=="string"?i.buzzwordId=parseInt(t.buzzwordId,10):typeof t.buzzwordId=="number"?i.buzzwordId=t.buzzwordId:typeof t.buzzwordId=="object"&&(i.buzzwordId=new r.LongBits(t.buzzwordId.low>>>0,t.buzzwordId.high>>>0).toNumber())),t.schemaType!=null&&(i.schemaType=t.schemaType|0),t.picture!=null&&(i.picture=String(t.picture)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.name="",n.schema="",n.source=0,r.Long){let o=new r.Long(0,0,!1);n.start=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.start=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.end=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.end=i.longs===String?"0":0;if(n.followControl=!1,r.Long){let o=new r.Long(0,0,!1);n.id=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.id=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.buzzwordId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.buzzwordId=i.longs===String?"0":0;n.schemaType=0,n.picture=""}return t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),t.schema!=null&&t.hasOwnProperty("schema")&&(n.schema=t.schema),t.source!=null&&t.hasOwnProperty("source")&&(n.source=t.source),t.start!=null&&t.hasOwnProperty("start")&&(typeof t.start=="number"?n.start=i.longs===String?String(t.start):t.start:n.start=i.longs===String?r.Long.prototype.toString.call(t.start):i.longs===Number?new r.LongBits(t.start.low>>>0,t.start.high>>>0).toNumber():t.start),t.end!=null&&t.hasOwnProperty("end")&&(typeof t.end=="number"?n.end=i.longs===String?String(t.end):t.end:n.end=i.longs===String?r.Long.prototype.toString.call(t.end):i.longs===Number?new r.LongBits(t.end.low>>>0,t.end.high>>>0).toNumber():t.end),t.followControl!=null&&t.hasOwnProperty("followControl")&&(n.followControl=t.followControl),t.id!=null&&t.hasOwnProperty("id")&&(typeof t.id=="number"?n.id=i.longs===String?String(t.id):t.id:n.id=i.longs===String?r.Long.prototype.toString.call(t.id):i.longs===Number?new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber():t.id),t.buzzwordId!=null&&t.hasOwnProperty("buzzwordId")&&(typeof t.buzzwordId=="number"?n.buzzwordId=i.longs===String?String(t.buzzwordId):t.buzzwordId:n.buzzwordId=i.longs===String?r.Long.prototype.toString.call(t.buzzwordId):i.longs===Number?new r.LongBits(t.buzzwordId.low>>>0,t.buzzwordId.high>>>0).toNumber():t.buzzwordId),t.schemaType!=null&&t.hasOwnProperty("schemaType")&&(n.schemaType=t.schemaType),t.picture!=null&&t.hasOwnProperty("picture")&&(n.picture=t.picture),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.BuzzwordConfig"},e}(),c.Category=function(){let e={},l=Object.create(e);return l[e[0]="CategoryUnknown"]=0,l[e[1]="CategorySeason"]=1,l}(),c.PayState=function(){let e={},l=Object.create(e);return l[e[0]="PayStateUnknown"]=0,l[e[1]="PayStateActive"]=1,l}(),c.TFInfoReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){default:t.skipType(a&7);break}}return o},e.fromObject=function(t){return t instanceof u.bilibili.app.view.v1.TFInfoReq?t:new u.bilibili.app.view.v1.TFInfoReq},e.toObject=function(){return{}},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.TFInfoReq"},e}(),c.TFInfoReply=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.tipsId=t.int64();break}case 2:{o.tfToast=u.bilibili.app.view.v1.TFToast.decode(t,t.uint32());break}case 3:{o.tfPanelCustomized=u.bilibili.app.view.v1.TFPanelCustomized.decode(t,t.uint32());break}case 4:{o.userFlagNew=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.TFInfoReply)return t;let i=new u.bilibili.app.view.v1.TFInfoReply;if(t.tipsId!=null&&(r.Long?(i.tipsId=r.Long.fromValue(t.tipsId)).unsigned=!1:typeof t.tipsId=="string"?i.tipsId=parseInt(t.tipsId,10):typeof t.tipsId=="number"?i.tipsId=t.tipsId:typeof t.tipsId=="object"&&(i.tipsId=new r.LongBits(t.tipsId.low>>>0,t.tipsId.high>>>0).toNumber())),t.tfToast!=null){if(typeof t.tfToast!="object")throw TypeError(".bilibili.app.view.v1.TFInfoReply.tfToast: object expected");i.tfToast=u.bilibili.app.view.v1.TFToast.fromObject(t.tfToast)}if(t.tfPanelCustomized!=null){if(typeof t.tfPanelCustomized!="object")throw TypeError(".bilibili.app.view.v1.TFInfoReply.tfPanelCustomized: object expected");i.tfPanelCustomized=u.bilibili.app.view.v1.TFPanelCustomized.fromObject(t.tfPanelCustomized)}return t.userFlagNew!=null&&(i.userFlagNew=!!t.userFlagNew),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.tipsId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.tipsId=i.longs===String?"0":0;n.tfToast=null,n.tfPanelCustomized=null,n.userFlagNew=!1}return t.tipsId!=null&&t.hasOwnProperty("tipsId")&&(typeof t.tipsId=="number"?n.tipsId=i.longs===String?String(t.tipsId):t.tipsId:n.tipsId=i.longs===String?r.Long.prototype.toString.call(t.tipsId):i.longs===Number?new r.LongBits(t.tipsId.low>>>0,t.tipsId.high>>>0).toNumber():t.tipsId),t.tfToast!=null&&t.hasOwnProperty("tfToast")&&(n.tfToast=u.bilibili.app.view.v1.TFToast.toObject(t.tfToast,i)),t.tfPanelCustomized!=null&&t.hasOwnProperty("tfPanelCustomized")&&(n.tfPanelCustomized=u.bilibili.app.view.v1.TFPanelCustomized.toObject(t.tfPanelCustomized,i)),t.userFlagNew!=null&&t.hasOwnProperty("userFlagNew")&&(n.userFlagNew=t.userFlagNew),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.TFInfoReply"},e}(),c.LegacyView=function(){function e(l,t,i){b.rpc.Service.call(this,l,t,i)}return(e.prototype=Object.create(b.rpc.Service.prototype)).constructor=e,e.create=function(t,i,n){return new this(t,i,n)},Object.defineProperty(e.prototype.like=function l(t,i){return this.rpcCall(l,u.bilibili.app.view.v1.LikeReq,u.bilibili.app.view.v1.LikeReply,t,i)},"name",{value:"Like"}),e}(),c.LikeReply=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.toast=t.string();break}case 2:{o.vVoucher=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.LikeReply)return t;let i=new u.bilibili.app.view.v1.LikeReply;return t.toast!=null&&(i.toast=String(t.toast)),t.vVoucher!=null&&(i.vVoucher=String(t.vVoucher)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.toast="",n.vVoucher=""),t.toast!=null&&t.hasOwnProperty("toast")&&(n.toast=t.toast),t.vVoucher!=null&&t.hasOwnProperty("vVoucher")&&(n.vVoucher=t.vVoucher),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.LikeReply"},e}(),c.LikeReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.aid=t.int64();break}case 2:{o.ogvType=t.int64();break}case 3:{o.from=t.string();break}case 4:{o.spmid=t.string();break}case 5:{o.fromSpmid=t.string();break}case 6:{o.trackId=t.string();break}case 7:{o.goto=t.string();break}case 8:{o.like=t.int32();break}case 9:{o.source=t.string();break}case 10:{o.token=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.view.v1.LikeReq)return t;let i=new u.bilibili.app.view.v1.LikeReq;return t.aid!=null&&(r.Long?(i.aid=r.Long.fromValue(t.aid)).unsigned=!1:typeof t.aid=="string"?i.aid=parseInt(t.aid,10):typeof t.aid=="number"?i.aid=t.aid:typeof t.aid=="object"&&(i.aid=new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber())),t.ogvType!=null&&(r.Long?(i.ogvType=r.Long.fromValue(t.ogvType)).unsigned=!1:typeof t.ogvType=="string"?i.ogvType=parseInt(t.ogvType,10):typeof t.ogvType=="number"?i.ogvType=t.ogvType:typeof t.ogvType=="object"&&(i.ogvType=new r.LongBits(t.ogvType.low>>>0,t.ogvType.high>>>0).toNumber())),t.from!=null&&(i.from=String(t.from)),t.spmid!=null&&(i.spmid=String(t.spmid)),t.fromSpmid!=null&&(i.fromSpmid=String(t.fromSpmid)),t.trackId!=null&&(i.trackId=String(t.trackId)),t.goto!=null&&(i.goto=String(t.goto)),t.like!=null&&(i.like=t.like|0),t.source!=null&&(i.source=String(t.source)),t.token!=null&&(i.token=String(t.token)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.aid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.aid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.ogvType=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.ogvType=i.longs===String?"0":0;n.from="",n.spmid="",n.fromSpmid="",n.trackId="",n.goto="",n.like=0,n.source="",n.token=""}return t.aid!=null&&t.hasOwnProperty("aid")&&(typeof t.aid=="number"?n.aid=i.longs===String?String(t.aid):t.aid:n.aid=i.longs===String?r.Long.prototype.toString.call(t.aid):i.longs===Number?new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber():t.aid),t.ogvType!=null&&t.hasOwnProperty("ogvType")&&(typeof t.ogvType=="number"?n.ogvType=i.longs===String?String(t.ogvType):t.ogvType:n.ogvType=i.longs===String?r.Long.prototype.toString.call(t.ogvType):i.longs===Number?new r.LongBits(t.ogvType.low>>>0,t.ogvType.high>>>0).toNumber():t.ogvType),t.from!=null&&t.hasOwnProperty("from")&&(n.from=t.from),t.spmid!=null&&t.hasOwnProperty("spmid")&&(n.spmid=t.spmid),t.fromSpmid!=null&&t.hasOwnProperty("fromSpmid")&&(n.fromSpmid=t.fromSpmid),t.trackId!=null&&t.hasOwnProperty("trackId")&&(n.trackId=t.trackId),t.goto!=null&&t.hasOwnProperty("goto")&&(n.goto=t.goto),t.like!=null&&t.hasOwnProperty("like")&&(n.like=t.like),t.source!=null&&t.hasOwnProperty("source")&&(n.source=t.source),t.token!=null&&t.hasOwnProperty("token")&&(n.token=t.token),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.view.v1.LikeReq"},e}(),c}(),p}(),d.viewunite=function(){let p={};return p.common=function(){let c={};return c.Module=function(){function e(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.type=i.int32();break}case 2:{a.ogvIntroduction=u.bilibili.app.viewunite.common.OgvIntroduction.decode(i,i.uint32());break}case 3:{a.ugcIntroduction=u.bilibili.app.viewunite.common.UgcIntroduction.decode(i,i.uint32());break}case 4:{a.kingPosition=u.bilibili.app.viewunite.common.KingPosition.decode(i,i.uint32());break}case 5:{a.headLine=u.bilibili.app.viewunite.common.Headline.decode(i,i.uint32());break}case 6:{a.ogvTitle=u.bilibili.app.viewunite.common.OgvTitle.decode(i,i.uint32());break}case 7:{a.honor=u.bilibili.app.viewunite.common.Honor.decode(i,i.uint32());break}case 8:{a.list=u.bilibili.app.viewunite.common.UserList.decode(i,i.uint32());break}case 9:{a.staffs=u.bilibili.app.viewunite.common.Staffs.decode(i,i.uint32());break}case 10:{a.activityReserve=u.bilibili.app.viewunite.common.ActivityReserve.decode(i,i.uint32());break}case 11:{a.liveOrder=u.bilibili.app.viewunite.common.LiveOrder.decode(i,i.uint32());break}case 12:{a.sectionData=u.bilibili.app.viewunite.common.SectionData.decode(i,i.uint32());break}case 13:{a.deliveryData=u.bilibili.app.viewunite.common.DeliveryData.decode(i,i.uint32());break}case 14:{a.followLayer=u.bilibili.app.viewunite.common.FollowLayer.decode(i,i.uint32());break}case 15:{a.ogvSeasons=u.bilibili.app.viewunite.common.OgvSeasons.decode(i,i.uint32());break}case 16:{a.ugcSeason=u.bilibili.app.viewunite.common.UgcSeasons.decode(i,i.uint32());break}case 17:{a.ogvLiveReserve=u.bilibili.app.viewunite.common.OgvLiveReserve.decode(i,i.uint32());break}case 18:{a.combinationEp=u.bilibili.app.viewunite.common.CombinationEp.decode(i,i.uint32());break}case 19:{a.sponsor=u.bilibili.app.viewunite.common.Sponsor.decode(i,i.uint32());break}case 20:{a.activityEntranceModule=u.bilibili.app.viewunite.common.ActivityEntranceModule.decode(i,i.uint32());break}case 21:{a.serialSeason=u.bilibili.app.viewunite.common.SerialSeason.decode(i,i.uint32());break}case 22:{a.relates=u.bilibili.app.viewunite.common.Relates.decode(i,i.uint32());break}case 23:{a.banner=u.bilibili.app.viewunite.common.Banner.decode(i,i.uint32());break}case 24:{a.audio=u.bilibili.app.viewunite.common.Audio.decode(i,i.uint32());break}case 25:{a.likeComment=u.bilibili.app.viewunite.common.LikeComment.decode(i,i.uint32());break}case 26:{a.attentionRecommend=u.bilibili.app.viewunite.common.AttentionRecommend.decode(i,i.uint32());break}case 27:{a.covenanter=u.bilibili.app.viewunite.common.Covenanter.decode(i,i.uint32());break}case 28:{a.specialTag=u.bilibili.app.viewunite.common.SpecialTag.decode(i,i.uint32());break}case 29:{a.upDataModule=u.bilibili.app.viewunite.common.UpDataModule.decode(i,i.uint32());break}case 30:{a.professionApproval=u.bilibili.app.viewunite.common.ProfessionApproval.decode(i,i.uint32());break}case 31:{a.pugvShoppingNotice=u.bilibili.app.viewunite.common.PugvShoppingNotice.decode(i,i.uint32());break}case 32:{a.pugvFaq=u.bilibili.app.viewunite.common.PugvFaq.decode(i,i.uint32());break}case 33:{a.pugvSeasonDescription=u.bilibili.app.viewunite.common.PugvSeasonDescription.decode(i,i.uint32());break}case 34:{a.pugvSeasonRecommend=u.bilibili.app.viewunite.common.PugvSeasonRecommend.decode(i,i.uint32());break}case 35:{a.pugvSeasonPublisher=u.bilibili.app.viewunite.common.PugvSeasonPublisher.decode(i,i.uint32());break}case 36:{a.pugvSeasonSelection=u.bilibili.app.viewunite.common.PugvSeasonSelection.decode(i,i.uint32());break}case 37:{a.pugvSeasonPrimaryInfo=u.bilibili.app.viewunite.common.PugvSeasonPrimaryInfo.decode(i,i.uint32());break}case 38:{a.pugvCooperationApplication=u.bilibili.app.viewunite.common.PugvCooperationApplication.decode(i,i.uint32());break}case 39:{a.upVideoTool=u.bilibili.app.viewunite.common.UpVideoTool.decode(i,i.uint32());break}case 40:{a.pugvZone=u.bilibili.app.viewunite.common.PugvZone.decode(i,i.uint32());break}case 41:{a.pugvSeries=u.bilibili.app.viewunite.common.PugvSeries.decode(i,i.uint32());break}case 42:{a.pugvPackage=u.bilibili.app.viewunite.common.PugvPackage.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},e.fromObject=function(i){if(i instanceof u.bilibili.app.viewunite.common.Module)return i;let n=new u.bilibili.app.viewunite.common.Module;switch(i.type){default:if(typeof i.type=="number"){n.type=i.type;break}break;case"UNKNOWN":case 0:n.type=0;break;case"OGV_INTRODUCTION":case 1:n.type=1;break;case"OGV_TITLE":case 2:n.type=2;break;case"UGC_HEADLINE":case 3:n.type=3;break;case"UGC_INTRODUCTION":case 4:n.type=4;break;case"KING_POSITION":case 5:n.type=5;break;case"MASTER_USER_LIST":case 6:n.type=6;break;case"STAFFS":case 7:n.type=7;break;case"HONOR":case 8:n.type=8;break;case"OWNER":case 9:n.type=9;break;case"PAGE":case 10:n.type=10;break;case"ACTIVITY_RESERVE":case 11:n.type=11;break;case"LIVE_ORDER":case 12:n.type=12;break;case"POSITIVE":case 13:n.type=13;break;case"SECTION":case 14:n.type=14;break;case"RELATE":case 15:n.type=15;break;case"PUGV":case 16:n.type=16;break;case"COLLECTION_CARD":case 17:n.type=17;break;case"ACTIVITY":case 18:n.type=18;break;case"CHARACTER":case 19:n.type=19;break;case"FOLLOW_LAYER":case 20:n.type=20;break;case"OGV_SEASONS":case 21:n.type=21;break;case"UGC_SEASON":case 22:n.type=22;break;case"OGV_LIVE_RESERVE":case 23:n.type=23;break;case"COMBINATION_EPISODE":case 24:n.type=24;break;case"SPONSOR":case 25:n.type=25;break;case"ACTIVITY_ENTRANCE":case 26:n.type=26;break;case"THEATRE_HOT_TOPIC":case 27:n.type=27;break;case"RELATED_RECOMMEND":case 28:n.type=28;break;case"PAY_BAR":case 29:n.type=29;break;case"BANNER":case 30:n.type=30;break;case"AUDIO":case 31:n.type=31;break;case"AGG_CARD":case 32:n.type=32;break;case"SINGLE_EP":case 33:n.type=33;break;case"LIKE_COMMENT":case 34:n.type=34;break;case"ATTENTION_RECOMMEND":case 35:n.type=35;break;case"COVENANTER":case 36:n.type=36;break;case"SPECIALTAG":case 37:n.type=37;break;case"UPDATA":case 38:n.type=38;break;case"PROFESSION_APPROVAL":case 39:n.type=39;break;case"PUGV_SHOPPING_NOTICE":case 40:n.type=40;break;case"PUGV_FAQ":case 41:n.type=41;break;case"PUGV_SEASON_DESCRIPTION":case 42:n.type=42;break;case"PUGV_SEASON_RECOMMEND":case 43:n.type=43;break;case"PUGV_SEASON_PUBLISHER":case 44:n.type=44;break;case"PUGV_SEASON_SELECTION":case 45:n.type=45;break;case"PUGV_SEASON_PRIMARY_INFO":case 46:n.type=46;break;case"PUGV_COOPERATION_APPLICATION":case 47:n.type=47;break;case"UP_VIDEO_TOOL":case 48:n.type=48;break;case"PUGV_ZONE":case 49:n.type=49;break;case"PUGV_SERIES":case 50:n.type=50;break;case"PUGV_PACKAGE":case 51:n.type=51;break}if(i.ogvIntroduction!=null){if(typeof i.ogvIntroduction!="object")throw TypeError(".bilibili.app.viewunite.common.Module.ogvIntroduction: object expected");n.ogvIntroduction=u.bilibili.app.viewunite.common.OgvIntroduction.fromObject(i.ogvIntroduction)}if(i.ugcIntroduction!=null){if(typeof i.ugcIntroduction!="object")throw TypeError(".bilibili.app.viewunite.common.Module.ugcIntroduction: object expected");n.ugcIntroduction=u.bilibili.app.viewunite.common.UgcIntroduction.fromObject(i.ugcIntroduction)}if(i.kingPosition!=null){if(typeof i.kingPosition!="object")throw TypeError(".bilibili.app.viewunite.common.Module.kingPosition: object expected");n.kingPosition=u.bilibili.app.viewunite.common.KingPosition.fromObject(i.kingPosition)}if(i.headLine!=null){if(typeof i.headLine!="object")throw TypeError(".bilibili.app.viewunite.common.Module.headLine: object expected");n.headLine=u.bilibili.app.viewunite.common.Headline.fromObject(i.headLine)}if(i.ogvTitle!=null){if(typeof i.ogvTitle!="object")throw TypeError(".bilibili.app.viewunite.common.Module.ogvTitle: object expected");n.ogvTitle=u.bilibili.app.viewunite.common.OgvTitle.fromObject(i.ogvTitle)}if(i.honor!=null){if(typeof i.honor!="object")throw TypeError(".bilibili.app.viewunite.common.Module.honor: object expected");n.honor=u.bilibili.app.viewunite.common.Honor.fromObject(i.honor)}if(i.list!=null){if(typeof i.list!="object")throw TypeError(".bilibili.app.viewunite.common.Module.list: object expected");n.list=u.bilibili.app.viewunite.common.UserList.fromObject(i.list)}if(i.staffs!=null){if(typeof i.staffs!="object")throw TypeError(".bilibili.app.viewunite.common.Module.staffs: object expected");n.staffs=u.bilibili.app.viewunite.common.Staffs.fromObject(i.staffs)}if(i.activityReserve!=null){if(typeof i.activityReserve!="object")throw TypeError(".bilibili.app.viewunite.common.Module.activityReserve: object expected");n.activityReserve=u.bilibili.app.viewunite.common.ActivityReserve.fromObject(i.activityReserve)}if(i.liveOrder!=null){if(typeof i.liveOrder!="object")throw TypeError(".bilibili.app.viewunite.common.Module.liveOrder: object expected");n.liveOrder=u.bilibili.app.viewunite.common.LiveOrder.fromObject(i.liveOrder)}if(i.sectionData!=null){if(typeof i.sectionData!="object")throw TypeError(".bilibili.app.viewunite.common.Module.sectionData: object expected");n.sectionData=u.bilibili.app.viewunite.common.SectionData.fromObject(i.sectionData)}if(i.deliveryData!=null){if(typeof i.deliveryData!="object")throw TypeError(".bilibili.app.viewunite.common.Module.deliveryData: object expected");n.deliveryData=u.bilibili.app.viewunite.common.DeliveryData.fromObject(i.deliveryData)}if(i.followLayer!=null){if(typeof i.followLayer!="object")throw TypeError(".bilibili.app.viewunite.common.Module.followLayer: object expected");n.followLayer=u.bilibili.app.viewunite.common.FollowLayer.fromObject(i.followLayer)}if(i.ogvSeasons!=null){if(typeof i.ogvSeasons!="object")throw TypeError(".bilibili.app.viewunite.common.Module.ogvSeasons: object expected");n.ogvSeasons=u.bilibili.app.viewunite.common.OgvSeasons.fromObject(i.ogvSeasons)}if(i.ugcSeason!=null){if(typeof i.ugcSeason!="object")throw TypeError(".bilibili.app.viewunite.common.Module.ugcSeason: object expected");n.ugcSeason=u.bilibili.app.viewunite.common.UgcSeasons.fromObject(i.ugcSeason)}if(i.ogvLiveReserve!=null){if(typeof i.ogvLiveReserve!="object")throw TypeError(".bilibili.app.viewunite.common.Module.ogvLiveReserve: object expected");n.ogvLiveReserve=u.bilibili.app.viewunite.common.OgvLiveReserve.fromObject(i.ogvLiveReserve)}if(i.combinationEp!=null){if(typeof i.combinationEp!="object")throw TypeError(".bilibili.app.viewunite.common.Module.combinationEp: object expected");n.combinationEp=u.bilibili.app.viewunite.common.CombinationEp.fromObject(i.combinationEp)}if(i.sponsor!=null){if(typeof i.sponsor!="object")throw TypeError(".bilibili.app.viewunite.common.Module.sponsor: object expected");n.sponsor=u.bilibili.app.viewunite.common.Sponsor.fromObject(i.sponsor)}if(i.activityEntranceModule!=null){if(typeof i.activityEntranceModule!="object")throw TypeError(".bilibili.app.viewunite.common.Module.activityEntranceModule: object expected");n.activityEntranceModule=u.bilibili.app.viewunite.common.ActivityEntranceModule.fromObject(i.activityEntranceModule)}if(i.serialSeason!=null){if(typeof i.serialSeason!="object")throw TypeError(".bilibili.app.viewunite.common.Module.serialSeason: object expected");n.serialSeason=u.bilibili.app.viewunite.common.SerialSeason.fromObject(i.serialSeason)}if(i.relates!=null){if(typeof i.relates!="object")throw TypeError(".bilibili.app.viewunite.common.Module.relates: object expected");n.relates=u.bilibili.app.viewunite.common.Relates.fromObject(i.relates)}if(i.banner!=null){if(typeof i.banner!="object")throw TypeError(".bilibili.app.viewunite.common.Module.banner: object expected");n.banner=u.bilibili.app.viewunite.common.Banner.fromObject(i.banner)}if(i.audio!=null){if(typeof i.audio!="object")throw TypeError(".bilibili.app.viewunite.common.Module.audio: object expected");n.audio=u.bilibili.app.viewunite.common.Audio.fromObject(i.audio)}if(i.likeComment!=null){if(typeof i.likeComment!="object")throw TypeError(".bilibili.app.viewunite.common.Module.likeComment: object expected");n.likeComment=u.bilibili.app.viewunite.common.LikeComment.fromObject(i.likeComment)}if(i.attentionRecommend!=null){if(typeof i.attentionRecommend!="object")throw TypeError(".bilibili.app.viewunite.common.Module.attentionRecommend: object expected");n.attentionRecommend=u.bilibili.app.viewunite.common.AttentionRecommend.fromObject(i.attentionRecommend)}if(i.covenanter!=null){if(typeof i.covenanter!="object")throw TypeError(".bilibili.app.viewunite.common.Module.covenanter: object expected");n.covenanter=u.bilibili.app.viewunite.common.Covenanter.fromObject(i.covenanter)}if(i.specialTag!=null){if(typeof i.specialTag!="object")throw TypeError(".bilibili.app.viewunite.common.Module.specialTag: object expected");n.specialTag=u.bilibili.app.viewunite.common.SpecialTag.fromObject(i.specialTag)}if(i.upDataModule!=null){if(typeof i.upDataModule!="object")throw TypeError(".bilibili.app.viewunite.common.Module.upDataModule: object expected");n.upDataModule=u.bilibili.app.viewunite.common.UpDataModule.fromObject(i.upDataModule)}if(i.professionApproval!=null){if(typeof i.professionApproval!="object")throw TypeError(".bilibili.app.viewunite.common.Module.professionApproval: object expected");n.professionApproval=u.bilibili.app.viewunite.common.ProfessionApproval.fromObject(i.professionApproval)}if(i.pugvShoppingNotice!=null){if(typeof i.pugvShoppingNotice!="object")throw TypeError(".bilibili.app.viewunite.common.Module.pugvShoppingNotice: object expected");n.pugvShoppingNotice=u.bilibili.app.viewunite.common.PugvShoppingNotice.fromObject(i.pugvShoppingNotice)}if(i.pugvFaq!=null){if(typeof i.pugvFaq!="object")throw TypeError(".bilibili.app.viewunite.common.Module.pugvFaq: object expected");n.pugvFaq=u.bilibili.app.viewunite.common.PugvFaq.fromObject(i.pugvFaq)}if(i.pugvSeasonDescription!=null){if(typeof i.pugvSeasonDescription!="object")throw TypeError(".bilibili.app.viewunite.common.Module.pugvSeasonDescription: object expected");n.pugvSeasonDescription=u.bilibili.app.viewunite.common.PugvSeasonDescription.fromObject(i.pugvSeasonDescription)}if(i.pugvSeasonRecommend!=null){if(typeof i.pugvSeasonRecommend!="object")throw TypeError(".bilibili.app.viewunite.common.Module.pugvSeasonRecommend: object expected");n.pugvSeasonRecommend=u.bilibili.app.viewunite.common.PugvSeasonRecommend.fromObject(i.pugvSeasonRecommend)}if(i.pugvSeasonPublisher!=null){if(typeof i.pugvSeasonPublisher!="object")throw TypeError(".bilibili.app.viewunite.common.Module.pugvSeasonPublisher: object expected");n.pugvSeasonPublisher=u.bilibili.app.viewunite.common.PugvSeasonPublisher.fromObject(i.pugvSeasonPublisher)}if(i.pugvSeasonSelection!=null){if(typeof i.pugvSeasonSelection!="object")throw TypeError(".bilibili.app.viewunite.common.Module.pugvSeasonSelection: object expected");n.pugvSeasonSelection=u.bilibili.app.viewunite.common.PugvSeasonSelection.fromObject(i.pugvSeasonSelection)}if(i.pugvSeasonPrimaryInfo!=null){if(typeof i.pugvSeasonPrimaryInfo!="object")throw TypeError(".bilibili.app.viewunite.common.Module.pugvSeasonPrimaryInfo: object expected");n.pugvSeasonPrimaryInfo=u.bilibili.app.viewunite.common.PugvSeasonPrimaryInfo.fromObject(i.pugvSeasonPrimaryInfo)}if(i.pugvCooperationApplication!=null){if(typeof i.pugvCooperationApplication!="object")throw TypeError(".bilibili.app.viewunite.common.Module.pugvCooperationApplication: object expected");n.pugvCooperationApplication=u.bilibili.app.viewunite.common.PugvCooperationApplication.fromObject(i.pugvCooperationApplication)}if(i.upVideoTool!=null){if(typeof i.upVideoTool!="object")throw TypeError(".bilibili.app.viewunite.common.Module.upVideoTool: object expected");n.upVideoTool=u.bilibili.app.viewunite.common.UpVideoTool.fromObject(i.upVideoTool)}if(i.pugvZone!=null){if(typeof i.pugvZone!="object")throw TypeError(".bilibili.app.viewunite.common.Module.pugvZone: object expected");n.pugvZone=u.bilibili.app.viewunite.common.PugvZone.fromObject(i.pugvZone)}if(i.pugvSeries!=null){if(typeof i.pugvSeries!="object")throw TypeError(".bilibili.app.viewunite.common.Module.pugvSeries: object expected");n.pugvSeries=u.bilibili.app.viewunite.common.PugvSeries.fromObject(i.pugvSeries)}if(i.pugvPackage!=null){if(typeof i.pugvPackage!="object")throw TypeError(".bilibili.app.viewunite.common.Module.pugvPackage: object expected");n.pugvPackage=u.bilibili.app.viewunite.common.PugvPackage.fromObject(i.pugvPackage)}return n},e.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.type=n.enums===String?"UNKNOWN":0),i.type!=null&&i.hasOwnProperty("type")&&(o.type=n.enums===String?u.bilibili.app.viewunite.common.ModuleType[i.type]===void 0?i.type:u.bilibili.app.viewunite.common.ModuleType[i.type]:i.type),i.ogvIntroduction!=null&&i.hasOwnProperty("ogvIntroduction")&&(o.ogvIntroduction=u.bilibili.app.viewunite.common.OgvIntroduction.toObject(i.ogvIntroduction,n),n.oneofs&&(o.data="ogvIntroduction")),i.ugcIntroduction!=null&&i.hasOwnProperty("ugcIntroduction")&&(o.ugcIntroduction=u.bilibili.app.viewunite.common.UgcIntroduction.toObject(i.ugcIntroduction,n),n.oneofs&&(o.data="ugcIntroduction")),i.kingPosition!=null&&i.hasOwnProperty("kingPosition")&&(o.kingPosition=u.bilibili.app.viewunite.common.KingPosition.toObject(i.kingPosition,n),n.oneofs&&(o.data="kingPosition")),i.headLine!=null&&i.hasOwnProperty("headLine")&&(o.headLine=u.bilibili.app.viewunite.common.Headline.toObject(i.headLine,n),n.oneofs&&(o.data="headLine")),i.ogvTitle!=null&&i.hasOwnProperty("ogvTitle")&&(o.ogvTitle=u.bilibili.app.viewunite.common.OgvTitle.toObject(i.ogvTitle,n),n.oneofs&&(o.data="ogvTitle")),i.honor!=null&&i.hasOwnProperty("honor")&&(o.honor=u.bilibili.app.viewunite.common.Honor.toObject(i.honor,n),n.oneofs&&(o.data="honor")),i.list!=null&&i.hasOwnProperty("list")&&(o.list=u.bilibili.app.viewunite.common.UserList.toObject(i.list,n),n.oneofs&&(o.data="list")),i.staffs!=null&&i.hasOwnProperty("staffs")&&(o.staffs=u.bilibili.app.viewunite.common.Staffs.toObject(i.staffs,n),n.oneofs&&(o.data="staffs")),i.activityReserve!=null&&i.hasOwnProperty("activityReserve")&&(o.activityReserve=u.bilibili.app.viewunite.common.ActivityReserve.toObject(i.activityReserve,n),n.oneofs&&(o.data="activityReserve")),i.liveOrder!=null&&i.hasOwnProperty("liveOrder")&&(o.liveOrder=u.bilibili.app.viewunite.common.LiveOrder.toObject(i.liveOrder,n),n.oneofs&&(o.data="liveOrder")),i.sectionData!=null&&i.hasOwnProperty("sectionData")&&(o.sectionData=u.bilibili.app.viewunite.common.SectionData.toObject(i.sectionData,n),n.oneofs&&(o.data="sectionData")),i.deliveryData!=null&&i.hasOwnProperty("deliveryData")&&(o.deliveryData=u.bilibili.app.viewunite.common.DeliveryData.toObject(i.deliveryData,n),n.oneofs&&(o.data="deliveryData")),i.followLayer!=null&&i.hasOwnProperty("followLayer")&&(o.followLayer=u.bilibili.app.viewunite.common.FollowLayer.toObject(i.followLayer,n),n.oneofs&&(o.data="followLayer")),i.ogvSeasons!=null&&i.hasOwnProperty("ogvSeasons")&&(o.ogvSeasons=u.bilibili.app.viewunite.common.OgvSeasons.toObject(i.ogvSeasons,n),n.oneofs&&(o.data="ogvSeasons")),i.ugcSeason!=null&&i.hasOwnProperty("ugcSeason")&&(o.ugcSeason=u.bilibili.app.viewunite.common.UgcSeasons.toObject(i.ugcSeason,n),n.oneofs&&(o.data="ugcSeason")),i.ogvLiveReserve!=null&&i.hasOwnProperty("ogvLiveReserve")&&(o.ogvLiveReserve=u.bilibili.app.viewunite.common.OgvLiveReserve.toObject(i.ogvLiveReserve,n),n.oneofs&&(o.data="ogvLiveReserve")),i.combinationEp!=null&&i.hasOwnProperty("combinationEp")&&(o.combinationEp=u.bilibili.app.viewunite.common.CombinationEp.toObject(i.combinationEp,n),n.oneofs&&(o.data="combinationEp")),i.sponsor!=null&&i.hasOwnProperty("sponsor")&&(o.sponsor=u.bilibili.app.viewunite.common.Sponsor.toObject(i.sponsor,n),n.oneofs&&(o.data="sponsor")),i.activityEntranceModule!=null&&i.hasOwnProperty("activityEntranceModule")&&(o.activityEntranceModule=u.bilibili.app.viewunite.common.ActivityEntranceModule.toObject(i.activityEntranceModule,n),n.oneofs&&(o.data="activityEntranceModule")),i.serialSeason!=null&&i.hasOwnProperty("serialSeason")&&(o.serialSeason=u.bilibili.app.viewunite.common.SerialSeason.toObject(i.serialSeason,n),n.oneofs&&(o.data="serialSeason")),i.relates!=null&&i.hasOwnProperty("relates")&&(o.relates=u.bilibili.app.viewunite.common.Relates.toObject(i.relates,n),n.oneofs&&(o.data="relates")),i.banner!=null&&i.hasOwnProperty("banner")&&(o.banner=u.bilibili.app.viewunite.common.Banner.toObject(i.banner,n),n.oneofs&&(o.data="banner")),i.audio!=null&&i.hasOwnProperty("audio")&&(o.audio=u.bilibili.app.viewunite.common.Audio.toObject(i.audio,n),n.oneofs&&(o.data="audio")),i.likeComment!=null&&i.hasOwnProperty("likeComment")&&(o.likeComment=u.bilibili.app.viewunite.common.LikeComment.toObject(i.likeComment,n),n.oneofs&&(o.data="likeComment")),i.attentionRecommend!=null&&i.hasOwnProperty("attentionRecommend")&&(o.attentionRecommend=u.bilibili.app.viewunite.common.AttentionRecommend.toObject(i.attentionRecommend,n),n.oneofs&&(o.data="attentionRecommend")),i.covenanter!=null&&i.hasOwnProperty("covenanter")&&(o.covenanter=u.bilibili.app.viewunite.common.Covenanter.toObject(i.covenanter,n),n.oneofs&&(o.data="covenanter")),i.specialTag!=null&&i.hasOwnProperty("specialTag")&&(o.specialTag=u.bilibili.app.viewunite.common.SpecialTag.toObject(i.specialTag,n),n.oneofs&&(o.data="specialTag")),i.upDataModule!=null&&i.hasOwnProperty("upDataModule")&&(o.upDataModule=u.bilibili.app.viewunite.common.UpDataModule.toObject(i.upDataModule,n),n.oneofs&&(o.data="upDataModule")),i.professionApproval!=null&&i.hasOwnProperty("professionApproval")&&(o.professionApproval=u.bilibili.app.viewunite.common.ProfessionApproval.toObject(i.professionApproval,n),n.oneofs&&(o.data="professionApproval")),i.pugvShoppingNotice!=null&&i.hasOwnProperty("pugvShoppingNotice")&&(o.pugvShoppingNotice=u.bilibili.app.viewunite.common.PugvShoppingNotice.toObject(i.pugvShoppingNotice,n),n.oneofs&&(o.data="pugvShoppingNotice")),i.pugvFaq!=null&&i.hasOwnProperty("pugvFaq")&&(o.pugvFaq=u.bilibili.app.viewunite.common.PugvFaq.toObject(i.pugvFaq,n),n.oneofs&&(o.data="pugvFaq")),i.pugvSeasonDescription!=null&&i.hasOwnProperty("pugvSeasonDescription")&&(o.pugvSeasonDescription=u.bilibili.app.viewunite.common.PugvSeasonDescription.toObject(i.pugvSeasonDescription,n),n.oneofs&&(o.data="pugvSeasonDescription")),i.pugvSeasonRecommend!=null&&i.hasOwnProperty("pugvSeasonRecommend")&&(o.pugvSeasonRecommend=u.bilibili.app.viewunite.common.PugvSeasonRecommend.toObject(i.pugvSeasonRecommend,n),n.oneofs&&(o.data="pugvSeasonRecommend")),i.pugvSeasonPublisher!=null&&i.hasOwnProperty("pugvSeasonPublisher")&&(o.pugvSeasonPublisher=u.bilibili.app.viewunite.common.PugvSeasonPublisher.toObject(i.pugvSeasonPublisher,n),n.oneofs&&(o.data="pugvSeasonPublisher")),i.pugvSeasonSelection!=null&&i.hasOwnProperty("pugvSeasonSelection")&&(o.pugvSeasonSelection=u.bilibili.app.viewunite.common.PugvSeasonSelection.toObject(i.pugvSeasonSelection,n),n.oneofs&&(o.data="pugvSeasonSelection")),i.pugvSeasonPrimaryInfo!=null&&i.hasOwnProperty("pugvSeasonPrimaryInfo")&&(o.pugvSeasonPrimaryInfo=u.bilibili.app.viewunite.common.PugvSeasonPrimaryInfo.toObject(i.pugvSeasonPrimaryInfo,n),n.oneofs&&(o.data="pugvSeasonPrimaryInfo")),i.pugvCooperationApplication!=null&&i.hasOwnProperty("pugvCooperationApplication")&&(o.pugvCooperationApplication=u.bilibili.app.viewunite.common.PugvCooperationApplication.toObject(i.pugvCooperationApplication,n),n.oneofs&&(o.data="pugvCooperationApplication")),i.upVideoTool!=null&&i.hasOwnProperty("upVideoTool")&&(o.upVideoTool=u.bilibili.app.viewunite.common.UpVideoTool.toObject(i.upVideoTool,n),n.oneofs&&(o.data="upVideoTool")),i.pugvZone!=null&&i.hasOwnProperty("pugvZone")&&(o.pugvZone=u.bilibili.app.viewunite.common.PugvZone.toObject(i.pugvZone,n),n.oneofs&&(o.data="pugvZone")),i.pugvSeries!=null&&i.hasOwnProperty("pugvSeries")&&(o.pugvSeries=u.bilibili.app.viewunite.common.PugvSeries.toObject(i.pugvSeries,n),n.oneofs&&(o.data="pugvSeries")),i.pugvPackage!=null&&i.hasOwnProperty("pugvPackage")&&(o.pugvPackage=u.bilibili.app.viewunite.common.PugvPackage.toObject(i.pugvPackage,n),n.oneofs&&(o.data="pugvPackage")),o},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.app.viewunite.common.Module"},e}(),c.UpVideoTool=function(){function e(l){if(this.tools=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.tools&&o.tools.length||(o.tools=[]),o.tools.push(u.bilibili.app.viewunite.common.UpTool.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.UpVideoTool)return t;let i=new u.bilibili.app.viewunite.common.UpVideoTool;if(t.title!=null&&(i.title=String(t.title)),t.tools){if(!Array.isArray(t.tools))throw TypeError(".bilibili.app.viewunite.common.UpVideoTool.tools: array expected");i.tools=[];for(let n=0;n>>3){case 1:{o.type=t.int32();break}case 2:{o.text=t.string();break}case 3:{o.icon=t.string();break}case 4:{o.url=t.string();break}case 5:{o.badge=u.bilibili.app.viewunite.common.BadgeInfo.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.UpTool)return t;let i=new u.bilibili.app.viewunite.common.UpTool;switch(t.type){default:if(typeof t.type=="number"){i.type=t.type;break}break;case"INTERACTIVE_DANMAKU":case 0:i.type=0;break;case"INTERACTIVE_SETTINGS":case 1:i.type=1;break;case"TAKE_OFF":case 2:i.type=2;break;case"UNIVERSAL":case 3:i.type=3;break}if(t.text!=null&&(i.text=String(t.text)),t.icon!=null&&(i.icon=String(t.icon)),t.url!=null&&(i.url=String(t.url)),t.badge!=null){if(typeof t.badge!="object")throw TypeError(".bilibili.app.viewunite.common.UpTool.badge: object expected");i.badge=u.bilibili.app.viewunite.common.BadgeInfo.fromObject(t.badge)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.type=i.enums===String?"INTERACTIVE_DANMAKU":0,n.text="",n.icon="",n.url="",n.badge=null),t.type!=null&&t.hasOwnProperty("type")&&(n.type=i.enums===String?u.bilibili.app.viewunite.common.ToolType[t.type]===void 0?t.type:u.bilibili.app.viewunite.common.ToolType[t.type]:t.type),t.text!=null&&t.hasOwnProperty("text")&&(n.text=t.text),t.icon!=null&&t.hasOwnProperty("icon")&&(n.icon=t.icon),t.url!=null&&t.hasOwnProperty("url")&&(n.url=t.url),t.badge!=null&&t.hasOwnProperty("badge")&&(n.badge=u.bilibili.app.viewunite.common.BadgeInfo.toObject(t.badge,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.UpTool"},e}(),c.ToolType=function(){let e={},l=Object.create(e);return l[e[0]="INTERACTIVE_DANMAKU"]=0,l[e[1]="INTERACTIVE_SETTINGS"]=1,l[e[2]="TAKE_OFF"]=2,l[e[3]="UNIVERSAL"]=3,l}(),c.UpDataModule=function(){function e(l){if(this.extTabs=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.extTabs&&o.extTabs.length||(o.extTabs=[]),o.extTabs.push(u.bilibili.app.viewunite.common.ExtTab.decode(t,t.uint32()));break}case 2:{o.idx=t.int32();break}case 3:{o.protocolUrl=t.string();break}case 4:{o.height=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.UpDataModule)return t;let i=new u.bilibili.app.viewunite.common.UpDataModule;if(t.extTabs){if(!Array.isArray(t.extTabs))throw TypeError(".bilibili.app.viewunite.common.UpDataModule.extTabs: array expected");i.extTabs=[];for(let n=0;n>>3){case 1:{o.extType=t.int32();break}case 2:{o.data=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.ExtTab)return t;let i=new u.bilibili.app.viewunite.common.ExtTab;switch(t.extType){default:if(typeof t.extType=="number"){i.extType=t.extType;break}break;case"ExtNone":case 0:i.extType=0;break;case"ExtDataCenter":case 1:i.extType=1;break;case"ExtDataEarnings":case 2:i.extType=2;break}return t.data!=null&&(i.data=String(t.data)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.extType=i.enums===String?"ExtNone":0,n.data=""),t.extType!=null&&t.hasOwnProperty("extType")&&(n.extType=i.enums===String?u.bilibili.app.viewunite.common.ExtType[t.extType]===void 0?t.extType:u.bilibili.app.viewunite.common.ExtType[t.extType]:t.extType),t.data!=null&&t.hasOwnProperty("data")&&(n.data=t.data),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.ExtTab"},e}(),c.ExtType=function(){let e={},l=Object.create(e);return l[e[0]="ExtNone"]=0,l[e[1]="ExtDataCenter"]=1,l[e[2]="ExtDataEarnings"]=2,l}(),c.SpecialTag=function(){function e(l){if(this.specialCell=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.specialCell&&o.specialCell.length||(o.specialCell=[]),o.specialCell.push(u.bilibili.app.viewunite.common.SpecialCell.decode(t,t.uint32()));break}case 2:{o.refresh=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.SpecialTag)return t;let i=new u.bilibili.app.viewunite.common.SpecialTag;if(t.specialCell){if(!Array.isArray(t.specialCell))throw TypeError(".bilibili.app.viewunite.common.SpecialTag.specialCell: array expected");i.specialCell=[];for(let n=0;n>>3){default:t.skipType(a&7);break}}return o},e.fromObject=function(t){return t instanceof u.bilibili.app.viewunite.common.AttentionRecommend?t:new u.bilibili.app.viewunite.common.AttentionRecommend},e.toObject=function(){return{}},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.AttentionRecommend"},e}(),c.Covenanter=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.isFollowDisplay=t.int32();break}case 2:{o.text=u.bilibili.app.viewunite.common.ContractText.decode(t,t.uint32());break}case 3:{o.isInteractDisplay=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.Covenanter)return t;let i=new u.bilibili.app.viewunite.common.Covenanter;if(t.isFollowDisplay!=null&&(i.isFollowDisplay=t.isFollowDisplay|0),t.text!=null){if(typeof t.text!="object")throw TypeError(".bilibili.app.viewunite.common.Covenanter.text: object expected");i.text=u.bilibili.app.viewunite.common.ContractText.fromObject(t.text)}return t.isInteractDisplay!=null&&(i.isInteractDisplay=t.isInteractDisplay|0),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.isFollowDisplay=0,n.text=null,n.isInteractDisplay=0),t.isFollowDisplay!=null&&t.hasOwnProperty("isFollowDisplay")&&(n.isFollowDisplay=t.isFollowDisplay),t.text!=null&&t.hasOwnProperty("text")&&(n.text=u.bilibili.app.viewunite.common.ContractText.toObject(t.text,i)),t.isInteractDisplay!=null&&t.hasOwnProperty("isInteractDisplay")&&(n.isInteractDisplay=t.isInteractDisplay),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.Covenanter"},e}(),c.ContractText=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.subtitle=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.ContractText)return t;let i=new u.bilibili.app.viewunite.common.ContractText;return t.title!=null&&(i.title=String(t.title)),t.subtitle!=null&&(i.subtitle=String(t.subtitle)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.title="",n.subtitle=""),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.subtitle!=null&&t.hasOwnProperty("subtitle")&&(n.subtitle=t.subtitle),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.ContractText"},e}(),c.Audio=function(){function e(l){if(this.audioInfo={},l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.audioInfo===r.emptyObject&&(o.audioInfo={});let v=t.uint32()+t.pos;for(a=0,y=null;t.pos>>3){case 1:a=t.int64();break;case 2:y=u.bilibili.app.viewunite.common.AudioInfo.decode(t,t.uint32());break;default:t.skipType(g&7);break}}o.audioInfo[typeof a=="object"?r.longToHash(a):a]=y;break}default:t.skipType(s&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.Audio)return t;let i=new u.bilibili.app.viewunite.common.Audio;if(t.audioInfo){if(typeof t.audioInfo!="object")throw TypeError(".bilibili.app.viewunite.common.Audio.audioInfo: object expected");i.audioInfo={};for(let n=Object.keys(t.audioInfo),o=0;o>>3){case 1:{o.title=t.string();break}case 2:{o.coverUrl=t.string();break}case 3:{o.songId=t.int64();break}case 4:{o.playCount=t.int64();break}case 5:{o.replyCount=t.int64();break}case 6:{o.upperId=t.int64();break}case 7:{o.entrance=t.string();break}case 8:{o.songAttr=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.AudioInfo)return t;let i=new u.bilibili.app.viewunite.common.AudioInfo;return t.title!=null&&(i.title=String(t.title)),t.coverUrl!=null&&(i.coverUrl=String(t.coverUrl)),t.songId!=null&&(r.Long?(i.songId=r.Long.fromValue(t.songId)).unsigned=!1:typeof t.songId=="string"?i.songId=parseInt(t.songId,10):typeof t.songId=="number"?i.songId=t.songId:typeof t.songId=="object"&&(i.songId=new r.LongBits(t.songId.low>>>0,t.songId.high>>>0).toNumber())),t.playCount!=null&&(r.Long?(i.playCount=r.Long.fromValue(t.playCount)).unsigned=!1:typeof t.playCount=="string"?i.playCount=parseInt(t.playCount,10):typeof t.playCount=="number"?i.playCount=t.playCount:typeof t.playCount=="object"&&(i.playCount=new r.LongBits(t.playCount.low>>>0,t.playCount.high>>>0).toNumber())),t.replyCount!=null&&(r.Long?(i.replyCount=r.Long.fromValue(t.replyCount)).unsigned=!1:typeof t.replyCount=="string"?i.replyCount=parseInt(t.replyCount,10):typeof t.replyCount=="number"?i.replyCount=t.replyCount:typeof t.replyCount=="object"&&(i.replyCount=new r.LongBits(t.replyCount.low>>>0,t.replyCount.high>>>0).toNumber())),t.upperId!=null&&(r.Long?(i.upperId=r.Long.fromValue(t.upperId)).unsigned=!1:typeof t.upperId=="string"?i.upperId=parseInt(t.upperId,10):typeof t.upperId=="number"?i.upperId=t.upperId:typeof t.upperId=="object"&&(i.upperId=new r.LongBits(t.upperId.low>>>0,t.upperId.high>>>0).toNumber())),t.entrance!=null&&(i.entrance=String(t.entrance)),t.songAttr!=null&&(r.Long?(i.songAttr=r.Long.fromValue(t.songAttr)).unsigned=!1:typeof t.songAttr=="string"?i.songAttr=parseInt(t.songAttr,10):typeof t.songAttr=="number"?i.songAttr=t.songAttr:typeof t.songAttr=="object"&&(i.songAttr=new r.LongBits(t.songAttr.low>>>0,t.songAttr.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.title="",n.coverUrl="",r.Long){let o=new r.Long(0,0,!1);n.songId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.songId=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.playCount=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.playCount=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.replyCount=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.replyCount=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.upperId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.upperId=i.longs===String?"0":0;if(n.entrance="",r.Long){let o=new r.Long(0,0,!1);n.songAttr=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.songAttr=i.longs===String?"0":0}return t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.coverUrl!=null&&t.hasOwnProperty("coverUrl")&&(n.coverUrl=t.coverUrl),t.songId!=null&&t.hasOwnProperty("songId")&&(typeof t.songId=="number"?n.songId=i.longs===String?String(t.songId):t.songId:n.songId=i.longs===String?r.Long.prototype.toString.call(t.songId):i.longs===Number?new r.LongBits(t.songId.low>>>0,t.songId.high>>>0).toNumber():t.songId),t.playCount!=null&&t.hasOwnProperty("playCount")&&(typeof t.playCount=="number"?n.playCount=i.longs===String?String(t.playCount):t.playCount:n.playCount=i.longs===String?r.Long.prototype.toString.call(t.playCount):i.longs===Number?new r.LongBits(t.playCount.low>>>0,t.playCount.high>>>0).toNumber():t.playCount),t.replyCount!=null&&t.hasOwnProperty("replyCount")&&(typeof t.replyCount=="number"?n.replyCount=i.longs===String?String(t.replyCount):t.replyCount:n.replyCount=i.longs===String?r.Long.prototype.toString.call(t.replyCount):i.longs===Number?new r.LongBits(t.replyCount.low>>>0,t.replyCount.high>>>0).toNumber():t.replyCount),t.upperId!=null&&t.hasOwnProperty("upperId")&&(typeof t.upperId=="number"?n.upperId=i.longs===String?String(t.upperId):t.upperId:n.upperId=i.longs===String?r.Long.prototype.toString.call(t.upperId):i.longs===Number?new r.LongBits(t.upperId.low>>>0,t.upperId.high>>>0).toNumber():t.upperId),t.entrance!=null&&t.hasOwnProperty("entrance")&&(n.entrance=t.entrance),t.songAttr!=null&&t.hasOwnProperty("songAttr")&&(typeof t.songAttr=="number"?n.songAttr=i.longs===String?String(t.songAttr):t.songAttr:n.songAttr=i.longs===String?r.Long.prototype.toString.call(t.songAttr):i.longs===Number?new r.LongBits(t.songAttr.low>>>0,t.songAttr.high>>>0).toNumber():t.songAttr),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.AudioInfo"},e}(),c.Banner=function(){function e(l){if(this.relateItem=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.relateItem&&o.relateItem.length||(o.relateItem=[]),o.relateItem.push(u.bilibili.app.viewunite.common.RelateItem.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.Banner)return t;let i=new u.bilibili.app.viewunite.common.Banner;if(t.title!=null&&(i.title=String(t.title)),t.relateItem){if(!Array.isArray(t.relateItem))throw TypeError(".bilibili.app.viewunite.common.Banner.relateItem: array expected");i.relateItem=[];for(let n=0;n>>3){case 1:{o.url=t.string();break}case 2:{o.cover=t.string();break}case 3:{o.jumpType=t.int32();break}case 4:{o.report===r.emptyObject&&(o.report={});let v=t.uint32()+t.pos;for(a="",y="";t.pos>>3){case 1:a=t.string();break;case 2:y=t.string();break;default:t.skipType(g&7);break}}o.report[a]=y;break}default:t.skipType(s&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.ActBannerItem)return t;let i=new u.bilibili.app.viewunite.common.ActBannerItem;switch(t.url!=null&&(i.url=String(t.url)),t.cover!=null&&(i.cover=String(t.cover)),t.jumpType){default:if(typeof t.jumpType=="number"){i.jumpType=t.jumpType;break}break;case"JUMP_TYPE_UNKNOWN":case 0:i.jumpType=0;break;case"OPEN_URL":case 1:i.jumpType=1;break;case"REFRESH":case 2:i.jumpType=2;break;case"HALF_SCREEN":case 3:i.jumpType=3;break;case"OPEN_URL_BY_OUTER_BROWSER":case 4:i.jumpType=4;break}if(t.report){if(typeof t.report!="object")throw TypeError(".bilibili.app.viewunite.common.ActBannerItem.report: object expected");i.report={};for(let n=Object.keys(t.report),o=0;o>>3){case 1:{o.url=t.string();break}case 2:{o.cover=t.string();break}case 3:{o.useDefaultBrowser=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.RelateItem)return t;let i=new u.bilibili.app.viewunite.common.RelateItem;return t.url!=null&&(i.url=String(t.url)),t.cover!=null&&(i.cover=String(t.cover)),t.useDefaultBrowser!=null&&(i.useDefaultBrowser=!!t.useDefaultBrowser),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.url="",n.cover="",n.useDefaultBrowser=!1),t.url!=null&&t.hasOwnProperty("url")&&(n.url=t.url),t.cover!=null&&t.hasOwnProperty("cover")&&(n.cover=t.cover),t.useDefaultBrowser!=null&&t.hasOwnProperty("useDefaultBrowser")&&(n.useDefaultBrowser=t.useDefaultBrowser),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.RelateItem"},e}(),c.ActivityEntranceModule=function(){function e(l){if(this.activityEntrance=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.activityEntrance&&o.activityEntrance.length||(o.activityEntrance=[]),o.activityEntrance.push(u.bilibili.app.viewunite.common.ActivityEntrance.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.ActivityEntranceModule)return t;let i=new u.bilibili.app.viewunite.common.ActivityEntranceModule;if(t.activityEntrance){if(!Array.isArray(t.activityEntrance))throw TypeError(".bilibili.app.viewunite.common.ActivityEntranceModule.activityEntrance: array expected");i.activityEntrance=[];for(let n=0;n>>3){case 1:{o.activityCover=t.string();break}case 2:{o.activityTitle=t.string();break}case 3:{o.wordTag=t.string();break}case 4:{o.activitySubtitle=t.string();break}case 5:{o.activityLink=t.string();break}case 6:{o.activityType=t.int32();break}case 7:{o.reserveId=t.int32();break}case 8:{o.status=t.int32();break}case 9:{o.upperList&&o.upperList.length||(o.upperList=[]),o.upperList.push(u.bilibili.app.viewunite.common.User.decode(t,t.uint32()));break}case 10:{o.report===r.emptyObject&&(o.report={});let v=t.uint32()+t.pos;for(a="",y="";t.pos>>3){case 1:a=t.string();break;case 2:y=t.string();break;default:t.skipType(g&7);break}}o.report[a]=y;break}default:t.skipType(s&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.ActivityEntrance)return t;let i=new u.bilibili.app.viewunite.common.ActivityEntrance;if(t.activityCover!=null&&(i.activityCover=String(t.activityCover)),t.activityTitle!=null&&(i.activityTitle=String(t.activityTitle)),t.wordTag!=null&&(i.wordTag=String(t.wordTag)),t.activitySubtitle!=null&&(i.activitySubtitle=String(t.activitySubtitle)),t.activityLink!=null&&(i.activityLink=String(t.activityLink)),t.activityType!=null&&(i.activityType=t.activityType|0),t.reserveId!=null&&(i.reserveId=t.reserveId|0),t.status!=null&&(i.status=t.status|0),t.upperList){if(!Array.isArray(t.upperList))throw TypeError(".bilibili.app.viewunite.common.ActivityEntrance.upperList: array expected");i.upperList=[];for(let n=0;n>>3){case 1:{o.total=t.int64();break}case 2:{o.week=t.int64();break}case 3:{o.rankList&&o.rankList.length||(o.rankList=[]),o.rankList.push(u.bilibili.app.viewunite.common.SponsorRank.decode(t,t.uint32()));break}case 4:{o.mine=u.bilibili.app.viewunite.common.Mine.decode(t,t.uint32());break}case 5:{o.pointActivity=u.bilibili.app.viewunite.common.PointActivity.decode(t,t.uint32());break}case 6:{o.pendants&&o.pendants.length||(o.pendants=[]),o.pendants.push(u.bilibili.app.viewunite.common.Pendant.decode(t,t.uint32()));break}case 7:{o.threshold&&o.threshold.length||(o.threshold=[]),o.threshold.push(u.bilibili.app.viewunite.common.Threshold.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.Sponsor)return t;let i=new u.bilibili.app.viewunite.common.Sponsor;if(t.total!=null&&(r.Long?(i.total=r.Long.fromValue(t.total)).unsigned=!1:typeof t.total=="string"?i.total=parseInt(t.total,10):typeof t.total=="number"?i.total=t.total:typeof t.total=="object"&&(i.total=new r.LongBits(t.total.low>>>0,t.total.high>>>0).toNumber())),t.week!=null&&(r.Long?(i.week=r.Long.fromValue(t.week)).unsigned=!1:typeof t.week=="string"?i.week=parseInt(t.week,10):typeof t.week=="number"?i.week=t.week:typeof t.week=="object"&&(i.week=new r.LongBits(t.week.low>>>0,t.week.high>>>0).toNumber())),t.rankList){if(!Array.isArray(t.rankList))throw TypeError(".bilibili.app.viewunite.common.Sponsor.rankList: array expected");i.rankList=[];for(let n=0;n>>0,t.total.high>>>0).toNumber():t.total),t.week!=null&&t.hasOwnProperty("week")&&(typeof t.week=="number"?n.week=i.longs===String?String(t.week):t.week:n.week=i.longs===String?r.Long.prototype.toString.call(t.week):i.longs===Number?new r.LongBits(t.week.low>>>0,t.week.high>>>0).toNumber():t.week),t.rankList&&t.rankList.length){n.rankList=[];for(let o=0;o>>3){case 1:{o.tip=t.string();break}case 2:{o.content=t.string();break}case 3:{o.link=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.PointActivity)return t;let i=new u.bilibili.app.viewunite.common.PointActivity;return t.tip!=null&&(i.tip=String(t.tip)),t.content!=null&&(i.content=String(t.content)),t.link!=null&&(i.link=String(t.link)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.tip="",n.content="",n.link=""),t.tip!=null&&t.hasOwnProperty("tip")&&(n.tip=t.tip),t.content!=null&&t.hasOwnProperty("content")&&(n.content=t.content),t.link!=null&&t.hasOwnProperty("link")&&(n.link=t.link),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.PointActivity"},e}(),c.SponsorRank=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.uid=t.int64();break}case 2:{o.msg=t.string();break}case 3:{o.uname=t.string();break}case 4:{o.face=t.string();break}case 5:{o.vip=u.bilibili.app.viewunite.common.Vip.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.SponsorRank)return t;let i=new u.bilibili.app.viewunite.common.SponsorRank;if(t.uid!=null&&(r.Long?(i.uid=r.Long.fromValue(t.uid)).unsigned=!1:typeof t.uid=="string"?i.uid=parseInt(t.uid,10):typeof t.uid=="number"?i.uid=t.uid:typeof t.uid=="object"&&(i.uid=new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber())),t.msg!=null&&(i.msg=String(t.msg)),t.uname!=null&&(i.uname=String(t.uname)),t.face!=null&&(i.face=String(t.face)),t.vip!=null){if(typeof t.vip!="object")throw TypeError(".bilibili.app.viewunite.common.SponsorRank.vip: object expected");i.vip=u.bilibili.app.viewunite.common.Vip.fromObject(t.vip)}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.uid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.uid=i.longs===String?"0":0;n.msg="",n.uname="",n.face="",n.vip=null}return t.uid!=null&&t.hasOwnProperty("uid")&&(typeof t.uid=="number"?n.uid=i.longs===String?String(t.uid):t.uid:n.uid=i.longs===String?r.Long.prototype.toString.call(t.uid):i.longs===Number?new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber():t.uid),t.msg!=null&&t.hasOwnProperty("msg")&&(n.msg=t.msg),t.uname!=null&&t.hasOwnProperty("uname")&&(n.uname=t.uname),t.face!=null&&t.hasOwnProperty("face")&&(n.face=t.face),t.vip!=null&&t.hasOwnProperty("vip")&&(n.vip=u.bilibili.app.viewunite.common.Vip.toObject(t.vip,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.SponsorRank"},e}(),c.Mine=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.amount=t.double();break}case 2:{o.rank=t.int32();break}case 3:{o.msg=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.Mine)return t;let i=new u.bilibili.app.viewunite.common.Mine;return t.amount!=null&&(i.amount=Number(t.amount)),t.rank!=null&&(i.rank=t.rank|0),t.msg!=null&&(i.msg=String(t.msg)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.amount=0,n.rank=0,n.msg=""),t.amount!=null&&t.hasOwnProperty("amount")&&(n.amount=i.json&&!isFinite(t.amount)?String(t.amount):t.amount),t.rank!=null&&t.hasOwnProperty("rank")&&(n.rank=t.rank),t.msg!=null&&t.hasOwnProperty("msg")&&(n.msg=t.msg),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.Mine"},e}(),c.Relates=function(){function e(l){if(this.cards=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.cards&&o.cards.length||(o.cards=[]),o.cards.push(u.bilibili.app.viewunite.common.RelateCard.decode(t,t.uint32()));break}case 2:{o.config=u.bilibili.app.viewunite.common.RelateConfig.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.Relates)return t;let i=new u.bilibili.app.viewunite.common.Relates;if(t.cards){if(!Array.isArray(t.cards))throw TypeError(".bilibili.app.viewunite.common.Relates.cards: array expected");i.cards=[];for(let n=0;n>>3){case 1:{o.validShowM=t.int64();break}case 2:{o.validShowN=t.int64();break}case 3:{o.pagination=u.bilibili.pagination.Pagination.decode(t,t.uint32());break}case 4:{o.canLoadMore=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.RelateConfig)return t;let i=new u.bilibili.app.viewunite.common.RelateConfig;if(t.validShowM!=null&&(r.Long?(i.validShowM=r.Long.fromValue(t.validShowM)).unsigned=!1:typeof t.validShowM=="string"?i.validShowM=parseInt(t.validShowM,10):typeof t.validShowM=="number"?i.validShowM=t.validShowM:typeof t.validShowM=="object"&&(i.validShowM=new r.LongBits(t.validShowM.low>>>0,t.validShowM.high>>>0).toNumber())),t.validShowN!=null&&(r.Long?(i.validShowN=r.Long.fromValue(t.validShowN)).unsigned=!1:typeof t.validShowN=="string"?i.validShowN=parseInt(t.validShowN,10):typeof t.validShowN=="number"?i.validShowN=t.validShowN:typeof t.validShowN=="object"&&(i.validShowN=new r.LongBits(t.validShowN.low>>>0,t.validShowN.high>>>0).toNumber())),t.pagination!=null){if(typeof t.pagination!="object")throw TypeError(".bilibili.app.viewunite.common.RelateConfig.pagination: object expected");i.pagination=u.bilibili.pagination.Pagination.fromObject(t.pagination)}return t.canLoadMore!=null&&(i.canLoadMore=!!t.canLoadMore),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.validShowM=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.validShowM=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.validShowN=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.validShowN=i.longs===String?"0":0;n.pagination=null,n.canLoadMore=!1}return t.validShowM!=null&&t.hasOwnProperty("validShowM")&&(typeof t.validShowM=="number"?n.validShowM=i.longs===String?String(t.validShowM):t.validShowM:n.validShowM=i.longs===String?r.Long.prototype.toString.call(t.validShowM):i.longs===Number?new r.LongBits(t.validShowM.low>>>0,t.validShowM.high>>>0).toNumber():t.validShowM),t.validShowN!=null&&t.hasOwnProperty("validShowN")&&(typeof t.validShowN=="number"?n.validShowN=i.longs===String?String(t.validShowN):t.validShowN:n.validShowN=i.longs===String?r.Long.prototype.toString.call(t.validShowN):i.longs===Number?new r.LongBits(t.validShowN.low>>>0,t.validShowN.high>>>0).toNumber():t.validShowN),t.pagination!=null&&t.hasOwnProperty("pagination")&&(n.pagination=u.bilibili.pagination.Pagination.toObject(t.pagination,i)),t.canLoadMore!=null&&t.hasOwnProperty("canLoadMore")&&(n.canLoadMore=t.canLoadMore),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.RelateConfig"},e}(),c.RelateCard=function(){function e(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.relateCardType=i.int32();break}case 2:{a.av=u.bilibili.app.viewunite.common.RelateAVCard.decode(i,i.uint32());break}case 3:{a.bangumi=u.bilibili.app.viewunite.common.RelateBangumiCard.decode(i,i.uint32());break}case 4:{a.resource=u.bilibili.app.viewunite.common.RelateBangumiResourceCard.decode(i,i.uint32());break}case 5:{a.game=u.bilibili.app.viewunite.common.RelateGameCard.decode(i,i.uint32());break}case 6:{a.cm=u.bilibili.app.viewunite.common.RelateCMCard.decode(i,i.uint32());break}case 7:{a.live=u.bilibili.app.viewunite.common.RelateLiveCard.decode(i,i.uint32());break}case 8:{a.bangumiAv=u.bilibili.app.viewunite.common.RelateBangumiAvCard.decode(i,i.uint32());break}case 9:{a.aiCard=u.bilibili.app.viewunite.common.RelatedAICard.decode(i,i.uint32());break}case 13:{a.bangumiUgc=u.bilibili.app.viewunite.common.RelateBangumiUGCCard.decode(i,i.uint32());break}case 14:{a.special=u.bilibili.app.viewunite.common.RelateSpecial.decode(i,i.uint32());break}case 15:{a.course=u.bilibili.app.viewunite.common.RelateCourseCard.decode(i,i.uint32());break}case 10:{a.threePoint=u.bilibili.app.viewunite.common.RelateThreePoint.decode(i,i.uint32());break}case 11:{a.cmStock=u.google.protobuf.Any.decode(i,i.uint32());break}case 12:{a.basicInfo=u.bilibili.app.viewunite.common.CardBasicInfo.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},e.fromObject=function(i){if(i instanceof u.bilibili.app.viewunite.common.RelateCard)return i;let n=new u.bilibili.app.viewunite.common.RelateCard;switch(i.relateCardType){default:if(typeof i.relateCardType=="number"){n.relateCardType=i.relateCardType;break}break;case"CARD_TYPE_UNKNOWN":case 0:n.relateCardType=0;break;case"AV":case 1:n.relateCardType=1;break;case"BANGUMI":case 2:n.relateCardType=2;break;case"RESOURCE":case 3:n.relateCardType=3;break;case"GAME":case 4:n.relateCardType=4;break;case"CM":case 5:n.relateCardType=5;break;case"LIVE":case 6:n.relateCardType=6;break;case"AI_RECOMMEND":case 7:n.relateCardType=7;break;case"BANGUMI_AV":case 8:n.relateCardType=8;break;case"BANGUMI_UGC":case 9:n.relateCardType=9;break;case"SPECIAL":case 10:n.relateCardType=10;break;case"COURSE":case 11:n.relateCardType=11;break}if(i.av!=null){if(typeof i.av!="object")throw TypeError(".bilibili.app.viewunite.common.RelateCard.av: object expected");n.av=u.bilibili.app.viewunite.common.RelateAVCard.fromObject(i.av)}if(i.bangumi!=null){if(typeof i.bangumi!="object")throw TypeError(".bilibili.app.viewunite.common.RelateCard.bangumi: object expected");n.bangumi=u.bilibili.app.viewunite.common.RelateBangumiCard.fromObject(i.bangumi)}if(i.resource!=null){if(typeof i.resource!="object")throw TypeError(".bilibili.app.viewunite.common.RelateCard.resource: object expected");n.resource=u.bilibili.app.viewunite.common.RelateBangumiResourceCard.fromObject(i.resource)}if(i.game!=null){if(typeof i.game!="object")throw TypeError(".bilibili.app.viewunite.common.RelateCard.game: object expected");n.game=u.bilibili.app.viewunite.common.RelateGameCard.fromObject(i.game)}if(i.cm!=null){if(typeof i.cm!="object")throw TypeError(".bilibili.app.viewunite.common.RelateCard.cm: object expected");n.cm=u.bilibili.app.viewunite.common.RelateCMCard.fromObject(i.cm)}if(i.live!=null){if(typeof i.live!="object")throw TypeError(".bilibili.app.viewunite.common.RelateCard.live: object expected");n.live=u.bilibili.app.viewunite.common.RelateLiveCard.fromObject(i.live)}if(i.bangumiAv!=null){if(typeof i.bangumiAv!="object")throw TypeError(".bilibili.app.viewunite.common.RelateCard.bangumiAv: object expected");n.bangumiAv=u.bilibili.app.viewunite.common.RelateBangumiAvCard.fromObject(i.bangumiAv)}if(i.aiCard!=null){if(typeof i.aiCard!="object")throw TypeError(".bilibili.app.viewunite.common.RelateCard.aiCard: object expected");n.aiCard=u.bilibili.app.viewunite.common.RelatedAICard.fromObject(i.aiCard)}if(i.bangumiUgc!=null){if(typeof i.bangumiUgc!="object")throw TypeError(".bilibili.app.viewunite.common.RelateCard.bangumiUgc: object expected");n.bangumiUgc=u.bilibili.app.viewunite.common.RelateBangumiUGCCard.fromObject(i.bangumiUgc)}if(i.special!=null){if(typeof i.special!="object")throw TypeError(".bilibili.app.viewunite.common.RelateCard.special: object expected");n.special=u.bilibili.app.viewunite.common.RelateSpecial.fromObject(i.special)}if(i.course!=null){if(typeof i.course!="object")throw TypeError(".bilibili.app.viewunite.common.RelateCard.course: object expected");n.course=u.bilibili.app.viewunite.common.RelateCourseCard.fromObject(i.course)}if(i.threePoint!=null){if(typeof i.threePoint!="object")throw TypeError(".bilibili.app.viewunite.common.RelateCard.threePoint: object expected");n.threePoint=u.bilibili.app.viewunite.common.RelateThreePoint.fromObject(i.threePoint)}if(i.cmStock!=null){if(typeof i.cmStock!="object")throw TypeError(".bilibili.app.viewunite.common.RelateCard.cmStock: object expected");n.cmStock=u.google.protobuf.Any.fromObject(i.cmStock)}if(i.basicInfo!=null){if(typeof i.basicInfo!="object")throw TypeError(".bilibili.app.viewunite.common.RelateCard.basicInfo: object expected");n.basicInfo=u.bilibili.app.viewunite.common.CardBasicInfo.fromObject(i.basicInfo)}return n},e.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.relateCardType=n.enums===String?"CARD_TYPE_UNKNOWN":0,o.threePoint=null,o.cmStock=null,o.basicInfo=null),i.relateCardType!=null&&i.hasOwnProperty("relateCardType")&&(o.relateCardType=n.enums===String?u.bilibili.app.viewunite.common.RelateCardType[i.relateCardType]===void 0?i.relateCardType:u.bilibili.app.viewunite.common.RelateCardType[i.relateCardType]:i.relateCardType),i.av!=null&&i.hasOwnProperty("av")&&(o.av=u.bilibili.app.viewunite.common.RelateAVCard.toObject(i.av,n),n.oneofs&&(o.Card="av")),i.bangumi!=null&&i.hasOwnProperty("bangumi")&&(o.bangumi=u.bilibili.app.viewunite.common.RelateBangumiCard.toObject(i.bangumi,n),n.oneofs&&(o.Card="bangumi")),i.resource!=null&&i.hasOwnProperty("resource")&&(o.resource=u.bilibili.app.viewunite.common.RelateBangumiResourceCard.toObject(i.resource,n),n.oneofs&&(o.Card="resource")),i.game!=null&&i.hasOwnProperty("game")&&(o.game=u.bilibili.app.viewunite.common.RelateGameCard.toObject(i.game,n),n.oneofs&&(o.Card="game")),i.cm!=null&&i.hasOwnProperty("cm")&&(o.cm=u.bilibili.app.viewunite.common.RelateCMCard.toObject(i.cm,n),n.oneofs&&(o.Card="cm")),i.live!=null&&i.hasOwnProperty("live")&&(o.live=u.bilibili.app.viewunite.common.RelateLiveCard.toObject(i.live,n),n.oneofs&&(o.Card="live")),i.bangumiAv!=null&&i.hasOwnProperty("bangumiAv")&&(o.bangumiAv=u.bilibili.app.viewunite.common.RelateBangumiAvCard.toObject(i.bangumiAv,n),n.oneofs&&(o.Card="bangumiAv")),i.aiCard!=null&&i.hasOwnProperty("aiCard")&&(o.aiCard=u.bilibili.app.viewunite.common.RelatedAICard.toObject(i.aiCard,n),n.oneofs&&(o.Card="aiCard")),i.threePoint!=null&&i.hasOwnProperty("threePoint")&&(o.threePoint=u.bilibili.app.viewunite.common.RelateThreePoint.toObject(i.threePoint,n)),i.cmStock!=null&&i.hasOwnProperty("cmStock")&&(o.cmStock=u.google.protobuf.Any.toObject(i.cmStock,n)),i.basicInfo!=null&&i.hasOwnProperty("basicInfo")&&(o.basicInfo=u.bilibili.app.viewunite.common.CardBasicInfo.toObject(i.basicInfo,n)),i.bangumiUgc!=null&&i.hasOwnProperty("bangumiUgc")&&(o.bangumiUgc=u.bilibili.app.viewunite.common.RelateBangumiUGCCard.toObject(i.bangumiUgc,n),n.oneofs&&(o.Card="bangumiUgc")),i.special!=null&&i.hasOwnProperty("special")&&(o.special=u.bilibili.app.viewunite.common.RelateSpecial.toObject(i.special,n),n.oneofs&&(o.Card="special")),i.course!=null&&i.hasOwnProperty("course")&&(o.course=u.bilibili.app.viewunite.common.RelateCourseCard.toObject(i.course,n),n.oneofs&&(o.Card="course")),o},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.app.viewunite.common.RelateCard"},e}(),c.RelateSpecial=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.badge=u.bilibili.app.viewunite.common.BadgeInfo.decode(t,t.uint32());break}case 2:{o.rcmdReason=u.bilibili.app.viewunite.common.BadgeInfo.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.RelateSpecial)return t;let i=new u.bilibili.app.viewunite.common.RelateSpecial;if(t.badge!=null){if(typeof t.badge!="object")throw TypeError(".bilibili.app.viewunite.common.RelateSpecial.badge: object expected");i.badge=u.bilibili.app.viewunite.common.BadgeInfo.fromObject(t.badge)}if(t.rcmdReason!=null){if(typeof t.rcmdReason!="object")throw TypeError(".bilibili.app.viewunite.common.RelateSpecial.rcmdReason: object expected");i.rcmdReason=u.bilibili.app.viewunite.common.BadgeInfo.fromObject(t.rcmdReason)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.badge=null,n.rcmdReason=null),t.badge!=null&&t.hasOwnProperty("badge")&&(n.badge=u.bilibili.app.viewunite.common.BadgeInfo.toObject(t.badge,i)),t.rcmdReason!=null&&t.hasOwnProperty("rcmdReason")&&(n.rcmdReason=u.bilibili.app.viewunite.common.BadgeInfo.toObject(t.rcmdReason,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.RelateSpecial"},e}(),c.RelatedAICard=function(){function e(l){if(this.report={},l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.aid=t.int64();break}case 2:{o.duration=t.int64();break}case 3:{o.upInfo=u.bilibili.app.viewunite.common.Staff.decode(t,t.uint32());break}case 4:{o.stat=u.bilibili.app.viewunite.common.Stat.decode(t,t.uint32());break}case 5:{o.report===r.emptyObject&&(o.report={});let v=t.uint32()+t.pos;for(a="",y="";t.pos>>3){case 1:a=t.string();break;case 2:y=t.string();break;default:t.skipType(g&7);break}}o.report[a]=y;break}case 6:{o.gotoType=t.string();break}default:t.skipType(s&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.RelatedAICard)return t;let i=new u.bilibili.app.viewunite.common.RelatedAICard;if(t.aid!=null&&(r.Long?(i.aid=r.Long.fromValue(t.aid)).unsigned=!1:typeof t.aid=="string"?i.aid=parseInt(t.aid,10):typeof t.aid=="number"?i.aid=t.aid:typeof t.aid=="object"&&(i.aid=new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber())),t.duration!=null&&(r.Long?(i.duration=r.Long.fromValue(t.duration)).unsigned=!1:typeof t.duration=="string"?i.duration=parseInt(t.duration,10):typeof t.duration=="number"?i.duration=t.duration:typeof t.duration=="object"&&(i.duration=new r.LongBits(t.duration.low>>>0,t.duration.high>>>0).toNumber())),t.upInfo!=null){if(typeof t.upInfo!="object")throw TypeError(".bilibili.app.viewunite.common.RelatedAICard.upInfo: object expected");i.upInfo=u.bilibili.app.viewunite.common.Staff.fromObject(t.upInfo)}if(t.stat!=null){if(typeof t.stat!="object")throw TypeError(".bilibili.app.viewunite.common.RelatedAICard.stat: object expected");i.stat=u.bilibili.app.viewunite.common.Stat.fromObject(t.stat)}if(t.report){if(typeof t.report!="object")throw TypeError(".bilibili.app.viewunite.common.RelatedAICard.report: object expected");i.report={};for(let n=Object.keys(t.report),o=0;o>>0,t.aid.high>>>0).toNumber():t.aid),t.duration!=null&&t.hasOwnProperty("duration")&&(typeof t.duration=="number"?n.duration=i.longs===String?String(t.duration):t.duration:n.duration=i.longs===String?r.Long.prototype.toString.call(t.duration):i.longs===Number?new r.LongBits(t.duration.low>>>0,t.duration.high>>>0).toNumber():t.duration),t.upInfo!=null&&t.hasOwnProperty("upInfo")&&(n.upInfo=u.bilibili.app.viewunite.common.Staff.toObject(t.upInfo,i)),t.stat!=null&&t.hasOwnProperty("stat")&&(n.stat=u.bilibili.app.viewunite.common.Stat.toObject(t.stat,i));let o;if(t.report&&(o=Object.keys(t.report)).length){n.report={};for(let a=0;a>>3){case 1:{o.dislike=u.bilibili.app.viewunite.common.RelateDislike.decode(t,t.uint32());break}case 2:{o.feedback=u.bilibili.app.viewunite.common.RelateDislike.decode(t,t.uint32());break}case 3:{o.watchLater=t.bool();break}case 4:{o.dislikeReportData=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.RelateThreePoint)return t;let i=new u.bilibili.app.viewunite.common.RelateThreePoint;if(t.dislike!=null){if(typeof t.dislike!="object")throw TypeError(".bilibili.app.viewunite.common.RelateThreePoint.dislike: object expected");i.dislike=u.bilibili.app.viewunite.common.RelateDislike.fromObject(t.dislike)}if(t.feedback!=null){if(typeof t.feedback!="object")throw TypeError(".bilibili.app.viewunite.common.RelateThreePoint.feedback: object expected");i.feedback=u.bilibili.app.viewunite.common.RelateDislike.fromObject(t.feedback)}return t.watchLater!=null&&(i.watchLater=!!t.watchLater),t.dislikeReportData!=null&&(i.dislikeReportData=String(t.dislikeReportData)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.dislike=null,n.feedback=null,n.watchLater=!1,n.dislikeReportData=""),t.dislike!=null&&t.hasOwnProperty("dislike")&&(n.dislike=u.bilibili.app.viewunite.common.RelateDislike.toObject(t.dislike,i)),t.feedback!=null&&t.hasOwnProperty("feedback")&&(n.feedback=u.bilibili.app.viewunite.common.RelateDislike.toObject(t.feedback,i)),t.watchLater!=null&&t.hasOwnProperty("watchLater")&&(n.watchLater=t.watchLater),t.dislikeReportData!=null&&t.hasOwnProperty("dislikeReportData")&&(n.dislikeReportData=t.dislikeReportData),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.RelateThreePoint"},e}(),c.RelateDislike=function(){function e(l){if(this.dislikeReason=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.subTitle=t.string();break}case 3:{o.closedSubTitle=t.string();break}case 4:{o.pasteText=t.string();break}case 5:{o.closedPasteText=t.string();break}case 6:{o.dislikeReason&&o.dislikeReason.length||(o.dislikeReason=[]),o.dislikeReason.push(u.bilibili.app.viewunite.common.DislikeReasons.decode(t,t.uint32()));break}case 7:{o.toast=t.string();break}case 8:{o.closedToast=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.RelateDislike)return t;let i=new u.bilibili.app.viewunite.common.RelateDislike;if(t.title!=null&&(i.title=String(t.title)),t.subTitle!=null&&(i.subTitle=String(t.subTitle)),t.closedSubTitle!=null&&(i.closedSubTitle=String(t.closedSubTitle)),t.pasteText!=null&&(i.pasteText=String(t.pasteText)),t.closedPasteText!=null&&(i.closedPasteText=String(t.closedPasteText)),t.dislikeReason){if(!Array.isArray(t.dislikeReason))throw TypeError(".bilibili.app.viewunite.common.RelateDislike.dislikeReason: array expected");i.dislikeReason=[];for(let n=0;n>>3){case 1:{o.title=t.string();break}case 2:{o.desc=t.string();break}case 3:{o.cover=t.string();break}case 4:{o.uri=t.string();break}case 5:{o.trackId=t.string();break}case 6:{o.uniqueId=t.string();break}case 7:{o.fromSourceType=t.int64();break}case 8:{o.fromSourceId=t.string();break}case 9:{o.materialId=t.int64();break}case 10:{o.coverGif=t.string();break}case 11:{o.author=u.bilibili.app.viewunite.common.Owner.decode(t,t.uint32());break}case 12:{o.id=t.int64();break}case 13:{o.from=t.string();break}case 14:{o.fromSpmidSuffix=t.string();break}case 15:{o.reportFlowData=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.CardBasicInfo)return t;let i=new u.bilibili.app.viewunite.common.CardBasicInfo;if(t.title!=null&&(i.title=String(t.title)),t.desc!=null&&(i.desc=String(t.desc)),t.cover!=null&&(i.cover=String(t.cover)),t.uri!=null&&(i.uri=String(t.uri)),t.trackId!=null&&(i.trackId=String(t.trackId)),t.uniqueId!=null&&(i.uniqueId=String(t.uniqueId)),t.fromSourceType!=null&&(r.Long?(i.fromSourceType=r.Long.fromValue(t.fromSourceType)).unsigned=!1:typeof t.fromSourceType=="string"?i.fromSourceType=parseInt(t.fromSourceType,10):typeof t.fromSourceType=="number"?i.fromSourceType=t.fromSourceType:typeof t.fromSourceType=="object"&&(i.fromSourceType=new r.LongBits(t.fromSourceType.low>>>0,t.fromSourceType.high>>>0).toNumber())),t.fromSourceId!=null&&(i.fromSourceId=String(t.fromSourceId)),t.materialId!=null&&(r.Long?(i.materialId=r.Long.fromValue(t.materialId)).unsigned=!1:typeof t.materialId=="string"?i.materialId=parseInt(t.materialId,10):typeof t.materialId=="number"?i.materialId=t.materialId:typeof t.materialId=="object"&&(i.materialId=new r.LongBits(t.materialId.low>>>0,t.materialId.high>>>0).toNumber())),t.coverGif!=null&&(i.coverGif=String(t.coverGif)),t.author!=null){if(typeof t.author!="object")throw TypeError(".bilibili.app.viewunite.common.CardBasicInfo.author: object expected");i.author=u.bilibili.app.viewunite.common.Owner.fromObject(t.author)}return t.id!=null&&(r.Long?(i.id=r.Long.fromValue(t.id)).unsigned=!1:typeof t.id=="string"?i.id=parseInt(t.id,10):typeof t.id=="number"?i.id=t.id:typeof t.id=="object"&&(i.id=new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber())),t.from!=null&&(i.from=String(t.from)),t.fromSpmidSuffix!=null&&(i.fromSpmidSuffix=String(t.fromSpmidSuffix)),t.reportFlowData!=null&&(i.reportFlowData=String(t.reportFlowData)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.title="",n.desc="",n.cover="",n.uri="",n.trackId="",n.uniqueId="",r.Long){let o=new r.Long(0,0,!1);n.fromSourceType=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.fromSourceType=i.longs===String?"0":0;if(n.fromSourceId="",r.Long){let o=new r.Long(0,0,!1);n.materialId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.materialId=i.longs===String?"0":0;if(n.coverGif="",n.author=null,r.Long){let o=new r.Long(0,0,!1);n.id=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.id=i.longs===String?"0":0;n.from="",n.fromSpmidSuffix="",n.reportFlowData=""}return t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.desc!=null&&t.hasOwnProperty("desc")&&(n.desc=t.desc),t.cover!=null&&t.hasOwnProperty("cover")&&(n.cover=t.cover),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),t.trackId!=null&&t.hasOwnProperty("trackId")&&(n.trackId=t.trackId),t.uniqueId!=null&&t.hasOwnProperty("uniqueId")&&(n.uniqueId=t.uniqueId),t.fromSourceType!=null&&t.hasOwnProperty("fromSourceType")&&(typeof t.fromSourceType=="number"?n.fromSourceType=i.longs===String?String(t.fromSourceType):t.fromSourceType:n.fromSourceType=i.longs===String?r.Long.prototype.toString.call(t.fromSourceType):i.longs===Number?new r.LongBits(t.fromSourceType.low>>>0,t.fromSourceType.high>>>0).toNumber():t.fromSourceType),t.fromSourceId!=null&&t.hasOwnProperty("fromSourceId")&&(n.fromSourceId=t.fromSourceId),t.materialId!=null&&t.hasOwnProperty("materialId")&&(typeof t.materialId=="number"?n.materialId=i.longs===String?String(t.materialId):t.materialId:n.materialId=i.longs===String?r.Long.prototype.toString.call(t.materialId):i.longs===Number?new r.LongBits(t.materialId.low>>>0,t.materialId.high>>>0).toNumber():t.materialId),t.coverGif!=null&&t.hasOwnProperty("coverGif")&&(n.coverGif=t.coverGif),t.author!=null&&t.hasOwnProperty("author")&&(n.author=u.bilibili.app.viewunite.common.Owner.toObject(t.author,i)),t.id!=null&&t.hasOwnProperty("id")&&(typeof t.id=="number"?n.id=i.longs===String?String(t.id):t.id:n.id=i.longs===String?r.Long.prototype.toString.call(t.id):i.longs===Number?new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber():t.id),t.from!=null&&t.hasOwnProperty("from")&&(n.from=t.from),t.fromSpmidSuffix!=null&&t.hasOwnProperty("fromSpmidSuffix")&&(n.fromSpmidSuffix=t.fromSpmidSuffix),t.reportFlowData!=null&&t.hasOwnProperty("reportFlowData")&&(n.reportFlowData=t.reportFlowData),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.CardBasicInfo"},e}(),c.RelateBangumiAvCard=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.badge=u.bilibili.app.viewunite.common.BadgeInfo.decode(t,t.uint32());break}case 2:{o.stat=u.bilibili.app.viewunite.common.Stat.decode(t,t.uint32());break}case 3:{o.rating=u.bilibili.app.viewunite.common.Rating.decode(t,t.uint32());break}case 4:{o.coverRightText=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.RelateBangumiAvCard)return t;let i=new u.bilibili.app.viewunite.common.RelateBangumiAvCard;if(t.badge!=null){if(typeof t.badge!="object")throw TypeError(".bilibili.app.viewunite.common.RelateBangumiAvCard.badge: object expected");i.badge=u.bilibili.app.viewunite.common.BadgeInfo.fromObject(t.badge)}if(t.stat!=null){if(typeof t.stat!="object")throw TypeError(".bilibili.app.viewunite.common.RelateBangumiAvCard.stat: object expected");i.stat=u.bilibili.app.viewunite.common.Stat.fromObject(t.stat)}if(t.rating!=null){if(typeof t.rating!="object")throw TypeError(".bilibili.app.viewunite.common.RelateBangumiAvCard.rating: object expected");i.rating=u.bilibili.app.viewunite.common.Rating.fromObject(t.rating)}return t.coverRightText!=null&&(i.coverRightText=String(t.coverRightText)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.badge=null,n.stat=null,n.rating=null,n.coverRightText=""),t.badge!=null&&t.hasOwnProperty("badge")&&(n.badge=u.bilibili.app.viewunite.common.BadgeInfo.toObject(t.badge,i)),t.stat!=null&&t.hasOwnProperty("stat")&&(n.stat=u.bilibili.app.viewunite.common.Stat.toObject(t.stat,i)),t.rating!=null&&t.hasOwnProperty("rating")&&(n.rating=u.bilibili.app.viewunite.common.Rating.toObject(t.rating,i)),t.coverRightText!=null&&t.hasOwnProperty("coverRightText")&&(n.coverRightText=t.coverRightText),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.RelateBangumiAvCard"},e}(),c.RelateAVCard=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.duration=t.int64();break}case 2:{o.cid=t.int64();break}case 3:{o.dimension=u.bilibili.app.viewunite.common.Dimension.decode(t,t.uint32());break}case 4:{o.stat=u.bilibili.app.viewunite.common.Stat.decode(t,t.uint32());break}case 5:{o.jumpUrl=t.string();break}case 6:{o.showUpName=t.bool();break}case 7:{o.rcmdReason=u.bilibili.app.viewunite.common.BadgeInfo.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.RelateAVCard)return t;let i=new u.bilibili.app.viewunite.common.RelateAVCard;if(t.duration!=null&&(r.Long?(i.duration=r.Long.fromValue(t.duration)).unsigned=!1:typeof t.duration=="string"?i.duration=parseInt(t.duration,10):typeof t.duration=="number"?i.duration=t.duration:typeof t.duration=="object"&&(i.duration=new r.LongBits(t.duration.low>>>0,t.duration.high>>>0).toNumber())),t.cid!=null&&(r.Long?(i.cid=r.Long.fromValue(t.cid)).unsigned=!1:typeof t.cid=="string"?i.cid=parseInt(t.cid,10):typeof t.cid=="number"?i.cid=t.cid:typeof t.cid=="object"&&(i.cid=new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber())),t.dimension!=null){if(typeof t.dimension!="object")throw TypeError(".bilibili.app.viewunite.common.RelateAVCard.dimension: object expected");i.dimension=u.bilibili.app.viewunite.common.Dimension.fromObject(t.dimension)}if(t.stat!=null){if(typeof t.stat!="object")throw TypeError(".bilibili.app.viewunite.common.RelateAVCard.stat: object expected");i.stat=u.bilibili.app.viewunite.common.Stat.fromObject(t.stat)}if(t.jumpUrl!=null&&(i.jumpUrl=String(t.jumpUrl)),t.showUpName!=null&&(i.showUpName=!!t.showUpName),t.rcmdReason!=null){if(typeof t.rcmdReason!="object")throw TypeError(".bilibili.app.viewunite.common.RelateAVCard.rcmdReason: object expected");i.rcmdReason=u.bilibili.app.viewunite.common.BadgeInfo.fromObject(t.rcmdReason)}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.duration=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.duration=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.cid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.cid=i.longs===String?"0":0;n.dimension=null,n.stat=null,n.jumpUrl="",n.showUpName=!1,n.rcmdReason=null}return t.duration!=null&&t.hasOwnProperty("duration")&&(typeof t.duration=="number"?n.duration=i.longs===String?String(t.duration):t.duration:n.duration=i.longs===String?r.Long.prototype.toString.call(t.duration):i.longs===Number?new r.LongBits(t.duration.low>>>0,t.duration.high>>>0).toNumber():t.duration),t.cid!=null&&t.hasOwnProperty("cid")&&(typeof t.cid=="number"?n.cid=i.longs===String?String(t.cid):t.cid:n.cid=i.longs===String?r.Long.prototype.toString.call(t.cid):i.longs===Number?new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber():t.cid),t.dimension!=null&&t.hasOwnProperty("dimension")&&(n.dimension=u.bilibili.app.viewunite.common.Dimension.toObject(t.dimension,i)),t.stat!=null&&t.hasOwnProperty("stat")&&(n.stat=u.bilibili.app.viewunite.common.Stat.toObject(t.stat,i)),t.jumpUrl!=null&&t.hasOwnProperty("jumpUrl")&&(n.jumpUrl=t.jumpUrl),t.showUpName!=null&&t.hasOwnProperty("showUpName")&&(n.showUpName=t.showUpName),t.rcmdReason!=null&&t.hasOwnProperty("rcmdReason")&&(n.rcmdReason=u.bilibili.app.viewunite.common.BadgeInfo.toObject(t.rcmdReason,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.RelateAVCard"},e}(),c.RelateCourseCard=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.duration=t.int64();break}case 2:{o.stat=u.bilibili.app.viewunite.common.Stat.decode(t,t.uint32());break}case 3:{o.rcmdReason=u.bilibili.app.viewunite.common.BadgeInfo.decode(t,t.uint32());break}case 4:{o.badgeInfo=u.bilibili.app.viewunite.common.BadgeInfo.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.RelateCourseCard)return t;let i=new u.bilibili.app.viewunite.common.RelateCourseCard;if(t.duration!=null&&(r.Long?(i.duration=r.Long.fromValue(t.duration)).unsigned=!1:typeof t.duration=="string"?i.duration=parseInt(t.duration,10):typeof t.duration=="number"?i.duration=t.duration:typeof t.duration=="object"&&(i.duration=new r.LongBits(t.duration.low>>>0,t.duration.high>>>0).toNumber())),t.stat!=null){if(typeof t.stat!="object")throw TypeError(".bilibili.app.viewunite.common.RelateCourseCard.stat: object expected");i.stat=u.bilibili.app.viewunite.common.Stat.fromObject(t.stat)}if(t.rcmdReason!=null){if(typeof t.rcmdReason!="object")throw TypeError(".bilibili.app.viewunite.common.RelateCourseCard.rcmdReason: object expected");i.rcmdReason=u.bilibili.app.viewunite.common.BadgeInfo.fromObject(t.rcmdReason)}if(t.badgeInfo!=null){if(typeof t.badgeInfo!="object")throw TypeError(".bilibili.app.viewunite.common.RelateCourseCard.badgeInfo: object expected");i.badgeInfo=u.bilibili.app.viewunite.common.BadgeInfo.fromObject(t.badgeInfo)}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.duration=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.duration=i.longs===String?"0":0;n.stat=null,n.rcmdReason=null,n.badgeInfo=null}return t.duration!=null&&t.hasOwnProperty("duration")&&(typeof t.duration=="number"?n.duration=i.longs===String?String(t.duration):t.duration:n.duration=i.longs===String?r.Long.prototype.toString.call(t.duration):i.longs===Number?new r.LongBits(t.duration.low>>>0,t.duration.high>>>0).toNumber():t.duration),t.stat!=null&&t.hasOwnProperty("stat")&&(n.stat=u.bilibili.app.viewunite.common.Stat.toObject(t.stat,i)),t.rcmdReason!=null&&t.hasOwnProperty("rcmdReason")&&(n.rcmdReason=u.bilibili.app.viewunite.common.BadgeInfo.toObject(t.rcmdReason,i)),t.badgeInfo!=null&&t.hasOwnProperty("badgeInfo")&&(n.badgeInfo=u.bilibili.app.viewunite.common.BadgeInfo.toObject(t.badgeInfo,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.RelateCourseCard"},e}(),c.RelateBangumiCard=function(){function e(l){if(this.report={},l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.seasonId=t.int32();break}case 2:{o.seasonType=t.int32();break}case 3:{o.newEp=u.bilibili.app.viewunite.common.NewEp.decode(t,t.uint32());break}case 4:{o.stat=u.bilibili.app.viewunite.common.Stat.decode(t,t.uint32());break}case 5:{o.rating=u.bilibili.app.viewunite.common.Rating.decode(t,t.uint32());break}case 6:{o.rcmdReason=t.string();break}case 7:{o.badgeInfo=u.bilibili.app.viewunite.common.BadgeInfo.decode(t,t.uint32());break}case 8:{o.gotoType=t.string();break}case 9:{o.report===r.emptyObject&&(o.report={});let v=t.uint32()+t.pos;for(a="",y="";t.pos>>3){case 1:a=t.string();break;case 2:y=t.string();break;default:t.skipType(g&7);break}}o.report[a]=y;break}default:t.skipType(s&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.RelateBangumiCard)return t;let i=new u.bilibili.app.viewunite.common.RelateBangumiCard;if(t.seasonId!=null&&(i.seasonId=t.seasonId|0),t.seasonType!=null&&(i.seasonType=t.seasonType|0),t.newEp!=null){if(typeof t.newEp!="object")throw TypeError(".bilibili.app.viewunite.common.RelateBangumiCard.newEp: object expected");i.newEp=u.bilibili.app.viewunite.common.NewEp.fromObject(t.newEp)}if(t.stat!=null){if(typeof t.stat!="object")throw TypeError(".bilibili.app.viewunite.common.RelateBangumiCard.stat: object expected");i.stat=u.bilibili.app.viewunite.common.Stat.fromObject(t.stat)}if(t.rating!=null){if(typeof t.rating!="object")throw TypeError(".bilibili.app.viewunite.common.RelateBangumiCard.rating: object expected");i.rating=u.bilibili.app.viewunite.common.Rating.fromObject(t.rating)}if(t.rcmdReason!=null&&(i.rcmdReason=String(t.rcmdReason)),t.badgeInfo!=null){if(typeof t.badgeInfo!="object")throw TypeError(".bilibili.app.viewunite.common.RelateBangumiCard.badgeInfo: object expected");i.badgeInfo=u.bilibili.app.viewunite.common.BadgeInfo.fromObject(t.badgeInfo)}if(t.gotoType!=null&&(i.gotoType=String(t.gotoType)),t.report){if(typeof t.report!="object")throw TypeError(".bilibili.app.viewunite.common.RelateBangumiCard.report: object expected");i.report={};for(let n=Object.keys(t.report),o=0;o>>3){case 1:{o.badge=u.bilibili.app.viewunite.common.BadgeInfo.decode(t,t.uint32());break}case 2:{o.stat=u.bilibili.app.viewunite.common.Stat.decode(t,t.uint32());break}case 3:{o.rating=u.bilibili.app.viewunite.common.Rating.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.RelateBangumiUGCCard)return t;let i=new u.bilibili.app.viewunite.common.RelateBangumiUGCCard;if(t.badge!=null){if(typeof t.badge!="object")throw TypeError(".bilibili.app.viewunite.common.RelateBangumiUGCCard.badge: object expected");i.badge=u.bilibili.app.viewunite.common.BadgeInfo.fromObject(t.badge)}if(t.stat!=null){if(typeof t.stat!="object")throw TypeError(".bilibili.app.viewunite.common.RelateBangumiUGCCard.stat: object expected");i.stat=u.bilibili.app.viewunite.common.Stat.fromObject(t.stat)}if(t.rating!=null){if(typeof t.rating!="object")throw TypeError(".bilibili.app.viewunite.common.RelateBangumiUGCCard.rating: object expected");i.rating=u.bilibili.app.viewunite.common.Rating.fromObject(t.rating)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.badge=null,n.stat=null,n.rating=null),t.badge!=null&&t.hasOwnProperty("badge")&&(n.badge=u.bilibili.app.viewunite.common.BadgeInfo.toObject(t.badge,i)),t.stat!=null&&t.hasOwnProperty("stat")&&(n.stat=u.bilibili.app.viewunite.common.Stat.toObject(t.stat,i)),t.rating!=null&&t.hasOwnProperty("rating")&&(n.rating=u.bilibili.app.viewunite.common.Rating.toObject(t.rating,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.RelateBangumiUGCCard"},e}(),c.IconFont=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.name=t.string();break}case 2:{o.text=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.IconFont)return t;let i=new u.bilibili.app.viewunite.common.IconFont;return t.name!=null&&(i.name=String(t.name)),t.text!=null&&(i.text=String(t.text)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.name="",n.text=""),t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),t.text!=null&&t.hasOwnProperty("text")&&(n.text=t.text),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.IconFont"},e}(),c.UserStatus=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.show=t.int32();break}case 2:{o.follow=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.UserStatus)return t;let i=new u.bilibili.app.viewunite.common.UserStatus;return t.show!=null&&(i.show=t.show|0),t.follow!=null&&(i.follow=t.follow|0),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.show=0,n.follow=0),t.show!=null&&t.hasOwnProperty("show")&&(n.show=t.show),t.follow!=null&&t.hasOwnProperty("follow")&&(n.follow=t.follow),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.UserStatus"},e}(),c.RelateBangumiResourceCard=function(){function e(l){if(this.report={},l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.type=t.int32();break}case 2:{o.scover=t.string();break}case 3:{o.reType=t.int32();break}case 4:{o.reValue=t.string();break}case 5:{o.corner=t.string();break}case 6:{o.card=t.int32();break}case 7:{o.siz=t.string();break}case 8:{o.position=t.int32();break}case 9:{o.rcmdReason=t.string();break}case 10:{o.label=t.string();break}case 11:{o.report===r.emptyObject&&(o.report={});let v=t.uint32()+t.pos;for(a="",y="";t.pos>>3){case 1:a=t.string();break;case 2:y=t.string();break;default:t.skipType(g&7);break}}o.report[a]=y;break}case 12:{o.gotoType=t.string();break}default:t.skipType(s&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.RelateBangumiResourceCard)return t;let i=new u.bilibili.app.viewunite.common.RelateBangumiResourceCard;if(t.type!=null&&(i.type=t.type|0),t.scover!=null&&(i.scover=String(t.scover)),t.reType!=null&&(i.reType=t.reType|0),t.reValue!=null&&(i.reValue=String(t.reValue)),t.corner!=null&&(i.corner=String(t.corner)),t.card!=null&&(i.card=t.card|0),t.siz!=null&&(i.siz=String(t.siz)),t.position!=null&&(i.position=t.position|0),t.rcmdReason!=null&&(i.rcmdReason=String(t.rcmdReason)),t.label!=null&&(i.label=String(t.label)),t.report){if(typeof t.report!="object")throw TypeError(".bilibili.app.viewunite.common.RelateBangumiResourceCard.report: object expected");i.report={};for(let n=Object.keys(t.report),o=0;o>>3){case 1:{o.reserveStatus=t.int64();break}case 2:{o.reserveStatusText=t.string();break}case 3:{o.reserve=t.string();break}case 4:{o.rating=t.float();break}case 5:{o.tagName=t.string();break}case 6:{o.rankInfo=u.bilibili.app.viewunite.common.RankInfo.decode(t,t.uint32());break}case 7:{o.packInfo=u.bilibili.app.viewunite.common.Button.decode(t,t.uint32());break}case 8:{o.notice=u.bilibili.app.viewunite.common.Button.decode(t,t.uint32());break}case 9:{o.powerIconStyle=u.bilibili.app.viewunite.common.PowerIconStyle.decode(t,t.uint32());break}case 10:{o.gameRcmdReason=t.string();break}case 11:{o.wikiInfo=u.bilibili.app.viewunite.common.WikiInfo.decode(t,t.uint32());break}case 12:{o.badge=u.bilibili.app.viewunite.common.BadgeInfo.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.RelateGameCard)return t;let i=new u.bilibili.app.viewunite.common.RelateGameCard;if(t.reserveStatus!=null&&(r.Long?(i.reserveStatus=r.Long.fromValue(t.reserveStatus)).unsigned=!1:typeof t.reserveStatus=="string"?i.reserveStatus=parseInt(t.reserveStatus,10):typeof t.reserveStatus=="number"?i.reserveStatus=t.reserveStatus:typeof t.reserveStatus=="object"&&(i.reserveStatus=new r.LongBits(t.reserveStatus.low>>>0,t.reserveStatus.high>>>0).toNumber())),t.reserveStatusText!=null&&(i.reserveStatusText=String(t.reserveStatusText)),t.reserve!=null&&(i.reserve=String(t.reserve)),t.rating!=null&&(i.rating=Number(t.rating)),t.tagName!=null&&(i.tagName=String(t.tagName)),t.rankInfo!=null){if(typeof t.rankInfo!="object")throw TypeError(".bilibili.app.viewunite.common.RelateGameCard.rankInfo: object expected");i.rankInfo=u.bilibili.app.viewunite.common.RankInfo.fromObject(t.rankInfo)}if(t.packInfo!=null){if(typeof t.packInfo!="object")throw TypeError(".bilibili.app.viewunite.common.RelateGameCard.packInfo: object expected");i.packInfo=u.bilibili.app.viewunite.common.Button.fromObject(t.packInfo)}if(t.notice!=null){if(typeof t.notice!="object")throw TypeError(".bilibili.app.viewunite.common.RelateGameCard.notice: object expected");i.notice=u.bilibili.app.viewunite.common.Button.fromObject(t.notice)}if(t.powerIconStyle!=null){if(typeof t.powerIconStyle!="object")throw TypeError(".bilibili.app.viewunite.common.RelateGameCard.powerIconStyle: object expected");i.powerIconStyle=u.bilibili.app.viewunite.common.PowerIconStyle.fromObject(t.powerIconStyle)}if(t.gameRcmdReason!=null&&(i.gameRcmdReason=String(t.gameRcmdReason)),t.wikiInfo!=null){if(typeof t.wikiInfo!="object")throw TypeError(".bilibili.app.viewunite.common.RelateGameCard.wikiInfo: object expected");i.wikiInfo=u.bilibili.app.viewunite.common.WikiInfo.fromObject(t.wikiInfo)}if(t.badge!=null){if(typeof t.badge!="object")throw TypeError(".bilibili.app.viewunite.common.RelateGameCard.badge: object expected");i.badge=u.bilibili.app.viewunite.common.BadgeInfo.fromObject(t.badge)}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.reserveStatus=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.reserveStatus=i.longs===String?"0":0;n.reserveStatusText="",n.reserve="",n.rating=0,n.tagName="",n.rankInfo=null,n.packInfo=null,n.notice=null,n.powerIconStyle=null,n.gameRcmdReason="",n.wikiInfo=null,n.badge=null}return t.reserveStatus!=null&&t.hasOwnProperty("reserveStatus")&&(typeof t.reserveStatus=="number"?n.reserveStatus=i.longs===String?String(t.reserveStatus):t.reserveStatus:n.reserveStatus=i.longs===String?r.Long.prototype.toString.call(t.reserveStatus):i.longs===Number?new r.LongBits(t.reserveStatus.low>>>0,t.reserveStatus.high>>>0).toNumber():t.reserveStatus),t.reserveStatusText!=null&&t.hasOwnProperty("reserveStatusText")&&(n.reserveStatusText=t.reserveStatusText),t.reserve!=null&&t.hasOwnProperty("reserve")&&(n.reserve=t.reserve),t.rating!=null&&t.hasOwnProperty("rating")&&(n.rating=i.json&&!isFinite(t.rating)?String(t.rating):t.rating),t.tagName!=null&&t.hasOwnProperty("tagName")&&(n.tagName=t.tagName),t.rankInfo!=null&&t.hasOwnProperty("rankInfo")&&(n.rankInfo=u.bilibili.app.viewunite.common.RankInfo.toObject(t.rankInfo,i)),t.packInfo!=null&&t.hasOwnProperty("packInfo")&&(n.packInfo=u.bilibili.app.viewunite.common.Button.toObject(t.packInfo,i)),t.notice!=null&&t.hasOwnProperty("notice")&&(n.notice=u.bilibili.app.viewunite.common.Button.toObject(t.notice,i)),t.powerIconStyle!=null&&t.hasOwnProperty("powerIconStyle")&&(n.powerIconStyle=u.bilibili.app.viewunite.common.PowerIconStyle.toObject(t.powerIconStyle,i)),t.gameRcmdReason!=null&&t.hasOwnProperty("gameRcmdReason")&&(n.gameRcmdReason=t.gameRcmdReason),t.wikiInfo!=null&&t.hasOwnProperty("wikiInfo")&&(n.wikiInfo=u.bilibili.app.viewunite.common.WikiInfo.toObject(t.wikiInfo,i)),t.badge!=null&&t.hasOwnProperty("badge")&&(n.badge=u.bilibili.app.viewunite.common.BadgeInfo.toObject(t.badge,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.RelateGameCard"},e}(),c.WikiInfo=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.wikiLabel=t.string();break}case 2:{o.wikiUrl=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.WikiInfo)return t;let i=new u.bilibili.app.viewunite.common.WikiInfo;return t.wikiLabel!=null&&(i.wikiLabel=String(t.wikiLabel)),t.wikiUrl!=null&&(i.wikiUrl=String(t.wikiUrl)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.wikiLabel="",n.wikiUrl=""),t.wikiLabel!=null&&t.hasOwnProperty("wikiLabel")&&(n.wikiLabel=t.wikiLabel),t.wikiUrl!=null&&t.hasOwnProperty("wikiUrl")&&(n.wikiUrl=t.wikiUrl),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.WikiInfo"},e}(),c.PowerIconStyle=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.iconUrl=t.string();break}case 2:{o.iconNightUrl=t.string();break}case 3:{o.iconWidth=t.int64();break}case 4:{o.iconHeight=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.PowerIconStyle)return t;let i=new u.bilibili.app.viewunite.common.PowerIconStyle;return t.iconUrl!=null&&(i.iconUrl=String(t.iconUrl)),t.iconNightUrl!=null&&(i.iconNightUrl=String(t.iconNightUrl)),t.iconWidth!=null&&(r.Long?(i.iconWidth=r.Long.fromValue(t.iconWidth)).unsigned=!1:typeof t.iconWidth=="string"?i.iconWidth=parseInt(t.iconWidth,10):typeof t.iconWidth=="number"?i.iconWidth=t.iconWidth:typeof t.iconWidth=="object"&&(i.iconWidth=new r.LongBits(t.iconWidth.low>>>0,t.iconWidth.high>>>0).toNumber())),t.iconHeight!=null&&(r.Long?(i.iconHeight=r.Long.fromValue(t.iconHeight)).unsigned=!1:typeof t.iconHeight=="string"?i.iconHeight=parseInt(t.iconHeight,10):typeof t.iconHeight=="number"?i.iconHeight=t.iconHeight:typeof t.iconHeight=="object"&&(i.iconHeight=new r.LongBits(t.iconHeight.low>>>0,t.iconHeight.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.iconUrl="",n.iconNightUrl="",r.Long){let o=new r.Long(0,0,!1);n.iconWidth=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.iconWidth=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.iconHeight=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.iconHeight=i.longs===String?"0":0}return t.iconUrl!=null&&t.hasOwnProperty("iconUrl")&&(n.iconUrl=t.iconUrl),t.iconNightUrl!=null&&t.hasOwnProperty("iconNightUrl")&&(n.iconNightUrl=t.iconNightUrl),t.iconWidth!=null&&t.hasOwnProperty("iconWidth")&&(typeof t.iconWidth=="number"?n.iconWidth=i.longs===String?String(t.iconWidth):t.iconWidth:n.iconWidth=i.longs===String?r.Long.prototype.toString.call(t.iconWidth):i.longs===Number?new r.LongBits(t.iconWidth.low>>>0,t.iconWidth.high>>>0).toNumber():t.iconWidth),t.iconHeight!=null&&t.hasOwnProperty("iconHeight")&&(typeof t.iconHeight=="number"?n.iconHeight=i.longs===String?String(t.iconHeight):t.iconHeight:n.iconHeight=i.longs===String?r.Long.prototype.toString.call(t.iconHeight):i.longs===Number?new r.LongBits(t.iconHeight.low>>>0,t.iconHeight.high>>>0).toNumber():t.iconHeight),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.PowerIconStyle"},e}(),c.RankInfo=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.iconUrlNight=t.string();break}case 2:{o.iconUrlDay=t.string();break}case 3:{o.bkgNightColor=t.string();break}case 4:{o.bkgDayColor=t.string();break}case 5:{o.fontNightColor=t.string();break}case 6:{o.fontDayColor=t.string();break}case 7:{o.rankContent=t.string();break}case 8:{o.rankLink=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.RankInfo)return t;let i=new u.bilibili.app.viewunite.common.RankInfo;return t.iconUrlNight!=null&&(i.iconUrlNight=String(t.iconUrlNight)),t.iconUrlDay!=null&&(i.iconUrlDay=String(t.iconUrlDay)),t.bkgNightColor!=null&&(i.bkgNightColor=String(t.bkgNightColor)),t.bkgDayColor!=null&&(i.bkgDayColor=String(t.bkgDayColor)),t.fontNightColor!=null&&(i.fontNightColor=String(t.fontNightColor)),t.fontDayColor!=null&&(i.fontDayColor=String(t.fontDayColor)),t.rankContent!=null&&(i.rankContent=String(t.rankContent)),t.rankLink!=null&&(i.rankLink=String(t.rankLink)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.iconUrlNight="",n.iconUrlDay="",n.bkgNightColor="",n.bkgDayColor="",n.fontNightColor="",n.fontDayColor="",n.rankContent="",n.rankLink=""),t.iconUrlNight!=null&&t.hasOwnProperty("iconUrlNight")&&(n.iconUrlNight=t.iconUrlNight),t.iconUrlDay!=null&&t.hasOwnProperty("iconUrlDay")&&(n.iconUrlDay=t.iconUrlDay),t.bkgNightColor!=null&&t.hasOwnProperty("bkgNightColor")&&(n.bkgNightColor=t.bkgNightColor),t.bkgDayColor!=null&&t.hasOwnProperty("bkgDayColor")&&(n.bkgDayColor=t.bkgDayColor),t.fontNightColor!=null&&t.hasOwnProperty("fontNightColor")&&(n.fontNightColor=t.fontNightColor),t.fontDayColor!=null&&t.hasOwnProperty("fontDayColor")&&(n.fontDayColor=t.fontDayColor),t.rankContent!=null&&t.hasOwnProperty("rankContent")&&(n.rankContent=t.rankContent),t.rankLink!=null&&t.hasOwnProperty("rankLink")&&(n.rankLink=t.rankLink),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.RankInfo"},e}(),c.RelateCMCard=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.aid=t.int64();break}case 2:{o.sourceContent=u.google.protobuf.Any.decode(t,t.uint32());break}case 3:{o.Duration=t.int64();break}case 4:{o.stat=u.bilibili.app.viewunite.common.Stat.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.RelateCMCard)return t;let i=new u.bilibili.app.viewunite.common.RelateCMCard;if(t.aid!=null&&(r.Long?(i.aid=r.Long.fromValue(t.aid)).unsigned=!1:typeof t.aid=="string"?i.aid=parseInt(t.aid,10):typeof t.aid=="number"?i.aid=t.aid:typeof t.aid=="object"&&(i.aid=new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber())),t.sourceContent!=null){if(typeof t.sourceContent!="object")throw TypeError(".bilibili.app.viewunite.common.RelateCMCard.sourceContent: object expected");i.sourceContent=u.google.protobuf.Any.fromObject(t.sourceContent)}if(t.Duration!=null&&(r.Long?(i.Duration=r.Long.fromValue(t.Duration)).unsigned=!1:typeof t.Duration=="string"?i.Duration=parseInt(t.Duration,10):typeof t.Duration=="number"?i.Duration=t.Duration:typeof t.Duration=="object"&&(i.Duration=new r.LongBits(t.Duration.low>>>0,t.Duration.high>>>0).toNumber())),t.stat!=null){if(typeof t.stat!="object")throw TypeError(".bilibili.app.viewunite.common.RelateCMCard.stat: object expected");i.stat=u.bilibili.app.viewunite.common.Stat.fromObject(t.stat)}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.aid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.aid=i.longs===String?"0":0;if(n.sourceContent=null,r.Long){let o=new r.Long(0,0,!1);n.Duration=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.Duration=i.longs===String?"0":0;n.stat=null}return t.aid!=null&&t.hasOwnProperty("aid")&&(typeof t.aid=="number"?n.aid=i.longs===String?String(t.aid):t.aid:n.aid=i.longs===String?r.Long.prototype.toString.call(t.aid):i.longs===Number?new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber():t.aid),t.sourceContent!=null&&t.hasOwnProperty("sourceContent")&&(n.sourceContent=u.google.protobuf.Any.toObject(t.sourceContent,i)),t.Duration!=null&&t.hasOwnProperty("Duration")&&(typeof t.Duration=="number"?n.Duration=i.longs===String?String(t.Duration):t.Duration:n.Duration=i.longs===String?r.Long.prototype.toString.call(t.Duration):i.longs===Number?new r.LongBits(t.Duration.low>>>0,t.Duration.high>>>0).toNumber():t.Duration),t.stat!=null&&t.hasOwnProperty("stat")&&(n.stat=u.bilibili.app.viewunite.common.Stat.toObject(t.stat,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.RelateCMCard"},e}(),c.RelateLiveCard=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.iconType=t.int64();break}case 2:{o.areaName=t.string();break}case 3:{o.watchedShow=t.int64();break}case 4:{o.liveStatus=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.RelateLiveCard)return t;let i=new u.bilibili.app.viewunite.common.RelateLiveCard;return t.iconType!=null&&(r.Long?(i.iconType=r.Long.fromValue(t.iconType)).unsigned=!1:typeof t.iconType=="string"?i.iconType=parseInt(t.iconType,10):typeof t.iconType=="number"?i.iconType=t.iconType:typeof t.iconType=="object"&&(i.iconType=new r.LongBits(t.iconType.low>>>0,t.iconType.high>>>0).toNumber())),t.areaName!=null&&(i.areaName=String(t.areaName)),t.watchedShow!=null&&(r.Long?(i.watchedShow=r.Long.fromValue(t.watchedShow)).unsigned=!1:typeof t.watchedShow=="string"?i.watchedShow=parseInt(t.watchedShow,10):typeof t.watchedShow=="number"?i.watchedShow=t.watchedShow:typeof t.watchedShow=="object"&&(i.watchedShow=new r.LongBits(t.watchedShow.low>>>0,t.watchedShow.high>>>0).toNumber())),t.liveStatus!=null&&(r.Long?(i.liveStatus=r.Long.fromValue(t.liveStatus)).unsigned=!1:typeof t.liveStatus=="string"?i.liveStatus=parseInt(t.liveStatus,10):typeof t.liveStatus=="number"?i.liveStatus=t.liveStatus:typeof t.liveStatus=="object"&&(i.liveStatus=new r.LongBits(t.liveStatus.low>>>0,t.liveStatus.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.iconType=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.iconType=i.longs===String?"0":0;if(n.areaName="",r.Long){let o=new r.Long(0,0,!1);n.watchedShow=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.watchedShow=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.liveStatus=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.liveStatus=i.longs===String?"0":0}return t.iconType!=null&&t.hasOwnProperty("iconType")&&(typeof t.iconType=="number"?n.iconType=i.longs===String?String(t.iconType):t.iconType:n.iconType=i.longs===String?r.Long.prototype.toString.call(t.iconType):i.longs===Number?new r.LongBits(t.iconType.low>>>0,t.iconType.high>>>0).toNumber():t.iconType),t.areaName!=null&&t.hasOwnProperty("areaName")&&(n.areaName=t.areaName),t.watchedShow!=null&&t.hasOwnProperty("watchedShow")&&(typeof t.watchedShow=="number"?n.watchedShow=i.longs===String?String(t.watchedShow):t.watchedShow:n.watchedShow=i.longs===String?r.Long.prototype.toString.call(t.watchedShow):i.longs===Number?new r.LongBits(t.watchedShow.low>>>0,t.watchedShow.high>>>0).toNumber():t.watchedShow),t.liveStatus!=null&&t.hasOwnProperty("liveStatus")&&(typeof t.liveStatus=="number"?n.liveStatus=i.longs===String?String(t.liveStatus):t.liveStatus:n.liveStatus=i.longs===String?r.Long.prototype.toString.call(t.liveStatus):i.longs===Number?new r.LongBits(t.liveStatus.low>>>0,t.liveStatus.high>>>0).toNumber():t.liveStatus),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.RelateLiveCard"},e}(),c.OgvLiveReserve=function(){function e(l){if(this.report={},l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.reserveId=t.int64();break}case 2:{o.title=t.string();break}case 3:{o.icon=t.string();break}case 4:{o.nightIcon=t.string();break}case 5:{o.clickButton=t.string();break}case 6:{o.link=t.string();break}case 7:{o.followVideoIsReserveLive=t.int32();break}case 8:{o.bgColor=t.string();break}case 9:{o.nightBgColor=t.string();break}case 10:{o.textColor=t.string();break}case 11:{o.nightTextColor=t.string();break}case 12:{o.btBgColor=t.string();break}case 13:{o.btFrameColor=t.string();break}case 14:{o.nightBtBgColor=t.string();break}case 15:{o.nightBtFrameColor=t.string();break}case 16:{o.activeType=t.int32();break}case 17:{o.reserveStatus=t.int32();break}case 18:{o.btTextColor=t.string();break}case 19:{o.nightBtTextColor=t.string();break}case 20:{o.report===r.emptyObject&&(o.report={});let v=t.uint32()+t.pos;for(a="",y="";t.pos>>3){case 1:a=t.string();break;case 2:y=t.string();break;default:t.skipType(g&7);break}}o.report[a]=y;break}default:t.skipType(s&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.OgvLiveReserve)return t;let i=new u.bilibili.app.viewunite.common.OgvLiveReserve;if(t.reserveId!=null&&(r.Long?(i.reserveId=r.Long.fromValue(t.reserveId)).unsigned=!1:typeof t.reserveId=="string"?i.reserveId=parseInt(t.reserveId,10):typeof t.reserveId=="number"?i.reserveId=t.reserveId:typeof t.reserveId=="object"&&(i.reserveId=new r.LongBits(t.reserveId.low>>>0,t.reserveId.high>>>0).toNumber())),t.title!=null&&(i.title=String(t.title)),t.icon!=null&&(i.icon=String(t.icon)),t.nightIcon!=null&&(i.nightIcon=String(t.nightIcon)),t.clickButton!=null&&(i.clickButton=String(t.clickButton)),t.link!=null&&(i.link=String(t.link)),t.followVideoIsReserveLive!=null&&(i.followVideoIsReserveLive=t.followVideoIsReserveLive|0),t.bgColor!=null&&(i.bgColor=String(t.bgColor)),t.nightBgColor!=null&&(i.nightBgColor=String(t.nightBgColor)),t.textColor!=null&&(i.textColor=String(t.textColor)),t.nightTextColor!=null&&(i.nightTextColor=String(t.nightTextColor)),t.btBgColor!=null&&(i.btBgColor=String(t.btBgColor)),t.btFrameColor!=null&&(i.btFrameColor=String(t.btFrameColor)),t.nightBtBgColor!=null&&(i.nightBtBgColor=String(t.nightBtBgColor)),t.nightBtFrameColor!=null&&(i.nightBtFrameColor=String(t.nightBtFrameColor)),t.activeType!=null&&(i.activeType=t.activeType|0),t.reserveStatus!=null&&(i.reserveStatus=t.reserveStatus|0),t.btTextColor!=null&&(i.btTextColor=String(t.btTextColor)),t.nightBtTextColor!=null&&(i.nightBtTextColor=String(t.nightBtTextColor)),t.report){if(typeof t.report!="object")throw TypeError(".bilibili.app.viewunite.common.OgvLiveReserve.report: object expected");i.report={};for(let n=Object.keys(t.report),o=0;o>>0,t.reserveId.high>>>0).toNumber():t.reserveId),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.icon!=null&&t.hasOwnProperty("icon")&&(n.icon=t.icon),t.nightIcon!=null&&t.hasOwnProperty("nightIcon")&&(n.nightIcon=t.nightIcon),t.clickButton!=null&&t.hasOwnProperty("clickButton")&&(n.clickButton=t.clickButton),t.link!=null&&t.hasOwnProperty("link")&&(n.link=t.link),t.followVideoIsReserveLive!=null&&t.hasOwnProperty("followVideoIsReserveLive")&&(n.followVideoIsReserveLive=t.followVideoIsReserveLive),t.bgColor!=null&&t.hasOwnProperty("bgColor")&&(n.bgColor=t.bgColor),t.nightBgColor!=null&&t.hasOwnProperty("nightBgColor")&&(n.nightBgColor=t.nightBgColor),t.textColor!=null&&t.hasOwnProperty("textColor")&&(n.textColor=t.textColor),t.nightTextColor!=null&&t.hasOwnProperty("nightTextColor")&&(n.nightTextColor=t.nightTextColor),t.btBgColor!=null&&t.hasOwnProperty("btBgColor")&&(n.btBgColor=t.btBgColor),t.btFrameColor!=null&&t.hasOwnProperty("btFrameColor")&&(n.btFrameColor=t.btFrameColor),t.nightBtBgColor!=null&&t.hasOwnProperty("nightBtBgColor")&&(n.nightBtBgColor=t.nightBtBgColor),t.nightBtFrameColor!=null&&t.hasOwnProperty("nightBtFrameColor")&&(n.nightBtFrameColor=t.nightBtFrameColor),t.activeType!=null&&t.hasOwnProperty("activeType")&&(n.activeType=t.activeType),t.reserveStatus!=null&&t.hasOwnProperty("reserveStatus")&&(n.reserveStatus=t.reserveStatus),t.btTextColor!=null&&t.hasOwnProperty("btTextColor")&&(n.btTextColor=t.btTextColor),t.nightBtTextColor!=null&&t.hasOwnProperty("nightBtTextColor")&&(n.nightBtTextColor=t.nightBtTextColor);let o;if(t.report&&(o=Object.keys(t.report)).length){n.report={};for(let a=0;a>>3){case 1:{o.title=t.string();break}case 2:{o.serialSeason&&o.serialSeason.length||(o.serialSeason=[]),o.serialSeason.push(u.bilibili.app.viewunite.common.SerialSeason.decode(t,t.uint32()));break}case 3:{o.style=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.OgvSeasons)return t;let i=new u.bilibili.app.viewunite.common.OgvSeasons;if(t.title!=null&&(i.title=String(t.title)),t.serialSeason){if(!Array.isArray(t.serialSeason))throw TypeError(".bilibili.app.viewunite.common.OgvSeasons.serialSeason: array expected");i.serialSeason=[];for(let n=0;n>>3){case 1:{o.id=t.int64();break}case 2:{o.title=t.string();break}case 3:{o.cover=t.string();break}case 4:{o.supernatantTitle=t.string();break}case 5:{o.section&&o.section.length||(o.section=[]),o.section.push(u.bilibili.app.viewunite.common.UgcSection.decode(t,t.uint32()));break}case 6:{o.unionTitle=t.string();break}case 7:{o.head=u.bilibili.app.viewunite.common.SeasonHead.decode(t,t.uint32());break}case 8:{o.epCount=t.int64();break}case 9:{o.seasonType=t.int32();break}case 10:{o.activity=u.bilibili.app.viewunite.common.UgcSeasonActivity.decode(t,t.uint32());break}case 11:{o.seasonAbility&&o.seasonAbility.length||(o.seasonAbility=[]),o.seasonAbility.push(t.string());break}case 12:{o.seasonTitle=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.UgcSeasons)return t;let i=new u.bilibili.app.viewunite.common.UgcSeasons;if(t.id!=null&&(r.Long?(i.id=r.Long.fromValue(t.id)).unsigned=!1:typeof t.id=="string"?i.id=parseInt(t.id,10):typeof t.id=="number"?i.id=t.id:typeof t.id=="object"&&(i.id=new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber())),t.title!=null&&(i.title=String(t.title)),t.cover!=null&&(i.cover=String(t.cover)),t.supernatantTitle!=null&&(i.supernatantTitle=String(t.supernatantTitle)),t.section){if(!Array.isArray(t.section))throw TypeError(".bilibili.app.viewunite.common.UgcSeasons.section: array expected");i.section=[];for(let n=0;n>>0,t.epCount.high>>>0).toNumber())),t.seasonType){default:if(typeof t.seasonType=="number"){i.seasonType=t.seasonType;break}break;case"Unknown":case 0:i.seasonType=0;break;case"Base":case 1:i.seasonType=1;break;case"Good":case 2:i.seasonType=2;break}if(t.activity!=null){if(typeof t.activity!="object")throw TypeError(".bilibili.app.viewunite.common.UgcSeasons.activity: object expected");i.activity=u.bilibili.app.viewunite.common.UgcSeasonActivity.fromObject(t.activity)}if(t.seasonAbility){if(!Array.isArray(t.seasonAbility))throw TypeError(".bilibili.app.viewunite.common.UgcSeasons.seasonAbility: array expected");i.seasonAbility=[];for(let n=0;n>>0,t.id.high>>>0).toNumber():t.id),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.cover!=null&&t.hasOwnProperty("cover")&&(n.cover=t.cover),t.supernatantTitle!=null&&t.hasOwnProperty("supernatantTitle")&&(n.supernatantTitle=t.supernatantTitle),t.section&&t.section.length){n.section=[];for(let o=0;o>>0,t.epCount.high>>>0).toNumber():t.epCount),t.seasonType!=null&&t.hasOwnProperty("seasonType")&&(n.seasonType=i.enums===String?u.bilibili.app.viewunite.common.SeasonType[t.seasonType]===void 0?t.seasonType:u.bilibili.app.viewunite.common.SeasonType[t.seasonType]:t.seasonType),t.activity!=null&&t.hasOwnProperty("activity")&&(n.activity=u.bilibili.app.viewunite.common.UgcSeasonActivity.toObject(t.activity,i)),t.seasonAbility&&t.seasonAbility.length){n.seasonAbility=[];for(let o=0;o>>3){case 1:{o.title=t.string();break}case 2:{o.intro=t.string();break}case 3:{o.vt=u.bilibili.app.viewunite.common.StatInfo.decode(t,t.uint32());break}case 4:{o.danmaku=u.bilibili.app.viewunite.common.StatInfo.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.SeasonHead)return t;let i=new u.bilibili.app.viewunite.common.SeasonHead;if(t.title!=null&&(i.title=String(t.title)),t.intro!=null&&(i.intro=String(t.intro)),t.vt!=null){if(typeof t.vt!="object")throw TypeError(".bilibili.app.viewunite.common.SeasonHead.vt: object expected");i.vt=u.bilibili.app.viewunite.common.StatInfo.fromObject(t.vt)}if(t.danmaku!=null){if(typeof t.danmaku!="object")throw TypeError(".bilibili.app.viewunite.common.SeasonHead.danmaku: object expected");i.danmaku=u.bilibili.app.viewunite.common.StatInfo.fromObject(t.danmaku)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.title="",n.intro="",n.vt=null,n.danmaku=null),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.intro!=null&&t.hasOwnProperty("intro")&&(n.intro=t.intro),t.vt!=null&&t.hasOwnProperty("vt")&&(n.vt=u.bilibili.app.viewunite.common.StatInfo.toObject(t.vt,i)),t.danmaku!=null&&t.hasOwnProperty("danmaku")&&(n.danmaku=u.bilibili.app.viewunite.common.StatInfo.toObject(t.danmaku,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.SeasonHead"},e}(),c.UgcSection=function(){function e(l){if(this.episodes=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.id=t.int64();break}case 2:{o.title=t.string();break}case 3:{o.type=t.int64();break}case 4:{o.episodes&&o.episodes.length||(o.episodes=[]),o.episodes.push(u.bilibili.app.viewunite.common.UgcEpisode.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.UgcSection)return t;let i=new u.bilibili.app.viewunite.common.UgcSection;if(t.id!=null&&(r.Long?(i.id=r.Long.fromValue(t.id)).unsigned=!1:typeof t.id=="string"?i.id=parseInt(t.id,10):typeof t.id=="number"?i.id=t.id:typeof t.id=="object"&&(i.id=new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber())),t.title!=null&&(i.title=String(t.title)),t.type!=null&&(r.Long?(i.type=r.Long.fromValue(t.type)).unsigned=!1:typeof t.type=="string"?i.type=parseInt(t.type,10):typeof t.type=="number"?i.type=t.type:typeof t.type=="object"&&(i.type=new r.LongBits(t.type.low>>>0,t.type.high>>>0).toNumber())),t.episodes){if(!Array.isArray(t.episodes))throw TypeError(".bilibili.app.viewunite.common.UgcSection.episodes: array expected");i.episodes=[];for(let n=0;n>>0,t.id.high>>>0).toNumber():t.id),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.type!=null&&t.hasOwnProperty("type")&&(typeof t.type=="number"?n.type=i.longs===String?String(t.type):t.type:n.type=i.longs===String?r.Long.prototype.toString.call(t.type):i.longs===Number?new r.LongBits(t.type.low>>>0,t.type.high>>>0).toNumber():t.type),t.episodes&&t.episodes.length){n.episodes=[];for(let o=0;o>>3){case 1:{o.id=t.int64();break}case 2:{o.aid=t.int64();break}case 3:{o.cid=t.int64();break}case 4:{o.title=t.string();break}case 5:{o.cover=t.string();break}case 6:{o.coverRightText=t.string();break}case 7:{o.page=u.bilibili.app.viewunite.common.Page.decode(t,t.uint32());break}case 8:{o.vt=u.bilibili.app.viewunite.common.StatInfo.decode(t,t.uint32());break}case 9:{o.danmaku=u.bilibili.app.viewunite.common.StatInfo.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.UgcEpisode)return t;let i=new u.bilibili.app.viewunite.common.UgcEpisode;if(t.id!=null&&(r.Long?(i.id=r.Long.fromValue(t.id)).unsigned=!1:typeof t.id=="string"?i.id=parseInt(t.id,10):typeof t.id=="number"?i.id=t.id:typeof t.id=="object"&&(i.id=new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber())),t.aid!=null&&(r.Long?(i.aid=r.Long.fromValue(t.aid)).unsigned=!1:typeof t.aid=="string"?i.aid=parseInt(t.aid,10):typeof t.aid=="number"?i.aid=t.aid:typeof t.aid=="object"&&(i.aid=new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber())),t.cid!=null&&(r.Long?(i.cid=r.Long.fromValue(t.cid)).unsigned=!1:typeof t.cid=="string"?i.cid=parseInt(t.cid,10):typeof t.cid=="number"?i.cid=t.cid:typeof t.cid=="object"&&(i.cid=new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber())),t.title!=null&&(i.title=String(t.title)),t.cover!=null&&(i.cover=String(t.cover)),t.coverRightText!=null&&(i.coverRightText=String(t.coverRightText)),t.page!=null){if(typeof t.page!="object")throw TypeError(".bilibili.app.viewunite.common.UgcEpisode.page: object expected");i.page=u.bilibili.app.viewunite.common.Page.fromObject(t.page)}if(t.vt!=null){if(typeof t.vt!="object")throw TypeError(".bilibili.app.viewunite.common.UgcEpisode.vt: object expected");i.vt=u.bilibili.app.viewunite.common.StatInfo.fromObject(t.vt)}if(t.danmaku!=null){if(typeof t.danmaku!="object")throw TypeError(".bilibili.app.viewunite.common.UgcEpisode.danmaku: object expected");i.danmaku=u.bilibili.app.viewunite.common.StatInfo.fromObject(t.danmaku)}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.id=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.id=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.aid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.aid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.cid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.cid=i.longs===String?"0":0;n.title="",n.cover="",n.coverRightText="",n.page=null,n.vt=null,n.danmaku=null}return t.id!=null&&t.hasOwnProperty("id")&&(typeof t.id=="number"?n.id=i.longs===String?String(t.id):t.id:n.id=i.longs===String?r.Long.prototype.toString.call(t.id):i.longs===Number?new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber():t.id),t.aid!=null&&t.hasOwnProperty("aid")&&(typeof t.aid=="number"?n.aid=i.longs===String?String(t.aid):t.aid:n.aid=i.longs===String?r.Long.prototype.toString.call(t.aid):i.longs===Number?new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber():t.aid),t.cid!=null&&t.hasOwnProperty("cid")&&(typeof t.cid=="number"?n.cid=i.longs===String?String(t.cid):t.cid:n.cid=i.longs===String?r.Long.prototype.toString.call(t.cid):i.longs===Number?new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber():t.cid),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.cover!=null&&t.hasOwnProperty("cover")&&(n.cover=t.cover),t.coverRightText!=null&&t.hasOwnProperty("coverRightText")&&(n.coverRightText=t.coverRightText),t.page!=null&&t.hasOwnProperty("page")&&(n.page=u.bilibili.app.viewunite.common.Page.toObject(t.page,i)),t.vt!=null&&t.hasOwnProperty("vt")&&(n.vt=u.bilibili.app.viewunite.common.StatInfo.toObject(t.vt,i)),t.danmaku!=null&&t.hasOwnProperty("danmaku")&&(n.danmaku=u.bilibili.app.viewunite.common.StatInfo.toObject(t.danmaku,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.UgcEpisode"},e}(),c.UgcSeasonActivity=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.type=t.int32();break}case 2:{o.oid=t.int64();break}case 3:{o.activityId=t.int64();break}case 4:{o.title=t.string();break}case 5:{o.intro=t.string();break}case 6:{o.dayCount=t.int32();break}case 7:{o.userCount=t.int32();break}case 8:{o.joinDeadline=t.int64();break}case 9:{o.activityDeadline=t.int64();break}case 10:{o.checkinViewTime=t.int32();break}case 11:{o.newActivity=t.bool();break}case 12:{o.userActivity=u.bilibili.app.viewunite.common.UserActivity.decode(t,t.uint32());break}case 13:{o.seasonShow=u.bilibili.app.viewunite.common.SeasonShow.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.UgcSeasonActivity)return t;let i=new u.bilibili.app.viewunite.common.UgcSeasonActivity;if(t.type!=null&&(i.type=t.type|0),t.oid!=null&&(r.Long?(i.oid=r.Long.fromValue(t.oid)).unsigned=!1:typeof t.oid=="string"?i.oid=parseInt(t.oid,10):typeof t.oid=="number"?i.oid=t.oid:typeof t.oid=="object"&&(i.oid=new r.LongBits(t.oid.low>>>0,t.oid.high>>>0).toNumber())),t.activityId!=null&&(r.Long?(i.activityId=r.Long.fromValue(t.activityId)).unsigned=!1:typeof t.activityId=="string"?i.activityId=parseInt(t.activityId,10):typeof t.activityId=="number"?i.activityId=t.activityId:typeof t.activityId=="object"&&(i.activityId=new r.LongBits(t.activityId.low>>>0,t.activityId.high>>>0).toNumber())),t.title!=null&&(i.title=String(t.title)),t.intro!=null&&(i.intro=String(t.intro)),t.dayCount!=null&&(i.dayCount=t.dayCount|0),t.userCount!=null&&(i.userCount=t.userCount|0),t.joinDeadline!=null&&(r.Long?(i.joinDeadline=r.Long.fromValue(t.joinDeadline)).unsigned=!1:typeof t.joinDeadline=="string"?i.joinDeadline=parseInt(t.joinDeadline,10):typeof t.joinDeadline=="number"?i.joinDeadline=t.joinDeadline:typeof t.joinDeadline=="object"&&(i.joinDeadline=new r.LongBits(t.joinDeadline.low>>>0,t.joinDeadline.high>>>0).toNumber())),t.activityDeadline!=null&&(r.Long?(i.activityDeadline=r.Long.fromValue(t.activityDeadline)).unsigned=!1:typeof t.activityDeadline=="string"?i.activityDeadline=parseInt(t.activityDeadline,10):typeof t.activityDeadline=="number"?i.activityDeadline=t.activityDeadline:typeof t.activityDeadline=="object"&&(i.activityDeadline=new r.LongBits(t.activityDeadline.low>>>0,t.activityDeadline.high>>>0).toNumber())),t.checkinViewTime!=null&&(i.checkinViewTime=t.checkinViewTime|0),t.newActivity!=null&&(i.newActivity=!!t.newActivity),t.userActivity!=null){if(typeof t.userActivity!="object")throw TypeError(".bilibili.app.viewunite.common.UgcSeasonActivity.userActivity: object expected");i.userActivity=u.bilibili.app.viewunite.common.UserActivity.fromObject(t.userActivity)}if(t.seasonShow!=null){if(typeof t.seasonShow!="object")throw TypeError(".bilibili.app.viewunite.common.UgcSeasonActivity.seasonShow: object expected");i.seasonShow=u.bilibili.app.viewunite.common.SeasonShow.fromObject(t.seasonShow)}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.type=0,r.Long){let o=new r.Long(0,0,!1);n.oid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.oid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.activityId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.activityId=i.longs===String?"0":0;if(n.title="",n.intro="",n.dayCount=0,n.userCount=0,r.Long){let o=new r.Long(0,0,!1);n.joinDeadline=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.joinDeadline=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.activityDeadline=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.activityDeadline=i.longs===String?"0":0;n.checkinViewTime=0,n.newActivity=!1,n.userActivity=null,n.seasonShow=null}return t.type!=null&&t.hasOwnProperty("type")&&(n.type=t.type),t.oid!=null&&t.hasOwnProperty("oid")&&(typeof t.oid=="number"?n.oid=i.longs===String?String(t.oid):t.oid:n.oid=i.longs===String?r.Long.prototype.toString.call(t.oid):i.longs===Number?new r.LongBits(t.oid.low>>>0,t.oid.high>>>0).toNumber():t.oid),t.activityId!=null&&t.hasOwnProperty("activityId")&&(typeof t.activityId=="number"?n.activityId=i.longs===String?String(t.activityId):t.activityId:n.activityId=i.longs===String?r.Long.prototype.toString.call(t.activityId):i.longs===Number?new r.LongBits(t.activityId.low>>>0,t.activityId.high>>>0).toNumber():t.activityId),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.intro!=null&&t.hasOwnProperty("intro")&&(n.intro=t.intro),t.dayCount!=null&&t.hasOwnProperty("dayCount")&&(n.dayCount=t.dayCount),t.userCount!=null&&t.hasOwnProperty("userCount")&&(n.userCount=t.userCount),t.joinDeadline!=null&&t.hasOwnProperty("joinDeadline")&&(typeof t.joinDeadline=="number"?n.joinDeadline=i.longs===String?String(t.joinDeadline):t.joinDeadline:n.joinDeadline=i.longs===String?r.Long.prototype.toString.call(t.joinDeadline):i.longs===Number?new r.LongBits(t.joinDeadline.low>>>0,t.joinDeadline.high>>>0).toNumber():t.joinDeadline),t.activityDeadline!=null&&t.hasOwnProperty("activityDeadline")&&(typeof t.activityDeadline=="number"?n.activityDeadline=i.longs===String?String(t.activityDeadline):t.activityDeadline:n.activityDeadline=i.longs===String?r.Long.prototype.toString.call(t.activityDeadline):i.longs===Number?new r.LongBits(t.activityDeadline.low>>>0,t.activityDeadline.high>>>0).toNumber():t.activityDeadline),t.checkinViewTime!=null&&t.hasOwnProperty("checkinViewTime")&&(n.checkinViewTime=t.checkinViewTime),t.newActivity!=null&&t.hasOwnProperty("newActivity")&&(n.newActivity=t.newActivity),t.userActivity!=null&&t.hasOwnProperty("userActivity")&&(n.userActivity=u.bilibili.app.viewunite.common.UserActivity.toObject(t.userActivity,i)),t.seasonShow!=null&&t.hasOwnProperty("seasonShow")&&(n.seasonShow=u.bilibili.app.viewunite.common.SeasonShow.toObject(t.seasonShow,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.UgcSeasonActivity"},e}(),c.UserActivity=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.userState=t.int32();break}case 2:{o.lastCheckinDate=t.int64();break}case 3:{o.checkinToday=t.int32();break}case 4:{o.userDayCount=t.int32();break}case 5:{o.userViewTime=t.int32();break}case 6:{o.portrait=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.UserActivity)return t;let i=new u.bilibili.app.viewunite.common.UserActivity;return t.userState!=null&&(i.userState=t.userState|0),t.lastCheckinDate!=null&&(r.Long?(i.lastCheckinDate=r.Long.fromValue(t.lastCheckinDate)).unsigned=!1:typeof t.lastCheckinDate=="string"?i.lastCheckinDate=parseInt(t.lastCheckinDate,10):typeof t.lastCheckinDate=="number"?i.lastCheckinDate=t.lastCheckinDate:typeof t.lastCheckinDate=="object"&&(i.lastCheckinDate=new r.LongBits(t.lastCheckinDate.low>>>0,t.lastCheckinDate.high>>>0).toNumber())),t.checkinToday!=null&&(i.checkinToday=t.checkinToday|0),t.userDayCount!=null&&(i.userDayCount=t.userDayCount|0),t.userViewTime!=null&&(i.userViewTime=t.userViewTime|0),t.portrait!=null&&(i.portrait=String(t.portrait)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.userState=0,r.Long){let o=new r.Long(0,0,!1);n.lastCheckinDate=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.lastCheckinDate=i.longs===String?"0":0;n.checkinToday=0,n.userDayCount=0,n.userViewTime=0,n.portrait=""}return t.userState!=null&&t.hasOwnProperty("userState")&&(n.userState=t.userState),t.lastCheckinDate!=null&&t.hasOwnProperty("lastCheckinDate")&&(typeof t.lastCheckinDate=="number"?n.lastCheckinDate=i.longs===String?String(t.lastCheckinDate):t.lastCheckinDate:n.lastCheckinDate=i.longs===String?r.Long.prototype.toString.call(t.lastCheckinDate):i.longs===Number?new r.LongBits(t.lastCheckinDate.low>>>0,t.lastCheckinDate.high>>>0).toNumber():t.lastCheckinDate),t.checkinToday!=null&&t.hasOwnProperty("checkinToday")&&(n.checkinToday=t.checkinToday),t.userDayCount!=null&&t.hasOwnProperty("userDayCount")&&(n.userDayCount=t.userDayCount),t.userViewTime!=null&&t.hasOwnProperty("userViewTime")&&(n.userViewTime=t.userViewTime),t.portrait!=null&&t.hasOwnProperty("portrait")&&(n.portrait=t.portrait),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.UserActivity"},e}(),c.SeasonShow=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.buttonText=t.string();break}case 2:{o.joinText=t.string();break}case 3:{o.ruleText=t.string();break}case 4:{o.checkinText=t.string();break}case 5:{o.checkinPrompt=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.SeasonShow)return t;let i=new u.bilibili.app.viewunite.common.SeasonShow;return t.buttonText!=null&&(i.buttonText=String(t.buttonText)),t.joinText!=null&&(i.joinText=String(t.joinText)),t.ruleText!=null&&(i.ruleText=String(t.ruleText)),t.checkinText!=null&&(i.checkinText=String(t.checkinText)),t.checkinPrompt!=null&&(i.checkinPrompt=String(t.checkinPrompt)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.buttonText="",n.joinText="",n.ruleText="",n.checkinText="",n.checkinPrompt=""),t.buttonText!=null&&t.hasOwnProperty("buttonText")&&(n.buttonText=t.buttonText),t.joinText!=null&&t.hasOwnProperty("joinText")&&(n.joinText=t.joinText),t.ruleText!=null&&t.hasOwnProperty("ruleText")&&(n.ruleText=t.ruleText),t.checkinText!=null&&t.hasOwnProperty("checkinText")&&(n.checkinText=t.checkinText),t.checkinPrompt!=null&&t.hasOwnProperty("checkinPrompt")&&(n.checkinPrompt=t.checkinPrompt),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.SeasonShow"},e}(),c.SerialSeason=function(){function e(l){if(this.report={},l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.seasonId=t.int32();break}case 2:{o.title=t.string();break}case 3:{o.seasonTitle=t.string();break}case 4:{o.isNew=t.int32();break}case 5:{o.cover=t.string();break}case 6:{o.badge=t.string();break}case 7:{o.badgeType=t.int32();break}case 8:{o.badgeInfo=u.bilibili.app.viewunite.common.BadgeInfo.decode(t,t.uint32());break}case 9:{o.link=t.string();break}case 10:{o.resource=t.string();break}case 11:{o.newEp=u.bilibili.app.viewunite.common.NewEp.decode(t,t.uint32());break}case 12:{o.report===r.emptyObject&&(o.report={});let v=t.uint32()+t.pos;for(a="",y="";t.pos>>3){case 1:a=t.string();break;case 2:y=t.string();break;default:t.skipType(g&7);break}}o.report[a]=y;break}default:t.skipType(s&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.SerialSeason)return t;let i=new u.bilibili.app.viewunite.common.SerialSeason;if(t.seasonId!=null&&(i.seasonId=t.seasonId|0),t.title!=null&&(i.title=String(t.title)),t.seasonTitle!=null&&(i.seasonTitle=String(t.seasonTitle)),t.isNew!=null&&(i.isNew=t.isNew|0),t.cover!=null&&(i.cover=String(t.cover)),t.badge!=null&&(i.badge=String(t.badge)),t.badgeType!=null&&(i.badgeType=t.badgeType|0),t.badgeInfo!=null){if(typeof t.badgeInfo!="object")throw TypeError(".bilibili.app.viewunite.common.SerialSeason.badgeInfo: object expected");i.badgeInfo=u.bilibili.app.viewunite.common.BadgeInfo.fromObject(t.badgeInfo)}if(t.link!=null&&(i.link=String(t.link)),t.resource!=null&&(i.resource=String(t.resource)),t.newEp!=null){if(typeof t.newEp!="object")throw TypeError(".bilibili.app.viewunite.common.SerialSeason.newEp: object expected");i.newEp=u.bilibili.app.viewunite.common.NewEp.fromObject(t.newEp)}if(t.report){if(typeof t.report!="object")throw TypeError(".bilibili.app.viewunite.common.SerialSeason.report: object expected");i.report={};for(let n=Object.keys(t.report),o=0;o>>3){case 1:{o.id=t.int32();break}case 2:{o.title=t.string();break}case 3:{o.desc=t.string();break}case 4:{o.isNew=t.int32();break}case 5:{o.more=t.string();break}case 6:{o.cover=t.string();break}case 7:{o.indexShow=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.NewEp)return t;let i=new u.bilibili.app.viewunite.common.NewEp;return t.id!=null&&(i.id=t.id|0),t.title!=null&&(i.title=String(t.title)),t.desc!=null&&(i.desc=String(t.desc)),t.isNew!=null&&(i.isNew=t.isNew|0),t.more!=null&&(i.more=String(t.more)),t.cover!=null&&(i.cover=String(t.cover)),t.indexShow!=null&&(i.indexShow=String(t.indexShow)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.id=0,n.title="",n.desc="",n.isNew=0,n.more="",n.cover="",n.indexShow=""),t.id!=null&&t.hasOwnProperty("id")&&(n.id=t.id),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.desc!=null&&t.hasOwnProperty("desc")&&(n.desc=t.desc),t.isNew!=null&&t.hasOwnProperty("isNew")&&(n.isNew=t.isNew),t.more!=null&&t.hasOwnProperty("more")&&(n.more=t.more),t.cover!=null&&t.hasOwnProperty("cover")&&(n.cover=t.cover),t.indexShow!=null&&t.hasOwnProperty("indexShow")&&(n.indexShow=t.indexShow),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.NewEp"},e}(),c.FollowLayer=function(){function e(l){if(this.report={},l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.staff=u.bilibili.app.viewunite.common.Staff.decode(t,t.uint32());break}case 2:{o.desc=u.bilibili.app.viewunite.common.Desc.decode(t,t.uint32());break}case 3:{o.report===r.emptyObject&&(o.report={});let v=t.uint32()+t.pos;for(a="",y="";t.pos>>3){case 1:a=t.string();break;case 2:y=t.string();break;default:t.skipType(g&7);break}}o.report[a]=y;break}default:t.skipType(s&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.FollowLayer)return t;let i=new u.bilibili.app.viewunite.common.FollowLayer;if(t.staff!=null){if(typeof t.staff!="object")throw TypeError(".bilibili.app.viewunite.common.FollowLayer.staff: object expected");i.staff=u.bilibili.app.viewunite.common.Staff.fromObject(t.staff)}if(t.desc!=null){if(typeof t.desc!="object")throw TypeError(".bilibili.app.viewunite.common.FollowLayer.desc: object expected");i.desc=u.bilibili.app.viewunite.common.Desc.fromObject(t.desc)}if(t.report){if(typeof t.report!="object")throw TypeError(".bilibili.app.viewunite.common.FollowLayer.report: object expected");i.report={};for(let n=Object.keys(t.report),o=0;o>>3){case 1:{o.info=t.string();break}case 2:{o.title=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.Desc)return t;let i=new u.bilibili.app.viewunite.common.Desc;return t.info!=null&&(i.info=String(t.info)),t.title!=null&&(i.title=String(t.title)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.info="",n.title=""),t.info!=null&&t.hasOwnProperty("info")&&(n.info=t.info),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.Desc"},e}(),c.SectionData=function(){function e(l){if(this.episodeIds=[],this.episodes=[],this.seasons=[],this.report={},l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.id=t.int32();break}case 2:{o.sectionId=t.int32();break}case 3:{o.title=t.string();break}case 4:{o.canOrdDesc=t.int32();break}case 5:{o.more=t.string();break}case 6:{if(o.episodeIds&&o.episodeIds.length||(o.episodeIds=[]),(s&7)===2){let v=t.uint32()+t.pos;for(;t.pos>>3){case 1:a=t.string();break;case 2:y=t.string();break;default:t.skipType(g&7);break}}o.report[a]=y;break}case 15:{o.bgInfo=u.bilibili.app.viewunite.common.EpBgInfo.decode(t,t.uint32());break}default:t.skipType(s&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.SectionData)return t;let i=new u.bilibili.app.viewunite.common.SectionData;if(t.id!=null&&(i.id=t.id|0),t.sectionId!=null&&(i.sectionId=t.sectionId|0),t.title!=null&&(i.title=String(t.title)),t.canOrdDesc!=null&&(i.canOrdDesc=t.canOrdDesc|0),t.more!=null&&(i.more=String(t.more)),t.episodeIds){if(!Array.isArray(t.episodeIds))throw TypeError(".bilibili.app.viewunite.common.SectionData.episodeIds: array expected");i.episodeIds=[];for(let n=0;n>>3){case 1:{o.title=t.string();break}case 2:{o.leftStrikethroughText=t.string();break}case 3:{o.type=t.string();break}case 4:{o.link=t.string();break}case 5:{o.badgeInfo=u.bilibili.app.viewunite.common.BadgeInfo.decode(t,t.uint32());break}case 6:{o.subTitle=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.Button)return t;let i=new u.bilibili.app.viewunite.common.Button;if(t.title!=null&&(i.title=String(t.title)),t.leftStrikethroughText!=null&&(i.leftStrikethroughText=String(t.leftStrikethroughText)),t.type!=null&&(i.type=String(t.type)),t.link!=null&&(i.link=String(t.link)),t.badgeInfo!=null){if(typeof t.badgeInfo!="object")throw TypeError(".bilibili.app.viewunite.common.Button.badgeInfo: object expected");i.badgeInfo=u.bilibili.app.viewunite.common.BadgeInfo.fromObject(t.badgeInfo)}return t.subTitle!=null&&(i.subTitle=String(t.subTitle)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.title="",n.leftStrikethroughText="",n.type="",n.link="",n.badgeInfo=null,n.subTitle=""),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.leftStrikethroughText!=null&&t.hasOwnProperty("leftStrikethroughText")&&(n.leftStrikethroughText=t.leftStrikethroughText),t.type!=null&&t.hasOwnProperty("type")&&(n.type=t.type),t.link!=null&&t.hasOwnProperty("link")&&(n.link=t.link),t.badgeInfo!=null&&t.hasOwnProperty("badgeInfo")&&(n.badgeInfo=u.bilibili.app.viewunite.common.BadgeInfo.toObject(t.badgeInfo,i)),t.subTitle!=null&&t.hasOwnProperty("subTitle")&&(n.subTitle=t.subTitle),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.Button"},e}(),c.CombinationEp=function(){function e(l){if(this.episodeIds=[],this.episodes=[],this.serialSeason=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.id=t.int32();break}case 2:{o.sectionId=t.int32();break}case 3:{o.title=t.string();break}case 4:{o.canOrdDesc=t.int32();break}case 5:{o.more=t.string();break}case 6:{if(o.episodeIds&&o.episodeIds.length||(o.episodeIds=[]),(a&7)===2){let y=t.uint32()+t.pos;for(;t.pos>>3){case 1:{a.title=i.string();break}case 2:{a.moduleStyle=u.bilibili.app.viewunite.common.Style.decode(i,i.uint32());break}case 3:{a.more=i.string();break}case 4:{a.activity=u.bilibili.app.viewunite.common.Activity.decode(i,i.uint32());break}case 5:{a.characters=u.bilibili.app.viewunite.common.Characters.decode(i,i.uint32());break}case 6:{a.theatreHotTopic=u.bilibili.app.viewunite.common.TheatreHotTopic.decode(i,i.uint32());break}case 7:{a.aggEps=u.bilibili.app.viewunite.common.AggEps.decode(i,i.uint32());break}case 10:{a.actPageItems=u.bilibili.app.viewunite.common.ActPageItems.decode(i,i.uint32());break}case 8:{a.id=i.int32();break}case 9:{a.report===r.emptyObject&&(a.report={});let g=i.uint32()+i.pos;for(y="",s="";i.pos>>3){case 1:y=i.string();break;case 2:s=i.string();break;default:i.skipType(S&7);break}}a.report[y]=s;break}default:i.skipType(v&7);break}}return a},e.fromObject=function(i){if(i instanceof u.bilibili.app.viewunite.common.DeliveryData)return i;let n=new u.bilibili.app.viewunite.common.DeliveryData;if(i.title!=null&&(n.title=String(i.title)),i.moduleStyle!=null){if(typeof i.moduleStyle!="object")throw TypeError(".bilibili.app.viewunite.common.DeliveryData.moduleStyle: object expected");n.moduleStyle=u.bilibili.app.viewunite.common.Style.fromObject(i.moduleStyle)}if(i.more!=null&&(n.more=String(i.more)),i.activity!=null){if(typeof i.activity!="object")throw TypeError(".bilibili.app.viewunite.common.DeliveryData.activity: object expected");n.activity=u.bilibili.app.viewunite.common.Activity.fromObject(i.activity)}if(i.characters!=null){if(typeof i.characters!="object")throw TypeError(".bilibili.app.viewunite.common.DeliveryData.characters: object expected");n.characters=u.bilibili.app.viewunite.common.Characters.fromObject(i.characters)}if(i.theatreHotTopic!=null){if(typeof i.theatreHotTopic!="object")throw TypeError(".bilibili.app.viewunite.common.DeliveryData.theatreHotTopic: object expected");n.theatreHotTopic=u.bilibili.app.viewunite.common.TheatreHotTopic.fromObject(i.theatreHotTopic)}if(i.aggEps!=null){if(typeof i.aggEps!="object")throw TypeError(".bilibili.app.viewunite.common.DeliveryData.aggEps: object expected");n.aggEps=u.bilibili.app.viewunite.common.AggEps.fromObject(i.aggEps)}if(i.actPageItems!=null){if(typeof i.actPageItems!="object")throw TypeError(".bilibili.app.viewunite.common.DeliveryData.actPageItems: object expected");n.actPageItems=u.bilibili.app.viewunite.common.ActPageItems.fromObject(i.actPageItems)}if(i.id!=null&&(n.id=i.id|0),i.report){if(typeof i.report!="object")throw TypeError(".bilibili.app.viewunite.common.DeliveryData.report: object expected");n.report={};for(let o=Object.keys(i.report),a=0;a>>3){case 1:{o.aggEpCards&&o.aggEpCards.length||(o.aggEpCards=[]),o.aggEpCards.push(u.bilibili.app.viewunite.common.AggEpCard.decode(t,t.uint32()));break}case 2:{o.placeIndex=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.AggEps)return t;let i=new u.bilibili.app.viewunite.common.AggEps;if(t.aggEpCards){if(!Array.isArray(t.aggEpCards))throw TypeError(".bilibili.app.viewunite.common.AggEps.aggEpCards: array expected");i.aggEpCards=[];for(let n=0;n>>3){case 1:{o.title=t.string();break}case 2:{o.cover=t.string();break}case 3:{o.icon=t.string();break}case 4:{o.num=t.int32();break}case 5:{o.jumpUrl=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.AggEpCard)return t;let i=new u.bilibili.app.viewunite.common.AggEpCard;return t.title!=null&&(i.title=String(t.title)),t.cover!=null&&(i.cover=String(t.cover)),t.icon!=null&&(i.icon=String(t.icon)),t.num!=null&&(i.num=t.num|0),t.jumpUrl!=null&&(i.jumpUrl=String(t.jumpUrl)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.title="",n.cover="",n.icon="",n.num=0,n.jumpUrl=""),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.cover!=null&&t.hasOwnProperty("cover")&&(n.cover=t.cover),t.icon!=null&&t.hasOwnProperty("icon")&&(n.icon=t.icon),t.num!=null&&t.hasOwnProperty("num")&&(n.num=t.num),t.jumpUrl!=null&&t.hasOwnProperty("jumpUrl")&&(n.jumpUrl=t.jumpUrl),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.AggEpCard"},e}(),c.TheatreHotTopic=function(){function e(l){if(this.report={},l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.theatreId=t.int64();break}case 2:{o.theatreSetId=t.int64();break}case 3:{o.theatreTitle=t.string();break}case 4:{o.backgroundImageUrl=t.string();break}case 5:{o.theatreUrl=t.string();break}case 6:{o.hotTopicId=t.int64();break}case 7:{o.hotTopicSetId=t.int64();break}case 8:{o.hotTopicTitle=t.string();break}case 9:{o.hotTopicUrl=t.string();break}case 10:{o.isSubscribe=t.int32();break}case 11:{o.report===r.emptyObject&&(o.report={});let v=t.uint32()+t.pos;for(a="",y="";t.pos>>3){case 1:a=t.string();break;case 2:y=t.string();break;default:t.skipType(g&7);break}}o.report[a]=y;break}default:t.skipType(s&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.TheatreHotTopic)return t;let i=new u.bilibili.app.viewunite.common.TheatreHotTopic;if(t.theatreId!=null&&(r.Long?(i.theatreId=r.Long.fromValue(t.theatreId)).unsigned=!1:typeof t.theatreId=="string"?i.theatreId=parseInt(t.theatreId,10):typeof t.theatreId=="number"?i.theatreId=t.theatreId:typeof t.theatreId=="object"&&(i.theatreId=new r.LongBits(t.theatreId.low>>>0,t.theatreId.high>>>0).toNumber())),t.theatreSetId!=null&&(r.Long?(i.theatreSetId=r.Long.fromValue(t.theatreSetId)).unsigned=!1:typeof t.theatreSetId=="string"?i.theatreSetId=parseInt(t.theatreSetId,10):typeof t.theatreSetId=="number"?i.theatreSetId=t.theatreSetId:typeof t.theatreSetId=="object"&&(i.theatreSetId=new r.LongBits(t.theatreSetId.low>>>0,t.theatreSetId.high>>>0).toNumber())),t.theatreTitle!=null&&(i.theatreTitle=String(t.theatreTitle)),t.backgroundImageUrl!=null&&(i.backgroundImageUrl=String(t.backgroundImageUrl)),t.theatreUrl!=null&&(i.theatreUrl=String(t.theatreUrl)),t.hotTopicId!=null&&(r.Long?(i.hotTopicId=r.Long.fromValue(t.hotTopicId)).unsigned=!1:typeof t.hotTopicId=="string"?i.hotTopicId=parseInt(t.hotTopicId,10):typeof t.hotTopicId=="number"?i.hotTopicId=t.hotTopicId:typeof t.hotTopicId=="object"&&(i.hotTopicId=new r.LongBits(t.hotTopicId.low>>>0,t.hotTopicId.high>>>0).toNumber())),t.hotTopicSetId!=null&&(r.Long?(i.hotTopicSetId=r.Long.fromValue(t.hotTopicSetId)).unsigned=!1:typeof t.hotTopicSetId=="string"?i.hotTopicSetId=parseInt(t.hotTopicSetId,10):typeof t.hotTopicSetId=="number"?i.hotTopicSetId=t.hotTopicSetId:typeof t.hotTopicSetId=="object"&&(i.hotTopicSetId=new r.LongBits(t.hotTopicSetId.low>>>0,t.hotTopicSetId.high>>>0).toNumber())),t.hotTopicTitle!=null&&(i.hotTopicTitle=String(t.hotTopicTitle)),t.hotTopicUrl!=null&&(i.hotTopicUrl=String(t.hotTopicUrl)),t.isSubscribe!=null&&(i.isSubscribe=t.isSubscribe|0),t.report){if(typeof t.report!="object")throw TypeError(".bilibili.app.viewunite.common.TheatreHotTopic.report: object expected");i.report={};for(let n=Object.keys(t.report),o=0;o>>0,t.theatreId.high>>>0).toNumber():t.theatreId),t.theatreSetId!=null&&t.hasOwnProperty("theatreSetId")&&(typeof t.theatreSetId=="number"?n.theatreSetId=i.longs===String?String(t.theatreSetId):t.theatreSetId:n.theatreSetId=i.longs===String?r.Long.prototype.toString.call(t.theatreSetId):i.longs===Number?new r.LongBits(t.theatreSetId.low>>>0,t.theatreSetId.high>>>0).toNumber():t.theatreSetId),t.theatreTitle!=null&&t.hasOwnProperty("theatreTitle")&&(n.theatreTitle=t.theatreTitle),t.backgroundImageUrl!=null&&t.hasOwnProperty("backgroundImageUrl")&&(n.backgroundImageUrl=t.backgroundImageUrl),t.theatreUrl!=null&&t.hasOwnProperty("theatreUrl")&&(n.theatreUrl=t.theatreUrl),t.hotTopicId!=null&&t.hasOwnProperty("hotTopicId")&&(typeof t.hotTopicId=="number"?n.hotTopicId=i.longs===String?String(t.hotTopicId):t.hotTopicId:n.hotTopicId=i.longs===String?r.Long.prototype.toString.call(t.hotTopicId):i.longs===Number?new r.LongBits(t.hotTopicId.low>>>0,t.hotTopicId.high>>>0).toNumber():t.hotTopicId),t.hotTopicSetId!=null&&t.hasOwnProperty("hotTopicSetId")&&(typeof t.hotTopicSetId=="number"?n.hotTopicSetId=i.longs===String?String(t.hotTopicSetId):t.hotTopicSetId:n.hotTopicSetId=i.longs===String?r.Long.prototype.toString.call(t.hotTopicSetId):i.longs===Number?new r.LongBits(t.hotTopicSetId.low>>>0,t.hotTopicSetId.high>>>0).toNumber():t.hotTopicSetId),t.hotTopicTitle!=null&&t.hasOwnProperty("hotTopicTitle")&&(n.hotTopicTitle=t.hotTopicTitle),t.hotTopicUrl!=null&&t.hasOwnProperty("hotTopicUrl")&&(n.hotTopicUrl=t.hotTopicUrl),t.isSubscribe!=null&&t.hasOwnProperty("isSubscribe")&&(n.isSubscribe=t.isSubscribe);let o;if(t.report&&(o=Object.keys(t.report)).length){n.report={};for(let a=0;a>>3){case 1:{o.item&&o.item.length||(o.item=[]),o.item.push(u.bilibili.app.viewunite.common.ActBannerItem.decode(t,t.uint32()));break}case 2:{o.showStyle=t.int32();break}case 3:{o.title=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.ActPageItems)return t;let i=new u.bilibili.app.viewunite.common.ActPageItems;if(t.item){if(!Array.isArray(t.item))throw TypeError(".bilibili.app.viewunite.common.ActPageItems.item: array expected");i.item=[];for(let n=0;n>>3){case 1:{o.id=t.int32();break}case 2:{o.title=t.string();break}case 3:{o.link=t.string();break}case 4:{o.cover=t.string();break}case 5:{o.type=t.int32();break}case 6:{o.ab=t.string();break}case 7:{o.showName=t.string();break}case 8:{o.picurl=t.string();break}case 9:{o.picurlSelected=t.string();break}case 10:{o.h5Link=t.string();break}case 11:{o.jumpMode=t.string();break}case 12:{o.items&&o.items.length||(o.items=[]),o.items.push(u.bilibili.app.viewunite.common.Item.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.Activity)return t;let i=new u.bilibili.app.viewunite.common.Activity;if(t.id!=null&&(i.id=t.id|0),t.title!=null&&(i.title=String(t.title)),t.link!=null&&(i.link=String(t.link)),t.cover!=null&&(i.cover=String(t.cover)),t.type!=null&&(i.type=t.type|0),t.ab!=null&&(i.ab=String(t.ab)),t.showName!=null&&(i.showName=String(t.showName)),t.picurl!=null&&(i.picurl=String(t.picurl)),t.picurlSelected!=null&&(i.picurlSelected=String(t.picurlSelected)),t.h5Link!=null&&(i.h5Link=String(t.h5Link)),t.jumpMode!=null&&(i.jumpMode=String(t.jumpMode)),t.items){if(!Array.isArray(t.items))throw TypeError(".bilibili.app.viewunite.common.Activity.items: array expected");i.items=[];for(let n=0;n>>3){case 1:{o.pid=t.int32();break}case 2:{o.name=t.string();break}case 3:{o.image=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.Pendant)return t;let i=new u.bilibili.app.viewunite.common.Pendant;return t.pid!=null&&(i.pid=t.pid|0),t.name!=null&&(i.name=String(t.name)),t.image!=null&&(i.image=String(t.image)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.pid=0,n.name="",n.image=""),t.pid!=null&&t.hasOwnProperty("pid")&&(n.pid=t.pid),t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),t.image!=null&&t.hasOwnProperty("image")&&(n.image=t.image),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.Pendant"},e}(),c.Threshold=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.bp=t.int32();break}case 2:{o.days=t.int32();break}case 3:{o.daysText=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.Threshold)return t;let i=new u.bilibili.app.viewunite.common.Threshold;return t.bp!=null&&(i.bp=t.bp|0),t.days!=null&&(i.days=t.days|0),t.daysText!=null&&(i.daysText=String(t.daysText)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.bp=0,n.days=0,n.daysText=""),t.bp!=null&&t.hasOwnProperty("bp")&&(n.bp=t.bp),t.days!=null&&t.hasOwnProperty("days")&&(n.days=t.days),t.daysText!=null&&t.hasOwnProperty("daysText")&&(n.daysText=t.daysText),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.Threshold"},e}(),c.Item=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.link=t.string();break}case 2:{o.cover=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.Item)return t;let i=new u.bilibili.app.viewunite.common.Item;return t.link!=null&&(i.link=String(t.link)),t.cover!=null&&(i.cover=String(t.cover)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.link="",n.cover=""),t.link!=null&&t.hasOwnProperty("link")&&(n.link=t.link),t.cover!=null&&t.hasOwnProperty("cover")&&(n.cover=t.cover),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.Item"},e}(),c.Characters=function(){function e(l){if(this.groups=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.groups&&o.groups.length||(o.groups=[]),o.groups.push(u.bilibili.app.viewunite.common.CharacterGroup.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.Characters)return t;let i=new u.bilibili.app.viewunite.common.Characters;if(t.groups){if(!Array.isArray(t.groups))throw TypeError(".bilibili.app.viewunite.common.Characters.groups: array expected");i.groups=[];for(let n=0;n>>3){case 1:{o.title=t.string();break}case 2:{o.characters&&o.characters.length||(o.characters=[]),o.characters.push(u.bilibili.app.viewunite.common.Celebrity.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.CharacterGroup)return t;let i=new u.bilibili.app.viewunite.common.CharacterGroup;if(t.title!=null&&(i.title=String(t.title)),t.characters){if(!Array.isArray(t.characters))throw TypeError(".bilibili.app.viewunite.common.CharacterGroup.characters: array expected");i.characters=[];for(let n=0;n>>3){case 1:{o.id=t.int32();break}case 2:{o.name=t.string();break}case 3:{o.role=t.string();break}case 4:{o.avatar=t.string();break}case 5:{o.shortDesc=t.string();break}case 6:{o.desc=t.string();break}case 7:{o.characterAvatar=t.string();break}case 8:{o.link=t.string();break}case 9:{o.mid=t.int64();break}case 10:{o.isFollow=t.int32();break}case 11:{o.occupationName=t.string();break}case 12:{o.occupationType=t.int32();break}case 13:{o.relateAttr=t.int32();break}case 14:{o.smallAvatar=t.string();break}case 15:{o.report===r.emptyObject&&(o.report={});let v=t.uint32()+t.pos;for(a="",y="";t.pos>>3){case 1:a=t.string();break;case 2:y=t.string();break;default:t.skipType(g&7);break}}o.report[a]=y;break}case 16:{o.official=u.bilibili.app.viewunite.common.OfficialVerify.decode(t,t.uint32());break}default:t.skipType(s&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.Celebrity)return t;let i=new u.bilibili.app.viewunite.common.Celebrity;switch(t.id!=null&&(i.id=t.id|0),t.name!=null&&(i.name=String(t.name)),t.role!=null&&(i.role=String(t.role)),t.avatar!=null&&(i.avatar=String(t.avatar)),t.shortDesc!=null&&(i.shortDesc=String(t.shortDesc)),t.desc!=null&&(i.desc=String(t.desc)),t.characterAvatar!=null&&(i.characterAvatar=String(t.characterAvatar)),t.link!=null&&(i.link=String(t.link)),t.mid!=null&&(r.Long?(i.mid=r.Long.fromValue(t.mid)).unsigned=!1:typeof t.mid=="string"?i.mid=parseInt(t.mid,10):typeof t.mid=="number"?i.mid=t.mid:typeof t.mid=="object"&&(i.mid=new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber())),t.isFollow!=null&&(i.isFollow=t.isFollow|0),t.occupationName!=null&&(i.occupationName=String(t.occupationName)),t.occupationType){default:if(typeof t.occupationType=="number"){i.occupationType=t.occupationType;break}break;case"STAFF":case 0:i.occupationType=0;break;case"CAST":case 1:i.occupationType=1;break;case"UNKNOWN_TYPE":case-1:i.occupationType=-1;break}if(t.relateAttr!=null&&(i.relateAttr=t.relateAttr|0),t.smallAvatar!=null&&(i.smallAvatar=String(t.smallAvatar)),t.report){if(typeof t.report!="object")throw TypeError(".bilibili.app.viewunite.common.Celebrity.report: object expected");i.report={};for(let n=Object.keys(t.report),o=0;o>>0,t.mid.high>>>0).toNumber():t.mid),t.isFollow!=null&&t.hasOwnProperty("isFollow")&&(n.isFollow=t.isFollow),t.occupationName!=null&&t.hasOwnProperty("occupationName")&&(n.occupationName=t.occupationName),t.occupationType!=null&&t.hasOwnProperty("occupationType")&&(n.occupationType=i.enums===String?u.bilibili.app.viewunite.common.OccupationType[t.occupationType]===void 0?t.occupationType:u.bilibili.app.viewunite.common.OccupationType[t.occupationType]:t.occupationType),t.relateAttr!=null&&t.hasOwnProperty("relateAttr")&&(n.relateAttr=t.relateAttr),t.smallAvatar!=null&&t.hasOwnProperty("smallAvatar")&&(n.smallAvatar=t.smallAvatar);let o;if(t.report&&(o=Object.keys(t.report)).length){n.report={};for(let a=0;a>>3){case 1:{o.line=t.int32();break}case 2:{o.hidden=t.int32();break}case 3:{o.showPages&&o.showPages.length||(o.showPages=[]),o.showPages.push(t.string());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.Style)return t;let i=new u.bilibili.app.viewunite.common.Style;if(t.line!=null&&(i.line=t.line|0),t.hidden!=null&&(i.hidden=t.hidden|0),t.showPages){if(!Array.isArray(t.showPages))throw TypeError(".bilibili.app.viewunite.common.Style.showPages: array expected");i.showPages=[];for(let n=0;n>>3){case 1:{o.id=t.int32();break}case 2:{o.name=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.CardStyle)return t;let i=new u.bilibili.app.viewunite.common.CardStyle;return t.id!=null&&(i.id=t.id|0),t.name!=null&&(i.name=String(t.name)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.id=0,n.name=""),t.id!=null&&t.hasOwnProperty("id")&&(n.id=t.id),t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.CardStyle"},e}(),c.ViewEpisode=function(){function e(l){if(this.upInfos=[],this.multiViewEps=[],this.report={},l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.epId=t.int64();break}case 2:{o.badge=t.string();break}case 3:{o.badgeType=t.int32();break}case 4:{o.badgeInfo=u.bilibili.app.viewunite.common.BadgeInfo.decode(t,t.uint32());break}case 5:{o.duration=t.int32();break}case 6:{o.status=t.int32();break}case 7:{o.cover=t.string();break}case 8:{o.aid=t.int64();break}case 9:{o.title=t.string();break}case 10:{o.movieTitle=t.string();break}case 11:{o.subtitle=t.string();break}case 12:{o.longTitle=t.string();break}case 13:{o.toastTitle=t.string();break}case 14:{o.cid=t.int64();break}case 15:{o.from=t.string();break}case 16:{o.shareUrl=t.string();break}case 17:{o.shareCopy=t.string();break}case 18:{o.shortLink=t.string();break}case 19:{o.vid=t.string();break}case 20:{o.releaseDate=t.string();break}case 21:{o.dimension=u.bilibili.app.viewunite.common.Dimension.decode(t,t.uint32());break}case 22:{o.rights=u.bilibili.app.viewunite.common.Rights.decode(t,t.uint32());break}case 23:{o.interaction=u.bilibili.app.viewunite.common.Interaction.decode(t,t.uint32());break}case 24:{o.bvid=t.string();break}case 25:{o.archiveAttr=t.int32();break}case 26:{o.link=t.string();break}case 27:{o.linkType=t.string();break}case 28:{o.bmid=t.string();break}case 29:{o.pubTime=t.int64();break}case 30:{o.pv=t.int32();break}case 31:{o.epIndex=t.int32();break}case 32:{o.sectionIndex=t.int32();break}case 33:{o.upInfos&&o.upInfos.length||(o.upInfos=[]),o.upInfos.push(u.bilibili.app.viewunite.common.Staff.decode(t,t.uint32()));break}case 34:{o.upInfo=u.bilibili.app.viewunite.common.Staff.decode(t,t.uint32());break}case 35:{o.dialogType=t.string();break}case 36:{o.toastType=t.string();break}case 37:{o.multiViewEps&&o.multiViewEps.length||(o.multiViewEps=[]),o.multiViewEps.push(u.bilibili.app.viewunite.common.MultiViewEp.decode(t,t.uint32()));break}case 38:{o.isSubView=t.bool();break}case 39:{o.isViewHide=t.bool();break}case 40:{o.jumpLink=t.string();break}case 41:{o.statForUnity=u.bilibili.app.viewunite.common.Stat.decode(t,t.uint32());break}case 42:{o.report===r.emptyObject&&(o.report={});let v=t.uint32()+t.pos;for(a="",y="";t.pos>>3){case 1:a=t.string();break;case 2:y=t.string();break;default:t.skipType(g&7);break}}o.report[a]=y;break}default:t.skipType(s&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.ViewEpisode)return t;let i=new u.bilibili.app.viewunite.common.ViewEpisode;if(t.epId!=null&&(r.Long?(i.epId=r.Long.fromValue(t.epId)).unsigned=!1:typeof t.epId=="string"?i.epId=parseInt(t.epId,10):typeof t.epId=="number"?i.epId=t.epId:typeof t.epId=="object"&&(i.epId=new r.LongBits(t.epId.low>>>0,t.epId.high>>>0).toNumber())),t.badge!=null&&(i.badge=String(t.badge)),t.badgeType!=null&&(i.badgeType=t.badgeType|0),t.badgeInfo!=null){if(typeof t.badgeInfo!="object")throw TypeError(".bilibili.app.viewunite.common.ViewEpisode.badgeInfo: object expected");i.badgeInfo=u.bilibili.app.viewunite.common.BadgeInfo.fromObject(t.badgeInfo)}if(t.duration!=null&&(i.duration=t.duration|0),t.status!=null&&(i.status=t.status|0),t.cover!=null&&(i.cover=String(t.cover)),t.aid!=null&&(r.Long?(i.aid=r.Long.fromValue(t.aid)).unsigned=!1:typeof t.aid=="string"?i.aid=parseInt(t.aid,10):typeof t.aid=="number"?i.aid=t.aid:typeof t.aid=="object"&&(i.aid=new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber())),t.title!=null&&(i.title=String(t.title)),t.movieTitle!=null&&(i.movieTitle=String(t.movieTitle)),t.subtitle!=null&&(i.subtitle=String(t.subtitle)),t.longTitle!=null&&(i.longTitle=String(t.longTitle)),t.toastTitle!=null&&(i.toastTitle=String(t.toastTitle)),t.cid!=null&&(r.Long?(i.cid=r.Long.fromValue(t.cid)).unsigned=!1:typeof t.cid=="string"?i.cid=parseInt(t.cid,10):typeof t.cid=="number"?i.cid=t.cid:typeof t.cid=="object"&&(i.cid=new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber())),t.from!=null&&(i.from=String(t.from)),t.shareUrl!=null&&(i.shareUrl=String(t.shareUrl)),t.shareCopy!=null&&(i.shareCopy=String(t.shareCopy)),t.shortLink!=null&&(i.shortLink=String(t.shortLink)),t.vid!=null&&(i.vid=String(t.vid)),t.releaseDate!=null&&(i.releaseDate=String(t.releaseDate)),t.dimension!=null){if(typeof t.dimension!="object")throw TypeError(".bilibili.app.viewunite.common.ViewEpisode.dimension: object expected");i.dimension=u.bilibili.app.viewunite.common.Dimension.fromObject(t.dimension)}if(t.rights!=null){if(typeof t.rights!="object")throw TypeError(".bilibili.app.viewunite.common.ViewEpisode.rights: object expected");i.rights=u.bilibili.app.viewunite.common.Rights.fromObject(t.rights)}if(t.interaction!=null){if(typeof t.interaction!="object")throw TypeError(".bilibili.app.viewunite.common.ViewEpisode.interaction: object expected");i.interaction=u.bilibili.app.viewunite.common.Interaction.fromObject(t.interaction)}if(t.bvid!=null&&(i.bvid=String(t.bvid)),t.archiveAttr!=null&&(i.archiveAttr=t.archiveAttr|0),t.link!=null&&(i.link=String(t.link)),t.linkType!=null&&(i.linkType=String(t.linkType)),t.bmid!=null&&(i.bmid=String(t.bmid)),t.pubTime!=null&&(r.Long?(i.pubTime=r.Long.fromValue(t.pubTime)).unsigned=!1:typeof t.pubTime=="string"?i.pubTime=parseInt(t.pubTime,10):typeof t.pubTime=="number"?i.pubTime=t.pubTime:typeof t.pubTime=="object"&&(i.pubTime=new r.LongBits(t.pubTime.low>>>0,t.pubTime.high>>>0).toNumber())),t.pv!=null&&(i.pv=t.pv|0),t.epIndex!=null&&(i.epIndex=t.epIndex|0),t.sectionIndex!=null&&(i.sectionIndex=t.sectionIndex|0),t.upInfos){if(!Array.isArray(t.upInfos))throw TypeError(".bilibili.app.viewunite.common.ViewEpisode.upInfos: array expected");i.upInfos=[];for(let n=0;n>>0,t.epId.high>>>0).toNumber():t.epId),t.badge!=null&&t.hasOwnProperty("badge")&&(n.badge=t.badge),t.badgeType!=null&&t.hasOwnProperty("badgeType")&&(n.badgeType=t.badgeType),t.badgeInfo!=null&&t.hasOwnProperty("badgeInfo")&&(n.badgeInfo=u.bilibili.app.viewunite.common.BadgeInfo.toObject(t.badgeInfo,i)),t.duration!=null&&t.hasOwnProperty("duration")&&(n.duration=t.duration),t.status!=null&&t.hasOwnProperty("status")&&(n.status=t.status),t.cover!=null&&t.hasOwnProperty("cover")&&(n.cover=t.cover),t.aid!=null&&t.hasOwnProperty("aid")&&(typeof t.aid=="number"?n.aid=i.longs===String?String(t.aid):t.aid:n.aid=i.longs===String?r.Long.prototype.toString.call(t.aid):i.longs===Number?new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber():t.aid),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.movieTitle!=null&&t.hasOwnProperty("movieTitle")&&(n.movieTitle=t.movieTitle),t.subtitle!=null&&t.hasOwnProperty("subtitle")&&(n.subtitle=t.subtitle),t.longTitle!=null&&t.hasOwnProperty("longTitle")&&(n.longTitle=t.longTitle),t.toastTitle!=null&&t.hasOwnProperty("toastTitle")&&(n.toastTitle=t.toastTitle),t.cid!=null&&t.hasOwnProperty("cid")&&(typeof t.cid=="number"?n.cid=i.longs===String?String(t.cid):t.cid:n.cid=i.longs===String?r.Long.prototype.toString.call(t.cid):i.longs===Number?new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber():t.cid),t.from!=null&&t.hasOwnProperty("from")&&(n.from=t.from),t.shareUrl!=null&&t.hasOwnProperty("shareUrl")&&(n.shareUrl=t.shareUrl),t.shareCopy!=null&&t.hasOwnProperty("shareCopy")&&(n.shareCopy=t.shareCopy),t.shortLink!=null&&t.hasOwnProperty("shortLink")&&(n.shortLink=t.shortLink),t.vid!=null&&t.hasOwnProperty("vid")&&(n.vid=t.vid),t.releaseDate!=null&&t.hasOwnProperty("releaseDate")&&(n.releaseDate=t.releaseDate),t.dimension!=null&&t.hasOwnProperty("dimension")&&(n.dimension=u.bilibili.app.viewunite.common.Dimension.toObject(t.dimension,i)),t.rights!=null&&t.hasOwnProperty("rights")&&(n.rights=u.bilibili.app.viewunite.common.Rights.toObject(t.rights,i)),t.interaction!=null&&t.hasOwnProperty("interaction")&&(n.interaction=u.bilibili.app.viewunite.common.Interaction.toObject(t.interaction,i)),t.bvid!=null&&t.hasOwnProperty("bvid")&&(n.bvid=t.bvid),t.archiveAttr!=null&&t.hasOwnProperty("archiveAttr")&&(n.archiveAttr=t.archiveAttr),t.link!=null&&t.hasOwnProperty("link")&&(n.link=t.link),t.linkType!=null&&t.hasOwnProperty("linkType")&&(n.linkType=t.linkType),t.bmid!=null&&t.hasOwnProperty("bmid")&&(n.bmid=t.bmid),t.pubTime!=null&&t.hasOwnProperty("pubTime")&&(typeof t.pubTime=="number"?n.pubTime=i.longs===String?String(t.pubTime):t.pubTime:n.pubTime=i.longs===String?r.Long.prototype.toString.call(t.pubTime):i.longs===Number?new r.LongBits(t.pubTime.low>>>0,t.pubTime.high>>>0).toNumber():t.pubTime),t.pv!=null&&t.hasOwnProperty("pv")&&(n.pv=t.pv),t.epIndex!=null&&t.hasOwnProperty("epIndex")&&(n.epIndex=t.epIndex),t.sectionIndex!=null&&t.hasOwnProperty("sectionIndex")&&(n.sectionIndex=t.sectionIndex),t.upInfos&&t.upInfos.length){n.upInfos=[];for(let a=0;a>>3){case 1:{o.allowDownload=t.int32();break}case 2:{o.allowReview=t.int32();break}case 3:{o.canWatch=t.int32();break}case 4:{o.resource=t.string();break}case 5:{o.allowDm=t.int32();break}case 6:{o.allowDemand=t.int32();break}case 7:{o.areaLimit=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.Rights)return t;let i=new u.bilibili.app.viewunite.common.Rights;return t.allowDownload!=null&&(i.allowDownload=t.allowDownload|0),t.allowReview!=null&&(i.allowReview=t.allowReview|0),t.canWatch!=null&&(i.canWatch=t.canWatch|0),t.resource!=null&&(i.resource=String(t.resource)),t.allowDm!=null&&(i.allowDm=t.allowDm|0),t.allowDemand!=null&&(i.allowDemand=t.allowDemand|0),t.areaLimit!=null&&(i.areaLimit=t.areaLimit|0),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.allowDownload=0,n.allowReview=0,n.canWatch=0,n.resource="",n.allowDm=0,n.allowDemand=0,n.areaLimit=0),t.allowDownload!=null&&t.hasOwnProperty("allowDownload")&&(n.allowDownload=t.allowDownload),t.allowReview!=null&&t.hasOwnProperty("allowReview")&&(n.allowReview=t.allowReview),t.canWatch!=null&&t.hasOwnProperty("canWatch")&&(n.canWatch=t.canWatch),t.resource!=null&&t.hasOwnProperty("resource")&&(n.resource=t.resource),t.allowDm!=null&&t.hasOwnProperty("allowDm")&&(n.allowDm=t.allowDm),t.allowDemand!=null&&t.hasOwnProperty("allowDemand")&&(n.allowDemand=t.allowDemand),t.areaLimit!=null&&t.hasOwnProperty("areaLimit")&&(n.areaLimit=t.areaLimit),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.Rights"},e}(),c.Interaction=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.epId=t.int64();break}case 2:{o.historyNode=u.bilibili.app.viewunite.common.HistoryNode.decode(t,t.uint32());break}case 3:{o.graphVersion=t.int64();break}case 4:{o.msg=t.string();break}case 5:{o.isInteraction=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.Interaction)return t;let i=new u.bilibili.app.viewunite.common.Interaction;if(t.epId!=null&&(r.Long?(i.epId=r.Long.fromValue(t.epId)).unsigned=!1:typeof t.epId=="string"?i.epId=parseInt(t.epId,10):typeof t.epId=="number"?i.epId=t.epId:typeof t.epId=="object"&&(i.epId=new r.LongBits(t.epId.low>>>0,t.epId.high>>>0).toNumber())),t.historyNode!=null){if(typeof t.historyNode!="object")throw TypeError(".bilibili.app.viewunite.common.Interaction.historyNode: object expected");i.historyNode=u.bilibili.app.viewunite.common.HistoryNode.fromObject(t.historyNode)}return t.graphVersion!=null&&(r.Long?(i.graphVersion=r.Long.fromValue(t.graphVersion)).unsigned=!1:typeof t.graphVersion=="string"?i.graphVersion=parseInt(t.graphVersion,10):typeof t.graphVersion=="number"?i.graphVersion=t.graphVersion:typeof t.graphVersion=="object"&&(i.graphVersion=new r.LongBits(t.graphVersion.low>>>0,t.graphVersion.high>>>0).toNumber())),t.msg!=null&&(i.msg=String(t.msg)),t.isInteraction!=null&&(i.isInteraction=!!t.isInteraction),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.epId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.epId=i.longs===String?"0":0;if(n.historyNode=null,r.Long){let o=new r.Long(0,0,!1);n.graphVersion=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.graphVersion=i.longs===String?"0":0;n.msg="",n.isInteraction=!1}return t.epId!=null&&t.hasOwnProperty("epId")&&(typeof t.epId=="number"?n.epId=i.longs===String?String(t.epId):t.epId:n.epId=i.longs===String?r.Long.prototype.toString.call(t.epId):i.longs===Number?new r.LongBits(t.epId.low>>>0,t.epId.high>>>0).toNumber():t.epId),t.historyNode!=null&&t.hasOwnProperty("historyNode")&&(n.historyNode=u.bilibili.app.viewunite.common.HistoryNode.toObject(t.historyNode,i)),t.graphVersion!=null&&t.hasOwnProperty("graphVersion")&&(typeof t.graphVersion=="number"?n.graphVersion=i.longs===String?String(t.graphVersion):t.graphVersion:n.graphVersion=i.longs===String?r.Long.prototype.toString.call(t.graphVersion):i.longs===Number?new r.LongBits(t.graphVersion.low>>>0,t.graphVersion.high>>>0).toNumber():t.graphVersion),t.msg!=null&&t.hasOwnProperty("msg")&&(n.msg=t.msg),t.isInteraction!=null&&t.hasOwnProperty("isInteraction")&&(n.isInteraction=t.isInteraction),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.Interaction"},e}(),c.HistoryNode=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.nodeId=t.int64();break}case 2:{o.title=t.string();break}case 3:{o.cid=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.HistoryNode)return t;let i=new u.bilibili.app.viewunite.common.HistoryNode;return t.nodeId!=null&&(r.Long?(i.nodeId=r.Long.fromValue(t.nodeId)).unsigned=!1:typeof t.nodeId=="string"?i.nodeId=parseInt(t.nodeId,10):typeof t.nodeId=="number"?i.nodeId=t.nodeId:typeof t.nodeId=="object"&&(i.nodeId=new r.LongBits(t.nodeId.low>>>0,t.nodeId.high>>>0).toNumber())),t.title!=null&&(i.title=String(t.title)),t.cid!=null&&(r.Long?(i.cid=r.Long.fromValue(t.cid)).unsigned=!1:typeof t.cid=="string"?i.cid=parseInt(t.cid,10):typeof t.cid=="number"?i.cid=t.cid:typeof t.cid=="object"&&(i.cid=new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.nodeId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.nodeId=i.longs===String?"0":0;if(n.title="",r.Long){let o=new r.Long(0,0,!1);n.cid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.cid=i.longs===String?"0":0}return t.nodeId!=null&&t.hasOwnProperty("nodeId")&&(typeof t.nodeId=="number"?n.nodeId=i.longs===String?String(t.nodeId):t.nodeId:n.nodeId=i.longs===String?r.Long.prototype.toString.call(t.nodeId):i.longs===Number?new r.LongBits(t.nodeId.low>>>0,t.nodeId.high>>>0).toNumber():t.nodeId),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.cid!=null&&t.hasOwnProperty("cid")&&(typeof t.cid=="number"?n.cid=i.longs===String?String(t.cid):t.cid:n.cid=i.longs===String?r.Long.prototype.toString.call(t.cid):i.longs===Number?new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber():t.cid),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.HistoryNode"},e}(),c.SkipRange=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.start=t.int32();break}case 2:{o.end=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.SkipRange)return t;let i=new u.bilibili.app.viewunite.common.SkipRange;return t.start!=null&&(i.start=t.start|0),t.end!=null&&(i.end=t.end|0),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.start=0,n.end=0),t.start!=null&&t.hasOwnProperty("start")&&(n.start=t.start),t.end!=null&&t.hasOwnProperty("end")&&(n.end=t.end),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.SkipRange"},e}(),c.MultiViewEp=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.epId=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.MultiViewEp)return t;let i=new u.bilibili.app.viewunite.common.MultiViewEp;return t.epId!=null&&(r.Long?(i.epId=r.Long.fromValue(t.epId)).unsigned=!1:typeof t.epId=="string"?i.epId=parseInt(t.epId,10):typeof t.epId=="number"?i.epId=t.epId:typeof t.epId=="object"&&(i.epId=new r.LongBits(t.epId.low>>>0,t.epId.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(r.Long){let o=new r.Long(0,0,!1);n.epId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.epId=i.longs===String?"0":0;return t.epId!=null&&t.hasOwnProperty("epId")&&(typeof t.epId=="number"?n.epId=i.longs===String?String(t.epId):t.epId:n.epId=i.longs===String?r.Long.prototype.toString.call(t.epId):i.longs===Number?new r.LongBits(t.epId.low>>>0,t.epId.high>>>0).toNumber():t.epId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.MultiViewEp"},e}(),c.LikeComment=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.reply=t.string();break}case 2:{o.title=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.LikeComment)return t;let i=new u.bilibili.app.viewunite.common.LikeComment;return t.reply!=null&&(i.reply=String(t.reply)),t.title!=null&&(i.title=String(t.title)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.reply="",n.title=""),t.reply!=null&&t.hasOwnProperty("reply")&&(n.reply=t.reply),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.LikeComment"},e}(),c.LiveOrder=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.sid=t.int64();break}case 2:{o.text=t.string();break}case 3:{o.livePlanStartTime=t.int64();break}case 4:{o.isFollow=t.bool();break}case 5:{o.followCount=t.int64();break}case 6:{o.reserveCalendarInfo=u.bilibili.app.viewunite.common.ReserveCalendarInfo.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.LiveOrder)return t;let i=new u.bilibili.app.viewunite.common.LiveOrder;if(t.sid!=null&&(r.Long?(i.sid=r.Long.fromValue(t.sid)).unsigned=!1:typeof t.sid=="string"?i.sid=parseInt(t.sid,10):typeof t.sid=="number"?i.sid=t.sid:typeof t.sid=="object"&&(i.sid=new r.LongBits(t.sid.low>>>0,t.sid.high>>>0).toNumber())),t.text!=null&&(i.text=String(t.text)),t.livePlanStartTime!=null&&(r.Long?(i.livePlanStartTime=r.Long.fromValue(t.livePlanStartTime)).unsigned=!1:typeof t.livePlanStartTime=="string"?i.livePlanStartTime=parseInt(t.livePlanStartTime,10):typeof t.livePlanStartTime=="number"?i.livePlanStartTime=t.livePlanStartTime:typeof t.livePlanStartTime=="object"&&(i.livePlanStartTime=new r.LongBits(t.livePlanStartTime.low>>>0,t.livePlanStartTime.high>>>0).toNumber())),t.isFollow!=null&&(i.isFollow=!!t.isFollow),t.followCount!=null&&(r.Long?(i.followCount=r.Long.fromValue(t.followCount)).unsigned=!1:typeof t.followCount=="string"?i.followCount=parseInt(t.followCount,10):typeof t.followCount=="number"?i.followCount=t.followCount:typeof t.followCount=="object"&&(i.followCount=new r.LongBits(t.followCount.low>>>0,t.followCount.high>>>0).toNumber())),t.reserveCalendarInfo!=null){if(typeof t.reserveCalendarInfo!="object")throw TypeError(".bilibili.app.viewunite.common.LiveOrder.reserveCalendarInfo: object expected");i.reserveCalendarInfo=u.bilibili.app.viewunite.common.ReserveCalendarInfo.fromObject(t.reserveCalendarInfo)}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.sid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.sid=i.longs===String?"0":0;if(n.text="",r.Long){let o=new r.Long(0,0,!1);n.livePlanStartTime=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.livePlanStartTime=i.longs===String?"0":0;if(n.isFollow=!1,r.Long){let o=new r.Long(0,0,!1);n.followCount=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.followCount=i.longs===String?"0":0;n.reserveCalendarInfo=null}return t.sid!=null&&t.hasOwnProperty("sid")&&(typeof t.sid=="number"?n.sid=i.longs===String?String(t.sid):t.sid:n.sid=i.longs===String?r.Long.prototype.toString.call(t.sid):i.longs===Number?new r.LongBits(t.sid.low>>>0,t.sid.high>>>0).toNumber():t.sid),t.text!=null&&t.hasOwnProperty("text")&&(n.text=t.text),t.livePlanStartTime!=null&&t.hasOwnProperty("livePlanStartTime")&&(typeof t.livePlanStartTime=="number"?n.livePlanStartTime=i.longs===String?String(t.livePlanStartTime):t.livePlanStartTime:n.livePlanStartTime=i.longs===String?r.Long.prototype.toString.call(t.livePlanStartTime):i.longs===Number?new r.LongBits(t.livePlanStartTime.low>>>0,t.livePlanStartTime.high>>>0).toNumber():t.livePlanStartTime),t.isFollow!=null&&t.hasOwnProperty("isFollow")&&(n.isFollow=t.isFollow),t.followCount!=null&&t.hasOwnProperty("followCount")&&(typeof t.followCount=="number"?n.followCount=i.longs===String?String(t.followCount):t.followCount:n.followCount=i.longs===String?r.Long.prototype.toString.call(t.followCount):i.longs===Number?new r.LongBits(t.followCount.low>>>0,t.followCount.high>>>0).toNumber():t.followCount),t.reserveCalendarInfo!=null&&t.hasOwnProperty("reserveCalendarInfo")&&(n.reserveCalendarInfo=u.bilibili.app.viewunite.common.ReserveCalendarInfo.toObject(t.reserveCalendarInfo,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.LiveOrder"},e}(),c.ActivityReserve=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.vt=u.bilibili.app.viewunite.common.StatInfo.decode(t,t.uint32());break}case 3:{o.danmaku=u.bilibili.app.viewunite.common.StatInfo.decode(t,t.uint32());break}case 4:{o.button=u.bilibili.app.viewunite.common.ReserveButton.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.ActivityReserve)return t;let i=new u.bilibili.app.viewunite.common.ActivityReserve;if(t.title!=null&&(i.title=String(t.title)),t.vt!=null){if(typeof t.vt!="object")throw TypeError(".bilibili.app.viewunite.common.ActivityReserve.vt: object expected");i.vt=u.bilibili.app.viewunite.common.StatInfo.fromObject(t.vt)}if(t.danmaku!=null){if(typeof t.danmaku!="object")throw TypeError(".bilibili.app.viewunite.common.ActivityReserve.danmaku: object expected");i.danmaku=u.bilibili.app.viewunite.common.StatInfo.fromObject(t.danmaku)}if(t.button!=null){if(typeof t.button!="object")throw TypeError(".bilibili.app.viewunite.common.ActivityReserve.button: object expected");i.button=u.bilibili.app.viewunite.common.ReserveButton.fromObject(t.button)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.title="",n.vt=null,n.danmaku=null,n.button=null),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.vt!=null&&t.hasOwnProperty("vt")&&(n.vt=u.bilibili.app.viewunite.common.StatInfo.toObject(t.vt,i)),t.danmaku!=null&&t.hasOwnProperty("danmaku")&&(n.danmaku=u.bilibili.app.viewunite.common.StatInfo.toObject(t.danmaku,i)),t.button!=null&&t.hasOwnProperty("button")&&(n.button=u.bilibili.app.viewunite.common.ReserveButton.toObject(t.button,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.ActivityReserve"},e}(),c.ReserveButton=function(){function e(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.status=i.bool();break}case 3:{a.text=i.string();break}case 4:{a.selectedText=i.string();break}case 7:{a.orderType=i.int32();break}case 8:{a.reserve=u.bilibili.app.viewunite.common.BizReserveActivityParam.decode(i,i.uint32());break}case 9:{a.fav=u.bilibili.app.viewunite.common.BizFavParam.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},e.fromObject=function(i){if(i instanceof u.bilibili.app.viewunite.common.ReserveButton)return i;let n=new u.bilibili.app.viewunite.common.ReserveButton;switch(i.status!=null&&(n.status=!!i.status),i.text!=null&&(n.text=String(i.text)),i.selectedText!=null&&(n.selectedText=String(i.selectedText)),i.orderType){default:if(typeof i.orderType=="number"){n.orderType=i.orderType;break}break;case"BizTypeNone":case 0:n.orderType=0;break;case"BizTypeReserveActivity":case 1:n.orderType=1;break;case"BizTypeFavSeason":case 2:n.orderType=2;break}if(i.reserve!=null){if(typeof i.reserve!="object")throw TypeError(".bilibili.app.viewunite.common.ReserveButton.reserve: object expected");n.reserve=u.bilibili.app.viewunite.common.BizReserveActivityParam.fromObject(i.reserve)}if(i.fav!=null){if(typeof i.fav!="object")throw TypeError(".bilibili.app.viewunite.common.ReserveButton.fav: object expected");n.fav=u.bilibili.app.viewunite.common.BizFavParam.fromObject(i.fav)}return n},e.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.status=!1,o.text="",o.selectedText="",o.orderType=n.enums===String?"BizTypeNone":0),i.status!=null&&i.hasOwnProperty("status")&&(o.status=i.status),i.text!=null&&i.hasOwnProperty("text")&&(o.text=i.text),i.selectedText!=null&&i.hasOwnProperty("selectedText")&&(o.selectedText=i.selectedText),i.orderType!=null&&i.hasOwnProperty("orderType")&&(o.orderType=n.enums===String?u.bilibili.app.viewunite.common.ReserveBizType[i.orderType]===void 0?i.orderType:u.bilibili.app.viewunite.common.ReserveBizType[i.orderType]:i.orderType),i.reserve!=null&&i.hasOwnProperty("reserve")&&(o.reserve=u.bilibili.app.viewunite.common.BizReserveActivityParam.toObject(i.reserve,n),n.oneofs&&(o.orderParam="reserve")),i.fav!=null&&i.hasOwnProperty("fav")&&(o.fav=u.bilibili.app.viewunite.common.BizFavParam.toObject(i.fav,n),n.oneofs&&(o.orderParam="fav")),o},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.app.viewunite.common.ReserveButton"},e}(),c.OgvTitle=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.badgeInfo=u.bilibili.app.viewunite.common.BadgeInfo.decode(t,t.uint32());break}case 3:{o.isShowBtnAnimation=t.int32();break}case 4:{o.followVideoIsReserveLive=t.int32();break}case 5:{o.reserveId=t.int64();break}case 6:{o.titleDeliveryButton=u.bilibili.app.viewunite.common.TitleDeliveryButton.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.OgvTitle)return t;let i=new u.bilibili.app.viewunite.common.OgvTitle;if(t.title!=null&&(i.title=String(t.title)),t.badgeInfo!=null){if(typeof t.badgeInfo!="object")throw TypeError(".bilibili.app.viewunite.common.OgvTitle.badgeInfo: object expected");i.badgeInfo=u.bilibili.app.viewunite.common.BadgeInfo.fromObject(t.badgeInfo)}if(t.isShowBtnAnimation!=null&&(i.isShowBtnAnimation=t.isShowBtnAnimation|0),t.followVideoIsReserveLive!=null&&(i.followVideoIsReserveLive=t.followVideoIsReserveLive|0),t.reserveId!=null&&(r.Long?(i.reserveId=r.Long.fromValue(t.reserveId)).unsigned=!1:typeof t.reserveId=="string"?i.reserveId=parseInt(t.reserveId,10):typeof t.reserveId=="number"?i.reserveId=t.reserveId:typeof t.reserveId=="object"&&(i.reserveId=new r.LongBits(t.reserveId.low>>>0,t.reserveId.high>>>0).toNumber())),t.titleDeliveryButton!=null){if(typeof t.titleDeliveryButton!="object")throw TypeError(".bilibili.app.viewunite.common.OgvTitle.titleDeliveryButton: object expected");i.titleDeliveryButton=u.bilibili.app.viewunite.common.TitleDeliveryButton.fromObject(t.titleDeliveryButton)}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.title="",n.badgeInfo=null,n.isShowBtnAnimation=0,n.followVideoIsReserveLive=0,r.Long){let o=new r.Long(0,0,!1);n.reserveId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.reserveId=i.longs===String?"0":0;n.titleDeliveryButton=null}return t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.badgeInfo!=null&&t.hasOwnProperty("badgeInfo")&&(n.badgeInfo=u.bilibili.app.viewunite.common.BadgeInfo.toObject(t.badgeInfo,i)),t.isShowBtnAnimation!=null&&t.hasOwnProperty("isShowBtnAnimation")&&(n.isShowBtnAnimation=t.isShowBtnAnimation),t.followVideoIsReserveLive!=null&&t.hasOwnProperty("followVideoIsReserveLive")&&(n.followVideoIsReserveLive=t.followVideoIsReserveLive),t.reserveId!=null&&t.hasOwnProperty("reserveId")&&(typeof t.reserveId=="number"?n.reserveId=i.longs===String?String(t.reserveId):t.reserveId:n.reserveId=i.longs===String?r.Long.prototype.toString.call(t.reserveId):i.longs===Number?new r.LongBits(t.reserveId.low>>>0,t.reserveId.high>>>0).toNumber():t.reserveId),t.titleDeliveryButton!=null&&t.hasOwnProperty("titleDeliveryButton")&&(n.titleDeliveryButton=u.bilibili.app.viewunite.common.TitleDeliveryButton.toObject(t.titleDeliveryButton,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.OgvTitle"},e}(),c.TitleDeliveryButton=function(){function e(l){if(this.report={},l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.icon=t.string();break}case 2:{o.title=t.string();break}case 3:{o.link=t.string();break}case 4:{o.report===r.emptyObject&&(o.report={});let v=t.uint32()+t.pos;for(a="",y="";t.pos>>3){case 1:a=t.string();break;case 2:y=t.string();break;default:t.skipType(g&7);break}}o.report[a]=y;break}default:t.skipType(s&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.TitleDeliveryButton)return t;let i=new u.bilibili.app.viewunite.common.TitleDeliveryButton;if(t.icon!=null&&(i.icon=String(t.icon)),t.title!=null&&(i.title=String(t.title)),t.link!=null&&(i.link=String(t.link)),t.report){if(typeof t.report!="object")throw TypeError(".bilibili.app.viewunite.common.TitleDeliveryButton.report: object expected");i.report={};for(let n=Object.keys(t.report),o=0;o>>3){case 1:{o.title=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.CatalogTab)return t;let i=new u.bilibili.app.viewunite.common.CatalogTab;return t.title!=null&&(i.title=String(t.title)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.title=""),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.CatalogTab"},e}(),c.ActivityTab=function(){function e(l){if(this.report={},l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.id=t.int32();break}case 2:{o.title=t.string();break}case 3:{o.type=t.int32();break}case 4:{o.showName=t.string();break}case 5:{o.picurl=t.string();break}case 6:{o.picurlSelected=t.string();break}case 7:{o.h5Link=t.string();break}case 8:{o.link=t.string();break}case 9:{o.linkType=t.int32();break}case 10:{o.bizKey=t.int64();break}case 11:{o.desc=t.string();break}case 12:{o.actExt=t.string();break}case 13:{o.report===r.emptyObject&&(o.report={});let v=t.uint32()+t.pos;for(a="",y="";t.pos>>3){case 1:a=t.string();break;case 2:y=t.string();break;default:t.skipType(g&7);break}}o.report[a]=y;break}default:t.skipType(s&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.ActivityTab)return t;let i=new u.bilibili.app.viewunite.common.ActivityTab;if(t.id!=null&&(i.id=t.id|0),t.title!=null&&(i.title=String(t.title)),t.type!=null&&(i.type=t.type|0),t.showName!=null&&(i.showName=String(t.showName)),t.picurl!=null&&(i.picurl=String(t.picurl)),t.picurlSelected!=null&&(i.picurlSelected=String(t.picurlSelected)),t.h5Link!=null&&(i.h5Link=String(t.h5Link)),t.link!=null&&(i.link=String(t.link)),t.linkType!=null&&(i.linkType=t.linkType|0),t.bizKey!=null&&(r.Long?(i.bizKey=r.Long.fromValue(t.bizKey)).unsigned=!1:typeof t.bizKey=="string"?i.bizKey=parseInt(t.bizKey,10):typeof t.bizKey=="number"?i.bizKey=t.bizKey:typeof t.bizKey=="object"&&(i.bizKey=new r.LongBits(t.bizKey.low>>>0,t.bizKey.high>>>0).toNumber())),t.desc!=null&&(i.desc=String(t.desc)),t.actExt!=null&&(i.actExt=String(t.actExt)),t.report){if(typeof t.report!="object")throw TypeError(".bilibili.app.viewunite.common.ActivityTab.report: object expected");i.report={};for(let n=Object.keys(t.report),o=0;o>>0,t.bizKey.high>>>0).toNumber():t.bizKey),t.desc!=null&&t.hasOwnProperty("desc")&&(n.desc=t.desc),t.actExt!=null&&t.hasOwnProperty("actExt")&&(n.actExt=t.actExt);let o;if(t.report&&(o=Object.keys(t.report)).length){n.report={};for(let a=0;a>>3){case 1:{o.width=t.int64();break}case 2:{o.height=t.int64();break}case 3:{o.rotate=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.Dimension)return t;let i=new u.bilibili.app.viewunite.common.Dimension;return t.width!=null&&(r.Long?(i.width=r.Long.fromValue(t.width)).unsigned=!1:typeof t.width=="string"?i.width=parseInt(t.width,10):typeof t.width=="number"?i.width=t.width:typeof t.width=="object"&&(i.width=new r.LongBits(t.width.low>>>0,t.width.high>>>0).toNumber())),t.height!=null&&(r.Long?(i.height=r.Long.fromValue(t.height)).unsigned=!1:typeof t.height=="string"?i.height=parseInt(t.height,10):typeof t.height=="number"?i.height=t.height:typeof t.height=="object"&&(i.height=new r.LongBits(t.height.low>>>0,t.height.high>>>0).toNumber())),t.rotate!=null&&(r.Long?(i.rotate=r.Long.fromValue(t.rotate)).unsigned=!1:typeof t.rotate=="string"?i.rotate=parseInt(t.rotate,10):typeof t.rotate=="number"?i.rotate=t.rotate:typeof t.rotate=="object"&&(i.rotate=new r.LongBits(t.rotate.low>>>0,t.rotate.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.width=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.width=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.height=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.height=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.rotate=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.rotate=i.longs===String?"0":0}return t.width!=null&&t.hasOwnProperty("width")&&(typeof t.width=="number"?n.width=i.longs===String?String(t.width):t.width:n.width=i.longs===String?r.Long.prototype.toString.call(t.width):i.longs===Number?new r.LongBits(t.width.low>>>0,t.width.high>>>0).toNumber():t.width),t.height!=null&&t.hasOwnProperty("height")&&(typeof t.height=="number"?n.height=i.longs===String?String(t.height):t.height:n.height=i.longs===String?r.Long.prototype.toString.call(t.height):i.longs===Number?new r.LongBits(t.height.low>>>0,t.height.high>>>0).toNumber():t.height),t.rotate!=null&&t.hasOwnProperty("rotate")&&(typeof t.rotate=="number"?n.rotate=i.longs===String?String(t.rotate):t.rotate:n.rotate=i.longs===String?r.Long.prototype.toString.call(t.rotate):i.longs===Number?new r.LongBits(t.rotate.low>>>0,t.rotate.high>>>0).toNumber():t.rotate),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.Dimension"},e}(),c.Staff=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.mid=t.int64();break}case 2:{o.attention=t.int32();break}case 3:{o.title=t.string();break}case 4:{o.name=t.string();break}case 5:{o.face=t.string();break}case 6:{o.official=u.bilibili.app.viewunite.common.OfficialVerify.decode(t,t.uint32());break}case 7:{o.vip=u.bilibili.app.viewunite.common.Vip.decode(t,t.uint32());break}case 8:{o.labelStyle=t.int32();break}case 9:{o.fans=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.Staff)return t;let i=new u.bilibili.app.viewunite.common.Staff;if(t.mid!=null&&(r.Long?(i.mid=r.Long.fromValue(t.mid)).unsigned=!1:typeof t.mid=="string"?i.mid=parseInt(t.mid,10):typeof t.mid=="number"?i.mid=t.mid:typeof t.mid=="object"&&(i.mid=new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber())),t.attention!=null&&(i.attention=t.attention|0),t.title!=null&&(i.title=String(t.title)),t.name!=null&&(i.name=String(t.name)),t.face!=null&&(i.face=String(t.face)),t.official!=null){if(typeof t.official!="object")throw TypeError(".bilibili.app.viewunite.common.Staff.official: object expected");i.official=u.bilibili.app.viewunite.common.OfficialVerify.fromObject(t.official)}if(t.vip!=null){if(typeof t.vip!="object")throw TypeError(".bilibili.app.viewunite.common.Staff.vip: object expected");i.vip=u.bilibili.app.viewunite.common.Vip.fromObject(t.vip)}return t.labelStyle!=null&&(i.labelStyle=t.labelStyle|0),t.fans!=null&&(i.fans=String(t.fans)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.mid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mid=i.longs===String?"0":0;n.attention=0,n.title="",n.name="",n.face="",n.official=null,n.vip=null,n.labelStyle=0,n.fans=""}return t.mid!=null&&t.hasOwnProperty("mid")&&(typeof t.mid=="number"?n.mid=i.longs===String?String(t.mid):t.mid:n.mid=i.longs===String?r.Long.prototype.toString.call(t.mid):i.longs===Number?new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber():t.mid),t.attention!=null&&t.hasOwnProperty("attention")&&(n.attention=t.attention),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),t.face!=null&&t.hasOwnProperty("face")&&(n.face=t.face),t.official!=null&&t.hasOwnProperty("official")&&(n.official=u.bilibili.app.viewunite.common.OfficialVerify.toObject(t.official,i)),t.vip!=null&&t.hasOwnProperty("vip")&&(n.vip=u.bilibili.app.viewunite.common.Vip.toObject(t.vip,i)),t.labelStyle!=null&&t.hasOwnProperty("labelStyle")&&(n.labelStyle=t.labelStyle),t.fans!=null&&t.hasOwnProperty("fans")&&(n.fans=t.fans),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.Staff"},e}(),c.Vip=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.type=t.int32();break}case 2:{o.vipStatus=t.int32();break}case 3:{o.themeType=t.int32();break}case 4:{o.label=u.bilibili.app.viewunite.common.VipLabel.decode(t,t.uint32());break}case 5:{o.isVip=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.Vip)return t;let i=new u.bilibili.app.viewunite.common.Vip;if(t.type!=null&&(i.type=t.type|0),t.vipStatus!=null&&(i.vipStatus=t.vipStatus|0),t.themeType!=null&&(i.themeType=t.themeType|0),t.label!=null){if(typeof t.label!="object")throw TypeError(".bilibili.app.viewunite.common.Vip.label: object expected");i.label=u.bilibili.app.viewunite.common.VipLabel.fromObject(t.label)}return t.isVip!=null&&(i.isVip=t.isVip|0),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.type=0,n.vipStatus=0,n.themeType=0,n.label=null,n.isVip=0),t.type!=null&&t.hasOwnProperty("type")&&(n.type=t.type),t.vipStatus!=null&&t.hasOwnProperty("vipStatus")&&(n.vipStatus=t.vipStatus),t.themeType!=null&&t.hasOwnProperty("themeType")&&(n.themeType=t.themeType),t.label!=null&&t.hasOwnProperty("label")&&(n.label=u.bilibili.app.viewunite.common.VipLabel.toObject(t.label,i)),t.isVip!=null&&t.hasOwnProperty("isVip")&&(n.isVip=t.isVip),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.Vip"},e}(),c.VipLabel=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.path=t.string();break}case 2:{o.text=t.string();break}case 3:{o.labelTheme=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.VipLabel)return t;let i=new u.bilibili.app.viewunite.common.VipLabel;return t.path!=null&&(i.path=String(t.path)),t.text!=null&&(i.text=String(t.text)),t.labelTheme!=null&&(i.labelTheme=String(t.labelTheme)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.path="",n.text="",n.labelTheme=""),t.path!=null&&t.hasOwnProperty("path")&&(n.path=t.path),t.text!=null&&t.hasOwnProperty("text")&&(n.text=t.text),t.labelTheme!=null&&t.hasOwnProperty("labelTheme")&&(n.labelTheme=t.labelTheme),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.VipLabel"},e}(),c.OfficialVerify=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.type=t.int32();break}case 2:{o.desc=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.OfficialVerify)return t;let i=new u.bilibili.app.viewunite.common.OfficialVerify;return t.type!=null&&(i.type=t.type|0),t.desc!=null&&(i.desc=String(t.desc)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.type=0,n.desc=""),t.type!=null&&t.hasOwnProperty("type")&&(n.type=t.type),t.desc!=null&&t.hasOwnProperty("desc")&&(n.desc=t.desc),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.OfficialVerify"},e}(),c.Staffs=function(){function e(l){if(this.staff=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.staff&&o.staff.length||(o.staff=[]),o.staff.push(u.bilibili.app.viewunite.common.Staff.decode(t,t.uint32()));break}case 2:{o.title=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.Staffs)return t;let i=new u.bilibili.app.viewunite.common.Staffs;if(t.staff){if(!Array.isArray(t.staff))throw TypeError(".bilibili.app.viewunite.common.Staffs.staff: array expected");i.staff=[];for(let n=0;n>>3){case 1:{o.avatar=u.bilibili.dagw.component.avatar.v1.AvatarItem.decode(t,t.uint32());break}case 2:{o.url=t.string();break}case 3:{o.title=t.string();break}case 4:{o.fans=t.string();break}case 5:{o.arcCount=t.string();break}case 6:{o.attention=t.int32();break}case 7:{o.attentionRelation=t.int32();break}case 8:{o.pubLocation=t.string();break}case 9:{o.vip=u.bilibili.app.viewunite.common.Vip.decode(t,t.uint32());break}case 10:{o.titleUrl=t.string();break}case 11:{o.face=t.string();break}case 12:{o.mid=t.int64();break}case 13:{o.officialVerify=u.bilibili.app.viewunite.common.OfficialVerify.decode(t,t.uint32());break}case 14:{o.live=u.bilibili.app.viewunite.common.Live.decode(t,t.uint32());break}case 15:{o.fansNum=t.int64();break}case 16:{if(o.assists&&o.assists.length||(o.assists=[]),(a&7)===2){let y=t.uint32()+t.pos;for(;t.pos>>0,t.mid.high>>>0).toNumber())),t.officialVerify!=null){if(typeof t.officialVerify!="object")throw TypeError(".bilibili.app.viewunite.common.Owner.officialVerify: object expected");i.officialVerify=u.bilibili.app.viewunite.common.OfficialVerify.fromObject(t.officialVerify)}if(t.live!=null){if(typeof t.live!="object")throw TypeError(".bilibili.app.viewunite.common.Owner.live: object expected");i.live=u.bilibili.app.viewunite.common.Live.fromObject(t.live)}if(t.fansNum!=null&&(r.Long?(i.fansNum=r.Long.fromValue(t.fansNum)).unsigned=!1:typeof t.fansNum=="string"?i.fansNum=parseInt(t.fansNum,10):typeof t.fansNum=="number"?i.fansNum=t.fansNum:typeof t.fansNum=="object"&&(i.fansNum=new r.LongBits(t.fansNum.low>>>0,t.fansNum.high>>>0).toNumber())),t.assists){if(!Array.isArray(t.assists))throw TypeError(".bilibili.app.viewunite.common.Owner.assists: array expected");i.assists=[];for(let n=0;n>>0,t.assists[n].high>>>0).toNumber())}return t.seasonCount!=null&&(i.seasonCount=String(t.seasonCount)),i},e.toObject=function(t,i){i||(i={});let n={};if((i.arrays||i.defaults)&&(n.assists=[]),i.defaults){if(n.avatar=null,n.url="",n.title="",n.fans="",n.arcCount="",n.attention=0,n.attentionRelation=i.enums===String?"ARS_NONE":0,n.pubLocation="",n.vip=null,n.titleUrl="",n.face="",r.Long){let o=new r.Long(0,0,!1);n.mid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mid=i.longs===String?"0":0;if(n.officialVerify=null,n.live=null,r.Long){let o=new r.Long(0,0,!1);n.fansNum=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.fansNum=i.longs===String?"0":0;n.seasonCount=""}if(t.avatar!=null&&t.hasOwnProperty("avatar")&&(n.avatar=u.bilibili.dagw.component.avatar.v1.AvatarItem.toObject(t.avatar,i)),t.url!=null&&t.hasOwnProperty("url")&&(n.url=t.url),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.fans!=null&&t.hasOwnProperty("fans")&&(n.fans=t.fans),t.arcCount!=null&&t.hasOwnProperty("arcCount")&&(n.arcCount=t.arcCount),t.attention!=null&&t.hasOwnProperty("attention")&&(n.attention=t.attention),t.attentionRelation!=null&&t.hasOwnProperty("attentionRelation")&&(n.attentionRelation=i.enums===String?u.bilibili.app.viewunite.common.AttentionRelationStatus[t.attentionRelation]===void 0?t.attentionRelation:u.bilibili.app.viewunite.common.AttentionRelationStatus[t.attentionRelation]:t.attentionRelation),t.pubLocation!=null&&t.hasOwnProperty("pubLocation")&&(n.pubLocation=t.pubLocation),t.vip!=null&&t.hasOwnProperty("vip")&&(n.vip=u.bilibili.app.viewunite.common.Vip.toObject(t.vip,i)),t.titleUrl!=null&&t.hasOwnProperty("titleUrl")&&(n.titleUrl=t.titleUrl),t.face!=null&&t.hasOwnProperty("face")&&(n.face=t.face),t.mid!=null&&t.hasOwnProperty("mid")&&(typeof t.mid=="number"?n.mid=i.longs===String?String(t.mid):t.mid:n.mid=i.longs===String?r.Long.prototype.toString.call(t.mid):i.longs===Number?new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber():t.mid),t.officialVerify!=null&&t.hasOwnProperty("officialVerify")&&(n.officialVerify=u.bilibili.app.viewunite.common.OfficialVerify.toObject(t.officialVerify,i)),t.live!=null&&t.hasOwnProperty("live")&&(n.live=u.bilibili.app.viewunite.common.Live.toObject(t.live,i)),t.fansNum!=null&&t.hasOwnProperty("fansNum")&&(typeof t.fansNum=="number"?n.fansNum=i.longs===String?String(t.fansNum):t.fansNum:n.fansNum=i.longs===String?r.Long.prototype.toString.call(t.fansNum):i.longs===Number?new r.LongBits(t.fansNum.low>>>0,t.fansNum.high>>>0).toNumber():t.fansNum),t.assists&&t.assists.length){n.assists=[];for(let o=0;o>>0,t.assists[o].high>>>0).toNumber():t.assists[o]}return t.seasonCount!=null&&t.hasOwnProperty("seasonCount")&&(n.seasonCount=t.seasonCount),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.Owner"},e}(),c.Live=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.mid=t.int64();break}case 2:{o.roomId=t.int64();break}case 3:{o.uri=t.string();break}case 4:{o.endpageUri=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.Live)return t;let i=new u.bilibili.app.viewunite.common.Live;return t.mid!=null&&(r.Long?(i.mid=r.Long.fromValue(t.mid)).unsigned=!1:typeof t.mid=="string"?i.mid=parseInt(t.mid,10):typeof t.mid=="number"?i.mid=t.mid:typeof t.mid=="object"&&(i.mid=new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber())),t.roomId!=null&&(r.Long?(i.roomId=r.Long.fromValue(t.roomId)).unsigned=!1:typeof t.roomId=="string"?i.roomId=parseInt(t.roomId,10):typeof t.roomId=="number"?i.roomId=t.roomId:typeof t.roomId=="object"&&(i.roomId=new r.LongBits(t.roomId.low>>>0,t.roomId.high>>>0).toNumber())),t.uri!=null&&(i.uri=String(t.uri)),t.endpageUri!=null&&(i.endpageUri=String(t.endpageUri)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.mid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.roomId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.roomId=i.longs===String?"0":0;n.uri="",n.endpageUri=""}return t.mid!=null&&t.hasOwnProperty("mid")&&(typeof t.mid=="number"?n.mid=i.longs===String?String(t.mid):t.mid:n.mid=i.longs===String?r.Long.prototype.toString.call(t.mid):i.longs===Number?new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber():t.mid),t.roomId!=null&&t.hasOwnProperty("roomId")&&(typeof t.roomId=="number"?n.roomId=i.longs===String?String(t.roomId):t.roomId:n.roomId=i.longs===String?r.Long.prototype.toString.call(t.roomId):i.longs===Number?new r.LongBits(t.roomId.low>>>0,t.roomId.high>>>0).toNumber():t.roomId),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),t.endpageUri!=null&&t.hasOwnProperty("endpageUri")&&(n.endpageUri=t.endpageUri),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.Live"},e}(),c.AttentionRelationStatus=function(){let e={},l=Object.create(e);return l[e[0]="ARS_NONE"]=0,l[e[1]="ARS_N0RELATION"]=1,l[e[2]="ARS_FOLLOWHIM"]=2,l[e[3]="ARS_FOLLOWME"]=3,l[e[4]="ARS_BUDDY"]=4,l[e[5]="ARS_SPECIAL"]=5,l[e[6]="ARS_CANCELBLOCK"]=6,l}(),c.ModuleType=function(){let e={},l=Object.create(e);return l[e[0]="UNKNOWN"]=0,l[e[1]="OGV_INTRODUCTION"]=1,l[e[2]="OGV_TITLE"]=2,l[e[3]="UGC_HEADLINE"]=3,l[e[4]="UGC_INTRODUCTION"]=4,l[e[5]="KING_POSITION"]=5,l[e[6]="MASTER_USER_LIST"]=6,l[e[7]="STAFFS"]=7,l[e[8]="HONOR"]=8,l[e[9]="OWNER"]=9,l[e[10]="PAGE"]=10,l[e[11]="ACTIVITY_RESERVE"]=11,l[e[12]="LIVE_ORDER"]=12,l[e[13]="POSITIVE"]=13,l[e[14]="SECTION"]=14,l[e[15]="RELATE"]=15,l[e[16]="PUGV"]=16,l[e[17]="COLLECTION_CARD"]=17,l[e[18]="ACTIVITY"]=18,l[e[19]="CHARACTER"]=19,l[e[20]="FOLLOW_LAYER"]=20,l[e[21]="OGV_SEASONS"]=21,l[e[22]="UGC_SEASON"]=22,l[e[23]="OGV_LIVE_RESERVE"]=23,l[e[24]="COMBINATION_EPISODE"]=24,l[e[25]="SPONSOR"]=25,l[e[26]="ACTIVITY_ENTRANCE"]=26,l[e[27]="THEATRE_HOT_TOPIC"]=27,l[e[28]="RELATED_RECOMMEND"]=28,l[e[29]="PAY_BAR"]=29,l[e[30]="BANNER"]=30,l[e[31]="AUDIO"]=31,l[e[32]="AGG_CARD"]=32,l[e[33]="SINGLE_EP"]=33,l[e[34]="LIKE_COMMENT"]=34,l[e[35]="ATTENTION_RECOMMEND"]=35,l[e[36]="COVENANTER"]=36,l[e[37]="SPECIALTAG"]=37,l[e[38]="UPDATA"]=38,l[e[39]="PROFESSION_APPROVAL"]=39,l[e[40]="PUGV_SHOPPING_NOTICE"]=40,l[e[41]="PUGV_FAQ"]=41,l[e[42]="PUGV_SEASON_DESCRIPTION"]=42,l[e[43]="PUGV_SEASON_RECOMMEND"]=43,l[e[44]="PUGV_SEASON_PUBLISHER"]=44,l[e[45]="PUGV_SEASON_SELECTION"]=45,l[e[46]="PUGV_SEASON_PRIMARY_INFO"]=46,l[e[47]="PUGV_COOPERATION_APPLICATION"]=47,l[e[48]="UP_VIDEO_TOOL"]=48,l[e[49]="PUGV_ZONE"]=49,l[e[50]="PUGV_SERIES"]=50,l[e[51]="PUGV_PACKAGE"]=51,l}(),c.PugvSeasonSelection=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.nav=u.bilibili.app.viewunite.common.PugvSeasonNav.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.PugvSeasonSelection)return t;let i=new u.bilibili.app.viewunite.common.PugvSeasonSelection;if(t.nav!=null){if(typeof t.nav!="object")throw TypeError(".bilibili.app.viewunite.common.PugvSeasonSelection.nav: object expected");i.nav=u.bilibili.app.viewunite.common.PugvSeasonNav.fromObject(t.nav)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.nav=null),t.nav!=null&&t.hasOwnProperty("nav")&&(n.nav=u.bilibili.app.viewunite.common.PugvSeasonNav.toObject(t.nav,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.PugvSeasonSelection"},e}(),c.PugvSeasonPrimaryHotRank=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.text=t.string();break}case 2:{o.link=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.PugvSeasonPrimaryHotRank)return t;let i=new u.bilibili.app.viewunite.common.PugvSeasonPrimaryHotRank;return t.text!=null&&(i.text=String(t.text)),t.link!=null&&(i.link=String(t.link)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.text="",n.link=""),t.text!=null&&t.hasOwnProperty("text")&&(n.text=t.text),t.link!=null&&t.hasOwnProperty("link")&&(n.link=t.link),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.PugvSeasonPrimaryHotRank"},e}(),c.PugvSeasonPrimaryBadge=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.icon=t.string();break}case 2:{o.link=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.PugvSeasonPrimaryBadge)return t;let i=new u.bilibili.app.viewunite.common.PugvSeasonPrimaryBadge;return t.icon!=null&&(i.icon=String(t.icon)),t.link!=null&&(i.link=String(t.link)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.icon="",n.link=""),t.icon!=null&&t.hasOwnProperty("icon")&&(n.icon=t.icon),t.link!=null&&t.hasOwnProperty("link")&&(n.link=t.link),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.PugvSeasonPrimaryBadge"},e}(),c.PugvSeasonPrimaryRankInfo=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.hotRank=u.bilibili.app.viewunite.common.PugvSeasonPrimaryHotRank.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.PugvSeasonPrimaryRankInfo)return t;let i=new u.bilibili.app.viewunite.common.PugvSeasonPrimaryRankInfo;if(t.hotRank!=null){if(typeof t.hotRank!="object")throw TypeError(".bilibili.app.viewunite.common.PugvSeasonPrimaryRankInfo.hotRank: object expected");i.hotRank=u.bilibili.app.viewunite.common.PugvSeasonPrimaryHotRank.fromObject(t.hotRank)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.hotRank=null),t.hotRank!=null&&t.hasOwnProperty("hotRank")&&(n.hotRank=u.bilibili.app.viewunite.common.PugvSeasonPrimaryHotRank.toObject(t.hotRank,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.PugvSeasonPrimaryRankInfo"},e}(),c.PugvSeasonPrimarySellPointInfo=function(){function e(l){if(this.sellPoints=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.type=t.int32();break}case 2:{o.sellPoints&&o.sellPoints.length||(o.sellPoints=[]),o.sellPoints.push(u.bilibili.app.viewunite.common.PugvSeasonPrimarySellPoint.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.PugvSeasonPrimarySellPointInfo)return t;let i=new u.bilibili.app.viewunite.common.PugvSeasonPrimarySellPointInfo;switch(t.type){default:if(typeof t.type=="number"){i.type=t.type;break}break;case"PUGV_SEASON_PRIMARY_SELL_POINT_TYPE_UNSPECIFIED":case 0:i.type=0;break;case"PUGV_SEASON_PRIMARY_SELL_POINT_TYPE_MANUAL":case 1:i.type=1;break;case"PUGV_SEASON_PRIMARY_SELL_POINT_TYPE_AUTO":case 2:i.type=2;break}if(t.sellPoints){if(!Array.isArray(t.sellPoints))throw TypeError(".bilibili.app.viewunite.common.PugvSeasonPrimarySellPointInfo.sellPoints: array expected");i.sellPoints=[];for(let n=0;n>>3){case 1:{o.title=t.string();break}case 2:{o.detail=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.PugvSeasonPrimarySellPoint)return t;let i=new u.bilibili.app.viewunite.common.PugvSeasonPrimarySellPoint;return t.title!=null&&(i.title=String(t.title)),t.detail!=null&&(i.detail=String(t.detail)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.title="",n.detail=""),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.detail!=null&&t.hasOwnProperty("detail")&&(n.detail=t.detail),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.PugvSeasonPrimarySellPoint"},e}(),c.PugvSeasonPrimaryCustomInfo=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.expiryInfo=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.PugvSeasonPrimaryCustomInfo)return t;let i=new u.bilibili.app.viewunite.common.PugvSeasonPrimaryCustomInfo;return t.expiryInfo!=null&&(i.expiryInfo=String(t.expiryInfo)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.expiryInfo=""),t.expiryInfo!=null&&t.hasOwnProperty("expiryInfo")&&(n.expiryInfo=t.expiryInfo),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.PugvSeasonPrimaryCustomInfo"},e}(),c.PugvSeasonPrimaryInfo=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.subtitle=t.string();break}case 3:{o.statInfo=u.bilibili.app.viewunite.common.StatInfo.decode(t,t.uint32());break}case 4:{o.rankInfo=u.bilibili.app.viewunite.common.PugvSeasonPrimaryRankInfo.decode(t,t.uint32());break}case 5:{o.sellPointInfo=u.bilibili.app.viewunite.common.PugvSeasonPrimarySellPointInfo.decode(t,t.uint32());break}case 6:{o.customInfo=u.bilibili.app.viewunite.common.PugvSeasonPrimaryCustomInfo.decode(t,t.uint32());break}case 7:{o.showPayment=t.bool();break}case 8:{o.badge=u.bilibili.app.viewunite.common.PugvSeasonPrimaryBadge.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.PugvSeasonPrimaryInfo)return t;let i=new u.bilibili.app.viewunite.common.PugvSeasonPrimaryInfo;if(t.title!=null&&(i.title=String(t.title)),t.subtitle!=null&&(i.subtitle=String(t.subtitle)),t.statInfo!=null){if(typeof t.statInfo!="object")throw TypeError(".bilibili.app.viewunite.common.PugvSeasonPrimaryInfo.statInfo: object expected");i.statInfo=u.bilibili.app.viewunite.common.StatInfo.fromObject(t.statInfo)}if(t.rankInfo!=null){if(typeof t.rankInfo!="object")throw TypeError(".bilibili.app.viewunite.common.PugvSeasonPrimaryInfo.rankInfo: object expected");i.rankInfo=u.bilibili.app.viewunite.common.PugvSeasonPrimaryRankInfo.fromObject(t.rankInfo)}if(t.sellPointInfo!=null){if(typeof t.sellPointInfo!="object")throw TypeError(".bilibili.app.viewunite.common.PugvSeasonPrimaryInfo.sellPointInfo: object expected");i.sellPointInfo=u.bilibili.app.viewunite.common.PugvSeasonPrimarySellPointInfo.fromObject(t.sellPointInfo)}if(t.customInfo!=null){if(typeof t.customInfo!="object")throw TypeError(".bilibili.app.viewunite.common.PugvSeasonPrimaryInfo.customInfo: object expected");i.customInfo=u.bilibili.app.viewunite.common.PugvSeasonPrimaryCustomInfo.fromObject(t.customInfo)}if(t.showPayment!=null&&(i.showPayment=!!t.showPayment),t.badge!=null){if(typeof t.badge!="object")throw TypeError(".bilibili.app.viewunite.common.PugvSeasonPrimaryInfo.badge: object expected");i.badge=u.bilibili.app.viewunite.common.PugvSeasonPrimaryBadge.fromObject(t.badge)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.title="",n.subtitle="",n.statInfo=null,n.rankInfo=null,n.sellPointInfo=null,n.customInfo=null,n.showPayment=!1,n.badge=null),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.subtitle!=null&&t.hasOwnProperty("subtitle")&&(n.subtitle=t.subtitle),t.statInfo!=null&&t.hasOwnProperty("statInfo")&&(n.statInfo=u.bilibili.app.viewunite.common.StatInfo.toObject(t.statInfo,i)),t.rankInfo!=null&&t.hasOwnProperty("rankInfo")&&(n.rankInfo=u.bilibili.app.viewunite.common.PugvSeasonPrimaryRankInfo.toObject(t.rankInfo,i)),t.sellPointInfo!=null&&t.hasOwnProperty("sellPointInfo")&&(n.sellPointInfo=u.bilibili.app.viewunite.common.PugvSeasonPrimarySellPointInfo.toObject(t.sellPointInfo,i)),t.customInfo!=null&&t.hasOwnProperty("customInfo")&&(n.customInfo=u.bilibili.app.viewunite.common.PugvSeasonPrimaryCustomInfo.toObject(t.customInfo,i)),t.showPayment!=null&&t.hasOwnProperty("showPayment")&&(n.showPayment=t.showPayment),t.badge!=null&&t.hasOwnProperty("badge")&&(n.badge=u.bilibili.app.viewunite.common.PugvSeasonPrimaryBadge.toObject(t.badge,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.PugvSeasonPrimaryInfo"},e}(),c.PugvCooperationApplication=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.link=t.string();break}case 2:{o.title=t.string();break}case 3:{o.subtitle=t.string();break}case 4:{o.buttonText=t.string();break}case 5:{o.icon=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.PugvCooperationApplication)return t;let i=new u.bilibili.app.viewunite.common.PugvCooperationApplication;return t.link!=null&&(i.link=String(t.link)),t.title!=null&&(i.title=String(t.title)),t.subtitle!=null&&(i.subtitle=String(t.subtitle)),t.buttonText!=null&&(i.buttonText=String(t.buttonText)),t.icon!=null&&(i.icon=String(t.icon)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.link="",n.title="",n.subtitle="",n.buttonText="",n.icon=""),t.link!=null&&t.hasOwnProperty("link")&&(n.link=t.link),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.subtitle!=null&&t.hasOwnProperty("subtitle")&&(n.subtitle=t.subtitle),t.buttonText!=null&&t.hasOwnProperty("buttonText")&&(n.buttonText=t.buttonText),t.icon!=null&&t.hasOwnProperty("icon")&&(n.icon=t.icon),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.PugvCooperationApplication"},e}(),c.PugvSeasonNav=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.moreText=t.string();break}case 3:{o.desc=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.PugvSeasonNav)return t;let i=new u.bilibili.app.viewunite.common.PugvSeasonNav;return t.title!=null&&(i.title=String(t.title)),t.moreText!=null&&(i.moreText=String(t.moreText)),t.desc!=null&&(i.desc=String(t.desc)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.title="",n.moreText="",n.desc=""),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.moreText!=null&&t.hasOwnProperty("moreText")&&(n.moreText=t.moreText),t.desc!=null&&t.hasOwnProperty("desc")&&(n.desc=t.desc),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.PugvSeasonNav"},e}(),c.PugvShoppingNotice=function(){function e(l){if(this.contents=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.nav=u.bilibili.app.viewunite.common.PugvSeasonNav.decode(t,t.uint32());break}case 2:{o.contents&&o.contents.length||(o.contents=[]),o.contents.push(u.bilibili.app.viewunite.common.PugvShoppingNoticeContent.decode(t,t.uint32()));break}case 3:{o.link=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.PugvShoppingNotice)return t;let i=new u.bilibili.app.viewunite.common.PugvShoppingNotice;if(t.nav!=null){if(typeof t.nav!="object")throw TypeError(".bilibili.app.viewunite.common.PugvShoppingNotice.nav: object expected");i.nav=u.bilibili.app.viewunite.common.PugvSeasonNav.fromObject(t.nav)}if(t.contents){if(!Array.isArray(t.contents))throw TypeError(".bilibili.app.viewunite.common.PugvShoppingNotice.contents: array expected");i.contents=[];for(let n=0;n>>3){case 1:{o.number=t.string();break}case 2:{o.content=t.string();break}case 3:{o.isBold=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.PugvShoppingNoticeContent)return t;let i=new u.bilibili.app.viewunite.common.PugvShoppingNoticeContent;return t.number!=null&&(i.number=String(t.number)),t.content!=null&&(i.content=String(t.content)),t.isBold!=null&&(i.isBold=!!t.isBold),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.number="",n.content="",n.isBold=!1),t.number!=null&&t.hasOwnProperty("number")&&(n.number=t.number),t.content!=null&&t.hasOwnProperty("content")&&(n.content=t.content),t.isBold!=null&&t.hasOwnProperty("isBold")&&(n.isBold=t.isBold),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.PugvShoppingNoticeContent"},e}(),c.PugvFaq=function(){function e(l){if(this.contents=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.nav=u.bilibili.app.viewunite.common.PugvSeasonNav.decode(t,t.uint32());break}case 2:{o.contents&&o.contents.length||(o.contents=[]),o.contents.push(u.bilibili.app.viewunite.common.PugvFaqContent.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.PugvFaq)return t;let i=new u.bilibili.app.viewunite.common.PugvFaq;if(t.nav!=null){if(typeof t.nav!="object")throw TypeError(".bilibili.app.viewunite.common.PugvFaq.nav: object expected");i.nav=u.bilibili.app.viewunite.common.PugvSeasonNav.fromObject(t.nav)}if(t.contents){if(!Array.isArray(t.contents))throw TypeError(".bilibili.app.viewunite.common.PugvFaq.contents: array expected");i.contents=[];for(let n=0;n>>3){case 1:{o.question=t.string();break}case 2:{o.answer=t.string();break}case 3:{o.link=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.PugvFaqContent)return t;let i=new u.bilibili.app.viewunite.common.PugvFaqContent;return t.question!=null&&(i.question=String(t.question)),t.answer!=null&&(i.answer=String(t.answer)),t.link!=null&&(i.link=String(t.link)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.question="",n.answer="",n.link=""),t.question!=null&&t.hasOwnProperty("question")&&(n.question=t.question),t.answer!=null&&t.hasOwnProperty("answer")&&(n.answer=t.answer),t.link!=null&&t.hasOwnProperty("link")&&(n.link=t.link),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.PugvFaqContent"},e}(),c.PugvSeasonRecommend=function(){function e(l){if(this.contents=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.nav=u.bilibili.app.viewunite.common.PugvSeasonNav.decode(t,t.uint32());break}case 2:{o.contents&&o.contents.length||(o.contents=[]),o.contents.push(u.bilibili.app.viewunite.common.PugvSeasonRecommendContent.decode(t,t.uint32()));break}case 3:{o.moreInfo=u.bilibili.app.viewunite.common.PugvSeasonRecommendMore.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.PugvSeasonRecommend)return t;let i=new u.bilibili.app.viewunite.common.PugvSeasonRecommend;if(t.nav!=null){if(typeof t.nav!="object")throw TypeError(".bilibili.app.viewunite.common.PugvSeasonRecommend.nav: object expected");i.nav=u.bilibili.app.viewunite.common.PugvSeasonNav.fromObject(t.nav)}if(t.contents){if(!Array.isArray(t.contents))throw TypeError(".bilibili.app.viewunite.common.PugvSeasonRecommend.contents: array expected");i.contents=[];for(let n=0;n>>3){case 1:{o.coverUrl=t.string();break}case 2:{o.title=t.string();break}case 3:{o.subtitle=t.string();break}case 4:{o.link=t.string();break}case 5:{o.desc=t.string();break}case 6:{o.seasonId=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.PugvSeasonRecommendContent)return t;let i=new u.bilibili.app.viewunite.common.PugvSeasonRecommendContent;return t.coverUrl!=null&&(i.coverUrl=String(t.coverUrl)),t.title!=null&&(i.title=String(t.title)),t.subtitle!=null&&(i.subtitle=String(t.subtitle)),t.link!=null&&(i.link=String(t.link)),t.desc!=null&&(i.desc=String(t.desc)),t.seasonId!=null&&(r.Long?(i.seasonId=r.Long.fromValue(t.seasonId)).unsigned=!1:typeof t.seasonId=="string"?i.seasonId=parseInt(t.seasonId,10):typeof t.seasonId=="number"?i.seasonId=t.seasonId:typeof t.seasonId=="object"&&(i.seasonId=new r.LongBits(t.seasonId.low>>>0,t.seasonId.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(n.coverUrl="",n.title="",n.subtitle="",n.link="",n.desc="",r.Long){let o=new r.Long(0,0,!1);n.seasonId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.seasonId=i.longs===String?"0":0;return t.coverUrl!=null&&t.hasOwnProperty("coverUrl")&&(n.coverUrl=t.coverUrl),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.subtitle!=null&&t.hasOwnProperty("subtitle")&&(n.subtitle=t.subtitle),t.link!=null&&t.hasOwnProperty("link")&&(n.link=t.link),t.desc!=null&&t.hasOwnProperty("desc")&&(n.desc=t.desc),t.seasonId!=null&&t.hasOwnProperty("seasonId")&&(typeof t.seasonId=="number"?n.seasonId=i.longs===String?String(t.seasonId):t.seasonId:n.seasonId=i.longs===String?r.Long.prototype.toString.call(t.seasonId):i.longs===Number?new r.LongBits(t.seasonId.low>>>0,t.seasonId.high>>>0).toNumber():t.seasonId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.PugvSeasonRecommendContent"},e}(),c.PugvSeasonRecommendMore=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.link=t.string();break}case 3:{o.linkText=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.PugvSeasonRecommendMore)return t;let i=new u.bilibili.app.viewunite.common.PugvSeasonRecommendMore;return t.title!=null&&(i.title=String(t.title)),t.link!=null&&(i.link=String(t.link)),t.linkText!=null&&(i.linkText=String(t.linkText)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.title="",n.link="",n.linkText=""),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.link!=null&&t.hasOwnProperty("link")&&(n.link=t.link),t.linkText!=null&&t.hasOwnProperty("linkText")&&(n.linkText=t.linkText),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.PugvSeasonRecommendMore"},e}(),c.PugvSeasonPublisher=function(){function e(l){if(this.cooperators=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.nav=u.bilibili.app.viewunite.common.PugvSeasonNav.decode(t,t.uint32());break}case 2:{o.publisherDesc=t.string();break}case 3:{o.cooperators&&o.cooperators.length||(o.cooperators=[]),o.cooperators.push(u.bilibili.app.viewunite.common.PugvSeasonCooperator.decode(t,t.uint32()));break}case 4:{o.skuContent=u.bilibili.app.viewunite.common.PugvSeasonPublisherSkuContent.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.PugvSeasonPublisher)return t;let i=new u.bilibili.app.viewunite.common.PugvSeasonPublisher;if(t.nav!=null){if(typeof t.nav!="object")throw TypeError(".bilibili.app.viewunite.common.PugvSeasonPublisher.nav: object expected");i.nav=u.bilibili.app.viewunite.common.PugvSeasonNav.fromObject(t.nav)}if(t.publisherDesc!=null&&(i.publisherDesc=String(t.publisherDesc)),t.cooperators){if(!Array.isArray(t.cooperators))throw TypeError(".bilibili.app.viewunite.common.PugvSeasonPublisher.cooperators: array expected");i.cooperators=[];for(let n=0;n>>3){case 1:{o.mid=t.int64();break}case 2:{o.avatar=t.string();break}case 3:{o.nickname=t.string();break}case 4:{o.isOwner=t.bool();break}case 5:{o.role=t.string();break}case 6:{o.userLink=t.string();break}case 7:{o.followed=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.PugvSeasonCooperator)return t;let i=new u.bilibili.app.viewunite.common.PugvSeasonCooperator;return t.mid!=null&&(r.Long?(i.mid=r.Long.fromValue(t.mid)).unsigned=!1:typeof t.mid=="string"?i.mid=parseInt(t.mid,10):typeof t.mid=="number"?i.mid=t.mid:typeof t.mid=="object"&&(i.mid=new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber())),t.avatar!=null&&(i.avatar=String(t.avatar)),t.nickname!=null&&(i.nickname=String(t.nickname)),t.isOwner!=null&&(i.isOwner=!!t.isOwner),t.role!=null&&(i.role=String(t.role)),t.userLink!=null&&(i.userLink=String(t.userLink)),t.followed!=null&&(i.followed=!!t.followed),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.mid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mid=i.longs===String?"0":0;n.avatar="",n.nickname="",n.isOwner=!1,n.role="",n.userLink="",n.followed=!1}return t.mid!=null&&t.hasOwnProperty("mid")&&(typeof t.mid=="number"?n.mid=i.longs===String?String(t.mid):t.mid:n.mid=i.longs===String?r.Long.prototype.toString.call(t.mid):i.longs===Number?new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber():t.mid),t.avatar!=null&&t.hasOwnProperty("avatar")&&(n.avatar=t.avatar),t.nickname!=null&&t.hasOwnProperty("nickname")&&(n.nickname=t.nickname),t.isOwner!=null&&t.hasOwnProperty("isOwner")&&(n.isOwner=t.isOwner),t.role!=null&&t.hasOwnProperty("role")&&(n.role=t.role),t.userLink!=null&&t.hasOwnProperty("userLink")&&(n.userLink=t.userLink),t.followed!=null&&t.hasOwnProperty("followed")&&(n.followed=t.followed),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.PugvSeasonCooperator"},e}(),c.PugvSeasonPublisherSkuContent=function(){function e(l){if(this.items=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.items&&o.items.length||(o.items=[]),o.items.push(u.bilibili.app.viewunite.common.PugvSeasonPublisherSkuContentItem.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.PugvSeasonPublisherSkuContent)return t;let i=new u.bilibili.app.viewunite.common.PugvSeasonPublisherSkuContent;if(t.title!=null&&(i.title=String(t.title)),t.items){if(!Array.isArray(t.items))throw TypeError(".bilibili.app.viewunite.common.PugvSeasonPublisherSkuContent.items: array expected");i.items=[];for(let n=0;n>>3){case 1:{o.title=t.string();break}case 2:{o.seasonId=t.int64();break}case 3:{o.selected=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.PugvSeasonPublisherSkuContentItem)return t;let i=new u.bilibili.app.viewunite.common.PugvSeasonPublisherSkuContentItem;return t.title!=null&&(i.title=String(t.title)),t.seasonId!=null&&(r.Long?(i.seasonId=r.Long.fromValue(t.seasonId)).unsigned=!1:typeof t.seasonId=="string"?i.seasonId=parseInt(t.seasonId,10):typeof t.seasonId=="number"?i.seasonId=t.seasonId:typeof t.seasonId=="object"&&(i.seasonId=new r.LongBits(t.seasonId.low>>>0,t.seasonId.high>>>0).toNumber())),t.selected!=null&&(i.selected=!!t.selected),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.title="",r.Long){let o=new r.Long(0,0,!1);n.seasonId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.seasonId=i.longs===String?"0":0;n.selected=!1}return t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.seasonId!=null&&t.hasOwnProperty("seasonId")&&(typeof t.seasonId=="number"?n.seasonId=i.longs===String?String(t.seasonId):t.seasonId:n.seasonId=i.longs===String?r.Long.prototype.toString.call(t.seasonId):i.longs===Number?new r.LongBits(t.seasonId.low>>>0,t.seasonId.high>>>0).toNumber():t.seasonId),t.selected!=null&&t.hasOwnProperty("selected")&&(n.selected=t.selected),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.PugvSeasonPublisherSkuContentItem"},e}(),c.PugvSeasonDescriptionType=function(){let e={},l=Object.create(e);return l[e[0]="PUGV_SEASON_DESCRIPTION_TYPE_UNSPECIFIED"]=0,l[e[1]="PUGV_SEASON_DESCRIPTION_TYPE_TEXT"]=1,l[e[2]="PUGV_SEASON_DESCRIPTION_TYPE_IMAGE"]=2,l}(),c.PugvSeasonDescription=function(){function e(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.nav=u.bilibili.app.viewunite.common.PugvSeasonNav.decode(i,i.uint32());break}case 2:{a.type=i.int32();break}case 3:{a.text=u.bilibili.app.viewunite.common.PugvSeasonDescriptionText.decode(i,i.uint32());break}case 4:{a.image=u.bilibili.app.viewunite.common.PugvSeasonDescriptionImage.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},e.fromObject=function(i){if(i instanceof u.bilibili.app.viewunite.common.PugvSeasonDescription)return i;let n=new u.bilibili.app.viewunite.common.PugvSeasonDescription;if(i.nav!=null){if(typeof i.nav!="object")throw TypeError(".bilibili.app.viewunite.common.PugvSeasonDescription.nav: object expected");n.nav=u.bilibili.app.viewunite.common.PugvSeasonNav.fromObject(i.nav)}switch(i.type){default:if(typeof i.type=="number"){n.type=i.type;break}break;case"PUGV_SEASON_DESCRIPTION_TYPE_UNSPECIFIED":case 0:n.type=0;break;case"PUGV_SEASON_DESCRIPTION_TYPE_TEXT":case 1:n.type=1;break;case"PUGV_SEASON_DESCRIPTION_TYPE_IMAGE":case 2:n.type=2;break}if(i.text!=null){if(typeof i.text!="object")throw TypeError(".bilibili.app.viewunite.common.PugvSeasonDescription.text: object expected");n.text=u.bilibili.app.viewunite.common.PugvSeasonDescriptionText.fromObject(i.text)}if(i.image!=null){if(typeof i.image!="object")throw TypeError(".bilibili.app.viewunite.common.PugvSeasonDescription.image: object expected");n.image=u.bilibili.app.viewunite.common.PugvSeasonDescriptionImage.fromObject(i.image)}return n},e.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.nav=null,o.type=n.enums===String?"PUGV_SEASON_DESCRIPTION_TYPE_UNSPECIFIED":0),i.nav!=null&&i.hasOwnProperty("nav")&&(o.nav=u.bilibili.app.viewunite.common.PugvSeasonNav.toObject(i.nav,n)),i.type!=null&&i.hasOwnProperty("type")&&(o.type=n.enums===String?u.bilibili.app.viewunite.common.PugvSeasonDescriptionType[i.type]===void 0?i.type:u.bilibili.app.viewunite.common.PugvSeasonDescriptionType[i.type]:i.type),i.text!=null&&i.hasOwnProperty("text")&&(o.text=u.bilibili.app.viewunite.common.PugvSeasonDescriptionText.toObject(i.text,n),n.oneofs&&(o.content="text")),i.image!=null&&i.hasOwnProperty("image")&&(o.image=u.bilibili.app.viewunite.common.PugvSeasonDescriptionImage.toObject(i.image,n),n.oneofs&&(o.content="image")),o},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.app.viewunite.common.PugvSeasonDescription"},e}(),c.PugvSeasonDescriptionText=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.text=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.PugvSeasonDescriptionText)return t;let i=new u.bilibili.app.viewunite.common.PugvSeasonDescriptionText;return t.text!=null&&(i.text=String(t.text)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.text=""),t.text!=null&&t.hasOwnProperty("text")&&(n.text=t.text),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.PugvSeasonDescriptionText"},e}(),c.PugvSeasonDescriptionImage=function(){function e(l){if(this.images=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.images&&o.images.length||(o.images=[]),o.images.push(u.bilibili.app.viewunite.common.PugvSeasonDescriptionImageItem.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.PugvSeasonDescriptionImage)return t;let i=new u.bilibili.app.viewunite.common.PugvSeasonDescriptionImage;if(t.images){if(!Array.isArray(t.images))throw TypeError(".bilibili.app.viewunite.common.PugvSeasonDescriptionImage.images: array expected");i.images=[];for(let n=0;n>>3){case 1:{o.imageUrl=t.string();break}case 2:{o.aspectRatio=t.double();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.PugvSeasonDescriptionImageItem)return t;let i=new u.bilibili.app.viewunite.common.PugvSeasonDescriptionImageItem;return t.imageUrl!=null&&(i.imageUrl=String(t.imageUrl)),t.aspectRatio!=null&&(i.aspectRatio=Number(t.aspectRatio)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.imageUrl="",n.aspectRatio=0),t.imageUrl!=null&&t.hasOwnProperty("imageUrl")&&(n.imageUrl=t.imageUrl),t.aspectRatio!=null&&t.hasOwnProperty("aspectRatio")&&(n.aspectRatio=i.json&&!isFinite(t.aspectRatio)?String(t.aspectRatio):t.aspectRatio),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.PugvSeasonDescriptionImageItem"},e}(),c.PugvZone=function(){function e(l){if(this.contents=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.contents&&o.contents.length||(o.contents=[]),o.contents.push(u.bilibili.app.viewunite.common.PugvZoneItem.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.PugvZone)return t;let i=new u.bilibili.app.viewunite.common.PugvZone;if(t.contents){if(!Array.isArray(t.contents))throw TypeError(".bilibili.app.viewunite.common.PugvZone.contents: array expected");i.contents=[];for(let n=0;n>>3){case 1:{o.icon=t.string();break}case 2:{o.link=t.string();break}case 3:{o.title=t.string();break}case 4:{o.subtitle=t.string();break}case 5:{o.type=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.PugvZoneItem)return t;let i=new u.bilibili.app.viewunite.common.PugvZoneItem;switch(t.icon!=null&&(i.icon=String(t.icon)),t.link!=null&&(i.link=String(t.link)),t.title!=null&&(i.title=String(t.title)),t.subtitle!=null&&(i.subtitle=String(t.subtitle)),t.type){default:if(typeof t.type=="number"){i.type=t.type;break}break;case"PUGV_ZONE_ITEM_TYPE_UNSPECIFIED":case 0:i.type=0;break;case"PUGV_ZONE_ITEM_TYPE_SEASON":case 1:i.type=1;break;case"PUGV_ZONE_ITEM_TYPE_POSTGRADUATE":case 2:i.type=2;break}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.icon="",n.link="",n.title="",n.subtitle="",n.type=i.enums===String?"PUGV_ZONE_ITEM_TYPE_UNSPECIFIED":0),t.icon!=null&&t.hasOwnProperty("icon")&&(n.icon=t.icon),t.link!=null&&t.hasOwnProperty("link")&&(n.link=t.link),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.subtitle!=null&&t.hasOwnProperty("subtitle")&&(n.subtitle=t.subtitle),t.type!=null&&t.hasOwnProperty("type")&&(n.type=i.enums===String?u.bilibili.app.viewunite.common.PugvZoneItemType[t.type]===void 0?t.type:u.bilibili.app.viewunite.common.PugvZoneItemType[t.type]:t.type),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.PugvZoneItem"},e}(),c.PugvZoneItemType=function(){let e={},l=Object.create(e);return l[e[0]="PUGV_ZONE_ITEM_TYPE_UNSPECIFIED"]=0,l[e[1]="PUGV_ZONE_ITEM_TYPE_SEASON"]=1,l[e[2]="PUGV_ZONE_ITEM_TYPE_POSTGRADUATE"]=2,l}(),c.PugvSeries=function(){function e(l){if(this.contents=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.nav=u.bilibili.app.viewunite.common.PugvSeasonNav.decode(t,t.uint32());break}case 2:{o.contents&&o.contents.length||(o.contents=[]),o.contents.push(u.bilibili.app.viewunite.common.PugvSeriesItem.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.PugvSeries)return t;let i=new u.bilibili.app.viewunite.common.PugvSeries;if(t.nav!=null){if(typeof t.nav!="object")throw TypeError(".bilibili.app.viewunite.common.PugvSeries.nav: object expected");i.nav=u.bilibili.app.viewunite.common.PugvSeasonNav.fromObject(t.nav)}if(t.contents){if(!Array.isArray(t.contents))throw TypeError(".bilibili.app.viewunite.common.PugvSeries.contents: array expected");i.contents=[];for(let n=0;n>>3){case 1:{o.seasonId=t.int64();break}case 2:{o.selected=t.bool();break}case 3:{o.gray=t.bool();break}case 4:{o.content=t.string();break}case 5:{o.label=t.string();break}case 6:{o.state=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.PugvSeriesItem)return t;let i=new u.bilibili.app.viewunite.common.PugvSeriesItem;switch(t.seasonId!=null&&(r.Long?(i.seasonId=r.Long.fromValue(t.seasonId)).unsigned=!1:typeof t.seasonId=="string"?i.seasonId=parseInt(t.seasonId,10):typeof t.seasonId=="number"?i.seasonId=t.seasonId:typeof t.seasonId=="object"&&(i.seasonId=new r.LongBits(t.seasonId.low>>>0,t.seasonId.high>>>0).toNumber())),t.selected!=null&&(i.selected=!!t.selected),t.gray!=null&&(i.gray=!!t.gray),t.content!=null&&(i.content=String(t.content)),t.label!=null&&(i.label=String(t.label)),t.state){default:if(typeof t.state=="number"){i.state=t.state;break}break;case"PUGV_SERIRES_ITEM_STATE_UNSPECIAL":case 0:i.state=0;break;case"PUGV_SERIRES_ITEM_STATE_NOT_START":case 1:i.state=1;break;case"PUGV_SERIRES_ITEM_STATE_START":case 2:i.state=2;break;case"PUGV_SERIRES_ITEM_STATE_END":case 3:i.state=3;break}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.seasonId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.seasonId=i.longs===String?"0":0;n.selected=!1,n.gray=!1,n.content="",n.label="",n.state=i.enums===String?"PUGV_SERIRES_ITEM_STATE_UNSPECIAL":0}return t.seasonId!=null&&t.hasOwnProperty("seasonId")&&(typeof t.seasonId=="number"?n.seasonId=i.longs===String?String(t.seasonId):t.seasonId:n.seasonId=i.longs===String?r.Long.prototype.toString.call(t.seasonId):i.longs===Number?new r.LongBits(t.seasonId.low>>>0,t.seasonId.high>>>0).toNumber():t.seasonId),t.selected!=null&&t.hasOwnProperty("selected")&&(n.selected=t.selected),t.gray!=null&&t.hasOwnProperty("gray")&&(n.gray=t.gray),t.content!=null&&t.hasOwnProperty("content")&&(n.content=t.content),t.label!=null&&t.hasOwnProperty("label")&&(n.label=t.label),t.state!=null&&t.hasOwnProperty("state")&&(n.state=i.enums===String?u.bilibili.app.viewunite.common.PugvSeriesItemState[t.state]===void 0?t.state:u.bilibili.app.viewunite.common.PugvSeriesItemState[t.state]:t.state),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.PugvSeriesItem"},e}(),c.PugvSeriesItemState=function(){let e={},l=Object.create(e);return l[e[0]="PUGV_SERIRES_ITEM_STATE_UNSPECIAL"]=0,l[e[1]="PUGV_SERIRES_ITEM_STATE_NOT_START"]=1,l[e[2]="PUGV_SERIRES_ITEM_STATE_START"]=2,l[e[3]="PUGV_SERIRES_ITEM_STATE_END"]=3,l}(),c.PugvPackage=function(){function e(l){if(this.contents=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.nav=u.bilibili.app.viewunite.common.PugvSeasonNav.decode(t,t.uint32());break}case 2:{o.contents&&o.contents.length||(o.contents=[]),o.contents.push(u.bilibili.app.viewunite.common.PugvPackageItem.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.PugvPackage)return t;let i=new u.bilibili.app.viewunite.common.PugvPackage;if(t.nav!=null){if(typeof t.nav!="object")throw TypeError(".bilibili.app.viewunite.common.PugvPackage.nav: object expected");i.nav=u.bilibili.app.viewunite.common.PugvSeasonNav.fromObject(t.nav)}if(t.contents){if(!Array.isArray(t.contents))throw TypeError(".bilibili.app.viewunite.common.PugvPackage.contents: array expected");i.contents=[];for(let n=0;n>>3){case 1:{o.productId=t.int64();break}case 2:{o.cover=t.string();break}case 3:{o.title=t.string();break}case 4:{o.discountPriceDesc=t.string();break}case 5:{o.originalPriceDesc=t.string();break}case 6:{o.desc=t.string();break}case 7:{o.link=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.PugvPackageItem)return t;let i=new u.bilibili.app.viewunite.common.PugvPackageItem;return t.productId!=null&&(r.Long?(i.productId=r.Long.fromValue(t.productId)).unsigned=!1:typeof t.productId=="string"?i.productId=parseInt(t.productId,10):typeof t.productId=="number"?i.productId=t.productId:typeof t.productId=="object"&&(i.productId=new r.LongBits(t.productId.low>>>0,t.productId.high>>>0).toNumber())),t.cover!=null&&(i.cover=String(t.cover)),t.title!=null&&(i.title=String(t.title)),t.discountPriceDesc!=null&&(i.discountPriceDesc=String(t.discountPriceDesc)),t.originalPriceDesc!=null&&(i.originalPriceDesc=String(t.originalPriceDesc)),t.desc!=null&&(i.desc=String(t.desc)),t.link!=null&&(i.link=String(t.link)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.productId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.productId=i.longs===String?"0":0;n.cover="",n.title="",n.discountPriceDesc="",n.originalPriceDesc="",n.desc="",n.link=""}return t.productId!=null&&t.hasOwnProperty("productId")&&(typeof t.productId=="number"?n.productId=i.longs===String?String(t.productId):t.productId:n.productId=i.longs===String?r.Long.prototype.toString.call(t.productId):i.longs===Number?new r.LongBits(t.productId.low>>>0,t.productId.high>>>0).toNumber():t.productId),t.cover!=null&&t.hasOwnProperty("cover")&&(n.cover=t.cover),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.discountPriceDesc!=null&&t.hasOwnProperty("discountPriceDesc")&&(n.discountPriceDesc=t.discountPriceDesc),t.originalPriceDesc!=null&&t.hasOwnProperty("originalPriceDesc")&&(n.originalPriceDesc=t.originalPriceDesc),t.desc!=null&&t.hasOwnProperty("desc")&&(n.desc=t.desc),t.link!=null&&t.hasOwnProperty("link")&&(n.link=t.link),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.PugvPackageItem"},e}(),c.ProfessionApproval=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.subtitle=t.string();break}case 3:{o.type=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.ProfessionApproval)return t;let i=new u.bilibili.app.viewunite.common.ProfessionApproval;return t.title!=null&&(i.title=String(t.title)),t.subtitle!=null&&(i.subtitle=String(t.subtitle)),t.type!=null&&(i.type=t.type|0),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.title="",n.subtitle="",n.type=0),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.subtitle!=null&&t.hasOwnProperty("subtitle")&&(n.subtitle=t.subtitle),t.type!=null&&t.hasOwnProperty("type")&&(n.type=t.type),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.ProfessionApproval"},e}(),c.Honor=function(){function e(t){if(this.report={},t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.icon=i.string();break}case 2:{a.iconNight=i.string();break}case 3:{a.text=i.string();break}case 4:{a.textExtra=i.string();break}case 5:{a.textColor=i.string();break}case 6:{a.textColorNight=i.string();break}case 7:{a.bgColor=i.string();break}case 8:{a.bgColorNight=i.string();break}case 9:{a.url=i.string();break}case 10:{a.urlText=i.string();break}case 11:{a.type=i.int32();break}case 12:{a.honorJumpType=i.int32();break}case 13:{a.report===r.emptyObject&&(a.report={});let g=i.uint32()+i.pos;for(y="",s="";i.pos>>3){case 1:y=i.string();break;case 2:s=i.string();break;default:i.skipType(S&7);break}}a.report[y]=s;break}case 14:{a.endIcon=i.string();break}case 15:{a.professionExt=u.bilibili.app.viewunite.common.ProfessionHonorExtend.decode(i,i.uint32());break}default:i.skipType(v&7);break}}return a},e.fromObject=function(i){if(i instanceof u.bilibili.app.viewunite.common.Honor)return i;let n=new u.bilibili.app.viewunite.common.Honor;switch(i.icon!=null&&(n.icon=String(i.icon)),i.iconNight!=null&&(n.iconNight=String(i.iconNight)),i.text!=null&&(n.text=String(i.text)),i.textExtra!=null&&(n.textExtra=String(i.textExtra)),i.textColor!=null&&(n.textColor=String(i.textColor)),i.textColorNight!=null&&(n.textColorNight=String(i.textColorNight)),i.bgColor!=null&&(n.bgColor=String(i.bgColor)),i.bgColorNight!=null&&(n.bgColorNight=String(i.bgColorNight)),i.url!=null&&(n.url=String(i.url)),i.urlText!=null&&(n.urlText=String(i.urlText)),i.type){default:if(typeof i.type=="number"){n.type=i.type;break}break;case"HONOR_NONE":case 0:n.type=0;break;case"PLAYLET":case 1:n.type=1;break;case"ARGUE":case 2:n.type=2;break;case"NOTICE":case 3:n.type=3;break;case"GUIDANCE":case 4:n.type=4;break;case"HONOR_BILI_RANK":case 5:n.type=5;break;case"HONOR_WEEKLY_RANK":case 6:n.type=6;break;case"HONOR_DAILY_RANK":case 7:n.type=7;break;case"HONOR_CHANNEL":case 8:n.type=8;break;case"HONOR_MUSIC":case 9:n.type=9;break;case"HONOR_REPLY":case 10:n.type=10;break;case"HONOR_PROFESSION":case 11:n.type=11;break}switch(i.honorJumpType){default:if(typeof i.honorJumpType=="number"){n.honorJumpType=i.honorJumpType;break}break;case"HONOR_JUMP_TYPE_UNKNOWN":case 0:n.honorJumpType=0;break;case"HONOR_OPEN_URL":case 1:n.honorJumpType=1;break;case"HONOR_HALF_SCREEN":case 2:n.honorJumpType=2;break;case"HONOR_POPUP":case 3:n.honorJumpType=3;break}if(i.report){if(typeof i.report!="object")throw TypeError(".bilibili.app.viewunite.common.Honor.report: object expected");n.report={};for(let o=Object.keys(i.report),a=0;a>>3){case 1:{o.list&&o.list.length||(o.list=[]),o.list.push(u.bilibili.app.viewunite.common.User.decode(t,t.uint32()));break}case 2:{o.title=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.UserList)return t;let i=new u.bilibili.app.viewunite.common.UserList;if(t.list){if(!Array.isArray(t.list))throw TypeError(".bilibili.app.viewunite.common.UserList.list: array expected");i.list=[];for(let n=0;n>>3){case 1:{o.mid=t.int64();break}case 2:{o.name=t.string();break}case 3:{o.face=t.string();break}case 4:{o.follower=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.User)return t;let i=new u.bilibili.app.viewunite.common.User;return t.mid!=null&&(r.Long?(i.mid=r.Long.fromValue(t.mid)).unsigned=!1:typeof t.mid=="string"?i.mid=parseInt(t.mid,10):typeof t.mid=="number"?i.mid=t.mid:typeof t.mid=="object"&&(i.mid=new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber())),t.name!=null&&(i.name=String(t.name)),t.face!=null&&(i.face=String(t.face)),t.follower!=null&&(r.Long?(i.follower=r.Long.fromValue(t.follower)).unsigned=!1:typeof t.follower=="string"?i.follower=parseInt(t.follower,10):typeof t.follower=="number"?i.follower=t.follower:typeof t.follower=="object"&&(i.follower=new r.LongBits(t.follower.low>>>0,t.follower.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.mid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mid=i.longs===String?"0":0;if(n.name="",n.face="",r.Long){let o=new r.Long(0,0,!1);n.follower=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.follower=i.longs===String?"0":0}return t.mid!=null&&t.hasOwnProperty("mid")&&(typeof t.mid=="number"?n.mid=i.longs===String?String(t.mid):t.mid:n.mid=i.longs===String?r.Long.prototype.toString.call(t.mid):i.longs===Number?new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber():t.mid),t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),t.face!=null&&t.hasOwnProperty("face")&&(n.face=t.face),t.follower!=null&&t.hasOwnProperty("follower")&&(typeof t.follower=="number"?n.follower=i.longs===String?String(t.follower):t.follower:n.follower=i.longs===String?r.Long.prototype.toString.call(t.follower):i.longs===Number?new r.LongBits(t.follower.low>>>0,t.follower.high>>>0).toNumber():t.follower),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.User"},e}(),c.OgvIntroduction=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.followers=t.string();break}case 2:{o.score=t.string();break}case 3:{o.playData=u.bilibili.app.viewunite.common.StatInfo.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.OgvIntroduction)return t;let i=new u.bilibili.app.viewunite.common.OgvIntroduction;if(t.followers!=null&&(i.followers=String(t.followers)),t.score!=null&&(i.score=String(t.score)),t.playData!=null){if(typeof t.playData!="object")throw TypeError(".bilibili.app.viewunite.common.OgvIntroduction.playData: object expected");i.playData=u.bilibili.app.viewunite.common.StatInfo.fromObject(t.playData)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.followers="",n.score="",n.playData=null),t.followers!=null&&t.hasOwnProperty("followers")&&(n.followers=t.followers),t.score!=null&&t.hasOwnProperty("score")&&(n.score=t.score),t.playData!=null&&t.hasOwnProperty("playData")&&(n.playData=u.bilibili.app.viewunite.common.StatInfo.toObject(t.playData,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.OgvIntroduction"},e}(),c.UgcIntroduction=function(){function e(l){if(this.tags=[],this.bgm=[],this.sticker=[],this.videoSource=[],this.desc=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.tags&&o.tags.length||(o.tags=[]),o.tags.push(u.bilibili.app.viewunite.common.Tag.decode(t,t.uint32()));break}case 2:{o.rating=u.bilibili.app.viewunite.common.Rating.decode(t,t.uint32());break}case 3:{o.rank=u.bilibili.app.viewunite.common.Rank.decode(t,t.uint32());break}case 4:{o.bgm&&o.bgm.length||(o.bgm=[]),o.bgm.push(u.bilibili.app.viewunite.common.ViewMaterial.decode(t,t.uint32()));break}case 5:{o.sticker&&o.sticker.length||(o.sticker=[]),o.sticker.push(u.bilibili.app.viewunite.common.ViewMaterial.decode(t,t.uint32()));break}case 6:{o.videoSource&&o.videoSource.length||(o.videoSource=[]),o.videoSource.push(u.bilibili.app.viewunite.common.ViewMaterial.decode(t,t.uint32()));break}case 7:{o.pubdate=t.int64();break}case 8:{o.desc&&o.desc.length||(o.desc=[]),o.desc.push(u.bilibili.app.viewunite.common.DescV2.decode(t,t.uint32()));break}case 9:{o.neutral=u.bilibili.app.viewunite.common.Neutral.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.UgcIntroduction)return t;let i=new u.bilibili.app.viewunite.common.UgcIntroduction;if(t.tags){if(!Array.isArray(t.tags))throw TypeError(".bilibili.app.viewunite.common.UgcIntroduction.tags: array expected");i.tags=[];for(let n=0;n>>0,t.pubdate.high>>>0).toNumber())),t.desc){if(!Array.isArray(t.desc))throw TypeError(".bilibili.app.viewunite.common.UgcIntroduction.desc: array expected");i.desc=[];for(let n=0;n>>0,t.pubdate.high>>>0).toNumber():t.pubdate),t.desc&&t.desc.length){n.desc=[];for(let o=0;o>>3){case 1:{o.icon=t.string();break}case 2:{o.title=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.Neutral)return t;let i=new u.bilibili.app.viewunite.common.Neutral;return t.icon!=null&&(i.icon=String(t.icon)),t.title!=null&&(i.title=String(t.title)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.icon="",n.title=""),t.icon!=null&&t.hasOwnProperty("icon")&&(n.icon=t.icon),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.Neutral"},e}(),c.StatInfo=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.value=t.int64();break}case 2:{o.text=t.string();break}case 3:{o.pureText=t.string();break}case 4:{o.icon=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.StatInfo)return t;let i=new u.bilibili.app.viewunite.common.StatInfo;return t.value!=null&&(r.Long?(i.value=r.Long.fromValue(t.value)).unsigned=!1:typeof t.value=="string"?i.value=parseInt(t.value,10):typeof t.value=="number"?i.value=t.value:typeof t.value=="object"&&(i.value=new r.LongBits(t.value.low>>>0,t.value.high>>>0).toNumber())),t.text!=null&&(i.text=String(t.text)),t.pureText!=null&&(i.pureText=String(t.pureText)),t.icon!=null&&(i.icon=String(t.icon)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.value=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.value=i.longs===String?"0":0;n.text="",n.pureText="",n.icon=""}return t.value!=null&&t.hasOwnProperty("value")&&(typeof t.value=="number"?n.value=i.longs===String?String(t.value):t.value:n.value=i.longs===String?r.Long.prototype.toString.call(t.value):i.longs===Number?new r.LongBits(t.value.low>>>0,t.value.high>>>0).toNumber():t.value),t.text!=null&&t.hasOwnProperty("text")&&(n.text=t.text),t.pureText!=null&&t.hasOwnProperty("pureText")&&(n.pureText=t.pureText),t.icon!=null&&t.hasOwnProperty("icon")&&(n.icon=t.icon),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.StatInfo"},e}(),c.DescV2=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.text=t.string();break}case 2:{o.type=t.int32();break}case 3:{o.uri=t.string();break}case 4:{o.rid=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.DescV2)return t;let i=new u.bilibili.app.viewunite.common.DescV2;switch(t.text!=null&&(i.text=String(t.text)),t.type){default:if(typeof t.type=="number"){i.type=t.type;break}break;case"DescTypeUnknown":case 0:i.type=0;break;case"DescTypeText":case 1:i.type=1;break;case"DescTypeAt":case 2:i.type=2;break}return t.uri!=null&&(i.uri=String(t.uri)),t.rid!=null&&(r.Long?(i.rid=r.Long.fromValue(t.rid)).unsigned=!1:typeof t.rid=="string"?i.rid=parseInt(t.rid,10):typeof t.rid=="number"?i.rid=t.rid:typeof t.rid=="object"&&(i.rid=new r.LongBits(t.rid.low>>>0,t.rid.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(n.text="",n.type=i.enums===String?"DescTypeUnknown":0,n.uri="",r.Long){let o=new r.Long(0,0,!1);n.rid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.rid=i.longs===String?"0":0;return t.text!=null&&t.hasOwnProperty("text")&&(n.text=t.text),t.type!=null&&t.hasOwnProperty("type")&&(n.type=i.enums===String?u.bilibili.app.viewunite.common.DescType[t.type]===void 0?t.type:u.bilibili.app.viewunite.common.DescType[t.type]:t.type),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),t.rid!=null&&t.hasOwnProperty("rid")&&(typeof t.rid=="number"?n.rid=i.longs===String?String(t.rid):t.rid:n.rid=i.longs===String?r.Long.prototype.toString.call(t.rid):i.longs===Number?new r.LongBits(t.rid.low>>>0,t.rid.high>>>0).toNumber():t.rid),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.DescV2"},e}(),c.DescType=function(){let e={},l=Object.create(e);return l[e[0]="DescTypeUnknown"]=0,l[e[1]="DescTypeText"]=1,l[e[2]="DescTypeAt"]=2,l}(),c.Rank=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.icon=t.string();break}case 2:{o.iconNight=t.string();break}case 3:{o.text=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.Rank)return t;let i=new u.bilibili.app.viewunite.common.Rank;return t.icon!=null&&(i.icon=String(t.icon)),t.iconNight!=null&&(i.iconNight=String(t.iconNight)),t.text!=null&&(i.text=String(t.text)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.icon="",n.iconNight="",n.text=""),t.icon!=null&&t.hasOwnProperty("icon")&&(n.icon=t.icon),t.iconNight!=null&&t.hasOwnProperty("iconNight")&&(n.iconNight=t.iconNight),t.text!=null&&t.hasOwnProperty("text")&&(n.text=t.text),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.Rank"},e}(),c.KingPosition=function(){function e(l){if(this.kingPos=[],this.extend=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.kingPos&&o.kingPos.length||(o.kingPos=[]),o.kingPos.push(u.bilibili.app.viewunite.common.KingPos.decode(t,t.uint32()));break}case 2:{o.extend&&o.extend.length||(o.extend=[]),o.extend.push(u.bilibili.app.viewunite.common.KingPos.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.KingPosition)return t;let i=new u.bilibili.app.viewunite.common.KingPosition;if(t.kingPos){if(!Array.isArray(t.kingPos))throw TypeError(".bilibili.app.viewunite.common.KingPosition.kingPos: array expected");i.kingPos=[];for(let n=0;n>>3){case 1:{o.score=t.string();break}case 2:{o.count=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.Rating)return t;let i=new u.bilibili.app.viewunite.common.Rating;return t.score!=null&&(i.score=String(t.score)),t.count!=null&&(i.count=t.count|0),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.score="",n.count=0),t.score!=null&&t.hasOwnProperty("score")&&(n.score=t.score),t.count!=null&&t.hasOwnProperty("count")&&(n.count=t.count),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.Rating"},e}(),c.ViewMaterial=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.oid=t.int64();break}case 2:{o.mid=t.int64();break}case 3:{o.title=t.string();break}case 4:{o.author=t.string();break}case 5:{o.jumpUrl=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.ViewMaterial)return t;let i=new u.bilibili.app.viewunite.common.ViewMaterial;return t.oid!=null&&(r.Long?(i.oid=r.Long.fromValue(t.oid)).unsigned=!1:typeof t.oid=="string"?i.oid=parseInt(t.oid,10):typeof t.oid=="number"?i.oid=t.oid:typeof t.oid=="object"&&(i.oid=new r.LongBits(t.oid.low>>>0,t.oid.high>>>0).toNumber())),t.mid!=null&&(r.Long?(i.mid=r.Long.fromValue(t.mid)).unsigned=!1:typeof t.mid=="string"?i.mid=parseInt(t.mid,10):typeof t.mid=="number"?i.mid=t.mid:typeof t.mid=="object"&&(i.mid=new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber())),t.title!=null&&(i.title=String(t.title)),t.author!=null&&(i.author=String(t.author)),t.jumpUrl!=null&&(i.jumpUrl=String(t.jumpUrl)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.oid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.oid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.mid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mid=i.longs===String?"0":0;n.title="",n.author="",n.jumpUrl=""}return t.oid!=null&&t.hasOwnProperty("oid")&&(typeof t.oid=="number"?n.oid=i.longs===String?String(t.oid):t.oid:n.oid=i.longs===String?r.Long.prototype.toString.call(t.oid):i.longs===Number?new r.LongBits(t.oid.low>>>0,t.oid.high>>>0).toNumber():t.oid),t.mid!=null&&t.hasOwnProperty("mid")&&(typeof t.mid=="number"?n.mid=i.longs===String?String(t.mid):t.mid:n.mid=i.longs===String?r.Long.prototype.toString.call(t.mid):i.longs===Number?new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber():t.mid),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.author!=null&&t.hasOwnProperty("author")&&(n.author=t.author),t.jumpUrl!=null&&t.hasOwnProperty("jumpUrl")&&(n.jumpUrl=t.jumpUrl),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.ViewMaterial"},e}(),c.Headline=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.label=u.bilibili.app.viewunite.common.Label.decode(t,t.uint32());break}case 2:{o.content=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.Headline)return t;let i=new u.bilibili.app.viewunite.common.Headline;if(t.label!=null){if(typeof t.label!="object")throw TypeError(".bilibili.app.viewunite.common.Headline.label: object expected");i.label=u.bilibili.app.viewunite.common.Label.fromObject(t.label)}return t.content!=null&&(i.content=String(t.content)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.label=null,n.content=""),t.label!=null&&t.hasOwnProperty("label")&&(n.label=u.bilibili.app.viewunite.common.Label.toObject(t.label,i)),t.content!=null&&t.hasOwnProperty("content")&&(n.content=t.content),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.Headline"},e}(),c.Label=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.type=t.int32();break}case 2:{o.uri=t.string();break}case 3:{o.icon=t.string();break}case 4:{o.iconNight=t.string();break}case 5:{o.iconWidth=t.int64();break}case 6:{o.iconHeight=t.int64();break}case 7:{o.lottie=t.string();break}case 8:{o.lottieNight=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.Label)return t;let i=new u.bilibili.app.viewunite.common.Label;return t.type!=null&&(i.type=t.type|0),t.uri!=null&&(i.uri=String(t.uri)),t.icon!=null&&(i.icon=String(t.icon)),t.iconNight!=null&&(i.iconNight=String(t.iconNight)),t.iconWidth!=null&&(r.Long?(i.iconWidth=r.Long.fromValue(t.iconWidth)).unsigned=!1:typeof t.iconWidth=="string"?i.iconWidth=parseInt(t.iconWidth,10):typeof t.iconWidth=="number"?i.iconWidth=t.iconWidth:typeof t.iconWidth=="object"&&(i.iconWidth=new r.LongBits(t.iconWidth.low>>>0,t.iconWidth.high>>>0).toNumber())),t.iconHeight!=null&&(r.Long?(i.iconHeight=r.Long.fromValue(t.iconHeight)).unsigned=!1:typeof t.iconHeight=="string"?i.iconHeight=parseInt(t.iconHeight,10):typeof t.iconHeight=="number"?i.iconHeight=t.iconHeight:typeof t.iconHeight=="object"&&(i.iconHeight=new r.LongBits(t.iconHeight.low>>>0,t.iconHeight.high>>>0).toNumber())),t.lottie!=null&&(i.lottie=String(t.lottie)),t.lottieNight!=null&&(i.lottieNight=String(t.lottieNight)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.type=0,n.uri="",n.icon="",n.iconNight="",r.Long){let o=new r.Long(0,0,!1);n.iconWidth=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.iconWidth=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.iconHeight=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.iconHeight=i.longs===String?"0":0;n.lottie="",n.lottieNight=""}return t.type!=null&&t.hasOwnProperty("type")&&(n.type=t.type),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),t.icon!=null&&t.hasOwnProperty("icon")&&(n.icon=t.icon),t.iconNight!=null&&t.hasOwnProperty("iconNight")&&(n.iconNight=t.iconNight),t.iconWidth!=null&&t.hasOwnProperty("iconWidth")&&(typeof t.iconWidth=="number"?n.iconWidth=i.longs===String?String(t.iconWidth):t.iconWidth:n.iconWidth=i.longs===String?r.Long.prototype.toString.call(t.iconWidth):i.longs===Number?new r.LongBits(t.iconWidth.low>>>0,t.iconWidth.high>>>0).toNumber():t.iconWidth),t.iconHeight!=null&&t.hasOwnProperty("iconHeight")&&(typeof t.iconHeight=="number"?n.iconHeight=i.longs===String?String(t.iconHeight):t.iconHeight:n.iconHeight=i.longs===String?r.Long.prototype.toString.call(t.iconHeight):i.longs===Number?new r.LongBits(t.iconHeight.low>>>0,t.iconHeight.high>>>0).toNumber():t.iconHeight),t.lottie!=null&&t.hasOwnProperty("lottie")&&(n.lottie=t.lottie),t.lottieNight!=null&&t.hasOwnProperty("lottieNight")&&(n.lottieNight=t.lottieNight),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.Label"},e}(),c.Tag=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.tagId=t.int64();break}case 2:{o.name=t.string();break}case 3:{o.uri=t.string();break}case 4:{o.tagType=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.Tag)return t;let i=new u.bilibili.app.viewunite.common.Tag;return t.tagId!=null&&(r.Long?(i.tagId=r.Long.fromValue(t.tagId)).unsigned=!1:typeof t.tagId=="string"?i.tagId=parseInt(t.tagId,10):typeof t.tagId=="number"?i.tagId=t.tagId:typeof t.tagId=="object"&&(i.tagId=new r.LongBits(t.tagId.low>>>0,t.tagId.high>>>0).toNumber())),t.name!=null&&(i.name=String(t.name)),t.uri!=null&&(i.uri=String(t.uri)),t.tagType!=null&&(i.tagType=String(t.tagType)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.tagId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.tagId=i.longs===String?"0":0;n.name="",n.uri="",n.tagType=""}return t.tagId!=null&&t.hasOwnProperty("tagId")&&(typeof t.tagId=="number"?n.tagId=i.longs===String?String(t.tagId):t.tagId:n.tagId=i.longs===String?r.Long.prototype.toString.call(t.tagId):i.longs===Number?new r.LongBits(t.tagId.low>>>0,t.tagId.high>>>0).toNumber():t.tagId),t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),t.tagType!=null&&t.hasOwnProperty("tagType")&&(n.tagType=t.tagType),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.Tag"},e}(),c.KingPos=function(){function e(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.disable=i.bool();break}case 2:{a.icon=i.string();break}case 4:{a.disableToast=i.string();break}case 5:{a.checkedToast=i.string();break}case 3:{a.type=i.int32();break}case 6:{a.like=u.bilibili.app.viewunite.common.LikeExtend.decode(i,i.uint32());break}case 7:{a.coin=u.bilibili.app.viewunite.common.CoinExtend.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},e.fromObject=function(i){if(i instanceof u.bilibili.app.viewunite.common.KingPos)return i;let n=new u.bilibili.app.viewunite.common.KingPos;switch(i.disable!=null&&(n.disable=!!i.disable),i.icon!=null&&(n.icon=String(i.icon)),i.disableToast!=null&&(n.disableToast=String(i.disableToast)),i.checkedToast!=null&&(n.checkedToast=String(i.checkedToast)),i.type){default:if(typeof i.type=="number"){n.type=i.type;break}break;case"KING_POS_UNSPECIFIED":case 0:n.type=0;break;case"LIKE":case 1:n.type=1;break;case"DISLIKE":case 2:n.type=2;break;case"COIN":case 3:n.type=3;break;case"FAV":case 4:n.type=4;break;case"SHARE":case 5:n.type=5;break;case"CACHE":case 6:n.type=6;break;case"DANMAKU":case 7:n.type=7;break}if(i.like!=null){if(typeof i.like!="object")throw TypeError(".bilibili.app.viewunite.common.KingPos.like: object expected");n.like=u.bilibili.app.viewunite.common.LikeExtend.fromObject(i.like)}if(i.coin!=null){if(typeof i.coin!="object")throw TypeError(".bilibili.app.viewunite.common.KingPos.coin: object expected");n.coin=u.bilibili.app.viewunite.common.CoinExtend.fromObject(i.coin)}return n},e.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.disable=!1,o.icon="",o.type=n.enums===String?"KING_POS_UNSPECIFIED":0,o.disableToast="",o.checkedToast=""),i.disable!=null&&i.hasOwnProperty("disable")&&(o.disable=i.disable),i.icon!=null&&i.hasOwnProperty("icon")&&(o.icon=i.icon),i.type!=null&&i.hasOwnProperty("type")&&(o.type=n.enums===String?u.bilibili.app.viewunite.common.KingPositionType[i.type]===void 0?i.type:u.bilibili.app.viewunite.common.KingPositionType[i.type]:i.type),i.disableToast!=null&&i.hasOwnProperty("disableToast")&&(o.disableToast=i.disableToast),i.checkedToast!=null&&i.hasOwnProperty("checkedToast")&&(o.checkedToast=i.checkedToast),i.like!=null&&i.hasOwnProperty("like")&&(o.like=u.bilibili.app.viewunite.common.LikeExtend.toObject(i.like,n),n.oneofs&&(o.extend="like")),i.coin!=null&&i.hasOwnProperty("coin")&&(o.coin=u.bilibili.app.viewunite.common.CoinExtend.toObject(i.coin,n),n.oneofs&&(o.extend="coin")),o},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.app.viewunite.common.KingPos"},e}(),c.BadgeInfo=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.text=t.string();break}case 2:{o.textColor=t.string();break}case 3:{o.textColorNight=t.string();break}case 4:{o.bgColor=t.string();break}case 5:{o.bgColorNight=t.string();break}case 6:{o.borderColor=t.string();break}case 7:{o.borderColorNight=t.string();break}case 8:{o.bgStyle=t.int32();break}case 9:{o.img=t.string();break}case 10:{o.type=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.BadgeInfo)return t;let i=new u.bilibili.app.viewunite.common.BadgeInfo;return t.text!=null&&(i.text=String(t.text)),t.textColor!=null&&(i.textColor=String(t.textColor)),t.textColorNight!=null&&(i.textColorNight=String(t.textColorNight)),t.bgColor!=null&&(i.bgColor=String(t.bgColor)),t.bgColorNight!=null&&(i.bgColorNight=String(t.bgColorNight)),t.borderColor!=null&&(i.borderColor=String(t.borderColor)),t.borderColorNight!=null&&(i.borderColorNight=String(t.borderColorNight)),t.bgStyle!=null&&(i.bgStyle=t.bgStyle|0),t.img!=null&&(i.img=String(t.img)),t.type!=null&&(i.type=t.type|0),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.text="",n.textColor="",n.textColorNight="",n.bgColor="",n.bgColorNight="",n.borderColor="",n.borderColorNight="",n.bgStyle=0,n.img="",n.type=0),t.text!=null&&t.hasOwnProperty("text")&&(n.text=t.text),t.textColor!=null&&t.hasOwnProperty("textColor")&&(n.textColor=t.textColor),t.textColorNight!=null&&t.hasOwnProperty("textColorNight")&&(n.textColorNight=t.textColorNight),t.bgColor!=null&&t.hasOwnProperty("bgColor")&&(n.bgColor=t.bgColor),t.bgColorNight!=null&&t.hasOwnProperty("bgColorNight")&&(n.bgColorNight=t.bgColorNight),t.borderColor!=null&&t.hasOwnProperty("borderColor")&&(n.borderColor=t.borderColor),t.borderColorNight!=null&&t.hasOwnProperty("borderColorNight")&&(n.borderColorNight=t.borderColorNight),t.bgStyle!=null&&t.hasOwnProperty("bgStyle")&&(n.bgStyle=t.bgStyle),t.img!=null&&t.hasOwnProperty("img")&&(n.img=t.img),t.type!=null&&t.hasOwnProperty("type")&&(n.type=t.type),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.BadgeInfo"},e}(),c.KingPositionType=function(){let e={},l=Object.create(e);return l[e[0]="KING_POS_UNSPECIFIED"]=0,l[e[1]="LIKE"]=1,l[e[2]="DISLIKE"]=2,l[e[3]="COIN"]=3,l[e[4]="FAV"]=4,l[e[5]="SHARE"]=5,l[e[6]="CACHE"]=6,l[e[7]="DANMAKU"]=7,l}(),c.CoinExtend=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.coinAppZipIcon=t.string();break}case 2:{o.coinAppIcon_1=t.string();break}case 3:{o.coinAppIcon_2=t.string();break}case 4:{o.coinAppIcon_3=t.string();break}case 5:{o.coinAppIcon_4=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.CoinExtend)return t;let i=new u.bilibili.app.viewunite.common.CoinExtend;return t.coinAppZipIcon!=null&&(i.coinAppZipIcon=String(t.coinAppZipIcon)),t.coinAppIcon_1!=null&&(i.coinAppIcon_1=String(t.coinAppIcon_1)),t.coinAppIcon_2!=null&&(i.coinAppIcon_2=String(t.coinAppIcon_2)),t.coinAppIcon_3!=null&&(i.coinAppIcon_3=String(t.coinAppIcon_3)),t.coinAppIcon_4!=null&&(i.coinAppIcon_4=String(t.coinAppIcon_4)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.coinAppZipIcon="",n.coinAppIcon_1="",n.coinAppIcon_2="",n.coinAppIcon_3="",n.coinAppIcon_4=""),t.coinAppZipIcon!=null&&t.hasOwnProperty("coinAppZipIcon")&&(n.coinAppZipIcon=t.coinAppZipIcon),t.coinAppIcon_1!=null&&t.hasOwnProperty("coinAppIcon_1")&&(n.coinAppIcon_1=t.coinAppIcon_1),t.coinAppIcon_2!=null&&t.hasOwnProperty("coinAppIcon_2")&&(n.coinAppIcon_2=t.coinAppIcon_2),t.coinAppIcon_3!=null&&t.hasOwnProperty("coinAppIcon_3")&&(n.coinAppIcon_3=t.coinAppIcon_3),t.coinAppIcon_4!=null&&t.hasOwnProperty("coinAppIcon_4")&&(n.coinAppIcon_4=t.coinAppIcon_4),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.CoinExtend"},e}(),c.LikeExtend=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.tripleLike=u.bilibili.app.viewunite.common.UpLikeImg.decode(t,t.uint32());break}case 2:{o.likeAnimation=t.string();break}case 3:{o.playerAnimation=u.bilibili.app.viewunite.common.PlayerAnimation.decode(t,t.uint32());break}case 4:{o.resource=u.bilibili.app.viewunite.common.ActivityResource.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.LikeExtend)return t;let i=new u.bilibili.app.viewunite.common.LikeExtend;if(t.tripleLike!=null){if(typeof t.tripleLike!="object")throw TypeError(".bilibili.app.viewunite.common.LikeExtend.tripleLike: object expected");i.tripleLike=u.bilibili.app.viewunite.common.UpLikeImg.fromObject(t.tripleLike)}if(t.likeAnimation!=null&&(i.likeAnimation=String(t.likeAnimation)),t.playerAnimation!=null){if(typeof t.playerAnimation!="object")throw TypeError(".bilibili.app.viewunite.common.LikeExtend.playerAnimation: object expected");i.playerAnimation=u.bilibili.app.viewunite.common.PlayerAnimation.fromObject(t.playerAnimation)}if(t.resource!=null){if(typeof t.resource!="object")throw TypeError(".bilibili.app.viewunite.common.LikeExtend.resource: object expected");i.resource=u.bilibili.app.viewunite.common.ActivityResource.fromObject(t.resource)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.tripleLike=null,n.likeAnimation="",n.playerAnimation=null,n.resource=null),t.tripleLike!=null&&t.hasOwnProperty("tripleLike")&&(n.tripleLike=u.bilibili.app.viewunite.common.UpLikeImg.toObject(t.tripleLike,i)),t.likeAnimation!=null&&t.hasOwnProperty("likeAnimation")&&(n.likeAnimation=t.likeAnimation),t.playerAnimation!=null&&t.hasOwnProperty("playerAnimation")&&(n.playerAnimation=u.bilibili.app.viewunite.common.PlayerAnimation.toObject(t.playerAnimation,i)),t.resource!=null&&t.hasOwnProperty("resource")&&(n.resource=u.bilibili.app.viewunite.common.ActivityResource.toObject(t.resource,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.LikeExtend"},e}(),c.ActivityResource=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.modPoolName=t.string();break}case 2:{o.modResourceName=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.ActivityResource)return t;let i=new u.bilibili.app.viewunite.common.ActivityResource;return t.modPoolName!=null&&(i.modPoolName=String(t.modPoolName)),t.modResourceName!=null&&(i.modResourceName=String(t.modResourceName)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.modPoolName="",n.modResourceName=""),t.modPoolName!=null&&t.hasOwnProperty("modPoolName")&&(n.modPoolName=t.modPoolName),t.modResourceName!=null&&t.hasOwnProperty("modResourceName")&&(n.modResourceName=t.modResourceName),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.ActivityResource"},e}(),c.PlayerAnimation=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.playerIcon=t.string();break}case 2:{o.playerTripleIcon=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.PlayerAnimation)return t;let i=new u.bilibili.app.viewunite.common.PlayerAnimation;return t.playerIcon!=null&&(i.playerIcon=String(t.playerIcon)),t.playerTripleIcon!=null&&(i.playerTripleIcon=String(t.playerTripleIcon)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.playerIcon="",n.playerTripleIcon=""),t.playerIcon!=null&&t.hasOwnProperty("playerIcon")&&(n.playerIcon=t.playerIcon),t.playerTripleIcon!=null&&t.hasOwnProperty("playerTripleIcon")&&(n.playerTripleIcon=t.playerTripleIcon),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.PlayerAnimation"},e}(),c.DislikeReasons=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.id=t.int64();break}case 2:{o.mid=t.int64();break}case 3:{o.rid=t.int32();break}case 4:{o.tagId=t.int64();break}case 5:{o.name=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.DislikeReasons)return t;let i=new u.bilibili.app.viewunite.common.DislikeReasons;return t.id!=null&&(r.Long?(i.id=r.Long.fromValue(t.id)).unsigned=!1:typeof t.id=="string"?i.id=parseInt(t.id,10):typeof t.id=="number"?i.id=t.id:typeof t.id=="object"&&(i.id=new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber())),t.mid!=null&&(r.Long?(i.mid=r.Long.fromValue(t.mid)).unsigned=!1:typeof t.mid=="string"?i.mid=parseInt(t.mid,10):typeof t.mid=="number"?i.mid=t.mid:typeof t.mid=="object"&&(i.mid=new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber())),t.rid!=null&&(i.rid=t.rid|0),t.tagId!=null&&(r.Long?(i.tagId=r.Long.fromValue(t.tagId)).unsigned=!1:typeof t.tagId=="string"?i.tagId=parseInt(t.tagId,10):typeof t.tagId=="number"?i.tagId=t.tagId:typeof t.tagId=="object"&&(i.tagId=new r.LongBits(t.tagId.low>>>0,t.tagId.high>>>0).toNumber())),t.name!=null&&(i.name=String(t.name)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.id=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.id=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.mid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mid=i.longs===String?"0":0;if(n.rid=0,r.Long){let o=new r.Long(0,0,!1);n.tagId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.tagId=i.longs===String?"0":0;n.name=""}return t.id!=null&&t.hasOwnProperty("id")&&(typeof t.id=="number"?n.id=i.longs===String?String(t.id):t.id:n.id=i.longs===String?r.Long.prototype.toString.call(t.id):i.longs===Number?new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber():t.id),t.mid!=null&&t.hasOwnProperty("mid")&&(typeof t.mid=="number"?n.mid=i.longs===String?String(t.mid):t.mid:n.mid=i.longs===String?r.Long.prototype.toString.call(t.mid):i.longs===Number?new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber():t.mid),t.rid!=null&&t.hasOwnProperty("rid")&&(n.rid=t.rid),t.tagId!=null&&t.hasOwnProperty("tagId")&&(typeof t.tagId=="number"?n.tagId=i.longs===String?String(t.tagId):t.tagId:n.tagId=i.longs===String?r.Long.prototype.toString.call(t.tagId):i.longs===Number?new r.LongBits(t.tagId.low>>>0,t.tagId.high>>>0).toNumber():t.tagId),t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.DislikeReasons"},e}(),c.UpLikeImg=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.preImg=t.string();break}case 2:{o.sucImg=t.string();break}case 3:{o.content=t.string();break}case 4:{o.type=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.UpLikeImg)return t;let i=new u.bilibili.app.viewunite.common.UpLikeImg;return t.preImg!=null&&(i.preImg=String(t.preImg)),t.sucImg!=null&&(i.sucImg=String(t.sucImg)),t.content!=null&&(i.content=String(t.content)),t.type!=null&&(r.Long?(i.type=r.Long.fromValue(t.type)).unsigned=!1:typeof t.type=="string"?i.type=parseInt(t.type,10):typeof t.type=="number"?i.type=t.type:typeof t.type=="object"&&(i.type=new r.LongBits(t.type.low>>>0,t.type.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(n.preImg="",n.sucImg="",n.content="",r.Long){let o=new r.Long(0,0,!1);n.type=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.type=i.longs===String?"0":0;return t.preImg!=null&&t.hasOwnProperty("preImg")&&(n.preImg=t.preImg),t.sucImg!=null&&t.hasOwnProperty("sucImg")&&(n.sucImg=t.sucImg),t.content!=null&&t.hasOwnProperty("content")&&(n.content=t.content),t.type!=null&&t.hasOwnProperty("type")&&(typeof t.type=="number"?n.type=i.longs===String?String(t.type):t.type:n.type=i.longs===String?r.Long.prototype.toString.call(t.type):i.longs===Number?new r.LongBits(t.type.low>>>0,t.type.high>>>0).toNumber():t.type),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.UpLikeImg"},e}(),c.ReserveBizType=function(){let e={},l=Object.create(e);return l[e[0]="BizTypeNone"]=0,l[e[1]="BizTypeReserveActivity"]=1,l[e[2]="BizTypeFavSeason"]=2,l}(),c.BizReserveActivityParam=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.activityId=t.int64();break}case 2:{o.from=t.string();break}case 3:{o.type=t.string();break}case 4:{o.oid=t.int64();break}case 5:{o.reserveId=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.BizReserveActivityParam)return t;let i=new u.bilibili.app.viewunite.common.BizReserveActivityParam;return t.activityId!=null&&(r.Long?(i.activityId=r.Long.fromValue(t.activityId)).unsigned=!1:typeof t.activityId=="string"?i.activityId=parseInt(t.activityId,10):typeof t.activityId=="number"?i.activityId=t.activityId:typeof t.activityId=="object"&&(i.activityId=new r.LongBits(t.activityId.low>>>0,t.activityId.high>>>0).toNumber())),t.from!=null&&(i.from=String(t.from)),t.type!=null&&(i.type=String(t.type)),t.oid!=null&&(r.Long?(i.oid=r.Long.fromValue(t.oid)).unsigned=!1:typeof t.oid=="string"?i.oid=parseInt(t.oid,10):typeof t.oid=="number"?i.oid=t.oid:typeof t.oid=="object"&&(i.oid=new r.LongBits(t.oid.low>>>0,t.oid.high>>>0).toNumber())),t.reserveId!=null&&(r.Long?(i.reserveId=r.Long.fromValue(t.reserveId)).unsigned=!1:typeof t.reserveId=="string"?i.reserveId=parseInt(t.reserveId,10):typeof t.reserveId=="number"?i.reserveId=t.reserveId:typeof t.reserveId=="object"&&(i.reserveId=new r.LongBits(t.reserveId.low>>>0,t.reserveId.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.activityId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.activityId=i.longs===String?"0":0;if(n.from="",n.type="",r.Long){let o=new r.Long(0,0,!1);n.oid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.oid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.reserveId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.reserveId=i.longs===String?"0":0}return t.activityId!=null&&t.hasOwnProperty("activityId")&&(typeof t.activityId=="number"?n.activityId=i.longs===String?String(t.activityId):t.activityId:n.activityId=i.longs===String?r.Long.prototype.toString.call(t.activityId):i.longs===Number?new r.LongBits(t.activityId.low>>>0,t.activityId.high>>>0).toNumber():t.activityId),t.from!=null&&t.hasOwnProperty("from")&&(n.from=t.from),t.type!=null&&t.hasOwnProperty("type")&&(n.type=t.type),t.oid!=null&&t.hasOwnProperty("oid")&&(typeof t.oid=="number"?n.oid=i.longs===String?String(t.oid):t.oid:n.oid=i.longs===String?r.Long.prototype.toString.call(t.oid):i.longs===Number?new r.LongBits(t.oid.low>>>0,t.oid.high>>>0).toNumber():t.oid),t.reserveId!=null&&t.hasOwnProperty("reserveId")&&(typeof t.reserveId=="number"?n.reserveId=i.longs===String?String(t.reserveId):t.reserveId:n.reserveId=i.longs===String?r.Long.prototype.toString.call(t.reserveId):i.longs===Number?new r.LongBits(t.reserveId.low>>>0,t.reserveId.high>>>0).toNumber():t.reserveId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.BizReserveActivityParam"},e}(),c.BizFavParam=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.seasonId=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.BizFavParam)return t;let i=new u.bilibili.app.viewunite.common.BizFavParam;return t.seasonId!=null&&(r.Long?(i.seasonId=r.Long.fromValue(t.seasonId)).unsigned=!1:typeof t.seasonId=="string"?i.seasonId=parseInt(t.seasonId,10):typeof t.seasonId=="number"?i.seasonId=t.seasonId:typeof t.seasonId=="object"&&(i.seasonId=new r.LongBits(t.seasonId.low>>>0,t.seasonId.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(r.Long){let o=new r.Long(0,0,!1);n.seasonId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.seasonId=i.longs===String?"0":0;return t.seasonId!=null&&t.hasOwnProperty("seasonId")&&(typeof t.seasonId=="number"?n.seasonId=i.longs===String?String(t.seasonId):t.seasonId:n.seasonId=i.longs===String?r.Long.prototype.toString.call(t.seasonId):i.longs===Number?new r.LongBits(t.seasonId.low>>>0,t.seasonId.high>>>0).toNumber():t.seasonId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.BizFavParam"},e}(),c.Page=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.cid=t.int64();break}case 2:{o.part=t.string();break}case 3:{o.duration=t.int64();break}case 4:{o.desc=t.string();break}case 5:{o.dimension=u.bilibili.app.viewunite.common.Dimension.decode(t,t.uint32());break}case 6:{o.dlTitle=t.string();break}case 7:{o.dlSubtitle=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.Page)return t;let i=new u.bilibili.app.viewunite.common.Page;if(t.cid!=null&&(r.Long?(i.cid=r.Long.fromValue(t.cid)).unsigned=!1:typeof t.cid=="string"?i.cid=parseInt(t.cid,10):typeof t.cid=="number"?i.cid=t.cid:typeof t.cid=="object"&&(i.cid=new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber())),t.part!=null&&(i.part=String(t.part)),t.duration!=null&&(r.Long?(i.duration=r.Long.fromValue(t.duration)).unsigned=!1:typeof t.duration=="string"?i.duration=parseInt(t.duration,10):typeof t.duration=="number"?i.duration=t.duration:typeof t.duration=="object"&&(i.duration=new r.LongBits(t.duration.low>>>0,t.duration.high>>>0).toNumber())),t.desc!=null&&(i.desc=String(t.desc)),t.dimension!=null){if(typeof t.dimension!="object")throw TypeError(".bilibili.app.viewunite.common.Page.dimension: object expected");i.dimension=u.bilibili.app.viewunite.common.Dimension.fromObject(t.dimension)}return t.dlTitle!=null&&(i.dlTitle=String(t.dlTitle)),t.dlSubtitle!=null&&(i.dlSubtitle=String(t.dlSubtitle)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.cid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.cid=i.longs===String?"0":0;if(n.part="",r.Long){let o=new r.Long(0,0,!1);n.duration=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.duration=i.longs===String?"0":0;n.desc="",n.dimension=null,n.dlTitle="",n.dlSubtitle=""}return t.cid!=null&&t.hasOwnProperty("cid")&&(typeof t.cid=="number"?n.cid=i.longs===String?String(t.cid):t.cid:n.cid=i.longs===String?r.Long.prototype.toString.call(t.cid):i.longs===Number?new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber():t.cid),t.part!=null&&t.hasOwnProperty("part")&&(n.part=t.part),t.duration!=null&&t.hasOwnProperty("duration")&&(typeof t.duration=="number"?n.duration=i.longs===String?String(t.duration):t.duration:n.duration=i.longs===String?r.Long.prototype.toString.call(t.duration):i.longs===Number?new r.LongBits(t.duration.low>>>0,t.duration.high>>>0).toNumber():t.duration),t.desc!=null&&t.hasOwnProperty("desc")&&(n.desc=t.desc),t.dimension!=null&&t.hasOwnProperty("dimension")&&(n.dimension=u.bilibili.app.viewunite.common.Dimension.toObject(t.dimension,i)),t.dlTitle!=null&&t.hasOwnProperty("dlTitle")&&(n.dlTitle=t.dlTitle),t.dlSubtitle!=null&&t.hasOwnProperty("dlSubtitle")&&(n.dlSubtitle=t.dlSubtitle),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.Page"},e}(),c.Stat=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.vt=u.bilibili.app.viewunite.common.StatInfo.decode(t,t.uint32());break}case 2:{o.danmaku=u.bilibili.app.viewunite.common.StatInfo.decode(t,t.uint32());break}case 3:{o.reply=t.int64();break}case 4:{o.fav=t.int64();break}case 5:{o.coin=t.int64();break}case 6:{o.share=t.int64();break}case 7:{o.like=t.int64();break}case 8:{o.follow=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.Stat)return t;let i=new u.bilibili.app.viewunite.common.Stat;if(t.vt!=null){if(typeof t.vt!="object")throw TypeError(".bilibili.app.viewunite.common.Stat.vt: object expected");i.vt=u.bilibili.app.viewunite.common.StatInfo.fromObject(t.vt)}if(t.danmaku!=null){if(typeof t.danmaku!="object")throw TypeError(".bilibili.app.viewunite.common.Stat.danmaku: object expected");i.danmaku=u.bilibili.app.viewunite.common.StatInfo.fromObject(t.danmaku)}return t.reply!=null&&(r.Long?(i.reply=r.Long.fromValue(t.reply)).unsigned=!1:typeof t.reply=="string"?i.reply=parseInt(t.reply,10):typeof t.reply=="number"?i.reply=t.reply:typeof t.reply=="object"&&(i.reply=new r.LongBits(t.reply.low>>>0,t.reply.high>>>0).toNumber())),t.fav!=null&&(r.Long?(i.fav=r.Long.fromValue(t.fav)).unsigned=!1:typeof t.fav=="string"?i.fav=parseInt(t.fav,10):typeof t.fav=="number"?i.fav=t.fav:typeof t.fav=="object"&&(i.fav=new r.LongBits(t.fav.low>>>0,t.fav.high>>>0).toNumber())),t.coin!=null&&(r.Long?(i.coin=r.Long.fromValue(t.coin)).unsigned=!1:typeof t.coin=="string"?i.coin=parseInt(t.coin,10):typeof t.coin=="number"?i.coin=t.coin:typeof t.coin=="object"&&(i.coin=new r.LongBits(t.coin.low>>>0,t.coin.high>>>0).toNumber())),t.share!=null&&(r.Long?(i.share=r.Long.fromValue(t.share)).unsigned=!1:typeof t.share=="string"?i.share=parseInt(t.share,10):typeof t.share=="number"?i.share=t.share:typeof t.share=="object"&&(i.share=new r.LongBits(t.share.low>>>0,t.share.high>>>0).toNumber())),t.like!=null&&(r.Long?(i.like=r.Long.fromValue(t.like)).unsigned=!1:typeof t.like=="string"?i.like=parseInt(t.like,10):typeof t.like=="number"?i.like=t.like:typeof t.like=="object"&&(i.like=new r.LongBits(t.like.low>>>0,t.like.high>>>0).toNumber())),t.follow!=null&&(r.Long?(i.follow=r.Long.fromValue(t.follow)).unsigned=!1:typeof t.follow=="string"?i.follow=parseInt(t.follow,10):typeof t.follow=="number"?i.follow=t.follow:typeof t.follow=="object"&&(i.follow=new r.LongBits(t.follow.low>>>0,t.follow.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.vt=null,n.danmaku=null,r.Long){let o=new r.Long(0,0,!1);n.reply=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.reply=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.fav=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.fav=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.coin=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.coin=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.share=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.share=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.like=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.like=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.follow=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.follow=i.longs===String?"0":0}return t.vt!=null&&t.hasOwnProperty("vt")&&(n.vt=u.bilibili.app.viewunite.common.StatInfo.toObject(t.vt,i)),t.danmaku!=null&&t.hasOwnProperty("danmaku")&&(n.danmaku=u.bilibili.app.viewunite.common.StatInfo.toObject(t.danmaku,i)),t.reply!=null&&t.hasOwnProperty("reply")&&(typeof t.reply=="number"?n.reply=i.longs===String?String(t.reply):t.reply:n.reply=i.longs===String?r.Long.prototype.toString.call(t.reply):i.longs===Number?new r.LongBits(t.reply.low>>>0,t.reply.high>>>0).toNumber():t.reply),t.fav!=null&&t.hasOwnProperty("fav")&&(typeof t.fav=="number"?n.fav=i.longs===String?String(t.fav):t.fav:n.fav=i.longs===String?r.Long.prototype.toString.call(t.fav):i.longs===Number?new r.LongBits(t.fav.low>>>0,t.fav.high>>>0).toNumber():t.fav),t.coin!=null&&t.hasOwnProperty("coin")&&(typeof t.coin=="number"?n.coin=i.longs===String?String(t.coin):t.coin:n.coin=i.longs===String?r.Long.prototype.toString.call(t.coin):i.longs===Number?new r.LongBits(t.coin.low>>>0,t.coin.high>>>0).toNumber():t.coin),t.share!=null&&t.hasOwnProperty("share")&&(typeof t.share=="number"?n.share=i.longs===String?String(t.share):t.share:n.share=i.longs===String?r.Long.prototype.toString.call(t.share):i.longs===Number?new r.LongBits(t.share.low>>>0,t.share.high>>>0).toNumber():t.share),t.like!=null&&t.hasOwnProperty("like")&&(typeof t.like=="number"?n.like=i.longs===String?String(t.like):t.like:n.like=i.longs===String?r.Long.prototype.toString.call(t.like):i.longs===Number?new r.LongBits(t.like.low>>>0,t.like.high>>>0).toNumber():t.like),t.follow!=null&&t.hasOwnProperty("follow")&&(typeof t.follow=="number"?n.follow=i.longs===String?String(t.follow):t.follow:n.follow=i.longs===String?r.Long.prototype.toString.call(t.follow):i.longs===Number?new r.LongBits(t.follow.low>>>0,t.follow.high>>>0).toNumber():t.follow),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.Stat"},e}(),c.SpecialCell=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.icon=t.string();break}case 2:{o.iconNight=t.string();break}case 3:{o.text=t.string();break}case 4:{o.textColor=t.string();break}case 5:{o.textColorNight=t.string();break}case 6:{o.jumpUrl=t.string();break}case 7:{o.cellType=t.string();break}case 8:{o.cellBgcolor=t.string();break}case 9:{o.cellBgcolorNight=t.string();break}case 10:{o.param=t.string();break}case 11:{o.pageTitle=t.string();break}case 12:{o.jumpType=t.string();break}case 13:{o.endIcon=t.string();break}case 14:{o.endIconNight=t.string();break}case 15:{o.cellFluid=u.bilibili.app.viewunite.common.CellFluid.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.SpecialCell)return t;let i=new u.bilibili.app.viewunite.common.SpecialCell;if(t.icon!=null&&(i.icon=String(t.icon)),t.iconNight!=null&&(i.iconNight=String(t.iconNight)),t.text!=null&&(i.text=String(t.text)),t.textColor!=null&&(i.textColor=String(t.textColor)),t.textColorNight!=null&&(i.textColorNight=String(t.textColorNight)),t.jumpUrl!=null&&(i.jumpUrl=String(t.jumpUrl)),t.cellType!=null&&(i.cellType=String(t.cellType)),t.cellBgcolor!=null&&(i.cellBgcolor=String(t.cellBgcolor)),t.cellBgcolorNight!=null&&(i.cellBgcolorNight=String(t.cellBgcolorNight)),t.param!=null&&(i.param=String(t.param)),t.pageTitle!=null&&(i.pageTitle=String(t.pageTitle)),t.jumpType!=null&&(i.jumpType=String(t.jumpType)),t.endIcon!=null&&(i.endIcon=String(t.endIcon)),t.endIconNight!=null&&(i.endIconNight=String(t.endIconNight)),t.cellFluid!=null){if(typeof t.cellFluid!="object")throw TypeError(".bilibili.app.viewunite.common.SpecialCell.cellFluid: object expected");i.cellFluid=u.bilibili.app.viewunite.common.CellFluid.fromObject(t.cellFluid)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.icon="",n.iconNight="",n.text="",n.textColor="",n.textColorNight="",n.jumpUrl="",n.cellType="",n.cellBgcolor="",n.cellBgcolorNight="",n.param="",n.pageTitle="",n.jumpType="",n.endIcon="",n.endIconNight="",n.cellFluid=null),t.icon!=null&&t.hasOwnProperty("icon")&&(n.icon=t.icon),t.iconNight!=null&&t.hasOwnProperty("iconNight")&&(n.iconNight=t.iconNight),t.text!=null&&t.hasOwnProperty("text")&&(n.text=t.text),t.textColor!=null&&t.hasOwnProperty("textColor")&&(n.textColor=t.textColor),t.textColorNight!=null&&t.hasOwnProperty("textColorNight")&&(n.textColorNight=t.textColorNight),t.jumpUrl!=null&&t.hasOwnProperty("jumpUrl")&&(n.jumpUrl=t.jumpUrl),t.cellType!=null&&t.hasOwnProperty("cellType")&&(n.cellType=t.cellType),t.cellBgcolor!=null&&t.hasOwnProperty("cellBgcolor")&&(n.cellBgcolor=t.cellBgcolor),t.cellBgcolorNight!=null&&t.hasOwnProperty("cellBgcolorNight")&&(n.cellBgcolorNight=t.cellBgcolorNight),t.param!=null&&t.hasOwnProperty("param")&&(n.param=t.param),t.pageTitle!=null&&t.hasOwnProperty("pageTitle")&&(n.pageTitle=t.pageTitle),t.jumpType!=null&&t.hasOwnProperty("jumpType")&&(n.jumpType=t.jumpType),t.endIcon!=null&&t.hasOwnProperty("endIcon")&&(n.endIcon=t.endIcon),t.endIconNight!=null&&t.hasOwnProperty("endIconNight")&&(n.endIconNight=t.endIconNight),t.cellFluid!=null&&t.hasOwnProperty("cellFluid")&&(n.cellFluid=u.bilibili.app.viewunite.common.CellFluid.toObject(t.cellFluid,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.SpecialCell"},e}(),c.CellFluid=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.topBaseColor=t.string();break}case 2:{o.topSplitColor=t.string();break}case 3:{o.topTextColor=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.CellFluid)return t;let i=new u.bilibili.app.viewunite.common.CellFluid;return t.topBaseColor!=null&&(i.topBaseColor=String(t.topBaseColor)),t.topSplitColor!=null&&(i.topSplitColor=String(t.topSplitColor)),t.topTextColor!=null&&(i.topTextColor=String(t.topTextColor)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.topBaseColor="",n.topSplitColor="",n.topTextColor=""),t.topBaseColor!=null&&t.hasOwnProperty("topBaseColor")&&(n.topBaseColor=t.topBaseColor),t.topSplitColor!=null&&t.hasOwnProperty("topSplitColor")&&(n.topSplitColor=t.topSplitColor),t.topTextColor!=null&&t.hasOwnProperty("topTextColor")&&(n.topTextColor=t.topTextColor),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.CellFluid"},e}(),c.ProfessionHonorExtend=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.count=t.int64();break}case 2:{o.selfGrant=t.bool();break}case 3:{o.popup=u.bilibili.app.viewunite.common.ProfessionPopup.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.ProfessionHonorExtend)return t;let i=new u.bilibili.app.viewunite.common.ProfessionHonorExtend;if(t.count!=null&&(r.Long?(i.count=r.Long.fromValue(t.count)).unsigned=!1:typeof t.count=="string"?i.count=parseInt(t.count,10):typeof t.count=="number"?i.count=t.count:typeof t.count=="object"&&(i.count=new r.LongBits(t.count.low>>>0,t.count.high>>>0).toNumber())),t.selfGrant!=null&&(i.selfGrant=!!t.selfGrant),t.popup!=null){if(typeof t.popup!="object")throw TypeError(".bilibili.app.viewunite.common.ProfessionHonorExtend.popup: object expected");i.popup=u.bilibili.app.viewunite.common.ProfessionPopup.fromObject(t.popup)}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.count=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.count=i.longs===String?"0":0;n.selfGrant=!1,n.popup=null}return t.count!=null&&t.hasOwnProperty("count")&&(typeof t.count=="number"?n.count=i.longs===String?String(t.count):t.count:n.count=i.longs===String?r.Long.prototype.toString.call(t.count):i.longs===Number?new r.LongBits(t.count.low>>>0,t.count.high>>>0).toNumber():t.count),t.selfGrant!=null&&t.hasOwnProperty("selfGrant")&&(n.selfGrant=t.selfGrant),t.popup!=null&&t.hasOwnProperty("popup")&&(n.popup=u.bilibili.app.viewunite.common.ProfessionPopup.toObject(t.popup,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.ProfessionHonorExtend"},e}(),c.ProfessionPopup=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.subtitle=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.ProfessionPopup)return t;let i=new u.bilibili.app.viewunite.common.ProfessionPopup;return t.title!=null&&(i.title=String(t.title)),t.subtitle!=null&&(i.subtitle=String(t.subtitle)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.title="",n.subtitle=""),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.subtitle!=null&&t.hasOwnProperty("subtitle")&&(n.subtitle=t.subtitle),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.ProfessionPopup"},e}(),c.ReserveCalendarInfo=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.startTs=t.int64();break}case 3:{o.endTs=t.int64();break}case 4:{o.description=t.string();break}case 5:{o.businessId=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.ReserveCalendarInfo)return t;let i=new u.bilibili.app.viewunite.common.ReserveCalendarInfo;return t.title!=null&&(i.title=String(t.title)),t.startTs!=null&&(r.Long?(i.startTs=r.Long.fromValue(t.startTs)).unsigned=!1:typeof t.startTs=="string"?i.startTs=parseInt(t.startTs,10):typeof t.startTs=="number"?i.startTs=t.startTs:typeof t.startTs=="object"&&(i.startTs=new r.LongBits(t.startTs.low>>>0,t.startTs.high>>>0).toNumber())),t.endTs!=null&&(r.Long?(i.endTs=r.Long.fromValue(t.endTs)).unsigned=!1:typeof t.endTs=="string"?i.endTs=parseInt(t.endTs,10):typeof t.endTs=="number"?i.endTs=t.endTs:typeof t.endTs=="object"&&(i.endTs=new r.LongBits(t.endTs.low>>>0,t.endTs.high>>>0).toNumber())),t.description!=null&&(i.description=String(t.description)),t.businessId!=null&&(i.businessId=String(t.businessId)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.title="",r.Long){let o=new r.Long(0,0,!1);n.startTs=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.startTs=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.endTs=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.endTs=i.longs===String?"0":0;n.description="",n.businessId=""}return t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.startTs!=null&&t.hasOwnProperty("startTs")&&(typeof t.startTs=="number"?n.startTs=i.longs===String?String(t.startTs):t.startTs:n.startTs=i.longs===String?r.Long.prototype.toString.call(t.startTs):i.longs===Number?new r.LongBits(t.startTs.low>>>0,t.startTs.high>>>0).toNumber():t.startTs),t.endTs!=null&&t.hasOwnProperty("endTs")&&(typeof t.endTs=="number"?n.endTs=i.longs===String?String(t.endTs):t.endTs:n.endTs=i.longs===String?r.Long.prototype.toString.call(t.endTs):i.longs===Number?new r.LongBits(t.endTs.low>>>0,t.endTs.high>>>0).toNumber():t.endTs),t.description!=null&&t.hasOwnProperty("description")&&(n.description=t.description),t.businessId!=null&&t.hasOwnProperty("businessId")&&(n.businessId=t.businessId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.ReserveCalendarInfo"},e}(),c.EpBgInfo=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.floatLayer=u.bilibili.app.viewunite.common.BgInfo.decode(t,t.uint32());break}case 2:{o.noFloatLayer=u.bilibili.app.viewunite.common.BgInfo.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.EpBgInfo)return t;let i=new u.bilibili.app.viewunite.common.EpBgInfo;if(t.floatLayer!=null){if(typeof t.floatLayer!="object")throw TypeError(".bilibili.app.viewunite.common.EpBgInfo.floatLayer: object expected");i.floatLayer=u.bilibili.app.viewunite.common.BgInfo.fromObject(t.floatLayer)}if(t.noFloatLayer!=null){if(typeof t.noFloatLayer!="object")throw TypeError(".bilibili.app.viewunite.common.EpBgInfo.noFloatLayer: object expected");i.noFloatLayer=u.bilibili.app.viewunite.common.BgInfo.fromObject(t.noFloatLayer)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.floatLayer=null,n.noFloatLayer=null),t.floatLayer!=null&&t.hasOwnProperty("floatLayer")&&(n.floatLayer=u.bilibili.app.viewunite.common.BgInfo.toObject(t.floatLayer,i)),t.noFloatLayer!=null&&t.hasOwnProperty("noFloatLayer")&&(n.noFloatLayer=u.bilibili.app.viewunite.common.BgInfo.toObject(t.noFloatLayer,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.EpBgInfo"},e}(),c.BgInfo=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.lightShortBg=t.string();break}case 2:{o.darkShortBg=t.string();break}case 3:{o.lightLongBg=t.string();break}case 4:{o.darkLongBg=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.common.BgInfo)return t;let i=new u.bilibili.app.viewunite.common.BgInfo;return t.lightShortBg!=null&&(i.lightShortBg=String(t.lightShortBg)),t.darkShortBg!=null&&(i.darkShortBg=String(t.darkShortBg)),t.lightLongBg!=null&&(i.lightLongBg=String(t.lightLongBg)),t.darkLongBg!=null&&(i.darkLongBg=String(t.darkLongBg)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.lightShortBg="",n.darkShortBg="",n.lightLongBg="",n.darkLongBg=""),t.lightShortBg!=null&&t.hasOwnProperty("lightShortBg")&&(n.lightShortBg=t.lightShortBg),t.darkShortBg!=null&&t.hasOwnProperty("darkShortBg")&&(n.darkShortBg=t.darkShortBg),t.lightLongBg!=null&&t.hasOwnProperty("lightLongBg")&&(n.lightLongBg=t.lightLongBg),t.darkLongBg!=null&&t.hasOwnProperty("darkLongBg")&&(n.darkLongBg=t.darkLongBg),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.common.BgInfo"},e}(),c}(),p.pgcanymodel=function(){let c={};return c.OgvData=function(){function e(l){if(this.activityFloatLayer=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.mediaId=t.int32();break}case 2:{o.seasonId=t.int64();break}case 3:{o.seasonType=t.int32();break}case 4:{o.showSeasonType=t.int32();break}case 5:{o.rights=u.bilibili.app.viewunite.pgcanymodel.Rights.decode(t,t.uint32());break}case 6:{o.userStatus=u.bilibili.app.viewunite.pgcanymodel.UserStatus.decode(t,t.uint32());break}case 7:{o.aid=t.int64();break}case 8:{o.stat=u.bilibili.app.viewunite.pgcanymodel.Stat.decode(t,t.uint32());break}case 9:{o.mode=t.int32();break}case 10:{o.publish=u.bilibili.app.viewunite.pgcanymodel.Publish.decode(t,t.uint32());break}case 11:{o.playStrategy=u.bilibili.app.viewunite.pgcanymodel.PlayStrategy.decode(t,t.uint32());break}case 12:{o.multiViewInfo=u.bilibili.app.viewunite.pgcanymodel.MultiViewInfo.decode(t,t.uint32());break}case 13:{o.ogvSwitch=u.bilibili.app.viewunite.pgcanymodel.OgvSwitch.decode(t,t.uint32());break}case 14:{o.totalEp=t.int32();break}case 15:{o.newEp=u.bilibili.app.viewunite.common.NewEp.decode(t,t.uint32());break}case 16:{o.reserve=u.bilibili.app.viewunite.pgcanymodel.Reserve.decode(t,t.uint32());break}case 17:{o.status=t.int32();break}case 18:{o.activityFloatLayer&&o.activityFloatLayer.length||(o.activityFloatLayer=[]),o.activityFloatLayer.push(u.bilibili.app.viewunite.pgcanymodel.PlayFloatLayerActivity.decode(t,t.uint32()));break}case 19:{o.earphoneConf=u.bilibili.app.viewunite.pgcanymodel.EarphoneConf.decode(t,t.uint32());break}case 20:{o.cover=t.string();break}case 21:{o.squareCover=t.string();break}case 22:{o.shareUrl=t.string();break}case 23:{o.shortLink=t.string();break}case 24:{o.title=t.string();break}case 25:{o.horizontalCover169=t.string();break}case 26:{o.horizontalCover1610=t.string();break}case 27:{o.hasCanPlayEp=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.pgcanymodel.OgvData)return t;let i=new u.bilibili.app.viewunite.pgcanymodel.OgvData;if(t.mediaId!=null&&(i.mediaId=t.mediaId|0),t.seasonId!=null&&(r.Long?(i.seasonId=r.Long.fromValue(t.seasonId)).unsigned=!1:typeof t.seasonId=="string"?i.seasonId=parseInt(t.seasonId,10):typeof t.seasonId=="number"?i.seasonId=t.seasonId:typeof t.seasonId=="object"&&(i.seasonId=new r.LongBits(t.seasonId.low>>>0,t.seasonId.high>>>0).toNumber())),t.seasonType!=null&&(i.seasonType=t.seasonType|0),t.showSeasonType!=null&&(i.showSeasonType=t.showSeasonType|0),t.rights!=null){if(typeof t.rights!="object")throw TypeError(".bilibili.app.viewunite.pgcanymodel.OgvData.rights: object expected");i.rights=u.bilibili.app.viewunite.pgcanymodel.Rights.fromObject(t.rights)}if(t.userStatus!=null){if(typeof t.userStatus!="object")throw TypeError(".bilibili.app.viewunite.pgcanymodel.OgvData.userStatus: object expected");i.userStatus=u.bilibili.app.viewunite.pgcanymodel.UserStatus.fromObject(t.userStatus)}if(t.aid!=null&&(r.Long?(i.aid=r.Long.fromValue(t.aid)).unsigned=!1:typeof t.aid=="string"?i.aid=parseInt(t.aid,10):typeof t.aid=="number"?i.aid=t.aid:typeof t.aid=="object"&&(i.aid=new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber())),t.stat!=null){if(typeof t.stat!="object")throw TypeError(".bilibili.app.viewunite.pgcanymodel.OgvData.stat: object expected");i.stat=u.bilibili.app.viewunite.pgcanymodel.Stat.fromObject(t.stat)}if(t.mode!=null&&(i.mode=t.mode|0),t.publish!=null){if(typeof t.publish!="object")throw TypeError(".bilibili.app.viewunite.pgcanymodel.OgvData.publish: object expected");i.publish=u.bilibili.app.viewunite.pgcanymodel.Publish.fromObject(t.publish)}if(t.playStrategy!=null){if(typeof t.playStrategy!="object")throw TypeError(".bilibili.app.viewunite.pgcanymodel.OgvData.playStrategy: object expected");i.playStrategy=u.bilibili.app.viewunite.pgcanymodel.PlayStrategy.fromObject(t.playStrategy)}if(t.multiViewInfo!=null){if(typeof t.multiViewInfo!="object")throw TypeError(".bilibili.app.viewunite.pgcanymodel.OgvData.multiViewInfo: object expected");i.multiViewInfo=u.bilibili.app.viewunite.pgcanymodel.MultiViewInfo.fromObject(t.multiViewInfo)}if(t.ogvSwitch!=null){if(typeof t.ogvSwitch!="object")throw TypeError(".bilibili.app.viewunite.pgcanymodel.OgvData.ogvSwitch: object expected");i.ogvSwitch=u.bilibili.app.viewunite.pgcanymodel.OgvSwitch.fromObject(t.ogvSwitch)}if(t.totalEp!=null&&(i.totalEp=t.totalEp|0),t.newEp!=null){if(typeof t.newEp!="object")throw TypeError(".bilibili.app.viewunite.pgcanymodel.OgvData.newEp: object expected");i.newEp=u.bilibili.app.viewunite.common.NewEp.fromObject(t.newEp)}if(t.reserve!=null){if(typeof t.reserve!="object")throw TypeError(".bilibili.app.viewunite.pgcanymodel.OgvData.reserve: object expected");i.reserve=u.bilibili.app.viewunite.pgcanymodel.Reserve.fromObject(t.reserve)}if(t.status!=null&&(i.status=t.status|0),t.activityFloatLayer){if(!Array.isArray(t.activityFloatLayer))throw TypeError(".bilibili.app.viewunite.pgcanymodel.OgvData.activityFloatLayer: array expected");i.activityFloatLayer=[];for(let n=0;n>>0,t.seasonId.high>>>0).toNumber():t.seasonId),t.seasonType!=null&&t.hasOwnProperty("seasonType")&&(n.seasonType=t.seasonType),t.showSeasonType!=null&&t.hasOwnProperty("showSeasonType")&&(n.showSeasonType=t.showSeasonType),t.rights!=null&&t.hasOwnProperty("rights")&&(n.rights=u.bilibili.app.viewunite.pgcanymodel.Rights.toObject(t.rights,i)),t.userStatus!=null&&t.hasOwnProperty("userStatus")&&(n.userStatus=u.bilibili.app.viewunite.pgcanymodel.UserStatus.toObject(t.userStatus,i)),t.aid!=null&&t.hasOwnProperty("aid")&&(typeof t.aid=="number"?n.aid=i.longs===String?String(t.aid):t.aid:n.aid=i.longs===String?r.Long.prototype.toString.call(t.aid):i.longs===Number?new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber():t.aid),t.stat!=null&&t.hasOwnProperty("stat")&&(n.stat=u.bilibili.app.viewunite.pgcanymodel.Stat.toObject(t.stat,i)),t.mode!=null&&t.hasOwnProperty("mode")&&(n.mode=t.mode),t.publish!=null&&t.hasOwnProperty("publish")&&(n.publish=u.bilibili.app.viewunite.pgcanymodel.Publish.toObject(t.publish,i)),t.playStrategy!=null&&t.hasOwnProperty("playStrategy")&&(n.playStrategy=u.bilibili.app.viewunite.pgcanymodel.PlayStrategy.toObject(t.playStrategy,i)),t.multiViewInfo!=null&&t.hasOwnProperty("multiViewInfo")&&(n.multiViewInfo=u.bilibili.app.viewunite.pgcanymodel.MultiViewInfo.toObject(t.multiViewInfo,i)),t.ogvSwitch!=null&&t.hasOwnProperty("ogvSwitch")&&(n.ogvSwitch=u.bilibili.app.viewunite.pgcanymodel.OgvSwitch.toObject(t.ogvSwitch,i)),t.totalEp!=null&&t.hasOwnProperty("totalEp")&&(n.totalEp=t.totalEp),t.newEp!=null&&t.hasOwnProperty("newEp")&&(n.newEp=u.bilibili.app.viewunite.common.NewEp.toObject(t.newEp,i)),t.reserve!=null&&t.hasOwnProperty("reserve")&&(n.reserve=u.bilibili.app.viewunite.pgcanymodel.Reserve.toObject(t.reserve,i)),t.status!=null&&t.hasOwnProperty("status")&&(n.status=t.status),t.activityFloatLayer&&t.activityFloatLayer.length){n.activityFloatLayer=[];for(let o=0;o>>3){case 1:{o.spPhones&&o.spPhones.length||(o.spPhones=[]),o.spPhones.push(u.bilibili.app.viewunite.pgcanymodel.Earphone.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.pgcanymodel.EarphoneConf)return t;let i=new u.bilibili.app.viewunite.pgcanymodel.EarphoneConf;if(t.spPhones){if(!Array.isArray(t.spPhones))throw TypeError(".bilibili.app.viewunite.pgcanymodel.EarphoneConf.spPhones: array expected");i.spPhones=[];for(let n=0;n>>3){case 1:{o.productModel=t.string();break}case 2:{o.likeToastText=t.string();break}case 3:{o.switchToastText=t.string();break}case 4:{o.likeToastVoice=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.pgcanymodel.Earphone)return t;let i=new u.bilibili.app.viewunite.pgcanymodel.Earphone;return t.productModel!=null&&(i.productModel=String(t.productModel)),t.likeToastText!=null&&(i.likeToastText=String(t.likeToastText)),t.switchToastText!=null&&(i.switchToastText=String(t.switchToastText)),t.likeToastVoice!=null&&(i.likeToastVoice=String(t.likeToastVoice)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.productModel="",n.likeToastText="",n.switchToastText="",n.likeToastVoice=""),t.productModel!=null&&t.hasOwnProperty("productModel")&&(n.productModel=t.productModel),t.likeToastText!=null&&t.hasOwnProperty("likeToastText")&&(n.likeToastText=t.likeToastText),t.switchToastText!=null&&t.hasOwnProperty("switchToastText")&&(n.switchToastText=t.switchToastText),t.likeToastVoice!=null&&t.hasOwnProperty("likeToastVoice")&&(n.likeToastVoice=t.likeToastVoice),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.pgcanymodel.Earphone"},e}(),c.PlayFloatLayerActivity=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.id=t.int32();break}case 2:{o.title=t.string();break}case 3:{o.type=t.int32();break}case 4:{o.adBadgeType=t.int32();break}case 5:{o.link=t.string();break}case 6:{o.picUrl=t.string();break}case 7:{o.picAnimaUrl=t.string();break}case 8:{o.badge=u.bilibili.app.viewunite.common.BadgeInfo.decode(t,t.uint32());break}case 9:{o.showRateTime=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.pgcanymodel.PlayFloatLayerActivity)return t;let i=new u.bilibili.app.viewunite.pgcanymodel.PlayFloatLayerActivity;if(t.id!=null&&(i.id=t.id|0),t.title!=null&&(i.title=String(t.title)),t.type!=null&&(i.type=t.type|0),t.adBadgeType!=null&&(i.adBadgeType=t.adBadgeType|0),t.link!=null&&(i.link=String(t.link)),t.picUrl!=null&&(i.picUrl=String(t.picUrl)),t.picAnimaUrl!=null&&(i.picAnimaUrl=String(t.picAnimaUrl)),t.badge!=null){if(typeof t.badge!="object")throw TypeError(".bilibili.app.viewunite.pgcanymodel.PlayFloatLayerActivity.badge: object expected");i.badge=u.bilibili.app.viewunite.common.BadgeInfo.fromObject(t.badge)}return t.showRateTime!=null&&(r.Long?(i.showRateTime=r.Long.fromValue(t.showRateTime)).unsigned=!1:typeof t.showRateTime=="string"?i.showRateTime=parseInt(t.showRateTime,10):typeof t.showRateTime=="number"?i.showRateTime=t.showRateTime:typeof t.showRateTime=="object"&&(i.showRateTime=new r.LongBits(t.showRateTime.low>>>0,t.showRateTime.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(n.id=0,n.title="",n.type=0,n.adBadgeType=0,n.link="",n.picUrl="",n.picAnimaUrl="",n.badge=null,r.Long){let o=new r.Long(0,0,!1);n.showRateTime=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.showRateTime=i.longs===String?"0":0;return t.id!=null&&t.hasOwnProperty("id")&&(n.id=t.id),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.type!=null&&t.hasOwnProperty("type")&&(n.type=t.type),t.adBadgeType!=null&&t.hasOwnProperty("adBadgeType")&&(n.adBadgeType=t.adBadgeType),t.link!=null&&t.hasOwnProperty("link")&&(n.link=t.link),t.picUrl!=null&&t.hasOwnProperty("picUrl")&&(n.picUrl=t.picUrl),t.picAnimaUrl!=null&&t.hasOwnProperty("picAnimaUrl")&&(n.picAnimaUrl=t.picAnimaUrl),t.badge!=null&&t.hasOwnProperty("badge")&&(n.badge=u.bilibili.app.viewunite.common.BadgeInfo.toObject(t.badge,i)),t.showRateTime!=null&&t.hasOwnProperty("showRateTime")&&(typeof t.showRateTime=="number"?n.showRateTime=i.longs===String?String(t.showRateTime):t.showRateTime:n.showRateTime=i.longs===String?r.Long.prototype.toString.call(t.showRateTime):i.longs===Number?new r.LongBits(t.showRateTime.low>>>0,t.showRateTime.high>>>0).toNumber():t.showRateTime),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.pgcanymodel.PlayFloatLayerActivity"},e}(),c.Reserve=function(){function e(l){if(this.episodes=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.episodes&&o.episodes.length||(o.episodes=[]),o.episodes.push(u.bilibili.app.viewunite.common.ViewEpisode.decode(t,t.uint32()));break}case 2:{o.tip=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.pgcanymodel.Reserve)return t;let i=new u.bilibili.app.viewunite.pgcanymodel.Reserve;if(t.episodes){if(!Array.isArray(t.episodes))throw TypeError(".bilibili.app.viewunite.pgcanymodel.Reserve.episodes: array expected");i.episodes=[];for(let n=0;n>>3){case 1:{o.reduceShortTitleSpacing=t.int32();break}case 2:{o.mergePositionSectionForCinema=t.int32();break}case 3:{o.mergePreviewSection=t.int32();break}case 4:{o.enableShowVtInfo=t.int32();break}case 5:{o.hideEpVvVtDm=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.pgcanymodel.OgvSwitch)return t;let i=new u.bilibili.app.viewunite.pgcanymodel.OgvSwitch;return t.reduceShortTitleSpacing!=null&&(i.reduceShortTitleSpacing=t.reduceShortTitleSpacing|0),t.mergePositionSectionForCinema!=null&&(i.mergePositionSectionForCinema=t.mergePositionSectionForCinema|0),t.mergePreviewSection!=null&&(i.mergePreviewSection=t.mergePreviewSection|0),t.enableShowVtInfo!=null&&(i.enableShowVtInfo=t.enableShowVtInfo|0),t.hideEpVvVtDm!=null&&(i.hideEpVvVtDm=t.hideEpVvVtDm|0),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.reduceShortTitleSpacing=0,n.mergePositionSectionForCinema=0,n.mergePreviewSection=0,n.enableShowVtInfo=0,n.hideEpVvVtDm=0),t.reduceShortTitleSpacing!=null&&t.hasOwnProperty("reduceShortTitleSpacing")&&(n.reduceShortTitleSpacing=t.reduceShortTitleSpacing),t.mergePositionSectionForCinema!=null&&t.hasOwnProperty("mergePositionSectionForCinema")&&(n.mergePositionSectionForCinema=t.mergePositionSectionForCinema),t.mergePreviewSection!=null&&t.hasOwnProperty("mergePreviewSection")&&(n.mergePreviewSection=t.mergePreviewSection),t.enableShowVtInfo!=null&&t.hasOwnProperty("enableShowVtInfo")&&(n.enableShowVtInfo=t.enableShowVtInfo),t.hideEpVvVtDm!=null&&t.hasOwnProperty("hideEpVvVtDm")&&(n.hideEpVvVtDm=t.hideEpVvVtDm),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.pgcanymodel.OgvSwitch"},e}(),c.Publish=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.pubTime=t.string();break}case 2:{o.pubTimeShow=t.string();break}case 3:{o.isStarted=t.int32();break}case 4:{o.isFinish=t.int32();break}case 5:{o.weekday=t.int32();break}case 6:{o.releaseDateShow=t.string();break}case 7:{o.timeLengthShow=t.string();break}case 8:{o.unknowPubDate=t.int32();break}case 9:{o.updateInfoDesc=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.pgcanymodel.Publish)return t;let i=new u.bilibili.app.viewunite.pgcanymodel.Publish;return t.pubTime!=null&&(i.pubTime=String(t.pubTime)),t.pubTimeShow!=null&&(i.pubTimeShow=String(t.pubTimeShow)),t.isStarted!=null&&(i.isStarted=t.isStarted|0),t.isFinish!=null&&(i.isFinish=t.isFinish|0),t.weekday!=null&&(i.weekday=t.weekday|0),t.releaseDateShow!=null&&(i.releaseDateShow=String(t.releaseDateShow)),t.timeLengthShow!=null&&(i.timeLengthShow=String(t.timeLengthShow)),t.unknowPubDate!=null&&(i.unknowPubDate=t.unknowPubDate|0),t.updateInfoDesc!=null&&(i.updateInfoDesc=String(t.updateInfoDesc)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.pubTime="",n.pubTimeShow="",n.isStarted=0,n.isFinish=0,n.weekday=0,n.releaseDateShow="",n.timeLengthShow="",n.unknowPubDate=0,n.updateInfoDesc=""),t.pubTime!=null&&t.hasOwnProperty("pubTime")&&(n.pubTime=t.pubTime),t.pubTimeShow!=null&&t.hasOwnProperty("pubTimeShow")&&(n.pubTimeShow=t.pubTimeShow),t.isStarted!=null&&t.hasOwnProperty("isStarted")&&(n.isStarted=t.isStarted),t.isFinish!=null&&t.hasOwnProperty("isFinish")&&(n.isFinish=t.isFinish),t.weekday!=null&&t.hasOwnProperty("weekday")&&(n.weekday=t.weekday),t.releaseDateShow!=null&&t.hasOwnProperty("releaseDateShow")&&(n.releaseDateShow=t.releaseDateShow),t.timeLengthShow!=null&&t.hasOwnProperty("timeLengthShow")&&(n.timeLengthShow=t.timeLengthShow),t.unknowPubDate!=null&&t.hasOwnProperty("unknowPubDate")&&(n.unknowPubDate=t.unknowPubDate),t.updateInfoDesc!=null&&t.hasOwnProperty("updateInfoDesc")&&(n.updateInfoDesc=t.updateInfoDesc),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.pgcanymodel.Publish"},e}(),c.Stat=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.followers=t.string();break}case 2:{o.playData=u.bilibili.app.viewunite.common.StatInfo.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.pgcanymodel.Stat)return t;let i=new u.bilibili.app.viewunite.pgcanymodel.Stat;if(t.followers!=null&&(i.followers=String(t.followers)),t.playData!=null){if(typeof t.playData!="object")throw TypeError(".bilibili.app.viewunite.pgcanymodel.Stat.playData: object expected");i.playData=u.bilibili.app.viewunite.common.StatInfo.fromObject(t.playData)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.followers="",n.playData=null),t.followers!=null&&t.hasOwnProperty("followers")&&(n.followers=t.followers),t.playData!=null&&t.hasOwnProperty("playData")&&(n.playData=u.bilibili.app.viewunite.common.StatInfo.toObject(t.playData,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.pgcanymodel.Stat"},e}(),c.PlayStrategy=function(){function e(l){if(this.strategies=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.strategies&&o.strategies.length||(o.strategies=[]),o.strategies.push(t.string());break}case 2:{o.recommendShowStrategy=t.int32();break}case 3:{o.autoPlayToast=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.pgcanymodel.PlayStrategy)return t;let i=new u.bilibili.app.viewunite.pgcanymodel.PlayStrategy;if(t.strategies){if(!Array.isArray(t.strategies))throw TypeError(".bilibili.app.viewunite.pgcanymodel.PlayStrategy.strategies: array expected");i.strategies=[];for(let n=0;n>>3){case 1:{o.allowDownload=t.int32();break}case 2:{o.allowReview=t.int32();break}case 3:{o.canWatch=t.int32();break}case 4:{o.isCoverShow=t.int32();break}case 5:{o.copyright=t.string();break}case 6:{o.copyrightName=t.string();break}case 7:{o.allowBp=t.int32();break}case 8:{o.areaLimit=t.int32();break}case 9:{o.isPreview=t.int32();break}case 10:{o.banAreaShow=t.int32();break}case 11:{o.watchPlatform=t.int32();break}case 12:{o.allowBpRank=t.int32();break}case 13:{o.resource=t.string();break}case 14:{o.forbidPre=t.int32();break}case 15:{o.onlyVipDownload=t.int32();break}case 16:{o.newAllowDownload=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.pgcanymodel.Rights)return t;let i=new u.bilibili.app.viewunite.pgcanymodel.Rights;return t.allowDownload!=null&&(i.allowDownload=t.allowDownload|0),t.allowReview!=null&&(i.allowReview=t.allowReview|0),t.canWatch!=null&&(i.canWatch=t.canWatch|0),t.isCoverShow!=null&&(i.isCoverShow=t.isCoverShow|0),t.copyright!=null&&(i.copyright=String(t.copyright)),t.copyrightName!=null&&(i.copyrightName=String(t.copyrightName)),t.allowBp!=null&&(i.allowBp=t.allowBp|0),t.areaLimit!=null&&(i.areaLimit=t.areaLimit|0),t.isPreview!=null&&(i.isPreview=t.isPreview|0),t.banAreaShow!=null&&(i.banAreaShow=t.banAreaShow|0),t.watchPlatform!=null&&(i.watchPlatform=t.watchPlatform|0),t.allowBpRank!=null&&(i.allowBpRank=t.allowBpRank|0),t.resource!=null&&(i.resource=String(t.resource)),t.forbidPre!=null&&(i.forbidPre=t.forbidPre|0),t.onlyVipDownload!=null&&(i.onlyVipDownload=t.onlyVipDownload|0),t.newAllowDownload!=null&&(i.newAllowDownload=t.newAllowDownload|0),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.allowDownload=0,n.allowReview=0,n.canWatch=0,n.isCoverShow=0,n.copyright="",n.copyrightName="",n.allowBp=0,n.areaLimit=0,n.isPreview=0,n.banAreaShow=0,n.watchPlatform=0,n.allowBpRank=0,n.resource="",n.forbidPre=0,n.onlyVipDownload=0,n.newAllowDownload=0),t.allowDownload!=null&&t.hasOwnProperty("allowDownload")&&(n.allowDownload=t.allowDownload),t.allowReview!=null&&t.hasOwnProperty("allowReview")&&(n.allowReview=t.allowReview),t.canWatch!=null&&t.hasOwnProperty("canWatch")&&(n.canWatch=t.canWatch),t.isCoverShow!=null&&t.hasOwnProperty("isCoverShow")&&(n.isCoverShow=t.isCoverShow),t.copyright!=null&&t.hasOwnProperty("copyright")&&(n.copyright=t.copyright),t.copyrightName!=null&&t.hasOwnProperty("copyrightName")&&(n.copyrightName=t.copyrightName),t.allowBp!=null&&t.hasOwnProperty("allowBp")&&(n.allowBp=t.allowBp),t.areaLimit!=null&&t.hasOwnProperty("areaLimit")&&(n.areaLimit=t.areaLimit),t.isPreview!=null&&t.hasOwnProperty("isPreview")&&(n.isPreview=t.isPreview),t.banAreaShow!=null&&t.hasOwnProperty("banAreaShow")&&(n.banAreaShow=t.banAreaShow),t.watchPlatform!=null&&t.hasOwnProperty("watchPlatform")&&(n.watchPlatform=t.watchPlatform),t.allowBpRank!=null&&t.hasOwnProperty("allowBpRank")&&(n.allowBpRank=t.allowBpRank),t.resource!=null&&t.hasOwnProperty("resource")&&(n.resource=t.resource),t.forbidPre!=null&&t.hasOwnProperty("forbidPre")&&(n.forbidPre=t.forbidPre),t.onlyVipDownload!=null&&t.hasOwnProperty("onlyVipDownload")&&(n.onlyVipDownload=t.onlyVipDownload),t.newAllowDownload!=null&&t.hasOwnProperty("newAllowDownload")&&(n.newAllowDownload=t.newAllowDownload),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.pgcanymodel.Rights"},e}(),c.UserStatus=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.show=t.int32();break}case 2:{o.follow=t.int32();break}case 3:{o.followStatus=t.int32();break}case 4:{o.pay=t.int32();break}case 5:{o.sponsor=t.int32();break}case 6:{o.vip=t.int32();break}case 7:{o.vipFrozen=t.int32();break}case 8:{o.watchProgress=u.bilibili.app.viewunite.pgcanymodel.WatchProgress.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.pgcanymodel.UserStatus)return t;let i=new u.bilibili.app.viewunite.pgcanymodel.UserStatus;if(t.show!=null&&(i.show=t.show|0),t.follow!=null&&(i.follow=t.follow|0),t.followStatus!=null&&(i.followStatus=t.followStatus|0),t.pay!=null&&(i.pay=t.pay|0),t.sponsor!=null&&(i.sponsor=t.sponsor|0),t.vip!=null&&(i.vip=t.vip|0),t.vipFrozen!=null&&(i.vipFrozen=t.vipFrozen|0),t.watchProgress!=null){if(typeof t.watchProgress!="object")throw TypeError(".bilibili.app.viewunite.pgcanymodel.UserStatus.watchProgress: object expected");i.watchProgress=u.bilibili.app.viewunite.pgcanymodel.WatchProgress.fromObject(t.watchProgress)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.show=0,n.follow=0,n.followStatus=0,n.pay=0,n.sponsor=0,n.vip=0,n.vipFrozen=0,n.watchProgress=null),t.show!=null&&t.hasOwnProperty("show")&&(n.show=t.show),t.follow!=null&&t.hasOwnProperty("follow")&&(n.follow=t.follow),t.followStatus!=null&&t.hasOwnProperty("followStatus")&&(n.followStatus=t.followStatus),t.pay!=null&&t.hasOwnProperty("pay")&&(n.pay=t.pay),t.sponsor!=null&&t.hasOwnProperty("sponsor")&&(n.sponsor=t.sponsor),t.vip!=null&&t.hasOwnProperty("vip")&&(n.vip=t.vip),t.vipFrozen!=null&&t.hasOwnProperty("vipFrozen")&&(n.vipFrozen=t.vipFrozen),t.watchProgress!=null&&t.hasOwnProperty("watchProgress")&&(n.watchProgress=u.bilibili.app.viewunite.pgcanymodel.WatchProgress.toObject(t.watchProgress,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.pgcanymodel.UserStatus"},e}(),c.WatchProgress=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.lastEpId=t.int64();break}case 2:{o.lastEpIndex=t.string();break}case 3:{o.lastTime=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.pgcanymodel.WatchProgress)return t;let i=new u.bilibili.app.viewunite.pgcanymodel.WatchProgress;return t.lastEpId!=null&&(r.Long?(i.lastEpId=r.Long.fromValue(t.lastEpId)).unsigned=!1:typeof t.lastEpId=="string"?i.lastEpId=parseInt(t.lastEpId,10):typeof t.lastEpId=="number"?i.lastEpId=t.lastEpId:typeof t.lastEpId=="object"&&(i.lastEpId=new r.LongBits(t.lastEpId.low>>>0,t.lastEpId.high>>>0).toNumber())),t.lastEpIndex!=null&&(i.lastEpIndex=String(t.lastEpIndex)),t.lastTime!=null&&(r.Long?(i.lastTime=r.Long.fromValue(t.lastTime)).unsigned=!1:typeof t.lastTime=="string"?i.lastTime=parseInt(t.lastTime,10):typeof t.lastTime=="number"?i.lastTime=t.lastTime:typeof t.lastTime=="object"&&(i.lastTime=new r.LongBits(t.lastTime.low>>>0,t.lastTime.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.lastEpId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.lastEpId=i.longs===String?"0":0;if(n.lastEpIndex="",r.Long){let o=new r.Long(0,0,!1);n.lastTime=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.lastTime=i.longs===String?"0":0}return t.lastEpId!=null&&t.hasOwnProperty("lastEpId")&&(typeof t.lastEpId=="number"?n.lastEpId=i.longs===String?String(t.lastEpId):t.lastEpId:n.lastEpId=i.longs===String?r.Long.prototype.toString.call(t.lastEpId):i.longs===Number?new r.LongBits(t.lastEpId.low>>>0,t.lastEpId.high>>>0).toNumber():t.lastEpId),t.lastEpIndex!=null&&t.hasOwnProperty("lastEpIndex")&&(n.lastEpIndex=t.lastEpIndex),t.lastTime!=null&&t.hasOwnProperty("lastTime")&&(typeof t.lastTime=="number"?n.lastTime=i.longs===String?String(t.lastTime):t.lastTime:n.lastTime=i.longs===String?r.Long.prototype.toString.call(t.lastTime):i.longs===Number?new r.LongBits(t.lastTime.low>>>0,t.lastTime.high>>>0).toNumber():t.lastTime),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.pgcanymodel.WatchProgress"},e}(),c.MultiViewInfo=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.isMultiViewSeason=t.bool();break}case 2:{o.changingDance=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.pgcanymodel.MultiViewInfo)return t;let i=new u.bilibili.app.viewunite.pgcanymodel.MultiViewInfo;return t.isMultiViewSeason!=null&&(i.isMultiViewSeason=!!t.isMultiViewSeason),t.changingDance!=null&&(i.changingDance=String(t.changingDance)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.isMultiViewSeason=!1,n.changingDance=""),t.isMultiViewSeason!=null&&t.hasOwnProperty("isMultiViewSeason")&&(n.isMultiViewSeason=t.isMultiViewSeason),t.changingDance!=null&&t.hasOwnProperty("changingDance")&&(n.changingDance=t.changingDance),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.pgcanymodel.MultiViewInfo"},e}(),c.ViewPgcAny=function(){function e(l){if(this.allUpInfo={},l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.ogvData=u.bilibili.app.viewunite.pgcanymodel.OgvData.decode(t,t.uint32());break}case 2:{o.allUpInfo===r.emptyObject&&(o.allUpInfo={});let v=t.uint32()+t.pos;for(a=0,y=null;t.pos>>3){case 1:a=t.int64();break;case 2:y=u.bilibili.app.viewunite.common.Staff.decode(t,t.uint32());break;default:t.skipType(g&7);break}}o.allUpInfo[typeof a=="object"?r.longToHash(a):a]=y;break}default:t.skipType(s&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.pgcanymodel.ViewPgcAny)return t;let i=new u.bilibili.app.viewunite.pgcanymodel.ViewPgcAny;if(t.ogvData!=null){if(typeof t.ogvData!="object")throw TypeError(".bilibili.app.viewunite.pgcanymodel.ViewPgcAny.ogvData: object expected");i.ogvData=u.bilibili.app.viewunite.pgcanymodel.OgvData.fromObject(t.ogvData)}if(t.allUpInfo){if(typeof t.allUpInfo!="object")throw TypeError(".bilibili.app.viewunite.pgcanymodel.ViewPgcAny.allUpInfo: object expected");i.allUpInfo={};for(let n=Object.keys(t.allUpInfo),o=0;o>>3){case 1:{o.seasonOverview=u.bilibili.app.viewunite.pugvanymodel.SeasonOverview.decode(t,t.uint32());break}case 2:{o.seasonPayment=u.bilibili.app.viewunite.pugvanymodel.SeasonPayment.decode(t,t.uint32());break}case 3:{o.seasonCoupon=u.bilibili.app.viewunite.pugvanymodel.SeasonCoupon.decode(t,t.uint32());break}case 4:{o.catalogueInfo=u.bilibili.app.viewunite.pugvanymodel.CatalogueInfo.decode(t,t.uint32());break}case 5:{o.seasonCustom=u.bilibili.app.viewunite.pugvanymodel.SeasonCustom.decode(t,t.uint32());break}case 6:{o.coursewareInfo=u.bilibili.app.viewunite.pugvanymodel.CoursewareInfo.decode(t,t.uint32());break}case 7:{o.courseCoach=u.bilibili.app.viewunite.pugvanymodel.CourseCoach.decode(t,t.uint32());break}case 8:{o.sectionInfo=u.bilibili.app.viewunite.pugvanymodel.SectionInfo.decode(t,t.uint32());break}case 9:{o.abTest=u.bilibili.app.viewunite.pugvanymodel.AbTest.decode(t,t.uint32());break}case 10:{o.operationArea=u.bilibili.app.viewunite.pugvanymodel.OperationArea.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.pugvanymodel.ViewPugvAny)return t;let i=new u.bilibili.app.viewunite.pugvanymodel.ViewPugvAny;if(t.seasonOverview!=null){if(typeof t.seasonOverview!="object")throw TypeError(".bilibili.app.viewunite.pugvanymodel.ViewPugvAny.seasonOverview: object expected");i.seasonOverview=u.bilibili.app.viewunite.pugvanymodel.SeasonOverview.fromObject(t.seasonOverview)}if(t.seasonPayment!=null){if(typeof t.seasonPayment!="object")throw TypeError(".bilibili.app.viewunite.pugvanymodel.ViewPugvAny.seasonPayment: object expected");i.seasonPayment=u.bilibili.app.viewunite.pugvanymodel.SeasonPayment.fromObject(t.seasonPayment)}if(t.seasonCoupon!=null){if(typeof t.seasonCoupon!="object")throw TypeError(".bilibili.app.viewunite.pugvanymodel.ViewPugvAny.seasonCoupon: object expected");i.seasonCoupon=u.bilibili.app.viewunite.pugvanymodel.SeasonCoupon.fromObject(t.seasonCoupon)}if(t.catalogueInfo!=null){if(typeof t.catalogueInfo!="object")throw TypeError(".bilibili.app.viewunite.pugvanymodel.ViewPugvAny.catalogueInfo: object expected");i.catalogueInfo=u.bilibili.app.viewunite.pugvanymodel.CatalogueInfo.fromObject(t.catalogueInfo)}if(t.seasonCustom!=null){if(typeof t.seasonCustom!="object")throw TypeError(".bilibili.app.viewunite.pugvanymodel.ViewPugvAny.seasonCustom: object expected");i.seasonCustom=u.bilibili.app.viewunite.pugvanymodel.SeasonCustom.fromObject(t.seasonCustom)}if(t.coursewareInfo!=null){if(typeof t.coursewareInfo!="object")throw TypeError(".bilibili.app.viewunite.pugvanymodel.ViewPugvAny.coursewareInfo: object expected");i.coursewareInfo=u.bilibili.app.viewunite.pugvanymodel.CoursewareInfo.fromObject(t.coursewareInfo)}if(t.courseCoach!=null){if(typeof t.courseCoach!="object")throw TypeError(".bilibili.app.viewunite.pugvanymodel.ViewPugvAny.courseCoach: object expected");i.courseCoach=u.bilibili.app.viewunite.pugvanymodel.CourseCoach.fromObject(t.courseCoach)}if(t.sectionInfo!=null){if(typeof t.sectionInfo!="object")throw TypeError(".bilibili.app.viewunite.pugvanymodel.ViewPugvAny.sectionInfo: object expected");i.sectionInfo=u.bilibili.app.viewunite.pugvanymodel.SectionInfo.fromObject(t.sectionInfo)}if(t.abTest!=null){if(typeof t.abTest!="object")throw TypeError(".bilibili.app.viewunite.pugvanymodel.ViewPugvAny.abTest: object expected");i.abTest=u.bilibili.app.viewunite.pugvanymodel.AbTest.fromObject(t.abTest)}if(t.operationArea!=null){if(typeof t.operationArea!="object")throw TypeError(".bilibili.app.viewunite.pugvanymodel.ViewPugvAny.operationArea: object expected");i.operationArea=u.bilibili.app.viewunite.pugvanymodel.OperationArea.fromObject(t.operationArea)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.seasonOverview=null,n.seasonPayment=null,n.seasonCoupon=null,n.catalogueInfo=null,n.seasonCustom=null,n.coursewareInfo=null,n.courseCoach=null,n.sectionInfo=null,n.abTest=null,n.operationArea=null),t.seasonOverview!=null&&t.hasOwnProperty("seasonOverview")&&(n.seasonOverview=u.bilibili.app.viewunite.pugvanymodel.SeasonOverview.toObject(t.seasonOverview,i)),t.seasonPayment!=null&&t.hasOwnProperty("seasonPayment")&&(n.seasonPayment=u.bilibili.app.viewunite.pugvanymodel.SeasonPayment.toObject(t.seasonPayment,i)),t.seasonCoupon!=null&&t.hasOwnProperty("seasonCoupon")&&(n.seasonCoupon=u.bilibili.app.viewunite.pugvanymodel.SeasonCoupon.toObject(t.seasonCoupon,i)),t.catalogueInfo!=null&&t.hasOwnProperty("catalogueInfo")&&(n.catalogueInfo=u.bilibili.app.viewunite.pugvanymodel.CatalogueInfo.toObject(t.catalogueInfo,i)),t.seasonCustom!=null&&t.hasOwnProperty("seasonCustom")&&(n.seasonCustom=u.bilibili.app.viewunite.pugvanymodel.SeasonCustom.toObject(t.seasonCustom,i)),t.coursewareInfo!=null&&t.hasOwnProperty("coursewareInfo")&&(n.coursewareInfo=u.bilibili.app.viewunite.pugvanymodel.CoursewareInfo.toObject(t.coursewareInfo,i)),t.courseCoach!=null&&t.hasOwnProperty("courseCoach")&&(n.courseCoach=u.bilibili.app.viewunite.pugvanymodel.CourseCoach.toObject(t.courseCoach,i)),t.sectionInfo!=null&&t.hasOwnProperty("sectionInfo")&&(n.sectionInfo=u.bilibili.app.viewunite.pugvanymodel.SectionInfo.toObject(t.sectionInfo,i)),t.abTest!=null&&t.hasOwnProperty("abTest")&&(n.abTest=u.bilibili.app.viewunite.pugvanymodel.AbTest.toObject(t.abTest,i)),t.operationArea!=null&&t.hasOwnProperty("operationArea")&&(n.operationArea=u.bilibili.app.viewunite.pugvanymodel.OperationArea.toObject(t.operationArea,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.pugvanymodel.ViewPugvAny"},e}(),c.SeasonOverview=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.seasonId=t.int64();break}case 2:{o.supportCash=t.bool();break}case 3:{o.status=t.int32();break}case 4:{o.type=t.int32();break}case 5:{o.cover=t.string();break}case 6:{o.title=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.pugvanymodel.SeasonOverview)return t;let i=new u.bilibili.app.viewunite.pugvanymodel.SeasonOverview;switch(t.seasonId!=null&&(r.Long?(i.seasonId=r.Long.fromValue(t.seasonId)).unsigned=!1:typeof t.seasonId=="string"?i.seasonId=parseInt(t.seasonId,10):typeof t.seasonId=="number"?i.seasonId=t.seasonId:typeof t.seasonId=="object"&&(i.seasonId=new r.LongBits(t.seasonId.low>>>0,t.seasonId.high>>>0).toNumber())),t.supportCash!=null&&(i.supportCash=!!t.supportCash),t.status){default:if(typeof t.status=="number"){i.status=t.status;break}break;case"SEASON_STATUS_UNSPECIFIED":case 0:i.status=0;break;case"SEASON_STATUS_OFFLINE":case 1:i.status=1;break}switch(t.type){default:if(typeof t.type=="number"){i.type=t.type;break}break;case"SEASON_TYPE_UNSPECIFIED":case 0:i.type=0;break;case"SEASON_TYPE_INSTALLMENT":case 1:i.type=1;break;case"SEASON_TYPE_FREE":case 2:i.type=2;break;case"SEASON_TYPE_SUBSCRIPTION":case 3:i.type=3;break}return t.cover!=null&&(i.cover=String(t.cover)),t.title!=null&&(i.title=String(t.title)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.seasonId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.seasonId=i.longs===String?"0":0;n.supportCash=!1,n.status=i.enums===String?"SEASON_STATUS_UNSPECIFIED":0,n.type=i.enums===String?"SEASON_TYPE_UNSPECIFIED":0,n.cover="",n.title=""}return t.seasonId!=null&&t.hasOwnProperty("seasonId")&&(typeof t.seasonId=="number"?n.seasonId=i.longs===String?String(t.seasonId):t.seasonId:n.seasonId=i.longs===String?r.Long.prototype.toString.call(t.seasonId):i.longs===Number?new r.LongBits(t.seasonId.low>>>0,t.seasonId.high>>>0).toNumber():t.seasonId),t.supportCash!=null&&t.hasOwnProperty("supportCash")&&(n.supportCash=t.supportCash),t.status!=null&&t.hasOwnProperty("status")&&(n.status=i.enums===String?u.bilibili.app.viewunite.pugvanymodel.SeasonStatus[t.status]===void 0?t.status:u.bilibili.app.viewunite.pugvanymodel.SeasonStatus[t.status]:t.status),t.type!=null&&t.hasOwnProperty("type")&&(n.type=i.enums===String?u.bilibili.app.viewunite.pugvanymodel.SeasonType[t.type]===void 0?t.type:u.bilibili.app.viewunite.pugvanymodel.SeasonType[t.type]:t.type),t.cover!=null&&t.hasOwnProperty("cover")&&(n.cover=t.cover),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.pugvanymodel.SeasonOverview"},e}(),c.SeasonStatus=function(){let e={},l=Object.create(e);return l[e[0]="SEASON_STATUS_UNSPECIFIED"]=0,l[e[1]="SEASON_STATUS_OFFLINE"]=1,l}(),c.SeasonType=function(){let e={},l=Object.create(e);return l[e[0]="SEASON_TYPE_UNSPECIFIED"]=0,l[e[1]="SEASON_TYPE_INSTALLMENT"]=1,l[e[2]="SEASON_TYPE_FREE"]=2,l[e[3]="SEASON_TYPE_SUBSCRIPTION"]=3,l}(),c.SeasonPayment=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.priceUnit=t.string();break}case 2:{o.discountPrice=t.string();break}case 3:{o.discountPriceDesc=t.string();break}case 4:{o.originalPrice=t.string();break}case 5:{o.originalPriceDesc=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.pugvanymodel.SeasonPayment)return t;let i=new u.bilibili.app.viewunite.pugvanymodel.SeasonPayment;return t.priceUnit!=null&&(i.priceUnit=String(t.priceUnit)),t.discountPrice!=null&&(i.discountPrice=String(t.discountPrice)),t.discountPriceDesc!=null&&(i.discountPriceDesc=String(t.discountPriceDesc)),t.originalPrice!=null&&(i.originalPrice=String(t.originalPrice)),t.originalPriceDesc!=null&&(i.originalPriceDesc=String(t.originalPriceDesc)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.priceUnit="",n.discountPrice="",n.discountPriceDesc="",n.originalPrice="",n.originalPriceDesc=""),t.priceUnit!=null&&t.hasOwnProperty("priceUnit")&&(n.priceUnit=t.priceUnit),t.discountPrice!=null&&t.hasOwnProperty("discountPrice")&&(n.discountPrice=t.discountPrice),t.discountPriceDesc!=null&&t.hasOwnProperty("discountPriceDesc")&&(n.discountPriceDesc=t.discountPriceDesc),t.originalPrice!=null&&t.hasOwnProperty("originalPrice")&&(n.originalPrice=t.originalPrice),t.originalPriceDesc!=null&&t.hasOwnProperty("originalPriceDesc")&&(n.originalPriceDesc=t.originalPriceDesc),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.pugvanymodel.SeasonPayment"},e}(),c.SeasonCoupon=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.token=t.string();break}case 2:{o.title=t.string();break}case 3:{o.startTime=t.string();break}case 4:{o.expireTime=t.string();break}case 5:{o.amount=t.double();break}case 6:{o.showAmount=t.string();break}case 7:{o.status=t.int32();break}case 8:{o.couponType=t.int32();break}case 9:{o.shortTitle=t.string();break}case 10:{o.expireMinute=t.string();break}case 11:{o.useScope=t.string();break}case 12:{o.discountAmount=t.string();break}case 13:{o.receiveExpireTime=t.int64();break}case 14:{o.useExpireTime=t.int64();break}case 15:{o.sceneMark=t.string();break}case 16:{o.sceneBackgroundImg=t.string();break}case 17:{o.sceneBenefitImg=t.string();break}case 18:{o.sceneCountdown=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.pugvanymodel.SeasonCoupon)return t;let i=new u.bilibili.app.viewunite.pugvanymodel.SeasonCoupon;switch(t.token!=null&&(i.token=String(t.token)),t.title!=null&&(i.title=String(t.title)),t.startTime!=null&&(i.startTime=String(t.startTime)),t.expireTime!=null&&(i.expireTime=String(t.expireTime)),t.amount!=null&&(i.amount=Number(t.amount)),t.showAmount!=null&&(i.showAmount=String(t.showAmount)),t.status){default:if(typeof t.status=="number"){i.status=t.status;break}break;case"SEASON_COUPON_STATUS_UNSPECIFIED":case 0:i.status=0;break;case"SEASON_COUPON_STATUS_RECEIVED":case 1:i.status=1;break;case"SEASON_COUPON_STATUS_NOT_RECEIVED":case 2:i.status=2;break;case"SEASON_COUPON_STATUS_INVALID":case 3:i.status=3;break}switch(t.couponType){default:if(typeof t.couponType=="number"){i.couponType=t.couponType;break}break;case"SEASON_COUPON_TYPE_UNSPECIFIED":case 0:i.couponType=0;break;case"SEASON_COUPON_TYPE_DISCOUNT":case 1:i.couponType=1;break;case"SEASON_COUPON_TYPE_DECREASE":case 2:i.couponType=2;break}return t.shortTitle!=null&&(i.shortTitle=String(t.shortTitle)),t.expireMinute!=null&&(i.expireMinute=String(t.expireMinute)),t.useScope!=null&&(i.useScope=String(t.useScope)),t.discountAmount!=null&&(i.discountAmount=String(t.discountAmount)),t.receiveExpireTime!=null&&(r.Long?(i.receiveExpireTime=r.Long.fromValue(t.receiveExpireTime)).unsigned=!1:typeof t.receiveExpireTime=="string"?i.receiveExpireTime=parseInt(t.receiveExpireTime,10):typeof t.receiveExpireTime=="number"?i.receiveExpireTime=t.receiveExpireTime:typeof t.receiveExpireTime=="object"&&(i.receiveExpireTime=new r.LongBits(t.receiveExpireTime.low>>>0,t.receiveExpireTime.high>>>0).toNumber())),t.useExpireTime!=null&&(r.Long?(i.useExpireTime=r.Long.fromValue(t.useExpireTime)).unsigned=!1:typeof t.useExpireTime=="string"?i.useExpireTime=parseInt(t.useExpireTime,10):typeof t.useExpireTime=="number"?i.useExpireTime=t.useExpireTime:typeof t.useExpireTime=="object"&&(i.useExpireTime=new r.LongBits(t.useExpireTime.low>>>0,t.useExpireTime.high>>>0).toNumber())),t.sceneMark!=null&&(i.sceneMark=String(t.sceneMark)),t.sceneBackgroundImg!=null&&(i.sceneBackgroundImg=String(t.sceneBackgroundImg)),t.sceneBenefitImg!=null&&(i.sceneBenefitImg=String(t.sceneBenefitImg)),t.sceneCountdown!=null&&(i.sceneCountdown=!!t.sceneCountdown),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.token="",n.title="",n.startTime="",n.expireTime="",n.amount=0,n.showAmount="",n.status=i.enums===String?"SEASON_COUPON_STATUS_UNSPECIFIED":0,n.couponType=i.enums===String?"SEASON_COUPON_TYPE_UNSPECIFIED":0,n.shortTitle="",n.expireMinute="",n.useScope="",n.discountAmount="",r.Long){let o=new r.Long(0,0,!1);n.receiveExpireTime=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.receiveExpireTime=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.useExpireTime=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.useExpireTime=i.longs===String?"0":0;n.sceneMark="",n.sceneBackgroundImg="",n.sceneBenefitImg="",n.sceneCountdown=!1}return t.token!=null&&t.hasOwnProperty("token")&&(n.token=t.token),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.startTime!=null&&t.hasOwnProperty("startTime")&&(n.startTime=t.startTime),t.expireTime!=null&&t.hasOwnProperty("expireTime")&&(n.expireTime=t.expireTime),t.amount!=null&&t.hasOwnProperty("amount")&&(n.amount=i.json&&!isFinite(t.amount)?String(t.amount):t.amount),t.showAmount!=null&&t.hasOwnProperty("showAmount")&&(n.showAmount=t.showAmount),t.status!=null&&t.hasOwnProperty("status")&&(n.status=i.enums===String?u.bilibili.app.viewunite.pugvanymodel.SeasonCouponStatus[t.status]===void 0?t.status:u.bilibili.app.viewunite.pugvanymodel.SeasonCouponStatus[t.status]:t.status),t.couponType!=null&&t.hasOwnProperty("couponType")&&(n.couponType=i.enums===String?u.bilibili.app.viewunite.pugvanymodel.SeasonCouponType[t.couponType]===void 0?t.couponType:u.bilibili.app.viewunite.pugvanymodel.SeasonCouponType[t.couponType]:t.couponType),t.shortTitle!=null&&t.hasOwnProperty("shortTitle")&&(n.shortTitle=t.shortTitle),t.expireMinute!=null&&t.hasOwnProperty("expireMinute")&&(n.expireMinute=t.expireMinute),t.useScope!=null&&t.hasOwnProperty("useScope")&&(n.useScope=t.useScope),t.discountAmount!=null&&t.hasOwnProperty("discountAmount")&&(n.discountAmount=t.discountAmount),t.receiveExpireTime!=null&&t.hasOwnProperty("receiveExpireTime")&&(typeof t.receiveExpireTime=="number"?n.receiveExpireTime=i.longs===String?String(t.receiveExpireTime):t.receiveExpireTime:n.receiveExpireTime=i.longs===String?r.Long.prototype.toString.call(t.receiveExpireTime):i.longs===Number?new r.LongBits(t.receiveExpireTime.low>>>0,t.receiveExpireTime.high>>>0).toNumber():t.receiveExpireTime),t.useExpireTime!=null&&t.hasOwnProperty("useExpireTime")&&(typeof t.useExpireTime=="number"?n.useExpireTime=i.longs===String?String(t.useExpireTime):t.useExpireTime:n.useExpireTime=i.longs===String?r.Long.prototype.toString.call(t.useExpireTime):i.longs===Number?new r.LongBits(t.useExpireTime.low>>>0,t.useExpireTime.high>>>0).toNumber():t.useExpireTime),t.sceneMark!=null&&t.hasOwnProperty("sceneMark")&&(n.sceneMark=t.sceneMark),t.sceneBackgroundImg!=null&&t.hasOwnProperty("sceneBackgroundImg")&&(n.sceneBackgroundImg=t.sceneBackgroundImg),t.sceneBenefitImg!=null&&t.hasOwnProperty("sceneBenefitImg")&&(n.sceneBenefitImg=t.sceneBenefitImg),t.sceneCountdown!=null&&t.hasOwnProperty("sceneCountdown")&&(n.sceneCountdown=t.sceneCountdown),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.pugvanymodel.SeasonCoupon"},e}(),c.SeasonCouponStatus=function(){let e={},l=Object.create(e);return l[e[0]="SEASON_COUPON_STATUS_UNSPECIFIED"]=0,l[e[1]="SEASON_COUPON_STATUS_RECEIVED"]=1,l[e[2]="SEASON_COUPON_STATUS_NOT_RECEIVED"]=2,l[e[3]="SEASON_COUPON_STATUS_INVALID"]=3,l}(),c.SeasonCouponType=function(){let e={},l=Object.create(e);return l[e[0]="SEASON_COUPON_TYPE_UNSPECIFIED"]=0,l[e[1]="SEASON_COUPON_TYPE_DISCOUNT"]=1,l[e[2]="SEASON_COUPON_TYPE_DECREASE"]=2,l}(),c.CatalogueInfo=function(){function e(l){if(this.catalogues=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.catalogues&&o.catalogues.length||(o.catalogues=[]),o.catalogues.push(u.bilibili.app.viewunite.pugvanymodel.SeasonCatalogue.decode(t,t.uint32()));break}case 2:{o.catalogueLiveInfo=u.bilibili.app.viewunite.pugvanymodel.CatalogueLiveInfo.decode(t,t.uint32());break}case 3:{o.catalogueUpdateText=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.pugvanymodel.CatalogueInfo)return t;let i=new u.bilibili.app.viewunite.pugvanymodel.CatalogueInfo;if(t.catalogues){if(!Array.isArray(t.catalogues))throw TypeError(".bilibili.app.viewunite.pugvanymodel.CatalogueInfo.catalogues: array expected");i.catalogues=[];for(let n=0;n>>3){case 1:{o.episodeId=t.int64();break}case 2:{o.title=t.string();break}case 3:{o.subtitle=t.string();break}case 4:{o.buttonText=t.string();break}case 5:{o.status=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.pugvanymodel.CatalogueLiveInfo)return t;let i=new u.bilibili.app.viewunite.pugvanymodel.CatalogueLiveInfo;switch(t.episodeId!=null&&(r.Long?(i.episodeId=r.Long.fromValue(t.episodeId)).unsigned=!1:typeof t.episodeId=="string"?i.episodeId=parseInt(t.episodeId,10):typeof t.episodeId=="number"?i.episodeId=t.episodeId:typeof t.episodeId=="object"&&(i.episodeId=new r.LongBits(t.episodeId.low>>>0,t.episodeId.high>>>0).toNumber())),t.title!=null&&(i.title=String(t.title)),t.subtitle!=null&&(i.subtitle=String(t.subtitle)),t.buttonText!=null&&(i.buttonText=String(t.buttonText)),t.status){default:if(typeof t.status=="number"){i.status=t.status;break}break;case"LIVE_STATUS_UNSPECIFIED":case 0:i.status=0;break;case"LIVE_STATUS_PREPARE":case 1:i.status=1;break;case"LIVE_STATUS_LIVE":case 2:i.status=2;break;case"LIVE_STATUS_PLAYBACK_GENERATING":case 3:i.status=3;break}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.episodeId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.episodeId=i.longs===String?"0":0;n.title="",n.subtitle="",n.buttonText="",n.status=i.enums===String?"LIVE_STATUS_UNSPECIFIED":0}return t.episodeId!=null&&t.hasOwnProperty("episodeId")&&(typeof t.episodeId=="number"?n.episodeId=i.longs===String?String(t.episodeId):t.episodeId:n.episodeId=i.longs===String?r.Long.prototype.toString.call(t.episodeId):i.longs===Number?new r.LongBits(t.episodeId.low>>>0,t.episodeId.high>>>0).toNumber():t.episodeId),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.subtitle!=null&&t.hasOwnProperty("subtitle")&&(n.subtitle=t.subtitle),t.buttonText!=null&&t.hasOwnProperty("buttonText")&&(n.buttonText=t.buttonText),t.status!=null&&t.hasOwnProperty("status")&&(n.status=i.enums===String?u.bilibili.app.viewunite.pugvanymodel.LiveStatus[t.status]===void 0?t.status:u.bilibili.app.viewunite.pugvanymodel.LiveStatus[t.status]:t.status),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.pugvanymodel.CatalogueLiveInfo"},e}(),c.SeasonCatalogue=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.index=t.int64();break}case 3:{o.startEpIndex=t.int64();break}case 4:{o.endEpIndex=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.pugvanymodel.SeasonCatalogue)return t;let i=new u.bilibili.app.viewunite.pugvanymodel.SeasonCatalogue;return t.title!=null&&(i.title=String(t.title)),t.index!=null&&(r.Long?(i.index=r.Long.fromValue(t.index)).unsigned=!1:typeof t.index=="string"?i.index=parseInt(t.index,10):typeof t.index=="number"?i.index=t.index:typeof t.index=="object"&&(i.index=new r.LongBits(t.index.low>>>0,t.index.high>>>0).toNumber())),t.startEpIndex!=null&&(r.Long?(i.startEpIndex=r.Long.fromValue(t.startEpIndex)).unsigned=!1:typeof t.startEpIndex=="string"?i.startEpIndex=parseInt(t.startEpIndex,10):typeof t.startEpIndex=="number"?i.startEpIndex=t.startEpIndex:typeof t.startEpIndex=="object"&&(i.startEpIndex=new r.LongBits(t.startEpIndex.low>>>0,t.startEpIndex.high>>>0).toNumber())),t.endEpIndex!=null&&(r.Long?(i.endEpIndex=r.Long.fromValue(t.endEpIndex)).unsigned=!1:typeof t.endEpIndex=="string"?i.endEpIndex=parseInt(t.endEpIndex,10):typeof t.endEpIndex=="number"?i.endEpIndex=t.endEpIndex:typeof t.endEpIndex=="object"&&(i.endEpIndex=new r.LongBits(t.endEpIndex.low>>>0,t.endEpIndex.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.title="",r.Long){let o=new r.Long(0,0,!1);n.index=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.index=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.startEpIndex=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.startEpIndex=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.endEpIndex=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.endEpIndex=i.longs===String?"0":0}return t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.index!=null&&t.hasOwnProperty("index")&&(typeof t.index=="number"?n.index=i.longs===String?String(t.index):t.index:n.index=i.longs===String?r.Long.prototype.toString.call(t.index):i.longs===Number?new r.LongBits(t.index.low>>>0,t.index.high>>>0).toNumber():t.index),t.startEpIndex!=null&&t.hasOwnProperty("startEpIndex")&&(typeof t.startEpIndex=="number"?n.startEpIndex=i.longs===String?String(t.startEpIndex):t.startEpIndex:n.startEpIndex=i.longs===String?r.Long.prototype.toString.call(t.startEpIndex):i.longs===Number?new r.LongBits(t.startEpIndex.low>>>0,t.startEpIndex.high>>>0).toNumber():t.startEpIndex),t.endEpIndex!=null&&t.hasOwnProperty("endEpIndex")&&(typeof t.endEpIndex=="number"?n.endEpIndex=i.longs===String?String(t.endEpIndex):t.endEpIndex:n.endEpIndex=i.longs===String?r.Long.prototype.toString.call(t.endEpIndex):i.longs===Number?new r.LongBits(t.endEpIndex.low>>>0,t.endEpIndex.high>>>0).toNumber():t.endEpIndex),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.pugvanymodel.SeasonCatalogue"},e}(),c.SeasonCustom=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.waterMark=u.bilibili.app.viewunite.pugvanymodel.WaterMark.decode(t,t.uint32());break}case 2:{o.danmakuControl=u.bilibili.app.viewunite.pugvanymodel.DanmakuControl.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.pugvanymodel.SeasonCustom)return t;let i=new u.bilibili.app.viewunite.pugvanymodel.SeasonCustom;if(t.waterMark!=null){if(typeof t.waterMark!="object")throw TypeError(".bilibili.app.viewunite.pugvanymodel.SeasonCustom.waterMark: object expected");i.waterMark=u.bilibili.app.viewunite.pugvanymodel.WaterMark.fromObject(t.waterMark)}if(t.danmakuControl!=null){if(typeof t.danmakuControl!="object")throw TypeError(".bilibili.app.viewunite.pugvanymodel.SeasonCustom.danmakuControl: object expected");i.danmakuControl=u.bilibili.app.viewunite.pugvanymodel.DanmakuControl.fromObject(t.danmakuControl)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.waterMark=null,n.danmakuControl=null),t.waterMark!=null&&t.hasOwnProperty("waterMark")&&(n.waterMark=u.bilibili.app.viewunite.pugvanymodel.WaterMark.toObject(t.waterMark,i)),t.danmakuControl!=null&&t.hasOwnProperty("danmakuControl")&&(n.danmakuControl=u.bilibili.app.viewunite.pugvanymodel.DanmakuControl.toObject(t.danmakuControl,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.pugvanymodel.SeasonCustom"},e}(),c.DanmakuControl=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.disabled=t.bool();break}case 2:{o.extraContent=u.bilibili.app.viewunite.pugvanymodel.ExtraContent.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.pugvanymodel.DanmakuControl)return t;let i=new u.bilibili.app.viewunite.pugvanymodel.DanmakuControl;if(t.disabled!=null&&(i.disabled=!!t.disabled),t.extraContent!=null){if(typeof t.extraContent!="object")throw TypeError(".bilibili.app.viewunite.pugvanymodel.DanmakuControl.extraContent: object expected");i.extraContent=u.bilibili.app.viewunite.pugvanymodel.ExtraContent.fromObject(t.extraContent)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.disabled=!1,n.extraContent=null),t.disabled!=null&&t.hasOwnProperty("disabled")&&(n.disabled=t.disabled),t.extraContent!=null&&t.hasOwnProperty("extraContent")&&(n.extraContent=u.bilibili.app.viewunite.pugvanymodel.ExtraContent.toObject(t.extraContent,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.pugvanymodel.DanmakuControl"},e}(),c.ExtraContent=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.disabledReason=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.pugvanymodel.ExtraContent)return t;let i=new u.bilibili.app.viewunite.pugvanymodel.ExtraContent;return t.disabledReason!=null&&(i.disabledReason=String(t.disabledReason)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.disabledReason=""),t.disabledReason!=null&&t.hasOwnProperty("disabledReason")&&(n.disabledReason=t.disabledReason),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.pugvanymodel.ExtraContent"},e}(),c.WaterMark=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.showWatermark=t.bool();break}case 2:{o.watermarkInterval=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.pugvanymodel.WaterMark)return t;let i=new u.bilibili.app.viewunite.pugvanymodel.WaterMark;return t.showWatermark!=null&&(i.showWatermark=!!t.showWatermark),t.watermarkInterval!=null&&(r.Long?(i.watermarkInterval=r.Long.fromValue(t.watermarkInterval)).unsigned=!1:typeof t.watermarkInterval=="string"?i.watermarkInterval=parseInt(t.watermarkInterval,10):typeof t.watermarkInterval=="number"?i.watermarkInterval=t.watermarkInterval:typeof t.watermarkInterval=="object"&&(i.watermarkInterval=new r.LongBits(t.watermarkInterval.low>>>0,t.watermarkInterval.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(n.showWatermark=!1,r.Long){let o=new r.Long(0,0,!1);n.watermarkInterval=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.watermarkInterval=i.longs===String?"0":0;return t.showWatermark!=null&&t.hasOwnProperty("showWatermark")&&(n.showWatermark=t.showWatermark),t.watermarkInterval!=null&&t.hasOwnProperty("watermarkInterval")&&(typeof t.watermarkInterval=="number"?n.watermarkInterval=i.longs===String?String(t.watermarkInterval):t.watermarkInterval:n.watermarkInterval=i.longs===String?r.Long.prototype.toString.call(t.watermarkInterval):i.longs===Number?new r.LongBits(t.watermarkInterval.low>>>0,t.watermarkInterval.high>>>0).toNumber():t.watermarkInterval),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.pugvanymodel.WaterMark"},e}(),c.CoursewareInfo=function(){function e(l){if(this.coursewares=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.coursewares&&o.coursewares.length||(o.coursewares=[]),o.coursewares.push(u.bilibili.app.viewunite.pugvanymodel.Courseware.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.pugvanymodel.CoursewareInfo)return t;let i=new u.bilibili.app.viewunite.pugvanymodel.CoursewareInfo;if(t.coursewares){if(!Array.isArray(t.coursewares))throw TypeError(".bilibili.app.viewunite.pugvanymodel.CoursewareInfo.coursewares: array expected");i.coursewares=[];for(let n=0;n>>3){case 1:{o.fileId=t.int64();break}case 2:{o.fileName=t.string();break}case 3:{o.fileType=t.string();break}case 4:{o.fileSize=t.int64();break}case 5:{o.desc=t.string();break}case 6:{o.fileUrl=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.pugvanymodel.Courseware)return t;let i=new u.bilibili.app.viewunite.pugvanymodel.Courseware;return t.fileId!=null&&(r.Long?(i.fileId=r.Long.fromValue(t.fileId)).unsigned=!1:typeof t.fileId=="string"?i.fileId=parseInt(t.fileId,10):typeof t.fileId=="number"?i.fileId=t.fileId:typeof t.fileId=="object"&&(i.fileId=new r.LongBits(t.fileId.low>>>0,t.fileId.high>>>0).toNumber())),t.fileName!=null&&(i.fileName=String(t.fileName)),t.fileType!=null&&(i.fileType=String(t.fileType)),t.fileSize!=null&&(r.Long?(i.fileSize=r.Long.fromValue(t.fileSize)).unsigned=!1:typeof t.fileSize=="string"?i.fileSize=parseInt(t.fileSize,10):typeof t.fileSize=="number"?i.fileSize=t.fileSize:typeof t.fileSize=="object"&&(i.fileSize=new r.LongBits(t.fileSize.low>>>0,t.fileSize.high>>>0).toNumber())),t.desc!=null&&(i.desc=String(t.desc)),t.fileUrl!=null&&(i.fileUrl=String(t.fileUrl)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.fileId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.fileId=i.longs===String?"0":0;if(n.fileName="",n.fileType="",r.Long){let o=new r.Long(0,0,!1);n.fileSize=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.fileSize=i.longs===String?"0":0;n.desc="",n.fileUrl=""}return t.fileId!=null&&t.hasOwnProperty("fileId")&&(typeof t.fileId=="number"?n.fileId=i.longs===String?String(t.fileId):t.fileId:n.fileId=i.longs===String?r.Long.prototype.toString.call(t.fileId):i.longs===Number?new r.LongBits(t.fileId.low>>>0,t.fileId.high>>>0).toNumber():t.fileId),t.fileName!=null&&t.hasOwnProperty("fileName")&&(n.fileName=t.fileName),t.fileType!=null&&t.hasOwnProperty("fileType")&&(n.fileType=t.fileType),t.fileSize!=null&&t.hasOwnProperty("fileSize")&&(typeof t.fileSize=="number"?n.fileSize=i.longs===String?String(t.fileSize):t.fileSize:n.fileSize=i.longs===String?r.Long.prototype.toString.call(t.fileSize):i.longs===Number?new r.LongBits(t.fileSize.low>>>0,t.fileSize.high>>>0).toNumber():t.fileSize),t.desc!=null&&t.hasOwnProperty("desc")&&(n.desc=t.desc),t.fileUrl!=null&&t.hasOwnProperty("fileUrl")&&(n.fileUrl=t.fileUrl),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.pugvanymodel.Courseware"},e}(),c.CourseCoach=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.detailUrl=t.string();break}case 2:{o.directoryUrl=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.pugvanymodel.CourseCoach)return t;let i=new u.bilibili.app.viewunite.pugvanymodel.CourseCoach;return t.detailUrl!=null&&(i.detailUrl=String(t.detailUrl)),t.directoryUrl!=null&&(i.directoryUrl=String(t.directoryUrl)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.detailUrl="",n.directoryUrl=""),t.detailUrl!=null&&t.hasOwnProperty("detailUrl")&&(n.detailUrl=t.detailUrl),t.directoryUrl!=null&&t.hasOwnProperty("directoryUrl")&&(n.directoryUrl=t.directoryUrl),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.pugvanymodel.CourseCoach"},e}(),c.SectionInfo=function(){function e(l){if(this.sections=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.sections&&o.sections.length||(o.sections=[]),o.sections.push(u.bilibili.app.viewunite.pugvanymodel.SeasonSection.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.pugvanymodel.SectionInfo)return t;let i=new u.bilibili.app.viewunite.pugvanymodel.SectionInfo;if(t.sections){if(!Array.isArray(t.sections))throw TypeError(".bilibili.app.viewunite.pugvanymodel.SectionInfo.sections: array expected");i.sections=[];for(let n=0;n>>3){case 1:{o.sectionId=t.int64();break}case 2:{o.title=t.string();break}case 3:{o.type=t.int32();break}case 4:{o.coursewares&&o.coursewares.length||(o.coursewares=[]),o.coursewares.push(u.bilibili.app.viewunite.pugvanymodel.Courseware.decode(t,t.uint32()));break}case 5:{o.episodes&&o.episodes.length||(o.episodes=[]),o.episodes.push(u.bilibili.app.viewunite.pugvanymodel.Episode.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.pugvanymodel.SeasonSection)return t;let i=new u.bilibili.app.viewunite.pugvanymodel.SeasonSection;switch(t.sectionId!=null&&(r.Long?(i.sectionId=r.Long.fromValue(t.sectionId)).unsigned=!1:typeof t.sectionId=="string"?i.sectionId=parseInt(t.sectionId,10):typeof t.sectionId=="number"?i.sectionId=t.sectionId:typeof t.sectionId=="object"&&(i.sectionId=new r.LongBits(t.sectionId.low>>>0,t.sectionId.high>>>0).toNumber())),t.title!=null&&(i.title=String(t.title)),t.type){default:if(typeof t.type=="number"){i.type=t.type;break}break;case"SEASON_SECTION_TYPE_UNSPECIFIED":case 0:i.type=0;break;case"SEASON_SECTION_TYPE_DEFAULT":case 1:i.type=1;break;case"SEASON_SECTION_TYPE_CUSTOM":case 2:i.type=2;break}if(t.coursewares){if(!Array.isArray(t.coursewares))throw TypeError(".bilibili.app.viewunite.pugvanymodel.SeasonSection.coursewares: array expected");i.coursewares=[];for(let n=0;n>>0,t.sectionId.high>>>0).toNumber():t.sectionId),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.type!=null&&t.hasOwnProperty("type")&&(n.type=i.enums===String?u.bilibili.app.viewunite.pugvanymodel.SeasonSectionType[t.type]===void 0?t.type:u.bilibili.app.viewunite.pugvanymodel.SeasonSectionType[t.type]:t.type),t.coursewares&&t.coursewares.length){n.coursewares=[];for(let o=0;o>>3){case 1:{a.type=i.int32();break}case 2:{a.videoEpisode=u.bilibili.app.viewunite.pugvanymodel.VideoEpisode.decode(i,i.uint32());break}case 3:{a.liveEpisode=u.bilibili.app.viewunite.pugvanymodel.LiveEpisode.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},e.fromObject=function(i){if(i instanceof u.bilibili.app.viewunite.pugvanymodel.Episode)return i;let n=new u.bilibili.app.viewunite.pugvanymodel.Episode;switch(i.type){default:if(typeof i.type=="number"){n.type=i.type;break}break;case"EPISODE_TYPE_UNSPECIFIED":case 0:n.type=0;break;case"EPISODE_TYPE_VIDEO":case 1:n.type=1;break;case"EPISODE_TYPE_LIVE":case 2:n.type=2;break}if(i.videoEpisode!=null){if(typeof i.videoEpisode!="object")throw TypeError(".bilibili.app.viewunite.pugvanymodel.Episode.videoEpisode: object expected");n.videoEpisode=u.bilibili.app.viewunite.pugvanymodel.VideoEpisode.fromObject(i.videoEpisode)}if(i.liveEpisode!=null){if(typeof i.liveEpisode!="object")throw TypeError(".bilibili.app.viewunite.pugvanymodel.Episode.liveEpisode: object expected");n.liveEpisode=u.bilibili.app.viewunite.pugvanymodel.LiveEpisode.fromObject(i.liveEpisode)}return n},e.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.type=n.enums===String?"EPISODE_TYPE_UNSPECIFIED":0),i.type!=null&&i.hasOwnProperty("type")&&(o.type=n.enums===String?u.bilibili.app.viewunite.pugvanymodel.EpisodeType[i.type]===void 0?i.type:u.bilibili.app.viewunite.pugvanymodel.EpisodeType[i.type]:i.type),i.videoEpisode!=null&&i.hasOwnProperty("videoEpisode")&&(o.videoEpisode=u.bilibili.app.viewunite.pugvanymodel.VideoEpisode.toObject(i.videoEpisode,n),n.oneofs&&(o.data="videoEpisode")),i.liveEpisode!=null&&i.hasOwnProperty("liveEpisode")&&(o.liveEpisode=u.bilibili.app.viewunite.pugvanymodel.LiveEpisode.toObject(i.liveEpisode,n),n.oneofs&&(o.data="liveEpisode")),o},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.app.viewunite.pugvanymodel.Episode"},e}(),c.EpisodeType=function(){let e={},l=Object.create(e);return l[e[0]="EPISODE_TYPE_UNSPECIFIED"]=0,l[e[1]="EPISODE_TYPE_VIDEO"]=1,l[e[2]="EPISODE_TYPE_LIVE"]=2,l}(),c.VideoEpisode=function(){function e(l){if(this.coursewares=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.coursewares&&o.coursewares.length||(o.coursewares=[]),o.coursewares.push(u.bilibili.app.viewunite.pugvanymodel.Courseware.decode(t,t.uint32()));break}case 2:{o.index=t.int64();break}case 3:{o.status=t.int32();break}case 4:{o.aid=t.int64();break}case 5:{o.cid=t.int64();break}case 6:{o.title=t.string();break}case 7:{o.playWaySubtitle=t.string();break}case 8:{o.subtitle=t.string();break}case 9:{o.duration=t.int64();break}case 10:{o.canSwitch=t.bool();break}case 11:{o.canPlay=t.bool();break}case 12:{o.showLockIcon=t.bool();break}case 13:{o.episodeLabel=u.bilibili.app.viewunite.pugvanymodel.EpisodeLabel.decode(t,t.uint32());break}case 14:{o.selectionLabel=u.bilibili.app.viewunite.pugvanymodel.EpisodeSelectionLabel.decode(t,t.uint32());break}case 15:{o.history=u.bilibili.app.viewunite.pugvanymodel.EpisodeHistory.decode(t,t.uint32());break}case 16:{o.playWay=t.int32();break}case 17:{o.episodeId=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.pugvanymodel.VideoEpisode)return t;let i=new u.bilibili.app.viewunite.pugvanymodel.VideoEpisode;if(t.coursewares){if(!Array.isArray(t.coursewares))throw TypeError(".bilibili.app.viewunite.pugvanymodel.VideoEpisode.coursewares: array expected");i.coursewares=[];for(let n=0;n>>0,t.index.high>>>0).toNumber())),t.status){default:if(typeof t.status=="number"){i.status=t.status;break}break;case"EPISODE_STATUS_UNSPECIFIED":case 0:i.status=0;break;case"EPISODE_STATUS_TRY_WATCH_WHOLE":case 1:i.status=1;break;case"EPISODE_STATUS_NOT_TRY_WATCH":case 2:i.status=2;break;case"EPISODE_STATUS_TRY_WATCH_5_MINUTES":case 3:i.status=3;break}if(t.aid!=null&&(r.Long?(i.aid=r.Long.fromValue(t.aid)).unsigned=!1:typeof t.aid=="string"?i.aid=parseInt(t.aid,10):typeof t.aid=="number"?i.aid=t.aid:typeof t.aid=="object"&&(i.aid=new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber())),t.cid!=null&&(r.Long?(i.cid=r.Long.fromValue(t.cid)).unsigned=!1:typeof t.cid=="string"?i.cid=parseInt(t.cid,10):typeof t.cid=="number"?i.cid=t.cid:typeof t.cid=="object"&&(i.cid=new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber())),t.title!=null&&(i.title=String(t.title)),t.playWaySubtitle!=null&&(i.playWaySubtitle=String(t.playWaySubtitle)),t.subtitle!=null&&(i.subtitle=String(t.subtitle)),t.duration!=null&&(r.Long?(i.duration=r.Long.fromValue(t.duration)).unsigned=!1:typeof t.duration=="string"?i.duration=parseInt(t.duration,10):typeof t.duration=="number"?i.duration=t.duration:typeof t.duration=="object"&&(i.duration=new r.LongBits(t.duration.low>>>0,t.duration.high>>>0).toNumber())),t.canSwitch!=null&&(i.canSwitch=!!t.canSwitch),t.canPlay!=null&&(i.canPlay=!!t.canPlay),t.showLockIcon!=null&&(i.showLockIcon=!!t.showLockIcon),t.episodeLabel!=null){if(typeof t.episodeLabel!="object")throw TypeError(".bilibili.app.viewunite.pugvanymodel.VideoEpisode.episodeLabel: object expected");i.episodeLabel=u.bilibili.app.viewunite.pugvanymodel.EpisodeLabel.fromObject(t.episodeLabel)}if(t.selectionLabel!=null){if(typeof t.selectionLabel!="object")throw TypeError(".bilibili.app.viewunite.pugvanymodel.VideoEpisode.selectionLabel: object expected");i.selectionLabel=u.bilibili.app.viewunite.pugvanymodel.EpisodeSelectionLabel.fromObject(t.selectionLabel)}if(t.history!=null){if(typeof t.history!="object")throw TypeError(".bilibili.app.viewunite.pugvanymodel.VideoEpisode.history: object expected");i.history=u.bilibili.app.viewunite.pugvanymodel.EpisodeHistory.fromObject(t.history)}switch(t.playWay){default:if(typeof t.playWay=="number"){i.playWay=t.playWay;break}break;case"VIDEO_PLAY_WAY_UNSPECIFIED":case 0:i.playWay=0;break;case"VIDEO_PLAY_WAY_VOD":case 1:i.playWay=1;break;case"VIDEO_PLAY_WAY_LIVE_PLAYBACK":case 2:i.playWay=2;break}return t.episodeId!=null&&(r.Long?(i.episodeId=r.Long.fromValue(t.episodeId)).unsigned=!1:typeof t.episodeId=="string"?i.episodeId=parseInt(t.episodeId,10):typeof t.episodeId=="number"?i.episodeId=t.episodeId:typeof t.episodeId=="object"&&(i.episodeId=new r.LongBits(t.episodeId.low>>>0,t.episodeId.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if((i.arrays||i.defaults)&&(n.coursewares=[]),i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.index=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.index=i.longs===String?"0":0;if(n.status=i.enums===String?"EPISODE_STATUS_UNSPECIFIED":0,r.Long){let o=new r.Long(0,0,!1);n.aid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.aid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.cid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.cid=i.longs===String?"0":0;if(n.title="",n.playWaySubtitle="",n.subtitle="",r.Long){let o=new r.Long(0,0,!1);n.duration=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.duration=i.longs===String?"0":0;if(n.canSwitch=!1,n.canPlay=!1,n.showLockIcon=!1,n.episodeLabel=null,n.selectionLabel=null,n.history=null,n.playWay=i.enums===String?"VIDEO_PLAY_WAY_UNSPECIFIED":0,r.Long){let o=new r.Long(0,0,!1);n.episodeId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.episodeId=i.longs===String?"0":0}if(t.coursewares&&t.coursewares.length){n.coursewares=[];for(let o=0;o>>0,t.index.high>>>0).toNumber():t.index),t.status!=null&&t.hasOwnProperty("status")&&(n.status=i.enums===String?u.bilibili.app.viewunite.pugvanymodel.EpisodeStatus[t.status]===void 0?t.status:u.bilibili.app.viewunite.pugvanymodel.EpisodeStatus[t.status]:t.status),t.aid!=null&&t.hasOwnProperty("aid")&&(typeof t.aid=="number"?n.aid=i.longs===String?String(t.aid):t.aid:n.aid=i.longs===String?r.Long.prototype.toString.call(t.aid):i.longs===Number?new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber():t.aid),t.cid!=null&&t.hasOwnProperty("cid")&&(typeof t.cid=="number"?n.cid=i.longs===String?String(t.cid):t.cid:n.cid=i.longs===String?r.Long.prototype.toString.call(t.cid):i.longs===Number?new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber():t.cid),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.playWaySubtitle!=null&&t.hasOwnProperty("playWaySubtitle")&&(n.playWaySubtitle=t.playWaySubtitle),t.subtitle!=null&&t.hasOwnProperty("subtitle")&&(n.subtitle=t.subtitle),t.duration!=null&&t.hasOwnProperty("duration")&&(typeof t.duration=="number"?n.duration=i.longs===String?String(t.duration):t.duration:n.duration=i.longs===String?r.Long.prototype.toString.call(t.duration):i.longs===Number?new r.LongBits(t.duration.low>>>0,t.duration.high>>>0).toNumber():t.duration),t.canSwitch!=null&&t.hasOwnProperty("canSwitch")&&(n.canSwitch=t.canSwitch),t.canPlay!=null&&t.hasOwnProperty("canPlay")&&(n.canPlay=t.canPlay),t.showLockIcon!=null&&t.hasOwnProperty("showLockIcon")&&(n.showLockIcon=t.showLockIcon),t.episodeLabel!=null&&t.hasOwnProperty("episodeLabel")&&(n.episodeLabel=u.bilibili.app.viewunite.pugvanymodel.EpisodeLabel.toObject(t.episodeLabel,i)),t.selectionLabel!=null&&t.hasOwnProperty("selectionLabel")&&(n.selectionLabel=u.bilibili.app.viewunite.pugvanymodel.EpisodeSelectionLabel.toObject(t.selectionLabel,i)),t.history!=null&&t.hasOwnProperty("history")&&(n.history=u.bilibili.app.viewunite.pugvanymodel.EpisodeHistory.toObject(t.history,i)),t.playWay!=null&&t.hasOwnProperty("playWay")&&(n.playWay=i.enums===String?u.bilibili.app.viewunite.pugvanymodel.VideoPlayWay[t.playWay]===void 0?t.playWay:u.bilibili.app.viewunite.pugvanymodel.VideoPlayWay[t.playWay]:t.playWay),t.episodeId!=null&&t.hasOwnProperty("episodeId")&&(typeof t.episodeId=="number"?n.episodeId=i.longs===String?String(t.episodeId):t.episodeId:n.episodeId=i.longs===String?r.Long.prototype.toString.call(t.episodeId):i.longs===Number?new r.LongBits(t.episodeId.low>>>0,t.episodeId.high>>>0).toNumber():t.episodeId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.pugvanymodel.VideoEpisode"},e}(),c.LiveEpisode=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.episodeId=t.int64();break}case 2:{o.status=t.int32();break}case 3:{o.jump=t.bool();break}case 4:{o.liveTeacherMid=t.int64();break}case 5:{o.showSubscriptionPrebookButton=t.bool();break}case 6:{o.beSubscriptionPrebook=t.bool();break}case 7:{o.index=t.int64();break}case 8:{o.title=t.string();break}case 9:{o.playWaySubtitle=t.string();break}case 10:{o.subtitle=t.string();break}case 11:{o.showLockIcon=t.bool();break}case 12:{o.episodeLabel=u.bilibili.app.viewunite.pugvanymodel.EpisodeLabel.decode(t,t.uint32());break}case 13:{o.selectionLabel=u.bilibili.app.viewunite.pugvanymodel.EpisodeSelectionLabel.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.pugvanymodel.LiveEpisode)return t;let i=new u.bilibili.app.viewunite.pugvanymodel.LiveEpisode;switch(t.episodeId!=null&&(r.Long?(i.episodeId=r.Long.fromValue(t.episodeId)).unsigned=!1:typeof t.episodeId=="string"?i.episodeId=parseInt(t.episodeId,10):typeof t.episodeId=="number"?i.episodeId=t.episodeId:typeof t.episodeId=="object"&&(i.episodeId=new r.LongBits(t.episodeId.low>>>0,t.episodeId.high>>>0).toNumber())),t.status){default:if(typeof t.status=="number"){i.status=t.status;break}break;case"LIVE_STATUS_UNSPECIFIED":case 0:i.status=0;break;case"LIVE_STATUS_PREPARE":case 1:i.status=1;break;case"LIVE_STATUS_LIVE":case 2:i.status=2;break;case"LIVE_STATUS_PLAYBACK_GENERATING":case 3:i.status=3;break}if(t.jump!=null&&(i.jump=!!t.jump),t.liveTeacherMid!=null&&(r.Long?(i.liveTeacherMid=r.Long.fromValue(t.liveTeacherMid)).unsigned=!1:typeof t.liveTeacherMid=="string"?i.liveTeacherMid=parseInt(t.liveTeacherMid,10):typeof t.liveTeacherMid=="number"?i.liveTeacherMid=t.liveTeacherMid:typeof t.liveTeacherMid=="object"&&(i.liveTeacherMid=new r.LongBits(t.liveTeacherMid.low>>>0,t.liveTeacherMid.high>>>0).toNumber())),t.showSubscriptionPrebookButton!=null&&(i.showSubscriptionPrebookButton=!!t.showSubscriptionPrebookButton),t.beSubscriptionPrebook!=null&&(i.beSubscriptionPrebook=!!t.beSubscriptionPrebook),t.index!=null&&(r.Long?(i.index=r.Long.fromValue(t.index)).unsigned=!1:typeof t.index=="string"?i.index=parseInt(t.index,10):typeof t.index=="number"?i.index=t.index:typeof t.index=="object"&&(i.index=new r.LongBits(t.index.low>>>0,t.index.high>>>0).toNumber())),t.title!=null&&(i.title=String(t.title)),t.playWaySubtitle!=null&&(i.playWaySubtitle=String(t.playWaySubtitle)),t.subtitle!=null&&(i.subtitle=String(t.subtitle)),t.showLockIcon!=null&&(i.showLockIcon=!!t.showLockIcon),t.episodeLabel!=null){if(typeof t.episodeLabel!="object")throw TypeError(".bilibili.app.viewunite.pugvanymodel.LiveEpisode.episodeLabel: object expected");i.episodeLabel=u.bilibili.app.viewunite.pugvanymodel.EpisodeLabel.fromObject(t.episodeLabel)}if(t.selectionLabel!=null){if(typeof t.selectionLabel!="object")throw TypeError(".bilibili.app.viewunite.pugvanymodel.LiveEpisode.selectionLabel: object expected");i.selectionLabel=u.bilibili.app.viewunite.pugvanymodel.EpisodeSelectionLabel.fromObject(t.selectionLabel)}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.episodeId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.episodeId=i.longs===String?"0":0;if(n.status=i.enums===String?"LIVE_STATUS_UNSPECIFIED":0,n.jump=!1,r.Long){let o=new r.Long(0,0,!1);n.liveTeacherMid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.liveTeacherMid=i.longs===String?"0":0;if(n.showSubscriptionPrebookButton=!1,n.beSubscriptionPrebook=!1,r.Long){let o=new r.Long(0,0,!1);n.index=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.index=i.longs===String?"0":0;n.title="",n.playWaySubtitle="",n.subtitle="",n.showLockIcon=!1,n.episodeLabel=null,n.selectionLabel=null}return t.episodeId!=null&&t.hasOwnProperty("episodeId")&&(typeof t.episodeId=="number"?n.episodeId=i.longs===String?String(t.episodeId):t.episodeId:n.episodeId=i.longs===String?r.Long.prototype.toString.call(t.episodeId):i.longs===Number?new r.LongBits(t.episodeId.low>>>0,t.episodeId.high>>>0).toNumber():t.episodeId),t.status!=null&&t.hasOwnProperty("status")&&(n.status=i.enums===String?u.bilibili.app.viewunite.pugvanymodel.LiveStatus[t.status]===void 0?t.status:u.bilibili.app.viewunite.pugvanymodel.LiveStatus[t.status]:t.status),t.jump!=null&&t.hasOwnProperty("jump")&&(n.jump=t.jump),t.liveTeacherMid!=null&&t.hasOwnProperty("liveTeacherMid")&&(typeof t.liveTeacherMid=="number"?n.liveTeacherMid=i.longs===String?String(t.liveTeacherMid):t.liveTeacherMid:n.liveTeacherMid=i.longs===String?r.Long.prototype.toString.call(t.liveTeacherMid):i.longs===Number?new r.LongBits(t.liveTeacherMid.low>>>0,t.liveTeacherMid.high>>>0).toNumber():t.liveTeacherMid),t.showSubscriptionPrebookButton!=null&&t.hasOwnProperty("showSubscriptionPrebookButton")&&(n.showSubscriptionPrebookButton=t.showSubscriptionPrebookButton),t.beSubscriptionPrebook!=null&&t.hasOwnProperty("beSubscriptionPrebook")&&(n.beSubscriptionPrebook=t.beSubscriptionPrebook),t.index!=null&&t.hasOwnProperty("index")&&(typeof t.index=="number"?n.index=i.longs===String?String(t.index):t.index:n.index=i.longs===String?r.Long.prototype.toString.call(t.index):i.longs===Number?new r.LongBits(t.index.low>>>0,t.index.high>>>0).toNumber():t.index),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.playWaySubtitle!=null&&t.hasOwnProperty("playWaySubtitle")&&(n.playWaySubtitle=t.playWaySubtitle),t.subtitle!=null&&t.hasOwnProperty("subtitle")&&(n.subtitle=t.subtitle),t.showLockIcon!=null&&t.hasOwnProperty("showLockIcon")&&(n.showLockIcon=t.showLockIcon),t.episodeLabel!=null&&t.hasOwnProperty("episodeLabel")&&(n.episodeLabel=u.bilibili.app.viewunite.pugvanymodel.EpisodeLabel.toObject(t.episodeLabel,i)),t.selectionLabel!=null&&t.hasOwnProperty("selectionLabel")&&(n.selectionLabel=u.bilibili.app.viewunite.pugvanymodel.EpisodeSelectionLabel.toObject(t.selectionLabel,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.pugvanymodel.LiveEpisode"},e}(),c.EpisodeLabel=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.typeLabel=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.pugvanymodel.EpisodeLabel)return t;let i=new u.bilibili.app.viewunite.pugvanymodel.EpisodeLabel;return t.typeLabel!=null&&(i.typeLabel=String(t.typeLabel)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.typeLabel=""),t.typeLabel!=null&&t.hasOwnProperty("typeLabel")&&(n.typeLabel=t.typeLabel),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.pugvanymodel.EpisodeLabel"},e}(),c.EpisodeSelectionLabel=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.typeLabel=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.pugvanymodel.EpisodeSelectionLabel)return t;let i=new u.bilibili.app.viewunite.pugvanymodel.EpisodeSelectionLabel;return t.typeLabel!=null&&(i.typeLabel=String(t.typeLabel)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.typeLabel=""),t.typeLabel!=null&&t.hasOwnProperty("typeLabel")&&(n.typeLabel=t.typeLabel),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.pugvanymodel.EpisodeSelectionLabel"},e}(),c.EpisodeHistory=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.lastPlay=t.bool();break}case 2:{o.lastPlayText=t.string();break}case 3:{o.maxProgress=t.int64();break}case 4:{o.fullWatchedText=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.pugvanymodel.EpisodeHistory)return t;let i=new u.bilibili.app.viewunite.pugvanymodel.EpisodeHistory;return t.lastPlay!=null&&(i.lastPlay=!!t.lastPlay),t.lastPlayText!=null&&(i.lastPlayText=String(t.lastPlayText)),t.maxProgress!=null&&(r.Long?(i.maxProgress=r.Long.fromValue(t.maxProgress)).unsigned=!1:typeof t.maxProgress=="string"?i.maxProgress=parseInt(t.maxProgress,10):typeof t.maxProgress=="number"?i.maxProgress=t.maxProgress:typeof t.maxProgress=="object"&&(i.maxProgress=new r.LongBits(t.maxProgress.low>>>0,t.maxProgress.high>>>0).toNumber())),t.fullWatchedText!=null&&(i.fullWatchedText=String(t.fullWatchedText)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.lastPlay=!1,n.lastPlayText="",r.Long){let o=new r.Long(0,0,!1);n.maxProgress=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.maxProgress=i.longs===String?"0":0;n.fullWatchedText=""}return t.lastPlay!=null&&t.hasOwnProperty("lastPlay")&&(n.lastPlay=t.lastPlay),t.lastPlayText!=null&&t.hasOwnProperty("lastPlayText")&&(n.lastPlayText=t.lastPlayText),t.maxProgress!=null&&t.hasOwnProperty("maxProgress")&&(typeof t.maxProgress=="number"?n.maxProgress=i.longs===String?String(t.maxProgress):t.maxProgress:n.maxProgress=i.longs===String?r.Long.prototype.toString.call(t.maxProgress):i.longs===Number?new r.LongBits(t.maxProgress.low>>>0,t.maxProgress.high>>>0).toNumber():t.maxProgress),t.fullWatchedText!=null&&t.hasOwnProperty("fullWatchedText")&&(n.fullWatchedText=t.fullWatchedText),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.pugvanymodel.EpisodeHistory"},e}(),c.VideoPlayWay=function(){let e={},l=Object.create(e);return l[e[0]="VIDEO_PLAY_WAY_UNSPECIFIED"]=0,l[e[1]="VIDEO_PLAY_WAY_VOD"]=1,l[e[2]="VIDEO_PLAY_WAY_LIVE_PLAYBACK"]=2,l}(),c.EpisodeStatus=function(){let e={},l=Object.create(e);return l[e[0]="EPISODE_STATUS_UNSPECIFIED"]=0,l[e[1]="EPISODE_STATUS_TRY_WATCH_WHOLE"]=1,l[e[2]="EPISODE_STATUS_NOT_TRY_WATCH"]=2,l[e[3]="EPISODE_STATUS_TRY_WATCH_5_MINUTES"]=3,l}(),c.LiveInfo=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.episodeId=t.int64();break}case 2:{o.status=t.int32();break}case 3:{o.jump=t.bool();break}case 4:{o.liveTeacherMid=t.int64();break}case 5:{o.showSubscriptionPrebookButton=t.bool();break}case 6:{o.beSubscriptionPrebook=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.pugvanymodel.LiveInfo)return t;let i=new u.bilibili.app.viewunite.pugvanymodel.LiveInfo;switch(t.episodeId!=null&&(r.Long?(i.episodeId=r.Long.fromValue(t.episodeId)).unsigned=!1:typeof t.episodeId=="string"?i.episodeId=parseInt(t.episodeId,10):typeof t.episodeId=="number"?i.episodeId=t.episodeId:typeof t.episodeId=="object"&&(i.episodeId=new r.LongBits(t.episodeId.low>>>0,t.episodeId.high>>>0).toNumber())),t.status){default:if(typeof t.status=="number"){i.status=t.status;break}break;case"LIVE_STATUS_UNSPECIFIED":case 0:i.status=0;break;case"LIVE_STATUS_PREPARE":case 1:i.status=1;break;case"LIVE_STATUS_LIVE":case 2:i.status=2;break;case"LIVE_STATUS_PLAYBACK_GENERATING":case 3:i.status=3;break}return t.jump!=null&&(i.jump=!!t.jump),t.liveTeacherMid!=null&&(r.Long?(i.liveTeacherMid=r.Long.fromValue(t.liveTeacherMid)).unsigned=!1:typeof t.liveTeacherMid=="string"?i.liveTeacherMid=parseInt(t.liveTeacherMid,10):typeof t.liveTeacherMid=="number"?i.liveTeacherMid=t.liveTeacherMid:typeof t.liveTeacherMid=="object"&&(i.liveTeacherMid=new r.LongBits(t.liveTeacherMid.low>>>0,t.liveTeacherMid.high>>>0).toNumber())),t.showSubscriptionPrebookButton!=null&&(i.showSubscriptionPrebookButton=!!t.showSubscriptionPrebookButton),t.beSubscriptionPrebook!=null&&(i.beSubscriptionPrebook=!!t.beSubscriptionPrebook),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.episodeId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.episodeId=i.longs===String?"0":0;if(n.status=i.enums===String?"LIVE_STATUS_UNSPECIFIED":0,n.jump=!1,r.Long){let o=new r.Long(0,0,!1);n.liveTeacherMid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.liveTeacherMid=i.longs===String?"0":0;n.showSubscriptionPrebookButton=!1,n.beSubscriptionPrebook=!1}return t.episodeId!=null&&t.hasOwnProperty("episodeId")&&(typeof t.episodeId=="number"?n.episodeId=i.longs===String?String(t.episodeId):t.episodeId:n.episodeId=i.longs===String?r.Long.prototype.toString.call(t.episodeId):i.longs===Number?new r.LongBits(t.episodeId.low>>>0,t.episodeId.high>>>0).toNumber():t.episodeId),t.status!=null&&t.hasOwnProperty("status")&&(n.status=i.enums===String?u.bilibili.app.viewunite.pugvanymodel.LiveStatus[t.status]===void 0?t.status:u.bilibili.app.viewunite.pugvanymodel.LiveStatus[t.status]:t.status),t.jump!=null&&t.hasOwnProperty("jump")&&(n.jump=t.jump),t.liveTeacherMid!=null&&t.hasOwnProperty("liveTeacherMid")&&(typeof t.liveTeacherMid=="number"?n.liveTeacherMid=i.longs===String?String(t.liveTeacherMid):t.liveTeacherMid:n.liveTeacherMid=i.longs===String?r.Long.prototype.toString.call(t.liveTeacherMid):i.longs===Number?new r.LongBits(t.liveTeacherMid.low>>>0,t.liveTeacherMid.high>>>0).toNumber():t.liveTeacherMid),t.showSubscriptionPrebookButton!=null&&t.hasOwnProperty("showSubscriptionPrebookButton")&&(n.showSubscriptionPrebookButton=t.showSubscriptionPrebookButton),t.beSubscriptionPrebook!=null&&t.hasOwnProperty("beSubscriptionPrebook")&&(n.beSubscriptionPrebook=t.beSubscriptionPrebook),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.pugvanymodel.LiveInfo"},e}(),c.LiveStatus=function(){let e={},l=Object.create(e);return l[e[0]="LIVE_STATUS_UNSPECIFIED"]=0,l[e[1]="LIVE_STATUS_PREPARE"]=1,l[e[2]="LIVE_STATUS_LIVE"]=2,l[e[3]="LIVE_STATUS_PLAYBACK_GENERATING"]=3,l}(),c.OperationArea=function(){function e(l){if(this.buttons=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.buttons&&o.buttons.length||(o.buttons=[]),o.buttons.push(u.bilibili.app.viewunite.pugvanymodel.OperationAreaButton.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.pugvanymodel.OperationArea)return t;let i=new u.bilibili.app.viewunite.pugvanymodel.OperationArea;if(t.buttons){if(!Array.isArray(t.buttons))throw TypeError(".bilibili.app.viewunite.pugvanymodel.OperationArea.buttons: array expected");i.buttons=[];for(let n=0;n>>3){case 1:{o.type=t.int32();break}case 2:{o.text=t.string();break}case 3:{o.disabled=t.bool();break}case 4:{o.link=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.pugvanymodel.OperationAreaButton)return t;let i=new u.bilibili.app.viewunite.pugvanymodel.OperationAreaButton;switch(t.type){default:if(typeof t.type=="number"){i.type=t.type;break}break;case"OPERATION_AREA_BUTTON_TYPE_UNSPECIFIED":case 0:i.type=0;break;case"OPERATION_AREA_BUTTON_TYPE_FAVORITE":case 1:i.type=1;break;case"OPERATION_AREA_BUTTON_TYPE_CONSULT":case 2:i.type=2;break;case"OPERATION_AREA_BUTTON_TYPE_SHARE":case 3:i.type=3;break;case"OPERATION_AREA_BUTTON_TYPE_PURCHASE":case 4:i.type=4;break}return t.text!=null&&(i.text=String(t.text)),t.disabled!=null&&(i.disabled=!!t.disabled),t.link!=null&&(i.link=String(t.link)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.type=i.enums===String?"OPERATION_AREA_BUTTON_TYPE_UNSPECIFIED":0,n.text="",n.disabled=!1,n.link=""),t.type!=null&&t.hasOwnProperty("type")&&(n.type=i.enums===String?u.bilibili.app.viewunite.pugvanymodel.OperationAreaButtonType[t.type]===void 0?t.type:u.bilibili.app.viewunite.pugvanymodel.OperationAreaButtonType[t.type]:t.type),t.text!=null&&t.hasOwnProperty("text")&&(n.text=t.text),t.disabled!=null&&t.hasOwnProperty("disabled")&&(n.disabled=t.disabled),t.link!=null&&t.hasOwnProperty("link")&&(n.link=t.link),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.pugvanymodel.OperationAreaButton"},e}(),c.OperationAreaButtonType=function(){let e={},l=Object.create(e);return l[e[0]="OPERATION_AREA_BUTTON_TYPE_UNSPECIFIED"]=0,l[e[1]="OPERATION_AREA_BUTTON_TYPE_FAVORITE"]=1,l[e[2]="OPERATION_AREA_BUTTON_TYPE_CONSULT"]=2,l[e[3]="OPERATION_AREA_BUTTON_TYPE_SHARE"]=3,l[e[4]="OPERATION_AREA_BUTTON_TYPE_PURCHASE"]=4,l}(),c.AbTest=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){default:t.skipType(a&7);break}}return o},e.fromObject=function(t){return t instanceof u.bilibili.app.viewunite.pugvanymodel.AbTest?t:new u.bilibili.app.viewunite.pugvanymodel.AbTest},e.toObject=function(){return{}},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.pugvanymodel.AbTest"},e}(),c}(),p.ugcanymodel=function(){let c={};return c.ViewUgcAny=function(){function e(l){if(this.pages=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.premiere=u.bilibili.app.viewunite.ugcanymodel.PremiereResource.decode(t,t.uint32());break}case 2:{o.dislike=u.bilibili.app.viewunite.ugcanymodel.Dislike.decode(t,t.uint32());break}case 3:{o.shortLink=t.string();break}case 4:{o.shareSubtitle=t.string();break}case 5:{o.pages&&o.pages.length||(o.pages=[]),o.pages.push(u.bilibili.app.viewunite.common.Page.decode(t,t.uint32()));break}case 6:{o.elecRank=u.bilibili.app.viewunite.ugcanymodel.ElecRank.decode(t,t.uint32());break}case 7:{o.ugcSeasonConf=u.bilibili.app.viewunite.ugcanymodel.UgcSeasonConf.decode(t,t.uint32());break}case 8:{o.aiExtra=u.bilibili.app.viewunite.ugcanymodel.AiExtra.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.ugcanymodel.ViewUgcAny)return t;let i=new u.bilibili.app.viewunite.ugcanymodel.ViewUgcAny;if(t.premiere!=null){if(typeof t.premiere!="object")throw TypeError(".bilibili.app.viewunite.ugcanymodel.ViewUgcAny.premiere: object expected");i.premiere=u.bilibili.app.viewunite.ugcanymodel.PremiereResource.fromObject(t.premiere)}if(t.dislike!=null){if(typeof t.dislike!="object")throw TypeError(".bilibili.app.viewunite.ugcanymodel.ViewUgcAny.dislike: object expected");i.dislike=u.bilibili.app.viewunite.ugcanymodel.Dislike.fromObject(t.dislike)}if(t.shortLink!=null&&(i.shortLink=String(t.shortLink)),t.shareSubtitle!=null&&(i.shareSubtitle=String(t.shareSubtitle)),t.pages){if(!Array.isArray(t.pages))throw TypeError(".bilibili.app.viewunite.ugcanymodel.ViewUgcAny.pages: array expected");i.pages=[];for(let n=0;n>>3){case 1:{o.trackId=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.ugcanymodel.AiExtra)return t;let i=new u.bilibili.app.viewunite.ugcanymodel.AiExtra;return t.trackId!=null&&(i.trackId=String(t.trackId)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.trackId=""),t.trackId!=null&&t.hasOwnProperty("trackId")&&(n.trackId=t.trackId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.ugcanymodel.AiExtra"},e}(),c.UgcSeasonConf=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.seasonUnfold=t.bool();break}case 2:{o.foldTime=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.ugcanymodel.UgcSeasonConf)return t;let i=new u.bilibili.app.viewunite.ugcanymodel.UgcSeasonConf;return t.seasonUnfold!=null&&(i.seasonUnfold=!!t.seasonUnfold),t.foldTime!=null&&(r.Long?(i.foldTime=r.Long.fromValue(t.foldTime)).unsigned=!1:typeof t.foldTime=="string"?i.foldTime=parseInt(t.foldTime,10):typeof t.foldTime=="number"?i.foldTime=t.foldTime:typeof t.foldTime=="object"&&(i.foldTime=new r.LongBits(t.foldTime.low>>>0,t.foldTime.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(n.seasonUnfold=!1,r.Long){let o=new r.Long(0,0,!1);n.foldTime=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.foldTime=i.longs===String?"0":0;return t.seasonUnfold!=null&&t.hasOwnProperty("seasonUnfold")&&(n.seasonUnfold=t.seasonUnfold),t.foldTime!=null&&t.hasOwnProperty("foldTime")&&(typeof t.foldTime=="number"?n.foldTime=i.longs===String?String(t.foldTime):t.foldTime:n.foldTime=i.longs===String?r.Long.prototype.toString.call(t.foldTime):i.longs===Number?new r.LongBits(t.foldTime.low>>>0,t.foldTime.high>>>0).toNumber():t.foldTime),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.ugcanymodel.UgcSeasonConf"},e}(),c.ElecRank=function(){function e(l){if(this.list=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.list&&o.list.length||(o.list=[]),o.list.push(u.bilibili.app.viewunite.ugcanymodel.ElecRankItem.decode(t,t.uint32()));break}case 2:{o.count=t.int64();break}case 3:{o.text=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.ugcanymodel.ElecRank)return t;let i=new u.bilibili.app.viewunite.ugcanymodel.ElecRank;if(t.list){if(!Array.isArray(t.list))throw TypeError(".bilibili.app.viewunite.ugcanymodel.ElecRank.list: array expected");i.list=[];for(let n=0;n>>0,t.count.high>>>0).toNumber())),t.text!=null&&(i.text=String(t.text)),i},e.toObject=function(t,i){i||(i={});let n={};if((i.arrays||i.defaults)&&(n.list=[]),i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.count=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.count=i.longs===String?"0":0;n.text=""}if(t.list&&t.list.length){n.list=[];for(let o=0;o>>0,t.count.high>>>0).toNumber():t.count),t.text!=null&&t.hasOwnProperty("text")&&(n.text=t.text),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.ugcanymodel.ElecRank"},e}(),c.ElecRankItem=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.avatar=t.string();break}case 2:{o.nickname=t.string();break}case 3:{o.message=t.string();break}case 4:{o.mid=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.ugcanymodel.ElecRankItem)return t;let i=new u.bilibili.app.viewunite.ugcanymodel.ElecRankItem;return t.avatar!=null&&(i.avatar=String(t.avatar)),t.nickname!=null&&(i.nickname=String(t.nickname)),t.message!=null&&(i.message=String(t.message)),t.mid!=null&&(r.Long?(i.mid=r.Long.fromValue(t.mid)).unsigned=!1:typeof t.mid=="string"?i.mid=parseInt(t.mid,10):typeof t.mid=="number"?i.mid=t.mid:typeof t.mid=="object"&&(i.mid=new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(n.avatar="",n.nickname="",n.message="",r.Long){let o=new r.Long(0,0,!1);n.mid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mid=i.longs===String?"0":0;return t.avatar!=null&&t.hasOwnProperty("avatar")&&(n.avatar=t.avatar),t.nickname!=null&&t.hasOwnProperty("nickname")&&(n.nickname=t.nickname),t.message!=null&&t.hasOwnProperty("message")&&(n.message=t.message),t.mid!=null&&t.hasOwnProperty("mid")&&(typeof t.mid=="number"?n.mid=i.longs===String?String(t.mid):t.mid:n.mid=i.longs===String?r.Long.prototype.toString.call(t.mid):i.longs===Number?new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber():t.mid),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.ugcanymodel.ElecRankItem"},e}(),c.Dislike=function(){function e(l){if(this.reasons=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.subtitle=t.string();break}case 3:{o.reasons&&o.reasons.length||(o.reasons=[]),o.reasons.push(u.bilibili.app.viewunite.ugcanymodel.DislikeReason.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.ugcanymodel.Dislike)return t;let i=new u.bilibili.app.viewunite.ugcanymodel.Dislike;if(t.title!=null&&(i.title=String(t.title)),t.subtitle!=null&&(i.subtitle=String(t.subtitle)),t.reasons){if(!Array.isArray(t.reasons))throw TypeError(".bilibili.app.viewunite.ugcanymodel.Dislike.reasons: array expected");i.reasons=[];for(let n=0;n>>3){case 1:{o.id=t.int64();break}case 2:{o.mid=t.int64();break}case 3:{o.rid=t.int32();break}case 4:{o.tagId=t.int64();break}case 5:{o.name=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.ugcanymodel.DislikeReason)return t;let i=new u.bilibili.app.viewunite.ugcanymodel.DislikeReason;return t.id!=null&&(r.Long?(i.id=r.Long.fromValue(t.id)).unsigned=!1:typeof t.id=="string"?i.id=parseInt(t.id,10):typeof t.id=="number"?i.id=t.id:typeof t.id=="object"&&(i.id=new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber())),t.mid!=null&&(r.Long?(i.mid=r.Long.fromValue(t.mid)).unsigned=!1:typeof t.mid=="string"?i.mid=parseInt(t.mid,10):typeof t.mid=="number"?i.mid=t.mid:typeof t.mid=="object"&&(i.mid=new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber())),t.rid!=null&&(i.rid=t.rid|0),t.tagId!=null&&(r.Long?(i.tagId=r.Long.fromValue(t.tagId)).unsigned=!1:typeof t.tagId=="string"?i.tagId=parseInt(t.tagId,10):typeof t.tagId=="number"?i.tagId=t.tagId:typeof t.tagId=="object"&&(i.tagId=new r.LongBits(t.tagId.low>>>0,t.tagId.high>>>0).toNumber())),t.name!=null&&(i.name=String(t.name)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.id=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.id=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.mid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mid=i.longs===String?"0":0;if(n.rid=0,r.Long){let o=new r.Long(0,0,!1);n.tagId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.tagId=i.longs===String?"0":0;n.name=""}return t.id!=null&&t.hasOwnProperty("id")&&(typeof t.id=="number"?n.id=i.longs===String?String(t.id):t.id:n.id=i.longs===String?r.Long.prototype.toString.call(t.id):i.longs===Number?new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber():t.id),t.mid!=null&&t.hasOwnProperty("mid")&&(typeof t.mid=="number"?n.mid=i.longs===String?String(t.mid):t.mid:n.mid=i.longs===String?r.Long.prototype.toString.call(t.mid):i.longs===Number?new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber():t.mid),t.rid!=null&&t.hasOwnProperty("rid")&&(n.rid=t.rid),t.tagId!=null&&t.hasOwnProperty("tagId")&&(typeof t.tagId=="number"?n.tagId=i.longs===String?String(t.tagId):t.tagId:n.tagId=i.longs===String?r.Long.prototype.toString.call(t.tagId):i.longs===Number?new r.LongBits(t.tagId.low>>>0,t.tagId.high>>>0).toNumber():t.tagId),t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.ugcanymodel.DislikeReason"},e}(),c.PremiereResource=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.premiere=u.bilibili.app.viewunite.ugcanymodel.Premiere.decode(t,t.uint32());break}case 2:{o.reserve=u.bilibili.app.viewunite.ugcanymodel.PremiereReserve.decode(t,t.uint32());break}case 3:{o.text=u.bilibili.app.viewunite.ugcanymodel.PremiereText.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.ugcanymodel.PremiereResource)return t;let i=new u.bilibili.app.viewunite.ugcanymodel.PremiereResource;if(t.premiere!=null){if(typeof t.premiere!="object")throw TypeError(".bilibili.app.viewunite.ugcanymodel.PremiereResource.premiere: object expected");i.premiere=u.bilibili.app.viewunite.ugcanymodel.Premiere.fromObject(t.premiere)}if(t.reserve!=null){if(typeof t.reserve!="object")throw TypeError(".bilibili.app.viewunite.ugcanymodel.PremiereResource.reserve: object expected");i.reserve=u.bilibili.app.viewunite.ugcanymodel.PremiereReserve.fromObject(t.reserve)}if(t.text!=null){if(typeof t.text!="object")throw TypeError(".bilibili.app.viewunite.ugcanymodel.PremiereResource.text: object expected");i.text=u.bilibili.app.viewunite.ugcanymodel.PremiereText.fromObject(t.text)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.premiere=null,n.reserve=null,n.text=null),t.premiere!=null&&t.hasOwnProperty("premiere")&&(n.premiere=u.bilibili.app.viewunite.ugcanymodel.Premiere.toObject(t.premiere,i)),t.reserve!=null&&t.hasOwnProperty("reserve")&&(n.reserve=u.bilibili.app.viewunite.ugcanymodel.PremiereReserve.toObject(t.reserve,i)),t.text!=null&&t.hasOwnProperty("text")&&(n.text=u.bilibili.app.viewunite.ugcanymodel.PremiereText.toObject(t.text,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.ugcanymodel.PremiereResource"},e}(),c.PremiereReserve=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.reserveId=t.int64();break}case 2:{o.count=t.int64();break}case 3:{o.isFollow=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.ugcanymodel.PremiereReserve)return t;let i=new u.bilibili.app.viewunite.ugcanymodel.PremiereReserve;return t.reserveId!=null&&(r.Long?(i.reserveId=r.Long.fromValue(t.reserveId)).unsigned=!1:typeof t.reserveId=="string"?i.reserveId=parseInt(t.reserveId,10):typeof t.reserveId=="number"?i.reserveId=t.reserveId:typeof t.reserveId=="object"&&(i.reserveId=new r.LongBits(t.reserveId.low>>>0,t.reserveId.high>>>0).toNumber())),t.count!=null&&(r.Long?(i.count=r.Long.fromValue(t.count)).unsigned=!1:typeof t.count=="string"?i.count=parseInt(t.count,10):typeof t.count=="number"?i.count=t.count:typeof t.count=="object"&&(i.count=new r.LongBits(t.count.low>>>0,t.count.high>>>0).toNumber())),t.isFollow!=null&&(i.isFollow=!!t.isFollow),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.reserveId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.reserveId=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.count=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.count=i.longs===String?"0":0;n.isFollow=!1}return t.reserveId!=null&&t.hasOwnProperty("reserveId")&&(typeof t.reserveId=="number"?n.reserveId=i.longs===String?String(t.reserveId):t.reserveId:n.reserveId=i.longs===String?r.Long.prototype.toString.call(t.reserveId):i.longs===Number?new r.LongBits(t.reserveId.low>>>0,t.reserveId.high>>>0).toNumber():t.reserveId),t.count!=null&&t.hasOwnProperty("count")&&(typeof t.count=="number"?n.count=i.longs===String?String(t.count):t.count:n.count=i.longs===String?r.Long.prototype.toString.call(t.count):i.longs===Number?new r.LongBits(t.count.low>>>0,t.count.high>>>0).toNumber():t.count),t.isFollow!=null&&t.hasOwnProperty("isFollow")&&(n.isFollow=t.isFollow),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.ugcanymodel.PremiereReserve"},e}(),c.PremiereText=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.subtitle=t.string();break}case 3:{o.onlineText=t.string();break}case 4:{o.onlineIcon=t.string();break}case 5:{o.onlineIconDark=t.string();break}case 6:{o.introTitle=t.string();break}case 7:{o.introIcon=t.string();break}case 8:{o.guidancePulldown=t.string();break}case 9:{o.guidanceEntry=t.string();break}case 10:{o.introIconNight=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.ugcanymodel.PremiereText)return t;let i=new u.bilibili.app.viewunite.ugcanymodel.PremiereText;return t.title!=null&&(i.title=String(t.title)),t.subtitle!=null&&(i.subtitle=String(t.subtitle)),t.onlineText!=null&&(i.onlineText=String(t.onlineText)),t.onlineIcon!=null&&(i.onlineIcon=String(t.onlineIcon)),t.onlineIconDark!=null&&(i.onlineIconDark=String(t.onlineIconDark)),t.introTitle!=null&&(i.introTitle=String(t.introTitle)),t.introIcon!=null&&(i.introIcon=String(t.introIcon)),t.guidancePulldown!=null&&(i.guidancePulldown=String(t.guidancePulldown)),t.guidanceEntry!=null&&(i.guidanceEntry=String(t.guidanceEntry)),t.introIconNight!=null&&(i.introIconNight=String(t.introIconNight)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.title="",n.subtitle="",n.onlineText="",n.onlineIcon="",n.onlineIconDark="",n.introTitle="",n.introIcon="",n.guidancePulldown="",n.guidanceEntry="",n.introIconNight=""),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.subtitle!=null&&t.hasOwnProperty("subtitle")&&(n.subtitle=t.subtitle),t.onlineText!=null&&t.hasOwnProperty("onlineText")&&(n.onlineText=t.onlineText),t.onlineIcon!=null&&t.hasOwnProperty("onlineIcon")&&(n.onlineIcon=t.onlineIcon),t.onlineIconDark!=null&&t.hasOwnProperty("onlineIconDark")&&(n.onlineIconDark=t.onlineIconDark),t.introTitle!=null&&t.hasOwnProperty("introTitle")&&(n.introTitle=t.introTitle),t.introIcon!=null&&t.hasOwnProperty("introIcon")&&(n.introIcon=t.introIcon),t.guidancePulldown!=null&&t.hasOwnProperty("guidancePulldown")&&(n.guidancePulldown=t.guidancePulldown),t.guidanceEntry!=null&&t.hasOwnProperty("guidanceEntry")&&(n.guidanceEntry=t.guidanceEntry),t.introIconNight!=null&&t.hasOwnProperty("introIconNight")&&(n.introIconNight=t.introIconNight),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.ugcanymodel.PremiereText"},e}(),c.Premiere=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.premiereState=t.int32();break}case 2:{o.startTime=t.int64();break}case 3:{o.serviceTime=t.int64();break}case 4:{o.roomId=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.ugcanymodel.Premiere)return t;let i=new u.bilibili.app.viewunite.ugcanymodel.Premiere;switch(t.premiereState){default:if(typeof t.premiereState=="number"){i.premiereState=t.premiereState;break}break;case"premiere_none":case 0:i.premiereState=0;break;case"premiere_before":case 1:i.premiereState=1;break;case"premiere_in":case 2:i.premiereState=2;break;case"premiere_after":case 3:i.premiereState=3;break}return t.startTime!=null&&(r.Long?(i.startTime=r.Long.fromValue(t.startTime)).unsigned=!1:typeof t.startTime=="string"?i.startTime=parseInt(t.startTime,10):typeof t.startTime=="number"?i.startTime=t.startTime:typeof t.startTime=="object"&&(i.startTime=new r.LongBits(t.startTime.low>>>0,t.startTime.high>>>0).toNumber())),t.serviceTime!=null&&(r.Long?(i.serviceTime=r.Long.fromValue(t.serviceTime)).unsigned=!1:typeof t.serviceTime=="string"?i.serviceTime=parseInt(t.serviceTime,10):typeof t.serviceTime=="number"?i.serviceTime=t.serviceTime:typeof t.serviceTime=="object"&&(i.serviceTime=new r.LongBits(t.serviceTime.low>>>0,t.serviceTime.high>>>0).toNumber())),t.roomId!=null&&(r.Long?(i.roomId=r.Long.fromValue(t.roomId)).unsigned=!1:typeof t.roomId=="string"?i.roomId=parseInt(t.roomId,10):typeof t.roomId=="number"?i.roomId=t.roomId:typeof t.roomId=="object"&&(i.roomId=new r.LongBits(t.roomId.low>>>0,t.roomId.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.premiereState=i.enums===String?"premiere_none":0,r.Long){let o=new r.Long(0,0,!1);n.startTime=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.startTime=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.serviceTime=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.serviceTime=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.roomId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.roomId=i.longs===String?"0":0}return t.premiereState!=null&&t.hasOwnProperty("premiereState")&&(n.premiereState=i.enums===String?u.bilibili.app.viewunite.ugcanymodel.PremiereState[t.premiereState]===void 0?t.premiereState:u.bilibili.app.viewunite.ugcanymodel.PremiereState[t.premiereState]:t.premiereState),t.startTime!=null&&t.hasOwnProperty("startTime")&&(typeof t.startTime=="number"?n.startTime=i.longs===String?String(t.startTime):t.startTime:n.startTime=i.longs===String?r.Long.prototype.toString.call(t.startTime):i.longs===Number?new r.LongBits(t.startTime.low>>>0,t.startTime.high>>>0).toNumber():t.startTime),t.serviceTime!=null&&t.hasOwnProperty("serviceTime")&&(typeof t.serviceTime=="number"?n.serviceTime=i.longs===String?String(t.serviceTime):t.serviceTime:n.serviceTime=i.longs===String?r.Long.prototype.toString.call(t.serviceTime):i.longs===Number?new r.LongBits(t.serviceTime.low>>>0,t.serviceTime.high>>>0).toNumber():t.serviceTime),t.roomId!=null&&t.hasOwnProperty("roomId")&&(typeof t.roomId=="number"?n.roomId=i.longs===String?String(t.roomId):t.roomId:n.roomId=i.longs===String?r.Long.prototype.toString.call(t.roomId):i.longs===Number?new r.LongBits(t.roomId.low>>>0,t.roomId.high>>>0).toNumber():t.roomId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.ugcanymodel.Premiere"},e}(),c.PremiereState=function(){let e={},l=Object.create(e);return l[e[0]="premiere_none"]=0,l[e[1]="premiere_before"]=1,l[e[2]="premiere_in"]=2,l[e[3]="premiere_after"]=3,l}(),c}(),p.v1=function(){let c={};return c.View=function(){function e(l,t,i){b.rpc.Service.call(this,l,t,i)}return(e.prototype=Object.create(b.rpc.Service.prototype)).constructor=e,e.create=function(t,i,n){return new this(t,i,n)},Object.defineProperty(e.prototype.view=function l(t,i){return this.rpcCall(l,u.bilibili.app.viewunite.v1.ViewReq,u.bilibili.app.viewunite.v1.ViewReply,t,i)},"name",{value:"View"}),Object.defineProperty(e.prototype.arcRefresh=function l(t,i){return this.rpcCall(l,u.bilibili.app.viewunite.v1.ArcRefreshReq,u.bilibili.app.viewunite.v1.ArcRefreshReply,t,i)},"name",{value:"ArcRefresh"}),Object.defineProperty(e.prototype.viewProgress=function l(t,i){return this.rpcCall(l,u.bilibili.app.viewunite.v1.ViewProgressReq,u.bilibili.app.viewunite.v1.ViewProgressReply,t,i)},"name",{value:"ViewProgress"}),Object.defineProperty(e.prototype.relatesFeed=function l(t,i){return this.rpcCall(l,u.bilibili.app.viewunite.v1.RelatesFeedReq,u.bilibili.app.viewunite.v1.RelatesFeedReply,t,i)},"name",{value:"RelatesFeed"}),e}(),c.RelatesFeedReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.aid=t.int64();break}case 2:{o.bvid=t.string();break}case 3:{o.from=t.string();break}case 4:{o.spmid=t.string();break}case 5:{o.fromSpmid=t.string();break}case 6:{o.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.decode(t,t.uint32());break}case 7:{o.pagination=u.bilibili.pagination.Pagination.decode(t,t.uint32());break}case 8:{o.sessionId=t.string();break}case 9:{o.autoPlay=t.int64();break}case 10:{o.fromTrackId=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.v1.RelatesFeedReq)return t;let i=new u.bilibili.app.viewunite.v1.RelatesFeedReq;if(t.aid!=null&&(r.Long?(i.aid=r.Long.fromValue(t.aid)).unsigned=!1:typeof t.aid=="string"?i.aid=parseInt(t.aid,10):typeof t.aid=="number"?i.aid=t.aid:typeof t.aid=="object"&&(i.aid=new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber())),t.bvid!=null&&(i.bvid=String(t.bvid)),t.from!=null&&(i.from=String(t.from)),t.spmid!=null&&(i.spmid=String(t.spmid)),t.fromSpmid!=null&&(i.fromSpmid=String(t.fromSpmid)),t.playerArgs!=null){if(typeof t.playerArgs!="object")throw TypeError(".bilibili.app.viewunite.v1.RelatesFeedReq.playerArgs: object expected");i.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.fromObject(t.playerArgs)}if(t.pagination!=null){if(typeof t.pagination!="object")throw TypeError(".bilibili.app.viewunite.v1.RelatesFeedReq.pagination: object expected");i.pagination=u.bilibili.pagination.Pagination.fromObject(t.pagination)}return t.sessionId!=null&&(i.sessionId=String(t.sessionId)),t.autoPlay!=null&&(r.Long?(i.autoPlay=r.Long.fromValue(t.autoPlay)).unsigned=!1:typeof t.autoPlay=="string"?i.autoPlay=parseInt(t.autoPlay,10):typeof t.autoPlay=="number"?i.autoPlay=t.autoPlay:typeof t.autoPlay=="object"&&(i.autoPlay=new r.LongBits(t.autoPlay.low>>>0,t.autoPlay.high>>>0).toNumber())),t.fromTrackId!=null&&(i.fromTrackId=String(t.fromTrackId)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.aid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.aid=i.longs===String?"0":0;if(n.bvid="",n.from="",n.spmid="",n.fromSpmid="",n.playerArgs=null,n.pagination=null,n.sessionId="",r.Long){let o=new r.Long(0,0,!1);n.autoPlay=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.autoPlay=i.longs===String?"0":0;n.fromTrackId=""}return t.aid!=null&&t.hasOwnProperty("aid")&&(typeof t.aid=="number"?n.aid=i.longs===String?String(t.aid):t.aid:n.aid=i.longs===String?r.Long.prototype.toString.call(t.aid):i.longs===Number?new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber():t.aid),t.bvid!=null&&t.hasOwnProperty("bvid")&&(n.bvid=t.bvid),t.from!=null&&t.hasOwnProperty("from")&&(n.from=t.from),t.spmid!=null&&t.hasOwnProperty("spmid")&&(n.spmid=t.spmid),t.fromSpmid!=null&&t.hasOwnProperty("fromSpmid")&&(n.fromSpmid=t.fromSpmid),t.playerArgs!=null&&t.hasOwnProperty("playerArgs")&&(n.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.toObject(t.playerArgs,i)),t.pagination!=null&&t.hasOwnProperty("pagination")&&(n.pagination=u.bilibili.pagination.Pagination.toObject(t.pagination,i)),t.sessionId!=null&&t.hasOwnProperty("sessionId")&&(n.sessionId=t.sessionId),t.autoPlay!=null&&t.hasOwnProperty("autoPlay")&&(typeof t.autoPlay=="number"?n.autoPlay=i.longs===String?String(t.autoPlay):t.autoPlay:n.autoPlay=i.longs===String?r.Long.prototype.toString.call(t.autoPlay):i.longs===Number?new r.LongBits(t.autoPlay.low>>>0,t.autoPlay.high>>>0).toNumber():t.autoPlay),t.fromTrackId!=null&&t.hasOwnProperty("fromTrackId")&&(n.fromTrackId=t.fromTrackId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.v1.RelatesFeedReq"},e}(),c.RelatesFeedReply=function(){function e(l){if(this.relates=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.relates&&o.relates.length||(o.relates=[]),o.relates.push(u.bilibili.app.viewunite.common.RelateCard.decode(t,t.uint32()));break}case 2:{o.pagination=u.bilibili.pagination.Pagination.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.v1.RelatesFeedReply)return t;let i=new u.bilibili.app.viewunite.v1.RelatesFeedReply;if(t.relates){if(!Array.isArray(t.relates))throw TypeError(".bilibili.app.viewunite.v1.RelatesFeedReply.relates: array expected");i.relates=[];for(let n=0;n>>3){case 1:{o.aid=t.int64();break}case 2:{o.bvid=t.string();break}case 3:{o.type=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.v1.ArcRefreshReq)return t;let i=new u.bilibili.app.viewunite.v1.ArcRefreshReq;switch(t.aid!=null&&(r.Long?(i.aid=r.Long.fromValue(t.aid)).unsigned=!1:typeof t.aid=="string"?i.aid=parseInt(t.aid,10):typeof t.aid=="number"?i.aid=t.aid:typeof t.aid=="object"&&(i.aid=new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber())),t.bvid!=null&&(i.bvid=String(t.bvid)),t.type){default:if(typeof t.type=="number"){i.type=t.type;break}break;case"UGC":case 0:i.type=0;break;case"OGV":case 1:i.type=1;break;case"PUGV":case 2:i.type=2;break}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.aid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.aid=i.longs===String?"0":0;n.bvid="",n.type=i.enums===String?"UGC":0}return t.aid!=null&&t.hasOwnProperty("aid")&&(typeof t.aid=="number"?n.aid=i.longs===String?String(t.aid):t.aid:n.aid=i.longs===String?r.Long.prototype.toString.call(t.aid):i.longs===Number?new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber():t.aid),t.bvid!=null&&t.hasOwnProperty("bvid")&&(n.bvid=t.bvid),t.type!=null&&t.hasOwnProperty("type")&&(n.type=i.enums===String?u.bilibili.app.viewunite.v1.UnionType[t.type]===void 0?t.type:u.bilibili.app.viewunite.v1.UnionType[t.type]:t.type),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.v1.ArcRefreshReq"},e}(),c.ArcRefreshReply=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.stat=u.bilibili.app.viewunite.common.Stat.decode(t,t.uint32());break}case 2:{o.reqUser=u.bilibili.app.viewunite.v1.SimpleReqUser.decode(t,t.uint32());break}case 3:{o.arc=u.bilibili.app.viewunite.v1.SimpleArc.decode(t,t.uint32());break}case 4:{o.online=u.bilibili.app.viewunite.v1.Online.decode(t,t.uint32());break}case 5:{o.likeConfig=u.bilibili.app.viewunite.v1.LikeConfig.decode(t,t.uint32());break}case 6:{o.owner=u.bilibili.app.viewunite.v1.SimpleOwner.decode(t,t.uint32());break}case 7:{o.replyStyle=u.bilibili.app.viewunite.v1.ReplyStyle.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.v1.ArcRefreshReply)return t;let i=new u.bilibili.app.viewunite.v1.ArcRefreshReply;if(t.stat!=null){if(typeof t.stat!="object")throw TypeError(".bilibili.app.viewunite.v1.ArcRefreshReply.stat: object expected");i.stat=u.bilibili.app.viewunite.common.Stat.fromObject(t.stat)}if(t.reqUser!=null){if(typeof t.reqUser!="object")throw TypeError(".bilibili.app.viewunite.v1.ArcRefreshReply.reqUser: object expected");i.reqUser=u.bilibili.app.viewunite.v1.SimpleReqUser.fromObject(t.reqUser)}if(t.arc!=null){if(typeof t.arc!="object")throw TypeError(".bilibili.app.viewunite.v1.ArcRefreshReply.arc: object expected");i.arc=u.bilibili.app.viewunite.v1.SimpleArc.fromObject(t.arc)}if(t.online!=null){if(typeof t.online!="object")throw TypeError(".bilibili.app.viewunite.v1.ArcRefreshReply.online: object expected");i.online=u.bilibili.app.viewunite.v1.Online.fromObject(t.online)}if(t.likeConfig!=null){if(typeof t.likeConfig!="object")throw TypeError(".bilibili.app.viewunite.v1.ArcRefreshReply.likeConfig: object expected");i.likeConfig=u.bilibili.app.viewunite.v1.LikeConfig.fromObject(t.likeConfig)}if(t.owner!=null){if(typeof t.owner!="object")throw TypeError(".bilibili.app.viewunite.v1.ArcRefreshReply.owner: object expected");i.owner=u.bilibili.app.viewunite.v1.SimpleOwner.fromObject(t.owner)}if(t.replyStyle!=null){if(typeof t.replyStyle!="object")throw TypeError(".bilibili.app.viewunite.v1.ArcRefreshReply.replyStyle: object expected");i.replyStyle=u.bilibili.app.viewunite.v1.ReplyStyle.fromObject(t.replyStyle)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.stat=null,n.reqUser=null,n.arc=null,n.online=null,n.likeConfig=null,n.owner=null,n.replyStyle=null),t.stat!=null&&t.hasOwnProperty("stat")&&(n.stat=u.bilibili.app.viewunite.common.Stat.toObject(t.stat,i)),t.reqUser!=null&&t.hasOwnProperty("reqUser")&&(n.reqUser=u.bilibili.app.viewunite.v1.SimpleReqUser.toObject(t.reqUser,i)),t.arc!=null&&t.hasOwnProperty("arc")&&(n.arc=u.bilibili.app.viewunite.v1.SimpleArc.toObject(t.arc,i)),t.online!=null&&t.hasOwnProperty("online")&&(n.online=u.bilibili.app.viewunite.v1.Online.toObject(t.online,i)),t.likeConfig!=null&&t.hasOwnProperty("likeConfig")&&(n.likeConfig=u.bilibili.app.viewunite.v1.LikeConfig.toObject(t.likeConfig,i)),t.owner!=null&&t.hasOwnProperty("owner")&&(n.owner=u.bilibili.app.viewunite.v1.SimpleOwner.toObject(t.owner,i)),t.replyStyle!=null&&t.hasOwnProperty("replyStyle")&&(n.replyStyle=u.bilibili.app.viewunite.v1.ReplyStyle.toObject(t.replyStyle,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.v1.ArcRefreshReply"},e}(),c.SimpleOwner=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.attentionRelation=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.v1.SimpleOwner)return t;let i=new u.bilibili.app.viewunite.v1.SimpleOwner;switch(t.attentionRelation){default:if(typeof t.attentionRelation=="number"){i.attentionRelation=t.attentionRelation;break}break;case"ARS_NONE":case 0:i.attentionRelation=0;break;case"ARS_N0RELATION":case 1:i.attentionRelation=1;break;case"ARS_FOLLOWHIM":case 2:i.attentionRelation=2;break;case"ARS_FOLLOWME":case 3:i.attentionRelation=3;break;case"ARS_BUDDY":case 4:i.attentionRelation=4;break;case"ARS_SPECIAL":case 5:i.attentionRelation=5;break;case"ARS_CANCELBLOCK":case 6:i.attentionRelation=6;break}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.attentionRelation=i.enums===String?"ARS_NONE":0),t.attentionRelation!=null&&t.hasOwnProperty("attentionRelation")&&(n.attentionRelation=i.enums===String?u.bilibili.app.viewunite.common.AttentionRelationStatus[t.attentionRelation]===void 0?t.attentionRelation:u.bilibili.app.viewunite.common.AttentionRelationStatus[t.attentionRelation]:t.attentionRelation),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.v1.SimpleOwner"},e}(),c.LikeConfig=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.tripleLike=u.bilibili.app.viewunite.common.UpLikeImg.decode(t,t.uint32());break}case 2:{o.likeAnimation=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.v1.LikeConfig)return t;let i=new u.bilibili.app.viewunite.v1.LikeConfig;if(t.tripleLike!=null){if(typeof t.tripleLike!="object")throw TypeError(".bilibili.app.viewunite.v1.LikeConfig.tripleLike: object expected");i.tripleLike=u.bilibili.app.viewunite.common.UpLikeImg.fromObject(t.tripleLike)}return t.likeAnimation!=null&&(i.likeAnimation=String(t.likeAnimation)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.tripleLike=null,n.likeAnimation=""),t.tripleLike!=null&&t.hasOwnProperty("tripleLike")&&(n.tripleLike=u.bilibili.app.viewunite.common.UpLikeImg.toObject(t.tripleLike,i)),t.likeAnimation!=null&&t.hasOwnProperty("likeAnimation")&&(n.likeAnimation=t.likeAnimation),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.v1.LikeConfig"},e}(),c.SimpleArc=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.copyright=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.v1.SimpleArc)return t;let i=new u.bilibili.app.viewunite.v1.SimpleArc;return t.copyright!=null&&(i.copyright=t.copyright|0),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.copyright=0),t.copyright!=null&&t.hasOwnProperty("copyright")&&(n.copyright=t.copyright),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.v1.SimpleArc"},e}(),c.SimpleReqUser=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.favorite=t.int32();break}case 2:{o.like=t.int32();break}case 3:{o.coin=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.v1.SimpleReqUser)return t;let i=new u.bilibili.app.viewunite.v1.SimpleReqUser;return t.favorite!=null&&(i.favorite=t.favorite|0),t.like!=null&&(i.like=t.like|0),t.coin!=null&&(i.coin=t.coin|0),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.favorite=0,n.like=0,n.coin=0),t.favorite!=null&&t.hasOwnProperty("favorite")&&(n.favorite=t.favorite),t.like!=null&&t.hasOwnProperty("like")&&(n.like=t.like),t.coin!=null&&t.hasOwnProperty("coin")&&(n.coin=t.coin),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.v1.SimpleReqUser"},e}(),c.ViewReq=function(){function e(l){if(this.extraContent={},l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.aid=t.int64();break}case 2:{o.bvid=t.string();break}case 3:{o.from=t.string();break}case 4:{o.spmid=t.string();break}case 5:{o.fromSpmid=t.string();break}case 6:{o.sessionId=t.string();break}case 7:{o.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.decode(t,t.uint32());break}case 8:{o.trackId=t.string();break}case 9:{o.extraContent===r.emptyObject&&(o.extraContent={});let v=t.uint32()+t.pos;for(a="",y="";t.pos>>3){case 1:a=t.string();break;case 2:y=t.string();break;default:t.skipType(g&7);break}}o.extraContent[a]=y;break}case 10:{o.playMode=t.string();break}case 11:{o.relate=u.bilibili.app.viewunite.v1.Relate.decode(t,t.uint32());break}case 12:{o.bizExtra=t.string();break}case 13:{o.adExtra=t.string();break}case 14:{o.fromScene=t.string();break}default:t.skipType(s&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.v1.ViewReq)return t;let i=new u.bilibili.app.viewunite.v1.ViewReq;if(t.aid!=null&&(r.Long?(i.aid=r.Long.fromValue(t.aid)).unsigned=!1:typeof t.aid=="string"?i.aid=parseInt(t.aid,10):typeof t.aid=="number"?i.aid=t.aid:typeof t.aid=="object"&&(i.aid=new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber())),t.bvid!=null&&(i.bvid=String(t.bvid)),t.from!=null&&(i.from=String(t.from)),t.spmid!=null&&(i.spmid=String(t.spmid)),t.fromSpmid!=null&&(i.fromSpmid=String(t.fromSpmid)),t.sessionId!=null&&(i.sessionId=String(t.sessionId)),t.playerArgs!=null){if(typeof t.playerArgs!="object")throw TypeError(".bilibili.app.viewunite.v1.ViewReq.playerArgs: object expected");i.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.fromObject(t.playerArgs)}if(t.trackId!=null&&(i.trackId=String(t.trackId)),t.extraContent){if(typeof t.extraContent!="object")throw TypeError(".bilibili.app.viewunite.v1.ViewReq.extraContent: object expected");i.extraContent={};for(let n=Object.keys(t.extraContent),o=0;o>>0,t.aid.high>>>0).toNumber():t.aid),t.bvid!=null&&t.hasOwnProperty("bvid")&&(n.bvid=t.bvid),t.from!=null&&t.hasOwnProperty("from")&&(n.from=t.from),t.spmid!=null&&t.hasOwnProperty("spmid")&&(n.spmid=t.spmid),t.fromSpmid!=null&&t.hasOwnProperty("fromSpmid")&&(n.fromSpmid=t.fromSpmid),t.sessionId!=null&&t.hasOwnProperty("sessionId")&&(n.sessionId=t.sessionId),t.playerArgs!=null&&t.hasOwnProperty("playerArgs")&&(n.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.toObject(t.playerArgs,i)),t.trackId!=null&&t.hasOwnProperty("trackId")&&(n.trackId=t.trackId);let o;if(t.extraContent&&(o=Object.keys(t.extraContent)).length){n.extraContent={};for(let a=0;a>>3){case 1:{o.deviceType=t.int64();break}case 2:{o.pagination=u.bilibili.pagination.Pagination.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.v1.Relate)return t;let i=new u.bilibili.app.viewunite.v1.Relate;if(t.deviceType!=null&&(r.Long?(i.deviceType=r.Long.fromValue(t.deviceType)).unsigned=!1:typeof t.deviceType=="string"?i.deviceType=parseInt(t.deviceType,10):typeof t.deviceType=="number"?i.deviceType=t.deviceType:typeof t.deviceType=="object"&&(i.deviceType=new r.LongBits(t.deviceType.low>>>0,t.deviceType.high>>>0).toNumber())),t.pagination!=null){if(typeof t.pagination!="object")throw TypeError(".bilibili.app.viewunite.v1.Relate.pagination: object expected");i.pagination=u.bilibili.pagination.Pagination.fromObject(t.pagination)}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.deviceType=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.deviceType=i.longs===String?"0":0;n.pagination=null}return t.deviceType!=null&&t.hasOwnProperty("deviceType")&&(typeof t.deviceType=="number"?n.deviceType=i.longs===String?String(t.deviceType):t.deviceType:n.deviceType=i.longs===String?r.Long.prototype.toString.call(t.deviceType):i.longs===Number?new r.LongBits(t.deviceType.low>>>0,t.deviceType.high>>>0).toNumber():t.deviceType),t.pagination!=null&&t.hasOwnProperty("pagination")&&(n.pagination=u.bilibili.pagination.Pagination.toObject(t.pagination,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.v1.Relate"},e}(),c.ViewReply=function(){function e(l){if(this.report={},l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.viewBase=u.bilibili.app.viewunite.v1.ViewBase.decode(t,t.uint32());break}case 2:{o.arc=u.bilibili.app.viewunite.v1.Arc.decode(t,t.uint32());break}case 3:{o.reqUser=u.bilibili.app.viewunite.v1.ReqUser.decode(t,t.uint32());break}case 4:{o.owner=u.bilibili.app.viewunite.common.Owner.decode(t,t.uint32());break}case 5:{o.tab=u.bilibili.app.viewunite.v1.Tab.decode(t,t.uint32());break}case 6:{o.supplement=u.google.protobuf.Any.decode(t,t.uint32());break}case 7:{o.cm=u.bilibili.app.viewunite.v1.CM.decode(t,t.uint32());break}case 8:{o.ecode=t.int32();break}case 9:{o.ecodeConfig=u.bilibili.app.viewunite.v1.ECodeConfig.decode(t,t.uint32());break}case 10:{o.report===r.emptyObject&&(o.report={});let v=t.uint32()+t.pos;for(a="",y="";t.pos>>3){case 1:a=t.string();break;case 2:y=t.string();break;default:t.skipType(g&7);break}}o.report[a]=y;break}default:t.skipType(s&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.v1.ViewReply)return t;let i=new u.bilibili.app.viewunite.v1.ViewReply;if(t.viewBase!=null){if(typeof t.viewBase!="object")throw TypeError(".bilibili.app.viewunite.v1.ViewReply.viewBase: object expected");i.viewBase=u.bilibili.app.viewunite.v1.ViewBase.fromObject(t.viewBase)}if(t.arc!=null){if(typeof t.arc!="object")throw TypeError(".bilibili.app.viewunite.v1.ViewReply.arc: object expected");i.arc=u.bilibili.app.viewunite.v1.Arc.fromObject(t.arc)}if(t.reqUser!=null){if(typeof t.reqUser!="object")throw TypeError(".bilibili.app.viewunite.v1.ViewReply.reqUser: object expected");i.reqUser=u.bilibili.app.viewunite.v1.ReqUser.fromObject(t.reqUser)}if(t.owner!=null){if(typeof t.owner!="object")throw TypeError(".bilibili.app.viewunite.v1.ViewReply.owner: object expected");i.owner=u.bilibili.app.viewunite.common.Owner.fromObject(t.owner)}if(t.tab!=null){if(typeof t.tab!="object")throw TypeError(".bilibili.app.viewunite.v1.ViewReply.tab: object expected");i.tab=u.bilibili.app.viewunite.v1.Tab.fromObject(t.tab)}if(t.supplement!=null){if(typeof t.supplement!="object")throw TypeError(".bilibili.app.viewunite.v1.ViewReply.supplement: object expected");i.supplement=u.google.protobuf.Any.fromObject(t.supplement)}if(t.cm!=null){if(typeof t.cm!="object")throw TypeError(".bilibili.app.viewunite.v1.ViewReply.cm: object expected");i.cm=u.bilibili.app.viewunite.v1.CM.fromObject(t.cm)}switch(t.ecode){default:if(typeof t.ecode=="number"){i.ecode=t.ecode;break}break;case"CODE_DEFAULT":case 0:i.ecode=0;break;case"CODE_404":case 1:i.ecode=1;break;case"CODE_TEENAGER":case 78301:i.ecode=78301;break}if(t.ecodeConfig!=null){if(typeof t.ecodeConfig!="object")throw TypeError(".bilibili.app.viewunite.v1.ViewReply.ecodeConfig: object expected");i.ecodeConfig=u.bilibili.app.viewunite.v1.ECodeConfig.fromObject(t.ecodeConfig)}if(t.report){if(typeof t.report!="object")throw TypeError(".bilibili.app.viewunite.v1.ViewReply.report: object expected");i.report={};for(let n=Object.keys(t.report),o=0;o>>3){case 1:{o.redirectUrl=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.v1.ECodeConfig)return t;let i=new u.bilibili.app.viewunite.v1.ECodeConfig;return t.redirectUrl!=null&&(i.redirectUrl=String(t.redirectUrl)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.redirectUrl=""),t.redirectUrl!=null&&t.hasOwnProperty("redirectUrl")&&(n.redirectUrl=t.redirectUrl),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.v1.ECodeConfig"},e}(),c.ECode=function(){let e={},l=Object.create(e);return l[e[0]="CODE_DEFAULT"]=0,l[e[1]="CODE_404"]=1,l[e[78301]="CODE_TEENAGER"]=78301,l}(),c.CM=function(){function e(l){if(this.sourceContent=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.cmUnderPlayer=u.google.protobuf.Any.decode(t,t.uint32());break}case 2:{o.adsControl=u.google.protobuf.Any.decode(t,t.uint32());break}case 3:{o.sourceContent&&o.sourceContent.length||(o.sourceContent=[]),o.sourceContent.push(u.google.protobuf.Any.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.v1.CM)return t;let i=new u.bilibili.app.viewunite.v1.CM;if(t.cmUnderPlayer!=null){if(typeof t.cmUnderPlayer!="object")throw TypeError(".bilibili.app.viewunite.v1.CM.cmUnderPlayer: object expected");i.cmUnderPlayer=u.google.protobuf.Any.fromObject(t.cmUnderPlayer)}if(t.adsControl!=null){if(typeof t.adsControl!="object")throw TypeError(".bilibili.app.viewunite.v1.CM.adsControl: object expected");i.adsControl=u.google.protobuf.Any.fromObject(t.adsControl)}if(t.sourceContent){if(!Array.isArray(t.sourceContent))throw TypeError(".bilibili.app.viewunite.v1.CM.sourceContent: array expected");i.sourceContent=[];for(let n=0;n>>3){case 1:{o.tabModule&&o.tabModule.length||(o.tabModule=[]),o.tabModule.push(u.bilibili.app.viewunite.v1.TabModule.decode(t,t.uint32()));break}case 2:{o.tabBg=t.string();break}case 3:{o.danmakuEntrance=u.bilibili.app.viewunite.v1.TabControl.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.v1.Tab)return t;let i=new u.bilibili.app.viewunite.v1.Tab;if(t.tabModule){if(!Array.isArray(t.tabModule))throw TypeError(".bilibili.app.viewunite.v1.Tab.tabModule: array expected");i.tabModule=[];for(let n=0;n>>3){case 1:{o.limit=t.bool();break}case 2:{o.disable=t.bool();break}case 3:{o.disableClickTip=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.v1.TabControl)return t;let i=new u.bilibili.app.viewunite.v1.TabControl;return t.limit!=null&&(i.limit=!!t.limit),t.disable!=null&&(i.disable=!!t.disable),t.disableClickTip!=null&&(i.disableClickTip=String(t.disableClickTip)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.limit=!1,n.disable=!1,n.disableClickTip=""),t.limit!=null&&t.hasOwnProperty("limit")&&(n.limit=t.limit),t.disable!=null&&t.hasOwnProperty("disable")&&(n.disable=t.disable),t.disableClickTip!=null&&t.hasOwnProperty("disableClickTip")&&(n.disableClickTip=t.disableClickTip),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.v1.TabControl"},e}(),c.ReqUser=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.favorite=t.int32();break}case 2:{o.like=t.int32();break}case 3:{o.coin=t.int32();break}case 4:{o.favSeason=t.int32();break}case 5:{o.follow=t.int32();break}case 6:{o.dislike=t.int32();break}case 7:{o.elecPlusBtn=u.bilibili.app.viewunite.v1.Button.decode(t,t.uint32());break}case 8:{o.chargingPlus=u.bilibili.app.viewunite.v1.ChargingPlus.decode(t,t.uint32());break}case 9:{o.extra=u.bilibili.app.viewunite.v1.ReqUserExtra.decode(t,t.uint32());break}case 10:{o.paid=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.v1.ReqUser)return t;let i=new u.bilibili.app.viewunite.v1.ReqUser;if(t.favorite!=null&&(i.favorite=t.favorite|0),t.like!=null&&(i.like=t.like|0),t.coin!=null&&(i.coin=t.coin|0),t.favSeason!=null&&(i.favSeason=t.favSeason|0),t.follow!=null&&(i.follow=t.follow|0),t.dislike!=null&&(i.dislike=t.dislike|0),t.elecPlusBtn!=null){if(typeof t.elecPlusBtn!="object")throw TypeError(".bilibili.app.viewunite.v1.ReqUser.elecPlusBtn: object expected");i.elecPlusBtn=u.bilibili.app.viewunite.v1.Button.fromObject(t.elecPlusBtn)}if(t.chargingPlus!=null){if(typeof t.chargingPlus!="object")throw TypeError(".bilibili.app.viewunite.v1.ReqUser.chargingPlus: object expected");i.chargingPlus=u.bilibili.app.viewunite.v1.ChargingPlus.fromObject(t.chargingPlus)}if(t.extra!=null){if(typeof t.extra!="object")throw TypeError(".bilibili.app.viewunite.v1.ReqUser.extra: object expected");i.extra=u.bilibili.app.viewunite.v1.ReqUserExtra.fromObject(t.extra)}return t.paid!=null&&(i.paid=t.paid|0),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.favorite=0,n.like=0,n.coin=0,n.favSeason=0,n.follow=0,n.dislike=0,n.elecPlusBtn=null,n.chargingPlus=null,n.extra=null,n.paid=0),t.favorite!=null&&t.hasOwnProperty("favorite")&&(n.favorite=t.favorite),t.like!=null&&t.hasOwnProperty("like")&&(n.like=t.like),t.coin!=null&&t.hasOwnProperty("coin")&&(n.coin=t.coin),t.favSeason!=null&&t.hasOwnProperty("favSeason")&&(n.favSeason=t.favSeason),t.follow!=null&&t.hasOwnProperty("follow")&&(n.follow=t.follow),t.dislike!=null&&t.hasOwnProperty("dislike")&&(n.dislike=t.dislike),t.elecPlusBtn!=null&&t.hasOwnProperty("elecPlusBtn")&&(n.elecPlusBtn=u.bilibili.app.viewunite.v1.Button.toObject(t.elecPlusBtn,i)),t.chargingPlus!=null&&t.hasOwnProperty("chargingPlus")&&(n.chargingPlus=u.bilibili.app.viewunite.v1.ChargingPlus.toObject(t.chargingPlus,i)),t.extra!=null&&t.hasOwnProperty("extra")&&(n.extra=u.bilibili.app.viewunite.v1.ReqUserExtra.toObject(t.extra,i)),t.paid!=null&&t.hasOwnProperty("paid")&&(n.paid=t.paid),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.v1.ReqUser"},e}(),c.ReqUserExtra=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.userFlagNew=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.v1.ReqUserExtra)return t;let i=new u.bilibili.app.viewunite.v1.ReqUserExtra;return t.userFlagNew!=null&&(i.userFlagNew=!!t.userFlagNew),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.userFlagNew=!1),t.userFlagNew!=null&&t.hasOwnProperty("userFlagNew")&&(n.userFlagNew=t.userFlagNew),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.v1.ReqUserExtra"},e}(),c.ChargingPlus=function(){function e(l){if(this.playToast=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.pass=t.bool();break}case 2:{o.playToast&&o.playToast.length||(o.playToast=[]),o.playToast.push(u.bilibili.app.viewunite.v1.PlayToast.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.v1.ChargingPlus)return t;let i=new u.bilibili.app.viewunite.v1.ChargingPlus;if(t.pass!=null&&(i.pass=!!t.pass),t.playToast){if(!Array.isArray(t.playToast))throw TypeError(".bilibili.app.viewunite.v1.ChargingPlus.playToast: array expected");i.playToast=[];for(let n=0;n>>3){case 1:{o.business=t.int32();break}case 2:{o.iconUrl=t.string();break}case 3:{o.text=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.v1.PlayToast)return t;let i=new u.bilibili.app.viewunite.v1.PlayToast;switch(t.business){default:if(typeof t.business=="number"){i.business=t.business;break}break;case"PLAYTOAST_UNKNOWN":case 0:i.business=0;break;case"PLAYTOAST_CHARGINGPLUS":case 1:i.business=1;break}return t.iconUrl!=null&&(i.iconUrl=String(t.iconUrl)),t.text!=null&&(i.text=String(t.text)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.business=i.enums===String?"PLAYTOAST_UNKNOWN":0,n.iconUrl="",n.text=""),t.business!=null&&t.hasOwnProperty("business")&&(n.business=i.enums===String?u.bilibili.app.viewunite.v1.PlayToastEnum[t.business]===void 0?t.business:u.bilibili.app.viewunite.v1.PlayToastEnum[t.business]:t.business),t.iconUrl!=null&&t.hasOwnProperty("iconUrl")&&(n.iconUrl=t.iconUrl),t.text!=null&&t.hasOwnProperty("text")&&(n.text=t.text),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.v1.PlayToast"},e}(),c.PlayToastEnum=function(){let e={},l=Object.create(e);return l[e[0]="PLAYTOAST_UNKNOWN"]=0,l[e[1]="PLAYTOAST_CHARGINGPLUS"]=1,l}(),c.Button=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.uri=t.string();break}case 3:{o.icon=t.string();break}case 4:{o.jumpShowType=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.v1.Button)return t;let i=new u.bilibili.app.viewunite.v1.Button;switch(t.title!=null&&(i.title=String(t.title)),t.uri!=null&&(i.uri=String(t.uri)),t.icon!=null&&(i.icon=String(t.icon)),t.jumpShowType){default:if(typeof t.jumpShowType=="number"){i.jumpShowType=t.jumpShowType;break}break;case"JST_DEFAULT":case 0:i.jumpShowType=0;break;case"JST_FULLSCREEN":case 1:i.jumpShowType=1;break;case"JST_HALFSCREEN":case 2:i.jumpShowType=2;break}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.title="",n.uri="",n.icon="",n.jumpShowType=i.enums===String?"JST_DEFAULT":0),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),t.icon!=null&&t.hasOwnProperty("icon")&&(n.icon=t.icon),t.jumpShowType!=null&&t.hasOwnProperty("jumpShowType")&&(n.jumpShowType=i.enums===String?u.bilibili.app.viewunite.v1.JumpShowType[t.jumpShowType]===void 0?t.jumpShowType:u.bilibili.app.viewunite.v1.JumpShowType[t.jumpShowType]:t.jumpShowType),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.v1.Button"},e}(),c.JumpShowType=function(){let e={},l=Object.create(e);return l[e[0]="JST_DEFAULT"]=0,l[e[1]="JST_FULLSCREEN"]=1,l[e[2]="JST_HALFSCREEN"]=2,l}(),c.TabType=function(){let e={},l=Object.create(e);return l[e[0]="TAB_NONE"]=0,l[e[1]="TAB_INTRODUCTION"]=1,l[e[2]="TAB_REPLY"]=2,l[e[3]="TAB_OGV_ACTIVITY"]=3,l[e[4]="TAB_CATALOG"]=4,l}(),c.TabModule=function(){function e(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.tabType=i.int32();break}case 2:{a.introduction=u.bilibili.app.viewunite.v1.IntroductionTab.decode(i,i.uint32());break}case 3:{a.reply=u.bilibili.app.viewunite.v1.ReplyTab.decode(i,i.uint32());break}case 4:{a.activityTab=u.bilibili.app.viewunite.common.ActivityTab.decode(i,i.uint32());break}case 5:{a.catalog=u.bilibili.app.viewunite.common.CatalogTab.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},e.fromObject=function(i){if(i instanceof u.bilibili.app.viewunite.v1.TabModule)return i;let n=new u.bilibili.app.viewunite.v1.TabModule;switch(i.tabType){default:if(typeof i.tabType=="number"){n.tabType=i.tabType;break}break;case"TAB_NONE":case 0:n.tabType=0;break;case"TAB_INTRODUCTION":case 1:n.tabType=1;break;case"TAB_REPLY":case 2:n.tabType=2;break;case"TAB_OGV_ACTIVITY":case 3:n.tabType=3;break;case"TAB_CATALOG":case 4:n.tabType=4;break}if(i.introduction!=null){if(typeof i.introduction!="object")throw TypeError(".bilibili.app.viewunite.v1.TabModule.introduction: object expected");n.introduction=u.bilibili.app.viewunite.v1.IntroductionTab.fromObject(i.introduction)}if(i.reply!=null){if(typeof i.reply!="object")throw TypeError(".bilibili.app.viewunite.v1.TabModule.reply: object expected");n.reply=u.bilibili.app.viewunite.v1.ReplyTab.fromObject(i.reply)}if(i.activityTab!=null){if(typeof i.activityTab!="object")throw TypeError(".bilibili.app.viewunite.v1.TabModule.activityTab: object expected");n.activityTab=u.bilibili.app.viewunite.common.ActivityTab.fromObject(i.activityTab)}if(i.catalog!=null){if(typeof i.catalog!="object")throw TypeError(".bilibili.app.viewunite.v1.TabModule.catalog: object expected");n.catalog=u.bilibili.app.viewunite.common.CatalogTab.fromObject(i.catalog)}return n},e.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.tabType=n.enums===String?"TAB_NONE":0),i.tabType!=null&&i.hasOwnProperty("tabType")&&(o.tabType=n.enums===String?u.bilibili.app.viewunite.v1.TabType[i.tabType]===void 0?i.tabType:u.bilibili.app.viewunite.v1.TabType[i.tabType]:i.tabType),i.introduction!=null&&i.hasOwnProperty("introduction")&&(o.introduction=u.bilibili.app.viewunite.v1.IntroductionTab.toObject(i.introduction,n),n.oneofs&&(o.tab="introduction")),i.reply!=null&&i.hasOwnProperty("reply")&&(o.reply=u.bilibili.app.viewunite.v1.ReplyTab.toObject(i.reply,n),n.oneofs&&(o.tab="reply")),i.activityTab!=null&&i.hasOwnProperty("activityTab")&&(o.activityTab=u.bilibili.app.viewunite.common.ActivityTab.toObject(i.activityTab,n),n.oneofs&&(o.tab="activityTab")),i.catalog!=null&&i.hasOwnProperty("catalog")&&(o.catalog=u.bilibili.app.viewunite.common.CatalogTab.toObject(i.catalog,n),n.oneofs&&(o.tab="catalog")),o},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.app.viewunite.v1.TabModule"},e}(),c.IntroductionTab=function(){function e(l){if(this.modules=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.modules&&o.modules.length||(o.modules=[]),o.modules.push(u.bilibili.app.viewunite.common.Module.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.v1.IntroductionTab)return t;let i=new u.bilibili.app.viewunite.v1.IntroductionTab;if(t.title!=null&&(i.title=String(t.title)),t.modules){if(!Array.isArray(t.modules))throw TypeError(".bilibili.app.viewunite.v1.IntroductionTab.modules: array expected");i.modules=[];for(let n=0;n>>3){case 1:{o.replyStyle=u.bilibili.app.viewunite.v1.ReplyStyle.decode(t,t.uint32());break}case 2:{o.title=t.string();break}case 3:{o.control=u.bilibili.app.viewunite.v1.TabControl.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.v1.ReplyTab)return t;let i=new u.bilibili.app.viewunite.v1.ReplyTab;if(t.replyStyle!=null){if(typeof t.replyStyle!="object")throw TypeError(".bilibili.app.viewunite.v1.ReplyTab.replyStyle: object expected");i.replyStyle=u.bilibili.app.viewunite.v1.ReplyStyle.fromObject(t.replyStyle)}if(t.title!=null&&(i.title=String(t.title)),t.control!=null){if(typeof t.control!="object")throw TypeError(".bilibili.app.viewunite.v1.ReplyTab.control: object expected");i.control=u.bilibili.app.viewunite.v1.TabControl.fromObject(t.control)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.replyStyle=null,n.title="",n.control=null),t.replyStyle!=null&&t.hasOwnProperty("replyStyle")&&(n.replyStyle=u.bilibili.app.viewunite.v1.ReplyStyle.toObject(t.replyStyle,i)),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.control!=null&&t.hasOwnProperty("control")&&(n.control=u.bilibili.app.viewunite.v1.TabControl.toObject(t.control,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.v1.ReplyTab"},e}(),c.ReplyStyle=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.badgeUrl=t.string();break}case 2:{o.badgeText=t.string();break}case 3:{o.badgeType=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.v1.ReplyStyle)return t;let i=new u.bilibili.app.viewunite.v1.ReplyStyle;return t.badgeUrl!=null&&(i.badgeUrl=String(t.badgeUrl)),t.badgeText!=null&&(i.badgeText=String(t.badgeText)),t.badgeType!=null&&(r.Long?(i.badgeType=r.Long.fromValue(t.badgeType)).unsigned=!1:typeof t.badgeType=="string"?i.badgeType=parseInt(t.badgeType,10):typeof t.badgeType=="number"?i.badgeType=t.badgeType:typeof t.badgeType=="object"&&(i.badgeType=new r.LongBits(t.badgeType.low>>>0,t.badgeType.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(n.badgeUrl="",n.badgeText="",r.Long){let o=new r.Long(0,0,!1);n.badgeType=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.badgeType=i.longs===String?"0":0;return t.badgeUrl!=null&&t.hasOwnProperty("badgeUrl")&&(n.badgeUrl=t.badgeUrl),t.badgeText!=null&&t.hasOwnProperty("badgeText")&&(n.badgeText=t.badgeText),t.badgeType!=null&&t.hasOwnProperty("badgeType")&&(typeof t.badgeType=="number"?n.badgeType=i.longs===String?String(t.badgeType):t.badgeType:n.badgeType=i.longs===String?r.Long.prototype.toString.call(t.badgeType):i.longs===Number?new r.LongBits(t.badgeType.low>>>0,t.badgeType.high>>>0).toNumber():t.badgeType),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.v1.ReplyStyle"},e}(),c.ViewBase=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.bizType=t.int32();break}case 2:{o.pageType=t.int32();break}case 3:{o.control=u.bilibili.app.viewunite.v1.PageControl.decode(t,t.uint32());break}case 4:{o.activityResource=u.bilibili.app.viewunite.v1.ActivityResource.decode(t,t.uint32());break}case 5:{o.config=u.bilibili.app.viewunite.v1.Config.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.v1.ViewBase)return t;let i=new u.bilibili.app.viewunite.v1.ViewBase;switch(t.bizType){default:if(typeof t.bizType=="number"){i.bizType=t.bizType;break}break;case"BIZ_TYPE_UNKNOWN":case 0:i.bizType=0;break;case"BIZ_TYPE_UGC":case 1:i.bizType=1;break;case"BIZ_TYPE_PGC":case 2:i.bizType=2;break;case"BIZ_TYPE_PUGV":case 3:i.bizType=3;break}switch(t.pageType){default:if(typeof t.pageType=="number"){i.pageType=t.pageType;break}break;case"COMMON_PAGE":case 0:i.pageType=0;break;case"ACTIVITY_PAGE":case 1:i.pageType=1;break}if(t.control!=null){if(typeof t.control!="object")throw TypeError(".bilibili.app.viewunite.v1.ViewBase.control: object expected");i.control=u.bilibili.app.viewunite.v1.PageControl.fromObject(t.control)}if(t.activityResource!=null){if(typeof t.activityResource!="object")throw TypeError(".bilibili.app.viewunite.v1.ViewBase.activityResource: object expected");i.activityResource=u.bilibili.app.viewunite.v1.ActivityResource.fromObject(t.activityResource)}if(t.config!=null){if(typeof t.config!="object")throw TypeError(".bilibili.app.viewunite.v1.ViewBase.config: object expected");i.config=u.bilibili.app.viewunite.v1.Config.fromObject(t.config)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.bizType=i.enums===String?"BIZ_TYPE_UNKNOWN":0,n.pageType=i.enums===String?"COMMON_PAGE":0,n.control=null,n.activityResource=null,n.config=null),t.bizType!=null&&t.hasOwnProperty("bizType")&&(n.bizType=i.enums===String?u.bilibili.playershared.BizType[t.bizType]===void 0?t.bizType:u.bilibili.playershared.BizType[t.bizType]:t.bizType),t.pageType!=null&&t.hasOwnProperty("pageType")&&(n.pageType=i.enums===String?u.bilibili.app.viewunite.v1.PageCategory[t.pageType]===void 0?t.pageType:u.bilibili.app.viewunite.v1.PageCategory[t.pageType]:t.pageType),t.control!=null&&t.hasOwnProperty("control")&&(n.control=u.bilibili.app.viewunite.v1.PageControl.toObject(t.control,i)),t.activityResource!=null&&t.hasOwnProperty("activityResource")&&(n.activityResource=u.bilibili.app.viewunite.v1.ActivityResource.toObject(t.activityResource,i)),t.config!=null&&t.hasOwnProperty("config")&&(n.config=u.bilibili.app.viewunite.v1.Config.toObject(t.config,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.v1.ViewBase"},e}(),c.Config=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.online=u.bilibili.app.viewunite.v1.Online.decode(t,t.uint32());break}case 2:{o.playerIcon=u.bilibili.app.viewunite.v1.PlayerIcon.decode(t,t.uint32());break}case 3:{o.storyEntrance=u.bilibili.app.viewunite.v1.StoryEntrance.decode(t,t.uint32());break}case 4:{o.bgPlayNotice=u.bilibili.app.viewunite.v1.BgPlayNotice.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.v1.Config)return t;let i=new u.bilibili.app.viewunite.v1.Config;if(t.online!=null){if(typeof t.online!="object")throw TypeError(".bilibili.app.viewunite.v1.Config.online: object expected");i.online=u.bilibili.app.viewunite.v1.Online.fromObject(t.online)}if(t.playerIcon!=null){if(typeof t.playerIcon!="object")throw TypeError(".bilibili.app.viewunite.v1.Config.playerIcon: object expected");i.playerIcon=u.bilibili.app.viewunite.v1.PlayerIcon.fromObject(t.playerIcon)}if(t.storyEntrance!=null){if(typeof t.storyEntrance!="object")throw TypeError(".bilibili.app.viewunite.v1.Config.storyEntrance: object expected");i.storyEntrance=u.bilibili.app.viewunite.v1.StoryEntrance.fromObject(t.storyEntrance)}if(t.bgPlayNotice!=null){if(typeof t.bgPlayNotice!="object")throw TypeError(".bilibili.app.viewunite.v1.Config.bgPlayNotice: object expected");i.bgPlayNotice=u.bilibili.app.viewunite.v1.BgPlayNotice.fromObject(t.bgPlayNotice)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.online=null,n.playerIcon=null,n.storyEntrance=null,n.bgPlayNotice=null),t.online!=null&&t.hasOwnProperty("online")&&(n.online=u.bilibili.app.viewunite.v1.Online.toObject(t.online,i)),t.playerIcon!=null&&t.hasOwnProperty("playerIcon")&&(n.playerIcon=u.bilibili.app.viewunite.v1.PlayerIcon.toObject(t.playerIcon,i)),t.storyEntrance!=null&&t.hasOwnProperty("storyEntrance")&&(n.storyEntrance=u.bilibili.app.viewunite.v1.StoryEntrance.toObject(t.storyEntrance,i)),t.bgPlayNotice!=null&&t.hasOwnProperty("bgPlayNotice")&&(n.bgPlayNotice=u.bilibili.app.viewunite.v1.BgPlayNotice.toObject(t.bgPlayNotice,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.v1.Config"},e}(),c.BgPlayNotice=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.allowShow=t.bool();break}case 2:{o.text=t.string();break}case 3:{o.btnText_1=t.string();break}case 4:{o.btnText_2=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.v1.BgPlayNotice)return t;let i=new u.bilibili.app.viewunite.v1.BgPlayNotice;return t.allowShow!=null&&(i.allowShow=!!t.allowShow),t.text!=null&&(i.text=String(t.text)),t.btnText_1!=null&&(i.btnText_1=String(t.btnText_1)),t.btnText_2!=null&&(i.btnText_2=String(t.btnText_2)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.allowShow=!1,n.text="",n.btnText_1="",n.btnText_2=""),t.allowShow!=null&&t.hasOwnProperty("allowShow")&&(n.allowShow=t.allowShow),t.text!=null&&t.hasOwnProperty("text")&&(n.text=t.text),t.btnText_1!=null&&t.hasOwnProperty("btnText_1")&&(n.btnText_1=t.btnText_1),t.btnText_2!=null&&t.hasOwnProperty("btnText_2")&&(n.btnText_2=t.btnText_2),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.v1.BgPlayNotice"},e}(),c.StoryEntrance=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.arcPlayStory=t.bool();break}case 2:{o.storyIcon=t.string();break}case 3:{o.arcLandscapeStory=t.bool();break}case 4:{o.landscapeIcon=t.string();break}case 5:{o.playStory=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.v1.StoryEntrance)return t;let i=new u.bilibili.app.viewunite.v1.StoryEntrance;return t.arcPlayStory!=null&&(i.arcPlayStory=!!t.arcPlayStory),t.storyIcon!=null&&(i.storyIcon=String(t.storyIcon)),t.arcLandscapeStory!=null&&(i.arcLandscapeStory=!!t.arcLandscapeStory),t.landscapeIcon!=null&&(i.landscapeIcon=String(t.landscapeIcon)),t.playStory!=null&&(i.playStory=!!t.playStory),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.arcPlayStory=!1,n.storyIcon="",n.arcLandscapeStory=!1,n.landscapeIcon="",n.playStory=!1),t.arcPlayStory!=null&&t.hasOwnProperty("arcPlayStory")&&(n.arcPlayStory=t.arcPlayStory),t.storyIcon!=null&&t.hasOwnProperty("storyIcon")&&(n.storyIcon=t.storyIcon),t.arcLandscapeStory!=null&&t.hasOwnProperty("arcLandscapeStory")&&(n.arcLandscapeStory=t.arcLandscapeStory),t.landscapeIcon!=null&&t.hasOwnProperty("landscapeIcon")&&(n.landscapeIcon=t.landscapeIcon),t.playStory!=null&&t.hasOwnProperty("playStory")&&(n.playStory=t.playStory),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.v1.StoryEntrance"},e}(),c.PlayerIcon=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.url1=t.string();break}case 2:{o.hash1=t.string();break}case 3:{o.url2=t.string();break}case 4:{o.hash2=t.string();break}case 5:{o.dragLeftPng=t.string();break}case 6:{o.middlePng=t.string();break}case 7:{o.dragRightPng=t.string();break}case 8:{o.dragData=u.bilibili.app.viewunite.v1.IconData.decode(t,t.uint32());break}case 9:{o.nodragData=u.bilibili.app.viewunite.v1.IconData.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.v1.PlayerIcon)return t;let i=new u.bilibili.app.viewunite.v1.PlayerIcon;if(t.url1!=null&&(i.url1=String(t.url1)),t.hash1!=null&&(i.hash1=String(t.hash1)),t.url2!=null&&(i.url2=String(t.url2)),t.hash2!=null&&(i.hash2=String(t.hash2)),t.dragLeftPng!=null&&(i.dragLeftPng=String(t.dragLeftPng)),t.middlePng!=null&&(i.middlePng=String(t.middlePng)),t.dragRightPng!=null&&(i.dragRightPng=String(t.dragRightPng)),t.dragData!=null){if(typeof t.dragData!="object")throw TypeError(".bilibili.app.viewunite.v1.PlayerIcon.dragData: object expected");i.dragData=u.bilibili.app.viewunite.v1.IconData.fromObject(t.dragData)}if(t.nodragData!=null){if(typeof t.nodragData!="object")throw TypeError(".bilibili.app.viewunite.v1.PlayerIcon.nodragData: object expected");i.nodragData=u.bilibili.app.viewunite.v1.IconData.fromObject(t.nodragData)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.url1="",n.hash1="",n.url2="",n.hash2="",n.dragLeftPng="",n.middlePng="",n.dragRightPng="",n.dragData=null,n.nodragData=null),t.url1!=null&&t.hasOwnProperty("url1")&&(n.url1=t.url1),t.hash1!=null&&t.hasOwnProperty("hash1")&&(n.hash1=t.hash1),t.url2!=null&&t.hasOwnProperty("url2")&&(n.url2=t.url2),t.hash2!=null&&t.hasOwnProperty("hash2")&&(n.hash2=t.hash2),t.dragLeftPng!=null&&t.hasOwnProperty("dragLeftPng")&&(n.dragLeftPng=t.dragLeftPng),t.middlePng!=null&&t.hasOwnProperty("middlePng")&&(n.middlePng=t.middlePng),t.dragRightPng!=null&&t.hasOwnProperty("dragRightPng")&&(n.dragRightPng=t.dragRightPng),t.dragData!=null&&t.hasOwnProperty("dragData")&&(n.dragData=u.bilibili.app.viewunite.v1.IconData.toObject(t.dragData,i)),t.nodragData!=null&&t.hasOwnProperty("nodragData")&&(n.nodragData=u.bilibili.app.viewunite.v1.IconData.toObject(t.nodragData,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.v1.PlayerIcon"},e}(),c.IconData=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.metaJson=t.string();break}case 2:{o.spritsImg=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.v1.IconData)return t;let i=new u.bilibili.app.viewunite.v1.IconData;return t.metaJson!=null&&(i.metaJson=String(t.metaJson)),t.spritsImg!=null&&(i.spritsImg=String(t.spritsImg)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.metaJson="",n.spritsImg=""),t.metaJson!=null&&t.hasOwnProperty("metaJson")&&(n.metaJson=t.metaJson),t.spritsImg!=null&&t.hasOwnProperty("spritsImg")&&(n.spritsImg=t.spritsImg),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.v1.IconData"},e}(),c.Online=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.onlineShow=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.v1.Online)return t;let i=new u.bilibili.app.viewunite.v1.Online;return t.onlineShow!=null&&(i.onlineShow=!!t.onlineShow),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.onlineShow=!1),t.onlineShow!=null&&t.hasOwnProperty("onlineShow")&&(n.onlineShow=t.onlineShow),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.v1.Online"},e}(),c.PageControl=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.toastShow=u.bilibili.app.viewunite.v1.Control.decode(t,t.uint32());break}case 2:{o.materialShow=u.bilibili.app.viewunite.v1.Control.decode(t,t.uint32());break}case 3:{o.upShow=u.bilibili.app.viewunite.v1.Control.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.v1.PageControl)return t;let i=new u.bilibili.app.viewunite.v1.PageControl;if(t.toastShow!=null){if(typeof t.toastShow!="object")throw TypeError(".bilibili.app.viewunite.v1.PageControl.toastShow: object expected");i.toastShow=u.bilibili.app.viewunite.v1.Control.fromObject(t.toastShow)}if(t.materialShow!=null){if(typeof t.materialShow!="object")throw TypeError(".bilibili.app.viewunite.v1.PageControl.materialShow: object expected");i.materialShow=u.bilibili.app.viewunite.v1.Control.fromObject(t.materialShow)}if(t.upShow!=null){if(typeof t.upShow!="object")throw TypeError(".bilibili.app.viewunite.v1.PageControl.upShow: object expected");i.upShow=u.bilibili.app.viewunite.v1.Control.fromObject(t.upShow)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.toastShow=null,n.materialShow=null,n.upShow=null),t.toastShow!=null&&t.hasOwnProperty("toastShow")&&(n.toastShow=u.bilibili.app.viewunite.v1.Control.toObject(t.toastShow,i)),t.materialShow!=null&&t.hasOwnProperty("materialShow")&&(n.materialShow=u.bilibili.app.viewunite.v1.Control.toObject(t.materialShow,i)),t.upShow!=null&&t.hasOwnProperty("upShow")&&(n.upShow=u.bilibili.app.viewunite.v1.Control.toObject(t.upShow,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.v1.PageControl"},e}(),c.Control=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.limit=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.v1.Control)return t;let i=new u.bilibili.app.viewunite.v1.Control;return t.limit!=null&&(i.limit=!!t.limit),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.limit=!1),t.limit!=null&&t.hasOwnProperty("limit")&&(n.limit=t.limit),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.v1.Control"},e}(),c.ActivityResource=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.darkTextColor=t.string();break}case 2:{o.dividerColor=t.string();break}case 3:{o.bgColor=t.string();break}case 4:{o.selectedBgColor=t.string();break}case 5:{o.textColor=t.string();break}case 6:{o.lightTextColor=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.v1.ActivityResource)return t;let i=new u.bilibili.app.viewunite.v1.ActivityResource;return t.darkTextColor!=null&&(i.darkTextColor=String(t.darkTextColor)),t.dividerColor!=null&&(i.dividerColor=String(t.dividerColor)),t.bgColor!=null&&(i.bgColor=String(t.bgColor)),t.selectedBgColor!=null&&(i.selectedBgColor=String(t.selectedBgColor)),t.textColor!=null&&(i.textColor=String(t.textColor)),t.lightTextColor!=null&&(i.lightTextColor=String(t.lightTextColor)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.darkTextColor="",n.dividerColor="",n.bgColor="",n.selectedBgColor="",n.textColor="",n.lightTextColor=""),t.darkTextColor!=null&&t.hasOwnProperty("darkTextColor")&&(n.darkTextColor=t.darkTextColor),t.dividerColor!=null&&t.hasOwnProperty("dividerColor")&&(n.dividerColor=t.dividerColor),t.bgColor!=null&&t.hasOwnProperty("bgColor")&&(n.bgColor=t.bgColor),t.selectedBgColor!=null&&t.hasOwnProperty("selectedBgColor")&&(n.selectedBgColor=t.selectedBgColor),t.textColor!=null&&t.hasOwnProperty("textColor")&&(n.textColor=t.textColor),t.lightTextColor!=null&&t.hasOwnProperty("lightTextColor")&&(n.lightTextColor=t.lightTextColor),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.v1.ActivityResource"},e}(),c.Arc=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.aid=t.int64();break}case 2:{o.cid=t.int64();break}case 3:{o.duration=t.int64();break}case 4:{o.stat=u.bilibili.app.viewunite.common.Stat.decode(t,t.uint32());break}case 5:{o.bvid=t.string();break}case 6:{o.copyright=t.int32();break}case 7:{o.right=u.bilibili.app.viewunite.v1.Rights.decode(t,t.uint32());break}case 8:{o.cover=t.string();break}case 9:{o.typeId=t.int64();break}case 10:{o.title=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.v1.Arc)return t;let i=new u.bilibili.app.viewunite.v1.Arc;if(t.aid!=null&&(r.Long?(i.aid=r.Long.fromValue(t.aid)).unsigned=!1:typeof t.aid=="string"?i.aid=parseInt(t.aid,10):typeof t.aid=="number"?i.aid=t.aid:typeof t.aid=="object"&&(i.aid=new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber())),t.cid!=null&&(r.Long?(i.cid=r.Long.fromValue(t.cid)).unsigned=!1:typeof t.cid=="string"?i.cid=parseInt(t.cid,10):typeof t.cid=="number"?i.cid=t.cid:typeof t.cid=="object"&&(i.cid=new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber())),t.duration!=null&&(r.Long?(i.duration=r.Long.fromValue(t.duration)).unsigned=!1:typeof t.duration=="string"?i.duration=parseInt(t.duration,10):typeof t.duration=="number"?i.duration=t.duration:typeof t.duration=="object"&&(i.duration=new r.LongBits(t.duration.low>>>0,t.duration.high>>>0).toNumber())),t.stat!=null){if(typeof t.stat!="object")throw TypeError(".bilibili.app.viewunite.v1.Arc.stat: object expected");i.stat=u.bilibili.app.viewunite.common.Stat.fromObject(t.stat)}if(t.bvid!=null&&(i.bvid=String(t.bvid)),t.copyright!=null&&(i.copyright=t.copyright|0),t.right!=null){if(typeof t.right!="object")throw TypeError(".bilibili.app.viewunite.v1.Arc.right: object expected");i.right=u.bilibili.app.viewunite.v1.Rights.fromObject(t.right)}return t.cover!=null&&(i.cover=String(t.cover)),t.typeId!=null&&(r.Long?(i.typeId=r.Long.fromValue(t.typeId)).unsigned=!1:typeof t.typeId=="string"?i.typeId=parseInt(t.typeId,10):typeof t.typeId=="number"?i.typeId=t.typeId:typeof t.typeId=="object"&&(i.typeId=new r.LongBits(t.typeId.low>>>0,t.typeId.high>>>0).toNumber())),t.title!=null&&(i.title=String(t.title)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.aid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.aid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.cid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.cid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.duration=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.duration=i.longs===String?"0":0;if(n.stat=null,n.bvid="",n.copyright=0,n.right=null,n.cover="",r.Long){let o=new r.Long(0,0,!1);n.typeId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.typeId=i.longs===String?"0":0;n.title=""}return t.aid!=null&&t.hasOwnProperty("aid")&&(typeof t.aid=="number"?n.aid=i.longs===String?String(t.aid):t.aid:n.aid=i.longs===String?r.Long.prototype.toString.call(t.aid):i.longs===Number?new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber():t.aid),t.cid!=null&&t.hasOwnProperty("cid")&&(typeof t.cid=="number"?n.cid=i.longs===String?String(t.cid):t.cid:n.cid=i.longs===String?r.Long.prototype.toString.call(t.cid):i.longs===Number?new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber():t.cid),t.duration!=null&&t.hasOwnProperty("duration")&&(typeof t.duration=="number"?n.duration=i.longs===String?String(t.duration):t.duration:n.duration=i.longs===String?r.Long.prototype.toString.call(t.duration):i.longs===Number?new r.LongBits(t.duration.low>>>0,t.duration.high>>>0).toNumber():t.duration),t.stat!=null&&t.hasOwnProperty("stat")&&(n.stat=u.bilibili.app.viewunite.common.Stat.toObject(t.stat,i)),t.bvid!=null&&t.hasOwnProperty("bvid")&&(n.bvid=t.bvid),t.copyright!=null&&t.hasOwnProperty("copyright")&&(n.copyright=t.copyright),t.right!=null&&t.hasOwnProperty("right")&&(n.right=u.bilibili.app.viewunite.v1.Rights.toObject(t.right,i)),t.cover!=null&&t.hasOwnProperty("cover")&&(n.cover=t.cover),t.typeId!=null&&t.hasOwnProperty("typeId")&&(typeof t.typeId=="number"?n.typeId=i.longs===String?String(t.typeId):t.typeId:n.typeId=i.longs===String?r.Long.prototype.toString.call(t.typeId):i.longs===Number?new r.LongBits(t.typeId.low>>>0,t.typeId.high>>>0).toNumber():t.typeId),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.v1.Arc"},e}(),c.Rights=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.onlyVipDownload=t.bool();break}case 2:{o.noReprint=t.bool();break}case 3:{o.download=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.v1.Rights)return t;let i=new u.bilibili.app.viewunite.v1.Rights;return t.onlyVipDownload!=null&&(i.onlyVipDownload=!!t.onlyVipDownload),t.noReprint!=null&&(i.noReprint=!!t.noReprint),t.download!=null&&(i.download=!!t.download),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.onlyVipDownload=!1,n.noReprint=!1,n.download=!1),t.onlyVipDownload!=null&&t.hasOwnProperty("onlyVipDownload")&&(n.onlyVipDownload=t.onlyVipDownload),t.noReprint!=null&&t.hasOwnProperty("noReprint")&&(n.noReprint=t.noReprint),t.download!=null&&t.hasOwnProperty("download")&&(n.download=t.download),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.v1.Rights"},e}(),c.PageCategory=function(){let e={},l=Object.create(e);return l[e[0]="COMMON_PAGE"]=0,l[e[1]="ACTIVITY_PAGE"]=1,l}(),c.ViewProgressReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.aid=t.int64();break}case 2:{o.cid=t.int64();break}case 3:{o.upMid=t.int64();break}case 4:{o.chronosParam=u.bilibili.app.viewunite.v1.ChronosParam.decode(t,t.uint32());break}case 5:{o.type=t.int32();break}case 6:{o.fragmentParam=u.bilibili.app.viewunite.v1.FragmentParam.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.v1.ViewProgressReq)return t;let i=new u.bilibili.app.viewunite.v1.ViewProgressReq;if(t.aid!=null&&(r.Long?(i.aid=r.Long.fromValue(t.aid)).unsigned=!1:typeof t.aid=="string"?i.aid=parseInt(t.aid,10):typeof t.aid=="number"?i.aid=t.aid:typeof t.aid=="object"&&(i.aid=new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber())),t.cid!=null&&(r.Long?(i.cid=r.Long.fromValue(t.cid)).unsigned=!1:typeof t.cid=="string"?i.cid=parseInt(t.cid,10):typeof t.cid=="number"?i.cid=t.cid:typeof t.cid=="object"&&(i.cid=new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber())),t.upMid!=null&&(r.Long?(i.upMid=r.Long.fromValue(t.upMid)).unsigned=!1:typeof t.upMid=="string"?i.upMid=parseInt(t.upMid,10):typeof t.upMid=="number"?i.upMid=t.upMid:typeof t.upMid=="object"&&(i.upMid=new r.LongBits(t.upMid.low>>>0,t.upMid.high>>>0).toNumber())),t.chronosParam!=null){if(typeof t.chronosParam!="object")throw TypeError(".bilibili.app.viewunite.v1.ViewProgressReq.chronosParam: object expected");i.chronosParam=u.bilibili.app.viewunite.v1.ChronosParam.fromObject(t.chronosParam)}switch(t.type){default:if(typeof t.type=="number"){i.type=t.type;break}break;case"UGC":case 0:i.type=0;break;case"OGV":case 1:i.type=1;break;case"PUGV":case 2:i.type=2;break}if(t.fragmentParam!=null){if(typeof t.fragmentParam!="object")throw TypeError(".bilibili.app.viewunite.v1.ViewProgressReq.fragmentParam: object expected");i.fragmentParam=u.bilibili.app.viewunite.v1.FragmentParam.fromObject(t.fragmentParam)}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.aid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.aid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.cid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.cid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.upMid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.upMid=i.longs===String?"0":0;n.chronosParam=null,n.type=i.enums===String?"UGC":0,n.fragmentParam=null}return t.aid!=null&&t.hasOwnProperty("aid")&&(typeof t.aid=="number"?n.aid=i.longs===String?String(t.aid):t.aid:n.aid=i.longs===String?r.Long.prototype.toString.call(t.aid):i.longs===Number?new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber():t.aid),t.cid!=null&&t.hasOwnProperty("cid")&&(typeof t.cid=="number"?n.cid=i.longs===String?String(t.cid):t.cid:n.cid=i.longs===String?r.Long.prototype.toString.call(t.cid):i.longs===Number?new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber():t.cid),t.upMid!=null&&t.hasOwnProperty("upMid")&&(typeof t.upMid=="number"?n.upMid=i.longs===String?String(t.upMid):t.upMid:n.upMid=i.longs===String?r.Long.prototype.toString.call(t.upMid):i.longs===Number?new r.LongBits(t.upMid.low>>>0,t.upMid.high>>>0).toNumber():t.upMid),t.chronosParam!=null&&t.hasOwnProperty("chronosParam")&&(n.chronosParam=u.bilibili.app.viewunite.v1.ChronosParam.toObject(t.chronosParam,i)),t.type!=null&&t.hasOwnProperty("type")&&(n.type=i.enums===String?u.bilibili.app.viewunite.v1.UnionType[t.type]===void 0?t.type:u.bilibili.app.viewunite.v1.UnionType[t.type]:t.type),t.fragmentParam!=null&&t.hasOwnProperty("fragmentParam")&&(n.fragmentParam=u.bilibili.app.viewunite.v1.FragmentParam.toObject(t.fragmentParam,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.v1.ViewProgressReq"},e}(),c.FragmentParam=function(){function e(l){if(this.fragmentArcs=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.fragmentArcs&&o.fragmentArcs.length||(o.fragmentArcs=[]),o.fragmentArcs.push(u.bilibili.app.viewunite.v1.FragmentArc.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.v1.FragmentParam)return t;let i=new u.bilibili.app.viewunite.v1.FragmentParam;if(t.fragmentArcs){if(!Array.isArray(t.fragmentArcs))throw TypeError(".bilibili.app.viewunite.v1.FragmentParam.fragmentArcs: array expected");i.fragmentArcs=[];for(let n=0;n>>3){case 1:{o.aid=t.int64();break}case 2:{o.cid=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.v1.FragmentArc)return t;let i=new u.bilibili.app.viewunite.v1.FragmentArc;return t.aid!=null&&(r.Long?(i.aid=r.Long.fromValue(t.aid)).unsigned=!1:typeof t.aid=="string"?i.aid=parseInt(t.aid,10):typeof t.aid=="number"?i.aid=t.aid:typeof t.aid=="object"&&(i.aid=new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber())),t.cid!=null&&(r.Long?(i.cid=r.Long.fromValue(t.cid)).unsigned=!1:typeof t.cid=="string"?i.cid=parseInt(t.cid,10):typeof t.cid=="number"?i.cid=t.cid:typeof t.cid=="object"&&(i.cid=new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.aid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.aid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.cid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.cid=i.longs===String?"0":0}return t.aid!=null&&t.hasOwnProperty("aid")&&(typeof t.aid=="number"?n.aid=i.longs===String?String(t.aid):t.aid:n.aid=i.longs===String?r.Long.prototype.toString.call(t.aid):i.longs===Number?new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber():t.aid),t.cid!=null&&t.hasOwnProperty("cid")&&(typeof t.cid=="number"?n.cid=i.longs===String?String(t.cid):t.cid:n.cid=i.longs===String?r.Long.prototype.toString.call(t.cid):i.longs===Number?new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber():t.cid),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.v1.FragmentArc"},e}(),c.ChronosParam=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.engineVersion=t.string();break}case 2:{o.messageProtocol=t.string();break}case 3:{o.serviceKey=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.v1.ChronosParam)return t;let i=new u.bilibili.app.viewunite.v1.ChronosParam;return t.engineVersion!=null&&(i.engineVersion=String(t.engineVersion)),t.messageProtocol!=null&&(i.messageProtocol=String(t.messageProtocol)),t.serviceKey!=null&&(i.serviceKey=String(t.serviceKey)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.engineVersion="",n.messageProtocol="",n.serviceKey=""),t.engineVersion!=null&&t.hasOwnProperty("engineVersion")&&(n.engineVersion=t.engineVersion),t.messageProtocol!=null&&t.hasOwnProperty("messageProtocol")&&(n.messageProtocol=t.messageProtocol),t.serviceKey!=null&&t.hasOwnProperty("serviceKey")&&(n.serviceKey=t.serviceKey),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.v1.ChronosParam"},e}(),c.ViewProgressReply=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.videoGuide=u.bilibili.app.viewunite.v1.VideoGuide.decode(t,t.uint32());break}case 2:{o.chronos=u.bilibili.app.viewunite.v1.Chronos.decode(t,t.uint32());break}case 3:{o.arcShot=u.bilibili.app.viewunite.v1.VideoShot.decode(t,t.uint32());break}case 4:{o.dm=u.bilibili.app.viewunite.v1.DmResource.decode(t,t.uint32());break}case 5:{o.fragmentRes=u.bilibili.app.viewunite.v1.FragmentRes.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.v1.ViewProgressReply)return t;let i=new u.bilibili.app.viewunite.v1.ViewProgressReply;if(t.videoGuide!=null){if(typeof t.videoGuide!="object")throw TypeError(".bilibili.app.viewunite.v1.ViewProgressReply.videoGuide: object expected");i.videoGuide=u.bilibili.app.viewunite.v1.VideoGuide.fromObject(t.videoGuide)}if(t.chronos!=null){if(typeof t.chronos!="object")throw TypeError(".bilibili.app.viewunite.v1.ViewProgressReply.chronos: object expected");i.chronos=u.bilibili.app.viewunite.v1.Chronos.fromObject(t.chronos)}if(t.arcShot!=null){if(typeof t.arcShot!="object")throw TypeError(".bilibili.app.viewunite.v1.ViewProgressReply.arcShot: object expected");i.arcShot=u.bilibili.app.viewunite.v1.VideoShot.fromObject(t.arcShot)}if(t.dm!=null){if(typeof t.dm!="object")throw TypeError(".bilibili.app.viewunite.v1.ViewProgressReply.dm: object expected");i.dm=u.bilibili.app.viewunite.v1.DmResource.fromObject(t.dm)}if(t.fragmentRes!=null){if(typeof t.fragmentRes!="object")throw TypeError(".bilibili.app.viewunite.v1.ViewProgressReply.fragmentRes: object expected");i.fragmentRes=u.bilibili.app.viewunite.v1.FragmentRes.fromObject(t.fragmentRes)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.videoGuide=null,n.chronos=null,n.arcShot=null,n.dm=null,n.fragmentRes=null),t.videoGuide!=null&&t.hasOwnProperty("videoGuide")&&(n.videoGuide=u.bilibili.app.viewunite.v1.VideoGuide.toObject(t.videoGuide,i)),t.chronos!=null&&t.hasOwnProperty("chronos")&&(n.chronos=u.bilibili.app.viewunite.v1.Chronos.toObject(t.chronos,i)),t.arcShot!=null&&t.hasOwnProperty("arcShot")&&(n.arcShot=u.bilibili.app.viewunite.v1.VideoShot.toObject(t.arcShot,i)),t.dm!=null&&t.hasOwnProperty("dm")&&(n.dm=u.bilibili.app.viewunite.v1.DmResource.toObject(t.dm,i)),t.fragmentRes!=null&&t.hasOwnProperty("fragmentRes")&&(n.fragmentRes=u.bilibili.app.viewunite.v1.FragmentRes.toObject(t.fragmentRes,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.v1.ViewProgressReply"},e}(),c.FragmentRes=function(){function e(l){if(this.videoShot={},l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.videoShot===r.emptyObject&&(o.videoShot={});let v=t.uint32()+t.pos;for(a=0,y=null;t.pos>>3){case 1:a=t.int64();break;case 2:y=u.bilibili.app.viewunite.v1.VideoShot.decode(t,t.uint32());break;default:t.skipType(g&7);break}}o.videoShot[typeof a=="object"?r.longToHash(a):a]=y;break}default:t.skipType(s&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.v1.FragmentRes)return t;let i=new u.bilibili.app.viewunite.v1.FragmentRes;if(t.videoShot){if(typeof t.videoShot!="object")throw TypeError(".bilibili.app.viewunite.v1.FragmentRes.videoShot: object expected");i.videoShot={};for(let n=Object.keys(t.videoShot),o=0;o>>3){case 1:{o.commandDms&&o.commandDms.length||(o.commandDms=[]),o.commandDms.push(u.bilibili.app.viewunite.v1.CommandDm.decode(t,t.uint32()));break}case 2:{o.attention=u.bilibili.app.viewunite.v1.AttentionCard.decode(t,t.uint32());break}case 3:{o.cards&&o.cards.length||(o.cards=[]),o.cards.push(u.bilibili.app.viewunite.v1.OperationCard.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.v1.DmResource)return t;let i=new u.bilibili.app.viewunite.v1.DmResource;if(t.commandDms){if(!Array.isArray(t.commandDms))throw TypeError(".bilibili.app.viewunite.v1.DmResource.commandDms: array expected");i.commandDms=[];for(let n=0;n>>3){case 1:{a.id=i.int64();break}case 2:{a.from=i.int32();break}case 3:{a.to=i.int32();break}case 4:{a.status=i.bool();break}case 5:{a.bizType=i.int32();break}case 6:{a.content=u.bilibili.app.viewunite.v1.OperationCardContent.decode(i,i.uint32());break}case 7:{a.follow=u.bilibili.app.viewunite.v1.BizFollowVideoParam.decode(i,i.uint32());break}case 8:{a.reserve=u.bilibili.app.viewunite.v1.BizReserveActivityParam.decode(i,i.uint32());break}case 9:{a.jump=u.bilibili.app.viewunite.v1.BizJumpLinkParam.decode(i,i.uint32());break}case 10:{a.game=u.bilibili.app.viewunite.v1.BizReserveGameParam.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},e.fromObject=function(i){if(i instanceof u.bilibili.app.viewunite.v1.OperationCard)return i;let n=new u.bilibili.app.viewunite.v1.OperationCard;switch(i.id!=null&&(r.Long?(n.id=r.Long.fromValue(i.id)).unsigned=!1:typeof i.id=="string"?n.id=parseInt(i.id,10):typeof i.id=="number"?n.id=i.id:typeof i.id=="object"&&(n.id=new r.LongBits(i.id.low>>>0,i.id.high>>>0).toNumber())),i.from!=null&&(n.from=i.from|0),i.to!=null&&(n.to=i.to|0),i.status!=null&&(n.status=!!i.status),i.bizType){default:if(typeof i.bizType=="number"){n.bizType=i.bizType;break}break;case"BizTypeNone":case 0:n.bizType=0;break;case"BizTypeFollowVideo":case 1:n.bizType=1;break;case"BizTypeReserveActivity":case 2:n.bizType=2;break;case"BizTypeJumpLink":case 3:n.bizType=3;break;case"BizTypeFavSeason":case 4:n.bizType=4;break;case"BizTypeReserveGame":case 5:n.bizType=5;break}if(i.content!=null){if(typeof i.content!="object")throw TypeError(".bilibili.app.viewunite.v1.OperationCard.content: object expected");n.content=u.bilibili.app.viewunite.v1.OperationCardContent.fromObject(i.content)}if(i.follow!=null){if(typeof i.follow!="object")throw TypeError(".bilibili.app.viewunite.v1.OperationCard.follow: object expected");n.follow=u.bilibili.app.viewunite.v1.BizFollowVideoParam.fromObject(i.follow)}if(i.reserve!=null){if(typeof i.reserve!="object")throw TypeError(".bilibili.app.viewunite.v1.OperationCard.reserve: object expected");n.reserve=u.bilibili.app.viewunite.v1.BizReserveActivityParam.fromObject(i.reserve)}if(i.jump!=null){if(typeof i.jump!="object")throw TypeError(".bilibili.app.viewunite.v1.OperationCard.jump: object expected");n.jump=u.bilibili.app.viewunite.v1.BizJumpLinkParam.fromObject(i.jump)}if(i.game!=null){if(typeof i.game!="object")throw TypeError(".bilibili.app.viewunite.v1.OperationCard.game: object expected");n.game=u.bilibili.app.viewunite.v1.BizReserveGameParam.fromObject(i.game)}return n},e.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.id=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.id=n.longs===String?"0":0;o.from=0,o.to=0,o.status=!1,o.bizType=n.enums===String?"BizTypeNone":0,o.content=null}return i.id!=null&&i.hasOwnProperty("id")&&(typeof i.id=="number"?o.id=n.longs===String?String(i.id):i.id:o.id=n.longs===String?r.Long.prototype.toString.call(i.id):n.longs===Number?new r.LongBits(i.id.low>>>0,i.id.high>>>0).toNumber():i.id),i.from!=null&&i.hasOwnProperty("from")&&(o.from=i.from),i.to!=null&&i.hasOwnProperty("to")&&(o.to=i.to),i.status!=null&&i.hasOwnProperty("status")&&(o.status=i.status),i.bizType!=null&&i.hasOwnProperty("bizType")&&(o.bizType=n.enums===String?u.bilibili.app.viewunite.v1.BizType[i.bizType]===void 0?i.bizType:u.bilibili.app.viewunite.v1.BizType[i.bizType]:i.bizType),i.content!=null&&i.hasOwnProperty("content")&&(o.content=u.bilibili.app.viewunite.v1.OperationCardContent.toObject(i.content,n)),i.follow!=null&&i.hasOwnProperty("follow")&&(o.follow=u.bilibili.app.viewunite.v1.BizFollowVideoParam.toObject(i.follow,n),n.oneofs&&(o.param="follow")),i.reserve!=null&&i.hasOwnProperty("reserve")&&(o.reserve=u.bilibili.app.viewunite.v1.BizReserveActivityParam.toObject(i.reserve,n),n.oneofs&&(o.param="reserve")),i.jump!=null&&i.hasOwnProperty("jump")&&(o.jump=u.bilibili.app.viewunite.v1.BizJumpLinkParam.toObject(i.jump,n),n.oneofs&&(o.param="jump")),i.game!=null&&i.hasOwnProperty("game")&&(o.game=u.bilibili.app.viewunite.v1.BizReserveGameParam.toObject(i.game,n),n.oneofs&&(o.param="game")),o},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.app.viewunite.v1.OperationCard"},e}(),c.BizFollowVideoParam=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.seasonId=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.v1.BizFollowVideoParam)return t;let i=new u.bilibili.app.viewunite.v1.BizFollowVideoParam;return t.seasonId!=null&&(r.Long?(i.seasonId=r.Long.fromValue(t.seasonId)).unsigned=!1:typeof t.seasonId=="string"?i.seasonId=parseInt(t.seasonId,10):typeof t.seasonId=="number"?i.seasonId=t.seasonId:typeof t.seasonId=="object"&&(i.seasonId=new r.LongBits(t.seasonId.low>>>0,t.seasonId.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(r.Long){let o=new r.Long(0,0,!1);n.seasonId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.seasonId=i.longs===String?"0":0;return t.seasonId!=null&&t.hasOwnProperty("seasonId")&&(typeof t.seasonId=="number"?n.seasonId=i.longs===String?String(t.seasonId):t.seasonId:n.seasonId=i.longs===String?r.Long.prototype.toString.call(t.seasonId):i.longs===Number?new r.LongBits(t.seasonId.low>>>0,t.seasonId.high>>>0).toNumber():t.seasonId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.v1.BizFollowVideoParam"},e}(),c.BizReserveActivityParam=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.activityId=t.int64();break}case 2:{o.from=t.string();break}case 3:{o.type=t.string();break}case 4:{o.oid=t.int64();break}case 5:{o.reserveId=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.v1.BizReserveActivityParam)return t;let i=new u.bilibili.app.viewunite.v1.BizReserveActivityParam;return t.activityId!=null&&(r.Long?(i.activityId=r.Long.fromValue(t.activityId)).unsigned=!1:typeof t.activityId=="string"?i.activityId=parseInt(t.activityId,10):typeof t.activityId=="number"?i.activityId=t.activityId:typeof t.activityId=="object"&&(i.activityId=new r.LongBits(t.activityId.low>>>0,t.activityId.high>>>0).toNumber())),t.from!=null&&(i.from=String(t.from)),t.type!=null&&(i.type=String(t.type)),t.oid!=null&&(r.Long?(i.oid=r.Long.fromValue(t.oid)).unsigned=!1:typeof t.oid=="string"?i.oid=parseInt(t.oid,10):typeof t.oid=="number"?i.oid=t.oid:typeof t.oid=="object"&&(i.oid=new r.LongBits(t.oid.low>>>0,t.oid.high>>>0).toNumber())),t.reserveId!=null&&(r.Long?(i.reserveId=r.Long.fromValue(t.reserveId)).unsigned=!1:typeof t.reserveId=="string"?i.reserveId=parseInt(t.reserveId,10):typeof t.reserveId=="number"?i.reserveId=t.reserveId:typeof t.reserveId=="object"&&(i.reserveId=new r.LongBits(t.reserveId.low>>>0,t.reserveId.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.activityId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.activityId=i.longs===String?"0":0;if(n.from="",n.type="",r.Long){let o=new r.Long(0,0,!1);n.oid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.oid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.reserveId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.reserveId=i.longs===String?"0":0}return t.activityId!=null&&t.hasOwnProperty("activityId")&&(typeof t.activityId=="number"?n.activityId=i.longs===String?String(t.activityId):t.activityId:n.activityId=i.longs===String?r.Long.prototype.toString.call(t.activityId):i.longs===Number?new r.LongBits(t.activityId.low>>>0,t.activityId.high>>>0).toNumber():t.activityId),t.from!=null&&t.hasOwnProperty("from")&&(n.from=t.from),t.type!=null&&t.hasOwnProperty("type")&&(n.type=t.type),t.oid!=null&&t.hasOwnProperty("oid")&&(typeof t.oid=="number"?n.oid=i.longs===String?String(t.oid):t.oid:n.oid=i.longs===String?r.Long.prototype.toString.call(t.oid):i.longs===Number?new r.LongBits(t.oid.low>>>0,t.oid.high>>>0).toNumber():t.oid),t.reserveId!=null&&t.hasOwnProperty("reserveId")&&(typeof t.reserveId=="number"?n.reserveId=i.longs===String?String(t.reserveId):t.reserveId:n.reserveId=i.longs===String?r.Long.prototype.toString.call(t.reserveId):i.longs===Number?new r.LongBits(t.reserveId.low>>>0,t.reserveId.high>>>0).toNumber():t.reserveId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.v1.BizReserveActivityParam"},e}(),c.BizJumpLinkParam=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.url=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.v1.BizJumpLinkParam)return t;let i=new u.bilibili.app.viewunite.v1.BizJumpLinkParam;return t.url!=null&&(i.url=String(t.url)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.url=""),t.url!=null&&t.hasOwnProperty("url")&&(n.url=t.url),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.v1.BizJumpLinkParam"},e}(),c.BizReserveGameParam=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.gameId=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.v1.BizReserveGameParam)return t;let i=new u.bilibili.app.viewunite.v1.BizReserveGameParam;return t.gameId!=null&&(r.Long?(i.gameId=r.Long.fromValue(t.gameId)).unsigned=!1:typeof t.gameId=="string"?i.gameId=parseInt(t.gameId,10):typeof t.gameId=="number"?i.gameId=t.gameId:typeof t.gameId=="object"&&(i.gameId=new r.LongBits(t.gameId.low>>>0,t.gameId.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(r.Long){let o=new r.Long(0,0,!1);n.gameId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.gameId=i.longs===String?"0":0;return t.gameId!=null&&t.hasOwnProperty("gameId")&&(typeof t.gameId=="number"?n.gameId=i.longs===String?String(t.gameId):t.gameId:n.gameId=i.longs===String?r.Long.prototype.toString.call(t.gameId):i.longs===Number?new r.LongBits(t.gameId.low>>>0,t.gameId.high>>>0).toNumber():t.gameId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.v1.BizReserveGameParam"},e}(),c.OperationCardContent=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.subtitle=t.string();break}case 3:{o.icon=t.string();break}case 4:{o.buttonTitle=t.string();break}case 5:{o.buttonSelectedTitle=t.string();break}case 6:{o.showSelected=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.v1.OperationCardContent)return t;let i=new u.bilibili.app.viewunite.v1.OperationCardContent;return t.title!=null&&(i.title=String(t.title)),t.subtitle!=null&&(i.subtitle=String(t.subtitle)),t.icon!=null&&(i.icon=String(t.icon)),t.buttonTitle!=null&&(i.buttonTitle=String(t.buttonTitle)),t.buttonSelectedTitle!=null&&(i.buttonSelectedTitle=String(t.buttonSelectedTitle)),t.showSelected!=null&&(i.showSelected=!!t.showSelected),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.title="",n.subtitle="",n.icon="",n.buttonTitle="",n.buttonSelectedTitle="",n.showSelected=!1),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.subtitle!=null&&t.hasOwnProperty("subtitle")&&(n.subtitle=t.subtitle),t.icon!=null&&t.hasOwnProperty("icon")&&(n.icon=t.icon),t.buttonTitle!=null&&t.hasOwnProperty("buttonTitle")&&(n.buttonTitle=t.buttonTitle),t.buttonSelectedTitle!=null&&t.hasOwnProperty("buttonSelectedTitle")&&(n.buttonSelectedTitle=t.buttonSelectedTitle),t.showSelected!=null&&t.hasOwnProperty("showSelected")&&(n.showSelected=t.showSelected),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.v1.OperationCardContent"},e}(),c.VideoViewPoint=function(){function e(l){if(this.points=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.points&&o.points.length||(o.points=[]),o.points.push(u.bilibili.app.viewunite.v1.VideoPoint.decode(t,t.uint32()));break}case 2:{o.pointMaterial=u.bilibili.app.viewunite.v1.PointMaterial.decode(t,t.uint32());break}case 3:{o.pointPermanent=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.v1.VideoViewPoint)return t;let i=new u.bilibili.app.viewunite.v1.VideoViewPoint;if(t.points){if(!Array.isArray(t.points))throw TypeError(".bilibili.app.viewunite.v1.VideoViewPoint.points: array expected");i.points=[];for(let n=0;n>>3){case 1:{o.pvData=t.string();break}case 2:{o.imgXLen=t.int32();break}case 3:{o.imgYLen=t.int32();break}case 4:{o.imgXSize=t.int32();break}case 5:{o.imgYSize=t.int32();break}case 6:{o.image&&o.image.length||(o.image=[]),o.image.push(t.string());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.v1.VideoShot)return t;let i=new u.bilibili.app.viewunite.v1.VideoShot;if(t.pvData!=null&&(i.pvData=String(t.pvData)),t.imgXLen!=null&&(i.imgXLen=t.imgXLen|0),t.imgYLen!=null&&(i.imgYLen=t.imgYLen|0),t.imgXSize!=null&&(i.imgXSize=t.imgXSize|0),t.imgYSize!=null&&(i.imgYSize=t.imgYSize|0),t.image){if(!Array.isArray(t.image))throw TypeError(".bilibili.app.viewunite.v1.VideoShot.image: array expected");i.image=[];for(let n=0;n>>3){case 1:{o.type=t.int32();break}case 2:{o.from=t.int64();break}case 3:{o.to=t.int64();break}case 4:{o.content=t.string();break}case 5:{o.cover=t.string();break}case 6:{o.logoUrl=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.v1.VideoPoint)return t;let i=new u.bilibili.app.viewunite.v1.VideoPoint;return t.type!=null&&(i.type=t.type|0),t.from!=null&&(r.Long?(i.from=r.Long.fromValue(t.from)).unsigned=!1:typeof t.from=="string"?i.from=parseInt(t.from,10):typeof t.from=="number"?i.from=t.from:typeof t.from=="object"&&(i.from=new r.LongBits(t.from.low>>>0,t.from.high>>>0).toNumber())),t.to!=null&&(r.Long?(i.to=r.Long.fromValue(t.to)).unsigned=!1:typeof t.to=="string"?i.to=parseInt(t.to,10):typeof t.to=="number"?i.to=t.to:typeof t.to=="object"&&(i.to=new r.LongBits(t.to.low>>>0,t.to.high>>>0).toNumber())),t.content!=null&&(i.content=String(t.content)),t.cover!=null&&(i.cover=String(t.cover)),t.logoUrl!=null&&(i.logoUrl=String(t.logoUrl)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.type=0,r.Long){let o=new r.Long(0,0,!1);n.from=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.from=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.to=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.to=i.longs===String?"0":0;n.content="",n.cover="",n.logoUrl=""}return t.type!=null&&t.hasOwnProperty("type")&&(n.type=t.type),t.from!=null&&t.hasOwnProperty("from")&&(typeof t.from=="number"?n.from=i.longs===String?String(t.from):t.from:n.from=i.longs===String?r.Long.prototype.toString.call(t.from):i.longs===Number?new r.LongBits(t.from.low>>>0,t.from.high>>>0).toNumber():t.from),t.to!=null&&t.hasOwnProperty("to")&&(typeof t.to=="number"?n.to=i.longs===String?String(t.to):t.to:n.to=i.longs===String?r.Long.prototype.toString.call(t.to):i.longs===Number?new r.LongBits(t.to.low>>>0,t.to.high>>>0).toNumber():t.to),t.content!=null&&t.hasOwnProperty("content")&&(n.content=t.content),t.cover!=null&&t.hasOwnProperty("cover")&&(n.cover=t.cover),t.logoUrl!=null&&t.hasOwnProperty("logoUrl")&&(n.logoUrl=t.logoUrl),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.v1.VideoPoint"},e}(),c.Chronos=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.md5=t.string();break}case 2:{o.file=t.string();break}case 3:{o.sign=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.v1.Chronos)return t;let i=new u.bilibili.app.viewunite.v1.Chronos;return t.md5!=null&&(i.md5=String(t.md5)),t.file!=null&&(i.file=String(t.file)),t.sign!=null&&(i.sign=String(t.sign)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.md5="",n.file="",n.sign=""),t.md5!=null&&t.hasOwnProperty("md5")&&(n.md5=t.md5),t.file!=null&&t.hasOwnProperty("file")&&(n.file=t.file),t.sign!=null&&t.hasOwnProperty("sign")&&(n.sign=t.sign),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.v1.Chronos"},e}(),c.VideoGuide=function(){function e(l){if(this.material=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.material&&o.material.length||(o.material=[]),o.material.push(u.bilibili.app.viewunite.v1.Material.decode(t,t.uint32()));break}case 2:{o.videoPoint=u.bilibili.app.viewunite.v1.VideoViewPoint.decode(t,t.uint32());break}case 3:{o.contractCard=u.bilibili.app.viewunite.v1.ContractCard.decode(t,t.uint32());break}case 4:{o.rightMaterial=u.bilibili.app.viewunite.v1.Material.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.v1.VideoGuide)return t;let i=new u.bilibili.app.viewunite.v1.VideoGuide;if(t.material){if(!Array.isArray(t.material))throw TypeError(".bilibili.app.viewunite.v1.VideoGuide.material: array expected");i.material=[];for(let n=0;n>>3){case 1:{o.showTime&&o.showTime.length||(o.showTime=[]),o.showTime.push(u.bilibili.app.viewunite.v1.ShowTime.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.v1.AttentionCard)return t;let i=new u.bilibili.app.viewunite.v1.AttentionCard;if(t.showTime){if(!Array.isArray(t.showTime))throw TypeError(".bilibili.app.viewunite.v1.AttentionCard.showTime: array expected");i.showTime=[];for(let n=0;n>>3){case 1:{o.displayProgress=t.float();break}case 2:{o.displayAccuracy=t.int64();break}case 3:{o.displayDuration=t.int64();break}case 4:{o.showMode=t.int32();break}case 5:{o.pageType=t.int32();break}case 6:{o.upper=u.bilibili.app.viewunite.v1.UpperInfos.decode(t,t.uint32());break}case 7:{o.isFollowDisplay=t.int32();break}case 8:{o.text=u.bilibili.app.viewunite.v1.ContractText.decode(t,t.uint32());break}case 9:{o.followDisplayEndDuration=t.int64();break}case 10:{o.isPlayDisplay=t.int32();break}case 11:{o.isInteractDisplay=t.int32();break}case 12:{o.playDisplaySwitch=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.v1.ContractCard)return t;let i=new u.bilibili.app.viewunite.v1.ContractCard;if(t.displayProgress!=null&&(i.displayProgress=Number(t.displayProgress)),t.displayAccuracy!=null&&(r.Long?(i.displayAccuracy=r.Long.fromValue(t.displayAccuracy)).unsigned=!1:typeof t.displayAccuracy=="string"?i.displayAccuracy=parseInt(t.displayAccuracy,10):typeof t.displayAccuracy=="number"?i.displayAccuracy=t.displayAccuracy:typeof t.displayAccuracy=="object"&&(i.displayAccuracy=new r.LongBits(t.displayAccuracy.low>>>0,t.displayAccuracy.high>>>0).toNumber())),t.displayDuration!=null&&(r.Long?(i.displayDuration=r.Long.fromValue(t.displayDuration)).unsigned=!1:typeof t.displayDuration=="string"?i.displayDuration=parseInt(t.displayDuration,10):typeof t.displayDuration=="number"?i.displayDuration=t.displayDuration:typeof t.displayDuration=="object"&&(i.displayDuration=new r.LongBits(t.displayDuration.low>>>0,t.displayDuration.high>>>0).toNumber())),t.showMode!=null&&(i.showMode=t.showMode|0),t.pageType!=null&&(i.pageType=t.pageType|0),t.upper!=null){if(typeof t.upper!="object")throw TypeError(".bilibili.app.viewunite.v1.ContractCard.upper: object expected");i.upper=u.bilibili.app.viewunite.v1.UpperInfos.fromObject(t.upper)}if(t.isFollowDisplay!=null&&(i.isFollowDisplay=t.isFollowDisplay|0),t.text!=null){if(typeof t.text!="object")throw TypeError(".bilibili.app.viewunite.v1.ContractCard.text: object expected");i.text=u.bilibili.app.viewunite.v1.ContractText.fromObject(t.text)}return t.followDisplayEndDuration!=null&&(r.Long?(i.followDisplayEndDuration=r.Long.fromValue(t.followDisplayEndDuration)).unsigned=!1:typeof t.followDisplayEndDuration=="string"?i.followDisplayEndDuration=parseInt(t.followDisplayEndDuration,10):typeof t.followDisplayEndDuration=="number"?i.followDisplayEndDuration=t.followDisplayEndDuration:typeof t.followDisplayEndDuration=="object"&&(i.followDisplayEndDuration=new r.LongBits(t.followDisplayEndDuration.low>>>0,t.followDisplayEndDuration.high>>>0).toNumber())),t.isPlayDisplay!=null&&(i.isPlayDisplay=t.isPlayDisplay|0),t.isInteractDisplay!=null&&(i.isInteractDisplay=t.isInteractDisplay|0),t.playDisplaySwitch!=null&&(i.playDisplaySwitch=!!t.playDisplaySwitch),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.displayProgress=0,r.Long){let o=new r.Long(0,0,!1);n.displayAccuracy=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.displayAccuracy=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.displayDuration=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.displayDuration=i.longs===String?"0":0;if(n.showMode=0,n.pageType=0,n.upper=null,n.isFollowDisplay=0,n.text=null,r.Long){let o=new r.Long(0,0,!1);n.followDisplayEndDuration=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.followDisplayEndDuration=i.longs===String?"0":0;n.isPlayDisplay=0,n.isInteractDisplay=0,n.playDisplaySwitch=!1}return t.displayProgress!=null&&t.hasOwnProperty("displayProgress")&&(n.displayProgress=i.json&&!isFinite(t.displayProgress)?String(t.displayProgress):t.displayProgress),t.displayAccuracy!=null&&t.hasOwnProperty("displayAccuracy")&&(typeof t.displayAccuracy=="number"?n.displayAccuracy=i.longs===String?String(t.displayAccuracy):t.displayAccuracy:n.displayAccuracy=i.longs===String?r.Long.prototype.toString.call(t.displayAccuracy):i.longs===Number?new r.LongBits(t.displayAccuracy.low>>>0,t.displayAccuracy.high>>>0).toNumber():t.displayAccuracy),t.displayDuration!=null&&t.hasOwnProperty("displayDuration")&&(typeof t.displayDuration=="number"?n.displayDuration=i.longs===String?String(t.displayDuration):t.displayDuration:n.displayDuration=i.longs===String?r.Long.prototype.toString.call(t.displayDuration):i.longs===Number?new r.LongBits(t.displayDuration.low>>>0,t.displayDuration.high>>>0).toNumber():t.displayDuration),t.showMode!=null&&t.hasOwnProperty("showMode")&&(n.showMode=t.showMode),t.pageType!=null&&t.hasOwnProperty("pageType")&&(n.pageType=t.pageType),t.upper!=null&&t.hasOwnProperty("upper")&&(n.upper=u.bilibili.app.viewunite.v1.UpperInfos.toObject(t.upper,i)),t.isFollowDisplay!=null&&t.hasOwnProperty("isFollowDisplay")&&(n.isFollowDisplay=t.isFollowDisplay),t.text!=null&&t.hasOwnProperty("text")&&(n.text=u.bilibili.app.viewunite.v1.ContractText.toObject(t.text,i)),t.followDisplayEndDuration!=null&&t.hasOwnProperty("followDisplayEndDuration")&&(typeof t.followDisplayEndDuration=="number"?n.followDisplayEndDuration=i.longs===String?String(t.followDisplayEndDuration):t.followDisplayEndDuration:n.followDisplayEndDuration=i.longs===String?r.Long.prototype.toString.call(t.followDisplayEndDuration):i.longs===Number?new r.LongBits(t.followDisplayEndDuration.low>>>0,t.followDisplayEndDuration.high>>>0).toNumber():t.followDisplayEndDuration),t.isPlayDisplay!=null&&t.hasOwnProperty("isPlayDisplay")&&(n.isPlayDisplay=t.isPlayDisplay),t.isInteractDisplay!=null&&t.hasOwnProperty("isInteractDisplay")&&(n.isInteractDisplay=t.isInteractDisplay),t.playDisplaySwitch!=null&&t.hasOwnProperty("playDisplaySwitch")&&(n.playDisplaySwitch=t.playDisplaySwitch),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.v1.ContractCard"},e}(),c.ContractText=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.subtitle=t.string();break}case 3:{o.inlineTitle=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.v1.ContractText)return t;let i=new u.bilibili.app.viewunite.v1.ContractText;return t.title!=null&&(i.title=String(t.title)),t.subtitle!=null&&(i.subtitle=String(t.subtitle)),t.inlineTitle!=null&&(i.inlineTitle=String(t.inlineTitle)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.title="",n.subtitle="",n.inlineTitle=""),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.subtitle!=null&&t.hasOwnProperty("subtitle")&&(n.subtitle=t.subtitle),t.inlineTitle!=null&&t.hasOwnProperty("inlineTitle")&&(n.inlineTitle=t.inlineTitle),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.v1.ContractText"},e}(),c.UpperInfos=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.fansCount=t.int64();break}case 2:{o.arcCountLastHalfYear=t.int64();break}case 3:{o.firstUpDates=t.int64();break}case 4:{o.totalPlayCount=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.v1.UpperInfos)return t;let i=new u.bilibili.app.viewunite.v1.UpperInfos;return t.fansCount!=null&&(r.Long?(i.fansCount=r.Long.fromValue(t.fansCount)).unsigned=!1:typeof t.fansCount=="string"?i.fansCount=parseInt(t.fansCount,10):typeof t.fansCount=="number"?i.fansCount=t.fansCount:typeof t.fansCount=="object"&&(i.fansCount=new r.LongBits(t.fansCount.low>>>0,t.fansCount.high>>>0).toNumber())),t.arcCountLastHalfYear!=null&&(r.Long?(i.arcCountLastHalfYear=r.Long.fromValue(t.arcCountLastHalfYear)).unsigned=!1:typeof t.arcCountLastHalfYear=="string"?i.arcCountLastHalfYear=parseInt(t.arcCountLastHalfYear,10):typeof t.arcCountLastHalfYear=="number"?i.arcCountLastHalfYear=t.arcCountLastHalfYear:typeof t.arcCountLastHalfYear=="object"&&(i.arcCountLastHalfYear=new r.LongBits(t.arcCountLastHalfYear.low>>>0,t.arcCountLastHalfYear.high>>>0).toNumber())),t.firstUpDates!=null&&(r.Long?(i.firstUpDates=r.Long.fromValue(t.firstUpDates)).unsigned=!1:typeof t.firstUpDates=="string"?i.firstUpDates=parseInt(t.firstUpDates,10):typeof t.firstUpDates=="number"?i.firstUpDates=t.firstUpDates:typeof t.firstUpDates=="object"&&(i.firstUpDates=new r.LongBits(t.firstUpDates.low>>>0,t.firstUpDates.high>>>0).toNumber())),t.totalPlayCount!=null&&(r.Long?(i.totalPlayCount=r.Long.fromValue(t.totalPlayCount)).unsigned=!1:typeof t.totalPlayCount=="string"?i.totalPlayCount=parseInt(t.totalPlayCount,10):typeof t.totalPlayCount=="number"?i.totalPlayCount=t.totalPlayCount:typeof t.totalPlayCount=="object"&&(i.totalPlayCount=new r.LongBits(t.totalPlayCount.low>>>0,t.totalPlayCount.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.fansCount=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.fansCount=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.arcCountLastHalfYear=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.arcCountLastHalfYear=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.firstUpDates=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.firstUpDates=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.totalPlayCount=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.totalPlayCount=i.longs===String?"0":0}return t.fansCount!=null&&t.hasOwnProperty("fansCount")&&(typeof t.fansCount=="number"?n.fansCount=i.longs===String?String(t.fansCount):t.fansCount:n.fansCount=i.longs===String?r.Long.prototype.toString.call(t.fansCount):i.longs===Number?new r.LongBits(t.fansCount.low>>>0,t.fansCount.high>>>0).toNumber():t.fansCount),t.arcCountLastHalfYear!=null&&t.hasOwnProperty("arcCountLastHalfYear")&&(typeof t.arcCountLastHalfYear=="number"?n.arcCountLastHalfYear=i.longs===String?String(t.arcCountLastHalfYear):t.arcCountLastHalfYear:n.arcCountLastHalfYear=i.longs===String?r.Long.prototype.toString.call(t.arcCountLastHalfYear):i.longs===Number?new r.LongBits(t.arcCountLastHalfYear.low>>>0,t.arcCountLastHalfYear.high>>>0).toNumber():t.arcCountLastHalfYear),t.firstUpDates!=null&&t.hasOwnProperty("firstUpDates")&&(typeof t.firstUpDates=="number"?n.firstUpDates=i.longs===String?String(t.firstUpDates):t.firstUpDates:n.firstUpDates=i.longs===String?r.Long.prototype.toString.call(t.firstUpDates):i.longs===Number?new r.LongBits(t.firstUpDates.low>>>0,t.firstUpDates.high>>>0).toNumber():t.firstUpDates),t.totalPlayCount!=null&&t.hasOwnProperty("totalPlayCount")&&(typeof t.totalPlayCount=="number"?n.totalPlayCount=i.longs===String?String(t.totalPlayCount):t.totalPlayCount:n.totalPlayCount=i.longs===String?r.Long.prototype.toString.call(t.totalPlayCount):i.longs===Number?new r.LongBits(t.totalPlayCount.low>>>0,t.totalPlayCount.high>>>0).toNumber():t.totalPlayCount),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.v1.UpperInfos"},e}(),c.CommandDm=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.id=t.int64();break}case 2:{o.oid=t.int64();break}case 3:{o.mid=t.int64();break}case 4:{o.command=t.string();break}case 5:{o.content=t.string();break}case 6:{o.progress=t.int32();break}case 7:{o.ctime=t.string();break}case 8:{o.mtime=t.string();break}case 9:{o.extra=t.string();break}case 10:{o.idStr=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.v1.CommandDm)return t;let i=new u.bilibili.app.viewunite.v1.CommandDm;return t.id!=null&&(r.Long?(i.id=r.Long.fromValue(t.id)).unsigned=!1:typeof t.id=="string"?i.id=parseInt(t.id,10):typeof t.id=="number"?i.id=t.id:typeof t.id=="object"&&(i.id=new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber())),t.oid!=null&&(r.Long?(i.oid=r.Long.fromValue(t.oid)).unsigned=!1:typeof t.oid=="string"?i.oid=parseInt(t.oid,10):typeof t.oid=="number"?i.oid=t.oid:typeof t.oid=="object"&&(i.oid=new r.LongBits(t.oid.low>>>0,t.oid.high>>>0).toNumber())),t.mid!=null&&(r.Long?(i.mid=r.Long.fromValue(t.mid)).unsigned=!1:typeof t.mid=="string"?i.mid=parseInt(t.mid,10):typeof t.mid=="number"?i.mid=t.mid:typeof t.mid=="object"&&(i.mid=new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber())),t.command!=null&&(i.command=String(t.command)),t.content!=null&&(i.content=String(t.content)),t.progress!=null&&(i.progress=t.progress|0),t.ctime!=null&&(i.ctime=String(t.ctime)),t.mtime!=null&&(i.mtime=String(t.mtime)),t.extra!=null&&(i.extra=String(t.extra)),t.idStr!=null&&(i.idStr=String(t.idStr)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.id=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.id=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.oid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.oid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.mid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mid=i.longs===String?"0":0;n.command="",n.content="",n.progress=0,n.ctime="",n.mtime="",n.extra="",n.idStr=""}return t.id!=null&&t.hasOwnProperty("id")&&(typeof t.id=="number"?n.id=i.longs===String?String(t.id):t.id:n.id=i.longs===String?r.Long.prototype.toString.call(t.id):i.longs===Number?new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber():t.id),t.oid!=null&&t.hasOwnProperty("oid")&&(typeof t.oid=="number"?n.oid=i.longs===String?String(t.oid):t.oid:n.oid=i.longs===String?r.Long.prototype.toString.call(t.oid):i.longs===Number?new r.LongBits(t.oid.low>>>0,t.oid.high>>>0).toNumber():t.oid),t.mid!=null&&t.hasOwnProperty("mid")&&(typeof t.mid=="number"?n.mid=i.longs===String?String(t.mid):t.mid:n.mid=i.longs===String?r.Long.prototype.toString.call(t.mid):i.longs===Number?new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber():t.mid),t.command!=null&&t.hasOwnProperty("command")&&(n.command=t.command),t.content!=null&&t.hasOwnProperty("content")&&(n.content=t.content),t.progress!=null&&t.hasOwnProperty("progress")&&(n.progress=t.progress),t.ctime!=null&&t.hasOwnProperty("ctime")&&(n.ctime=t.ctime),t.mtime!=null&&t.hasOwnProperty("mtime")&&(n.mtime=t.mtime),t.extra!=null&&t.hasOwnProperty("extra")&&(n.extra=t.extra),t.idStr!=null&&t.hasOwnProperty("idStr")&&(n.idStr=t.idStr),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.v1.CommandDm"},e}(),c.ShowTime=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.startTime=t.int32();break}case 2:{o.endTime=t.int32();break}case 3:{o.posX=t.double();break}case 4:{o.posY=t.double();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.v1.ShowTime)return t;let i=new u.bilibili.app.viewunite.v1.ShowTime;return t.startTime!=null&&(i.startTime=t.startTime|0),t.endTime!=null&&(i.endTime=t.endTime|0),t.posX!=null&&(i.posX=Number(t.posX)),t.posY!=null&&(i.posY=Number(t.posY)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.startTime=0,n.endTime=0,n.posX=0,n.posY=0),t.startTime!=null&&t.hasOwnProperty("startTime")&&(n.startTime=t.startTime),t.endTime!=null&&t.hasOwnProperty("endTime")&&(n.endTime=t.endTime),t.posX!=null&&t.hasOwnProperty("posX")&&(n.posX=i.json&&!isFinite(t.posX)?String(t.posX):t.posX),t.posY!=null&&t.hasOwnProperty("posY")&&(n.posY=i.json&&!isFinite(t.posY)?String(t.posY):t.posY),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.v1.ShowTime"},e}(),c.PointMaterial=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.url=t.string();break}case 2:{o.materialSource=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.v1.PointMaterial)return t;let i=new u.bilibili.app.viewunite.v1.PointMaterial;switch(t.url!=null&&(i.url=String(t.url)),t.materialSource){default:if(typeof t.materialSource=="number"){i.materialSource=t.materialSource;break}break;case"DEFAULT":case 0:i.materialSource=0;break;case"BIJIAN":case 1:i.materialSource=1;break}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.url="",n.materialSource=i.enums===String?"DEFAULT":0),t.url!=null&&t.hasOwnProperty("url")&&(n.url=t.url),t.materialSource!=null&&t.hasOwnProperty("materialSource")&&(n.materialSource=i.enums===String?u.bilibili.app.viewunite.v1.MaterialSource[t.materialSource]===void 0?t.materialSource:u.bilibili.app.viewunite.v1.MaterialSource[t.materialSource]:t.materialSource),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.viewunite.v1.PointMaterial"},e}(),c.Material=function(){function e(l){if(this.report={},l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.icon=t.string();break}case 2:{o.text=t.string();break}case 3:{o.url=t.string();break}case 4:{o.type=t.int32();break}case 5:{o.param=t.string();break}case 6:{o.staticIcon=t.string();break}case 7:{o.bgColor=t.string();break}case 8:{o.bgPic=t.string();break}case 9:{o.jumpType=t.int32();break}case 10:{o.pageType=t.int32();break}case 11:{o.needLogin=t.bool();break}case 12:{o.report===r.emptyObject&&(o.report={});let v=t.uint32()+t.pos;for(a="",y="";t.pos>>3){case 1:a=t.string();break;case 2:y=t.string();break;default:t.skipType(g&7);break}}o.report[a]=y;break}default:t.skipType(s&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.viewunite.v1.Material)return t;let i=new u.bilibili.app.viewunite.v1.Material;switch(t.icon!=null&&(i.icon=String(t.icon)),t.text!=null&&(i.text=String(t.text)),t.url!=null&&(i.url=String(t.url)),t.type){default:if(typeof t.type=="number"){i.type=t.type;break}break;case"NONE":case 0:i.type=0;break;case"ACTIVITY":case 1:i.type=1;break;case"BGM":case 2:i.type=2;break;case"EFFECT":case 3:i.type=3;break;case"SHOOT_SAME":case 4:i.type=4;break;case"SHOOT_TOGETHER":case 5:i.type=5;break;case"ACTIVITY_ICON":case 6:i.type=6;break;case"NEW_BGM":case 7:i.type=7;break;case"GENERAL_TYPE":case 8:i.type=8;break}switch(t.param!=null&&(i.param=String(t.param)),t.staticIcon!=null&&(i.staticIcon=String(t.staticIcon)),t.bgColor!=null&&(i.bgColor=String(t.bgColor)),t.bgPic!=null&&(i.bgPic=String(t.bgPic)),t.jumpType!=null&&(i.jumpType=t.jumpType|0),t.pageType){default:if(typeof t.pageType=="number"){i.pageType=t.pageType;break}break;case"H5":case 0:i.pageType=0;break;case"NA":case 1:i.pageType=1;break}if(t.needLogin!=null&&(i.needLogin=!!t.needLogin),t.report){if(typeof t.report!="object")throw TypeError(".bilibili.app.viewunite.v1.Material.report: object expected");i.report={};for(let n=Object.keys(t.report),o=0;o>>3){default:t.skipType(a&7);break}}return o},e.fromObject=function(t){return t instanceof u.bilibili.app.wall.v1.RuleRequest?t:new u.bilibili.app.wall.v1.RuleRequest},e.toObject=function(){return{}},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.app.wall.v1.RuleRequest"},e}(),c.RulesReply=function(){function e(l){if(this.RulesInfo={},l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.RulesInfo===r.emptyObject&&(o.RulesInfo={});let v=t.uint32()+t.pos;for(a="",y=null;t.pos>>3){case 1:a=t.string();break;case 2:y=u.bilibili.app.wall.v1.RulesInfo.decode(t,t.uint32());break;default:t.skipType(g&7);break}}o.RulesInfo[a]=y;break}case 2:{o.HashValue=t.string();break}default:t.skipType(s&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.wall.v1.RulesReply)return t;let i=new u.bilibili.app.wall.v1.RulesReply;if(t.RulesInfo){if(typeof t.RulesInfo!="object")throw TypeError(".bilibili.app.wall.v1.RulesReply.RulesInfo: object expected");i.RulesInfo={};for(let n=Object.keys(t.RulesInfo),o=0;o>>3){case 1:{o.RulesInfo&&o.RulesInfo.length||(o.RulesInfo=[]),o.RulesInfo.push(u.bilibili.app.wall.v1.RuleInfo.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.wall.v1.RulesInfo)return t;let i=new u.bilibili.app.wall.v1.RulesInfo;if(t.RulesInfo){if(!Array.isArray(t.RulesInfo))throw TypeError(".bilibili.app.wall.v1.RulesInfo.RulesInfo: array expected");i.RulesInfo=[];for(let n=0;n>>3){case 1:{o.tf=t.bool();break}case 2:{o.m=t.string();break}case 3:{o.a=t.string();break}case 4:{o.p=t.string();break}case 5:{o.aBackup&&o.aBackup.length||(o.aBackup=[]),o.aBackup.push(t.string());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.app.wall.v1.RuleInfo)return t;let i=new u.bilibili.app.wall.v1.RuleInfo;if(t.tf!=null&&(i.tf=!!t.tf),t.m!=null&&(i.m=String(t.m)),t.a!=null&&(i.a=String(t.a)),t.p!=null&&(i.p=String(t.p)),t.aBackup){if(!Array.isArray(t.aBackup))throw TypeError(".bilibili.app.wall.v1.RuleInfo.aBackup: array expected");i.aBackup=[];for(let n=0;n>>3){case 1:{o.targetPath=t.string();break}case 2:{o.bizBody=u.google.protobuf.Any.decode(t,t.uint32());break}case 3:{o.common=u.bilibili.broadcast.live.common.Common.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.live.common.BroadcastMessage)return t;let i=new u.bilibili.broadcast.live.common.BroadcastMessage;if(t.targetPath!=null&&(i.targetPath=String(t.targetPath)),t.bizBody!=null){if(typeof t.bizBody!="object")throw TypeError(".bilibili.broadcast.live.common.BroadcastMessage.bizBody: object expected");i.bizBody=u.google.protobuf.Any.fromObject(t.bizBody)}if(t.common!=null){if(typeof t.common!="object")throw TypeError(".bilibili.broadcast.live.common.BroadcastMessage.common: object expected");i.common=u.bilibili.broadcast.live.common.Common.fromObject(t.common)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.targetPath="",n.bizBody=null,n.common=null),t.targetPath!=null&&t.hasOwnProperty("targetPath")&&(n.targetPath=t.targetPath),t.bizBody!=null&&t.hasOwnProperty("bizBody")&&(n.bizBody=u.google.protobuf.Any.toObject(t.bizBody,i)),t.common!=null&&t.hasOwnProperty("common")&&(n.common=u.bilibili.broadcast.live.common.Common.toObject(t.common,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.live.common.BroadcastMessage"},e}(),c.Common=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.messageId=t.int64();break}case 2:{o.timestamp=t.int64();break}case 3:{o.cmd=t.string();break}case 4:{o.dmScore=t.int64();break}case 5:{o.format=t.int32();break}case 6:{o.sort=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.live.common.Common)return t;let i=new u.bilibili.broadcast.live.common.Common;switch(t.messageId!=null&&(r.Long?(i.messageId=r.Long.fromValue(t.messageId)).unsigned=!1:typeof t.messageId=="string"?i.messageId=parseInt(t.messageId,10):typeof t.messageId=="number"?i.messageId=t.messageId:typeof t.messageId=="object"&&(i.messageId=new r.LongBits(t.messageId.low>>>0,t.messageId.high>>>0).toNumber())),t.timestamp!=null&&(r.Long?(i.timestamp=r.Long.fromValue(t.timestamp)).unsigned=!1:typeof t.timestamp=="string"?i.timestamp=parseInt(t.timestamp,10):typeof t.timestamp=="number"?i.timestamp=t.timestamp:typeof t.timestamp=="object"&&(i.timestamp=new r.LongBits(t.timestamp.low>>>0,t.timestamp.high>>>0).toNumber())),t.cmd!=null&&(i.cmd=String(t.cmd)),t.dmScore!=null&&(r.Long?(i.dmScore=r.Long.fromValue(t.dmScore)).unsigned=!1:typeof t.dmScore=="string"?i.dmScore=parseInt(t.dmScore,10):typeof t.dmScore=="number"?i.dmScore=t.dmScore:typeof t.dmScore=="object"&&(i.dmScore=new r.LongBits(t.dmScore.low>>>0,t.dmScore.high>>>0).toNumber())),t.format){default:if(typeof t.format=="number"){i.format=t.format;break}break;case"MessageFormatUnknown":case 0:i.format=0;break;case"MessageFormatProto":case 1:i.format=1;break;case"MessageFormatJSON":case 2:i.format=2;break}return t.sort!=null&&(r.Long?(i.sort=r.Long.fromValue(t.sort)).unsigned=!1:typeof t.sort=="string"?i.sort=parseInt(t.sort,10):typeof t.sort=="number"?i.sort=t.sort:typeof t.sort=="object"&&(i.sort=new r.LongBits(t.sort.low>>>0,t.sort.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.messageId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.messageId=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.timestamp=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.timestamp=i.longs===String?"0":0;if(n.cmd="",r.Long){let o=new r.Long(0,0,!1);n.dmScore=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.dmScore=i.longs===String?"0":0;if(n.format=i.enums===String?"MessageFormatUnknown":0,r.Long){let o=new r.Long(0,0,!1);n.sort=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.sort=i.longs===String?"0":0}return t.messageId!=null&&t.hasOwnProperty("messageId")&&(typeof t.messageId=="number"?n.messageId=i.longs===String?String(t.messageId):t.messageId:n.messageId=i.longs===String?r.Long.prototype.toString.call(t.messageId):i.longs===Number?new r.LongBits(t.messageId.low>>>0,t.messageId.high>>>0).toNumber():t.messageId),t.timestamp!=null&&t.hasOwnProperty("timestamp")&&(typeof t.timestamp=="number"?n.timestamp=i.longs===String?String(t.timestamp):t.timestamp:n.timestamp=i.longs===String?r.Long.prototype.toString.call(t.timestamp):i.longs===Number?new r.LongBits(t.timestamp.low>>>0,t.timestamp.high>>>0).toNumber():t.timestamp),t.cmd!=null&&t.hasOwnProperty("cmd")&&(n.cmd=t.cmd),t.dmScore!=null&&t.hasOwnProperty("dmScore")&&(typeof t.dmScore=="number"?n.dmScore=i.longs===String?String(t.dmScore):t.dmScore:n.dmScore=i.longs===String?r.Long.prototype.toString.call(t.dmScore):i.longs===Number?new r.LongBits(t.dmScore.low>>>0,t.dmScore.high>>>0).toNumber():t.dmScore),t.format!=null&&t.hasOwnProperty("format")&&(n.format=i.enums===String?u.bilibili.broadcast.live.common.MessageFormat[t.format]===void 0?t.format:u.bilibili.broadcast.live.common.MessageFormat[t.format]:t.format),t.sort!=null&&t.hasOwnProperty("sort")&&(typeof t.sort=="number"?n.sort=i.longs===String?String(t.sort):t.sort:n.sort=i.longs===String?r.Long.prototype.toString.call(t.sort):i.longs===Number?new r.LongBits(t.sort.low>>>0,t.sort.high>>>0).toNumber():t.sort),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.live.common.Common"},e}(),c.MessageFormat=function(){let e={},l=Object.create(e);return l[e[0]="MessageFormatUnknown"]=0,l[e[1]="MessageFormatProto"]=1,l[e[2]="MessageFormatJSON"]=2,l}(),c}(),p.multi_conn=function(){let c={};return c.ScoreEvent=function(){function e(l){if(this.data=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.data&&o.data.length||(o.data=[]),o.data.push(u.bilibili.broadcast.live.multi_conn.ScoreEvent.info.decode(t,t.uint32()));break}case 2:{o.invokingTime=t.int64();break}case 3:{o.version=t.int64();break}case 4:{o.layout=t.string();break}case 5:{o.roomStatus=t.int64();break}case 6:{o.bizSessionId=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.live.multi_conn.ScoreEvent)return t;let i=new u.bilibili.broadcast.live.multi_conn.ScoreEvent;if(t.data){if(!Array.isArray(t.data))throw TypeError(".bilibili.broadcast.live.multi_conn.ScoreEvent.data: array expected");i.data=[];for(let n=0;n>>0,t.invokingTime.high>>>0).toNumber())),t.version!=null&&(r.Long?(i.version=r.Long.fromValue(t.version)).unsigned=!1:typeof t.version=="string"?i.version=parseInt(t.version,10):typeof t.version=="number"?i.version=t.version:typeof t.version=="object"&&(i.version=new r.LongBits(t.version.low>>>0,t.version.high>>>0).toNumber())),t.layout!=null&&(i.layout=String(t.layout)),t.roomStatus!=null&&(r.Long?(i.roomStatus=r.Long.fromValue(t.roomStatus)).unsigned=!1:typeof t.roomStatus=="string"?i.roomStatus=parseInt(t.roomStatus,10):typeof t.roomStatus=="number"?i.roomStatus=t.roomStatus:typeof t.roomStatus=="object"&&(i.roomStatus=new r.LongBits(t.roomStatus.low>>>0,t.roomStatus.high>>>0).toNumber())),t.bizSessionId!=null&&(i.bizSessionId=String(t.bizSessionId)),i},e.toObject=function(t,i){i||(i={});let n={};if((i.arrays||i.defaults)&&(n.data=[]),i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.invokingTime=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.invokingTime=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.version=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.version=i.longs===String?"0":0;if(n.layout="",r.Long){let o=new r.Long(0,0,!1);n.roomStatus=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.roomStatus=i.longs===String?"0":0;n.bizSessionId=""}if(t.data&&t.data.length){n.data=[];for(let o=0;o>>0,t.invokingTime.high>>>0).toNumber():t.invokingTime),t.version!=null&&t.hasOwnProperty("version")&&(typeof t.version=="number"?n.version=i.longs===String?String(t.version):t.version:n.version=i.longs===String?r.Long.prototype.toString.call(t.version):i.longs===Number?new r.LongBits(t.version.low>>>0,t.version.high>>>0).toNumber():t.version),t.layout!=null&&t.hasOwnProperty("layout")&&(n.layout=t.layout),t.roomStatus!=null&&t.hasOwnProperty("roomStatus")&&(typeof t.roomStatus=="number"?n.roomStatus=i.longs===String?String(t.roomStatus):t.roomStatus:n.roomStatus=i.longs===String?r.Long.prototype.toString.call(t.roomStatus):i.longs===Number?new r.LongBits(t.roomStatus.low>>>0,t.roomStatus.high>>>0).toNumber():t.roomStatus),t.bizSessionId!=null&&t.hasOwnProperty("bizSessionId")&&(n.bizSessionId=t.bizSessionId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.live.multi_conn.ScoreEvent"},e.info=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.uid=i.int64();break}case 2:{a.roomId=i.int64();break}case 3:{a.avatar=i.string();break}case 4:{a.nickname=i.string();break}case 5:{a.price=i.int64();break}case 6:{a.priceText=i.string();break}case 7:{a.gender=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.broadcast.live.multi_conn.ScoreEvent.info)return i;let n=new u.bilibili.broadcast.live.multi_conn.ScoreEvent.info;return i.uid!=null&&(r.Long?(n.uid=r.Long.fromValue(i.uid)).unsigned=!1:typeof i.uid=="string"?n.uid=parseInt(i.uid,10):typeof i.uid=="number"?n.uid=i.uid:typeof i.uid=="object"&&(n.uid=new r.LongBits(i.uid.low>>>0,i.uid.high>>>0).toNumber())),i.roomId!=null&&(r.Long?(n.roomId=r.Long.fromValue(i.roomId)).unsigned=!1:typeof i.roomId=="string"?n.roomId=parseInt(i.roomId,10):typeof i.roomId=="number"?n.roomId=i.roomId:typeof i.roomId=="object"&&(n.roomId=new r.LongBits(i.roomId.low>>>0,i.roomId.high>>>0).toNumber())),i.avatar!=null&&(n.avatar=String(i.avatar)),i.nickname!=null&&(n.nickname=String(i.nickname)),i.price!=null&&(r.Long?(n.price=r.Long.fromValue(i.price)).unsigned=!1:typeof i.price=="string"?n.price=parseInt(i.price,10):typeof i.price=="number"?n.price=i.price:typeof i.price=="object"&&(n.price=new r.LongBits(i.price.low>>>0,i.price.high>>>0).toNumber())),i.priceText!=null&&(n.priceText=String(i.priceText)),i.gender!=null&&(r.Long?(n.gender=r.Long.fromValue(i.gender)).unsigned=!1:typeof i.gender=="string"?n.gender=parseInt(i.gender,10):typeof i.gender=="number"?n.gender=i.gender:typeof i.gender=="object"&&(n.gender=new r.LongBits(i.gender.low>>>0,i.gender.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.uid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.uid=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.roomId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.roomId=n.longs===String?"0":0;if(o.avatar="",o.nickname="",r.Long){let a=new r.Long(0,0,!1);o.price=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.price=n.longs===String?"0":0;if(o.priceText="",r.Long){let a=new r.Long(0,0,!1);o.gender=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.gender=n.longs===String?"0":0}return i.uid!=null&&i.hasOwnProperty("uid")&&(typeof i.uid=="number"?o.uid=n.longs===String?String(i.uid):i.uid:o.uid=n.longs===String?r.Long.prototype.toString.call(i.uid):n.longs===Number?new r.LongBits(i.uid.low>>>0,i.uid.high>>>0).toNumber():i.uid),i.roomId!=null&&i.hasOwnProperty("roomId")&&(typeof i.roomId=="number"?o.roomId=n.longs===String?String(i.roomId):i.roomId:o.roomId=n.longs===String?r.Long.prototype.toString.call(i.roomId):n.longs===Number?new r.LongBits(i.roomId.low>>>0,i.roomId.high>>>0).toNumber():i.roomId),i.avatar!=null&&i.hasOwnProperty("avatar")&&(o.avatar=i.avatar),i.nickname!=null&&i.hasOwnProperty("nickname")&&(o.nickname=i.nickname),i.price!=null&&i.hasOwnProperty("price")&&(typeof i.price=="number"?o.price=n.longs===String?String(i.price):i.price:o.price=n.longs===String?r.Long.prototype.toString.call(i.price):n.longs===Number?new r.LongBits(i.price.low>>>0,i.price.high>>>0).toNumber():i.price),i.priceText!=null&&i.hasOwnProperty("priceText")&&(o.priceText=i.priceText),i.gender!=null&&i.hasOwnProperty("gender")&&(typeof i.gender=="number"?o.gender=n.longs===String?String(i.gender):i.gender:o.gender=n.longs===String?r.Long.prototype.toString.call(i.gender):n.longs===Number?new r.LongBits(i.gender.low>>>0,i.gender.high>>>0).toNumber():i.gender),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.broadcast.live.multi_conn.ScoreEvent.info"},l}(),e}(),c}(),p.pmms=function(){let c={};return c.wrapper=function(){let e={};return e.JSON=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.data=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.broadcast.live.pmms.wrapper.JSON)return i;let n=new u.bilibili.broadcast.live.pmms.wrapper.JSON;return i.data!=null&&(n.data=String(i.data)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.data=""),i.data!=null&&i.hasOwnProperty("data")&&(o.data=i.data),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.broadcast.live.pmms.wrapper.JSON"},l}(),e}(),c.dial=function(){let e={};return e.Dial=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.ts=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.broadcast.live.pmms.dial.Dial)return i;let n=new u.bilibili.broadcast.live.pmms.dial.Dial;return i.ts!=null&&(r.Long?(n.ts=r.Long.fromValue(i.ts)).unsigned=!1:typeof i.ts=="string"?n.ts=parseInt(i.ts,10):typeof i.ts=="number"?n.ts=i.ts:typeof i.ts=="object"&&(n.ts=new r.LongBits(i.ts.low>>>0,i.ts.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults)if(r.Long){let a=new r.Long(0,0,!1);o.ts=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.ts=n.longs===String?"0":0;return i.ts!=null&&i.hasOwnProperty("ts")&&(typeof i.ts=="number"?o.ts=n.longs===String?String(i.ts):i.ts:o.ts=n.longs===String?r.Long.prototype.toString.call(i.ts):n.longs===Number?new r.LongBits(i.ts.low>>>0,i.ts.high>>>0).toNumber():i.ts),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.broadcast.live.pmms.dial.Dial"},l}(),e.DialShared=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.ts=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.broadcast.live.pmms.dial.DialShared)return i;let n=new u.bilibili.broadcast.live.pmms.dial.DialShared;return i.ts!=null&&(r.Long?(n.ts=r.Long.fromValue(i.ts)).unsigned=!1:typeof i.ts=="string"?n.ts=parseInt(i.ts,10):typeof i.ts=="number"?n.ts=i.ts:typeof i.ts=="object"&&(n.ts=new r.LongBits(i.ts.low>>>0,i.ts.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults)if(r.Long){let a=new r.Long(0,0,!1);o.ts=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.ts=n.longs===String?"0":0;return i.ts!=null&&i.hasOwnProperty("ts")&&(typeof i.ts=="number"?o.ts=n.longs===String?String(i.ts):i.ts:o.ts=n.longs===String?r.Long.prototype.toString.call(i.ts):n.longs===Number?new r.LongBits(i.ts.low>>>0,i.ts.high>>>0).toNumber():i.ts),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.broadcast.live.pmms.dial.DialShared"},l}(),e}(),c.message=function(){let e={};return e.ControlMessage=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.control=u.bilibili.pmms.v1.ControlParams.decode(i,i.uint32());break}case 2:{a.roomId=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.broadcast.live.pmms.message.ControlMessage)return i;let n=new u.bilibili.broadcast.live.pmms.message.ControlMessage;if(i.control!=null){if(typeof i.control!="object")throw TypeError(".bilibili.broadcast.live.pmms.message.ControlMessage.control: object expected");n.control=u.bilibili.pmms.v1.ControlParams.fromObject(i.control)}return i.roomId!=null&&(r.Long?(n.roomId=r.Long.fromValue(i.roomId)).unsigned=!1:typeof i.roomId=="string"?n.roomId=parseInt(i.roomId,10):typeof i.roomId=="number"?n.roomId=i.roomId:typeof i.roomId=="object"&&(n.roomId=new r.LongBits(i.roomId.low>>>0,i.roomId.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults)if(o.control=null,r.Long){let a=new r.Long(0,0,!1);o.roomId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.roomId=n.longs===String?"0":0;return i.control!=null&&i.hasOwnProperty("control")&&(o.control=u.bilibili.pmms.v1.ControlParams.toObject(i.control,n)),i.roomId!=null&&i.hasOwnProperty("roomId")&&(typeof i.roomId=="number"?o.roomId=n.longs===String?String(i.roomId):i.roomId:o.roomId=n.longs===String?r.Long.prototype.toString.call(i.roomId):n.longs===Number?new r.LongBits(i.roomId.low>>>0,i.roomId.high>>>0).toNumber():i.roomId),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.broadcast.live.pmms.message.ControlMessage"},l}(),e}(),c}(),p.universal_interact=function(){let c={};return c.PlayMode=function(){let e={},l=Object.create(e);return l[e[0]="play_mode_default"]=0,l[e[1]="play_mode_explicit"]=1,l}(),c.SubMode=function(){let e={},l=Object.create(e);return l[e[0]="sub_mode_none"]=0,l[e[1]="sub_mode_audio"]=1,l[e[2]="sub_mode_video"]=2,l[e[3]="sub_mode_all"]=3,l}(),c.UniversalInteractJoinEvent=function(){function e(l){if(this.channelUsers=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.config=u.bilibili.broadcast.live.universal_interact.UniversalInteractJoinEvent.Config.decode(t,t.uint32());break}case 2:{o.bizExtra=u.bilibili.broadcast.live.universal_interact.UniversalBizExtra.decode(t,t.uint32());break}case 3:{o.traceId=t.string();break}case 4:{o.streamControl=u.bilibili.broadcast.live.universal_interact.UniversalInteractStreamControl.decode(t,t.uint32());break}case 5:{if(o.channelUsers&&o.channelUsers.length||(o.channelUsers=[]),(a&7)===2){let y=t.uint32()+t.pos;for(;t.pos>>0,t.channelUsers[n].high>>>0).toNumber())}return i},e.toObject=function(t,i){i||(i={});let n={};if((i.arrays||i.defaults)&&(n.channelUsers=[]),i.defaults&&(n.config=null,n.bizExtra=null,n.traceId="",n.streamControl=null),t.config!=null&&t.hasOwnProperty("config")&&(n.config=u.bilibili.broadcast.live.universal_interact.UniversalInteractJoinEvent.Config.toObject(t.config,i)),t.bizExtra!=null&&t.hasOwnProperty("bizExtra")&&(n.bizExtra=u.bilibili.broadcast.live.universal_interact.UniversalBizExtra.toObject(t.bizExtra,i)),t.traceId!=null&&t.hasOwnProperty("traceId")&&(n.traceId=t.traceId),t.streamControl!=null&&t.hasOwnProperty("streamControl")&&(n.streamControl=u.bilibili.broadcast.live.universal_interact.UniversalInteractStreamControl.toObject(t.streamControl,i)),t.channelUsers&&t.channelUsers.length){n.channelUsers=[];for(let o=0;o>>0,t.channelUsers[o].high>>>0).toNumber():t.channelUsers[o]}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.live.universal_interact.UniversalInteractJoinEvent"},e.Config=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.rtcChannelId=i.uint64();break}case 2:{a.uid=i.int64();break}case 3:{a.buvid=i.string();break}case 4:{a.linkId=i.string();break}case 5:{a.joinToken=i.string();break}case 6:{a.waitRemoteTimeout=i.int64();break}case 7:{a.bizLabel=i.string();break}case 8:{a.bizSessionId=i.string();break}case 9:{a.enableAudio=i.bool();break}case 10:{a.enableVideo=i.bool();break}case 11:{a.enableExternalAudioCapture=i.bool();break}case 12:{a.enableExternalVideoCapture=i.bool();break}case 13:{a.audioPlayMode=i.int32();break}case 14:{a.videoPlayMode=i.int32();break}case 15:{a.defaultSubMode=i.int32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.broadcast.live.universal_interact.UniversalInteractJoinEvent.Config)return i;let n=new u.bilibili.broadcast.live.universal_interact.UniversalInteractJoinEvent.Config;switch(i.rtcChannelId!=null&&(r.Long?(n.rtcChannelId=r.Long.fromValue(i.rtcChannelId)).unsigned=!0:typeof i.rtcChannelId=="string"?n.rtcChannelId=parseInt(i.rtcChannelId,10):typeof i.rtcChannelId=="number"?n.rtcChannelId=i.rtcChannelId:typeof i.rtcChannelId=="object"&&(n.rtcChannelId=new r.LongBits(i.rtcChannelId.low>>>0,i.rtcChannelId.high>>>0).toNumber(!0))),i.uid!=null&&(r.Long?(n.uid=r.Long.fromValue(i.uid)).unsigned=!1:typeof i.uid=="string"?n.uid=parseInt(i.uid,10):typeof i.uid=="number"?n.uid=i.uid:typeof i.uid=="object"&&(n.uid=new r.LongBits(i.uid.low>>>0,i.uid.high>>>0).toNumber())),i.buvid!=null&&(n.buvid=String(i.buvid)),i.linkId!=null&&(n.linkId=String(i.linkId)),i.joinToken!=null&&(n.joinToken=String(i.joinToken)),i.waitRemoteTimeout!=null&&(r.Long?(n.waitRemoteTimeout=r.Long.fromValue(i.waitRemoteTimeout)).unsigned=!1:typeof i.waitRemoteTimeout=="string"?n.waitRemoteTimeout=parseInt(i.waitRemoteTimeout,10):typeof i.waitRemoteTimeout=="number"?n.waitRemoteTimeout=i.waitRemoteTimeout:typeof i.waitRemoteTimeout=="object"&&(n.waitRemoteTimeout=new r.LongBits(i.waitRemoteTimeout.low>>>0,i.waitRemoteTimeout.high>>>0).toNumber())),i.bizLabel!=null&&(n.bizLabel=String(i.bizLabel)),i.bizSessionId!=null&&(n.bizSessionId=String(i.bizSessionId)),i.enableAudio!=null&&(n.enableAudio=!!i.enableAudio),i.enableVideo!=null&&(n.enableVideo=!!i.enableVideo),i.enableExternalAudioCapture!=null&&(n.enableExternalAudioCapture=!!i.enableExternalAudioCapture),i.enableExternalVideoCapture!=null&&(n.enableExternalVideoCapture=!!i.enableExternalVideoCapture),i.audioPlayMode){default:if(typeof i.audioPlayMode=="number"){n.audioPlayMode=i.audioPlayMode;break}break;case"play_mode_default":case 0:n.audioPlayMode=0;break;case"play_mode_explicit":case 1:n.audioPlayMode=1;break}switch(i.videoPlayMode){default:if(typeof i.videoPlayMode=="number"){n.videoPlayMode=i.videoPlayMode;break}break;case"play_mode_default":case 0:n.videoPlayMode=0;break;case"play_mode_explicit":case 1:n.videoPlayMode=1;break}switch(i.defaultSubMode){default:if(typeof i.defaultSubMode=="number"){n.defaultSubMode=i.defaultSubMode;break}break;case"sub_mode_none":case 0:n.defaultSubMode=0;break;case"sub_mode_audio":case 1:n.defaultSubMode=1;break;case"sub_mode_video":case 2:n.defaultSubMode=2;break;case"sub_mode_all":case 3:n.defaultSubMode=3;break}return n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!0);o.rtcChannelId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.rtcChannelId=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.uid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.uid=n.longs===String?"0":0;if(o.buvid="",o.linkId="",o.joinToken="",r.Long){let a=new r.Long(0,0,!1);o.waitRemoteTimeout=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.waitRemoteTimeout=n.longs===String?"0":0;o.bizLabel="",o.bizSessionId="",o.enableAudio=!1,o.enableVideo=!1,o.enableExternalAudioCapture=!1,o.enableExternalVideoCapture=!1,o.audioPlayMode=n.enums===String?"play_mode_default":0,o.videoPlayMode=n.enums===String?"play_mode_default":0,o.defaultSubMode=n.enums===String?"sub_mode_none":0}return i.rtcChannelId!=null&&i.hasOwnProperty("rtcChannelId")&&(typeof i.rtcChannelId=="number"?o.rtcChannelId=n.longs===String?String(i.rtcChannelId):i.rtcChannelId:o.rtcChannelId=n.longs===String?r.Long.prototype.toString.call(i.rtcChannelId):n.longs===Number?new r.LongBits(i.rtcChannelId.low>>>0,i.rtcChannelId.high>>>0).toNumber(!0):i.rtcChannelId),i.uid!=null&&i.hasOwnProperty("uid")&&(typeof i.uid=="number"?o.uid=n.longs===String?String(i.uid):i.uid:o.uid=n.longs===String?r.Long.prototype.toString.call(i.uid):n.longs===Number?new r.LongBits(i.uid.low>>>0,i.uid.high>>>0).toNumber():i.uid),i.buvid!=null&&i.hasOwnProperty("buvid")&&(o.buvid=i.buvid),i.linkId!=null&&i.hasOwnProperty("linkId")&&(o.linkId=i.linkId),i.joinToken!=null&&i.hasOwnProperty("joinToken")&&(o.joinToken=i.joinToken),i.waitRemoteTimeout!=null&&i.hasOwnProperty("waitRemoteTimeout")&&(typeof i.waitRemoteTimeout=="number"?o.waitRemoteTimeout=n.longs===String?String(i.waitRemoteTimeout):i.waitRemoteTimeout:o.waitRemoteTimeout=n.longs===String?r.Long.prototype.toString.call(i.waitRemoteTimeout):n.longs===Number?new r.LongBits(i.waitRemoteTimeout.low>>>0,i.waitRemoteTimeout.high>>>0).toNumber():i.waitRemoteTimeout),i.bizLabel!=null&&i.hasOwnProperty("bizLabel")&&(o.bizLabel=i.bizLabel),i.bizSessionId!=null&&i.hasOwnProperty("bizSessionId")&&(o.bizSessionId=i.bizSessionId),i.enableAudio!=null&&i.hasOwnProperty("enableAudio")&&(o.enableAudio=i.enableAudio),i.enableVideo!=null&&i.hasOwnProperty("enableVideo")&&(o.enableVideo=i.enableVideo),i.enableExternalAudioCapture!=null&&i.hasOwnProperty("enableExternalAudioCapture")&&(o.enableExternalAudioCapture=i.enableExternalAudioCapture),i.enableExternalVideoCapture!=null&&i.hasOwnProperty("enableExternalVideoCapture")&&(o.enableExternalVideoCapture=i.enableExternalVideoCapture),i.audioPlayMode!=null&&i.hasOwnProperty("audioPlayMode")&&(o.audioPlayMode=n.enums===String?u.bilibili.broadcast.live.universal_interact.PlayMode[i.audioPlayMode]===void 0?i.audioPlayMode:u.bilibili.broadcast.live.universal_interact.PlayMode[i.audioPlayMode]:i.audioPlayMode),i.videoPlayMode!=null&&i.hasOwnProperty("videoPlayMode")&&(o.videoPlayMode=n.enums===String?u.bilibili.broadcast.live.universal_interact.PlayMode[i.videoPlayMode]===void 0?i.videoPlayMode:u.bilibili.broadcast.live.universal_interact.PlayMode[i.videoPlayMode]:i.videoPlayMode),i.defaultSubMode!=null&&i.hasOwnProperty("defaultSubMode")&&(o.defaultSubMode=n.enums===String?u.bilibili.broadcast.live.universal_interact.SubMode[i.defaultSubMode]===void 0?i.defaultSubMode:u.bilibili.broadcast.live.universal_interact.SubMode[i.defaultSubMode]:i.defaultSubMode),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.broadcast.live.universal_interact.UniversalInteractJoinEvent.Config"},l}(),e}(),c.UniversalBizExtra=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.interactScene=t.int32();break}case 2:{o.interactSceneConfiguration=u.bilibili.broadcast.live.universal_interact.InteractSceneConfiguration.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.live.universal_interact.UniversalBizExtra)return t;let i=new u.bilibili.broadcast.live.universal_interact.UniversalBizExtra;switch(t.interactScene){default:if(typeof t.interactScene=="number"){i.interactScene=t.interactScene;break}break;case"InteractSceneVoice1V1":case 0:i.interactScene=0;break}if(t.interactSceneConfiguration!=null){if(typeof t.interactSceneConfiguration!="object")throw TypeError(".bilibili.broadcast.live.universal_interact.UniversalBizExtra.interactSceneConfiguration: object expected");i.interactSceneConfiguration=u.bilibili.broadcast.live.universal_interact.InteractSceneConfiguration.fromObject(t.interactSceneConfiguration)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.interactScene=i.enums===String?"InteractSceneVoice1V1":0,n.interactSceneConfiguration=null),t.interactScene!=null&&t.hasOwnProperty("interactScene")&&(n.interactScene=i.enums===String?u.bilibili.broadcast.live.universal_interact.InteractScene[t.interactScene]===void 0?t.interactScene:u.bilibili.broadcast.live.universal_interact.InteractScene[t.interactScene]:t.interactScene),t.interactSceneConfiguration!=null&&t.hasOwnProperty("interactSceneConfiguration")&&(n.interactSceneConfiguration=u.bilibili.broadcast.live.universal_interact.InteractSceneConfiguration.toObject(t.interactSceneConfiguration,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.live.universal_interact.UniversalBizExtra"},e}(),c.InteractScene=function(){let e={},l=Object.create(e);return l[e[0]="InteractSceneVoice1V1"]=0,l}(),c.InteractSceneConfiguration=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.interactMode=t.int32();break}case 2:{o.interactTemplate=u.bilibili.broadcast.live.universal_interact.InteractSceneConfiguration.InteractTemplate.decode(t,t.uint32());break}case 3:{o.interactMaxUsers=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.live.universal_interact.InteractSceneConfiguration)return t;let i=new u.bilibili.broadcast.live.universal_interact.InteractSceneConfiguration;switch(t.interactMode){default:if(typeof t.interactMode=="number"){i.interactMode=t.interactMode;break}break;case"InteractModeB2B":case 0:i.interactMode=0;break;case"InteractModeB2C":case 1:i.interactMode=1;break}if(t.interactTemplate!=null){if(typeof t.interactTemplate!="object")throw TypeError(".bilibili.broadcast.live.universal_interact.InteractSceneConfiguration.interactTemplate: object expected");i.interactTemplate=u.bilibili.broadcast.live.universal_interact.InteractSceneConfiguration.InteractTemplate.fromObject(t.interactTemplate)}return t.interactMaxUsers!=null&&(r.Long?(i.interactMaxUsers=r.Long.fromValue(t.interactMaxUsers)).unsigned=!1:typeof t.interactMaxUsers=="string"?i.interactMaxUsers=parseInt(t.interactMaxUsers,10):typeof t.interactMaxUsers=="number"?i.interactMaxUsers=t.interactMaxUsers:typeof t.interactMaxUsers=="object"&&(i.interactMaxUsers=new r.LongBits(t.interactMaxUsers.low>>>0,t.interactMaxUsers.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(n.interactMode=i.enums===String?"InteractModeB2B":0,n.interactTemplate=null,r.Long){let o=new r.Long(0,0,!1);n.interactMaxUsers=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.interactMaxUsers=i.longs===String?"0":0;return t.interactMode!=null&&t.hasOwnProperty("interactMode")&&(n.interactMode=i.enums===String?u.bilibili.broadcast.live.universal_interact.InteractSceneConfiguration.InteractMode[t.interactMode]===void 0?t.interactMode:u.bilibili.broadcast.live.universal_interact.InteractSceneConfiguration.InteractMode[t.interactMode]:t.interactMode),t.interactTemplate!=null&&t.hasOwnProperty("interactTemplate")&&(n.interactTemplate=u.bilibili.broadcast.live.universal_interact.InteractSceneConfiguration.InteractTemplate.toObject(t.interactTemplate,i)),t.interactMaxUsers!=null&&t.hasOwnProperty("interactMaxUsers")&&(typeof t.interactMaxUsers=="number"?n.interactMaxUsers=i.longs===String?String(t.interactMaxUsers):t.interactMaxUsers:n.interactMaxUsers=i.longs===String?r.Long.prototype.toString.call(t.interactMaxUsers):i.longs===Number?new r.LongBits(t.interactMaxUsers.low>>>0,t.interactMaxUsers.high>>>0).toNumber():t.interactMaxUsers),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.live.universal_interact.InteractSceneConfiguration"},e.InteractMode=function(){let l={},t=Object.create(l);return t[l[0]="InteractModeB2B"]=0,t[l[1]="InteractModeB2C"]=1,t}(),e.InteractTemplate=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.layout=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.broadcast.live.universal_interact.InteractSceneConfiguration.InteractTemplate)return i;let n=new u.bilibili.broadcast.live.universal_interact.InteractSceneConfiguration.InteractTemplate;return i.layout!=null&&(n.layout=String(i.layout)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.layout=""),i.layout!=null&&i.hasOwnProperty("layout")&&(o.layout=i.layout),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.broadcast.live.universal_interact.InteractSceneConfiguration.InteractTemplate"},l}(),e}(),c.UniversalInteractLeaveEvent=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.rtcChannelId=t.uint64();break}case 2:{o.uid=t.int64();break}case 3:{o.bizLabel=t.string();break}case 4:{o.traceId=t.string();break}case 5:{o.bizSessionId=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.live.universal_interact.UniversalInteractLeaveEvent)return t;let i=new u.bilibili.broadcast.live.universal_interact.UniversalInteractLeaveEvent;return t.rtcChannelId!=null&&(r.Long?(i.rtcChannelId=r.Long.fromValue(t.rtcChannelId)).unsigned=!0:typeof t.rtcChannelId=="string"?i.rtcChannelId=parseInt(t.rtcChannelId,10):typeof t.rtcChannelId=="number"?i.rtcChannelId=t.rtcChannelId:typeof t.rtcChannelId=="object"&&(i.rtcChannelId=new r.LongBits(t.rtcChannelId.low>>>0,t.rtcChannelId.high>>>0).toNumber(!0))),t.uid!=null&&(r.Long?(i.uid=r.Long.fromValue(t.uid)).unsigned=!1:typeof t.uid=="string"?i.uid=parseInt(t.uid,10):typeof t.uid=="number"?i.uid=t.uid:typeof t.uid=="object"&&(i.uid=new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber())),t.bizLabel!=null&&(i.bizLabel=String(t.bizLabel)),t.traceId!=null&&(i.traceId=String(t.traceId)),t.bizSessionId!=null&&(i.bizSessionId=String(t.bizSessionId)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!0);n.rtcChannelId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.rtcChannelId=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.uid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.uid=i.longs===String?"0":0;n.bizLabel="",n.traceId="",n.bizSessionId=""}return t.rtcChannelId!=null&&t.hasOwnProperty("rtcChannelId")&&(typeof t.rtcChannelId=="number"?n.rtcChannelId=i.longs===String?String(t.rtcChannelId):t.rtcChannelId:n.rtcChannelId=i.longs===String?r.Long.prototype.toString.call(t.rtcChannelId):i.longs===Number?new r.LongBits(t.rtcChannelId.low>>>0,t.rtcChannelId.high>>>0).toNumber(!0):t.rtcChannelId),t.uid!=null&&t.hasOwnProperty("uid")&&(typeof t.uid=="number"?n.uid=i.longs===String?String(t.uid):t.uid:n.uid=i.longs===String?r.Long.prototype.toString.call(t.uid):i.longs===Number?new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber():t.uid),t.bizLabel!=null&&t.hasOwnProperty("bizLabel")&&(n.bizLabel=t.bizLabel),t.traceId!=null&&t.hasOwnProperty("traceId")&&(n.traceId=t.traceId),t.bizSessionId!=null&&t.hasOwnProperty("bizSessionId")&&(n.bizSessionId=t.bizSessionId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.live.universal_interact.UniversalInteractLeaveEvent"},e}(),c.UniversalInteractStreamControl=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.audioControl=u.bilibili.broadcast.live.universal_interact.UniversalInteractStreamControl.UserStreamControlItem.decode(t,t.uint32());break}case 2:{o.videoControl=u.bilibili.broadcast.live.universal_interact.UniversalInteractStreamControl.UserStreamControlItem.decode(t,t.uint32());break}case 3:{o.pubSubControl=u.bilibili.broadcast.live.universal_interact.UniversalInteractStreamControl.PubSubControl.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.live.universal_interact.UniversalInteractStreamControl)return t;let i=new u.bilibili.broadcast.live.universal_interact.UniversalInteractStreamControl;if(t.audioControl!=null){if(typeof t.audioControl!="object")throw TypeError(".bilibili.broadcast.live.universal_interact.UniversalInteractStreamControl.audioControl: object expected");i.audioControl=u.bilibili.broadcast.live.universal_interact.UniversalInteractStreamControl.UserStreamControlItem.fromObject(t.audioControl)}if(t.videoControl!=null){if(typeof t.videoControl!="object")throw TypeError(".bilibili.broadcast.live.universal_interact.UniversalInteractStreamControl.videoControl: object expected");i.videoControl=u.bilibili.broadcast.live.universal_interact.UniversalInteractStreamControl.UserStreamControlItem.fromObject(t.videoControl)}if(t.pubSubControl!=null){if(typeof t.pubSubControl!="object")throw TypeError(".bilibili.broadcast.live.universal_interact.UniversalInteractStreamControl.pubSubControl: object expected");i.pubSubControl=u.bilibili.broadcast.live.universal_interact.UniversalInteractStreamControl.PubSubControl.fromObject(t.pubSubControl)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.audioControl=null,n.videoControl=null,n.pubSubControl=null),t.audioControl!=null&&t.hasOwnProperty("audioControl")&&(n.audioControl=u.bilibili.broadcast.live.universal_interact.UniversalInteractStreamControl.UserStreamControlItem.toObject(t.audioControl,i)),t.videoControl!=null&&t.hasOwnProperty("videoControl")&&(n.videoControl=u.bilibili.broadcast.live.universal_interact.UniversalInteractStreamControl.UserStreamControlItem.toObject(t.videoControl,i)),t.pubSubControl!=null&&t.hasOwnProperty("pubSubControl")&&(n.pubSubControl=u.bilibili.broadcast.live.universal_interact.UniversalInteractStreamControl.PubSubControl.toObject(t.pubSubControl,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.live.universal_interact.UniversalInteractStreamControl"},e.MuteLocalMode=function(){let l={},t=Object.create(l);return t[l[0]="mute_mode_none"]=0,t[l[1]="mute_mode_packet"]=1,t[l[2]="mute_mode_capture"]=2,t}(),e.UserStreamControlItem=function(){function l(t){if(this.muteRemoteUids=[],this.receiveUids=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.muteLocalMode=i.int32();break}case 2:{if(a.muteRemoteUids&&a.muteRemoteUids.length||(a.muteRemoteUids=[]),(y&7)===2){let s=i.uint32()+i.pos;for(;i.pos>>0,i.muteRemoteUids[o].high>>>0).toNumber())}if(i.receiveUids){if(!Array.isArray(i.receiveUids))throw TypeError(".bilibili.broadcast.live.universal_interact.UniversalInteractStreamControl.UserStreamControlItem.receiveUids: array expected");n.receiveUids=[];for(let o=0;o>>0,i.receiveUids[o].high>>>0).toNumber())}return i.version!=null&&(r.Long?(n.version=r.Long.fromValue(i.version)).unsigned=!1:typeof i.version=="string"?n.version=parseInt(i.version,10):typeof i.version=="number"?n.version=i.version:typeof i.version=="object"&&(n.version=new r.LongBits(i.version.low>>>0,i.version.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if((n.arrays||n.defaults)&&(o.muteRemoteUids=[],o.receiveUids=[]),n.defaults)if(o.muteLocalMode=n.enums===String?"mute_mode_none":0,r.Long){let a=new r.Long(0,0,!1);o.version=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.version=n.longs===String?"0":0;if(i.muteLocalMode!=null&&i.hasOwnProperty("muteLocalMode")&&(o.muteLocalMode=n.enums===String?u.bilibili.broadcast.live.universal_interact.UniversalInteractStreamControl.MuteLocalMode[i.muteLocalMode]===void 0?i.muteLocalMode:u.bilibili.broadcast.live.universal_interact.UniversalInteractStreamControl.MuteLocalMode[i.muteLocalMode]:i.muteLocalMode),i.muteRemoteUids&&i.muteRemoteUids.length){o.muteRemoteUids=[];for(let a=0;a>>0,i.muteRemoteUids[a].high>>>0).toNumber():i.muteRemoteUids[a]}if(i.receiveUids&&i.receiveUids.length){o.receiveUids=[];for(let a=0;a>>0,i.receiveUids[a].high>>>0).toNumber():i.receiveUids[a]}return i.version!=null&&i.hasOwnProperty("version")&&(typeof i.version=="number"?o.version=n.longs===String?String(i.version):i.version:o.version=n.longs===String?r.Long.prototype.toString.call(i.version):n.longs===Number?new r.LongBits(i.version.low>>>0,i.version.high>>>0).toNumber():i.version),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.broadcast.live.universal_interact.UniversalInteractStreamControl.UserStreamControlItem"},l}(),e.PubStatus=function(){let l={},t=Object.create(l);return t[l[0]="pub_status_none"]=0,t[l[1]="pub_status_audio"]=1,t[l[2]="pub_status_video"]=2,t[l[3]="pub_status_all"]=3,t}(),e.ExplicitSubMode=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.uid=i.int64();break}case 2:{a.subMode=i.int32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.broadcast.live.universal_interact.UniversalInteractStreamControl.ExplicitSubMode)return i;let n=new u.bilibili.broadcast.live.universal_interact.UniversalInteractStreamControl.ExplicitSubMode;switch(i.uid!=null&&(r.Long?(n.uid=r.Long.fromValue(i.uid)).unsigned=!1:typeof i.uid=="string"?n.uid=parseInt(i.uid,10):typeof i.uid=="number"?n.uid=i.uid:typeof i.uid=="object"&&(n.uid=new r.LongBits(i.uid.low>>>0,i.uid.high>>>0).toNumber())),i.subMode){default:if(typeof i.subMode=="number"){n.subMode=i.subMode;break}break;case"sub_mode_none":case 0:n.subMode=0;break;case"sub_mode_audio":case 1:n.subMode=1;break;case"sub_mode_video":case 2:n.subMode=2;break;case"sub_mode_all":case 3:n.subMode=3;break}return n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.uid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.uid=n.longs===String?"0":0;o.subMode=n.enums===String?"sub_mode_none":0}return i.uid!=null&&i.hasOwnProperty("uid")&&(typeof i.uid=="number"?o.uid=n.longs===String?String(i.uid):i.uid:o.uid=n.longs===String?r.Long.prototype.toString.call(i.uid):n.longs===Number?new r.LongBits(i.uid.low>>>0,i.uid.high>>>0).toNumber():i.uid),i.subMode!=null&&i.hasOwnProperty("subMode")&&(o.subMode=n.enums===String?u.bilibili.broadcast.live.universal_interact.SubMode[i.subMode]===void 0?i.subMode:u.bilibili.broadcast.live.universal_interact.SubMode[i.subMode]:i.subMode),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.broadcast.live.universal_interact.UniversalInteractStreamControl.ExplicitSubMode"},l}(),e.PubSubControl=function(){function l(t){if(this.explicitSubUsers=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.pubStatus=i.int32();break}case 2:{a.explicitSubUsers&&a.explicitSubUsers.length||(a.explicitSubUsers=[]),a.explicitSubUsers.push(u.bilibili.broadcast.live.universal_interact.UniversalInteractStreamControl.ExplicitSubMode.decode(i,i.uint32()));break}case 3:{a.version=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.broadcast.live.universal_interact.UniversalInteractStreamControl.PubSubControl)return i;let n=new u.bilibili.broadcast.live.universal_interact.UniversalInteractStreamControl.PubSubControl;switch(i.pubStatus){default:if(typeof i.pubStatus=="number"){n.pubStatus=i.pubStatus;break}break;case"pub_status_none":case 0:n.pubStatus=0;break;case"pub_status_audio":case 1:n.pubStatus=1;break;case"pub_status_video":case 2:n.pubStatus=2;break;case"pub_status_all":case 3:n.pubStatus=3;break}if(i.explicitSubUsers){if(!Array.isArray(i.explicitSubUsers))throw TypeError(".bilibili.broadcast.live.universal_interact.UniversalInteractStreamControl.PubSubControl.explicitSubUsers: array expected");n.explicitSubUsers=[];for(let o=0;o>>0,i.version.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if((n.arrays||n.defaults)&&(o.explicitSubUsers=[]),n.defaults)if(o.pubStatus=n.enums===String?"pub_status_none":0,r.Long){let a=new r.Long(0,0,!1);o.version=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.version=n.longs===String?"0":0;if(i.pubStatus!=null&&i.hasOwnProperty("pubStatus")&&(o.pubStatus=n.enums===String?u.bilibili.broadcast.live.universal_interact.UniversalInteractStreamControl.PubStatus[i.pubStatus]===void 0?i.pubStatus:u.bilibili.broadcast.live.universal_interact.UniversalInteractStreamControl.PubStatus[i.pubStatus]:i.pubStatus),i.explicitSubUsers&&i.explicitSubUsers.length){o.explicitSubUsers=[];for(let a=0;a>>0,i.version.high>>>0).toNumber():i.version),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.broadcast.live.universal_interact.UniversalInteractStreamControl.PubSubControl"},l}(),e}(),c.UniversalInteractStreamControlEvent=function(){function e(l){if(this.channelUsers=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.rtcChannelId=t.uint64();break}case 2:{o.uid=t.int64();break}case 3:{o.bizSessionId=t.string();break}case 4:{o.streamControl=u.bilibili.broadcast.live.universal_interact.UniversalInteractStreamControl.decode(t,t.uint32());break}case 5:{o.version=t.int64();break}case 6:{o.traceId=t.string();break}case 7:{if(o.channelUsers&&o.channelUsers.length||(o.channelUsers=[]),(a&7)===2){let y=t.uint32()+t.pos;for(;t.pos>>0,t.rtcChannelId.high>>>0).toNumber(!0))),t.uid!=null&&(r.Long?(i.uid=r.Long.fromValue(t.uid)).unsigned=!1:typeof t.uid=="string"?i.uid=parseInt(t.uid,10):typeof t.uid=="number"?i.uid=t.uid:typeof t.uid=="object"&&(i.uid=new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber())),t.bizSessionId!=null&&(i.bizSessionId=String(t.bizSessionId)),t.streamControl!=null){if(typeof t.streamControl!="object")throw TypeError(".bilibili.broadcast.live.universal_interact.UniversalInteractStreamControlEvent.streamControl: object expected");i.streamControl=u.bilibili.broadcast.live.universal_interact.UniversalInteractStreamControl.fromObject(t.streamControl)}if(t.version!=null&&(r.Long?(i.version=r.Long.fromValue(t.version)).unsigned=!1:typeof t.version=="string"?i.version=parseInt(t.version,10):typeof t.version=="number"?i.version=t.version:typeof t.version=="object"&&(i.version=new r.LongBits(t.version.low>>>0,t.version.high>>>0).toNumber())),t.traceId!=null&&(i.traceId=String(t.traceId)),t.channelUsers){if(!Array.isArray(t.channelUsers))throw TypeError(".bilibili.broadcast.live.universal_interact.UniversalInteractStreamControlEvent.channelUsers: array expected");i.channelUsers=[];for(let n=0;n>>0,t.channelUsers[n].high>>>0).toNumber())}return i},e.toObject=function(t,i){i||(i={});let n={};if((i.arrays||i.defaults)&&(n.channelUsers=[]),i.defaults){if(r.Long){let o=new r.Long(0,0,!0);n.rtcChannelId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.rtcChannelId=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.uid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.uid=i.longs===String?"0":0;if(n.bizSessionId="",n.streamControl=null,r.Long){let o=new r.Long(0,0,!1);n.version=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.version=i.longs===String?"0":0;n.traceId=""}if(t.rtcChannelId!=null&&t.hasOwnProperty("rtcChannelId")&&(typeof t.rtcChannelId=="number"?n.rtcChannelId=i.longs===String?String(t.rtcChannelId):t.rtcChannelId:n.rtcChannelId=i.longs===String?r.Long.prototype.toString.call(t.rtcChannelId):i.longs===Number?new r.LongBits(t.rtcChannelId.low>>>0,t.rtcChannelId.high>>>0).toNumber(!0):t.rtcChannelId),t.uid!=null&&t.hasOwnProperty("uid")&&(typeof t.uid=="number"?n.uid=i.longs===String?String(t.uid):t.uid:n.uid=i.longs===String?r.Long.prototype.toString.call(t.uid):i.longs===Number?new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber():t.uid),t.bizSessionId!=null&&t.hasOwnProperty("bizSessionId")&&(n.bizSessionId=t.bizSessionId),t.streamControl!=null&&t.hasOwnProperty("streamControl")&&(n.streamControl=u.bilibili.broadcast.live.universal_interact.UniversalInteractStreamControl.toObject(t.streamControl,i)),t.version!=null&&t.hasOwnProperty("version")&&(typeof t.version=="number"?n.version=i.longs===String?String(t.version):t.version:n.version=i.longs===String?r.Long.prototype.toString.call(t.version):i.longs===Number?new r.LongBits(t.version.low>>>0,t.version.high>>>0).toNumber():t.version),t.traceId!=null&&t.hasOwnProperty("traceId")&&(n.traceId=t.traceId),t.channelUsers&&t.channelUsers.length){n.channelUsers=[];for(let o=0;o>>0,t.channelUsers[o].high>>>0).toNumber():t.channelUsers[o]}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.live.universal_interact.UniversalInteractStreamControlEvent"},e}(),c}(),p.voice_room=function(){let c={};return c.voice_room=function(){let e={};return e.LiveMultiVoiceInvitaionEvent=function(){function l(t){if(this.existUids=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.initiator=i.int64();break}case 2:{a.invitedUid=i.int64();break}case 3:{a.businessType=i.int32();break}case 4:{a.chId=i.string();break}case 5:{a.channelInfo=i.string();break}case 6:{a.cdn=i.int32();break}case 7:{a.interactId=i.int64();break}case 8:{a.linkId=i.int64();break}case 9:{a.ts=i.int64();break}case 10:{a.toast=i.string();break}case 11:{a.operateType=i.int32();break}case 12:{a.innerExtra=i.string();break}case 13:{a.operationUname=i.string();break}case 14:{if(a.existUids&&a.existUids.length||(a.existUids=[]),(y&7)===2){let s=i.uint32()+i.pos;for(;i.pos>>0,i.initiator.high>>>0).toNumber())),i.invitedUid!=null&&(r.Long?(n.invitedUid=r.Long.fromValue(i.invitedUid)).unsigned=!1:typeof i.invitedUid=="string"?n.invitedUid=parseInt(i.invitedUid,10):typeof i.invitedUid=="number"?n.invitedUid=i.invitedUid:typeof i.invitedUid=="object"&&(n.invitedUid=new r.LongBits(i.invitedUid.low>>>0,i.invitedUid.high>>>0).toNumber())),i.businessType){default:if(typeof i.businessType=="number"){n.businessType=i.businessType;break}break;case"LiveInteractBusinessTypeNode":case 0:n.businessType=0;break;case"LiveInteractBusinessTypeMultiVoice":case 10:n.businessType=10;break}switch(i.chId!=null&&(n.chId=String(i.chId)),i.channelInfo!=null&&(n.channelInfo=String(i.channelInfo)),i.cdn!=null&&(n.cdn=i.cdn|0),i.interactId!=null&&(r.Long?(n.interactId=r.Long.fromValue(i.interactId)).unsigned=!1:typeof i.interactId=="string"?n.interactId=parseInt(i.interactId,10):typeof i.interactId=="number"?n.interactId=i.interactId:typeof i.interactId=="object"&&(n.interactId=new r.LongBits(i.interactId.low>>>0,i.interactId.high>>>0).toNumber())),i.linkId!=null&&(r.Long?(n.linkId=r.Long.fromValue(i.linkId)).unsigned=!1:typeof i.linkId=="string"?n.linkId=parseInt(i.linkId,10):typeof i.linkId=="number"?n.linkId=i.linkId:typeof i.linkId=="object"&&(n.linkId=new r.LongBits(i.linkId.low>>>0,i.linkId.high>>>0).toNumber())),i.ts!=null&&(r.Long?(n.ts=r.Long.fromValue(i.ts)).unsigned=!1:typeof i.ts=="string"?n.ts=parseInt(i.ts,10):typeof i.ts=="number"?n.ts=i.ts:typeof i.ts=="object"&&(n.ts=new r.LongBits(i.ts.low>>>0,i.ts.high>>>0).toNumber())),i.toast!=null&&(n.toast=String(i.toast)),i.operateType){default:if(typeof i.operateType=="number"){n.operateType=i.operateType;break}break;case"LiveInteractOperationTypeInvalid":case 0:n.operateType=0;break;case"LiveInteractOperationTypeAccept":case 1:n.operateType=1;break;case"LiveInteractOperationTypeReject":case 2:n.operateType=2;break;case"LiveInteractOperationTypeCancel":case 3:n.operateType=3;break;case"LiveInteractOperationTypeNoReply":case 4:n.operateType=4;break;case"LiveInteractOperationTypeInvited":case 5:n.operateType=5;break}if(i.innerExtra!=null&&(n.innerExtra=String(i.innerExtra)),i.operationUname!=null&&(n.operationUname=String(i.operationUname)),i.existUids){if(!Array.isArray(i.existUids))throw TypeError(".bilibili.broadcast.live.voice_room.voice_room.LiveMultiVoiceInvitaionEvent.existUids: array expected");n.existUids=[];for(let o=0;o>>0,i.existUids[o].high>>>0).toNumber())}return i.traceId!=null&&(n.traceId=String(i.traceId)),n},l.toObject=function(i,n){n||(n={});let o={};if((n.arrays||n.defaults)&&(o.existUids=[]),n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.initiator=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.initiator=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.invitedUid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.invitedUid=n.longs===String?"0":0;if(o.businessType=n.enums===String?"LiveInteractBusinessTypeNode":0,o.chId="",o.channelInfo="",o.cdn=0,r.Long){let a=new r.Long(0,0,!1);o.interactId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.interactId=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.linkId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.linkId=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.ts=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.ts=n.longs===String?"0":0;o.toast="",o.operateType=n.enums===String?"LiveInteractOperationTypeInvalid":0,o.innerExtra="",o.operationUname="",o.traceId=""}if(i.initiator!=null&&i.hasOwnProperty("initiator")&&(typeof i.initiator=="number"?o.initiator=n.longs===String?String(i.initiator):i.initiator:o.initiator=n.longs===String?r.Long.prototype.toString.call(i.initiator):n.longs===Number?new r.LongBits(i.initiator.low>>>0,i.initiator.high>>>0).toNumber():i.initiator),i.invitedUid!=null&&i.hasOwnProperty("invitedUid")&&(typeof i.invitedUid=="number"?o.invitedUid=n.longs===String?String(i.invitedUid):i.invitedUid:o.invitedUid=n.longs===String?r.Long.prototype.toString.call(i.invitedUid):n.longs===Number?new r.LongBits(i.invitedUid.low>>>0,i.invitedUid.high>>>0).toNumber():i.invitedUid),i.businessType!=null&&i.hasOwnProperty("businessType")&&(o.businessType=n.enums===String?u.bilibili.broadcast.live.voice_room.voice_room.LiveInteractBusinessType[i.businessType]===void 0?i.businessType:u.bilibili.broadcast.live.voice_room.voice_room.LiveInteractBusinessType[i.businessType]:i.businessType),i.chId!=null&&i.hasOwnProperty("chId")&&(o.chId=i.chId),i.channelInfo!=null&&i.hasOwnProperty("channelInfo")&&(o.channelInfo=i.channelInfo),i.cdn!=null&&i.hasOwnProperty("cdn")&&(o.cdn=i.cdn),i.interactId!=null&&i.hasOwnProperty("interactId")&&(typeof i.interactId=="number"?o.interactId=n.longs===String?String(i.interactId):i.interactId:o.interactId=n.longs===String?r.Long.prototype.toString.call(i.interactId):n.longs===Number?new r.LongBits(i.interactId.low>>>0,i.interactId.high>>>0).toNumber():i.interactId),i.linkId!=null&&i.hasOwnProperty("linkId")&&(typeof i.linkId=="number"?o.linkId=n.longs===String?String(i.linkId):i.linkId:o.linkId=n.longs===String?r.Long.prototype.toString.call(i.linkId):n.longs===Number?new r.LongBits(i.linkId.low>>>0,i.linkId.high>>>0).toNumber():i.linkId),i.ts!=null&&i.hasOwnProperty("ts")&&(typeof i.ts=="number"?o.ts=n.longs===String?String(i.ts):i.ts:o.ts=n.longs===String?r.Long.prototype.toString.call(i.ts):n.longs===Number?new r.LongBits(i.ts.low>>>0,i.ts.high>>>0).toNumber():i.ts),i.toast!=null&&i.hasOwnProperty("toast")&&(o.toast=i.toast),i.operateType!=null&&i.hasOwnProperty("operateType")&&(o.operateType=n.enums===String?u.bilibili.broadcast.live.voice_room.voice_room.LiveInteractOperationType[i.operateType]===void 0?i.operateType:u.bilibili.broadcast.live.voice_room.voice_room.LiveInteractOperationType[i.operateType]:i.operateType),i.innerExtra!=null&&i.hasOwnProperty("innerExtra")&&(o.innerExtra=i.innerExtra),i.operationUname!=null&&i.hasOwnProperty("operationUname")&&(o.operationUname=i.operationUname),i.existUids&&i.existUids.length){o.existUids=[];for(let a=0;a>>0,i.existUids[a].high>>>0).toNumber():i.existUids[a]}return i.traceId!=null&&i.hasOwnProperty("traceId")&&(o.traceId=i.traceId),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.broadcast.live.voice_room.voice_room.LiveMultiVoiceInvitaionEvent"},l}(),e.LiveBaseOperateEvent=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.uid=i.int64();break}case 2:{a.totalPrice=i.int64();break}case 3:{a.ts=i.int64();break}case 4:{a.position=i.int64();break}case 5:{a.version=i.int64();break}case 6:{a.totalPriceText=i.string();break}case 7:{a.pkTotalPrice=i.int64();break}case 8:{a.pkTotalPriceText=i.string();break}case 9:{a.pkGroupId=i.string();break}case 10:{a.pkGroupTotalPrice=i.int64();break}case 11:{a.pkGroupTotalPriceText=i.string();break}case 12:{a.hat=u.bilibili.broadcast.live.voice_room.voice_room.LiveMultiChatHatLevel.decode(i,i.uint32());break}case 13:{a.roomId=i.int64();break}case 14:{a.pkID=i.string();break}case 15:{a.battleInfo=u.bilibili.broadcast.live.voice_room.voice_room.BattleInfo.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.broadcast.live.voice_room.voice_room.LiveBaseOperateEvent)return i;let n=new u.bilibili.broadcast.live.voice_room.voice_room.LiveBaseOperateEvent;if(i.uid!=null&&(r.Long?(n.uid=r.Long.fromValue(i.uid)).unsigned=!1:typeof i.uid=="string"?n.uid=parseInt(i.uid,10):typeof i.uid=="number"?n.uid=i.uid:typeof i.uid=="object"&&(n.uid=new r.LongBits(i.uid.low>>>0,i.uid.high>>>0).toNumber())),i.totalPrice!=null&&(r.Long?(n.totalPrice=r.Long.fromValue(i.totalPrice)).unsigned=!1:typeof i.totalPrice=="string"?n.totalPrice=parseInt(i.totalPrice,10):typeof i.totalPrice=="number"?n.totalPrice=i.totalPrice:typeof i.totalPrice=="object"&&(n.totalPrice=new r.LongBits(i.totalPrice.low>>>0,i.totalPrice.high>>>0).toNumber())),i.ts!=null&&(r.Long?(n.ts=r.Long.fromValue(i.ts)).unsigned=!1:typeof i.ts=="string"?n.ts=parseInt(i.ts,10):typeof i.ts=="number"?n.ts=i.ts:typeof i.ts=="object"&&(n.ts=new r.LongBits(i.ts.low>>>0,i.ts.high>>>0).toNumber())),i.position!=null&&(r.Long?(n.position=r.Long.fromValue(i.position)).unsigned=!1:typeof i.position=="string"?n.position=parseInt(i.position,10):typeof i.position=="number"?n.position=i.position:typeof i.position=="object"&&(n.position=new r.LongBits(i.position.low>>>0,i.position.high>>>0).toNumber())),i.version!=null&&(r.Long?(n.version=r.Long.fromValue(i.version)).unsigned=!1:typeof i.version=="string"?n.version=parseInt(i.version,10):typeof i.version=="number"?n.version=i.version:typeof i.version=="object"&&(n.version=new r.LongBits(i.version.low>>>0,i.version.high>>>0).toNumber())),i.totalPriceText!=null&&(n.totalPriceText=String(i.totalPriceText)),i.pkTotalPrice!=null&&(r.Long?(n.pkTotalPrice=r.Long.fromValue(i.pkTotalPrice)).unsigned=!1:typeof i.pkTotalPrice=="string"?n.pkTotalPrice=parseInt(i.pkTotalPrice,10):typeof i.pkTotalPrice=="number"?n.pkTotalPrice=i.pkTotalPrice:typeof i.pkTotalPrice=="object"&&(n.pkTotalPrice=new r.LongBits(i.pkTotalPrice.low>>>0,i.pkTotalPrice.high>>>0).toNumber())),i.pkTotalPriceText!=null&&(n.pkTotalPriceText=String(i.pkTotalPriceText)),i.pkGroupId!=null&&(n.pkGroupId=String(i.pkGroupId)),i.pkGroupTotalPrice!=null&&(r.Long?(n.pkGroupTotalPrice=r.Long.fromValue(i.pkGroupTotalPrice)).unsigned=!1:typeof i.pkGroupTotalPrice=="string"?n.pkGroupTotalPrice=parseInt(i.pkGroupTotalPrice,10):typeof i.pkGroupTotalPrice=="number"?n.pkGroupTotalPrice=i.pkGroupTotalPrice:typeof i.pkGroupTotalPrice=="object"&&(n.pkGroupTotalPrice=new r.LongBits(i.pkGroupTotalPrice.low>>>0,i.pkGroupTotalPrice.high>>>0).toNumber())),i.pkGroupTotalPriceText!=null&&(n.pkGroupTotalPriceText=String(i.pkGroupTotalPriceText)),i.hat!=null){if(typeof i.hat!="object")throw TypeError(".bilibili.broadcast.live.voice_room.voice_room.LiveBaseOperateEvent.hat: object expected");n.hat=u.bilibili.broadcast.live.voice_room.voice_room.LiveMultiChatHatLevel.fromObject(i.hat)}if(i.roomId!=null&&(r.Long?(n.roomId=r.Long.fromValue(i.roomId)).unsigned=!1:typeof i.roomId=="string"?n.roomId=parseInt(i.roomId,10):typeof i.roomId=="number"?n.roomId=i.roomId:typeof i.roomId=="object"&&(n.roomId=new r.LongBits(i.roomId.low>>>0,i.roomId.high>>>0).toNumber())),i.pkID!=null&&(n.pkID=String(i.pkID)),i.battleInfo!=null){if(typeof i.battleInfo!="object")throw TypeError(".bilibili.broadcast.live.voice_room.voice_room.LiveBaseOperateEvent.battleInfo: object expected");n.battleInfo=u.bilibili.broadcast.live.voice_room.voice_room.BattleInfo.fromObject(i.battleInfo)}return n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.uid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.uid=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.totalPrice=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.totalPrice=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.ts=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.ts=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.position=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.position=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.version=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.version=n.longs===String?"0":0;if(o.totalPriceText="",r.Long){let a=new r.Long(0,0,!1);o.pkTotalPrice=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.pkTotalPrice=n.longs===String?"0":0;if(o.pkTotalPriceText="",o.pkGroupId="",r.Long){let a=new r.Long(0,0,!1);o.pkGroupTotalPrice=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.pkGroupTotalPrice=n.longs===String?"0":0;if(o.pkGroupTotalPriceText="",o.hat=null,r.Long){let a=new r.Long(0,0,!1);o.roomId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.roomId=n.longs===String?"0":0;o.pkID="",o.battleInfo=null}return i.uid!=null&&i.hasOwnProperty("uid")&&(typeof i.uid=="number"?o.uid=n.longs===String?String(i.uid):i.uid:o.uid=n.longs===String?r.Long.prototype.toString.call(i.uid):n.longs===Number?new r.LongBits(i.uid.low>>>0,i.uid.high>>>0).toNumber():i.uid),i.totalPrice!=null&&i.hasOwnProperty("totalPrice")&&(typeof i.totalPrice=="number"?o.totalPrice=n.longs===String?String(i.totalPrice):i.totalPrice:o.totalPrice=n.longs===String?r.Long.prototype.toString.call(i.totalPrice):n.longs===Number?new r.LongBits(i.totalPrice.low>>>0,i.totalPrice.high>>>0).toNumber():i.totalPrice),i.ts!=null&&i.hasOwnProperty("ts")&&(typeof i.ts=="number"?o.ts=n.longs===String?String(i.ts):i.ts:o.ts=n.longs===String?r.Long.prototype.toString.call(i.ts):n.longs===Number?new r.LongBits(i.ts.low>>>0,i.ts.high>>>0).toNumber():i.ts),i.position!=null&&i.hasOwnProperty("position")&&(typeof i.position=="number"?o.position=n.longs===String?String(i.position):i.position:o.position=n.longs===String?r.Long.prototype.toString.call(i.position):n.longs===Number?new r.LongBits(i.position.low>>>0,i.position.high>>>0).toNumber():i.position),i.version!=null&&i.hasOwnProperty("version")&&(typeof i.version=="number"?o.version=n.longs===String?String(i.version):i.version:o.version=n.longs===String?r.Long.prototype.toString.call(i.version):n.longs===Number?new r.LongBits(i.version.low>>>0,i.version.high>>>0).toNumber():i.version),i.totalPriceText!=null&&i.hasOwnProperty("totalPriceText")&&(o.totalPriceText=i.totalPriceText),i.pkTotalPrice!=null&&i.hasOwnProperty("pkTotalPrice")&&(typeof i.pkTotalPrice=="number"?o.pkTotalPrice=n.longs===String?String(i.pkTotalPrice):i.pkTotalPrice:o.pkTotalPrice=n.longs===String?r.Long.prototype.toString.call(i.pkTotalPrice):n.longs===Number?new r.LongBits(i.pkTotalPrice.low>>>0,i.pkTotalPrice.high>>>0).toNumber():i.pkTotalPrice),i.pkTotalPriceText!=null&&i.hasOwnProperty("pkTotalPriceText")&&(o.pkTotalPriceText=i.pkTotalPriceText),i.pkGroupId!=null&&i.hasOwnProperty("pkGroupId")&&(o.pkGroupId=i.pkGroupId),i.pkGroupTotalPrice!=null&&i.hasOwnProperty("pkGroupTotalPrice")&&(typeof i.pkGroupTotalPrice=="number"?o.pkGroupTotalPrice=n.longs===String?String(i.pkGroupTotalPrice):i.pkGroupTotalPrice:o.pkGroupTotalPrice=n.longs===String?r.Long.prototype.toString.call(i.pkGroupTotalPrice):n.longs===Number?new r.LongBits(i.pkGroupTotalPrice.low>>>0,i.pkGroupTotalPrice.high>>>0).toNumber():i.pkGroupTotalPrice),i.pkGroupTotalPriceText!=null&&i.hasOwnProperty("pkGroupTotalPriceText")&&(o.pkGroupTotalPriceText=i.pkGroupTotalPriceText),i.hat!=null&&i.hasOwnProperty("hat")&&(o.hat=u.bilibili.broadcast.live.voice_room.voice_room.LiveMultiChatHatLevel.toObject(i.hat,n)),i.roomId!=null&&i.hasOwnProperty("roomId")&&(typeof i.roomId=="number"?o.roomId=n.longs===String?String(i.roomId):i.roomId:o.roomId=n.longs===String?r.Long.prototype.toString.call(i.roomId):n.longs===Number?new r.LongBits(i.roomId.low>>>0,i.roomId.high>>>0).toNumber():i.roomId),i.pkID!=null&&i.hasOwnProperty("pkID")&&(o.pkID=i.pkID),i.battleInfo!=null&&i.hasOwnProperty("battleInfo")&&(o.battleInfo=u.bilibili.broadcast.live.voice_room.voice_room.BattleInfo.toObject(i.battleInfo,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.broadcast.live.voice_room.voice_room.LiveBaseOperateEvent"},l}(),e.BattleInfo=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.pkID=i.int64();break}case 2:{a.status=i.int64();break}case 3:{a.battleType=i.int64();break}case 4:{a.timestamp=i.int64();break}case 5:{a.initInfo=u.bilibili.broadcast.live.voice_room.voice_room.BattleInfo.roomInfo.decode(i,i.uint32());break}case 6:{a.matchInfo=u.bilibili.broadcast.live.voice_room.voice_room.BattleInfo.roomInfo.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.broadcast.live.voice_room.voice_room.BattleInfo)return i;let n=new u.bilibili.broadcast.live.voice_room.voice_room.BattleInfo;if(i.pkID!=null&&(r.Long?(n.pkID=r.Long.fromValue(i.pkID)).unsigned=!1:typeof i.pkID=="string"?n.pkID=parseInt(i.pkID,10):typeof i.pkID=="number"?n.pkID=i.pkID:typeof i.pkID=="object"&&(n.pkID=new r.LongBits(i.pkID.low>>>0,i.pkID.high>>>0).toNumber())),i.status!=null&&(r.Long?(n.status=r.Long.fromValue(i.status)).unsigned=!1:typeof i.status=="string"?n.status=parseInt(i.status,10):typeof i.status=="number"?n.status=i.status:typeof i.status=="object"&&(n.status=new r.LongBits(i.status.low>>>0,i.status.high>>>0).toNumber())),i.battleType!=null&&(r.Long?(n.battleType=r.Long.fromValue(i.battleType)).unsigned=!1:typeof i.battleType=="string"?n.battleType=parseInt(i.battleType,10):typeof i.battleType=="number"?n.battleType=i.battleType:typeof i.battleType=="object"&&(n.battleType=new r.LongBits(i.battleType.low>>>0,i.battleType.high>>>0).toNumber())),i.timestamp!=null&&(r.Long?(n.timestamp=r.Long.fromValue(i.timestamp)).unsigned=!1:typeof i.timestamp=="string"?n.timestamp=parseInt(i.timestamp,10):typeof i.timestamp=="number"?n.timestamp=i.timestamp:typeof i.timestamp=="object"&&(n.timestamp=new r.LongBits(i.timestamp.low>>>0,i.timestamp.high>>>0).toNumber())),i.initInfo!=null){if(typeof i.initInfo!="object")throw TypeError(".bilibili.broadcast.live.voice_room.voice_room.BattleInfo.initInfo: object expected");n.initInfo=u.bilibili.broadcast.live.voice_room.voice_room.BattleInfo.roomInfo.fromObject(i.initInfo)}if(i.matchInfo!=null){if(typeof i.matchInfo!="object")throw TypeError(".bilibili.broadcast.live.voice_room.voice_room.BattleInfo.matchInfo: object expected");n.matchInfo=u.bilibili.broadcast.live.voice_room.voice_room.BattleInfo.roomInfo.fromObject(i.matchInfo)}return n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.pkID=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.pkID=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.status=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.status=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.battleType=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.battleType=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.timestamp=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.timestamp=n.longs===String?"0":0;o.initInfo=null,o.matchInfo=null}return i.pkID!=null&&i.hasOwnProperty("pkID")&&(typeof i.pkID=="number"?o.pkID=n.longs===String?String(i.pkID):i.pkID:o.pkID=n.longs===String?r.Long.prototype.toString.call(i.pkID):n.longs===Number?new r.LongBits(i.pkID.low>>>0,i.pkID.high>>>0).toNumber():i.pkID),i.status!=null&&i.hasOwnProperty("status")&&(typeof i.status=="number"?o.status=n.longs===String?String(i.status):i.status:o.status=n.longs===String?r.Long.prototype.toString.call(i.status):n.longs===Number?new r.LongBits(i.status.low>>>0,i.status.high>>>0).toNumber():i.status),i.battleType!=null&&i.hasOwnProperty("battleType")&&(typeof i.battleType=="number"?o.battleType=n.longs===String?String(i.battleType):i.battleType:o.battleType=n.longs===String?r.Long.prototype.toString.call(i.battleType):n.longs===Number?new r.LongBits(i.battleType.low>>>0,i.battleType.high>>>0).toNumber():i.battleType),i.timestamp!=null&&i.hasOwnProperty("timestamp")&&(typeof i.timestamp=="number"?o.timestamp=n.longs===String?String(i.timestamp):i.timestamp:o.timestamp=n.longs===String?r.Long.prototype.toString.call(i.timestamp):n.longs===Number?new r.LongBits(i.timestamp.low>>>0,i.timestamp.high>>>0).toNumber():i.timestamp),i.initInfo!=null&&i.hasOwnProperty("initInfo")&&(o.initInfo=u.bilibili.broadcast.live.voice_room.voice_room.BattleInfo.roomInfo.toObject(i.initInfo,n)),i.matchInfo!=null&&i.hasOwnProperty("matchInfo")&&(o.matchInfo=u.bilibili.broadcast.live.voice_room.voice_room.BattleInfo.roomInfo.toObject(i.matchInfo,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.broadcast.live.voice_room.voice_room.BattleInfo"},l.roomInfo=function(){function t(i){if(i)for(let n=Object.keys(i),o=0;o>>3){case 1:{y.roomID=n.int64();break}case 2:{y.votes=n.int64();break}default:n.skipType(s&7);break}}return y},t.fromObject=function(n){if(n instanceof u.bilibili.broadcast.live.voice_room.voice_room.BattleInfo.roomInfo)return n;let o=new u.bilibili.broadcast.live.voice_room.voice_room.BattleInfo.roomInfo;return n.roomID!=null&&(r.Long?(o.roomID=r.Long.fromValue(n.roomID)).unsigned=!1:typeof n.roomID=="string"?o.roomID=parseInt(n.roomID,10):typeof n.roomID=="number"?o.roomID=n.roomID:typeof n.roomID=="object"&&(o.roomID=new r.LongBits(n.roomID.low>>>0,n.roomID.high>>>0).toNumber())),n.votes!=null&&(r.Long?(o.votes=r.Long.fromValue(n.votes)).unsigned=!1:typeof n.votes=="string"?o.votes=parseInt(n.votes,10):typeof n.votes=="number"?o.votes=n.votes:typeof n.votes=="object"&&(o.votes=new r.LongBits(n.votes.low>>>0,n.votes.high>>>0).toNumber())),o},t.toObject=function(n,o){o||(o={});let a={};if(o.defaults){if(r.Long){let y=new r.Long(0,0,!1);a.roomID=o.longs===String?y.toString():o.longs===Number?y.toNumber():y}else a.roomID=o.longs===String?"0":0;if(r.Long){let y=new r.Long(0,0,!1);a.votes=o.longs===String?y.toString():o.longs===Number?y.toNumber():y}else a.votes=o.longs===String?"0":0}return n.roomID!=null&&n.hasOwnProperty("roomID")&&(typeof n.roomID=="number"?a.roomID=o.longs===String?String(n.roomID):n.roomID:a.roomID=o.longs===String?r.Long.prototype.toString.call(n.roomID):o.longs===Number?new r.LongBits(n.roomID.low>>>0,n.roomID.high>>>0).toNumber():n.roomID),n.votes!=null&&n.hasOwnProperty("votes")&&(typeof n.votes=="number"?a.votes=o.longs===String?String(n.votes):n.votes:a.votes=o.longs===String?r.Long.prototype.toString.call(n.votes):o.longs===Number?new r.LongBits(n.votes.low>>>0,n.votes.high>>>0).toNumber():n.votes),a},t.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},t.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/bilibili.broadcast.live.voice_room.voice_room.BattleInfo.roomInfo"},t}(),l}(),e.LiveMultiVoiceApplicationUserModel=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.count=i.int64();break}case 2:{a.UID=i.int64();break}case 3:{a.roomId=i.int64();break}case 4:{a.role=i.int32();break}case 6:{a.anchorUID=i.int64();break}case 7:{a.operateUID=i.int64();break}case 8:{a.wantPosition=i.int64();break}case 9:{a.event=i.int64();break}case 10:{a.toast=i.string();break}case 11:{a.channel=i.string();break}case 12:{a.traceId=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.broadcast.live.voice_room.voice_room.LiveMultiVoiceApplicationUserModel)return i;let n=new u.bilibili.broadcast.live.voice_room.voice_room.LiveMultiVoiceApplicationUserModel;switch(i.count!=null&&(r.Long?(n.count=r.Long.fromValue(i.count)).unsigned=!1:typeof i.count=="string"?n.count=parseInt(i.count,10):typeof i.count=="number"?n.count=i.count:typeof i.count=="object"&&(n.count=new r.LongBits(i.count.low>>>0,i.count.high>>>0).toNumber())),i.UID!=null&&(r.Long?(n.UID=r.Long.fromValue(i.UID)).unsigned=!1:typeof i.UID=="string"?n.UID=parseInt(i.UID,10):typeof i.UID=="number"?n.UID=i.UID:typeof i.UID=="object"&&(n.UID=new r.LongBits(i.UID.low>>>0,i.UID.high>>>0).toNumber())),i.roomId!=null&&(r.Long?(n.roomId=r.Long.fromValue(i.roomId)).unsigned=!1:typeof i.roomId=="string"?n.roomId=parseInt(i.roomId,10):typeof i.roomId=="number"?n.roomId=i.roomId:typeof i.roomId=="object"&&(n.roomId=new r.LongBits(i.roomId.low>>>0,i.roomId.high>>>0).toNumber())),i.role){default:if(typeof i.role=="number"){n.role=i.role;break}break;case"LiveMultiVoiceRoleCommon":case 0:n.role=0;break;case"LiveMultiVoiceRoleManager":case 1:n.role=1;break;case"LiveMultiVoiceRoleAnchor":case 2:n.role=2;break}return i.anchorUID!=null&&(r.Long?(n.anchorUID=r.Long.fromValue(i.anchorUID)).unsigned=!1:typeof i.anchorUID=="string"?n.anchorUID=parseInt(i.anchorUID,10):typeof i.anchorUID=="number"?n.anchorUID=i.anchorUID:typeof i.anchorUID=="object"&&(n.anchorUID=new r.LongBits(i.anchorUID.low>>>0,i.anchorUID.high>>>0).toNumber())),i.operateUID!=null&&(r.Long?(n.operateUID=r.Long.fromValue(i.operateUID)).unsigned=!1:typeof i.operateUID=="string"?n.operateUID=parseInt(i.operateUID,10):typeof i.operateUID=="number"?n.operateUID=i.operateUID:typeof i.operateUID=="object"&&(n.operateUID=new r.LongBits(i.operateUID.low>>>0,i.operateUID.high>>>0).toNumber())),i.wantPosition!=null&&(r.Long?(n.wantPosition=r.Long.fromValue(i.wantPosition)).unsigned=!1:typeof i.wantPosition=="string"?n.wantPosition=parseInt(i.wantPosition,10):typeof i.wantPosition=="number"?n.wantPosition=i.wantPosition:typeof i.wantPosition=="object"&&(n.wantPosition=new r.LongBits(i.wantPosition.low>>>0,i.wantPosition.high>>>0).toNumber())),i.event!=null&&(r.Long?(n.event=r.Long.fromValue(i.event)).unsigned=!1:typeof i.event=="string"?n.event=parseInt(i.event,10):typeof i.event=="number"?n.event=i.event:typeof i.event=="object"&&(n.event=new r.LongBits(i.event.low>>>0,i.event.high>>>0).toNumber())),i.toast!=null&&(n.toast=String(i.toast)),i.channel!=null&&(n.channel=String(i.channel)),i.traceId!=null&&(n.traceId=String(i.traceId)),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.count=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.count=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.UID=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.UID=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.roomId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.roomId=n.longs===String?"0":0;if(o.role=n.enums===String?"LiveMultiVoiceRoleCommon":0,r.Long){let a=new r.Long(0,0,!1);o.anchorUID=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.anchorUID=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.operateUID=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.operateUID=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.wantPosition=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.wantPosition=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.event=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.event=n.longs===String?"0":0;o.toast="",o.channel="",o.traceId=""}return i.count!=null&&i.hasOwnProperty("count")&&(typeof i.count=="number"?o.count=n.longs===String?String(i.count):i.count:o.count=n.longs===String?r.Long.prototype.toString.call(i.count):n.longs===Number?new r.LongBits(i.count.low>>>0,i.count.high>>>0).toNumber():i.count),i.UID!=null&&i.hasOwnProperty("UID")&&(typeof i.UID=="number"?o.UID=n.longs===String?String(i.UID):i.UID:o.UID=n.longs===String?r.Long.prototype.toString.call(i.UID):n.longs===Number?new r.LongBits(i.UID.low>>>0,i.UID.high>>>0).toNumber():i.UID),i.roomId!=null&&i.hasOwnProperty("roomId")&&(typeof i.roomId=="number"?o.roomId=n.longs===String?String(i.roomId):i.roomId:o.roomId=n.longs===String?r.Long.prototype.toString.call(i.roomId):n.longs===Number?new r.LongBits(i.roomId.low>>>0,i.roomId.high>>>0).toNumber():i.roomId),i.role!=null&&i.hasOwnProperty("role")&&(o.role=n.enums===String?u.bilibili.broadcast.live.voice_room.voice_room.LiveMultiVoiceRole[i.role]===void 0?i.role:u.bilibili.broadcast.live.voice_room.voice_room.LiveMultiVoiceRole[i.role]:i.role),i.anchorUID!=null&&i.hasOwnProperty("anchorUID")&&(typeof i.anchorUID=="number"?o.anchorUID=n.longs===String?String(i.anchorUID):i.anchorUID:o.anchorUID=n.longs===String?r.Long.prototype.toString.call(i.anchorUID):n.longs===Number?new r.LongBits(i.anchorUID.low>>>0,i.anchorUID.high>>>0).toNumber():i.anchorUID),i.operateUID!=null&&i.hasOwnProperty("operateUID")&&(typeof i.operateUID=="number"?o.operateUID=n.longs===String?String(i.operateUID):i.operateUID:o.operateUID=n.longs===String?r.Long.prototype.toString.call(i.operateUID):n.longs===Number?new r.LongBits(i.operateUID.low>>>0,i.operateUID.high>>>0).toNumber():i.operateUID),i.wantPosition!=null&&i.hasOwnProperty("wantPosition")&&(typeof i.wantPosition=="number"?o.wantPosition=n.longs===String?String(i.wantPosition):i.wantPosition:o.wantPosition=n.longs===String?r.Long.prototype.toString.call(i.wantPosition):n.longs===Number?new r.LongBits(i.wantPosition.low>>>0,i.wantPosition.high>>>0).toNumber():i.wantPosition),i.event!=null&&i.hasOwnProperty("event")&&(typeof i.event=="number"?o.event=n.longs===String?String(i.event):i.event:o.event=n.longs===String?r.Long.prototype.toString.call(i.event):n.longs===Number?new r.LongBits(i.event.low>>>0,i.event.high>>>0).toNumber():i.event),i.toast!=null&&i.hasOwnProperty("toast")&&(o.toast=i.toast),i.channel!=null&&i.hasOwnProperty("channel")&&(o.channel=i.channel),i.traceId!=null&&i.hasOwnProperty("traceId")&&(o.traceId=i.traceId),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.broadcast.live.voice_room.voice_room.LiveMultiVoiceApplicationUserModel"},l}(),e.LiveMultiVoiceJoinEvent=function(){function l(t){if(this.existUids=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.chId=i.string();break}case 2:{a.businessType=i.int32();break}case 3:{a.innerExtra=i.string();break}case 4:{a.buvid=i.string();break}case 5:{a.initiator=i.int64();break}case 6:{a.invitedUid=i.int64();break}case 7:{a.cdn=i.int32();break}case 8:{a.channelInfo=i.string();break}case 9:{a.interactId=i.int64();break}case 10:{a.linkId=i.int64();break}case 11:{a.ts=i.int64();break}case 12:{if(a.existUids&&a.existUids.length||(a.existUids=[]),(y&7)===2){let s=i.uint32()+i.pos;for(;i.pos>>0,i.initiator.high>>>0).toNumber())),i.invitedUid!=null&&(r.Long?(n.invitedUid=r.Long.fromValue(i.invitedUid)).unsigned=!1:typeof i.invitedUid=="string"?n.invitedUid=parseInt(i.invitedUid,10):typeof i.invitedUid=="number"?n.invitedUid=i.invitedUid:typeof i.invitedUid=="object"&&(n.invitedUid=new r.LongBits(i.invitedUid.low>>>0,i.invitedUid.high>>>0).toNumber())),i.cdn!=null&&(n.cdn=i.cdn|0),i.channelInfo!=null&&(n.channelInfo=String(i.channelInfo)),i.interactId!=null&&(r.Long?(n.interactId=r.Long.fromValue(i.interactId)).unsigned=!1:typeof i.interactId=="string"?n.interactId=parseInt(i.interactId,10):typeof i.interactId=="number"?n.interactId=i.interactId:typeof i.interactId=="object"&&(n.interactId=new r.LongBits(i.interactId.low>>>0,i.interactId.high>>>0).toNumber())),i.linkId!=null&&(r.Long?(n.linkId=r.Long.fromValue(i.linkId)).unsigned=!1:typeof i.linkId=="string"?n.linkId=parseInt(i.linkId,10):typeof i.linkId=="number"?n.linkId=i.linkId:typeof i.linkId=="object"&&(n.linkId=new r.LongBits(i.linkId.low>>>0,i.linkId.high>>>0).toNumber())),i.ts!=null&&(r.Long?(n.ts=r.Long.fromValue(i.ts)).unsigned=!1:typeof i.ts=="string"?n.ts=parseInt(i.ts,10):typeof i.ts=="number"?n.ts=i.ts:typeof i.ts=="object"&&(n.ts=new r.LongBits(i.ts.low>>>0,i.ts.high>>>0).toNumber())),i.existUids){if(!Array.isArray(i.existUids))throw TypeError(".bilibili.broadcast.live.voice_room.voice_room.LiveMultiVoiceJoinEvent.existUids: array expected");n.existUids=[];for(let o=0;o>>0,i.existUids[o].high>>>0).toNumber())}return i.traceId!=null&&(n.traceId=String(i.traceId)),i.bizSessionId!=null&&(n.bizSessionId=String(i.bizSessionId)),n},l.toObject=function(i,n){n||(n={});let o={};if((n.arrays||n.defaults)&&(o.existUids=[]),n.defaults){if(o.chId="",o.businessType=n.enums===String?"LiveInteractBusinessTypeNode":0,o.innerExtra="",o.buvid="",r.Long){let a=new r.Long(0,0,!1);o.initiator=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.initiator=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.invitedUid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.invitedUid=n.longs===String?"0":0;if(o.cdn=0,o.channelInfo="",r.Long){let a=new r.Long(0,0,!1);o.interactId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.interactId=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.linkId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.linkId=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.ts=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.ts=n.longs===String?"0":0;o.traceId="",o.bizSessionId=""}if(i.chId!=null&&i.hasOwnProperty("chId")&&(o.chId=i.chId),i.businessType!=null&&i.hasOwnProperty("businessType")&&(o.businessType=n.enums===String?u.bilibili.broadcast.live.voice_room.voice_room.LiveInteractBusinessType[i.businessType]===void 0?i.businessType:u.bilibili.broadcast.live.voice_room.voice_room.LiveInteractBusinessType[i.businessType]:i.businessType),i.innerExtra!=null&&i.hasOwnProperty("innerExtra")&&(o.innerExtra=i.innerExtra),i.buvid!=null&&i.hasOwnProperty("buvid")&&(o.buvid=i.buvid),i.initiator!=null&&i.hasOwnProperty("initiator")&&(typeof i.initiator=="number"?o.initiator=n.longs===String?String(i.initiator):i.initiator:o.initiator=n.longs===String?r.Long.prototype.toString.call(i.initiator):n.longs===Number?new r.LongBits(i.initiator.low>>>0,i.initiator.high>>>0).toNumber():i.initiator),i.invitedUid!=null&&i.hasOwnProperty("invitedUid")&&(typeof i.invitedUid=="number"?o.invitedUid=n.longs===String?String(i.invitedUid):i.invitedUid:o.invitedUid=n.longs===String?r.Long.prototype.toString.call(i.invitedUid):n.longs===Number?new r.LongBits(i.invitedUid.low>>>0,i.invitedUid.high>>>0).toNumber():i.invitedUid),i.cdn!=null&&i.hasOwnProperty("cdn")&&(o.cdn=i.cdn),i.channelInfo!=null&&i.hasOwnProperty("channelInfo")&&(o.channelInfo=i.channelInfo),i.interactId!=null&&i.hasOwnProperty("interactId")&&(typeof i.interactId=="number"?o.interactId=n.longs===String?String(i.interactId):i.interactId:o.interactId=n.longs===String?r.Long.prototype.toString.call(i.interactId):n.longs===Number?new r.LongBits(i.interactId.low>>>0,i.interactId.high>>>0).toNumber():i.interactId),i.linkId!=null&&i.hasOwnProperty("linkId")&&(typeof i.linkId=="number"?o.linkId=n.longs===String?String(i.linkId):i.linkId:o.linkId=n.longs===String?r.Long.prototype.toString.call(i.linkId):n.longs===Number?new r.LongBits(i.linkId.low>>>0,i.linkId.high>>>0).toNumber():i.linkId),i.ts!=null&&i.hasOwnProperty("ts")&&(typeof i.ts=="number"?o.ts=n.longs===String?String(i.ts):i.ts:o.ts=n.longs===String?r.Long.prototype.toString.call(i.ts):n.longs===Number?new r.LongBits(i.ts.low>>>0,i.ts.high>>>0).toNumber():i.ts),i.existUids&&i.existUids.length){o.existUids=[];for(let a=0;a>>0,i.existUids[a].high>>>0).toNumber():i.existUids[a]}return i.traceId!=null&&i.hasOwnProperty("traceId")&&(o.traceId=i.traceId),i.bizSessionId!=null&&i.hasOwnProperty("bizSessionId")&&(o.bizSessionId=i.bizSessionId),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.broadcast.live.voice_room.voice_room.LiveMultiVoiceJoinEvent"},l}(),e.LiveMultiChatHatLevel=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.name=i.string();break}case 2:{a.image=i.string();break}case 3:{a.icon=i.string();break}case 4:{a.desc=i.string();break}case 5:{a.level=i.int64();break}case 6:{a.backgroundColorStart=i.string();break}case 7:{a.backgroundColorEnd=i.string();break}case 8:{a.animationWebp=i.string();break}case 9:{a.animationSvga=i.string();break}case 10:{a.price=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.broadcast.live.voice_room.voice_room.LiveMultiChatHatLevel)return i;let n=new u.bilibili.broadcast.live.voice_room.voice_room.LiveMultiChatHatLevel;return i.name!=null&&(n.name=String(i.name)),i.image!=null&&(n.image=String(i.image)),i.icon!=null&&(n.icon=String(i.icon)),i.desc!=null&&(n.desc=String(i.desc)),i.level!=null&&(r.Long?(n.level=r.Long.fromValue(i.level)).unsigned=!1:typeof i.level=="string"?n.level=parseInt(i.level,10):typeof i.level=="number"?n.level=i.level:typeof i.level=="object"&&(n.level=new r.LongBits(i.level.low>>>0,i.level.high>>>0).toNumber())),i.backgroundColorStart!=null&&(n.backgroundColorStart=String(i.backgroundColorStart)),i.backgroundColorEnd!=null&&(n.backgroundColorEnd=String(i.backgroundColorEnd)),i.animationWebp!=null&&(n.animationWebp=String(i.animationWebp)),i.animationSvga!=null&&(n.animationSvga=String(i.animationSvga)),i.price!=null&&(r.Long?(n.price=r.Long.fromValue(i.price)).unsigned=!1:typeof i.price=="string"?n.price=parseInt(i.price,10):typeof i.price=="number"?n.price=i.price:typeof i.price=="object"&&(n.price=new r.LongBits(i.price.low>>>0,i.price.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(o.name="",o.image="",o.icon="",o.desc="",r.Long){let a=new r.Long(0,0,!1);o.level=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.level=n.longs===String?"0":0;if(o.backgroundColorStart="",o.backgroundColorEnd="",o.animationWebp="",o.animationSvga="",r.Long){let a=new r.Long(0,0,!1);o.price=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.price=n.longs===String?"0":0}return i.name!=null&&i.hasOwnProperty("name")&&(o.name=i.name),i.image!=null&&i.hasOwnProperty("image")&&(o.image=i.image),i.icon!=null&&i.hasOwnProperty("icon")&&(o.icon=i.icon),i.desc!=null&&i.hasOwnProperty("desc")&&(o.desc=i.desc),i.level!=null&&i.hasOwnProperty("level")&&(typeof i.level=="number"?o.level=n.longs===String?String(i.level):i.level:o.level=n.longs===String?r.Long.prototype.toString.call(i.level):n.longs===Number?new r.LongBits(i.level.low>>>0,i.level.high>>>0).toNumber():i.level),i.backgroundColorStart!=null&&i.hasOwnProperty("backgroundColorStart")&&(o.backgroundColorStart=i.backgroundColorStart),i.backgroundColorEnd!=null&&i.hasOwnProperty("backgroundColorEnd")&&(o.backgroundColorEnd=i.backgroundColorEnd),i.animationWebp!=null&&i.hasOwnProperty("animationWebp")&&(o.animationWebp=i.animationWebp),i.animationSvga!=null&&i.hasOwnProperty("animationSvga")&&(o.animationSvga=i.animationSvga),i.price!=null&&i.hasOwnProperty("price")&&(typeof i.price=="number"?o.price=n.longs===String?String(i.price):i.price:o.price=n.longs===String?r.Long.prototype.toString.call(i.price):n.longs===Number?new r.LongBits(i.price.low>>>0,i.price.high>>>0).toNumber():i.price),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.broadcast.live.voice_room.voice_room.LiveMultiChatHatLevel"},l}(),e.LiveInteractOperationType=function(){let l={},t=Object.create(l);return t[l[0]="LiveInteractOperationTypeInvalid"]=0,t[l[1]="LiveInteractOperationTypeAccept"]=1,t[l[2]="LiveInteractOperationTypeReject"]=2,t[l[3]="LiveInteractOperationTypeCancel"]=3,t[l[4]="LiveInteractOperationTypeNoReply"]=4,t[l[5]="LiveInteractOperationTypeInvited"]=5,t}(),e.LiveInteractBusinessType=function(){let l={},t=Object.create(l);return t[l[0]="LiveInteractBusinessTypeNode"]=0,t[l[10]="LiveInteractBusinessTypeMultiVoice"]=10,t}(),e.LiveMultiVoiceRole=function(){let l={},t=Object.create(l);return t[l[0]="LiveMultiVoiceRoleCommon"]=0,t[l[1]="LiveMultiVoiceRoleManager"]=1,t[l[2]="LiveMultiVoiceRoleAnchor"]=2,t}(),e}(),c}(),p}(),d.message=function(){let p={};return p.archive=function(){let c={};return c.VideoUp=function(){function e(l,t,i){b.rpc.Service.call(this,l,t,i)}return(e.prototype=Object.create(b.rpc.Service.prototype)).constructor=e,e.create=function(t,i,n){return new this(t,i,n)},Object.defineProperty(e.prototype.videoData=function l(t,i){return this.rpcCall(l,u.google.protobuf.Empty,u.bilibili.broadcast.message.archive.VideoDataReply,t,i)},"name",{value:"VideoData"}),e}(),c.VideoDataReply=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.type=t.int64();break}case 2:{o.data=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.archive.VideoDataReply)return t;let i=new u.bilibili.broadcast.message.archive.VideoDataReply;return t.type!=null&&(r.Long?(i.type=r.Long.fromValue(t.type)).unsigned=!1:typeof t.type=="string"?i.type=parseInt(t.type,10):typeof t.type=="number"?i.type=t.type:typeof t.type=="object"&&(i.type=new r.LongBits(t.type.low>>>0,t.type.high>>>0).toNumber())),t.data!=null&&(i.data=String(t.data)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.type=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.type=i.longs===String?"0":0;n.data=""}return t.type!=null&&t.hasOwnProperty("type")&&(typeof t.type=="number"?n.type=i.longs===String?String(t.type):t.type:n.type=i.longs===String?r.Long.prototype.toString.call(t.type):i.longs===Number?new r.LongBits(t.type.low>>>0,t.type.high>>>0).toNumber():t.type),t.data!=null&&t.hasOwnProperty("data")&&(n.data=t.data),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.message.archive.VideoDataReply"},e}(),c}(),p.bgroup=function(){let c={};return c.AppEvent=function(){let e={},l=Object.create(e);return l[e[0]="AppEventUnknown"]=0,l[e[1]="AppEventVisible"]=1,l[e[2]="AppEventInvisible"]=2,l[e[3]="AppEventHomePage"]=3,l[e[4]="AppEventColdStart"]=4,l}(),c.BGroup=function(){function e(l,t,i){b.rpc.Service.call(this,l,t,i)}return(e.prototype=Object.create(b.rpc.Service.prototype)).constructor=e,e.create=function(t,i,n){return new this(t,i,n)},Object.defineProperty(e.prototype.appEventStream=function l(t,i){return this.rpcCall(l,u.bilibili.broadcast.message.bgroup.AppEventMessage,u.google.protobuf.Empty,t,i)},"name",{value:"AppEventStream"}),e}(),c.AppEventMessage=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.eventType=t.int32();break}case 2:{o.timestamp=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.bgroup.AppEventMessage)return t;let i=new u.bilibili.broadcast.message.bgroup.AppEventMessage;switch(t.eventType){default:if(typeof t.eventType=="number"){i.eventType=t.eventType;break}break;case"AppEventUnknown":case 0:i.eventType=0;break;case"AppEventVisible":case 1:i.eventType=1;break;case"AppEventInvisible":case 2:i.eventType=2;break;case"AppEventHomePage":case 3:i.eventType=3;break;case"AppEventColdStart":case 4:i.eventType=4;break}return t.timestamp!=null&&(r.Long?(i.timestamp=r.Long.fromValue(t.timestamp)).unsigned=!1:typeof t.timestamp=="string"?i.timestamp=parseInt(t.timestamp,10):typeof t.timestamp=="number"?i.timestamp=t.timestamp:typeof t.timestamp=="object"&&(i.timestamp=new r.LongBits(t.timestamp.low>>>0,t.timestamp.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(n.eventType=i.enums===String?"AppEventUnknown":0,r.Long){let o=new r.Long(0,0,!1);n.timestamp=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.timestamp=i.longs===String?"0":0;return t.eventType!=null&&t.hasOwnProperty("eventType")&&(n.eventType=i.enums===String?u.bilibili.broadcast.message.bgroup.AppEvent[t.eventType]===void 0?t.eventType:u.bilibili.broadcast.message.bgroup.AppEvent[t.eventType]:t.eventType),t.timestamp!=null&&t.hasOwnProperty("timestamp")&&(typeof t.timestamp=="number"?n.timestamp=i.longs===String?String(t.timestamp):t.timestamp:n.timestamp=i.longs===String?r.Long.prototype.toString.call(t.timestamp):i.longs===Number?new r.LongBits(t.timestamp.low>>>0,t.timestamp.high>>>0).toNumber():t.timestamp),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.message.bgroup.AppEventMessage"},e}(),c}(),p.biligram=function(){let c={};return c.Messages=function(){function e(l){if(this.messages=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.messages&&o.messages.length||(o.messages=[]),o.messages.push(u.bilibili.community.interface_.biligram.v1.Message.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.biligram.Messages)return t;let i=new u.bilibili.broadcast.message.biligram.Messages;if(t.messages){if(!Array.isArray(t.messages))throw TypeError(".bilibili.broadcast.message.biligram.Messages.messages: array expected");i.messages=[];for(let n=0;n>>3){case 1:{o.msgType=t.int32();break}case 2:{o.msgContent=t.string();break}case 3:{o.reportContent=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.comics.Notify)return t;let i=new u.bilibili.broadcast.message.comics.Notify;return t.msgType!=null&&(i.msgType=t.msgType|0),t.msgContent!=null&&(i.msgContent=String(t.msgContent)),t.reportContent!=null&&(i.reportContent=String(t.reportContent)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.msgType=0,n.msgContent="",n.reportContent=""),t.msgType!=null&&t.hasOwnProperty("msgType")&&(n.msgType=t.msgType),t.msgContent!=null&&t.hasOwnProperty("msgContent")&&(n.msgContent=t.msgContent),t.reportContent!=null&&t.hasOwnProperty("reportContent")&&(n.reportContent=t.reportContent),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.message.comics.Notify"},e}(),c}(),p.editor=function(){let c={};return c.OperationNotify=function(){function e(l,t,i){b.rpc.Service.call(this,l,t,i)}return(e.prototype=Object.create(b.rpc.Service.prototype)).constructor=e,e.create=function(t,i,n){return new this(t,i,n)},Object.defineProperty(e.prototype.operationNotify=function l(t,i){return this.rpcCall(l,u.google.protobuf.Empty,u.bilibili.broadcast.message.editor.Notify,t,i)},"name",{value:"OperationNotify"}),e}(),c.Notify=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.msgId=t.int64();break}case 2:{o.msgType=t.int32();break}case 3:{o.receiverUid=t.int64();break}case 4:{o.receiverType=t.int32();break}case 5:{o.storyVersion=t.int64();break}case 6:{o.opHash=t.int64();break}case 7:{o.opSender=t.int64();break}case 8:{o.opContent=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.editor.Notify)return t;let i=new u.bilibili.broadcast.message.editor.Notify;return t.msgId!=null&&(r.Long?(i.msgId=r.Long.fromValue(t.msgId)).unsigned=!1:typeof t.msgId=="string"?i.msgId=parseInt(t.msgId,10):typeof t.msgId=="number"?i.msgId=t.msgId:typeof t.msgId=="object"&&(i.msgId=new r.LongBits(t.msgId.low>>>0,t.msgId.high>>>0).toNumber())),t.msgType!=null&&(i.msgType=t.msgType|0),t.receiverUid!=null&&(r.Long?(i.receiverUid=r.Long.fromValue(t.receiverUid)).unsigned=!1:typeof t.receiverUid=="string"?i.receiverUid=parseInt(t.receiverUid,10):typeof t.receiverUid=="number"?i.receiverUid=t.receiverUid:typeof t.receiverUid=="object"&&(i.receiverUid=new r.LongBits(t.receiverUid.low>>>0,t.receiverUid.high>>>0).toNumber())),t.receiverType!=null&&(i.receiverType=t.receiverType|0),t.storyVersion!=null&&(r.Long?(i.storyVersion=r.Long.fromValue(t.storyVersion)).unsigned=!1:typeof t.storyVersion=="string"?i.storyVersion=parseInt(t.storyVersion,10):typeof t.storyVersion=="number"?i.storyVersion=t.storyVersion:typeof t.storyVersion=="object"&&(i.storyVersion=new r.LongBits(t.storyVersion.low>>>0,t.storyVersion.high>>>0).toNumber())),t.opHash!=null&&(r.Long?(i.opHash=r.Long.fromValue(t.opHash)).unsigned=!1:typeof t.opHash=="string"?i.opHash=parseInt(t.opHash,10):typeof t.opHash=="number"?i.opHash=t.opHash:typeof t.opHash=="object"&&(i.opHash=new r.LongBits(t.opHash.low>>>0,t.opHash.high>>>0).toNumber())),t.opSender!=null&&(r.Long?(i.opSender=r.Long.fromValue(t.opSender)).unsigned=!1:typeof t.opSender=="string"?i.opSender=parseInt(t.opSender,10):typeof t.opSender=="number"?i.opSender=t.opSender:typeof t.opSender=="object"&&(i.opSender=new r.LongBits(t.opSender.low>>>0,t.opSender.high>>>0).toNumber())),t.opContent!=null&&(i.opContent=String(t.opContent)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.msgId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.msgId=i.longs===String?"0":0;if(n.msgType=0,r.Long){let o=new r.Long(0,0,!1);n.receiverUid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.receiverUid=i.longs===String?"0":0;if(n.receiverType=0,r.Long){let o=new r.Long(0,0,!1);n.storyVersion=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.storyVersion=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.opHash=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.opHash=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.opSender=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.opSender=i.longs===String?"0":0;n.opContent=""}return t.msgId!=null&&t.hasOwnProperty("msgId")&&(typeof t.msgId=="number"?n.msgId=i.longs===String?String(t.msgId):t.msgId:n.msgId=i.longs===String?r.Long.prototype.toString.call(t.msgId):i.longs===Number?new r.LongBits(t.msgId.low>>>0,t.msgId.high>>>0).toNumber():t.msgId),t.msgType!=null&&t.hasOwnProperty("msgType")&&(n.msgType=t.msgType),t.receiverUid!=null&&t.hasOwnProperty("receiverUid")&&(typeof t.receiverUid=="number"?n.receiverUid=i.longs===String?String(t.receiverUid):t.receiverUid:n.receiverUid=i.longs===String?r.Long.prototype.toString.call(t.receiverUid):i.longs===Number?new r.LongBits(t.receiverUid.low>>>0,t.receiverUid.high>>>0).toNumber():t.receiverUid),t.receiverType!=null&&t.hasOwnProperty("receiverType")&&(n.receiverType=t.receiverType),t.storyVersion!=null&&t.hasOwnProperty("storyVersion")&&(typeof t.storyVersion=="number"?n.storyVersion=i.longs===String?String(t.storyVersion):t.storyVersion:n.storyVersion=i.longs===String?r.Long.prototype.toString.call(t.storyVersion):i.longs===Number?new r.LongBits(t.storyVersion.low>>>0,t.storyVersion.high>>>0).toNumber():t.storyVersion),t.opHash!=null&&t.hasOwnProperty("opHash")&&(typeof t.opHash=="number"?n.opHash=i.longs===String?String(t.opHash):t.opHash:n.opHash=i.longs===String?r.Long.prototype.toString.call(t.opHash):i.longs===Number?new r.LongBits(t.opHash.low>>>0,t.opHash.high>>>0).toNumber():t.opHash),t.opSender!=null&&t.hasOwnProperty("opSender")&&(typeof t.opSender=="number"?n.opSender=i.longs===String?String(t.opSender):t.opSender:n.opSender=i.longs===String?r.Long.prototype.toString.call(t.opSender):i.longs===Number?new r.LongBits(t.opSender.low>>>0,t.opSender.high>>>0).toNumber():t.opSender),t.opContent!=null&&t.hasOwnProperty("opContent")&&(n.opContent=t.opContent),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.message.editor.Notify"},e}(),c}(),p.esports=function(){let c={};return c.Notify=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.cid=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.esports.Notify)return t;let i=new u.bilibili.broadcast.message.esports.Notify;return t.cid!=null&&(r.Long?(i.cid=r.Long.fromValue(t.cid)).unsigned=!1:typeof t.cid=="string"?i.cid=parseInt(t.cid,10):typeof t.cid=="number"?i.cid=t.cid:typeof t.cid=="object"&&(i.cid=new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(r.Long){let o=new r.Long(0,0,!1);n.cid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.cid=i.longs===String?"0":0;return t.cid!=null&&t.hasOwnProperty("cid")&&(typeof t.cid=="number"?n.cid=i.longs===String?String(t.cid):t.cid:n.cid=i.longs===String?r.Long.prototype.toString.call(t.cid):i.longs===Number?new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber():t.cid),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.message.esports.Notify"},e}(),c}(),p.fawkes=function(){let c={};return c.Module=function(){function e(l,t,i){b.rpc.Service.call(this,l,t,i)}return(e.prototype=Object.create(b.rpc.Service.prototype)).constructor=e,e.create=function(t,i,n){return new this(t,i,n)},Object.defineProperty(e.prototype.watchModule=function l(t,i){return this.rpcCall(l,u.google.protobuf.Empty,u.bilibili.broadcast.message.fawkes.ModuleNotifyReply,t,i)},"name",{value:"WatchModule"}),e}(),c.Action=function(){let e={},l=Object.create(e);return l[e[0]="UNKNOWN"]=0,l[e[1]="DELETE"]=1,l}(),c.ModuleNotifyReply=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.atcion=t.int32();break}case 2:{o.appKey=t.string();break}case 3:{o.poolName=t.string();break}case 4:{o.moduleName=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.fawkes.ModuleNotifyReply)return t;let i=new u.bilibili.broadcast.message.fawkes.ModuleNotifyReply;switch(t.atcion){default:if(typeof t.atcion=="number"){i.atcion=t.atcion;break}break;case"UNKNOWN":case 0:i.atcion=0;break;case"DELETE":case 1:i.atcion=1;break}return t.appKey!=null&&(i.appKey=String(t.appKey)),t.poolName!=null&&(i.poolName=String(t.poolName)),t.moduleName!=null&&(i.moduleName=String(t.moduleName)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.atcion=i.enums===String?"UNKNOWN":0,n.appKey="",n.poolName="",n.moduleName=""),t.atcion!=null&&t.hasOwnProperty("atcion")&&(n.atcion=i.enums===String?u.bilibili.broadcast.message.fawkes.Action[t.atcion]===void 0?t.atcion:u.bilibili.broadcast.message.fawkes.Action[t.atcion]:t.atcion),t.appKey!=null&&t.hasOwnProperty("appKey")&&(n.appKey=t.appKey),t.poolName!=null&&t.hasOwnProperty("poolName")&&(n.poolName=t.poolName),t.moduleName!=null&&t.hasOwnProperty("moduleName")&&(n.moduleName=t.moduleName),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.message.fawkes.ModuleNotifyReply"},e}(),c}(),p.fission=function(){let c={};return c.Fission=function(){function e(l,t,i){b.rpc.Service.call(this,l,t,i)}return(e.prototype=Object.create(b.rpc.Service.prototype)).constructor=e,e.create=function(t,i,n){return new this(t,i,n)},Object.defineProperty(e.prototype.gameNotify=function l(t,i){return this.rpcCall(l,u.google.protobuf.Empty,u.bilibili.broadcast.message.fission.GameNotifyReply,t,i)},"name",{value:"GameNotify"}),e}(),c.GameNotifyReply=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.type=t.uint32();break}case 2:{o.data=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.fission.GameNotifyReply)return t;let i=new u.bilibili.broadcast.message.fission.GameNotifyReply;return t.type!=null&&(i.type=t.type>>>0),t.data!=null&&(i.data=String(t.data)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.type=0,n.data=""),t.type!=null&&t.hasOwnProperty("type")&&(n.type=t.type),t.data!=null&&t.hasOwnProperty("data")&&(n.data=t.data),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.message.fission.GameNotifyReply"},e}(),c}(),p.gamecenter=function(){let c={};return c.PushEvent=function(){let e={},l=Object.create(e);return l[e[0]="PushEventUnknown"]=0,l[e[1]="PushEventDownload"]=1,l}(),c.GameCenterPush=function(){function e(l,t,i){b.rpc.Service.call(this,l,t,i)}return(e.prototype=Object.create(b.rpc.Service.prototype)).constructor=e,e.create=function(t,i,n){return new this(t,i,n)},Object.defineProperty(e.prototype.pushEvent=function l(t,i){return this.rpcCall(l,u.google.protobuf.Empty,u.bilibili.broadcast.message.gamecenter.PushEventReply,t,i)},"name",{value:"PushEvent"}),e}(),c.PushEventMessage=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.eventType=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.gamecenter.PushEventMessage)return t;let i=new u.bilibili.broadcast.message.gamecenter.PushEventMessage;switch(t.eventType){default:if(typeof t.eventType=="number"){i.eventType=t.eventType;break}break;case"PushEventUnknown":case 0:i.eventType=0;break;case"PushEventDownload":case 1:i.eventType=1;break}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.eventType=i.enums===String?"PushEventUnknown":0),t.eventType!=null&&t.hasOwnProperty("eventType")&&(n.eventType=i.enums===String?u.bilibili.broadcast.message.gamecenter.PushEvent[t.eventType]===void 0?t.eventType:u.bilibili.broadcast.message.gamecenter.PushEvent[t.eventType]:t.eventType),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.message.gamecenter.PushEventMessage"},e}(),c.PushEventReply=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.eventType=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.gamecenter.PushEventReply)return t;let i=new u.bilibili.broadcast.message.gamecenter.PushEventReply;switch(t.eventType){default:if(typeof t.eventType=="number"){i.eventType=t.eventType;break}break;case"PushEventUnknown":case 0:i.eventType=0;break;case"PushEventDownload":case 1:i.eventType=1;break}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.eventType=i.enums===String?"PushEventUnknown":0),t.eventType!=null&&t.hasOwnProperty("eventType")&&(n.eventType=i.enums===String?u.bilibili.broadcast.message.gamecenter.PushEvent[t.eventType]===void 0?t.eventType:u.bilibili.broadcast.message.gamecenter.PushEvent[t.eventType]:t.eventType),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.message.gamecenter.PushEventReply"},e}(),c}(),p.im=function(){let c={};return c.PLType=function(){let e={},l=Object.create(e);return l[e[0]="EN_PAYLOAD_NORMAL"]=0,l[e[1]="EN_PAYLOAD_BASE64"]=1,l}(),c.CmdId=function(){let e={},l=Object.create(e);return l[e[0]="EN_CMD_ID_INVALID"]=0,l[e[1]="EN_CMD_ID_MSG_NOTIFY"]=1,l[e[2]="EN_CMD_ID_KICK_OUT"]=2,l}(),c.NotifyRsp=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.uid=t.uint64();break}case 2:{o.cmd=t.uint64();break}case 3:{o.payload=t.bytes();break}case 4:{o.payloadType=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.im.NotifyRsp)return t;let i=new u.bilibili.broadcast.message.im.NotifyRsp;switch(t.uid!=null&&(r.Long?(i.uid=r.Long.fromValue(t.uid)).unsigned=!0:typeof t.uid=="string"?i.uid=parseInt(t.uid,10):typeof t.uid=="number"?i.uid=t.uid:typeof t.uid=="object"&&(i.uid=new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber(!0))),t.cmd!=null&&(r.Long?(i.cmd=r.Long.fromValue(t.cmd)).unsigned=!0:typeof t.cmd=="string"?i.cmd=parseInt(t.cmd,10):typeof t.cmd=="number"?i.cmd=t.cmd:typeof t.cmd=="object"&&(i.cmd=new r.LongBits(t.cmd.low>>>0,t.cmd.high>>>0).toNumber(!0))),t.payload!=null&&(typeof t.payload=="string"?r.base64.decode(t.payload,i.payload=r.newBuffer(r.base64.length(t.payload)),0):t.payload.length>=0&&(i.payload=t.payload)),t.payloadType){default:if(typeof t.payloadType=="number"){i.payloadType=t.payloadType;break}break;case"EN_PAYLOAD_NORMAL":case 0:i.payloadType=0;break;case"EN_PAYLOAD_BASE64":case 1:i.payloadType=1;break}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!0);n.uid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.uid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!0);n.cmd=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.cmd=i.longs===String?"0":0;i.bytes===String?n.payload="":(n.payload=[],i.bytes!==Array&&(n.payload=r.newBuffer(n.payload))),n.payloadType=i.enums===String?"EN_PAYLOAD_NORMAL":0}return t.uid!=null&&t.hasOwnProperty("uid")&&(typeof t.uid=="number"?n.uid=i.longs===String?String(t.uid):t.uid:n.uid=i.longs===String?r.Long.prototype.toString.call(t.uid):i.longs===Number?new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber(!0):t.uid),t.cmd!=null&&t.hasOwnProperty("cmd")&&(typeof t.cmd=="number"?n.cmd=i.longs===String?String(t.cmd):t.cmd:n.cmd=i.longs===String?r.Long.prototype.toString.call(t.cmd):i.longs===Number?new r.LongBits(t.cmd.low>>>0,t.cmd.high>>>0).toNumber(!0):t.cmd),t.payload!=null&&t.hasOwnProperty("payload")&&(n.payload=i.bytes===String?r.base64.encode(t.payload,0,t.payload.length):i.bytes===Array?Array.prototype.slice.call(t.payload):t.payload),t.payloadType!=null&&t.hasOwnProperty("payloadType")&&(n.payloadType=i.enums===String?u.bilibili.broadcast.message.im.PLType[t.payloadType]===void 0?t.payloadType:u.bilibili.broadcast.message.im.PLType[t.payloadType]:t.payloadType),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.message.im.NotifyRsp"},e}(),c.Msg=function(){function e(l){if(this.atUids=[],this.recverIds=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.senderUid=t.uint64();break}case 2:{o.receiverType=t.int32();break}case 3:{o.receiverId=t.uint64();break}case 4:{o.cliMsgId=t.uint64();break}case 5:{o.msgType=t.int32();break}case 6:{o.content=t.string();break}case 7:{o.msgSeqno=t.uint64();break}case 8:{o.timestamp=t.uint64();break}case 9:{if(o.atUids&&o.atUids.length||(o.atUids=[]),(a&7)===2){let y=t.uint32()+t.pos;for(;t.pos>>0,t.senderUid.high>>>0).toNumber(!0))),t.receiverType!=null&&(i.receiverType=t.receiverType|0),t.receiverId!=null&&(r.Long?(i.receiverId=r.Long.fromValue(t.receiverId)).unsigned=!0:typeof t.receiverId=="string"?i.receiverId=parseInt(t.receiverId,10):typeof t.receiverId=="number"?i.receiverId=t.receiverId:typeof t.receiverId=="object"&&(i.receiverId=new r.LongBits(t.receiverId.low>>>0,t.receiverId.high>>>0).toNumber(!0))),t.cliMsgId!=null&&(r.Long?(i.cliMsgId=r.Long.fromValue(t.cliMsgId)).unsigned=!0:typeof t.cliMsgId=="string"?i.cliMsgId=parseInt(t.cliMsgId,10):typeof t.cliMsgId=="number"?i.cliMsgId=t.cliMsgId:typeof t.cliMsgId=="object"&&(i.cliMsgId=new r.LongBits(t.cliMsgId.low>>>0,t.cliMsgId.high>>>0).toNumber(!0))),t.msgType!=null&&(i.msgType=t.msgType|0),t.content!=null&&(i.content=String(t.content)),t.msgSeqno!=null&&(r.Long?(i.msgSeqno=r.Long.fromValue(t.msgSeqno)).unsigned=!0:typeof t.msgSeqno=="string"?i.msgSeqno=parseInt(t.msgSeqno,10):typeof t.msgSeqno=="number"?i.msgSeqno=t.msgSeqno:typeof t.msgSeqno=="object"&&(i.msgSeqno=new r.LongBits(t.msgSeqno.low>>>0,t.msgSeqno.high>>>0).toNumber(!0))),t.timestamp!=null&&(r.Long?(i.timestamp=r.Long.fromValue(t.timestamp)).unsigned=!0:typeof t.timestamp=="string"?i.timestamp=parseInt(t.timestamp,10):typeof t.timestamp=="number"?i.timestamp=t.timestamp:typeof t.timestamp=="object"&&(i.timestamp=new r.LongBits(t.timestamp.low>>>0,t.timestamp.high>>>0).toNumber(!0))),t.atUids){if(!Array.isArray(t.atUids))throw TypeError(".bilibili.broadcast.message.im.Msg.atUids: array expected");i.atUids=[];for(let n=0;n>>0,t.atUids[n].high>>>0).toNumber(!0))}if(t.recverIds){if(!Array.isArray(t.recverIds))throw TypeError(".bilibili.broadcast.message.im.Msg.recverIds: array expected");i.recverIds=[];for(let n=0;n>>0,t.recverIds[n].high>>>0).toNumber(!0))}return t.msgKey!=null&&(r.Long?(i.msgKey=r.Long.fromValue(t.msgKey)).unsigned=!0:typeof t.msgKey=="string"?i.msgKey=parseInt(t.msgKey,10):typeof t.msgKey=="number"?i.msgKey=t.msgKey:typeof t.msgKey=="object"&&(i.msgKey=new r.LongBits(t.msgKey.low>>>0,t.msgKey.high>>>0).toNumber(!0))),t.msgStatus!=null&&(i.msgStatus=t.msgStatus>>>0),t.sysCancel!=null&&(i.sysCancel=!!t.sysCancel),t.isMultiChat!=null&&(i.isMultiChat=t.isMultiChat>>>0),t.withdrawSeqno!=null&&(r.Long?(i.withdrawSeqno=r.Long.fromValue(t.withdrawSeqno)).unsigned=!0:typeof t.withdrawSeqno=="string"?i.withdrawSeqno=parseInt(t.withdrawSeqno,10):typeof t.withdrawSeqno=="number"?i.withdrawSeqno=t.withdrawSeqno:typeof t.withdrawSeqno=="object"&&(i.withdrawSeqno=new r.LongBits(t.withdrawSeqno.low>>>0,t.withdrawSeqno.high>>>0).toNumber(!0))),t.notifyCode!=null&&(i.notifyCode=String(t.notifyCode)),t.msgSource!=null&&(i.msgSource=t.msgSource>>>0),i},e.toObject=function(t,i){i||(i={});let n={};if((i.arrays||i.defaults)&&(n.atUids=[],n.recverIds=[]),i.defaults){if(r.Long){let o=new r.Long(0,0,!0);n.senderUid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.senderUid=i.longs===String?"0":0;if(n.receiverType=0,r.Long){let o=new r.Long(0,0,!0);n.receiverId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.receiverId=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!0);n.cliMsgId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.cliMsgId=i.longs===String?"0":0;if(n.msgType=0,n.content="",r.Long){let o=new r.Long(0,0,!0);n.msgSeqno=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.msgSeqno=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!0);n.timestamp=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.timestamp=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!0);n.msgKey=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.msgKey=i.longs===String?"0":0;if(n.msgStatus=0,n.sysCancel=!1,n.isMultiChat=0,r.Long){let o=new r.Long(0,0,!0);n.withdrawSeqno=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.withdrawSeqno=i.longs===String?"0":0;n.notifyCode="",n.msgSource=0}if(t.senderUid!=null&&t.hasOwnProperty("senderUid")&&(typeof t.senderUid=="number"?n.senderUid=i.longs===String?String(t.senderUid):t.senderUid:n.senderUid=i.longs===String?r.Long.prototype.toString.call(t.senderUid):i.longs===Number?new r.LongBits(t.senderUid.low>>>0,t.senderUid.high>>>0).toNumber(!0):t.senderUid),t.receiverType!=null&&t.hasOwnProperty("receiverType")&&(n.receiverType=t.receiverType),t.receiverId!=null&&t.hasOwnProperty("receiverId")&&(typeof t.receiverId=="number"?n.receiverId=i.longs===String?String(t.receiverId):t.receiverId:n.receiverId=i.longs===String?r.Long.prototype.toString.call(t.receiverId):i.longs===Number?new r.LongBits(t.receiverId.low>>>0,t.receiverId.high>>>0).toNumber(!0):t.receiverId),t.cliMsgId!=null&&t.hasOwnProperty("cliMsgId")&&(typeof t.cliMsgId=="number"?n.cliMsgId=i.longs===String?String(t.cliMsgId):t.cliMsgId:n.cliMsgId=i.longs===String?r.Long.prototype.toString.call(t.cliMsgId):i.longs===Number?new r.LongBits(t.cliMsgId.low>>>0,t.cliMsgId.high>>>0).toNumber(!0):t.cliMsgId),t.msgType!=null&&t.hasOwnProperty("msgType")&&(n.msgType=t.msgType),t.content!=null&&t.hasOwnProperty("content")&&(n.content=t.content),t.msgSeqno!=null&&t.hasOwnProperty("msgSeqno")&&(typeof t.msgSeqno=="number"?n.msgSeqno=i.longs===String?String(t.msgSeqno):t.msgSeqno:n.msgSeqno=i.longs===String?r.Long.prototype.toString.call(t.msgSeqno):i.longs===Number?new r.LongBits(t.msgSeqno.low>>>0,t.msgSeqno.high>>>0).toNumber(!0):t.msgSeqno),t.timestamp!=null&&t.hasOwnProperty("timestamp")&&(typeof t.timestamp=="number"?n.timestamp=i.longs===String?String(t.timestamp):t.timestamp:n.timestamp=i.longs===String?r.Long.prototype.toString.call(t.timestamp):i.longs===Number?new r.LongBits(t.timestamp.low>>>0,t.timestamp.high>>>0).toNumber(!0):t.timestamp),t.atUids&&t.atUids.length){n.atUids=[];for(let o=0;o>>0,t.atUids[o].high>>>0).toNumber(!0):t.atUids[o]}if(t.recverIds&&t.recverIds.length){n.recverIds=[];for(let o=0;o>>0,t.recverIds[o].high>>>0).toNumber(!0):t.recverIds[o]}return t.msgKey!=null&&t.hasOwnProperty("msgKey")&&(typeof t.msgKey=="number"?n.msgKey=i.longs===String?String(t.msgKey):t.msgKey:n.msgKey=i.longs===String?r.Long.prototype.toString.call(t.msgKey):i.longs===Number?new r.LongBits(t.msgKey.low>>>0,t.msgKey.high>>>0).toNumber(!0):t.msgKey),t.msgStatus!=null&&t.hasOwnProperty("msgStatus")&&(n.msgStatus=t.msgStatus),t.sysCancel!=null&&t.hasOwnProperty("sysCancel")&&(n.sysCancel=t.sysCancel),t.isMultiChat!=null&&t.hasOwnProperty("isMultiChat")&&(n.isMultiChat=t.isMultiChat),t.withdrawSeqno!=null&&t.hasOwnProperty("withdrawSeqno")&&(typeof t.withdrawSeqno=="number"?n.withdrawSeqno=i.longs===String?String(t.withdrawSeqno):t.withdrawSeqno:n.withdrawSeqno=i.longs===String?r.Long.prototype.toString.call(t.withdrawSeqno):i.longs===Number?new r.LongBits(t.withdrawSeqno.low>>>0,t.withdrawSeqno.high>>>0).toNumber(!0):t.withdrawSeqno),t.notifyCode!=null&&t.hasOwnProperty("notifyCode")&&(n.notifyCode=t.notifyCode),t.msgSource!=null&&t.hasOwnProperty("msgSource")&&(n.msgSource=t.msgSource),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.message.im.Msg"},e}(),c.NotifyInfo=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.msgType=t.uint32();break}case 2:{o.talkerId=t.uint64();break}case 3:{o.sessionType=t.uint32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.im.NotifyInfo)return t;let i=new u.bilibili.broadcast.message.im.NotifyInfo;return t.msgType!=null&&(i.msgType=t.msgType>>>0),t.talkerId!=null&&(r.Long?(i.talkerId=r.Long.fromValue(t.talkerId)).unsigned=!0:typeof t.talkerId=="string"?i.talkerId=parseInt(t.talkerId,10):typeof t.talkerId=="number"?i.talkerId=t.talkerId:typeof t.talkerId=="object"&&(i.talkerId=new r.LongBits(t.talkerId.low>>>0,t.talkerId.high>>>0).toNumber(!0))),t.sessionType!=null&&(i.sessionType=t.sessionType>>>0),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.msgType=0,r.Long){let o=new r.Long(0,0,!0);n.talkerId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.talkerId=i.longs===String?"0":0;n.sessionType=0}return t.msgType!=null&&t.hasOwnProperty("msgType")&&(n.msgType=t.msgType),t.talkerId!=null&&t.hasOwnProperty("talkerId")&&(typeof t.talkerId=="number"?n.talkerId=i.longs===String?String(t.talkerId):t.talkerId:n.talkerId=i.longs===String?r.Long.prototype.toString.call(t.talkerId):i.longs===Number?new r.LongBits(t.talkerId.low>>>0,t.talkerId.high>>>0).toNumber(!0):t.talkerId),t.sessionType!=null&&t.hasOwnProperty("sessionType")&&(n.sessionType=t.sessionType),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.message.im.NotifyInfo"},e}(),c.ReqServerNotify=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.lastestSeqno=t.uint64();break}case 2:{o.instantMsg=u.bilibili.broadcast.message.im.Msg.decode(t,t.uint32());break}case 3:{o.notifyInfo=u.bilibili.broadcast.message.im.NotifyInfo.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.im.ReqServerNotify)return t;let i=new u.bilibili.broadcast.message.im.ReqServerNotify;if(t.lastestSeqno!=null&&(r.Long?(i.lastestSeqno=r.Long.fromValue(t.lastestSeqno)).unsigned=!0:typeof t.lastestSeqno=="string"?i.lastestSeqno=parseInt(t.lastestSeqno,10):typeof t.lastestSeqno=="number"?i.lastestSeqno=t.lastestSeqno:typeof t.lastestSeqno=="object"&&(i.lastestSeqno=new r.LongBits(t.lastestSeqno.low>>>0,t.lastestSeqno.high>>>0).toNumber(!0))),t.instantMsg!=null){if(typeof t.instantMsg!="object")throw TypeError(".bilibili.broadcast.message.im.ReqServerNotify.instantMsg: object expected");i.instantMsg=u.bilibili.broadcast.message.im.Msg.fromObject(t.instantMsg)}if(t.notifyInfo!=null){if(typeof t.notifyInfo!="object")throw TypeError(".bilibili.broadcast.message.im.ReqServerNotify.notifyInfo: object expected");i.notifyInfo=u.bilibili.broadcast.message.im.NotifyInfo.fromObject(t.notifyInfo)}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!0);n.lastestSeqno=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.lastestSeqno=i.longs===String?"0":0;n.instantMsg=null,n.notifyInfo=null}return t.lastestSeqno!=null&&t.hasOwnProperty("lastestSeqno")&&(typeof t.lastestSeqno=="number"?n.lastestSeqno=i.longs===String?String(t.lastestSeqno):t.lastestSeqno:n.lastestSeqno=i.longs===String?r.Long.prototype.toString.call(t.lastestSeqno):i.longs===Number?new r.LongBits(t.lastestSeqno.low>>>0,t.lastestSeqno.high>>>0).toNumber(!0):t.lastestSeqno),t.instantMsg!=null&&t.hasOwnProperty("instantMsg")&&(n.instantMsg=u.bilibili.broadcast.message.im.Msg.toObject(t.instantMsg,i)),t.notifyInfo!=null&&t.hasOwnProperty("notifyInfo")&&(n.notifyInfo=u.bilibili.broadcast.message.im.NotifyInfo.toObject(t.notifyInfo,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.message.im.ReqServerNotify"},e}(),c.Notify=function(){function e(l,t,i){b.rpc.Service.call(this,l,t,i)}return(e.prototype=Object.create(b.rpc.Service.prototype)).constructor=e,e.create=function(t,i,n){return new this(t,i,n)},Object.defineProperty(e.prototype.watchNotify=function l(t,i){return this.rpcCall(l,u.google.protobuf.Empty,u.bilibili.broadcast.message.im.NotifyRsp,t,i)},"name",{value:"WatchNotify"}),e}(),c}(),p.intl=function(){let c={};return c.App=function(){function e(l,t,i){b.rpc.Service.call(this,l,t,i)}return(e.prototype=Object.create(b.rpc.Service.prototype)).constructor=e,e.create=function(t,i,n){return new this(t,i,n)},Object.defineProperty(e.prototype.appNotify=function l(t,i){return this.rpcCall(l,u.google.protobuf.Empty,u.bilibili.broadcast.message.intl.Notify,t,i)},"name",{value:"AppNotify"}),e}(),c.Notify=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.notifyId=t.int64();break}case 2:{o.cardType=t.int64();break}case 3:{o.content=u.bilibili.broadcast.message.intl.NotifyContent.decode(t,t.uint32());break}case 4:{o.rule=u.bilibili.broadcast.message.intl.NotifyRule.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.intl.Notify)return t;let i=new u.bilibili.broadcast.message.intl.Notify;if(t.notifyId!=null&&(r.Long?(i.notifyId=r.Long.fromValue(t.notifyId)).unsigned=!1:typeof t.notifyId=="string"?i.notifyId=parseInt(t.notifyId,10):typeof t.notifyId=="number"?i.notifyId=t.notifyId:typeof t.notifyId=="object"&&(i.notifyId=new r.LongBits(t.notifyId.low>>>0,t.notifyId.high>>>0).toNumber())),t.cardType!=null&&(r.Long?(i.cardType=r.Long.fromValue(t.cardType)).unsigned=!1:typeof t.cardType=="string"?i.cardType=parseInt(t.cardType,10):typeof t.cardType=="number"?i.cardType=t.cardType:typeof t.cardType=="object"&&(i.cardType=new r.LongBits(t.cardType.low>>>0,t.cardType.high>>>0).toNumber())),t.content!=null){if(typeof t.content!="object")throw TypeError(".bilibili.broadcast.message.intl.Notify.content: object expected");i.content=u.bilibili.broadcast.message.intl.NotifyContent.fromObject(t.content)}if(t.rule!=null){if(typeof t.rule!="object")throw TypeError(".bilibili.broadcast.message.intl.Notify.rule: object expected");i.rule=u.bilibili.broadcast.message.intl.NotifyRule.fromObject(t.rule)}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.notifyId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.notifyId=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.cardType=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.cardType=i.longs===String?"0":0;n.content=null,n.rule=null}return t.notifyId!=null&&t.hasOwnProperty("notifyId")&&(typeof t.notifyId=="number"?n.notifyId=i.longs===String?String(t.notifyId):t.notifyId:n.notifyId=i.longs===String?r.Long.prototype.toString.call(t.notifyId):i.longs===Number?new r.LongBits(t.notifyId.low>>>0,t.notifyId.high>>>0).toNumber():t.notifyId),t.cardType!=null&&t.hasOwnProperty("cardType")&&(typeof t.cardType=="number"?n.cardType=i.longs===String?String(t.cardType):t.cardType:n.cardType=i.longs===String?r.Long.prototype.toString.call(t.cardType):i.longs===Number?new r.LongBits(t.cardType.low>>>0,t.cardType.high>>>0).toNumber():t.cardType),t.content!=null&&t.hasOwnProperty("content")&&(n.content=u.bilibili.broadcast.message.intl.NotifyContent.toObject(t.content,i)),t.rule!=null&&t.hasOwnProperty("rule")&&(n.rule=u.bilibili.broadcast.message.intl.NotifyRule.toObject(t.rule,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.message.intl.Notify"},e}(),c.NotifyContent=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.id=t.int64();break}case 2:{o.title=t.string();break}case 3:{o.subTitle=t.string();break}case 4:{o.iconTitle=t.string();break}case 5:{o.iconSubTitle=t.string();break}case 6:{o.icon=t.string();break}case 7:{o.url=t.string();break}case 8:{o.button=u.bilibili.broadcast.message.intl.NotifyButton.decode(t,t.uint32());break}case 9:{o.unionId=t.string();break}case 10:{o.extra=u.bilibili.broadcast.message.intl.NotifyContentExtra.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.intl.NotifyContent)return t;let i=new u.bilibili.broadcast.message.intl.NotifyContent;if(t.id!=null&&(r.Long?(i.id=r.Long.fromValue(t.id)).unsigned=!1:typeof t.id=="string"?i.id=parseInt(t.id,10):typeof t.id=="number"?i.id=t.id:typeof t.id=="object"&&(i.id=new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber())),t.title!=null&&(i.title=String(t.title)),t.subTitle!=null&&(i.subTitle=String(t.subTitle)),t.iconTitle!=null&&(i.iconTitle=String(t.iconTitle)),t.iconSubTitle!=null&&(i.iconSubTitle=String(t.iconSubTitle)),t.icon!=null&&(i.icon=String(t.icon)),t.url!=null&&(i.url=String(t.url)),t.button!=null){if(typeof t.button!="object")throw TypeError(".bilibili.broadcast.message.intl.NotifyContent.button: object expected");i.button=u.bilibili.broadcast.message.intl.NotifyButton.fromObject(t.button)}if(t.unionId!=null&&(i.unionId=String(t.unionId)),t.extra!=null){if(typeof t.extra!="object")throw TypeError(".bilibili.broadcast.message.intl.NotifyContent.extra: object expected");i.extra=u.bilibili.broadcast.message.intl.NotifyContentExtra.fromObject(t.extra)}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.id=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.id=i.longs===String?"0":0;n.title="",n.subTitle="",n.iconTitle="",n.iconSubTitle="",n.icon="",n.url="",n.button=null,n.unionId="",n.extra=null}return t.id!=null&&t.hasOwnProperty("id")&&(typeof t.id=="number"?n.id=i.longs===String?String(t.id):t.id:n.id=i.longs===String?r.Long.prototype.toString.call(t.id):i.longs===Number?new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber():t.id),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.subTitle!=null&&t.hasOwnProperty("subTitle")&&(n.subTitle=t.subTitle),t.iconTitle!=null&&t.hasOwnProperty("iconTitle")&&(n.iconTitle=t.iconTitle),t.iconSubTitle!=null&&t.hasOwnProperty("iconSubTitle")&&(n.iconSubTitle=t.iconSubTitle),t.icon!=null&&t.hasOwnProperty("icon")&&(n.icon=t.icon),t.url!=null&&t.hasOwnProperty("url")&&(n.url=t.url),t.button!=null&&t.hasOwnProperty("button")&&(n.button=u.bilibili.broadcast.message.intl.NotifyButton.toObject(t.button,i)),t.unionId!=null&&t.hasOwnProperty("unionId")&&(n.unionId=t.unionId),t.extra!=null&&t.hasOwnProperty("extra")&&(n.extra=u.bilibili.broadcast.message.intl.NotifyContentExtra.toObject(t.extra,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.message.intl.NotifyContent"},e}(),c.NotifyActionType=function(){let e={},l=Object.create(e);return l[e[0]="DefaultActionType"]=0,l[e[1]="JumpActionType"]=1,l[e[2]="FavActionType"]=2,l}(),c.NotifyButton=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.name=t.string();break}case 2:{o.action=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.intl.NotifyButton)return t;let i=new u.bilibili.broadcast.message.intl.NotifyButton;switch(t.name!=null&&(i.name=String(t.name)),t.action){default:if(typeof t.action=="number"){i.action=t.action;break}break;case"DefaultActionType":case 0:i.action=0;break;case"JumpActionType":case 1:i.action=1;break;case"FavActionType":case 2:i.action=2;break}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.name="",n.action=i.enums===String?"DefaultActionType":0),t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),t.action!=null&&t.hasOwnProperty("action")&&(n.action=i.enums===String?u.bilibili.broadcast.message.intl.NotifyActionType[t.action]===void 0?t.action:u.bilibili.broadcast.message.intl.NotifyActionType[t.action]:t.action),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.message.intl.NotifyButton"},e}(),c.NotifyContentExtra=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.multiSeasons=t.bool();break}case 2:{o.favSeasonId=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.intl.NotifyContentExtra)return t;let i=new u.bilibili.broadcast.message.intl.NotifyContentExtra;return t.multiSeasons!=null&&(i.multiSeasons=!!t.multiSeasons),t.favSeasonId!=null&&(r.Long?(i.favSeasonId=r.Long.fromValue(t.favSeasonId)).unsigned=!1:typeof t.favSeasonId=="string"?i.favSeasonId=parseInt(t.favSeasonId,10):typeof t.favSeasonId=="number"?i.favSeasonId=t.favSeasonId:typeof t.favSeasonId=="object"&&(i.favSeasonId=new r.LongBits(t.favSeasonId.low>>>0,t.favSeasonId.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(n.multiSeasons=!1,r.Long){let o=new r.Long(0,0,!1);n.favSeasonId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.favSeasonId=i.longs===String?"0":0;return t.multiSeasons!=null&&t.hasOwnProperty("multiSeasons")&&(n.multiSeasons=t.multiSeasons),t.favSeasonId!=null&&t.hasOwnProperty("favSeasonId")&&(typeof t.favSeasonId=="number"?n.favSeasonId=i.longs===String?String(t.favSeasonId):t.favSeasonId:n.favSeasonId=i.longs===String?r.Long.prototype.toString.call(t.favSeasonId):i.longs===Number?new r.LongBits(t.favSeasonId.low>>>0,t.favSeasonId.high>>>0).toNumber():t.favSeasonId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.message.intl.NotifyContentExtra"},e}(),c.NotifyRule=function(){function e(l){if(this.exemptPages=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.showTime=t.int64();break}case 2:{o.showType=t.int64();break}case 3:{o.showTimes=t.int64();break}case 4:{o.exemptPages&&o.exemptPages.length||(o.exemptPages=[]),o.exemptPages.push(t.string());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.intl.NotifyRule)return t;let i=new u.bilibili.broadcast.message.intl.NotifyRule;if(t.showTime!=null&&(r.Long?(i.showTime=r.Long.fromValue(t.showTime)).unsigned=!1:typeof t.showTime=="string"?i.showTime=parseInt(t.showTime,10):typeof t.showTime=="number"?i.showTime=t.showTime:typeof t.showTime=="object"&&(i.showTime=new r.LongBits(t.showTime.low>>>0,t.showTime.high>>>0).toNumber())),t.showType!=null&&(r.Long?(i.showType=r.Long.fromValue(t.showType)).unsigned=!1:typeof t.showType=="string"?i.showType=parseInt(t.showType,10):typeof t.showType=="number"?i.showType=t.showType:typeof t.showType=="object"&&(i.showType=new r.LongBits(t.showType.low>>>0,t.showType.high>>>0).toNumber())),t.showTimes!=null&&(r.Long?(i.showTimes=r.Long.fromValue(t.showTimes)).unsigned=!1:typeof t.showTimes=="string"?i.showTimes=parseInt(t.showTimes,10):typeof t.showTimes=="number"?i.showTimes=t.showTimes:typeof t.showTimes=="object"&&(i.showTimes=new r.LongBits(t.showTimes.low>>>0,t.showTimes.high>>>0).toNumber())),t.exemptPages){if(!Array.isArray(t.exemptPages))throw TypeError(".bilibili.broadcast.message.intl.NotifyRule.exemptPages: array expected");i.exemptPages=[];for(let n=0;n>>0,t.showTime.high>>>0).toNumber():t.showTime),t.showType!=null&&t.hasOwnProperty("showType")&&(typeof t.showType=="number"?n.showType=i.longs===String?String(t.showType):t.showType:n.showType=i.longs===String?r.Long.prototype.toString.call(t.showType):i.longs===Number?new r.LongBits(t.showType.low>>>0,t.showType.high>>>0).toNumber():t.showType),t.showTimes!=null&&t.hasOwnProperty("showTimes")&&(typeof t.showTimes=="number"?n.showTimes=i.longs===String?String(t.showTimes):t.showTimes:n.showTimes=i.longs===String?r.Long.prototype.toString.call(t.showTimes):i.longs===Number?new r.LongBits(t.showTimes.low>>>0,t.showTimes.high>>>0).toNumber():t.showTimes),t.exemptPages&&t.exemptPages.length){n.exemptPages=[];for(let o=0;o>>3){case 1:{o.Cmd=t.int32();break}case 2:{o.Message=t.string();break}case 3:{o.Author=u.bilibili.broadcast.message.intl.Author.decode(t,t.uint32());break}case 4:{o.RoomID=t.int64();break}case 5:{o.Delay=t.int64();break}case 6:{o.CTime=t.int64();break}case 7:{o.ReplyTo=u.bilibili.broadcast.message.intl.Author.decode(t,t.uint32());break}case 8:{o.Style=u.bilibili.broadcast.message.intl.Style.decode(t,t.uint32());break}case 9:{o.Sticker=u.bilibili.broadcast.message.intl.Sticker.decode(t,t.uint32());break}case 10:{o.TopUser=u.bilibili.broadcast.message.intl.TopUser.decode(t,t.uint32());break}case 11:{o.MessageList&&o.MessageList.length||(o.MessageList=[]),o.MessageList.push(u.bilibili.broadcast.message.intl.MessageItem.decode(t,t.uint32()));break}case 12:{o.Combos&&o.Combos.length||(o.Combos=[]),o.Combos.push(u.bilibili.broadcast.message.intl.Combo.decode(t,t.uint32()));break}case 13:{o.msgId=t.string();break}case 14:{o.liveKey=t.string();break}case 15:{o.popupInfo=u.bilibili.broadcast.message.intl.PopupInfo.decode(t,t.uint32());break}case 16:{o.blockInfo=u.bilibili.broadcast.message.intl.BlockInfo.decode(t,t.uint32());break}case 17:{o.likes=u.bilibili.broadcast.message.intl.Likes.decode(t,t.uint32());break}case 18:{o.rechargeBarInfo=u.bilibili.broadcast.message.intl.RechargeBarInfo.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.intl.DmItem)return t;let i=new u.bilibili.broadcast.message.intl.DmItem;switch(t.Cmd){default:if(typeof t.Cmd=="number"){i.Cmd=t.Cmd;break}break;case"DefaultType":case 0:i.Cmd=0;break;case"EnterRoom":case 1:i.Cmd=1;break;case"LiveOpen":case 2:i.Cmd=2;break;case"LiveClose":case 3:i.Cmd=3;break;case"Reply":case 4:i.Cmd=4;break;case"TreasureSticker":case 5:i.Cmd=5;break;case"RoomTopUser":case 6:i.Cmd=6;break;case"ActionMsg":case 7:i.Cmd=7;break;case"ComboMsg":case 8:i.Cmd=8;break;case"LiveKeyChange":case 9:i.Cmd=9;break;case"MuteMsg":case 10:i.Cmd=10;break;case"WarnMsg":case 11:i.Cmd=11;break;case"PopupMsg":case 12:i.Cmd=12;break;case"BlockMsg":case 13:i.Cmd=13;break;case"LikesMsg":case 14:i.Cmd=14;break;case"UltimatePrizeMsg":case 15:i.Cmd=15;break;case"RechargeBarMsg":case 16:i.Cmd=16;break}if(t.Message!=null&&(i.Message=String(t.Message)),t.Author!=null){if(typeof t.Author!="object")throw TypeError(".bilibili.broadcast.message.intl.DmItem.Author: object expected");i.Author=u.bilibili.broadcast.message.intl.Author.fromObject(t.Author)}if(t.RoomID!=null&&(r.Long?(i.RoomID=r.Long.fromValue(t.RoomID)).unsigned=!1:typeof t.RoomID=="string"?i.RoomID=parseInt(t.RoomID,10):typeof t.RoomID=="number"?i.RoomID=t.RoomID:typeof t.RoomID=="object"&&(i.RoomID=new r.LongBits(t.RoomID.low>>>0,t.RoomID.high>>>0).toNumber())),t.Delay!=null&&(r.Long?(i.Delay=r.Long.fromValue(t.Delay)).unsigned=!1:typeof t.Delay=="string"?i.Delay=parseInt(t.Delay,10):typeof t.Delay=="number"?i.Delay=t.Delay:typeof t.Delay=="object"&&(i.Delay=new r.LongBits(t.Delay.low>>>0,t.Delay.high>>>0).toNumber())),t.CTime!=null&&(r.Long?(i.CTime=r.Long.fromValue(t.CTime)).unsigned=!1:typeof t.CTime=="string"?i.CTime=parseInt(t.CTime,10):typeof t.CTime=="number"?i.CTime=t.CTime:typeof t.CTime=="object"&&(i.CTime=new r.LongBits(t.CTime.low>>>0,t.CTime.high>>>0).toNumber())),t.ReplyTo!=null){if(typeof t.ReplyTo!="object")throw TypeError(".bilibili.broadcast.message.intl.DmItem.ReplyTo: object expected");i.ReplyTo=u.bilibili.broadcast.message.intl.Author.fromObject(t.ReplyTo)}if(t.Style!=null){if(typeof t.Style!="object")throw TypeError(".bilibili.broadcast.message.intl.DmItem.Style: object expected");i.Style=u.bilibili.broadcast.message.intl.Style.fromObject(t.Style)}if(t.Sticker!=null){if(typeof t.Sticker!="object")throw TypeError(".bilibili.broadcast.message.intl.DmItem.Sticker: object expected");i.Sticker=u.bilibili.broadcast.message.intl.Sticker.fromObject(t.Sticker)}if(t.TopUser!=null){if(typeof t.TopUser!="object")throw TypeError(".bilibili.broadcast.message.intl.DmItem.TopUser: object expected");i.TopUser=u.bilibili.broadcast.message.intl.TopUser.fromObject(t.TopUser)}if(t.MessageList){if(!Array.isArray(t.MessageList))throw TypeError(".bilibili.broadcast.message.intl.DmItem.MessageList: array expected");i.MessageList=[];for(let n=0;n>>0,t.RoomID.high>>>0).toNumber():t.RoomID),t.Delay!=null&&t.hasOwnProperty("Delay")&&(typeof t.Delay=="number"?n.Delay=i.longs===String?String(t.Delay):t.Delay:n.Delay=i.longs===String?r.Long.prototype.toString.call(t.Delay):i.longs===Number?new r.LongBits(t.Delay.low>>>0,t.Delay.high>>>0).toNumber():t.Delay),t.CTime!=null&&t.hasOwnProperty("CTime")&&(typeof t.CTime=="number"?n.CTime=i.longs===String?String(t.CTime):t.CTime:n.CTime=i.longs===String?r.Long.prototype.toString.call(t.CTime):i.longs===Number?new r.LongBits(t.CTime.low>>>0,t.CTime.high>>>0).toNumber():t.CTime),t.ReplyTo!=null&&t.hasOwnProperty("ReplyTo")&&(n.ReplyTo=u.bilibili.broadcast.message.intl.Author.toObject(t.ReplyTo,i)),t.Style!=null&&t.hasOwnProperty("Style")&&(n.Style=u.bilibili.broadcast.message.intl.Style.toObject(t.Style,i)),t.Sticker!=null&&t.hasOwnProperty("Sticker")&&(n.Sticker=u.bilibili.broadcast.message.intl.Sticker.toObject(t.Sticker,i)),t.TopUser!=null&&t.hasOwnProperty("TopUser")&&(n.TopUser=u.bilibili.broadcast.message.intl.TopUser.toObject(t.TopUser,i)),t.MessageList&&t.MessageList.length){n.MessageList=[];for(let o=0;o>>3){case 1:{o.Type=t.int32();break}case 2:{o.Content=t.string();break}case 3:{o.Color=t.string();break}case 4:{o.Bold=t.bool();break}case 5:{o.IconName=t.string();break}case 6:{o.IconUrl=t.string();break}case 7:{o.Width=t.int32();break}case 8:{o.Height=t.int32();break}case 9:{o.BgColor=t.string();break}case 10:{o.SubType=t.int32();break}case 11:{o.treasureId=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.intl.MessageItem)return t;let i=new u.bilibili.broadcast.message.intl.MessageItem;switch(t.Type){default:if(typeof t.Type=="number"){i.Type=t.Type;break}break;case"Default":case 0:i.Type=0;break;case"Text":case 1:i.Type=1;break;case"Icon":case 2:i.Type=2;break}switch(t.Content!=null&&(i.Content=String(t.Content)),t.Color!=null&&(i.Color=String(t.Color)),t.Bold!=null&&(i.Bold=!!t.Bold),t.IconName!=null&&(i.IconName=String(t.IconName)),t.IconUrl!=null&&(i.IconUrl=String(t.IconUrl)),t.Width!=null&&(i.Width=t.Width|0),t.Height!=null&&(i.Height=t.Height|0),t.BgColor!=null&&(i.BgColor=String(t.BgColor)),t.SubType){default:if(typeof t.SubType=="number"){i.SubType=t.SubType;break}break;case"DefaultSubType":case 0:i.SubType=0;break;case"Name":case 1:i.SubType=1;break;case"Gift":case 2:i.SubType=2;break;case"GiftNum":case 3:i.SubType=3;break;case"GiftIcon":case 4:i.SubType=4;break;case"NewLine":case 5:i.SubType=5;break}return t.treasureId!=null&&(r.Long?(i.treasureId=r.Long.fromValue(t.treasureId)).unsigned=!1:typeof t.treasureId=="string"?i.treasureId=parseInt(t.treasureId,10):typeof t.treasureId=="number"?i.treasureId=t.treasureId:typeof t.treasureId=="object"&&(i.treasureId=new r.LongBits(t.treasureId.low>>>0,t.treasureId.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(n.Type=i.enums===String?"Default":0,n.Content="",n.Color="",n.Bold=!1,n.IconName="",n.IconUrl="",n.Width=0,n.Height=0,n.BgColor="",n.SubType=i.enums===String?"DefaultSubType":0,r.Long){let o=new r.Long(0,0,!1);n.treasureId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.treasureId=i.longs===String?"0":0;return t.Type!=null&&t.hasOwnProperty("Type")&&(n.Type=i.enums===String?u.bilibili.broadcast.message.intl.MessageItemType[t.Type]===void 0?t.Type:u.bilibili.broadcast.message.intl.MessageItemType[t.Type]:t.Type),t.Content!=null&&t.hasOwnProperty("Content")&&(n.Content=t.Content),t.Color!=null&&t.hasOwnProperty("Color")&&(n.Color=t.Color),t.Bold!=null&&t.hasOwnProperty("Bold")&&(n.Bold=t.Bold),t.IconName!=null&&t.hasOwnProperty("IconName")&&(n.IconName=t.IconName),t.IconUrl!=null&&t.hasOwnProperty("IconUrl")&&(n.IconUrl=t.IconUrl),t.Width!=null&&t.hasOwnProperty("Width")&&(n.Width=t.Width),t.Height!=null&&t.hasOwnProperty("Height")&&(n.Height=t.Height),t.BgColor!=null&&t.hasOwnProperty("BgColor")&&(n.BgColor=t.BgColor),t.SubType!=null&&t.hasOwnProperty("SubType")&&(n.SubType=i.enums===String?u.bilibili.broadcast.message.intl.MessageItemSubType[t.SubType]===void 0?t.SubType:u.bilibili.broadcast.message.intl.MessageItemSubType[t.SubType]:t.SubType),t.treasureId!=null&&t.hasOwnProperty("treasureId")&&(typeof t.treasureId=="number"?n.treasureId=i.longs===String?String(t.treasureId):t.treasureId:n.treasureId=i.longs===String?r.Long.prototype.toString.call(t.treasureId):i.longs===Number?new r.LongBits(t.treasureId.low>>>0,t.treasureId.high>>>0).toNumber():t.treasureId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.message.intl.MessageItem"},e}(),c.Combo=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.author=u.bilibili.broadcast.message.intl.Author.decode(t,t.uint32());break}case 2:{o.action=t.string();break}case 3:{o.treasure=u.bilibili.broadcast.message.intl.Treasure.decode(t,t.uint32());break}case 4:{o.style=u.bilibili.broadcast.message.intl.ComboStyle.decode(t,t.uint32());break}case 5:{o.comboId=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.intl.Combo)return t;let i=new u.bilibili.broadcast.message.intl.Combo;if(t.author!=null){if(typeof t.author!="object")throw TypeError(".bilibili.broadcast.message.intl.Combo.author: object expected");i.author=u.bilibili.broadcast.message.intl.Author.fromObject(t.author)}if(t.action!=null&&(i.action=String(t.action)),t.treasure!=null){if(typeof t.treasure!="object")throw TypeError(".bilibili.broadcast.message.intl.Combo.treasure: object expected");i.treasure=u.bilibili.broadcast.message.intl.Treasure.fromObject(t.treasure)}if(t.style!=null){if(typeof t.style!="object")throw TypeError(".bilibili.broadcast.message.intl.Combo.style: object expected");i.style=u.bilibili.broadcast.message.intl.ComboStyle.fromObject(t.style)}return t.comboId!=null&&(i.comboId=String(t.comboId)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.author=null,n.action="",n.treasure=null,n.style=null,n.comboId=""),t.author!=null&&t.hasOwnProperty("author")&&(n.author=u.bilibili.broadcast.message.intl.Author.toObject(t.author,i)),t.action!=null&&t.hasOwnProperty("action")&&(n.action=t.action),t.treasure!=null&&t.hasOwnProperty("treasure")&&(n.treasure=u.bilibili.broadcast.message.intl.Treasure.toObject(t.treasure,i)),t.style!=null&&t.hasOwnProperty("style")&&(n.style=u.bilibili.broadcast.message.intl.ComboStyle.toObject(t.style,i)),t.comboId!=null&&t.hasOwnProperty("comboId")&&(n.comboId=t.comboId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.message.intl.Combo"},e}(),c.Treasure=function(){function e(l){if(this.animationList=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.id=t.int64();break}case 2:{o.title=t.string();break}case 3:{o.icon=t.string();break}case 4:{o.number=t.int64();break}case 5:{o.stars=t.int64();break}case 6:{o.animation=u.bilibili.broadcast.message.intl.Animation.decode(t,t.uint32());break}case 7:{o.animationType=t.int64();break}case 8:{o.animationList&&o.animationList.length||(o.animationList=[]),o.animationList.push(u.bilibili.broadcast.message.intl.Animation.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.intl.Treasure)return t;let i=new u.bilibili.broadcast.message.intl.Treasure;if(t.id!=null&&(r.Long?(i.id=r.Long.fromValue(t.id)).unsigned=!1:typeof t.id=="string"?i.id=parseInt(t.id,10):typeof t.id=="number"?i.id=t.id:typeof t.id=="object"&&(i.id=new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber())),t.title!=null&&(i.title=String(t.title)),t.icon!=null&&(i.icon=String(t.icon)),t.number!=null&&(r.Long?(i.number=r.Long.fromValue(t.number)).unsigned=!1:typeof t.number=="string"?i.number=parseInt(t.number,10):typeof t.number=="number"?i.number=t.number:typeof t.number=="object"&&(i.number=new r.LongBits(t.number.low>>>0,t.number.high>>>0).toNumber())),t.stars!=null&&(r.Long?(i.stars=r.Long.fromValue(t.stars)).unsigned=!1:typeof t.stars=="string"?i.stars=parseInt(t.stars,10):typeof t.stars=="number"?i.stars=t.stars:typeof t.stars=="object"&&(i.stars=new r.LongBits(t.stars.low>>>0,t.stars.high>>>0).toNumber())),t.animation!=null){if(typeof t.animation!="object")throw TypeError(".bilibili.broadcast.message.intl.Treasure.animation: object expected");i.animation=u.bilibili.broadcast.message.intl.Animation.fromObject(t.animation)}if(t.animationType!=null&&(r.Long?(i.animationType=r.Long.fromValue(t.animationType)).unsigned=!1:typeof t.animationType=="string"?i.animationType=parseInt(t.animationType,10):typeof t.animationType=="number"?i.animationType=t.animationType:typeof t.animationType=="object"&&(i.animationType=new r.LongBits(t.animationType.low>>>0,t.animationType.high>>>0).toNumber())),t.animationList){if(!Array.isArray(t.animationList))throw TypeError(".bilibili.broadcast.message.intl.Treasure.animationList: array expected");i.animationList=[];for(let n=0;n>>0,t.id.high>>>0).toNumber():t.id),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.icon!=null&&t.hasOwnProperty("icon")&&(n.icon=t.icon),t.number!=null&&t.hasOwnProperty("number")&&(typeof t.number=="number"?n.number=i.longs===String?String(t.number):t.number:n.number=i.longs===String?r.Long.prototype.toString.call(t.number):i.longs===Number?new r.LongBits(t.number.low>>>0,t.number.high>>>0).toNumber():t.number),t.stars!=null&&t.hasOwnProperty("stars")&&(typeof t.stars=="number"?n.stars=i.longs===String?String(t.stars):t.stars:n.stars=i.longs===String?r.Long.prototype.toString.call(t.stars):i.longs===Number?new r.LongBits(t.stars.low>>>0,t.stars.high>>>0).toNumber():t.stars),t.animation!=null&&t.hasOwnProperty("animation")&&(n.animation=u.bilibili.broadcast.message.intl.Animation.toObject(t.animation,i)),t.animationType!=null&&t.hasOwnProperty("animationType")&&(typeof t.animationType=="number"?n.animationType=i.longs===String?String(t.animationType):t.animationType:n.animationType=i.longs===String?r.Long.prototype.toString.call(t.animationType):i.longs===Number?new r.LongBits(t.animationType.low>>>0,t.animationType.high>>>0).toNumber():t.animationType),t.animationList&&t.animationList.length){n.animationList=[];for(let o=0;o>>3){case 1:{o.resourceName=t.string();break}case 2:{o.fileName=t.string();break}case 3:{o.animationUrl=t.string();break}case 4:{o.width=t.int64();break}case 5:{o.height=t.int64();break}case 6:{o.type=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.intl.Animation)return t;let i=new u.bilibili.broadcast.message.intl.Animation;return t.resourceName!=null&&(i.resourceName=String(t.resourceName)),t.fileName!=null&&(i.fileName=String(t.fileName)),t.animationUrl!=null&&(i.animationUrl=String(t.animationUrl)),t.width!=null&&(r.Long?(i.width=r.Long.fromValue(t.width)).unsigned=!1:typeof t.width=="string"?i.width=parseInt(t.width,10):typeof t.width=="number"?i.width=t.width:typeof t.width=="object"&&(i.width=new r.LongBits(t.width.low>>>0,t.width.high>>>0).toNumber())),t.height!=null&&(r.Long?(i.height=r.Long.fromValue(t.height)).unsigned=!1:typeof t.height=="string"?i.height=parseInt(t.height,10):typeof t.height=="number"?i.height=t.height:typeof t.height=="object"&&(i.height=new r.LongBits(t.height.low>>>0,t.height.high>>>0).toNumber())),t.type!=null&&(r.Long?(i.type=r.Long.fromValue(t.type)).unsigned=!1:typeof t.type=="string"?i.type=parseInt(t.type,10):typeof t.type=="number"?i.type=t.type:typeof t.type=="object"&&(i.type=new r.LongBits(t.type.low>>>0,t.type.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.resourceName="",n.fileName="",n.animationUrl="",r.Long){let o=new r.Long(0,0,!1);n.width=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.width=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.height=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.height=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.type=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.type=i.longs===String?"0":0}return t.resourceName!=null&&t.hasOwnProperty("resourceName")&&(n.resourceName=t.resourceName),t.fileName!=null&&t.hasOwnProperty("fileName")&&(n.fileName=t.fileName),t.animationUrl!=null&&t.hasOwnProperty("animationUrl")&&(n.animationUrl=t.animationUrl),t.width!=null&&t.hasOwnProperty("width")&&(typeof t.width=="number"?n.width=i.longs===String?String(t.width):t.width:n.width=i.longs===String?r.Long.prototype.toString.call(t.width):i.longs===Number?new r.LongBits(t.width.low>>>0,t.width.high>>>0).toNumber():t.width),t.height!=null&&t.hasOwnProperty("height")&&(typeof t.height=="number"?n.height=i.longs===String?String(t.height):t.height:n.height=i.longs===String?r.Long.prototype.toString.call(t.height):i.longs===Number?new r.LongBits(t.height.low>>>0,t.height.high>>>0).toNumber():t.height),t.type!=null&&t.hasOwnProperty("type")&&(typeof t.type=="number"?n.type=i.longs===String?String(t.type):t.type:n.type=i.longs===String?r.Long.prototype.toString.call(t.type):i.longs===Number?new r.LongBits(t.type.low>>>0,t.type.high>>>0).toNumber():t.type),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.message.intl.Animation"},e}(),c.ComboStyle=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.bgColorStart=t.string();break}case 2:{o.bgColorEnd=t.string();break}case 3:{o.giftColor=t.string();break}case 4:{o.nameColor=t.string();break}case 5:{o.giftNumSize=t.int32();break}case 6:{o.duration=t.int64();break}case 7:{o.period=t.int64();break}case 8:{o.bgColorCenter=t.string();break}case 9:{o.giftNumColor=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.intl.ComboStyle)return t;let i=new u.bilibili.broadcast.message.intl.ComboStyle;return t.bgColorStart!=null&&(i.bgColorStart=String(t.bgColorStart)),t.bgColorEnd!=null&&(i.bgColorEnd=String(t.bgColorEnd)),t.giftColor!=null&&(i.giftColor=String(t.giftColor)),t.nameColor!=null&&(i.nameColor=String(t.nameColor)),t.giftNumSize!=null&&(i.giftNumSize=t.giftNumSize|0),t.duration!=null&&(r.Long?(i.duration=r.Long.fromValue(t.duration)).unsigned=!1:typeof t.duration=="string"?i.duration=parseInt(t.duration,10):typeof t.duration=="number"?i.duration=t.duration:typeof t.duration=="object"&&(i.duration=new r.LongBits(t.duration.low>>>0,t.duration.high>>>0).toNumber())),t.period!=null&&(r.Long?(i.period=r.Long.fromValue(t.period)).unsigned=!1:typeof t.period=="string"?i.period=parseInt(t.period,10):typeof t.period=="number"?i.period=t.period:typeof t.period=="object"&&(i.period=new r.LongBits(t.period.low>>>0,t.period.high>>>0).toNumber())),t.bgColorCenter!=null&&(i.bgColorCenter=String(t.bgColorCenter)),t.giftNumColor!=null&&(i.giftNumColor=String(t.giftNumColor)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.bgColorStart="",n.bgColorEnd="",n.giftColor="",n.nameColor="",n.giftNumSize=0,r.Long){let o=new r.Long(0,0,!1);n.duration=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.duration=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.period=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.period=i.longs===String?"0":0;n.bgColorCenter="",n.giftNumColor=""}return t.bgColorStart!=null&&t.hasOwnProperty("bgColorStart")&&(n.bgColorStart=t.bgColorStart),t.bgColorEnd!=null&&t.hasOwnProperty("bgColorEnd")&&(n.bgColorEnd=t.bgColorEnd),t.giftColor!=null&&t.hasOwnProperty("giftColor")&&(n.giftColor=t.giftColor),t.nameColor!=null&&t.hasOwnProperty("nameColor")&&(n.nameColor=t.nameColor),t.giftNumSize!=null&&t.hasOwnProperty("giftNumSize")&&(n.giftNumSize=t.giftNumSize),t.duration!=null&&t.hasOwnProperty("duration")&&(typeof t.duration=="number"?n.duration=i.longs===String?String(t.duration):t.duration:n.duration=i.longs===String?r.Long.prototype.toString.call(t.duration):i.longs===Number?new r.LongBits(t.duration.low>>>0,t.duration.high>>>0).toNumber():t.duration),t.period!=null&&t.hasOwnProperty("period")&&(typeof t.period=="number"?n.period=i.longs===String?String(t.period):t.period:n.period=i.longs===String?r.Long.prototype.toString.call(t.period):i.longs===Number?new r.LongBits(t.period.low>>>0,t.period.high>>>0).toNumber():t.period),t.bgColorCenter!=null&&t.hasOwnProperty("bgColorCenter")&&(n.bgColorCenter=t.bgColorCenter),t.giftNumColor!=null&&t.hasOwnProperty("giftNumColor")&&(n.giftNumColor=t.giftNumColor),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.message.intl.ComboStyle"},e}(),c.Author=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.mid=t.int64();break}case 2:{o.name=t.string();break}case 3:{o.rank=t.int32();break}case 4:{o.avatar=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.intl.Author)return t;let i=new u.bilibili.broadcast.message.intl.Author;return t.mid!=null&&(r.Long?(i.mid=r.Long.fromValue(t.mid)).unsigned=!1:typeof t.mid=="string"?i.mid=parseInt(t.mid,10):typeof t.mid=="number"?i.mid=t.mid:typeof t.mid=="object"&&(i.mid=new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber())),t.name!=null&&(i.name=String(t.name)),t.rank!=null&&(i.rank=t.rank|0),t.avatar!=null&&(i.avatar=String(t.avatar)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.mid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mid=i.longs===String?"0":0;n.name="",n.rank=0,n.avatar=""}return t.mid!=null&&t.hasOwnProperty("mid")&&(typeof t.mid=="number"?n.mid=i.longs===String?String(t.mid):t.mid:n.mid=i.longs===String?r.Long.prototype.toString.call(t.mid):i.longs===Number?new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber():t.mid),t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),t.rank!=null&&t.hasOwnProperty("rank")&&(n.rank=t.rank),t.avatar!=null&&t.hasOwnProperty("avatar")&&(n.avatar=t.avatar),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.message.intl.Author"},e}(),c.DmEventReply=function(){function e(l){if(this.Items=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.Items&&o.Items.length||(o.Items=[]),o.Items.push(u.bilibili.broadcast.message.intl.DmItem.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.intl.DmEventReply)return t;let i=new u.bilibili.broadcast.message.intl.DmEventReply;if(t.Items){if(!Array.isArray(t.Items))throw TypeError(".bilibili.broadcast.message.intl.DmEventReply.Items: array expected");i.Items=[];for(let n=0;n>>3){case 1:{o.NameColor=t.string();break}case 2:{o.ContentColor=t.string();break}case 3:{o.BgColor=t.string();break}case 4:{o.IsBold=t.bool();break}case 5:{o.playAreaHidden=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.intl.Style)return t;let i=new u.bilibili.broadcast.message.intl.Style;return t.NameColor!=null&&(i.NameColor=String(t.NameColor)),t.ContentColor!=null&&(i.ContentColor=String(t.ContentColor)),t.BgColor!=null&&(i.BgColor=String(t.BgColor)),t.IsBold!=null&&(i.IsBold=!!t.IsBold),t.playAreaHidden!=null&&(i.playAreaHidden=!!t.playAreaHidden),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.NameColor="",n.ContentColor="",n.BgColor="",n.IsBold=!1,n.playAreaHidden=!1),t.NameColor!=null&&t.hasOwnProperty("NameColor")&&(n.NameColor=t.NameColor),t.ContentColor!=null&&t.hasOwnProperty("ContentColor")&&(n.ContentColor=t.ContentColor),t.BgColor!=null&&t.hasOwnProperty("BgColor")&&(n.BgColor=t.BgColor),t.IsBold!=null&&t.hasOwnProperty("IsBold")&&(n.IsBold=t.IsBold),t.playAreaHidden!=null&&t.hasOwnProperty("playAreaHidden")&&(n.playAreaHidden=t.playAreaHidden),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.message.intl.Style"},e}(),c.Sticker=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.ID=t.int64();break}case 2:{o.Title=t.string();break}case 3:{o.Icon=t.string();break}case 4:{o.Number=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.intl.Sticker)return t;let i=new u.bilibili.broadcast.message.intl.Sticker;return t.ID!=null&&(r.Long?(i.ID=r.Long.fromValue(t.ID)).unsigned=!1:typeof t.ID=="string"?i.ID=parseInt(t.ID,10):typeof t.ID=="number"?i.ID=t.ID:typeof t.ID=="object"&&(i.ID=new r.LongBits(t.ID.low>>>0,t.ID.high>>>0).toNumber())),t.Title!=null&&(i.Title=String(t.Title)),t.Icon!=null&&(i.Icon=String(t.Icon)),t.Number!=null&&(r.Long?(i.Number=r.Long.fromValue(t.Number)).unsigned=!1:typeof t.Number=="string"?i.Number=parseInt(t.Number,10):typeof t.Number=="number"?i.Number=t.Number:typeof t.Number=="object"&&(i.Number=new r.LongBits(t.Number.low>>>0,t.Number.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.ID=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.ID=i.longs===String?"0":0;if(n.Title="",n.Icon="",r.Long){let o=new r.Long(0,0,!1);n.Number=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.Number=i.longs===String?"0":0}return t.ID!=null&&t.hasOwnProperty("ID")&&(typeof t.ID=="number"?n.ID=i.longs===String?String(t.ID):t.ID:n.ID=i.longs===String?r.Long.prototype.toString.call(t.ID):i.longs===Number?new r.LongBits(t.ID.low>>>0,t.ID.high>>>0).toNumber():t.ID),t.Title!=null&&t.hasOwnProperty("Title")&&(n.Title=t.Title),t.Icon!=null&&t.hasOwnProperty("Icon")&&(n.Icon=t.Icon),t.Number!=null&&t.hasOwnProperty("Number")&&(typeof t.Number=="number"?n.Number=i.longs===String?String(t.Number):t.Number:n.Number=i.longs===String?r.Long.prototype.toString.call(t.Number):i.longs===Number?new r.LongBits(t.Number.low>>>0,t.Number.high>>>0).toNumber():t.Number),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.message.intl.Sticker"},e}(),c.TopUser=function(){function e(l){if(this.Users=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.PaidUserNum=t.string();break}case 2:{o.Users&&o.Users.length||(o.Users=[]),o.Users.push(u.bilibili.broadcast.message.intl.User.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.intl.TopUser)return t;let i=new u.bilibili.broadcast.message.intl.TopUser;if(t.PaidUserNum!=null&&(i.PaidUserNum=String(t.PaidUserNum)),t.Users){if(!Array.isArray(t.Users))throw TypeError(".bilibili.broadcast.message.intl.TopUser.Users: array expected");i.Users=[];for(let n=0;n>>3){case 1:{o.Mid=t.int64();break}case 2:{o.Name=t.string();break}case 3:{o.Face=t.string();break}case 4:{o.score=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.intl.User)return t;let i=new u.bilibili.broadcast.message.intl.User;return t.Mid!=null&&(r.Long?(i.Mid=r.Long.fromValue(t.Mid)).unsigned=!1:typeof t.Mid=="string"?i.Mid=parseInt(t.Mid,10):typeof t.Mid=="number"?i.Mid=t.Mid:typeof t.Mid=="object"&&(i.Mid=new r.LongBits(t.Mid.low>>>0,t.Mid.high>>>0).toNumber())),t.Name!=null&&(i.Name=String(t.Name)),t.Face!=null&&(i.Face=String(t.Face)),t.score!=null&&(r.Long?(i.score=r.Long.fromValue(t.score)).unsigned=!1:typeof t.score=="string"?i.score=parseInt(t.score,10):typeof t.score=="number"?i.score=t.score:typeof t.score=="object"&&(i.score=new r.LongBits(t.score.low>>>0,t.score.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.Mid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.Mid=i.longs===String?"0":0;if(n.Name="",n.Face="",r.Long){let o=new r.Long(0,0,!1);n.score=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.score=i.longs===String?"0":0}return t.Mid!=null&&t.hasOwnProperty("Mid")&&(typeof t.Mid=="number"?n.Mid=i.longs===String?String(t.Mid):t.Mid:n.Mid=i.longs===String?r.Long.prototype.toString.call(t.Mid):i.longs===Number?new r.LongBits(t.Mid.low>>>0,t.Mid.high>>>0).toNumber():t.Mid),t.Name!=null&&t.hasOwnProperty("Name")&&(n.Name=t.Name),t.Face!=null&&t.hasOwnProperty("Face")&&(n.Face=t.Face),t.score!=null&&t.hasOwnProperty("score")&&(typeof t.score=="number"?n.score=i.longs===String?String(t.score):t.score:n.score=i.longs===String?r.Long.prototype.toString.call(t.score):i.longs===Number?new r.LongBits(t.score.low>>>0,t.score.high>>>0).toNumber():t.score),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.message.intl.User"},e}(),c.PopupInfo=function(){function e(l){if(this.popupInfoList=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.popupInfoList&&o.popupInfoList.length||(o.popupInfoList=[]),o.popupInfoList.push(u.bilibili.broadcast.message.intl.PopupInfoItem.decode(t,t.uint32()));break}case 2:{o.duration=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.intl.PopupInfo)return t;let i=new u.bilibili.broadcast.message.intl.PopupInfo;if(t.popupInfoList){if(!Array.isArray(t.popupInfoList))throw TypeError(".bilibili.broadcast.message.intl.PopupInfo.popupInfoList: array expected");i.popupInfoList=[];for(let n=0;n>>0,t.duration.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if((i.arrays||i.defaults)&&(n.popupInfoList=[]),i.defaults)if(r.Long){let o=new r.Long(0,0,!1);n.duration=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.duration=i.longs===String?"0":0;if(t.popupInfoList&&t.popupInfoList.length){n.popupInfoList=[];for(let o=0;o>>0,t.duration.high>>>0).toNumber():t.duration),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.message.intl.PopupInfo"},e}(),c.PopupInfoItem=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.type=t.int32();break}case 2:{o.positon=t.int32();break}case 3:{o.content=t.string();break}case 4:{o.color=t.string();break}case 5:{o.bold=t.bool();break}case 6:{o.iconName=t.string();break}case 7:{o.iconUrl=t.string();break}case 8:{o.width=t.int64();break}case 9:{o.height=t.int64();break}case 10:{o.bgColor=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.intl.PopupInfoItem)return t;let i=new u.bilibili.broadcast.message.intl.PopupInfoItem;switch(t.type){default:if(typeof t.type=="number"){i.type=t.type;break}break;case"PopupItemTypeDefault":case 0:i.type=0;break;case"PopupItemTypeText":case 1:i.type=1;break;case"PopupItemTypeIcon":case 2:i.type=2;break}switch(t.positon){default:if(typeof t.positon=="number"){i.positon=t.positon;break}break;case"PopupItemPositionDefault":case 0:i.positon=0;break;case"PopupItemPositionTitle":case 1:i.positon=1;break;case"PopupItemPositionContent":case 2:i.positon=2;break}return t.content!=null&&(i.content=String(t.content)),t.color!=null&&(i.color=String(t.color)),t.bold!=null&&(i.bold=!!t.bold),t.iconName!=null&&(i.iconName=String(t.iconName)),t.iconUrl!=null&&(i.iconUrl=String(t.iconUrl)),t.width!=null&&(r.Long?(i.width=r.Long.fromValue(t.width)).unsigned=!1:typeof t.width=="string"?i.width=parseInt(t.width,10):typeof t.width=="number"?i.width=t.width:typeof t.width=="object"&&(i.width=new r.LongBits(t.width.low>>>0,t.width.high>>>0).toNumber())),t.height!=null&&(r.Long?(i.height=r.Long.fromValue(t.height)).unsigned=!1:typeof t.height=="string"?i.height=parseInt(t.height,10):typeof t.height=="number"?i.height=t.height:typeof t.height=="object"&&(i.height=new r.LongBits(t.height.low>>>0,t.height.high>>>0).toNumber())),t.bgColor!=null&&(i.bgColor=String(t.bgColor)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.type=i.enums===String?"PopupItemTypeDefault":0,n.positon=i.enums===String?"PopupItemPositionDefault":0,n.content="",n.color="",n.bold=!1,n.iconName="",n.iconUrl="",r.Long){let o=new r.Long(0,0,!1);n.width=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.width=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.height=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.height=i.longs===String?"0":0;n.bgColor=""}return t.type!=null&&t.hasOwnProperty("type")&&(n.type=i.enums===String?u.bilibili.broadcast.message.intl.PopupItemType[t.type]===void 0?t.type:u.bilibili.broadcast.message.intl.PopupItemType[t.type]:t.type),t.positon!=null&&t.hasOwnProperty("positon")&&(n.positon=i.enums===String?u.bilibili.broadcast.message.intl.PopupItemPosition[t.positon]===void 0?t.positon:u.bilibili.broadcast.message.intl.PopupItemPosition[t.positon]:t.positon),t.content!=null&&t.hasOwnProperty("content")&&(n.content=t.content),t.color!=null&&t.hasOwnProperty("color")&&(n.color=t.color),t.bold!=null&&t.hasOwnProperty("bold")&&(n.bold=t.bold),t.iconName!=null&&t.hasOwnProperty("iconName")&&(n.iconName=t.iconName),t.iconUrl!=null&&t.hasOwnProperty("iconUrl")&&(n.iconUrl=t.iconUrl),t.width!=null&&t.hasOwnProperty("width")&&(typeof t.width=="number"?n.width=i.longs===String?String(t.width):t.width:n.width=i.longs===String?r.Long.prototype.toString.call(t.width):i.longs===Number?new r.LongBits(t.width.low>>>0,t.width.high>>>0).toNumber():t.width),t.height!=null&&t.hasOwnProperty("height")&&(typeof t.height=="number"?n.height=i.longs===String?String(t.height):t.height:n.height=i.longs===String?r.Long.prototype.toString.call(t.height):i.longs===Number?new r.LongBits(t.height.low>>>0,t.height.high>>>0).toNumber():t.height),t.bgColor!=null&&t.hasOwnProperty("bgColor")&&(n.bgColor=t.bgColor),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.message.intl.PopupInfoItem"},e}(),c.BlockInfo=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.notice=t.string();break}case 2:{o.endTime=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.intl.BlockInfo)return t;let i=new u.bilibili.broadcast.message.intl.BlockInfo;return t.notice!=null&&(i.notice=String(t.notice)),t.endTime!=null&&(r.Long?(i.endTime=r.Long.fromValue(t.endTime)).unsigned=!1:typeof t.endTime=="string"?i.endTime=parseInt(t.endTime,10):typeof t.endTime=="number"?i.endTime=t.endTime:typeof t.endTime=="object"&&(i.endTime=new r.LongBits(t.endTime.low>>>0,t.endTime.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(n.notice="",r.Long){let o=new r.Long(0,0,!1);n.endTime=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.endTime=i.longs===String?"0":0;return t.notice!=null&&t.hasOwnProperty("notice")&&(n.notice=t.notice),t.endTime!=null&&t.hasOwnProperty("endTime")&&(typeof t.endTime=="number"?n.endTime=i.longs===String?String(t.endTime):t.endTime:n.endTime=i.longs===String?r.Long.prototype.toString.call(t.endTime):i.longs===Number?new r.LongBits(t.endTime.low>>>0,t.endTime.high>>>0).toNumber():t.endTime),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.message.intl.BlockInfo"},e}(),c.Likes=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.number=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.intl.Likes)return t;let i=new u.bilibili.broadcast.message.intl.Likes;return t.number!=null&&(r.Long?(i.number=r.Long.fromValue(t.number)).unsigned=!1:typeof t.number=="string"?i.number=parseInt(t.number,10):typeof t.number=="number"?i.number=t.number:typeof t.number=="object"&&(i.number=new r.LongBits(t.number.low>>>0,t.number.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(r.Long){let o=new r.Long(0,0,!1);n.number=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.number=i.longs===String?"0":0;return t.number!=null&&t.hasOwnProperty("number")&&(typeof t.number=="number"?n.number=i.longs===String?String(t.number):t.number:n.number=i.longs===String?r.Long.prototype.toString.call(t.number):i.longs===Number?new r.LongBits(t.number.low>>>0,t.number.high>>>0).toNumber():t.number),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.message.intl.Likes"},e}(),c.RechargeBarInfo=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.name=t.string();break}case 2:{o.level=t.string();break}case 3:{o.icon=t.string();break}case 4:{o.color=u.bilibili.broadcast.message.intl.RechargeBarColor.decode(t,t.uint32());break}case 5:{o.notice=u.bilibili.broadcast.message.intl.RechargeBarNotice.decode(t,t.uint32());break}case 6:{o.targetUrl=t.string();break}case 7:{o.currentPoint=t.int64();break}case 8:{o.minPoint=t.int64();break}case 9:{o.maxPoint=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.intl.RechargeBarInfo)return t;let i=new u.bilibili.broadcast.message.intl.RechargeBarInfo;if(t.name!=null&&(i.name=String(t.name)),t.level!=null&&(i.level=String(t.level)),t.icon!=null&&(i.icon=String(t.icon)),t.color!=null){if(typeof t.color!="object")throw TypeError(".bilibili.broadcast.message.intl.RechargeBarInfo.color: object expected");i.color=u.bilibili.broadcast.message.intl.RechargeBarColor.fromObject(t.color)}if(t.notice!=null){if(typeof t.notice!="object")throw TypeError(".bilibili.broadcast.message.intl.RechargeBarInfo.notice: object expected");i.notice=u.bilibili.broadcast.message.intl.RechargeBarNotice.fromObject(t.notice)}return t.targetUrl!=null&&(i.targetUrl=String(t.targetUrl)),t.currentPoint!=null&&(r.Long?(i.currentPoint=r.Long.fromValue(t.currentPoint)).unsigned=!1:typeof t.currentPoint=="string"?i.currentPoint=parseInt(t.currentPoint,10):typeof t.currentPoint=="number"?i.currentPoint=t.currentPoint:typeof t.currentPoint=="object"&&(i.currentPoint=new r.LongBits(t.currentPoint.low>>>0,t.currentPoint.high>>>0).toNumber())),t.minPoint!=null&&(r.Long?(i.minPoint=r.Long.fromValue(t.minPoint)).unsigned=!1:typeof t.minPoint=="string"?i.minPoint=parseInt(t.minPoint,10):typeof t.minPoint=="number"?i.minPoint=t.minPoint:typeof t.minPoint=="object"&&(i.minPoint=new r.LongBits(t.minPoint.low>>>0,t.minPoint.high>>>0).toNumber())),t.maxPoint!=null&&(r.Long?(i.maxPoint=r.Long.fromValue(t.maxPoint)).unsigned=!1:typeof t.maxPoint=="string"?i.maxPoint=parseInt(t.maxPoint,10):typeof t.maxPoint=="number"?i.maxPoint=t.maxPoint:typeof t.maxPoint=="object"&&(i.maxPoint=new r.LongBits(t.maxPoint.low>>>0,t.maxPoint.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.name="",n.level="",n.icon="",n.color=null,n.notice=null,n.targetUrl="",r.Long){let o=new r.Long(0,0,!1);n.currentPoint=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.currentPoint=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.minPoint=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.minPoint=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.maxPoint=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.maxPoint=i.longs===String?"0":0}return t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),t.level!=null&&t.hasOwnProperty("level")&&(n.level=t.level),t.icon!=null&&t.hasOwnProperty("icon")&&(n.icon=t.icon),t.color!=null&&t.hasOwnProperty("color")&&(n.color=u.bilibili.broadcast.message.intl.RechargeBarColor.toObject(t.color,i)),t.notice!=null&&t.hasOwnProperty("notice")&&(n.notice=u.bilibili.broadcast.message.intl.RechargeBarNotice.toObject(t.notice,i)),t.targetUrl!=null&&t.hasOwnProperty("targetUrl")&&(n.targetUrl=t.targetUrl),t.currentPoint!=null&&t.hasOwnProperty("currentPoint")&&(typeof t.currentPoint=="number"?n.currentPoint=i.longs===String?String(t.currentPoint):t.currentPoint:n.currentPoint=i.longs===String?r.Long.prototype.toString.call(t.currentPoint):i.longs===Number?new r.LongBits(t.currentPoint.low>>>0,t.currentPoint.high>>>0).toNumber():t.currentPoint),t.minPoint!=null&&t.hasOwnProperty("minPoint")&&(typeof t.minPoint=="number"?n.minPoint=i.longs===String?String(t.minPoint):t.minPoint:n.minPoint=i.longs===String?r.Long.prototype.toString.call(t.minPoint):i.longs===Number?new r.LongBits(t.minPoint.low>>>0,t.minPoint.high>>>0).toNumber():t.minPoint),t.maxPoint!=null&&t.hasOwnProperty("maxPoint")&&(typeof t.maxPoint=="number"?n.maxPoint=i.longs===String?String(t.maxPoint):t.maxPoint:n.maxPoint=i.longs===String?r.Long.prototype.toString.call(t.maxPoint):i.longs===Number?new r.LongBits(t.maxPoint.low>>>0,t.maxPoint.high>>>0).toNumber():t.maxPoint),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.message.intl.RechargeBarInfo"},e}(),c.RechargeBarColor=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.contentColor=t.string();break}case 2:{o.gradientColorStart=t.string();break}case 3:{o.gradientColorEnd=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.intl.RechargeBarColor)return t;let i=new u.bilibili.broadcast.message.intl.RechargeBarColor;return t.contentColor!=null&&(i.contentColor=String(t.contentColor)),t.gradientColorStart!=null&&(i.gradientColorStart=String(t.gradientColorStart)),t.gradientColorEnd!=null&&(i.gradientColorEnd=String(t.gradientColorEnd)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.contentColor="",n.gradientColorStart="",n.gradientColorEnd=""),t.contentColor!=null&&t.hasOwnProperty("contentColor")&&(n.contentColor=t.contentColor),t.gradientColorStart!=null&&t.hasOwnProperty("gradientColorStart")&&(n.gradientColorStart=t.gradientColorStart),t.gradientColorEnd!=null&&t.hasOwnProperty("gradientColorEnd")&&(n.gradientColorEnd=t.gradientColorEnd),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.message.intl.RechargeBarColor"},e}(),c.RechargeBarNotice=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.content=t.string();break}case 2:{o.delay=t.int64();break}case 3:{o.duration=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.intl.RechargeBarNotice)return t;let i=new u.bilibili.broadcast.message.intl.RechargeBarNotice;return t.content!=null&&(i.content=String(t.content)),t.delay!=null&&(r.Long?(i.delay=r.Long.fromValue(t.delay)).unsigned=!1:typeof t.delay=="string"?i.delay=parseInt(t.delay,10):typeof t.delay=="number"?i.delay=t.delay:typeof t.delay=="object"&&(i.delay=new r.LongBits(t.delay.low>>>0,t.delay.high>>>0).toNumber())),t.duration!=null&&(r.Long?(i.duration=r.Long.fromValue(t.duration)).unsigned=!1:typeof t.duration=="string"?i.duration=parseInt(t.duration,10):typeof t.duration=="number"?i.duration=t.duration:typeof t.duration=="object"&&(i.duration=new r.LongBits(t.duration.low>>>0,t.duration.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.content="",r.Long){let o=new r.Long(0,0,!1);n.delay=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.delay=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.duration=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.duration=i.longs===String?"0":0}return t.content!=null&&t.hasOwnProperty("content")&&(n.content=t.content),t.delay!=null&&t.hasOwnProperty("delay")&&(typeof t.delay=="number"?n.delay=i.longs===String?String(t.delay):t.delay:n.delay=i.longs===String?r.Long.prototype.toString.call(t.delay):i.longs===Number?new r.LongBits(t.delay.low>>>0,t.delay.high>>>0).toNumber():t.delay),t.duration!=null&&t.hasOwnProperty("duration")&&(typeof t.duration=="number"?n.duration=i.longs===String?String(t.duration):t.duration:n.duration=i.longs===String?r.Long.prototype.toString.call(t.duration):i.longs===Number?new r.LongBits(t.duration.low>>>0,t.duration.high>>>0).toNumber():t.duration),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.message.intl.RechargeBarNotice"},e}(),c}(),p.main=function(){let c={};return c.DanmakuElem=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.id=t.int64();break}case 2:{o.progress=t.int32();break}case 3:{o.mode=t.int32();break}case 4:{o.fontsize=t.int32();break}case 5:{o.color=t.uint32();break}case 6:{o.midHash=t.string();break}case 7:{o.content=t.string();break}case 8:{o.ctime=t.int64();break}case 9:{o.action=t.string();break}case 10:{o.pool=t.int32();break}case 11:{o.idStr=t.string();break}case 12:{o.weight=t.int32();break}case 13:{o.attr=t.int32();break}case 14:{o.animation=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.main.DanmakuElem)return t;let i=new u.bilibili.broadcast.message.main.DanmakuElem;return t.id!=null&&(r.Long?(i.id=r.Long.fromValue(t.id)).unsigned=!1:typeof t.id=="string"?i.id=parseInt(t.id,10):typeof t.id=="number"?i.id=t.id:typeof t.id=="object"&&(i.id=new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber())),t.progress!=null&&(i.progress=t.progress|0),t.mode!=null&&(i.mode=t.mode|0),t.fontsize!=null&&(i.fontsize=t.fontsize|0),t.color!=null&&(i.color=t.color>>>0),t.midHash!=null&&(i.midHash=String(t.midHash)),t.content!=null&&(i.content=String(t.content)),t.ctime!=null&&(r.Long?(i.ctime=r.Long.fromValue(t.ctime)).unsigned=!1:typeof t.ctime=="string"?i.ctime=parseInt(t.ctime,10):typeof t.ctime=="number"?i.ctime=t.ctime:typeof t.ctime=="object"&&(i.ctime=new r.LongBits(t.ctime.low>>>0,t.ctime.high>>>0).toNumber())),t.action!=null&&(i.action=String(t.action)),t.pool!=null&&(i.pool=t.pool|0),t.idStr!=null&&(i.idStr=String(t.idStr)),t.weight!=null&&(i.weight=t.weight|0),t.attr!=null&&(i.attr=t.attr|0),t.animation!=null&&(i.animation=String(t.animation)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.id=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.id=i.longs===String?"0":0;if(n.progress=0,n.mode=0,n.fontsize=0,n.color=0,n.midHash="",n.content="",r.Long){let o=new r.Long(0,0,!1);n.ctime=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.ctime=i.longs===String?"0":0;n.action="",n.pool=0,n.idStr="",n.weight=0,n.attr=0,n.animation=""}return t.id!=null&&t.hasOwnProperty("id")&&(typeof t.id=="number"?n.id=i.longs===String?String(t.id):t.id:n.id=i.longs===String?r.Long.prototype.toString.call(t.id):i.longs===Number?new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber():t.id),t.progress!=null&&t.hasOwnProperty("progress")&&(n.progress=t.progress),t.mode!=null&&t.hasOwnProperty("mode")&&(n.mode=t.mode),t.fontsize!=null&&t.hasOwnProperty("fontsize")&&(n.fontsize=t.fontsize),t.color!=null&&t.hasOwnProperty("color")&&(n.color=t.color),t.midHash!=null&&t.hasOwnProperty("midHash")&&(n.midHash=t.midHash),t.content!=null&&t.hasOwnProperty("content")&&(n.content=t.content),t.ctime!=null&&t.hasOwnProperty("ctime")&&(typeof t.ctime=="number"?n.ctime=i.longs===String?String(t.ctime):t.ctime:n.ctime=i.longs===String?r.Long.prototype.toString.call(t.ctime):i.longs===Number?new r.LongBits(t.ctime.low>>>0,t.ctime.high>>>0).toNumber():t.ctime),t.action!=null&&t.hasOwnProperty("action")&&(n.action=t.action),t.pool!=null&&t.hasOwnProperty("pool")&&(n.pool=t.pool),t.idStr!=null&&t.hasOwnProperty("idStr")&&(n.idStr=t.idStr),t.weight!=null&&t.hasOwnProperty("weight")&&(n.weight=t.weight),t.attr!=null&&t.hasOwnProperty("attr")&&(n.attr=t.attr),t.animation!=null&&t.hasOwnProperty("animation")&&(n.animation=t.animation),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.message.main.DanmakuElem"},e}(),c.DanmukuEvent=function(){function e(l){if(this.elems=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.elems&&o.elems.length||(o.elems=[]),o.elems.push(u.bilibili.broadcast.message.main.DanmakuElem.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.main.DanmukuEvent)return t;let i=new u.bilibili.broadcast.message.main.DanmukuEvent;if(t.elems){if(!Array.isArray(t.elems))throw TypeError(".bilibili.broadcast.message.main.DanmukuEvent.elems: array expected");i.elems=[];for(let n=0;n>>3){case 1:{o.id=t.int64();break}case 2:{o.oid=t.int64();break}case 3:{o.mid=t.int64();break}case 4:{o.type=t.int32();break}case 5:{o.command=t.string();break}case 6:{o.content=t.string();break}case 7:{o.state=t.int32();break}case 8:{o.progress=t.int32();break}case 9:{o.ctime=t.string();break}case 10:{o.mtime=t.string();break}case 11:{o.extra=t.string();break}case 12:{o.idStr=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.main.CommandDm)return t;let i=new u.bilibili.broadcast.message.main.CommandDm;return t.id!=null&&(r.Long?(i.id=r.Long.fromValue(t.id)).unsigned=!1:typeof t.id=="string"?i.id=parseInt(t.id,10):typeof t.id=="number"?i.id=t.id:typeof t.id=="object"&&(i.id=new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber())),t.oid!=null&&(r.Long?(i.oid=r.Long.fromValue(t.oid)).unsigned=!1:typeof t.oid=="string"?i.oid=parseInt(t.oid,10):typeof t.oid=="number"?i.oid=t.oid:typeof t.oid=="object"&&(i.oid=new r.LongBits(t.oid.low>>>0,t.oid.high>>>0).toNumber())),t.mid!=null&&(r.Long?(i.mid=r.Long.fromValue(t.mid)).unsigned=!1:typeof t.mid=="string"?i.mid=parseInt(t.mid,10):typeof t.mid=="number"?i.mid=t.mid:typeof t.mid=="object"&&(i.mid=new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber())),t.type!=null&&(i.type=t.type|0),t.command!=null&&(i.command=String(t.command)),t.content!=null&&(i.content=String(t.content)),t.state!=null&&(i.state=t.state|0),t.progress!=null&&(i.progress=t.progress|0),t.ctime!=null&&(i.ctime=String(t.ctime)),t.mtime!=null&&(i.mtime=String(t.mtime)),t.extra!=null&&(i.extra=String(t.extra)),t.idStr!=null&&(i.idStr=String(t.idStr)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.id=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.id=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.oid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.oid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.mid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mid=i.longs===String?"0":0;n.type=0,n.command="",n.content="",n.state=0,n.progress=0,n.ctime="",n.mtime="",n.extra="",n.idStr=""}return t.id!=null&&t.hasOwnProperty("id")&&(typeof t.id=="number"?n.id=i.longs===String?String(t.id):t.id:n.id=i.longs===String?r.Long.prototype.toString.call(t.id):i.longs===Number?new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber():t.id),t.oid!=null&&t.hasOwnProperty("oid")&&(typeof t.oid=="number"?n.oid=i.longs===String?String(t.oid):t.oid:n.oid=i.longs===String?r.Long.prototype.toString.call(t.oid):i.longs===Number?new r.LongBits(t.oid.low>>>0,t.oid.high>>>0).toNumber():t.oid),t.mid!=null&&t.hasOwnProperty("mid")&&(typeof t.mid=="number"?n.mid=i.longs===String?String(t.mid):t.mid:n.mid=i.longs===String?r.Long.prototype.toString.call(t.mid):i.longs===Number?new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber():t.mid),t.type!=null&&t.hasOwnProperty("type")&&(n.type=t.type),t.command!=null&&t.hasOwnProperty("command")&&(n.command=t.command),t.content!=null&&t.hasOwnProperty("content")&&(n.content=t.content),t.state!=null&&t.hasOwnProperty("state")&&(n.state=t.state),t.progress!=null&&t.hasOwnProperty("progress")&&(n.progress=t.progress),t.ctime!=null&&t.hasOwnProperty("ctime")&&(n.ctime=t.ctime),t.mtime!=null&&t.hasOwnProperty("mtime")&&(n.mtime=t.mtime),t.extra!=null&&t.hasOwnProperty("extra")&&(n.extra=t.extra),t.idStr!=null&&t.hasOwnProperty("idStr")&&(n.idStr=t.idStr),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.message.main.CommandDm"},e}(),c.History=function(){function e(l,t,i){b.rpc.Service.call(this,l,t,i)}return(e.prototype=Object.create(b.rpc.Service.prototype)).constructor=e,e.create=function(t,i,n){return new this(t,i,n)},Object.defineProperty(e.prototype.report=function l(t,i){return this.rpcCall(l,u.bilibili.broadcast.message.main.HistoryReportEvent,u.google.protobuf.Empty,t,i)},"name",{value:"Report"}),e}(),c.HistoryReportEvent=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.aid=t.int64();break}case 2:{o.type=t.int32();break}case 3:{o.cid=t.int64();break}case 4:{o.epid=t.int64();break}case 5:{o.sid=t.int64();break}case 6:{o.subType=t.int32();break}case 7:{o.dt=t.int32();break}case 8:{o.realtime=t.int64();break}case 9:{o.source=t.string();break}case 10:{o.progress=t.int64();break}case 11:{o.duration=t.int64();break}case 12:{o.platform=t.string();break}case 13:{o.device=t.string();break}case 14:{o.playTime=t.int64();break}case 15:{o.statistics=t.string();break}case 16:{o.startTs=t.int64();break}case 17:{o.deviceTs=t.int64();break}case 18:{o.scene=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.main.HistoryReportEvent)return t;let i=new u.bilibili.broadcast.message.main.HistoryReportEvent;return t.aid!=null&&(r.Long?(i.aid=r.Long.fromValue(t.aid)).unsigned=!1:typeof t.aid=="string"?i.aid=parseInt(t.aid,10):typeof t.aid=="number"?i.aid=t.aid:typeof t.aid=="object"&&(i.aid=new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber())),t.type!=null&&(i.type=t.type|0),t.cid!=null&&(r.Long?(i.cid=r.Long.fromValue(t.cid)).unsigned=!1:typeof t.cid=="string"?i.cid=parseInt(t.cid,10):typeof t.cid=="number"?i.cid=t.cid:typeof t.cid=="object"&&(i.cid=new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber())),t.epid!=null&&(r.Long?(i.epid=r.Long.fromValue(t.epid)).unsigned=!1:typeof t.epid=="string"?i.epid=parseInt(t.epid,10):typeof t.epid=="number"?i.epid=t.epid:typeof t.epid=="object"&&(i.epid=new r.LongBits(t.epid.low>>>0,t.epid.high>>>0).toNumber())),t.sid!=null&&(r.Long?(i.sid=r.Long.fromValue(t.sid)).unsigned=!1:typeof t.sid=="string"?i.sid=parseInt(t.sid,10):typeof t.sid=="number"?i.sid=t.sid:typeof t.sid=="object"&&(i.sid=new r.LongBits(t.sid.low>>>0,t.sid.high>>>0).toNumber())),t.subType!=null&&(i.subType=t.subType|0),t.dt!=null&&(i.dt=t.dt|0),t.realtime!=null&&(r.Long?(i.realtime=r.Long.fromValue(t.realtime)).unsigned=!1:typeof t.realtime=="string"?i.realtime=parseInt(t.realtime,10):typeof t.realtime=="number"?i.realtime=t.realtime:typeof t.realtime=="object"&&(i.realtime=new r.LongBits(t.realtime.low>>>0,t.realtime.high>>>0).toNumber())),t.source!=null&&(i.source=String(t.source)),t.progress!=null&&(r.Long?(i.progress=r.Long.fromValue(t.progress)).unsigned=!1:typeof t.progress=="string"?i.progress=parseInt(t.progress,10):typeof t.progress=="number"?i.progress=t.progress:typeof t.progress=="object"&&(i.progress=new r.LongBits(t.progress.low>>>0,t.progress.high>>>0).toNumber())),t.duration!=null&&(r.Long?(i.duration=r.Long.fromValue(t.duration)).unsigned=!1:typeof t.duration=="string"?i.duration=parseInt(t.duration,10):typeof t.duration=="number"?i.duration=t.duration:typeof t.duration=="object"&&(i.duration=new r.LongBits(t.duration.low>>>0,t.duration.high>>>0).toNumber())),t.platform!=null&&(i.platform=String(t.platform)),t.device!=null&&(i.device=String(t.device)),t.playTime!=null&&(r.Long?(i.playTime=r.Long.fromValue(t.playTime)).unsigned=!1:typeof t.playTime=="string"?i.playTime=parseInt(t.playTime,10):typeof t.playTime=="number"?i.playTime=t.playTime:typeof t.playTime=="object"&&(i.playTime=new r.LongBits(t.playTime.low>>>0,t.playTime.high>>>0).toNumber())),t.statistics!=null&&(i.statistics=String(t.statistics)),t.startTs!=null&&(r.Long?(i.startTs=r.Long.fromValue(t.startTs)).unsigned=!1:typeof t.startTs=="string"?i.startTs=parseInt(t.startTs,10):typeof t.startTs=="number"?i.startTs=t.startTs:typeof t.startTs=="object"&&(i.startTs=new r.LongBits(t.startTs.low>>>0,t.startTs.high>>>0).toNumber())),t.deviceTs!=null&&(r.Long?(i.deviceTs=r.Long.fromValue(t.deviceTs)).unsigned=!1:typeof t.deviceTs=="string"?i.deviceTs=parseInt(t.deviceTs,10):typeof t.deviceTs=="number"?i.deviceTs=t.deviceTs:typeof t.deviceTs=="object"&&(i.deviceTs=new r.LongBits(t.deviceTs.low>>>0,t.deviceTs.high>>>0).toNumber())),t.scene!=null&&(i.scene=String(t.scene)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.aid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.aid=i.longs===String?"0":0;if(n.type=0,r.Long){let o=new r.Long(0,0,!1);n.cid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.cid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.epid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.epid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.sid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.sid=i.longs===String?"0":0;if(n.subType=0,n.dt=0,r.Long){let o=new r.Long(0,0,!1);n.realtime=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.realtime=i.longs===String?"0":0;if(n.source="",r.Long){let o=new r.Long(0,0,!1);n.progress=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.progress=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.duration=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.duration=i.longs===String?"0":0;if(n.platform="",n.device="",r.Long){let o=new r.Long(0,0,!1);n.playTime=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.playTime=i.longs===String?"0":0;if(n.statistics="",r.Long){let o=new r.Long(0,0,!1);n.startTs=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.startTs=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.deviceTs=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.deviceTs=i.longs===String?"0":0;n.scene=""}return t.aid!=null&&t.hasOwnProperty("aid")&&(typeof t.aid=="number"?n.aid=i.longs===String?String(t.aid):t.aid:n.aid=i.longs===String?r.Long.prototype.toString.call(t.aid):i.longs===Number?new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber():t.aid),t.type!=null&&t.hasOwnProperty("type")&&(n.type=t.type),t.cid!=null&&t.hasOwnProperty("cid")&&(typeof t.cid=="number"?n.cid=i.longs===String?String(t.cid):t.cid:n.cid=i.longs===String?r.Long.prototype.toString.call(t.cid):i.longs===Number?new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber():t.cid),t.epid!=null&&t.hasOwnProperty("epid")&&(typeof t.epid=="number"?n.epid=i.longs===String?String(t.epid):t.epid:n.epid=i.longs===String?r.Long.prototype.toString.call(t.epid):i.longs===Number?new r.LongBits(t.epid.low>>>0,t.epid.high>>>0).toNumber():t.epid),t.sid!=null&&t.hasOwnProperty("sid")&&(typeof t.sid=="number"?n.sid=i.longs===String?String(t.sid):t.sid:n.sid=i.longs===String?r.Long.prototype.toString.call(t.sid):i.longs===Number?new r.LongBits(t.sid.low>>>0,t.sid.high>>>0).toNumber():t.sid),t.subType!=null&&t.hasOwnProperty("subType")&&(n.subType=t.subType),t.dt!=null&&t.hasOwnProperty("dt")&&(n.dt=t.dt),t.realtime!=null&&t.hasOwnProperty("realtime")&&(typeof t.realtime=="number"?n.realtime=i.longs===String?String(t.realtime):t.realtime:n.realtime=i.longs===String?r.Long.prototype.toString.call(t.realtime):i.longs===Number?new r.LongBits(t.realtime.low>>>0,t.realtime.high>>>0).toNumber():t.realtime),t.source!=null&&t.hasOwnProperty("source")&&(n.source=t.source),t.progress!=null&&t.hasOwnProperty("progress")&&(typeof t.progress=="number"?n.progress=i.longs===String?String(t.progress):t.progress:n.progress=i.longs===String?r.Long.prototype.toString.call(t.progress):i.longs===Number?new r.LongBits(t.progress.low>>>0,t.progress.high>>>0).toNumber():t.progress),t.duration!=null&&t.hasOwnProperty("duration")&&(typeof t.duration=="number"?n.duration=i.longs===String?String(t.duration):t.duration:n.duration=i.longs===String?r.Long.prototype.toString.call(t.duration):i.longs===Number?new r.LongBits(t.duration.low>>>0,t.duration.high>>>0).toNumber():t.duration),t.platform!=null&&t.hasOwnProperty("platform")&&(n.platform=t.platform),t.device!=null&&t.hasOwnProperty("device")&&(n.device=t.device),t.playTime!=null&&t.hasOwnProperty("playTime")&&(typeof t.playTime=="number"?n.playTime=i.longs===String?String(t.playTime):t.playTime:n.playTime=i.longs===String?r.Long.prototype.toString.call(t.playTime):i.longs===Number?new r.LongBits(t.playTime.low>>>0,t.playTime.high>>>0).toNumber():t.playTime),t.statistics!=null&&t.hasOwnProperty("statistics")&&(n.statistics=t.statistics),t.startTs!=null&&t.hasOwnProperty("startTs")&&(typeof t.startTs=="number"?n.startTs=i.longs===String?String(t.startTs):t.startTs:n.startTs=i.longs===String?r.Long.prototype.toString.call(t.startTs):i.longs===Number?new r.LongBits(t.startTs.low>>>0,t.startTs.high>>>0).toNumber():t.startTs),t.deviceTs!=null&&t.hasOwnProperty("deviceTs")&&(typeof t.deviceTs=="number"?n.deviceTs=i.longs===String?String(t.deviceTs):t.deviceTs:n.deviceTs=i.longs===String?r.Long.prototype.toString.call(t.deviceTs):i.longs===Number?new r.LongBits(t.deviceTs.low>>>0,t.deviceTs.high>>>0).toNumber():t.deviceTs),t.scene!=null&&t.hasOwnProperty("scene")&&(n.scene=t.scene),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.message.main.HistoryReportEvent"},e}(),c.NativePage=function(){function e(l,t,i){b.rpc.Service.call(this,l,t,i)}return(e.prototype=Object.create(b.rpc.Service.prototype)).constructor=e,e.create=function(t,i,n){return new this(t,i,n)},Object.defineProperty(e.prototype.watchNotify=function l(t,i){return this.rpcCall(l,u.google.protobuf.Empty,u.bilibili.broadcast.message.main.NativePageEvent,t,i)},"name",{value:"WatchNotify"}),e}(),c.NativePageEvent=function(){function e(l){if(this.Items=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.PageID=t.int64();break}case 2:{o.Items&&o.Items.length||(o.Items=[]),o.Items.push(u.bilibili.broadcast.message.main.EventItem.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.main.NativePageEvent)return t;let i=new u.bilibili.broadcast.message.main.NativePageEvent;if(t.PageID!=null&&(r.Long?(i.PageID=r.Long.fromValue(t.PageID)).unsigned=!1:typeof t.PageID=="string"?i.PageID=parseInt(t.PageID,10):typeof t.PageID=="number"?i.PageID=t.PageID:typeof t.PageID=="object"&&(i.PageID=new r.LongBits(t.PageID.low>>>0,t.PageID.high>>>0).toNumber())),t.Items){if(!Array.isArray(t.Items))throw TypeError(".bilibili.broadcast.message.main.NativePageEvent.Items: array expected");i.Items=[];for(let n=0;n>>0,t.PageID.high>>>0).toNumber():t.PageID),t.Items&&t.Items.length){n.Items=[];for(let o=0;o>>3){case 1:{o.ItemID=t.int64();break}case 2:{o.Type=t.string();break}case 3:{o.Num=t.int64();break}case 4:{o.DisplayNum=t.string();break}case 5:{o.WebKey=t.string();break}case 6:{o.dimension=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.main.EventItem)return t;let i=new u.bilibili.broadcast.message.main.EventItem;return t.ItemID!=null&&(r.Long?(i.ItemID=r.Long.fromValue(t.ItemID)).unsigned=!1:typeof t.ItemID=="string"?i.ItemID=parseInt(t.ItemID,10):typeof t.ItemID=="number"?i.ItemID=t.ItemID:typeof t.ItemID=="object"&&(i.ItemID=new r.LongBits(t.ItemID.low>>>0,t.ItemID.high>>>0).toNumber())),t.Type!=null&&(i.Type=String(t.Type)),t.Num!=null&&(r.Long?(i.Num=r.Long.fromValue(t.Num)).unsigned=!1:typeof t.Num=="string"?i.Num=parseInt(t.Num,10):typeof t.Num=="number"?i.Num=t.Num:typeof t.Num=="object"&&(i.Num=new r.LongBits(t.Num.low>>>0,t.Num.high>>>0).toNumber())),t.DisplayNum!=null&&(i.DisplayNum=String(t.DisplayNum)),t.WebKey!=null&&(i.WebKey=String(t.WebKey)),t.dimension!=null&&(r.Long?(i.dimension=r.Long.fromValue(t.dimension)).unsigned=!1:typeof t.dimension=="string"?i.dimension=parseInt(t.dimension,10):typeof t.dimension=="number"?i.dimension=t.dimension:typeof t.dimension=="object"&&(i.dimension=new r.LongBits(t.dimension.low>>>0,t.dimension.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.ItemID=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.ItemID=i.longs===String?"0":0;if(n.Type="",r.Long){let o=new r.Long(0,0,!1);n.Num=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.Num=i.longs===String?"0":0;if(n.DisplayNum="",n.WebKey="",r.Long){let o=new r.Long(0,0,!1);n.dimension=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.dimension=i.longs===String?"0":0}return t.ItemID!=null&&t.hasOwnProperty("ItemID")&&(typeof t.ItemID=="number"?n.ItemID=i.longs===String?String(t.ItemID):t.ItemID:n.ItemID=i.longs===String?r.Long.prototype.toString.call(t.ItemID):i.longs===Number?new r.LongBits(t.ItemID.low>>>0,t.ItemID.high>>>0).toNumber():t.ItemID),t.Type!=null&&t.hasOwnProperty("Type")&&(n.Type=t.Type),t.Num!=null&&t.hasOwnProperty("Num")&&(typeof t.Num=="number"?n.Num=i.longs===String?String(t.Num):t.Num:n.Num=i.longs===String?r.Long.prototype.toString.call(t.Num):i.longs===Number?new r.LongBits(t.Num.low>>>0,t.Num.high>>>0).toNumber():t.Num),t.DisplayNum!=null&&t.hasOwnProperty("DisplayNum")&&(n.DisplayNum=t.DisplayNum),t.WebKey!=null&&t.hasOwnProperty("WebKey")&&(n.WebKey=t.WebKey),t.dimension!=null&&t.hasOwnProperty("dimension")&&(typeof t.dimension=="number"?n.dimension=i.longs===String?String(t.dimension):t.dimension:n.dimension=i.longs===String?r.Long.prototype.toString.call(t.dimension):i.longs===Number?new r.LongBits(t.dimension.low>>>0,t.dimension.high>>>0).toNumber():t.dimension),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.message.main.EventItem"},e}(),c.Resource=function(){function e(l,t,i){b.rpc.Service.call(this,l,t,i)}return(e.prototype=Object.create(b.rpc.Service.prototype)).constructor=e,e.create=function(t,i,n){return new this(t,i,n)},Object.defineProperty(e.prototype.topActivity=function l(t,i){return this.rpcCall(l,u.google.protobuf.Empty,u.bilibili.broadcast.message.main.TopActivityReply,t,i)},"name",{value:"TopActivity"}),e}(),c.TopActivityReply=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.online=u.bilibili.broadcast.message.main.TopOnline.decode(t,t.uint32());break}case 2:{o.hash=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.main.TopActivityReply)return t;let i=new u.bilibili.broadcast.message.main.TopActivityReply;if(t.online!=null){if(typeof t.online!="object")throw TypeError(".bilibili.broadcast.message.main.TopActivityReply.online: object expected");i.online=u.bilibili.broadcast.message.main.TopOnline.fromObject(t.online)}return t.hash!=null&&(i.hash=String(t.hash)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.online=null,n.hash=""),t.online!=null&&t.hasOwnProperty("online")&&(n.online=u.bilibili.broadcast.message.main.TopOnline.toObject(t.online,i)),t.hash!=null&&t.hasOwnProperty("hash")&&(n.hash=t.hash),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.message.main.TopActivityReply"},e}(),c.TopOnline=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.type=t.int32();break}case 2:{o.icon=t.string();break}case 3:{o.uri=t.string();break}case 4:{o.uniqueId=t.string();break}case 5:{o.animate=u.bilibili.broadcast.message.main.Animate.decode(t,t.uint32());break}case 6:{o.redDot=u.bilibili.broadcast.message.main.RedDot.decode(t,t.uint32());break}case 7:{o.name=t.string();break}case 8:{o.interval=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.main.TopOnline)return t;let i=new u.bilibili.broadcast.message.main.TopOnline;if(t.type!=null&&(i.type=t.type|0),t.icon!=null&&(i.icon=String(t.icon)),t.uri!=null&&(i.uri=String(t.uri)),t.uniqueId!=null&&(i.uniqueId=String(t.uniqueId)),t.animate!=null){if(typeof t.animate!="object")throw TypeError(".bilibili.broadcast.message.main.TopOnline.animate: object expected");i.animate=u.bilibili.broadcast.message.main.Animate.fromObject(t.animate)}if(t.redDot!=null){if(typeof t.redDot!="object")throw TypeError(".bilibili.broadcast.message.main.TopOnline.redDot: object expected");i.redDot=u.bilibili.broadcast.message.main.RedDot.fromObject(t.redDot)}return t.name!=null&&(i.name=String(t.name)),t.interval!=null&&(r.Long?(i.interval=r.Long.fromValue(t.interval)).unsigned=!1:typeof t.interval=="string"?i.interval=parseInt(t.interval,10):typeof t.interval=="number"?i.interval=t.interval:typeof t.interval=="object"&&(i.interval=new r.LongBits(t.interval.low>>>0,t.interval.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(n.type=0,n.icon="",n.uri="",n.uniqueId="",n.animate=null,n.redDot=null,n.name="",r.Long){let o=new r.Long(0,0,!1);n.interval=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.interval=i.longs===String?"0":0;return t.type!=null&&t.hasOwnProperty("type")&&(n.type=t.type),t.icon!=null&&t.hasOwnProperty("icon")&&(n.icon=t.icon),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),t.uniqueId!=null&&t.hasOwnProperty("uniqueId")&&(n.uniqueId=t.uniqueId),t.animate!=null&&t.hasOwnProperty("animate")&&(n.animate=u.bilibili.broadcast.message.main.Animate.toObject(t.animate,i)),t.redDot!=null&&t.hasOwnProperty("redDot")&&(n.redDot=u.bilibili.broadcast.message.main.RedDot.toObject(t.redDot,i)),t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),t.interval!=null&&t.hasOwnProperty("interval")&&(typeof t.interval=="number"?n.interval=i.longs===String?String(t.interval):t.interval:n.interval=i.longs===String?r.Long.prototype.toString.call(t.interval):i.longs===Number?new r.LongBits(t.interval.low>>>0,t.interval.high>>>0).toNumber():t.interval),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.message.main.TopOnline"},e}(),c.Animate=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.icon=t.string();break}case 2:{o.json=t.string();break}case 3:{o.svg=t.string();break}case 4:{o.loop=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.main.Animate)return t;let i=new u.bilibili.broadcast.message.main.Animate;return t.icon!=null&&(i.icon=String(t.icon)),t.json!=null&&(i.json=String(t.json)),t.svg!=null&&(i.svg=String(t.svg)),t.loop!=null&&(i.loop=t.loop|0),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.icon="",n.json="",n.svg="",n.loop=0),t.icon!=null&&t.hasOwnProperty("icon")&&(n.icon=t.icon),t.json!=null&&t.hasOwnProperty("json")&&(n.json=t.json),t.svg!=null&&t.hasOwnProperty("svg")&&(n.svg=t.svg),t.loop!=null&&t.hasOwnProperty("loop")&&(n.loop=t.loop),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.message.main.Animate"},e}(),c.RedDot=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.type=t.int32();break}case 2:{o.number=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.main.RedDot)return t;let i=new u.bilibili.broadcast.message.main.RedDot;return t.type!=null&&(i.type=t.type|0),t.number!=null&&(i.number=t.number|0),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.type=0,n.number=0),t.type!=null&&t.hasOwnProperty("type")&&(n.type=t.type),t.number!=null&&t.hasOwnProperty("number")&&(n.number=t.number),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.message.main.RedDot"},e}(),c.Search=function(){function e(l,t,i){b.rpc.Service.call(this,l,t,i)}return(e.prototype=Object.create(b.rpc.Service.prototype)).constructor=e,e.create=function(t,i,n){return new this(t,i,n)},Object.defineProperty(e.prototype.chatResultPush=function l(t,i){return this.rpcCall(l,u.google.protobuf.Empty,u.bilibili.broadcast.message.main.ChatResult,t,i)},"name",{value:"ChatResultPush"}),e}(),c.Bubble=function(){function e(l){if(this.paragraphs=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.paragraphs&&o.paragraphs.length||(o.paragraphs=[]),o.paragraphs.push(u.bilibili.app.dynamic.v2.Paragraph.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.main.Bubble)return t;let i=new u.bilibili.broadcast.message.main.Bubble;if(t.paragraphs){if(!Array.isArray(t.paragraphs))throw TypeError(".bilibili.broadcast.message.main.Bubble.paragraphs: array expected");i.paragraphs=[];for(let n=0;n>>3){case 1:{o.code=t.int32();break}case 2:{o.sessionId=t.string();break}case 3:{o.bubbles&&o.bubbles.length||(o.bubbles=[]),o.bubbles.push(u.bilibili.broadcast.message.main.Bubble.decode(t,t.uint32()));break}case 4:{o.rewriteWord=t.string();break}case 5:{o.title=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.main.ChatResult)return t;let i=new u.bilibili.broadcast.message.main.ChatResult;if(t.code!=null&&(i.code=t.code|0),t.sessionId!=null&&(i.sessionId=String(t.sessionId)),t.bubbles){if(!Array.isArray(t.bubbles))throw TypeError(".bilibili.broadcast.message.main.ChatResult.bubbles: array expected");i.bubbles=[];for(let n=0;n>>3){case 1:{o.stats=u.bilibili.broadcast.message.main.Stats.decode(t,t.uint32());break}case 2:{o.aid=t.int64();break}case 3:{o.upTime=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.main.ViewPush)return t;let i=new u.bilibili.broadcast.message.main.ViewPush;if(t.stats!=null){if(typeof t.stats!="object")throw TypeError(".bilibili.broadcast.message.main.ViewPush.stats: object expected");i.stats=u.bilibili.broadcast.message.main.Stats.fromObject(t.stats)}return t.aid!=null&&(r.Long?(i.aid=r.Long.fromValue(t.aid)).unsigned=!1:typeof t.aid=="string"?i.aid=parseInt(t.aid,10):typeof t.aid=="number"?i.aid=t.aid:typeof t.aid=="object"&&(i.aid=new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber())),t.upTime!=null&&(r.Long?(i.upTime=r.Long.fromValue(t.upTime)).unsigned=!1:typeof t.upTime=="string"?i.upTime=parseInt(t.upTime,10):typeof t.upTime=="number"?i.upTime=t.upTime:typeof t.upTime=="object"&&(i.upTime=new r.LongBits(t.upTime.low>>>0,t.upTime.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.stats=null,r.Long){let o=new r.Long(0,0,!1);n.aid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.aid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.upTime=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.upTime=i.longs===String?"0":0}return t.stats!=null&&t.hasOwnProperty("stats")&&(n.stats=u.bilibili.broadcast.message.main.Stats.toObject(t.stats,i)),t.aid!=null&&t.hasOwnProperty("aid")&&(typeof t.aid=="number"?n.aid=i.longs===String?String(t.aid):t.aid:n.aid=i.longs===String?r.Long.prototype.toString.call(t.aid):i.longs===Number?new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber():t.aid),t.upTime!=null&&t.hasOwnProperty("upTime")&&(typeof t.upTime=="number"?n.upTime=i.longs===String?String(t.upTime):t.upTime:n.upTime=i.longs===String?r.Long.prototype.toString.call(t.upTime):i.longs===Number?new r.LongBits(t.upTime.low>>>0,t.upTime.high>>>0).toNumber():t.upTime),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.message.main.ViewPush"},e}(),c.Stats=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.like=t.int32();break}case 2:{o.coin=t.int32();break}case 3:{o.fav=t.int32();break}case 4:{o.share=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.main.Stats)return t;let i=new u.bilibili.broadcast.message.main.Stats;return t.like!=null&&(i.like=t.like|0),t.coin!=null&&(i.coin=t.coin|0),t.fav!=null&&(i.fav=t.fav|0),t.share!=null&&(i.share=t.share|0),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.like=0,n.coin=0,n.fav=0,n.share=0),t.like!=null&&t.hasOwnProperty("like")&&(n.like=t.like),t.coin!=null&&t.hasOwnProperty("coin")&&(n.coin=t.coin),t.fav!=null&&t.hasOwnProperty("fav")&&(n.fav=t.fav),t.share!=null&&t.hasOwnProperty("share")&&(n.share=t.share),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.message.main.Stats"},e}(),c}(),p.mall=function(){let c={};return c.MsgType=function(){let e={},l=Object.create(e);return l[e[0]="USER_CALL"]=0,l[e[1]="DEL_ROOM"]=1,l[e[2]="OPPOSITE_LEAVE"]=2,l[e[3]="PUSH_ITEMS"]=3,l[e[4]="MERCHANT_ADD"]=4,l[e[5]="USER_ADD"]=5,l[e[6]="MERCHANT_REJET"]=6,l}(),c.NotifyReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.roomId=t.uint64();break}case 2:{o.msgType=t.int32();break}case 3:{o.content=t.string();break}case 4:{o.jumpUrl=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.mall.NotifyReq)return t;let i=new u.bilibili.broadcast.message.mall.NotifyReq;return t.roomId!=null&&(r.Long?(i.roomId=r.Long.fromValue(t.roomId)).unsigned=!0:typeof t.roomId=="string"?i.roomId=parseInt(t.roomId,10):typeof t.roomId=="number"?i.roomId=t.roomId:typeof t.roomId=="object"&&(i.roomId=new r.LongBits(t.roomId.low>>>0,t.roomId.high>>>0).toNumber(!0))),t.msgType!=null&&(i.msgType=t.msgType|0),t.content!=null&&(i.content=String(t.content)),t.jumpUrl!=null&&(i.jumpUrl=String(t.jumpUrl)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!0);n.roomId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.roomId=i.longs===String?"0":0;n.msgType=0,n.content="",n.jumpUrl=""}return t.roomId!=null&&t.hasOwnProperty("roomId")&&(typeof t.roomId=="number"?n.roomId=i.longs===String?String(t.roomId):t.roomId:n.roomId=i.longs===String?r.Long.prototype.toString.call(t.roomId):i.longs===Number?new r.LongBits(t.roomId.low>>>0,t.roomId.high>>>0).toNumber(!0):t.roomId),t.msgType!=null&&t.hasOwnProperty("msgType")&&(n.msgType=t.msgType),t.content!=null&&t.hasOwnProperty("content")&&(n.content=t.content),t.jumpUrl!=null&&t.hasOwnProperty("jumpUrl")&&(n.jumpUrl=t.jumpUrl),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.message.mall.NotifyReq"},e}(),c.MerchantNotify=function(){function e(l,t,i){b.rpc.Service.call(this,l,t,i)}return(e.prototype=Object.create(b.rpc.Service.prototype)).constructor=e,e.create=function(t,i,n){return new this(t,i,n)},Object.defineProperty(e.prototype.messageNotify=function l(t,i){return this.rpcCall(l,u.google.protobuf.Empty,u.bilibili.broadcast.message.mall.NotifyReq,t,i)},"name",{value:"MessageNotify"}),e}(),c}(),p.note=function(){let c={};return c.Sync=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.noteId=t.int64();break}case 2:{o.hash=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.note.Sync)return t;let i=new u.bilibili.broadcast.message.note.Sync;return t.noteId!=null&&(r.Long?(i.noteId=r.Long.fromValue(t.noteId)).unsigned=!1:typeof t.noteId=="string"?i.noteId=parseInt(t.noteId,10):typeof t.noteId=="number"?i.noteId=t.noteId:typeof t.noteId=="object"&&(i.noteId=new r.LongBits(t.noteId.low>>>0,t.noteId.high>>>0).toNumber())),t.hash!=null&&(i.hash=String(t.hash)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.noteId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.noteId=i.longs===String?"0":0;n.hash=""}return t.noteId!=null&&t.hasOwnProperty("noteId")&&(typeof t.noteId=="number"?n.noteId=i.longs===String?String(t.noteId):t.noteId:n.noteId=i.longs===String?r.Long.prototype.toString.call(t.noteId):i.longs===Number?new r.LongBits(t.noteId.low>>>0,t.noteId.high>>>0).toNumber():t.noteId),t.hash!=null&&t.hasOwnProperty("hash")&&(n.hash=t.hash),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.message.note.Sync"},e}(),c}(),p.ogv=function(){let c={};return c.PlayStatus=function(){let e={},l=Object.create(e);return l[e[0]="Pause"]=0,l[e[1]="Play"]=1,l[e[2]="End"]=2,l}(),c.RoomType=function(){let e={},l=Object.create(e);return l[e[0]="Private"]=0,l[e[1]="Open"]=1,l}(),c.MessageDomain=function(){let e={},l=Object.create(e);return l[e[0]="DefaultDomain"]=0,l[e[1]="RoomMid"]=1,l[e[2]="SystemInfo"]=2,l}(),c.MessageType=function(){let e={},l=Object.create(e);return l[e[0]="DefaultType"]=0,l[e[1]="ChatMessage"]=1,l[e[2]="SystemMessage"]=2,l}(),c.TriggerType=function(){let e={},l=Object.create(e);return l[e[0]="DefaultTrigger"]=0,l[e[1]="Relation"]=1,l[e[2]="LivePointCall"]=2,l[e[3]="MemberChange"]=3,l}(),c.TopMsgOptType=function(){let e={},l=Object.create(e);return l[e[0]="topMsg"]=0,l[e[1]="recallTopMsg"]=1,l}(),c.RoomMemberChangeEvent=function(){function e(l){if(this.members=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.roomId=t.int64();break}case 2:{o.ownerId=t.int64();break}case 3:{o.members&&o.members.length||(o.members=[]),o.members.push(u.bilibili.broadcast.message.ogv.UserInfoProto.decode(t,t.uint32()));break}case 4:{o.message=u.bilibili.broadcast.message.ogv.MessageProto.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.ogv.RoomMemberChangeEvent)return t;let i=new u.bilibili.broadcast.message.ogv.RoomMemberChangeEvent;if(t.roomId!=null&&(r.Long?(i.roomId=r.Long.fromValue(t.roomId)).unsigned=!1:typeof t.roomId=="string"?i.roomId=parseInt(t.roomId,10):typeof t.roomId=="number"?i.roomId=t.roomId:typeof t.roomId=="object"&&(i.roomId=new r.LongBits(t.roomId.low>>>0,t.roomId.high>>>0).toNumber())),t.ownerId!=null&&(r.Long?(i.ownerId=r.Long.fromValue(t.ownerId)).unsigned=!1:typeof t.ownerId=="string"?i.ownerId=parseInt(t.ownerId,10):typeof t.ownerId=="number"?i.ownerId=t.ownerId:typeof t.ownerId=="object"&&(i.ownerId=new r.LongBits(t.ownerId.low>>>0,t.ownerId.high>>>0).toNumber())),t.members){if(!Array.isArray(t.members))throw TypeError(".bilibili.broadcast.message.ogv.RoomMemberChangeEvent.members: array expected");i.members=[];for(let n=0;n>>0,t.roomId.high>>>0).toNumber():t.roomId),t.ownerId!=null&&t.hasOwnProperty("ownerId")&&(typeof t.ownerId=="number"?n.ownerId=i.longs===String?String(t.ownerId):t.ownerId:n.ownerId=i.longs===String?r.Long.prototype.toString.call(t.ownerId):i.longs===Number?new r.LongBits(t.ownerId.low>>>0,t.ownerId.high>>>0).toNumber():t.ownerId),t.members&&t.members.length){n.members=[];for(let o=0;o>>3){case 1:{o.roomId=t.int64();break}case 2:{o.roomCount=u.bilibili.broadcast.message.ogv.RoomCount.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.ogv.RoomMemberCountEvent)return t;let i=new u.bilibili.broadcast.message.ogv.RoomMemberCountEvent;if(t.roomId!=null&&(r.Long?(i.roomId=r.Long.fromValue(t.roomId)).unsigned=!1:typeof t.roomId=="string"?i.roomId=parseInt(t.roomId,10):typeof t.roomId=="number"?i.roomId=t.roomId:typeof t.roomId=="object"&&(i.roomId=new r.LongBits(t.roomId.low>>>0,t.roomId.high>>>0).toNumber())),t.roomCount!=null){if(typeof t.roomCount!="object")throw TypeError(".bilibili.broadcast.message.ogv.RoomMemberCountEvent.roomCount: object expected");i.roomCount=u.bilibili.broadcast.message.ogv.RoomCount.fromObject(t.roomCount)}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.roomId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.roomId=i.longs===String?"0":0;n.roomCount=null}return t.roomId!=null&&t.hasOwnProperty("roomId")&&(typeof t.roomId=="number"?n.roomId=i.longs===String?String(t.roomId):t.roomId:n.roomId=i.longs===String?r.Long.prototype.toString.call(t.roomId):i.longs===Number?new r.LongBits(t.roomId.low>>>0,t.roomId.high>>>0).toNumber():t.roomId),t.roomCount!=null&&t.hasOwnProperty("roomCount")&&(n.roomCount=u.bilibili.broadcast.message.ogv.RoomCount.toObject(t.roomCount,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.message.ogv.RoomMemberCountEvent"},e}(),c.RoomCount=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.count=t.int64();break}case 2:{o.countDesc=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.ogv.RoomCount)return t;let i=new u.bilibili.broadcast.message.ogv.RoomCount;return t.count!=null&&(r.Long?(i.count=r.Long.fromValue(t.count)).unsigned=!1:typeof t.count=="string"?i.count=parseInt(t.count,10):typeof t.count=="number"?i.count=t.count:typeof t.count=="object"&&(i.count=new r.LongBits(t.count.low>>>0,t.count.high>>>0).toNumber())),t.countDesc!=null&&(i.countDesc=String(t.countDesc)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.count=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.count=i.longs===String?"0":0;n.countDesc=""}return t.count!=null&&t.hasOwnProperty("count")&&(typeof t.count=="number"?n.count=i.longs===String?String(t.count):t.count:n.count=i.longs===String?r.Long.prototype.toString.call(t.count):i.longs===Number?new r.LongBits(t.count.low>>>0,t.count.high>>>0).toNumber():t.count),t.countDesc!=null&&t.hasOwnProperty("countDesc")&&(n.countDesc=t.countDesc),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.message.ogv.RoomCount"},e}(),c.ProgressSyncEvent=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.roomId=t.int64();break}case 2:{o.seasonId=t.int64();break}case 3:{o.episodeId=t.int64();break}case 4:{o.status=t.int32();break}case 5:{o.progress=t.int64();break}case 6:{o.message=u.bilibili.broadcast.message.ogv.MessageProto.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.ogv.ProgressSyncEvent)return t;let i=new u.bilibili.broadcast.message.ogv.ProgressSyncEvent;switch(t.roomId!=null&&(r.Long?(i.roomId=r.Long.fromValue(t.roomId)).unsigned=!1:typeof t.roomId=="string"?i.roomId=parseInt(t.roomId,10):typeof t.roomId=="number"?i.roomId=t.roomId:typeof t.roomId=="object"&&(i.roomId=new r.LongBits(t.roomId.low>>>0,t.roomId.high>>>0).toNumber())),t.seasonId!=null&&(r.Long?(i.seasonId=r.Long.fromValue(t.seasonId)).unsigned=!1:typeof t.seasonId=="string"?i.seasonId=parseInt(t.seasonId,10):typeof t.seasonId=="number"?i.seasonId=t.seasonId:typeof t.seasonId=="object"&&(i.seasonId=new r.LongBits(t.seasonId.low>>>0,t.seasonId.high>>>0).toNumber())),t.episodeId!=null&&(r.Long?(i.episodeId=r.Long.fromValue(t.episodeId)).unsigned=!1:typeof t.episodeId=="string"?i.episodeId=parseInt(t.episodeId,10):typeof t.episodeId=="number"?i.episodeId=t.episodeId:typeof t.episodeId=="object"&&(i.episodeId=new r.LongBits(t.episodeId.low>>>0,t.episodeId.high>>>0).toNumber())),t.status){default:if(typeof t.status=="number"){i.status=t.status;break}break;case"Pause":case 0:i.status=0;break;case"Play":case 1:i.status=1;break;case"End":case 2:i.status=2;break}if(t.progress!=null&&(r.Long?(i.progress=r.Long.fromValue(t.progress)).unsigned=!1:typeof t.progress=="string"?i.progress=parseInt(t.progress,10):typeof t.progress=="number"?i.progress=t.progress:typeof t.progress=="object"&&(i.progress=new r.LongBits(t.progress.low>>>0,t.progress.high>>>0).toNumber())),t.message!=null){if(typeof t.message!="object")throw TypeError(".bilibili.broadcast.message.ogv.ProgressSyncEvent.message: object expected");i.message=u.bilibili.broadcast.message.ogv.MessageProto.fromObject(t.message)}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.roomId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.roomId=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.seasonId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.seasonId=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.episodeId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.episodeId=i.longs===String?"0":0;if(n.status=i.enums===String?"Pause":0,r.Long){let o=new r.Long(0,0,!1);n.progress=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.progress=i.longs===String?"0":0;n.message=null}return t.roomId!=null&&t.hasOwnProperty("roomId")&&(typeof t.roomId=="number"?n.roomId=i.longs===String?String(t.roomId):t.roomId:n.roomId=i.longs===String?r.Long.prototype.toString.call(t.roomId):i.longs===Number?new r.LongBits(t.roomId.low>>>0,t.roomId.high>>>0).toNumber():t.roomId),t.seasonId!=null&&t.hasOwnProperty("seasonId")&&(typeof t.seasonId=="number"?n.seasonId=i.longs===String?String(t.seasonId):t.seasonId:n.seasonId=i.longs===String?r.Long.prototype.toString.call(t.seasonId):i.longs===Number?new r.LongBits(t.seasonId.low>>>0,t.seasonId.high>>>0).toNumber():t.seasonId),t.episodeId!=null&&t.hasOwnProperty("episodeId")&&(typeof t.episodeId=="number"?n.episodeId=i.longs===String?String(t.episodeId):t.episodeId:n.episodeId=i.longs===String?r.Long.prototype.toString.call(t.episodeId):i.longs===Number?new r.LongBits(t.episodeId.low>>>0,t.episodeId.high>>>0).toNumber():t.episodeId),t.status!=null&&t.hasOwnProperty("status")&&(n.status=i.enums===String?u.bilibili.broadcast.message.ogv.PlayStatus[t.status]===void 0?t.status:u.bilibili.broadcast.message.ogv.PlayStatus[t.status]:t.status),t.progress!=null&&t.hasOwnProperty("progress")&&(typeof t.progress=="number"?n.progress=i.longs===String?String(t.progress):t.progress:n.progress=i.longs===String?r.Long.prototype.toString.call(t.progress):i.longs===Number?new r.LongBits(t.progress.low>>>0,t.progress.high>>>0).toNumber():t.progress),t.message!=null&&t.hasOwnProperty("message")&&(n.message=u.bilibili.broadcast.message.ogv.MessageProto.toObject(t.message,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.message.ogv.ProgressSyncEvent"},e}(),c.RoomUpdateEvent=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.roomId=t.int64();break}case 2:{o.type=t.int32();break}case 3:{o.message=u.bilibili.broadcast.message.ogv.MessageProto.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.ogv.RoomUpdateEvent)return t;let i=new u.bilibili.broadcast.message.ogv.RoomUpdateEvent;switch(t.roomId!=null&&(r.Long?(i.roomId=r.Long.fromValue(t.roomId)).unsigned=!1:typeof t.roomId=="string"?i.roomId=parseInt(t.roomId,10):typeof t.roomId=="number"?i.roomId=t.roomId:typeof t.roomId=="object"&&(i.roomId=new r.LongBits(t.roomId.low>>>0,t.roomId.high>>>0).toNumber())),t.type){default:if(typeof t.type=="number"){i.type=t.type;break}break;case"Private":case 0:i.type=0;break;case"Open":case 1:i.type=1;break}if(t.message!=null){if(typeof t.message!="object")throw TypeError(".bilibili.broadcast.message.ogv.RoomUpdateEvent.message: object expected");i.message=u.bilibili.broadcast.message.ogv.MessageProto.fromObject(t.message)}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.roomId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.roomId=i.longs===String?"0":0;n.type=i.enums===String?"Private":0,n.message=null}return t.roomId!=null&&t.hasOwnProperty("roomId")&&(typeof t.roomId=="number"?n.roomId=i.longs===String?String(t.roomId):t.roomId:n.roomId=i.longs===String?r.Long.prototype.toString.call(t.roomId):i.longs===Number?new r.LongBits(t.roomId.low>>>0,t.roomId.high>>>0).toNumber():t.roomId),t.type!=null&&t.hasOwnProperty("type")&&(n.type=i.enums===String?u.bilibili.broadcast.message.ogv.RoomType[t.type]===void 0?t.type:u.bilibili.broadcast.message.ogv.RoomType[t.type]:t.type),t.message!=null&&t.hasOwnProperty("message")&&(n.message=u.bilibili.broadcast.message.ogv.MessageProto.toObject(t.message,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.message.ogv.RoomUpdateEvent"},e}(),c.RoomDestroyEvent=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.roomId=t.int64();break}case 4:{o.message=u.bilibili.broadcast.message.ogv.MessageProto.decode(t,t.uint32());break}case 5:{o.reason=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.ogv.RoomDestroyEvent)return t;let i=new u.bilibili.broadcast.message.ogv.RoomDestroyEvent;if(t.roomId!=null&&(r.Long?(i.roomId=r.Long.fromValue(t.roomId)).unsigned=!1:typeof t.roomId=="string"?i.roomId=parseInt(t.roomId,10):typeof t.roomId=="number"?i.roomId=t.roomId:typeof t.roomId=="object"&&(i.roomId=new r.LongBits(t.roomId.low>>>0,t.roomId.high>>>0).toNumber())),t.message!=null){if(typeof t.message!="object")throw TypeError(".bilibili.broadcast.message.ogv.RoomDestroyEvent.message: object expected");i.message=u.bilibili.broadcast.message.ogv.MessageProto.fromObject(t.message)}return t.reason!=null&&(i.reason=t.reason|0),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.roomId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.roomId=i.longs===String?"0":0;n.message=null,n.reason=0}return t.roomId!=null&&t.hasOwnProperty("roomId")&&(typeof t.roomId=="number"?n.roomId=i.longs===String?String(t.roomId):t.roomId:n.roomId=i.longs===String?r.Long.prototype.toString.call(t.roomId):i.longs===Number?new r.LongBits(t.roomId.low>>>0,t.roomId.high>>>0).toNumber():t.roomId),t.message!=null&&t.hasOwnProperty("message")&&(n.message=u.bilibili.broadcast.message.ogv.MessageProto.toObject(t.message,i)),t.reason!=null&&t.hasOwnProperty("reason")&&(n.reason=t.reason),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.message.ogv.RoomDestroyEvent"},e}(),c.RoomEndEvent=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.roomId=t.int64();break}case 2:{o.message=u.bilibili.broadcast.message.ogv.MessageProto.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.ogv.RoomEndEvent)return t;let i=new u.bilibili.broadcast.message.ogv.RoomEndEvent;if(t.roomId!=null&&(r.Long?(i.roomId=r.Long.fromValue(t.roomId)).unsigned=!1:typeof t.roomId=="string"?i.roomId=parseInt(t.roomId,10):typeof t.roomId=="number"?i.roomId=t.roomId:typeof t.roomId=="object"&&(i.roomId=new r.LongBits(t.roomId.low>>>0,t.roomId.high>>>0).toNumber())),t.message!=null){if(typeof t.message!="object")throw TypeError(".bilibili.broadcast.message.ogv.RoomEndEvent.message: object expected");i.message=u.bilibili.broadcast.message.ogv.MessageProto.fromObject(t.message)}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.roomId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.roomId=i.longs===String?"0":0;n.message=null}return t.roomId!=null&&t.hasOwnProperty("roomId")&&(typeof t.roomId=="number"?n.roomId=i.longs===String?String(t.roomId):t.roomId:n.roomId=i.longs===String?r.Long.prototype.toString.call(t.roomId):i.longs===Number?new r.LongBits(t.roomId.low>>>0,t.roomId.high>>>0).toNumber():t.roomId),t.message!=null&&t.hasOwnProperty("message")&&(n.message=u.bilibili.broadcast.message.ogv.MessageProto.toObject(t.message,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.message.ogv.RoomEndEvent"},e}(),c.RoomTriggerEvent=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.mid=t.int64();break}case 2:{o.message=u.bilibili.broadcast.message.ogv.MessageProto.decode(t,t.uint32());break}case 3:{o.trigger=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.ogv.RoomTriggerEvent)return t;let i=new u.bilibili.broadcast.message.ogv.RoomTriggerEvent;if(t.mid!=null&&(r.Long?(i.mid=r.Long.fromValue(t.mid)).unsigned=!1:typeof t.mid=="string"?i.mid=parseInt(t.mid,10):typeof t.mid=="number"?i.mid=t.mid:typeof t.mid=="object"&&(i.mid=new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber())),t.message!=null){if(typeof t.message!="object")throw TypeError(".bilibili.broadcast.message.ogv.RoomTriggerEvent.message: object expected");i.message=u.bilibili.broadcast.message.ogv.MessageProto.fromObject(t.message)}switch(t.trigger){default:if(typeof t.trigger=="number"){i.trigger=t.trigger;break}break;case"DefaultTrigger":case 0:i.trigger=0;break;case"Relation":case 1:i.trigger=1;break;case"LivePointCall":case 2:i.trigger=2;break;case"MemberChange":case 3:i.trigger=3;break}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.mid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mid=i.longs===String?"0":0;n.message=null,n.trigger=i.enums===String?"DefaultTrigger":0}return t.mid!=null&&t.hasOwnProperty("mid")&&(typeof t.mid=="number"?n.mid=i.longs===String?String(t.mid):t.mid:n.mid=i.longs===String?r.Long.prototype.toString.call(t.mid):i.longs===Number?new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber():t.mid),t.message!=null&&t.hasOwnProperty("message")&&(n.message=u.bilibili.broadcast.message.ogv.MessageProto.toObject(t.message,i)),t.trigger!=null&&t.hasOwnProperty("trigger")&&(n.trigger=i.enums===String?u.bilibili.broadcast.message.ogv.TriggerType[t.trigger]===void 0?t.trigger:u.bilibili.broadcast.message.ogv.TriggerType[t.trigger]:t.trigger),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.message.ogv.RoomTriggerEvent"},e}(),c.UserInfoProto=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.mid=t.int64();break}case 2:{o.face=t.string();break}case 3:{o.nickname=t.string();break}case 4:{o.level=t.int32();break}case 5:{o.sign=t.string();break}case 6:{o.vip=u.bilibili.broadcast.message.ogv.VipProto.decode(t,t.uint32());break}case 7:{o.official=u.bilibili.broadcast.message.ogv.OfficialProto.decode(t,t.uint32());break}case 8:{o.pendant=u.bilibili.broadcast.message.ogv.PendantProto.decode(t,t.uint32());break}case 9:{o.buvid=t.string();break}case 10:{o.role=t.string();break}case 11:{o.chatBubble=u.bilibili.broadcast.message.ogv.ChatBubble.decode(t,t.uint32());break}case 12:{o.type=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.ogv.UserInfoProto)return t;let i=new u.bilibili.broadcast.message.ogv.UserInfoProto;if(t.mid!=null&&(r.Long?(i.mid=r.Long.fromValue(t.mid)).unsigned=!1:typeof t.mid=="string"?i.mid=parseInt(t.mid,10):typeof t.mid=="number"?i.mid=t.mid:typeof t.mid=="object"&&(i.mid=new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber())),t.face!=null&&(i.face=String(t.face)),t.nickname!=null&&(i.nickname=String(t.nickname)),t.level!=null&&(i.level=t.level|0),t.sign!=null&&(i.sign=String(t.sign)),t.vip!=null){if(typeof t.vip!="object")throw TypeError(".bilibili.broadcast.message.ogv.UserInfoProto.vip: object expected");i.vip=u.bilibili.broadcast.message.ogv.VipProto.fromObject(t.vip)}if(t.official!=null){if(typeof t.official!="object")throw TypeError(".bilibili.broadcast.message.ogv.UserInfoProto.official: object expected");i.official=u.bilibili.broadcast.message.ogv.OfficialProto.fromObject(t.official)}if(t.pendant!=null){if(typeof t.pendant!="object")throw TypeError(".bilibili.broadcast.message.ogv.UserInfoProto.pendant: object expected");i.pendant=u.bilibili.broadcast.message.ogv.PendantProto.fromObject(t.pendant)}if(t.buvid!=null&&(i.buvid=String(t.buvid)),t.role!=null&&(i.role=String(t.role)),t.chatBubble!=null){if(typeof t.chatBubble!="object")throw TypeError(".bilibili.broadcast.message.ogv.UserInfoProto.chatBubble: object expected");i.chatBubble=u.bilibili.broadcast.message.ogv.ChatBubble.fromObject(t.chatBubble)}return t.type!=null&&(i.type=t.type|0),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.mid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mid=i.longs===String?"0":0;n.face="",n.nickname="",n.level=0,n.sign="",n.vip=null,n.official=null,n.pendant=null,n.buvid="",n.role="",n.chatBubble=null,n.type=0}return t.mid!=null&&t.hasOwnProperty("mid")&&(typeof t.mid=="number"?n.mid=i.longs===String?String(t.mid):t.mid:n.mid=i.longs===String?r.Long.prototype.toString.call(t.mid):i.longs===Number?new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber():t.mid),t.face!=null&&t.hasOwnProperty("face")&&(n.face=t.face),t.nickname!=null&&t.hasOwnProperty("nickname")&&(n.nickname=t.nickname),t.level!=null&&t.hasOwnProperty("level")&&(n.level=t.level),t.sign!=null&&t.hasOwnProperty("sign")&&(n.sign=t.sign),t.vip!=null&&t.hasOwnProperty("vip")&&(n.vip=u.bilibili.broadcast.message.ogv.VipProto.toObject(t.vip,i)),t.official!=null&&t.hasOwnProperty("official")&&(n.official=u.bilibili.broadcast.message.ogv.OfficialProto.toObject(t.official,i)),t.pendant!=null&&t.hasOwnProperty("pendant")&&(n.pendant=u.bilibili.broadcast.message.ogv.PendantProto.toObject(t.pendant,i)),t.buvid!=null&&t.hasOwnProperty("buvid")&&(n.buvid=t.buvid),t.role!=null&&t.hasOwnProperty("role")&&(n.role=t.role),t.chatBubble!=null&&t.hasOwnProperty("chatBubble")&&(n.chatBubble=u.bilibili.broadcast.message.ogv.ChatBubble.toObject(t.chatBubble,i)),t.type!=null&&t.hasOwnProperty("type")&&(n.type=t.type),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.message.ogv.UserInfoProto"},e}(),c.ChatBubble=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.bgColor=u.bilibili.broadcast.message.ogv.BgColor.decode(t,t.uint32());break}case 2:{o.darkBgColor=u.bilibili.broadcast.message.ogv.BgColor.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.ogv.ChatBubble)return t;let i=new u.bilibili.broadcast.message.ogv.ChatBubble;if(t.bgColor!=null){if(typeof t.bgColor!="object")throw TypeError(".bilibili.broadcast.message.ogv.ChatBubble.bgColor: object expected");i.bgColor=u.bilibili.broadcast.message.ogv.BgColor.fromObject(t.bgColor)}if(t.darkBgColor!=null){if(typeof t.darkBgColor!="object")throw TypeError(".bilibili.broadcast.message.ogv.ChatBubble.darkBgColor: object expected");i.darkBgColor=u.bilibili.broadcast.message.ogv.BgColor.fromObject(t.darkBgColor)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.bgColor=null,n.darkBgColor=null),t.bgColor!=null&&t.hasOwnProperty("bgColor")&&(n.bgColor=u.bilibili.broadcast.message.ogv.BgColor.toObject(t.bgColor,i)),t.darkBgColor!=null&&t.hasOwnProperty("darkBgColor")&&(n.darkBgColor=u.bilibili.broadcast.message.ogv.BgColor.toObject(t.darkBgColor,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.message.ogv.ChatBubble"},e}(),c.ColorType=function(){let e={},l=Object.create(e);return l[e[0]="NONE"]=0,l[e[1]="GRADIENT"]=1,l[e[2]="PURE"]=2,l}(),c.BgColor=function(){function e(l){if(this.color=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.type=t.int32();break}case 2:{o.color&&o.color.length||(o.color=[]),o.color.push(t.string());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.ogv.BgColor)return t;let i=new u.bilibili.broadcast.message.ogv.BgColor;switch(t.type){default:if(typeof t.type=="number"){i.type=t.type;break}break;case"NONE":case 0:i.type=0;break;case"GRADIENT":case 1:i.type=1;break;case"PURE":case 2:i.type=2;break}if(t.color){if(!Array.isArray(t.color))throw TypeError(".bilibili.broadcast.message.ogv.BgColor.color: array expected");i.color=[];for(let n=0;n>>3){case 1:{o.content=t.string();break}case 2:{o.contentType=t.int32();break}case 3:{o.report=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.ogv.MessageProto)return t;let i=new u.bilibili.broadcast.message.ogv.MessageProto;return t.content!=null&&(i.content=String(t.content)),t.contentType!=null&&(i.contentType=t.contentType|0),t.report!=null&&(i.report=String(t.report)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.content="",n.contentType=0,n.report=""),t.content!=null&&t.hasOwnProperty("content")&&(n.content=t.content),t.contentType!=null&&t.hasOwnProperty("contentType")&&(n.contentType=t.contentType),t.report!=null&&t.hasOwnProperty("report")&&(n.report=t.report),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.message.ogv.MessageProto"},e}(),c.VipProto=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.type=t.int32();break}case 2:{o.status=t.int32();break}case 3:{o.dueDate=t.int64();break}case 4:{o.vipPayType=t.int32();break}case 5:{o.themeType=t.int32();break}case 6:{o.avatarSubscript=t.int32();break}case 7:{o.nicknameColor=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.ogv.VipProto)return t;let i=new u.bilibili.broadcast.message.ogv.VipProto;return t.type!=null&&(i.type=t.type|0),t.status!=null&&(i.status=t.status|0),t.dueDate!=null&&(r.Long?(i.dueDate=r.Long.fromValue(t.dueDate)).unsigned=!1:typeof t.dueDate=="string"?i.dueDate=parseInt(t.dueDate,10):typeof t.dueDate=="number"?i.dueDate=t.dueDate:typeof t.dueDate=="object"&&(i.dueDate=new r.LongBits(t.dueDate.low>>>0,t.dueDate.high>>>0).toNumber())),t.vipPayType!=null&&(i.vipPayType=t.vipPayType|0),t.themeType!=null&&(i.themeType=t.themeType|0),t.avatarSubscript!=null&&(i.avatarSubscript=t.avatarSubscript|0),t.nicknameColor!=null&&(i.nicknameColor=String(t.nicknameColor)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.type=0,n.status=0,r.Long){let o=new r.Long(0,0,!1);n.dueDate=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.dueDate=i.longs===String?"0":0;n.vipPayType=0,n.themeType=0,n.avatarSubscript=0,n.nicknameColor=""}return t.type!=null&&t.hasOwnProperty("type")&&(n.type=t.type),t.status!=null&&t.hasOwnProperty("status")&&(n.status=t.status),t.dueDate!=null&&t.hasOwnProperty("dueDate")&&(typeof t.dueDate=="number"?n.dueDate=i.longs===String?String(t.dueDate):t.dueDate:n.dueDate=i.longs===String?r.Long.prototype.toString.call(t.dueDate):i.longs===Number?new r.LongBits(t.dueDate.low>>>0,t.dueDate.high>>>0).toNumber():t.dueDate),t.vipPayType!=null&&t.hasOwnProperty("vipPayType")&&(n.vipPayType=t.vipPayType),t.themeType!=null&&t.hasOwnProperty("themeType")&&(n.themeType=t.themeType),t.avatarSubscript!=null&&t.hasOwnProperty("avatarSubscript")&&(n.avatarSubscript=t.avatarSubscript),t.nicknameColor!=null&&t.hasOwnProperty("nicknameColor")&&(n.nicknameColor=t.nicknameColor),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.message.ogv.VipProto"},e}(),c.OfficialProto=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.role=t.int32();break}case 2:{o.title=t.string();break}case 3:{o.desc=t.string();break}case 4:{o.type=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.ogv.OfficialProto)return t;let i=new u.bilibili.broadcast.message.ogv.OfficialProto;return t.role!=null&&(i.role=t.role|0),t.title!=null&&(i.title=String(t.title)),t.desc!=null&&(i.desc=String(t.desc)),t.type!=null&&(i.type=t.type|0),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.role=0,n.title="",n.desc="",n.type=0),t.role!=null&&t.hasOwnProperty("role")&&(n.role=t.role),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.desc!=null&&t.hasOwnProperty("desc")&&(n.desc=t.desc),t.type!=null&&t.hasOwnProperty("type")&&(n.type=t.type),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.message.ogv.OfficialProto"},e}(),c.PendantProto=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.pid=t.int32();break}case 2:{o.name=t.string();break}case 3:{o.image=t.string();break}case 4:{o.expire=t.int64();break}case 5:{o.imageEnhance=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.ogv.PendantProto)return t;let i=new u.bilibili.broadcast.message.ogv.PendantProto;return t.pid!=null&&(i.pid=t.pid|0),t.name!=null&&(i.name=String(t.name)),t.image!=null&&(i.image=String(t.image)),t.expire!=null&&(r.Long?(i.expire=r.Long.fromValue(t.expire)).unsigned=!1:typeof t.expire=="string"?i.expire=parseInt(t.expire,10):typeof t.expire=="number"?i.expire=t.expire:typeof t.expire=="object"&&(i.expire=new r.LongBits(t.expire.low>>>0,t.expire.high>>>0).toNumber())),t.imageEnhance!=null&&(i.imageEnhance=String(t.imageEnhance)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.pid=0,n.name="",n.image="",r.Long){let o=new r.Long(0,0,!1);n.expire=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.expire=i.longs===String?"0":0;n.imageEnhance=""}return t.pid!=null&&t.hasOwnProperty("pid")&&(n.pid=t.pid),t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),t.image!=null&&t.hasOwnProperty("image")&&(n.image=t.image),t.expire!=null&&t.hasOwnProperty("expire")&&(typeof t.expire=="number"?n.expire=i.longs===String?String(t.expire):t.expire:n.expire=i.longs===String?r.Long.prototype.toString.call(t.expire):i.longs===Number?new r.LongBits(t.expire.low>>>0,t.expire.high>>>0).toNumber():t.expire),t.imageEnhance!=null&&t.hasOwnProperty("imageEnhance")&&(n.imageEnhance=t.imageEnhance),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.message.ogv.PendantProto"},e}(),c.MessageEvent=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.roomId=t.int64();break}case 2:{o.msgId=t.int64();break}case 3:{o.ts=t.int64();break}case 4:{o.oid=t.int64();break}case 5:{o.domain=t.int32();break}case 6:{o.type=t.int32();break}case 7:{o.message=u.bilibili.broadcast.message.ogv.MessageProto.decode(t,t.uint32());break}case 8:{o.user=u.bilibili.broadcast.message.ogv.UserInfoProto.decode(t,t.uint32());break}case 9:{o.msgId2=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.ogv.MessageEvent)return t;let i=new u.bilibili.broadcast.message.ogv.MessageEvent;switch(t.roomId!=null&&(r.Long?(i.roomId=r.Long.fromValue(t.roomId)).unsigned=!1:typeof t.roomId=="string"?i.roomId=parseInt(t.roomId,10):typeof t.roomId=="number"?i.roomId=t.roomId:typeof t.roomId=="object"&&(i.roomId=new r.LongBits(t.roomId.low>>>0,t.roomId.high>>>0).toNumber())),t.msgId!=null&&(r.Long?(i.msgId=r.Long.fromValue(t.msgId)).unsigned=!1:typeof t.msgId=="string"?i.msgId=parseInt(t.msgId,10):typeof t.msgId=="number"?i.msgId=t.msgId:typeof t.msgId=="object"&&(i.msgId=new r.LongBits(t.msgId.low>>>0,t.msgId.high>>>0).toNumber())),t.ts!=null&&(r.Long?(i.ts=r.Long.fromValue(t.ts)).unsigned=!1:typeof t.ts=="string"?i.ts=parseInt(t.ts,10):typeof t.ts=="number"?i.ts=t.ts:typeof t.ts=="object"&&(i.ts=new r.LongBits(t.ts.low>>>0,t.ts.high>>>0).toNumber())),t.oid!=null&&(r.Long?(i.oid=r.Long.fromValue(t.oid)).unsigned=!1:typeof t.oid=="string"?i.oid=parseInt(t.oid,10):typeof t.oid=="number"?i.oid=t.oid:typeof t.oid=="object"&&(i.oid=new r.LongBits(t.oid.low>>>0,t.oid.high>>>0).toNumber())),t.domain){default:if(typeof t.domain=="number"){i.domain=t.domain;break}break;case"DefaultDomain":case 0:i.domain=0;break;case"RoomMid":case 1:i.domain=1;break;case"SystemInfo":case 2:i.domain=2;break}switch(t.type){default:if(typeof t.type=="number"){i.type=t.type;break}break;case"DefaultType":case 0:i.type=0;break;case"ChatMessage":case 1:i.type=1;break;case"SystemMessage":case 2:i.type=2;break}if(t.message!=null){if(typeof t.message!="object")throw TypeError(".bilibili.broadcast.message.ogv.MessageEvent.message: object expected");i.message=u.bilibili.broadcast.message.ogv.MessageProto.fromObject(t.message)}if(t.user!=null){if(typeof t.user!="object")throw TypeError(".bilibili.broadcast.message.ogv.MessageEvent.user: object expected");i.user=u.bilibili.broadcast.message.ogv.UserInfoProto.fromObject(t.user)}return t.msgId2!=null&&(i.msgId2=String(t.msgId2)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.roomId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.roomId=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.msgId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.msgId=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.ts=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.ts=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.oid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.oid=i.longs===String?"0":0;n.domain=i.enums===String?"DefaultDomain":0,n.type=i.enums===String?"DefaultType":0,n.message=null,n.user=null,n.msgId2=""}return t.roomId!=null&&t.hasOwnProperty("roomId")&&(typeof t.roomId=="number"?n.roomId=i.longs===String?String(t.roomId):t.roomId:n.roomId=i.longs===String?r.Long.prototype.toString.call(t.roomId):i.longs===Number?new r.LongBits(t.roomId.low>>>0,t.roomId.high>>>0).toNumber():t.roomId),t.msgId!=null&&t.hasOwnProperty("msgId")&&(typeof t.msgId=="number"?n.msgId=i.longs===String?String(t.msgId):t.msgId:n.msgId=i.longs===String?r.Long.prototype.toString.call(t.msgId):i.longs===Number?new r.LongBits(t.msgId.low>>>0,t.msgId.high>>>0).toNumber():t.msgId),t.ts!=null&&t.hasOwnProperty("ts")&&(typeof t.ts=="number"?n.ts=i.longs===String?String(t.ts):t.ts:n.ts=i.longs===String?r.Long.prototype.toString.call(t.ts):i.longs===Number?new r.LongBits(t.ts.low>>>0,t.ts.high>>>0).toNumber():t.ts),t.oid!=null&&t.hasOwnProperty("oid")&&(typeof t.oid=="number"?n.oid=i.longs===String?String(t.oid):t.oid:n.oid=i.longs===String?r.Long.prototype.toString.call(t.oid):i.longs===Number?new r.LongBits(t.oid.low>>>0,t.oid.high>>>0).toNumber():t.oid),t.domain!=null&&t.hasOwnProperty("domain")&&(n.domain=i.enums===String?u.bilibili.broadcast.message.ogv.MessageDomain[t.domain]===void 0?t.domain:u.bilibili.broadcast.message.ogv.MessageDomain[t.domain]:t.domain),t.type!=null&&t.hasOwnProperty("type")&&(n.type=i.enums===String?u.bilibili.broadcast.message.ogv.MessageType[t.type]===void 0?t.type:u.bilibili.broadcast.message.ogv.MessageType[t.type]:t.type),t.message!=null&&t.hasOwnProperty("message")&&(n.message=u.bilibili.broadcast.message.ogv.MessageProto.toObject(t.message,i)),t.user!=null&&t.hasOwnProperty("user")&&(n.user=u.bilibili.broadcast.message.ogv.UserInfoProto.toObject(t.user,i)),t.msgId2!=null&&t.hasOwnProperty("msgId2")&&(n.msgId2=t.msgId2),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.message.ogv.MessageEvent"},e}(),c.RemoveChatEvent=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.roomId=t.int64();break}case 2:{o.msgId=t.int64();break}case 3:{o.message=u.bilibili.broadcast.message.ogv.MessageProto.decode(t,t.uint32());break}case 4:{o.msgId_2=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.ogv.RemoveChatEvent)return t;let i=new u.bilibili.broadcast.message.ogv.RemoveChatEvent;if(t.roomId!=null&&(r.Long?(i.roomId=r.Long.fromValue(t.roomId)).unsigned=!1:typeof t.roomId=="string"?i.roomId=parseInt(t.roomId,10):typeof t.roomId=="number"?i.roomId=t.roomId:typeof t.roomId=="object"&&(i.roomId=new r.LongBits(t.roomId.low>>>0,t.roomId.high>>>0).toNumber())),t.msgId!=null&&(r.Long?(i.msgId=r.Long.fromValue(t.msgId)).unsigned=!1:typeof t.msgId=="string"?i.msgId=parseInt(t.msgId,10):typeof t.msgId=="number"?i.msgId=t.msgId:typeof t.msgId=="object"&&(i.msgId=new r.LongBits(t.msgId.low>>>0,t.msgId.high>>>0).toNumber())),t.message!=null){if(typeof t.message!="object")throw TypeError(".bilibili.broadcast.message.ogv.RemoveChatEvent.message: object expected");i.message=u.bilibili.broadcast.message.ogv.MessageProto.fromObject(t.message)}return t.msgId_2!=null&&(i.msgId_2=String(t.msgId_2)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.roomId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.roomId=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.msgId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.msgId=i.longs===String?"0":0;n.message=null,n.msgId_2=""}return t.roomId!=null&&t.hasOwnProperty("roomId")&&(typeof t.roomId=="number"?n.roomId=i.longs===String?String(t.roomId):t.roomId:n.roomId=i.longs===String?r.Long.prototype.toString.call(t.roomId):i.longs===Number?new r.LongBits(t.roomId.low>>>0,t.roomId.high>>>0).toNumber():t.roomId),t.msgId!=null&&t.hasOwnProperty("msgId")&&(typeof t.msgId=="number"?n.msgId=i.longs===String?String(t.msgId):t.msgId:n.msgId=i.longs===String?r.Long.prototype.toString.call(t.msgId):i.longs===Number?new r.LongBits(t.msgId.low>>>0,t.msgId.high>>>0).toNumber():t.msgId),t.message!=null&&t.hasOwnProperty("message")&&(n.message=u.bilibili.broadcast.message.ogv.MessageProto.toObject(t.message,i)),t.msgId_2!=null&&t.hasOwnProperty("msgId_2")&&(n.msgId_2=t.msgId_2),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.message.ogv.RemoveChatEvent"},e}(),c.SurpriseEvent=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.id=t.int32();break}case 2:{o.svga=t.string();break}case 3:{o.report=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.ogv.SurpriseEvent)return t;let i=new u.bilibili.broadcast.message.ogv.SurpriseEvent;return t.id!=null&&(i.id=t.id|0),t.svga!=null&&(i.svga=String(t.svga)),t.report!=null&&(i.report=String(t.report)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.id=0,n.svga="",n.report=""),t.id!=null&&t.hasOwnProperty("id")&&(n.id=t.id),t.svga!=null&&t.hasOwnProperty("svga")&&(n.svga=t.svga),t.report!=null&&t.hasOwnProperty("report")&&(n.report=t.report),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.message.ogv.SurpriseEvent"},e}(),c.EmoteEvent=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.id=t.int32();break}case 2:{o.svga=t.string();break}case 3:{o.report=t.string();break}case 4:{o.landscapeSvga=t.string();break}case 5:{o.svga_2=t.string();break}case 6:{o.landscapeSvga_2=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.ogv.EmoteEvent)return t;let i=new u.bilibili.broadcast.message.ogv.EmoteEvent;return t.id!=null&&(i.id=t.id|0),t.svga!=null&&(i.svga=String(t.svga)),t.report!=null&&(i.report=String(t.report)),t.landscapeSvga!=null&&(i.landscapeSvga=String(t.landscapeSvga)),t.svga_2!=null&&(i.svga_2=String(t.svga_2)),t.landscapeSvga_2!=null&&(i.landscapeSvga_2=String(t.landscapeSvga_2)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.id=0,n.svga="",n.report="",n.landscapeSvga="",n.svga_2="",n.landscapeSvga_2=""),t.id!=null&&t.hasOwnProperty("id")&&(n.id=t.id),t.svga!=null&&t.hasOwnProperty("svga")&&(n.svga=t.svga),t.report!=null&&t.hasOwnProperty("report")&&(n.report=t.report),t.landscapeSvga!=null&&t.hasOwnProperty("landscapeSvga")&&(n.landscapeSvga=t.landscapeSvga),t.svga_2!=null&&t.hasOwnProperty("svga_2")&&(n.svga_2=t.svga_2),t.landscapeSvga_2!=null&&t.hasOwnProperty("landscapeSvga_2")&&(n.landscapeSvga_2=t.landscapeSvga_2),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.message.ogv.EmoteEvent"},e}(),c.RoomBindChannelEvent=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.channelId=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.ogv.RoomBindChannelEvent)return t;let i=new u.bilibili.broadcast.message.ogv.RoomBindChannelEvent;return t.channelId!=null&&(i.channelId=String(t.channelId)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.channelId=""),t.channelId!=null&&t.hasOwnProperty("channelId")&&(n.channelId=t.channelId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.message.ogv.RoomBindChannelEvent"},e}(),c.RoomSatisfyChannelEvent=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.isSatisfy=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.ogv.RoomSatisfyChannelEvent)return t;let i=new u.bilibili.broadcast.message.ogv.RoomSatisfyChannelEvent;return t.isSatisfy!=null&&(i.isSatisfy=!!t.isSatisfy),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.isSatisfy=!1),t.isSatisfy!=null&&t.hasOwnProperty("isSatisfy")&&(n.isSatisfy=t.isSatisfy),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.message.ogv.RoomSatisfyChannelEvent"},e}(),c.RoomAnnouncementEvent=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.content=t.string();break}case 2:{o.version=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.ogv.RoomAnnouncementEvent)return t;let i=new u.bilibili.broadcast.message.ogv.RoomAnnouncementEvent;return t.content!=null&&(i.content=String(t.content)),t.version!=null&&(i.version=t.version|0),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.content="",n.version=0),t.content!=null&&t.hasOwnProperty("content")&&(n.content=t.content),t.version!=null&&t.hasOwnProperty("version")&&(n.version=t.version),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.message.ogv.RoomAnnouncementEvent"},e}(),c.EnterSpecialEvent=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.content=t.string();break}case 2:{o.button=t.string();break}case 3:{o.enterMid=t.int64();break}case 4:{o.enterFace=t.string();break}case 5:{o.enterNickname=t.string();break}case 6:{o.bgColor=u.bilibili.broadcast.message.ogv.BgColor.decode(t,t.uint32());break}case 7:{o.btnColor=u.bilibili.broadcast.message.ogv.BgColor.decode(t,t.uint32());break}case 8:{o.bgTextColor=t.string();break}case 9:{o.btnTextColor=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.ogv.EnterSpecialEvent)return t;let i=new u.bilibili.broadcast.message.ogv.EnterSpecialEvent;if(t.content!=null&&(i.content=String(t.content)),t.button!=null&&(i.button=String(t.button)),t.enterMid!=null&&(r.Long?(i.enterMid=r.Long.fromValue(t.enterMid)).unsigned=!1:typeof t.enterMid=="string"?i.enterMid=parseInt(t.enterMid,10):typeof t.enterMid=="number"?i.enterMid=t.enterMid:typeof t.enterMid=="object"&&(i.enterMid=new r.LongBits(t.enterMid.low>>>0,t.enterMid.high>>>0).toNumber())),t.enterFace!=null&&(i.enterFace=String(t.enterFace)),t.enterNickname!=null&&(i.enterNickname=String(t.enterNickname)),t.bgColor!=null){if(typeof t.bgColor!="object")throw TypeError(".bilibili.broadcast.message.ogv.EnterSpecialEvent.bgColor: object expected");i.bgColor=u.bilibili.broadcast.message.ogv.BgColor.fromObject(t.bgColor)}if(t.btnColor!=null){if(typeof t.btnColor!="object")throw TypeError(".bilibili.broadcast.message.ogv.EnterSpecialEvent.btnColor: object expected");i.btnColor=u.bilibili.broadcast.message.ogv.BgColor.fromObject(t.btnColor)}return t.bgTextColor!=null&&(i.bgTextColor=String(t.bgTextColor)),t.btnTextColor!=null&&(i.btnTextColor=String(t.btnTextColor)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.content="",n.button="",r.Long){let o=new r.Long(0,0,!1);n.enterMid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.enterMid=i.longs===String?"0":0;n.enterFace="",n.enterNickname="",n.bgColor=null,n.btnColor=null,n.bgTextColor="",n.btnTextColor=""}return t.content!=null&&t.hasOwnProperty("content")&&(n.content=t.content),t.button!=null&&t.hasOwnProperty("button")&&(n.button=t.button),t.enterMid!=null&&t.hasOwnProperty("enterMid")&&(typeof t.enterMid=="number"?n.enterMid=i.longs===String?String(t.enterMid):t.enterMid:n.enterMid=i.longs===String?r.Long.prototype.toString.call(t.enterMid):i.longs===Number?new r.LongBits(t.enterMid.low>>>0,t.enterMid.high>>>0).toNumber():t.enterMid),t.enterFace!=null&&t.hasOwnProperty("enterFace")&&(n.enterFace=t.enterFace),t.enterNickname!=null&&t.hasOwnProperty("enterNickname")&&(n.enterNickname=t.enterNickname),t.bgColor!=null&&t.hasOwnProperty("bgColor")&&(n.bgColor=u.bilibili.broadcast.message.ogv.BgColor.toObject(t.bgColor,i)),t.btnColor!=null&&t.hasOwnProperty("btnColor")&&(n.btnColor=u.bilibili.broadcast.message.ogv.BgColor.toObject(t.btnColor,i)),t.bgTextColor!=null&&t.hasOwnProperty("bgTextColor")&&(n.bgTextColor=t.bgTextColor),t.btnTextColor!=null&&t.hasOwnProperty("btnTextColor")&&(n.btnTextColor=t.btnTextColor),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.message.ogv.EnterSpecialEvent"},e}(),c.ClearEvent=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.msgId=t.int64();break}case 2:{o.msgId2=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.ogv.ClearEvent)return t;let i=new u.bilibili.broadcast.message.ogv.ClearEvent;return t.msgId!=null&&(r.Long?(i.msgId=r.Long.fromValue(t.msgId)).unsigned=!1:typeof t.msgId=="string"?i.msgId=parseInt(t.msgId,10):typeof t.msgId=="number"?i.msgId=t.msgId:typeof t.msgId=="object"&&(i.msgId=new r.LongBits(t.msgId.low>>>0,t.msgId.high>>>0).toNumber())),t.msgId2!=null&&(i.msgId2=String(t.msgId2)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.msgId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.msgId=i.longs===String?"0":0;n.msgId2=""}return t.msgId!=null&&t.hasOwnProperty("msgId")&&(typeof t.msgId=="number"?n.msgId=i.longs===String?String(t.msgId):t.msgId:n.msgId=i.longs===String?r.Long.prototype.toString.call(t.msgId):i.longs===Number?new r.LongBits(t.msgId.low>>>0,t.msgId.high>>>0).toNumber():t.msgId),t.msgId2!=null&&t.hasOwnProperty("msgId2")&&(n.msgId2=t.msgId2),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.message.ogv.ClearEvent"},e}(),c.TopMsgEvent=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.user=u.bilibili.broadcast.message.ogv.UserInfoProto.decode(t,t.uint32());break}case 2:{o.roomId=t.int64();break}case 3:{o.msgId=t.int64();break}case 4:{o.message=u.bilibili.broadcast.message.ogv.MessageProto.decode(t,t.uint32());break}case 5:{o.optType=t.int32();break}case 6:{o.msgId_2=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.ogv.TopMsgEvent)return t;let i=new u.bilibili.broadcast.message.ogv.TopMsgEvent;if(t.user!=null){if(typeof t.user!="object")throw TypeError(".bilibili.broadcast.message.ogv.TopMsgEvent.user: object expected");i.user=u.bilibili.broadcast.message.ogv.UserInfoProto.fromObject(t.user)}if(t.roomId!=null&&(r.Long?(i.roomId=r.Long.fromValue(t.roomId)).unsigned=!1:typeof t.roomId=="string"?i.roomId=parseInt(t.roomId,10):typeof t.roomId=="number"?i.roomId=t.roomId:typeof t.roomId=="object"&&(i.roomId=new r.LongBits(t.roomId.low>>>0,t.roomId.high>>>0).toNumber())),t.msgId!=null&&(r.Long?(i.msgId=r.Long.fromValue(t.msgId)).unsigned=!1:typeof t.msgId=="string"?i.msgId=parseInt(t.msgId,10):typeof t.msgId=="number"?i.msgId=t.msgId:typeof t.msgId=="object"&&(i.msgId=new r.LongBits(t.msgId.low>>>0,t.msgId.high>>>0).toNumber())),t.message!=null){if(typeof t.message!="object")throw TypeError(".bilibili.broadcast.message.ogv.TopMsgEvent.message: object expected");i.message=u.bilibili.broadcast.message.ogv.MessageProto.fromObject(t.message)}return t.optType!=null&&(i.optType=t.optType|0),t.msgId_2!=null&&(i.msgId_2=String(t.msgId_2)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.user=null,r.Long){let o=new r.Long(0,0,!1);n.roomId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.roomId=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.msgId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.msgId=i.longs===String?"0":0;n.message=null,n.optType=0,n.msgId_2=""}return t.user!=null&&t.hasOwnProperty("user")&&(n.user=u.bilibili.broadcast.message.ogv.UserInfoProto.toObject(t.user,i)),t.roomId!=null&&t.hasOwnProperty("roomId")&&(typeof t.roomId=="number"?n.roomId=i.longs===String?String(t.roomId):t.roomId:n.roomId=i.longs===String?r.Long.prototype.toString.call(t.roomId):i.longs===Number?new r.LongBits(t.roomId.low>>>0,t.roomId.high>>>0).toNumber():t.roomId),t.msgId!=null&&t.hasOwnProperty("msgId")&&(typeof t.msgId=="number"?n.msgId=i.longs===String?String(t.msgId):t.msgId:n.msgId=i.longs===String?r.Long.prototype.toString.call(t.msgId):i.longs===Number?new r.LongBits(t.msgId.low>>>0,t.msgId.high>>>0).toNumber():t.msgId),t.message!=null&&t.hasOwnProperty("message")&&(n.message=u.bilibili.broadcast.message.ogv.MessageProto.toObject(t.message,i)),t.optType!=null&&t.hasOwnProperty("optType")&&(n.optType=t.optType),t.msgId_2!=null&&t.hasOwnProperty("msgId_2")&&(n.msgId_2=t.msgId_2),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.message.ogv.TopMsgEvent"},e}(),c.FreyaEventBody=function(){function e(t){if(this.whiteMid=[],this.ignoreMid=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.roomId=i.int64();break}case 2:{if(a.whiteMid&&a.whiteMid.length||(a.whiteMid=[]),(y&7)===2){let s=i.uint32()+i.pos;for(;i.pos>>0,i.roomId.high>>>0).toNumber())),i.whiteMid){if(!Array.isArray(i.whiteMid))throw TypeError(".bilibili.broadcast.message.ogv.FreyaEventBody.whiteMid: array expected");n.whiteMid=[];for(let o=0;o>>0,i.whiteMid[o].high>>>0).toNumber())}if(i.ignoreMid){if(!Array.isArray(i.ignoreMid))throw TypeError(".bilibili.broadcast.message.ogv.FreyaEventBody.ignoreMid: array expected");n.ignoreMid=[];for(let o=0;o>>0,i.ignoreMid[o].high>>>0).toNumber())}if(i.memberChange!=null){if(typeof i.memberChange!="object")throw TypeError(".bilibili.broadcast.message.ogv.FreyaEventBody.memberChange: object expected");n.memberChange=u.bilibili.broadcast.message.ogv.RoomMemberChangeEvent.fromObject(i.memberChange)}if(i.progress!=null){if(typeof i.progress!="object")throw TypeError(".bilibili.broadcast.message.ogv.FreyaEventBody.progress: object expected");n.progress=u.bilibili.broadcast.message.ogv.ProgressSyncEvent.fromObject(i.progress)}if(i.roomUpdate!=null){if(typeof i.roomUpdate!="object")throw TypeError(".bilibili.broadcast.message.ogv.FreyaEventBody.roomUpdate: object expected");n.roomUpdate=u.bilibili.broadcast.message.ogv.RoomUpdateEvent.fromObject(i.roomUpdate)}if(i.message!=null){if(typeof i.message!="object")throw TypeError(".bilibili.broadcast.message.ogv.FreyaEventBody.message: object expected");n.message=u.bilibili.broadcast.message.ogv.MessageEvent.fromObject(i.message)}if(i.removeChat!=null){if(typeof i.removeChat!="object")throw TypeError(".bilibili.broadcast.message.ogv.FreyaEventBody.removeChat: object expected");n.removeChat=u.bilibili.broadcast.message.ogv.RemoveChatEvent.fromObject(i.removeChat)}if(i.roomDestroy!=null){if(typeof i.roomDestroy!="object")throw TypeError(".bilibili.broadcast.message.ogv.FreyaEventBody.roomDestroy: object expected");n.roomDestroy=u.bilibili.broadcast.message.ogv.RoomDestroyEvent.fromObject(i.roomDestroy)}if(i.roomTrigger!=null){if(typeof i.roomTrigger!="object")throw TypeError(".bilibili.broadcast.message.ogv.FreyaEventBody.roomTrigger: object expected");n.roomTrigger=u.bilibili.broadcast.message.ogv.RoomTriggerEvent.fromObject(i.roomTrigger)}if(i.surprise!=null){if(typeof i.surprise!="object")throw TypeError(".bilibili.broadcast.message.ogv.FreyaEventBody.surprise: object expected");n.surprise=u.bilibili.broadcast.message.ogv.SurpriseEvent.fromObject(i.surprise)}if(i.announcement!=null){if(typeof i.announcement!="object")throw TypeError(".bilibili.broadcast.message.ogv.FreyaEventBody.announcement: object expected");n.announcement=u.bilibili.broadcast.message.ogv.RoomAnnouncementEvent.fromObject(i.announcement)}if(i.enterSpecial!=null){if(typeof i.enterSpecial!="object")throw TypeError(".bilibili.broadcast.message.ogv.FreyaEventBody.enterSpecial: object expected");n.enterSpecial=u.bilibili.broadcast.message.ogv.EnterSpecialEvent.fromObject(i.enterSpecial)}if(i.clear!=null){if(typeof i.clear!="object")throw TypeError(".bilibili.broadcast.message.ogv.FreyaEventBody.clear: object expected");n.clear=u.bilibili.broadcast.message.ogv.ClearEvent.fromObject(i.clear)}if(i.memberCount!=null){if(typeof i.memberCount!="object")throw TypeError(".bilibili.broadcast.message.ogv.FreyaEventBody.memberCount: object expected");n.memberCount=u.bilibili.broadcast.message.ogv.RoomMemberCountEvent.fromObject(i.memberCount)}if(i.topMsg!=null){if(typeof i.topMsg!="object")throw TypeError(".bilibili.broadcast.message.ogv.FreyaEventBody.topMsg: object expected");n.topMsg=u.bilibili.broadcast.message.ogv.TopMsgEvent.fromObject(i.topMsg)}if(i.roomEnd!=null){if(typeof i.roomEnd!="object")throw TypeError(".bilibili.broadcast.message.ogv.FreyaEventBody.roomEnd: object expected");n.roomEnd=u.bilibili.broadcast.message.ogv.RoomEndEvent.fromObject(i.roomEnd)}if(i.emoteEvent!=null){if(typeof i.emoteEvent!="object")throw TypeError(".bilibili.broadcast.message.ogv.FreyaEventBody.emoteEvent: object expected");n.emoteEvent=u.bilibili.broadcast.message.ogv.EmoteEvent.fromObject(i.emoteEvent)}if(i.roomBindChannelEvent!=null){if(typeof i.roomBindChannelEvent!="object")throw TypeError(".bilibili.broadcast.message.ogv.FreyaEventBody.roomBindChannelEvent: object expected");n.roomBindChannelEvent=u.bilibili.broadcast.message.ogv.RoomBindChannelEvent.fromObject(i.roomBindChannelEvent)}if(i.roomSatisfyChannelEvent!=null){if(typeof i.roomSatisfyChannelEvent!="object")throw TypeError(".bilibili.broadcast.message.ogv.FreyaEventBody.roomSatisfyChannelEvent: object expected");n.roomSatisfyChannelEvent=u.bilibili.broadcast.message.ogv.RoomSatisfyChannelEvent.fromObject(i.roomSatisfyChannelEvent)}return i.sequenceId!=null&&(r.Long?(n.sequenceId=r.Long.fromValue(i.sequenceId)).unsigned=!1:typeof i.sequenceId=="string"?n.sequenceId=parseInt(i.sequenceId,10):typeof i.sequenceId=="number"?n.sequenceId=i.sequenceId:typeof i.sequenceId=="object"&&(n.sequenceId=new r.LongBits(i.sequenceId.low>>>0,i.sequenceId.high>>>0).toNumber())),n},e.toObject=function(i,n){n||(n={});let o={};if((n.arrays||n.defaults)&&(o.whiteMid=[],o.ignoreMid=[]),n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.roomId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.roomId=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.sequenceId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.sequenceId=n.longs===String?"0":0}if(i.roomId!=null&&i.hasOwnProperty("roomId")&&(typeof i.roomId=="number"?o.roomId=n.longs===String?String(i.roomId):i.roomId:o.roomId=n.longs===String?r.Long.prototype.toString.call(i.roomId):n.longs===Number?new r.LongBits(i.roomId.low>>>0,i.roomId.high>>>0).toNumber():i.roomId),i.whiteMid&&i.whiteMid.length){o.whiteMid=[];for(let a=0;a>>0,i.whiteMid[a].high>>>0).toNumber():i.whiteMid[a]}if(i.ignoreMid&&i.ignoreMid.length){o.ignoreMid=[];for(let a=0;a>>0,i.ignoreMid[a].high>>>0).toNumber():i.ignoreMid[a]}return i.memberChange!=null&&i.hasOwnProperty("memberChange")&&(o.memberChange=u.bilibili.broadcast.message.ogv.RoomMemberChangeEvent.toObject(i.memberChange,n),n.oneofs&&(o.event="memberChange")),i.progress!=null&&i.hasOwnProperty("progress")&&(o.progress=u.bilibili.broadcast.message.ogv.ProgressSyncEvent.toObject(i.progress,n),n.oneofs&&(o.event="progress")),i.roomUpdate!=null&&i.hasOwnProperty("roomUpdate")&&(o.roomUpdate=u.bilibili.broadcast.message.ogv.RoomUpdateEvent.toObject(i.roomUpdate,n),n.oneofs&&(o.event="roomUpdate")),i.message!=null&&i.hasOwnProperty("message")&&(o.message=u.bilibili.broadcast.message.ogv.MessageEvent.toObject(i.message,n),n.oneofs&&(o.event="message")),i.removeChat!=null&&i.hasOwnProperty("removeChat")&&(o.removeChat=u.bilibili.broadcast.message.ogv.RemoveChatEvent.toObject(i.removeChat,n),n.oneofs&&(o.event="removeChat")),i.roomDestroy!=null&&i.hasOwnProperty("roomDestroy")&&(o.roomDestroy=u.bilibili.broadcast.message.ogv.RoomDestroyEvent.toObject(i.roomDestroy,n),n.oneofs&&(o.event="roomDestroy")),i.roomTrigger!=null&&i.hasOwnProperty("roomTrigger")&&(o.roomTrigger=u.bilibili.broadcast.message.ogv.RoomTriggerEvent.toObject(i.roomTrigger,n),n.oneofs&&(o.event="roomTrigger")),i.surprise!=null&&i.hasOwnProperty("surprise")&&(o.surprise=u.bilibili.broadcast.message.ogv.SurpriseEvent.toObject(i.surprise,n),n.oneofs&&(o.event="surprise")),i.announcement!=null&&i.hasOwnProperty("announcement")&&(o.announcement=u.bilibili.broadcast.message.ogv.RoomAnnouncementEvent.toObject(i.announcement,n),n.oneofs&&(o.event="announcement")),i.enterSpecial!=null&&i.hasOwnProperty("enterSpecial")&&(o.enterSpecial=u.bilibili.broadcast.message.ogv.EnterSpecialEvent.toObject(i.enterSpecial,n),n.oneofs&&(o.event="enterSpecial")),i.clear!=null&&i.hasOwnProperty("clear")&&(o.clear=u.bilibili.broadcast.message.ogv.ClearEvent.toObject(i.clear,n),n.oneofs&&(o.event="clear")),i.memberCount!=null&&i.hasOwnProperty("memberCount")&&(o.memberCount=u.bilibili.broadcast.message.ogv.RoomMemberCountEvent.toObject(i.memberCount,n),n.oneofs&&(o.event="memberCount")),i.topMsg!=null&&i.hasOwnProperty("topMsg")&&(o.topMsg=u.bilibili.broadcast.message.ogv.TopMsgEvent.toObject(i.topMsg,n),n.oneofs&&(o.event="topMsg")),i.roomEnd!=null&&i.hasOwnProperty("roomEnd")&&(o.roomEnd=u.bilibili.broadcast.message.ogv.RoomEndEvent.toObject(i.roomEnd,n),n.oneofs&&(o.event="roomEnd")),i.emoteEvent!=null&&i.hasOwnProperty("emoteEvent")&&(o.emoteEvent=u.bilibili.broadcast.message.ogv.EmoteEvent.toObject(i.emoteEvent,n),n.oneofs&&(o.event="emoteEvent")),i.roomBindChannelEvent!=null&&i.hasOwnProperty("roomBindChannelEvent")&&(o.roomBindChannelEvent=u.bilibili.broadcast.message.ogv.RoomBindChannelEvent.toObject(i.roomBindChannelEvent,n),n.oneofs&&(o.event="roomBindChannelEvent")),i.roomSatisfyChannelEvent!=null&&i.hasOwnProperty("roomSatisfyChannelEvent")&&(o.roomSatisfyChannelEvent=u.bilibili.broadcast.message.ogv.RoomSatisfyChannelEvent.toObject(i.roomSatisfyChannelEvent,n),n.oneofs&&(o.event="roomSatisfyChannelEvent")),i.sequenceId!=null&&i.hasOwnProperty("sequenceId")&&(typeof i.sequenceId=="number"?o.sequenceId=n.longs===String?String(i.sequenceId):i.sequenceId:o.sequenceId=n.longs===String?r.Long.prototype.toString.call(i.sequenceId):n.longs===Number?new r.LongBits(i.sequenceId.low>>>0,i.sequenceId.high>>>0).toNumber():i.sequenceId),o},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.broadcast.message.ogv.FreyaEventBody"},e}(),c.LiveStartEvent=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){default:t.skipType(a&7);break}}return o},e.fromObject=function(t){return t instanceof u.bilibili.broadcast.message.ogv.LiveStartEvent?t:new u.bilibili.broadcast.message.ogv.LiveStartEvent},e.toObject=function(){return{}},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.message.ogv.LiveStartEvent"},e}(),c.LiveEndEvent=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){default:t.skipType(a&7);break}}return o},e.fromObject=function(t){return t instanceof u.bilibili.broadcast.message.ogv.LiveEndEvent?t:new u.bilibili.broadcast.message.ogv.LiveEndEvent},e.toObject=function(){return{}},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.message.ogv.LiveEndEvent"},e}(),c.LiveOnlineEvent=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.online=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.ogv.LiveOnlineEvent)return t;let i=new u.bilibili.broadcast.message.ogv.LiveOnlineEvent;return t.online!=null&&(r.Long?(i.online=r.Long.fromValue(t.online)).unsigned=!1:typeof t.online=="string"?i.online=parseInt(t.online,10):typeof t.online=="number"?i.online=t.online:typeof t.online=="object"&&(i.online=new r.LongBits(t.online.low>>>0,t.online.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(r.Long){let o=new r.Long(0,0,!1);n.online=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.online=i.longs===String?"0":0;return t.online!=null&&t.hasOwnProperty("online")&&(typeof t.online=="number"?n.online=i.longs===String?String(t.online):t.online:n.online=i.longs===String?r.Long.prototype.toString.call(t.online):i.longs===Number?new r.LongBits(t.online.low>>>0,t.online.high>>>0).toNumber():t.online),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.message.ogv.LiveOnlineEvent"},e}(),c.LiveUpdateEvent=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.afterPremiereType=t.int32();break}case 2:{o.startTime=t.int64();break}case 3:{o.id=t.string();break}case 4:{o.progress=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.ogv.LiveUpdateEvent)return t;let i=new u.bilibili.broadcast.message.ogv.LiveUpdateEvent;return t.afterPremiereType!=null&&(i.afterPremiereType=t.afterPremiereType|0),t.startTime!=null&&(r.Long?(i.startTime=r.Long.fromValue(t.startTime)).unsigned=!1:typeof t.startTime=="string"?i.startTime=parseInt(t.startTime,10):typeof t.startTime=="number"?i.startTime=t.startTime:typeof t.startTime=="object"&&(i.startTime=new r.LongBits(t.startTime.low>>>0,t.startTime.high>>>0).toNumber())),t.id!=null&&(i.id=String(t.id)),t.progress!=null&&(r.Long?(i.progress=r.Long.fromValue(t.progress)).unsigned=!1:typeof t.progress=="string"?i.progress=parseInt(t.progress,10):typeof t.progress=="number"?i.progress=t.progress:typeof t.progress=="object"&&(i.progress=new r.LongBits(t.progress.low>>>0,t.progress.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.afterPremiereType=0,r.Long){let o=new r.Long(0,0,!1);n.startTime=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.startTime=i.longs===String?"0":0;if(n.id="",r.Long){let o=new r.Long(0,0,!1);n.progress=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.progress=i.longs===String?"0":0}return t.afterPremiereType!=null&&t.hasOwnProperty("afterPremiereType")&&(n.afterPremiereType=t.afterPremiereType),t.startTime!=null&&t.hasOwnProperty("startTime")&&(typeof t.startTime=="number"?n.startTime=i.longs===String?String(t.startTime):t.startTime:n.startTime=i.longs===String?r.Long.prototype.toString.call(t.startTime):i.longs===Number?new r.LongBits(t.startTime.low>>>0,t.startTime.high>>>0).toNumber():t.startTime),t.id!=null&&t.hasOwnProperty("id")&&(n.id=t.id),t.progress!=null&&t.hasOwnProperty("progress")&&(typeof t.progress=="number"?n.progress=i.longs===String?String(t.progress):t.progress:n.progress=i.longs===String?r.Long.prototype.toString.call(t.progress):i.longs===Number?new r.LongBits(t.progress.low>>>0,t.progress.high>>>0).toNumber():t.progress),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.message.ogv.LiveUpdateEvent"},e}(),c.CMDBody=function(){function e(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.start=u.bilibili.broadcast.message.ogv.LiveStartEvent.decode(i,i.uint32());break}case 2:{a.emergency=u.bilibili.broadcast.message.ogv.LiveEndEvent.decode(i,i.uint32());break}case 3:{a.online=u.bilibili.broadcast.message.ogv.LiveOnlineEvent.decode(i,i.uint32());break}case 4:{a.update=u.bilibili.broadcast.message.ogv.LiveUpdateEvent.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},e.fromObject=function(i){if(i instanceof u.bilibili.broadcast.message.ogv.CMDBody)return i;let n=new u.bilibili.broadcast.message.ogv.CMDBody;if(i.start!=null){if(typeof i.start!="object")throw TypeError(".bilibili.broadcast.message.ogv.CMDBody.start: object expected");n.start=u.bilibili.broadcast.message.ogv.LiveStartEvent.fromObject(i.start)}if(i.emergency!=null){if(typeof i.emergency!="object")throw TypeError(".bilibili.broadcast.message.ogv.CMDBody.emergency: object expected");n.emergency=u.bilibili.broadcast.message.ogv.LiveEndEvent.fromObject(i.emergency)}if(i.online!=null){if(typeof i.online!="object")throw TypeError(".bilibili.broadcast.message.ogv.CMDBody.online: object expected");n.online=u.bilibili.broadcast.message.ogv.LiveOnlineEvent.fromObject(i.online)}if(i.update!=null){if(typeof i.update!="object")throw TypeError(".bilibili.broadcast.message.ogv.CMDBody.update: object expected");n.update=u.bilibili.broadcast.message.ogv.LiveUpdateEvent.fromObject(i.update)}return n},e.toObject=function(i,n){n||(n={});let o={};return i.start!=null&&i.hasOwnProperty("start")&&(o.start=u.bilibili.broadcast.message.ogv.LiveStartEvent.toObject(i.start,n),n.oneofs&&(o.event="start")),i.emergency!=null&&i.hasOwnProperty("emergency")&&(o.emergency=u.bilibili.broadcast.message.ogv.LiveEndEvent.toObject(i.emergency,n),n.oneofs&&(o.event="emergency")),i.online!=null&&i.hasOwnProperty("online")&&(o.online=u.bilibili.broadcast.message.ogv.LiveOnlineEvent.toObject(i.online,n),n.oneofs&&(o.event="online")),i.update!=null&&i.hasOwnProperty("update")&&(o.update=u.bilibili.broadcast.message.ogv.LiveUpdateEvent.toObject(i.update,n),n.oneofs&&(o.event="update")),o},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.broadcast.message.ogv.CMDBody"},e}(),c}(),p.pogo=function(){let c={};return c.Live=function(){function e(l,t,i){b.rpc.Service.call(this,l,t,i)}return(e.prototype=Object.create(b.rpc.Service.prototype)).constructor=e,e.create=function(t,i,n){return new this(t,i,n)},Object.defineProperty(e.prototype.dmEvent=function l(t,i){return this.rpcCall(l,u.google.protobuf.Empty,u.bilibili.broadcast.message.pogo.DmEventReply,t,i)},"name",{value:"DmEvent"}),e}(),c.DmType=function(){let e={},l=Object.create(e);return l[e[0]="DefaultType"]=0,l[e[1]="EnterRoom"]=1,l[e[2]="LiveOpen"]=2,l[e[3]="LiveClose"]=3,l[e[4]="RoomTopUser"]=4,l[e[5]="TreasureMsg"]=5,l[e[6]="ComboMsg"]=6,l[e[7]="FollowMsg"]=7,l[e[8]="ShareMsg"]=8,l[e[9]="HotMsg"]=9,l[e[10]="RankMsg"]=10,l[e[11]="LiveKeyMsg"]=11,l}(),c.MessageItemType=function(){let e={},l=Object.create(e);return l[e[0]="Text"]=0,l[e[1]="Icon"]=1,l[e[2]="User"]=2,l}(),c.UserType=function(){let e={},l=Object.create(e);return l[e[0]="Other"]=0,l[e[1]="New"]=1,l[e[2]="Fans"]=2,l[e[3]="Donate"]=3,l}(),c.DmEventReply=function(){function e(l){if(this.items=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.items&&o.items.length||(o.items=[]),o.items.push(u.bilibili.broadcast.message.pogo.DmItem.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.pogo.DmEventReply)return t;let i=new u.bilibili.broadcast.message.pogo.DmEventReply;if(t.items){if(!Array.isArray(t.items))throw TypeError(".bilibili.broadcast.message.pogo.DmEventReply.items: array expected");i.items=[];for(let n=0;n>>3){case 1:{o.cmd=t.int32();break}case 2:{o.author=u.bilibili.broadcast.message.pogo.Author.decode(t,t.uint32());break}case 3:{o.roomId=t.int64();break}case 4:{o.ctime=t.int64();break}case 5:{o.style=u.bilibili.broadcast.message.pogo.Style.decode(t,t.uint32());break}case 6:{o.msgId=t.string();break}case 7:{o.liveKey=t.string();break}case 8:{o.topUser=u.bilibili.broadcast.message.pogo.TopUser.decode(t,t.uint32());break}case 9:{o.msgList&&o.msgList.length||(o.msgList=[]),o.msgList.push(u.bilibili.broadcast.message.pogo.MessageItem.decode(t,t.uint32()));break}case 11:{o.treasureMsg=u.bilibili.broadcast.message.pogo.TreasureMessage.decode(t,t.uint32());break}case 12:{o.rank=u.bilibili.broadcast.message.pogo.Rank.decode(t,t.uint32());break}case 13:{o.combo=u.bilibili.broadcast.message.pogo.Combo.decode(t,t.uint32());break}case 14:{o.enter=u.bilibili.broadcast.message.pogo.EnterRoomMsg.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.pogo.DmItem)return t;let i=new u.bilibili.broadcast.message.pogo.DmItem;switch(t.cmd){default:if(typeof t.cmd=="number"){i.cmd=t.cmd;break}break;case"DefaultType":case 0:i.cmd=0;break;case"EnterRoom":case 1:i.cmd=1;break;case"LiveOpen":case 2:i.cmd=2;break;case"LiveClose":case 3:i.cmd=3;break;case"RoomTopUser":case 4:i.cmd=4;break;case"TreasureMsg":case 5:i.cmd=5;break;case"ComboMsg":case 6:i.cmd=6;break;case"FollowMsg":case 7:i.cmd=7;break;case"ShareMsg":case 8:i.cmd=8;break;case"HotMsg":case 9:i.cmd=9;break;case"RankMsg":case 10:i.cmd=10;break;case"LiveKeyMsg":case 11:i.cmd=11;break}if(t.author!=null){if(typeof t.author!="object")throw TypeError(".bilibili.broadcast.message.pogo.DmItem.author: object expected");i.author=u.bilibili.broadcast.message.pogo.Author.fromObject(t.author)}if(t.roomId!=null&&(r.Long?(i.roomId=r.Long.fromValue(t.roomId)).unsigned=!1:typeof t.roomId=="string"?i.roomId=parseInt(t.roomId,10):typeof t.roomId=="number"?i.roomId=t.roomId:typeof t.roomId=="object"&&(i.roomId=new r.LongBits(t.roomId.low>>>0,t.roomId.high>>>0).toNumber())),t.ctime!=null&&(r.Long?(i.ctime=r.Long.fromValue(t.ctime)).unsigned=!1:typeof t.ctime=="string"?i.ctime=parseInt(t.ctime,10):typeof t.ctime=="number"?i.ctime=t.ctime:typeof t.ctime=="object"&&(i.ctime=new r.LongBits(t.ctime.low>>>0,t.ctime.high>>>0).toNumber())),t.style!=null){if(typeof t.style!="object")throw TypeError(".bilibili.broadcast.message.pogo.DmItem.style: object expected");i.style=u.bilibili.broadcast.message.pogo.Style.fromObject(t.style)}if(t.msgId!=null&&(i.msgId=String(t.msgId)),t.liveKey!=null&&(i.liveKey=String(t.liveKey)),t.topUser!=null){if(typeof t.topUser!="object")throw TypeError(".bilibili.broadcast.message.pogo.DmItem.topUser: object expected");i.topUser=u.bilibili.broadcast.message.pogo.TopUser.fromObject(t.topUser)}if(t.msgList){if(!Array.isArray(t.msgList))throw TypeError(".bilibili.broadcast.message.pogo.DmItem.msgList: array expected");i.msgList=[];for(let n=0;n>>0,t.roomId.high>>>0).toNumber():t.roomId),t.ctime!=null&&t.hasOwnProperty("ctime")&&(typeof t.ctime=="number"?n.ctime=i.longs===String?String(t.ctime):t.ctime:n.ctime=i.longs===String?r.Long.prototype.toString.call(t.ctime):i.longs===Number?new r.LongBits(t.ctime.low>>>0,t.ctime.high>>>0).toNumber():t.ctime),t.style!=null&&t.hasOwnProperty("style")&&(n.style=u.bilibili.broadcast.message.pogo.Style.toObject(t.style,i)),t.msgId!=null&&t.hasOwnProperty("msgId")&&(n.msgId=t.msgId),t.liveKey!=null&&t.hasOwnProperty("liveKey")&&(n.liveKey=t.liveKey),t.topUser!=null&&t.hasOwnProperty("topUser")&&(n.topUser=u.bilibili.broadcast.message.pogo.TopUser.toObject(t.topUser,i)),t.msgList&&t.msgList.length){n.msgList=[];for(let o=0;o>>3){case 1:{o.content=t.string();break}case 2:{o.oid=t.int64();break}case 3:{o.style=u.bilibili.broadcast.message.pogo.Style.decode(t,t.uint32());break}case 4:{o.itemType=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.pogo.MessageItem)return t;let i=new u.bilibili.broadcast.message.pogo.MessageItem;if(t.content!=null&&(i.content=String(t.content)),t.oid!=null&&(r.Long?(i.oid=r.Long.fromValue(t.oid)).unsigned=!1:typeof t.oid=="string"?i.oid=parseInt(t.oid,10):typeof t.oid=="number"?i.oid=t.oid:typeof t.oid=="object"&&(i.oid=new r.LongBits(t.oid.low>>>0,t.oid.high>>>0).toNumber())),t.style!=null){if(typeof t.style!="object")throw TypeError(".bilibili.broadcast.message.pogo.MessageItem.style: object expected");i.style=u.bilibili.broadcast.message.pogo.Style.fromObject(t.style)}switch(t.itemType){default:if(typeof t.itemType=="number"){i.itemType=t.itemType;break}break;case"Text":case 0:i.itemType=0;break;case"Icon":case 1:i.itemType=1;break;case"User":case 2:i.itemType=2;break}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.content="",r.Long){let o=new r.Long(0,0,!1);n.oid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.oid=i.longs===String?"0":0;n.style=null,n.itemType=i.enums===String?"Text":0}return t.content!=null&&t.hasOwnProperty("content")&&(n.content=t.content),t.oid!=null&&t.hasOwnProperty("oid")&&(typeof t.oid=="number"?n.oid=i.longs===String?String(t.oid):t.oid:n.oid=i.longs===String?r.Long.prototype.toString.call(t.oid):i.longs===Number?new r.LongBits(t.oid.low>>>0,t.oid.high>>>0).toNumber():t.oid),t.style!=null&&t.hasOwnProperty("style")&&(n.style=u.bilibili.broadcast.message.pogo.Style.toObject(t.style,i)),t.itemType!=null&&t.hasOwnProperty("itemType")&&(n.itemType=i.enums===String?u.bilibili.broadcast.message.pogo.MessageItemType[t.itemType]===void 0?t.itemType:u.bilibili.broadcast.message.pogo.MessageItemType[t.itemType]:t.itemType),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.message.pogo.MessageItem"},e}(),c.Author=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.mid=t.int64();break}case 2:{o.name=t.string();break}case 3:{o.rank=t.int32();break}case 4:{o.avatar=t.string();break}case 5:{o.roomAdminLevel=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.pogo.Author)return t;let i=new u.bilibili.broadcast.message.pogo.Author;return t.mid!=null&&(r.Long?(i.mid=r.Long.fromValue(t.mid)).unsigned=!1:typeof t.mid=="string"?i.mid=parseInt(t.mid,10):typeof t.mid=="number"?i.mid=t.mid:typeof t.mid=="object"&&(i.mid=new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber())),t.name!=null&&(i.name=String(t.name)),t.rank!=null&&(i.rank=t.rank|0),t.avatar!=null&&(i.avatar=String(t.avatar)),t.roomAdminLevel!=null&&(i.roomAdminLevel=t.roomAdminLevel|0),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.mid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mid=i.longs===String?"0":0;n.name="",n.rank=0,n.avatar="",n.roomAdminLevel=0}return t.mid!=null&&t.hasOwnProperty("mid")&&(typeof t.mid=="number"?n.mid=i.longs===String?String(t.mid):t.mid:n.mid=i.longs===String?r.Long.prototype.toString.call(t.mid):i.longs===Number?new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber():t.mid),t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),t.rank!=null&&t.hasOwnProperty("rank")&&(n.rank=t.rank),t.avatar!=null&&t.hasOwnProperty("avatar")&&(n.avatar=t.avatar),t.roomAdminLevel!=null&&t.hasOwnProperty("roomAdminLevel")&&(n.roomAdminLevel=t.roomAdminLevel),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.message.pogo.Author"},e}(),c.TreasureMessage=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.id=t.int64();break}case 2:{o.num=t.int64();break}case 3:{o.name=t.string();break}case 4:{o.icon=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.pogo.TreasureMessage)return t;let i=new u.bilibili.broadcast.message.pogo.TreasureMessage;return t.id!=null&&(r.Long?(i.id=r.Long.fromValue(t.id)).unsigned=!1:typeof t.id=="string"?i.id=parseInt(t.id,10):typeof t.id=="number"?i.id=t.id:typeof t.id=="object"&&(i.id=new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber())),t.num!=null&&(r.Long?(i.num=r.Long.fromValue(t.num)).unsigned=!1:typeof t.num=="string"?i.num=parseInt(t.num,10):typeof t.num=="number"?i.num=t.num:typeof t.num=="object"&&(i.num=new r.LongBits(t.num.low>>>0,t.num.high>>>0).toNumber())),t.name!=null&&(i.name=String(t.name)),t.icon!=null&&(i.icon=String(t.icon)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.id=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.id=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.num=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.num=i.longs===String?"0":0;n.name="",n.icon=""}return t.id!=null&&t.hasOwnProperty("id")&&(typeof t.id=="number"?n.id=i.longs===String?String(t.id):t.id:n.id=i.longs===String?r.Long.prototype.toString.call(t.id):i.longs===Number?new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber():t.id),t.num!=null&&t.hasOwnProperty("num")&&(typeof t.num=="number"?n.num=i.longs===String?String(t.num):t.num:n.num=i.longs===String?r.Long.prototype.toString.call(t.num):i.longs===Number?new r.LongBits(t.num.low>>>0,t.num.high>>>0).toNumber():t.num),t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),t.icon!=null&&t.hasOwnProperty("icon")&&(n.icon=t.icon),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.message.pogo.TreasureMessage"},e}(),c.EnterRoomMsg=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.userType=t.int32();break}case 2:{o.num=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.pogo.EnterRoomMsg)return t;let i=new u.bilibili.broadcast.message.pogo.EnterRoomMsg;switch(t.userType){default:if(typeof t.userType=="number"){i.userType=t.userType;break}break;case"Other":case 0:i.userType=0;break;case"New":case 1:i.userType=1;break;case"Fans":case 2:i.userType=2;break;case"Donate":case 3:i.userType=3;break}return t.num!=null&&(r.Long?(i.num=r.Long.fromValue(t.num)).unsigned=!1:typeof t.num=="string"?i.num=parseInt(t.num,10):typeof t.num=="number"?i.num=t.num:typeof t.num=="object"&&(i.num=new r.LongBits(t.num.low>>>0,t.num.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(n.userType=i.enums===String?"Other":0,r.Long){let o=new r.Long(0,0,!1);n.num=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.num=i.longs===String?"0":0;return t.userType!=null&&t.hasOwnProperty("userType")&&(n.userType=i.enums===String?u.bilibili.broadcast.message.pogo.UserType[t.userType]===void 0?t.userType:u.bilibili.broadcast.message.pogo.UserType[t.userType]:t.userType),t.num!=null&&t.hasOwnProperty("num")&&(typeof t.num=="number"?n.num=i.longs===String?String(t.num):t.num:n.num=i.longs===String?r.Long.prototype.toString.call(t.num):i.longs===Number?new r.LongBits(t.num.low>>>0,t.num.high>>>0).toNumber():t.num),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.message.pogo.EnterRoomMsg"},e}(),c.Combo=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.comboId=t.string();break}case 2:{o.treasure=u.bilibili.broadcast.message.pogo.TreasureMessage.decode(t,t.uint32());break}case 3:{o.animation=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.pogo.Combo)return t;let i=new u.bilibili.broadcast.message.pogo.Combo;if(t.comboId!=null&&(i.comboId=String(t.comboId)),t.treasure!=null){if(typeof t.treasure!="object")throw TypeError(".bilibili.broadcast.message.pogo.Combo.treasure: object expected");i.treasure=u.bilibili.broadcast.message.pogo.TreasureMessage.fromObject(t.treasure)}return t.animation!=null&&(i.animation=String(t.animation)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.comboId="",n.treasure=null,n.animation=""),t.comboId!=null&&t.hasOwnProperty("comboId")&&(n.comboId=t.comboId),t.treasure!=null&&t.hasOwnProperty("treasure")&&(n.treasure=u.bilibili.broadcast.message.pogo.TreasureMessage.toObject(t.treasure,i)),t.animation!=null&&t.hasOwnProperty("animation")&&(n.animation=t.animation),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.message.pogo.Combo"},e}(),c.Style=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.color=t.string();break}case 2:{o.bgColor=t.string();break}case 3:{o.isBold=t.bool();break}case 4:{o.size=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.pogo.Style)return t;let i=new u.bilibili.broadcast.message.pogo.Style;return t.color!=null&&(i.color=String(t.color)),t.bgColor!=null&&(i.bgColor=String(t.bgColor)),t.isBold!=null&&(i.isBold=!!t.isBold),t.size!=null&&(i.size=t.size|0),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.color="",n.bgColor="",n.isBold=!1,n.size=0),t.color!=null&&t.hasOwnProperty("color")&&(n.color=t.color),t.bgColor!=null&&t.hasOwnProperty("bgColor")&&(n.bgColor=t.bgColor),t.isBold!=null&&t.hasOwnProperty("isBold")&&(n.isBold=t.isBold),t.size!=null&&t.hasOwnProperty("size")&&(n.size=t.size),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.message.pogo.Style"},e}(),c.TopUser=function(){function e(l){if(this.users=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.total=t.string();break}case 2:{o.users&&o.users.length||(o.users=[]),o.users.push(u.bilibili.broadcast.message.pogo.Author.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.pogo.TopUser)return t;let i=new u.bilibili.broadcast.message.pogo.TopUser;if(t.total!=null&&(i.total=String(t.total)),t.users){if(!Array.isArray(t.users))throw TypeError(".bilibili.broadcast.message.pogo.TopUser.users: array expected");i.users=[];for(let n=0;n>>3){case 1:{o.rank=t.sint64();break}case 2:{o.score=t.sint64();break}case 3:{o.diff=t.sint64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.pogo.Rank)return t;let i=new u.bilibili.broadcast.message.pogo.Rank;return t.rank!=null&&(r.Long?(i.rank=r.Long.fromValue(t.rank)).unsigned=!1:typeof t.rank=="string"?i.rank=parseInt(t.rank,10):typeof t.rank=="number"?i.rank=t.rank:typeof t.rank=="object"&&(i.rank=new r.LongBits(t.rank.low>>>0,t.rank.high>>>0).toNumber())),t.score!=null&&(r.Long?(i.score=r.Long.fromValue(t.score)).unsigned=!1:typeof t.score=="string"?i.score=parseInt(t.score,10):typeof t.score=="number"?i.score=t.score:typeof t.score=="object"&&(i.score=new r.LongBits(t.score.low>>>0,t.score.high>>>0).toNumber())),t.diff!=null&&(r.Long?(i.diff=r.Long.fromValue(t.diff)).unsigned=!1:typeof t.diff=="string"?i.diff=parseInt(t.diff,10):typeof t.diff=="number"?i.diff=t.diff:typeof t.diff=="object"&&(i.diff=new r.LongBits(t.diff.low>>>0,t.diff.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.rank=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.rank=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.score=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.score=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.diff=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.diff=i.longs===String?"0":0}return t.rank!=null&&t.hasOwnProperty("rank")&&(typeof t.rank=="number"?n.rank=i.longs===String?String(t.rank):t.rank:n.rank=i.longs===String?r.Long.prototype.toString.call(t.rank):i.longs===Number?new r.LongBits(t.rank.low>>>0,t.rank.high>>>0).toNumber():t.rank),t.score!=null&&t.hasOwnProperty("score")&&(typeof t.score=="number"?n.score=i.longs===String?String(t.score):t.score:n.score=i.longs===String?r.Long.prototype.toString.call(t.score):i.longs===Number?new r.LongBits(t.score.low>>>0,t.score.high>>>0).toNumber():t.score),t.diff!=null&&t.hasOwnProperty("diff")&&(typeof t.diff=="number"?n.diff=i.longs===String?String(t.diff):t.diff:n.diff=i.longs===String?r.Long.prototype.toString.call(t.diff):i.longs===Number?new r.LongBits(t.diff.low>>>0,t.diff.high>>>0).toNumber():t.diff),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.message.pogo.Rank"},e}(),c}(),p.projxt=function(){let c={};return c.Notification=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.msgId=t.int64();break}case 2:{o.msgType=t.int32();break}case 3:{o.sender=t.int64();break}case 4:{o.body=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.projxt.Notification)return t;let i=new u.bilibili.broadcast.message.projxt.Notification;return t.msgId!=null&&(r.Long?(i.msgId=r.Long.fromValue(t.msgId)).unsigned=!1:typeof t.msgId=="string"?i.msgId=parseInt(t.msgId,10):typeof t.msgId=="number"?i.msgId=t.msgId:typeof t.msgId=="object"&&(i.msgId=new r.LongBits(t.msgId.low>>>0,t.msgId.high>>>0).toNumber())),t.msgType!=null&&(i.msgType=t.msgType|0),t.sender!=null&&(r.Long?(i.sender=r.Long.fromValue(t.sender)).unsigned=!1:typeof t.sender=="string"?i.sender=parseInt(t.sender,10):typeof t.sender=="number"?i.sender=t.sender:typeof t.sender=="object"&&(i.sender=new r.LongBits(t.sender.low>>>0,t.sender.high>>>0).toNumber())),t.body!=null&&(i.body=String(t.body)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.msgId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.msgId=i.longs===String?"0":0;if(n.msgType=0,r.Long){let o=new r.Long(0,0,!1);n.sender=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.sender=i.longs===String?"0":0;n.body=""}return t.msgId!=null&&t.hasOwnProperty("msgId")&&(typeof t.msgId=="number"?n.msgId=i.longs===String?String(t.msgId):t.msgId:n.msgId=i.longs===String?r.Long.prototype.toString.call(t.msgId):i.longs===Number?new r.LongBits(t.msgId.low>>>0,t.msgId.high>>>0).toNumber():t.msgId),t.msgType!=null&&t.hasOwnProperty("msgType")&&(n.msgType=t.msgType),t.sender!=null&&t.hasOwnProperty("sender")&&(typeof t.sender=="number"?n.sender=i.longs===String?String(t.sender):t.sender:n.sender=i.longs===String?r.Long.prototype.toString.call(t.sender):i.longs===Number?new r.LongBits(t.sender.low>>>0,t.sender.high>>>0).toNumber():t.sender),t.body!=null&&t.hasOwnProperty("body")&&(n.body=t.body),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.message.projxt.Notification"},e}(),c.Notify=function(){function e(l,t,i){b.rpc.Service.call(this,l,t,i)}return(e.prototype=Object.create(b.rpc.Service.prototype)).constructor=e,e.create=function(t,i,n){return new this(t,i,n)},Object.defineProperty(e.prototype.notify=function l(t,i){return this.rpcCall(l,u.google.protobuf.Empty,u.bilibili.broadcast.message.projxt.Notification,t,i)},"name",{value:"Notify"}),e}(),c}(),p.push=function(){let c={};return c.PushUpStream=function(){function e(l,t,i){b.rpc.Service.call(this,l,t,i)}return(e.prototype=Object.create(b.rpc.Service.prototype)).constructor=e,e.create=function(t,i,n){return new this(t,i,n)},Object.defineProperty(e.prototype.pushUpStream=function l(t,i){return this.rpcCall(l,u.bilibili.broadcast.message.push.UpStreamMessage,u.google.protobuf.Empty,t,i)},"name",{value:"PushUpStream"}),e}(),c.UpStreamMessage=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.taskid=t.string();break}case 2:{o.type=t.int32();break}case 3:{o.extra=t.string();break}case 4:{o.timestamp=t.int64();break}case 5:{o.job=t.int64();break}case 6:{o.msgSource=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.push.UpStreamMessage)return t;let i=new u.bilibili.broadcast.message.push.UpStreamMessage;switch(t.taskid!=null&&(i.taskid=String(t.taskid)),t.type){default:if(typeof t.type=="number"){i.type=t.type;break}break;case"TYPE_UNKNOWN":case 0:i.type=0;break;case"TYPE_ACK":case 1:i.type=1;break;case"TYPE_FILTER":case 2:i.type=2;break;case"TYPE_SHOW":case 3:i.type=3;break;case"TYPE_CLICK":case 4:i.type=4;break}return t.extra!=null&&(i.extra=String(t.extra)),t.timestamp!=null&&(r.Long?(i.timestamp=r.Long.fromValue(t.timestamp)).unsigned=!1:typeof t.timestamp=="string"?i.timestamp=parseInt(t.timestamp,10):typeof t.timestamp=="number"?i.timestamp=t.timestamp:typeof t.timestamp=="object"&&(i.timestamp=new r.LongBits(t.timestamp.low>>>0,t.timestamp.high>>>0).toNumber())),t.job!=null&&(r.Long?(i.job=r.Long.fromValue(t.job)).unsigned=!1:typeof t.job=="string"?i.job=parseInt(t.job,10):typeof t.job=="number"?i.job=t.job:typeof t.job=="object"&&(i.job=new r.LongBits(t.job.low>>>0,t.job.high>>>0).toNumber())),t.msgSource!=null&&(i.msgSource=String(t.msgSource)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.taskid="",n.type=i.enums===String?"TYPE_UNKNOWN":0,n.extra="",r.Long){let o=new r.Long(0,0,!1);n.timestamp=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.timestamp=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.job=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.job=i.longs===String?"0":0;n.msgSource=""}return t.taskid!=null&&t.hasOwnProperty("taskid")&&(n.taskid=t.taskid),t.type!=null&&t.hasOwnProperty("type")&&(n.type=i.enums===String?u.bilibili.broadcast.message.push.UpStreamMessage.Type[t.type]===void 0?t.type:u.bilibili.broadcast.message.push.UpStreamMessage.Type[t.type]:t.type),t.extra!=null&&t.hasOwnProperty("extra")&&(n.extra=t.extra),t.timestamp!=null&&t.hasOwnProperty("timestamp")&&(typeof t.timestamp=="number"?n.timestamp=i.longs===String?String(t.timestamp):t.timestamp:n.timestamp=i.longs===String?r.Long.prototype.toString.call(t.timestamp):i.longs===Number?new r.LongBits(t.timestamp.low>>>0,t.timestamp.high>>>0).toNumber():t.timestamp),t.job!=null&&t.hasOwnProperty("job")&&(typeof t.job=="number"?n.job=i.longs===String?String(t.job):t.job:n.job=i.longs===String?r.Long.prototype.toString.call(t.job):i.longs===Number?new r.LongBits(t.job.low>>>0,t.job.high>>>0).toNumber():t.job),t.msgSource!=null&&t.hasOwnProperty("msgSource")&&(n.msgSource=t.msgSource),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.message.push.UpStreamMessage"},e.Type=function(){let l={},t=Object.create(l);return t[l[0]="TYPE_UNKNOWN"]=0,t[l[1]="TYPE_ACK"]=1,t[l[2]="TYPE_FILTER"]=2,t[l[3]="TYPE_SHOW"]=3,t[l[4]="TYPE_CLICK"]=4,t}(),e}(),c}(),p.reply=function(){let c={};return c.Reply=function(){function e(l,t,i){b.rpc.Service.call(this,l,t,i)}return(e.prototype=Object.create(b.rpc.Service.prototype)).constructor=e,e.create=function(t,i,n){return new this(t,i,n)},Object.defineProperty(e.prototype.subjectNotice=function l(t,i){return this.rpcCall(l,u.google.protobuf.Empty,u.bilibili.broadcast.message.reply.SubjectNoticeResp,t,i)},"name",{value:"SubjectNotice"}),Object.defineProperty(e.prototype.subjectReplyInsertion=function l(t,i){return this.rpcCall(l,u.google.protobuf.Empty,u.bilibili.broadcast.message.reply.SubjectReplyInsertionResp,t,i)},"name",{value:"SubjectReplyInsertion"}),Object.defineProperty(e.prototype.subjectInteraction=function l(t,i){return this.rpcCall(l,u.google.protobuf.Empty,u.bilibili.broadcast.message.reply.SubjectInteractionResp,t,i)},"name",{value:"SubjectInteraction"}),e}(),c.SubjectNoticeResp=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.oid=t.int64();break}case 2:{o.type=t.int64();break}case 3:{o.title=t.string();break}case 4:{o.link=t.string();break}case 5:{o.timestamp=t.int64();break}case 6:{o.rpid=t.int64();break}case 7:{o.interactionType=t.string();break}case 8:{o.hoverDuration=t.int64();break}case 9:{o.rootRpid=t.int64();break}case 10:{o.interactionScene=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.reply.SubjectNoticeResp)return t;let i=new u.bilibili.broadcast.message.reply.SubjectNoticeResp;return t.oid!=null&&(r.Long?(i.oid=r.Long.fromValue(t.oid)).unsigned=!1:typeof t.oid=="string"?i.oid=parseInt(t.oid,10):typeof t.oid=="number"?i.oid=t.oid:typeof t.oid=="object"&&(i.oid=new r.LongBits(t.oid.low>>>0,t.oid.high>>>0).toNumber())),t.type!=null&&(r.Long?(i.type=r.Long.fromValue(t.type)).unsigned=!1:typeof t.type=="string"?i.type=parseInt(t.type,10):typeof t.type=="number"?i.type=t.type:typeof t.type=="object"&&(i.type=new r.LongBits(t.type.low>>>0,t.type.high>>>0).toNumber())),t.title!=null&&(i.title=String(t.title)),t.link!=null&&(i.link=String(t.link)),t.timestamp!=null&&(r.Long?(i.timestamp=r.Long.fromValue(t.timestamp)).unsigned=!1:typeof t.timestamp=="string"?i.timestamp=parseInt(t.timestamp,10):typeof t.timestamp=="number"?i.timestamp=t.timestamp:typeof t.timestamp=="object"&&(i.timestamp=new r.LongBits(t.timestamp.low>>>0,t.timestamp.high>>>0).toNumber())),t.rpid!=null&&(r.Long?(i.rpid=r.Long.fromValue(t.rpid)).unsigned=!1:typeof t.rpid=="string"?i.rpid=parseInt(t.rpid,10):typeof t.rpid=="number"?i.rpid=t.rpid:typeof t.rpid=="object"&&(i.rpid=new r.LongBits(t.rpid.low>>>0,t.rpid.high>>>0).toNumber())),t.interactionType!=null&&(i.interactionType=String(t.interactionType)),t.hoverDuration!=null&&(r.Long?(i.hoverDuration=r.Long.fromValue(t.hoverDuration)).unsigned=!1:typeof t.hoverDuration=="string"?i.hoverDuration=parseInt(t.hoverDuration,10):typeof t.hoverDuration=="number"?i.hoverDuration=t.hoverDuration:typeof t.hoverDuration=="object"&&(i.hoverDuration=new r.LongBits(t.hoverDuration.low>>>0,t.hoverDuration.high>>>0).toNumber())),t.rootRpid!=null&&(r.Long?(i.rootRpid=r.Long.fromValue(t.rootRpid)).unsigned=!1:typeof t.rootRpid=="string"?i.rootRpid=parseInt(t.rootRpid,10):typeof t.rootRpid=="number"?i.rootRpid=t.rootRpid:typeof t.rootRpid=="object"&&(i.rootRpid=new r.LongBits(t.rootRpid.low>>>0,t.rootRpid.high>>>0).toNumber())),t.interactionScene!=null&&(i.interactionScene=String(t.interactionScene)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.oid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.oid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.type=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.type=i.longs===String?"0":0;if(n.title="",n.link="",r.Long){let o=new r.Long(0,0,!1);n.timestamp=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.timestamp=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.rpid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.rpid=i.longs===String?"0":0;if(n.interactionType="",r.Long){let o=new r.Long(0,0,!1);n.hoverDuration=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.hoverDuration=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.rootRpid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.rootRpid=i.longs===String?"0":0;n.interactionScene=""}return t.oid!=null&&t.hasOwnProperty("oid")&&(typeof t.oid=="number"?n.oid=i.longs===String?String(t.oid):t.oid:n.oid=i.longs===String?r.Long.prototype.toString.call(t.oid):i.longs===Number?new r.LongBits(t.oid.low>>>0,t.oid.high>>>0).toNumber():t.oid),t.type!=null&&t.hasOwnProperty("type")&&(typeof t.type=="number"?n.type=i.longs===String?String(t.type):t.type:n.type=i.longs===String?r.Long.prototype.toString.call(t.type):i.longs===Number?new r.LongBits(t.type.low>>>0,t.type.high>>>0).toNumber():t.type),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.link!=null&&t.hasOwnProperty("link")&&(n.link=t.link),t.timestamp!=null&&t.hasOwnProperty("timestamp")&&(typeof t.timestamp=="number"?n.timestamp=i.longs===String?String(t.timestamp):t.timestamp:n.timestamp=i.longs===String?r.Long.prototype.toString.call(t.timestamp):i.longs===Number?new r.LongBits(t.timestamp.low>>>0,t.timestamp.high>>>0).toNumber():t.timestamp),t.rpid!=null&&t.hasOwnProperty("rpid")&&(typeof t.rpid=="number"?n.rpid=i.longs===String?String(t.rpid):t.rpid:n.rpid=i.longs===String?r.Long.prototype.toString.call(t.rpid):i.longs===Number?new r.LongBits(t.rpid.low>>>0,t.rpid.high>>>0).toNumber():t.rpid),t.interactionType!=null&&t.hasOwnProperty("interactionType")&&(n.interactionType=t.interactionType),t.hoverDuration!=null&&t.hasOwnProperty("hoverDuration")&&(typeof t.hoverDuration=="number"?n.hoverDuration=i.longs===String?String(t.hoverDuration):t.hoverDuration:n.hoverDuration=i.longs===String?r.Long.prototype.toString.call(t.hoverDuration):i.longs===Number?new r.LongBits(t.hoverDuration.low>>>0,t.hoverDuration.high>>>0).toNumber():t.hoverDuration),t.rootRpid!=null&&t.hasOwnProperty("rootRpid")&&(typeof t.rootRpid=="number"?n.rootRpid=i.longs===String?String(t.rootRpid):t.rootRpid:n.rootRpid=i.longs===String?r.Long.prototype.toString.call(t.rootRpid):i.longs===Number?new r.LongBits(t.rootRpid.low>>>0,t.rootRpid.high>>>0).toNumber():t.rootRpid),t.interactionScene!=null&&t.hasOwnProperty("interactionScene")&&(n.interactionScene=t.interactionScene),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.message.reply.SubjectNoticeResp"},e}(),c.SubjectReplyInsertionResp=function(){function e(l){if(this.supportMode=[],this.supportTag=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.oid=t.int64();break}case 2:{o.type=t.int64();break}case 3:{o.title=t.string();break}case 4:{o.rpid=t.int64();break}case 5:{o.timestamp=t.int64();break}case 6:{o.rank=t.int64();break}case 7:{o.stepSize=t.int64();break}case 8:{if(o.supportMode&&o.supportMode.length||(o.supportMode=[]),(a&7)===2){let y=t.uint32()+t.pos;for(;t.pos>>0,t.oid.high>>>0).toNumber())),t.type!=null&&(r.Long?(i.type=r.Long.fromValue(t.type)).unsigned=!1:typeof t.type=="string"?i.type=parseInt(t.type,10):typeof t.type=="number"?i.type=t.type:typeof t.type=="object"&&(i.type=new r.LongBits(t.type.low>>>0,t.type.high>>>0).toNumber())),t.title!=null&&(i.title=String(t.title)),t.rpid!=null&&(r.Long?(i.rpid=r.Long.fromValue(t.rpid)).unsigned=!1:typeof t.rpid=="string"?i.rpid=parseInt(t.rpid,10):typeof t.rpid=="number"?i.rpid=t.rpid:typeof t.rpid=="object"&&(i.rpid=new r.LongBits(t.rpid.low>>>0,t.rpid.high>>>0).toNumber())),t.timestamp!=null&&(r.Long?(i.timestamp=r.Long.fromValue(t.timestamp)).unsigned=!1:typeof t.timestamp=="string"?i.timestamp=parseInt(t.timestamp,10):typeof t.timestamp=="number"?i.timestamp=t.timestamp:typeof t.timestamp=="object"&&(i.timestamp=new r.LongBits(t.timestamp.low>>>0,t.timestamp.high>>>0).toNumber())),t.rank!=null&&(r.Long?(i.rank=r.Long.fromValue(t.rank)).unsigned=!1:typeof t.rank=="string"?i.rank=parseInt(t.rank,10):typeof t.rank=="number"?i.rank=t.rank:typeof t.rank=="object"&&(i.rank=new r.LongBits(t.rank.low>>>0,t.rank.high>>>0).toNumber())),t.stepSize!=null&&(r.Long?(i.stepSize=r.Long.fromValue(t.stepSize)).unsigned=!1:typeof t.stepSize=="string"?i.stepSize=parseInt(t.stepSize,10):typeof t.stepSize=="number"?i.stepSize=t.stepSize:typeof t.stepSize=="object"&&(i.stepSize=new r.LongBits(t.stepSize.low>>>0,t.stepSize.high>>>0).toNumber())),t.supportMode){if(!Array.isArray(t.supportMode))throw TypeError(".bilibili.broadcast.message.reply.SubjectReplyInsertionResp.supportMode: array expected");i.supportMode=[];for(let n=0;n>>0,t.supportMode[n].high>>>0).toNumber())}if(t.supportTag){if(!Array.isArray(t.supportTag))throw TypeError(".bilibili.broadcast.message.reply.SubjectReplyInsertionResp.supportTag: array expected");i.supportTag=[];for(let n=0;n>>0,t.oid.high>>>0).toNumber():t.oid),t.type!=null&&t.hasOwnProperty("type")&&(typeof t.type=="number"?n.type=i.longs===String?String(t.type):t.type:n.type=i.longs===String?r.Long.prototype.toString.call(t.type):i.longs===Number?new r.LongBits(t.type.low>>>0,t.type.high>>>0).toNumber():t.type),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.rpid!=null&&t.hasOwnProperty("rpid")&&(typeof t.rpid=="number"?n.rpid=i.longs===String?String(t.rpid):t.rpid:n.rpid=i.longs===String?r.Long.prototype.toString.call(t.rpid):i.longs===Number?new r.LongBits(t.rpid.low>>>0,t.rpid.high>>>0).toNumber():t.rpid),t.timestamp!=null&&t.hasOwnProperty("timestamp")&&(typeof t.timestamp=="number"?n.timestamp=i.longs===String?String(t.timestamp):t.timestamp:n.timestamp=i.longs===String?r.Long.prototype.toString.call(t.timestamp):i.longs===Number?new r.LongBits(t.timestamp.low>>>0,t.timestamp.high>>>0).toNumber():t.timestamp),t.rank!=null&&t.hasOwnProperty("rank")&&(typeof t.rank=="number"?n.rank=i.longs===String?String(t.rank):t.rank:n.rank=i.longs===String?r.Long.prototype.toString.call(t.rank):i.longs===Number?new r.LongBits(t.rank.low>>>0,t.rank.high>>>0).toNumber():t.rank),t.stepSize!=null&&t.hasOwnProperty("stepSize")&&(typeof t.stepSize=="number"?n.stepSize=i.longs===String?String(t.stepSize):t.stepSize:n.stepSize=i.longs===String?r.Long.prototype.toString.call(t.stepSize):i.longs===Number?new r.LongBits(t.stepSize.low>>>0,t.stepSize.high>>>0).toNumber():t.stepSize),t.supportMode&&t.supportMode.length){n.supportMode=[];for(let o=0;o>>0,t.supportMode[o].high>>>0).toNumber():t.supportMode[o]}if(t.supportTag&&t.supportTag.length){n.supportTag=[];for(let o=0;o>>3){case 1:{o.oid=t.int64();break}case 2:{o.type=t.int64();break}case 3:{o.interactionType=t.int32();break}case 4:{o.rpid=t.int64();break}case 5:{o.likeCount=t.int64();break}case 6:{o.frequency=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.reply.SubjectInteractionResp)return t;let i=new u.bilibili.broadcast.message.reply.SubjectInteractionResp;switch(t.oid!=null&&(r.Long?(i.oid=r.Long.fromValue(t.oid)).unsigned=!1:typeof t.oid=="string"?i.oid=parseInt(t.oid,10):typeof t.oid=="number"?i.oid=t.oid:typeof t.oid=="object"&&(i.oid=new r.LongBits(t.oid.low>>>0,t.oid.high>>>0).toNumber())),t.type!=null&&(r.Long?(i.type=r.Long.fromValue(t.type)).unsigned=!1:typeof t.type=="string"?i.type=parseInt(t.type,10):typeof t.type=="number"?i.type=t.type:typeof t.type=="object"&&(i.type=new r.LongBits(t.type.low>>>0,t.type.high>>>0).toNumber())),t.interactionType){default:if(typeof t.interactionType=="number"){i.interactionType=t.interactionType;break}break;case"Unknown":case 0:i.interactionType=0;break;case"ReplyLike":case 1:i.interactionType=1;break}return t.rpid!=null&&(r.Long?(i.rpid=r.Long.fromValue(t.rpid)).unsigned=!1:typeof t.rpid=="string"?i.rpid=parseInt(t.rpid,10):typeof t.rpid=="number"?i.rpid=t.rpid:typeof t.rpid=="object"&&(i.rpid=new r.LongBits(t.rpid.low>>>0,t.rpid.high>>>0).toNumber())),t.likeCount!=null&&(r.Long?(i.likeCount=r.Long.fromValue(t.likeCount)).unsigned=!1:typeof t.likeCount=="string"?i.likeCount=parseInt(t.likeCount,10):typeof t.likeCount=="number"?i.likeCount=t.likeCount:typeof t.likeCount=="object"&&(i.likeCount=new r.LongBits(t.likeCount.low>>>0,t.likeCount.high>>>0).toNumber())),t.frequency!=null&&(r.Long?(i.frequency=r.Long.fromValue(t.frequency)).unsigned=!1:typeof t.frequency=="string"?i.frequency=parseInt(t.frequency,10):typeof t.frequency=="number"?i.frequency=t.frequency:typeof t.frequency=="object"&&(i.frequency=new r.LongBits(t.frequency.low>>>0,t.frequency.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.oid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.oid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.type=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.type=i.longs===String?"0":0;if(n.interactionType=i.enums===String?"Unknown":0,r.Long){let o=new r.Long(0,0,!1);n.rpid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.rpid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.likeCount=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.likeCount=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.frequency=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.frequency=i.longs===String?"0":0}return t.oid!=null&&t.hasOwnProperty("oid")&&(typeof t.oid=="number"?n.oid=i.longs===String?String(t.oid):t.oid:n.oid=i.longs===String?r.Long.prototype.toString.call(t.oid):i.longs===Number?new r.LongBits(t.oid.low>>>0,t.oid.high>>>0).toNumber():t.oid),t.type!=null&&t.hasOwnProperty("type")&&(typeof t.type=="number"?n.type=i.longs===String?String(t.type):t.type:n.type=i.longs===String?r.Long.prototype.toString.call(t.type):i.longs===Number?new r.LongBits(t.type.low>>>0,t.type.high>>>0).toNumber():t.type),t.interactionType!=null&&t.hasOwnProperty("interactionType")&&(n.interactionType=i.enums===String?u.bilibili.broadcast.message.reply.SubjectInteractionResp.Interaction[t.interactionType]===void 0?t.interactionType:u.bilibili.broadcast.message.reply.SubjectInteractionResp.Interaction[t.interactionType]:t.interactionType),t.rpid!=null&&t.hasOwnProperty("rpid")&&(typeof t.rpid=="number"?n.rpid=i.longs===String?String(t.rpid):t.rpid:n.rpid=i.longs===String?r.Long.prototype.toString.call(t.rpid):i.longs===Number?new r.LongBits(t.rpid.low>>>0,t.rpid.high>>>0).toNumber():t.rpid),t.likeCount!=null&&t.hasOwnProperty("likeCount")&&(typeof t.likeCount=="number"?n.likeCount=i.longs===String?String(t.likeCount):t.likeCount:n.likeCount=i.longs===String?r.Long.prototype.toString.call(t.likeCount):i.longs===Number?new r.LongBits(t.likeCount.low>>>0,t.likeCount.high>>>0).toNumber():t.likeCount),t.frequency!=null&&t.hasOwnProperty("frequency")&&(typeof t.frequency=="number"?n.frequency=i.longs===String?String(t.frequency):t.frequency:n.frequency=i.longs===String?r.Long.prototype.toString.call(t.frequency):i.longs===Number?new r.LongBits(t.frequency.low>>>0,t.frequency.high>>>0).toNumber():t.frequency),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.message.reply.SubjectInteractionResp"},e.Interaction=function(){let l={},t=Object.create(l);return t[l[0]="Unknown"]=0,t[l[1]="ReplyLike"]=1,t}(),e}(),c}(),p.ticket=function(){let c={};return c.RoomStatus=function(){let e={},l=Object.create(e);return l[e[0]="Pause"]=0,l[e[1]="Play"]=1,l[e[2]="End"]=2,l}(),c.RoomEvent=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.roomStatus=t.int32();break}case 2:{o.roomMessage=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.ticket.RoomEvent)return t;let i=new u.bilibili.broadcast.message.ticket.RoomEvent;switch(t.roomStatus){default:if(typeof t.roomStatus=="number"){i.roomStatus=t.roomStatus;break}break;case"Pause":case 0:i.roomStatus=0;break;case"Play":case 1:i.roomStatus=1;break;case"End":case 2:i.roomStatus=2;break}return t.roomMessage!=null&&(i.roomMessage=String(t.roomMessage)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.roomStatus=i.enums===String?"Pause":0,n.roomMessage=""),t.roomStatus!=null&&t.hasOwnProperty("roomStatus")&&(n.roomStatus=i.enums===String?u.bilibili.broadcast.message.ticket.RoomStatus[t.roomStatus]===void 0?t.roomStatus:u.bilibili.broadcast.message.ticket.RoomStatus[t.roomStatus]:t.roomStatus),t.roomMessage!=null&&t.hasOwnProperty("roomMessage")&&(n.roomMessage=t.roomMessage),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.message.ticket.RoomEvent"},e}(),c}(),p.topic=function(){let c={};return c.Topic=function(){function e(l,t,i){b.rpc.Service.call(this,l,t,i)}return(e.prototype=Object.create(b.rpc.Service.prototype)).constructor=e,e.create=function(t,i,n){return new this(t,i,n)},Object.defineProperty(e.prototype.detailNotify=function l(t,i){return this.rpcCall(l,u.google.protobuf.Empty,u.bilibili.broadcast.message.topic.DetailEventMessage,t,i)},"name",{value:"DetailNotify"}),e}(),c.DetailEventMessage=function(){function e(l){if(this.pubData=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.type=t.int32();break}case 2:{o.pubData&&o.pubData.length||(o.pubData=[]),o.pubData.push(u.bilibili.broadcast.message.topic.PubEvent.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.topic.DetailEventMessage)return t;let i=new u.bilibili.broadcast.message.topic.DetailEventMessage;if(t.type!=null&&(i.type=t.type|0),t.pubData){if(!Array.isArray(t.pubData))throw TypeError(".bilibili.broadcast.message.topic.DetailEventMessage.pubData: array expected");i.pubData=[];for(let n=0;n>>3){case 1:{o.dynamicId=t.int64();break}case 2:{o.mid=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.topic.PubEvent)return t;let i=new u.bilibili.broadcast.message.topic.PubEvent;return t.dynamicId!=null&&(r.Long?(i.dynamicId=r.Long.fromValue(t.dynamicId)).unsigned=!1:typeof t.dynamicId=="string"?i.dynamicId=parseInt(t.dynamicId,10):typeof t.dynamicId=="number"?i.dynamicId=t.dynamicId:typeof t.dynamicId=="object"&&(i.dynamicId=new r.LongBits(t.dynamicId.low>>>0,t.dynamicId.high>>>0).toNumber())),t.mid!=null&&(r.Long?(i.mid=r.Long.fromValue(t.mid)).unsigned=!1:typeof t.mid=="string"?i.mid=parseInt(t.mid,10):typeof t.mid=="number"?i.mid=t.mid:typeof t.mid=="object"&&(i.mid=new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.dynamicId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.dynamicId=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.mid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mid=i.longs===String?"0":0}return t.dynamicId!=null&&t.hasOwnProperty("dynamicId")&&(typeof t.dynamicId=="number"?n.dynamicId=i.longs===String?String(t.dynamicId):t.dynamicId:n.dynamicId=i.longs===String?r.Long.prototype.toString.call(t.dynamicId):i.longs===Number?new r.LongBits(t.dynamicId.low>>>0,t.dynamicId.high>>>0).toNumber():t.dynamicId),t.mid!=null&&t.hasOwnProperty("mid")&&(typeof t.mid=="number"?n.mid=i.longs===String?String(t.mid):t.mid:n.mid=i.longs===String?r.Long.prototype.toString.call(t.mid):i.longs===Number?new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber():t.mid),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.message.topic.PubEvent"},e}(),c}(),p.tv=function(){let c={};return c.LiveDm=function(){function e(l,t,i){b.rpc.Service.call(this,l,t,i)}return(e.prototype=Object.create(b.rpc.Service.prototype)).constructor=e,e.create=function(t,i,n){return new this(t,i,n)},Object.defineProperty(e.prototype.dmLiveMsg=function l(t,i){return this.rpcCall(l,u.google.protobuf.Empty,u.bilibili.broadcast.message.tv.DmLiveReply,t,i)},"name",{value:"DmLiveMsg"}),Object.defineProperty(e.prototype.dmLiveReloadSwitch=function l(t,i){return this.rpcCall(l,u.google.protobuf.Empty,u.bilibili.broadcast.message.tv.DmLiveSwitchReload,t,i)},"name",{value:"DmLiveReloadSwitch"}),Object.defineProperty(e.prototype.dmLiveMsgDelay=function l(t,i){return this.rpcCall(l,u.google.protobuf.Empty,u.bilibili.broadcast.message.tv.DmLiveReply,t,i)},"name",{value:"DmLiveMsgDelay"}),e}(),c.DmLiveReply=function(){function e(l){if(this.elems=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.elems&&o.elems.length||(o.elems=[]),o.elems.push(u.bilibili.broadcast.message.tv.DmLiveElem.decode(t,t.uint32()));break}case 2:{o.state=t.int32();break}case 3:{o.source=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.tv.DmLiveReply)return t;let i=new u.bilibili.broadcast.message.tv.DmLiveReply;if(t.elems){if(!Array.isArray(t.elems))throw TypeError(".bilibili.broadcast.message.tv.DmLiveReply.elems: array expected");i.elems=[];for(let n=0;n>>3){case 1:{o.roomId=t.int64();break}case 2:{o.roomUid=t.int64();break}case 3:{o.uid=t.int64();break}case 4:{o.uname=t.string();break}case 5:{o.userLevel=t.int32();break}case 6:{o.color=t.uint32();break}case 7:{o.content=t.string();break}case 8:{o.time=t.int64();break}case 9:{o.msgId=t.string();break}case 10:{o.msgType=t.int32();break}case 11:{o.areaId=t.int32();break}case 12:{o.parentAreaId=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.tv.DmLiveElem)return t;let i=new u.bilibili.broadcast.message.tv.DmLiveElem;return t.roomId!=null&&(r.Long?(i.roomId=r.Long.fromValue(t.roomId)).unsigned=!1:typeof t.roomId=="string"?i.roomId=parseInt(t.roomId,10):typeof t.roomId=="number"?i.roomId=t.roomId:typeof t.roomId=="object"&&(i.roomId=new r.LongBits(t.roomId.low>>>0,t.roomId.high>>>0).toNumber())),t.roomUid!=null&&(r.Long?(i.roomUid=r.Long.fromValue(t.roomUid)).unsigned=!1:typeof t.roomUid=="string"?i.roomUid=parseInt(t.roomUid,10):typeof t.roomUid=="number"?i.roomUid=t.roomUid:typeof t.roomUid=="object"&&(i.roomUid=new r.LongBits(t.roomUid.low>>>0,t.roomUid.high>>>0).toNumber())),t.uid!=null&&(r.Long?(i.uid=r.Long.fromValue(t.uid)).unsigned=!1:typeof t.uid=="string"?i.uid=parseInt(t.uid,10):typeof t.uid=="number"?i.uid=t.uid:typeof t.uid=="object"&&(i.uid=new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber())),t.uname!=null&&(i.uname=String(t.uname)),t.userLevel!=null&&(i.userLevel=t.userLevel|0),t.color!=null&&(i.color=t.color>>>0),t.content!=null&&(i.content=String(t.content)),t.time!=null&&(r.Long?(i.time=r.Long.fromValue(t.time)).unsigned=!1:typeof t.time=="string"?i.time=parseInt(t.time,10):typeof t.time=="number"?i.time=t.time:typeof t.time=="object"&&(i.time=new r.LongBits(t.time.low>>>0,t.time.high>>>0).toNumber())),t.msgId!=null&&(i.msgId=String(t.msgId)),t.msgType!=null&&(i.msgType=t.msgType|0),t.areaId!=null&&(i.areaId=t.areaId|0),t.parentAreaId!=null&&(i.parentAreaId=t.parentAreaId|0),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.roomId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.roomId=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.roomUid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.roomUid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.uid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.uid=i.longs===String?"0":0;if(n.uname="",n.userLevel=0,n.color=0,n.content="",r.Long){let o=new r.Long(0,0,!1);n.time=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.time=i.longs===String?"0":0;n.msgId="",n.msgType=0,n.areaId=0,n.parentAreaId=0}return t.roomId!=null&&t.hasOwnProperty("roomId")&&(typeof t.roomId=="number"?n.roomId=i.longs===String?String(t.roomId):t.roomId:n.roomId=i.longs===String?r.Long.prototype.toString.call(t.roomId):i.longs===Number?new r.LongBits(t.roomId.low>>>0,t.roomId.high>>>0).toNumber():t.roomId),t.roomUid!=null&&t.hasOwnProperty("roomUid")&&(typeof t.roomUid=="number"?n.roomUid=i.longs===String?String(t.roomUid):t.roomUid:n.roomUid=i.longs===String?r.Long.prototype.toString.call(t.roomUid):i.longs===Number?new r.LongBits(t.roomUid.low>>>0,t.roomUid.high>>>0).toNumber():t.roomUid),t.uid!=null&&t.hasOwnProperty("uid")&&(typeof t.uid=="number"?n.uid=i.longs===String?String(t.uid):t.uid:n.uid=i.longs===String?r.Long.prototype.toString.call(t.uid):i.longs===Number?new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber():t.uid),t.uname!=null&&t.hasOwnProperty("uname")&&(n.uname=t.uname),t.userLevel!=null&&t.hasOwnProperty("userLevel")&&(n.userLevel=t.userLevel),t.color!=null&&t.hasOwnProperty("color")&&(n.color=t.color),t.content!=null&&t.hasOwnProperty("content")&&(n.content=t.content),t.time!=null&&t.hasOwnProperty("time")&&(typeof t.time=="number"?n.time=i.longs===String?String(t.time):t.time:n.time=i.longs===String?r.Long.prototype.toString.call(t.time):i.longs===Number?new r.LongBits(t.time.low>>>0,t.time.high>>>0).toNumber():t.time),t.msgId!=null&&t.hasOwnProperty("msgId")&&(n.msgId=t.msgId),t.msgType!=null&&t.hasOwnProperty("msgType")&&(n.msgType=t.msgType),t.areaId!=null&&t.hasOwnProperty("areaId")&&(n.areaId=t.areaId),t.parentAreaId!=null&&t.hasOwnProperty("parentAreaId")&&(n.parentAreaId=t.parentAreaId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.message.tv.DmLiveElem"},e}(),c.DmLiveSwitchReload=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.reload=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.tv.DmLiveSwitchReload)return t;let i=new u.bilibili.broadcast.message.tv.DmLiveSwitchReload;return t.reload!=null&&(i.reload=!!t.reload),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.reload=!1),t.reload!=null&&t.hasOwnProperty("reload")&&(n.reload=t.reload),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.message.tv.DmLiveSwitchReload"},e}(),c.DmSegLiveReply=function(){function e(l){if(this.elems=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.elems&&o.elems.length||(o.elems=[]),o.elems.push(u.bilibili.broadcast.message.tv.DanmakuElem.decode(t,t.uint32()));break}case 2:{o.state=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.tv.DmSegLiveReply)return t;let i=new u.bilibili.broadcast.message.tv.DmSegLiveReply;if(t.elems){if(!Array.isArray(t.elems))throw TypeError(".bilibili.broadcast.message.tv.DmSegLiveReply.elems: array expected");i.elems=[];for(let n=0;n>>3){case 1:{o.id=t.int64();break}case 2:{o.progress=t.int32();break}case 3:{o.mode=t.int32();break}case 4:{o.fontsize=t.int32();break}case 5:{o.color=t.uint32();break}case 6:{o.midHash=t.string();break}case 7:{o.content=t.string();break}case 8:{o.ctime=t.int64();break}case 9:{o.weight=t.int32();break}case 10:{o.action=t.string();break}case 11:{o.pool=t.int32();break}case 12:{o.idStr=t.string();break}case 13:{o.attr=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.tv.DanmakuElem)return t;let i=new u.bilibili.broadcast.message.tv.DanmakuElem;return t.id!=null&&(r.Long?(i.id=r.Long.fromValue(t.id)).unsigned=!1:typeof t.id=="string"?i.id=parseInt(t.id,10):typeof t.id=="number"?i.id=t.id:typeof t.id=="object"&&(i.id=new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber())),t.progress!=null&&(i.progress=t.progress|0),t.mode!=null&&(i.mode=t.mode|0),t.fontsize!=null&&(i.fontsize=t.fontsize|0),t.color!=null&&(i.color=t.color>>>0),t.midHash!=null&&(i.midHash=String(t.midHash)),t.content!=null&&(i.content=String(t.content)),t.ctime!=null&&(r.Long?(i.ctime=r.Long.fromValue(t.ctime)).unsigned=!1:typeof t.ctime=="string"?i.ctime=parseInt(t.ctime,10):typeof t.ctime=="number"?i.ctime=t.ctime:typeof t.ctime=="object"&&(i.ctime=new r.LongBits(t.ctime.low>>>0,t.ctime.high>>>0).toNumber())),t.weight!=null&&(i.weight=t.weight|0),t.action!=null&&(i.action=String(t.action)),t.pool!=null&&(i.pool=t.pool|0),t.idStr!=null&&(i.idStr=String(t.idStr)),t.attr!=null&&(i.attr=t.attr|0),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.id=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.id=i.longs===String?"0":0;if(n.progress=0,n.mode=0,n.fontsize=0,n.color=0,n.midHash="",n.content="",r.Long){let o=new r.Long(0,0,!1);n.ctime=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.ctime=i.longs===String?"0":0;n.weight=0,n.action="",n.pool=0,n.idStr="",n.attr=0}return t.id!=null&&t.hasOwnProperty("id")&&(typeof t.id=="number"?n.id=i.longs===String?String(t.id):t.id:n.id=i.longs===String?r.Long.prototype.toString.call(t.id):i.longs===Number?new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber():t.id),t.progress!=null&&t.hasOwnProperty("progress")&&(n.progress=t.progress),t.mode!=null&&t.hasOwnProperty("mode")&&(n.mode=t.mode),t.fontsize!=null&&t.hasOwnProperty("fontsize")&&(n.fontsize=t.fontsize),t.color!=null&&t.hasOwnProperty("color")&&(n.color=t.color),t.midHash!=null&&t.hasOwnProperty("midHash")&&(n.midHash=t.midHash),t.content!=null&&t.hasOwnProperty("content")&&(n.content=t.content),t.ctime!=null&&t.hasOwnProperty("ctime")&&(typeof t.ctime=="number"?n.ctime=i.longs===String?String(t.ctime):t.ctime:n.ctime=i.longs===String?r.Long.prototype.toString.call(t.ctime):i.longs===Number?new r.LongBits(t.ctime.low>>>0,t.ctime.high>>>0).toNumber():t.ctime),t.weight!=null&&t.hasOwnProperty("weight")&&(n.weight=t.weight),t.action!=null&&t.hasOwnProperty("action")&&(n.action=t.action),t.pool!=null&&t.hasOwnProperty("pool")&&(n.pool=t.pool),t.idStr!=null&&t.hasOwnProperty("idStr")&&(n.idStr=t.idStr),t.attr!=null&&t.hasOwnProperty("attr")&&(n.attr=t.attr),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.message.tv.DanmakuElem"},e}(),c.Tv=function(){function e(l,t,i){b.rpc.Service.call(this,l,t,i)}return(e.prototype=Object.create(b.rpc.Service.prototype)).constructor=e,e.create=function(t,i,n){return new this(t,i,n)},Object.defineProperty(e.prototype.proj=function l(t,i){return this.rpcCall(l,u.google.protobuf.Empty,u.bilibili.broadcast.message.tv.ProjReply,t,i)},"name",{value:"Proj"}),Object.defineProperty(e.prototype.projCore=function l(t,i){return this.rpcCall(l,u.google.protobuf.Empty,u.bilibili.broadcast.message.tv.ProjReply,t,i)},"name",{value:"ProjCore"}),Object.defineProperty(e.prototype.liveStatus=function l(t,i){return this.rpcCall(l,u.google.protobuf.Empty,u.bilibili.broadcast.message.tv.LiveStatusNotify,t,i)},"name",{value:"LiveStatus"}),Object.defineProperty(e.prototype.esports=function l(t,i){return this.rpcCall(l,u.google.protobuf.Empty,u.bilibili.broadcast.message.tv.EsportsNotify,t,i)},"name",{value:"Esports"}),Object.defineProperty(e.prototype.publicity=function l(t,i){return this.rpcCall(l,u.google.protobuf.Empty,u.bilibili.broadcast.message.tv.PublicityNotify,t,i)},"name",{value:"Publicity"}),Object.defineProperty(e.prototype.liveSkip=function l(t,i){return this.rpcCall(l,u.google.protobuf.Empty,u.bilibili.broadcast.message.tv.LiveSkipNotify,t,i)},"name",{value:"LiveSkip"}),Object.defineProperty(e.prototype.projLiveEvent=function l(t,i){return this.rpcCall(l,u.google.protobuf.Empty,u.bilibili.broadcast.message.tv.ProjLiveEventNotify,t,i)},"name",{value:"ProjLiveEvent"}),Object.defineProperty(e.prototype.notifyPop=function l(t,i){return this.rpcCall(l,u.google.protobuf.Empty,u.bilibili.broadcast.message.tv.NotifyPopReply,t,i)},"name",{value:"NotifyPop"}),Object.defineProperty(e.prototype.mainRedDot=function l(t,i){return this.rpcCall(l,u.google.protobuf.Empty,u.bilibili.broadcast.message.tv.MainRedDotReply,t,i)},"name",{value:"MainRedDot"}),Object.defineProperty(e.prototype.viewerNumMsg=function l(t,i){return this.rpcCall(l,u.google.protobuf.Empty,u.bilibili.broadcast.message.tv.LiveViewerMsgNotify,t,i)},"name",{value:"ViewerNumMsg"}),Object.defineProperty(e.prototype.liveBottom=function l(t,i){return this.rpcCall(l,u.google.protobuf.Empty,u.bilibili.broadcast.message.tv.LiveBottomConfNotify,t,i)},"name",{value:"LiveBottom"}),Object.defineProperty(e.prototype.liveCommonMsg=function l(t,i){return this.rpcCall(l,u.google.protobuf.Empty,u.bilibili.broadcast.message.tv.LiveCommonNotify,t,i)},"name",{value:"LiveCommonMsg"}),Object.defineProperty(e.prototype.account=function l(t,i){return this.rpcCall(l,u.google.protobuf.Empty,u.bilibili.broadcast.message.tv.AccountNotify,t,i)},"name",{value:"Account"}),Object.defineProperty(e.prototype.feedClientSmart=function l(t,i){return this.rpcCall(l,u.google.protobuf.Empty,u.bilibili.broadcast.message.tv.FeedClientSmartNotify,t,i)},"name",{value:"FeedClientSmart"}),Object.defineProperty(e.prototype.commonPush=function l(t,i){return this.rpcCall(l,u.google.protobuf.Empty,u.bilibili.broadcast.message.tv.CommonPushNotify,t,i)},"name",{value:"CommonPush"}),e}(),c.FeedClientSmartNotify=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.mid=t.int64();break}case 2:{o.cards=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.tv.FeedClientSmartNotify)return t;let i=new u.bilibili.broadcast.message.tv.FeedClientSmartNotify;return t.mid!=null&&(r.Long?(i.mid=r.Long.fromValue(t.mid)).unsigned=!1:typeof t.mid=="string"?i.mid=parseInt(t.mid,10):typeof t.mid=="number"?i.mid=t.mid:typeof t.mid=="object"&&(i.mid=new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber())),t.cards!=null&&(i.cards=String(t.cards)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.mid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mid=i.longs===String?"0":0;n.cards=""}return t.mid!=null&&t.hasOwnProperty("mid")&&(typeof t.mid=="number"?n.mid=i.longs===String?String(t.mid):t.mid:n.mid=i.longs===String?r.Long.prototype.toString.call(t.mid):i.longs===Number?new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber():t.mid),t.cards!=null&&t.hasOwnProperty("cards")&&(n.cards=t.cards),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.message.tv.FeedClientSmartNotify"},e}(),c.AccountNotify=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.biz=t.string();break}case 2:{o.data=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.tv.AccountNotify)return t;let i=new u.bilibili.broadcast.message.tv.AccountNotify;return t.biz!=null&&(i.biz=String(t.biz)),t.data!=null&&(i.data=String(t.data)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.biz="",n.data=""),t.biz!=null&&t.hasOwnProperty("biz")&&(n.biz=t.biz),t.data!=null&&t.hasOwnProperty("data")&&(n.data=t.data),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.message.tv.AccountNotify"},e}(),c.ProjReply=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.cmdType=t.int64();break}case 2:{o.mid=t.int64();break}case 3:{o.aid=t.int64();break}case 4:{o.cid=t.int64();break}case 5:{o.videoType=t.int64();break}case 6:{o.epId=t.int64();break}case 7:{o.seasonId=t.int64();break}case 8:{o.seekTs=t.int64();break}case 9:{o.extra=t.string();break}case 10:{o.roomId=t.int64();break}case 11:{o.deviceInfo=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.tv.ProjReply)return t;let i=new u.bilibili.broadcast.message.tv.ProjReply;return t.cmdType!=null&&(r.Long?(i.cmdType=r.Long.fromValue(t.cmdType)).unsigned=!1:typeof t.cmdType=="string"?i.cmdType=parseInt(t.cmdType,10):typeof t.cmdType=="number"?i.cmdType=t.cmdType:typeof t.cmdType=="object"&&(i.cmdType=new r.LongBits(t.cmdType.low>>>0,t.cmdType.high>>>0).toNumber())),t.mid!=null&&(r.Long?(i.mid=r.Long.fromValue(t.mid)).unsigned=!1:typeof t.mid=="string"?i.mid=parseInt(t.mid,10):typeof t.mid=="number"?i.mid=t.mid:typeof t.mid=="object"&&(i.mid=new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber())),t.aid!=null&&(r.Long?(i.aid=r.Long.fromValue(t.aid)).unsigned=!1:typeof t.aid=="string"?i.aid=parseInt(t.aid,10):typeof t.aid=="number"?i.aid=t.aid:typeof t.aid=="object"&&(i.aid=new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber())),t.cid!=null&&(r.Long?(i.cid=r.Long.fromValue(t.cid)).unsigned=!1:typeof t.cid=="string"?i.cid=parseInt(t.cid,10):typeof t.cid=="number"?i.cid=t.cid:typeof t.cid=="object"&&(i.cid=new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber())),t.videoType!=null&&(r.Long?(i.videoType=r.Long.fromValue(t.videoType)).unsigned=!1:typeof t.videoType=="string"?i.videoType=parseInt(t.videoType,10):typeof t.videoType=="number"?i.videoType=t.videoType:typeof t.videoType=="object"&&(i.videoType=new r.LongBits(t.videoType.low>>>0,t.videoType.high>>>0).toNumber())),t.epId!=null&&(r.Long?(i.epId=r.Long.fromValue(t.epId)).unsigned=!1:typeof t.epId=="string"?i.epId=parseInt(t.epId,10):typeof t.epId=="number"?i.epId=t.epId:typeof t.epId=="object"&&(i.epId=new r.LongBits(t.epId.low>>>0,t.epId.high>>>0).toNumber())),t.seasonId!=null&&(r.Long?(i.seasonId=r.Long.fromValue(t.seasonId)).unsigned=!1:typeof t.seasonId=="string"?i.seasonId=parseInt(t.seasonId,10):typeof t.seasonId=="number"?i.seasonId=t.seasonId:typeof t.seasonId=="object"&&(i.seasonId=new r.LongBits(t.seasonId.low>>>0,t.seasonId.high>>>0).toNumber())),t.seekTs!=null&&(r.Long?(i.seekTs=r.Long.fromValue(t.seekTs)).unsigned=!1:typeof t.seekTs=="string"?i.seekTs=parseInt(t.seekTs,10):typeof t.seekTs=="number"?i.seekTs=t.seekTs:typeof t.seekTs=="object"&&(i.seekTs=new r.LongBits(t.seekTs.low>>>0,t.seekTs.high>>>0).toNumber())),t.extra!=null&&(i.extra=String(t.extra)),t.roomId!=null&&(r.Long?(i.roomId=r.Long.fromValue(t.roomId)).unsigned=!1:typeof t.roomId=="string"?i.roomId=parseInt(t.roomId,10):typeof t.roomId=="number"?i.roomId=t.roomId:typeof t.roomId=="object"&&(i.roomId=new r.LongBits(t.roomId.low>>>0,t.roomId.high>>>0).toNumber())),t.deviceInfo!=null&&(i.deviceInfo=String(t.deviceInfo)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.cmdType=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.cmdType=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.mid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.aid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.aid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.cid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.cid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.videoType=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.videoType=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.epId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.epId=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.seasonId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.seasonId=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.seekTs=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.seekTs=i.longs===String?"0":0;if(n.extra="",r.Long){let o=new r.Long(0,0,!1);n.roomId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.roomId=i.longs===String?"0":0;n.deviceInfo=""}return t.cmdType!=null&&t.hasOwnProperty("cmdType")&&(typeof t.cmdType=="number"?n.cmdType=i.longs===String?String(t.cmdType):t.cmdType:n.cmdType=i.longs===String?r.Long.prototype.toString.call(t.cmdType):i.longs===Number?new r.LongBits(t.cmdType.low>>>0,t.cmdType.high>>>0).toNumber():t.cmdType),t.mid!=null&&t.hasOwnProperty("mid")&&(typeof t.mid=="number"?n.mid=i.longs===String?String(t.mid):t.mid:n.mid=i.longs===String?r.Long.prototype.toString.call(t.mid):i.longs===Number?new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber():t.mid),t.aid!=null&&t.hasOwnProperty("aid")&&(typeof t.aid=="number"?n.aid=i.longs===String?String(t.aid):t.aid:n.aid=i.longs===String?r.Long.prototype.toString.call(t.aid):i.longs===Number?new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber():t.aid),t.cid!=null&&t.hasOwnProperty("cid")&&(typeof t.cid=="number"?n.cid=i.longs===String?String(t.cid):t.cid:n.cid=i.longs===String?r.Long.prototype.toString.call(t.cid):i.longs===Number?new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber():t.cid),t.videoType!=null&&t.hasOwnProperty("videoType")&&(typeof t.videoType=="number"?n.videoType=i.longs===String?String(t.videoType):t.videoType:n.videoType=i.longs===String?r.Long.prototype.toString.call(t.videoType):i.longs===Number?new r.LongBits(t.videoType.low>>>0,t.videoType.high>>>0).toNumber():t.videoType),t.epId!=null&&t.hasOwnProperty("epId")&&(typeof t.epId=="number"?n.epId=i.longs===String?String(t.epId):t.epId:n.epId=i.longs===String?r.Long.prototype.toString.call(t.epId):i.longs===Number?new r.LongBits(t.epId.low>>>0,t.epId.high>>>0).toNumber():t.epId),t.seasonId!=null&&t.hasOwnProperty("seasonId")&&(typeof t.seasonId=="number"?n.seasonId=i.longs===String?String(t.seasonId):t.seasonId:n.seasonId=i.longs===String?r.Long.prototype.toString.call(t.seasonId):i.longs===Number?new r.LongBits(t.seasonId.low>>>0,t.seasonId.high>>>0).toNumber():t.seasonId),t.seekTs!=null&&t.hasOwnProperty("seekTs")&&(typeof t.seekTs=="number"?n.seekTs=i.longs===String?String(t.seekTs):t.seekTs:n.seekTs=i.longs===String?r.Long.prototype.toString.call(t.seekTs):i.longs===Number?new r.LongBits(t.seekTs.low>>>0,t.seekTs.high>>>0).toNumber():t.seekTs),t.extra!=null&&t.hasOwnProperty("extra")&&(n.extra=t.extra),t.roomId!=null&&t.hasOwnProperty("roomId")&&(typeof t.roomId=="number"?n.roomId=i.longs===String?String(t.roomId):t.roomId:n.roomId=i.longs===String?r.Long.prototype.toString.call(t.roomId):i.longs===Number?new r.LongBits(t.roomId.low>>>0,t.roomId.high>>>0).toNumber():t.roomId),t.deviceInfo!=null&&t.hasOwnProperty("deviceInfo")&&(n.deviceInfo=t.deviceInfo),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.message.tv.ProjReply"},e}(),c.LiveStatusNotify=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.status=t.int64();break}case 2:{o.msg=t.string();break}case 3:{o.cid=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.tv.LiveStatusNotify)return t;let i=new u.bilibili.broadcast.message.tv.LiveStatusNotify;return t.status!=null&&(r.Long?(i.status=r.Long.fromValue(t.status)).unsigned=!1:typeof t.status=="string"?i.status=parseInt(t.status,10):typeof t.status=="number"?i.status=t.status:typeof t.status=="object"&&(i.status=new r.LongBits(t.status.low>>>0,t.status.high>>>0).toNumber())),t.msg!=null&&(i.msg=String(t.msg)),t.cid!=null&&(r.Long?(i.cid=r.Long.fromValue(t.cid)).unsigned=!1:typeof t.cid=="string"?i.cid=parseInt(t.cid,10):typeof t.cid=="number"?i.cid=t.cid:typeof t.cid=="object"&&(i.cid=new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.status=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.status=i.longs===String?"0":0;if(n.msg="",r.Long){let o=new r.Long(0,0,!1);n.cid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.cid=i.longs===String?"0":0}return t.status!=null&&t.hasOwnProperty("status")&&(typeof t.status=="number"?n.status=i.longs===String?String(t.status):t.status:n.status=i.longs===String?r.Long.prototype.toString.call(t.status):i.longs===Number?new r.LongBits(t.status.low>>>0,t.status.high>>>0).toNumber():t.status),t.msg!=null&&t.hasOwnProperty("msg")&&(n.msg=t.msg),t.cid!=null&&t.hasOwnProperty("cid")&&(typeof t.cid=="number"?n.cid=i.longs===String?String(t.cid):t.cid:n.cid=i.longs===String?r.Long.prototype.toString.call(t.cid):i.longs===Number?new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber():t.cid),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.message.tv.LiveStatusNotify"},e}(),c.EsportsNotify=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.cid=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.tv.EsportsNotify)return t;let i=new u.bilibili.broadcast.message.tv.EsportsNotify;return t.cid!=null&&(r.Long?(i.cid=r.Long.fromValue(t.cid)).unsigned=!1:typeof t.cid=="string"?i.cid=parseInt(t.cid,10):typeof t.cid=="number"?i.cid=t.cid:typeof t.cid=="object"&&(i.cid=new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(r.Long){let o=new r.Long(0,0,!1);n.cid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.cid=i.longs===String?"0":0;return t.cid!=null&&t.hasOwnProperty("cid")&&(typeof t.cid=="number"?n.cid=i.longs===String?String(t.cid):t.cid:n.cid=i.longs===String?r.Long.prototype.toString.call(t.cid):i.longs===Number?new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber():t.cid),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.message.tv.EsportsNotify"},e}(),c.PublicityNotify=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.publicityId=t.int64();break}case 2:{o.roomId=t.int64();break}case 3:{o.status=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.tv.PublicityNotify)return t;let i=new u.bilibili.broadcast.message.tv.PublicityNotify;return t.publicityId!=null&&(r.Long?(i.publicityId=r.Long.fromValue(t.publicityId)).unsigned=!1:typeof t.publicityId=="string"?i.publicityId=parseInt(t.publicityId,10):typeof t.publicityId=="number"?i.publicityId=t.publicityId:typeof t.publicityId=="object"&&(i.publicityId=new r.LongBits(t.publicityId.low>>>0,t.publicityId.high>>>0).toNumber())),t.roomId!=null&&(r.Long?(i.roomId=r.Long.fromValue(t.roomId)).unsigned=!1:typeof t.roomId=="string"?i.roomId=parseInt(t.roomId,10):typeof t.roomId=="number"?i.roomId=t.roomId:typeof t.roomId=="object"&&(i.roomId=new r.LongBits(t.roomId.low>>>0,t.roomId.high>>>0).toNumber())),t.status!=null&&(r.Long?(i.status=r.Long.fromValue(t.status)).unsigned=!1:typeof t.status=="string"?i.status=parseInt(t.status,10):typeof t.status=="number"?i.status=t.status:typeof t.status=="object"&&(i.status=new r.LongBits(t.status.low>>>0,t.status.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.publicityId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.publicityId=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.roomId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.roomId=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.status=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.status=i.longs===String?"0":0}return t.publicityId!=null&&t.hasOwnProperty("publicityId")&&(typeof t.publicityId=="number"?n.publicityId=i.longs===String?String(t.publicityId):t.publicityId:n.publicityId=i.longs===String?r.Long.prototype.toString.call(t.publicityId):i.longs===Number?new r.LongBits(t.publicityId.low>>>0,t.publicityId.high>>>0).toNumber():t.publicityId),t.roomId!=null&&t.hasOwnProperty("roomId")&&(typeof t.roomId=="number"?n.roomId=i.longs===String?String(t.roomId):t.roomId:n.roomId=i.longs===String?r.Long.prototype.toString.call(t.roomId):i.longs===Number?new r.LongBits(t.roomId.low>>>0,t.roomId.high>>>0).toNumber():t.roomId),t.status!=null&&t.hasOwnProperty("status")&&(typeof t.status=="number"?n.status=i.longs===String?String(t.status):t.status:n.status=i.longs===String?r.Long.prototype.toString.call(t.status):i.longs===Number?new r.LongBits(t.status.low>>>0,t.status.high>>>0).toNumber():t.status),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.message.tv.PublicityNotify"},e}(),c.LiveSkipNotify=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.liveId=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.tv.LiveSkipNotify)return t;let i=new u.bilibili.broadcast.message.tv.LiveSkipNotify;return t.liveId!=null&&(r.Long?(i.liveId=r.Long.fromValue(t.liveId)).unsigned=!1:typeof t.liveId=="string"?i.liveId=parseInt(t.liveId,10):typeof t.liveId=="number"?i.liveId=t.liveId:typeof t.liveId=="object"&&(i.liveId=new r.LongBits(t.liveId.low>>>0,t.liveId.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(r.Long){let o=new r.Long(0,0,!1);n.liveId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.liveId=i.longs===String?"0":0;return t.liveId!=null&&t.hasOwnProperty("liveId")&&(typeof t.liveId=="number"?n.liveId=i.longs===String?String(t.liveId):t.liveId:n.liveId=i.longs===String?r.Long.prototype.toString.call(t.liveId):i.longs===Number?new r.LongBits(t.liveId.low>>>0,t.liveId.high>>>0).toNumber():t.liveId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.message.tv.LiveSkipNotify"},e}(),c.ProjLiveEventNotify=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.roomId=t.int64();break}case 2:{o.eventType=t.int64();break}case 3:{o.eventMsg=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.tv.ProjLiveEventNotify)return t;let i=new u.bilibili.broadcast.message.tv.ProjLiveEventNotify;return t.roomId!=null&&(r.Long?(i.roomId=r.Long.fromValue(t.roomId)).unsigned=!1:typeof t.roomId=="string"?i.roomId=parseInt(t.roomId,10):typeof t.roomId=="number"?i.roomId=t.roomId:typeof t.roomId=="object"&&(i.roomId=new r.LongBits(t.roomId.low>>>0,t.roomId.high>>>0).toNumber())),t.eventType!=null&&(r.Long?(i.eventType=r.Long.fromValue(t.eventType)).unsigned=!1:typeof t.eventType=="string"?i.eventType=parseInt(t.eventType,10):typeof t.eventType=="number"?i.eventType=t.eventType:typeof t.eventType=="object"&&(i.eventType=new r.LongBits(t.eventType.low>>>0,t.eventType.high>>>0).toNumber())),t.eventMsg!=null&&(i.eventMsg=String(t.eventMsg)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.roomId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.roomId=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.eventType=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.eventType=i.longs===String?"0":0;n.eventMsg=""}return t.roomId!=null&&t.hasOwnProperty("roomId")&&(typeof t.roomId=="number"?n.roomId=i.longs===String?String(t.roomId):t.roomId:n.roomId=i.longs===String?r.Long.prototype.toString.call(t.roomId):i.longs===Number?new r.LongBits(t.roomId.low>>>0,t.roomId.high>>>0).toNumber():t.roomId),t.eventType!=null&&t.hasOwnProperty("eventType")&&(typeof t.eventType=="number"?n.eventType=i.longs===String?String(t.eventType):t.eventType:n.eventType=i.longs===String?r.Long.prototype.toString.call(t.eventType):i.longs===Number?new r.LongBits(t.eventType.low>>>0,t.eventType.high>>>0).toNumber():t.eventType),t.eventMsg!=null&&t.hasOwnProperty("eventMsg")&&(n.eventMsg=t.eventMsg),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.message.tv.ProjLiveEventNotify"},e}(),c.NotifyPopReply=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.mid=t.int64();break}case 2:{o.notify=u.bilibili.broadcast.message.tv.NotifyPop.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.tv.NotifyPopReply)return t;let i=new u.bilibili.broadcast.message.tv.NotifyPopReply;if(t.mid!=null&&(r.Long?(i.mid=r.Long.fromValue(t.mid)).unsigned=!1:typeof t.mid=="string"?i.mid=parseInt(t.mid,10):typeof t.mid=="number"?i.mid=t.mid:typeof t.mid=="object"&&(i.mid=new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber())),t.notify!=null){if(typeof t.notify!="object")throw TypeError(".bilibili.broadcast.message.tv.NotifyPopReply.notify: object expected");i.notify=u.bilibili.broadcast.message.tv.NotifyPop.fromObject(t.notify)}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.mid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mid=i.longs===String?"0":0;n.notify=null}return t.mid!=null&&t.hasOwnProperty("mid")&&(typeof t.mid=="number"?n.mid=i.longs===String?String(t.mid):t.mid:n.mid=i.longs===String?r.Long.prototype.toString.call(t.mid):i.longs===Number?new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber():t.mid),t.notify!=null&&t.hasOwnProperty("notify")&&(n.notify=u.bilibili.broadcast.message.tv.NotifyPop.toObject(t.notify,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.message.tv.NotifyPopReply"},e}(),c.NotifyPop=function(){function e(l){if(this.notifyBtnList=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.id=t.int64();break}case 2:{o.style=t.int32();break}case 3:{o.img=t.string();break}case 4:{o.textType=t.int32();break}case 5:{o.textTop=t.string();break}case 6:{o.textBottom=t.string();break}case 7:{o.expire=t.int32();break}case 8:{o.notifyBtnList&&o.notifyBtnList.length||(o.notifyBtnList=[]),o.notifyBtnList.push(u.bilibili.broadcast.message.tv.NotifyPopBtn.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.tv.NotifyPop)return t;let i=new u.bilibili.broadcast.message.tv.NotifyPop;if(t.id!=null&&(r.Long?(i.id=r.Long.fromValue(t.id)).unsigned=!1:typeof t.id=="string"?i.id=parseInt(t.id,10):typeof t.id=="number"?i.id=t.id:typeof t.id=="object"&&(i.id=new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber())),t.style!=null&&(i.style=t.style|0),t.img!=null&&(i.img=String(t.img)),t.textType!=null&&(i.textType=t.textType|0),t.textTop!=null&&(i.textTop=String(t.textTop)),t.textBottom!=null&&(i.textBottom=String(t.textBottom)),t.expire!=null&&(i.expire=t.expire|0),t.notifyBtnList){if(!Array.isArray(t.notifyBtnList))throw TypeError(".bilibili.broadcast.message.tv.NotifyPop.notifyBtnList: array expected");i.notifyBtnList=[];for(let n=0;n>>0,t.id.high>>>0).toNumber():t.id),t.style!=null&&t.hasOwnProperty("style")&&(n.style=t.style),t.img!=null&&t.hasOwnProperty("img")&&(n.img=t.img),t.textType!=null&&t.hasOwnProperty("textType")&&(n.textType=t.textType),t.textTop!=null&&t.hasOwnProperty("textTop")&&(n.textTop=t.textTop),t.textBottom!=null&&t.hasOwnProperty("textBottom")&&(n.textBottom=t.textBottom),t.expire!=null&&t.hasOwnProperty("expire")&&(n.expire=t.expire),t.notifyBtnList&&t.notifyBtnList.length){n.notifyBtnList=[];for(let o=0;o>>3){case 1:{o.text=t.string();break}case 2:{o.url=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.tv.NotifyPopBtn)return t;let i=new u.bilibili.broadcast.message.tv.NotifyPopBtn;return t.text!=null&&(i.text=String(t.text)),t.url!=null&&(i.url=String(t.url)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.text="",n.url=""),t.text!=null&&t.hasOwnProperty("text")&&(n.text=t.text),t.url!=null&&t.hasOwnProperty("url")&&(n.url=t.url),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.message.tv.NotifyPopBtn"},e}(),c.MainRedDotReply=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.mid=t.int64();break}case 2:{o.reddot=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.tv.MainRedDotReply)return t;let i=new u.bilibili.broadcast.message.tv.MainRedDotReply;return t.mid!=null&&(r.Long?(i.mid=r.Long.fromValue(t.mid)).unsigned=!1:typeof t.mid=="string"?i.mid=parseInt(t.mid,10):typeof t.mid=="number"?i.mid=t.mid:typeof t.mid=="object"&&(i.mid=new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber())),t.reddot!=null&&(r.Long?(i.reddot=r.Long.fromValue(t.reddot)).unsigned=!1:typeof t.reddot=="string"?i.reddot=parseInt(t.reddot,10):typeof t.reddot=="number"?i.reddot=t.reddot:typeof t.reddot=="object"&&(i.reddot=new r.LongBits(t.reddot.low>>>0,t.reddot.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.mid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.reddot=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.reddot=i.longs===String?"0":0}return t.mid!=null&&t.hasOwnProperty("mid")&&(typeof t.mid=="number"?n.mid=i.longs===String?String(t.mid):t.mid:n.mid=i.longs===String?r.Long.prototype.toString.call(t.mid):i.longs===Number?new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber():t.mid),t.reddot!=null&&t.hasOwnProperty("reddot")&&(typeof t.reddot=="number"?n.reddot=i.longs===String?String(t.reddot):t.reddot:n.reddot=i.longs===String?r.Long.prototype.toString.call(t.reddot):i.longs===Number?new r.LongBits(t.reddot.low>>>0,t.reddot.high>>>0).toNumber():t.reddot),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.message.tv.MainRedDotReply"},e}(),c.LiveViewerMsgNotify=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.roomId=t.int64();break}case 2:{o.viewerMsg=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.tv.LiveViewerMsgNotify)return t;let i=new u.bilibili.broadcast.message.tv.LiveViewerMsgNotify;return t.roomId!=null&&(r.Long?(i.roomId=r.Long.fromValue(t.roomId)).unsigned=!1:typeof t.roomId=="string"?i.roomId=parseInt(t.roomId,10):typeof t.roomId=="number"?i.roomId=t.roomId:typeof t.roomId=="object"&&(i.roomId=new r.LongBits(t.roomId.low>>>0,t.roomId.high>>>0).toNumber())),t.viewerMsg!=null&&(i.viewerMsg=String(t.viewerMsg)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.roomId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.roomId=i.longs===String?"0":0;n.viewerMsg=""}return t.roomId!=null&&t.hasOwnProperty("roomId")&&(typeof t.roomId=="number"?n.roomId=i.longs===String?String(t.roomId):t.roomId:n.roomId=i.longs===String?r.Long.prototype.toString.call(t.roomId):i.longs===Number?new r.LongBits(t.roomId.low>>>0,t.roomId.high>>>0).toNumber():t.roomId),t.viewerMsg!=null&&t.hasOwnProperty("viewerMsg")&&(n.viewerMsg=t.viewerMsg),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.message.tv.LiveViewerMsgNotify"},e}(),c.LiveBottomConfNotify=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.roomId=t.int64();break}case 2:{o.bottomMsg=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.tv.LiveBottomConfNotify)return t;let i=new u.bilibili.broadcast.message.tv.LiveBottomConfNotify;return t.roomId!=null&&(r.Long?(i.roomId=r.Long.fromValue(t.roomId)).unsigned=!1:typeof t.roomId=="string"?i.roomId=parseInt(t.roomId,10):typeof t.roomId=="number"?i.roomId=t.roomId:typeof t.roomId=="object"&&(i.roomId=new r.LongBits(t.roomId.low>>>0,t.roomId.high>>>0).toNumber())),t.bottomMsg!=null&&(i.bottomMsg=String(t.bottomMsg)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.roomId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.roomId=i.longs===String?"0":0;n.bottomMsg=""}return t.roomId!=null&&t.hasOwnProperty("roomId")&&(typeof t.roomId=="number"?n.roomId=i.longs===String?String(t.roomId):t.roomId:n.roomId=i.longs===String?r.Long.prototype.toString.call(t.roomId):i.longs===Number?new r.LongBits(t.roomId.low>>>0,t.roomId.high>>>0).toNumber():t.roomId),t.bottomMsg!=null&&t.hasOwnProperty("bottomMsg")&&(n.bottomMsg=t.bottomMsg),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.message.tv.LiveBottomConfNotify"},e}(),c.LiveCommonNotify=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.cmd=t.string();break}case 2:{o.data=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.tv.LiveCommonNotify)return t;let i=new u.bilibili.broadcast.message.tv.LiveCommonNotify;return t.cmd!=null&&(i.cmd=String(t.cmd)),t.data!=null&&(i.data=String(t.data)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.cmd="",n.data=""),t.cmd!=null&&t.hasOwnProperty("cmd")&&(n.cmd=t.cmd),t.data!=null&&t.hasOwnProperty("data")&&(n.data=t.data),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.message.tv.LiveCommonNotify"},e}(),c.CommonPushNotify=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.cmd=t.string();break}case 2:{o.data=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.broadcast.message.tv.CommonPushNotify)return t;let i=new u.bilibili.broadcast.message.tv.CommonPushNotify;return t.cmd!=null&&(i.cmd=String(t.cmd)),t.data!=null&&(i.data=String(t.data)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.cmd="",n.data=""),t.cmd!=null&&t.hasOwnProperty("cmd")&&(n.cmd=t.cmd),t.data!=null&&t.hasOwnProperty("data")&&(n.data=t.data),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.message.tv.CommonPushNotify"},e}(),c}(),p}(),d.v1=function(){let p={};return p.AuthReq=function(){function c(e){if(e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.guid=l.string();break}case 2:{n.connId=l.string();break}case 3:{n.lastMsgId=l.int64();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.broadcast.v1.AuthReq)return l;let t=new u.bilibili.broadcast.v1.AuthReq;return l.guid!=null&&(t.guid=String(l.guid)),l.connId!=null&&(t.connId=String(l.connId)),l.lastMsgId!=null&&(r.Long?(t.lastMsgId=r.Long.fromValue(l.lastMsgId)).unsigned=!1:typeof l.lastMsgId=="string"?t.lastMsgId=parseInt(l.lastMsgId,10):typeof l.lastMsgId=="number"?t.lastMsgId=l.lastMsgId:typeof l.lastMsgId=="object"&&(t.lastMsgId=new r.LongBits(l.lastMsgId.low>>>0,l.lastMsgId.high>>>0).toNumber())),t},c.toObject=function(l,t){t||(t={});let i={};if(t.defaults)if(i.guid="",i.connId="",r.Long){let n=new r.Long(0,0,!1);i.lastMsgId=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.lastMsgId=t.longs===String?"0":0;return l.guid!=null&&l.hasOwnProperty("guid")&&(i.guid=l.guid),l.connId!=null&&l.hasOwnProperty("connId")&&(i.connId=l.connId),l.lastMsgId!=null&&l.hasOwnProperty("lastMsgId")&&(typeof l.lastMsgId=="number"?i.lastMsgId=t.longs===String?String(l.lastMsgId):l.lastMsgId:i.lastMsgId=t.longs===String?r.Long.prototype.toString.call(l.lastMsgId):t.longs===Number?new r.LongBits(l.lastMsgId.low>>>0,l.lastMsgId.high>>>0).toNumber():l.lastMsgId),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.broadcast.v1.AuthReq"},c}(),p.AuthResp=function(){function c(e){if(e)for(let l=Object.keys(e),t=0;t>>3){default:l.skipType(o&7);break}}return n},c.fromObject=function(l){return l instanceof u.bilibili.broadcast.v1.AuthResp?l:new u.bilibili.broadcast.v1.AuthResp},c.toObject=function(){return{}},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.broadcast.v1.AuthResp"},c}(),p.HeartbeatReq=function(){function c(e){if(e)for(let l=Object.keys(e),t=0;t>>3){default:l.skipType(o&7);break}}return n},c.fromObject=function(l){return l instanceof u.bilibili.broadcast.v1.HeartbeatReq?l:new u.bilibili.broadcast.v1.HeartbeatReq},c.toObject=function(){return{}},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.broadcast.v1.HeartbeatReq"},c}(),p.HeartbeatResp=function(){function c(e){if(e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.opType=l.int32();break}case 2:{n.targetHostname=l.string();break}case 3:{n.targetIp=l.string();break}case 4:{n.targetPort=l.int64();break}case 5:{n.targetTtl=l.int64();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.broadcast.v1.HeartbeatResp)return l;let t=new u.bilibili.broadcast.v1.HeartbeatResp;switch(l.opType){default:if(typeof l.opType=="number"){t.opType=l.opType;break}break;case"DEFAULT":case 0:t.opType=0;break;case"UNHEALTHY":case 1:t.opType=1;break;case"MIGRATION":case 2:t.opType=2;break}return l.targetHostname!=null&&(t.targetHostname=String(l.targetHostname)),l.targetIp!=null&&(t.targetIp=String(l.targetIp)),l.targetPort!=null&&(r.Long?(t.targetPort=r.Long.fromValue(l.targetPort)).unsigned=!1:typeof l.targetPort=="string"?t.targetPort=parseInt(l.targetPort,10):typeof l.targetPort=="number"?t.targetPort=l.targetPort:typeof l.targetPort=="object"&&(t.targetPort=new r.LongBits(l.targetPort.low>>>0,l.targetPort.high>>>0).toNumber())),l.targetTtl!=null&&(r.Long?(t.targetTtl=r.Long.fromValue(l.targetTtl)).unsigned=!1:typeof l.targetTtl=="string"?t.targetTtl=parseInt(l.targetTtl,10):typeof l.targetTtl=="number"?t.targetTtl=l.targetTtl:typeof l.targetTtl=="object"&&(t.targetTtl=new r.LongBits(l.targetTtl.low>>>0,l.targetTtl.high>>>0).toNumber())),t},c.toObject=function(l,t){t||(t={});let i={};if(t.defaults){if(i.opType=t.enums===String?"DEFAULT":0,i.targetHostname="",i.targetIp="",r.Long){let n=new r.Long(0,0,!1);i.targetPort=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.targetPort=t.longs===String?"0":0;if(r.Long){let n=new r.Long(0,0,!1);i.targetTtl=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.targetTtl=t.longs===String?"0":0}return l.opType!=null&&l.hasOwnProperty("opType")&&(i.opType=t.enums===String?u.bilibili.broadcast.v1.HeartbeatResp.OpType[l.opType]===void 0?l.opType:u.bilibili.broadcast.v1.HeartbeatResp.OpType[l.opType]:l.opType),l.targetHostname!=null&&l.hasOwnProperty("targetHostname")&&(i.targetHostname=l.targetHostname),l.targetIp!=null&&l.hasOwnProperty("targetIp")&&(i.targetIp=l.targetIp),l.targetPort!=null&&l.hasOwnProperty("targetPort")&&(typeof l.targetPort=="number"?i.targetPort=t.longs===String?String(l.targetPort):l.targetPort:i.targetPort=t.longs===String?r.Long.prototype.toString.call(l.targetPort):t.longs===Number?new r.LongBits(l.targetPort.low>>>0,l.targetPort.high>>>0).toNumber():l.targetPort),l.targetTtl!=null&&l.hasOwnProperty("targetTtl")&&(typeof l.targetTtl=="number"?i.targetTtl=t.longs===String?String(l.targetTtl):l.targetTtl:i.targetTtl=t.longs===String?r.Long.prototype.toString.call(l.targetTtl):t.longs===Number?new r.LongBits(l.targetTtl.low>>>0,l.targetTtl.high>>>0).toNumber():l.targetTtl),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.broadcast.v1.HeartbeatResp"},c.OpType=function(){let e={},l=Object.create(e);return l[e[0]="DEFAULT"]=0,l[e[1]="UNHEALTHY"]=1,l[e[2]="MIGRATION"]=2,l}(),c}(),p.TargetPath=function(){function c(e){if(this.targetPaths=[],e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.targetPaths&&n.targetPaths.length||(n.targetPaths=[]),n.targetPaths.push(l.string());break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.broadcast.v1.TargetPath)return l;let t=new u.bilibili.broadcast.v1.TargetPath;if(l.targetPaths){if(!Array.isArray(l.targetPaths))throw TypeError(".bilibili.broadcast.v1.TargetPath.targetPaths: array expected");t.targetPaths=[];for(let i=0;i>>3){case 1:{n.ackId=l.int64();break}case 2:{n.ackOrigin=l.string();break}case 3:{n.targetPath=l.string();break}case 4:{n.msgType=l.int64();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.broadcast.v1.MessageAckReq)return l;let t=new u.bilibili.broadcast.v1.MessageAckReq;return l.ackId!=null&&(r.Long?(t.ackId=r.Long.fromValue(l.ackId)).unsigned=!1:typeof l.ackId=="string"?t.ackId=parseInt(l.ackId,10):typeof l.ackId=="number"?t.ackId=l.ackId:typeof l.ackId=="object"&&(t.ackId=new r.LongBits(l.ackId.low>>>0,l.ackId.high>>>0).toNumber())),l.ackOrigin!=null&&(t.ackOrigin=String(l.ackOrigin)),l.targetPath!=null&&(t.targetPath=String(l.targetPath)),l.msgType!=null&&(r.Long?(t.msgType=r.Long.fromValue(l.msgType)).unsigned=!1:typeof l.msgType=="string"?t.msgType=parseInt(l.msgType,10):typeof l.msgType=="number"?t.msgType=l.msgType:typeof l.msgType=="object"&&(t.msgType=new r.LongBits(l.msgType.low>>>0,l.msgType.high>>>0).toNumber())),t},c.toObject=function(l,t){t||(t={});let i={};if(t.defaults){if(r.Long){let n=new r.Long(0,0,!1);i.ackId=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.ackId=t.longs===String?"0":0;if(i.ackOrigin="",i.targetPath="",r.Long){let n=new r.Long(0,0,!1);i.msgType=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.msgType=t.longs===String?"0":0}return l.ackId!=null&&l.hasOwnProperty("ackId")&&(typeof l.ackId=="number"?i.ackId=t.longs===String?String(l.ackId):l.ackId:i.ackId=t.longs===String?r.Long.prototype.toString.call(l.ackId):t.longs===Number?new r.LongBits(l.ackId.low>>>0,l.ackId.high>>>0).toNumber():l.ackId),l.ackOrigin!=null&&l.hasOwnProperty("ackOrigin")&&(i.ackOrigin=l.ackOrigin),l.targetPath!=null&&l.hasOwnProperty("targetPath")&&(i.targetPath=l.targetPath),l.msgType!=null&&l.hasOwnProperty("msgType")&&(typeof l.msgType=="number"?i.msgType=t.longs===String?String(l.msgType):l.msgType:i.msgType=t.longs===String?r.Long.prototype.toString.call(l.msgType):t.longs===Number?new r.LongBits(l.msgType.low>>>0,l.msgType.high>>>0).toNumber():l.msgType),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.broadcast.v1.MessageAckReq"},c}(),p.FrameOption=function(){function c(e){if(e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.messageId=l.int64();break}case 2:{n.sequence=l.int64();break}case 3:{n.isAck=l.bool();break}case 4:{n.status=u.bilibili.rpc.Status.decode(l,l.uint32());break}case 5:{n.ackOrigin=l.string();break}case 6:{n.timestamp=l.int64();break}case 7:{n.msgType=l.int64();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.broadcast.v1.FrameOption)return l;let t=new u.bilibili.broadcast.v1.FrameOption;if(l.messageId!=null&&(r.Long?(t.messageId=r.Long.fromValue(l.messageId)).unsigned=!1:typeof l.messageId=="string"?t.messageId=parseInt(l.messageId,10):typeof l.messageId=="number"?t.messageId=l.messageId:typeof l.messageId=="object"&&(t.messageId=new r.LongBits(l.messageId.low>>>0,l.messageId.high>>>0).toNumber())),l.sequence!=null&&(r.Long?(t.sequence=r.Long.fromValue(l.sequence)).unsigned=!1:typeof l.sequence=="string"?t.sequence=parseInt(l.sequence,10):typeof l.sequence=="number"?t.sequence=l.sequence:typeof l.sequence=="object"&&(t.sequence=new r.LongBits(l.sequence.low>>>0,l.sequence.high>>>0).toNumber())),l.isAck!=null&&(t.isAck=!!l.isAck),l.status!=null){if(typeof l.status!="object")throw TypeError(".bilibili.broadcast.v1.FrameOption.status: object expected");t.status=u.bilibili.rpc.Status.fromObject(l.status)}return l.ackOrigin!=null&&(t.ackOrigin=String(l.ackOrigin)),l.timestamp!=null&&(r.Long?(t.timestamp=r.Long.fromValue(l.timestamp)).unsigned=!1:typeof l.timestamp=="string"?t.timestamp=parseInt(l.timestamp,10):typeof l.timestamp=="number"?t.timestamp=l.timestamp:typeof l.timestamp=="object"&&(t.timestamp=new r.LongBits(l.timestamp.low>>>0,l.timestamp.high>>>0).toNumber())),l.msgType!=null&&(r.Long?(t.msgType=r.Long.fromValue(l.msgType)).unsigned=!1:typeof l.msgType=="string"?t.msgType=parseInt(l.msgType,10):typeof l.msgType=="number"?t.msgType=l.msgType:typeof l.msgType=="object"&&(t.msgType=new r.LongBits(l.msgType.low>>>0,l.msgType.high>>>0).toNumber())),t},c.toObject=function(l,t){t||(t={});let i={};if(t.defaults){if(r.Long){let n=new r.Long(0,0,!1);i.messageId=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.messageId=t.longs===String?"0":0;if(r.Long){let n=new r.Long(0,0,!1);i.sequence=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.sequence=t.longs===String?"0":0;if(i.isAck=!1,i.status=null,i.ackOrigin="",r.Long){let n=new r.Long(0,0,!1);i.timestamp=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.timestamp=t.longs===String?"0":0;if(r.Long){let n=new r.Long(0,0,!1);i.msgType=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.msgType=t.longs===String?"0":0}return l.messageId!=null&&l.hasOwnProperty("messageId")&&(typeof l.messageId=="number"?i.messageId=t.longs===String?String(l.messageId):l.messageId:i.messageId=t.longs===String?r.Long.prototype.toString.call(l.messageId):t.longs===Number?new r.LongBits(l.messageId.low>>>0,l.messageId.high>>>0).toNumber():l.messageId),l.sequence!=null&&l.hasOwnProperty("sequence")&&(typeof l.sequence=="number"?i.sequence=t.longs===String?String(l.sequence):l.sequence:i.sequence=t.longs===String?r.Long.prototype.toString.call(l.sequence):t.longs===Number?new r.LongBits(l.sequence.low>>>0,l.sequence.high>>>0).toNumber():l.sequence),l.isAck!=null&&l.hasOwnProperty("isAck")&&(i.isAck=l.isAck),l.status!=null&&l.hasOwnProperty("status")&&(i.status=u.bilibili.rpc.Status.toObject(l.status,t)),l.ackOrigin!=null&&l.hasOwnProperty("ackOrigin")&&(i.ackOrigin=l.ackOrigin),l.timestamp!=null&&l.hasOwnProperty("timestamp")&&(typeof l.timestamp=="number"?i.timestamp=t.longs===String?String(l.timestamp):l.timestamp:i.timestamp=t.longs===String?r.Long.prototype.toString.call(l.timestamp):t.longs===Number?new r.LongBits(l.timestamp.low>>>0,l.timestamp.high>>>0).toNumber():l.timestamp),l.msgType!=null&&l.hasOwnProperty("msgType")&&(typeof l.msgType=="number"?i.msgType=t.longs===String?String(l.msgType):l.msgType:i.msgType=t.longs===String?r.Long.prototype.toString.call(l.msgType):t.longs===Number?new r.LongBits(l.msgType.low>>>0,l.msgType.high>>>0).toNumber():l.msgType),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.broadcast.v1.FrameOption"},c}(),p.BroadcastFrame=function(){function c(e){if(e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.options=u.bilibili.broadcast.v1.FrameOption.decode(l,l.uint32());break}case 2:{n.targetPath=l.string();break}case 3:{n.body=u.google.protobuf.Any.decode(l,l.uint32());break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.broadcast.v1.BroadcastFrame)return l;let t=new u.bilibili.broadcast.v1.BroadcastFrame;if(l.options!=null){if(typeof l.options!="object")throw TypeError(".bilibili.broadcast.v1.BroadcastFrame.options: object expected");t.options=u.bilibili.broadcast.v1.FrameOption.fromObject(l.options)}if(l.targetPath!=null&&(t.targetPath=String(l.targetPath)),l.body!=null){if(typeof l.body!="object")throw TypeError(".bilibili.broadcast.v1.BroadcastFrame.body: object expected");t.body=u.google.protobuf.Any.fromObject(l.body)}return t},c.toObject=function(l,t){t||(t={});let i={};return t.defaults&&(i.options=null,i.targetPath="",i.body=null),l.options!=null&&l.hasOwnProperty("options")&&(i.options=u.bilibili.broadcast.v1.FrameOption.toObject(l.options,t)),l.targetPath!=null&&l.hasOwnProperty("targetPath")&&(i.targetPath=l.targetPath),l.body!=null&&l.hasOwnProperty("body")&&(i.body=u.google.protobuf.Any.toObject(l.body,t)),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.broadcast.v1.BroadcastFrame"},c}(),p.BroadcastTunnel=function(){function c(e,l,t){b.rpc.Service.call(this,e,l,t)}return(c.prototype=Object.create(b.rpc.Service.prototype)).constructor=c,c.create=function(l,t,i){return new this(l,t,i)},Object.defineProperty(c.prototype.createTunnel=function e(l,t){return this.rpcCall(e,u.bilibili.broadcast.v1.BroadcastFrame,u.bilibili.broadcast.v1.BroadcastFrame,l,t)},"name",{value:"CreateTunnel"}),c}(),p.Broadcast=function(){function c(e,l,t){b.rpc.Service.call(this,e,l,t)}return(c.prototype=Object.create(b.rpc.Service.prototype)).constructor=c,c.create=function(l,t,i){return new this(l,t,i)},Object.defineProperty(c.prototype.auth=function e(l,t){return this.rpcCall(e,u.bilibili.broadcast.v1.AuthReq,u.bilibili.broadcast.v1.AuthResp,l,t)},"name",{value:"Auth"}),Object.defineProperty(c.prototype.heartbeat=function e(l,t){return this.rpcCall(e,u.bilibili.broadcast.v1.HeartbeatReq,u.bilibili.broadcast.v1.HeartbeatResp,l,t)},"name",{value:"Heartbeat"}),Object.defineProperty(c.prototype.subscribe=function e(l,t){return this.rpcCall(e,u.bilibili.broadcast.v1.TargetPath,u.google.protobuf.Empty,l,t)},"name",{value:"Subscribe"}),Object.defineProperty(c.prototype.unsubscribe=function e(l,t){return this.rpcCall(e,u.bilibili.broadcast.v1.TargetPath,u.google.protobuf.Empty,l,t)},"name",{value:"Unsubscribe"}),Object.defineProperty(c.prototype.messageAck=function e(l,t){return this.rpcCall(e,u.bilibili.broadcast.v1.MessageAckReq,u.google.protobuf.Empty,l,t)},"name",{value:"MessageAck"}),c}(),p.LaserLogUploadResp=function(){function c(e){if(e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.taskid=l.int64();break}case 2:{n.date=l.string();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.broadcast.v1.LaserLogUploadResp)return l;let t=new u.bilibili.broadcast.v1.LaserLogUploadResp;return l.taskid!=null&&(r.Long?(t.taskid=r.Long.fromValue(l.taskid)).unsigned=!1:typeof l.taskid=="string"?t.taskid=parseInt(l.taskid,10):typeof l.taskid=="number"?t.taskid=l.taskid:typeof l.taskid=="object"&&(t.taskid=new r.LongBits(l.taskid.low>>>0,l.taskid.high>>>0).toNumber())),l.date!=null&&(t.date=String(l.date)),t},c.toObject=function(l,t){t||(t={});let i={};if(t.defaults){if(r.Long){let n=new r.Long(0,0,!1);i.taskid=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.taskid=t.longs===String?"0":0;i.date=""}return l.taskid!=null&&l.hasOwnProperty("taskid")&&(typeof l.taskid=="number"?i.taskid=t.longs===String?String(l.taskid):l.taskid:i.taskid=t.longs===String?r.Long.prototype.toString.call(l.taskid):t.longs===Number?new r.LongBits(l.taskid.low>>>0,l.taskid.high>>>0).toNumber():l.taskid),l.date!=null&&l.hasOwnProperty("date")&&(i.date=l.date),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.broadcast.v1.LaserLogUploadResp"},c}(),p.Laser=function(){function c(e,l,t){b.rpc.Service.call(this,e,l,t)}return(c.prototype=Object.create(b.rpc.Service.prototype)).constructor=c,c.create=function(l,t,i){return new this(l,t,i)},Object.defineProperty(c.prototype.watchLogUploadEvent=function e(l,t){return this.rpcCall(e,u.google.protobuf.Empty,u.bilibili.broadcast.v1.LaserLogUploadResp,l,t)},"name",{value:"WatchLogUploadEvent"}),c}(),p.Action=function(){let c={},e=Object.create(c);return e[c[0]="UNKNOWN"]=0,e[c[1]="UPDATE"]=1,e[c[2]="DELETE"]=2,e}(),p.ModResourceResp=function(){function c(e){if(e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.atcion=l.int32();break}case 2:{n.appKey=l.string();break}case 3:{n.poolName=l.string();break}case 4:{n.moduleName=l.string();break}case 5:{n.moduleVersion=l.int64();break}case 6:{n.listVersion=l.int64();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.broadcast.v1.ModResourceResp)return l;let t=new u.bilibili.broadcast.v1.ModResourceResp;switch(l.atcion){default:if(typeof l.atcion=="number"){t.atcion=l.atcion;break}break;case"UNKNOWN":case 0:t.atcion=0;break;case"UPDATE":case 1:t.atcion=1;break;case"DELETE":case 2:t.atcion=2;break}return l.appKey!=null&&(t.appKey=String(l.appKey)),l.poolName!=null&&(t.poolName=String(l.poolName)),l.moduleName!=null&&(t.moduleName=String(l.moduleName)),l.moduleVersion!=null&&(r.Long?(t.moduleVersion=r.Long.fromValue(l.moduleVersion)).unsigned=!1:typeof l.moduleVersion=="string"?t.moduleVersion=parseInt(l.moduleVersion,10):typeof l.moduleVersion=="number"?t.moduleVersion=l.moduleVersion:typeof l.moduleVersion=="object"&&(t.moduleVersion=new r.LongBits(l.moduleVersion.low>>>0,l.moduleVersion.high>>>0).toNumber())),l.listVersion!=null&&(r.Long?(t.listVersion=r.Long.fromValue(l.listVersion)).unsigned=!1:typeof l.listVersion=="string"?t.listVersion=parseInt(l.listVersion,10):typeof l.listVersion=="number"?t.listVersion=l.listVersion:typeof l.listVersion=="object"&&(t.listVersion=new r.LongBits(l.listVersion.low>>>0,l.listVersion.high>>>0).toNumber())),t},c.toObject=function(l,t){t||(t={});let i={};if(t.defaults){if(i.atcion=t.enums===String?"UNKNOWN":0,i.appKey="",i.poolName="",i.moduleName="",r.Long){let n=new r.Long(0,0,!1);i.moduleVersion=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.moduleVersion=t.longs===String?"0":0;if(r.Long){let n=new r.Long(0,0,!1);i.listVersion=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.listVersion=t.longs===String?"0":0}return l.atcion!=null&&l.hasOwnProperty("atcion")&&(i.atcion=t.enums===String?u.bilibili.broadcast.v1.Action[l.atcion]===void 0?l.atcion:u.bilibili.broadcast.v1.Action[l.atcion]:l.atcion),l.appKey!=null&&l.hasOwnProperty("appKey")&&(i.appKey=l.appKey),l.poolName!=null&&l.hasOwnProperty("poolName")&&(i.poolName=l.poolName),l.moduleName!=null&&l.hasOwnProperty("moduleName")&&(i.moduleName=l.moduleName),l.moduleVersion!=null&&l.hasOwnProperty("moduleVersion")&&(typeof l.moduleVersion=="number"?i.moduleVersion=t.longs===String?String(l.moduleVersion):l.moduleVersion:i.moduleVersion=t.longs===String?r.Long.prototype.toString.call(l.moduleVersion):t.longs===Number?new r.LongBits(l.moduleVersion.low>>>0,l.moduleVersion.high>>>0).toNumber():l.moduleVersion),l.listVersion!=null&&l.hasOwnProperty("listVersion")&&(typeof l.listVersion=="number"?i.listVersion=t.longs===String?String(l.listVersion):l.listVersion:i.listVersion=t.longs===String?r.Long.prototype.toString.call(l.listVersion):t.longs===Number?new r.LongBits(l.listVersion.low>>>0,l.listVersion.high>>>0).toNumber():l.listVersion),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.broadcast.v1.ModResourceResp"},c}(),p.ModManager=function(){function c(e,l,t){b.rpc.Service.call(this,e,l,t)}return(c.prototype=Object.create(b.rpc.Service.prototype)).constructor=c,c.create=function(l,t,i){return new this(l,t,i)},Object.defineProperty(c.prototype.watchResource=function e(l,t){return this.rpcCall(e,u.google.protobuf.Empty,u.bilibili.broadcast.v1.ModResourceResp,l,t)},"name",{value:"WatchResource"}),c}(),p.PushMessageResp=function(){function c(e){if(this.pageBlackList=[],this.pageView=[],this.metadata={},e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.oldTaskid=l.int64();break}case 2:{n.biz=l.int32();break}case 3:{n.type=l.int32();break}case 4:{n.title=l.string();break}case 5:{n.summary=l.string();break}case 6:{n.img=l.string();break}case 7:{n.link=l.string();break}case 8:{n.position=l.int32();break}case 9:{n.duration=l.int32();break}case 10:{n.expire=l.int64();break}case 11:{n.taskid=l.string();break}case 12:{n.pageBlackList&&n.pageBlackList.length||(n.pageBlackList=[]),n.pageBlackList.push(u.bilibili.broadcast.v1.PageBlackList.decode(l,l.uint32()));break}case 13:{n.pageView&&n.pageView.length||(n.pageView=[]),n.pageView.push(u.bilibili.broadcast.v1.PageView.decode(l,l.uint32()));break}case 14:{n.targetResource=u.bilibili.broadcast.v1.TargetResource.decode(l,l.uint32());break}case 15:{n.imageFrame=l.int32();break}case 16:{n.imageMarker=l.int32();break}case 17:{n.imagePosition=l.int32();break}case 18:{n.job=l.int64();break}case 19:{n.msgSource=l.string();break}case 20:{n.hideArrow=l.bool();break}case 21:{n.metadata===r.emptyObject&&(n.metadata={});let s=l.uint32()+l.pos;for(o="",a="";l.pos>>3){case 1:o=l.string();break;case 2:a=l.string();break;default:l.skipType(v&7);break}}n.metadata[o]=a;break}case 22:{n.pureImg=l.string();break}case 23:{n.displayType=l.int32();break}case 24:{n.popType=l.int32();break}case 25:{n.reserve=l.int32();break}case 26:{n.level=l.int32();break}case 27:{n.query=l.bool();break}case 28:{n.bid=l.int32();break}default:l.skipType(y&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.broadcast.v1.PushMessageResp)return l;let t=new u.bilibili.broadcast.v1.PushMessageResp;switch(l.oldTaskid!=null&&(r.Long?(t.oldTaskid=r.Long.fromValue(l.oldTaskid)).unsigned=!1:typeof l.oldTaskid=="string"?t.oldTaskid=parseInt(l.oldTaskid,10):typeof l.oldTaskid=="number"?t.oldTaskid=l.oldTaskid:typeof l.oldTaskid=="object"&&(t.oldTaskid=new r.LongBits(l.oldTaskid.low>>>0,l.oldTaskid.high>>>0).toNumber())),l.biz){default:if(typeof l.biz=="number"){t.biz=l.biz;break}break;case"BIZ_UNKNOWN":case 0:t.biz=0;break;case"BIZ_VIDEO":case 1:t.biz=1;break;case"BIZ_LIVE":case 2:t.biz=2;break;case"BIZ_ACTIVITY":case 3:t.biz=3;break}switch(l.type){default:if(typeof l.type=="number"){t.type=l.type;break}break;case"TYPE_UNKNOWN":case 0:t.type=0;break;case"TYPE_DEFAULT":case 1:t.type=1;break;case"TYPE_HOT":case 2:t.type=2;break;case"TYPE_REALTIME":case 3:t.type=3;break;case"TYPE_RECOMMEND":case 4:t.type=4;break}switch(l.title!=null&&(t.title=String(l.title)),l.summary!=null&&(t.summary=String(l.summary)),l.img!=null&&(t.img=String(l.img)),l.link!=null&&(t.link=String(l.link)),l.position){default:if(typeof l.position=="number"){t.position=l.position;break}break;case"POS_UNKNOWN":case 0:t.position=0;break;case"POS_TOP":case 1:t.position=1;break}if(l.duration!=null&&(t.duration=l.duration|0),l.expire!=null&&(r.Long?(t.expire=r.Long.fromValue(l.expire)).unsigned=!1:typeof l.expire=="string"?t.expire=parseInt(l.expire,10):typeof l.expire=="number"?t.expire=l.expire:typeof l.expire=="object"&&(t.expire=new r.LongBits(l.expire.low>>>0,l.expire.high>>>0).toNumber())),l.taskid!=null&&(t.taskid=String(l.taskid)),l.pageBlackList){if(!Array.isArray(l.pageBlackList))throw TypeError(".bilibili.broadcast.v1.PushMessageResp.pageBlackList: array expected");t.pageBlackList=[];for(let i=0;i>>0,l.job.high>>>0).toNumber())),l.msgSource!=null&&(t.msgSource=String(l.msgSource)),l.hideArrow!=null&&(t.hideArrow=!!l.hideArrow),l.metadata){if(typeof l.metadata!="object")throw TypeError(".bilibili.broadcast.v1.PushMessageResp.metadata: object expected");t.metadata={};for(let i=Object.keys(l.metadata),n=0;n>>0,l.oldTaskid.high>>>0).toNumber():l.oldTaskid),l.biz!=null&&l.hasOwnProperty("biz")&&(i.biz=t.enums===String?u.bilibili.broadcast.v1.PushMessageResp.Biz[l.biz]===void 0?l.biz:u.bilibili.broadcast.v1.PushMessageResp.Biz[l.biz]:l.biz),l.type!=null&&l.hasOwnProperty("type")&&(i.type=t.enums===String?u.bilibili.broadcast.v1.PushMessageResp.Type[l.type]===void 0?l.type:u.bilibili.broadcast.v1.PushMessageResp.Type[l.type]:l.type),l.title!=null&&l.hasOwnProperty("title")&&(i.title=l.title),l.summary!=null&&l.hasOwnProperty("summary")&&(i.summary=l.summary),l.img!=null&&l.hasOwnProperty("img")&&(i.img=l.img),l.link!=null&&l.hasOwnProperty("link")&&(i.link=l.link),l.position!=null&&l.hasOwnProperty("position")&&(i.position=t.enums===String?u.bilibili.broadcast.v1.PushMessageResp.Position[l.position]===void 0?l.position:u.bilibili.broadcast.v1.PushMessageResp.Position[l.position]:l.position),l.duration!=null&&l.hasOwnProperty("duration")&&(i.duration=l.duration),l.expire!=null&&l.hasOwnProperty("expire")&&(typeof l.expire=="number"?i.expire=t.longs===String?String(l.expire):l.expire:i.expire=t.longs===String?r.Long.prototype.toString.call(l.expire):t.longs===Number?new r.LongBits(l.expire.low>>>0,l.expire.high>>>0).toNumber():l.expire),l.taskid!=null&&l.hasOwnProperty("taskid")&&(i.taskid=l.taskid),l.pageBlackList&&l.pageBlackList.length){i.pageBlackList=[];for(let o=0;o>>0,l.job.high>>>0).toNumber():l.job),l.msgSource!=null&&l.hasOwnProperty("msgSource")&&(i.msgSource=l.msgSource),l.hideArrow!=null&&l.hasOwnProperty("hideArrow")&&(i.hideArrow=l.hideArrow);let n;if(l.metadata&&(n=Object.keys(l.metadata)).length){i.metadata={};for(let o=0;o>>3){case 1:{n.id=l.string();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.broadcast.v1.PageBlackList)return l;let t=new u.bilibili.broadcast.v1.PageBlackList;return l.id!=null&&(t.id=String(l.id)),t},c.toObject=function(l,t){t||(t={});let i={};return t.defaults&&(i.id=""),l.id!=null&&l.hasOwnProperty("id")&&(i.id=l.id),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.broadcast.v1.PageBlackList"},c}(),p.PageView=function(){function c(e){if(e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.id=l.string();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.broadcast.v1.PageView)return l;let t=new u.bilibili.broadcast.v1.PageView;return l.id!=null&&(t.id=String(l.id)),t},c.toObject=function(l,t){t||(t={});let i={};return t.defaults&&(i.id=""),l.id!=null&&l.hasOwnProperty("id")&&(i.id=l.id),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.broadcast.v1.PageView"},c}(),p.LinkType=function(){let c={},e=Object.create(c);return e[c[0]="LINK_TYPE_UNKNOWN"]=0,e[c[1]="LINK_TYPE_BANGUMI"]=1,e[c[2]="LINK_TYPE_VIDEO"]=2,e[c[3]="LINK_TYPE_LIVE"]=3,e}(),p.TargetResource=function(){function c(e){if(this.Resource={},e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.Type=l.int32();break}case 2:{n.Resource===r.emptyObject&&(n.Resource={});let s=l.uint32()+l.pos;for(o="",a="";l.pos>>3){case 1:o=l.string();break;case 2:a=l.string();break;default:l.skipType(v&7);break}}n.Resource[o]=a;break}default:l.skipType(y&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.broadcast.v1.TargetResource)return l;let t=new u.bilibili.broadcast.v1.TargetResource;switch(l.Type){default:if(typeof l.Type=="number"){t.Type=l.Type;break}break;case"LINK_TYPE_UNKNOWN":case 0:t.Type=0;break;case"LINK_TYPE_BANGUMI":case 1:t.Type=1;break;case"LINK_TYPE_VIDEO":case 2:t.Type=2;break;case"LINK_TYPE_LIVE":case 3:t.Type=3;break}if(l.Resource){if(typeof l.Resource!="object")throw TypeError(".bilibili.broadcast.v1.TargetResource.Resource: object expected");t.Resource={};for(let i=Object.keys(l.Resource),n=0;n>>3){default:l.skipType(o&7);break}}return n},c.fromObject=function(l){return l instanceof u.bilibili.broadcast.v1.RoomJoinEvent?l:new u.bilibili.broadcast.v1.RoomJoinEvent},c.toObject=function(){return{}},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.broadcast.v1.RoomJoinEvent"},c}(),p.RoomLeaveEvent=function(){function c(e){if(e)for(let l=Object.keys(e),t=0;t>>3){default:l.skipType(o&7);break}}return n},c.fromObject=function(l){return l instanceof u.bilibili.broadcast.v1.RoomLeaveEvent?l:new u.bilibili.broadcast.v1.RoomLeaveEvent},c.toObject=function(){return{}},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.broadcast.v1.RoomLeaveEvent"},c}(),p.RoomOnlineEvent=function(){function c(e){if(e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.online=l.int32();break}case 2:{n.allOnline=l.int32();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.broadcast.v1.RoomOnlineEvent)return l;let t=new u.bilibili.broadcast.v1.RoomOnlineEvent;return l.online!=null&&(t.online=l.online|0),l.allOnline!=null&&(t.allOnline=l.allOnline|0),t},c.toObject=function(l,t){t||(t={});let i={};return t.defaults&&(i.online=0,i.allOnline=0),l.online!=null&&l.hasOwnProperty("online")&&(i.online=l.online),l.allOnline!=null&&l.hasOwnProperty("allOnline")&&(i.allOnline=l.allOnline),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.broadcast.v1.RoomOnlineEvent"},c}(),p.RoomMessageEvent=function(){function c(e){if(e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.targetPath=l.string();break}case 2:{n.body=u.google.protobuf.Any.decode(l,l.uint32());break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.broadcast.v1.RoomMessageEvent)return l;let t=new u.bilibili.broadcast.v1.RoomMessageEvent;if(l.targetPath!=null&&(t.targetPath=String(l.targetPath)),l.body!=null){if(typeof l.body!="object")throw TypeError(".bilibili.broadcast.v1.RoomMessageEvent.body: object expected");t.body=u.google.protobuf.Any.fromObject(l.body)}return t},c.toObject=function(l,t){t||(t={});let i={};return t.defaults&&(i.targetPath="",i.body=null),l.targetPath!=null&&l.hasOwnProperty("targetPath")&&(i.targetPath=l.targetPath),l.body!=null&&l.hasOwnProperty("body")&&(i.body=u.google.protobuf.Any.toObject(l.body,t)),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.broadcast.v1.RoomMessageEvent"},c}(),p.RoomErrorEvent=function(){function c(e){if(e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.status=u.bilibili.rpc.Status.decode(l,l.uint32());break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.broadcast.v1.RoomErrorEvent)return l;let t=new u.bilibili.broadcast.v1.RoomErrorEvent;if(l.status!=null){if(typeof l.status!="object")throw TypeError(".bilibili.broadcast.v1.RoomErrorEvent.status: object expected");t.status=u.bilibili.rpc.Status.fromObject(l.status)}return t},c.toObject=function(l,t){t||(t={});let i={};return t.defaults&&(i.status=null),l.status!=null&&l.hasOwnProperty("status")&&(i.status=u.bilibili.rpc.Status.toObject(l.status,t)),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.broadcast.v1.RoomErrorEvent"},c}(),p.RoomReq=function(){function c(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.id=t.string();break}case 2:{o.join=u.bilibili.broadcast.v1.RoomJoinEvent.decode(t,t.uint32());break}case 3:{o.leave=u.bilibili.broadcast.v1.RoomLeaveEvent.decode(t,t.uint32());break}case 4:{o.online=u.bilibili.broadcast.v1.RoomOnlineEvent.decode(t,t.uint32());break}case 5:{o.msg=u.bilibili.broadcast.v1.RoomMessageEvent.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},c.fromObject=function(t){if(t instanceof u.bilibili.broadcast.v1.RoomReq)return t;let i=new u.bilibili.broadcast.v1.RoomReq;if(t.id!=null&&(i.id=String(t.id)),t.join!=null){if(typeof t.join!="object")throw TypeError(".bilibili.broadcast.v1.RoomReq.join: object expected");i.join=u.bilibili.broadcast.v1.RoomJoinEvent.fromObject(t.join)}if(t.leave!=null){if(typeof t.leave!="object")throw TypeError(".bilibili.broadcast.v1.RoomReq.leave: object expected");i.leave=u.bilibili.broadcast.v1.RoomLeaveEvent.fromObject(t.leave)}if(t.online!=null){if(typeof t.online!="object")throw TypeError(".bilibili.broadcast.v1.RoomReq.online: object expected");i.online=u.bilibili.broadcast.v1.RoomOnlineEvent.fromObject(t.online)}if(t.msg!=null){if(typeof t.msg!="object")throw TypeError(".bilibili.broadcast.v1.RoomReq.msg: object expected");i.msg=u.bilibili.broadcast.v1.RoomMessageEvent.fromObject(t.msg)}return i},c.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.id=""),t.id!=null&&t.hasOwnProperty("id")&&(n.id=t.id),t.join!=null&&t.hasOwnProperty("join")&&(n.join=u.bilibili.broadcast.v1.RoomJoinEvent.toObject(t.join,i),i.oneofs&&(n.event="join")),t.leave!=null&&t.hasOwnProperty("leave")&&(n.leave=u.bilibili.broadcast.v1.RoomLeaveEvent.toObject(t.leave,i),i.oneofs&&(n.event="leave")),t.online!=null&&t.hasOwnProperty("online")&&(n.online=u.bilibili.broadcast.v1.RoomOnlineEvent.toObject(t.online,i),i.oneofs&&(n.event="online")),t.msg!=null&&t.hasOwnProperty("msg")&&(n.msg=u.bilibili.broadcast.v1.RoomMessageEvent.toObject(t.msg,i),i.oneofs&&(n.event="msg")),n},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.v1.RoomReq"},c}(),p.RoomResp=function(){function c(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.id=t.string();break}case 2:{o.join=u.bilibili.broadcast.v1.RoomJoinEvent.decode(t,t.uint32());break}case 3:{o.leave=u.bilibili.broadcast.v1.RoomLeaveEvent.decode(t,t.uint32());break}case 4:{o.online=u.bilibili.broadcast.v1.RoomOnlineEvent.decode(t,t.uint32());break}case 5:{o.msg=u.bilibili.broadcast.v1.RoomMessageEvent.decode(t,t.uint32());break}case 6:{o.err=u.bilibili.broadcast.v1.RoomErrorEvent.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},c.fromObject=function(t){if(t instanceof u.bilibili.broadcast.v1.RoomResp)return t;let i=new u.bilibili.broadcast.v1.RoomResp;if(t.id!=null&&(i.id=String(t.id)),t.join!=null){if(typeof t.join!="object")throw TypeError(".bilibili.broadcast.v1.RoomResp.join: object expected");i.join=u.bilibili.broadcast.v1.RoomJoinEvent.fromObject(t.join)}if(t.leave!=null){if(typeof t.leave!="object")throw TypeError(".bilibili.broadcast.v1.RoomResp.leave: object expected");i.leave=u.bilibili.broadcast.v1.RoomLeaveEvent.fromObject(t.leave)}if(t.online!=null){if(typeof t.online!="object")throw TypeError(".bilibili.broadcast.v1.RoomResp.online: object expected");i.online=u.bilibili.broadcast.v1.RoomOnlineEvent.fromObject(t.online)}if(t.msg!=null){if(typeof t.msg!="object")throw TypeError(".bilibili.broadcast.v1.RoomResp.msg: object expected");i.msg=u.bilibili.broadcast.v1.RoomMessageEvent.fromObject(t.msg)}if(t.err!=null){if(typeof t.err!="object")throw TypeError(".bilibili.broadcast.v1.RoomResp.err: object expected");i.err=u.bilibili.broadcast.v1.RoomErrorEvent.fromObject(t.err)}return i},c.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.id=""),t.id!=null&&t.hasOwnProperty("id")&&(n.id=t.id),t.join!=null&&t.hasOwnProperty("join")&&(n.join=u.bilibili.broadcast.v1.RoomJoinEvent.toObject(t.join,i),i.oneofs&&(n.event="join")),t.leave!=null&&t.hasOwnProperty("leave")&&(n.leave=u.bilibili.broadcast.v1.RoomLeaveEvent.toObject(t.leave,i),i.oneofs&&(n.event="leave")),t.online!=null&&t.hasOwnProperty("online")&&(n.online=u.bilibili.broadcast.v1.RoomOnlineEvent.toObject(t.online,i),i.oneofs&&(n.event="online")),t.msg!=null&&t.hasOwnProperty("msg")&&(n.msg=u.bilibili.broadcast.v1.RoomMessageEvent.toObject(t.msg,i),i.oneofs&&(n.event="msg")),t.err!=null&&t.hasOwnProperty("err")&&(n.err=u.bilibili.broadcast.v1.RoomErrorEvent.toObject(t.err,i),i.oneofs&&(n.event="err")),n},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.broadcast.v1.RoomResp"},c}(),p.BroadcastRoom=function(){function c(e,l,t){b.rpc.Service.call(this,e,l,t)}return(c.prototype=Object.create(b.rpc.Service.prototype)).constructor=c,c.create=function(l,t,i){return new this(l,t,i)},Object.defineProperty(c.prototype.enter=function e(l,t){return this.rpcCall(e,u.bilibili.broadcast.v1.RoomReq,u.bilibili.broadcast.v1.RoomResp,l,t)},"name",{value:"Enter"}),c}(),p.TestResp=function(){function c(e){if(e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.taskid=l.int64();break}case 2:{n.timestamp=l.int64();break}case 3:{n.message=l.string();break}case 4:{n.extra=u.google.protobuf.Any.decode(l,l.uint32());break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.broadcast.v1.TestResp)return l;let t=new u.bilibili.broadcast.v1.TestResp;if(l.taskid!=null&&(r.Long?(t.taskid=r.Long.fromValue(l.taskid)).unsigned=!1:typeof l.taskid=="string"?t.taskid=parseInt(l.taskid,10):typeof l.taskid=="number"?t.taskid=l.taskid:typeof l.taskid=="object"&&(t.taskid=new r.LongBits(l.taskid.low>>>0,l.taskid.high>>>0).toNumber())),l.timestamp!=null&&(r.Long?(t.timestamp=r.Long.fromValue(l.timestamp)).unsigned=!1:typeof l.timestamp=="string"?t.timestamp=parseInt(l.timestamp,10):typeof l.timestamp=="number"?t.timestamp=l.timestamp:typeof l.timestamp=="object"&&(t.timestamp=new r.LongBits(l.timestamp.low>>>0,l.timestamp.high>>>0).toNumber())),l.message!=null&&(t.message=String(l.message)),l.extra!=null){if(typeof l.extra!="object")throw TypeError(".bilibili.broadcast.v1.TestResp.extra: object expected");t.extra=u.google.protobuf.Any.fromObject(l.extra)}return t},c.toObject=function(l,t){t||(t={});let i={};if(t.defaults){if(r.Long){let n=new r.Long(0,0,!1);i.taskid=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.taskid=t.longs===String?"0":0;if(r.Long){let n=new r.Long(0,0,!1);i.timestamp=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.timestamp=t.longs===String?"0":0;i.message="",i.extra=null}return l.taskid!=null&&l.hasOwnProperty("taskid")&&(typeof l.taskid=="number"?i.taskid=t.longs===String?String(l.taskid):l.taskid:i.taskid=t.longs===String?r.Long.prototype.toString.call(l.taskid):t.longs===Number?new r.LongBits(l.taskid.low>>>0,l.taskid.high>>>0).toNumber():l.taskid),l.timestamp!=null&&l.hasOwnProperty("timestamp")&&(typeof l.timestamp=="number"?i.timestamp=t.longs===String?String(l.timestamp):l.timestamp:i.timestamp=t.longs===String?r.Long.prototype.toString.call(l.timestamp):t.longs===Number?new r.LongBits(l.timestamp.low>>>0,l.timestamp.high>>>0).toNumber():l.timestamp),l.message!=null&&l.hasOwnProperty("message")&&(i.message=l.message),l.extra!=null&&l.hasOwnProperty("extra")&&(i.extra=u.google.protobuf.Any.toObject(l.extra,t)),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.broadcast.v1.TestResp"},c}(),p.Test=function(){function c(e,l,t){b.rpc.Service.call(this,e,l,t)}return(c.prototype=Object.create(b.rpc.Service.prototype)).constructor=c,c.create=function(l,t,i){return new this(l,t,i)},Object.defineProperty(c.prototype.watchTestEvent=function e(l,t){return this.rpcCall(e,u.google.protobuf.Empty,u.bilibili.broadcast.v1.TestResp,l,t)},"name",{value:"WatchTestEvent"}),c}(),p}(),d.v2=function(){let p={};return p.LaserEventResp=function(){function c(e){if(e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.taskid=l.int64();break}case 2:{n.action=l.string();break}case 3:{n.params=l.string();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.broadcast.v2.LaserEventResp)return l;let t=new u.bilibili.broadcast.v2.LaserEventResp;return l.taskid!=null&&(r.Long?(t.taskid=r.Long.fromValue(l.taskid)).unsigned=!1:typeof l.taskid=="string"?t.taskid=parseInt(l.taskid,10):typeof l.taskid=="number"?t.taskid=l.taskid:typeof l.taskid=="object"&&(t.taskid=new r.LongBits(l.taskid.low>>>0,l.taskid.high>>>0).toNumber())),l.action!=null&&(t.action=String(l.action)),l.params!=null&&(t.params=String(l.params)),t},c.toObject=function(l,t){t||(t={});let i={};if(t.defaults){if(r.Long){let n=new r.Long(0,0,!1);i.taskid=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.taskid=t.longs===String?"0":0;i.action="",i.params=""}return l.taskid!=null&&l.hasOwnProperty("taskid")&&(typeof l.taskid=="number"?i.taskid=t.longs===String?String(l.taskid):l.taskid:i.taskid=t.longs===String?r.Long.prototype.toString.call(l.taskid):t.longs===Number?new r.LongBits(l.taskid.low>>>0,l.taskid.high>>>0).toNumber():l.taskid),l.action!=null&&l.hasOwnProperty("action")&&(i.action=l.action),l.params!=null&&l.hasOwnProperty("params")&&(i.params=l.params),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.broadcast.v2.LaserEventResp"},c}(),p.Laser=function(){function c(e,l,t){b.rpc.Service.call(this,e,l,t)}return(c.prototype=Object.create(b.rpc.Service.prototype)).constructor=c,c.create=function(l,t,i){return new this(l,t,i)},Object.defineProperty(c.prototype.watchEvent=function e(l,t){return this.rpcCall(e,u.google.protobuf.Empty,u.bilibili.broadcast.v2.LaserEventResp,l,t)},"name",{value:"WatchEvent"}),c}(),p}(),d}(),O.cheese=function(){let d={};return d.gateway=function(){let p={};return p.player=function(){let c={};return c.v1=function(){let e={};return e.PlayURL=function(){function l(t,i,n){b.rpc.Service.call(this,t,i,n)}return(l.prototype=Object.create(b.rpc.Service.prototype)).constructor=l,l.create=function(i,n,o){return new this(i,n,o)},Object.defineProperty(l.prototype.playView=function t(i,n){return this.rpcCall(t,u.bilibili.cheese.gateway.player.v1.PlayViewReq,u.bilibili.cheese.gateway.player.v1.PlayViewReply,i,n)},"name",{value:"PlayView"}),Object.defineProperty(l.prototype.project=function t(i,n){return this.rpcCall(t,u.bilibili.cheese.gateway.player.v1.ProjectReq,u.bilibili.cheese.gateway.player.v1.ProjectReply,i,n)},"name",{value:"Project"}),l}(),e.PlayViewReq=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.epId=i.int64();break}case 2:{a.cid=i.int64();break}case 3:{a.qn=i.int64();break}case 4:{a.fnver=i.int32();break}case 5:{a.fnval=i.int32();break}case 6:{a.download=i.uint32();break}case 7:{a.forceHost=i.int32();break}case 8:{a.fourk=i.bool();break}case 9:{a.spmid=i.string();break}case 10:{a.fromSpmid=i.string();break}case 11:{a.teenagersMode=i.int32();break}case 12:{a.preferCodecType=i.int32();break}case 13:{a.isPreview=i.bool();break}case 14:{a.isRawStream=i.bool();break}case 15:{a.securityLevel=i.int32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.cheese.gateway.player.v1.PlayViewReq)return i;let n=new u.bilibili.cheese.gateway.player.v1.PlayViewReq;switch(i.epId!=null&&(r.Long?(n.epId=r.Long.fromValue(i.epId)).unsigned=!1:typeof i.epId=="string"?n.epId=parseInt(i.epId,10):typeof i.epId=="number"?n.epId=i.epId:typeof i.epId=="object"&&(n.epId=new r.LongBits(i.epId.low>>>0,i.epId.high>>>0).toNumber())),i.cid!=null&&(r.Long?(n.cid=r.Long.fromValue(i.cid)).unsigned=!1:typeof i.cid=="string"?n.cid=parseInt(i.cid,10):typeof i.cid=="number"?n.cid=i.cid:typeof i.cid=="object"&&(n.cid=new r.LongBits(i.cid.low>>>0,i.cid.high>>>0).toNumber())),i.qn!=null&&(r.Long?(n.qn=r.Long.fromValue(i.qn)).unsigned=!1:typeof i.qn=="string"?n.qn=parseInt(i.qn,10):typeof i.qn=="number"?n.qn=i.qn:typeof i.qn=="object"&&(n.qn=new r.LongBits(i.qn.low>>>0,i.qn.high>>>0).toNumber())),i.fnver!=null&&(n.fnver=i.fnver|0),i.fnval!=null&&(n.fnval=i.fnval|0),i.download!=null&&(n.download=i.download>>>0),i.forceHost!=null&&(n.forceHost=i.forceHost|0),i.fourk!=null&&(n.fourk=!!i.fourk),i.spmid!=null&&(n.spmid=String(i.spmid)),i.fromSpmid!=null&&(n.fromSpmid=String(i.fromSpmid)),i.teenagersMode!=null&&(n.teenagersMode=i.teenagersMode|0),i.preferCodecType){default:if(typeof i.preferCodecType=="number"){n.preferCodecType=i.preferCodecType;break}break;case"NOCODE":case 0:n.preferCodecType=0;break;case"CODE264":case 1:n.preferCodecType=1;break;case"CODE265":case 2:n.preferCodecType=2;break;case"CODEAV1":case 3:n.preferCodecType=3;break}switch(i.isPreview!=null&&(n.isPreview=!!i.isPreview),i.isRawStream!=null&&(n.isRawStream=!!i.isRawStream),i.securityLevel){default:if(typeof i.securityLevel=="number"){n.securityLevel=i.securityLevel;break}break;case"LEVEL_UNKNOWN":case 0:n.securityLevel=0;break;case"LEVEL_L1":case 1:n.securityLevel=1;break;case"LEVEL_L2":case 2:n.securityLevel=2;break;case"LEVEL_L3":case 3:n.securityLevel=3;break}return n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.epId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.epId=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.cid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.cid=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.qn=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.qn=n.longs===String?"0":0;o.fnver=0,o.fnval=0,o.download=0,o.forceHost=0,o.fourk=!1,o.spmid="",o.fromSpmid="",o.teenagersMode=0,o.preferCodecType=n.enums===String?"NOCODE":0,o.isPreview=!1,o.isRawStream=!1,o.securityLevel=n.enums===String?"LEVEL_UNKNOWN":0}return i.epId!=null&&i.hasOwnProperty("epId")&&(typeof i.epId=="number"?o.epId=n.longs===String?String(i.epId):i.epId:o.epId=n.longs===String?r.Long.prototype.toString.call(i.epId):n.longs===Number?new r.LongBits(i.epId.low>>>0,i.epId.high>>>0).toNumber():i.epId),i.cid!=null&&i.hasOwnProperty("cid")&&(typeof i.cid=="number"?o.cid=n.longs===String?String(i.cid):i.cid:o.cid=n.longs===String?r.Long.prototype.toString.call(i.cid):n.longs===Number?new r.LongBits(i.cid.low>>>0,i.cid.high>>>0).toNumber():i.cid),i.qn!=null&&i.hasOwnProperty("qn")&&(typeof i.qn=="number"?o.qn=n.longs===String?String(i.qn):i.qn:o.qn=n.longs===String?r.Long.prototype.toString.call(i.qn):n.longs===Number?new r.LongBits(i.qn.low>>>0,i.qn.high>>>0).toNumber():i.qn),i.fnver!=null&&i.hasOwnProperty("fnver")&&(o.fnver=i.fnver),i.fnval!=null&&i.hasOwnProperty("fnval")&&(o.fnval=i.fnval),i.download!=null&&i.hasOwnProperty("download")&&(o.download=i.download),i.forceHost!=null&&i.hasOwnProperty("forceHost")&&(o.forceHost=i.forceHost),i.fourk!=null&&i.hasOwnProperty("fourk")&&(o.fourk=i.fourk),i.spmid!=null&&i.hasOwnProperty("spmid")&&(o.spmid=i.spmid),i.fromSpmid!=null&&i.hasOwnProperty("fromSpmid")&&(o.fromSpmid=i.fromSpmid),i.teenagersMode!=null&&i.hasOwnProperty("teenagersMode")&&(o.teenagersMode=i.teenagersMode),i.preferCodecType!=null&&i.hasOwnProperty("preferCodecType")&&(o.preferCodecType=n.enums===String?u.bilibili.app.playurl.v1.CodeType[i.preferCodecType]===void 0?i.preferCodecType:u.bilibili.app.playurl.v1.CodeType[i.preferCodecType]:i.preferCodecType),i.isPreview!=null&&i.hasOwnProperty("isPreview")&&(o.isPreview=i.isPreview),i.isRawStream!=null&&i.hasOwnProperty("isRawStream")&&(o.isRawStream=i.isRawStream),i.securityLevel!=null&&i.hasOwnProperty("securityLevel")&&(o.securityLevel=n.enums===String?u.bilibili.cheese.gateway.player.v1.SecurityLevel[i.securityLevel]===void 0?i.securityLevel:u.bilibili.cheese.gateway.player.v1.SecurityLevel[i.securityLevel]:i.securityLevel),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.cheese.gateway.player.v1.PlayViewReq"},l}(),e.SecurityLevel=function(){let l={},t=Object.create(l);return t[l[0]="LEVEL_UNKNOWN"]=0,t[l[1]="LEVEL_L1"]=1,t[l[2]="LEVEL_L2"]=2,t[l[3]="LEVEL_L3"]=3,t}(),e.ProjectReq=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.epId=i.int64();break}case 2:{a.cid=i.int64();break}case 3:{a.qn=i.int64();break}case 4:{a.fnver=i.int32();break}case 5:{a.fnval=i.int32();break}case 6:{a.download=i.uint32();break}case 7:{a.forceHost=i.int32();break}case 8:{a.fourk=i.bool();break}case 9:{a.spmid=i.string();break}case 10:{a.fromSpmid=i.string();break}case 11:{a.protocol=i.int32();break}case 12:{a.deviceType=i.int32();break}case 13:{a.flvProj=i.bool();break}case 14:{a.aid=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.cheese.gateway.player.v1.ProjectReq)return i;let n=new u.bilibili.cheese.gateway.player.v1.ProjectReq;return i.epId!=null&&(r.Long?(n.epId=r.Long.fromValue(i.epId)).unsigned=!1:typeof i.epId=="string"?n.epId=parseInt(i.epId,10):typeof i.epId=="number"?n.epId=i.epId:typeof i.epId=="object"&&(n.epId=new r.LongBits(i.epId.low>>>0,i.epId.high>>>0).toNumber())),i.cid!=null&&(r.Long?(n.cid=r.Long.fromValue(i.cid)).unsigned=!1:typeof i.cid=="string"?n.cid=parseInt(i.cid,10):typeof i.cid=="number"?n.cid=i.cid:typeof i.cid=="object"&&(n.cid=new r.LongBits(i.cid.low>>>0,i.cid.high>>>0).toNumber())),i.qn!=null&&(r.Long?(n.qn=r.Long.fromValue(i.qn)).unsigned=!1:typeof i.qn=="string"?n.qn=parseInt(i.qn,10):typeof i.qn=="number"?n.qn=i.qn:typeof i.qn=="object"&&(n.qn=new r.LongBits(i.qn.low>>>0,i.qn.high>>>0).toNumber())),i.fnver!=null&&(n.fnver=i.fnver|0),i.fnval!=null&&(n.fnval=i.fnval|0),i.download!=null&&(n.download=i.download>>>0),i.forceHost!=null&&(n.forceHost=i.forceHost|0),i.fourk!=null&&(n.fourk=!!i.fourk),i.spmid!=null&&(n.spmid=String(i.spmid)),i.fromSpmid!=null&&(n.fromSpmid=String(i.fromSpmid)),i.protocol!=null&&(n.protocol=i.protocol|0),i.deviceType!=null&&(n.deviceType=i.deviceType|0),i.flvProj!=null&&(n.flvProj=!!i.flvProj),i.aid!=null&&(r.Long?(n.aid=r.Long.fromValue(i.aid)).unsigned=!1:typeof i.aid=="string"?n.aid=parseInt(i.aid,10):typeof i.aid=="number"?n.aid=i.aid:typeof i.aid=="object"&&(n.aid=new r.LongBits(i.aid.low>>>0,i.aid.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.epId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.epId=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.cid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.cid=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.qn=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.qn=n.longs===String?"0":0;if(o.fnver=0,o.fnval=0,o.download=0,o.forceHost=0,o.fourk=!1,o.spmid="",o.fromSpmid="",o.protocol=0,o.deviceType=0,o.flvProj=!1,r.Long){let a=new r.Long(0,0,!1);o.aid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.aid=n.longs===String?"0":0}return i.epId!=null&&i.hasOwnProperty("epId")&&(typeof i.epId=="number"?o.epId=n.longs===String?String(i.epId):i.epId:o.epId=n.longs===String?r.Long.prototype.toString.call(i.epId):n.longs===Number?new r.LongBits(i.epId.low>>>0,i.epId.high>>>0).toNumber():i.epId),i.cid!=null&&i.hasOwnProperty("cid")&&(typeof i.cid=="number"?o.cid=n.longs===String?String(i.cid):i.cid:o.cid=n.longs===String?r.Long.prototype.toString.call(i.cid):n.longs===Number?new r.LongBits(i.cid.low>>>0,i.cid.high>>>0).toNumber():i.cid),i.qn!=null&&i.hasOwnProperty("qn")&&(typeof i.qn=="number"?o.qn=n.longs===String?String(i.qn):i.qn:o.qn=n.longs===String?r.Long.prototype.toString.call(i.qn):n.longs===Number?new r.LongBits(i.qn.low>>>0,i.qn.high>>>0).toNumber():i.qn),i.fnver!=null&&i.hasOwnProperty("fnver")&&(o.fnver=i.fnver),i.fnval!=null&&i.hasOwnProperty("fnval")&&(o.fnval=i.fnval),i.download!=null&&i.hasOwnProperty("download")&&(o.download=i.download),i.forceHost!=null&&i.hasOwnProperty("forceHost")&&(o.forceHost=i.forceHost),i.fourk!=null&&i.hasOwnProperty("fourk")&&(o.fourk=i.fourk),i.spmid!=null&&i.hasOwnProperty("spmid")&&(o.spmid=i.spmid),i.fromSpmid!=null&&i.hasOwnProperty("fromSpmid")&&(o.fromSpmid=i.fromSpmid),i.protocol!=null&&i.hasOwnProperty("protocol")&&(o.protocol=i.protocol),i.deviceType!=null&&i.hasOwnProperty("deviceType")&&(o.deviceType=i.deviceType),i.flvProj!=null&&i.hasOwnProperty("flvProj")&&(o.flvProj=i.flvProj),i.aid!=null&&i.hasOwnProperty("aid")&&(typeof i.aid=="number"?o.aid=n.longs===String?String(i.aid):i.aid:o.aid=n.longs===String?r.Long.prototype.toString.call(i.aid):n.longs===Number?new r.LongBits(i.aid.low>>>0,i.aid.high>>>0).toNumber():i.aid),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.cheese.gateway.player.v1.ProjectReq"},l}(),e.PlayViewReply=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.videoInfo=u.bilibili.app.playurl.v1.VideoInfo.decode(i,i.uint32());break}case 2:{a.playConf=u.bilibili.cheese.gateway.player.v1.PlayAbilityConf.decode(i,i.uint32());break}case 3:{a.business=u.bilibili.cheese.gateway.player.v1.PlayViewBusinessInfo.decode(i,i.uint32());break}case 4:{a.riskControl=u.bilibili.cheese.gateway.player.v1.RiskControl.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.cheese.gateway.player.v1.PlayViewReply)return i;let n=new u.bilibili.cheese.gateway.player.v1.PlayViewReply;if(i.videoInfo!=null){if(typeof i.videoInfo!="object")throw TypeError(".bilibili.cheese.gateway.player.v1.PlayViewReply.videoInfo: object expected");n.videoInfo=u.bilibili.app.playurl.v1.VideoInfo.fromObject(i.videoInfo)}if(i.playConf!=null){if(typeof i.playConf!="object")throw TypeError(".bilibili.cheese.gateway.player.v1.PlayViewReply.playConf: object expected");n.playConf=u.bilibili.cheese.gateway.player.v1.PlayAbilityConf.fromObject(i.playConf)}if(i.business!=null){if(typeof i.business!="object")throw TypeError(".bilibili.cheese.gateway.player.v1.PlayViewReply.business: object expected");n.business=u.bilibili.cheese.gateway.player.v1.PlayViewBusinessInfo.fromObject(i.business)}if(i.riskControl!=null){if(typeof i.riskControl!="object")throw TypeError(".bilibili.cheese.gateway.player.v1.PlayViewReply.riskControl: object expected");n.riskControl=u.bilibili.cheese.gateway.player.v1.RiskControl.fromObject(i.riskControl)}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.videoInfo=null,o.playConf=null,o.business=null,o.riskControl=null),i.videoInfo!=null&&i.hasOwnProperty("videoInfo")&&(o.videoInfo=u.bilibili.app.playurl.v1.VideoInfo.toObject(i.videoInfo,n)),i.playConf!=null&&i.hasOwnProperty("playConf")&&(o.playConf=u.bilibili.cheese.gateway.player.v1.PlayAbilityConf.toObject(i.playConf,n)),i.business!=null&&i.hasOwnProperty("business")&&(o.business=u.bilibili.cheese.gateway.player.v1.PlayViewBusinessInfo.toObject(i.business,n)),i.riskControl!=null&&i.hasOwnProperty("riskControl")&&(o.riskControl=u.bilibili.cheese.gateway.player.v1.RiskControl.toObject(i.riskControl,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.cheese.gateway.player.v1.PlayViewReply"},l}(),e.PlayAbilityConf=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.backgroundPlayDisable=i.bool();break}case 2:{a.flipDisable=i.bool();break}case 3:{a.castDisable=i.bool();break}case 4:{a.feedbackDisable=i.bool();break}case 5:{a.subtitleDisable=i.bool();break}case 6:{a.playbackRateDisable=i.bool();break}case 7:{a.timeUpDisable=i.bool();break}case 8:{a.playbackModeDisable=i.bool();break}case 9:{a.scaleModeDisable=i.bool();break}case 10:{a.likeDisable=i.bool();break}case 11:{a.dislikeDisable=i.bool();break}case 12:{a.coinDisable=i.bool();break}case 13:{a.elecDisable=i.bool();break}case 14:{a.shareDisable=i.bool();break}case 15:{a.screenShotDisable=i.bool();break}case 16:{a.lockScreenDisable=i.bool();break}case 17:{a.recommendDisable=i.bool();break}case 18:{a.playbackSpeedDisable=i.bool();break}case 19:{a.definitionDisable=i.bool();break}case 20:{a.selectionsDisable=i.bool();break}case 21:{a.nextDisable=i.bool();break}case 22:{a.editDmDisable=i.bool();break}case 25:{a.outerDmDisable=i.bool();break}case 26:{a.innerDmDisable=i.bool();break}case 27:{a.smallWindowDisable=i.bool();break}case 28:{a.castDisableReasonCode=i.string();break}case 29:{a.castDisableReasonText=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.cheese.gateway.player.v1.PlayAbilityConf)return i;let n=new u.bilibili.cheese.gateway.player.v1.PlayAbilityConf;return i.backgroundPlayDisable!=null&&(n.backgroundPlayDisable=!!i.backgroundPlayDisable),i.flipDisable!=null&&(n.flipDisable=!!i.flipDisable),i.castDisable!=null&&(n.castDisable=!!i.castDisable),i.feedbackDisable!=null&&(n.feedbackDisable=!!i.feedbackDisable),i.subtitleDisable!=null&&(n.subtitleDisable=!!i.subtitleDisable),i.playbackRateDisable!=null&&(n.playbackRateDisable=!!i.playbackRateDisable),i.timeUpDisable!=null&&(n.timeUpDisable=!!i.timeUpDisable),i.playbackModeDisable!=null&&(n.playbackModeDisable=!!i.playbackModeDisable),i.scaleModeDisable!=null&&(n.scaleModeDisable=!!i.scaleModeDisable),i.likeDisable!=null&&(n.likeDisable=!!i.likeDisable),i.dislikeDisable!=null&&(n.dislikeDisable=!!i.dislikeDisable),i.coinDisable!=null&&(n.coinDisable=!!i.coinDisable),i.elecDisable!=null&&(n.elecDisable=!!i.elecDisable),i.shareDisable!=null&&(n.shareDisable=!!i.shareDisable),i.screenShotDisable!=null&&(n.screenShotDisable=!!i.screenShotDisable),i.lockScreenDisable!=null&&(n.lockScreenDisable=!!i.lockScreenDisable),i.recommendDisable!=null&&(n.recommendDisable=!!i.recommendDisable),i.playbackSpeedDisable!=null&&(n.playbackSpeedDisable=!!i.playbackSpeedDisable),i.definitionDisable!=null&&(n.definitionDisable=!!i.definitionDisable),i.selectionsDisable!=null&&(n.selectionsDisable=!!i.selectionsDisable),i.nextDisable!=null&&(n.nextDisable=!!i.nextDisable),i.editDmDisable!=null&&(n.editDmDisable=!!i.editDmDisable),i.outerDmDisable!=null&&(n.outerDmDisable=!!i.outerDmDisable),i.innerDmDisable!=null&&(n.innerDmDisable=!!i.innerDmDisable),i.smallWindowDisable!=null&&(n.smallWindowDisable=!!i.smallWindowDisable),i.castDisableReasonCode!=null&&(n.castDisableReasonCode=String(i.castDisableReasonCode)),i.castDisableReasonText!=null&&(n.castDisableReasonText=String(i.castDisableReasonText)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.backgroundPlayDisable=!1,o.flipDisable=!1,o.castDisable=!1,o.feedbackDisable=!1,o.subtitleDisable=!1,o.playbackRateDisable=!1,o.timeUpDisable=!1,o.playbackModeDisable=!1,o.scaleModeDisable=!1,o.likeDisable=!1,o.dislikeDisable=!1,o.coinDisable=!1,o.elecDisable=!1,o.shareDisable=!1,o.screenShotDisable=!1,o.lockScreenDisable=!1,o.recommendDisable=!1,o.playbackSpeedDisable=!1,o.definitionDisable=!1,o.selectionsDisable=!1,o.nextDisable=!1,o.editDmDisable=!1,o.outerDmDisable=!1,o.innerDmDisable=!1,o.smallWindowDisable=!1,o.castDisableReasonCode="",o.castDisableReasonText=""),i.backgroundPlayDisable!=null&&i.hasOwnProperty("backgroundPlayDisable")&&(o.backgroundPlayDisable=i.backgroundPlayDisable),i.flipDisable!=null&&i.hasOwnProperty("flipDisable")&&(o.flipDisable=i.flipDisable),i.castDisable!=null&&i.hasOwnProperty("castDisable")&&(o.castDisable=i.castDisable),i.feedbackDisable!=null&&i.hasOwnProperty("feedbackDisable")&&(o.feedbackDisable=i.feedbackDisable),i.subtitleDisable!=null&&i.hasOwnProperty("subtitleDisable")&&(o.subtitleDisable=i.subtitleDisable),i.playbackRateDisable!=null&&i.hasOwnProperty("playbackRateDisable")&&(o.playbackRateDisable=i.playbackRateDisable),i.timeUpDisable!=null&&i.hasOwnProperty("timeUpDisable")&&(o.timeUpDisable=i.timeUpDisable),i.playbackModeDisable!=null&&i.hasOwnProperty("playbackModeDisable")&&(o.playbackModeDisable=i.playbackModeDisable),i.scaleModeDisable!=null&&i.hasOwnProperty("scaleModeDisable")&&(o.scaleModeDisable=i.scaleModeDisable),i.likeDisable!=null&&i.hasOwnProperty("likeDisable")&&(o.likeDisable=i.likeDisable),i.dislikeDisable!=null&&i.hasOwnProperty("dislikeDisable")&&(o.dislikeDisable=i.dislikeDisable),i.coinDisable!=null&&i.hasOwnProperty("coinDisable")&&(o.coinDisable=i.coinDisable),i.elecDisable!=null&&i.hasOwnProperty("elecDisable")&&(o.elecDisable=i.elecDisable),i.shareDisable!=null&&i.hasOwnProperty("shareDisable")&&(o.shareDisable=i.shareDisable),i.screenShotDisable!=null&&i.hasOwnProperty("screenShotDisable")&&(o.screenShotDisable=i.screenShotDisable),i.lockScreenDisable!=null&&i.hasOwnProperty("lockScreenDisable")&&(o.lockScreenDisable=i.lockScreenDisable),i.recommendDisable!=null&&i.hasOwnProperty("recommendDisable")&&(o.recommendDisable=i.recommendDisable),i.playbackSpeedDisable!=null&&i.hasOwnProperty("playbackSpeedDisable")&&(o.playbackSpeedDisable=i.playbackSpeedDisable),i.definitionDisable!=null&&i.hasOwnProperty("definitionDisable")&&(o.definitionDisable=i.definitionDisable),i.selectionsDisable!=null&&i.hasOwnProperty("selectionsDisable")&&(o.selectionsDisable=i.selectionsDisable),i.nextDisable!=null&&i.hasOwnProperty("nextDisable")&&(o.nextDisable=i.nextDisable),i.editDmDisable!=null&&i.hasOwnProperty("editDmDisable")&&(o.editDmDisable=i.editDmDisable),i.outerDmDisable!=null&&i.hasOwnProperty("outerDmDisable")&&(o.outerDmDisable=i.outerDmDisable),i.innerDmDisable!=null&&i.hasOwnProperty("innerDmDisable")&&(o.innerDmDisable=i.innerDmDisable),i.smallWindowDisable!=null&&i.hasOwnProperty("smallWindowDisable")&&(o.smallWindowDisable=i.smallWindowDisable),i.castDisableReasonCode!=null&&i.hasOwnProperty("castDisableReasonCode")&&(o.castDisableReasonCode=i.castDisableReasonCode),i.castDisableReasonText!=null&&i.hasOwnProperty("castDisableReasonText")&&(o.castDisableReasonText=i.castDisableReasonText),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.cheese.gateway.player.v1.PlayAbilityConf"},l}(),e.ProjectReply=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.project=u.bilibili.app.playurl.v1.PlayURLReply.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.cheese.gateway.player.v1.ProjectReply)return i;let n=new u.bilibili.cheese.gateway.player.v1.ProjectReply;if(i.project!=null){if(typeof i.project!="object")throw TypeError(".bilibili.cheese.gateway.player.v1.ProjectReply.project: object expected");n.project=u.bilibili.app.playurl.v1.PlayURLReply.fromObject(i.project)}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.project=null),i.project!=null&&i.hasOwnProperty("project")&&(o.project=u.bilibili.app.playurl.v1.PlayURLReply.toObject(i.project,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.cheese.gateway.player.v1.ProjectReply"},l}(),e.PlayViewBusinessInfo=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.drmTechType=i.int32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.cheese.gateway.player.v1.PlayViewBusinessInfo)return i;let n=new u.bilibili.cheese.gateway.player.v1.PlayViewBusinessInfo;switch(i.drmTechType){default:if(typeof i.drmTechType=="number"){n.drmTechType=i.drmTechType;break}break;case"NON":case 0:n.drmTechType=0;break;case"FAIR_PLAY":case 1:n.drmTechType=1;break;case"WIDE_VINE":case 2:n.drmTechType=2;break}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.drmTechType=n.enums===String?"NON":0),i.drmTechType!=null&&i.hasOwnProperty("drmTechType")&&(o.drmTechType=n.enums===String?u.bilibili.cheese.gateway.player.v1.DrmTechType[i.drmTechType]===void 0?i.drmTechType:u.bilibili.cheese.gateway.player.v1.DrmTechType[i.drmTechType]:i.drmTechType),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.cheese.gateway.player.v1.PlayViewBusinessInfo"},l}(),e.DrmTechType=function(){let l={},t=Object.create(l);return t[l[0]="NON"]=0,t[l[1]="FAIR_PLAY"]=1,t[l[2]="WIDE_VINE"]=2,t}(),e.RiskControl=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.needSendSms=i.bool();break}case 2:{a.title=i.string();break}case 3:{a.riskMessage=i.string();break}case 4:{a.actionDesc=i.string();break}case 5:{a.sendSmsUrl=i.string();break}case 6:{a.buvid=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.cheese.gateway.player.v1.RiskControl)return i;let n=new u.bilibili.cheese.gateway.player.v1.RiskControl;return i.needSendSms!=null&&(n.needSendSms=!!i.needSendSms),i.title!=null&&(n.title=String(i.title)),i.riskMessage!=null&&(n.riskMessage=String(i.riskMessage)),i.actionDesc!=null&&(n.actionDesc=String(i.actionDesc)),i.sendSmsUrl!=null&&(n.sendSmsUrl=String(i.sendSmsUrl)),i.buvid!=null&&(n.buvid=String(i.buvid)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.needSendSms=!1,o.title="",o.riskMessage="",o.actionDesc="",o.sendSmsUrl="",o.buvid=""),i.needSendSms!=null&&i.hasOwnProperty("needSendSms")&&(o.needSendSms=i.needSendSms),i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.riskMessage!=null&&i.hasOwnProperty("riskMessage")&&(o.riskMessage=i.riskMessage),i.actionDesc!=null&&i.hasOwnProperty("actionDesc")&&(o.actionDesc=i.actionDesc),i.sendSmsUrl!=null&&i.hasOwnProperty("sendSmsUrl")&&(o.sendSmsUrl=i.sendSmsUrl),i.buvid!=null&&i.hasOwnProperty("buvid")&&(o.buvid=i.buvid),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.cheese.gateway.player.v1.RiskControl"},l}(),e}(),c}(),p}(),d}(),O.community=function(){let d={};return d.interface_=function(){let p={};return p.biligram=function(){let c={};return c.v1=function(){let e={};return e.Biligram=function(){function l(t,i,n){b.rpc.Service.call(this,t,i,n)}return(l.prototype=Object.create(b.rpc.Service.prototype)).constructor=l,l.create=function(i,n,o){return new this(i,n,o)},Object.defineProperty(l.prototype.ping=function t(i,n){return this.rpcCall(t,u.google.protobuf.Empty,u.google.protobuf.Empty,i,n)},"name",{value:"Ping"}),Object.defineProperty(l.prototype.server=function t(i,n){return this.rpcCall(t,u.bilibili.community.interface_.biligram.v1.ServerReq,u.bilibili.community.interface_.biligram.v1.ServerReply,i,n)},"name",{value:"Server"}),Object.defineProperty(l.prototype.serverStatus=function t(i,n){return this.rpcCall(t,u.bilibili.community.interface_.biligram.v1.ServerStatusReq,u.bilibili.community.interface_.biligram.v1.ServerStatusReply,i,n)},"name",{value:"ServerStatus"}),Object.defineProperty(l.prototype.topic=function t(i,n){return this.rpcCall(t,u.bilibili.community.interface_.biligram.v1.TopicReq,u.bilibili.community.interface_.biligram.v1.TopicReply,i,n)},"name",{value:"Topic"}),Object.defineProperty(l.prototype.createTopic=function t(i,n){return this.rpcCall(t,u.bilibili.community.interface_.biligram.v1.CreateTopicReq,u.bilibili.community.interface_.biligram.v1.CreateTopicReply,i,n)},"name",{value:"CreateTopic"}),Object.defineProperty(l.prototype.editTopic=function t(i,n){return this.rpcCall(t,u.bilibili.community.interface_.biligram.v1.EditTopicReq,u.bilibili.community.interface_.biligram.v1.EditTopicReply,i,n)},"name",{value:"EditTopic"}),Object.defineProperty(l.prototype.delTopic=function t(i,n){return this.rpcCall(t,u.bilibili.community.interface_.biligram.v1.DelTopicReq,u.bilibili.community.interface_.biligram.v1.DelTopicReply,i,n)},"name",{value:"DelTopic"}),Object.defineProperty(l.prototype.messages=function t(i,n){return this.rpcCall(t,u.bilibili.community.interface_.biligram.v1.MessagesReq,u.bilibili.community.interface_.biligram.v1.MessagesReply,i,n)},"name",{value:"Messages"}),Object.defineProperty(l.prototype.sendMessage=function t(i,n){return this.rpcCall(t,u.bilibili.community.interface_.biligram.v1.SendMessageReq,u.bilibili.community.interface_.biligram.v1.SendMessageReply,i,n)},"name",{value:"SendMessage"}),Object.defineProperty(l.prototype.likeMessage=function t(i,n){return this.rpcCall(t,u.bilibili.community.interface_.biligram.v1.LikeMessageReq,u.bilibili.community.interface_.biligram.v1.LikeMessageReply,i,n)},"name",{value:"LikeMessage"}),Object.defineProperty(l.prototype.delMessage=function t(i,n){return this.rpcCall(t,u.bilibili.community.interface_.biligram.v1.DelMessageReq,u.bilibili.community.interface_.biligram.v1.DelMessageReply,i,n)},"name",{value:"DelMessage"}),Object.defineProperty(l.prototype.messagePosition=function t(i,n){return this.rpcCall(t,u.bilibili.community.interface_.biligram.v1.MessagePositionReq,u.bilibili.community.interface_.biligram.v1.MessagePositionReply,i,n)},"name",{value:"MessagePosition"}),Object.defineProperty(l.prototype.hasServer=function t(i,n){return this.rpcCall(t,u.bilibili.community.interface_.biligram.v1.HasServerReq,u.bilibili.community.interface_.biligram.v1.HasServerReply,i,n)},"name",{value:"HasServer"}),Object.defineProperty(l.prototype.upServerList=function t(i,n){return this.rpcCall(t,u.bilibili.community.interface_.biligram.v1.UpServerListReq,u.bilibili.community.interface_.biligram.v1.UpServerListReply,i,n)},"name",{value:"UpServerList"}),Object.defineProperty(l.prototype.getManagePage=function t(i,n){return this.rpcCall(t,u.bilibili.community.interface_.biligram.v1.GetManagePageReq,u.bilibili.community.interface_.biligram.v1.GetManagePageReply,i,n)},"name",{value:"GetManagePage"}),l}(),e.ServerStatus=function(){let l={},t=Object.create(l);return t[l[0]="ServerStatusUnknown"]=0,t[l[1]="ServerStatusOnline"]=1,t[l[2]="ServerStatusOffline"]=2,t}(),e.TopicStatus=function(){let l={},t=Object.create(l);return t[l[0]="TopicStatusUnknown"]=0,t[l[1]="TopicStatusNormal"]=1,t[l[2]="TopicStatusAudit"]=2,t[l[3]="TopicStatusDeleted"]=3,t[l[4]="TopicStatusAuditDeleted"]=4,t}(),e.TopicTailType=function(){let l={},t=Object.create(l);return t[l[0]="TopicTailTypeUnknown"]=0,t[l[1]="TopicTailTypeUnreadGray"]=1,t[l[2]="TopicTailTypeUnreadRed"]=2,t[l[3]="TopicTailTypeEdit"]=3,t}(),e.MessageItemType=function(){let l={},t=Object.create(l);return t[l[0]="MessageItemTypeUnknown"]=0,t[l[1]="MessageItemTypeAuthor"]=1,t[l[2]="MessageItemTypeNotice"]=2,t[l[3]="MessageItemTypeContent"]=3,t[l[4]="MessageItemTypePicture"]=4,t[l[5]="MessageItemTypeAddition"]=5,t}(),e.ItemContentType=function(){let l={},t=Object.create(l);return t[l[0]="ItemContentTypeUnknown"]=0,t[l[1]="ItemContentTypeText"]=1,t[l[2]="ItemContentTypeHighlight"]=2,t[l[3]="ItemContentTypeEmoji"]=3,t}(),e.ServerReq=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.upMid=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.interface_.biligram.v1.ServerReq)return i;let n=new u.bilibili.community.interface_.biligram.v1.ServerReq;return i.upMid!=null&&(r.Long?(n.upMid=r.Long.fromValue(i.upMid)).unsigned=!1:typeof i.upMid=="string"?n.upMid=parseInt(i.upMid,10):typeof i.upMid=="number"?n.upMid=i.upMid:typeof i.upMid=="object"&&(n.upMid=new r.LongBits(i.upMid.low>>>0,i.upMid.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults)if(r.Long){let a=new r.Long(0,0,!1);o.upMid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.upMid=n.longs===String?"0":0;return i.upMid!=null&&i.hasOwnProperty("upMid")&&(typeof i.upMid=="number"?o.upMid=n.longs===String?String(i.upMid):i.upMid:o.upMid=n.longs===String?r.Long.prototype.toString.call(i.upMid):n.longs===Number?new r.LongBits(i.upMid.low>>>0,i.upMid.high>>>0).toNumber():i.upMid),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.interface_.biligram.v1.ServerReq"},l}(),e.ServerReply=function(){function l(t){if(this.category=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.upMid=i.int64();break}case 2:{a.topPhoto=i.string();break}case 3:{a.userInfo=u.bilibili.community.interface_.biligram.v1.UserInfo.decode(i,i.uint32());break}case 4:{a.status=i.int32();break}case 5:{a.headWord=i.string();break}case 6:{a.category&&a.category.length||(a.category=[]),a.category.push(u.bilibili.community.interface_.biligram.v1.Category.decode(i,i.uint32()));break}case 7:{a.create=u.bilibili.community.interface_.biligram.v1.Button.decode(i,i.uint32());break}case 8:{a.online=u.bilibili.community.interface_.biligram.v1.DialogButton.decode(i,i.uint32());break}case 9:{a.setting=u.bilibili.community.interface_.biligram.v1.Button.decode(i,i.uint32());break}case 10:{a.tip=u.bilibili.community.interface_.biligram.v1.Button.decode(i,i.uint32());break}case 11:{a.permission=i.int64();break}case 12:{a.nightTopPhoto=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.interface_.biligram.v1.ServerReply)return i;let n=new u.bilibili.community.interface_.biligram.v1.ServerReply;if(i.upMid!=null&&(r.Long?(n.upMid=r.Long.fromValue(i.upMid)).unsigned=!1:typeof i.upMid=="string"?n.upMid=parseInt(i.upMid,10):typeof i.upMid=="number"?n.upMid=i.upMid:typeof i.upMid=="object"&&(n.upMid=new r.LongBits(i.upMid.low>>>0,i.upMid.high>>>0).toNumber())),i.topPhoto!=null&&(n.topPhoto=String(i.topPhoto)),i.userInfo!=null){if(typeof i.userInfo!="object")throw TypeError(".bilibili.community.interface_.biligram.v1.ServerReply.userInfo: object expected");n.userInfo=u.bilibili.community.interface_.biligram.v1.UserInfo.fromObject(i.userInfo)}switch(i.status){default:if(typeof i.status=="number"){n.status=i.status;break}break;case"ServerStatusUnknown":case 0:n.status=0;break;case"ServerStatusOnline":case 1:n.status=1;break;case"ServerStatusOffline":case 2:n.status=2;break}if(i.headWord!=null&&(n.headWord=String(i.headWord)),i.category){if(!Array.isArray(i.category))throw TypeError(".bilibili.community.interface_.biligram.v1.ServerReply.category: array expected");n.category=[];for(let o=0;o>>0,i.permission.high>>>0).toNumber())),i.nightTopPhoto!=null&&(n.nightTopPhoto=String(i.nightTopPhoto)),n},l.toObject=function(i,n){n||(n={});let o={};if((n.arrays||n.defaults)&&(o.category=[]),n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.upMid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.upMid=n.longs===String?"0":0;if(o.topPhoto="",o.userInfo=null,o.status=n.enums===String?"ServerStatusUnknown":0,o.headWord="",o.create=null,o.online=null,o.setting=null,o.tip=null,r.Long){let a=new r.Long(0,0,!1);o.permission=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.permission=n.longs===String?"0":0;o.nightTopPhoto=""}if(i.upMid!=null&&i.hasOwnProperty("upMid")&&(typeof i.upMid=="number"?o.upMid=n.longs===String?String(i.upMid):i.upMid:o.upMid=n.longs===String?r.Long.prototype.toString.call(i.upMid):n.longs===Number?new r.LongBits(i.upMid.low>>>0,i.upMid.high>>>0).toNumber():i.upMid),i.topPhoto!=null&&i.hasOwnProperty("topPhoto")&&(o.topPhoto=i.topPhoto),i.userInfo!=null&&i.hasOwnProperty("userInfo")&&(o.userInfo=u.bilibili.community.interface_.biligram.v1.UserInfo.toObject(i.userInfo,n)),i.status!=null&&i.hasOwnProperty("status")&&(o.status=n.enums===String?u.bilibili.community.interface_.biligram.v1.ServerStatus[i.status]===void 0?i.status:u.bilibili.community.interface_.biligram.v1.ServerStatus[i.status]:i.status),i.headWord!=null&&i.hasOwnProperty("headWord")&&(o.headWord=i.headWord),i.category&&i.category.length){o.category=[];for(let a=0;a>>0,i.permission.high>>>0).toNumber():i.permission),i.nightTopPhoto!=null&&i.hasOwnProperty("nightTopPhoto")&&(o.nightTopPhoto=i.nightTopPhoto),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.interface_.biligram.v1.ServerReply"},l}(),e.UserInfo=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.mid=i.int64();break}case 2:{a.name=i.string();break}case 3:{a.face=i.string();break}case 4:{a.route=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.interface_.biligram.v1.UserInfo)return i;let n=new u.bilibili.community.interface_.biligram.v1.UserInfo;return i.mid!=null&&(r.Long?(n.mid=r.Long.fromValue(i.mid)).unsigned=!1:typeof i.mid=="string"?n.mid=parseInt(i.mid,10):typeof i.mid=="number"?n.mid=i.mid:typeof i.mid=="object"&&(n.mid=new r.LongBits(i.mid.low>>>0,i.mid.high>>>0).toNumber())),i.name!=null&&(n.name=String(i.name)),i.face!=null&&(n.face=String(i.face)),i.route!=null&&(n.route=String(i.route)),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.mid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.mid=n.longs===String?"0":0;o.name="",o.face="",o.route=""}return i.mid!=null&&i.hasOwnProperty("mid")&&(typeof i.mid=="number"?o.mid=n.longs===String?String(i.mid):i.mid:o.mid=n.longs===String?r.Long.prototype.toString.call(i.mid):n.longs===Number?new r.LongBits(i.mid.low>>>0,i.mid.high>>>0).toNumber():i.mid),i.name!=null&&i.hasOwnProperty("name")&&(o.name=i.name),i.face!=null&&i.hasOwnProperty("face")&&(o.face=i.face),i.route!=null&&i.hasOwnProperty("route")&&(o.route=i.route),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.interface_.biligram.v1.UserInfo"},l}(),e.Category=function(){function l(t){if(this.topic=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.id=i.int64();break}case 2:{a.name=i.string();break}case 3:{a.topic&&a.topic.length||(a.topic=[]),a.topic.push(u.bilibili.community.interface_.biligram.v1.Topic.decode(i,i.uint32()));break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.interface_.biligram.v1.Category)return i;let n=new u.bilibili.community.interface_.biligram.v1.Category;if(i.id!=null&&(r.Long?(n.id=r.Long.fromValue(i.id)).unsigned=!1:typeof i.id=="string"?n.id=parseInt(i.id,10):typeof i.id=="number"?n.id=i.id:typeof i.id=="object"&&(n.id=new r.LongBits(i.id.low>>>0,i.id.high>>>0).toNumber())),i.name!=null&&(n.name=String(i.name)),i.topic){if(!Array.isArray(i.topic))throw TypeError(".bilibili.community.interface_.biligram.v1.Category.topic: array expected");n.topic=[];for(let o=0;o>>0,i.id.high>>>0).toNumber():i.id),i.name!=null&&i.hasOwnProperty("name")&&(o.name=i.name),i.topic&&i.topic.length){o.topic=[];for(let a=0;a>>3){case 1:{a.id=i.int64();break}case 2:{a.name=i.string();break}case 3:{a.status=i.int32();break}case 4:{a.unreadCount=i.string();break}case 5:{a.headIcon=i.string();break}case 6:{a.tailType=i.int32();break}case 7:{a.tailString=i.string();break}case 8:{a.tail=u.bilibili.community.interface_.biligram.v1.Button.decode(i,i.uint32());break}case 9:{a.isTemplate=i.bool();break}case 10:{a.route=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.interface_.biligram.v1.Topic)return i;let n=new u.bilibili.community.interface_.biligram.v1.Topic;switch(i.id!=null&&(r.Long?(n.id=r.Long.fromValue(i.id)).unsigned=!1:typeof i.id=="string"?n.id=parseInt(i.id,10):typeof i.id=="number"?n.id=i.id:typeof i.id=="object"&&(n.id=new r.LongBits(i.id.low>>>0,i.id.high>>>0).toNumber())),i.name!=null&&(n.name=String(i.name)),i.status){default:if(typeof i.status=="number"){n.status=i.status;break}break;case"TopicStatusUnknown":case 0:n.status=0;break;case"TopicStatusNormal":case 1:n.status=1;break;case"TopicStatusAudit":case 2:n.status=2;break;case"TopicStatusDeleted":case 3:n.status=3;break;case"TopicStatusAuditDeleted":case 4:n.status=4;break}switch(i.unreadCount!=null&&(n.unreadCount=String(i.unreadCount)),i.headIcon!=null&&(n.headIcon=String(i.headIcon)),i.tailType){default:if(typeof i.tailType=="number"){n.tailType=i.tailType;break}break;case"TopicTailTypeUnknown":case 0:n.tailType=0;break;case"TopicTailTypeUnreadGray":case 1:n.tailType=1;break;case"TopicTailTypeUnreadRed":case 2:n.tailType=2;break;case"TopicTailTypeEdit":case 3:n.tailType=3;break}if(i.tailString!=null&&(n.tailString=String(i.tailString)),i.tail!=null){if(typeof i.tail!="object")throw TypeError(".bilibili.community.interface_.biligram.v1.Topic.tail: object expected");n.tail=u.bilibili.community.interface_.biligram.v1.Button.fromObject(i.tail)}return i.isTemplate!=null&&(n.isTemplate=!!i.isTemplate),i.route!=null&&(n.route=String(i.route)),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.id=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.id=n.longs===String?"0":0;o.name="",o.status=n.enums===String?"TopicStatusUnknown":0,o.unreadCount="",o.headIcon="",o.tailType=n.enums===String?"TopicTailTypeUnknown":0,o.tailString="",o.tail=null,o.isTemplate=!1,o.route=""}return i.id!=null&&i.hasOwnProperty("id")&&(typeof i.id=="number"?o.id=n.longs===String?String(i.id):i.id:o.id=n.longs===String?r.Long.prototype.toString.call(i.id):n.longs===Number?new r.LongBits(i.id.low>>>0,i.id.high>>>0).toNumber():i.id),i.name!=null&&i.hasOwnProperty("name")&&(o.name=i.name),i.status!=null&&i.hasOwnProperty("status")&&(o.status=n.enums===String?u.bilibili.community.interface_.biligram.v1.TopicStatus[i.status]===void 0?i.status:u.bilibili.community.interface_.biligram.v1.TopicStatus[i.status]:i.status),i.unreadCount!=null&&i.hasOwnProperty("unreadCount")&&(o.unreadCount=i.unreadCount),i.headIcon!=null&&i.hasOwnProperty("headIcon")&&(o.headIcon=i.headIcon),i.tailType!=null&&i.hasOwnProperty("tailType")&&(o.tailType=n.enums===String?u.bilibili.community.interface_.biligram.v1.TopicTailType[i.tailType]===void 0?i.tailType:u.bilibili.community.interface_.biligram.v1.TopicTailType[i.tailType]:i.tailType),i.tailString!=null&&i.hasOwnProperty("tailString")&&(o.tailString=i.tailString),i.tail!=null&&i.hasOwnProperty("tail")&&(o.tail=u.bilibili.community.interface_.biligram.v1.Button.toObject(i.tail,n)),i.isTemplate!=null&&i.hasOwnProperty("isTemplate")&&(o.isTemplate=i.isTemplate),i.route!=null&&i.hasOwnProperty("route")&&(o.route=i.route),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.interface_.biligram.v1.Topic"},l}(),e.ServerStatusReq=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.status=i.int32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.interface_.biligram.v1.ServerStatusReq)return i;let n=new u.bilibili.community.interface_.biligram.v1.ServerStatusReq;switch(i.status){default:if(typeof i.status=="number"){n.status=i.status;break}break;case"ServerStatusUnknown":case 0:n.status=0;break;case"ServerStatusOnline":case 1:n.status=1;break;case"ServerStatusOffline":case 2:n.status=2;break}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.status=n.enums===String?"ServerStatusUnknown":0),i.status!=null&&i.hasOwnProperty("status")&&(o.status=n.enums===String?u.bilibili.community.interface_.biligram.v1.ServerStatus[i.status]===void 0?i.status:u.bilibili.community.interface_.biligram.v1.ServerStatus[i.status]:i.status),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.interface_.biligram.v1.ServerStatusReq"},l}(),e.ServerStatusReply=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){default:i.skipType(y&7);break}}return a},l.fromObject=function(i){return i instanceof u.bilibili.community.interface_.biligram.v1.ServerStatusReply?i:new u.bilibili.community.interface_.biligram.v1.ServerStatusReply},l.toObject=function(){return{}},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.interface_.biligram.v1.ServerStatusReply"},l}(),e.CreateTopicReq=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.name=i.string();break}case 2:{a.categoryId=i.int64();break}case 3:{a.upMid=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.interface_.biligram.v1.CreateTopicReq)return i;let n=new u.bilibili.community.interface_.biligram.v1.CreateTopicReq;return i.name!=null&&(n.name=String(i.name)),i.categoryId!=null&&(r.Long?(n.categoryId=r.Long.fromValue(i.categoryId)).unsigned=!1:typeof i.categoryId=="string"?n.categoryId=parseInt(i.categoryId,10):typeof i.categoryId=="number"?n.categoryId=i.categoryId:typeof i.categoryId=="object"&&(n.categoryId=new r.LongBits(i.categoryId.low>>>0,i.categoryId.high>>>0).toNumber())),i.upMid!=null&&(r.Long?(n.upMid=r.Long.fromValue(i.upMid)).unsigned=!1:typeof i.upMid=="string"?n.upMid=parseInt(i.upMid,10):typeof i.upMid=="number"?n.upMid=i.upMid:typeof i.upMid=="object"&&(n.upMid=new r.LongBits(i.upMid.low>>>0,i.upMid.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(o.name="",r.Long){let a=new r.Long(0,0,!1);o.categoryId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.categoryId=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.upMid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.upMid=n.longs===String?"0":0}return i.name!=null&&i.hasOwnProperty("name")&&(o.name=i.name),i.categoryId!=null&&i.hasOwnProperty("categoryId")&&(typeof i.categoryId=="number"?o.categoryId=n.longs===String?String(i.categoryId):i.categoryId:o.categoryId=n.longs===String?r.Long.prototype.toString.call(i.categoryId):n.longs===Number?new r.LongBits(i.categoryId.low>>>0,i.categoryId.high>>>0).toNumber():i.categoryId),i.upMid!=null&&i.hasOwnProperty("upMid")&&(typeof i.upMid=="number"?o.upMid=n.longs===String?String(i.upMid):i.upMid:o.upMid=n.longs===String?r.Long.prototype.toString.call(i.upMid):n.longs===Number?new r.LongBits(i.upMid.low>>>0,i.upMid.high>>>0).toNumber():i.upMid),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.interface_.biligram.v1.CreateTopicReq"},l}(),e.CreateTopicReply=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.id=i.int64();break}case 2:{a.name=i.string();break}case 3:{a.status=i.int32();break}case 4:{a.categoryId=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.interface_.biligram.v1.CreateTopicReply)return i;let n=new u.bilibili.community.interface_.biligram.v1.CreateTopicReply;switch(i.id!=null&&(r.Long?(n.id=r.Long.fromValue(i.id)).unsigned=!1:typeof i.id=="string"?n.id=parseInt(i.id,10):typeof i.id=="number"?n.id=i.id:typeof i.id=="object"&&(n.id=new r.LongBits(i.id.low>>>0,i.id.high>>>0).toNumber())),i.name!=null&&(n.name=String(i.name)),i.status){default:if(typeof i.status=="number"){n.status=i.status;break}break;case"TopicStatusUnknown":case 0:n.status=0;break;case"TopicStatusNormal":case 1:n.status=1;break;case"TopicStatusAudit":case 2:n.status=2;break;case"TopicStatusDeleted":case 3:n.status=3;break;case"TopicStatusAuditDeleted":case 4:n.status=4;break}return i.categoryId!=null&&(r.Long?(n.categoryId=r.Long.fromValue(i.categoryId)).unsigned=!1:typeof i.categoryId=="string"?n.categoryId=parseInt(i.categoryId,10):typeof i.categoryId=="number"?n.categoryId=i.categoryId:typeof i.categoryId=="object"&&(n.categoryId=new r.LongBits(i.categoryId.low>>>0,i.categoryId.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.id=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.id=n.longs===String?"0":0;if(o.name="",o.status=n.enums===String?"TopicStatusUnknown":0,r.Long){let a=new r.Long(0,0,!1);o.categoryId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.categoryId=n.longs===String?"0":0}return i.id!=null&&i.hasOwnProperty("id")&&(typeof i.id=="number"?o.id=n.longs===String?String(i.id):i.id:o.id=n.longs===String?r.Long.prototype.toString.call(i.id):n.longs===Number?new r.LongBits(i.id.low>>>0,i.id.high>>>0).toNumber():i.id),i.name!=null&&i.hasOwnProperty("name")&&(o.name=i.name),i.status!=null&&i.hasOwnProperty("status")&&(o.status=n.enums===String?u.bilibili.community.interface_.biligram.v1.TopicStatus[i.status]===void 0?i.status:u.bilibili.community.interface_.biligram.v1.TopicStatus[i.status]:i.status),i.categoryId!=null&&i.hasOwnProperty("categoryId")&&(typeof i.categoryId=="number"?o.categoryId=n.longs===String?String(i.categoryId):i.categoryId:o.categoryId=n.longs===String?r.Long.prototype.toString.call(i.categoryId):n.longs===Number?new r.LongBits(i.categoryId.low>>>0,i.categoryId.high>>>0).toNumber():i.categoryId),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.interface_.biligram.v1.CreateTopicReply"},l}(),e.EditTopicReq=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.id=i.int64();break}case 2:{a.name=i.string();break}case 3:{a.categoryId=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.interface_.biligram.v1.EditTopicReq)return i;let n=new u.bilibili.community.interface_.biligram.v1.EditTopicReq;return i.id!=null&&(r.Long?(n.id=r.Long.fromValue(i.id)).unsigned=!1:typeof i.id=="string"?n.id=parseInt(i.id,10):typeof i.id=="number"?n.id=i.id:typeof i.id=="object"&&(n.id=new r.LongBits(i.id.low>>>0,i.id.high>>>0).toNumber())),i.name!=null&&(n.name=String(i.name)),i.categoryId!=null&&(r.Long?(n.categoryId=r.Long.fromValue(i.categoryId)).unsigned=!1:typeof i.categoryId=="string"?n.categoryId=parseInt(i.categoryId,10):typeof i.categoryId=="number"?n.categoryId=i.categoryId:typeof i.categoryId=="object"&&(n.categoryId=new r.LongBits(i.categoryId.low>>>0,i.categoryId.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.id=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.id=n.longs===String?"0":0;if(o.name="",r.Long){let a=new r.Long(0,0,!1);o.categoryId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.categoryId=n.longs===String?"0":0}return i.id!=null&&i.hasOwnProperty("id")&&(typeof i.id=="number"?o.id=n.longs===String?String(i.id):i.id:o.id=n.longs===String?r.Long.prototype.toString.call(i.id):n.longs===Number?new r.LongBits(i.id.low>>>0,i.id.high>>>0).toNumber():i.id),i.name!=null&&i.hasOwnProperty("name")&&(o.name=i.name),i.categoryId!=null&&i.hasOwnProperty("categoryId")&&(typeof i.categoryId=="number"?o.categoryId=n.longs===String?String(i.categoryId):i.categoryId:o.categoryId=n.longs===String?r.Long.prototype.toString.call(i.categoryId):n.longs===Number?new r.LongBits(i.categoryId.low>>>0,i.categoryId.high>>>0).toNumber():i.categoryId),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.interface_.biligram.v1.EditTopicReq"},l}(),e.EditTopicReply=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.id=i.int64();break}case 2:{a.name=i.string();break}case 3:{a.status=i.int32();break}case 4:{a.categoryId=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.interface_.biligram.v1.EditTopicReply)return i;let n=new u.bilibili.community.interface_.biligram.v1.EditTopicReply;switch(i.id!=null&&(r.Long?(n.id=r.Long.fromValue(i.id)).unsigned=!1:typeof i.id=="string"?n.id=parseInt(i.id,10):typeof i.id=="number"?n.id=i.id:typeof i.id=="object"&&(n.id=new r.LongBits(i.id.low>>>0,i.id.high>>>0).toNumber())),i.name!=null&&(n.name=String(i.name)),i.status){default:if(typeof i.status=="number"){n.status=i.status;break}break;case"TopicStatusUnknown":case 0:n.status=0;break;case"TopicStatusNormal":case 1:n.status=1;break;case"TopicStatusAudit":case 2:n.status=2;break;case"TopicStatusDeleted":case 3:n.status=3;break;case"TopicStatusAuditDeleted":case 4:n.status=4;break}return i.categoryId!=null&&(r.Long?(n.categoryId=r.Long.fromValue(i.categoryId)).unsigned=!1:typeof i.categoryId=="string"?n.categoryId=parseInt(i.categoryId,10):typeof i.categoryId=="number"?n.categoryId=i.categoryId:typeof i.categoryId=="object"&&(n.categoryId=new r.LongBits(i.categoryId.low>>>0,i.categoryId.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.id=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.id=n.longs===String?"0":0;if(o.name="",o.status=n.enums===String?"TopicStatusUnknown":0,r.Long){let a=new r.Long(0,0,!1);o.categoryId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.categoryId=n.longs===String?"0":0}return i.id!=null&&i.hasOwnProperty("id")&&(typeof i.id=="number"?o.id=n.longs===String?String(i.id):i.id:o.id=n.longs===String?r.Long.prototype.toString.call(i.id):n.longs===Number?new r.LongBits(i.id.low>>>0,i.id.high>>>0).toNumber():i.id),i.name!=null&&i.hasOwnProperty("name")&&(o.name=i.name),i.status!=null&&i.hasOwnProperty("status")&&(o.status=n.enums===String?u.bilibili.community.interface_.biligram.v1.TopicStatus[i.status]===void 0?i.status:u.bilibili.community.interface_.biligram.v1.TopicStatus[i.status]:i.status),i.categoryId!=null&&i.hasOwnProperty("categoryId")&&(typeof i.categoryId=="number"?o.categoryId=n.longs===String?String(i.categoryId):i.categoryId:o.categoryId=n.longs===String?r.Long.prototype.toString.call(i.categoryId):n.longs===Number?new r.LongBits(i.categoryId.low>>>0,i.categoryId.high>>>0).toNumber():i.categoryId),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.interface_.biligram.v1.EditTopicReply"},l}(),e.DelTopicReq=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.id=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.interface_.biligram.v1.DelTopicReq)return i;let n=new u.bilibili.community.interface_.biligram.v1.DelTopicReq;return i.id!=null&&(r.Long?(n.id=r.Long.fromValue(i.id)).unsigned=!1:typeof i.id=="string"?n.id=parseInt(i.id,10):typeof i.id=="number"?n.id=i.id:typeof i.id=="object"&&(n.id=new r.LongBits(i.id.low>>>0,i.id.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults)if(r.Long){let a=new r.Long(0,0,!1);o.id=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.id=n.longs===String?"0":0;return i.id!=null&&i.hasOwnProperty("id")&&(typeof i.id=="number"?o.id=n.longs===String?String(i.id):i.id:o.id=n.longs===String?r.Long.prototype.toString.call(i.id):n.longs===Number?new r.LongBits(i.id.low>>>0,i.id.high>>>0).toNumber():i.id),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.interface_.biligram.v1.DelTopicReq"},l}(),e.DelTopicReply=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){default:i.skipType(y&7);break}}return a},l.fromObject=function(i){return i instanceof u.bilibili.community.interface_.biligram.v1.DelTopicReply?i:new u.bilibili.community.interface_.biligram.v1.DelTopicReply},l.toObject=function(){return{}},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.interface_.biligram.v1.DelTopicReply"},l}(),e.MessagesReq=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.id=i.int64();break}case 2:{a.page=u.bilibili.pagination.FeedPagination.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.interface_.biligram.v1.MessagesReq)return i;let n=new u.bilibili.community.interface_.biligram.v1.MessagesReq;if(i.id!=null&&(r.Long?(n.id=r.Long.fromValue(i.id)).unsigned=!1:typeof i.id=="string"?n.id=parseInt(i.id,10):typeof i.id=="number"?n.id=i.id:typeof i.id=="object"&&(n.id=new r.LongBits(i.id.low>>>0,i.id.high>>>0).toNumber())),i.page!=null){if(typeof i.page!="object")throw TypeError(".bilibili.community.interface_.biligram.v1.MessagesReq.page: object expected");n.page=u.bilibili.pagination.FeedPagination.fromObject(i.page)}return n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.id=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.id=n.longs===String?"0":0;o.page=null}return i.id!=null&&i.hasOwnProperty("id")&&(typeof i.id=="number"?o.id=n.longs===String?String(i.id):i.id:o.id=n.longs===String?r.Long.prototype.toString.call(i.id):n.longs===Number?new r.LongBits(i.id.low>>>0,i.id.high>>>0).toNumber():i.id),i.page!=null&&i.hasOwnProperty("page")&&(o.page=u.bilibili.pagination.FeedPagination.toObject(i.page,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.interface_.biligram.v1.MessagesReq"},l}(),e.MessagesReply=function(){function l(t){if(this.message=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.title=i.string();break}case 2:{a.upMid=i.int64();break}case 3:{a.permission=i.int64();break}case 4:{a.message&&a.message.length||(a.message=[]),a.message.push(u.bilibili.community.interface_.biligram.v1.Message.decode(i,i.uint32()));break}case 5:{a.page=u.bilibili.pagination.FeedPaginationReply.decode(i,i.uint32());break}case 6:{a.setting=u.bilibili.community.interface_.biligram.v1.Button.decode(i,i.uint32());break}case 7:{a.input=u.bilibili.community.interface_.biligram.v1.Input.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.interface_.biligram.v1.MessagesReply)return i;let n=new u.bilibili.community.interface_.biligram.v1.MessagesReply;if(i.title!=null&&(n.title=String(i.title)),i.upMid!=null&&(r.Long?(n.upMid=r.Long.fromValue(i.upMid)).unsigned=!1:typeof i.upMid=="string"?n.upMid=parseInt(i.upMid,10):typeof i.upMid=="number"?n.upMid=i.upMid:typeof i.upMid=="object"&&(n.upMid=new r.LongBits(i.upMid.low>>>0,i.upMid.high>>>0).toNumber())),i.permission!=null&&(r.Long?(n.permission=r.Long.fromValue(i.permission)).unsigned=!1:typeof i.permission=="string"?n.permission=parseInt(i.permission,10):typeof i.permission=="number"?n.permission=i.permission:typeof i.permission=="object"&&(n.permission=new r.LongBits(i.permission.low>>>0,i.permission.high>>>0).toNumber())),i.message){if(!Array.isArray(i.message))throw TypeError(".bilibili.community.interface_.biligram.v1.MessagesReply.message: array expected");n.message=[];for(let o=0;o>>0,i.upMid.high>>>0).toNumber():i.upMid),i.permission!=null&&i.hasOwnProperty("permission")&&(typeof i.permission=="number"?o.permission=n.longs===String?String(i.permission):i.permission:o.permission=n.longs===String?r.Long.prototype.toString.call(i.permission):n.longs===Number?new r.LongBits(i.permission.low>>>0,i.permission.high>>>0).toNumber():i.permission),i.message&&i.message.length){o.message=[];for(let a=0;a>>3){case 1:{a.placeholder=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.interface_.biligram.v1.Input)return i;let n=new u.bilibili.community.interface_.biligram.v1.Input;return i.placeholder!=null&&(n.placeholder=String(i.placeholder)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.placeholder=""),i.placeholder!=null&&i.hasOwnProperty("placeholder")&&(o.placeholder=i.placeholder),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.interface_.biligram.v1.Input"},l}(),e.MessageStatus=function(){let l={},t=Object.create(l);return t[l[0]="MessageStatusNormal"]=0,t[l[1]="MessageStatusAudit"]=1,t[l[2]="MessageStatusSelfSeen"]=2,t[l[3]="MessageStatusDelete"]=3,t}(),e.MessageType=function(){let l={},t=Object.create(l);return t[l[0]="MessageTypeNone"]=0,t[l[1]="MessageTypeText"]=1,t[l[2]="MessageTypeImage"]=2,t}(),e.Message=function(){function l(t){if(this.items=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.id=i.int64();break}case 2:{a.timestamp=i.int64();break}case 3:{a.status=i.int32();break}case 4:{a.items&&a.items.length||(a.items=[]),a.items.push(u.bilibili.community.interface_.biligram.v1.MessageItem.decode(i,i.uint32()));break}case 5:{a.type=i.int32();break}case 6:{a.order=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.interface_.biligram.v1.Message)return i;let n=new u.bilibili.community.interface_.biligram.v1.Message;switch(i.id!=null&&(r.Long?(n.id=r.Long.fromValue(i.id)).unsigned=!1:typeof i.id=="string"?n.id=parseInt(i.id,10):typeof i.id=="number"?n.id=i.id:typeof i.id=="object"&&(n.id=new r.LongBits(i.id.low>>>0,i.id.high>>>0).toNumber())),i.timestamp!=null&&(r.Long?(n.timestamp=r.Long.fromValue(i.timestamp)).unsigned=!1:typeof i.timestamp=="string"?n.timestamp=parseInt(i.timestamp,10):typeof i.timestamp=="number"?n.timestamp=i.timestamp:typeof i.timestamp=="object"&&(n.timestamp=new r.LongBits(i.timestamp.low>>>0,i.timestamp.high>>>0).toNumber())),i.status){default:if(typeof i.status=="number"){n.status=i.status;break}break;case"MessageStatusNormal":case 0:n.status=0;break;case"MessageStatusAudit":case 1:n.status=1;break;case"MessageStatusSelfSeen":case 2:n.status=2;break;case"MessageStatusDelete":case 3:n.status=3;break}if(i.items){if(!Array.isArray(i.items))throw TypeError(".bilibili.community.interface_.biligram.v1.Message.items: array expected");n.items=[];for(let o=0;o>>0,i.order.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if((n.arrays||n.defaults)&&(o.items=[]),n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.id=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.id=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.timestamp=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.timestamp=n.longs===String?"0":0;if(o.status=n.enums===String?"MessageStatusNormal":0,o.type=n.enums===String?"MessageTypeNone":0,r.Long){let a=new r.Long(0,0,!1);o.order=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.order=n.longs===String?"0":0}if(i.id!=null&&i.hasOwnProperty("id")&&(typeof i.id=="number"?o.id=n.longs===String?String(i.id):i.id:o.id=n.longs===String?r.Long.prototype.toString.call(i.id):n.longs===Number?new r.LongBits(i.id.low>>>0,i.id.high>>>0).toNumber():i.id),i.timestamp!=null&&i.hasOwnProperty("timestamp")&&(typeof i.timestamp=="number"?o.timestamp=n.longs===String?String(i.timestamp):i.timestamp:o.timestamp=n.longs===String?r.Long.prototype.toString.call(i.timestamp):n.longs===Number?new r.LongBits(i.timestamp.low>>>0,i.timestamp.high>>>0).toNumber():i.timestamp),i.status!=null&&i.hasOwnProperty("status")&&(o.status=n.enums===String?u.bilibili.community.interface_.biligram.v1.MessageStatus[i.status]===void 0?i.status:u.bilibili.community.interface_.biligram.v1.MessageStatus[i.status]:i.status),i.items&&i.items.length){o.items=[];for(let a=0;a>>0,i.order.high>>>0).toNumber():i.order),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.interface_.biligram.v1.Message"},l}(),e.MessageItem=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.type=i.int32();break}case 2:{a.author=u.bilibili.community.interface_.biligram.v1.MessageItemAuthor.decode(i,i.uint32());break}case 3:{a.notice=u.bilibili.community.interface_.biligram.v1.MessageItemNotice.decode(i,i.uint32());break}case 4:{a.content=u.bilibili.community.interface_.biligram.v1.MessageItemContent.decode(i,i.uint32());break}case 5:{a.picture=u.bilibili.community.interface_.biligram.v1.MessageItemPicture.decode(i,i.uint32());break}case 6:{a.addition=u.bilibili.community.interface_.biligram.v1.MessageItemAddition.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.interface_.biligram.v1.MessageItem)return i;let n=new u.bilibili.community.interface_.biligram.v1.MessageItem;switch(i.type){default:if(typeof i.type=="number"){n.type=i.type;break}break;case"MessageItemTypeUnknown":case 0:n.type=0;break;case"MessageItemTypeAuthor":case 1:n.type=1;break;case"MessageItemTypeNotice":case 2:n.type=2;break;case"MessageItemTypeContent":case 3:n.type=3;break;case"MessageItemTypePicture":case 4:n.type=4;break;case"MessageItemTypeAddition":case 5:n.type=5;break}if(i.author!=null){if(typeof i.author!="object")throw TypeError(".bilibili.community.interface_.biligram.v1.MessageItem.author: object expected");n.author=u.bilibili.community.interface_.biligram.v1.MessageItemAuthor.fromObject(i.author)}if(i.notice!=null){if(typeof i.notice!="object")throw TypeError(".bilibili.community.interface_.biligram.v1.MessageItem.notice: object expected");n.notice=u.bilibili.community.interface_.biligram.v1.MessageItemNotice.fromObject(i.notice)}if(i.content!=null){if(typeof i.content!="object")throw TypeError(".bilibili.community.interface_.biligram.v1.MessageItem.content: object expected");n.content=u.bilibili.community.interface_.biligram.v1.MessageItemContent.fromObject(i.content)}if(i.picture!=null){if(typeof i.picture!="object")throw TypeError(".bilibili.community.interface_.biligram.v1.MessageItem.picture: object expected");n.picture=u.bilibili.community.interface_.biligram.v1.MessageItemPicture.fromObject(i.picture)}if(i.addition!=null){if(typeof i.addition!="object")throw TypeError(".bilibili.community.interface_.biligram.v1.MessageItem.addition: object expected");n.addition=u.bilibili.community.interface_.biligram.v1.MessageItemAddition.fromObject(i.addition)}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.type=n.enums===String?"MessageItemTypeUnknown":0,o.author=null,o.notice=null,o.content=null,o.picture=null,o.addition=null),i.type!=null&&i.hasOwnProperty("type")&&(o.type=n.enums===String?u.bilibili.community.interface_.biligram.v1.MessageItemType[i.type]===void 0?i.type:u.bilibili.community.interface_.biligram.v1.MessageItemType[i.type]:i.type),i.author!=null&&i.hasOwnProperty("author")&&(o.author=u.bilibili.community.interface_.biligram.v1.MessageItemAuthor.toObject(i.author,n)),i.notice!=null&&i.hasOwnProperty("notice")&&(o.notice=u.bilibili.community.interface_.biligram.v1.MessageItemNotice.toObject(i.notice,n)),i.content!=null&&i.hasOwnProperty("content")&&(o.content=u.bilibili.community.interface_.biligram.v1.MessageItemContent.toObject(i.content,n)),i.picture!=null&&i.hasOwnProperty("picture")&&(o.picture=u.bilibili.community.interface_.biligram.v1.MessageItemPicture.toObject(i.picture,n)),i.addition!=null&&i.hasOwnProperty("addition")&&(o.addition=u.bilibili.community.interface_.biligram.v1.MessageItemAddition.toObject(i.addition,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.interface_.biligram.v1.MessageItem"},l}(),e.MessageItemAuthor=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.author=u.bilibili.community.interface_.biligram.v1.UserInfo.decode(i,i.uint32());break}case 2:{a.sendTime=i.string();break}case 3:{a.location=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.interface_.biligram.v1.MessageItemAuthor)return i;let n=new u.bilibili.community.interface_.biligram.v1.MessageItemAuthor;if(i.author!=null){if(typeof i.author!="object")throw TypeError(".bilibili.community.interface_.biligram.v1.MessageItemAuthor.author: object expected");n.author=u.bilibili.community.interface_.biligram.v1.UserInfo.fromObject(i.author)}return i.sendTime!=null&&(n.sendTime=String(i.sendTime)),i.location!=null&&(n.location=String(i.location)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.author=null,o.sendTime="",o.location=""),i.author!=null&&i.hasOwnProperty("author")&&(o.author=u.bilibili.community.interface_.biligram.v1.UserInfo.toObject(i.author,n)),i.sendTime!=null&&i.hasOwnProperty("sendTime")&&(o.sendTime=i.sendTime),i.location!=null&&i.hasOwnProperty("location")&&(o.location=i.location),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.interface_.biligram.v1.MessageItemAuthor"},l}(),e.MessageItemNotice=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.title=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.interface_.biligram.v1.MessageItemNotice)return i;let n=new u.bilibili.community.interface_.biligram.v1.MessageItemNotice;return i.title!=null&&(n.title=String(i.title)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.title=""),i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.interface_.biligram.v1.MessageItemNotice"},l}(),e.MessageItemContent=function(){function l(t){if(this.desc=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.desc&&a.desc.length||(a.desc=[]),a.desc.push(u.bilibili.community.interface_.biligram.v1.ItemContentItem.decode(i,i.uint32()));break}case 2:{a.jumpUri=i.string();break}case 3:{a.originText=i.string();break}case 4:{a.thresholdLines=i.int32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.interface_.biligram.v1.MessageItemContent)return i;let n=new u.bilibili.community.interface_.biligram.v1.MessageItemContent;if(i.desc){if(!Array.isArray(i.desc))throw TypeError(".bilibili.community.interface_.biligram.v1.MessageItemContent.desc: array expected");n.desc=[];for(let o=0;o>>3){case 1:{a.type=i.int32();break}case 2:{a.text=u.bilibili.community.interface_.biligram.v1.ItemContentText.decode(i,i.uint32());break}case 3:{a.highlight=u.bilibili.community.interface_.biligram.v1.ItemContentHighlight.decode(i,i.uint32());break}case 4:{a.emoji=u.bilibili.community.interface_.biligram.v1.ItemContentEmoji.decode(i,i.uint32());break}case 5:{a.rawText=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.interface_.biligram.v1.ItemContentItem)return i;let n=new u.bilibili.community.interface_.biligram.v1.ItemContentItem;switch(i.type){default:if(typeof i.type=="number"){n.type=i.type;break}break;case"ItemContentTypeUnknown":case 0:n.type=0;break;case"ItemContentTypeText":case 1:n.type=1;break;case"ItemContentTypeHighlight":case 2:n.type=2;break;case"ItemContentTypeEmoji":case 3:n.type=3;break}if(i.text!=null){if(typeof i.text!="object")throw TypeError(".bilibili.community.interface_.biligram.v1.ItemContentItem.text: object expected");n.text=u.bilibili.community.interface_.biligram.v1.ItemContentText.fromObject(i.text)}if(i.highlight!=null){if(typeof i.highlight!="object")throw TypeError(".bilibili.community.interface_.biligram.v1.ItemContentItem.highlight: object expected");n.highlight=u.bilibili.community.interface_.biligram.v1.ItemContentHighlight.fromObject(i.highlight)}if(i.emoji!=null){if(typeof i.emoji!="object")throw TypeError(".bilibili.community.interface_.biligram.v1.ItemContentItem.emoji: object expected");n.emoji=u.bilibili.community.interface_.biligram.v1.ItemContentEmoji.fromObject(i.emoji)}return i.rawText!=null&&(n.rawText=String(i.rawText)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.type=n.enums===String?"ItemContentTypeUnknown":0,o.text=null,o.highlight=null,o.emoji=null,o.rawText=""),i.type!=null&&i.hasOwnProperty("type")&&(o.type=n.enums===String?u.bilibili.community.interface_.biligram.v1.ItemContentType[i.type]===void 0?i.type:u.bilibili.community.interface_.biligram.v1.ItemContentType[i.type]:i.type),i.text!=null&&i.hasOwnProperty("text")&&(o.text=u.bilibili.community.interface_.biligram.v1.ItemContentText.toObject(i.text,n)),i.highlight!=null&&i.hasOwnProperty("highlight")&&(o.highlight=u.bilibili.community.interface_.biligram.v1.ItemContentHighlight.toObject(i.highlight,n)),i.emoji!=null&&i.hasOwnProperty("emoji")&&(o.emoji=u.bilibili.community.interface_.biligram.v1.ItemContentEmoji.toObject(i.emoji,n)),i.rawText!=null&&i.hasOwnProperty("rawText")&&(o.rawText=i.rawText),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.interface_.biligram.v1.ItemContentItem"},l}(),e.ItemContentText=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.text=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.interface_.biligram.v1.ItemContentText)return i;let n=new u.bilibili.community.interface_.biligram.v1.ItemContentText;return i.text!=null&&(n.text=String(i.text)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.text=""),i.text!=null&&i.hasOwnProperty("text")&&(o.text=i.text),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.interface_.biligram.v1.ItemContentText"},l}(),e.IconPosition=function(){let l={},t=Object.create(l);return t[l[0]="IconPositionPrefix"]=0,t[l[1]="IconPositionSuffix"]=1,t}(),e.ItemContentHighlight=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.text=i.string();break}case 2:{a.icon=i.string();break}case 3:{a.iconPosition=i.int32();break}case 4:{a.jumpUrl=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.interface_.biligram.v1.ItemContentHighlight)return i;let n=new u.bilibili.community.interface_.biligram.v1.ItemContentHighlight;switch(i.text!=null&&(n.text=String(i.text)),i.icon!=null&&(n.icon=String(i.icon)),i.iconPosition){default:if(typeof i.iconPosition=="number"){n.iconPosition=i.iconPosition;break}break;case"IconPositionPrefix":case 0:n.iconPosition=0;break;case"IconPositionSuffix":case 1:n.iconPosition=1;break}return i.jumpUrl!=null&&(n.jumpUrl=String(i.jumpUrl)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.text="",o.icon="",o.iconPosition=n.enums===String?"IconPositionPrefix":0,o.jumpUrl=""),i.text!=null&&i.hasOwnProperty("text")&&(o.text=i.text),i.icon!=null&&i.hasOwnProperty("icon")&&(o.icon=i.icon),i.iconPosition!=null&&i.hasOwnProperty("iconPosition")&&(o.iconPosition=n.enums===String?u.bilibili.community.interface_.biligram.v1.IconPosition[i.iconPosition]===void 0?i.iconPosition:u.bilibili.community.interface_.biligram.v1.IconPosition[i.iconPosition]:i.iconPosition),i.jumpUrl!=null&&i.hasOwnProperty("jumpUrl")&&(o.jumpUrl=i.jumpUrl),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.interface_.biligram.v1.ItemContentHighlight"},l}(),e.ItemContentEmoji=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.uri=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.interface_.biligram.v1.ItemContentEmoji)return i;let n=new u.bilibili.community.interface_.biligram.v1.ItemContentEmoji;return i.uri!=null&&(n.uri=String(i.uri)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.uri=""),i.uri!=null&&i.hasOwnProperty("uri")&&(o.uri=i.uri),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.interface_.biligram.v1.ItemContentEmoji"},l}(),e.MessageItemPicture=function(){function l(t){if(this.pictures=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.pictures&&a.pictures.length||(a.pictures=[]),a.pictures.push(u.bilibili.community.interface_.biligram.v1.Picture.decode(i,i.uint32()));break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.interface_.biligram.v1.MessageItemPicture)return i;let n=new u.bilibili.community.interface_.biligram.v1.MessageItemPicture;if(i.pictures){if(!Array.isArray(i.pictures))throw TypeError(".bilibili.community.interface_.biligram.v1.MessageItemPicture.pictures: array expected");n.pictures=[];for(let o=0;o>>3){case 1:{a.uri=i.string();break}case 2:{a.width=i.double();break}case 3:{a.height=i.double();break}case 4:{a.size=i.double();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.interface_.biligram.v1.Picture)return i;let n=new u.bilibili.community.interface_.biligram.v1.Picture;return i.uri!=null&&(n.uri=String(i.uri)),i.width!=null&&(n.width=Number(i.width)),i.height!=null&&(n.height=Number(i.height)),i.size!=null&&(n.size=Number(i.size)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.uri="",o.width=0,o.height=0,o.size=0),i.uri!=null&&i.hasOwnProperty("uri")&&(o.uri=i.uri),i.width!=null&&i.hasOwnProperty("width")&&(o.width=n.json&&!isFinite(i.width)?String(i.width):i.width),i.height!=null&&i.hasOwnProperty("height")&&(o.height=n.json&&!isFinite(i.height)?String(i.height):i.height),i.size!=null&&i.hasOwnProperty("size")&&(o.size=n.json&&!isFinite(i.size)?String(i.size):i.size),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.interface_.biligram.v1.Picture"},l}(),e.MessageItemAddition=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.likes=i.int64();break}case 2:{a.liked=i.bool();break}case 3:{a.showMenu=i.bool();break}case 4:{a.report=u.bilibili.community.interface_.biligram.v1.Button.decode(i,i.uint32());break}case 5:{a.delete=u.bilibili.community.interface_.biligram.v1.DialogButton.decode(i,i.uint32());break}case 6:{a.blacklist=u.bilibili.community.interface_.biligram.v1.DialogButton.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.interface_.biligram.v1.MessageItemAddition)return i;let n=new u.bilibili.community.interface_.biligram.v1.MessageItemAddition;if(i.likes!=null&&(r.Long?(n.likes=r.Long.fromValue(i.likes)).unsigned=!1:typeof i.likes=="string"?n.likes=parseInt(i.likes,10):typeof i.likes=="number"?n.likes=i.likes:typeof i.likes=="object"&&(n.likes=new r.LongBits(i.likes.low>>>0,i.likes.high>>>0).toNumber())),i.liked!=null&&(n.liked=!!i.liked),i.showMenu!=null&&(n.showMenu=!!i.showMenu),i.report!=null){if(typeof i.report!="object")throw TypeError(".bilibili.community.interface_.biligram.v1.MessageItemAddition.report: object expected");n.report=u.bilibili.community.interface_.biligram.v1.Button.fromObject(i.report)}if(i.delete!=null){if(typeof i.delete!="object")throw TypeError(".bilibili.community.interface_.biligram.v1.MessageItemAddition.delete: object expected");n.delete=u.bilibili.community.interface_.biligram.v1.DialogButton.fromObject(i.delete)}if(i.blacklist!=null){if(typeof i.blacklist!="object")throw TypeError(".bilibili.community.interface_.biligram.v1.MessageItemAddition.blacklist: object expected");n.blacklist=u.bilibili.community.interface_.biligram.v1.DialogButton.fromObject(i.blacklist)}return n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.likes=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.likes=n.longs===String?"0":0;o.liked=!1,o.showMenu=!1,o.report=null,o.delete=null,o.blacklist=null}return i.likes!=null&&i.hasOwnProperty("likes")&&(typeof i.likes=="number"?o.likes=n.longs===String?String(i.likes):i.likes:o.likes=n.longs===String?r.Long.prototype.toString.call(i.likes):n.longs===Number?new r.LongBits(i.likes.low>>>0,i.likes.high>>>0).toNumber():i.likes),i.liked!=null&&i.hasOwnProperty("liked")&&(o.liked=i.liked),i.showMenu!=null&&i.hasOwnProperty("showMenu")&&(o.showMenu=i.showMenu),i.report!=null&&i.hasOwnProperty("report")&&(o.report=u.bilibili.community.interface_.biligram.v1.Button.toObject(i.report,n)),i.delete!=null&&i.hasOwnProperty("delete")&&(o.delete=u.bilibili.community.interface_.biligram.v1.DialogButton.toObject(i.delete,n)),i.blacklist!=null&&i.hasOwnProperty("blacklist")&&(o.blacklist=u.bilibili.community.interface_.biligram.v1.DialogButton.toObject(i.blacklist,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.interface_.biligram.v1.MessageItemAddition"},l}(),e.Button=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.text=i.string();break}case 2:{a.url=i.string();break}case 3:{a.icon=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.interface_.biligram.v1.Button)return i;let n=new u.bilibili.community.interface_.biligram.v1.Button;return i.text!=null&&(n.text=String(i.text)),i.url!=null&&(n.url=String(i.url)),i.icon!=null&&(n.icon=String(i.icon)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.text="",o.url="",o.icon=""),i.text!=null&&i.hasOwnProperty("text")&&(o.text=i.text),i.url!=null&&i.hasOwnProperty("url")&&(o.url=i.url),i.icon!=null&&i.hasOwnProperty("icon")&&(o.icon=i.icon),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.interface_.biligram.v1.Button"},l}(),e.ActionButton=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.text=i.string();break}case 2:{a.icon=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.interface_.biligram.v1.ActionButton)return i;let n=new u.bilibili.community.interface_.biligram.v1.ActionButton;return i.text!=null&&(n.text=String(i.text)),i.icon!=null&&(n.icon=String(i.icon)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.text="",o.icon=""),i.text!=null&&i.hasOwnProperty("text")&&(o.text=i.text),i.icon!=null&&i.hasOwnProperty("icon")&&(o.icon=i.icon),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.interface_.biligram.v1.ActionButton"},l}(),e.DialogButton=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.title=i.string();break}case 2:{a.content=i.string();break}case 3:{a.confirm=u.bilibili.community.interface_.biligram.v1.ActionButton.decode(i,i.uint32());break}case 4:{a.cancel=i.string();break}case 5:{a.text=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.interface_.biligram.v1.DialogButton)return i;let n=new u.bilibili.community.interface_.biligram.v1.DialogButton;if(i.title!=null&&(n.title=String(i.title)),i.content!=null&&(n.content=String(i.content)),i.confirm!=null){if(typeof i.confirm!="object")throw TypeError(".bilibili.community.interface_.biligram.v1.DialogButton.confirm: object expected");n.confirm=u.bilibili.community.interface_.biligram.v1.ActionButton.fromObject(i.confirm)}return i.cancel!=null&&(n.cancel=String(i.cancel)),i.text!=null&&(n.text=String(i.text)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.title="",o.content="",o.confirm=null,o.cancel="",o.text=""),i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.content!=null&&i.hasOwnProperty("content")&&(o.content=i.content),i.confirm!=null&&i.hasOwnProperty("confirm")&&(o.confirm=u.bilibili.community.interface_.biligram.v1.ActionButton.toObject(i.confirm,n)),i.cancel!=null&&i.hasOwnProperty("cancel")&&(o.cancel=i.cancel),i.text!=null&&i.hasOwnProperty("text")&&(o.text=i.text),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.interface_.biligram.v1.DialogButton"},l}(),e.SendMessageReq=function(){function l(t){if(this.atNameToMid={},this.picture=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.topicId=i.int64();break}case 2:{a.message=i.string();break}case 3:{a.atNameToMid===r.emptyObject&&(a.atNameToMid={});let g=i.uint32()+i.pos;for(y="",s=0;i.pos>>3){case 1:y=i.string();break;case 2:s=i.int64();break;default:i.skipType(S&7);break}}a.atNameToMid[y]=s;break}case 4:{a.picture&&a.picture.length||(a.picture=[]),a.picture.push(u.bilibili.community.interface_.biligram.v1.Picture.decode(i,i.uint32()));break}default:i.skipType(v&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.interface_.biligram.v1.SendMessageReq)return i;let n=new u.bilibili.community.interface_.biligram.v1.SendMessageReq;if(i.topicId!=null&&(r.Long?(n.topicId=r.Long.fromValue(i.topicId)).unsigned=!1:typeof i.topicId=="string"?n.topicId=parseInt(i.topicId,10):typeof i.topicId=="number"?n.topicId=i.topicId:typeof i.topicId=="object"&&(n.topicId=new r.LongBits(i.topicId.low>>>0,i.topicId.high>>>0).toNumber())),i.message!=null&&(n.message=String(i.message)),i.atNameToMid){if(typeof i.atNameToMid!="object")throw TypeError(".bilibili.community.interface_.biligram.v1.SendMessageReq.atNameToMid: object expected");n.atNameToMid={};for(let o=Object.keys(i.atNameToMid),a=0;a>>0,i.atNameToMid[o[a]].high>>>0).toNumber())}if(i.picture){if(!Array.isArray(i.picture))throw TypeError(".bilibili.community.interface_.biligram.v1.SendMessageReq.picture: array expected");n.picture=[];for(let o=0;o>>0,i.topicId.high>>>0).toNumber():i.topicId),i.message!=null&&i.hasOwnProperty("message")&&(o.message=i.message);let a;if(i.atNameToMid&&(a=Object.keys(i.atNameToMid)).length){o.atNameToMid={};for(let y=0;y>>0,i.atNameToMid[a[y]].high>>>0).toNumber():i.atNameToMid[a[y]]}if(i.picture&&i.picture.length){o.picture=[];for(let y=0;y>>3){case 1:{a.message=u.bilibili.community.interface_.biligram.v1.Message.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.interface_.biligram.v1.SendMessageReply)return i;let n=new u.bilibili.community.interface_.biligram.v1.SendMessageReply;if(i.message!=null){if(typeof i.message!="object")throw TypeError(".bilibili.community.interface_.biligram.v1.SendMessageReply.message: object expected");n.message=u.bilibili.community.interface_.biligram.v1.Message.fromObject(i.message)}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.message=null),i.message!=null&&i.hasOwnProperty("message")&&(o.message=u.bilibili.community.interface_.biligram.v1.Message.toObject(i.message,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.interface_.biligram.v1.SendMessageReply"},l}(),e.MessageActionType=function(){let l={},t=Object.create(l);return t[l[0]="MessageActionTypeUnknown"]=0,t[l[1]="MessageActionTypeLike"]=1,t[l[2]="MessageActionTypeUnlike"]=2,t}(),e.LikeMessageReq=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.topicId=i.int64();break}case 2:{a.messageId=i.int64();break}case 3:{a.action=i.int32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.interface_.biligram.v1.LikeMessageReq)return i;let n=new u.bilibili.community.interface_.biligram.v1.LikeMessageReq;switch(i.topicId!=null&&(r.Long?(n.topicId=r.Long.fromValue(i.topicId)).unsigned=!1:typeof i.topicId=="string"?n.topicId=parseInt(i.topicId,10):typeof i.topicId=="number"?n.topicId=i.topicId:typeof i.topicId=="object"&&(n.topicId=new r.LongBits(i.topicId.low>>>0,i.topicId.high>>>0).toNumber())),i.messageId!=null&&(r.Long?(n.messageId=r.Long.fromValue(i.messageId)).unsigned=!1:typeof i.messageId=="string"?n.messageId=parseInt(i.messageId,10):typeof i.messageId=="number"?n.messageId=i.messageId:typeof i.messageId=="object"&&(n.messageId=new r.LongBits(i.messageId.low>>>0,i.messageId.high>>>0).toNumber())),i.action){default:if(typeof i.action=="number"){n.action=i.action;break}break;case"MessageActionTypeUnknown":case 0:n.action=0;break;case"MessageActionTypeLike":case 1:n.action=1;break;case"MessageActionTypeUnlike":case 2:n.action=2;break}return n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.topicId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.topicId=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.messageId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.messageId=n.longs===String?"0":0;o.action=n.enums===String?"MessageActionTypeUnknown":0}return i.topicId!=null&&i.hasOwnProperty("topicId")&&(typeof i.topicId=="number"?o.topicId=n.longs===String?String(i.topicId):i.topicId:o.topicId=n.longs===String?r.Long.prototype.toString.call(i.topicId):n.longs===Number?new r.LongBits(i.topicId.low>>>0,i.topicId.high>>>0).toNumber():i.topicId),i.messageId!=null&&i.hasOwnProperty("messageId")&&(typeof i.messageId=="number"?o.messageId=n.longs===String?String(i.messageId):i.messageId:o.messageId=n.longs===String?r.Long.prototype.toString.call(i.messageId):n.longs===Number?new r.LongBits(i.messageId.low>>>0,i.messageId.high>>>0).toNumber():i.messageId),i.action!=null&&i.hasOwnProperty("action")&&(o.action=n.enums===String?u.bilibili.community.interface_.biligram.v1.MessageActionType[i.action]===void 0?i.action:u.bilibili.community.interface_.biligram.v1.MessageActionType[i.action]:i.action),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.interface_.biligram.v1.LikeMessageReq"},l}(),e.LikeMessageReply=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){default:i.skipType(y&7);break}}return a},l.fromObject=function(i){return i instanceof u.bilibili.community.interface_.biligram.v1.LikeMessageReply?i:new u.bilibili.community.interface_.biligram.v1.LikeMessageReply},l.toObject=function(){return{}},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.interface_.biligram.v1.LikeMessageReply"},l}(),e.DelMessageReq=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.id=i.int64();break}case 2:{a.topicId=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.interface_.biligram.v1.DelMessageReq)return i;let n=new u.bilibili.community.interface_.biligram.v1.DelMessageReq;return i.id!=null&&(r.Long?(n.id=r.Long.fromValue(i.id)).unsigned=!1:typeof i.id=="string"?n.id=parseInt(i.id,10):typeof i.id=="number"?n.id=i.id:typeof i.id=="object"&&(n.id=new r.LongBits(i.id.low>>>0,i.id.high>>>0).toNumber())),i.topicId!=null&&(r.Long?(n.topicId=r.Long.fromValue(i.topicId)).unsigned=!1:typeof i.topicId=="string"?n.topicId=parseInt(i.topicId,10):typeof i.topicId=="number"?n.topicId=i.topicId:typeof i.topicId=="object"&&(n.topicId=new r.LongBits(i.topicId.low>>>0,i.topicId.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.id=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.id=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.topicId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.topicId=n.longs===String?"0":0}return i.id!=null&&i.hasOwnProperty("id")&&(typeof i.id=="number"?o.id=n.longs===String?String(i.id):i.id:o.id=n.longs===String?r.Long.prototype.toString.call(i.id):n.longs===Number?new r.LongBits(i.id.low>>>0,i.id.high>>>0).toNumber():i.id),i.topicId!=null&&i.hasOwnProperty("topicId")&&(typeof i.topicId=="number"?o.topicId=n.longs===String?String(i.topicId):i.topicId:o.topicId=n.longs===String?r.Long.prototype.toString.call(i.topicId):n.longs===Number?new r.LongBits(i.topicId.low>>>0,i.topicId.high>>>0).toNumber():i.topicId),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.interface_.biligram.v1.DelMessageReq"},l}(),e.DelMessageReply=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){default:i.skipType(y&7);break}}return a},l.fromObject=function(i){return i instanceof u.bilibili.community.interface_.biligram.v1.DelMessageReply?i:new u.bilibili.community.interface_.biligram.v1.DelMessageReply},l.toObject=function(){return{}},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.interface_.biligram.v1.DelMessageReply"},l}(),e.HasServerReq=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.mid=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.interface_.biligram.v1.HasServerReq)return i;let n=new u.bilibili.community.interface_.biligram.v1.HasServerReq;return i.mid!=null&&(r.Long?(n.mid=r.Long.fromValue(i.mid)).unsigned=!1:typeof i.mid=="string"?n.mid=parseInt(i.mid,10):typeof i.mid=="number"?n.mid=i.mid:typeof i.mid=="object"&&(n.mid=new r.LongBits(i.mid.low>>>0,i.mid.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults)if(r.Long){let a=new r.Long(0,0,!1);o.mid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.mid=n.longs===String?"0":0;return i.mid!=null&&i.hasOwnProperty("mid")&&(typeof i.mid=="number"?o.mid=n.longs===String?String(i.mid):i.mid:o.mid=n.longs===String?r.Long.prototype.toString.call(i.mid):n.longs===Number?new r.LongBits(i.mid.low>>>0,i.mid.high>>>0).toNumber():i.mid),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.interface_.biligram.v1.HasServerReq"},l}(),e.HasServerReply=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.hitServer=i.bool();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.interface_.biligram.v1.HasServerReply)return i;let n=new u.bilibili.community.interface_.biligram.v1.HasServerReply;return i.hitServer!=null&&(n.hitServer=!!i.hitServer),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.hitServer=!1),i.hitServer!=null&&i.hasOwnProperty("hitServer")&&(o.hitServer=i.hitServer),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.interface_.biligram.v1.HasServerReply"},l}(),e.UpServerListReq=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.mid=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.interface_.biligram.v1.UpServerListReq)return i;let n=new u.bilibili.community.interface_.biligram.v1.UpServerListReq;return i.mid!=null&&(r.Long?(n.mid=r.Long.fromValue(i.mid)).unsigned=!1:typeof i.mid=="string"?n.mid=parseInt(i.mid,10):typeof i.mid=="number"?n.mid=i.mid:typeof i.mid=="object"&&(n.mid=new r.LongBits(i.mid.low>>>0,i.mid.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults)if(r.Long){let a=new r.Long(0,0,!1);o.mid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.mid=n.longs===String?"0":0;return i.mid!=null&&i.hasOwnProperty("mid")&&(typeof i.mid=="number"?o.mid=n.longs===String?String(i.mid):i.mid:o.mid=n.longs===String?r.Long.prototype.toString.call(i.mid):n.longs===Number?new r.LongBits(i.mid.low>>>0,i.mid.high>>>0).toNumber():i.mid),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.interface_.biligram.v1.UpServerListReq"},l}(),e.UpServerType=function(){let l={},t=Object.create(l);return t[l[0]="UpServerTypeUnknown"]=0,t[l[1]="UpServerTypeCreate"]=1,t[l[2]="UpServerTypeUp"]=2,t[l[3]="UpServerTypeFollow"]=3,t}(),e.UpServerListReply=function(){function l(t){if(this.server=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.server&&a.server.length||(a.server=[]),a.server.push(u.bilibili.community.interface_.biligram.v1.UpServer.decode(i,i.uint32()));break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.interface_.biligram.v1.UpServerListReply)return i;let n=new u.bilibili.community.interface_.biligram.v1.UpServerListReply;if(i.server){if(!Array.isArray(i.server))throw TypeError(".bilibili.community.interface_.biligram.v1.UpServerListReply.server: array expected");n.server=[];for(let o=0;o>>3){case 1:{a.id=i.int64();break}case 2:{a.mid=i.int64();break}case 3:{a.type=i.int32();break}case 4:{a.face=i.string();break}case 5:{a.unreadCount=i.int64();break}case 6:{a.name=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.interface_.biligram.v1.UpServer)return i;let n=new u.bilibili.community.interface_.biligram.v1.UpServer;switch(i.id!=null&&(r.Long?(n.id=r.Long.fromValue(i.id)).unsigned=!1:typeof i.id=="string"?n.id=parseInt(i.id,10):typeof i.id=="number"?n.id=i.id:typeof i.id=="object"&&(n.id=new r.LongBits(i.id.low>>>0,i.id.high>>>0).toNumber())),i.mid!=null&&(r.Long?(n.mid=r.Long.fromValue(i.mid)).unsigned=!1:typeof i.mid=="string"?n.mid=parseInt(i.mid,10):typeof i.mid=="number"?n.mid=i.mid:typeof i.mid=="object"&&(n.mid=new r.LongBits(i.mid.low>>>0,i.mid.high>>>0).toNumber())),i.type){default:if(typeof i.type=="number"){n.type=i.type;break}break;case"UpServerTypeUnknown":case 0:n.type=0;break;case"UpServerTypeCreate":case 1:n.type=1;break;case"UpServerTypeUp":case 2:n.type=2;break;case"UpServerTypeFollow":case 3:n.type=3;break}return i.face!=null&&(n.face=String(i.face)),i.unreadCount!=null&&(r.Long?(n.unreadCount=r.Long.fromValue(i.unreadCount)).unsigned=!1:typeof i.unreadCount=="string"?n.unreadCount=parseInt(i.unreadCount,10):typeof i.unreadCount=="number"?n.unreadCount=i.unreadCount:typeof i.unreadCount=="object"&&(n.unreadCount=new r.LongBits(i.unreadCount.low>>>0,i.unreadCount.high>>>0).toNumber())),i.name!=null&&(n.name=String(i.name)),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.id=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.id=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.mid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.mid=n.longs===String?"0":0;if(o.type=n.enums===String?"UpServerTypeUnknown":0,o.face="",r.Long){let a=new r.Long(0,0,!1);o.unreadCount=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.unreadCount=n.longs===String?"0":0;o.name=""}return i.id!=null&&i.hasOwnProperty("id")&&(typeof i.id=="number"?o.id=n.longs===String?String(i.id):i.id:o.id=n.longs===String?r.Long.prototype.toString.call(i.id):n.longs===Number?new r.LongBits(i.id.low>>>0,i.id.high>>>0).toNumber():i.id),i.mid!=null&&i.hasOwnProperty("mid")&&(typeof i.mid=="number"?o.mid=n.longs===String?String(i.mid):i.mid:o.mid=n.longs===String?r.Long.prototype.toString.call(i.mid):n.longs===Number?new r.LongBits(i.mid.low>>>0,i.mid.high>>>0).toNumber():i.mid),i.type!=null&&i.hasOwnProperty("type")&&(o.type=n.enums===String?u.bilibili.community.interface_.biligram.v1.UpServerType[i.type]===void 0?i.type:u.bilibili.community.interface_.biligram.v1.UpServerType[i.type]:i.type),i.face!=null&&i.hasOwnProperty("face")&&(o.face=i.face),i.unreadCount!=null&&i.hasOwnProperty("unreadCount")&&(typeof i.unreadCount=="number"?o.unreadCount=n.longs===String?String(i.unreadCount):i.unreadCount:o.unreadCount=n.longs===String?r.Long.prototype.toString.call(i.unreadCount):n.longs===Number?new r.LongBits(i.unreadCount.low>>>0,i.unreadCount.high>>>0).toNumber():i.unreadCount),i.name!=null&&i.hasOwnProperty("name")&&(o.name=i.name),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.interface_.biligram.v1.UpServer"},l}(),e.TopicReq=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.id=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.interface_.biligram.v1.TopicReq)return i;let n=new u.bilibili.community.interface_.biligram.v1.TopicReq;return i.id!=null&&(r.Long?(n.id=r.Long.fromValue(i.id)).unsigned=!1:typeof i.id=="string"?n.id=parseInt(i.id,10):typeof i.id=="number"?n.id=i.id:typeof i.id=="object"&&(n.id=new r.LongBits(i.id.low>>>0,i.id.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults)if(r.Long){let a=new r.Long(0,0,!1);o.id=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.id=n.longs===String?"0":0;return i.id!=null&&i.hasOwnProperty("id")&&(typeof i.id=="number"?o.id=n.longs===String?String(i.id):i.id:o.id=n.longs===String?r.Long.prototype.toString.call(i.id):n.longs===Number?new r.LongBits(i.id.low>>>0,i.id.high>>>0).toNumber():i.id),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.interface_.biligram.v1.TopicReq"},l}(),e.TopicReply=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.id=i.int64();break}case 2:{a.name=i.string();break}case 3:{a.status=i.int32();break}case 4:{a.nameEditable=i.bool();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.interface_.biligram.v1.TopicReply)return i;let n=new u.bilibili.community.interface_.biligram.v1.TopicReply;switch(i.id!=null&&(r.Long?(n.id=r.Long.fromValue(i.id)).unsigned=!1:typeof i.id=="string"?n.id=parseInt(i.id,10):typeof i.id=="number"?n.id=i.id:typeof i.id=="object"&&(n.id=new r.LongBits(i.id.low>>>0,i.id.high>>>0).toNumber())),i.name!=null&&(n.name=String(i.name)),i.status){default:if(typeof i.status=="number"){n.status=i.status;break}break;case"TopicStatusUnknown":case 0:n.status=0;break;case"TopicStatusNormal":case 1:n.status=1;break;case"TopicStatusAudit":case 2:n.status=2;break;case"TopicStatusDeleted":case 3:n.status=3;break;case"TopicStatusAuditDeleted":case 4:n.status=4;break}return i.nameEditable!=null&&(n.nameEditable=!!i.nameEditable),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.id=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.id=n.longs===String?"0":0;o.name="",o.status=n.enums===String?"TopicStatusUnknown":0,o.nameEditable=!1}return i.id!=null&&i.hasOwnProperty("id")&&(typeof i.id=="number"?o.id=n.longs===String?String(i.id):i.id:o.id=n.longs===String?r.Long.prototype.toString.call(i.id):n.longs===Number?new r.LongBits(i.id.low>>>0,i.id.high>>>0).toNumber():i.id),i.name!=null&&i.hasOwnProperty("name")&&(o.name=i.name),i.status!=null&&i.hasOwnProperty("status")&&(o.status=n.enums===String?u.bilibili.community.interface_.biligram.v1.TopicStatus[i.status]===void 0?i.status:u.bilibili.community.interface_.biligram.v1.TopicStatus[i.status]:i.status),i.nameEditable!=null&&i.hasOwnProperty("nameEditable")&&(o.nameEditable=i.nameEditable),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.interface_.biligram.v1.TopicReply"},l}(),e.MessagePositionReq=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.upMid=i.int64();break}case 2:{a.topicId=i.int64();break}case 3:{a.next=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.interface_.biligram.v1.MessagePositionReq)return i;let n=new u.bilibili.community.interface_.biligram.v1.MessagePositionReq;return i.upMid!=null&&(r.Long?(n.upMid=r.Long.fromValue(i.upMid)).unsigned=!1:typeof i.upMid=="string"?n.upMid=parseInt(i.upMid,10):typeof i.upMid=="number"?n.upMid=i.upMid:typeof i.upMid=="object"&&(n.upMid=new r.LongBits(i.upMid.low>>>0,i.upMid.high>>>0).toNumber())),i.topicId!=null&&(r.Long?(n.topicId=r.Long.fromValue(i.topicId)).unsigned=!1:typeof i.topicId=="string"?n.topicId=parseInt(i.topicId,10):typeof i.topicId=="number"?n.topicId=i.topicId:typeof i.topicId=="object"&&(n.topicId=new r.LongBits(i.topicId.low>>>0,i.topicId.high>>>0).toNumber())),i.next!=null&&(n.next=String(i.next)),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.upMid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.upMid=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.topicId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.topicId=n.longs===String?"0":0;o.next=""}return i.upMid!=null&&i.hasOwnProperty("upMid")&&(typeof i.upMid=="number"?o.upMid=n.longs===String?String(i.upMid):i.upMid:o.upMid=n.longs===String?r.Long.prototype.toString.call(i.upMid):n.longs===Number?new r.LongBits(i.upMid.low>>>0,i.upMid.high>>>0).toNumber():i.upMid),i.topicId!=null&&i.hasOwnProperty("topicId")&&(typeof i.topicId=="number"?o.topicId=n.longs===String?String(i.topicId):i.topicId:o.topicId=n.longs===String?r.Long.prototype.toString.call(i.topicId):n.longs===Number?new r.LongBits(i.topicId.low>>>0,i.topicId.high>>>0).toNumber():i.topicId),i.next!=null&&i.hasOwnProperty("next")&&(o.next=i.next),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.interface_.biligram.v1.MessagePositionReq"},l}(),e.MessagePositionReply=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){default:i.skipType(y&7);break}}return a},l.fromObject=function(i){return i instanceof u.bilibili.community.interface_.biligram.v1.MessagePositionReply?i:new u.bilibili.community.interface_.biligram.v1.MessagePositionReply},l.toObject=function(){return{}},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.interface_.biligram.v1.MessagePositionReply"},l}(),e.GetManagePageReq=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.upMid=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.interface_.biligram.v1.GetManagePageReq)return i;let n=new u.bilibili.community.interface_.biligram.v1.GetManagePageReq;return i.upMid!=null&&(r.Long?(n.upMid=r.Long.fromValue(i.upMid)).unsigned=!1:typeof i.upMid=="string"?n.upMid=parseInt(i.upMid,10):typeof i.upMid=="number"?n.upMid=i.upMid:typeof i.upMid=="object"&&(n.upMid=new r.LongBits(i.upMid.low>>>0,i.upMid.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults)if(r.Long){let a=new r.Long(0,0,!1);o.upMid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.upMid=n.longs===String?"0":0;return i.upMid!=null&&i.hasOwnProperty("upMid")&&(typeof i.upMid=="number"?o.upMid=n.longs===String?String(i.upMid):i.upMid:o.upMid=n.longs===String?r.Long.prototype.toString.call(i.upMid):n.longs===Number?new r.LongBits(i.upMid.low>>>0,i.upMid.high>>>0).toNumber():i.upMid),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.interface_.biligram.v1.GetManagePageReq"},l}(),e.GetManagePageReply=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.upMid=i.int64();break}case 2:{a.status=i.int32();break}case 3:{a.online=u.bilibili.community.interface_.biligram.v1.DialogButton.decode(i,i.uint32());break}case 4:{a.offline=u.bilibili.community.interface_.biligram.v1.DialogButton.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.interface_.biligram.v1.GetManagePageReply)return i;let n=new u.bilibili.community.interface_.biligram.v1.GetManagePageReply;switch(i.upMid!=null&&(r.Long?(n.upMid=r.Long.fromValue(i.upMid)).unsigned=!1:typeof i.upMid=="string"?n.upMid=parseInt(i.upMid,10):typeof i.upMid=="number"?n.upMid=i.upMid:typeof i.upMid=="object"&&(n.upMid=new r.LongBits(i.upMid.low>>>0,i.upMid.high>>>0).toNumber())),i.status){default:if(typeof i.status=="number"){n.status=i.status;break}break;case"ServerStatusUnknown":case 0:n.status=0;break;case"ServerStatusOnline":case 1:n.status=1;break;case"ServerStatusOffline":case 2:n.status=2;break}if(i.online!=null){if(typeof i.online!="object")throw TypeError(".bilibili.community.interface_.biligram.v1.GetManagePageReply.online: object expected");n.online=u.bilibili.community.interface_.biligram.v1.DialogButton.fromObject(i.online)}if(i.offline!=null){if(typeof i.offline!="object")throw TypeError(".bilibili.community.interface_.biligram.v1.GetManagePageReply.offline: object expected");n.offline=u.bilibili.community.interface_.biligram.v1.DialogButton.fromObject(i.offline)}return n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.upMid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.upMid=n.longs===String?"0":0;o.status=n.enums===String?"ServerStatusUnknown":0,o.online=null,o.offline=null}return i.upMid!=null&&i.hasOwnProperty("upMid")&&(typeof i.upMid=="number"?o.upMid=n.longs===String?String(i.upMid):i.upMid:o.upMid=n.longs===String?r.Long.prototype.toString.call(i.upMid):n.longs===Number?new r.LongBits(i.upMid.low>>>0,i.upMid.high>>>0).toNumber():i.upMid),i.status!=null&&i.hasOwnProperty("status")&&(o.status=n.enums===String?u.bilibili.community.interface_.biligram.v1.ServerStatus[i.status]===void 0?i.status:u.bilibili.community.interface_.biligram.v1.ServerStatus[i.status]:i.status),i.online!=null&&i.hasOwnProperty("online")&&(o.online=u.bilibili.community.interface_.biligram.v1.DialogButton.toObject(i.online,n)),i.offline!=null&&i.hasOwnProperty("offline")&&(o.offline=u.bilibili.community.interface_.biligram.v1.DialogButton.toObject(i.offline,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.interface_.biligram.v1.GetManagePageReply"},l}(),e}(),c}(),p}(),d.interfaces=function(){let p={};return p.cosmoconn=function(){let c={};return c.v1=function(){let e={};return e.CosmoInterface=function(){function l(t,i,n){b.rpc.Service.call(this,t,i,n)}return(l.prototype=Object.create(b.rpc.Service.prototype)).constructor=l,l.create=function(i,n,o){return new this(i,n,o)},Object.defineProperty(l.prototype.ping=function t(i,n){return this.rpcCall(t,u.google.protobuf.Empty,u.google.protobuf.Empty,i,n)},"name",{value:"Ping"}),Object.defineProperty(l.prototype.simpleAction=function t(i,n){return this.rpcCall(t,u.bilibili.community.interfaces.cosmoconn.v1.SimpleActionReq,u.bilibili.community.interfaces.cosmoconn.v1.SimpleActionRsp,i,n)},"name",{value:"SimpleAction"}),l}(),e.SimpleActionReq=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.entity=u.bilibili.community.interfaces.cosmoconn.v1.Entity.decode(i,i.uint32());break}case 2:{a.action=i.int32();break}case 3:{a.meta=u.bilibili.community.interfaces.cosmoconn.v1.CosmoParaMeta.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.interfaces.cosmoconn.v1.SimpleActionReq)return i;let n=new u.bilibili.community.interfaces.cosmoconn.v1.SimpleActionReq;if(i.entity!=null){if(typeof i.entity!="object")throw TypeError(".bilibili.community.interfaces.cosmoconn.v1.SimpleActionReq.entity: object expected");n.entity=u.bilibili.community.interfaces.cosmoconn.v1.Entity.fromObject(i.entity)}switch(i.action){default:if(typeof i.action=="number"){n.action=i.action;break}break;case"ACTION_INVALID":case 0:n.action=0;break;case"ACTION_THUMB":case 1:n.action=1;break;case"ACTION_CANCEL_THUMB":case 2:n.action=2;break;case"ACTION_FAV":case 3:n.action=3;break;case"ACTION_CANCEL_FAV":case 4:n.action=4;break}if(i.meta!=null){if(typeof i.meta!="object")throw TypeError(".bilibili.community.interfaces.cosmoconn.v1.SimpleActionReq.meta: object expected");n.meta=u.bilibili.community.interfaces.cosmoconn.v1.CosmoParaMeta.fromObject(i.meta)}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.entity=null,o.action=n.enums===String?"ACTION_INVALID":0,o.meta=null),i.entity!=null&&i.hasOwnProperty("entity")&&(o.entity=u.bilibili.community.interfaces.cosmoconn.v1.Entity.toObject(i.entity,n)),i.action!=null&&i.hasOwnProperty("action")&&(o.action=n.enums===String?u.bilibili.community.interfaces.cosmoconn.v1.Action[i.action]===void 0?i.action:u.bilibili.community.interfaces.cosmoconn.v1.Action[i.action]:i.action),i.meta!=null&&i.hasOwnProperty("meta")&&(o.meta=u.bilibili.community.interfaces.cosmoconn.v1.CosmoParaMeta.toObject(i.meta,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.interfaces.cosmoconn.v1.SimpleActionReq"},l}(),e.CosmoParaMeta=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.spmid=i.string();break}case 2:{a.fromSpmid=i.string();break}case 3:{a.from=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.interfaces.cosmoconn.v1.CosmoParaMeta)return i;let n=new u.bilibili.community.interfaces.cosmoconn.v1.CosmoParaMeta;return i.spmid!=null&&(n.spmid=String(i.spmid)),i.fromSpmid!=null&&(n.fromSpmid=String(i.fromSpmid)),i.from!=null&&(n.from=String(i.from)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.spmid="",o.fromSpmid="",o.from=""),i.spmid!=null&&i.hasOwnProperty("spmid")&&(o.spmid=i.spmid),i.fromSpmid!=null&&i.hasOwnProperty("fromSpmid")&&(o.fromSpmid=i.fromSpmid),i.from!=null&&i.hasOwnProperty("from")&&(o.from=i.from),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.interfaces.cosmoconn.v1.CosmoParaMeta"},l}(),e.SimpleActionRsp=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){default:i.skipType(y&7);break}}return a},l.fromObject=function(i){return i instanceof u.bilibili.community.interfaces.cosmoconn.v1.SimpleActionRsp?i:new u.bilibili.community.interfaces.cosmoconn.v1.SimpleActionRsp},l.toObject=function(){return{}},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.interfaces.cosmoconn.v1.SimpleActionRsp"},l}(),e.EntityBiz=function(){let l={},t=Object.create(l);return t[l[0]="ENTITY_BIZ_INVALID"]=0,t[l[1]="ENTITY_BIZ_VIDEO"]=1,t[l[2]="ENTITY_BIZ_OPUS"]=2,t[l[3]="ENTITY_BIZ_DYNAMIC"]=3,t[l[4]="ENTITY_BIZ_REPLY"]=4,t[l[5]="ENTITY_BIZ_TOPIC"]=5,t}(),e.EntityType=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.biz=i.int32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.interfaces.cosmoconn.v1.EntityType)return i;let n=new u.bilibili.community.interfaces.cosmoconn.v1.EntityType;switch(i.biz){default:if(typeof i.biz=="number"){n.biz=i.biz;break}break;case"ENTITY_BIZ_INVALID":case 0:n.biz=0;break;case"ENTITY_BIZ_VIDEO":case 1:n.biz=1;break;case"ENTITY_BIZ_OPUS":case 2:n.biz=2;break;case"ENTITY_BIZ_DYNAMIC":case 3:n.biz=3;break;case"ENTITY_BIZ_REPLY":case 4:n.biz=4;break;case"ENTITY_BIZ_TOPIC":case 5:n.biz=5;break}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.biz=n.enums===String?"ENTITY_BIZ_INVALID":0),i.biz!=null&&i.hasOwnProperty("biz")&&(o.biz=n.enums===String?u.bilibili.community.interfaces.cosmoconn.v1.EntityBiz[i.biz]===void 0?i.biz:u.bilibili.community.interfaces.cosmoconn.v1.EntityBiz[i.biz]:i.biz),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.interfaces.cosmoconn.v1.EntityType"},l}(),e.Entity=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.type=u.bilibili.community.interfaces.cosmoconn.v1.EntityType.decode(i,i.uint32());break}case 2:{a.objectId=i.int64();break}case 3:{a.objectIdStr=i.string();break}case 4:{a.upMid=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.interfaces.cosmoconn.v1.Entity)return i;let n=new u.bilibili.community.interfaces.cosmoconn.v1.Entity;if(i.type!=null){if(typeof i.type!="object")throw TypeError(".bilibili.community.interfaces.cosmoconn.v1.Entity.type: object expected");n.type=u.bilibili.community.interfaces.cosmoconn.v1.EntityType.fromObject(i.type)}return i.objectId!=null&&(r.Long?(n.objectId=r.Long.fromValue(i.objectId)).unsigned=!1:typeof i.objectId=="string"?n.objectId=parseInt(i.objectId,10):typeof i.objectId=="number"?n.objectId=i.objectId:typeof i.objectId=="object"&&(n.objectId=new r.LongBits(i.objectId.low>>>0,i.objectId.high>>>0).toNumber())),i.objectIdStr!=null&&(n.objectIdStr=String(i.objectIdStr)),i.upMid!=null&&(r.Long?(n.upMid=r.Long.fromValue(i.upMid)).unsigned=!1:typeof i.upMid=="string"?n.upMid=parseInt(i.upMid,10):typeof i.upMid=="number"?n.upMid=i.upMid:typeof i.upMid=="object"&&(n.upMid=new r.LongBits(i.upMid.low>>>0,i.upMid.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(o.type=null,r.Long){let a=new r.Long(0,0,!1);o.objectId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.objectId=n.longs===String?"0":0;if(o.objectIdStr="",r.Long){let a=new r.Long(0,0,!1);o.upMid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.upMid=n.longs===String?"0":0}return i.type!=null&&i.hasOwnProperty("type")&&(o.type=u.bilibili.community.interfaces.cosmoconn.v1.EntityType.toObject(i.type,n)),i.objectId!=null&&i.hasOwnProperty("objectId")&&(typeof i.objectId=="number"?o.objectId=n.longs===String?String(i.objectId):i.objectId:o.objectId=n.longs===String?r.Long.prototype.toString.call(i.objectId):n.longs===Number?new r.LongBits(i.objectId.low>>>0,i.objectId.high>>>0).toNumber():i.objectId),i.objectIdStr!=null&&i.hasOwnProperty("objectIdStr")&&(o.objectIdStr=i.objectIdStr),i.upMid!=null&&i.hasOwnProperty("upMid")&&(typeof i.upMid=="number"?o.upMid=n.longs===String?String(i.upMid):i.upMid:o.upMid=n.longs===String?r.Long.prototype.toString.call(i.upMid):n.longs===Number?new r.LongBits(i.upMid.low>>>0,i.upMid.high>>>0).toNumber():i.upMid),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.interfaces.cosmoconn.v1.Entity"},l}(),e.CosmoMeta=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.platform=i.string();break}case 2:{a.build=i.string();break}case 3:{a.mobiApp=i.string();break}case 4:{a.buvid=i.string();break}case 5:{a.device=i.string();break}case 6:{a.version=i.string();break}case 7:{a.network=i.int32();break}case 8:{a.ip=i.string();break}case 9:{a.port=i.string();break}case 10:{a.ua=i.string();break}case 11:{a.refer=i.string();break}case 12:{a.spmid=i.string();break}case 13:{a.fromSpmid=i.string();break}case 14:{a.traceId=i.string();break}case 15:{a.teenagerMode=i.int32();break}case 16:{a.coldStart=i.int32();break}case 17:{a.from=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.interfaces.cosmoconn.v1.CosmoMeta)return i;let n=new u.bilibili.community.interfaces.cosmoconn.v1.CosmoMeta;return i.platform!=null&&(n.platform=String(i.platform)),i.build!=null&&(n.build=String(i.build)),i.mobiApp!=null&&(n.mobiApp=String(i.mobiApp)),i.buvid!=null&&(n.buvid=String(i.buvid)),i.device!=null&&(n.device=String(i.device)),i.version!=null&&(n.version=String(i.version)),i.network!=null&&(n.network=i.network|0),i.ip!=null&&(n.ip=String(i.ip)),i.port!=null&&(n.port=String(i.port)),i.ua!=null&&(n.ua=String(i.ua)),i.refer!=null&&(n.refer=String(i.refer)),i.spmid!=null&&(n.spmid=String(i.spmid)),i.fromSpmid!=null&&(n.fromSpmid=String(i.fromSpmid)),i.traceId!=null&&(n.traceId=String(i.traceId)),i.teenagerMode!=null&&(n.teenagerMode=i.teenagerMode|0),i.coldStart!=null&&(n.coldStart=i.coldStart|0),i.from!=null&&(n.from=String(i.from)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.platform="",o.build="",o.mobiApp="",o.buvid="",o.device="",o.version="",o.network=0,o.ip="",o.port="",o.ua="",o.refer="",o.spmid="",o.fromSpmid="",o.traceId="",o.teenagerMode=0,o.coldStart=0,o.from=""),i.platform!=null&&i.hasOwnProperty("platform")&&(o.platform=i.platform),i.build!=null&&i.hasOwnProperty("build")&&(o.build=i.build),i.mobiApp!=null&&i.hasOwnProperty("mobiApp")&&(o.mobiApp=i.mobiApp),i.buvid!=null&&i.hasOwnProperty("buvid")&&(o.buvid=i.buvid),i.device!=null&&i.hasOwnProperty("device")&&(o.device=i.device),i.version!=null&&i.hasOwnProperty("version")&&(o.version=i.version),i.network!=null&&i.hasOwnProperty("network")&&(o.network=i.network),i.ip!=null&&i.hasOwnProperty("ip")&&(o.ip=i.ip),i.port!=null&&i.hasOwnProperty("port")&&(o.port=i.port),i.ua!=null&&i.hasOwnProperty("ua")&&(o.ua=i.ua),i.refer!=null&&i.hasOwnProperty("refer")&&(o.refer=i.refer),i.spmid!=null&&i.hasOwnProperty("spmid")&&(o.spmid=i.spmid),i.fromSpmid!=null&&i.hasOwnProperty("fromSpmid")&&(o.fromSpmid=i.fromSpmid),i.traceId!=null&&i.hasOwnProperty("traceId")&&(o.traceId=i.traceId),i.teenagerMode!=null&&i.hasOwnProperty("teenagerMode")&&(o.teenagerMode=i.teenagerMode),i.coldStart!=null&&i.hasOwnProperty("coldStart")&&(o.coldStart=i.coldStart),i.from!=null&&i.hasOwnProperty("from")&&(o.from=i.from),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.interfaces.cosmoconn.v1.CosmoMeta"},l}(),e.Action=function(){let l={},t=Object.create(l);return t[l[0]="ACTION_INVALID"]=0,t[l[1]="ACTION_THUMB"]=1,t[l[2]="ACTION_CANCEL_THUMB"]=2,t[l[3]="ACTION_FAV"]=3,t[l[4]="ACTION_CANCEL_FAV"]=4,t}(),e}(),c}(),p}(),d.service=function(){let p={};return p.cert=function(){let c={};return c.v1=function(){let e={};return e.FieldCert=function(){function l(t,i,n){b.rpc.Service.call(this,t,i,n)}return(l.prototype=Object.create(b.rpc.Service.prototype)).constructor=l,l.create=function(i,n,o){return new this(i,n,o)},Object.defineProperty(l.prototype.fieldCertPopRecord=function t(i,n){return this.rpcCall(t,u.bilibili.community.service.cert.v1.FieldCertPopRecordReq,u.bilibili.community.service.cert.v1.FieldCertPopRecordRsp,i,n)},"name",{value:"FieldCertPopRecord"}),Object.defineProperty(l.prototype.fieldCertPopAction=function t(i,n){return this.rpcCall(t,u.bilibili.community.service.cert.v1.FieldCertPopActionReq,u.bilibili.community.service.cert.v1.FieldCertPopActionRsp,i,n)},"name",{value:"FieldCertPopAction"}),l}(),e.FieldCertPopRecordReq=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.avid=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.service.cert.v1.FieldCertPopRecordReq)return i;let n=new u.bilibili.community.service.cert.v1.FieldCertPopRecordReq;return i.avid!=null&&(r.Long?(n.avid=r.Long.fromValue(i.avid)).unsigned=!1:typeof i.avid=="string"?n.avid=parseInt(i.avid,10):typeof i.avid=="number"?n.avid=i.avid:typeof i.avid=="object"&&(n.avid=new r.LongBits(i.avid.low>>>0,i.avid.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults)if(r.Long){let a=new r.Long(0,0,!1);o.avid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.avid=n.longs===String?"0":0;return i.avid!=null&&i.hasOwnProperty("avid")&&(typeof i.avid=="number"?o.avid=n.longs===String?String(i.avid):i.avid:o.avid=n.longs===String?r.Long.prototype.toString.call(i.avid):n.longs===Number?new r.LongBits(i.avid.low>>>0,i.avid.high>>>0).toNumber():i.avid),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.service.cert.v1.FieldCertPopRecordReq"},l}(),e.FieldCertPopRecordRsp=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){default:i.skipType(y&7);break}}return a},l.fromObject=function(i){return i instanceof u.bilibili.community.service.cert.v1.FieldCertPopRecordRsp?i:new u.bilibili.community.service.cert.v1.FieldCertPopRecordRsp},l.toObject=function(){return{}},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.service.cert.v1.FieldCertPopRecordRsp"},l}(),e.FieldCertPopActionReq=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.avid=i.int64();break}case 2:{a.action=i.int32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.service.cert.v1.FieldCertPopActionReq)return i;let n=new u.bilibili.community.service.cert.v1.FieldCertPopActionReq;switch(i.avid!=null&&(r.Long?(n.avid=r.Long.fromValue(i.avid)).unsigned=!1:typeof i.avid=="string"?n.avid=parseInt(i.avid,10):typeof i.avid=="number"?n.avid=i.avid:typeof i.avid=="object"&&(n.avid=new r.LongBits(i.avid.low>>>0,i.avid.high>>>0).toNumber())),i.action){default:if(typeof i.action=="number"){n.action=i.action;break}break;case"ACTION_CERT_CANCEL":case 0:n.action=0;break;case"ACTION_CERT_CONFIRM":case 1:n.action=1;break}return n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.avid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.avid=n.longs===String?"0":0;o.action=n.enums===String?"ACTION_CERT_CANCEL":0}return i.avid!=null&&i.hasOwnProperty("avid")&&(typeof i.avid=="number"?o.avid=n.longs===String?String(i.avid):i.avid:o.avid=n.longs===String?r.Long.prototype.toString.call(i.avid):n.longs===Number?new r.LongBits(i.avid.low>>>0,i.avid.high>>>0).toNumber():i.avid),i.action!=null&&i.hasOwnProperty("action")&&(o.action=n.enums===String?u.bilibili.community.service.cert.v1.Action[i.action]===void 0?i.action:u.bilibili.community.service.cert.v1.Action[i.action]:i.action),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.service.cert.v1.FieldCertPopActionReq"},l}(),e.Action=function(){let l={},t=Object.create(l);return t[l[0]="ACTION_CERT_CANCEL"]=0,t[l[1]="ACTION_CERT_CONFIRM"]=1,t}(),e.FieldCertPopActionRsp=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){default:i.skipType(y&7);break}}return a},l.fromObject=function(i){return i instanceof u.bilibili.community.service.cert.v1.FieldCertPopActionRsp?i:new u.bilibili.community.service.cert.v1.FieldCertPopActionRsp},l.toObject=function(){return{}},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.service.cert.v1.FieldCertPopActionRsp"},l}(),e}(),c}(),p.dm=function(){let c={};return c.live=function(){let e={};return e.BizScene=function(){let l={},t=Object.create(l);return t[l[0]="BizSceneNone"]=0,t[l[1]="BizSceneLottery"]=1,t[l[2]="BizSceneSurvive"]=2,t[l[3]="BizSceneVoiceConn"]=3,t[l[4]="BizScenePlayBack"]=4,t[l[5]="BizSceneVote"]=5,t}(),e.DmType=function(){let l={},t=Object.create(l);return t[l[0]="DmTypeNormal"]=0,t[l[1]="DmTypeEmoticon"]=1,t[l[2]="DmTypeVoice"]=2,t}(),e.Dm=function(){function l(t){if(this.emoticons={},t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.idStr=i.string();break}case 2:{a.mode=i.int32();break}case 3:{a.fontsize=i.int32();break}case 4:{a.color=i.uint32();break}case 5:{a.midHash=i.string();break}case 6:{a.content=i.string();break}case 7:{a.ctime=i.int64();break}case 8:{a.weight=i.int32();break}case 9:{a.rnd=i.int64();break}case 10:{a.attr=i.int64();break}case 11:{a.bizScene=i.int32();break}case 12:{a.bubble=u.bilibili.community.service.dm.live.Bubble.decode(i,i.uint32());break}case 13:{a.dmType=i.int32();break}case 14:{a.emoticons===r.emptyObject&&(a.emoticons={});let g=i.uint32()+i.pos;for(y="",s=null;i.pos>>3){case 1:y=i.string();break;case 2:s=u.bilibili.community.service.dm.live.Emoticon.decode(i,i.uint32());break;default:i.skipType(S&7);break}}a.emoticons[y]=s;break}case 15:{a.voice=u.bilibili.community.service.dm.live.Voice.decode(i,i.uint32());break}case 16:{a.animation=i.string();break}case 17:{a.aggregation=u.bilibili.community.service.dm.live.Aggregation.decode(i,i.uint32());break}case 18:{a.sendFromMe=i.bool();break}case 19:{a.check=u.bilibili.community.service.dm.live.Check.decode(i,i.uint32());break}case 20:{a.user=u.bilibili.community.service.dm.live.User.decode(i,i.uint32());break}case 21:{a.room=u.bilibili.community.service.dm.live.Room.decode(i,i.uint32());break}case 22:{a.icon=u.bilibili.community.service.dm.live.Icon.decode(i,i.uint32());break}case 23:{a.reply=u.bilibili.community.service.dm.live.Reply.decode(i,i.uint32());break}default:i.skipType(v&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.service.dm.live.Dm)return i;let n=new u.bilibili.community.service.dm.live.Dm;switch(i.idStr!=null&&(n.idStr=String(i.idStr)),i.mode!=null&&(n.mode=i.mode|0),i.fontsize!=null&&(n.fontsize=i.fontsize|0),i.color!=null&&(n.color=i.color>>>0),i.midHash!=null&&(n.midHash=String(i.midHash)),i.content!=null&&(n.content=String(i.content)),i.ctime!=null&&(r.Long?(n.ctime=r.Long.fromValue(i.ctime)).unsigned=!1:typeof i.ctime=="string"?n.ctime=parseInt(i.ctime,10):typeof i.ctime=="number"?n.ctime=i.ctime:typeof i.ctime=="object"&&(n.ctime=new r.LongBits(i.ctime.low>>>0,i.ctime.high>>>0).toNumber())),i.weight!=null&&(n.weight=i.weight|0),i.rnd!=null&&(r.Long?(n.rnd=r.Long.fromValue(i.rnd)).unsigned=!1:typeof i.rnd=="string"?n.rnd=parseInt(i.rnd,10):typeof i.rnd=="number"?n.rnd=i.rnd:typeof i.rnd=="object"&&(n.rnd=new r.LongBits(i.rnd.low>>>0,i.rnd.high>>>0).toNumber())),i.attr!=null&&(r.Long?(n.attr=r.Long.fromValue(i.attr)).unsigned=!1:typeof i.attr=="string"?n.attr=parseInt(i.attr,10):typeof i.attr=="number"?n.attr=i.attr:typeof i.attr=="object"&&(n.attr=new r.LongBits(i.attr.low>>>0,i.attr.high>>>0).toNumber())),i.bizScene){default:if(typeof i.bizScene=="number"){n.bizScene=i.bizScene;break}break;case"BizSceneNone":case 0:n.bizScene=0;break;case"BizSceneLottery":case 1:n.bizScene=1;break;case"BizSceneSurvive":case 2:n.bizScene=2;break;case"BizSceneVoiceConn":case 3:n.bizScene=3;break;case"BizScenePlayBack":case 4:n.bizScene=4;break;case"BizSceneVote":case 5:n.bizScene=5;break}if(i.bubble!=null){if(typeof i.bubble!="object")throw TypeError(".bilibili.community.service.dm.live.Dm.bubble: object expected");n.bubble=u.bilibili.community.service.dm.live.Bubble.fromObject(i.bubble)}switch(i.dmType){default:if(typeof i.dmType=="number"){n.dmType=i.dmType;break}break;case"DmTypeNormal":case 0:n.dmType=0;break;case"DmTypeEmoticon":case 1:n.dmType=1;break;case"DmTypeVoice":case 2:n.dmType=2;break}if(i.emoticons){if(typeof i.emoticons!="object")throw TypeError(".bilibili.community.service.dm.live.Dm.emoticons: object expected");n.emoticons={};for(let o=Object.keys(i.emoticons),a=0;a>>0,i.ctime.high>>>0).toNumber():i.ctime),i.weight!=null&&i.hasOwnProperty("weight")&&(o.weight=i.weight),i.rnd!=null&&i.hasOwnProperty("rnd")&&(typeof i.rnd=="number"?o.rnd=n.longs===String?String(i.rnd):i.rnd:o.rnd=n.longs===String?r.Long.prototype.toString.call(i.rnd):n.longs===Number?new r.LongBits(i.rnd.low>>>0,i.rnd.high>>>0).toNumber():i.rnd),i.attr!=null&&i.hasOwnProperty("attr")&&(typeof i.attr=="number"?o.attr=n.longs===String?String(i.attr):i.attr:o.attr=n.longs===String?r.Long.prototype.toString.call(i.attr):n.longs===Number?new r.LongBits(i.attr.low>>>0,i.attr.high>>>0).toNumber():i.attr),i.bizScene!=null&&i.hasOwnProperty("bizScene")&&(o.bizScene=n.enums===String?u.bilibili.community.service.dm.live.BizScene[i.bizScene]===void 0?i.bizScene:u.bilibili.community.service.dm.live.BizScene[i.bizScene]:i.bizScene),i.bubble!=null&&i.hasOwnProperty("bubble")&&(o.bubble=u.bilibili.community.service.dm.live.Bubble.toObject(i.bubble,n)),i.dmType!=null&&i.hasOwnProperty("dmType")&&(o.dmType=n.enums===String?u.bilibili.community.service.dm.live.DmType[i.dmType]===void 0?i.dmType:u.bilibili.community.service.dm.live.DmType[i.dmType]:i.dmType);let a;if(i.emoticons&&(a=Object.keys(i.emoticons)).length){o.emoticons={};for(let y=0;y>>3){case 1:{a.token=i.string();break}case 2:{a.ts=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.service.dm.live.Check)return i;let n=new u.bilibili.community.service.dm.live.Check;return i.token!=null&&(n.token=String(i.token)),i.ts!=null&&(r.Long?(n.ts=r.Long.fromValue(i.ts)).unsigned=!1:typeof i.ts=="string"?n.ts=parseInt(i.ts,10):typeof i.ts=="number"?n.ts=i.ts:typeof i.ts=="object"&&(n.ts=new r.LongBits(i.ts.low>>>0,i.ts.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults)if(o.token="",r.Long){let a=new r.Long(0,0,!1);o.ts=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.ts=n.longs===String?"0":0;return i.token!=null&&i.hasOwnProperty("token")&&(o.token=i.token),i.ts!=null&&i.hasOwnProperty("ts")&&(typeof i.ts=="number"?o.ts=n.longs===String?String(i.ts):i.ts:o.ts=n.longs===String?r.Long.prototype.toString.call(i.ts):n.longs===Number?new r.LongBits(i.ts.low>>>0,i.ts.high>>>0).toNumber():i.ts),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.service.dm.live.Check"},l}(),e.Room=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.uid=i.int64();break}case 2:{a.name=i.string();break}case 3:{a.id=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.service.dm.live.Room)return i;let n=new u.bilibili.community.service.dm.live.Room;return i.uid!=null&&(r.Long?(n.uid=r.Long.fromValue(i.uid)).unsigned=!1:typeof i.uid=="string"?n.uid=parseInt(i.uid,10):typeof i.uid=="number"?n.uid=i.uid:typeof i.uid=="object"&&(n.uid=new r.LongBits(i.uid.low>>>0,i.uid.high>>>0).toNumber())),i.name!=null&&(n.name=String(i.name)),i.id!=null&&(r.Long?(n.id=r.Long.fromValue(i.id)).unsigned=!1:typeof i.id=="string"?n.id=parseInt(i.id,10):typeof i.id=="number"?n.id=i.id:typeof i.id=="object"&&(n.id=new r.LongBits(i.id.low>>>0,i.id.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.uid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.uid=n.longs===String?"0":0;if(o.name="",r.Long){let a=new r.Long(0,0,!1);o.id=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.id=n.longs===String?"0":0}return i.uid!=null&&i.hasOwnProperty("uid")&&(typeof i.uid=="number"?o.uid=n.longs===String?String(i.uid):i.uid:o.uid=n.longs===String?r.Long.prototype.toString.call(i.uid):n.longs===Number?new r.LongBits(i.uid.low>>>0,i.uid.high>>>0).toNumber():i.uid),i.name!=null&&i.hasOwnProperty("name")&&(o.name=i.name),i.id!=null&&i.hasOwnProperty("id")&&(typeof i.id=="number"?o.id=n.longs===String?String(i.id):i.id:o.id=n.longs===String?r.Long.prototype.toString.call(i.id):n.longs===Number?new r.LongBits(i.id.low>>>0,i.id.high>>>0).toNumber():i.id),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.service.dm.live.Room"},l}(),e.Icon=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.prefix=u.bilibili.community.service.dm.live.Prefix.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.service.dm.live.Icon)return i;let n=new u.bilibili.community.service.dm.live.Icon;if(i.prefix!=null){if(typeof i.prefix!="object")throw TypeError(".bilibili.community.service.dm.live.Icon.prefix: object expected");n.prefix=u.bilibili.community.service.dm.live.Prefix.fromObject(i.prefix)}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.prefix=null),i.prefix!=null&&i.hasOwnProperty("prefix")&&(o.prefix=u.bilibili.community.service.dm.live.Prefix.toObject(i.prefix,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.service.dm.live.Icon"},l}(),e.Reply=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.showReply=i.bool();break}case 2:{a.replyMid=i.int64();break}case 3:{a.replyUname=i.string();break}case 4:{a.replyUnameColor=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.service.dm.live.Reply)return i;let n=new u.bilibili.community.service.dm.live.Reply;return i.showReply!=null&&(n.showReply=!!i.showReply),i.replyMid!=null&&(r.Long?(n.replyMid=r.Long.fromValue(i.replyMid)).unsigned=!1:typeof i.replyMid=="string"?n.replyMid=parseInt(i.replyMid,10):typeof i.replyMid=="number"?n.replyMid=i.replyMid:typeof i.replyMid=="object"&&(n.replyMid=new r.LongBits(i.replyMid.low>>>0,i.replyMid.high>>>0).toNumber())),i.replyUname!=null&&(n.replyUname=String(i.replyUname)),i.replyUnameColor!=null&&(n.replyUnameColor=String(i.replyUnameColor)),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(o.showReply=!1,r.Long){let a=new r.Long(0,0,!1);o.replyMid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.replyMid=n.longs===String?"0":0;o.replyUname="",o.replyUnameColor=""}return i.showReply!=null&&i.hasOwnProperty("showReply")&&(o.showReply=i.showReply),i.replyMid!=null&&i.hasOwnProperty("replyMid")&&(typeof i.replyMid=="number"?o.replyMid=n.longs===String?String(i.replyMid):i.replyMid:o.replyMid=n.longs===String?r.Long.prototype.toString.call(i.replyMid):n.longs===Number?new r.LongBits(i.replyMid.low>>>0,i.replyMid.high>>>0).toNumber():i.replyMid),i.replyUname!=null&&i.hasOwnProperty("replyUname")&&(o.replyUname=i.replyUname),i.replyUnameColor!=null&&i.hasOwnProperty("replyUnameColor")&&(o.replyUnameColor=i.replyUnameColor),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.service.dm.live.Reply"},l}(),e.Prefix=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.type=i.int32();break}case 2:{a.resource=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.service.dm.live.Prefix)return i;let n=new u.bilibili.community.service.dm.live.Prefix;return i.type!=null&&(n.type=i.type|0),i.resource!=null&&(n.resource=String(i.resource)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.type=0,o.resource=""),i.type!=null&&i.hasOwnProperty("type")&&(o.type=i.type),i.resource!=null&&i.hasOwnProperty("resource")&&(o.resource=i.resource),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.service.dm.live.Prefix"},l}(),e.Bubble=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.id=i.int64();break}case 2:{a.color=i.string();break}case 3:{a.idV2=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.service.dm.live.Bubble)return i;let n=new u.bilibili.community.service.dm.live.Bubble;return i.id!=null&&(r.Long?(n.id=r.Long.fromValue(i.id)).unsigned=!1:typeof i.id=="string"?n.id=parseInt(i.id,10):typeof i.id=="number"?n.id=i.id:typeof i.id=="object"&&(n.id=new r.LongBits(i.id.low>>>0,i.id.high>>>0).toNumber())),i.color!=null&&(n.color=String(i.color)),i.idV2!=null&&(r.Long?(n.idV2=r.Long.fromValue(i.idV2)).unsigned=!1:typeof i.idV2=="string"?n.idV2=parseInt(i.idV2,10):typeof i.idV2=="number"?n.idV2=i.idV2:typeof i.idV2=="object"&&(n.idV2=new r.LongBits(i.idV2.low>>>0,i.idV2.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.id=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.id=n.longs===String?"0":0;if(o.color="",r.Long){let a=new r.Long(0,0,!1);o.idV2=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.idV2=n.longs===String?"0":0}return i.id!=null&&i.hasOwnProperty("id")&&(typeof i.id=="number"?o.id=n.longs===String?String(i.id):i.id:o.id=n.longs===String?r.Long.prototype.toString.call(i.id):n.longs===Number?new r.LongBits(i.id.low>>>0,i.id.high>>>0).toNumber():i.id),i.color!=null&&i.hasOwnProperty("color")&&(o.color=i.color),i.idV2!=null&&i.hasOwnProperty("idV2")&&(typeof i.idV2=="number"?o.idV2=n.longs===String?String(i.idV2):i.idV2:o.idV2=n.longs===String?r.Long.prototype.toString.call(i.idV2):n.longs===Number?new r.LongBits(i.idV2.low>>>0,i.idV2.high>>>0).toNumber():i.idV2),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.service.dm.live.Bubble"},l}(),e.Emoticon=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.unique=i.string();break}case 2:{a.url=i.string();break}case 3:{a.isDynamic=i.bool();break}case 4:{a.inPlayerArea=i.int64();break}case 5:{a.bulgeDisplay=i.int64();break}case 6:{a.height=i.int64();break}case 7:{a.width=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.service.dm.live.Emoticon)return i;let n=new u.bilibili.community.service.dm.live.Emoticon;return i.unique!=null&&(n.unique=String(i.unique)),i.url!=null&&(n.url=String(i.url)),i.isDynamic!=null&&(n.isDynamic=!!i.isDynamic),i.inPlayerArea!=null&&(r.Long?(n.inPlayerArea=r.Long.fromValue(i.inPlayerArea)).unsigned=!1:typeof i.inPlayerArea=="string"?n.inPlayerArea=parseInt(i.inPlayerArea,10):typeof i.inPlayerArea=="number"?n.inPlayerArea=i.inPlayerArea:typeof i.inPlayerArea=="object"&&(n.inPlayerArea=new r.LongBits(i.inPlayerArea.low>>>0,i.inPlayerArea.high>>>0).toNumber())),i.bulgeDisplay!=null&&(r.Long?(n.bulgeDisplay=r.Long.fromValue(i.bulgeDisplay)).unsigned=!1:typeof i.bulgeDisplay=="string"?n.bulgeDisplay=parseInt(i.bulgeDisplay,10):typeof i.bulgeDisplay=="number"?n.bulgeDisplay=i.bulgeDisplay:typeof i.bulgeDisplay=="object"&&(n.bulgeDisplay=new r.LongBits(i.bulgeDisplay.low>>>0,i.bulgeDisplay.high>>>0).toNumber())),i.height!=null&&(r.Long?(n.height=r.Long.fromValue(i.height)).unsigned=!1:typeof i.height=="string"?n.height=parseInt(i.height,10):typeof i.height=="number"?n.height=i.height:typeof i.height=="object"&&(n.height=new r.LongBits(i.height.low>>>0,i.height.high>>>0).toNumber())),i.width!=null&&(r.Long?(n.width=r.Long.fromValue(i.width)).unsigned=!1:typeof i.width=="string"?n.width=parseInt(i.width,10):typeof i.width=="number"?n.width=i.width:typeof i.width=="object"&&(n.width=new r.LongBits(i.width.low>>>0,i.width.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(o.unique="",o.url="",o.isDynamic=!1,r.Long){let a=new r.Long(0,0,!1);o.inPlayerArea=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.inPlayerArea=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.bulgeDisplay=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.bulgeDisplay=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.height=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.height=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.width=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.width=n.longs===String?"0":0}return i.unique!=null&&i.hasOwnProperty("unique")&&(o.unique=i.unique),i.url!=null&&i.hasOwnProperty("url")&&(o.url=i.url),i.isDynamic!=null&&i.hasOwnProperty("isDynamic")&&(o.isDynamic=i.isDynamic),i.inPlayerArea!=null&&i.hasOwnProperty("inPlayerArea")&&(typeof i.inPlayerArea=="number"?o.inPlayerArea=n.longs===String?String(i.inPlayerArea):i.inPlayerArea:o.inPlayerArea=n.longs===String?r.Long.prototype.toString.call(i.inPlayerArea):n.longs===Number?new r.LongBits(i.inPlayerArea.low>>>0,i.inPlayerArea.high>>>0).toNumber():i.inPlayerArea),i.bulgeDisplay!=null&&i.hasOwnProperty("bulgeDisplay")&&(typeof i.bulgeDisplay=="number"?o.bulgeDisplay=n.longs===String?String(i.bulgeDisplay):i.bulgeDisplay:o.bulgeDisplay=n.longs===String?r.Long.prototype.toString.call(i.bulgeDisplay):n.longs===Number?new r.LongBits(i.bulgeDisplay.low>>>0,i.bulgeDisplay.high>>>0).toNumber():i.bulgeDisplay),i.height!=null&&i.hasOwnProperty("height")&&(typeof i.height=="number"?o.height=n.longs===String?String(i.height):i.height:o.height=n.longs===String?r.Long.prototype.toString.call(i.height):n.longs===Number?new r.LongBits(i.height.low>>>0,i.height.high>>>0).toNumber():i.height),i.width!=null&&i.hasOwnProperty("width")&&(typeof i.width=="number"?o.width=n.longs===String?String(i.width):i.width:o.width=n.longs===String?r.Long.prototype.toString.call(i.width):n.longs===Number?new r.LongBits(i.width.low>>>0,i.width.high>>>0).toNumber():i.width),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.service.dm.live.Emoticon"},l}(),e.Voice=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.url=i.string();break}case 2:{a.fileFormat=i.string();break}case 3:{a.text=i.string();break}case 4:{a.fileDuration=i.int64();break}case 5:{a.fileId=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.service.dm.live.Voice)return i;let n=new u.bilibili.community.service.dm.live.Voice;return i.url!=null&&(n.url=String(i.url)),i.fileFormat!=null&&(n.fileFormat=String(i.fileFormat)),i.text!=null&&(n.text=String(i.text)),i.fileDuration!=null&&(r.Long?(n.fileDuration=r.Long.fromValue(i.fileDuration)).unsigned=!1:typeof i.fileDuration=="string"?n.fileDuration=parseInt(i.fileDuration,10):typeof i.fileDuration=="number"?n.fileDuration=i.fileDuration:typeof i.fileDuration=="object"&&(n.fileDuration=new r.LongBits(i.fileDuration.low>>>0,i.fileDuration.high>>>0).toNumber())),i.fileId!=null&&(n.fileId=String(i.fileId)),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(o.url="",o.fileFormat="",o.text="",r.Long){let a=new r.Long(0,0,!1);o.fileDuration=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.fileDuration=n.longs===String?"0":0;o.fileId=""}return i.url!=null&&i.hasOwnProperty("url")&&(o.url=i.url),i.fileFormat!=null&&i.hasOwnProperty("fileFormat")&&(o.fileFormat=i.fileFormat),i.text!=null&&i.hasOwnProperty("text")&&(o.text=i.text),i.fileDuration!=null&&i.hasOwnProperty("fileDuration")&&(typeof i.fileDuration=="number"?o.fileDuration=n.longs===String?String(i.fileDuration):i.fileDuration:o.fileDuration=n.longs===String?r.Long.prototype.toString.call(i.fileDuration):n.longs===Number?new r.LongBits(i.fileDuration.low>>>0,i.fileDuration.high>>>0).toNumber():i.fileDuration),i.fileId!=null&&i.hasOwnProperty("fileId")&&(o.fileId=i.fileId),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.service.dm.live.Voice"},l}(),e.Aggregation=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.isAggregation=i.bool();break}case 2:{a.activitySource=i.int64();break}case 3:{a.activityIdentity=i.string();break}case 4:{a.notShow=i.int32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.service.dm.live.Aggregation)return i;let n=new u.bilibili.community.service.dm.live.Aggregation;return i.isAggregation!=null&&(n.isAggregation=!!i.isAggregation),i.activitySource!=null&&(r.Long?(n.activitySource=r.Long.fromValue(i.activitySource)).unsigned=!1:typeof i.activitySource=="string"?n.activitySource=parseInt(i.activitySource,10):typeof i.activitySource=="number"?n.activitySource=i.activitySource:typeof i.activitySource=="object"&&(n.activitySource=new r.LongBits(i.activitySource.low>>>0,i.activitySource.high>>>0).toNumber())),i.activityIdentity!=null&&(n.activityIdentity=String(i.activityIdentity)),i.notShow!=null&&(n.notShow=i.notShow|0),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(o.isAggregation=!1,r.Long){let a=new r.Long(0,0,!1);o.activitySource=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.activitySource=n.longs===String?"0":0;o.activityIdentity="",o.notShow=0}return i.isAggregation!=null&&i.hasOwnProperty("isAggregation")&&(o.isAggregation=i.isAggregation),i.activitySource!=null&&i.hasOwnProperty("activitySource")&&(typeof i.activitySource=="number"?o.activitySource=n.longs===String?String(i.activitySource):i.activitySource:o.activitySource=n.longs===String?r.Long.prototype.toString.call(i.activitySource):n.longs===Number?new r.LongBits(i.activitySource.low>>>0,i.activitySource.high>>>0).toNumber():i.activitySource),i.activityIdentity!=null&&i.hasOwnProperty("activityIdentity")&&(o.activityIdentity=i.activityIdentity),i.notShow!=null&&i.hasOwnProperty("notShow")&&(o.notShow=i.notShow),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.service.dm.live.Aggregation"},l}(),e.User=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.uid=i.int64();break}case 2:{a.name=i.string();break}case 3:{a.nameColor=i.string();break}case 4:{a.face=i.string();break}case 5:{a.vip=i.int64();break}case 6:{a.svip=i.int64();break}case 7:{a.rank=i.int32();break}case 8:{a.mobileVerify=i.int32();break}case 9:{a.lplStatus=i.int64();break}case 10:{a.attr=i.int64();break}case 11:{a.medal=u.bilibili.community.service.dm.live.Medal.decode(i,i.uint32());break}case 12:{a.level=u.bilibili.community.service.dm.live.UserLevel.decode(i,i.uint32());break}case 13:{a.title=u.bilibili.community.service.dm.live.Title.decode(i,i.uint32());break}case 14:{a.identify=u.bilibili.community.service.dm.live.Identify.decode(i,i.uint32());break}case 15:{a.wealth=u.bilibili.community.service.dm.live.Wealth.decode(i,i.uint32());break}case 16:{a.groupMedal=u.bilibili.community.service.dm.live.GroupMedal.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.service.dm.live.User)return i;let n=new u.bilibili.community.service.dm.live.User;if(i.uid!=null&&(r.Long?(n.uid=r.Long.fromValue(i.uid)).unsigned=!1:typeof i.uid=="string"?n.uid=parseInt(i.uid,10):typeof i.uid=="number"?n.uid=i.uid:typeof i.uid=="object"&&(n.uid=new r.LongBits(i.uid.low>>>0,i.uid.high>>>0).toNumber())),i.name!=null&&(n.name=String(i.name)),i.nameColor!=null&&(n.nameColor=String(i.nameColor)),i.face!=null&&(n.face=String(i.face)),i.vip!=null&&(r.Long?(n.vip=r.Long.fromValue(i.vip)).unsigned=!1:typeof i.vip=="string"?n.vip=parseInt(i.vip,10):typeof i.vip=="number"?n.vip=i.vip:typeof i.vip=="object"&&(n.vip=new r.LongBits(i.vip.low>>>0,i.vip.high>>>0).toNumber())),i.svip!=null&&(r.Long?(n.svip=r.Long.fromValue(i.svip)).unsigned=!1:typeof i.svip=="string"?n.svip=parseInt(i.svip,10):typeof i.svip=="number"?n.svip=i.svip:typeof i.svip=="object"&&(n.svip=new r.LongBits(i.svip.low>>>0,i.svip.high>>>0).toNumber())),i.rank!=null&&(n.rank=i.rank|0),i.mobileVerify!=null&&(n.mobileVerify=i.mobileVerify|0),i.lplStatus!=null&&(r.Long?(n.lplStatus=r.Long.fromValue(i.lplStatus)).unsigned=!1:typeof i.lplStatus=="string"?n.lplStatus=parseInt(i.lplStatus,10):typeof i.lplStatus=="number"?n.lplStatus=i.lplStatus:typeof i.lplStatus=="object"&&(n.lplStatus=new r.LongBits(i.lplStatus.low>>>0,i.lplStatus.high>>>0).toNumber())),i.attr!=null&&(r.Long?(n.attr=r.Long.fromValue(i.attr)).unsigned=!1:typeof i.attr=="string"?n.attr=parseInt(i.attr,10):typeof i.attr=="number"?n.attr=i.attr:typeof i.attr=="object"&&(n.attr=new r.LongBits(i.attr.low>>>0,i.attr.high>>>0).toNumber())),i.medal!=null){if(typeof i.medal!="object")throw TypeError(".bilibili.community.service.dm.live.User.medal: object expected");n.medal=u.bilibili.community.service.dm.live.Medal.fromObject(i.medal)}if(i.level!=null){if(typeof i.level!="object")throw TypeError(".bilibili.community.service.dm.live.User.level: object expected");n.level=u.bilibili.community.service.dm.live.UserLevel.fromObject(i.level)}if(i.title!=null){if(typeof i.title!="object")throw TypeError(".bilibili.community.service.dm.live.User.title: object expected");n.title=u.bilibili.community.service.dm.live.Title.fromObject(i.title)}if(i.identify!=null){if(typeof i.identify!="object")throw TypeError(".bilibili.community.service.dm.live.User.identify: object expected");n.identify=u.bilibili.community.service.dm.live.Identify.fromObject(i.identify)}if(i.wealth!=null){if(typeof i.wealth!="object")throw TypeError(".bilibili.community.service.dm.live.User.wealth: object expected");n.wealth=u.bilibili.community.service.dm.live.Wealth.fromObject(i.wealth)}if(i.groupMedal!=null){if(typeof i.groupMedal!="object")throw TypeError(".bilibili.community.service.dm.live.User.groupMedal: object expected");n.groupMedal=u.bilibili.community.service.dm.live.GroupMedal.fromObject(i.groupMedal)}return n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.uid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.uid=n.longs===String?"0":0;if(o.name="",o.nameColor="",o.face="",r.Long){let a=new r.Long(0,0,!1);o.vip=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.vip=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.svip=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.svip=n.longs===String?"0":0;if(o.rank=0,o.mobileVerify=0,r.Long){let a=new r.Long(0,0,!1);o.lplStatus=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.lplStatus=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.attr=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.attr=n.longs===String?"0":0;o.medal=null,o.level=null,o.title=null,o.identify=null,o.wealth=null,o.groupMedal=null}return i.uid!=null&&i.hasOwnProperty("uid")&&(typeof i.uid=="number"?o.uid=n.longs===String?String(i.uid):i.uid:o.uid=n.longs===String?r.Long.prototype.toString.call(i.uid):n.longs===Number?new r.LongBits(i.uid.low>>>0,i.uid.high>>>0).toNumber():i.uid),i.name!=null&&i.hasOwnProperty("name")&&(o.name=i.name),i.nameColor!=null&&i.hasOwnProperty("nameColor")&&(o.nameColor=i.nameColor),i.face!=null&&i.hasOwnProperty("face")&&(o.face=i.face),i.vip!=null&&i.hasOwnProperty("vip")&&(typeof i.vip=="number"?o.vip=n.longs===String?String(i.vip):i.vip:o.vip=n.longs===String?r.Long.prototype.toString.call(i.vip):n.longs===Number?new r.LongBits(i.vip.low>>>0,i.vip.high>>>0).toNumber():i.vip),i.svip!=null&&i.hasOwnProperty("svip")&&(typeof i.svip=="number"?o.svip=n.longs===String?String(i.svip):i.svip:o.svip=n.longs===String?r.Long.prototype.toString.call(i.svip):n.longs===Number?new r.LongBits(i.svip.low>>>0,i.svip.high>>>0).toNumber():i.svip),i.rank!=null&&i.hasOwnProperty("rank")&&(o.rank=i.rank),i.mobileVerify!=null&&i.hasOwnProperty("mobileVerify")&&(o.mobileVerify=i.mobileVerify),i.lplStatus!=null&&i.hasOwnProperty("lplStatus")&&(typeof i.lplStatus=="number"?o.lplStatus=n.longs===String?String(i.lplStatus):i.lplStatus:o.lplStatus=n.longs===String?r.Long.prototype.toString.call(i.lplStatus):n.longs===Number?new r.LongBits(i.lplStatus.low>>>0,i.lplStatus.high>>>0).toNumber():i.lplStatus),i.attr!=null&&i.hasOwnProperty("attr")&&(typeof i.attr=="number"?o.attr=n.longs===String?String(i.attr):i.attr:o.attr=n.longs===String?r.Long.prototype.toString.call(i.attr):n.longs===Number?new r.LongBits(i.attr.low>>>0,i.attr.high>>>0).toNumber():i.attr),i.medal!=null&&i.hasOwnProperty("medal")&&(o.medal=u.bilibili.community.service.dm.live.Medal.toObject(i.medal,n)),i.level!=null&&i.hasOwnProperty("level")&&(o.level=u.bilibili.community.service.dm.live.UserLevel.toObject(i.level,n)),i.title!=null&&i.hasOwnProperty("title")&&(o.title=u.bilibili.community.service.dm.live.Title.toObject(i.title,n)),i.identify!=null&&i.hasOwnProperty("identify")&&(o.identify=u.bilibili.community.service.dm.live.Identify.toObject(i.identify,n)),i.wealth!=null&&i.hasOwnProperty("wealth")&&(o.wealth=u.bilibili.community.service.dm.live.Wealth.toObject(i.wealth,n)),i.groupMedal!=null&&i.hasOwnProperty("groupMedal")&&(o.groupMedal=u.bilibili.community.service.dm.live.GroupMedal.toObject(i.groupMedal,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.service.dm.live.User"},l}(),e.Identify=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.beginningUrl=i.string();break}case 2:{a.endingUrl=i.string();break}case 3:{a.jumpToUrl=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.service.dm.live.Identify)return i;let n=new u.bilibili.community.service.dm.live.Identify;return i.beginningUrl!=null&&(n.beginningUrl=String(i.beginningUrl)),i.endingUrl!=null&&(n.endingUrl=String(i.endingUrl)),i.jumpToUrl!=null&&(n.jumpToUrl=String(i.jumpToUrl)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.beginningUrl="",o.endingUrl="",o.jumpToUrl=""),i.beginningUrl!=null&&i.hasOwnProperty("beginningUrl")&&(o.beginningUrl=i.beginningUrl),i.endingUrl!=null&&i.hasOwnProperty("endingUrl")&&(o.endingUrl=i.endingUrl),i.jumpToUrl!=null&&i.hasOwnProperty("jumpToUrl")&&(o.jumpToUrl=i.jumpToUrl),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.service.dm.live.Identify"},l}(),e.Wealth=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.level=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.service.dm.live.Wealth)return i;let n=new u.bilibili.community.service.dm.live.Wealth;return i.level!=null&&(r.Long?(n.level=r.Long.fromValue(i.level)).unsigned=!1:typeof i.level=="string"?n.level=parseInt(i.level,10):typeof i.level=="number"?n.level=i.level:typeof i.level=="object"&&(n.level=new r.LongBits(i.level.low>>>0,i.level.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults)if(r.Long){let a=new r.Long(0,0,!1);o.level=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.level=n.longs===String?"0":0;return i.level!=null&&i.hasOwnProperty("level")&&(typeof i.level=="number"?o.level=n.longs===String?String(i.level):i.level:o.level=n.longs===String?r.Long.prototype.toString.call(i.level):n.longs===Number?new r.LongBits(i.level.low>>>0,i.level.high>>>0).toNumber():i.level),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.service.dm.live.Wealth"},l}(),e.Medal=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.level=i.int64();break}case 2:{a.name=i.string();break}case 3:{a.special=i.string();break}case 4:{a.color=i.int64();break}case 5:{a.iconId=i.int64();break}case 6:{a.borderColor=i.int64();break}case 7:{a.gradientStartColor=i.int64();break}case 8:{a.gradientEndColor=i.int64();break}case 9:{a.privilege=i.int64();break}case 10:{a.light=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.service.dm.live.Medal)return i;let n=new u.bilibili.community.service.dm.live.Medal;return i.level!=null&&(r.Long?(n.level=r.Long.fromValue(i.level)).unsigned=!1:typeof i.level=="string"?n.level=parseInt(i.level,10):typeof i.level=="number"?n.level=i.level:typeof i.level=="object"&&(n.level=new r.LongBits(i.level.low>>>0,i.level.high>>>0).toNumber())),i.name!=null&&(n.name=String(i.name)),i.special!=null&&(n.special=String(i.special)),i.color!=null&&(r.Long?(n.color=r.Long.fromValue(i.color)).unsigned=!1:typeof i.color=="string"?n.color=parseInt(i.color,10):typeof i.color=="number"?n.color=i.color:typeof i.color=="object"&&(n.color=new r.LongBits(i.color.low>>>0,i.color.high>>>0).toNumber())),i.iconId!=null&&(r.Long?(n.iconId=r.Long.fromValue(i.iconId)).unsigned=!1:typeof i.iconId=="string"?n.iconId=parseInt(i.iconId,10):typeof i.iconId=="number"?n.iconId=i.iconId:typeof i.iconId=="object"&&(n.iconId=new r.LongBits(i.iconId.low>>>0,i.iconId.high>>>0).toNumber())),i.borderColor!=null&&(r.Long?(n.borderColor=r.Long.fromValue(i.borderColor)).unsigned=!1:typeof i.borderColor=="string"?n.borderColor=parseInt(i.borderColor,10):typeof i.borderColor=="number"?n.borderColor=i.borderColor:typeof i.borderColor=="object"&&(n.borderColor=new r.LongBits(i.borderColor.low>>>0,i.borderColor.high>>>0).toNumber())),i.gradientStartColor!=null&&(r.Long?(n.gradientStartColor=r.Long.fromValue(i.gradientStartColor)).unsigned=!1:typeof i.gradientStartColor=="string"?n.gradientStartColor=parseInt(i.gradientStartColor,10):typeof i.gradientStartColor=="number"?n.gradientStartColor=i.gradientStartColor:typeof i.gradientStartColor=="object"&&(n.gradientStartColor=new r.LongBits(i.gradientStartColor.low>>>0,i.gradientStartColor.high>>>0).toNumber())),i.gradientEndColor!=null&&(r.Long?(n.gradientEndColor=r.Long.fromValue(i.gradientEndColor)).unsigned=!1:typeof i.gradientEndColor=="string"?n.gradientEndColor=parseInt(i.gradientEndColor,10):typeof i.gradientEndColor=="number"?n.gradientEndColor=i.gradientEndColor:typeof i.gradientEndColor=="object"&&(n.gradientEndColor=new r.LongBits(i.gradientEndColor.low>>>0,i.gradientEndColor.high>>>0).toNumber())),i.privilege!=null&&(r.Long?(n.privilege=r.Long.fromValue(i.privilege)).unsigned=!1:typeof i.privilege=="string"?n.privilege=parseInt(i.privilege,10):typeof i.privilege=="number"?n.privilege=i.privilege:typeof i.privilege=="object"&&(n.privilege=new r.LongBits(i.privilege.low>>>0,i.privilege.high>>>0).toNumber())),i.light!=null&&(r.Long?(n.light=r.Long.fromValue(i.light)).unsigned=!1:typeof i.light=="string"?n.light=parseInt(i.light,10):typeof i.light=="number"?n.light=i.light:typeof i.light=="object"&&(n.light=new r.LongBits(i.light.low>>>0,i.light.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.level=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.level=n.longs===String?"0":0;if(o.name="",o.special="",r.Long){let a=new r.Long(0,0,!1);o.color=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.color=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.iconId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.iconId=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.borderColor=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.borderColor=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.gradientStartColor=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.gradientStartColor=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.gradientEndColor=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.gradientEndColor=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.privilege=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.privilege=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.light=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.light=n.longs===String?"0":0}return i.level!=null&&i.hasOwnProperty("level")&&(typeof i.level=="number"?o.level=n.longs===String?String(i.level):i.level:o.level=n.longs===String?r.Long.prototype.toString.call(i.level):n.longs===Number?new r.LongBits(i.level.low>>>0,i.level.high>>>0).toNumber():i.level),i.name!=null&&i.hasOwnProperty("name")&&(o.name=i.name),i.special!=null&&i.hasOwnProperty("special")&&(o.special=i.special),i.color!=null&&i.hasOwnProperty("color")&&(typeof i.color=="number"?o.color=n.longs===String?String(i.color):i.color:o.color=n.longs===String?r.Long.prototype.toString.call(i.color):n.longs===Number?new r.LongBits(i.color.low>>>0,i.color.high>>>0).toNumber():i.color),i.iconId!=null&&i.hasOwnProperty("iconId")&&(typeof i.iconId=="number"?o.iconId=n.longs===String?String(i.iconId):i.iconId:o.iconId=n.longs===String?r.Long.prototype.toString.call(i.iconId):n.longs===Number?new r.LongBits(i.iconId.low>>>0,i.iconId.high>>>0).toNumber():i.iconId),i.borderColor!=null&&i.hasOwnProperty("borderColor")&&(typeof i.borderColor=="number"?o.borderColor=n.longs===String?String(i.borderColor):i.borderColor:o.borderColor=n.longs===String?r.Long.prototype.toString.call(i.borderColor):n.longs===Number?new r.LongBits(i.borderColor.low>>>0,i.borderColor.high>>>0).toNumber():i.borderColor),i.gradientStartColor!=null&&i.hasOwnProperty("gradientStartColor")&&(typeof i.gradientStartColor=="number"?o.gradientStartColor=n.longs===String?String(i.gradientStartColor):i.gradientStartColor:o.gradientStartColor=n.longs===String?r.Long.prototype.toString.call(i.gradientStartColor):n.longs===Number?new r.LongBits(i.gradientStartColor.low>>>0,i.gradientStartColor.high>>>0).toNumber():i.gradientStartColor),i.gradientEndColor!=null&&i.hasOwnProperty("gradientEndColor")&&(typeof i.gradientEndColor=="number"?o.gradientEndColor=n.longs===String?String(i.gradientEndColor):i.gradientEndColor:o.gradientEndColor=n.longs===String?r.Long.prototype.toString.call(i.gradientEndColor):n.longs===Number?new r.LongBits(i.gradientEndColor.low>>>0,i.gradientEndColor.high>>>0).toNumber():i.gradientEndColor),i.privilege!=null&&i.hasOwnProperty("privilege")&&(typeof i.privilege=="number"?o.privilege=n.longs===String?String(i.privilege):i.privilege:o.privilege=n.longs===String?r.Long.prototype.toString.call(i.privilege):n.longs===Number?new r.LongBits(i.privilege.low>>>0,i.privilege.high>>>0).toNumber():i.privilege),i.light!=null&&i.hasOwnProperty("light")&&(typeof i.light=="number"?o.light=n.longs===String?String(i.light):i.light:o.light=n.longs===String?r.Long.prototype.toString.call(i.light):n.longs===Number?new r.LongBits(i.light.low>>>0,i.light.high>>>0).toNumber():i.light),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.service.dm.live.Medal"},l}(),e.GroupMedal=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.medalId=i.int64();break}case 2:{a.name=i.string();break}case 3:{a.isLighted=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.service.dm.live.GroupMedal)return i;let n=new u.bilibili.community.service.dm.live.GroupMedal;return i.medalId!=null&&(r.Long?(n.medalId=r.Long.fromValue(i.medalId)).unsigned=!1:typeof i.medalId=="string"?n.medalId=parseInt(i.medalId,10):typeof i.medalId=="number"?n.medalId=i.medalId:typeof i.medalId=="object"&&(n.medalId=new r.LongBits(i.medalId.low>>>0,i.medalId.high>>>0).toNumber())),i.name!=null&&(n.name=String(i.name)),i.isLighted!=null&&(r.Long?(n.isLighted=r.Long.fromValue(i.isLighted)).unsigned=!1:typeof i.isLighted=="string"?n.isLighted=parseInt(i.isLighted,10):typeof i.isLighted=="number"?n.isLighted=i.isLighted:typeof i.isLighted=="object"&&(n.isLighted=new r.LongBits(i.isLighted.low>>>0,i.isLighted.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.medalId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.medalId=n.longs===String?"0":0;if(o.name="",r.Long){let a=new r.Long(0,0,!1);o.isLighted=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.isLighted=n.longs===String?"0":0}return i.medalId!=null&&i.hasOwnProperty("medalId")&&(typeof i.medalId=="number"?o.medalId=n.longs===String?String(i.medalId):i.medalId:o.medalId=n.longs===String?r.Long.prototype.toString.call(i.medalId):n.longs===Number?new r.LongBits(i.medalId.low>>>0,i.medalId.high>>>0).toNumber():i.medalId),i.name!=null&&i.hasOwnProperty("name")&&(o.name=i.name),i.isLighted!=null&&i.hasOwnProperty("isLighted")&&(typeof i.isLighted=="number"?o.isLighted=n.longs===String?String(i.isLighted):i.isLighted:o.isLighted=n.longs===String?r.Long.prototype.toString.call(i.isLighted):n.longs===Number?new r.LongBits(i.isLighted.low>>>0,i.isLighted.high>>>0).toNumber():i.isLighted),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.service.dm.live.GroupMedal"},l}(),e.UserLevel=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.level=i.int64();break}case 2:{a.color=i.int64();break}case 3:{a.rank=i.string();break}case 4:{a.onlineRank=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.service.dm.live.UserLevel)return i;let n=new u.bilibili.community.service.dm.live.UserLevel;return i.level!=null&&(r.Long?(n.level=r.Long.fromValue(i.level)).unsigned=!1:typeof i.level=="string"?n.level=parseInt(i.level,10):typeof i.level=="number"?n.level=i.level:typeof i.level=="object"&&(n.level=new r.LongBits(i.level.low>>>0,i.level.high>>>0).toNumber())),i.color!=null&&(r.Long?(n.color=r.Long.fromValue(i.color)).unsigned=!1:typeof i.color=="string"?n.color=parseInt(i.color,10):typeof i.color=="number"?n.color=i.color:typeof i.color=="object"&&(n.color=new r.LongBits(i.color.low>>>0,i.color.high>>>0).toNumber())),i.rank!=null&&(n.rank=String(i.rank)),i.onlineRank!=null&&(r.Long?(n.onlineRank=r.Long.fromValue(i.onlineRank)).unsigned=!1:typeof i.onlineRank=="string"?n.onlineRank=parseInt(i.onlineRank,10):typeof i.onlineRank=="number"?n.onlineRank=i.onlineRank:typeof i.onlineRank=="object"&&(n.onlineRank=new r.LongBits(i.onlineRank.low>>>0,i.onlineRank.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.level=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.level=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.color=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.color=n.longs===String?"0":0;if(o.rank="",r.Long){let a=new r.Long(0,0,!1);o.onlineRank=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.onlineRank=n.longs===String?"0":0}return i.level!=null&&i.hasOwnProperty("level")&&(typeof i.level=="number"?o.level=n.longs===String?String(i.level):i.level:o.level=n.longs===String?r.Long.prototype.toString.call(i.level):n.longs===Number?new r.LongBits(i.level.low>>>0,i.level.high>>>0).toNumber():i.level),i.color!=null&&i.hasOwnProperty("color")&&(typeof i.color=="number"?o.color=n.longs===String?String(i.color):i.color:o.color=n.longs===String?r.Long.prototype.toString.call(i.color):n.longs===Number?new r.LongBits(i.color.low>>>0,i.color.high>>>0).toNumber():i.color),i.rank!=null&&i.hasOwnProperty("rank")&&(o.rank=i.rank),i.onlineRank!=null&&i.hasOwnProperty("onlineRank")&&(typeof i.onlineRank=="number"?o.onlineRank=n.longs===String?String(i.onlineRank):i.onlineRank:o.onlineRank=n.longs===String?r.Long.prototype.toString.call(i.onlineRank):n.longs===Number?new r.LongBits(i.onlineRank.low>>>0,i.onlineRank.high>>>0).toNumber():i.onlineRank),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.service.dm.live.UserLevel"},l}(),e.Title=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.title=i.string();break}case 2:{a.oldTitle=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.service.dm.live.Title)return i;let n=new u.bilibili.community.service.dm.live.Title;return i.title!=null&&(n.title=String(i.title)),i.oldTitle!=null&&(n.oldTitle=String(i.oldTitle)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.title="",o.oldTitle=""),i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.oldTitle!=null&&i.hasOwnProperty("oldTitle")&&(o.oldTitle=i.oldTitle),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.service.dm.live.Title"},l}(),e.Record=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.dmid=i.string();break}case 2:{a.timeOffset=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.service.dm.live.Record)return i;let n=new u.bilibili.community.service.dm.live.Record;return i.dmid!=null&&(n.dmid=String(i.dmid)),i.timeOffset!=null&&(r.Long?(n.timeOffset=r.Long.fromValue(i.timeOffset)).unsigned=!1:typeof i.timeOffset=="string"?n.timeOffset=parseInt(i.timeOffset,10):typeof i.timeOffset=="number"?n.timeOffset=i.timeOffset:typeof i.timeOffset=="object"&&(n.timeOffset=new r.LongBits(i.timeOffset.low>>>0,i.timeOffset.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults)if(o.dmid="",r.Long){let a=new r.Long(0,0,!1);o.timeOffset=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.timeOffset=n.longs===String?"0":0;return i.dmid!=null&&i.hasOwnProperty("dmid")&&(o.dmid=i.dmid),i.timeOffset!=null&&i.hasOwnProperty("timeOffset")&&(typeof i.timeOffset=="number"?o.timeOffset=n.longs===String?String(i.timeOffset):i.timeOffset:o.timeOffset=n.longs===String?r.Long.prototype.toString.call(i.timeOffset):n.longs===Number?new r.LongBits(i.timeOffset.low>>>0,i.timeOffset.high>>>0).toNumber():i.timeOffset),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.service.dm.live.Record"},l}(),e}(),c.v1=function(){let e={};return e.DM=function(){function l(t,i,n){b.rpc.Service.call(this,t,i,n)}return(l.prototype=Object.create(b.rpc.Service.prototype)).constructor=l,l.create=function(i,n,o){return new this(i,n,o)},Object.defineProperty(l.prototype.dmSegMobile=function t(i,n){return this.rpcCall(t,u.bilibili.community.service.dm.v1.DmSegMobileReq,u.bilibili.community.service.dm.v1.DmSegMobileReply,i,n)},"name",{value:"DmSegMobile"}),Object.defineProperty(l.prototype.dmView=function t(i,n){return this.rpcCall(t,u.bilibili.community.service.dm.v1.DmViewReq,u.bilibili.community.service.dm.v1.DmViewReply,i,n)},"name",{value:"DmView"}),Object.defineProperty(l.prototype.dmPlayerConfig=function t(i,n){return this.rpcCall(t,u.bilibili.community.service.dm.v1.DmPlayerConfigReq,u.bilibili.community.service.dm.v1.Response,i,n)},"name",{value:"DmPlayerConfig"}),Object.defineProperty(l.prototype.dmSegOtt=function t(i,n){return this.rpcCall(t,u.bilibili.community.service.dm.v1.DmSegOttReq,u.bilibili.community.service.dm.v1.DmSegOttReply,i,n)},"name",{value:"DmSegOtt"}),Object.defineProperty(l.prototype.dmSegSDK=function t(i,n){return this.rpcCall(t,u.bilibili.community.service.dm.v1.DmSegSDKReq,u.bilibili.community.service.dm.v1.DmSegSDKReply,i,n)},"name",{value:"DmSegSDK"}),Object.defineProperty(l.prototype.dmExpoReport=function t(i,n){return this.rpcCall(t,u.bilibili.community.service.dm.v1.DmExpoReportReq,u.bilibili.community.service.dm.v1.DmExpoReportRes,i,n)},"name",{value:"DmExpoReport"}),l}(),e.DmExpoReportReq=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.sessionId=i.string();break}case 2:{a.oid=i.int64();break}case 3:{a.dmids=i.bytes();break}case 4:{a.spmid=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.service.dm.v1.DmExpoReportReq)return i;let n=new u.bilibili.community.service.dm.v1.DmExpoReportReq;return i.sessionId!=null&&(n.sessionId=String(i.sessionId)),i.oid!=null&&(r.Long?(n.oid=r.Long.fromValue(i.oid)).unsigned=!1:typeof i.oid=="string"?n.oid=parseInt(i.oid,10):typeof i.oid=="number"?n.oid=i.oid:typeof i.oid=="object"&&(n.oid=new r.LongBits(i.oid.low>>>0,i.oid.high>>>0).toNumber())),i.dmids!=null&&(typeof i.dmids=="string"?r.base64.decode(i.dmids,n.dmids=r.newBuffer(r.base64.length(i.dmids)),0):i.dmids.length>=0&&(n.dmids=i.dmids)),i.spmid!=null&&(n.spmid=String(i.spmid)),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(o.sessionId="",r.Long){let a=new r.Long(0,0,!1);o.oid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.oid=n.longs===String?"0":0;n.bytes===String?o.dmids="":(o.dmids=[],n.bytes!==Array&&(o.dmids=r.newBuffer(o.dmids))),o.spmid=""}return i.sessionId!=null&&i.hasOwnProperty("sessionId")&&(o.sessionId=i.sessionId),i.oid!=null&&i.hasOwnProperty("oid")&&(typeof i.oid=="number"?o.oid=n.longs===String?String(i.oid):i.oid:o.oid=n.longs===String?r.Long.prototype.toString.call(i.oid):n.longs===Number?new r.LongBits(i.oid.low>>>0,i.oid.high>>>0).toNumber():i.oid),i.dmids!=null&&i.hasOwnProperty("dmids")&&(o.dmids=n.bytes===String?r.base64.encode(i.dmids,0,i.dmids.length):n.bytes===Array?Array.prototype.slice.call(i.dmids):i.dmids),i.spmid!=null&&i.hasOwnProperty("spmid")&&(o.spmid=i.spmid),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.service.dm.v1.DmExpoReportReq"},l}(),e.DmExpoReportRes=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){default:i.skipType(y&7);break}}return a},l.fromObject=function(i){return i instanceof u.bilibili.community.service.dm.v1.DmExpoReportRes?i:new u.bilibili.community.service.dm.v1.DmExpoReportRes},l.toObject=function(){return{}},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.service.dm.v1.DmExpoReportRes"},l}(),e.DmSegSDKReq=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.pid=i.int64();break}case 2:{a.oid=i.int64();break}case 3:{a.type=i.int32();break}case 4:{a.segmentIndex=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.service.dm.v1.DmSegSDKReq)return i;let n=new u.bilibili.community.service.dm.v1.DmSegSDKReq;return i.pid!=null&&(r.Long?(n.pid=r.Long.fromValue(i.pid)).unsigned=!1:typeof i.pid=="string"?n.pid=parseInt(i.pid,10):typeof i.pid=="number"?n.pid=i.pid:typeof i.pid=="object"&&(n.pid=new r.LongBits(i.pid.low>>>0,i.pid.high>>>0).toNumber())),i.oid!=null&&(r.Long?(n.oid=r.Long.fromValue(i.oid)).unsigned=!1:typeof i.oid=="string"?n.oid=parseInt(i.oid,10):typeof i.oid=="number"?n.oid=i.oid:typeof i.oid=="object"&&(n.oid=new r.LongBits(i.oid.low>>>0,i.oid.high>>>0).toNumber())),i.type!=null&&(n.type=i.type|0),i.segmentIndex!=null&&(r.Long?(n.segmentIndex=r.Long.fromValue(i.segmentIndex)).unsigned=!1:typeof i.segmentIndex=="string"?n.segmentIndex=parseInt(i.segmentIndex,10):typeof i.segmentIndex=="number"?n.segmentIndex=i.segmentIndex:typeof i.segmentIndex=="object"&&(n.segmentIndex=new r.LongBits(i.segmentIndex.low>>>0,i.segmentIndex.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.pid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.pid=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.oid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.oid=n.longs===String?"0":0;if(o.type=0,r.Long){let a=new r.Long(0,0,!1);o.segmentIndex=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.segmentIndex=n.longs===String?"0":0}return i.pid!=null&&i.hasOwnProperty("pid")&&(typeof i.pid=="number"?o.pid=n.longs===String?String(i.pid):i.pid:o.pid=n.longs===String?r.Long.prototype.toString.call(i.pid):n.longs===Number?new r.LongBits(i.pid.low>>>0,i.pid.high>>>0).toNumber():i.pid),i.oid!=null&&i.hasOwnProperty("oid")&&(typeof i.oid=="number"?o.oid=n.longs===String?String(i.oid):i.oid:o.oid=n.longs===String?r.Long.prototype.toString.call(i.oid):n.longs===Number?new r.LongBits(i.oid.low>>>0,i.oid.high>>>0).toNumber():i.oid),i.type!=null&&i.hasOwnProperty("type")&&(o.type=i.type),i.segmentIndex!=null&&i.hasOwnProperty("segmentIndex")&&(typeof i.segmentIndex=="number"?o.segmentIndex=n.longs===String?String(i.segmentIndex):i.segmentIndex:o.segmentIndex=n.longs===String?r.Long.prototype.toString.call(i.segmentIndex):n.longs===Number?new r.LongBits(i.segmentIndex.low>>>0,i.segmentIndex.high>>>0).toNumber():i.segmentIndex),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.service.dm.v1.DmSegSDKReq"},l}(),e.DmSegSDKReply=function(){function l(t){if(this.elems=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.closed=i.bool();break}case 2:{a.elems&&a.elems.length||(a.elems=[]),a.elems.push(u.bilibili.community.service.dm.v1.DanmakuElem.decode(i,i.uint32()));break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.service.dm.v1.DmSegSDKReply)return i;let n=new u.bilibili.community.service.dm.v1.DmSegSDKReply;if(i.closed!=null&&(n.closed=!!i.closed),i.elems){if(!Array.isArray(i.elems))throw TypeError(".bilibili.community.service.dm.v1.DmSegSDKReply.elems: array expected");n.elems=[];for(let o=0;o>>3){case 1:{a.pid=i.int64();break}case 2:{a.oid=i.int64();break}case 3:{a.type=i.int32();break}case 4:{a.segmentIndex=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.service.dm.v1.DmSegOttReq)return i;let n=new u.bilibili.community.service.dm.v1.DmSegOttReq;return i.pid!=null&&(r.Long?(n.pid=r.Long.fromValue(i.pid)).unsigned=!1:typeof i.pid=="string"?n.pid=parseInt(i.pid,10):typeof i.pid=="number"?n.pid=i.pid:typeof i.pid=="object"&&(n.pid=new r.LongBits(i.pid.low>>>0,i.pid.high>>>0).toNumber())),i.oid!=null&&(r.Long?(n.oid=r.Long.fromValue(i.oid)).unsigned=!1:typeof i.oid=="string"?n.oid=parseInt(i.oid,10):typeof i.oid=="number"?n.oid=i.oid:typeof i.oid=="object"&&(n.oid=new r.LongBits(i.oid.low>>>0,i.oid.high>>>0).toNumber())),i.type!=null&&(n.type=i.type|0),i.segmentIndex!=null&&(r.Long?(n.segmentIndex=r.Long.fromValue(i.segmentIndex)).unsigned=!1:typeof i.segmentIndex=="string"?n.segmentIndex=parseInt(i.segmentIndex,10):typeof i.segmentIndex=="number"?n.segmentIndex=i.segmentIndex:typeof i.segmentIndex=="object"&&(n.segmentIndex=new r.LongBits(i.segmentIndex.low>>>0,i.segmentIndex.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.pid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.pid=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.oid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.oid=n.longs===String?"0":0;if(o.type=0,r.Long){let a=new r.Long(0,0,!1);o.segmentIndex=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.segmentIndex=n.longs===String?"0":0}return i.pid!=null&&i.hasOwnProperty("pid")&&(typeof i.pid=="number"?o.pid=n.longs===String?String(i.pid):i.pid:o.pid=n.longs===String?r.Long.prototype.toString.call(i.pid):n.longs===Number?new r.LongBits(i.pid.low>>>0,i.pid.high>>>0).toNumber():i.pid),i.oid!=null&&i.hasOwnProperty("oid")&&(typeof i.oid=="number"?o.oid=n.longs===String?String(i.oid):i.oid:o.oid=n.longs===String?r.Long.prototype.toString.call(i.oid):n.longs===Number?new r.LongBits(i.oid.low>>>0,i.oid.high>>>0).toNumber():i.oid),i.type!=null&&i.hasOwnProperty("type")&&(o.type=i.type),i.segmentIndex!=null&&i.hasOwnProperty("segmentIndex")&&(typeof i.segmentIndex=="number"?o.segmentIndex=n.longs===String?String(i.segmentIndex):i.segmentIndex:o.segmentIndex=n.longs===String?r.Long.prototype.toString.call(i.segmentIndex):n.longs===Number?new r.LongBits(i.segmentIndex.low>>>0,i.segmentIndex.high>>>0).toNumber():i.segmentIndex),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.service.dm.v1.DmSegOttReq"},l}(),e.DmSegOttReply=function(){function l(t){if(this.elems=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.elems&&a.elems.length||(a.elems=[]),a.elems.push(u.bilibili.community.service.dm.v1.DanmakuElem.decode(i,i.uint32()));break}case 2:{a.state=i.int32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.service.dm.v1.DmSegOttReply)return i;let n=new u.bilibili.community.service.dm.v1.DmSegOttReply;if(i.elems){if(!Array.isArray(i.elems))throw TypeError(".bilibili.community.service.dm.v1.DmSegOttReply.elems: array expected");n.elems=[];for(let o=0;o>>3){case 1:{a.pid=i.int64();break}case 2:{a.oid=i.int64();break}case 3:{a.type=i.int32();break}case 4:{a.segmentIndex=i.int64();break}case 5:{a.teenagersMode=i.int32();break}case 6:{a.ps=i.int64();break}case 7:{a.pe=i.int64();break}case 8:{a.pullMode=i.int32();break}case 9:{a.fromScene=i.int32();break}case 10:{a.spmid=i.string();break}case 11:{a.contextExt=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.service.dm.v1.DmSegMobileReq)return i;let n=new u.bilibili.community.service.dm.v1.DmSegMobileReq;return i.pid!=null&&(r.Long?(n.pid=r.Long.fromValue(i.pid)).unsigned=!1:typeof i.pid=="string"?n.pid=parseInt(i.pid,10):typeof i.pid=="number"?n.pid=i.pid:typeof i.pid=="object"&&(n.pid=new r.LongBits(i.pid.low>>>0,i.pid.high>>>0).toNumber())),i.oid!=null&&(r.Long?(n.oid=r.Long.fromValue(i.oid)).unsigned=!1:typeof i.oid=="string"?n.oid=parseInt(i.oid,10):typeof i.oid=="number"?n.oid=i.oid:typeof i.oid=="object"&&(n.oid=new r.LongBits(i.oid.low>>>0,i.oid.high>>>0).toNumber())),i.type!=null&&(n.type=i.type|0),i.segmentIndex!=null&&(r.Long?(n.segmentIndex=r.Long.fromValue(i.segmentIndex)).unsigned=!1:typeof i.segmentIndex=="string"?n.segmentIndex=parseInt(i.segmentIndex,10):typeof i.segmentIndex=="number"?n.segmentIndex=i.segmentIndex:typeof i.segmentIndex=="object"&&(n.segmentIndex=new r.LongBits(i.segmentIndex.low>>>0,i.segmentIndex.high>>>0).toNumber())),i.teenagersMode!=null&&(n.teenagersMode=i.teenagersMode|0),i.ps!=null&&(r.Long?(n.ps=r.Long.fromValue(i.ps)).unsigned=!1:typeof i.ps=="string"?n.ps=parseInt(i.ps,10):typeof i.ps=="number"?n.ps=i.ps:typeof i.ps=="object"&&(n.ps=new r.LongBits(i.ps.low>>>0,i.ps.high>>>0).toNumber())),i.pe!=null&&(r.Long?(n.pe=r.Long.fromValue(i.pe)).unsigned=!1:typeof i.pe=="string"?n.pe=parseInt(i.pe,10):typeof i.pe=="number"?n.pe=i.pe:typeof i.pe=="object"&&(n.pe=new r.LongBits(i.pe.low>>>0,i.pe.high>>>0).toNumber())),i.pullMode!=null&&(n.pullMode=i.pullMode|0),i.fromScene!=null&&(n.fromScene=i.fromScene|0),i.spmid!=null&&(n.spmid=String(i.spmid)),i.contextExt!=null&&(n.contextExt=String(i.contextExt)),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.pid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.pid=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.oid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.oid=n.longs===String?"0":0;if(o.type=0,r.Long){let a=new r.Long(0,0,!1);o.segmentIndex=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.segmentIndex=n.longs===String?"0":0;if(o.teenagersMode=0,r.Long){let a=new r.Long(0,0,!1);o.ps=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.ps=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.pe=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.pe=n.longs===String?"0":0;o.pullMode=0,o.fromScene=0,o.spmid="",o.contextExt=""}return i.pid!=null&&i.hasOwnProperty("pid")&&(typeof i.pid=="number"?o.pid=n.longs===String?String(i.pid):i.pid:o.pid=n.longs===String?r.Long.prototype.toString.call(i.pid):n.longs===Number?new r.LongBits(i.pid.low>>>0,i.pid.high>>>0).toNumber():i.pid),i.oid!=null&&i.hasOwnProperty("oid")&&(typeof i.oid=="number"?o.oid=n.longs===String?String(i.oid):i.oid:o.oid=n.longs===String?r.Long.prototype.toString.call(i.oid):n.longs===Number?new r.LongBits(i.oid.low>>>0,i.oid.high>>>0).toNumber():i.oid),i.type!=null&&i.hasOwnProperty("type")&&(o.type=i.type),i.segmentIndex!=null&&i.hasOwnProperty("segmentIndex")&&(typeof i.segmentIndex=="number"?o.segmentIndex=n.longs===String?String(i.segmentIndex):i.segmentIndex:o.segmentIndex=n.longs===String?r.Long.prototype.toString.call(i.segmentIndex):n.longs===Number?new r.LongBits(i.segmentIndex.low>>>0,i.segmentIndex.high>>>0).toNumber():i.segmentIndex),i.teenagersMode!=null&&i.hasOwnProperty("teenagersMode")&&(o.teenagersMode=i.teenagersMode),i.ps!=null&&i.hasOwnProperty("ps")&&(typeof i.ps=="number"?o.ps=n.longs===String?String(i.ps):i.ps:o.ps=n.longs===String?r.Long.prototype.toString.call(i.ps):n.longs===Number?new r.LongBits(i.ps.low>>>0,i.ps.high>>>0).toNumber():i.ps),i.pe!=null&&i.hasOwnProperty("pe")&&(typeof i.pe=="number"?o.pe=n.longs===String?String(i.pe):i.pe:o.pe=n.longs===String?r.Long.prototype.toString.call(i.pe):n.longs===Number?new r.LongBits(i.pe.low>>>0,i.pe.high>>>0).toNumber():i.pe),i.pullMode!=null&&i.hasOwnProperty("pullMode")&&(o.pullMode=i.pullMode),i.fromScene!=null&&i.hasOwnProperty("fromScene")&&(o.fromScene=i.fromScene),i.spmid!=null&&i.hasOwnProperty("spmid")&&(o.spmid=i.spmid),i.contextExt!=null&&i.hasOwnProperty("contextExt")&&(o.contextExt=i.contextExt),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.service.dm.v1.DmSegMobileReq"},l}(),e.DmSegMobileReply=function(){function l(t){if(this.elems=[],this.segmentRules=[],this.colorfulSrc=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.elems&&a.elems.length||(a.elems=[]),a.elems.push(u.bilibili.community.service.dm.v1.DanmakuElem.decode(i,i.uint32()));break}case 2:{a.state=i.int32();break}case 3:{a.aiFlag=u.bilibili.community.service.dm.v1.DanmakuAIFlag.decode(i,i.uint32());break}case 4:{if(a.segmentRules&&a.segmentRules.length||(a.segmentRules=[]),(y&7)===2){let s=i.uint32()+i.pos;for(;i.pos>>0,i.segmentRules[o].high>>>0).toNumber())}if(i.colorfulSrc){if(!Array.isArray(i.colorfulSrc))throw TypeError(".bilibili.community.service.dm.v1.DmSegMobileReply.colorfulSrc: array expected");n.colorfulSrc=[];for(let o=0;o>>0,i.segmentRules[a].high>>>0).toNumber():i.segmentRules[a]}if(i.colorfulSrc&&i.colorfulSrc.length){o.colorfulSrc=[];for(let a=0;a>>3){case 1:{a.type=i.int32();break}case 2:{a.src=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.service.dm.v1.DmColorful)return i;let n=new u.bilibili.community.service.dm.v1.DmColorful;switch(i.type){default:if(typeof i.type=="number"){n.type=i.type;break}break;case"NoneType":case 0:n.type=0;break;case"VipGradualColor":case 60001:n.type=60001;break}return i.src!=null&&(n.src=String(i.src)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.type=n.enums===String?"NoneType":0,o.src=""),i.type!=null&&i.hasOwnProperty("type")&&(o.type=n.enums===String?u.bilibili.community.service.dm.v1.DmColorfulType[i.type]===void 0?i.type:u.bilibili.community.service.dm.v1.DmColorfulType[i.type]:i.type),i.src!=null&&i.hasOwnProperty("src")&&(o.src=i.src),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.service.dm.v1.DmColorful"},l}(),e.DmViewReq=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.pid=i.int64();break}case 2:{a.oid=i.int64();break}case 3:{a.type=i.int32();break}case 4:{a.spmid=i.string();break}case 5:{a.isHardBoot=i.int32();break}case 6:{a.contextExt=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.service.dm.v1.DmViewReq)return i;let n=new u.bilibili.community.service.dm.v1.DmViewReq;return i.pid!=null&&(r.Long?(n.pid=r.Long.fromValue(i.pid)).unsigned=!1:typeof i.pid=="string"?n.pid=parseInt(i.pid,10):typeof i.pid=="number"?n.pid=i.pid:typeof i.pid=="object"&&(n.pid=new r.LongBits(i.pid.low>>>0,i.pid.high>>>0).toNumber())),i.oid!=null&&(r.Long?(n.oid=r.Long.fromValue(i.oid)).unsigned=!1:typeof i.oid=="string"?n.oid=parseInt(i.oid,10):typeof i.oid=="number"?n.oid=i.oid:typeof i.oid=="object"&&(n.oid=new r.LongBits(i.oid.low>>>0,i.oid.high>>>0).toNumber())),i.type!=null&&(n.type=i.type|0),i.spmid!=null&&(n.spmid=String(i.spmid)),i.isHardBoot!=null&&(n.isHardBoot=i.isHardBoot|0),i.contextExt!=null&&(n.contextExt=String(i.contextExt)),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.pid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.pid=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.oid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.oid=n.longs===String?"0":0;o.type=0,o.spmid="",o.isHardBoot=0,o.contextExt=""}return i.pid!=null&&i.hasOwnProperty("pid")&&(typeof i.pid=="number"?o.pid=n.longs===String?String(i.pid):i.pid:o.pid=n.longs===String?r.Long.prototype.toString.call(i.pid):n.longs===Number?new r.LongBits(i.pid.low>>>0,i.pid.high>>>0).toNumber():i.pid),i.oid!=null&&i.hasOwnProperty("oid")&&(typeof i.oid=="number"?o.oid=n.longs===String?String(i.oid):i.oid:o.oid=n.longs===String?r.Long.prototype.toString.call(i.oid):n.longs===Number?new r.LongBits(i.oid.low>>>0,i.oid.high>>>0).toNumber():i.oid),i.type!=null&&i.hasOwnProperty("type")&&(o.type=i.type),i.spmid!=null&&i.hasOwnProperty("spmid")&&(o.spmid=i.spmid),i.isHardBoot!=null&&i.hasOwnProperty("isHardBoot")&&(o.isHardBoot=i.isHardBoot),i.contextExt!=null&&i.hasOwnProperty("contextExt")&&(o.contextExt=i.contextExt),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.service.dm.v1.DmViewReq"},l}(),e.DmViewReply=function(){function l(t){if(this.specialDms=[],this.reportFilterContent=[],this.expressions=[],this.postPanel=[],this.activityMeta=[],this.postPanel_2=[],this.dmMaskWall=[],this.subViews=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.closed=i.bool();break}case 2:{a.mask=u.bilibili.community.service.dm.v1.VideoMask.decode(i,i.uint32());break}case 3:{a.subtitle=u.bilibili.community.service.dm.v1.VideoSubtitle.decode(i,i.uint32());break}case 4:{a.specialDms&&a.specialDms.length||(a.specialDms=[]),a.specialDms.push(i.string());break}case 5:{a.aiFlag=u.bilibili.community.service.dm.v1.DanmakuFlagConfig.decode(i,i.uint32());break}case 6:{a.playerConfig=u.bilibili.community.service.dm.v1.DanmuPlayerViewConfig.decode(i,i.uint32());break}case 7:{a.sendBoxStyle=i.int32();break}case 8:{a.allow=i.bool();break}case 9:{a.checkBox=i.bool();break}case 10:{a.checkBoxShowMsg=i.string();break}case 11:{a.textPlaceholder=i.string();break}case 12:{a.inputPlaceholder=i.string();break}case 13:{a.reportFilterContent&&a.reportFilterContent.length||(a.reportFilterContent=[]),a.reportFilterContent.push(i.string());break}case 14:{a.expoReport=u.bilibili.community.service.dm.v1.ExpoReport.decode(i,i.uint32());break}case 15:{a.buzzwordConfig=u.bilibili.community.service.dm.v1.BuzzwordConfig.decode(i,i.uint32());break}case 16:{a.expressions&&a.expressions.length||(a.expressions=[]),a.expressions.push(u.bilibili.community.service.dm.v1.Expressions.decode(i,i.uint32()));break}case 17:{a.postPanel&&a.postPanel.length||(a.postPanel=[]),a.postPanel.push(u.bilibili.community.service.dm.v1.PostPanel.decode(i,i.uint32()));break}case 18:{a.activityMeta&&a.activityMeta.length||(a.activityMeta=[]),a.activityMeta.push(i.string());break}case 19:{a.postPanel_2&&a.postPanel_2.length||(a.postPanel_2=[]),a.postPanel_2.push(u.bilibili.community.service.dm.v1.PostPanelV2.decode(i,i.uint32()));break}case 20:{a.dmMaskWall&&a.dmMaskWall.length||(a.dmMaskWall=[]),a.dmMaskWall.push(u.bilibili.community.service.dm.v1.DmMaskWall.decode(i,i.uint32()));break}case 21:{a.dmHerd=u.bilibili.community.service.dm.v1.DmHerdView.decode(i,i.uint32());break}case 22:{a.command=u.bilibili.community.service.dm.v1.Command.decode(i,i.uint32());break}case 23:{a.kv=i.string();break}case 24:{a.subViews&&a.subViews.length||(a.subViews=[]),a.subViews.push(u.bilibili.community.service.dm.v1.DmSubView.decode(i,i.uint32()));break}case 25:{a.qoe=u.bilibili.community.service.dm.v1.QoeInfo.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.service.dm.v1.DmViewReply)return i;let n=new u.bilibili.community.service.dm.v1.DmViewReply;if(i.closed!=null&&(n.closed=!!i.closed),i.mask!=null){if(typeof i.mask!="object")throw TypeError(".bilibili.community.service.dm.v1.DmViewReply.mask: object expected");n.mask=u.bilibili.community.service.dm.v1.VideoMask.fromObject(i.mask)}if(i.subtitle!=null){if(typeof i.subtitle!="object")throw TypeError(".bilibili.community.service.dm.v1.DmViewReply.subtitle: object expected");n.subtitle=u.bilibili.community.service.dm.v1.VideoSubtitle.fromObject(i.subtitle)}if(i.specialDms){if(!Array.isArray(i.specialDms))throw TypeError(".bilibili.community.service.dm.v1.DmViewReply.specialDms: array expected");n.specialDms=[];for(let o=0;o>>3){case 1:{a.info=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.service.dm.v1.QoeInfo)return i;let n=new u.bilibili.community.service.dm.v1.QoeInfo;return i.info!=null&&(n.info=String(i.info)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.info=""),i.info!=null&&i.hasOwnProperty("info")&&(o.info=i.info),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.service.dm.v1.QoeInfo"},l}(),e.DmSubView=function(){function l(t){if(this.postPanel_2=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.type=i.int32();break}case 2:{a.oid=i.int64();break}case 3:{a.pid=i.int64();break}case 4:{a.postPanel_2&&a.postPanel_2.length||(a.postPanel_2=[]),a.postPanel_2.push(u.bilibili.community.service.dm.v1.PostPanelV2.decode(i,i.uint32()));break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.service.dm.v1.DmSubView)return i;let n=new u.bilibili.community.service.dm.v1.DmSubView;if(i.type!=null&&(n.type=i.type|0),i.oid!=null&&(r.Long?(n.oid=r.Long.fromValue(i.oid)).unsigned=!1:typeof i.oid=="string"?n.oid=parseInt(i.oid,10):typeof i.oid=="number"?n.oid=i.oid:typeof i.oid=="object"&&(n.oid=new r.LongBits(i.oid.low>>>0,i.oid.high>>>0).toNumber())),i.pid!=null&&(r.Long?(n.pid=r.Long.fromValue(i.pid)).unsigned=!1:typeof i.pid=="string"?n.pid=parseInt(i.pid,10):typeof i.pid=="number"?n.pid=i.pid:typeof i.pid=="object"&&(n.pid=new r.LongBits(i.pid.low>>>0,i.pid.high>>>0).toNumber())),i.postPanel_2){if(!Array.isArray(i.postPanel_2))throw TypeError(".bilibili.community.service.dm.v1.DmSubView.postPanel_2: array expected");n.postPanel_2=[];for(let o=0;o>>0,i.oid.high>>>0).toNumber():i.oid),i.pid!=null&&i.hasOwnProperty("pid")&&(typeof i.pid=="number"?o.pid=n.longs===String?String(i.pid):i.pid:o.pid=n.longs===String?r.Long.prototype.toString.call(i.pid):n.longs===Number?new r.LongBits(i.pid.low>>>0,i.pid.high>>>0).toNumber():i.pid),i.postPanel_2&&i.postPanel_2.length){o.postPanel_2=[];for(let a=0;a>>3){case 1:{a.commandDms&&a.commandDms.length||(a.commandDms=[]),a.commandDms.push(u.bilibili.community.service.dm.v1.CommandDm.decode(i,i.uint32()));break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.service.dm.v1.Command)return i;let n=new u.bilibili.community.service.dm.v1.Command;if(i.commandDms){if(!Array.isArray(i.commandDms))throw TypeError(".bilibili.community.service.dm.v1.Command.commandDms: array expected");n.commandDms=[];for(let o=0;o>>3){case 1:{a.displayHerdDmNum=i.int32();break}case 2:{a.herdDms&&a.herdDms.length||(a.herdDms=[]),a.herdDms.push(u.bilibili.community.service.dm.v1.ViewHerdDmElem.decode(i,i.uint32()));break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.service.dm.v1.DmHerdView)return i;let n=new u.bilibili.community.service.dm.v1.DmHerdView;if(i.displayHerdDmNum!=null&&(n.displayHerdDmNum=i.displayHerdDmNum|0),i.herdDms){if(!Array.isArray(i.herdDms))throw TypeError(".bilibili.community.service.dm.v1.DmHerdView.herdDms: array expected");n.herdDms=[];for(let o=0;o>>3){case 1:{a.herdMsg=i.string();break}case 2:{a.herdStartCnt=i.int32();break}case 3:{a.herdEndCnt=i.int32();break}case 4:{a.regexRule=i.string();break}case 5:{a.startProgress=i.int32();break}case 6:{a.endProgress=i.int32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.service.dm.v1.ViewHerdDmElem)return i;let n=new u.bilibili.community.service.dm.v1.ViewHerdDmElem;return i.herdMsg!=null&&(n.herdMsg=String(i.herdMsg)),i.herdStartCnt!=null&&(n.herdStartCnt=i.herdStartCnt|0),i.herdEndCnt!=null&&(n.herdEndCnt=i.herdEndCnt|0),i.regexRule!=null&&(n.regexRule=String(i.regexRule)),i.startProgress!=null&&(n.startProgress=i.startProgress|0),i.endProgress!=null&&(n.endProgress=i.endProgress|0),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.herdMsg="",o.herdStartCnt=0,o.herdEndCnt=0,o.regexRule="",o.startProgress=0,o.endProgress=0),i.herdMsg!=null&&i.hasOwnProperty("herdMsg")&&(o.herdMsg=i.herdMsg),i.herdStartCnt!=null&&i.hasOwnProperty("herdStartCnt")&&(o.herdStartCnt=i.herdStartCnt),i.herdEndCnt!=null&&i.hasOwnProperty("herdEndCnt")&&(o.herdEndCnt=i.herdEndCnt),i.regexRule!=null&&i.hasOwnProperty("regexRule")&&(o.regexRule=i.regexRule),i.startProgress!=null&&i.hasOwnProperty("startProgress")&&(o.startProgress=i.startProgress),i.endProgress!=null&&i.hasOwnProperty("endProgress")&&(o.endProgress=i.endProgress),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.service.dm.v1.ViewHerdDmElem"},l}(),e.PostPanel=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.start=i.int64();break}case 2:{a.end=i.int64();break}case 3:{a.priority=i.int64();break}case 4:{a.bizId=i.int64();break}case 5:{a.bizType=i.int32();break}case 6:{a.clickButton=u.bilibili.community.service.dm.v1.ClickButton.decode(i,i.uint32());break}case 7:{a.textInput=u.bilibili.community.service.dm.v1.TextInput.decode(i,i.uint32());break}case 8:{a.checkBox=u.bilibili.community.service.dm.v1.CheckBox.decode(i,i.uint32());break}case 9:{a.toast=u.bilibili.community.service.dm.v1.Toast.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.service.dm.v1.PostPanel)return i;let n=new u.bilibili.community.service.dm.v1.PostPanel;switch(i.start!=null&&(r.Long?(n.start=r.Long.fromValue(i.start)).unsigned=!1:typeof i.start=="string"?n.start=parseInt(i.start,10):typeof i.start=="number"?n.start=i.start:typeof i.start=="object"&&(n.start=new r.LongBits(i.start.low>>>0,i.start.high>>>0).toNumber())),i.end!=null&&(r.Long?(n.end=r.Long.fromValue(i.end)).unsigned=!1:typeof i.end=="string"?n.end=parseInt(i.end,10):typeof i.end=="number"?n.end=i.end:typeof i.end=="object"&&(n.end=new r.LongBits(i.end.low>>>0,i.end.high>>>0).toNumber())),i.priority!=null&&(r.Long?(n.priority=r.Long.fromValue(i.priority)).unsigned=!1:typeof i.priority=="string"?n.priority=parseInt(i.priority,10):typeof i.priority=="number"?n.priority=i.priority:typeof i.priority=="object"&&(n.priority=new r.LongBits(i.priority.low>>>0,i.priority.high>>>0).toNumber())),i.bizId!=null&&(r.Long?(n.bizId=r.Long.fromValue(i.bizId)).unsigned=!1:typeof i.bizId=="string"?n.bizId=parseInt(i.bizId,10):typeof i.bizId=="number"?n.bizId=i.bizId:typeof i.bizId=="object"&&(n.bizId=new r.LongBits(i.bizId.low>>>0,i.bizId.high>>>0).toNumber())),i.bizType){default:if(typeof i.bizType=="number"){n.bizType=i.bizType;break}break;case"PostPanelBizTypeNone":case 0:n.bizType=0;break;case"PostPanelBizTypeEncourage":case 1:n.bizType=1;break;case"PostPanelBizTypeColorDM":case 2:n.bizType=2;break;case"PostPanelBizTypeNFTDM":case 3:n.bizType=3;break;case"PostPanelBizTypeFragClose":case 4:n.bizType=4;break;case"PostPanelBizTypeRecommend":case 5:n.bizType=5;break;case"PostPanelBizTypePlotLeak":case 6:n.bizType=6;break;case"PostPanelBizTypeAntiHarassment":case 7:n.bizType=7;break}if(i.clickButton!=null){if(typeof i.clickButton!="object")throw TypeError(".bilibili.community.service.dm.v1.PostPanel.clickButton: object expected");n.clickButton=u.bilibili.community.service.dm.v1.ClickButton.fromObject(i.clickButton)}if(i.textInput!=null){if(typeof i.textInput!="object")throw TypeError(".bilibili.community.service.dm.v1.PostPanel.textInput: object expected");n.textInput=u.bilibili.community.service.dm.v1.TextInput.fromObject(i.textInput)}if(i.checkBox!=null){if(typeof i.checkBox!="object")throw TypeError(".bilibili.community.service.dm.v1.PostPanel.checkBox: object expected");n.checkBox=u.bilibili.community.service.dm.v1.CheckBox.fromObject(i.checkBox)}if(i.toast!=null){if(typeof i.toast!="object")throw TypeError(".bilibili.community.service.dm.v1.PostPanel.toast: object expected");n.toast=u.bilibili.community.service.dm.v1.Toast.fromObject(i.toast)}return n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.start=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.start=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.end=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.end=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.priority=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.priority=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.bizId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.bizId=n.longs===String?"0":0;o.bizType=n.enums===String?"PostPanelBizTypeNone":0,o.clickButton=null,o.textInput=null,o.checkBox=null,o.toast=null}return i.start!=null&&i.hasOwnProperty("start")&&(typeof i.start=="number"?o.start=n.longs===String?String(i.start):i.start:o.start=n.longs===String?r.Long.prototype.toString.call(i.start):n.longs===Number?new r.LongBits(i.start.low>>>0,i.start.high>>>0).toNumber():i.start),i.end!=null&&i.hasOwnProperty("end")&&(typeof i.end=="number"?o.end=n.longs===String?String(i.end):i.end:o.end=n.longs===String?r.Long.prototype.toString.call(i.end):n.longs===Number?new r.LongBits(i.end.low>>>0,i.end.high>>>0).toNumber():i.end),i.priority!=null&&i.hasOwnProperty("priority")&&(typeof i.priority=="number"?o.priority=n.longs===String?String(i.priority):i.priority:o.priority=n.longs===String?r.Long.prototype.toString.call(i.priority):n.longs===Number?new r.LongBits(i.priority.low>>>0,i.priority.high>>>0).toNumber():i.priority),i.bizId!=null&&i.hasOwnProperty("bizId")&&(typeof i.bizId=="number"?o.bizId=n.longs===String?String(i.bizId):i.bizId:o.bizId=n.longs===String?r.Long.prototype.toString.call(i.bizId):n.longs===Number?new r.LongBits(i.bizId.low>>>0,i.bizId.high>>>0).toNumber():i.bizId),i.bizType!=null&&i.hasOwnProperty("bizType")&&(o.bizType=n.enums===String?u.bilibili.community.service.dm.v1.PostPanelBizType[i.bizType]===void 0?i.bizType:u.bilibili.community.service.dm.v1.PostPanelBizType[i.bizType]:i.bizType),i.clickButton!=null&&i.hasOwnProperty("clickButton")&&(o.clickButton=u.bilibili.community.service.dm.v1.ClickButton.toObject(i.clickButton,n)),i.textInput!=null&&i.hasOwnProperty("textInput")&&(o.textInput=u.bilibili.community.service.dm.v1.TextInput.toObject(i.textInput,n)),i.checkBox!=null&&i.hasOwnProperty("checkBox")&&(o.checkBox=u.bilibili.community.service.dm.v1.CheckBox.toObject(i.checkBox,n)),i.toast!=null&&i.hasOwnProperty("toast")&&(o.toast=u.bilibili.community.service.dm.v1.Toast.toObject(i.toast,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.service.dm.v1.PostPanel"},l}(),e.PostPanelV2=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.start=i.int64();break}case 2:{a.end=i.int64();break}case 3:{a.bizType=i.int32();break}case 4:{a.clickButton=u.bilibili.community.service.dm.v1.ClickButtonV2.decode(i,i.uint32());break}case 5:{a.textInput=u.bilibili.community.service.dm.v1.TextInputV2.decode(i,i.uint32());break}case 6:{a.checkBox=u.bilibili.community.service.dm.v1.CheckBoxV2.decode(i,i.uint32());break}case 7:{a.toast=u.bilibili.community.service.dm.v1.ToastV2.decode(i,i.uint32());break}case 8:{a.bubble=u.bilibili.community.service.dm.v1.BubbleV2.decode(i,i.uint32());break}case 9:{a.label=u.bilibili.community.service.dm.v1.LabelV2.decode(i,i.uint32());break}case 10:{a.postStatus=i.int32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.service.dm.v1.PostPanelV2)return i;let n=new u.bilibili.community.service.dm.v1.PostPanelV2;switch(i.start!=null&&(r.Long?(n.start=r.Long.fromValue(i.start)).unsigned=!1:typeof i.start=="string"?n.start=parseInt(i.start,10):typeof i.start=="number"?n.start=i.start:typeof i.start=="object"&&(n.start=new r.LongBits(i.start.low>>>0,i.start.high>>>0).toNumber())),i.end!=null&&(r.Long?(n.end=r.Long.fromValue(i.end)).unsigned=!1:typeof i.end=="string"?n.end=parseInt(i.end,10):typeof i.end=="number"?n.end=i.end:typeof i.end=="object"&&(n.end=new r.LongBits(i.end.low>>>0,i.end.high>>>0).toNumber())),i.bizType){default:if(typeof i.bizType=="number"){n.bizType=i.bizType;break}break;case"PostPanelBizTypeNone":case 0:n.bizType=0;break;case"PostPanelBizTypeEncourage":case 1:n.bizType=1;break;case"PostPanelBizTypeColorDM":case 2:n.bizType=2;break;case"PostPanelBizTypeNFTDM":case 3:n.bizType=3;break;case"PostPanelBizTypeFragClose":case 4:n.bizType=4;break;case"PostPanelBizTypeRecommend":case 5:n.bizType=5;break;case"PostPanelBizTypePlotLeak":case 6:n.bizType=6;break;case"PostPanelBizTypeAntiHarassment":case 7:n.bizType=7;break}if(i.clickButton!=null){if(typeof i.clickButton!="object")throw TypeError(".bilibili.community.service.dm.v1.PostPanelV2.clickButton: object expected");n.clickButton=u.bilibili.community.service.dm.v1.ClickButtonV2.fromObject(i.clickButton)}if(i.textInput!=null){if(typeof i.textInput!="object")throw TypeError(".bilibili.community.service.dm.v1.PostPanelV2.textInput: object expected");n.textInput=u.bilibili.community.service.dm.v1.TextInputV2.fromObject(i.textInput)}if(i.checkBox!=null){if(typeof i.checkBox!="object")throw TypeError(".bilibili.community.service.dm.v1.PostPanelV2.checkBox: object expected");n.checkBox=u.bilibili.community.service.dm.v1.CheckBoxV2.fromObject(i.checkBox)}if(i.toast!=null){if(typeof i.toast!="object")throw TypeError(".bilibili.community.service.dm.v1.PostPanelV2.toast: object expected");n.toast=u.bilibili.community.service.dm.v1.ToastV2.fromObject(i.toast)}if(i.bubble!=null){if(typeof i.bubble!="object")throw TypeError(".bilibili.community.service.dm.v1.PostPanelV2.bubble: object expected");n.bubble=u.bilibili.community.service.dm.v1.BubbleV2.fromObject(i.bubble)}if(i.label!=null){if(typeof i.label!="object")throw TypeError(".bilibili.community.service.dm.v1.PostPanelV2.label: object expected");n.label=u.bilibili.community.service.dm.v1.LabelV2.fromObject(i.label)}switch(i.postStatus){default:if(typeof i.postStatus=="number"){n.postStatus=i.postStatus;break}break;case"PostStatusNormal":case 0:n.postStatus=0;break;case"PostStatusClosed":case 1:n.postStatus=1;break}return n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.start=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.start=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.end=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.end=n.longs===String?"0":0;o.bizType=n.enums===String?"PostPanelBizTypeNone":0,o.clickButton=null,o.textInput=null,o.checkBox=null,o.toast=null,o.bubble=null,o.label=null,o.postStatus=n.enums===String?"PostStatusNormal":0}return i.start!=null&&i.hasOwnProperty("start")&&(typeof i.start=="number"?o.start=n.longs===String?String(i.start):i.start:o.start=n.longs===String?r.Long.prototype.toString.call(i.start):n.longs===Number?new r.LongBits(i.start.low>>>0,i.start.high>>>0).toNumber():i.start),i.end!=null&&i.hasOwnProperty("end")&&(typeof i.end=="number"?o.end=n.longs===String?String(i.end):i.end:o.end=n.longs===String?r.Long.prototype.toString.call(i.end):n.longs===Number?new r.LongBits(i.end.low>>>0,i.end.high>>>0).toNumber():i.end),i.bizType!=null&&i.hasOwnProperty("bizType")&&(o.bizType=n.enums===String?u.bilibili.community.service.dm.v1.PostPanelBizType[i.bizType]===void 0?i.bizType:u.bilibili.community.service.dm.v1.PostPanelBizType[i.bizType]:i.bizType),i.clickButton!=null&&i.hasOwnProperty("clickButton")&&(o.clickButton=u.bilibili.community.service.dm.v1.ClickButtonV2.toObject(i.clickButton,n)),i.textInput!=null&&i.hasOwnProperty("textInput")&&(o.textInput=u.bilibili.community.service.dm.v1.TextInputV2.toObject(i.textInput,n)),i.checkBox!=null&&i.hasOwnProperty("checkBox")&&(o.checkBox=u.bilibili.community.service.dm.v1.CheckBoxV2.toObject(i.checkBox,n)),i.toast!=null&&i.hasOwnProperty("toast")&&(o.toast=u.bilibili.community.service.dm.v1.ToastV2.toObject(i.toast,n)),i.bubble!=null&&i.hasOwnProperty("bubble")&&(o.bubble=u.bilibili.community.service.dm.v1.BubbleV2.toObject(i.bubble,n)),i.label!=null&&i.hasOwnProperty("label")&&(o.label=u.bilibili.community.service.dm.v1.LabelV2.toObject(i.label,n)),i.postStatus!=null&&i.hasOwnProperty("postStatus")&&(o.postStatus=n.enums===String?u.bilibili.community.service.dm.v1.PostStatus[i.postStatus]===void 0?i.postStatus:u.bilibili.community.service.dm.v1.PostStatus[i.postStatus]:i.postStatus),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.service.dm.v1.PostPanelV2"},l}(),e.ClickButton=function(){function l(t){if(this.portraitText=[],this.landscapeText=[],this.portraitTextFocus=[],this.landscapeTextFocus=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.portraitText&&a.portraitText.length||(a.portraitText=[]),a.portraitText.push(i.string());break}case 2:{a.landscapeText&&a.landscapeText.length||(a.landscapeText=[]),a.landscapeText.push(i.string());break}case 3:{a.portraitTextFocus&&a.portraitTextFocus.length||(a.portraitTextFocus=[]),a.portraitTextFocus.push(i.string());break}case 4:{a.landscapeTextFocus&&a.landscapeTextFocus.length||(a.landscapeTextFocus=[]),a.landscapeTextFocus.push(i.string());break}case 5:{a.renderType=i.int32();break}case 6:{a.show=i.bool();break}case 7:{a.bubble=u.bilibili.community.service.dm.v1.Bubble.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.service.dm.v1.ClickButton)return i;let n=new u.bilibili.community.service.dm.v1.ClickButton;if(i.portraitText){if(!Array.isArray(i.portraitText))throw TypeError(".bilibili.community.service.dm.v1.ClickButton.portraitText: array expected");n.portraitText=[];for(let o=0;o>>3){case 1:{a.portraitText&&a.portraitText.length||(a.portraitText=[]),a.portraitText.push(i.string());break}case 2:{a.landscapeText&&a.landscapeText.length||(a.landscapeText=[]),a.landscapeText.push(i.string());break}case 3:{a.portraitTextFocus&&a.portraitTextFocus.length||(a.portraitTextFocus=[]),a.portraitTextFocus.push(i.string());break}case 4:{a.landscapeTextFocus&&a.landscapeTextFocus.length||(a.landscapeTextFocus=[]),a.landscapeTextFocus.push(i.string());break}case 5:{a.renderType=i.int32();break}case 6:{a.textInputPost=i.bool();break}case 7:{a.exposureOnce=i.bool();break}case 8:{a.exposureType=i.int32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.service.dm.v1.ClickButtonV2)return i;let n=new u.bilibili.community.service.dm.v1.ClickButtonV2;if(i.portraitText){if(!Array.isArray(i.portraitText))throw TypeError(".bilibili.community.service.dm.v1.ClickButtonV2.portraitText: array expected");n.portraitText=[];for(let o=0;o>>3){case 1:{a.portraitPlaceholder&&a.portraitPlaceholder.length||(a.portraitPlaceholder=[]),a.portraitPlaceholder.push(i.string());break}case 2:{a.landscapePlaceholder&&a.landscapePlaceholder.length||(a.landscapePlaceholder=[]),a.landscapePlaceholder.push(i.string());break}case 3:{a.renderType=i.int32();break}case 4:{a.placeholderPost=i.bool();break}case 5:{a.show=i.bool();break}case 6:{a.avatar&&a.avatar.length||(a.avatar=[]),a.avatar.push(u.bilibili.community.service.dm.v1.Avatar.decode(i,i.uint32()));break}case 7:{a.postStatus=i.int32();break}case 8:{a.label=u.bilibili.community.service.dm.v1.Label.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.service.dm.v1.TextInput)return i;let n=new u.bilibili.community.service.dm.v1.TextInput;if(i.portraitPlaceholder){if(!Array.isArray(i.portraitPlaceholder))throw TypeError(".bilibili.community.service.dm.v1.TextInput.portraitPlaceholder: array expected");n.portraitPlaceholder=[];for(let o=0;o>>3){case 1:{a.portraitPlaceholder&&a.portraitPlaceholder.length||(a.portraitPlaceholder=[]),a.portraitPlaceholder.push(i.string());break}case 2:{a.landscapePlaceholder&&a.landscapePlaceholder.length||(a.landscapePlaceholder=[]),a.landscapePlaceholder.push(i.string());break}case 3:{a.renderType=i.int32();break}case 4:{a.placeholderPost=i.bool();break}case 5:{a.avatar&&a.avatar.length||(a.avatar=[]),a.avatar.push(u.bilibili.community.service.dm.v1.Avatar.decode(i,i.uint32()));break}case 6:{a.textInputLimit=i.int32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.service.dm.v1.TextInputV2)return i;let n=new u.bilibili.community.service.dm.v1.TextInputV2;if(i.portraitPlaceholder){if(!Array.isArray(i.portraitPlaceholder))throw TypeError(".bilibili.community.service.dm.v1.TextInputV2.portraitPlaceholder: array expected");n.portraitPlaceholder=[];for(let o=0;o>>3){case 1:{a.id=i.string();break}case 2:{a.url=i.string();break}case 3:{a.avatarType=i.int32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.service.dm.v1.Avatar)return i;let n=new u.bilibili.community.service.dm.v1.Avatar;switch(i.id!=null&&(n.id=String(i.id)),i.url!=null&&(n.url=String(i.url)),i.avatarType){default:if(typeof i.avatarType=="number"){n.avatarType=i.avatarType;break}break;case"AvatarTypeNone":case 0:n.avatarType=0;break;case"AvatarTypeNFT":case 1:n.avatarType=1;break}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.id="",o.url="",o.avatarType=n.enums===String?"AvatarTypeNone":0),i.id!=null&&i.hasOwnProperty("id")&&(o.id=i.id),i.url!=null&&i.hasOwnProperty("url")&&(o.url=i.url),i.avatarType!=null&&i.hasOwnProperty("avatarType")&&(o.avatarType=n.enums===String?u.bilibili.community.service.dm.v1.AvatarType[i.avatarType]===void 0?i.avatarType:u.bilibili.community.service.dm.v1.AvatarType[i.avatarType]:i.avatarType),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.service.dm.v1.Avatar"},l}(),e.AvatarType=function(){let l={},t=Object.create(l);return t[l[0]="AvatarTypeNone"]=0,t[l[1]="AvatarTypeNFT"]=1,t}(),e.PostStatus=function(){let l={},t=Object.create(l);return t[l[0]="PostStatusNormal"]=0,t[l[1]="PostStatusClosed"]=1,t}(),e.RenderType=function(){let l={},t=Object.create(l);return t[l[0]="RenderTypeNone"]=0,t[l[1]="RenderTypeSingle"]=1,t[l[2]="RenderTypeRotation"]=2,t}(),e.CheckBox=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.text=i.string();break}case 2:{a.type=i.int32();break}case 3:{a.defaultValue=i.bool();break}case 4:{a.show=i.bool();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.service.dm.v1.CheckBox)return i;let n=new u.bilibili.community.service.dm.v1.CheckBox;switch(i.text!=null&&(n.text=String(i.text)),i.type){default:if(typeof i.type=="number"){n.type=i.type;break}break;case"CheckboxTypeNone":case 0:n.type=0;break;case"CheckboxTypeEncourage":case 1:n.type=1;break;case"CheckboxTypeColorDM":case 2:n.type=2;break}return i.defaultValue!=null&&(n.defaultValue=!!i.defaultValue),i.show!=null&&(n.show=!!i.show),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.text="",o.type=n.enums===String?"CheckboxTypeNone":0,o.defaultValue=!1,o.show=!1),i.text!=null&&i.hasOwnProperty("text")&&(o.text=i.text),i.type!=null&&i.hasOwnProperty("type")&&(o.type=n.enums===String?u.bilibili.community.service.dm.v1.CheckboxType[i.type]===void 0?i.type:u.bilibili.community.service.dm.v1.CheckboxType[i.type]:i.type),i.defaultValue!=null&&i.hasOwnProperty("defaultValue")&&(o.defaultValue=i.defaultValue),i.show!=null&&i.hasOwnProperty("show")&&(o.show=i.show),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.service.dm.v1.CheckBox"},l}(),e.CheckBoxV2=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.text=i.string();break}case 2:{a.type=i.int32();break}case 3:{a.defaultValue=i.bool();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.service.dm.v1.CheckBoxV2)return i;let n=new u.bilibili.community.service.dm.v1.CheckBoxV2;switch(i.text!=null&&(n.text=String(i.text)),i.type){default:if(typeof i.type=="number"){n.type=i.type;break}break;case"CheckboxTypeNone":case 0:n.type=0;break;case"CheckboxTypeEncourage":case 1:n.type=1;break;case"CheckboxTypeColorDM":case 2:n.type=2;break}return i.defaultValue!=null&&(n.defaultValue=!!i.defaultValue),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.text="",o.type=n.enums===String?"CheckboxTypeNone":0,o.defaultValue=!1),i.text!=null&&i.hasOwnProperty("text")&&(o.text=i.text),i.type!=null&&i.hasOwnProperty("type")&&(o.type=n.enums===String?u.bilibili.community.service.dm.v1.CheckboxType[i.type]===void 0?i.type:u.bilibili.community.service.dm.v1.CheckboxType[i.type]:i.type),i.defaultValue!=null&&i.hasOwnProperty("defaultValue")&&(o.defaultValue=i.defaultValue),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.service.dm.v1.CheckBoxV2"},l}(),e.CheckboxType=function(){let l={},t=Object.create(l);return t[l[0]="CheckboxTypeNone"]=0,t[l[1]="CheckboxTypeEncourage"]=1,t[l[2]="CheckboxTypeColorDM"]=2,t}(),e.Toast=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.text=i.string();break}case 2:{a.duration=i.int32();break}case 3:{a.show=i.bool();break}case 4:{a.button=u.bilibili.community.service.dm.v1.Button.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.service.dm.v1.Toast)return i;let n=new u.bilibili.community.service.dm.v1.Toast;if(i.text!=null&&(n.text=String(i.text)),i.duration!=null&&(n.duration=i.duration|0),i.show!=null&&(n.show=!!i.show),i.button!=null){if(typeof i.button!="object")throw TypeError(".bilibili.community.service.dm.v1.Toast.button: object expected");n.button=u.bilibili.community.service.dm.v1.Button.fromObject(i.button)}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.text="",o.duration=0,o.show=!1,o.button=null),i.text!=null&&i.hasOwnProperty("text")&&(o.text=i.text),i.duration!=null&&i.hasOwnProperty("duration")&&(o.duration=i.duration),i.show!=null&&i.hasOwnProperty("show")&&(o.show=i.show),i.button!=null&&i.hasOwnProperty("button")&&(o.button=u.bilibili.community.service.dm.v1.Button.toObject(i.button,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.service.dm.v1.Toast"},l}(),e.ToastV2=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.text=i.string();break}case 2:{a.duration=i.int32();break}case 3:{a.toastButtonV2=u.bilibili.community.service.dm.v1.ToastButtonV2.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.service.dm.v1.ToastV2)return i;let n=new u.bilibili.community.service.dm.v1.ToastV2;if(i.text!=null&&(n.text=String(i.text)),i.duration!=null&&(n.duration=i.duration|0),i.toastButtonV2!=null){if(typeof i.toastButtonV2!="object")throw TypeError(".bilibili.community.service.dm.v1.ToastV2.toastButtonV2: object expected");n.toastButtonV2=u.bilibili.community.service.dm.v1.ToastButtonV2.fromObject(i.toastButtonV2)}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.text="",o.duration=0,o.toastButtonV2=null),i.text!=null&&i.hasOwnProperty("text")&&(o.text=i.text),i.duration!=null&&i.hasOwnProperty("duration")&&(o.duration=i.duration),i.toastButtonV2!=null&&i.hasOwnProperty("toastButtonV2")&&(o.toastButtonV2=u.bilibili.community.service.dm.v1.ToastButtonV2.toObject(i.toastButtonV2,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.service.dm.v1.ToastV2"},l}(),e.Bubble=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.text=i.string();break}case 2:{a.url=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.service.dm.v1.Bubble)return i;let n=new u.bilibili.community.service.dm.v1.Bubble;return i.text!=null&&(n.text=String(i.text)),i.url!=null&&(n.url=String(i.url)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.text="",o.url=""),i.text!=null&&i.hasOwnProperty("text")&&(o.text=i.text),i.url!=null&&i.hasOwnProperty("url")&&(o.url=i.url),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.service.dm.v1.Bubble"},l}(),e.BubbleV2=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.text=i.string();break}case 2:{a.url=i.string();break}case 3:{a.bubbleType=i.int32();break}case 4:{a.exposureOnce=i.bool();break}case 5:{a.exposureType=i.int32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.service.dm.v1.BubbleV2)return i;let n=new u.bilibili.community.service.dm.v1.BubbleV2;switch(i.text!=null&&(n.text=String(i.text)),i.url!=null&&(n.url=String(i.url)),i.bubbleType){default:if(typeof i.bubbleType=="number"){n.bubbleType=i.bubbleType;break}break;case"BubbleTypeNone":case 0:n.bubbleType=0;break;case"BubbleTypeClickButton":case 1:n.bubbleType=1;break;case"BubbleTypeDmSettingPanel":case 2:n.bubbleType=2;break}switch(i.exposureOnce!=null&&(n.exposureOnce=!!i.exposureOnce),i.exposureType){default:if(typeof i.exposureType=="number"){n.exposureType=i.exposureType;break}break;case"ExposureTypeNone":case 0:n.exposureType=0;break;case"ExposureTypeDMSend":case 1:n.exposureType=1;break}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.text="",o.url="",o.bubbleType=n.enums===String?"BubbleTypeNone":0,o.exposureOnce=!1,o.exposureType=n.enums===String?"ExposureTypeNone":0),i.text!=null&&i.hasOwnProperty("text")&&(o.text=i.text),i.url!=null&&i.hasOwnProperty("url")&&(o.url=i.url),i.bubbleType!=null&&i.hasOwnProperty("bubbleType")&&(o.bubbleType=n.enums===String?u.bilibili.community.service.dm.v1.BubbleType[i.bubbleType]===void 0?i.bubbleType:u.bilibili.community.service.dm.v1.BubbleType[i.bubbleType]:i.bubbleType),i.exposureOnce!=null&&i.hasOwnProperty("exposureOnce")&&(o.exposureOnce=i.exposureOnce),i.exposureType!=null&&i.hasOwnProperty("exposureType")&&(o.exposureType=n.enums===String?u.bilibili.community.service.dm.v1.ExposureType[i.exposureType]===void 0?i.exposureType:u.bilibili.community.service.dm.v1.ExposureType[i.exposureType]:i.exposureType),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.service.dm.v1.BubbleV2"},l}(),e.BubbleType=function(){let l={},t=Object.create(l);return t[l[0]="BubbleTypeNone"]=0,t[l[1]="BubbleTypeClickButton"]=1,t[l[2]="BubbleTypeDmSettingPanel"]=2,t}(),e.Label=function(){function l(t){if(this.content=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.title=i.string();break}case 2:{a.content&&a.content.length||(a.content=[]),a.content.push(i.string());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.service.dm.v1.Label)return i;let n=new u.bilibili.community.service.dm.v1.Label;if(i.title!=null&&(n.title=String(i.title)),i.content){if(!Array.isArray(i.content))throw TypeError(".bilibili.community.service.dm.v1.Label.content: array expected");n.content=[];for(let o=0;o>>3){case 1:{a.title=i.string();break}case 2:{a.content&&a.content.length||(a.content=[]),a.content.push(i.string());break}case 3:{a.exposureOnce=i.bool();break}case 4:{a.exposureType=i.int32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.service.dm.v1.LabelV2)return i;let n=new u.bilibili.community.service.dm.v1.LabelV2;if(i.title!=null&&(n.title=String(i.title)),i.content){if(!Array.isArray(i.content))throw TypeError(".bilibili.community.service.dm.v1.LabelV2.content: array expected");n.content=[];for(let o=0;o>>3){case 1:{a.text=i.string();break}case 2:{a.action=i.int32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.service.dm.v1.Button)return i;let n=new u.bilibili.community.service.dm.v1.Button;switch(i.text!=null&&(n.text=String(i.text)),i.action){default:if(typeof i.action=="number"){n.action=i.action;break}break;case"ToastFunctionTypeNone":case 0:n.action=0;break;case"ToastFunctionTypePostPanel":case 1:n.action=1;break}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.text="",o.action=n.enums===String?"ToastFunctionTypeNone":0),i.text!=null&&i.hasOwnProperty("text")&&(o.text=i.text),i.action!=null&&i.hasOwnProperty("action")&&(o.action=n.enums===String?u.bilibili.community.service.dm.v1.ToastFunctionType[i.action]===void 0?i.action:u.bilibili.community.service.dm.v1.ToastFunctionType[i.action]:i.action),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.service.dm.v1.Button"},l}(),e.ToastButtonV2=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.text=i.string();break}case 2:{a.action=i.int32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.service.dm.v1.ToastButtonV2)return i;let n=new u.bilibili.community.service.dm.v1.ToastButtonV2;switch(i.text!=null&&(n.text=String(i.text)),i.action){default:if(typeof i.action=="number"){n.action=i.action;break}break;case"ToastFunctionTypeNone":case 0:n.action=0;break;case"ToastFunctionTypePostPanel":case 1:n.action=1;break}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.text="",o.action=n.enums===String?"ToastFunctionTypeNone":0),i.text!=null&&i.hasOwnProperty("text")&&(o.text=i.text),i.action!=null&&i.hasOwnProperty("action")&&(o.action=n.enums===String?u.bilibili.community.service.dm.v1.ToastFunctionType[i.action]===void 0?i.action:u.bilibili.community.service.dm.v1.ToastFunctionType[i.action]:i.action),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.service.dm.v1.ToastButtonV2"},l}(),e.ToastFunctionType=function(){let l={},t=Object.create(l);return t[l[0]="ToastFunctionTypeNone"]=0,t[l[1]="ToastFunctionTypePostPanel"]=1,t}(),e.DmMaskWall=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.start=i.int64();break}case 2:{a.end=i.int64();break}case 3:{a.content=i.string();break}case 4:{a.contentType=i.int32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.service.dm.v1.DmMaskWall)return i;let n=new u.bilibili.community.service.dm.v1.DmMaskWall;switch(i.start!=null&&(r.Long?(n.start=r.Long.fromValue(i.start)).unsigned=!1:typeof i.start=="string"?n.start=parseInt(i.start,10):typeof i.start=="number"?n.start=i.start:typeof i.start=="object"&&(n.start=new r.LongBits(i.start.low>>>0,i.start.high>>>0).toNumber())),i.end!=null&&(r.Long?(n.end=r.Long.fromValue(i.end)).unsigned=!1:typeof i.end=="string"?n.end=parseInt(i.end,10):typeof i.end=="number"?n.end=i.end:typeof i.end=="object"&&(n.end=new r.LongBits(i.end.low>>>0,i.end.high>>>0).toNumber())),i.content!=null&&(n.content=String(i.content)),i.contentType){default:if(typeof i.contentType=="number"){n.contentType=i.contentType;break}break;case"DmMaskWallContentTypeUnknown":case 0:n.contentType=0;break;case"DmMaskWallContentTypeText":case 1:n.contentType=1;break;case"DmMaskWallContentTypePic":case 2:n.contentType=2;break}return n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.start=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.start=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.end=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.end=n.longs===String?"0":0;o.content="",o.contentType=n.enums===String?"DmMaskWallContentTypeUnknown":0}return i.start!=null&&i.hasOwnProperty("start")&&(typeof i.start=="number"?o.start=n.longs===String?String(i.start):i.start:o.start=n.longs===String?r.Long.prototype.toString.call(i.start):n.longs===Number?new r.LongBits(i.start.low>>>0,i.start.high>>>0).toNumber():i.start),i.end!=null&&i.hasOwnProperty("end")&&(typeof i.end=="number"?o.end=n.longs===String?String(i.end):i.end:o.end=n.longs===String?r.Long.prototype.toString.call(i.end):n.longs===Number?new r.LongBits(i.end.low>>>0,i.end.high>>>0).toNumber():i.end),i.content!=null&&i.hasOwnProperty("content")&&(o.content=i.content),i.contentType!=null&&i.hasOwnProperty("contentType")&&(o.contentType=n.enums===String?u.bilibili.community.service.dm.v1.DmMaskWallContentType[i.contentType]===void 0?i.contentType:u.bilibili.community.service.dm.v1.DmMaskWallContentType[i.contentType]:i.contentType),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.service.dm.v1.DmMaskWall"},l}(),e.DmMaskWallContentType=function(){let l={},t=Object.create(l);return t[l[0]="DmMaskWallContentTypeUnknown"]=0,t[l[1]="DmMaskWallContentTypeText"]=1,t[l[2]="DmMaskWallContentTypePic"]=2,t}(),e.BuzzwordConfig=function(){function l(t){if(this.keywords=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.keywords&&a.keywords.length||(a.keywords=[]),a.keywords.push(u.bilibili.community.service.dm.v1.BuzzwordShowConfig.decode(i,i.uint32()));break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.service.dm.v1.BuzzwordConfig)return i;let n=new u.bilibili.community.service.dm.v1.BuzzwordConfig;if(i.keywords){if(!Array.isArray(i.keywords))throw TypeError(".bilibili.community.service.dm.v1.BuzzwordConfig.keywords: array expected");n.keywords=[];for(let o=0;o>>3){case 1:{a.name=i.string();break}case 2:{a.schema=i.string();break}case 3:{a.source=i.int32();break}case 4:{a.id=i.int64();break}case 5:{a.buzzwordId=i.int64();break}case 6:{a.schemaType=i.int32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.service.dm.v1.BuzzwordShowConfig)return i;let n=new u.bilibili.community.service.dm.v1.BuzzwordShowConfig;return i.name!=null&&(n.name=String(i.name)),i.schema!=null&&(n.schema=String(i.schema)),i.source!=null&&(n.source=i.source|0),i.id!=null&&(r.Long?(n.id=r.Long.fromValue(i.id)).unsigned=!1:typeof i.id=="string"?n.id=parseInt(i.id,10):typeof i.id=="number"?n.id=i.id:typeof i.id=="object"&&(n.id=new r.LongBits(i.id.low>>>0,i.id.high>>>0).toNumber())),i.buzzwordId!=null&&(r.Long?(n.buzzwordId=r.Long.fromValue(i.buzzwordId)).unsigned=!1:typeof i.buzzwordId=="string"?n.buzzwordId=parseInt(i.buzzwordId,10):typeof i.buzzwordId=="number"?n.buzzwordId=i.buzzwordId:typeof i.buzzwordId=="object"&&(n.buzzwordId=new r.LongBits(i.buzzwordId.low>>>0,i.buzzwordId.high>>>0).toNumber())),i.schemaType!=null&&(n.schemaType=i.schemaType|0),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(o.name="",o.schema="",o.source=0,r.Long){let a=new r.Long(0,0,!1);o.id=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.id=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.buzzwordId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.buzzwordId=n.longs===String?"0":0;o.schemaType=0}return i.name!=null&&i.hasOwnProperty("name")&&(o.name=i.name),i.schema!=null&&i.hasOwnProperty("schema")&&(o.schema=i.schema),i.source!=null&&i.hasOwnProperty("source")&&(o.source=i.source),i.id!=null&&i.hasOwnProperty("id")&&(typeof i.id=="number"?o.id=n.longs===String?String(i.id):i.id:o.id=n.longs===String?r.Long.prototype.toString.call(i.id):n.longs===Number?new r.LongBits(i.id.low>>>0,i.id.high>>>0).toNumber():i.id),i.buzzwordId!=null&&i.hasOwnProperty("buzzwordId")&&(typeof i.buzzwordId=="number"?o.buzzwordId=n.longs===String?String(i.buzzwordId):i.buzzwordId:o.buzzwordId=n.longs===String?r.Long.prototype.toString.call(i.buzzwordId):n.longs===Number?new r.LongBits(i.buzzwordId.low>>>0,i.buzzwordId.high>>>0).toNumber():i.buzzwordId),i.schemaType!=null&&i.hasOwnProperty("schemaType")&&(o.schemaType=i.schemaType),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.service.dm.v1.BuzzwordShowConfig"},l}(),e.Expressions=function(){function l(t){if(this.data=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.data&&a.data.length||(a.data=[]),a.data.push(u.bilibili.community.service.dm.v1.Expression.decode(i,i.uint32()));break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.service.dm.v1.Expressions)return i;let n=new u.bilibili.community.service.dm.v1.Expressions;if(i.data){if(!Array.isArray(i.data))throw TypeError(".bilibili.community.service.dm.v1.Expressions.data: array expected");n.data=[];for(let o=0;o>>3){case 1:{a.keyword&&a.keyword.length||(a.keyword=[]),a.keyword.push(i.string());break}case 2:{a.url=i.string();break}case 3:{a.period&&a.period.length||(a.period=[]),a.period.push(u.bilibili.community.service.dm.v1.Period.decode(i,i.uint32()));break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.service.dm.v1.Expression)return i;let n=new u.bilibili.community.service.dm.v1.Expression;if(i.keyword){if(!Array.isArray(i.keyword))throw TypeError(".bilibili.community.service.dm.v1.Expression.keyword: array expected");n.keyword=[];for(let o=0;o>>3){case 1:{a.start=i.int64();break}case 2:{a.end=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.service.dm.v1.Period)return i;let n=new u.bilibili.community.service.dm.v1.Period;return i.start!=null&&(r.Long?(n.start=r.Long.fromValue(i.start)).unsigned=!1:typeof i.start=="string"?n.start=parseInt(i.start,10):typeof i.start=="number"?n.start=i.start:typeof i.start=="object"&&(n.start=new r.LongBits(i.start.low>>>0,i.start.high>>>0).toNumber())),i.end!=null&&(r.Long?(n.end=r.Long.fromValue(i.end)).unsigned=!1:typeof i.end=="string"?n.end=parseInt(i.end,10):typeof i.end=="number"?n.end=i.end:typeof i.end=="object"&&(n.end=new r.LongBits(i.end.low>>>0,i.end.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.start=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.start=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.end=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.end=n.longs===String?"0":0}return i.start!=null&&i.hasOwnProperty("start")&&(typeof i.start=="number"?o.start=n.longs===String?String(i.start):i.start:o.start=n.longs===String?r.Long.prototype.toString.call(i.start):n.longs===Number?new r.LongBits(i.start.low>>>0,i.start.high>>>0).toNumber():i.start),i.end!=null&&i.hasOwnProperty("end")&&(typeof i.end=="number"?o.end=n.longs===String?String(i.end):i.end:o.end=n.longs===String?r.Long.prototype.toString.call(i.end):n.longs===Number?new r.LongBits(i.end.low>>>0,i.end.high>>>0).toNumber():i.end),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.service.dm.v1.Period"},l}(),e.ExpoReport=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.shouldReportAtEnd=i.bool();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.service.dm.v1.ExpoReport)return i;let n=new u.bilibili.community.service.dm.v1.ExpoReport;return i.shouldReportAtEnd!=null&&(n.shouldReportAtEnd=!!i.shouldReportAtEnd),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.shouldReportAtEnd=!1),i.shouldReportAtEnd!=null&&i.hasOwnProperty("shouldReportAtEnd")&&(o.shouldReportAtEnd=i.shouldReportAtEnd),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.service.dm.v1.ExpoReport"},l}(),e.DmWebViewReply=function(){function l(t){if(this.specialDms=[],this.commandDms=[],this.reportFilterContent=[],this.expressions=[],this.postPanel=[],this.activityMeta=[],this.postPanel_2=[],this.subViews=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.state=i.int32();break}case 2:{a.text=i.string();break}case 3:{a.textSide=i.string();break}case 4:{a.dmSge=u.bilibili.community.service.dm.v1.DmSegConfig.decode(i,i.uint32());break}case 5:{a.flag=u.bilibili.community.service.dm.v1.DanmakuFlagConfig.decode(i,i.uint32());break}case 6:{a.specialDms&&a.specialDms.length||(a.specialDms=[]),a.specialDms.push(i.string());break}case 7:{a.checkBox=i.bool();break}case 8:{a.count=i.int64();break}case 9:{a.commandDms&&a.commandDms.length||(a.commandDms=[]),a.commandDms.push(u.bilibili.community.service.dm.v1.CommandDm.decode(i,i.uint32()));break}case 10:{a.playerConfig=u.bilibili.community.service.dm.v1.DanmuWebPlayerConfig.decode(i,i.uint32());break}case 11:{a.reportFilterContent&&a.reportFilterContent.length||(a.reportFilterContent=[]),a.reportFilterContent.push(i.string());break}case 12:{a.expressions&&a.expressions.length||(a.expressions=[]),a.expressions.push(u.bilibili.community.service.dm.v1.Expressions.decode(i,i.uint32()));break}case 13:{a.postPanel&&a.postPanel.length||(a.postPanel=[]),a.postPanel.push(u.bilibili.community.service.dm.v1.PostPanel.decode(i,i.uint32()));break}case 14:{a.activityMeta&&a.activityMeta.length||(a.activityMeta=[]),a.activityMeta.push(i.string());break}case 15:{a.postPanel_2&&a.postPanel_2.length||(a.postPanel_2=[]),a.postPanel_2.push(u.bilibili.community.service.dm.v1.PostPanelV2.decode(i,i.uint32()));break}case 16:{a.subViews&&a.subViews.length||(a.subViews=[]),a.subViews.push(u.bilibili.community.service.dm.v1.DmSubView.decode(i,i.uint32()));break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.service.dm.v1.DmWebViewReply)return i;let n=new u.bilibili.community.service.dm.v1.DmWebViewReply;if(i.state!=null&&(n.state=i.state|0),i.text!=null&&(n.text=String(i.text)),i.textSide!=null&&(n.textSide=String(i.textSide)),i.dmSge!=null){if(typeof i.dmSge!="object")throw TypeError(".bilibili.community.service.dm.v1.DmWebViewReply.dmSge: object expected");n.dmSge=u.bilibili.community.service.dm.v1.DmSegConfig.fromObject(i.dmSge)}if(i.flag!=null){if(typeof i.flag!="object")throw TypeError(".bilibili.community.service.dm.v1.DmWebViewReply.flag: object expected");n.flag=u.bilibili.community.service.dm.v1.DanmakuFlagConfig.fromObject(i.flag)}if(i.specialDms){if(!Array.isArray(i.specialDms))throw TypeError(".bilibili.community.service.dm.v1.DmWebViewReply.specialDms: array expected");n.specialDms=[];for(let o=0;o>>0,i.count.high>>>0).toNumber())),i.commandDms){if(!Array.isArray(i.commandDms))throw TypeError(".bilibili.community.service.dm.v1.DmWebViewReply.commandDms: array expected");n.commandDms=[];for(let o=0;o>>0,i.count.high>>>0).toNumber():i.count),i.commandDms&&i.commandDms.length){o.commandDms=[];for(let a=0;a>>3){case 1:{a.id=i.int64();break}case 2:{a.oid=i.int64();break}case 3:{a.mid=i.int64();break}case 4:{a.command=i.string();break}case 5:{a.content=i.string();break}case 6:{a.progress=i.int32();break}case 7:{a.ctime=i.string();break}case 8:{a.mtime=i.string();break}case 9:{a.extra=i.string();break}case 10:{a.idstr=i.string();break}case 11:{a.type=i.int32();break}case 12:{a.autoCreate=i.bool();break}case 13:{a.countDown=i.int32();break}case 14:{a.attr=i.int32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.service.dm.v1.CommandDm)return i;let n=new u.bilibili.community.service.dm.v1.CommandDm;return i.id!=null&&(r.Long?(n.id=r.Long.fromValue(i.id)).unsigned=!1:typeof i.id=="string"?n.id=parseInt(i.id,10):typeof i.id=="number"?n.id=i.id:typeof i.id=="object"&&(n.id=new r.LongBits(i.id.low>>>0,i.id.high>>>0).toNumber())),i.oid!=null&&(r.Long?(n.oid=r.Long.fromValue(i.oid)).unsigned=!1:typeof i.oid=="string"?n.oid=parseInt(i.oid,10):typeof i.oid=="number"?n.oid=i.oid:typeof i.oid=="object"&&(n.oid=new r.LongBits(i.oid.low>>>0,i.oid.high>>>0).toNumber())),i.mid!=null&&(r.Long?(n.mid=r.Long.fromValue(i.mid)).unsigned=!1:typeof i.mid=="string"?n.mid=parseInt(i.mid,10):typeof i.mid=="number"?n.mid=i.mid:typeof i.mid=="object"&&(n.mid=new r.LongBits(i.mid.low>>>0,i.mid.high>>>0).toNumber())),i.command!=null&&(n.command=String(i.command)),i.content!=null&&(n.content=String(i.content)),i.progress!=null&&(n.progress=i.progress|0),i.ctime!=null&&(n.ctime=String(i.ctime)),i.mtime!=null&&(n.mtime=String(i.mtime)),i.extra!=null&&(n.extra=String(i.extra)),i.idstr!=null&&(n.idstr=String(i.idstr)),i.type!=null&&(n.type=i.type|0),i.autoCreate!=null&&(n.autoCreate=!!i.autoCreate),i.countDown!=null&&(n.countDown=i.countDown|0),i.attr!=null&&(n.attr=i.attr|0),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.id=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.id=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.oid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.oid=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.mid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.mid=n.longs===String?"0":0;o.command="",o.content="",o.progress=0,o.ctime="",o.mtime="",o.extra="",o.idstr="",o.type=0,o.autoCreate=!1,o.countDown=0,o.attr=0}return i.id!=null&&i.hasOwnProperty("id")&&(typeof i.id=="number"?o.id=n.longs===String?String(i.id):i.id:o.id=n.longs===String?r.Long.prototype.toString.call(i.id):n.longs===Number?new r.LongBits(i.id.low>>>0,i.id.high>>>0).toNumber():i.id),i.oid!=null&&i.hasOwnProperty("oid")&&(typeof i.oid=="number"?o.oid=n.longs===String?String(i.oid):i.oid:o.oid=n.longs===String?r.Long.prototype.toString.call(i.oid):n.longs===Number?new r.LongBits(i.oid.low>>>0,i.oid.high>>>0).toNumber():i.oid),i.mid!=null&&i.hasOwnProperty("mid")&&(typeof i.mid=="number"?o.mid=n.longs===String?String(i.mid):i.mid:o.mid=n.longs===String?r.Long.prototype.toString.call(i.mid):n.longs===Number?new r.LongBits(i.mid.low>>>0,i.mid.high>>>0).toNumber():i.mid),i.command!=null&&i.hasOwnProperty("command")&&(o.command=i.command),i.content!=null&&i.hasOwnProperty("content")&&(o.content=i.content),i.progress!=null&&i.hasOwnProperty("progress")&&(o.progress=i.progress),i.ctime!=null&&i.hasOwnProperty("ctime")&&(o.ctime=i.ctime),i.mtime!=null&&i.hasOwnProperty("mtime")&&(o.mtime=i.mtime),i.extra!=null&&i.hasOwnProperty("extra")&&(o.extra=i.extra),i.idstr!=null&&i.hasOwnProperty("idstr")&&(o.idstr=i.idstr),i.type!=null&&i.hasOwnProperty("type")&&(o.type=i.type),i.autoCreate!=null&&i.hasOwnProperty("autoCreate")&&(o.autoCreate=i.autoCreate),i.countDown!=null&&i.hasOwnProperty("countDown")&&(o.countDown=i.countDown),i.attr!=null&&i.hasOwnProperty("attr")&&(o.attr=i.attr),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.service.dm.v1.CommandDm"},l}(),e.DmSegConfig=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.pageSize=i.int64();break}case 2:{a.total=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.service.dm.v1.DmSegConfig)return i;let n=new u.bilibili.community.service.dm.v1.DmSegConfig;return i.pageSize!=null&&(r.Long?(n.pageSize=r.Long.fromValue(i.pageSize)).unsigned=!1:typeof i.pageSize=="string"?n.pageSize=parseInt(i.pageSize,10):typeof i.pageSize=="number"?n.pageSize=i.pageSize:typeof i.pageSize=="object"&&(n.pageSize=new r.LongBits(i.pageSize.low>>>0,i.pageSize.high>>>0).toNumber())),i.total!=null&&(r.Long?(n.total=r.Long.fromValue(i.total)).unsigned=!1:typeof i.total=="string"?n.total=parseInt(i.total,10):typeof i.total=="number"?n.total=i.total:typeof i.total=="object"&&(n.total=new r.LongBits(i.total.low>>>0,i.total.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.pageSize=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.pageSize=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.total=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.total=n.longs===String?"0":0}return i.pageSize!=null&&i.hasOwnProperty("pageSize")&&(typeof i.pageSize=="number"?o.pageSize=n.longs===String?String(i.pageSize):i.pageSize:o.pageSize=n.longs===String?r.Long.prototype.toString.call(i.pageSize):n.longs===Number?new r.LongBits(i.pageSize.low>>>0,i.pageSize.high>>>0).toNumber():i.pageSize),i.total!=null&&i.hasOwnProperty("total")&&(typeof i.total=="number"?o.total=n.longs===String?String(i.total):i.total:o.total=n.longs===String?r.Long.prototype.toString.call(i.total):n.longs===Number?new r.LongBits(i.total.low>>>0,i.total.high>>>0).toNumber():i.total),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.service.dm.v1.DmSegConfig"},l}(),e.VideoMask=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.cid=i.int64();break}case 2:{a.plat=i.int32();break}case 3:{a.fps=i.int32();break}case 4:{a.time=i.int64();break}case 5:{a.maskUrl=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.service.dm.v1.VideoMask)return i;let n=new u.bilibili.community.service.dm.v1.VideoMask;return i.cid!=null&&(r.Long?(n.cid=r.Long.fromValue(i.cid)).unsigned=!1:typeof i.cid=="string"?n.cid=parseInt(i.cid,10):typeof i.cid=="number"?n.cid=i.cid:typeof i.cid=="object"&&(n.cid=new r.LongBits(i.cid.low>>>0,i.cid.high>>>0).toNumber())),i.plat!=null&&(n.plat=i.plat|0),i.fps!=null&&(n.fps=i.fps|0),i.time!=null&&(r.Long?(n.time=r.Long.fromValue(i.time)).unsigned=!1:typeof i.time=="string"?n.time=parseInt(i.time,10):typeof i.time=="number"?n.time=i.time:typeof i.time=="object"&&(n.time=new r.LongBits(i.time.low>>>0,i.time.high>>>0).toNumber())),i.maskUrl!=null&&(n.maskUrl=String(i.maskUrl)),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.cid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.cid=n.longs===String?"0":0;if(o.plat=0,o.fps=0,r.Long){let a=new r.Long(0,0,!1);o.time=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.time=n.longs===String?"0":0;o.maskUrl=""}return i.cid!=null&&i.hasOwnProperty("cid")&&(typeof i.cid=="number"?o.cid=n.longs===String?String(i.cid):i.cid:o.cid=n.longs===String?r.Long.prototype.toString.call(i.cid):n.longs===Number?new r.LongBits(i.cid.low>>>0,i.cid.high>>>0).toNumber():i.cid),i.plat!=null&&i.hasOwnProperty("plat")&&(o.plat=i.plat),i.fps!=null&&i.hasOwnProperty("fps")&&(o.fps=i.fps),i.time!=null&&i.hasOwnProperty("time")&&(typeof i.time=="number"?o.time=n.longs===String?String(i.time):i.time:o.time=n.longs===String?r.Long.prototype.toString.call(i.time):n.longs===Number?new r.LongBits(i.time.low>>>0,i.time.high>>>0).toNumber():i.time),i.maskUrl!=null&&i.hasOwnProperty("maskUrl")&&(o.maskUrl=i.maskUrl),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.service.dm.v1.VideoMask"},l}(),e.VideoSubtitle=function(){function l(t){if(this.subtitles=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.lan=i.string();break}case 2:{a.lanDoc=i.string();break}case 3:{a.subtitles&&a.subtitles.length||(a.subtitles=[]),a.subtitles.push(u.bilibili.community.service.dm.v1.SubtitleItem.decode(i,i.uint32()));break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.service.dm.v1.VideoSubtitle)return i;let n=new u.bilibili.community.service.dm.v1.VideoSubtitle;if(i.lan!=null&&(n.lan=String(i.lan)),i.lanDoc!=null&&(n.lanDoc=String(i.lanDoc)),i.subtitles){if(!Array.isArray(i.subtitles))throw TypeError(".bilibili.community.service.dm.v1.VideoSubtitle.subtitles: array expected");n.subtitles=[];for(let o=0;o>>3){case 1:{a.dmSwitch=i.bool();break}case 2:{a.aiSwitch=i.bool();break}case 3:{a.aiLevel=i.int32();break}case 4:{a.blocktop=i.bool();break}case 5:{a.blockscroll=i.bool();break}case 6:{a.blockbottom=i.bool();break}case 7:{a.blockcolor=i.bool();break}case 8:{a.blockspecial=i.bool();break}case 9:{a.preventshade=i.bool();break}case 10:{a.dmask=i.bool();break}case 11:{a.opacity=i.float();break}case 12:{a.dmarea=i.int32();break}case 13:{a.speedplus=i.float();break}case 14:{a.fontsize=i.float();break}case 15:{a.screensync=i.bool();break}case 16:{a.speedsync=i.bool();break}case 17:{a.fontfamily=i.string();break}case 18:{a.bold=i.bool();break}case 19:{a.fontborder=i.int32();break}case 20:{a.drawType=i.string();break}case 21:{a.seniorModeSwitch=i.int32();break}case 22:{a.aiLevelV2=i.int32();break}case 23:{a.aiLevelV2Map===r.emptyObject&&(a.aiLevelV2Map={});let g=i.uint32()+i.pos;for(y=0,s=0;i.pos>>3){case 1:y=i.int32();break;case 2:s=i.int32();break;default:i.skipType(S&7);break}}a.aiLevelV2Map[y]=s;break}default:i.skipType(v&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.service.dm.v1.DanmuWebPlayerConfig)return i;let n=new u.bilibili.community.service.dm.v1.DanmuWebPlayerConfig;if(i.dmSwitch!=null&&(n.dmSwitch=!!i.dmSwitch),i.aiSwitch!=null&&(n.aiSwitch=!!i.aiSwitch),i.aiLevel!=null&&(n.aiLevel=i.aiLevel|0),i.blocktop!=null&&(n.blocktop=!!i.blocktop),i.blockscroll!=null&&(n.blockscroll=!!i.blockscroll),i.blockbottom!=null&&(n.blockbottom=!!i.blockbottom),i.blockcolor!=null&&(n.blockcolor=!!i.blockcolor),i.blockspecial!=null&&(n.blockspecial=!!i.blockspecial),i.preventshade!=null&&(n.preventshade=!!i.preventshade),i.dmask!=null&&(n.dmask=!!i.dmask),i.opacity!=null&&(n.opacity=Number(i.opacity)),i.dmarea!=null&&(n.dmarea=i.dmarea|0),i.speedplus!=null&&(n.speedplus=Number(i.speedplus)),i.fontsize!=null&&(n.fontsize=Number(i.fontsize)),i.screensync!=null&&(n.screensync=!!i.screensync),i.speedsync!=null&&(n.speedsync=!!i.speedsync),i.fontfamily!=null&&(n.fontfamily=String(i.fontfamily)),i.bold!=null&&(n.bold=!!i.bold),i.fontborder!=null&&(n.fontborder=i.fontborder|0),i.drawType!=null&&(n.drawType=String(i.drawType)),i.seniorModeSwitch!=null&&(n.seniorModeSwitch=i.seniorModeSwitch|0),i.aiLevelV2!=null&&(n.aiLevelV2=i.aiLevelV2|0),i.aiLevelV2Map){if(typeof i.aiLevelV2Map!="object")throw TypeError(".bilibili.community.service.dm.v1.DanmuWebPlayerConfig.aiLevelV2Map: object expected");n.aiLevelV2Map={};for(let o=Object.keys(i.aiLevelV2Map),a=0;a>>3){case 1:{a.id=i.int64();break}case 2:{a.idStr=i.string();break}case 3:{a.lan=i.string();break}case 4:{a.lanDoc=i.string();break}case 5:{a.subtitleUrl=i.string();break}case 6:{a.author=u.bilibili.community.service.dm.v1.UserInfo.decode(i,i.uint32());break}case 7:{a.type=i.int32();break}case 8:{a.lanDocBrief=i.string();break}case 9:{a.aiType=i.int32();break}case 10:{a.aiStatus=i.int32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.service.dm.v1.SubtitleItem)return i;let n=new u.bilibili.community.service.dm.v1.SubtitleItem;if(i.id!=null&&(r.Long?(n.id=r.Long.fromValue(i.id)).unsigned=!1:typeof i.id=="string"?n.id=parseInt(i.id,10):typeof i.id=="number"?n.id=i.id:typeof i.id=="object"&&(n.id=new r.LongBits(i.id.low>>>0,i.id.high>>>0).toNumber())),i.idStr!=null&&(n.idStr=String(i.idStr)),i.lan!=null&&(n.lan=String(i.lan)),i.lanDoc!=null&&(n.lanDoc=String(i.lanDoc)),i.subtitleUrl!=null&&(n.subtitleUrl=String(i.subtitleUrl)),i.author!=null){if(typeof i.author!="object")throw TypeError(".bilibili.community.service.dm.v1.SubtitleItem.author: object expected");n.author=u.bilibili.community.service.dm.v1.UserInfo.fromObject(i.author)}switch(i.type){default:if(typeof i.type=="number"){n.type=i.type;break}break;case"CC":case 0:n.type=0;break;case"AI":case 1:n.type=1;break}switch(i.lanDocBrief!=null&&(n.lanDocBrief=String(i.lanDocBrief)),i.aiType){default:if(typeof i.aiType=="number"){n.aiType=i.aiType;break}break;case"Normal":case 0:n.aiType=0;break;case"Translate":case 1:n.aiType=1;break}switch(i.aiStatus){default:if(typeof i.aiStatus=="number"){n.aiStatus=i.aiStatus;break}break;case"None":case 0:n.aiStatus=0;break;case"Exposure":case 1:n.aiStatus=1;break;case"Assist":case 2:n.aiStatus=2;break}return n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.id=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.id=n.longs===String?"0":0;o.idStr="",o.lan="",o.lanDoc="",o.subtitleUrl="",o.author=null,o.type=n.enums===String?"CC":0,o.lanDocBrief="",o.aiType=n.enums===String?"Normal":0,o.aiStatus=n.enums===String?"None":0}return i.id!=null&&i.hasOwnProperty("id")&&(typeof i.id=="number"?o.id=n.longs===String?String(i.id):i.id:o.id=n.longs===String?r.Long.prototype.toString.call(i.id):n.longs===Number?new r.LongBits(i.id.low>>>0,i.id.high>>>0).toNumber():i.id),i.idStr!=null&&i.hasOwnProperty("idStr")&&(o.idStr=i.idStr),i.lan!=null&&i.hasOwnProperty("lan")&&(o.lan=i.lan),i.lanDoc!=null&&i.hasOwnProperty("lanDoc")&&(o.lanDoc=i.lanDoc),i.subtitleUrl!=null&&i.hasOwnProperty("subtitleUrl")&&(o.subtitleUrl=i.subtitleUrl),i.author!=null&&i.hasOwnProperty("author")&&(o.author=u.bilibili.community.service.dm.v1.UserInfo.toObject(i.author,n)),i.type!=null&&i.hasOwnProperty("type")&&(o.type=n.enums===String?u.bilibili.community.service.dm.v1.SubtitleType[i.type]===void 0?i.type:u.bilibili.community.service.dm.v1.SubtitleType[i.type]:i.type),i.lanDocBrief!=null&&i.hasOwnProperty("lanDocBrief")&&(o.lanDocBrief=i.lanDocBrief),i.aiType!=null&&i.hasOwnProperty("aiType")&&(o.aiType=n.enums===String?u.bilibili.community.service.dm.v1.SubtitleAiType[i.aiType]===void 0?i.aiType:u.bilibili.community.service.dm.v1.SubtitleAiType[i.aiType]:i.aiType),i.aiStatus!=null&&i.hasOwnProperty("aiStatus")&&(o.aiStatus=n.enums===String?u.bilibili.community.service.dm.v1.SubtitleAiStatus[i.aiStatus]===void 0?i.aiStatus:u.bilibili.community.service.dm.v1.SubtitleAiStatus[i.aiStatus]:i.aiStatus),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.service.dm.v1.SubtitleItem"},l}(),e.UserInfo=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.mid=i.int64();break}case 2:{a.name=i.string();break}case 3:{a.sex=i.string();break}case 4:{a.face=i.string();break}case 5:{a.sign=i.string();break}case 6:{a.rank=i.int32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.service.dm.v1.UserInfo)return i;let n=new u.bilibili.community.service.dm.v1.UserInfo;return i.mid!=null&&(r.Long?(n.mid=r.Long.fromValue(i.mid)).unsigned=!1:typeof i.mid=="string"?n.mid=parseInt(i.mid,10):typeof i.mid=="number"?n.mid=i.mid:typeof i.mid=="object"&&(n.mid=new r.LongBits(i.mid.low>>>0,i.mid.high>>>0).toNumber())),i.name!=null&&(n.name=String(i.name)),i.sex!=null&&(n.sex=String(i.sex)),i.face!=null&&(n.face=String(i.face)),i.sign!=null&&(n.sign=String(i.sign)),i.rank!=null&&(n.rank=i.rank|0),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.mid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.mid=n.longs===String?"0":0;o.name="",o.sex="",o.face="",o.sign="",o.rank=0}return i.mid!=null&&i.hasOwnProperty("mid")&&(typeof i.mid=="number"?o.mid=n.longs===String?String(i.mid):i.mid:o.mid=n.longs===String?r.Long.prototype.toString.call(i.mid):n.longs===Number?new r.LongBits(i.mid.low>>>0,i.mid.high>>>0).toNumber():i.mid),i.name!=null&&i.hasOwnProperty("name")&&(o.name=i.name),i.sex!=null&&i.hasOwnProperty("sex")&&(o.sex=i.sex),i.face!=null&&i.hasOwnProperty("face")&&(o.face=i.face),i.sign!=null&&i.hasOwnProperty("sign")&&(o.sign=i.sign),i.rank!=null&&i.hasOwnProperty("rank")&&(o.rank=i.rank),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.service.dm.v1.UserInfo"},l}(),e.DanmakuElem=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.id=i.int64();break}case 2:{a.progress=i.int32();break}case 3:{a.mode=i.int32();break}case 4:{a.fontsize=i.int32();break}case 5:{a.color=i.uint32();break}case 6:{a.midHash=i.string();break}case 7:{a.content=i.string();break}case 8:{a.ctime=i.int64();break}case 9:{a.weight=i.int32();break}case 10:{a.action=i.string();break}case 11:{a.pool=i.int32();break}case 12:{a.idStr=i.string();break}case 13:{a.attr=i.int32();break}case 22:{a.animation=i.string();break}case 23:{a.extra=i.string();break}case 24:{a.colorful=i.int32();break}case 25:{a.type=i.int32();break}case 26:{a.oid=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.service.dm.v1.DanmakuElem)return i;let n=new u.bilibili.community.service.dm.v1.DanmakuElem;switch(i.id!=null&&(r.Long?(n.id=r.Long.fromValue(i.id)).unsigned=!1:typeof i.id=="string"?n.id=parseInt(i.id,10):typeof i.id=="number"?n.id=i.id:typeof i.id=="object"&&(n.id=new r.LongBits(i.id.low>>>0,i.id.high>>>0).toNumber())),i.progress!=null&&(n.progress=i.progress|0),i.mode!=null&&(n.mode=i.mode|0),i.fontsize!=null&&(n.fontsize=i.fontsize|0),i.color!=null&&(n.color=i.color>>>0),i.midHash!=null&&(n.midHash=String(i.midHash)),i.content!=null&&(n.content=String(i.content)),i.ctime!=null&&(r.Long?(n.ctime=r.Long.fromValue(i.ctime)).unsigned=!1:typeof i.ctime=="string"?n.ctime=parseInt(i.ctime,10):typeof i.ctime=="number"?n.ctime=i.ctime:typeof i.ctime=="object"&&(n.ctime=new r.LongBits(i.ctime.low>>>0,i.ctime.high>>>0).toNumber())),i.weight!=null&&(n.weight=i.weight|0),i.action!=null&&(n.action=String(i.action)),i.pool!=null&&(n.pool=i.pool|0),i.idStr!=null&&(n.idStr=String(i.idStr)),i.attr!=null&&(n.attr=i.attr|0),i.animation!=null&&(n.animation=String(i.animation)),i.extra!=null&&(n.extra=String(i.extra)),i.colorful){default:if(typeof i.colorful=="number"){n.colorful=i.colorful;break}break;case"NoneType":case 0:n.colorful=0;break;case"VipGradualColor":case 60001:n.colorful=60001;break}return i.type!=null&&(n.type=i.type|0),i.oid!=null&&(r.Long?(n.oid=r.Long.fromValue(i.oid)).unsigned=!1:typeof i.oid=="string"?n.oid=parseInt(i.oid,10):typeof i.oid=="number"?n.oid=i.oid:typeof i.oid=="object"&&(n.oid=new r.LongBits(i.oid.low>>>0,i.oid.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.id=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.id=n.longs===String?"0":0;if(o.progress=0,o.mode=0,o.fontsize=0,o.color=0,o.midHash="",o.content="",r.Long){let a=new r.Long(0,0,!1);o.ctime=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.ctime=n.longs===String?"0":0;if(o.weight=0,o.action="",o.pool=0,o.idStr="",o.attr=0,o.animation="",o.extra="",o.colorful=n.enums===String?"NoneType":0,o.type=0,r.Long){let a=new r.Long(0,0,!1);o.oid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.oid=n.longs===String?"0":0}return i.id!=null&&i.hasOwnProperty("id")&&(typeof i.id=="number"?o.id=n.longs===String?String(i.id):i.id:o.id=n.longs===String?r.Long.prototype.toString.call(i.id):n.longs===Number?new r.LongBits(i.id.low>>>0,i.id.high>>>0).toNumber():i.id),i.progress!=null&&i.hasOwnProperty("progress")&&(o.progress=i.progress),i.mode!=null&&i.hasOwnProperty("mode")&&(o.mode=i.mode),i.fontsize!=null&&i.hasOwnProperty("fontsize")&&(o.fontsize=i.fontsize),i.color!=null&&i.hasOwnProperty("color")&&(o.color=i.color),i.midHash!=null&&i.hasOwnProperty("midHash")&&(o.midHash=i.midHash),i.content!=null&&i.hasOwnProperty("content")&&(o.content=i.content),i.ctime!=null&&i.hasOwnProperty("ctime")&&(typeof i.ctime=="number"?o.ctime=n.longs===String?String(i.ctime):i.ctime:o.ctime=n.longs===String?r.Long.prototype.toString.call(i.ctime):n.longs===Number?new r.LongBits(i.ctime.low>>>0,i.ctime.high>>>0).toNumber():i.ctime),i.weight!=null&&i.hasOwnProperty("weight")&&(o.weight=i.weight),i.action!=null&&i.hasOwnProperty("action")&&(o.action=i.action),i.pool!=null&&i.hasOwnProperty("pool")&&(o.pool=i.pool),i.idStr!=null&&i.hasOwnProperty("idStr")&&(o.idStr=i.idStr),i.attr!=null&&i.hasOwnProperty("attr")&&(o.attr=i.attr),i.animation!=null&&i.hasOwnProperty("animation")&&(o.animation=i.animation),i.extra!=null&&i.hasOwnProperty("extra")&&(o.extra=i.extra),i.colorful!=null&&i.hasOwnProperty("colorful")&&(o.colorful=n.enums===String?u.bilibili.community.service.dm.v1.DmColorfulType[i.colorful]===void 0?i.colorful:u.bilibili.community.service.dm.v1.DmColorfulType[i.colorful]:i.colorful),i.type!=null&&i.hasOwnProperty("type")&&(o.type=i.type),i.oid!=null&&i.hasOwnProperty("oid")&&(typeof i.oid=="number"?o.oid=n.longs===String?String(i.oid):i.oid:o.oid=n.longs===String?r.Long.prototype.toString.call(i.oid):n.longs===Number?new r.LongBits(i.oid.low>>>0,i.oid.high>>>0).toNumber():i.oid),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.service.dm.v1.DanmakuElem"},l}(),e.DMAttrBit=function(){let l={},t=Object.create(l);return t[l[0]="DMAttrBitProtect"]=0,t[l[1]="DMAttrBitFromLive"]=1,t[l[2]="DMAttrHighLike"]=2,t}(),e.DmPlayerConfigReq=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.ts=i.int64();break}case 2:{a.switch=u.bilibili.community.service.dm.v1.PlayerDanmakuSwitch.decode(i,i.uint32());break}case 3:{a.switchSave=u.bilibili.community.service.dm.v1.PlayerDanmakuSwitchSave.decode(i,i.uint32());break}case 4:{a.useDefaultConfig=u.bilibili.community.service.dm.v1.PlayerDanmakuUseDefaultConfig.decode(i,i.uint32());break}case 5:{a.aiRecommendedSwitch=u.bilibili.community.service.dm.v1.PlayerDanmakuAiRecommendedSwitch.decode(i,i.uint32());break}case 6:{a.aiRecommendedLevel=u.bilibili.community.service.dm.v1.PlayerDanmakuAiRecommendedLevel.decode(i,i.uint32());break}case 7:{a.blocktop=u.bilibili.community.service.dm.v1.PlayerDanmakuBlocktop.decode(i,i.uint32());break}case 8:{a.blockscroll=u.bilibili.community.service.dm.v1.PlayerDanmakuBlockscroll.decode(i,i.uint32());break}case 9:{a.blockbottom=u.bilibili.community.service.dm.v1.PlayerDanmakuBlockbottom.decode(i,i.uint32());break}case 10:{a.blockcolorful=u.bilibili.community.service.dm.v1.PlayerDanmakuBlockcolorful.decode(i,i.uint32());break}case 11:{a.blockrepeat=u.bilibili.community.service.dm.v1.PlayerDanmakuBlockrepeat.decode(i,i.uint32());break}case 12:{a.blockspecial=u.bilibili.community.service.dm.v1.PlayerDanmakuBlockspecial.decode(i,i.uint32());break}case 13:{a.opacity=u.bilibili.community.service.dm.v1.PlayerDanmakuOpacity.decode(i,i.uint32());break}case 14:{a.scalingfactor=u.bilibili.community.service.dm.v1.PlayerDanmakuScalingfactor.decode(i,i.uint32());break}case 15:{a.domain=u.bilibili.community.service.dm.v1.PlayerDanmakuDomain.decode(i,i.uint32());break}case 16:{a.speed=u.bilibili.community.service.dm.v1.PlayerDanmakuSpeed.decode(i,i.uint32());break}case 17:{a.enableblocklist=u.bilibili.community.service.dm.v1.PlayerDanmakuEnableblocklist.decode(i,i.uint32());break}case 18:{a.inlinePlayerDanmakuSwitch=u.bilibili.community.service.dm.v1.InlinePlayerDanmakuSwitch.decode(i,i.uint32());break}case 19:{a.seniorModeSwitch=u.bilibili.community.service.dm.v1.PlayerDanmakuSeniorModeSwitch.decode(i,i.uint32());break}case 20:{a.aiRecommendedLevelV2=u.bilibili.community.service.dm.v1.PlayerDanmakuAiRecommendedLevelV2.decode(i,i.uint32());break}case 21:{a.enableHerdDm=u.bilibili.community.service.dm.v1.PlayerDanmakuEnableHerdDm.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.service.dm.v1.DmPlayerConfigReq)return i;let n=new u.bilibili.community.service.dm.v1.DmPlayerConfigReq;if(i.ts!=null&&(r.Long?(n.ts=r.Long.fromValue(i.ts)).unsigned=!1:typeof i.ts=="string"?n.ts=parseInt(i.ts,10):typeof i.ts=="number"?n.ts=i.ts:typeof i.ts=="object"&&(n.ts=new r.LongBits(i.ts.low>>>0,i.ts.high>>>0).toNumber())),i.switch!=null){if(typeof i.switch!="object")throw TypeError(".bilibili.community.service.dm.v1.DmPlayerConfigReq.switch: object expected");n.switch=u.bilibili.community.service.dm.v1.PlayerDanmakuSwitch.fromObject(i.switch)}if(i.switchSave!=null){if(typeof i.switchSave!="object")throw TypeError(".bilibili.community.service.dm.v1.DmPlayerConfigReq.switchSave: object expected");n.switchSave=u.bilibili.community.service.dm.v1.PlayerDanmakuSwitchSave.fromObject(i.switchSave)}if(i.useDefaultConfig!=null){if(typeof i.useDefaultConfig!="object")throw TypeError(".bilibili.community.service.dm.v1.DmPlayerConfigReq.useDefaultConfig: object expected");n.useDefaultConfig=u.bilibili.community.service.dm.v1.PlayerDanmakuUseDefaultConfig.fromObject(i.useDefaultConfig)}if(i.aiRecommendedSwitch!=null){if(typeof i.aiRecommendedSwitch!="object")throw TypeError(".bilibili.community.service.dm.v1.DmPlayerConfigReq.aiRecommendedSwitch: object expected");n.aiRecommendedSwitch=u.bilibili.community.service.dm.v1.PlayerDanmakuAiRecommendedSwitch.fromObject(i.aiRecommendedSwitch)}if(i.aiRecommendedLevel!=null){if(typeof i.aiRecommendedLevel!="object")throw TypeError(".bilibili.community.service.dm.v1.DmPlayerConfigReq.aiRecommendedLevel: object expected");n.aiRecommendedLevel=u.bilibili.community.service.dm.v1.PlayerDanmakuAiRecommendedLevel.fromObject(i.aiRecommendedLevel)}if(i.blocktop!=null){if(typeof i.blocktop!="object")throw TypeError(".bilibili.community.service.dm.v1.DmPlayerConfigReq.blocktop: object expected");n.blocktop=u.bilibili.community.service.dm.v1.PlayerDanmakuBlocktop.fromObject(i.blocktop)}if(i.blockscroll!=null){if(typeof i.blockscroll!="object")throw TypeError(".bilibili.community.service.dm.v1.DmPlayerConfigReq.blockscroll: object expected");n.blockscroll=u.bilibili.community.service.dm.v1.PlayerDanmakuBlockscroll.fromObject(i.blockscroll)}if(i.blockbottom!=null){if(typeof i.blockbottom!="object")throw TypeError(".bilibili.community.service.dm.v1.DmPlayerConfigReq.blockbottom: object expected");n.blockbottom=u.bilibili.community.service.dm.v1.PlayerDanmakuBlockbottom.fromObject(i.blockbottom)}if(i.blockcolorful!=null){if(typeof i.blockcolorful!="object")throw TypeError(".bilibili.community.service.dm.v1.DmPlayerConfigReq.blockcolorful: object expected");n.blockcolorful=u.bilibili.community.service.dm.v1.PlayerDanmakuBlockcolorful.fromObject(i.blockcolorful)}if(i.blockrepeat!=null){if(typeof i.blockrepeat!="object")throw TypeError(".bilibili.community.service.dm.v1.DmPlayerConfigReq.blockrepeat: object expected");n.blockrepeat=u.bilibili.community.service.dm.v1.PlayerDanmakuBlockrepeat.fromObject(i.blockrepeat)}if(i.blockspecial!=null){if(typeof i.blockspecial!="object")throw TypeError(".bilibili.community.service.dm.v1.DmPlayerConfigReq.blockspecial: object expected");n.blockspecial=u.bilibili.community.service.dm.v1.PlayerDanmakuBlockspecial.fromObject(i.blockspecial)}if(i.opacity!=null){if(typeof i.opacity!="object")throw TypeError(".bilibili.community.service.dm.v1.DmPlayerConfigReq.opacity: object expected");n.opacity=u.bilibili.community.service.dm.v1.PlayerDanmakuOpacity.fromObject(i.opacity)}if(i.scalingfactor!=null){if(typeof i.scalingfactor!="object")throw TypeError(".bilibili.community.service.dm.v1.DmPlayerConfigReq.scalingfactor: object expected");n.scalingfactor=u.bilibili.community.service.dm.v1.PlayerDanmakuScalingfactor.fromObject(i.scalingfactor)}if(i.domain!=null){if(typeof i.domain!="object")throw TypeError(".bilibili.community.service.dm.v1.DmPlayerConfigReq.domain: object expected");n.domain=u.bilibili.community.service.dm.v1.PlayerDanmakuDomain.fromObject(i.domain)}if(i.speed!=null){if(typeof i.speed!="object")throw TypeError(".bilibili.community.service.dm.v1.DmPlayerConfigReq.speed: object expected");n.speed=u.bilibili.community.service.dm.v1.PlayerDanmakuSpeed.fromObject(i.speed)}if(i.enableblocklist!=null){if(typeof i.enableblocklist!="object")throw TypeError(".bilibili.community.service.dm.v1.DmPlayerConfigReq.enableblocklist: object expected");n.enableblocklist=u.bilibili.community.service.dm.v1.PlayerDanmakuEnableblocklist.fromObject(i.enableblocklist)}if(i.inlinePlayerDanmakuSwitch!=null){if(typeof i.inlinePlayerDanmakuSwitch!="object")throw TypeError(".bilibili.community.service.dm.v1.DmPlayerConfigReq.inlinePlayerDanmakuSwitch: object expected");n.inlinePlayerDanmakuSwitch=u.bilibili.community.service.dm.v1.InlinePlayerDanmakuSwitch.fromObject(i.inlinePlayerDanmakuSwitch)}if(i.seniorModeSwitch!=null){if(typeof i.seniorModeSwitch!="object")throw TypeError(".bilibili.community.service.dm.v1.DmPlayerConfigReq.seniorModeSwitch: object expected");n.seniorModeSwitch=u.bilibili.community.service.dm.v1.PlayerDanmakuSeniorModeSwitch.fromObject(i.seniorModeSwitch)}if(i.aiRecommendedLevelV2!=null){if(typeof i.aiRecommendedLevelV2!="object")throw TypeError(".bilibili.community.service.dm.v1.DmPlayerConfigReq.aiRecommendedLevelV2: object expected");n.aiRecommendedLevelV2=u.bilibili.community.service.dm.v1.PlayerDanmakuAiRecommendedLevelV2.fromObject(i.aiRecommendedLevelV2)}if(i.enableHerdDm!=null){if(typeof i.enableHerdDm!="object")throw TypeError(".bilibili.community.service.dm.v1.DmPlayerConfigReq.enableHerdDm: object expected");n.enableHerdDm=u.bilibili.community.service.dm.v1.PlayerDanmakuEnableHerdDm.fromObject(i.enableHerdDm)}return n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.ts=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.ts=n.longs===String?"0":0;o.switch=null,o.switchSave=null,o.useDefaultConfig=null,o.aiRecommendedSwitch=null,o.aiRecommendedLevel=null,o.blocktop=null,o.blockscroll=null,o.blockbottom=null,o.blockcolorful=null,o.blockrepeat=null,o.blockspecial=null,o.opacity=null,o.scalingfactor=null,o.domain=null,o.speed=null,o.enableblocklist=null,o.inlinePlayerDanmakuSwitch=null,o.seniorModeSwitch=null,o.aiRecommendedLevelV2=null,o.enableHerdDm=null}return i.ts!=null&&i.hasOwnProperty("ts")&&(typeof i.ts=="number"?o.ts=n.longs===String?String(i.ts):i.ts:o.ts=n.longs===String?r.Long.prototype.toString.call(i.ts):n.longs===Number?new r.LongBits(i.ts.low>>>0,i.ts.high>>>0).toNumber():i.ts),i.switch!=null&&i.hasOwnProperty("switch")&&(o.switch=u.bilibili.community.service.dm.v1.PlayerDanmakuSwitch.toObject(i.switch,n)),i.switchSave!=null&&i.hasOwnProperty("switchSave")&&(o.switchSave=u.bilibili.community.service.dm.v1.PlayerDanmakuSwitchSave.toObject(i.switchSave,n)),i.useDefaultConfig!=null&&i.hasOwnProperty("useDefaultConfig")&&(o.useDefaultConfig=u.bilibili.community.service.dm.v1.PlayerDanmakuUseDefaultConfig.toObject(i.useDefaultConfig,n)),i.aiRecommendedSwitch!=null&&i.hasOwnProperty("aiRecommendedSwitch")&&(o.aiRecommendedSwitch=u.bilibili.community.service.dm.v1.PlayerDanmakuAiRecommendedSwitch.toObject(i.aiRecommendedSwitch,n)),i.aiRecommendedLevel!=null&&i.hasOwnProperty("aiRecommendedLevel")&&(o.aiRecommendedLevel=u.bilibili.community.service.dm.v1.PlayerDanmakuAiRecommendedLevel.toObject(i.aiRecommendedLevel,n)),i.blocktop!=null&&i.hasOwnProperty("blocktop")&&(o.blocktop=u.bilibili.community.service.dm.v1.PlayerDanmakuBlocktop.toObject(i.blocktop,n)),i.blockscroll!=null&&i.hasOwnProperty("blockscroll")&&(o.blockscroll=u.bilibili.community.service.dm.v1.PlayerDanmakuBlockscroll.toObject(i.blockscroll,n)),i.blockbottom!=null&&i.hasOwnProperty("blockbottom")&&(o.blockbottom=u.bilibili.community.service.dm.v1.PlayerDanmakuBlockbottom.toObject(i.blockbottom,n)),i.blockcolorful!=null&&i.hasOwnProperty("blockcolorful")&&(o.blockcolorful=u.bilibili.community.service.dm.v1.PlayerDanmakuBlockcolorful.toObject(i.blockcolorful,n)),i.blockrepeat!=null&&i.hasOwnProperty("blockrepeat")&&(o.blockrepeat=u.bilibili.community.service.dm.v1.PlayerDanmakuBlockrepeat.toObject(i.blockrepeat,n)),i.blockspecial!=null&&i.hasOwnProperty("blockspecial")&&(o.blockspecial=u.bilibili.community.service.dm.v1.PlayerDanmakuBlockspecial.toObject(i.blockspecial,n)),i.opacity!=null&&i.hasOwnProperty("opacity")&&(o.opacity=u.bilibili.community.service.dm.v1.PlayerDanmakuOpacity.toObject(i.opacity,n)),i.scalingfactor!=null&&i.hasOwnProperty("scalingfactor")&&(o.scalingfactor=u.bilibili.community.service.dm.v1.PlayerDanmakuScalingfactor.toObject(i.scalingfactor,n)),i.domain!=null&&i.hasOwnProperty("domain")&&(o.domain=u.bilibili.community.service.dm.v1.PlayerDanmakuDomain.toObject(i.domain,n)),i.speed!=null&&i.hasOwnProperty("speed")&&(o.speed=u.bilibili.community.service.dm.v1.PlayerDanmakuSpeed.toObject(i.speed,n)),i.enableblocklist!=null&&i.hasOwnProperty("enableblocklist")&&(o.enableblocklist=u.bilibili.community.service.dm.v1.PlayerDanmakuEnableblocklist.toObject(i.enableblocklist,n)),i.inlinePlayerDanmakuSwitch!=null&&i.hasOwnProperty("inlinePlayerDanmakuSwitch")&&(o.inlinePlayerDanmakuSwitch=u.bilibili.community.service.dm.v1.InlinePlayerDanmakuSwitch.toObject(i.inlinePlayerDanmakuSwitch,n)),i.seniorModeSwitch!=null&&i.hasOwnProperty("seniorModeSwitch")&&(o.seniorModeSwitch=u.bilibili.community.service.dm.v1.PlayerDanmakuSeniorModeSwitch.toObject(i.seniorModeSwitch,n)),i.aiRecommendedLevelV2!=null&&i.hasOwnProperty("aiRecommendedLevelV2")&&(o.aiRecommendedLevelV2=u.bilibili.community.service.dm.v1.PlayerDanmakuAiRecommendedLevelV2.toObject(i.aiRecommendedLevelV2,n)),i.enableHerdDm!=null&&i.hasOwnProperty("enableHerdDm")&&(o.enableHerdDm=u.bilibili.community.service.dm.v1.PlayerDanmakuEnableHerdDm.toObject(i.enableHerdDm,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.service.dm.v1.DmPlayerConfigReq"},l}(),e.Response=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.code=i.int32();break}case 2:{a.message=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.service.dm.v1.Response)return i;let n=new u.bilibili.community.service.dm.v1.Response;return i.code!=null&&(n.code=i.code|0),i.message!=null&&(n.message=String(i.message)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.code=0,o.message=""),i.code!=null&&i.hasOwnProperty("code")&&(o.code=i.code),i.message!=null&&i.hasOwnProperty("message")&&(o.message=i.message),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.service.dm.v1.Response"},l}(),e.DanmakuFlag=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.dmid=i.int64();break}case 2:{a.flag=i.uint32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.service.dm.v1.DanmakuFlag)return i;let n=new u.bilibili.community.service.dm.v1.DanmakuFlag;return i.dmid!=null&&(r.Long?(n.dmid=r.Long.fromValue(i.dmid)).unsigned=!1:typeof i.dmid=="string"?n.dmid=parseInt(i.dmid,10):typeof i.dmid=="number"?n.dmid=i.dmid:typeof i.dmid=="object"&&(n.dmid=new r.LongBits(i.dmid.low>>>0,i.dmid.high>>>0).toNumber())),i.flag!=null&&(n.flag=i.flag>>>0),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.dmid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.dmid=n.longs===String?"0":0;o.flag=0}return i.dmid!=null&&i.hasOwnProperty("dmid")&&(typeof i.dmid=="number"?o.dmid=n.longs===String?String(i.dmid):i.dmid:o.dmid=n.longs===String?r.Long.prototype.toString.call(i.dmid):n.longs===Number?new r.LongBits(i.dmid.low>>>0,i.dmid.high>>>0).toNumber():i.dmid),i.flag!=null&&i.hasOwnProperty("flag")&&(o.flag=i.flag),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.service.dm.v1.DanmakuFlag"},l}(),e.DanmakuFlagConfig=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.recFlag=i.int32();break}case 2:{a.recText=i.string();break}case 3:{a.recSwitch=i.int32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.service.dm.v1.DanmakuFlagConfig)return i;let n=new u.bilibili.community.service.dm.v1.DanmakuFlagConfig;return i.recFlag!=null&&(n.recFlag=i.recFlag|0),i.recText!=null&&(n.recText=String(i.recText)),i.recSwitch!=null&&(n.recSwitch=i.recSwitch|0),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.recFlag=0,o.recText="",o.recSwitch=0),i.recFlag!=null&&i.hasOwnProperty("recFlag")&&(o.recFlag=i.recFlag),i.recText!=null&&i.hasOwnProperty("recText")&&(o.recText=i.recText),i.recSwitch!=null&&i.hasOwnProperty("recSwitch")&&(o.recSwitch=i.recSwitch),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.service.dm.v1.DanmakuFlagConfig"},l}(),e.DanmakuAIFlag=function(){function l(t){if(this.dmFlags=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.dmFlags&&a.dmFlags.length||(a.dmFlags=[]),a.dmFlags.push(u.bilibili.community.service.dm.v1.DanmakuFlag.decode(i,i.uint32()));break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.service.dm.v1.DanmakuAIFlag)return i;let n=new u.bilibili.community.service.dm.v1.DanmakuAIFlag;if(i.dmFlags){if(!Array.isArray(i.dmFlags))throw TypeError(".bilibili.community.service.dm.v1.DanmakuAIFlag.dmFlags: array expected");n.dmFlags=[];for(let o=0;o>>3){case 1:{a.danmukuDefaultPlayerConfig=u.bilibili.community.service.dm.v1.DanmuDefaultPlayerConfig.decode(i,i.uint32());break}case 2:{a.danmukuPlayerConfig=u.bilibili.community.service.dm.v1.DanmuPlayerConfig.decode(i,i.uint32());break}case 3:{a.danmukuPlayerDynamicConfig&&a.danmukuPlayerDynamicConfig.length||(a.danmukuPlayerDynamicConfig=[]),a.danmukuPlayerDynamicConfig.push(u.bilibili.community.service.dm.v1.DanmuPlayerDynamicConfig.decode(i,i.uint32()));break}case 4:{a.danmukuPlayerConfigPanel=u.bilibili.community.service.dm.v1.DanmuPlayerConfigPanel.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.service.dm.v1.DanmuPlayerViewConfig)return i;let n=new u.bilibili.community.service.dm.v1.DanmuPlayerViewConfig;if(i.danmukuDefaultPlayerConfig!=null){if(typeof i.danmukuDefaultPlayerConfig!="object")throw TypeError(".bilibili.community.service.dm.v1.DanmuPlayerViewConfig.danmukuDefaultPlayerConfig: object expected");n.danmukuDefaultPlayerConfig=u.bilibili.community.service.dm.v1.DanmuDefaultPlayerConfig.fromObject(i.danmukuDefaultPlayerConfig)}if(i.danmukuPlayerConfig!=null){if(typeof i.danmukuPlayerConfig!="object")throw TypeError(".bilibili.community.service.dm.v1.DanmuPlayerViewConfig.danmukuPlayerConfig: object expected");n.danmukuPlayerConfig=u.bilibili.community.service.dm.v1.DanmuPlayerConfig.fromObject(i.danmukuPlayerConfig)}if(i.danmukuPlayerDynamicConfig){if(!Array.isArray(i.danmukuPlayerDynamicConfig))throw TypeError(".bilibili.community.service.dm.v1.DanmuPlayerViewConfig.danmukuPlayerDynamicConfig: array expected");n.danmukuPlayerDynamicConfig=[];for(let o=0;o>>3){case 1:{a.playerDanmakuUseDefaultConfig=i.bool();break}case 4:{a.playerDanmakuAiRecommendedSwitch=i.bool();break}case 5:{a.playerDanmakuAiRecommendedLevel=i.int32();break}case 6:{a.playerDanmakuBlocktop=i.bool();break}case 7:{a.playerDanmakuBlockscroll=i.bool();break}case 8:{a.playerDanmakuBlockbottom=i.bool();break}case 9:{a.playerDanmakuBlockcolorful=i.bool();break}case 10:{a.playerDanmakuBlockrepeat=i.bool();break}case 11:{a.playerDanmakuBlockspecial=i.bool();break}case 12:{a.playerDanmakuOpacity=i.float();break}case 13:{a.playerDanmakuScalingfactor=i.float();break}case 14:{a.playerDanmakuDomain=i.float();break}case 15:{a.playerDanmakuSpeed=i.int32();break}case 16:{a.inlinePlayerDanmakuSwitch=i.bool();break}case 17:{a.playerDanmakuSeniorModeSwitch=i.int32();break}case 18:{a.playerDanmakuAiRecommendedLevelV2=i.int32();break}case 19:{a.playerDanmakuAiRecommendedLevelV2Map===r.emptyObject&&(a.playerDanmakuAiRecommendedLevelV2Map={});let g=i.uint32()+i.pos;for(y=0,s=0;i.pos>>3){case 1:y=i.int32();break;case 2:s=i.int32();break;default:i.skipType(S&7);break}}a.playerDanmakuAiRecommendedLevelV2Map[y]=s;break}case 20:{a.playerDanmakuEnableHerdDm=i.bool();break}default:i.skipType(v&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.service.dm.v1.DanmuDefaultPlayerConfig)return i;let n=new u.bilibili.community.service.dm.v1.DanmuDefaultPlayerConfig;if(i.playerDanmakuUseDefaultConfig!=null&&(n.playerDanmakuUseDefaultConfig=!!i.playerDanmakuUseDefaultConfig),i.playerDanmakuAiRecommendedSwitch!=null&&(n.playerDanmakuAiRecommendedSwitch=!!i.playerDanmakuAiRecommendedSwitch),i.playerDanmakuAiRecommendedLevel!=null&&(n.playerDanmakuAiRecommendedLevel=i.playerDanmakuAiRecommendedLevel|0),i.playerDanmakuBlocktop!=null&&(n.playerDanmakuBlocktop=!!i.playerDanmakuBlocktop),i.playerDanmakuBlockscroll!=null&&(n.playerDanmakuBlockscroll=!!i.playerDanmakuBlockscroll),i.playerDanmakuBlockbottom!=null&&(n.playerDanmakuBlockbottom=!!i.playerDanmakuBlockbottom),i.playerDanmakuBlockcolorful!=null&&(n.playerDanmakuBlockcolorful=!!i.playerDanmakuBlockcolorful),i.playerDanmakuBlockrepeat!=null&&(n.playerDanmakuBlockrepeat=!!i.playerDanmakuBlockrepeat),i.playerDanmakuBlockspecial!=null&&(n.playerDanmakuBlockspecial=!!i.playerDanmakuBlockspecial),i.playerDanmakuOpacity!=null&&(n.playerDanmakuOpacity=Number(i.playerDanmakuOpacity)),i.playerDanmakuScalingfactor!=null&&(n.playerDanmakuScalingfactor=Number(i.playerDanmakuScalingfactor)),i.playerDanmakuDomain!=null&&(n.playerDanmakuDomain=Number(i.playerDanmakuDomain)),i.playerDanmakuSpeed!=null&&(n.playerDanmakuSpeed=i.playerDanmakuSpeed|0),i.inlinePlayerDanmakuSwitch!=null&&(n.inlinePlayerDanmakuSwitch=!!i.inlinePlayerDanmakuSwitch),i.playerDanmakuSeniorModeSwitch!=null&&(n.playerDanmakuSeniorModeSwitch=i.playerDanmakuSeniorModeSwitch|0),i.playerDanmakuAiRecommendedLevelV2!=null&&(n.playerDanmakuAiRecommendedLevelV2=i.playerDanmakuAiRecommendedLevelV2|0),i.playerDanmakuAiRecommendedLevelV2Map){if(typeof i.playerDanmakuAiRecommendedLevelV2Map!="object")throw TypeError(".bilibili.community.service.dm.v1.DanmuDefaultPlayerConfig.playerDanmakuAiRecommendedLevelV2Map: object expected");n.playerDanmakuAiRecommendedLevelV2Map={};for(let o=Object.keys(i.playerDanmakuAiRecommendedLevelV2Map),a=0;a>>3){case 1:{a.playerDanmakuSwitch=i.bool();break}case 2:{a.playerDanmakuSwitchSave=i.bool();break}case 3:{a.playerDanmakuUseDefaultConfig=i.bool();break}case 4:{a.playerDanmakuAiRecommendedSwitch=i.bool();break}case 5:{a.playerDanmakuAiRecommendedLevel=i.int32();break}case 6:{a.playerDanmakuBlocktop=i.bool();break}case 7:{a.playerDanmakuBlockscroll=i.bool();break}case 8:{a.playerDanmakuBlockbottom=i.bool();break}case 9:{a.playerDanmakuBlockcolorful=i.bool();break}case 10:{a.playerDanmakuBlockrepeat=i.bool();break}case 11:{a.playerDanmakuBlockspecial=i.bool();break}case 12:{a.playerDanmakuOpacity=i.float();break}case 13:{a.playerDanmakuScalingfactor=i.float();break}case 14:{a.playerDanmakuDomain=i.float();break}case 15:{a.playerDanmakuSpeed=i.int32();break}case 16:{a.playerDanmakuEnableblocklist=i.bool();break}case 17:{a.inlinePlayerDanmakuSwitch=i.bool();break}case 18:{a.inlinePlayerDanmakuConfig=i.int32();break}case 19:{a.playerDanmakuIosSwitchSave=i.int32();break}case 20:{a.playerDanmakuSeniorModeSwitch=i.int32();break}case 21:{a.playerDanmakuAiRecommendedLevelV2=i.int32();break}case 22:{a.playerDanmakuAiRecommendedLevelV2Map===r.emptyObject&&(a.playerDanmakuAiRecommendedLevelV2Map={});let g=i.uint32()+i.pos;for(y=0,s=0;i.pos>>3){case 1:y=i.int32();break;case 2:s=i.int32();break;default:i.skipType(S&7);break}}a.playerDanmakuAiRecommendedLevelV2Map[y]=s;break}case 23:{a.playerDanmakuEnableHerdDm=i.bool();break}default:i.skipType(v&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.service.dm.v1.DanmuPlayerConfig)return i;let n=new u.bilibili.community.service.dm.v1.DanmuPlayerConfig;if(i.playerDanmakuSwitch!=null&&(n.playerDanmakuSwitch=!!i.playerDanmakuSwitch),i.playerDanmakuSwitchSave!=null&&(n.playerDanmakuSwitchSave=!!i.playerDanmakuSwitchSave),i.playerDanmakuUseDefaultConfig!=null&&(n.playerDanmakuUseDefaultConfig=!!i.playerDanmakuUseDefaultConfig),i.playerDanmakuAiRecommendedSwitch!=null&&(n.playerDanmakuAiRecommendedSwitch=!!i.playerDanmakuAiRecommendedSwitch),i.playerDanmakuAiRecommendedLevel!=null&&(n.playerDanmakuAiRecommendedLevel=i.playerDanmakuAiRecommendedLevel|0),i.playerDanmakuBlocktop!=null&&(n.playerDanmakuBlocktop=!!i.playerDanmakuBlocktop),i.playerDanmakuBlockscroll!=null&&(n.playerDanmakuBlockscroll=!!i.playerDanmakuBlockscroll),i.playerDanmakuBlockbottom!=null&&(n.playerDanmakuBlockbottom=!!i.playerDanmakuBlockbottom),i.playerDanmakuBlockcolorful!=null&&(n.playerDanmakuBlockcolorful=!!i.playerDanmakuBlockcolorful),i.playerDanmakuBlockrepeat!=null&&(n.playerDanmakuBlockrepeat=!!i.playerDanmakuBlockrepeat),i.playerDanmakuBlockspecial!=null&&(n.playerDanmakuBlockspecial=!!i.playerDanmakuBlockspecial),i.playerDanmakuOpacity!=null&&(n.playerDanmakuOpacity=Number(i.playerDanmakuOpacity)),i.playerDanmakuScalingfactor!=null&&(n.playerDanmakuScalingfactor=Number(i.playerDanmakuScalingfactor)),i.playerDanmakuDomain!=null&&(n.playerDanmakuDomain=Number(i.playerDanmakuDomain)),i.playerDanmakuSpeed!=null&&(n.playerDanmakuSpeed=i.playerDanmakuSpeed|0),i.playerDanmakuEnableblocklist!=null&&(n.playerDanmakuEnableblocklist=!!i.playerDanmakuEnableblocklist),i.inlinePlayerDanmakuSwitch!=null&&(n.inlinePlayerDanmakuSwitch=!!i.inlinePlayerDanmakuSwitch),i.inlinePlayerDanmakuConfig!=null&&(n.inlinePlayerDanmakuConfig=i.inlinePlayerDanmakuConfig|0),i.playerDanmakuIosSwitchSave!=null&&(n.playerDanmakuIosSwitchSave=i.playerDanmakuIosSwitchSave|0),i.playerDanmakuSeniorModeSwitch!=null&&(n.playerDanmakuSeniorModeSwitch=i.playerDanmakuSeniorModeSwitch|0),i.playerDanmakuAiRecommendedLevelV2!=null&&(n.playerDanmakuAiRecommendedLevelV2=i.playerDanmakuAiRecommendedLevelV2|0),i.playerDanmakuAiRecommendedLevelV2Map){if(typeof i.playerDanmakuAiRecommendedLevelV2Map!="object")throw TypeError(".bilibili.community.service.dm.v1.DanmuPlayerConfig.playerDanmakuAiRecommendedLevelV2Map: object expected");n.playerDanmakuAiRecommendedLevelV2Map={};for(let o=Object.keys(i.playerDanmakuAiRecommendedLevelV2Map),a=0;a>>3){case 1:{a.progress=i.int32();break}case 14:{a.playerDanmakuDomain=i.float();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.service.dm.v1.DanmuPlayerDynamicConfig)return i;let n=new u.bilibili.community.service.dm.v1.DanmuPlayerDynamicConfig;return i.progress!=null&&(n.progress=i.progress|0),i.playerDanmakuDomain!=null&&(n.playerDanmakuDomain=Number(i.playerDanmakuDomain)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.progress=0,o.playerDanmakuDomain=0),i.progress!=null&&i.hasOwnProperty("progress")&&(o.progress=i.progress),i.playerDanmakuDomain!=null&&i.hasOwnProperty("playerDanmakuDomain")&&(o.playerDanmakuDomain=n.json&&!isFinite(i.playerDanmakuDomain)?String(i.playerDanmakuDomain):i.playerDanmakuDomain),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.service.dm.v1.DanmuPlayerDynamicConfig"},l}(),e.DanmuPlayerConfigPanel=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.selectionText=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.service.dm.v1.DanmuPlayerConfigPanel)return i;let n=new u.bilibili.community.service.dm.v1.DanmuPlayerConfigPanel;return i.selectionText!=null&&(n.selectionText=String(i.selectionText)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.selectionText=""),i.selectionText!=null&&i.hasOwnProperty("selectionText")&&(o.selectionText=i.selectionText),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.service.dm.v1.DanmuPlayerConfigPanel"},l}(),e.PlayerDanmakuSwitch=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.value=i.bool();break}case 2:{a.canIgnore=i.bool();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.service.dm.v1.PlayerDanmakuSwitch)return i;let n=new u.bilibili.community.service.dm.v1.PlayerDanmakuSwitch;return i.value!=null&&(n.value=!!i.value),i.canIgnore!=null&&(n.canIgnore=!!i.canIgnore),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.value=!1,o.canIgnore=!1),i.value!=null&&i.hasOwnProperty("value")&&(o.value=i.value),i.canIgnore!=null&&i.hasOwnProperty("canIgnore")&&(o.canIgnore=i.canIgnore),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.service.dm.v1.PlayerDanmakuSwitch"},l}(),e.PlayerDanmakuSwitchSave=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.value=i.bool();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.service.dm.v1.PlayerDanmakuSwitchSave)return i;let n=new u.bilibili.community.service.dm.v1.PlayerDanmakuSwitchSave;return i.value!=null&&(n.value=!!i.value),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.value=!1),i.value!=null&&i.hasOwnProperty("value")&&(o.value=i.value),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.service.dm.v1.PlayerDanmakuSwitchSave"},l}(),e.PlayerDanmakuUseDefaultConfig=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.value=i.bool();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.service.dm.v1.PlayerDanmakuUseDefaultConfig)return i;let n=new u.bilibili.community.service.dm.v1.PlayerDanmakuUseDefaultConfig;return i.value!=null&&(n.value=!!i.value),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.value=!1),i.value!=null&&i.hasOwnProperty("value")&&(o.value=i.value),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.service.dm.v1.PlayerDanmakuUseDefaultConfig"},l}(),e.PlayerDanmakuAiRecommendedSwitch=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.value=i.bool();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.service.dm.v1.PlayerDanmakuAiRecommendedSwitch)return i;let n=new u.bilibili.community.service.dm.v1.PlayerDanmakuAiRecommendedSwitch;return i.value!=null&&(n.value=!!i.value),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.value=!1),i.value!=null&&i.hasOwnProperty("value")&&(o.value=i.value),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.service.dm.v1.PlayerDanmakuAiRecommendedSwitch"},l}(),e.PlayerDanmakuAiRecommendedLevel=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.value=i.int32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.service.dm.v1.PlayerDanmakuAiRecommendedLevel)return i;let n=new u.bilibili.community.service.dm.v1.PlayerDanmakuAiRecommendedLevel;return i.value!=null&&(n.value=i.value|0),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.value=0),i.value!=null&&i.hasOwnProperty("value")&&(o.value=i.value),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.service.dm.v1.PlayerDanmakuAiRecommendedLevel"},l}(),e.PlayerDanmakuBlocktop=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.value=i.bool();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.service.dm.v1.PlayerDanmakuBlocktop)return i;let n=new u.bilibili.community.service.dm.v1.PlayerDanmakuBlocktop;return i.value!=null&&(n.value=!!i.value),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.value=!1),i.value!=null&&i.hasOwnProperty("value")&&(o.value=i.value),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.service.dm.v1.PlayerDanmakuBlocktop"},l}(),e.PlayerDanmakuBlockscroll=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.value=i.bool();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.service.dm.v1.PlayerDanmakuBlockscroll)return i;let n=new u.bilibili.community.service.dm.v1.PlayerDanmakuBlockscroll;return i.value!=null&&(n.value=!!i.value),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.value=!1),i.value!=null&&i.hasOwnProperty("value")&&(o.value=i.value),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.service.dm.v1.PlayerDanmakuBlockscroll"},l}(),e.PlayerDanmakuBlockbottom=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.value=i.bool();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.service.dm.v1.PlayerDanmakuBlockbottom)return i;let n=new u.bilibili.community.service.dm.v1.PlayerDanmakuBlockbottom;return i.value!=null&&(n.value=!!i.value),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.value=!1),i.value!=null&&i.hasOwnProperty("value")&&(o.value=i.value),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.service.dm.v1.PlayerDanmakuBlockbottom"},l}(),e.PlayerDanmakuBlockcolorful=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.value=i.bool();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.service.dm.v1.PlayerDanmakuBlockcolorful)return i;let n=new u.bilibili.community.service.dm.v1.PlayerDanmakuBlockcolorful;return i.value!=null&&(n.value=!!i.value),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.value=!1),i.value!=null&&i.hasOwnProperty("value")&&(o.value=i.value),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.service.dm.v1.PlayerDanmakuBlockcolorful"},l}(),e.PlayerDanmakuBlockrepeat=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.value=i.bool();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.service.dm.v1.PlayerDanmakuBlockrepeat)return i;let n=new u.bilibili.community.service.dm.v1.PlayerDanmakuBlockrepeat;return i.value!=null&&(n.value=!!i.value),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.value=!1),i.value!=null&&i.hasOwnProperty("value")&&(o.value=i.value),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.service.dm.v1.PlayerDanmakuBlockrepeat"},l}(),e.PlayerDanmakuBlockspecial=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.value=i.bool();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.service.dm.v1.PlayerDanmakuBlockspecial)return i;let n=new u.bilibili.community.service.dm.v1.PlayerDanmakuBlockspecial;return i.value!=null&&(n.value=!!i.value),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.value=!1),i.value!=null&&i.hasOwnProperty("value")&&(o.value=i.value),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.service.dm.v1.PlayerDanmakuBlockspecial"},l}(),e.PlayerDanmakuOpacity=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.value=i.float();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.service.dm.v1.PlayerDanmakuOpacity)return i;let n=new u.bilibili.community.service.dm.v1.PlayerDanmakuOpacity;return i.value!=null&&(n.value=Number(i.value)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.value=0),i.value!=null&&i.hasOwnProperty("value")&&(o.value=n.json&&!isFinite(i.value)?String(i.value):i.value),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.service.dm.v1.PlayerDanmakuOpacity"},l}(),e.PlayerDanmakuScalingfactor=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.value=i.float();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.service.dm.v1.PlayerDanmakuScalingfactor)return i;let n=new u.bilibili.community.service.dm.v1.PlayerDanmakuScalingfactor;return i.value!=null&&(n.value=Number(i.value)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.value=0),i.value!=null&&i.hasOwnProperty("value")&&(o.value=n.json&&!isFinite(i.value)?String(i.value):i.value),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.service.dm.v1.PlayerDanmakuScalingfactor"},l}(),e.PlayerDanmakuDomain=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.value=i.float();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.service.dm.v1.PlayerDanmakuDomain)return i;let n=new u.bilibili.community.service.dm.v1.PlayerDanmakuDomain;return i.value!=null&&(n.value=Number(i.value)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.value=0),i.value!=null&&i.hasOwnProperty("value")&&(o.value=n.json&&!isFinite(i.value)?String(i.value):i.value),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.service.dm.v1.PlayerDanmakuDomain"},l}(),e.PlayerDanmakuSpeed=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.value=i.int32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.service.dm.v1.PlayerDanmakuSpeed)return i;let n=new u.bilibili.community.service.dm.v1.PlayerDanmakuSpeed;return i.value!=null&&(n.value=i.value|0),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.value=0),i.value!=null&&i.hasOwnProperty("value")&&(o.value=i.value),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.service.dm.v1.PlayerDanmakuSpeed"},l}(),e.PlayerDanmakuEnableblocklist=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.value=i.bool();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.service.dm.v1.PlayerDanmakuEnableblocklist)return i;let n=new u.bilibili.community.service.dm.v1.PlayerDanmakuEnableblocklist;return i.value!=null&&(n.value=!!i.value),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.value=!1),i.value!=null&&i.hasOwnProperty("value")&&(o.value=i.value),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.service.dm.v1.PlayerDanmakuEnableblocklist"},l}(),e.InlinePlayerDanmakuSwitch=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.value=i.bool();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.service.dm.v1.InlinePlayerDanmakuSwitch)return i;let n=new u.bilibili.community.service.dm.v1.InlinePlayerDanmakuSwitch;return i.value!=null&&(n.value=!!i.value),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.value=!1),i.value!=null&&i.hasOwnProperty("value")&&(o.value=i.value),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.service.dm.v1.InlinePlayerDanmakuSwitch"},l}(),e.PlayerDanmakuSeniorModeSwitch=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.value=i.int32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.service.dm.v1.PlayerDanmakuSeniorModeSwitch)return i;let n=new u.bilibili.community.service.dm.v1.PlayerDanmakuSeniorModeSwitch;return i.value!=null&&(n.value=i.value|0),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.value=0),i.value!=null&&i.hasOwnProperty("value")&&(o.value=i.value),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.service.dm.v1.PlayerDanmakuSeniorModeSwitch"},l}(),e.PlayerDanmakuAiRecommendedLevelV2=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.value=i.int32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.service.dm.v1.PlayerDanmakuAiRecommendedLevelV2)return i;let n=new u.bilibili.community.service.dm.v1.PlayerDanmakuAiRecommendedLevelV2;return i.value!=null&&(n.value=i.value|0),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.value=0),i.value!=null&&i.hasOwnProperty("value")&&(o.value=i.value),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.service.dm.v1.PlayerDanmakuAiRecommendedLevelV2"},l}(),e.PlayerDanmakuEnableHerdDm=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.value=i.bool();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.service.dm.v1.PlayerDanmakuEnableHerdDm)return i;let n=new u.bilibili.community.service.dm.v1.PlayerDanmakuEnableHerdDm;return i.value!=null&&(n.value=!!i.value),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.value=!1),i.value!=null&&i.hasOwnProperty("value")&&(o.value=i.value),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.service.dm.v1.PlayerDanmakuEnableHerdDm"},l}(),e}(),c}(),p.govern=function(){let c={};return c.v1=function(){let e={};return e.Qoe=function(){function l(t,i,n){b.rpc.Service.call(this,t,i,n)}return(l.prototype=Object.create(b.rpc.Service.prototype)).constructor=l,l.create=function(i,n,o){return new this(i,n,o)},Object.defineProperty(l.prototype.qoeReport=function t(i,n){return this.rpcCall(t,u.bilibili.community.service.govern.v1.QoeReportReq,u.google.protobuf.Empty,i,n)},"name",{value:"QoeReport"}),l}(),e.QoeReportReq=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.id=i.int64();break}case 2:{a.scene=i.int64();break}case 3:{a.type=i.int32();break}case 4:{a.cancel=i.bool();break}case 5:{a.businessType=i.string();break}case 6:{a.oid=i.int64();break}case 7:{a.scoreResult=u.bilibili.community.service.govern.v1.QoeScoreResult.decode(i,i.uint32());break}case 8:{a.businessData=i.string();break}case 9:{a.result=u.bilibili.community.service.govern.v1.QoeResult.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.service.govern.v1.QoeReportReq)return i;let n=new u.bilibili.community.service.govern.v1.QoeReportReq;if(i.id!=null&&(r.Long?(n.id=r.Long.fromValue(i.id)).unsigned=!1:typeof i.id=="string"?n.id=parseInt(i.id,10):typeof i.id=="number"?n.id=i.id:typeof i.id=="object"&&(n.id=new r.LongBits(i.id.low>>>0,i.id.high>>>0).toNumber())),i.scene!=null&&(r.Long?(n.scene=r.Long.fromValue(i.scene)).unsigned=!1:typeof i.scene=="string"?n.scene=parseInt(i.scene,10):typeof i.scene=="number"?n.scene=i.scene:typeof i.scene=="object"&&(n.scene=new r.LongBits(i.scene.low>>>0,i.scene.high>>>0).toNumber())),i.type!=null&&(n.type=i.type|0),i.cancel!=null&&(n.cancel=!!i.cancel),i.businessType!=null&&(n.businessType=String(i.businessType)),i.oid!=null&&(r.Long?(n.oid=r.Long.fromValue(i.oid)).unsigned=!1:typeof i.oid=="string"?n.oid=parseInt(i.oid,10):typeof i.oid=="number"?n.oid=i.oid:typeof i.oid=="object"&&(n.oid=new r.LongBits(i.oid.low>>>0,i.oid.high>>>0).toNumber())),i.scoreResult!=null){if(typeof i.scoreResult!="object")throw TypeError(".bilibili.community.service.govern.v1.QoeReportReq.scoreResult: object expected");n.scoreResult=u.bilibili.community.service.govern.v1.QoeScoreResult.fromObject(i.scoreResult)}if(i.businessData!=null&&(n.businessData=String(i.businessData)),i.result!=null){if(typeof i.result!="object")throw TypeError(".bilibili.community.service.govern.v1.QoeReportReq.result: object expected");n.result=u.bilibili.community.service.govern.v1.QoeResult.fromObject(i.result)}return n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.id=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.id=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.scene=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.scene=n.longs===String?"0":0;if(o.type=0,o.cancel=!1,o.businessType="",r.Long){let a=new r.Long(0,0,!1);o.oid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.oid=n.longs===String?"0":0;o.scoreResult=null,o.businessData="",o.result=null}return i.id!=null&&i.hasOwnProperty("id")&&(typeof i.id=="number"?o.id=n.longs===String?String(i.id):i.id:o.id=n.longs===String?r.Long.prototype.toString.call(i.id):n.longs===Number?new r.LongBits(i.id.low>>>0,i.id.high>>>0).toNumber():i.id),i.scene!=null&&i.hasOwnProperty("scene")&&(typeof i.scene=="number"?o.scene=n.longs===String?String(i.scene):i.scene:o.scene=n.longs===String?r.Long.prototype.toString.call(i.scene):n.longs===Number?new r.LongBits(i.scene.low>>>0,i.scene.high>>>0).toNumber():i.scene),i.type!=null&&i.hasOwnProperty("type")&&(o.type=i.type),i.cancel!=null&&i.hasOwnProperty("cancel")&&(o.cancel=i.cancel),i.businessType!=null&&i.hasOwnProperty("businessType")&&(o.businessType=i.businessType),i.oid!=null&&i.hasOwnProperty("oid")&&(typeof i.oid=="number"?o.oid=n.longs===String?String(i.oid):i.oid:o.oid=n.longs===String?r.Long.prototype.toString.call(i.oid):n.longs===Number?new r.LongBits(i.oid.low>>>0,i.oid.high>>>0).toNumber():i.oid),i.scoreResult!=null&&i.hasOwnProperty("scoreResult")&&(o.scoreResult=u.bilibili.community.service.govern.v1.QoeScoreResult.toObject(i.scoreResult,n)),i.businessData!=null&&i.hasOwnProperty("businessData")&&(o.businessData=i.businessData),i.result!=null&&i.hasOwnProperty("result")&&(o.result=u.bilibili.community.service.govern.v1.QoeResult.toObject(i.result,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.service.govern.v1.QoeReportReq"},l}(),e.QoeScoreResult=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.score=i.float();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.service.govern.v1.QoeScoreResult)return i;let n=new u.bilibili.community.service.govern.v1.QoeScoreResult;return i.score!=null&&(n.score=Number(i.score)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.score=0),i.score!=null&&i.hasOwnProperty("score")&&(o.score=n.json&&!isFinite(i.score)?String(i.score):i.score),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.community.service.govern.v1.QoeScoreResult"},l}(),e.QoeResult=function(){function l(t){if(this.optionDescs=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.optionScore=i.float();break}case 2:{a.optionTitle=i.string();break}case 3:{a.optionDescs&&a.optionDescs.length||(a.optionDescs=[]),a.optionDescs.push(i.string());break}case 4:{a.optionCustomFeedback=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.community.service.govern.v1.QoeResult)return i;let n=new u.bilibili.community.service.govern.v1.QoeResult;if(i.optionScore!=null&&(n.optionScore=Number(i.optionScore)),i.optionTitle!=null&&(n.optionTitle=String(i.optionTitle)),i.optionDescs){if(!Array.isArray(i.optionDescs))throw TypeError(".bilibili.community.service.govern.v1.QoeResult.optionDescs: array expected");n.optionDescs=[];for(let o=0;o>>3){case 1:{a.width=i.double();break}case 2:{a.height=i.double();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.dagw.component.avatar.common.SizeSpec)return i;let n=new u.bilibili.dagw.component.avatar.common.SizeSpec;return i.width!=null&&(n.width=Number(i.width)),i.height!=null&&(n.height=Number(i.height)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.width=0,o.height=0),i.width!=null&&i.hasOwnProperty("width")&&(o.width=n.json&&!isFinite(i.width)?String(i.width):i.width),i.height!=null&&i.hasOwnProperty("height")&&(o.height=n.json&&!isFinite(i.height)?String(i.height):i.height),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.dagw.component.avatar.common.SizeSpec"},l}(),e.PositionSpec=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.coordinatePos=i.int32();break}case 2:{a.axisX=i.double();break}case 3:{a.axisY=i.double();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.dagw.component.avatar.common.PositionSpec)return i;let n=new u.bilibili.dagw.component.avatar.common.PositionSpec;switch(i.coordinatePos){default:if(typeof i.coordinatePos=="number"){n.coordinatePos=i.coordinatePos;break}break;case"INVALID_COORDINATE":case 0:n.coordinatePos=0;break;case"DEFAULT_COORDINATE":case 1:n.coordinatePos=1;break;case"CENTRAL_COORDINATE":case 2:n.coordinatePos=2;break}return i.axisX!=null&&(n.axisX=Number(i.axisX)),i.axisY!=null&&(n.axisY=Number(i.axisY)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.coordinatePos=n.enums===String?"INVALID_COORDINATE":0,o.axisX=0,o.axisY=0),i.coordinatePos!=null&&i.hasOwnProperty("coordinatePos")&&(o.coordinatePos=n.enums===String?u.bilibili.dagw.component.avatar.common.PositionSpec.CoordinatePos[i.coordinatePos]===void 0?i.coordinatePos:u.bilibili.dagw.component.avatar.common.PositionSpec.CoordinatePos[i.coordinatePos]:i.coordinatePos),i.axisX!=null&&i.hasOwnProperty("axisX")&&(o.axisX=n.json&&!isFinite(i.axisX)?String(i.axisX):i.axisX),i.axisY!=null&&i.hasOwnProperty("axisY")&&(o.axisY=n.json&&!isFinite(i.axisY)?String(i.axisY):i.axisY),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.dagw.component.avatar.common.PositionSpec"},l.CoordinatePos=function(){let t={},i=Object.create(t);return i[t[0]="INVALID_COORDINATE"]=0,i[t[1]="DEFAULT_COORDINATE"]=1,i[t[2]="CENTRAL_COORDINATE"]=2,i}(),l}(),e.BasicRenderSpec=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.opacity=i.double();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.dagw.component.avatar.common.BasicRenderSpec)return i;let n=new u.bilibili.dagw.component.avatar.common.BasicRenderSpec;return i.opacity!=null&&(n.opacity=Number(i.opacity)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.opacity=0),i.opacity!=null&&i.hasOwnProperty("opacity")&&(o.opacity=n.json&&!isFinite(i.opacity)?String(i.opacity):i.opacity),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.dagw.component.avatar.common.BasicRenderSpec"},l}(),e.LayerGeneralSpec=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.posSpec=u.bilibili.dagw.component.avatar.common.PositionSpec.decode(i,i.uint32());break}case 2:{a.sizeSpec=u.bilibili.dagw.component.avatar.common.SizeSpec.decode(i,i.uint32());break}case 3:{a.renderSpec=u.bilibili.dagw.component.avatar.common.BasicRenderSpec.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.dagw.component.avatar.common.LayerGeneralSpec)return i;let n=new u.bilibili.dagw.component.avatar.common.LayerGeneralSpec;if(i.posSpec!=null){if(typeof i.posSpec!="object")throw TypeError(".bilibili.dagw.component.avatar.common.LayerGeneralSpec.posSpec: object expected");n.posSpec=u.bilibili.dagw.component.avatar.common.PositionSpec.fromObject(i.posSpec)}if(i.sizeSpec!=null){if(typeof i.sizeSpec!="object")throw TypeError(".bilibili.dagw.component.avatar.common.LayerGeneralSpec.sizeSpec: object expected");n.sizeSpec=u.bilibili.dagw.component.avatar.common.SizeSpec.fromObject(i.sizeSpec)}if(i.renderSpec!=null){if(typeof i.renderSpec!="object")throw TypeError(".bilibili.dagw.component.avatar.common.LayerGeneralSpec.renderSpec: object expected");n.renderSpec=u.bilibili.dagw.component.avatar.common.BasicRenderSpec.fromObject(i.renderSpec)}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.posSpec=null,o.sizeSpec=null,o.renderSpec=null),i.posSpec!=null&&i.hasOwnProperty("posSpec")&&(o.posSpec=u.bilibili.dagw.component.avatar.common.PositionSpec.toObject(i.posSpec,n)),i.sizeSpec!=null&&i.hasOwnProperty("sizeSpec")&&(o.sizeSpec=u.bilibili.dagw.component.avatar.common.SizeSpec.toObject(i.sizeSpec,n)),i.renderSpec!=null&&i.hasOwnProperty("renderSpec")&&(o.renderSpec=u.bilibili.dagw.component.avatar.common.BasicRenderSpec.toObject(i.renderSpec,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.dagw.component.avatar.common.LayerGeneralSpec"},l}(),e.ResourceSource=function(){function l(i){if(i)for(let n=Object.keys(i),o=0;o>>3){case 1:{y.srcType=n.int32();break}case 2:{y.placeholder=n.int32();break}case 3:{y.remote=u.bilibili.dagw.component.avatar.common.RemoteRes.decode(n,n.uint32());break}case 4:{y.local=n.int32();break}case 5:{y.draw=u.bilibili.dagw.component.avatar.common.NativeDrawRes.decode(n,n.uint32());break}default:n.skipType(s&7);break}}return y},l.fromObject=function(n){if(n instanceof u.bilibili.dagw.component.avatar.common.ResourceSource)return n;let o=new u.bilibili.dagw.component.avatar.common.ResourceSource;switch(n.srcType){default:if(typeof n.srcType=="number"){o.srcType=n.srcType;break}break;case"SRC_TYPE_INVALID":case 0:o.srcType=0;break;case"SRC_TYPE_URL":case 1:o.srcType=1;break;case"SRC_TYPE_LOCAL":case 2:o.srcType=2;break;case"SRC_TYPE_DRAW":case 3:o.srcType=3;break}switch(n.placeholder){default:if(typeof n.placeholder=="number"){o.placeholder=n.placeholder;break}break;case"LOCAL_RES_INVALID":case 0:o.placeholder=0;break;case"LOCAL_RES_ICON_VIP":case 1:o.placeholder=1;break;case"LOCAL_RES_ICON_SMALL_VIP":case 2:o.placeholder=2;break;case"LOCAL_RES_ICON_PERSONAL_VERIFY":case 3:o.placeholder=3;break;case"LOCAL_RES_ICON_ENTERPRISE_VERIFY":case 4:o.placeholder=4;break;case"LOCAL_RES_ICON_NFT_MAINLAND":case 5:o.placeholder=5;break;case"LOCAL_RES_DEFAULT_AVATAR":case 6:o.placeholder=6;break;case"LOCAL_RES_FOLLOW_ICON":case 7:o.placeholder=7;break}if(n.remote!=null){if(typeof n.remote!="object")throw TypeError(".bilibili.dagw.component.avatar.common.ResourceSource.remote: object expected");o.remote=u.bilibili.dagw.component.avatar.common.RemoteRes.fromObject(n.remote)}switch(n.local){default:if(typeof n.local=="number"){o.local=n.local;break}break;case"LOCAL_RES_INVALID":case 0:o.local=0;break;case"LOCAL_RES_ICON_VIP":case 1:o.local=1;break;case"LOCAL_RES_ICON_SMALL_VIP":case 2:o.local=2;break;case"LOCAL_RES_ICON_PERSONAL_VERIFY":case 3:o.local=3;break;case"LOCAL_RES_ICON_ENTERPRISE_VERIFY":case 4:o.local=4;break;case"LOCAL_RES_ICON_NFT_MAINLAND":case 5:o.local=5;break;case"LOCAL_RES_DEFAULT_AVATAR":case 6:o.local=6;break;case"LOCAL_RES_FOLLOW_ICON":case 7:o.local=7;break}if(n.draw!=null){if(typeof n.draw!="object")throw TypeError(".bilibili.dagw.component.avatar.common.ResourceSource.draw: object expected");o.draw=u.bilibili.dagw.component.avatar.common.NativeDrawRes.fromObject(n.draw)}return o},l.toObject=function(n,o){o||(o={});let a={};return o.defaults&&(a.srcType=o.enums===String?"SRC_TYPE_INVALID":0,a.placeholder=o.enums===String?"LOCAL_RES_INVALID":0),n.srcType!=null&&n.hasOwnProperty("srcType")&&(a.srcType=o.enums===String?u.bilibili.dagw.component.avatar.common.ResourceSource.SourceType[n.srcType]===void 0?n.srcType:u.bilibili.dagw.component.avatar.common.ResourceSource.SourceType[n.srcType]:n.srcType),n.placeholder!=null&&n.hasOwnProperty("placeholder")&&(a.placeholder=o.enums===String?u.bilibili.dagw.component.avatar.common.ResourceSource.LocalRes[n.placeholder]===void 0?n.placeholder:u.bilibili.dagw.component.avatar.common.ResourceSource.LocalRes[n.placeholder]:n.placeholder),n.remote!=null&&n.hasOwnProperty("remote")&&(a.remote=u.bilibili.dagw.component.avatar.common.RemoteRes.toObject(n.remote,o),o.oneofs&&(a.res="remote")),n.local!=null&&n.hasOwnProperty("local")&&(a.local=o.enums===String?u.bilibili.dagw.component.avatar.common.ResourceSource.LocalRes[n.local]===void 0?n.local:u.bilibili.dagw.component.avatar.common.ResourceSource.LocalRes[n.local]:n.local,o.oneofs&&(a.res="local")),n.draw!=null&&n.hasOwnProperty("draw")&&(a.draw=u.bilibili.dagw.component.avatar.common.NativeDrawRes.toObject(n.draw,o),o.oneofs&&(a.res="draw")),a},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/bilibili.dagw.component.avatar.common.ResourceSource"},l.SourceType=function(){let i={},n=Object.create(i);return n[i[0]="SRC_TYPE_INVALID"]=0,n[i[1]="SRC_TYPE_URL"]=1,n[i[2]="SRC_TYPE_LOCAL"]=2,n[i[3]="SRC_TYPE_DRAW"]=3,n}(),l.LocalRes=function(){let i={},n=Object.create(i);return n[i[0]="LOCAL_RES_INVALID"]=0,n[i[1]="LOCAL_RES_ICON_VIP"]=1,n[i[2]="LOCAL_RES_ICON_SMALL_VIP"]=2,n[i[3]="LOCAL_RES_ICON_PERSONAL_VERIFY"]=3,n[i[4]="LOCAL_RES_ICON_ENTERPRISE_VERIFY"]=4,n[i[5]="LOCAL_RES_ICON_NFT_MAINLAND"]=5,n[i[6]="LOCAL_RES_DEFAULT_AVATAR"]=6,n[i[7]="LOCAL_RES_FOLLOW_ICON"]=7,n}(),l}(),e.MaskProperty=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.generalSpec=u.bilibili.dagw.component.avatar.common.LayerGeneralSpec.decode(i,i.uint32());break}case 2:{a.maskSrc=u.bilibili.dagw.component.avatar.common.ResourceSource.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.dagw.component.avatar.common.MaskProperty)return i;let n=new u.bilibili.dagw.component.avatar.common.MaskProperty;if(i.generalSpec!=null){if(typeof i.generalSpec!="object")throw TypeError(".bilibili.dagw.component.avatar.common.MaskProperty.generalSpec: object expected");n.generalSpec=u.bilibili.dagw.component.avatar.common.LayerGeneralSpec.fromObject(i.generalSpec)}if(i.maskSrc!=null){if(typeof i.maskSrc!="object")throw TypeError(".bilibili.dagw.component.avatar.common.MaskProperty.maskSrc: object expected");n.maskSrc=u.bilibili.dagw.component.avatar.common.ResourceSource.fromObject(i.maskSrc)}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.generalSpec=null,o.maskSrc=null),i.generalSpec!=null&&i.hasOwnProperty("generalSpec")&&(o.generalSpec=u.bilibili.dagw.component.avatar.common.LayerGeneralSpec.toObject(i.generalSpec,n)),i.maskSrc!=null&&i.hasOwnProperty("maskSrc")&&(o.maskSrc=u.bilibili.dagw.component.avatar.common.ResourceSource.toObject(i.maskSrc,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.dagw.component.avatar.common.MaskProperty"},l}(),e.RemoteRes=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.url=i.string();break}case 2:{a.bfsStyle=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.dagw.component.avatar.common.RemoteRes)return i;let n=new u.bilibili.dagw.component.avatar.common.RemoteRes;return i.url!=null&&(n.url=String(i.url)),i.bfsStyle!=null&&(n.bfsStyle=String(i.bfsStyle)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.url="",o.bfsStyle=""),i.url!=null&&i.hasOwnProperty("url")&&(o.url=i.url),i.bfsStyle!=null&&i.hasOwnProperty("bfsStyle")&&(o.bfsStyle=i.bfsStyle),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.dagw.component.avatar.common.RemoteRes"},l}(),e.NativeDrawRes=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.drawType=i.int32();break}case 2:{a.fillMode=i.int32();break}case 3:{a.colorConfig=u.bilibili.dagw.component.avatar.common.ColorConfig.decode(i,i.uint32());break}case 4:{a.edgeWeight=i.double();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.dagw.component.avatar.common.NativeDrawRes)return i;let n=new u.bilibili.dagw.component.avatar.common.NativeDrawRes;switch(i.drawType){default:if(typeof i.drawType=="number"){n.drawType=i.drawType;break}break;case"DRAW_INVALID":case 0:n.drawType=0;break;case"DRAW_CIRCLE":case 1:n.drawType=1;break;case"DRAW_RECTANGLE":case 2:n.drawType=2;break}switch(i.fillMode){default:if(typeof i.fillMode=="number"){n.fillMode=i.fillMode;break}break;case"FILL_MODE_INVALID":case 0:n.fillMode=0;break;case"FILL_MODE_INTERNAL":case 1:n.fillMode=1;break;case"FILL_MODE_EDGE":case 2:n.fillMode=2;break}if(i.colorConfig!=null){if(typeof i.colorConfig!="object")throw TypeError(".bilibili.dagw.component.avatar.common.NativeDrawRes.colorConfig: object expected");n.colorConfig=u.bilibili.dagw.component.avatar.common.ColorConfig.fromObject(i.colorConfig)}return i.edgeWeight!=null&&(n.edgeWeight=Number(i.edgeWeight)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.drawType=n.enums===String?"DRAW_INVALID":0,o.fillMode=n.enums===String?"FILL_MODE_INVALID":0,o.colorConfig=null,o.edgeWeight=0),i.drawType!=null&&i.hasOwnProperty("drawType")&&(o.drawType=n.enums===String?u.bilibili.dagw.component.avatar.common.NativeDrawRes.NativeDraw[i.drawType]===void 0?i.drawType:u.bilibili.dagw.component.avatar.common.NativeDrawRes.NativeDraw[i.drawType]:i.drawType),i.fillMode!=null&&i.hasOwnProperty("fillMode")&&(o.fillMode=n.enums===String?u.bilibili.dagw.component.avatar.common.NativeDrawRes.FillMode[i.fillMode]===void 0?i.fillMode:u.bilibili.dagw.component.avatar.common.NativeDrawRes.FillMode[i.fillMode]:i.fillMode),i.colorConfig!=null&&i.hasOwnProperty("colorConfig")&&(o.colorConfig=u.bilibili.dagw.component.avatar.common.ColorConfig.toObject(i.colorConfig,n)),i.edgeWeight!=null&&i.hasOwnProperty("edgeWeight")&&(o.edgeWeight=n.json&&!isFinite(i.edgeWeight)?String(i.edgeWeight):i.edgeWeight),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.dagw.component.avatar.common.NativeDrawRes"},l.NativeDraw=function(){let t={},i=Object.create(t);return i[t[0]="DRAW_INVALID"]=0,i[t[1]="DRAW_CIRCLE"]=1,i[t[2]="DRAW_RECTANGLE"]=2,i}(),l.FillMode=function(){let t={},i=Object.create(t);return i[t[0]="FILL_MODE_INVALID"]=0,i[t[1]="FILL_MODE_INTERNAL"]=1,i[t[2]="FILL_MODE_EDGE"]=2,i}(),l}(),e.ColorConfig=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.isDarkModeAware=i.bool();break}case 2:{a.day=u.bilibili.dagw.component.avatar.common.ColorSpec.decode(i,i.uint32());break}case 3:{a.night=u.bilibili.dagw.component.avatar.common.ColorSpec.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.dagw.component.avatar.common.ColorConfig)return i;let n=new u.bilibili.dagw.component.avatar.common.ColorConfig;if(i.isDarkModeAware!=null&&(n.isDarkModeAware=!!i.isDarkModeAware),i.day!=null){if(typeof i.day!="object")throw TypeError(".bilibili.dagw.component.avatar.common.ColorConfig.day: object expected");n.day=u.bilibili.dagw.component.avatar.common.ColorSpec.fromObject(i.day)}if(i.night!=null){if(typeof i.night!="object")throw TypeError(".bilibili.dagw.component.avatar.common.ColorConfig.night: object expected");n.night=u.bilibili.dagw.component.avatar.common.ColorSpec.fromObject(i.night)}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.isDarkModeAware=!1,o.day=null,o.night=null),i.isDarkModeAware!=null&&i.hasOwnProperty("isDarkModeAware")&&(o.isDarkModeAware=i.isDarkModeAware),i.day!=null&&i.hasOwnProperty("day")&&(o.day=u.bilibili.dagw.component.avatar.common.ColorSpec.toObject(i.day,n)),i.night!=null&&i.hasOwnProperty("night")&&(o.night=u.bilibili.dagw.component.avatar.common.ColorSpec.toObject(i.night,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.dagw.component.avatar.common.ColorConfig"},l}(),e.ColorSpec=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.argb=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.dagw.component.avatar.common.ColorSpec)return i;let n=new u.bilibili.dagw.component.avatar.common.ColorSpec;return i.argb!=null&&(n.argb=String(i.argb)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.argb=""),i.argb!=null&&i.hasOwnProperty("argb")&&(o.argb=i.argb),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.dagw.component.avatar.common.ColorSpec"},l}(),e}(),c.v1=function(){let e={};return e.AvatarItem=function(){function l(t){if(this.layers=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.containerSize=u.bilibili.dagw.component.avatar.common.SizeSpec.decode(i,i.uint32());break}case 2:{a.layers&&a.layers.length||(a.layers=[]),a.layers.push(u.bilibili.dagw.component.avatar.v1.LayerGroup.decode(i,i.uint32()));break}case 3:{a.fallbackLayers=u.bilibili.dagw.component.avatar.v1.LayerGroup.decode(i,i.uint32());break}case 4:{a.mid=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.dagw.component.avatar.v1.AvatarItem)return i;let n=new u.bilibili.dagw.component.avatar.v1.AvatarItem;if(i.containerSize!=null){if(typeof i.containerSize!="object")throw TypeError(".bilibili.dagw.component.avatar.v1.AvatarItem.containerSize: object expected");n.containerSize=u.bilibili.dagw.component.avatar.common.SizeSpec.fromObject(i.containerSize)}if(i.layers){if(!Array.isArray(i.layers))throw TypeError(".bilibili.dagw.component.avatar.v1.AvatarItem.layers: array expected");n.layers=[];for(let o=0;o>>0,i.mid.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if((n.arrays||n.defaults)&&(o.layers=[]),n.defaults)if(o.containerSize=null,o.fallbackLayers=null,r.Long){let a=new r.Long(0,0,!1);o.mid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.mid=n.longs===String?"0":0;if(i.containerSize!=null&&i.hasOwnProperty("containerSize")&&(o.containerSize=u.bilibili.dagw.component.avatar.common.SizeSpec.toObject(i.containerSize,n)),i.layers&&i.layers.length){o.layers=[];for(let a=0;a>>0,i.mid.high>>>0).toNumber():i.mid),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.dagw.component.avatar.v1.AvatarItem"},l}(),e.LayerGroup=function(){function l(t){if(this.layers=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.groupId=i.string();break}case 2:{a.layers&&a.layers.length||(a.layers=[]),a.layers.push(u.bilibili.dagw.component.avatar.v1.Layer.decode(i,i.uint32()));break}case 3:{a.groupMask=u.bilibili.dagw.component.avatar.common.MaskProperty.decode(i,i.uint32());break}case 4:{a.isCriticalGroup=i.bool();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.dagw.component.avatar.v1.LayerGroup)return i;let n=new u.bilibili.dagw.component.avatar.v1.LayerGroup;if(i.groupId!=null&&(n.groupId=String(i.groupId)),i.layers){if(!Array.isArray(i.layers))throw TypeError(".bilibili.dagw.component.avatar.v1.LayerGroup.layers: array expected");n.layers=[];for(let o=0;o>>3){case 1:{a.layerId=i.string();break}case 2:{a.visible=i.bool();break}case 3:{a.generalSpec=u.bilibili.dagw.component.avatar.common.LayerGeneralSpec.decode(i,i.uint32());break}case 4:{a.layerConfig=u.bilibili.dagw.component.avatar.v1.LayerConfig.decode(i,i.uint32());break}case 5:{a.resource=u.bilibili.dagw.component.avatar.v1.BasicLayerResource.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.dagw.component.avatar.v1.Layer)return i;let n=new u.bilibili.dagw.component.avatar.v1.Layer;if(i.layerId!=null&&(n.layerId=String(i.layerId)),i.visible!=null&&(n.visible=!!i.visible),i.generalSpec!=null){if(typeof i.generalSpec!="object")throw TypeError(".bilibili.dagw.component.avatar.v1.Layer.generalSpec: object expected");n.generalSpec=u.bilibili.dagw.component.avatar.common.LayerGeneralSpec.fromObject(i.generalSpec)}if(i.layerConfig!=null){if(typeof i.layerConfig!="object")throw TypeError(".bilibili.dagw.component.avatar.v1.Layer.layerConfig: object expected");n.layerConfig=u.bilibili.dagw.component.avatar.v1.LayerConfig.fromObject(i.layerConfig)}if(i.resource!=null){if(typeof i.resource!="object")throw TypeError(".bilibili.dagw.component.avatar.v1.Layer.resource: object expected");n.resource=u.bilibili.dagw.component.avatar.v1.BasicLayerResource.fromObject(i.resource)}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.layerId="",o.visible=!1,o.generalSpec=null,o.layerConfig=null,o.resource=null),i.layerId!=null&&i.hasOwnProperty("layerId")&&(o.layerId=i.layerId),i.visible!=null&&i.hasOwnProperty("visible")&&(o.visible=i.visible),i.generalSpec!=null&&i.hasOwnProperty("generalSpec")&&(o.generalSpec=u.bilibili.dagw.component.avatar.common.LayerGeneralSpec.toObject(i.generalSpec,n)),i.layerConfig!=null&&i.hasOwnProperty("layerConfig")&&(o.layerConfig=u.bilibili.dagw.component.avatar.v1.LayerConfig.toObject(i.layerConfig,n)),i.resource!=null&&i.hasOwnProperty("resource")&&(o.resource=u.bilibili.dagw.component.avatar.v1.BasicLayerResource.toObject(i.resource,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.dagw.component.avatar.v1.Layer"},l}(),e.BasicLayerResource=function(){function l(i){if(i)for(let n=Object.keys(i),o=0;o>>3){case 1:{y.resType=n.int32();break}case 2:{y.resImage=u.bilibili.dagw.component.avatar.v1.ResImage.decode(n,n.uint32());break}case 3:{y.resAnimation=u.bilibili.dagw.component.avatar.v1.ResAnimation.decode(n,n.uint32());break}case 4:{y.resNativeDraw=u.bilibili.dagw.component.avatar.v1.ResNativeDraw.decode(n,n.uint32());break}default:n.skipType(s&7);break}}return y},l.fromObject=function(n){if(n instanceof u.bilibili.dagw.component.avatar.v1.BasicLayerResource)return n;let o=new u.bilibili.dagw.component.avatar.v1.BasicLayerResource;switch(n.resType){default:if(typeof n.resType=="number"){o.resType=n.resType;break}break;case"RES_TYPE_INVALID":case 0:o.resType=0;break;case"RES_TYPE_PLUGIN":case 1:o.resType=1;break;case"RES_TYPE_EMPTY":case 2:o.resType=2;break;case"RES_TYPE_IMAGE":case 3:o.resType=3;break;case"RES_TYPE_ANIMATION":case 4:o.resType=4;break;case"RES_TYPE_NATIVE_DRAW":case 5:o.resType=5;break}if(n.resImage!=null){if(typeof n.resImage!="object")throw TypeError(".bilibili.dagw.component.avatar.v1.BasicLayerResource.resImage: object expected");o.resImage=u.bilibili.dagw.component.avatar.v1.ResImage.fromObject(n.resImage)}if(n.resAnimation!=null){if(typeof n.resAnimation!="object")throw TypeError(".bilibili.dagw.component.avatar.v1.BasicLayerResource.resAnimation: object expected");o.resAnimation=u.bilibili.dagw.component.avatar.v1.ResAnimation.fromObject(n.resAnimation)}if(n.resNativeDraw!=null){if(typeof n.resNativeDraw!="object")throw TypeError(".bilibili.dagw.component.avatar.v1.BasicLayerResource.resNativeDraw: object expected");o.resNativeDraw=u.bilibili.dagw.component.avatar.v1.ResNativeDraw.fromObject(n.resNativeDraw)}return o},l.toObject=function(n,o){o||(o={});let a={};return o.defaults&&(a.resType=o.enums===String?"RES_TYPE_INVALID":0),n.resType!=null&&n.hasOwnProperty("resType")&&(a.resType=o.enums===String?u.bilibili.dagw.component.avatar.v1.BasicLayerResource.ResType[n.resType]===void 0?n.resType:u.bilibili.dagw.component.avatar.v1.BasicLayerResource.ResType[n.resType]:n.resType),n.resImage!=null&&n.hasOwnProperty("resImage")&&(a.resImage=u.bilibili.dagw.component.avatar.v1.ResImage.toObject(n.resImage,o),o.oneofs&&(a.payload="resImage")),n.resAnimation!=null&&n.hasOwnProperty("resAnimation")&&(a.resAnimation=u.bilibili.dagw.component.avatar.v1.ResAnimation.toObject(n.resAnimation,o),o.oneofs&&(a.payload="resAnimation")),n.resNativeDraw!=null&&n.hasOwnProperty("resNativeDraw")&&(a.resNativeDraw=u.bilibili.dagw.component.avatar.v1.ResNativeDraw.toObject(n.resNativeDraw,o),o.oneofs&&(a.payload="resNativeDraw")),a},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/bilibili.dagw.component.avatar.v1.BasicLayerResource"},l.ResType=function(){let i={},n=Object.create(i);return n[i[0]="RES_TYPE_INVALID"]=0,n[i[1]="RES_TYPE_PLUGIN"]=1,n[i[2]="RES_TYPE_EMPTY"]=2,n[i[3]="RES_TYPE_IMAGE"]=3,n[i[4]="RES_TYPE_ANIMATION"]=4,n[i[5]="RES_TYPE_NATIVE_DRAW"]=5,n}(),l}(),e.LayerConfig=function(){function l(t){if(this.tags={},t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.tags===r.emptyObject&&(a.tags={});let g=i.uint32()+i.pos;for(y="",s=null;i.pos>>3){case 1:y=i.string();break;case 2:s=u.bilibili.dagw.component.avatar.v1.LayerTagConfig.decode(i,i.uint32());break;default:i.skipType(S&7);break}}a.tags[y]=s;break}case 2:{a.isCritical=i.bool();break}case 3:{a.allowOverPaint=i.bool();break}case 4:{a.layerMask=u.bilibili.dagw.component.avatar.common.MaskProperty.decode(i,i.uint32());break}default:i.skipType(v&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.dagw.component.avatar.v1.LayerConfig)return i;let n=new u.bilibili.dagw.component.avatar.v1.LayerConfig;if(i.tags){if(typeof i.tags!="object")throw TypeError(".bilibili.dagw.component.avatar.v1.LayerConfig.tags: object expected");n.tags={};for(let o=Object.keys(i.tags),a=0;a>>3){case 1:{y.configType=n.int32();break}case 2:{y.generalConfig=u.bilibili.dagw.component.avatar.v1.GeneralConfig.decode(n,n.uint32());break}case 3:{y.gyroConfig=u.bilibili.dagw.component.avatar.v1.plugin.GyroConfig.decode(n,n.uint32());break}case 4:{y.commentDoubleClickConfig=u.bilibili.dagw.component.avatar.v1.plugin.CommentDoubleClickConfig.decode(n,n.uint32());break}case 5:{y.liveAnimeConfig=u.bilibili.dagw.component.avatar.v1.plugin.LiveAnimeConfig.decode(n,n.uint32());break}case 6:{y.webLiveAnimeConfig=u.bilibili.dagw.component.avatar.v1.plugin.WebLiveAnimeConfig.decode(n,n.uint32());break}case 7:{y.followIconConfig=u.bilibili.dagw.component.avatar.v1.plugin.FollowIconConfig.decode(n,n.uint32());break}default:n.skipType(s&7);break}}return y},l.fromObject=function(n){if(n instanceof u.bilibili.dagw.component.avatar.v1.LayerTagConfig)return n;let o=new u.bilibili.dagw.component.avatar.v1.LayerTagConfig;switch(n.configType){default:if(typeof n.configType=="number"){o.configType=n.configType;break}break;case"TAG_CFG_INVALID":case 0:o.configType=0;break;case"TAG_CFG_GENERAL":case 1:o.configType=1;break;case"TAG_CFG_GYRO":case 2:o.configType=2;break;case"TAG_CFG_COMMENT_DOUBLE_CLICK":case 3:o.configType=3;break;case"TAG_CFG_IN_LIVE":case 4:o.configType=4;break;case"TAG_CFG_WEB_IN_LIVE":case 5:o.configType=5;break;case"TAG_CFG_FOLLOW_ICON":case 6:o.configType=6;break}if(n.generalConfig!=null){if(typeof n.generalConfig!="object")throw TypeError(".bilibili.dagw.component.avatar.v1.LayerTagConfig.generalConfig: object expected");o.generalConfig=u.bilibili.dagw.component.avatar.v1.GeneralConfig.fromObject(n.generalConfig)}if(n.gyroConfig!=null){if(typeof n.gyroConfig!="object")throw TypeError(".bilibili.dagw.component.avatar.v1.LayerTagConfig.gyroConfig: object expected");o.gyroConfig=u.bilibili.dagw.component.avatar.v1.plugin.GyroConfig.fromObject(n.gyroConfig)}if(n.commentDoubleClickConfig!=null){if(typeof n.commentDoubleClickConfig!="object")throw TypeError(".bilibili.dagw.component.avatar.v1.LayerTagConfig.commentDoubleClickConfig: object expected");o.commentDoubleClickConfig=u.bilibili.dagw.component.avatar.v1.plugin.CommentDoubleClickConfig.fromObject(n.commentDoubleClickConfig)}if(n.liveAnimeConfig!=null){if(typeof n.liveAnimeConfig!="object")throw TypeError(".bilibili.dagw.component.avatar.v1.LayerTagConfig.liveAnimeConfig: object expected");o.liveAnimeConfig=u.bilibili.dagw.component.avatar.v1.plugin.LiveAnimeConfig.fromObject(n.liveAnimeConfig)}if(n.webLiveAnimeConfig!=null){if(typeof n.webLiveAnimeConfig!="object")throw TypeError(".bilibili.dagw.component.avatar.v1.LayerTagConfig.webLiveAnimeConfig: object expected");o.webLiveAnimeConfig=u.bilibili.dagw.component.avatar.v1.plugin.WebLiveAnimeConfig.fromObject(n.webLiveAnimeConfig)}if(n.followIconConfig!=null){if(typeof n.followIconConfig!="object")throw TypeError(".bilibili.dagw.component.avatar.v1.LayerTagConfig.followIconConfig: object expected");o.followIconConfig=u.bilibili.dagw.component.avatar.v1.plugin.FollowIconConfig.fromObject(n.followIconConfig)}return o},l.toObject=function(n,o){o||(o={});let a={};return o.defaults&&(a.configType=o.enums===String?"TAG_CFG_INVALID":0),n.configType!=null&&n.hasOwnProperty("configType")&&(a.configType=o.enums===String?u.bilibili.dagw.component.avatar.v1.LayerTagConfig.TagConfigType[n.configType]===void 0?n.configType:u.bilibili.dagw.component.avatar.v1.LayerTagConfig.TagConfigType[n.configType]:n.configType),n.generalConfig!=null&&n.hasOwnProperty("generalConfig")&&(a.generalConfig=u.bilibili.dagw.component.avatar.v1.GeneralConfig.toObject(n.generalConfig,o),o.oneofs&&(a.config="generalConfig")),n.gyroConfig!=null&&n.hasOwnProperty("gyroConfig")&&(a.gyroConfig=u.bilibili.dagw.component.avatar.v1.plugin.GyroConfig.toObject(n.gyroConfig,o),o.oneofs&&(a.config="gyroConfig")),n.commentDoubleClickConfig!=null&&n.hasOwnProperty("commentDoubleClickConfig")&&(a.commentDoubleClickConfig=u.bilibili.dagw.component.avatar.v1.plugin.CommentDoubleClickConfig.toObject(n.commentDoubleClickConfig,o),o.oneofs&&(a.config="commentDoubleClickConfig")),n.liveAnimeConfig!=null&&n.hasOwnProperty("liveAnimeConfig")&&(a.liveAnimeConfig=u.bilibili.dagw.component.avatar.v1.plugin.LiveAnimeConfig.toObject(n.liveAnimeConfig,o),o.oneofs&&(a.config="liveAnimeConfig")),n.webLiveAnimeConfig!=null&&n.hasOwnProperty("webLiveAnimeConfig")&&(a.webLiveAnimeConfig=u.bilibili.dagw.component.avatar.v1.plugin.WebLiveAnimeConfig.toObject(n.webLiveAnimeConfig,o),o.oneofs&&(a.config="webLiveAnimeConfig")),n.followIconConfig!=null&&n.hasOwnProperty("followIconConfig")&&(a.followIconConfig=u.bilibili.dagw.component.avatar.v1.plugin.FollowIconConfig.toObject(n.followIconConfig,o),o.oneofs&&(a.config="followIconConfig")),a},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/bilibili.dagw.component.avatar.v1.LayerTagConfig"},l.TagConfigType=function(){let i={},n=Object.create(i);return n[i[0]="TAG_CFG_INVALID"]=0,n[i[1]="TAG_CFG_GENERAL"]=1,n[i[2]="TAG_CFG_GYRO"]=2,n[i[3]="TAG_CFG_COMMENT_DOUBLE_CLICK"]=3,n[i[4]="TAG_CFG_IN_LIVE"]=4,n[i[5]="TAG_CFG_WEB_IN_LIVE"]=5,n[i[6]="TAG_CFG_FOLLOW_ICON"]=6,n}(),l}(),e.GeneralConfig=function(){function l(t){if(this.webCssStyle={},t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.webCssStyle===r.emptyObject&&(a.webCssStyle={});let g=i.uint32()+i.pos;for(y="",s="";i.pos>>3){case 1:y=i.string();break;case 2:s=i.string();break;default:i.skipType(S&7);break}}a.webCssStyle[y]=s;break}default:i.skipType(v&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.dagw.component.avatar.v1.GeneralConfig)return i;let n=new u.bilibili.dagw.component.avatar.v1.GeneralConfig;if(i.webCssStyle){if(typeof i.webCssStyle!="object")throw TypeError(".bilibili.dagw.component.avatar.v1.GeneralConfig.webCssStyle: object expected");n.webCssStyle={};for(let o=Object.keys(i.webCssStyle),a=0;a>>3){case 1:{a.imageSrc=u.bilibili.dagw.component.avatar.common.ResourceSource.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.dagw.component.avatar.v1.ResImage)return i;let n=new u.bilibili.dagw.component.avatar.v1.ResImage;if(i.imageSrc!=null){if(typeof i.imageSrc!="object")throw TypeError(".bilibili.dagw.component.avatar.v1.ResImage.imageSrc: object expected");n.imageSrc=u.bilibili.dagw.component.avatar.common.ResourceSource.fromObject(i.imageSrc)}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.imageSrc=null),i.imageSrc!=null&&i.hasOwnProperty("imageSrc")&&(o.imageSrc=u.bilibili.dagw.component.avatar.common.ResourceSource.toObject(i.imageSrc,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.dagw.component.avatar.v1.ResImage"},l}(),e.ResAnimation=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.webpSrc=u.bilibili.dagw.component.avatar.common.ResourceSource.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.dagw.component.avatar.v1.ResAnimation)return i;let n=new u.bilibili.dagw.component.avatar.v1.ResAnimation;if(i.webpSrc!=null){if(typeof i.webpSrc!="object")throw TypeError(".bilibili.dagw.component.avatar.v1.ResAnimation.webpSrc: object expected");n.webpSrc=u.bilibili.dagw.component.avatar.common.ResourceSource.fromObject(i.webpSrc)}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.webpSrc=null),i.webpSrc!=null&&i.hasOwnProperty("webpSrc")&&(o.webpSrc=u.bilibili.dagw.component.avatar.common.ResourceSource.toObject(i.webpSrc,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.dagw.component.avatar.v1.ResAnimation"},l}(),e.ResNativeDraw=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.drawSrc=u.bilibili.dagw.component.avatar.common.ResourceSource.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.dagw.component.avatar.v1.ResNativeDraw)return i;let n=new u.bilibili.dagw.component.avatar.v1.ResNativeDraw;if(i.drawSrc!=null){if(typeof i.drawSrc!="object")throw TypeError(".bilibili.dagw.component.avatar.v1.ResNativeDraw.drawSrc: object expected");n.drawSrc=u.bilibili.dagw.component.avatar.common.ResourceSource.fromObject(i.drawSrc)}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.drawSrc=null),i.drawSrc!=null&&i.hasOwnProperty("drawSrc")&&(o.drawSrc=u.bilibili.dagw.component.avatar.common.ResourceSource.toObject(i.drawSrc,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.dagw.component.avatar.v1.ResNativeDraw"},l}(),e.plugin=function(){let l={};return l.CommentDoubleClickConfig=function(){function t(i){if(i)for(let n=Object.keys(i),o=0;o>>3){case 1:{y.interaction=u.bilibili.dagw.component.avatar.v1.plugin.Interaction.decode(n,n.uint32());break}case 2:{y.animationScale=n.double();break}default:n.skipType(s&7);break}}return y},t.fromObject=function(n){if(n instanceof u.bilibili.dagw.component.avatar.v1.plugin.CommentDoubleClickConfig)return n;let o=new u.bilibili.dagw.component.avatar.v1.plugin.CommentDoubleClickConfig;if(n.interaction!=null){if(typeof n.interaction!="object")throw TypeError(".bilibili.dagw.component.avatar.v1.plugin.CommentDoubleClickConfig.interaction: object expected");o.interaction=u.bilibili.dagw.component.avatar.v1.plugin.Interaction.fromObject(n.interaction)}return n.animationScale!=null&&(o.animationScale=Number(n.animationScale)),o},t.toObject=function(n,o){o||(o={});let a={};return o.defaults&&(a.interaction=null,a.animationScale=0),n.interaction!=null&&n.hasOwnProperty("interaction")&&(a.interaction=u.bilibili.dagw.component.avatar.v1.plugin.Interaction.toObject(n.interaction,o)),n.animationScale!=null&&n.hasOwnProperty("animationScale")&&(a.animationScale=o.json&&!isFinite(n.animationScale)?String(n.animationScale):n.animationScale),a},t.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},t.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/bilibili.dagw.component.avatar.v1.plugin.CommentDoubleClickConfig"},t}(),l.Interaction=function(){function t(i){if(i)for(let n=Object.keys(i),o=0;o>>3){case 1:{y.nftId=n.string();break}case 2:{y.enabled=n.bool();break}case 3:{y.itype=n.string();break}case 4:{y.metadataUrl=n.string();break}default:n.skipType(s&7);break}}return y},t.fromObject=function(n){if(n instanceof u.bilibili.dagw.component.avatar.v1.plugin.Interaction)return n;let o=new u.bilibili.dagw.component.avatar.v1.plugin.Interaction;return n.nftId!=null&&(o.nftId=String(n.nftId)),n.enabled!=null&&(o.enabled=!!n.enabled),n.itype!=null&&(o.itype=String(n.itype)),n.metadataUrl!=null&&(o.metadataUrl=String(n.metadataUrl)),o},t.toObject=function(n,o){o||(o={});let a={};return o.defaults&&(a.nftId="",a.enabled=!1,a.itype="",a.metadataUrl=""),n.nftId!=null&&n.hasOwnProperty("nftId")&&(a.nftId=n.nftId),n.enabled!=null&&n.hasOwnProperty("enabled")&&(a.enabled=n.enabled),n.itype!=null&&n.hasOwnProperty("itype")&&(a.itype=n.itype),n.metadataUrl!=null&&n.hasOwnProperty("metadataUrl")&&(a.metadataUrl=n.metadataUrl),a},t.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},t.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/bilibili.dagw.component.avatar.v1.plugin.Interaction"},t}(),l.FollowIconConfig=function(){function t(i){if(i)for(let n=Object.keys(i),o=0;o>>3){case 1:{y.hasFollow=n.bool();break}case 2:{y.iconRes=u.bilibili.dagw.component.avatar.common.ResourceSource.decode(n,n.uint32());break}case 3:{y.borderWidth=n.double();break}case 4:{y.borderColor=u.bilibili.dagw.component.avatar.common.ColorConfig.decode(n,n.uint32());break}default:n.skipType(s&7);break}}return y},t.fromObject=function(n){if(n instanceof u.bilibili.dagw.component.avatar.v1.plugin.FollowIconConfig)return n;let o=new u.bilibili.dagw.component.avatar.v1.plugin.FollowIconConfig;if(n.hasFollow!=null&&(o.hasFollow=!!n.hasFollow),n.iconRes!=null){if(typeof n.iconRes!="object")throw TypeError(".bilibili.dagw.component.avatar.v1.plugin.FollowIconConfig.iconRes: object expected");o.iconRes=u.bilibili.dagw.component.avatar.common.ResourceSource.fromObject(n.iconRes)}if(n.borderWidth!=null&&(o.borderWidth=Number(n.borderWidth)),n.borderColor!=null){if(typeof n.borderColor!="object")throw TypeError(".bilibili.dagw.component.avatar.v1.plugin.FollowIconConfig.borderColor: object expected");o.borderColor=u.bilibili.dagw.component.avatar.common.ColorConfig.fromObject(n.borderColor)}return o},t.toObject=function(n,o){o||(o={});let a={};return o.defaults&&(a.hasFollow=!1,a.iconRes=null,a.borderWidth=0,a.borderColor=null),n.hasFollow!=null&&n.hasOwnProperty("hasFollow")&&(a.hasFollow=n.hasFollow),n.iconRes!=null&&n.hasOwnProperty("iconRes")&&(a.iconRes=u.bilibili.dagw.component.avatar.common.ResourceSource.toObject(n.iconRes,o)),n.borderWidth!=null&&n.hasOwnProperty("borderWidth")&&(a.borderWidth=o.json&&!isFinite(n.borderWidth)?String(n.borderWidth):n.borderWidth),n.borderColor!=null&&n.hasOwnProperty("borderColor")&&(a.borderColor=u.bilibili.dagw.component.avatar.common.ColorConfig.toObject(n.borderColor,o)),a},t.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},t.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/bilibili.dagw.component.avatar.v1.plugin.FollowIconConfig"},t}(),l.GyroConfig=function(){function t(i){if(i)for(let n=Object.keys(i),o=0;o>>3){case 1:{y.gyroscope=u.bilibili.dagw.component.avatar.v1.plugin.NFTImageV2.decode(n,n.uint32());break}default:n.skipType(s&7);break}}return y},t.fromObject=function(n){if(n instanceof u.bilibili.dagw.component.avatar.v1.plugin.GyroConfig)return n;let o=new u.bilibili.dagw.component.avatar.v1.plugin.GyroConfig;if(n.gyroscope!=null){if(typeof n.gyroscope!="object")throw TypeError(".bilibili.dagw.component.avatar.v1.plugin.GyroConfig.gyroscope: object expected");o.gyroscope=u.bilibili.dagw.component.avatar.v1.plugin.NFTImageV2.fromObject(n.gyroscope)}return o},t.toObject=function(n,o){o||(o={});let a={};return o.defaults&&(a.gyroscope=null),n.gyroscope!=null&&n.hasOwnProperty("gyroscope")&&(a.gyroscope=u.bilibili.dagw.component.avatar.v1.plugin.NFTImageV2.toObject(n.gyroscope,o)),a},t.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},t.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/bilibili.dagw.component.avatar.v1.plugin.GyroConfig"},t}(),l.NFTImageV2=function(){function t(i){if(this.gyroscope=[],i)for(let n=Object.keys(i),o=0;o>>3){case 1:{y.gyroscope&&y.gyroscope.length||(y.gyroscope=[]),y.gyroscope.push(u.bilibili.dagw.component.avatar.v1.plugin.GyroscopeEntityV2.decode(n,n.uint32()));break}default:n.skipType(s&7);break}}return y},t.fromObject=function(n){if(n instanceof u.bilibili.dagw.component.avatar.v1.plugin.NFTImageV2)return n;let o=new u.bilibili.dagw.component.avatar.v1.plugin.NFTImageV2;if(n.gyroscope){if(!Array.isArray(n.gyroscope))throw TypeError(".bilibili.dagw.component.avatar.v1.plugin.NFTImageV2.gyroscope: array expected");o.gyroscope=[];for(let a=0;a>>3){case 1:{y.displayType=n.string();break}case 2:{y.contents&&y.contents.length||(y.contents=[]),y.contents.push(u.bilibili.dagw.component.avatar.v1.plugin.GyroscopeContentV2.decode(n,n.uint32()));break}default:n.skipType(s&7);break}}return y},t.fromObject=function(n){if(n instanceof u.bilibili.dagw.component.avatar.v1.plugin.GyroscopeEntityV2)return n;let o=new u.bilibili.dagw.component.avatar.v1.plugin.GyroscopeEntityV2;if(n.displayType!=null&&(o.displayType=String(n.displayType)),n.contents){if(!Array.isArray(n.contents))throw TypeError(".bilibili.dagw.component.avatar.v1.plugin.GyroscopeEntityV2.contents: array expected");o.contents=[];for(let a=0;a>>3){case 1:{y.fileUrl=n.string();break}case 2:{y.scale=n.float();break}case 3:{y.physicalOrientation&&y.physicalOrientation.length||(y.physicalOrientation=[]),y.physicalOrientation.push(u.bilibili.dagw.component.avatar.v1.plugin.PhysicalOrientationV2.decode(n,n.uint32()));break}default:n.skipType(s&7);break}}return y},t.fromObject=function(n){if(n instanceof u.bilibili.dagw.component.avatar.v1.plugin.GyroscopeContentV2)return n;let o=new u.bilibili.dagw.component.avatar.v1.plugin.GyroscopeContentV2;if(n.fileUrl!=null&&(o.fileUrl=String(n.fileUrl)),n.scale!=null&&(o.scale=Number(n.scale)),n.physicalOrientation){if(!Array.isArray(n.physicalOrientation))throw TypeError(".bilibili.dagw.component.avatar.v1.plugin.GyroscopeContentV2.physicalOrientation: array expected");o.physicalOrientation=[];for(let a=0;a>>3){case 1:{y.type=n.string();break}case 2:{if(y.angle&&y.angle.length||(y.angle=[]),(s&7)===2){let v=n.uint32()+n.pos;for(;n.pos>>3){case 1:{y.type=n.string();break}case 2:{if(y.value&&y.value.length||(y.value=[]),(s&7)===2){let v=n.uint32()+n.pos;for(;n.pos>>3){case 1:{y.isLive=n.bool();break}case 2:{y.config=u.bilibili.dagw.component.avatar.v1.plugin.LiveTextConfig.decode(n,n.uint32());break}case 3:{y.items&&y.items.length||(y.items=[]),y.items.push(u.bilibili.dagw.component.avatar.v1.plugin.LiveAnimeItem.decode(n,n.uint32()));break}case 4:{y.borderConfig&&y.borderConfig.length||(y.borderConfig=[]),y.borderConfig.push(u.bilibili.dagw.component.avatar.v1.plugin.BorderConfig.decode(n,n.uint32()));break}default:n.skipType(s&7);break}}return y},t.fromObject=function(n){if(n instanceof u.bilibili.dagw.component.avatar.v1.plugin.LiveAnimeConfig)return n;let o=new u.bilibili.dagw.component.avatar.v1.plugin.LiveAnimeConfig;if(n.isLive!=null&&(o.isLive=!!n.isLive),n.config!=null){if(typeof n.config!="object")throw TypeError(".bilibili.dagw.component.avatar.v1.plugin.LiveAnimeConfig.config: object expected");o.config=u.bilibili.dagw.component.avatar.v1.plugin.LiveTextConfig.fromObject(n.config)}if(n.items){if(!Array.isArray(n.items))throw TypeError(".bilibili.dagw.component.avatar.v1.plugin.LiveAnimeConfig.items: array expected");o.items=[];for(let a=0;a>>3){case 1:{y.color=u.bilibili.dagw.component.avatar.common.ColorConfig.decode(n,n.uint32());break}case 2:{y.borderWidth=n.double();break}case 3:{y.ratio=n.double();break}default:n.skipType(s&7);break}}return y},t.fromObject=function(n){if(n instanceof u.bilibili.dagw.component.avatar.v1.plugin.BorderConfig)return n;let o=new u.bilibili.dagw.component.avatar.v1.plugin.BorderConfig;if(n.color!=null){if(typeof n.color!="object")throw TypeError(".bilibili.dagw.component.avatar.v1.plugin.BorderConfig.color: object expected");o.color=u.bilibili.dagw.component.avatar.common.ColorConfig.fromObject(n.color)}return n.borderWidth!=null&&(o.borderWidth=Number(n.borderWidth)),n.ratio!=null&&(o.ratio=Number(n.ratio)),o},t.toObject=function(n,o){o||(o={});let a={};return o.defaults&&(a.color=null,a.borderWidth=0,a.ratio=0),n.color!=null&&n.hasOwnProperty("color")&&(a.color=u.bilibili.dagw.component.avatar.common.ColorConfig.toObject(n.color,o)),n.borderWidth!=null&&n.hasOwnProperty("borderWidth")&&(a.borderWidth=o.json&&!isFinite(n.borderWidth)?String(n.borderWidth):n.borderWidth),n.ratio!=null&&n.hasOwnProperty("ratio")&&(a.ratio=o.json&&!isFinite(n.ratio)?String(n.ratio):n.ratio),a},t.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},t.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/bilibili.dagw.component.avatar.v1.plugin.BorderConfig"},t}(),l.LiveTextConfig=function(){function t(i){if(i)for(let n=Object.keys(i),o=0;o>>3){case 1:{y.width=n.double();break}case 2:{y.height=n.double();break}case 3:{y.offsetY=n.double();break}case 4:{y.borderWidth=n.double();break}case 5:{y.textSize=n.double();break}case 7:{y.borderColor=u.bilibili.dagw.component.avatar.common.ColorConfig.decode(n,n.uint32());break}case 8:{y.background=u.bilibili.dagw.component.avatar.common.ColorConfig.decode(n,n.uint32());break}default:n.skipType(s&7);break}}return y},t.fromObject=function(n){if(n instanceof u.bilibili.dagw.component.avatar.v1.plugin.LiveTextConfig)return n;let o=new u.bilibili.dagw.component.avatar.v1.plugin.LiveTextConfig;if(n.width!=null&&(o.width=Number(n.width)),n.height!=null&&(o.height=Number(n.height)),n.offsetY!=null&&(o.offsetY=Number(n.offsetY)),n.borderWidth!=null&&(o.borderWidth=Number(n.borderWidth)),n.textSize!=null&&(o.textSize=Number(n.textSize)),n.borderColor!=null){if(typeof n.borderColor!="object")throw TypeError(".bilibili.dagw.component.avatar.v1.plugin.LiveTextConfig.borderColor: object expected");o.borderColor=u.bilibili.dagw.component.avatar.common.ColorConfig.fromObject(n.borderColor)}if(n.background!=null){if(typeof n.background!="object")throw TypeError(".bilibili.dagw.component.avatar.v1.plugin.LiveTextConfig.background: object expected");o.background=u.bilibili.dagw.component.avatar.common.ColorConfig.fromObject(n.background)}return o},t.toObject=function(n,o){o||(o={});let a={};return o.defaults&&(a.width=0,a.height=0,a.offsetY=0,a.borderWidth=0,a.textSize=0,a.borderColor=null,a.background=null),n.width!=null&&n.hasOwnProperty("width")&&(a.width=o.json&&!isFinite(n.width)?String(n.width):n.width),n.height!=null&&n.hasOwnProperty("height")&&(a.height=o.json&&!isFinite(n.height)?String(n.height):n.height),n.offsetY!=null&&n.hasOwnProperty("offsetY")&&(a.offsetY=o.json&&!isFinite(n.offsetY)?String(n.offsetY):n.offsetY),n.borderWidth!=null&&n.hasOwnProperty("borderWidth")&&(a.borderWidth=o.json&&!isFinite(n.borderWidth)?String(n.borderWidth):n.borderWidth),n.textSize!=null&&n.hasOwnProperty("textSize")&&(a.textSize=o.json&&!isFinite(n.textSize)?String(n.textSize):n.textSize),n.borderColor!=null&&n.hasOwnProperty("borderColor")&&(a.borderColor=u.bilibili.dagw.component.avatar.common.ColorConfig.toObject(n.borderColor,o)),n.background!=null&&n.hasOwnProperty("background")&&(a.background=u.bilibili.dagw.component.avatar.common.ColorConfig.toObject(n.background,o)),a},t.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},t.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/bilibili.dagw.component.avatar.v1.plugin.LiveTextConfig"},t}(),l.LiveAnimeItem=function(){function t(i){if(i)for(let n=Object.keys(i),o=0;o>>3){case 1:{y.color=u.bilibili.dagw.component.avatar.common.ColorConfig.decode(n,n.uint32());break}case 2:{y.startRatio=n.double();break}case 3:{y.endRatio=n.double();break}case 4:{y.startStroke=n.double();break}case 5:{y.startOpacity=n.double();break}case 6:{y.phase=n.int64();break}default:n.skipType(s&7);break}}return y},t.fromObject=function(n){if(n instanceof u.bilibili.dagw.component.avatar.v1.plugin.LiveAnimeItem)return n;let o=new u.bilibili.dagw.component.avatar.v1.plugin.LiveAnimeItem;if(n.color!=null){if(typeof n.color!="object")throw TypeError(".bilibili.dagw.component.avatar.v1.plugin.LiveAnimeItem.color: object expected");o.color=u.bilibili.dagw.component.avatar.common.ColorConfig.fromObject(n.color)}return n.startRatio!=null&&(o.startRatio=Number(n.startRatio)),n.endRatio!=null&&(o.endRatio=Number(n.endRatio)),n.startStroke!=null&&(o.startStroke=Number(n.startStroke)),n.startOpacity!=null&&(o.startOpacity=Number(n.startOpacity)),n.phase!=null&&(r.Long?(o.phase=r.Long.fromValue(n.phase)).unsigned=!1:typeof n.phase=="string"?o.phase=parseInt(n.phase,10):typeof n.phase=="number"?o.phase=n.phase:typeof n.phase=="object"&&(o.phase=new r.LongBits(n.phase.low>>>0,n.phase.high>>>0).toNumber())),o},t.toObject=function(n,o){o||(o={});let a={};if(o.defaults)if(a.color=null,a.startRatio=0,a.endRatio=0,a.startStroke=0,a.startOpacity=0,r.Long){let y=new r.Long(0,0,!1);a.phase=o.longs===String?y.toString():o.longs===Number?y.toNumber():y}else a.phase=o.longs===String?"0":0;return n.color!=null&&n.hasOwnProperty("color")&&(a.color=u.bilibili.dagw.component.avatar.common.ColorConfig.toObject(n.color,o)),n.startRatio!=null&&n.hasOwnProperty("startRatio")&&(a.startRatio=o.json&&!isFinite(n.startRatio)?String(n.startRatio):n.startRatio),n.endRatio!=null&&n.hasOwnProperty("endRatio")&&(a.endRatio=o.json&&!isFinite(n.endRatio)?String(n.endRatio):n.endRatio),n.startStroke!=null&&n.hasOwnProperty("startStroke")&&(a.startStroke=o.json&&!isFinite(n.startStroke)?String(n.startStroke):n.startStroke),n.startOpacity!=null&&n.hasOwnProperty("startOpacity")&&(a.startOpacity=o.json&&!isFinite(n.startOpacity)?String(n.startOpacity):n.startOpacity),n.phase!=null&&n.hasOwnProperty("phase")&&(typeof n.phase=="number"?a.phase=o.longs===String?String(n.phase):n.phase:a.phase=o.longs===String?r.Long.prototype.toString.call(n.phase):o.longs===Number?new r.LongBits(n.phase.low>>>0,n.phase.high>>>0).toNumber():n.phase),a},t.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},t.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/bilibili.dagw.component.avatar.v1.plugin.LiveAnimeItem"},t}(),l.WebLiveAnimeConfig=function(){function t(i){if(i)for(let n=Object.keys(i),o=0;o>>3){case 1:{y.circleGapWidth=n.double();break}case 2:{y.pinkCircleWidth=n.double();break}case 3:{y.liveLabelWidth=n.double();break}case 4:{y.liveLabelHeight=n.double();break}case 5:{y.liveLabelOffsetY=n.double();break}case 6:{y.liveLabelBorderWidth=n.double();break}default:n.skipType(s&7);break}}return y},t.fromObject=function(n){if(n instanceof u.bilibili.dagw.component.avatar.v1.plugin.WebLiveAnimeConfig)return n;let o=new u.bilibili.dagw.component.avatar.v1.plugin.WebLiveAnimeConfig;return n.circleGapWidth!=null&&(o.circleGapWidth=Number(n.circleGapWidth)),n.pinkCircleWidth!=null&&(o.pinkCircleWidth=Number(n.pinkCircleWidth)),n.liveLabelWidth!=null&&(o.liveLabelWidth=Number(n.liveLabelWidth)),n.liveLabelHeight!=null&&(o.liveLabelHeight=Number(n.liveLabelHeight)),n.liveLabelOffsetY!=null&&(o.liveLabelOffsetY=Number(n.liveLabelOffsetY)),n.liveLabelBorderWidth!=null&&(o.liveLabelBorderWidth=Number(n.liveLabelBorderWidth)),o},t.toObject=function(n,o){o||(o={});let a={};return o.defaults&&(a.circleGapWidth=0,a.pinkCircleWidth=0,a.liveLabelWidth=0,a.liveLabelHeight=0,a.liveLabelOffsetY=0,a.liveLabelBorderWidth=0),n.circleGapWidth!=null&&n.hasOwnProperty("circleGapWidth")&&(a.circleGapWidth=o.json&&!isFinite(n.circleGapWidth)?String(n.circleGapWidth):n.circleGapWidth),n.pinkCircleWidth!=null&&n.hasOwnProperty("pinkCircleWidth")&&(a.pinkCircleWidth=o.json&&!isFinite(n.pinkCircleWidth)?String(n.pinkCircleWidth):n.pinkCircleWidth),n.liveLabelWidth!=null&&n.hasOwnProperty("liveLabelWidth")&&(a.liveLabelWidth=o.json&&!isFinite(n.liveLabelWidth)?String(n.liveLabelWidth):n.liveLabelWidth),n.liveLabelHeight!=null&&n.hasOwnProperty("liveLabelHeight")&&(a.liveLabelHeight=o.json&&!isFinite(n.liveLabelHeight)?String(n.liveLabelHeight):n.liveLabelHeight),n.liveLabelOffsetY!=null&&n.hasOwnProperty("liveLabelOffsetY")&&(a.liveLabelOffsetY=o.json&&!isFinite(n.liveLabelOffsetY)?String(n.liveLabelOffsetY):n.liveLabelOffsetY),n.liveLabelBorderWidth!=null&&n.hasOwnProperty("liveLabelBorderWidth")&&(a.liveLabelBorderWidth=o.json&&!isFinite(n.liveLabelBorderWidth)?String(n.liveLabelBorderWidth):n.liveLabelBorderWidth),a},t.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},t.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/bilibili.dagw.component.avatar.v1.plugin.WebLiveAnimeConfig"},t}(),l}(),e}(),c}(),p}(),d}(),O.main=function(){let d={};return d.dynamic=function(){let p={};return p.campus=function(){let c={};return c.v1=function(){let e={};return e.Campus=function(){function l(t,i,n){b.rpc.Service.call(this,t,i,n)}return(l.prototype=Object.create(b.rpc.Service.prototype)).constructor=l,l.create=function(i,n,o){return new this(i,n,o)},Object.defineProperty(l.prototype.actionReport=function t(i,n){return this.rpcCall(t,u.bilibili.main.dynamic.campus.v1.ActionReportReq,u.bilibili.main.dynamic.campus.v1.ActionReportReply,i,n)},"name",{value:"ActionReport"}),l}(),e.ActionType=function(){let l={},t=Object.create(l);return t[l[0]="ACTION_NOTHING"]=0,t[l[1]="ACTION_CLOSE_YELLOW_BAR"]=1,t}(),e.ActionReportReq=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.identity=i.string();break}case 2:{a.action=i.int32();break}case 3:{a.campusId=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.dynamic.campus.v1.ActionReportReq)return i;let n=new u.bilibili.main.dynamic.campus.v1.ActionReportReq;switch(i.identity!=null&&(n.identity=String(i.identity)),i.action){default:if(typeof i.action=="number"){n.action=i.action;break}break;case"ACTION_NOTHING":case 0:n.action=0;break;case"ACTION_CLOSE_YELLOW_BAR":case 1:n.action=1;break}return i.campusId!=null&&(r.Long?(n.campusId=r.Long.fromValue(i.campusId)).unsigned=!1:typeof i.campusId=="string"?n.campusId=parseInt(i.campusId,10):typeof i.campusId=="number"?n.campusId=i.campusId:typeof i.campusId=="object"&&(n.campusId=new r.LongBits(i.campusId.low>>>0,i.campusId.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults)if(o.identity="",o.action=n.enums===String?"ACTION_NOTHING":0,r.Long){let a=new r.Long(0,0,!1);o.campusId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.campusId=n.longs===String?"0":0;return i.identity!=null&&i.hasOwnProperty("identity")&&(o.identity=i.identity),i.action!=null&&i.hasOwnProperty("action")&&(o.action=n.enums===String?u.bilibili.main.dynamic.campus.v1.ActionType[i.action]===void 0?i.action:u.bilibili.main.dynamic.campus.v1.ActionType[i.action]:i.action),i.campusId!=null&&i.hasOwnProperty("campusId")&&(typeof i.campusId=="number"?o.campusId=n.longs===String?String(i.campusId):i.campusId:o.campusId=n.longs===String?r.Long.prototype.toString.call(i.campusId):n.longs===Number?new r.LongBits(i.campusId.low>>>0,i.campusId.high>>>0).toNumber():i.campusId),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.dynamic.campus.v1.ActionReportReq"},l}(),e.ActionReportReply=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){default:i.skipType(y&7);break}}return a},l.fromObject=function(i){return i instanceof u.bilibili.main.dynamic.campus.v1.ActionReportReply?i:new u.bilibili.main.dynamic.campus.v1.ActionReportReply},l.toObject=function(){return{}},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.dynamic.campus.v1.ActionReportReply"},l}(),e}(),c}(),p.feed=function(){let c={};return c.v1=function(){let e={};return e.Feed=function(){function l(t,i,n){b.rpc.Service.call(this,t,i,n)}return(l.prototype=Object.create(b.rpc.Service.prototype)).constructor=l,l.create=function(i,n,o){return new this(i,n,o)},Object.defineProperty(l.prototype.createInitCheck=function t(i,n){return this.rpcCall(t,u.bilibili.main.dynamic.feed.v1.CreateInitCheckReq,u.dynamic.CreateCheckResp,i,n)},"name",{value:"CreateInitCheck"}),Object.defineProperty(l.prototype.submitCheck=function t(i,n){return this.rpcCall(t,u.bilibili.main.dynamic.feed.v1.SubmitCheckReq,u.bilibili.main.dynamic.feed.v1.SubmitCheckRsp,i,n)},"name",{value:"SubmitCheck"}),Object.defineProperty(l.prototype.createDyn=function t(i,n){return this.rpcCall(t,u.bilibili.main.dynamic.feed.v1.CreateDynReq,u.dynamic.CreateResp,i,n)},"name",{value:"CreateDyn"}),Object.defineProperty(l.prototype.editDyn=function t(i,n){return this.rpcCall(t,u.bilibili.main.dynamic.feed.v1.EditDynReq,u.bilibili.main.dynamic.feed.v1.EditDynRsp,i,n)},"name",{value:"EditDyn"}),Object.defineProperty(l.prototype.rmDyn=function t(i,n){return this.rpcCall(t,u.bilibili.main.dynamic.feed.v1.RmDynReq,u.bilibili.main.dynamic.feed.v1.RmDynRsp,i,n)},"name",{value:"RmDyn"}),Object.defineProperty(l.prototype.createPlusButtonClick=function t(i,n){return this.rpcCall(t,u.bilibili.main.dynamic.feed.v1.CreatePlusButtonClickReq,u.bilibili.main.dynamic.feed.v1.CreatePlusButtonClickRsp,i,n)},"name",{value:"CreatePlusButtonClick"}),Object.defineProperty(l.prototype.createPermissionButtonClick=function t(i,n){return this.rpcCall(t,u.bilibili.main.dynamic.feed.v1.CreatePermissionButtonClickReq,u.bilibili.main.dynamic.feed.v1.CreatePermissionButtonClickRsp,i,n)},"name",{value:"CreatePermissionButtonClick"}),Object.defineProperty(l.prototype.createPageInfos=function t(i,n){return this.rpcCall(t,u.bilibili.main.dynamic.feed.v1.CreatePageInfosReq,u.bilibili.main.dynamic.feed.v1.CreatePageInfosRsp,i,n)},"name",{value:"CreatePageInfos"}),Object.defineProperty(l.prototype.iCreateGoodsReplySync=function t(i,n){return this.rpcCall(t,u.bilibili.main.dynamic.feed.v1.ICreateGoodsReplySyncReq,u.bilibili.main.dynamic.feed.v1.ICreateResp,i,n)},"name",{value:"ICreateGoodsReplySync"}),Object.defineProperty(l.prototype.createOpus=function t(i,n){return this.rpcCall(t,u.bilibili.main.dynamic.feed.v1.CreateOpusReq,u.dynamic.CreateResp,i,n)},"name",{value:"CreateOpus"}),Object.defineProperty(l.prototype.getUidByName=function t(i,n){return this.rpcCall(t,u.dynamic.GetUidByNameReq,u.dynamic.GetUidByNameRsp,i,n)},"name",{value:"GetUidByName"}),Object.defineProperty(l.prototype.atList=function t(i,n){return this.rpcCall(t,u.dynamic.AtListReq,u.dynamic.AtListRsp,i,n)},"name",{value:"AtList"}),Object.defineProperty(l.prototype.atSearch=function t(i,n){return this.rpcCall(t,u.dynamic.AtSearchReq,u.dynamic.AtListRsp,i,n)},"name",{value:"AtSearch"}),Object.defineProperty(l.prototype.reserveButtonClick=function t(i,n){return this.rpcCall(t,u.bilibili.main.dynamic.feed.v1.ReserveButtonClickReq,u.bilibili.main.dynamic.feed.v1.ReserveButtonClickResp,i,n)},"name",{value:"ReserveButtonClick"}),Object.defineProperty(l.prototype.hotSearch=function t(i,n){return this.rpcCall(t,u.bilibili.main.dynamic.feed.v1.HotSearchReq,u.bilibili.main.dynamic.feed.v1.HotSearchRsp,i,n)},"name",{value:"HotSearch"}),Object.defineProperty(l.prototype.suggest=function t(i,n){return this.rpcCall(t,u.bilibili.main.dynamic.feed.v1.SuggestReq,u.bilibili.main.dynamic.feed.v1.SuggestRsp,i,n)},"name",{value:"Suggest"}),Object.defineProperty(l.prototype.dynamicButtonClick=function t(i,n){return this.rpcCall(t,u.bilibili.main.dynamic.feed.v1.DynamicButtonClickReq,u.bilibili.main.dynamic.feed.v1.DynamicButtonClickRsp,i,n)},"name",{value:"DynamicButtonClick"}),Object.defineProperty(l.prototype.getEditDynInfo=function t(i,n){return this.rpcCall(t,u.bilibili.main.dynamic.feed.v1.GetEditDynInfoReq,u.bilibili.main.dynamic.feed.v1.GetEditDynInfoRsp,i,n)},"name",{value:"GetEditDynInfo"}),Object.defineProperty(l.prototype.addDynamicReport=function t(i,n){return this.rpcCall(t,u.bilibili.main.dynamic.feed.v1.AddDynamicReportReq,u.bilibili.main.dynamic.feed.v1.AddDynamicReportRsp,i,n)},"name",{value:"AddDynamicReport"}),Object.defineProperty(l.prototype.goodsAttachCardPreview=function t(i,n){return this.rpcCall(t,u.bilibili.main.dynamic.feed.v1.GoodsAttachCardPreviewReq,u.bilibili.main.dynamic.feed.v1.GoodsAttachCardPreviewRsp,i,n)},"name",{value:"GoodsAttachCardPreview"}),Object.defineProperty(l.prototype.attachCardButton=function t(i,n){return this.rpcCall(t,u.bilibili.main.dynamic.feed.v1.AttachCardButtonReq,u.bilibili.main.dynamic.feed.v1.AttachCardButtonRsp,i,n)},"name",{value:"AttachCardButton"}),Object.defineProperty(l.prototype.dynamicThumb=function t(i,n){return this.rpcCall(t,u.bilibili.main.dynamic.feed.v1.DynamicThumbReq,u.bilibili.main.dynamic.feed.v1.DynamicThumbRsp,i,n)},"name",{value:"DynamicThumb"}),Object.defineProperty(l.prototype.dynamicRepost=function t(i,n){return this.rpcCall(t,u.bilibili.main.dynamic.feed.v1.DynamicRepostReq,u.dynamic.CreateResp,i,n)},"name",{value:"DynamicRepost"}),Object.defineProperty(l.prototype.setSpaceTop=function t(i,n){return this.rpcCall(t,u.bilibili.main.dynamic.feed.v1.SetSpaceTopReq,u.bilibili.main.dynamic.feed.v1.SetSpaceTopRsp,i,n)},"name",{value:"SetSpaceTop"}),Object.defineProperty(l.prototype.rmSpaceTop=function t(i,n){return this.rpcCall(t,u.bilibili.main.dynamic.feed.v1.RmSpaceTopReq,u.bilibili.main.dynamic.feed.v1.RmSpaceTopRsp,i,n)},"name",{value:"RmSpaceTop"}),Object.defineProperty(l.prototype.searchPoiList=function t(i,n){return this.rpcCall(t,u.bilibili.main.dynamic.feed.v1.SearchPoiListReq,u.bilibili.main.dynamic.feed.v1.SearchPoiListRsp,i,n)},"name",{value:"SearchPoiList"}),Object.defineProperty(l.prototype.nearbyPoiList=function t(i,n){return this.rpcCall(t,u.bilibili.main.dynamic.feed.v1.NearbyPoiListReq,u.bilibili.main.dynamic.feed.v1.NearbyPoiListRsp,i,n)},"name",{value:"NearbyPoiList"}),Object.defineProperty(l.prototype.config=function t(i,n){return this.rpcCall(t,u.bilibili.main.dynamic.feed.v1.ConfigReq,u.bilibili.main.dynamic.feed.v1.ConfigRsp,i,n)},"name",{value:"Config"}),Object.defineProperty(l.prototype.homeBubbleReport=function t(i,n){return this.rpcCall(t,u.bilibili.main.dynamic.feed.v1.HomeBubbleReportReq,u.bilibili.main.dynamic.feed.v1.HomeBubbleReportRsp,i,n)},"name",{value:"HomeBubbleReport"}),Object.defineProperty(l.prototype.dynMetricsActiveReport=function t(i,n){return this.rpcCall(t,u.bilibili.main.dynamic.feed.v1.DynMetricsActiveReportReq,u.bilibili.main.dynamic.feed.v1.DynMetricsActiveReportRsp,i,n)},"name",{value:"DynMetricsActiveReport"}),l}(),e.CreateOpusReq=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.meta=u.dynamic.UserCreateMeta.decode(i,i.uint32());break}case 2:{a.opus=u.opus.Opus.decode(i,i.uint32());break}case 3:{a.scene=i.int32();break}case 4:{a.option=u.dynamic.CreateOption.decode(i,i.uint32());break}case 7:{a.uploadId=i.string();break}case 8:{a.repostSrc=u.dynamic.DynIdentity.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.dynamic.feed.v1.CreateOpusReq)return i;let n=new u.bilibili.main.dynamic.feed.v1.CreateOpusReq;if(i.meta!=null){if(typeof i.meta!="object")throw TypeError(".bilibili.main.dynamic.feed.v1.CreateOpusReq.meta: object expected");n.meta=u.dynamic.UserCreateMeta.fromObject(i.meta)}if(i.opus!=null){if(typeof i.opus!="object")throw TypeError(".bilibili.main.dynamic.feed.v1.CreateOpusReq.opus: object expected");n.opus=u.opus.Opus.fromObject(i.opus)}switch(i.scene){default:if(typeof i.scene=="number"){n.scene=i.scene;break}break;case"CREATE_SCENE_INVALID":case 0:n.scene=0;break;case"CREATE_SCENE_CREATE_WORD":case 1:n.scene=1;break;case"CREATE_SCENE_CREATE_DRAW":case 2:n.scene=2;break;case"CREATE_SCENE_CREATE_DYN_VIDEO":case 3:n.scene=3;break;case"CREATE_SCENE_REPOST":case 4:n.scene=4;break;case"CREATE_SCENE_SHARE_BIZ":case 5:n.scene=5;break;case"CREATE_SCENE_SHARE_PAGE":case 6:n.scene=6;break;case"CREATE_SCENE_SHARE_PROGRAM":case 7:n.scene=7;break;case"CREATE_SCENE_REPLY_SYNC":case 8:n.scene=8;break;case"CREATE_SCENE_REPLY_CREATE_ACTIVITY":case 9:n.scene=9;break;case"CREATE_SCENE_CREATE_AD":case 10:n.scene=10;break;case"CREATE_SCENE_CREATE_LIVE_RCMD":case 11:n.scene=11;break;case"CREATE_SCENE_CREATE_ARTICLE":case 12:n.scene=12;break}if(i.option!=null){if(typeof i.option!="object")throw TypeError(".bilibili.main.dynamic.feed.v1.CreateOpusReq.option: object expected");n.option=u.dynamic.CreateOption.fromObject(i.option)}if(i.uploadId!=null&&(n.uploadId=String(i.uploadId)),i.repostSrc!=null){if(typeof i.repostSrc!="object")throw TypeError(".bilibili.main.dynamic.feed.v1.CreateOpusReq.repostSrc: object expected");n.repostSrc=u.dynamic.DynIdentity.fromObject(i.repostSrc)}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.meta=null,o.opus=null,o.scene=n.enums===String?"CREATE_SCENE_INVALID":0,o.option=null,o.uploadId="",o.repostSrc=null),i.meta!=null&&i.hasOwnProperty("meta")&&(o.meta=u.dynamic.UserCreateMeta.toObject(i.meta,n)),i.opus!=null&&i.hasOwnProperty("opus")&&(o.opus=u.opus.Opus.toObject(i.opus,n)),i.scene!=null&&i.hasOwnProperty("scene")&&(o.scene=n.enums===String?u.dynamic.CreateScene[i.scene]===void 0?i.scene:u.dynamic.CreateScene[i.scene]:i.scene),i.option!=null&&i.hasOwnProperty("option")&&(o.option=u.dynamic.CreateOption.toObject(i.option,n)),i.uploadId!=null&&i.hasOwnProperty("uploadId")&&(o.uploadId=i.uploadId),i.repostSrc!=null&&i.hasOwnProperty("repostSrc")&&(o.repostSrc=u.dynamic.DynIdentity.toObject(i.repostSrc,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.dynamic.feed.v1.CreateOpusReq"},l}(),e.ConfigReq=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){default:i.skipType(y&7);break}}return a},l.fromObject=function(i){return i instanceof u.bilibili.main.dynamic.feed.v1.ConfigReq?i:new u.bilibili.main.dynamic.feed.v1.ConfigReq},l.toObject=function(){return{}},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.dynamic.feed.v1.ConfigReq"},l}(),e.ConfigRsp=function(){function l(t){if(this.abEntries=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.abEntries&&a.abEntries.length||(a.abEntries=[]),a.abEntries.push(u.bilibili.main.dynamic.feed.v1.ConfigAB.decode(i,i.uint32()));break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.dynamic.feed.v1.ConfigRsp)return i;let n=new u.bilibili.main.dynamic.feed.v1.ConfigRsp;if(i.abEntries){if(!Array.isArray(i.abEntries))throw TypeError(".bilibili.main.dynamic.feed.v1.ConfigRsp.abEntries: array expected");n.abEntries=[];for(let o=0;o>>3){case 1:{a.entry=i.int32();break}case 2:{a.value=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.dynamic.feed.v1.ConfigAB)return i;let n=new u.bilibili.main.dynamic.feed.v1.ConfigAB;switch(i.entry){default:if(typeof i.entry=="number"){n.entry=i.entry;break}break;case"CONFIG_AB_ENTRY_NONE":case 0:n.entry=0;break;case"CONFIG_AB_ENTRY_PUB_PAGE_TITLE":case 1:n.entry=1;break;case"CONFIG_AB_ENTRY_SELECT_PIC_PANEL":case 2:n.entry=2;break}return i.value!=null&&(r.Long?(n.value=r.Long.fromValue(i.value)).unsigned=!1:typeof i.value=="string"?n.value=parseInt(i.value,10):typeof i.value=="number"?n.value=i.value:typeof i.value=="object"&&(n.value=new r.LongBits(i.value.low>>>0,i.value.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults)if(o.entry=n.enums===String?"CONFIG_AB_ENTRY_NONE":0,r.Long){let a=new r.Long(0,0,!1);o.value=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.value=n.longs===String?"0":0;return i.entry!=null&&i.hasOwnProperty("entry")&&(o.entry=n.enums===String?u.bilibili.main.dynamic.feed.v1.ConfigABEntry[i.entry]===void 0?i.entry:u.bilibili.main.dynamic.feed.v1.ConfigABEntry[i.entry]:i.entry),i.value!=null&&i.hasOwnProperty("value")&&(typeof i.value=="number"?o.value=n.longs===String?String(i.value):i.value:o.value=n.longs===String?r.Long.prototype.toString.call(i.value):n.longs===Number?new r.LongBits(i.value.low>>>0,i.value.high>>>0).toNumber():i.value),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.dynamic.feed.v1.ConfigAB"},l}(),e.ConfigABEntry=function(){let l={},t=Object.create(l);return t[l[0]="CONFIG_AB_ENTRY_NONE"]=0,t[l[1]="CONFIG_AB_ENTRY_PUB_PAGE_TITLE"]=1,t[l[2]="CONFIG_AB_ENTRY_SELECT_PIC_PANEL"]=2,t}(),e.EditDynReq=function(){function l(t){if(this.pics=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.dynId=i.int64();break}case 2:{a.scene=i.int32();break}case 3:{a.meta=u.dynamic.UserCreateMeta.decode(i,i.uint32());break}case 4:{a.content=u.dynamic.CreateContent.decode(i,i.uint32());break}case 5:{a.pics&&a.pics.length||(a.pics=[]),a.pics.push(u.dynamic.CreatePic.decode(i,i.uint32()));break}case 6:{a.repostSrc=u.dynamic.DynIdentity.decode(i,i.uint32());break}case 7:{a.dynTag=u.dynamic.CreateTag.decode(i,i.uint32());break}case 8:{a.attachCard=u.dynamic.CreateAttachCard.decode(i,i.uint32());break}case 9:{a.option=u.dynamic.CreateOption.decode(i,i.uint32());break}case 10:{a.topic=u.dynamic.CreateTopic.decode(i,i.uint32());break}case 11:{a.uploadId=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.dynamic.feed.v1.EditDynReq)return i;let n=new u.bilibili.main.dynamic.feed.v1.EditDynReq;switch(i.dynId!=null&&(r.Long?(n.dynId=r.Long.fromValue(i.dynId)).unsigned=!1:typeof i.dynId=="string"?n.dynId=parseInt(i.dynId,10):typeof i.dynId=="number"?n.dynId=i.dynId:typeof i.dynId=="object"&&(n.dynId=new r.LongBits(i.dynId.low>>>0,i.dynId.high>>>0).toNumber())),i.scene){default:if(typeof i.scene=="number"){n.scene=i.scene;break}break;case"CREATE_SCENE_INVALID":case 0:n.scene=0;break;case"CREATE_SCENE_CREATE_WORD":case 1:n.scene=1;break;case"CREATE_SCENE_CREATE_DRAW":case 2:n.scene=2;break;case"CREATE_SCENE_CREATE_DYN_VIDEO":case 3:n.scene=3;break;case"CREATE_SCENE_REPOST":case 4:n.scene=4;break;case"CREATE_SCENE_SHARE_BIZ":case 5:n.scene=5;break;case"CREATE_SCENE_SHARE_PAGE":case 6:n.scene=6;break;case"CREATE_SCENE_SHARE_PROGRAM":case 7:n.scene=7;break;case"CREATE_SCENE_REPLY_SYNC":case 8:n.scene=8;break;case"CREATE_SCENE_REPLY_CREATE_ACTIVITY":case 9:n.scene=9;break;case"CREATE_SCENE_CREATE_AD":case 10:n.scene=10;break;case"CREATE_SCENE_CREATE_LIVE_RCMD":case 11:n.scene=11;break;case"CREATE_SCENE_CREATE_ARTICLE":case 12:n.scene=12;break}if(i.meta!=null){if(typeof i.meta!="object")throw TypeError(".bilibili.main.dynamic.feed.v1.EditDynReq.meta: object expected");n.meta=u.dynamic.UserCreateMeta.fromObject(i.meta)}if(i.content!=null){if(typeof i.content!="object")throw TypeError(".bilibili.main.dynamic.feed.v1.EditDynReq.content: object expected");n.content=u.dynamic.CreateContent.fromObject(i.content)}if(i.pics){if(!Array.isArray(i.pics))throw TypeError(".bilibili.main.dynamic.feed.v1.EditDynReq.pics: array expected");n.pics=[];for(let o=0;o>>0,i.dynId.high>>>0).toNumber():i.dynId),i.scene!=null&&i.hasOwnProperty("scene")&&(o.scene=n.enums===String?u.dynamic.CreateScene[i.scene]===void 0?i.scene:u.dynamic.CreateScene[i.scene]:i.scene),i.meta!=null&&i.hasOwnProperty("meta")&&(o.meta=u.dynamic.UserCreateMeta.toObject(i.meta,n)),i.content!=null&&i.hasOwnProperty("content")&&(o.content=u.dynamic.CreateContent.toObject(i.content,n)),i.pics&&i.pics.length){o.pics=[];for(let a=0;a>>3){case 1:{a.state=i.int64();break}case 2:{a.totast=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.dynamic.feed.v1.EditDynRsp)return i;let n=new u.bilibili.main.dynamic.feed.v1.EditDynRsp;return i.state!=null&&(r.Long?(n.state=r.Long.fromValue(i.state)).unsigned=!1:typeof i.state=="string"?n.state=parseInt(i.state,10):typeof i.state=="number"?n.state=i.state:typeof i.state=="object"&&(n.state=new r.LongBits(i.state.low>>>0,i.state.high>>>0).toNumber())),i.totast!=null&&(n.totast=String(i.totast)),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.state=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.state=n.longs===String?"0":0;o.totast=""}return i.state!=null&&i.hasOwnProperty("state")&&(typeof i.state=="number"?o.state=n.longs===String?String(i.state):i.state:o.state=n.longs===String?r.Long.prototype.toString.call(i.state):n.longs===Number?new r.LongBits(i.state.low>>>0,i.state.high>>>0).toNumber():i.state),i.totast!=null&&i.hasOwnProperty("totast")&&(o.totast=i.totast),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.dynamic.feed.v1.EditDynRsp"},l}(),e.RmDynReq=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.dynId=i.int64();break}case 2:{a.dynIdStr=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.dynamic.feed.v1.RmDynReq)return i;let n=new u.bilibili.main.dynamic.feed.v1.RmDynReq;return i.dynId!=null&&(r.Long?(n.dynId=r.Long.fromValue(i.dynId)).unsigned=!1:typeof i.dynId=="string"?n.dynId=parseInt(i.dynId,10):typeof i.dynId=="number"?n.dynId=i.dynId:typeof i.dynId=="object"&&(n.dynId=new r.LongBits(i.dynId.low>>>0,i.dynId.high>>>0).toNumber())),i.dynIdStr!=null&&(n.dynIdStr=String(i.dynIdStr)),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.dynId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.dynId=n.longs===String?"0":0;o.dynIdStr=""}return i.dynId!=null&&i.hasOwnProperty("dynId")&&(typeof i.dynId=="number"?o.dynId=n.longs===String?String(i.dynId):i.dynId:o.dynId=n.longs===String?r.Long.prototype.toString.call(i.dynId):n.longs===Number?new r.LongBits(i.dynId.low>>>0,i.dynId.high>>>0).toNumber():i.dynId),i.dynIdStr!=null&&i.hasOwnProperty("dynIdStr")&&(o.dynIdStr=i.dynIdStr),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.dynamic.feed.v1.RmDynReq"},l}(),e.RmDynRsp=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){default:i.skipType(y&7);break}}return a},l.fromObject=function(i){return i instanceof u.bilibili.main.dynamic.feed.v1.RmDynRsp?i:new u.bilibili.main.dynamic.feed.v1.RmDynRsp},l.toObject=function(){return{}},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.dynamic.feed.v1.RmDynRsp"},l}(),e.GetEditDynInfoReq=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.dynId=i.int64();break}case 2:{a.scene=i.int32();break}case 3:{a.meta=u.dynamic.MetaDataCtrl.decode(i,i.uint32());break}case 4:{a.repost=u.dynamic.RepostInitCheck.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.dynamic.feed.v1.GetEditDynInfoReq)return i;let n=new u.bilibili.main.dynamic.feed.v1.GetEditDynInfoReq;switch(i.dynId!=null&&(r.Long?(n.dynId=r.Long.fromValue(i.dynId)).unsigned=!1:typeof i.dynId=="string"?n.dynId=parseInt(i.dynId,10):typeof i.dynId=="number"?n.dynId=i.dynId:typeof i.dynId=="object"&&(n.dynId=new r.LongBits(i.dynId.low>>>0,i.dynId.high>>>0).toNumber())),i.scene){default:if(typeof i.scene=="number"){n.scene=i.scene;break}break;case"CREATE_INIT_CHECK_SCENE_INVALID":case 0:n.scene=0;break;case"CREATE_INIT_CHECK_SCENE_NORMAL":case 1:n.scene=1;break;case"CREATE_INIT_CHECK_SCENE_REPOST":case 2:n.scene=2;break;case"CREATE_INIT_CHECK_SCENE_SHARE":case 3:n.scene=3;break;case"CREATE_INIT_CHECK_SCENE_RESERVE_SHARE":case 4:n.scene=4;break;case"CREATE_INIT_CHECK_SCENE_ARTICLE":case 5:n.scene=5;break}if(i.meta!=null){if(typeof i.meta!="object")throw TypeError(".bilibili.main.dynamic.feed.v1.GetEditDynInfoReq.meta: object expected");n.meta=u.dynamic.MetaDataCtrl.fromObject(i.meta)}if(i.repost!=null){if(typeof i.repost!="object")throw TypeError(".bilibili.main.dynamic.feed.v1.GetEditDynInfoReq.repost: object expected");n.repost=u.dynamic.RepostInitCheck.fromObject(i.repost)}return n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.dynId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.dynId=n.longs===String?"0":0;o.scene=n.enums===String?"CREATE_INIT_CHECK_SCENE_INVALID":0,o.meta=null,o.repost=null}return i.dynId!=null&&i.hasOwnProperty("dynId")&&(typeof i.dynId=="number"?o.dynId=n.longs===String?String(i.dynId):i.dynId:o.dynId=n.longs===String?r.Long.prototype.toString.call(i.dynId):n.longs===Number?new r.LongBits(i.dynId.low>>>0,i.dynId.high>>>0).toNumber():i.dynId),i.scene!=null&&i.hasOwnProperty("scene")&&(o.scene=n.enums===String?u.dynamic.CreateInitCheckScene[i.scene]===void 0?i.scene:u.dynamic.CreateInitCheckScene[i.scene]:i.scene),i.meta!=null&&i.hasOwnProperty("meta")&&(o.meta=u.dynamic.MetaDataCtrl.toObject(i.meta,n)),i.repost!=null&&i.hasOwnProperty("repost")&&(o.repost=u.dynamic.RepostInitCheck.toObject(i.repost,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.dynamic.feed.v1.GetEditDynInfoReq"},l}(),e.GetEditDynInfoRsp=function(){function l(t){if(this.pics=[],this.topicInfos=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.pics&&a.pics.length||(a.pics=[]),a.pics.push(u.dynamic.CreatePic.decode(i,i.uint32()));break}case 2:{a.origDynId=i.int64();break}case 3:{a.preDynId=i.int64();break}case 4:{a.topicInfos&&a.topicInfos.length||(a.topicInfos=[]),a.topicInfos.push(u.bilibili.main.dynamic.feed.v1.CreatePageTopicInfo.decode(i,i.uint32()));break}case 5:{a.attachCard=u.dynamic.CreateAttachCard.decode(i,i.uint32());break}case 6:{a.setting=u.dynamic.PublishSetting.decode(i,i.uint32());break}case 7:{a.permission=u.dynamic.UpPermission.decode(i,i.uint32());break}case 8:{a.shareInfo=u.dynamic.ShareChannel.decode(i,i.uint32());break}case 9:{a.yellowBar=u.dynamic.PublishYellowBar.decode(i,i.uint32());break}case 10:{a.plusRedDot=u.dynamic.PlusRedDot.decode(i,i.uint32());break}case 11:{a.onlyFans=i.int64();break}case 12:{a.editAlertMsg=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.dynamic.feed.v1.GetEditDynInfoRsp)return i;let n=new u.bilibili.main.dynamic.feed.v1.GetEditDynInfoRsp;if(i.pics){if(!Array.isArray(i.pics))throw TypeError(".bilibili.main.dynamic.feed.v1.GetEditDynInfoRsp.pics: array expected");n.pics=[];for(let o=0;o>>0,i.origDynId.high>>>0).toNumber())),i.preDynId!=null&&(r.Long?(n.preDynId=r.Long.fromValue(i.preDynId)).unsigned=!1:typeof i.preDynId=="string"?n.preDynId=parseInt(i.preDynId,10):typeof i.preDynId=="number"?n.preDynId=i.preDynId:typeof i.preDynId=="object"&&(n.preDynId=new r.LongBits(i.preDynId.low>>>0,i.preDynId.high>>>0).toNumber())),i.topicInfos){if(!Array.isArray(i.topicInfos))throw TypeError(".bilibili.main.dynamic.feed.v1.GetEditDynInfoRsp.topicInfos: array expected");n.topicInfos=[];for(let o=0;o>>0,i.onlyFans.high>>>0).toNumber())),i.editAlertMsg!=null&&(n.editAlertMsg=String(i.editAlertMsg)),n},l.toObject=function(i,n){n||(n={});let o={};if((n.arrays||n.defaults)&&(o.pics=[],o.topicInfos=[]),n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.origDynId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.origDynId=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.preDynId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.preDynId=n.longs===String?"0":0;if(o.attachCard=null,o.setting=null,o.permission=null,o.shareInfo=null,o.yellowBar=null,o.plusRedDot=null,r.Long){let a=new r.Long(0,0,!1);o.onlyFans=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.onlyFans=n.longs===String?"0":0;o.editAlertMsg=""}if(i.pics&&i.pics.length){o.pics=[];for(let a=0;a>>0,i.origDynId.high>>>0).toNumber():i.origDynId),i.preDynId!=null&&i.hasOwnProperty("preDynId")&&(typeof i.preDynId=="number"?o.preDynId=n.longs===String?String(i.preDynId):i.preDynId:o.preDynId=n.longs===String?r.Long.prototype.toString.call(i.preDynId):n.longs===Number?new r.LongBits(i.preDynId.low>>>0,i.preDynId.high>>>0).toNumber():i.preDynId),i.topicInfos&&i.topicInfos.length){o.topicInfos=[];for(let a=0;a>>0,i.onlyFans.high>>>0).toNumber():i.onlyFans),i.editAlertMsg!=null&&i.hasOwnProperty("editAlertMsg")&&(o.editAlertMsg=i.editAlertMsg),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.dynamic.feed.v1.GetEditDynInfoRsp"},l}(),e.GoodsAttachCardPreviewReq=function(){function l(t){if(this.itemIds=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{if(a.itemIds&&a.itemIds.length||(a.itemIds=[]),(y&7)===2){let s=i.uint32()+i.pos;for(;i.pos>>0,i.itemIds[o].high>>>0).toNumber())}if(i.dynId!=null&&(r.Long?(n.dynId=r.Long.fromValue(i.dynId)).unsigned=!1:typeof i.dynId=="string"?n.dynId=parseInt(i.dynId,10):typeof i.dynId=="number"?n.dynId=i.dynId:typeof i.dynId=="object"&&(n.dynId=new r.LongBits(i.dynId.low>>>0,i.dynId.high>>>0).toNumber())),i.mid!=null&&(r.Long?(n.mid=r.Long.fromValue(i.mid)).unsigned=!1:typeof i.mid=="string"?n.mid=parseInt(i.mid,10):typeof i.mid=="number"?n.mid=i.mid:typeof i.mid=="object"&&(n.mid=new r.LongBits(i.mid.low>>>0,i.mid.high>>>0).toNumber())),i.meta!=null){if(typeof i.meta!="object")throw TypeError(".bilibili.main.dynamic.feed.v1.GoodsAttachCardPreviewReq.meta: object expected");n.meta=u.dynamic.MetaDataCtrl.fromObject(i.meta)}return n},l.toObject=function(i,n){n||(n={});let o={};if((n.arrays||n.defaults)&&(o.itemIds=[]),n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.dynId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.dynId=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.mid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.mid=n.longs===String?"0":0;o.meta=null}if(i.itemIds&&i.itemIds.length){o.itemIds=[];for(let a=0;a>>0,i.itemIds[a].high>>>0).toNumber():i.itemIds[a]}return i.dynId!=null&&i.hasOwnProperty("dynId")&&(typeof i.dynId=="number"?o.dynId=n.longs===String?String(i.dynId):i.dynId:o.dynId=n.longs===String?r.Long.prototype.toString.call(i.dynId):n.longs===Number?new r.LongBits(i.dynId.low>>>0,i.dynId.high>>>0).toNumber():i.dynId),i.mid!=null&&i.hasOwnProperty("mid")&&(typeof i.mid=="number"?o.mid=n.longs===String?String(i.mid):i.mid:o.mid=n.longs===String?r.Long.prototype.toString.call(i.mid):n.longs===Number?new r.LongBits(i.mid.low>>>0,i.mid.high>>>0).toNumber():i.mid),i.meta!=null&&i.hasOwnProperty("meta")&&(o.meta=u.dynamic.MetaDataCtrl.toObject(i.meta,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.dynamic.feed.v1.GoodsAttachCardPreviewReq"},l}(),e.GoodsAttachCardPreviewRsp=function(){function l(t){if(this.goods={},t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.goods===r.emptyObject&&(a.goods={});let g=i.uint32()+i.pos;for(y=0,s=null;i.pos>>3){case 1:y=i.int64();break;case 2:s=u.bilibili.main.dynamic.feed.v1.GoodsItem.decode(i,i.uint32());break;default:i.skipType(S&7);break}}a.goods[typeof y=="object"?r.longToHash(y):y]=s;break}default:i.skipType(v&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.dynamic.feed.v1.GoodsAttachCardPreviewRsp)return i;let n=new u.bilibili.main.dynamic.feed.v1.GoodsAttachCardPreviewRsp;if(i.goods){if(typeof i.goods!="object")throw TypeError(".bilibili.main.dynamic.feed.v1.GoodsAttachCardPreviewRsp.goods: object expected");n.goods={};for(let o=Object.keys(i.goods),a=0;a>>3){case 1:{a.itemsId=i.int64();break}case 2:{a.name=i.string();break}case 3:{a.brief=i.string();break}case 4:{a.img=i.string();break}case 5:{a.price=i.float();break}case 6:{a.priceStr=i.string();break}case 7:{a.iconName=i.string();break}case 8:{a.iconUrl=i.string();break}case 9:{a.jumpLink=i.string();break}case 10:{a.jumpLinkDesc=i.string();break}case 11:{a.actId=i.int64();break}case 12:{a.actMid=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.dynamic.feed.v1.GoodsItem)return i;let n=new u.bilibili.main.dynamic.feed.v1.GoodsItem;return i.itemsId!=null&&(r.Long?(n.itemsId=r.Long.fromValue(i.itemsId)).unsigned=!1:typeof i.itemsId=="string"?n.itemsId=parseInt(i.itemsId,10):typeof i.itemsId=="number"?n.itemsId=i.itemsId:typeof i.itemsId=="object"&&(n.itemsId=new r.LongBits(i.itemsId.low>>>0,i.itemsId.high>>>0).toNumber())),i.name!=null&&(n.name=String(i.name)),i.brief!=null&&(n.brief=String(i.brief)),i.img!=null&&(n.img=String(i.img)),i.price!=null&&(n.price=Number(i.price)),i.priceStr!=null&&(n.priceStr=String(i.priceStr)),i.iconName!=null&&(n.iconName=String(i.iconName)),i.iconUrl!=null&&(n.iconUrl=String(i.iconUrl)),i.jumpLink!=null&&(n.jumpLink=String(i.jumpLink)),i.jumpLinkDesc!=null&&(n.jumpLinkDesc=String(i.jumpLinkDesc)),i.actId!=null&&(r.Long?(n.actId=r.Long.fromValue(i.actId)).unsigned=!1:typeof i.actId=="string"?n.actId=parseInt(i.actId,10):typeof i.actId=="number"?n.actId=i.actId:typeof i.actId=="object"&&(n.actId=new r.LongBits(i.actId.low>>>0,i.actId.high>>>0).toNumber())),i.actMid!=null&&(r.Long?(n.actMid=r.Long.fromValue(i.actMid)).unsigned=!1:typeof i.actMid=="string"?n.actMid=parseInt(i.actMid,10):typeof i.actMid=="number"?n.actMid=i.actMid:typeof i.actMid=="object"&&(n.actMid=new r.LongBits(i.actMid.low>>>0,i.actMid.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.itemsId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.itemsId=n.longs===String?"0":0;if(o.name="",o.brief="",o.img="",o.price=0,o.priceStr="",o.iconName="",o.iconUrl="",o.jumpLink="",o.jumpLinkDesc="",r.Long){let a=new r.Long(0,0,!1);o.actId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.actId=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.actMid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.actMid=n.longs===String?"0":0}return i.itemsId!=null&&i.hasOwnProperty("itemsId")&&(typeof i.itemsId=="number"?o.itemsId=n.longs===String?String(i.itemsId):i.itemsId:o.itemsId=n.longs===String?r.Long.prototype.toString.call(i.itemsId):n.longs===Number?new r.LongBits(i.itemsId.low>>>0,i.itemsId.high>>>0).toNumber():i.itemsId),i.name!=null&&i.hasOwnProperty("name")&&(o.name=i.name),i.brief!=null&&i.hasOwnProperty("brief")&&(o.brief=i.brief),i.img!=null&&i.hasOwnProperty("img")&&(o.img=i.img),i.price!=null&&i.hasOwnProperty("price")&&(o.price=n.json&&!isFinite(i.price)?String(i.price):i.price),i.priceStr!=null&&i.hasOwnProperty("priceStr")&&(o.priceStr=i.priceStr),i.iconName!=null&&i.hasOwnProperty("iconName")&&(o.iconName=i.iconName),i.iconUrl!=null&&i.hasOwnProperty("iconUrl")&&(o.iconUrl=i.iconUrl),i.jumpLink!=null&&i.hasOwnProperty("jumpLink")&&(o.jumpLink=i.jumpLink),i.jumpLinkDesc!=null&&i.hasOwnProperty("jumpLinkDesc")&&(o.jumpLinkDesc=i.jumpLinkDesc),i.actId!=null&&i.hasOwnProperty("actId")&&(typeof i.actId=="number"?o.actId=n.longs===String?String(i.actId):i.actId:o.actId=n.longs===String?r.Long.prototype.toString.call(i.actId):n.longs===Number?new r.LongBits(i.actId.low>>>0,i.actId.high>>>0).toNumber():i.actId),i.actMid!=null&&i.hasOwnProperty("actMid")&&(typeof i.actMid=="number"?o.actMid=n.longs===String?String(i.actMid):i.actMid:o.actMid=n.longs===String?r.Long.prototype.toString.call(i.actMid):n.longs===Number?new r.LongBits(i.actMid.low>>>0,i.actMid.high>>>0).toNumber():i.actMid),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.dynamic.feed.v1.GoodsItem"},l}(),e.AttachCardButtonReq=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.curBtnStatus=i.int32();break}case 2:{a.dynamicId=i.int64();break}case 3:{a.attachCardType=i.int32();break}case 4:{a.spmId=i.string();break}case 5:{a.reserveTotal=i.int64();break}case 6:{a.dynamicIdStr=i.string();break}case 7:{a.cardType=i.string();break}case 8:{a.cardBizId=i.string();break}case 9:{a.opusBizType=i.int32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.dynamic.feed.v1.AttachCardButtonReq)return i;let n=new u.bilibili.main.dynamic.feed.v1.AttachCardButtonReq;switch(i.curBtnStatus!=null&&(n.curBtnStatus=i.curBtnStatus|0),i.dynamicId!=null&&(r.Long?(n.dynamicId=r.Long.fromValue(i.dynamicId)).unsigned=!1:typeof i.dynamicId=="string"?n.dynamicId=parseInt(i.dynamicId,10):typeof i.dynamicId=="number"?n.dynamicId=i.dynamicId:typeof i.dynamicId=="object"&&(n.dynamicId=new r.LongBits(i.dynamicId.low>>>0,i.dynamicId.high>>>0).toNumber())),i.attachCardType){default:if(typeof i.attachCardType=="number"){n.attachCardType=i.attachCardType;break}break;case"ATTACH_CARD_NONE":case 0:n.attachCardType=0;break;case"ATTACH_CARD_GOODS":case 1:n.attachCardType=1;break;case"ATTACH_CARD_VOTE":case 2:n.attachCardType=2;break;case"ATTACH_CARD_UGC":case 3:n.attachCardType=3;break;case"ATTACH_CARD_ACTIVITY":case 4:n.attachCardType=4;break;case"ATTACH_CARD_OFFICIAL_ACTIVITY":case 5:n.attachCardType=5;break;case"ATTACH_CARD_TOPIC":case 6:n.attachCardType=6;break;case"ATTACH_CARD_OGV":case 7:n.attachCardType=7;break;case"ATTACH_CARD_AUTO_OGV":case 8:n.attachCardType=8;break;case"ATTACH_CARD_GAME":case 9:n.attachCardType=9;break;case"ATTACH_CARD_MANGA":case 10:n.attachCardType=10;break;case"ATTACH_CARD_DECORATION":case 11:n.attachCardType=11;break;case"ATTACH_CARD_MATCH":case 12:n.attachCardType=12;break;case"ATTACH_CARD_PUGV":case 13:n.attachCardType=13;break;case"ATTACH_CARD_RESERVE":case 14:n.attachCardType=14;break;case"ATTACH_CARD_UP_TOPIC":case 15:n.attachCardType=15;break;case"ATTACH_CARD_UP_ACTIVITY":case 16:n.attachCardType=16;break;case"ATTACH_CARD_UP_MAOER":case 17:n.attachCardType=17;break;case"ATTACH_CARD_MEMBER_GOODS":case 18:n.attachCardType=18;break;case"ATTACH_CARD_MAN_TIAN_XING":case 19:n.attachCardType=19;break;case"ATTACH_CARD_LOTTERY":case 20:n.attachCardType=20;break}switch(i.spmId!=null&&(n.spmId=String(i.spmId)),i.reserveTotal!=null&&(r.Long?(n.reserveTotal=r.Long.fromValue(i.reserveTotal)).unsigned=!1:typeof i.reserveTotal=="string"?n.reserveTotal=parseInt(i.reserveTotal,10):typeof i.reserveTotal=="number"?n.reserveTotal=i.reserveTotal:typeof i.reserveTotal=="object"&&(n.reserveTotal=new r.LongBits(i.reserveTotal.low>>>0,i.reserveTotal.high>>>0).toNumber())),i.dynamicIdStr!=null&&(n.dynamicIdStr=String(i.dynamicIdStr)),i.cardType!=null&&(n.cardType=String(i.cardType)),i.cardBizId!=null&&(n.cardBizId=String(i.cardBizId)),i.opusBizType){default:if(typeof i.opusBizType=="number"){n.opusBizType=i.opusBizType;break}break;case"DEFAULT":case 0:n.opusBizType=0;break;case"VIDEO":case 1:n.opusBizType=1;break;case"RESERVE":case 2:n.opusBizType=2;break;case"VOTE":case 3:n.opusBizType=3;break;case"LIVE":case 4:n.opusBizType=4;break;case"LOTTERY":case 5:n.opusBizType=5;break;case"MATCH":case 6:n.opusBizType=6;break;case"GOODS":case 7:n.opusBizType=7;break;case"OGV_SS":case 8:n.opusBizType=8;break;case"OGV_EP":case 9:n.opusBizType=9;break;case"MANGA":case 10:n.opusBizType=10;break;case"CHEESE":case 11:n.opusBizType=11;break;case"VIDEO_TS":case 12:n.opusBizType=12;break;case"AT":case 13:n.opusBizType=13;break;case"HASH_TAG":case 14:n.opusBizType=14;break;case"CV":case 15:n.opusBizType=15;break;case"URL":case 16:n.opusBizType=16;break;case"MAIL":case 17:n.opusBizType=17;break;case"LBS":case 18:n.opusBizType=18;break;case"ACTIVITY":case 19:n.opusBizType=19;break;case"ATTACH_CARD_OFFICIAL_ACTIVITY":case 20:n.opusBizType=20;break;case"GAME":case 21:n.opusBizType=21;break;case"DECORATION":case 22:n.opusBizType=22;break;case"UP_TOPIC":case 23:n.opusBizType=23;break;case"UP_ACTIVITY":case 24:n.opusBizType=24;break;case"UP_MAOER":case 25:n.opusBizType=25;break;case"MEMBER_GOODS":case 26:n.opusBizType=26;break;case"OPENMALL_UP_ITEMS":case 27:n.opusBizType=27;break;case"MUSIC":case 29:n.opusBizType=29;break;case"MEMBER_TICKET":case 31:n.opusBizType=31;break;case"REPOST_PIC_URL":case 32:n.opusBizType=32;break;case"REPOST_PIC_DYN_URL":case 33:n.opusBizType=33;break;case"OGV_FOLLOW_CARD":case 34:n.opusBizType=34;break}return n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(o.curBtnStatus=0,r.Long){let a=new r.Long(0,0,!1);o.dynamicId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.dynamicId=n.longs===String?"0":0;if(o.attachCardType=n.enums===String?"ATTACH_CARD_NONE":0,o.spmId="",r.Long){let a=new r.Long(0,0,!1);o.reserveTotal=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.reserveTotal=n.longs===String?"0":0;o.dynamicIdStr="",o.cardType="",o.cardBizId="",o.opusBizType=n.enums===String?"DEFAULT":0}return i.curBtnStatus!=null&&i.hasOwnProperty("curBtnStatus")&&(o.curBtnStatus=i.curBtnStatus),i.dynamicId!=null&&i.hasOwnProperty("dynamicId")&&(typeof i.dynamicId=="number"?o.dynamicId=n.longs===String?String(i.dynamicId):i.dynamicId:o.dynamicId=n.longs===String?r.Long.prototype.toString.call(i.dynamicId):n.longs===Number?new r.LongBits(i.dynamicId.low>>>0,i.dynamicId.high>>>0).toNumber():i.dynamicId),i.attachCardType!=null&&i.hasOwnProperty("attachCardType")&&(o.attachCardType=n.enums===String?u.dynamic.AttachCardType[i.attachCardType]===void 0?i.attachCardType:u.dynamic.AttachCardType[i.attachCardType]:i.attachCardType),i.spmId!=null&&i.hasOwnProperty("spmId")&&(o.spmId=i.spmId),i.reserveTotal!=null&&i.hasOwnProperty("reserveTotal")&&(typeof i.reserveTotal=="number"?o.reserveTotal=n.longs===String?String(i.reserveTotal):i.reserveTotal:o.reserveTotal=n.longs===String?r.Long.prototype.toString.call(i.reserveTotal):n.longs===Number?new r.LongBits(i.reserveTotal.low>>>0,i.reserveTotal.high>>>0).toNumber():i.reserveTotal),i.dynamicIdStr!=null&&i.hasOwnProperty("dynamicIdStr")&&(o.dynamicIdStr=i.dynamicIdStr),i.cardType!=null&&i.hasOwnProperty("cardType")&&(o.cardType=i.cardType),i.cardBizId!=null&&i.hasOwnProperty("cardBizId")&&(o.cardBizId=i.cardBizId),i.opusBizType!=null&&i.hasOwnProperty("opusBizType")&&(o.opusBizType=n.enums===String?u.opus.OpusBizType[i.opusBizType]===void 0?i.opusBizType:u.opus.OpusBizType[i.opusBizType]:i.opusBizType),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.dynamic.feed.v1.AttachCardButtonReq"},l}(),e.AttachCardButtonRsp=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.finalBtnStatus=i.int32();break}case 2:{a.toast=i.string();break}case 3:{a.descUpdate=i.string();break}case 4:{a.reserveUpdate=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.dynamic.feed.v1.AttachCardButtonRsp)return i;let n=new u.bilibili.main.dynamic.feed.v1.AttachCardButtonRsp;return i.finalBtnStatus!=null&&(n.finalBtnStatus=i.finalBtnStatus|0),i.toast!=null&&(n.toast=String(i.toast)),i.descUpdate!=null&&(n.descUpdate=String(i.descUpdate)),i.reserveUpdate!=null&&(r.Long?(n.reserveUpdate=r.Long.fromValue(i.reserveUpdate)).unsigned=!1:typeof i.reserveUpdate=="string"?n.reserveUpdate=parseInt(i.reserveUpdate,10):typeof i.reserveUpdate=="number"?n.reserveUpdate=i.reserveUpdate:typeof i.reserveUpdate=="object"&&(n.reserveUpdate=new r.LongBits(i.reserveUpdate.low>>>0,i.reserveUpdate.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults)if(o.finalBtnStatus=0,o.toast="",o.descUpdate="",r.Long){let a=new r.Long(0,0,!1);o.reserveUpdate=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.reserveUpdate=n.longs===String?"0":0;return i.finalBtnStatus!=null&&i.hasOwnProperty("finalBtnStatus")&&(o.finalBtnStatus=i.finalBtnStatus),i.toast!=null&&i.hasOwnProperty("toast")&&(o.toast=i.toast),i.descUpdate!=null&&i.hasOwnProperty("descUpdate")&&(o.descUpdate=i.descUpdate),i.reserveUpdate!=null&&i.hasOwnProperty("reserveUpdate")&&(typeof i.reserveUpdate=="number"?o.reserveUpdate=n.longs===String?String(i.reserveUpdate):i.reserveUpdate:o.reserveUpdate=n.longs===String?r.Long.prototype.toString.call(i.reserveUpdate):n.longs===Number?new r.LongBits(i.reserveUpdate.low>>>0,i.reserveUpdate.high>>>0).toNumber():i.reserveUpdate),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.dynamic.feed.v1.AttachCardButtonRsp"},l}(),e.ICreateGoodsReplySyncReq=function(){function l(t){if(this.pics=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.uid=i.int64();break}case 2:{a.goodsId=i.int64();break}case 3:{a.content=u.dynamic.CreateContent.decode(i,i.uint32());break}case 4:{a.scene=i.int32();break}case 5:{a.pics&&a.pics.length||(a.pics=[]),a.pics.push(u.dynamic.CreatePic.decode(i,i.uint32()));break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.dynamic.feed.v1.ICreateGoodsReplySyncReq)return i;let n=new u.bilibili.main.dynamic.feed.v1.ICreateGoodsReplySyncReq;if(i.uid!=null&&(r.Long?(n.uid=r.Long.fromValue(i.uid)).unsigned=!1:typeof i.uid=="string"?n.uid=parseInt(i.uid,10):typeof i.uid=="number"?n.uid=i.uid:typeof i.uid=="object"&&(n.uid=new r.LongBits(i.uid.low>>>0,i.uid.high>>>0).toNumber())),i.goodsId!=null&&(r.Long?(n.goodsId=r.Long.fromValue(i.goodsId)).unsigned=!1:typeof i.goodsId=="string"?n.goodsId=parseInt(i.goodsId,10):typeof i.goodsId=="number"?n.goodsId=i.goodsId:typeof i.goodsId=="object"&&(n.goodsId=new r.LongBits(i.goodsId.low>>>0,i.goodsId.high>>>0).toNumber())),i.content!=null){if(typeof i.content!="object")throw TypeError(".bilibili.main.dynamic.feed.v1.ICreateGoodsReplySyncReq.content: object expected");n.content=u.dynamic.CreateContent.fromObject(i.content)}switch(i.scene){default:if(typeof i.scene=="number"){n.scene=i.scene;break}break;case"CREATE_SCENE_INVALID":case 0:n.scene=0;break;case"CREATE_SCENE_CREATE_WORD":case 1:n.scene=1;break;case"CREATE_SCENE_CREATE_DRAW":case 2:n.scene=2;break;case"CREATE_SCENE_CREATE_DYN_VIDEO":case 3:n.scene=3;break;case"CREATE_SCENE_REPOST":case 4:n.scene=4;break;case"CREATE_SCENE_SHARE_BIZ":case 5:n.scene=5;break;case"CREATE_SCENE_SHARE_PAGE":case 6:n.scene=6;break;case"CREATE_SCENE_SHARE_PROGRAM":case 7:n.scene=7;break;case"CREATE_SCENE_REPLY_SYNC":case 8:n.scene=8;break;case"CREATE_SCENE_REPLY_CREATE_ACTIVITY":case 9:n.scene=9;break;case"CREATE_SCENE_CREATE_AD":case 10:n.scene=10;break;case"CREATE_SCENE_CREATE_LIVE_RCMD":case 11:n.scene=11;break;case"CREATE_SCENE_CREATE_ARTICLE":case 12:n.scene=12;break}if(i.pics){if(!Array.isArray(i.pics))throw TypeError(".bilibili.main.dynamic.feed.v1.ICreateGoodsReplySyncReq.pics: array expected");n.pics=[];for(let o=0;o>>0,i.uid.high>>>0).toNumber():i.uid),i.goodsId!=null&&i.hasOwnProperty("goodsId")&&(typeof i.goodsId=="number"?o.goodsId=n.longs===String?String(i.goodsId):i.goodsId:o.goodsId=n.longs===String?r.Long.prototype.toString.call(i.goodsId):n.longs===Number?new r.LongBits(i.goodsId.low>>>0,i.goodsId.high>>>0).toNumber():i.goodsId),i.content!=null&&i.hasOwnProperty("content")&&(o.content=u.dynamic.CreateContent.toObject(i.content,n)),i.scene!=null&&i.hasOwnProperty("scene")&&(o.scene=n.enums===String?u.dynamic.CreateScene[i.scene]===void 0?i.scene:u.dynamic.CreateScene[i.scene]:i.scene),i.pics&&i.pics.length){o.pics=[];for(let a=0;a>>3){case 1:{a.dynId=i.int64();break}case 2:{a.dynType=i.int64();break}case 3:{a.dynRid=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.dynamic.feed.v1.ICreateResp)return i;let n=new u.bilibili.main.dynamic.feed.v1.ICreateResp;return i.dynId!=null&&(r.Long?(n.dynId=r.Long.fromValue(i.dynId)).unsigned=!1:typeof i.dynId=="string"?n.dynId=parseInt(i.dynId,10):typeof i.dynId=="number"?n.dynId=i.dynId:typeof i.dynId=="object"&&(n.dynId=new r.LongBits(i.dynId.low>>>0,i.dynId.high>>>0).toNumber())),i.dynType!=null&&(r.Long?(n.dynType=r.Long.fromValue(i.dynType)).unsigned=!1:typeof i.dynType=="string"?n.dynType=parseInt(i.dynType,10):typeof i.dynType=="number"?n.dynType=i.dynType:typeof i.dynType=="object"&&(n.dynType=new r.LongBits(i.dynType.low>>>0,i.dynType.high>>>0).toNumber())),i.dynRid!=null&&(r.Long?(n.dynRid=r.Long.fromValue(i.dynRid)).unsigned=!1:typeof i.dynRid=="string"?n.dynRid=parseInt(i.dynRid,10):typeof i.dynRid=="number"?n.dynRid=i.dynRid:typeof i.dynRid=="object"&&(n.dynRid=new r.LongBits(i.dynRid.low>>>0,i.dynRid.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.dynId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.dynId=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.dynType=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.dynType=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.dynRid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.dynRid=n.longs===String?"0":0}return i.dynId!=null&&i.hasOwnProperty("dynId")&&(typeof i.dynId=="number"?o.dynId=n.longs===String?String(i.dynId):i.dynId:o.dynId=n.longs===String?r.Long.prototype.toString.call(i.dynId):n.longs===Number?new r.LongBits(i.dynId.low>>>0,i.dynId.high>>>0).toNumber():i.dynId),i.dynType!=null&&i.hasOwnProperty("dynType")&&(typeof i.dynType=="number"?o.dynType=n.longs===String?String(i.dynType):i.dynType:o.dynType=n.longs===String?r.Long.prototype.toString.call(i.dynType):n.longs===Number?new r.LongBits(i.dynType.low>>>0,i.dynType.high>>>0).toNumber():i.dynType),i.dynRid!=null&&i.hasOwnProperty("dynRid")&&(typeof i.dynRid=="number"?o.dynRid=n.longs===String?String(i.dynRid):i.dynRid:o.dynRid=n.longs===String?r.Long.prototype.toString.call(i.dynRid):n.longs===Number?new r.LongBits(i.dynRid.low>>>0,i.dynRid.high>>>0).toNumber():i.dynRid),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.dynamic.feed.v1.ICreateResp"},l}(),e.CreatePageInfosReq=function(){function l(t){if(this.goods=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.topicId=i.int64();break}case 2:{a.commercialEntityType=i.int64();break}case 3:{a.commercialEntityId=i.int64();break}case 4:{a.scene=i.int32();break}case 5:{a.goods&&a.goods.length||(a.goods=[]),a.goods.push(u.dynamic.GoodsContent.decode(i,i.uint32()));break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.dynamic.feed.v1.CreatePageInfosReq)return i;let n=new u.bilibili.main.dynamic.feed.v1.CreatePageInfosReq;switch(i.topicId!=null&&(r.Long?(n.topicId=r.Long.fromValue(i.topicId)).unsigned=!1:typeof i.topicId=="string"?n.topicId=parseInt(i.topicId,10):typeof i.topicId=="number"?n.topicId=i.topicId:typeof i.topicId=="object"&&(n.topicId=new r.LongBits(i.topicId.low>>>0,i.topicId.high>>>0).toNumber())),i.commercialEntityType!=null&&(r.Long?(n.commercialEntityType=r.Long.fromValue(i.commercialEntityType)).unsigned=!1:typeof i.commercialEntityType=="string"?n.commercialEntityType=parseInt(i.commercialEntityType,10):typeof i.commercialEntityType=="number"?n.commercialEntityType=i.commercialEntityType:typeof i.commercialEntityType=="object"&&(n.commercialEntityType=new r.LongBits(i.commercialEntityType.low>>>0,i.commercialEntityType.high>>>0).toNumber())),i.commercialEntityId!=null&&(r.Long?(n.commercialEntityId=r.Long.fromValue(i.commercialEntityId)).unsigned=!1:typeof i.commercialEntityId=="string"?n.commercialEntityId=parseInt(i.commercialEntityId,10):typeof i.commercialEntityId=="number"?n.commercialEntityId=i.commercialEntityId:typeof i.commercialEntityId=="object"&&(n.commercialEntityId=new r.LongBits(i.commercialEntityId.low>>>0,i.commercialEntityId.high>>>0).toNumber())),i.scene){default:if(typeof i.scene=="number"){n.scene=i.scene;break}break;case"CREATE_SCENE_INVALID":case 0:n.scene=0;break;case"CREATE_SCENE_CREATE_WORD":case 1:n.scene=1;break;case"CREATE_SCENE_CREATE_DRAW":case 2:n.scene=2;break;case"CREATE_SCENE_CREATE_DYN_VIDEO":case 3:n.scene=3;break;case"CREATE_SCENE_REPOST":case 4:n.scene=4;break;case"CREATE_SCENE_SHARE_BIZ":case 5:n.scene=5;break;case"CREATE_SCENE_SHARE_PAGE":case 6:n.scene=6;break;case"CREATE_SCENE_SHARE_PROGRAM":case 7:n.scene=7;break;case"CREATE_SCENE_REPLY_SYNC":case 8:n.scene=8;break;case"CREATE_SCENE_REPLY_CREATE_ACTIVITY":case 9:n.scene=9;break;case"CREATE_SCENE_CREATE_AD":case 10:n.scene=10;break;case"CREATE_SCENE_CREATE_LIVE_RCMD":case 11:n.scene=11;break;case"CREATE_SCENE_CREATE_ARTICLE":case 12:n.scene=12;break}if(i.goods){if(!Array.isArray(i.goods))throw TypeError(".bilibili.main.dynamic.feed.v1.CreatePageInfosReq.goods: array expected");n.goods=[];for(let o=0;o>>0,i.topicId.high>>>0).toNumber():i.topicId),i.commercialEntityType!=null&&i.hasOwnProperty("commercialEntityType")&&(typeof i.commercialEntityType=="number"?o.commercialEntityType=n.longs===String?String(i.commercialEntityType):i.commercialEntityType:o.commercialEntityType=n.longs===String?r.Long.prototype.toString.call(i.commercialEntityType):n.longs===Number?new r.LongBits(i.commercialEntityType.low>>>0,i.commercialEntityType.high>>>0).toNumber():i.commercialEntityType),i.commercialEntityId!=null&&i.hasOwnProperty("commercialEntityId")&&(typeof i.commercialEntityId=="number"?o.commercialEntityId=n.longs===String?String(i.commercialEntityId):i.commercialEntityId:o.commercialEntityId=n.longs===String?r.Long.prototype.toString.call(i.commercialEntityId):n.longs===Number?new r.LongBits(i.commercialEntityId.low>>>0,i.commercialEntityId.high>>>0).toNumber():i.commercialEntityId),i.scene!=null&&i.hasOwnProperty("scene")&&(o.scene=n.enums===String?u.dynamic.CreateScene[i.scene]===void 0?i.scene:u.dynamic.CreateScene[i.scene]:i.scene),i.goods&&i.goods.length){o.goods=[];for(let a=0;a>>3){case 1:{a.topicId=i.int64();break}case 2:{a.topicName=i.string();break}case 3:{a.hint=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.dynamic.feed.v1.CreatePageTopicInfo)return i;let n=new u.bilibili.main.dynamic.feed.v1.CreatePageTopicInfo;return i.topicId!=null&&(r.Long?(n.topicId=r.Long.fromValue(i.topicId)).unsigned=!1:typeof i.topicId=="string"?n.topicId=parseInt(i.topicId,10):typeof i.topicId=="number"?n.topicId=i.topicId:typeof i.topicId=="object"&&(n.topicId=new r.LongBits(i.topicId.low>>>0,i.topicId.high>>>0).toNumber())),i.topicName!=null&&(n.topicName=String(i.topicName)),i.hint!=null&&(n.hint=String(i.hint)),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.topicId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.topicId=n.longs===String?"0":0;o.topicName="",o.hint=""}return i.topicId!=null&&i.hasOwnProperty("topicId")&&(typeof i.topicId=="number"?o.topicId=n.longs===String?String(i.topicId):i.topicId:o.topicId=n.longs===String?r.Long.prototype.toString.call(i.topicId):n.longs===Number?new r.LongBits(i.topicId.low>>>0,i.topicId.high>>>0).toNumber():i.topicId),i.topicName!=null&&i.hasOwnProperty("topicName")&&(o.topicName=i.topicName),i.hint!=null&&i.hasOwnProperty("hint")&&(o.hint=i.hint),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.dynamic.feed.v1.CreatePageTopicInfo"},l}(),e.CreatePageCommercialInfo=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.labelText=i.string();break}case 2:{a.desc=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.dynamic.feed.v1.CreatePageCommercialInfo)return i;let n=new u.bilibili.main.dynamic.feed.v1.CreatePageCommercialInfo;return i.labelText!=null&&(n.labelText=String(i.labelText)),i.desc!=null&&(n.desc=String(i.desc)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.labelText="",o.desc=""),i.labelText!=null&&i.hasOwnProperty("labelText")&&(o.labelText=i.labelText),i.desc!=null&&i.hasOwnProperty("desc")&&(o.desc=i.desc),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.dynamic.feed.v1.CreatePageCommercialInfo"},l}(),e.CreatePageInfosRsp=function(){function l(t){if(this.goods=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.topic=u.bilibili.main.dynamic.feed.v1.CreatePageTopicInfo.decode(i,i.uint32());break}case 2:{a.commercial=u.bilibili.main.dynamic.feed.v1.CreatePageCommercialInfo.decode(i,i.uint32());break}case 3:{a.goods&&a.goods.length||(a.goods=[]),a.goods.push(u.bilibili.main.dynamic.feed.v1.GoodsItem.decode(i,i.uint32()));break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.dynamic.feed.v1.CreatePageInfosRsp)return i;let n=new u.bilibili.main.dynamic.feed.v1.CreatePageInfosRsp;if(i.topic!=null){if(typeof i.topic!="object")throw TypeError(".bilibili.main.dynamic.feed.v1.CreatePageInfosRsp.topic: object expected");n.topic=u.bilibili.main.dynamic.feed.v1.CreatePageTopicInfo.fromObject(i.topic)}if(i.commercial!=null){if(typeof i.commercial!="object")throw TypeError(".bilibili.main.dynamic.feed.v1.CreatePageInfosRsp.commercial: object expected");n.commercial=u.bilibili.main.dynamic.feed.v1.CreatePageCommercialInfo.fromObject(i.commercial)}if(i.goods){if(!Array.isArray(i.goods))throw TypeError(".bilibili.main.dynamic.feed.v1.CreatePageInfosRsp.goods: array expected");n.goods=[];for(let o=0;o>>3){case 1:{a.content=u.dynamic.CreateContent.decode(i,i.uint32());break}case 2:{a.pics&&a.pics.length||(a.pics=[]),a.pics.push(u.dynamic.CreatePic.decode(i,i.uint32()));break}case 3:{a.attachCard=u.dynamic.CreateAttachCard.decode(i,i.uint32());break}case 4:{a.scene=i.int32();break}case 5:{a.createOption=u.dynamic.CreateOption.decode(i,i.uint32());break}case 6:{a.opus=u.opus.Opus.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.dynamic.feed.v1.SubmitCheckReq)return i;let n=new u.bilibili.main.dynamic.feed.v1.SubmitCheckReq;if(i.content!=null){if(typeof i.content!="object")throw TypeError(".bilibili.main.dynamic.feed.v1.SubmitCheckReq.content: object expected");n.content=u.dynamic.CreateContent.fromObject(i.content)}if(i.pics){if(!Array.isArray(i.pics))throw TypeError(".bilibili.main.dynamic.feed.v1.SubmitCheckReq.pics: array expected");n.pics=[];for(let o=0;o>>3){default:i.skipType(y&7);break}}return a},l.fromObject=function(i){return i instanceof u.bilibili.main.dynamic.feed.v1.SubmitCheckRsp?i:new u.bilibili.main.dynamic.feed.v1.SubmitCheckRsp},l.toObject=function(){return{}},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.dynamic.feed.v1.SubmitCheckRsp"},l}(),e.CreateInitCheckReq=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.scene=i.int32();break}case 2:{a.meta=u.dynamic.MetaDataCtrl.decode(i,i.uint32());break}case 3:{a.repost=u.dynamic.RepostInitCheck.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.dynamic.feed.v1.CreateInitCheckReq)return i;let n=new u.bilibili.main.dynamic.feed.v1.CreateInitCheckReq;switch(i.scene){default:if(typeof i.scene=="number"){n.scene=i.scene;break}break;case"CREATE_INIT_CHECK_SCENE_INVALID":case 0:n.scene=0;break;case"CREATE_INIT_CHECK_SCENE_NORMAL":case 1:n.scene=1;break;case"CREATE_INIT_CHECK_SCENE_REPOST":case 2:n.scene=2;break;case"CREATE_INIT_CHECK_SCENE_SHARE":case 3:n.scene=3;break;case"CREATE_INIT_CHECK_SCENE_RESERVE_SHARE":case 4:n.scene=4;break;case"CREATE_INIT_CHECK_SCENE_ARTICLE":case 5:n.scene=5;break}if(i.meta!=null){if(typeof i.meta!="object")throw TypeError(".bilibili.main.dynamic.feed.v1.CreateInitCheckReq.meta: object expected");n.meta=u.dynamic.MetaDataCtrl.fromObject(i.meta)}if(i.repost!=null){if(typeof i.repost!="object")throw TypeError(".bilibili.main.dynamic.feed.v1.CreateInitCheckReq.repost: object expected");n.repost=u.dynamic.RepostInitCheck.fromObject(i.repost)}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.scene=n.enums===String?"CREATE_INIT_CHECK_SCENE_INVALID":0,o.meta=null,o.repost=null),i.scene!=null&&i.hasOwnProperty("scene")&&(o.scene=n.enums===String?u.dynamic.CreateInitCheckScene[i.scene]===void 0?i.scene:u.dynamic.CreateInitCheckScene[i.scene]:i.scene),i.meta!=null&&i.hasOwnProperty("meta")&&(o.meta=u.dynamic.MetaDataCtrl.toObject(i.meta,n)),i.repost!=null&&i.hasOwnProperty("repost")&&(o.repost=u.dynamic.RepostInitCheck.toObject(i.repost,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.dynamic.feed.v1.CreateInitCheckReq"},l}(),e.CreateDynReq=function(){function l(t){if(this.pics=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.meta=u.dynamic.UserCreateMeta.decode(i,i.uint32());break}case 2:{a.content=u.dynamic.CreateContent.decode(i,i.uint32());break}case 3:{a.scene=i.int32();break}case 4:{a.pics&&a.pics.length||(a.pics=[]),a.pics.push(u.dynamic.CreatePic.decode(i,i.uint32()));break}case 5:{a.repostSrc=u.dynamic.DynIdentity.decode(i,i.uint32());break}case 6:{a.video=u.dynamic.CreateDynVideo.decode(i,i.uint32());break}case 7:{a.sketchType=i.int64();break}case 8:{a.sketch=u.dynamic.Sketch.decode(i,i.uint32());break}case 9:{a.program=u.dynamic.Program.decode(i,i.uint32());break}case 10:{a.dynTag=u.dynamic.CreateTag.decode(i,i.uint32());break}case 11:{a.attachCard=u.dynamic.CreateAttachCard.decode(i,i.uint32());break}case 12:{a.option=u.dynamic.CreateOption.decode(i,i.uint32());break}case 13:{a.topic=u.dynamic.CreateTopic.decode(i,i.uint32());break}case 14:{a.uploadId=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.dynamic.feed.v1.CreateDynReq)return i;let n=new u.bilibili.main.dynamic.feed.v1.CreateDynReq;if(i.meta!=null){if(typeof i.meta!="object")throw TypeError(".bilibili.main.dynamic.feed.v1.CreateDynReq.meta: object expected");n.meta=u.dynamic.UserCreateMeta.fromObject(i.meta)}if(i.content!=null){if(typeof i.content!="object")throw TypeError(".bilibili.main.dynamic.feed.v1.CreateDynReq.content: object expected");n.content=u.dynamic.CreateContent.fromObject(i.content)}switch(i.scene){default:if(typeof i.scene=="number"){n.scene=i.scene;break}break;case"CREATE_SCENE_INVALID":case 0:n.scene=0;break;case"CREATE_SCENE_CREATE_WORD":case 1:n.scene=1;break;case"CREATE_SCENE_CREATE_DRAW":case 2:n.scene=2;break;case"CREATE_SCENE_CREATE_DYN_VIDEO":case 3:n.scene=3;break;case"CREATE_SCENE_REPOST":case 4:n.scene=4;break;case"CREATE_SCENE_SHARE_BIZ":case 5:n.scene=5;break;case"CREATE_SCENE_SHARE_PAGE":case 6:n.scene=6;break;case"CREATE_SCENE_SHARE_PROGRAM":case 7:n.scene=7;break;case"CREATE_SCENE_REPLY_SYNC":case 8:n.scene=8;break;case"CREATE_SCENE_REPLY_CREATE_ACTIVITY":case 9:n.scene=9;break;case"CREATE_SCENE_CREATE_AD":case 10:n.scene=10;break;case"CREATE_SCENE_CREATE_LIVE_RCMD":case 11:n.scene=11;break;case"CREATE_SCENE_CREATE_ARTICLE":case 12:n.scene=12;break}if(i.pics){if(!Array.isArray(i.pics))throw TypeError(".bilibili.main.dynamic.feed.v1.CreateDynReq.pics: array expected");n.pics=[];for(let o=0;o>>0,i.sketchType.high>>>0).toNumber())),i.sketch!=null){if(typeof i.sketch!="object")throw TypeError(".bilibili.main.dynamic.feed.v1.CreateDynReq.sketch: object expected");n.sketch=u.dynamic.Sketch.fromObject(i.sketch)}if(i.program!=null){if(typeof i.program!="object")throw TypeError(".bilibili.main.dynamic.feed.v1.CreateDynReq.program: object expected");n.program=u.dynamic.Program.fromObject(i.program)}if(i.dynTag!=null){if(typeof i.dynTag!="object")throw TypeError(".bilibili.main.dynamic.feed.v1.CreateDynReq.dynTag: object expected");n.dynTag=u.dynamic.CreateTag.fromObject(i.dynTag)}if(i.attachCard!=null){if(typeof i.attachCard!="object")throw TypeError(".bilibili.main.dynamic.feed.v1.CreateDynReq.attachCard: object expected");n.attachCard=u.dynamic.CreateAttachCard.fromObject(i.attachCard)}if(i.option!=null){if(typeof i.option!="object")throw TypeError(".bilibili.main.dynamic.feed.v1.CreateDynReq.option: object expected");n.option=u.dynamic.CreateOption.fromObject(i.option)}if(i.topic!=null){if(typeof i.topic!="object")throw TypeError(".bilibili.main.dynamic.feed.v1.CreateDynReq.topic: object expected");n.topic=u.dynamic.CreateTopic.fromObject(i.topic)}return i.uploadId!=null&&(n.uploadId=String(i.uploadId)),n},l.toObject=function(i,n){n||(n={});let o={};if((n.arrays||n.defaults)&&(o.pics=[]),n.defaults){if(o.meta=null,o.content=null,o.scene=n.enums===String?"CREATE_SCENE_INVALID":0,o.repostSrc=null,o.video=null,r.Long){let a=new r.Long(0,0,!1);o.sketchType=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.sketchType=n.longs===String?"0":0;o.sketch=null,o.program=null,o.dynTag=null,o.attachCard=null,o.option=null,o.topic=null,o.uploadId=""}if(i.meta!=null&&i.hasOwnProperty("meta")&&(o.meta=u.dynamic.UserCreateMeta.toObject(i.meta,n)),i.content!=null&&i.hasOwnProperty("content")&&(o.content=u.dynamic.CreateContent.toObject(i.content,n)),i.scene!=null&&i.hasOwnProperty("scene")&&(o.scene=n.enums===String?u.dynamic.CreateScene[i.scene]===void 0?i.scene:u.dynamic.CreateScene[i.scene]:i.scene),i.pics&&i.pics.length){o.pics=[];for(let a=0;a>>0,i.sketchType.high>>>0).toNumber():i.sketchType),i.sketch!=null&&i.hasOwnProperty("sketch")&&(o.sketch=u.dynamic.Sketch.toObject(i.sketch,n)),i.program!=null&&i.hasOwnProperty("program")&&(o.program=u.dynamic.Program.toObject(i.program,n)),i.dynTag!=null&&i.hasOwnProperty("dynTag")&&(o.dynTag=u.dynamic.CreateTag.toObject(i.dynTag,n)),i.attachCard!=null&&i.hasOwnProperty("attachCard")&&(o.attachCard=u.dynamic.CreateAttachCard.toObject(i.attachCard,n)),i.option!=null&&i.hasOwnProperty("option")&&(o.option=u.dynamic.CreateOption.toObject(i.option,n)),i.topic!=null&&i.hasOwnProperty("topic")&&(o.topic=u.dynamic.CreateTopic.toObject(i.topic,n)),i.uploadId!=null&&i.hasOwnProperty("uploadId")&&(o.uploadId=i.uploadId),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.dynamic.feed.v1.CreateDynReq"},l}(),e.ReserveButtonMode=function(){let l={},t=Object.create(l);return t[l[0]="RESERVE_BUTTON_MODE_NONE"]=0,t[l[1]="RESERVE_BUTTON_MODE_RESERVE"]=1,t[l[2]="RESERVE_BUTTON_MODE_UP_CANCEL"]=2,t}(),e.ReserveButtonStatus=function(){let l={},t=Object.create(l);return t[l[0]="RESERVE_BUTTON_STATUS_NONE"]=0,t[l[1]="RESERVE_BUTTON_STATUS_UNCHECK"]=1,t[l[2]="RESERVE_BUTTON_STATUS_CHECK"]=2,t}(),e.ReserveCalendarInfo=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.title=i.string();break}case 2:{a.startTs=i.int64();break}case 3:{a.endTs=i.int64();break}case 4:{a.description=i.string();break}case 5:{a.bussinessId=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.dynamic.feed.v1.ReserveCalendarInfo)return i;let n=new u.bilibili.main.dynamic.feed.v1.ReserveCalendarInfo;return i.title!=null&&(n.title=String(i.title)),i.startTs!=null&&(r.Long?(n.startTs=r.Long.fromValue(i.startTs)).unsigned=!1:typeof i.startTs=="string"?n.startTs=parseInt(i.startTs,10):typeof i.startTs=="number"?n.startTs=i.startTs:typeof i.startTs=="object"&&(n.startTs=new r.LongBits(i.startTs.low>>>0,i.startTs.high>>>0).toNumber())),i.endTs!=null&&(r.Long?(n.endTs=r.Long.fromValue(i.endTs)).unsigned=!1:typeof i.endTs=="string"?n.endTs=parseInt(i.endTs,10):typeof i.endTs=="number"?n.endTs=i.endTs:typeof i.endTs=="object"&&(n.endTs=new r.LongBits(i.endTs.low>>>0,i.endTs.high>>>0).toNumber())),i.description!=null&&(n.description=String(i.description)),i.bussinessId!=null&&(n.bussinessId=String(i.bussinessId)),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(o.title="",r.Long){let a=new r.Long(0,0,!1);o.startTs=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.startTs=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.endTs=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.endTs=n.longs===String?"0":0;o.description="",o.bussinessId=""}return i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.startTs!=null&&i.hasOwnProperty("startTs")&&(typeof i.startTs=="number"?o.startTs=n.longs===String?String(i.startTs):i.startTs:o.startTs=n.longs===String?r.Long.prototype.toString.call(i.startTs):n.longs===Number?new r.LongBits(i.startTs.low>>>0,i.startTs.high>>>0).toNumber():i.startTs),i.endTs!=null&&i.hasOwnProperty("endTs")&&(typeof i.endTs=="number"?o.endTs=n.longs===String?String(i.endTs):i.endTs:o.endTs=n.longs===String?r.Long.prototype.toString.call(i.endTs):n.longs===Number?new r.LongBits(i.endTs.low>>>0,i.endTs.high>>>0).toNumber():i.endTs),i.description!=null&&i.hasOwnProperty("description")&&(o.description=i.description),i.bussinessId!=null&&i.hasOwnProperty("bussinessId")&&(o.bussinessId=i.bussinessId),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.dynamic.feed.v1.ReserveCalendarInfo"},l}(),e.ReserveButtonClickReq=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.uid=i.int64();break}case 2:{a.reserveId=i.int64();break}case 3:{a.reserveTotal=i.int64();break}case 4:{a.curBtnStatus=i.int32();break}case 5:{a.spmid=i.string();break}case 6:{a.dynId=i.int64();break}case 7:{a.dynType=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.dynamic.feed.v1.ReserveButtonClickReq)return i;let n=new u.bilibili.main.dynamic.feed.v1.ReserveButtonClickReq;switch(i.uid!=null&&(r.Long?(n.uid=r.Long.fromValue(i.uid)).unsigned=!1:typeof i.uid=="string"?n.uid=parseInt(i.uid,10):typeof i.uid=="number"?n.uid=i.uid:typeof i.uid=="object"&&(n.uid=new r.LongBits(i.uid.low>>>0,i.uid.high>>>0).toNumber())),i.reserveId!=null&&(r.Long?(n.reserveId=r.Long.fromValue(i.reserveId)).unsigned=!1:typeof i.reserveId=="string"?n.reserveId=parseInt(i.reserveId,10):typeof i.reserveId=="number"?n.reserveId=i.reserveId:typeof i.reserveId=="object"&&(n.reserveId=new r.LongBits(i.reserveId.low>>>0,i.reserveId.high>>>0).toNumber())),i.reserveTotal!=null&&(r.Long?(n.reserveTotal=r.Long.fromValue(i.reserveTotal)).unsigned=!1:typeof i.reserveTotal=="string"?n.reserveTotal=parseInt(i.reserveTotal,10):typeof i.reserveTotal=="number"?n.reserveTotal=i.reserveTotal:typeof i.reserveTotal=="object"&&(n.reserveTotal=new r.LongBits(i.reserveTotal.low>>>0,i.reserveTotal.high>>>0).toNumber())),i.curBtnStatus){default:if(typeof i.curBtnStatus=="number"){n.curBtnStatus=i.curBtnStatus;break}break;case"RESERVE_BUTTON_STATUS_NONE":case 0:n.curBtnStatus=0;break;case"RESERVE_BUTTON_STATUS_UNCHECK":case 1:n.curBtnStatus=1;break;case"RESERVE_BUTTON_STATUS_CHECK":case 2:n.curBtnStatus=2;break}return i.spmid!=null&&(n.spmid=String(i.spmid)),i.dynId!=null&&(r.Long?(n.dynId=r.Long.fromValue(i.dynId)).unsigned=!1:typeof i.dynId=="string"?n.dynId=parseInt(i.dynId,10):typeof i.dynId=="number"?n.dynId=i.dynId:typeof i.dynId=="object"&&(n.dynId=new r.LongBits(i.dynId.low>>>0,i.dynId.high>>>0).toNumber())),i.dynType!=null&&(r.Long?(n.dynType=r.Long.fromValue(i.dynType)).unsigned=!1:typeof i.dynType=="string"?n.dynType=parseInt(i.dynType,10):typeof i.dynType=="number"?n.dynType=i.dynType:typeof i.dynType=="object"&&(n.dynType=new r.LongBits(i.dynType.low>>>0,i.dynType.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.uid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.uid=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.reserveId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.reserveId=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.reserveTotal=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.reserveTotal=n.longs===String?"0":0;if(o.curBtnStatus=n.enums===String?"RESERVE_BUTTON_STATUS_NONE":0,o.spmid="",r.Long){let a=new r.Long(0,0,!1);o.dynId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.dynId=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.dynType=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.dynType=n.longs===String?"0":0}return i.uid!=null&&i.hasOwnProperty("uid")&&(typeof i.uid=="number"?o.uid=n.longs===String?String(i.uid):i.uid:o.uid=n.longs===String?r.Long.prototype.toString.call(i.uid):n.longs===Number?new r.LongBits(i.uid.low>>>0,i.uid.high>>>0).toNumber():i.uid),i.reserveId!=null&&i.hasOwnProperty("reserveId")&&(typeof i.reserveId=="number"?o.reserveId=n.longs===String?String(i.reserveId):i.reserveId:o.reserveId=n.longs===String?r.Long.prototype.toString.call(i.reserveId):n.longs===Number?new r.LongBits(i.reserveId.low>>>0,i.reserveId.high>>>0).toNumber():i.reserveId),i.reserveTotal!=null&&i.hasOwnProperty("reserveTotal")&&(typeof i.reserveTotal=="number"?o.reserveTotal=n.longs===String?String(i.reserveTotal):i.reserveTotal:o.reserveTotal=n.longs===String?r.Long.prototype.toString.call(i.reserveTotal):n.longs===Number?new r.LongBits(i.reserveTotal.low>>>0,i.reserveTotal.high>>>0).toNumber():i.reserveTotal),i.curBtnStatus!=null&&i.hasOwnProperty("curBtnStatus")&&(o.curBtnStatus=n.enums===String?u.bilibili.main.dynamic.feed.v1.ReserveButtonStatus[i.curBtnStatus]===void 0?i.curBtnStatus:u.bilibili.main.dynamic.feed.v1.ReserveButtonStatus[i.curBtnStatus]:i.curBtnStatus),i.spmid!=null&&i.hasOwnProperty("spmid")&&(o.spmid=i.spmid),i.dynId!=null&&i.hasOwnProperty("dynId")&&(typeof i.dynId=="number"?o.dynId=n.longs===String?String(i.dynId):i.dynId:o.dynId=n.longs===String?r.Long.prototype.toString.call(i.dynId):n.longs===Number?new r.LongBits(i.dynId.low>>>0,i.dynId.high>>>0).toNumber():i.dynId),i.dynType!=null&&i.hasOwnProperty("dynType")&&(typeof i.dynType=="number"?o.dynType=n.longs===String?String(i.dynType):i.dynType:o.dynType=n.longs===String?r.Long.prototype.toString.call(i.dynType):n.longs===Number?new r.LongBits(i.dynType.low>>>0,i.dynType.high>>>0).toNumber():i.dynType),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.dynamic.feed.v1.ReserveButtonClickReq"},l}(),e.ReserveButtonClickResp=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.finalBtnStatus=i.int32();break}case 2:{a.btnMode=i.int32();break}case 3:{a.reserveUpdate=i.int64();break}case 4:{a.descUpdate=i.string();break}case 5:{a.hasActivity=i.bool();break}case 6:{a.activityUrl=i.string();break}case 7:{a.toast=i.string();break}case 8:{a.reserveCalendarInfo=u.bilibili.main.dynamic.feed.v1.ReserveCalendarInfo.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.dynamic.feed.v1.ReserveButtonClickResp)return i;let n=new u.bilibili.main.dynamic.feed.v1.ReserveButtonClickResp;switch(i.finalBtnStatus){default:if(typeof i.finalBtnStatus=="number"){n.finalBtnStatus=i.finalBtnStatus;break}break;case"RESERVE_BUTTON_STATUS_NONE":case 0:n.finalBtnStatus=0;break;case"RESERVE_BUTTON_STATUS_UNCHECK":case 1:n.finalBtnStatus=1;break;case"RESERVE_BUTTON_STATUS_CHECK":case 2:n.finalBtnStatus=2;break}switch(i.btnMode){default:if(typeof i.btnMode=="number"){n.btnMode=i.btnMode;break}break;case"RESERVE_BUTTON_MODE_NONE":case 0:n.btnMode=0;break;case"RESERVE_BUTTON_MODE_RESERVE":case 1:n.btnMode=1;break;case"RESERVE_BUTTON_MODE_UP_CANCEL":case 2:n.btnMode=2;break}if(i.reserveUpdate!=null&&(r.Long?(n.reserveUpdate=r.Long.fromValue(i.reserveUpdate)).unsigned=!1:typeof i.reserveUpdate=="string"?n.reserveUpdate=parseInt(i.reserveUpdate,10):typeof i.reserveUpdate=="number"?n.reserveUpdate=i.reserveUpdate:typeof i.reserveUpdate=="object"&&(n.reserveUpdate=new r.LongBits(i.reserveUpdate.low>>>0,i.reserveUpdate.high>>>0).toNumber())),i.descUpdate!=null&&(n.descUpdate=String(i.descUpdate)),i.hasActivity!=null&&(n.hasActivity=!!i.hasActivity),i.activityUrl!=null&&(n.activityUrl=String(i.activityUrl)),i.toast!=null&&(n.toast=String(i.toast)),i.reserveCalendarInfo!=null){if(typeof i.reserveCalendarInfo!="object")throw TypeError(".bilibili.main.dynamic.feed.v1.ReserveButtonClickResp.reserveCalendarInfo: object expected");n.reserveCalendarInfo=u.bilibili.main.dynamic.feed.v1.ReserveCalendarInfo.fromObject(i.reserveCalendarInfo)}return n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(o.finalBtnStatus=n.enums===String?"RESERVE_BUTTON_STATUS_NONE":0,o.btnMode=n.enums===String?"RESERVE_BUTTON_MODE_NONE":0,r.Long){let a=new r.Long(0,0,!1);o.reserveUpdate=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.reserveUpdate=n.longs===String?"0":0;o.descUpdate="",o.hasActivity=!1,o.activityUrl="",o.toast="",o.reserveCalendarInfo=null}return i.finalBtnStatus!=null&&i.hasOwnProperty("finalBtnStatus")&&(o.finalBtnStatus=n.enums===String?u.bilibili.main.dynamic.feed.v1.ReserveButtonStatus[i.finalBtnStatus]===void 0?i.finalBtnStatus:u.bilibili.main.dynamic.feed.v1.ReserveButtonStatus[i.finalBtnStatus]:i.finalBtnStatus),i.btnMode!=null&&i.hasOwnProperty("btnMode")&&(o.btnMode=n.enums===String?u.bilibili.main.dynamic.feed.v1.ReserveButtonMode[i.btnMode]===void 0?i.btnMode:u.bilibili.main.dynamic.feed.v1.ReserveButtonMode[i.btnMode]:i.btnMode),i.reserveUpdate!=null&&i.hasOwnProperty("reserveUpdate")&&(typeof i.reserveUpdate=="number"?o.reserveUpdate=n.longs===String?String(i.reserveUpdate):i.reserveUpdate:o.reserveUpdate=n.longs===String?r.Long.prototype.toString.call(i.reserveUpdate):n.longs===Number?new r.LongBits(i.reserveUpdate.low>>>0,i.reserveUpdate.high>>>0).toNumber():i.reserveUpdate),i.descUpdate!=null&&i.hasOwnProperty("descUpdate")&&(o.descUpdate=i.descUpdate),i.hasActivity!=null&&i.hasOwnProperty("hasActivity")&&(o.hasActivity=i.hasActivity),i.activityUrl!=null&&i.hasOwnProperty("activityUrl")&&(o.activityUrl=i.activityUrl),i.toast!=null&&i.hasOwnProperty("toast")&&(o.toast=i.toast),i.reserveCalendarInfo!=null&&i.hasOwnProperty("reserveCalendarInfo")&&(o.reserveCalendarInfo=u.bilibili.main.dynamic.feed.v1.ReserveCalendarInfo.toObject(i.reserveCalendarInfo,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.dynamic.feed.v1.ReserveButtonClickResp"},l}(),e.CreatePlusButtonClickReq=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){default:i.skipType(y&7);break}}return a},l.fromObject=function(i){return i instanceof u.bilibili.main.dynamic.feed.v1.CreatePlusButtonClickReq?i:new u.bilibili.main.dynamic.feed.v1.CreatePlusButtonClickReq},l.toObject=function(){return{}},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.dynamic.feed.v1.CreatePlusButtonClickReq"},l}(),e.CreatePlusButtonClickRsp=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){default:i.skipType(y&7);break}}return a},l.fromObject=function(i){return i instanceof u.bilibili.main.dynamic.feed.v1.CreatePlusButtonClickRsp?i:new u.bilibili.main.dynamic.feed.v1.CreatePlusButtonClickRsp},l.toObject=function(){return{}},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.dynamic.feed.v1.CreatePlusButtonClickRsp"},l}(),e.HotSearchReq=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){default:i.skipType(y&7);break}}return a},l.fromObject=function(i){return i instanceof u.bilibili.main.dynamic.feed.v1.HotSearchReq?i:new u.bilibili.main.dynamic.feed.v1.HotSearchReq},l.toObject=function(){return{}},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.dynamic.feed.v1.HotSearchReq"},l}(),e.HotSearchRsp=function(){function l(t){if(this.items=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.items&&a.items.length||(a.items=[]),a.items.push(u.bilibili.main.dynamic.feed.v1.HotSearchRsp.Item.decode(i,i.uint32()));break}case 2:{a.version=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.dynamic.feed.v1.HotSearchRsp)return i;let n=new u.bilibili.main.dynamic.feed.v1.HotSearchRsp;if(i.items){if(!Array.isArray(i.items))throw TypeError(".bilibili.main.dynamic.feed.v1.HotSearchRsp.items: array expected");n.items=[];for(let o=0;o>>3){case 1:{y.words=n.string();break}default:n.skipType(s&7);break}}return y},t.fromObject=function(n){if(n instanceof u.bilibili.main.dynamic.feed.v1.HotSearchRsp.Item)return n;let o=new u.bilibili.main.dynamic.feed.v1.HotSearchRsp.Item;return n.words!=null&&(o.words=String(n.words)),o},t.toObject=function(n,o){o||(o={});let a={};return o.defaults&&(a.words=""),n.words!=null&&n.hasOwnProperty("words")&&(a.words=n.words),a},t.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},t.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/bilibili.main.dynamic.feed.v1.HotSearchRsp.Item"},t}(),l}(),e.SuggestReq=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.s=i.string();break}case 2:{a.type=i.int32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.dynamic.feed.v1.SuggestReq)return i;let n=new u.bilibili.main.dynamic.feed.v1.SuggestReq;return i.s!=null&&(n.s=String(i.s)),i.type!=null&&(n.type=i.type|0),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.s="",o.type=0),i.s!=null&&i.hasOwnProperty("s")&&(o.s=i.s),i.type!=null&&i.hasOwnProperty("type")&&(o.type=i.type),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.dynamic.feed.v1.SuggestReq"},l}(),e.SuggestRsp=function(){function l(t){if(this.list=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.list&&a.list.length||(a.list=[]),a.list.push(i.string());break}case 2:{a.trackId=i.string();break}case 3:{a.version=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.dynamic.feed.v1.SuggestRsp)return i;let n=new u.bilibili.main.dynamic.feed.v1.SuggestRsp;if(i.list){if(!Array.isArray(i.list))throw TypeError(".bilibili.main.dynamic.feed.v1.SuggestRsp.list: array expected");n.list=[];for(let o=0;o>>3){case 1:{if(a.bizType&&a.bizType.length||(a.bizType=[]),(y&7)===2){let s=i.uint32()+i.pos;for(;i.pos>>3){default:i.skipType(y&7);break}}return a},l.fromObject=function(i){return i instanceof u.bilibili.main.dynamic.feed.v1.DynamicButtonClickRsp?i:new u.bilibili.main.dynamic.feed.v1.DynamicButtonClickRsp},l.toObject=function(){return{}},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.dynamic.feed.v1.DynamicButtonClickRsp"},l}(),e.CreatePermissionButtonClickReq=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.type=i.int32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.dynamic.feed.v1.CreatePermissionButtonClickReq)return i;let n=new u.bilibili.main.dynamic.feed.v1.CreatePermissionButtonClickReq;switch(i.type){default:if(typeof i.type=="number"){n.type=i.type;break}break;case"UP_PERMISSION_TYPE_NONE":case 0:n.type=0;break;case"UP_PERMISSION_TYPE_LOTTERY":case 1:n.type=1;break;case"UP_PERMISSION_TYPE_CLIP_PUBLISHED":case 2:n.type=2;break;case"UP_PERMISSION_TYPE_UGC_ATTACH_CARD":case 3:n.type=3;break;case"UP_PERMISSION_TYPE_GOODS_ATTACH_CARD":case 4:n.type=4;break;case"UP_PERMISSION_TYPE_CHOOSE_COMMENT":case 5:n.type=5;break;case"UP_PERMISSION_TYPE_CONTROL_COMMENT":case 6:n.type=6;break;case"UP_PERMISSION_TYPE_CONTROL_DANMU":case 7:n.type=7;break;case"UP_PERMISSION_TYPE_VIDEO_RESERVE":case 8:n.type=8;break;case"UP_PERMISSION_TYPE_LIVE_RESERVE":case 9:n.type=9;break;case"UP_PERMISSION_TYPE_BIZ_LINK":case 10:n.type=10;break;case"UP_PERMISSION_TYPE_COMMERCIAL":case 11:n.type=11;break;case"UP_PERMISSION_TYPE_BIG_COVER":case 12:n.type=12;break}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.type=n.enums===String?"UP_PERMISSION_TYPE_NONE":0),i.type!=null&&i.hasOwnProperty("type")&&(o.type=n.enums===String?u.dynamic.UpPermissionType[i.type]===void 0?i.type:u.dynamic.UpPermissionType[i.type]:i.type),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.dynamic.feed.v1.CreatePermissionButtonClickReq"},l}(),e.CreatePermissionButtonClickRsp=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){default:i.skipType(y&7);break}}return a},l.fromObject=function(i){return i instanceof u.bilibili.main.dynamic.feed.v1.CreatePermissionButtonClickRsp?i:new u.bilibili.main.dynamic.feed.v1.CreatePermissionButtonClickRsp},l.toObject=function(){return{}},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.dynamic.feed.v1.CreatePermissionButtonClickRsp"},l}(),e.AddDynamicReportReq=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.accusedUid=i.int64();break}case 2:{a.dynamicId=i.string();break}case 3:{a.reasonType=i.int64();break}case 4:{a.reasonDesc=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.dynamic.feed.v1.AddDynamicReportReq)return i;let n=new u.bilibili.main.dynamic.feed.v1.AddDynamicReportReq;return i.accusedUid!=null&&(r.Long?(n.accusedUid=r.Long.fromValue(i.accusedUid)).unsigned=!1:typeof i.accusedUid=="string"?n.accusedUid=parseInt(i.accusedUid,10):typeof i.accusedUid=="number"?n.accusedUid=i.accusedUid:typeof i.accusedUid=="object"&&(n.accusedUid=new r.LongBits(i.accusedUid.low>>>0,i.accusedUid.high>>>0).toNumber())),i.dynamicId!=null&&(n.dynamicId=String(i.dynamicId)),i.reasonType!=null&&(r.Long?(n.reasonType=r.Long.fromValue(i.reasonType)).unsigned=!1:typeof i.reasonType=="string"?n.reasonType=parseInt(i.reasonType,10):typeof i.reasonType=="number"?n.reasonType=i.reasonType:typeof i.reasonType=="object"&&(n.reasonType=new r.LongBits(i.reasonType.low>>>0,i.reasonType.high>>>0).toNumber())),i.reasonDesc!=null&&(n.reasonDesc=String(i.reasonDesc)),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.accusedUid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.accusedUid=n.longs===String?"0":0;if(o.dynamicId="",r.Long){let a=new r.Long(0,0,!1);o.reasonType=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.reasonType=n.longs===String?"0":0;o.reasonDesc=""}return i.accusedUid!=null&&i.hasOwnProperty("accusedUid")&&(typeof i.accusedUid=="number"?o.accusedUid=n.longs===String?String(i.accusedUid):i.accusedUid:o.accusedUid=n.longs===String?r.Long.prototype.toString.call(i.accusedUid):n.longs===Number?new r.LongBits(i.accusedUid.low>>>0,i.accusedUid.high>>>0).toNumber():i.accusedUid),i.dynamicId!=null&&i.hasOwnProperty("dynamicId")&&(o.dynamicId=i.dynamicId),i.reasonType!=null&&i.hasOwnProperty("reasonType")&&(typeof i.reasonType=="number"?o.reasonType=n.longs===String?String(i.reasonType):i.reasonType:o.reasonType=n.longs===String?r.Long.prototype.toString.call(i.reasonType):n.longs===Number?new r.LongBits(i.reasonType.low>>>0,i.reasonType.high>>>0).toNumber():i.reasonType),i.reasonDesc!=null&&i.hasOwnProperty("reasonDesc")&&(o.reasonDesc=i.reasonDesc),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.dynamic.feed.v1.AddDynamicReportReq"},l}(),e.AddDynamicReportRsp=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){default:i.skipType(y&7);break}}return a},l.fromObject=function(i){return i instanceof u.bilibili.main.dynamic.feed.v1.AddDynamicReportRsp?i:new u.bilibili.main.dynamic.feed.v1.AddDynamicReportRsp},l.toObject=function(){return{}},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.dynamic.feed.v1.AddDynamicReportRsp"},l}(),e.DynamicThumbReq=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.uid=i.int64();break}case 2:{a.dynId=i.int64();break}case 3:{a.type=i.int64();break}case 4:{a.rid=i.int64();break}case 5:{a.specType=i.int64();break}case 6:{a.up=i.int64();break}case 7:{a.from=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.dynamic.feed.v1.DynamicThumbReq)return i;let n=new u.bilibili.main.dynamic.feed.v1.DynamicThumbReq;return i.uid!=null&&(r.Long?(n.uid=r.Long.fromValue(i.uid)).unsigned=!1:typeof i.uid=="string"?n.uid=parseInt(i.uid,10):typeof i.uid=="number"?n.uid=i.uid:typeof i.uid=="object"&&(n.uid=new r.LongBits(i.uid.low>>>0,i.uid.high>>>0).toNumber())),i.dynId!=null&&(r.Long?(n.dynId=r.Long.fromValue(i.dynId)).unsigned=!1:typeof i.dynId=="string"?n.dynId=parseInt(i.dynId,10):typeof i.dynId=="number"?n.dynId=i.dynId:typeof i.dynId=="object"&&(n.dynId=new r.LongBits(i.dynId.low>>>0,i.dynId.high>>>0).toNumber())),i.type!=null&&(r.Long?(n.type=r.Long.fromValue(i.type)).unsigned=!1:typeof i.type=="string"?n.type=parseInt(i.type,10):typeof i.type=="number"?n.type=i.type:typeof i.type=="object"&&(n.type=new r.LongBits(i.type.low>>>0,i.type.high>>>0).toNumber())),i.rid!=null&&(r.Long?(n.rid=r.Long.fromValue(i.rid)).unsigned=!1:typeof i.rid=="string"?n.rid=parseInt(i.rid,10):typeof i.rid=="number"?n.rid=i.rid:typeof i.rid=="object"&&(n.rid=new r.LongBits(i.rid.low>>>0,i.rid.high>>>0).toNumber())),i.specType!=null&&(r.Long?(n.specType=r.Long.fromValue(i.specType)).unsigned=!1:typeof i.specType=="string"?n.specType=parseInt(i.specType,10):typeof i.specType=="number"?n.specType=i.specType:typeof i.specType=="object"&&(n.specType=new r.LongBits(i.specType.low>>>0,i.specType.high>>>0).toNumber())),i.up!=null&&(r.Long?(n.up=r.Long.fromValue(i.up)).unsigned=!1:typeof i.up=="string"?n.up=parseInt(i.up,10):typeof i.up=="number"?n.up=i.up:typeof i.up=="object"&&(n.up=new r.LongBits(i.up.low>>>0,i.up.high>>>0).toNumber())),i.from!=null&&(n.from=String(i.from)),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.uid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.uid=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.dynId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.dynId=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.type=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.type=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.rid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.rid=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.specType=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.specType=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.up=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.up=n.longs===String?"0":0;o.from=""}return i.uid!=null&&i.hasOwnProperty("uid")&&(typeof i.uid=="number"?o.uid=n.longs===String?String(i.uid):i.uid:o.uid=n.longs===String?r.Long.prototype.toString.call(i.uid):n.longs===Number?new r.LongBits(i.uid.low>>>0,i.uid.high>>>0).toNumber():i.uid),i.dynId!=null&&i.hasOwnProperty("dynId")&&(typeof i.dynId=="number"?o.dynId=n.longs===String?String(i.dynId):i.dynId:o.dynId=n.longs===String?r.Long.prototype.toString.call(i.dynId):n.longs===Number?new r.LongBits(i.dynId.low>>>0,i.dynId.high>>>0).toNumber():i.dynId),i.type!=null&&i.hasOwnProperty("type")&&(typeof i.type=="number"?o.type=n.longs===String?String(i.type):i.type:o.type=n.longs===String?r.Long.prototype.toString.call(i.type):n.longs===Number?new r.LongBits(i.type.low>>>0,i.type.high>>>0).toNumber():i.type),i.rid!=null&&i.hasOwnProperty("rid")&&(typeof i.rid=="number"?o.rid=n.longs===String?String(i.rid):i.rid:o.rid=n.longs===String?r.Long.prototype.toString.call(i.rid):n.longs===Number?new r.LongBits(i.rid.low>>>0,i.rid.high>>>0).toNumber():i.rid),i.specType!=null&&i.hasOwnProperty("specType")&&(typeof i.specType=="number"?o.specType=n.longs===String?String(i.specType):i.specType:o.specType=n.longs===String?r.Long.prototype.toString.call(i.specType):n.longs===Number?new r.LongBits(i.specType.low>>>0,i.specType.high>>>0).toNumber():i.specType),i.up!=null&&i.hasOwnProperty("up")&&(typeof i.up=="number"?o.up=n.longs===String?String(i.up):i.up:o.up=n.longs===String?r.Long.prototype.toString.call(i.up):n.longs===Number?new r.LongBits(i.up.low>>>0,i.up.high>>>0).toNumber():i.up),i.from!=null&&i.hasOwnProperty("from")&&(o.from=i.from),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.dynamic.feed.v1.DynamicThumbReq"},l}(),e.DynamicThumbRsp=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){default:i.skipType(y&7);break}}return a},l.fromObject=function(i){return i instanceof u.bilibili.main.dynamic.feed.v1.DynamicThumbRsp?i:new u.bilibili.main.dynamic.feed.v1.DynamicThumbRsp},l.toObject=function(){return{}},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.dynamic.feed.v1.DynamicThumbRsp"},l}(),e.DynamicRepostReq=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.uid=i.int64();break}case 2:{a.content=u.dynamic.CreateContent.decode(i,i.uint32());break}case 3:{a.repostSrc=u.dynamic.DynIdentity.decode(i,i.uint32());break}case 4:{a.option=u.dynamic.CreateOption.decode(i,i.uint32());break}case 5:{a.topic=u.dynamic.CreateTopic.decode(i,i.uint32());break}case 6:{a.uploadId=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.dynamic.feed.v1.DynamicRepostReq)return i;let n=new u.bilibili.main.dynamic.feed.v1.DynamicRepostReq;if(i.uid!=null&&(r.Long?(n.uid=r.Long.fromValue(i.uid)).unsigned=!1:typeof i.uid=="string"?n.uid=parseInt(i.uid,10):typeof i.uid=="number"?n.uid=i.uid:typeof i.uid=="object"&&(n.uid=new r.LongBits(i.uid.low>>>0,i.uid.high>>>0).toNumber())),i.content!=null){if(typeof i.content!="object")throw TypeError(".bilibili.main.dynamic.feed.v1.DynamicRepostReq.content: object expected");n.content=u.dynamic.CreateContent.fromObject(i.content)}if(i.repostSrc!=null){if(typeof i.repostSrc!="object")throw TypeError(".bilibili.main.dynamic.feed.v1.DynamicRepostReq.repostSrc: object expected");n.repostSrc=u.dynamic.DynIdentity.fromObject(i.repostSrc)}if(i.option!=null){if(typeof i.option!="object")throw TypeError(".bilibili.main.dynamic.feed.v1.DynamicRepostReq.option: object expected");n.option=u.dynamic.CreateOption.fromObject(i.option)}if(i.topic!=null){if(typeof i.topic!="object")throw TypeError(".bilibili.main.dynamic.feed.v1.DynamicRepostReq.topic: object expected");n.topic=u.dynamic.CreateTopic.fromObject(i.topic)}return i.uploadId!=null&&(n.uploadId=String(i.uploadId)),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.uid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.uid=n.longs===String?"0":0;o.content=null,o.repostSrc=null,o.option=null,o.topic=null,o.uploadId=""}return i.uid!=null&&i.hasOwnProperty("uid")&&(typeof i.uid=="number"?o.uid=n.longs===String?String(i.uid):i.uid:o.uid=n.longs===String?r.Long.prototype.toString.call(i.uid):n.longs===Number?new r.LongBits(i.uid.low>>>0,i.uid.high>>>0).toNumber():i.uid),i.content!=null&&i.hasOwnProperty("content")&&(o.content=u.dynamic.CreateContent.toObject(i.content,n)),i.repostSrc!=null&&i.hasOwnProperty("repostSrc")&&(o.repostSrc=u.dynamic.DynIdentity.toObject(i.repostSrc,n)),i.option!=null&&i.hasOwnProperty("option")&&(o.option=u.dynamic.CreateOption.toObject(i.option,n)),i.topic!=null&&i.hasOwnProperty("topic")&&(o.topic=u.dynamic.CreateTopic.toObject(i.topic,n)),i.uploadId!=null&&i.hasOwnProperty("uploadId")&&(o.uploadId=i.uploadId),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.dynamic.feed.v1.DynamicRepostReq"},l}(),e.SetSpaceTopReq=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.dynId=i.int64();break}case 2:{a.teenagersMode=i.int32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.dynamic.feed.v1.SetSpaceTopReq)return i;let n=new u.bilibili.main.dynamic.feed.v1.SetSpaceTopReq;return i.dynId!=null&&(r.Long?(n.dynId=r.Long.fromValue(i.dynId)).unsigned=!1:typeof i.dynId=="string"?n.dynId=parseInt(i.dynId,10):typeof i.dynId=="number"?n.dynId=i.dynId:typeof i.dynId=="object"&&(n.dynId=new r.LongBits(i.dynId.low>>>0,i.dynId.high>>>0).toNumber())),i.teenagersMode!=null&&(n.teenagersMode=i.teenagersMode|0),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.dynId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.dynId=n.longs===String?"0":0;o.teenagersMode=0}return i.dynId!=null&&i.hasOwnProperty("dynId")&&(typeof i.dynId=="number"?o.dynId=n.longs===String?String(i.dynId):i.dynId:o.dynId=n.longs===String?r.Long.prototype.toString.call(i.dynId):n.longs===Number?new r.LongBits(i.dynId.low>>>0,i.dynId.high>>>0).toNumber():i.dynId),i.teenagersMode!=null&&i.hasOwnProperty("teenagersMode")&&(o.teenagersMode=i.teenagersMode),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.dynamic.feed.v1.SetSpaceTopReq"},l}(),e.SetSpaceTopRsp=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){default:i.skipType(y&7);break}}return a},l.fromObject=function(i){return i instanceof u.bilibili.main.dynamic.feed.v1.SetSpaceTopRsp?i:new u.bilibili.main.dynamic.feed.v1.SetSpaceTopRsp},l.toObject=function(){return{}},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.dynamic.feed.v1.SetSpaceTopRsp"},l}(),e.RmSpaceTopReq=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.dynId=i.int64();break}case 2:{a.teenagersMode=i.int32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.dynamic.feed.v1.RmSpaceTopReq)return i;let n=new u.bilibili.main.dynamic.feed.v1.RmSpaceTopReq;return i.dynId!=null&&(r.Long?(n.dynId=r.Long.fromValue(i.dynId)).unsigned=!1:typeof i.dynId=="string"?n.dynId=parseInt(i.dynId,10):typeof i.dynId=="number"?n.dynId=i.dynId:typeof i.dynId=="object"&&(n.dynId=new r.LongBits(i.dynId.low>>>0,i.dynId.high>>>0).toNumber())),i.teenagersMode!=null&&(n.teenagersMode=i.teenagersMode|0),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.dynId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.dynId=n.longs===String?"0":0;o.teenagersMode=0}return i.dynId!=null&&i.hasOwnProperty("dynId")&&(typeof i.dynId=="number"?o.dynId=n.longs===String?String(i.dynId):i.dynId:o.dynId=n.longs===String?r.Long.prototype.toString.call(i.dynId):n.longs===Number?new r.LongBits(i.dynId.low>>>0,i.dynId.high>>>0).toNumber():i.dynId),i.teenagersMode!=null&&i.hasOwnProperty("teenagersMode")&&(o.teenagersMode=i.teenagersMode),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.dynamic.feed.v1.RmSpaceTopReq"},l}(),e.RmSpaceTopRsp=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){default:i.skipType(y&7);break}}return a},l.fromObject=function(i){return i instanceof u.bilibili.main.dynamic.feed.v1.RmSpaceTopRsp?i:new u.bilibili.main.dynamic.feed.v1.RmSpaceTopRsp},l.toObject=function(){return{}},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.dynamic.feed.v1.RmSpaceTopRsp"},l}(),e.SearchPoiListReq=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.lat=i.double();break}case 2:{a.lng=i.double();break}case 3:{a.page=i.int32();break}case 4:{a.pageSize=i.int32();break}case 5:{a.keyword=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.dynamic.feed.v1.SearchPoiListReq)return i;let n=new u.bilibili.main.dynamic.feed.v1.SearchPoiListReq;return i.lat!=null&&(n.lat=Number(i.lat)),i.lng!=null&&(n.lng=Number(i.lng)),i.page!=null&&(n.page=i.page|0),i.pageSize!=null&&(n.pageSize=i.pageSize|0),i.keyword!=null&&(n.keyword=String(i.keyword)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.lat=0,o.lng=0,o.page=0,o.pageSize=0,o.keyword=""),i.lat!=null&&i.hasOwnProperty("lat")&&(o.lat=n.json&&!isFinite(i.lat)?String(i.lat):i.lat),i.lng!=null&&i.hasOwnProperty("lng")&&(o.lng=n.json&&!isFinite(i.lng)?String(i.lng):i.lng),i.page!=null&&i.hasOwnProperty("page")&&(o.page=i.page),i.pageSize!=null&&i.hasOwnProperty("pageSize")&&(o.pageSize=i.pageSize),i.keyword!=null&&i.hasOwnProperty("keyword")&&(o.keyword=i.keyword),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.dynamic.feed.v1.SearchPoiListReq"},l}(),e.SearchPoiListRsp=function(){function l(t){if(this.pois=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.hasMore=i.bool();break}case 2:{a.pois&&a.pois.length||(a.pois=[]),a.pois.push(u.bilibili.main.dynamic.feed.v1.PoiListItem.decode(i,i.uint32()));break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.dynamic.feed.v1.SearchPoiListRsp)return i;let n=new u.bilibili.main.dynamic.feed.v1.SearchPoiListRsp;if(i.hasMore!=null&&(n.hasMore=!!i.hasMore),i.pois){if(!Array.isArray(i.pois))throw TypeError(".bilibili.main.dynamic.feed.v1.SearchPoiListRsp.pois: array expected");n.pois=[];for(let o=0;o>>3){case 1:{a.poiInfo=u.bilibili.main.dynamic.feed.v1.PoiDetail.decode(i,i.uint32());break}case 2:{a.userCount=i.int32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.dynamic.feed.v1.PoiListItem)return i;let n=new u.bilibili.main.dynamic.feed.v1.PoiListItem;if(i.poiInfo!=null){if(typeof i.poiInfo!="object")throw TypeError(".bilibili.main.dynamic.feed.v1.PoiListItem.poiInfo: object expected");n.poiInfo=u.bilibili.main.dynamic.feed.v1.PoiDetail.fromObject(i.poiInfo)}return i.userCount!=null&&(n.userCount=i.userCount|0),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.poiInfo=null,o.userCount=0),i.poiInfo!=null&&i.hasOwnProperty("poiInfo")&&(o.poiInfo=u.bilibili.main.dynamic.feed.v1.PoiDetail.toObject(i.poiInfo,n)),i.userCount!=null&&i.hasOwnProperty("userCount")&&(o.userCount=i.userCount),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.dynamic.feed.v1.PoiListItem"},l}(),e.PoiDetail=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.location=u.bilibili.main.dynamic.feed.v1.LbsLocation.decode(i,i.uint32());break}case 2:{a.type=i.int32();break}case 3:{a.poi=i.string();break}case 4:{a.address=i.string();break}case 5:{a.title=i.string();break}case 6:{a.showTitle=i.string();break}case 7:{a.distance=i.double();break}case 8:{a.showDistance=i.string();break}case 9:{a.adInfo=u.bilibili.main.dynamic.feed.v1.AdInfoDetail.decode(i,i.uint32());break}case 10:{a.ancestors=u.bilibili.main.dynamic.feed.v1.PoiId.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.dynamic.feed.v1.PoiDetail)return i;let n=new u.bilibili.main.dynamic.feed.v1.PoiDetail;if(i.location!=null){if(typeof i.location!="object")throw TypeError(".bilibili.main.dynamic.feed.v1.PoiDetail.location: object expected");n.location=u.bilibili.main.dynamic.feed.v1.LbsLocation.fromObject(i.location)}switch(i.type){default:if(typeof i.type=="number"){n.type=i.type;break}break;case"TENCENT":case 0:n.type=0;break;case"CITY":case 1:n.type=1;break;case"NATION":case 2:n.type=2;break;case"BILI":case 3:n.type=3;break}if(i.poi!=null&&(n.poi=String(i.poi)),i.address!=null&&(n.address=String(i.address)),i.title!=null&&(n.title=String(i.title)),i.showTitle!=null&&(n.showTitle=String(i.showTitle)),i.distance!=null&&(n.distance=Number(i.distance)),i.showDistance!=null&&(n.showDistance=String(i.showDistance)),i.adInfo!=null){if(typeof i.adInfo!="object")throw TypeError(".bilibili.main.dynamic.feed.v1.PoiDetail.adInfo: object expected");n.adInfo=u.bilibili.main.dynamic.feed.v1.AdInfoDetail.fromObject(i.adInfo)}if(i.ancestors!=null){if(typeof i.ancestors!="object")throw TypeError(".bilibili.main.dynamic.feed.v1.PoiDetail.ancestors: object expected");n.ancestors=u.bilibili.main.dynamic.feed.v1.PoiId.fromObject(i.ancestors)}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.location=null,o.type=n.enums===String?"TENCENT":0,o.poi="",o.address="",o.title="",o.showTitle="",o.distance=0,o.showDistance="",o.adInfo=null,o.ancestors=null),i.location!=null&&i.hasOwnProperty("location")&&(o.location=u.bilibili.main.dynamic.feed.v1.LbsLocation.toObject(i.location,n)),i.type!=null&&i.hasOwnProperty("type")&&(o.type=n.enums===String?u.bilibili.main.dynamic.feed.v1.POI_TYPE[i.type]===void 0?i.type:u.bilibili.main.dynamic.feed.v1.POI_TYPE[i.type]:i.type),i.poi!=null&&i.hasOwnProperty("poi")&&(o.poi=i.poi),i.address!=null&&i.hasOwnProperty("address")&&(o.address=i.address),i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.showTitle!=null&&i.hasOwnProperty("showTitle")&&(o.showTitle=i.showTitle),i.distance!=null&&i.hasOwnProperty("distance")&&(o.distance=n.json&&!isFinite(i.distance)?String(i.distance):i.distance),i.showDistance!=null&&i.hasOwnProperty("showDistance")&&(o.showDistance=i.showDistance),i.adInfo!=null&&i.hasOwnProperty("adInfo")&&(o.adInfo=u.bilibili.main.dynamic.feed.v1.AdInfoDetail.toObject(i.adInfo,n)),i.ancestors!=null&&i.hasOwnProperty("ancestors")&&(o.ancestors=u.bilibili.main.dynamic.feed.v1.PoiId.toObject(i.ancestors,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.dynamic.feed.v1.PoiDetail"},l}(),e.LbsLocation=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.lat=i.double();break}case 2:{a.lng=i.double();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.dynamic.feed.v1.LbsLocation)return i;let n=new u.bilibili.main.dynamic.feed.v1.LbsLocation;return i.lat!=null&&(n.lat=Number(i.lat)),i.lng!=null&&(n.lng=Number(i.lng)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.lat=0,o.lng=0),i.lat!=null&&i.hasOwnProperty("lat")&&(o.lat=n.json&&!isFinite(i.lat)?String(i.lat):i.lat),i.lng!=null&&i.hasOwnProperty("lng")&&(o.lng=n.json&&!isFinite(i.lng)?String(i.lng):i.lng),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.dynamic.feed.v1.LbsLocation"},l}(),e.POI_TYPE=function(){let l={},t=Object.create(l);return t[l[0]="TENCENT"]=0,t[l[1]="CITY"]=1,t[l[2]="NATION"]=2,t[l[3]="BILI"]=3,t}(),e.AdInfoDetail=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.nation=i.string();break}case 2:{a.province=i.string();break}case 3:{a.city=i.string();break}case 4:{a.district=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.dynamic.feed.v1.AdInfoDetail)return i;let n=new u.bilibili.main.dynamic.feed.v1.AdInfoDetail;return i.nation!=null&&(n.nation=String(i.nation)),i.province!=null&&(n.province=String(i.province)),i.city!=null&&(n.city=String(i.city)),i.district!=null&&(n.district=String(i.district)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.nation="",o.province="",o.city="",o.district=""),i.nation!=null&&i.hasOwnProperty("nation")&&(o.nation=i.nation),i.province!=null&&i.hasOwnProperty("province")&&(o.province=i.province),i.city!=null&&i.hasOwnProperty("city")&&(o.city=i.city),i.district!=null&&i.hasOwnProperty("district")&&(o.district=i.district),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.dynamic.feed.v1.AdInfoDetail"},l}(),e.PoiId=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.poi=i.string();break}case 2:{a.type=i.uint32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.dynamic.feed.v1.PoiId)return i;let n=new u.bilibili.main.dynamic.feed.v1.PoiId;return i.poi!=null&&(n.poi=String(i.poi)),i.type!=null&&(n.type=i.type>>>0),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.poi="",o.type=0),i.poi!=null&&i.hasOwnProperty("poi")&&(o.poi=i.poi),i.type!=null&&i.hasOwnProperty("type")&&(o.type=i.type),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.dynamic.feed.v1.PoiId"},l}(),e.NearbyPoiListReq=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.lat=i.double();break}case 2:{a.lng=i.double();break}case 3:{a.page=i.int32();break}case 4:{a.pageSize=i.int32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.dynamic.feed.v1.NearbyPoiListReq)return i;let n=new u.bilibili.main.dynamic.feed.v1.NearbyPoiListReq;return i.lat!=null&&(n.lat=Number(i.lat)),i.lng!=null&&(n.lng=Number(i.lng)),i.page!=null&&(n.page=i.page|0),i.pageSize!=null&&(n.pageSize=i.pageSize|0),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.lat=0,o.lng=0,o.page=0,o.pageSize=0),i.lat!=null&&i.hasOwnProperty("lat")&&(o.lat=n.json&&!isFinite(i.lat)?String(i.lat):i.lat),i.lng!=null&&i.hasOwnProperty("lng")&&(o.lng=n.json&&!isFinite(i.lng)?String(i.lng):i.lng),i.page!=null&&i.hasOwnProperty("page")&&(o.page=i.page),i.pageSize!=null&&i.hasOwnProperty("pageSize")&&(o.pageSize=i.pageSize),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.dynamic.feed.v1.NearbyPoiListReq"},l}(),e.NearbyPoiListRsp=function(){function l(t){if(this.pois=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.hasMore=i.bool();break}case 2:{a.pois&&a.pois.length||(a.pois=[]),a.pois.push(u.bilibili.main.dynamic.feed.v1.NearbyPoiListItem.decode(i,i.uint32()));break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.dynamic.feed.v1.NearbyPoiListRsp)return i;let n=new u.bilibili.main.dynamic.feed.v1.NearbyPoiListRsp;if(i.hasMore!=null&&(n.hasMore=!!i.hasMore),i.pois){if(!Array.isArray(i.pois))throw TypeError(".bilibili.main.dynamic.feed.v1.NearbyPoiListRsp.pois: array expected");n.pois=[];for(let o=0;o>>3){case 1:{a.poiInfo=u.bilibili.main.dynamic.feed.v1.NearbyPoiDetail.decode(i,i.uint32());break}case 2:{a.userCount=i.int32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.dynamic.feed.v1.NearbyPoiListItem)return i;let n=new u.bilibili.main.dynamic.feed.v1.NearbyPoiListItem;if(i.poiInfo!=null){if(typeof i.poiInfo!="object")throw TypeError(".bilibili.main.dynamic.feed.v1.NearbyPoiListItem.poiInfo: object expected");n.poiInfo=u.bilibili.main.dynamic.feed.v1.NearbyPoiDetail.fromObject(i.poiInfo)}return i.userCount!=null&&(n.userCount=i.userCount|0),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.poiInfo=null,o.userCount=0),i.poiInfo!=null&&i.hasOwnProperty("poiInfo")&&(o.poiInfo=u.bilibili.main.dynamic.feed.v1.NearbyPoiDetail.toObject(i.poiInfo,n)),i.userCount!=null&&i.hasOwnProperty("userCount")&&(o.userCount=i.userCount),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.dynamic.feed.v1.NearbyPoiListItem"},l}(),e.NearbyPoiDetail=function(){function l(t){if(this.ancestors=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.location=u.bilibili.main.dynamic.feed.v1.LbsLocation.decode(i,i.uint32());break}case 2:{a.type=i.int32();break}case 3:{a.poi=i.string();break}case 4:{a.address=i.string();break}case 5:{a.title=i.string();break}case 6:{a.showTitle=i.string();break}case 7:{a.distance=i.double();break}case 8:{a.showDistance=i.string();break}case 9:{a.adInfo=u.bilibili.main.dynamic.feed.v1.AdInfoDetail.decode(i,i.uint32());break}case 10:{a.ancestors&&a.ancestors.length||(a.ancestors=[]),a.ancestors.push(u.bilibili.main.dynamic.feed.v1.PoiId.decode(i,i.uint32()));break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.dynamic.feed.v1.NearbyPoiDetail)return i;let n=new u.bilibili.main.dynamic.feed.v1.NearbyPoiDetail;if(i.location!=null){if(typeof i.location!="object")throw TypeError(".bilibili.main.dynamic.feed.v1.NearbyPoiDetail.location: object expected");n.location=u.bilibili.main.dynamic.feed.v1.LbsLocation.fromObject(i.location)}switch(i.type){default:if(typeof i.type=="number"){n.type=i.type;break}break;case"TENCENT":case 0:n.type=0;break;case"CITY":case 1:n.type=1;break;case"NATION":case 2:n.type=2;break;case"BILI":case 3:n.type=3;break}if(i.poi!=null&&(n.poi=String(i.poi)),i.address!=null&&(n.address=String(i.address)),i.title!=null&&(n.title=String(i.title)),i.showTitle!=null&&(n.showTitle=String(i.showTitle)),i.distance!=null&&(n.distance=Number(i.distance)),i.showDistance!=null&&(n.showDistance=String(i.showDistance)),i.adInfo!=null){if(typeof i.adInfo!="object")throw TypeError(".bilibili.main.dynamic.feed.v1.NearbyPoiDetail.adInfo: object expected");n.adInfo=u.bilibili.main.dynamic.feed.v1.AdInfoDetail.fromObject(i.adInfo)}if(i.ancestors){if(!Array.isArray(i.ancestors))throw TypeError(".bilibili.main.dynamic.feed.v1.NearbyPoiDetail.ancestors: array expected");n.ancestors=[];for(let o=0;o>>3){case 1:{a.trackId=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.dynamic.feed.v1.HomeBubbleReportReq)return i;let n=new u.bilibili.main.dynamic.feed.v1.HomeBubbleReportReq;return i.trackId!=null&&(n.trackId=String(i.trackId)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.trackId=""),i.trackId!=null&&i.hasOwnProperty("trackId")&&(o.trackId=i.trackId),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.dynamic.feed.v1.HomeBubbleReportReq"},l}(),e.HomeBubbleReportRsp=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){default:i.skipType(y&7);break}}return a},l.fromObject=function(i){return i instanceof u.bilibili.main.dynamic.feed.v1.HomeBubbleReportRsp?i:new u.bilibili.main.dynamic.feed.v1.HomeBubbleReportRsp},l.toObject=function(){return{}},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.dynamic.feed.v1.HomeBubbleReportRsp"},l}(),e.ActiveReportMessage=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.action=i.int32();break}case 2:{a.metricData=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.dynamic.feed.v1.ActiveReportMessage)return i;let n=new u.bilibili.main.dynamic.feed.v1.ActiveReportMessage;switch(i.action){default:if(typeof i.action=="number"){n.action=i.action;break}break;case"REPORT_ACTION_NONE":case 0:n.action=0;break;case"REPORT_ACTION_EXPOSURE":case 1:n.action=1;break;case"REPORT_ACTION_CLICK":case 2:n.action=2;break}return i.metricData!=null&&(n.metricData=String(i.metricData)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.action=n.enums===String?"REPORT_ACTION_NONE":0,o.metricData=""),i.action!=null&&i.hasOwnProperty("action")&&(o.action=n.enums===String?u.bilibili.main.dynamic.feed.v1.ActiveReportMessage.ReportAction[i.action]===void 0?i.action:u.bilibili.main.dynamic.feed.v1.ActiveReportMessage.ReportAction[i.action]:i.action),i.metricData!=null&&i.hasOwnProperty("metricData")&&(o.metricData=i.metricData),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.dynamic.feed.v1.ActiveReportMessage"},l.ReportAction=function(){let t={},i=Object.create(t);return i[t[0]="REPORT_ACTION_NONE"]=0,i[t[1]="REPORT_ACTION_EXPOSURE"]=1,i[t[2]="REPORT_ACTION_CLICK"]=2,i}(),l}(),e.DynMetricsActiveReportReq=function(){function l(t){if(this.reportMetrics=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.reportMetrics&&a.reportMetrics.length||(a.reportMetrics=[]),a.reportMetrics.push(u.bilibili.main.dynamic.feed.v1.ActiveReportMessage.decode(i,i.uint32()));break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.dynamic.feed.v1.DynMetricsActiveReportReq)return i;let n=new u.bilibili.main.dynamic.feed.v1.DynMetricsActiveReportReq;if(i.reportMetrics){if(!Array.isArray(i.reportMetrics))throw TypeError(".bilibili.main.dynamic.feed.v1.DynMetricsActiveReportReq.reportMetrics: array expected");n.reportMetrics=[];for(let o=0;o>>3){default:i.skipType(y&7);break}}return a},l.fromObject=function(i){return i instanceof u.bilibili.main.dynamic.feed.v1.DynMetricsActiveReportRsp?i:new u.bilibili.main.dynamic.feed.v1.DynMetricsActiveReportRsp},l.toObject=function(){return{}},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.dynamic.feed.v1.DynMetricsActiveReportRsp"},l}(),e}(),c}(),p.vote=function(){let c={};return c.v1=function(){let e={};return e.Vote=function(){function l(t,i,n){b.rpc.Service.call(this,t,i,n)}return(l.prototype=Object.create(b.rpc.Service.prototype)).constructor=l,l.create=function(i,n,o){return new this(i,n,o)},Object.defineProperty(l.prototype.doVote=function t(i,n){return this.rpcCall(t,u.bilibili.main.dynamic.vote.v1.DoVoteReq,u.bilibili.main.dynamic.vote.v1.DoVoteRsp,i,n)},"name",{value:"DoVote"}),l}(),e.DoVoteReq=function(){function l(t){if(this.votes=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.voteId=i.int64();break}case 2:{if(a.votes&&a.votes.length||(a.votes=[]),(y&7)===2){let s=i.uint32()+i.pos;for(;i.pos>>0,i.voteId.high>>>0).toNumber())),i.votes){if(!Array.isArray(i.votes))throw TypeError(".bilibili.main.dynamic.vote.v1.DoVoteReq.votes: array expected");n.votes=[];for(let o=0;o>>0,i.dynamicId.high>>>0).toNumber())),i.opBit!=null&&(r.Long?(n.opBit=r.Long.fromValue(i.opBit)).unsigned=!1:typeof i.opBit=="string"?n.opBit=parseInt(i.opBit,10):typeof i.opBit=="number"?n.opBit=i.opBit:typeof i.opBit=="object"&&(n.opBit=new r.LongBits(i.opBit.low>>>0,i.opBit.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if((n.arrays||n.defaults)&&(o.votes=[]),n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.voteId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.voteId=n.longs===String?"0":0;if(o.status=0,r.Long){let a=new r.Long(0,0,!1);o.dynamicId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.dynamicId=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.opBit=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.opBit=n.longs===String?"0":0}if(i.voteId!=null&&i.hasOwnProperty("voteId")&&(typeof i.voteId=="number"?o.voteId=n.longs===String?String(i.voteId):i.voteId:o.voteId=n.longs===String?r.Long.prototype.toString.call(i.voteId):n.longs===Number?new r.LongBits(i.voteId.low>>>0,i.voteId.high>>>0).toNumber():i.voteId),i.votes&&i.votes.length){o.votes=[];for(let a=0;a>>0,i.dynamicId.high>>>0).toNumber():i.dynamicId),i.opBit!=null&&i.hasOwnProperty("opBit")&&(typeof i.opBit=="number"?o.opBit=n.longs===String?String(i.opBit):i.opBit:o.opBit=n.longs===String?r.Long.prototype.toString.call(i.opBit):n.longs===Number?new r.LongBits(i.opBit.low>>>0,i.opBit.high>>>0).toNumber():i.opBit),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.dynamic.vote.v1.DoVoteReq"},l}(),e.DoVoteRsp=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.uid=i.int64();break}case 2:{a.type=i.int32();break}case 3:{a.voteInfo=u.vote.VoteInfo.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.dynamic.vote.v1.DoVoteRsp)return i;let n=new u.bilibili.main.dynamic.vote.v1.DoVoteRsp;if(i.uid!=null&&(r.Long?(n.uid=r.Long.fromValue(i.uid)).unsigned=!1:typeof i.uid=="string"?n.uid=parseInt(i.uid,10):typeof i.uid=="number"?n.uid=i.uid:typeof i.uid=="object"&&(n.uid=new r.LongBits(i.uid.low>>>0,i.uid.high>>>0).toNumber())),i.type!=null&&(n.type=i.type|0),i.voteInfo!=null){if(typeof i.voteInfo!="object")throw TypeError(".bilibili.main.dynamic.vote.v1.DoVoteRsp.voteInfo: object expected");n.voteInfo=u.vote.VoteInfo.fromObject(i.voteInfo)}return n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.uid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.uid=n.longs===String?"0":0;o.type=0,o.voteInfo=null}return i.uid!=null&&i.hasOwnProperty("uid")&&(typeof i.uid=="number"?o.uid=n.longs===String?String(i.uid):i.uid:o.uid=n.longs===String?r.Long.prototype.toString.call(i.uid):n.longs===Number?new r.LongBits(i.uid.low>>>0,i.uid.high>>>0).toNumber():i.uid),i.type!=null&&i.hasOwnProperty("type")&&(o.type=i.type),i.voteInfo!=null&&i.hasOwnProperty("voteInfo")&&(o.voteInfo=u.vote.VoteInfo.toObject(i.voteInfo,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.dynamic.vote.v1.DoVoteRsp"},l}(),e}(),c}(),p}(),d.common=function(){let p={};return p.arch=function(){let c={};return c.doll=function(){let e={};return e.v1=function(){let l={};return l.Echo=function(){function t(i,n,o){b.rpc.Service.call(this,i,n,o)}return(t.prototype=Object.create(b.rpc.Service.prototype)).constructor=t,t.create=function(n,o,a){return new this(n,o,a)},Object.defineProperty(t.prototype.ping=function i(n,o){return this.rpcCall(i,u.bilibili.main.common.arch.doll.v1.PingRequest,u.bilibili.main.common.arch.doll.v1.PingResponse,n,o)},"name",{value:"Ping"}),Object.defineProperty(t.prototype.say=function i(n,o){return this.rpcCall(i,u.bilibili.main.common.arch.doll.v1.SayRequest,u.bilibili.main.common.arch.doll.v1.SayResponse,n,o)},"name",{value:"Say"}),Object.defineProperty(t.prototype.error=function i(n,o){return this.rpcCall(i,u.bilibili.main.common.arch.doll.v1.ErrorRequest,u.bilibili.main.common.arch.doll.v1.ErrorResponse,n,o)},"name",{value:"Error"}),t}(),l.PingRequest=function(){function t(i){if(i)for(let n=Object.keys(i),o=0;o>>3){case 1:{y.time=n.int64();break}default:n.skipType(s&7);break}}return y},t.fromObject=function(n){if(n instanceof u.bilibili.main.common.arch.doll.v1.PingRequest)return n;let o=new u.bilibili.main.common.arch.doll.v1.PingRequest;return n.time!=null&&(r.Long?(o.time=r.Long.fromValue(n.time)).unsigned=!1:typeof n.time=="string"?o.time=parseInt(n.time,10):typeof n.time=="number"?o.time=n.time:typeof n.time=="object"&&(o.time=new r.LongBits(n.time.low>>>0,n.time.high>>>0).toNumber())),o},t.toObject=function(n,o){o||(o={});let a={};if(o.defaults)if(r.Long){let y=new r.Long(0,0,!1);a.time=o.longs===String?y.toString():o.longs===Number?y.toNumber():y}else a.time=o.longs===String?"0":0;return n.time!=null&&n.hasOwnProperty("time")&&(typeof n.time=="number"?a.time=o.longs===String?String(n.time):n.time:a.time=o.longs===String?r.Long.prototype.toString.call(n.time):o.longs===Number?new r.LongBits(n.time.low>>>0,n.time.high>>>0).toNumber():n.time),a},t.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},t.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/bilibili.main.common.arch.doll.v1.PingRequest"},t}(),l.PingResponse=function(){function t(i){if(i)for(let n=Object.keys(i),o=0;o>>3){case 1:{y.host=n.string();break}case 3:{y.time=n.int64();break}default:n.skipType(s&7);break}}return y},t.fromObject=function(n){if(n instanceof u.bilibili.main.common.arch.doll.v1.PingResponse)return n;let o=new u.bilibili.main.common.arch.doll.v1.PingResponse;return n.host!=null&&(o.host=String(n.host)),n.time!=null&&(r.Long?(o.time=r.Long.fromValue(n.time)).unsigned=!1:typeof n.time=="string"?o.time=parseInt(n.time,10):typeof n.time=="number"?o.time=n.time:typeof n.time=="object"&&(o.time=new r.LongBits(n.time.low>>>0,n.time.high>>>0).toNumber())),o},t.toObject=function(n,o){o||(o={});let a={};if(o.defaults)if(a.host="",r.Long){let y=new r.Long(0,0,!1);a.time=o.longs===String?y.toString():o.longs===Number?y.toNumber():y}else a.time=o.longs===String?"0":0;return n.host!=null&&n.hasOwnProperty("host")&&(a.host=n.host),n.time!=null&&n.hasOwnProperty("time")&&(typeof n.time=="number"?a.time=o.longs===String?String(n.time):n.time:a.time=o.longs===String?r.Long.prototype.toString.call(n.time):o.longs===Number?new r.LongBits(n.time.low>>>0,n.time.high>>>0).toNumber():n.time),a},t.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},t.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/bilibili.main.common.arch.doll.v1.PingResponse"},t}(),l.SayRequest=function(){function t(i){if(i)for(let n=Object.keys(i),o=0;o>>3){case 1:{y.content=n.string();break}default:n.skipType(s&7);break}}return y},t.fromObject=function(n){if(n instanceof u.bilibili.main.common.arch.doll.v1.SayRequest)return n;let o=new u.bilibili.main.common.arch.doll.v1.SayRequest;return n.content!=null&&(o.content=String(n.content)),o},t.toObject=function(n,o){o||(o={});let a={};return o.defaults&&(a.content=""),n.content!=null&&n.hasOwnProperty("content")&&(a.content=n.content),a},t.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},t.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/bilibili.main.common.arch.doll.v1.SayRequest"},t}(),l.SayResponse=function(){function t(i){if(i)for(let n=Object.keys(i),o=0;o>>3){case 1:{y.host=n.string();break}case 2:{y.content=n.string();break}case 3:{y.time=n.int64();break}default:n.skipType(s&7);break}}return y},t.fromObject=function(n){if(n instanceof u.bilibili.main.common.arch.doll.v1.SayResponse)return n;let o=new u.bilibili.main.common.arch.doll.v1.SayResponse;return n.host!=null&&(o.host=String(n.host)),n.content!=null&&(o.content=String(n.content)),n.time!=null&&(r.Long?(o.time=r.Long.fromValue(n.time)).unsigned=!1:typeof n.time=="string"?o.time=parseInt(n.time,10):typeof n.time=="number"?o.time=n.time:typeof n.time=="object"&&(o.time=new r.LongBits(n.time.low>>>0,n.time.high>>>0).toNumber())),o},t.toObject=function(n,o){o||(o={});let a={};if(o.defaults)if(a.host="",a.content="",r.Long){let y=new r.Long(0,0,!1);a.time=o.longs===String?y.toString():o.longs===Number?y.toNumber():y}else a.time=o.longs===String?"0":0;return n.host!=null&&n.hasOwnProperty("host")&&(a.host=n.host),n.content!=null&&n.hasOwnProperty("content")&&(a.content=n.content),n.time!=null&&n.hasOwnProperty("time")&&(typeof n.time=="number"?a.time=o.longs===String?String(n.time):n.time:a.time=o.longs===String?r.Long.prototype.toString.call(n.time):o.longs===Number?new r.LongBits(n.time.low>>>0,n.time.high>>>0).toNumber():n.time),a},t.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},t.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/bilibili.main.common.arch.doll.v1.SayResponse"},t}(),l.ErrorRequest=function(){function t(i){if(i)for(let n=Object.keys(i),o=0;o>>3){case 2:{y.error=n.int32();break}case 1:{y.time=n.int64();break}case 3:{y.delay=n.int64();break}default:n.skipType(s&7);break}}return y},t.fromObject=function(n){if(n instanceof u.bilibili.main.common.arch.doll.v1.ErrorRequest)return n;let o=new u.bilibili.main.common.arch.doll.v1.ErrorRequest;return n.error!=null&&(o.error=n.error|0),n.time!=null&&(r.Long?(o.time=r.Long.fromValue(n.time)).unsigned=!1:typeof n.time=="string"?o.time=parseInt(n.time,10):typeof n.time=="number"?o.time=n.time:typeof n.time=="object"&&(o.time=new r.LongBits(n.time.low>>>0,n.time.high>>>0).toNumber())),n.delay!=null&&(r.Long?(o.delay=r.Long.fromValue(n.delay)).unsigned=!1:typeof n.delay=="string"?o.delay=parseInt(n.delay,10):typeof n.delay=="number"?o.delay=n.delay:typeof n.delay=="object"&&(o.delay=new r.LongBits(n.delay.low>>>0,n.delay.high>>>0).toNumber())),o},t.toObject=function(n,o){o||(o={});let a={};if(o.defaults){if(r.Long){let y=new r.Long(0,0,!1);a.time=o.longs===String?y.toString():o.longs===Number?y.toNumber():y}else a.time=o.longs===String?"0":0;if(a.error=0,r.Long){let y=new r.Long(0,0,!1);a.delay=o.longs===String?y.toString():o.longs===Number?y.toNumber():y}else a.delay=o.longs===String?"0":0}return n.time!=null&&n.hasOwnProperty("time")&&(typeof n.time=="number"?a.time=o.longs===String?String(n.time):n.time:a.time=o.longs===String?r.Long.prototype.toString.call(n.time):o.longs===Number?new r.LongBits(n.time.low>>>0,n.time.high>>>0).toNumber():n.time),n.error!=null&&n.hasOwnProperty("error")&&(a.error=n.error),n.delay!=null&&n.hasOwnProperty("delay")&&(typeof n.delay=="number"?a.delay=o.longs===String?String(n.delay):n.delay:a.delay=o.longs===String?r.Long.prototype.toString.call(n.delay):o.longs===Number?new r.LongBits(n.delay.low>>>0,n.delay.high>>>0).toNumber():n.delay),a},t.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},t.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/bilibili.main.common.arch.doll.v1.ErrorRequest"},t}(),l.ErrorResponse=function(){function t(i){if(i)for(let n=Object.keys(i),o=0;o>>3){case 1:{y.host=n.string();break}case 3:{y.time=n.int64();break}default:n.skipType(s&7);break}}return y},t.fromObject=function(n){if(n instanceof u.bilibili.main.common.arch.doll.v1.ErrorResponse)return n;let o=new u.bilibili.main.common.arch.doll.v1.ErrorResponse;return n.host!=null&&(o.host=String(n.host)),n.time!=null&&(r.Long?(o.time=r.Long.fromValue(n.time)).unsigned=!1:typeof n.time=="string"?o.time=parseInt(n.time,10):typeof n.time=="number"?o.time=n.time:typeof n.time=="object"&&(o.time=new r.LongBits(n.time.low>>>0,n.time.high>>>0).toNumber())),o},t.toObject=function(n,o){o||(o={});let a={};if(o.defaults)if(a.host="",r.Long){let y=new r.Long(0,0,!1);a.time=o.longs===String?y.toString():o.longs===Number?y.toNumber():y}else a.time=o.longs===String?"0":0;return n.host!=null&&n.hasOwnProperty("host")&&(a.host=n.host),n.time!=null&&n.hasOwnProperty("time")&&(typeof n.time=="number"?a.time=o.longs===String?String(n.time):n.time:a.time=o.longs===String?r.Long.prototype.toString.call(n.time):o.longs===Number?new r.LongBits(n.time.low>>>0,n.time.high>>>0).toNumber():n.time),a},t.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},t.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/bilibili.main.common.arch.doll.v1.ErrorResponse"},t}(),l}(),e}(),c}(),p}(),d.community=function(){let p={};return p.reply=function(){let c={};return c.v1=function(){let e={};return e.Reply=function(){function l(t,i,n){b.rpc.Service.call(this,t,i,n)}return(l.prototype=Object.create(b.rpc.Service.prototype)).constructor=l,l.create=function(i,n,o){return new this(i,n,o)},Object.defineProperty(l.prototype.mainList=function t(i,n){return this.rpcCall(t,u.bilibili.main.community.reply.v1.MainListReq,u.bilibili.main.community.reply.v1.MainListReply,i,n)},"name",{value:"MainList"}),Object.defineProperty(l.prototype.detailList=function t(i,n){return this.rpcCall(t,u.bilibili.main.community.reply.v1.DetailListReq,u.bilibili.main.community.reply.v1.DetailListReply,i,n)},"name",{value:"DetailList"}),Object.defineProperty(l.prototype.dialogList=function t(i,n){return this.rpcCall(t,u.bilibili.main.community.reply.v1.DialogListReq,u.bilibili.main.community.reply.v1.DialogListReply,i,n)},"name",{value:"DialogList"}),Object.defineProperty(l.prototype.previewList=function t(i,n){return this.rpcCall(t,u.bilibili.main.community.reply.v1.PreviewListReq,u.bilibili.main.community.reply.v1.PreviewListReply,i,n)},"name",{value:"PreviewList"}),Object.defineProperty(l.prototype.searchItemPreHook=function t(i,n){return this.rpcCall(t,u.bilibili.main.community.reply.v1.SearchItemPreHookReq,u.bilibili.main.community.reply.v1.SearchItemPreHookReply,i,n)},"name",{value:"SearchItemPreHook"}),Object.defineProperty(l.prototype.searchItem=function t(i,n){return this.rpcCall(t,u.bilibili.main.community.reply.v1.SearchItemReq,u.bilibili.main.community.reply.v1.SearchItemReply,i,n)},"name",{value:"SearchItem"}),Object.defineProperty(l.prototype.atSearch=function t(i,n){return this.rpcCall(t,u.bilibili.main.community.reply.v1.AtSearchReq,u.bilibili.main.community.reply.v1.AtSearchReply,i,n)},"name",{value:"AtSearch"}),Object.defineProperty(l.prototype.replyInfo=function t(i,n){return this.rpcCall(t,u.bilibili.main.community.reply.v1.ReplyInfoReq,u.bilibili.main.community.reply.v1.ReplyInfoReply,i,n)},"name",{value:"ReplyInfo"}),Object.defineProperty(l.prototype.userCallback=function t(i,n){return this.rpcCall(t,u.bilibili.main.community.reply.v1.UserCallbackReq,u.bilibili.main.community.reply.v1.UserCallbackReply,i,n)},"name",{value:"UserCallback"}),Object.defineProperty(l.prototype.shareRepliesInfo=function t(i,n){return this.rpcCall(t,u.bilibili.main.community.reply.v1.ShareRepliesInfoReq,u.bilibili.main.community.reply.v1.ShareRepliesInfoResp,i,n)},"name",{value:"ShareRepliesInfo"}),Object.defineProperty(l.prototype.suggestEmotes=function t(i,n){return this.rpcCall(t,u.bilibili.main.community.reply.v1.SuggestEmotesReq,u.bilibili.main.community.reply.v1.SuggestEmotesResp,i,n)},"name",{value:"SuggestEmotes"}),Object.defineProperty(l.prototype.doVote=function t(i,n){return this.rpcCall(t,u.bilibili.main.community.reply.v1.DoVoteReq,u.bilibili.main.community.reply.v1.DoVoteResp,i,n)},"name",{value:"DoVote"}),Object.defineProperty(l.prototype.shareReplyMaterial=function t(i,n){return this.rpcCall(t,u.bilibili.main.community.reply.v1.ShareReplyMaterialReq,u.bilibili.main.community.reply.v1.ShareReplyMaterialResp,i,n)},"name",{value:"ShareReplyMaterial"}),l}(),e.CM=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.sourceContent=u.google.protobuf.Any.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.community.reply.v1.CM)return i;let n=new u.bilibili.main.community.reply.v1.CM;if(i.sourceContent!=null){if(typeof i.sourceContent!="object")throw TypeError(".bilibili.main.community.reply.v1.CM.sourceContent: object expected");n.sourceContent=u.google.protobuf.Any.fromObject(i.sourceContent)}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.sourceContent=null),i.sourceContent!=null&&i.hasOwnProperty("sourceContent")&&(o.sourceContent=u.google.protobuf.Any.toObject(i.sourceContent,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.community.reply.v1.CM"},l}(),e.DialogListReq=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.oid=i.int64();break}case 2:{a.type=i.int64();break}case 3:{a.root=i.int64();break}case 4:{a.dialog=i.int64();break}case 5:{a.cursor=u.bilibili.main.community.reply.v1.CursorReq.decode(i,i.uint32());break}case 6:{a.pagination=u.bilibili.pagination.FeedPagination.decode(i,i.uint32());break}case 7:{a.extra=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.community.reply.v1.DialogListReq)return i;let n=new u.bilibili.main.community.reply.v1.DialogListReq;if(i.oid!=null&&(r.Long?(n.oid=r.Long.fromValue(i.oid)).unsigned=!1:typeof i.oid=="string"?n.oid=parseInt(i.oid,10):typeof i.oid=="number"?n.oid=i.oid:typeof i.oid=="object"&&(n.oid=new r.LongBits(i.oid.low>>>0,i.oid.high>>>0).toNumber())),i.type!=null&&(r.Long?(n.type=r.Long.fromValue(i.type)).unsigned=!1:typeof i.type=="string"?n.type=parseInt(i.type,10):typeof i.type=="number"?n.type=i.type:typeof i.type=="object"&&(n.type=new r.LongBits(i.type.low>>>0,i.type.high>>>0).toNumber())),i.root!=null&&(r.Long?(n.root=r.Long.fromValue(i.root)).unsigned=!1:typeof i.root=="string"?n.root=parseInt(i.root,10):typeof i.root=="number"?n.root=i.root:typeof i.root=="object"&&(n.root=new r.LongBits(i.root.low>>>0,i.root.high>>>0).toNumber())),i.dialog!=null&&(r.Long?(n.dialog=r.Long.fromValue(i.dialog)).unsigned=!1:typeof i.dialog=="string"?n.dialog=parseInt(i.dialog,10):typeof i.dialog=="number"?n.dialog=i.dialog:typeof i.dialog=="object"&&(n.dialog=new r.LongBits(i.dialog.low>>>0,i.dialog.high>>>0).toNumber())),i.cursor!=null){if(typeof i.cursor!="object")throw TypeError(".bilibili.main.community.reply.v1.DialogListReq.cursor: object expected");n.cursor=u.bilibili.main.community.reply.v1.CursorReq.fromObject(i.cursor)}if(i.pagination!=null){if(typeof i.pagination!="object")throw TypeError(".bilibili.main.community.reply.v1.DialogListReq.pagination: object expected");n.pagination=u.bilibili.pagination.FeedPagination.fromObject(i.pagination)}return i.extra!=null&&(n.extra=String(i.extra)),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.oid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.oid=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.type=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.type=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.root=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.root=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.dialog=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.dialog=n.longs===String?"0":0;o.cursor=null,o.pagination=null,o.extra=""}return i.oid!=null&&i.hasOwnProperty("oid")&&(typeof i.oid=="number"?o.oid=n.longs===String?String(i.oid):i.oid:o.oid=n.longs===String?r.Long.prototype.toString.call(i.oid):n.longs===Number?new r.LongBits(i.oid.low>>>0,i.oid.high>>>0).toNumber():i.oid),i.type!=null&&i.hasOwnProperty("type")&&(typeof i.type=="number"?o.type=n.longs===String?String(i.type):i.type:o.type=n.longs===String?r.Long.prototype.toString.call(i.type):n.longs===Number?new r.LongBits(i.type.low>>>0,i.type.high>>>0).toNumber():i.type),i.root!=null&&i.hasOwnProperty("root")&&(typeof i.root=="number"?o.root=n.longs===String?String(i.root):i.root:o.root=n.longs===String?r.Long.prototype.toString.call(i.root):n.longs===Number?new r.LongBits(i.root.low>>>0,i.root.high>>>0).toNumber():i.root),i.dialog!=null&&i.hasOwnProperty("dialog")&&(typeof i.dialog=="number"?o.dialog=n.longs===String?String(i.dialog):i.dialog:o.dialog=n.longs===String?r.Long.prototype.toString.call(i.dialog):n.longs===Number?new r.LongBits(i.dialog.low>>>0,i.dialog.high>>>0).toNumber():i.dialog),i.cursor!=null&&i.hasOwnProperty("cursor")&&(o.cursor=u.bilibili.main.community.reply.v1.CursorReq.toObject(i.cursor,n)),i.pagination!=null&&i.hasOwnProperty("pagination")&&(o.pagination=u.bilibili.pagination.FeedPagination.toObject(i.pagination,n)),i.extra!=null&&i.hasOwnProperty("extra")&&(o.extra=i.extra),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.community.reply.v1.DialogListReq"},l}(),e.DialogListReply=function(){function l(t){if(this.replies=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.cursor=u.bilibili.main.community.reply.v1.CursorReply.decode(i,i.uint32());break}case 2:{a.subjectControl=u.bilibili.main.community.reply.v1.SubjectControl.decode(i,i.uint32());break}case 3:{a.replies&&a.replies.length||(a.replies=[]),a.replies.push(u.bilibili.main.community.reply.v1.ReplyInfo.decode(i,i.uint32()));break}case 4:{a.activity=u.bilibili.main.community.reply.v1.Activity.decode(i,i.uint32());break}case 5:{a.paginationReply=u.bilibili.pagination.FeedPaginationReply.decode(i,i.uint32());break}case 6:{a.sessionId=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.community.reply.v1.DialogListReply)return i;let n=new u.bilibili.main.community.reply.v1.DialogListReply;if(i.cursor!=null){if(typeof i.cursor!="object")throw TypeError(".bilibili.main.community.reply.v1.DialogListReply.cursor: object expected");n.cursor=u.bilibili.main.community.reply.v1.CursorReply.fromObject(i.cursor)}if(i.subjectControl!=null){if(typeof i.subjectControl!="object")throw TypeError(".bilibili.main.community.reply.v1.DialogListReply.subjectControl: object expected");n.subjectControl=u.bilibili.main.community.reply.v1.SubjectControl.fromObject(i.subjectControl)}if(i.replies){if(!Array.isArray(i.replies))throw TypeError(".bilibili.main.community.reply.v1.DialogListReply.replies: array expected");n.replies=[];for(let o=0;o>>3){case 1:{a.oid=i.int64();break}case 2:{a.type=i.int64();break}case 3:{a.root=i.int64();break}case 4:{a.rpid=i.int64();break}case 5:{a.cursor=u.bilibili.main.community.reply.v1.CursorReq.decode(i,i.uint32());break}case 6:{a.scene=i.int32();break}case 7:{a.mode=i.int32();break}case 8:{a.pagination=u.bilibili.pagination.FeedPagination.decode(i,i.uint32());break}case 9:{a.extra=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.community.reply.v1.DetailListReq)return i;let n=new u.bilibili.main.community.reply.v1.DetailListReq;if(i.oid!=null&&(r.Long?(n.oid=r.Long.fromValue(i.oid)).unsigned=!1:typeof i.oid=="string"?n.oid=parseInt(i.oid,10):typeof i.oid=="number"?n.oid=i.oid:typeof i.oid=="object"&&(n.oid=new r.LongBits(i.oid.low>>>0,i.oid.high>>>0).toNumber())),i.type!=null&&(r.Long?(n.type=r.Long.fromValue(i.type)).unsigned=!1:typeof i.type=="string"?n.type=parseInt(i.type,10):typeof i.type=="number"?n.type=i.type:typeof i.type=="object"&&(n.type=new r.LongBits(i.type.low>>>0,i.type.high>>>0).toNumber())),i.root!=null&&(r.Long?(n.root=r.Long.fromValue(i.root)).unsigned=!1:typeof i.root=="string"?n.root=parseInt(i.root,10):typeof i.root=="number"?n.root=i.root:typeof i.root=="object"&&(n.root=new r.LongBits(i.root.low>>>0,i.root.high>>>0).toNumber())),i.rpid!=null&&(r.Long?(n.rpid=r.Long.fromValue(i.rpid)).unsigned=!1:typeof i.rpid=="string"?n.rpid=parseInt(i.rpid,10):typeof i.rpid=="number"?n.rpid=i.rpid:typeof i.rpid=="object"&&(n.rpid=new r.LongBits(i.rpid.low>>>0,i.rpid.high>>>0).toNumber())),i.cursor!=null){if(typeof i.cursor!="object")throw TypeError(".bilibili.main.community.reply.v1.DetailListReq.cursor: object expected");n.cursor=u.bilibili.main.community.reply.v1.CursorReq.fromObject(i.cursor)}switch(i.scene){default:if(typeof i.scene=="number"){n.scene=i.scene;break}break;case"REPLY":case 0:n.scene=0;break;case"MSG_FEED":case 1:n.scene=1;break;case"NOTIFY":case 2:n.scene=2;break}switch(i.mode){default:if(typeof i.mode=="number"){n.mode=i.mode;break}break;case"DEFAULT":case 0:n.mode=0;break;case"UNSPECIFIED":case 1:n.mode=1;break;case"MAIN_LIST_TIME":case 2:n.mode=2;break;case"MAIN_LIST_HOT":case 3:n.mode=3;break}if(i.pagination!=null){if(typeof i.pagination!="object")throw TypeError(".bilibili.main.community.reply.v1.DetailListReq.pagination: object expected");n.pagination=u.bilibili.pagination.FeedPagination.fromObject(i.pagination)}return i.extra!=null&&(n.extra=String(i.extra)),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.oid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.oid=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.type=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.type=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.root=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.root=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.rpid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.rpid=n.longs===String?"0":0;o.cursor=null,o.scene=n.enums===String?"REPLY":0,o.mode=n.enums===String?"DEFAULT":0,o.pagination=null,o.extra=""}return i.oid!=null&&i.hasOwnProperty("oid")&&(typeof i.oid=="number"?o.oid=n.longs===String?String(i.oid):i.oid:o.oid=n.longs===String?r.Long.prototype.toString.call(i.oid):n.longs===Number?new r.LongBits(i.oid.low>>>0,i.oid.high>>>0).toNumber():i.oid),i.type!=null&&i.hasOwnProperty("type")&&(typeof i.type=="number"?o.type=n.longs===String?String(i.type):i.type:o.type=n.longs===String?r.Long.prototype.toString.call(i.type):n.longs===Number?new r.LongBits(i.type.low>>>0,i.type.high>>>0).toNumber():i.type),i.root!=null&&i.hasOwnProperty("root")&&(typeof i.root=="number"?o.root=n.longs===String?String(i.root):i.root:o.root=n.longs===String?r.Long.prototype.toString.call(i.root):n.longs===Number?new r.LongBits(i.root.low>>>0,i.root.high>>>0).toNumber():i.root),i.rpid!=null&&i.hasOwnProperty("rpid")&&(typeof i.rpid=="number"?o.rpid=n.longs===String?String(i.rpid):i.rpid:o.rpid=n.longs===String?r.Long.prototype.toString.call(i.rpid):n.longs===Number?new r.LongBits(i.rpid.low>>>0,i.rpid.high>>>0).toNumber():i.rpid),i.cursor!=null&&i.hasOwnProperty("cursor")&&(o.cursor=u.bilibili.main.community.reply.v1.CursorReq.toObject(i.cursor,n)),i.scene!=null&&i.hasOwnProperty("scene")&&(o.scene=n.enums===String?u.bilibili.main.community.reply.v1.DetailListScene[i.scene]===void 0?i.scene:u.bilibili.main.community.reply.v1.DetailListScene[i.scene]:i.scene),i.mode!=null&&i.hasOwnProperty("mode")&&(o.mode=n.enums===String?u.bilibili.main.community.reply.v1.Mode[i.mode]===void 0?i.mode:u.bilibili.main.community.reply.v1.Mode[i.mode]:i.mode),i.pagination!=null&&i.hasOwnProperty("pagination")&&(o.pagination=u.bilibili.pagination.FeedPagination.toObject(i.pagination,n)),i.extra!=null&&i.hasOwnProperty("extra")&&(o.extra=i.extra),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.community.reply.v1.DetailListReq"},l}(),e.DetailListReply=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.cursor=u.bilibili.main.community.reply.v1.CursorReply.decode(i,i.uint32());break}case 2:{a.subjectControl=u.bilibili.main.community.reply.v1.SubjectControl.decode(i,i.uint32());break}case 3:{a.root=u.bilibili.main.community.reply.v1.ReplyInfo.decode(i,i.uint32());break}case 4:{a.activity=u.bilibili.main.community.reply.v1.Activity.decode(i,i.uint32());break}case 5:{a.likes=u.bilibili.main.community.reply.v1.LikeInfo.decode(i,i.uint32());break}case 6:{a.mode=i.int32();break}case 7:{a.modeText=i.string();break}case 8:{a.paginationReply=u.bilibili.pagination.FeedPaginationReply.decode(i,i.uint32());break}case 9:{a.sessionId=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.community.reply.v1.DetailListReply)return i;let n=new u.bilibili.main.community.reply.v1.DetailListReply;if(i.cursor!=null){if(typeof i.cursor!="object")throw TypeError(".bilibili.main.community.reply.v1.DetailListReply.cursor: object expected");n.cursor=u.bilibili.main.community.reply.v1.CursorReply.fromObject(i.cursor)}if(i.subjectControl!=null){if(typeof i.subjectControl!="object")throw TypeError(".bilibili.main.community.reply.v1.DetailListReply.subjectControl: object expected");n.subjectControl=u.bilibili.main.community.reply.v1.SubjectControl.fromObject(i.subjectControl)}if(i.root!=null){if(typeof i.root!="object")throw TypeError(".bilibili.main.community.reply.v1.DetailListReply.root: object expected");n.root=u.bilibili.main.community.reply.v1.ReplyInfo.fromObject(i.root)}if(i.activity!=null){if(typeof i.activity!="object")throw TypeError(".bilibili.main.community.reply.v1.DetailListReply.activity: object expected");n.activity=u.bilibili.main.community.reply.v1.Activity.fromObject(i.activity)}if(i.likes!=null){if(typeof i.likes!="object")throw TypeError(".bilibili.main.community.reply.v1.DetailListReply.likes: object expected");n.likes=u.bilibili.main.community.reply.v1.LikeInfo.fromObject(i.likes)}switch(i.mode){default:if(typeof i.mode=="number"){n.mode=i.mode;break}break;case"DEFAULT":case 0:n.mode=0;break;case"UNSPECIFIED":case 1:n.mode=1;break;case"MAIN_LIST_TIME":case 2:n.mode=2;break;case"MAIN_LIST_HOT":case 3:n.mode=3;break}if(i.modeText!=null&&(n.modeText=String(i.modeText)),i.paginationReply!=null){if(typeof i.paginationReply!="object")throw TypeError(".bilibili.main.community.reply.v1.DetailListReply.paginationReply: object expected");n.paginationReply=u.bilibili.pagination.FeedPaginationReply.fromObject(i.paginationReply)}return i.sessionId!=null&&(n.sessionId=String(i.sessionId)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.cursor=null,o.subjectControl=null,o.root=null,o.activity=null,o.likes=null,o.mode=n.enums===String?"DEFAULT":0,o.modeText="",o.paginationReply=null,o.sessionId=""),i.cursor!=null&&i.hasOwnProperty("cursor")&&(o.cursor=u.bilibili.main.community.reply.v1.CursorReply.toObject(i.cursor,n)),i.subjectControl!=null&&i.hasOwnProperty("subjectControl")&&(o.subjectControl=u.bilibili.main.community.reply.v1.SubjectControl.toObject(i.subjectControl,n)),i.root!=null&&i.hasOwnProperty("root")&&(o.root=u.bilibili.main.community.reply.v1.ReplyInfo.toObject(i.root,n)),i.activity!=null&&i.hasOwnProperty("activity")&&(o.activity=u.bilibili.main.community.reply.v1.Activity.toObject(i.activity,n)),i.likes!=null&&i.hasOwnProperty("likes")&&(o.likes=u.bilibili.main.community.reply.v1.LikeInfo.toObject(i.likes,n)),i.mode!=null&&i.hasOwnProperty("mode")&&(o.mode=n.enums===String?u.bilibili.main.community.reply.v1.Mode[i.mode]===void 0?i.mode:u.bilibili.main.community.reply.v1.Mode[i.mode]:i.mode),i.modeText!=null&&i.hasOwnProperty("modeText")&&(o.modeText=i.modeText),i.paginationReply!=null&&i.hasOwnProperty("paginationReply")&&(o.paginationReply=u.bilibili.pagination.FeedPaginationReply.toObject(i.paginationReply,n)),i.sessionId!=null&&i.hasOwnProperty("sessionId")&&(o.sessionId=i.sessionId),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.community.reply.v1.DetailListReply"},l}(),e.LikeInfo=function(){function l(t){if(this.items=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.items&&a.items.length||(a.items=[]),a.items.push(u.bilibili.main.community.reply.v1.LikeInfo.Item.decode(i,i.uint32()));break}case 2:{a.title=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.community.reply.v1.LikeInfo)return i;let n=new u.bilibili.main.community.reply.v1.LikeInfo;if(i.items){if(!Array.isArray(i.items))throw TypeError(".bilibili.main.community.reply.v1.LikeInfo.items: array expected");n.items=[];for(let o=0;o>>3){case 1:{y.member=u.bilibili.main.community.reply.v1.Member.decode(n,n.uint32());break}default:n.skipType(s&7);break}}return y},t.fromObject=function(n){if(n instanceof u.bilibili.main.community.reply.v1.LikeInfo.Item)return n;let o=new u.bilibili.main.community.reply.v1.LikeInfo.Item;if(n.member!=null){if(typeof n.member!="object")throw TypeError(".bilibili.main.community.reply.v1.LikeInfo.Item.member: object expected");o.member=u.bilibili.main.community.reply.v1.Member.fromObject(n.member)}return o},t.toObject=function(n,o){o||(o={});let a={};return o.defaults&&(a.member=null),n.member!=null&&n.hasOwnProperty("member")&&(a.member=u.bilibili.main.community.reply.v1.Member.toObject(n.member,o)),a},t.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},t.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/bilibili.main.community.reply.v1.LikeInfo.Item"},t}(),l}(),e.MainListReq=function(){function l(t){if(this.clientRecallRpids=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.oid=i.int64();break}case 2:{a.type=i.int64();break}case 3:{a.cursor=u.bilibili.main.community.reply.v1.CursorReq.decode(i,i.uint32());break}case 4:{a.extra=i.string();break}case 5:{a.adExtra=i.string();break}case 6:{a.rpid=i.int64();break}case 7:{a.seekRpid=i.int64();break}case 8:{a.filterTagName=i.string();break}case 9:{a.mode=i.int32();break}case 10:{a.pagination=u.bilibili.pagination.FeedPagination.decode(i,i.uint32());break}case 11:{if(a.clientRecallRpids&&a.clientRecallRpids.length||(a.clientRecallRpids=[]),(y&7)===2){let s=i.uint32()+i.pos;for(;i.pos>>0,i.oid.high>>>0).toNumber())),i.type!=null&&(r.Long?(n.type=r.Long.fromValue(i.type)).unsigned=!1:typeof i.type=="string"?n.type=parseInt(i.type,10):typeof i.type=="number"?n.type=i.type:typeof i.type=="object"&&(n.type=new r.LongBits(i.type.low>>>0,i.type.high>>>0).toNumber())),i.cursor!=null){if(typeof i.cursor!="object")throw TypeError(".bilibili.main.community.reply.v1.MainListReq.cursor: object expected");n.cursor=u.bilibili.main.community.reply.v1.CursorReq.fromObject(i.cursor)}switch(i.extra!=null&&(n.extra=String(i.extra)),i.adExtra!=null&&(n.adExtra=String(i.adExtra)),i.rpid!=null&&(r.Long?(n.rpid=r.Long.fromValue(i.rpid)).unsigned=!1:typeof i.rpid=="string"?n.rpid=parseInt(i.rpid,10):typeof i.rpid=="number"?n.rpid=i.rpid:typeof i.rpid=="object"&&(n.rpid=new r.LongBits(i.rpid.low>>>0,i.rpid.high>>>0).toNumber())),i.seekRpid!=null&&(r.Long?(n.seekRpid=r.Long.fromValue(i.seekRpid)).unsigned=!1:typeof i.seekRpid=="string"?n.seekRpid=parseInt(i.seekRpid,10):typeof i.seekRpid=="number"?n.seekRpid=i.seekRpid:typeof i.seekRpid=="object"&&(n.seekRpid=new r.LongBits(i.seekRpid.low>>>0,i.seekRpid.high>>>0).toNumber())),i.filterTagName!=null&&(n.filterTagName=String(i.filterTagName)),i.mode){default:if(typeof i.mode=="number"){n.mode=i.mode;break}break;case"DEFAULT":case 0:n.mode=0;break;case"UNSPECIFIED":case 1:n.mode=1;break;case"MAIN_LIST_TIME":case 2:n.mode=2;break;case"MAIN_LIST_HOT":case 3:n.mode=3;break}if(i.pagination!=null){if(typeof i.pagination!="object")throw TypeError(".bilibili.main.community.reply.v1.MainListReq.pagination: object expected");n.pagination=u.bilibili.pagination.FeedPagination.fromObject(i.pagination)}if(i.clientRecallRpids){if(!Array.isArray(i.clientRecallRpids))throw TypeError(".bilibili.main.community.reply.v1.MainListReq.clientRecallRpids: array expected");n.clientRecallRpids=[];for(let o=0;o>>0,i.clientRecallRpids[o].high>>>0).toNumber())}return n},l.toObject=function(i,n){n||(n={});let o={};if((n.arrays||n.defaults)&&(o.clientRecallRpids=[]),n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.oid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.oid=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.type=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.type=n.longs===String?"0":0;if(o.cursor=null,o.extra="",o.adExtra="",r.Long){let a=new r.Long(0,0,!1);o.rpid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.rpid=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.seekRpid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.seekRpid=n.longs===String?"0":0;o.filterTagName="",o.mode=n.enums===String?"DEFAULT":0,o.pagination=null}if(i.oid!=null&&i.hasOwnProperty("oid")&&(typeof i.oid=="number"?o.oid=n.longs===String?String(i.oid):i.oid:o.oid=n.longs===String?r.Long.prototype.toString.call(i.oid):n.longs===Number?new r.LongBits(i.oid.low>>>0,i.oid.high>>>0).toNumber():i.oid),i.type!=null&&i.hasOwnProperty("type")&&(typeof i.type=="number"?o.type=n.longs===String?String(i.type):i.type:o.type=n.longs===String?r.Long.prototype.toString.call(i.type):n.longs===Number?new r.LongBits(i.type.low>>>0,i.type.high>>>0).toNumber():i.type),i.cursor!=null&&i.hasOwnProperty("cursor")&&(o.cursor=u.bilibili.main.community.reply.v1.CursorReq.toObject(i.cursor,n)),i.extra!=null&&i.hasOwnProperty("extra")&&(o.extra=i.extra),i.adExtra!=null&&i.hasOwnProperty("adExtra")&&(o.adExtra=i.adExtra),i.rpid!=null&&i.hasOwnProperty("rpid")&&(typeof i.rpid=="number"?o.rpid=n.longs===String?String(i.rpid):i.rpid:o.rpid=n.longs===String?r.Long.prototype.toString.call(i.rpid):n.longs===Number?new r.LongBits(i.rpid.low>>>0,i.rpid.high>>>0).toNumber():i.rpid),i.seekRpid!=null&&i.hasOwnProperty("seekRpid")&&(typeof i.seekRpid=="number"?o.seekRpid=n.longs===String?String(i.seekRpid):i.seekRpid:o.seekRpid=n.longs===String?r.Long.prototype.toString.call(i.seekRpid):n.longs===Number?new r.LongBits(i.seekRpid.low>>>0,i.seekRpid.high>>>0).toNumber():i.seekRpid),i.filterTagName!=null&&i.hasOwnProperty("filterTagName")&&(o.filterTagName=i.filterTagName),i.mode!=null&&i.hasOwnProperty("mode")&&(o.mode=n.enums===String?u.bilibili.main.community.reply.v1.Mode[i.mode]===void 0?i.mode:u.bilibili.main.community.reply.v1.Mode[i.mode]:i.mode),i.pagination!=null&&i.hasOwnProperty("pagination")&&(o.pagination=u.bilibili.pagination.FeedPagination.toObject(i.pagination,n)),i.clientRecallRpids&&i.clientRecallRpids.length){o.clientRecallRpids=[];for(let a=0;a>>0,i.clientRecallRpids[a].high>>>0).toNumber():i.clientRecallRpids[a]}return o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.community.reply.v1.MainListReq"},l}(),e.PreviewListReq=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.oid=i.int64();break}case 2:{a.type=i.int64();break}case 3:{a.cursor=u.bilibili.main.community.reply.v1.CursorReq.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.community.reply.v1.PreviewListReq)return i;let n=new u.bilibili.main.community.reply.v1.PreviewListReq;if(i.oid!=null&&(r.Long?(n.oid=r.Long.fromValue(i.oid)).unsigned=!1:typeof i.oid=="string"?n.oid=parseInt(i.oid,10):typeof i.oid=="number"?n.oid=i.oid:typeof i.oid=="object"&&(n.oid=new r.LongBits(i.oid.low>>>0,i.oid.high>>>0).toNumber())),i.type!=null&&(r.Long?(n.type=r.Long.fromValue(i.type)).unsigned=!1:typeof i.type=="string"?n.type=parseInt(i.type,10):typeof i.type=="number"?n.type=i.type:typeof i.type=="object"&&(n.type=new r.LongBits(i.type.low>>>0,i.type.high>>>0).toNumber())),i.cursor!=null){if(typeof i.cursor!="object")throw TypeError(".bilibili.main.community.reply.v1.PreviewListReq.cursor: object expected");n.cursor=u.bilibili.main.community.reply.v1.CursorReq.fromObject(i.cursor)}return n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.oid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.oid=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.type=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.type=n.longs===String?"0":0;o.cursor=null}return i.oid!=null&&i.hasOwnProperty("oid")&&(typeof i.oid=="number"?o.oid=n.longs===String?String(i.oid):i.oid:o.oid=n.longs===String?r.Long.prototype.toString.call(i.oid):n.longs===Number?new r.LongBits(i.oid.low>>>0,i.oid.high>>>0).toNumber():i.oid),i.type!=null&&i.hasOwnProperty("type")&&(typeof i.type=="number"?o.type=n.longs===String?String(i.type):i.type:o.type=n.longs===String?r.Long.prototype.toString.call(i.type):n.longs===Number?new r.LongBits(i.type.low>>>0,i.type.high>>>0).toNumber():i.type),i.cursor!=null&&i.hasOwnProperty("cursor")&&(o.cursor=u.bilibili.main.community.reply.v1.CursorReq.toObject(i.cursor,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.community.reply.v1.PreviewListReq"},l}(),e.ReplyExtra=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.seasonId=i.int64();break}case 2:{a.seasonType=i.int64();break}case 3:{a.epId=i.int64();break}case 4:{a.isStory=i.bool();break}case 5:{a.spmid=i.string();break}case 6:{a.fromSpmid=i.string();break}case 7:{a.disableUnderline=i.bool();break}case 8:{a.disableWeSearch=i.bool();break}case 9:{a.disableFilterTag=i.bool();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.community.reply.v1.ReplyExtra)return i;let n=new u.bilibili.main.community.reply.v1.ReplyExtra;return i.seasonId!=null&&(r.Long?(n.seasonId=r.Long.fromValue(i.seasonId)).unsigned=!1:typeof i.seasonId=="string"?n.seasonId=parseInt(i.seasonId,10):typeof i.seasonId=="number"?n.seasonId=i.seasonId:typeof i.seasonId=="object"&&(n.seasonId=new r.LongBits(i.seasonId.low>>>0,i.seasonId.high>>>0).toNumber())),i.seasonType!=null&&(r.Long?(n.seasonType=r.Long.fromValue(i.seasonType)).unsigned=!1:typeof i.seasonType=="string"?n.seasonType=parseInt(i.seasonType,10):typeof i.seasonType=="number"?n.seasonType=i.seasonType:typeof i.seasonType=="object"&&(n.seasonType=new r.LongBits(i.seasonType.low>>>0,i.seasonType.high>>>0).toNumber())),i.epId!=null&&(r.Long?(n.epId=r.Long.fromValue(i.epId)).unsigned=!1:typeof i.epId=="string"?n.epId=parseInt(i.epId,10):typeof i.epId=="number"?n.epId=i.epId:typeof i.epId=="object"&&(n.epId=new r.LongBits(i.epId.low>>>0,i.epId.high>>>0).toNumber())),i.isStory!=null&&(n.isStory=!!i.isStory),i.spmid!=null&&(n.spmid=String(i.spmid)),i.fromSpmid!=null&&(n.fromSpmid=String(i.fromSpmid)),i.disableUnderline!=null&&(n.disableUnderline=!!i.disableUnderline),i.disableWeSearch!=null&&(n.disableWeSearch=!!i.disableWeSearch),i.disableFilterTag!=null&&(n.disableFilterTag=!!i.disableFilterTag),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.seasonId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.seasonId=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.seasonType=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.seasonType=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.epId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.epId=n.longs===String?"0":0;o.isStory=!1,o.spmid="",o.fromSpmid="",o.disableUnderline=!1,o.disableWeSearch=!1,o.disableFilterTag=!1}return i.seasonId!=null&&i.hasOwnProperty("seasonId")&&(typeof i.seasonId=="number"?o.seasonId=n.longs===String?String(i.seasonId):i.seasonId:o.seasonId=n.longs===String?r.Long.prototype.toString.call(i.seasonId):n.longs===Number?new r.LongBits(i.seasonId.low>>>0,i.seasonId.high>>>0).toNumber():i.seasonId),i.seasonType!=null&&i.hasOwnProperty("seasonType")&&(typeof i.seasonType=="number"?o.seasonType=n.longs===String?String(i.seasonType):i.seasonType:o.seasonType=n.longs===String?r.Long.prototype.toString.call(i.seasonType):n.longs===Number?new r.LongBits(i.seasonType.low>>>0,i.seasonType.high>>>0).toNumber():i.seasonType),i.epId!=null&&i.hasOwnProperty("epId")&&(typeof i.epId=="number"?o.epId=n.longs===String?String(i.epId):i.epId:o.epId=n.longs===String?r.Long.prototype.toString.call(i.epId):n.longs===Number?new r.LongBits(i.epId.low>>>0,i.epId.high>>>0).toNumber():i.epId),i.isStory!=null&&i.hasOwnProperty("isStory")&&(o.isStory=i.isStory),i.spmid!=null&&i.hasOwnProperty("spmid")&&(o.spmid=i.spmid),i.fromSpmid!=null&&i.hasOwnProperty("fromSpmid")&&(o.fromSpmid=i.fromSpmid),i.disableUnderline!=null&&i.hasOwnProperty("disableUnderline")&&(o.disableUnderline=i.disableUnderline),i.disableWeSearch!=null&&i.hasOwnProperty("disableWeSearch")&&(o.disableWeSearch=i.disableWeSearch),i.disableFilterTag!=null&&i.hasOwnProperty("disableFilterTag")&&(o.disableFilterTag=i.disableFilterTag),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.community.reply.v1.ReplyExtra"},l}(),e.PreviewListReply=function(){function l(t){if(this.replies=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.cursor=u.bilibili.main.community.reply.v1.CursorReply.decode(i,i.uint32());break}case 2:{a.replies&&a.replies.length||(a.replies=[]),a.replies.push(u.bilibili.main.community.reply.v1.ReplyInfo.decode(i,i.uint32()));break}case 3:{a.subjectControl=u.bilibili.main.community.reply.v1.SubjectControl.decode(i,i.uint32());break}case 4:{a.upTop=u.bilibili.main.community.reply.v1.ReplyInfo.decode(i,i.uint32());break}case 5:{a.adminTop=u.bilibili.main.community.reply.v1.ReplyInfo.decode(i,i.uint32());break}case 6:{a.voteTop=u.bilibili.main.community.reply.v1.ReplyInfo.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.community.reply.v1.PreviewListReply)return i;let n=new u.bilibili.main.community.reply.v1.PreviewListReply;if(i.cursor!=null){if(typeof i.cursor!="object")throw TypeError(".bilibili.main.community.reply.v1.PreviewListReply.cursor: object expected");n.cursor=u.bilibili.main.community.reply.v1.CursorReply.fromObject(i.cursor)}if(i.replies){if(!Array.isArray(i.replies))throw TypeError(".bilibili.main.community.reply.v1.PreviewListReply.replies: array expected");n.replies=[];for(let o=0;o>>3){case 1:{a.cursor=u.bilibili.main.community.reply.v1.CursorReply.decode(i,i.uint32());break}case 2:{a.replies&&a.replies.length||(a.replies=[]),a.replies.push(u.bilibili.main.community.reply.v1.ReplyInfo.decode(i,i.uint32()));break}case 3:{a.subjectControl=u.bilibili.main.community.reply.v1.SubjectControl.decode(i,i.uint32());break}case 4:{a.upTop=u.bilibili.main.community.reply.v1.ReplyInfo.decode(i,i.uint32());break}case 5:{a.adminTop=u.bilibili.main.community.reply.v1.ReplyInfo.decode(i,i.uint32());break}case 6:{a.voteTop=u.bilibili.main.community.reply.v1.ReplyInfo.decode(i,i.uint32());break}case 7:{a.notice=u.bilibili.main.community.reply.v1.Notice.decode(i,i.uint32());break}case 8:{a.lottery=u.bilibili.main.community.reply.v1.Lottery.decode(i,i.uint32());break}case 9:{a.activity=u.bilibili.main.community.reply.v1.Activity.decode(i,i.uint32());break}case 10:{a.upSelection=u.bilibili.main.community.reply.v1.UpSelection.decode(i,i.uint32());break}case 11:{a.cm=u.bilibili.main.community.reply.v1.CM.decode(i,i.uint32());break}case 12:{a.effects=u.bilibili.main.community.reply.v1.Effects.decode(i,i.uint32());break}case 13:{a.operation=u.bilibili.main.community.reply.v1.Operation.decode(i,i.uint32());break}case 14:{a.topReplies&&a.topReplies.length||(a.topReplies=[]),a.topReplies.push(u.bilibili.main.community.reply.v1.ReplyInfo.decode(i,i.uint32()));break}case 15:{a.qoe=u.bilibili.main.community.reply.v1.QoeInfo.decode(i,i.uint32());break}case 16:{a.callbacks===r.emptyObject&&(a.callbacks={});let g=i.uint32()+i.pos;for(y="",s=0;i.pos>>3){case 1:y=i.string();break;case 2:s=i.int32();break;default:i.skipType(S&7);break}}a.callbacks[y]=s;break}case 17:{a.operationV2=u.bilibili.main.community.reply.v1.OperationV2.decode(i,i.uint32());break}case 18:{a.mode=i.int32();break}case 19:{a.modeText=i.string();break}case 20:{a.paginationReply=u.bilibili.pagination.FeedPaginationReply.decode(i,i.uint32());break}case 21:{a.sessionId=i.string();break}case 22:{a.reportParams=i.string();break}case 23:{a.voteCard=u.bilibili.main.community.reply.v1.VoteCard.decode(i,i.uint32());break}case 24:{a.esportsGradeCard=u.bilibili.main.community.reply.v1.ESportsGradeCard.decode(i,i.uint32());break}case 25:{a.contextFeature=i.string();break}case 26:{a.paginationEndText=i.string();break}default:i.skipType(v&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.community.reply.v1.MainListReply)return i;let n=new u.bilibili.main.community.reply.v1.MainListReply;if(i.cursor!=null){if(typeof i.cursor!="object")throw TypeError(".bilibili.main.community.reply.v1.MainListReply.cursor: object expected");n.cursor=u.bilibili.main.community.reply.v1.CursorReply.fromObject(i.cursor)}if(i.replies){if(!Array.isArray(i.replies))throw TypeError(".bilibili.main.community.reply.v1.MainListReply.replies: array expected");n.replies=[];for(let o=0;o>>3){case 1:{a.preloading=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.community.reply.v1.Effects)return i;let n=new u.bilibili.main.community.reply.v1.Effects;return i.preloading!=null&&(n.preloading=String(i.preloading)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.preloading=""),i.preloading!=null&&i.hasOwnProperty("preloading")&&(o.preloading=i.preloading),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.community.reply.v1.Effects"},l}(),e.UpSelection=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.pendingCount=i.int64();break}case 2:{a.ignoreCount=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.community.reply.v1.UpSelection)return i;let n=new u.bilibili.main.community.reply.v1.UpSelection;return i.pendingCount!=null&&(r.Long?(n.pendingCount=r.Long.fromValue(i.pendingCount)).unsigned=!1:typeof i.pendingCount=="string"?n.pendingCount=parseInt(i.pendingCount,10):typeof i.pendingCount=="number"?n.pendingCount=i.pendingCount:typeof i.pendingCount=="object"&&(n.pendingCount=new r.LongBits(i.pendingCount.low>>>0,i.pendingCount.high>>>0).toNumber())),i.ignoreCount!=null&&(r.Long?(n.ignoreCount=r.Long.fromValue(i.ignoreCount)).unsigned=!1:typeof i.ignoreCount=="string"?n.ignoreCount=parseInt(i.ignoreCount,10):typeof i.ignoreCount=="number"?n.ignoreCount=i.ignoreCount:typeof i.ignoreCount=="object"&&(n.ignoreCount=new r.LongBits(i.ignoreCount.low>>>0,i.ignoreCount.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.pendingCount=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.pendingCount=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.ignoreCount=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.ignoreCount=n.longs===String?"0":0}return i.pendingCount!=null&&i.hasOwnProperty("pendingCount")&&(typeof i.pendingCount=="number"?o.pendingCount=n.longs===String?String(i.pendingCount):i.pendingCount:o.pendingCount=n.longs===String?r.Long.prototype.toString.call(i.pendingCount):n.longs===Number?new r.LongBits(i.pendingCount.low>>>0,i.pendingCount.high>>>0).toNumber():i.pendingCount),i.ignoreCount!=null&&i.hasOwnProperty("ignoreCount")&&(typeof i.ignoreCount=="number"?o.ignoreCount=n.longs===String?String(i.ignoreCount):i.ignoreCount:o.ignoreCount=n.longs===String?r.Long.prototype.toString.call(i.ignoreCount):n.longs===Number?new r.LongBits(i.ignoreCount.low>>>0,i.ignoreCount.high>>>0).toNumber():i.ignoreCount),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.community.reply.v1.UpSelection"},l}(),e.Notice=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.id=i.int64();break}case 2:{a.content=i.string();break}case 3:{a.link=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.community.reply.v1.Notice)return i;let n=new u.bilibili.main.community.reply.v1.Notice;return i.id!=null&&(r.Long?(n.id=r.Long.fromValue(i.id)).unsigned=!1:typeof i.id=="string"?n.id=parseInt(i.id,10):typeof i.id=="number"?n.id=i.id:typeof i.id=="object"&&(n.id=new r.LongBits(i.id.low>>>0,i.id.high>>>0).toNumber())),i.content!=null&&(n.content=String(i.content)),i.link!=null&&(n.link=String(i.link)),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.id=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.id=n.longs===String?"0":0;o.content="",o.link=""}return i.id!=null&&i.hasOwnProperty("id")&&(typeof i.id=="number"?o.id=n.longs===String?String(i.id):i.id:o.id=n.longs===String?r.Long.prototype.toString.call(i.id):n.longs===Number?new r.LongBits(i.id.low>>>0,i.id.high>>>0).toNumber():i.id),i.content!=null&&i.hasOwnProperty("content")&&(o.content=i.content),i.link!=null&&i.hasOwnProperty("link")&&(o.link=i.link),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.community.reply.v1.Notice"},l}(),e.Activity=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.activityId=i.int64();break}case 2:{a.activityState=i.int64();break}case 3:{a.activityPlaceholder=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.community.reply.v1.Activity)return i;let n=new u.bilibili.main.community.reply.v1.Activity;return i.activityId!=null&&(r.Long?(n.activityId=r.Long.fromValue(i.activityId)).unsigned=!1:typeof i.activityId=="string"?n.activityId=parseInt(i.activityId,10):typeof i.activityId=="number"?n.activityId=i.activityId:typeof i.activityId=="object"&&(n.activityId=new r.LongBits(i.activityId.low>>>0,i.activityId.high>>>0).toNumber())),i.activityState!=null&&(r.Long?(n.activityState=r.Long.fromValue(i.activityState)).unsigned=!1:typeof i.activityState=="string"?n.activityState=parseInt(i.activityState,10):typeof i.activityState=="number"?n.activityState=i.activityState:typeof i.activityState=="object"&&(n.activityState=new r.LongBits(i.activityState.low>>>0,i.activityState.high>>>0).toNumber())),i.activityPlaceholder!=null&&(n.activityPlaceholder=String(i.activityPlaceholder)),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.activityId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.activityId=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.activityState=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.activityState=n.longs===String?"0":0;o.activityPlaceholder=""}return i.activityId!=null&&i.hasOwnProperty("activityId")&&(typeof i.activityId=="number"?o.activityId=n.longs===String?String(i.activityId):i.activityId:o.activityId=n.longs===String?r.Long.prototype.toString.call(i.activityId):n.longs===Number?new r.LongBits(i.activityId.low>>>0,i.activityId.high>>>0).toNumber():i.activityId),i.activityState!=null&&i.hasOwnProperty("activityState")&&(typeof i.activityState=="number"?o.activityState=n.longs===String?String(i.activityState):i.activityState:o.activityState=n.longs===String?r.Long.prototype.toString.call(i.activityState):n.longs===Number?new r.LongBits(i.activityState.low>>>0,i.activityState.high>>>0).toNumber():i.activityState),i.activityPlaceholder!=null&&i.hasOwnProperty("activityPlaceholder")&&(o.activityPlaceholder=i.activityPlaceholder),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.community.reply.v1.Activity"},l}(),e.Lottery=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.lotteryId=i.int64();break}case 2:{a.lotteryStatus=i.int64();break}case 3:{a.lotteryMid=i.int64();break}case 4:{a.lotteryTime=i.int64();break}case 5:{a.oid=i.int64();break}case 6:{a.type=i.int64();break}case 7:{a.ctime=i.int64();break}case 8:{a.content=u.bilibili.main.community.reply.v1.Content.decode(i,i.uint32());break}case 9:{a.member=u.bilibili.main.community.reply.v1.Member.decode(i,i.uint32());break}case 10:{a.replyControl=u.bilibili.main.community.reply.v1.ReplyControl.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.community.reply.v1.Lottery)return i;let n=new u.bilibili.main.community.reply.v1.Lottery;if(i.lotteryId!=null&&(r.Long?(n.lotteryId=r.Long.fromValue(i.lotteryId)).unsigned=!1:typeof i.lotteryId=="string"?n.lotteryId=parseInt(i.lotteryId,10):typeof i.lotteryId=="number"?n.lotteryId=i.lotteryId:typeof i.lotteryId=="object"&&(n.lotteryId=new r.LongBits(i.lotteryId.low>>>0,i.lotteryId.high>>>0).toNumber())),i.lotteryStatus!=null&&(r.Long?(n.lotteryStatus=r.Long.fromValue(i.lotteryStatus)).unsigned=!1:typeof i.lotteryStatus=="string"?n.lotteryStatus=parseInt(i.lotteryStatus,10):typeof i.lotteryStatus=="number"?n.lotteryStatus=i.lotteryStatus:typeof i.lotteryStatus=="object"&&(n.lotteryStatus=new r.LongBits(i.lotteryStatus.low>>>0,i.lotteryStatus.high>>>0).toNumber())),i.lotteryMid!=null&&(r.Long?(n.lotteryMid=r.Long.fromValue(i.lotteryMid)).unsigned=!1:typeof i.lotteryMid=="string"?n.lotteryMid=parseInt(i.lotteryMid,10):typeof i.lotteryMid=="number"?n.lotteryMid=i.lotteryMid:typeof i.lotteryMid=="object"&&(n.lotteryMid=new r.LongBits(i.lotteryMid.low>>>0,i.lotteryMid.high>>>0).toNumber())),i.lotteryTime!=null&&(r.Long?(n.lotteryTime=r.Long.fromValue(i.lotteryTime)).unsigned=!1:typeof i.lotteryTime=="string"?n.lotteryTime=parseInt(i.lotteryTime,10):typeof i.lotteryTime=="number"?n.lotteryTime=i.lotteryTime:typeof i.lotteryTime=="object"&&(n.lotteryTime=new r.LongBits(i.lotteryTime.low>>>0,i.lotteryTime.high>>>0).toNumber())),i.oid!=null&&(r.Long?(n.oid=r.Long.fromValue(i.oid)).unsigned=!1:typeof i.oid=="string"?n.oid=parseInt(i.oid,10):typeof i.oid=="number"?n.oid=i.oid:typeof i.oid=="object"&&(n.oid=new r.LongBits(i.oid.low>>>0,i.oid.high>>>0).toNumber())),i.type!=null&&(r.Long?(n.type=r.Long.fromValue(i.type)).unsigned=!1:typeof i.type=="string"?n.type=parseInt(i.type,10):typeof i.type=="number"?n.type=i.type:typeof i.type=="object"&&(n.type=new r.LongBits(i.type.low>>>0,i.type.high>>>0).toNumber())),i.ctime!=null&&(r.Long?(n.ctime=r.Long.fromValue(i.ctime)).unsigned=!1:typeof i.ctime=="string"?n.ctime=parseInt(i.ctime,10):typeof i.ctime=="number"?n.ctime=i.ctime:typeof i.ctime=="object"&&(n.ctime=new r.LongBits(i.ctime.low>>>0,i.ctime.high>>>0).toNumber())),i.content!=null){if(typeof i.content!="object")throw TypeError(".bilibili.main.community.reply.v1.Lottery.content: object expected");n.content=u.bilibili.main.community.reply.v1.Content.fromObject(i.content)}if(i.member!=null){if(typeof i.member!="object")throw TypeError(".bilibili.main.community.reply.v1.Lottery.member: object expected");n.member=u.bilibili.main.community.reply.v1.Member.fromObject(i.member)}if(i.replyControl!=null){if(typeof i.replyControl!="object")throw TypeError(".bilibili.main.community.reply.v1.Lottery.replyControl: object expected");n.replyControl=u.bilibili.main.community.reply.v1.ReplyControl.fromObject(i.replyControl)}return n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.lotteryId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.lotteryId=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.lotteryStatus=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.lotteryStatus=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.lotteryMid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.lotteryMid=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.lotteryTime=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.lotteryTime=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.oid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.oid=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.type=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.type=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.ctime=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.ctime=n.longs===String?"0":0;o.content=null,o.member=null,o.replyControl=null}return i.lotteryId!=null&&i.hasOwnProperty("lotteryId")&&(typeof i.lotteryId=="number"?o.lotteryId=n.longs===String?String(i.lotteryId):i.lotteryId:o.lotteryId=n.longs===String?r.Long.prototype.toString.call(i.lotteryId):n.longs===Number?new r.LongBits(i.lotteryId.low>>>0,i.lotteryId.high>>>0).toNumber():i.lotteryId),i.lotteryStatus!=null&&i.hasOwnProperty("lotteryStatus")&&(typeof i.lotteryStatus=="number"?o.lotteryStatus=n.longs===String?String(i.lotteryStatus):i.lotteryStatus:o.lotteryStatus=n.longs===String?r.Long.prototype.toString.call(i.lotteryStatus):n.longs===Number?new r.LongBits(i.lotteryStatus.low>>>0,i.lotteryStatus.high>>>0).toNumber():i.lotteryStatus),i.lotteryMid!=null&&i.hasOwnProperty("lotteryMid")&&(typeof i.lotteryMid=="number"?o.lotteryMid=n.longs===String?String(i.lotteryMid):i.lotteryMid:o.lotteryMid=n.longs===String?r.Long.prototype.toString.call(i.lotteryMid):n.longs===Number?new r.LongBits(i.lotteryMid.low>>>0,i.lotteryMid.high>>>0).toNumber():i.lotteryMid),i.lotteryTime!=null&&i.hasOwnProperty("lotteryTime")&&(typeof i.lotteryTime=="number"?o.lotteryTime=n.longs===String?String(i.lotteryTime):i.lotteryTime:o.lotteryTime=n.longs===String?r.Long.prototype.toString.call(i.lotteryTime):n.longs===Number?new r.LongBits(i.lotteryTime.low>>>0,i.lotteryTime.high>>>0).toNumber():i.lotteryTime),i.oid!=null&&i.hasOwnProperty("oid")&&(typeof i.oid=="number"?o.oid=n.longs===String?String(i.oid):i.oid:o.oid=n.longs===String?r.Long.prototype.toString.call(i.oid):n.longs===Number?new r.LongBits(i.oid.low>>>0,i.oid.high>>>0).toNumber():i.oid),i.type!=null&&i.hasOwnProperty("type")&&(typeof i.type=="number"?o.type=n.longs===String?String(i.type):i.type:o.type=n.longs===String?r.Long.prototype.toString.call(i.type):n.longs===Number?new r.LongBits(i.type.low>>>0,i.type.high>>>0).toNumber():i.type),i.ctime!=null&&i.hasOwnProperty("ctime")&&(typeof i.ctime=="number"?o.ctime=n.longs===String?String(i.ctime):i.ctime:o.ctime=n.longs===String?r.Long.prototype.toString.call(i.ctime):n.longs===Number?new r.LongBits(i.ctime.low>>>0,i.ctime.high>>>0).toNumber():i.ctime),i.content!=null&&i.hasOwnProperty("content")&&(o.content=u.bilibili.main.community.reply.v1.Content.toObject(i.content,n)),i.member!=null&&i.hasOwnProperty("member")&&(o.member=u.bilibili.main.community.reply.v1.Member.toObject(i.member,n)),i.replyControl!=null&&i.hasOwnProperty("replyControl")&&(o.replyControl=u.bilibili.main.community.reply.v1.ReplyControl.toObject(i.replyControl,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.community.reply.v1.Lottery"},l}(),e.Mode=function(){let l={},t=Object.create(l);return t[l[0]="DEFAULT"]=0,t[l[1]="UNSPECIFIED"]=1,t[l[2]="MAIN_LIST_TIME"]=2,t[l[3]="MAIN_LIST_HOT"]=3,t}(),e.CursorReq=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.next=i.int64();break}case 2:{a.prev=i.int64();break}case 4:{a.mode=i.int32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.community.reply.v1.CursorReq)return i;let n=new u.bilibili.main.community.reply.v1.CursorReq;switch(i.next!=null&&(r.Long?(n.next=r.Long.fromValue(i.next)).unsigned=!1:typeof i.next=="string"?n.next=parseInt(i.next,10):typeof i.next=="number"?n.next=i.next:typeof i.next=="object"&&(n.next=new r.LongBits(i.next.low>>>0,i.next.high>>>0).toNumber())),i.prev!=null&&(r.Long?(n.prev=r.Long.fromValue(i.prev)).unsigned=!1:typeof i.prev=="string"?n.prev=parseInt(i.prev,10):typeof i.prev=="number"?n.prev=i.prev:typeof i.prev=="object"&&(n.prev=new r.LongBits(i.prev.low>>>0,i.prev.high>>>0).toNumber())),i.mode){default:if(typeof i.mode=="number"){n.mode=i.mode;break}break;case"DEFAULT":case 0:n.mode=0;break;case"UNSPECIFIED":case 1:n.mode=1;break;case"MAIN_LIST_TIME":case 2:n.mode=2;break;case"MAIN_LIST_HOT":case 3:n.mode=3;break}return n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.next=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.next=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.prev=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.prev=n.longs===String?"0":0;o.mode=n.enums===String?"DEFAULT":0}return i.next!=null&&i.hasOwnProperty("next")&&(typeof i.next=="number"?o.next=n.longs===String?String(i.next):i.next:o.next=n.longs===String?r.Long.prototype.toString.call(i.next):n.longs===Number?new r.LongBits(i.next.low>>>0,i.next.high>>>0).toNumber():i.next),i.prev!=null&&i.hasOwnProperty("prev")&&(typeof i.prev=="number"?o.prev=n.longs===String?String(i.prev):i.prev:o.prev=n.longs===String?r.Long.prototype.toString.call(i.prev):n.longs===Number?new r.LongBits(i.prev.low>>>0,i.prev.high>>>0).toNumber():i.prev),i.mode!=null&&i.hasOwnProperty("mode")&&(o.mode=n.enums===String?u.bilibili.main.community.reply.v1.Mode[i.mode]===void 0?i.mode:u.bilibili.main.community.reply.v1.Mode[i.mode]:i.mode),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.community.reply.v1.CursorReq"},l}(),e.CursorReply=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.next=i.int64();break}case 2:{a.prev=i.int64();break}case 3:{a.isBegin=i.bool();break}case 4:{a.isEnd=i.bool();break}case 5:{a.mode=i.int32();break}case 6:{a.modeText=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.community.reply.v1.CursorReply)return i;let n=new u.bilibili.main.community.reply.v1.CursorReply;switch(i.next!=null&&(r.Long?(n.next=r.Long.fromValue(i.next)).unsigned=!1:typeof i.next=="string"?n.next=parseInt(i.next,10):typeof i.next=="number"?n.next=i.next:typeof i.next=="object"&&(n.next=new r.LongBits(i.next.low>>>0,i.next.high>>>0).toNumber())),i.prev!=null&&(r.Long?(n.prev=r.Long.fromValue(i.prev)).unsigned=!1:typeof i.prev=="string"?n.prev=parseInt(i.prev,10):typeof i.prev=="number"?n.prev=i.prev:typeof i.prev=="object"&&(n.prev=new r.LongBits(i.prev.low>>>0,i.prev.high>>>0).toNumber())),i.isBegin!=null&&(n.isBegin=!!i.isBegin),i.isEnd!=null&&(n.isEnd=!!i.isEnd),i.mode){default:if(typeof i.mode=="number"){n.mode=i.mode;break}break;case"DEFAULT":case 0:n.mode=0;break;case"UNSPECIFIED":case 1:n.mode=1;break;case"MAIN_LIST_TIME":case 2:n.mode=2;break;case"MAIN_LIST_HOT":case 3:n.mode=3;break}return i.modeText!=null&&(n.modeText=String(i.modeText)),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.next=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.next=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.prev=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.prev=n.longs===String?"0":0;o.isBegin=!1,o.isEnd=!1,o.mode=n.enums===String?"DEFAULT":0,o.modeText=""}return i.next!=null&&i.hasOwnProperty("next")&&(typeof i.next=="number"?o.next=n.longs===String?String(i.next):i.next:o.next=n.longs===String?r.Long.prototype.toString.call(i.next):n.longs===Number?new r.LongBits(i.next.low>>>0,i.next.high>>>0).toNumber():i.next),i.prev!=null&&i.hasOwnProperty("prev")&&(typeof i.prev=="number"?o.prev=n.longs===String?String(i.prev):i.prev:o.prev=n.longs===String?r.Long.prototype.toString.call(i.prev):n.longs===Number?new r.LongBits(i.prev.low>>>0,i.prev.high>>>0).toNumber():i.prev),i.isBegin!=null&&i.hasOwnProperty("isBegin")&&(o.isBegin=i.isBegin),i.isEnd!=null&&i.hasOwnProperty("isEnd")&&(o.isEnd=i.isEnd),i.mode!=null&&i.hasOwnProperty("mode")&&(o.mode=n.enums===String?u.bilibili.main.community.reply.v1.Mode[i.mode]===void 0?i.mode:u.bilibili.main.community.reply.v1.Mode[i.mode]:i.mode),i.modeText!=null&&i.hasOwnProperty("modeText")&&(o.modeText=i.modeText),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.community.reply.v1.CursorReply"},l}(),e.EditorIconState=function(){let l={},t=Object.create(l);return t[l[0]="EditorIconState_DEFAULT"]=0,t[l[1]="EditorIconState_ENABLE"]=1,t[l[2]="EditorIconState_DISABLE"]=2,t[l[3]="EditorIconState_HIDE"]=3,t}(),e.TextStyle=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.fontSize=i.int32();break}case 2:{a.fontStyle=i.int32();break}case 3:{a.textDayColor=i.string();break}case 4:{a.textNightColor=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.community.reply.v1.TextStyle)return i;let n=new u.bilibili.main.community.reply.v1.TextStyle;switch(i.fontSize!=null&&(n.fontSize=i.fontSize|0),i.fontStyle){default:if(typeof i.fontStyle=="number"){n.fontStyle=i.fontStyle;break}break;case"NORMAL":case 0:n.fontStyle=0;break;case"BOLD":case 1:n.fontStyle=1;break}return i.textDayColor!=null&&(n.textDayColor=String(i.textDayColor)),i.textNightColor!=null&&(n.textNightColor=String(i.textNightColor)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.fontSize=0,o.fontStyle=n.enums===String?"NORMAL":0,o.textDayColor="",o.textNightColor=""),i.fontSize!=null&&i.hasOwnProperty("fontSize")&&(o.fontSize=i.fontSize),i.fontStyle!=null&&i.hasOwnProperty("fontStyle")&&(o.fontStyle=n.enums===String?u.bilibili.main.community.reply.v1.TextStyle.FontStyle[i.fontStyle]===void 0?i.fontStyle:u.bilibili.main.community.reply.v1.TextStyle.FontStyle[i.fontStyle]:i.fontStyle),i.textDayColor!=null&&i.hasOwnProperty("textDayColor")&&(o.textDayColor=i.textDayColor),i.textNightColor!=null&&i.hasOwnProperty("textNightColor")&&(o.textNightColor=i.textNightColor),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.community.reply.v1.TextStyle"},l.FontStyle=function(){let t={},i=Object.create(t);return i[t[0]="NORMAL"]=0,i[t[1]="BOLD"]=1,i}(),l}(),e.EmptyPage=function(){function l(t){if(this.texts=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.imageUrl=i.string();break}case 2:{a.texts&&a.texts.length||(a.texts=[]),a.texts.push(u.bilibili.main.community.reply.v1.EmptyPage.Text.decode(i,i.uint32()));break}case 3:{a.leftButton=u.bilibili.main.community.reply.v1.EmptyPage.Button.decode(i,i.uint32());break}case 4:{a.rightButton=u.bilibili.main.community.reply.v1.EmptyPage.Button.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.community.reply.v1.EmptyPage)return i;let n=new u.bilibili.main.community.reply.v1.EmptyPage;if(i.imageUrl!=null&&(n.imageUrl=String(i.imageUrl)),i.texts){if(!Array.isArray(i.texts))throw TypeError(".bilibili.main.community.reply.v1.EmptyPage.texts: array expected");n.texts=[];for(let o=0;o>>3){case 1:{y.raw=n.string();break}case 2:{y.style=u.bilibili.main.community.reply.v1.TextStyle.decode(n,n.uint32());break}case 3:{y.action=n.int32();break}default:n.skipType(s&7);break}}return y},t.fromObject=function(n){if(n instanceof u.bilibili.main.community.reply.v1.EmptyPage.Text)return n;let o=new u.bilibili.main.community.reply.v1.EmptyPage.Text;if(n.raw!=null&&(o.raw=String(n.raw)),n.style!=null){if(typeof n.style!="object")throw TypeError(".bilibili.main.community.reply.v1.EmptyPage.Text.style: object expected");o.style=u.bilibili.main.community.reply.v1.TextStyle.fromObject(n.style)}switch(n.action){default:if(typeof n.action=="number"){o.action=n.action;break}break;case"UNAVAILABLE":case 0:o.action=0;break;case"SHOW_KEYBOARD":case 1:o.action=1;break;case"SEND_REPLY_WITH_BOLD_TEXT":case 2:o.action=2;break}return o},t.toObject=function(n,o){o||(o={});let a={};return o.defaults&&(a.raw="",a.style=null,a.action=o.enums===String?"UNAVAILABLE":0),n.raw!=null&&n.hasOwnProperty("raw")&&(a.raw=n.raw),n.style!=null&&n.hasOwnProperty("style")&&(a.style=u.bilibili.main.community.reply.v1.TextStyle.toObject(n.style,o)),n.action!=null&&n.hasOwnProperty("action")&&(a.action=o.enums===String?u.bilibili.main.community.reply.v1.EmptyPage.Action[n.action]===void 0?n.action:u.bilibili.main.community.reply.v1.EmptyPage.Action[n.action]:n.action),a},t.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},t.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/bilibili.main.community.reply.v1.EmptyPage.Text"},t}(),l.Button=function(){function t(i){if(i)for(let n=Object.keys(i),o=0;o>>3){case 1:{y.title=n.string();break}case 2:{y.action=n.int32();break}default:n.skipType(s&7);break}}return y},t.fromObject=function(n){if(n instanceof u.bilibili.main.community.reply.v1.EmptyPage.Button)return n;let o=new u.bilibili.main.community.reply.v1.EmptyPage.Button;switch(n.title!=null&&(o.title=String(n.title)),n.action){default:if(typeof n.action=="number"){o.action=n.action;break}break;case"UNAVAILABLE":case 0:o.action=0;break;case"SHOW_KEYBOARD":case 1:o.action=1;break;case"SEND_REPLY_WITH_BOLD_TEXT":case 2:o.action=2;break}return o},t.toObject=function(n,o){o||(o={});let a={};return o.defaults&&(a.title="",a.action=o.enums===String?"UNAVAILABLE":0),n.title!=null&&n.hasOwnProperty("title")&&(a.title=n.title),n.action!=null&&n.hasOwnProperty("action")&&(a.action=o.enums===String?u.bilibili.main.community.reply.v1.EmptyPage.Action[n.action]===void 0?n.action:u.bilibili.main.community.reply.v1.EmptyPage.Action[n.action]:n.action),a},t.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},t.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/bilibili.main.community.reply.v1.EmptyPage.Button"},t}(),l}(),e.SubjectControl=function(){function l(t){if(this.supportFilterTags=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.upMid=i.int64();break}case 2:{a.isAssist=i.bool();break}case 3:{a.readOnly=i.bool();break}case 4:{a.hasVoteAccess=i.bool();break}case 5:{a.hasLotteryAccess=i.bool();break}case 6:{a.hasFoldedReply=i.bool();break}case 7:{a.bgText=i.string();break}case 8:{a.upBlocked=i.bool();break}case 9:{a.hasActivityAccess=i.bool();break}case 10:{a.showTitle=i.bool();break}case 11:{a.showUpAction=i.bool();break}case 12:{a.switcherType=i.int64();break}case 13:{a.inputDisable=i.bool();break}case 14:{a.rootText=i.string();break}case 15:{a.childText=i.string();break}case 16:{a.count=i.int64();break}case 17:{a.title=i.string();break}case 18:{a.giveupText=i.string();break}case 19:{a.hasNoteAccess=i.bool();break}case 20:{a.disableJumpEmote=i.bool();break}case 21:{a.emptyBackgroundTextPlain=i.string();break}case 22:{a.emptyBackgroundTextHighlight=i.string();break}case 23:{a.emptyBackgroundUri=i.string();break}case 24:{a.supportFilterTags&&a.supportFilterTags.length||(a.supportFilterTags=[]),a.supportFilterTags.push(u.bilibili.main.community.reply.v1.SubjectControl.FilterTag.decode(i,i.uint32()));break}case 25:{a.screenshotIconState=i.int32();break}case 26:{a.uploadPictureIconState=i.int32();break}case 27:{a.emptyPage=u.bilibili.main.community.reply.v1.EmptyPage.decode(i,i.uint32());break}case 28:{a.cmTopReplyProtection=u.bilibili.main.community.reply.v1.SubjectControl.CmTopReplyProtection.decode(i,i.uint32());break}case 29:{a.enableCharged=i.bool();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.community.reply.v1.SubjectControl)return i;let n=new u.bilibili.main.community.reply.v1.SubjectControl;if(i.upMid!=null&&(r.Long?(n.upMid=r.Long.fromValue(i.upMid)).unsigned=!1:typeof i.upMid=="string"?n.upMid=parseInt(i.upMid,10):typeof i.upMid=="number"?n.upMid=i.upMid:typeof i.upMid=="object"&&(n.upMid=new r.LongBits(i.upMid.low>>>0,i.upMid.high>>>0).toNumber())),i.isAssist!=null&&(n.isAssist=!!i.isAssist),i.readOnly!=null&&(n.readOnly=!!i.readOnly),i.hasVoteAccess!=null&&(n.hasVoteAccess=!!i.hasVoteAccess),i.hasLotteryAccess!=null&&(n.hasLotteryAccess=!!i.hasLotteryAccess),i.hasFoldedReply!=null&&(n.hasFoldedReply=!!i.hasFoldedReply),i.bgText!=null&&(n.bgText=String(i.bgText)),i.upBlocked!=null&&(n.upBlocked=!!i.upBlocked),i.hasActivityAccess!=null&&(n.hasActivityAccess=!!i.hasActivityAccess),i.showTitle!=null&&(n.showTitle=!!i.showTitle),i.showUpAction!=null&&(n.showUpAction=!!i.showUpAction),i.switcherType!=null&&(r.Long?(n.switcherType=r.Long.fromValue(i.switcherType)).unsigned=!1:typeof i.switcherType=="string"?n.switcherType=parseInt(i.switcherType,10):typeof i.switcherType=="number"?n.switcherType=i.switcherType:typeof i.switcherType=="object"&&(n.switcherType=new r.LongBits(i.switcherType.low>>>0,i.switcherType.high>>>0).toNumber())),i.inputDisable!=null&&(n.inputDisable=!!i.inputDisable),i.rootText!=null&&(n.rootText=String(i.rootText)),i.childText!=null&&(n.childText=String(i.childText)),i.count!=null&&(r.Long?(n.count=r.Long.fromValue(i.count)).unsigned=!1:typeof i.count=="string"?n.count=parseInt(i.count,10):typeof i.count=="number"?n.count=i.count:typeof i.count=="object"&&(n.count=new r.LongBits(i.count.low>>>0,i.count.high>>>0).toNumber())),i.title!=null&&(n.title=String(i.title)),i.giveupText!=null&&(n.giveupText=String(i.giveupText)),i.hasNoteAccess!=null&&(n.hasNoteAccess=!!i.hasNoteAccess),i.disableJumpEmote!=null&&(n.disableJumpEmote=!!i.disableJumpEmote),i.emptyBackgroundTextPlain!=null&&(n.emptyBackgroundTextPlain=String(i.emptyBackgroundTextPlain)),i.emptyBackgroundTextHighlight!=null&&(n.emptyBackgroundTextHighlight=String(i.emptyBackgroundTextHighlight)),i.emptyBackgroundUri!=null&&(n.emptyBackgroundUri=String(i.emptyBackgroundUri)),i.supportFilterTags){if(!Array.isArray(i.supportFilterTags))throw TypeError(".bilibili.main.community.reply.v1.SubjectControl.supportFilterTags: array expected");n.supportFilterTags=[];for(let o=0;o>>0,i.upMid.high>>>0).toNumber():i.upMid),i.isAssist!=null&&i.hasOwnProperty("isAssist")&&(o.isAssist=i.isAssist),i.readOnly!=null&&i.hasOwnProperty("readOnly")&&(o.readOnly=i.readOnly),i.hasVoteAccess!=null&&i.hasOwnProperty("hasVoteAccess")&&(o.hasVoteAccess=i.hasVoteAccess),i.hasLotteryAccess!=null&&i.hasOwnProperty("hasLotteryAccess")&&(o.hasLotteryAccess=i.hasLotteryAccess),i.hasFoldedReply!=null&&i.hasOwnProperty("hasFoldedReply")&&(o.hasFoldedReply=i.hasFoldedReply),i.bgText!=null&&i.hasOwnProperty("bgText")&&(o.bgText=i.bgText),i.upBlocked!=null&&i.hasOwnProperty("upBlocked")&&(o.upBlocked=i.upBlocked),i.hasActivityAccess!=null&&i.hasOwnProperty("hasActivityAccess")&&(o.hasActivityAccess=i.hasActivityAccess),i.showTitle!=null&&i.hasOwnProperty("showTitle")&&(o.showTitle=i.showTitle),i.showUpAction!=null&&i.hasOwnProperty("showUpAction")&&(o.showUpAction=i.showUpAction),i.switcherType!=null&&i.hasOwnProperty("switcherType")&&(typeof i.switcherType=="number"?o.switcherType=n.longs===String?String(i.switcherType):i.switcherType:o.switcherType=n.longs===String?r.Long.prototype.toString.call(i.switcherType):n.longs===Number?new r.LongBits(i.switcherType.low>>>0,i.switcherType.high>>>0).toNumber():i.switcherType),i.inputDisable!=null&&i.hasOwnProperty("inputDisable")&&(o.inputDisable=i.inputDisable),i.rootText!=null&&i.hasOwnProperty("rootText")&&(o.rootText=i.rootText),i.childText!=null&&i.hasOwnProperty("childText")&&(o.childText=i.childText),i.count!=null&&i.hasOwnProperty("count")&&(typeof i.count=="number"?o.count=n.longs===String?String(i.count):i.count:o.count=n.longs===String?r.Long.prototype.toString.call(i.count):n.longs===Number?new r.LongBits(i.count.low>>>0,i.count.high>>>0).toNumber():i.count),i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.giveupText!=null&&i.hasOwnProperty("giveupText")&&(o.giveupText=i.giveupText),i.hasNoteAccess!=null&&i.hasOwnProperty("hasNoteAccess")&&(o.hasNoteAccess=i.hasNoteAccess),i.disableJumpEmote!=null&&i.hasOwnProperty("disableJumpEmote")&&(o.disableJumpEmote=i.disableJumpEmote),i.emptyBackgroundTextPlain!=null&&i.hasOwnProperty("emptyBackgroundTextPlain")&&(o.emptyBackgroundTextPlain=i.emptyBackgroundTextPlain),i.emptyBackgroundTextHighlight!=null&&i.hasOwnProperty("emptyBackgroundTextHighlight")&&(o.emptyBackgroundTextHighlight=i.emptyBackgroundTextHighlight),i.emptyBackgroundUri!=null&&i.hasOwnProperty("emptyBackgroundUri")&&(o.emptyBackgroundUri=i.emptyBackgroundUri),i.supportFilterTags&&i.supportFilterTags.length){o.supportFilterTags=[];for(let a=0;a>>3){case 1:{y.name=n.string();break}case 2:{y.eventId=n.string();break}default:n.skipType(s&7);break}}return y},t.fromObject=function(n){if(n instanceof u.bilibili.main.community.reply.v1.SubjectControl.FilterTag)return n;let o=new u.bilibili.main.community.reply.v1.SubjectControl.FilterTag;return n.name!=null&&(o.name=String(n.name)),n.eventId!=null&&(o.eventId=String(n.eventId)),o},t.toObject=function(n,o){o||(o={});let a={};return o.defaults&&(a.name="",a.eventId=""),n.name!=null&&n.hasOwnProperty("name")&&(a.name=n.name),n.eventId!=null&&n.hasOwnProperty("eventId")&&(a.eventId=n.eventId),a},t.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},t.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/bilibili.main.community.reply.v1.SubjectControl.FilterTag"},t}(),l.CmTopReplyProtection=function(){function t(i){if(i)for(let n=Object.keys(i),o=0;o>>3){case 1:{y.protectedTopRpid=n.int64();break}case 2:{y.popupMessage=n.string();break}case 3:{y.appealUrl=n.string();break}default:n.skipType(s&7);break}}return y},t.fromObject=function(n){if(n instanceof u.bilibili.main.community.reply.v1.SubjectControl.CmTopReplyProtection)return n;let o=new u.bilibili.main.community.reply.v1.SubjectControl.CmTopReplyProtection;return n.protectedTopRpid!=null&&(r.Long?(o.protectedTopRpid=r.Long.fromValue(n.protectedTopRpid)).unsigned=!1:typeof n.protectedTopRpid=="string"?o.protectedTopRpid=parseInt(n.protectedTopRpid,10):typeof n.protectedTopRpid=="number"?o.protectedTopRpid=n.protectedTopRpid:typeof n.protectedTopRpid=="object"&&(o.protectedTopRpid=new r.LongBits(n.protectedTopRpid.low>>>0,n.protectedTopRpid.high>>>0).toNumber())),n.popupMessage!=null&&(o.popupMessage=String(n.popupMessage)),n.appealUrl!=null&&(o.appealUrl=String(n.appealUrl)),o},t.toObject=function(n,o){o||(o={});let a={};if(o.defaults){if(r.Long){let y=new r.Long(0,0,!1);a.protectedTopRpid=o.longs===String?y.toString():o.longs===Number?y.toNumber():y}else a.protectedTopRpid=o.longs===String?"0":0;a.popupMessage="",a.appealUrl=""}return n.protectedTopRpid!=null&&n.hasOwnProperty("protectedTopRpid")&&(typeof n.protectedTopRpid=="number"?a.protectedTopRpid=o.longs===String?String(n.protectedTopRpid):n.protectedTopRpid:a.protectedTopRpid=o.longs===String?r.Long.prototype.toString.call(n.protectedTopRpid):o.longs===Number?new r.LongBits(n.protectedTopRpid.low>>>0,n.protectedTopRpid.high>>>0).toNumber():n.protectedTopRpid),n.popupMessage!=null&&n.hasOwnProperty("popupMessage")&&(a.popupMessage=n.popupMessage),n.appealUrl!=null&&n.hasOwnProperty("appealUrl")&&(a.appealUrl=n.appealUrl),a},t.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},t.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/bilibili.main.community.reply.v1.SubjectControl.CmTopReplyProtection"},t}(),l}(),e.ReplyInfo=function(){function l(t){if(this.replies=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.replies&&a.replies.length||(a.replies=[]),a.replies.push(u.bilibili.main.community.reply.v1.ReplyInfo.decode(i,i.uint32()));break}case 2:{a.id=i.int64();break}case 3:{a.oid=i.int64();break}case 4:{a.type=i.int64();break}case 5:{a.mid=i.int64();break}case 6:{a.root=i.int64();break}case 7:{a.parent=i.int64();break}case 8:{a.dialog=i.int64();break}case 9:{a.like=i.int64();break}case 10:{a.ctime=i.int64();break}case 11:{a.count=i.int64();break}case 12:{a.content=u.bilibili.main.community.reply.v1.Content.decode(i,i.uint32());break}case 13:{a.member=u.bilibili.main.community.reply.v1.Member.decode(i,i.uint32());break}case 14:{a.replyControl=u.bilibili.main.community.reply.v1.ReplyControl.decode(i,i.uint32());break}case 15:{a.memberV2=u.bilibili.main.community.reply.v1.MemberV2.decode(i,i.uint32());break}case 16:{a.trackInfo=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.community.reply.v1.ReplyInfo)return i;let n=new u.bilibili.main.community.reply.v1.ReplyInfo;if(i.replies){if(!Array.isArray(i.replies))throw TypeError(".bilibili.main.community.reply.v1.ReplyInfo.replies: array expected");n.replies=[];for(let o=0;o>>0,i.id.high>>>0).toNumber())),i.oid!=null&&(r.Long?(n.oid=r.Long.fromValue(i.oid)).unsigned=!1:typeof i.oid=="string"?n.oid=parseInt(i.oid,10):typeof i.oid=="number"?n.oid=i.oid:typeof i.oid=="object"&&(n.oid=new r.LongBits(i.oid.low>>>0,i.oid.high>>>0).toNumber())),i.type!=null&&(r.Long?(n.type=r.Long.fromValue(i.type)).unsigned=!1:typeof i.type=="string"?n.type=parseInt(i.type,10):typeof i.type=="number"?n.type=i.type:typeof i.type=="object"&&(n.type=new r.LongBits(i.type.low>>>0,i.type.high>>>0).toNumber())),i.mid!=null&&(r.Long?(n.mid=r.Long.fromValue(i.mid)).unsigned=!1:typeof i.mid=="string"?n.mid=parseInt(i.mid,10):typeof i.mid=="number"?n.mid=i.mid:typeof i.mid=="object"&&(n.mid=new r.LongBits(i.mid.low>>>0,i.mid.high>>>0).toNumber())),i.root!=null&&(r.Long?(n.root=r.Long.fromValue(i.root)).unsigned=!1:typeof i.root=="string"?n.root=parseInt(i.root,10):typeof i.root=="number"?n.root=i.root:typeof i.root=="object"&&(n.root=new r.LongBits(i.root.low>>>0,i.root.high>>>0).toNumber())),i.parent!=null&&(r.Long?(n.parent=r.Long.fromValue(i.parent)).unsigned=!1:typeof i.parent=="string"?n.parent=parseInt(i.parent,10):typeof i.parent=="number"?n.parent=i.parent:typeof i.parent=="object"&&(n.parent=new r.LongBits(i.parent.low>>>0,i.parent.high>>>0).toNumber())),i.dialog!=null&&(r.Long?(n.dialog=r.Long.fromValue(i.dialog)).unsigned=!1:typeof i.dialog=="string"?n.dialog=parseInt(i.dialog,10):typeof i.dialog=="number"?n.dialog=i.dialog:typeof i.dialog=="object"&&(n.dialog=new r.LongBits(i.dialog.low>>>0,i.dialog.high>>>0).toNumber())),i.like!=null&&(r.Long?(n.like=r.Long.fromValue(i.like)).unsigned=!1:typeof i.like=="string"?n.like=parseInt(i.like,10):typeof i.like=="number"?n.like=i.like:typeof i.like=="object"&&(n.like=new r.LongBits(i.like.low>>>0,i.like.high>>>0).toNumber())),i.ctime!=null&&(r.Long?(n.ctime=r.Long.fromValue(i.ctime)).unsigned=!1:typeof i.ctime=="string"?n.ctime=parseInt(i.ctime,10):typeof i.ctime=="number"?n.ctime=i.ctime:typeof i.ctime=="object"&&(n.ctime=new r.LongBits(i.ctime.low>>>0,i.ctime.high>>>0).toNumber())),i.count!=null&&(r.Long?(n.count=r.Long.fromValue(i.count)).unsigned=!1:typeof i.count=="string"?n.count=parseInt(i.count,10):typeof i.count=="number"?n.count=i.count:typeof i.count=="object"&&(n.count=new r.LongBits(i.count.low>>>0,i.count.high>>>0).toNumber())),i.content!=null){if(typeof i.content!="object")throw TypeError(".bilibili.main.community.reply.v1.ReplyInfo.content: object expected");n.content=u.bilibili.main.community.reply.v1.Content.fromObject(i.content)}if(i.member!=null){if(typeof i.member!="object")throw TypeError(".bilibili.main.community.reply.v1.ReplyInfo.member: object expected");n.member=u.bilibili.main.community.reply.v1.Member.fromObject(i.member)}if(i.replyControl!=null){if(typeof i.replyControl!="object")throw TypeError(".bilibili.main.community.reply.v1.ReplyInfo.replyControl: object expected");n.replyControl=u.bilibili.main.community.reply.v1.ReplyControl.fromObject(i.replyControl)}if(i.memberV2!=null){if(typeof i.memberV2!="object")throw TypeError(".bilibili.main.community.reply.v1.ReplyInfo.memberV2: object expected");n.memberV2=u.bilibili.main.community.reply.v1.MemberV2.fromObject(i.memberV2)}return i.trackInfo!=null&&(n.trackInfo=String(i.trackInfo)),n},l.toObject=function(i,n){n||(n={});let o={};if((n.arrays||n.defaults)&&(o.replies=[]),n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.id=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.id=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.oid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.oid=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.type=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.type=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.mid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.mid=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.root=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.root=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.parent=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.parent=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.dialog=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.dialog=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.like=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.like=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.ctime=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.ctime=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.count=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.count=n.longs===String?"0":0;o.content=null,o.member=null,o.replyControl=null,o.memberV2=null,o.trackInfo=""}if(i.replies&&i.replies.length){o.replies=[];for(let a=0;a>>0,i.id.high>>>0).toNumber():i.id),i.oid!=null&&i.hasOwnProperty("oid")&&(typeof i.oid=="number"?o.oid=n.longs===String?String(i.oid):i.oid:o.oid=n.longs===String?r.Long.prototype.toString.call(i.oid):n.longs===Number?new r.LongBits(i.oid.low>>>0,i.oid.high>>>0).toNumber():i.oid),i.type!=null&&i.hasOwnProperty("type")&&(typeof i.type=="number"?o.type=n.longs===String?String(i.type):i.type:o.type=n.longs===String?r.Long.prototype.toString.call(i.type):n.longs===Number?new r.LongBits(i.type.low>>>0,i.type.high>>>0).toNumber():i.type),i.mid!=null&&i.hasOwnProperty("mid")&&(typeof i.mid=="number"?o.mid=n.longs===String?String(i.mid):i.mid:o.mid=n.longs===String?r.Long.prototype.toString.call(i.mid):n.longs===Number?new r.LongBits(i.mid.low>>>0,i.mid.high>>>0).toNumber():i.mid),i.root!=null&&i.hasOwnProperty("root")&&(typeof i.root=="number"?o.root=n.longs===String?String(i.root):i.root:o.root=n.longs===String?r.Long.prototype.toString.call(i.root):n.longs===Number?new r.LongBits(i.root.low>>>0,i.root.high>>>0).toNumber():i.root),i.parent!=null&&i.hasOwnProperty("parent")&&(typeof i.parent=="number"?o.parent=n.longs===String?String(i.parent):i.parent:o.parent=n.longs===String?r.Long.prototype.toString.call(i.parent):n.longs===Number?new r.LongBits(i.parent.low>>>0,i.parent.high>>>0).toNumber():i.parent),i.dialog!=null&&i.hasOwnProperty("dialog")&&(typeof i.dialog=="number"?o.dialog=n.longs===String?String(i.dialog):i.dialog:o.dialog=n.longs===String?r.Long.prototype.toString.call(i.dialog):n.longs===Number?new r.LongBits(i.dialog.low>>>0,i.dialog.high>>>0).toNumber():i.dialog),i.like!=null&&i.hasOwnProperty("like")&&(typeof i.like=="number"?o.like=n.longs===String?String(i.like):i.like:o.like=n.longs===String?r.Long.prototype.toString.call(i.like):n.longs===Number?new r.LongBits(i.like.low>>>0,i.like.high>>>0).toNumber():i.like),i.ctime!=null&&i.hasOwnProperty("ctime")&&(typeof i.ctime=="number"?o.ctime=n.longs===String?String(i.ctime):i.ctime:o.ctime=n.longs===String?r.Long.prototype.toString.call(i.ctime):n.longs===Number?new r.LongBits(i.ctime.low>>>0,i.ctime.high>>>0).toNumber():i.ctime),i.count!=null&&i.hasOwnProperty("count")&&(typeof i.count=="number"?o.count=n.longs===String?String(i.count):i.count:o.count=n.longs===String?r.Long.prototype.toString.call(i.count):n.longs===Number?new r.LongBits(i.count.low>>>0,i.count.high>>>0).toNumber():i.count),i.content!=null&&i.hasOwnProperty("content")&&(o.content=u.bilibili.main.community.reply.v1.Content.toObject(i.content,n)),i.member!=null&&i.hasOwnProperty("member")&&(o.member=u.bilibili.main.community.reply.v1.Member.toObject(i.member,n)),i.replyControl!=null&&i.hasOwnProperty("replyControl")&&(o.replyControl=u.bilibili.main.community.reply.v1.ReplyControl.toObject(i.replyControl,n)),i.memberV2!=null&&i.hasOwnProperty("memberV2")&&(o.memberV2=u.bilibili.main.community.reply.v1.MemberV2.toObject(i.memberV2,n)),i.trackInfo!=null&&i.hasOwnProperty("trackInfo")&&(o.trackInfo=i.trackInfo),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.community.reply.v1.ReplyInfo"},l}(),e.ReplyTrackInfo=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.aiTrackid=i.string();break}case 2:{a.traceid=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.community.reply.v1.ReplyTrackInfo)return i;let n=new u.bilibili.main.community.reply.v1.ReplyTrackInfo;return i.aiTrackid!=null&&(n.aiTrackid=String(i.aiTrackid)),i.traceid!=null&&(n.traceid=String(i.traceid)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.aiTrackid="",o.traceid=""),i.aiTrackid!=null&&i.hasOwnProperty("aiTrackid")&&(o.aiTrackid=i.aiTrackid),i.traceid!=null&&i.hasOwnProperty("traceid")&&(o.traceid=i.traceid),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.community.reply.v1.ReplyTrackInfo"},l}(),e.Content=function(){function l(t){if(this.members={},this.emotes={},this.topics={},this.urls={},this.atNameToMid={},this.pictures=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.message=i.string();break}case 2:{a.members===r.emptyObject&&(a.members={});let g=i.uint32()+i.pos;for(y="",s=null;i.pos>>3){case 1:y=i.string();break;case 2:s=u.bilibili.main.community.reply.v1.Member.decode(i,i.uint32());break;default:i.skipType(S&7);break}}a.members[y]=s;break}case 3:{a.emotes===r.emptyObject&&(a.emotes={});let g=i.uint32()+i.pos;for(y="",s=null;i.pos>>3){case 1:y=i.string();break;case 2:s=u.bilibili.main.community.reply.v1.Emote.decode(i,i.uint32());break;default:i.skipType(S&7);break}}a.emotes[y]=s;break}case 4:{a.topics===r.emptyObject&&(a.topics={});let g=i.uint32()+i.pos;for(y="",s=null;i.pos>>3){case 1:y=i.string();break;case 2:s=u.bilibili.main.community.reply.v1.Topic.decode(i,i.uint32());break;default:i.skipType(S&7);break}}a.topics[y]=s;break}case 5:{a.urls===r.emptyObject&&(a.urls={});let g=i.uint32()+i.pos;for(y="",s=null;i.pos>>3){case 1:y=i.string();break;case 2:s=u.bilibili.main.community.reply.v1.Url.decode(i,i.uint32());break;default:i.skipType(S&7);break}}a.urls[y]=s;break}case 6:{a.vote=u.bilibili.main.community.reply.v1.Vote.decode(i,i.uint32());break}case 7:{a.atNameToMid===r.emptyObject&&(a.atNameToMid={});let g=i.uint32()+i.pos;for(y="",s=0;i.pos>>3){case 1:y=i.string();break;case 2:s=i.int64();break;default:i.skipType(S&7);break}}a.atNameToMid[y]=s;break}case 8:{a.richText=u.bilibili.main.community.reply.v1.RichText.decode(i,i.uint32());break}case 9:{a.pictures&&a.pictures.length||(a.pictures=[]),a.pictures.push(u.bilibili.main.community.reply.v1.Picture.decode(i,i.uint32()));break}case 10:{a.pictureScale=i.double();break}default:i.skipType(v&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.community.reply.v1.Content)return i;let n=new u.bilibili.main.community.reply.v1.Content;if(i.message!=null&&(n.message=String(i.message)),i.members){if(typeof i.members!="object")throw TypeError(".bilibili.main.community.reply.v1.Content.members: object expected");n.members={};for(let o=Object.keys(i.members),a=0;a>>0,i.atNameToMid[o[a]].high>>>0).toNumber())}if(i.richText!=null){if(typeof i.richText!="object")throw TypeError(".bilibili.main.community.reply.v1.Content.richText: object expected");n.richText=u.bilibili.main.community.reply.v1.RichText.fromObject(i.richText)}if(i.pictures){if(!Array.isArray(i.pictures))throw TypeError(".bilibili.main.community.reply.v1.Content.pictures: array expected");n.pictures=[];for(let o=0;o>>0,i.atNameToMid[a[y]].high>>>0).toNumber():i.atNameToMid[a[y]]}if(i.richText!=null&&i.hasOwnProperty("richText")&&(o.richText=u.bilibili.main.community.reply.v1.RichText.toObject(i.richText,n)),i.pictures&&i.pictures.length){o.pictures=[];for(let y=0;y>>3){case 1:{a.imgSrc=i.string();break}case 2:{a.imgWidth=i.double();break}case 3:{a.imgHeight=i.double();break}case 4:{a.imgSize=i.double();break}case 5:{a.topRightIcon=i.string();break}case 6:{a.playGifThumbnail=i.bool();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.community.reply.v1.Picture)return i;let n=new u.bilibili.main.community.reply.v1.Picture;return i.imgSrc!=null&&(n.imgSrc=String(i.imgSrc)),i.imgWidth!=null&&(n.imgWidth=Number(i.imgWidth)),i.imgHeight!=null&&(n.imgHeight=Number(i.imgHeight)),i.imgSize!=null&&(n.imgSize=Number(i.imgSize)),i.topRightIcon!=null&&(n.topRightIcon=String(i.topRightIcon)),i.playGifThumbnail!=null&&(n.playGifThumbnail=!!i.playGifThumbnail),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.imgSrc="",o.imgWidth=0,o.imgHeight=0,o.imgSize=0,o.topRightIcon="",o.playGifThumbnail=!1),i.imgSrc!=null&&i.hasOwnProperty("imgSrc")&&(o.imgSrc=i.imgSrc),i.imgWidth!=null&&i.hasOwnProperty("imgWidth")&&(o.imgWidth=n.json&&!isFinite(i.imgWidth)?String(i.imgWidth):i.imgWidth),i.imgHeight!=null&&i.hasOwnProperty("imgHeight")&&(o.imgHeight=n.json&&!isFinite(i.imgHeight)?String(i.imgHeight):i.imgHeight),i.imgSize!=null&&i.hasOwnProperty("imgSize")&&(o.imgSize=n.json&&!isFinite(i.imgSize)?String(i.imgSize):i.imgSize),i.topRightIcon!=null&&i.hasOwnProperty("topRightIcon")&&(o.topRightIcon=i.topRightIcon),i.playGifThumbnail!=null&&i.hasOwnProperty("playGifThumbnail")&&(o.playGifThumbnail=i.playGifThumbnail),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.community.reply.v1.Picture"},l}(),e.RichTextNote=function(){function l(t){if(this.images=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.summary=i.string();break}case 2:{a.images&&a.images.length||(a.images=[]),a.images.push(i.string());break}case 3:{a.clickUrl=i.string();break}case 4:{a.lastMtimeText=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.community.reply.v1.RichTextNote)return i;let n=new u.bilibili.main.community.reply.v1.RichTextNote;if(i.summary!=null&&(n.summary=String(i.summary)),i.images){if(!Array.isArray(i.images))throw TypeError(".bilibili.main.community.reply.v1.RichTextNote.images: array expected");n.images=[];for(let o=0;o>>3){case 1:{y.note=u.bilibili.main.community.reply.v1.RichTextNote.decode(n,n.uint32());break}case 2:{y.opus=u.bilibili.app.dynamic.v2.OpusItem.decode(n,n.uint32());break}default:n.skipType(s&7);break}}return y},l.fromObject=function(n){if(n instanceof u.bilibili.main.community.reply.v1.RichText)return n;let o=new u.bilibili.main.community.reply.v1.RichText;if(n.note!=null){if(typeof n.note!="object")throw TypeError(".bilibili.main.community.reply.v1.RichText.note: object expected");o.note=u.bilibili.main.community.reply.v1.RichTextNote.fromObject(n.note)}if(n.opus!=null){if(typeof n.opus!="object")throw TypeError(".bilibili.main.community.reply.v1.RichText.opus: object expected");o.opus=u.bilibili.app.dynamic.v2.OpusItem.fromObject(n.opus)}return o},l.toObject=function(n,o){o||(o={});let a={};return n.note!=null&&n.hasOwnProperty("note")&&(a.note=u.bilibili.main.community.reply.v1.RichTextNote.toObject(n.note,o),o.oneofs&&(a.item="note")),n.opus!=null&&n.hasOwnProperty("opus")&&(a.opus=u.bilibili.app.dynamic.v2.OpusItem.toObject(n.opus,o),o.oneofs&&(a.item="opus")),a},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/bilibili.main.community.reply.v1.RichText"},l}(),e.ReplyControl=function(){function l(t){if(this.cardLabels=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.action=i.int64();break}case 2:{a.upLike=i.bool();break}case 3:{a.upReply=i.bool();break}case 4:{a.showFollowBtn=i.bool();break}case 5:{a.isAssist=i.bool();break}case 6:{a.labelText=i.string();break}case 7:{a.following=i.bool();break}case 8:{a.followed=i.bool();break}case 9:{a.blocked=i.bool();break}case 10:{a.hasFoldedReply=i.bool();break}case 11:{a.isFoldedReply=i.bool();break}case 12:{a.isUpTop=i.bool();break}case 13:{a.isAdminTop=i.bool();break}case 14:{a.isVoteTop=i.bool();break}case 15:{a.maxLine=i.int64();break}case 16:{a.invisible=i.bool();break}case 17:{a.isContractor=i.bool();break}case 18:{a.isNote=i.bool();break}case 19:{a.cardLabels&&a.cardLabels.length||(a.cardLabels=[]),a.cardLabels.push(u.bilibili.main.community.reply.v1.ReplyCardLabel.decode(i,i.uint32()));break}case 20:{a.subReplyEntryText=i.string();break}case 21:{a.subReplyTitleText=i.string();break}case 22:{a.contractDesc=i.string();break}case 23:{a.timeDesc=i.string();break}case 24:{a.bizScene=i.string();break}case 25:{a.location=i.string();break}case 26:{a.foldPictures=i.bool();break}case 27:{a.isNoteV2=i.bool();break}case 28:{a.hideNoteIcon=i.bool();break}case 29:{a.cmRecommendComponent=i.string();break}case 30:{a.voteOption=u.bilibili.main.community.reply.v1.ReplyControl.VoteOption.decode(i,i.uint32());break}case 31:{a.chargedDesc=i.string();break}case 32:{a.gradeRecord=u.bilibili.main.community.reply.v1.ReplyControl.GradeRecord.decode(i,i.uint32());break}case 33:{a.presetReplyText=i.string();break}case 34:{a.easterEggLabel=u.bilibili.main.community.reply.v1.ReplyControl.EasterEggLabel.decode(i,i.uint32());break}case 35:{a.contextFeature=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.community.reply.v1.ReplyControl)return i;let n=new u.bilibili.main.community.reply.v1.ReplyControl;if(i.action!=null&&(r.Long?(n.action=r.Long.fromValue(i.action)).unsigned=!1:typeof i.action=="string"?n.action=parseInt(i.action,10):typeof i.action=="number"?n.action=i.action:typeof i.action=="object"&&(n.action=new r.LongBits(i.action.low>>>0,i.action.high>>>0).toNumber())),i.upLike!=null&&(n.upLike=!!i.upLike),i.upReply!=null&&(n.upReply=!!i.upReply),i.showFollowBtn!=null&&(n.showFollowBtn=!!i.showFollowBtn),i.isAssist!=null&&(n.isAssist=!!i.isAssist),i.labelText!=null&&(n.labelText=String(i.labelText)),i.following!=null&&(n.following=!!i.following),i.followed!=null&&(n.followed=!!i.followed),i.blocked!=null&&(n.blocked=!!i.blocked),i.hasFoldedReply!=null&&(n.hasFoldedReply=!!i.hasFoldedReply),i.isFoldedReply!=null&&(n.isFoldedReply=!!i.isFoldedReply),i.isUpTop!=null&&(n.isUpTop=!!i.isUpTop),i.isAdminTop!=null&&(n.isAdminTop=!!i.isAdminTop),i.isVoteTop!=null&&(n.isVoteTop=!!i.isVoteTop),i.maxLine!=null&&(r.Long?(n.maxLine=r.Long.fromValue(i.maxLine)).unsigned=!1:typeof i.maxLine=="string"?n.maxLine=parseInt(i.maxLine,10):typeof i.maxLine=="number"?n.maxLine=i.maxLine:typeof i.maxLine=="object"&&(n.maxLine=new r.LongBits(i.maxLine.low>>>0,i.maxLine.high>>>0).toNumber())),i.invisible!=null&&(n.invisible=!!i.invisible),i.isContractor!=null&&(n.isContractor=!!i.isContractor),i.isNote!=null&&(n.isNote=!!i.isNote),i.cardLabels){if(!Array.isArray(i.cardLabels))throw TypeError(".bilibili.main.community.reply.v1.ReplyControl.cardLabels: array expected");n.cardLabels=[];for(let o=0;o>>0,i.action.high>>>0).toNumber():i.action),i.upLike!=null&&i.hasOwnProperty("upLike")&&(o.upLike=i.upLike),i.upReply!=null&&i.hasOwnProperty("upReply")&&(o.upReply=i.upReply),i.showFollowBtn!=null&&i.hasOwnProperty("showFollowBtn")&&(o.showFollowBtn=i.showFollowBtn),i.isAssist!=null&&i.hasOwnProperty("isAssist")&&(o.isAssist=i.isAssist),i.labelText!=null&&i.hasOwnProperty("labelText")&&(o.labelText=i.labelText),i.following!=null&&i.hasOwnProperty("following")&&(o.following=i.following),i.followed!=null&&i.hasOwnProperty("followed")&&(o.followed=i.followed),i.blocked!=null&&i.hasOwnProperty("blocked")&&(o.blocked=i.blocked),i.hasFoldedReply!=null&&i.hasOwnProperty("hasFoldedReply")&&(o.hasFoldedReply=i.hasFoldedReply),i.isFoldedReply!=null&&i.hasOwnProperty("isFoldedReply")&&(o.isFoldedReply=i.isFoldedReply),i.isUpTop!=null&&i.hasOwnProperty("isUpTop")&&(o.isUpTop=i.isUpTop),i.isAdminTop!=null&&i.hasOwnProperty("isAdminTop")&&(o.isAdminTop=i.isAdminTop),i.isVoteTop!=null&&i.hasOwnProperty("isVoteTop")&&(o.isVoteTop=i.isVoteTop),i.maxLine!=null&&i.hasOwnProperty("maxLine")&&(typeof i.maxLine=="number"?o.maxLine=n.longs===String?String(i.maxLine):i.maxLine:o.maxLine=n.longs===String?r.Long.prototype.toString.call(i.maxLine):n.longs===Number?new r.LongBits(i.maxLine.low>>>0,i.maxLine.high>>>0).toNumber():i.maxLine),i.invisible!=null&&i.hasOwnProperty("invisible")&&(o.invisible=i.invisible),i.isContractor!=null&&i.hasOwnProperty("isContractor")&&(o.isContractor=i.isContractor),i.isNote!=null&&i.hasOwnProperty("isNote")&&(o.isNote=i.isNote),i.cardLabels&&i.cardLabels.length){o.cardLabels=[];for(let a=0;a>>3){case 1:{y.labelKind=n.int32();break}case 2:{y.desc=n.string();break}case 3:{y.idx=n.int64();break}case 4:{y.voteId=n.int64();break}default:n.skipType(s&7);break}}return y},t.fromObject=function(n){if(n instanceof u.bilibili.main.community.reply.v1.ReplyControl.VoteOption)return n;let o=new u.bilibili.main.community.reply.v1.ReplyControl.VoteOption;switch(n.labelKind){default:if(typeof n.labelKind=="number"){o.labelKind=n.labelKind;break}break;case"DEFAULT":case 0:o.labelKind=0;break;case"RED":case 1:o.labelKind=1;break;case"BLUE":case 2:o.labelKind=2;break;case"PLAIN":case 3:o.labelKind=3;break}return n.desc!=null&&(o.desc=String(n.desc)),n.idx!=null&&(r.Long?(o.idx=r.Long.fromValue(n.idx)).unsigned=!1:typeof n.idx=="string"?o.idx=parseInt(n.idx,10):typeof n.idx=="number"?o.idx=n.idx:typeof n.idx=="object"&&(o.idx=new r.LongBits(n.idx.low>>>0,n.idx.high>>>0).toNumber())),n.voteId!=null&&(r.Long?(o.voteId=r.Long.fromValue(n.voteId)).unsigned=!1:typeof n.voteId=="string"?o.voteId=parseInt(n.voteId,10):typeof n.voteId=="number"?o.voteId=n.voteId:typeof n.voteId=="object"&&(o.voteId=new r.LongBits(n.voteId.low>>>0,n.voteId.high>>>0).toNumber())),o},t.toObject=function(n,o){o||(o={});let a={};if(o.defaults){if(a.labelKind=o.enums===String?"DEFAULT":0,a.desc="",r.Long){let y=new r.Long(0,0,!1);a.idx=o.longs===String?y.toString():o.longs===Number?y.toNumber():y}else a.idx=o.longs===String?"0":0;if(r.Long){let y=new r.Long(0,0,!1);a.voteId=o.longs===String?y.toString():o.longs===Number?y.toNumber():y}else a.voteId=o.longs===String?"0":0}return n.labelKind!=null&&n.hasOwnProperty("labelKind")&&(a.labelKind=o.enums===String?u.bilibili.main.community.reply.v1.ReplyControl.VoteOption.LabelKind[n.labelKind]===void 0?n.labelKind:u.bilibili.main.community.reply.v1.ReplyControl.VoteOption.LabelKind[n.labelKind]:n.labelKind),n.desc!=null&&n.hasOwnProperty("desc")&&(a.desc=n.desc),n.idx!=null&&n.hasOwnProperty("idx")&&(typeof n.idx=="number"?a.idx=o.longs===String?String(n.idx):n.idx:a.idx=o.longs===String?r.Long.prototype.toString.call(n.idx):o.longs===Number?new r.LongBits(n.idx.low>>>0,n.idx.high>>>0).toNumber():n.idx),n.voteId!=null&&n.hasOwnProperty("voteId")&&(typeof n.voteId=="number"?a.voteId=o.longs===String?String(n.voteId):n.voteId:a.voteId=o.longs===String?r.Long.prototype.toString.call(n.voteId):o.longs===Number?new r.LongBits(n.voteId.low>>>0,n.voteId.high>>>0).toNumber():n.voteId),a},t.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},t.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/bilibili.main.community.reply.v1.ReplyControl.VoteOption"},t.LabelKind=function(){let i={},n=Object.create(i);return n[i[0]="DEFAULT"]=0,n[i[1]="RED"]=1,n[i[2]="BLUE"]=2,n[i[3]="PLAIN"]=3,n}(),t}(),l.GradeRecord=function(){function t(i){if(this.texts=[],i)for(let n=Object.keys(i),o=0;o>>3){case 1:{y.score=n.int32();break}case 2:{y.texts&&y.texts.length||(y.texts=[]),y.texts.push(u.bilibili.main.community.reply.v1.ReplyControl.GradeRecord.Text.decode(n,n.uint32()));break}default:n.skipType(s&7);break}}return y},t.fromObject=function(n){if(n instanceof u.bilibili.main.community.reply.v1.ReplyControl.GradeRecord)return n;let o=new u.bilibili.main.community.reply.v1.ReplyControl.GradeRecord;if(n.score!=null&&(o.score=n.score|0),n.texts){if(!Array.isArray(n.texts))throw TypeError(".bilibili.main.community.reply.v1.ReplyControl.GradeRecord.texts: array expected");o.texts=[];for(let a=0;a>>3){case 1:{s.raw=o.string();break}case 2:{s.style=u.bilibili.main.community.reply.v1.TextStyle.decode(o,o.uint32());break}default:o.skipType(v&7);break}}return s},i.fromObject=function(o){if(o instanceof u.bilibili.main.community.reply.v1.ReplyControl.GradeRecord.Text)return o;let a=new u.bilibili.main.community.reply.v1.ReplyControl.GradeRecord.Text;if(o.raw!=null&&(a.raw=String(o.raw)),o.style!=null){if(typeof o.style!="object")throw TypeError(".bilibili.main.community.reply.v1.ReplyControl.GradeRecord.Text.style: object expected");a.style=u.bilibili.main.community.reply.v1.TextStyle.fromObject(o.style)}return a},i.toObject=function(o,a){a||(a={});let y={};return a.defaults&&(y.raw="",y.style=null),o.raw!=null&&o.hasOwnProperty("raw")&&(y.raw=o.raw),o.style!=null&&o.hasOwnProperty("style")&&(y.style=u.bilibili.main.community.reply.v1.TextStyle.toObject(o.style,a)),y},i.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},i.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/bilibili.main.community.reply.v1.ReplyControl.GradeRecord.Text"},i}(),t}(),l.EasterEggLabel=function(){function t(i){if(i)for(let n=Object.keys(i),o=0;o>>3){case 1:{y.image=n.string();break}case 2:{y.jumpUrl=n.string();break}default:n.skipType(s&7);break}}return y},t.fromObject=function(n){if(n instanceof u.bilibili.main.community.reply.v1.ReplyControl.EasterEggLabel)return n;let o=new u.bilibili.main.community.reply.v1.ReplyControl.EasterEggLabel;return n.image!=null&&(o.image=String(n.image)),n.jumpUrl!=null&&(o.jumpUrl=String(n.jumpUrl)),o},t.toObject=function(n,o){o||(o={});let a={};return o.defaults&&(a.image="",a.jumpUrl=""),n.image!=null&&n.hasOwnProperty("image")&&(a.image=n.image),n.jumpUrl!=null&&n.hasOwnProperty("jumpUrl")&&(a.jumpUrl=n.jumpUrl),a},t.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},t.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/bilibili.main.community.reply.v1.ReplyControl.EasterEggLabel"},t}(),l}(),e.ReplyCardLabel=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.textContent=i.string();break}case 2:{a.textColorDay=i.string();break}case 3:{a.textColorNight=i.string();break}case 4:{a.labelColorDay=i.string();break}case 5:{a.labelColorNight=i.string();break}case 6:{a.image=i.string();break}case 7:{a.type=i.int32();break}case 8:{a.background=i.string();break}case 9:{a.backgroundWidth=i.double();break}case 10:{a.backgroundHeight=i.double();break}case 11:{a.jumpUrl=i.string();break}case 12:{a.effect=i.int64();break}case 13:{a.effectStartTime=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.community.reply.v1.ReplyCardLabel)return i;let n=new u.bilibili.main.community.reply.v1.ReplyCardLabel;switch(i.textContent!=null&&(n.textContent=String(i.textContent)),i.textColorDay!=null&&(n.textColorDay=String(i.textColorDay)),i.textColorNight!=null&&(n.textColorNight=String(i.textColorNight)),i.labelColorDay!=null&&(n.labelColorDay=String(i.labelColorDay)),i.labelColorNight!=null&&(n.labelColorNight=String(i.labelColorNight)),i.image!=null&&(n.image=String(i.image)),i.type){default:if(typeof i.type=="number"){n.type=i.type;break}break;case"UNDERLINE":case 0:n.type=0;break;case"BACKGROUND":case 1:n.type=1;break}return i.background!=null&&(n.background=String(i.background)),i.backgroundWidth!=null&&(n.backgroundWidth=Number(i.backgroundWidth)),i.backgroundHeight!=null&&(n.backgroundHeight=Number(i.backgroundHeight)),i.jumpUrl!=null&&(n.jumpUrl=String(i.jumpUrl)),i.effect!=null&&(r.Long?(n.effect=r.Long.fromValue(i.effect)).unsigned=!1:typeof i.effect=="string"?n.effect=parseInt(i.effect,10):typeof i.effect=="number"?n.effect=i.effect:typeof i.effect=="object"&&(n.effect=new r.LongBits(i.effect.low>>>0,i.effect.high>>>0).toNumber())),i.effectStartTime!=null&&(r.Long?(n.effectStartTime=r.Long.fromValue(i.effectStartTime)).unsigned=!1:typeof i.effectStartTime=="string"?n.effectStartTime=parseInt(i.effectStartTime,10):typeof i.effectStartTime=="number"?n.effectStartTime=i.effectStartTime:typeof i.effectStartTime=="object"&&(n.effectStartTime=new r.LongBits(i.effectStartTime.low>>>0,i.effectStartTime.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(o.textContent="",o.textColorDay="",o.textColorNight="",o.labelColorDay="",o.labelColorNight="",o.image="",o.type=n.enums===String?"UNDERLINE":0,o.background="",o.backgroundWidth=0,o.backgroundHeight=0,o.jumpUrl="",r.Long){let a=new r.Long(0,0,!1);o.effect=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.effect=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.effectStartTime=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.effectStartTime=n.longs===String?"0":0}return i.textContent!=null&&i.hasOwnProperty("textContent")&&(o.textContent=i.textContent),i.textColorDay!=null&&i.hasOwnProperty("textColorDay")&&(o.textColorDay=i.textColorDay),i.textColorNight!=null&&i.hasOwnProperty("textColorNight")&&(o.textColorNight=i.textColorNight),i.labelColorDay!=null&&i.hasOwnProperty("labelColorDay")&&(o.labelColorDay=i.labelColorDay),i.labelColorNight!=null&&i.hasOwnProperty("labelColorNight")&&(o.labelColorNight=i.labelColorNight),i.image!=null&&i.hasOwnProperty("image")&&(o.image=i.image),i.type!=null&&i.hasOwnProperty("type")&&(o.type=n.enums===String?u.bilibili.main.community.reply.v1.ReplyCardLabel.Type[i.type]===void 0?i.type:u.bilibili.main.community.reply.v1.ReplyCardLabel.Type[i.type]:i.type),i.background!=null&&i.hasOwnProperty("background")&&(o.background=i.background),i.backgroundWidth!=null&&i.hasOwnProperty("backgroundWidth")&&(o.backgroundWidth=n.json&&!isFinite(i.backgroundWidth)?String(i.backgroundWidth):i.backgroundWidth),i.backgroundHeight!=null&&i.hasOwnProperty("backgroundHeight")&&(o.backgroundHeight=n.json&&!isFinite(i.backgroundHeight)?String(i.backgroundHeight):i.backgroundHeight),i.jumpUrl!=null&&i.hasOwnProperty("jumpUrl")&&(o.jumpUrl=i.jumpUrl),i.effect!=null&&i.hasOwnProperty("effect")&&(typeof i.effect=="number"?o.effect=n.longs===String?String(i.effect):i.effect:o.effect=n.longs===String?r.Long.prototype.toString.call(i.effect):n.longs===Number?new r.LongBits(i.effect.low>>>0,i.effect.high>>>0).toNumber():i.effect),i.effectStartTime!=null&&i.hasOwnProperty("effectStartTime")&&(typeof i.effectStartTime=="number"?o.effectStartTime=n.longs===String?String(i.effectStartTime):i.effectStartTime:o.effectStartTime=n.longs===String?r.Long.prototype.toString.call(i.effectStartTime):n.longs===Number?new r.LongBits(i.effectStartTime.low>>>0,i.effectStartTime.high>>>0).toNumber():i.effectStartTime),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.community.reply.v1.ReplyCardLabel"},l.Type=function(){let t={},i=Object.create(t);return i[t[0]="UNDERLINE"]=0,i[t[1]="BACKGROUND"]=1,i}(),l}(),e.Url=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.title=i.string();break}case 2:{a.state=i.int64();break}case 3:{a.prefixIcon=i.string();break}case 4:{a.appUrlSchema=i.string();break}case 5:{a.appName=i.string();break}case 6:{a.appPackageName=i.string();break}case 7:{a.clickReport=i.string();break}case 8:{a.isHalfScreen=i.bool();break}case 9:{a.exposureReport=i.string();break}case 10:{a.extra=u.bilibili.main.community.reply.v1.Url.Extra.decode(i,i.uint32());break}case 11:{a.underline=i.bool();break}case 12:{a.matchOnce=i.bool();break}case 13:{a.pcUrl=i.string();break}case 14:{a.iconPosition=i.int32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.community.reply.v1.Url)return i;let n=new u.bilibili.main.community.reply.v1.Url;if(i.title!=null&&(n.title=String(i.title)),i.state!=null&&(r.Long?(n.state=r.Long.fromValue(i.state)).unsigned=!1:typeof i.state=="string"?n.state=parseInt(i.state,10):typeof i.state=="number"?n.state=i.state:typeof i.state=="object"&&(n.state=new r.LongBits(i.state.low>>>0,i.state.high>>>0).toNumber())),i.prefixIcon!=null&&(n.prefixIcon=String(i.prefixIcon)),i.appUrlSchema!=null&&(n.appUrlSchema=String(i.appUrlSchema)),i.appName!=null&&(n.appName=String(i.appName)),i.appPackageName!=null&&(n.appPackageName=String(i.appPackageName)),i.clickReport!=null&&(n.clickReport=String(i.clickReport)),i.isHalfScreen!=null&&(n.isHalfScreen=!!i.isHalfScreen),i.exposureReport!=null&&(n.exposureReport=String(i.exposureReport)),i.extra!=null){if(typeof i.extra!="object")throw TypeError(".bilibili.main.community.reply.v1.Url.extra: object expected");n.extra=u.bilibili.main.community.reply.v1.Url.Extra.fromObject(i.extra)}switch(i.underline!=null&&(n.underline=!!i.underline),i.matchOnce!=null&&(n.matchOnce=!!i.matchOnce),i.pcUrl!=null&&(n.pcUrl=String(i.pcUrl)),i.iconPosition){default:if(typeof i.iconPosition=="number"){n.iconPosition=i.iconPosition;break}break;case"Prefix":case 0:n.iconPosition=0;break;case"Suffix":case 1:n.iconPosition=1;break}return n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(o.title="",r.Long){let a=new r.Long(0,0,!1);o.state=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.state=n.longs===String?"0":0;o.prefixIcon="",o.appUrlSchema="",o.appName="",o.appPackageName="",o.clickReport="",o.isHalfScreen=!1,o.exposureReport="",o.extra=null,o.underline=!1,o.matchOnce=!1,o.pcUrl="",o.iconPosition=n.enums===String?"Prefix":0}return i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.state!=null&&i.hasOwnProperty("state")&&(typeof i.state=="number"?o.state=n.longs===String?String(i.state):i.state:o.state=n.longs===String?r.Long.prototype.toString.call(i.state):n.longs===Number?new r.LongBits(i.state.low>>>0,i.state.high>>>0).toNumber():i.state),i.prefixIcon!=null&&i.hasOwnProperty("prefixIcon")&&(o.prefixIcon=i.prefixIcon),i.appUrlSchema!=null&&i.hasOwnProperty("appUrlSchema")&&(o.appUrlSchema=i.appUrlSchema),i.appName!=null&&i.hasOwnProperty("appName")&&(o.appName=i.appName),i.appPackageName!=null&&i.hasOwnProperty("appPackageName")&&(o.appPackageName=i.appPackageName),i.clickReport!=null&&i.hasOwnProperty("clickReport")&&(o.clickReport=i.clickReport),i.isHalfScreen!=null&&i.hasOwnProperty("isHalfScreen")&&(o.isHalfScreen=i.isHalfScreen),i.exposureReport!=null&&i.hasOwnProperty("exposureReport")&&(o.exposureReport=i.exposureReport),i.extra!=null&&i.hasOwnProperty("extra")&&(o.extra=u.bilibili.main.community.reply.v1.Url.Extra.toObject(i.extra,n)),i.underline!=null&&i.hasOwnProperty("underline")&&(o.underline=i.underline),i.matchOnce!=null&&i.hasOwnProperty("matchOnce")&&(o.matchOnce=i.matchOnce),i.pcUrl!=null&&i.hasOwnProperty("pcUrl")&&(o.pcUrl=i.pcUrl),i.iconPosition!=null&&i.hasOwnProperty("iconPosition")&&(o.iconPosition=n.enums===String?u.bilibili.main.community.reply.v1.Url.IconPosition[i.iconPosition]===void 0?i.iconPosition:u.bilibili.main.community.reply.v1.Url.IconPosition[i.iconPosition]:i.iconPosition),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.community.reply.v1.Url"},l.IconPosition=function(){let t={},i=Object.create(t);return i[t[0]="Prefix"]=0,i[t[1]="Suffix"]=1,i}(),l.Extra=function(){function t(i){if(i)for(let n=Object.keys(i),o=0;o>>3){case 1:{y.goodsItemId=n.int64();break}case 2:{y.goodsPrefetchedCache=n.string();break}case 3:{y.goodsShowType=n.int32();break}case 4:{y.isWordSearch=n.bool();break}case 5:{y.goodsCmControl=n.int64();break}case 6:{y.goodsClickReport=n.string();break}case 7:{y.goodsExposureReport=n.string();break}case 8:{y.goodsShowPopWindow=n.int64();break}default:n.skipType(s&7);break}}return y},t.fromObject=function(n){if(n instanceof u.bilibili.main.community.reply.v1.Url.Extra)return n;let o=new u.bilibili.main.community.reply.v1.Url.Extra;switch(n.goodsItemId!=null&&(r.Long?(o.goodsItemId=r.Long.fromValue(n.goodsItemId)).unsigned=!1:typeof n.goodsItemId=="string"?o.goodsItemId=parseInt(n.goodsItemId,10):typeof n.goodsItemId=="number"?o.goodsItemId=n.goodsItemId:typeof n.goodsItemId=="object"&&(o.goodsItemId=new r.LongBits(n.goodsItemId.low>>>0,n.goodsItemId.high>>>0).toNumber())),n.goodsPrefetchedCache!=null&&(o.goodsPrefetchedCache=String(n.goodsPrefetchedCache)),n.goodsShowType){default:if(typeof n.goodsShowType=="number"){o.goodsShowType=n.goodsShowType;break}break;case"Popup":case 0:o.goodsShowType=0;break;case"FullScreen":case 1:o.goodsShowType=1;break;case"HalfScreen":case 2:o.goodsShowType=2;break}return n.isWordSearch!=null&&(o.isWordSearch=!!n.isWordSearch),n.goodsCmControl!=null&&(r.Long?(o.goodsCmControl=r.Long.fromValue(n.goodsCmControl)).unsigned=!1:typeof n.goodsCmControl=="string"?o.goodsCmControl=parseInt(n.goodsCmControl,10):typeof n.goodsCmControl=="number"?o.goodsCmControl=n.goodsCmControl:typeof n.goodsCmControl=="object"&&(o.goodsCmControl=new r.LongBits(n.goodsCmControl.low>>>0,n.goodsCmControl.high>>>0).toNumber())),n.goodsClickReport!=null&&(o.goodsClickReport=String(n.goodsClickReport)),n.goodsExposureReport!=null&&(o.goodsExposureReport=String(n.goodsExposureReport)),n.goodsShowPopWindow!=null&&(r.Long?(o.goodsShowPopWindow=r.Long.fromValue(n.goodsShowPopWindow)).unsigned=!1:typeof n.goodsShowPopWindow=="string"?o.goodsShowPopWindow=parseInt(n.goodsShowPopWindow,10):typeof n.goodsShowPopWindow=="number"?o.goodsShowPopWindow=n.goodsShowPopWindow:typeof n.goodsShowPopWindow=="object"&&(o.goodsShowPopWindow=new r.LongBits(n.goodsShowPopWindow.low>>>0,n.goodsShowPopWindow.high>>>0).toNumber())),o},t.toObject=function(n,o){o||(o={});let a={};if(o.defaults){if(r.Long){let y=new r.Long(0,0,!1);a.goodsItemId=o.longs===String?y.toString():o.longs===Number?y.toNumber():y}else a.goodsItemId=o.longs===String?"0":0;if(a.goodsPrefetchedCache="",a.goodsShowType=o.enums===String?"Popup":0,a.isWordSearch=!1,r.Long){let y=new r.Long(0,0,!1);a.goodsCmControl=o.longs===String?y.toString():o.longs===Number?y.toNumber():y}else a.goodsCmControl=o.longs===String?"0":0;if(a.goodsClickReport="",a.goodsExposureReport="",r.Long){let y=new r.Long(0,0,!1);a.goodsShowPopWindow=o.longs===String?y.toString():o.longs===Number?y.toNumber():y}else a.goodsShowPopWindow=o.longs===String?"0":0}return n.goodsItemId!=null&&n.hasOwnProperty("goodsItemId")&&(typeof n.goodsItemId=="number"?a.goodsItemId=o.longs===String?String(n.goodsItemId):n.goodsItemId:a.goodsItemId=o.longs===String?r.Long.prototype.toString.call(n.goodsItemId):o.longs===Number?new r.LongBits(n.goodsItemId.low>>>0,n.goodsItemId.high>>>0).toNumber():n.goodsItemId),n.goodsPrefetchedCache!=null&&n.hasOwnProperty("goodsPrefetchedCache")&&(a.goodsPrefetchedCache=n.goodsPrefetchedCache),n.goodsShowType!=null&&n.hasOwnProperty("goodsShowType")&&(a.goodsShowType=o.enums===String?u.bilibili.main.community.reply.v1.Url.Extra.GoodsShowType[n.goodsShowType]===void 0?n.goodsShowType:u.bilibili.main.community.reply.v1.Url.Extra.GoodsShowType[n.goodsShowType]:n.goodsShowType),n.isWordSearch!=null&&n.hasOwnProperty("isWordSearch")&&(a.isWordSearch=n.isWordSearch),n.goodsCmControl!=null&&n.hasOwnProperty("goodsCmControl")&&(typeof n.goodsCmControl=="number"?a.goodsCmControl=o.longs===String?String(n.goodsCmControl):n.goodsCmControl:a.goodsCmControl=o.longs===String?r.Long.prototype.toString.call(n.goodsCmControl):o.longs===Number?new r.LongBits(n.goodsCmControl.low>>>0,n.goodsCmControl.high>>>0).toNumber():n.goodsCmControl),n.goodsClickReport!=null&&n.hasOwnProperty("goodsClickReport")&&(a.goodsClickReport=n.goodsClickReport),n.goodsExposureReport!=null&&n.hasOwnProperty("goodsExposureReport")&&(a.goodsExposureReport=n.goodsExposureReport),n.goodsShowPopWindow!=null&&n.hasOwnProperty("goodsShowPopWindow")&&(typeof n.goodsShowPopWindow=="number"?a.goodsShowPopWindow=o.longs===String?String(n.goodsShowPopWindow):n.goodsShowPopWindow:a.goodsShowPopWindow=o.longs===String?r.Long.prototype.toString.call(n.goodsShowPopWindow):o.longs===Number?new r.LongBits(n.goodsShowPopWindow.low>>>0,n.goodsShowPopWindow.high>>>0).toNumber():n.goodsShowPopWindow),a},t.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},t.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/bilibili.main.community.reply.v1.Url.Extra"},t.GoodsShowType=function(){let i={},n=Object.create(i);return n[i[0]="Popup"]=0,n[i[1]="FullScreen"]=1,n[i[2]="HalfScreen"]=2,n}(),t}(),l}(),e.Topic=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.link=i.string();break}case 2:{a.id=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.community.reply.v1.Topic)return i;let n=new u.bilibili.main.community.reply.v1.Topic;return i.link!=null&&(n.link=String(i.link)),i.id!=null&&(r.Long?(n.id=r.Long.fromValue(i.id)).unsigned=!1:typeof i.id=="string"?n.id=parseInt(i.id,10):typeof i.id=="number"?n.id=i.id:typeof i.id=="object"&&(n.id=new r.LongBits(i.id.low>>>0,i.id.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults)if(o.link="",r.Long){let a=new r.Long(0,0,!1);o.id=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.id=n.longs===String?"0":0;return i.link!=null&&i.hasOwnProperty("link")&&(o.link=i.link),i.id!=null&&i.hasOwnProperty("id")&&(typeof i.id=="number"?o.id=n.longs===String?String(i.id):i.id:o.id=n.longs===String?r.Long.prototype.toString.call(i.id):n.longs===Number?new r.LongBits(i.id.low>>>0,i.id.high>>>0).toNumber():i.id),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.community.reply.v1.Topic"},l}(),e.Emote=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.size=i.int64();break}case 2:{a.url=i.string();break}case 3:{a.jumpUrl=i.string();break}case 4:{a.jumpTitle=i.string();break}case 5:{a.id=i.int64();break}case 6:{a.packageId=i.int64();break}case 7:{a.gifUrl=i.string();break}case 8:{a.text=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.community.reply.v1.Emote)return i;let n=new u.bilibili.main.community.reply.v1.Emote;return i.size!=null&&(r.Long?(n.size=r.Long.fromValue(i.size)).unsigned=!1:typeof i.size=="string"?n.size=parseInt(i.size,10):typeof i.size=="number"?n.size=i.size:typeof i.size=="object"&&(n.size=new r.LongBits(i.size.low>>>0,i.size.high>>>0).toNumber())),i.url!=null&&(n.url=String(i.url)),i.jumpUrl!=null&&(n.jumpUrl=String(i.jumpUrl)),i.jumpTitle!=null&&(n.jumpTitle=String(i.jumpTitle)),i.id!=null&&(r.Long?(n.id=r.Long.fromValue(i.id)).unsigned=!1:typeof i.id=="string"?n.id=parseInt(i.id,10):typeof i.id=="number"?n.id=i.id:typeof i.id=="object"&&(n.id=new r.LongBits(i.id.low>>>0,i.id.high>>>0).toNumber())),i.packageId!=null&&(r.Long?(n.packageId=r.Long.fromValue(i.packageId)).unsigned=!1:typeof i.packageId=="string"?n.packageId=parseInt(i.packageId,10):typeof i.packageId=="number"?n.packageId=i.packageId:typeof i.packageId=="object"&&(n.packageId=new r.LongBits(i.packageId.low>>>0,i.packageId.high>>>0).toNumber())),i.gifUrl!=null&&(n.gifUrl=String(i.gifUrl)),i.text!=null&&(n.text=String(i.text)),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.size=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.size=n.longs===String?"0":0;if(o.url="",o.jumpUrl="",o.jumpTitle="",r.Long){let a=new r.Long(0,0,!1);o.id=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.id=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.packageId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.packageId=n.longs===String?"0":0;o.gifUrl="",o.text=""}return i.size!=null&&i.hasOwnProperty("size")&&(typeof i.size=="number"?o.size=n.longs===String?String(i.size):i.size:o.size=n.longs===String?r.Long.prototype.toString.call(i.size):n.longs===Number?new r.LongBits(i.size.low>>>0,i.size.high>>>0).toNumber():i.size),i.url!=null&&i.hasOwnProperty("url")&&(o.url=i.url),i.jumpUrl!=null&&i.hasOwnProperty("jumpUrl")&&(o.jumpUrl=i.jumpUrl),i.jumpTitle!=null&&i.hasOwnProperty("jumpTitle")&&(o.jumpTitle=i.jumpTitle),i.id!=null&&i.hasOwnProperty("id")&&(typeof i.id=="number"?o.id=n.longs===String?String(i.id):i.id:o.id=n.longs===String?r.Long.prototype.toString.call(i.id):n.longs===Number?new r.LongBits(i.id.low>>>0,i.id.high>>>0).toNumber():i.id),i.packageId!=null&&i.hasOwnProperty("packageId")&&(typeof i.packageId=="number"?o.packageId=n.longs===String?String(i.packageId):i.packageId:o.packageId=n.longs===String?r.Long.prototype.toString.call(i.packageId):n.longs===Number?new r.LongBits(i.packageId.low>>>0,i.packageId.high>>>0).toNumber():i.packageId),i.gifUrl!=null&&i.hasOwnProperty("gifUrl")&&(o.gifUrl=i.gifUrl),i.text!=null&&i.hasOwnProperty("text")&&(o.text=i.text),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.community.reply.v1.Emote"},l}(),e.Vote=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.id=i.int64();break}case 2:{a.title=i.string();break}case 3:{a.count=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.community.reply.v1.Vote)return i;let n=new u.bilibili.main.community.reply.v1.Vote;return i.id!=null&&(r.Long?(n.id=r.Long.fromValue(i.id)).unsigned=!1:typeof i.id=="string"?n.id=parseInt(i.id,10):typeof i.id=="number"?n.id=i.id:typeof i.id=="object"&&(n.id=new r.LongBits(i.id.low>>>0,i.id.high>>>0).toNumber())),i.title!=null&&(n.title=String(i.title)),i.count!=null&&(r.Long?(n.count=r.Long.fromValue(i.count)).unsigned=!1:typeof i.count=="string"?n.count=parseInt(i.count,10):typeof i.count=="number"?n.count=i.count:typeof i.count=="object"&&(n.count=new r.LongBits(i.count.low>>>0,i.count.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.id=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.id=n.longs===String?"0":0;if(o.title="",r.Long){let a=new r.Long(0,0,!1);o.count=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.count=n.longs===String?"0":0}return i.id!=null&&i.hasOwnProperty("id")&&(typeof i.id=="number"?o.id=n.longs===String?String(i.id):i.id:o.id=n.longs===String?r.Long.prototype.toString.call(i.id):n.longs===Number?new r.LongBits(i.id.low>>>0,i.id.high>>>0).toNumber():i.id),i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.count!=null&&i.hasOwnProperty("count")&&(typeof i.count=="number"?o.count=n.longs===String?String(i.count):i.count:o.count=n.longs===String?r.Long.prototype.toString.call(i.count):n.longs===Number?new r.LongBits(i.count.low>>>0,i.count.high>>>0).toNumber():i.count),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.community.reply.v1.Vote"},l}(),e.MemberV2=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.basic=u.bilibili.main.community.reply.v1.MemberV2.Basic.decode(i,i.uint32());break}case 2:{a.official=u.bilibili.main.community.reply.v1.MemberV2.Official.decode(i,i.uint32());break}case 3:{a.vip=u.bilibili.main.community.reply.v1.MemberV2.Vip.decode(i,i.uint32());break}case 4:{a.garb=u.bilibili.main.community.reply.v1.MemberV2.Garb.decode(i,i.uint32());break}case 5:{a.medal=u.bilibili.main.community.reply.v1.MemberV2.Medal.decode(i,i.uint32());break}case 6:{a.nft=u.bilibili.main.community.reply.v1.MemberV2.Nft.decode(i,i.uint32());break}case 7:{a.senior=u.bilibili.main.community.reply.v1.MemberV2.Senior.decode(i,i.uint32());break}case 8:{a.contractor=u.bilibili.main.community.reply.v1.MemberV2.Contractor.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.community.reply.v1.MemberV2)return i;let n=new u.bilibili.main.community.reply.v1.MemberV2;if(i.basic!=null){if(typeof i.basic!="object")throw TypeError(".bilibili.main.community.reply.v1.MemberV2.basic: object expected");n.basic=u.bilibili.main.community.reply.v1.MemberV2.Basic.fromObject(i.basic)}if(i.official!=null){if(typeof i.official!="object")throw TypeError(".bilibili.main.community.reply.v1.MemberV2.official: object expected");n.official=u.bilibili.main.community.reply.v1.MemberV2.Official.fromObject(i.official)}if(i.vip!=null){if(typeof i.vip!="object")throw TypeError(".bilibili.main.community.reply.v1.MemberV2.vip: object expected");n.vip=u.bilibili.main.community.reply.v1.MemberV2.Vip.fromObject(i.vip)}if(i.garb!=null){if(typeof i.garb!="object")throw TypeError(".bilibili.main.community.reply.v1.MemberV2.garb: object expected");n.garb=u.bilibili.main.community.reply.v1.MemberV2.Garb.fromObject(i.garb)}if(i.medal!=null){if(typeof i.medal!="object")throw TypeError(".bilibili.main.community.reply.v1.MemberV2.medal: object expected");n.medal=u.bilibili.main.community.reply.v1.MemberV2.Medal.fromObject(i.medal)}if(i.nft!=null){if(typeof i.nft!="object")throw TypeError(".bilibili.main.community.reply.v1.MemberV2.nft: object expected");n.nft=u.bilibili.main.community.reply.v1.MemberV2.Nft.fromObject(i.nft)}if(i.senior!=null){if(typeof i.senior!="object")throw TypeError(".bilibili.main.community.reply.v1.MemberV2.senior: object expected");n.senior=u.bilibili.main.community.reply.v1.MemberV2.Senior.fromObject(i.senior)}if(i.contractor!=null){if(typeof i.contractor!="object")throw TypeError(".bilibili.main.community.reply.v1.MemberV2.contractor: object expected");n.contractor=u.bilibili.main.community.reply.v1.MemberV2.Contractor.fromObject(i.contractor)}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.basic=null,o.official=null,o.vip=null,o.garb=null,o.medal=null,o.nft=null,o.senior=null,o.contractor=null),i.basic!=null&&i.hasOwnProperty("basic")&&(o.basic=u.bilibili.main.community.reply.v1.MemberV2.Basic.toObject(i.basic,n)),i.official!=null&&i.hasOwnProperty("official")&&(o.official=u.bilibili.main.community.reply.v1.MemberV2.Official.toObject(i.official,n)),i.vip!=null&&i.hasOwnProperty("vip")&&(o.vip=u.bilibili.main.community.reply.v1.MemberV2.Vip.toObject(i.vip,n)),i.garb!=null&&i.hasOwnProperty("garb")&&(o.garb=u.bilibili.main.community.reply.v1.MemberV2.Garb.toObject(i.garb,n)),i.medal!=null&&i.hasOwnProperty("medal")&&(o.medal=u.bilibili.main.community.reply.v1.MemberV2.Medal.toObject(i.medal,n)),i.nft!=null&&i.hasOwnProperty("nft")&&(o.nft=u.bilibili.main.community.reply.v1.MemberV2.Nft.toObject(i.nft,n)),i.senior!=null&&i.hasOwnProperty("senior")&&(o.senior=u.bilibili.main.community.reply.v1.MemberV2.Senior.toObject(i.senior,n)),i.contractor!=null&&i.hasOwnProperty("contractor")&&(o.contractor=u.bilibili.main.community.reply.v1.MemberV2.Contractor.toObject(i.contractor,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.community.reply.v1.MemberV2"},l.Basic=function(){function t(i){if(i)for(let n=Object.keys(i),o=0;o>>3){case 1:{y.mid=n.int64();break}case 2:{y.name=n.string();break}case 3:{y.sex=n.string();break}case 4:{y.face=n.string();break}case 5:{y.level=n.int64();break}case 6:{y.avatarItem=u.bilibili.dagw.component.avatar.v1.AvatarItem.decode(n,n.uint32());break}default:n.skipType(s&7);break}}return y},t.fromObject=function(n){if(n instanceof u.bilibili.main.community.reply.v1.MemberV2.Basic)return n;let o=new u.bilibili.main.community.reply.v1.MemberV2.Basic;if(n.mid!=null&&(r.Long?(o.mid=r.Long.fromValue(n.mid)).unsigned=!1:typeof n.mid=="string"?o.mid=parseInt(n.mid,10):typeof n.mid=="number"?o.mid=n.mid:typeof n.mid=="object"&&(o.mid=new r.LongBits(n.mid.low>>>0,n.mid.high>>>0).toNumber())),n.name!=null&&(o.name=String(n.name)),n.sex!=null&&(o.sex=String(n.sex)),n.face!=null&&(o.face=String(n.face)),n.level!=null&&(r.Long?(o.level=r.Long.fromValue(n.level)).unsigned=!1:typeof n.level=="string"?o.level=parseInt(n.level,10):typeof n.level=="number"?o.level=n.level:typeof n.level=="object"&&(o.level=new r.LongBits(n.level.low>>>0,n.level.high>>>0).toNumber())),n.avatarItem!=null){if(typeof n.avatarItem!="object")throw TypeError(".bilibili.main.community.reply.v1.MemberV2.Basic.avatarItem: object expected");o.avatarItem=u.bilibili.dagw.component.avatar.v1.AvatarItem.fromObject(n.avatarItem)}return o},t.toObject=function(n,o){o||(o={});let a={};if(o.defaults){if(r.Long){let y=new r.Long(0,0,!1);a.mid=o.longs===String?y.toString():o.longs===Number?y.toNumber():y}else a.mid=o.longs===String?"0":0;if(a.name="",a.sex="",a.face="",r.Long){let y=new r.Long(0,0,!1);a.level=o.longs===String?y.toString():o.longs===Number?y.toNumber():y}else a.level=o.longs===String?"0":0;a.avatarItem=null}return n.mid!=null&&n.hasOwnProperty("mid")&&(typeof n.mid=="number"?a.mid=o.longs===String?String(n.mid):n.mid:a.mid=o.longs===String?r.Long.prototype.toString.call(n.mid):o.longs===Number?new r.LongBits(n.mid.low>>>0,n.mid.high>>>0).toNumber():n.mid),n.name!=null&&n.hasOwnProperty("name")&&(a.name=n.name),n.sex!=null&&n.hasOwnProperty("sex")&&(a.sex=n.sex),n.face!=null&&n.hasOwnProperty("face")&&(a.face=n.face),n.level!=null&&n.hasOwnProperty("level")&&(typeof n.level=="number"?a.level=o.longs===String?String(n.level):n.level:a.level=o.longs===String?r.Long.prototype.toString.call(n.level):o.longs===Number?new r.LongBits(n.level.low>>>0,n.level.high>>>0).toNumber():n.level),n.avatarItem!=null&&n.hasOwnProperty("avatarItem")&&(a.avatarItem=u.bilibili.dagw.component.avatar.v1.AvatarItem.toObject(n.avatarItem,o)),a},t.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},t.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/bilibili.main.community.reply.v1.MemberV2.Basic"},t}(),l.Official=function(){function t(i){if(i)for(let n=Object.keys(i),o=0;o>>3){case 1:{y.verifyType=n.int64();break}default:n.skipType(s&7);break}}return y},t.fromObject=function(n){if(n instanceof u.bilibili.main.community.reply.v1.MemberV2.Official)return n;let o=new u.bilibili.main.community.reply.v1.MemberV2.Official;return n.verifyType!=null&&(r.Long?(o.verifyType=r.Long.fromValue(n.verifyType)).unsigned=!1:typeof n.verifyType=="string"?o.verifyType=parseInt(n.verifyType,10):typeof n.verifyType=="number"?o.verifyType=n.verifyType:typeof n.verifyType=="object"&&(o.verifyType=new r.LongBits(n.verifyType.low>>>0,n.verifyType.high>>>0).toNumber())),o},t.toObject=function(n,o){o||(o={});let a={};if(o.defaults)if(r.Long){let y=new r.Long(0,0,!1);a.verifyType=o.longs===String?y.toString():o.longs===Number?y.toNumber():y}else a.verifyType=o.longs===String?"0":0;return n.verifyType!=null&&n.hasOwnProperty("verifyType")&&(typeof n.verifyType=="number"?a.verifyType=o.longs===String?String(n.verifyType):n.verifyType:a.verifyType=o.longs===String?r.Long.prototype.toString.call(n.verifyType):o.longs===Number?new r.LongBits(n.verifyType.low>>>0,n.verifyType.high>>>0).toNumber():n.verifyType),a},t.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},t.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/bilibili.main.community.reply.v1.MemberV2.Official"},t}(),l.Vip=function(){function t(i){if(i)for(let n=Object.keys(i),o=0;o>>3){case 1:{y.type=n.int64();break}case 2:{y.status=n.int64();break}case 3:{y.themeType=n.int64();break}case 4:{y.labelPath=n.string();break}case 5:{y.nicknameColor=n.string();break}case 6:{y.avatarSubscript=n.int32();break}case 7:{y.labelText=n.string();break}case 8:{y.vipLabelTheme=n.string();break}default:n.skipType(s&7);break}}return y},t.fromObject=function(n){if(n instanceof u.bilibili.main.community.reply.v1.MemberV2.Vip)return n;let o=new u.bilibili.main.community.reply.v1.MemberV2.Vip;return n.type!=null&&(r.Long?(o.type=r.Long.fromValue(n.type)).unsigned=!1:typeof n.type=="string"?o.type=parseInt(n.type,10):typeof n.type=="number"?o.type=n.type:typeof n.type=="object"&&(o.type=new r.LongBits(n.type.low>>>0,n.type.high>>>0).toNumber())),n.status!=null&&(r.Long?(o.status=r.Long.fromValue(n.status)).unsigned=!1:typeof n.status=="string"?o.status=parseInt(n.status,10):typeof n.status=="number"?o.status=n.status:typeof n.status=="object"&&(o.status=new r.LongBits(n.status.low>>>0,n.status.high>>>0).toNumber())),n.themeType!=null&&(r.Long?(o.themeType=r.Long.fromValue(n.themeType)).unsigned=!1:typeof n.themeType=="string"?o.themeType=parseInt(n.themeType,10):typeof n.themeType=="number"?o.themeType=n.themeType:typeof n.themeType=="object"&&(o.themeType=new r.LongBits(n.themeType.low>>>0,n.themeType.high>>>0).toNumber())),n.labelPath!=null&&(o.labelPath=String(n.labelPath)),n.nicknameColor!=null&&(o.nicknameColor=String(n.nicknameColor)),n.avatarSubscript!=null&&(o.avatarSubscript=n.avatarSubscript|0),n.labelText!=null&&(o.labelText=String(n.labelText)),n.vipLabelTheme!=null&&(o.vipLabelTheme=String(n.vipLabelTheme)),o},t.toObject=function(n,o){o||(o={});let a={};if(o.defaults){if(r.Long){let y=new r.Long(0,0,!1);a.type=o.longs===String?y.toString():o.longs===Number?y.toNumber():y}else a.type=o.longs===String?"0":0;if(r.Long){let y=new r.Long(0,0,!1);a.status=o.longs===String?y.toString():o.longs===Number?y.toNumber():y}else a.status=o.longs===String?"0":0;if(r.Long){let y=new r.Long(0,0,!1);a.themeType=o.longs===String?y.toString():o.longs===Number?y.toNumber():y}else a.themeType=o.longs===String?"0":0;a.labelPath="",a.nicknameColor="",a.avatarSubscript=0,a.labelText="",a.vipLabelTheme=""}return n.type!=null&&n.hasOwnProperty("type")&&(typeof n.type=="number"?a.type=o.longs===String?String(n.type):n.type:a.type=o.longs===String?r.Long.prototype.toString.call(n.type):o.longs===Number?new r.LongBits(n.type.low>>>0,n.type.high>>>0).toNumber():n.type),n.status!=null&&n.hasOwnProperty("status")&&(typeof n.status=="number"?a.status=o.longs===String?String(n.status):n.status:a.status=o.longs===String?r.Long.prototype.toString.call(n.status):o.longs===Number?new r.LongBits(n.status.low>>>0,n.status.high>>>0).toNumber():n.status),n.themeType!=null&&n.hasOwnProperty("themeType")&&(typeof n.themeType=="number"?a.themeType=o.longs===String?String(n.themeType):n.themeType:a.themeType=o.longs===String?r.Long.prototype.toString.call(n.themeType):o.longs===Number?new r.LongBits(n.themeType.low>>>0,n.themeType.high>>>0).toNumber():n.themeType),n.labelPath!=null&&n.hasOwnProperty("labelPath")&&(a.labelPath=n.labelPath),n.nicknameColor!=null&&n.hasOwnProperty("nicknameColor")&&(a.nicknameColor=n.nicknameColor),n.avatarSubscript!=null&&n.hasOwnProperty("avatarSubscript")&&(a.avatarSubscript=n.avatarSubscript),n.labelText!=null&&n.hasOwnProperty("labelText")&&(a.labelText=n.labelText),n.vipLabelTheme!=null&&n.hasOwnProperty("vipLabelTheme")&&(a.vipLabelTheme=n.vipLabelTheme),a},t.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},t.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/bilibili.main.community.reply.v1.MemberV2.Vip"},t}(),l.Garb=function(){function t(i){if(i)for(let n=Object.keys(i),o=0;o>>3){case 1:{y.pendantImage=n.string();break}case 2:{y.cardImage=n.string();break}case 3:{y.cardImageWithFocus=n.string();break}case 4:{y.cardJumpUrl=n.string();break}case 5:{y.cardNumber=n.string();break}case 6:{y.cardFanColor=n.string();break}case 7:{y.cardIsFan=n.bool();break}default:n.skipType(s&7);break}}return y},t.fromObject=function(n){if(n instanceof u.bilibili.main.community.reply.v1.MemberV2.Garb)return n;let o=new u.bilibili.main.community.reply.v1.MemberV2.Garb;return n.pendantImage!=null&&(o.pendantImage=String(n.pendantImage)),n.cardImage!=null&&(o.cardImage=String(n.cardImage)),n.cardImageWithFocus!=null&&(o.cardImageWithFocus=String(n.cardImageWithFocus)),n.cardJumpUrl!=null&&(o.cardJumpUrl=String(n.cardJumpUrl)),n.cardNumber!=null&&(o.cardNumber=String(n.cardNumber)),n.cardFanColor!=null&&(o.cardFanColor=String(n.cardFanColor)),n.cardIsFan!=null&&(o.cardIsFan=!!n.cardIsFan),o},t.toObject=function(n,o){o||(o={});let a={};return o.defaults&&(a.pendantImage="",a.cardImage="",a.cardImageWithFocus="",a.cardJumpUrl="",a.cardNumber="",a.cardFanColor="",a.cardIsFan=!1),n.pendantImage!=null&&n.hasOwnProperty("pendantImage")&&(a.pendantImage=n.pendantImage),n.cardImage!=null&&n.hasOwnProperty("cardImage")&&(a.cardImage=n.cardImage),n.cardImageWithFocus!=null&&n.hasOwnProperty("cardImageWithFocus")&&(a.cardImageWithFocus=n.cardImageWithFocus),n.cardJumpUrl!=null&&n.hasOwnProperty("cardJumpUrl")&&(a.cardJumpUrl=n.cardJumpUrl),n.cardNumber!=null&&n.hasOwnProperty("cardNumber")&&(a.cardNumber=n.cardNumber),n.cardFanColor!=null&&n.hasOwnProperty("cardFanColor")&&(a.cardFanColor=n.cardFanColor),n.cardIsFan!=null&&n.hasOwnProperty("cardIsFan")&&(a.cardIsFan=n.cardIsFan),a},t.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},t.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/bilibili.main.community.reply.v1.MemberV2.Garb"},t}(),l.Medal=function(){function t(i){if(i)for(let n=Object.keys(i),o=0;o>>3){case 1:{y.name=n.string();break}case 2:{y.level=n.int64();break}case 3:{y.colorStart=n.int64();break}case 4:{y.colorEnd=n.int64();break}case 5:{y.colorBorder=n.int64();break}case 6:{y.colorName=n.int64();break}case 7:{y.colorLevel=n.int64();break}case 8:{y.guardLevel=n.int64();break}case 9:{y.firstIcon=n.string();break}case 10:{y.secondIcon=n.string();break}case 11:{y.levelBgColor=n.int64();break}default:n.skipType(s&7);break}}return y},t.fromObject=function(n){if(n instanceof u.bilibili.main.community.reply.v1.MemberV2.Medal)return n;let o=new u.bilibili.main.community.reply.v1.MemberV2.Medal;return n.name!=null&&(o.name=String(n.name)),n.level!=null&&(r.Long?(o.level=r.Long.fromValue(n.level)).unsigned=!1:typeof n.level=="string"?o.level=parseInt(n.level,10):typeof n.level=="number"?o.level=n.level:typeof n.level=="object"&&(o.level=new r.LongBits(n.level.low>>>0,n.level.high>>>0).toNumber())),n.colorStart!=null&&(r.Long?(o.colorStart=r.Long.fromValue(n.colorStart)).unsigned=!1:typeof n.colorStart=="string"?o.colorStart=parseInt(n.colorStart,10):typeof n.colorStart=="number"?o.colorStart=n.colorStart:typeof n.colorStart=="object"&&(o.colorStart=new r.LongBits(n.colorStart.low>>>0,n.colorStart.high>>>0).toNumber())),n.colorEnd!=null&&(r.Long?(o.colorEnd=r.Long.fromValue(n.colorEnd)).unsigned=!1:typeof n.colorEnd=="string"?o.colorEnd=parseInt(n.colorEnd,10):typeof n.colorEnd=="number"?o.colorEnd=n.colorEnd:typeof n.colorEnd=="object"&&(o.colorEnd=new r.LongBits(n.colorEnd.low>>>0,n.colorEnd.high>>>0).toNumber())),n.colorBorder!=null&&(r.Long?(o.colorBorder=r.Long.fromValue(n.colorBorder)).unsigned=!1:typeof n.colorBorder=="string"?o.colorBorder=parseInt(n.colorBorder,10):typeof n.colorBorder=="number"?o.colorBorder=n.colorBorder:typeof n.colorBorder=="object"&&(o.colorBorder=new r.LongBits(n.colorBorder.low>>>0,n.colorBorder.high>>>0).toNumber())),n.colorName!=null&&(r.Long?(o.colorName=r.Long.fromValue(n.colorName)).unsigned=!1:typeof n.colorName=="string"?o.colorName=parseInt(n.colorName,10):typeof n.colorName=="number"?o.colorName=n.colorName:typeof n.colorName=="object"&&(o.colorName=new r.LongBits(n.colorName.low>>>0,n.colorName.high>>>0).toNumber())),n.colorLevel!=null&&(r.Long?(o.colorLevel=r.Long.fromValue(n.colorLevel)).unsigned=!1:typeof n.colorLevel=="string"?o.colorLevel=parseInt(n.colorLevel,10):typeof n.colorLevel=="number"?o.colorLevel=n.colorLevel:typeof n.colorLevel=="object"&&(o.colorLevel=new r.LongBits(n.colorLevel.low>>>0,n.colorLevel.high>>>0).toNumber())),n.guardLevel!=null&&(r.Long?(o.guardLevel=r.Long.fromValue(n.guardLevel)).unsigned=!1:typeof n.guardLevel=="string"?o.guardLevel=parseInt(n.guardLevel,10):typeof n.guardLevel=="number"?o.guardLevel=n.guardLevel:typeof n.guardLevel=="object"&&(o.guardLevel=new r.LongBits(n.guardLevel.low>>>0,n.guardLevel.high>>>0).toNumber())),n.firstIcon!=null&&(o.firstIcon=String(n.firstIcon)),n.secondIcon!=null&&(o.secondIcon=String(n.secondIcon)),n.levelBgColor!=null&&(r.Long?(o.levelBgColor=r.Long.fromValue(n.levelBgColor)).unsigned=!1:typeof n.levelBgColor=="string"?o.levelBgColor=parseInt(n.levelBgColor,10):typeof n.levelBgColor=="number"?o.levelBgColor=n.levelBgColor:typeof n.levelBgColor=="object"&&(o.levelBgColor=new r.LongBits(n.levelBgColor.low>>>0,n.levelBgColor.high>>>0).toNumber())),o},t.toObject=function(n,o){o||(o={});let a={};if(o.defaults){if(a.name="",r.Long){let y=new r.Long(0,0,!1);a.level=o.longs===String?y.toString():o.longs===Number?y.toNumber():y}else a.level=o.longs===String?"0":0;if(r.Long){let y=new r.Long(0,0,!1);a.colorStart=o.longs===String?y.toString():o.longs===Number?y.toNumber():y}else a.colorStart=o.longs===String?"0":0;if(r.Long){let y=new r.Long(0,0,!1);a.colorEnd=o.longs===String?y.toString():o.longs===Number?y.toNumber():y}else a.colorEnd=o.longs===String?"0":0;if(r.Long){let y=new r.Long(0,0,!1);a.colorBorder=o.longs===String?y.toString():o.longs===Number?y.toNumber():y}else a.colorBorder=o.longs===String?"0":0;if(r.Long){let y=new r.Long(0,0,!1);a.colorName=o.longs===String?y.toString():o.longs===Number?y.toNumber():y}else a.colorName=o.longs===String?"0":0;if(r.Long){let y=new r.Long(0,0,!1);a.colorLevel=o.longs===String?y.toString():o.longs===Number?y.toNumber():y}else a.colorLevel=o.longs===String?"0":0;if(r.Long){let y=new r.Long(0,0,!1);a.guardLevel=o.longs===String?y.toString():o.longs===Number?y.toNumber():y}else a.guardLevel=o.longs===String?"0":0;if(a.firstIcon="",a.secondIcon="",r.Long){let y=new r.Long(0,0,!1);a.levelBgColor=o.longs===String?y.toString():o.longs===Number?y.toNumber():y}else a.levelBgColor=o.longs===String?"0":0}return n.name!=null&&n.hasOwnProperty("name")&&(a.name=n.name),n.level!=null&&n.hasOwnProperty("level")&&(typeof n.level=="number"?a.level=o.longs===String?String(n.level):n.level:a.level=o.longs===String?r.Long.prototype.toString.call(n.level):o.longs===Number?new r.LongBits(n.level.low>>>0,n.level.high>>>0).toNumber():n.level),n.colorStart!=null&&n.hasOwnProperty("colorStart")&&(typeof n.colorStart=="number"?a.colorStart=o.longs===String?String(n.colorStart):n.colorStart:a.colorStart=o.longs===String?r.Long.prototype.toString.call(n.colorStart):o.longs===Number?new r.LongBits(n.colorStart.low>>>0,n.colorStart.high>>>0).toNumber():n.colorStart),n.colorEnd!=null&&n.hasOwnProperty("colorEnd")&&(typeof n.colorEnd=="number"?a.colorEnd=o.longs===String?String(n.colorEnd):n.colorEnd:a.colorEnd=o.longs===String?r.Long.prototype.toString.call(n.colorEnd):o.longs===Number?new r.LongBits(n.colorEnd.low>>>0,n.colorEnd.high>>>0).toNumber():n.colorEnd),n.colorBorder!=null&&n.hasOwnProperty("colorBorder")&&(typeof n.colorBorder=="number"?a.colorBorder=o.longs===String?String(n.colorBorder):n.colorBorder:a.colorBorder=o.longs===String?r.Long.prototype.toString.call(n.colorBorder):o.longs===Number?new r.LongBits(n.colorBorder.low>>>0,n.colorBorder.high>>>0).toNumber():n.colorBorder),n.colorName!=null&&n.hasOwnProperty("colorName")&&(typeof n.colorName=="number"?a.colorName=o.longs===String?String(n.colorName):n.colorName:a.colorName=o.longs===String?r.Long.prototype.toString.call(n.colorName):o.longs===Number?new r.LongBits(n.colorName.low>>>0,n.colorName.high>>>0).toNumber():n.colorName),n.colorLevel!=null&&n.hasOwnProperty("colorLevel")&&(typeof n.colorLevel=="number"?a.colorLevel=o.longs===String?String(n.colorLevel):n.colorLevel:a.colorLevel=o.longs===String?r.Long.prototype.toString.call(n.colorLevel):o.longs===Number?new r.LongBits(n.colorLevel.low>>>0,n.colorLevel.high>>>0).toNumber():n.colorLevel),n.guardLevel!=null&&n.hasOwnProperty("guardLevel")&&(typeof n.guardLevel=="number"?a.guardLevel=o.longs===String?String(n.guardLevel):n.guardLevel:a.guardLevel=o.longs===String?r.Long.prototype.toString.call(n.guardLevel):o.longs===Number?new r.LongBits(n.guardLevel.low>>>0,n.guardLevel.high>>>0).toNumber():n.guardLevel),n.firstIcon!=null&&n.hasOwnProperty("firstIcon")&&(a.firstIcon=n.firstIcon),n.secondIcon!=null&&n.hasOwnProperty("secondIcon")&&(a.secondIcon=n.secondIcon),n.levelBgColor!=null&&n.hasOwnProperty("levelBgColor")&&(typeof n.levelBgColor=="number"?a.levelBgColor=o.longs===String?String(n.levelBgColor):n.levelBgColor:a.levelBgColor=o.longs===String?r.Long.prototype.toString.call(n.levelBgColor):o.longs===Number?new r.LongBits(n.levelBgColor.low>>>0,n.levelBgColor.high>>>0).toNumber():n.levelBgColor),a},t.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},t.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/bilibili.main.community.reply.v1.MemberV2.Medal"},t}(),l.Nft=function(){function t(i){if(i)for(let n=Object.keys(i),o=0;o>>3){case 1:{y.face=n.int32();break}case 2:{y.interaction=u.bilibili.main.community.reply.v1.MemberV2.Nft.Interaction.decode(n,n.uint32());break}default:n.skipType(s&7);break}}return y},t.fromObject=function(n){if(n instanceof u.bilibili.main.community.reply.v1.MemberV2.Nft)return n;let o=new u.bilibili.main.community.reply.v1.MemberV2.Nft;if(n.face!=null&&(o.face=n.face|0),n.interaction!=null){if(typeof n.interaction!="object")throw TypeError(".bilibili.main.community.reply.v1.MemberV2.Nft.interaction: object expected");o.interaction=u.bilibili.main.community.reply.v1.MemberV2.Nft.Interaction.fromObject(n.interaction)}return o},t.toObject=function(n,o){o||(o={});let a={};return o.defaults&&(a.face=0,a.interaction=null),n.face!=null&&n.hasOwnProperty("face")&&(a.face=n.face),n.interaction!=null&&n.hasOwnProperty("interaction")&&(a.interaction=u.bilibili.main.community.reply.v1.MemberV2.Nft.Interaction.toObject(n.interaction,o)),a},t.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},t.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/bilibili.main.community.reply.v1.MemberV2.Nft"},t.Interaction=function(){function i(n){if(n)for(let o=Object.keys(n),a=0;a>>3){case 1:{s.itype=o.string();break}case 2:{s.metadataUrl=o.string();break}case 3:{s.nftId=o.string();break}case 4:{s.region=u.bilibili.main.community.reply.v1.MemberV2.Nft.Interaction.Region.decode(o,o.uint32());break}default:o.skipType(v&7);break}}return s},i.fromObject=function(o){if(o instanceof u.bilibili.main.community.reply.v1.MemberV2.Nft.Interaction)return o;let a=new u.bilibili.main.community.reply.v1.MemberV2.Nft.Interaction;if(o.itype!=null&&(a.itype=String(o.itype)),o.metadataUrl!=null&&(a.metadataUrl=String(o.metadataUrl)),o.nftId!=null&&(a.nftId=String(o.nftId)),o.region!=null){if(typeof o.region!="object")throw TypeError(".bilibili.main.community.reply.v1.MemberV2.Nft.Interaction.region: object expected");a.region=u.bilibili.main.community.reply.v1.MemberV2.Nft.Interaction.Region.fromObject(o.region)}return a},i.toObject=function(o,a){a||(a={});let y={};return a.defaults&&(y.itype="",y.metadataUrl="",y.nftId="",y.region=null),o.itype!=null&&o.hasOwnProperty("itype")&&(y.itype=o.itype),o.metadataUrl!=null&&o.hasOwnProperty("metadataUrl")&&(y.metadataUrl=o.metadataUrl),o.nftId!=null&&o.hasOwnProperty("nftId")&&(y.nftId=o.nftId),o.region!=null&&o.hasOwnProperty("region")&&(y.region=u.bilibili.main.community.reply.v1.MemberV2.Nft.Interaction.Region.toObject(o.region,a)),y},i.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},i.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/bilibili.main.community.reply.v1.MemberV2.Nft.Interaction"},i.RegionType=function(){let n={},o=Object.create(n);return o[n[0]="DEFAULT"]=0,o[n[1]="MAINLAND"]=1,o[n[2]="GAT"]=2,o}(),i.ShowStatus=function(){let n={},o=Object.create(n);return o[n[0]="SHOWDEFAULT"]=0,o[n[1]="ZOOMINMAINLAND"]=1,o[n[2]="RAW"]=2,o}(),i.Region=function(){function n(o){if(o)for(let a=Object.keys(o),y=0;y>>3){case 1:{v.type=a.int32();break}case 2:{v.icon=a.string();break}case 3:{v.showStatus=a.int32();break}default:a.skipType(g&7);break}}return v},n.fromObject=function(a){if(a instanceof u.bilibili.main.community.reply.v1.MemberV2.Nft.Interaction.Region)return a;let y=new u.bilibili.main.community.reply.v1.MemberV2.Nft.Interaction.Region;switch(a.type){default:if(typeof a.type=="number"){y.type=a.type;break}break;case"DEFAULT":case 0:y.type=0;break;case"MAINLAND":case 1:y.type=1;break;case"GAT":case 2:y.type=2;break}switch(a.icon!=null&&(y.icon=String(a.icon)),a.showStatus){default:if(typeof a.showStatus=="number"){y.showStatus=a.showStatus;break}break;case"SHOWDEFAULT":case 0:y.showStatus=0;break;case"ZOOMINMAINLAND":case 1:y.showStatus=1;break;case"RAW":case 2:y.showStatus=2;break}return y},n.toObject=function(a,y){y||(y={});let s={};return y.defaults&&(s.type=y.enums===String?"DEFAULT":0,s.icon="",s.showStatus=y.enums===String?"SHOWDEFAULT":0),a.type!=null&&a.hasOwnProperty("type")&&(s.type=y.enums===String?u.bilibili.main.community.reply.v1.MemberV2.Nft.Interaction.RegionType[a.type]===void 0?a.type:u.bilibili.main.community.reply.v1.MemberV2.Nft.Interaction.RegionType[a.type]:a.type),a.icon!=null&&a.hasOwnProperty("icon")&&(s.icon=a.icon),a.showStatus!=null&&a.hasOwnProperty("showStatus")&&(s.showStatus=y.enums===String?u.bilibili.main.community.reply.v1.MemberV2.Nft.Interaction.ShowStatus[a.showStatus]===void 0?a.showStatus:u.bilibili.main.community.reply.v1.MemberV2.Nft.Interaction.ShowStatus[a.showStatus]:a.showStatus),s},n.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},n.getTypeUrl=function(a){return a===void 0&&(a="type.googleapis.com"),a+"/bilibili.main.community.reply.v1.MemberV2.Nft.Interaction.Region"},n}(),i}(),t}(),l.Senior=function(){function t(i){if(i)for(let n=Object.keys(i),o=0;o>>3){case 1:{y.isSeniorMember=n.int32();break}case 2:{y.status=n.int32();break}default:n.skipType(s&7);break}}return y},t.fromObject=function(n){if(n instanceof u.bilibili.main.community.reply.v1.MemberV2.Senior)return n;let o=new u.bilibili.main.community.reply.v1.MemberV2.Senior;switch(n.isSeniorMember!=null&&(o.isSeniorMember=n.isSeniorMember|0),n.status){default:if(typeof n.status=="number"){o.status=n.status;break}break;case"Normal":case 0:o.status=0;break;case"Pending":case 1:o.status=1;break;case"Senior":case 2:o.status=2;break;case"WillExpire":case 3:o.status=3;break;case"Expired":case 4:o.status=4;break}return o},t.toObject=function(n,o){o||(o={});let a={};return o.defaults&&(a.isSeniorMember=0,a.status=o.enums===String?"Normal":0),n.isSeniorMember!=null&&n.hasOwnProperty("isSeniorMember")&&(a.isSeniorMember=n.isSeniorMember),n.status!=null&&n.hasOwnProperty("status")&&(a.status=o.enums===String?u.bilibili.main.community.reply.v1.MemberV2.Senior.Status[n.status]===void 0?n.status:u.bilibili.main.community.reply.v1.MemberV2.Senior.Status[n.status]:n.status),a},t.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},t.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/bilibili.main.community.reply.v1.MemberV2.Senior"},t.Status=function(){let i={},n=Object.create(i);return n[i[0]="Normal"]=0,n[i[1]="Pending"]=1,n[i[2]="Senior"]=2,n[i[3]="WillExpire"]=3,n[i[4]="Expired"]=4,n}(),t}(),l.Contractor=function(){function t(i){if(i)for(let n=Object.keys(i),o=0;o>>3){case 1:{y.isContractor=n.bool();break}case 2:{y.contractDesc=n.string();break}default:n.skipType(s&7);break}}return y},t.fromObject=function(n){if(n instanceof u.bilibili.main.community.reply.v1.MemberV2.Contractor)return n;let o=new u.bilibili.main.community.reply.v1.MemberV2.Contractor;return n.isContractor!=null&&(o.isContractor=!!n.isContractor),n.contractDesc!=null&&(o.contractDesc=String(n.contractDesc)),o},t.toObject=function(n,o){o||(o={});let a={};return o.defaults&&(a.isContractor=!1,a.contractDesc=""),n.isContractor!=null&&n.hasOwnProperty("isContractor")&&(a.isContractor=n.isContractor),n.contractDesc!=null&&n.hasOwnProperty("contractDesc")&&(a.contractDesc=n.contractDesc),a},t.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},t.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/bilibili.main.community.reply.v1.MemberV2.Contractor"},t}(),l}(),e.Member=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.mid=i.int64();break}case 2:{a.name=i.string();break}case 3:{a.sex=i.string();break}case 4:{a.face=i.string();break}case 5:{a.level=i.int64();break}case 6:{a.officialVerifyType=i.int64();break}case 7:{a.vipType=i.int64();break}case 8:{a.vipStatus=i.int64();break}case 9:{a.vipThemeType=i.int64();break}case 10:{a.vipLabelPath=i.string();break}case 11:{a.garbPendantImage=i.string();break}case 12:{a.garbCardImage=i.string();break}case 13:{a.garbCardImageWithFocus=i.string();break}case 14:{a.garbCardJumpUrl=i.string();break}case 15:{a.garbCardNumber=i.string();break}case 16:{a.garbCardFanColor=i.string();break}case 17:{a.garbCardIsFan=i.bool();break}case 18:{a.fansMedalName=i.string();break}case 19:{a.fansMedalLevel=i.int64();break}case 20:{a.fansMedalColor=i.int64();break}case 21:{a.vipNicknameColor=i.string();break}case 22:{a.vipAvatarSubscript=i.int32();break}case 23:{a.vipLabelText=i.string();break}case 24:{a.vipLabelTheme=i.string();break}case 25:{a.fansMedalColorEnd=i.int64();break}case 26:{a.fansMedalColorBorder=i.int64();break}case 27:{a.fansMedalColorName=i.int64();break}case 28:{a.fansMedalColorLevel=i.int64();break}case 29:{a.fansGuardLevel=i.int64();break}case 30:{a.faceNft=i.int32();break}case 31:{a.faceNftNew=i.int32();break}case 32:{a.isSeniorMember=i.int32();break}case 33:{a.nftInteraction=u.bilibili.main.community.reply.v1.Member.NftInteraction.decode(i,i.uint32());break}case 34:{a.fansGuardIcon=i.string();break}case 35:{a.fansHonorIcon=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.community.reply.v1.Member)return i;let n=new u.bilibili.main.community.reply.v1.Member;if(i.mid!=null&&(r.Long?(n.mid=r.Long.fromValue(i.mid)).unsigned=!1:typeof i.mid=="string"?n.mid=parseInt(i.mid,10):typeof i.mid=="number"?n.mid=i.mid:typeof i.mid=="object"&&(n.mid=new r.LongBits(i.mid.low>>>0,i.mid.high>>>0).toNumber())),i.name!=null&&(n.name=String(i.name)),i.sex!=null&&(n.sex=String(i.sex)),i.face!=null&&(n.face=String(i.face)),i.level!=null&&(r.Long?(n.level=r.Long.fromValue(i.level)).unsigned=!1:typeof i.level=="string"?n.level=parseInt(i.level,10):typeof i.level=="number"?n.level=i.level:typeof i.level=="object"&&(n.level=new r.LongBits(i.level.low>>>0,i.level.high>>>0).toNumber())),i.officialVerifyType!=null&&(r.Long?(n.officialVerifyType=r.Long.fromValue(i.officialVerifyType)).unsigned=!1:typeof i.officialVerifyType=="string"?n.officialVerifyType=parseInt(i.officialVerifyType,10):typeof i.officialVerifyType=="number"?n.officialVerifyType=i.officialVerifyType:typeof i.officialVerifyType=="object"&&(n.officialVerifyType=new r.LongBits(i.officialVerifyType.low>>>0,i.officialVerifyType.high>>>0).toNumber())),i.vipType!=null&&(r.Long?(n.vipType=r.Long.fromValue(i.vipType)).unsigned=!1:typeof i.vipType=="string"?n.vipType=parseInt(i.vipType,10):typeof i.vipType=="number"?n.vipType=i.vipType:typeof i.vipType=="object"&&(n.vipType=new r.LongBits(i.vipType.low>>>0,i.vipType.high>>>0).toNumber())),i.vipStatus!=null&&(r.Long?(n.vipStatus=r.Long.fromValue(i.vipStatus)).unsigned=!1:typeof i.vipStatus=="string"?n.vipStatus=parseInt(i.vipStatus,10):typeof i.vipStatus=="number"?n.vipStatus=i.vipStatus:typeof i.vipStatus=="object"&&(n.vipStatus=new r.LongBits(i.vipStatus.low>>>0,i.vipStatus.high>>>0).toNumber())),i.vipThemeType!=null&&(r.Long?(n.vipThemeType=r.Long.fromValue(i.vipThemeType)).unsigned=!1:typeof i.vipThemeType=="string"?n.vipThemeType=parseInt(i.vipThemeType,10):typeof i.vipThemeType=="number"?n.vipThemeType=i.vipThemeType:typeof i.vipThemeType=="object"&&(n.vipThemeType=new r.LongBits(i.vipThemeType.low>>>0,i.vipThemeType.high>>>0).toNumber())),i.vipLabelPath!=null&&(n.vipLabelPath=String(i.vipLabelPath)),i.garbPendantImage!=null&&(n.garbPendantImage=String(i.garbPendantImage)),i.garbCardImage!=null&&(n.garbCardImage=String(i.garbCardImage)),i.garbCardImageWithFocus!=null&&(n.garbCardImageWithFocus=String(i.garbCardImageWithFocus)),i.garbCardJumpUrl!=null&&(n.garbCardJumpUrl=String(i.garbCardJumpUrl)),i.garbCardNumber!=null&&(n.garbCardNumber=String(i.garbCardNumber)),i.garbCardFanColor!=null&&(n.garbCardFanColor=String(i.garbCardFanColor)),i.garbCardIsFan!=null&&(n.garbCardIsFan=!!i.garbCardIsFan),i.fansMedalName!=null&&(n.fansMedalName=String(i.fansMedalName)),i.fansMedalLevel!=null&&(r.Long?(n.fansMedalLevel=r.Long.fromValue(i.fansMedalLevel)).unsigned=!1:typeof i.fansMedalLevel=="string"?n.fansMedalLevel=parseInt(i.fansMedalLevel,10):typeof i.fansMedalLevel=="number"?n.fansMedalLevel=i.fansMedalLevel:typeof i.fansMedalLevel=="object"&&(n.fansMedalLevel=new r.LongBits(i.fansMedalLevel.low>>>0,i.fansMedalLevel.high>>>0).toNumber())),i.fansMedalColor!=null&&(r.Long?(n.fansMedalColor=r.Long.fromValue(i.fansMedalColor)).unsigned=!1:typeof i.fansMedalColor=="string"?n.fansMedalColor=parseInt(i.fansMedalColor,10):typeof i.fansMedalColor=="number"?n.fansMedalColor=i.fansMedalColor:typeof i.fansMedalColor=="object"&&(n.fansMedalColor=new r.LongBits(i.fansMedalColor.low>>>0,i.fansMedalColor.high>>>0).toNumber())),i.vipNicknameColor!=null&&(n.vipNicknameColor=String(i.vipNicknameColor)),i.vipAvatarSubscript!=null&&(n.vipAvatarSubscript=i.vipAvatarSubscript|0),i.vipLabelText!=null&&(n.vipLabelText=String(i.vipLabelText)),i.vipLabelTheme!=null&&(n.vipLabelTheme=String(i.vipLabelTheme)),i.fansMedalColorEnd!=null&&(r.Long?(n.fansMedalColorEnd=r.Long.fromValue(i.fansMedalColorEnd)).unsigned=!1:typeof i.fansMedalColorEnd=="string"?n.fansMedalColorEnd=parseInt(i.fansMedalColorEnd,10):typeof i.fansMedalColorEnd=="number"?n.fansMedalColorEnd=i.fansMedalColorEnd:typeof i.fansMedalColorEnd=="object"&&(n.fansMedalColorEnd=new r.LongBits(i.fansMedalColorEnd.low>>>0,i.fansMedalColorEnd.high>>>0).toNumber())),i.fansMedalColorBorder!=null&&(r.Long?(n.fansMedalColorBorder=r.Long.fromValue(i.fansMedalColorBorder)).unsigned=!1:typeof i.fansMedalColorBorder=="string"?n.fansMedalColorBorder=parseInt(i.fansMedalColorBorder,10):typeof i.fansMedalColorBorder=="number"?n.fansMedalColorBorder=i.fansMedalColorBorder:typeof i.fansMedalColorBorder=="object"&&(n.fansMedalColorBorder=new r.LongBits(i.fansMedalColorBorder.low>>>0,i.fansMedalColorBorder.high>>>0).toNumber())),i.fansMedalColorName!=null&&(r.Long?(n.fansMedalColorName=r.Long.fromValue(i.fansMedalColorName)).unsigned=!1:typeof i.fansMedalColorName=="string"?n.fansMedalColorName=parseInt(i.fansMedalColorName,10):typeof i.fansMedalColorName=="number"?n.fansMedalColorName=i.fansMedalColorName:typeof i.fansMedalColorName=="object"&&(n.fansMedalColorName=new r.LongBits(i.fansMedalColorName.low>>>0,i.fansMedalColorName.high>>>0).toNumber())),i.fansMedalColorLevel!=null&&(r.Long?(n.fansMedalColorLevel=r.Long.fromValue(i.fansMedalColorLevel)).unsigned=!1:typeof i.fansMedalColorLevel=="string"?n.fansMedalColorLevel=parseInt(i.fansMedalColorLevel,10):typeof i.fansMedalColorLevel=="number"?n.fansMedalColorLevel=i.fansMedalColorLevel:typeof i.fansMedalColorLevel=="object"&&(n.fansMedalColorLevel=new r.LongBits(i.fansMedalColorLevel.low>>>0,i.fansMedalColorLevel.high>>>0).toNumber())),i.fansGuardLevel!=null&&(r.Long?(n.fansGuardLevel=r.Long.fromValue(i.fansGuardLevel)).unsigned=!1:typeof i.fansGuardLevel=="string"?n.fansGuardLevel=parseInt(i.fansGuardLevel,10):typeof i.fansGuardLevel=="number"?n.fansGuardLevel=i.fansGuardLevel:typeof i.fansGuardLevel=="object"&&(n.fansGuardLevel=new r.LongBits(i.fansGuardLevel.low>>>0,i.fansGuardLevel.high>>>0).toNumber())),i.faceNft!=null&&(n.faceNft=i.faceNft|0),i.faceNftNew!=null&&(n.faceNftNew=i.faceNftNew|0),i.isSeniorMember!=null&&(n.isSeniorMember=i.isSeniorMember|0),i.nftInteraction!=null){if(typeof i.nftInteraction!="object")throw TypeError(".bilibili.main.community.reply.v1.Member.nftInteraction: object expected");n.nftInteraction=u.bilibili.main.community.reply.v1.Member.NftInteraction.fromObject(i.nftInteraction)}return i.fansGuardIcon!=null&&(n.fansGuardIcon=String(i.fansGuardIcon)),i.fansHonorIcon!=null&&(n.fansHonorIcon=String(i.fansHonorIcon)),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.mid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.mid=n.longs===String?"0":0;if(o.name="",o.sex="",o.face="",r.Long){let a=new r.Long(0,0,!1);o.level=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.level=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.officialVerifyType=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.officialVerifyType=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.vipType=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.vipType=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.vipStatus=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.vipStatus=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.vipThemeType=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.vipThemeType=n.longs===String?"0":0;if(o.vipLabelPath="",o.garbPendantImage="",o.garbCardImage="",o.garbCardImageWithFocus="",o.garbCardJumpUrl="",o.garbCardNumber="",o.garbCardFanColor="",o.garbCardIsFan=!1,o.fansMedalName="",r.Long){let a=new r.Long(0,0,!1);o.fansMedalLevel=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.fansMedalLevel=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.fansMedalColor=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.fansMedalColor=n.longs===String?"0":0;if(o.vipNicknameColor="",o.vipAvatarSubscript=0,o.vipLabelText="",o.vipLabelTheme="",r.Long){let a=new r.Long(0,0,!1);o.fansMedalColorEnd=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.fansMedalColorEnd=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.fansMedalColorBorder=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.fansMedalColorBorder=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.fansMedalColorName=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.fansMedalColorName=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.fansMedalColorLevel=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.fansMedalColorLevel=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.fansGuardLevel=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.fansGuardLevel=n.longs===String?"0":0;o.faceNft=0,o.faceNftNew=0,o.isSeniorMember=0,o.nftInteraction=null,o.fansGuardIcon="",o.fansHonorIcon=""}return i.mid!=null&&i.hasOwnProperty("mid")&&(typeof i.mid=="number"?o.mid=n.longs===String?String(i.mid):i.mid:o.mid=n.longs===String?r.Long.prototype.toString.call(i.mid):n.longs===Number?new r.LongBits(i.mid.low>>>0,i.mid.high>>>0).toNumber():i.mid),i.name!=null&&i.hasOwnProperty("name")&&(o.name=i.name),i.sex!=null&&i.hasOwnProperty("sex")&&(o.sex=i.sex),i.face!=null&&i.hasOwnProperty("face")&&(o.face=i.face),i.level!=null&&i.hasOwnProperty("level")&&(typeof i.level=="number"?o.level=n.longs===String?String(i.level):i.level:o.level=n.longs===String?r.Long.prototype.toString.call(i.level):n.longs===Number?new r.LongBits(i.level.low>>>0,i.level.high>>>0).toNumber():i.level),i.officialVerifyType!=null&&i.hasOwnProperty("officialVerifyType")&&(typeof i.officialVerifyType=="number"?o.officialVerifyType=n.longs===String?String(i.officialVerifyType):i.officialVerifyType:o.officialVerifyType=n.longs===String?r.Long.prototype.toString.call(i.officialVerifyType):n.longs===Number?new r.LongBits(i.officialVerifyType.low>>>0,i.officialVerifyType.high>>>0).toNumber():i.officialVerifyType),i.vipType!=null&&i.hasOwnProperty("vipType")&&(typeof i.vipType=="number"?o.vipType=n.longs===String?String(i.vipType):i.vipType:o.vipType=n.longs===String?r.Long.prototype.toString.call(i.vipType):n.longs===Number?new r.LongBits(i.vipType.low>>>0,i.vipType.high>>>0).toNumber():i.vipType),i.vipStatus!=null&&i.hasOwnProperty("vipStatus")&&(typeof i.vipStatus=="number"?o.vipStatus=n.longs===String?String(i.vipStatus):i.vipStatus:o.vipStatus=n.longs===String?r.Long.prototype.toString.call(i.vipStatus):n.longs===Number?new r.LongBits(i.vipStatus.low>>>0,i.vipStatus.high>>>0).toNumber():i.vipStatus),i.vipThemeType!=null&&i.hasOwnProperty("vipThemeType")&&(typeof i.vipThemeType=="number"?o.vipThemeType=n.longs===String?String(i.vipThemeType):i.vipThemeType:o.vipThemeType=n.longs===String?r.Long.prototype.toString.call(i.vipThemeType):n.longs===Number?new r.LongBits(i.vipThemeType.low>>>0,i.vipThemeType.high>>>0).toNumber():i.vipThemeType),i.vipLabelPath!=null&&i.hasOwnProperty("vipLabelPath")&&(o.vipLabelPath=i.vipLabelPath),i.garbPendantImage!=null&&i.hasOwnProperty("garbPendantImage")&&(o.garbPendantImage=i.garbPendantImage),i.garbCardImage!=null&&i.hasOwnProperty("garbCardImage")&&(o.garbCardImage=i.garbCardImage),i.garbCardImageWithFocus!=null&&i.hasOwnProperty("garbCardImageWithFocus")&&(o.garbCardImageWithFocus=i.garbCardImageWithFocus),i.garbCardJumpUrl!=null&&i.hasOwnProperty("garbCardJumpUrl")&&(o.garbCardJumpUrl=i.garbCardJumpUrl),i.garbCardNumber!=null&&i.hasOwnProperty("garbCardNumber")&&(o.garbCardNumber=i.garbCardNumber),i.garbCardFanColor!=null&&i.hasOwnProperty("garbCardFanColor")&&(o.garbCardFanColor=i.garbCardFanColor),i.garbCardIsFan!=null&&i.hasOwnProperty("garbCardIsFan")&&(o.garbCardIsFan=i.garbCardIsFan),i.fansMedalName!=null&&i.hasOwnProperty("fansMedalName")&&(o.fansMedalName=i.fansMedalName),i.fansMedalLevel!=null&&i.hasOwnProperty("fansMedalLevel")&&(typeof i.fansMedalLevel=="number"?o.fansMedalLevel=n.longs===String?String(i.fansMedalLevel):i.fansMedalLevel:o.fansMedalLevel=n.longs===String?r.Long.prototype.toString.call(i.fansMedalLevel):n.longs===Number?new r.LongBits(i.fansMedalLevel.low>>>0,i.fansMedalLevel.high>>>0).toNumber():i.fansMedalLevel),i.fansMedalColor!=null&&i.hasOwnProperty("fansMedalColor")&&(typeof i.fansMedalColor=="number"?o.fansMedalColor=n.longs===String?String(i.fansMedalColor):i.fansMedalColor:o.fansMedalColor=n.longs===String?r.Long.prototype.toString.call(i.fansMedalColor):n.longs===Number?new r.LongBits(i.fansMedalColor.low>>>0,i.fansMedalColor.high>>>0).toNumber():i.fansMedalColor),i.vipNicknameColor!=null&&i.hasOwnProperty("vipNicknameColor")&&(o.vipNicknameColor=i.vipNicknameColor),i.vipAvatarSubscript!=null&&i.hasOwnProperty("vipAvatarSubscript")&&(o.vipAvatarSubscript=i.vipAvatarSubscript),i.vipLabelText!=null&&i.hasOwnProperty("vipLabelText")&&(o.vipLabelText=i.vipLabelText),i.vipLabelTheme!=null&&i.hasOwnProperty("vipLabelTheme")&&(o.vipLabelTheme=i.vipLabelTheme),i.fansMedalColorEnd!=null&&i.hasOwnProperty("fansMedalColorEnd")&&(typeof i.fansMedalColorEnd=="number"?o.fansMedalColorEnd=n.longs===String?String(i.fansMedalColorEnd):i.fansMedalColorEnd:o.fansMedalColorEnd=n.longs===String?r.Long.prototype.toString.call(i.fansMedalColorEnd):n.longs===Number?new r.LongBits(i.fansMedalColorEnd.low>>>0,i.fansMedalColorEnd.high>>>0).toNumber():i.fansMedalColorEnd),i.fansMedalColorBorder!=null&&i.hasOwnProperty("fansMedalColorBorder")&&(typeof i.fansMedalColorBorder=="number"?o.fansMedalColorBorder=n.longs===String?String(i.fansMedalColorBorder):i.fansMedalColorBorder:o.fansMedalColorBorder=n.longs===String?r.Long.prototype.toString.call(i.fansMedalColorBorder):n.longs===Number?new r.LongBits(i.fansMedalColorBorder.low>>>0,i.fansMedalColorBorder.high>>>0).toNumber():i.fansMedalColorBorder),i.fansMedalColorName!=null&&i.hasOwnProperty("fansMedalColorName")&&(typeof i.fansMedalColorName=="number"?o.fansMedalColorName=n.longs===String?String(i.fansMedalColorName):i.fansMedalColorName:o.fansMedalColorName=n.longs===String?r.Long.prototype.toString.call(i.fansMedalColorName):n.longs===Number?new r.LongBits(i.fansMedalColorName.low>>>0,i.fansMedalColorName.high>>>0).toNumber():i.fansMedalColorName),i.fansMedalColorLevel!=null&&i.hasOwnProperty("fansMedalColorLevel")&&(typeof i.fansMedalColorLevel=="number"?o.fansMedalColorLevel=n.longs===String?String(i.fansMedalColorLevel):i.fansMedalColorLevel:o.fansMedalColorLevel=n.longs===String?r.Long.prototype.toString.call(i.fansMedalColorLevel):n.longs===Number?new r.LongBits(i.fansMedalColorLevel.low>>>0,i.fansMedalColorLevel.high>>>0).toNumber():i.fansMedalColorLevel),i.fansGuardLevel!=null&&i.hasOwnProperty("fansGuardLevel")&&(typeof i.fansGuardLevel=="number"?o.fansGuardLevel=n.longs===String?String(i.fansGuardLevel):i.fansGuardLevel:o.fansGuardLevel=n.longs===String?r.Long.prototype.toString.call(i.fansGuardLevel):n.longs===Number?new r.LongBits(i.fansGuardLevel.low>>>0,i.fansGuardLevel.high>>>0).toNumber():i.fansGuardLevel),i.faceNft!=null&&i.hasOwnProperty("faceNft")&&(o.faceNft=i.faceNft),i.faceNftNew!=null&&i.hasOwnProperty("faceNftNew")&&(o.faceNftNew=i.faceNftNew),i.isSeniorMember!=null&&i.hasOwnProperty("isSeniorMember")&&(o.isSeniorMember=i.isSeniorMember),i.nftInteraction!=null&&i.hasOwnProperty("nftInteraction")&&(o.nftInteraction=u.bilibili.main.community.reply.v1.Member.NftInteraction.toObject(i.nftInteraction,n)),i.fansGuardIcon!=null&&i.hasOwnProperty("fansGuardIcon")&&(o.fansGuardIcon=i.fansGuardIcon),i.fansHonorIcon!=null&&i.hasOwnProperty("fansHonorIcon")&&(o.fansHonorIcon=i.fansHonorIcon),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.community.reply.v1.Member"},l.NftInteraction=function(){function t(i){if(i)for(let n=Object.keys(i),o=0;o>>3){case 1:{y.itype=n.string();break}case 2:{y.metadataUrl=n.string();break}case 3:{y.nftId=n.string();break}case 4:{y.region=u.bilibili.main.community.reply.v1.Member.NftInteraction.Region.decode(n,n.uint32());break}default:n.skipType(s&7);break}}return y},t.fromObject=function(n){if(n instanceof u.bilibili.main.community.reply.v1.Member.NftInteraction)return n;let o=new u.bilibili.main.community.reply.v1.Member.NftInteraction;if(n.itype!=null&&(o.itype=String(n.itype)),n.metadataUrl!=null&&(o.metadataUrl=String(n.metadataUrl)),n.nftId!=null&&(o.nftId=String(n.nftId)),n.region!=null){if(typeof n.region!="object")throw TypeError(".bilibili.main.community.reply.v1.Member.NftInteraction.region: object expected");o.region=u.bilibili.main.community.reply.v1.Member.NftInteraction.Region.fromObject(n.region)}return o},t.toObject=function(n,o){o||(o={});let a={};return o.defaults&&(a.itype="",a.metadataUrl="",a.nftId="",a.region=null),n.itype!=null&&n.hasOwnProperty("itype")&&(a.itype=n.itype),n.metadataUrl!=null&&n.hasOwnProperty("metadataUrl")&&(a.metadataUrl=n.metadataUrl),n.nftId!=null&&n.hasOwnProperty("nftId")&&(a.nftId=n.nftId),n.region!=null&&n.hasOwnProperty("region")&&(a.region=u.bilibili.main.community.reply.v1.Member.NftInteraction.Region.toObject(n.region,o)),a},t.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},t.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/bilibili.main.community.reply.v1.Member.NftInteraction"},t.RegionType=function(){let i={},n=Object.create(i);return n[i[0]="DEFAULT"]=0,n[i[1]="MAINLAND"]=1,n[i[2]="GAT"]=2,n}(),t.ShowStatus=function(){let i={},n=Object.create(i);return n[i[0]="SHOWDEFAULT"]=0,n[i[1]="ZOOMINMAINLAND"]=1,n[i[2]="RAW"]=2,n}(),t.Region=function(){function i(n){if(n)for(let o=Object.keys(n),a=0;a>>3){case 1:{s.type=o.int32();break}case 2:{s.icon=o.string();break}case 3:{s.showStatus=o.int32();break}default:o.skipType(v&7);break}}return s},i.fromObject=function(o){if(o instanceof u.bilibili.main.community.reply.v1.Member.NftInteraction.Region)return o;let a=new u.bilibili.main.community.reply.v1.Member.NftInteraction.Region;switch(o.type){default:if(typeof o.type=="number"){a.type=o.type;break}break;case"DEFAULT":case 0:a.type=0;break;case"MAINLAND":case 1:a.type=1;break;case"GAT":case 2:a.type=2;break}switch(o.icon!=null&&(a.icon=String(o.icon)),o.showStatus){default:if(typeof o.showStatus=="number"){a.showStatus=o.showStatus;break}break;case"SHOWDEFAULT":case 0:a.showStatus=0;break;case"ZOOMINMAINLAND":case 1:a.showStatus=1;break;case"RAW":case 2:a.showStatus=2;break}return a},i.toObject=function(o,a){a||(a={});let y={};return a.defaults&&(y.type=a.enums===String?"DEFAULT":0,y.icon="",y.showStatus=a.enums===String?"SHOWDEFAULT":0),o.type!=null&&o.hasOwnProperty("type")&&(y.type=a.enums===String?u.bilibili.main.community.reply.v1.Member.NftInteraction.RegionType[o.type]===void 0?o.type:u.bilibili.main.community.reply.v1.Member.NftInteraction.RegionType[o.type]:o.type),o.icon!=null&&o.hasOwnProperty("icon")&&(y.icon=o.icon),o.showStatus!=null&&o.hasOwnProperty("showStatus")&&(y.showStatus=a.enums===String?u.bilibili.main.community.reply.v1.Member.NftInteraction.ShowStatus[o.showStatus]===void 0?o.showStatus:u.bilibili.main.community.reply.v1.Member.NftInteraction.ShowStatus[o.showStatus]:o.showStatus),y},i.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},i.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/bilibili.main.community.reply.v1.Member.NftInteraction.Region"},i}(),t}(),l}(),e.SearchItemType=function(){let l={},t=Object.create(l);return t[l[0]="DEFAULT_ITEM_TYPE"]=0,t[l[1]="GOODS"]=1,t[l[2]="VIDEO"]=2,t[l[3]="ARTICLE"]=3,t}(),e.SearchItemVideoSubType=function(){let l={},t=Object.create(l);return t[l[0]="UGC"]=0,t[l[1]="PGC"]=1,t}(),e.SearchItemPreHookReq=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.oid=i.int64();break}case 2:{a.type=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.community.reply.v1.SearchItemPreHookReq)return i;let n=new u.bilibili.main.community.reply.v1.SearchItemPreHookReq;return i.oid!=null&&(r.Long?(n.oid=r.Long.fromValue(i.oid)).unsigned=!1:typeof i.oid=="string"?n.oid=parseInt(i.oid,10):typeof i.oid=="number"?n.oid=i.oid:typeof i.oid=="object"&&(n.oid=new r.LongBits(i.oid.low>>>0,i.oid.high>>>0).toNumber())),i.type!=null&&(r.Long?(n.type=r.Long.fromValue(i.type)).unsigned=!1:typeof i.type=="string"?n.type=parseInt(i.type,10):typeof i.type=="number"?n.type=i.type:typeof i.type=="object"&&(n.type=new r.LongBits(i.type.low>>>0,i.type.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.oid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.oid=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.type=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.type=n.longs===String?"0":0}return i.oid!=null&&i.hasOwnProperty("oid")&&(typeof i.oid=="number"?o.oid=n.longs===String?String(i.oid):i.oid:o.oid=n.longs===String?r.Long.prototype.toString.call(i.oid):n.longs===Number?new r.LongBits(i.oid.low>>>0,i.oid.high>>>0).toNumber():i.oid),i.type!=null&&i.hasOwnProperty("type")&&(typeof i.type=="number"?o.type=n.longs===String?String(i.type):i.type:o.type=n.longs===String?r.Long.prototype.toString.call(i.type):n.longs===Number?new r.LongBits(i.type.low>>>0,i.type.high>>>0).toNumber():i.type),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.community.reply.v1.SearchItemPreHookReq"},l}(),e.SearchItemPreHookReply=function(){function l(t){if(this.orderedType=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.placeholderText=i.string();break}case 2:{a.backgroundText=i.string();break}case 3:{if(a.orderedType&&a.orderedType.length||(a.orderedType=[]),(y&7)===2){let s=i.uint32()+i.pos;for(;i.pos>>3){case 1:{a.cursor=u.bilibili.main.community.reply.v1.SearchItemCursorReq.decode(i,i.uint32());break}case 2:{a.oid=i.int64();break}case 3:{a.type=i.int64();break}case 4:{a.keyword=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.community.reply.v1.SearchItemReq)return i;let n=new u.bilibili.main.community.reply.v1.SearchItemReq;if(i.cursor!=null){if(typeof i.cursor!="object")throw TypeError(".bilibili.main.community.reply.v1.SearchItemReq.cursor: object expected");n.cursor=u.bilibili.main.community.reply.v1.SearchItemCursorReq.fromObject(i.cursor)}return i.oid!=null&&(r.Long?(n.oid=r.Long.fromValue(i.oid)).unsigned=!1:typeof i.oid=="string"?n.oid=parseInt(i.oid,10):typeof i.oid=="number"?n.oid=i.oid:typeof i.oid=="object"&&(n.oid=new r.LongBits(i.oid.low>>>0,i.oid.high>>>0).toNumber())),i.type!=null&&(r.Long?(n.type=r.Long.fromValue(i.type)).unsigned=!1:typeof i.type=="string"?n.type=parseInt(i.type,10):typeof i.type=="number"?n.type=i.type:typeof i.type=="object"&&(n.type=new r.LongBits(i.type.low>>>0,i.type.high>>>0).toNumber())),i.keyword!=null&&(n.keyword=String(i.keyword)),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(o.cursor=null,r.Long){let a=new r.Long(0,0,!1);o.oid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.oid=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.type=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.type=n.longs===String?"0":0;o.keyword=""}return i.cursor!=null&&i.hasOwnProperty("cursor")&&(o.cursor=u.bilibili.main.community.reply.v1.SearchItemCursorReq.toObject(i.cursor,n)),i.oid!=null&&i.hasOwnProperty("oid")&&(typeof i.oid=="number"?o.oid=n.longs===String?String(i.oid):i.oid:o.oid=n.longs===String?r.Long.prototype.toString.call(i.oid):n.longs===Number?new r.LongBits(i.oid.low>>>0,i.oid.high>>>0).toNumber():i.oid),i.type!=null&&i.hasOwnProperty("type")&&(typeof i.type=="number"?o.type=n.longs===String?String(i.type):i.type:o.type=n.longs===String?r.Long.prototype.toString.call(i.type):n.longs===Number?new r.LongBits(i.type.low>>>0,i.type.high>>>0).toNumber():i.type),i.keyword!=null&&i.hasOwnProperty("keyword")&&(o.keyword=i.keyword),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.community.reply.v1.SearchItemReq"},l}(),e.SearchItemReplyExtraInfo=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.eventId=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.community.reply.v1.SearchItemReplyExtraInfo)return i;let n=new u.bilibili.main.community.reply.v1.SearchItemReplyExtraInfo;return i.eventId!=null&&(n.eventId=String(i.eventId)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.eventId=""),i.eventId!=null&&i.hasOwnProperty("eventId")&&(o.eventId=i.eventId),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.community.reply.v1.SearchItemReplyExtraInfo"},l}(),e.SearchItemReply=function(){function l(t){if(this.items=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.cursor=u.bilibili.main.community.reply.v1.SearchItemCursorReply.decode(i,i.uint32());break}case 2:{a.items&&a.items.length||(a.items=[]),a.items.push(u.bilibili.main.community.reply.v1.SearchItem.decode(i,i.uint32()));break}case 3:{a.extra=u.bilibili.main.community.reply.v1.SearchItemReplyExtraInfo.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.community.reply.v1.SearchItemReply)return i;let n=new u.bilibili.main.community.reply.v1.SearchItemReply;if(i.cursor!=null){if(typeof i.cursor!="object")throw TypeError(".bilibili.main.community.reply.v1.SearchItemReply.cursor: object expected");n.cursor=u.bilibili.main.community.reply.v1.SearchItemCursorReply.fromObject(i.cursor)}if(i.items){if(!Array.isArray(i.items))throw TypeError(".bilibili.main.community.reply.v1.SearchItemReply.items: array expected");n.items=[];for(let o=0;o>>3){case 1:{a.next=i.int64();break}case 2:{a.itemType=i.int32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.community.reply.v1.SearchItemCursorReq)return i;let n=new u.bilibili.main.community.reply.v1.SearchItemCursorReq;switch(i.next!=null&&(r.Long?(n.next=r.Long.fromValue(i.next)).unsigned=!1:typeof i.next=="string"?n.next=parseInt(i.next,10):typeof i.next=="number"?n.next=i.next:typeof i.next=="object"&&(n.next=new r.LongBits(i.next.low>>>0,i.next.high>>>0).toNumber())),i.itemType){default:if(typeof i.itemType=="number"){n.itemType=i.itemType;break}break;case"DEFAULT_ITEM_TYPE":case 0:n.itemType=0;break;case"GOODS":case 1:n.itemType=1;break;case"VIDEO":case 2:n.itemType=2;break;case"ARTICLE":case 3:n.itemType=3;break}return n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.next=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.next=n.longs===String?"0":0;o.itemType=n.enums===String?"DEFAULT_ITEM_TYPE":0}return i.next!=null&&i.hasOwnProperty("next")&&(typeof i.next=="number"?o.next=n.longs===String?String(i.next):i.next:o.next=n.longs===String?r.Long.prototype.toString.call(i.next):n.longs===Number?new r.LongBits(i.next.low>>>0,i.next.high>>>0).toNumber():i.next),i.itemType!=null&&i.hasOwnProperty("itemType")&&(o.itemType=n.enums===String?u.bilibili.main.community.reply.v1.SearchItemType[i.itemType]===void 0?i.itemType:u.bilibili.main.community.reply.v1.SearchItemType[i.itemType]:i.itemType),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.community.reply.v1.SearchItemCursorReq"},l}(),e.SearchItemCursorReply=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.hasNext=i.bool();break}case 2:{a.next=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.community.reply.v1.SearchItemCursorReply)return i;let n=new u.bilibili.main.community.reply.v1.SearchItemCursorReply;return i.hasNext!=null&&(n.hasNext=!!i.hasNext),i.next!=null&&(r.Long?(n.next=r.Long.fromValue(i.next)).unsigned=!1:typeof i.next=="string"?n.next=parseInt(i.next,10):typeof i.next=="number"?n.next=i.next:typeof i.next=="object"&&(n.next=new r.LongBits(i.next.low>>>0,i.next.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults)if(o.hasNext=!1,r.Long){let a=new r.Long(0,0,!1);o.next=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.next=n.longs===String?"0":0;return i.hasNext!=null&&i.hasOwnProperty("hasNext")&&(o.hasNext=i.hasNext),i.next!=null&&i.hasOwnProperty("next")&&(typeof i.next=="number"?o.next=n.longs===String?String(i.next):i.next:o.next=n.longs===String?r.Long.prototype.toString.call(i.next):n.longs===Number?new r.LongBits(i.next.low>>>0,i.next.high>>>0).toNumber():i.next),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.community.reply.v1.SearchItemCursorReply"},l}(),e.SearchItem=function(){function l(i){if(i)for(let n=Object.keys(i),o=0;o>>3){case 1:{y.url=n.string();break}case 2:{y.goods=u.bilibili.main.community.reply.v1.GoodsSearchItem.decode(n,n.uint32());break}case 3:{y.video=u.bilibili.main.community.reply.v1.VideoSearchItem.decode(n,n.uint32());break}case 4:{y.article=u.bilibili.main.community.reply.v1.ArticleSearchItem.decode(n,n.uint32());break}default:n.skipType(s&7);break}}return y},l.fromObject=function(n){if(n instanceof u.bilibili.main.community.reply.v1.SearchItem)return n;let o=new u.bilibili.main.community.reply.v1.SearchItem;if(n.url!=null&&(o.url=String(n.url)),n.goods!=null){if(typeof n.goods!="object")throw TypeError(".bilibili.main.community.reply.v1.SearchItem.goods: object expected");o.goods=u.bilibili.main.community.reply.v1.GoodsSearchItem.fromObject(n.goods)}if(n.video!=null){if(typeof n.video!="object")throw TypeError(".bilibili.main.community.reply.v1.SearchItem.video: object expected");o.video=u.bilibili.main.community.reply.v1.VideoSearchItem.fromObject(n.video)}if(n.article!=null){if(typeof n.article!="object")throw TypeError(".bilibili.main.community.reply.v1.SearchItem.article: object expected");o.article=u.bilibili.main.community.reply.v1.ArticleSearchItem.fromObject(n.article)}return o},l.toObject=function(n,o){o||(o={});let a={};return o.defaults&&(a.url=""),n.url!=null&&n.hasOwnProperty("url")&&(a.url=n.url),n.goods!=null&&n.hasOwnProperty("goods")&&(a.goods=u.bilibili.main.community.reply.v1.GoodsSearchItem.toObject(n.goods,o),o.oneofs&&(a.item="goods")),n.video!=null&&n.hasOwnProperty("video")&&(a.video=u.bilibili.main.community.reply.v1.VideoSearchItem.toObject(n.video,o),o.oneofs&&(a.item="video")),n.article!=null&&n.hasOwnProperty("article")&&(a.article=u.bilibili.main.community.reply.v1.ArticleSearchItem.toObject(n.article,o),o.oneofs&&(a.item="article")),a},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/bilibili.main.community.reply.v1.SearchItem"},l}(),e.GoodsSearchItem=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.id=i.int64();break}case 2:{a.name=i.string();break}case 3:{a.price=i.string();break}case 4:{a.income=i.string();break}case 5:{a.img=i.string();break}case 6:{a.label=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.community.reply.v1.GoodsSearchItem)return i;let n=new u.bilibili.main.community.reply.v1.GoodsSearchItem;return i.id!=null&&(r.Long?(n.id=r.Long.fromValue(i.id)).unsigned=!1:typeof i.id=="string"?n.id=parseInt(i.id,10):typeof i.id=="number"?n.id=i.id:typeof i.id=="object"&&(n.id=new r.LongBits(i.id.low>>>0,i.id.high>>>0).toNumber())),i.name!=null&&(n.name=String(i.name)),i.price!=null&&(n.price=String(i.price)),i.income!=null&&(n.income=String(i.income)),i.img!=null&&(n.img=String(i.img)),i.label!=null&&(n.label=String(i.label)),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.id=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.id=n.longs===String?"0":0;o.name="",o.price="",o.income="",o.img="",o.label=""}return i.id!=null&&i.hasOwnProperty("id")&&(typeof i.id=="number"?o.id=n.longs===String?String(i.id):i.id:o.id=n.longs===String?r.Long.prototype.toString.call(i.id):n.longs===Number?new r.LongBits(i.id.low>>>0,i.id.high>>>0).toNumber():i.id),i.name!=null&&i.hasOwnProperty("name")&&(o.name=i.name),i.price!=null&&i.hasOwnProperty("price")&&(o.price=i.price),i.income!=null&&i.hasOwnProperty("income")&&(o.income=i.income),i.img!=null&&i.hasOwnProperty("img")&&(o.img=i.img),i.label!=null&&i.hasOwnProperty("label")&&(o.label=i.label),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.community.reply.v1.GoodsSearchItem"},l}(),e.VideoSearchItem=function(){function l(i){if(i)for(let n=Object.keys(i),o=0;o>>3){case 1:{y.type=n.int32();break}case 2:{y.ugc=u.bilibili.main.community.reply.v1.UGCVideoSearchItem.decode(n,n.uint32());break}case 3:{y.pgc=u.bilibili.main.community.reply.v1.PGCVideoSearchItem.decode(n,n.uint32());break}default:n.skipType(s&7);break}}return y},l.fromObject=function(n){if(n instanceof u.bilibili.main.community.reply.v1.VideoSearchItem)return n;let o=new u.bilibili.main.community.reply.v1.VideoSearchItem;switch(n.type){default:if(typeof n.type=="number"){o.type=n.type;break}break;case"UGC":case 0:o.type=0;break;case"PGC":case 1:o.type=1;break}if(n.ugc!=null){if(typeof n.ugc!="object")throw TypeError(".bilibili.main.community.reply.v1.VideoSearchItem.ugc: object expected");o.ugc=u.bilibili.main.community.reply.v1.UGCVideoSearchItem.fromObject(n.ugc)}if(n.pgc!=null){if(typeof n.pgc!="object")throw TypeError(".bilibili.main.community.reply.v1.VideoSearchItem.pgc: object expected");o.pgc=u.bilibili.main.community.reply.v1.PGCVideoSearchItem.fromObject(n.pgc)}return o},l.toObject=function(n,o){o||(o={});let a={};return o.defaults&&(a.type=o.enums===String?"UGC":0),n.type!=null&&n.hasOwnProperty("type")&&(a.type=o.enums===String?u.bilibili.main.community.reply.v1.SearchItemVideoSubType[n.type]===void 0?n.type:u.bilibili.main.community.reply.v1.SearchItemVideoSubType[n.type]:n.type),n.ugc!=null&&n.hasOwnProperty("ugc")&&(a.ugc=u.bilibili.main.community.reply.v1.UGCVideoSearchItem.toObject(n.ugc,o),o.oneofs&&(a.videoItem="ugc")),n.pgc!=null&&n.hasOwnProperty("pgc")&&(a.pgc=u.bilibili.main.community.reply.v1.PGCVideoSearchItem.toObject(n.pgc,o),o.oneofs&&(a.videoItem="pgc")),a},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/bilibili.main.community.reply.v1.VideoSearchItem"},l}(),e.UGCVideoSearchItem=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.title=i.string();break}case 2:{a.upNickname=i.string();break}case 3:{a.duration=i.int64();break}case 4:{a.cover=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.community.reply.v1.UGCVideoSearchItem)return i;let n=new u.bilibili.main.community.reply.v1.UGCVideoSearchItem;return i.title!=null&&(n.title=String(i.title)),i.upNickname!=null&&(n.upNickname=String(i.upNickname)),i.duration!=null&&(r.Long?(n.duration=r.Long.fromValue(i.duration)).unsigned=!1:typeof i.duration=="string"?n.duration=parseInt(i.duration,10):typeof i.duration=="number"?n.duration=i.duration:typeof i.duration=="object"&&(n.duration=new r.LongBits(i.duration.low>>>0,i.duration.high>>>0).toNumber())),i.cover!=null&&(n.cover=String(i.cover)),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(o.title="",o.upNickname="",r.Long){let a=new r.Long(0,0,!1);o.duration=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.duration=n.longs===String?"0":0;o.cover=""}return i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.upNickname!=null&&i.hasOwnProperty("upNickname")&&(o.upNickname=i.upNickname),i.duration!=null&&i.hasOwnProperty("duration")&&(typeof i.duration=="number"?o.duration=n.longs===String?String(i.duration):i.duration:o.duration=n.longs===String?r.Long.prototype.toString.call(i.duration):n.longs===Number?new r.LongBits(i.duration.low>>>0,i.duration.high>>>0).toNumber():i.duration),i.cover!=null&&i.hasOwnProperty("cover")&&(o.cover=i.cover),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.community.reply.v1.UGCVideoSearchItem"},l}(),e.PGCVideoSearchItem=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.title=i.string();break}case 2:{a.category=i.string();break}case 3:{a.cover=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.community.reply.v1.PGCVideoSearchItem)return i;let n=new u.bilibili.main.community.reply.v1.PGCVideoSearchItem;return i.title!=null&&(n.title=String(i.title)),i.category!=null&&(n.category=String(i.category)),i.cover!=null&&(n.cover=String(i.cover)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.title="",o.category="",o.cover=""),i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.category!=null&&i.hasOwnProperty("category")&&(o.category=i.category),i.cover!=null&&i.hasOwnProperty("cover")&&(o.cover=i.cover),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.community.reply.v1.PGCVideoSearchItem"},l}(),e.ArticleSearchItem=function(){function l(t){if(this.covers=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.title=i.string();break}case 2:{a.upNickname=i.string();break}case 3:{a.covers&&a.covers.length||(a.covers=[]),a.covers.push(i.string());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.community.reply.v1.ArticleSearchItem)return i;let n=new u.bilibili.main.community.reply.v1.ArticleSearchItem;if(i.title!=null&&(n.title=String(i.title)),i.upNickname!=null&&(n.upNickname=String(i.upNickname)),i.covers){if(!Array.isArray(i.covers))throw TypeError(".bilibili.main.community.reply.v1.ArticleSearchItem.covers: array expected");n.covers=[];for(let o=0;o>>3){case 1:{a.content=i.string();break}case 2:{a.isHighlight=i.bool();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.community.reply.v1.OperationTitle)return i;let n=new u.bilibili.main.community.reply.v1.OperationTitle;return i.content!=null&&(n.content=String(i.content)),i.isHighlight!=null&&(n.isHighlight=!!i.isHighlight),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.content="",o.isHighlight=!1),i.content!=null&&i.hasOwnProperty("content")&&(o.content=i.content),i.isHighlight!=null&&i.hasOwnProperty("isHighlight")&&(o.isHighlight=i.isHighlight),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.community.reply.v1.OperationTitle"},l}(),e.Operation=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.type=i.int32();break}case 2:{a.id=i.int64();break}case 3:{a.title=u.bilibili.main.community.reply.v1.OperationTitle.decode(i,i.uint32());break}case 4:{a.subtitle=u.bilibili.main.community.reply.v1.OperationTitle.decode(i,i.uint32());break}case 5:{a.link=i.string();break}case 6:{a.reportExtra=i.string();break}case 7:{a.icon=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.community.reply.v1.Operation)return i;let n=new u.bilibili.main.community.reply.v1.Operation;switch(i.type){default:if(typeof i.type=="number"){n.type=i.type;break}break;case"UNKNOWN":case 0:n.type=0;break;case"NOTE":case 1:n.type=1;break;case"TOPIC":case 2:n.type=2;break;case"NOTICE":case 3:n.type=3;break}if(i.id!=null&&(r.Long?(n.id=r.Long.fromValue(i.id)).unsigned=!1:typeof i.id=="string"?n.id=parseInt(i.id,10):typeof i.id=="number"?n.id=i.id:typeof i.id=="object"&&(n.id=new r.LongBits(i.id.low>>>0,i.id.high>>>0).toNumber())),i.title!=null){if(typeof i.title!="object")throw TypeError(".bilibili.main.community.reply.v1.Operation.title: object expected");n.title=u.bilibili.main.community.reply.v1.OperationTitle.fromObject(i.title)}if(i.subtitle!=null){if(typeof i.subtitle!="object")throw TypeError(".bilibili.main.community.reply.v1.Operation.subtitle: object expected");n.subtitle=u.bilibili.main.community.reply.v1.OperationTitle.fromObject(i.subtitle)}return i.link!=null&&(n.link=String(i.link)),i.reportExtra!=null&&(n.reportExtra=String(i.reportExtra)),i.icon!=null&&(n.icon=String(i.icon)),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(o.type=n.enums===String?"UNKNOWN":0,r.Long){let a=new r.Long(0,0,!1);o.id=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.id=n.longs===String?"0":0;o.title=null,o.subtitle=null,o.link="",o.reportExtra="",o.icon=""}return i.type!=null&&i.hasOwnProperty("type")&&(o.type=n.enums===String?u.bilibili.main.community.reply.v1.Operation.Type[i.type]===void 0?i.type:u.bilibili.main.community.reply.v1.Operation.Type[i.type]:i.type),i.id!=null&&i.hasOwnProperty("id")&&(typeof i.id=="number"?o.id=n.longs===String?String(i.id):i.id:o.id=n.longs===String?r.Long.prototype.toString.call(i.id):n.longs===Number?new r.LongBits(i.id.low>>>0,i.id.high>>>0).toNumber():i.id),i.title!=null&&i.hasOwnProperty("title")&&(o.title=u.bilibili.main.community.reply.v1.OperationTitle.toObject(i.title,n)),i.subtitle!=null&&i.hasOwnProperty("subtitle")&&(o.subtitle=u.bilibili.main.community.reply.v1.OperationTitle.toObject(i.subtitle,n)),i.link!=null&&i.hasOwnProperty("link")&&(o.link=i.link),i.reportExtra!=null&&i.hasOwnProperty("reportExtra")&&(o.reportExtra=i.reportExtra),i.icon!=null&&i.hasOwnProperty("icon")&&(o.icon=i.icon),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.community.reply.v1.Operation"},l.Type=function(){let t={},i=Object.create(t);return i[t[0]="UNKNOWN"]=0,i[t[1]="NOTE"]=1,i[t[2]="TOPIC"]=2,i[t[3]="NOTICE"]=3,i}(),l}(),e.OperationV2=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.type=i.int32();break}case 2:{a.prefixText=i.string();break}case 3:{a.icon=u.bilibili.main.community.reply.v1.OperationV2.Icon.decode(i,i.uint32());break}case 4:{a.title=i.string();break}case 5:{a.link=i.string();break}case 6:{a.reportExtra=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.community.reply.v1.OperationV2)return i;let n=new u.bilibili.main.community.reply.v1.OperationV2;switch(i.type){default:if(typeof i.type=="number"){n.type=i.type;break}break;case"UNKNOWN":case 0:n.type=0;break;case"NOTE":case 1:n.type=1;break;case"TOPIC":case 2:n.type=2;break;case"SEARCH":case 4:n.type=4;break}if(i.prefixText!=null&&(n.prefixText=String(i.prefixText)),i.icon!=null){if(typeof i.icon!="object")throw TypeError(".bilibili.main.community.reply.v1.OperationV2.icon: object expected");n.icon=u.bilibili.main.community.reply.v1.OperationV2.Icon.fromObject(i.icon)}return i.title!=null&&(n.title=String(i.title)),i.link!=null&&(n.link=String(i.link)),i.reportExtra!=null&&(n.reportExtra=String(i.reportExtra)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.type=n.enums===String?"UNKNOWN":0,o.prefixText="",o.icon=null,o.title="",o.link="",o.reportExtra=""),i.type!=null&&i.hasOwnProperty("type")&&(o.type=n.enums===String?u.bilibili.main.community.reply.v1.OperationV2.Type[i.type]===void 0?i.type:u.bilibili.main.community.reply.v1.OperationV2.Type[i.type]:i.type),i.prefixText!=null&&i.hasOwnProperty("prefixText")&&(o.prefixText=i.prefixText),i.icon!=null&&i.hasOwnProperty("icon")&&(o.icon=u.bilibili.main.community.reply.v1.OperationV2.Icon.toObject(i.icon,n)),i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.link!=null&&i.hasOwnProperty("link")&&(o.link=i.link),i.reportExtra!=null&&i.hasOwnProperty("reportExtra")&&(o.reportExtra=i.reportExtra),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.community.reply.v1.OperationV2"},l.Type=function(){let t={},i=Object.create(t);return i[t[0]="UNKNOWN"]=0,i[t[1]="NOTE"]=1,i[t[2]="TOPIC"]=2,i[t[4]="SEARCH"]=4,i}(),l.Icon=function(){function t(i){if(i)for(let n=Object.keys(i),o=0;o>>3){case 1:{y.position=n.int32();break}case 2:{y.url=n.string();break}default:n.skipType(s&7);break}}return y},t.fromObject=function(n){if(n instanceof u.bilibili.main.community.reply.v1.OperationV2.Icon)return n;let o=new u.bilibili.main.community.reply.v1.OperationV2.Icon;switch(n.position){default:if(typeof n.position=="number"){o.position=n.position;break}break;case"PREFIX":case 0:o.position=0;break;case"SUFFIX":case 1:o.position=1;break}return n.url!=null&&(o.url=String(n.url)),o},t.toObject=function(n,o){o||(o={});let a={};return o.defaults&&(a.position=o.enums===String?"PREFIX":0,a.url=""),n.position!=null&&n.hasOwnProperty("position")&&(a.position=o.enums===String?u.bilibili.main.community.reply.v1.OperationV2.Icon.Position[n.position]===void 0?n.position:u.bilibili.main.community.reply.v1.OperationV2.Icon.Position[n.position]:n.position),n.url!=null&&n.hasOwnProperty("url")&&(a.url=n.url),a},t.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},t.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/bilibili.main.community.reply.v1.OperationV2.Icon"},t.Position=function(){let i={},n=Object.create(i);return n[i[0]="PREFIX"]=0,n[i[1]="SUFFIX"]=1,n}(),t}(),l}(),e.VoteCard=function(){function l(t){if(this.options=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.voteId=i.int64();break}case 2:{a.title=i.string();break}case 3:{a.count=i.int64();break}case 4:{a.options&&a.options.length||(a.options=[]),a.options.push(u.bilibili.main.community.reply.v1.VoteCard.Option.decode(i,i.uint32()));break}case 5:{a.myVoteOption=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.community.reply.v1.VoteCard)return i;let n=new u.bilibili.main.community.reply.v1.VoteCard;if(i.voteId!=null&&(r.Long?(n.voteId=r.Long.fromValue(i.voteId)).unsigned=!1:typeof i.voteId=="string"?n.voteId=parseInt(i.voteId,10):typeof i.voteId=="number"?n.voteId=i.voteId:typeof i.voteId=="object"&&(n.voteId=new r.LongBits(i.voteId.low>>>0,i.voteId.high>>>0).toNumber())),i.title!=null&&(n.title=String(i.title)),i.count!=null&&(r.Long?(n.count=r.Long.fromValue(i.count)).unsigned=!1:typeof i.count=="string"?n.count=parseInt(i.count,10):typeof i.count=="number"?n.count=i.count:typeof i.count=="object"&&(n.count=new r.LongBits(i.count.low>>>0,i.count.high>>>0).toNumber())),i.options){if(!Array.isArray(i.options))throw TypeError(".bilibili.main.community.reply.v1.VoteCard.options: array expected");n.options=[];for(let o=0;o>>0,i.myVoteOption.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if((n.arrays||n.defaults)&&(o.options=[]),n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.voteId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.voteId=n.longs===String?"0":0;if(o.title="",r.Long){let a=new r.Long(0,0,!1);o.count=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.count=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.myVoteOption=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.myVoteOption=n.longs===String?"0":0}if(i.voteId!=null&&i.hasOwnProperty("voteId")&&(typeof i.voteId=="number"?o.voteId=n.longs===String?String(i.voteId):i.voteId:o.voteId=n.longs===String?r.Long.prototype.toString.call(i.voteId):n.longs===Number?new r.LongBits(i.voteId.low>>>0,i.voteId.high>>>0).toNumber():i.voteId),i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.count!=null&&i.hasOwnProperty("count")&&(typeof i.count=="number"?o.count=n.longs===String?String(i.count):i.count:o.count=n.longs===String?r.Long.prototype.toString.call(i.count):n.longs===Number?new r.LongBits(i.count.low>>>0,i.count.high>>>0).toNumber():i.count),i.options&&i.options.length){o.options=[];for(let a=0;a>>0,i.myVoteOption.high>>>0).toNumber():i.myVoteOption),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.community.reply.v1.VoteCard"},l.Option=function(){function t(i){if(i)for(let n=Object.keys(i),o=0;o>>3){case 1:{y.idx=n.int64();break}case 2:{y.desc=n.string();break}case 3:{y.count=n.int64();break}default:n.skipType(s&7);break}}return y},t.fromObject=function(n){if(n instanceof u.bilibili.main.community.reply.v1.VoteCard.Option)return n;let o=new u.bilibili.main.community.reply.v1.VoteCard.Option;return n.idx!=null&&(r.Long?(o.idx=r.Long.fromValue(n.idx)).unsigned=!1:typeof n.idx=="string"?o.idx=parseInt(n.idx,10):typeof n.idx=="number"?o.idx=n.idx:typeof n.idx=="object"&&(o.idx=new r.LongBits(n.idx.low>>>0,n.idx.high>>>0).toNumber())),n.desc!=null&&(o.desc=String(n.desc)),n.count!=null&&(r.Long?(o.count=r.Long.fromValue(n.count)).unsigned=!1:typeof n.count=="string"?o.count=parseInt(n.count,10):typeof n.count=="number"?o.count=n.count:typeof n.count=="object"&&(o.count=new r.LongBits(n.count.low>>>0,n.count.high>>>0).toNumber())),o},t.toObject=function(n,o){o||(o={});let a={};if(o.defaults){if(r.Long){let y=new r.Long(0,0,!1);a.idx=o.longs===String?y.toString():o.longs===Number?y.toNumber():y}else a.idx=o.longs===String?"0":0;if(a.desc="",r.Long){let y=new r.Long(0,0,!1);a.count=o.longs===String?y.toString():o.longs===Number?y.toNumber():y}else a.count=o.longs===String?"0":0}return n.idx!=null&&n.hasOwnProperty("idx")&&(typeof n.idx=="number"?a.idx=o.longs===String?String(n.idx):n.idx:a.idx=o.longs===String?r.Long.prototype.toString.call(n.idx):o.longs===Number?new r.LongBits(n.idx.low>>>0,n.idx.high>>>0).toNumber():n.idx),n.desc!=null&&n.hasOwnProperty("desc")&&(a.desc=n.desc),n.count!=null&&n.hasOwnProperty("count")&&(typeof n.count=="number"?a.count=o.longs===String?String(n.count):n.count:a.count=o.longs===String?r.Long.prototype.toString.call(n.count):o.longs===Number?new r.LongBits(n.count.low>>>0,n.count.high>>>0).toNumber():n.count),a},t.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},t.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/bilibili.main.community.reply.v1.VoteCard.Option"},t}(),l}(),e.ESportsGradeCard=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.title=i.string();break}case 2:{a.description=i.string();break}case 3:{a.image=i.string();break}case 4:{a.link=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.community.reply.v1.ESportsGradeCard)return i;let n=new u.bilibili.main.community.reply.v1.ESportsGradeCard;return i.title!=null&&(n.title=String(i.title)),i.description!=null&&(n.description=String(i.description)),i.image!=null&&(n.image=String(i.image)),i.link!=null&&(n.link=String(i.link)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.title="",o.description="",o.image="",o.link=""),i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.description!=null&&i.hasOwnProperty("description")&&(o.description=i.description),i.image!=null&&i.hasOwnProperty("image")&&(o.image=i.image),i.link!=null&&i.hasOwnProperty("link")&&(o.link=i.link),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.community.reply.v1.ESportsGradeCard"},l}(),e.AtSearchReq=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.mid=i.int64();break}case 2:{a.keyword=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.community.reply.v1.AtSearchReq)return i;let n=new u.bilibili.main.community.reply.v1.AtSearchReq;return i.mid!=null&&(r.Long?(n.mid=r.Long.fromValue(i.mid)).unsigned=!1:typeof i.mid=="string"?n.mid=parseInt(i.mid,10):typeof i.mid=="number"?n.mid=i.mid:typeof i.mid=="object"&&(n.mid=new r.LongBits(i.mid.low>>>0,i.mid.high>>>0).toNumber())),i.keyword!=null&&(n.keyword=String(i.keyword)),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.mid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.mid=n.longs===String?"0":0;o.keyword=""}return i.mid!=null&&i.hasOwnProperty("mid")&&(typeof i.mid=="number"?o.mid=n.longs===String?String(i.mid):i.mid:o.mid=n.longs===String?r.Long.prototype.toString.call(i.mid):n.longs===Number?new r.LongBits(i.mid.low>>>0,i.mid.high>>>0).toNumber():i.mid),i.keyword!=null&&i.hasOwnProperty("keyword")&&(o.keyword=i.keyword),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.community.reply.v1.AtSearchReq"},l}(),e.AtItem=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.mid=i.int64();break}case 2:{a.name=i.string();break}case 3:{a.face=i.string();break}case 4:{a.fans=i.int32();break}case 5:{a.officialVerifyType=i.int32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.community.reply.v1.AtItem)return i;let n=new u.bilibili.main.community.reply.v1.AtItem;return i.mid!=null&&(r.Long?(n.mid=r.Long.fromValue(i.mid)).unsigned=!1:typeof i.mid=="string"?n.mid=parseInt(i.mid,10):typeof i.mid=="number"?n.mid=i.mid:typeof i.mid=="object"&&(n.mid=new r.LongBits(i.mid.low>>>0,i.mid.high>>>0).toNumber())),i.name!=null&&(n.name=String(i.name)),i.face!=null&&(n.face=String(i.face)),i.fans!=null&&(n.fans=i.fans|0),i.officialVerifyType!=null&&(n.officialVerifyType=i.officialVerifyType|0),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.mid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.mid=n.longs===String?"0":0;o.name="",o.face="",o.fans=0,o.officialVerifyType=0}return i.mid!=null&&i.hasOwnProperty("mid")&&(typeof i.mid=="number"?o.mid=n.longs===String?String(i.mid):i.mid:o.mid=n.longs===String?r.Long.prototype.toString.call(i.mid):n.longs===Number?new r.LongBits(i.mid.low>>>0,i.mid.high>>>0).toNumber():i.mid),i.name!=null&&i.hasOwnProperty("name")&&(o.name=i.name),i.face!=null&&i.hasOwnProperty("face")&&(o.face=i.face),i.fans!=null&&i.hasOwnProperty("fans")&&(o.fans=i.fans),i.officialVerifyType!=null&&i.hasOwnProperty("officialVerifyType")&&(o.officialVerifyType=i.officialVerifyType),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.community.reply.v1.AtItem"},l}(),e.AtGroup=function(){function l(t){if(this.items=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.groupType=i.int32();break}case 2:{a.groupName=i.string();break}case 3:{a.items&&a.items.length||(a.items=[]),a.items.push(u.bilibili.main.community.reply.v1.AtItem.decode(i,i.uint32()));break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.community.reply.v1.AtGroup)return i;let n=new u.bilibili.main.community.reply.v1.AtGroup;switch(i.groupType){default:if(typeof i.groupType=="number"){n.groupType=i.groupType;break}break;case"AT_GROUP_TYPE_DEFAULT":case 0:n.groupType=0;break;case"AT_GROUP_TYPE_RECENT":case 1:n.groupType=1;break;case"AT_GROUP_TYPE_FOLLOW":case 2:n.groupType=2;break;case"AT_GROUP_TYPE_FANS":case 3:n.groupType=3;break;case"AT_GROUP_TYPE_OTHERS":case 4:n.groupType=4;break}if(i.groupName!=null&&(n.groupName=String(i.groupName)),i.items){if(!Array.isArray(i.items))throw TypeError(".bilibili.main.community.reply.v1.AtGroup.items: array expected");n.items=[];for(let o=0;o>>3){case 1:{a.groups&&a.groups.length||(a.groups=[]),a.groups.push(u.bilibili.main.community.reply.v1.AtGroup.decode(i,i.uint32()));break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.community.reply.v1.AtSearchReply)return i;let n=new u.bilibili.main.community.reply.v1.AtSearchReply;if(i.groups){if(!Array.isArray(i.groups))throw TypeError(".bilibili.main.community.reply.v1.AtSearchReply.groups: array expected");n.groups=[];for(let o=0;o>>3){case 1:{a.rpid=i.int64();break}case 2:{a.scene=i.int32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.community.reply.v1.ReplyInfoReq)return i;let n=new u.bilibili.main.community.reply.v1.ReplyInfoReq;switch(i.rpid!=null&&(r.Long?(n.rpid=r.Long.fromValue(i.rpid)).unsigned=!1:typeof i.rpid=="string"?n.rpid=parseInt(i.rpid,10):typeof i.rpid=="number"?n.rpid=i.rpid:typeof i.rpid=="object"&&(n.rpid=new r.LongBits(i.rpid.low>>>0,i.rpid.high>>>0).toNumber())),i.scene){default:if(typeof i.scene=="number"){n.scene=i.scene;break}break;case"Insert":case 0:n.scene=0;break}return n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.rpid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.rpid=n.longs===String?"0":0;o.scene=n.enums===String?"Insert":0}return i.rpid!=null&&i.hasOwnProperty("rpid")&&(typeof i.rpid=="number"?o.rpid=n.longs===String?String(i.rpid):i.rpid:o.rpid=n.longs===String?r.Long.prototype.toString.call(i.rpid):n.longs===Number?new r.LongBits(i.rpid.low>>>0,i.rpid.high>>>0).toNumber():i.rpid),i.scene!=null&&i.hasOwnProperty("scene")&&(o.scene=n.enums===String?u.bilibili.main.community.reply.v1.ReplyInfoReq.ReplyInfoScene[i.scene]===void 0?i.scene:u.bilibili.main.community.reply.v1.ReplyInfoReq.ReplyInfoScene[i.scene]:i.scene),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.community.reply.v1.ReplyInfoReq"},l.ReplyInfoScene=function(){let t={},i=Object.create(t);return i[t[0]="Insert"]=0,i}(),l}(),e.ReplyInfoReply=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.reply=u.bilibili.main.community.reply.v1.ReplyInfo.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.community.reply.v1.ReplyInfoReply)return i;let n=new u.bilibili.main.community.reply.v1.ReplyInfoReply;if(i.reply!=null){if(typeof i.reply!="object")throw TypeError(".bilibili.main.community.reply.v1.ReplyInfoReply.reply: object expected");n.reply=u.bilibili.main.community.reply.v1.ReplyInfo.fromObject(i.reply)}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.reply=null),i.reply!=null&&i.hasOwnProperty("reply")&&(o.reply=u.bilibili.main.community.reply.v1.ReplyInfo.toObject(i.reply,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.community.reply.v1.ReplyInfoReply"},l}(),e.QoeInfo=function(){function l(t){if(this.scoreItems=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.id=i.int64();break}case 2:{a.type=i.int32();break}case 3:{a.style=i.int32();break}case 4:{a.title=i.string();break}case 5:{a.feedbackTitle=i.string();break}case 6:{a.scoreItems&&a.scoreItems.length||(a.scoreItems=[]),a.scoreItems.push(u.bilibili.main.community.reply.v1.QoeScoreItem.decode(i,i.uint32()));break}case 7:{a.displayRank=i.int64();break}case 8:{a.form=u.bilibili.main.community.reply.v1.Form.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.community.reply.v1.QoeInfo)return i;let n=new u.bilibili.main.community.reply.v1.QoeInfo;if(i.id!=null&&(r.Long?(n.id=r.Long.fromValue(i.id)).unsigned=!1:typeof i.id=="string"?n.id=parseInt(i.id,10):typeof i.id=="number"?n.id=i.id:typeof i.id=="object"&&(n.id=new r.LongBits(i.id.low>>>0,i.id.high>>>0).toNumber())),i.type!=null&&(n.type=i.type|0),i.style!=null&&(n.style=i.style|0),i.title!=null&&(n.title=String(i.title)),i.feedbackTitle!=null&&(n.feedbackTitle=String(i.feedbackTitle)),i.scoreItems){if(!Array.isArray(i.scoreItems))throw TypeError(".bilibili.main.community.reply.v1.QoeInfo.scoreItems: array expected");n.scoreItems=[];for(let o=0;o>>0,i.displayRank.high>>>0).toNumber())),i.form!=null){if(typeof i.form!="object")throw TypeError(".bilibili.main.community.reply.v1.QoeInfo.form: object expected");n.form=u.bilibili.main.community.reply.v1.Form.fromObject(i.form)}return n},l.toObject=function(i,n){n||(n={});let o={};if((n.arrays||n.defaults)&&(o.scoreItems=[]),n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.id=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.id=n.longs===String?"0":0;if(o.type=0,o.style=0,o.title="",o.feedbackTitle="",r.Long){let a=new r.Long(0,0,!1);o.displayRank=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.displayRank=n.longs===String?"0":0;o.form=null}if(i.id!=null&&i.hasOwnProperty("id")&&(typeof i.id=="number"?o.id=n.longs===String?String(i.id):i.id:o.id=n.longs===String?r.Long.prototype.toString.call(i.id):n.longs===Number?new r.LongBits(i.id.low>>>0,i.id.high>>>0).toNumber():i.id),i.type!=null&&i.hasOwnProperty("type")&&(o.type=i.type),i.style!=null&&i.hasOwnProperty("style")&&(o.style=i.style),i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.feedbackTitle!=null&&i.hasOwnProperty("feedbackTitle")&&(o.feedbackTitle=i.feedbackTitle),i.scoreItems&&i.scoreItems.length){o.scoreItems=[];for(let a=0;a>>0,i.displayRank.high>>>0).toNumber():i.displayRank),i.form!=null&&i.hasOwnProperty("form")&&(o.form=u.bilibili.main.community.reply.v1.Form.toObject(i.form,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.community.reply.v1.QoeInfo"},l}(),e.Form=function(){function l(t){if(this.options=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.type=i.int32();break}case 2:{a.options&&a.options.length||(a.options=[]),a.options.push(u.bilibili.main.community.reply.v1.QoeOption.decode(i,i.uint32()));break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.community.reply.v1.Form)return i;let n=new u.bilibili.main.community.reply.v1.Form;if(i.type!=null&&(n.type=i.type|0),i.options){if(!Array.isArray(i.options))throw TypeError(".bilibili.main.community.reply.v1.Form.options: array expected");n.options=[];for(let o=0;o>>3){case 1:{a.title=i.string();break}case 2:{a.score=i.float();break}case 3:{a.imgUrl=i.string();break}case 4:{a.desc&&a.desc.length||(a.desc=[]),a.desc.push(i.string());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.community.reply.v1.QoeOption)return i;let n=new u.bilibili.main.community.reply.v1.QoeOption;if(i.title!=null&&(n.title=String(i.title)),i.score!=null&&(n.score=Number(i.score)),i.imgUrl!=null&&(n.imgUrl=String(i.imgUrl)),i.desc){if(!Array.isArray(i.desc))throw TypeError(".bilibili.main.community.reply.v1.QoeOption.desc: array expected");n.desc=[];for(let o=0;o>>3){case 1:{a.desc&&a.desc.length||(a.desc=[]),a.desc.push(i.string());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.community.reply.v1.QoeOptionDesc)return i;let n=new u.bilibili.main.community.reply.v1.QoeOptionDesc;if(i.desc){if(!Array.isArray(i.desc))throw TypeError(".bilibili.main.community.reply.v1.QoeOptionDesc.desc: array expected");n.desc=[];for(let o=0;o>>3){case 1:{a.title=i.string();break}case 2:{a.url=i.string();break}case 3:{a.score=i.float();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.community.reply.v1.QoeScoreItem)return i;let n=new u.bilibili.main.community.reply.v1.QoeScoreItem;return i.title!=null&&(n.title=String(i.title)),i.url!=null&&(n.url=String(i.url)),i.score!=null&&(n.score=Number(i.score)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.title="",o.url="",o.score=0),i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.url!=null&&i.hasOwnProperty("url")&&(o.url=i.url),i.score!=null&&i.hasOwnProperty("score")&&(o.score=n.json&&!isFinite(i.score)?String(i.score):i.score),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.community.reply.v1.QoeScoreItem"},l}(),e.UserCallbackAction=function(){let l={},t=Object.create(l);return t[l[0]="Dismiss"]=0,t}(),e.UserCallbackScene=function(){let l={},t=Object.create(l);return t[l[0]="Insert"]=0,t[l[1]="RecommendSuperbReply"]=1,t}(),e.UserCallbackReq=function(){function l(t){if(this.rpids=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.mid=i.int64();break}case 2:{a.scene=i.int32();break}case 3:{a.action=i.int32();break}case 4:{a.oid=i.int64();break}case 5:{a.type=i.int64();break}case 6:{if(a.rpids&&a.rpids.length||(a.rpids=[]),(y&7)===2){let s=i.uint32()+i.pos;for(;i.pos>>0,i.mid.high>>>0).toNumber())),i.scene){default:if(typeof i.scene=="number"){n.scene=i.scene;break}break;case"Insert":case 0:n.scene=0;break;case"RecommendSuperbReply":case 1:n.scene=1;break}switch(i.action){default:if(typeof i.action=="number"){n.action=i.action;break}break;case"Dismiss":case 0:n.action=0;break}if(i.oid!=null&&(r.Long?(n.oid=r.Long.fromValue(i.oid)).unsigned=!1:typeof i.oid=="string"?n.oid=parseInt(i.oid,10):typeof i.oid=="number"?n.oid=i.oid:typeof i.oid=="object"&&(n.oid=new r.LongBits(i.oid.low>>>0,i.oid.high>>>0).toNumber())),i.type!=null&&(r.Long?(n.type=r.Long.fromValue(i.type)).unsigned=!1:typeof i.type=="string"?n.type=parseInt(i.type,10):typeof i.type=="number"?n.type=i.type:typeof i.type=="object"&&(n.type=new r.LongBits(i.type.low>>>0,i.type.high>>>0).toNumber())),i.rpids){if(!Array.isArray(i.rpids))throw TypeError(".bilibili.main.community.reply.v1.UserCallbackReq.rpids: array expected");n.rpids=[];for(let o=0;o>>0,i.rpids[o].high>>>0).toNumber())}return n},l.toObject=function(i,n){n||(n={});let o={};if((n.arrays||n.defaults)&&(o.rpids=[]),n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.mid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.mid=n.longs===String?"0":0;if(o.scene=n.enums===String?"Insert":0,o.action=n.enums===String?"Dismiss":0,r.Long){let a=new r.Long(0,0,!1);o.oid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.oid=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.type=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.type=n.longs===String?"0":0}if(i.mid!=null&&i.hasOwnProperty("mid")&&(typeof i.mid=="number"?o.mid=n.longs===String?String(i.mid):i.mid:o.mid=n.longs===String?r.Long.prototype.toString.call(i.mid):n.longs===Number?new r.LongBits(i.mid.low>>>0,i.mid.high>>>0).toNumber():i.mid),i.scene!=null&&i.hasOwnProperty("scene")&&(o.scene=n.enums===String?u.bilibili.main.community.reply.v1.UserCallbackScene[i.scene]===void 0?i.scene:u.bilibili.main.community.reply.v1.UserCallbackScene[i.scene]:i.scene),i.action!=null&&i.hasOwnProperty("action")&&(o.action=n.enums===String?u.bilibili.main.community.reply.v1.UserCallbackAction[i.action]===void 0?i.action:u.bilibili.main.community.reply.v1.UserCallbackAction[i.action]:i.action),i.oid!=null&&i.hasOwnProperty("oid")&&(typeof i.oid=="number"?o.oid=n.longs===String?String(i.oid):i.oid:o.oid=n.longs===String?r.Long.prototype.toString.call(i.oid):n.longs===Number?new r.LongBits(i.oid.low>>>0,i.oid.high>>>0).toNumber():i.oid),i.type!=null&&i.hasOwnProperty("type")&&(typeof i.type=="number"?o.type=n.longs===String?String(i.type):i.type:o.type=n.longs===String?r.Long.prototype.toString.call(i.type):n.longs===Number?new r.LongBits(i.type.low>>>0,i.type.high>>>0).toNumber():i.type),i.rpids&&i.rpids.length){o.rpids=[];for(let a=0;a>>0,i.rpids[a].high>>>0).toNumber():i.rpids[a]}return o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.community.reply.v1.UserCallbackReq"},l}(),e.UserCallbackReply=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){default:i.skipType(y&7);break}}return a},l.fromObject=function(i){return i instanceof u.bilibili.main.community.reply.v1.UserCallbackReply?i:new u.bilibili.main.community.reply.v1.UserCallbackReply},l.toObject=function(){return{}},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.community.reply.v1.UserCallbackReply"},l}(),e.ShareRepliesInfoReq=function(){function l(t){if(this.rpids=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{if(a.rpids&&a.rpids.length||(a.rpids=[]),(y&7)===2){let s=i.uint32()+i.pos;for(;i.pos>>0,i.rpids[o].high>>>0).toNumber())}return i.oid!=null&&(r.Long?(n.oid=r.Long.fromValue(i.oid)).unsigned=!1:typeof i.oid=="string"?n.oid=parseInt(i.oid,10):typeof i.oid=="number"?n.oid=i.oid:typeof i.oid=="object"&&(n.oid=new r.LongBits(i.oid.low>>>0,i.oid.high>>>0).toNumber())),i.type!=null&&(r.Long?(n.type=r.Long.fromValue(i.type)).unsigned=!1:typeof i.type=="string"?n.type=parseInt(i.type,10):typeof i.type=="number"?n.type=i.type:typeof i.type=="object"&&(n.type=new r.LongBits(i.type.low>>>0,i.type.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if((n.arrays||n.defaults)&&(o.rpids=[]),n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.oid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.oid=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.type=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.type=n.longs===String?"0":0}if(i.rpids&&i.rpids.length){o.rpids=[];for(let a=0;a>>0,i.rpids[a].high>>>0).toNumber():i.rpids[a]}return i.oid!=null&&i.hasOwnProperty("oid")&&(typeof i.oid=="number"?o.oid=n.longs===String?String(i.oid):i.oid:o.oid=n.longs===String?r.Long.prototype.toString.call(i.oid):n.longs===Number?new r.LongBits(i.oid.low>>>0,i.oid.high>>>0).toNumber():i.oid),i.type!=null&&i.hasOwnProperty("type")&&(typeof i.type=="number"?o.type=n.longs===String?String(i.type):i.type:o.type=n.longs===String?r.Long.prototype.toString.call(i.type):n.longs===Number?new r.LongBits(i.type.low>>>0,i.type.high>>>0).toNumber():i.type),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.community.reply.v1.ShareRepliesInfoReq"},l}(),e.ShareRepliesInfoResp=function(){function l(t){if(this.infos=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.infos&&a.infos.length||(a.infos=[]),a.infos.push(u.bilibili.main.community.reply.v1.ShareReplyInfo.decode(i,i.uint32()));break}case 2:{a.fromTitle=i.string();break}case 3:{a.fromUp=i.string();break}case 4:{a.fromPic=i.string();break}case 5:{a.url=i.string();break}case 6:{a.sloganPic=i.string();break}case 7:{a.sloganText=i.string();break}case 8:{a.topic=u.bilibili.main.community.reply.v1.ShareReplyTopic.decode(i,i.uint32());break}case 9:{a.extra=u.bilibili.main.community.reply.v1.ShareRepliesInfoResp.ShareExtra.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.community.reply.v1.ShareRepliesInfoResp)return i;let n=new u.bilibili.main.community.reply.v1.ShareRepliesInfoResp;if(i.infos){if(!Array.isArray(i.infos))throw TypeError(".bilibili.main.community.reply.v1.ShareRepliesInfoResp.infos: array expected");n.infos=[];for(let o=0;o>>3){case 1:{y.isPgc=n.bool();break}default:n.skipType(s&7);break}}return y},t.fromObject=function(n){if(n instanceof u.bilibili.main.community.reply.v1.ShareRepliesInfoResp.ShareExtra)return n;let o=new u.bilibili.main.community.reply.v1.ShareRepliesInfoResp.ShareExtra;return n.isPgc!=null&&(o.isPgc=!!n.isPgc),o},t.toObject=function(n,o){o||(o={});let a={};return o.defaults&&(a.isPgc=!1),n.isPgc!=null&&n.hasOwnProperty("isPgc")&&(a.isPgc=n.isPgc),a},t.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},t.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/bilibili.main.community.reply.v1.ShareRepliesInfoResp.ShareExtra"},t}(),l}(),e.ShareReplyInfo=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.member=u.bilibili.main.community.reply.v1.Member.decode(i,i.uint32());break}case 2:{a.content=u.bilibili.main.community.reply.v1.Content.decode(i,i.uint32());break}case 3:{a.title=i.string();break}case 4:{a.subTitle=i.string();break}case 5:{a.achievementText=i.string();break}case 6:{a.labelUrl=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.community.reply.v1.ShareReplyInfo)return i;let n=new u.bilibili.main.community.reply.v1.ShareReplyInfo;if(i.member!=null){if(typeof i.member!="object")throw TypeError(".bilibili.main.community.reply.v1.ShareReplyInfo.member: object expected");n.member=u.bilibili.main.community.reply.v1.Member.fromObject(i.member)}if(i.content!=null){if(typeof i.content!="object")throw TypeError(".bilibili.main.community.reply.v1.ShareReplyInfo.content: object expected");n.content=u.bilibili.main.community.reply.v1.Content.fromObject(i.content)}return i.title!=null&&(n.title=String(i.title)),i.subTitle!=null&&(n.subTitle=String(i.subTitle)),i.achievementText!=null&&(n.achievementText=String(i.achievementText)),i.labelUrl!=null&&(n.labelUrl=String(i.labelUrl)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.member=null,o.content=null,o.title="",o.subTitle="",o.achievementText="",o.labelUrl=""),i.member!=null&&i.hasOwnProperty("member")&&(o.member=u.bilibili.main.community.reply.v1.Member.toObject(i.member,n)),i.content!=null&&i.hasOwnProperty("content")&&(o.content=u.bilibili.main.community.reply.v1.Content.toObject(i.content,n)),i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.subTitle!=null&&i.hasOwnProperty("subTitle")&&(o.subTitle=i.subTitle),i.achievementText!=null&&i.hasOwnProperty("achievementText")&&(o.achievementText=i.achievementText),i.labelUrl!=null&&i.hasOwnProperty("labelUrl")&&(o.labelUrl=i.labelUrl),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.community.reply.v1.ShareReplyInfo"},l}(),e.ShareReplyTopic=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.topic=u.bilibili.main.community.reply.v1.Topic.decode(i,i.uint32());break}case 2:{a.originText=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.community.reply.v1.ShareReplyTopic)return i;let n=new u.bilibili.main.community.reply.v1.ShareReplyTopic;if(i.topic!=null){if(typeof i.topic!="object")throw TypeError(".bilibili.main.community.reply.v1.ShareReplyTopic.topic: object expected");n.topic=u.bilibili.main.community.reply.v1.Topic.fromObject(i.topic)}return i.originText!=null&&(n.originText=String(i.originText)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.topic=null,o.originText=""),i.topic!=null&&i.hasOwnProperty("topic")&&(o.topic=u.bilibili.main.community.reply.v1.Topic.toObject(i.topic,n)),i.originText!=null&&i.hasOwnProperty("originText")&&(o.originText=i.originText),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.community.reply.v1.ShareReplyTopic"},l}(),e.SuggestEmotesReq=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.oid=i.int64();break}case 2:{a.type=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.community.reply.v1.SuggestEmotesReq)return i;let n=new u.bilibili.main.community.reply.v1.SuggestEmotesReq;return i.oid!=null&&(r.Long?(n.oid=r.Long.fromValue(i.oid)).unsigned=!1:typeof i.oid=="string"?n.oid=parseInt(i.oid,10):typeof i.oid=="number"?n.oid=i.oid:typeof i.oid=="object"&&(n.oid=new r.LongBits(i.oid.low>>>0,i.oid.high>>>0).toNumber())),i.type!=null&&(r.Long?(n.type=r.Long.fromValue(i.type)).unsigned=!1:typeof i.type=="string"?n.type=parseInt(i.type,10):typeof i.type=="number"?n.type=i.type:typeof i.type=="object"&&(n.type=new r.LongBits(i.type.low>>>0,i.type.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.oid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.oid=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.type=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.type=n.longs===String?"0":0}return i.oid!=null&&i.hasOwnProperty("oid")&&(typeof i.oid=="number"?o.oid=n.longs===String?String(i.oid):i.oid:o.oid=n.longs===String?r.Long.prototype.toString.call(i.oid):n.longs===Number?new r.LongBits(i.oid.low>>>0,i.oid.high>>>0).toNumber():i.oid),i.type!=null&&i.hasOwnProperty("type")&&(typeof i.type=="number"?o.type=n.longs===String?String(i.type):i.type:o.type=n.longs===String?r.Long.prototype.toString.call(i.type):n.longs===Number?new r.LongBits(i.type.low>>>0,i.type.high>>>0).toNumber():i.type),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.community.reply.v1.SuggestEmotesReq"},l}(),e.SuggestEmotesResp=function(){function l(t){if(this.emotes=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.emotes&&a.emotes.length||(a.emotes=[]),a.emotes.push(u.bilibili.main.community.reply.v1.Emote.decode(i,i.uint32()));break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.community.reply.v1.SuggestEmotesResp)return i;let n=new u.bilibili.main.community.reply.v1.SuggestEmotesResp;if(i.emotes){if(!Array.isArray(i.emotes))throw TypeError(".bilibili.main.community.reply.v1.SuggestEmotesResp.emotes: array expected");n.emotes=[];for(let o=0;o>>3){case 1:{a.oid=i.int64();break}case 2:{a.type=i.int64();break}case 3:{a.voteId=i.int64();break}case 4:{a.option=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.community.reply.v1.DoVoteReq)return i;let n=new u.bilibili.main.community.reply.v1.DoVoteReq;return i.oid!=null&&(r.Long?(n.oid=r.Long.fromValue(i.oid)).unsigned=!1:typeof i.oid=="string"?n.oid=parseInt(i.oid,10):typeof i.oid=="number"?n.oid=i.oid:typeof i.oid=="object"&&(n.oid=new r.LongBits(i.oid.low>>>0,i.oid.high>>>0).toNumber())),i.type!=null&&(r.Long?(n.type=r.Long.fromValue(i.type)).unsigned=!1:typeof i.type=="string"?n.type=parseInt(i.type,10):typeof i.type=="number"?n.type=i.type:typeof i.type=="object"&&(n.type=new r.LongBits(i.type.low>>>0,i.type.high>>>0).toNumber())),i.voteId!=null&&(r.Long?(n.voteId=r.Long.fromValue(i.voteId)).unsigned=!1:typeof i.voteId=="string"?n.voteId=parseInt(i.voteId,10):typeof i.voteId=="number"?n.voteId=i.voteId:typeof i.voteId=="object"&&(n.voteId=new r.LongBits(i.voteId.low>>>0,i.voteId.high>>>0).toNumber())),i.option!=null&&(r.Long?(n.option=r.Long.fromValue(i.option)).unsigned=!1:typeof i.option=="string"?n.option=parseInt(i.option,10):typeof i.option=="number"?n.option=i.option:typeof i.option=="object"&&(n.option=new r.LongBits(i.option.low>>>0,i.option.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.oid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.oid=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.type=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.type=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.voteId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.voteId=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.option=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.option=n.longs===String?"0":0}return i.oid!=null&&i.hasOwnProperty("oid")&&(typeof i.oid=="number"?o.oid=n.longs===String?String(i.oid):i.oid:o.oid=n.longs===String?r.Long.prototype.toString.call(i.oid):n.longs===Number?new r.LongBits(i.oid.low>>>0,i.oid.high>>>0).toNumber():i.oid),i.type!=null&&i.hasOwnProperty("type")&&(typeof i.type=="number"?o.type=n.longs===String?String(i.type):i.type:o.type=n.longs===String?r.Long.prototype.toString.call(i.type):n.longs===Number?new r.LongBits(i.type.low>>>0,i.type.high>>>0).toNumber():i.type),i.voteId!=null&&i.hasOwnProperty("voteId")&&(typeof i.voteId=="number"?o.voteId=n.longs===String?String(i.voteId):i.voteId:o.voteId=n.longs===String?r.Long.prototype.toString.call(i.voteId):n.longs===Number?new r.LongBits(i.voteId.low>>>0,i.voteId.high>>>0).toNumber():i.voteId),i.option!=null&&i.hasOwnProperty("option")&&(typeof i.option=="number"?o.option=n.longs===String?String(i.option):i.option:o.option=n.longs===String?r.Long.prototype.toString.call(i.option):n.longs===Number?new r.LongBits(i.option.low>>>0,i.option.high>>>0).toNumber():i.option),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.community.reply.v1.DoVoteReq"},l}(),e.DoVoteResp=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){default:i.skipType(y&7);break}}return a},l.fromObject=function(i){return i instanceof u.bilibili.main.community.reply.v1.DoVoteResp?i:new u.bilibili.main.community.reply.v1.DoVoteResp},l.toObject=function(){return{}},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.community.reply.v1.DoVoteResp"},l}(),e.ShareReplyMaterialReq=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.oid=i.int64();break}case 2:{a.type=i.int64();break}case 3:{a.rpid=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.community.reply.v1.ShareReplyMaterialReq)return i;let n=new u.bilibili.main.community.reply.v1.ShareReplyMaterialReq;return i.oid!=null&&(r.Long?(n.oid=r.Long.fromValue(i.oid)).unsigned=!1:typeof i.oid=="string"?n.oid=parseInt(i.oid,10):typeof i.oid=="number"?n.oid=i.oid:typeof i.oid=="object"&&(n.oid=new r.LongBits(i.oid.low>>>0,i.oid.high>>>0).toNumber())),i.type!=null&&(r.Long?(n.type=r.Long.fromValue(i.type)).unsigned=!1:typeof i.type=="string"?n.type=parseInt(i.type,10):typeof i.type=="number"?n.type=i.type:typeof i.type=="object"&&(n.type=new r.LongBits(i.type.low>>>0,i.type.high>>>0).toNumber())),i.rpid!=null&&(r.Long?(n.rpid=r.Long.fromValue(i.rpid)).unsigned=!1:typeof i.rpid=="string"?n.rpid=parseInt(i.rpid,10):typeof i.rpid=="number"?n.rpid=i.rpid:typeof i.rpid=="object"&&(n.rpid=new r.LongBits(i.rpid.low>>>0,i.rpid.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.oid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.oid=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.type=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.type=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.rpid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.rpid=n.longs===String?"0":0}return i.oid!=null&&i.hasOwnProperty("oid")&&(typeof i.oid=="number"?o.oid=n.longs===String?String(i.oid):i.oid:o.oid=n.longs===String?r.Long.prototype.toString.call(i.oid):n.longs===Number?new r.LongBits(i.oid.low>>>0,i.oid.high>>>0).toNumber():i.oid),i.type!=null&&i.hasOwnProperty("type")&&(typeof i.type=="number"?o.type=n.longs===String?String(i.type):i.type:o.type=n.longs===String?r.Long.prototype.toString.call(i.type):n.longs===Number?new r.LongBits(i.type.low>>>0,i.type.high>>>0).toNumber():i.type),i.rpid!=null&&i.hasOwnProperty("rpid")&&(typeof i.rpid=="number"?o.rpid=n.longs===String?String(i.rpid):i.rpid:o.rpid=n.longs===String?r.Long.prototype.toString.call(i.rpid):n.longs===Number?new r.LongBits(i.rpid.low>>>0,i.rpid.high>>>0).toNumber():i.rpid),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.community.reply.v1.ShareReplyMaterialReq"},l}(),e.ShareReplyMaterialResp=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.subjectMaterial=u.bilibili.main.community.reply.v1.ShareReplyMaterialResp.SubjectMaterial.decode(i,i.uint32());break}case 2:{a.qrcodeUrl=i.string();break}case 3:{a.savePicText=i.string();break}case 4:{a.openAppText=i.string();break}case 5:{a.shareTimeText=i.string();break}case 6:{a.biliLogoIcon=i.string();break}case 7:{a.extra=u.bilibili.main.community.reply.v1.ShareReplyMaterialResp.ExtraData.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.community.reply.v1.ShareReplyMaterialResp)return i;let n=new u.bilibili.main.community.reply.v1.ShareReplyMaterialResp;if(i.subjectMaterial!=null){if(typeof i.subjectMaterial!="object")throw TypeError(".bilibili.main.community.reply.v1.ShareReplyMaterialResp.subjectMaterial: object expected");n.subjectMaterial=u.bilibili.main.community.reply.v1.ShareReplyMaterialResp.SubjectMaterial.fromObject(i.subjectMaterial)}if(i.qrcodeUrl!=null&&(n.qrcodeUrl=String(i.qrcodeUrl)),i.savePicText!=null&&(n.savePicText=String(i.savePicText)),i.openAppText!=null&&(n.openAppText=String(i.openAppText)),i.shareTimeText!=null&&(n.shareTimeText=String(i.shareTimeText)),i.biliLogoIcon!=null&&(n.biliLogoIcon=String(i.biliLogoIcon)),i.extra!=null){if(typeof i.extra!="object")throw TypeError(".bilibili.main.community.reply.v1.ShareReplyMaterialResp.extra: object expected");n.extra=u.bilibili.main.community.reply.v1.ShareReplyMaterialResp.ExtraData.fromObject(i.extra)}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.subjectMaterial=null,o.qrcodeUrl="",o.savePicText="",o.openAppText="",o.shareTimeText="",o.biliLogoIcon="",o.extra=null),i.subjectMaterial!=null&&i.hasOwnProperty("subjectMaterial")&&(o.subjectMaterial=u.bilibili.main.community.reply.v1.ShareReplyMaterialResp.SubjectMaterial.toObject(i.subjectMaterial,n)),i.qrcodeUrl!=null&&i.hasOwnProperty("qrcodeUrl")&&(o.qrcodeUrl=i.qrcodeUrl),i.savePicText!=null&&i.hasOwnProperty("savePicText")&&(o.savePicText=i.savePicText),i.openAppText!=null&&i.hasOwnProperty("openAppText")&&(o.openAppText=i.openAppText),i.shareTimeText!=null&&i.hasOwnProperty("shareTimeText")&&(o.shareTimeText=i.shareTimeText),i.biliLogoIcon!=null&&i.hasOwnProperty("biliLogoIcon")&&(o.biliLogoIcon=i.biliLogoIcon),i.extra!=null&&i.hasOwnProperty("extra")&&(o.extra=u.bilibili.main.community.reply.v1.ShareReplyMaterialResp.ExtraData.toObject(i.extra,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.community.reply.v1.ShareReplyMaterialResp"},l.ArchiveMaterial=function(){function t(i){if(i)for(let n=Object.keys(i),o=0;o>>3){case 1:{y.title=n.string();break}case 2:{y.cover=n.string();break}case 3:{y.upName=n.string();break}case 4:{y.upIcon=n.string();break}default:n.skipType(s&7);break}}return y},t.fromObject=function(n){if(n instanceof u.bilibili.main.community.reply.v1.ShareReplyMaterialResp.ArchiveMaterial)return n;let o=new u.bilibili.main.community.reply.v1.ShareReplyMaterialResp.ArchiveMaterial;return n.title!=null&&(o.title=String(n.title)),n.cover!=null&&(o.cover=String(n.cover)),n.upName!=null&&(o.upName=String(n.upName)),n.upIcon!=null&&(o.upIcon=String(n.upIcon)),o},t.toObject=function(n,o){o||(o={});let a={};return o.defaults&&(a.title="",a.cover="",a.upName="",a.upIcon=""),n.title!=null&&n.hasOwnProperty("title")&&(a.title=n.title),n.cover!=null&&n.hasOwnProperty("cover")&&(a.cover=n.cover),n.upName!=null&&n.hasOwnProperty("upName")&&(a.upName=n.upName),n.upIcon!=null&&n.hasOwnProperty("upIcon")&&(a.upIcon=n.upIcon),a},t.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},t.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/bilibili.main.community.reply.v1.ShareReplyMaterialResp.ArchiveMaterial"},t}(),l.DynamicMaterial=function(){function t(i){if(i)for(let n=Object.keys(i),o=0;o>>3){case 1:{y.title=n.string();break}case 2:{y.message=n.string();break}default:n.skipType(s&7);break}}return y},t.fromObject=function(n){if(n instanceof u.bilibili.main.community.reply.v1.ShareReplyMaterialResp.DynamicMaterial)return n;let o=new u.bilibili.main.community.reply.v1.ShareReplyMaterialResp.DynamicMaterial;return n.title!=null&&(o.title=String(n.title)),n.message!=null&&(o.message=String(n.message)),o},t.toObject=function(n,o){o||(o={});let a={};return o.defaults&&(a.title="",a.message=""),n.title!=null&&n.hasOwnProperty("title")&&(a.title=n.title),n.message!=null&&n.hasOwnProperty("message")&&(a.message=n.message),a},t.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},t.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/bilibili.main.community.reply.v1.ShareReplyMaterialResp.DynamicMaterial"},t}(),l.ArticleMaterial=function(){function t(i){if(i)for(let n=Object.keys(i),o=0;o>>3){case 1:{y.title=n.string();break}case 2:{y.message=n.string();break}default:n.skipType(s&7);break}}return y},t.fromObject=function(n){if(n instanceof u.bilibili.main.community.reply.v1.ShareReplyMaterialResp.ArticleMaterial)return n;let o=new u.bilibili.main.community.reply.v1.ShareReplyMaterialResp.ArticleMaterial;return n.title!=null&&(o.title=String(n.title)),n.message!=null&&(o.message=String(n.message)),o},t.toObject=function(n,o){o||(o={});let a={};return o.defaults&&(a.title="",a.message=""),n.title!=null&&n.hasOwnProperty("title")&&(a.title=n.title),n.message!=null&&n.hasOwnProperty("message")&&(a.message=n.message),a},t.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},t.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/bilibili.main.community.reply.v1.ShareReplyMaterialResp.ArticleMaterial"},t}(),l.SubjectMaterial=function(){function t(n){if(n)for(let o=Object.keys(n),a=0;a>>3){case 1:{s.archiveMaterial=u.bilibili.main.community.reply.v1.ShareReplyMaterialResp.ArchiveMaterial.decode(o,o.uint32());break}case 2:{s.dynamicMaterial=u.bilibili.main.community.reply.v1.ShareReplyMaterialResp.DynamicMaterial.decode(o,o.uint32());break}case 3:{s.articleMaterial=u.bilibili.main.community.reply.v1.ShareReplyMaterialResp.ArticleMaterial.decode(o,o.uint32());break}default:o.skipType(v&7);break}}return s},t.fromObject=function(o){if(o instanceof u.bilibili.main.community.reply.v1.ShareReplyMaterialResp.SubjectMaterial)return o;let a=new u.bilibili.main.community.reply.v1.ShareReplyMaterialResp.SubjectMaterial;if(o.archiveMaterial!=null){if(typeof o.archiveMaterial!="object")throw TypeError(".bilibili.main.community.reply.v1.ShareReplyMaterialResp.SubjectMaterial.archiveMaterial: object expected");a.archiveMaterial=u.bilibili.main.community.reply.v1.ShareReplyMaterialResp.ArchiveMaterial.fromObject(o.archiveMaterial)}if(o.dynamicMaterial!=null){if(typeof o.dynamicMaterial!="object")throw TypeError(".bilibili.main.community.reply.v1.ShareReplyMaterialResp.SubjectMaterial.dynamicMaterial: object expected");a.dynamicMaterial=u.bilibili.main.community.reply.v1.ShareReplyMaterialResp.DynamicMaterial.fromObject(o.dynamicMaterial)}if(o.articleMaterial!=null){if(typeof o.articleMaterial!="object")throw TypeError(".bilibili.main.community.reply.v1.ShareReplyMaterialResp.SubjectMaterial.articleMaterial: object expected");a.articleMaterial=u.bilibili.main.community.reply.v1.ShareReplyMaterialResp.ArticleMaterial.fromObject(o.articleMaterial)}return a},t.toObject=function(o,a){a||(a={});let y={};return o.archiveMaterial!=null&&o.hasOwnProperty("archiveMaterial")&&(y.archiveMaterial=u.bilibili.main.community.reply.v1.ShareReplyMaterialResp.ArchiveMaterial.toObject(o.archiveMaterial,a),a.oneofs&&(y.item="archiveMaterial")),o.dynamicMaterial!=null&&o.hasOwnProperty("dynamicMaterial")&&(y.dynamicMaterial=u.bilibili.main.community.reply.v1.ShareReplyMaterialResp.DynamicMaterial.toObject(o.dynamicMaterial,a),a.oneofs&&(y.item="dynamicMaterial")),o.articleMaterial!=null&&o.hasOwnProperty("articleMaterial")&&(y.articleMaterial=u.bilibili.main.community.reply.v1.ShareReplyMaterialResp.ArticleMaterial.toObject(o.articleMaterial,a),a.oneofs&&(y.item="articleMaterial")),y},t.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},t.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/bilibili.main.community.reply.v1.ShareReplyMaterialResp.SubjectMaterial"},t}(),l.ExtraData=function(){function t(i){if(i)for(let n=Object.keys(i),o=0;o>>3){case 1:{y.isPgc=n.bool();break}case 2:{y.originText=n.string();break}case 3:{y.topicId=n.int64();break}default:n.skipType(s&7);break}}return y},t.fromObject=function(n){if(n instanceof u.bilibili.main.community.reply.v1.ShareReplyMaterialResp.ExtraData)return n;let o=new u.bilibili.main.community.reply.v1.ShareReplyMaterialResp.ExtraData;return n.isPgc!=null&&(o.isPgc=!!n.isPgc),n.originText!=null&&(o.originText=String(n.originText)),n.topicId!=null&&(r.Long?(o.topicId=r.Long.fromValue(n.topicId)).unsigned=!1:typeof n.topicId=="string"?o.topicId=parseInt(n.topicId,10):typeof n.topicId=="number"?o.topicId=n.topicId:typeof n.topicId=="object"&&(o.topicId=new r.LongBits(n.topicId.low>>>0,n.topicId.high>>>0).toNumber())),o},t.toObject=function(n,o){o||(o={});let a={};if(o.defaults)if(a.isPgc=!1,a.originText="",r.Long){let y=new r.Long(0,0,!1);a.topicId=o.longs===String?y.toString():o.longs===Number?y.toNumber():y}else a.topicId=o.longs===String?"0":0;return n.isPgc!=null&&n.hasOwnProperty("isPgc")&&(a.isPgc=n.isPgc),n.originText!=null&&n.hasOwnProperty("originText")&&(a.originText=n.originText),n.topicId!=null&&n.hasOwnProperty("topicId")&&(typeof n.topicId=="number"?a.topicId=o.longs===String?String(n.topicId):n.topicId:a.topicId=o.longs===String?r.Long.prototype.toString.call(n.topicId):o.longs===Number?new r.LongBits(n.topicId.low>>>0,n.topicId.high>>>0).toNumber():n.topicId),a},t.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},t.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/bilibili.main.community.reply.v1.ShareReplyMaterialResp.ExtraData"},t}(),l}(),e}(),c.v2=function(){let e={};return e.Reply=function(){function l(t,i,n){b.rpc.Service.call(this,t,i,n)}return(l.prototype=Object.create(b.rpc.Service.prototype)).constructor=l,l.create=function(i,n,o){return new this(i,n,o)},Object.defineProperty(l.prototype.subjectDescription=function t(i,n){return this.rpcCall(t,u.bilibili.main.community.reply.v2.SubjectDescriptionReq,u.bilibili.main.community.reply.v2.SubjectDescriptionReply,i,n)},"name",{value:"SubjectDescription"}),l}(),e.SubjectDescriptionReq=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.subjectId=u.bilibili.main.community.reply.v2.SubjectID.decode(i,i.uint32());break}case 2:{a.playerParams=u.bilibili.main.community.reply.v2.PlayerParams.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.community.reply.v2.SubjectDescriptionReq)return i;let n=new u.bilibili.main.community.reply.v2.SubjectDescriptionReq;if(i.subjectId!=null){if(typeof i.subjectId!="object")throw TypeError(".bilibili.main.community.reply.v2.SubjectDescriptionReq.subjectId: object expected");n.subjectId=u.bilibili.main.community.reply.v2.SubjectID.fromObject(i.subjectId)}if(i.playerParams!=null){if(typeof i.playerParams!="object")throw TypeError(".bilibili.main.community.reply.v2.SubjectDescriptionReq.playerParams: object expected");n.playerParams=u.bilibili.main.community.reply.v2.PlayerParams.fromObject(i.playerParams)}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.subjectId=null,o.playerParams=null),i.subjectId!=null&&i.hasOwnProperty("subjectId")&&(o.subjectId=u.bilibili.main.community.reply.v2.SubjectID.toObject(i.subjectId,n)),i.playerParams!=null&&i.hasOwnProperty("playerParams")&&(o.playerParams=u.bilibili.main.community.reply.v2.PlayerParams.toObject(i.playerParams,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.community.reply.v2.SubjectDescriptionReq"},l}(),e.SubjectDescriptionReply=function(){function l(t){if(this.supportFilterTags=[],this.preloadResUrls=[],this.userCallbacks=[],this.preloadResources=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.count=i.int64();break}case 2:{a.input=u.bilibili.main.community.reply.v2.SubjectDescriptionReply.InputConfig.decode(i,i.uint32());break}case 3:{a.emote=u.bilibili.main.community.reply.v2.SubjectDescriptionReply.EmoteConfig.decode(i,i.uint32());break}case 4:{a.emptyPage=u.bilibili.main.community.reply.v2.EmptyPage.decode(i,i.uint32());break}case 5:{a.supportFilterTags&&a.supportFilterTags.length||(a.supportFilterTags=[]),a.supportFilterTags.push(u.bilibili.main.community.reply.v2.SubjectDescriptionReply.FilterTag.decode(i,i.uint32()));break}case 6:{a.preloadResUrls&&a.preloadResUrls.length||(a.preloadResUrls=[]),a.preloadResUrls.push(i.string());break}case 7:{a.userCallbacks&&a.userCallbacks.length||(a.userCallbacks=[]),a.userCallbacks.push(u.bilibili.main.community.reply.v2.UserCallback.decode(i,i.uint32()));break}case 8:{a.upMid=i.int64();break}case 9:{a.preloadResources&&a.preloadResources.length||(a.preloadResources=[]),a.preloadResources.push(u.bilibili.main.community.reply.v2.Resource.decode(i,i.uint32()));break}case 10:{a.guestLimit=i.bool();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.community.reply.v2.SubjectDescriptionReply)return i;let n=new u.bilibili.main.community.reply.v2.SubjectDescriptionReply;if(i.count!=null&&(r.Long?(n.count=r.Long.fromValue(i.count)).unsigned=!1:typeof i.count=="string"?n.count=parseInt(i.count,10):typeof i.count=="number"?n.count=i.count:typeof i.count=="object"&&(n.count=new r.LongBits(i.count.low>>>0,i.count.high>>>0).toNumber())),i.input!=null){if(typeof i.input!="object")throw TypeError(".bilibili.main.community.reply.v2.SubjectDescriptionReply.input: object expected");n.input=u.bilibili.main.community.reply.v2.SubjectDescriptionReply.InputConfig.fromObject(i.input)}if(i.emote!=null){if(typeof i.emote!="object")throw TypeError(".bilibili.main.community.reply.v2.SubjectDescriptionReply.emote: object expected");n.emote=u.bilibili.main.community.reply.v2.SubjectDescriptionReply.EmoteConfig.fromObject(i.emote)}if(i.emptyPage!=null){if(typeof i.emptyPage!="object")throw TypeError(".bilibili.main.community.reply.v2.SubjectDescriptionReply.emptyPage: object expected");n.emptyPage=u.bilibili.main.community.reply.v2.EmptyPage.fromObject(i.emptyPage)}if(i.supportFilterTags){if(!Array.isArray(i.supportFilterTags))throw TypeError(".bilibili.main.community.reply.v2.SubjectDescriptionReply.supportFilterTags: array expected");n.supportFilterTags=[];for(let o=0;o>>0,i.upMid.high>>>0).toNumber())),i.preloadResources){if(!Array.isArray(i.preloadResources))throw TypeError(".bilibili.main.community.reply.v2.SubjectDescriptionReply.preloadResources: array expected");n.preloadResources=[];for(let o=0;o>>0,i.count.high>>>0).toNumber():i.count),i.input!=null&&i.hasOwnProperty("input")&&(o.input=u.bilibili.main.community.reply.v2.SubjectDescriptionReply.InputConfig.toObject(i.input,n)),i.emote!=null&&i.hasOwnProperty("emote")&&(o.emote=u.bilibili.main.community.reply.v2.SubjectDescriptionReply.EmoteConfig.toObject(i.emote,n)),i.emptyPage!=null&&i.hasOwnProperty("emptyPage")&&(o.emptyPage=u.bilibili.main.community.reply.v2.EmptyPage.toObject(i.emptyPage,n)),i.supportFilterTags&&i.supportFilterTags.length){o.supportFilterTags=[];for(let a=0;a>>0,i.upMid.high>>>0).toNumber():i.upMid),i.preloadResources&&i.preloadResources.length){o.preloadResources=[];for(let a=0;a>>3){case 1:{y.disabled=n.bool();break}case 2:{y.rootText=n.string();break}case 3:{y.childText=n.string();break}case 4:{y.giveUpText=n.string();break}case 5:{y.editorIconConfig=u.bilibili.main.community.reply.v2.SubjectDescriptionReply.InputConfig.EditorIconConfig.decode(n,n.uint32());break}case 6:{y.gradePanel=u.bilibili.main.community.reply.v2.SubjectDescriptionReply.InputConfig.GradePanel.decode(n,n.uint32());break}default:n.skipType(s&7);break}}return y},t.fromObject=function(n){if(n instanceof u.bilibili.main.community.reply.v2.SubjectDescriptionReply.InputConfig)return n;let o=new u.bilibili.main.community.reply.v2.SubjectDescriptionReply.InputConfig;if(n.disabled!=null&&(o.disabled=!!n.disabled),n.rootText!=null&&(o.rootText=String(n.rootText)),n.childText!=null&&(o.childText=String(n.childText)),n.giveUpText!=null&&(o.giveUpText=String(n.giveUpText)),n.editorIconConfig!=null){if(typeof n.editorIconConfig!="object")throw TypeError(".bilibili.main.community.reply.v2.SubjectDescriptionReply.InputConfig.editorIconConfig: object expected");o.editorIconConfig=u.bilibili.main.community.reply.v2.SubjectDescriptionReply.InputConfig.EditorIconConfig.fromObject(n.editorIconConfig)}if(n.gradePanel!=null){if(typeof n.gradePanel!="object")throw TypeError(".bilibili.main.community.reply.v2.SubjectDescriptionReply.InputConfig.gradePanel: object expected");o.gradePanel=u.bilibili.main.community.reply.v2.SubjectDescriptionReply.InputConfig.GradePanel.fromObject(n.gradePanel)}return o},t.toObject=function(n,o){o||(o={});let a={};return o.defaults&&(a.disabled=!1,a.rootText="",a.childText="",a.giveUpText="",a.editorIconConfig=null,a.gradePanel=null),n.disabled!=null&&n.hasOwnProperty("disabled")&&(a.disabled=n.disabled),n.rootText!=null&&n.hasOwnProperty("rootText")&&(a.rootText=n.rootText),n.childText!=null&&n.hasOwnProperty("childText")&&(a.childText=n.childText),n.giveUpText!=null&&n.hasOwnProperty("giveUpText")&&(a.giveUpText=n.giveUpText),n.editorIconConfig!=null&&n.hasOwnProperty("editorIconConfig")&&(a.editorIconConfig=u.bilibili.main.community.reply.v2.SubjectDescriptionReply.InputConfig.EditorIconConfig.toObject(n.editorIconConfig,o)),n.gradePanel!=null&&n.hasOwnProperty("gradePanel")&&(a.gradePanel=u.bilibili.main.community.reply.v2.SubjectDescriptionReply.InputConfig.GradePanel.toObject(n.gradePanel,o)),a},t.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},t.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/bilibili.main.community.reply.v2.SubjectDescriptionReply.InputConfig"},t.EditorIconConfig=function(){function i(n){if(n)for(let o=Object.keys(n),a=0;a>>3){case 1:{s.screenshotIconState=o.int32();break}case 2:{s.uploadPictureIconState=o.int32();break}case 3:{s.voteIconState=o.int32();break}case 4:{s.noteIconState=o.int32();break}case 5:{s.goodsIconState=o.int32();break}case 6:{s.insertContentIconState=o.int32();break}case 7:{s.elecIconState=o.int32();break}case 8:{s.cmBizHelperIconState=o.int32();break}default:o.skipType(v&7);break}}return s},i.fromObject=function(o){if(o instanceof u.bilibili.main.community.reply.v2.SubjectDescriptionReply.InputConfig.EditorIconConfig)return o;let a=new u.bilibili.main.community.reply.v2.SubjectDescriptionReply.InputConfig.EditorIconConfig;switch(o.screenshotIconState){default:if(typeof o.screenshotIconState=="number"){a.screenshotIconState=o.screenshotIconState;break}break;case"EditorIconState_DEFAULT":case 0:a.screenshotIconState=0;break;case"EditorIconState_ENABLE":case 1:a.screenshotIconState=1;break;case"EditorIconState_DISABLE":case 2:a.screenshotIconState=2;break;case"EditorIconState_HIDE":case 3:a.screenshotIconState=3;break}switch(o.uploadPictureIconState){default:if(typeof o.uploadPictureIconState=="number"){a.uploadPictureIconState=o.uploadPictureIconState;break}break;case"EditorIconState_DEFAULT":case 0:a.uploadPictureIconState=0;break;case"EditorIconState_ENABLE":case 1:a.uploadPictureIconState=1;break;case"EditorIconState_DISABLE":case 2:a.uploadPictureIconState=2;break;case"EditorIconState_HIDE":case 3:a.uploadPictureIconState=3;break}switch(o.voteIconState){default:if(typeof o.voteIconState=="number"){a.voteIconState=o.voteIconState;break}break;case"EditorIconState_DEFAULT":case 0:a.voteIconState=0;break;case"EditorIconState_ENABLE":case 1:a.voteIconState=1;break;case"EditorIconState_DISABLE":case 2:a.voteIconState=2;break;case"EditorIconState_HIDE":case 3:a.voteIconState=3;break}switch(o.noteIconState){default:if(typeof o.noteIconState=="number"){a.noteIconState=o.noteIconState;break}break;case"EditorIconState_DEFAULT":case 0:a.noteIconState=0;break;case"EditorIconState_ENABLE":case 1:a.noteIconState=1;break;case"EditorIconState_DISABLE":case 2:a.noteIconState=2;break;case"EditorIconState_HIDE":case 3:a.noteIconState=3;break}switch(o.goodsIconState){default:if(typeof o.goodsIconState=="number"){a.goodsIconState=o.goodsIconState;break}break;case"EditorIconState_DEFAULT":case 0:a.goodsIconState=0;break;case"EditorIconState_ENABLE":case 1:a.goodsIconState=1;break;case"EditorIconState_DISABLE":case 2:a.goodsIconState=2;break;case"EditorIconState_HIDE":case 3:a.goodsIconState=3;break}switch(o.insertContentIconState){default:if(typeof o.insertContentIconState=="number"){a.insertContentIconState=o.insertContentIconState;break}break;case"EditorIconState_DEFAULT":case 0:a.insertContentIconState=0;break;case"EditorIconState_ENABLE":case 1:a.insertContentIconState=1;break;case"EditorIconState_DISABLE":case 2:a.insertContentIconState=2;break;case"EditorIconState_HIDE":case 3:a.insertContentIconState=3;break}switch(o.elecIconState){default:if(typeof o.elecIconState=="number"){a.elecIconState=o.elecIconState;break}break;case"EditorIconState_DEFAULT":case 0:a.elecIconState=0;break;case"EditorIconState_ENABLE":case 1:a.elecIconState=1;break;case"EditorIconState_DISABLE":case 2:a.elecIconState=2;break;case"EditorIconState_HIDE":case 3:a.elecIconState=3;break}switch(o.cmBizHelperIconState){default:if(typeof o.cmBizHelperIconState=="number"){a.cmBizHelperIconState=o.cmBizHelperIconState;break}break;case"EditorIconState_DEFAULT":case 0:a.cmBizHelperIconState=0;break;case"EditorIconState_ENABLE":case 1:a.cmBizHelperIconState=1;break;case"EditorIconState_DISABLE":case 2:a.cmBizHelperIconState=2;break;case"EditorIconState_HIDE":case 3:a.cmBizHelperIconState=3;break}return a},i.toObject=function(o,a){a||(a={});let y={};return a.defaults&&(y.screenshotIconState=a.enums===String?"EditorIconState_DEFAULT":0,y.uploadPictureIconState=a.enums===String?"EditorIconState_DEFAULT":0,y.voteIconState=a.enums===String?"EditorIconState_DEFAULT":0,y.noteIconState=a.enums===String?"EditorIconState_DEFAULT":0,y.goodsIconState=a.enums===String?"EditorIconState_DEFAULT":0,y.insertContentIconState=a.enums===String?"EditorIconState_DEFAULT":0,y.elecIconState=a.enums===String?"EditorIconState_DEFAULT":0,y.cmBizHelperIconState=a.enums===String?"EditorIconState_DEFAULT":0),o.screenshotIconState!=null&&o.hasOwnProperty("screenshotIconState")&&(y.screenshotIconState=a.enums===String?u.bilibili.main.community.reply.v2.EditorIconState[o.screenshotIconState]===void 0?o.screenshotIconState:u.bilibili.main.community.reply.v2.EditorIconState[o.screenshotIconState]:o.screenshotIconState),o.uploadPictureIconState!=null&&o.hasOwnProperty("uploadPictureIconState")&&(y.uploadPictureIconState=a.enums===String?u.bilibili.main.community.reply.v2.EditorIconState[o.uploadPictureIconState]===void 0?o.uploadPictureIconState:u.bilibili.main.community.reply.v2.EditorIconState[o.uploadPictureIconState]:o.uploadPictureIconState),o.voteIconState!=null&&o.hasOwnProperty("voteIconState")&&(y.voteIconState=a.enums===String?u.bilibili.main.community.reply.v2.EditorIconState[o.voteIconState]===void 0?o.voteIconState:u.bilibili.main.community.reply.v2.EditorIconState[o.voteIconState]:o.voteIconState),o.noteIconState!=null&&o.hasOwnProperty("noteIconState")&&(y.noteIconState=a.enums===String?u.bilibili.main.community.reply.v2.EditorIconState[o.noteIconState]===void 0?o.noteIconState:u.bilibili.main.community.reply.v2.EditorIconState[o.noteIconState]:o.noteIconState),o.goodsIconState!=null&&o.hasOwnProperty("goodsIconState")&&(y.goodsIconState=a.enums===String?u.bilibili.main.community.reply.v2.EditorIconState[o.goodsIconState]===void 0?o.goodsIconState:u.bilibili.main.community.reply.v2.EditorIconState[o.goodsIconState]:o.goodsIconState),o.insertContentIconState!=null&&o.hasOwnProperty("insertContentIconState")&&(y.insertContentIconState=a.enums===String?u.bilibili.main.community.reply.v2.EditorIconState[o.insertContentIconState]===void 0?o.insertContentIconState:u.bilibili.main.community.reply.v2.EditorIconState[o.insertContentIconState]:o.insertContentIconState),o.elecIconState!=null&&o.hasOwnProperty("elecIconState")&&(y.elecIconState=a.enums===String?u.bilibili.main.community.reply.v2.EditorIconState[o.elecIconState]===void 0?o.elecIconState:u.bilibili.main.community.reply.v2.EditorIconState[o.elecIconState]:o.elecIconState),o.cmBizHelperIconState!=null&&o.hasOwnProperty("cmBizHelperIconState")&&(y.cmBizHelperIconState=a.enums===String?u.bilibili.main.community.reply.v2.EditorIconState[o.cmBizHelperIconState]===void 0?o.cmBizHelperIconState:u.bilibili.main.community.reply.v2.EditorIconState[o.cmBizHelperIconState]:o.cmBizHelperIconState),y},i.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},i.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/bilibili.main.community.reply.v2.SubjectDescriptionReply.InputConfig.EditorIconConfig"},i}(),t.GradePanel=function(){function i(n){if(this.grades=[],n)for(let o=Object.keys(n),a=0;a>>3){case 1:{s.promptText=o.string();break}case 2:{s.grades&&s.grades.length||(s.grades=[]),s.grades.push(u.bilibili.main.community.reply.v2.SubjectDescriptionReply.InputConfig.GradePanel.Grade.decode(o,o.uint32()));break}default:o.skipType(v&7);break}}return s},i.fromObject=function(o){if(o instanceof u.bilibili.main.community.reply.v2.SubjectDescriptionReply.InputConfig.GradePanel)return o;let a=new u.bilibili.main.community.reply.v2.SubjectDescriptionReply.InputConfig.GradePanel;if(o.promptText!=null&&(a.promptText=String(o.promptText)),o.grades){if(!Array.isArray(o.grades))throw TypeError(".bilibili.main.community.reply.v2.SubjectDescriptionReply.InputConfig.GradePanel.grades: array expected");a.grades=[];for(let y=0;y>>3){case 1:{v.id=a.int64();break}case 2:{v.image=a.string();break}case 3:{v.title=a.string();break}default:a.skipType(g&7);break}}return v},n.fromObject=function(a){if(a instanceof u.bilibili.main.community.reply.v2.SubjectDescriptionReply.InputConfig.GradePanel.Grade)return a;let y=new u.bilibili.main.community.reply.v2.SubjectDescriptionReply.InputConfig.GradePanel.Grade;return a.id!=null&&(r.Long?(y.id=r.Long.fromValue(a.id)).unsigned=!1:typeof a.id=="string"?y.id=parseInt(a.id,10):typeof a.id=="number"?y.id=a.id:typeof a.id=="object"&&(y.id=new r.LongBits(a.id.low>>>0,a.id.high>>>0).toNumber())),a.image!=null&&(y.image=String(a.image)),a.title!=null&&(y.title=String(a.title)),y},n.toObject=function(a,y){y||(y={});let s={};if(y.defaults){if(r.Long){let v=new r.Long(0,0,!1);s.id=y.longs===String?v.toString():y.longs===Number?v.toNumber():v}else s.id=y.longs===String?"0":0;s.image="",s.title=""}return a.id!=null&&a.hasOwnProperty("id")&&(typeof a.id=="number"?s.id=y.longs===String?String(a.id):a.id:s.id=y.longs===String?r.Long.prototype.toString.call(a.id):y.longs===Number?new r.LongBits(a.id.low>>>0,a.id.high>>>0).toNumber():a.id),a.image!=null&&a.hasOwnProperty("image")&&(s.image=a.image),a.title!=null&&a.hasOwnProperty("title")&&(s.title=a.title),s},n.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},n.getTypeUrl=function(a){return a===void 0&&(a="type.googleapis.com"),a+"/bilibili.main.community.reply.v2.SubjectDescriptionReply.InputConfig.GradePanel.Grade"},n}(),i}(),t}(),l.EmoteConfig=function(){function t(i){if(this.suggestEmotes=[],i)for(let n=Object.keys(i),o=0;o>>3){case 1:{y.jumpEmoteDisabled=n.bool();break}case 2:{y.suggestEmotes&&y.suggestEmotes.length||(y.suggestEmotes=[]),y.suggestEmotes.push(u.bilibili.main.community.reply.v2.Emote.decode(n,n.uint32()));break}default:n.skipType(s&7);break}}return y},t.fromObject=function(n){if(n instanceof u.bilibili.main.community.reply.v2.SubjectDescriptionReply.EmoteConfig)return n;let o=new u.bilibili.main.community.reply.v2.SubjectDescriptionReply.EmoteConfig;if(n.jumpEmoteDisabled!=null&&(o.jumpEmoteDisabled=!!n.jumpEmoteDisabled),n.suggestEmotes){if(!Array.isArray(n.suggestEmotes))throw TypeError(".bilibili.main.community.reply.v2.SubjectDescriptionReply.EmoteConfig.suggestEmotes: array expected");o.suggestEmotes=[];for(let a=0;a>>3){case 1:{y.id=n.int64();break}case 2:{y.title=n.string();break}case 3:{y.eventId=n.string();break}default:n.skipType(s&7);break}}return y},t.fromObject=function(n){if(n instanceof u.bilibili.main.community.reply.v2.SubjectDescriptionReply.FilterTag)return n;let o=new u.bilibili.main.community.reply.v2.SubjectDescriptionReply.FilterTag;return n.id!=null&&(r.Long?(o.id=r.Long.fromValue(n.id)).unsigned=!1:typeof n.id=="string"?o.id=parseInt(n.id,10):typeof n.id=="number"?o.id=n.id:typeof n.id=="object"&&(o.id=new r.LongBits(n.id.low>>>0,n.id.high>>>0).toNumber())),n.title!=null&&(o.title=String(n.title)),n.eventId!=null&&(o.eventId=String(n.eventId)),o},t.toObject=function(n,o){o||(o={});let a={};if(o.defaults){if(r.Long){let y=new r.Long(0,0,!1);a.id=o.longs===String?y.toString():o.longs===Number?y.toNumber():y}else a.id=o.longs===String?"0":0;a.title="",a.eventId=""}return n.id!=null&&n.hasOwnProperty("id")&&(typeof n.id=="number"?a.id=o.longs===String?String(n.id):n.id:a.id=o.longs===String?r.Long.prototype.toString.call(n.id):o.longs===Number?new r.LongBits(n.id.low>>>0,n.id.high>>>0).toNumber():n.id),n.title!=null&&n.hasOwnProperty("title")&&(a.title=n.title),n.eventId!=null&&n.hasOwnProperty("eventId")&&(a.eventId=n.eventId),a},t.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},t.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/bilibili.main.community.reply.v2.SubjectDescriptionReply.FilterTag"},t}(),l}(),e.SubjectID=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.oid=i.int64();break}case 2:{a.type=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.community.reply.v2.SubjectID)return i;let n=new u.bilibili.main.community.reply.v2.SubjectID;return i.oid!=null&&(r.Long?(n.oid=r.Long.fromValue(i.oid)).unsigned=!1:typeof i.oid=="string"?n.oid=parseInt(i.oid,10):typeof i.oid=="number"?n.oid=i.oid:typeof i.oid=="object"&&(n.oid=new r.LongBits(i.oid.low>>>0,i.oid.high>>>0).toNumber())),i.type!=null&&(r.Long?(n.type=r.Long.fromValue(i.type)).unsigned=!1:typeof i.type=="string"?n.type=parseInt(i.type,10):typeof i.type=="number"?n.type=i.type:typeof i.type=="object"&&(n.type=new r.LongBits(i.type.low>>>0,i.type.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.oid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.oid=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.type=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.type=n.longs===String?"0":0}return i.oid!=null&&i.hasOwnProperty("oid")&&(typeof i.oid=="number"?o.oid=n.longs===String?String(i.oid):i.oid:o.oid=n.longs===String?r.Long.prototype.toString.call(i.oid):n.longs===Number?new r.LongBits(i.oid.low>>>0,i.oid.high>>>0).toNumber():i.oid),i.type!=null&&i.hasOwnProperty("type")&&(typeof i.type=="number"?o.type=n.longs===String?String(i.type):i.type:o.type=n.longs===String?r.Long.prototype.toString.call(i.type):n.longs===Number?new r.LongBits(i.type.low>>>0,i.type.high>>>0).toNumber():i.type),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.community.reply.v2.SubjectID"},l}(),e.Mode=function(){let l={},t=Object.create(l);return t[l[0]="MODE_DEFAULT"]=0,t[l[2]="MODE_TIME"]=2,t[l[3]="MODE_HOT"]=3,t}(),e.PlayerParams=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.isStory=i.bool();break}case 2:{a.disableFilterTag=i.bool();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.community.reply.v2.PlayerParams)return i;let n=new u.bilibili.main.community.reply.v2.PlayerParams;return i.isStory!=null&&(n.isStory=!!i.isStory),i.disableFilterTag!=null&&(n.disableFilterTag=!!i.disableFilterTag),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.isStory=!1,o.disableFilterTag=!1),i.isStory!=null&&i.hasOwnProperty("isStory")&&(o.isStory=i.isStory),i.disableFilterTag!=null&&i.hasOwnProperty("disableFilterTag")&&(o.disableFilterTag=i.disableFilterTag),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.community.reply.v2.PlayerParams"},l}(),e.UserCallbackScene=function(){let l={},t=Object.create(l);return t[l[0]="USER_CALLBACK_SCENE_DEFAULT"]=0,t[l[1]="USER_CALLBACK_SCENE_INSERT"]=1,t[l[2]="USER_CALLBACK_SCENE_RECOMMEND_SUPERB_REPLY"]=2,t}(),e.UserCallbackAction=function(){let l={},t=Object.create(l);return t[l[0]="USER_CALLBACK_ACTION_DEFAULT"]=0,t[l[1]="USER_CALLBACK_ACTION_DISMISS"]=1,t}(),e.UserCallback=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.scene=i.int32();break}case 2:{a.action=i.int32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.community.reply.v2.UserCallback)return i;let n=new u.bilibili.main.community.reply.v2.UserCallback;switch(i.scene){default:if(typeof i.scene=="number"){n.scene=i.scene;break}break;case"USER_CALLBACK_SCENE_DEFAULT":case 0:n.scene=0;break;case"USER_CALLBACK_SCENE_INSERT":case 1:n.scene=1;break;case"USER_CALLBACK_SCENE_RECOMMEND_SUPERB_REPLY":case 2:n.scene=2;break}switch(i.action){default:if(typeof i.action=="number"){n.action=i.action;break}break;case"USER_CALLBACK_ACTION_DEFAULT":case 0:n.action=0;break;case"USER_CALLBACK_ACTION_DISMISS":case 1:n.action=1;break}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.scene=n.enums===String?"USER_CALLBACK_SCENE_DEFAULT":0,o.action=n.enums===String?"USER_CALLBACK_ACTION_DEFAULT":0),i.scene!=null&&i.hasOwnProperty("scene")&&(o.scene=n.enums===String?u.bilibili.main.community.reply.v2.UserCallbackScene[i.scene]===void 0?i.scene:u.bilibili.main.community.reply.v2.UserCallbackScene[i.scene]:i.scene),i.action!=null&&i.hasOwnProperty("action")&&(o.action=n.enums===String?u.bilibili.main.community.reply.v2.UserCallbackAction[i.action]===void 0?i.action:u.bilibili.main.community.reply.v2.UserCallbackAction[i.action]:i.action),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.community.reply.v2.UserCallback"},l}(),e.EditorIconState=function(){let l={},t=Object.create(l);return t[l[0]="EditorIconState_DEFAULT"]=0,t[l[1]="EditorIconState_ENABLE"]=1,t[l[2]="EditorIconState_DISABLE"]=2,t[l[3]="EditorIconState_HIDE"]=3,t}(),e.TextStyle=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.fontSize=i.int32();break}case 2:{a.fontStyle=i.int32();break}case 3:{a.textDayColor=i.string();break}case 4:{a.textNightColor=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.community.reply.v2.TextStyle)return i;let n=new u.bilibili.main.community.reply.v2.TextStyle;switch(i.fontSize!=null&&(n.fontSize=i.fontSize|0),i.fontStyle){default:if(typeof i.fontStyle=="number"){n.fontStyle=i.fontStyle;break}break;case"NORMAL":case 0:n.fontStyle=0;break;case"BOLD":case 1:n.fontStyle=1;break}return i.textDayColor!=null&&(n.textDayColor=String(i.textDayColor)),i.textNightColor!=null&&(n.textNightColor=String(i.textNightColor)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.fontSize=0,o.fontStyle=n.enums===String?"NORMAL":0,o.textDayColor="",o.textNightColor=""),i.fontSize!=null&&i.hasOwnProperty("fontSize")&&(o.fontSize=i.fontSize),i.fontStyle!=null&&i.hasOwnProperty("fontStyle")&&(o.fontStyle=n.enums===String?u.bilibili.main.community.reply.v2.TextStyle.FontStyle[i.fontStyle]===void 0?i.fontStyle:u.bilibili.main.community.reply.v2.TextStyle.FontStyle[i.fontStyle]:i.fontStyle),i.textDayColor!=null&&i.hasOwnProperty("textDayColor")&&(o.textDayColor=i.textDayColor),i.textNightColor!=null&&i.hasOwnProperty("textNightColor")&&(o.textNightColor=i.textNightColor),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.community.reply.v2.TextStyle"},l.FontStyle=function(){let t={},i=Object.create(t);return i[t[0]="NORMAL"]=0,i[t[1]="BOLD"]=1,i}(),l}(),e.EmptyPage=function(){function l(t){if(this.texts=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.imageUrl=i.string();break}case 2:{a.texts&&a.texts.length||(a.texts=[]),a.texts.push(u.bilibili.main.community.reply.v2.EmptyPage.Text.decode(i,i.uint32()));break}case 3:{a.leftButton=u.bilibili.main.community.reply.v2.EmptyPage.Button.decode(i,i.uint32());break}case 4:{a.rightButton=u.bilibili.main.community.reply.v2.EmptyPage.Button.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.community.reply.v2.EmptyPage)return i;let n=new u.bilibili.main.community.reply.v2.EmptyPage;if(i.imageUrl!=null&&(n.imageUrl=String(i.imageUrl)),i.texts){if(!Array.isArray(i.texts))throw TypeError(".bilibili.main.community.reply.v2.EmptyPage.texts: array expected");n.texts=[];for(let o=0;o>>3){case 1:{y.raw=n.string();break}case 2:{y.style=u.bilibili.main.community.reply.v2.TextStyle.decode(n,n.uint32());break}case 3:{y.action=n.int32();break}default:n.skipType(s&7);break}}return y},t.fromObject=function(n){if(n instanceof u.bilibili.main.community.reply.v2.EmptyPage.Text)return n;let o=new u.bilibili.main.community.reply.v2.EmptyPage.Text;if(n.raw!=null&&(o.raw=String(n.raw)),n.style!=null){if(typeof n.style!="object")throw TypeError(".bilibili.main.community.reply.v2.EmptyPage.Text.style: object expected");o.style=u.bilibili.main.community.reply.v2.TextStyle.fromObject(n.style)}switch(n.action){default:if(typeof n.action=="number"){o.action=n.action;break}break;case"UNAVAILABLE":case 0:o.action=0;break;case"SHOW_KEYBOARD":case 1:o.action=1;break;case"SEND_REPLY_WITH_BOLD_TEXT":case 2:o.action=2;break}return o},t.toObject=function(n,o){o||(o={});let a={};return o.defaults&&(a.raw="",a.style=null,a.action=o.enums===String?"UNAVAILABLE":0),n.raw!=null&&n.hasOwnProperty("raw")&&(a.raw=n.raw),n.style!=null&&n.hasOwnProperty("style")&&(a.style=u.bilibili.main.community.reply.v2.TextStyle.toObject(n.style,o)),n.action!=null&&n.hasOwnProperty("action")&&(a.action=o.enums===String?u.bilibili.main.community.reply.v2.EmptyPage.Action[n.action]===void 0?n.action:u.bilibili.main.community.reply.v2.EmptyPage.Action[n.action]:n.action),a},t.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},t.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/bilibili.main.community.reply.v2.EmptyPage.Text"},t}(),l.Button=function(){function t(i){if(i)for(let n=Object.keys(i),o=0;o>>3){case 1:{y.title=n.string();break}case 2:{y.action=n.int32();break}default:n.skipType(s&7);break}}return y},t.fromObject=function(n){if(n instanceof u.bilibili.main.community.reply.v2.EmptyPage.Button)return n;let o=new u.bilibili.main.community.reply.v2.EmptyPage.Button;switch(n.title!=null&&(o.title=String(n.title)),n.action){default:if(typeof n.action=="number"){o.action=n.action;break}break;case"UNAVAILABLE":case 0:o.action=0;break;case"SHOW_KEYBOARD":case 1:o.action=1;break;case"SEND_REPLY_WITH_BOLD_TEXT":case 2:o.action=2;break}return o},t.toObject=function(n,o){o||(o={});let a={};return o.defaults&&(a.title="",a.action=o.enums===String?"UNAVAILABLE":0),n.title!=null&&n.hasOwnProperty("title")&&(a.title=n.title),n.action!=null&&n.hasOwnProperty("action")&&(a.action=o.enums===String?u.bilibili.main.community.reply.v2.EmptyPage.Action[n.action]===void 0?n.action:u.bilibili.main.community.reply.v2.EmptyPage.Action[n.action]:n.action),a},t.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},t.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/bilibili.main.community.reply.v2.EmptyPage.Button"},t}(),l}(),e.Emote=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.size=i.int64();break}case 2:{a.url=i.string();break}case 3:{a.jumpUrl=i.string();break}case 4:{a.jumpTitle=i.string();break}case 5:{a.id=i.int64();break}case 6:{a.packageId=i.int64();break}case 7:{a.gifUrl=i.string();break}case 8:{a.text=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.community.reply.v2.Emote)return i;let n=new u.bilibili.main.community.reply.v2.Emote;return i.size!=null&&(r.Long?(n.size=r.Long.fromValue(i.size)).unsigned=!1:typeof i.size=="string"?n.size=parseInt(i.size,10):typeof i.size=="number"?n.size=i.size:typeof i.size=="object"&&(n.size=new r.LongBits(i.size.low>>>0,i.size.high>>>0).toNumber())),i.url!=null&&(n.url=String(i.url)),i.jumpUrl!=null&&(n.jumpUrl=String(i.jumpUrl)),i.jumpTitle!=null&&(n.jumpTitle=String(i.jumpTitle)),i.id!=null&&(r.Long?(n.id=r.Long.fromValue(i.id)).unsigned=!1:typeof i.id=="string"?n.id=parseInt(i.id,10):typeof i.id=="number"?n.id=i.id:typeof i.id=="object"&&(n.id=new r.LongBits(i.id.low>>>0,i.id.high>>>0).toNumber())),i.packageId!=null&&(r.Long?(n.packageId=r.Long.fromValue(i.packageId)).unsigned=!1:typeof i.packageId=="string"?n.packageId=parseInt(i.packageId,10):typeof i.packageId=="number"?n.packageId=i.packageId:typeof i.packageId=="object"&&(n.packageId=new r.LongBits(i.packageId.low>>>0,i.packageId.high>>>0).toNumber())),i.gifUrl!=null&&(n.gifUrl=String(i.gifUrl)),i.text!=null&&(n.text=String(i.text)),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.size=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.size=n.longs===String?"0":0;if(o.url="",o.jumpUrl="",o.jumpTitle="",r.Long){let a=new r.Long(0,0,!1);o.id=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.id=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.packageId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.packageId=n.longs===String?"0":0;o.gifUrl="",o.text=""}return i.size!=null&&i.hasOwnProperty("size")&&(typeof i.size=="number"?o.size=n.longs===String?String(i.size):i.size:o.size=n.longs===String?r.Long.prototype.toString.call(i.size):n.longs===Number?new r.LongBits(i.size.low>>>0,i.size.high>>>0).toNumber():i.size),i.url!=null&&i.hasOwnProperty("url")&&(o.url=i.url),i.jumpUrl!=null&&i.hasOwnProperty("jumpUrl")&&(o.jumpUrl=i.jumpUrl),i.jumpTitle!=null&&i.hasOwnProperty("jumpTitle")&&(o.jumpTitle=i.jumpTitle),i.id!=null&&i.hasOwnProperty("id")&&(typeof i.id=="number"?o.id=n.longs===String?String(i.id):i.id:o.id=n.longs===String?r.Long.prototype.toString.call(i.id):n.longs===Number?new r.LongBits(i.id.low>>>0,i.id.high>>>0).toNumber():i.id),i.packageId!=null&&i.hasOwnProperty("packageId")&&(typeof i.packageId=="number"?o.packageId=n.longs===String?String(i.packageId):i.packageId:o.packageId=n.longs===String?r.Long.prototype.toString.call(i.packageId):n.longs===Number?new r.LongBits(i.packageId.low>>>0,i.packageId.high>>>0).toNumber():i.packageId),i.gifUrl!=null&&i.hasOwnProperty("gifUrl")&&(o.gifUrl=i.gifUrl),i.text!=null&&i.hasOwnProperty("text")&&(o.text=i.text),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.community.reply.v2.Emote"},l}(),e.Resource=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.bizKind=i.int32();break}case 2:{a.url=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.main.community.reply.v2.Resource)return i;let n=new u.bilibili.main.community.reply.v2.Resource;switch(i.bizKind){default:if(typeof i.bizKind=="number"){n.bizKind=i.bizKind;break}break;case"UNKNOWN":case 0:n.bizKind=0;break;case"LIKE_SUCCESS":case 1:n.bizKind=1;break;case"REPLY_SUCCESS":case 2:n.bizKind=2;break;case"REPLY_EASTER_EGG":case 3:n.bizKind=3;break}return i.url!=null&&(n.url=String(i.url)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.bizKind=n.enums===String?"UNKNOWN":0,o.url=""),i.bizKind!=null&&i.hasOwnProperty("bizKind")&&(o.bizKind=n.enums===String?u.bilibili.main.community.reply.v2.Resource.BizKind[i.bizKind]===void 0?i.bizKind:u.bilibili.main.community.reply.v2.Resource.BizKind[i.bizKind]:i.bizKind),i.url!=null&&i.hasOwnProperty("url")&&(o.url=i.url),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.main.community.reply.v2.Resource"},l.BizKind=function(){let t={},i=Object.create(t);return i[t[0]="UNKNOWN"]=0,i[t[1]="LIKE_SUCCESS"]=1,i[t[2]="REPLY_SUCCESS"]=2,i[t[3]="REPLY_EASTER_EGG"]=3,i}(),l}(),e}(),c}(),p}(),d}(),O.extension=function(){let d={};return d.crane=function(){return{}}(),d}(),O.gaia=function(){let d={};return d.gw=function(){let p={};return p.Gaia=function(){function c(e,l,t){b.rpc.Service.call(this,e,l,t)}return(c.prototype=Object.create(b.rpc.Service.prototype)).constructor=c,c.create=function(l,t,i){return new this(l,t,i)},Object.defineProperty(c.prototype.exUploadAppList=function e(l,t){return this.rpcCall(e,u.bilibili.gaia.gw.GaiaEncryptMsgReq,u.bilibili.gaia.gw.UploadAppListReply,l,t)},"name",{value:"ExUploadAppList"}),Object.defineProperty(c.prototype.exFetchPublicKey=function e(l,t){return this.rpcCall(e,u.google.protobuf.Empty,u.bilibili.gaia.gw.FetchPublicKeyReply,l,t)},"name",{value:"ExFetchPublicKey"}),Object.defineProperty(c.prototype.exClimbAppleTrees=function e(l,t){return this.rpcCall(e,u.bilibili.gaia.gw.GaiaEncryptMsgReq,u.bilibili.gaia.gw.UploadAppListReply,l,t)},"name",{value:"ExClimbAppleTrees"}),Object.defineProperty(c.prototype.exGetAxe=function e(l,t){return this.rpcCall(e,u.google.protobuf.Empty,u.bilibili.gaia.gw.FetchPublicKeyReply,l,t)},"name",{value:"ExGetAxe"}),c}(),p.FetchPublicKeyReply=function(){function c(e){if(e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.version=l.string();break}case 2:{n.publicKey=l.string();break}case 3:{n.deadline=l.int64();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.gaia.gw.FetchPublicKeyReply)return l;let t=new u.bilibili.gaia.gw.FetchPublicKeyReply;return l.version!=null&&(t.version=String(l.version)),l.publicKey!=null&&(t.publicKey=String(l.publicKey)),l.deadline!=null&&(r.Long?(t.deadline=r.Long.fromValue(l.deadline)).unsigned=!1:typeof l.deadline=="string"?t.deadline=parseInt(l.deadline,10):typeof l.deadline=="number"?t.deadline=l.deadline:typeof l.deadline=="object"&&(t.deadline=new r.LongBits(l.deadline.low>>>0,l.deadline.high>>>0).toNumber())),t},c.toObject=function(l,t){t||(t={});let i={};if(t.defaults)if(i.version="",i.publicKey="",r.Long){let n=new r.Long(0,0,!1);i.deadline=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.deadline=t.longs===String?"0":0;return l.version!=null&&l.hasOwnProperty("version")&&(i.version=l.version),l.publicKey!=null&&l.hasOwnProperty("publicKey")&&(i.publicKey=l.publicKey),l.deadline!=null&&l.hasOwnProperty("deadline")&&(typeof l.deadline=="number"?i.deadline=t.longs===String?String(l.deadline):l.deadline:i.deadline=t.longs===String?r.Long.prototype.toString.call(l.deadline):t.longs===Number?new r.LongBits(l.deadline.low>>>0,l.deadline.high>>>0).toNumber():l.deadline),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.gaia.gw.FetchPublicKeyReply"},c}(),p.GaiaDeviceBasicInfo=function(){function c(e){if(e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.platform=l.string();break}case 2:{n.device=l.string();break}case 3:{n.mobiApp=l.string();break}case 4:{n.origin=l.string();break}case 5:{n.appId=l.string();break}case 6:{n.sdkver=l.string();break}case 7:{n.appVersion=l.string();break}case 8:{n.appVersionCode=l.string();break}case 9:{n.build=l.string();break}case 10:{n.channel=l.string();break}case 11:{n.brand=l.string();break}case 12:{n.model=l.string();break}case 13:{n.osver=l.string();break}case 14:{n.userAgent=l.string();break}case 15:{n.buvidLocal=l.string();break}case 16:{n.buvid=l.string();break}case 17:{n.mid=l.string();break}case 18:{n.fts=l.int64();break}case 19:{n.first=l.int32();break}case 20:{n.network=l.string();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.gaia.gw.GaiaDeviceBasicInfo)return l;let t=new u.bilibili.gaia.gw.GaiaDeviceBasicInfo;return l.platform!=null&&(t.platform=String(l.platform)),l.device!=null&&(t.device=String(l.device)),l.mobiApp!=null&&(t.mobiApp=String(l.mobiApp)),l.origin!=null&&(t.origin=String(l.origin)),l.appId!=null&&(t.appId=String(l.appId)),l.sdkver!=null&&(t.sdkver=String(l.sdkver)),l.appVersion!=null&&(t.appVersion=String(l.appVersion)),l.appVersionCode!=null&&(t.appVersionCode=String(l.appVersionCode)),l.build!=null&&(t.build=String(l.build)),l.channel!=null&&(t.channel=String(l.channel)),l.brand!=null&&(t.brand=String(l.brand)),l.model!=null&&(t.model=String(l.model)),l.osver!=null&&(t.osver=String(l.osver)),l.userAgent!=null&&(t.userAgent=String(l.userAgent)),l.buvidLocal!=null&&(t.buvidLocal=String(l.buvidLocal)),l.buvid!=null&&(t.buvid=String(l.buvid)),l.mid!=null&&(t.mid=String(l.mid)),l.fts!=null&&(r.Long?(t.fts=r.Long.fromValue(l.fts)).unsigned=!1:typeof l.fts=="string"?t.fts=parseInt(l.fts,10):typeof l.fts=="number"?t.fts=l.fts:typeof l.fts=="object"&&(t.fts=new r.LongBits(l.fts.low>>>0,l.fts.high>>>0).toNumber())),l.first!=null&&(t.first=l.first|0),l.network!=null&&(t.network=String(l.network)),t},c.toObject=function(l,t){t||(t={});let i={};if(t.defaults){if(i.platform="",i.device="",i.mobiApp="",i.origin="",i.appId="",i.sdkver="",i.appVersion="",i.appVersionCode="",i.build="",i.channel="",i.brand="",i.model="",i.osver="",i.userAgent="",i.buvidLocal="",i.buvid="",i.mid="",r.Long){let n=new r.Long(0,0,!1);i.fts=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.fts=t.longs===String?"0":0;i.first=0,i.network=""}return l.platform!=null&&l.hasOwnProperty("platform")&&(i.platform=l.platform),l.device!=null&&l.hasOwnProperty("device")&&(i.device=l.device),l.mobiApp!=null&&l.hasOwnProperty("mobiApp")&&(i.mobiApp=l.mobiApp),l.origin!=null&&l.hasOwnProperty("origin")&&(i.origin=l.origin),l.appId!=null&&l.hasOwnProperty("appId")&&(i.appId=l.appId),l.sdkver!=null&&l.hasOwnProperty("sdkver")&&(i.sdkver=l.sdkver),l.appVersion!=null&&l.hasOwnProperty("appVersion")&&(i.appVersion=l.appVersion),l.appVersionCode!=null&&l.hasOwnProperty("appVersionCode")&&(i.appVersionCode=l.appVersionCode),l.build!=null&&l.hasOwnProperty("build")&&(i.build=l.build),l.channel!=null&&l.hasOwnProperty("channel")&&(i.channel=l.channel),l.brand!=null&&l.hasOwnProperty("brand")&&(i.brand=l.brand),l.model!=null&&l.hasOwnProperty("model")&&(i.model=l.model),l.osver!=null&&l.hasOwnProperty("osver")&&(i.osver=l.osver),l.userAgent!=null&&l.hasOwnProperty("userAgent")&&(i.userAgent=l.userAgent),l.buvidLocal!=null&&l.hasOwnProperty("buvidLocal")&&(i.buvidLocal=l.buvidLocal),l.buvid!=null&&l.hasOwnProperty("buvid")&&(i.buvid=l.buvid),l.mid!=null&&l.hasOwnProperty("mid")&&(i.mid=l.mid),l.fts!=null&&l.hasOwnProperty("fts")&&(typeof l.fts=="number"?i.fts=t.longs===String?String(l.fts):l.fts:i.fts=t.longs===String?r.Long.prototype.toString.call(l.fts):t.longs===Number?new r.LongBits(l.fts.low>>>0,l.fts.high>>>0).toNumber():l.fts),l.first!=null&&l.hasOwnProperty("first")&&(i.first=l.first),l.network!=null&&l.hasOwnProperty("network")&&(i.network=l.network),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.gaia.gw.GaiaDeviceBasicInfo"},c}(),p.DeviceAppList=function(){function c(e){if(this.systemAppList=[],this.userAppList=[],e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.source=l.string();break}case 2:{n.systemAppList&&n.systemAppList.length||(n.systemAppList=[]),n.systemAppList.push(l.string());break}case 3:{n.userAppList&&n.userAppList.length||(n.userAppList=[]),n.userAppList.push(l.string());break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.gaia.gw.DeviceAppList)return l;let t=new u.bilibili.gaia.gw.DeviceAppList;if(l.source!=null&&(t.source=String(l.source)),l.systemAppList){if(!Array.isArray(l.systemAppList))throw TypeError(".bilibili.gaia.gw.DeviceAppList.systemAppList: array expected");t.systemAppList=[];for(let i=0;i>>3){case 1:{n.encodeType=l.int32();break}case 2:{n.payloadType=l.int32();break}case 3:{n.encodedAesKey=l.bytes();break}case 4:{n.ts=l.int64();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.gaia.gw.GaiaMsgHeader)return l;let t=new u.bilibili.gaia.gw.GaiaMsgHeader;switch(l.encodeType){default:if(typeof l.encodeType=="number"){t.encodeType=l.encodeType;break}break;case"INVALID_ENCRYPT_TYPE":case 0:t.encodeType=0;break;case"CLIENT_AES":case 1:t.encodeType=1;break;case"SERVER_RSA_AES":case 2:t.encodeType=2;break}switch(l.payloadType){default:if(typeof l.payloadType=="number"){t.payloadType=l.payloadType;break}break;case"INVALID_PAYLOAD":case 0:t.payloadType=0;break;case"DEVICE_APP_LIST":case 1:t.payloadType=1;break}return l.encodedAesKey!=null&&(typeof l.encodedAesKey=="string"?r.base64.decode(l.encodedAesKey,t.encodedAesKey=r.newBuffer(r.base64.length(l.encodedAesKey)),0):l.encodedAesKey.length>=0&&(t.encodedAesKey=l.encodedAesKey)),l.ts!=null&&(r.Long?(t.ts=r.Long.fromValue(l.ts)).unsigned=!1:typeof l.ts=="string"?t.ts=parseInt(l.ts,10):typeof l.ts=="number"?t.ts=l.ts:typeof l.ts=="object"&&(t.ts=new r.LongBits(l.ts.low>>>0,l.ts.high>>>0).toNumber())),t},c.toObject=function(l,t){t||(t={});let i={};if(t.defaults)if(i.encodeType=t.enums===String?"INVALID_ENCRYPT_TYPE":0,i.payloadType=t.enums===String?"INVALID_PAYLOAD":0,t.bytes===String?i.encodedAesKey="":(i.encodedAesKey=[],t.bytes!==Array&&(i.encodedAesKey=r.newBuffer(i.encodedAesKey))),r.Long){let n=new r.Long(0,0,!1);i.ts=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.ts=t.longs===String?"0":0;return l.encodeType!=null&&l.hasOwnProperty("encodeType")&&(i.encodeType=t.enums===String?u.bilibili.gaia.gw.EncryptType[l.encodeType]===void 0?l.encodeType:u.bilibili.gaia.gw.EncryptType[l.encodeType]:l.encodeType),l.payloadType!=null&&l.hasOwnProperty("payloadType")&&(i.payloadType=t.enums===String?u.bilibili.gaia.gw.PayloadType[l.payloadType]===void 0?l.payloadType:u.bilibili.gaia.gw.PayloadType[l.payloadType]:l.payloadType),l.encodedAesKey!=null&&l.hasOwnProperty("encodedAesKey")&&(i.encodedAesKey=t.bytes===String?r.base64.encode(l.encodedAesKey,0,l.encodedAesKey.length):t.bytes===Array?Array.prototype.slice.call(l.encodedAesKey):l.encodedAesKey),l.ts!=null&&l.hasOwnProperty("ts")&&(typeof l.ts=="number"?i.ts=t.longs===String?String(l.ts):l.ts:i.ts=t.longs===String?r.Long.prototype.toString.call(l.ts):t.longs===Number?new r.LongBits(l.ts.low>>>0,l.ts.high>>>0).toNumber():l.ts),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.gaia.gw.GaiaMsgHeader"},c}(),p.GaiaEncryptMsgReq=function(){function c(e){if(e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.header=u.bilibili.gaia.gw.GaiaMsgHeader.decode(l,l.uint32());break}case 2:{n.encryptPayload=l.bytes();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.gaia.gw.GaiaEncryptMsgReq)return l;let t=new u.bilibili.gaia.gw.GaiaEncryptMsgReq;if(l.header!=null){if(typeof l.header!="object")throw TypeError(".bilibili.gaia.gw.GaiaEncryptMsgReq.header: object expected");t.header=u.bilibili.gaia.gw.GaiaMsgHeader.fromObject(l.header)}return l.encryptPayload!=null&&(typeof l.encryptPayload=="string"?r.base64.decode(l.encryptPayload,t.encryptPayload=r.newBuffer(r.base64.length(l.encryptPayload)),0):l.encryptPayload.length>=0&&(t.encryptPayload=l.encryptPayload)),t},c.toObject=function(l,t){t||(t={});let i={};return t.defaults&&(i.header=null,t.bytes===String?i.encryptPayload="":(i.encryptPayload=[],t.bytes!==Array&&(i.encryptPayload=r.newBuffer(i.encryptPayload)))),l.header!=null&&l.hasOwnProperty("header")&&(i.header=u.bilibili.gaia.gw.GaiaMsgHeader.toObject(l.header,t)),l.encryptPayload!=null&&l.hasOwnProperty("encryptPayload")&&(i.encryptPayload=t.bytes===String?r.base64.encode(l.encryptPayload,0,l.encryptPayload.length):t.bytes===Array?Array.prototype.slice.call(l.encryptPayload):l.encryptPayload),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.gaia.gw.GaiaEncryptMsgReq"},c}(),p.UploadAppListReply=function(){function c(e){if(e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.traceId=l.string();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.gaia.gw.UploadAppListReply)return l;let t=new u.bilibili.gaia.gw.UploadAppListReply;return l.traceId!=null&&(t.traceId=String(l.traceId)),t},c.toObject=function(l,t){t||(t={});let i={};return t.defaults&&(i.traceId=""),l.traceId!=null&&l.hasOwnProperty("traceId")&&(i.traceId=l.traceId),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.gaia.gw.UploadAppListReply"},c}(),p}(),d}(),O.im=function(){let d={};return d.customer=function(){let p={};return p.interface_=function(){let c={};return c.v1=function(){let e={};return e.CustomerInterface=function(){function l(t,i,n){b.rpc.Service.call(this,t,i,n)}return(l.prototype=Object.create(b.rpc.Service.prototype)).constructor=l,l.create=function(i,n,o){return new this(i,n,o)},Object.defineProperty(l.prototype.getCustomerSessions=function t(i,n){return this.rpcCall(t,u.bilibili.im.customer.interface_.v1.GetSessionsReq,u.bilibili.im.customer.interface_.v1.SessionsRsp,i,n)},"name",{value:"GetCustomerSessions"}),Object.defineProperty(l.prototype.sendCustomerMsg=function t(i,n){return this.rpcCall(t,u.bilibili.im.customer.interface_.v1.SendMsgReq,u.bilibili.im.customer.interface_.v1.SendMsgRsp,i,n)},"name",{value:"SendCustomerMsg"}),Object.defineProperty(l.prototype.syncFetchCustomerSessionMsgs=function t(i,n){return this.rpcCall(t,u.bilibili.im.customer.interface_.v1.SessionMsgReq,u.bilibili.im.customer.interface_.v1.SessionMsgRsp,i,n)},"name",{value:"SyncFetchCustomerSessionMsgs"}),Object.defineProperty(l.prototype.customerUpdateAck=function t(i,n){return this.rpcCall(t,u.bilibili.im.customer.interface_.v1.UpdateAckReq,u.bilibili.im.customer.interface_.v1.Empty,i,n)},"name",{value:"CustomerUpdateAck"}),Object.defineProperty(l.prototype.customerWindowOptions=function t(i,n){return this.rpcCall(t,u.bilibili.im.customer.interface_.v1.WindowOptionsReq,u.bilibili.im.customer.interface_.v1.WindowOptionsRsp,i,n)},"name",{value:"CustomerWindowOptions"}),Object.defineProperty(l.prototype.customerPreEvaluate=function t(i,n){return this.rpcCall(t,u.bilibili.im.customer.interface_.v1.PreEvaluateReq,u.bilibili.im.customer.interface_.v1.PreEvaluateRsp,i,n)},"name",{value:"CustomerPreEvaluate"}),Object.defineProperty(l.prototype.outCustomerQueue=function t(i,n){return this.rpcCall(t,u.bilibili.im.customer.interface_.v1.OutCustomerQueueReq,u.bilibili.im.customer.interface_.v1.Empty,i,n)},"name",{value:"OutCustomerQueue"}),Object.defineProperty(l.prototype.getNewCustomerSessions=function t(i,n){return this.rpcCall(t,u.bilibili.im.customer.interface_.v1.GetNewSessionsReq,u.bilibili.im.customer.interface_.v1.SessionsRsp,i,n)},"name",{value:"GetNewCustomerSessions"}),Object.defineProperty(l.prototype.getCustomerSessDetail=function t(i,n){return this.rpcCall(t,u.bilibili.im.customer.interface_.v1.GetSessDetailReq,u.bilibili.im.customer.interface_.v1.GetSessDetailRsp,i,n)},"name",{value:"GetCustomerSessDetail"}),Object.defineProperty(l.prototype.getShopInfo=function t(i,n){return this.rpcCall(t,u.bilibili.im.customer.interface_.v1.ShopInfoReq,u.bilibili.im.customer.interface_.v1.ShopInfoRsp,i,n)},"name",{value:"GetShopInfo"}),Object.defineProperty(l.prototype.getShopCfg=function t(i,n){return this.rpcCall(t,u.bilibili.im.customer.interface_.v1.ShopCfgReq,u.bilibili.im.customer.interface_.v1.ShopCfgRsp,i,n)},"name",{value:"GetShopCfg"}),Object.defineProperty(l.prototype.setTop=function t(i,n){return this.rpcCall(t,u.bilibili.im.customer.interface_.v1.SetTopReq,u.bilibili.im.customer.interface_.v1.Empty,i,n)},"name",{value:"SetTop"}),Object.defineProperty(l.prototype.removeSession=function t(i,n){return this.rpcCall(t,u.bilibili.im.customer.interface_.v1.RemoveSessionReq,u.bilibili.im.customer.interface_.v1.Empty,i,n)},"name",{value:"RemoveSession"}),l}(),e.RemoveSessionReq=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.talkerId=i.int64();break}case 2:{a.shopId=i.int64();break}case 3:{a.shopFatherId=i.int64();break}case 4:{a.sessionType=i.int32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.im.customer.interface_.v1.RemoveSessionReq)return i;let n=new u.bilibili.im.customer.interface_.v1.RemoveSessionReq;return i.talkerId!=null&&(r.Long?(n.talkerId=r.Long.fromValue(i.talkerId)).unsigned=!1:typeof i.talkerId=="string"?n.talkerId=parseInt(i.talkerId,10):typeof i.talkerId=="number"?n.talkerId=i.talkerId:typeof i.talkerId=="object"&&(n.talkerId=new r.LongBits(i.talkerId.low>>>0,i.talkerId.high>>>0).toNumber())),i.shopId!=null&&(r.Long?(n.shopId=r.Long.fromValue(i.shopId)).unsigned=!1:typeof i.shopId=="string"?n.shopId=parseInt(i.shopId,10):typeof i.shopId=="number"?n.shopId=i.shopId:typeof i.shopId=="object"&&(n.shopId=new r.LongBits(i.shopId.low>>>0,i.shopId.high>>>0).toNumber())),i.shopFatherId!=null&&(r.Long?(n.shopFatherId=r.Long.fromValue(i.shopFatherId)).unsigned=!1:typeof i.shopFatherId=="string"?n.shopFatherId=parseInt(i.shopFatherId,10):typeof i.shopFatherId=="number"?n.shopFatherId=i.shopFatherId:typeof i.shopFatherId=="object"&&(n.shopFatherId=new r.LongBits(i.shopFatherId.low>>>0,i.shopFatherId.high>>>0).toNumber())),i.sessionType!=null&&(n.sessionType=i.sessionType|0),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.talkerId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.talkerId=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.shopId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.shopId=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.shopFatherId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.shopFatherId=n.longs===String?"0":0;o.sessionType=0}return i.talkerId!=null&&i.hasOwnProperty("talkerId")&&(typeof i.talkerId=="number"?o.talkerId=n.longs===String?String(i.talkerId):i.talkerId:o.talkerId=n.longs===String?r.Long.prototype.toString.call(i.talkerId):n.longs===Number?new r.LongBits(i.talkerId.low>>>0,i.talkerId.high>>>0).toNumber():i.talkerId),i.shopId!=null&&i.hasOwnProperty("shopId")&&(typeof i.shopId=="number"?o.shopId=n.longs===String?String(i.shopId):i.shopId:o.shopId=n.longs===String?r.Long.prototype.toString.call(i.shopId):n.longs===Number?new r.LongBits(i.shopId.low>>>0,i.shopId.high>>>0).toNumber():i.shopId),i.shopFatherId!=null&&i.hasOwnProperty("shopFatherId")&&(typeof i.shopFatherId=="number"?o.shopFatherId=n.longs===String?String(i.shopFatherId):i.shopFatherId:o.shopFatherId=n.longs===String?r.Long.prototype.toString.call(i.shopFatherId):n.longs===Number?new r.LongBits(i.shopFatherId.low>>>0,i.shopFatherId.high>>>0).toNumber():i.shopFatherId),i.sessionType!=null&&i.hasOwnProperty("sessionType")&&(o.sessionType=i.sessionType),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.im.customer.interface_.v1.RemoveSessionReq"},l}(),e.SetTopReq=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.talkerId=i.int64();break}case 2:{a.shopId=i.int64();break}case 3:{a.shopFatherId=i.int64();break}case 4:{a.sessionType=i.int32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.im.customer.interface_.v1.SetTopReq)return i;let n=new u.bilibili.im.customer.interface_.v1.SetTopReq;return i.talkerId!=null&&(r.Long?(n.talkerId=r.Long.fromValue(i.talkerId)).unsigned=!1:typeof i.talkerId=="string"?n.talkerId=parseInt(i.talkerId,10):typeof i.talkerId=="number"?n.talkerId=i.talkerId:typeof i.talkerId=="object"&&(n.talkerId=new r.LongBits(i.talkerId.low>>>0,i.talkerId.high>>>0).toNumber())),i.shopId!=null&&(r.Long?(n.shopId=r.Long.fromValue(i.shopId)).unsigned=!1:typeof i.shopId=="string"?n.shopId=parseInt(i.shopId,10):typeof i.shopId=="number"?n.shopId=i.shopId:typeof i.shopId=="object"&&(n.shopId=new r.LongBits(i.shopId.low>>>0,i.shopId.high>>>0).toNumber())),i.shopFatherId!=null&&(r.Long?(n.shopFatherId=r.Long.fromValue(i.shopFatherId)).unsigned=!1:typeof i.shopFatherId=="string"?n.shopFatherId=parseInt(i.shopFatherId,10):typeof i.shopFatherId=="number"?n.shopFatherId=i.shopFatherId:typeof i.shopFatherId=="object"&&(n.shopFatherId=new r.LongBits(i.shopFatherId.low>>>0,i.shopFatherId.high>>>0).toNumber())),i.sessionType!=null&&(n.sessionType=i.sessionType|0),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.talkerId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.talkerId=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.shopId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.shopId=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.shopFatherId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.shopFatherId=n.longs===String?"0":0;o.sessionType=0}return i.talkerId!=null&&i.hasOwnProperty("talkerId")&&(typeof i.talkerId=="number"?o.talkerId=n.longs===String?String(i.talkerId):i.talkerId:o.talkerId=n.longs===String?r.Long.prototype.toString.call(i.talkerId):n.longs===Number?new r.LongBits(i.talkerId.low>>>0,i.talkerId.high>>>0).toNumber():i.talkerId),i.shopId!=null&&i.hasOwnProperty("shopId")&&(typeof i.shopId=="number"?o.shopId=n.longs===String?String(i.shopId):i.shopId:o.shopId=n.longs===String?r.Long.prototype.toString.call(i.shopId):n.longs===Number?new r.LongBits(i.shopId.low>>>0,i.shopId.high>>>0).toNumber():i.shopId),i.shopFatherId!=null&&i.hasOwnProperty("shopFatherId")&&(typeof i.shopFatherId=="number"?o.shopFatherId=n.longs===String?String(i.shopFatherId):i.shopFatherId:o.shopFatherId=n.longs===String?r.Long.prototype.toString.call(i.shopFatherId):n.longs===Number?new r.LongBits(i.shopFatherId.low>>>0,i.shopFatherId.high>>>0).toNumber():i.shopFatherId),i.sessionType!=null&&i.hasOwnProperty("sessionType")&&(o.sessionType=i.sessionType),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.im.customer.interface_.v1.SetTopReq"},l}(),e.ShopCfgReq=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.shopId=i.uint64();break}case 2:{a.shopFatherId=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.im.customer.interface_.v1.ShopCfgReq)return i;let n=new u.bilibili.im.customer.interface_.v1.ShopCfgReq;return i.shopId!=null&&(r.Long?(n.shopId=r.Long.fromValue(i.shopId)).unsigned=!0:typeof i.shopId=="string"?n.shopId=parseInt(i.shopId,10):typeof i.shopId=="number"?n.shopId=i.shopId:typeof i.shopId=="object"&&(n.shopId=new r.LongBits(i.shopId.low>>>0,i.shopId.high>>>0).toNumber(!0))),i.shopFatherId!=null&&(r.Long?(n.shopFatherId=r.Long.fromValue(i.shopFatherId)).unsigned=!1:typeof i.shopFatherId=="string"?n.shopFatherId=parseInt(i.shopFatherId,10):typeof i.shopFatherId=="number"?n.shopFatherId=i.shopFatherId:typeof i.shopFatherId=="object"&&(n.shopFatherId=new r.LongBits(i.shopFatherId.low>>>0,i.shopFatherId.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!0);o.shopId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.shopId=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.shopFatherId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.shopFatherId=n.longs===String?"0":0}return i.shopId!=null&&i.hasOwnProperty("shopId")&&(typeof i.shopId=="number"?o.shopId=n.longs===String?String(i.shopId):i.shopId:o.shopId=n.longs===String?r.Long.prototype.toString.call(i.shopId):n.longs===Number?new r.LongBits(i.shopId.low>>>0,i.shopId.high>>>0).toNumber(!0):i.shopId),i.shopFatherId!=null&&i.hasOwnProperty("shopFatherId")&&(typeof i.shopFatherId=="number"?o.shopFatherId=n.longs===String?String(i.shopFatherId):i.shopFatherId:o.shopFatherId=n.longs===String?r.Long.prototype.toString.call(i.shopFatherId):n.longs===Number?new r.LongBits(i.shopFatherId.low>>>0,i.shopFatherId.high>>>0).toNumber():i.shopFatherId),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.im.customer.interface_.v1.ShopCfgReq"},l}(),e.ShopCfgRsp=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.announcement=u.bilibili.im.customer.interface_.v1.Announcement.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.im.customer.interface_.v1.ShopCfgRsp)return i;let n=new u.bilibili.im.customer.interface_.v1.ShopCfgRsp;if(i.announcement!=null){if(typeof i.announcement!="object")throw TypeError(".bilibili.im.customer.interface_.v1.ShopCfgRsp.announcement: object expected");n.announcement=u.bilibili.im.customer.interface_.v1.Announcement.fromObject(i.announcement)}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.announcement=null),i.announcement!=null&&i.hasOwnProperty("announcement")&&(o.announcement=u.bilibili.im.customer.interface_.v1.Announcement.toObject(i.announcement,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.im.customer.interface_.v1.ShopCfgRsp"},l}(),e.Announcement=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.enable=i.bool();break}case 2:{a.content=i.string();break}case 3:{a.jumpEnable=i.bool();break}case 4:{a.jumpUrl=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.im.customer.interface_.v1.Announcement)return i;let n=new u.bilibili.im.customer.interface_.v1.Announcement;return i.enable!=null&&(n.enable=!!i.enable),i.content!=null&&(n.content=String(i.content)),i.jumpEnable!=null&&(n.jumpEnable=!!i.jumpEnable),i.jumpUrl!=null&&(n.jumpUrl=String(i.jumpUrl)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.enable=!1,o.content="",o.jumpEnable=!1,o.jumpUrl=""),i.enable!=null&&i.hasOwnProperty("enable")&&(o.enable=i.enable),i.content!=null&&i.hasOwnProperty("content")&&(o.content=i.content),i.jumpEnable!=null&&i.hasOwnProperty("jumpEnable")&&(o.jumpEnable=i.jumpEnable),i.jumpUrl!=null&&i.hasOwnProperty("jumpUrl")&&(o.jumpUrl=i.jumpUrl),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.im.customer.interface_.v1.Announcement"},l}(),e.ShopInfoReq=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.shopId=i.uint64();break}case 2:{a.shopFatherId=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.im.customer.interface_.v1.ShopInfoReq)return i;let n=new u.bilibili.im.customer.interface_.v1.ShopInfoReq;return i.shopId!=null&&(r.Long?(n.shopId=r.Long.fromValue(i.shopId)).unsigned=!0:typeof i.shopId=="string"?n.shopId=parseInt(i.shopId,10):typeof i.shopId=="number"?n.shopId=i.shopId:typeof i.shopId=="object"&&(n.shopId=new r.LongBits(i.shopId.low>>>0,i.shopId.high>>>0).toNumber(!0))),i.shopFatherId!=null&&(r.Long?(n.shopFatherId=r.Long.fromValue(i.shopFatherId)).unsigned=!1:typeof i.shopFatherId=="string"?n.shopFatherId=parseInt(i.shopFatherId,10):typeof i.shopFatherId=="number"?n.shopFatherId=i.shopFatherId:typeof i.shopFatherId=="object"&&(n.shopFatherId=new r.LongBits(i.shopFatherId.low>>>0,i.shopFatherId.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!0);o.shopId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.shopId=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.shopFatherId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.shopFatherId=n.longs===String?"0":0}return i.shopId!=null&&i.hasOwnProperty("shopId")&&(typeof i.shopId=="number"?o.shopId=n.longs===String?String(i.shopId):i.shopId:o.shopId=n.longs===String?r.Long.prototype.toString.call(i.shopId):n.longs===Number?new r.LongBits(i.shopId.low>>>0,i.shopId.high>>>0).toNumber(!0):i.shopId),i.shopFatherId!=null&&i.hasOwnProperty("shopFatherId")&&(typeof i.shopFatherId=="number"?o.shopFatherId=n.longs===String?String(i.shopFatherId):i.shopFatherId:o.shopFatherId=n.longs===String?r.Long.prototype.toString.call(i.shopFatherId):n.longs===Number?new r.LongBits(i.shopFatherId.low>>>0,i.shopFatherId.high>>>0).toNumber():i.shopFatherId),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.im.customer.interface_.v1.ShopInfoReq"},l}(),e.ShopInfoRsp=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.name=i.string();break}case 2:{a.face=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.im.customer.interface_.v1.ShopInfoRsp)return i;let n=new u.bilibili.im.customer.interface_.v1.ShopInfoRsp;return i.name!=null&&(n.name=String(i.name)),i.face!=null&&(n.face=String(i.face)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.name="",o.face=""),i.name!=null&&i.hasOwnProperty("name")&&(o.name=i.name),i.face!=null&&i.hasOwnProperty("face")&&(o.face=i.face),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.im.customer.interface_.v1.ShopInfoRsp"},l}(),e.GetSessDetailReq=function(){function l(t){if(this.shop=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.shop&&a.shop.length||(a.shop=[]),a.shop.push(u.bilibili.im.customer.interface_.v1.Shop.decode(i,i.uint32()));break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.im.customer.interface_.v1.GetSessDetailReq)return i;let n=new u.bilibili.im.customer.interface_.v1.GetSessDetailReq;if(i.shop){if(!Array.isArray(i.shop))throw TypeError(".bilibili.im.customer.interface_.v1.GetSessDetailReq.shop: array expected");n.shop=[];for(let o=0;o>>3){case 1:{a.shopFatherId=i.uint64();break}case 2:{a.shopId=i.uint64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.im.customer.interface_.v1.Shop)return i;let n=new u.bilibili.im.customer.interface_.v1.Shop;return i.shopFatherId!=null&&(r.Long?(n.shopFatherId=r.Long.fromValue(i.shopFatherId)).unsigned=!0:typeof i.shopFatherId=="string"?n.shopFatherId=parseInt(i.shopFatherId,10):typeof i.shopFatherId=="number"?n.shopFatherId=i.shopFatherId:typeof i.shopFatherId=="object"&&(n.shopFatherId=new r.LongBits(i.shopFatherId.low>>>0,i.shopFatherId.high>>>0).toNumber(!0))),i.shopId!=null&&(r.Long?(n.shopId=r.Long.fromValue(i.shopId)).unsigned=!0:typeof i.shopId=="string"?n.shopId=parseInt(i.shopId,10):typeof i.shopId=="number"?n.shopId=i.shopId:typeof i.shopId=="object"&&(n.shopId=new r.LongBits(i.shopId.low>>>0,i.shopId.high>>>0).toNumber(!0))),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!0);o.shopFatherId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.shopFatherId=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!0);o.shopId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.shopId=n.longs===String?"0":0}return i.shopFatherId!=null&&i.hasOwnProperty("shopFatherId")&&(typeof i.shopFatherId=="number"?o.shopFatherId=n.longs===String?String(i.shopFatherId):i.shopFatherId:o.shopFatherId=n.longs===String?r.Long.prototype.toString.call(i.shopFatherId):n.longs===Number?new r.LongBits(i.shopFatherId.low>>>0,i.shopFatherId.high>>>0).toNumber(!0):i.shopFatherId),i.shopId!=null&&i.hasOwnProperty("shopId")&&(typeof i.shopId=="number"?o.shopId=n.longs===String?String(i.shopId):i.shopId:o.shopId=n.longs===String?r.Long.prototype.toString.call(i.shopId):n.longs===Number?new r.LongBits(i.shopId.low>>>0,i.shopId.high>>>0).toNumber(!0):i.shopId),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.im.customer.interface_.v1.Shop"},l}(),e.GetSessDetailRsp=function(){function l(t){if(this.sessionList=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.sessionList&&a.sessionList.length||(a.sessionList=[]),a.sessionList.push(u.bilibili.im.customer.model.SessionInfo.decode(i,i.uint32()));break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.im.customer.interface_.v1.GetSessDetailRsp)return i;let n=new u.bilibili.im.customer.interface_.v1.GetSessDetailRsp;if(i.sessionList){if(!Array.isArray(i.sessionList))throw TypeError(".bilibili.im.customer.interface_.v1.GetSessDetailRsp.sessionList: array expected");n.sessionList=[];for(let o=0;o>>3){case 1:{a.beginTs=i.uint64();break}case 2:{a.size=i.uint32();break}case 3:{a.recvUid=i.uint64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.im.customer.interface_.v1.GetNewSessionsReq)return i;let n=new u.bilibili.im.customer.interface_.v1.GetNewSessionsReq;return i.beginTs!=null&&(r.Long?(n.beginTs=r.Long.fromValue(i.beginTs)).unsigned=!0:typeof i.beginTs=="string"?n.beginTs=parseInt(i.beginTs,10):typeof i.beginTs=="number"?n.beginTs=i.beginTs:typeof i.beginTs=="object"&&(n.beginTs=new r.LongBits(i.beginTs.low>>>0,i.beginTs.high>>>0).toNumber(!0))),i.size!=null&&(n.size=i.size>>>0),i.recvUid!=null&&(r.Long?(n.recvUid=r.Long.fromValue(i.recvUid)).unsigned=!0:typeof i.recvUid=="string"?n.recvUid=parseInt(i.recvUid,10):typeof i.recvUid=="number"?n.recvUid=i.recvUid:typeof i.recvUid=="object"&&(n.recvUid=new r.LongBits(i.recvUid.low>>>0,i.recvUid.high>>>0).toNumber(!0))),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!0);o.beginTs=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.beginTs=n.longs===String?"0":0;if(o.size=0,r.Long){let a=new r.Long(0,0,!0);o.recvUid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.recvUid=n.longs===String?"0":0}return i.beginTs!=null&&i.hasOwnProperty("beginTs")&&(typeof i.beginTs=="number"?o.beginTs=n.longs===String?String(i.beginTs):i.beginTs:o.beginTs=n.longs===String?r.Long.prototype.toString.call(i.beginTs):n.longs===Number?new r.LongBits(i.beginTs.low>>>0,i.beginTs.high>>>0).toNumber(!0):i.beginTs),i.size!=null&&i.hasOwnProperty("size")&&(o.size=i.size),i.recvUid!=null&&i.hasOwnProperty("recvUid")&&(typeof i.recvUid=="number"?o.recvUid=n.longs===String?String(i.recvUid):i.recvUid:o.recvUid=n.longs===String?r.Long.prototype.toString.call(i.recvUid):n.longs===Number?new r.LongBits(i.recvUid.low>>>0,i.recvUid.high>>>0).toNumber(!0):i.recvUid),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.im.customer.interface_.v1.GetNewSessionsReq"},l}(),e.OutCustomerQueueReq=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.shopFatherId=i.uint64();break}case 2:{a.shopId=i.uint64();break}case 3:{a.msgKey=i.uint64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.im.customer.interface_.v1.OutCustomerQueueReq)return i;let n=new u.bilibili.im.customer.interface_.v1.OutCustomerQueueReq;return i.shopFatherId!=null&&(r.Long?(n.shopFatherId=r.Long.fromValue(i.shopFatherId)).unsigned=!0:typeof i.shopFatherId=="string"?n.shopFatherId=parseInt(i.shopFatherId,10):typeof i.shopFatherId=="number"?n.shopFatherId=i.shopFatherId:typeof i.shopFatherId=="object"&&(n.shopFatherId=new r.LongBits(i.shopFatherId.low>>>0,i.shopFatherId.high>>>0).toNumber(!0))),i.shopId!=null&&(r.Long?(n.shopId=r.Long.fromValue(i.shopId)).unsigned=!0:typeof i.shopId=="string"?n.shopId=parseInt(i.shopId,10):typeof i.shopId=="number"?n.shopId=i.shopId:typeof i.shopId=="object"&&(n.shopId=new r.LongBits(i.shopId.low>>>0,i.shopId.high>>>0).toNumber(!0))),i.msgKey!=null&&(r.Long?(n.msgKey=r.Long.fromValue(i.msgKey)).unsigned=!0:typeof i.msgKey=="string"?n.msgKey=parseInt(i.msgKey,10):typeof i.msgKey=="number"?n.msgKey=i.msgKey:typeof i.msgKey=="object"&&(n.msgKey=new r.LongBits(i.msgKey.low>>>0,i.msgKey.high>>>0).toNumber(!0))),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!0);o.shopFatherId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.shopFatherId=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!0);o.shopId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.shopId=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!0);o.msgKey=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.msgKey=n.longs===String?"0":0}return i.shopFatherId!=null&&i.hasOwnProperty("shopFatherId")&&(typeof i.shopFatherId=="number"?o.shopFatherId=n.longs===String?String(i.shopFatherId):i.shopFatherId:o.shopFatherId=n.longs===String?r.Long.prototype.toString.call(i.shopFatherId):n.longs===Number?new r.LongBits(i.shopFatherId.low>>>0,i.shopFatherId.high>>>0).toNumber(!0):i.shopFatherId),i.shopId!=null&&i.hasOwnProperty("shopId")&&(typeof i.shopId=="number"?o.shopId=n.longs===String?String(i.shopId):i.shopId:o.shopId=n.longs===String?r.Long.prototype.toString.call(i.shopId):n.longs===Number?new r.LongBits(i.shopId.low>>>0,i.shopId.high>>>0).toNumber(!0):i.shopId),i.msgKey!=null&&i.hasOwnProperty("msgKey")&&(typeof i.msgKey=="number"?o.msgKey=n.longs===String?String(i.msgKey):i.msgKey:o.msgKey=n.longs===String?r.Long.prototype.toString.call(i.msgKey):n.longs===Number?new r.LongBits(i.msgKey.low>>>0,i.msgKey.high>>>0).toNumber(!0):i.msgKey),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.im.customer.interface_.v1.OutCustomerQueueReq"},l}(),e.PreEvaluateReq=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.type=i.int32();break}case 2:{a.shopFatherId=i.uint64();break}case 3:{a.shopId=i.uint64();break}case 4:{a.msgKey=i.uint64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.im.customer.interface_.v1.PreEvaluateReq)return i;let n=new u.bilibili.im.customer.interface_.v1.PreEvaluateReq;switch(i.type){default:if(typeof i.type=="number"){n.type=i.type;break}break;case"EvaluateMachineMsg":case 0:n.type=0;break;case"EvaluateCustomer":case 1:n.type=1;break;case"EvaluateCustomerInvited":case 2:n.type=2;break}return i.shopFatherId!=null&&(r.Long?(n.shopFatherId=r.Long.fromValue(i.shopFatherId)).unsigned=!0:typeof i.shopFatherId=="string"?n.shopFatherId=parseInt(i.shopFatherId,10):typeof i.shopFatherId=="number"?n.shopFatherId=i.shopFatherId:typeof i.shopFatherId=="object"&&(n.shopFatherId=new r.LongBits(i.shopFatherId.low>>>0,i.shopFatherId.high>>>0).toNumber(!0))),i.shopId!=null&&(r.Long?(n.shopId=r.Long.fromValue(i.shopId)).unsigned=!0:typeof i.shopId=="string"?n.shopId=parseInt(i.shopId,10):typeof i.shopId=="number"?n.shopId=i.shopId:typeof i.shopId=="object"&&(n.shopId=new r.LongBits(i.shopId.low>>>0,i.shopId.high>>>0).toNumber(!0))),i.msgKey!=null&&(r.Long?(n.msgKey=r.Long.fromValue(i.msgKey)).unsigned=!0:typeof i.msgKey=="string"?n.msgKey=parseInt(i.msgKey,10):typeof i.msgKey=="number"?n.msgKey=i.msgKey:typeof i.msgKey=="object"&&(n.msgKey=new r.LongBits(i.msgKey.low>>>0,i.msgKey.high>>>0).toNumber(!0))),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(o.type=n.enums===String?"EvaluateMachineMsg":0,r.Long){let a=new r.Long(0,0,!0);o.shopFatherId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.shopFatherId=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!0);o.shopId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.shopId=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!0);o.msgKey=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.msgKey=n.longs===String?"0":0}return i.type!=null&&i.hasOwnProperty("type")&&(o.type=n.enums===String?u.bilibili.im.customer.model.EvaluateType[i.type]===void 0?i.type:u.bilibili.im.customer.model.EvaluateType[i.type]:i.type),i.shopFatherId!=null&&i.hasOwnProperty("shopFatherId")&&(typeof i.shopFatherId=="number"?o.shopFatherId=n.longs===String?String(i.shopFatherId):i.shopFatherId:o.shopFatherId=n.longs===String?r.Long.prototype.toString.call(i.shopFatherId):n.longs===Number?new r.LongBits(i.shopFatherId.low>>>0,i.shopFatherId.high>>>0).toNumber(!0):i.shopFatherId),i.shopId!=null&&i.hasOwnProperty("shopId")&&(typeof i.shopId=="number"?o.shopId=n.longs===String?String(i.shopId):i.shopId:o.shopId=n.longs===String?r.Long.prototype.toString.call(i.shopId):n.longs===Number?new r.LongBits(i.shopId.low>>>0,i.shopId.high>>>0).toNumber(!0):i.shopId),i.msgKey!=null&&i.hasOwnProperty("msgKey")&&(typeof i.msgKey=="number"?o.msgKey=n.longs===String?String(i.msgKey):i.msgKey:o.msgKey=n.longs===String?r.Long.prototype.toString.call(i.msgKey):n.longs===Number?new r.LongBits(i.msgKey.low>>>0,i.msgKey.high>>>0).toNumber(!0):i.msgKey),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.im.customer.interface_.v1.PreEvaluateReq"},l}(),e.PreEvaluateRsp=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.rsp=u.bilibili.im.customer.model.EvaluationShowInfo.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.im.customer.interface_.v1.PreEvaluateRsp)return i;let n=new u.bilibili.im.customer.interface_.v1.PreEvaluateRsp;if(i.rsp!=null){if(typeof i.rsp!="object")throw TypeError(".bilibili.im.customer.interface_.v1.PreEvaluateRsp.rsp: object expected");n.rsp=u.bilibili.im.customer.model.EvaluationShowInfo.fromObject(i.rsp)}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.rsp=null),i.rsp!=null&&i.hasOwnProperty("rsp")&&(o.rsp=u.bilibili.im.customer.model.EvaluationShowInfo.toObject(i.rsp,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.im.customer.interface_.v1.PreEvaluateRsp"},l}(),e.WindowOptionsReq=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 2:{a.shopFatherId=i.uint64();break}case 3:{a.shopId=i.uint64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.im.customer.interface_.v1.WindowOptionsReq)return i;let n=new u.bilibili.im.customer.interface_.v1.WindowOptionsReq;return i.shopFatherId!=null&&(r.Long?(n.shopFatherId=r.Long.fromValue(i.shopFatherId)).unsigned=!0:typeof i.shopFatherId=="string"?n.shopFatherId=parseInt(i.shopFatherId,10):typeof i.shopFatherId=="number"?n.shopFatherId=i.shopFatherId:typeof i.shopFatherId=="object"&&(n.shopFatherId=new r.LongBits(i.shopFatherId.low>>>0,i.shopFatherId.high>>>0).toNumber(!0))),i.shopId!=null&&(r.Long?(n.shopId=r.Long.fromValue(i.shopId)).unsigned=!0:typeof i.shopId=="string"?n.shopId=parseInt(i.shopId,10):typeof i.shopId=="number"?n.shopId=i.shopId:typeof i.shopId=="object"&&(n.shopId=new r.LongBits(i.shopId.low>>>0,i.shopId.high>>>0).toNumber(!0))),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!0);o.shopFatherId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.shopFatherId=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!0);o.shopId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.shopId=n.longs===String?"0":0}return i.shopFatherId!=null&&i.hasOwnProperty("shopFatherId")&&(typeof i.shopFatherId=="number"?o.shopFatherId=n.longs===String?String(i.shopFatherId):i.shopFatherId:o.shopFatherId=n.longs===String?r.Long.prototype.toString.call(i.shopFatherId):n.longs===Number?new r.LongBits(i.shopFatherId.low>>>0,i.shopFatherId.high>>>0).toNumber(!0):i.shopFatherId),i.shopId!=null&&i.hasOwnProperty("shopId")&&(typeof i.shopId=="number"?o.shopId=n.longs===String?String(i.shopId):i.shopId:o.shopId=n.longs===String?r.Long.prototype.toString.call(i.shopId):n.longs===Number?new r.LongBits(i.shopId.low>>>0,i.shopId.high>>>0).toNumber(!0):i.shopId),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.im.customer.interface_.v1.WindowOptionsReq"},l}(),e.WindowOptionsRsp=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.goods=u.bilibili.im.customer.model.WindowOptionGoods.decode(i,i.uint32());break}case 2:{a.order=u.bilibili.im.customer.model.WindowOptionOrder.decode(i,i.uint32());break}case 3:{a.evaluation=u.bilibili.im.customer.model.WindowOptionEvaluation.decode(i,i.uint32());break}case 4:{a.message=u.bilibili.im.customer.model.WindowOptionMessage.decode(i,i.uint32());break}case 5:{a.history=u.bilibili.im.customer.model.WindowOptionHistory.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.im.customer.interface_.v1.WindowOptionsRsp)return i;let n=new u.bilibili.im.customer.interface_.v1.WindowOptionsRsp;if(i.goods!=null){if(typeof i.goods!="object")throw TypeError(".bilibili.im.customer.interface_.v1.WindowOptionsRsp.goods: object expected");n.goods=u.bilibili.im.customer.model.WindowOptionGoods.fromObject(i.goods)}if(i.order!=null){if(typeof i.order!="object")throw TypeError(".bilibili.im.customer.interface_.v1.WindowOptionsRsp.order: object expected");n.order=u.bilibili.im.customer.model.WindowOptionOrder.fromObject(i.order)}if(i.evaluation!=null){if(typeof i.evaluation!="object")throw TypeError(".bilibili.im.customer.interface_.v1.WindowOptionsRsp.evaluation: object expected");n.evaluation=u.bilibili.im.customer.model.WindowOptionEvaluation.fromObject(i.evaluation)}if(i.message!=null){if(typeof i.message!="object")throw TypeError(".bilibili.im.customer.interface_.v1.WindowOptionsRsp.message: object expected");n.message=u.bilibili.im.customer.model.WindowOptionMessage.fromObject(i.message)}if(i.history!=null){if(typeof i.history!="object")throw TypeError(".bilibili.im.customer.interface_.v1.WindowOptionsRsp.history: object expected");n.history=u.bilibili.im.customer.model.WindowOptionHistory.fromObject(i.history)}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.goods=null,o.order=null,o.evaluation=null,o.message=null,o.history=null),i.goods!=null&&i.hasOwnProperty("goods")&&(o.goods=u.bilibili.im.customer.model.WindowOptionGoods.toObject(i.goods,n)),i.order!=null&&i.hasOwnProperty("order")&&(o.order=u.bilibili.im.customer.model.WindowOptionOrder.toObject(i.order,n)),i.evaluation!=null&&i.hasOwnProperty("evaluation")&&(o.evaluation=u.bilibili.im.customer.model.WindowOptionEvaluation.toObject(i.evaluation,n)),i.message!=null&&i.hasOwnProperty("message")&&(o.message=u.bilibili.im.customer.model.WindowOptionMessage.toObject(i.message,n)),i.history!=null&&i.hasOwnProperty("history")&&(o.history=u.bilibili.im.customer.model.WindowOptionHistory.toObject(i.history,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.im.customer.interface_.v1.WindowOptionsRsp"},l}(),e.UpdateAckReq=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.shopFatherId=i.uint64();break}case 2:{a.shopId=i.uint64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.im.customer.interface_.v1.UpdateAckReq)return i;let n=new u.bilibili.im.customer.interface_.v1.UpdateAckReq;return i.shopFatherId!=null&&(r.Long?(n.shopFatherId=r.Long.fromValue(i.shopFatherId)).unsigned=!0:typeof i.shopFatherId=="string"?n.shopFatherId=parseInt(i.shopFatherId,10):typeof i.shopFatherId=="number"?n.shopFatherId=i.shopFatherId:typeof i.shopFatherId=="object"&&(n.shopFatherId=new r.LongBits(i.shopFatherId.low>>>0,i.shopFatherId.high>>>0).toNumber(!0))),i.shopId!=null&&(r.Long?(n.shopId=r.Long.fromValue(i.shopId)).unsigned=!0:typeof i.shopId=="string"?n.shopId=parseInt(i.shopId,10):typeof i.shopId=="number"?n.shopId=i.shopId:typeof i.shopId=="object"&&(n.shopId=new r.LongBits(i.shopId.low>>>0,i.shopId.high>>>0).toNumber(!0))),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!0);o.shopFatherId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.shopFatherId=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!0);o.shopId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.shopId=n.longs===String?"0":0}return i.shopFatherId!=null&&i.hasOwnProperty("shopFatherId")&&(typeof i.shopFatherId=="number"?o.shopFatherId=n.longs===String?String(i.shopFatherId):i.shopFatherId:o.shopFatherId=n.longs===String?r.Long.prototype.toString.call(i.shopFatherId):n.longs===Number?new r.LongBits(i.shopFatherId.low>>>0,i.shopFatherId.high>>>0).toNumber(!0):i.shopFatherId),i.shopId!=null&&i.hasOwnProperty("shopId")&&(typeof i.shopId=="number"?o.shopId=n.longs===String?String(i.shopId):i.shopId:o.shopId=n.longs===String?r.Long.prototype.toString.call(i.shopId):n.longs===Number?new r.LongBits(i.shopId.low>>>0,i.shopId.high>>>0).toNumber(!0):i.shopId),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.im.customer.interface_.v1.UpdateAckReq"},l}(),e.Empty=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){default:i.skipType(y&7);break}}return a},l.fromObject=function(i){return i instanceof u.bilibili.im.customer.interface_.v1.Empty?i:new u.bilibili.im.customer.interface_.v1.Empty},l.toObject=function(){return{}},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.im.customer.interface_.v1.Empty"},l}(),e.SessionMsgReq=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.shopFatherId=i.uint64();break}case 2:{a.shopId=i.uint64();break}case 3:{a.beginSeqno=i.uint64();break}case 4:{a.endSeqno=i.uint64();break}case 5:{a.size=i.int32();break}case 6:{a.order=i.int32();break}case 7:{a.devId=i.string();break}case 8:{a.situation=i.uint32();break}case 9:{a.gid=i.uint32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.im.customer.interface_.v1.SessionMsgReq)return i;let n=new u.bilibili.im.customer.interface_.v1.SessionMsgReq;return i.shopFatherId!=null&&(r.Long?(n.shopFatherId=r.Long.fromValue(i.shopFatherId)).unsigned=!0:typeof i.shopFatherId=="string"?n.shopFatherId=parseInt(i.shopFatherId,10):typeof i.shopFatherId=="number"?n.shopFatherId=i.shopFatherId:typeof i.shopFatherId=="object"&&(n.shopFatherId=new r.LongBits(i.shopFatherId.low>>>0,i.shopFatherId.high>>>0).toNumber(!0))),i.shopId!=null&&(r.Long?(n.shopId=r.Long.fromValue(i.shopId)).unsigned=!0:typeof i.shopId=="string"?n.shopId=parseInt(i.shopId,10):typeof i.shopId=="number"?n.shopId=i.shopId:typeof i.shopId=="object"&&(n.shopId=new r.LongBits(i.shopId.low>>>0,i.shopId.high>>>0).toNumber(!0))),i.beginSeqno!=null&&(r.Long?(n.beginSeqno=r.Long.fromValue(i.beginSeqno)).unsigned=!0:typeof i.beginSeqno=="string"?n.beginSeqno=parseInt(i.beginSeqno,10):typeof i.beginSeqno=="number"?n.beginSeqno=i.beginSeqno:typeof i.beginSeqno=="object"&&(n.beginSeqno=new r.LongBits(i.beginSeqno.low>>>0,i.beginSeqno.high>>>0).toNumber(!0))),i.endSeqno!=null&&(r.Long?(n.endSeqno=r.Long.fromValue(i.endSeqno)).unsigned=!0:typeof i.endSeqno=="string"?n.endSeqno=parseInt(i.endSeqno,10):typeof i.endSeqno=="number"?n.endSeqno=i.endSeqno:typeof i.endSeqno=="object"&&(n.endSeqno=new r.LongBits(i.endSeqno.low>>>0,i.endSeqno.high>>>0).toNumber(!0))),i.size!=null&&(n.size=i.size|0),i.order!=null&&(n.order=i.order|0),i.devId!=null&&(n.devId=String(i.devId)),i.situation!=null&&(n.situation=i.situation>>>0),i.gid!=null&&(n.gid=i.gid>>>0),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!0);o.shopFatherId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.shopFatherId=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!0);o.shopId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.shopId=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!0);o.beginSeqno=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.beginSeqno=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!0);o.endSeqno=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.endSeqno=n.longs===String?"0":0;o.size=0,o.order=0,o.devId="",o.situation=0,o.gid=0}return i.shopFatherId!=null&&i.hasOwnProperty("shopFatherId")&&(typeof i.shopFatherId=="number"?o.shopFatherId=n.longs===String?String(i.shopFatherId):i.shopFatherId:o.shopFatherId=n.longs===String?r.Long.prototype.toString.call(i.shopFatherId):n.longs===Number?new r.LongBits(i.shopFatherId.low>>>0,i.shopFatherId.high>>>0).toNumber(!0):i.shopFatherId),i.shopId!=null&&i.hasOwnProperty("shopId")&&(typeof i.shopId=="number"?o.shopId=n.longs===String?String(i.shopId):i.shopId:o.shopId=n.longs===String?r.Long.prototype.toString.call(i.shopId):n.longs===Number?new r.LongBits(i.shopId.low>>>0,i.shopId.high>>>0).toNumber(!0):i.shopId),i.beginSeqno!=null&&i.hasOwnProperty("beginSeqno")&&(typeof i.beginSeqno=="number"?o.beginSeqno=n.longs===String?String(i.beginSeqno):i.beginSeqno:o.beginSeqno=n.longs===String?r.Long.prototype.toString.call(i.beginSeqno):n.longs===Number?new r.LongBits(i.beginSeqno.low>>>0,i.beginSeqno.high>>>0).toNumber(!0):i.beginSeqno),i.endSeqno!=null&&i.hasOwnProperty("endSeqno")&&(typeof i.endSeqno=="number"?o.endSeqno=n.longs===String?String(i.endSeqno):i.endSeqno:o.endSeqno=n.longs===String?r.Long.prototype.toString.call(i.endSeqno):n.longs===Number?new r.LongBits(i.endSeqno.low>>>0,i.endSeqno.high>>>0).toNumber(!0):i.endSeqno),i.size!=null&&i.hasOwnProperty("size")&&(o.size=i.size),i.order!=null&&i.hasOwnProperty("order")&&(o.order=i.order),i.devId!=null&&i.hasOwnProperty("devId")&&(o.devId=i.devId),i.situation!=null&&i.hasOwnProperty("situation")&&(o.situation=i.situation),i.gid!=null&&i.hasOwnProperty("gid")&&(o.gid=i.gid),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.im.customer.interface_.v1.SessionMsgReq"},l}(),e.SessionMsgRsp=function(){function l(t){if(this.messages=[],this.eInfos=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.messages&&a.messages.length||(a.messages=[]),a.messages.push(u.bilibili.im.customer.model.Msg.decode(i,i.uint32()));break}case 2:{a.hasMore=i.int32();break}case 3:{a.minSeqno=i.uint64();break}case 4:{a.maxSeqno=i.uint64();break}case 5:{a.eInfos&&a.eInfos.length||(a.eInfos=[]),a.eInfos.push(u.bilibili.im.customer.model.EmotionInfo.decode(i,i.uint32()));break}case 6:{a.fetchInterval=i.uint32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.im.customer.interface_.v1.SessionMsgRsp)return i;let n=new u.bilibili.im.customer.interface_.v1.SessionMsgRsp;if(i.messages){if(!Array.isArray(i.messages))throw TypeError(".bilibili.im.customer.interface_.v1.SessionMsgRsp.messages: array expected");n.messages=[];for(let o=0;o>>0,i.minSeqno.high>>>0).toNumber(!0))),i.maxSeqno!=null&&(r.Long?(n.maxSeqno=r.Long.fromValue(i.maxSeqno)).unsigned=!0:typeof i.maxSeqno=="string"?n.maxSeqno=parseInt(i.maxSeqno,10):typeof i.maxSeqno=="number"?n.maxSeqno=i.maxSeqno:typeof i.maxSeqno=="object"&&(n.maxSeqno=new r.LongBits(i.maxSeqno.low>>>0,i.maxSeqno.high>>>0).toNumber(!0))),i.eInfos){if(!Array.isArray(i.eInfos))throw TypeError(".bilibili.im.customer.interface_.v1.SessionMsgRsp.eInfos: array expected");n.eInfos=[];for(let o=0;o>>0),n},l.toObject=function(i,n){n||(n={});let o={};if((n.arrays||n.defaults)&&(o.messages=[],o.eInfos=[]),n.defaults){if(o.hasMore=0,r.Long){let a=new r.Long(0,0,!0);o.minSeqno=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.minSeqno=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!0);o.maxSeqno=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.maxSeqno=n.longs===String?"0":0;o.fetchInterval=0}if(i.messages&&i.messages.length){o.messages=[];for(let a=0;a>>0,i.minSeqno.high>>>0).toNumber(!0):i.minSeqno),i.maxSeqno!=null&&i.hasOwnProperty("maxSeqno")&&(typeof i.maxSeqno=="number"?o.maxSeqno=n.longs===String?String(i.maxSeqno):i.maxSeqno:o.maxSeqno=n.longs===String?r.Long.prototype.toString.call(i.maxSeqno):n.longs===Number?new r.LongBits(i.maxSeqno.low>>>0,i.maxSeqno.high>>>0).toNumber(!0):i.maxSeqno),i.eInfos&&i.eInfos.length){o.eInfos=[];for(let a=0;a>>3){case 1:{a.msg=u.bilibili.im.customer.model.Msg.decode(i,i.uint32());break}case 2:{a.skillGroupId=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.im.customer.interface_.v1.SendMsgReq)return i;let n=new u.bilibili.im.customer.interface_.v1.SendMsgReq;if(i.msg!=null){if(typeof i.msg!="object")throw TypeError(".bilibili.im.customer.interface_.v1.SendMsgReq.msg: object expected");n.msg=u.bilibili.im.customer.model.Msg.fromObject(i.msg)}return i.skillGroupId!=null&&(r.Long?(n.skillGroupId=r.Long.fromValue(i.skillGroupId)).unsigned=!1:typeof i.skillGroupId=="string"?n.skillGroupId=parseInt(i.skillGroupId,10):typeof i.skillGroupId=="number"?n.skillGroupId=i.skillGroupId:typeof i.skillGroupId=="object"&&(n.skillGroupId=new r.LongBits(i.skillGroupId.low>>>0,i.skillGroupId.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults)if(o.msg=null,r.Long){let a=new r.Long(0,0,!1);o.skillGroupId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.skillGroupId=n.longs===String?"0":0;return i.msg!=null&&i.hasOwnProperty("msg")&&(o.msg=u.bilibili.im.customer.model.Msg.toObject(i.msg,n)),i.skillGroupId!=null&&i.hasOwnProperty("skillGroupId")&&(typeof i.skillGroupId=="number"?o.skillGroupId=n.longs===String?String(i.skillGroupId):i.skillGroupId:o.skillGroupId=n.longs===String?r.Long.prototype.toString.call(i.skillGroupId):n.longs===Number?new r.LongBits(i.skillGroupId.low>>>0,i.skillGroupId.high>>>0).toNumber():i.skillGroupId),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.im.customer.interface_.v1.SendMsgReq"},l}(),e.SendMsgRsp=function(){function l(t){if(this.eInfos=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.msgKey=i.uint64();break}case 2:{a.msgContent=i.string();break}case 3:{a.eInfos&&a.eInfos.length||(a.eInfos=[]),a.eInfos.push(u.bilibili.im.customer.model.EmotionInfo.decode(i,i.uint32()));break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.im.customer.interface_.v1.SendMsgRsp)return i;let n=new u.bilibili.im.customer.interface_.v1.SendMsgRsp;if(i.msgKey!=null&&(r.Long?(n.msgKey=r.Long.fromValue(i.msgKey)).unsigned=!0:typeof i.msgKey=="string"?n.msgKey=parseInt(i.msgKey,10):typeof i.msgKey=="number"?n.msgKey=i.msgKey:typeof i.msgKey=="object"&&(n.msgKey=new r.LongBits(i.msgKey.low>>>0,i.msgKey.high>>>0).toNumber(!0))),i.msgContent!=null&&(n.msgContent=String(i.msgContent)),i.eInfos){if(!Array.isArray(i.eInfos))throw TypeError(".bilibili.im.customer.interface_.v1.SendMsgRsp.eInfos: array expected");n.eInfos=[];for(let o=0;o>>0,i.msgKey.high>>>0).toNumber(!0):i.msgKey),i.msgContent!=null&&i.hasOwnProperty("msgContent")&&(o.msgContent=i.msgContent),i.eInfos&&i.eInfos.length){o.eInfos=[];for(let a=0;a>>3){case 1:{a.beginTs=i.uint64();break}case 2:{a.endTs=i.uint64();break}case 3:{a.size=i.uint32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.im.customer.interface_.v1.GetSessionsReq)return i;let n=new u.bilibili.im.customer.interface_.v1.GetSessionsReq;return i.beginTs!=null&&(r.Long?(n.beginTs=r.Long.fromValue(i.beginTs)).unsigned=!0:typeof i.beginTs=="string"?n.beginTs=parseInt(i.beginTs,10):typeof i.beginTs=="number"?n.beginTs=i.beginTs:typeof i.beginTs=="object"&&(n.beginTs=new r.LongBits(i.beginTs.low>>>0,i.beginTs.high>>>0).toNumber(!0))),i.endTs!=null&&(r.Long?(n.endTs=r.Long.fromValue(i.endTs)).unsigned=!0:typeof i.endTs=="string"?n.endTs=parseInt(i.endTs,10):typeof i.endTs=="number"?n.endTs=i.endTs:typeof i.endTs=="object"&&(n.endTs=new r.LongBits(i.endTs.low>>>0,i.endTs.high>>>0).toNumber(!0))),i.size!=null&&(n.size=i.size>>>0),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!0);o.beginTs=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.beginTs=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!0);o.endTs=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.endTs=n.longs===String?"0":0;o.size=0}return i.beginTs!=null&&i.hasOwnProperty("beginTs")&&(typeof i.beginTs=="number"?o.beginTs=n.longs===String?String(i.beginTs):i.beginTs:o.beginTs=n.longs===String?r.Long.prototype.toString.call(i.beginTs):n.longs===Number?new r.LongBits(i.beginTs.low>>>0,i.beginTs.high>>>0).toNumber(!0):i.beginTs),i.endTs!=null&&i.hasOwnProperty("endTs")&&(typeof i.endTs=="number"?o.endTs=n.longs===String?String(i.endTs):i.endTs:o.endTs=n.longs===String?r.Long.prototype.toString.call(i.endTs):n.longs===Number?new r.LongBits(i.endTs.low>>>0,i.endTs.high>>>0).toNumber(!0):i.endTs),i.size!=null&&i.hasOwnProperty("size")&&(o.size=i.size),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.im.customer.interface_.v1.GetSessionsReq"},l}(),e.SessionsRsp=function(){function l(t){if(this.sessionList=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.sessionList&&a.sessionList.length||(a.sessionList=[]),a.sessionList.push(u.bilibili.im.customer.model.SessionInfo.decode(i,i.uint32()));break}case 2:{a.hasMore=i.uint32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.im.customer.interface_.v1.SessionsRsp)return i;let n=new u.bilibili.im.customer.interface_.v1.SessionsRsp;if(i.sessionList){if(!Array.isArray(i.sessionList))throw TypeError(".bilibili.im.customer.interface_.v1.SessionsRsp.sessionList: array expected");n.sessionList=[];for(let o=0;o>>0),n},l.toObject=function(i,n){n||(n={});let o={};if((n.arrays||n.defaults)&&(o.sessionList=[]),n.defaults&&(o.hasMore=0),i.sessionList&&i.sessionList.length){o.sessionList=[];for(let a=0;a>>3){case 1:{o.icon=t.string();break}case 2:{o.name=t.string();break}case 3:{o.jumpUrl=t.string();break}case 4:{o.title=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.im.customer.model.WindowOptionGoods)return t;let i=new u.bilibili.im.customer.model.WindowOptionGoods;return t.icon!=null&&(i.icon=String(t.icon)),t.name!=null&&(i.name=String(t.name)),t.jumpUrl!=null&&(i.jumpUrl=String(t.jumpUrl)),t.title!=null&&(i.title=String(t.title)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.icon="",n.name="",n.jumpUrl="",n.title=""),t.icon!=null&&t.hasOwnProperty("icon")&&(n.icon=t.icon),t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),t.jumpUrl!=null&&t.hasOwnProperty("jumpUrl")&&(n.jumpUrl=t.jumpUrl),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.im.customer.model.WindowOptionGoods"},e}(),c.WindowOptionOrder=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.icon=t.string();break}case 2:{o.name=t.string();break}case 3:{o.jumpUrl=t.string();break}case 4:{o.title=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.im.customer.model.WindowOptionOrder)return t;let i=new u.bilibili.im.customer.model.WindowOptionOrder;return t.icon!=null&&(i.icon=String(t.icon)),t.name!=null&&(i.name=String(t.name)),t.jumpUrl!=null&&(i.jumpUrl=String(t.jumpUrl)),t.title!=null&&(i.title=String(t.title)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.icon="",n.name="",n.jumpUrl="",n.title=""),t.icon!=null&&t.hasOwnProperty("icon")&&(n.icon=t.icon),t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),t.jumpUrl!=null&&t.hasOwnProperty("jumpUrl")&&(n.jumpUrl=t.jumpUrl),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.im.customer.model.WindowOptionOrder"},e}(),c.WindowOptionMessage=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.icon=t.string();break}case 2:{o.name=t.string();break}case 3:{o.jumpUrl=t.string();break}case 4:{o.title=t.string();break}case 5:{o.subTitle=t.string();break}case 6:{o.isNewTicket=t.bool();break}case 7:{o.newTicketJumpUrl=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.im.customer.model.WindowOptionMessage)return t;let i=new u.bilibili.im.customer.model.WindowOptionMessage;return t.icon!=null&&(i.icon=String(t.icon)),t.name!=null&&(i.name=String(t.name)),t.jumpUrl!=null&&(i.jumpUrl=String(t.jumpUrl)),t.title!=null&&(i.title=String(t.title)),t.subTitle!=null&&(i.subTitle=String(t.subTitle)),t.isNewTicket!=null&&(i.isNewTicket=!!t.isNewTicket),t.newTicketJumpUrl!=null&&(i.newTicketJumpUrl=String(t.newTicketJumpUrl)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.icon="",n.name="",n.jumpUrl="",n.title="",n.subTitle="",n.isNewTicket=!1,n.newTicketJumpUrl=""),t.icon!=null&&t.hasOwnProperty("icon")&&(n.icon=t.icon),t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),t.jumpUrl!=null&&t.hasOwnProperty("jumpUrl")&&(n.jumpUrl=t.jumpUrl),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.subTitle!=null&&t.hasOwnProperty("subTitle")&&(n.subTitle=t.subTitle),t.isNewTicket!=null&&t.hasOwnProperty("isNewTicket")&&(n.isNewTicket=t.isNewTicket),t.newTicketJumpUrl!=null&&t.hasOwnProperty("newTicketJumpUrl")&&(n.newTicketJumpUrl=t.newTicketJumpUrl),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.im.customer.model.WindowOptionMessage"},e}(),c.WindowOptionHistory=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.icon=t.string();break}case 2:{o.name=t.string();break}case 3:{o.jumpUrl=t.string();break}case 4:{o.title=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.im.customer.model.WindowOptionHistory)return t;let i=new u.bilibili.im.customer.model.WindowOptionHistory;return t.icon!=null&&(i.icon=String(t.icon)),t.name!=null&&(i.name=String(t.name)),t.jumpUrl!=null&&(i.jumpUrl=String(t.jumpUrl)),t.title!=null&&(i.title=String(t.title)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.icon="",n.name="",n.jumpUrl="",n.title=""),t.icon!=null&&t.hasOwnProperty("icon")&&(n.icon=t.icon),t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),t.jumpUrl!=null&&t.hasOwnProperty("jumpUrl")&&(n.jumpUrl=t.jumpUrl),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.im.customer.model.WindowOptionHistory"},e}(),c.WindowOptionEvaluation=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.icon=t.string();break}case 2:{o.name=t.string();break}case 3:{o.jumpUrl=t.string();break}case 4:{o.title=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.im.customer.model.WindowOptionEvaluation)return t;let i=new u.bilibili.im.customer.model.WindowOptionEvaluation;return t.icon!=null&&(i.icon=String(t.icon)),t.name!=null&&(i.name=String(t.name)),t.jumpUrl!=null&&(i.jumpUrl=String(t.jumpUrl)),t.title!=null&&(i.title=String(t.title)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.icon="",n.name="",n.jumpUrl="",n.title=""),t.icon!=null&&t.hasOwnProperty("icon")&&(n.icon=t.icon),t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),t.jumpUrl!=null&&t.hasOwnProperty("jumpUrl")&&(n.jumpUrl=t.jumpUrl),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.im.customer.model.WindowOptionEvaluation"},e}(),c.SessionInfo=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.talkerInfo=u.bilibili.im.customer.model.TalkerInfo.decode(t,t.uint32());break}case 2:{o.lastMsg=u.bilibili.im.customer.model.Msg.decode(t,t.uint32());break}case 3:{o.unreadInfo=u.bilibili.im.customer.model.UnreadInfo.decode(t,t.uint32());break}case 4:{o.ackSeqno=t.uint64();break}case 5:{o.ackTs=t.uint64();break}case 6:{o.sessionTs=t.uint64();break}case 7:{o.maxSeqno=t.uint64();break}case 8:{o.status=t.int32();break}case 9:{o.tagIcon=t.string();break}case 10:{o.topSet=t.int32();break}case 11:{o.jumpUrl=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.im.customer.model.SessionInfo)return t;let i=new u.bilibili.im.customer.model.SessionInfo;if(t.talkerInfo!=null){if(typeof t.talkerInfo!="object")throw TypeError(".bilibili.im.customer.model.SessionInfo.talkerInfo: object expected");i.talkerInfo=u.bilibili.im.customer.model.TalkerInfo.fromObject(t.talkerInfo)}if(t.lastMsg!=null){if(typeof t.lastMsg!="object")throw TypeError(".bilibili.im.customer.model.SessionInfo.lastMsg: object expected");i.lastMsg=u.bilibili.im.customer.model.Msg.fromObject(t.lastMsg)}if(t.unreadInfo!=null){if(typeof t.unreadInfo!="object")throw TypeError(".bilibili.im.customer.model.SessionInfo.unreadInfo: object expected");i.unreadInfo=u.bilibili.im.customer.model.UnreadInfo.fromObject(t.unreadInfo)}return t.ackSeqno!=null&&(r.Long?(i.ackSeqno=r.Long.fromValue(t.ackSeqno)).unsigned=!0:typeof t.ackSeqno=="string"?i.ackSeqno=parseInt(t.ackSeqno,10):typeof t.ackSeqno=="number"?i.ackSeqno=t.ackSeqno:typeof t.ackSeqno=="object"&&(i.ackSeqno=new r.LongBits(t.ackSeqno.low>>>0,t.ackSeqno.high>>>0).toNumber(!0))),t.ackTs!=null&&(r.Long?(i.ackTs=r.Long.fromValue(t.ackTs)).unsigned=!0:typeof t.ackTs=="string"?i.ackTs=parseInt(t.ackTs,10):typeof t.ackTs=="number"?i.ackTs=t.ackTs:typeof t.ackTs=="object"&&(i.ackTs=new r.LongBits(t.ackTs.low>>>0,t.ackTs.high>>>0).toNumber(!0))),t.sessionTs!=null&&(r.Long?(i.sessionTs=r.Long.fromValue(t.sessionTs)).unsigned=!0:typeof t.sessionTs=="string"?i.sessionTs=parseInt(t.sessionTs,10):typeof t.sessionTs=="number"?i.sessionTs=t.sessionTs:typeof t.sessionTs=="object"&&(i.sessionTs=new r.LongBits(t.sessionTs.low>>>0,t.sessionTs.high>>>0).toNumber(!0))),t.maxSeqno!=null&&(r.Long?(i.maxSeqno=r.Long.fromValue(t.maxSeqno)).unsigned=!0:typeof t.maxSeqno=="string"?i.maxSeqno=parseInt(t.maxSeqno,10):typeof t.maxSeqno=="number"?i.maxSeqno=t.maxSeqno:typeof t.maxSeqno=="object"&&(i.maxSeqno=new r.LongBits(t.maxSeqno.low>>>0,t.maxSeqno.high>>>0).toNumber(!0))),t.status!=null&&(i.status=t.status|0),t.tagIcon!=null&&(i.tagIcon=String(t.tagIcon)),t.topSet!=null&&(i.topSet=t.topSet|0),t.jumpUrl!=null&&(i.jumpUrl=String(t.jumpUrl)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.talkerInfo=null,n.lastMsg=null,n.unreadInfo=null,r.Long){let o=new r.Long(0,0,!0);n.ackSeqno=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.ackSeqno=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!0);n.ackTs=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.ackTs=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!0);n.sessionTs=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.sessionTs=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!0);n.maxSeqno=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.maxSeqno=i.longs===String?"0":0;n.status=0,n.tagIcon="",n.topSet=0,n.jumpUrl=""}return t.talkerInfo!=null&&t.hasOwnProperty("talkerInfo")&&(n.talkerInfo=u.bilibili.im.customer.model.TalkerInfo.toObject(t.talkerInfo,i)),t.lastMsg!=null&&t.hasOwnProperty("lastMsg")&&(n.lastMsg=u.bilibili.im.customer.model.Msg.toObject(t.lastMsg,i)),t.unreadInfo!=null&&t.hasOwnProperty("unreadInfo")&&(n.unreadInfo=u.bilibili.im.customer.model.UnreadInfo.toObject(t.unreadInfo,i)),t.ackSeqno!=null&&t.hasOwnProperty("ackSeqno")&&(typeof t.ackSeqno=="number"?n.ackSeqno=i.longs===String?String(t.ackSeqno):t.ackSeqno:n.ackSeqno=i.longs===String?r.Long.prototype.toString.call(t.ackSeqno):i.longs===Number?new r.LongBits(t.ackSeqno.low>>>0,t.ackSeqno.high>>>0).toNumber(!0):t.ackSeqno),t.ackTs!=null&&t.hasOwnProperty("ackTs")&&(typeof t.ackTs=="number"?n.ackTs=i.longs===String?String(t.ackTs):t.ackTs:n.ackTs=i.longs===String?r.Long.prototype.toString.call(t.ackTs):i.longs===Number?new r.LongBits(t.ackTs.low>>>0,t.ackTs.high>>>0).toNumber(!0):t.ackTs),t.sessionTs!=null&&t.hasOwnProperty("sessionTs")&&(typeof t.sessionTs=="number"?n.sessionTs=i.longs===String?String(t.sessionTs):t.sessionTs:n.sessionTs=i.longs===String?r.Long.prototype.toString.call(t.sessionTs):i.longs===Number?new r.LongBits(t.sessionTs.low>>>0,t.sessionTs.high>>>0).toNumber(!0):t.sessionTs),t.maxSeqno!=null&&t.hasOwnProperty("maxSeqno")&&(typeof t.maxSeqno=="number"?n.maxSeqno=i.longs===String?String(t.maxSeqno):t.maxSeqno:n.maxSeqno=i.longs===String?r.Long.prototype.toString.call(t.maxSeqno):i.longs===Number?new r.LongBits(t.maxSeqno.low>>>0,t.maxSeqno.high>>>0).toNumber(!0):t.maxSeqno),t.status!=null&&t.hasOwnProperty("status")&&(n.status=t.status),t.tagIcon!=null&&t.hasOwnProperty("tagIcon")&&(n.tagIcon=t.tagIcon),t.topSet!=null&&t.hasOwnProperty("topSet")&&(n.topSet=t.topSet),t.jumpUrl!=null&&t.hasOwnProperty("jumpUrl")&&(n.jumpUrl=t.jumpUrl),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.im.customer.model.SessionInfo"},e}(),c.TalkerInfo=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.type=t.int32();break}case 2:{o.shopFatherId=t.uint64();break}case 3:{o.shopId=t.uint64();break}case 4:{o.customerId=t.uint64();break}case 5:{o.machineSessionId=t.uint64();break}case 6:{o.customerSessionId=t.string();break}case 7:{o.uid=t.uint64();break}case 8:{o.name=t.string();break}case 9:{o.picUrl=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.im.customer.model.TalkerInfo)return t;let i=new u.bilibili.im.customer.model.TalkerInfo;switch(t.type){default:if(typeof t.type=="number"){i.type=t.type;break}break;case"MACHINE":case 0:i.type=0;break;case"CUSTOMER":case 1:i.type=1;break;case"SYS_NOTICE":case 2:i.type=2;break;case"USER":case 3:i.type=3;break}return t.shopFatherId!=null&&(r.Long?(i.shopFatherId=r.Long.fromValue(t.shopFatherId)).unsigned=!0:typeof t.shopFatherId=="string"?i.shopFatherId=parseInt(t.shopFatherId,10):typeof t.shopFatherId=="number"?i.shopFatherId=t.shopFatherId:typeof t.shopFatherId=="object"&&(i.shopFatherId=new r.LongBits(t.shopFatherId.low>>>0,t.shopFatherId.high>>>0).toNumber(!0))),t.shopId!=null&&(r.Long?(i.shopId=r.Long.fromValue(t.shopId)).unsigned=!0:typeof t.shopId=="string"?i.shopId=parseInt(t.shopId,10):typeof t.shopId=="number"?i.shopId=t.shopId:typeof t.shopId=="object"&&(i.shopId=new r.LongBits(t.shopId.low>>>0,t.shopId.high>>>0).toNumber(!0))),t.customerId!=null&&(r.Long?(i.customerId=r.Long.fromValue(t.customerId)).unsigned=!0:typeof t.customerId=="string"?i.customerId=parseInt(t.customerId,10):typeof t.customerId=="number"?i.customerId=t.customerId:typeof t.customerId=="object"&&(i.customerId=new r.LongBits(t.customerId.low>>>0,t.customerId.high>>>0).toNumber(!0))),t.machineSessionId!=null&&(r.Long?(i.machineSessionId=r.Long.fromValue(t.machineSessionId)).unsigned=!0:typeof t.machineSessionId=="string"?i.machineSessionId=parseInt(t.machineSessionId,10):typeof t.machineSessionId=="number"?i.machineSessionId=t.machineSessionId:typeof t.machineSessionId=="object"&&(i.machineSessionId=new r.LongBits(t.machineSessionId.low>>>0,t.machineSessionId.high>>>0).toNumber(!0))),t.customerSessionId!=null&&(i.customerSessionId=String(t.customerSessionId)),t.uid!=null&&(r.Long?(i.uid=r.Long.fromValue(t.uid)).unsigned=!0:typeof t.uid=="string"?i.uid=parseInt(t.uid,10):typeof t.uid=="number"?i.uid=t.uid:typeof t.uid=="object"&&(i.uid=new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber(!0))),t.name!=null&&(i.name=String(t.name)),t.picUrl!=null&&(i.picUrl=String(t.picUrl)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.type=i.enums===String?"MACHINE":0,r.Long){let o=new r.Long(0,0,!0);n.shopFatherId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.shopFatherId=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!0);n.shopId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.shopId=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!0);n.customerId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.customerId=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!0);n.machineSessionId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.machineSessionId=i.longs===String?"0":0;if(n.customerSessionId="",r.Long){let o=new r.Long(0,0,!0);n.uid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.uid=i.longs===String?"0":0;n.name="",n.picUrl=""}return t.type!=null&&t.hasOwnProperty("type")&&(n.type=i.enums===String?u.bilibili.im.customer.model.TalkerType[t.type]===void 0?t.type:u.bilibili.im.customer.model.TalkerType[t.type]:t.type),t.shopFatherId!=null&&t.hasOwnProperty("shopFatherId")&&(typeof t.shopFatherId=="number"?n.shopFatherId=i.longs===String?String(t.shopFatherId):t.shopFatherId:n.shopFatherId=i.longs===String?r.Long.prototype.toString.call(t.shopFatherId):i.longs===Number?new r.LongBits(t.shopFatherId.low>>>0,t.shopFatherId.high>>>0).toNumber(!0):t.shopFatherId),t.shopId!=null&&t.hasOwnProperty("shopId")&&(typeof t.shopId=="number"?n.shopId=i.longs===String?String(t.shopId):t.shopId:n.shopId=i.longs===String?r.Long.prototype.toString.call(t.shopId):i.longs===Number?new r.LongBits(t.shopId.low>>>0,t.shopId.high>>>0).toNumber(!0):t.shopId),t.customerId!=null&&t.hasOwnProperty("customerId")&&(typeof t.customerId=="number"?n.customerId=i.longs===String?String(t.customerId):t.customerId:n.customerId=i.longs===String?r.Long.prototype.toString.call(t.customerId):i.longs===Number?new r.LongBits(t.customerId.low>>>0,t.customerId.high>>>0).toNumber(!0):t.customerId),t.machineSessionId!=null&&t.hasOwnProperty("machineSessionId")&&(typeof t.machineSessionId=="number"?n.machineSessionId=i.longs===String?String(t.machineSessionId):t.machineSessionId:n.machineSessionId=i.longs===String?r.Long.prototype.toString.call(t.machineSessionId):i.longs===Number?new r.LongBits(t.machineSessionId.low>>>0,t.machineSessionId.high>>>0).toNumber(!0):t.machineSessionId),t.customerSessionId!=null&&t.hasOwnProperty("customerSessionId")&&(n.customerSessionId=t.customerSessionId),t.uid!=null&&t.hasOwnProperty("uid")&&(typeof t.uid=="number"?n.uid=i.longs===String?String(t.uid):t.uid:n.uid=i.longs===String?r.Long.prototype.toString.call(t.uid):i.longs===Number?new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber(!0):t.uid),t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),t.picUrl!=null&&t.hasOwnProperty("picUrl")&&(n.picUrl=t.picUrl),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.im.customer.model.TalkerInfo"},e}(),c.UnreadInfo=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.unreadCount=t.uint64();break}case 2:{o.customerUnreadCount=t.uint64();break}case 3:{o.machineUnreadCount=t.uint64();break}case 4:{o.messageUnreadCount=t.uint64();break}case 5:{o.noticeUnreadCount=t.uint64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.im.customer.model.UnreadInfo)return t;let i=new u.bilibili.im.customer.model.UnreadInfo;return t.unreadCount!=null&&(r.Long?(i.unreadCount=r.Long.fromValue(t.unreadCount)).unsigned=!0:typeof t.unreadCount=="string"?i.unreadCount=parseInt(t.unreadCount,10):typeof t.unreadCount=="number"?i.unreadCount=t.unreadCount:typeof t.unreadCount=="object"&&(i.unreadCount=new r.LongBits(t.unreadCount.low>>>0,t.unreadCount.high>>>0).toNumber(!0))),t.customerUnreadCount!=null&&(r.Long?(i.customerUnreadCount=r.Long.fromValue(t.customerUnreadCount)).unsigned=!0:typeof t.customerUnreadCount=="string"?i.customerUnreadCount=parseInt(t.customerUnreadCount,10):typeof t.customerUnreadCount=="number"?i.customerUnreadCount=t.customerUnreadCount:typeof t.customerUnreadCount=="object"&&(i.customerUnreadCount=new r.LongBits(t.customerUnreadCount.low>>>0,t.customerUnreadCount.high>>>0).toNumber(!0))),t.machineUnreadCount!=null&&(r.Long?(i.machineUnreadCount=r.Long.fromValue(t.machineUnreadCount)).unsigned=!0:typeof t.machineUnreadCount=="string"?i.machineUnreadCount=parseInt(t.machineUnreadCount,10):typeof t.machineUnreadCount=="number"?i.machineUnreadCount=t.machineUnreadCount:typeof t.machineUnreadCount=="object"&&(i.machineUnreadCount=new r.LongBits(t.machineUnreadCount.low>>>0,t.machineUnreadCount.high>>>0).toNumber(!0))),t.messageUnreadCount!=null&&(r.Long?(i.messageUnreadCount=r.Long.fromValue(t.messageUnreadCount)).unsigned=!0:typeof t.messageUnreadCount=="string"?i.messageUnreadCount=parseInt(t.messageUnreadCount,10):typeof t.messageUnreadCount=="number"?i.messageUnreadCount=t.messageUnreadCount:typeof t.messageUnreadCount=="object"&&(i.messageUnreadCount=new r.LongBits(t.messageUnreadCount.low>>>0,t.messageUnreadCount.high>>>0).toNumber(!0))),t.noticeUnreadCount!=null&&(r.Long?(i.noticeUnreadCount=r.Long.fromValue(t.noticeUnreadCount)).unsigned=!0:typeof t.noticeUnreadCount=="string"?i.noticeUnreadCount=parseInt(t.noticeUnreadCount,10):typeof t.noticeUnreadCount=="number"?i.noticeUnreadCount=t.noticeUnreadCount:typeof t.noticeUnreadCount=="object"&&(i.noticeUnreadCount=new r.LongBits(t.noticeUnreadCount.low>>>0,t.noticeUnreadCount.high>>>0).toNumber(!0))),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!0);n.unreadCount=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.unreadCount=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!0);n.customerUnreadCount=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.customerUnreadCount=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!0);n.machineUnreadCount=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.machineUnreadCount=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!0);n.messageUnreadCount=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.messageUnreadCount=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!0);n.noticeUnreadCount=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.noticeUnreadCount=i.longs===String?"0":0}return t.unreadCount!=null&&t.hasOwnProperty("unreadCount")&&(typeof t.unreadCount=="number"?n.unreadCount=i.longs===String?String(t.unreadCount):t.unreadCount:n.unreadCount=i.longs===String?r.Long.prototype.toString.call(t.unreadCount):i.longs===Number?new r.LongBits(t.unreadCount.low>>>0,t.unreadCount.high>>>0).toNumber(!0):t.unreadCount),t.customerUnreadCount!=null&&t.hasOwnProperty("customerUnreadCount")&&(typeof t.customerUnreadCount=="number"?n.customerUnreadCount=i.longs===String?String(t.customerUnreadCount):t.customerUnreadCount:n.customerUnreadCount=i.longs===String?r.Long.prototype.toString.call(t.customerUnreadCount):i.longs===Number?new r.LongBits(t.customerUnreadCount.low>>>0,t.customerUnreadCount.high>>>0).toNumber(!0):t.customerUnreadCount),t.machineUnreadCount!=null&&t.hasOwnProperty("machineUnreadCount")&&(typeof t.machineUnreadCount=="number"?n.machineUnreadCount=i.longs===String?String(t.machineUnreadCount):t.machineUnreadCount:n.machineUnreadCount=i.longs===String?r.Long.prototype.toString.call(t.machineUnreadCount):i.longs===Number?new r.LongBits(t.machineUnreadCount.low>>>0,t.machineUnreadCount.high>>>0).toNumber(!0):t.machineUnreadCount),t.messageUnreadCount!=null&&t.hasOwnProperty("messageUnreadCount")&&(typeof t.messageUnreadCount=="number"?n.messageUnreadCount=i.longs===String?String(t.messageUnreadCount):t.messageUnreadCount:n.messageUnreadCount=i.longs===String?r.Long.prototype.toString.call(t.messageUnreadCount):i.longs===Number?new r.LongBits(t.messageUnreadCount.low>>>0,t.messageUnreadCount.high>>>0).toNumber(!0):t.messageUnreadCount),t.noticeUnreadCount!=null&&t.hasOwnProperty("noticeUnreadCount")&&(typeof t.noticeUnreadCount=="number"?n.noticeUnreadCount=i.longs===String?String(t.noticeUnreadCount):t.noticeUnreadCount:n.noticeUnreadCount=i.longs===String?r.Long.prototype.toString.call(t.noticeUnreadCount):i.longs===Number?new r.LongBits(t.noticeUnreadCount.low>>>0,t.noticeUnreadCount.high>>>0).toNumber(!0):t.noticeUnreadCount),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.im.customer.model.UnreadInfo"},e}(),c.Msg=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.senderInfo=u.bilibili.im.customer.model.TalkerInfo.decode(t,t.uint32());break}case 2:{o.receiverInfo=u.bilibili.im.customer.model.TalkerInfo.decode(t,t.uint32());break}case 3:{o.msgType=t.int32();break}case 4:{o.content=t.string();break}case 5:{o.timestamp=t.uint64();break}case 6:{o.msgKey=t.uint64();break}case 7:{o.msgStatus=t.uint32();break}case 8:{o.msgSource=t.int32();break}case 9:{o.devId=t.string();break}case 10:{o.seqNo=t.uint64();break}case 11:{o.situation=t.uint32();break}case 12:{o.bindNote=u.bilibili.im.customer.model.BindNote.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.im.customer.model.Msg)return t;let i=new u.bilibili.im.customer.model.Msg;if(t.senderInfo!=null){if(typeof t.senderInfo!="object")throw TypeError(".bilibili.im.customer.model.Msg.senderInfo: object expected");i.senderInfo=u.bilibili.im.customer.model.TalkerInfo.fromObject(t.senderInfo)}if(t.receiverInfo!=null){if(typeof t.receiverInfo!="object")throw TypeError(".bilibili.im.customer.model.Msg.receiverInfo: object expected");i.receiverInfo=u.bilibili.im.customer.model.TalkerInfo.fromObject(t.receiverInfo)}switch(t.msgType){default:if(typeof t.msgType=="number"){i.msgType=t.msgType;break}break;case"MSG_TYPE_INVALID":case 0:i.msgType=0;break;case"MSG_TYPE_TEXT":case 1:i.msgType=1;break;case"MSG_TYPE_IMG":case 2:i.msgType=2;break;case"MSG_TYPE_WITHDRAW":case 5:i.msgType=5;break;case"MSG_TYPE_FAV_EMOJI":case 6:i.msgType=6;break;case"MSG_TYPE_SHARE":case 7:i.msgType=7;break;case"MSG_TYPE_VIDEO":case 17:i.msgType=17;break;case"MSG_TYPE_ORDER":case 10001:i.msgType=10001;break;case"MSG_TYPE_GOODS":case 10002:i.msgType=10002;break;case"MSG_TYPE_EVALUATION":case 10003:i.msgType=10003;break;case"MSG_TYPE_MESSAGE":case 10004:i.msgType=10004;break;case"MSG_TYPE_MACHINE_A":case 10005:i.msgType=10005;break;case"MSG_TYPE_MACHINE_Q":case 10006:i.msgType=10006;break;case"MSG_TYPE_CUSTOMER_COME":case 10007:i.msgType=10007;break;case"MSG_TYPE_MACHINE_WELCOME_TEXT":case 10008:i.msgType=10008;break;case"MSG_TYPE_MACHINE_WELCOME_QLIST":case 10009:i.msgType=10009;break;case"MSG_TYPE_SPLIT_Q":case 10010:i.msgType=10010;break;case"MSG_TYPE_SPLIT_A":case 10011:i.msgType=10011;break;case"MSG_TYPE_SWITCH_CUSTOMER":case 10012:i.msgType=10012;break;case"MSG_TYPE_CUSTOMER_INVITE_EVALUATION":case 10013:i.msgType=10013;break;case"MSG_TYPE_OUT_CUSTOMER_QUEUE":case 10014:i.msgType=10014;break;case"MSG_TYPE_OUT_CUSTOMER_SESS":case 10015:i.msgType=10015;break;case"MSG_TYPE_MESSAGE_GUIDE":case 10016:i.msgType=10016;break}switch(t.content!=null&&(i.content=String(t.content)),t.timestamp!=null&&(r.Long?(i.timestamp=r.Long.fromValue(t.timestamp)).unsigned=!0:typeof t.timestamp=="string"?i.timestamp=parseInt(t.timestamp,10):typeof t.timestamp=="number"?i.timestamp=t.timestamp:typeof t.timestamp=="object"&&(i.timestamp=new r.LongBits(t.timestamp.low>>>0,t.timestamp.high>>>0).toNumber(!0))),t.msgKey!=null&&(r.Long?(i.msgKey=r.Long.fromValue(t.msgKey)).unsigned=!0:typeof t.msgKey=="string"?i.msgKey=parseInt(t.msgKey,10):typeof t.msgKey=="number"?i.msgKey=t.msgKey:typeof t.msgKey=="object"&&(i.msgKey=new r.LongBits(t.msgKey.low>>>0,t.msgKey.high>>>0).toNumber(!0))),t.msgStatus!=null&&(i.msgStatus=t.msgStatus>>>0),t.msgSource){default:if(typeof t.msgSource=="number"){i.msgSource=t.msgSource;break}break;case"INVALID":case 0:i.msgSource=0;break;case"IOS":case 1:i.msgSource=1;break;case"ANDROID":case 2:i.msgSource=2;break;case"IPAD":case 3:i.msgSource=3;break;case"ANDROID_HD":case 4:i.msgSource=4;break;case"PC_APP":case 5:i.msgSource=5;break;case"WEB":case 6:i.msgSource=6;break;case"Biz":case 7:i.msgSource=7;break}if(t.devId!=null&&(i.devId=String(t.devId)),t.seqNo!=null&&(r.Long?(i.seqNo=r.Long.fromValue(t.seqNo)).unsigned=!0:typeof t.seqNo=="string"?i.seqNo=parseInt(t.seqNo,10):typeof t.seqNo=="number"?i.seqNo=t.seqNo:typeof t.seqNo=="object"&&(i.seqNo=new r.LongBits(t.seqNo.low>>>0,t.seqNo.high>>>0).toNumber(!0))),t.situation!=null&&(i.situation=t.situation>>>0),t.bindNote!=null){if(typeof t.bindNote!="object")throw TypeError(".bilibili.im.customer.model.Msg.bindNote: object expected");i.bindNote=u.bilibili.im.customer.model.BindNote.fromObject(t.bindNote)}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.senderInfo=null,n.receiverInfo=null,n.msgType=i.enums===String?"MSG_TYPE_INVALID":0,n.content="",r.Long){let o=new r.Long(0,0,!0);n.timestamp=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.timestamp=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!0);n.msgKey=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.msgKey=i.longs===String?"0":0;if(n.msgStatus=0,n.msgSource=i.enums===String?"INVALID":0,n.devId="",r.Long){let o=new r.Long(0,0,!0);n.seqNo=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.seqNo=i.longs===String?"0":0;n.situation=0,n.bindNote=null}return t.senderInfo!=null&&t.hasOwnProperty("senderInfo")&&(n.senderInfo=u.bilibili.im.customer.model.TalkerInfo.toObject(t.senderInfo,i)),t.receiverInfo!=null&&t.hasOwnProperty("receiverInfo")&&(n.receiverInfo=u.bilibili.im.customer.model.TalkerInfo.toObject(t.receiverInfo,i)),t.msgType!=null&&t.hasOwnProperty("msgType")&&(n.msgType=i.enums===String?u.bilibili.im.customer.model.MsgType[t.msgType]===void 0?t.msgType:u.bilibili.im.customer.model.MsgType[t.msgType]:t.msgType),t.content!=null&&t.hasOwnProperty("content")&&(n.content=t.content),t.timestamp!=null&&t.hasOwnProperty("timestamp")&&(typeof t.timestamp=="number"?n.timestamp=i.longs===String?String(t.timestamp):t.timestamp:n.timestamp=i.longs===String?r.Long.prototype.toString.call(t.timestamp):i.longs===Number?new r.LongBits(t.timestamp.low>>>0,t.timestamp.high>>>0).toNumber(!0):t.timestamp),t.msgKey!=null&&t.hasOwnProperty("msgKey")&&(typeof t.msgKey=="number"?n.msgKey=i.longs===String?String(t.msgKey):t.msgKey:n.msgKey=i.longs===String?r.Long.prototype.toString.call(t.msgKey):i.longs===Number?new r.LongBits(t.msgKey.low>>>0,t.msgKey.high>>>0).toNumber(!0):t.msgKey),t.msgStatus!=null&&t.hasOwnProperty("msgStatus")&&(n.msgStatus=t.msgStatus),t.msgSource!=null&&t.hasOwnProperty("msgSource")&&(n.msgSource=i.enums===String?u.bilibili.im.customer.model.MsgSource[t.msgSource]===void 0?t.msgSource:u.bilibili.im.customer.model.MsgSource[t.msgSource]:t.msgSource),t.devId!=null&&t.hasOwnProperty("devId")&&(n.devId=t.devId),t.seqNo!=null&&t.hasOwnProperty("seqNo")&&(typeof t.seqNo=="number"?n.seqNo=i.longs===String?String(t.seqNo):t.seqNo:n.seqNo=i.longs===String?r.Long.prototype.toString.call(t.seqNo):i.longs===Number?new r.LongBits(t.seqNo.low>>>0,t.seqNo.high>>>0).toNumber(!0):t.seqNo),t.situation!=null&&t.hasOwnProperty("situation")&&(n.situation=t.situation),t.bindNote!=null&&t.hasOwnProperty("bindNote")&&(n.bindNote=u.bilibili.im.customer.model.BindNote.toObject(t.bindNote,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.im.customer.model.Msg"},e}(),c.BindNote=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.content=t.string();break}case 2:{o.highColor=t.string();break}case 3:{o.color=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.im.customer.model.BindNote)return t;let i=new u.bilibili.im.customer.model.BindNote;return t.content!=null&&(i.content=String(t.content)),t.highColor!=null&&(i.highColor=String(t.highColor)),t.color!=null&&(i.color=String(t.color)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.content="",n.highColor="",n.color=""),t.content!=null&&t.hasOwnProperty("content")&&(n.content=t.content),t.highColor!=null&&t.hasOwnProperty("highColor")&&(n.highColor=t.highColor),t.color!=null&&t.hasOwnProperty("color")&&(n.color=t.color),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.im.customer.model.BindNote"},e}(),c.EmotionInfo=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.text=t.string();break}case 2:{o.url=t.string();break}case 3:{o.size=t.int32();break}case 4:{o.gifUrl=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.im.customer.model.EmotionInfo)return t;let i=new u.bilibili.im.customer.model.EmotionInfo;return t.text!=null&&(i.text=String(t.text)),t.url!=null&&(i.url=String(t.url)),t.size!=null&&(i.size=t.size|0),t.gifUrl!=null&&(i.gifUrl=String(t.gifUrl)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.text="",n.url="",n.size=0,n.gifUrl=""),t.text!=null&&t.hasOwnProperty("text")&&(n.text=t.text),t.url!=null&&t.hasOwnProperty("url")&&(n.url=t.url),t.size!=null&&t.hasOwnProperty("size")&&(n.size=t.size),t.gifUrl!=null&&t.hasOwnProperty("gifUrl")&&(n.gifUrl=t.gifUrl),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.im.customer.model.EmotionInfo"},e}(),c.EvaluationShowInfo=function(){function e(l){if(this.stepSelect=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.show=t.bool();break}case 2:{o.type=t.int32();break}case 3:{o.stepSelect&&o.stepSelect.length||(o.stepSelect=[]),o.stepSelect.push(u.bilibili.im.customer.model.EvaluationStepSelect.decode(t,t.uint32()));break}case 4:{o.msgKey=t.uint64();break}case 5:{o.up=t.bool();break}case 6:{o.feedback=t.string();break}case 7:{o.customerSessId=t.uint64();break}case 8:{o.done=t.bool();break}case 9:{o.editorInput=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.im.customer.model.EvaluationShowInfo)return t;let i=new u.bilibili.im.customer.model.EvaluationShowInfo;switch(t.show!=null&&(i.show=!!t.show),t.type){default:if(typeof t.type=="number"){i.type=t.type;break}break;case"EvaluateMachineMsg":case 0:i.type=0;break;case"EvaluateCustomer":case 1:i.type=1;break;case"EvaluateCustomerInvited":case 2:i.type=2;break}if(t.stepSelect){if(!Array.isArray(t.stepSelect))throw TypeError(".bilibili.im.customer.model.EvaluationShowInfo.stepSelect: array expected");i.stepSelect=[];for(let n=0;n>>0,t.msgKey.high>>>0).toNumber(!0))),t.up!=null&&(i.up=!!t.up),t.feedback!=null&&(i.feedback=String(t.feedback)),t.customerSessId!=null&&(r.Long?(i.customerSessId=r.Long.fromValue(t.customerSessId)).unsigned=!0:typeof t.customerSessId=="string"?i.customerSessId=parseInt(t.customerSessId,10):typeof t.customerSessId=="number"?i.customerSessId=t.customerSessId:typeof t.customerSessId=="object"&&(i.customerSessId=new r.LongBits(t.customerSessId.low>>>0,t.customerSessId.high>>>0).toNumber(!0))),t.done!=null&&(i.done=!!t.done),t.editorInput!=null&&(i.editorInput=String(t.editorInput)),i},e.toObject=function(t,i){i||(i={});let n={};if((i.arrays||i.defaults)&&(n.stepSelect=[]),i.defaults){if(n.show=!1,n.type=i.enums===String?"EvaluateMachineMsg":0,r.Long){let o=new r.Long(0,0,!0);n.msgKey=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.msgKey=i.longs===String?"0":0;if(n.up=!1,n.feedback="",r.Long){let o=new r.Long(0,0,!0);n.customerSessId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.customerSessId=i.longs===String?"0":0;n.done=!1,n.editorInput=""}if(t.show!=null&&t.hasOwnProperty("show")&&(n.show=t.show),t.type!=null&&t.hasOwnProperty("type")&&(n.type=i.enums===String?u.bilibili.im.customer.model.EvaluateType[t.type]===void 0?t.type:u.bilibili.im.customer.model.EvaluateType[t.type]:t.type),t.stepSelect&&t.stepSelect.length){n.stepSelect=[];for(let o=0;o>>0,t.msgKey.high>>>0).toNumber(!0):t.msgKey),t.up!=null&&t.hasOwnProperty("up")&&(n.up=t.up),t.feedback!=null&&t.hasOwnProperty("feedback")&&(n.feedback=t.feedback),t.customerSessId!=null&&t.hasOwnProperty("customerSessId")&&(typeof t.customerSessId=="number"?n.customerSessId=i.longs===String?String(t.customerSessId):t.customerSessId:n.customerSessId=i.longs===String?r.Long.prototype.toString.call(t.customerSessId):i.longs===Number?new r.LongBits(t.customerSessId.low>>>0,t.customerSessId.high>>>0).toNumber(!0):t.customerSessId),t.done!=null&&t.hasOwnProperty("done")&&(n.done=t.done),t.editorInput!=null&&t.hasOwnProperty("editorInput")&&(n.editorInput=t.editorInput),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.im.customer.model.EvaluationShowInfo"},e}(),c.EvaluationStepSelect=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.text=t.string();break}case 2:{o.select=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.im.customer.model.EvaluationStepSelect)return t;let i=new u.bilibili.im.customer.model.EvaluationStepSelect;switch(t.text!=null&&(i.text=String(t.text)),t.select){default:if(typeof t.select=="number"){i.select=t.select;break}break;case"ABLE":case 0:i.select=0;break;case"SELECTED":case 1:i.select=1;break;case"UNABLE":case 2:i.select=2;break}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.text="",n.select=i.enums===String?"ABLE":0),t.text!=null&&t.hasOwnProperty("text")&&(n.text=t.text),t.select!=null&&t.hasOwnProperty("select")&&(n.select=i.enums===String?u.bilibili.im.customer.model.Select[t.select]===void 0?t.select:u.bilibili.im.customer.model.Select[t.select]:t.select),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.im.customer.model.EvaluationStepSelect"},e}(),c.Business=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.businessId=t.uint64();break}case 2:{o.businessName=t.string();break}case 3:{o.select=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.im.customer.model.Business)return t;let i=new u.bilibili.im.customer.model.Business;switch(t.businessId!=null&&(r.Long?(i.businessId=r.Long.fromValue(t.businessId)).unsigned=!0:typeof t.businessId=="string"?i.businessId=parseInt(t.businessId,10):typeof t.businessId=="number"?i.businessId=t.businessId:typeof t.businessId=="object"&&(i.businessId=new r.LongBits(t.businessId.low>>>0,t.businessId.high>>>0).toNumber(!0))),t.businessName!=null&&(i.businessName=String(t.businessName)),t.select){default:if(typeof t.select=="number"){i.select=t.select;break}break;case"ABLE":case 0:i.select=0;break;case"SELECTED":case 1:i.select=1;break;case"UNABLE":case 2:i.select=2;break}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!0);n.businessId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.businessId=i.longs===String?"0":0;n.businessName="",n.select=i.enums===String?"ABLE":0}return t.businessId!=null&&t.hasOwnProperty("businessId")&&(typeof t.businessId=="number"?n.businessId=i.longs===String?String(t.businessId):t.businessId:n.businessId=i.longs===String?r.Long.prototype.toString.call(t.businessId):i.longs===Number?new r.LongBits(t.businessId.low>>>0,t.businessId.high>>>0).toNumber(!0):t.businessId),t.businessName!=null&&t.hasOwnProperty("businessName")&&(n.businessName=t.businessName),t.select!=null&&t.hasOwnProperty("select")&&(n.select=i.enums===String?u.bilibili.im.customer.model.Select[t.select]===void 0?t.select:u.bilibili.im.customer.model.Select[t.select]:t.select),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.im.customer.model.Business"},e}(),c.Group=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.groupId=t.uint64();break}case 2:{o.groupName=t.string();break}case 3:{o.select=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.im.customer.model.Group)return t;let i=new u.bilibili.im.customer.model.Group;switch(t.groupId!=null&&(r.Long?(i.groupId=r.Long.fromValue(t.groupId)).unsigned=!0:typeof t.groupId=="string"?i.groupId=parseInt(t.groupId,10):typeof t.groupId=="number"?i.groupId=t.groupId:typeof t.groupId=="object"&&(i.groupId=new r.LongBits(t.groupId.low>>>0,t.groupId.high>>>0).toNumber(!0))),t.groupName!=null&&(i.groupName=String(t.groupName)),t.select){default:if(typeof t.select=="number"){i.select=t.select;break}break;case"ABLE":case 0:i.select=0;break;case"SELECTED":case 1:i.select=1;break;case"UNABLE":case 2:i.select=2;break}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!0);n.groupId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.groupId=i.longs===String?"0":0;n.groupName="",n.select=i.enums===String?"ABLE":0}return t.groupId!=null&&t.hasOwnProperty("groupId")&&(typeof t.groupId=="number"?n.groupId=i.longs===String?String(t.groupId):t.groupId:n.groupId=i.longs===String?r.Long.prototype.toString.call(t.groupId):i.longs===Number?new r.LongBits(t.groupId.low>>>0,t.groupId.high>>>0).toNumber(!0):t.groupId),t.groupName!=null&&t.hasOwnProperty("groupName")&&(n.groupName=t.groupName),t.select!=null&&t.hasOwnProperty("select")&&(n.select=i.enums===String?u.bilibili.im.customer.model.Select[t.select]===void 0?t.select:u.bilibili.im.customer.model.Select[t.select]:t.select),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.im.customer.model.Group"},e}(),c.SplitAnsMsgContentType=function(){let e={},l=Object.create(e);return l[e[0]="BUSINESS"]=0,l[e[1]="GROUP"]=1,l[e[2]="CUSTOM"]=2,l}(),c.MsgSpLitA=function(){function e(l){if(this.businessList=[],this.groupList=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.Type=t.int32();break}case 2:{o.businessList&&o.businessList.length||(o.businessList=[]),o.businessList.push(u.bilibili.im.customer.model.Business.decode(t,t.uint32()));break}case 3:{o.groupList&&o.groupList.length||(o.groupList=[]),o.groupList.push(u.bilibili.im.customer.model.Group.decode(t,t.uint32()));break}case 4:{o.customerInfo=u.bilibili.im.customer.model.CustomerInfo.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.im.customer.model.MsgSpLitA)return t;let i=new u.bilibili.im.customer.model.MsgSpLitA;switch(t.Type){default:if(typeof t.Type=="number"){i.Type=t.Type;break}break;case"BUSINESS":case 0:i.Type=0;break;case"GROUP":case 1:i.Type=1;break;case"CUSTOM":case 2:i.Type=2;break}if(t.businessList){if(!Array.isArray(t.businessList))throw TypeError(".bilibili.im.customer.model.MsgSpLitA.businessList: array expected");i.businessList=[];for(let n=0;n>>3){case 1:{o.customerId=t.uint64();break}case 2:{o.customerName=t.string();break}case 3:{o.customerState=t.int32();break}case 4:{o.queueRank=t.uint64();break}case 5:{o.isCancel=t.uint32();break}case 6:{o.preCustomer=u.bilibili.im.customer.model.MsgSpLitAnsCustomer.decode(t,t.uint32());break}case 7:{o.customerStateDesc=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.im.customer.model.CustomerInfo)return t;let i=new u.bilibili.im.customer.model.CustomerInfo;switch(t.customerId!=null&&(r.Long?(i.customerId=r.Long.fromValue(t.customerId)).unsigned=!0:typeof t.customerId=="string"?i.customerId=parseInt(t.customerId,10):typeof t.customerId=="number"?i.customerId=t.customerId:typeof t.customerId=="object"&&(i.customerId=new r.LongBits(t.customerId.low>>>0,t.customerId.high>>>0).toNumber(!0))),t.customerName!=null&&(i.customerName=String(t.customerName)),t.customerState){default:if(typeof t.customerState=="number"){i.customerState=t.customerState;break}break;case"OFFLINE":case 0:i.customerState=0;break;case"CROWD":case 1:i.customerState=1;break;case"ONLINE":case 2:i.customerState=2;break;case"SWITCH_ONLINE":case 3:i.customerState=3;break;case"RANKING":case 4:i.customerState=4;break;case"SWITCH_RANKING":case 5:i.customerState=5;break;case"OUT_CUSTOMER_QUEUE":case 6:i.customerState=6;break;case"OUT_CUSTOMER_QUEUE_WITH_MESSAGE":case 7:i.customerState=7;break;case"OUT_WORK":case 8:i.customerState=8;break;case"CUSTOMER_INVITE":case 9:i.customerState=9;break;case"WORK_BATCH_STOP_RANK":case 10:i.customerState=10;break;case"FORCE_SWITCH_CUSTOMER":case 11:i.customerState=11;break;case"RANKING_ONLY":case 12:i.customerState=12;break;case"NO_CUSTOMER_ONLY":case 13:i.customerState=13;break;case"OFFLINE_PROCESS":case 14:i.customerState=14;break}if(t.queueRank!=null&&(r.Long?(i.queueRank=r.Long.fromValue(t.queueRank)).unsigned=!0:typeof t.queueRank=="string"?i.queueRank=parseInt(t.queueRank,10):typeof t.queueRank=="number"?i.queueRank=t.queueRank:typeof t.queueRank=="object"&&(i.queueRank=new r.LongBits(t.queueRank.low>>>0,t.queueRank.high>>>0).toNumber(!0))),t.isCancel!=null&&(i.isCancel=t.isCancel>>>0),t.preCustomer!=null){if(typeof t.preCustomer!="object")throw TypeError(".bilibili.im.customer.model.CustomerInfo.preCustomer: object expected");i.preCustomer=u.bilibili.im.customer.model.MsgSpLitAnsCustomer.fromObject(t.preCustomer)}return t.customerStateDesc!=null&&(i.customerStateDesc=String(t.customerStateDesc)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!0);n.customerId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.customerId=i.longs===String?"0":0;if(n.customerName="",n.customerState=i.enums===String?"OFFLINE":0,r.Long){let o=new r.Long(0,0,!0);n.queueRank=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.queueRank=i.longs===String?"0":0;n.isCancel=0,n.preCustomer=null,n.customerStateDesc=""}return t.customerId!=null&&t.hasOwnProperty("customerId")&&(typeof t.customerId=="number"?n.customerId=i.longs===String?String(t.customerId):t.customerId:n.customerId=i.longs===String?r.Long.prototype.toString.call(t.customerId):i.longs===Number?new r.LongBits(t.customerId.low>>>0,t.customerId.high>>>0).toNumber(!0):t.customerId),t.customerName!=null&&t.hasOwnProperty("customerName")&&(n.customerName=t.customerName),t.customerState!=null&&t.hasOwnProperty("customerState")&&(n.customerState=i.enums===String?u.bilibili.im.customer.model.CustomerRankStatus[t.customerState]===void 0?t.customerState:u.bilibili.im.customer.model.CustomerRankStatus[t.customerState]:t.customerState),t.queueRank!=null&&t.hasOwnProperty("queueRank")&&(typeof t.queueRank=="number"?n.queueRank=i.longs===String?String(t.queueRank):t.queueRank:n.queueRank=i.longs===String?r.Long.prototype.toString.call(t.queueRank):i.longs===Number?new r.LongBits(t.queueRank.low>>>0,t.queueRank.high>>>0).toNumber(!0):t.queueRank),t.isCancel!=null&&t.hasOwnProperty("isCancel")&&(n.isCancel=t.isCancel),t.preCustomer!=null&&t.hasOwnProperty("preCustomer")&&(n.preCustomer=u.bilibili.im.customer.model.MsgSpLitAnsCustomer.toObject(t.preCustomer,i)),t.customerStateDesc!=null&&t.hasOwnProperty("customerStateDesc")&&(n.customerStateDesc=t.customerStateDesc),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.im.customer.model.CustomerInfo"},e}(),c.MsgSpLitAnsCustomer=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.customerId=t.uint64();break}case 2:{o.customerName=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.im.customer.model.MsgSpLitAnsCustomer)return t;let i=new u.bilibili.im.customer.model.MsgSpLitAnsCustomer;return t.customerId!=null&&(r.Long?(i.customerId=r.Long.fromValue(t.customerId)).unsigned=!0:typeof t.customerId=="string"?i.customerId=parseInt(t.customerId,10):typeof t.customerId=="number"?i.customerId=t.customerId:typeof t.customerId=="object"&&(i.customerId=new r.LongBits(t.customerId.low>>>0,t.customerId.high>>>0).toNumber(!0))),t.customerName!=null&&(i.customerName=String(t.customerName)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!0);n.customerId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.customerId=i.longs===String?"0":0;n.customerName=""}return t.customerId!=null&&t.hasOwnProperty("customerId")&&(typeof t.customerId=="number"?n.customerId=i.longs===String?String(t.customerId):t.customerId:n.customerId=i.longs===String?r.Long.prototype.toString.call(t.customerId):i.longs===Number?new r.LongBits(t.customerId.low>>>0,t.customerId.high>>>0).toNumber(!0):t.customerId),t.customerName!=null&&t.hasOwnProperty("customerName")&&(n.customerName=t.customerName),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.im.customer.model.MsgSpLitAnsCustomer"},e}(),c.CustomerRankStatus=function(){let e={},l=Object.create(e);return l[e[0]="OFFLINE"]=0,l[e[1]="CROWD"]=1,l[e[2]="ONLINE"]=2,l[e[3]="SWITCH_ONLINE"]=3,l[e[4]="RANKING"]=4,l[e[5]="SWITCH_RANKING"]=5,l[e[6]="OUT_CUSTOMER_QUEUE"]=6,l[e[7]="OUT_CUSTOMER_QUEUE_WITH_MESSAGE"]=7,l[e[8]="OUT_WORK"]=8,l[e[9]="CUSTOMER_INVITE"]=9,l[e[10]="WORK_BATCH_STOP_RANK"]=10,l[e[11]="FORCE_SWITCH_CUSTOMER"]=11,l[e[12]="RANKING_ONLY"]=12,l[e[13]="NO_CUSTOMER_ONLY"]=13,l[e[14]="OFFLINE_PROCESS"]=14,l}(),c.Select=function(){let e={},l=Object.create(e);return l[e[0]="ABLE"]=0,l[e[1]="SELECTED"]=1,l[e[2]="UNABLE"]=2,l}(),c.EvaluateType=function(){let e={},l=Object.create(e);return l[e[0]="EvaluateMachineMsg"]=0,l[e[1]="EvaluateCustomer"]=1,l[e[2]="EvaluateCustomerInvited"]=2,l}(),c.TalkerType=function(){let e={},l=Object.create(e);return l[e[0]="MACHINE"]=0,l[e[1]="CUSTOMER"]=1,l[e[2]="SYS_NOTICE"]=2,l[e[3]="USER"]=3,l}(),c.MsgSource=function(){let e={},l=Object.create(e);return l[e[0]="INVALID"]=0,l[e[1]="IOS"]=1,l[e[2]="ANDROID"]=2,l[e[3]="IPAD"]=3,l[e[4]="ANDROID_HD"]=4,l[e[5]="PC_APP"]=5,l[e[6]="WEB"]=6,l[e[7]="Biz"]=7,l}(),c.MsgType=function(){let e={},l=Object.create(e);return l[e[0]="MSG_TYPE_INVALID"]=0,l[e[1]="MSG_TYPE_TEXT"]=1,l[e[2]="MSG_TYPE_IMG"]=2,l[e[5]="MSG_TYPE_WITHDRAW"]=5,l[e[6]="MSG_TYPE_FAV_EMOJI"]=6,l[e[7]="MSG_TYPE_SHARE"]=7,l[e[17]="MSG_TYPE_VIDEO"]=17,l[e[10001]="MSG_TYPE_ORDER"]=10001,l[e[10002]="MSG_TYPE_GOODS"]=10002,l[e[10003]="MSG_TYPE_EVALUATION"]=10003,l[e[10004]="MSG_TYPE_MESSAGE"]=10004,l[e[10005]="MSG_TYPE_MACHINE_A"]=10005,l[e[10006]="MSG_TYPE_MACHINE_Q"]=10006,l[e[10007]="MSG_TYPE_CUSTOMER_COME"]=10007,l[e[10008]="MSG_TYPE_MACHINE_WELCOME_TEXT"]=10008,l[e[10009]="MSG_TYPE_MACHINE_WELCOME_QLIST"]=10009,l[e[10010]="MSG_TYPE_SPLIT_Q"]=10010,l[e[10011]="MSG_TYPE_SPLIT_A"]=10011,l[e[10012]="MSG_TYPE_SWITCH_CUSTOMER"]=10012,l[e[10013]="MSG_TYPE_CUSTOMER_INVITE_EVALUATION"]=10013,l[e[10014]="MSG_TYPE_OUT_CUSTOMER_QUEUE"]=10014,l[e[10015]="MSG_TYPE_OUT_CUSTOMER_SESS"]=10015,l[e[10016]="MSG_TYPE_MESSAGE_GUIDE"]=10016,l}(),c.Situation=function(){let e={},l=Object.create(e);return l[e[0]="Invalid"]=0,l[e[1]="IM"]=1,l[e[2]="ServiceCenter"]=2,l[e[3]="Order"]=3,l[e[4]="Push"]=4,l[e[5]="Goods"]=5,l[e[6]="VipMall"]=6,l[e[7]="Else"]=7,l[e[8]="Live"]=8,l[e[9]="Space"]=9,l}(),c}(),p}(),d.gateway=function(){let p={};return p.comm=function(){return{}}(),p.interface_=function(){let c={};return c.v1=function(){let e={};return e.ImGatewayApi=function(){function l(t,i,n){b.rpc.Service.call(this,t,i,n)}return(l.prototype=Object.create(b.rpc.Service.prototype)).constructor=l,l.create=function(i,n,o){return new this(i,n,o)},Object.defineProperty(l.prototype.getSessions=function t(i,n){return this.rpcCall(t,u.bilibili.im.gateway.interface_.v1.ReqGetSessions,u.bilibili.im.interface_.v1.RspSessions,i,n)},"name",{value:"GetSessions"}),Object.defineProperty(l.prototype.newSessions=function t(i,n){return this.rpcCall(t,u.bilibili.im.gateway.interface_.v1.ReqNewSessions,u.bilibili.im.interface_.v1.RspSessions,i,n)},"name",{value:"NewSessions"}),Object.defineProperty(l.prototype.setTop=function t(i,n){return this.rpcCall(t,u.bilibili.im.gateway.interface_.v1.ReqSetTop,u.bilibili.im.gateway.interface_.v1.DummyRsp,i,n)},"name",{value:"SetTop"}),Object.defineProperty(l.prototype.removeSession=function t(i,n){return this.rpcCall(t,u.bilibili.im.gateway.interface_.v1.ReqRemoveSession,u.bilibili.im.gateway.interface_.v1.DummyRsp,i,n)},"name",{value:"RemoveSession"}),l}(),e.ReqGetSessions=function(){function l(t){if(this.sids=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.beginTs=i.uint64();break}case 2:{a.endTs=i.uint64();break}case 3:{a.size=i.uint32();break}case 4:{a.sessionType=i.uint32();break}case 5:{a.unfollowFold=i.uint32();break}case 6:{a.groupFold=i.uint32();break}case 7:{a.sortRule=i.uint32();break}case 8:{a.teenagerMode=i.uint32();break}case 9:{a.lessonsMode=i.uint32();break}case 11:{if(a.sids&&a.sids.length||(a.sids=[]),(y&7)===2){let s=i.uint32()+i.pos;for(;i.pos>>0,i.beginTs.high>>>0).toNumber(!0))),i.endTs!=null&&(r.Long?(n.endTs=r.Long.fromValue(i.endTs)).unsigned=!0:typeof i.endTs=="string"?n.endTs=parseInt(i.endTs,10):typeof i.endTs=="number"?n.endTs=i.endTs:typeof i.endTs=="object"&&(n.endTs=new r.LongBits(i.endTs.low>>>0,i.endTs.high>>>0).toNumber(!0))),i.size!=null&&(n.size=i.size>>>0),i.sessionType!=null&&(n.sessionType=i.sessionType>>>0),i.unfollowFold!=null&&(n.unfollowFold=i.unfollowFold>>>0),i.groupFold!=null&&(n.groupFold=i.groupFold>>>0),i.sortRule!=null&&(n.sortRule=i.sortRule>>>0),i.teenagerMode!=null&&(n.teenagerMode=i.teenagerMode>>>0),i.lessonsMode!=null&&(n.lessonsMode=i.lessonsMode>>>0),i.sids){if(!Array.isArray(i.sids))throw TypeError(".bilibili.im.gateway.interface_.v1.ReqGetSessions.sids: array expected");n.sids=[];for(let o=0;o>>0,i.beginTs.high>>>0).toNumber(!0):i.beginTs),i.endTs!=null&&i.hasOwnProperty("endTs")&&(typeof i.endTs=="number"?o.endTs=n.longs===String?String(i.endTs):i.endTs:o.endTs=n.longs===String?r.Long.prototype.toString.call(i.endTs):n.longs===Number?new r.LongBits(i.endTs.low>>>0,i.endTs.high>>>0).toNumber(!0):i.endTs),i.size!=null&&i.hasOwnProperty("size")&&(o.size=i.size),i.sessionType!=null&&i.hasOwnProperty("sessionType")&&(o.sessionType=i.sessionType),i.unfollowFold!=null&&i.hasOwnProperty("unfollowFold")&&(o.unfollowFold=i.unfollowFold),i.groupFold!=null&&i.hasOwnProperty("groupFold")&&(o.groupFold=i.groupFold),i.sortRule!=null&&i.hasOwnProperty("sortRule")&&(o.sortRule=i.sortRule),i.teenagerMode!=null&&i.hasOwnProperty("teenagerMode")&&(o.teenagerMode=i.teenagerMode),i.lessonsMode!=null&&i.hasOwnProperty("lessonsMode")&&(o.lessonsMode=i.lessonsMode),i.sids&&i.sids.length){o.sids=[];for(let a=0;a>>3){case 1:{a.beginTs=i.uint64();break}case 2:{a.size=i.uint32();break}case 3:{a.teenagerMode=i.uint32();break}case 4:{a.lessonsMode=i.uint32();break}case 6:{if(a.sids&&a.sids.length||(a.sids=[]),(y&7)===2){let s=i.uint32()+i.pos;for(;i.pos>>0,i.beginTs.high>>>0).toNumber(!0))),i.size!=null&&(n.size=i.size>>>0),i.teenagerMode!=null&&(n.teenagerMode=i.teenagerMode>>>0),i.lessonsMode!=null&&(n.lessonsMode=i.lessonsMode>>>0),i.sids){if(!Array.isArray(i.sids))throw TypeError(".bilibili.im.gateway.interface_.v1.ReqNewSessions.sids: array expected");n.sids=[];for(let o=0;o>>0,i.beginTs.high>>>0).toNumber(!0):i.beginTs),i.size!=null&&i.hasOwnProperty("size")&&(o.size=i.size),i.teenagerMode!=null&&i.hasOwnProperty("teenagerMode")&&(o.teenagerMode=i.teenagerMode),i.lessonsMode!=null&&i.hasOwnProperty("lessonsMode")&&(o.lessonsMode=i.lessonsMode),i.sids&&i.sids.length){o.sids=[];for(let a=0;a>>3){case 1:{a.talkerId=i.uint64();break}case 2:{a.sessionType=i.uint32();break}case 3:{a.opType=i.uint32();break}case 4:{a.shopId=i.uint64();break}case 5:{a.shopFatherId=i.uint64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.im.gateway.interface_.v1.ReqSetTop)return i;let n=new u.bilibili.im.gateway.interface_.v1.ReqSetTop;return i.talkerId!=null&&(r.Long?(n.talkerId=r.Long.fromValue(i.talkerId)).unsigned=!0:typeof i.talkerId=="string"?n.talkerId=parseInt(i.talkerId,10):typeof i.talkerId=="number"?n.talkerId=i.talkerId:typeof i.talkerId=="object"&&(n.talkerId=new r.LongBits(i.talkerId.low>>>0,i.talkerId.high>>>0).toNumber(!0))),i.sessionType!=null&&(n.sessionType=i.sessionType>>>0),i.opType!=null&&(n.opType=i.opType>>>0),i.shopId!=null&&(r.Long?(n.shopId=r.Long.fromValue(i.shopId)).unsigned=!0:typeof i.shopId=="string"?n.shopId=parseInt(i.shopId,10):typeof i.shopId=="number"?n.shopId=i.shopId:typeof i.shopId=="object"&&(n.shopId=new r.LongBits(i.shopId.low>>>0,i.shopId.high>>>0).toNumber(!0))),i.shopFatherId!=null&&(r.Long?(n.shopFatherId=r.Long.fromValue(i.shopFatherId)).unsigned=!0:typeof i.shopFatherId=="string"?n.shopFatherId=parseInt(i.shopFatherId,10):typeof i.shopFatherId=="number"?n.shopFatherId=i.shopFatherId:typeof i.shopFatherId=="object"&&(n.shopFatherId=new r.LongBits(i.shopFatherId.low>>>0,i.shopFatherId.high>>>0).toNumber(!0))),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!0);o.talkerId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.talkerId=n.longs===String?"0":0;if(o.sessionType=0,o.opType=0,r.Long){let a=new r.Long(0,0,!0);o.shopId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.shopId=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!0);o.shopFatherId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.shopFatherId=n.longs===String?"0":0}return i.talkerId!=null&&i.hasOwnProperty("talkerId")&&(typeof i.talkerId=="number"?o.talkerId=n.longs===String?String(i.talkerId):i.talkerId:o.talkerId=n.longs===String?r.Long.prototype.toString.call(i.talkerId):n.longs===Number?new r.LongBits(i.talkerId.low>>>0,i.talkerId.high>>>0).toNumber(!0):i.talkerId),i.sessionType!=null&&i.hasOwnProperty("sessionType")&&(o.sessionType=i.sessionType),i.opType!=null&&i.hasOwnProperty("opType")&&(o.opType=i.opType),i.shopId!=null&&i.hasOwnProperty("shopId")&&(typeof i.shopId=="number"?o.shopId=n.longs===String?String(i.shopId):i.shopId:o.shopId=n.longs===String?r.Long.prototype.toString.call(i.shopId):n.longs===Number?new r.LongBits(i.shopId.low>>>0,i.shopId.high>>>0).toNumber(!0):i.shopId),i.shopFatherId!=null&&i.hasOwnProperty("shopFatherId")&&(typeof i.shopFatherId=="number"?o.shopFatherId=n.longs===String?String(i.shopFatherId):i.shopFatherId:o.shopFatherId=n.longs===String?r.Long.prototype.toString.call(i.shopFatherId):n.longs===Number?new r.LongBits(i.shopFatherId.low>>>0,i.shopFatherId.high>>>0).toNumber(!0):i.shopFatherId),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.im.gateway.interface_.v1.ReqSetTop"},l}(),e.ReqRemoveSession=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.talkerId=i.uint64();break}case 2:{a.sessionType=i.uint32();break}case 3:{a.shopId=i.uint64();break}case 4:{a.shopFatherId=i.uint64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.im.gateway.interface_.v1.ReqRemoveSession)return i;let n=new u.bilibili.im.gateway.interface_.v1.ReqRemoveSession;return i.talkerId!=null&&(r.Long?(n.talkerId=r.Long.fromValue(i.talkerId)).unsigned=!0:typeof i.talkerId=="string"?n.talkerId=parseInt(i.talkerId,10):typeof i.talkerId=="number"?n.talkerId=i.talkerId:typeof i.talkerId=="object"&&(n.talkerId=new r.LongBits(i.talkerId.low>>>0,i.talkerId.high>>>0).toNumber(!0))),i.sessionType!=null&&(n.sessionType=i.sessionType>>>0),i.shopId!=null&&(r.Long?(n.shopId=r.Long.fromValue(i.shopId)).unsigned=!0:typeof i.shopId=="string"?n.shopId=parseInt(i.shopId,10):typeof i.shopId=="number"?n.shopId=i.shopId:typeof i.shopId=="object"&&(n.shopId=new r.LongBits(i.shopId.low>>>0,i.shopId.high>>>0).toNumber(!0))),i.shopFatherId!=null&&(r.Long?(n.shopFatherId=r.Long.fromValue(i.shopFatherId)).unsigned=!0:typeof i.shopFatherId=="string"?n.shopFatherId=parseInt(i.shopFatherId,10):typeof i.shopFatherId=="number"?n.shopFatherId=i.shopFatherId:typeof i.shopFatherId=="object"&&(n.shopFatherId=new r.LongBits(i.shopFatherId.low>>>0,i.shopFatherId.high>>>0).toNumber(!0))),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!0);o.talkerId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.talkerId=n.longs===String?"0":0;if(o.sessionType=0,r.Long){let a=new r.Long(0,0,!0);o.shopId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.shopId=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!0);o.shopFatherId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.shopFatherId=n.longs===String?"0":0}return i.talkerId!=null&&i.hasOwnProperty("talkerId")&&(typeof i.talkerId=="number"?o.talkerId=n.longs===String?String(i.talkerId):i.talkerId:o.talkerId=n.longs===String?r.Long.prototype.toString.call(i.talkerId):n.longs===Number?new r.LongBits(i.talkerId.low>>>0,i.talkerId.high>>>0).toNumber(!0):i.talkerId),i.sessionType!=null&&i.hasOwnProperty("sessionType")&&(o.sessionType=i.sessionType),i.shopId!=null&&i.hasOwnProperty("shopId")&&(typeof i.shopId=="number"?o.shopId=n.longs===String?String(i.shopId):i.shopId:o.shopId=n.longs===String?r.Long.prototype.toString.call(i.shopId):n.longs===Number?new r.LongBits(i.shopId.low>>>0,i.shopId.high>>>0).toNumber(!0):i.shopId),i.shopFatherId!=null&&i.hasOwnProperty("shopFatherId")&&(typeof i.shopFatherId=="number"?o.shopFatherId=n.longs===String?String(i.shopFatherId):i.shopFatherId:o.shopFatherId=n.longs===String?r.Long.prototype.toString.call(i.shopFatherId):n.longs===Number?new r.LongBits(i.shopFatherId.low>>>0,i.shopFatherId.high>>>0).toNumber(!0):i.shopFatherId),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.im.gateway.interface_.v1.ReqRemoveSession"},l}(),e.DummyRsp=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){default:i.skipType(y&7);break}}return a},l.fromObject=function(i){return i instanceof u.bilibili.im.gateway.interface_.v1.DummyRsp?i:new u.bilibili.im.gateway.interface_.v1.DummyRsp},l.toObject=function(){return{}},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.im.gateway.interface_.v1.DummyRsp"},l}(),e.GetCommerceCustomerGoodsCardReq=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.ruid=i.int64();break}case 2:{a.goodsId=i.string();break}case 3:{a.uid=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.im.gateway.interface_.v1.GetCommerceCustomerGoodsCardReq)return i;let n=new u.bilibili.im.gateway.interface_.v1.GetCommerceCustomerGoodsCardReq;return i.ruid!=null&&(r.Long?(n.ruid=r.Long.fromValue(i.ruid)).unsigned=!1:typeof i.ruid=="string"?n.ruid=parseInt(i.ruid,10):typeof i.ruid=="number"?n.ruid=i.ruid:typeof i.ruid=="object"&&(n.ruid=new r.LongBits(i.ruid.low>>>0,i.ruid.high>>>0).toNumber())),i.goodsId!=null&&(n.goodsId=String(i.goodsId)),i.uid!=null&&(r.Long?(n.uid=r.Long.fromValue(i.uid)).unsigned=!1:typeof i.uid=="string"?n.uid=parseInt(i.uid,10):typeof i.uid=="number"?n.uid=i.uid:typeof i.uid=="object"&&(n.uid=new r.LongBits(i.uid.low>>>0,i.uid.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.ruid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.ruid=n.longs===String?"0":0;if(o.goodsId="",r.Long){let a=new r.Long(0,0,!1);o.uid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.uid=n.longs===String?"0":0}return i.ruid!=null&&i.hasOwnProperty("ruid")&&(typeof i.ruid=="number"?o.ruid=n.longs===String?String(i.ruid):i.ruid:o.ruid=n.longs===String?r.Long.prototype.toString.call(i.ruid):n.longs===Number?new r.LongBits(i.ruid.low>>>0,i.ruid.high>>>0).toNumber():i.ruid),i.goodsId!=null&&i.hasOwnProperty("goodsId")&&(o.goodsId=i.goodsId),i.uid!=null&&i.hasOwnProperty("uid")&&(typeof i.uid=="number"?o.uid=n.longs===String?String(i.uid):i.uid:o.uid=n.longs===String?r.Long.prototype.toString.call(i.uid):n.longs===Number?new r.LongBits(i.uid.low>>>0,i.uid.high>>>0).toNumber():i.uid),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.im.gateway.interface_.v1.GetCommerceCustomerGoodsCardReq"},l}(),e.GetCommerceCustomerGoodsCardRsp=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.baseInfo=u.bilibili.im.gateway.interface_.v1.LiveRoomBaseInfo.decode(i,i.uint32());break}case 2:{a.item=u.bilibili.im.gateway.interface_.v1.CommerceGoodsItem.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.im.gateway.interface_.v1.GetCommerceCustomerGoodsCardRsp)return i;let n=new u.bilibili.im.gateway.interface_.v1.GetCommerceCustomerGoodsCardRsp;if(i.baseInfo!=null){if(typeof i.baseInfo!="object")throw TypeError(".bilibili.im.gateway.interface_.v1.GetCommerceCustomerGoodsCardRsp.baseInfo: object expected");n.baseInfo=u.bilibili.im.gateway.interface_.v1.LiveRoomBaseInfo.fromObject(i.baseInfo)}if(i.item!=null){if(typeof i.item!="object")throw TypeError(".bilibili.im.gateway.interface_.v1.GetCommerceCustomerGoodsCardRsp.item: object expected");n.item=u.bilibili.im.gateway.interface_.v1.CommerceGoodsItem.fromObject(i.item)}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.baseInfo=null,o.item=null),i.baseInfo!=null&&i.hasOwnProperty("baseInfo")&&(o.baseInfo=u.bilibili.im.gateway.interface_.v1.LiveRoomBaseInfo.toObject(i.baseInfo,n)),i.item!=null&&i.hasOwnProperty("item")&&(o.item=u.bilibili.im.gateway.interface_.v1.CommerceGoodsItem.toObject(i.item,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.im.gateway.interface_.v1.GetCommerceCustomerGoodsCardRsp"},l}(),e.LiveRoomBaseInfo=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.ruid=i.int64();break}case 2:{a.roomId=i.int64();break}case 3:{a.uid=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.im.gateway.interface_.v1.LiveRoomBaseInfo)return i;let n=new u.bilibili.im.gateway.interface_.v1.LiveRoomBaseInfo;return i.ruid!=null&&(r.Long?(n.ruid=r.Long.fromValue(i.ruid)).unsigned=!1:typeof i.ruid=="string"?n.ruid=parseInt(i.ruid,10):typeof i.ruid=="number"?n.ruid=i.ruid:typeof i.ruid=="object"&&(n.ruid=new r.LongBits(i.ruid.low>>>0,i.ruid.high>>>0).toNumber())),i.roomId!=null&&(r.Long?(n.roomId=r.Long.fromValue(i.roomId)).unsigned=!1:typeof i.roomId=="string"?n.roomId=parseInt(i.roomId,10):typeof i.roomId=="number"?n.roomId=i.roomId:typeof i.roomId=="object"&&(n.roomId=new r.LongBits(i.roomId.low>>>0,i.roomId.high>>>0).toNumber())),i.uid!=null&&(r.Long?(n.uid=r.Long.fromValue(i.uid)).unsigned=!1:typeof i.uid=="string"?n.uid=parseInt(i.uid,10):typeof i.uid=="number"?n.uid=i.uid:typeof i.uid=="object"&&(n.uid=new r.LongBits(i.uid.low>>>0,i.uid.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.ruid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.ruid=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.roomId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.roomId=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.uid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.uid=n.longs===String?"0":0}return i.ruid!=null&&i.hasOwnProperty("ruid")&&(typeof i.ruid=="number"?o.ruid=n.longs===String?String(i.ruid):i.ruid:o.ruid=n.longs===String?r.Long.prototype.toString.call(i.ruid):n.longs===Number?new r.LongBits(i.ruid.low>>>0,i.ruid.high>>>0).toNumber():i.ruid),i.roomId!=null&&i.hasOwnProperty("roomId")&&(typeof i.roomId=="number"?o.roomId=n.longs===String?String(i.roomId):i.roomId:o.roomId=n.longs===String?r.Long.prototype.toString.call(i.roomId):n.longs===Number?new r.LongBits(i.roomId.low>>>0,i.roomId.high>>>0).toNumber():i.roomId),i.uid!=null&&i.hasOwnProperty("uid")&&(typeof i.uid=="number"?o.uid=n.longs===String?String(i.uid):i.uid:o.uid=n.longs===String?r.Long.prototype.toString.call(i.uid):n.longs===Number?new r.LongBits(i.uid.low>>>0,i.uid.high>>>0).toNumber():i.uid),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.im.gateway.interface_.v1.LiveRoomBaseInfo"},l}(),e.CommerceGoodsItem=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.goodsId=i.string();break}case 2:{a.outsideGoodsId=i.string();break}case 3:{a.liveId=i.int64();break}case 4:{a.goodsName=i.string();break}case 5:{a.goodsIcon=i.string();break}case 6:{a.goodsPrice=i.string();break}case 7:{a.goodsSource=i.int32();break}case 8:{a.sourceName=i.string();break}case 9:{a.appSource=i.int32();break}case 10:{a.goodsUrl=i.string();break}case 11:{a.schemaUrl=i.string();break}case 12:{a.jumpH5Url=i.string();break}case 13:{a.virturlH5Url=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.im.gateway.interface_.v1.CommerceGoodsItem)return i;let n=new u.bilibili.im.gateway.interface_.v1.CommerceGoodsItem;return i.goodsId!=null&&(n.goodsId=String(i.goodsId)),i.outsideGoodsId!=null&&(n.outsideGoodsId=String(i.outsideGoodsId)),i.liveId!=null&&(r.Long?(n.liveId=r.Long.fromValue(i.liveId)).unsigned=!1:typeof i.liveId=="string"?n.liveId=parseInt(i.liveId,10):typeof i.liveId=="number"?n.liveId=i.liveId:typeof i.liveId=="object"&&(n.liveId=new r.LongBits(i.liveId.low>>>0,i.liveId.high>>>0).toNumber())),i.goodsName!=null&&(n.goodsName=String(i.goodsName)),i.goodsIcon!=null&&(n.goodsIcon=String(i.goodsIcon)),i.goodsPrice!=null&&(n.goodsPrice=String(i.goodsPrice)),i.goodsSource!=null&&(n.goodsSource=i.goodsSource|0),i.sourceName!=null&&(n.sourceName=String(i.sourceName)),i.appSource!=null&&(n.appSource=i.appSource|0),i.goodsUrl!=null&&(n.goodsUrl=String(i.goodsUrl)),i.schemaUrl!=null&&(n.schemaUrl=String(i.schemaUrl)),i.jumpH5Url!=null&&(n.jumpH5Url=String(i.jumpH5Url)),i.virturlH5Url!=null&&(n.virturlH5Url=String(i.virturlH5Url)),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(o.goodsId="",o.outsideGoodsId="",r.Long){let a=new r.Long(0,0,!1);o.liveId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.liveId=n.longs===String?"0":0;o.goodsName="",o.goodsIcon="",o.goodsPrice="",o.goodsSource=0,o.sourceName="",o.appSource=0,o.goodsUrl="",o.schemaUrl="",o.jumpH5Url="",o.virturlH5Url=""}return i.goodsId!=null&&i.hasOwnProperty("goodsId")&&(o.goodsId=i.goodsId),i.outsideGoodsId!=null&&i.hasOwnProperty("outsideGoodsId")&&(o.outsideGoodsId=i.outsideGoodsId),i.liveId!=null&&i.hasOwnProperty("liveId")&&(typeof i.liveId=="number"?o.liveId=n.longs===String?String(i.liveId):i.liveId:o.liveId=n.longs===String?r.Long.prototype.toString.call(i.liveId):n.longs===Number?new r.LongBits(i.liveId.low>>>0,i.liveId.high>>>0).toNumber():i.liveId),i.goodsName!=null&&i.hasOwnProperty("goodsName")&&(o.goodsName=i.goodsName),i.goodsIcon!=null&&i.hasOwnProperty("goodsIcon")&&(o.goodsIcon=i.goodsIcon),i.goodsPrice!=null&&i.hasOwnProperty("goodsPrice")&&(o.goodsPrice=i.goodsPrice),i.goodsSource!=null&&i.hasOwnProperty("goodsSource")&&(o.goodsSource=i.goodsSource),i.sourceName!=null&&i.hasOwnProperty("sourceName")&&(o.sourceName=i.sourceName),i.appSource!=null&&i.hasOwnProperty("appSource")&&(o.appSource=i.appSource),i.goodsUrl!=null&&i.hasOwnProperty("goodsUrl")&&(o.goodsUrl=i.goodsUrl),i.schemaUrl!=null&&i.hasOwnProperty("schemaUrl")&&(o.schemaUrl=i.schemaUrl),i.jumpH5Url!=null&&i.hasOwnProperty("jumpH5Url")&&(o.jumpH5Url=i.jumpH5Url),i.virturlH5Url!=null&&i.hasOwnProperty("virturlH5Url")&&(o.virturlH5Url=i.virturlH5Url),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.im.gateway.interface_.v1.CommerceGoodsItem"},l}(),e}(),c}(),p}(),d.interface_=function(){let p={};return p.inner=function(){let c={};return c.interface_=function(){let e={};return e.v1=function(){let l={};return l.BanUser=function(){function t(i){if(i)for(let n=Object.keys(i),o=0;o>>3){case 1:{y.uid=n.uint64();break}case 2:{y.limit=n.int32();break}case 3:{y.time=n.int32();break}case 4:{y.mode=n.int32();break}default:n.skipType(s&7);break}}return y},t.fromObject=function(n){if(n instanceof u.bilibili.im.interface_.inner.interface_.v1.BanUser)return n;let o=new u.bilibili.im.interface_.inner.interface_.v1.BanUser;return n.uid!=null&&(r.Long?(o.uid=r.Long.fromValue(n.uid)).unsigned=!0:typeof n.uid=="string"?o.uid=parseInt(n.uid,10):typeof n.uid=="number"?o.uid=n.uid:typeof n.uid=="object"&&(o.uid=new r.LongBits(n.uid.low>>>0,n.uid.high>>>0).toNumber(!0))),n.limit!=null&&(o.limit=n.limit|0),n.time!=null&&(o.time=n.time|0),n.mode!=null&&(o.mode=n.mode|0),o},t.toObject=function(n,o){o||(o={});let a={};if(o.defaults){if(r.Long){let y=new r.Long(0,0,!0);a.uid=o.longs===String?y.toString():o.longs===Number?y.toNumber():y}else a.uid=o.longs===String?"0":0;a.limit=0,a.time=0,a.mode=0}return n.uid!=null&&n.hasOwnProperty("uid")&&(typeof n.uid=="number"?a.uid=o.longs===String?String(n.uid):n.uid:a.uid=o.longs===String?r.Long.prototype.toString.call(n.uid):o.longs===Number?new r.LongBits(n.uid.low>>>0,n.uid.high>>>0).toNumber(!0):n.uid),n.limit!=null&&n.hasOwnProperty("limit")&&(a.limit=n.limit),n.time!=null&&n.hasOwnProperty("time")&&(a.time=n.time),n.mode!=null&&n.hasOwnProperty("mode")&&(a.mode=n.mode),a},t.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},t.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/bilibili.im.interface_.inner.interface_.v1.BanUser"},t}(),l.ReqOpBlacklist=function(){function t(i){if(this.banUsers=[],i)for(let n=Object.keys(i),o=0;o>>3){case 1:{y.banUsers&&y.banUsers.length||(y.banUsers=[]),y.banUsers.push(u.bilibili.im.interface_.inner.interface_.v1.BanUser.decode(n,n.uint32()));break}default:n.skipType(s&7);break}}return y},t.fromObject=function(n){if(n instanceof u.bilibili.im.interface_.inner.interface_.v1.ReqOpBlacklist)return n;let o=new u.bilibili.im.interface_.inner.interface_.v1.ReqOpBlacklist;if(n.banUsers){if(!Array.isArray(n.banUsers))throw TypeError(".bilibili.im.interface_.inner.interface_.v1.ReqOpBlacklist.banUsers: array expected");o.banUsers=[];for(let a=0;a>>3){case 1:{if(y.failedUsers&&y.failedUsers.length||(y.failedUsers=[]),(s&7)===2){let v=n.uint32()+n.pos;for(;n.pos>>0,n.failedUsers[a].high>>>0).toNumber(!0))}return o},t.toObject=function(n,o){o||(o={});let a={};if((o.arrays||o.defaults)&&(a.failedUsers=[]),n.failedUsers&&n.failedUsers.length){a.failedUsers=[];for(let y=0;y>>0,n.failedUsers[y].high>>>0).toNumber(!0):n.failedUsers[y]}return a},t.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},t.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/bilibili.im.interface_.inner.interface_.v1.RspOpBlacklist"},t}(),l.InnerInterface=function(){function t(i,n,o){b.rpc.Service.call(this,i,n,o)}return(t.prototype=Object.create(b.rpc.Service.prototype)).constructor=t,t.create=function(n,o,a){return new this(n,o,a)},Object.defineProperty(t.prototype.updateListInn=function i(n,o){return this.rpcCall(i,u.bilibili.im.interface_.inner.interface_.v1.ReqOpBlacklist,u.bilibili.im.interface_.inner.interface_.v1.RspOpBlacklist,n,o)},"name",{value:"UpdateListInn"}),t}(),l}(),e}(),c}(),p.v1=function(){let c={};return c.ReqSendMsg=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.msg=u.bilibili.im.type.Msg.decode(t,t.uint32());break}case 2:{o.cookie=t.string();break}case 3:{o.cookie2=t.string();break}case 4:{o.errorCode=t.int32();break}case 5:{o.devId=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.im.interface_.v1.ReqSendMsg)return t;let i=new u.bilibili.im.interface_.v1.ReqSendMsg;if(t.msg!=null){if(typeof t.msg!="object")throw TypeError(".bilibili.im.interface_.v1.ReqSendMsg.msg: object expected");i.msg=u.bilibili.im.type.Msg.fromObject(t.msg)}return t.cookie!=null&&(i.cookie=String(t.cookie)),t.cookie2!=null&&(i.cookie2=String(t.cookie2)),t.errorCode!=null&&(i.errorCode=t.errorCode|0),t.devId!=null&&(i.devId=String(t.devId)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.msg=null,n.cookie="",n.cookie2="",n.errorCode=0,n.devId=""),t.msg!=null&&t.hasOwnProperty("msg")&&(n.msg=u.bilibili.im.type.Msg.toObject(t.msg,i)),t.cookie!=null&&t.hasOwnProperty("cookie")&&(n.cookie=t.cookie),t.cookie2!=null&&t.hasOwnProperty("cookie2")&&(n.cookie2=t.cookie2),t.errorCode!=null&&t.hasOwnProperty("errorCode")&&(n.errorCode=t.errorCode),t.devId!=null&&t.hasOwnProperty("devId")&&(n.devId=t.devId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.im.interface_.v1.ReqSendMsg"},e}(),c.ReqGetMsg=function(){function e(l){if(this.msgDetail=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.talkerId=t.uint64();break}case 2:{o.sessionType=t.uint32();break}case 3:{o.msgDetail&&o.msgDetail.length||(o.msgDetail=[]),o.msgDetail.push(u.bilibili.im.interface_.v1.MsgDetail.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.im.interface_.v1.ReqGetMsg)return t;let i=new u.bilibili.im.interface_.v1.ReqGetMsg;if(t.talkerId!=null&&(r.Long?(i.talkerId=r.Long.fromValue(t.talkerId)).unsigned=!0:typeof t.talkerId=="string"?i.talkerId=parseInt(t.talkerId,10):typeof t.talkerId=="number"?i.talkerId=t.talkerId:typeof t.talkerId=="object"&&(i.talkerId=new r.LongBits(t.talkerId.low>>>0,t.talkerId.high>>>0).toNumber(!0))),t.sessionType!=null&&(i.sessionType=t.sessionType>>>0),t.msgDetail){if(!Array.isArray(t.msgDetail))throw TypeError(".bilibili.im.interface_.v1.ReqGetMsg.msgDetail: array expected");i.msgDetail=[];for(let n=0;n>>0,t.talkerId.high>>>0).toNumber(!0):t.talkerId),t.sessionType!=null&&t.hasOwnProperty("sessionType")&&(n.sessionType=t.sessionType),t.msgDetail&&t.msgDetail.length){n.msgDetail=[];for(let o=0;o>>3){case 1:{o.msgKey=t.uint64();break}case 2:{o.seqno=t.uint64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.im.interface_.v1.MsgDetail)return t;let i=new u.bilibili.im.interface_.v1.MsgDetail;return t.msgKey!=null&&(r.Long?(i.msgKey=r.Long.fromValue(t.msgKey)).unsigned=!0:typeof t.msgKey=="string"?i.msgKey=parseInt(t.msgKey,10):typeof t.msgKey=="number"?i.msgKey=t.msgKey:typeof t.msgKey=="object"&&(i.msgKey=new r.LongBits(t.msgKey.low>>>0,t.msgKey.high>>>0).toNumber(!0))),t.seqno!=null&&(r.Long?(i.seqno=r.Long.fromValue(t.seqno)).unsigned=!0:typeof t.seqno=="string"?i.seqno=parseInt(t.seqno,10):typeof t.seqno=="number"?i.seqno=t.seqno:typeof t.seqno=="object"&&(i.seqno=new r.LongBits(t.seqno.low>>>0,t.seqno.high>>>0).toNumber(!0))),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!0);n.msgKey=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.msgKey=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!0);n.seqno=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.seqno=i.longs===String?"0":0}return t.msgKey!=null&&t.hasOwnProperty("msgKey")&&(typeof t.msgKey=="number"?n.msgKey=i.longs===String?String(t.msgKey):t.msgKey:n.msgKey=i.longs===String?r.Long.prototype.toString.call(t.msgKey):i.longs===Number?new r.LongBits(t.msgKey.low>>>0,t.msgKey.high>>>0).toNumber(!0):t.msgKey),t.seqno!=null&&t.hasOwnProperty("seqno")&&(typeof t.seqno=="number"?n.seqno=i.longs===String?String(t.seqno):t.seqno:n.seqno=i.longs===String?r.Long.prototype.toString.call(t.seqno):i.longs===Number?new r.LongBits(t.seqno.low>>>0,t.seqno.high>>>0).toNumber(!0):t.seqno),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.im.interface_.v1.MsgDetail"},e}(),c.RspGetMsg=function(){function e(l){if(this.msg=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.msg&&o.msg.length||(o.msg=[]),o.msg.push(u.bilibili.im.type.Msg.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.im.interface_.v1.RspGetMsg)return t;let i=new u.bilibili.im.interface_.v1.RspGetMsg;if(t.msg){if(!Array.isArray(t.msg))throw TypeError(".bilibili.im.interface_.v1.RspGetMsg.msg: array expected");i.msg=[];for(let n=0;n>>3){case 1:{o.text=t.string();break}case 2:{o.url=t.string();break}case 3:{o.size=t.int32();break}case 4:{o.gifUrl=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.im.interface_.v1.EmotionInfo)return t;let i=new u.bilibili.im.interface_.v1.EmotionInfo;return t.text!=null&&(i.text=String(t.text)),t.url!=null&&(i.url=String(t.url)),t.size!=null&&(i.size=t.size|0),t.gifUrl!=null&&(i.gifUrl=String(t.gifUrl)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.text="",n.url="",n.size=0,n.gifUrl=""),t.text!=null&&t.hasOwnProperty("text")&&(n.text=t.text),t.url!=null&&t.hasOwnProperty("url")&&(n.url=t.url),t.size!=null&&t.hasOwnProperty("size")&&(n.size=t.size),t.gifUrl!=null&&t.hasOwnProperty("gifUrl")&&(n.gifUrl=t.gifUrl),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.im.interface_.v1.EmotionInfo"},e}(),c.RspSendMsg=function(){function e(l){if(this.eInfos=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.msgKey=t.uint64();break}case 2:{o.eInfos&&o.eInfos.length||(o.eInfos=[]),o.eInfos.push(u.bilibili.im.interface_.v1.EmotionInfo.decode(t,t.uint32()));break}case 3:{o.msgContent=t.string();break}case 4:{o.keyHitInfos=u.bilibili.im.type.KeyHitInfos.decode(t,t.uint32());break}case 5:{o.richTextMsgContent=u.bilibili.im.type.RichTextMsgContent.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.im.interface_.v1.RspSendMsg)return t;let i=new u.bilibili.im.interface_.v1.RspSendMsg;if(t.msgKey!=null&&(r.Long?(i.msgKey=r.Long.fromValue(t.msgKey)).unsigned=!0:typeof t.msgKey=="string"?i.msgKey=parseInt(t.msgKey,10):typeof t.msgKey=="number"?i.msgKey=t.msgKey:typeof t.msgKey=="object"&&(i.msgKey=new r.LongBits(t.msgKey.low>>>0,t.msgKey.high>>>0).toNumber(!0))),t.eInfos){if(!Array.isArray(t.eInfos))throw TypeError(".bilibili.im.interface_.v1.RspSendMsg.eInfos: array expected");i.eInfos=[];for(let n=0;n>>0,t.msgKey.high>>>0).toNumber(!0):t.msgKey),t.eInfos&&t.eInfos.length){n.eInfos=[];for(let o=0;o>>3){case 1:{o.clientRelationOplogSeqno=t.uint64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.im.interface_.v1.ReqRelationSync)return t;let i=new u.bilibili.im.interface_.v1.ReqRelationSync;return t.clientRelationOplogSeqno!=null&&(r.Long?(i.clientRelationOplogSeqno=r.Long.fromValue(t.clientRelationOplogSeqno)).unsigned=!0:typeof t.clientRelationOplogSeqno=="string"?i.clientRelationOplogSeqno=parseInt(t.clientRelationOplogSeqno,10):typeof t.clientRelationOplogSeqno=="number"?i.clientRelationOplogSeqno=t.clientRelationOplogSeqno:typeof t.clientRelationOplogSeqno=="object"&&(i.clientRelationOplogSeqno=new r.LongBits(t.clientRelationOplogSeqno.low>>>0,t.clientRelationOplogSeqno.high>>>0).toNumber(!0))),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(r.Long){let o=new r.Long(0,0,!0);n.clientRelationOplogSeqno=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.clientRelationOplogSeqno=i.longs===String?"0":0;return t.clientRelationOplogSeqno!=null&&t.hasOwnProperty("clientRelationOplogSeqno")&&(typeof t.clientRelationOplogSeqno=="number"?n.clientRelationOplogSeqno=i.longs===String?String(t.clientRelationOplogSeqno):t.clientRelationOplogSeqno:n.clientRelationOplogSeqno=i.longs===String?r.Long.prototype.toString.call(t.clientRelationOplogSeqno):i.longs===Number?new r.LongBits(t.clientRelationOplogSeqno.low>>>0,t.clientRelationOplogSeqno.high>>>0).toNumber(!0):t.clientRelationOplogSeqno),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.im.interface_.v1.ReqRelationSync"},e}(),c.RspRelationSync=function(){function e(l){if(this.relationLogs=[],this.friendList=[],this.groupList=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.full=t.int32();break}case 2:{o.relationLogs&&o.relationLogs.length||(o.relationLogs=[]),o.relationLogs.push(u.bilibili.im.type.RelationLog.decode(t,t.uint32()));break}case 3:{o.friendList&&o.friendList.length||(o.friendList=[]),o.friendList.push(u.bilibili.im.type.FriendRelation.decode(t,t.uint32()));break}case 4:{o.serverRelationOplogSeqno=t.uint64();break}case 5:{o.groupList&&o.groupList.length||(o.groupList=[]),o.groupList.push(u.bilibili.im.type.GroupRelation.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.im.interface_.v1.RspRelationSync)return t;let i=new u.bilibili.im.interface_.v1.RspRelationSync;if(t.full!=null&&(i.full=t.full|0),t.relationLogs){if(!Array.isArray(t.relationLogs))throw TypeError(".bilibili.im.interface_.v1.RspRelationSync.relationLogs: array expected");i.relationLogs=[];for(let n=0;n>>0,t.serverRelationOplogSeqno.high>>>0).toNumber(!0))),t.groupList){if(!Array.isArray(t.groupList))throw TypeError(".bilibili.im.interface_.v1.RspRelationSync.groupList: array expected");i.groupList=[];for(let n=0;n>>0,t.serverRelationOplogSeqno.high>>>0).toNumber(!0):t.serverRelationOplogSeqno),t.groupList&&t.groupList.length){n.groupList=[];for(let o=0;o>>3){case 1:{o.clientSeqno=t.uint64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.im.interface_.v1.ReqSyncAck)return t;let i=new u.bilibili.im.interface_.v1.ReqSyncAck;return t.clientSeqno!=null&&(r.Long?(i.clientSeqno=r.Long.fromValue(t.clientSeqno)).unsigned=!0:typeof t.clientSeqno=="string"?i.clientSeqno=parseInt(t.clientSeqno,10):typeof t.clientSeqno=="number"?i.clientSeqno=t.clientSeqno:typeof t.clientSeqno=="object"&&(i.clientSeqno=new r.LongBits(t.clientSeqno.low>>>0,t.clientSeqno.high>>>0).toNumber(!0))),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(r.Long){let o=new r.Long(0,0,!0);n.clientSeqno=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.clientSeqno=i.longs===String?"0":0;return t.clientSeqno!=null&&t.hasOwnProperty("clientSeqno")&&(typeof t.clientSeqno=="number"?n.clientSeqno=i.longs===String?String(t.clientSeqno):t.clientSeqno:n.clientSeqno=i.longs===String?r.Long.prototype.toString.call(t.clientSeqno):i.longs===Number?new r.LongBits(t.clientSeqno.low>>>0,t.clientSeqno.high>>>0).toNumber(!0):t.clientSeqno),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.im.interface_.v1.ReqSyncAck"},e}(),c.RspSyncAck=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){default:t.skipType(a&7);break}}return o},e.fromObject=function(t){return t instanceof u.bilibili.im.interface_.v1.RspSyncAck?t:new u.bilibili.im.interface_.v1.RspSyncAck},e.toObject=function(){return{}},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.im.interface_.v1.RspSyncAck"},e}(),c.ReqSessionMsg=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.talkerId=t.uint64();break}case 2:{o.sessionType=t.int32();break}case 3:{o.endSeqno=t.uint64();break}case 4:{o.beginSeqno=t.uint64();break}case 5:{o.size=t.int32();break}case 6:{o.order=t.int32();break}case 7:{o.devId=t.string();break}case 8:{o.canalToken=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.im.interface_.v1.ReqSessionMsg)return t;let i=new u.bilibili.im.interface_.v1.ReqSessionMsg;return t.talkerId!=null&&(r.Long?(i.talkerId=r.Long.fromValue(t.talkerId)).unsigned=!0:typeof t.talkerId=="string"?i.talkerId=parseInt(t.talkerId,10):typeof t.talkerId=="number"?i.talkerId=t.talkerId:typeof t.talkerId=="object"&&(i.talkerId=new r.LongBits(t.talkerId.low>>>0,t.talkerId.high>>>0).toNumber(!0))),t.sessionType!=null&&(i.sessionType=t.sessionType|0),t.endSeqno!=null&&(r.Long?(i.endSeqno=r.Long.fromValue(t.endSeqno)).unsigned=!0:typeof t.endSeqno=="string"?i.endSeqno=parseInt(t.endSeqno,10):typeof t.endSeqno=="number"?i.endSeqno=t.endSeqno:typeof t.endSeqno=="object"&&(i.endSeqno=new r.LongBits(t.endSeqno.low>>>0,t.endSeqno.high>>>0).toNumber(!0))),t.beginSeqno!=null&&(r.Long?(i.beginSeqno=r.Long.fromValue(t.beginSeqno)).unsigned=!0:typeof t.beginSeqno=="string"?i.beginSeqno=parseInt(t.beginSeqno,10):typeof t.beginSeqno=="number"?i.beginSeqno=t.beginSeqno:typeof t.beginSeqno=="object"&&(i.beginSeqno=new r.LongBits(t.beginSeqno.low>>>0,t.beginSeqno.high>>>0).toNumber(!0))),t.size!=null&&(i.size=t.size|0),t.order!=null&&(i.order=t.order|0),t.devId!=null&&(i.devId=String(t.devId)),t.canalToken!=null&&(i.canalToken=String(t.canalToken)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!0);n.talkerId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.talkerId=i.longs===String?"0":0;if(n.sessionType=0,r.Long){let o=new r.Long(0,0,!0);n.endSeqno=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.endSeqno=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!0);n.beginSeqno=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.beginSeqno=i.longs===String?"0":0;n.size=0,n.order=0,n.devId="",n.canalToken=""}return t.talkerId!=null&&t.hasOwnProperty("talkerId")&&(typeof t.talkerId=="number"?n.talkerId=i.longs===String?String(t.talkerId):t.talkerId:n.talkerId=i.longs===String?r.Long.prototype.toString.call(t.talkerId):i.longs===Number?new r.LongBits(t.talkerId.low>>>0,t.talkerId.high>>>0).toNumber(!0):t.talkerId),t.sessionType!=null&&t.hasOwnProperty("sessionType")&&(n.sessionType=t.sessionType),t.endSeqno!=null&&t.hasOwnProperty("endSeqno")&&(typeof t.endSeqno=="number"?n.endSeqno=i.longs===String?String(t.endSeqno):t.endSeqno:n.endSeqno=i.longs===String?r.Long.prototype.toString.call(t.endSeqno):i.longs===Number?new r.LongBits(t.endSeqno.low>>>0,t.endSeqno.high>>>0).toNumber(!0):t.endSeqno),t.beginSeqno!=null&&t.hasOwnProperty("beginSeqno")&&(typeof t.beginSeqno=="number"?n.beginSeqno=i.longs===String?String(t.beginSeqno):t.beginSeqno:n.beginSeqno=i.longs===String?r.Long.prototype.toString.call(t.beginSeqno):i.longs===Number?new r.LongBits(t.beginSeqno.low>>>0,t.beginSeqno.high>>>0).toNumber(!0):t.beginSeqno),t.size!=null&&t.hasOwnProperty("size")&&(n.size=t.size),t.order!=null&&t.hasOwnProperty("order")&&(n.order=t.order),t.devId!=null&&t.hasOwnProperty("devId")&&(n.devId=t.devId),t.canalToken!=null&&t.hasOwnProperty("canalToken")&&(n.canalToken=t.canalToken),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.im.interface_.v1.ReqSessionMsg"},e}(),c.RspSessionMsg=function(){function e(l){if(this.messages=[],this.eInfos=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.messages&&o.messages.length||(o.messages=[]),o.messages.push(u.bilibili.im.type.Msg.decode(t,t.uint32()));break}case 2:{o.hasMore=t.int32();break}case 3:{o.minSeqno=t.uint64();break}case 4:{o.maxSeqno=t.uint64();break}case 5:{o.eInfos&&o.eInfos.length||(o.eInfos=[]),o.eInfos.push(u.bilibili.im.interface_.v1.EmotionInfo.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.im.interface_.v1.RspSessionMsg)return t;let i=new u.bilibili.im.interface_.v1.RspSessionMsg;if(t.messages){if(!Array.isArray(t.messages))throw TypeError(".bilibili.im.interface_.v1.RspSessionMsg.messages: array expected");i.messages=[];for(let n=0;n>>0,t.minSeqno.high>>>0).toNumber(!0))),t.maxSeqno!=null&&(r.Long?(i.maxSeqno=r.Long.fromValue(t.maxSeqno)).unsigned=!0:typeof t.maxSeqno=="string"?i.maxSeqno=parseInt(t.maxSeqno,10):typeof t.maxSeqno=="number"?i.maxSeqno=t.maxSeqno:typeof t.maxSeqno=="object"&&(i.maxSeqno=new r.LongBits(t.maxSeqno.low>>>0,t.maxSeqno.high>>>0).toNumber(!0))),t.eInfos){if(!Array.isArray(t.eInfos))throw TypeError(".bilibili.im.interface_.v1.RspSessionMsg.eInfos: array expected");i.eInfos=[];for(let n=0;n>>0,t.minSeqno.high>>>0).toNumber(!0):t.minSeqno),t.maxSeqno!=null&&t.hasOwnProperty("maxSeqno")&&(typeof t.maxSeqno=="number"?n.maxSeqno=i.longs===String?String(t.maxSeqno):t.maxSeqno:n.maxSeqno=i.longs===String?r.Long.prototype.toString.call(t.maxSeqno):i.longs===Number?new r.LongBits(t.maxSeqno.low>>>0,t.maxSeqno.high>>>0).toNumber(!0):t.maxSeqno),t.eInfos&&t.eInfos.length){n.eInfos=[];for(let o=0;o>>3){case 1:{o.beginTs=t.uint64();break}case 2:{o.endTs=t.uint64();break}case 3:{o.size=t.uint32();break}case 4:{o.sessionType=t.uint32();break}case 5:{o.unfollowFold=t.uint32();break}case 6:{o.groupFold=t.uint32();break}case 7:{o.sortRule=t.uint32();break}case 8:{o.teenagerMode=t.uint32();break}case 9:{o.lessonsMode=t.uint32();break}case 10:{if(o.sids&&o.sids.length||(o.sids=[]),(a&7)===2){let y=t.uint32()+t.pos;for(;t.pos>>0,t.beginTs.high>>>0).toNumber(!0))),t.endTs!=null&&(r.Long?(i.endTs=r.Long.fromValue(t.endTs)).unsigned=!0:typeof t.endTs=="string"?i.endTs=parseInt(t.endTs,10):typeof t.endTs=="number"?i.endTs=t.endTs:typeof t.endTs=="object"&&(i.endTs=new r.LongBits(t.endTs.low>>>0,t.endTs.high>>>0).toNumber(!0))),t.size!=null&&(i.size=t.size>>>0),t.sessionType!=null&&(i.sessionType=t.sessionType>>>0),t.unfollowFold!=null&&(i.unfollowFold=t.unfollowFold>>>0),t.groupFold!=null&&(i.groupFold=t.groupFold>>>0),t.sortRule!=null&&(i.sortRule=t.sortRule>>>0),t.teenagerMode!=null&&(i.teenagerMode=t.teenagerMode>>>0),t.lessonsMode!=null&&(i.lessonsMode=t.lessonsMode>>>0),t.sids){if(!Array.isArray(t.sids))throw TypeError(".bilibili.im.interface_.v1.ReqGetSessions.sids: array expected");i.sids=[];for(let n=0;n>>0,t.beginTs.high>>>0).toNumber(!0):t.beginTs),t.endTs!=null&&t.hasOwnProperty("endTs")&&(typeof t.endTs=="number"?n.endTs=i.longs===String?String(t.endTs):t.endTs:n.endTs=i.longs===String?r.Long.prototype.toString.call(t.endTs):i.longs===Number?new r.LongBits(t.endTs.low>>>0,t.endTs.high>>>0).toNumber(!0):t.endTs),t.size!=null&&t.hasOwnProperty("size")&&(n.size=t.size),t.sessionType!=null&&t.hasOwnProperty("sessionType")&&(n.sessionType=t.sessionType),t.unfollowFold!=null&&t.hasOwnProperty("unfollowFold")&&(n.unfollowFold=t.unfollowFold),t.groupFold!=null&&t.hasOwnProperty("groupFold")&&(n.groupFold=t.groupFold),t.sortRule!=null&&t.hasOwnProperty("sortRule")&&(n.sortRule=t.sortRule),t.teenagerMode!=null&&t.hasOwnProperty("teenagerMode")&&(n.teenagerMode=t.teenagerMode),t.lessonsMode!=null&&t.hasOwnProperty("lessonsMode")&&(n.lessonsMode=t.lessonsMode),t.sids&&t.sids.length){n.sids=[];for(let o=0;o>>3){case 1:{o.beginTs=t.uint64();break}case 2:{o.size=t.uint32();break}case 3:{o.teenagerMode=t.uint32();break}case 4:{o.lessonsMode=t.uint32();break}case 5:{if(o.sids&&o.sids.length||(o.sids=[]),(a&7)===2){let y=t.uint32()+t.pos;for(;t.pos>>0,t.beginTs.high>>>0).toNumber(!0))),t.size!=null&&(i.size=t.size>>>0),t.teenagerMode!=null&&(i.teenagerMode=t.teenagerMode>>>0),t.lessonsMode!=null&&(i.lessonsMode=t.lessonsMode>>>0),t.sids){if(!Array.isArray(t.sids))throw TypeError(".bilibili.im.interface_.v1.ReqNewSessions.sids: array expected");i.sids=[];for(let n=0;n>>0,t.beginTs.high>>>0).toNumber(!0):t.beginTs),t.size!=null&&t.hasOwnProperty("size")&&(n.size=t.size),t.teenagerMode!=null&&t.hasOwnProperty("teenagerMode")&&(n.teenagerMode=t.teenagerMode),t.lessonsMode!=null&&t.hasOwnProperty("lessonsMode")&&(n.lessonsMode=t.lessonsMode),t.sids&&t.sids.length){n.sids=[];for(let o=0;o>>3){case 1:{o.beginTs=t.uint64();break}case 2:{o.endTs=t.uint32();break}case 3:{o.size=t.uint32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.im.interface_.v1.ReqAckSessions)return t;let i=new u.bilibili.im.interface_.v1.ReqAckSessions;return t.beginTs!=null&&(r.Long?(i.beginTs=r.Long.fromValue(t.beginTs)).unsigned=!0:typeof t.beginTs=="string"?i.beginTs=parseInt(t.beginTs,10):typeof t.beginTs=="number"?i.beginTs=t.beginTs:typeof t.beginTs=="object"&&(i.beginTs=new r.LongBits(t.beginTs.low>>>0,t.beginTs.high>>>0).toNumber(!0))),t.endTs!=null&&(i.endTs=t.endTs>>>0),t.size!=null&&(i.size=t.size>>>0),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!0);n.beginTs=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.beginTs=i.longs===String?"0":0;n.endTs=0,n.size=0}return t.beginTs!=null&&t.hasOwnProperty("beginTs")&&(typeof t.beginTs=="number"?n.beginTs=i.longs===String?String(t.beginTs):t.beginTs:n.beginTs=i.longs===String?r.Long.prototype.toString.call(t.beginTs):i.longs===Number?new r.LongBits(t.beginTs.low>>>0,t.beginTs.high>>>0).toNumber(!0):t.beginTs),t.endTs!=null&&t.hasOwnProperty("endTs")&&(n.endTs=t.endTs),t.size!=null&&t.hasOwnProperty("size")&&(n.size=t.size),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.im.interface_.v1.ReqAckSessions"},e}(),c.RspSessions=function(){function e(l){if(this.sessionList=[],this.systemMsg={},l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.sessionList&&o.sessionList.length||(o.sessionList=[]),o.sessionList.push(u.bilibili.im.type.SessionInfo.decode(t,t.uint32()));break}case 2:{o.hasMore=t.uint32();break}case 3:{o.antiDisturbCleaning=t.bool();break}case 4:{o.isAddressListEmpty=t.int32();break}case 5:{o.systemMsg===r.emptyObject&&(o.systemMsg={});let v=t.uint32()+t.pos;for(a=0,y=0;t.pos>>3){case 1:a=t.uint32();break;case 2:y=t.uint64();break;default:t.skipType(g&7);break}}o.systemMsg[a]=y;break}case 6:{o.showLevel=t.bool();break}default:t.skipType(s&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.im.interface_.v1.RspSessions)return t;let i=new u.bilibili.im.interface_.v1.RspSessions;if(t.sessionList){if(!Array.isArray(t.sessionList))throw TypeError(".bilibili.im.interface_.v1.RspSessions.sessionList: array expected");i.sessionList=[];for(let n=0;n>>0),t.antiDisturbCleaning!=null&&(i.antiDisturbCleaning=!!t.antiDisturbCleaning),t.isAddressListEmpty!=null&&(i.isAddressListEmpty=t.isAddressListEmpty|0),t.systemMsg){if(typeof t.systemMsg!="object")throw TypeError(".bilibili.im.interface_.v1.RspSessions.systemMsg: object expected");i.systemMsg={};for(let n=Object.keys(t.systemMsg),o=0;o>>0,t.systemMsg[n[o]].high>>>0).toNumber(!0))}return t.showLevel!=null&&(i.showLevel=!!t.showLevel),i},e.toObject=function(t,i){i||(i={});let n={};if((i.arrays||i.defaults)&&(n.sessionList=[]),(i.objects||i.defaults)&&(n.systemMsg={}),i.defaults&&(n.hasMore=0,n.antiDisturbCleaning=!1,n.isAddressListEmpty=0,n.showLevel=!1),t.sessionList&&t.sessionList.length){n.sessionList=[];for(let a=0;a>>0,t.systemMsg[o[a]].high>>>0).toNumber(!0):t.systemMsg[o[a]]}return t.showLevel!=null&&t.hasOwnProperty("showLevel")&&(n.showLevel=t.showLevel),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.im.interface_.v1.RspSessions"},e}(),c.ReqUpdateAck=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.talkerId=t.uint64();break}case 2:{o.sessionType=t.uint32();break}case 3:{o.ackSeqno=t.uint64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.im.interface_.v1.ReqUpdateAck)return t;let i=new u.bilibili.im.interface_.v1.ReqUpdateAck;return t.talkerId!=null&&(r.Long?(i.talkerId=r.Long.fromValue(t.talkerId)).unsigned=!0:typeof t.talkerId=="string"?i.talkerId=parseInt(t.talkerId,10):typeof t.talkerId=="number"?i.talkerId=t.talkerId:typeof t.talkerId=="object"&&(i.talkerId=new r.LongBits(t.talkerId.low>>>0,t.talkerId.high>>>0).toNumber(!0))),t.sessionType!=null&&(i.sessionType=t.sessionType>>>0),t.ackSeqno!=null&&(r.Long?(i.ackSeqno=r.Long.fromValue(t.ackSeqno)).unsigned=!0:typeof t.ackSeqno=="string"?i.ackSeqno=parseInt(t.ackSeqno,10):typeof t.ackSeqno=="number"?i.ackSeqno=t.ackSeqno:typeof t.ackSeqno=="object"&&(i.ackSeqno=new r.LongBits(t.ackSeqno.low>>>0,t.ackSeqno.high>>>0).toNumber(!0))),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!0);n.talkerId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.talkerId=i.longs===String?"0":0;if(n.sessionType=0,r.Long){let o=new r.Long(0,0,!0);n.ackSeqno=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.ackSeqno=i.longs===String?"0":0}return t.talkerId!=null&&t.hasOwnProperty("talkerId")&&(typeof t.talkerId=="number"?n.talkerId=i.longs===String?String(t.talkerId):t.talkerId:n.talkerId=i.longs===String?r.Long.prototype.toString.call(t.talkerId):i.longs===Number?new r.LongBits(t.talkerId.low>>>0,t.talkerId.high>>>0).toNumber(!0):t.talkerId),t.sessionType!=null&&t.hasOwnProperty("sessionType")&&(n.sessionType=t.sessionType),t.ackSeqno!=null&&t.hasOwnProperty("ackSeqno")&&(typeof t.ackSeqno=="number"?n.ackSeqno=i.longs===String?String(t.ackSeqno):t.ackSeqno:n.ackSeqno=i.longs===String?r.Long.prototype.toString.call(t.ackSeqno):i.longs===Number?new r.LongBits(t.ackSeqno.low>>>0,t.ackSeqno.high>>>0).toNumber(!0):t.ackSeqno),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.im.interface_.v1.ReqUpdateAck"},e}(),c.ReqSetTop=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.talkerId=t.uint64();break}case 2:{o.sessionType=t.uint32();break}case 3:{o.opType=t.uint32();break}case 4:{o.shopId=t.uint64();break}case 5:{o.shopFatherId=t.uint64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.im.interface_.v1.ReqSetTop)return t;let i=new u.bilibili.im.interface_.v1.ReqSetTop;return t.talkerId!=null&&(r.Long?(i.talkerId=r.Long.fromValue(t.talkerId)).unsigned=!0:typeof t.talkerId=="string"?i.talkerId=parseInt(t.talkerId,10):typeof t.talkerId=="number"?i.talkerId=t.talkerId:typeof t.talkerId=="object"&&(i.talkerId=new r.LongBits(t.talkerId.low>>>0,t.talkerId.high>>>0).toNumber(!0))),t.sessionType!=null&&(i.sessionType=t.sessionType>>>0),t.opType!=null&&(i.opType=t.opType>>>0),t.shopId!=null&&(r.Long?(i.shopId=r.Long.fromValue(t.shopId)).unsigned=!0:typeof t.shopId=="string"?i.shopId=parseInt(t.shopId,10):typeof t.shopId=="number"?i.shopId=t.shopId:typeof t.shopId=="object"&&(i.shopId=new r.LongBits(t.shopId.low>>>0,t.shopId.high>>>0).toNumber(!0))),t.shopFatherId!=null&&(r.Long?(i.shopFatherId=r.Long.fromValue(t.shopFatherId)).unsigned=!0:typeof t.shopFatherId=="string"?i.shopFatherId=parseInt(t.shopFatherId,10):typeof t.shopFatherId=="number"?i.shopFatherId=t.shopFatherId:typeof t.shopFatherId=="object"&&(i.shopFatherId=new r.LongBits(t.shopFatherId.low>>>0,t.shopFatherId.high>>>0).toNumber(!0))),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!0);n.talkerId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.talkerId=i.longs===String?"0":0;if(n.sessionType=0,n.opType=0,r.Long){let o=new r.Long(0,0,!0);n.shopId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.shopId=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!0);n.shopFatherId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.shopFatherId=i.longs===String?"0":0}return t.talkerId!=null&&t.hasOwnProperty("talkerId")&&(typeof t.talkerId=="number"?n.talkerId=i.longs===String?String(t.talkerId):t.talkerId:n.talkerId=i.longs===String?r.Long.prototype.toString.call(t.talkerId):i.longs===Number?new r.LongBits(t.talkerId.low>>>0,t.talkerId.high>>>0).toNumber(!0):t.talkerId),t.sessionType!=null&&t.hasOwnProperty("sessionType")&&(n.sessionType=t.sessionType),t.opType!=null&&t.hasOwnProperty("opType")&&(n.opType=t.opType),t.shopId!=null&&t.hasOwnProperty("shopId")&&(typeof t.shopId=="number"?n.shopId=i.longs===String?String(t.shopId):t.shopId:n.shopId=i.longs===String?r.Long.prototype.toString.call(t.shopId):i.longs===Number?new r.LongBits(t.shopId.low>>>0,t.shopId.high>>>0).toNumber(!0):t.shopId),t.shopFatherId!=null&&t.hasOwnProperty("shopFatherId")&&(typeof t.shopFatherId=="number"?n.shopFatherId=i.longs===String?String(t.shopFatherId):t.shopFatherId:n.shopFatherId=i.longs===String?r.Long.prototype.toString.call(t.shopFatherId):i.longs===Number?new r.LongBits(t.shopFatherId.low>>>0,t.shopFatherId.high>>>0).toNumber(!0):t.shopFatherId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.im.interface_.v1.ReqSetTop"},e}(),c.ReqRemoveSession=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.talkerId=t.uint64();break}case 2:{o.sessionType=t.uint32();break}case 3:{o.shopId=t.uint64();break}case 4:{o.shopFatherId=t.uint64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.im.interface_.v1.ReqRemoveSession)return t;let i=new u.bilibili.im.interface_.v1.ReqRemoveSession;return t.talkerId!=null&&(r.Long?(i.talkerId=r.Long.fromValue(t.talkerId)).unsigned=!0:typeof t.talkerId=="string"?i.talkerId=parseInt(t.talkerId,10):typeof t.talkerId=="number"?i.talkerId=t.talkerId:typeof t.talkerId=="object"&&(i.talkerId=new r.LongBits(t.talkerId.low>>>0,t.talkerId.high>>>0).toNumber(!0))),t.sessionType!=null&&(i.sessionType=t.sessionType>>>0),t.shopId!=null&&(r.Long?(i.shopId=r.Long.fromValue(t.shopId)).unsigned=!0:typeof t.shopId=="string"?i.shopId=parseInt(t.shopId,10):typeof t.shopId=="number"?i.shopId=t.shopId:typeof t.shopId=="object"&&(i.shopId=new r.LongBits(t.shopId.low>>>0,t.shopId.high>>>0).toNumber(!0))),t.shopFatherId!=null&&(r.Long?(i.shopFatherId=r.Long.fromValue(t.shopFatherId)).unsigned=!0:typeof t.shopFatherId=="string"?i.shopFatherId=parseInt(t.shopFatherId,10):typeof t.shopFatherId=="number"?i.shopFatherId=t.shopFatherId:typeof t.shopFatherId=="object"&&(i.shopFatherId=new r.LongBits(t.shopFatherId.low>>>0,t.shopFatherId.high>>>0).toNumber(!0))),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!0);n.talkerId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.talkerId=i.longs===String?"0":0;if(n.sessionType=0,r.Long){let o=new r.Long(0,0,!0);n.shopId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.shopId=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!0);n.shopFatherId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.shopFatherId=i.longs===String?"0":0}return t.talkerId!=null&&t.hasOwnProperty("talkerId")&&(typeof t.talkerId=="number"?n.talkerId=i.longs===String?String(t.talkerId):t.talkerId:n.talkerId=i.longs===String?r.Long.prototype.toString.call(t.talkerId):i.longs===Number?new r.LongBits(t.talkerId.low>>>0,t.talkerId.high>>>0).toNumber(!0):t.talkerId),t.sessionType!=null&&t.hasOwnProperty("sessionType")&&(n.sessionType=t.sessionType),t.shopId!=null&&t.hasOwnProperty("shopId")&&(typeof t.shopId=="number"?n.shopId=i.longs===String?String(t.shopId):t.shopId:n.shopId=i.longs===String?r.Long.prototype.toString.call(t.shopId):i.longs===Number?new r.LongBits(t.shopId.low>>>0,t.shopId.high>>>0).toNumber(!0):t.shopId),t.shopFatherId!=null&&t.hasOwnProperty("shopFatherId")&&(typeof t.shopFatherId=="number"?n.shopFatherId=i.longs===String?String(t.shopFatherId):t.shopFatherId:n.shopFatherId=i.longs===String?r.Long.prototype.toString.call(t.shopFatherId):i.longs===Number?new r.LongBits(t.shopFatherId.low>>>0,t.shopFatherId.high>>>0).toNumber(!0):t.shopFatherId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.im.interface_.v1.ReqRemoveSession"},e}(),c.DummyRsp=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){default:t.skipType(a&7);break}}return o},e.fromObject=function(t){return t instanceof u.bilibili.im.interface_.v1.DummyRsp?t:new u.bilibili.im.interface_.v1.DummyRsp},e.toObject=function(){return{}},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.im.interface_.v1.DummyRsp"},e}(),c.SESSION_TYPE=function(){let e={},l=Object.create(e);return l[e[0]="UNKNOWN"]=0,l[e[1]="UN_FOLD_SESSION"]=1,l[e[2]="UN_FOLLOW_SINGLE_SESSION"]=2,l[e[3]="MY_GROUP_SESSION"]=3,l[e[4]="ALL_SESSION"]=4,l[e[5]="DUSTBIN_SESSION"]=5,l[e[6]="HUAHUO_SESSION"]=6,l[e[7]="SYS_SESSION"]=7,l}(),c.ENUM_FOLD=function(){let e={},l=Object.create(e);return l[e[0]="FOLD_NO"]=0,l[e[1]="FOLD_YES"]=1,l[e[2]="FOLD_UNKNOWN"]=2,l}(),c.ENUM_UNREAD_TYPE=function(){let e={},l=Object.create(e);return l[e[0]="UNREAD_TYPE_ALL"]=0,l[e[1]="UNREAD_TYPE_FOLLOW"]=1,l[e[2]="UNREAD_TYPE_UNFOLLOW"]=2,l[e[3]="UNREAD_TYPE_DUSTBIN"]=3,l}(),c.MSG_LIKE_STATE=function(){let e={},l=Object.create(e);return l[e[0]="STATE_UNSPECIFIED"]=0,l[e[1]="STATE_LIKE"]=1,l[e[2]="STATE_DISLIKE"]=2,l}(),c.MSG_LIKE_ACTION=function(){let e={},l=Object.create(e);return l[e[0]="ACTION_UNSPECIFIED"]=0,l[e[1]="ACTION_LIKE"]=1,l[e[2]="ACTION_CANCEL_LIKE"]=2,l[e[3]="ACTION_DISLIKE"]=3,l[e[4]="ACTION_CANCEL_DISLIKE"]=4,l}(),c.ReqSingleUnread=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.unreadType=t.uint32();break}case 2:{o.showUnfollowList=t.uint32();break}case 3:{o.uid=t.uint64();break}case 4:{o.showDustbin=t.uint32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.im.interface_.v1.ReqSingleUnread)return t;let i=new u.bilibili.im.interface_.v1.ReqSingleUnread;return t.unreadType!=null&&(i.unreadType=t.unreadType>>>0),t.showUnfollowList!=null&&(i.showUnfollowList=t.showUnfollowList>>>0),t.uid!=null&&(r.Long?(i.uid=r.Long.fromValue(t.uid)).unsigned=!0:typeof t.uid=="string"?i.uid=parseInt(t.uid,10):typeof t.uid=="number"?i.uid=t.uid:typeof t.uid=="object"&&(i.uid=new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber(!0))),t.showDustbin!=null&&(i.showDustbin=t.showDustbin>>>0),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.unreadType=0,n.showUnfollowList=0,r.Long){let o=new r.Long(0,0,!0);n.uid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.uid=i.longs===String?"0":0;n.showDustbin=0}return t.unreadType!=null&&t.hasOwnProperty("unreadType")&&(n.unreadType=t.unreadType),t.showUnfollowList!=null&&t.hasOwnProperty("showUnfollowList")&&(n.showUnfollowList=t.showUnfollowList),t.uid!=null&&t.hasOwnProperty("uid")&&(typeof t.uid=="number"?n.uid=i.longs===String?String(t.uid):t.uid:n.uid=i.longs===String?r.Long.prototype.toString.call(t.uid):i.longs===Number?new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber(!0):t.uid),t.showDustbin!=null&&t.hasOwnProperty("showDustbin")&&(n.showDustbin=t.showDustbin),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.im.interface_.v1.ReqSingleUnread"},e}(),c.RspSingleUnread=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.unfollowUnread=t.uint64();break}case 2:{o.followUnread=t.uint64();break}case 3:{o.unfollowPushMsg=t.uint32();break}case 4:{o.dustbinPushMsg=t.uint32();break}case 5:{o.dustbinUnread=t.uint64();break}case 6:{o.bizMsgUnfollowUnread=t.uint64();break}case 7:{o.bizMsgFollowUnread=t.uint64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.im.interface_.v1.RspSingleUnread)return t;let i=new u.bilibili.im.interface_.v1.RspSingleUnread;return t.unfollowUnread!=null&&(r.Long?(i.unfollowUnread=r.Long.fromValue(t.unfollowUnread)).unsigned=!0:typeof t.unfollowUnread=="string"?i.unfollowUnread=parseInt(t.unfollowUnread,10):typeof t.unfollowUnread=="number"?i.unfollowUnread=t.unfollowUnread:typeof t.unfollowUnread=="object"&&(i.unfollowUnread=new r.LongBits(t.unfollowUnread.low>>>0,t.unfollowUnread.high>>>0).toNumber(!0))),t.followUnread!=null&&(r.Long?(i.followUnread=r.Long.fromValue(t.followUnread)).unsigned=!0:typeof t.followUnread=="string"?i.followUnread=parseInt(t.followUnread,10):typeof t.followUnread=="number"?i.followUnread=t.followUnread:typeof t.followUnread=="object"&&(i.followUnread=new r.LongBits(t.followUnread.low>>>0,t.followUnread.high>>>0).toNumber(!0))),t.unfollowPushMsg!=null&&(i.unfollowPushMsg=t.unfollowPushMsg>>>0),t.dustbinPushMsg!=null&&(i.dustbinPushMsg=t.dustbinPushMsg>>>0),t.dustbinUnread!=null&&(r.Long?(i.dustbinUnread=r.Long.fromValue(t.dustbinUnread)).unsigned=!0:typeof t.dustbinUnread=="string"?i.dustbinUnread=parseInt(t.dustbinUnread,10):typeof t.dustbinUnread=="number"?i.dustbinUnread=t.dustbinUnread:typeof t.dustbinUnread=="object"&&(i.dustbinUnread=new r.LongBits(t.dustbinUnread.low>>>0,t.dustbinUnread.high>>>0).toNumber(!0))),t.bizMsgUnfollowUnread!=null&&(r.Long?(i.bizMsgUnfollowUnread=r.Long.fromValue(t.bizMsgUnfollowUnread)).unsigned=!0:typeof t.bizMsgUnfollowUnread=="string"?i.bizMsgUnfollowUnread=parseInt(t.bizMsgUnfollowUnread,10):typeof t.bizMsgUnfollowUnread=="number"?i.bizMsgUnfollowUnread=t.bizMsgUnfollowUnread:typeof t.bizMsgUnfollowUnread=="object"&&(i.bizMsgUnfollowUnread=new r.LongBits(t.bizMsgUnfollowUnread.low>>>0,t.bizMsgUnfollowUnread.high>>>0).toNumber(!0))),t.bizMsgFollowUnread!=null&&(r.Long?(i.bizMsgFollowUnread=r.Long.fromValue(t.bizMsgFollowUnread)).unsigned=!0:typeof t.bizMsgFollowUnread=="string"?i.bizMsgFollowUnread=parseInt(t.bizMsgFollowUnread,10):typeof t.bizMsgFollowUnread=="number"?i.bizMsgFollowUnread=t.bizMsgFollowUnread:typeof t.bizMsgFollowUnread=="object"&&(i.bizMsgFollowUnread=new r.LongBits(t.bizMsgFollowUnread.low>>>0,t.bizMsgFollowUnread.high>>>0).toNumber(!0))),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!0);n.unfollowUnread=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.unfollowUnread=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!0);n.followUnread=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.followUnread=i.longs===String?"0":0;if(n.unfollowPushMsg=0,n.dustbinPushMsg=0,r.Long){let o=new r.Long(0,0,!0);n.dustbinUnread=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.dustbinUnread=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!0);n.bizMsgUnfollowUnread=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.bizMsgUnfollowUnread=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!0);n.bizMsgFollowUnread=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.bizMsgFollowUnread=i.longs===String?"0":0}return t.unfollowUnread!=null&&t.hasOwnProperty("unfollowUnread")&&(typeof t.unfollowUnread=="number"?n.unfollowUnread=i.longs===String?String(t.unfollowUnread):t.unfollowUnread:n.unfollowUnread=i.longs===String?r.Long.prototype.toString.call(t.unfollowUnread):i.longs===Number?new r.LongBits(t.unfollowUnread.low>>>0,t.unfollowUnread.high>>>0).toNumber(!0):t.unfollowUnread),t.followUnread!=null&&t.hasOwnProperty("followUnread")&&(typeof t.followUnread=="number"?n.followUnread=i.longs===String?String(t.followUnread):t.followUnread:n.followUnread=i.longs===String?r.Long.prototype.toString.call(t.followUnread):i.longs===Number?new r.LongBits(t.followUnread.low>>>0,t.followUnread.high>>>0).toNumber(!0):t.followUnread),t.unfollowPushMsg!=null&&t.hasOwnProperty("unfollowPushMsg")&&(n.unfollowPushMsg=t.unfollowPushMsg),t.dustbinPushMsg!=null&&t.hasOwnProperty("dustbinPushMsg")&&(n.dustbinPushMsg=t.dustbinPushMsg),t.dustbinUnread!=null&&t.hasOwnProperty("dustbinUnread")&&(typeof t.dustbinUnread=="number"?n.dustbinUnread=i.longs===String?String(t.dustbinUnread):t.dustbinUnread:n.dustbinUnread=i.longs===String?r.Long.prototype.toString.call(t.dustbinUnread):i.longs===Number?new r.LongBits(t.dustbinUnread.low>>>0,t.dustbinUnread.high>>>0).toNumber(!0):t.dustbinUnread),t.bizMsgUnfollowUnread!=null&&t.hasOwnProperty("bizMsgUnfollowUnread")&&(typeof t.bizMsgUnfollowUnread=="number"?n.bizMsgUnfollowUnread=i.longs===String?String(t.bizMsgUnfollowUnread):t.bizMsgUnfollowUnread:n.bizMsgUnfollowUnread=i.longs===String?r.Long.prototype.toString.call(t.bizMsgUnfollowUnread):i.longs===Number?new r.LongBits(t.bizMsgUnfollowUnread.low>>>0,t.bizMsgUnfollowUnread.high>>>0).toNumber(!0):t.bizMsgUnfollowUnread),t.bizMsgFollowUnread!=null&&t.hasOwnProperty("bizMsgFollowUnread")&&(typeof t.bizMsgFollowUnread=="number"?n.bizMsgFollowUnread=i.longs===String?String(t.bizMsgFollowUnread):t.bizMsgFollowUnread:n.bizMsgFollowUnread=i.longs===String?r.Long.prototype.toString.call(t.bizMsgFollowUnread):i.longs===Number?new r.LongBits(t.bizMsgFollowUnread.low>>>0,t.bizMsgFollowUnread.high>>>0).toNumber(!0):t.bizMsgFollowUnread),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.im.interface_.v1.RspSingleUnread"},e}(),c.SimpleSession=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.talkerId=t.uint64();break}case 2:{o.sessionType=t.uint32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.im.interface_.v1.SimpleSession)return t;let i=new u.bilibili.im.interface_.v1.SimpleSession;return t.talkerId!=null&&(r.Long?(i.talkerId=r.Long.fromValue(t.talkerId)).unsigned=!0:typeof t.talkerId=="string"?i.talkerId=parseInt(t.talkerId,10):typeof t.talkerId=="number"?i.talkerId=t.talkerId:typeof t.talkerId=="object"&&(i.talkerId=new r.LongBits(t.talkerId.low>>>0,t.talkerId.high>>>0).toNumber(!0))),t.sessionType!=null&&(i.sessionType=t.sessionType>>>0),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!0);n.talkerId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.talkerId=i.longs===String?"0":0;n.sessionType=0}return t.talkerId!=null&&t.hasOwnProperty("talkerId")&&(typeof t.talkerId=="number"?n.talkerId=i.longs===String?String(t.talkerId):t.talkerId:n.talkerId=i.longs===String?r.Long.prototype.toString.call(t.talkerId):i.longs===Number?new r.LongBits(t.talkerId.low>>>0,t.talkerId.high>>>0).toNumber(!0):t.talkerId),t.sessionType!=null&&t.hasOwnProperty("sessionType")&&(n.sessionType=t.sessionType),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.im.interface_.v1.SimpleSession"},e}(),c.ReqSpecificSingleUnread=function(){function e(l){if(this.talkerSessions=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.talkerSessions&&o.talkerSessions.length||(o.talkerSessions=[]),o.talkerSessions.push(u.bilibili.im.interface_.v1.SimpleSession.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.im.interface_.v1.ReqSpecificSingleUnread)return t;let i=new u.bilibili.im.interface_.v1.ReqSpecificSingleUnread;if(t.talkerSessions){if(!Array.isArray(t.talkerSessions))throw TypeError(".bilibili.im.interface_.v1.ReqSpecificSingleUnread.talkerSessions: array expected");i.talkerSessions=[];for(let n=0;n>>3){case 1:{o.talkerUnreadCnt===r.emptyObject&&(o.talkerUnreadCnt={});let v=t.uint32()+t.pos;for(a=0,y=0;t.pos>>3){case 1:a=t.uint64();break;case 2:y=t.uint64();break;default:t.skipType(g&7);break}}o.talkerUnreadCnt[typeof a=="object"?r.longToHash(a):a]=y;break}case 2:{o.allUnreadCnt=t.uint64();break}default:t.skipType(s&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.im.interface_.v1.RspSpecificSingleUnread)return t;let i=new u.bilibili.im.interface_.v1.RspSpecificSingleUnread;if(t.talkerUnreadCnt){if(typeof t.talkerUnreadCnt!="object")throw TypeError(".bilibili.im.interface_.v1.RspSpecificSingleUnread.talkerUnreadCnt: object expected");i.talkerUnreadCnt={};for(let n=Object.keys(t.talkerUnreadCnt),o=0;o>>0,t.talkerUnreadCnt[n[o]].high>>>0).toNumber(!0))}return t.allUnreadCnt!=null&&(r.Long?(i.allUnreadCnt=r.Long.fromValue(t.allUnreadCnt)).unsigned=!0:typeof t.allUnreadCnt=="string"?i.allUnreadCnt=parseInt(t.allUnreadCnt,10):typeof t.allUnreadCnt=="number"?i.allUnreadCnt=t.allUnreadCnt:typeof t.allUnreadCnt=="object"&&(i.allUnreadCnt=new r.LongBits(t.allUnreadCnt.low>>>0,t.allUnreadCnt.high>>>0).toNumber(!0))),i},e.toObject=function(t,i){i||(i={});let n={};if((i.objects||i.defaults)&&(n.talkerUnreadCnt={}),i.defaults)if(r.Long){let a=new r.Long(0,0,!0);n.allUnreadCnt=i.longs===String?a.toString():i.longs===Number?a.toNumber():a}else n.allUnreadCnt=i.longs===String?"0":0;let o;if(t.talkerUnreadCnt&&(o=Object.keys(t.talkerUnreadCnt)).length){n.talkerUnreadCnt={};for(let a=0;a>>0,t.talkerUnreadCnt[o[a]].high>>>0).toNumber(!0):t.talkerUnreadCnt[o[a]]}return t.allUnreadCnt!=null&&t.hasOwnProperty("allUnreadCnt")&&(typeof t.allUnreadCnt=="number"?n.allUnreadCnt=i.longs===String?String(t.allUnreadCnt):t.allUnreadCnt:n.allUnreadCnt=i.longs===String?r.Long.prototype.toString.call(t.allUnreadCnt):i.longs===Number?new r.LongBits(t.allUnreadCnt.low>>>0,t.allUnreadCnt.high>>>0).toNumber(!0):t.allUnreadCnt),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.im.interface_.v1.RspSpecificSingleUnread"},e}(),c.ReqGetSpecificSessions=function(){function e(l){if(this.talkerSessions=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.talkerSessions&&o.talkerSessions.length||(o.talkerSessions=[]),o.talkerSessions.push(u.bilibili.im.interface_.v1.SimpleSession.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.im.interface_.v1.ReqGetSpecificSessions)return t;let i=new u.bilibili.im.interface_.v1.ReqGetSpecificSessions;if(t.talkerSessions){if(!Array.isArray(t.talkerSessions))throw TypeError(".bilibili.im.interface_.v1.ReqGetSpecificSessions.talkerSessions: array expected");i.talkerSessions=[];for(let n=0;n>>3){case 1:{o.idl=t.uint32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.im.interface_.v1.DummyReq)return t;let i=new u.bilibili.im.interface_.v1.DummyReq;return t.idl!=null&&(i.idl=t.idl>>>0),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.idl=0),t.idl!=null&&t.hasOwnProperty("idl")&&(n.idl=t.idl),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.im.interface_.v1.DummyReq"},e}(),c.RspMyGroupUnread=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.unreadCount=t.uint32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.im.interface_.v1.RspMyGroupUnread)return t;let i=new u.bilibili.im.interface_.v1.RspMyGroupUnread;return t.unreadCount!=null&&(i.unreadCount=t.unreadCount>>>0),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.unreadCount=0),t.unreadCount!=null&&t.hasOwnProperty("unreadCount")&&(n.unreadCount=t.unreadCount),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.im.interface_.v1.RspMyGroupUnread"},e}(),c.ReqGroupAssisMsg=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.clientSeqno=t.uint64();break}case 2:{o.size=t.uint32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.im.interface_.v1.ReqGroupAssisMsg)return t;let i=new u.bilibili.im.interface_.v1.ReqGroupAssisMsg;return t.clientSeqno!=null&&(r.Long?(i.clientSeqno=r.Long.fromValue(t.clientSeqno)).unsigned=!0:typeof t.clientSeqno=="string"?i.clientSeqno=parseInt(t.clientSeqno,10):typeof t.clientSeqno=="number"?i.clientSeqno=t.clientSeqno:typeof t.clientSeqno=="object"&&(i.clientSeqno=new r.LongBits(t.clientSeqno.low>>>0,t.clientSeqno.high>>>0).toNumber(!0))),t.size!=null&&(i.size=t.size>>>0),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!0);n.clientSeqno=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.clientSeqno=i.longs===String?"0":0;n.size=0}return t.clientSeqno!=null&&t.hasOwnProperty("clientSeqno")&&(typeof t.clientSeqno=="number"?n.clientSeqno=i.longs===String?String(t.clientSeqno):t.clientSeqno:n.clientSeqno=i.longs===String?r.Long.prototype.toString.call(t.clientSeqno):i.longs===Number?new r.LongBits(t.clientSeqno.low>>>0,t.clientSeqno.high>>>0).toNumber(!0):t.clientSeqno),t.size!=null&&t.hasOwnProperty("size")&&(n.size=t.size),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.im.interface_.v1.ReqGroupAssisMsg"},e}(),c.ReqAckAssisMsg=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.ackSeqno=t.uint64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.im.interface_.v1.ReqAckAssisMsg)return t;let i=new u.bilibili.im.interface_.v1.ReqAckAssisMsg;return t.ackSeqno!=null&&(r.Long?(i.ackSeqno=r.Long.fromValue(t.ackSeqno)).unsigned=!0:typeof t.ackSeqno=="string"?i.ackSeqno=parseInt(t.ackSeqno,10):typeof t.ackSeqno=="number"?i.ackSeqno=t.ackSeqno:typeof t.ackSeqno=="object"&&(i.ackSeqno=new r.LongBits(t.ackSeqno.low>>>0,t.ackSeqno.high>>>0).toNumber(!0))),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(r.Long){let o=new r.Long(0,0,!0);n.ackSeqno=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.ackSeqno=i.longs===String?"0":0;return t.ackSeqno!=null&&t.hasOwnProperty("ackSeqno")&&(typeof t.ackSeqno=="number"?n.ackSeqno=i.longs===String?String(t.ackSeqno):t.ackSeqno:n.ackSeqno=i.longs===String?r.Long.prototype.toString.call(t.ackSeqno):i.longs===Number?new r.LongBits(t.ackSeqno.low>>>0,t.ackSeqno.high>>>0).toNumber(!0):t.ackSeqno),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.im.interface_.v1.ReqAckAssisMsg"},e}(),c.ReqSessionDetail=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.talkerId=t.uint64();break}case 2:{o.sessionType=t.uint32();break}case 3:{o.uid=t.uint64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.im.interface_.v1.ReqSessionDetail)return t;let i=new u.bilibili.im.interface_.v1.ReqSessionDetail;return t.talkerId!=null&&(r.Long?(i.talkerId=r.Long.fromValue(t.talkerId)).unsigned=!0:typeof t.talkerId=="string"?i.talkerId=parseInt(t.talkerId,10):typeof t.talkerId=="number"?i.talkerId=t.talkerId:typeof t.talkerId=="object"&&(i.talkerId=new r.LongBits(t.talkerId.low>>>0,t.talkerId.high>>>0).toNumber(!0))),t.sessionType!=null&&(i.sessionType=t.sessionType>>>0),t.uid!=null&&(r.Long?(i.uid=r.Long.fromValue(t.uid)).unsigned=!0:typeof t.uid=="string"?i.uid=parseInt(t.uid,10):typeof t.uid=="number"?i.uid=t.uid:typeof t.uid=="object"&&(i.uid=new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber(!0))),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!0);n.talkerId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.talkerId=i.longs===String?"0":0;if(n.sessionType=0,r.Long){let o=new r.Long(0,0,!0);n.uid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.uid=i.longs===String?"0":0}return t.talkerId!=null&&t.hasOwnProperty("talkerId")&&(typeof t.talkerId=="number"?n.talkerId=i.longs===String?String(t.talkerId):t.talkerId:n.talkerId=i.longs===String?r.Long.prototype.toString.call(t.talkerId):i.longs===Number?new r.LongBits(t.talkerId.low>>>0,t.talkerId.high>>>0).toNumber(!0):t.talkerId),t.sessionType!=null&&t.hasOwnProperty("sessionType")&&(n.sessionType=t.sessionType),t.uid!=null&&t.hasOwnProperty("uid")&&(typeof t.uid=="number"?n.uid=i.longs===String?String(t.uid):t.uid:n.uid=i.longs===String?r.Long.prototype.toString.call(t.uid):i.longs===Number?new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber(!0):t.uid),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.im.interface_.v1.ReqSessionDetail"},e}(),c.ReqSessionDetails=function(){function e(l){if(this.sessIds=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.sessIds&&o.sessIds.length||(o.sessIds=[]),o.sessIds.push(u.bilibili.im.interface_.v1.ReqSessionDetail.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.im.interface_.v1.ReqSessionDetails)return t;let i=new u.bilibili.im.interface_.v1.ReqSessionDetails;if(t.sessIds){if(!Array.isArray(t.sessIds))throw TypeError(".bilibili.im.interface_.v1.ReqSessionDetails.sessIds: array expected");i.sessIds=[];for(let n=0;n>>3){case 1:{o.sessInfos&&o.sessInfos.length||(o.sessInfos=[]),o.sessInfos.push(u.bilibili.im.type.SessionInfo.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.im.interface_.v1.RspSessionDetails)return t;let i=new u.bilibili.im.interface_.v1.RspSessionDetails;if(t.sessInfos){if(!Array.isArray(t.sessInfos))throw TypeError(".bilibili.im.interface_.v1.RspSessionDetails.sessInfos: array expected");i.sessInfos=[];for(let n=0;n>>3){default:t.skipType(a&7);break}}return o},e.fromObject=function(t){return t instanceof u.bilibili.im.interface_.v1.ReqBatRmSess?t:new u.bilibili.im.interface_.v1.ReqBatRmSess},e.toObject=function(){return{}},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.im.interface_.v1.ReqBatRmSess"},e}(),c.ReqShareList=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.size=t.int32();break}case 2:{o.source=t.uint32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.im.interface_.v1.ReqShareList)return t;let i=new u.bilibili.im.interface_.v1.ReqShareList;return t.size!=null&&(i.size=t.size|0),t.source!=null&&(i.source=t.source>>>0),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.size=0,n.source=0),t.size!=null&&t.hasOwnProperty("size")&&(n.size=t.size),t.source!=null&&t.hasOwnProperty("source")&&(n.source=t.source),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.im.interface_.v1.ReqShareList"},e}(),c.ShareSessionInfo=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.talkerId=t.uint64();break}case 2:{o.talkerUname=t.string();break}case 3:{o.talkerIcon=t.string();break}case 4:{o.officialType=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.im.interface_.v1.ShareSessionInfo)return t;let i=new u.bilibili.im.interface_.v1.ShareSessionInfo;return t.talkerId!=null&&(r.Long?(i.talkerId=r.Long.fromValue(t.talkerId)).unsigned=!0:typeof t.talkerId=="string"?i.talkerId=parseInt(t.talkerId,10):typeof t.talkerId=="number"?i.talkerId=t.talkerId:typeof t.talkerId=="object"&&(i.talkerId=new r.LongBits(t.talkerId.low>>>0,t.talkerId.high>>>0).toNumber(!0))),t.talkerUname!=null&&(i.talkerUname=String(t.talkerUname)),t.talkerIcon!=null&&(i.talkerIcon=String(t.talkerIcon)),t.officialType!=null&&(i.officialType=t.officialType|0),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!0);n.talkerId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.talkerId=i.longs===String?"0":0;n.talkerUname="",n.talkerIcon="",n.officialType=0}return t.talkerId!=null&&t.hasOwnProperty("talkerId")&&(typeof t.talkerId=="number"?n.talkerId=i.longs===String?String(t.talkerId):t.talkerId:n.talkerId=i.longs===String?r.Long.prototype.toString.call(t.talkerId):i.longs===Number?new r.LongBits(t.talkerId.low>>>0,t.talkerId.high>>>0).toNumber(!0):t.talkerId),t.talkerUname!=null&&t.hasOwnProperty("talkerUname")&&(n.talkerUname=t.talkerUname),t.talkerIcon!=null&&t.hasOwnProperty("talkerIcon")&&(n.talkerIcon=t.talkerIcon),t.officialType!=null&&t.hasOwnProperty("officialType")&&(n.officialType=t.officialType),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.im.interface_.v1.ShareSessionInfo"},e}(),c.RspShareList=function(){function e(l){if(this.sessionList=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.sessionList&&o.sessionList.length||(o.sessionList=[]),o.sessionList.push(u.bilibili.im.interface_.v1.ShareSessionInfo.decode(t,t.uint32()));break}case 2:{o.IsAddressListEmpty=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.im.interface_.v1.RspShareList)return t;let i=new u.bilibili.im.interface_.v1.RspShareList;if(t.sessionList){if(!Array.isArray(t.sessionList))throw TypeError(".bilibili.im.interface_.v1.RspShareList.sessionList: array expected");i.sessionList=[];for(let n=0;n>>3){case 1:{o.uid=t.uint64();break}case 2:{o.talkerId=t.uint64();break}case 3:{o.status=t.uint32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.im.interface_.v1.ReqUpdateIntercept)return t;let i=new u.bilibili.im.interface_.v1.ReqUpdateIntercept;return t.uid!=null&&(r.Long?(i.uid=r.Long.fromValue(t.uid)).unsigned=!0:typeof t.uid=="string"?i.uid=parseInt(t.uid,10):typeof t.uid=="number"?i.uid=t.uid:typeof t.uid=="object"&&(i.uid=new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber(!0))),t.talkerId!=null&&(r.Long?(i.talkerId=r.Long.fromValue(t.talkerId)).unsigned=!0:typeof t.talkerId=="string"?i.talkerId=parseInt(t.talkerId,10):typeof t.talkerId=="number"?i.talkerId=t.talkerId:typeof t.talkerId=="object"&&(i.talkerId=new r.LongBits(t.talkerId.low>>>0,t.talkerId.high>>>0).toNumber(!0))),t.status!=null&&(i.status=t.status>>>0),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!0);n.uid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.uid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!0);n.talkerId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.talkerId=i.longs===String?"0":0;n.status=0}return t.uid!=null&&t.hasOwnProperty("uid")&&(typeof t.uid=="number"?n.uid=i.longs===String?String(t.uid):t.uid:n.uid=i.longs===String?r.Long.prototype.toString.call(t.uid):i.longs===Number?new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber(!0):t.uid),t.talkerId!=null&&t.hasOwnProperty("talkerId")&&(typeof t.talkerId=="number"?n.talkerId=i.longs===String?String(t.talkerId):t.talkerId:n.talkerId=i.longs===String?r.Long.prototype.toString.call(t.talkerId):i.longs===Number?new r.LongBits(t.talkerId.low>>>0,t.talkerId.high>>>0).toNumber(!0):t.talkerId),t.status!=null&&t.hasOwnProperty("status")&&(n.status=t.status),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.im.interface_.v1.ReqUpdateIntercept"},e}(),c.ReqLiveInfo=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.uid=t.int64();break}case 2:{o.talkerId=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.im.interface_.v1.ReqLiveInfo)return t;let i=new u.bilibili.im.interface_.v1.ReqLiveInfo;return t.uid!=null&&(r.Long?(i.uid=r.Long.fromValue(t.uid)).unsigned=!1:typeof t.uid=="string"?i.uid=parseInt(t.uid,10):typeof t.uid=="number"?i.uid=t.uid:typeof t.uid=="object"&&(i.uid=new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber())),t.talkerId!=null&&(r.Long?(i.talkerId=r.Long.fromValue(t.talkerId)).unsigned=!1:typeof t.talkerId=="string"?i.talkerId=parseInt(t.talkerId,10):typeof t.talkerId=="number"?i.talkerId=t.talkerId:typeof t.talkerId=="object"&&(i.talkerId=new r.LongBits(t.talkerId.low>>>0,t.talkerId.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.uid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.uid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.talkerId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.talkerId=i.longs===String?"0":0}return t.uid!=null&&t.hasOwnProperty("uid")&&(typeof t.uid=="number"?n.uid=i.longs===String?String(t.uid):t.uid:n.uid=i.longs===String?r.Long.prototype.toString.call(t.uid):i.longs===Number?new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber():t.uid),t.talkerId!=null&&t.hasOwnProperty("talkerId")&&(typeof t.talkerId=="number"?n.talkerId=i.longs===String?String(t.talkerId):t.talkerId:n.talkerId=i.longs===String?r.Long.prototype.toString.call(t.talkerId):i.longs===Number?new r.LongBits(t.talkerId.low>>>0,t.talkerId.high>>>0).toNumber():t.talkerId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.im.interface_.v1.ReqLiveInfo"},e}(),c.RspLiveInfo=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.liveStatus=t.int64();break}case 2:{o.jumpUrl=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.im.interface_.v1.RspLiveInfo)return t;let i=new u.bilibili.im.interface_.v1.RspLiveInfo;return t.liveStatus!=null&&(r.Long?(i.liveStatus=r.Long.fromValue(t.liveStatus)).unsigned=!1:typeof t.liveStatus=="string"?i.liveStatus=parseInt(t.liveStatus,10):typeof t.liveStatus=="number"?i.liveStatus=t.liveStatus:typeof t.liveStatus=="object"&&(i.liveStatus=new r.LongBits(t.liveStatus.low>>>0,t.liveStatus.high>>>0).toNumber())),t.jumpUrl!=null&&(i.jumpUrl=String(t.jumpUrl)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.liveStatus=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.liveStatus=i.longs===String?"0":0;n.jumpUrl=""}return t.liveStatus!=null&&t.hasOwnProperty("liveStatus")&&(typeof t.liveStatus=="number"?n.liveStatus=i.longs===String?String(t.liveStatus):t.liveStatus:n.liveStatus=i.longs===String?r.Long.prototype.toString.call(t.liveStatus):i.longs===Number?new r.LongBits(t.liveStatus.low>>>0,t.liveStatus.high>>>0).toNumber():t.liveStatus),t.jumpUrl!=null&&t.hasOwnProperty("jumpUrl")&&(n.jumpUrl=t.jumpUrl),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.im.interface_.v1.RspLiveInfo"},e}(),c.ReqTotalUnread=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.unreadType=t.uint32();break}case 2:{o.showUnfollowList=t.uint32();break}case 3:{o.uid=t.uint64();break}case 4:{o.showDustbin=t.uint32();break}case 5:{o.singleunreadOn=t.int32();break}case 6:{o.msgfeedOn=t.int32();break}case 7:{o.sysupOn=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.im.interface_.v1.ReqTotalUnread)return t;let i=new u.bilibili.im.interface_.v1.ReqTotalUnread;return t.unreadType!=null&&(i.unreadType=t.unreadType>>>0),t.showUnfollowList!=null&&(i.showUnfollowList=t.showUnfollowList>>>0),t.uid!=null&&(r.Long?(i.uid=r.Long.fromValue(t.uid)).unsigned=!0:typeof t.uid=="string"?i.uid=parseInt(t.uid,10):typeof t.uid=="number"?i.uid=t.uid:typeof t.uid=="object"&&(i.uid=new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber(!0))),t.showDustbin!=null&&(i.showDustbin=t.showDustbin>>>0),t.singleunreadOn!=null&&(i.singleunreadOn=t.singleunreadOn|0),t.msgfeedOn!=null&&(i.msgfeedOn=t.msgfeedOn|0),t.sysupOn!=null&&(i.sysupOn=t.sysupOn|0),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.unreadType=0,n.showUnfollowList=0,r.Long){let o=new r.Long(0,0,!0);n.uid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.uid=i.longs===String?"0":0;n.showDustbin=0,n.singleunreadOn=0,n.msgfeedOn=0,n.sysupOn=0}return t.unreadType!=null&&t.hasOwnProperty("unreadType")&&(n.unreadType=t.unreadType),t.showUnfollowList!=null&&t.hasOwnProperty("showUnfollowList")&&(n.showUnfollowList=t.showUnfollowList),t.uid!=null&&t.hasOwnProperty("uid")&&(typeof t.uid=="number"?n.uid=i.longs===String?String(t.uid):t.uid:n.uid=i.longs===String?r.Long.prototype.toString.call(t.uid):i.longs===Number?new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber(!0):t.uid),t.showDustbin!=null&&t.hasOwnProperty("showDustbin")&&(n.showDustbin=t.showDustbin),t.singleunreadOn!=null&&t.hasOwnProperty("singleunreadOn")&&(n.singleunreadOn=t.singleunreadOn),t.msgfeedOn!=null&&t.hasOwnProperty("msgfeedOn")&&(n.msgfeedOn=t.msgfeedOn),t.sysupOn!=null&&t.hasOwnProperty("sysupOn")&&(n.sysupOn=t.sysupOn),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.im.interface_.v1.ReqTotalUnread"},e}(),c.RspTotalUnread=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.sessionSingleUnread=u.bilibili.im.interface_.v1.SessionSingleUnreadRsp.decode(t,t.uint32());break}case 2:{o.msgFeedUnread=u.bilibili.im.interface_.v1.MsgFeedUnreadRsp.decode(t,t.uint32());break}case 3:{o.sysMsgInterfaceLastMsg=u.bilibili.im.interface_.v1.SysMsgInterfaceLastMsgRsp.decode(t,t.uint32());break}case 4:{o.totalUnread=t.int32();break}case 5:{o.customUnread=t.uint64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.im.interface_.v1.RspTotalUnread)return t;let i=new u.bilibili.im.interface_.v1.RspTotalUnread;if(t.sessionSingleUnread!=null){if(typeof t.sessionSingleUnread!="object")throw TypeError(".bilibili.im.interface_.v1.RspTotalUnread.sessionSingleUnread: object expected");i.sessionSingleUnread=u.bilibili.im.interface_.v1.SessionSingleUnreadRsp.fromObject(t.sessionSingleUnread)}if(t.msgFeedUnread!=null){if(typeof t.msgFeedUnread!="object")throw TypeError(".bilibili.im.interface_.v1.RspTotalUnread.msgFeedUnread: object expected");i.msgFeedUnread=u.bilibili.im.interface_.v1.MsgFeedUnreadRsp.fromObject(t.msgFeedUnread)}if(t.sysMsgInterfaceLastMsg!=null){if(typeof t.sysMsgInterfaceLastMsg!="object")throw TypeError(".bilibili.im.interface_.v1.RspTotalUnread.sysMsgInterfaceLastMsg: object expected");i.sysMsgInterfaceLastMsg=u.bilibili.im.interface_.v1.SysMsgInterfaceLastMsgRsp.fromObject(t.sysMsgInterfaceLastMsg)}return t.totalUnread!=null&&(i.totalUnread=t.totalUnread|0),t.customUnread!=null&&(r.Long?(i.customUnread=r.Long.fromValue(t.customUnread)).unsigned=!0:typeof t.customUnread=="string"?i.customUnread=parseInt(t.customUnread,10):typeof t.customUnread=="number"?i.customUnread=t.customUnread:typeof t.customUnread=="object"&&(i.customUnread=new r.LongBits(t.customUnread.low>>>0,t.customUnread.high>>>0).toNumber(!0))),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(n.sessionSingleUnread=null,n.msgFeedUnread=null,n.sysMsgInterfaceLastMsg=null,n.totalUnread=0,r.Long){let o=new r.Long(0,0,!0);n.customUnread=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.customUnread=i.longs===String?"0":0;return t.sessionSingleUnread!=null&&t.hasOwnProperty("sessionSingleUnread")&&(n.sessionSingleUnread=u.bilibili.im.interface_.v1.SessionSingleUnreadRsp.toObject(t.sessionSingleUnread,i)),t.msgFeedUnread!=null&&t.hasOwnProperty("msgFeedUnread")&&(n.msgFeedUnread=u.bilibili.im.interface_.v1.MsgFeedUnreadRsp.toObject(t.msgFeedUnread,i)),t.sysMsgInterfaceLastMsg!=null&&t.hasOwnProperty("sysMsgInterfaceLastMsg")&&(n.sysMsgInterfaceLastMsg=u.bilibili.im.interface_.v1.SysMsgInterfaceLastMsgRsp.toObject(t.sysMsgInterfaceLastMsg,i)),t.totalUnread!=null&&t.hasOwnProperty("totalUnread")&&(n.totalUnread=t.totalUnread),t.customUnread!=null&&t.hasOwnProperty("customUnread")&&(typeof t.customUnread=="number"?n.customUnread=i.longs===String?String(t.customUnread):t.customUnread:n.customUnread=i.longs===String?r.Long.prototype.toString.call(t.customUnread):i.longs===Number?new r.LongBits(t.customUnread.low>>>0,t.customUnread.high>>>0).toNumber(!0):t.customUnread),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.im.interface_.v1.RspTotalUnread"},e}(),c.ReqShowClearUnreadUI=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.unreadType=t.uint32();break}case 2:{o.showUnfollowList=t.uint32();break}case 4:{o.showDustbin=t.uint32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.im.interface_.v1.ReqShowClearUnreadUI)return t;let i=new u.bilibili.im.interface_.v1.ReqShowClearUnreadUI;return t.unreadType!=null&&(i.unreadType=t.unreadType>>>0),t.showUnfollowList!=null&&(i.showUnfollowList=t.showUnfollowList>>>0),t.showDustbin!=null&&(i.showDustbin=t.showDustbin>>>0),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.unreadType=0,n.showUnfollowList=0,n.showDustbin=0),t.unreadType!=null&&t.hasOwnProperty("unreadType")&&(n.unreadType=t.unreadType),t.showUnfollowList!=null&&t.hasOwnProperty("showUnfollowList")&&(n.showUnfollowList=t.showUnfollowList),t.showDustbin!=null&&t.hasOwnProperty("showDustbin")&&(n.showDustbin=t.showDustbin),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.im.interface_.v1.ReqShowClearUnreadUI"},e}(),c.RspShowClearUnreadUI=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.display=t.bool();break}case 2:{o.text=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.im.interface_.v1.RspShowClearUnreadUI)return t;let i=new u.bilibili.im.interface_.v1.RspShowClearUnreadUI;return t.display!=null&&(i.display=!!t.display),t.text!=null&&(i.text=String(t.text)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.display=!1,n.text=""),t.display!=null&&t.hasOwnProperty("display")&&(n.display=t.display),t.text!=null&&t.hasOwnProperty("text")&&(n.text=t.text),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.im.interface_.v1.RspShowClearUnreadUI"},e}(),c.ReqCloseClearUnreadUI=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){default:t.skipType(a&7);break}}return o},e.fromObject=function(t){return t instanceof u.bilibili.im.interface_.v1.ReqCloseClearUnreadUI?t:new u.bilibili.im.interface_.v1.ReqCloseClearUnreadUI},e.toObject=function(){return{}},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.im.interface_.v1.ReqCloseClearUnreadUI"},e}(),c.RspCloseClearUnreadUI=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){default:t.skipType(a&7);break}}return o},e.fromObject=function(t){return t instanceof u.bilibili.im.interface_.v1.RspCloseClearUnreadUI?t:new u.bilibili.im.interface_.v1.RspCloseClearUnreadUI},e.toObject=function(){return{}},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.im.interface_.v1.RspCloseClearUnreadUI"},e}(),c.ReqUpdateTotalUnread=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){default:t.skipType(a&7);break}}return o},e.fromObject=function(t){return t instanceof u.bilibili.im.interface_.v1.ReqUpdateTotalUnread?t:new u.bilibili.im.interface_.v1.ReqUpdateTotalUnread},e.toObject=function(){return{}},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.im.interface_.v1.ReqUpdateTotalUnread"},e}(),c.RspUpdateTotalUnread=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){default:t.skipType(a&7);break}}return o},e.fromObject=function(t){return t instanceof u.bilibili.im.interface_.v1.RspUpdateTotalUnread?t:new u.bilibili.im.interface_.v1.RspUpdateTotalUnread},e.toObject=function(){return{}},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.im.interface_.v1.RspUpdateTotalUnread"},e}(),c.SessionSingleUnreadRsp=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.unfollowUnread=t.uint64();break}case 2:{o.followUnread=t.uint64();break}case 3:{o.unfollowPushMsg=t.uint32();break}case 4:{o.dustbinPushMsg=t.uint32();break}case 5:{o.dustbinUnread=t.uint64();break}case 6:{o.bizMsgUnfollowUnread=t.uint64();break}case 7:{o.bizMsgFollowUnread=t.uint64();break}case 8:{o.huahuoUnread=t.uint64();break}case 9:{o.customUnread=t.uint64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.im.interface_.v1.SessionSingleUnreadRsp)return t;let i=new u.bilibili.im.interface_.v1.SessionSingleUnreadRsp;return t.unfollowUnread!=null&&(r.Long?(i.unfollowUnread=r.Long.fromValue(t.unfollowUnread)).unsigned=!0:typeof t.unfollowUnread=="string"?i.unfollowUnread=parseInt(t.unfollowUnread,10):typeof t.unfollowUnread=="number"?i.unfollowUnread=t.unfollowUnread:typeof t.unfollowUnread=="object"&&(i.unfollowUnread=new r.LongBits(t.unfollowUnread.low>>>0,t.unfollowUnread.high>>>0).toNumber(!0))),t.followUnread!=null&&(r.Long?(i.followUnread=r.Long.fromValue(t.followUnread)).unsigned=!0:typeof t.followUnread=="string"?i.followUnread=parseInt(t.followUnread,10):typeof t.followUnread=="number"?i.followUnread=t.followUnread:typeof t.followUnread=="object"&&(i.followUnread=new r.LongBits(t.followUnread.low>>>0,t.followUnread.high>>>0).toNumber(!0))),t.unfollowPushMsg!=null&&(i.unfollowPushMsg=t.unfollowPushMsg>>>0),t.dustbinPushMsg!=null&&(i.dustbinPushMsg=t.dustbinPushMsg>>>0),t.dustbinUnread!=null&&(r.Long?(i.dustbinUnread=r.Long.fromValue(t.dustbinUnread)).unsigned=!0:typeof t.dustbinUnread=="string"?i.dustbinUnread=parseInt(t.dustbinUnread,10):typeof t.dustbinUnread=="number"?i.dustbinUnread=t.dustbinUnread:typeof t.dustbinUnread=="object"&&(i.dustbinUnread=new r.LongBits(t.dustbinUnread.low>>>0,t.dustbinUnread.high>>>0).toNumber(!0))),t.bizMsgUnfollowUnread!=null&&(r.Long?(i.bizMsgUnfollowUnread=r.Long.fromValue(t.bizMsgUnfollowUnread)).unsigned=!0:typeof t.bizMsgUnfollowUnread=="string"?i.bizMsgUnfollowUnread=parseInt(t.bizMsgUnfollowUnread,10):typeof t.bizMsgUnfollowUnread=="number"?i.bizMsgUnfollowUnread=t.bizMsgUnfollowUnread:typeof t.bizMsgUnfollowUnread=="object"&&(i.bizMsgUnfollowUnread=new r.LongBits(t.bizMsgUnfollowUnread.low>>>0,t.bizMsgUnfollowUnread.high>>>0).toNumber(!0))),t.bizMsgFollowUnread!=null&&(r.Long?(i.bizMsgFollowUnread=r.Long.fromValue(t.bizMsgFollowUnread)).unsigned=!0:typeof t.bizMsgFollowUnread=="string"?i.bizMsgFollowUnread=parseInt(t.bizMsgFollowUnread,10):typeof t.bizMsgFollowUnread=="number"?i.bizMsgFollowUnread=t.bizMsgFollowUnread:typeof t.bizMsgFollowUnread=="object"&&(i.bizMsgFollowUnread=new r.LongBits(t.bizMsgFollowUnread.low>>>0,t.bizMsgFollowUnread.high>>>0).toNumber(!0))),t.huahuoUnread!=null&&(r.Long?(i.huahuoUnread=r.Long.fromValue(t.huahuoUnread)).unsigned=!0:typeof t.huahuoUnread=="string"?i.huahuoUnread=parseInt(t.huahuoUnread,10):typeof t.huahuoUnread=="number"?i.huahuoUnread=t.huahuoUnread:typeof t.huahuoUnread=="object"&&(i.huahuoUnread=new r.LongBits(t.huahuoUnread.low>>>0,t.huahuoUnread.high>>>0).toNumber(!0))),t.customUnread!=null&&(r.Long?(i.customUnread=r.Long.fromValue(t.customUnread)).unsigned=!0:typeof t.customUnread=="string"?i.customUnread=parseInt(t.customUnread,10):typeof t.customUnread=="number"?i.customUnread=t.customUnread:typeof t.customUnread=="object"&&(i.customUnread=new r.LongBits(t.customUnread.low>>>0,t.customUnread.high>>>0).toNumber(!0))),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!0);n.unfollowUnread=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.unfollowUnread=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!0);n.followUnread=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.followUnread=i.longs===String?"0":0;if(n.unfollowPushMsg=0,n.dustbinPushMsg=0,r.Long){let o=new r.Long(0,0,!0);n.dustbinUnread=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.dustbinUnread=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!0);n.bizMsgUnfollowUnread=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.bizMsgUnfollowUnread=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!0);n.bizMsgFollowUnread=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.bizMsgFollowUnread=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!0);n.huahuoUnread=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.huahuoUnread=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!0);n.customUnread=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.customUnread=i.longs===String?"0":0}return t.unfollowUnread!=null&&t.hasOwnProperty("unfollowUnread")&&(typeof t.unfollowUnread=="number"?n.unfollowUnread=i.longs===String?String(t.unfollowUnread):t.unfollowUnread:n.unfollowUnread=i.longs===String?r.Long.prototype.toString.call(t.unfollowUnread):i.longs===Number?new r.LongBits(t.unfollowUnread.low>>>0,t.unfollowUnread.high>>>0).toNumber(!0):t.unfollowUnread),t.followUnread!=null&&t.hasOwnProperty("followUnread")&&(typeof t.followUnread=="number"?n.followUnread=i.longs===String?String(t.followUnread):t.followUnread:n.followUnread=i.longs===String?r.Long.prototype.toString.call(t.followUnread):i.longs===Number?new r.LongBits(t.followUnread.low>>>0,t.followUnread.high>>>0).toNumber(!0):t.followUnread),t.unfollowPushMsg!=null&&t.hasOwnProperty("unfollowPushMsg")&&(n.unfollowPushMsg=t.unfollowPushMsg),t.dustbinPushMsg!=null&&t.hasOwnProperty("dustbinPushMsg")&&(n.dustbinPushMsg=t.dustbinPushMsg),t.dustbinUnread!=null&&t.hasOwnProperty("dustbinUnread")&&(typeof t.dustbinUnread=="number"?n.dustbinUnread=i.longs===String?String(t.dustbinUnread):t.dustbinUnread:n.dustbinUnread=i.longs===String?r.Long.prototype.toString.call(t.dustbinUnread):i.longs===Number?new r.LongBits(t.dustbinUnread.low>>>0,t.dustbinUnread.high>>>0).toNumber(!0):t.dustbinUnread),t.bizMsgUnfollowUnread!=null&&t.hasOwnProperty("bizMsgUnfollowUnread")&&(typeof t.bizMsgUnfollowUnread=="number"?n.bizMsgUnfollowUnread=i.longs===String?String(t.bizMsgUnfollowUnread):t.bizMsgUnfollowUnread:n.bizMsgUnfollowUnread=i.longs===String?r.Long.prototype.toString.call(t.bizMsgUnfollowUnread):i.longs===Number?new r.LongBits(t.bizMsgUnfollowUnread.low>>>0,t.bizMsgUnfollowUnread.high>>>0).toNumber(!0):t.bizMsgUnfollowUnread),t.bizMsgFollowUnread!=null&&t.hasOwnProperty("bizMsgFollowUnread")&&(typeof t.bizMsgFollowUnread=="number"?n.bizMsgFollowUnread=i.longs===String?String(t.bizMsgFollowUnread):t.bizMsgFollowUnread:n.bizMsgFollowUnread=i.longs===String?r.Long.prototype.toString.call(t.bizMsgFollowUnread):i.longs===Number?new r.LongBits(t.bizMsgFollowUnread.low>>>0,t.bizMsgFollowUnread.high>>>0).toNumber(!0):t.bizMsgFollowUnread),t.huahuoUnread!=null&&t.hasOwnProperty("huahuoUnread")&&(typeof t.huahuoUnread=="number"?n.huahuoUnread=i.longs===String?String(t.huahuoUnread):t.huahuoUnread:n.huahuoUnread=i.longs===String?r.Long.prototype.toString.call(t.huahuoUnread):i.longs===Number?new r.LongBits(t.huahuoUnread.low>>>0,t.huahuoUnread.high>>>0).toNumber(!0):t.huahuoUnread),t.customUnread!=null&&t.hasOwnProperty("customUnread")&&(typeof t.customUnread=="number"?n.customUnread=i.longs===String?String(t.customUnread):t.customUnread:n.customUnread=i.longs===String?r.Long.prototype.toString.call(t.customUnread):i.longs===Number?new r.LongBits(t.customUnread.low>>>0,t.customUnread.high>>>0).toNumber(!0):t.customUnread),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.im.interface_.v1.SessionSingleUnreadRsp"},e}(),c.MsgFeedUnreadRsp=function(){function e(l){if(this.unread={},l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.unread===r.emptyObject&&(o.unread={});let v=t.uint32()+t.pos;for(a="",y=0;t.pos>>3){case 1:a=t.string();break;case 2:y=t.int64();break;default:t.skipType(g&7);break}}o.unread[a]=y;break}default:t.skipType(s&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.im.interface_.v1.MsgFeedUnreadRsp)return t;let i=new u.bilibili.im.interface_.v1.MsgFeedUnreadRsp;if(t.unread){if(typeof t.unread!="object")throw TypeError(".bilibili.im.interface_.v1.MsgFeedUnreadRsp.unread: object expected");i.unread={};for(let n=Object.keys(t.unread),o=0;o>>0,t.unread[n[o]].high>>>0).toNumber())}return i},e.toObject=function(t,i){i||(i={});let n={};(i.objects||i.defaults)&&(n.unread={});let o;if(t.unread&&(o=Object.keys(t.unread)).length){n.unread={};for(let a=0;a>>0,t.unread[o[a]].high>>>0).toNumber():t.unread[o[a]]}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.im.interface_.v1.MsgFeedUnreadRsp"},e}(),c.SysMsgInterfaceLastMsgRsp=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.unread=t.int32();break}case 2:{o.title=t.string();break}case 3:{o.time=t.string();break}case 4:{o.id=t.uint64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.im.interface_.v1.SysMsgInterfaceLastMsgRsp)return t;let i=new u.bilibili.im.interface_.v1.SysMsgInterfaceLastMsgRsp;return t.unread!=null&&(i.unread=t.unread|0),t.title!=null&&(i.title=String(t.title)),t.time!=null&&(i.time=String(t.time)),t.id!=null&&(r.Long?(i.id=r.Long.fromValue(t.id)).unsigned=!0:typeof t.id=="string"?i.id=parseInt(t.id,10):typeof t.id=="number"?i.id=t.id:typeof t.id=="object"&&(i.id=new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber(!0))),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(n.unread=0,n.title="",n.time="",r.Long){let o=new r.Long(0,0,!0);n.id=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.id=i.longs===String?"0":0;return t.unread!=null&&t.hasOwnProperty("unread")&&(n.unread=t.unread),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.time!=null&&t.hasOwnProperty("time")&&(n.time=t.time),t.id!=null&&t.hasOwnProperty("id")&&(typeof t.id=="number"?n.id=i.longs===String?String(t.id):t.id:n.id=i.longs===String?r.Long.prototype.toString.call(t.id):i.longs===Number?new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber(!0):t.id),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.im.interface_.v1.SysMsgInterfaceLastMsgRsp"},e}(),c.ReqGetDiscussListInImPage=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){default:t.skipType(a&7);break}}return o},e.fromObject=function(t){return t instanceof u.bilibili.im.interface_.v1.ReqGetDiscussListInImPage?t:new u.bilibili.im.interface_.v1.ReqGetDiscussListInImPage},e.toObject=function(){return{}},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.im.interface_.v1.ReqGetDiscussListInImPage"},e}(),c.RspGetDiscussListInImPage=function(){function e(l){if(this.discussList=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.discussList&&o.discussList.length||(o.discussList=[]),o.discussList.push(u.bilibili.im.interface_.v1.SingleDiscussInImPage.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.im.interface_.v1.RspGetDiscussListInImPage)return t;let i=new u.bilibili.im.interface_.v1.RspGetDiscussListInImPage;if(t.discussList){if(!Array.isArray(t.discussList))throw TypeError(".bilibili.im.interface_.v1.RspGetDiscussListInImPage.discussList: array expected");i.discussList=[];for(let n=0;n>>3){case 1:{o.discussId=t.uint64();break}case 2:{o.mid=t.uint64();break}case 3:{o.face=t.string();break}case 4:{o.name=t.string();break}case 5:{o.unreadCount=t.uint32();break}case 6:{o.type=t.uint32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.im.interface_.v1.SingleDiscussInImPage)return t;let i=new u.bilibili.im.interface_.v1.SingleDiscussInImPage;return t.discussId!=null&&(r.Long?(i.discussId=r.Long.fromValue(t.discussId)).unsigned=!0:typeof t.discussId=="string"?i.discussId=parseInt(t.discussId,10):typeof t.discussId=="number"?i.discussId=t.discussId:typeof t.discussId=="object"&&(i.discussId=new r.LongBits(t.discussId.low>>>0,t.discussId.high>>>0).toNumber(!0))),t.mid!=null&&(r.Long?(i.mid=r.Long.fromValue(t.mid)).unsigned=!0:typeof t.mid=="string"?i.mid=parseInt(t.mid,10):typeof t.mid=="number"?i.mid=t.mid:typeof t.mid=="object"&&(i.mid=new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber(!0))),t.face!=null&&(i.face=String(t.face)),t.name!=null&&(i.name=String(t.name)),t.unreadCount!=null&&(i.unreadCount=t.unreadCount>>>0),t.type!=null&&(i.type=t.type>>>0),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!0);n.discussId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.discussId=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!0);n.mid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mid=i.longs===String?"0":0;n.face="",n.name="",n.unreadCount=0,n.type=0}return t.discussId!=null&&t.hasOwnProperty("discussId")&&(typeof t.discussId=="number"?n.discussId=i.longs===String?String(t.discussId):t.discussId:n.discussId=i.longs===String?r.Long.prototype.toString.call(t.discussId):i.longs===Number?new r.LongBits(t.discussId.low>>>0,t.discussId.high>>>0).toNumber(!0):t.discussId),t.mid!=null&&t.hasOwnProperty("mid")&&(typeof t.mid=="number"?n.mid=i.longs===String?String(t.mid):t.mid:n.mid=i.longs===String?r.Long.prototype.toString.call(t.mid):i.longs===Number?new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber(!0):t.mid),t.face!=null&&t.hasOwnProperty("face")&&(n.face=t.face),t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),t.unreadCount!=null&&t.hasOwnProperty("unreadCount")&&(n.unreadCount=t.unreadCount),t.type!=null&&t.hasOwnProperty("type")&&(n.type=t.type),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.im.interface_.v1.SingleDiscussInImPage"},e}(),c.ReqLikeMsg=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.msgKey=t.uint64();break}case 2:{o.action=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.im.interface_.v1.ReqLikeMsg)return t;let i=new u.bilibili.im.interface_.v1.ReqLikeMsg;switch(t.msgKey!=null&&(r.Long?(i.msgKey=r.Long.fromValue(t.msgKey)).unsigned=!0:typeof t.msgKey=="string"?i.msgKey=parseInt(t.msgKey,10):typeof t.msgKey=="number"?i.msgKey=t.msgKey:typeof t.msgKey=="object"&&(i.msgKey=new r.LongBits(t.msgKey.low>>>0,t.msgKey.high>>>0).toNumber(!0))),t.action){default:if(typeof t.action=="number"){i.action=t.action;break}break;case"ACTION_UNSPECIFIED":case 0:i.action=0;break;case"ACTION_LIKE":case 1:i.action=1;break;case"ACTION_CANCEL_LIKE":case 2:i.action=2;break;case"ACTION_DISLIKE":case 3:i.action=3;break;case"ACTION_CANCEL_DISLIKE":case 4:i.action=4;break}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!0);n.msgKey=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.msgKey=i.longs===String?"0":0;n.action=i.enums===String?"ACTION_UNSPECIFIED":0}return t.msgKey!=null&&t.hasOwnProperty("msgKey")&&(typeof t.msgKey=="number"?n.msgKey=i.longs===String?String(t.msgKey):t.msgKey:n.msgKey=i.longs===String?r.Long.prototype.toString.call(t.msgKey):i.longs===Number?new r.LongBits(t.msgKey.low>>>0,t.msgKey.high>>>0).toNumber(!0):t.msgKey),t.action!=null&&t.hasOwnProperty("action")&&(n.action=i.enums===String?u.bilibili.im.interface_.v1.MSG_LIKE_ACTION[t.action]===void 0?t.action:u.bilibili.im.interface_.v1.MSG_LIKE_ACTION[t.action]:t.action),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.im.interface_.v1.ReqLikeMsg"},e}(),c.ReqMsgHasLike=function(){function e(l){if(this.msgKeys=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{if(o.msgKeys&&o.msgKeys.length||(o.msgKeys=[]),(a&7)===2){let y=t.uint32()+t.pos;for(;t.pos>>0,t.msgKeys[n].high>>>0).toNumber(!0))}return i},e.toObject=function(t,i){i||(i={});let n={};if((i.arrays||i.defaults)&&(n.msgKeys=[]),t.msgKeys&&t.msgKeys.length){n.msgKeys=[];for(let o=0;o>>0,t.msgKeys[o].high>>>0).toNumber(!0):t.msgKeys[o]}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.im.interface_.v1.ReqMsgHasLike"},e}(),c.RspMsgHasLike=function(){function e(l){if(this.states={},l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.states===r.emptyObject&&(o.states={});let v=t.uint32()+t.pos;for(a=0,y=null;t.pos>>3){case 1:a=t.uint64();break;case 2:y=u.bilibili.im.interface_.v1.HasLikeState.decode(t,t.uint32());break;default:t.skipType(g&7);break}}o.states[typeof a=="object"?r.longToHash(a):a]=y;break}default:t.skipType(s&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.im.interface_.v1.RspMsgHasLike)return t;let i=new u.bilibili.im.interface_.v1.RspMsgHasLike;if(t.states){if(typeof t.states!="object")throw TypeError(".bilibili.im.interface_.v1.RspMsgHasLike.states: object expected");i.states={};for(let n=Object.keys(t.states),o=0;o>>3){case 1:{o.state=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.im.interface_.v1.HasLikeState)return t;let i=new u.bilibili.im.interface_.v1.HasLikeState;switch(t.state){default:if(typeof t.state=="number"){i.state=t.state;break}break;case"STATE_UNSPECIFIED":case 0:i.state=0;break;case"STATE_LIKE":case 1:i.state=1;break;case"STATE_DISLIKE":case 2:i.state=2;break}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.state=i.enums===String?"STATE_UNSPECIFIED":0),t.state!=null&&t.hasOwnProperty("state")&&(n.state=i.enums===String?u.bilibili.im.interface_.v1.MSG_LIKE_STATE[t.state]===void 0?t.state:u.bilibili.im.interface_.v1.MSG_LIKE_STATE[t.state]:t.state),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.im.interface_.v1.HasLikeState"},e}(),c.ImInterface=function(){function e(l,t,i){b.rpc.Service.call(this,l,t,i)}return(e.prototype=Object.create(b.rpc.Service.prototype)).constructor=e,e.create=function(t,i,n){return new this(t,i,n)},Object.defineProperty(e.prototype.sendMsg=function l(t,i){return this.rpcCall(l,u.bilibili.im.interface_.v1.ReqSendMsg,u.bilibili.im.interface_.v1.RspSendMsg,t,i)},"name",{value:"SendMsg"}),Object.defineProperty(e.prototype.batchGetMsgDetail=function l(t,i){return this.rpcCall(l,u.bilibili.im.interface_.v1.ReqGetMsg,u.bilibili.im.interface_.v1.RspGetMsg,t,i)},"name",{value:"BatchGetMsgDetail"}),Object.defineProperty(e.prototype.syncRelation=function l(t,i){return this.rpcCall(l,u.bilibili.im.interface_.v1.ReqRelationSync,u.bilibili.im.interface_.v1.RspRelationSync,t,i)},"name",{value:"SyncRelation"}),Object.defineProperty(e.prototype.syncAck=function l(t,i){return this.rpcCall(l,u.bilibili.im.interface_.v1.ReqSyncAck,u.bilibili.im.interface_.v1.RspSyncAck,t,i)},"name",{value:"SyncAck"}),Object.defineProperty(e.prototype.syncFetchSessionMsgs=function l(t,i){return this.rpcCall(l,u.bilibili.im.interface_.v1.ReqSessionMsg,u.bilibili.im.interface_.v1.RspSessionMsg,t,i)},"name",{value:"SyncFetchSessionMsgs"}),Object.defineProperty(e.prototype.getSessions=function l(t,i){return this.rpcCall(l,u.bilibili.im.interface_.v1.ReqGetSessions,u.bilibili.im.interface_.v1.RspSessions,t,i)},"name",{value:"GetSessions"}),Object.defineProperty(e.prototype.newSessions=function l(t,i){return this.rpcCall(l,u.bilibili.im.interface_.v1.ReqNewSessions,u.bilibili.im.interface_.v1.RspSessions,t,i)},"name",{value:"NewSessions"}),Object.defineProperty(e.prototype.ackSessions=function l(t,i){return this.rpcCall(l,u.bilibili.im.interface_.v1.ReqAckSessions,u.bilibili.im.interface_.v1.RspSessions,t,i)},"name",{value:"AckSessions"}),Object.defineProperty(e.prototype.updateAck=function l(t,i){return this.rpcCall(l,u.bilibili.im.interface_.v1.ReqUpdateAck,u.bilibili.im.interface_.v1.DummyRsp,t,i)},"name",{value:"UpdateAck"}),Object.defineProperty(e.prototype.setTop=function l(t,i){return this.rpcCall(l,u.bilibili.im.interface_.v1.ReqSetTop,u.bilibili.im.interface_.v1.DummyRsp,t,i)},"name",{value:"SetTop"}),Object.defineProperty(e.prototype.removeSession=function l(t,i){return this.rpcCall(l,u.bilibili.im.interface_.v1.ReqRemoveSession,u.bilibili.im.interface_.v1.DummyRsp,t,i)},"name",{value:"RemoveSession"}),Object.defineProperty(e.prototype.singleUnread=function l(t,i){return this.rpcCall(l,u.bilibili.im.interface_.v1.ReqSingleUnread,u.bilibili.im.interface_.v1.RspSingleUnread,t,i)},"name",{value:"SingleUnread"}),Object.defineProperty(e.prototype.myGroupUnread=function l(t,i){return this.rpcCall(l,u.bilibili.im.interface_.v1.DummyReq,u.bilibili.im.interface_.v1.RspMyGroupUnread,t,i)},"name",{value:"MyGroupUnread"}),Object.defineProperty(e.prototype.updateUnflwRead=function l(t,i){return this.rpcCall(l,u.bilibili.im.interface_.v1.DummyReq,u.bilibili.im.interface_.v1.DummyRsp,t,i)},"name",{value:"UpdateUnflwRead"}),Object.defineProperty(e.prototype.groupAssisMsg=function l(t,i){return this.rpcCall(l,u.bilibili.im.interface_.v1.ReqGroupAssisMsg,u.bilibili.im.interface_.v1.RspSessionMsg,t,i)},"name",{value:"GroupAssisMsg"}),Object.defineProperty(e.prototype.ackAssisMsg=function l(t,i){return this.rpcCall(l,u.bilibili.im.interface_.v1.ReqAckAssisMsg,u.bilibili.im.interface_.v1.DummyRsp,t,i)},"name",{value:"AckAssisMsg"}),Object.defineProperty(e.prototype.sessionDetail=function l(t,i){return this.rpcCall(l,u.bilibili.im.interface_.v1.ReqSessionDetail,u.bilibili.im.type.SessionInfo,t,i)},"name",{value:"SessionDetail"}),Object.defineProperty(e.prototype.batchSessDetail=function l(t,i){return this.rpcCall(l,u.bilibili.im.interface_.v1.ReqSessionDetails,u.bilibili.im.interface_.v1.RspSessionDetails,t,i)},"name",{value:"BatchSessDetail"}),Object.defineProperty(e.prototype.batchRmSessions=function l(t,i){return this.rpcCall(l,u.bilibili.im.interface_.v1.ReqBatRmSess,u.bilibili.im.interface_.v1.DummyRsp,t,i)},"name",{value:"BatchRmSessions"}),Object.defineProperty(e.prototype.shareList=function l(t,i){return this.rpcCall(l,u.bilibili.im.interface_.v1.ReqShareList,u.bilibili.im.interface_.v1.RspShareList,t,i)},"name",{value:"ShareList"}),Object.defineProperty(e.prototype.updateIntercept=function l(t,i){return this.rpcCall(l,u.bilibili.im.interface_.v1.ReqUpdateIntercept,u.bilibili.im.interface_.v1.DummyRsp,t,i)},"name",{value:"UpdateIntercept"}),Object.defineProperty(e.prototype.batchUpdateDustbinAck=function l(t,i){return this.rpcCall(l,u.bilibili.im.interface_.v1.DummyReq,u.bilibili.im.interface_.v1.DummyRsp,t,i)},"name",{value:"BatchUpdateDustbinAck"}),Object.defineProperty(e.prototype.batchRmDustbin=function l(t,i){return this.rpcCall(l,u.bilibili.im.interface_.v1.DummyReq,u.bilibili.im.interface_.v1.DummyRsp,t,i)},"name",{value:"BatchRmDustbin"}),Object.defineProperty(e.prototype.specificSingleUnread=function l(t,i){return this.rpcCall(l,u.bilibili.im.interface_.v1.ReqSpecificSingleUnread,u.bilibili.im.interface_.v1.RspSpecificSingleUnread,t,i)},"name",{value:"SpecificSingleUnread"}),Object.defineProperty(e.prototype.getSpecificSessions=function l(t,i){return this.rpcCall(l,u.bilibili.im.interface_.v1.ReqGetSpecificSessions,u.bilibili.im.interface_.v1.RspSessions,t,i)},"name",{value:"GetSpecificSessions"}),Object.defineProperty(e.prototype.getLiveInfo=function l(t,i){return this.rpcCall(l,u.bilibili.im.interface_.v1.ReqLiveInfo,u.bilibili.im.interface_.v1.RspLiveInfo,t,i)},"name",{value:"GetLiveInfo"}),Object.defineProperty(e.prototype.getTotalUnread=function l(t,i){return this.rpcCall(l,u.bilibili.im.interface_.v1.ReqTotalUnread,u.bilibili.im.interface_.v1.RspTotalUnread,t,i)},"name",{value:"GetTotalUnread"}),Object.defineProperty(e.prototype.showClearUnreadUI=function l(t,i){return this.rpcCall(l,u.bilibili.im.interface_.v1.ReqShowClearUnreadUI,u.bilibili.im.interface_.v1.RspShowClearUnreadUI,t,i)},"name",{value:"ShowClearUnreadUI"}),Object.defineProperty(e.prototype.closeClearUnreadUI=function l(t,i){return this.rpcCall(l,u.bilibili.im.interface_.v1.ReqCloseClearUnreadUI,u.bilibili.im.interface_.v1.RspCloseClearUnreadUI,t,i)},"name",{value:"CloseClearUnreadUI"}),Object.defineProperty(e.prototype.updateTotalUnread=function l(t,i){return this.rpcCall(l,u.bilibili.im.interface_.v1.ReqUpdateTotalUnread,u.bilibili.im.interface_.v1.RspUpdateTotalUnread,t,i)},"name",{value:"UpdateTotalUnread"}),Object.defineProperty(e.prototype.getDiscussListInImPage=function l(t,i){return this.rpcCall(l,u.bilibili.im.interface_.v1.ReqGetDiscussListInImPage,u.bilibili.im.interface_.v1.RspGetDiscussListInImPage,t,i)},"name",{value:"GetDiscussListInImPage"}),Object.defineProperty(e.prototype.likeMsg=function l(t,i){return this.rpcCall(l,u.bilibili.im.interface_.v1.ReqLikeMsg,u.bilibili.im.interface_.v1.DummyRsp,t,i)},"name",{value:"LikeMsg"}),Object.defineProperty(e.prototype.msgHasLike=function l(t,i){return this.rpcCall(l,u.bilibili.im.interface_.v1.ReqMsgHasLike,u.bilibili.im.interface_.v1.RspMsgHasLike,t,i)},"name",{value:"MsgHasLike"}),e}(),c}(),p}(),d.type=function(){let p={};return p.ENUM_BIZ_MSG_TYPE=function(){let c={},e=Object.create(c);return e[c[0]="BIZ_MSG_TYPE_NORMAL"]=0,e[c[1]="BIZ_MSG_TYPE_CARD_VIDEO"]=1,e}(),p.RecverType=function(){let c={},e=Object.create(c);return e[c[0]="EN_NO_MEANING"]=0,e[c[1]="EN_RECVER_TYPE_PEER"]=1,e[c[2]="EN_RECVER_TYPE_GROUP"]=2,e[c[3]="EN_RECVER_TYPE_PEERS"]=3,e}(),p.CmdId=function(){let c={},e=Object.create(c);return e[c[0]="EN_CMD_ID_INVALID"]=0,e[c[200001]="EN_CMD_ID_SEND_MSG"]=200001,e[c[500001]="EN_CMD_ID_SYNC_MSG"]=500001,e[c[500002]="EN_CMD_ID_SYNC_RELATION"]=500002,e[c[500003]="EN_CMD_ID_SYNC_ACK"]=500003,e[c[500006]="EN_CMD_ID_SYNC_FETCH_SESSION_MSGS"]=500006,e[c[1000001]="EN_CMD_ID_SESSION_SVR_GET_SESSIONS"]=1000001,e[c[1000002]="EN_CMD_ID_SESSION_SVR_NEW_SESSIONS"]=1000002,e[c[1000003]="EN_CMD_ID_SESSION_SVR_ACK_SESSIONS"]=1000003,e[c[1000004]="EN_CMD_ID_SESSION_SVR_UPDATE_ACK"]=1000004,e[c[1000005]="EN_CMD_ID_SESSION_SVR_SET_TOP"]=1000005,e[c[1000007]="EN_CMD_ID_SESSION_SVR_REMOVE_SESSION"]=1000007,e[c[1000008]="EN_CMD_ID_SESSION_SVR_SINGLE_UNREAD"]=1000008,e[c[1000009]="EN_CMD_ID_SESSION_SVR_MY_GROUP_UNREAD"]=1000009,e[c[1000010]="EN_CMD_ID_SESSION_SVR_UPDATE_UNFLW_READ"]=1000010,e[c[1000011]="EN_CMD_ID_SESSION_SVR_GROUP_ASSIS_MSG"]=1000011,e[c[1000012]="EN_CMD_ID_SESSION_SVR_ACK_ASSIS_MSG"]=1000012,e[c[1000015]="EN_CMD_ID_SESSION_SVR_SESSION_DETAIL"]=1000015,e[c[1000016]="EN_CMD_ID_SESSION_SVR_BATCH_SESS_DETAIL"]=1000016,e[c[1000017]="EN_CMD_ID_SESSION_SVR_BATCH_RM_SESSIONS"]=1000017,e}(),p.RelationLogType=function(){let c={},e=Object.create(c);return e[c[0]="EN_INVALID_LOG_TYPE"]=0,e[c[1]="EN_ADD_FRIEND"]=1,e[c[2]="EN_REMOVE_FRIEND"]=2,e[c[3]="EN_JOIN_GROUP"]=3,e[c[4]="EN_EXIT_GROUP"]=4,e}(),p.MsgSource=function(){let c={},e=Object.create(c);return e[c[0]="EN_MSG_SOURCE_UNKONW"]=0,e[c[1]="EN_MSG_SOURCE_IOS"]=1,e[c[2]="EN_MSG_SOURCE_ANDRIOD"]=2,e[c[3]="EN_MSG_SOURCE_H5"]=3,e[c[4]="EN_MSG_SOURCE_PC"]=4,e[c[5]="EN_MSG_SOURCE_BACKSTAGE"]=5,e[c[6]="EN_MSG_SOURCE_BIZ"]=6,e[c[7]="EN_MSG_SOURCE_WEB"]=7,e[c[8]="EN_MSG_SOURCE_AUTOREPLY_BY_FOLLOWED"]=8,e[c[9]="EN_MSG_SOURCE_AUTOREPLY_BY_RECEIVE_MSG"]=9,e[c[10]="EN_MSG_SOURCE_AUTOREPLY_BY_KEYWORDS"]=10,e[c[11]="EN_MSG_SOURCE_AUTOREPLY_BY_VOYAGE"]=11,e[c[12]="EN_MSG_SOURCE_VC_ATTACH_MSG"]=12,e[c[18]="EN_MSG_SOURCE_TIP"]=18,e}(),p.MsgType=function(){let c={},e=Object.create(c);return e[c[0]="EN_INVALID_MSG_TYPE"]=0,e[c[1]="EN_MSG_TYPE_TEXT"]=1,e[c[2]="EN_MSG_TYPE_PIC"]=2,e[c[3]="EN_MSG_TYPE_AUDIO"]=3,e[c[4]="EN_MSG_TYPE_SHARE"]=4,e[c[5]="EN_MSG_TYPE_DRAW_BACK"]=5,e[c[6]="EN_MSG_TYPE_CUSTOM_FACE"]=6,e[c[7]="EN_MSG_TYPE_SHARE_V2"]=7,e[c[8]="EN_MSG_TYPE_SYS_CANCEL"]=8,e[c[9]="EN_MSG_TYPE_MINI_PROGRAM"]=9,e[c[10]="EN_MSG_TYPE_NOTIFY_MSG"]=10,e[c[11]="EN_MSG_TYPE_VIDEO_CARD"]=11,e[c[12]="EN_MSG_TYPE_ARTICLE_CARD"]=12,e[c[13]="EN_MSG_TYPE_PICTURE_CARD"]=13,e[c[14]="EN_MSG_TYPE_COMMON_SHARE_CARD"]=14,e[c[15]="EN_MSG_TYPE_TEXT_SHARE"]=15,e[c[18]="EN_MSG_TYPE_TIP_MESSAGE"]=18,e[c[19]="EN_MSG_TYPE_GPT_MESSAGE"]=19,e[c[50]="EN_MSG_TYPE_BIZ_MSG_TYPE"]=50,e[c[101]="EN_MSG_TYPE_GROUP_MEMBER_CHANGED"]=101,e[c[102]="EN_MSG_TYPE_GROUP_STATUS_CHANGED"]=102,e[c[103]="EN_MSG_TYPE_GROUP_DYNAMIC_CHANGED"]=103,e[c[104]="EN_MSG_TYPE_GROUP_LIST_CHANGED"]=104,e[c[105]="EM_MSG_TYPE_FRIEND_LIST_CHANGED"]=105,e[c[106]="EN_MSG_TYPE_GROUP_DETAIL_CHANGED"]=106,e[c[107]="EN_MSG_TYPE_GROUP_MEMBER_ROLE_CHANGED"]=107,e[c[108]="EN_MSG_TYPE_NOTICE_WATCH_LIST"]=108,e[c[109]="EN_MSG_TYPE_NOTIFY_NEW_REPLY_RECIEVED"]=109,e[c[110]="EN_MSG_TYPE_NOTIFY_NEW_AT_RECIEVED"]=110,e[c[111]="EN_MSG_TYPE_NOTIFY_NEW_PRAISE_RECIEVED"]=111,e[c[112]="EN_MSG_TYPE_NOTIFY_NEW_UP_RECIEVED"]=112,e[c[113]="EN_MSG_TYPE_NOTIFY_NEW_REPLY_RECIEVED_V2"]=113,e[c[114]="EN_MSG_TYPE_NOTIFY_NEW_AT_RECIEVED_V2"]=114,e[c[115]="EN_MSG_TYPE_NOTIFY_NEW_PRAISE_RECIEVED_V2"]=115,e[c[116]="EN_MSG_TYPE_GROUP_DETAIL_CHANGED_MULTI"]=116,e[c[117]="EN_MSG_TYPE_GROUP_MEMBER_ROLE_CHANGED_MULTI"]=117,e[c[118]="EN_MSG_TYPE_NOTIFY_ANTI_DISTURB"]=118,e[c[201]="EN_MSG_TYPE_SYS_GROUP_DISSOLVED"]=201,e[c[202]="EN_MSG_TYPE_SYS_GROUP_JOINED"]=202,e[c[203]="EN_MSG_TYPE_SYS_GROUP_MEMBER_EXITED"]=203,e[c[204]="EN_MSG_TYPE_SYS_GROUP_ADMIN_FIRED"]=204,e[c[205]="EN_MSG_TYPE_SYS_GROUP_MEMBER_KICKED"]=205,e[c[206]="EN_MSG_TYPE_SYS_GROUP_ADMIN_KICK_OFF"]=206,e[c[207]="EN_MSG_TYPE_SYS_GROUP_ADMIN_DUTY"]=207,e[c[208]="EN_MSG_TYPE_SYS_GROUP_AUTO_CREATED"]=208,e[c[210]="EN_MSG_TYPE_SYS_FRIEND_APPLY"]=210,e[c[211]="EN_MSG_TYPE_SYS_FRIEND_APPLY_ACK"]=211,e[c[212]="EN_MSG_TYPE_SYS_GROUP_APPLY_FOR_JOINING"]=212,e[c[213]="EN_MSG_TYPE_SYS_GROUP_ADMIN_ACCEPTED_USER_APPLY"]=213,e[c[301]="EN_MSG_TYPE_CHAT_MEMBER_JOINED"]=301,e[c[302]="EN_MSG_TYPE_CHAT_MEMBER_EXITED"]=302,e[c[303]="EN_MSG_TYPE_CHAT_GROUP_FREEZED"]=303,e[c[304]="EN_MSG_TYPE_CHAT_GROUP_DISSOLVED"]=304,e[c[305]="EN_MSG_TYPE_CHAT_GROUP_CREATED"]=305,e[c[306]="EN_MSG_TYPE_CHAT_POPUP_SESSION"]=306,e[c[51]="EN_MSG_TYPE_MODIFY_MSG_TYPE"]=51,e[c[400]="EN_MSG_TYPE_CUSTOM_RANK_UPDATE"]=400,e[c[401]="EN_MSG_TYPE_CUSTOM_MSG_NOTICE"]=401,e}(),p.SESSION_TYPE=function(){let c={},e=Object.create(c);return e[c[0]="INVALID_SESSION_TYPE"]=0,e[c[1]="UN_FOLD_SESSION"]=1,e[c[2]="UN_FOLLOW_SINGLE_SESSION"]=2,e[c[3]="MY_GROUP_SESSION"]=3,e[c[4]="ALL_SESSION"]=4,e}(),p.HighText=function(){function c(e){if(e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.title=l.string();break}case 2:{n.url=l.string();break}case 3:{n.index=l.uint32();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.im.type.HighText)return l;let t=new u.bilibili.im.type.HighText;return l.title!=null&&(t.title=String(l.title)),l.url!=null&&(t.url=String(l.url)),l.index!=null&&(t.index=l.index>>>0),t},c.toObject=function(l,t){t||(t={});let i={};return t.defaults&&(i.title="",i.url="",i.index=0),l.title!=null&&l.hasOwnProperty("title")&&(i.title=l.title),l.url!=null&&l.hasOwnProperty("url")&&(i.url=l.url),l.index!=null&&l.hasOwnProperty("index")&&(i.index=l.index),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.im.type.HighText"},c}(),p.KeyHitInfos=function(){function c(e){if(this.highText=[],e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.toast=l.string();break}case 2:{n.ruleId=l.uint32();break}case 3:{n.highText&&n.highText.length||(n.highText=[]),n.highText.push(u.bilibili.im.type.HighText.decode(l,l.uint32()));break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.im.type.KeyHitInfos)return l;let t=new u.bilibili.im.type.KeyHitInfos;if(l.toast!=null&&(t.toast=String(l.toast)),l.ruleId!=null&&(t.ruleId=l.ruleId>>>0),l.highText){if(!Array.isArray(l.highText))throw TypeError(".bilibili.im.type.KeyHitInfos.highText: array expected");t.highText=[];for(let i=0;i>>3){case 1:{n.senderUid=l.uint64();break}case 2:{n.receiverType=l.int32();break}case 3:{n.receiverId=l.uint64();break}case 4:{n.cliMsgId=l.uint64();break}case 5:{n.msgType=l.int32();break}case 6:{n.content=l.string();break}case 7:{n.msgSeqno=l.uint64();break}case 8:{n.timestamp=l.uint64();break}case 9:{if(n.atUids&&n.atUids.length||(n.atUids=[]),(o&7)===2){let a=l.uint32()+l.pos;for(;l.pos>>0,l.senderUid.high>>>0).toNumber(!0))),l.receiverType!=null&&(t.receiverType=l.receiverType|0),l.receiverId!=null&&(r.Long?(t.receiverId=r.Long.fromValue(l.receiverId)).unsigned=!0:typeof l.receiverId=="string"?t.receiverId=parseInt(l.receiverId,10):typeof l.receiverId=="number"?t.receiverId=l.receiverId:typeof l.receiverId=="object"&&(t.receiverId=new r.LongBits(l.receiverId.low>>>0,l.receiverId.high>>>0).toNumber(!0))),l.cliMsgId!=null&&(r.Long?(t.cliMsgId=r.Long.fromValue(l.cliMsgId)).unsigned=!0:typeof l.cliMsgId=="string"?t.cliMsgId=parseInt(l.cliMsgId,10):typeof l.cliMsgId=="number"?t.cliMsgId=l.cliMsgId:typeof l.cliMsgId=="object"&&(t.cliMsgId=new r.LongBits(l.cliMsgId.low>>>0,l.cliMsgId.high>>>0).toNumber(!0))),l.msgType!=null&&(t.msgType=l.msgType|0),l.content!=null&&(t.content=String(l.content)),l.msgSeqno!=null&&(r.Long?(t.msgSeqno=r.Long.fromValue(l.msgSeqno)).unsigned=!0:typeof l.msgSeqno=="string"?t.msgSeqno=parseInt(l.msgSeqno,10):typeof l.msgSeqno=="number"?t.msgSeqno=l.msgSeqno:typeof l.msgSeqno=="object"&&(t.msgSeqno=new r.LongBits(l.msgSeqno.low>>>0,l.msgSeqno.high>>>0).toNumber(!0))),l.timestamp!=null&&(r.Long?(t.timestamp=r.Long.fromValue(l.timestamp)).unsigned=!0:typeof l.timestamp=="string"?t.timestamp=parseInt(l.timestamp,10):typeof l.timestamp=="number"?t.timestamp=l.timestamp:typeof l.timestamp=="object"&&(t.timestamp=new r.LongBits(l.timestamp.low>>>0,l.timestamp.high>>>0).toNumber(!0))),l.atUids){if(!Array.isArray(l.atUids))throw TypeError(".bilibili.im.type.Msg.atUids: array expected");t.atUids=[];for(let i=0;i>>0,l.atUids[i].high>>>0).toNumber(!0))}if(l.recverIds){if(!Array.isArray(l.recverIds))throw TypeError(".bilibili.im.type.Msg.recverIds: array expected");t.recverIds=[];for(let i=0;i>>0,l.recverIds[i].high>>>0).toNumber(!0))}if(l.msgKey!=null&&(r.Long?(t.msgKey=r.Long.fromValue(l.msgKey)).unsigned=!0:typeof l.msgKey=="string"?t.msgKey=parseInt(l.msgKey,10):typeof l.msgKey=="number"?t.msgKey=l.msgKey:typeof l.msgKey=="object"&&(t.msgKey=new r.LongBits(l.msgKey.low>>>0,l.msgKey.high>>>0).toNumber(!0))),l.msgStatus!=null&&(t.msgStatus=l.msgStatus>>>0),l.sysCancel!=null&&(t.sysCancel=!!l.sysCancel),l.notifyCode!=null&&(t.notifyCode=String(l.notifyCode)),l.msgSource!=null&&(t.msgSource=l.msgSource>>>0),l.newFaceVersion!=null&&(t.newFaceVersion=l.newFaceVersion|0),l.keyHitInfos!=null){if(typeof l.keyHitInfos!="object")throw TypeError(".bilibili.im.type.Msg.keyHitInfos: object expected");t.keyHitInfos=u.bilibili.im.type.KeyHitInfos.fromObject(l.keyHitInfos)}if(l.accountInfo!=null){if(typeof l.accountInfo!="object")throw TypeError(".bilibili.im.type.Msg.accountInfo: object expected");t.accountInfo=u.bilibili.im.type.AccountInfo.fromObject(l.accountInfo)}if(l.gptMsgContent!=null){if(typeof l.gptMsgContent!="object")throw TypeError(".bilibili.im.type.Msg.gptMsgContent: object expected");t.gptMsgContent=u.bilibili.im.type.GptMsgContent.fromObject(l.gptMsgContent)}return l.canalToken!=null&&(t.canalToken=String(l.canalToken)),t},c.toObject=function(l,t){t||(t={});let i={};if((t.arrays||t.defaults)&&(i.atUids=[],i.recverIds=[]),t.defaults){if(r.Long){let n=new r.Long(0,0,!0);i.senderUid=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.senderUid=t.longs===String?"0":0;if(i.receiverType=0,r.Long){let n=new r.Long(0,0,!0);i.receiverId=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.receiverId=t.longs===String?"0":0;if(r.Long){let n=new r.Long(0,0,!0);i.cliMsgId=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.cliMsgId=t.longs===String?"0":0;if(i.msgType=0,i.content="",r.Long){let n=new r.Long(0,0,!0);i.msgSeqno=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.msgSeqno=t.longs===String?"0":0;if(r.Long){let n=new r.Long(0,0,!0);i.timestamp=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.timestamp=t.longs===String?"0":0;if(r.Long){let n=new r.Long(0,0,!0);i.msgKey=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.msgKey=t.longs===String?"0":0;i.msgStatus=0,i.sysCancel=!1,i.notifyCode="",i.msgSource=0,i.newFaceVersion=0,i.keyHitInfos=null,i.accountInfo=null,i.gptMsgContent=null,i.canalToken=""}if(l.senderUid!=null&&l.hasOwnProperty("senderUid")&&(typeof l.senderUid=="number"?i.senderUid=t.longs===String?String(l.senderUid):l.senderUid:i.senderUid=t.longs===String?r.Long.prototype.toString.call(l.senderUid):t.longs===Number?new r.LongBits(l.senderUid.low>>>0,l.senderUid.high>>>0).toNumber(!0):l.senderUid),l.receiverType!=null&&l.hasOwnProperty("receiverType")&&(i.receiverType=l.receiverType),l.receiverId!=null&&l.hasOwnProperty("receiverId")&&(typeof l.receiverId=="number"?i.receiverId=t.longs===String?String(l.receiverId):l.receiverId:i.receiverId=t.longs===String?r.Long.prototype.toString.call(l.receiverId):t.longs===Number?new r.LongBits(l.receiverId.low>>>0,l.receiverId.high>>>0).toNumber(!0):l.receiverId),l.cliMsgId!=null&&l.hasOwnProperty("cliMsgId")&&(typeof l.cliMsgId=="number"?i.cliMsgId=t.longs===String?String(l.cliMsgId):l.cliMsgId:i.cliMsgId=t.longs===String?r.Long.prototype.toString.call(l.cliMsgId):t.longs===Number?new r.LongBits(l.cliMsgId.low>>>0,l.cliMsgId.high>>>0).toNumber(!0):l.cliMsgId),l.msgType!=null&&l.hasOwnProperty("msgType")&&(i.msgType=l.msgType),l.content!=null&&l.hasOwnProperty("content")&&(i.content=l.content),l.msgSeqno!=null&&l.hasOwnProperty("msgSeqno")&&(typeof l.msgSeqno=="number"?i.msgSeqno=t.longs===String?String(l.msgSeqno):l.msgSeqno:i.msgSeqno=t.longs===String?r.Long.prototype.toString.call(l.msgSeqno):t.longs===Number?new r.LongBits(l.msgSeqno.low>>>0,l.msgSeqno.high>>>0).toNumber(!0):l.msgSeqno),l.timestamp!=null&&l.hasOwnProperty("timestamp")&&(typeof l.timestamp=="number"?i.timestamp=t.longs===String?String(l.timestamp):l.timestamp:i.timestamp=t.longs===String?r.Long.prototype.toString.call(l.timestamp):t.longs===Number?new r.LongBits(l.timestamp.low>>>0,l.timestamp.high>>>0).toNumber(!0):l.timestamp),l.atUids&&l.atUids.length){i.atUids=[];for(let n=0;n>>0,l.atUids[n].high>>>0).toNumber(!0):l.atUids[n]}if(l.recverIds&&l.recverIds.length){i.recverIds=[];for(let n=0;n>>0,l.recverIds[n].high>>>0).toNumber(!0):l.recverIds[n]}return l.msgKey!=null&&l.hasOwnProperty("msgKey")&&(typeof l.msgKey=="number"?i.msgKey=t.longs===String?String(l.msgKey):l.msgKey:i.msgKey=t.longs===String?r.Long.prototype.toString.call(l.msgKey):t.longs===Number?new r.LongBits(l.msgKey.low>>>0,l.msgKey.high>>>0).toNumber(!0):l.msgKey),l.msgStatus!=null&&l.hasOwnProperty("msgStatus")&&(i.msgStatus=l.msgStatus),l.sysCancel!=null&&l.hasOwnProperty("sysCancel")&&(i.sysCancel=l.sysCancel),l.notifyCode!=null&&l.hasOwnProperty("notifyCode")&&(i.notifyCode=l.notifyCode),l.msgSource!=null&&l.hasOwnProperty("msgSource")&&(i.msgSource=l.msgSource),l.newFaceVersion!=null&&l.hasOwnProperty("newFaceVersion")&&(i.newFaceVersion=l.newFaceVersion),l.keyHitInfos!=null&&l.hasOwnProperty("keyHitInfos")&&(i.keyHitInfos=u.bilibili.im.type.KeyHitInfos.toObject(l.keyHitInfos,t)),l.accountInfo!=null&&l.hasOwnProperty("accountInfo")&&(i.accountInfo=u.bilibili.im.type.AccountInfo.toObject(l.accountInfo,t)),l.gptMsgContent!=null&&l.hasOwnProperty("gptMsgContent")&&(i.gptMsgContent=u.bilibili.im.type.GptMsgContent.toObject(l.gptMsgContent,t)),l.canalToken!=null&&l.hasOwnProperty("canalToken")&&(i.canalToken=l.canalToken),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.im.type.Msg"},c}(),p.UserLabel=function(){function c(e){if(e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.labelType=l.int32();break}case 2:{n.medal=u.bilibili.im.type.Medal.decode(l,l.uint32());break}case 3:{n.guardianRelation=l.int32();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.im.type.UserLabel)return l;let t=new u.bilibili.im.type.UserLabel;if(l.labelType!=null&&(t.labelType=l.labelType|0),l.medal!=null){if(typeof l.medal!="object")throw TypeError(".bilibili.im.type.UserLabel.medal: object expected");t.medal=u.bilibili.im.type.Medal.fromObject(l.medal)}return l.guardianRelation!=null&&(t.guardianRelation=l.guardianRelation|0),t},c.toObject=function(l,t){t||(t={});let i={};return t.defaults&&(i.labelType=0,i.medal=null,i.guardianRelation=0),l.labelType!=null&&l.hasOwnProperty("labelType")&&(i.labelType=l.labelType),l.medal!=null&&l.hasOwnProperty("medal")&&(i.medal=u.bilibili.im.type.Medal.toObject(l.medal,t)),l.guardianRelation!=null&&l.hasOwnProperty("guardianRelation")&&(i.guardianRelation=l.guardianRelation),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.im.type.UserLabel"},c}(),p.Medal=function(){function c(e){if(e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.uid=l.int64();break}case 2:{n.medalId=l.int32();break}case 3:{n.level=l.int32();break}case 4:{n.medalName=l.string();break}case 5:{n.score=l.int32();break}case 6:{n.intimacy=l.int32();break}case 7:{n.masterStatus=l.int32();break}case 8:{n.isReceive=l.int32();break}case 9:{n.medalColorStart=l.int64();break}case 10:{n.medalColorEnd=l.int64();break}case 11:{n.medalColorBorder=l.int64();break}case 12:{n.medalColorName=l.int64();break}case 13:{n.medalColorLevel=l.int64();break}case 14:{n.guardLevel=l.int64();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.im.type.Medal)return l;let t=new u.bilibili.im.type.Medal;return l.uid!=null&&(r.Long?(t.uid=r.Long.fromValue(l.uid)).unsigned=!1:typeof l.uid=="string"?t.uid=parseInt(l.uid,10):typeof l.uid=="number"?t.uid=l.uid:typeof l.uid=="object"&&(t.uid=new r.LongBits(l.uid.low>>>0,l.uid.high>>>0).toNumber())),l.medalId!=null&&(t.medalId=l.medalId|0),l.level!=null&&(t.level=l.level|0),l.medalName!=null&&(t.medalName=String(l.medalName)),l.score!=null&&(t.score=l.score|0),l.intimacy!=null&&(t.intimacy=l.intimacy|0),l.masterStatus!=null&&(t.masterStatus=l.masterStatus|0),l.isReceive!=null&&(t.isReceive=l.isReceive|0),l.medalColorStart!=null&&(r.Long?(t.medalColorStart=r.Long.fromValue(l.medalColorStart)).unsigned=!1:typeof l.medalColorStart=="string"?t.medalColorStart=parseInt(l.medalColorStart,10):typeof l.medalColorStart=="number"?t.medalColorStart=l.medalColorStart:typeof l.medalColorStart=="object"&&(t.medalColorStart=new r.LongBits(l.medalColorStart.low>>>0,l.medalColorStart.high>>>0).toNumber())),l.medalColorEnd!=null&&(r.Long?(t.medalColorEnd=r.Long.fromValue(l.medalColorEnd)).unsigned=!1:typeof l.medalColorEnd=="string"?t.medalColorEnd=parseInt(l.medalColorEnd,10):typeof l.medalColorEnd=="number"?t.medalColorEnd=l.medalColorEnd:typeof l.medalColorEnd=="object"&&(t.medalColorEnd=new r.LongBits(l.medalColorEnd.low>>>0,l.medalColorEnd.high>>>0).toNumber())),l.medalColorBorder!=null&&(r.Long?(t.medalColorBorder=r.Long.fromValue(l.medalColorBorder)).unsigned=!1:typeof l.medalColorBorder=="string"?t.medalColorBorder=parseInt(l.medalColorBorder,10):typeof l.medalColorBorder=="number"?t.medalColorBorder=l.medalColorBorder:typeof l.medalColorBorder=="object"&&(t.medalColorBorder=new r.LongBits(l.medalColorBorder.low>>>0,l.medalColorBorder.high>>>0).toNumber())),l.medalColorName!=null&&(r.Long?(t.medalColorName=r.Long.fromValue(l.medalColorName)).unsigned=!1:typeof l.medalColorName=="string"?t.medalColorName=parseInt(l.medalColorName,10):typeof l.medalColorName=="number"?t.medalColorName=l.medalColorName:typeof l.medalColorName=="object"&&(t.medalColorName=new r.LongBits(l.medalColorName.low>>>0,l.medalColorName.high>>>0).toNumber())),l.medalColorLevel!=null&&(r.Long?(t.medalColorLevel=r.Long.fromValue(l.medalColorLevel)).unsigned=!1:typeof l.medalColorLevel=="string"?t.medalColorLevel=parseInt(l.medalColorLevel,10):typeof l.medalColorLevel=="number"?t.medalColorLevel=l.medalColorLevel:typeof l.medalColorLevel=="object"&&(t.medalColorLevel=new r.LongBits(l.medalColorLevel.low>>>0,l.medalColorLevel.high>>>0).toNumber())),l.guardLevel!=null&&(r.Long?(t.guardLevel=r.Long.fromValue(l.guardLevel)).unsigned=!1:typeof l.guardLevel=="string"?t.guardLevel=parseInt(l.guardLevel,10):typeof l.guardLevel=="number"?t.guardLevel=l.guardLevel:typeof l.guardLevel=="object"&&(t.guardLevel=new r.LongBits(l.guardLevel.low>>>0,l.guardLevel.high>>>0).toNumber())),t},c.toObject=function(l,t){t||(t={});let i={};if(t.defaults){if(r.Long){let n=new r.Long(0,0,!1);i.uid=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.uid=t.longs===String?"0":0;if(i.medalId=0,i.level=0,i.medalName="",i.score=0,i.intimacy=0,i.masterStatus=0,i.isReceive=0,r.Long){let n=new r.Long(0,0,!1);i.medalColorStart=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.medalColorStart=t.longs===String?"0":0;if(r.Long){let n=new r.Long(0,0,!1);i.medalColorEnd=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.medalColorEnd=t.longs===String?"0":0;if(r.Long){let n=new r.Long(0,0,!1);i.medalColorBorder=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.medalColorBorder=t.longs===String?"0":0;if(r.Long){let n=new r.Long(0,0,!1);i.medalColorName=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.medalColorName=t.longs===String?"0":0;if(r.Long){let n=new r.Long(0,0,!1);i.medalColorLevel=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.medalColorLevel=t.longs===String?"0":0;if(r.Long){let n=new r.Long(0,0,!1);i.guardLevel=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.guardLevel=t.longs===String?"0":0}return l.uid!=null&&l.hasOwnProperty("uid")&&(typeof l.uid=="number"?i.uid=t.longs===String?String(l.uid):l.uid:i.uid=t.longs===String?r.Long.prototype.toString.call(l.uid):t.longs===Number?new r.LongBits(l.uid.low>>>0,l.uid.high>>>0).toNumber():l.uid),l.medalId!=null&&l.hasOwnProperty("medalId")&&(i.medalId=l.medalId),l.level!=null&&l.hasOwnProperty("level")&&(i.level=l.level),l.medalName!=null&&l.hasOwnProperty("medalName")&&(i.medalName=l.medalName),l.score!=null&&l.hasOwnProperty("score")&&(i.score=l.score),l.intimacy!=null&&l.hasOwnProperty("intimacy")&&(i.intimacy=l.intimacy),l.masterStatus!=null&&l.hasOwnProperty("masterStatus")&&(i.masterStatus=l.masterStatus),l.isReceive!=null&&l.hasOwnProperty("isReceive")&&(i.isReceive=l.isReceive),l.medalColorStart!=null&&l.hasOwnProperty("medalColorStart")&&(typeof l.medalColorStart=="number"?i.medalColorStart=t.longs===String?String(l.medalColorStart):l.medalColorStart:i.medalColorStart=t.longs===String?r.Long.prototype.toString.call(l.medalColorStart):t.longs===Number?new r.LongBits(l.medalColorStart.low>>>0,l.medalColorStart.high>>>0).toNumber():l.medalColorStart),l.medalColorEnd!=null&&l.hasOwnProperty("medalColorEnd")&&(typeof l.medalColorEnd=="number"?i.medalColorEnd=t.longs===String?String(l.medalColorEnd):l.medalColorEnd:i.medalColorEnd=t.longs===String?r.Long.prototype.toString.call(l.medalColorEnd):t.longs===Number?new r.LongBits(l.medalColorEnd.low>>>0,l.medalColorEnd.high>>>0).toNumber():l.medalColorEnd),l.medalColorBorder!=null&&l.hasOwnProperty("medalColorBorder")&&(typeof l.medalColorBorder=="number"?i.medalColorBorder=t.longs===String?String(l.medalColorBorder):l.medalColorBorder:i.medalColorBorder=t.longs===String?r.Long.prototype.toString.call(l.medalColorBorder):t.longs===Number?new r.LongBits(l.medalColorBorder.low>>>0,l.medalColorBorder.high>>>0).toNumber():l.medalColorBorder),l.medalColorName!=null&&l.hasOwnProperty("medalColorName")&&(typeof l.medalColorName=="number"?i.medalColorName=t.longs===String?String(l.medalColorName):l.medalColorName:i.medalColorName=t.longs===String?r.Long.prototype.toString.call(l.medalColorName):t.longs===Number?new r.LongBits(l.medalColorName.low>>>0,l.medalColorName.high>>>0).toNumber():l.medalColorName),l.medalColorLevel!=null&&l.hasOwnProperty("medalColorLevel")&&(typeof l.medalColorLevel=="number"?i.medalColorLevel=t.longs===String?String(l.medalColorLevel):l.medalColorLevel:i.medalColorLevel=t.longs===String?r.Long.prototype.toString.call(l.medalColorLevel):t.longs===Number?new r.LongBits(l.medalColorLevel.low>>>0,l.medalColorLevel.high>>>0).toNumber():l.medalColorLevel),l.guardLevel!=null&&l.hasOwnProperty("guardLevel")&&(typeof l.guardLevel=="number"?i.guardLevel=t.longs===String?String(l.guardLevel):l.guardLevel:i.guardLevel=t.longs===String?r.Long.prototype.toString.call(l.guardLevel):t.longs===Number?new r.LongBits(l.guardLevel.low>>>0,l.guardLevel.high>>>0).toNumber():l.guardLevel),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.im.type.Medal"},c}(),p.SessionInfo=function(){function c(e){if(e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.talkerId=l.uint64();break}case 2:{n.sessionType=l.uint32();break}case 3:{n.atSeqno=l.uint64();break}case 4:{n.topTs=l.uint64();break}case 5:{n.groupName=l.string();break}case 6:{n.groupCover=l.string();break}case 7:{n.isFollow=l.uint32();break}case 8:{n.isDnd=l.uint32();break}case 9:{n.ackSeqno=l.uint64();break}case 10:{n.ackTs=l.uint64();break}case 11:{n.sessionTs=l.uint64();break}case 12:{n.unreadCount=l.uint32();break}case 13:{n.lastMsg=u.bilibili.im.type.Msg.decode(l,l.uint32());break}case 14:{n.groupType=l.uint32();break}case 15:{n.canFold=l.uint32();break}case 16:{n.status=l.uint32();break}case 17:{n.maxSeqno=l.uint64();break}case 18:{n.newPushMsg=l.uint32();break}case 19:{n.setting=l.uint32();break}case 20:{n.isGuardian=l.uint32();break}case 21:{n.isIntercept=l.uint32();break}case 22:{n.isTrust=l.uint32();break}case 23:{n.systemMsgType=l.uint32();break}case 24:{n.accountInfo=u.bilibili.im.type.AccountInfo.decode(l,l.uint32());break}case 25:{n.liveStatus=l.int32();break}case 26:{n.bizMsgUnreadCount=l.uint32();break}case 27:{n.userLabel=u.bilibili.im.type.UserLabel.decode(l,l.uint32());break}case 28:{n.isHuahuo=l.uint32();break}case 29:{n.uInfo=u.bilibili.im.type.UInfo.decode(l,l.uint32());break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.im.type.SessionInfo)return l;let t=new u.bilibili.im.type.SessionInfo;if(l.talkerId!=null&&(r.Long?(t.talkerId=r.Long.fromValue(l.talkerId)).unsigned=!0:typeof l.talkerId=="string"?t.talkerId=parseInt(l.talkerId,10):typeof l.talkerId=="number"?t.talkerId=l.talkerId:typeof l.talkerId=="object"&&(t.talkerId=new r.LongBits(l.talkerId.low>>>0,l.talkerId.high>>>0).toNumber(!0))),l.sessionType!=null&&(t.sessionType=l.sessionType>>>0),l.atSeqno!=null&&(r.Long?(t.atSeqno=r.Long.fromValue(l.atSeqno)).unsigned=!0:typeof l.atSeqno=="string"?t.atSeqno=parseInt(l.atSeqno,10):typeof l.atSeqno=="number"?t.atSeqno=l.atSeqno:typeof l.atSeqno=="object"&&(t.atSeqno=new r.LongBits(l.atSeqno.low>>>0,l.atSeqno.high>>>0).toNumber(!0))),l.topTs!=null&&(r.Long?(t.topTs=r.Long.fromValue(l.topTs)).unsigned=!0:typeof l.topTs=="string"?t.topTs=parseInt(l.topTs,10):typeof l.topTs=="number"?t.topTs=l.topTs:typeof l.topTs=="object"&&(t.topTs=new r.LongBits(l.topTs.low>>>0,l.topTs.high>>>0).toNumber(!0))),l.groupName!=null&&(t.groupName=String(l.groupName)),l.groupCover!=null&&(t.groupCover=String(l.groupCover)),l.isFollow!=null&&(t.isFollow=l.isFollow>>>0),l.isDnd!=null&&(t.isDnd=l.isDnd>>>0),l.ackSeqno!=null&&(r.Long?(t.ackSeqno=r.Long.fromValue(l.ackSeqno)).unsigned=!0:typeof l.ackSeqno=="string"?t.ackSeqno=parseInt(l.ackSeqno,10):typeof l.ackSeqno=="number"?t.ackSeqno=l.ackSeqno:typeof l.ackSeqno=="object"&&(t.ackSeqno=new r.LongBits(l.ackSeqno.low>>>0,l.ackSeqno.high>>>0).toNumber(!0))),l.ackTs!=null&&(r.Long?(t.ackTs=r.Long.fromValue(l.ackTs)).unsigned=!0:typeof l.ackTs=="string"?t.ackTs=parseInt(l.ackTs,10):typeof l.ackTs=="number"?t.ackTs=l.ackTs:typeof l.ackTs=="object"&&(t.ackTs=new r.LongBits(l.ackTs.low>>>0,l.ackTs.high>>>0).toNumber(!0))),l.sessionTs!=null&&(r.Long?(t.sessionTs=r.Long.fromValue(l.sessionTs)).unsigned=!0:typeof l.sessionTs=="string"?t.sessionTs=parseInt(l.sessionTs,10):typeof l.sessionTs=="number"?t.sessionTs=l.sessionTs:typeof l.sessionTs=="object"&&(t.sessionTs=new r.LongBits(l.sessionTs.low>>>0,l.sessionTs.high>>>0).toNumber(!0))),l.unreadCount!=null&&(t.unreadCount=l.unreadCount>>>0),l.lastMsg!=null){if(typeof l.lastMsg!="object")throw TypeError(".bilibili.im.type.SessionInfo.lastMsg: object expected");t.lastMsg=u.bilibili.im.type.Msg.fromObject(l.lastMsg)}if(l.groupType!=null&&(t.groupType=l.groupType>>>0),l.canFold!=null&&(t.canFold=l.canFold>>>0),l.status!=null&&(t.status=l.status>>>0),l.maxSeqno!=null&&(r.Long?(t.maxSeqno=r.Long.fromValue(l.maxSeqno)).unsigned=!0:typeof l.maxSeqno=="string"?t.maxSeqno=parseInt(l.maxSeqno,10):typeof l.maxSeqno=="number"?t.maxSeqno=l.maxSeqno:typeof l.maxSeqno=="object"&&(t.maxSeqno=new r.LongBits(l.maxSeqno.low>>>0,l.maxSeqno.high>>>0).toNumber(!0))),l.newPushMsg!=null&&(t.newPushMsg=l.newPushMsg>>>0),l.setting!=null&&(t.setting=l.setting>>>0),l.isGuardian!=null&&(t.isGuardian=l.isGuardian>>>0),l.isIntercept!=null&&(t.isIntercept=l.isIntercept>>>0),l.isTrust!=null&&(t.isTrust=l.isTrust>>>0),l.systemMsgType!=null&&(t.systemMsgType=l.systemMsgType>>>0),l.accountInfo!=null){if(typeof l.accountInfo!="object")throw TypeError(".bilibili.im.type.SessionInfo.accountInfo: object expected");t.accountInfo=u.bilibili.im.type.AccountInfo.fromObject(l.accountInfo)}if(l.liveStatus!=null&&(t.liveStatus=l.liveStatus|0),l.bizMsgUnreadCount!=null&&(t.bizMsgUnreadCount=l.bizMsgUnreadCount>>>0),l.userLabel!=null){if(typeof l.userLabel!="object")throw TypeError(".bilibili.im.type.SessionInfo.userLabel: object expected");t.userLabel=u.bilibili.im.type.UserLabel.fromObject(l.userLabel)}if(l.isHuahuo!=null&&(t.isHuahuo=l.isHuahuo>>>0),l.uInfo!=null){if(typeof l.uInfo!="object")throw TypeError(".bilibili.im.type.SessionInfo.uInfo: object expected");t.uInfo=u.bilibili.im.type.UInfo.fromObject(l.uInfo)}return t},c.toObject=function(l,t){t||(t={});let i={};if(t.defaults){if(r.Long){let n=new r.Long(0,0,!0);i.talkerId=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.talkerId=t.longs===String?"0":0;if(i.sessionType=0,r.Long){let n=new r.Long(0,0,!0);i.atSeqno=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.atSeqno=t.longs===String?"0":0;if(r.Long){let n=new r.Long(0,0,!0);i.topTs=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.topTs=t.longs===String?"0":0;if(i.groupName="",i.groupCover="",i.isFollow=0,i.isDnd=0,r.Long){let n=new r.Long(0,0,!0);i.ackSeqno=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.ackSeqno=t.longs===String?"0":0;if(r.Long){let n=new r.Long(0,0,!0);i.ackTs=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.ackTs=t.longs===String?"0":0;if(r.Long){let n=new r.Long(0,0,!0);i.sessionTs=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.sessionTs=t.longs===String?"0":0;if(i.unreadCount=0,i.lastMsg=null,i.groupType=0,i.canFold=0,i.status=0,r.Long){let n=new r.Long(0,0,!0);i.maxSeqno=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.maxSeqno=t.longs===String?"0":0;i.newPushMsg=0,i.setting=0,i.isGuardian=0,i.isIntercept=0,i.isTrust=0,i.systemMsgType=0,i.accountInfo=null,i.liveStatus=0,i.bizMsgUnreadCount=0,i.userLabel=null,i.isHuahuo=0,i.uInfo=null}return l.talkerId!=null&&l.hasOwnProperty("talkerId")&&(typeof l.talkerId=="number"?i.talkerId=t.longs===String?String(l.talkerId):l.talkerId:i.talkerId=t.longs===String?r.Long.prototype.toString.call(l.talkerId):t.longs===Number?new r.LongBits(l.talkerId.low>>>0,l.talkerId.high>>>0).toNumber(!0):l.talkerId),l.sessionType!=null&&l.hasOwnProperty("sessionType")&&(i.sessionType=l.sessionType),l.atSeqno!=null&&l.hasOwnProperty("atSeqno")&&(typeof l.atSeqno=="number"?i.atSeqno=t.longs===String?String(l.atSeqno):l.atSeqno:i.atSeqno=t.longs===String?r.Long.prototype.toString.call(l.atSeqno):t.longs===Number?new r.LongBits(l.atSeqno.low>>>0,l.atSeqno.high>>>0).toNumber(!0):l.atSeqno),l.topTs!=null&&l.hasOwnProperty("topTs")&&(typeof l.topTs=="number"?i.topTs=t.longs===String?String(l.topTs):l.topTs:i.topTs=t.longs===String?r.Long.prototype.toString.call(l.topTs):t.longs===Number?new r.LongBits(l.topTs.low>>>0,l.topTs.high>>>0).toNumber(!0):l.topTs),l.groupName!=null&&l.hasOwnProperty("groupName")&&(i.groupName=l.groupName),l.groupCover!=null&&l.hasOwnProperty("groupCover")&&(i.groupCover=l.groupCover),l.isFollow!=null&&l.hasOwnProperty("isFollow")&&(i.isFollow=l.isFollow),l.isDnd!=null&&l.hasOwnProperty("isDnd")&&(i.isDnd=l.isDnd),l.ackSeqno!=null&&l.hasOwnProperty("ackSeqno")&&(typeof l.ackSeqno=="number"?i.ackSeqno=t.longs===String?String(l.ackSeqno):l.ackSeqno:i.ackSeqno=t.longs===String?r.Long.prototype.toString.call(l.ackSeqno):t.longs===Number?new r.LongBits(l.ackSeqno.low>>>0,l.ackSeqno.high>>>0).toNumber(!0):l.ackSeqno),l.ackTs!=null&&l.hasOwnProperty("ackTs")&&(typeof l.ackTs=="number"?i.ackTs=t.longs===String?String(l.ackTs):l.ackTs:i.ackTs=t.longs===String?r.Long.prototype.toString.call(l.ackTs):t.longs===Number?new r.LongBits(l.ackTs.low>>>0,l.ackTs.high>>>0).toNumber(!0):l.ackTs),l.sessionTs!=null&&l.hasOwnProperty("sessionTs")&&(typeof l.sessionTs=="number"?i.sessionTs=t.longs===String?String(l.sessionTs):l.sessionTs:i.sessionTs=t.longs===String?r.Long.prototype.toString.call(l.sessionTs):t.longs===Number?new r.LongBits(l.sessionTs.low>>>0,l.sessionTs.high>>>0).toNumber(!0):l.sessionTs),l.unreadCount!=null&&l.hasOwnProperty("unreadCount")&&(i.unreadCount=l.unreadCount),l.lastMsg!=null&&l.hasOwnProperty("lastMsg")&&(i.lastMsg=u.bilibili.im.type.Msg.toObject(l.lastMsg,t)),l.groupType!=null&&l.hasOwnProperty("groupType")&&(i.groupType=l.groupType),l.canFold!=null&&l.hasOwnProperty("canFold")&&(i.canFold=l.canFold),l.status!=null&&l.hasOwnProperty("status")&&(i.status=l.status),l.maxSeqno!=null&&l.hasOwnProperty("maxSeqno")&&(typeof l.maxSeqno=="number"?i.maxSeqno=t.longs===String?String(l.maxSeqno):l.maxSeqno:i.maxSeqno=t.longs===String?r.Long.prototype.toString.call(l.maxSeqno):t.longs===Number?new r.LongBits(l.maxSeqno.low>>>0,l.maxSeqno.high>>>0).toNumber(!0):l.maxSeqno),l.newPushMsg!=null&&l.hasOwnProperty("newPushMsg")&&(i.newPushMsg=l.newPushMsg),l.setting!=null&&l.hasOwnProperty("setting")&&(i.setting=l.setting),l.isGuardian!=null&&l.hasOwnProperty("isGuardian")&&(i.isGuardian=l.isGuardian),l.isIntercept!=null&&l.hasOwnProperty("isIntercept")&&(i.isIntercept=l.isIntercept),l.isTrust!=null&&l.hasOwnProperty("isTrust")&&(i.isTrust=l.isTrust),l.systemMsgType!=null&&l.hasOwnProperty("systemMsgType")&&(i.systemMsgType=l.systemMsgType),l.accountInfo!=null&&l.hasOwnProperty("accountInfo")&&(i.accountInfo=u.bilibili.im.type.AccountInfo.toObject(l.accountInfo,t)),l.liveStatus!=null&&l.hasOwnProperty("liveStatus")&&(i.liveStatus=l.liveStatus),l.bizMsgUnreadCount!=null&&l.hasOwnProperty("bizMsgUnreadCount")&&(i.bizMsgUnreadCount=l.bizMsgUnreadCount),l.userLabel!=null&&l.hasOwnProperty("userLabel")&&(i.userLabel=u.bilibili.im.type.UserLabel.toObject(l.userLabel,t)),l.isHuahuo!=null&&l.hasOwnProperty("isHuahuo")&&(i.isHuahuo=l.isHuahuo),l.uInfo!=null&&l.hasOwnProperty("uInfo")&&(i.uInfo=u.bilibili.im.type.UInfo.toObject(l.uInfo,t)),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.im.type.SessionInfo"},c}(),p.UInfo=function(){function c(e){if(e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.ava=u.bilibili.dagw.component.avatar.v1.AvatarItem.decode(l,l.uint32());break}case 2:{n.card=u.bilibili.im.type.Card.decode(l,l.uint32());break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.im.type.UInfo)return l;let t=new u.bilibili.im.type.UInfo;if(l.ava!=null){if(typeof l.ava!="object")throw TypeError(".bilibili.im.type.UInfo.ava: object expected");t.ava=u.bilibili.dagw.component.avatar.v1.AvatarItem.fromObject(l.ava)}if(l.card!=null){if(typeof l.card!="object")throw TypeError(".bilibili.im.type.UInfo.card: object expected");t.card=u.bilibili.im.type.Card.fromObject(l.card)}return t},c.toObject=function(l,t){t||(t={});let i={};return t.defaults&&(i.ava=null,i.card=null),l.ava!=null&&l.hasOwnProperty("ava")&&(i.ava=u.bilibili.dagw.component.avatar.v1.AvatarItem.toObject(l.ava,t)),l.card!=null&&l.hasOwnProperty("card")&&(i.card=u.bilibili.im.type.Card.toObject(l.card,t)),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.im.type.UInfo"},c}(),p.Card=function(){function c(e){if(e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.mid=l.int64();break}case 2:{n.name=l.string();break}case 3:{n.sex=l.string();break}case 4:{n.face=l.string();break}case 5:{n.sign=l.string();break}case 6:{n.rank=l.int32();break}case 7:{n.level=l.int32();break}case 8:{n.silence=l.int32();break}case 9:{n.vip=u.bilibili.im.type.VipInfo.decode(l,l.uint32());break}case 10:{n.pendant=u.bilibili.im.type.PendantInfo.decode(l,l.uint32());break}case 11:{n.nameplate=u.bilibili.im.type.NameplateInfo.decode(l,l.uint32());break}case 12:{n.official=u.bilibili.im.type.OfficialInfo.decode(l,l.uint32());break}case 13:{n.birthday=l.int64();break}case 20:{n.isFakeAccount=l.int32();break}case 21:{n.isDeleted=l.int32();break}case 22:{n.inRegAudit=l.int32();break}case 23:{n.faceNft=l.int32();break}case 24:{n.faceNftNew=l.int32();break}case 25:{n.isSeniorMember=l.int32();break}case 26:{n.digitalId=l.string();break}case 27:{n.digitalType=l.int64();break}case 28:{n.attestation=u.bilibili.im.type.AttestationDisplay.decode(l,l.uint32());break}case 29:{n.expertInfo=u.bilibili.im.type.ExpertInfo.decode(l,l.uint32());break}case 30:{n.honours=u.bilibili.im.type.UserHonourInfo.decode(l,l.uint32());break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.im.type.Card)return l;let t=new u.bilibili.im.type.Card;if(l.mid!=null&&(r.Long?(t.mid=r.Long.fromValue(l.mid)).unsigned=!1:typeof l.mid=="string"?t.mid=parseInt(l.mid,10):typeof l.mid=="number"?t.mid=l.mid:typeof l.mid=="object"&&(t.mid=new r.LongBits(l.mid.low>>>0,l.mid.high>>>0).toNumber())),l.name!=null&&(t.name=String(l.name)),l.sex!=null&&(t.sex=String(l.sex)),l.face!=null&&(t.face=String(l.face)),l.sign!=null&&(t.sign=String(l.sign)),l.rank!=null&&(t.rank=l.rank|0),l.level!=null&&(t.level=l.level|0),l.silence!=null&&(t.silence=l.silence|0),l.vip!=null){if(typeof l.vip!="object")throw TypeError(".bilibili.im.type.Card.vip: object expected");t.vip=u.bilibili.im.type.VipInfo.fromObject(l.vip)}if(l.pendant!=null){if(typeof l.pendant!="object")throw TypeError(".bilibili.im.type.Card.pendant: object expected");t.pendant=u.bilibili.im.type.PendantInfo.fromObject(l.pendant)}if(l.nameplate!=null){if(typeof l.nameplate!="object")throw TypeError(".bilibili.im.type.Card.nameplate: object expected");t.nameplate=u.bilibili.im.type.NameplateInfo.fromObject(l.nameplate)}if(l.official!=null){if(typeof l.official!="object")throw TypeError(".bilibili.im.type.Card.official: object expected");t.official=u.bilibili.im.type.OfficialInfo.fromObject(l.official)}if(l.birthday!=null&&(r.Long?(t.birthday=r.Long.fromValue(l.birthday)).unsigned=!1:typeof l.birthday=="string"?t.birthday=parseInt(l.birthday,10):typeof l.birthday=="number"?t.birthday=l.birthday:typeof l.birthday=="object"&&(t.birthday=new r.LongBits(l.birthday.low>>>0,l.birthday.high>>>0).toNumber())),l.isFakeAccount!=null&&(t.isFakeAccount=l.isFakeAccount|0),l.isDeleted!=null&&(t.isDeleted=l.isDeleted|0),l.inRegAudit!=null&&(t.inRegAudit=l.inRegAudit|0),l.faceNft!=null&&(t.faceNft=l.faceNft|0),l.faceNftNew!=null&&(t.faceNftNew=l.faceNftNew|0),l.isSeniorMember!=null&&(t.isSeniorMember=l.isSeniorMember|0),l.digitalId!=null&&(t.digitalId=String(l.digitalId)),l.digitalType!=null&&(r.Long?(t.digitalType=r.Long.fromValue(l.digitalType)).unsigned=!1:typeof l.digitalType=="string"?t.digitalType=parseInt(l.digitalType,10):typeof l.digitalType=="number"?t.digitalType=l.digitalType:typeof l.digitalType=="object"&&(t.digitalType=new r.LongBits(l.digitalType.low>>>0,l.digitalType.high>>>0).toNumber())),l.attestation!=null){if(typeof l.attestation!="object")throw TypeError(".bilibili.im.type.Card.attestation: object expected");t.attestation=u.bilibili.im.type.AttestationDisplay.fromObject(l.attestation)}if(l.expertInfo!=null){if(typeof l.expertInfo!="object")throw TypeError(".bilibili.im.type.Card.expertInfo: object expected");t.expertInfo=u.bilibili.im.type.ExpertInfo.fromObject(l.expertInfo)}if(l.honours!=null){if(typeof l.honours!="object")throw TypeError(".bilibili.im.type.Card.honours: object expected");t.honours=u.bilibili.im.type.UserHonourInfo.fromObject(l.honours)}return t},c.toObject=function(l,t){t||(t={});let i={};if(t.defaults){if(r.Long){let n=new r.Long(0,0,!1);i.mid=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.mid=t.longs===String?"0":0;if(i.name="",i.sex="",i.face="",i.sign="",i.rank=0,i.level=0,i.silence=0,i.vip=null,i.pendant=null,i.nameplate=null,i.official=null,r.Long){let n=new r.Long(0,0,!1);i.birthday=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.birthday=t.longs===String?"0":0;if(i.isFakeAccount=0,i.isDeleted=0,i.inRegAudit=0,i.faceNft=0,i.faceNftNew=0,i.isSeniorMember=0,i.digitalId="",r.Long){let n=new r.Long(0,0,!1);i.digitalType=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.digitalType=t.longs===String?"0":0;i.attestation=null,i.expertInfo=null,i.honours=null}return l.mid!=null&&l.hasOwnProperty("mid")&&(typeof l.mid=="number"?i.mid=t.longs===String?String(l.mid):l.mid:i.mid=t.longs===String?r.Long.prototype.toString.call(l.mid):t.longs===Number?new r.LongBits(l.mid.low>>>0,l.mid.high>>>0).toNumber():l.mid),l.name!=null&&l.hasOwnProperty("name")&&(i.name=l.name),l.sex!=null&&l.hasOwnProperty("sex")&&(i.sex=l.sex),l.face!=null&&l.hasOwnProperty("face")&&(i.face=l.face),l.sign!=null&&l.hasOwnProperty("sign")&&(i.sign=l.sign),l.rank!=null&&l.hasOwnProperty("rank")&&(i.rank=l.rank),l.level!=null&&l.hasOwnProperty("level")&&(i.level=l.level),l.silence!=null&&l.hasOwnProperty("silence")&&(i.silence=l.silence),l.vip!=null&&l.hasOwnProperty("vip")&&(i.vip=u.bilibili.im.type.VipInfo.toObject(l.vip,t)),l.pendant!=null&&l.hasOwnProperty("pendant")&&(i.pendant=u.bilibili.im.type.PendantInfo.toObject(l.pendant,t)),l.nameplate!=null&&l.hasOwnProperty("nameplate")&&(i.nameplate=u.bilibili.im.type.NameplateInfo.toObject(l.nameplate,t)),l.official!=null&&l.hasOwnProperty("official")&&(i.official=u.bilibili.im.type.OfficialInfo.toObject(l.official,t)),l.birthday!=null&&l.hasOwnProperty("birthday")&&(typeof l.birthday=="number"?i.birthday=t.longs===String?String(l.birthday):l.birthday:i.birthday=t.longs===String?r.Long.prototype.toString.call(l.birthday):t.longs===Number?new r.LongBits(l.birthday.low>>>0,l.birthday.high>>>0).toNumber():l.birthday),l.isFakeAccount!=null&&l.hasOwnProperty("isFakeAccount")&&(i.isFakeAccount=l.isFakeAccount),l.isDeleted!=null&&l.hasOwnProperty("isDeleted")&&(i.isDeleted=l.isDeleted),l.inRegAudit!=null&&l.hasOwnProperty("inRegAudit")&&(i.inRegAudit=l.inRegAudit),l.faceNft!=null&&l.hasOwnProperty("faceNft")&&(i.faceNft=l.faceNft),l.faceNftNew!=null&&l.hasOwnProperty("faceNftNew")&&(i.faceNftNew=l.faceNftNew),l.isSeniorMember!=null&&l.hasOwnProperty("isSeniorMember")&&(i.isSeniorMember=l.isSeniorMember),l.digitalId!=null&&l.hasOwnProperty("digitalId")&&(i.digitalId=l.digitalId),l.digitalType!=null&&l.hasOwnProperty("digitalType")&&(typeof l.digitalType=="number"?i.digitalType=t.longs===String?String(l.digitalType):l.digitalType:i.digitalType=t.longs===String?r.Long.prototype.toString.call(l.digitalType):t.longs===Number?new r.LongBits(l.digitalType.low>>>0,l.digitalType.high>>>0).toNumber():l.digitalType),l.attestation!=null&&l.hasOwnProperty("attestation")&&(i.attestation=u.bilibili.im.type.AttestationDisplay.toObject(l.attestation,t)),l.expertInfo!=null&&l.hasOwnProperty("expertInfo")&&(i.expertInfo=u.bilibili.im.type.ExpertInfo.toObject(l.expertInfo,t)),l.honours!=null&&l.hasOwnProperty("honours")&&(i.honours=u.bilibili.im.type.UserHonourInfo.toObject(l.honours,t)),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.im.type.Card"},c}(),p.VipInfo=function(){function c(e){if(e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.type=l.int32();break}case 2:{n.status=l.int32();break}case 3:{n.dueDate=l.int64();break}case 4:{n.vipPayType=l.int32();break}case 5:{n.themeType=l.int32();break}case 6:{n.label=u.bilibili.im.type.VipLabel.decode(l,l.uint32());break}case 7:{n.avatarSubscript=l.int32();break}case 8:{n.nicknameColor=l.string();break}case 9:{n.role=l.int64();break}case 10:{n.avatarSubscriptUrl=l.string();break}case 11:{n.tvVipStatus=l.int32();break}case 12:{n.tvVipPayType=l.int32();break}case 13:{n.tvDueDate=l.int64();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.im.type.VipInfo)return l;let t=new u.bilibili.im.type.VipInfo;if(l.type!=null&&(t.type=l.type|0),l.status!=null&&(t.status=l.status|0),l.dueDate!=null&&(r.Long?(t.dueDate=r.Long.fromValue(l.dueDate)).unsigned=!1:typeof l.dueDate=="string"?t.dueDate=parseInt(l.dueDate,10):typeof l.dueDate=="number"?t.dueDate=l.dueDate:typeof l.dueDate=="object"&&(t.dueDate=new r.LongBits(l.dueDate.low>>>0,l.dueDate.high>>>0).toNumber())),l.vipPayType!=null&&(t.vipPayType=l.vipPayType|0),l.themeType!=null&&(t.themeType=l.themeType|0),l.label!=null){if(typeof l.label!="object")throw TypeError(".bilibili.im.type.VipInfo.label: object expected");t.label=u.bilibili.im.type.VipLabel.fromObject(l.label)}return l.avatarSubscript!=null&&(t.avatarSubscript=l.avatarSubscript|0),l.nicknameColor!=null&&(t.nicknameColor=String(l.nicknameColor)),l.role!=null&&(r.Long?(t.role=r.Long.fromValue(l.role)).unsigned=!1:typeof l.role=="string"?t.role=parseInt(l.role,10):typeof l.role=="number"?t.role=l.role:typeof l.role=="object"&&(t.role=new r.LongBits(l.role.low>>>0,l.role.high>>>0).toNumber())),l.avatarSubscriptUrl!=null&&(t.avatarSubscriptUrl=String(l.avatarSubscriptUrl)),l.tvVipStatus!=null&&(t.tvVipStatus=l.tvVipStatus|0),l.tvVipPayType!=null&&(t.tvVipPayType=l.tvVipPayType|0),l.tvDueDate!=null&&(r.Long?(t.tvDueDate=r.Long.fromValue(l.tvDueDate)).unsigned=!1:typeof l.tvDueDate=="string"?t.tvDueDate=parseInt(l.tvDueDate,10):typeof l.tvDueDate=="number"?t.tvDueDate=l.tvDueDate:typeof l.tvDueDate=="object"&&(t.tvDueDate=new r.LongBits(l.tvDueDate.low>>>0,l.tvDueDate.high>>>0).toNumber())),t},c.toObject=function(l,t){t||(t={});let i={};if(t.defaults){if(i.type=0,i.status=0,r.Long){let n=new r.Long(0,0,!1);i.dueDate=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.dueDate=t.longs===String?"0":0;if(i.vipPayType=0,i.themeType=0,i.label=null,i.avatarSubscript=0,i.nicknameColor="",r.Long){let n=new r.Long(0,0,!1);i.role=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.role=t.longs===String?"0":0;if(i.avatarSubscriptUrl="",i.tvVipStatus=0,i.tvVipPayType=0,r.Long){let n=new r.Long(0,0,!1);i.tvDueDate=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.tvDueDate=t.longs===String?"0":0}return l.type!=null&&l.hasOwnProperty("type")&&(i.type=l.type),l.status!=null&&l.hasOwnProperty("status")&&(i.status=l.status),l.dueDate!=null&&l.hasOwnProperty("dueDate")&&(typeof l.dueDate=="number"?i.dueDate=t.longs===String?String(l.dueDate):l.dueDate:i.dueDate=t.longs===String?r.Long.prototype.toString.call(l.dueDate):t.longs===Number?new r.LongBits(l.dueDate.low>>>0,l.dueDate.high>>>0).toNumber():l.dueDate),l.vipPayType!=null&&l.hasOwnProperty("vipPayType")&&(i.vipPayType=l.vipPayType),l.themeType!=null&&l.hasOwnProperty("themeType")&&(i.themeType=l.themeType),l.label!=null&&l.hasOwnProperty("label")&&(i.label=u.bilibili.im.type.VipLabel.toObject(l.label,t)),l.avatarSubscript!=null&&l.hasOwnProperty("avatarSubscript")&&(i.avatarSubscript=l.avatarSubscript),l.nicknameColor!=null&&l.hasOwnProperty("nicknameColor")&&(i.nicknameColor=l.nicknameColor),l.role!=null&&l.hasOwnProperty("role")&&(typeof l.role=="number"?i.role=t.longs===String?String(l.role):l.role:i.role=t.longs===String?r.Long.prototype.toString.call(l.role):t.longs===Number?new r.LongBits(l.role.low>>>0,l.role.high>>>0).toNumber():l.role),l.avatarSubscriptUrl!=null&&l.hasOwnProperty("avatarSubscriptUrl")&&(i.avatarSubscriptUrl=l.avatarSubscriptUrl),l.tvVipStatus!=null&&l.hasOwnProperty("tvVipStatus")&&(i.tvVipStatus=l.tvVipStatus),l.tvVipPayType!=null&&l.hasOwnProperty("tvVipPayType")&&(i.tvVipPayType=l.tvVipPayType),l.tvDueDate!=null&&l.hasOwnProperty("tvDueDate")&&(typeof l.tvDueDate=="number"?i.tvDueDate=t.longs===String?String(l.tvDueDate):l.tvDueDate:i.tvDueDate=t.longs===String?r.Long.prototype.toString.call(l.tvDueDate):t.longs===Number?new r.LongBits(l.tvDueDate.low>>>0,l.tvDueDate.high>>>0).toNumber():l.tvDueDate),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.im.type.VipInfo"},c}(),p.VipLabel=function(){function c(e){if(e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.path=l.string();break}case 3:{n.text=l.string();break}case 4:{n.labelTheme=l.string();break}case 5:{n.textColor=l.string();break}case 6:{n.bgStyle=l.int32();break}case 7:{n.bgColor=l.string();break}case 8:{n.borderColor=l.string();break}case 9:{n.useImgLabel=l.bool();break}case 10:{n.imgLabelUriHans=l.string();break}case 11:{n.imgLabelUriHant=l.string();break}case 12:{n.imgLabelUriHansStatic=l.string();break}case 13:{n.imgLabelUriHantStatic=l.string();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.im.type.VipLabel)return l;let t=new u.bilibili.im.type.VipLabel;return l.path!=null&&(t.path=String(l.path)),l.text!=null&&(t.text=String(l.text)),l.labelTheme!=null&&(t.labelTheme=String(l.labelTheme)),l.textColor!=null&&(t.textColor=String(l.textColor)),l.bgStyle!=null&&(t.bgStyle=l.bgStyle|0),l.bgColor!=null&&(t.bgColor=String(l.bgColor)),l.borderColor!=null&&(t.borderColor=String(l.borderColor)),l.useImgLabel!=null&&(t.useImgLabel=!!l.useImgLabel),l.imgLabelUriHans!=null&&(t.imgLabelUriHans=String(l.imgLabelUriHans)),l.imgLabelUriHant!=null&&(t.imgLabelUriHant=String(l.imgLabelUriHant)),l.imgLabelUriHansStatic!=null&&(t.imgLabelUriHansStatic=String(l.imgLabelUriHansStatic)),l.imgLabelUriHantStatic!=null&&(t.imgLabelUriHantStatic=String(l.imgLabelUriHantStatic)),t},c.toObject=function(l,t){t||(t={});let i={};return t.defaults&&(i.path="",i.text="",i.labelTheme="",i.textColor="",i.bgStyle=0,i.bgColor="",i.borderColor="",i.useImgLabel=!1,i.imgLabelUriHans="",i.imgLabelUriHant="",i.imgLabelUriHansStatic="",i.imgLabelUriHantStatic=""),l.path!=null&&l.hasOwnProperty("path")&&(i.path=l.path),l.text!=null&&l.hasOwnProperty("text")&&(i.text=l.text),l.labelTheme!=null&&l.hasOwnProperty("labelTheme")&&(i.labelTheme=l.labelTheme),l.textColor!=null&&l.hasOwnProperty("textColor")&&(i.textColor=l.textColor),l.bgStyle!=null&&l.hasOwnProperty("bgStyle")&&(i.bgStyle=l.bgStyle),l.bgColor!=null&&l.hasOwnProperty("bgColor")&&(i.bgColor=l.bgColor),l.borderColor!=null&&l.hasOwnProperty("borderColor")&&(i.borderColor=l.borderColor),l.useImgLabel!=null&&l.hasOwnProperty("useImgLabel")&&(i.useImgLabel=l.useImgLabel),l.imgLabelUriHans!=null&&l.hasOwnProperty("imgLabelUriHans")&&(i.imgLabelUriHans=l.imgLabelUriHans),l.imgLabelUriHant!=null&&l.hasOwnProperty("imgLabelUriHant")&&(i.imgLabelUriHant=l.imgLabelUriHant),l.imgLabelUriHansStatic!=null&&l.hasOwnProperty("imgLabelUriHansStatic")&&(i.imgLabelUriHansStatic=l.imgLabelUriHansStatic),l.imgLabelUriHantStatic!=null&&l.hasOwnProperty("imgLabelUriHantStatic")&&(i.imgLabelUriHantStatic=l.imgLabelUriHantStatic),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.im.type.VipLabel"},c}(),p.PendantInfo=function(){function c(e){if(e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.pid=l.int32();break}case 2:{n.name=l.string();break}case 3:{n.image=l.string();break}case 4:{n.expire=l.int64();break}case 5:{n.imageEnhance=l.string();break}case 6:{n.imageEnhanceFrame=l.string();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.im.type.PendantInfo)return l;let t=new u.bilibili.im.type.PendantInfo;return l.pid!=null&&(t.pid=l.pid|0),l.name!=null&&(t.name=String(l.name)),l.image!=null&&(t.image=String(l.image)),l.expire!=null&&(r.Long?(t.expire=r.Long.fromValue(l.expire)).unsigned=!1:typeof l.expire=="string"?t.expire=parseInt(l.expire,10):typeof l.expire=="number"?t.expire=l.expire:typeof l.expire=="object"&&(t.expire=new r.LongBits(l.expire.low>>>0,l.expire.high>>>0).toNumber())),l.imageEnhance!=null&&(t.imageEnhance=String(l.imageEnhance)),l.imageEnhanceFrame!=null&&(t.imageEnhanceFrame=String(l.imageEnhanceFrame)),t},c.toObject=function(l,t){t||(t={});let i={};if(t.defaults){if(i.pid=0,i.name="",i.image="",r.Long){let n=new r.Long(0,0,!1);i.expire=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.expire=t.longs===String?"0":0;i.imageEnhance="",i.imageEnhanceFrame=""}return l.pid!=null&&l.hasOwnProperty("pid")&&(i.pid=l.pid),l.name!=null&&l.hasOwnProperty("name")&&(i.name=l.name),l.image!=null&&l.hasOwnProperty("image")&&(i.image=l.image),l.expire!=null&&l.hasOwnProperty("expire")&&(typeof l.expire=="number"?i.expire=t.longs===String?String(l.expire):l.expire:i.expire=t.longs===String?r.Long.prototype.toString.call(l.expire):t.longs===Number?new r.LongBits(l.expire.low>>>0,l.expire.high>>>0).toNumber():l.expire),l.imageEnhance!=null&&l.hasOwnProperty("imageEnhance")&&(i.imageEnhance=l.imageEnhance),l.imageEnhanceFrame!=null&&l.hasOwnProperty("imageEnhanceFrame")&&(i.imageEnhanceFrame=l.imageEnhanceFrame),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.im.type.PendantInfo"},c}(),p.NameplateInfo=function(){function c(e){if(e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.nid=l.int32();break}case 2:{n.name=l.string();break}case 3:{n.image=l.string();break}case 4:{n.imageSmall=l.string();break}case 5:{n.level=l.string();break}case 6:{n.condition=l.string();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.im.type.NameplateInfo)return l;let t=new u.bilibili.im.type.NameplateInfo;return l.nid!=null&&(t.nid=l.nid|0),l.name!=null&&(t.name=String(l.name)),l.image!=null&&(t.image=String(l.image)),l.imageSmall!=null&&(t.imageSmall=String(l.imageSmall)),l.level!=null&&(t.level=String(l.level)),l.condition!=null&&(t.condition=String(l.condition)),t},c.toObject=function(l,t){t||(t={});let i={};return t.defaults&&(i.nid=0,i.name="",i.image="",i.imageSmall="",i.level="",i.condition=""),l.nid!=null&&l.hasOwnProperty("nid")&&(i.nid=l.nid),l.name!=null&&l.hasOwnProperty("name")&&(i.name=l.name),l.image!=null&&l.hasOwnProperty("image")&&(i.image=l.image),l.imageSmall!=null&&l.hasOwnProperty("imageSmall")&&(i.imageSmall=l.imageSmall),l.level!=null&&l.hasOwnProperty("level")&&(i.level=l.level),l.condition!=null&&l.hasOwnProperty("condition")&&(i.condition=l.condition),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.im.type.NameplateInfo"},c}(),p.OfficialInfo=function(){function c(e){if(e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.role=l.int32();break}case 2:{n.title=l.string();break}case 3:{n.desc=l.string();break}case 4:{n.type=l.int32();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.im.type.OfficialInfo)return l;let t=new u.bilibili.im.type.OfficialInfo;return l.role!=null&&(t.role=l.role|0),l.title!=null&&(t.title=String(l.title)),l.desc!=null&&(t.desc=String(l.desc)),l.type!=null&&(t.type=l.type|0),t},c.toObject=function(l,t){t||(t={});let i={};return t.defaults&&(i.role=0,i.title="",i.desc="",i.type=0),l.role!=null&&l.hasOwnProperty("role")&&(i.role=l.role),l.title!=null&&l.hasOwnProperty("title")&&(i.title=l.title),l.desc!=null&&l.hasOwnProperty("desc")&&(i.desc=l.desc),l.type!=null&&l.hasOwnProperty("type")&&(i.type=l.type),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.im.type.OfficialInfo"},c}(),p.UserHonourInfo=function(){function c(e){if(this.tags=[],e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.mid=l.int64();break}case 2:{n.colour=u.bilibili.im.type.UserHonourStyle.decode(l,l.uint32());break}case 3:{n.tags&&n.tags.length||(n.tags=[]),n.tags.push(u.bilibili.im.type.HonourTag.decode(l,l.uint32()));break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.im.type.UserHonourInfo)return l;let t=new u.bilibili.im.type.UserHonourInfo;if(l.mid!=null&&(r.Long?(t.mid=r.Long.fromValue(l.mid)).unsigned=!1:typeof l.mid=="string"?t.mid=parseInt(l.mid,10):typeof l.mid=="number"?t.mid=l.mid:typeof l.mid=="object"&&(t.mid=new r.LongBits(l.mid.low>>>0,l.mid.high>>>0).toNumber())),l.colour!=null){if(typeof l.colour!="object")throw TypeError(".bilibili.im.type.UserHonourInfo.colour: object expected");t.colour=u.bilibili.im.type.UserHonourStyle.fromObject(l.colour)}if(l.tags){if(!Array.isArray(l.tags))throw TypeError(".bilibili.im.type.UserHonourInfo.tags: array expected");t.tags=[];for(let i=0;i>>0,l.mid.high>>>0).toNumber():l.mid),l.colour!=null&&l.hasOwnProperty("colour")&&(i.colour=u.bilibili.im.type.UserHonourStyle.toObject(l.colour,t)),l.tags&&l.tags.length){i.tags=[];for(let n=0;n>>3){case 1:{n.dark=l.string();break}case 2:{n.normal=l.string();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.im.type.UserHonourStyle)return l;let t=new u.bilibili.im.type.UserHonourStyle;return l.dark!=null&&(t.dark=String(l.dark)),l.normal!=null&&(t.normal=String(l.normal)),t},c.toObject=function(l,t){t||(t={});let i={};return t.defaults&&(i.dark="",i.normal=""),l.dark!=null&&l.hasOwnProperty("dark")&&(i.dark=l.dark),l.normal!=null&&l.hasOwnProperty("normal")&&(i.normal=l.normal),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.im.type.UserHonourStyle"},c}(),p.HonourTag=function(){function c(e){if(this.scene=[],e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.name=l.string();break}case 2:{n.link=l.string();break}case 3:{n.webLink=l.string();break}case 4:{n.type=l.int32();break}case 5:{n.scene&&n.scene.length||(n.scene=[]),n.scene.push(l.string());break}case 6:{n.priorityLevel=l.int32();break}case 7:{n.icon=l.string();break}case 8:{n.year=l.int32();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.im.type.HonourTag)return l;let t=new u.bilibili.im.type.HonourTag;if(l.name!=null&&(t.name=String(l.name)),l.link!=null&&(t.link=String(l.link)),l.webLink!=null&&(t.webLink=String(l.webLink)),l.type!=null&&(t.type=l.type|0),l.scene){if(!Array.isArray(l.scene))throw TypeError(".bilibili.im.type.HonourTag.scene: array expected");t.scene=[];for(let i=0;i>>3){case 1:{n.type=l.int32();break}case 2:{n.commonInfo=u.bilibili.im.type.CommonInfo.decode(l,l.uint32());break}case 3:{n.spliceInfo=u.bilibili.im.type.SpliceInfo.decode(l,l.uint32());break}case 4:{n.icon=l.string();break}case 5:{n.desc=l.string();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.im.type.AttestationDisplay)return l;let t=new u.bilibili.im.type.AttestationDisplay;if(l.type!=null&&(t.type=l.type|0),l.commonInfo!=null){if(typeof l.commonInfo!="object")throw TypeError(".bilibili.im.type.AttestationDisplay.commonInfo: object expected");t.commonInfo=u.bilibili.im.type.CommonInfo.fromObject(l.commonInfo)}if(l.spliceInfo!=null){if(typeof l.spliceInfo!="object")throw TypeError(".bilibili.im.type.AttestationDisplay.spliceInfo: object expected");t.spliceInfo=u.bilibili.im.type.SpliceInfo.fromObject(l.spliceInfo)}return l.icon!=null&&(t.icon=String(l.icon)),l.desc!=null&&(t.desc=String(l.desc)),t},c.toObject=function(l,t){t||(t={});let i={};return t.defaults&&(i.type=0,i.commonInfo=null,i.spliceInfo=null,i.icon="",i.desc=""),l.type!=null&&l.hasOwnProperty("type")&&(i.type=l.type),l.commonInfo!=null&&l.hasOwnProperty("commonInfo")&&(i.commonInfo=u.bilibili.im.type.CommonInfo.toObject(l.commonInfo,t)),l.spliceInfo!=null&&l.hasOwnProperty("spliceInfo")&&(i.spliceInfo=u.bilibili.im.type.SpliceInfo.toObject(l.spliceInfo,t)),l.icon!=null&&l.hasOwnProperty("icon")&&(i.icon=l.icon),l.desc!=null&&l.hasOwnProperty("desc")&&(i.desc=l.desc),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.im.type.AttestationDisplay"},c}(),p.SpliceInfo=function(){function c(e){if(e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.title=l.string();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.im.type.SpliceInfo)return l;let t=new u.bilibili.im.type.SpliceInfo;return l.title!=null&&(t.title=String(l.title)),t},c.toObject=function(l,t){t||(t={});let i={};return t.defaults&&(i.title=""),l.title!=null&&l.hasOwnProperty("title")&&(i.title=l.title),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.im.type.SpliceInfo"},c}(),p.CommonInfo=function(){function c(e){if(e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.title=l.string();break}case 2:{n.prefix=l.string();break}case 3:{n.prefixTitle=l.string();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.im.type.CommonInfo)return l;let t=new u.bilibili.im.type.CommonInfo;return l.title!=null&&(t.title=String(l.title)),l.prefix!=null&&(t.prefix=String(l.prefix)),l.prefixTitle!=null&&(t.prefixTitle=String(l.prefixTitle)),t},c.toObject=function(l,t){t||(t={});let i={};return t.defaults&&(i.title="",i.prefix="",i.prefixTitle=""),l.title!=null&&l.hasOwnProperty("title")&&(i.title=l.title),l.prefix!=null&&l.hasOwnProperty("prefix")&&(i.prefix=l.prefix),l.prefixTitle!=null&&l.hasOwnProperty("prefixTitle")&&(i.prefixTitle=l.prefixTitle),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.im.type.CommonInfo"},c}(),p.ExpertInfo=function(){function c(e){if(e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.title=l.string();break}case 2:{n.state=l.int32();break}case 3:{n.type=l.int32();break}case 4:{n.desc=l.string();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.im.type.ExpertInfo)return l;let t=new u.bilibili.im.type.ExpertInfo;return l.title!=null&&(t.title=String(l.title)),l.state!=null&&(t.state=l.state|0),l.type!=null&&(t.type=l.type|0),l.desc!=null&&(t.desc=String(l.desc)),t},c.toObject=function(l,t){t||(t={});let i={};return t.defaults&&(i.title="",i.state=0,i.type=0,i.desc=""),l.title!=null&&l.hasOwnProperty("title")&&(i.title=l.title),l.state!=null&&l.hasOwnProperty("state")&&(i.state=l.state),l.type!=null&&l.hasOwnProperty("type")&&(i.type=l.type),l.desc!=null&&l.hasOwnProperty("desc")&&(i.desc=l.desc),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.im.type.ExpertInfo"},c}(),p.AccountInfo=function(){function c(e){if(e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.name=l.string();break}case 2:{n.picUrl=l.string();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.im.type.AccountInfo)return l;let t=new u.bilibili.im.type.AccountInfo;return l.name!=null&&(t.name=String(l.name)),l.picUrl!=null&&(t.picUrl=String(l.picUrl)),t},c.toObject=function(l,t){t||(t={});let i={};return t.defaults&&(i.name="",i.picUrl=""),l.name!=null&&l.hasOwnProperty("name")&&(i.name=l.name),l.picUrl!=null&&l.hasOwnProperty("picUrl")&&(i.picUrl=l.picUrl),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.im.type.AccountInfo"},c}(),p.RelationLog=function(){function c(e){if(e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.logType=l.int32();break}case 2:{n.oplogSeqno=l.uint64();break}case 3:{n.friendRelation=u.bilibili.im.type.FriendRelation.decode(l,l.uint32());break}case 4:{n.groupRelation=u.bilibili.im.type.GroupRelation.decode(l,l.uint32());break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.im.type.RelationLog)return l;let t=new u.bilibili.im.type.RelationLog;if(l.logType!=null&&(t.logType=l.logType|0),l.oplogSeqno!=null&&(r.Long?(t.oplogSeqno=r.Long.fromValue(l.oplogSeqno)).unsigned=!0:typeof l.oplogSeqno=="string"?t.oplogSeqno=parseInt(l.oplogSeqno,10):typeof l.oplogSeqno=="number"?t.oplogSeqno=l.oplogSeqno:typeof l.oplogSeqno=="object"&&(t.oplogSeqno=new r.LongBits(l.oplogSeqno.low>>>0,l.oplogSeqno.high>>>0).toNumber(!0))),l.friendRelation!=null){if(typeof l.friendRelation!="object")throw TypeError(".bilibili.im.type.RelationLog.friendRelation: object expected");t.friendRelation=u.bilibili.im.type.FriendRelation.fromObject(l.friendRelation)}if(l.groupRelation!=null){if(typeof l.groupRelation!="object")throw TypeError(".bilibili.im.type.RelationLog.groupRelation: object expected");t.groupRelation=u.bilibili.im.type.GroupRelation.fromObject(l.groupRelation)}return t},c.toObject=function(l,t){t||(t={});let i={};if(t.defaults){if(i.logType=0,r.Long){let n=new r.Long(0,0,!0);i.oplogSeqno=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.oplogSeqno=t.longs===String?"0":0;i.friendRelation=null,i.groupRelation=null}return l.logType!=null&&l.hasOwnProperty("logType")&&(i.logType=l.logType),l.oplogSeqno!=null&&l.hasOwnProperty("oplogSeqno")&&(typeof l.oplogSeqno=="number"?i.oplogSeqno=t.longs===String?String(l.oplogSeqno):l.oplogSeqno:i.oplogSeqno=t.longs===String?r.Long.prototype.toString.call(l.oplogSeqno):t.longs===Number?new r.LongBits(l.oplogSeqno.low>>>0,l.oplogSeqno.high>>>0).toNumber(!0):l.oplogSeqno),l.friendRelation!=null&&l.hasOwnProperty("friendRelation")&&(i.friendRelation=u.bilibili.im.type.FriendRelation.toObject(l.friendRelation,t)),l.groupRelation!=null&&l.hasOwnProperty("groupRelation")&&(i.groupRelation=u.bilibili.im.type.GroupRelation.toObject(l.groupRelation,t)),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.im.type.RelationLog"},c}(),p.FriendRelation=function(){function c(e){if(e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.uid=l.uint64();break}case 2:{n.userName=l.string();break}case 3:{n.face=l.string();break}case 4:{n.vipLevel=l.uint32();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.im.type.FriendRelation)return l;let t=new u.bilibili.im.type.FriendRelation;return l.uid!=null&&(r.Long?(t.uid=r.Long.fromValue(l.uid)).unsigned=!0:typeof l.uid=="string"?t.uid=parseInt(l.uid,10):typeof l.uid=="number"?t.uid=l.uid:typeof l.uid=="object"&&(t.uid=new r.LongBits(l.uid.low>>>0,l.uid.high>>>0).toNumber(!0))),l.userName!=null&&(t.userName=String(l.userName)),l.face!=null&&(t.face=String(l.face)),l.vipLevel!=null&&(t.vipLevel=l.vipLevel>>>0),t},c.toObject=function(l,t){t||(t={});let i={};if(t.defaults){if(r.Long){let n=new r.Long(0,0,!0);i.uid=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.uid=t.longs===String?"0":0;i.userName="",i.face="",i.vipLevel=0}return l.uid!=null&&l.hasOwnProperty("uid")&&(typeof l.uid=="number"?i.uid=t.longs===String?String(l.uid):l.uid:i.uid=t.longs===String?r.Long.prototype.toString.call(l.uid):t.longs===Number?new r.LongBits(l.uid.low>>>0,l.uid.high>>>0).toNumber(!0):l.uid),l.userName!=null&&l.hasOwnProperty("userName")&&(i.userName=l.userName),l.face!=null&&l.hasOwnProperty("face")&&(i.face=l.face),l.vipLevel!=null&&l.hasOwnProperty("vipLevel")&&(i.vipLevel=l.vipLevel),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.im.type.FriendRelation"},c}(),p.ImgInfo=function(){function c(e){if(e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.url=l.string();break}case 2:{n.width=l.int32();break}case 3:{n.height=l.int32();break}case 4:{n.imageType=l.string();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.im.type.ImgInfo)return l;let t=new u.bilibili.im.type.ImgInfo;return l.url!=null&&(t.url=String(l.url)),l.width!=null&&(t.width=l.width|0),l.height!=null&&(t.height=l.height|0),l.imageType!=null&&(t.imageType=String(l.imageType)),t},c.toObject=function(l,t){t||(t={});let i={};return t.defaults&&(i.url="",i.width=0,i.height=0,i.imageType=""),l.url!=null&&l.hasOwnProperty("url")&&(i.url=l.url),l.width!=null&&l.hasOwnProperty("width")&&(i.width=l.width),l.height!=null&&l.hasOwnProperty("height")&&(i.height=l.height),l.imageType!=null&&l.hasOwnProperty("imageType")&&(i.imageType=l.imageType),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.im.type.ImgInfo"},c}(),p.GroupRelation=function(){function c(e){if(e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.groupId=l.uint64();break}case 2:{n.ownerUid=l.uint64();break}case 3:{n.groupType=l.uint32();break}case 4:{n.groupLevel=l.uint32();break}case 5:{n.groupCover=l.string();break}case 6:{n.groupName=l.string();break}case 7:{n.groupNotice=l.string();break}case 8:{n.status=l.int32();break}case 9:{n.memberRole=l.int32();break}case 10:{n.fansMedalName=l.string();break}case 11:{n.roomId=l.uint64();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.im.type.GroupRelation)return l;let t=new u.bilibili.im.type.GroupRelation;return l.groupId!=null&&(r.Long?(t.groupId=r.Long.fromValue(l.groupId)).unsigned=!0:typeof l.groupId=="string"?t.groupId=parseInt(l.groupId,10):typeof l.groupId=="number"?t.groupId=l.groupId:typeof l.groupId=="object"&&(t.groupId=new r.LongBits(l.groupId.low>>>0,l.groupId.high>>>0).toNumber(!0))),l.ownerUid!=null&&(r.Long?(t.ownerUid=r.Long.fromValue(l.ownerUid)).unsigned=!0:typeof l.ownerUid=="string"?t.ownerUid=parseInt(l.ownerUid,10):typeof l.ownerUid=="number"?t.ownerUid=l.ownerUid:typeof l.ownerUid=="object"&&(t.ownerUid=new r.LongBits(l.ownerUid.low>>>0,l.ownerUid.high>>>0).toNumber(!0))),l.groupType!=null&&(t.groupType=l.groupType>>>0),l.groupLevel!=null&&(t.groupLevel=l.groupLevel>>>0),l.groupCover!=null&&(t.groupCover=String(l.groupCover)),l.groupName!=null&&(t.groupName=String(l.groupName)),l.groupNotice!=null&&(t.groupNotice=String(l.groupNotice)),l.status!=null&&(t.status=l.status|0),l.memberRole!=null&&(t.memberRole=l.memberRole|0),l.fansMedalName!=null&&(t.fansMedalName=String(l.fansMedalName)),l.roomId!=null&&(r.Long?(t.roomId=r.Long.fromValue(l.roomId)).unsigned=!0:typeof l.roomId=="string"?t.roomId=parseInt(l.roomId,10):typeof l.roomId=="number"?t.roomId=l.roomId:typeof l.roomId=="object"&&(t.roomId=new r.LongBits(l.roomId.low>>>0,l.roomId.high>>>0).toNumber(!0))),t},c.toObject=function(l,t){t||(t={});let i={};if(t.defaults){if(r.Long){let n=new r.Long(0,0,!0);i.groupId=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.groupId=t.longs===String?"0":0;if(r.Long){let n=new r.Long(0,0,!0);i.ownerUid=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.ownerUid=t.longs===String?"0":0;if(i.groupType=0,i.groupLevel=0,i.groupCover="",i.groupName="",i.groupNotice="",i.status=0,i.memberRole=0,i.fansMedalName="",r.Long){let n=new r.Long(0,0,!0);i.roomId=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.roomId=t.longs===String?"0":0}return l.groupId!=null&&l.hasOwnProperty("groupId")&&(typeof l.groupId=="number"?i.groupId=t.longs===String?String(l.groupId):l.groupId:i.groupId=t.longs===String?r.Long.prototype.toString.call(l.groupId):t.longs===Number?new r.LongBits(l.groupId.low>>>0,l.groupId.high>>>0).toNumber(!0):l.groupId),l.ownerUid!=null&&l.hasOwnProperty("ownerUid")&&(typeof l.ownerUid=="number"?i.ownerUid=t.longs===String?String(l.ownerUid):l.ownerUid:i.ownerUid=t.longs===String?r.Long.prototype.toString.call(l.ownerUid):t.longs===Number?new r.LongBits(l.ownerUid.low>>>0,l.ownerUid.high>>>0).toNumber(!0):l.ownerUid),l.groupType!=null&&l.hasOwnProperty("groupType")&&(i.groupType=l.groupType),l.groupLevel!=null&&l.hasOwnProperty("groupLevel")&&(i.groupLevel=l.groupLevel),l.groupCover!=null&&l.hasOwnProperty("groupCover")&&(i.groupCover=l.groupCover),l.groupName!=null&&l.hasOwnProperty("groupName")&&(i.groupName=l.groupName),l.groupNotice!=null&&l.hasOwnProperty("groupNotice")&&(i.groupNotice=l.groupNotice),l.status!=null&&l.hasOwnProperty("status")&&(i.status=l.status),l.memberRole!=null&&l.hasOwnProperty("memberRole")&&(i.memberRole=l.memberRole),l.fansMedalName!=null&&l.hasOwnProperty("fansMedalName")&&(i.fansMedalName=l.fansMedalName),l.roomId!=null&&l.hasOwnProperty("roomId")&&(typeof l.roomId=="number"?i.roomId=t.longs===String?String(l.roomId):l.roomId:i.roomId=t.longs===String?r.Long.prototype.toString.call(l.roomId):t.longs===Number?new r.LongBits(l.roomId.low>>>0,l.roomId.high>>>0).toNumber(!0):l.roomId),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.im.type.GroupRelation"},c}(),p.RichTextMsgContent=function(){function c(e){if(this.paragraphs=[],e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.paragraphs&&n.paragraphs.length||(n.paragraphs=[]),n.paragraphs.push(u.bilibili.app.dynamic.v2.Paragraph.decode(l,l.uint32()));break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.im.type.RichTextMsgContent)return l;let t=new u.bilibili.im.type.RichTextMsgContent;if(l.paragraphs){if(!Array.isArray(l.paragraphs))throw TypeError(".bilibili.im.type.RichTextMsgContent.paragraphs: array expected");t.paragraphs=[];for(let i=0;i>>3){case 1:{n.content=u.bilibili.im.type.RichTextMsgContent.decode(l,l.uint32());break}case 2:{n.showLike=l.bool();break}case 3:{n.showChange=l.bool();break}case 4:{n.gptSessionId=l.int64();break}case 5:{n.gptBindQuery=l.string();break}case 6:{n.sessionClosedLine=l.string();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.im.type.GptMsgContent)return l;let t=new u.bilibili.im.type.GptMsgContent;if(l.content!=null){if(typeof l.content!="object")throw TypeError(".bilibili.im.type.GptMsgContent.content: object expected");t.content=u.bilibili.im.type.RichTextMsgContent.fromObject(l.content)}return l.showLike!=null&&(t.showLike=!!l.showLike),l.showChange!=null&&(t.showChange=!!l.showChange),l.gptSessionId!=null&&(r.Long?(t.gptSessionId=r.Long.fromValue(l.gptSessionId)).unsigned=!1:typeof l.gptSessionId=="string"?t.gptSessionId=parseInt(l.gptSessionId,10):typeof l.gptSessionId=="number"?t.gptSessionId=l.gptSessionId:typeof l.gptSessionId=="object"&&(t.gptSessionId=new r.LongBits(l.gptSessionId.low>>>0,l.gptSessionId.high>>>0).toNumber())),l.gptBindQuery!=null&&(t.gptBindQuery=String(l.gptBindQuery)),l.sessionClosedLine!=null&&(t.sessionClosedLine=String(l.sessionClosedLine)),t},c.toObject=function(l,t){t||(t={});let i={};if(t.defaults){if(i.content=null,i.showLike=!1,i.showChange=!1,r.Long){let n=new r.Long(0,0,!1);i.gptSessionId=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.gptSessionId=t.longs===String?"0":0;i.gptBindQuery="",i.sessionClosedLine=""}return l.content!=null&&l.hasOwnProperty("content")&&(i.content=u.bilibili.im.type.RichTextMsgContent.toObject(l.content,t)),l.showLike!=null&&l.hasOwnProperty("showLike")&&(i.showLike=l.showLike),l.showChange!=null&&l.hasOwnProperty("showChange")&&(i.showChange=l.showChange),l.gptSessionId!=null&&l.hasOwnProperty("gptSessionId")&&(typeof l.gptSessionId=="number"?i.gptSessionId=t.longs===String?String(l.gptSessionId):l.gptSessionId:i.gptSessionId=t.longs===String?r.Long.prototype.toString.call(l.gptSessionId):t.longs===Number?new r.LongBits(l.gptSessionId.low>>>0,l.gptSessionId.high>>>0).toNumber():l.gptSessionId),l.gptBindQuery!=null&&l.hasOwnProperty("gptBindQuery")&&(i.gptBindQuery=l.gptBindQuery),l.sessionClosedLine!=null&&l.hasOwnProperty("sessionClosedLine")&&(i.sessionClosedLine=l.sessionClosedLine),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.im.type.GptMsgContent"},c}(),p.GptRcmdQuestionBizInfo=function(){function c(e){if(e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.question=l.string();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.im.type.GptRcmdQuestionBizInfo)return l;let t=new u.bilibili.im.type.GptRcmdQuestionBizInfo;return l.question!=null&&(t.question=String(l.question)),t},c.toObject=function(l,t){t||(t={});let i={};return t.defaults&&(i.question=""),l.question!=null&&l.hasOwnProperty("question")&&(i.question=l.question),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.im.type.GptRcmdQuestionBizInfo"},c}(),p.Exp=function(){let c={},e=Object.create(c);return e[c[0]="Invalid"]=0,e[c[1]="New_Ava"]=1,e}(),p}(),d}(),O.intl=function(){let d={};return d.app=function(){let p={};return p.interface_=function(){let c={};return c.v1=function(){let e={};return e.App=function(){function l(t,i,n){b.rpc.Service.call(this,t,i,n)}return(l.prototype=Object.create(b.rpc.Service.prototype)).constructor=l,l.create=function(i,n,o){return new this(i,n,o)},Object.defineProperty(l.prototype.ping=function t(i,n){return this.rpcCall(t,u.google.protobuf.Empty,u.google.protobuf.Empty,i,n)},"name",{value:"Ping"}),Object.defineProperty(l.prototype.searchSquare=function t(i,n){return this.rpcCall(t,u.bilibili.intl.app.interface_.v1.SearchSquareReq,u.bilibili.intl.app.interface_.v1.SearchSquareResp,i,n)},"name",{value:"SearchSquare"}),Object.defineProperty(l.prototype.resourceOpenScreen=function t(i,n){return this.rpcCall(t,u.bilibili.intl.app.interface_.v1.ResourceOpenScreenReq,u.bilibili.intl.app.interface_.v1.ResourceOpenScreenResp,i,n)},"name",{value:"ResourceOpenScreen"}),Object.defineProperty(l.prototype.preloadOpenScreen=function t(i,n){return this.rpcCall(t,u.bilibili.intl.app.interface_.v1.PreloadOpenScreenReq,u.bilibili.intl.app.interface_.v1.PreloadOpenScreenResp,i,n)},"name",{value:"PreloadOpenScreen"}),Object.defineProperty(l.prototype.showOpenScreen=function t(i,n){return this.rpcCall(t,u.bilibili.intl.app.interface_.v1.ShowOpenScreenReq,u.bilibili.intl.app.interface_.v1.ShowOpenScreenResp,i,n)},"name",{value:"ShowOpenScreen"}),Object.defineProperty(l.prototype.viewProgress=function t(i,n){return this.rpcCall(t,u.bilibili.intl.app.interface_.v1.ViewProgressReq,u.bilibili.intl.app.interface_.v1.ViewProgressResp,i,n)},"name",{value:"ViewProgress"}),Object.defineProperty(l.prototype.favoriteList=function t(i,n){return this.rpcCall(t,u.bilibili.intl.app.interface_.v1.FavoriteListReq,u.bilibili.intl.app.interface_.v1.FavoriteListResp,i,n)},"name",{value:"FavoriteList"}),Object.defineProperty(l.prototype.userAction=function t(i,n){return this.rpcCall(t,u.bilibili.intl.app.interface_.v1.UserActionReq,u.google.protobuf.Empty,i,n)},"name",{value:"UserAction"}),Object.defineProperty(l.prototype.userActionLog=function t(i,n){return this.rpcCall(t,u.bilibili.intl.app.interface_.v1.UserActionLogReq,u.bilibili.intl.app.interface_.v1.UserActionLogResp,i,n)},"name",{value:"UserActionLog"}),l}(),e.FavoriteListReq=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.type=i.int64();break}case 2:{a.pn=i.int64();break}case 3:{a.ps=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.intl.app.interface_.v1.FavoriteListReq)return i;let n=new u.bilibili.intl.app.interface_.v1.FavoriteListReq;return i.type!=null&&(r.Long?(n.type=r.Long.fromValue(i.type)).unsigned=!1:typeof i.type=="string"?n.type=parseInt(i.type,10):typeof i.type=="number"?n.type=i.type:typeof i.type=="object"&&(n.type=new r.LongBits(i.type.low>>>0,i.type.high>>>0).toNumber())),i.pn!=null&&(r.Long?(n.pn=r.Long.fromValue(i.pn)).unsigned=!1:typeof i.pn=="string"?n.pn=parseInt(i.pn,10):typeof i.pn=="number"?n.pn=i.pn:typeof i.pn=="object"&&(n.pn=new r.LongBits(i.pn.low>>>0,i.pn.high>>>0).toNumber())),i.ps!=null&&(r.Long?(n.ps=r.Long.fromValue(i.ps)).unsigned=!1:typeof i.ps=="string"?n.ps=parseInt(i.ps,10):typeof i.ps=="number"?n.ps=i.ps:typeof i.ps=="object"&&(n.ps=new r.LongBits(i.ps.low>>>0,i.ps.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.type=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.type=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.pn=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.pn=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.ps=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.ps=n.longs===String?"0":0}return i.type!=null&&i.hasOwnProperty("type")&&(typeof i.type=="number"?o.type=n.longs===String?String(i.type):i.type:o.type=n.longs===String?r.Long.prototype.toString.call(i.type):n.longs===Number?new r.LongBits(i.type.low>>>0,i.type.high>>>0).toNumber():i.type),i.pn!=null&&i.hasOwnProperty("pn")&&(typeof i.pn=="number"?o.pn=n.longs===String?String(i.pn):i.pn:o.pn=n.longs===String?r.Long.prototype.toString.call(i.pn):n.longs===Number?new r.LongBits(i.pn.low>>>0,i.pn.high>>>0).toNumber():i.pn),i.ps!=null&&i.hasOwnProperty("ps")&&(typeof i.ps=="number"?o.ps=n.longs===String?String(i.ps):i.ps:o.ps=n.longs===String?r.Long.prototype.toString.call(i.ps):n.longs===Number?new r.LongBits(i.ps.low>>>0,i.ps.high>>>0).toNumber():i.ps),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.intl.app.interface_.v1.FavoriteListReq"},l}(),e.FavoriteListResp=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.data=u.bilibili.intl.app.interface_.v1.FavoriteListData.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.intl.app.interface_.v1.FavoriteListResp)return i;let n=new u.bilibili.intl.app.interface_.v1.FavoriteListResp;if(i.data!=null){if(typeof i.data!="object")throw TypeError(".bilibili.intl.app.interface_.v1.FavoriteListResp.data: object expected");n.data=u.bilibili.intl.app.interface_.v1.FavoriteListData.fromObject(i.data)}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.data=null),i.data!=null&&i.hasOwnProperty("data")&&(o.data=u.bilibili.intl.app.interface_.v1.FavoriteListData.toObject(i.data,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.intl.app.interface_.v1.FavoriteListResp"},l}(),e.SearchSquareReq=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){default:i.skipType(y&7);break}}return a},l.fromObject=function(i){return i instanceof u.bilibili.intl.app.interface_.v1.SearchSquareReq?i:new u.bilibili.intl.app.interface_.v1.SearchSquareReq},l.toObject=function(){return{}},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.intl.app.interface_.v1.SearchSquareReq"},l}(),e.SearchSquareResp=function(){function l(t){if(this.data=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.data&&a.data.length||(a.data=[]),a.data.push(u.bilibili.intl.app.interface_.v1.SearchSquareData.decode(i,i.uint32()));break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.intl.app.interface_.v1.SearchSquareResp)return i;let n=new u.bilibili.intl.app.interface_.v1.SearchSquareResp;if(i.data){if(!Array.isArray(i.data))throw TypeError(".bilibili.intl.app.interface_.v1.SearchSquareResp.data: array expected");n.data=[];for(let o=0;o>>3){default:i.skipType(y&7);break}}return a},l.fromObject=function(i){return i instanceof u.bilibili.intl.app.interface_.v1.ResourceOpenScreenReq?i:new u.bilibili.intl.app.interface_.v1.ResourceOpenScreenReq},l.toObject=function(){return{}},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.intl.app.interface_.v1.ResourceOpenScreenReq"},l}(),e.ResourceOpenScreenResp=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.data=u.bilibili.intl.app.interface_.v1.ResourceOpenScreenData.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.intl.app.interface_.v1.ResourceOpenScreenResp)return i;let n=new u.bilibili.intl.app.interface_.v1.ResourceOpenScreenResp;if(i.data!=null){if(typeof i.data!="object")throw TypeError(".bilibili.intl.app.interface_.v1.ResourceOpenScreenResp.data: object expected");n.data=u.bilibili.intl.app.interface_.v1.ResourceOpenScreenData.fromObject(i.data)}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.data=null),i.data!=null&&i.hasOwnProperty("data")&&(o.data=u.bilibili.intl.app.interface_.v1.ResourceOpenScreenData.toObject(i.data,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.intl.app.interface_.v1.ResourceOpenScreenResp"},l}(),e.ViewProgressReq=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.Oid=i.int64();break}case 2:{a.OType=i.int32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.intl.app.interface_.v1.ViewProgressReq)return i;let n=new u.bilibili.intl.app.interface_.v1.ViewProgressReq;switch(i.Oid!=null&&(r.Long?(n.Oid=r.Long.fromValue(i.Oid)).unsigned=!1:typeof i.Oid=="string"?n.Oid=parseInt(i.Oid,10):typeof i.Oid=="number"?n.Oid=i.Oid:typeof i.Oid=="object"&&(n.Oid=new r.LongBits(i.Oid.low>>>0,i.Oid.high>>>0).toNumber())),i.OType){default:if(typeof i.OType=="number"){n.OType=i.OType;break}break;case"OidTypeUnknown":case 0:n.OType=0;break;case"OidTypeUGC":case 1:n.OType=1;break;case"OidTypeOGV":case 2:n.OType=2;break}return n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.Oid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.Oid=n.longs===String?"0":0;o.OType=n.enums===String?"OidTypeUnknown":0}return i.Oid!=null&&i.hasOwnProperty("Oid")&&(typeof i.Oid=="number"?o.Oid=n.longs===String?String(i.Oid):i.Oid:o.Oid=n.longs===String?r.Long.prototype.toString.call(i.Oid):n.longs===Number?new r.LongBits(i.Oid.low>>>0,i.Oid.high>>>0).toNumber():i.Oid),i.OType!=null&&i.hasOwnProperty("OType")&&(o.OType=n.enums===String?u.bilibili.intl.app.interface_.v1.OidType[i.OType]===void 0?i.OType:u.bilibili.intl.app.interface_.v1.OidType[i.OType]:i.OType),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.intl.app.interface_.v1.ViewProgressReq"},l}(),e.ViewProgressResp=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.data=u.bilibili.intl.app.interface_.v1.ViewProgressData.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.intl.app.interface_.v1.ViewProgressResp)return i;let n=new u.bilibili.intl.app.interface_.v1.ViewProgressResp;if(i.data!=null){if(typeof i.data!="object")throw TypeError(".bilibili.intl.app.interface_.v1.ViewProgressResp.data: object expected");n.data=u.bilibili.intl.app.interface_.v1.ViewProgressData.fromObject(i.data)}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.data=null),i.data!=null&&i.hasOwnProperty("data")&&(o.data=u.bilibili.intl.app.interface_.v1.ViewProgressData.toObject(i.data,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.intl.app.interface_.v1.ViewProgressResp"},l}(),e.OidType=function(){let l={},t=Object.create(l);return t[l[0]="OidTypeUnknown"]=0,t[l[1]="OidTypeUGC"]=1,t[l[2]="OidTypeOGV"]=2,t}(),e.UserActionReq=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.action=i.int32();break}case 2:{a.pageId=i.string();break}case 3:{a.countryCode=i.string();break}case 4:{a.currencyCode=i.string();break}case 5:{a.market=i.string();break}case 6:{a.timestamp=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.intl.app.interface_.v1.UserActionReq)return i;let n=new u.bilibili.intl.app.interface_.v1.UserActionReq;switch(i.action){default:if(typeof i.action=="number"){n.action=i.action;break}break;case"UserActionUnknown":case 0:n.action=0;break;case"UserActionPagePush":case 1:n.action=1;break;case"UserActionPagePop":case 2:n.action=2;break;case"CancelPremiumOrder":case 3:n.action=3;break;case"UserActionColdStart":case 4:n.action=4;break}return i.pageId!=null&&(n.pageId=String(i.pageId)),i.countryCode!=null&&(n.countryCode=String(i.countryCode)),i.currencyCode!=null&&(n.currencyCode=String(i.currencyCode)),i.market!=null&&(n.market=String(i.market)),i.timestamp!=null&&(r.Long?(n.timestamp=r.Long.fromValue(i.timestamp)).unsigned=!1:typeof i.timestamp=="string"?n.timestamp=parseInt(i.timestamp,10):typeof i.timestamp=="number"?n.timestamp=i.timestamp:typeof i.timestamp=="object"&&(n.timestamp=new r.LongBits(i.timestamp.low>>>0,i.timestamp.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults)if(o.action=n.enums===String?"UserActionUnknown":0,o.pageId="",o.countryCode="",o.currencyCode="",o.market="",r.Long){let a=new r.Long(0,0,!1);o.timestamp=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.timestamp=n.longs===String?"0":0;return i.action!=null&&i.hasOwnProperty("action")&&(o.action=n.enums===String?u.bilibili.intl.app.interface_.v1.UserActionType[i.action]===void 0?i.action:u.bilibili.intl.app.interface_.v1.UserActionType[i.action]:i.action),i.pageId!=null&&i.hasOwnProperty("pageId")&&(o.pageId=i.pageId),i.countryCode!=null&&i.hasOwnProperty("countryCode")&&(o.countryCode=i.countryCode),i.currencyCode!=null&&i.hasOwnProperty("currencyCode")&&(o.currencyCode=i.currencyCode),i.market!=null&&i.hasOwnProperty("market")&&(o.market=i.market),i.timestamp!=null&&i.hasOwnProperty("timestamp")&&(typeof i.timestamp=="number"?o.timestamp=n.longs===String?String(i.timestamp):i.timestamp:o.timestamp=n.longs===String?r.Long.prototype.toString.call(i.timestamp):n.longs===Number?new r.LongBits(i.timestamp.low>>>0,i.timestamp.high>>>0).toNumber():i.timestamp),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.intl.app.interface_.v1.UserActionReq"},l}(),e.UserActionType=function(){let l={},t=Object.create(l);return t[l[0]="UserActionUnknown"]=0,t[l[1]="UserActionPagePush"]=1,t[l[2]="UserActionPagePop"]=2,t[l[3]="CancelPremiumOrder"]=3,t[l[4]="UserActionColdStart"]=4,t}(),e.PreloadOpenScreenReq=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){default:i.skipType(y&7);break}}return a},l.fromObject=function(i){return i instanceof u.bilibili.intl.app.interface_.v1.PreloadOpenScreenReq?i:new u.bilibili.intl.app.interface_.v1.PreloadOpenScreenReq},l.toObject=function(){return{}},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.intl.app.interface_.v1.PreloadOpenScreenReq"},l}(),e.PreloadOpenScreenResp=function(){function l(t){if(this.items=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.items&&a.items.length||(a.items=[]),a.items.push(u.bilibili.intl.app.interface_.v1.OpenScreenItem.decode(i,i.uint32()));break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.intl.app.interface_.v1.PreloadOpenScreenResp)return i;let n=new u.bilibili.intl.app.interface_.v1.PreloadOpenScreenResp;if(i.items){if(!Array.isArray(i.items))throw TypeError(".bilibili.intl.app.interface_.v1.PreloadOpenScreenResp.items: array expected");n.items=[];for(let o=0;o>>3){case 1:{a.id=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.intl.app.interface_.v1.ShowOpenScreenReq)return i;let n=new u.bilibili.intl.app.interface_.v1.ShowOpenScreenReq;return i.id!=null&&(r.Long?(n.id=r.Long.fromValue(i.id)).unsigned=!1:typeof i.id=="string"?n.id=parseInt(i.id,10):typeof i.id=="number"?n.id=i.id:typeof i.id=="object"&&(n.id=new r.LongBits(i.id.low>>>0,i.id.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults)if(r.Long){let a=new r.Long(0,0,!1);o.id=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.id=n.longs===String?"0":0;return i.id!=null&&i.hasOwnProperty("id")&&(typeof i.id=="number"?o.id=n.longs===String?String(i.id):i.id:o.id=n.longs===String?r.Long.prototype.toString.call(i.id):n.longs===Number?new r.LongBits(i.id.low>>>0,i.id.high>>>0).toNumber():i.id),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.intl.app.interface_.v1.ShowOpenScreenReq"},l}(),e.ShowOpenScreenResp=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.itemState=i.int32();break}case 2:{a.item=u.bilibili.intl.app.interface_.v1.OpenScreenItem.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.intl.app.interface_.v1.ShowOpenScreenResp)return i;let n=new u.bilibili.intl.app.interface_.v1.ShowOpenScreenResp;switch(i.itemState){default:if(typeof i.itemState=="number"){n.itemState=i.itemState;break}break;case"STATE_UNKNOWN":case 0:n.itemState=0;break;case"STATE_OFFLINE":case 1:n.itemState=1;break;case"STATE_ONLINE":case 2:n.itemState=2;break;case"STATE_SCHEDULED":case 3:n.itemState=3;break}if(i.item!=null){if(typeof i.item!="object")throw TypeError(".bilibili.intl.app.interface_.v1.ShowOpenScreenResp.item: object expected");n.item=u.bilibili.intl.app.interface_.v1.OpenScreenItem.fromObject(i.item)}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.itemState=n.enums===String?"STATE_UNKNOWN":0,o.item=null),i.itemState!=null&&i.hasOwnProperty("itemState")&&(o.itemState=n.enums===String?u.bilibili.intl.app.interface_.v1.ShowOpenScreenResp.State[i.itemState]===void 0?i.itemState:u.bilibili.intl.app.interface_.v1.ShowOpenScreenResp.State[i.itemState]:i.itemState),i.item!=null&&i.hasOwnProperty("item")&&(o.item=u.bilibili.intl.app.interface_.v1.OpenScreenItem.toObject(i.item,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.intl.app.interface_.v1.ShowOpenScreenResp"},l.State=function(){let t={},i=Object.create(t);return i[t[0]="STATE_UNKNOWN"]=0,i[t[1]="STATE_OFFLINE"]=1,i[t[2]="STATE_ONLINE"]=2,i[t[3]="STATE_SCHEDULED"]=3,i}(),l}(),e.UserActionLogReq=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){default:i.skipType(y&7);break}}return a},l.fromObject=function(i){return i instanceof u.bilibili.intl.app.interface_.v1.UserActionLogReq?i:new u.bilibili.intl.app.interface_.v1.UserActionLogReq},l.toObject=function(){return{}},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.intl.app.interface_.v1.UserActionLogReq"},l}(),e.UserActionLogResp=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.hasDownloadAction=i.bool();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.intl.app.interface_.v1.UserActionLogResp)return i;let n=new u.bilibili.intl.app.interface_.v1.UserActionLogResp;return i.hasDownloadAction!=null&&(n.hasDownloadAction=!!i.hasDownloadAction),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.hasDownloadAction=!1),i.hasDownloadAction!=null&&i.hasOwnProperty("hasDownloadAction")&&(o.hasDownloadAction=i.hasDownloadAction),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.intl.app.interface_.v1.UserActionLogResp"},l}(),e.FavoriteListData=function(){function l(t){if(this.cards=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.cards&&a.cards.length||(a.cards=[]),a.cards.push(u.bilibili.intl.app.interface_.v1.FavoriteListDataCards.decode(i,i.uint32()));break}case 2:{a.hasMore=i.bool();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.intl.app.interface_.v1.FavoriteListData)return i;let n=new u.bilibili.intl.app.interface_.v1.FavoriteListData;if(i.cards){if(!Array.isArray(i.cards))throw TypeError(".bilibili.intl.app.interface_.v1.FavoriteListData.cards: array expected");n.cards=[];for(let o=0;o>>3){case 1:{a.rid=i.int64();break}case 2:{a.title=i.string();break}case 3:{a.cover=i.string();break}case 4:{a.url=i.string();break}case 5:{a.desc=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.intl.app.interface_.v1.FavoriteListDataCards)return i;let n=new u.bilibili.intl.app.interface_.v1.FavoriteListDataCards;return i.rid!=null&&(r.Long?(n.rid=r.Long.fromValue(i.rid)).unsigned=!1:typeof i.rid=="string"?n.rid=parseInt(i.rid,10):typeof i.rid=="number"?n.rid=i.rid:typeof i.rid=="object"&&(n.rid=new r.LongBits(i.rid.low>>>0,i.rid.high>>>0).toNumber())),i.title!=null&&(n.title=String(i.title)),i.cover!=null&&(n.cover=String(i.cover)),i.url!=null&&(n.url=String(i.url)),i.desc!=null&&(n.desc=String(i.desc)),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.rid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.rid=n.longs===String?"0":0;o.title="",o.cover="",o.url="",o.desc=""}return i.rid!=null&&i.hasOwnProperty("rid")&&(typeof i.rid=="number"?o.rid=n.longs===String?String(i.rid):i.rid:o.rid=n.longs===String?r.Long.prototype.toString.call(i.rid):n.longs===Number?new r.LongBits(i.rid.low>>>0,i.rid.high>>>0).toNumber():i.rid),i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.cover!=null&&i.hasOwnProperty("cover")&&(o.cover=i.cover),i.url!=null&&i.hasOwnProperty("url")&&(o.url=i.url),i.desc!=null&&i.hasOwnProperty("desc")&&(o.desc=i.desc),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.intl.app.interface_.v1.FavoriteListDataCards"},l}(),e.ResourceOpenScreenData=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.id=i.int64();break}case 2:{a.name=i.string();break}case 3:{a.cover=i.string();break}case 4:{a.link=i.string();break}case 5:{a.skipText=i.string();break}case 6:{a.showDuration=i.int64();break}case 7:{a.showInterval=i.int64();break}case 8:{a.offTime=i.int64();break}case 9:{a.onTime=i.int64();break}case 10:{a.showAd=i.bool();break}case 11:{a.ad=u.bilibili.intl.app.interface_.v1.OpenScreenAd.decode(i,i.uint32());break}case 12:{a.materialType=i.int64();break}case 13:{a.video=u.bilibili.intl.app.interface_.v1.VideoMedia.decode(i,i.uint32());break}case 14:{a.openScreenTimeout=i.uint64();break}case 15:{a.adShowInterval=i.uint64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.intl.app.interface_.v1.ResourceOpenScreenData)return i;let n=new u.bilibili.intl.app.interface_.v1.ResourceOpenScreenData;if(i.id!=null&&(r.Long?(n.id=r.Long.fromValue(i.id)).unsigned=!1:typeof i.id=="string"?n.id=parseInt(i.id,10):typeof i.id=="number"?n.id=i.id:typeof i.id=="object"&&(n.id=new r.LongBits(i.id.low>>>0,i.id.high>>>0).toNumber())),i.name!=null&&(n.name=String(i.name)),i.cover!=null&&(n.cover=String(i.cover)),i.link!=null&&(n.link=String(i.link)),i.skipText!=null&&(n.skipText=String(i.skipText)),i.showDuration!=null&&(r.Long?(n.showDuration=r.Long.fromValue(i.showDuration)).unsigned=!1:typeof i.showDuration=="string"?n.showDuration=parseInt(i.showDuration,10):typeof i.showDuration=="number"?n.showDuration=i.showDuration:typeof i.showDuration=="object"&&(n.showDuration=new r.LongBits(i.showDuration.low>>>0,i.showDuration.high>>>0).toNumber())),i.showInterval!=null&&(r.Long?(n.showInterval=r.Long.fromValue(i.showInterval)).unsigned=!1:typeof i.showInterval=="string"?n.showInterval=parseInt(i.showInterval,10):typeof i.showInterval=="number"?n.showInterval=i.showInterval:typeof i.showInterval=="object"&&(n.showInterval=new r.LongBits(i.showInterval.low>>>0,i.showInterval.high>>>0).toNumber())),i.offTime!=null&&(r.Long?(n.offTime=r.Long.fromValue(i.offTime)).unsigned=!1:typeof i.offTime=="string"?n.offTime=parseInt(i.offTime,10):typeof i.offTime=="number"?n.offTime=i.offTime:typeof i.offTime=="object"&&(n.offTime=new r.LongBits(i.offTime.low>>>0,i.offTime.high>>>0).toNumber())),i.onTime!=null&&(r.Long?(n.onTime=r.Long.fromValue(i.onTime)).unsigned=!1:typeof i.onTime=="string"?n.onTime=parseInt(i.onTime,10):typeof i.onTime=="number"?n.onTime=i.onTime:typeof i.onTime=="object"&&(n.onTime=new r.LongBits(i.onTime.low>>>0,i.onTime.high>>>0).toNumber())),i.showAd!=null&&(n.showAd=!!i.showAd),i.ad!=null){if(typeof i.ad!="object")throw TypeError(".bilibili.intl.app.interface_.v1.ResourceOpenScreenData.ad: object expected");n.ad=u.bilibili.intl.app.interface_.v1.OpenScreenAd.fromObject(i.ad)}if(i.materialType!=null&&(r.Long?(n.materialType=r.Long.fromValue(i.materialType)).unsigned=!1:typeof i.materialType=="string"?n.materialType=parseInt(i.materialType,10):typeof i.materialType=="number"?n.materialType=i.materialType:typeof i.materialType=="object"&&(n.materialType=new r.LongBits(i.materialType.low>>>0,i.materialType.high>>>0).toNumber())),i.video!=null){if(typeof i.video!="object")throw TypeError(".bilibili.intl.app.interface_.v1.ResourceOpenScreenData.video: object expected");n.video=u.bilibili.intl.app.interface_.v1.VideoMedia.fromObject(i.video)}return i.openScreenTimeout!=null&&(r.Long?(n.openScreenTimeout=r.Long.fromValue(i.openScreenTimeout)).unsigned=!0:typeof i.openScreenTimeout=="string"?n.openScreenTimeout=parseInt(i.openScreenTimeout,10):typeof i.openScreenTimeout=="number"?n.openScreenTimeout=i.openScreenTimeout:typeof i.openScreenTimeout=="object"&&(n.openScreenTimeout=new r.LongBits(i.openScreenTimeout.low>>>0,i.openScreenTimeout.high>>>0).toNumber(!0))),i.adShowInterval!=null&&(r.Long?(n.adShowInterval=r.Long.fromValue(i.adShowInterval)).unsigned=!0:typeof i.adShowInterval=="string"?n.adShowInterval=parseInt(i.adShowInterval,10):typeof i.adShowInterval=="number"?n.adShowInterval=i.adShowInterval:typeof i.adShowInterval=="object"&&(n.adShowInterval=new r.LongBits(i.adShowInterval.low>>>0,i.adShowInterval.high>>>0).toNumber(!0))),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.id=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.id=n.longs===String?"0":0;if(o.name="",o.cover="",o.link="",o.skipText="",r.Long){let a=new r.Long(0,0,!1);o.showDuration=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.showDuration=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.showInterval=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.showInterval=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.offTime=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.offTime=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.onTime=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.onTime=n.longs===String?"0":0;if(o.showAd=!1,o.ad=null,r.Long){let a=new r.Long(0,0,!1);o.materialType=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.materialType=n.longs===String?"0":0;if(o.video=null,r.Long){let a=new r.Long(0,0,!0);o.openScreenTimeout=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.openScreenTimeout=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!0);o.adShowInterval=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.adShowInterval=n.longs===String?"0":0}return i.id!=null&&i.hasOwnProperty("id")&&(typeof i.id=="number"?o.id=n.longs===String?String(i.id):i.id:o.id=n.longs===String?r.Long.prototype.toString.call(i.id):n.longs===Number?new r.LongBits(i.id.low>>>0,i.id.high>>>0).toNumber():i.id),i.name!=null&&i.hasOwnProperty("name")&&(o.name=i.name),i.cover!=null&&i.hasOwnProperty("cover")&&(o.cover=i.cover),i.link!=null&&i.hasOwnProperty("link")&&(o.link=i.link),i.skipText!=null&&i.hasOwnProperty("skipText")&&(o.skipText=i.skipText),i.showDuration!=null&&i.hasOwnProperty("showDuration")&&(typeof i.showDuration=="number"?o.showDuration=n.longs===String?String(i.showDuration):i.showDuration:o.showDuration=n.longs===String?r.Long.prototype.toString.call(i.showDuration):n.longs===Number?new r.LongBits(i.showDuration.low>>>0,i.showDuration.high>>>0).toNumber():i.showDuration),i.showInterval!=null&&i.hasOwnProperty("showInterval")&&(typeof i.showInterval=="number"?o.showInterval=n.longs===String?String(i.showInterval):i.showInterval:o.showInterval=n.longs===String?r.Long.prototype.toString.call(i.showInterval):n.longs===Number?new r.LongBits(i.showInterval.low>>>0,i.showInterval.high>>>0).toNumber():i.showInterval),i.offTime!=null&&i.hasOwnProperty("offTime")&&(typeof i.offTime=="number"?o.offTime=n.longs===String?String(i.offTime):i.offTime:o.offTime=n.longs===String?r.Long.prototype.toString.call(i.offTime):n.longs===Number?new r.LongBits(i.offTime.low>>>0,i.offTime.high>>>0).toNumber():i.offTime),i.onTime!=null&&i.hasOwnProperty("onTime")&&(typeof i.onTime=="number"?o.onTime=n.longs===String?String(i.onTime):i.onTime:o.onTime=n.longs===String?r.Long.prototype.toString.call(i.onTime):n.longs===Number?new r.LongBits(i.onTime.low>>>0,i.onTime.high>>>0).toNumber():i.onTime),i.showAd!=null&&i.hasOwnProperty("showAd")&&(o.showAd=i.showAd),i.ad!=null&&i.hasOwnProperty("ad")&&(o.ad=u.bilibili.intl.app.interface_.v1.OpenScreenAd.toObject(i.ad,n)),i.materialType!=null&&i.hasOwnProperty("materialType")&&(typeof i.materialType=="number"?o.materialType=n.longs===String?String(i.materialType):i.materialType:o.materialType=n.longs===String?r.Long.prototype.toString.call(i.materialType):n.longs===Number?new r.LongBits(i.materialType.low>>>0,i.materialType.high>>>0).toNumber():i.materialType),i.video!=null&&i.hasOwnProperty("video")&&(o.video=u.bilibili.intl.app.interface_.v1.VideoMedia.toObject(i.video,n)),i.openScreenTimeout!=null&&i.hasOwnProperty("openScreenTimeout")&&(typeof i.openScreenTimeout=="number"?o.openScreenTimeout=n.longs===String?String(i.openScreenTimeout):i.openScreenTimeout:o.openScreenTimeout=n.longs===String?r.Long.prototype.toString.call(i.openScreenTimeout):n.longs===Number?new r.LongBits(i.openScreenTimeout.low>>>0,i.openScreenTimeout.high>>>0).toNumber(!0):i.openScreenTimeout),i.adShowInterval!=null&&i.hasOwnProperty("adShowInterval")&&(typeof i.adShowInterval=="number"?o.adShowInterval=n.longs===String?String(i.adShowInterval):i.adShowInterval:o.adShowInterval=n.longs===String?r.Long.prototype.toString.call(i.adShowInterval):n.longs===Number?new r.LongBits(i.adShowInterval.low>>>0,i.adShowInterval.high>>>0).toNumber(!0):i.adShowInterval),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.intl.app.interface_.v1.ResourceOpenScreenData"},l}(),e.OpenScreenItem=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.id=i.int64();break}case 2:{a.resourceId=i.int64();break}case 3:{a.name=i.string();break}case 4:{a.cover=i.string();break}case 5:{a.link=i.string();break}case 6:{a.skipText=i.string();break}case 7:{a.showDuration=i.int64();break}case 8:{a.showInterval=i.int64();break}case 9:{a.onTime=i.int64();break}case 10:{a.offTime=i.int64();break}case 11:{a.materialType=i.int64();break}case 12:{a.video=u.bilibili.intl.app.interface_.v1.VideoMedia.decode(i,i.uint32());break}case 13:{a.itemMd5=i.string();break}case 98:{a.enableRealtimeReport=i.bool();break}case 99:{a.realtimeReportPayload=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.intl.app.interface_.v1.OpenScreenItem)return i;let n=new u.bilibili.intl.app.interface_.v1.OpenScreenItem;if(i.id!=null&&(r.Long?(n.id=r.Long.fromValue(i.id)).unsigned=!1:typeof i.id=="string"?n.id=parseInt(i.id,10):typeof i.id=="number"?n.id=i.id:typeof i.id=="object"&&(n.id=new r.LongBits(i.id.low>>>0,i.id.high>>>0).toNumber())),i.resourceId!=null&&(r.Long?(n.resourceId=r.Long.fromValue(i.resourceId)).unsigned=!1:typeof i.resourceId=="string"?n.resourceId=parseInt(i.resourceId,10):typeof i.resourceId=="number"?n.resourceId=i.resourceId:typeof i.resourceId=="object"&&(n.resourceId=new r.LongBits(i.resourceId.low>>>0,i.resourceId.high>>>0).toNumber())),i.name!=null&&(n.name=String(i.name)),i.cover!=null&&(n.cover=String(i.cover)),i.link!=null&&(n.link=String(i.link)),i.skipText!=null&&(n.skipText=String(i.skipText)),i.showDuration!=null&&(r.Long?(n.showDuration=r.Long.fromValue(i.showDuration)).unsigned=!1:typeof i.showDuration=="string"?n.showDuration=parseInt(i.showDuration,10):typeof i.showDuration=="number"?n.showDuration=i.showDuration:typeof i.showDuration=="object"&&(n.showDuration=new r.LongBits(i.showDuration.low>>>0,i.showDuration.high>>>0).toNumber())),i.showInterval!=null&&(r.Long?(n.showInterval=r.Long.fromValue(i.showInterval)).unsigned=!1:typeof i.showInterval=="string"?n.showInterval=parseInt(i.showInterval,10):typeof i.showInterval=="number"?n.showInterval=i.showInterval:typeof i.showInterval=="object"&&(n.showInterval=new r.LongBits(i.showInterval.low>>>0,i.showInterval.high>>>0).toNumber())),i.onTime!=null&&(r.Long?(n.onTime=r.Long.fromValue(i.onTime)).unsigned=!1:typeof i.onTime=="string"?n.onTime=parseInt(i.onTime,10):typeof i.onTime=="number"?n.onTime=i.onTime:typeof i.onTime=="object"&&(n.onTime=new r.LongBits(i.onTime.low>>>0,i.onTime.high>>>0).toNumber())),i.offTime!=null&&(r.Long?(n.offTime=r.Long.fromValue(i.offTime)).unsigned=!1:typeof i.offTime=="string"?n.offTime=parseInt(i.offTime,10):typeof i.offTime=="number"?n.offTime=i.offTime:typeof i.offTime=="object"&&(n.offTime=new r.LongBits(i.offTime.low>>>0,i.offTime.high>>>0).toNumber())),i.materialType!=null&&(r.Long?(n.materialType=r.Long.fromValue(i.materialType)).unsigned=!1:typeof i.materialType=="string"?n.materialType=parseInt(i.materialType,10):typeof i.materialType=="number"?n.materialType=i.materialType:typeof i.materialType=="object"&&(n.materialType=new r.LongBits(i.materialType.low>>>0,i.materialType.high>>>0).toNumber())),i.video!=null){if(typeof i.video!="object")throw TypeError(".bilibili.intl.app.interface_.v1.OpenScreenItem.video: object expected");n.video=u.bilibili.intl.app.interface_.v1.VideoMedia.fromObject(i.video)}return i.itemMd5!=null&&(n.itemMd5=String(i.itemMd5)),i.enableRealtimeReport!=null&&(n.enableRealtimeReport=!!i.enableRealtimeReport),i.realtimeReportPayload!=null&&(n.realtimeReportPayload=String(i.realtimeReportPayload)),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.id=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.id=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.resourceId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.resourceId=n.longs===String?"0":0;if(o.name="",o.cover="",o.link="",o.skipText="",r.Long){let a=new r.Long(0,0,!1);o.showDuration=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.showDuration=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.showInterval=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.showInterval=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.onTime=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.onTime=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.offTime=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.offTime=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.materialType=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.materialType=n.longs===String?"0":0;o.video=null,o.itemMd5="",o.enableRealtimeReport=!1,o.realtimeReportPayload=""}return i.id!=null&&i.hasOwnProperty("id")&&(typeof i.id=="number"?o.id=n.longs===String?String(i.id):i.id:o.id=n.longs===String?r.Long.prototype.toString.call(i.id):n.longs===Number?new r.LongBits(i.id.low>>>0,i.id.high>>>0).toNumber():i.id),i.resourceId!=null&&i.hasOwnProperty("resourceId")&&(typeof i.resourceId=="number"?o.resourceId=n.longs===String?String(i.resourceId):i.resourceId:o.resourceId=n.longs===String?r.Long.prototype.toString.call(i.resourceId):n.longs===Number?new r.LongBits(i.resourceId.low>>>0,i.resourceId.high>>>0).toNumber():i.resourceId),i.name!=null&&i.hasOwnProperty("name")&&(o.name=i.name),i.cover!=null&&i.hasOwnProperty("cover")&&(o.cover=i.cover),i.link!=null&&i.hasOwnProperty("link")&&(o.link=i.link),i.skipText!=null&&i.hasOwnProperty("skipText")&&(o.skipText=i.skipText),i.showDuration!=null&&i.hasOwnProperty("showDuration")&&(typeof i.showDuration=="number"?o.showDuration=n.longs===String?String(i.showDuration):i.showDuration:o.showDuration=n.longs===String?r.Long.prototype.toString.call(i.showDuration):n.longs===Number?new r.LongBits(i.showDuration.low>>>0,i.showDuration.high>>>0).toNumber():i.showDuration),i.showInterval!=null&&i.hasOwnProperty("showInterval")&&(typeof i.showInterval=="number"?o.showInterval=n.longs===String?String(i.showInterval):i.showInterval:o.showInterval=n.longs===String?r.Long.prototype.toString.call(i.showInterval):n.longs===Number?new r.LongBits(i.showInterval.low>>>0,i.showInterval.high>>>0).toNumber():i.showInterval),i.onTime!=null&&i.hasOwnProperty("onTime")&&(typeof i.onTime=="number"?o.onTime=n.longs===String?String(i.onTime):i.onTime:o.onTime=n.longs===String?r.Long.prototype.toString.call(i.onTime):n.longs===Number?new r.LongBits(i.onTime.low>>>0,i.onTime.high>>>0).toNumber():i.onTime),i.offTime!=null&&i.hasOwnProperty("offTime")&&(typeof i.offTime=="number"?o.offTime=n.longs===String?String(i.offTime):i.offTime:o.offTime=n.longs===String?r.Long.prototype.toString.call(i.offTime):n.longs===Number?new r.LongBits(i.offTime.low>>>0,i.offTime.high>>>0).toNumber():i.offTime),i.materialType!=null&&i.hasOwnProperty("materialType")&&(typeof i.materialType=="number"?o.materialType=n.longs===String?String(i.materialType):i.materialType:o.materialType=n.longs===String?r.Long.prototype.toString.call(i.materialType):n.longs===Number?new r.LongBits(i.materialType.low>>>0,i.materialType.high>>>0).toNumber():i.materialType),i.video!=null&&i.hasOwnProperty("video")&&(o.video=u.bilibili.intl.app.interface_.v1.VideoMedia.toObject(i.video,n)),i.itemMd5!=null&&i.hasOwnProperty("itemMd5")&&(o.itemMd5=i.itemMd5),i.enableRealtimeReport!=null&&i.hasOwnProperty("enableRealtimeReport")&&(o.enableRealtimeReport=i.enableRealtimeReport),i.realtimeReportPayload!=null&&i.hasOwnProperty("realtimeReportPayload")&&(o.realtimeReportPayload=i.realtimeReportPayload),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.intl.app.interface_.v1.OpenScreenItem"},l}(),e.OpenScreenAd=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.showAd=i.bool();break}case 2:{a.preloadRecommendAd=i.bool();break}case 3:{a.recommendAdId=i.string();break}case 4:{a.openScreenAdId=i.string();break}case 5:{a.rollAdId=i.string();break}case 6:{a.feedAdId=i.string();break}case 7:{a.gamingAdId=i.string();break}case 8:{a.openScreen=u.bilibili.intl.app.interface_.v1.OpenScreenAdConfig.decode(i,i.uint32());break}case 9:{a.searchResultBannerAdId=i.string();break}case 10:{a.gamAdId=i.string();break}case 11:{a.mediaRectangleAdId=i.string();break}case 12:{a.downloadRewardedVideoAdId=i.string();break}case 13:{a.pauseVideoAd=u.bilibili.intl.app.interface_.v1.PauseVideoAdConfig.decode(i,i.uint32());break}case 14:{a.switchVideoInterstitialAd=u.bilibili.intl.app.interface_.v1.SwitchVideoInterstitialAd.decode(i,i.uint32());break}case 15:{a.inStreamAd=u.bilibili.intl.app.interface_.v1.InStreamAdConfig.decode(i,i.uint32());break}case 16:{a.downloadPageBannerAdId=i.string();break}case 17:{a.mineBannerAdId=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.intl.app.interface_.v1.OpenScreenAd)return i;let n=new u.bilibili.intl.app.interface_.v1.OpenScreenAd;if(i.showAd!=null&&(n.showAd=!!i.showAd),i.preloadRecommendAd!=null&&(n.preloadRecommendAd=!!i.preloadRecommendAd),i.recommendAdId!=null&&(n.recommendAdId=String(i.recommendAdId)),i.openScreenAdId!=null&&(n.openScreenAdId=String(i.openScreenAdId)),i.rollAdId!=null&&(n.rollAdId=String(i.rollAdId)),i.feedAdId!=null&&(n.feedAdId=String(i.feedAdId)),i.gamingAdId!=null&&(n.gamingAdId=String(i.gamingAdId)),i.openScreen!=null){if(typeof i.openScreen!="object")throw TypeError(".bilibili.intl.app.interface_.v1.OpenScreenAd.openScreen: object expected");n.openScreen=u.bilibili.intl.app.interface_.v1.OpenScreenAdConfig.fromObject(i.openScreen)}if(i.searchResultBannerAdId!=null&&(n.searchResultBannerAdId=String(i.searchResultBannerAdId)),i.gamAdId!=null&&(n.gamAdId=String(i.gamAdId)),i.mediaRectangleAdId!=null&&(n.mediaRectangleAdId=String(i.mediaRectangleAdId)),i.downloadRewardedVideoAdId!=null&&(n.downloadRewardedVideoAdId=String(i.downloadRewardedVideoAdId)),i.pauseVideoAd!=null){if(typeof i.pauseVideoAd!="object")throw TypeError(".bilibili.intl.app.interface_.v1.OpenScreenAd.pauseVideoAd: object expected");n.pauseVideoAd=u.bilibili.intl.app.interface_.v1.PauseVideoAdConfig.fromObject(i.pauseVideoAd)}if(i.switchVideoInterstitialAd!=null){if(typeof i.switchVideoInterstitialAd!="object")throw TypeError(".bilibili.intl.app.interface_.v1.OpenScreenAd.switchVideoInterstitialAd: object expected");n.switchVideoInterstitialAd=u.bilibili.intl.app.interface_.v1.SwitchVideoInterstitialAd.fromObject(i.switchVideoInterstitialAd)}if(i.inStreamAd!=null){if(typeof i.inStreamAd!="object")throw TypeError(".bilibili.intl.app.interface_.v1.OpenScreenAd.inStreamAd: object expected");n.inStreamAd=u.bilibili.intl.app.interface_.v1.InStreamAdConfig.fromObject(i.inStreamAd)}return i.downloadPageBannerAdId!=null&&(n.downloadPageBannerAdId=String(i.downloadPageBannerAdId)),i.mineBannerAdId!=null&&(n.mineBannerAdId=String(i.mineBannerAdId)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.showAd=!1,o.preloadRecommendAd=!1,o.recommendAdId="",o.openScreenAdId="",o.rollAdId="",o.feedAdId="",o.gamingAdId="",o.openScreen=null,o.searchResultBannerAdId="",o.gamAdId="",o.mediaRectangleAdId="",o.downloadRewardedVideoAdId="",o.pauseVideoAd=null,o.switchVideoInterstitialAd=null,o.inStreamAd=null,o.downloadPageBannerAdId="",o.mineBannerAdId=""),i.showAd!=null&&i.hasOwnProperty("showAd")&&(o.showAd=i.showAd),i.preloadRecommendAd!=null&&i.hasOwnProperty("preloadRecommendAd")&&(o.preloadRecommendAd=i.preloadRecommendAd),i.recommendAdId!=null&&i.hasOwnProperty("recommendAdId")&&(o.recommendAdId=i.recommendAdId),i.openScreenAdId!=null&&i.hasOwnProperty("openScreenAdId")&&(o.openScreenAdId=i.openScreenAdId),i.rollAdId!=null&&i.hasOwnProperty("rollAdId")&&(o.rollAdId=i.rollAdId),i.feedAdId!=null&&i.hasOwnProperty("feedAdId")&&(o.feedAdId=i.feedAdId),i.gamingAdId!=null&&i.hasOwnProperty("gamingAdId")&&(o.gamingAdId=i.gamingAdId),i.openScreen!=null&&i.hasOwnProperty("openScreen")&&(o.openScreen=u.bilibili.intl.app.interface_.v1.OpenScreenAdConfig.toObject(i.openScreen,n)),i.searchResultBannerAdId!=null&&i.hasOwnProperty("searchResultBannerAdId")&&(o.searchResultBannerAdId=i.searchResultBannerAdId),i.gamAdId!=null&&i.hasOwnProperty("gamAdId")&&(o.gamAdId=i.gamAdId),i.mediaRectangleAdId!=null&&i.hasOwnProperty("mediaRectangleAdId")&&(o.mediaRectangleAdId=i.mediaRectangleAdId),i.downloadRewardedVideoAdId!=null&&i.hasOwnProperty("downloadRewardedVideoAdId")&&(o.downloadRewardedVideoAdId=i.downloadRewardedVideoAdId),i.pauseVideoAd!=null&&i.hasOwnProperty("pauseVideoAd")&&(o.pauseVideoAd=u.bilibili.intl.app.interface_.v1.PauseVideoAdConfig.toObject(i.pauseVideoAd,n)),i.switchVideoInterstitialAd!=null&&i.hasOwnProperty("switchVideoInterstitialAd")&&(o.switchVideoInterstitialAd=u.bilibili.intl.app.interface_.v1.SwitchVideoInterstitialAd.toObject(i.switchVideoInterstitialAd,n)),i.inStreamAd!=null&&i.hasOwnProperty("inStreamAd")&&(o.inStreamAd=u.bilibili.intl.app.interface_.v1.InStreamAdConfig.toObject(i.inStreamAd,n)),i.downloadPageBannerAdId!=null&&i.hasOwnProperty("downloadPageBannerAdId")&&(o.downloadPageBannerAdId=i.downloadPageBannerAdId),i.mineBannerAdId!=null&&i.hasOwnProperty("mineBannerAdId")&&(o.mineBannerAdId=i.mineBannerAdId),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.intl.app.interface_.v1.OpenScreenAd"},l}(),e.OpenScreenAdConfig=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.hotAdId=i.string();break}case 2:{a.coldAdId=i.string();break}case 3:{a.showInterval=i.uint64();break}case 4:{a.loadTime=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.intl.app.interface_.v1.OpenScreenAdConfig)return i;let n=new u.bilibili.intl.app.interface_.v1.OpenScreenAdConfig;return i.hotAdId!=null&&(n.hotAdId=String(i.hotAdId)),i.coldAdId!=null&&(n.coldAdId=String(i.coldAdId)),i.showInterval!=null&&(r.Long?(n.showInterval=r.Long.fromValue(i.showInterval)).unsigned=!0:typeof i.showInterval=="string"?n.showInterval=parseInt(i.showInterval,10):typeof i.showInterval=="number"?n.showInterval=i.showInterval:typeof i.showInterval=="object"&&(n.showInterval=new r.LongBits(i.showInterval.low>>>0,i.showInterval.high>>>0).toNumber(!0))),i.loadTime!=null&&(r.Long?(n.loadTime=r.Long.fromValue(i.loadTime)).unsigned=!1:typeof i.loadTime=="string"?n.loadTime=parseInt(i.loadTime,10):typeof i.loadTime=="number"?n.loadTime=i.loadTime:typeof i.loadTime=="object"&&(n.loadTime=new r.LongBits(i.loadTime.low>>>0,i.loadTime.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(o.hotAdId="",o.coldAdId="",r.Long){let a=new r.Long(0,0,!0);o.showInterval=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.showInterval=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.loadTime=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.loadTime=n.longs===String?"0":0}return i.hotAdId!=null&&i.hasOwnProperty("hotAdId")&&(o.hotAdId=i.hotAdId),i.coldAdId!=null&&i.hasOwnProperty("coldAdId")&&(o.coldAdId=i.coldAdId),i.showInterval!=null&&i.hasOwnProperty("showInterval")&&(typeof i.showInterval=="number"?o.showInterval=n.longs===String?String(i.showInterval):i.showInterval:o.showInterval=n.longs===String?r.Long.prototype.toString.call(i.showInterval):n.longs===Number?new r.LongBits(i.showInterval.low>>>0,i.showInterval.high>>>0).toNumber(!0):i.showInterval),i.loadTime!=null&&i.hasOwnProperty("loadTime")&&(typeof i.loadTime=="number"?o.loadTime=n.longs===String?String(i.loadTime):i.loadTime:o.loadTime=n.longs===String?r.Long.prototype.toString.call(i.loadTime):n.longs===Number?new r.LongBits(i.loadTime.low>>>0,i.loadTime.high>>>0).toNumber():i.loadTime),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.intl.app.interface_.v1.OpenScreenAdConfig"},l}(),e.PauseVideoAdConfig=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.halfScreenAdId=i.string();break}case 2:{a.fullScreenAdId=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.intl.app.interface_.v1.PauseVideoAdConfig)return i;let n=new u.bilibili.intl.app.interface_.v1.PauseVideoAdConfig;return i.halfScreenAdId!=null&&(n.halfScreenAdId=String(i.halfScreenAdId)),i.fullScreenAdId!=null&&(n.fullScreenAdId=String(i.fullScreenAdId)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.halfScreenAdId="",o.fullScreenAdId=""),i.halfScreenAdId!=null&&i.hasOwnProperty("halfScreenAdId")&&(o.halfScreenAdId=i.halfScreenAdId),i.fullScreenAdId!=null&&i.hasOwnProperty("fullScreenAdId")&&(o.fullScreenAdId=i.fullScreenAdId),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.intl.app.interface_.v1.PauseVideoAdConfig"},l}(),e.SwitchVideoInterstitialAd=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.adUnitId=i.string();break}case 2:{a.adInitDelayTime=i.uint64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.intl.app.interface_.v1.SwitchVideoInterstitialAd)return i;let n=new u.bilibili.intl.app.interface_.v1.SwitchVideoInterstitialAd;return i.adUnitId!=null&&(n.adUnitId=String(i.adUnitId)),i.adInitDelayTime!=null&&(r.Long?(n.adInitDelayTime=r.Long.fromValue(i.adInitDelayTime)).unsigned=!0:typeof i.adInitDelayTime=="string"?n.adInitDelayTime=parseInt(i.adInitDelayTime,10):typeof i.adInitDelayTime=="number"?n.adInitDelayTime=i.adInitDelayTime:typeof i.adInitDelayTime=="object"&&(n.adInitDelayTime=new r.LongBits(i.adInitDelayTime.low>>>0,i.adInitDelayTime.high>>>0).toNumber(!0))),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults)if(o.adUnitId="",r.Long){let a=new r.Long(0,0,!0);o.adInitDelayTime=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.adInitDelayTime=n.longs===String?"0":0;return i.adUnitId!=null&&i.hasOwnProperty("adUnitId")&&(o.adUnitId=i.adUnitId),i.adInitDelayTime!=null&&i.hasOwnProperty("adInitDelayTime")&&(typeof i.adInitDelayTime=="number"?o.adInitDelayTime=n.longs===String?String(i.adInitDelayTime):i.adInitDelayTime:o.adInitDelayTime=n.longs===String?r.Long.prototype.toString.call(i.adInitDelayTime):n.longs===Number?new r.LongBits(i.adInitDelayTime.low>>>0,i.adInitDelayTime.high>>>0).toNumber(!0):i.adInitDelayTime),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.intl.app.interface_.v1.SwitchVideoInterstitialAd"},l}(),e.InStreamAdConfig=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.adUnitId=i.string();break}case 2:{a.adTagUrlParams=u.bilibili.intl.app.interface_.v1.InStreamAdConfig.AdTagURLParams.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.intl.app.interface_.v1.InStreamAdConfig)return i;let n=new u.bilibili.intl.app.interface_.v1.InStreamAdConfig;if(i.adUnitId!=null&&(n.adUnitId=String(i.adUnitId)),i.adTagUrlParams!=null){if(typeof i.adTagUrlParams!="object")throw TypeError(".bilibili.intl.app.interface_.v1.InStreamAdConfig.adTagUrlParams: object expected");n.adTagUrlParams=u.bilibili.intl.app.interface_.v1.InStreamAdConfig.AdTagURLParams.fromObject(i.adTagUrlParams)}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.adUnitId="",o.adTagUrlParams=null),i.adUnitId!=null&&i.hasOwnProperty("adUnitId")&&(o.adUnitId=i.adUnitId),i.adTagUrlParams!=null&&i.hasOwnProperty("adTagUrlParams")&&(o.adTagUrlParams=u.bilibili.intl.app.interface_.v1.InStreamAdConfig.AdTagURLParams.toObject(i.adTagUrlParams,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.intl.app.interface_.v1.InStreamAdConfig"},l.AdTagURLParams=function(){function t(i){if(i)for(let n=Object.keys(i),o=0;o>>3){case 1:{y.descriptionUrl=n.string();break}case 2:{y.custParams=n.string();break}default:n.skipType(s&7);break}}return y},t.fromObject=function(n){if(n instanceof u.bilibili.intl.app.interface_.v1.InStreamAdConfig.AdTagURLParams)return n;let o=new u.bilibili.intl.app.interface_.v1.InStreamAdConfig.AdTagURLParams;return n.descriptionUrl!=null&&(o.descriptionUrl=String(n.descriptionUrl)),n.custParams!=null&&(o.custParams=String(n.custParams)),o},t.toObject=function(n,o){o||(o={});let a={};return o.defaults&&(a.descriptionUrl="",a.custParams=""),n.descriptionUrl!=null&&n.hasOwnProperty("descriptionUrl")&&(a.descriptionUrl=n.descriptionUrl),n.custParams!=null&&n.hasOwnProperty("custParams")&&(a.custParams=n.custParams),a},t.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},t.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/bilibili.intl.app.interface_.v1.InStreamAdConfig.AdTagURLParams"},t}(),l}(),e.VideoMedia=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.playUrl=i.string();break}case 2:{a.width=i.int64();break}case 3:{a.height=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.intl.app.interface_.v1.VideoMedia)return i;let n=new u.bilibili.intl.app.interface_.v1.VideoMedia;return i.playUrl!=null&&(n.playUrl=String(i.playUrl)),i.width!=null&&(r.Long?(n.width=r.Long.fromValue(i.width)).unsigned=!1:typeof i.width=="string"?n.width=parseInt(i.width,10):typeof i.width=="number"?n.width=i.width:typeof i.width=="object"&&(n.width=new r.LongBits(i.width.low>>>0,i.width.high>>>0).toNumber())),i.height!=null&&(r.Long?(n.height=r.Long.fromValue(i.height)).unsigned=!1:typeof i.height=="string"?n.height=parseInt(i.height,10):typeof i.height=="number"?n.height=i.height:typeof i.height=="object"&&(n.height=new r.LongBits(i.height.low>>>0,i.height.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(o.playUrl="",r.Long){let a=new r.Long(0,0,!1);o.width=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.width=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.height=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.height=n.longs===String?"0":0}return i.playUrl!=null&&i.hasOwnProperty("playUrl")&&(o.playUrl=i.playUrl),i.width!=null&&i.hasOwnProperty("width")&&(typeof i.width=="number"?o.width=n.longs===String?String(i.width):i.width:o.width=n.longs===String?r.Long.prototype.toString.call(i.width):n.longs===Number?new r.LongBits(i.width.low>>>0,i.width.high>>>0).toNumber():i.width),i.height!=null&&i.hasOwnProperty("height")&&(typeof i.height=="number"?o.height=n.longs===String?String(i.height):i.height:o.height=n.longs===String?r.Long.prototype.toString.call(i.height):n.longs===Number?new r.LongBits(i.height.low>>>0,i.height.high>>>0).toNumber():i.height),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.intl.app.interface_.v1.VideoMedia"},l}(),e.SearchSquareData=function(){function l(t){if(this.items=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.items&&a.items.length||(a.items=[]),a.items.push(u.bilibili.intl.app.interface_.v1.SearchSquareDataItem.decode(i,i.uint32()));break}case 2:{a.trackId=i.string();break}case 3:{a.type=i.string();break}case 4:{a.title=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.intl.app.interface_.v1.SearchSquareData)return i;let n=new u.bilibili.intl.app.interface_.v1.SearchSquareData;if(i.items){if(!Array.isArray(i.items))throw TypeError(".bilibili.intl.app.interface_.v1.SearchSquareData.items: array expected");n.items=[];for(let o=0;o>>3){case 1:{a.seasonId=i.int64();break}case 2:{a.rid=i.int64();break}case 3:{a.id=i.int64();break}case 4:{a.title=i.string();break}case 5:{a.desc=i.string();break}case 6:{a.subDesc=i.string();break}case 7:{a.uri=i.string();break}case 8:{a.image=i.string();break}case 9:{a.style=i.int32();break}case 10:{a.trend=i.int32();break}case 11:{a.rank=i.int32();break}case 12:{a.color=i.string();break}case 13:{a.italic=i.bool();break}case 14:{a.author=u.bilibili.intl.app.interface_.v1.SearchSquareAuthor.decode(i,i.uint32());break}case 15:{a.views=i.string();break}case 16:{a.isFavorite=i.bool();break}case 17:{a.ogvExtra=u.bilibili.intl.app.interface_.v1.SearchSquareOgvExtra.decode(i,i.uint32());break}case 18:{a.resourceId=i.int64();break}case 19:{a.taskId=i.int64();break}case 20:{a.sid=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.intl.app.interface_.v1.SearchSquareDataItem)return i;let n=new u.bilibili.intl.app.interface_.v1.SearchSquareDataItem;if(i.seasonId!=null&&(r.Long?(n.seasonId=r.Long.fromValue(i.seasonId)).unsigned=!1:typeof i.seasonId=="string"?n.seasonId=parseInt(i.seasonId,10):typeof i.seasonId=="number"?n.seasonId=i.seasonId:typeof i.seasonId=="object"&&(n.seasonId=new r.LongBits(i.seasonId.low>>>0,i.seasonId.high>>>0).toNumber())),i.rid!=null&&(r.Long?(n.rid=r.Long.fromValue(i.rid)).unsigned=!1:typeof i.rid=="string"?n.rid=parseInt(i.rid,10):typeof i.rid=="number"?n.rid=i.rid:typeof i.rid=="object"&&(n.rid=new r.LongBits(i.rid.low>>>0,i.rid.high>>>0).toNumber())),i.id!=null&&(r.Long?(n.id=r.Long.fromValue(i.id)).unsigned=!1:typeof i.id=="string"?n.id=parseInt(i.id,10):typeof i.id=="number"?n.id=i.id:typeof i.id=="object"&&(n.id=new r.LongBits(i.id.low>>>0,i.id.high>>>0).toNumber())),i.title!=null&&(n.title=String(i.title)),i.desc!=null&&(n.desc=String(i.desc)),i.subDesc!=null&&(n.subDesc=String(i.subDesc)),i.uri!=null&&(n.uri=String(i.uri)),i.image!=null&&(n.image=String(i.image)),i.style!=null&&(n.style=i.style|0),i.trend!=null&&(n.trend=i.trend|0),i.rank!=null&&(n.rank=i.rank|0),i.color!=null&&(n.color=String(i.color)),i.italic!=null&&(n.italic=!!i.italic),i.author!=null){if(typeof i.author!="object")throw TypeError(".bilibili.intl.app.interface_.v1.SearchSquareDataItem.author: object expected");n.author=u.bilibili.intl.app.interface_.v1.SearchSquareAuthor.fromObject(i.author)}if(i.views!=null&&(n.views=String(i.views)),i.isFavorite!=null&&(n.isFavorite=!!i.isFavorite),i.ogvExtra!=null){if(typeof i.ogvExtra!="object")throw TypeError(".bilibili.intl.app.interface_.v1.SearchSquareDataItem.ogvExtra: object expected");n.ogvExtra=u.bilibili.intl.app.interface_.v1.SearchSquareOgvExtra.fromObject(i.ogvExtra)}return i.resourceId!=null&&(r.Long?(n.resourceId=r.Long.fromValue(i.resourceId)).unsigned=!1:typeof i.resourceId=="string"?n.resourceId=parseInt(i.resourceId,10):typeof i.resourceId=="number"?n.resourceId=i.resourceId:typeof i.resourceId=="object"&&(n.resourceId=new r.LongBits(i.resourceId.low>>>0,i.resourceId.high>>>0).toNumber())),i.taskId!=null&&(r.Long?(n.taskId=r.Long.fromValue(i.taskId)).unsigned=!1:typeof i.taskId=="string"?n.taskId=parseInt(i.taskId,10):typeof i.taskId=="number"?n.taskId=i.taskId:typeof i.taskId=="object"&&(n.taskId=new r.LongBits(i.taskId.low>>>0,i.taskId.high>>>0).toNumber())),i.sid!=null&&(r.Long?(n.sid=r.Long.fromValue(i.sid)).unsigned=!1:typeof i.sid=="string"?n.sid=parseInt(i.sid,10):typeof i.sid=="number"?n.sid=i.sid:typeof i.sid=="object"&&(n.sid=new r.LongBits(i.sid.low>>>0,i.sid.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.seasonId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.seasonId=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.rid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.rid=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.id=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.id=n.longs===String?"0":0;if(o.title="",o.desc="",o.subDesc="",o.uri="",o.image="",o.style=0,o.trend=0,o.rank=0,o.color="",o.italic=!1,o.author=null,o.views="",o.isFavorite=!1,o.ogvExtra=null,r.Long){let a=new r.Long(0,0,!1);o.resourceId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.resourceId=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.taskId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.taskId=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.sid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.sid=n.longs===String?"0":0}return i.seasonId!=null&&i.hasOwnProperty("seasonId")&&(typeof i.seasonId=="number"?o.seasonId=n.longs===String?String(i.seasonId):i.seasonId:o.seasonId=n.longs===String?r.Long.prototype.toString.call(i.seasonId):n.longs===Number?new r.LongBits(i.seasonId.low>>>0,i.seasonId.high>>>0).toNumber():i.seasonId),i.rid!=null&&i.hasOwnProperty("rid")&&(typeof i.rid=="number"?o.rid=n.longs===String?String(i.rid):i.rid:o.rid=n.longs===String?r.Long.prototype.toString.call(i.rid):n.longs===Number?new r.LongBits(i.rid.low>>>0,i.rid.high>>>0).toNumber():i.rid),i.id!=null&&i.hasOwnProperty("id")&&(typeof i.id=="number"?o.id=n.longs===String?String(i.id):i.id:o.id=n.longs===String?r.Long.prototype.toString.call(i.id):n.longs===Number?new r.LongBits(i.id.low>>>0,i.id.high>>>0).toNumber():i.id),i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.desc!=null&&i.hasOwnProperty("desc")&&(o.desc=i.desc),i.subDesc!=null&&i.hasOwnProperty("subDesc")&&(o.subDesc=i.subDesc),i.uri!=null&&i.hasOwnProperty("uri")&&(o.uri=i.uri),i.image!=null&&i.hasOwnProperty("image")&&(o.image=i.image),i.style!=null&&i.hasOwnProperty("style")&&(o.style=i.style),i.trend!=null&&i.hasOwnProperty("trend")&&(o.trend=i.trend),i.rank!=null&&i.hasOwnProperty("rank")&&(o.rank=i.rank),i.color!=null&&i.hasOwnProperty("color")&&(o.color=i.color),i.italic!=null&&i.hasOwnProperty("italic")&&(o.italic=i.italic),i.author!=null&&i.hasOwnProperty("author")&&(o.author=u.bilibili.intl.app.interface_.v1.SearchSquareAuthor.toObject(i.author,n)),i.views!=null&&i.hasOwnProperty("views")&&(o.views=i.views),i.isFavorite!=null&&i.hasOwnProperty("isFavorite")&&(o.isFavorite=i.isFavorite),i.ogvExtra!=null&&i.hasOwnProperty("ogvExtra")&&(o.ogvExtra=u.bilibili.intl.app.interface_.v1.SearchSquareOgvExtra.toObject(i.ogvExtra,n)),i.resourceId!=null&&i.hasOwnProperty("resourceId")&&(typeof i.resourceId=="number"?o.resourceId=n.longs===String?String(i.resourceId):i.resourceId:o.resourceId=n.longs===String?r.Long.prototype.toString.call(i.resourceId):n.longs===Number?new r.LongBits(i.resourceId.low>>>0,i.resourceId.high>>>0).toNumber():i.resourceId),i.taskId!=null&&i.hasOwnProperty("taskId")&&(typeof i.taskId=="number"?o.taskId=n.longs===String?String(i.taskId):i.taskId:o.taskId=n.longs===String?r.Long.prototype.toString.call(i.taskId):n.longs===Number?new r.LongBits(i.taskId.low>>>0,i.taskId.high>>>0).toNumber():i.taskId),i.sid!=null&&i.hasOwnProperty("sid")&&(typeof i.sid=="number"?o.sid=n.longs===String?String(i.sid):i.sid:o.sid=n.longs===String?r.Long.prototype.toString.call(i.sid):n.longs===Number?new r.LongBits(i.sid.low>>>0,i.sid.high>>>0).toNumber():i.sid),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.intl.app.interface_.v1.SearchSquareDataItem"},l}(),e.SearchSquareAuthor=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.name=i.string();break}case 2:{a.face=i.string();break}case 3:{a.mid=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.intl.app.interface_.v1.SearchSquareAuthor)return i;let n=new u.bilibili.intl.app.interface_.v1.SearchSquareAuthor;return i.name!=null&&(n.name=String(i.name)),i.face!=null&&(n.face=String(i.face)),i.mid!=null&&(r.Long?(n.mid=r.Long.fromValue(i.mid)).unsigned=!1:typeof i.mid=="string"?n.mid=parseInt(i.mid,10):typeof i.mid=="number"?n.mid=i.mid:typeof i.mid=="object"&&(n.mid=new r.LongBits(i.mid.low>>>0,i.mid.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults)if(o.name="",o.face="",r.Long){let a=new r.Long(0,0,!1);o.mid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.mid=n.longs===String?"0":0;return i.name!=null&&i.hasOwnProperty("name")&&(o.name=i.name),i.face!=null&&i.hasOwnProperty("face")&&(o.face=i.face),i.mid!=null&&i.hasOwnProperty("mid")&&(typeof i.mid=="number"?o.mid=n.longs===String?String(i.mid):i.mid:o.mid=n.longs===String?r.Long.prototype.toString.call(i.mid):n.longs===Number?new r.LongBits(i.mid.low>>>0,i.mid.high>>>0).toNumber():i.mid),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.intl.app.interface_.v1.SearchSquareAuthor"},l}(),e.SearchSquareOgvExtra=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.tagText=i.string();break}case 2:{a.tagBgColor=i.string();break}case 3:{a.updateText=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.intl.app.interface_.v1.SearchSquareOgvExtra)return i;let n=new u.bilibili.intl.app.interface_.v1.SearchSquareOgvExtra;return i.tagText!=null&&(n.tagText=String(i.tagText)),i.tagBgColor!=null&&(n.tagBgColor=String(i.tagBgColor)),i.updateText!=null&&(n.updateText=String(i.updateText)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.tagText="",o.tagBgColor="",o.updateText=""),i.tagText!=null&&i.hasOwnProperty("tagText")&&(o.tagText=i.tagText),i.tagBgColor!=null&&i.hasOwnProperty("tagBgColor")&&(o.tagBgColor=i.tagBgColor),i.updateText!=null&&i.hasOwnProperty("updateText")&&(o.updateText=i.updateText),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.intl.app.interface_.v1.SearchSquareOgvExtra"},l}(),e.ViewProgressData=function(){function l(t){if(this.commandDms=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.commandDms&&a.commandDms.length||(a.commandDms=[]),a.commandDms.push(u.bilibili.intl.app.interface_.v1.ViewCommandDm.decode(i,i.uint32()));break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.intl.app.interface_.v1.ViewProgressData)return i;let n=new u.bilibili.intl.app.interface_.v1.ViewProgressData;if(i.commandDms){if(!Array.isArray(i.commandDms))throw TypeError(".bilibili.intl.app.interface_.v1.ViewProgressData.commandDms: array expected");n.commandDms=[];for(let o=0;o>>3){case 1:{a.id=i.int64();break}case 2:{a.command=i.string();break}case 3:{a.progress=i.int64();break}case 4:{a.extra=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.intl.app.interface_.v1.ViewCommandDm)return i;let n=new u.bilibili.intl.app.interface_.v1.ViewCommandDm;return i.id!=null&&(r.Long?(n.id=r.Long.fromValue(i.id)).unsigned=!1:typeof i.id=="string"?n.id=parseInt(i.id,10):typeof i.id=="number"?n.id=i.id:typeof i.id=="object"&&(n.id=new r.LongBits(i.id.low>>>0,i.id.high>>>0).toNumber())),i.command!=null&&(n.command=String(i.command)),i.progress!=null&&(r.Long?(n.progress=r.Long.fromValue(i.progress)).unsigned=!1:typeof i.progress=="string"?n.progress=parseInt(i.progress,10):typeof i.progress=="number"?n.progress=i.progress:typeof i.progress=="object"&&(n.progress=new r.LongBits(i.progress.low>>>0,i.progress.high>>>0).toNumber())),i.extra!=null&&(n.extra=String(i.extra)),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.id=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.id=n.longs===String?"0":0;if(o.command="",r.Long){let a=new r.Long(0,0,!1);o.progress=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.progress=n.longs===String?"0":0;o.extra=""}return i.id!=null&&i.hasOwnProperty("id")&&(typeof i.id=="number"?o.id=n.longs===String?String(i.id):i.id:o.id=n.longs===String?r.Long.prototype.toString.call(i.id):n.longs===Number?new r.LongBits(i.id.low>>>0,i.id.high>>>0).toNumber():i.id),i.command!=null&&i.hasOwnProperty("command")&&(o.command=i.command),i.progress!=null&&i.hasOwnProperty("progress")&&(typeof i.progress=="number"?o.progress=n.longs===String?String(i.progress):i.progress:o.progress=n.longs===String?r.Long.prototype.toString.call(i.progress):n.longs===Number?new r.LongBits(i.progress.low>>>0,i.progress.high>>>0).toNumber():i.progress),i.extra!=null&&i.hasOwnProperty("extra")&&(o.extra=i.extra),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.intl.app.interface_.v1.ViewCommandDm"},l}(),e}(),c.v2=function(){let e={};return e.AdMaterialType=function(){let l={},t=Object.create(l);return t[l[0]="MATERIAL_TYPE_UNSPECIFIED"]=0,t[l[1]="MATERIAL_TYPE_IMAGE"]=1,t[l[2]="MATERIAL_TYPE_VIDEO"]=2,t}(),e.AdVideoMedia=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.playUrl=i.string();break}case 2:{a.width=i.int64();break}case 3:{a.height=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.intl.app.interface_.v2.AdVideoMedia)return i;let n=new u.bilibili.intl.app.interface_.v2.AdVideoMedia;return i.playUrl!=null&&(n.playUrl=String(i.playUrl)),i.width!=null&&(r.Long?(n.width=r.Long.fromValue(i.width)).unsigned=!1:typeof i.width=="string"?n.width=parseInt(i.width,10):typeof i.width=="number"?n.width=i.width:typeof i.width=="object"&&(n.width=new r.LongBits(i.width.low>>>0,i.width.high>>>0).toNumber())),i.height!=null&&(r.Long?(n.height=r.Long.fromValue(i.height)).unsigned=!1:typeof i.height=="string"?n.height=parseInt(i.height,10):typeof i.height=="number"?n.height=i.height:typeof i.height=="object"&&(n.height=new r.LongBits(i.height.low>>>0,i.height.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(o.playUrl="",r.Long){let a=new r.Long(0,0,!1);o.width=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.width=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.height=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.height=n.longs===String?"0":0}return i.playUrl!=null&&i.hasOwnProperty("playUrl")&&(o.playUrl=i.playUrl),i.width!=null&&i.hasOwnProperty("width")&&(typeof i.width=="number"?o.width=n.longs===String?String(i.width):i.width:o.width=n.longs===String?r.Long.prototype.toString.call(i.width):n.longs===Number?new r.LongBits(i.width.low>>>0,i.width.high>>>0).toNumber():i.width),i.height!=null&&i.hasOwnProperty("height")&&(typeof i.height=="number"?o.height=n.longs===String?String(i.height):i.height:o.height=n.longs===String?r.Long.prototype.toString.call(i.height):n.longs===Number?new r.LongBits(i.height.low>>>0,i.height.high>>>0).toNumber():i.height),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.intl.app.interface_.v2.AdVideoMedia"},l}(),e.SplashType=function(){let l={},t=Object.create(l);return t[l[0]="SPLASH_TYPE_UNSPECIFIED"]=0,t[l[1]="SPLASH_TYPE_HOT"]=1,t[l[2]="SPLASH_TYPE_COLD"]=2,t}(),e.SplashAd=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.itemId=i.int64();break}case 2:{a.orderId=i.int64();break}case 3:{a.name=i.string();break}case 4:{a.cover=i.string();break}case 5:{a.link=i.string();break}case 6:{a.skipText=i.string();break}case 7:{a.showDuration=i.int64();break}case 8:{a.showInterval=i.int64();break}case 9:{a.onTime=i.int64();break}case 10:{a.offTime=i.int64();break}case 11:{a.materialType=i.int32();break}case 12:{a.video=u.bilibili.intl.app.interface_.v2.AdVideoMedia.decode(i,i.uint32());break}case 13:{a.itemMd5=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.intl.app.interface_.v2.SplashAd)return i;let n=new u.bilibili.intl.app.interface_.v2.SplashAd;switch(i.itemId!=null&&(r.Long?(n.itemId=r.Long.fromValue(i.itemId)).unsigned=!1:typeof i.itemId=="string"?n.itemId=parseInt(i.itemId,10):typeof i.itemId=="number"?n.itemId=i.itemId:typeof i.itemId=="object"&&(n.itemId=new r.LongBits(i.itemId.low>>>0,i.itemId.high>>>0).toNumber())),i.orderId!=null&&(r.Long?(n.orderId=r.Long.fromValue(i.orderId)).unsigned=!1:typeof i.orderId=="string"?n.orderId=parseInt(i.orderId,10):typeof i.orderId=="number"?n.orderId=i.orderId:typeof i.orderId=="object"&&(n.orderId=new r.LongBits(i.orderId.low>>>0,i.orderId.high>>>0).toNumber())),i.name!=null&&(n.name=String(i.name)),i.cover!=null&&(n.cover=String(i.cover)),i.link!=null&&(n.link=String(i.link)),i.skipText!=null&&(n.skipText=String(i.skipText)),i.showDuration!=null&&(r.Long?(n.showDuration=r.Long.fromValue(i.showDuration)).unsigned=!1:typeof i.showDuration=="string"?n.showDuration=parseInt(i.showDuration,10):typeof i.showDuration=="number"?n.showDuration=i.showDuration:typeof i.showDuration=="object"&&(n.showDuration=new r.LongBits(i.showDuration.low>>>0,i.showDuration.high>>>0).toNumber())),i.showInterval!=null&&(r.Long?(n.showInterval=r.Long.fromValue(i.showInterval)).unsigned=!1:typeof i.showInterval=="string"?n.showInterval=parseInt(i.showInterval,10):typeof i.showInterval=="number"?n.showInterval=i.showInterval:typeof i.showInterval=="object"&&(n.showInterval=new r.LongBits(i.showInterval.low>>>0,i.showInterval.high>>>0).toNumber())),i.onTime!=null&&(r.Long?(n.onTime=r.Long.fromValue(i.onTime)).unsigned=!1:typeof i.onTime=="string"?n.onTime=parseInt(i.onTime,10):typeof i.onTime=="number"?n.onTime=i.onTime:typeof i.onTime=="object"&&(n.onTime=new r.LongBits(i.onTime.low>>>0,i.onTime.high>>>0).toNumber())),i.offTime!=null&&(r.Long?(n.offTime=r.Long.fromValue(i.offTime)).unsigned=!1:typeof i.offTime=="string"?n.offTime=parseInt(i.offTime,10):typeof i.offTime=="number"?n.offTime=i.offTime:typeof i.offTime=="object"&&(n.offTime=new r.LongBits(i.offTime.low>>>0,i.offTime.high>>>0).toNumber())),i.materialType){default:if(typeof i.materialType=="number"){n.materialType=i.materialType;break}break;case"MATERIAL_TYPE_UNSPECIFIED":case 0:n.materialType=0;break;case"MATERIAL_TYPE_IMAGE":case 1:n.materialType=1;break;case"MATERIAL_TYPE_VIDEO":case 2:n.materialType=2;break}if(i.video!=null){if(typeof i.video!="object")throw TypeError(".bilibili.intl.app.interface_.v2.SplashAd.video: object expected");n.video=u.bilibili.intl.app.interface_.v2.AdVideoMedia.fromObject(i.video)}return i.itemMd5!=null&&(n.itemMd5=String(i.itemMd5)),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.itemId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.itemId=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.orderId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.orderId=n.longs===String?"0":0;if(o.name="",o.cover="",o.link="",o.skipText="",r.Long){let a=new r.Long(0,0,!1);o.showDuration=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.showDuration=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.showInterval=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.showInterval=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.onTime=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.onTime=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.offTime=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.offTime=n.longs===String?"0":0;o.materialType=n.enums===String?"MATERIAL_TYPE_UNSPECIFIED":0,o.video=null,o.itemMd5=""}return i.itemId!=null&&i.hasOwnProperty("itemId")&&(typeof i.itemId=="number"?o.itemId=n.longs===String?String(i.itemId):i.itemId:o.itemId=n.longs===String?r.Long.prototype.toString.call(i.itemId):n.longs===Number?new r.LongBits(i.itemId.low>>>0,i.itemId.high>>>0).toNumber():i.itemId),i.orderId!=null&&i.hasOwnProperty("orderId")&&(typeof i.orderId=="number"?o.orderId=n.longs===String?String(i.orderId):i.orderId:o.orderId=n.longs===String?r.Long.prototype.toString.call(i.orderId):n.longs===Number?new r.LongBits(i.orderId.low>>>0,i.orderId.high>>>0).toNumber():i.orderId),i.name!=null&&i.hasOwnProperty("name")&&(o.name=i.name),i.cover!=null&&i.hasOwnProperty("cover")&&(o.cover=i.cover),i.link!=null&&i.hasOwnProperty("link")&&(o.link=i.link),i.skipText!=null&&i.hasOwnProperty("skipText")&&(o.skipText=i.skipText),i.showDuration!=null&&i.hasOwnProperty("showDuration")&&(typeof i.showDuration=="number"?o.showDuration=n.longs===String?String(i.showDuration):i.showDuration:o.showDuration=n.longs===String?r.Long.prototype.toString.call(i.showDuration):n.longs===Number?new r.LongBits(i.showDuration.low>>>0,i.showDuration.high>>>0).toNumber():i.showDuration),i.showInterval!=null&&i.hasOwnProperty("showInterval")&&(typeof i.showInterval=="number"?o.showInterval=n.longs===String?String(i.showInterval):i.showInterval:o.showInterval=n.longs===String?r.Long.prototype.toString.call(i.showInterval):n.longs===Number?new r.LongBits(i.showInterval.low>>>0,i.showInterval.high>>>0).toNumber():i.showInterval),i.onTime!=null&&i.hasOwnProperty("onTime")&&(typeof i.onTime=="number"?o.onTime=n.longs===String?String(i.onTime):i.onTime:o.onTime=n.longs===String?r.Long.prototype.toString.call(i.onTime):n.longs===Number?new r.LongBits(i.onTime.low>>>0,i.onTime.high>>>0).toNumber():i.onTime),i.offTime!=null&&i.hasOwnProperty("offTime")&&(typeof i.offTime=="number"?o.offTime=n.longs===String?String(i.offTime):i.offTime:o.offTime=n.longs===String?r.Long.prototype.toString.call(i.offTime):n.longs===Number?new r.LongBits(i.offTime.low>>>0,i.offTime.high>>>0).toNumber():i.offTime),i.materialType!=null&&i.hasOwnProperty("materialType")&&(o.materialType=n.enums===String?u.bilibili.intl.app.interface_.v2.AdMaterialType[i.materialType]===void 0?i.materialType:u.bilibili.intl.app.interface_.v2.AdMaterialType[i.materialType]:i.materialType),i.video!=null&&i.hasOwnProperty("video")&&(o.video=u.bilibili.intl.app.interface_.v2.AdVideoMedia.toObject(i.video,n)),i.itemMd5!=null&&i.hasOwnProperty("itemMd5")&&(o.itemMd5=i.itemMd5),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.intl.app.interface_.v2.SplashAd"},l}(),e.AdEventType=function(){let l={},t=Object.create(l);return t[l[0]="EVENT_TYPE_UNKNOWN"]=0,t[l[1]="EVENT_TYPE_CLICK"]=1,t[l[2]="EVENT_TYPE_EXPOSURE"]=2,t}(),e.Network=function(){let l={},t=Object.create(l);return t[l[0]="UNKNOWN"]=0,t[l[1]="WIFI"]=1,t[l[2]="CELLULAR"]=2,t[l[3]="OFFLINE"]=3,t[l[4]="OTHERNET"]=4,t[l[5]="ETHERNET"]=5,t}(),e.AppInfo=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.appId=i.int32();break}case 2:{a.platform=i.int32();break}case 3:{a.buvid=i.string();break}case 4:{a.chid=i.string();break}case 5:{a.brand=i.string();break}case 6:{a.deviceId=i.string();break}case 7:{a.model=i.string();break}case 8:{a.osver=i.string();break}case 9:{a.version=i.string();break}case 10:{a.versionCode=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.intl.app.interface_.v2.AppInfo)return i;let n=new u.bilibili.intl.app.interface_.v2.AppInfo;return i.appId!=null&&(n.appId=i.appId|0),i.platform!=null&&(n.platform=i.platform|0),i.buvid!=null&&(n.buvid=String(i.buvid)),i.chid!=null&&(n.chid=String(i.chid)),i.brand!=null&&(n.brand=String(i.brand)),i.deviceId!=null&&(n.deviceId=String(i.deviceId)),i.model!=null&&(n.model=String(i.model)),i.osver!=null&&(n.osver=String(i.osver)),i.version!=null&&(n.version=String(i.version)),i.versionCode!=null&&(n.versionCode=String(i.versionCode)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.appId=0,o.platform=0,o.buvid="",o.chid="",o.brand="",o.deviceId="",o.model="",o.osver="",o.version="",o.versionCode=""),i.appId!=null&&i.hasOwnProperty("appId")&&(o.appId=i.appId),i.platform!=null&&i.hasOwnProperty("platform")&&(o.platform=i.platform),i.buvid!=null&&i.hasOwnProperty("buvid")&&(o.buvid=i.buvid),i.chid!=null&&i.hasOwnProperty("chid")&&(o.chid=i.chid),i.brand!=null&&i.hasOwnProperty("brand")&&(o.brand=i.brand),i.deviceId!=null&&i.hasOwnProperty("deviceId")&&(o.deviceId=i.deviceId),i.model!=null&&i.hasOwnProperty("model")&&(o.model=i.model),i.osver!=null&&i.hasOwnProperty("osver")&&(o.osver=i.osver),i.version!=null&&i.hasOwnProperty("version")&&(o.version=i.version),i.versionCode!=null&&i.hasOwnProperty("versionCode")&&(o.versionCode=i.versionCode),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.intl.app.interface_.v2.AppInfo"},l}(),e.AdEvent=function(){function l(t){if(this.extendedFields={},t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.eventId=i.string();break}case 2:{a.eventType=i.int32();break}case 3:{a.appInfo=u.bilibili.intl.app.interface_.v2.AppInfo.decode(i,i.uint32());break}case 4:{a.network=i.int32();break}case 5:{a.mid=i.int64();break}case 6:{a.ctime=i.int64();break}case 7:{a.orderId=i.string();break}case 8:{a.lineItemId=i.string();break}case 98:{a.payload=i.string();break}case 99:{a.extendedFields===r.emptyObject&&(a.extendedFields={});let g=i.uint32()+i.pos;for(y="",s="";i.pos>>3){case 1:y=i.string();break;case 2:s=i.string();break;default:i.skipType(S&7);break}}a.extendedFields[y]=s;break}default:i.skipType(v&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.intl.app.interface_.v2.AdEvent)return i;let n=new u.bilibili.intl.app.interface_.v2.AdEvent;switch(i.eventId!=null&&(n.eventId=String(i.eventId)),i.eventType){default:if(typeof i.eventType=="number"){n.eventType=i.eventType;break}break;case"EVENT_TYPE_UNKNOWN":case 0:n.eventType=0;break;case"EVENT_TYPE_CLICK":case 1:n.eventType=1;break;case"EVENT_TYPE_EXPOSURE":case 2:n.eventType=2;break}if(i.appInfo!=null){if(typeof i.appInfo!="object")throw TypeError(".bilibili.intl.app.interface_.v2.AdEvent.appInfo: object expected");n.appInfo=u.bilibili.intl.app.interface_.v2.AppInfo.fromObject(i.appInfo)}switch(i.network){default:if(typeof i.network=="number"){n.network=i.network;break}break;case"UNKNOWN":case 0:n.network=0;break;case"WIFI":case 1:n.network=1;break;case"CELLULAR":case 2:n.network=2;break;case"OFFLINE":case 3:n.network=3;break;case"OTHERNET":case 4:n.network=4;break;case"ETHERNET":case 5:n.network=5;break}if(i.mid!=null&&(r.Long?(n.mid=r.Long.fromValue(i.mid)).unsigned=!1:typeof i.mid=="string"?n.mid=parseInt(i.mid,10):typeof i.mid=="number"?n.mid=i.mid:typeof i.mid=="object"&&(n.mid=new r.LongBits(i.mid.low>>>0,i.mid.high>>>0).toNumber())),i.ctime!=null&&(r.Long?(n.ctime=r.Long.fromValue(i.ctime)).unsigned=!1:typeof i.ctime=="string"?n.ctime=parseInt(i.ctime,10):typeof i.ctime=="number"?n.ctime=i.ctime:typeof i.ctime=="object"&&(n.ctime=new r.LongBits(i.ctime.low>>>0,i.ctime.high>>>0).toNumber())),i.orderId!=null&&(n.orderId=String(i.orderId)),i.lineItemId!=null&&(n.lineItemId=String(i.lineItemId)),i.payload!=null&&(n.payload=String(i.payload)),i.extendedFields){if(typeof i.extendedFields!="object")throw TypeError(".bilibili.intl.app.interface_.v2.AdEvent.extendedFields: object expected");n.extendedFields={};for(let o=Object.keys(i.extendedFields),a=0;a>>0,i.mid.high>>>0).toNumber():i.mid),i.ctime!=null&&i.hasOwnProperty("ctime")&&(typeof i.ctime=="number"?o.ctime=n.longs===String?String(i.ctime):i.ctime:o.ctime=n.longs===String?r.Long.prototype.toString.call(i.ctime):n.longs===Number?new r.LongBits(i.ctime.low>>>0,i.ctime.high>>>0).toNumber():i.ctime),i.orderId!=null&&i.hasOwnProperty("orderId")&&(o.orderId=i.orderId),i.lineItemId!=null&&i.hasOwnProperty("lineItemId")&&(o.lineItemId=i.lineItemId),i.payload!=null&&i.hasOwnProperty("payload")&&(o.payload=i.payload);let a;if(i.extendedFields&&(a=Object.keys(i.extendedFields)).length){o.extendedFields={};for(let y=0;y>>3){case 1:{a.trackId=i.string();break}case 2:{a.positionId=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.intl.app.interface_.v2.AdEventPayload)return i;let n=new u.bilibili.intl.app.interface_.v2.AdEventPayload;return i.trackId!=null&&(n.trackId=String(i.trackId)),i.positionId!=null&&(n.positionId=String(i.positionId)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.trackId="",o.positionId=""),i.trackId!=null&&i.hasOwnProperty("trackId")&&(o.trackId=i.trackId),i.positionId!=null&&i.hasOwnProperty("positionId")&&(o.positionId=i.positionId),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.intl.app.interface_.v2.AdEventPayload"},l}(),e.App=function(){function l(t,i,n){b.rpc.Service.call(this,t,i,n)}return(l.prototype=Object.create(b.rpc.Service.prototype)).constructor=l,l.create=function(i,n,o){return new this(i,n,o)},Object.defineProperty(l.prototype.ping=function t(i,n){return this.rpcCall(t,u.google.protobuf.Empty,u.google.protobuf.Empty,i,n)},"name",{value:"Ping"}),Object.defineProperty(l.prototype.searchSquareV2=function t(i,n){return this.rpcCall(t,u.bilibili.intl.app.interface_.v2.SearchSquareV2Req,u.bilibili.intl.app.interface_.v2.SearchSquareV2Resp,i,n)},"name",{value:"SearchSquareV2"}),Object.defineProperty(l.prototype.reportAdEvent=function t(i,n){return this.rpcCall(t,u.bilibili.intl.app.interface_.v2.AdEvent,u.google.protobuf.Empty,i,n)},"name",{value:"ReportAdEvent"}),Object.defineProperty(l.prototype.preloadSplashAd=function t(i,n){return this.rpcCall(t,u.bilibili.intl.app.interface_.v2.PreloadSplashAdReq,u.bilibili.intl.app.interface_.v2.PreloadSplashAdResp,i,n)},"name",{value:"PreloadSplashAd"}),Object.defineProperty(l.prototype.getExposureSplashAd=function t(i,n){return this.rpcCall(t,u.bilibili.intl.app.interface_.v2.GetExposureSplashAdReq,u.bilibili.intl.app.interface_.v2.GetExposureSplashAdResp,i,n)},"name",{value:"GetExposureSplashAd"}),Object.defineProperty(l.prototype.animeSchedule=function t(i,n){return this.rpcCall(t,u.bilibili.intl.app.interface_.v2.AnimeScheduleReq,u.bilibili.intl.app.interface_.v2.AnimeScheduleResp,i,n)},"name",{value:"AnimeSchedule"}),Object.defineProperty(l.prototype.appNotifyReport=function t(i,n){return this.rpcCall(t,u.bilibili.intl.app.interface_.v2.AppNotifyReportReq,u.google.protobuf.Empty,i,n)},"name",{value:"AppNotifyReport"}),l}(),e.SearchSquareV2Req=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){default:i.skipType(y&7);break}}return a},l.fromObject=function(i){return i instanceof u.bilibili.intl.app.interface_.v2.SearchSquareV2Req?i:new u.bilibili.intl.app.interface_.v2.SearchSquareV2Req},l.toObject=function(){return{}},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.intl.app.interface_.v2.SearchSquareV2Req"},l}(),e.SearchSquareV2Resp=function(){function l(t){if(this.dynamicCards=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.banner=u.bilibili.intl.app.interface_.v2.SearchSquareBanner.decode(i,i.uint32());break}case 2:{a.channel=u.bilibili.intl.app.interface_.v2.SearchSquareChannel.decode(i,i.uint32());break}case 3:{a.dynamicCards&&a.dynamicCards.length||(a.dynamicCards=[]),a.dynamicCards.push(u.bilibili.intl.app.interface_.v2.SearchSquareDynamicCard.decode(i,i.uint32()));break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.intl.app.interface_.v2.SearchSquareV2Resp)return i;let n=new u.bilibili.intl.app.interface_.v2.SearchSquareV2Resp;if(i.banner!=null){if(typeof i.banner!="object")throw TypeError(".bilibili.intl.app.interface_.v2.SearchSquareV2Resp.banner: object expected");n.banner=u.bilibili.intl.app.interface_.v2.SearchSquareBanner.fromObject(i.banner)}if(i.channel!=null){if(typeof i.channel!="object")throw TypeError(".bilibili.intl.app.interface_.v2.SearchSquareV2Resp.channel: object expected");n.channel=u.bilibili.intl.app.interface_.v2.SearchSquareChannel.fromObject(i.channel)}if(i.dynamicCards){if(!Array.isArray(i.dynamicCards))throw TypeError(".bilibili.intl.app.interface_.v2.SearchSquareV2Resp.dynamicCards: array expected");n.dynamicCards=[];for(let o=0;o>>3){default:i.skipType(y&7);break}}return a},l.fromObject=function(i){return i instanceof u.bilibili.intl.app.interface_.v2.PreloadSplashAdReq?i:new u.bilibili.intl.app.interface_.v2.PreloadSplashAdReq},l.toObject=function(){return{}},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.intl.app.interface_.v2.PreloadSplashAdReq"},l}(),e.PreloadSplashAdResp=function(){function l(t){if(this.ads=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.ads&&a.ads.length||(a.ads=[]),a.ads.push(u.bilibili.intl.app.interface_.v2.SplashAd.decode(i,i.uint32()));break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.intl.app.interface_.v2.PreloadSplashAdResp)return i;let n=new u.bilibili.intl.app.interface_.v2.PreloadSplashAdResp;if(i.ads){if(!Array.isArray(i.ads))throw TypeError(".bilibili.intl.app.interface_.v2.PreloadSplashAdResp.ads: array expected");n.ads=[];for(let o=0;o>>3){case 1:{if(a.itemIds&&a.itemIds.length||(a.itemIds=[]),(y&7)===2){let s=i.uint32()+i.pos;for(;i.pos>>0,i.itemIds[o].high>>>0).toNumber())}switch(i.splashType){default:if(typeof i.splashType=="number"){n.splashType=i.splashType;break}break;case"SPLASH_TYPE_UNSPECIFIED":case 0:n.splashType=0;break;case"SPLASH_TYPE_HOT":case 1:n.splashType=1;break;case"SPLASH_TYPE_COLD":case 2:n.splashType=2;break}return n},l.toObject=function(i,n){n||(n={});let o={};if((n.arrays||n.defaults)&&(o.itemIds=[]),n.defaults&&(o.splashType=n.enums===String?"SPLASH_TYPE_UNSPECIFIED":0),i.itemIds&&i.itemIds.length){o.itemIds=[];for(let a=0;a>>0,i.itemIds[a].high>>>0).toNumber():i.itemIds[a]}return i.splashType!=null&&i.hasOwnProperty("splashType")&&(o.splashType=n.enums===String?u.bilibili.intl.app.interface_.v2.SplashType[i.splashType]===void 0?i.splashType:u.bilibili.intl.app.interface_.v2.SplashType[i.splashType]:i.splashType),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.intl.app.interface_.v2.GetExposureSplashAdReq"},l}(),e.GetExposureSplashAdResp=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.ad=u.bilibili.intl.app.interface_.v2.SplashAd.decode(i,i.uint32());break}case 98:{a.enableRealtimeReport=i.bool();break}case 99:{a.realtimeReportPayload=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.intl.app.interface_.v2.GetExposureSplashAdResp)return i;let n=new u.bilibili.intl.app.interface_.v2.GetExposureSplashAdResp;if(i.ad!=null){if(typeof i.ad!="object")throw TypeError(".bilibili.intl.app.interface_.v2.GetExposureSplashAdResp.ad: object expected");n.ad=u.bilibili.intl.app.interface_.v2.SplashAd.fromObject(i.ad)}return i.enableRealtimeReport!=null&&(n.enableRealtimeReport=!!i.enableRealtimeReport),i.realtimeReportPayload!=null&&(n.realtimeReportPayload=String(i.realtimeReportPayload)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.ad=null,o.enableRealtimeReport=!1,o.realtimeReportPayload=""),i.ad!=null&&i.hasOwnProperty("ad")&&(o.ad=u.bilibili.intl.app.interface_.v2.SplashAd.toObject(i.ad,n)),i.enableRealtimeReport!=null&&i.hasOwnProperty("enableRealtimeReport")&&(o.enableRealtimeReport=i.enableRealtimeReport),i.realtimeReportPayload!=null&&i.hasOwnProperty("realtimeReportPayload")&&(o.realtimeReportPayload=i.realtimeReportPayload),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.intl.app.interface_.v2.GetExposureSplashAdResp"},l}(),e.AnimeScheduleReq=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.date=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.intl.app.interface_.v2.AnimeScheduleReq)return i;let n=new u.bilibili.intl.app.interface_.v2.AnimeScheduleReq;return i.date!=null&&(r.Long?(n.date=r.Long.fromValue(i.date)).unsigned=!1:typeof i.date=="string"?n.date=parseInt(i.date,10):typeof i.date=="number"?n.date=i.date:typeof i.date=="object"&&(n.date=new r.LongBits(i.date.low>>>0,i.date.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults)if(r.Long){let a=new r.Long(0,0,!1);o.date=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.date=n.longs===String?"0":0;return i.date!=null&&i.hasOwnProperty("date")&&(typeof i.date=="number"?o.date=n.longs===String?String(i.date):i.date:o.date=n.longs===String?r.Long.prototype.toString.call(i.date):n.longs===Number?new r.LongBits(i.date.low>>>0,i.date.high>>>0).toNumber():i.date),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.intl.app.interface_.v2.AnimeScheduleReq"},l}(),e.AnimeScheduleResp=function(){function l(t){if(this.schedules=[],this.seasons=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.pageTitle=i.string();break}case 2:{a.currentTime=i.string();break}case 3:{a.schedules&&a.schedules.length||(a.schedules=[]),a.schedules.push(u.bilibili.intl.app.interface_.v2.ScheduleSchedule.decode(i,i.uint32()));break}case 4:{a.seasons&&a.seasons.length||(a.seasons=[]),a.seasons.push(u.bilibili.intl.app.interface_.v2.ScheduleSeason.decode(i,i.uint32()));break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.intl.app.interface_.v2.AnimeScheduleResp)return i;let n=new u.bilibili.intl.app.interface_.v2.AnimeScheduleResp;if(i.pageTitle!=null&&(n.pageTitle=String(i.pageTitle)),i.currentTime!=null&&(n.currentTime=String(i.currentTime)),i.schedules){if(!Array.isArray(i.schedules))throw TypeError(".bilibili.intl.app.interface_.v2.AnimeScheduleResp.schedules: array expected");n.schedules=[];for(let o=0;o>>3){case 1:{a.notifyId=i.int64();break}case 2:{a.resourceId=i.int64();break}case 3:{a.unionId=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.intl.app.interface_.v2.AppNotifyReportReq)return i;let n=new u.bilibili.intl.app.interface_.v2.AppNotifyReportReq;return i.notifyId!=null&&(r.Long?(n.notifyId=r.Long.fromValue(i.notifyId)).unsigned=!1:typeof i.notifyId=="string"?n.notifyId=parseInt(i.notifyId,10):typeof i.notifyId=="number"?n.notifyId=i.notifyId:typeof i.notifyId=="object"&&(n.notifyId=new r.LongBits(i.notifyId.low>>>0,i.notifyId.high>>>0).toNumber())),i.resourceId!=null&&(r.Long?(n.resourceId=r.Long.fromValue(i.resourceId)).unsigned=!1:typeof i.resourceId=="string"?n.resourceId=parseInt(i.resourceId,10):typeof i.resourceId=="number"?n.resourceId=i.resourceId:typeof i.resourceId=="object"&&(n.resourceId=new r.LongBits(i.resourceId.low>>>0,i.resourceId.high>>>0).toNumber())),i.unionId!=null&&(n.unionId=String(i.unionId)),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.notifyId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.notifyId=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.resourceId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.resourceId=n.longs===String?"0":0;o.unionId=""}return i.notifyId!=null&&i.hasOwnProperty("notifyId")&&(typeof i.notifyId=="number"?o.notifyId=n.longs===String?String(i.notifyId):i.notifyId:o.notifyId=n.longs===String?r.Long.prototype.toString.call(i.notifyId):n.longs===Number?new r.LongBits(i.notifyId.low>>>0,i.notifyId.high>>>0).toNumber():i.notifyId),i.resourceId!=null&&i.hasOwnProperty("resourceId")&&(typeof i.resourceId=="number"?o.resourceId=n.longs===String?String(i.resourceId):i.resourceId:o.resourceId=n.longs===String?r.Long.prototype.toString.call(i.resourceId):n.longs===Number?new r.LongBits(i.resourceId.low>>>0,i.resourceId.high>>>0).toNumber():i.resourceId),i.unionId!=null&&i.hasOwnProperty("unionId")&&(o.unionId=i.unionId),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.intl.app.interface_.v2.AppNotifyReportReq"},l}(),e.CardCornerMark=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.bgColor=i.string();break}case 2:{a.text=i.string();break}case 3:{a.leftIcon=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.intl.app.interface_.v2.CardCornerMark)return i;let n=new u.bilibili.intl.app.interface_.v2.CardCornerMark;return i.bgColor!=null&&(n.bgColor=String(i.bgColor)),i.text!=null&&(n.text=String(i.text)),i.leftIcon!=null&&(n.leftIcon=String(i.leftIcon)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.bgColor="",o.text="",o.leftIcon=""),i.bgColor!=null&&i.hasOwnProperty("bgColor")&&(o.bgColor=i.bgColor),i.text!=null&&i.hasOwnProperty("text")&&(o.text=i.text),i.leftIcon!=null&&i.hasOwnProperty("leftIcon")&&(o.leftIcon=i.leftIcon),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.intl.app.interface_.v2.CardCornerMark"},l}(),e.ScheduleSchedule=function(){function l(t){if(this.cards=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.day=i.int64();break}case 2:{a.dayOfWeek=i.int64();break}case 3:{a.isToday=i.bool();break}case 4:{a.isComing=i.bool();break}case 5:{a.cards&&a.cards.length||(a.cards=[]),a.cards.push(u.bilibili.intl.app.interface_.v2.ScheduleCard.decode(i,i.uint32()));break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.intl.app.interface_.v2.ScheduleSchedule)return i;let n=new u.bilibili.intl.app.interface_.v2.ScheduleSchedule;if(i.day!=null&&(r.Long?(n.day=r.Long.fromValue(i.day)).unsigned=!1:typeof i.day=="string"?n.day=parseInt(i.day,10):typeof i.day=="number"?n.day=i.day:typeof i.day=="object"&&(n.day=new r.LongBits(i.day.low>>>0,i.day.high>>>0).toNumber())),i.dayOfWeek!=null&&(r.Long?(n.dayOfWeek=r.Long.fromValue(i.dayOfWeek)).unsigned=!1:typeof i.dayOfWeek=="string"?n.dayOfWeek=parseInt(i.dayOfWeek,10):typeof i.dayOfWeek=="number"?n.dayOfWeek=i.dayOfWeek:typeof i.dayOfWeek=="object"&&(n.dayOfWeek=new r.LongBits(i.dayOfWeek.low>>>0,i.dayOfWeek.high>>>0).toNumber())),i.isToday!=null&&(n.isToday=!!i.isToday),i.isComing!=null&&(n.isComing=!!i.isComing),i.cards){if(!Array.isArray(i.cards))throw TypeError(".bilibili.intl.app.interface_.v2.ScheduleSchedule.cards: array expected");n.cards=[];for(let o=0;o>>0,i.day.high>>>0).toNumber():i.day),i.dayOfWeek!=null&&i.hasOwnProperty("dayOfWeek")&&(typeof i.dayOfWeek=="number"?o.dayOfWeek=n.longs===String?String(i.dayOfWeek):i.dayOfWeek:o.dayOfWeek=n.longs===String?r.Long.prototype.toString.call(i.dayOfWeek):n.longs===Number?new r.LongBits(i.dayOfWeek.low>>>0,i.dayOfWeek.high>>>0).toNumber():i.dayOfWeek),i.isToday!=null&&i.hasOwnProperty("isToday")&&(o.isToday=i.isToday),i.isComing!=null&&i.hasOwnProperty("isComing")&&(o.isComing=i.isComing),i.cards&&i.cards.length){o.cards=[];for(let a=0;a>>3){case 1:{a.seasonYear=i.int64();break}case 2:{a.seasonTitle=i.string();break}case 3:{a.cards&&a.cards.length||(a.cards=[]),a.cards.push(u.bilibili.intl.app.interface_.v2.ScheduleCard.decode(i,i.uint32()));break}case 4:{a.quarter=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.intl.app.interface_.v2.ScheduleSeason)return i;let n=new u.bilibili.intl.app.interface_.v2.ScheduleSeason;if(i.seasonYear!=null&&(r.Long?(n.seasonYear=r.Long.fromValue(i.seasonYear)).unsigned=!1:typeof i.seasonYear=="string"?n.seasonYear=parseInt(i.seasonYear,10):typeof i.seasonYear=="number"?n.seasonYear=i.seasonYear:typeof i.seasonYear=="object"&&(n.seasonYear=new r.LongBits(i.seasonYear.low>>>0,i.seasonYear.high>>>0).toNumber())),i.seasonTitle!=null&&(n.seasonTitle=String(i.seasonTitle)),i.cards){if(!Array.isArray(i.cards))throw TypeError(".bilibili.intl.app.interface_.v2.ScheduleSeason.cards: array expected");n.cards=[];for(let o=0;o>>0,i.quarter.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if((n.arrays||n.defaults)&&(o.cards=[]),n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.seasonYear=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.seasonYear=n.longs===String?"0":0;if(o.seasonTitle="",r.Long){let a=new r.Long(0,0,!1);o.quarter=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.quarter=n.longs===String?"0":0}if(i.seasonYear!=null&&i.hasOwnProperty("seasonYear")&&(typeof i.seasonYear=="number"?o.seasonYear=n.longs===String?String(i.seasonYear):i.seasonYear:o.seasonYear=n.longs===String?r.Long.prototype.toString.call(i.seasonYear):n.longs===Number?new r.LongBits(i.seasonYear.low>>>0,i.seasonYear.high>>>0).toNumber():i.seasonYear),i.seasonTitle!=null&&i.hasOwnProperty("seasonTitle")&&(o.seasonTitle=i.seasonTitle),i.cards&&i.cards.length){o.cards=[];for(let a=0;a>>0,i.quarter.high>>>0).toNumber():i.quarter),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.intl.app.interface_.v2.ScheduleSeason"},l}(),e.ScheduleCard=function(){function l(t){if(this.styles=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.seasonId=i.int64();break}case 2:{a.cover=i.string();break}case 3:{a.url=i.string();break}case 4:{a.title=i.string();break}case 5:{a.subtitle=i.string();break}case 6:{a.styles&&a.styles.length||(a.styles=[]),a.styles.push(u.bilibili.intl.app.interface_.v2.CardStyle.decode(i,i.uint32()));break}case 7:{a.isFavorited=i.bool();break}case 8:{a.releaseInfo=i.string();break}case 9:{a.releaseTime=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.intl.app.interface_.v2.ScheduleCard)return i;let n=new u.bilibili.intl.app.interface_.v2.ScheduleCard;if(i.seasonId!=null&&(r.Long?(n.seasonId=r.Long.fromValue(i.seasonId)).unsigned=!1:typeof i.seasonId=="string"?n.seasonId=parseInt(i.seasonId,10):typeof i.seasonId=="number"?n.seasonId=i.seasonId:typeof i.seasonId=="object"&&(n.seasonId=new r.LongBits(i.seasonId.low>>>0,i.seasonId.high>>>0).toNumber())),i.cover!=null&&(n.cover=String(i.cover)),i.url!=null&&(n.url=String(i.url)),i.title!=null&&(n.title=String(i.title)),i.subtitle!=null&&(n.subtitle=String(i.subtitle)),i.styles){if(!Array.isArray(i.styles))throw TypeError(".bilibili.intl.app.interface_.v2.ScheduleCard.styles: array expected");n.styles=[];for(let o=0;o>>0,i.seasonId.high>>>0).toNumber():i.seasonId),i.cover!=null&&i.hasOwnProperty("cover")&&(o.cover=i.cover),i.url!=null&&i.hasOwnProperty("url")&&(o.url=i.url),i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.subtitle!=null&&i.hasOwnProperty("subtitle")&&(o.subtitle=i.subtitle),i.styles&&i.styles.length){o.styles=[];for(let a=0;a>>3){case 1:{a.name=i.string();break}case 2:{a.isBlue=i.bool();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.intl.app.interface_.v2.CardStyle)return i;let n=new u.bilibili.intl.app.interface_.v2.CardStyle;return i.name!=null&&(n.name=String(i.name)),i.isBlue!=null&&(n.isBlue=!!i.isBlue),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.name="",o.isBlue=!1),i.name!=null&&i.hasOwnProperty("name")&&(o.name=i.name),i.isBlue!=null&&i.hasOwnProperty("isBlue")&&(o.isBlue=i.isBlue),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.intl.app.interface_.v2.CardStyle"},l}(),e.SearchSquareBanner=function(){function l(t){if(this.items=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.items&&a.items.length||(a.items=[]),a.items.push(u.bilibili.intl.app.interface_.v2.SearchSquareBannerItem.decode(i,i.uint32()));break}case 2:{a.trackId=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.intl.app.interface_.v2.SearchSquareBanner)return i;let n=new u.bilibili.intl.app.interface_.v2.SearchSquareBanner;if(i.items){if(!Array.isArray(i.items))throw TypeError(".bilibili.intl.app.interface_.v2.SearchSquareBanner.items: array expected");n.items=[];for(let o=0;o>>3){case 1:{a.text=i.string();break}case 2:{a.bgColor=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.intl.app.interface_.v2.BannerBadge)return i;let n=new u.bilibili.intl.app.interface_.v2.BannerBadge;return i.text!=null&&(n.text=String(i.text)),i.bgColor!=null&&(n.bgColor=String(i.bgColor)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.text="",o.bgColor=""),i.text!=null&&i.hasOwnProperty("text")&&(o.text=i.text),i.bgColor!=null&&i.hasOwnProperty("bgColor")&&(o.bgColor=i.bgColor),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.intl.app.interface_.v2.BannerBadge"},l}(),e.SearchSquareBannerItem=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.title=i.string();break}case 2:{a.uri=i.string();break}case 3:{a.image=i.string();break}case 4:{a.resourceId=i.int64();break}case 5:{a.taskId=i.int64();break}case 6:{a.badge=u.bilibili.intl.app.interface_.v2.BannerBadge.decode(i,i.uint32());break}case 98:{a.enableRealtimeReport=i.bool();break}case 99:{a.realtimeReportPayload=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.intl.app.interface_.v2.SearchSquareBannerItem)return i;let n=new u.bilibili.intl.app.interface_.v2.SearchSquareBannerItem;if(i.title!=null&&(n.title=String(i.title)),i.uri!=null&&(n.uri=String(i.uri)),i.image!=null&&(n.image=String(i.image)),i.resourceId!=null&&(r.Long?(n.resourceId=r.Long.fromValue(i.resourceId)).unsigned=!1:typeof i.resourceId=="string"?n.resourceId=parseInt(i.resourceId,10):typeof i.resourceId=="number"?n.resourceId=i.resourceId:typeof i.resourceId=="object"&&(n.resourceId=new r.LongBits(i.resourceId.low>>>0,i.resourceId.high>>>0).toNumber())),i.taskId!=null&&(r.Long?(n.taskId=r.Long.fromValue(i.taskId)).unsigned=!1:typeof i.taskId=="string"?n.taskId=parseInt(i.taskId,10):typeof i.taskId=="number"?n.taskId=i.taskId:typeof i.taskId=="object"&&(n.taskId=new r.LongBits(i.taskId.low>>>0,i.taskId.high>>>0).toNumber())),i.badge!=null){if(typeof i.badge!="object")throw TypeError(".bilibili.intl.app.interface_.v2.SearchSquareBannerItem.badge: object expected");n.badge=u.bilibili.intl.app.interface_.v2.BannerBadge.fromObject(i.badge)}return i.enableRealtimeReport!=null&&(n.enableRealtimeReport=!!i.enableRealtimeReport),i.realtimeReportPayload!=null&&(n.realtimeReportPayload=String(i.realtimeReportPayload)),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(o.title="",o.uri="",o.image="",r.Long){let a=new r.Long(0,0,!1);o.resourceId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.resourceId=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.taskId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.taskId=n.longs===String?"0":0;o.badge=null,o.enableRealtimeReport=!1,o.realtimeReportPayload=""}return i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.uri!=null&&i.hasOwnProperty("uri")&&(o.uri=i.uri),i.image!=null&&i.hasOwnProperty("image")&&(o.image=i.image),i.resourceId!=null&&i.hasOwnProperty("resourceId")&&(typeof i.resourceId=="number"?o.resourceId=n.longs===String?String(i.resourceId):i.resourceId:o.resourceId=n.longs===String?r.Long.prototype.toString.call(i.resourceId):n.longs===Number?new r.LongBits(i.resourceId.low>>>0,i.resourceId.high>>>0).toNumber():i.resourceId),i.taskId!=null&&i.hasOwnProperty("taskId")&&(typeof i.taskId=="number"?o.taskId=n.longs===String?String(i.taskId):i.taskId:o.taskId=n.longs===String?r.Long.prototype.toString.call(i.taskId):n.longs===Number?new r.LongBits(i.taskId.low>>>0,i.taskId.high>>>0).toNumber():i.taskId),i.badge!=null&&i.hasOwnProperty("badge")&&(o.badge=u.bilibili.intl.app.interface_.v2.BannerBadge.toObject(i.badge,n)),i.enableRealtimeReport!=null&&i.hasOwnProperty("enableRealtimeReport")&&(o.enableRealtimeReport=i.enableRealtimeReport),i.realtimeReportPayload!=null&&i.hasOwnProperty("realtimeReportPayload")&&(o.realtimeReportPayload=i.realtimeReportPayload),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.intl.app.interface_.v2.SearchSquareBannerItem"},l}(),e.SearchSquareChannel=function(){function l(t){if(this.items=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.title=i.string();break}case 2:{a.trackId=i.string();break}case 3:{a.items&&a.items.length||(a.items=[]),a.items.push(u.bilibili.intl.app.interface_.v2.SearchSquareChannelItem.decode(i,i.uint32()));break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.intl.app.interface_.v2.SearchSquareChannel)return i;let n=new u.bilibili.intl.app.interface_.v2.SearchSquareChannel;if(i.title!=null&&(n.title=String(i.title)),i.trackId!=null&&(n.trackId=String(i.trackId)),i.items){if(!Array.isArray(i.items))throw TypeError(".bilibili.intl.app.interface_.v2.SearchSquareChannel.items: array expected");n.items=[];for(let o=0;o>>3){case 1:{a.id=i.int64();break}case 2:{a.title=i.string();break}case 3:{a.uri=i.string();break}case 4:{a.image=i.string();break}case 5:{a.resourceId=i.int64();break}case 6:{a.color=i.string();break}case 7:{a.desc=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.intl.app.interface_.v2.SearchSquareChannelItem)return i;let n=new u.bilibili.intl.app.interface_.v2.SearchSquareChannelItem;return i.id!=null&&(r.Long?(n.id=r.Long.fromValue(i.id)).unsigned=!1:typeof i.id=="string"?n.id=parseInt(i.id,10):typeof i.id=="number"?n.id=i.id:typeof i.id=="object"&&(n.id=new r.LongBits(i.id.low>>>0,i.id.high>>>0).toNumber())),i.title!=null&&(n.title=String(i.title)),i.uri!=null&&(n.uri=String(i.uri)),i.image!=null&&(n.image=String(i.image)),i.resourceId!=null&&(r.Long?(n.resourceId=r.Long.fromValue(i.resourceId)).unsigned=!1:typeof i.resourceId=="string"?n.resourceId=parseInt(i.resourceId,10):typeof i.resourceId=="number"?n.resourceId=i.resourceId:typeof i.resourceId=="object"&&(n.resourceId=new r.LongBits(i.resourceId.low>>>0,i.resourceId.high>>>0).toNumber())),i.color!=null&&(n.color=String(i.color)),i.desc!=null&&(n.desc=String(i.desc)),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.id=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.id=n.longs===String?"0":0;if(o.title="",o.uri="",o.image="",r.Long){let a=new r.Long(0,0,!1);o.resourceId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.resourceId=n.longs===String?"0":0;o.color="",o.desc=""}return i.id!=null&&i.hasOwnProperty("id")&&(typeof i.id=="number"?o.id=n.longs===String?String(i.id):i.id:o.id=n.longs===String?r.Long.prototype.toString.call(i.id):n.longs===Number?new r.LongBits(i.id.low>>>0,i.id.high>>>0).toNumber():i.id),i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.uri!=null&&i.hasOwnProperty("uri")&&(o.uri=i.uri),i.image!=null&&i.hasOwnProperty("image")&&(o.image=i.image),i.resourceId!=null&&i.hasOwnProperty("resourceId")&&(typeof i.resourceId=="number"?o.resourceId=n.longs===String?String(i.resourceId):i.resourceId:o.resourceId=n.longs===String?r.Long.prototype.toString.call(i.resourceId):n.longs===Number?new r.LongBits(i.resourceId.low>>>0,i.resourceId.high>>>0).toNumber():i.resourceId),i.color!=null&&i.hasOwnProperty("color")&&(o.color=i.color),i.desc!=null&&i.hasOwnProperty("desc")&&(o.desc=i.desc),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.intl.app.interface_.v2.SearchSquareChannelItem"},l}(),e.SearchSquareDynamicCard=function(){function l(i){if(i)for(let n=Object.keys(i),o=0;o>>3){case 1:{y.trackId=n.string();break}case 2:{y.ogv=u.bilibili.intl.app.interface_.v2.SearchSquareCardOgv.decode(n,n.uint32());break}case 3:{y.ugc=u.bilibili.intl.app.interface_.v2.SearchSquareCardUgc.decode(n,n.uint32());break}case 4:{y.live=u.bilibili.intl.app.interface_.v2.SearchSquareCardLive.decode(n,n.uint32());break}default:n.skipType(s&7);break}}return y},l.fromObject=function(n){if(n instanceof u.bilibili.intl.app.interface_.v2.SearchSquareDynamicCard)return n;let o=new u.bilibili.intl.app.interface_.v2.SearchSquareDynamicCard;if(n.trackId!=null&&(o.trackId=String(n.trackId)),n.ogv!=null){if(typeof n.ogv!="object")throw TypeError(".bilibili.intl.app.interface_.v2.SearchSquareDynamicCard.ogv: object expected");o.ogv=u.bilibili.intl.app.interface_.v2.SearchSquareCardOgv.fromObject(n.ogv)}if(n.ugc!=null){if(typeof n.ugc!="object")throw TypeError(".bilibili.intl.app.interface_.v2.SearchSquareDynamicCard.ugc: object expected");o.ugc=u.bilibili.intl.app.interface_.v2.SearchSquareCardUgc.fromObject(n.ugc)}if(n.live!=null){if(typeof n.live!="object")throw TypeError(".bilibili.intl.app.interface_.v2.SearchSquareDynamicCard.live: object expected");o.live=u.bilibili.intl.app.interface_.v2.SearchSquareCardLive.fromObject(n.live)}return o},l.toObject=function(n,o){o||(o={});let a={};return o.defaults&&(a.trackId=""),n.trackId!=null&&n.hasOwnProperty("trackId")&&(a.trackId=n.trackId),n.ogv!=null&&n.hasOwnProperty("ogv")&&(a.ogv=u.bilibili.intl.app.interface_.v2.SearchSquareCardOgv.toObject(n.ogv,o),o.oneofs&&(a.card="ogv")),n.ugc!=null&&n.hasOwnProperty("ugc")&&(a.ugc=u.bilibili.intl.app.interface_.v2.SearchSquareCardUgc.toObject(n.ugc,o),o.oneofs&&(a.card="ugc")),n.live!=null&&n.hasOwnProperty("live")&&(a.live=u.bilibili.intl.app.interface_.v2.SearchSquareCardLive.toObject(n.live,o),o.oneofs&&(a.card="live")),a},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/bilibili.intl.app.interface_.v2.SearchSquareDynamicCard"},l}(),e.SearchSquareCardOgv=function(){function l(t){if(this.items=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.title=i.string();break}case 2:{a.uri=i.string();break}case 3:{a.items&&a.items.length||(a.items=[]),a.items.push(u.bilibili.intl.app.interface_.v2.SearchSquareCardOgvItem.decode(i,i.uint32()));break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.intl.app.interface_.v2.SearchSquareCardOgv)return i;let n=new u.bilibili.intl.app.interface_.v2.SearchSquareCardOgv;if(i.title!=null&&(n.title=String(i.title)),i.uri!=null&&(n.uri=String(i.uri)),i.items){if(!Array.isArray(i.items))throw TypeError(".bilibili.intl.app.interface_.v2.SearchSquareCardOgv.items: array expected");n.items=[];for(let o=0;o>>3){case 1:{a.seasonId=i.int64();break}case 2:{a.title=i.string();break}case 3:{a.cover=i.string();break}case 4:{a.uri=i.string();break}case 5:{a.subtitle=i.string();break}case 6:{a.styles&&a.styles.length||(a.styles=[]),a.styles.push(i.string());break}case 7:{a.cardCornerMark=u.bilibili.intl.app.interface_.v2.CardCornerMark.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.intl.app.interface_.v2.SearchSquareCardOgvItem)return i;let n=new u.bilibili.intl.app.interface_.v2.SearchSquareCardOgvItem;if(i.seasonId!=null&&(r.Long?(n.seasonId=r.Long.fromValue(i.seasonId)).unsigned=!1:typeof i.seasonId=="string"?n.seasonId=parseInt(i.seasonId,10):typeof i.seasonId=="number"?n.seasonId=i.seasonId:typeof i.seasonId=="object"&&(n.seasonId=new r.LongBits(i.seasonId.low>>>0,i.seasonId.high>>>0).toNumber())),i.title!=null&&(n.title=String(i.title)),i.cover!=null&&(n.cover=String(i.cover)),i.uri!=null&&(n.uri=String(i.uri)),i.subtitle!=null&&(n.subtitle=String(i.subtitle)),i.styles){if(!Array.isArray(i.styles))throw TypeError(".bilibili.intl.app.interface_.v2.SearchSquareCardOgvItem.styles: array expected");n.styles=[];for(let o=0;o>>0,i.seasonId.high>>>0).toNumber():i.seasonId),i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.cover!=null&&i.hasOwnProperty("cover")&&(o.cover=i.cover),i.uri!=null&&i.hasOwnProperty("uri")&&(o.uri=i.uri),i.subtitle!=null&&i.hasOwnProperty("subtitle")&&(o.subtitle=i.subtitle),i.styles&&i.styles.length){o.styles=[];for(let a=0;a>>3){case 1:{a.title=i.string();break}case 2:{a.uri=i.string();break}case 3:{a.items&&a.items.length||(a.items=[]),a.items.push(u.bilibili.intl.app.interface_.v2.SearchSquareCardUgcItem.decode(i,i.uint32()));break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.intl.app.interface_.v2.SearchSquareCardUgc)return i;let n=new u.bilibili.intl.app.interface_.v2.SearchSquareCardUgc;if(i.title!=null&&(n.title=String(i.title)),i.uri!=null&&(n.uri=String(i.uri)),i.items){if(!Array.isArray(i.items))throw TypeError(".bilibili.intl.app.interface_.v2.SearchSquareCardUgc.items: array expected");n.items=[];for(let o=0;o>>3){case 1:{a.aid=i.int64();break}case 2:{a.title=i.string();break}case 3:{a.cover=i.string();break}case 4:{a.duration=i.string();break}case 5:{a.uri=i.string();break}case 6:{a.views=i.string();break}case 7:{a.author=u.bilibili.intl.app.interface_.v2.SearchAuthor.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.intl.app.interface_.v2.SearchSquareCardUgcItem)return i;let n=new u.bilibili.intl.app.interface_.v2.SearchSquareCardUgcItem;if(i.aid!=null&&(r.Long?(n.aid=r.Long.fromValue(i.aid)).unsigned=!1:typeof i.aid=="string"?n.aid=parseInt(i.aid,10):typeof i.aid=="number"?n.aid=i.aid:typeof i.aid=="object"&&(n.aid=new r.LongBits(i.aid.low>>>0,i.aid.high>>>0).toNumber())),i.title!=null&&(n.title=String(i.title)),i.cover!=null&&(n.cover=String(i.cover)),i.duration!=null&&(n.duration=String(i.duration)),i.uri!=null&&(n.uri=String(i.uri)),i.views!=null&&(n.views=String(i.views)),i.author!=null){if(typeof i.author!="object")throw TypeError(".bilibili.intl.app.interface_.v2.SearchSquareCardUgcItem.author: object expected");n.author=u.bilibili.intl.app.interface_.v2.SearchAuthor.fromObject(i.author)}return n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.aid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.aid=n.longs===String?"0":0;o.title="",o.cover="",o.duration="",o.uri="",o.views="",o.author=null}return i.aid!=null&&i.hasOwnProperty("aid")&&(typeof i.aid=="number"?o.aid=n.longs===String?String(i.aid):i.aid:o.aid=n.longs===String?r.Long.prototype.toString.call(i.aid):n.longs===Number?new r.LongBits(i.aid.low>>>0,i.aid.high>>>0).toNumber():i.aid),i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.cover!=null&&i.hasOwnProperty("cover")&&(o.cover=i.cover),i.duration!=null&&i.hasOwnProperty("duration")&&(o.duration=i.duration),i.uri!=null&&i.hasOwnProperty("uri")&&(o.uri=i.uri),i.views!=null&&i.hasOwnProperty("views")&&(o.views=i.views),i.author!=null&&i.hasOwnProperty("author")&&(o.author=u.bilibili.intl.app.interface_.v2.SearchAuthor.toObject(i.author,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.intl.app.interface_.v2.SearchSquareCardUgcItem"},l}(),e.SearchSquareCardLive=function(){function l(t){if(this.items=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.title=i.string();break}case 2:{a.uri=i.string();break}case 3:{a.items&&a.items.length||(a.items=[]),a.items.push(u.bilibili.intl.app.interface_.v2.SearchSquareCardLiveItem.decode(i,i.uint32()));break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.intl.app.interface_.v2.SearchSquareCardLive)return i;let n=new u.bilibili.intl.app.interface_.v2.SearchSquareCardLive;if(i.title!=null&&(n.title=String(i.title)),i.uri!=null&&(n.uri=String(i.uri)),i.items){if(!Array.isArray(i.items))throw TypeError(".bilibili.intl.app.interface_.v2.SearchSquareCardLive.items: array expected");n.items=[];for(let o=0;o>>3){case 1:{a.rid=i.int64();break}case 2:{a.title=i.string();break}case 3:{a.cover=i.string();break}case 4:{a.uri=i.string();break}case 5:{a.views=i.string();break}case 6:{a.author=u.bilibili.intl.app.interface_.v2.SearchAuthor.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.intl.app.interface_.v2.SearchSquareCardLiveItem)return i;let n=new u.bilibili.intl.app.interface_.v2.SearchSquareCardLiveItem;if(i.rid!=null&&(r.Long?(n.rid=r.Long.fromValue(i.rid)).unsigned=!1:typeof i.rid=="string"?n.rid=parseInt(i.rid,10):typeof i.rid=="number"?n.rid=i.rid:typeof i.rid=="object"&&(n.rid=new r.LongBits(i.rid.low>>>0,i.rid.high>>>0).toNumber())),i.title!=null&&(n.title=String(i.title)),i.cover!=null&&(n.cover=String(i.cover)),i.uri!=null&&(n.uri=String(i.uri)),i.views!=null&&(n.views=String(i.views)),i.author!=null){if(typeof i.author!="object")throw TypeError(".bilibili.intl.app.interface_.v2.SearchSquareCardLiveItem.author: object expected");n.author=u.bilibili.intl.app.interface_.v2.SearchAuthor.fromObject(i.author)}return n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.rid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.rid=n.longs===String?"0":0;o.title="",o.cover="",o.uri="",o.views="",o.author=null}return i.rid!=null&&i.hasOwnProperty("rid")&&(typeof i.rid=="number"?o.rid=n.longs===String?String(i.rid):i.rid:o.rid=n.longs===String?r.Long.prototype.toString.call(i.rid):n.longs===Number?new r.LongBits(i.rid.low>>>0,i.rid.high>>>0).toNumber():i.rid),i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.cover!=null&&i.hasOwnProperty("cover")&&(o.cover=i.cover),i.uri!=null&&i.hasOwnProperty("uri")&&(o.uri=i.uri),i.views!=null&&i.hasOwnProperty("views")&&(o.views=i.views),i.author!=null&&i.hasOwnProperty("author")&&(o.author=u.bilibili.intl.app.interface_.v2.SearchAuthor.toObject(i.author,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.intl.app.interface_.v2.SearchSquareCardLiveItem"},l}(),e.SearchAuthor=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.mid=i.int64();break}case 2:{a.name=i.string();break}case 3:{a.face=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.intl.app.interface_.v2.SearchAuthor)return i;let n=new u.bilibili.intl.app.interface_.v2.SearchAuthor;return i.mid!=null&&(r.Long?(n.mid=r.Long.fromValue(i.mid)).unsigned=!1:typeof i.mid=="string"?n.mid=parseInt(i.mid,10):typeof i.mid=="number"?n.mid=i.mid:typeof i.mid=="object"&&(n.mid=new r.LongBits(i.mid.low>>>0,i.mid.high>>>0).toNumber())),i.name!=null&&(n.name=String(i.name)),i.face!=null&&(n.face=String(i.face)),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.mid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.mid=n.longs===String?"0":0;o.name="",o.face=""}return i.mid!=null&&i.hasOwnProperty("mid")&&(typeof i.mid=="number"?o.mid=n.longs===String?String(i.mid):i.mid:o.mid=n.longs===String?r.Long.prototype.toString.call(i.mid):n.longs===Number?new r.LongBits(i.mid.low>>>0,i.mid.high>>>0).toNumber():i.mid),i.name!=null&&i.hasOwnProperty("name")&&(o.name=i.name),i.face!=null&&i.hasOwnProperty("face")&&(o.face=i.face),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.intl.app.interface_.v2.SearchAuthor"},l}(),e}(),c}(),p}(),d.metadata=function(){let p={};return p.Cookie=function(){function c(e){if(e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.regionToken=l.string();break}case 2:{n.extra=l.string();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.intl.metadata.Cookie)return l;let t=new u.bilibili.intl.metadata.Cookie;return l.regionToken!=null&&(t.regionToken=String(l.regionToken)),l.extra!=null&&(t.extra=String(l.extra)),t},c.toObject=function(l,t){t||(t={});let i={};return t.defaults&&(i.regionToken="",i.extra=""),l.regionToken!=null&&l.hasOwnProperty("regionToken")&&(i.regionToken=l.regionToken),l.extra!=null&&l.hasOwnProperty("extra")&&(i.extra=l.extra),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.intl.metadata.Cookie"},c}(),p.Debug=function(){function c(e){if(e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.ipRegion=l.string();break}case 2:{n.appLang=l.string();break}case 3:{n.appRegion=l.string();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.intl.metadata.Debug)return l;let t=new u.bilibili.intl.metadata.Debug;return l.ipRegion!=null&&(t.ipRegion=String(l.ipRegion)),l.appLang!=null&&(t.appLang=String(l.appLang)),l.appRegion!=null&&(t.appRegion=String(l.appRegion)),t},c.toObject=function(l,t){t||(t={});let i={};return t.defaults&&(i.ipRegion="",i.appLang="",i.appRegion=""),l.ipRegion!=null&&l.hasOwnProperty("ipRegion")&&(i.ipRegion=l.ipRegion),l.appLang!=null&&l.hasOwnProperty("appLang")&&(i.appLang=l.appLang),l.appRegion!=null&&l.hasOwnProperty("appRegion")&&(i.appRegion=l.appRegion),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.intl.metadata.Debug"},c}(),p.PlayerParams=function(){function c(e){if(e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.preferCodeType=l.int32();break}case 2:{n.userQn=l.int32();break}case 3:{n.fnval=l.int64();break}case 4:{n.fnver=l.int64();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.intl.metadata.PlayerParams)return l;let t=new u.bilibili.intl.metadata.PlayerParams;return l.preferCodeType!=null&&(t.preferCodeType=l.preferCodeType|0),l.userQn!=null&&(t.userQn=l.userQn|0),l.fnval!=null&&(r.Long?(t.fnval=r.Long.fromValue(l.fnval)).unsigned=!1:typeof l.fnval=="string"?t.fnval=parseInt(l.fnval,10):typeof l.fnval=="number"?t.fnval=l.fnval:typeof l.fnval=="object"&&(t.fnval=new r.LongBits(l.fnval.low>>>0,l.fnval.high>>>0).toNumber())),l.fnver!=null&&(r.Long?(t.fnver=r.Long.fromValue(l.fnver)).unsigned=!1:typeof l.fnver=="string"?t.fnver=parseInt(l.fnver,10):typeof l.fnver=="number"?t.fnver=l.fnver:typeof l.fnver=="object"&&(t.fnver=new r.LongBits(l.fnver.low>>>0,l.fnver.high>>>0).toNumber())),t},c.toObject=function(l,t){t||(t={});let i={};if(t.defaults){if(i.preferCodeType=0,i.userQn=0,r.Long){let n=new r.Long(0,0,!1);i.fnval=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.fnval=t.longs===String?"0":0;if(r.Long){let n=new r.Long(0,0,!1);i.fnver=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.fnver=t.longs===String?"0":0}return l.preferCodeType!=null&&l.hasOwnProperty("preferCodeType")&&(i.preferCodeType=l.preferCodeType),l.userQn!=null&&l.hasOwnProperty("userQn")&&(i.userQn=l.userQn),l.fnval!=null&&l.hasOwnProperty("fnval")&&(typeof l.fnval=="number"?i.fnval=t.longs===String?String(l.fnval):l.fnval:i.fnval=t.longs===String?r.Long.prototype.toString.call(l.fnval):t.longs===Number?new r.LongBits(l.fnval.low>>>0,l.fnval.high>>>0).toNumber():l.fnval),l.fnver!=null&&l.hasOwnProperty("fnver")&&(typeof l.fnver=="number"?i.fnver=t.longs===String?String(l.fnver):l.fnver:i.fnver=t.longs===String?r.Long.prototype.toString.call(l.fnver):t.longs===Number?new r.LongBits(l.fnver.low>>>0,l.fnver.high>>>0).toNumber():l.fnver),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.intl.metadata.PlayerParams"},c}(),p.Metadata=function(){function c(e){if(e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.countryCode=l.string();break}case 2:{n.currencyCode=l.string();break}case 3:{n.market=l.string();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.intl.metadata.Metadata)return l;let t=new u.bilibili.intl.metadata.Metadata;return l.countryCode!=null&&(t.countryCode=String(l.countryCode)),l.currencyCode!=null&&(t.currencyCode=String(l.currencyCode)),l.market!=null&&(t.market=String(l.market)),t},c.toObject=function(l,t){t||(t={});let i={};return t.defaults&&(i.countryCode="",i.currencyCode="",i.market=""),l.countryCode!=null&&l.hasOwnProperty("countryCode")&&(i.countryCode=l.countryCode),l.currencyCode!=null&&l.hasOwnProperty("currencyCode")&&(i.currencyCode=l.currencyCode),l.market!=null&&l.hasOwnProperty("market")&&(i.market=l.market),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.intl.metadata.Metadata"},c}(),p}(),d}(),O.live=function(){let d={};return d.appinterface=function(){let p={};return p.v1=function(){let c={};return c.MoreLive=function(){function e(l,t,i){b.rpc.Service.call(this,l,t,i)}return(e.prototype=Object.create(b.rpc.Service.prototype)).constructor=e,e.create=function(t,i,n){return new this(t,i,n)},Object.defineProperty(e.prototype.getMoreLiveRooms=function l(t,i){return this.rpcCall(l,u.bilibili.live.appinterface.v1.GetMoreLiveRoomsReq,u.bilibili.live.appinterface.v1.GetMoreLiveRoomsResp,t,i)},"name",{value:"GetMoreLiveRooms"}),e}(),c.GetMoreLiveRoomsReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.roomId=t.int64();break}case 2:{o.idolPagination=u.bilibili.pagination.Pagination.decode(t,t.uint32());break}case 3:{o.roomsPagination=u.bilibili.pagination.Pagination.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.live.appinterface.v1.GetMoreLiveRoomsReq)return t;let i=new u.bilibili.live.appinterface.v1.GetMoreLiveRoomsReq;if(t.roomId!=null&&(r.Long?(i.roomId=r.Long.fromValue(t.roomId)).unsigned=!1:typeof t.roomId=="string"?i.roomId=parseInt(t.roomId,10):typeof t.roomId=="number"?i.roomId=t.roomId:typeof t.roomId=="object"&&(i.roomId=new r.LongBits(t.roomId.low>>>0,t.roomId.high>>>0).toNumber())),t.idolPagination!=null){if(typeof t.idolPagination!="object")throw TypeError(".bilibili.live.appinterface.v1.GetMoreLiveRoomsReq.idolPagination: object expected");i.idolPagination=u.bilibili.pagination.Pagination.fromObject(t.idolPagination)}if(t.roomsPagination!=null){if(typeof t.roomsPagination!="object")throw TypeError(".bilibili.live.appinterface.v1.GetMoreLiveRoomsReq.roomsPagination: object expected");i.roomsPagination=u.bilibili.pagination.Pagination.fromObject(t.roomsPagination)}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.roomId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.roomId=i.longs===String?"0":0;n.idolPagination=null,n.roomsPagination=null}return t.roomId!=null&&t.hasOwnProperty("roomId")&&(typeof t.roomId=="number"?n.roomId=i.longs===String?String(t.roomId):t.roomId:n.roomId=i.longs===String?r.Long.prototype.toString.call(t.roomId):i.longs===Number?new r.LongBits(t.roomId.low>>>0,t.roomId.high>>>0).toNumber():t.roomId),t.idolPagination!=null&&t.hasOwnProperty("idolPagination")&&(n.idolPagination=u.bilibili.pagination.Pagination.toObject(t.idolPagination,i)),t.roomsPagination!=null&&t.hasOwnProperty("roomsPagination")&&(n.roomsPagination=u.bilibili.pagination.Pagination.toObject(t.roomsPagination,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.live.appinterface.v1.GetMoreLiveRoomsReq"},e}(),c.GetMoreLiveRoomsResp=function(){function e(l){if(this.myIdolInfo=[],this.moreLiveInfo=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.idolPaginationReply=u.bilibili.pagination.PaginationReply.decode(t,t.uint32());break}case 2:{o.roomsPaginationReply=u.bilibili.pagination.PaginationReply.decode(t,t.uint32());break}case 3:{o.idolHasMore=t.bool();break}case 4:{o.myIdolInfo&&o.myIdolInfo.length||(o.myIdolInfo=[]),o.myIdolInfo.push(u.bilibili.live.appinterface.v1.MyIdolInfo.decode(t,t.uint32()));break}case 5:{o.moreLiveInfo&&o.moreLiveInfo.length||(o.moreLiveInfo=[]),o.moreLiveInfo.push(u.bilibili.live.appinterface.v1.MoreLiveRoomInfo.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.live.appinterface.v1.GetMoreLiveRoomsResp)return t;let i=new u.bilibili.live.appinterface.v1.GetMoreLiveRoomsResp;if(t.idolPaginationReply!=null){if(typeof t.idolPaginationReply!="object")throw TypeError(".bilibili.live.appinterface.v1.GetMoreLiveRoomsResp.idolPaginationReply: object expected");i.idolPaginationReply=u.bilibili.pagination.PaginationReply.fromObject(t.idolPaginationReply)}if(t.roomsPaginationReply!=null){if(typeof t.roomsPaginationReply!="object")throw TypeError(".bilibili.live.appinterface.v1.GetMoreLiveRoomsResp.roomsPaginationReply: object expected");i.roomsPaginationReply=u.bilibili.pagination.PaginationReply.fromObject(t.roomsPaginationReply)}if(t.idolHasMore!=null&&(i.idolHasMore=!!t.idolHasMore),t.myIdolInfo){if(!Array.isArray(t.myIdolInfo))throw TypeError(".bilibili.live.appinterface.v1.GetMoreLiveRoomsResp.myIdolInfo: array expected");i.myIdolInfo=[];for(let n=0;n>>3){case 1:{o.roomId=t.int64();break}case 2:{o.uid=t.int64();break}case 3:{o.uname=t.string();break}case 4:{o.face=t.string();break}case 5:{o.title=t.string();break}case 6:{o.link=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.live.appinterface.v1.MyIdolInfo)return t;let i=new u.bilibili.live.appinterface.v1.MyIdolInfo;return t.roomId!=null&&(r.Long?(i.roomId=r.Long.fromValue(t.roomId)).unsigned=!1:typeof t.roomId=="string"?i.roomId=parseInt(t.roomId,10):typeof t.roomId=="number"?i.roomId=t.roomId:typeof t.roomId=="object"&&(i.roomId=new r.LongBits(t.roomId.low>>>0,t.roomId.high>>>0).toNumber())),t.uid!=null&&(r.Long?(i.uid=r.Long.fromValue(t.uid)).unsigned=!1:typeof t.uid=="string"?i.uid=parseInt(t.uid,10):typeof t.uid=="number"?i.uid=t.uid:typeof t.uid=="object"&&(i.uid=new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber())),t.uname!=null&&(i.uname=String(t.uname)),t.face!=null&&(i.face=String(t.face)),t.title!=null&&(i.title=String(t.title)),t.link!=null&&(i.link=String(t.link)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.roomId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.roomId=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.uid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.uid=i.longs===String?"0":0;n.uname="",n.face="",n.title="",n.link=""}return t.roomId!=null&&t.hasOwnProperty("roomId")&&(typeof t.roomId=="number"?n.roomId=i.longs===String?String(t.roomId):t.roomId:n.roomId=i.longs===String?r.Long.prototype.toString.call(t.roomId):i.longs===Number?new r.LongBits(t.roomId.low>>>0,t.roomId.high>>>0).toNumber():t.roomId),t.uid!=null&&t.hasOwnProperty("uid")&&(typeof t.uid=="number"?n.uid=i.longs===String?String(t.uid):t.uid:n.uid=i.longs===String?r.Long.prototype.toString.call(t.uid):i.longs===Number?new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber():t.uid),t.uname!=null&&t.hasOwnProperty("uname")&&(n.uname=t.uname),t.face!=null&&t.hasOwnProperty("face")&&(n.face=t.face),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.link!=null&&t.hasOwnProperty("link")&&(n.link=t.link),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.live.appinterface.v1.MyIdolInfo"},e}(),c.MoreLiveRoomInfo=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.roomId=t.int64();break}case 2:{o.uname=t.string();break}case 3:{o.roomCover=t.string();break}case 4:{o.roomTitle=t.string();break}case 5:{o.roomType=t.int32();break}case 6:{o.textSmall=t.string();break}case 7:{o.icon=t.string();break}case 8:{o.areaName=t.string();break}case 9:{o.link=t.string();break}case 10:{o.face=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.live.appinterface.v1.MoreLiveRoomInfo)return t;let i=new u.bilibili.live.appinterface.v1.MoreLiveRoomInfo;switch(t.roomId!=null&&(r.Long?(i.roomId=r.Long.fromValue(t.roomId)).unsigned=!1:typeof t.roomId=="string"?i.roomId=parseInt(t.roomId,10):typeof t.roomId=="number"?i.roomId=t.roomId:typeof t.roomId=="object"&&(i.roomId=new r.LongBits(t.roomId.low>>>0,t.roomId.high>>>0).toNumber())),t.uname!=null&&(i.uname=String(t.uname)),t.roomCover!=null&&(i.roomCover=String(t.roomCover)),t.roomTitle!=null&&(i.roomTitle=String(t.roomTitle)),t.roomType){default:if(typeof t.roomType=="number"){i.roomType=t.roomType;break}break;case"Watched":case 0:i.roomType=0;break;case"Popularity":case 1:i.roomType=1;break}return t.textSmall!=null&&(i.textSmall=String(t.textSmall)),t.icon!=null&&(i.icon=String(t.icon)),t.areaName!=null&&(i.areaName=String(t.areaName)),t.link!=null&&(i.link=String(t.link)),t.face!=null&&(i.face=String(t.face)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.roomId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.roomId=i.longs===String?"0":0;n.uname="",n.roomCover="",n.roomTitle="",n.roomType=i.enums===String?"Watched":0,n.textSmall="",n.icon="",n.areaName="",n.link="",n.face=""}return t.roomId!=null&&t.hasOwnProperty("roomId")&&(typeof t.roomId=="number"?n.roomId=i.longs===String?String(t.roomId):t.roomId:n.roomId=i.longs===String?r.Long.prototype.toString.call(t.roomId):i.longs===Number?new r.LongBits(t.roomId.low>>>0,t.roomId.high>>>0).toNumber():t.roomId),t.uname!=null&&t.hasOwnProperty("uname")&&(n.uname=t.uname),t.roomCover!=null&&t.hasOwnProperty("roomCover")&&(n.roomCover=t.roomCover),t.roomTitle!=null&&t.hasOwnProperty("roomTitle")&&(n.roomTitle=t.roomTitle),t.roomType!=null&&t.hasOwnProperty("roomType")&&(n.roomType=i.enums===String?u.bilibili.live.appinterface.v1.RoomType[t.roomType]===void 0?t.roomType:u.bilibili.live.appinterface.v1.RoomType[t.roomType]:t.roomType),t.textSmall!=null&&t.hasOwnProperty("textSmall")&&(n.textSmall=t.textSmall),t.icon!=null&&t.hasOwnProperty("icon")&&(n.icon=t.icon),t.areaName!=null&&t.hasOwnProperty("areaName")&&(n.areaName=t.areaName),t.link!=null&&t.hasOwnProperty("link")&&(n.link=t.link),t.face!=null&&t.hasOwnProperty("face")&&(n.face=t.face),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.live.appinterface.v1.MoreLiveRoomInfo"},e}(),c.RoomType=function(){let e={},l=Object.create(e);return l[e[0]="Watched"]=0,l[e[1]="Popularity"]=1,l}(),c}(),p}(),d.approom=function(){let p={};return p.v1=function(){let c={};return c.multiConn=function(){function e(l,t,i){b.rpc.Service.call(this,l,t,i)}return(e.prototype=Object.create(b.rpc.Service.prototype)).constructor=e,e.create=function(t,i,n){return new this(t,i,n)},Object.defineProperty(e.prototype.multiConnInfo=function l(t,i){return this.rpcCall(l,u.bilibili.live.approom.v1.MultiConnInfoReq,u.bilibili.live.approom.v1.MultiConnInfoResp,t,i)},"name",{value:"MultiConnInfo"}),e}(),c.MultiConnInfoReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.roomId=t.int64();break}case 2:{o.anchorUid=t.int64();break}case 3:{o.bizSessionId=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.live.approom.v1.MultiConnInfoReq)return t;let i=new u.bilibili.live.approom.v1.MultiConnInfoReq;return t.roomId!=null&&(r.Long?(i.roomId=r.Long.fromValue(t.roomId)).unsigned=!1:typeof t.roomId=="string"?i.roomId=parseInt(t.roomId,10):typeof t.roomId=="number"?i.roomId=t.roomId:typeof t.roomId=="object"&&(i.roomId=new r.LongBits(t.roomId.low>>>0,t.roomId.high>>>0).toNumber())),t.anchorUid!=null&&(r.Long?(i.anchorUid=r.Long.fromValue(t.anchorUid)).unsigned=!1:typeof t.anchorUid=="string"?i.anchorUid=parseInt(t.anchorUid,10):typeof t.anchorUid=="number"?i.anchorUid=t.anchorUid:typeof t.anchorUid=="object"&&(i.anchorUid=new r.LongBits(t.anchorUid.low>>>0,t.anchorUid.high>>>0).toNumber())),t.bizSessionId!=null&&(i.bizSessionId=String(t.bizSessionId)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.roomId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.roomId=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.anchorUid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.anchorUid=i.longs===String?"0":0;n.bizSessionId=""}return t.roomId!=null&&t.hasOwnProperty("roomId")&&(typeof t.roomId=="number"?n.roomId=i.longs===String?String(t.roomId):t.roomId:n.roomId=i.longs===String?r.Long.prototype.toString.call(t.roomId):i.longs===Number?new r.LongBits(t.roomId.low>>>0,t.roomId.high>>>0).toNumber():t.roomId),t.anchorUid!=null&&t.hasOwnProperty("anchorUid")&&(typeof t.anchorUid=="number"?n.anchorUid=i.longs===String?String(t.anchorUid):t.anchorUid:n.anchorUid=i.longs===String?r.Long.prototype.toString.call(t.anchorUid):i.longs===Number?new r.LongBits(t.anchorUid.low>>>0,t.anchorUid.high>>>0).toNumber():t.anchorUid),t.bizSessionId!=null&&t.hasOwnProperty("bizSessionId")&&(n.bizSessionId=t.bizSessionId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.live.approom.v1.MultiConnInfoReq"},e}(),c.MultiConnInfoResp=function(){function e(l){if(this.data=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.data&&o.data.length||(o.data=[]),o.data.push(u.bilibili.live.approom.v1.MultiConnInfoResp.info.decode(t,t.uint32()));break}case 2:{o.invokingTime=t.int64();break}case 3:{o.version=t.int64();break}case 4:{o.layout=t.string();break}case 5:{o.roomStatus=t.int64();break}case 6:{o.bizSessionId=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.live.approom.v1.MultiConnInfoResp)return t;let i=new u.bilibili.live.approom.v1.MultiConnInfoResp;if(t.data){if(!Array.isArray(t.data))throw TypeError(".bilibili.live.approom.v1.MultiConnInfoResp.data: array expected");i.data=[];for(let n=0;n>>0,t.invokingTime.high>>>0).toNumber())),t.version!=null&&(r.Long?(i.version=r.Long.fromValue(t.version)).unsigned=!1:typeof t.version=="string"?i.version=parseInt(t.version,10):typeof t.version=="number"?i.version=t.version:typeof t.version=="object"&&(i.version=new r.LongBits(t.version.low>>>0,t.version.high>>>0).toNumber())),t.layout!=null&&(i.layout=String(t.layout)),t.roomStatus!=null&&(r.Long?(i.roomStatus=r.Long.fromValue(t.roomStatus)).unsigned=!1:typeof t.roomStatus=="string"?i.roomStatus=parseInt(t.roomStatus,10):typeof t.roomStatus=="number"?i.roomStatus=t.roomStatus:typeof t.roomStatus=="object"&&(i.roomStatus=new r.LongBits(t.roomStatus.low>>>0,t.roomStatus.high>>>0).toNumber())),t.bizSessionId!=null&&(i.bizSessionId=String(t.bizSessionId)),i},e.toObject=function(t,i){i||(i={});let n={};if((i.arrays||i.defaults)&&(n.data=[]),i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.invokingTime=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.invokingTime=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.version=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.version=i.longs===String?"0":0;if(n.layout="",r.Long){let o=new r.Long(0,0,!1);n.roomStatus=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.roomStatus=i.longs===String?"0":0;n.bizSessionId=""}if(t.data&&t.data.length){n.data=[];for(let o=0;o>>0,t.invokingTime.high>>>0).toNumber():t.invokingTime),t.version!=null&&t.hasOwnProperty("version")&&(typeof t.version=="number"?n.version=i.longs===String?String(t.version):t.version:n.version=i.longs===String?r.Long.prototype.toString.call(t.version):i.longs===Number?new r.LongBits(t.version.low>>>0,t.version.high>>>0).toNumber():t.version),t.layout!=null&&t.hasOwnProperty("layout")&&(n.layout=t.layout),t.roomStatus!=null&&t.hasOwnProperty("roomStatus")&&(typeof t.roomStatus=="number"?n.roomStatus=i.longs===String?String(t.roomStatus):t.roomStatus:n.roomStatus=i.longs===String?r.Long.prototype.toString.call(t.roomStatus):i.longs===Number?new r.LongBits(t.roomStatus.low>>>0,t.roomStatus.high>>>0).toNumber():t.roomStatus),t.bizSessionId!=null&&t.hasOwnProperty("bizSessionId")&&(n.bizSessionId=t.bizSessionId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.live.approom.v1.MultiConnInfoResp"},e.info=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.uid=i.int64();break}case 2:{a.roomId=i.int64();break}case 3:{a.avatar=i.string();break}case 4:{a.nickname=i.string();break}case 5:{a.price=i.int64();break}case 6:{a.priceText=i.string();break}case 7:{a.gender=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.live.approom.v1.MultiConnInfoResp.info)return i;let n=new u.bilibili.live.approom.v1.MultiConnInfoResp.info;return i.uid!=null&&(r.Long?(n.uid=r.Long.fromValue(i.uid)).unsigned=!1:typeof i.uid=="string"?n.uid=parseInt(i.uid,10):typeof i.uid=="number"?n.uid=i.uid:typeof i.uid=="object"&&(n.uid=new r.LongBits(i.uid.low>>>0,i.uid.high>>>0).toNumber())),i.roomId!=null&&(r.Long?(n.roomId=r.Long.fromValue(i.roomId)).unsigned=!1:typeof i.roomId=="string"?n.roomId=parseInt(i.roomId,10):typeof i.roomId=="number"?n.roomId=i.roomId:typeof i.roomId=="object"&&(n.roomId=new r.LongBits(i.roomId.low>>>0,i.roomId.high>>>0).toNumber())),i.avatar!=null&&(n.avatar=String(i.avatar)),i.nickname!=null&&(n.nickname=String(i.nickname)),i.price!=null&&(r.Long?(n.price=r.Long.fromValue(i.price)).unsigned=!1:typeof i.price=="string"?n.price=parseInt(i.price,10):typeof i.price=="number"?n.price=i.price:typeof i.price=="object"&&(n.price=new r.LongBits(i.price.low>>>0,i.price.high>>>0).toNumber())),i.priceText!=null&&(n.priceText=String(i.priceText)),i.gender!=null&&(r.Long?(n.gender=r.Long.fromValue(i.gender)).unsigned=!1:typeof i.gender=="string"?n.gender=parseInt(i.gender,10):typeof i.gender=="number"?n.gender=i.gender:typeof i.gender=="object"&&(n.gender=new r.LongBits(i.gender.low>>>0,i.gender.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.uid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.uid=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.roomId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.roomId=n.longs===String?"0":0;if(o.avatar="",o.nickname="",r.Long){let a=new r.Long(0,0,!1);o.price=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.price=n.longs===String?"0":0;if(o.priceText="",r.Long){let a=new r.Long(0,0,!1);o.gender=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.gender=n.longs===String?"0":0}return i.uid!=null&&i.hasOwnProperty("uid")&&(typeof i.uid=="number"?o.uid=n.longs===String?String(i.uid):i.uid:o.uid=n.longs===String?r.Long.prototype.toString.call(i.uid):n.longs===Number?new r.LongBits(i.uid.low>>>0,i.uid.high>>>0).toNumber():i.uid),i.roomId!=null&&i.hasOwnProperty("roomId")&&(typeof i.roomId=="number"?o.roomId=n.longs===String?String(i.roomId):i.roomId:o.roomId=n.longs===String?r.Long.prototype.toString.call(i.roomId):n.longs===Number?new r.LongBits(i.roomId.low>>>0,i.roomId.high>>>0).toNumber():i.roomId),i.avatar!=null&&i.hasOwnProperty("avatar")&&(o.avatar=i.avatar),i.nickname!=null&&i.hasOwnProperty("nickname")&&(o.nickname=i.nickname),i.price!=null&&i.hasOwnProperty("price")&&(typeof i.price=="number"?o.price=n.longs===String?String(i.price):i.price:o.price=n.longs===String?r.Long.prototype.toString.call(i.price):n.longs===Number?new r.LongBits(i.price.low>>>0,i.price.high>>>0).toNumber():i.price),i.priceText!=null&&i.hasOwnProperty("priceText")&&(o.priceText=i.priceText),i.gender!=null&&i.hasOwnProperty("gender")&&(typeof i.gender=="number"?o.gender=n.longs===String?String(i.gender):i.gender:o.gender=n.longs===String?r.Long.prototype.toString.call(i.gender):n.longs===Number?new r.LongBits(i.gender.low>>>0,i.gender.high>>>0).toNumber():i.gender),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.live.approom.v1.MultiConnInfoResp.info"},l}(),e}(),c.Studio=function(){function e(l,t,i){b.rpc.Service.call(this,l,t,i)}return(e.prototype=Object.create(b.rpc.Service.prototype)).constructor=e,e.create=function(t,i,n){return new this(t,i,n)},Object.defineProperty(e.prototype.getList=function l(t,i){return this.rpcCall(l,u.bilibili.live.approom.v1.GetStudioListReq,u.bilibili.live.approom.v1.GetStudioListResp,t,i)},"name",{value:"GetList"}),e}(),c.GetStudioListReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.roomId=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.live.approom.v1.GetStudioListReq)return t;let i=new u.bilibili.live.approom.v1.GetStudioListReq;return t.roomId!=null&&(r.Long?(i.roomId=r.Long.fromValue(t.roomId)).unsigned=!1:typeof t.roomId=="string"?i.roomId=parseInt(t.roomId,10):typeof t.roomId=="number"?i.roomId=t.roomId:typeof t.roomId=="object"&&(i.roomId=new r.LongBits(t.roomId.low>>>0,t.roomId.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(r.Long){let o=new r.Long(0,0,!1);n.roomId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.roomId=i.longs===String?"0":0;return t.roomId!=null&&t.hasOwnProperty("roomId")&&(typeof t.roomId=="number"?n.roomId=i.longs===String?String(t.roomId):t.roomId:n.roomId=i.longs===String?r.Long.prototype.toString.call(t.roomId):i.longs===Number?new r.LongBits(t.roomId.low>>>0,t.roomId.high>>>0).toNumber():t.roomId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.live.approom.v1.GetStudioListReq"},e}(),c.GetStudioListResp=function(){function e(l){if(this.masterList=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.status=t.int64();break}case 2:{o.masterList&&o.masterList.length||(o.masterList=[]),o.masterList.push(u.bilibili.live.approom.v1.GetStudioListResp.StudioMaster.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.live.approom.v1.GetStudioListResp)return t;let i=new u.bilibili.live.approom.v1.GetStudioListResp;if(t.status!=null&&(r.Long?(i.status=r.Long.fromValue(t.status)).unsigned=!1:typeof t.status=="string"?i.status=parseInt(t.status,10):typeof t.status=="number"?i.status=t.status:typeof t.status=="object"&&(i.status=new r.LongBits(t.status.low>>>0,t.status.high>>>0).toNumber())),t.masterList){if(!Array.isArray(t.masterList))throw TypeError(".bilibili.live.approom.v1.GetStudioListResp.masterList: array expected");i.masterList=[];for(let n=0;n>>0,t.status.high>>>0).toNumber():t.status),t.masterList&&t.masterList.length){n.masterList=[];for(let o=0;o>>3){case 1:{a.uid=i.int64();break}case 2:{a.roomId=i.int64();break}case 3:{a.uname=i.string();break}case 4:{a.face=i.string();break}case 5:{a.pendants=u.bilibili.live.approom.v1.GetStudioListResp.Pendants.decode(i,i.uint32());break}case 6:{a.tag=i.string();break}case 7:{a.tagType=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.live.approom.v1.GetStudioListResp.StudioMaster)return i;let n=new u.bilibili.live.approom.v1.GetStudioListResp.StudioMaster;if(i.uid!=null&&(r.Long?(n.uid=r.Long.fromValue(i.uid)).unsigned=!1:typeof i.uid=="string"?n.uid=parseInt(i.uid,10):typeof i.uid=="number"?n.uid=i.uid:typeof i.uid=="object"&&(n.uid=new r.LongBits(i.uid.low>>>0,i.uid.high>>>0).toNumber())),i.roomId!=null&&(r.Long?(n.roomId=r.Long.fromValue(i.roomId)).unsigned=!1:typeof i.roomId=="string"?n.roomId=parseInt(i.roomId,10):typeof i.roomId=="number"?n.roomId=i.roomId:typeof i.roomId=="object"&&(n.roomId=new r.LongBits(i.roomId.low>>>0,i.roomId.high>>>0).toNumber())),i.uname!=null&&(n.uname=String(i.uname)),i.face!=null&&(n.face=String(i.face)),i.pendants!=null){if(typeof i.pendants!="object")throw TypeError(".bilibili.live.approom.v1.GetStudioListResp.StudioMaster.pendants: object expected");n.pendants=u.bilibili.live.approom.v1.GetStudioListResp.Pendants.fromObject(i.pendants)}return i.tag!=null&&(n.tag=String(i.tag)),i.tagType!=null&&(r.Long?(n.tagType=r.Long.fromValue(i.tagType)).unsigned=!1:typeof i.tagType=="string"?n.tagType=parseInt(i.tagType,10):typeof i.tagType=="number"?n.tagType=i.tagType:typeof i.tagType=="object"&&(n.tagType=new r.LongBits(i.tagType.low>>>0,i.tagType.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.uid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.uid=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.roomId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.roomId=n.longs===String?"0":0;if(o.uname="",o.face="",o.pendants=null,o.tag="",r.Long){let a=new r.Long(0,0,!1);o.tagType=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.tagType=n.longs===String?"0":0}return i.uid!=null&&i.hasOwnProperty("uid")&&(typeof i.uid=="number"?o.uid=n.longs===String?String(i.uid):i.uid:o.uid=n.longs===String?r.Long.prototype.toString.call(i.uid):n.longs===Number?new r.LongBits(i.uid.low>>>0,i.uid.high>>>0).toNumber():i.uid),i.roomId!=null&&i.hasOwnProperty("roomId")&&(typeof i.roomId=="number"?o.roomId=n.longs===String?String(i.roomId):i.roomId:o.roomId=n.longs===String?r.Long.prototype.toString.call(i.roomId):n.longs===Number?new r.LongBits(i.roomId.low>>>0,i.roomId.high>>>0).toNumber():i.roomId),i.uname!=null&&i.hasOwnProperty("uname")&&(o.uname=i.uname),i.face!=null&&i.hasOwnProperty("face")&&(o.face=i.face),i.pendants!=null&&i.hasOwnProperty("pendants")&&(o.pendants=u.bilibili.live.approom.v1.GetStudioListResp.Pendants.toObject(i.pendants,n)),i.tag!=null&&i.hasOwnProperty("tag")&&(o.tag=i.tag),i.tagType!=null&&i.hasOwnProperty("tagType")&&(typeof i.tagType=="number"?o.tagType=n.longs===String?String(i.tagType):i.tagType:o.tagType=n.longs===String?r.Long.prototype.toString.call(i.tagType):n.longs===Number?new r.LongBits(i.tagType.low>>>0,i.tagType.high>>>0).toNumber():i.tagType),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.live.approom.v1.GetStudioListResp.StudioMaster"},l}(),e.Pendants=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.frame=u.bilibili.live.approom.v1.GetStudioListResp.Pendants.Pendant.decode(i,i.uint32());break}case 2:{a.badge=u.bilibili.live.approom.v1.GetStudioListResp.Pendants.Pendant.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.live.approom.v1.GetStudioListResp.Pendants)return i;let n=new u.bilibili.live.approom.v1.GetStudioListResp.Pendants;if(i.frame!=null){if(typeof i.frame!="object")throw TypeError(".bilibili.live.approom.v1.GetStudioListResp.Pendants.frame: object expected");n.frame=u.bilibili.live.approom.v1.GetStudioListResp.Pendants.Pendant.fromObject(i.frame)}if(i.badge!=null){if(typeof i.badge!="object")throw TypeError(".bilibili.live.approom.v1.GetStudioListResp.Pendants.badge: object expected");n.badge=u.bilibili.live.approom.v1.GetStudioListResp.Pendants.Pendant.fromObject(i.badge)}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.frame=null,o.badge=null),i.frame!=null&&i.hasOwnProperty("frame")&&(o.frame=u.bilibili.live.approom.v1.GetStudioListResp.Pendants.Pendant.toObject(i.frame,n)),i.badge!=null&&i.hasOwnProperty("badge")&&(o.badge=u.bilibili.live.approom.v1.GetStudioListResp.Pendants.Pendant.toObject(i.badge,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.live.approom.v1.GetStudioListResp.Pendants"},l.Pendant=function(){function t(i){if(i)for(let n=Object.keys(i),o=0;o>>3){case 1:{y.name=n.string();break}case 2:{y.position=n.int64();break}case 3:{y.value=n.string();break}case 4:{y.desc=n.string();break}default:n.skipType(s&7);break}}return y},t.fromObject=function(n){if(n instanceof u.bilibili.live.approom.v1.GetStudioListResp.Pendants.Pendant)return n;let o=new u.bilibili.live.approom.v1.GetStudioListResp.Pendants.Pendant;return n.name!=null&&(o.name=String(n.name)),n.position!=null&&(r.Long?(o.position=r.Long.fromValue(n.position)).unsigned=!1:typeof n.position=="string"?o.position=parseInt(n.position,10):typeof n.position=="number"?o.position=n.position:typeof n.position=="object"&&(o.position=new r.LongBits(n.position.low>>>0,n.position.high>>>0).toNumber())),n.value!=null&&(o.value=String(n.value)),n.desc!=null&&(o.desc=String(n.desc)),o},t.toObject=function(n,o){o||(o={});let a={};if(o.defaults){if(a.name="",r.Long){let y=new r.Long(0,0,!1);a.position=o.longs===String?y.toString():o.longs===Number?y.toNumber():y}else a.position=o.longs===String?"0":0;a.value="",a.desc=""}return n.name!=null&&n.hasOwnProperty("name")&&(a.name=n.name),n.position!=null&&n.hasOwnProperty("position")&&(typeof n.position=="number"?a.position=o.longs===String?String(n.position):n.position:a.position=o.longs===String?r.Long.prototype.toString.call(n.position):o.longs===Number?new r.LongBits(n.position.low>>>0,n.position.high>>>0).toNumber():n.position),n.value!=null&&n.hasOwnProperty("value")&&(a.value=n.value),n.desc!=null&&n.hasOwnProperty("desc")&&(a.desc=n.desc),a},t.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},t.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/bilibili.live.approom.v1.GetStudioListResp.Pendants.Pendant"},t}(),l}(),e}(),c.Danmu=function(){function e(l,t,i){b.rpc.Service.call(this,l,t,i)}return(e.prototype=Object.create(b.rpc.Service.prototype)).constructor=e,e.create=function(t,i,n){return new this(t,i,n)},Object.defineProperty(e.prototype.doCombo=function l(t,i){return this.rpcCall(l,u.bilibili.live.approom.v1.DoComboReq,u.bilibili.live.approom.v1.DoComboResp,t,i)},"name",{value:"DoCombo"}),Object.defineProperty(e.prototype.sendComboMsg=function l(t,i){return this.rpcCall(l,u.bilibili.live.approom.v1.SendComboMsgReq,u.bilibili.live.approom.v1.SendComboMsgResp,t,i)},"name",{value:"SendComboMsg"}),e}(),c.DoComboReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.roomId=t.int64();break}case 2:{o.interactionId=t.int64();break}case 3:{o.cnt=t.int32();break}case 4:{o.msg=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.live.approom.v1.DoComboReq)return t;let i=new u.bilibili.live.approom.v1.DoComboReq;return t.roomId!=null&&(r.Long?(i.roomId=r.Long.fromValue(t.roomId)).unsigned=!1:typeof t.roomId=="string"?i.roomId=parseInt(t.roomId,10):typeof t.roomId=="number"?i.roomId=t.roomId:typeof t.roomId=="object"&&(i.roomId=new r.LongBits(t.roomId.low>>>0,t.roomId.high>>>0).toNumber())),t.interactionId!=null&&(r.Long?(i.interactionId=r.Long.fromValue(t.interactionId)).unsigned=!1:typeof t.interactionId=="string"?i.interactionId=parseInt(t.interactionId,10):typeof t.interactionId=="number"?i.interactionId=t.interactionId:typeof t.interactionId=="object"&&(i.interactionId=new r.LongBits(t.interactionId.low>>>0,t.interactionId.high>>>0).toNumber())),t.cnt!=null&&(i.cnt=t.cnt|0),t.msg!=null&&(i.msg=String(t.msg)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.roomId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.roomId=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.interactionId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.interactionId=i.longs===String?"0":0;n.cnt=0,n.msg=""}return t.roomId!=null&&t.hasOwnProperty("roomId")&&(typeof t.roomId=="number"?n.roomId=i.longs===String?String(t.roomId):t.roomId:n.roomId=i.longs===String?r.Long.prototype.toString.call(t.roomId):i.longs===Number?new r.LongBits(t.roomId.low>>>0,t.roomId.high>>>0).toNumber():t.roomId),t.interactionId!=null&&t.hasOwnProperty("interactionId")&&(typeof t.interactionId=="number"?n.interactionId=i.longs===String?String(t.interactionId):t.interactionId:n.interactionId=i.longs===String?r.Long.prototype.toString.call(t.interactionId):i.longs===Number?new r.LongBits(t.interactionId.low>>>0,t.interactionId.high>>>0).toNumber():t.interactionId),t.cnt!=null&&t.hasOwnProperty("cnt")&&(n.cnt=t.cnt),t.msg!=null&&t.hasOwnProperty("msg")&&(n.msg=t.msg),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.live.approom.v1.DoComboReq"},e}(),c.DoComboResp=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){default:t.skipType(a&7);break}}return o},e.fromObject=function(t){return t instanceof u.bilibili.live.approom.v1.DoComboResp?t:new u.bilibili.live.approom.v1.DoComboResp},e.toObject=function(){return{}},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.live.approom.v1.DoComboResp"},e}(),c.SendComboMsgReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.roomId=t.int64();break}case 2:{o.msg=t.string();break}case 3:{o.rnd=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.live.approom.v1.SendComboMsgReq)return t;let i=new u.bilibili.live.approom.v1.SendComboMsgReq;return t.roomId!=null&&(r.Long?(i.roomId=r.Long.fromValue(t.roomId)).unsigned=!1:typeof t.roomId=="string"?i.roomId=parseInt(t.roomId,10):typeof t.roomId=="number"?i.roomId=t.roomId:typeof t.roomId=="object"&&(i.roomId=new r.LongBits(t.roomId.low>>>0,t.roomId.high>>>0).toNumber())),t.msg!=null&&(i.msg=String(t.msg)),t.rnd!=null&&(i.rnd=String(t.rnd)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.roomId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.roomId=i.longs===String?"0":0;n.msg="",n.rnd=""}return t.roomId!=null&&t.hasOwnProperty("roomId")&&(typeof t.roomId=="number"?n.roomId=i.longs===String?String(t.roomId):t.roomId:n.roomId=i.longs===String?r.Long.prototype.toString.call(t.roomId):i.longs===Number?new r.LongBits(t.roomId.low>>>0,t.roomId.high>>>0).toNumber():t.roomId),t.msg!=null&&t.hasOwnProperty("msg")&&(n.msg=t.msg),t.rnd!=null&&t.hasOwnProperty("rnd")&&(n.rnd=t.rnd),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.live.approom.v1.SendComboMsgReq"},e}(),c.SendComboMsgResp=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){default:t.skipType(a&7);break}}return o},e.fromObject=function(t){return t instanceof u.bilibili.live.approom.v1.SendComboMsgResp?t:new u.bilibili.live.approom.v1.SendComboMsgResp},e.toObject=function(){return{}},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.live.approom.v1.SendComboMsgResp"},e}(),c}(),p}(),d.generalinterface=function(){let p={};return p.v1=function(){let c={};return c.Rank=function(){function e(l,t,i){b.rpc.Service.call(this,l,t,i)}return(e.prototype=Object.create(b.rpc.Service.prototype)).constructor=e,e.create=function(t,i,n){return new this(t,i,n)},Object.defineProperty(e.prototype.getOnlineRank=function l(t,i){return this.rpcCall(l,u.bilibili.live.generalinterface.v1.GetOnlineRankReq,u.bilibili.live.generalinterface.v1.GetOnlineRankResp,t,i)},"name",{value:"GetOnlineRank"}),Object.defineProperty(e.prototype.getPopularRankTopInfo=function l(t,i){return this.rpcCall(l,u.bilibili.live.generalinterface.v1.GetPopularRankTopInfoReq,u.bilibili.live.generalinterface.v1.GetPopularRankTopInfoResp,t,i)},"name",{value:"GetPopularRankTopInfo"}),e}(),c.GetOnlineRankReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.ruid=t.int64();break}case 2:{o.roomId=t.int64();break}case 3:{o.page=t.int64();break}case 4:{o.pageSize=t.int64();break}case 5:{o.platform=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.live.generalinterface.v1.GetOnlineRankReq)return t;let i=new u.bilibili.live.generalinterface.v1.GetOnlineRankReq;return t.ruid!=null&&(r.Long?(i.ruid=r.Long.fromValue(t.ruid)).unsigned=!1:typeof t.ruid=="string"?i.ruid=parseInt(t.ruid,10):typeof t.ruid=="number"?i.ruid=t.ruid:typeof t.ruid=="object"&&(i.ruid=new r.LongBits(t.ruid.low>>>0,t.ruid.high>>>0).toNumber())),t.roomId!=null&&(r.Long?(i.roomId=r.Long.fromValue(t.roomId)).unsigned=!1:typeof t.roomId=="string"?i.roomId=parseInt(t.roomId,10):typeof t.roomId=="number"?i.roomId=t.roomId:typeof t.roomId=="object"&&(i.roomId=new r.LongBits(t.roomId.low>>>0,t.roomId.high>>>0).toNumber())),t.page!=null&&(r.Long?(i.page=r.Long.fromValue(t.page)).unsigned=!1:typeof t.page=="string"?i.page=parseInt(t.page,10):typeof t.page=="number"?i.page=t.page:typeof t.page=="object"&&(i.page=new r.LongBits(t.page.low>>>0,t.page.high>>>0).toNumber())),t.pageSize!=null&&(r.Long?(i.pageSize=r.Long.fromValue(t.pageSize)).unsigned=!1:typeof t.pageSize=="string"?i.pageSize=parseInt(t.pageSize,10):typeof t.pageSize=="number"?i.pageSize=t.pageSize:typeof t.pageSize=="object"&&(i.pageSize=new r.LongBits(t.pageSize.low>>>0,t.pageSize.high>>>0).toNumber())),t.platform!=null&&(i.platform=String(t.platform)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.ruid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.ruid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.roomId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.roomId=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.page=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.page=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.pageSize=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.pageSize=i.longs===String?"0":0;n.platform=""}return t.ruid!=null&&t.hasOwnProperty("ruid")&&(typeof t.ruid=="number"?n.ruid=i.longs===String?String(t.ruid):t.ruid:n.ruid=i.longs===String?r.Long.prototype.toString.call(t.ruid):i.longs===Number?new r.LongBits(t.ruid.low>>>0,t.ruid.high>>>0).toNumber():t.ruid),t.roomId!=null&&t.hasOwnProperty("roomId")&&(typeof t.roomId=="number"?n.roomId=i.longs===String?String(t.roomId):t.roomId:n.roomId=i.longs===String?r.Long.prototype.toString.call(t.roomId):i.longs===Number?new r.LongBits(t.roomId.low>>>0,t.roomId.high>>>0).toNumber():t.roomId),t.page!=null&&t.hasOwnProperty("page")&&(typeof t.page=="number"?n.page=i.longs===String?String(t.page):t.page:n.page=i.longs===String?r.Long.prototype.toString.call(t.page):i.longs===Number?new r.LongBits(t.page.low>>>0,t.page.high>>>0).toNumber():t.page),t.pageSize!=null&&t.hasOwnProperty("pageSize")&&(typeof t.pageSize=="number"?n.pageSize=i.longs===String?String(t.pageSize):t.pageSize:n.pageSize=i.longs===String?r.Long.prototype.toString.call(t.pageSize):i.longs===Number?new r.LongBits(t.pageSize.low>>>0,t.pageSize.high>>>0).toNumber():t.pageSize),t.platform!=null&&t.hasOwnProperty("platform")&&(n.platform=t.platform),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.live.generalinterface.v1.GetOnlineRankReq"},e}(),c.GetOnlineRankResp=function(){function e(l){if(this.item=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.item&&o.item.length||(o.item=[]),o.item.push(u.bilibili.live.generalinterface.v1.GetOnlineRankResp.OnlineRankItem.decode(t,t.uint32()));break}case 2:{o.onlineNum=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.live.generalinterface.v1.GetOnlineRankResp)return t;let i=new u.bilibili.live.generalinterface.v1.GetOnlineRankResp;if(t.item){if(!Array.isArray(t.item))throw TypeError(".bilibili.live.generalinterface.v1.GetOnlineRankResp.item: array expected");i.item=[];for(let n=0;n>>0,t.onlineNum.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if((i.arrays||i.defaults)&&(n.item=[]),i.defaults)if(r.Long){let o=new r.Long(0,0,!1);n.onlineNum=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.onlineNum=i.longs===String?"0":0;if(t.item&&t.item.length){n.item=[];for(let o=0;o>>0,t.onlineNum.high>>>0).toNumber():t.onlineNum),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.live.generalinterface.v1.GetOnlineRankResp"},e.OnlineRankItem=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.uid=i.int64();break}case 2:{a.uname=i.string();break}case 3:{a.face=i.string();break}case 4:{a.continueWatch=i.int64();break}case 5:{a.medalInfo=u.bilibili.live.generalinterface.v1.MedalInfo.decode(i,i.uint32());break}case 6:{a.guardLevel=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.live.generalinterface.v1.GetOnlineRankResp.OnlineRankItem)return i;let n=new u.bilibili.live.generalinterface.v1.GetOnlineRankResp.OnlineRankItem;if(i.uid!=null&&(r.Long?(n.uid=r.Long.fromValue(i.uid)).unsigned=!1:typeof i.uid=="string"?n.uid=parseInt(i.uid,10):typeof i.uid=="number"?n.uid=i.uid:typeof i.uid=="object"&&(n.uid=new r.LongBits(i.uid.low>>>0,i.uid.high>>>0).toNumber())),i.uname!=null&&(n.uname=String(i.uname)),i.face!=null&&(n.face=String(i.face)),i.continueWatch!=null&&(r.Long?(n.continueWatch=r.Long.fromValue(i.continueWatch)).unsigned=!1:typeof i.continueWatch=="string"?n.continueWatch=parseInt(i.continueWatch,10):typeof i.continueWatch=="number"?n.continueWatch=i.continueWatch:typeof i.continueWatch=="object"&&(n.continueWatch=new r.LongBits(i.continueWatch.low>>>0,i.continueWatch.high>>>0).toNumber())),i.medalInfo!=null){if(typeof i.medalInfo!="object")throw TypeError(".bilibili.live.generalinterface.v1.GetOnlineRankResp.OnlineRankItem.medalInfo: object expected");n.medalInfo=u.bilibili.live.generalinterface.v1.MedalInfo.fromObject(i.medalInfo)}return i.guardLevel!=null&&(r.Long?(n.guardLevel=r.Long.fromValue(i.guardLevel)).unsigned=!1:typeof i.guardLevel=="string"?n.guardLevel=parseInt(i.guardLevel,10):typeof i.guardLevel=="number"?n.guardLevel=i.guardLevel:typeof i.guardLevel=="object"&&(n.guardLevel=new r.LongBits(i.guardLevel.low>>>0,i.guardLevel.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.uid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.uid=n.longs===String?"0":0;if(o.uname="",o.face="",r.Long){let a=new r.Long(0,0,!1);o.continueWatch=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.continueWatch=n.longs===String?"0":0;if(o.medalInfo=null,r.Long){let a=new r.Long(0,0,!1);o.guardLevel=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.guardLevel=n.longs===String?"0":0}return i.uid!=null&&i.hasOwnProperty("uid")&&(typeof i.uid=="number"?o.uid=n.longs===String?String(i.uid):i.uid:o.uid=n.longs===String?r.Long.prototype.toString.call(i.uid):n.longs===Number?new r.LongBits(i.uid.low>>>0,i.uid.high>>>0).toNumber():i.uid),i.uname!=null&&i.hasOwnProperty("uname")&&(o.uname=i.uname),i.face!=null&&i.hasOwnProperty("face")&&(o.face=i.face),i.continueWatch!=null&&i.hasOwnProperty("continueWatch")&&(typeof i.continueWatch=="number"?o.continueWatch=n.longs===String?String(i.continueWatch):i.continueWatch:o.continueWatch=n.longs===String?r.Long.prototype.toString.call(i.continueWatch):n.longs===Number?new r.LongBits(i.continueWatch.low>>>0,i.continueWatch.high>>>0).toNumber():i.continueWatch),i.medalInfo!=null&&i.hasOwnProperty("medalInfo")&&(o.medalInfo=u.bilibili.live.generalinterface.v1.MedalInfo.toObject(i.medalInfo,n)),i.guardLevel!=null&&i.hasOwnProperty("guardLevel")&&(typeof i.guardLevel=="number"?o.guardLevel=n.longs===String?String(i.guardLevel):i.guardLevel:o.guardLevel=n.longs===String?r.Long.prototype.toString.call(i.guardLevel):n.longs===Number?new r.LongBits(i.guardLevel.low>>>0,i.guardLevel.high>>>0).toNumber():i.guardLevel),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.live.generalinterface.v1.GetOnlineRankResp.OnlineRankItem"},l}(),e}(),c.MedalInfo=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.guardLevel=t.int64();break}case 2:{o.medalColorStart=t.int64();break}case 3:{o.medalColorEnd=t.int64();break}case 4:{o.medalColorBorder=t.int64();break}case 5:{o.medalName=t.string();break}case 6:{o.level=t.int64();break}case 7:{o.targetId=t.int64();break}case 8:{o.isLight=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.live.generalinterface.v1.MedalInfo)return t;let i=new u.bilibili.live.generalinterface.v1.MedalInfo;return t.guardLevel!=null&&(r.Long?(i.guardLevel=r.Long.fromValue(t.guardLevel)).unsigned=!1:typeof t.guardLevel=="string"?i.guardLevel=parseInt(t.guardLevel,10):typeof t.guardLevel=="number"?i.guardLevel=t.guardLevel:typeof t.guardLevel=="object"&&(i.guardLevel=new r.LongBits(t.guardLevel.low>>>0,t.guardLevel.high>>>0).toNumber())),t.medalColorStart!=null&&(r.Long?(i.medalColorStart=r.Long.fromValue(t.medalColorStart)).unsigned=!1:typeof t.medalColorStart=="string"?i.medalColorStart=parseInt(t.medalColorStart,10):typeof t.medalColorStart=="number"?i.medalColorStart=t.medalColorStart:typeof t.medalColorStart=="object"&&(i.medalColorStart=new r.LongBits(t.medalColorStart.low>>>0,t.medalColorStart.high>>>0).toNumber())),t.medalColorEnd!=null&&(r.Long?(i.medalColorEnd=r.Long.fromValue(t.medalColorEnd)).unsigned=!1:typeof t.medalColorEnd=="string"?i.medalColorEnd=parseInt(t.medalColorEnd,10):typeof t.medalColorEnd=="number"?i.medalColorEnd=t.medalColorEnd:typeof t.medalColorEnd=="object"&&(i.medalColorEnd=new r.LongBits(t.medalColorEnd.low>>>0,t.medalColorEnd.high>>>0).toNumber())),t.medalColorBorder!=null&&(r.Long?(i.medalColorBorder=r.Long.fromValue(t.medalColorBorder)).unsigned=!1:typeof t.medalColorBorder=="string"?i.medalColorBorder=parseInt(t.medalColorBorder,10):typeof t.medalColorBorder=="number"?i.medalColorBorder=t.medalColorBorder:typeof t.medalColorBorder=="object"&&(i.medalColorBorder=new r.LongBits(t.medalColorBorder.low>>>0,t.medalColorBorder.high>>>0).toNumber())),t.medalName!=null&&(i.medalName=String(t.medalName)),t.level!=null&&(r.Long?(i.level=r.Long.fromValue(t.level)).unsigned=!1:typeof t.level=="string"?i.level=parseInt(t.level,10):typeof t.level=="number"?i.level=t.level:typeof t.level=="object"&&(i.level=new r.LongBits(t.level.low>>>0,t.level.high>>>0).toNumber())),t.targetId!=null&&(r.Long?(i.targetId=r.Long.fromValue(t.targetId)).unsigned=!1:typeof t.targetId=="string"?i.targetId=parseInt(t.targetId,10):typeof t.targetId=="number"?i.targetId=t.targetId:typeof t.targetId=="object"&&(i.targetId=new r.LongBits(t.targetId.low>>>0,t.targetId.high>>>0).toNumber())),t.isLight!=null&&(r.Long?(i.isLight=r.Long.fromValue(t.isLight)).unsigned=!1:typeof t.isLight=="string"?i.isLight=parseInt(t.isLight,10):typeof t.isLight=="number"?i.isLight=t.isLight:typeof t.isLight=="object"&&(i.isLight=new r.LongBits(t.isLight.low>>>0,t.isLight.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.guardLevel=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.guardLevel=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.medalColorStart=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.medalColorStart=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.medalColorEnd=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.medalColorEnd=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.medalColorBorder=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.medalColorBorder=i.longs===String?"0":0;if(n.medalName="",r.Long){let o=new r.Long(0,0,!1);n.level=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.level=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.targetId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.targetId=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.isLight=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.isLight=i.longs===String?"0":0}return t.guardLevel!=null&&t.hasOwnProperty("guardLevel")&&(typeof t.guardLevel=="number"?n.guardLevel=i.longs===String?String(t.guardLevel):t.guardLevel:n.guardLevel=i.longs===String?r.Long.prototype.toString.call(t.guardLevel):i.longs===Number?new r.LongBits(t.guardLevel.low>>>0,t.guardLevel.high>>>0).toNumber():t.guardLevel),t.medalColorStart!=null&&t.hasOwnProperty("medalColorStart")&&(typeof t.medalColorStart=="number"?n.medalColorStart=i.longs===String?String(t.medalColorStart):t.medalColorStart:n.medalColorStart=i.longs===String?r.Long.prototype.toString.call(t.medalColorStart):i.longs===Number?new r.LongBits(t.medalColorStart.low>>>0,t.medalColorStart.high>>>0).toNumber():t.medalColorStart),t.medalColorEnd!=null&&t.hasOwnProperty("medalColorEnd")&&(typeof t.medalColorEnd=="number"?n.medalColorEnd=i.longs===String?String(t.medalColorEnd):t.medalColorEnd:n.medalColorEnd=i.longs===String?r.Long.prototype.toString.call(t.medalColorEnd):i.longs===Number?new r.LongBits(t.medalColorEnd.low>>>0,t.medalColorEnd.high>>>0).toNumber():t.medalColorEnd),t.medalColorBorder!=null&&t.hasOwnProperty("medalColorBorder")&&(typeof t.medalColorBorder=="number"?n.medalColorBorder=i.longs===String?String(t.medalColorBorder):t.medalColorBorder:n.medalColorBorder=i.longs===String?r.Long.prototype.toString.call(t.medalColorBorder):i.longs===Number?new r.LongBits(t.medalColorBorder.low>>>0,t.medalColorBorder.high>>>0).toNumber():t.medalColorBorder),t.medalName!=null&&t.hasOwnProperty("medalName")&&(n.medalName=t.medalName),t.level!=null&&t.hasOwnProperty("level")&&(typeof t.level=="number"?n.level=i.longs===String?String(t.level):t.level:n.level=i.longs===String?r.Long.prototype.toString.call(t.level):i.longs===Number?new r.LongBits(t.level.low>>>0,t.level.high>>>0).toNumber():t.level),t.targetId!=null&&t.hasOwnProperty("targetId")&&(typeof t.targetId=="number"?n.targetId=i.longs===String?String(t.targetId):t.targetId:n.targetId=i.longs===String?r.Long.prototype.toString.call(t.targetId):i.longs===Number?new r.LongBits(t.targetId.low>>>0,t.targetId.high>>>0).toNumber():t.targetId),t.isLight!=null&&t.hasOwnProperty("isLight")&&(typeof t.isLight=="number"?n.isLight=i.longs===String?String(t.isLight):t.isLight:n.isLight=i.longs===String?r.Long.prototype.toString.call(t.isLight):i.longs===Number?new r.LongBits(t.isLight.low>>>0,t.isLight.high>>>0).toNumber():t.isLight),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.live.generalinterface.v1.MedalInfo"},e}(),c.GetPopularRankTopInfoReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){default:t.skipType(a&7);break}}return o},e.fromObject=function(t){return t instanceof u.bilibili.live.generalinterface.v1.GetPopularRankTopInfoReq?t:new u.bilibili.live.generalinterface.v1.GetPopularRankTopInfoReq},e.toObject=function(){return{}},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.live.generalinterface.v1.GetPopularRankTopInfoReq"},e}(),c.GetPopularRankTopInfoResp=function(){function e(l){if(this.list=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.list&&o.list.length||(o.list=[]),o.list.push(u.bilibili.live.generalinterface.v1.GetPopularRankTopInfoResp.PopularAnchorRank.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.live.generalinterface.v1.GetPopularRankTopInfoResp)return t;let i=new u.bilibili.live.generalinterface.v1.GetPopularRankTopInfoResp;if(t.list){if(!Array.isArray(t.list))throw TypeError(".bilibili.live.generalinterface.v1.GetPopularRankTopInfoResp.list: array expected");i.list=[];for(let n=0;n>>3){case 1:{a.uid=i.int64();break}case 2:{a.rank=i.int64();break}case 3:{a.score=i.int64();break}case 4:{a.roomId=i.int64();break}case 5:{a.title=i.string();break}case 6:{a.pcu=i.uint64();break}case 7:{a.watchedNum=i.int64();break}case 8:{a.roomLink=i.string();break}case 9:{a.areaId=i.int64();break}case 10:{a.parentAreaId=i.int64();break}case 11:{a.liveStartTime=i.int64();break}case 12:{a.liveStatus=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.live.generalinterface.v1.GetPopularRankTopInfoResp.PopularAnchorRank)return i;let n=new u.bilibili.live.generalinterface.v1.GetPopularRankTopInfoResp.PopularAnchorRank;return i.uid!=null&&(r.Long?(n.uid=r.Long.fromValue(i.uid)).unsigned=!1:typeof i.uid=="string"?n.uid=parseInt(i.uid,10):typeof i.uid=="number"?n.uid=i.uid:typeof i.uid=="object"&&(n.uid=new r.LongBits(i.uid.low>>>0,i.uid.high>>>0).toNumber())),i.rank!=null&&(r.Long?(n.rank=r.Long.fromValue(i.rank)).unsigned=!1:typeof i.rank=="string"?n.rank=parseInt(i.rank,10):typeof i.rank=="number"?n.rank=i.rank:typeof i.rank=="object"&&(n.rank=new r.LongBits(i.rank.low>>>0,i.rank.high>>>0).toNumber())),i.score!=null&&(r.Long?(n.score=r.Long.fromValue(i.score)).unsigned=!1:typeof i.score=="string"?n.score=parseInt(i.score,10):typeof i.score=="number"?n.score=i.score:typeof i.score=="object"&&(n.score=new r.LongBits(i.score.low>>>0,i.score.high>>>0).toNumber())),i.roomId!=null&&(r.Long?(n.roomId=r.Long.fromValue(i.roomId)).unsigned=!1:typeof i.roomId=="string"?n.roomId=parseInt(i.roomId,10):typeof i.roomId=="number"?n.roomId=i.roomId:typeof i.roomId=="object"&&(n.roomId=new r.LongBits(i.roomId.low>>>0,i.roomId.high>>>0).toNumber())),i.title!=null&&(n.title=String(i.title)),i.pcu!=null&&(r.Long?(n.pcu=r.Long.fromValue(i.pcu)).unsigned=!0:typeof i.pcu=="string"?n.pcu=parseInt(i.pcu,10):typeof i.pcu=="number"?n.pcu=i.pcu:typeof i.pcu=="object"&&(n.pcu=new r.LongBits(i.pcu.low>>>0,i.pcu.high>>>0).toNumber(!0))),i.watchedNum!=null&&(r.Long?(n.watchedNum=r.Long.fromValue(i.watchedNum)).unsigned=!1:typeof i.watchedNum=="string"?n.watchedNum=parseInt(i.watchedNum,10):typeof i.watchedNum=="number"?n.watchedNum=i.watchedNum:typeof i.watchedNum=="object"&&(n.watchedNum=new r.LongBits(i.watchedNum.low>>>0,i.watchedNum.high>>>0).toNumber())),i.roomLink!=null&&(n.roomLink=String(i.roomLink)),i.areaId!=null&&(r.Long?(n.areaId=r.Long.fromValue(i.areaId)).unsigned=!1:typeof i.areaId=="string"?n.areaId=parseInt(i.areaId,10):typeof i.areaId=="number"?n.areaId=i.areaId:typeof i.areaId=="object"&&(n.areaId=new r.LongBits(i.areaId.low>>>0,i.areaId.high>>>0).toNumber())),i.parentAreaId!=null&&(r.Long?(n.parentAreaId=r.Long.fromValue(i.parentAreaId)).unsigned=!1:typeof i.parentAreaId=="string"?n.parentAreaId=parseInt(i.parentAreaId,10):typeof i.parentAreaId=="number"?n.parentAreaId=i.parentAreaId:typeof i.parentAreaId=="object"&&(n.parentAreaId=new r.LongBits(i.parentAreaId.low>>>0,i.parentAreaId.high>>>0).toNumber())),i.liveStartTime!=null&&(r.Long?(n.liveStartTime=r.Long.fromValue(i.liveStartTime)).unsigned=!1:typeof i.liveStartTime=="string"?n.liveStartTime=parseInt(i.liveStartTime,10):typeof i.liveStartTime=="number"?n.liveStartTime=i.liveStartTime:typeof i.liveStartTime=="object"&&(n.liveStartTime=new r.LongBits(i.liveStartTime.low>>>0,i.liveStartTime.high>>>0).toNumber())),i.liveStatus!=null&&(r.Long?(n.liveStatus=r.Long.fromValue(i.liveStatus)).unsigned=!1:typeof i.liveStatus=="string"?n.liveStatus=parseInt(i.liveStatus,10):typeof i.liveStatus=="number"?n.liveStatus=i.liveStatus:typeof i.liveStatus=="object"&&(n.liveStatus=new r.LongBits(i.liveStatus.low>>>0,i.liveStatus.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.uid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.uid=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.rank=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.rank=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.score=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.score=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.roomId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.roomId=n.longs===String?"0":0;if(o.title="",r.Long){let a=new r.Long(0,0,!0);o.pcu=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.pcu=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.watchedNum=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.watchedNum=n.longs===String?"0":0;if(o.roomLink="",r.Long){let a=new r.Long(0,0,!1);o.areaId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.areaId=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.parentAreaId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.parentAreaId=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.liveStartTime=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.liveStartTime=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.liveStatus=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.liveStatus=n.longs===String?"0":0}return i.uid!=null&&i.hasOwnProperty("uid")&&(typeof i.uid=="number"?o.uid=n.longs===String?String(i.uid):i.uid:o.uid=n.longs===String?r.Long.prototype.toString.call(i.uid):n.longs===Number?new r.LongBits(i.uid.low>>>0,i.uid.high>>>0).toNumber():i.uid),i.rank!=null&&i.hasOwnProperty("rank")&&(typeof i.rank=="number"?o.rank=n.longs===String?String(i.rank):i.rank:o.rank=n.longs===String?r.Long.prototype.toString.call(i.rank):n.longs===Number?new r.LongBits(i.rank.low>>>0,i.rank.high>>>0).toNumber():i.rank),i.score!=null&&i.hasOwnProperty("score")&&(typeof i.score=="number"?o.score=n.longs===String?String(i.score):i.score:o.score=n.longs===String?r.Long.prototype.toString.call(i.score):n.longs===Number?new r.LongBits(i.score.low>>>0,i.score.high>>>0).toNumber():i.score),i.roomId!=null&&i.hasOwnProperty("roomId")&&(typeof i.roomId=="number"?o.roomId=n.longs===String?String(i.roomId):i.roomId:o.roomId=n.longs===String?r.Long.prototype.toString.call(i.roomId):n.longs===Number?new r.LongBits(i.roomId.low>>>0,i.roomId.high>>>0).toNumber():i.roomId),i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.pcu!=null&&i.hasOwnProperty("pcu")&&(typeof i.pcu=="number"?o.pcu=n.longs===String?String(i.pcu):i.pcu:o.pcu=n.longs===String?r.Long.prototype.toString.call(i.pcu):n.longs===Number?new r.LongBits(i.pcu.low>>>0,i.pcu.high>>>0).toNumber(!0):i.pcu),i.watchedNum!=null&&i.hasOwnProperty("watchedNum")&&(typeof i.watchedNum=="number"?o.watchedNum=n.longs===String?String(i.watchedNum):i.watchedNum:o.watchedNum=n.longs===String?r.Long.prototype.toString.call(i.watchedNum):n.longs===Number?new r.LongBits(i.watchedNum.low>>>0,i.watchedNum.high>>>0).toNumber():i.watchedNum),i.roomLink!=null&&i.hasOwnProperty("roomLink")&&(o.roomLink=i.roomLink),i.areaId!=null&&i.hasOwnProperty("areaId")&&(typeof i.areaId=="number"?o.areaId=n.longs===String?String(i.areaId):i.areaId:o.areaId=n.longs===String?r.Long.prototype.toString.call(i.areaId):n.longs===Number?new r.LongBits(i.areaId.low>>>0,i.areaId.high>>>0).toNumber():i.areaId),i.parentAreaId!=null&&i.hasOwnProperty("parentAreaId")&&(typeof i.parentAreaId=="number"?o.parentAreaId=n.longs===String?String(i.parentAreaId):i.parentAreaId:o.parentAreaId=n.longs===String?r.Long.prototype.toString.call(i.parentAreaId):n.longs===Number?new r.LongBits(i.parentAreaId.low>>>0,i.parentAreaId.high>>>0).toNumber():i.parentAreaId),i.liveStartTime!=null&&i.hasOwnProperty("liveStartTime")&&(typeof i.liveStartTime=="number"?o.liveStartTime=n.longs===String?String(i.liveStartTime):i.liveStartTime:o.liveStartTime=n.longs===String?r.Long.prototype.toString.call(i.liveStartTime):n.longs===Number?new r.LongBits(i.liveStartTime.low>>>0,i.liveStartTime.high>>>0).toNumber():i.liveStartTime),i.liveStatus!=null&&i.hasOwnProperty("liveStatus")&&(typeof i.liveStatus=="number"?o.liveStatus=n.longs===String?String(i.liveStatus):i.liveStatus:o.liveStatus=n.longs===String?r.Long.prototype.toString.call(i.liveStatus):n.longs===Number?new r.LongBits(i.liveStatus.low>>>0,i.liveStatus.high>>>0).toNumber():i.liveStatus),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.live.generalinterface.v1.GetPopularRankTopInfoResp.PopularAnchorRank"},l}(),e}(),c}(),p}(),d.rtc=function(){let p={};return p.datachannel=function(){let c={};return c.RequestMessage=function(){function e(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.requestId=i.int64();break}case 2:{a.channelId=i.uint64();break}case 3:{a.uid=i.uint64();break}case 4:{a.join=u.bilibili.live.rtc.datachannel.JoinReq.decode(i,i.uint32());break}case 5:{a.leave=u.bilibili.live.rtc.datachannel.LeaveReq.decode(i,i.uint32());break}case 6:{a.pub=u.bilibili.live.rtc.datachannel.PubReq.decode(i,i.uint32());break}case 7:{a.sub=u.bilibili.live.rtc.datachannel.SubReq.decode(i,i.uint32());break}case 8:{a.unSub=u.bilibili.live.rtc.datachannel.UnSubReq.decode(i,i.uint32());break}case 9:{a.mute=u.bilibili.live.rtc.datachannel.MuteReq.decode(i,i.uint32());break}case 10:{a.message=u.bilibili.live.rtc.datachannel.UserMsgReq.decode(i,i.uint32());break}case 11:{a.members=u.bilibili.live.rtc.datachannel.MembersReq.decode(i,i.uint32());break}case 12:{a.unPub=u.bilibili.live.rtc.datachannel.UnPubReq.decode(i,i.uint32());break}case 13:{a.updateSub=u.bilibili.live.rtc.datachannel.UpdateSubReq.decode(i,i.uint32());break}case 14:{a.clientStats=u.bilibili.live.rtc.datachannel.ClientStatsReq.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},e.fromObject=function(i){if(i instanceof u.bilibili.live.rtc.datachannel.RequestMessage)return i;let n=new u.bilibili.live.rtc.datachannel.RequestMessage;if(i.requestId!=null&&(r.Long?(n.requestId=r.Long.fromValue(i.requestId)).unsigned=!1:typeof i.requestId=="string"?n.requestId=parseInt(i.requestId,10):typeof i.requestId=="number"?n.requestId=i.requestId:typeof i.requestId=="object"&&(n.requestId=new r.LongBits(i.requestId.low>>>0,i.requestId.high>>>0).toNumber())),i.channelId!=null&&(r.Long?(n.channelId=r.Long.fromValue(i.channelId)).unsigned=!0:typeof i.channelId=="string"?n.channelId=parseInt(i.channelId,10):typeof i.channelId=="number"?n.channelId=i.channelId:typeof i.channelId=="object"&&(n.channelId=new r.LongBits(i.channelId.low>>>0,i.channelId.high>>>0).toNumber(!0))),i.uid!=null&&(r.Long?(n.uid=r.Long.fromValue(i.uid)).unsigned=!0:typeof i.uid=="string"?n.uid=parseInt(i.uid,10):typeof i.uid=="number"?n.uid=i.uid:typeof i.uid=="object"&&(n.uid=new r.LongBits(i.uid.low>>>0,i.uid.high>>>0).toNumber(!0))),i.join!=null){if(typeof i.join!="object")throw TypeError(".bilibili.live.rtc.datachannel.RequestMessage.join: object expected");n.join=u.bilibili.live.rtc.datachannel.JoinReq.fromObject(i.join)}if(i.leave!=null){if(typeof i.leave!="object")throw TypeError(".bilibili.live.rtc.datachannel.RequestMessage.leave: object expected");n.leave=u.bilibili.live.rtc.datachannel.LeaveReq.fromObject(i.leave)}if(i.pub!=null){if(typeof i.pub!="object")throw TypeError(".bilibili.live.rtc.datachannel.RequestMessage.pub: object expected");n.pub=u.bilibili.live.rtc.datachannel.PubReq.fromObject(i.pub)}if(i.sub!=null){if(typeof i.sub!="object")throw TypeError(".bilibili.live.rtc.datachannel.RequestMessage.sub: object expected");n.sub=u.bilibili.live.rtc.datachannel.SubReq.fromObject(i.sub)}if(i.unSub!=null){if(typeof i.unSub!="object")throw TypeError(".bilibili.live.rtc.datachannel.RequestMessage.unSub: object expected");n.unSub=u.bilibili.live.rtc.datachannel.UnSubReq.fromObject(i.unSub)}if(i.mute!=null){if(typeof i.mute!="object")throw TypeError(".bilibili.live.rtc.datachannel.RequestMessage.mute: object expected");n.mute=u.bilibili.live.rtc.datachannel.MuteReq.fromObject(i.mute)}if(i.message!=null){if(typeof i.message!="object")throw TypeError(".bilibili.live.rtc.datachannel.RequestMessage.message: object expected");n.message=u.bilibili.live.rtc.datachannel.UserMsgReq.fromObject(i.message)}if(i.members!=null){if(typeof i.members!="object")throw TypeError(".bilibili.live.rtc.datachannel.RequestMessage.members: object expected");n.members=u.bilibili.live.rtc.datachannel.MembersReq.fromObject(i.members)}if(i.unPub!=null){if(typeof i.unPub!="object")throw TypeError(".bilibili.live.rtc.datachannel.RequestMessage.unPub: object expected");n.unPub=u.bilibili.live.rtc.datachannel.UnPubReq.fromObject(i.unPub)}if(i.updateSub!=null){if(typeof i.updateSub!="object")throw TypeError(".bilibili.live.rtc.datachannel.RequestMessage.updateSub: object expected");n.updateSub=u.bilibili.live.rtc.datachannel.UpdateSubReq.fromObject(i.updateSub)}if(i.clientStats!=null){if(typeof i.clientStats!="object")throw TypeError(".bilibili.live.rtc.datachannel.RequestMessage.clientStats: object expected");n.clientStats=u.bilibili.live.rtc.datachannel.ClientStatsReq.fromObject(i.clientStats)}return n},e.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.requestId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.requestId=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!0);o.channelId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.channelId=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!0);o.uid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.uid=n.longs===String?"0":0}return i.requestId!=null&&i.hasOwnProperty("requestId")&&(typeof i.requestId=="number"?o.requestId=n.longs===String?String(i.requestId):i.requestId:o.requestId=n.longs===String?r.Long.prototype.toString.call(i.requestId):n.longs===Number?new r.LongBits(i.requestId.low>>>0,i.requestId.high>>>0).toNumber():i.requestId),i.channelId!=null&&i.hasOwnProperty("channelId")&&(typeof i.channelId=="number"?o.channelId=n.longs===String?String(i.channelId):i.channelId:o.channelId=n.longs===String?r.Long.prototype.toString.call(i.channelId):n.longs===Number?new r.LongBits(i.channelId.low>>>0,i.channelId.high>>>0).toNumber(!0):i.channelId),i.uid!=null&&i.hasOwnProperty("uid")&&(typeof i.uid=="number"?o.uid=n.longs===String?String(i.uid):i.uid:o.uid=n.longs===String?r.Long.prototype.toString.call(i.uid):n.longs===Number?new r.LongBits(i.uid.low>>>0,i.uid.high>>>0).toNumber(!0):i.uid),i.join!=null&&i.hasOwnProperty("join")&&(o.join=u.bilibili.live.rtc.datachannel.JoinReq.toObject(i.join,n),n.oneofs&&(o.req="join")),i.leave!=null&&i.hasOwnProperty("leave")&&(o.leave=u.bilibili.live.rtc.datachannel.LeaveReq.toObject(i.leave,n),n.oneofs&&(o.req="leave")),i.pub!=null&&i.hasOwnProperty("pub")&&(o.pub=u.bilibili.live.rtc.datachannel.PubReq.toObject(i.pub,n),n.oneofs&&(o.req="pub")),i.sub!=null&&i.hasOwnProperty("sub")&&(o.sub=u.bilibili.live.rtc.datachannel.SubReq.toObject(i.sub,n),n.oneofs&&(o.req="sub")),i.unSub!=null&&i.hasOwnProperty("unSub")&&(o.unSub=u.bilibili.live.rtc.datachannel.UnSubReq.toObject(i.unSub,n),n.oneofs&&(o.req="unSub")),i.mute!=null&&i.hasOwnProperty("mute")&&(o.mute=u.bilibili.live.rtc.datachannel.MuteReq.toObject(i.mute,n),n.oneofs&&(o.req="mute")),i.message!=null&&i.hasOwnProperty("message")&&(o.message=u.bilibili.live.rtc.datachannel.UserMsgReq.toObject(i.message,n),n.oneofs&&(o.req="message")),i.members!=null&&i.hasOwnProperty("members")&&(o.members=u.bilibili.live.rtc.datachannel.MembersReq.toObject(i.members,n),n.oneofs&&(o.req="members")),i.unPub!=null&&i.hasOwnProperty("unPub")&&(o.unPub=u.bilibili.live.rtc.datachannel.UnPubReq.toObject(i.unPub,n),n.oneofs&&(o.req="unPub")),i.updateSub!=null&&i.hasOwnProperty("updateSub")&&(o.updateSub=u.bilibili.live.rtc.datachannel.UpdateSubReq.toObject(i.updateSub,n),n.oneofs&&(o.req="updateSub")),i.clientStats!=null&&i.hasOwnProperty("clientStats")&&(o.clientStats=u.bilibili.live.rtc.datachannel.ClientStatsReq.toObject(i.clientStats,n),n.oneofs&&(o.req="clientStats")),o},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.live.rtc.datachannel.RequestMessage"},e}(),c.ResponseMessage=function(){function e(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.requestId=i.int64();break}case 2:{a.code=i.uint32();break}case 3:{a.message=i.string();break}case 4:{a.joinResp=u.bilibili.live.rtc.datachannel.JoinResp.decode(i,i.uint32());break}case 5:{a.leaveResp=u.bilibili.live.rtc.datachannel.LeaveResp.decode(i,i.uint32());break}case 6:{a.pubResp=u.bilibili.live.rtc.datachannel.PubResp.decode(i,i.uint32());break}case 7:{a.subResp=u.bilibili.live.rtc.datachannel.SubResp.decode(i,i.uint32());break}case 8:{a.unSubResp=u.bilibili.live.rtc.datachannel.UnSubResp.decode(i,i.uint32());break}case 9:{a.muteResp=u.bilibili.live.rtc.datachannel.UserMuteResp.decode(i,i.uint32());break}case 10:{a.msgResp=u.bilibili.live.rtc.datachannel.UserMsgResp.decode(i,i.uint32());break}case 11:{a.joinNotify=u.bilibili.live.rtc.datachannel.JoinNotify.decode(i,i.uint32());break}case 12:{a.leaveNotify=u.bilibili.live.rtc.datachannel.LeaveNotify.decode(i,i.uint32());break}case 13:{a.muteNotify=u.bilibili.live.rtc.datachannel.MuteNotify.decode(i,i.uint32());break}case 14:{a.pubNotify=u.bilibili.live.rtc.datachannel.PubNotify.decode(i,i.uint32());break}case 15:{a.msgNotify=u.bilibili.live.rtc.datachannel.MessageNotify.decode(i,i.uint32());break}case 16:{a.membersResp=u.bilibili.live.rtc.datachannel.MembersResp.decode(i,i.uint32());break}case 17:{a.tokenNotify=u.bilibili.live.rtc.datachannel.TokenNotify.decode(i,i.uint32());break}case 18:{a.unPubResp=u.bilibili.live.rtc.datachannel.UnPubResp.decode(i,i.uint32());break}case 19:{a.unPubNotify=u.bilibili.live.rtc.datachannel.UnPubNotify.decode(i,i.uint32());break}case 20:{a.updateSubResp=u.bilibili.live.rtc.datachannel.UpdateSubResp.decode(i,i.uint32());break}case 21:{a.clientStatsResp=u.bilibili.live.rtc.datachannel.ClientStatsResp.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},e.fromObject=function(i){if(i instanceof u.bilibili.live.rtc.datachannel.ResponseMessage)return i;let n=new u.bilibili.live.rtc.datachannel.ResponseMessage;if(i.requestId!=null&&(r.Long?(n.requestId=r.Long.fromValue(i.requestId)).unsigned=!1:typeof i.requestId=="string"?n.requestId=parseInt(i.requestId,10):typeof i.requestId=="number"?n.requestId=i.requestId:typeof i.requestId=="object"&&(n.requestId=new r.LongBits(i.requestId.low>>>0,i.requestId.high>>>0).toNumber())),i.code!=null&&(n.code=i.code>>>0),i.message!=null&&(n.message=String(i.message)),i.joinResp!=null){if(typeof i.joinResp!="object")throw TypeError(".bilibili.live.rtc.datachannel.ResponseMessage.joinResp: object expected");n.joinResp=u.bilibili.live.rtc.datachannel.JoinResp.fromObject(i.joinResp)}if(i.leaveResp!=null){if(typeof i.leaveResp!="object")throw TypeError(".bilibili.live.rtc.datachannel.ResponseMessage.leaveResp: object expected");n.leaveResp=u.bilibili.live.rtc.datachannel.LeaveResp.fromObject(i.leaveResp)}if(i.pubResp!=null){if(typeof i.pubResp!="object")throw TypeError(".bilibili.live.rtc.datachannel.ResponseMessage.pubResp: object expected");n.pubResp=u.bilibili.live.rtc.datachannel.PubResp.fromObject(i.pubResp)}if(i.subResp!=null){if(typeof i.subResp!="object")throw TypeError(".bilibili.live.rtc.datachannel.ResponseMessage.subResp: object expected");n.subResp=u.bilibili.live.rtc.datachannel.SubResp.fromObject(i.subResp)}if(i.unSubResp!=null){if(typeof i.unSubResp!="object")throw TypeError(".bilibili.live.rtc.datachannel.ResponseMessage.unSubResp: object expected");n.unSubResp=u.bilibili.live.rtc.datachannel.UnSubResp.fromObject(i.unSubResp)}if(i.muteResp!=null){if(typeof i.muteResp!="object")throw TypeError(".bilibili.live.rtc.datachannel.ResponseMessage.muteResp: object expected");n.muteResp=u.bilibili.live.rtc.datachannel.UserMuteResp.fromObject(i.muteResp)}if(i.msgResp!=null){if(typeof i.msgResp!="object")throw TypeError(".bilibili.live.rtc.datachannel.ResponseMessage.msgResp: object expected");n.msgResp=u.bilibili.live.rtc.datachannel.UserMsgResp.fromObject(i.msgResp)}if(i.joinNotify!=null){if(typeof i.joinNotify!="object")throw TypeError(".bilibili.live.rtc.datachannel.ResponseMessage.joinNotify: object expected");n.joinNotify=u.bilibili.live.rtc.datachannel.JoinNotify.fromObject(i.joinNotify)}if(i.leaveNotify!=null){if(typeof i.leaveNotify!="object")throw TypeError(".bilibili.live.rtc.datachannel.ResponseMessage.leaveNotify: object expected");n.leaveNotify=u.bilibili.live.rtc.datachannel.LeaveNotify.fromObject(i.leaveNotify)}if(i.muteNotify!=null){if(typeof i.muteNotify!="object")throw TypeError(".bilibili.live.rtc.datachannel.ResponseMessage.muteNotify: object expected");n.muteNotify=u.bilibili.live.rtc.datachannel.MuteNotify.fromObject(i.muteNotify)}if(i.pubNotify!=null){if(typeof i.pubNotify!="object")throw TypeError(".bilibili.live.rtc.datachannel.ResponseMessage.pubNotify: object expected");n.pubNotify=u.bilibili.live.rtc.datachannel.PubNotify.fromObject(i.pubNotify)}if(i.msgNotify!=null){if(typeof i.msgNotify!="object")throw TypeError(".bilibili.live.rtc.datachannel.ResponseMessage.msgNotify: object expected");n.msgNotify=u.bilibili.live.rtc.datachannel.MessageNotify.fromObject(i.msgNotify)}if(i.membersResp!=null){if(typeof i.membersResp!="object")throw TypeError(".bilibili.live.rtc.datachannel.ResponseMessage.membersResp: object expected");n.membersResp=u.bilibili.live.rtc.datachannel.MembersResp.fromObject(i.membersResp)}if(i.tokenNotify!=null){if(typeof i.tokenNotify!="object")throw TypeError(".bilibili.live.rtc.datachannel.ResponseMessage.tokenNotify: object expected");n.tokenNotify=u.bilibili.live.rtc.datachannel.TokenNotify.fromObject(i.tokenNotify)}if(i.unPubResp!=null){if(typeof i.unPubResp!="object")throw TypeError(".bilibili.live.rtc.datachannel.ResponseMessage.unPubResp: object expected");n.unPubResp=u.bilibili.live.rtc.datachannel.UnPubResp.fromObject(i.unPubResp)}if(i.unPubNotify!=null){if(typeof i.unPubNotify!="object")throw TypeError(".bilibili.live.rtc.datachannel.ResponseMessage.unPubNotify: object expected");n.unPubNotify=u.bilibili.live.rtc.datachannel.UnPubNotify.fromObject(i.unPubNotify)}if(i.updateSubResp!=null){if(typeof i.updateSubResp!="object")throw TypeError(".bilibili.live.rtc.datachannel.ResponseMessage.updateSubResp: object expected");n.updateSubResp=u.bilibili.live.rtc.datachannel.UpdateSubResp.fromObject(i.updateSubResp)}if(i.clientStatsResp!=null){if(typeof i.clientStatsResp!="object")throw TypeError(".bilibili.live.rtc.datachannel.ResponseMessage.clientStatsResp: object expected");n.clientStatsResp=u.bilibili.live.rtc.datachannel.ClientStatsResp.fromObject(i.clientStatsResp)}return n},e.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.requestId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.requestId=n.longs===String?"0":0;o.code=0,o.message=""}return i.requestId!=null&&i.hasOwnProperty("requestId")&&(typeof i.requestId=="number"?o.requestId=n.longs===String?String(i.requestId):i.requestId:o.requestId=n.longs===String?r.Long.prototype.toString.call(i.requestId):n.longs===Number?new r.LongBits(i.requestId.low>>>0,i.requestId.high>>>0).toNumber():i.requestId),i.code!=null&&i.hasOwnProperty("code")&&(o.code=i.code),i.message!=null&&i.hasOwnProperty("message")&&(o.message=i.message),i.joinResp!=null&&i.hasOwnProperty("joinResp")&&(o.joinResp=u.bilibili.live.rtc.datachannel.JoinResp.toObject(i.joinResp,n),n.oneofs&&(o.data="joinResp")),i.leaveResp!=null&&i.hasOwnProperty("leaveResp")&&(o.leaveResp=u.bilibili.live.rtc.datachannel.LeaveResp.toObject(i.leaveResp,n),n.oneofs&&(o.data="leaveResp")),i.pubResp!=null&&i.hasOwnProperty("pubResp")&&(o.pubResp=u.bilibili.live.rtc.datachannel.PubResp.toObject(i.pubResp,n),n.oneofs&&(o.data="pubResp")),i.subResp!=null&&i.hasOwnProperty("subResp")&&(o.subResp=u.bilibili.live.rtc.datachannel.SubResp.toObject(i.subResp,n),n.oneofs&&(o.data="subResp")),i.unSubResp!=null&&i.hasOwnProperty("unSubResp")&&(o.unSubResp=u.bilibili.live.rtc.datachannel.UnSubResp.toObject(i.unSubResp,n),n.oneofs&&(o.data="unSubResp")),i.muteResp!=null&&i.hasOwnProperty("muteResp")&&(o.muteResp=u.bilibili.live.rtc.datachannel.UserMuteResp.toObject(i.muteResp,n),n.oneofs&&(o.data="muteResp")),i.msgResp!=null&&i.hasOwnProperty("msgResp")&&(o.msgResp=u.bilibili.live.rtc.datachannel.UserMsgResp.toObject(i.msgResp,n),n.oneofs&&(o.data="msgResp")),i.joinNotify!=null&&i.hasOwnProperty("joinNotify")&&(o.joinNotify=u.bilibili.live.rtc.datachannel.JoinNotify.toObject(i.joinNotify,n),n.oneofs&&(o.data="joinNotify")),i.leaveNotify!=null&&i.hasOwnProperty("leaveNotify")&&(o.leaveNotify=u.bilibili.live.rtc.datachannel.LeaveNotify.toObject(i.leaveNotify,n),n.oneofs&&(o.data="leaveNotify")),i.muteNotify!=null&&i.hasOwnProperty("muteNotify")&&(o.muteNotify=u.bilibili.live.rtc.datachannel.MuteNotify.toObject(i.muteNotify,n),n.oneofs&&(o.data="muteNotify")),i.pubNotify!=null&&i.hasOwnProperty("pubNotify")&&(o.pubNotify=u.bilibili.live.rtc.datachannel.PubNotify.toObject(i.pubNotify,n),n.oneofs&&(o.data="pubNotify")),i.msgNotify!=null&&i.hasOwnProperty("msgNotify")&&(o.msgNotify=u.bilibili.live.rtc.datachannel.MessageNotify.toObject(i.msgNotify,n),n.oneofs&&(o.data="msgNotify")),i.membersResp!=null&&i.hasOwnProperty("membersResp")&&(o.membersResp=u.bilibili.live.rtc.datachannel.MembersResp.toObject(i.membersResp,n),n.oneofs&&(o.data="membersResp")),i.tokenNotify!=null&&i.hasOwnProperty("tokenNotify")&&(o.tokenNotify=u.bilibili.live.rtc.datachannel.TokenNotify.toObject(i.tokenNotify,n),n.oneofs&&(o.data="tokenNotify")),i.unPubResp!=null&&i.hasOwnProperty("unPubResp")&&(o.unPubResp=u.bilibili.live.rtc.datachannel.UnPubResp.toObject(i.unPubResp,n),n.oneofs&&(o.data="unPubResp")),i.unPubNotify!=null&&i.hasOwnProperty("unPubNotify")&&(o.unPubNotify=u.bilibili.live.rtc.datachannel.UnPubNotify.toObject(i.unPubNotify,n),n.oneofs&&(o.data="unPubNotify")),i.updateSubResp!=null&&i.hasOwnProperty("updateSubResp")&&(o.updateSubResp=u.bilibili.live.rtc.datachannel.UpdateSubResp.toObject(i.updateSubResp,n),n.oneofs&&(o.data="updateSubResp")),i.clientStatsResp!=null&&i.hasOwnProperty("clientStatsResp")&&(o.clientStatsResp=u.bilibili.live.rtc.datachannel.ClientStatsResp.toObject(i.clientStatsResp,n),n.oneofs&&(o.data="clientStatsResp")),o},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.live.rtc.datachannel.ResponseMessage"},e}(),c.JoinReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.user=u.bilibili.live.rtc.User.decode(t,t.uint32());break}case 2:{o.autoSubscribe=t.bool();break}case 3:{o.token=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.live.rtc.datachannel.JoinReq)return t;let i=new u.bilibili.live.rtc.datachannel.JoinReq;if(t.user!=null){if(typeof t.user!="object")throw TypeError(".bilibili.live.rtc.datachannel.JoinReq.user: object expected");i.user=u.bilibili.live.rtc.User.fromObject(t.user)}return t.autoSubscribe!=null&&(i.autoSubscribe=!!t.autoSubscribe),t.token!=null&&(i.token=String(t.token)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.user=null,n.autoSubscribe=!1,n.token=""),t.user!=null&&t.hasOwnProperty("user")&&(n.user=u.bilibili.live.rtc.User.toObject(t.user,i)),t.autoSubscribe!=null&&t.hasOwnProperty("autoSubscribe")&&(n.autoSubscribe=t.autoSubscribe),t.token!=null&&t.hasOwnProperty("token")&&(n.token=t.token),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.live.rtc.datachannel.JoinReq"},e}(),c.JoinResp=function(){function e(l){if(this.users=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.users&&o.users.length||(o.users=[]),o.users.push(u.bilibili.live.rtc.User.decode(t,t.uint32()));break}case 2:{o.callId=t.uint32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.live.rtc.datachannel.JoinResp)return t;let i=new u.bilibili.live.rtc.datachannel.JoinResp;if(t.users){if(!Array.isArray(t.users))throw TypeError(".bilibili.live.rtc.datachannel.JoinResp.users: array expected");i.users=[];for(let n=0;n>>0),i},e.toObject=function(t,i){i||(i={});let n={};if((i.arrays||i.defaults)&&(n.users=[]),i.defaults&&(n.callId=0),t.users&&t.users.length){n.users=[];for(let o=0;o>>3){default:t.skipType(a&7);break}}return o},e.fromObject=function(t){return t instanceof u.bilibili.live.rtc.datachannel.LeaveReq?t:new u.bilibili.live.rtc.datachannel.LeaveReq},e.toObject=function(){return{}},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.live.rtc.datachannel.LeaveReq"},e}(),c.LeaveResp=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){default:t.skipType(a&7);break}}return o},e.fromObject=function(t){return t instanceof u.bilibili.live.rtc.datachannel.LeaveResp?t:new u.bilibili.live.rtc.datachannel.LeaveResp},e.toObject=function(){return{}},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.live.rtc.datachannel.LeaveResp"},e}(),c.PubReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.sdp=t.string();break}case 2:{o.stream=u.bilibili.live.rtc.Stream.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.live.rtc.datachannel.PubReq)return t;let i=new u.bilibili.live.rtc.datachannel.PubReq;if(t.sdp!=null&&(i.sdp=String(t.sdp)),t.stream!=null){if(typeof t.stream!="object")throw TypeError(".bilibili.live.rtc.datachannel.PubReq.stream: object expected");i.stream=u.bilibili.live.rtc.Stream.fromObject(t.stream)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.sdp="",n.stream=null),t.sdp!=null&&t.hasOwnProperty("sdp")&&(n.sdp=t.sdp),t.stream!=null&&t.hasOwnProperty("stream")&&(n.stream=u.bilibili.live.rtc.Stream.toObject(t.stream,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.live.rtc.datachannel.PubReq"},e}(),c.PubResp=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.sdp=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.live.rtc.datachannel.PubResp)return t;let i=new u.bilibili.live.rtc.datachannel.PubResp;return t.sdp!=null&&(i.sdp=String(t.sdp)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.sdp=""),t.sdp!=null&&t.hasOwnProperty("sdp")&&(n.sdp=t.sdp),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.live.rtc.datachannel.PubResp"},e}(),c.SubReq=function(){function e(t){if(this.subUsers=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.sdp=i.string();break}case 2:{a.subUsers&&a.subUsers.length||(a.subUsers=[]),a.subUsers.push(u.bilibili.live.rtc.datachannel.SubReq.SubUser.decode(i,i.uint32()));break}case 3:{a.pauseSend=i.bool();break}default:i.skipType(y&7);break}}return a},e.fromObject=function(i){if(i instanceof u.bilibili.live.rtc.datachannel.SubReq)return i;let n=new u.bilibili.live.rtc.datachannel.SubReq;if(i.sdp!=null&&(n.sdp=String(i.sdp)),i.subUsers){if(!Array.isArray(i.subUsers))throw TypeError(".bilibili.live.rtc.datachannel.SubReq.subUsers: array expected");n.subUsers=[];for(let o=0;o>>3){case 1:{y.uid=n.uint64();break}case 2:{y.subVideo=n.bool();break}case 3:{y.subAudio=n.bool();break}case 4:{y.videoIndex=n.uint32();break}default:n.skipType(s&7);break}}return y},t.fromObject=function(n){if(n instanceof u.bilibili.live.rtc.datachannel.SubReq.SubUser)return n;let o=new u.bilibili.live.rtc.datachannel.SubReq.SubUser;return n.uid!=null&&(r.Long?(o.uid=r.Long.fromValue(n.uid)).unsigned=!0:typeof n.uid=="string"?o.uid=parseInt(n.uid,10):typeof n.uid=="number"?o.uid=n.uid:typeof n.uid=="object"&&(o.uid=new r.LongBits(n.uid.low>>>0,n.uid.high>>>0).toNumber(!0))),n.subVideo!=null&&(o.subVideo=!!n.subVideo),n.subAudio!=null&&(o.subAudio=!!n.subAudio),n.videoIndex!=null&&(o.videoIndex=n.videoIndex>>>0),o},t.toObject=function(n,o){o||(o={});let a={};if(o.defaults){if(r.Long){let y=new r.Long(0,0,!0);a.uid=o.longs===String?y.toString():o.longs===Number?y.toNumber():y}else a.uid=o.longs===String?"0":0;a.subVideo=!1,a.subAudio=!1,a.videoIndex=0}return n.uid!=null&&n.hasOwnProperty("uid")&&(typeof n.uid=="number"?a.uid=o.longs===String?String(n.uid):n.uid:a.uid=o.longs===String?r.Long.prototype.toString.call(n.uid):o.longs===Number?new r.LongBits(n.uid.low>>>0,n.uid.high>>>0).toNumber(!0):n.uid),n.subVideo!=null&&n.hasOwnProperty("subVideo")&&(a.subVideo=n.subVideo),n.subAudio!=null&&n.hasOwnProperty("subAudio")&&(a.subAudio=n.subAudio),n.videoIndex!=null&&n.hasOwnProperty("videoIndex")&&(a.videoIndex=n.videoIndex),a},t.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},t.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/bilibili.live.rtc.datachannel.SubReq.SubUser"},t}(),e}(),c.SubResp=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.uid=t.uint64();break}case 2:{o.sdp=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.live.rtc.datachannel.SubResp)return t;let i=new u.bilibili.live.rtc.datachannel.SubResp;return t.uid!=null&&(r.Long?(i.uid=r.Long.fromValue(t.uid)).unsigned=!0:typeof t.uid=="string"?i.uid=parseInt(t.uid,10):typeof t.uid=="number"?i.uid=t.uid:typeof t.uid=="object"&&(i.uid=new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber(!0))),t.sdp!=null&&(i.sdp=String(t.sdp)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!0);n.uid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.uid=i.longs===String?"0":0;n.sdp=""}return t.uid!=null&&t.hasOwnProperty("uid")&&(typeof t.uid=="number"?n.uid=i.longs===String?String(t.uid):t.uid:n.uid=i.longs===String?r.Long.prototype.toString.call(t.uid):i.longs===Number?new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber(!0):t.uid),t.sdp!=null&&t.hasOwnProperty("sdp")&&(n.sdp=t.sdp),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.live.rtc.datachannel.SubResp"},e}(),c.UpdateSubReq=function(){function e(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.uid=i.uint64();break}case 2:{a.subAudio=i.bool();break}case 3:{a.subVideo=i.bool();break}default:i.skipType(y&7);break}}return a},e.fromObject=function(i){if(i instanceof u.bilibili.live.rtc.datachannel.UpdateSubReq)return i;let n=new u.bilibili.live.rtc.datachannel.UpdateSubReq;return i.uid!=null&&(r.Long?(n.uid=r.Long.fromValue(i.uid)).unsigned=!0:typeof i.uid=="string"?n.uid=parseInt(i.uid,10):typeof i.uid=="number"?n.uid=i.uid:typeof i.uid=="object"&&(n.uid=new r.LongBits(i.uid.low>>>0,i.uid.high>>>0).toNumber(!0))),i.subAudio!=null&&(n.subAudio=!!i.subAudio),i.subVideo!=null&&(n.subVideo=!!i.subVideo),n},e.toObject=function(i,n){n||(n={});let o={};if(n.defaults)if(r.Long){let a=new r.Long(0,0,!0);o.uid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.uid=n.longs===String?"0":0;return i.uid!=null&&i.hasOwnProperty("uid")&&(typeof i.uid=="number"?o.uid=n.longs===String?String(i.uid):i.uid:o.uid=n.longs===String?r.Long.prototype.toString.call(i.uid):n.longs===Number?new r.LongBits(i.uid.low>>>0,i.uid.high>>>0).toNumber(!0):i.uid),i.subAudio!=null&&i.hasOwnProperty("subAudio")&&(o.subAudio=i.subAudio,n.oneofs&&(o.audioOption="subAudio")),i.subVideo!=null&&i.hasOwnProperty("subVideo")&&(o.subVideo=i.subVideo,n.oneofs&&(o.videoOption="subVideo")),o},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.live.rtc.datachannel.UpdateSubReq"},e}(),c.UpdateSubResp=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){default:t.skipType(a&7);break}}return o},e.fromObject=function(t){return t instanceof u.bilibili.live.rtc.datachannel.UpdateSubResp?t:new u.bilibili.live.rtc.datachannel.UpdateSubResp},e.toObject=function(){return{}},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.live.rtc.datachannel.UpdateSubResp"},e}(),c.UnSubReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.uid=t.uint64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.live.rtc.datachannel.UnSubReq)return t;let i=new u.bilibili.live.rtc.datachannel.UnSubReq;return t.uid!=null&&(r.Long?(i.uid=r.Long.fromValue(t.uid)).unsigned=!0:typeof t.uid=="string"?i.uid=parseInt(t.uid,10):typeof t.uid=="number"?i.uid=t.uid:typeof t.uid=="object"&&(i.uid=new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber(!0))),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(r.Long){let o=new r.Long(0,0,!0);n.uid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.uid=i.longs===String?"0":0;return t.uid!=null&&t.hasOwnProperty("uid")&&(typeof t.uid=="number"?n.uid=i.longs===String?String(t.uid):t.uid:n.uid=i.longs===String?r.Long.prototype.toString.call(t.uid):i.longs===Number?new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber(!0):t.uid),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.live.rtc.datachannel.UnSubReq"},e}(),c.UnSubResp=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){default:t.skipType(a&7);break}}return o},e.fromObject=function(t){return t instanceof u.bilibili.live.rtc.datachannel.UnSubResp?t:new u.bilibili.live.rtc.datachannel.UnSubResp},e.toObject=function(){return{}},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.live.rtc.datachannel.UnSubResp"},e}(),c.MuteReq=function(){function e(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.muteAudio=i.bool();break}case 2:{a.muteVideo=i.bool();break}default:i.skipType(y&7);break}}return a},e.fromObject=function(i){if(i instanceof u.bilibili.live.rtc.datachannel.MuteReq)return i;let n=new u.bilibili.live.rtc.datachannel.MuteReq;return i.muteAudio!=null&&(n.muteAudio=!!i.muteAudio),i.muteVideo!=null&&(n.muteVideo=!!i.muteVideo),n},e.toObject=function(i,n){n||(n={});let o={};return i.muteAudio!=null&&i.hasOwnProperty("muteAudio")&&(o.muteAudio=i.muteAudio,n.oneofs&&(o.muteReq="muteAudio")),i.muteVideo!=null&&i.hasOwnProperty("muteVideo")&&(o.muteVideo=i.muteVideo,n.oneofs&&(o.muteReq="muteVideo")),o},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.live.rtc.datachannel.MuteReq"},e}(),c.UserMuteResp=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){default:t.skipType(a&7);break}}return o},e.fromObject=function(t){return t instanceof u.bilibili.live.rtc.datachannel.UserMuteResp?t:new u.bilibili.live.rtc.datachannel.UserMuteResp},e.toObject=function(){return{}},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.live.rtc.datachannel.UserMuteResp"},e}(),c.UserMsgReq=function(){function e(l){if(this.receivers=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.bizId=t.uint32();break}case 2:{o.payload=t.bytes();break}case 3:{o.last=t.bool();break}case 4:{if(o.receivers&&o.receivers.length||(o.receivers=[]),(a&7)===2){let y=t.uint32()+t.pos;for(;t.pos>>0),t.payload!=null&&(typeof t.payload=="string"?r.base64.decode(t.payload,i.payload=r.newBuffer(r.base64.length(t.payload)),0):t.payload.length>=0&&(i.payload=t.payload)),t.last!=null&&(i.last=!!t.last),t.receivers){if(!Array.isArray(t.receivers))throw TypeError(".bilibili.live.rtc.datachannel.UserMsgReq.receivers: array expected");i.receivers=[];for(let n=0;n>>0,t.receivers[n].high>>>0).toNumber(!0))}return i},e.toObject=function(t,i){i||(i={});let n={};if((i.arrays||i.defaults)&&(n.receivers=[]),i.defaults&&(n.bizId=0,i.bytes===String?n.payload="":(n.payload=[],i.bytes!==Array&&(n.payload=r.newBuffer(n.payload))),n.last=!1),t.bizId!=null&&t.hasOwnProperty("bizId")&&(n.bizId=t.bizId),t.payload!=null&&t.hasOwnProperty("payload")&&(n.payload=i.bytes===String?r.base64.encode(t.payload,0,t.payload.length):i.bytes===Array?Array.prototype.slice.call(t.payload):t.payload),t.last!=null&&t.hasOwnProperty("last")&&(n.last=t.last),t.receivers&&t.receivers.length){n.receivers=[];for(let o=0;o>>0,t.receivers[o].high>>>0).toNumber(!0):t.receivers[o]}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.live.rtc.datachannel.UserMsgReq"},e}(),c.UserMsgResp=function(){function e(l){if(this.sentUids=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{if(o.sentUids&&o.sentUids.length||(o.sentUids=[]),(a&7)===2){let y=t.uint32()+t.pos;for(;t.pos>>0,t.sentUids[n].high>>>0).toNumber(!0))}return i},e.toObject=function(t,i){i||(i={});let n={};if((i.arrays||i.defaults)&&(n.sentUids=[]),t.sentUids&&t.sentUids.length){n.sentUids=[];for(let o=0;o>>0,t.sentUids[o].high>>>0).toNumber(!0):t.sentUids[o]}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.live.rtc.datachannel.UserMsgResp"},e}(),c.JoinNotify=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.user=u.bilibili.live.rtc.User.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.live.rtc.datachannel.JoinNotify)return t;let i=new u.bilibili.live.rtc.datachannel.JoinNotify;if(t.user!=null){if(typeof t.user!="object")throw TypeError(".bilibili.live.rtc.datachannel.JoinNotify.user: object expected");i.user=u.bilibili.live.rtc.User.fromObject(t.user)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.user=null),t.user!=null&&t.hasOwnProperty("user")&&(n.user=u.bilibili.live.rtc.User.toObject(t.user,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.live.rtc.datachannel.JoinNotify"},e}(),c.LeaveNotify=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.uid=t.uint64();break}case 2:{o.reason=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.live.rtc.datachannel.LeaveNotify)return t;let i=new u.bilibili.live.rtc.datachannel.LeaveNotify;switch(t.uid!=null&&(r.Long?(i.uid=r.Long.fromValue(t.uid)).unsigned=!0:typeof t.uid=="string"?i.uid=parseInt(t.uid,10):typeof t.uid=="number"?i.uid=t.uid:typeof t.uid=="object"&&(i.uid=new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber(!0))),t.reason){default:if(typeof t.reason=="number"){i.reason=t.reason;break}break;case"NORMAL":case 0:i.reason=0;break;case"KICKED":case 1:i.reason=1;break;case"TIMEOUT":case 2:i.reason=2;break;case"KILLED":case 3:i.reason=3;break}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!0);n.uid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.uid=i.longs===String?"0":0;n.reason=i.enums===String?"NORMAL":0}return t.uid!=null&&t.hasOwnProperty("uid")&&(typeof t.uid=="number"?n.uid=i.longs===String?String(t.uid):t.uid:n.uid=i.longs===String?r.Long.prototype.toString.call(t.uid):i.longs===Number?new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber(!0):t.uid),t.reason!=null&&t.hasOwnProperty("reason")&&(n.reason=i.enums===String?u.bilibili.live.rtc.UserLeaveReason[t.reason]===void 0?t.reason:u.bilibili.live.rtc.UserLeaveReason[t.reason]:t.reason),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.live.rtc.datachannel.LeaveNotify"},e}(),c.MuteReason=function(){let e={},l=Object.create(e);return l[e[0]="UserMute"]=0,l[e[1]="AdminMute"]=1,l}(),c.MuteNotify=function(){function e(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.uid=i.uint64();break}case 2:{a.muteAudio=i.bool();break}case 3:{a.muteVideo=i.bool();break}case 4:{a.reason=i.int32();break}default:i.skipType(y&7);break}}return a},e.fromObject=function(i){if(i instanceof u.bilibili.live.rtc.datachannel.MuteNotify)return i;let n=new u.bilibili.live.rtc.datachannel.MuteNotify;switch(i.uid!=null&&(r.Long?(n.uid=r.Long.fromValue(i.uid)).unsigned=!0:typeof i.uid=="string"?n.uid=parseInt(i.uid,10):typeof i.uid=="number"?n.uid=i.uid:typeof i.uid=="object"&&(n.uid=new r.LongBits(i.uid.low>>>0,i.uid.high>>>0).toNumber(!0))),i.muteAudio!=null&&(n.muteAudio=!!i.muteAudio),i.muteVideo!=null&&(n.muteVideo=!!i.muteVideo),i.reason){default:if(typeof i.reason=="number"){n.reason=i.reason;break}break;case"UserMute":case 0:n.reason=0;break;case"AdminMute":case 1:n.reason=1;break}return n},e.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!0);o.uid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.uid=n.longs===String?"0":0;o.reason=n.enums===String?"UserMute":0}return i.uid!=null&&i.hasOwnProperty("uid")&&(typeof i.uid=="number"?o.uid=n.longs===String?String(i.uid):i.uid:o.uid=n.longs===String?r.Long.prototype.toString.call(i.uid):n.longs===Number?new r.LongBits(i.uid.low>>>0,i.uid.high>>>0).toNumber(!0):i.uid),i.muteAudio!=null&&i.hasOwnProperty("muteAudio")&&(o.muteAudio=i.muteAudio,n.oneofs&&(o.muteStatus="muteAudio")),i.muteVideo!=null&&i.hasOwnProperty("muteVideo")&&(o.muteVideo=i.muteVideo,n.oneofs&&(o.muteStatus="muteVideo")),i.reason!=null&&i.hasOwnProperty("reason")&&(o.reason=n.enums===String?u.bilibili.live.rtc.datachannel.MuteReason[i.reason]===void 0?i.reason:u.bilibili.live.rtc.datachannel.MuteReason[i.reason]:i.reason),o},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.live.rtc.datachannel.MuteNotify"},e}(),c.PubNotify=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.uid=t.uint64();break}case 2:{o.stream=u.bilibili.live.rtc.Stream.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.live.rtc.datachannel.PubNotify)return t;let i=new u.bilibili.live.rtc.datachannel.PubNotify;if(t.uid!=null&&(r.Long?(i.uid=r.Long.fromValue(t.uid)).unsigned=!0:typeof t.uid=="string"?i.uid=parseInt(t.uid,10):typeof t.uid=="number"?i.uid=t.uid:typeof t.uid=="object"&&(i.uid=new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber(!0))),t.stream!=null){if(typeof t.stream!="object")throw TypeError(".bilibili.live.rtc.datachannel.PubNotify.stream: object expected");i.stream=u.bilibili.live.rtc.Stream.fromObject(t.stream)}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!0);n.uid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.uid=i.longs===String?"0":0;n.stream=null}return t.uid!=null&&t.hasOwnProperty("uid")&&(typeof t.uid=="number"?n.uid=i.longs===String?String(t.uid):t.uid:n.uid=i.longs===String?r.Long.prototype.toString.call(t.uid):i.longs===Number?new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber(!0):t.uid),t.stream!=null&&t.hasOwnProperty("stream")&&(n.stream=u.bilibili.live.rtc.Stream.toObject(t.stream,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.live.rtc.datachannel.PubNotify"},e}(),c.MessageNotify=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.uid=t.uint64();break}case 2:{o.bizId=t.uint32();break}case 3:{o.payload=t.bytes();break}case 4:{o.last=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.live.rtc.datachannel.MessageNotify)return t;let i=new u.bilibili.live.rtc.datachannel.MessageNotify;return t.uid!=null&&(r.Long?(i.uid=r.Long.fromValue(t.uid)).unsigned=!0:typeof t.uid=="string"?i.uid=parseInt(t.uid,10):typeof t.uid=="number"?i.uid=t.uid:typeof t.uid=="object"&&(i.uid=new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber(!0))),t.bizId!=null&&(i.bizId=t.bizId>>>0),t.payload!=null&&(typeof t.payload=="string"?r.base64.decode(t.payload,i.payload=r.newBuffer(r.base64.length(t.payload)),0):t.payload.length>=0&&(i.payload=t.payload)),t.last!=null&&(i.last=!!t.last),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!0);n.uid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.uid=i.longs===String?"0":0;n.bizId=0,i.bytes===String?n.payload="":(n.payload=[],i.bytes!==Array&&(n.payload=r.newBuffer(n.payload))),n.last=!1}return t.uid!=null&&t.hasOwnProperty("uid")&&(typeof t.uid=="number"?n.uid=i.longs===String?String(t.uid):t.uid:n.uid=i.longs===String?r.Long.prototype.toString.call(t.uid):i.longs===Number?new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber(!0):t.uid),t.bizId!=null&&t.hasOwnProperty("bizId")&&(n.bizId=t.bizId),t.payload!=null&&t.hasOwnProperty("payload")&&(n.payload=i.bytes===String?r.base64.encode(t.payload,0,t.payload.length):i.bytes===Array?Array.prototype.slice.call(t.payload):t.payload),t.last!=null&&t.hasOwnProperty("last")&&(n.last=t.last),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.live.rtc.datachannel.MessageNotify"},e}(),c.MembersReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.channelId=t.uint64();break}case 2:{o.uid=t.uint64();break}case 3:{o.callId=t.uint32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.live.rtc.datachannel.MembersReq)return t;let i=new u.bilibili.live.rtc.datachannel.MembersReq;return t.channelId!=null&&(r.Long?(i.channelId=r.Long.fromValue(t.channelId)).unsigned=!0:typeof t.channelId=="string"?i.channelId=parseInt(t.channelId,10):typeof t.channelId=="number"?i.channelId=t.channelId:typeof t.channelId=="object"&&(i.channelId=new r.LongBits(t.channelId.low>>>0,t.channelId.high>>>0).toNumber(!0))),t.uid!=null&&(r.Long?(i.uid=r.Long.fromValue(t.uid)).unsigned=!0:typeof t.uid=="string"?i.uid=parseInt(t.uid,10):typeof t.uid=="number"?i.uid=t.uid:typeof t.uid=="object"&&(i.uid=new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber(!0))),t.callId!=null&&(i.callId=t.callId>>>0),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!0);n.channelId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.channelId=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!0);n.uid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.uid=i.longs===String?"0":0;n.callId=0}return t.channelId!=null&&t.hasOwnProperty("channelId")&&(typeof t.channelId=="number"?n.channelId=i.longs===String?String(t.channelId):t.channelId:n.channelId=i.longs===String?r.Long.prototype.toString.call(t.channelId):i.longs===Number?new r.LongBits(t.channelId.low>>>0,t.channelId.high>>>0).toNumber(!0):t.channelId),t.uid!=null&&t.hasOwnProperty("uid")&&(typeof t.uid=="number"?n.uid=i.longs===String?String(t.uid):t.uid:n.uid=i.longs===String?r.Long.prototype.toString.call(t.uid):i.longs===Number?new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber(!0):t.uid),t.callId!=null&&t.hasOwnProperty("callId")&&(n.callId=t.callId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.live.rtc.datachannel.MembersReq"},e}(),c.MembersResp=function(){function e(l){if(this.users=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.users&&o.users.length||(o.users=[]),o.users.push(u.bilibili.live.rtc.User.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.live.rtc.datachannel.MembersResp)return t;let i=new u.bilibili.live.rtc.datachannel.MembersResp;if(t.users){if(!Array.isArray(t.users))throw TypeError(".bilibili.live.rtc.datachannel.MembersResp.users: array expected");i.users=[];for(let n=0;n>>3){case 1:{o.token=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.live.rtc.datachannel.TokenNotify)return t;let i=new u.bilibili.live.rtc.datachannel.TokenNotify;return t.token!=null&&(i.token=String(t.token)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.token=""),t.token!=null&&t.hasOwnProperty("token")&&(n.token=t.token),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.live.rtc.datachannel.TokenNotify"},e}(),c.UnPubReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){default:t.skipType(a&7);break}}return o},e.fromObject=function(t){return t instanceof u.bilibili.live.rtc.datachannel.UnPubReq?t:new u.bilibili.live.rtc.datachannel.UnPubReq},e.toObject=function(){return{}},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.live.rtc.datachannel.UnPubReq"},e}(),c.UnPubResp=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){default:t.skipType(a&7);break}}return o},e.fromObject=function(t){return t instanceof u.bilibili.live.rtc.datachannel.UnPubResp?t:new u.bilibili.live.rtc.datachannel.UnPubResp},e.toObject=function(){return{}},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.live.rtc.datachannel.UnPubResp"},e}(),c.UnPubNotify=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.uid=t.uint64();break}case 2:{o.stream=u.bilibili.live.rtc.Stream.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.live.rtc.datachannel.UnPubNotify)return t;let i=new u.bilibili.live.rtc.datachannel.UnPubNotify;if(t.uid!=null&&(r.Long?(i.uid=r.Long.fromValue(t.uid)).unsigned=!0:typeof t.uid=="string"?i.uid=parseInt(t.uid,10):typeof t.uid=="number"?i.uid=t.uid:typeof t.uid=="object"&&(i.uid=new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber(!0))),t.stream!=null){if(typeof t.stream!="object")throw TypeError(".bilibili.live.rtc.datachannel.UnPubNotify.stream: object expected");i.stream=u.bilibili.live.rtc.Stream.fromObject(t.stream)}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!0);n.uid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.uid=i.longs===String?"0":0;n.stream=null}return t.uid!=null&&t.hasOwnProperty("uid")&&(typeof t.uid=="number"?n.uid=i.longs===String?String(t.uid):t.uid:n.uid=i.longs===String?r.Long.prototype.toString.call(t.uid):i.longs===Number?new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber(!0):t.uid),t.stream!=null&&t.hasOwnProperty("stream")&&(n.stream=u.bilibili.live.rtc.Stream.toObject(t.stream,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.live.rtc.datachannel.UnPubNotify"},e}(),c.ClientStatsReq=function(){function e(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.eventType=i.string();break}case 2:{a.encoding=i.string();break}case 3:{a.app=u.bilibili.live.rtc.datachannel.ClientStatsReq.App.decode(i,i.uint32());break}case 6:{a.rawPayload=i.bytes();break}case 7:{a.pbStatsPayload=u.bilibili.live.rtc.datachannel.ClientStatsPayload.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},e.fromObject=function(i){if(i instanceof u.bilibili.live.rtc.datachannel.ClientStatsReq)return i;let n=new u.bilibili.live.rtc.datachannel.ClientStatsReq;if(i.eventType!=null&&(n.eventType=String(i.eventType)),i.encoding!=null&&(n.encoding=String(i.encoding)),i.app!=null){if(typeof i.app!="object")throw TypeError(".bilibili.live.rtc.datachannel.ClientStatsReq.app: object expected");n.app=u.bilibili.live.rtc.datachannel.ClientStatsReq.App.fromObject(i.app)}if(i.rawPayload!=null&&(typeof i.rawPayload=="string"?r.base64.decode(i.rawPayload,n.rawPayload=r.newBuffer(r.base64.length(i.rawPayload)),0):i.rawPayload.length>=0&&(n.rawPayload=i.rawPayload)),i.pbStatsPayload!=null){if(typeof i.pbStatsPayload!="object")throw TypeError(".bilibili.live.rtc.datachannel.ClientStatsReq.pbStatsPayload: object expected");n.pbStatsPayload=u.bilibili.live.rtc.datachannel.ClientStatsPayload.fromObject(i.pbStatsPayload)}return n},e.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.eventType="",o.encoding="",o.app=null),i.eventType!=null&&i.hasOwnProperty("eventType")&&(o.eventType=i.eventType),i.encoding!=null&&i.hasOwnProperty("encoding")&&(o.encoding=i.encoding),i.app!=null&&i.hasOwnProperty("app")&&(o.app=u.bilibili.live.rtc.datachannel.ClientStatsReq.App.toObject(i.app,n)),i.rawPayload!=null&&i.hasOwnProperty("rawPayload")&&(o.rawPayload=n.bytes===String?r.base64.encode(i.rawPayload,0,i.rawPayload.length):n.bytes===Array?Array.prototype.slice.call(i.rawPayload):i.rawPayload,n.oneofs&&(o.payload="rawPayload")),i.pbStatsPayload!=null&&i.hasOwnProperty("pbStatsPayload")&&(o.pbStatsPayload=u.bilibili.live.rtc.datachannel.ClientStatsPayload.toObject(i.pbStatsPayload,n),n.oneofs&&(o.payload="pbStatsPayload")),o},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.live.rtc.datachannel.ClientStatsReq"},e.App=function(){function t(i){if(i)for(let n=Object.keys(i),o=0;o>>3){case 1:{y.appName=n.string();break}case 2:{y.appVersion=n.string();break}case 3:{y.sdkVersion=n.string();break}case 4:{y.platform=n.string();break}case 5:{y.network=n.string();break}default:n.skipType(s&7);break}}return y},t.fromObject=function(n){if(n instanceof u.bilibili.live.rtc.datachannel.ClientStatsReq.App)return n;let o=new u.bilibili.live.rtc.datachannel.ClientStatsReq.App;return n.appName!=null&&(o.appName=String(n.appName)),n.appVersion!=null&&(o.appVersion=String(n.appVersion)),n.sdkVersion!=null&&(o.sdkVersion=String(n.sdkVersion)),n.platform!=null&&(o.platform=String(n.platform)),n.network!=null&&(o.network=String(n.network)),o},t.toObject=function(n,o){o||(o={});let a={};return o.defaults&&(a.appName="",a.appVersion="",a.sdkVersion="",a.platform="",a.network=""),n.appName!=null&&n.hasOwnProperty("appName")&&(a.appName=n.appName),n.appVersion!=null&&n.hasOwnProperty("appVersion")&&(a.appVersion=n.appVersion),n.sdkVersion!=null&&n.hasOwnProperty("sdkVersion")&&(a.sdkVersion=n.sdkVersion),n.platform!=null&&n.hasOwnProperty("platform")&&(a.platform=n.platform),n.network!=null&&n.hasOwnProperty("network")&&(a.network=n.network),a},t.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},t.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/bilibili.live.rtc.datachannel.ClientStatsReq.App"},t}(),e}(),c.ClientStatsResp=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.reportInterval=t.uint32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.live.rtc.datachannel.ClientStatsResp)return t;let i=new u.bilibili.live.rtc.datachannel.ClientStatsResp;return t.reportInterval!=null&&(i.reportInterval=t.reportInterval>>>0),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.reportInterval=0),t.reportInterval!=null&&t.hasOwnProperty("reportInterval")&&(n.reportInterval=t.reportInterval),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.live.rtc.datachannel.ClientStatsResp"},e}(),c.ClientStatsPayload=function(){function e(l){if(this.candidatePairs=[],this.avSenders=[],this.avReceivers=[],this.dataChannels=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.transport=u.bilibili.live.rtc.datachannel.RtcTransport.decode(t,t.uint32());break}case 2:{o.selectedCandidatePair=u.bilibili.live.rtc.datachannel.RtcCandidatePair.decode(t,t.uint32());break}case 3:{o.candidatePairs&&o.candidatePairs.length||(o.candidatePairs=[]),o.candidatePairs.push(u.bilibili.live.rtc.datachannel.RtcCandidatePair.decode(t,t.uint32()));break}case 4:{o.avSenders&&o.avSenders.length||(o.avSenders=[]),o.avSenders.push(u.bilibili.live.rtc.datachannel.RtcAVSenderStats.decode(t,t.uint32()));break}case 5:{o.avReceivers&&o.avReceivers.length||(o.avReceivers=[]),o.avReceivers.push(u.bilibili.live.rtc.datachannel.RtcAVReceiverStats.decode(t,t.uint32()));break}case 6:{o.dataChannels&&o.dataChannels.length||(o.dataChannels=[]),o.dataChannels.push(u.bilibili.live.rtc.datachannel.RtcDataChannel.decode(t,t.uint32()));break}case 7:{o.generateTs=t.int64();break}case 8:{o.businessName=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.live.rtc.datachannel.ClientStatsPayload)return t;let i=new u.bilibili.live.rtc.datachannel.ClientStatsPayload;if(t.transport!=null){if(typeof t.transport!="object")throw TypeError(".bilibili.live.rtc.datachannel.ClientStatsPayload.transport: object expected");i.transport=u.bilibili.live.rtc.datachannel.RtcTransport.fromObject(t.transport)}if(t.selectedCandidatePair!=null){if(typeof t.selectedCandidatePair!="object")throw TypeError(".bilibili.live.rtc.datachannel.ClientStatsPayload.selectedCandidatePair: object expected");i.selectedCandidatePair=u.bilibili.live.rtc.datachannel.RtcCandidatePair.fromObject(t.selectedCandidatePair)}if(t.candidatePairs){if(!Array.isArray(t.candidatePairs))throw TypeError(".bilibili.live.rtc.datachannel.ClientStatsPayload.candidatePairs: array expected");i.candidatePairs=[];for(let n=0;n>>0,t.generateTs.high>>>0).toNumber())),t.businessName!=null&&(i.businessName=String(t.businessName)),i},e.toObject=function(t,i){i||(i={});let n={};if((i.arrays||i.defaults)&&(n.candidatePairs=[],n.avSenders=[],n.avReceivers=[],n.dataChannels=[]),i.defaults){if(n.transport=null,n.selectedCandidatePair=null,r.Long){let o=new r.Long(0,0,!1);n.generateTs=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.generateTs=i.longs===String?"0":0;n.businessName=""}if(t.transport!=null&&t.hasOwnProperty("transport")&&(n.transport=u.bilibili.live.rtc.datachannel.RtcTransport.toObject(t.transport,i)),t.selectedCandidatePair!=null&&t.hasOwnProperty("selectedCandidatePair")&&(n.selectedCandidatePair=u.bilibili.live.rtc.datachannel.RtcCandidatePair.toObject(t.selectedCandidatePair,i)),t.candidatePairs&&t.candidatePairs.length){n.candidatePairs=[];for(let o=0;o>>0,t.generateTs.high>>>0).toNumber():t.generateTs),t.businessName!=null&&t.hasOwnProperty("businessName")&&(n.businessName=t.businessName),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.live.rtc.datachannel.ClientStatsPayload"},e}(),c.RtcTransport=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.selectedCandidatePairId=t.string();break}case 2:{o.dtlsCipher=t.string();break}case 3:{o.dtlsState=t.string();break}case 4:{o.bytesReceived=t.uint64();break}case 5:{o.bytesSent=t.uint64();break}case 6:{o.packetsReceived=t.uint64();break}case 7:{o.packetsSent=t.uint64();break}case 8:{o.selectedCandidatePairChanges=t.uint32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.live.rtc.datachannel.RtcTransport)return t;let i=new u.bilibili.live.rtc.datachannel.RtcTransport;return t.selectedCandidatePairId!=null&&(i.selectedCandidatePairId=String(t.selectedCandidatePairId)),t.dtlsCipher!=null&&(i.dtlsCipher=String(t.dtlsCipher)),t.dtlsState!=null&&(i.dtlsState=String(t.dtlsState)),t.bytesReceived!=null&&(r.Long?(i.bytesReceived=r.Long.fromValue(t.bytesReceived)).unsigned=!0:typeof t.bytesReceived=="string"?i.bytesReceived=parseInt(t.bytesReceived,10):typeof t.bytesReceived=="number"?i.bytesReceived=t.bytesReceived:typeof t.bytesReceived=="object"&&(i.bytesReceived=new r.LongBits(t.bytesReceived.low>>>0,t.bytesReceived.high>>>0).toNumber(!0))),t.bytesSent!=null&&(r.Long?(i.bytesSent=r.Long.fromValue(t.bytesSent)).unsigned=!0:typeof t.bytesSent=="string"?i.bytesSent=parseInt(t.bytesSent,10):typeof t.bytesSent=="number"?i.bytesSent=t.bytesSent:typeof t.bytesSent=="object"&&(i.bytesSent=new r.LongBits(t.bytesSent.low>>>0,t.bytesSent.high>>>0).toNumber(!0))),t.packetsReceived!=null&&(r.Long?(i.packetsReceived=r.Long.fromValue(t.packetsReceived)).unsigned=!0:typeof t.packetsReceived=="string"?i.packetsReceived=parseInt(t.packetsReceived,10):typeof t.packetsReceived=="number"?i.packetsReceived=t.packetsReceived:typeof t.packetsReceived=="object"&&(i.packetsReceived=new r.LongBits(t.packetsReceived.low>>>0,t.packetsReceived.high>>>0).toNumber(!0))),t.packetsSent!=null&&(r.Long?(i.packetsSent=r.Long.fromValue(t.packetsSent)).unsigned=!0:typeof t.packetsSent=="string"?i.packetsSent=parseInt(t.packetsSent,10):typeof t.packetsSent=="number"?i.packetsSent=t.packetsSent:typeof t.packetsSent=="object"&&(i.packetsSent=new r.LongBits(t.packetsSent.low>>>0,t.packetsSent.high>>>0).toNumber(!0))),t.selectedCandidatePairChanges!=null&&(i.selectedCandidatePairChanges=t.selectedCandidatePairChanges>>>0),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.selectedCandidatePairId="",n.dtlsCipher="",n.dtlsState="",r.Long){let o=new r.Long(0,0,!0);n.bytesReceived=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.bytesReceived=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!0);n.bytesSent=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.bytesSent=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!0);n.packetsReceived=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.packetsReceived=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!0);n.packetsSent=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.packetsSent=i.longs===String?"0":0;n.selectedCandidatePairChanges=0}return t.selectedCandidatePairId!=null&&t.hasOwnProperty("selectedCandidatePairId")&&(n.selectedCandidatePairId=t.selectedCandidatePairId),t.dtlsCipher!=null&&t.hasOwnProperty("dtlsCipher")&&(n.dtlsCipher=t.dtlsCipher),t.dtlsState!=null&&t.hasOwnProperty("dtlsState")&&(n.dtlsState=t.dtlsState),t.bytesReceived!=null&&t.hasOwnProperty("bytesReceived")&&(typeof t.bytesReceived=="number"?n.bytesReceived=i.longs===String?String(t.bytesReceived):t.bytesReceived:n.bytesReceived=i.longs===String?r.Long.prototype.toString.call(t.bytesReceived):i.longs===Number?new r.LongBits(t.bytesReceived.low>>>0,t.bytesReceived.high>>>0).toNumber(!0):t.bytesReceived),t.bytesSent!=null&&t.hasOwnProperty("bytesSent")&&(typeof t.bytesSent=="number"?n.bytesSent=i.longs===String?String(t.bytesSent):t.bytesSent:n.bytesSent=i.longs===String?r.Long.prototype.toString.call(t.bytesSent):i.longs===Number?new r.LongBits(t.bytesSent.low>>>0,t.bytesSent.high>>>0).toNumber(!0):t.bytesSent),t.packetsReceived!=null&&t.hasOwnProperty("packetsReceived")&&(typeof t.packetsReceived=="number"?n.packetsReceived=i.longs===String?String(t.packetsReceived):t.packetsReceived:n.packetsReceived=i.longs===String?r.Long.prototype.toString.call(t.packetsReceived):i.longs===Number?new r.LongBits(t.packetsReceived.low>>>0,t.packetsReceived.high>>>0).toNumber(!0):t.packetsReceived),t.packetsSent!=null&&t.hasOwnProperty("packetsSent")&&(typeof t.packetsSent=="number"?n.packetsSent=i.longs===String?String(t.packetsSent):t.packetsSent:n.packetsSent=i.longs===String?r.Long.prototype.toString.call(t.packetsSent):i.longs===Number?new r.LongBits(t.packetsSent.low>>>0,t.packetsSent.high>>>0).toNumber(!0):t.packetsSent),t.selectedCandidatePairChanges!=null&&t.hasOwnProperty("selectedCandidatePairChanges")&&(n.selectedCandidatePairChanges=t.selectedCandidatePairChanges),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.live.rtc.datachannel.RtcTransport"},e}(),c.RtcCandidatePair=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.id=t.string();break}case 2:{o.state=t.string();break}case 3:{o.priority=t.uint64();break}case 4:{o.localCandidate=u.bilibili.live.rtc.datachannel.RtcLocalCandidate.decode(t,t.uint32());break}case 5:{o.remoteCandidate=u.bilibili.live.rtc.datachannel.RtcRemoteCandidate.decode(t,t.uint32());break}case 6:{o.availableOutgoingBitrate=t.float();break}case 7:{o.availableIncomingBitrate=t.float();break}case 8:{o.bytesDiscardedOnSend=t.uint64();break}case 9:{o.bytesReceived=t.uint64();break}case 10:{o.bytesSent=t.uint64();break}case 11:{o.consentRequestsSent=t.uint64();break}case 12:{o.currentRoundTripTime=t.float();break}case 13:{o.nominated=t.bool();break}case 14:{o.packetsDiscardedOnSend=t.uint64();break}case 15:{o.packetsReceived=t.uint64();break}case 16:{o.packetsSent=t.uint64();break}case 17:{o.requestsReceived=t.uint64();break}case 18:{o.requestsSent=t.uint64();break}case 19:{o.responsesReceived=t.uint64();break}case 20:{o.responsesSent=t.uint64();break}case 21:{o.totalRoundTripTime=t.float();break}case 22:{o.writable=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.live.rtc.datachannel.RtcCandidatePair)return t;let i=new u.bilibili.live.rtc.datachannel.RtcCandidatePair;if(t.id!=null&&(i.id=String(t.id)),t.state!=null&&(i.state=String(t.state)),t.priority!=null&&(r.Long?(i.priority=r.Long.fromValue(t.priority)).unsigned=!0:typeof t.priority=="string"?i.priority=parseInt(t.priority,10):typeof t.priority=="number"?i.priority=t.priority:typeof t.priority=="object"&&(i.priority=new r.LongBits(t.priority.low>>>0,t.priority.high>>>0).toNumber(!0))),t.localCandidate!=null){if(typeof t.localCandidate!="object")throw TypeError(".bilibili.live.rtc.datachannel.RtcCandidatePair.localCandidate: object expected");i.localCandidate=u.bilibili.live.rtc.datachannel.RtcLocalCandidate.fromObject(t.localCandidate)}if(t.remoteCandidate!=null){if(typeof t.remoteCandidate!="object")throw TypeError(".bilibili.live.rtc.datachannel.RtcCandidatePair.remoteCandidate: object expected");i.remoteCandidate=u.bilibili.live.rtc.datachannel.RtcRemoteCandidate.fromObject(t.remoteCandidate)}return t.availableOutgoingBitrate!=null&&(i.availableOutgoingBitrate=Number(t.availableOutgoingBitrate)),t.availableIncomingBitrate!=null&&(i.availableIncomingBitrate=Number(t.availableIncomingBitrate)),t.bytesDiscardedOnSend!=null&&(r.Long?(i.bytesDiscardedOnSend=r.Long.fromValue(t.bytesDiscardedOnSend)).unsigned=!0:typeof t.bytesDiscardedOnSend=="string"?i.bytesDiscardedOnSend=parseInt(t.bytesDiscardedOnSend,10):typeof t.bytesDiscardedOnSend=="number"?i.bytesDiscardedOnSend=t.bytesDiscardedOnSend:typeof t.bytesDiscardedOnSend=="object"&&(i.bytesDiscardedOnSend=new r.LongBits(t.bytesDiscardedOnSend.low>>>0,t.bytesDiscardedOnSend.high>>>0).toNumber(!0))),t.bytesReceived!=null&&(r.Long?(i.bytesReceived=r.Long.fromValue(t.bytesReceived)).unsigned=!0:typeof t.bytesReceived=="string"?i.bytesReceived=parseInt(t.bytesReceived,10):typeof t.bytesReceived=="number"?i.bytesReceived=t.bytesReceived:typeof t.bytesReceived=="object"&&(i.bytesReceived=new r.LongBits(t.bytesReceived.low>>>0,t.bytesReceived.high>>>0).toNumber(!0))),t.bytesSent!=null&&(r.Long?(i.bytesSent=r.Long.fromValue(t.bytesSent)).unsigned=!0:typeof t.bytesSent=="string"?i.bytesSent=parseInt(t.bytesSent,10):typeof t.bytesSent=="number"?i.bytesSent=t.bytesSent:typeof t.bytesSent=="object"&&(i.bytesSent=new r.LongBits(t.bytesSent.low>>>0,t.bytesSent.high>>>0).toNumber(!0))),t.consentRequestsSent!=null&&(r.Long?(i.consentRequestsSent=r.Long.fromValue(t.consentRequestsSent)).unsigned=!0:typeof t.consentRequestsSent=="string"?i.consentRequestsSent=parseInt(t.consentRequestsSent,10):typeof t.consentRequestsSent=="number"?i.consentRequestsSent=t.consentRequestsSent:typeof t.consentRequestsSent=="object"&&(i.consentRequestsSent=new r.LongBits(t.consentRequestsSent.low>>>0,t.consentRequestsSent.high>>>0).toNumber(!0))),t.currentRoundTripTime!=null&&(i.currentRoundTripTime=Number(t.currentRoundTripTime)),t.nominated!=null&&(i.nominated=!!t.nominated),t.packetsDiscardedOnSend!=null&&(r.Long?(i.packetsDiscardedOnSend=r.Long.fromValue(t.packetsDiscardedOnSend)).unsigned=!0:typeof t.packetsDiscardedOnSend=="string"?i.packetsDiscardedOnSend=parseInt(t.packetsDiscardedOnSend,10):typeof t.packetsDiscardedOnSend=="number"?i.packetsDiscardedOnSend=t.packetsDiscardedOnSend:typeof t.packetsDiscardedOnSend=="object"&&(i.packetsDiscardedOnSend=new r.LongBits(t.packetsDiscardedOnSend.low>>>0,t.packetsDiscardedOnSend.high>>>0).toNumber(!0))),t.packetsReceived!=null&&(r.Long?(i.packetsReceived=r.Long.fromValue(t.packetsReceived)).unsigned=!0:typeof t.packetsReceived=="string"?i.packetsReceived=parseInt(t.packetsReceived,10):typeof t.packetsReceived=="number"?i.packetsReceived=t.packetsReceived:typeof t.packetsReceived=="object"&&(i.packetsReceived=new r.LongBits(t.packetsReceived.low>>>0,t.packetsReceived.high>>>0).toNumber(!0))),t.packetsSent!=null&&(r.Long?(i.packetsSent=r.Long.fromValue(t.packetsSent)).unsigned=!0:typeof t.packetsSent=="string"?i.packetsSent=parseInt(t.packetsSent,10):typeof t.packetsSent=="number"?i.packetsSent=t.packetsSent:typeof t.packetsSent=="object"&&(i.packetsSent=new r.LongBits(t.packetsSent.low>>>0,t.packetsSent.high>>>0).toNumber(!0))),t.requestsReceived!=null&&(r.Long?(i.requestsReceived=r.Long.fromValue(t.requestsReceived)).unsigned=!0:typeof t.requestsReceived=="string"?i.requestsReceived=parseInt(t.requestsReceived,10):typeof t.requestsReceived=="number"?i.requestsReceived=t.requestsReceived:typeof t.requestsReceived=="object"&&(i.requestsReceived=new r.LongBits(t.requestsReceived.low>>>0,t.requestsReceived.high>>>0).toNumber(!0))),t.requestsSent!=null&&(r.Long?(i.requestsSent=r.Long.fromValue(t.requestsSent)).unsigned=!0:typeof t.requestsSent=="string"?i.requestsSent=parseInt(t.requestsSent,10):typeof t.requestsSent=="number"?i.requestsSent=t.requestsSent:typeof t.requestsSent=="object"&&(i.requestsSent=new r.LongBits(t.requestsSent.low>>>0,t.requestsSent.high>>>0).toNumber(!0))),t.responsesReceived!=null&&(r.Long?(i.responsesReceived=r.Long.fromValue(t.responsesReceived)).unsigned=!0:typeof t.responsesReceived=="string"?i.responsesReceived=parseInt(t.responsesReceived,10):typeof t.responsesReceived=="number"?i.responsesReceived=t.responsesReceived:typeof t.responsesReceived=="object"&&(i.responsesReceived=new r.LongBits(t.responsesReceived.low>>>0,t.responsesReceived.high>>>0).toNumber(!0))),t.responsesSent!=null&&(r.Long?(i.responsesSent=r.Long.fromValue(t.responsesSent)).unsigned=!0:typeof t.responsesSent=="string"?i.responsesSent=parseInt(t.responsesSent,10):typeof t.responsesSent=="number"?i.responsesSent=t.responsesSent:typeof t.responsesSent=="object"&&(i.responsesSent=new r.LongBits(t.responsesSent.low>>>0,t.responsesSent.high>>>0).toNumber(!0))),t.totalRoundTripTime!=null&&(i.totalRoundTripTime=Number(t.totalRoundTripTime)),t.writable!=null&&(i.writable=!!t.writable),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.id="",n.state="",r.Long){let o=new r.Long(0,0,!0);n.priority=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.priority=i.longs===String?"0":0;if(n.localCandidate=null,n.remoteCandidate=null,n.availableOutgoingBitrate=0,n.availableIncomingBitrate=0,r.Long){let o=new r.Long(0,0,!0);n.bytesDiscardedOnSend=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.bytesDiscardedOnSend=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!0);n.bytesReceived=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.bytesReceived=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!0);n.bytesSent=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.bytesSent=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!0);n.consentRequestsSent=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.consentRequestsSent=i.longs===String?"0":0;if(n.currentRoundTripTime=0,n.nominated=!1,r.Long){let o=new r.Long(0,0,!0);n.packetsDiscardedOnSend=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.packetsDiscardedOnSend=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!0);n.packetsReceived=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.packetsReceived=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!0);n.packetsSent=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.packetsSent=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!0);n.requestsReceived=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.requestsReceived=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!0);n.requestsSent=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.requestsSent=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!0);n.responsesReceived=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.responsesReceived=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!0);n.responsesSent=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.responsesSent=i.longs===String?"0":0;n.totalRoundTripTime=0,n.writable=!1}return t.id!=null&&t.hasOwnProperty("id")&&(n.id=t.id),t.state!=null&&t.hasOwnProperty("state")&&(n.state=t.state),t.priority!=null&&t.hasOwnProperty("priority")&&(typeof t.priority=="number"?n.priority=i.longs===String?String(t.priority):t.priority:n.priority=i.longs===String?r.Long.prototype.toString.call(t.priority):i.longs===Number?new r.LongBits(t.priority.low>>>0,t.priority.high>>>0).toNumber(!0):t.priority),t.localCandidate!=null&&t.hasOwnProperty("localCandidate")&&(n.localCandidate=u.bilibili.live.rtc.datachannel.RtcLocalCandidate.toObject(t.localCandidate,i)),t.remoteCandidate!=null&&t.hasOwnProperty("remoteCandidate")&&(n.remoteCandidate=u.bilibili.live.rtc.datachannel.RtcRemoteCandidate.toObject(t.remoteCandidate,i)),t.availableOutgoingBitrate!=null&&t.hasOwnProperty("availableOutgoingBitrate")&&(n.availableOutgoingBitrate=i.json&&!isFinite(t.availableOutgoingBitrate)?String(t.availableOutgoingBitrate):t.availableOutgoingBitrate),t.availableIncomingBitrate!=null&&t.hasOwnProperty("availableIncomingBitrate")&&(n.availableIncomingBitrate=i.json&&!isFinite(t.availableIncomingBitrate)?String(t.availableIncomingBitrate):t.availableIncomingBitrate),t.bytesDiscardedOnSend!=null&&t.hasOwnProperty("bytesDiscardedOnSend")&&(typeof t.bytesDiscardedOnSend=="number"?n.bytesDiscardedOnSend=i.longs===String?String(t.bytesDiscardedOnSend):t.bytesDiscardedOnSend:n.bytesDiscardedOnSend=i.longs===String?r.Long.prototype.toString.call(t.bytesDiscardedOnSend):i.longs===Number?new r.LongBits(t.bytesDiscardedOnSend.low>>>0,t.bytesDiscardedOnSend.high>>>0).toNumber(!0):t.bytesDiscardedOnSend),t.bytesReceived!=null&&t.hasOwnProperty("bytesReceived")&&(typeof t.bytesReceived=="number"?n.bytesReceived=i.longs===String?String(t.bytesReceived):t.bytesReceived:n.bytesReceived=i.longs===String?r.Long.prototype.toString.call(t.bytesReceived):i.longs===Number?new r.LongBits(t.bytesReceived.low>>>0,t.bytesReceived.high>>>0).toNumber(!0):t.bytesReceived),t.bytesSent!=null&&t.hasOwnProperty("bytesSent")&&(typeof t.bytesSent=="number"?n.bytesSent=i.longs===String?String(t.bytesSent):t.bytesSent:n.bytesSent=i.longs===String?r.Long.prototype.toString.call(t.bytesSent):i.longs===Number?new r.LongBits(t.bytesSent.low>>>0,t.bytesSent.high>>>0).toNumber(!0):t.bytesSent),t.consentRequestsSent!=null&&t.hasOwnProperty("consentRequestsSent")&&(typeof t.consentRequestsSent=="number"?n.consentRequestsSent=i.longs===String?String(t.consentRequestsSent):t.consentRequestsSent:n.consentRequestsSent=i.longs===String?r.Long.prototype.toString.call(t.consentRequestsSent):i.longs===Number?new r.LongBits(t.consentRequestsSent.low>>>0,t.consentRequestsSent.high>>>0).toNumber(!0):t.consentRequestsSent),t.currentRoundTripTime!=null&&t.hasOwnProperty("currentRoundTripTime")&&(n.currentRoundTripTime=i.json&&!isFinite(t.currentRoundTripTime)?String(t.currentRoundTripTime):t.currentRoundTripTime),t.nominated!=null&&t.hasOwnProperty("nominated")&&(n.nominated=t.nominated),t.packetsDiscardedOnSend!=null&&t.hasOwnProperty("packetsDiscardedOnSend")&&(typeof t.packetsDiscardedOnSend=="number"?n.packetsDiscardedOnSend=i.longs===String?String(t.packetsDiscardedOnSend):t.packetsDiscardedOnSend:n.packetsDiscardedOnSend=i.longs===String?r.Long.prototype.toString.call(t.packetsDiscardedOnSend):i.longs===Number?new r.LongBits(t.packetsDiscardedOnSend.low>>>0,t.packetsDiscardedOnSend.high>>>0).toNumber(!0):t.packetsDiscardedOnSend),t.packetsReceived!=null&&t.hasOwnProperty("packetsReceived")&&(typeof t.packetsReceived=="number"?n.packetsReceived=i.longs===String?String(t.packetsReceived):t.packetsReceived:n.packetsReceived=i.longs===String?r.Long.prototype.toString.call(t.packetsReceived):i.longs===Number?new r.LongBits(t.packetsReceived.low>>>0,t.packetsReceived.high>>>0).toNumber(!0):t.packetsReceived),t.packetsSent!=null&&t.hasOwnProperty("packetsSent")&&(typeof t.packetsSent=="number"?n.packetsSent=i.longs===String?String(t.packetsSent):t.packetsSent:n.packetsSent=i.longs===String?r.Long.prototype.toString.call(t.packetsSent):i.longs===Number?new r.LongBits(t.packetsSent.low>>>0,t.packetsSent.high>>>0).toNumber(!0):t.packetsSent),t.requestsReceived!=null&&t.hasOwnProperty("requestsReceived")&&(typeof t.requestsReceived=="number"?n.requestsReceived=i.longs===String?String(t.requestsReceived):t.requestsReceived:n.requestsReceived=i.longs===String?r.Long.prototype.toString.call(t.requestsReceived):i.longs===Number?new r.LongBits(t.requestsReceived.low>>>0,t.requestsReceived.high>>>0).toNumber(!0):t.requestsReceived),t.requestsSent!=null&&t.hasOwnProperty("requestsSent")&&(typeof t.requestsSent=="number"?n.requestsSent=i.longs===String?String(t.requestsSent):t.requestsSent:n.requestsSent=i.longs===String?r.Long.prototype.toString.call(t.requestsSent):i.longs===Number?new r.LongBits(t.requestsSent.low>>>0,t.requestsSent.high>>>0).toNumber(!0):t.requestsSent),t.responsesReceived!=null&&t.hasOwnProperty("responsesReceived")&&(typeof t.responsesReceived=="number"?n.responsesReceived=i.longs===String?String(t.responsesReceived):t.responsesReceived:n.responsesReceived=i.longs===String?r.Long.prototype.toString.call(t.responsesReceived):i.longs===Number?new r.LongBits(t.responsesReceived.low>>>0,t.responsesReceived.high>>>0).toNumber(!0):t.responsesReceived),t.responsesSent!=null&&t.hasOwnProperty("responsesSent")&&(typeof t.responsesSent=="number"?n.responsesSent=i.longs===String?String(t.responsesSent):t.responsesSent:n.responsesSent=i.longs===String?r.Long.prototype.toString.call(t.responsesSent):i.longs===Number?new r.LongBits(t.responsesSent.low>>>0,t.responsesSent.high>>>0).toNumber(!0):t.responsesSent),t.totalRoundTripTime!=null&&t.hasOwnProperty("totalRoundTripTime")&&(n.totalRoundTripTime=i.json&&!isFinite(t.totalRoundTripTime)?String(t.totalRoundTripTime):t.totalRoundTripTime),t.writable!=null&&t.hasOwnProperty("writable")&&(n.writable=t.writable),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.live.rtc.datachannel.RtcCandidatePair"},e}(),c.RtcLocalCandidate=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.id=t.string();break}case 2:{o.networkType=t.string();break}case 3:{o.ip=t.string();break}case 4:{o.address=t.string();break}case 5:{o.port=t.int32();break}case 6:{o.protocol=t.string();break}case 7:{o.candidateType=t.string();break}case 8:{o.priority=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.live.rtc.datachannel.RtcLocalCandidate)return t;let i=new u.bilibili.live.rtc.datachannel.RtcLocalCandidate;return t.id!=null&&(i.id=String(t.id)),t.networkType!=null&&(i.networkType=String(t.networkType)),t.ip!=null&&(i.ip=String(t.ip)),t.address!=null&&(i.address=String(t.address)),t.port!=null&&(i.port=t.port|0),t.protocol!=null&&(i.protocol=String(t.protocol)),t.candidateType!=null&&(i.candidateType=String(t.candidateType)),t.priority!=null&&(r.Long?(i.priority=r.Long.fromValue(t.priority)).unsigned=!1:typeof t.priority=="string"?i.priority=parseInt(t.priority,10):typeof t.priority=="number"?i.priority=t.priority:typeof t.priority=="object"&&(i.priority=new r.LongBits(t.priority.low>>>0,t.priority.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(n.id="",n.networkType="",n.ip="",n.address="",n.port=0,n.protocol="",n.candidateType="",r.Long){let o=new r.Long(0,0,!1);n.priority=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.priority=i.longs===String?"0":0;return t.id!=null&&t.hasOwnProperty("id")&&(n.id=t.id),t.networkType!=null&&t.hasOwnProperty("networkType")&&(n.networkType=t.networkType),t.ip!=null&&t.hasOwnProperty("ip")&&(n.ip=t.ip),t.address!=null&&t.hasOwnProperty("address")&&(n.address=t.address),t.port!=null&&t.hasOwnProperty("port")&&(n.port=t.port),t.protocol!=null&&t.hasOwnProperty("protocol")&&(n.protocol=t.protocol),t.candidateType!=null&&t.hasOwnProperty("candidateType")&&(n.candidateType=t.candidateType),t.priority!=null&&t.hasOwnProperty("priority")&&(typeof t.priority=="number"?n.priority=i.longs===String?String(t.priority):t.priority:n.priority=i.longs===String?r.Long.prototype.toString.call(t.priority):i.longs===Number?new r.LongBits(t.priority.low>>>0,t.priority.high>>>0).toNumber():t.priority),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.live.rtc.datachannel.RtcLocalCandidate"},e}(),c.RtcRemoteCandidate=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.id=t.string();break}case 2:{o.ip=t.string();break}case 3:{o.address=t.string();break}case 4:{o.port=t.int32();break}case 5:{o.protocol=t.string();break}case 6:{o.candidateType=t.string();break}case 7:{o.priority=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.live.rtc.datachannel.RtcRemoteCandidate)return t;let i=new u.bilibili.live.rtc.datachannel.RtcRemoteCandidate;return t.id!=null&&(i.id=String(t.id)),t.ip!=null&&(i.ip=String(t.ip)),t.address!=null&&(i.address=String(t.address)),t.port!=null&&(i.port=t.port|0),t.protocol!=null&&(i.protocol=String(t.protocol)),t.candidateType!=null&&(i.candidateType=String(t.candidateType)),t.priority!=null&&(r.Long?(i.priority=r.Long.fromValue(t.priority)).unsigned=!1:typeof t.priority=="string"?i.priority=parseInt(t.priority,10):typeof t.priority=="number"?i.priority=t.priority:typeof t.priority=="object"&&(i.priority=new r.LongBits(t.priority.low>>>0,t.priority.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(n.id="",n.ip="",n.address="",n.port=0,n.protocol="",n.candidateType="",r.Long){let o=new r.Long(0,0,!1);n.priority=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.priority=i.longs===String?"0":0;return t.id!=null&&t.hasOwnProperty("id")&&(n.id=t.id),t.ip!=null&&t.hasOwnProperty("ip")&&(n.ip=t.ip),t.address!=null&&t.hasOwnProperty("address")&&(n.address=t.address),t.port!=null&&t.hasOwnProperty("port")&&(n.port=t.port),t.protocol!=null&&t.hasOwnProperty("protocol")&&(n.protocol=t.protocol),t.candidateType!=null&&t.hasOwnProperty("candidateType")&&(n.candidateType=t.candidateType),t.priority!=null&&t.hasOwnProperty("priority")&&(typeof t.priority=="number"?n.priority=i.longs===String?String(t.priority):t.priority:n.priority=i.longs===String?r.Long.prototype.toString.call(t.priority):i.longs===Number?new r.LongBits(t.priority.low>>>0,t.priority.high>>>0).toNumber():t.priority),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.live.rtc.datachannel.RtcRemoteCandidate"},e}(),c.RtcAVSenderStats=function(){function e(l){if(this.video=[],this.audio=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.uid=t.uint64();break}case 2:{o.video&&o.video.length||(o.video=[]),o.video.push(u.bilibili.live.rtc.datachannel.RtcVideoSenderInfo.decode(t,t.uint32()));break}case 3:{o.audio&&o.audio.length||(o.audio=[]),o.audio.push(u.bilibili.live.rtc.datachannel.RtcAudioSenderInfo.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.live.rtc.datachannel.RtcAVSenderStats)return t;let i=new u.bilibili.live.rtc.datachannel.RtcAVSenderStats;if(t.uid!=null&&(r.Long?(i.uid=r.Long.fromValue(t.uid)).unsigned=!0:typeof t.uid=="string"?i.uid=parseInt(t.uid,10):typeof t.uid=="number"?i.uid=t.uid:typeof t.uid=="object"&&(i.uid=new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber(!0))),t.video){if(!Array.isArray(t.video))throw TypeError(".bilibili.live.rtc.datachannel.RtcAVSenderStats.video: array expected");i.video=[];for(let n=0;n>>0,t.uid.high>>>0).toNumber(!0):t.uid),t.video&&t.video.length){n.video=[];for(let o=0;o>>3){case 1:{o.ssrc=t.uint32();break}case 2:{o.encoderImplementation=t.string();break}case 3:{o.bytesSent=t.uint64();break}case 4:{o.firCount=t.uint32();break}case 5:{o.frameHeight=t.uint32();break}case 6:{o.frameWidth=t.uint32();break}case 7:{o.framesEncoded=t.uint32();break}case 8:{o.framesSent=t.uint32();break}case 9:{o.headerBytesSent=t.uint32();break}case 10:{o.hugeFramesSent=t.uint32();break}case 11:{o.keyFramesEncoded=t.uint32();break}case 12:{o.nackCount=t.uint32();break}case 13:{o.packetsSent=t.uint64();break}case 14:{o.pliCount=t.uint32();break}case 15:{o.retransmittedBytesSent=t.uint64();break}case 16:{o.retransmittedPacketsSent=t.uint64();break}case 17:{o.totalEncodeTime=t.double();break}case 18:{o.totalEncodedBytesTarget=t.uint64();break}case 19:{o.totalPacketSendDelay=t.double();break}case 20:{o.qpSum=t.uint64();break}case 21:{o.qualityLimitationReason=t.string();break}case 22:{o.qualityLimitationResolutionChanges=t.uint32();break}case 23:{o.bandwidthQLDurations=t.double();break}case 24:{o.cpuQLDurations=t.double();break}case 25:{o.noneQLDurations=t.double();break}case 26:{o.otherQLDurations=t.double();break}case 27:{o.fractionLost=t.double();break}case 28:{o.jitter=t.double();break}case 29:{o.packetsLost=t.uint64();break}case 30:{o.roundTripTime=t.double();break}case 31:{o.roundTripTimeMeasurements=t.uint64();break}case 32:{o.totalRoundTripTime=t.double();break}case 33:{o.streamId=t.uint32();break}case 34:{o.mute=t.bool();break}case 35:{o.contentType=t.string();break}case 36:{o.remoteId=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.live.rtc.datachannel.RtcVideoSenderInfo)return t;let i=new u.bilibili.live.rtc.datachannel.RtcVideoSenderInfo;return t.ssrc!=null&&(i.ssrc=t.ssrc>>>0),t.encoderImplementation!=null&&(i.encoderImplementation=String(t.encoderImplementation)),t.bytesSent!=null&&(r.Long?(i.bytesSent=r.Long.fromValue(t.bytesSent)).unsigned=!0:typeof t.bytesSent=="string"?i.bytesSent=parseInt(t.bytesSent,10):typeof t.bytesSent=="number"?i.bytesSent=t.bytesSent:typeof t.bytesSent=="object"&&(i.bytesSent=new r.LongBits(t.bytesSent.low>>>0,t.bytesSent.high>>>0).toNumber(!0))),t.firCount!=null&&(i.firCount=t.firCount>>>0),t.frameHeight!=null&&(i.frameHeight=t.frameHeight>>>0),t.frameWidth!=null&&(i.frameWidth=t.frameWidth>>>0),t.framesEncoded!=null&&(i.framesEncoded=t.framesEncoded>>>0),t.framesSent!=null&&(i.framesSent=t.framesSent>>>0),t.headerBytesSent!=null&&(i.headerBytesSent=t.headerBytesSent>>>0),t.hugeFramesSent!=null&&(i.hugeFramesSent=t.hugeFramesSent>>>0),t.keyFramesEncoded!=null&&(i.keyFramesEncoded=t.keyFramesEncoded>>>0),t.nackCount!=null&&(i.nackCount=t.nackCount>>>0),t.packetsSent!=null&&(r.Long?(i.packetsSent=r.Long.fromValue(t.packetsSent)).unsigned=!0:typeof t.packetsSent=="string"?i.packetsSent=parseInt(t.packetsSent,10):typeof t.packetsSent=="number"?i.packetsSent=t.packetsSent:typeof t.packetsSent=="object"&&(i.packetsSent=new r.LongBits(t.packetsSent.low>>>0,t.packetsSent.high>>>0).toNumber(!0))),t.pliCount!=null&&(i.pliCount=t.pliCount>>>0),t.retransmittedBytesSent!=null&&(r.Long?(i.retransmittedBytesSent=r.Long.fromValue(t.retransmittedBytesSent)).unsigned=!0:typeof t.retransmittedBytesSent=="string"?i.retransmittedBytesSent=parseInt(t.retransmittedBytesSent,10):typeof t.retransmittedBytesSent=="number"?i.retransmittedBytesSent=t.retransmittedBytesSent:typeof t.retransmittedBytesSent=="object"&&(i.retransmittedBytesSent=new r.LongBits(t.retransmittedBytesSent.low>>>0,t.retransmittedBytesSent.high>>>0).toNumber(!0))),t.retransmittedPacketsSent!=null&&(r.Long?(i.retransmittedPacketsSent=r.Long.fromValue(t.retransmittedPacketsSent)).unsigned=!0:typeof t.retransmittedPacketsSent=="string"?i.retransmittedPacketsSent=parseInt(t.retransmittedPacketsSent,10):typeof t.retransmittedPacketsSent=="number"?i.retransmittedPacketsSent=t.retransmittedPacketsSent:typeof t.retransmittedPacketsSent=="object"&&(i.retransmittedPacketsSent=new r.LongBits(t.retransmittedPacketsSent.low>>>0,t.retransmittedPacketsSent.high>>>0).toNumber(!0))),t.totalEncodeTime!=null&&(i.totalEncodeTime=Number(t.totalEncodeTime)),t.totalEncodedBytesTarget!=null&&(r.Long?(i.totalEncodedBytesTarget=r.Long.fromValue(t.totalEncodedBytesTarget)).unsigned=!0:typeof t.totalEncodedBytesTarget=="string"?i.totalEncodedBytesTarget=parseInt(t.totalEncodedBytesTarget,10):typeof t.totalEncodedBytesTarget=="number"?i.totalEncodedBytesTarget=t.totalEncodedBytesTarget:typeof t.totalEncodedBytesTarget=="object"&&(i.totalEncodedBytesTarget=new r.LongBits(t.totalEncodedBytesTarget.low>>>0,t.totalEncodedBytesTarget.high>>>0).toNumber(!0))),t.totalPacketSendDelay!=null&&(i.totalPacketSendDelay=Number(t.totalPacketSendDelay)),t.qpSum!=null&&(r.Long?(i.qpSum=r.Long.fromValue(t.qpSum)).unsigned=!0:typeof t.qpSum=="string"?i.qpSum=parseInt(t.qpSum,10):typeof t.qpSum=="number"?i.qpSum=t.qpSum:typeof t.qpSum=="object"&&(i.qpSum=new r.LongBits(t.qpSum.low>>>0,t.qpSum.high>>>0).toNumber(!0))),t.qualityLimitationReason!=null&&(i.qualityLimitationReason=String(t.qualityLimitationReason)),t.qualityLimitationResolutionChanges!=null&&(i.qualityLimitationResolutionChanges=t.qualityLimitationResolutionChanges>>>0),t.bandwidthQLDurations!=null&&(i.bandwidthQLDurations=Number(t.bandwidthQLDurations)),t.cpuQLDurations!=null&&(i.cpuQLDurations=Number(t.cpuQLDurations)),t.noneQLDurations!=null&&(i.noneQLDurations=Number(t.noneQLDurations)),t.otherQLDurations!=null&&(i.otherQLDurations=Number(t.otherQLDurations)),t.fractionLost!=null&&(i.fractionLost=Number(t.fractionLost)),t.jitter!=null&&(i.jitter=Number(t.jitter)),t.packetsLost!=null&&(r.Long?(i.packetsLost=r.Long.fromValue(t.packetsLost)).unsigned=!0:typeof t.packetsLost=="string"?i.packetsLost=parseInt(t.packetsLost,10):typeof t.packetsLost=="number"?i.packetsLost=t.packetsLost:typeof t.packetsLost=="object"&&(i.packetsLost=new r.LongBits(t.packetsLost.low>>>0,t.packetsLost.high>>>0).toNumber(!0))),t.roundTripTime!=null&&(i.roundTripTime=Number(t.roundTripTime)),t.roundTripTimeMeasurements!=null&&(r.Long?(i.roundTripTimeMeasurements=r.Long.fromValue(t.roundTripTimeMeasurements)).unsigned=!0:typeof t.roundTripTimeMeasurements=="string"?i.roundTripTimeMeasurements=parseInt(t.roundTripTimeMeasurements,10):typeof t.roundTripTimeMeasurements=="number"?i.roundTripTimeMeasurements=t.roundTripTimeMeasurements:typeof t.roundTripTimeMeasurements=="object"&&(i.roundTripTimeMeasurements=new r.LongBits(t.roundTripTimeMeasurements.low>>>0,t.roundTripTimeMeasurements.high>>>0).toNumber(!0))),t.totalRoundTripTime!=null&&(i.totalRoundTripTime=Number(t.totalRoundTripTime)),t.streamId!=null&&(i.streamId=t.streamId>>>0),t.mute!=null&&(i.mute=!!t.mute),t.contentType!=null&&(i.contentType=String(t.contentType)),t.remoteId!=null&&(i.remoteId=String(t.remoteId)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.ssrc=0,n.encoderImplementation="",r.Long){let o=new r.Long(0,0,!0);n.bytesSent=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.bytesSent=i.longs===String?"0":0;if(n.firCount=0,n.frameHeight=0,n.frameWidth=0,n.framesEncoded=0,n.framesSent=0,n.headerBytesSent=0,n.hugeFramesSent=0,n.keyFramesEncoded=0,n.nackCount=0,r.Long){let o=new r.Long(0,0,!0);n.packetsSent=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.packetsSent=i.longs===String?"0":0;if(n.pliCount=0,r.Long){let o=new r.Long(0,0,!0);n.retransmittedBytesSent=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.retransmittedBytesSent=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!0);n.retransmittedPacketsSent=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.retransmittedPacketsSent=i.longs===String?"0":0;if(n.totalEncodeTime=0,r.Long){let o=new r.Long(0,0,!0);n.totalEncodedBytesTarget=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.totalEncodedBytesTarget=i.longs===String?"0":0;if(n.totalPacketSendDelay=0,r.Long){let o=new r.Long(0,0,!0);n.qpSum=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.qpSum=i.longs===String?"0":0;if(n.qualityLimitationReason="",n.qualityLimitationResolutionChanges=0,n.bandwidthQLDurations=0,n.cpuQLDurations=0,n.noneQLDurations=0,n.otherQLDurations=0,n.fractionLost=0,n.jitter=0,r.Long){let o=new r.Long(0,0,!0);n.packetsLost=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.packetsLost=i.longs===String?"0":0;if(n.roundTripTime=0,r.Long){let o=new r.Long(0,0,!0);n.roundTripTimeMeasurements=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.roundTripTimeMeasurements=i.longs===String?"0":0;n.totalRoundTripTime=0,n.streamId=0,n.mute=!1,n.contentType="",n.remoteId=""}return t.ssrc!=null&&t.hasOwnProperty("ssrc")&&(n.ssrc=t.ssrc),t.encoderImplementation!=null&&t.hasOwnProperty("encoderImplementation")&&(n.encoderImplementation=t.encoderImplementation),t.bytesSent!=null&&t.hasOwnProperty("bytesSent")&&(typeof t.bytesSent=="number"?n.bytesSent=i.longs===String?String(t.bytesSent):t.bytesSent:n.bytesSent=i.longs===String?r.Long.prototype.toString.call(t.bytesSent):i.longs===Number?new r.LongBits(t.bytesSent.low>>>0,t.bytesSent.high>>>0).toNumber(!0):t.bytesSent),t.firCount!=null&&t.hasOwnProperty("firCount")&&(n.firCount=t.firCount),t.frameHeight!=null&&t.hasOwnProperty("frameHeight")&&(n.frameHeight=t.frameHeight),t.frameWidth!=null&&t.hasOwnProperty("frameWidth")&&(n.frameWidth=t.frameWidth),t.framesEncoded!=null&&t.hasOwnProperty("framesEncoded")&&(n.framesEncoded=t.framesEncoded),t.framesSent!=null&&t.hasOwnProperty("framesSent")&&(n.framesSent=t.framesSent),t.headerBytesSent!=null&&t.hasOwnProperty("headerBytesSent")&&(n.headerBytesSent=t.headerBytesSent),t.hugeFramesSent!=null&&t.hasOwnProperty("hugeFramesSent")&&(n.hugeFramesSent=t.hugeFramesSent),t.keyFramesEncoded!=null&&t.hasOwnProperty("keyFramesEncoded")&&(n.keyFramesEncoded=t.keyFramesEncoded),t.nackCount!=null&&t.hasOwnProperty("nackCount")&&(n.nackCount=t.nackCount),t.packetsSent!=null&&t.hasOwnProperty("packetsSent")&&(typeof t.packetsSent=="number"?n.packetsSent=i.longs===String?String(t.packetsSent):t.packetsSent:n.packetsSent=i.longs===String?r.Long.prototype.toString.call(t.packetsSent):i.longs===Number?new r.LongBits(t.packetsSent.low>>>0,t.packetsSent.high>>>0).toNumber(!0):t.packetsSent),t.pliCount!=null&&t.hasOwnProperty("pliCount")&&(n.pliCount=t.pliCount),t.retransmittedBytesSent!=null&&t.hasOwnProperty("retransmittedBytesSent")&&(typeof t.retransmittedBytesSent=="number"?n.retransmittedBytesSent=i.longs===String?String(t.retransmittedBytesSent):t.retransmittedBytesSent:n.retransmittedBytesSent=i.longs===String?r.Long.prototype.toString.call(t.retransmittedBytesSent):i.longs===Number?new r.LongBits(t.retransmittedBytesSent.low>>>0,t.retransmittedBytesSent.high>>>0).toNumber(!0):t.retransmittedBytesSent),t.retransmittedPacketsSent!=null&&t.hasOwnProperty("retransmittedPacketsSent")&&(typeof t.retransmittedPacketsSent=="number"?n.retransmittedPacketsSent=i.longs===String?String(t.retransmittedPacketsSent):t.retransmittedPacketsSent:n.retransmittedPacketsSent=i.longs===String?r.Long.prototype.toString.call(t.retransmittedPacketsSent):i.longs===Number?new r.LongBits(t.retransmittedPacketsSent.low>>>0,t.retransmittedPacketsSent.high>>>0).toNumber(!0):t.retransmittedPacketsSent),t.totalEncodeTime!=null&&t.hasOwnProperty("totalEncodeTime")&&(n.totalEncodeTime=i.json&&!isFinite(t.totalEncodeTime)?String(t.totalEncodeTime):t.totalEncodeTime),t.totalEncodedBytesTarget!=null&&t.hasOwnProperty("totalEncodedBytesTarget")&&(typeof t.totalEncodedBytesTarget=="number"?n.totalEncodedBytesTarget=i.longs===String?String(t.totalEncodedBytesTarget):t.totalEncodedBytesTarget:n.totalEncodedBytesTarget=i.longs===String?r.Long.prototype.toString.call(t.totalEncodedBytesTarget):i.longs===Number?new r.LongBits(t.totalEncodedBytesTarget.low>>>0,t.totalEncodedBytesTarget.high>>>0).toNumber(!0):t.totalEncodedBytesTarget),t.totalPacketSendDelay!=null&&t.hasOwnProperty("totalPacketSendDelay")&&(n.totalPacketSendDelay=i.json&&!isFinite(t.totalPacketSendDelay)?String(t.totalPacketSendDelay):t.totalPacketSendDelay),t.qpSum!=null&&t.hasOwnProperty("qpSum")&&(typeof t.qpSum=="number"?n.qpSum=i.longs===String?String(t.qpSum):t.qpSum:n.qpSum=i.longs===String?r.Long.prototype.toString.call(t.qpSum):i.longs===Number?new r.LongBits(t.qpSum.low>>>0,t.qpSum.high>>>0).toNumber(!0):t.qpSum),t.qualityLimitationReason!=null&&t.hasOwnProperty("qualityLimitationReason")&&(n.qualityLimitationReason=t.qualityLimitationReason),t.qualityLimitationResolutionChanges!=null&&t.hasOwnProperty("qualityLimitationResolutionChanges")&&(n.qualityLimitationResolutionChanges=t.qualityLimitationResolutionChanges),t.bandwidthQLDurations!=null&&t.hasOwnProperty("bandwidthQLDurations")&&(n.bandwidthQLDurations=i.json&&!isFinite(t.bandwidthQLDurations)?String(t.bandwidthQLDurations):t.bandwidthQLDurations),t.cpuQLDurations!=null&&t.hasOwnProperty("cpuQLDurations")&&(n.cpuQLDurations=i.json&&!isFinite(t.cpuQLDurations)?String(t.cpuQLDurations):t.cpuQLDurations),t.noneQLDurations!=null&&t.hasOwnProperty("noneQLDurations")&&(n.noneQLDurations=i.json&&!isFinite(t.noneQLDurations)?String(t.noneQLDurations):t.noneQLDurations),t.otherQLDurations!=null&&t.hasOwnProperty("otherQLDurations")&&(n.otherQLDurations=i.json&&!isFinite(t.otherQLDurations)?String(t.otherQLDurations):t.otherQLDurations),t.fractionLost!=null&&t.hasOwnProperty("fractionLost")&&(n.fractionLost=i.json&&!isFinite(t.fractionLost)?String(t.fractionLost):t.fractionLost),t.jitter!=null&&t.hasOwnProperty("jitter")&&(n.jitter=i.json&&!isFinite(t.jitter)?String(t.jitter):t.jitter),t.packetsLost!=null&&t.hasOwnProperty("packetsLost")&&(typeof t.packetsLost=="number"?n.packetsLost=i.longs===String?String(t.packetsLost):t.packetsLost:n.packetsLost=i.longs===String?r.Long.prototype.toString.call(t.packetsLost):i.longs===Number?new r.LongBits(t.packetsLost.low>>>0,t.packetsLost.high>>>0).toNumber(!0):t.packetsLost),t.roundTripTime!=null&&t.hasOwnProperty("roundTripTime")&&(n.roundTripTime=i.json&&!isFinite(t.roundTripTime)?String(t.roundTripTime):t.roundTripTime),t.roundTripTimeMeasurements!=null&&t.hasOwnProperty("roundTripTimeMeasurements")&&(typeof t.roundTripTimeMeasurements=="number"?n.roundTripTimeMeasurements=i.longs===String?String(t.roundTripTimeMeasurements):t.roundTripTimeMeasurements:n.roundTripTimeMeasurements=i.longs===String?r.Long.prototype.toString.call(t.roundTripTimeMeasurements):i.longs===Number?new r.LongBits(t.roundTripTimeMeasurements.low>>>0,t.roundTripTimeMeasurements.high>>>0).toNumber(!0):t.roundTripTimeMeasurements),t.totalRoundTripTime!=null&&t.hasOwnProperty("totalRoundTripTime")&&(n.totalRoundTripTime=i.json&&!isFinite(t.totalRoundTripTime)?String(t.totalRoundTripTime):t.totalRoundTripTime),t.streamId!=null&&t.hasOwnProperty("streamId")&&(n.streamId=t.streamId),t.mute!=null&&t.hasOwnProperty("mute")&&(n.mute=t.mute),t.contentType!=null&&t.hasOwnProperty("contentType")&&(n.contentType=t.contentType),t.remoteId!=null&&t.hasOwnProperty("remoteId")&&(n.remoteId=t.remoteId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.live.rtc.datachannel.RtcVideoSenderInfo"},e}(),c.RtcAudioSenderInfo=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.ssrc=t.uint32();break}case 2:{o.bytesSent=t.uint64();break}case 3:{o.headerBytesSent=t.uint64();break}case 4:{o.nackCount=t.uint32();break}case 5:{o.packetsSent=t.uint64();break}case 6:{o.retransmittedBytesSent=t.uint64();break}case 7:{o.retransmittedPacketsSent=t.uint64();break}case 8:{o.fractionLost=t.double();break}case 9:{o.jitter=t.double();break}case 10:{o.packetsLost=t.uint64();break}case 11:{o.roundTripTime=t.double();break}case 12:{o.roundTripTimeMeasurements=t.uint64();break}case 13:{o.totalRoundTripTime=t.double();break}case 14:{o.audioLevel=t.double();break}case 15:{o.totalAudioEnergy=t.double();break}case 16:{o.totalSamplesDuration=t.double();break}case 17:{o.streamId=t.uint32();break}case 18:{o.mute=t.bool();break}case 19:{o.remoteId=t.string();break}case 20:{o.mediaSourceId=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.live.rtc.datachannel.RtcAudioSenderInfo)return t;let i=new u.bilibili.live.rtc.datachannel.RtcAudioSenderInfo;return t.ssrc!=null&&(i.ssrc=t.ssrc>>>0),t.bytesSent!=null&&(r.Long?(i.bytesSent=r.Long.fromValue(t.bytesSent)).unsigned=!0:typeof t.bytesSent=="string"?i.bytesSent=parseInt(t.bytesSent,10):typeof t.bytesSent=="number"?i.bytesSent=t.bytesSent:typeof t.bytesSent=="object"&&(i.bytesSent=new r.LongBits(t.bytesSent.low>>>0,t.bytesSent.high>>>0).toNumber(!0))),t.headerBytesSent!=null&&(r.Long?(i.headerBytesSent=r.Long.fromValue(t.headerBytesSent)).unsigned=!0:typeof t.headerBytesSent=="string"?i.headerBytesSent=parseInt(t.headerBytesSent,10):typeof t.headerBytesSent=="number"?i.headerBytesSent=t.headerBytesSent:typeof t.headerBytesSent=="object"&&(i.headerBytesSent=new r.LongBits(t.headerBytesSent.low>>>0,t.headerBytesSent.high>>>0).toNumber(!0))),t.nackCount!=null&&(i.nackCount=t.nackCount>>>0),t.packetsSent!=null&&(r.Long?(i.packetsSent=r.Long.fromValue(t.packetsSent)).unsigned=!0:typeof t.packetsSent=="string"?i.packetsSent=parseInt(t.packetsSent,10):typeof t.packetsSent=="number"?i.packetsSent=t.packetsSent:typeof t.packetsSent=="object"&&(i.packetsSent=new r.LongBits(t.packetsSent.low>>>0,t.packetsSent.high>>>0).toNumber(!0))),t.retransmittedBytesSent!=null&&(r.Long?(i.retransmittedBytesSent=r.Long.fromValue(t.retransmittedBytesSent)).unsigned=!0:typeof t.retransmittedBytesSent=="string"?i.retransmittedBytesSent=parseInt(t.retransmittedBytesSent,10):typeof t.retransmittedBytesSent=="number"?i.retransmittedBytesSent=t.retransmittedBytesSent:typeof t.retransmittedBytesSent=="object"&&(i.retransmittedBytesSent=new r.LongBits(t.retransmittedBytesSent.low>>>0,t.retransmittedBytesSent.high>>>0).toNumber(!0))),t.retransmittedPacketsSent!=null&&(r.Long?(i.retransmittedPacketsSent=r.Long.fromValue(t.retransmittedPacketsSent)).unsigned=!0:typeof t.retransmittedPacketsSent=="string"?i.retransmittedPacketsSent=parseInt(t.retransmittedPacketsSent,10):typeof t.retransmittedPacketsSent=="number"?i.retransmittedPacketsSent=t.retransmittedPacketsSent:typeof t.retransmittedPacketsSent=="object"&&(i.retransmittedPacketsSent=new r.LongBits(t.retransmittedPacketsSent.low>>>0,t.retransmittedPacketsSent.high>>>0).toNumber(!0))),t.fractionLost!=null&&(i.fractionLost=Number(t.fractionLost)),t.jitter!=null&&(i.jitter=Number(t.jitter)),t.packetsLost!=null&&(r.Long?(i.packetsLost=r.Long.fromValue(t.packetsLost)).unsigned=!0:typeof t.packetsLost=="string"?i.packetsLost=parseInt(t.packetsLost,10):typeof t.packetsLost=="number"?i.packetsLost=t.packetsLost:typeof t.packetsLost=="object"&&(i.packetsLost=new r.LongBits(t.packetsLost.low>>>0,t.packetsLost.high>>>0).toNumber(!0))),t.roundTripTime!=null&&(i.roundTripTime=Number(t.roundTripTime)),t.roundTripTimeMeasurements!=null&&(r.Long?(i.roundTripTimeMeasurements=r.Long.fromValue(t.roundTripTimeMeasurements)).unsigned=!0:typeof t.roundTripTimeMeasurements=="string"?i.roundTripTimeMeasurements=parseInt(t.roundTripTimeMeasurements,10):typeof t.roundTripTimeMeasurements=="number"?i.roundTripTimeMeasurements=t.roundTripTimeMeasurements:typeof t.roundTripTimeMeasurements=="object"&&(i.roundTripTimeMeasurements=new r.LongBits(t.roundTripTimeMeasurements.low>>>0,t.roundTripTimeMeasurements.high>>>0).toNumber(!0))),t.totalRoundTripTime!=null&&(i.totalRoundTripTime=Number(t.totalRoundTripTime)),t.audioLevel!=null&&(i.audioLevel=Number(t.audioLevel)),t.totalAudioEnergy!=null&&(i.totalAudioEnergy=Number(t.totalAudioEnergy)),t.totalSamplesDuration!=null&&(i.totalSamplesDuration=Number(t.totalSamplesDuration)),t.streamId!=null&&(i.streamId=t.streamId>>>0),t.mute!=null&&(i.mute=!!t.mute),t.remoteId!=null&&(i.remoteId=String(t.remoteId)),t.mediaSourceId!=null&&(i.mediaSourceId=String(t.mediaSourceId)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.ssrc=0,r.Long){let o=new r.Long(0,0,!0);n.bytesSent=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.bytesSent=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!0);n.headerBytesSent=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.headerBytesSent=i.longs===String?"0":0;if(n.nackCount=0,r.Long){let o=new r.Long(0,0,!0);n.packetsSent=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.packetsSent=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!0);n.retransmittedBytesSent=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.retransmittedBytesSent=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!0);n.retransmittedPacketsSent=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.retransmittedPacketsSent=i.longs===String?"0":0;if(n.fractionLost=0,n.jitter=0,r.Long){let o=new r.Long(0,0,!0);n.packetsLost=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.packetsLost=i.longs===String?"0":0;if(n.roundTripTime=0,r.Long){let o=new r.Long(0,0,!0);n.roundTripTimeMeasurements=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.roundTripTimeMeasurements=i.longs===String?"0":0;n.totalRoundTripTime=0,n.audioLevel=0,n.totalAudioEnergy=0,n.totalSamplesDuration=0,n.streamId=0,n.mute=!1,n.remoteId="",n.mediaSourceId=""}return t.ssrc!=null&&t.hasOwnProperty("ssrc")&&(n.ssrc=t.ssrc),t.bytesSent!=null&&t.hasOwnProperty("bytesSent")&&(typeof t.bytesSent=="number"?n.bytesSent=i.longs===String?String(t.bytesSent):t.bytesSent:n.bytesSent=i.longs===String?r.Long.prototype.toString.call(t.bytesSent):i.longs===Number?new r.LongBits(t.bytesSent.low>>>0,t.bytesSent.high>>>0).toNumber(!0):t.bytesSent),t.headerBytesSent!=null&&t.hasOwnProperty("headerBytesSent")&&(typeof t.headerBytesSent=="number"?n.headerBytesSent=i.longs===String?String(t.headerBytesSent):t.headerBytesSent:n.headerBytesSent=i.longs===String?r.Long.prototype.toString.call(t.headerBytesSent):i.longs===Number?new r.LongBits(t.headerBytesSent.low>>>0,t.headerBytesSent.high>>>0).toNumber(!0):t.headerBytesSent),t.nackCount!=null&&t.hasOwnProperty("nackCount")&&(n.nackCount=t.nackCount),t.packetsSent!=null&&t.hasOwnProperty("packetsSent")&&(typeof t.packetsSent=="number"?n.packetsSent=i.longs===String?String(t.packetsSent):t.packetsSent:n.packetsSent=i.longs===String?r.Long.prototype.toString.call(t.packetsSent):i.longs===Number?new r.LongBits(t.packetsSent.low>>>0,t.packetsSent.high>>>0).toNumber(!0):t.packetsSent),t.retransmittedBytesSent!=null&&t.hasOwnProperty("retransmittedBytesSent")&&(typeof t.retransmittedBytesSent=="number"?n.retransmittedBytesSent=i.longs===String?String(t.retransmittedBytesSent):t.retransmittedBytesSent:n.retransmittedBytesSent=i.longs===String?r.Long.prototype.toString.call(t.retransmittedBytesSent):i.longs===Number?new r.LongBits(t.retransmittedBytesSent.low>>>0,t.retransmittedBytesSent.high>>>0).toNumber(!0):t.retransmittedBytesSent),t.retransmittedPacketsSent!=null&&t.hasOwnProperty("retransmittedPacketsSent")&&(typeof t.retransmittedPacketsSent=="number"?n.retransmittedPacketsSent=i.longs===String?String(t.retransmittedPacketsSent):t.retransmittedPacketsSent:n.retransmittedPacketsSent=i.longs===String?r.Long.prototype.toString.call(t.retransmittedPacketsSent):i.longs===Number?new r.LongBits(t.retransmittedPacketsSent.low>>>0,t.retransmittedPacketsSent.high>>>0).toNumber(!0):t.retransmittedPacketsSent),t.fractionLost!=null&&t.hasOwnProperty("fractionLost")&&(n.fractionLost=i.json&&!isFinite(t.fractionLost)?String(t.fractionLost):t.fractionLost),t.jitter!=null&&t.hasOwnProperty("jitter")&&(n.jitter=i.json&&!isFinite(t.jitter)?String(t.jitter):t.jitter),t.packetsLost!=null&&t.hasOwnProperty("packetsLost")&&(typeof t.packetsLost=="number"?n.packetsLost=i.longs===String?String(t.packetsLost):t.packetsLost:n.packetsLost=i.longs===String?r.Long.prototype.toString.call(t.packetsLost):i.longs===Number?new r.LongBits(t.packetsLost.low>>>0,t.packetsLost.high>>>0).toNumber(!0):t.packetsLost),t.roundTripTime!=null&&t.hasOwnProperty("roundTripTime")&&(n.roundTripTime=i.json&&!isFinite(t.roundTripTime)?String(t.roundTripTime):t.roundTripTime),t.roundTripTimeMeasurements!=null&&t.hasOwnProperty("roundTripTimeMeasurements")&&(typeof t.roundTripTimeMeasurements=="number"?n.roundTripTimeMeasurements=i.longs===String?String(t.roundTripTimeMeasurements):t.roundTripTimeMeasurements:n.roundTripTimeMeasurements=i.longs===String?r.Long.prototype.toString.call(t.roundTripTimeMeasurements):i.longs===Number?new r.LongBits(t.roundTripTimeMeasurements.low>>>0,t.roundTripTimeMeasurements.high>>>0).toNumber(!0):t.roundTripTimeMeasurements),t.totalRoundTripTime!=null&&t.hasOwnProperty("totalRoundTripTime")&&(n.totalRoundTripTime=i.json&&!isFinite(t.totalRoundTripTime)?String(t.totalRoundTripTime):t.totalRoundTripTime),t.audioLevel!=null&&t.hasOwnProperty("audioLevel")&&(n.audioLevel=i.json&&!isFinite(t.audioLevel)?String(t.audioLevel):t.audioLevel),t.totalAudioEnergy!=null&&t.hasOwnProperty("totalAudioEnergy")&&(n.totalAudioEnergy=i.json&&!isFinite(t.totalAudioEnergy)?String(t.totalAudioEnergy):t.totalAudioEnergy),t.totalSamplesDuration!=null&&t.hasOwnProperty("totalSamplesDuration")&&(n.totalSamplesDuration=i.json&&!isFinite(t.totalSamplesDuration)?String(t.totalSamplesDuration):t.totalSamplesDuration),t.streamId!=null&&t.hasOwnProperty("streamId")&&(n.streamId=t.streamId),t.mute!=null&&t.hasOwnProperty("mute")&&(n.mute=t.mute),t.remoteId!=null&&t.hasOwnProperty("remoteId")&&(n.remoteId=t.remoteId),t.mediaSourceId!=null&&t.hasOwnProperty("mediaSourceId")&&(n.mediaSourceId=t.mediaSourceId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.live.rtc.datachannel.RtcAudioSenderInfo"},e}(),c.RtcAVReceiverStats=function(){function e(l){if(this.video=[],this.audio=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.uid=t.uint64();break}case 2:{o.video&&o.video.length||(o.video=[]),o.video.push(u.bilibili.live.rtc.datachannel.RtcVideoReceiverInfo.decode(t,t.uint32()));break}case 3:{o.audio&&o.audio.length||(o.audio=[]),o.audio.push(u.bilibili.live.rtc.datachannel.RtcAudioReceiverInfo.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.live.rtc.datachannel.RtcAVReceiverStats)return t;let i=new u.bilibili.live.rtc.datachannel.RtcAVReceiverStats;if(t.uid!=null&&(r.Long?(i.uid=r.Long.fromValue(t.uid)).unsigned=!0:typeof t.uid=="string"?i.uid=parseInt(t.uid,10):typeof t.uid=="number"?i.uid=t.uid:typeof t.uid=="object"&&(i.uid=new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber(!0))),t.video){if(!Array.isArray(t.video))throw TypeError(".bilibili.live.rtc.datachannel.RtcAVReceiverStats.video: array expected");i.video=[];for(let n=0;n>>0,t.uid.high>>>0).toNumber(!0):t.uid),t.video&&t.video.length){n.video=[];for(let o=0;o>>3){case 1:{o.ssrc=t.uint32();break}case 2:{o.decoderImplementation=t.string();break}case 3:{o.estimatedPlayoutTimestamp=t.double();break}case 4:{o.frameWidth=t.uint32();break}case 5:{o.frameHeight=t.uint32();break}case 6:{o.framesDecoded=t.uint32();break}case 7:{o.framesDropped=t.uint32();break}case 8:{o.framesReceived=t.uint32();break}case 9:{o.bytesReceived=t.uint64();break}case 10:{o.headerBytesReceived=t.uint64();break}case 11:{o.packetsLost=t.int64();break}case 12:{o.packetsReceived=t.uint64();break}case 13:{o.jitter=t.double();break}case 14:{o.jitterBufferDelay=t.double();break}case 15:{o.jitterBufferEmittedCount=t.uint64();break}case 16:{o.keyFramesDecoded=t.uint32();break}case 17:{o.lastPacketReceivedTimestamp=t.double();break}case 18:{o.firCount=t.uint32();break}case 19:{o.nackCount=t.uint32();break}case 20:{o.pliCount=t.uint32();break}case 21:{o.qpSum=t.uint64();break}case 22:{o.totalDecodeTime=t.double();break}case 23:{o.totalInterFrameDelay=t.double();break}case 24:{o.totalSquaredInterFrameDelay=t.double();break}case 25:{o.freezeCount=t.uint32();break}case 26:{o.pauseCount=t.uint32();break}case 27:{o.sumOfSquaredFramesDuration=t.double();break}case 28:{o.totalFreezesDuration=t.double();break}case 29:{o.totalPausesDuration=t.double();break}case 30:{o.firstFrameCost=t.int64();break}case 31:{o.streamId=t.uint32();break}case 32:{o.mute=t.bool();break}case 33:{o.freezeSamples=t.int64();break}case 34:{o.freezeDuration=t.int64();break}case 35:{o.trackId=t.string();break}case 36:{o.uid=t.uint64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.live.rtc.datachannel.RtcVideoReceiverInfo)return t;let i=new u.bilibili.live.rtc.datachannel.RtcVideoReceiverInfo;return t.ssrc!=null&&(i.ssrc=t.ssrc>>>0),t.decoderImplementation!=null&&(i.decoderImplementation=String(t.decoderImplementation)),t.estimatedPlayoutTimestamp!=null&&(i.estimatedPlayoutTimestamp=Number(t.estimatedPlayoutTimestamp)),t.frameWidth!=null&&(i.frameWidth=t.frameWidth>>>0),t.frameHeight!=null&&(i.frameHeight=t.frameHeight>>>0),t.framesDecoded!=null&&(i.framesDecoded=t.framesDecoded>>>0),t.framesDropped!=null&&(i.framesDropped=t.framesDropped>>>0),t.framesReceived!=null&&(i.framesReceived=t.framesReceived>>>0),t.bytesReceived!=null&&(r.Long?(i.bytesReceived=r.Long.fromValue(t.bytesReceived)).unsigned=!0:typeof t.bytesReceived=="string"?i.bytesReceived=parseInt(t.bytesReceived,10):typeof t.bytesReceived=="number"?i.bytesReceived=t.bytesReceived:typeof t.bytesReceived=="object"&&(i.bytesReceived=new r.LongBits(t.bytesReceived.low>>>0,t.bytesReceived.high>>>0).toNumber(!0))),t.headerBytesReceived!=null&&(r.Long?(i.headerBytesReceived=r.Long.fromValue(t.headerBytesReceived)).unsigned=!0:typeof t.headerBytesReceived=="string"?i.headerBytesReceived=parseInt(t.headerBytesReceived,10):typeof t.headerBytesReceived=="number"?i.headerBytesReceived=t.headerBytesReceived:typeof t.headerBytesReceived=="object"&&(i.headerBytesReceived=new r.LongBits(t.headerBytesReceived.low>>>0,t.headerBytesReceived.high>>>0).toNumber(!0))),t.packetsLost!=null&&(r.Long?(i.packetsLost=r.Long.fromValue(t.packetsLost)).unsigned=!1:typeof t.packetsLost=="string"?i.packetsLost=parseInt(t.packetsLost,10):typeof t.packetsLost=="number"?i.packetsLost=t.packetsLost:typeof t.packetsLost=="object"&&(i.packetsLost=new r.LongBits(t.packetsLost.low>>>0,t.packetsLost.high>>>0).toNumber())),t.packetsReceived!=null&&(r.Long?(i.packetsReceived=r.Long.fromValue(t.packetsReceived)).unsigned=!0:typeof t.packetsReceived=="string"?i.packetsReceived=parseInt(t.packetsReceived,10):typeof t.packetsReceived=="number"?i.packetsReceived=t.packetsReceived:typeof t.packetsReceived=="object"&&(i.packetsReceived=new r.LongBits(t.packetsReceived.low>>>0,t.packetsReceived.high>>>0).toNumber(!0))),t.jitter!=null&&(i.jitter=Number(t.jitter)),t.jitterBufferDelay!=null&&(i.jitterBufferDelay=Number(t.jitterBufferDelay)),t.jitterBufferEmittedCount!=null&&(r.Long?(i.jitterBufferEmittedCount=r.Long.fromValue(t.jitterBufferEmittedCount)).unsigned=!0:typeof t.jitterBufferEmittedCount=="string"?i.jitterBufferEmittedCount=parseInt(t.jitterBufferEmittedCount,10):typeof t.jitterBufferEmittedCount=="number"?i.jitterBufferEmittedCount=t.jitterBufferEmittedCount:typeof t.jitterBufferEmittedCount=="object"&&(i.jitterBufferEmittedCount=new r.LongBits(t.jitterBufferEmittedCount.low>>>0,t.jitterBufferEmittedCount.high>>>0).toNumber(!0))),t.keyFramesDecoded!=null&&(i.keyFramesDecoded=t.keyFramesDecoded>>>0),t.lastPacketReceivedTimestamp!=null&&(i.lastPacketReceivedTimestamp=Number(t.lastPacketReceivedTimestamp)),t.firCount!=null&&(i.firCount=t.firCount>>>0),t.nackCount!=null&&(i.nackCount=t.nackCount>>>0),t.pliCount!=null&&(i.pliCount=t.pliCount>>>0),t.qpSum!=null&&(r.Long?(i.qpSum=r.Long.fromValue(t.qpSum)).unsigned=!0:typeof t.qpSum=="string"?i.qpSum=parseInt(t.qpSum,10):typeof t.qpSum=="number"?i.qpSum=t.qpSum:typeof t.qpSum=="object"&&(i.qpSum=new r.LongBits(t.qpSum.low>>>0,t.qpSum.high>>>0).toNumber(!0))),t.totalDecodeTime!=null&&(i.totalDecodeTime=Number(t.totalDecodeTime)),t.totalInterFrameDelay!=null&&(i.totalInterFrameDelay=Number(t.totalInterFrameDelay)),t.totalSquaredInterFrameDelay!=null&&(i.totalSquaredInterFrameDelay=Number(t.totalSquaredInterFrameDelay)),t.freezeCount!=null&&(i.freezeCount=t.freezeCount>>>0),t.pauseCount!=null&&(i.pauseCount=t.pauseCount>>>0),t.sumOfSquaredFramesDuration!=null&&(i.sumOfSquaredFramesDuration=Number(t.sumOfSquaredFramesDuration)),t.totalFreezesDuration!=null&&(i.totalFreezesDuration=Number(t.totalFreezesDuration)),t.totalPausesDuration!=null&&(i.totalPausesDuration=Number(t.totalPausesDuration)),t.firstFrameCost!=null&&(r.Long?(i.firstFrameCost=r.Long.fromValue(t.firstFrameCost)).unsigned=!1:typeof t.firstFrameCost=="string"?i.firstFrameCost=parseInt(t.firstFrameCost,10):typeof t.firstFrameCost=="number"?i.firstFrameCost=t.firstFrameCost:typeof t.firstFrameCost=="object"&&(i.firstFrameCost=new r.LongBits(t.firstFrameCost.low>>>0,t.firstFrameCost.high>>>0).toNumber())),t.streamId!=null&&(i.streamId=t.streamId>>>0),t.mute!=null&&(i.mute=!!t.mute),t.freezeSamples!=null&&(r.Long?(i.freezeSamples=r.Long.fromValue(t.freezeSamples)).unsigned=!1:typeof t.freezeSamples=="string"?i.freezeSamples=parseInt(t.freezeSamples,10):typeof t.freezeSamples=="number"?i.freezeSamples=t.freezeSamples:typeof t.freezeSamples=="object"&&(i.freezeSamples=new r.LongBits(t.freezeSamples.low>>>0,t.freezeSamples.high>>>0).toNumber())),t.freezeDuration!=null&&(r.Long?(i.freezeDuration=r.Long.fromValue(t.freezeDuration)).unsigned=!1:typeof t.freezeDuration=="string"?i.freezeDuration=parseInt(t.freezeDuration,10):typeof t.freezeDuration=="number"?i.freezeDuration=t.freezeDuration:typeof t.freezeDuration=="object"&&(i.freezeDuration=new r.LongBits(t.freezeDuration.low>>>0,t.freezeDuration.high>>>0).toNumber())),t.trackId!=null&&(i.trackId=String(t.trackId)),t.uid!=null&&(r.Long?(i.uid=r.Long.fromValue(t.uid)).unsigned=!0:typeof t.uid=="string"?i.uid=parseInt(t.uid,10):typeof t.uid=="number"?i.uid=t.uid:typeof t.uid=="object"&&(i.uid=new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber(!0))),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.ssrc=0,n.decoderImplementation="",n.estimatedPlayoutTimestamp=0,n.frameWidth=0,n.frameHeight=0,n.framesDecoded=0,n.framesDropped=0,n.framesReceived=0,r.Long){let o=new r.Long(0,0,!0);n.bytesReceived=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.bytesReceived=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!0);n.headerBytesReceived=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.headerBytesReceived=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.packetsLost=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.packetsLost=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!0);n.packetsReceived=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.packetsReceived=i.longs===String?"0":0;if(n.jitter=0,n.jitterBufferDelay=0,r.Long){let o=new r.Long(0,0,!0);n.jitterBufferEmittedCount=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.jitterBufferEmittedCount=i.longs===String?"0":0;if(n.keyFramesDecoded=0,n.lastPacketReceivedTimestamp=0,n.firCount=0,n.nackCount=0,n.pliCount=0,r.Long){let o=new r.Long(0,0,!0);n.qpSum=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.qpSum=i.longs===String?"0":0;if(n.totalDecodeTime=0,n.totalInterFrameDelay=0,n.totalSquaredInterFrameDelay=0,n.freezeCount=0,n.pauseCount=0,n.sumOfSquaredFramesDuration=0,n.totalFreezesDuration=0,n.totalPausesDuration=0,r.Long){let o=new r.Long(0,0,!1);n.firstFrameCost=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.firstFrameCost=i.longs===String?"0":0;if(n.streamId=0,n.mute=!1,r.Long){let o=new r.Long(0,0,!1);n.freezeSamples=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.freezeSamples=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.freezeDuration=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.freezeDuration=i.longs===String?"0":0;if(n.trackId="",r.Long){let o=new r.Long(0,0,!0);n.uid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.uid=i.longs===String?"0":0}return t.ssrc!=null&&t.hasOwnProperty("ssrc")&&(n.ssrc=t.ssrc),t.decoderImplementation!=null&&t.hasOwnProperty("decoderImplementation")&&(n.decoderImplementation=t.decoderImplementation),t.estimatedPlayoutTimestamp!=null&&t.hasOwnProperty("estimatedPlayoutTimestamp")&&(n.estimatedPlayoutTimestamp=i.json&&!isFinite(t.estimatedPlayoutTimestamp)?String(t.estimatedPlayoutTimestamp):t.estimatedPlayoutTimestamp),t.frameWidth!=null&&t.hasOwnProperty("frameWidth")&&(n.frameWidth=t.frameWidth),t.frameHeight!=null&&t.hasOwnProperty("frameHeight")&&(n.frameHeight=t.frameHeight),t.framesDecoded!=null&&t.hasOwnProperty("framesDecoded")&&(n.framesDecoded=t.framesDecoded),t.framesDropped!=null&&t.hasOwnProperty("framesDropped")&&(n.framesDropped=t.framesDropped),t.framesReceived!=null&&t.hasOwnProperty("framesReceived")&&(n.framesReceived=t.framesReceived),t.bytesReceived!=null&&t.hasOwnProperty("bytesReceived")&&(typeof t.bytesReceived=="number"?n.bytesReceived=i.longs===String?String(t.bytesReceived):t.bytesReceived:n.bytesReceived=i.longs===String?r.Long.prototype.toString.call(t.bytesReceived):i.longs===Number?new r.LongBits(t.bytesReceived.low>>>0,t.bytesReceived.high>>>0).toNumber(!0):t.bytesReceived),t.headerBytesReceived!=null&&t.hasOwnProperty("headerBytesReceived")&&(typeof t.headerBytesReceived=="number"?n.headerBytesReceived=i.longs===String?String(t.headerBytesReceived):t.headerBytesReceived:n.headerBytesReceived=i.longs===String?r.Long.prototype.toString.call(t.headerBytesReceived):i.longs===Number?new r.LongBits(t.headerBytesReceived.low>>>0,t.headerBytesReceived.high>>>0).toNumber(!0):t.headerBytesReceived),t.packetsLost!=null&&t.hasOwnProperty("packetsLost")&&(typeof t.packetsLost=="number"?n.packetsLost=i.longs===String?String(t.packetsLost):t.packetsLost:n.packetsLost=i.longs===String?r.Long.prototype.toString.call(t.packetsLost):i.longs===Number?new r.LongBits(t.packetsLost.low>>>0,t.packetsLost.high>>>0).toNumber():t.packetsLost),t.packetsReceived!=null&&t.hasOwnProperty("packetsReceived")&&(typeof t.packetsReceived=="number"?n.packetsReceived=i.longs===String?String(t.packetsReceived):t.packetsReceived:n.packetsReceived=i.longs===String?r.Long.prototype.toString.call(t.packetsReceived):i.longs===Number?new r.LongBits(t.packetsReceived.low>>>0,t.packetsReceived.high>>>0).toNumber(!0):t.packetsReceived),t.jitter!=null&&t.hasOwnProperty("jitter")&&(n.jitter=i.json&&!isFinite(t.jitter)?String(t.jitter):t.jitter),t.jitterBufferDelay!=null&&t.hasOwnProperty("jitterBufferDelay")&&(n.jitterBufferDelay=i.json&&!isFinite(t.jitterBufferDelay)?String(t.jitterBufferDelay):t.jitterBufferDelay),t.jitterBufferEmittedCount!=null&&t.hasOwnProperty("jitterBufferEmittedCount")&&(typeof t.jitterBufferEmittedCount=="number"?n.jitterBufferEmittedCount=i.longs===String?String(t.jitterBufferEmittedCount):t.jitterBufferEmittedCount:n.jitterBufferEmittedCount=i.longs===String?r.Long.prototype.toString.call(t.jitterBufferEmittedCount):i.longs===Number?new r.LongBits(t.jitterBufferEmittedCount.low>>>0,t.jitterBufferEmittedCount.high>>>0).toNumber(!0):t.jitterBufferEmittedCount),t.keyFramesDecoded!=null&&t.hasOwnProperty("keyFramesDecoded")&&(n.keyFramesDecoded=t.keyFramesDecoded),t.lastPacketReceivedTimestamp!=null&&t.hasOwnProperty("lastPacketReceivedTimestamp")&&(n.lastPacketReceivedTimestamp=i.json&&!isFinite(t.lastPacketReceivedTimestamp)?String(t.lastPacketReceivedTimestamp):t.lastPacketReceivedTimestamp),t.firCount!=null&&t.hasOwnProperty("firCount")&&(n.firCount=t.firCount),t.nackCount!=null&&t.hasOwnProperty("nackCount")&&(n.nackCount=t.nackCount),t.pliCount!=null&&t.hasOwnProperty("pliCount")&&(n.pliCount=t.pliCount),t.qpSum!=null&&t.hasOwnProperty("qpSum")&&(typeof t.qpSum=="number"?n.qpSum=i.longs===String?String(t.qpSum):t.qpSum:n.qpSum=i.longs===String?r.Long.prototype.toString.call(t.qpSum):i.longs===Number?new r.LongBits(t.qpSum.low>>>0,t.qpSum.high>>>0).toNumber(!0):t.qpSum),t.totalDecodeTime!=null&&t.hasOwnProperty("totalDecodeTime")&&(n.totalDecodeTime=i.json&&!isFinite(t.totalDecodeTime)?String(t.totalDecodeTime):t.totalDecodeTime),t.totalInterFrameDelay!=null&&t.hasOwnProperty("totalInterFrameDelay")&&(n.totalInterFrameDelay=i.json&&!isFinite(t.totalInterFrameDelay)?String(t.totalInterFrameDelay):t.totalInterFrameDelay),t.totalSquaredInterFrameDelay!=null&&t.hasOwnProperty("totalSquaredInterFrameDelay")&&(n.totalSquaredInterFrameDelay=i.json&&!isFinite(t.totalSquaredInterFrameDelay)?String(t.totalSquaredInterFrameDelay):t.totalSquaredInterFrameDelay),t.freezeCount!=null&&t.hasOwnProperty("freezeCount")&&(n.freezeCount=t.freezeCount),t.pauseCount!=null&&t.hasOwnProperty("pauseCount")&&(n.pauseCount=t.pauseCount),t.sumOfSquaredFramesDuration!=null&&t.hasOwnProperty("sumOfSquaredFramesDuration")&&(n.sumOfSquaredFramesDuration=i.json&&!isFinite(t.sumOfSquaredFramesDuration)?String(t.sumOfSquaredFramesDuration):t.sumOfSquaredFramesDuration),t.totalFreezesDuration!=null&&t.hasOwnProperty("totalFreezesDuration")&&(n.totalFreezesDuration=i.json&&!isFinite(t.totalFreezesDuration)?String(t.totalFreezesDuration):t.totalFreezesDuration),t.totalPausesDuration!=null&&t.hasOwnProperty("totalPausesDuration")&&(n.totalPausesDuration=i.json&&!isFinite(t.totalPausesDuration)?String(t.totalPausesDuration):t.totalPausesDuration),t.firstFrameCost!=null&&t.hasOwnProperty("firstFrameCost")&&(typeof t.firstFrameCost=="number"?n.firstFrameCost=i.longs===String?String(t.firstFrameCost):t.firstFrameCost:n.firstFrameCost=i.longs===String?r.Long.prototype.toString.call(t.firstFrameCost):i.longs===Number?new r.LongBits(t.firstFrameCost.low>>>0,t.firstFrameCost.high>>>0).toNumber():t.firstFrameCost),t.streamId!=null&&t.hasOwnProperty("streamId")&&(n.streamId=t.streamId),t.mute!=null&&t.hasOwnProperty("mute")&&(n.mute=t.mute),t.freezeSamples!=null&&t.hasOwnProperty("freezeSamples")&&(typeof t.freezeSamples=="number"?n.freezeSamples=i.longs===String?String(t.freezeSamples):t.freezeSamples:n.freezeSamples=i.longs===String?r.Long.prototype.toString.call(t.freezeSamples):i.longs===Number?new r.LongBits(t.freezeSamples.low>>>0,t.freezeSamples.high>>>0).toNumber():t.freezeSamples),t.freezeDuration!=null&&t.hasOwnProperty("freezeDuration")&&(typeof t.freezeDuration=="number"?n.freezeDuration=i.longs===String?String(t.freezeDuration):t.freezeDuration:n.freezeDuration=i.longs===String?r.Long.prototype.toString.call(t.freezeDuration):i.longs===Number?new r.LongBits(t.freezeDuration.low>>>0,t.freezeDuration.high>>>0).toNumber():t.freezeDuration),t.trackId!=null&&t.hasOwnProperty("trackId")&&(n.trackId=t.trackId),t.uid!=null&&t.hasOwnProperty("uid")&&(typeof t.uid=="number"?n.uid=i.longs===String?String(t.uid):t.uid:n.uid=i.longs===String?r.Long.prototype.toString.call(t.uid):i.longs===Number?new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber(!0):t.uid),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.live.rtc.datachannel.RtcVideoReceiverInfo"},e}(),c.RtcAudioReceiverInfo=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.ssrc=t.uint32();break}case 2:{o.audioLevel=t.double();break}case 3:{o.bytesReceived=t.uint64();break}case 4:{o.concealedSamples=t.uint64();break}case 5:{o.concealmentEvents=t.uint64();break}case 6:{o.silentConcealedSamples=t.uint64();break}case 7:{o.estimatedPlayoutTimestamp=t.double();break}case 8:{o.fecPacketsDiscarded=t.uint64();break}case 9:{o.fecPacketsReceived=t.uint64();break}case 10:{o.headerBytesReceived=t.uint64();break}case 11:{o.insertedSamplesForDeceleration=t.uint64();break}case 12:{o.jitter=t.double();break}case 13:{o.jitterBufferDelay=t.double();break}case 14:{o.jitterBufferEmittedCount=t.uint64();break}case 15:{o.lastPacketReceivedTimestamp=t.double();break}case 16:{o.packetsDiscarded=t.uint64();break}case 17:{o.packetsLost=t.int64();break}case 18:{o.packetsReceived=t.uint64();break}case 19:{o.removedSamplesForAcceleration=t.uint64();break}case 20:{o.totalAudioEnergy=t.double();break}case 21:{o.totalSamplesDuration=t.double();break}case 22:{o.totalSamplesReceived=t.uint64();break}case 23:{o.delayedPacketOutageSamples=t.uint64();break}case 24:{o.interruptionCount=t.uint32();break}case 25:{o.totalInterruptionDuration=t.double();break}case 26:{o.jitterBufferFlushes=t.uint64();break}case 27:{o.jitterBufferTargetDelay=t.double();break}case 28:{o.relativePacketArrivalDelay=t.double();break}case 29:{o.streamId=t.uint32();break}case 30:{o.mute=t.bool();break}case 31:{o.trackId=t.string();break}case 32:{o.uid=t.uint64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.live.rtc.datachannel.RtcAudioReceiverInfo)return t;let i=new u.bilibili.live.rtc.datachannel.RtcAudioReceiverInfo;return t.ssrc!=null&&(i.ssrc=t.ssrc>>>0),t.audioLevel!=null&&(i.audioLevel=Number(t.audioLevel)),t.bytesReceived!=null&&(r.Long?(i.bytesReceived=r.Long.fromValue(t.bytesReceived)).unsigned=!0:typeof t.bytesReceived=="string"?i.bytesReceived=parseInt(t.bytesReceived,10):typeof t.bytesReceived=="number"?i.bytesReceived=t.bytesReceived:typeof t.bytesReceived=="object"&&(i.bytesReceived=new r.LongBits(t.bytesReceived.low>>>0,t.bytesReceived.high>>>0).toNumber(!0))),t.concealedSamples!=null&&(r.Long?(i.concealedSamples=r.Long.fromValue(t.concealedSamples)).unsigned=!0:typeof t.concealedSamples=="string"?i.concealedSamples=parseInt(t.concealedSamples,10):typeof t.concealedSamples=="number"?i.concealedSamples=t.concealedSamples:typeof t.concealedSamples=="object"&&(i.concealedSamples=new r.LongBits(t.concealedSamples.low>>>0,t.concealedSamples.high>>>0).toNumber(!0))),t.concealmentEvents!=null&&(r.Long?(i.concealmentEvents=r.Long.fromValue(t.concealmentEvents)).unsigned=!0:typeof t.concealmentEvents=="string"?i.concealmentEvents=parseInt(t.concealmentEvents,10):typeof t.concealmentEvents=="number"?i.concealmentEvents=t.concealmentEvents:typeof t.concealmentEvents=="object"&&(i.concealmentEvents=new r.LongBits(t.concealmentEvents.low>>>0,t.concealmentEvents.high>>>0).toNumber(!0))),t.silentConcealedSamples!=null&&(r.Long?(i.silentConcealedSamples=r.Long.fromValue(t.silentConcealedSamples)).unsigned=!0:typeof t.silentConcealedSamples=="string"?i.silentConcealedSamples=parseInt(t.silentConcealedSamples,10):typeof t.silentConcealedSamples=="number"?i.silentConcealedSamples=t.silentConcealedSamples:typeof t.silentConcealedSamples=="object"&&(i.silentConcealedSamples=new r.LongBits(t.silentConcealedSamples.low>>>0,t.silentConcealedSamples.high>>>0).toNumber(!0))),t.estimatedPlayoutTimestamp!=null&&(i.estimatedPlayoutTimestamp=Number(t.estimatedPlayoutTimestamp)),t.fecPacketsDiscarded!=null&&(r.Long?(i.fecPacketsDiscarded=r.Long.fromValue(t.fecPacketsDiscarded)).unsigned=!0:typeof t.fecPacketsDiscarded=="string"?i.fecPacketsDiscarded=parseInt(t.fecPacketsDiscarded,10):typeof t.fecPacketsDiscarded=="number"?i.fecPacketsDiscarded=t.fecPacketsDiscarded:typeof t.fecPacketsDiscarded=="object"&&(i.fecPacketsDiscarded=new r.LongBits(t.fecPacketsDiscarded.low>>>0,t.fecPacketsDiscarded.high>>>0).toNumber(!0))),t.fecPacketsReceived!=null&&(r.Long?(i.fecPacketsReceived=r.Long.fromValue(t.fecPacketsReceived)).unsigned=!0:typeof t.fecPacketsReceived=="string"?i.fecPacketsReceived=parseInt(t.fecPacketsReceived,10):typeof t.fecPacketsReceived=="number"?i.fecPacketsReceived=t.fecPacketsReceived:typeof t.fecPacketsReceived=="object"&&(i.fecPacketsReceived=new r.LongBits(t.fecPacketsReceived.low>>>0,t.fecPacketsReceived.high>>>0).toNumber(!0))),t.headerBytesReceived!=null&&(r.Long?(i.headerBytesReceived=r.Long.fromValue(t.headerBytesReceived)).unsigned=!0:typeof t.headerBytesReceived=="string"?i.headerBytesReceived=parseInt(t.headerBytesReceived,10):typeof t.headerBytesReceived=="number"?i.headerBytesReceived=t.headerBytesReceived:typeof t.headerBytesReceived=="object"&&(i.headerBytesReceived=new r.LongBits(t.headerBytesReceived.low>>>0,t.headerBytesReceived.high>>>0).toNumber(!0))),t.insertedSamplesForDeceleration!=null&&(r.Long?(i.insertedSamplesForDeceleration=r.Long.fromValue(t.insertedSamplesForDeceleration)).unsigned=!0:typeof t.insertedSamplesForDeceleration=="string"?i.insertedSamplesForDeceleration=parseInt(t.insertedSamplesForDeceleration,10):typeof t.insertedSamplesForDeceleration=="number"?i.insertedSamplesForDeceleration=t.insertedSamplesForDeceleration:typeof t.insertedSamplesForDeceleration=="object"&&(i.insertedSamplesForDeceleration=new r.LongBits(t.insertedSamplesForDeceleration.low>>>0,t.insertedSamplesForDeceleration.high>>>0).toNumber(!0))),t.jitter!=null&&(i.jitter=Number(t.jitter)),t.jitterBufferDelay!=null&&(i.jitterBufferDelay=Number(t.jitterBufferDelay)),t.jitterBufferEmittedCount!=null&&(r.Long?(i.jitterBufferEmittedCount=r.Long.fromValue(t.jitterBufferEmittedCount)).unsigned=!0:typeof t.jitterBufferEmittedCount=="string"?i.jitterBufferEmittedCount=parseInt(t.jitterBufferEmittedCount,10):typeof t.jitterBufferEmittedCount=="number"?i.jitterBufferEmittedCount=t.jitterBufferEmittedCount:typeof t.jitterBufferEmittedCount=="object"&&(i.jitterBufferEmittedCount=new r.LongBits(t.jitterBufferEmittedCount.low>>>0,t.jitterBufferEmittedCount.high>>>0).toNumber(!0))),t.lastPacketReceivedTimestamp!=null&&(i.lastPacketReceivedTimestamp=Number(t.lastPacketReceivedTimestamp)),t.packetsDiscarded!=null&&(r.Long?(i.packetsDiscarded=r.Long.fromValue(t.packetsDiscarded)).unsigned=!0:typeof t.packetsDiscarded=="string"?i.packetsDiscarded=parseInt(t.packetsDiscarded,10):typeof t.packetsDiscarded=="number"?i.packetsDiscarded=t.packetsDiscarded:typeof t.packetsDiscarded=="object"&&(i.packetsDiscarded=new r.LongBits(t.packetsDiscarded.low>>>0,t.packetsDiscarded.high>>>0).toNumber(!0))),t.packetsLost!=null&&(r.Long?(i.packetsLost=r.Long.fromValue(t.packetsLost)).unsigned=!1:typeof t.packetsLost=="string"?i.packetsLost=parseInt(t.packetsLost,10):typeof t.packetsLost=="number"?i.packetsLost=t.packetsLost:typeof t.packetsLost=="object"&&(i.packetsLost=new r.LongBits(t.packetsLost.low>>>0,t.packetsLost.high>>>0).toNumber())),t.packetsReceived!=null&&(r.Long?(i.packetsReceived=r.Long.fromValue(t.packetsReceived)).unsigned=!0:typeof t.packetsReceived=="string"?i.packetsReceived=parseInt(t.packetsReceived,10):typeof t.packetsReceived=="number"?i.packetsReceived=t.packetsReceived:typeof t.packetsReceived=="object"&&(i.packetsReceived=new r.LongBits(t.packetsReceived.low>>>0,t.packetsReceived.high>>>0).toNumber(!0))),t.removedSamplesForAcceleration!=null&&(r.Long?(i.removedSamplesForAcceleration=r.Long.fromValue(t.removedSamplesForAcceleration)).unsigned=!0:typeof t.removedSamplesForAcceleration=="string"?i.removedSamplesForAcceleration=parseInt(t.removedSamplesForAcceleration,10):typeof t.removedSamplesForAcceleration=="number"?i.removedSamplesForAcceleration=t.removedSamplesForAcceleration:typeof t.removedSamplesForAcceleration=="object"&&(i.removedSamplesForAcceleration=new r.LongBits(t.removedSamplesForAcceleration.low>>>0,t.removedSamplesForAcceleration.high>>>0).toNumber(!0))),t.totalAudioEnergy!=null&&(i.totalAudioEnergy=Number(t.totalAudioEnergy)),t.totalSamplesDuration!=null&&(i.totalSamplesDuration=Number(t.totalSamplesDuration)),t.totalSamplesReceived!=null&&(r.Long?(i.totalSamplesReceived=r.Long.fromValue(t.totalSamplesReceived)).unsigned=!0:typeof t.totalSamplesReceived=="string"?i.totalSamplesReceived=parseInt(t.totalSamplesReceived,10):typeof t.totalSamplesReceived=="number"?i.totalSamplesReceived=t.totalSamplesReceived:typeof t.totalSamplesReceived=="object"&&(i.totalSamplesReceived=new r.LongBits(t.totalSamplesReceived.low>>>0,t.totalSamplesReceived.high>>>0).toNumber(!0))),t.delayedPacketOutageSamples!=null&&(r.Long?(i.delayedPacketOutageSamples=r.Long.fromValue(t.delayedPacketOutageSamples)).unsigned=!0:typeof t.delayedPacketOutageSamples=="string"?i.delayedPacketOutageSamples=parseInt(t.delayedPacketOutageSamples,10):typeof t.delayedPacketOutageSamples=="number"?i.delayedPacketOutageSamples=t.delayedPacketOutageSamples:typeof t.delayedPacketOutageSamples=="object"&&(i.delayedPacketOutageSamples=new r.LongBits(t.delayedPacketOutageSamples.low>>>0,t.delayedPacketOutageSamples.high>>>0).toNumber(!0))),t.interruptionCount!=null&&(i.interruptionCount=t.interruptionCount>>>0),t.totalInterruptionDuration!=null&&(i.totalInterruptionDuration=Number(t.totalInterruptionDuration)),t.jitterBufferFlushes!=null&&(r.Long?(i.jitterBufferFlushes=r.Long.fromValue(t.jitterBufferFlushes)).unsigned=!0:typeof t.jitterBufferFlushes=="string"?i.jitterBufferFlushes=parseInt(t.jitterBufferFlushes,10):typeof t.jitterBufferFlushes=="number"?i.jitterBufferFlushes=t.jitterBufferFlushes:typeof t.jitterBufferFlushes=="object"&&(i.jitterBufferFlushes=new r.LongBits(t.jitterBufferFlushes.low>>>0,t.jitterBufferFlushes.high>>>0).toNumber(!0))),t.jitterBufferTargetDelay!=null&&(i.jitterBufferTargetDelay=Number(t.jitterBufferTargetDelay)),t.relativePacketArrivalDelay!=null&&(i.relativePacketArrivalDelay=Number(t.relativePacketArrivalDelay)),t.streamId!=null&&(i.streamId=t.streamId>>>0),t.mute!=null&&(i.mute=!!t.mute),t.trackId!=null&&(i.trackId=String(t.trackId)),t.uid!=null&&(r.Long?(i.uid=r.Long.fromValue(t.uid)).unsigned=!0:typeof t.uid=="string"?i.uid=parseInt(t.uid,10):typeof t.uid=="number"?i.uid=t.uid:typeof t.uid=="object"&&(i.uid=new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber(!0))),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.ssrc=0,n.audioLevel=0,r.Long){let o=new r.Long(0,0,!0);n.bytesReceived=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.bytesReceived=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!0);n.concealedSamples=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.concealedSamples=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!0);n.concealmentEvents=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.concealmentEvents=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!0);n.silentConcealedSamples=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.silentConcealedSamples=i.longs===String?"0":0;if(n.estimatedPlayoutTimestamp=0,r.Long){let o=new r.Long(0,0,!0);n.fecPacketsDiscarded=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.fecPacketsDiscarded=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!0);n.fecPacketsReceived=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.fecPacketsReceived=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!0);n.headerBytesReceived=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.headerBytesReceived=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!0);n.insertedSamplesForDeceleration=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.insertedSamplesForDeceleration=i.longs===String?"0":0;if(n.jitter=0,n.jitterBufferDelay=0,r.Long){let o=new r.Long(0,0,!0);n.jitterBufferEmittedCount=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.jitterBufferEmittedCount=i.longs===String?"0":0;if(n.lastPacketReceivedTimestamp=0,r.Long){let o=new r.Long(0,0,!0);n.packetsDiscarded=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.packetsDiscarded=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.packetsLost=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.packetsLost=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!0);n.packetsReceived=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.packetsReceived=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!0);n.removedSamplesForAcceleration=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.removedSamplesForAcceleration=i.longs===String?"0":0;if(n.totalAudioEnergy=0,n.totalSamplesDuration=0,r.Long){let o=new r.Long(0,0,!0);n.totalSamplesReceived=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.totalSamplesReceived=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!0);n.delayedPacketOutageSamples=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.delayedPacketOutageSamples=i.longs===String?"0":0;if(n.interruptionCount=0,n.totalInterruptionDuration=0,r.Long){let o=new r.Long(0,0,!0);n.jitterBufferFlushes=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.jitterBufferFlushes=i.longs===String?"0":0;if(n.jitterBufferTargetDelay=0,n.relativePacketArrivalDelay=0,n.streamId=0,n.mute=!1,n.trackId="",r.Long){let o=new r.Long(0,0,!0);n.uid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.uid=i.longs===String?"0":0}return t.ssrc!=null&&t.hasOwnProperty("ssrc")&&(n.ssrc=t.ssrc),t.audioLevel!=null&&t.hasOwnProperty("audioLevel")&&(n.audioLevel=i.json&&!isFinite(t.audioLevel)?String(t.audioLevel):t.audioLevel),t.bytesReceived!=null&&t.hasOwnProperty("bytesReceived")&&(typeof t.bytesReceived=="number"?n.bytesReceived=i.longs===String?String(t.bytesReceived):t.bytesReceived:n.bytesReceived=i.longs===String?r.Long.prototype.toString.call(t.bytesReceived):i.longs===Number?new r.LongBits(t.bytesReceived.low>>>0,t.bytesReceived.high>>>0).toNumber(!0):t.bytesReceived),t.concealedSamples!=null&&t.hasOwnProperty("concealedSamples")&&(typeof t.concealedSamples=="number"?n.concealedSamples=i.longs===String?String(t.concealedSamples):t.concealedSamples:n.concealedSamples=i.longs===String?r.Long.prototype.toString.call(t.concealedSamples):i.longs===Number?new r.LongBits(t.concealedSamples.low>>>0,t.concealedSamples.high>>>0).toNumber(!0):t.concealedSamples),t.concealmentEvents!=null&&t.hasOwnProperty("concealmentEvents")&&(typeof t.concealmentEvents=="number"?n.concealmentEvents=i.longs===String?String(t.concealmentEvents):t.concealmentEvents:n.concealmentEvents=i.longs===String?r.Long.prototype.toString.call(t.concealmentEvents):i.longs===Number?new r.LongBits(t.concealmentEvents.low>>>0,t.concealmentEvents.high>>>0).toNumber(!0):t.concealmentEvents),t.silentConcealedSamples!=null&&t.hasOwnProperty("silentConcealedSamples")&&(typeof t.silentConcealedSamples=="number"?n.silentConcealedSamples=i.longs===String?String(t.silentConcealedSamples):t.silentConcealedSamples:n.silentConcealedSamples=i.longs===String?r.Long.prototype.toString.call(t.silentConcealedSamples):i.longs===Number?new r.LongBits(t.silentConcealedSamples.low>>>0,t.silentConcealedSamples.high>>>0).toNumber(!0):t.silentConcealedSamples),t.estimatedPlayoutTimestamp!=null&&t.hasOwnProperty("estimatedPlayoutTimestamp")&&(n.estimatedPlayoutTimestamp=i.json&&!isFinite(t.estimatedPlayoutTimestamp)?String(t.estimatedPlayoutTimestamp):t.estimatedPlayoutTimestamp),t.fecPacketsDiscarded!=null&&t.hasOwnProperty("fecPacketsDiscarded")&&(typeof t.fecPacketsDiscarded=="number"?n.fecPacketsDiscarded=i.longs===String?String(t.fecPacketsDiscarded):t.fecPacketsDiscarded:n.fecPacketsDiscarded=i.longs===String?r.Long.prototype.toString.call(t.fecPacketsDiscarded):i.longs===Number?new r.LongBits(t.fecPacketsDiscarded.low>>>0,t.fecPacketsDiscarded.high>>>0).toNumber(!0):t.fecPacketsDiscarded),t.fecPacketsReceived!=null&&t.hasOwnProperty("fecPacketsReceived")&&(typeof t.fecPacketsReceived=="number"?n.fecPacketsReceived=i.longs===String?String(t.fecPacketsReceived):t.fecPacketsReceived:n.fecPacketsReceived=i.longs===String?r.Long.prototype.toString.call(t.fecPacketsReceived):i.longs===Number?new r.LongBits(t.fecPacketsReceived.low>>>0,t.fecPacketsReceived.high>>>0).toNumber(!0):t.fecPacketsReceived),t.headerBytesReceived!=null&&t.hasOwnProperty("headerBytesReceived")&&(typeof t.headerBytesReceived=="number"?n.headerBytesReceived=i.longs===String?String(t.headerBytesReceived):t.headerBytesReceived:n.headerBytesReceived=i.longs===String?r.Long.prototype.toString.call(t.headerBytesReceived):i.longs===Number?new r.LongBits(t.headerBytesReceived.low>>>0,t.headerBytesReceived.high>>>0).toNumber(!0):t.headerBytesReceived),t.insertedSamplesForDeceleration!=null&&t.hasOwnProperty("insertedSamplesForDeceleration")&&(typeof t.insertedSamplesForDeceleration=="number"?n.insertedSamplesForDeceleration=i.longs===String?String(t.insertedSamplesForDeceleration):t.insertedSamplesForDeceleration:n.insertedSamplesForDeceleration=i.longs===String?r.Long.prototype.toString.call(t.insertedSamplesForDeceleration):i.longs===Number?new r.LongBits(t.insertedSamplesForDeceleration.low>>>0,t.insertedSamplesForDeceleration.high>>>0).toNumber(!0):t.insertedSamplesForDeceleration),t.jitter!=null&&t.hasOwnProperty("jitter")&&(n.jitter=i.json&&!isFinite(t.jitter)?String(t.jitter):t.jitter),t.jitterBufferDelay!=null&&t.hasOwnProperty("jitterBufferDelay")&&(n.jitterBufferDelay=i.json&&!isFinite(t.jitterBufferDelay)?String(t.jitterBufferDelay):t.jitterBufferDelay),t.jitterBufferEmittedCount!=null&&t.hasOwnProperty("jitterBufferEmittedCount")&&(typeof t.jitterBufferEmittedCount=="number"?n.jitterBufferEmittedCount=i.longs===String?String(t.jitterBufferEmittedCount):t.jitterBufferEmittedCount:n.jitterBufferEmittedCount=i.longs===String?r.Long.prototype.toString.call(t.jitterBufferEmittedCount):i.longs===Number?new r.LongBits(t.jitterBufferEmittedCount.low>>>0,t.jitterBufferEmittedCount.high>>>0).toNumber(!0):t.jitterBufferEmittedCount),t.lastPacketReceivedTimestamp!=null&&t.hasOwnProperty("lastPacketReceivedTimestamp")&&(n.lastPacketReceivedTimestamp=i.json&&!isFinite(t.lastPacketReceivedTimestamp)?String(t.lastPacketReceivedTimestamp):t.lastPacketReceivedTimestamp),t.packetsDiscarded!=null&&t.hasOwnProperty("packetsDiscarded")&&(typeof t.packetsDiscarded=="number"?n.packetsDiscarded=i.longs===String?String(t.packetsDiscarded):t.packetsDiscarded:n.packetsDiscarded=i.longs===String?r.Long.prototype.toString.call(t.packetsDiscarded):i.longs===Number?new r.LongBits(t.packetsDiscarded.low>>>0,t.packetsDiscarded.high>>>0).toNumber(!0):t.packetsDiscarded),t.packetsLost!=null&&t.hasOwnProperty("packetsLost")&&(typeof t.packetsLost=="number"?n.packetsLost=i.longs===String?String(t.packetsLost):t.packetsLost:n.packetsLost=i.longs===String?r.Long.prototype.toString.call(t.packetsLost):i.longs===Number?new r.LongBits(t.packetsLost.low>>>0,t.packetsLost.high>>>0).toNumber():t.packetsLost),t.packetsReceived!=null&&t.hasOwnProperty("packetsReceived")&&(typeof t.packetsReceived=="number"?n.packetsReceived=i.longs===String?String(t.packetsReceived):t.packetsReceived:n.packetsReceived=i.longs===String?r.Long.prototype.toString.call(t.packetsReceived):i.longs===Number?new r.LongBits(t.packetsReceived.low>>>0,t.packetsReceived.high>>>0).toNumber(!0):t.packetsReceived),t.removedSamplesForAcceleration!=null&&t.hasOwnProperty("removedSamplesForAcceleration")&&(typeof t.removedSamplesForAcceleration=="number"?n.removedSamplesForAcceleration=i.longs===String?String(t.removedSamplesForAcceleration):t.removedSamplesForAcceleration:n.removedSamplesForAcceleration=i.longs===String?r.Long.prototype.toString.call(t.removedSamplesForAcceleration):i.longs===Number?new r.LongBits(t.removedSamplesForAcceleration.low>>>0,t.removedSamplesForAcceleration.high>>>0).toNumber(!0):t.removedSamplesForAcceleration),t.totalAudioEnergy!=null&&t.hasOwnProperty("totalAudioEnergy")&&(n.totalAudioEnergy=i.json&&!isFinite(t.totalAudioEnergy)?String(t.totalAudioEnergy):t.totalAudioEnergy),t.totalSamplesDuration!=null&&t.hasOwnProperty("totalSamplesDuration")&&(n.totalSamplesDuration=i.json&&!isFinite(t.totalSamplesDuration)?String(t.totalSamplesDuration):t.totalSamplesDuration),t.totalSamplesReceived!=null&&t.hasOwnProperty("totalSamplesReceived")&&(typeof t.totalSamplesReceived=="number"?n.totalSamplesReceived=i.longs===String?String(t.totalSamplesReceived):t.totalSamplesReceived:n.totalSamplesReceived=i.longs===String?r.Long.prototype.toString.call(t.totalSamplesReceived):i.longs===Number?new r.LongBits(t.totalSamplesReceived.low>>>0,t.totalSamplesReceived.high>>>0).toNumber(!0):t.totalSamplesReceived),t.delayedPacketOutageSamples!=null&&t.hasOwnProperty("delayedPacketOutageSamples")&&(typeof t.delayedPacketOutageSamples=="number"?n.delayedPacketOutageSamples=i.longs===String?String(t.delayedPacketOutageSamples):t.delayedPacketOutageSamples:n.delayedPacketOutageSamples=i.longs===String?r.Long.prototype.toString.call(t.delayedPacketOutageSamples):i.longs===Number?new r.LongBits(t.delayedPacketOutageSamples.low>>>0,t.delayedPacketOutageSamples.high>>>0).toNumber(!0):t.delayedPacketOutageSamples),t.interruptionCount!=null&&t.hasOwnProperty("interruptionCount")&&(n.interruptionCount=t.interruptionCount),t.totalInterruptionDuration!=null&&t.hasOwnProperty("totalInterruptionDuration")&&(n.totalInterruptionDuration=i.json&&!isFinite(t.totalInterruptionDuration)?String(t.totalInterruptionDuration):t.totalInterruptionDuration),t.jitterBufferFlushes!=null&&t.hasOwnProperty("jitterBufferFlushes")&&(typeof t.jitterBufferFlushes=="number"?n.jitterBufferFlushes=i.longs===String?String(t.jitterBufferFlushes):t.jitterBufferFlushes:n.jitterBufferFlushes=i.longs===String?r.Long.prototype.toString.call(t.jitterBufferFlushes):i.longs===Number?new r.LongBits(t.jitterBufferFlushes.low>>>0,t.jitterBufferFlushes.high>>>0).toNumber(!0):t.jitterBufferFlushes),t.jitterBufferTargetDelay!=null&&t.hasOwnProperty("jitterBufferTargetDelay")&&(n.jitterBufferTargetDelay=i.json&&!isFinite(t.jitterBufferTargetDelay)?String(t.jitterBufferTargetDelay):t.jitterBufferTargetDelay),t.relativePacketArrivalDelay!=null&&t.hasOwnProperty("relativePacketArrivalDelay")&&(n.relativePacketArrivalDelay=i.json&&!isFinite(t.relativePacketArrivalDelay)?String(t.relativePacketArrivalDelay):t.relativePacketArrivalDelay),t.streamId!=null&&t.hasOwnProperty("streamId")&&(n.streamId=t.streamId),t.mute!=null&&t.hasOwnProperty("mute")&&(n.mute=t.mute),t.trackId!=null&&t.hasOwnProperty("trackId")&&(n.trackId=t.trackId),t.uid!=null&&t.hasOwnProperty("uid")&&(typeof t.uid=="number"?n.uid=i.longs===String?String(t.uid):t.uid:n.uid=i.longs===String?r.Long.prototype.toString.call(t.uid):i.longs===Number?new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber(!0):t.uid),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.live.rtc.datachannel.RtcAudioReceiverInfo"},e}(),c.RtcDataChannel=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.id=t.string();break}case 2:{o.label=t.string();break}case 3:{o.state=t.string();break}case 4:{o.protocol=t.string();break}case 5:{o.bytesSent=t.uint64();break}case 6:{o.bytesReceived=t.uint64();break}case 7:{o.messagesSent=t.uint32();break}case 8:{o.messagesReceived=t.uint32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.live.rtc.datachannel.RtcDataChannel)return t;let i=new u.bilibili.live.rtc.datachannel.RtcDataChannel;return t.id!=null&&(i.id=String(t.id)),t.label!=null&&(i.label=String(t.label)),t.state!=null&&(i.state=String(t.state)),t.protocol!=null&&(i.protocol=String(t.protocol)),t.bytesSent!=null&&(r.Long?(i.bytesSent=r.Long.fromValue(t.bytesSent)).unsigned=!0:typeof t.bytesSent=="string"?i.bytesSent=parseInt(t.bytesSent,10):typeof t.bytesSent=="number"?i.bytesSent=t.bytesSent:typeof t.bytesSent=="object"&&(i.bytesSent=new r.LongBits(t.bytesSent.low>>>0,t.bytesSent.high>>>0).toNumber(!0))),t.bytesReceived!=null&&(r.Long?(i.bytesReceived=r.Long.fromValue(t.bytesReceived)).unsigned=!0:typeof t.bytesReceived=="string"?i.bytesReceived=parseInt(t.bytesReceived,10):typeof t.bytesReceived=="number"?i.bytesReceived=t.bytesReceived:typeof t.bytesReceived=="object"&&(i.bytesReceived=new r.LongBits(t.bytesReceived.low>>>0,t.bytesReceived.high>>>0).toNumber(!0))),t.messagesSent!=null&&(i.messagesSent=t.messagesSent>>>0),t.messagesReceived!=null&&(i.messagesReceived=t.messagesReceived>>>0),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.id="",n.label="",n.state="",n.protocol="",r.Long){let o=new r.Long(0,0,!0);n.bytesSent=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.bytesSent=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!0);n.bytesReceived=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.bytesReceived=i.longs===String?"0":0;n.messagesSent=0,n.messagesReceived=0}return t.id!=null&&t.hasOwnProperty("id")&&(n.id=t.id),t.label!=null&&t.hasOwnProperty("label")&&(n.label=t.label),t.state!=null&&t.hasOwnProperty("state")&&(n.state=t.state),t.protocol!=null&&t.hasOwnProperty("protocol")&&(n.protocol=t.protocol),t.bytesSent!=null&&t.hasOwnProperty("bytesSent")&&(typeof t.bytesSent=="number"?n.bytesSent=i.longs===String?String(t.bytesSent):t.bytesSent:n.bytesSent=i.longs===String?r.Long.prototype.toString.call(t.bytesSent):i.longs===Number?new r.LongBits(t.bytesSent.low>>>0,t.bytesSent.high>>>0).toNumber(!0):t.bytesSent),t.bytesReceived!=null&&t.hasOwnProperty("bytesReceived")&&(typeof t.bytesReceived=="number"?n.bytesReceived=i.longs===String?String(t.bytesReceived):t.bytesReceived:n.bytesReceived=i.longs===String?r.Long.prototype.toString.call(t.bytesReceived):i.longs===Number?new r.LongBits(t.bytesReceived.low>>>0,t.bytesReceived.high>>>0).toNumber(!0):t.bytesReceived),t.messagesSent!=null&&t.hasOwnProperty("messagesSent")&&(n.messagesSent=t.messagesSent),t.messagesReceived!=null&&t.hasOwnProperty("messagesReceived")&&(n.messagesReceived=t.messagesReceived),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.live.rtc.datachannel.RtcDataChannel"},e}(),c}(),p.MediaType=function(){let c={},e=Object.create(c);return e[c[0]="AUDIO"]=0,e[c[1]="VIDEO"]=1,e[c[2]="DATA"]=2,e[c[3]="SMALL_VIDEO"]=3,e[c[15]="OTHER"]=15,e}(),p.MediaTypeField=function(){function c(e){if(this.mediaType=[],e)for(let l=Object.keys(e),t=0;t>>3){case 1:{if(n.mediaType&&n.mediaType.length||(n.mediaType=[]),(o&7)===2){let a=l.uint32()+l.pos;for(;l.pos>>3){case 1:{n.subscribe===r.emptyObject&&(n.subscribe={});let s=l.uint32()+l.pos;for(o=0,a=null;l.pos>>3){case 1:o=l.uint32();break;case 2:a=u.bilibili.live.rtc.MediaTypeField.decode(l,l.uint32());break;default:l.skipType(v&7);break}}n.subscribe[o]=a;break}default:l.skipType(y&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.live.rtc.RtcSubscribe)return l;let t=new u.bilibili.live.rtc.RtcSubscribe;if(l.subscribe){if(typeof l.subscribe!="object")throw TypeError(".bilibili.live.rtc.RtcSubscribe.subscribe: object expected");t.subscribe={};for(let i=Object.keys(l.subscribe),n=0;n>>3){case 1:{o.channelId=t.uint64();break}case 2:{if(o.uids&&o.uids.length||(o.uids=[]),(a&7)===2){let y=t.uint32()+t.pos;for(;t.pos>>0,t.channelId.high>>>0).toNumber(!0))),t.uids){if(!Array.isArray(t.uids))throw TypeError(".bilibili.live.rtc.media.SendDCReq.uids: array expected");i.uids=[];for(let n=0;n>>0,t.uids[n].high>>>0).toNumber(!0))}if(t.message!=null){if(typeof t.message!="object")throw TypeError(".bilibili.live.rtc.media.SendDCReq.message: object expected");i.message=u.google.protobuf.Any.fromObject(t.message)}return i},e.toObject=function(t,i){i||(i={});let n={};if((i.arrays||i.defaults)&&(n.uids=[]),i.defaults){if(r.Long){let o=new r.Long(0,0,!0);n.channelId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.channelId=i.longs===String?"0":0;n.message=null}if(t.channelId!=null&&t.hasOwnProperty("channelId")&&(typeof t.channelId=="number"?n.channelId=i.longs===String?String(t.channelId):t.channelId:n.channelId=i.longs===String?r.Long.prototype.toString.call(t.channelId):i.longs===Number?new r.LongBits(t.channelId.low>>>0,t.channelId.high>>>0).toNumber(!0):t.channelId),t.uids&&t.uids.length){n.uids=[];for(let o=0;o>>0,t.uids[o].high>>>0).toNumber(!0):t.uids[o]}return t.message!=null&&t.hasOwnProperty("message")&&(n.message=u.google.protobuf.Any.toObject(t.message,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.live.rtc.media.SendDCReq"},e}(),c.SendDCResp=function(){function e(l){if(this.sentUids=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{if(o.sentUids&&o.sentUids.length||(o.sentUids=[]),(a&7)===2){let y=t.uint32()+t.pos;for(;t.pos>>0,t.sentUids[n].high>>>0).toNumber(!0))}return i},e.toObject=function(t,i){i||(i={});let n={};if((i.arrays||i.defaults)&&(n.sentUids=[]),t.sentUids&&t.sentUids.length){n.sentUids=[];for(let o=0;o>>0,t.sentUids[o].high>>>0).toNumber(!0):t.sentUids[o]}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.live.rtc.media.SendDCResp"},e}(),c.PingReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){default:t.skipType(a&7);break}}return o},e.fromObject=function(t){return t instanceof u.bilibili.live.rtc.media.PingReq?t:new u.bilibili.live.rtc.media.PingReq},e.toObject=function(){return{}},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.live.rtc.media.PingReq"},e}(),c.PingResp=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.cpu=t.float();break}case 2:{o.memory=t.float();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.live.rtc.media.PingResp)return t;let i=new u.bilibili.live.rtc.media.PingResp;return t.cpu!=null&&(i.cpu=Number(t.cpu)),t.memory!=null&&(i.memory=Number(t.memory)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.cpu=0,n.memory=0),t.cpu!=null&&t.hasOwnProperty("cpu")&&(n.cpu=i.json&&!isFinite(t.cpu)?String(t.cpu):t.cpu),t.memory!=null&&t.hasOwnProperty("memory")&&(n.memory=i.json&&!isFinite(t.memory)?String(t.memory):t.memory),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.live.rtc.media.PingResp"},e}(),c.StatsReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){default:t.skipType(a&7);break}}return o},e.fromObject=function(t){return t instanceof u.bilibili.live.rtc.media.StatsReq?t:new u.bilibili.live.rtc.media.StatsReq},e.toObject=function(){return{}},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.live.rtc.media.StatsReq"},e}(),c.StatsResp=function(){function e(l){if(this.rooms=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.rooms&&o.rooms.length||(o.rooms=[]),o.rooms.push(u.bilibili.live.rtc.media.StatsResp.Room.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.live.rtc.media.StatsResp)return t;let i=new u.bilibili.live.rtc.media.StatsResp;if(t.rooms){if(!Array.isArray(t.rooms))throw TypeError(".bilibili.live.rtc.media.StatsResp.rooms: array expected");i.rooms=[];for(let n=0;n>>3){case 1:{a.channelId=i.uint64();break}case 2:{if(a.uid&&a.uid.length||(a.uid=[]),(y&7)===2){let s=i.uint32()+i.pos;for(;i.pos>>0,i.channelId.high>>>0).toNumber(!0))),i.uid){if(!Array.isArray(i.uid))throw TypeError(".bilibili.live.rtc.media.StatsResp.Room.uid: array expected");n.uid=[];for(let o=0;o>>0,i.uid[o].high>>>0).toNumber(!0))}return n},l.toObject=function(i,n){n||(n={});let o={};if((n.arrays||n.defaults)&&(o.uid=[]),n.defaults)if(r.Long){let a=new r.Long(0,0,!0);o.channelId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.channelId=n.longs===String?"0":0;if(i.channelId!=null&&i.hasOwnProperty("channelId")&&(typeof i.channelId=="number"?o.channelId=n.longs===String?String(i.channelId):i.channelId:o.channelId=n.longs===String?r.Long.prototype.toString.call(i.channelId):n.longs===Number?new r.LongBits(i.channelId.low>>>0,i.channelId.high>>>0).toNumber(!0):i.channelId),i.uid&&i.uid.length){o.uid=[];for(let a=0;a>>0,i.uid[a].high>>>0).toNumber(!0):i.uid[a]}return o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.live.rtc.media.StatsResp.Room"},l}(),e}(),c.NotifyReq=function(){function e(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.channelId=i.uint64();break}case 2:{a.joinNotify=u.bilibili.live.rtc.datachannel.JoinNotify.decode(i,i.uint32());break}case 3:{a.leaveNotify=u.bilibili.live.rtc.datachannel.LeaveNotify.decode(i,i.uint32());break}case 4:{a.muteNotify=u.bilibili.live.rtc.datachannel.MuteNotify.decode(i,i.uint32());break}case 5:{a.pubNotify=u.bilibili.live.rtc.datachannel.PubNotify.decode(i,i.uint32());break}case 6:{a.msgNotify=u.bilibili.live.rtc.datachannel.MessageNotify.decode(i,i.uint32());break}case 7:{a.unPubNotify=u.bilibili.live.rtc.datachannel.UnPubNotify.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},e.fromObject=function(i){if(i instanceof u.bilibili.live.rtc.media.NotifyReq)return i;let n=new u.bilibili.live.rtc.media.NotifyReq;if(i.channelId!=null&&(r.Long?(n.channelId=r.Long.fromValue(i.channelId)).unsigned=!0:typeof i.channelId=="string"?n.channelId=parseInt(i.channelId,10):typeof i.channelId=="number"?n.channelId=i.channelId:typeof i.channelId=="object"&&(n.channelId=new r.LongBits(i.channelId.low>>>0,i.channelId.high>>>0).toNumber(!0))),i.joinNotify!=null){if(typeof i.joinNotify!="object")throw TypeError(".bilibili.live.rtc.media.NotifyReq.joinNotify: object expected");n.joinNotify=u.bilibili.live.rtc.datachannel.JoinNotify.fromObject(i.joinNotify)}if(i.leaveNotify!=null){if(typeof i.leaveNotify!="object")throw TypeError(".bilibili.live.rtc.media.NotifyReq.leaveNotify: object expected");n.leaveNotify=u.bilibili.live.rtc.datachannel.LeaveNotify.fromObject(i.leaveNotify)}if(i.muteNotify!=null){if(typeof i.muteNotify!="object")throw TypeError(".bilibili.live.rtc.media.NotifyReq.muteNotify: object expected");n.muteNotify=u.bilibili.live.rtc.datachannel.MuteNotify.fromObject(i.muteNotify)}if(i.pubNotify!=null){if(typeof i.pubNotify!="object")throw TypeError(".bilibili.live.rtc.media.NotifyReq.pubNotify: object expected");n.pubNotify=u.bilibili.live.rtc.datachannel.PubNotify.fromObject(i.pubNotify)}if(i.msgNotify!=null){if(typeof i.msgNotify!="object")throw TypeError(".bilibili.live.rtc.media.NotifyReq.msgNotify: object expected");n.msgNotify=u.bilibili.live.rtc.datachannel.MessageNotify.fromObject(i.msgNotify)}if(i.unPubNotify!=null){if(typeof i.unPubNotify!="object")throw TypeError(".bilibili.live.rtc.media.NotifyReq.unPubNotify: object expected");n.unPubNotify=u.bilibili.live.rtc.datachannel.UnPubNotify.fromObject(i.unPubNotify)}return n},e.toObject=function(i,n){n||(n={});let o={};if(n.defaults)if(r.Long){let a=new r.Long(0,0,!0);o.channelId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.channelId=n.longs===String?"0":0;return i.channelId!=null&&i.hasOwnProperty("channelId")&&(typeof i.channelId=="number"?o.channelId=n.longs===String?String(i.channelId):i.channelId:o.channelId=n.longs===String?r.Long.prototype.toString.call(i.channelId):n.longs===Number?new r.LongBits(i.channelId.low>>>0,i.channelId.high>>>0).toNumber(!0):i.channelId),i.joinNotify!=null&&i.hasOwnProperty("joinNotify")&&(o.joinNotify=u.bilibili.live.rtc.datachannel.JoinNotify.toObject(i.joinNotify,n),n.oneofs&&(o.notify="joinNotify")),i.leaveNotify!=null&&i.hasOwnProperty("leaveNotify")&&(o.leaveNotify=u.bilibili.live.rtc.datachannel.LeaveNotify.toObject(i.leaveNotify,n),n.oneofs&&(o.notify="leaveNotify")),i.muteNotify!=null&&i.hasOwnProperty("muteNotify")&&(o.muteNotify=u.bilibili.live.rtc.datachannel.MuteNotify.toObject(i.muteNotify,n),n.oneofs&&(o.notify="muteNotify")),i.pubNotify!=null&&i.hasOwnProperty("pubNotify")&&(o.pubNotify=u.bilibili.live.rtc.datachannel.PubNotify.toObject(i.pubNotify,n),n.oneofs&&(o.notify="pubNotify")),i.msgNotify!=null&&i.hasOwnProperty("msgNotify")&&(o.msgNotify=u.bilibili.live.rtc.datachannel.MessageNotify.toObject(i.msgNotify,n),n.oneofs&&(o.notify="msgNotify")),i.unPubNotify!=null&&i.hasOwnProperty("unPubNotify")&&(o.unPubNotify=u.bilibili.live.rtc.datachannel.UnPubNotify.toObject(i.unPubNotify,n),n.oneofs&&(o.notify="unPubNotify")),o},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.live.rtc.media.NotifyReq"},e}(),c.NotifyResp=function(){function e(l){if(this.sentUids=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{if(o.sentUids&&o.sentUids.length||(o.sentUids=[]),(a&7)===2){let y=t.uint32()+t.pos;for(;t.pos>>0,t.sentUids[n].high>>>0).toNumber(!0))}return i},e.toObject=function(t,i){i||(i={});let n={};if((i.arrays||i.defaults)&&(n.sentUids=[]),t.sentUids&&t.sentUids.length){n.sentUids=[];for(let o=0;o>>0,t.sentUids[o].high>>>0).toNumber(!0):t.sentUids[o]}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.live.rtc.media.NotifyResp"},e}(),c.LegacyPubReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.channelId=t.uint64();break}case 2:{o.uid=t.uint64();break}case 3:{o.callId=t.uint32();break}case 4:{o.sdp=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.live.rtc.media.LegacyPubReq)return t;let i=new u.bilibili.live.rtc.media.LegacyPubReq;return t.channelId!=null&&(r.Long?(i.channelId=r.Long.fromValue(t.channelId)).unsigned=!0:typeof t.channelId=="string"?i.channelId=parseInt(t.channelId,10):typeof t.channelId=="number"?i.channelId=t.channelId:typeof t.channelId=="object"&&(i.channelId=new r.LongBits(t.channelId.low>>>0,t.channelId.high>>>0).toNumber(!0))),t.uid!=null&&(r.Long?(i.uid=r.Long.fromValue(t.uid)).unsigned=!0:typeof t.uid=="string"?i.uid=parseInt(t.uid,10):typeof t.uid=="number"?i.uid=t.uid:typeof t.uid=="object"&&(i.uid=new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber(!0))),t.callId!=null&&(i.callId=t.callId>>>0),t.sdp!=null&&(i.sdp=String(t.sdp)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!0);n.channelId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.channelId=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!0);n.uid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.uid=i.longs===String?"0":0;n.callId=0,n.sdp=""}return t.channelId!=null&&t.hasOwnProperty("channelId")&&(typeof t.channelId=="number"?n.channelId=i.longs===String?String(t.channelId):t.channelId:n.channelId=i.longs===String?r.Long.prototype.toString.call(t.channelId):i.longs===Number?new r.LongBits(t.channelId.low>>>0,t.channelId.high>>>0).toNumber(!0):t.channelId),t.uid!=null&&t.hasOwnProperty("uid")&&(typeof t.uid=="number"?n.uid=i.longs===String?String(t.uid):t.uid:n.uid=i.longs===String?r.Long.prototype.toString.call(t.uid):i.longs===Number?new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber(!0):t.uid),t.callId!=null&&t.hasOwnProperty("callId")&&(n.callId=t.callId),t.sdp!=null&&t.hasOwnProperty("sdp")&&(n.sdp=t.sdp),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.live.rtc.media.LegacyPubReq"},e}(),c.LegacyPubResp=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){default:t.skipType(a&7);break}}return o},e.fromObject=function(t){return t instanceof u.bilibili.live.rtc.media.LegacyPubResp?t:new u.bilibili.live.rtc.media.LegacyPubResp},e.toObject=function(){return{}},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.live.rtc.media.LegacyPubResp"},e}(),c.LegacySubReq=function(){function e(t){if(this.uids=[],this.remoteUsers=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.channelId=i.uint64();break}case 2:{a.uid=i.uint64();break}case 3:{a.callId=i.uint32();break}case 4:{a.videoIndex=i.uint32();break}case 5:{if(a.uids&&a.uids.length||(a.uids=[]),(y&7)===2){let s=i.uint32()+i.pos;for(;i.pos>>0,i.channelId.high>>>0).toNumber(!0))),i.uid!=null&&(r.Long?(n.uid=r.Long.fromValue(i.uid)).unsigned=!0:typeof i.uid=="string"?n.uid=parseInt(i.uid,10):typeof i.uid=="number"?n.uid=i.uid:typeof i.uid=="object"&&(n.uid=new r.LongBits(i.uid.low>>>0,i.uid.high>>>0).toNumber(!0))),i.callId!=null&&(n.callId=i.callId>>>0),i.videoIndex!=null&&(n.videoIndex=i.videoIndex>>>0),i.uids){if(!Array.isArray(i.uids))throw TypeError(".bilibili.live.rtc.media.LegacySubReq.uids: array expected");n.uids=[];for(let o=0;o>>0,i.uids[o].high>>>0).toNumber(!0))}if(i.remoteUsers){if(!Array.isArray(i.remoteUsers))throw TypeError(".bilibili.live.rtc.media.LegacySubReq.remoteUsers: array expected");n.remoteUsers=[];for(let o=0;o>>0,i.channelId.high>>>0).toNumber(!0):i.channelId),i.uid!=null&&i.hasOwnProperty("uid")&&(typeof i.uid=="number"?o.uid=n.longs===String?String(i.uid):i.uid:o.uid=n.longs===String?r.Long.prototype.toString.call(i.uid):n.longs===Number?new r.LongBits(i.uid.low>>>0,i.uid.high>>>0).toNumber(!0):i.uid),i.callId!=null&&i.hasOwnProperty("callId")&&(o.callId=i.callId),i.videoIndex!=null&&i.hasOwnProperty("videoIndex")&&(o.videoIndex=i.videoIndex,n.oneofs&&(o.vidx="videoIndex")),i.uids&&i.uids.length){o.uids=[];for(let a=0;a>>0,i.uids[a].high>>>0).toNumber(!0):i.uids[a]}if(i.remoteUsers&&i.remoteUsers.length){o.remoteUsers=[];for(let a=0;a>>3){case 1:{o.uid=t.uint64();break}case 2:{o.mediaName=t.string();break}case 3:{o.mediaIp=t.string();break}case 4:{o.sdp=t.string();break}case 5:{o.callId=t.uint32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.live.rtc.media.RemoteUser)return t;let i=new u.bilibili.live.rtc.media.RemoteUser;return t.uid!=null&&(r.Long?(i.uid=r.Long.fromValue(t.uid)).unsigned=!0:typeof t.uid=="string"?i.uid=parseInt(t.uid,10):typeof t.uid=="number"?i.uid=t.uid:typeof t.uid=="object"&&(i.uid=new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber(!0))),t.mediaName!=null&&(i.mediaName=String(t.mediaName)),t.mediaIp!=null&&(i.mediaIp=String(t.mediaIp)),t.sdp!=null&&(i.sdp=String(t.sdp)),t.callId!=null&&(i.callId=t.callId>>>0),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!0);n.uid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.uid=i.longs===String?"0":0;n.mediaName="",n.mediaIp="",n.sdp="",n.callId=0}return t.uid!=null&&t.hasOwnProperty("uid")&&(typeof t.uid=="number"?n.uid=i.longs===String?String(t.uid):t.uid:n.uid=i.longs===String?r.Long.prototype.toString.call(t.uid):i.longs===Number?new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber(!0):t.uid),t.mediaName!=null&&t.hasOwnProperty("mediaName")&&(n.mediaName=t.mediaName),t.mediaIp!=null&&t.hasOwnProperty("mediaIp")&&(n.mediaIp=t.mediaIp),t.sdp!=null&&t.hasOwnProperty("sdp")&&(n.sdp=t.sdp),t.callId!=null&&t.hasOwnProperty("callId")&&(n.callId=t.callId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.live.rtc.media.RemoteUser"},e}(),c.LegacySubResp=function(){function e(l){if(this.info=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.info&&o.info.length||(o.info=[]),o.info.push(u.bilibili.live.rtc.media.LegacySubResp.SsrcInfo.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.live.rtc.media.LegacySubResp)return t;let i=new u.bilibili.live.rtc.media.LegacySubResp;if(t.info){if(!Array.isArray(t.info))throw TypeError(".bilibili.live.rtc.media.LegacySubResp.info: array expected");i.info=[];for(let n=0;n>>3){case 1:{a.uid=i.uint64();break}case 2:{a.audioSsrc=i.uint32();break}case 3:{a.videoSsrc=i.uint32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.live.rtc.media.LegacySubResp.SsrcInfo)return i;let n=new u.bilibili.live.rtc.media.LegacySubResp.SsrcInfo;return i.uid!=null&&(r.Long?(n.uid=r.Long.fromValue(i.uid)).unsigned=!0:typeof i.uid=="string"?n.uid=parseInt(i.uid,10):typeof i.uid=="number"?n.uid=i.uid:typeof i.uid=="object"&&(n.uid=new r.LongBits(i.uid.low>>>0,i.uid.high>>>0).toNumber(!0))),i.audioSsrc!=null&&(n.audioSsrc=i.audioSsrc>>>0),i.videoSsrc!=null&&(n.videoSsrc=i.videoSsrc>>>0),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!0);o.uid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.uid=n.longs===String?"0":0;o.audioSsrc=0,o.videoSsrc=0}return i.uid!=null&&i.hasOwnProperty("uid")&&(typeof i.uid=="number"?o.uid=n.longs===String?String(i.uid):i.uid:o.uid=n.longs===String?r.Long.prototype.toString.call(i.uid):n.longs===Number?new r.LongBits(i.uid.low>>>0,i.uid.high>>>0).toNumber(!0):i.uid),i.audioSsrc!=null&&i.hasOwnProperty("audioSsrc")&&(o.audioSsrc=i.audioSsrc),i.videoSsrc!=null&&i.hasOwnProperty("videoSsrc")&&(o.videoSsrc=i.videoSsrc),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.live.rtc.media.LegacySubResp.SsrcInfo"},l}(),e}(),c.InternalSubReq=function(){function e(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.channelId=i.uint64();break}case 2:{a.userId=i.uint64();break}case 3:{a.role=i.int32();break}case 4:{a.sdp=i.string();break}case 5:{a.subedUid=i.uint64();break}case 6:{a.subVideo=i.bool();break}case 7:{a.subAudio=i.bool();break}case 8:{a.videoIndex=i.uint32();break}default:i.skipType(y&7);break}}return a},e.fromObject=function(i){if(i instanceof u.bilibili.live.rtc.media.InternalSubReq)return i;let n=new u.bilibili.live.rtc.media.InternalSubReq;switch(i.channelId!=null&&(r.Long?(n.channelId=r.Long.fromValue(i.channelId)).unsigned=!0:typeof i.channelId=="string"?n.channelId=parseInt(i.channelId,10):typeof i.channelId=="number"?n.channelId=i.channelId:typeof i.channelId=="object"&&(n.channelId=new r.LongBits(i.channelId.low>>>0,i.channelId.high>>>0).toNumber(!0))),i.userId!=null&&(r.Long?(n.userId=r.Long.fromValue(i.userId)).unsigned=!0:typeof i.userId=="string"?n.userId=parseInt(i.userId,10):typeof i.userId=="number"?n.userId=i.userId:typeof i.userId=="object"&&(n.userId=new r.LongBits(i.userId.low>>>0,i.userId.high>>>0).toNumber(!0))),i.role){default:if(typeof i.role=="number"){n.role=i.role;break}break;case"Normal":case 0:n.role=0;break;case"Audience":case 1:n.role=1;break;case"Monitor":case 2:n.role=2;break;case"Relay":case 3:n.role=3;break;case"App":case 4:n.role=4;break;case"Mix":case 5:n.role=5;break;case"Unknown":case 99:n.role=99;break}return i.sdp!=null&&(n.sdp=String(i.sdp)),i.subedUid!=null&&(r.Long?(n.subedUid=r.Long.fromValue(i.subedUid)).unsigned=!0:typeof i.subedUid=="string"?n.subedUid=parseInt(i.subedUid,10):typeof i.subedUid=="number"?n.subedUid=i.subedUid:typeof i.subedUid=="object"&&(n.subedUid=new r.LongBits(i.subedUid.low>>>0,i.subedUid.high>>>0).toNumber(!0))),i.subVideo!=null&&(n.subVideo=!!i.subVideo),i.subAudio!=null&&(n.subAudio=!!i.subAudio),i.videoIndex!=null&&(n.videoIndex=i.videoIndex>>>0),n},e.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!0);o.channelId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.channelId=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!0);o.userId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.userId=n.longs===String?"0":0;if(o.role=n.enums===String?"Normal":0,r.Long){let a=new r.Long(0,0,!0);o.subedUid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.subedUid=n.longs===String?"0":0;o.subVideo=!1,o.subAudio=!1}return i.channelId!=null&&i.hasOwnProperty("channelId")&&(typeof i.channelId=="number"?o.channelId=n.longs===String?String(i.channelId):i.channelId:o.channelId=n.longs===String?r.Long.prototype.toString.call(i.channelId):n.longs===Number?new r.LongBits(i.channelId.low>>>0,i.channelId.high>>>0).toNumber(!0):i.channelId),i.userId!=null&&i.hasOwnProperty("userId")&&(typeof i.userId=="number"?o.userId=n.longs===String?String(i.userId):i.userId:o.userId=n.longs===String?r.Long.prototype.toString.call(i.userId):n.longs===Number?new r.LongBits(i.userId.low>>>0,i.userId.high>>>0).toNumber(!0):i.userId),i.role!=null&&i.hasOwnProperty("role")&&(o.role=n.enums===String?u.bilibili.live.rtc.UserRole[i.role]===void 0?i.role:u.bilibili.live.rtc.UserRole[i.role]:i.role),i.sdp!=null&&i.hasOwnProperty("sdp")&&(o.sdp=i.sdp,n.oneofs&&(o.subOffer="sdp")),i.subedUid!=null&&i.hasOwnProperty("subedUid")&&(typeof i.subedUid=="number"?o.subedUid=n.longs===String?String(i.subedUid):i.subedUid:o.subedUid=n.longs===String?r.Long.prototype.toString.call(i.subedUid):n.longs===Number?new r.LongBits(i.subedUid.low>>>0,i.subedUid.high>>>0).toNumber(!0):i.subedUid),i.subVideo!=null&&i.hasOwnProperty("subVideo")&&(o.subVideo=i.subVideo),i.subAudio!=null&&i.hasOwnProperty("subAudio")&&(o.subAudio=i.subAudio),i.videoIndex!=null&&i.hasOwnProperty("videoIndex")&&(o.videoIndex=i.videoIndex,n.oneofs&&(o.vidx="videoIndex")),o},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.live.rtc.media.InternalSubReq"},e}(),c.RelayReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.channelId=t.uint64();break}case 2:{o.relayUid=t.uint64();break}case 3:{o.clientMediaName=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.live.rtc.media.RelayReq)return t;let i=new u.bilibili.live.rtc.media.RelayReq;return t.channelId!=null&&(r.Long?(i.channelId=r.Long.fromValue(t.channelId)).unsigned=!0:typeof t.channelId=="string"?i.channelId=parseInt(t.channelId,10):typeof t.channelId=="number"?i.channelId=t.channelId:typeof t.channelId=="object"&&(i.channelId=new r.LongBits(t.channelId.low>>>0,t.channelId.high>>>0).toNumber(!0))),t.relayUid!=null&&(r.Long?(i.relayUid=r.Long.fromValue(t.relayUid)).unsigned=!0:typeof t.relayUid=="string"?i.relayUid=parseInt(t.relayUid,10):typeof t.relayUid=="number"?i.relayUid=t.relayUid:typeof t.relayUid=="object"&&(i.relayUid=new r.LongBits(t.relayUid.low>>>0,t.relayUid.high>>>0).toNumber(!0))),t.clientMediaName!=null&&(i.clientMediaName=String(t.clientMediaName)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!0);n.channelId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.channelId=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!0);n.relayUid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.relayUid=i.longs===String?"0":0;n.clientMediaName=""}return t.channelId!=null&&t.hasOwnProperty("channelId")&&(typeof t.channelId=="number"?n.channelId=i.longs===String?String(t.channelId):t.channelId:n.channelId=i.longs===String?r.Long.prototype.toString.call(t.channelId):i.longs===Number?new r.LongBits(t.channelId.low>>>0,t.channelId.high>>>0).toNumber(!0):t.channelId),t.relayUid!=null&&t.hasOwnProperty("relayUid")&&(typeof t.relayUid=="number"?n.relayUid=i.longs===String?String(t.relayUid):t.relayUid:n.relayUid=i.longs===String?r.Long.prototype.toString.call(t.relayUid):i.longs===Number?new r.LongBits(t.relayUid.low>>>0,t.relayUid.high>>>0).toNumber(!0):t.relayUid),t.clientMediaName!=null&&t.hasOwnProperty("clientMediaName")&&(n.clientMediaName=t.clientMediaName),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.live.rtc.media.RelayReq"},e}(),c.RelayResp=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.sdp=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.live.rtc.media.RelayResp)return t;let i=new u.bilibili.live.rtc.media.RelayResp;return t.sdp!=null&&(i.sdp=String(t.sdp)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.sdp=""),t.sdp!=null&&t.hasOwnProperty("sdp")&&(n.sdp=t.sdp),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.live.rtc.media.RelayResp"},e}(),c.ForwardReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.sourceChannelId=t.uint64();break}case 2:{o.sourceUid=t.uint64();break}case 3:{o.sourceUserRole=t.int32();break}case 4:{o.targetChannelId=t.uint64();break}case 5:{o.targetUid=t.uint64();break}case 6:{o.targetToken=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.live.rtc.media.ForwardReq)return t;let i=new u.bilibili.live.rtc.media.ForwardReq;switch(t.sourceChannelId!=null&&(r.Long?(i.sourceChannelId=r.Long.fromValue(t.sourceChannelId)).unsigned=!0:typeof t.sourceChannelId=="string"?i.sourceChannelId=parseInt(t.sourceChannelId,10):typeof t.sourceChannelId=="number"?i.sourceChannelId=t.sourceChannelId:typeof t.sourceChannelId=="object"&&(i.sourceChannelId=new r.LongBits(t.sourceChannelId.low>>>0,t.sourceChannelId.high>>>0).toNumber(!0))),t.sourceUid!=null&&(r.Long?(i.sourceUid=r.Long.fromValue(t.sourceUid)).unsigned=!0:typeof t.sourceUid=="string"?i.sourceUid=parseInt(t.sourceUid,10):typeof t.sourceUid=="number"?i.sourceUid=t.sourceUid:typeof t.sourceUid=="object"&&(i.sourceUid=new r.LongBits(t.sourceUid.low>>>0,t.sourceUid.high>>>0).toNumber(!0))),t.sourceUserRole){default:if(typeof t.sourceUserRole=="number"){i.sourceUserRole=t.sourceUserRole;break}break;case"Normal":case 0:i.sourceUserRole=0;break;case"Audience":case 1:i.sourceUserRole=1;break;case"Monitor":case 2:i.sourceUserRole=2;break;case"Relay":case 3:i.sourceUserRole=3;break;case"App":case 4:i.sourceUserRole=4;break;case"Mix":case 5:i.sourceUserRole=5;break;case"Unknown":case 99:i.sourceUserRole=99;break}return t.targetChannelId!=null&&(r.Long?(i.targetChannelId=r.Long.fromValue(t.targetChannelId)).unsigned=!0:typeof t.targetChannelId=="string"?i.targetChannelId=parseInt(t.targetChannelId,10):typeof t.targetChannelId=="number"?i.targetChannelId=t.targetChannelId:typeof t.targetChannelId=="object"&&(i.targetChannelId=new r.LongBits(t.targetChannelId.low>>>0,t.targetChannelId.high>>>0).toNumber(!0))),t.targetUid!=null&&(r.Long?(i.targetUid=r.Long.fromValue(t.targetUid)).unsigned=!0:typeof t.targetUid=="string"?i.targetUid=parseInt(t.targetUid,10):typeof t.targetUid=="number"?i.targetUid=t.targetUid:typeof t.targetUid=="object"&&(i.targetUid=new r.LongBits(t.targetUid.low>>>0,t.targetUid.high>>>0).toNumber(!0))),t.targetToken!=null&&(i.targetToken=String(t.targetToken)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!0);n.sourceChannelId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.sourceChannelId=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!0);n.sourceUid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.sourceUid=i.longs===String?"0":0;if(n.sourceUserRole=i.enums===String?"Normal":0,r.Long){let o=new r.Long(0,0,!0);n.targetChannelId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.targetChannelId=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!0);n.targetUid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.targetUid=i.longs===String?"0":0;n.targetToken=""}return t.sourceChannelId!=null&&t.hasOwnProperty("sourceChannelId")&&(typeof t.sourceChannelId=="number"?n.sourceChannelId=i.longs===String?String(t.sourceChannelId):t.sourceChannelId:n.sourceChannelId=i.longs===String?r.Long.prototype.toString.call(t.sourceChannelId):i.longs===Number?new r.LongBits(t.sourceChannelId.low>>>0,t.sourceChannelId.high>>>0).toNumber(!0):t.sourceChannelId),t.sourceUid!=null&&t.hasOwnProperty("sourceUid")&&(typeof t.sourceUid=="number"?n.sourceUid=i.longs===String?String(t.sourceUid):t.sourceUid:n.sourceUid=i.longs===String?r.Long.prototype.toString.call(t.sourceUid):i.longs===Number?new r.LongBits(t.sourceUid.low>>>0,t.sourceUid.high>>>0).toNumber(!0):t.sourceUid),t.sourceUserRole!=null&&t.hasOwnProperty("sourceUserRole")&&(n.sourceUserRole=i.enums===String?u.bilibili.live.rtc.UserRole[t.sourceUserRole]===void 0?t.sourceUserRole:u.bilibili.live.rtc.UserRole[t.sourceUserRole]:t.sourceUserRole),t.targetChannelId!=null&&t.hasOwnProperty("targetChannelId")&&(typeof t.targetChannelId=="number"?n.targetChannelId=i.longs===String?String(t.targetChannelId):t.targetChannelId:n.targetChannelId=i.longs===String?r.Long.prototype.toString.call(t.targetChannelId):i.longs===Number?new r.LongBits(t.targetChannelId.low>>>0,t.targetChannelId.high>>>0).toNumber(!0):t.targetChannelId),t.targetUid!=null&&t.hasOwnProperty("targetUid")&&(typeof t.targetUid=="number"?n.targetUid=i.longs===String?String(t.targetUid):t.targetUid:n.targetUid=i.longs===String?r.Long.prototype.toString.call(t.targetUid):i.longs===Number?new r.LongBits(t.targetUid.low>>>0,t.targetUid.high>>>0).toNumber(!0):t.targetUid),t.targetToken!=null&&t.hasOwnProperty("targetToken")&&(n.targetToken=t.targetToken),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.live.rtc.media.ForwardReq"},e}(),c.ForwardResp=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){default:t.skipType(a&7);break}}return o},e.fromObject=function(t){return t instanceof u.bilibili.live.rtc.media.ForwardResp?t:new u.bilibili.live.rtc.media.ForwardResp},e.toObject=function(){return{}},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.live.rtc.media.ForwardResp"},e}(),c}(),p.monitor=function(){let c={};return c.Monitor=function(){function e(l,t,i){b.rpc.Service.call(this,l,t,i)}return(e.prototype=Object.create(b.rpc.Service.prototype)).constructor=e,e.create=function(t,i,n){return new this(t,i,n)},Object.defineProperty(e.prototype.addMonitorTask=function l(t,i){return this.rpcCall(l,u.bilibili.live.rtc.monitor.TaskReq,u.bilibili.live.rtc.monitor.TaskResp,t,i)},"name",{value:"AddMonitorTask"}),Object.defineProperty(e.prototype.stats=function l(t,i){return this.rpcCall(l,u.bilibili.live.rtc.monitor.StatsReq,u.bilibili.live.rtc.monitor.StatsResp,t,i)},"name",{value:"Stats"}),Object.defineProperty(e.prototype.addForwardTask=function l(t,i){return this.rpcCall(l,u.bilibili.live.rtc.monitor.ForwardTaskReq,u.bilibili.live.rtc.monitor.ForwardTaskResp,t,i)},"name",{value:"AddForwardTask"}),e}(),c.TaskReq=function(){function e(l){if(this.streams=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.channelId=t.uint64();break}case 2:{o.uid=t.uint64();break}case 3:{o.mediaGrpcServer=t.string();break}case 4:{o.recordServer=t.string();break}case 5:{o.streams&&o.streams.length||(o.streams=[]),o.streams.push(u.bilibili.live.rtc.StreamMeta.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.live.rtc.monitor.TaskReq)return t;let i=new u.bilibili.live.rtc.monitor.TaskReq;if(t.channelId!=null&&(r.Long?(i.channelId=r.Long.fromValue(t.channelId)).unsigned=!0:typeof t.channelId=="string"?i.channelId=parseInt(t.channelId,10):typeof t.channelId=="number"?i.channelId=t.channelId:typeof t.channelId=="object"&&(i.channelId=new r.LongBits(t.channelId.low>>>0,t.channelId.high>>>0).toNumber(!0))),t.uid!=null&&(r.Long?(i.uid=r.Long.fromValue(t.uid)).unsigned=!0:typeof t.uid=="string"?i.uid=parseInt(t.uid,10):typeof t.uid=="number"?i.uid=t.uid:typeof t.uid=="object"&&(i.uid=new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber(!0))),t.mediaGrpcServer!=null&&(i.mediaGrpcServer=String(t.mediaGrpcServer)),t.recordServer!=null&&(i.recordServer=String(t.recordServer)),t.streams){if(!Array.isArray(t.streams))throw TypeError(".bilibili.live.rtc.monitor.TaskReq.streams: array expected");i.streams=[];for(let n=0;n>>0,t.channelId.high>>>0).toNumber(!0):t.channelId),t.uid!=null&&t.hasOwnProperty("uid")&&(typeof t.uid=="number"?n.uid=i.longs===String?String(t.uid):t.uid:n.uid=i.longs===String?r.Long.prototype.toString.call(t.uid):i.longs===Number?new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber(!0):t.uid),t.mediaGrpcServer!=null&&t.hasOwnProperty("mediaGrpcServer")&&(n.mediaGrpcServer=t.mediaGrpcServer),t.recordServer!=null&&t.hasOwnProperty("recordServer")&&(n.recordServer=t.recordServer),t.streams&&t.streams.length){n.streams=[];for(let o=0;o>>3){default:t.skipType(a&7);break}}return o},e.fromObject=function(t){return t instanceof u.bilibili.live.rtc.monitor.TaskResp?t:new u.bilibili.live.rtc.monitor.TaskResp},e.toObject=function(){return{}},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.live.rtc.monitor.TaskResp"},e}(),c.StatsReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){default:t.skipType(a&7);break}}return o},e.fromObject=function(t){return t instanceof u.bilibili.live.rtc.monitor.StatsReq?t:new u.bilibili.live.rtc.monitor.StatsReq},e.toObject=function(){return{}},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.live.rtc.monitor.StatsReq"},e}(),c.StatsResp=function(){function e(l){if(this.tasks=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.tasks&&o.tasks.length||(o.tasks=[]),o.tasks.push(u.bilibili.live.rtc.monitor.Task.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.live.rtc.monitor.StatsResp)return t;let i=new u.bilibili.live.rtc.monitor.StatsResp;if(t.tasks){if(!Array.isArray(t.tasks))throw TypeError(".bilibili.live.rtc.monitor.StatsResp.tasks: array expected");i.tasks=[];for(let n=0;n>>3){case 1:{o.channelId=t.uint64();break}case 2:{o.uid=t.uint64();break}case 5:{o.streams&&o.streams.length||(o.streams=[]),o.streams.push(u.bilibili.live.rtc.StreamMeta.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.live.rtc.monitor.Task)return t;let i=new u.bilibili.live.rtc.monitor.Task;if(t.channelId!=null&&(r.Long?(i.channelId=r.Long.fromValue(t.channelId)).unsigned=!0:typeof t.channelId=="string"?i.channelId=parseInt(t.channelId,10):typeof t.channelId=="number"?i.channelId=t.channelId:typeof t.channelId=="object"&&(i.channelId=new r.LongBits(t.channelId.low>>>0,t.channelId.high>>>0).toNumber(!0))),t.uid!=null&&(r.Long?(i.uid=r.Long.fromValue(t.uid)).unsigned=!0:typeof t.uid=="string"?i.uid=parseInt(t.uid,10):typeof t.uid=="number"?i.uid=t.uid:typeof t.uid=="object"&&(i.uid=new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber(!0))),t.streams){if(!Array.isArray(t.streams))throw TypeError(".bilibili.live.rtc.monitor.Task.streams: array expected");i.streams=[];for(let n=0;n>>0,t.channelId.high>>>0).toNumber(!0):t.channelId),t.uid!=null&&t.hasOwnProperty("uid")&&(typeof t.uid=="number"?n.uid=i.longs===String?String(t.uid):t.uid:n.uid=i.longs===String?r.Long.prototype.toString.call(t.uid):i.longs===Number?new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber(!0):t.uid),t.streams&&t.streams.length){n.streams=[];for(let o=0;o>>3){case 1:{o.tasks&&o.tasks.length||(o.tasks=[]),o.tasks.push(u.bilibili.live.rtc.monitor.ForwardTask.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.live.rtc.monitor.ForwardTaskReq)return t;let i=new u.bilibili.live.rtc.monitor.ForwardTaskReq;if(t.tasks){if(!Array.isArray(t.tasks))throw TypeError(".bilibili.live.rtc.monitor.ForwardTaskReq.tasks: array expected");i.tasks=[];for(let n=0;n>>3){case 1:{o.channelId=t.uint64();break}case 2:{o.uid=t.uint64();break}case 3:{o.callId=t.uint32();break}case 4:{o.mediaGrpcServer=t.string();break}case 5:{o.audioSSRC=t.uint32();break}case 6:{o.videoSSRC=t.uint32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.live.rtc.monitor.ForwardTask)return t;let i=new u.bilibili.live.rtc.monitor.ForwardTask;return t.channelId!=null&&(r.Long?(i.channelId=r.Long.fromValue(t.channelId)).unsigned=!0:typeof t.channelId=="string"?i.channelId=parseInt(t.channelId,10):typeof t.channelId=="number"?i.channelId=t.channelId:typeof t.channelId=="object"&&(i.channelId=new r.LongBits(t.channelId.low>>>0,t.channelId.high>>>0).toNumber(!0))),t.uid!=null&&(r.Long?(i.uid=r.Long.fromValue(t.uid)).unsigned=!0:typeof t.uid=="string"?i.uid=parseInt(t.uid,10):typeof t.uid=="number"?i.uid=t.uid:typeof t.uid=="object"&&(i.uid=new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber(!0))),t.callId!=null&&(i.callId=t.callId>>>0),t.mediaGrpcServer!=null&&(i.mediaGrpcServer=String(t.mediaGrpcServer)),t.audioSSRC!=null&&(i.audioSSRC=t.audioSSRC>>>0),t.videoSSRC!=null&&(i.videoSSRC=t.videoSSRC>>>0),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!0);n.channelId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.channelId=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!0);n.uid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.uid=i.longs===String?"0":0;n.callId=0,n.mediaGrpcServer="",n.audioSSRC=0,n.videoSSRC=0}return t.channelId!=null&&t.hasOwnProperty("channelId")&&(typeof t.channelId=="number"?n.channelId=i.longs===String?String(t.channelId):t.channelId:n.channelId=i.longs===String?r.Long.prototype.toString.call(t.channelId):i.longs===Number?new r.LongBits(t.channelId.low>>>0,t.channelId.high>>>0).toNumber(!0):t.channelId),t.uid!=null&&t.hasOwnProperty("uid")&&(typeof t.uid=="number"?n.uid=i.longs===String?String(t.uid):t.uid:n.uid=i.longs===String?r.Long.prototype.toString.call(t.uid):i.longs===Number?new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber(!0):t.uid),t.callId!=null&&t.hasOwnProperty("callId")&&(n.callId=t.callId),t.mediaGrpcServer!=null&&t.hasOwnProperty("mediaGrpcServer")&&(n.mediaGrpcServer=t.mediaGrpcServer),t.audioSSRC!=null&&t.hasOwnProperty("audioSSRC")&&(n.audioSSRC=t.audioSSRC),t.videoSSRC!=null&&t.hasOwnProperty("videoSSRC")&&(n.videoSSRC=t.videoSSRC),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.live.rtc.monitor.ForwardTask"},e}(),c.ForwardTaskResp=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){default:t.skipType(a&7);break}}return o},e.fromObject=function(t){return t instanceof u.bilibili.live.rtc.monitor.ForwardTaskResp?t:new u.bilibili.live.rtc.monitor.ForwardTaskResp},e.toObject=function(){return{}},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.live.rtc.monitor.ForwardTaskResp"},e}(),c}(),p.signal=function(){let c={};return c.Signal=function(){function e(l,t,i){b.rpc.Service.call(this,l,t,i)}return(e.prototype=Object.create(b.rpc.Service.prototype)).constructor=e,e.create=function(t,i,n){return new this(t,i,n)},Object.defineProperty(e.prototype.userConnected=function l(t,i){return this.rpcCall(l,u.bilibili.live.rtc.signal.UserConnectedReq,u.bilibili.live.rtc.signal.UserConnectedResp,t,i)},"name",{value:"UserConnected"}),Object.defineProperty(e.prototype.userDisconnected=function l(t,i){return this.rpcCall(l,u.bilibili.live.rtc.signal.UserDisconnectedReq,u.bilibili.live.rtc.signal.UserDisconnectedResp,t,i)},"name",{value:"UserDisconnected"}),Object.defineProperty(e.prototype.userPublished=function l(t,i){return this.rpcCall(l,u.bilibili.live.rtc.signal.UserPublishedReq,u.bilibili.live.rtc.signal.UserPublishedResp,t,i)},"name",{value:"UserPublished"}),Object.defineProperty(e.prototype.userUnpublished=function l(t,i){return this.rpcCall(l,u.bilibili.live.rtc.signal.UserUnpublishedReq,u.bilibili.live.rtc.signal.UserUnpublishedResp,t,i)},"name",{value:"UserUnpublished"}),Object.defineProperty(e.prototype.userMute=function l(t,i){return this.rpcCall(l,u.bilibili.live.rtc.signal.UserMuteReq,u.bilibili.live.rtc.signal.MuteResponse,t,i)},"name",{value:"UserMute"}),Object.defineProperty(e.prototype.userLookup=function l(t,i){return this.rpcCall(l,u.bilibili.live.rtc.signal.UserLookupReq,u.bilibili.live.rtc.signal.UserLookupResp,t,i)},"name",{value:"UserLookup"}),Object.defineProperty(e.prototype.userReconnectLegacy=function l(t,i){return this.rpcCall(l,u.bilibili.live.rtc.signal.UserReconnectLegacyReq,u.bilibili.live.rtc.signal.UserReconnectLegacyResp,t,i)},"name",{value:"UserReconnectLegacy"}),Object.defineProperty(e.prototype.userMonitorTasks=function l(t,i){return this.rpcCall(l,u.bilibili.live.rtc.signal.UserMonitorTaskReq,u.bilibili.live.rtc.signal.UserMonitorTaskResp,t,i)},"name",{value:"UserMonitorTasks"}),Object.defineProperty(e.prototype.userForwardTasks=function l(t,i){return this.rpcCall(l,u.bilibili.live.rtc.signal.UserForwardTaskReq,u.bilibili.live.rtc.signal.UserForwardTaskResp,t,i)},"name",{value:"UserForwardTasks"}),Object.defineProperty(e.prototype.getMembers=function l(t,i){return this.rpcCall(l,u.bilibili.live.rtc.signal.GetMembersReq,u.bilibili.live.rtc.signal.GetMembersResp,t,i)},"name",{value:"GetMembers"}),Object.defineProperty(e.prototype.userMessage=function l(t,i){return this.rpcCall(l,u.bilibili.live.rtc.signal.UserMessageReq,u.bilibili.live.rtc.signal.UserMessageResp,t,i)},"name",{value:"UserMessage"}),Object.defineProperty(e.prototype.getMediaForwardConfig=function l(t,i){return this.rpcCall(l,u.bilibili.live.rtc.signal.GetMediaForwardConfigReq,u.bilibili.live.rtc.signal.GetMediaForwardConfigResp,t,i)},"name",{value:"GetMediaForwardConfig"}),Object.defineProperty(e.prototype.getMixingTaskIds=function l(t,i){return this.rpcCall(l,u.bilibili.live.rtc.signal.GetMixingTaskIdsReq,u.bilibili.live.rtc.signal.GetMixingTasksIdsResp,t,i)},"name",{value:"GetMixingTaskIds"}),Object.defineProperty(e.prototype.getMixingTasks=function l(t,i){return this.rpcCall(l,u.bilibili.live.rtc.signal.GetMixingTasksReq,u.bilibili.live.rtc.signal.GetMixingTasksResp,t,i)},"name",{value:"GetMixingTasks"}),e}(),c.GetMediaForwardConfigReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.channelId=t.uint64();break}case 2:{o.uid=t.uint64();break}case 3:{o.role=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.live.rtc.signal.GetMediaForwardConfigReq)return t;let i=new u.bilibili.live.rtc.signal.GetMediaForwardConfigReq;switch(t.channelId!=null&&(r.Long?(i.channelId=r.Long.fromValue(t.channelId)).unsigned=!0:typeof t.channelId=="string"?i.channelId=parseInt(t.channelId,10):typeof t.channelId=="number"?i.channelId=t.channelId:typeof t.channelId=="object"&&(i.channelId=new r.LongBits(t.channelId.low>>>0,t.channelId.high>>>0).toNumber(!0))),t.uid!=null&&(r.Long?(i.uid=r.Long.fromValue(t.uid)).unsigned=!0:typeof t.uid=="string"?i.uid=parseInt(t.uid,10):typeof t.uid=="number"?i.uid=t.uid:typeof t.uid=="object"&&(i.uid=new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber(!0))),t.role){default:if(typeof t.role=="number"){i.role=t.role;break}break;case"Normal":case 0:i.role=0;break;case"Audience":case 1:i.role=1;break;case"Monitor":case 2:i.role=2;break;case"Relay":case 3:i.role=3;break;case"App":case 4:i.role=4;break;case"Mix":case 5:i.role=5;break;case"Unknown":case 99:i.role=99;break}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!0);n.channelId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.channelId=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!0);n.uid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.uid=i.longs===String?"0":0;n.role=i.enums===String?"Normal":0}return t.channelId!=null&&t.hasOwnProperty("channelId")&&(typeof t.channelId=="number"?n.channelId=i.longs===String?String(t.channelId):t.channelId:n.channelId=i.longs===String?r.Long.prototype.toString.call(t.channelId):i.longs===Number?new r.LongBits(t.channelId.low>>>0,t.channelId.high>>>0).toNumber(!0):t.channelId),t.uid!=null&&t.hasOwnProperty("uid")&&(typeof t.uid=="number"?n.uid=i.longs===String?String(t.uid):t.uid:n.uid=i.longs===String?r.Long.prototype.toString.call(t.uid):i.longs===Number?new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber(!0):t.uid),t.role!=null&&t.hasOwnProperty("role")&&(n.role=i.enums===String?u.bilibili.live.rtc.UserRole[t.role]===void 0?t.role:u.bilibili.live.rtc.UserRole[t.role]:t.role),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.live.rtc.signal.GetMediaForwardConfigReq"},e}(),c.GetMediaForwardConfigResp=function(){function e(l){if(this.forwardConfigs=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.forwardConfigs&&o.forwardConfigs.length||(o.forwardConfigs=[]),o.forwardConfigs.push(u.bilibili.live.rtc.signal.GetMediaForwardConfigResp.ForwardConfig.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.live.rtc.signal.GetMediaForwardConfigResp)return t;let i=new u.bilibili.live.rtc.signal.GetMediaForwardConfigResp;if(t.forwardConfigs){if(!Array.isArray(t.forwardConfigs))throw TypeError(".bilibili.live.rtc.signal.GetMediaForwardConfigResp.forwardConfigs: array expected");i.forwardConfigs=[];for(let n=0;n>>3){case 1:{a.targetChannelId=i.uint64();break}case 2:{a.targetUid=i.uint64();break}case 3:{a.token=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.live.rtc.signal.GetMediaForwardConfigResp.ForwardConfig)return i;let n=new u.bilibili.live.rtc.signal.GetMediaForwardConfigResp.ForwardConfig;return i.targetChannelId!=null&&(r.Long?(n.targetChannelId=r.Long.fromValue(i.targetChannelId)).unsigned=!0:typeof i.targetChannelId=="string"?n.targetChannelId=parseInt(i.targetChannelId,10):typeof i.targetChannelId=="number"?n.targetChannelId=i.targetChannelId:typeof i.targetChannelId=="object"&&(n.targetChannelId=new r.LongBits(i.targetChannelId.low>>>0,i.targetChannelId.high>>>0).toNumber(!0))),i.targetUid!=null&&(r.Long?(n.targetUid=r.Long.fromValue(i.targetUid)).unsigned=!0:typeof i.targetUid=="string"?n.targetUid=parseInt(i.targetUid,10):typeof i.targetUid=="number"?n.targetUid=i.targetUid:typeof i.targetUid=="object"&&(n.targetUid=new r.LongBits(i.targetUid.low>>>0,i.targetUid.high>>>0).toNumber(!0))),i.token!=null&&(n.token=String(i.token)),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!0);o.targetChannelId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.targetChannelId=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!0);o.targetUid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.targetUid=n.longs===String?"0":0;o.token=""}return i.targetChannelId!=null&&i.hasOwnProperty("targetChannelId")&&(typeof i.targetChannelId=="number"?o.targetChannelId=n.longs===String?String(i.targetChannelId):i.targetChannelId:o.targetChannelId=n.longs===String?r.Long.prototype.toString.call(i.targetChannelId):n.longs===Number?new r.LongBits(i.targetChannelId.low>>>0,i.targetChannelId.high>>>0).toNumber(!0):i.targetChannelId),i.targetUid!=null&&i.hasOwnProperty("targetUid")&&(typeof i.targetUid=="number"?o.targetUid=n.longs===String?String(i.targetUid):i.targetUid:o.targetUid=n.longs===String?r.Long.prototype.toString.call(i.targetUid):n.longs===Number?new r.LongBits(i.targetUid.low>>>0,i.targetUid.high>>>0).toNumber(!0):i.targetUid),i.token!=null&&i.hasOwnProperty("token")&&(o.token=i.token),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.live.rtc.signal.GetMediaForwardConfigResp.ForwardConfig"},l}(),e}(),c.GetMixingTaskIdsReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.nodeName=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.live.rtc.signal.GetMixingTaskIdsReq)return t;let i=new u.bilibili.live.rtc.signal.GetMixingTaskIdsReq;return t.nodeName!=null&&(i.nodeName=String(t.nodeName)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.nodeName=""),t.nodeName!=null&&t.hasOwnProperty("nodeName")&&(n.nodeName=t.nodeName),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.live.rtc.signal.GetMixingTaskIdsReq"},e}(),c.GetMixingTasksIdsResp=function(){function e(l){if(this.taskIds=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{if(o.taskIds&&o.taskIds.length||(o.taskIds=[]),(a&7)===2){let y=t.uint32()+t.pos;for(;t.pos>>0,t.taskIds[n].high>>>0).toNumber(!0))}return i},e.toObject=function(t,i){i||(i={});let n={};if((i.arrays||i.defaults)&&(n.taskIds=[]),t.taskIds&&t.taskIds.length){n.taskIds=[];for(let o=0;o>>0,t.taskIds[o].high>>>0).toNumber(!0):t.taskIds[o]}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.live.rtc.signal.GetMixingTasksIdsResp"},e}(),c.GetMixingTasksReq=function(){function e(l){if(this.taskIds=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{if(o.taskIds&&o.taskIds.length||(o.taskIds=[]),(a&7)===2){let y=t.uint32()+t.pos;for(;t.pos>>0,t.taskIds[n].high>>>0).toNumber(!0))}return i},e.toObject=function(t,i){i||(i={});let n={};if((i.arrays||i.defaults)&&(n.taskIds=[]),t.taskIds&&t.taskIds.length){n.taskIds=[];for(let o=0;o>>0,t.taskIds[o].high>>>0).toNumber(!0):t.taskIds[o]}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.live.rtc.signal.GetMixingTasksReq"},e}(),c.GetMixingTasksResp=function(){function e(l){if(this.tasks={},l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.tasks===r.emptyObject&&(o.tasks={});let v=t.uint32()+t.pos;for(a=0,y=null;t.pos>>3){case 1:a=t.uint64();break;case 2:y=u.bilibili.live.rtc.signal.GetMixingTasksResp.TaskInfo.decode(t,t.uint32());break;default:t.skipType(g&7);break}}o.tasks[typeof a=="object"?r.longToHash(a):a]=y;break}default:t.skipType(s&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.live.rtc.signal.GetMixingTasksResp)return t;let i=new u.bilibili.live.rtc.signal.GetMixingTasksResp;if(t.tasks){if(typeof t.tasks!="object")throw TypeError(".bilibili.live.rtc.signal.GetMixingTasksResp.tasks: object expected");i.tasks={};for(let n=Object.keys(t.tasks),o=0;o>>3){default:i.skipType(y&7);break}}return a},l.fromObject=function(i){return i instanceof u.bilibili.live.rtc.signal.GetMixingTasksResp.StreamInput?i:new u.bilibili.live.rtc.signal.GetMixingTasksResp.StreamInput},l.toObject=function(){return{}},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.live.rtc.signal.GetMixingTasksResp.StreamInput"},l}(),e.StreamOutput=function(){function l(i){if(i)for(let n=Object.keys(i),o=0;o>>3){case 1:{y.rtc=u.bilibili.live.rtc.signal.GetMixingTasksResp.RTCStreamOutput.decode(n,n.uint32());break}default:n.skipType(s&7);break}}return y},l.fromObject=function(n){if(n instanceof u.bilibili.live.rtc.signal.GetMixingTasksResp.StreamOutput)return n;let o=new u.bilibili.live.rtc.signal.GetMixingTasksResp.StreamOutput;if(n.rtc!=null){if(typeof n.rtc!="object")throw TypeError(".bilibili.live.rtc.signal.GetMixingTasksResp.StreamOutput.rtc: object expected");o.rtc=u.bilibili.live.rtc.signal.GetMixingTasksResp.RTCStreamOutput.fromObject(n.rtc)}return o},l.toObject=function(n,o){o||(o={});let a={};return n.rtc!=null&&n.hasOwnProperty("rtc")&&(a.rtc=u.bilibili.live.rtc.signal.GetMixingTasksResp.RTCStreamOutput.toObject(n.rtc,o),o.oneofs&&(a.output="rtc")),a},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/bilibili.live.rtc.signal.GetMixingTasksResp.StreamOutput"},l}(),e.RTCStreamOutput=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){default:i.skipType(y&7);break}}return a},l.fromObject=function(i){return i instanceof u.bilibili.live.rtc.signal.GetMixingTasksResp.RTCStreamOutput?i:new u.bilibili.live.rtc.signal.GetMixingTasksResp.RTCStreamOutput},l.toObject=function(){return{}},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.live.rtc.signal.GetMixingTasksResp.RTCStreamOutput"},l}(),e.TaskInfo=function(){function l(t){if(this.streamOutput=[],this.subscribeBlacklist=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.taskId=i.uint64();break}case 2:{a.channelId=i.uint64();break}case 3:{a.uid=i.uint64();break}case 4:{a.accessToken=i.string();break}case 5:{a.haveAudio=i.bool();break}case 6:{a.haveVideo=i.bool();break}case 7:{a.streamInput=u.bilibili.live.rtc.signal.GetMixingTasksResp.StreamInput.decode(i,i.uint32());break}case 8:{a.streamOutput&&a.streamOutput.length||(a.streamOutput=[]),a.streamOutput.push(u.bilibili.live.rtc.signal.GetMixingTasksResp.StreamOutput.decode(i,i.uint32()));break}case 9:{a.startTime=i.uint64();break}case 10:{if(a.subscribeBlacklist&&a.subscribeBlacklist.length||(a.subscribeBlacklist=[]),(y&7)===2){let s=i.uint32()+i.pos;for(;i.pos>>0,i.taskId.high>>>0).toNumber(!0))),i.channelId!=null&&(r.Long?(n.channelId=r.Long.fromValue(i.channelId)).unsigned=!0:typeof i.channelId=="string"?n.channelId=parseInt(i.channelId,10):typeof i.channelId=="number"?n.channelId=i.channelId:typeof i.channelId=="object"&&(n.channelId=new r.LongBits(i.channelId.low>>>0,i.channelId.high>>>0).toNumber(!0))),i.uid!=null&&(r.Long?(n.uid=r.Long.fromValue(i.uid)).unsigned=!0:typeof i.uid=="string"?n.uid=parseInt(i.uid,10):typeof i.uid=="number"?n.uid=i.uid:typeof i.uid=="object"&&(n.uid=new r.LongBits(i.uid.low>>>0,i.uid.high>>>0).toNumber(!0))),i.accessToken!=null&&(n.accessToken=String(i.accessToken)),i.haveAudio!=null&&(n.haveAudio=!!i.haveAudio),i.haveVideo!=null&&(n.haveVideo=!!i.haveVideo),i.streamInput!=null){if(typeof i.streamInput!="object")throw TypeError(".bilibili.live.rtc.signal.GetMixingTasksResp.TaskInfo.streamInput: object expected");n.streamInput=u.bilibili.live.rtc.signal.GetMixingTasksResp.StreamInput.fromObject(i.streamInput)}if(i.streamOutput){if(!Array.isArray(i.streamOutput))throw TypeError(".bilibili.live.rtc.signal.GetMixingTasksResp.TaskInfo.streamOutput: array expected");n.streamOutput=[];for(let o=0;o>>0,i.startTime.high>>>0).toNumber(!0))),i.subscribeBlacklist){if(!Array.isArray(i.subscribeBlacklist))throw TypeError(".bilibili.live.rtc.signal.GetMixingTasksResp.TaskInfo.subscribeBlacklist: array expected");n.subscribeBlacklist=[];for(let o=0;o>>0,i.subscribeBlacklist[o].high>>>0).toNumber(!0))}return n},l.toObject=function(i,n){n||(n={});let o={};if((n.arrays||n.defaults)&&(o.streamOutput=[],o.subscribeBlacklist=[]),n.defaults){if(r.Long){let a=new r.Long(0,0,!0);o.taskId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.taskId=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!0);o.channelId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.channelId=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!0);o.uid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.uid=n.longs===String?"0":0;if(o.accessToken="",o.haveAudio=!1,o.haveVideo=!1,o.streamInput=null,r.Long){let a=new r.Long(0,0,!0);o.startTime=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.startTime=n.longs===String?"0":0}if(i.taskId!=null&&i.hasOwnProperty("taskId")&&(typeof i.taskId=="number"?o.taskId=n.longs===String?String(i.taskId):i.taskId:o.taskId=n.longs===String?r.Long.prototype.toString.call(i.taskId):n.longs===Number?new r.LongBits(i.taskId.low>>>0,i.taskId.high>>>0).toNumber(!0):i.taskId),i.channelId!=null&&i.hasOwnProperty("channelId")&&(typeof i.channelId=="number"?o.channelId=n.longs===String?String(i.channelId):i.channelId:o.channelId=n.longs===String?r.Long.prototype.toString.call(i.channelId):n.longs===Number?new r.LongBits(i.channelId.low>>>0,i.channelId.high>>>0).toNumber(!0):i.channelId),i.uid!=null&&i.hasOwnProperty("uid")&&(typeof i.uid=="number"?o.uid=n.longs===String?String(i.uid):i.uid:o.uid=n.longs===String?r.Long.prototype.toString.call(i.uid):n.longs===Number?new r.LongBits(i.uid.low>>>0,i.uid.high>>>0).toNumber(!0):i.uid),i.accessToken!=null&&i.hasOwnProperty("accessToken")&&(o.accessToken=i.accessToken),i.haveAudio!=null&&i.hasOwnProperty("haveAudio")&&(o.haveAudio=i.haveAudio),i.haveVideo!=null&&i.hasOwnProperty("haveVideo")&&(o.haveVideo=i.haveVideo),i.streamInput!=null&&i.hasOwnProperty("streamInput")&&(o.streamInput=u.bilibili.live.rtc.signal.GetMixingTasksResp.StreamInput.toObject(i.streamInput,n)),i.streamOutput&&i.streamOutput.length){o.streamOutput=[];for(let a=0;a>>0,i.startTime.high>>>0).toNumber(!0):i.startTime),i.subscribeBlacklist&&i.subscribeBlacklist.length){o.subscribeBlacklist=[];for(let a=0;a>>0,i.subscribeBlacklist[a].high>>>0).toNumber(!0):i.subscribeBlacklist[a]}return o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.live.rtc.signal.GetMixingTasksResp.TaskInfo"},l}(),e}(),c.UserDisconnectedReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.channelId=t.uint64();break}case 2:{o.uid=t.uint64();break}case 3:{o.reason=t.int32();break}case 5:{o.requestId=t.uint64();break}case 6:{o.role=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.live.rtc.signal.UserDisconnectedReq)return t;let i=new u.bilibili.live.rtc.signal.UserDisconnectedReq;switch(t.channelId!=null&&(r.Long?(i.channelId=r.Long.fromValue(t.channelId)).unsigned=!0:typeof t.channelId=="string"?i.channelId=parseInt(t.channelId,10):typeof t.channelId=="number"?i.channelId=t.channelId:typeof t.channelId=="object"&&(i.channelId=new r.LongBits(t.channelId.low>>>0,t.channelId.high>>>0).toNumber(!0))),t.uid!=null&&(r.Long?(i.uid=r.Long.fromValue(t.uid)).unsigned=!0:typeof t.uid=="string"?i.uid=parseInt(t.uid,10):typeof t.uid=="number"?i.uid=t.uid:typeof t.uid=="object"&&(i.uid=new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber(!0))),t.reason){default:if(typeof t.reason=="number"){i.reason=t.reason;break}break;case"NORMAL":case 0:i.reason=0;break;case"KICKED":case 1:i.reason=1;break;case"TIMEOUT":case 2:i.reason=2;break;case"KILLED":case 3:i.reason=3;break}switch(t.requestId!=null&&(r.Long?(i.requestId=r.Long.fromValue(t.requestId)).unsigned=!0:typeof t.requestId=="string"?i.requestId=parseInt(t.requestId,10):typeof t.requestId=="number"?i.requestId=t.requestId:typeof t.requestId=="object"&&(i.requestId=new r.LongBits(t.requestId.low>>>0,t.requestId.high>>>0).toNumber(!0))),t.role){default:if(typeof t.role=="number"){i.role=t.role;break}break;case"Normal":case 0:i.role=0;break;case"Audience":case 1:i.role=1;break;case"Monitor":case 2:i.role=2;break;case"Relay":case 3:i.role=3;break;case"App":case 4:i.role=4;break;case"Mix":case 5:i.role=5;break;case"Unknown":case 99:i.role=99;break}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!0);n.channelId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.channelId=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!0);n.uid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.uid=i.longs===String?"0":0;if(n.reason=i.enums===String?"NORMAL":0,r.Long){let o=new r.Long(0,0,!0);n.requestId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.requestId=i.longs===String?"0":0;n.role=i.enums===String?"Normal":0}return t.channelId!=null&&t.hasOwnProperty("channelId")&&(typeof t.channelId=="number"?n.channelId=i.longs===String?String(t.channelId):t.channelId:n.channelId=i.longs===String?r.Long.prototype.toString.call(t.channelId):i.longs===Number?new r.LongBits(t.channelId.low>>>0,t.channelId.high>>>0).toNumber(!0):t.channelId),t.uid!=null&&t.hasOwnProperty("uid")&&(typeof t.uid=="number"?n.uid=i.longs===String?String(t.uid):t.uid:n.uid=i.longs===String?r.Long.prototype.toString.call(t.uid):i.longs===Number?new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber(!0):t.uid),t.reason!=null&&t.hasOwnProperty("reason")&&(n.reason=i.enums===String?u.bilibili.live.rtc.UserLeaveReason[t.reason]===void 0?t.reason:u.bilibili.live.rtc.UserLeaveReason[t.reason]:t.reason),t.requestId!=null&&t.hasOwnProperty("requestId")&&(typeof t.requestId=="number"?n.requestId=i.longs===String?String(t.requestId):t.requestId:n.requestId=i.longs===String?r.Long.prototype.toString.call(t.requestId):i.longs===Number?new r.LongBits(t.requestId.low>>>0,t.requestId.high>>>0).toNumber(!0):t.requestId),t.role!=null&&t.hasOwnProperty("role")&&(n.role=i.enums===String?u.bilibili.live.rtc.UserRole[t.role]===void 0?t.role:u.bilibili.live.rtc.UserRole[t.role]:t.role),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.live.rtc.signal.UserDisconnectedReq"},e}(),c.UserDisconnectedResp=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){default:t.skipType(a&7);break}}return o},e.fromObject=function(t){return t instanceof u.bilibili.live.rtc.signal.UserDisconnectedResp?t:new u.bilibili.live.rtc.signal.UserDisconnectedResp},e.toObject=function(){return{}},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.live.rtc.signal.UserDisconnectedResp"},e}(),c.UserConnectedReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.autoSubscribe=t.bool();break}case 2:{o.channelId=t.uint64();break}case 3:{o.server=t.string();break}case 4:{o.user=u.bilibili.live.rtc.User.decode(t,t.uint32());break}case 5:{o.requestId=t.uint64();break}case 6:{o.token=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.live.rtc.signal.UserConnectedReq)return t;let i=new u.bilibili.live.rtc.signal.UserConnectedReq;if(t.autoSubscribe!=null&&(i.autoSubscribe=!!t.autoSubscribe),t.channelId!=null&&(r.Long?(i.channelId=r.Long.fromValue(t.channelId)).unsigned=!0:typeof t.channelId=="string"?i.channelId=parseInt(t.channelId,10):typeof t.channelId=="number"?i.channelId=t.channelId:typeof t.channelId=="object"&&(i.channelId=new r.LongBits(t.channelId.low>>>0,t.channelId.high>>>0).toNumber(!0))),t.server!=null&&(i.server=String(t.server)),t.user!=null){if(typeof t.user!="object")throw TypeError(".bilibili.live.rtc.signal.UserConnectedReq.user: object expected");i.user=u.bilibili.live.rtc.User.fromObject(t.user)}return t.requestId!=null&&(r.Long?(i.requestId=r.Long.fromValue(t.requestId)).unsigned=!0:typeof t.requestId=="string"?i.requestId=parseInt(t.requestId,10):typeof t.requestId=="number"?i.requestId=t.requestId:typeof t.requestId=="object"&&(i.requestId=new r.LongBits(t.requestId.low>>>0,t.requestId.high>>>0).toNumber(!0))),t.token!=null&&(i.token=String(t.token)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.autoSubscribe=!1,r.Long){let o=new r.Long(0,0,!0);n.channelId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.channelId=i.longs===String?"0":0;if(n.server="",n.user=null,r.Long){let o=new r.Long(0,0,!0);n.requestId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.requestId=i.longs===String?"0":0;n.token=""}return t.autoSubscribe!=null&&t.hasOwnProperty("autoSubscribe")&&(n.autoSubscribe=t.autoSubscribe),t.channelId!=null&&t.hasOwnProperty("channelId")&&(typeof t.channelId=="number"?n.channelId=i.longs===String?String(t.channelId):t.channelId:n.channelId=i.longs===String?r.Long.prototype.toString.call(t.channelId):i.longs===Number?new r.LongBits(t.channelId.low>>>0,t.channelId.high>>>0).toNumber(!0):t.channelId),t.server!=null&&t.hasOwnProperty("server")&&(n.server=t.server),t.user!=null&&t.hasOwnProperty("user")&&(n.user=u.bilibili.live.rtc.User.toObject(t.user,i)),t.requestId!=null&&t.hasOwnProperty("requestId")&&(typeof t.requestId=="number"?n.requestId=i.longs===String?String(t.requestId):t.requestId:n.requestId=i.longs===String?r.Long.prototype.toString.call(t.requestId):i.longs===Number?new r.LongBits(t.requestId.low>>>0,t.requestId.high>>>0).toNumber(!0):t.requestId),t.token!=null&&t.hasOwnProperty("token")&&(n.token=t.token),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.live.rtc.signal.UserConnectedReq"},e}(),c.UserConnectedResp=function(){function e(l){if(this.users=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.users&&o.users.length||(o.users=[]),o.users.push(u.bilibili.live.rtc.User.decode(t,t.uint32()));break}case 2:{o.callId=t.uint32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.live.rtc.signal.UserConnectedResp)return t;let i=new u.bilibili.live.rtc.signal.UserConnectedResp;if(t.users){if(!Array.isArray(t.users))throw TypeError(".bilibili.live.rtc.signal.UserConnectedResp.users: array expected");i.users=[];for(let n=0;n>>0),i},e.toObject=function(t,i){i||(i={});let n={};if((i.arrays||i.defaults)&&(n.users=[]),i.defaults&&(n.callId=0),t.users&&t.users.length){n.users=[];for(let o=0;o>>3){case 1:{o.channelId=t.uint64();break}case 2:{o.uid=t.uint64();break}case 3:{o.stream=u.bilibili.live.rtc.Stream.decode(t,t.uint32());break}case 4:{o.requestId=t.uint64();break}case 5:{o.role=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.live.rtc.signal.UserPublishedReq)return t;let i=new u.bilibili.live.rtc.signal.UserPublishedReq;if(t.channelId!=null&&(r.Long?(i.channelId=r.Long.fromValue(t.channelId)).unsigned=!0:typeof t.channelId=="string"?i.channelId=parseInt(t.channelId,10):typeof t.channelId=="number"?i.channelId=t.channelId:typeof t.channelId=="object"&&(i.channelId=new r.LongBits(t.channelId.low>>>0,t.channelId.high>>>0).toNumber(!0))),t.uid!=null&&(r.Long?(i.uid=r.Long.fromValue(t.uid)).unsigned=!0:typeof t.uid=="string"?i.uid=parseInt(t.uid,10):typeof t.uid=="number"?i.uid=t.uid:typeof t.uid=="object"&&(i.uid=new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber(!0))),t.stream!=null){if(typeof t.stream!="object")throw TypeError(".bilibili.live.rtc.signal.UserPublishedReq.stream: object expected");i.stream=u.bilibili.live.rtc.Stream.fromObject(t.stream)}switch(t.requestId!=null&&(r.Long?(i.requestId=r.Long.fromValue(t.requestId)).unsigned=!0:typeof t.requestId=="string"?i.requestId=parseInt(t.requestId,10):typeof t.requestId=="number"?i.requestId=t.requestId:typeof t.requestId=="object"&&(i.requestId=new r.LongBits(t.requestId.low>>>0,t.requestId.high>>>0).toNumber(!0))),t.role){default:if(typeof t.role=="number"){i.role=t.role;break}break;case"Normal":case 0:i.role=0;break;case"Audience":case 1:i.role=1;break;case"Monitor":case 2:i.role=2;break;case"Relay":case 3:i.role=3;break;case"App":case 4:i.role=4;break;case"Mix":case 5:i.role=5;break;case"Unknown":case 99:i.role=99;break}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!0);n.channelId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.channelId=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!0);n.uid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.uid=i.longs===String?"0":0;if(n.stream=null,r.Long){let o=new r.Long(0,0,!0);n.requestId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.requestId=i.longs===String?"0":0;n.role=i.enums===String?"Normal":0}return t.channelId!=null&&t.hasOwnProperty("channelId")&&(typeof t.channelId=="number"?n.channelId=i.longs===String?String(t.channelId):t.channelId:n.channelId=i.longs===String?r.Long.prototype.toString.call(t.channelId):i.longs===Number?new r.LongBits(t.channelId.low>>>0,t.channelId.high>>>0).toNumber(!0):t.channelId),t.uid!=null&&t.hasOwnProperty("uid")&&(typeof t.uid=="number"?n.uid=i.longs===String?String(t.uid):t.uid:n.uid=i.longs===String?r.Long.prototype.toString.call(t.uid):i.longs===Number?new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber(!0):t.uid),t.stream!=null&&t.hasOwnProperty("stream")&&(n.stream=u.bilibili.live.rtc.Stream.toObject(t.stream,i)),t.requestId!=null&&t.hasOwnProperty("requestId")&&(typeof t.requestId=="number"?n.requestId=i.longs===String?String(t.requestId):t.requestId:n.requestId=i.longs===String?r.Long.prototype.toString.call(t.requestId):i.longs===Number?new r.LongBits(t.requestId.low>>>0,t.requestId.high>>>0).toNumber(!0):t.requestId),t.role!=null&&t.hasOwnProperty("role")&&(n.role=i.enums===String?u.bilibili.live.rtc.UserRole[t.role]===void 0?t.role:u.bilibili.live.rtc.UserRole[t.role]:t.role),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.live.rtc.signal.UserPublishedReq"},e}(),c.UserPublishedResp=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){default:t.skipType(a&7);break}}return o},e.fromObject=function(t){return t instanceof u.bilibili.live.rtc.signal.UserPublishedResp?t:new u.bilibili.live.rtc.signal.UserPublishedResp},e.toObject=function(){return{}},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.live.rtc.signal.UserPublishedResp"},e}(),c.UserLookupReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.channelId=t.uint64();break}case 2:{o.uid=t.uint64();break}case 3:{o.requestId=t.uint64();break}case 4:{o.clientMediaName=t.string();break}case 5:{o.relay=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.live.rtc.signal.UserLookupReq)return t;let i=new u.bilibili.live.rtc.signal.UserLookupReq;return t.channelId!=null&&(r.Long?(i.channelId=r.Long.fromValue(t.channelId)).unsigned=!0:typeof t.channelId=="string"?i.channelId=parseInt(t.channelId,10):typeof t.channelId=="number"?i.channelId=t.channelId:typeof t.channelId=="object"&&(i.channelId=new r.LongBits(t.channelId.low>>>0,t.channelId.high>>>0).toNumber(!0))),t.uid!=null&&(r.Long?(i.uid=r.Long.fromValue(t.uid)).unsigned=!0:typeof t.uid=="string"?i.uid=parseInt(t.uid,10):typeof t.uid=="number"?i.uid=t.uid:typeof t.uid=="object"&&(i.uid=new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber(!0))),t.requestId!=null&&(r.Long?(i.requestId=r.Long.fromValue(t.requestId)).unsigned=!0:typeof t.requestId=="string"?i.requestId=parseInt(t.requestId,10):typeof t.requestId=="number"?i.requestId=t.requestId:typeof t.requestId=="object"&&(i.requestId=new r.LongBits(t.requestId.low>>>0,t.requestId.high>>>0).toNumber(!0))),t.clientMediaName!=null&&(i.clientMediaName=String(t.clientMediaName)),t.relay!=null&&(i.relay=!!t.relay),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!0);n.channelId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.channelId=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!0);n.uid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.uid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!0);n.requestId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.requestId=i.longs===String?"0":0;n.clientMediaName="",n.relay=!1}return t.channelId!=null&&t.hasOwnProperty("channelId")&&(typeof t.channelId=="number"?n.channelId=i.longs===String?String(t.channelId):t.channelId:n.channelId=i.longs===String?r.Long.prototype.toString.call(t.channelId):i.longs===Number?new r.LongBits(t.channelId.low>>>0,t.channelId.high>>>0).toNumber(!0):t.channelId),t.uid!=null&&t.hasOwnProperty("uid")&&(typeof t.uid=="number"?n.uid=i.longs===String?String(t.uid):t.uid:n.uid=i.longs===String?r.Long.prototype.toString.call(t.uid):i.longs===Number?new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber(!0):t.uid),t.requestId!=null&&t.hasOwnProperty("requestId")&&(typeof t.requestId=="number"?n.requestId=i.longs===String?String(t.requestId):t.requestId:n.requestId=i.longs===String?r.Long.prototype.toString.call(t.requestId):i.longs===Number?new r.LongBits(t.requestId.low>>>0,t.requestId.high>>>0).toNumber(!0):t.requestId),t.clientMediaName!=null&&t.hasOwnProperty("clientMediaName")&&(n.clientMediaName=t.clientMediaName),t.relay!=null&&t.hasOwnProperty("relay")&&(n.relay=t.relay),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.live.rtc.signal.UserLookupReq"},e}(),c.UserLookupResp=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.mediaName=t.string();break}case 2:{o.mediaIp=t.string();break}case 3:{o.stream=u.bilibili.live.rtc.Stream.decode(t,t.uint32());break}case 4:{o.sdp=t.string();break}case 5:{o.callId=t.uint32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.live.rtc.signal.UserLookupResp)return t;let i=new u.bilibili.live.rtc.signal.UserLookupResp;if(t.mediaName!=null&&(i.mediaName=String(t.mediaName)),t.mediaIp!=null&&(i.mediaIp=String(t.mediaIp)),t.stream!=null){if(typeof t.stream!="object")throw TypeError(".bilibili.live.rtc.signal.UserLookupResp.stream: object expected");i.stream=u.bilibili.live.rtc.Stream.fromObject(t.stream)}return t.sdp!=null&&(i.sdp=String(t.sdp)),t.callId!=null&&(i.callId=t.callId>>>0),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.mediaName="",n.mediaIp="",n.stream=null,n.sdp="",n.callId=0),t.mediaName!=null&&t.hasOwnProperty("mediaName")&&(n.mediaName=t.mediaName),t.mediaIp!=null&&t.hasOwnProperty("mediaIp")&&(n.mediaIp=t.mediaIp),t.stream!=null&&t.hasOwnProperty("stream")&&(n.stream=u.bilibili.live.rtc.Stream.toObject(t.stream,i)),t.sdp!=null&&t.hasOwnProperty("sdp")&&(n.sdp=t.sdp),t.callId!=null&&t.hasOwnProperty("callId")&&(n.callId=t.callId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.live.rtc.signal.UserLookupResp"},e}(),c.UserReconnectLegacyReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.channelId=t.uint64();break}case 2:{o.callId=t.uint32();break}case 3:{o.requestId=t.uint64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.live.rtc.signal.UserReconnectLegacyReq)return t;let i=new u.bilibili.live.rtc.signal.UserReconnectLegacyReq;return t.channelId!=null&&(r.Long?(i.channelId=r.Long.fromValue(t.channelId)).unsigned=!0:typeof t.channelId=="string"?i.channelId=parseInt(t.channelId,10):typeof t.channelId=="number"?i.channelId=t.channelId:typeof t.channelId=="object"&&(i.channelId=new r.LongBits(t.channelId.low>>>0,t.channelId.high>>>0).toNumber(!0))),t.callId!=null&&(i.callId=t.callId>>>0),t.requestId!=null&&(r.Long?(i.requestId=r.Long.fromValue(t.requestId)).unsigned=!0:typeof t.requestId=="string"?i.requestId=parseInt(t.requestId,10):typeof t.requestId=="number"?i.requestId=t.requestId:typeof t.requestId=="object"&&(i.requestId=new r.LongBits(t.requestId.low>>>0,t.requestId.high>>>0).toNumber(!0))),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!0);n.channelId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.channelId=i.longs===String?"0":0;if(n.callId=0,r.Long){let o=new r.Long(0,0,!0);n.requestId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.requestId=i.longs===String?"0":0}return t.channelId!=null&&t.hasOwnProperty("channelId")&&(typeof t.channelId=="number"?n.channelId=i.longs===String?String(t.channelId):t.channelId:n.channelId=i.longs===String?r.Long.prototype.toString.call(t.channelId):i.longs===Number?new r.LongBits(t.channelId.low>>>0,t.channelId.high>>>0).toNumber(!0):t.channelId),t.callId!=null&&t.hasOwnProperty("callId")&&(n.callId=t.callId),t.requestId!=null&&t.hasOwnProperty("requestId")&&(typeof t.requestId=="number"?n.requestId=i.longs===String?String(t.requestId):t.requestId:n.requestId=i.longs===String?r.Long.prototype.toString.call(t.requestId):i.longs===Number?new r.LongBits(t.requestId.low>>>0,t.requestId.high>>>0).toNumber(!0):t.requestId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.live.rtc.signal.UserReconnectLegacyReq"},e}(),c.UserReconnectLegacyResp=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.uid=t.uint64();break}case 2:{o.sdp=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.live.rtc.signal.UserReconnectLegacyResp)return t;let i=new u.bilibili.live.rtc.signal.UserReconnectLegacyResp;return t.uid!=null&&(r.Long?(i.uid=r.Long.fromValue(t.uid)).unsigned=!0:typeof t.uid=="string"?i.uid=parseInt(t.uid,10):typeof t.uid=="number"?i.uid=t.uid:typeof t.uid=="object"&&(i.uid=new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber(!0))),t.sdp!=null&&(i.sdp=String(t.sdp)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!0);n.uid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.uid=i.longs===String?"0":0;n.sdp=""}return t.uid!=null&&t.hasOwnProperty("uid")&&(typeof t.uid=="number"?n.uid=i.longs===String?String(t.uid):t.uid:n.uid=i.longs===String?r.Long.prototype.toString.call(t.uid):i.longs===Number?new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber(!0):t.uid),t.sdp!=null&&t.hasOwnProperty("sdp")&&(n.sdp=t.sdp),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.live.rtc.signal.UserReconnectLegacyResp"},e}(),c.UserUnpublishedReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.channelId=t.uint64();break}case 2:{o.uid=t.uint64();break}case 3:{o.requestId=t.uint64();break}case 4:{o.role=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.live.rtc.signal.UserUnpublishedReq)return t;let i=new u.bilibili.live.rtc.signal.UserUnpublishedReq;switch(t.channelId!=null&&(r.Long?(i.channelId=r.Long.fromValue(t.channelId)).unsigned=!0:typeof t.channelId=="string"?i.channelId=parseInt(t.channelId,10):typeof t.channelId=="number"?i.channelId=t.channelId:typeof t.channelId=="object"&&(i.channelId=new r.LongBits(t.channelId.low>>>0,t.channelId.high>>>0).toNumber(!0))),t.uid!=null&&(r.Long?(i.uid=r.Long.fromValue(t.uid)).unsigned=!0:typeof t.uid=="string"?i.uid=parseInt(t.uid,10):typeof t.uid=="number"?i.uid=t.uid:typeof t.uid=="object"&&(i.uid=new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber(!0))),t.requestId!=null&&(r.Long?(i.requestId=r.Long.fromValue(t.requestId)).unsigned=!0:typeof t.requestId=="string"?i.requestId=parseInt(t.requestId,10):typeof t.requestId=="number"?i.requestId=t.requestId:typeof t.requestId=="object"&&(i.requestId=new r.LongBits(t.requestId.low>>>0,t.requestId.high>>>0).toNumber(!0))),t.role){default:if(typeof t.role=="number"){i.role=t.role;break}break;case"Normal":case 0:i.role=0;break;case"Audience":case 1:i.role=1;break;case"Monitor":case 2:i.role=2;break;case"Relay":case 3:i.role=3;break;case"App":case 4:i.role=4;break;case"Mix":case 5:i.role=5;break;case"Unknown":case 99:i.role=99;break}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!0);n.channelId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.channelId=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!0);n.uid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.uid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!0);n.requestId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.requestId=i.longs===String?"0":0;n.role=i.enums===String?"Normal":0}return t.channelId!=null&&t.hasOwnProperty("channelId")&&(typeof t.channelId=="number"?n.channelId=i.longs===String?String(t.channelId):t.channelId:n.channelId=i.longs===String?r.Long.prototype.toString.call(t.channelId):i.longs===Number?new r.LongBits(t.channelId.low>>>0,t.channelId.high>>>0).toNumber(!0):t.channelId),t.uid!=null&&t.hasOwnProperty("uid")&&(typeof t.uid=="number"?n.uid=i.longs===String?String(t.uid):t.uid:n.uid=i.longs===String?r.Long.prototype.toString.call(t.uid):i.longs===Number?new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber(!0):t.uid),t.requestId!=null&&t.hasOwnProperty("requestId")&&(typeof t.requestId=="number"?n.requestId=i.longs===String?String(t.requestId):t.requestId:n.requestId=i.longs===String?r.Long.prototype.toString.call(t.requestId):i.longs===Number?new r.LongBits(t.requestId.low>>>0,t.requestId.high>>>0).toNumber(!0):t.requestId),t.role!=null&&t.hasOwnProperty("role")&&(n.role=i.enums===String?u.bilibili.live.rtc.UserRole[t.role]===void 0?t.role:u.bilibili.live.rtc.UserRole[t.role]:t.role),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.live.rtc.signal.UserUnpublishedReq"},e}(),c.UserUnpublishedResp=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){default:t.skipType(a&7);break}}return o},e.fromObject=function(t){return t instanceof u.bilibili.live.rtc.signal.UserUnpublishedResp?t:new u.bilibili.live.rtc.signal.UserUnpublishedResp},e.toObject=function(){return{}},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.live.rtc.signal.UserUnpublishedResp"},e}(),c.UserMuteReq=function(){function e(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.channelId=i.uint64();break}case 2:{a.uid=i.uint64();break}case 3:{a.muteAudio=i.bool();break}case 4:{a.muteVideo=i.bool();break}case 5:{a.requestId=i.uint64();break}case 6:{a.role=i.int32();break}default:i.skipType(y&7);break}}return a},e.fromObject=function(i){if(i instanceof u.bilibili.live.rtc.signal.UserMuteReq)return i;let n=new u.bilibili.live.rtc.signal.UserMuteReq;switch(i.channelId!=null&&(r.Long?(n.channelId=r.Long.fromValue(i.channelId)).unsigned=!0:typeof i.channelId=="string"?n.channelId=parseInt(i.channelId,10):typeof i.channelId=="number"?n.channelId=i.channelId:typeof i.channelId=="object"&&(n.channelId=new r.LongBits(i.channelId.low>>>0,i.channelId.high>>>0).toNumber(!0))),i.uid!=null&&(r.Long?(n.uid=r.Long.fromValue(i.uid)).unsigned=!0:typeof i.uid=="string"?n.uid=parseInt(i.uid,10):typeof i.uid=="number"?n.uid=i.uid:typeof i.uid=="object"&&(n.uid=new r.LongBits(i.uid.low>>>0,i.uid.high>>>0).toNumber(!0))),i.muteAudio!=null&&(n.muteAudio=!!i.muteAudio),i.muteVideo!=null&&(n.muteVideo=!!i.muteVideo),i.requestId!=null&&(r.Long?(n.requestId=r.Long.fromValue(i.requestId)).unsigned=!0:typeof i.requestId=="string"?n.requestId=parseInt(i.requestId,10):typeof i.requestId=="number"?n.requestId=i.requestId:typeof i.requestId=="object"&&(n.requestId=new r.LongBits(i.requestId.low>>>0,i.requestId.high>>>0).toNumber(!0))),i.role){default:if(typeof i.role=="number"){n.role=i.role;break}break;case"Normal":case 0:n.role=0;break;case"Audience":case 1:n.role=1;break;case"Monitor":case 2:n.role=2;break;case"Relay":case 3:n.role=3;break;case"App":case 4:n.role=4;break;case"Mix":case 5:n.role=5;break;case"Unknown":case 99:n.role=99;break}return n},e.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!0);o.channelId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.channelId=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!0);o.uid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.uid=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!0);o.requestId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.requestId=n.longs===String?"0":0;o.role=n.enums===String?"Normal":0}return i.channelId!=null&&i.hasOwnProperty("channelId")&&(typeof i.channelId=="number"?o.channelId=n.longs===String?String(i.channelId):i.channelId:o.channelId=n.longs===String?r.Long.prototype.toString.call(i.channelId):n.longs===Number?new r.LongBits(i.channelId.low>>>0,i.channelId.high>>>0).toNumber(!0):i.channelId),i.uid!=null&&i.hasOwnProperty("uid")&&(typeof i.uid=="number"?o.uid=n.longs===String?String(i.uid):i.uid:o.uid=n.longs===String?r.Long.prototype.toString.call(i.uid):n.longs===Number?new r.LongBits(i.uid.low>>>0,i.uid.high>>>0).toNumber(!0):i.uid),i.muteAudio!=null&&i.hasOwnProperty("muteAudio")&&(o.muteAudio=i.muteAudio,n.oneofs&&(o.muteReq="muteAudio")),i.muteVideo!=null&&i.hasOwnProperty("muteVideo")&&(o.muteVideo=i.muteVideo,n.oneofs&&(o.muteReq="muteVideo")),i.requestId!=null&&i.hasOwnProperty("requestId")&&(typeof i.requestId=="number"?o.requestId=n.longs===String?String(i.requestId):i.requestId:o.requestId=n.longs===String?r.Long.prototype.toString.call(i.requestId):n.longs===Number?new r.LongBits(i.requestId.low>>>0,i.requestId.high>>>0).toNumber(!0):i.requestId),i.role!=null&&i.hasOwnProperty("role")&&(o.role=n.enums===String?u.bilibili.live.rtc.UserRole[i.role]===void 0?i.role:u.bilibili.live.rtc.UserRole[i.role]:i.role),o},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.live.rtc.signal.UserMuteReq"},e}(),c.MuteResponse=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){default:t.skipType(a&7);break}}return o},e.fromObject=function(t){return t instanceof u.bilibili.live.rtc.signal.MuteResponse?t:new u.bilibili.live.rtc.signal.MuteResponse},e.toObject=function(){return{}},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.live.rtc.signal.MuteResponse"},e}(),c.UserMonitorTaskReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.server=t.string();break}case 2:{o.requestId=t.uint64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.live.rtc.signal.UserMonitorTaskReq)return t;let i=new u.bilibili.live.rtc.signal.UserMonitorTaskReq;return t.server!=null&&(i.server=String(t.server)),t.requestId!=null&&(r.Long?(i.requestId=r.Long.fromValue(t.requestId)).unsigned=!0:typeof t.requestId=="string"?i.requestId=parseInt(t.requestId,10):typeof t.requestId=="number"?i.requestId=t.requestId:typeof t.requestId=="object"&&(i.requestId=new r.LongBits(t.requestId.low>>>0,t.requestId.high>>>0).toNumber(!0))),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(n.server="",r.Long){let o=new r.Long(0,0,!0);n.requestId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.requestId=i.longs===String?"0":0;return t.server!=null&&t.hasOwnProperty("server")&&(n.server=t.server),t.requestId!=null&&t.hasOwnProperty("requestId")&&(typeof t.requestId=="number"?n.requestId=i.longs===String?String(t.requestId):t.requestId:n.requestId=i.longs===String?r.Long.prototype.toString.call(t.requestId):i.longs===Number?new r.LongBits(t.requestId.low>>>0,t.requestId.high>>>0).toNumber(!0):t.requestId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.live.rtc.signal.UserMonitorTaskReq"},e}(),c.UserMonitorTaskResp=function(){function e(l){if(this.tasks=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.tasks&&o.tasks.length||(o.tasks=[]),o.tasks.push(u.bilibili.live.rtc.signal.Task.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.live.rtc.signal.UserMonitorTaskResp)return t;let i=new u.bilibili.live.rtc.signal.UserMonitorTaskResp;if(t.tasks){if(!Array.isArray(t.tasks))throw TypeError(".bilibili.live.rtc.signal.UserMonitorTaskResp.tasks: array expected");i.tasks=[];for(let n=0;n>>3){case 1:{o.channelId=t.uint64();break}case 2:{o.uid=t.uint64();break}case 3:{o.mediaGrpcServer=t.string();break}case 4:{o.recordServer=t.string();break}case 5:{o.streams&&o.streams.length||(o.streams=[]),o.streams.push(u.bilibili.live.rtc.StreamMeta.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.live.rtc.signal.Task)return t;let i=new u.bilibili.live.rtc.signal.Task;if(t.channelId!=null&&(r.Long?(i.channelId=r.Long.fromValue(t.channelId)).unsigned=!0:typeof t.channelId=="string"?i.channelId=parseInt(t.channelId,10):typeof t.channelId=="number"?i.channelId=t.channelId:typeof t.channelId=="object"&&(i.channelId=new r.LongBits(t.channelId.low>>>0,t.channelId.high>>>0).toNumber(!0))),t.uid!=null&&(r.Long?(i.uid=r.Long.fromValue(t.uid)).unsigned=!0:typeof t.uid=="string"?i.uid=parseInt(t.uid,10):typeof t.uid=="number"?i.uid=t.uid:typeof t.uid=="object"&&(i.uid=new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber(!0))),t.mediaGrpcServer!=null&&(i.mediaGrpcServer=String(t.mediaGrpcServer)),t.recordServer!=null&&(i.recordServer=String(t.recordServer)),t.streams){if(!Array.isArray(t.streams))throw TypeError(".bilibili.live.rtc.signal.Task.streams: array expected");i.streams=[];for(let n=0;n>>0,t.channelId.high>>>0).toNumber(!0):t.channelId),t.uid!=null&&t.hasOwnProperty("uid")&&(typeof t.uid=="number"?n.uid=i.longs===String?String(t.uid):t.uid:n.uid=i.longs===String?r.Long.prototype.toString.call(t.uid):i.longs===Number?new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber(!0):t.uid),t.mediaGrpcServer!=null&&t.hasOwnProperty("mediaGrpcServer")&&(n.mediaGrpcServer=t.mediaGrpcServer),t.recordServer!=null&&t.hasOwnProperty("recordServer")&&(n.recordServer=t.recordServer),t.streams&&t.streams.length){n.streams=[];for(let o=0;o>>3){case 1:{o.server=t.string();break}case 2:{o.requestId=t.uint64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.live.rtc.signal.UserForwardTaskReq)return t;let i=new u.bilibili.live.rtc.signal.UserForwardTaskReq;return t.server!=null&&(i.server=String(t.server)),t.requestId!=null&&(r.Long?(i.requestId=r.Long.fromValue(t.requestId)).unsigned=!0:typeof t.requestId=="string"?i.requestId=parseInt(t.requestId,10):typeof t.requestId=="number"?i.requestId=t.requestId:typeof t.requestId=="object"&&(i.requestId=new r.LongBits(t.requestId.low>>>0,t.requestId.high>>>0).toNumber(!0))),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(n.server="",r.Long){let o=new r.Long(0,0,!0);n.requestId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.requestId=i.longs===String?"0":0;return t.server!=null&&t.hasOwnProperty("server")&&(n.server=t.server),t.requestId!=null&&t.hasOwnProperty("requestId")&&(typeof t.requestId=="number"?n.requestId=i.longs===String?String(t.requestId):t.requestId:n.requestId=i.longs===String?r.Long.prototype.toString.call(t.requestId):i.longs===Number?new r.LongBits(t.requestId.low>>>0,t.requestId.high>>>0).toNumber(!0):t.requestId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.live.rtc.signal.UserForwardTaskReq"},e}(),c.UserForwardTaskResp=function(){function e(l){if(this.tasks=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.tasks&&o.tasks.length||(o.tasks=[]),o.tasks.push(u.bilibili.live.rtc.signal.ForwardTask.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.live.rtc.signal.UserForwardTaskResp)return t;let i=new u.bilibili.live.rtc.signal.UserForwardTaskResp;if(t.tasks){if(!Array.isArray(t.tasks))throw TypeError(".bilibili.live.rtc.signal.UserForwardTaskResp.tasks: array expected");i.tasks=[];for(let n=0;n>>3){case 1:{o.channelId=t.uint64();break}case 2:{o.uid=t.uint64();break}case 3:{o.callId=t.uint32();break}case 4:{o.mediaGrpcServer=t.string();break}case 5:{o.audioSSRC=t.uint32();break}case 6:{o.videoSSRC=t.uint32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.live.rtc.signal.ForwardTask)return t;let i=new u.bilibili.live.rtc.signal.ForwardTask;return t.channelId!=null&&(r.Long?(i.channelId=r.Long.fromValue(t.channelId)).unsigned=!0:typeof t.channelId=="string"?i.channelId=parseInt(t.channelId,10):typeof t.channelId=="number"?i.channelId=t.channelId:typeof t.channelId=="object"&&(i.channelId=new r.LongBits(t.channelId.low>>>0,t.channelId.high>>>0).toNumber(!0))),t.uid!=null&&(r.Long?(i.uid=r.Long.fromValue(t.uid)).unsigned=!0:typeof t.uid=="string"?i.uid=parseInt(t.uid,10):typeof t.uid=="number"?i.uid=t.uid:typeof t.uid=="object"&&(i.uid=new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber(!0))),t.callId!=null&&(i.callId=t.callId>>>0),t.mediaGrpcServer!=null&&(i.mediaGrpcServer=String(t.mediaGrpcServer)),t.audioSSRC!=null&&(i.audioSSRC=t.audioSSRC>>>0),t.videoSSRC!=null&&(i.videoSSRC=t.videoSSRC>>>0),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!0);n.channelId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.channelId=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!0);n.uid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.uid=i.longs===String?"0":0;n.callId=0,n.mediaGrpcServer="",n.audioSSRC=0,n.videoSSRC=0}return t.channelId!=null&&t.hasOwnProperty("channelId")&&(typeof t.channelId=="number"?n.channelId=i.longs===String?String(t.channelId):t.channelId:n.channelId=i.longs===String?r.Long.prototype.toString.call(t.channelId):i.longs===Number?new r.LongBits(t.channelId.low>>>0,t.channelId.high>>>0).toNumber(!0):t.channelId),t.uid!=null&&t.hasOwnProperty("uid")&&(typeof t.uid=="number"?n.uid=i.longs===String?String(t.uid):t.uid:n.uid=i.longs===String?r.Long.prototype.toString.call(t.uid):i.longs===Number?new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber(!0):t.uid),t.callId!=null&&t.hasOwnProperty("callId")&&(n.callId=t.callId),t.mediaGrpcServer!=null&&t.hasOwnProperty("mediaGrpcServer")&&(n.mediaGrpcServer=t.mediaGrpcServer),t.audioSSRC!=null&&t.hasOwnProperty("audioSSRC")&&(n.audioSSRC=t.audioSSRC),t.videoSSRC!=null&&t.hasOwnProperty("videoSSRC")&&(n.videoSSRC=t.videoSSRC),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.live.rtc.signal.ForwardTask"},e}(),c.GetMembersReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.requestId=t.uint64();break}case 2:{o.channelId=t.uint64();break}case 3:{o.uid=t.uint64();break}case 4:{o.callId=t.uint32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.live.rtc.signal.GetMembersReq)return t;let i=new u.bilibili.live.rtc.signal.GetMembersReq;return t.requestId!=null&&(r.Long?(i.requestId=r.Long.fromValue(t.requestId)).unsigned=!0:typeof t.requestId=="string"?i.requestId=parseInt(t.requestId,10):typeof t.requestId=="number"?i.requestId=t.requestId:typeof t.requestId=="object"&&(i.requestId=new r.LongBits(t.requestId.low>>>0,t.requestId.high>>>0).toNumber(!0))),t.channelId!=null&&(r.Long?(i.channelId=r.Long.fromValue(t.channelId)).unsigned=!0:typeof t.channelId=="string"?i.channelId=parseInt(t.channelId,10):typeof t.channelId=="number"?i.channelId=t.channelId:typeof t.channelId=="object"&&(i.channelId=new r.LongBits(t.channelId.low>>>0,t.channelId.high>>>0).toNumber(!0))),t.uid!=null&&(r.Long?(i.uid=r.Long.fromValue(t.uid)).unsigned=!0:typeof t.uid=="string"?i.uid=parseInt(t.uid,10):typeof t.uid=="number"?i.uid=t.uid:typeof t.uid=="object"&&(i.uid=new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber(!0))),t.callId!=null&&(i.callId=t.callId>>>0),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!0);n.requestId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.requestId=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!0);n.channelId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.channelId=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!0);n.uid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.uid=i.longs===String?"0":0;n.callId=0}return t.requestId!=null&&t.hasOwnProperty("requestId")&&(typeof t.requestId=="number"?n.requestId=i.longs===String?String(t.requestId):t.requestId:n.requestId=i.longs===String?r.Long.prototype.toString.call(t.requestId):i.longs===Number?new r.LongBits(t.requestId.low>>>0,t.requestId.high>>>0).toNumber(!0):t.requestId),t.channelId!=null&&t.hasOwnProperty("channelId")&&(typeof t.channelId=="number"?n.channelId=i.longs===String?String(t.channelId):t.channelId:n.channelId=i.longs===String?r.Long.prototype.toString.call(t.channelId):i.longs===Number?new r.LongBits(t.channelId.low>>>0,t.channelId.high>>>0).toNumber(!0):t.channelId),t.uid!=null&&t.hasOwnProperty("uid")&&(typeof t.uid=="number"?n.uid=i.longs===String?String(t.uid):t.uid:n.uid=i.longs===String?r.Long.prototype.toString.call(t.uid):i.longs===Number?new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber(!0):t.uid),t.callId!=null&&t.hasOwnProperty("callId")&&(n.callId=t.callId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.live.rtc.signal.GetMembersReq"},e}(),c.GetMembersResp=function(){function e(l){if(this.users=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.users&&o.users.length||(o.users=[]),o.users.push(u.bilibili.live.rtc.User.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.live.rtc.signal.GetMembersResp)return t;let i=new u.bilibili.live.rtc.signal.GetMembersResp;if(t.users){if(!Array.isArray(t.users))throw TypeError(".bilibili.live.rtc.signal.GetMembersResp.users: array expected");i.users=[];for(let n=0;n>>3){case 1:{o.channelId=t.uint64();break}case 2:{o.uid=t.uint64();break}case 3:{o.requestId=t.uint64();break}case 4:{o.bizId=t.uint32();break}case 6:{if(o.receivers&&o.receivers.length||(o.receivers=[]),(a&7)===2){let y=t.uint32()+t.pos;for(;t.pos>>0,t.channelId.high>>>0).toNumber(!0))),t.uid!=null&&(r.Long?(i.uid=r.Long.fromValue(t.uid)).unsigned=!0:typeof t.uid=="string"?i.uid=parseInt(t.uid,10):typeof t.uid=="number"?i.uid=t.uid:typeof t.uid=="object"&&(i.uid=new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber(!0))),t.requestId!=null&&(r.Long?(i.requestId=r.Long.fromValue(t.requestId)).unsigned=!0:typeof t.requestId=="string"?i.requestId=parseInt(t.requestId,10):typeof t.requestId=="number"?i.requestId=t.requestId:typeof t.requestId=="object"&&(i.requestId=new r.LongBits(t.requestId.low>>>0,t.requestId.high>>>0).toNumber(!0))),t.bizId!=null&&(i.bizId=t.bizId>>>0),t.receivers){if(!Array.isArray(t.receivers))throw TypeError(".bilibili.live.rtc.signal.UserMessageReq.receivers: array expected");i.receivers=[];for(let n=0;n>>0,t.receivers[n].high>>>0).toNumber(!0))}return t.mediaName!=null&&(i.mediaName=String(t.mediaName)),t.payload!=null&&(typeof t.payload=="string"?r.base64.decode(t.payload,i.payload=r.newBuffer(r.base64.length(t.payload)),0):t.payload.length>=0&&(i.payload=t.payload)),i},e.toObject=function(t,i){i||(i={});let n={};if((i.arrays||i.defaults)&&(n.receivers=[]),i.defaults){if(r.Long){let o=new r.Long(0,0,!0);n.channelId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.channelId=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!0);n.uid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.uid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!0);n.requestId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.requestId=i.longs===String?"0":0;n.bizId=0,n.mediaName="",i.bytes===String?n.payload="":(n.payload=[],i.bytes!==Array&&(n.payload=r.newBuffer(n.payload)))}if(t.channelId!=null&&t.hasOwnProperty("channelId")&&(typeof t.channelId=="number"?n.channelId=i.longs===String?String(t.channelId):t.channelId:n.channelId=i.longs===String?r.Long.prototype.toString.call(t.channelId):i.longs===Number?new r.LongBits(t.channelId.low>>>0,t.channelId.high>>>0).toNumber(!0):t.channelId),t.uid!=null&&t.hasOwnProperty("uid")&&(typeof t.uid=="number"?n.uid=i.longs===String?String(t.uid):t.uid:n.uid=i.longs===String?r.Long.prototype.toString.call(t.uid):i.longs===Number?new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber(!0):t.uid),t.requestId!=null&&t.hasOwnProperty("requestId")&&(typeof t.requestId=="number"?n.requestId=i.longs===String?String(t.requestId):t.requestId:n.requestId=i.longs===String?r.Long.prototype.toString.call(t.requestId):i.longs===Number?new r.LongBits(t.requestId.low>>>0,t.requestId.high>>>0).toNumber(!0):t.requestId),t.bizId!=null&&t.hasOwnProperty("bizId")&&(n.bizId=t.bizId),t.receivers&&t.receivers.length){n.receivers=[];for(let o=0;o>>0,t.receivers[o].high>>>0).toNumber(!0):t.receivers[o]}return t.mediaName!=null&&t.hasOwnProperty("mediaName")&&(n.mediaName=t.mediaName),t.payload!=null&&t.hasOwnProperty("payload")&&(n.payload=i.bytes===String?r.base64.encode(t.payload,0,t.payload.length):i.bytes===Array?Array.prototype.slice.call(t.payload):t.payload),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.live.rtc.signal.UserMessageReq"},e}(),c.UserMessageResp=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){default:t.skipType(a&7);break}}return o},e.fromObject=function(t){return t instanceof u.bilibili.live.rtc.signal.UserMessageResp?t:new u.bilibili.live.rtc.signal.UserMessageResp},e.toObject=function(){return{}},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.live.rtc.signal.UserMessageResp"},e}(),c}(),p.Codec=function(){let c={},e=Object.create(c);return e[c[0]="Opus"]=0,e[c[1]="H264"]=1,e}(),p.AudioMetaData=function(){function c(e){if(e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.channels=l.int64();break}case 2:{n.sampleRate=l.int64();break}case 3:{n.payload=l.int64();break}case 4:{n.ssrc=l.int32();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.live.rtc.AudioMetaData)return l;let t=new u.bilibili.live.rtc.AudioMetaData;return l.channels!=null&&(r.Long?(t.channels=r.Long.fromValue(l.channels)).unsigned=!1:typeof l.channels=="string"?t.channels=parseInt(l.channels,10):typeof l.channels=="number"?t.channels=l.channels:typeof l.channels=="object"&&(t.channels=new r.LongBits(l.channels.low>>>0,l.channels.high>>>0).toNumber())),l.sampleRate!=null&&(r.Long?(t.sampleRate=r.Long.fromValue(l.sampleRate)).unsigned=!1:typeof l.sampleRate=="string"?t.sampleRate=parseInt(l.sampleRate,10):typeof l.sampleRate=="number"?t.sampleRate=l.sampleRate:typeof l.sampleRate=="object"&&(t.sampleRate=new r.LongBits(l.sampleRate.low>>>0,l.sampleRate.high>>>0).toNumber())),l.payload!=null&&(r.Long?(t.payload=r.Long.fromValue(l.payload)).unsigned=!1:typeof l.payload=="string"?t.payload=parseInt(l.payload,10):typeof l.payload=="number"?t.payload=l.payload:typeof l.payload=="object"&&(t.payload=new r.LongBits(l.payload.low>>>0,l.payload.high>>>0).toNumber())),l.ssrc!=null&&(t.ssrc=l.ssrc|0),t},c.toObject=function(l,t){t||(t={});let i={};if(t.defaults){if(r.Long){let n=new r.Long(0,0,!1);i.channels=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.channels=t.longs===String?"0":0;if(r.Long){let n=new r.Long(0,0,!1);i.sampleRate=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.sampleRate=t.longs===String?"0":0;if(r.Long){let n=new r.Long(0,0,!1);i.payload=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.payload=t.longs===String?"0":0;i.ssrc=0}return l.channels!=null&&l.hasOwnProperty("channels")&&(typeof l.channels=="number"?i.channels=t.longs===String?String(l.channels):l.channels:i.channels=t.longs===String?r.Long.prototype.toString.call(l.channels):t.longs===Number?new r.LongBits(l.channels.low>>>0,l.channels.high>>>0).toNumber():l.channels),l.sampleRate!=null&&l.hasOwnProperty("sampleRate")&&(typeof l.sampleRate=="number"?i.sampleRate=t.longs===String?String(l.sampleRate):l.sampleRate:i.sampleRate=t.longs===String?r.Long.prototype.toString.call(l.sampleRate):t.longs===Number?new r.LongBits(l.sampleRate.low>>>0,l.sampleRate.high>>>0).toNumber():l.sampleRate),l.payload!=null&&l.hasOwnProperty("payload")&&(typeof l.payload=="number"?i.payload=t.longs===String?String(l.payload):l.payload:i.payload=t.longs===String?r.Long.prototype.toString.call(l.payload):t.longs===Number?new r.LongBits(l.payload.low>>>0,l.payload.high>>>0).toNumber():l.payload),l.ssrc!=null&&l.hasOwnProperty("ssrc")&&(i.ssrc=l.ssrc),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.live.rtc.AudioMetaData"},c}(),p.VideoMetaData=function(){function c(e){if(e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.payload=l.int64();break}case 2:{n.ssrc=l.int32();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.live.rtc.VideoMetaData)return l;let t=new u.bilibili.live.rtc.VideoMetaData;return l.payload!=null&&(r.Long?(t.payload=r.Long.fromValue(l.payload)).unsigned=!1:typeof l.payload=="string"?t.payload=parseInt(l.payload,10):typeof l.payload=="number"?t.payload=l.payload:typeof l.payload=="object"&&(t.payload=new r.LongBits(l.payload.low>>>0,l.payload.high>>>0).toNumber())),l.ssrc!=null&&(t.ssrc=l.ssrc|0),t},c.toObject=function(l,t){t||(t={});let i={};if(t.defaults){if(r.Long){let n=new r.Long(0,0,!1);i.payload=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.payload=t.longs===String?"0":0;i.ssrc=0}return l.payload!=null&&l.hasOwnProperty("payload")&&(typeof l.payload=="number"?i.payload=t.longs===String?String(l.payload):l.payload:i.payload=t.longs===String?r.Long.prototype.toString.call(l.payload):t.longs===Number?new r.LongBits(l.payload.low>>>0,l.payload.high>>>0).toNumber():l.payload),l.ssrc!=null&&l.hasOwnProperty("ssrc")&&(i.ssrc=l.ssrc),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.live.rtc.VideoMetaData"},c}(),p.StreamMeta=function(){function c(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.codec=t.int32();break}case 2:{o.audio=u.bilibili.live.rtc.AudioMetaData.decode(t,t.uint32());break}case 3:{o.video=u.bilibili.live.rtc.VideoMetaData.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},c.fromObject=function(t){if(t instanceof u.bilibili.live.rtc.StreamMeta)return t;let i=new u.bilibili.live.rtc.StreamMeta;switch(t.codec){default:if(typeof t.codec=="number"){i.codec=t.codec;break}break;case"Opus":case 0:i.codec=0;break;case"H264":case 1:i.codec=1;break}if(t.audio!=null){if(typeof t.audio!="object")throw TypeError(".bilibili.live.rtc.StreamMeta.audio: object expected");i.audio=u.bilibili.live.rtc.AudioMetaData.fromObject(t.audio)}if(t.video!=null){if(typeof t.video!="object")throw TypeError(".bilibili.live.rtc.StreamMeta.video: object expected");i.video=u.bilibili.live.rtc.VideoMetaData.fromObject(t.video)}return i},c.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.codec=i.enums===String?"Opus":0),t.codec!=null&&t.hasOwnProperty("codec")&&(n.codec=i.enums===String?u.bilibili.live.rtc.Codec[t.codec]===void 0?t.codec:u.bilibili.live.rtc.Codec[t.codec]:t.codec),t.audio!=null&&t.hasOwnProperty("audio")&&(n.audio=u.bilibili.live.rtc.AudioMetaData.toObject(t.audio,i),i.oneofs&&(n.Metadata="audio")),t.video!=null&&t.hasOwnProperty("video")&&(n.video=u.bilibili.live.rtc.VideoMetaData.toObject(t.video,i),i.oneofs&&(n.Metadata="video")),n},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.live.rtc.StreamMeta"},c}(),p.AccessToken=function(){function c(e){if(this.addr=[],this.httpDns=[],e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.channelId=l.uint64();break}case 2:{n.uid=l.uint64();break}case 3:{n.token=l.string();break}case 4:{n.addr&&n.addr.length||(n.addr=[]),n.addr.push(l.string());break}case 5:{n.fingerprint=l.string();break}case 6:{n.password=l.string();break}case 7:{n.httpDns&&n.httpDns.length||(n.httpDns=[]),n.httpDns.push(l.string());break}case 8:{n.version=l.uint32();break}case 9:{n.businessName=l.string();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.live.rtc.AccessToken)return l;let t=new u.bilibili.live.rtc.AccessToken;if(l.channelId!=null&&(r.Long?(t.channelId=r.Long.fromValue(l.channelId)).unsigned=!0:typeof l.channelId=="string"?t.channelId=parseInt(l.channelId,10):typeof l.channelId=="number"?t.channelId=l.channelId:typeof l.channelId=="object"&&(t.channelId=new r.LongBits(l.channelId.low>>>0,l.channelId.high>>>0).toNumber(!0))),l.uid!=null&&(r.Long?(t.uid=r.Long.fromValue(l.uid)).unsigned=!0:typeof l.uid=="string"?t.uid=parseInt(l.uid,10):typeof l.uid=="number"?t.uid=l.uid:typeof l.uid=="object"&&(t.uid=new r.LongBits(l.uid.low>>>0,l.uid.high>>>0).toNumber(!0))),l.token!=null&&(t.token=String(l.token)),l.addr){if(!Array.isArray(l.addr))throw TypeError(".bilibili.live.rtc.AccessToken.addr: array expected");t.addr=[];for(let i=0;i>>0),l.businessName!=null&&(t.businessName=String(l.businessName)),t},c.toObject=function(l,t){t||(t={});let i={};if((t.arrays||t.defaults)&&(i.addr=[],i.httpDns=[]),t.defaults){if(r.Long){let n=new r.Long(0,0,!0);i.channelId=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.channelId=t.longs===String?"0":0;if(r.Long){let n=new r.Long(0,0,!0);i.uid=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.uid=t.longs===String?"0":0;i.token="",i.fingerprint="",i.password="",i.version=0,i.businessName=""}if(l.channelId!=null&&l.hasOwnProperty("channelId")&&(typeof l.channelId=="number"?i.channelId=t.longs===String?String(l.channelId):l.channelId:i.channelId=t.longs===String?r.Long.prototype.toString.call(l.channelId):t.longs===Number?new r.LongBits(l.channelId.low>>>0,l.channelId.high>>>0).toNumber(!0):l.channelId),l.uid!=null&&l.hasOwnProperty("uid")&&(typeof l.uid=="number"?i.uid=t.longs===String?String(l.uid):l.uid:i.uid=t.longs===String?r.Long.prototype.toString.call(l.uid):t.longs===Number?new r.LongBits(l.uid.low>>>0,l.uid.high>>>0).toNumber(!0):l.uid),l.token!=null&&l.hasOwnProperty("token")&&(i.token=l.token),l.addr&&l.addr.length){i.addr=[];for(let n=0;n>>3){case 1:{n.channelId=l.uint64();break}case 2:{n.uid=l.uint64();break}case 3:{n.timestamp=l.uint64();break}case 4:{n.role=l.int32();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.live.rtc.Token)return l;let t=new u.bilibili.live.rtc.Token;switch(l.channelId!=null&&(r.Long?(t.channelId=r.Long.fromValue(l.channelId)).unsigned=!0:typeof l.channelId=="string"?t.channelId=parseInt(l.channelId,10):typeof l.channelId=="number"?t.channelId=l.channelId:typeof l.channelId=="object"&&(t.channelId=new r.LongBits(l.channelId.low>>>0,l.channelId.high>>>0).toNumber(!0))),l.uid!=null&&(r.Long?(t.uid=r.Long.fromValue(l.uid)).unsigned=!0:typeof l.uid=="string"?t.uid=parseInt(l.uid,10):typeof l.uid=="number"?t.uid=l.uid:typeof l.uid=="object"&&(t.uid=new r.LongBits(l.uid.low>>>0,l.uid.high>>>0).toNumber(!0))),l.timestamp!=null&&(r.Long?(t.timestamp=r.Long.fromValue(l.timestamp)).unsigned=!0:typeof l.timestamp=="string"?t.timestamp=parseInt(l.timestamp,10):typeof l.timestamp=="number"?t.timestamp=l.timestamp:typeof l.timestamp=="object"&&(t.timestamp=new r.LongBits(l.timestamp.low>>>0,l.timestamp.high>>>0).toNumber(!0))),l.role){default:if(typeof l.role=="number"){t.role=l.role;break}break;case"Normal":case 0:t.role=0;break;case"Audience":case 1:t.role=1;break;case"Monitor":case 2:t.role=2;break;case"Relay":case 3:t.role=3;break;case"App":case 4:t.role=4;break;case"Mix":case 5:t.role=5;break;case"Unknown":case 99:t.role=99;break}return t},c.toObject=function(l,t){t||(t={});let i={};if(t.defaults){if(r.Long){let n=new r.Long(0,0,!0);i.channelId=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.channelId=t.longs===String?"0":0;if(r.Long){let n=new r.Long(0,0,!0);i.uid=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.uid=t.longs===String?"0":0;if(r.Long){let n=new r.Long(0,0,!0);i.timestamp=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.timestamp=t.longs===String?"0":0;i.role=t.enums===String?"Normal":0}return l.channelId!=null&&l.hasOwnProperty("channelId")&&(typeof l.channelId=="number"?i.channelId=t.longs===String?String(l.channelId):l.channelId:i.channelId=t.longs===String?r.Long.prototype.toString.call(l.channelId):t.longs===Number?new r.LongBits(l.channelId.low>>>0,l.channelId.high>>>0).toNumber(!0):l.channelId),l.uid!=null&&l.hasOwnProperty("uid")&&(typeof l.uid=="number"?i.uid=t.longs===String?String(l.uid):l.uid:i.uid=t.longs===String?r.Long.prototype.toString.call(l.uid):t.longs===Number?new r.LongBits(l.uid.low>>>0,l.uid.high>>>0).toNumber(!0):l.uid),l.timestamp!=null&&l.hasOwnProperty("timestamp")&&(typeof l.timestamp=="number"?i.timestamp=t.longs===String?String(l.timestamp):l.timestamp:i.timestamp=t.longs===String?r.Long.prototype.toString.call(l.timestamp):t.longs===Number?new r.LongBits(l.timestamp.low>>>0,l.timestamp.high>>>0).toNumber(!0):l.timestamp),l.role!=null&&l.hasOwnProperty("role")&&(i.role=t.enums===String?u.bilibili.live.rtc.UserRole[l.role]===void 0?l.role:u.bilibili.live.rtc.UserRole[l.role]:l.role),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.live.rtc.Token"},c}(),p.User=function(){function c(e){if(e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.uid=l.uint64();break}case 2:{n.role=l.int32();break}case 3:{n.pubStream=u.bilibili.live.rtc.Stream.decode(l,l.uint32());break}case 4:{n.platform=l.string();break}case 5:{n.sdkVersion=l.string();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.live.rtc.User)return l;let t=new u.bilibili.live.rtc.User;switch(l.uid!=null&&(r.Long?(t.uid=r.Long.fromValue(l.uid)).unsigned=!0:typeof l.uid=="string"?t.uid=parseInt(l.uid,10):typeof l.uid=="number"?t.uid=l.uid:typeof l.uid=="object"&&(t.uid=new r.LongBits(l.uid.low>>>0,l.uid.high>>>0).toNumber(!0))),l.role){default:if(typeof l.role=="number"){t.role=l.role;break}break;case"Normal":case 0:t.role=0;break;case"Audience":case 1:t.role=1;break;case"Monitor":case 2:t.role=2;break;case"Relay":case 3:t.role=3;break;case"App":case 4:t.role=4;break;case"Mix":case 5:t.role=5;break;case"Unknown":case 99:t.role=99;break}if(l.pubStream!=null){if(typeof l.pubStream!="object")throw TypeError(".bilibili.live.rtc.User.pubStream: object expected");t.pubStream=u.bilibili.live.rtc.Stream.fromObject(l.pubStream)}return l.platform!=null&&(t.platform=String(l.platform)),l.sdkVersion!=null&&(t.sdkVersion=String(l.sdkVersion)),t},c.toObject=function(l,t){t||(t={});let i={};if(t.defaults){if(r.Long){let n=new r.Long(0,0,!0);i.uid=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.uid=t.longs===String?"0":0;i.role=t.enums===String?"Normal":0,i.pubStream=null,i.platform="",i.sdkVersion=""}return l.uid!=null&&l.hasOwnProperty("uid")&&(typeof l.uid=="number"?i.uid=t.longs===String?String(l.uid):l.uid:i.uid=t.longs===String?r.Long.prototype.toString.call(l.uid):t.longs===Number?new r.LongBits(l.uid.low>>>0,l.uid.high>>>0).toNumber(!0):l.uid),l.role!=null&&l.hasOwnProperty("role")&&(i.role=t.enums===String?u.bilibili.live.rtc.UserRole[l.role]===void 0?l.role:u.bilibili.live.rtc.UserRole[l.role]:l.role),l.pubStream!=null&&l.hasOwnProperty("pubStream")&&(i.pubStream=u.bilibili.live.rtc.Stream.toObject(l.pubStream,t)),l.platform!=null&&l.hasOwnProperty("platform")&&(i.platform=l.platform),l.sdkVersion!=null&&l.hasOwnProperty("sdkVersion")&&(i.sdkVersion=l.sdkVersion),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.live.rtc.User"},c}(),p.Stream=function(){function c(e){if(e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.hasVideo=l.bool();break}case 2:{n.hasAudio=l.bool();break}case 3:{n.audioMuted=l.bool();break}case 4:{n.videoMuted=l.bool();break}case 5:{n.videoCount=l.uint32();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.live.rtc.Stream)return l;let t=new u.bilibili.live.rtc.Stream;return l.hasVideo!=null&&(t.hasVideo=!!l.hasVideo),l.hasAudio!=null&&(t.hasAudio=!!l.hasAudio),l.audioMuted!=null&&(t.audioMuted=!!l.audioMuted),l.videoMuted!=null&&(t.videoMuted=!!l.videoMuted),l.videoCount!=null&&(t.videoCount=l.videoCount>>>0),t},c.toObject=function(l,t){t||(t={});let i={};return t.defaults&&(i.hasVideo=!1,i.hasAudio=!1,i.audioMuted=!1,i.videoMuted=!1,i.videoCount=0),l.hasVideo!=null&&l.hasOwnProperty("hasVideo")&&(i.hasVideo=l.hasVideo),l.hasAudio!=null&&l.hasOwnProperty("hasAudio")&&(i.hasAudio=l.hasAudio),l.audioMuted!=null&&l.hasOwnProperty("audioMuted")&&(i.audioMuted=l.audioMuted),l.videoMuted!=null&&l.hasOwnProperty("videoMuted")&&(i.videoMuted=l.videoMuted),l.videoCount!=null&&l.hasOwnProperty("videoCount")&&(i.videoCount=l.videoCount),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.live.rtc.Stream"},c}(),p.UserLeaveReason=function(){let c={},e=Object.create(c);return e[c[0]="NORMAL"]=0,e[c[1]="KICKED"]=1,e[c[2]="TIMEOUT"]=2,e[c[3]="KILLED"]=3,e}(),p.UserRole=function(){let c={},e=Object.create(c);return e[c[0]="Normal"]=0,e[c[1]="Audience"]=1,e[c[2]="Monitor"]=2,e[c[3]="Relay"]=3,e[c[4]="App"]=4,e[c[5]="Mix"]=5,e[c[99]="Unknown"]=99,e}(),p}(),d.gift=function(){let p={};return p.v1=function(){let c={};return c.SendGiftBroadcast=function(){function e(l){if(this.giftList=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.uid=t.int64();break}case 2:{o.uname=t.string();break}case 3:{o.face=t.string();break}case 4:{o.nameColor=t.string();break}case 5:{o.guardLevel=t.int64();break}case 6:{o.svgaBlock=t.int64();break}case 7:{o.sendMaster=u.bilibili.live.gift.v1.SendGiftBroadcast.SendMaster.decode(t,t.uint32());break}case 8:{o.medalInfo=u.bilibili.live.gift.v1.SendGiftBroadcast.MedalInfo.decode(t,t.uint32());break}case 9:{o.blindGift=u.bilibili.live.gift.v1.SendGiftBroadcast.BlindGift.decode(t,t.uint32());break}case 10:{o.giftList&&o.giftList.length||(o.giftList=[]),o.giftList.push(u.bilibili.live.gift.v1.SendGiftBroadcast.GiftItem.decode(t,t.uint32()));break}case 11:{o.switch=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.live.gift.v1.SendGiftBroadcast)return t;let i=new u.bilibili.live.gift.v1.SendGiftBroadcast;if(t.uid!=null&&(r.Long?(i.uid=r.Long.fromValue(t.uid)).unsigned=!1:typeof t.uid=="string"?i.uid=parseInt(t.uid,10):typeof t.uid=="number"?i.uid=t.uid:typeof t.uid=="object"&&(i.uid=new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber())),t.uname!=null&&(i.uname=String(t.uname)),t.face!=null&&(i.face=String(t.face)),t.nameColor!=null&&(i.nameColor=String(t.nameColor)),t.guardLevel!=null&&(r.Long?(i.guardLevel=r.Long.fromValue(t.guardLevel)).unsigned=!1:typeof t.guardLevel=="string"?i.guardLevel=parseInt(t.guardLevel,10):typeof t.guardLevel=="number"?i.guardLevel=t.guardLevel:typeof t.guardLevel=="object"&&(i.guardLevel=new r.LongBits(t.guardLevel.low>>>0,t.guardLevel.high>>>0).toNumber())),t.svgaBlock!=null&&(r.Long?(i.svgaBlock=r.Long.fromValue(t.svgaBlock)).unsigned=!1:typeof t.svgaBlock=="string"?i.svgaBlock=parseInt(t.svgaBlock,10):typeof t.svgaBlock=="number"?i.svgaBlock=t.svgaBlock:typeof t.svgaBlock=="object"&&(i.svgaBlock=new r.LongBits(t.svgaBlock.low>>>0,t.svgaBlock.high>>>0).toNumber())),t.sendMaster!=null){if(typeof t.sendMaster!="object")throw TypeError(".bilibili.live.gift.v1.SendGiftBroadcast.sendMaster: object expected");i.sendMaster=u.bilibili.live.gift.v1.SendGiftBroadcast.SendMaster.fromObject(t.sendMaster)}if(t.medalInfo!=null){if(typeof t.medalInfo!="object")throw TypeError(".bilibili.live.gift.v1.SendGiftBroadcast.medalInfo: object expected");i.medalInfo=u.bilibili.live.gift.v1.SendGiftBroadcast.MedalInfo.fromObject(t.medalInfo)}if(t.blindGift!=null){if(typeof t.blindGift!="object")throw TypeError(".bilibili.live.gift.v1.SendGiftBroadcast.blindGift: object expected");i.blindGift=u.bilibili.live.gift.v1.SendGiftBroadcast.BlindGift.fromObject(t.blindGift)}if(t.giftList){if(!Array.isArray(t.giftList))throw TypeError(".bilibili.live.gift.v1.SendGiftBroadcast.giftList: array expected");i.giftList=[];for(let n=0;n>>0,t.uid.high>>>0).toNumber():t.uid),t.uname!=null&&t.hasOwnProperty("uname")&&(n.uname=t.uname),t.face!=null&&t.hasOwnProperty("face")&&(n.face=t.face),t.nameColor!=null&&t.hasOwnProperty("nameColor")&&(n.nameColor=t.nameColor),t.guardLevel!=null&&t.hasOwnProperty("guardLevel")&&(typeof t.guardLevel=="number"?n.guardLevel=i.longs===String?String(t.guardLevel):t.guardLevel:n.guardLevel=i.longs===String?r.Long.prototype.toString.call(t.guardLevel):i.longs===Number?new r.LongBits(t.guardLevel.low>>>0,t.guardLevel.high>>>0).toNumber():t.guardLevel),t.svgaBlock!=null&&t.hasOwnProperty("svgaBlock")&&(typeof t.svgaBlock=="number"?n.svgaBlock=i.longs===String?String(t.svgaBlock):t.svgaBlock:n.svgaBlock=i.longs===String?r.Long.prototype.toString.call(t.svgaBlock):i.longs===Number?new r.LongBits(t.svgaBlock.low>>>0,t.svgaBlock.high>>>0).toNumber():t.svgaBlock),t.sendMaster!=null&&t.hasOwnProperty("sendMaster")&&(n.sendMaster=u.bilibili.live.gift.v1.SendGiftBroadcast.SendMaster.toObject(t.sendMaster,i)),t.medalInfo!=null&&t.hasOwnProperty("medalInfo")&&(n.medalInfo=u.bilibili.live.gift.v1.SendGiftBroadcast.MedalInfo.toObject(t.medalInfo,i)),t.blindGift!=null&&t.hasOwnProperty("blindGift")&&(n.blindGift=u.bilibili.live.gift.v1.SendGiftBroadcast.BlindGift.toObject(t.blindGift,i)),t.giftList&&t.giftList.length){n.giftList=[];for(let o=0;o>>3){case 1:{a.giftId=i.int64();break}case 2:{a.giftName=i.string();break}case 3:{a.num=i.int64();break}case 4:{a.demarcation=i.int64();break}case 5:{a.price=i.int64();break}case 6:{a.discountPrice=i.int64();break}case 7:{a.totalCoin=i.int64();break}case 8:{a.coinType=i.string();break}case 9:{a.tid=i.string();break}case 10:{a.timestamp=i.int64();break}case 11:{a.superBatchGiftNum=i.int64();break}case 12:{a.batchComboId=i.string();break}case 13:{a.comboResourcesId=i.int64();break}case 14:{a.comboTotalCoin=i.int64();break}case 15:{a.comboStayTime=i.int64();break}case 16:{a.magnification=i.float();break}case 17:{a.showBatchComboSend=i.bool();break}case 18:{a.action=i.string();break}case 19:{a.effectBlock=i.int64();break}case 20:{a.isSpecialBatch=i.int64();break}case 21:{a.floatScResourceId=i.int64();break}case 22:{a.tagImage=i.string();break}case 23:{a.critProb=i.int64();break}case 24:{a.rcost=i.int64();break}case 25:{a.test=i.int64();break}case 26:{a.faceEffectType=i.int64();break}case 27:{a.faceEffectId=i.int64();break}case 28:{a.isNaming=i.bool();break}case 29:{a.receiveUserInfo=u.bilibili.live.gift.v1.SendGiftBroadcast.ReceiveUserInfo.decode(i,i.uint32());break}case 30:{a.isJoinReceiver=i.bool();break}case 31:{a.bagGift=u.bilibili.live.gift.v1.SendGiftBroadcast.BagGiftInfo.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.live.gift.v1.SendGiftBroadcast.GiftItem)return i;let n=new u.bilibili.live.gift.v1.SendGiftBroadcast.GiftItem;if(i.giftId!=null&&(r.Long?(n.giftId=r.Long.fromValue(i.giftId)).unsigned=!1:typeof i.giftId=="string"?n.giftId=parseInt(i.giftId,10):typeof i.giftId=="number"?n.giftId=i.giftId:typeof i.giftId=="object"&&(n.giftId=new r.LongBits(i.giftId.low>>>0,i.giftId.high>>>0).toNumber())),i.giftName!=null&&(n.giftName=String(i.giftName)),i.num!=null&&(r.Long?(n.num=r.Long.fromValue(i.num)).unsigned=!1:typeof i.num=="string"?n.num=parseInt(i.num,10):typeof i.num=="number"?n.num=i.num:typeof i.num=="object"&&(n.num=new r.LongBits(i.num.low>>>0,i.num.high>>>0).toNumber())),i.demarcation!=null&&(r.Long?(n.demarcation=r.Long.fromValue(i.demarcation)).unsigned=!1:typeof i.demarcation=="string"?n.demarcation=parseInt(i.demarcation,10):typeof i.demarcation=="number"?n.demarcation=i.demarcation:typeof i.demarcation=="object"&&(n.demarcation=new r.LongBits(i.demarcation.low>>>0,i.demarcation.high>>>0).toNumber())),i.price!=null&&(r.Long?(n.price=r.Long.fromValue(i.price)).unsigned=!1:typeof i.price=="string"?n.price=parseInt(i.price,10):typeof i.price=="number"?n.price=i.price:typeof i.price=="object"&&(n.price=new r.LongBits(i.price.low>>>0,i.price.high>>>0).toNumber())),i.discountPrice!=null&&(r.Long?(n.discountPrice=r.Long.fromValue(i.discountPrice)).unsigned=!1:typeof i.discountPrice=="string"?n.discountPrice=parseInt(i.discountPrice,10):typeof i.discountPrice=="number"?n.discountPrice=i.discountPrice:typeof i.discountPrice=="object"&&(n.discountPrice=new r.LongBits(i.discountPrice.low>>>0,i.discountPrice.high>>>0).toNumber())),i.totalCoin!=null&&(r.Long?(n.totalCoin=r.Long.fromValue(i.totalCoin)).unsigned=!1:typeof i.totalCoin=="string"?n.totalCoin=parseInt(i.totalCoin,10):typeof i.totalCoin=="number"?n.totalCoin=i.totalCoin:typeof i.totalCoin=="object"&&(n.totalCoin=new r.LongBits(i.totalCoin.low>>>0,i.totalCoin.high>>>0).toNumber())),i.coinType!=null&&(n.coinType=String(i.coinType)),i.tid!=null&&(n.tid=String(i.tid)),i.timestamp!=null&&(r.Long?(n.timestamp=r.Long.fromValue(i.timestamp)).unsigned=!1:typeof i.timestamp=="string"?n.timestamp=parseInt(i.timestamp,10):typeof i.timestamp=="number"?n.timestamp=i.timestamp:typeof i.timestamp=="object"&&(n.timestamp=new r.LongBits(i.timestamp.low>>>0,i.timestamp.high>>>0).toNumber())),i.superBatchGiftNum!=null&&(r.Long?(n.superBatchGiftNum=r.Long.fromValue(i.superBatchGiftNum)).unsigned=!1:typeof i.superBatchGiftNum=="string"?n.superBatchGiftNum=parseInt(i.superBatchGiftNum,10):typeof i.superBatchGiftNum=="number"?n.superBatchGiftNum=i.superBatchGiftNum:typeof i.superBatchGiftNum=="object"&&(n.superBatchGiftNum=new r.LongBits(i.superBatchGiftNum.low>>>0,i.superBatchGiftNum.high>>>0).toNumber())),i.batchComboId!=null&&(n.batchComboId=String(i.batchComboId)),i.comboResourcesId!=null&&(r.Long?(n.comboResourcesId=r.Long.fromValue(i.comboResourcesId)).unsigned=!1:typeof i.comboResourcesId=="string"?n.comboResourcesId=parseInt(i.comboResourcesId,10):typeof i.comboResourcesId=="number"?n.comboResourcesId=i.comboResourcesId:typeof i.comboResourcesId=="object"&&(n.comboResourcesId=new r.LongBits(i.comboResourcesId.low>>>0,i.comboResourcesId.high>>>0).toNumber())),i.comboTotalCoin!=null&&(r.Long?(n.comboTotalCoin=r.Long.fromValue(i.comboTotalCoin)).unsigned=!1:typeof i.comboTotalCoin=="string"?n.comboTotalCoin=parseInt(i.comboTotalCoin,10):typeof i.comboTotalCoin=="number"?n.comboTotalCoin=i.comboTotalCoin:typeof i.comboTotalCoin=="object"&&(n.comboTotalCoin=new r.LongBits(i.comboTotalCoin.low>>>0,i.comboTotalCoin.high>>>0).toNumber())),i.comboStayTime!=null&&(r.Long?(n.comboStayTime=r.Long.fromValue(i.comboStayTime)).unsigned=!1:typeof i.comboStayTime=="string"?n.comboStayTime=parseInt(i.comboStayTime,10):typeof i.comboStayTime=="number"?n.comboStayTime=i.comboStayTime:typeof i.comboStayTime=="object"&&(n.comboStayTime=new r.LongBits(i.comboStayTime.low>>>0,i.comboStayTime.high>>>0).toNumber())),i.magnification!=null&&(n.magnification=Number(i.magnification)),i.showBatchComboSend!=null&&(n.showBatchComboSend=!!i.showBatchComboSend),i.action!=null&&(n.action=String(i.action)),i.effectBlock!=null&&(r.Long?(n.effectBlock=r.Long.fromValue(i.effectBlock)).unsigned=!1:typeof i.effectBlock=="string"?n.effectBlock=parseInt(i.effectBlock,10):typeof i.effectBlock=="number"?n.effectBlock=i.effectBlock:typeof i.effectBlock=="object"&&(n.effectBlock=new r.LongBits(i.effectBlock.low>>>0,i.effectBlock.high>>>0).toNumber())),i.isSpecialBatch!=null&&(r.Long?(n.isSpecialBatch=r.Long.fromValue(i.isSpecialBatch)).unsigned=!1:typeof i.isSpecialBatch=="string"?n.isSpecialBatch=parseInt(i.isSpecialBatch,10):typeof i.isSpecialBatch=="number"?n.isSpecialBatch=i.isSpecialBatch:typeof i.isSpecialBatch=="object"&&(n.isSpecialBatch=new r.LongBits(i.isSpecialBatch.low>>>0,i.isSpecialBatch.high>>>0).toNumber())),i.floatScResourceId!=null&&(r.Long?(n.floatScResourceId=r.Long.fromValue(i.floatScResourceId)).unsigned=!1:typeof i.floatScResourceId=="string"?n.floatScResourceId=parseInt(i.floatScResourceId,10):typeof i.floatScResourceId=="number"?n.floatScResourceId=i.floatScResourceId:typeof i.floatScResourceId=="object"&&(n.floatScResourceId=new r.LongBits(i.floatScResourceId.low>>>0,i.floatScResourceId.high>>>0).toNumber())),i.tagImage!=null&&(n.tagImage=String(i.tagImage)),i.critProb!=null&&(r.Long?(n.critProb=r.Long.fromValue(i.critProb)).unsigned=!1:typeof i.critProb=="string"?n.critProb=parseInt(i.critProb,10):typeof i.critProb=="number"?n.critProb=i.critProb:typeof i.critProb=="object"&&(n.critProb=new r.LongBits(i.critProb.low>>>0,i.critProb.high>>>0).toNumber())),i.rcost!=null&&(r.Long?(n.rcost=r.Long.fromValue(i.rcost)).unsigned=!1:typeof i.rcost=="string"?n.rcost=parseInt(i.rcost,10):typeof i.rcost=="number"?n.rcost=i.rcost:typeof i.rcost=="object"&&(n.rcost=new r.LongBits(i.rcost.low>>>0,i.rcost.high>>>0).toNumber())),i.test!=null&&(r.Long?(n.test=r.Long.fromValue(i.test)).unsigned=!1:typeof i.test=="string"?n.test=parseInt(i.test,10):typeof i.test=="number"?n.test=i.test:typeof i.test=="object"&&(n.test=new r.LongBits(i.test.low>>>0,i.test.high>>>0).toNumber())),i.faceEffectType!=null&&(r.Long?(n.faceEffectType=r.Long.fromValue(i.faceEffectType)).unsigned=!1:typeof i.faceEffectType=="string"?n.faceEffectType=parseInt(i.faceEffectType,10):typeof i.faceEffectType=="number"?n.faceEffectType=i.faceEffectType:typeof i.faceEffectType=="object"&&(n.faceEffectType=new r.LongBits(i.faceEffectType.low>>>0,i.faceEffectType.high>>>0).toNumber())),i.faceEffectId!=null&&(r.Long?(n.faceEffectId=r.Long.fromValue(i.faceEffectId)).unsigned=!1:typeof i.faceEffectId=="string"?n.faceEffectId=parseInt(i.faceEffectId,10):typeof i.faceEffectId=="number"?n.faceEffectId=i.faceEffectId:typeof i.faceEffectId=="object"&&(n.faceEffectId=new r.LongBits(i.faceEffectId.low>>>0,i.faceEffectId.high>>>0).toNumber())),i.isNaming!=null&&(n.isNaming=!!i.isNaming),i.receiveUserInfo!=null){if(typeof i.receiveUserInfo!="object")throw TypeError(".bilibili.live.gift.v1.SendGiftBroadcast.GiftItem.receiveUserInfo: object expected");n.receiveUserInfo=u.bilibili.live.gift.v1.SendGiftBroadcast.ReceiveUserInfo.fromObject(i.receiveUserInfo)}if(i.isJoinReceiver!=null&&(n.isJoinReceiver=!!i.isJoinReceiver),i.bagGift!=null){if(typeof i.bagGift!="object")throw TypeError(".bilibili.live.gift.v1.SendGiftBroadcast.GiftItem.bagGift: object expected");n.bagGift=u.bilibili.live.gift.v1.SendGiftBroadcast.BagGiftInfo.fromObject(i.bagGift)}return n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.giftId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.giftId=n.longs===String?"0":0;if(o.giftName="",r.Long){let a=new r.Long(0,0,!1);o.num=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.num=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.demarcation=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.demarcation=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.price=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.price=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.discountPrice=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.discountPrice=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.totalCoin=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.totalCoin=n.longs===String?"0":0;if(o.coinType="",o.tid="",r.Long){let a=new r.Long(0,0,!1);o.timestamp=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.timestamp=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.superBatchGiftNum=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.superBatchGiftNum=n.longs===String?"0":0;if(o.batchComboId="",r.Long){let a=new r.Long(0,0,!1);o.comboResourcesId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.comboResourcesId=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.comboTotalCoin=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.comboTotalCoin=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.comboStayTime=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.comboStayTime=n.longs===String?"0":0;if(o.magnification=0,o.showBatchComboSend=!1,o.action="",r.Long){let a=new r.Long(0,0,!1);o.effectBlock=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.effectBlock=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.isSpecialBatch=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.isSpecialBatch=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.floatScResourceId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.floatScResourceId=n.longs===String?"0":0;if(o.tagImage="",r.Long){let a=new r.Long(0,0,!1);o.critProb=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.critProb=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.rcost=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.rcost=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.test=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.test=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.faceEffectType=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.faceEffectType=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.faceEffectId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.faceEffectId=n.longs===String?"0":0;o.isNaming=!1,o.receiveUserInfo=null,o.isJoinReceiver=!1,o.bagGift=null}return i.giftId!=null&&i.hasOwnProperty("giftId")&&(typeof i.giftId=="number"?o.giftId=n.longs===String?String(i.giftId):i.giftId:o.giftId=n.longs===String?r.Long.prototype.toString.call(i.giftId):n.longs===Number?new r.LongBits(i.giftId.low>>>0,i.giftId.high>>>0).toNumber():i.giftId),i.giftName!=null&&i.hasOwnProperty("giftName")&&(o.giftName=i.giftName),i.num!=null&&i.hasOwnProperty("num")&&(typeof i.num=="number"?o.num=n.longs===String?String(i.num):i.num:o.num=n.longs===String?r.Long.prototype.toString.call(i.num):n.longs===Number?new r.LongBits(i.num.low>>>0,i.num.high>>>0).toNumber():i.num),i.demarcation!=null&&i.hasOwnProperty("demarcation")&&(typeof i.demarcation=="number"?o.demarcation=n.longs===String?String(i.demarcation):i.demarcation:o.demarcation=n.longs===String?r.Long.prototype.toString.call(i.demarcation):n.longs===Number?new r.LongBits(i.demarcation.low>>>0,i.demarcation.high>>>0).toNumber():i.demarcation),i.price!=null&&i.hasOwnProperty("price")&&(typeof i.price=="number"?o.price=n.longs===String?String(i.price):i.price:o.price=n.longs===String?r.Long.prototype.toString.call(i.price):n.longs===Number?new r.LongBits(i.price.low>>>0,i.price.high>>>0).toNumber():i.price),i.discountPrice!=null&&i.hasOwnProperty("discountPrice")&&(typeof i.discountPrice=="number"?o.discountPrice=n.longs===String?String(i.discountPrice):i.discountPrice:o.discountPrice=n.longs===String?r.Long.prototype.toString.call(i.discountPrice):n.longs===Number?new r.LongBits(i.discountPrice.low>>>0,i.discountPrice.high>>>0).toNumber():i.discountPrice),i.totalCoin!=null&&i.hasOwnProperty("totalCoin")&&(typeof i.totalCoin=="number"?o.totalCoin=n.longs===String?String(i.totalCoin):i.totalCoin:o.totalCoin=n.longs===String?r.Long.prototype.toString.call(i.totalCoin):n.longs===Number?new r.LongBits(i.totalCoin.low>>>0,i.totalCoin.high>>>0).toNumber():i.totalCoin),i.coinType!=null&&i.hasOwnProperty("coinType")&&(o.coinType=i.coinType),i.tid!=null&&i.hasOwnProperty("tid")&&(o.tid=i.tid),i.timestamp!=null&&i.hasOwnProperty("timestamp")&&(typeof i.timestamp=="number"?o.timestamp=n.longs===String?String(i.timestamp):i.timestamp:o.timestamp=n.longs===String?r.Long.prototype.toString.call(i.timestamp):n.longs===Number?new r.LongBits(i.timestamp.low>>>0,i.timestamp.high>>>0).toNumber():i.timestamp),i.superBatchGiftNum!=null&&i.hasOwnProperty("superBatchGiftNum")&&(typeof i.superBatchGiftNum=="number"?o.superBatchGiftNum=n.longs===String?String(i.superBatchGiftNum):i.superBatchGiftNum:o.superBatchGiftNum=n.longs===String?r.Long.prototype.toString.call(i.superBatchGiftNum):n.longs===Number?new r.LongBits(i.superBatchGiftNum.low>>>0,i.superBatchGiftNum.high>>>0).toNumber():i.superBatchGiftNum),i.batchComboId!=null&&i.hasOwnProperty("batchComboId")&&(o.batchComboId=i.batchComboId),i.comboResourcesId!=null&&i.hasOwnProperty("comboResourcesId")&&(typeof i.comboResourcesId=="number"?o.comboResourcesId=n.longs===String?String(i.comboResourcesId):i.comboResourcesId:o.comboResourcesId=n.longs===String?r.Long.prototype.toString.call(i.comboResourcesId):n.longs===Number?new r.LongBits(i.comboResourcesId.low>>>0,i.comboResourcesId.high>>>0).toNumber():i.comboResourcesId),i.comboTotalCoin!=null&&i.hasOwnProperty("comboTotalCoin")&&(typeof i.comboTotalCoin=="number"?o.comboTotalCoin=n.longs===String?String(i.comboTotalCoin):i.comboTotalCoin:o.comboTotalCoin=n.longs===String?r.Long.prototype.toString.call(i.comboTotalCoin):n.longs===Number?new r.LongBits(i.comboTotalCoin.low>>>0,i.comboTotalCoin.high>>>0).toNumber():i.comboTotalCoin),i.comboStayTime!=null&&i.hasOwnProperty("comboStayTime")&&(typeof i.comboStayTime=="number"?o.comboStayTime=n.longs===String?String(i.comboStayTime):i.comboStayTime:o.comboStayTime=n.longs===String?r.Long.prototype.toString.call(i.comboStayTime):n.longs===Number?new r.LongBits(i.comboStayTime.low>>>0,i.comboStayTime.high>>>0).toNumber():i.comboStayTime),i.magnification!=null&&i.hasOwnProperty("magnification")&&(o.magnification=n.json&&!isFinite(i.magnification)?String(i.magnification):i.magnification),i.showBatchComboSend!=null&&i.hasOwnProperty("showBatchComboSend")&&(o.showBatchComboSend=i.showBatchComboSend),i.action!=null&&i.hasOwnProperty("action")&&(o.action=i.action),i.effectBlock!=null&&i.hasOwnProperty("effectBlock")&&(typeof i.effectBlock=="number"?o.effectBlock=n.longs===String?String(i.effectBlock):i.effectBlock:o.effectBlock=n.longs===String?r.Long.prototype.toString.call(i.effectBlock):n.longs===Number?new r.LongBits(i.effectBlock.low>>>0,i.effectBlock.high>>>0).toNumber():i.effectBlock),i.isSpecialBatch!=null&&i.hasOwnProperty("isSpecialBatch")&&(typeof i.isSpecialBatch=="number"?o.isSpecialBatch=n.longs===String?String(i.isSpecialBatch):i.isSpecialBatch:o.isSpecialBatch=n.longs===String?r.Long.prototype.toString.call(i.isSpecialBatch):n.longs===Number?new r.LongBits(i.isSpecialBatch.low>>>0,i.isSpecialBatch.high>>>0).toNumber():i.isSpecialBatch),i.floatScResourceId!=null&&i.hasOwnProperty("floatScResourceId")&&(typeof i.floatScResourceId=="number"?o.floatScResourceId=n.longs===String?String(i.floatScResourceId):i.floatScResourceId:o.floatScResourceId=n.longs===String?r.Long.prototype.toString.call(i.floatScResourceId):n.longs===Number?new r.LongBits(i.floatScResourceId.low>>>0,i.floatScResourceId.high>>>0).toNumber():i.floatScResourceId),i.tagImage!=null&&i.hasOwnProperty("tagImage")&&(o.tagImage=i.tagImage),i.critProb!=null&&i.hasOwnProperty("critProb")&&(typeof i.critProb=="number"?o.critProb=n.longs===String?String(i.critProb):i.critProb:o.critProb=n.longs===String?r.Long.prototype.toString.call(i.critProb):n.longs===Number?new r.LongBits(i.critProb.low>>>0,i.critProb.high>>>0).toNumber():i.critProb),i.rcost!=null&&i.hasOwnProperty("rcost")&&(typeof i.rcost=="number"?o.rcost=n.longs===String?String(i.rcost):i.rcost:o.rcost=n.longs===String?r.Long.prototype.toString.call(i.rcost):n.longs===Number?new r.LongBits(i.rcost.low>>>0,i.rcost.high>>>0).toNumber():i.rcost),i.test!=null&&i.hasOwnProperty("test")&&(typeof i.test=="number"?o.test=n.longs===String?String(i.test):i.test:o.test=n.longs===String?r.Long.prototype.toString.call(i.test):n.longs===Number?new r.LongBits(i.test.low>>>0,i.test.high>>>0).toNumber():i.test),i.faceEffectType!=null&&i.hasOwnProperty("faceEffectType")&&(typeof i.faceEffectType=="number"?o.faceEffectType=n.longs===String?String(i.faceEffectType):i.faceEffectType:o.faceEffectType=n.longs===String?r.Long.prototype.toString.call(i.faceEffectType):n.longs===Number?new r.LongBits(i.faceEffectType.low>>>0,i.faceEffectType.high>>>0).toNumber():i.faceEffectType),i.faceEffectId!=null&&i.hasOwnProperty("faceEffectId")&&(typeof i.faceEffectId=="number"?o.faceEffectId=n.longs===String?String(i.faceEffectId):i.faceEffectId:o.faceEffectId=n.longs===String?r.Long.prototype.toString.call(i.faceEffectId):n.longs===Number?new r.LongBits(i.faceEffectId.low>>>0,i.faceEffectId.high>>>0).toNumber():i.faceEffectId),i.isNaming!=null&&i.hasOwnProperty("isNaming")&&(o.isNaming=i.isNaming),i.receiveUserInfo!=null&&i.hasOwnProperty("receiveUserInfo")&&(o.receiveUserInfo=u.bilibili.live.gift.v1.SendGiftBroadcast.ReceiveUserInfo.toObject(i.receiveUserInfo,n)),i.isJoinReceiver!=null&&i.hasOwnProperty("isJoinReceiver")&&(o.isJoinReceiver=i.isJoinReceiver),i.bagGift!=null&&i.hasOwnProperty("bagGift")&&(o.bagGift=u.bilibili.live.gift.v1.SendGiftBroadcast.BagGiftInfo.toObject(i.bagGift,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.live.gift.v1.SendGiftBroadcast.GiftItem"},l}(),e.ReceiveUserInfo=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.uname=i.string();break}case 2:{a.uid=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.live.gift.v1.SendGiftBroadcast.ReceiveUserInfo)return i;let n=new u.bilibili.live.gift.v1.SendGiftBroadcast.ReceiveUserInfo;return i.uname!=null&&(n.uname=String(i.uname)),i.uid!=null&&(r.Long?(n.uid=r.Long.fromValue(i.uid)).unsigned=!1:typeof i.uid=="string"?n.uid=parseInt(i.uid,10):typeof i.uid=="number"?n.uid=i.uid:typeof i.uid=="object"&&(n.uid=new r.LongBits(i.uid.low>>>0,i.uid.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults)if(o.uname="",r.Long){let a=new r.Long(0,0,!1);o.uid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.uid=n.longs===String?"0":0;return i.uname!=null&&i.hasOwnProperty("uname")&&(o.uname=i.uname),i.uid!=null&&i.hasOwnProperty("uid")&&(typeof i.uid=="number"?o.uid=n.longs===String?String(i.uid):i.uid:o.uid=n.longs===String?r.Long.prototype.toString.call(i.uid):n.longs===Number?new r.LongBits(i.uid.low>>>0,i.uid.high>>>0).toNumber():i.uid),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.live.gift.v1.SendGiftBroadcast.ReceiveUserInfo"},l}(),e.SendMaster=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.uid=i.int64();break}case 2:{a.uname=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.live.gift.v1.SendGiftBroadcast.SendMaster)return i;let n=new u.bilibili.live.gift.v1.SendGiftBroadcast.SendMaster;return i.uid!=null&&(r.Long?(n.uid=r.Long.fromValue(i.uid)).unsigned=!1:typeof i.uid=="string"?n.uid=parseInt(i.uid,10):typeof i.uid=="number"?n.uid=i.uid:typeof i.uid=="object"&&(n.uid=new r.LongBits(i.uid.low>>>0,i.uid.high>>>0).toNumber())),i.uname!=null&&(n.uname=String(i.uname)),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.uid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.uid=n.longs===String?"0":0;o.uname=""}return i.uid!=null&&i.hasOwnProperty("uid")&&(typeof i.uid=="number"?o.uid=n.longs===String?String(i.uid):i.uid:o.uid=n.longs===String?r.Long.prototype.toString.call(i.uid):n.longs===Number?new r.LongBits(i.uid.low>>>0,i.uid.high>>>0).toNumber():i.uid),i.uname!=null&&i.hasOwnProperty("uname")&&(o.uname=i.uname),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.live.gift.v1.SendGiftBroadcast.SendMaster"},l}(),e.BlindGift=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.blindGiftConfigId=i.int64();break}case 2:{a.originalGiftId=i.int64();break}case 3:{a.originalGiftName=i.string();break}case 4:{a.from=i.int64();break}case 5:{a.giftAction=i.string();break}case 6:{a.originalGiftPrice=i.int64();break}case 7:{a.giftTipPrice=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.live.gift.v1.SendGiftBroadcast.BlindGift)return i;let n=new u.bilibili.live.gift.v1.SendGiftBroadcast.BlindGift;return i.blindGiftConfigId!=null&&(r.Long?(n.blindGiftConfigId=r.Long.fromValue(i.blindGiftConfigId)).unsigned=!1:typeof i.blindGiftConfigId=="string"?n.blindGiftConfigId=parseInt(i.blindGiftConfigId,10):typeof i.blindGiftConfigId=="number"?n.blindGiftConfigId=i.blindGiftConfigId:typeof i.blindGiftConfigId=="object"&&(n.blindGiftConfigId=new r.LongBits(i.blindGiftConfigId.low>>>0,i.blindGiftConfigId.high>>>0).toNumber())),i.originalGiftId!=null&&(r.Long?(n.originalGiftId=r.Long.fromValue(i.originalGiftId)).unsigned=!1:typeof i.originalGiftId=="string"?n.originalGiftId=parseInt(i.originalGiftId,10):typeof i.originalGiftId=="number"?n.originalGiftId=i.originalGiftId:typeof i.originalGiftId=="object"&&(n.originalGiftId=new r.LongBits(i.originalGiftId.low>>>0,i.originalGiftId.high>>>0).toNumber())),i.originalGiftName!=null&&(n.originalGiftName=String(i.originalGiftName)),i.from!=null&&(r.Long?(n.from=r.Long.fromValue(i.from)).unsigned=!1:typeof i.from=="string"?n.from=parseInt(i.from,10):typeof i.from=="number"?n.from=i.from:typeof i.from=="object"&&(n.from=new r.LongBits(i.from.low>>>0,i.from.high>>>0).toNumber())),i.giftAction!=null&&(n.giftAction=String(i.giftAction)),i.originalGiftPrice!=null&&(r.Long?(n.originalGiftPrice=r.Long.fromValue(i.originalGiftPrice)).unsigned=!1:typeof i.originalGiftPrice=="string"?n.originalGiftPrice=parseInt(i.originalGiftPrice,10):typeof i.originalGiftPrice=="number"?n.originalGiftPrice=i.originalGiftPrice:typeof i.originalGiftPrice=="object"&&(n.originalGiftPrice=new r.LongBits(i.originalGiftPrice.low>>>0,i.originalGiftPrice.high>>>0).toNumber())),i.giftTipPrice!=null&&(r.Long?(n.giftTipPrice=r.Long.fromValue(i.giftTipPrice)).unsigned=!1:typeof i.giftTipPrice=="string"?n.giftTipPrice=parseInt(i.giftTipPrice,10):typeof i.giftTipPrice=="number"?n.giftTipPrice=i.giftTipPrice:typeof i.giftTipPrice=="object"&&(n.giftTipPrice=new r.LongBits(i.giftTipPrice.low>>>0,i.giftTipPrice.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.blindGiftConfigId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.blindGiftConfigId=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.originalGiftId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.originalGiftId=n.longs===String?"0":0;if(o.originalGiftName="",r.Long){let a=new r.Long(0,0,!1);o.from=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.from=n.longs===String?"0":0;if(o.giftAction="",r.Long){let a=new r.Long(0,0,!1);o.originalGiftPrice=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.originalGiftPrice=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.giftTipPrice=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.giftTipPrice=n.longs===String?"0":0}return i.blindGiftConfigId!=null&&i.hasOwnProperty("blindGiftConfigId")&&(typeof i.blindGiftConfigId=="number"?o.blindGiftConfigId=n.longs===String?String(i.blindGiftConfigId):i.blindGiftConfigId:o.blindGiftConfigId=n.longs===String?r.Long.prototype.toString.call(i.blindGiftConfigId):n.longs===Number?new r.LongBits(i.blindGiftConfigId.low>>>0,i.blindGiftConfigId.high>>>0).toNumber():i.blindGiftConfigId),i.originalGiftId!=null&&i.hasOwnProperty("originalGiftId")&&(typeof i.originalGiftId=="number"?o.originalGiftId=n.longs===String?String(i.originalGiftId):i.originalGiftId:o.originalGiftId=n.longs===String?r.Long.prototype.toString.call(i.originalGiftId):n.longs===Number?new r.LongBits(i.originalGiftId.low>>>0,i.originalGiftId.high>>>0).toNumber():i.originalGiftId),i.originalGiftName!=null&&i.hasOwnProperty("originalGiftName")&&(o.originalGiftName=i.originalGiftName),i.from!=null&&i.hasOwnProperty("from")&&(typeof i.from=="number"?o.from=n.longs===String?String(i.from):i.from:o.from=n.longs===String?r.Long.prototype.toString.call(i.from):n.longs===Number?new r.LongBits(i.from.low>>>0,i.from.high>>>0).toNumber():i.from),i.giftAction!=null&&i.hasOwnProperty("giftAction")&&(o.giftAction=i.giftAction),i.originalGiftPrice!=null&&i.hasOwnProperty("originalGiftPrice")&&(typeof i.originalGiftPrice=="number"?o.originalGiftPrice=n.longs===String?String(i.originalGiftPrice):i.originalGiftPrice:o.originalGiftPrice=n.longs===String?r.Long.prototype.toString.call(i.originalGiftPrice):n.longs===Number?new r.LongBits(i.originalGiftPrice.low>>>0,i.originalGiftPrice.high>>>0).toNumber():i.originalGiftPrice),i.giftTipPrice!=null&&i.hasOwnProperty("giftTipPrice")&&(typeof i.giftTipPrice=="number"?o.giftTipPrice=n.longs===String?String(i.giftTipPrice):i.giftTipPrice:o.giftTipPrice=n.longs===String?r.Long.prototype.toString.call(i.giftTipPrice):n.longs===Number?new r.LongBits(i.giftTipPrice.low>>>0,i.giftTipPrice.high>>>0).toNumber():i.giftTipPrice),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.live.gift.v1.SendGiftBroadcast.BlindGift"},l}(),e.MedalInfo=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.targetId=i.int64();break}case 2:{a.special=i.string();break}case 3:{a.anchorUname=i.string();break}case 4:{a.anchorRoomid=i.int64();break}case 5:{a.medalLevel=i.int64();break}case 6:{a.medalName=i.string();break}case 7:{a.medalColor=i.int64();break}case 8:{a.medalColorStart=i.int64();break}case 9:{a.medalColorEnd=i.int64();break}case 10:{a.medalColorBorder=i.int64();break}case 11:{a.isLighted=i.int64();break}case 12:{a.guardLevel=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.live.gift.v1.SendGiftBroadcast.MedalInfo)return i;let n=new u.bilibili.live.gift.v1.SendGiftBroadcast.MedalInfo;return i.targetId!=null&&(r.Long?(n.targetId=r.Long.fromValue(i.targetId)).unsigned=!1:typeof i.targetId=="string"?n.targetId=parseInt(i.targetId,10):typeof i.targetId=="number"?n.targetId=i.targetId:typeof i.targetId=="object"&&(n.targetId=new r.LongBits(i.targetId.low>>>0,i.targetId.high>>>0).toNumber())),i.special!=null&&(n.special=String(i.special)),i.anchorUname!=null&&(n.anchorUname=String(i.anchorUname)),i.anchorRoomid!=null&&(r.Long?(n.anchorRoomid=r.Long.fromValue(i.anchorRoomid)).unsigned=!1:typeof i.anchorRoomid=="string"?n.anchorRoomid=parseInt(i.anchorRoomid,10):typeof i.anchorRoomid=="number"?n.anchorRoomid=i.anchorRoomid:typeof i.anchorRoomid=="object"&&(n.anchorRoomid=new r.LongBits(i.anchorRoomid.low>>>0,i.anchorRoomid.high>>>0).toNumber())),i.medalLevel!=null&&(r.Long?(n.medalLevel=r.Long.fromValue(i.medalLevel)).unsigned=!1:typeof i.medalLevel=="string"?n.medalLevel=parseInt(i.medalLevel,10):typeof i.medalLevel=="number"?n.medalLevel=i.medalLevel:typeof i.medalLevel=="object"&&(n.medalLevel=new r.LongBits(i.medalLevel.low>>>0,i.medalLevel.high>>>0).toNumber())),i.medalName!=null&&(n.medalName=String(i.medalName)),i.medalColor!=null&&(r.Long?(n.medalColor=r.Long.fromValue(i.medalColor)).unsigned=!1:typeof i.medalColor=="string"?n.medalColor=parseInt(i.medalColor,10):typeof i.medalColor=="number"?n.medalColor=i.medalColor:typeof i.medalColor=="object"&&(n.medalColor=new r.LongBits(i.medalColor.low>>>0,i.medalColor.high>>>0).toNumber())),i.medalColorStart!=null&&(r.Long?(n.medalColorStart=r.Long.fromValue(i.medalColorStart)).unsigned=!1:typeof i.medalColorStart=="string"?n.medalColorStart=parseInt(i.medalColorStart,10):typeof i.medalColorStart=="number"?n.medalColorStart=i.medalColorStart:typeof i.medalColorStart=="object"&&(n.medalColorStart=new r.LongBits(i.medalColorStart.low>>>0,i.medalColorStart.high>>>0).toNumber())),i.medalColorEnd!=null&&(r.Long?(n.medalColorEnd=r.Long.fromValue(i.medalColorEnd)).unsigned=!1:typeof i.medalColorEnd=="string"?n.medalColorEnd=parseInt(i.medalColorEnd,10):typeof i.medalColorEnd=="number"?n.medalColorEnd=i.medalColorEnd:typeof i.medalColorEnd=="object"&&(n.medalColorEnd=new r.LongBits(i.medalColorEnd.low>>>0,i.medalColorEnd.high>>>0).toNumber())),i.medalColorBorder!=null&&(r.Long?(n.medalColorBorder=r.Long.fromValue(i.medalColorBorder)).unsigned=!1:typeof i.medalColorBorder=="string"?n.medalColorBorder=parseInt(i.medalColorBorder,10):typeof i.medalColorBorder=="number"?n.medalColorBorder=i.medalColorBorder:typeof i.medalColorBorder=="object"&&(n.medalColorBorder=new r.LongBits(i.medalColorBorder.low>>>0,i.medalColorBorder.high>>>0).toNumber())),i.isLighted!=null&&(r.Long?(n.isLighted=r.Long.fromValue(i.isLighted)).unsigned=!1:typeof i.isLighted=="string"?n.isLighted=parseInt(i.isLighted,10):typeof i.isLighted=="number"?n.isLighted=i.isLighted:typeof i.isLighted=="object"&&(n.isLighted=new r.LongBits(i.isLighted.low>>>0,i.isLighted.high>>>0).toNumber())),i.guardLevel!=null&&(r.Long?(n.guardLevel=r.Long.fromValue(i.guardLevel)).unsigned=!1:typeof i.guardLevel=="string"?n.guardLevel=parseInt(i.guardLevel,10):typeof i.guardLevel=="number"?n.guardLevel=i.guardLevel:typeof i.guardLevel=="object"&&(n.guardLevel=new r.LongBits(i.guardLevel.low>>>0,i.guardLevel.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.targetId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.targetId=n.longs===String?"0":0;if(o.special="",o.anchorUname="",r.Long){let a=new r.Long(0,0,!1);o.anchorRoomid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.anchorRoomid=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.medalLevel=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.medalLevel=n.longs===String?"0":0;if(o.medalName="",r.Long){let a=new r.Long(0,0,!1);o.medalColor=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.medalColor=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.medalColorStart=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.medalColorStart=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.medalColorEnd=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.medalColorEnd=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.medalColorBorder=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.medalColorBorder=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.isLighted=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.isLighted=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.guardLevel=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.guardLevel=n.longs===String?"0":0}return i.targetId!=null&&i.hasOwnProperty("targetId")&&(typeof i.targetId=="number"?o.targetId=n.longs===String?String(i.targetId):i.targetId:o.targetId=n.longs===String?r.Long.prototype.toString.call(i.targetId):n.longs===Number?new r.LongBits(i.targetId.low>>>0,i.targetId.high>>>0).toNumber():i.targetId),i.special!=null&&i.hasOwnProperty("special")&&(o.special=i.special),i.anchorUname!=null&&i.hasOwnProperty("anchorUname")&&(o.anchorUname=i.anchorUname),i.anchorRoomid!=null&&i.hasOwnProperty("anchorRoomid")&&(typeof i.anchorRoomid=="number"?o.anchorRoomid=n.longs===String?String(i.anchorRoomid):i.anchorRoomid:o.anchorRoomid=n.longs===String?r.Long.prototype.toString.call(i.anchorRoomid):n.longs===Number?new r.LongBits(i.anchorRoomid.low>>>0,i.anchorRoomid.high>>>0).toNumber():i.anchorRoomid),i.medalLevel!=null&&i.hasOwnProperty("medalLevel")&&(typeof i.medalLevel=="number"?o.medalLevel=n.longs===String?String(i.medalLevel):i.medalLevel:o.medalLevel=n.longs===String?r.Long.prototype.toString.call(i.medalLevel):n.longs===Number?new r.LongBits(i.medalLevel.low>>>0,i.medalLevel.high>>>0).toNumber():i.medalLevel),i.medalName!=null&&i.hasOwnProperty("medalName")&&(o.medalName=i.medalName),i.medalColor!=null&&i.hasOwnProperty("medalColor")&&(typeof i.medalColor=="number"?o.medalColor=n.longs===String?String(i.medalColor):i.medalColor:o.medalColor=n.longs===String?r.Long.prototype.toString.call(i.medalColor):n.longs===Number?new r.LongBits(i.medalColor.low>>>0,i.medalColor.high>>>0).toNumber():i.medalColor),i.medalColorStart!=null&&i.hasOwnProperty("medalColorStart")&&(typeof i.medalColorStart=="number"?o.medalColorStart=n.longs===String?String(i.medalColorStart):i.medalColorStart:o.medalColorStart=n.longs===String?r.Long.prototype.toString.call(i.medalColorStart):n.longs===Number?new r.LongBits(i.medalColorStart.low>>>0,i.medalColorStart.high>>>0).toNumber():i.medalColorStart),i.medalColorEnd!=null&&i.hasOwnProperty("medalColorEnd")&&(typeof i.medalColorEnd=="number"?o.medalColorEnd=n.longs===String?String(i.medalColorEnd):i.medalColorEnd:o.medalColorEnd=n.longs===String?r.Long.prototype.toString.call(i.medalColorEnd):n.longs===Number?new r.LongBits(i.medalColorEnd.low>>>0,i.medalColorEnd.high>>>0).toNumber():i.medalColorEnd),i.medalColorBorder!=null&&i.hasOwnProperty("medalColorBorder")&&(typeof i.medalColorBorder=="number"?o.medalColorBorder=n.longs===String?String(i.medalColorBorder):i.medalColorBorder:o.medalColorBorder=n.longs===String?r.Long.prototype.toString.call(i.medalColorBorder):n.longs===Number?new r.LongBits(i.medalColorBorder.low>>>0,i.medalColorBorder.high>>>0).toNumber():i.medalColorBorder),i.isLighted!=null&&i.hasOwnProperty("isLighted")&&(typeof i.isLighted=="number"?o.isLighted=n.longs===String?String(i.isLighted):i.isLighted:o.isLighted=n.longs===String?r.Long.prototype.toString.call(i.isLighted):n.longs===Number?new r.LongBits(i.isLighted.low>>>0,i.isLighted.high>>>0).toNumber():i.isLighted),i.guardLevel!=null&&i.hasOwnProperty("guardLevel")&&(typeof i.guardLevel=="number"?o.guardLevel=n.longs===String?String(i.guardLevel):i.guardLevel:o.guardLevel=n.longs===String?r.Long.prototype.toString.call(i.guardLevel):n.longs===Number?new r.LongBits(i.guardLevel.low>>>0,i.guardLevel.high>>>0).toNumber():i.guardLevel),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.live.gift.v1.SendGiftBroadcast.MedalInfo"},l}(),e.BagGiftInfo=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.showPrice=i.int32();break}case 2:{a.priceForShow=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.live.gift.v1.SendGiftBroadcast.BagGiftInfo)return i;let n=new u.bilibili.live.gift.v1.SendGiftBroadcast.BagGiftInfo;return i.showPrice!=null&&(n.showPrice=i.showPrice|0),i.priceForShow!=null&&(r.Long?(n.priceForShow=r.Long.fromValue(i.priceForShow)).unsigned=!1:typeof i.priceForShow=="string"?n.priceForShow=parseInt(i.priceForShow,10):typeof i.priceForShow=="number"?n.priceForShow=i.priceForShow:typeof i.priceForShow=="object"&&(n.priceForShow=new r.LongBits(i.priceForShow.low>>>0,i.priceForShow.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults)if(o.showPrice=0,r.Long){let a=new r.Long(0,0,!1);o.priceForShow=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.priceForShow=n.longs===String?"0":0;return i.showPrice!=null&&i.hasOwnProperty("showPrice")&&(o.showPrice=i.showPrice),i.priceForShow!=null&&i.hasOwnProperty("priceForShow")&&(typeof i.priceForShow=="number"?o.priceForShow=n.longs===String?String(i.priceForShow):i.priceForShow:o.priceForShow=n.longs===String?r.Long.prototype.toString.call(i.priceForShow):n.longs===Number?new r.LongBits(i.priceForShow.low>>>0,i.priceForShow.high>>>0).toNumber():i.priceForShow),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.live.gift.v1.SendGiftBroadcast.BagGiftInfo"},l}(),e}(),c}(),p}(),d.xroomExtend=function(){let p={};return p.service=function(){let c={};return c.v1=function(){let e={};return e.Report=function(){function l(t,i,n){b.rpc.Service.call(this,t,i,n)}return(l.prototype=Object.create(b.rpc.Service.prototype)).constructor=l,l.create=function(i,n,o){return new this(i,n,o)},Object.defineProperty(l.prototype.sendReportInfo=function t(i,n){return this.rpcCall(t,u.bilibili.live.xroomExtend.service.v1.SendReportInfoReq,u.bilibili.live.xroomExtend.service.v1.SendReportInfoResp,i,n)},"name",{value:"SendReportInfo"}),l}(),e.SendReportInfoReq=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.roomId=i.int64();break}case 2:{a.reportTag=i.string();break}case 3:{a.reportReason=i.string();break}case 4:{a.picUrl=i.string();break}case 5:{a.playStream=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.live.xroomExtend.service.v1.SendReportInfoReq)return i;let n=new u.bilibili.live.xroomExtend.service.v1.SendReportInfoReq;return i.roomId!=null&&(r.Long?(n.roomId=r.Long.fromValue(i.roomId)).unsigned=!1:typeof i.roomId=="string"?n.roomId=parseInt(i.roomId,10):typeof i.roomId=="number"?n.roomId=i.roomId:typeof i.roomId=="object"&&(n.roomId=new r.LongBits(i.roomId.low>>>0,i.roomId.high>>>0).toNumber())),i.reportTag!=null&&(n.reportTag=String(i.reportTag)),i.reportReason!=null&&(n.reportReason=String(i.reportReason)),i.picUrl!=null&&(n.picUrl=String(i.picUrl)),i.playStream!=null&&(n.playStream=String(i.playStream)),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.roomId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.roomId=n.longs===String?"0":0;o.reportTag="",o.reportReason="",o.picUrl="",o.playStream=""}return i.roomId!=null&&i.hasOwnProperty("roomId")&&(typeof i.roomId=="number"?o.roomId=n.longs===String?String(i.roomId):i.roomId:o.roomId=n.longs===String?r.Long.prototype.toString.call(i.roomId):n.longs===Number?new r.LongBits(i.roomId.low>>>0,i.roomId.high>>>0).toNumber():i.roomId),i.reportTag!=null&&i.hasOwnProperty("reportTag")&&(o.reportTag=i.reportTag),i.reportReason!=null&&i.hasOwnProperty("reportReason")&&(o.reportReason=i.reportReason),i.picUrl!=null&&i.hasOwnProperty("picUrl")&&(o.picUrl=i.picUrl),i.playStream!=null&&i.hasOwnProperty("playStream")&&(o.playStream=i.playStream),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.live.xroomExtend.service.v1.SendReportInfoReq"},l}(),e.SendReportInfoResp=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.reportStatus=i.int32();break}case 2:{a.toast=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.live.xroomExtend.service.v1.SendReportInfoResp)return i;let n=new u.bilibili.live.xroomExtend.service.v1.SendReportInfoResp;switch(i.reportStatus){default:if(typeof i.reportStatus=="number"){n.reportStatus=i.reportStatus;break}break;case"REPORT_EXCEPTION":case 0:n.reportStatus=0;break;case"REPORT_SUCCESS":case 1:n.reportStatus=1;break}return i.toast!=null&&(n.toast=String(i.toast)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.reportStatus=n.enums===String?"REPORT_EXCEPTION":0,o.toast=""),i.reportStatus!=null&&i.hasOwnProperty("reportStatus")&&(o.reportStatus=n.enums===String?u.bilibili.live.xroomExtend.service.v1.ReportStatus[i.reportStatus]===void 0?i.reportStatus:u.bilibili.live.xroomExtend.service.v1.ReportStatus[i.reportStatus]:i.reportStatus),i.toast!=null&&i.hasOwnProperty("toast")&&(o.toast=i.toast),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.live.xroomExtend.service.v1.SendReportInfoResp"},l}(),e.ReportStatus=function(){let l={},t=Object.create(l);return t[l[0]="REPORT_EXCEPTION"]=0,t[l[1]="REPORT_SUCCESS"]=1,t}(),e}(),c}(),p}(),d}(),O.mall=function(){let d={};return d.tab3=function(){let p={};return p.dynamic=function(){let c={};return c.v1=function(){let e={};return e.Opus=function(){function l(t,i,n){b.rpc.Service.call(this,t,i,n)}return(l.prototype=Object.create(b.rpc.Service.prototype)).constructor=l,l.create=function(i,n,o){return new this(i,n,o)},Object.defineProperty(l.prototype.opusDetail=function t(i,n){return this.rpcCall(t,u.bilibili.mall.tab3.dynamic.v1.OpusDetailReq,u.bilibili.mall.tab3.dynamic.v1.OpusDetailResp,i,n)},"name",{value:"OpusDetail"}),l}(),e.OpusDetailReq=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.dynId=i.int64();break}case 2:{a.adExtra=i.string();break}case 3:{a.localTime=i.int32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.dynamic.v1.OpusDetailReq)return i;let n=new u.bilibili.mall.tab3.dynamic.v1.OpusDetailReq;return i.dynId!=null&&(r.Long?(n.dynId=r.Long.fromValue(i.dynId)).unsigned=!1:typeof i.dynId=="string"?n.dynId=parseInt(i.dynId,10):typeof i.dynId=="number"?n.dynId=i.dynId:typeof i.dynId=="object"&&(n.dynId=new r.LongBits(i.dynId.low>>>0,i.dynId.high>>>0).toNumber())),i.adExtra!=null&&(n.adExtra=String(i.adExtra)),i.localTime!=null&&(n.localTime=i.localTime|0),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.dynId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.dynId=n.longs===String?"0":0;o.adExtra="",o.localTime=0}return i.dynId!=null&&i.hasOwnProperty("dynId")&&(typeof i.dynId=="number"?o.dynId=n.longs===String?String(i.dynId):i.dynId:o.dynId=n.longs===String?r.Long.prototype.toString.call(i.dynId):n.longs===Number?new r.LongBits(i.dynId.low>>>0,i.dynId.high>>>0).toNumber():i.dynId),i.adExtra!=null&&i.hasOwnProperty("adExtra")&&(o.adExtra=i.adExtra),i.localTime!=null&&i.hasOwnProperty("localTime")&&(o.localTime=i.localTime),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.dynamic.v1.OpusDetailReq"},l}(),e.OpusDetailResp=function(){function l(t){if(this.itemsInfoVOS=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.opusItem=u.bilibili.app.dynamic.v2.OpusItem.decode(i,i.uint32());break}case 2:{a.title=u.bilibili.mall.tab3.dynamic.v1.TitleInfo.decode(i,i.uint32());break}case 3:{a.authorInfo=u.bilibili.mall.tab3.dynamic.v1.AuthorInfo.decode(i,i.uint32());break}case 4:{a.ipCity=u.bilibili.mall.tab3.dynamic.v1.IpCity.decode(i,i.uint32());break}case 5:{a.bottom=u.bilibili.mall.tab3.dynamic.v1.Bottom.decode(i,i.uint32());break}case 6:{a.itemInfoDescVO=u.bilibili.mall.tab3.dynamic.v1.ItemInfoDescVO.decode(i,i.uint32());break}case 7:{a.itemsInfoVOS&&a.itemsInfoVOS.length||(a.itemsInfoVOS=[]),a.itemsInfoVOS.push(u.bilibili.mall.tab3.dynamic.v1.ItemInfoDescVO.decode(i,i.uint32()));break}case 8:{a.pic=u.bilibili.mall.tab3.dynamic.v1.Pic.decode(i,i.uint32());break}case 9:{a.pubTime=i.int64();break}case 10:{a.topicInfo=u.bilibili.mall.tab3.dynamic.v1.TopicInfo.decode(i,i.uint32());break}case 11:{a.itemScene=i.string();break}case 12:{a.reserveInfo=u.bilibili.mall.tab3.dynamic.v1.ReserveInfo.decode(i,i.uint32());break}case 13:{a.shareInfo=u.bilibili.mall.tab3.dynamic.v1.ShareInfo.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.dynamic.v1.OpusDetailResp)return i;let n=new u.bilibili.mall.tab3.dynamic.v1.OpusDetailResp;if(i.opusItem!=null){if(typeof i.opusItem!="object")throw TypeError(".bilibili.mall.tab3.dynamic.v1.OpusDetailResp.opusItem: object expected");n.opusItem=u.bilibili.app.dynamic.v2.OpusItem.fromObject(i.opusItem)}if(i.title!=null){if(typeof i.title!="object")throw TypeError(".bilibili.mall.tab3.dynamic.v1.OpusDetailResp.title: object expected");n.title=u.bilibili.mall.tab3.dynamic.v1.TitleInfo.fromObject(i.title)}if(i.authorInfo!=null){if(typeof i.authorInfo!="object")throw TypeError(".bilibili.mall.tab3.dynamic.v1.OpusDetailResp.authorInfo: object expected");n.authorInfo=u.bilibili.mall.tab3.dynamic.v1.AuthorInfo.fromObject(i.authorInfo)}if(i.ipCity!=null){if(typeof i.ipCity!="object")throw TypeError(".bilibili.mall.tab3.dynamic.v1.OpusDetailResp.ipCity: object expected");n.ipCity=u.bilibili.mall.tab3.dynamic.v1.IpCity.fromObject(i.ipCity)}if(i.bottom!=null){if(typeof i.bottom!="object")throw TypeError(".bilibili.mall.tab3.dynamic.v1.OpusDetailResp.bottom: object expected");n.bottom=u.bilibili.mall.tab3.dynamic.v1.Bottom.fromObject(i.bottom)}if(i.itemInfoDescVO!=null){if(typeof i.itemInfoDescVO!="object")throw TypeError(".bilibili.mall.tab3.dynamic.v1.OpusDetailResp.itemInfoDescVO: object expected");n.itemInfoDescVO=u.bilibili.mall.tab3.dynamic.v1.ItemInfoDescVO.fromObject(i.itemInfoDescVO)}if(i.itemsInfoVOS){if(!Array.isArray(i.itemsInfoVOS))throw TypeError(".bilibili.mall.tab3.dynamic.v1.OpusDetailResp.itemsInfoVOS: array expected");n.itemsInfoVOS=[];for(let o=0;o>>0,i.pubTime.high>>>0).toNumber())),i.topicInfo!=null){if(typeof i.topicInfo!="object")throw TypeError(".bilibili.mall.tab3.dynamic.v1.OpusDetailResp.topicInfo: object expected");n.topicInfo=u.bilibili.mall.tab3.dynamic.v1.TopicInfo.fromObject(i.topicInfo)}if(i.itemScene!=null&&(n.itemScene=String(i.itemScene)),i.reserveInfo!=null){if(typeof i.reserveInfo!="object")throw TypeError(".bilibili.mall.tab3.dynamic.v1.OpusDetailResp.reserveInfo: object expected");n.reserveInfo=u.bilibili.mall.tab3.dynamic.v1.ReserveInfo.fromObject(i.reserveInfo)}if(i.shareInfo!=null){if(typeof i.shareInfo!="object")throw TypeError(".bilibili.mall.tab3.dynamic.v1.OpusDetailResp.shareInfo: object expected");n.shareInfo=u.bilibili.mall.tab3.dynamic.v1.ShareInfo.fromObject(i.shareInfo)}return n},l.toObject=function(i,n){n||(n={});let o={};if((n.arrays||n.defaults)&&(o.itemsInfoVOS=[]),n.defaults){if(o.opusItem=null,o.title=null,o.authorInfo=null,o.ipCity=null,o.bottom=null,o.itemInfoDescVO=null,o.pic=null,r.Long){let a=new r.Long(0,0,!1);o.pubTime=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.pubTime=n.longs===String?"0":0;o.topicInfo=null,o.itemScene="",o.reserveInfo=null,o.shareInfo=null}if(i.opusItem!=null&&i.hasOwnProperty("opusItem")&&(o.opusItem=u.bilibili.app.dynamic.v2.OpusItem.toObject(i.opusItem,n)),i.title!=null&&i.hasOwnProperty("title")&&(o.title=u.bilibili.mall.tab3.dynamic.v1.TitleInfo.toObject(i.title,n)),i.authorInfo!=null&&i.hasOwnProperty("authorInfo")&&(o.authorInfo=u.bilibili.mall.tab3.dynamic.v1.AuthorInfo.toObject(i.authorInfo,n)),i.ipCity!=null&&i.hasOwnProperty("ipCity")&&(o.ipCity=u.bilibili.mall.tab3.dynamic.v1.IpCity.toObject(i.ipCity,n)),i.bottom!=null&&i.hasOwnProperty("bottom")&&(o.bottom=u.bilibili.mall.tab3.dynamic.v1.Bottom.toObject(i.bottom,n)),i.itemInfoDescVO!=null&&i.hasOwnProperty("itemInfoDescVO")&&(o.itemInfoDescVO=u.bilibili.mall.tab3.dynamic.v1.ItemInfoDescVO.toObject(i.itemInfoDescVO,n)),i.itemsInfoVOS&&i.itemsInfoVOS.length){o.itemsInfoVOS=[];for(let a=0;a>>0,i.pubTime.high>>>0).toNumber():i.pubTime),i.topicInfo!=null&&i.hasOwnProperty("topicInfo")&&(o.topicInfo=u.bilibili.mall.tab3.dynamic.v1.TopicInfo.toObject(i.topicInfo,n)),i.itemScene!=null&&i.hasOwnProperty("itemScene")&&(o.itemScene=i.itemScene),i.reserveInfo!=null&&i.hasOwnProperty("reserveInfo")&&(o.reserveInfo=u.bilibili.mall.tab3.dynamic.v1.ReserveInfo.toObject(i.reserveInfo,n)),i.shareInfo!=null&&i.hasOwnProperty("shareInfo")&&(o.shareInfo=u.bilibili.mall.tab3.dynamic.v1.ShareInfo.toObject(i.shareInfo,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.dynamic.v1.OpusDetailResp"},l}(),e.ShareInfo=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.shareId=i.string();break}case 2:{a.shareOrigin=i.string();break}case 3:{a.oid=i.int64();break}case 4:{a.title=i.string();break}case 5:{a.subTitle=i.string();break}case 6:{a.imgUrl=i.string();break}case 7:{a.linkUrl=i.string();break}case 8:{a.share=i.bool();break}case 9:{a.outLinkUrl=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.dynamic.v1.ShareInfo)return i;let n=new u.bilibili.mall.tab3.dynamic.v1.ShareInfo;return i.shareId!=null&&(n.shareId=String(i.shareId)),i.shareOrigin!=null&&(n.shareOrigin=String(i.shareOrigin)),i.oid!=null&&(r.Long?(n.oid=r.Long.fromValue(i.oid)).unsigned=!1:typeof i.oid=="string"?n.oid=parseInt(i.oid,10):typeof i.oid=="number"?n.oid=i.oid:typeof i.oid=="object"&&(n.oid=new r.LongBits(i.oid.low>>>0,i.oid.high>>>0).toNumber())),i.title!=null&&(n.title=String(i.title)),i.subTitle!=null&&(n.subTitle=String(i.subTitle)),i.imgUrl!=null&&(n.imgUrl=String(i.imgUrl)),i.linkUrl!=null&&(n.linkUrl=String(i.linkUrl)),i.share!=null&&(n.share=!!i.share),i.outLinkUrl!=null&&(n.outLinkUrl=String(i.outLinkUrl)),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(o.shareId="",o.shareOrigin="",r.Long){let a=new r.Long(0,0,!1);o.oid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.oid=n.longs===String?"0":0;o.title="",o.subTitle="",o.imgUrl="",o.linkUrl="",o.share=!1,o.outLinkUrl=""}return i.shareId!=null&&i.hasOwnProperty("shareId")&&(o.shareId=i.shareId),i.shareOrigin!=null&&i.hasOwnProperty("shareOrigin")&&(o.shareOrigin=i.shareOrigin),i.oid!=null&&i.hasOwnProperty("oid")&&(typeof i.oid=="number"?o.oid=n.longs===String?String(i.oid):i.oid:o.oid=n.longs===String?r.Long.prototype.toString.call(i.oid):n.longs===Number?new r.LongBits(i.oid.low>>>0,i.oid.high>>>0).toNumber():i.oid),i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.subTitle!=null&&i.hasOwnProperty("subTitle")&&(o.subTitle=i.subTitle),i.imgUrl!=null&&i.hasOwnProperty("imgUrl")&&(o.imgUrl=i.imgUrl),i.linkUrl!=null&&i.hasOwnProperty("linkUrl")&&(o.linkUrl=i.linkUrl),i.share!=null&&i.hasOwnProperty("share")&&(o.share=i.share),i.outLinkUrl!=null&&i.hasOwnProperty("outLinkUrl")&&(o.outLinkUrl=i.outLinkUrl),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.dynamic.v1.ShareInfo"},l}(),e.TopicInfo=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.topicId=i.int64();break}case 2:{a.topicName=i.string();break}case 3:{a.jumpUrl=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.dynamic.v1.TopicInfo)return i;let n=new u.bilibili.mall.tab3.dynamic.v1.TopicInfo;return i.topicId!=null&&(r.Long?(n.topicId=r.Long.fromValue(i.topicId)).unsigned=!1:typeof i.topicId=="string"?n.topicId=parseInt(i.topicId,10):typeof i.topicId=="number"?n.topicId=i.topicId:typeof i.topicId=="object"&&(n.topicId=new r.LongBits(i.topicId.low>>>0,i.topicId.high>>>0).toNumber())),i.topicName!=null&&(n.topicName=String(i.topicName)),i.jumpUrl!=null&&(n.jumpUrl=String(i.jumpUrl)),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.topicId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.topicId=n.longs===String?"0":0;o.topicName="",o.jumpUrl=""}return i.topicId!=null&&i.hasOwnProperty("topicId")&&(typeof i.topicId=="number"?o.topicId=n.longs===String?String(i.topicId):i.topicId:o.topicId=n.longs===String?r.Long.prototype.toString.call(i.topicId):n.longs===Number?new r.LongBits(i.topicId.low>>>0,i.topicId.high>>>0).toNumber():i.topicId),i.topicName!=null&&i.hasOwnProperty("topicName")&&(o.topicName=i.topicName),i.jumpUrl!=null&&i.hasOwnProperty("jumpUrl")&&(o.jumpUrl=i.jumpUrl),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.dynamic.v1.TopicInfo"},l}(),e.TitleInfo=function(){function l(t){if(this.modules=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.modules&&a.modules.length||(a.modules=[]),a.modules.push(u.bilibili.app.dynamic.v2.Module.decode(i,i.uint32()));break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.dynamic.v1.TitleInfo)return i;let n=new u.bilibili.mall.tab3.dynamic.v1.TitleInfo;if(i.modules){if(!Array.isArray(i.modules))throw TypeError(".bilibili.mall.tab3.dynamic.v1.TitleInfo.modules: array expected");n.modules=[];for(let o=0;o>>3){case 1:{a.face=i.string();break}case 2:{a.mid=i.int64();break}case 3:{a.name=i.string();break}case 4:{a.relationInfo=u.bilibili.mall.tab3.dynamic.v1.RelationInfo.decode(i,i.uint32());break}case 5:{a.liveInfo=u.bilibili.mall.tab3.dynamic.v1.LiveInfo.decode(i,i.uint32());break}case 6:{a.link=i.string();break}case 7:{a.rightIcon=i.string();break}case 8:{a.rightIconDark=i.string();break}case 9:{a.nicknameColor=i.string();break}case 10:{a.icon=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.dynamic.v1.AuthorInfo)return i;let n=new u.bilibili.mall.tab3.dynamic.v1.AuthorInfo;if(i.face!=null&&(n.face=String(i.face)),i.mid!=null&&(r.Long?(n.mid=r.Long.fromValue(i.mid)).unsigned=!1:typeof i.mid=="string"?n.mid=parseInt(i.mid,10):typeof i.mid=="number"?n.mid=i.mid:typeof i.mid=="object"&&(n.mid=new r.LongBits(i.mid.low>>>0,i.mid.high>>>0).toNumber())),i.name!=null&&(n.name=String(i.name)),i.relationInfo!=null){if(typeof i.relationInfo!="object")throw TypeError(".bilibili.mall.tab3.dynamic.v1.AuthorInfo.relationInfo: object expected");n.relationInfo=u.bilibili.mall.tab3.dynamic.v1.RelationInfo.fromObject(i.relationInfo)}if(i.liveInfo!=null){if(typeof i.liveInfo!="object")throw TypeError(".bilibili.mall.tab3.dynamic.v1.AuthorInfo.liveInfo: object expected");n.liveInfo=u.bilibili.mall.tab3.dynamic.v1.LiveInfo.fromObject(i.liveInfo)}return i.link!=null&&(n.link=String(i.link)),i.rightIcon!=null&&(n.rightIcon=String(i.rightIcon)),i.rightIconDark!=null&&(n.rightIconDark=String(i.rightIconDark)),i.nicknameColor!=null&&(n.nicknameColor=String(i.nicknameColor)),i.icon!=null&&(n.icon=String(i.icon)),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(o.face="",r.Long){let a=new r.Long(0,0,!1);o.mid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.mid=n.longs===String?"0":0;o.name="",o.relationInfo=null,o.liveInfo=null,o.link="",o.rightIcon="",o.rightIconDark="",o.nicknameColor="",o.icon=""}return i.face!=null&&i.hasOwnProperty("face")&&(o.face=i.face),i.mid!=null&&i.hasOwnProperty("mid")&&(typeof i.mid=="number"?o.mid=n.longs===String?String(i.mid):i.mid:o.mid=n.longs===String?r.Long.prototype.toString.call(i.mid):n.longs===Number?new r.LongBits(i.mid.low>>>0,i.mid.high>>>0).toNumber():i.mid),i.name!=null&&i.hasOwnProperty("name")&&(o.name=i.name),i.relationInfo!=null&&i.hasOwnProperty("relationInfo")&&(o.relationInfo=u.bilibili.mall.tab3.dynamic.v1.RelationInfo.toObject(i.relationInfo,n)),i.liveInfo!=null&&i.hasOwnProperty("liveInfo")&&(o.liveInfo=u.bilibili.mall.tab3.dynamic.v1.LiveInfo.toObject(i.liveInfo,n)),i.link!=null&&i.hasOwnProperty("link")&&(o.link=i.link),i.rightIcon!=null&&i.hasOwnProperty("rightIcon")&&(o.rightIcon=i.rightIcon),i.rightIconDark!=null&&i.hasOwnProperty("rightIconDark")&&(o.rightIconDark=i.rightIconDark),i.nicknameColor!=null&&i.hasOwnProperty("nicknameColor")&&(o.nicknameColor=i.nicknameColor),i.icon!=null&&i.hasOwnProperty("icon")&&(o.icon=i.icon),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.dynamic.v1.AuthorInfo"},l}(),e.RelationInfo=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.status=i.int32();break}case 2:{a.icon=i.string();break}case 3:{a.darkIcon=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.dynamic.v1.RelationInfo)return i;let n=new u.bilibili.mall.tab3.dynamic.v1.RelationInfo;return i.status!=null&&(n.status=i.status|0),i.icon!=null&&(n.icon=String(i.icon)),i.darkIcon!=null&&(n.darkIcon=String(i.darkIcon)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.status=0,o.icon="",o.darkIcon=""),i.status!=null&&i.hasOwnProperty("status")&&(o.status=i.status),i.icon!=null&&i.hasOwnProperty("icon")&&(o.icon=i.icon),i.darkIcon!=null&&i.hasOwnProperty("darkIcon")&&(o.darkIcon=i.darkIcon),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.dynamic.v1.RelationInfo"},l}(),e.LiveInfo=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.status=i.int32();break}case 2:{a.icon=i.string();break}case 3:{a.darkIcon=i.string();break}case 4:{a.liveLink=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.dynamic.v1.LiveInfo)return i;let n=new u.bilibili.mall.tab3.dynamic.v1.LiveInfo;return i.status!=null&&(n.status=i.status|0),i.icon!=null&&(n.icon=String(i.icon)),i.darkIcon!=null&&(n.darkIcon=String(i.darkIcon)),i.liveLink!=null&&(n.liveLink=String(i.liveLink)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.status=0,o.icon="",o.darkIcon="",o.liveLink=""),i.status!=null&&i.hasOwnProperty("status")&&(o.status=i.status),i.icon!=null&&i.hasOwnProperty("icon")&&(o.icon=i.icon),i.darkIcon!=null&&i.hasOwnProperty("darkIcon")&&(o.darkIcon=i.darkIcon),i.liveLink!=null&&i.hasOwnProperty("liveLink")&&(o.liveLink=i.liveLink),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.dynamic.v1.LiveInfo"},l}(),e.IpCity=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.moduleCopyright=u.bilibili.app.dynamic.v2.ModuleCopyright.decode(i,i.uint32());break}case 2:{a.moduleType=i.int32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.dynamic.v1.IpCity)return i;let n=new u.bilibili.mall.tab3.dynamic.v1.IpCity;if(i.moduleCopyright!=null){if(typeof i.moduleCopyright!="object")throw TypeError(".bilibili.mall.tab3.dynamic.v1.IpCity.moduleCopyright: object expected");n.moduleCopyright=u.bilibili.app.dynamic.v2.ModuleCopyright.fromObject(i.moduleCopyright)}switch(i.moduleType){default:if(typeof i.moduleType=="number"){n.moduleType=i.moduleType;break}break;case"module_none":case 0:n.moduleType=0;break;case"module_author":case 1:n.moduleType=1;break;case"module_dispute":case 2:n.moduleType=2;break;case"module_desc":case 3:n.moduleType=3;break;case"module_dynamic":case 4:n.moduleType=4;break;case"module_forward":case 5:n.moduleType=5;break;case"module_likeUser":case 6:n.moduleType=6;break;case"module_extend":case 7:n.moduleType=7;break;case"module_additional":case 8:n.moduleType=8;break;case"module_stat":case 9:n.moduleType=9;break;case"module_fold":case 10:n.moduleType=10;break;case"module_comment":case 11:n.moduleType=11;break;case"module_interaction":case 12:n.moduleType=12;break;case"module_author_forward":case 13:n.moduleType=13;break;case"module_ad":case 14:n.moduleType=14;break;case"module_banner":case 15:n.moduleType=15;break;case"module_item_null":case 16:n.moduleType=16;break;case"module_share_info":case 17:n.moduleType=17;break;case"module_recommend":case 18:n.moduleType=18;break;case"module_stat_forward":case 19:n.moduleType=19;break;case"module_top":case 20:n.moduleType=20;break;case"module_bottom":case 21:n.moduleType=21;break;case"module_story":case 22:n.moduleType=22;break;case"module_topic":case 23:n.moduleType=23;break;case"module_topic_details_ext":case 24:n.moduleType=24;break;case"module_top_tag":case 25:n.moduleType=25;break;case"module_topic_brief":case 26:n.moduleType=26;break;case"module_title":case 27:n.moduleType=27;break;case"module_button":case 28:n.moduleType=28;break;case"module_notice":case 29:n.moduleType=29;break;case"module_opus_summary":case 30:n.moduleType=30;break;case"module_copyright":case 31:n.moduleType=31;break;case"module_paragraph":case 32:n.moduleType=32;break;case"module_blocked":case 33:n.moduleType=33;break;case"module_text_notice":case 34:n.moduleType=34;break;case"module_opus_collection":case 35:n.moduleType=35;break;case"module_onetime_notice":case 36:n.moduleType=36;break}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.moduleCopyright=null,o.moduleType=n.enums===String?"module_none":0),i.moduleCopyright!=null&&i.hasOwnProperty("moduleCopyright")&&(o.moduleCopyright=u.bilibili.app.dynamic.v2.ModuleCopyright.toObject(i.moduleCopyright,n)),i.moduleType!=null&&i.hasOwnProperty("moduleType")&&(o.moduleType=n.enums===String?u.bilibili.app.dynamic.v2.DynModuleType[i.moduleType]===void 0?i.moduleType:u.bilibili.app.dynamic.v2.DynModuleType[i.moduleType]:i.moduleType),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.dynamic.v1.IpCity"},l}(),e.Bottom=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.moduleButtom=u.bilibili.app.dynamic.v2.ModuleButtom.decode(i,i.uint32());break}case 2:{a.moduleType=i.int32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.dynamic.v1.Bottom)return i;let n=new u.bilibili.mall.tab3.dynamic.v1.Bottom;if(i.moduleButtom!=null){if(typeof i.moduleButtom!="object")throw TypeError(".bilibili.mall.tab3.dynamic.v1.Bottom.moduleButtom: object expected");n.moduleButtom=u.bilibili.app.dynamic.v2.ModuleButtom.fromObject(i.moduleButtom)}switch(i.moduleType){default:if(typeof i.moduleType=="number"){n.moduleType=i.moduleType;break}break;case"module_none":case 0:n.moduleType=0;break;case"module_author":case 1:n.moduleType=1;break;case"module_dispute":case 2:n.moduleType=2;break;case"module_desc":case 3:n.moduleType=3;break;case"module_dynamic":case 4:n.moduleType=4;break;case"module_forward":case 5:n.moduleType=5;break;case"module_likeUser":case 6:n.moduleType=6;break;case"module_extend":case 7:n.moduleType=7;break;case"module_additional":case 8:n.moduleType=8;break;case"module_stat":case 9:n.moduleType=9;break;case"module_fold":case 10:n.moduleType=10;break;case"module_comment":case 11:n.moduleType=11;break;case"module_interaction":case 12:n.moduleType=12;break;case"module_author_forward":case 13:n.moduleType=13;break;case"module_ad":case 14:n.moduleType=14;break;case"module_banner":case 15:n.moduleType=15;break;case"module_item_null":case 16:n.moduleType=16;break;case"module_share_info":case 17:n.moduleType=17;break;case"module_recommend":case 18:n.moduleType=18;break;case"module_stat_forward":case 19:n.moduleType=19;break;case"module_top":case 20:n.moduleType=20;break;case"module_bottom":case 21:n.moduleType=21;break;case"module_story":case 22:n.moduleType=22;break;case"module_topic":case 23:n.moduleType=23;break;case"module_topic_details_ext":case 24:n.moduleType=24;break;case"module_top_tag":case 25:n.moduleType=25;break;case"module_topic_brief":case 26:n.moduleType=26;break;case"module_title":case 27:n.moduleType=27;break;case"module_button":case 28:n.moduleType=28;break;case"module_notice":case 29:n.moduleType=29;break;case"module_opus_summary":case 30:n.moduleType=30;break;case"module_copyright":case 31:n.moduleType=31;break;case"module_paragraph":case 32:n.moduleType=32;break;case"module_blocked":case 33:n.moduleType=33;break;case"module_text_notice":case 34:n.moduleType=34;break;case"module_opus_collection":case 35:n.moduleType=35;break;case"module_onetime_notice":case 36:n.moduleType=36;break}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.moduleButtom=null,o.moduleType=n.enums===String?"module_none":0),i.moduleButtom!=null&&i.hasOwnProperty("moduleButtom")&&(o.moduleButtom=u.bilibili.app.dynamic.v2.ModuleButtom.toObject(i.moduleButtom,n)),i.moduleType!=null&&i.hasOwnProperty("moduleType")&&(o.moduleType=n.enums===String?u.bilibili.app.dynamic.v2.DynModuleType[i.moduleType]===void 0?i.moduleType:u.bilibili.app.dynamic.v2.DynModuleType[i.moduleType]:i.moduleType),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.dynamic.v1.Bottom"},l}(),e.ItemInfoDescVO=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.itemsId=i.int64();break}case 2:{a.name=i.string();break}case 3:{a.img=i.string();break}case 4:{a.price=i.string();break}case 5:{a.priceSymbol=i.string();break}case 6:{a.cache=i.string();break}case 7:{a.sameKindDesc=i.string();break}case 8:{a.count=i.int32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.dynamic.v1.ItemInfoDescVO)return i;let n=new u.bilibili.mall.tab3.dynamic.v1.ItemInfoDescVO;return i.itemsId!=null&&(r.Long?(n.itemsId=r.Long.fromValue(i.itemsId)).unsigned=!1:typeof i.itemsId=="string"?n.itemsId=parseInt(i.itemsId,10):typeof i.itemsId=="number"?n.itemsId=i.itemsId:typeof i.itemsId=="object"&&(n.itemsId=new r.LongBits(i.itemsId.low>>>0,i.itemsId.high>>>0).toNumber())),i.name!=null&&(n.name=String(i.name)),i.img!=null&&(n.img=String(i.img)),i.price!=null&&(n.price=String(i.price)),i.priceSymbol!=null&&(n.priceSymbol=String(i.priceSymbol)),i.cache!=null&&(n.cache=String(i.cache)),i.sameKindDesc!=null&&(n.sameKindDesc=String(i.sameKindDesc)),i.count!=null&&(n.count=i.count|0),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.itemsId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.itemsId=n.longs===String?"0":0;o.name="",o.img="",o.price="",o.priceSymbol="",o.cache="",o.sameKindDesc="",o.count=0}return i.itemsId!=null&&i.hasOwnProperty("itemsId")&&(typeof i.itemsId=="number"?o.itemsId=n.longs===String?String(i.itemsId):i.itemsId:o.itemsId=n.longs===String?r.Long.prototype.toString.call(i.itemsId):n.longs===Number?new r.LongBits(i.itemsId.low>>>0,i.itemsId.high>>>0).toNumber():i.itemsId),i.name!=null&&i.hasOwnProperty("name")&&(o.name=i.name),i.img!=null&&i.hasOwnProperty("img")&&(o.img=i.img),i.price!=null&&i.hasOwnProperty("price")&&(o.price=i.price),i.priceSymbol!=null&&i.hasOwnProperty("priceSymbol")&&(o.priceSymbol=i.priceSymbol),i.cache!=null&&i.hasOwnProperty("cache")&&(o.cache=i.cache),i.sameKindDesc!=null&&i.hasOwnProperty("sameKindDesc")&&(o.sameKindDesc=i.sameKindDesc),i.count!=null&&i.hasOwnProperty("count")&&(o.count=i.count),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.dynamic.v1.ItemInfoDescVO"},l}(),e.Pic=function(){function l(t){if(this.pics=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.pics&&a.pics.length||(a.pics=[]),a.pics.push(u.bilibili.mall.tab3.dynamic.v1.PicInfo.decode(i,i.uint32()));break}case 2:{a.style=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.dynamic.v1.Pic)return i;let n=new u.bilibili.mall.tab3.dynamic.v1.Pic;if(i.pics){if(!Array.isArray(i.pics))throw TypeError(".bilibili.mall.tab3.dynamic.v1.Pic.pics: array expected");n.pics=[];for(let o=0;o>>3){case 1:{a.url=i.string();break}case 2:{a.width=i.double();break}case 3:{a.height=i.double();break}case 4:{a.size=i.double();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.dynamic.v1.PicInfo)return i;let n=new u.bilibili.mall.tab3.dynamic.v1.PicInfo;return i.url!=null&&(n.url=String(i.url)),i.width!=null&&(n.width=Number(i.width)),i.height!=null&&(n.height=Number(i.height)),i.size!=null&&(n.size=Number(i.size)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.url="",o.width=0,o.height=0,o.size=0),i.url!=null&&i.hasOwnProperty("url")&&(o.url=i.url),i.width!=null&&i.hasOwnProperty("width")&&(o.width=n.json&&!isFinite(i.width)?String(i.width):i.width),i.height!=null&&i.hasOwnProperty("height")&&(o.height=n.json&&!isFinite(i.height)?String(i.height):i.height),i.size!=null&&i.hasOwnProperty("size")&&(o.size=n.json&&!isFinite(i.size)?String(i.size):i.size),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.dynamic.v1.PicInfo"},l}(),e.ReserveInfo=function(){function l(t){if(this.stateMap={},t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.sid=i.int64();break}case 2:{a.title=i.string();break}case 3:{a.total=i.int64();break}case 4:{a.totalStr=i.string();break}case 5:{a.liveTimeCapsule=i.string();break}case 6:{a.liveTimeFloat=i.string();break}case 7:{a.lotteryType=i.int32();break}case 8:{a.prizeInfo=u.bilibili.mall.tab3.dynamic.v1.UpActReserveRelationPrizeInfo.decode(i,i.uint32());break}case 9:{a.upNameStr=i.string();break}case 10:{a.avatar=i.string();break}case 11:{a.isFollow=i.int64();break}case 12:{a.desc=i.string();break}case 13:{a.livePlanStartTime=i.int64();break}case 14:{a.state=i.int32();break}case 15:{a.stateMap===r.emptyObject&&(a.stateMap={});let g=i.uint32()+i.pos;for(y=0,s="";i.pos>>3){case 1:y=i.int32();break;case 2:s=i.string();break;default:i.skipType(S&7);break}}a.stateMap[y]=s;break}case 16:{a.liveRoomUrl=i.string();break}case 17:{a.prizeInfoText=i.string();break}case 18:{a.roomId=i.int64();break}default:i.skipType(v&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.dynamic.v1.ReserveInfo)return i;let n=new u.bilibili.mall.tab3.dynamic.v1.ReserveInfo;switch(i.sid!=null&&(r.Long?(n.sid=r.Long.fromValue(i.sid)).unsigned=!1:typeof i.sid=="string"?n.sid=parseInt(i.sid,10):typeof i.sid=="number"?n.sid=i.sid:typeof i.sid=="object"&&(n.sid=new r.LongBits(i.sid.low>>>0,i.sid.high>>>0).toNumber())),i.title!=null&&(n.title=String(i.title)),i.total!=null&&(r.Long?(n.total=r.Long.fromValue(i.total)).unsigned=!1:typeof i.total=="string"?n.total=parseInt(i.total,10):typeof i.total=="number"?n.total=i.total:typeof i.total=="object"&&(n.total=new r.LongBits(i.total.low>>>0,i.total.high>>>0).toNumber())),i.totalStr!=null&&(n.totalStr=String(i.totalStr)),i.liveTimeCapsule!=null&&(n.liveTimeCapsule=String(i.liveTimeCapsule)),i.liveTimeFloat!=null&&(n.liveTimeFloat=String(i.liveTimeFloat)),i.lotteryType){default:if(typeof i.lotteryType=="number"){n.lotteryType=i.lotteryType;break}break;case"UpActReserveRelationLotteryTypeDefault":case 0:n.lotteryType=0;break;case"UpActReserveRelationLotteryTypeCron":case 1:n.lotteryType=1;break}if(i.prizeInfo!=null){if(typeof i.prizeInfo!="object")throw TypeError(".bilibili.mall.tab3.dynamic.v1.ReserveInfo.prizeInfo: object expected");n.prizeInfo=u.bilibili.mall.tab3.dynamic.v1.UpActReserveRelationPrizeInfo.fromObject(i.prizeInfo)}switch(i.upNameStr!=null&&(n.upNameStr=String(i.upNameStr)),i.avatar!=null&&(n.avatar=String(i.avatar)),i.isFollow!=null&&(r.Long?(n.isFollow=r.Long.fromValue(i.isFollow)).unsigned=!1:typeof i.isFollow=="string"?n.isFollow=parseInt(i.isFollow,10):typeof i.isFollow=="number"?n.isFollow=i.isFollow:typeof i.isFollow=="object"&&(n.isFollow=new r.LongBits(i.isFollow.low>>>0,i.isFollow.high>>>0).toNumber())),i.desc!=null&&(n.desc=String(i.desc)),i.livePlanStartTime!=null&&(r.Long?(n.livePlanStartTime=r.Long.fromValue(i.livePlanStartTime)).unsigned=!1:typeof i.livePlanStartTime=="string"?n.livePlanStartTime=parseInt(i.livePlanStartTime,10):typeof i.livePlanStartTime=="number"?n.livePlanStartTime=i.livePlanStartTime:typeof i.livePlanStartTime=="object"&&(n.livePlanStartTime=new r.LongBits(i.livePlanStartTime.low>>>0,i.livePlanStartTime.high>>>0).toNumber())),i.state){default:if(typeof i.state=="number"){n.state=i.state;break}break;case"INVALID":case 0:n.state=0;break;case"Reserve":case 1:n.state=1;break;case"PrizeReserve":case 2:n.state=2;break;case"CancelReserve":case 3:n.state=3;break;case"Cancel":case 4:n.state=4;break;case"PrizeCancel":case 5:n.state=5;break;case"Going":case 6:n.state=6;break;case"End":case 7:n.state=7;break;case"Canceled":case-1:n.state=-1;break;case"Expired":case-2:n.state=-2;break}if(i.stateMap){if(typeof i.stateMap!="object")throw TypeError(".bilibili.mall.tab3.dynamic.v1.ReserveInfo.stateMap: object expected");n.stateMap={};for(let o=Object.keys(i.stateMap),a=0;a>>0,i.roomId.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if((n.objects||n.defaults)&&(o.stateMap={}),n.defaults){if(r.Long){let y=new r.Long(0,0,!1);o.sid=n.longs===String?y.toString():n.longs===Number?y.toNumber():y}else o.sid=n.longs===String?"0":0;if(o.title="",r.Long){let y=new r.Long(0,0,!1);o.total=n.longs===String?y.toString():n.longs===Number?y.toNumber():y}else o.total=n.longs===String?"0":0;if(o.totalStr="",o.liveTimeCapsule="",o.liveTimeFloat="",o.lotteryType=n.enums===String?"UpActReserveRelationLotteryTypeDefault":0,o.prizeInfo=null,o.upNameStr="",o.avatar="",r.Long){let y=new r.Long(0,0,!1);o.isFollow=n.longs===String?y.toString():n.longs===Number?y.toNumber():y}else o.isFollow=n.longs===String?"0":0;if(o.desc="",r.Long){let y=new r.Long(0,0,!1);o.livePlanStartTime=n.longs===String?y.toString():n.longs===Number?y.toNumber():y}else o.livePlanStartTime=n.longs===String?"0":0;if(o.state=n.enums===String?"INVALID":0,o.liveRoomUrl="",o.prizeInfoText="",r.Long){let y=new r.Long(0,0,!1);o.roomId=n.longs===String?y.toString():n.longs===Number?y.toNumber():y}else o.roomId=n.longs===String?"0":0}i.sid!=null&&i.hasOwnProperty("sid")&&(typeof i.sid=="number"?o.sid=n.longs===String?String(i.sid):i.sid:o.sid=n.longs===String?r.Long.prototype.toString.call(i.sid):n.longs===Number?new r.LongBits(i.sid.low>>>0,i.sid.high>>>0).toNumber():i.sid),i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.total!=null&&i.hasOwnProperty("total")&&(typeof i.total=="number"?o.total=n.longs===String?String(i.total):i.total:o.total=n.longs===String?r.Long.prototype.toString.call(i.total):n.longs===Number?new r.LongBits(i.total.low>>>0,i.total.high>>>0).toNumber():i.total),i.totalStr!=null&&i.hasOwnProperty("totalStr")&&(o.totalStr=i.totalStr),i.liveTimeCapsule!=null&&i.hasOwnProperty("liveTimeCapsule")&&(o.liveTimeCapsule=i.liveTimeCapsule),i.liveTimeFloat!=null&&i.hasOwnProperty("liveTimeFloat")&&(o.liveTimeFloat=i.liveTimeFloat),i.lotteryType!=null&&i.hasOwnProperty("lotteryType")&&(o.lotteryType=n.enums===String?u.bilibili.mall.tab3.dynamic.v1.UpActReserveRelationLotteryType[i.lotteryType]===void 0?i.lotteryType:u.bilibili.mall.tab3.dynamic.v1.UpActReserveRelationLotteryType[i.lotteryType]:i.lotteryType),i.prizeInfo!=null&&i.hasOwnProperty("prizeInfo")&&(o.prizeInfo=u.bilibili.mall.tab3.dynamic.v1.UpActReserveRelationPrizeInfo.toObject(i.prizeInfo,n)),i.upNameStr!=null&&i.hasOwnProperty("upNameStr")&&(o.upNameStr=i.upNameStr),i.avatar!=null&&i.hasOwnProperty("avatar")&&(o.avatar=i.avatar),i.isFollow!=null&&i.hasOwnProperty("isFollow")&&(typeof i.isFollow=="number"?o.isFollow=n.longs===String?String(i.isFollow):i.isFollow:o.isFollow=n.longs===String?r.Long.prototype.toString.call(i.isFollow):n.longs===Number?new r.LongBits(i.isFollow.low>>>0,i.isFollow.high>>>0).toNumber():i.isFollow),i.desc!=null&&i.hasOwnProperty("desc")&&(o.desc=i.desc),i.livePlanStartTime!=null&&i.hasOwnProperty("livePlanStartTime")&&(typeof i.livePlanStartTime=="number"?o.livePlanStartTime=n.longs===String?String(i.livePlanStartTime):i.livePlanStartTime:o.livePlanStartTime=n.longs===String?r.Long.prototype.toString.call(i.livePlanStartTime):n.longs===Number?new r.LongBits(i.livePlanStartTime.low>>>0,i.livePlanStartTime.high>>>0).toNumber():i.livePlanStartTime),i.state!=null&&i.hasOwnProperty("state")&&(o.state=n.enums===String?u.bilibili.mall.tab3.dynamic.v1.ReserveState[i.state]===void 0?i.state:u.bilibili.mall.tab3.dynamic.v1.ReserveState[i.state]:i.state);let a;if(i.stateMap&&(a=Object.keys(i.stateMap)).length){o.stateMap={};for(let y=0;y>>0,i.roomId.high>>>0).toNumber():i.roomId),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.dynamic.v1.ReserveInfo"},l}(),e.UpActReserveRelationPrizeInfo=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.text=i.string();break}case 2:{a.jumpUrl=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.dynamic.v1.UpActReserveRelationPrizeInfo)return i;let n=new u.bilibili.mall.tab3.dynamic.v1.UpActReserveRelationPrizeInfo;return i.text!=null&&(n.text=String(i.text)),i.jumpUrl!=null&&(n.jumpUrl=String(i.jumpUrl)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.text="",o.jumpUrl=""),i.text!=null&&i.hasOwnProperty("text")&&(o.text=i.text),i.jumpUrl!=null&&i.hasOwnProperty("jumpUrl")&&(o.jumpUrl=i.jumpUrl),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.dynamic.v1.UpActReserveRelationPrizeInfo"},l}(),e.UpActReserveRelationLotteryType=function(){let l={},t=Object.create(l);return t[l[0]="UpActReserveRelationLotteryTypeDefault"]=0,t[l[1]="UpActReserveRelationLotteryTypeCron"]=1,t}(),e.ReserveState=function(){let l={},t=Object.create(l);return t[l[0]="INVALID"]=0,t[l[1]="Reserve"]=1,t[l[2]="PrizeReserve"]=2,t[l[3]="CancelReserve"]=3,t[l[4]="Cancel"]=4,t[l[5]="PrizeCancel"]=5,t[l[6]="Going"]=6,t[l[7]="End"]=7,t[l[-1]="Canceled"]=-1,t[l[-2]="Expired"]=-2,t}(),e}(),c}(),p.playerunite=function(){let c={};return c.ugcanymodel=function(){let e={};return e.UGCAnyModel=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.playLimit=u.bilibili.mall.tab3.playerunite.ugcanymodel.PlayLimit.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.playerunite.ugcanymodel.UGCAnyModel)return i;let n=new u.bilibili.mall.tab3.playerunite.ugcanymodel.UGCAnyModel;if(i.playLimit!=null){if(typeof i.playLimit!="object")throw TypeError(".bilibili.mall.tab3.playerunite.ugcanymodel.UGCAnyModel.playLimit: object expected");n.playLimit=u.bilibili.mall.tab3.playerunite.ugcanymodel.PlayLimit.fromObject(i.playLimit)}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.playLimit=null),i.playLimit!=null&&i.hasOwnProperty("playLimit")&&(o.playLimit=u.bilibili.mall.tab3.playerunite.ugcanymodel.PlayLimit.toObject(i.playLimit,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.playerunite.ugcanymodel.UGCAnyModel"},l}(),e.PlayLimit=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.code=i.int32();break}case 2:{a.message=i.string();break}case 3:{a.subMessage=i.string();break}case 4:{a.button=u.bilibili.mall.tab3.playerunite.ugcanymodel.ButtonStyle.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.playerunite.ugcanymodel.PlayLimit)return i;let n=new u.bilibili.mall.tab3.playerunite.ugcanymodel.PlayLimit;switch(i.code){default:if(typeof i.code=="number"){n.code=i.code;break}break;case"PLC_UNKNOWN":case 0:n.code=0;break;case"PLC_UGCNOTPAYED":case 1:n.code=1;break;case"PLC_ChargingPlusNotPass":case 2:n.code=2;break;case"PLC_ChargingPlusUpgrade":case 3:n.code=3;break;case"PLC_ChargingPlusReject":case 4:n.code=4;break}if(i.message!=null&&(n.message=String(i.message)),i.subMessage!=null&&(n.subMessage=String(i.subMessage)),i.button!=null){if(typeof i.button!="object")throw TypeError(".bilibili.mall.tab3.playerunite.ugcanymodel.PlayLimit.button: object expected");n.button=u.bilibili.mall.tab3.playerunite.ugcanymodel.ButtonStyle.fromObject(i.button)}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.code=n.enums===String?"PLC_UNKNOWN":0,o.message="",o.subMessage="",o.button=null),i.code!=null&&i.hasOwnProperty("code")&&(o.code=n.enums===String?u.bilibili.mall.tab3.playerunite.ugcanymodel.PlayLimitCode[i.code]===void 0?i.code:u.bilibili.mall.tab3.playerunite.ugcanymodel.PlayLimitCode[i.code]:i.code),i.message!=null&&i.hasOwnProperty("message")&&(o.message=i.message),i.subMessage!=null&&i.hasOwnProperty("subMessage")&&(o.subMessage=i.subMessage),i.button!=null&&i.hasOwnProperty("button")&&(o.button=u.bilibili.mall.tab3.playerunite.ugcanymodel.ButtonStyle.toObject(i.button,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.playerunite.ugcanymodel.PlayLimit"},l}(),e.PlayLimitCode=function(){let l={},t=Object.create(l);return t[l[0]="PLC_UNKNOWN"]=0,t[l[1]="PLC_UGCNOTPAYED"]=1,t[l[2]="PLC_ChargingPlusNotPass"]=2,t[l[3]="PLC_ChargingPlusUpgrade"]=3,t[l[4]="PLC_ChargingPlusReject"]=4,t}(),e.ButtonStyle=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.text=i.string();break}case 2:{a.textColor=i.string();break}case 3:{a.bgColor=i.string();break}case 4:{a.jumpLink=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.playerunite.ugcanymodel.ButtonStyle)return i;let n=new u.bilibili.mall.tab3.playerunite.ugcanymodel.ButtonStyle;return i.text!=null&&(n.text=String(i.text)),i.textColor!=null&&(n.textColor=String(i.textColor)),i.bgColor!=null&&(n.bgColor=String(i.bgColor)),i.jumpLink!=null&&(n.jumpLink=String(i.jumpLink)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.text="",o.textColor="",o.bgColor="",o.jumpLink=""),i.text!=null&&i.hasOwnProperty("text")&&(o.text=i.text),i.textColor!=null&&i.hasOwnProperty("textColor")&&(o.textColor=i.textColor),i.bgColor!=null&&i.hasOwnProperty("bgColor")&&(o.bgColor=i.bgColor),i.jumpLink!=null&&i.hasOwnProperty("jumpLink")&&(o.jumpLink=i.jumpLink),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.playerunite.ugcanymodel.ButtonStyle"},l}(),e}(),c.v1=function(){let e={};return e.Player=function(){function l(t,i,n){b.rpc.Service.call(this,t,i,n)}return(l.prototype=Object.create(b.rpc.Service.prototype)).constructor=l,l.create=function(i,n,o){return new this(i,n,o)},Object.defineProperty(l.prototype.playViewUnite=function t(i,n){return this.rpcCall(t,u.bilibili.mall.tab3.playerunite.v1.PlayViewUniteReq,u.bilibili.mall.tab3.playerunite.v1.PlayViewUniteReply,i,n)},"name",{value:"PlayViewUnite"}),l}(),e.PlayViewUniteReq=function(){function l(t){if(this.extraContent={},t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.vod=u.bilibili.playershared.VideoVod.decode(i,i.uint32());break}case 2:{a.spmid=i.string();break}case 3:{a.fromSpmid=i.string();break}case 4:{a.extraContent===r.emptyObject&&(a.extraContent={});let g=i.uint32()+i.pos;for(y="",s="";i.pos>>3){case 1:y=i.string();break;case 2:s=i.string();break;default:i.skipType(S&7);break}}a.extraContent[y]=s;break}case 5:{a.bvid=i.string();break}default:i.skipType(v&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.playerunite.v1.PlayViewUniteReq)return i;let n=new u.bilibili.mall.tab3.playerunite.v1.PlayViewUniteReq;if(i.vod!=null){if(typeof i.vod!="object")throw TypeError(".bilibili.mall.tab3.playerunite.v1.PlayViewUniteReq.vod: object expected");n.vod=u.bilibili.playershared.VideoVod.fromObject(i.vod)}if(i.spmid!=null&&(n.spmid=String(i.spmid)),i.fromSpmid!=null&&(n.fromSpmid=String(i.fromSpmid)),i.extraContent){if(typeof i.extraContent!="object")throw TypeError(".bilibili.mall.tab3.playerunite.v1.PlayViewUniteReq.extraContent: object expected");n.extraContent={};for(let o=Object.keys(i.extraContent),a=0;a>>3){case 1:{a.vodInfo=u.bilibili.playershared.VodInfo.decode(i,i.uint32());break}case 2:{a.playArcConf=u.bilibili.playershared.PlayArcConf.decode(i,i.uint32());break}case 3:{a.playDeviceConf=u.bilibili.playershared.PlayDeviceConf.decode(i,i.uint32());break}case 4:{a.event=u.bilibili.playershared.Event.decode(i,i.uint32());break}case 5:{a.supplement=u.google.protobuf.Any.decode(i,i.uint32());break}case 6:{a.playArc=u.bilibili.playershared.PlayArc.decode(i,i.uint32());break}case 7:{a.qnTrialInfo=u.bilibili.playershared.QnTrialInfo.decode(i,i.uint32());break}case 8:{a.history=u.bilibili.playershared.History.decode(i,i.uint32());break}case 9:{a.viewInfo=u.bilibili.playershared.ViewInfo.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.playerunite.v1.PlayViewUniteReply)return i;let n=new u.bilibili.mall.tab3.playerunite.v1.PlayViewUniteReply;if(i.vodInfo!=null){if(typeof i.vodInfo!="object")throw TypeError(".bilibili.mall.tab3.playerunite.v1.PlayViewUniteReply.vodInfo: object expected");n.vodInfo=u.bilibili.playershared.VodInfo.fromObject(i.vodInfo)}if(i.playArcConf!=null){if(typeof i.playArcConf!="object")throw TypeError(".bilibili.mall.tab3.playerunite.v1.PlayViewUniteReply.playArcConf: object expected");n.playArcConf=u.bilibili.playershared.PlayArcConf.fromObject(i.playArcConf)}if(i.playDeviceConf!=null){if(typeof i.playDeviceConf!="object")throw TypeError(".bilibili.mall.tab3.playerunite.v1.PlayViewUniteReply.playDeviceConf: object expected");n.playDeviceConf=u.bilibili.playershared.PlayDeviceConf.fromObject(i.playDeviceConf)}if(i.event!=null){if(typeof i.event!="object")throw TypeError(".bilibili.mall.tab3.playerunite.v1.PlayViewUniteReply.event: object expected");n.event=u.bilibili.playershared.Event.fromObject(i.event)}if(i.supplement!=null){if(typeof i.supplement!="object")throw TypeError(".bilibili.mall.tab3.playerunite.v1.PlayViewUniteReply.supplement: object expected");n.supplement=u.google.protobuf.Any.fromObject(i.supplement)}if(i.playArc!=null){if(typeof i.playArc!="object")throw TypeError(".bilibili.mall.tab3.playerunite.v1.PlayViewUniteReply.playArc: object expected");n.playArc=u.bilibili.playershared.PlayArc.fromObject(i.playArc)}if(i.qnTrialInfo!=null){if(typeof i.qnTrialInfo!="object")throw TypeError(".bilibili.mall.tab3.playerunite.v1.PlayViewUniteReply.qnTrialInfo: object expected");n.qnTrialInfo=u.bilibili.playershared.QnTrialInfo.fromObject(i.qnTrialInfo)}if(i.history!=null){if(typeof i.history!="object")throw TypeError(".bilibili.mall.tab3.playerunite.v1.PlayViewUniteReply.history: object expected");n.history=u.bilibili.playershared.History.fromObject(i.history)}if(i.viewInfo!=null){if(typeof i.viewInfo!="object")throw TypeError(".bilibili.mall.tab3.playerunite.v1.PlayViewUniteReply.viewInfo: object expected");n.viewInfo=u.bilibili.playershared.ViewInfo.fromObject(i.viewInfo)}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.vodInfo=null,o.playArcConf=null,o.playDeviceConf=null,o.event=null,o.supplement=null,o.playArc=null,o.qnTrialInfo=null,o.history=null,o.viewInfo=null),i.vodInfo!=null&&i.hasOwnProperty("vodInfo")&&(o.vodInfo=u.bilibili.playershared.VodInfo.toObject(i.vodInfo,n)),i.playArcConf!=null&&i.hasOwnProperty("playArcConf")&&(o.playArcConf=u.bilibili.playershared.PlayArcConf.toObject(i.playArcConf,n)),i.playDeviceConf!=null&&i.hasOwnProperty("playDeviceConf")&&(o.playDeviceConf=u.bilibili.playershared.PlayDeviceConf.toObject(i.playDeviceConf,n)),i.event!=null&&i.hasOwnProperty("event")&&(o.event=u.bilibili.playershared.Event.toObject(i.event,n)),i.supplement!=null&&i.hasOwnProperty("supplement")&&(o.supplement=u.google.protobuf.Any.toObject(i.supplement,n)),i.playArc!=null&&i.hasOwnProperty("playArc")&&(o.playArc=u.bilibili.playershared.PlayArc.toObject(i.playArc,n)),i.qnTrialInfo!=null&&i.hasOwnProperty("qnTrialInfo")&&(o.qnTrialInfo=u.bilibili.playershared.QnTrialInfo.toObject(i.qnTrialInfo,n)),i.history!=null&&i.hasOwnProperty("history")&&(o.history=u.bilibili.playershared.History.toObject(i.history,n)),i.viewInfo!=null&&i.hasOwnProperty("viewInfo")&&(o.viewInfo=u.bilibili.playershared.ViewInfo.toObject(i.viewInfo,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.playerunite.v1.PlayViewUniteReply"},l}(),e}(),c}(),p.viewunite=function(){let c={};return c.common=function(){let e={};return e.Module=function(){function l(i){if(i)for(let n=Object.keys(i),o=0;o>>3){case 1:{y.type=n.int32();break}case 2:{y.ogvIntroduction=u.bilibili.mall.tab3.viewunite.common.OgvIntroduction.decode(n,n.uint32());break}case 3:{y.ugcIntroduction=u.bilibili.mall.tab3.viewunite.common.UgcIntroduction.decode(n,n.uint32());break}case 4:{y.kingPosition=u.bilibili.mall.tab3.viewunite.common.KingPosition.decode(n,n.uint32());break}case 5:{y.headLine=u.bilibili.mall.tab3.viewunite.common.Headline.decode(n,n.uint32());break}case 6:{y.ogvTitle=u.bilibili.mall.tab3.viewunite.common.OgvTitle.decode(n,n.uint32());break}case 7:{y.honor=u.bilibili.mall.tab3.viewunite.common.Honor.decode(n,n.uint32());break}case 8:{y.list=u.bilibili.mall.tab3.viewunite.common.UserList.decode(n,n.uint32());break}case 9:{y.staffs=u.bilibili.mall.tab3.viewunite.common.Staffs.decode(n,n.uint32());break}case 10:{y.activityReserve=u.bilibili.mall.tab3.viewunite.common.ActivityReserve.decode(n,n.uint32());break}case 11:{y.liveOrder=u.bilibili.mall.tab3.viewunite.common.LiveOrder.decode(n,n.uint32());break}case 12:{y.sectionData=u.bilibili.mall.tab3.viewunite.common.SectionData.decode(n,n.uint32());break}case 13:{y.deliveryData=u.bilibili.mall.tab3.viewunite.common.DeliveryData.decode(n,n.uint32());break}case 14:{y.followLayer=u.bilibili.mall.tab3.viewunite.common.FollowLayer.decode(n,n.uint32());break}case 15:{y.ogvSeasons=u.bilibili.mall.tab3.viewunite.common.OgvSeasons.decode(n,n.uint32());break}case 16:{y.ugcSeason=u.bilibili.mall.tab3.viewunite.common.UgcSeasons.decode(n,n.uint32());break}case 17:{y.ogvLiveReserve=u.bilibili.mall.tab3.viewunite.common.OgvLiveReserve.decode(n,n.uint32());break}case 18:{y.combinationEp=u.bilibili.mall.tab3.viewunite.common.CombinationEp.decode(n,n.uint32());break}case 19:{y.sponsor=u.bilibili.mall.tab3.viewunite.common.Sponsor.decode(n,n.uint32());break}case 20:{y.activityEntranceModule=u.bilibili.mall.tab3.viewunite.common.ActivityEntranceModule.decode(n,n.uint32());break}case 21:{y.serialSeason=u.bilibili.mall.tab3.viewunite.common.SerialSeason.decode(n,n.uint32());break}case 22:{y.relates=u.bilibili.mall.tab3.viewunite.common.Relates.decode(n,n.uint32());break}case 23:{y.banner=u.bilibili.mall.tab3.viewunite.common.Banner.decode(n,n.uint32());break}case 24:{y.audio=u.bilibili.mall.tab3.viewunite.common.Audio.decode(n,n.uint32());break}case 25:{y.likeComment=u.bilibili.mall.tab3.viewunite.common.LikeComment.decode(n,n.uint32());break}case 26:{y.attentionRecommend=u.bilibili.mall.tab3.viewunite.common.AttentionRecommend.decode(n,n.uint32());break}case 27:{y.covenanter=u.bilibili.mall.tab3.viewunite.common.Covenanter.decode(n,n.uint32());break}case 28:{y.specialTag=u.bilibili.mall.tab3.viewunite.common.SpecialTag.decode(n,n.uint32());break}case 29:{y.upDataModule=u.bilibili.mall.tab3.viewunite.common.UpDataModule.decode(n,n.uint32());break}case 30:{y.professionApproval=u.bilibili.mall.tab3.viewunite.common.ProfessionApproval.decode(n,n.uint32());break}default:n.skipType(s&7);break}}return y},l.fromObject=function(n){if(n instanceof u.bilibili.mall.tab3.viewunite.common.Module)return n;let o=new u.bilibili.mall.tab3.viewunite.common.Module;switch(n.type){default:if(typeof n.type=="number"){o.type=n.type;break}break;case"UNKNOWN":case 0:o.type=0;break;case"OGV_INTRODUCTION":case 1:o.type=1;break;case"OGV_TITLE":case 2:o.type=2;break;case"UGC_HEADLINE":case 3:o.type=3;break;case"UGC_INTRODUCTION":case 4:o.type=4;break;case"KING_POSITION":case 5:o.type=5;break;case"MASTER_USER_LIST":case 6:o.type=6;break;case"STAFFS":case 7:o.type=7;break;case"HONOR":case 8:o.type=8;break;case"OWNER":case 9:o.type=9;break;case"PAGE":case 10:o.type=10;break;case"ACTIVITY_RESERVE":case 11:o.type=11;break;case"LIVE_ORDER":case 12:o.type=12;break;case"POSITIVE":case 13:o.type=13;break;case"SECTION":case 14:o.type=14;break;case"RELATE":case 15:o.type=15;break;case"PUGV":case 16:o.type=16;break;case"COLLECTION_CARD":case 17:o.type=17;break;case"ACTIVITY":case 18:o.type=18;break;case"CHARACTER":case 19:o.type=19;break;case"FOLLOW_LAYER":case 20:o.type=20;break;case"OGV_SEASONS":case 21:o.type=21;break;case"UGC_SEASON":case 22:o.type=22;break;case"OGV_LIVE_RESERVE":case 23:o.type=23;break;case"COMBINATION_EPISODE":case 24:o.type=24;break;case"SPONSOR":case 25:o.type=25;break;case"ACTIVITY_ENTRANCE":case 26:o.type=26;break;case"THEATRE_HOT_TOPIC":case 27:o.type=27;break;case"RELATED_RECOMMEND":case 28:o.type=28;break;case"PAY_BAR":case 29:o.type=29;break;case"BANNER":case 30:o.type=30;break;case"AUDIO":case 31:o.type=31;break;case"AGG_CARD":case 32:o.type=32;break;case"SINGLE_EP":case 33:o.type=33;break;case"LIKE_COMMENT":case 34:o.type=34;break;case"ATTENTION_RECOMMEND":case 35:o.type=35;break;case"COVENANTER":case 36:o.type=36;break;case"SPECIALTAG":case 37:o.type=37;break;case"UPDATA":case 38:o.type=38;break;case"PROFESSION_APPROVAL":case 39:o.type=39;break}if(n.ogvIntroduction!=null){if(typeof n.ogvIntroduction!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.Module.ogvIntroduction: object expected");o.ogvIntroduction=u.bilibili.mall.tab3.viewunite.common.OgvIntroduction.fromObject(n.ogvIntroduction)}if(n.ugcIntroduction!=null){if(typeof n.ugcIntroduction!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.Module.ugcIntroduction: object expected");o.ugcIntroduction=u.bilibili.mall.tab3.viewunite.common.UgcIntroduction.fromObject(n.ugcIntroduction)}if(n.kingPosition!=null){if(typeof n.kingPosition!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.Module.kingPosition: object expected");o.kingPosition=u.bilibili.mall.tab3.viewunite.common.KingPosition.fromObject(n.kingPosition)}if(n.headLine!=null){if(typeof n.headLine!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.Module.headLine: object expected");o.headLine=u.bilibili.mall.tab3.viewunite.common.Headline.fromObject(n.headLine)}if(n.ogvTitle!=null){if(typeof n.ogvTitle!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.Module.ogvTitle: object expected");o.ogvTitle=u.bilibili.mall.tab3.viewunite.common.OgvTitle.fromObject(n.ogvTitle)}if(n.honor!=null){if(typeof n.honor!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.Module.honor: object expected");o.honor=u.bilibili.mall.tab3.viewunite.common.Honor.fromObject(n.honor)}if(n.list!=null){if(typeof n.list!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.Module.list: object expected");o.list=u.bilibili.mall.tab3.viewunite.common.UserList.fromObject(n.list)}if(n.staffs!=null){if(typeof n.staffs!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.Module.staffs: object expected");o.staffs=u.bilibili.mall.tab3.viewunite.common.Staffs.fromObject(n.staffs)}if(n.activityReserve!=null){if(typeof n.activityReserve!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.Module.activityReserve: object expected");o.activityReserve=u.bilibili.mall.tab3.viewunite.common.ActivityReserve.fromObject(n.activityReserve)}if(n.liveOrder!=null){if(typeof n.liveOrder!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.Module.liveOrder: object expected");o.liveOrder=u.bilibili.mall.tab3.viewunite.common.LiveOrder.fromObject(n.liveOrder)}if(n.sectionData!=null){if(typeof n.sectionData!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.Module.sectionData: object expected");o.sectionData=u.bilibili.mall.tab3.viewunite.common.SectionData.fromObject(n.sectionData)}if(n.deliveryData!=null){if(typeof n.deliveryData!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.Module.deliveryData: object expected");o.deliveryData=u.bilibili.mall.tab3.viewunite.common.DeliveryData.fromObject(n.deliveryData)}if(n.followLayer!=null){if(typeof n.followLayer!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.Module.followLayer: object expected");o.followLayer=u.bilibili.mall.tab3.viewunite.common.FollowLayer.fromObject(n.followLayer)}if(n.ogvSeasons!=null){if(typeof n.ogvSeasons!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.Module.ogvSeasons: object expected");o.ogvSeasons=u.bilibili.mall.tab3.viewunite.common.OgvSeasons.fromObject(n.ogvSeasons)}if(n.ugcSeason!=null){if(typeof n.ugcSeason!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.Module.ugcSeason: object expected");o.ugcSeason=u.bilibili.mall.tab3.viewunite.common.UgcSeasons.fromObject(n.ugcSeason)}if(n.ogvLiveReserve!=null){if(typeof n.ogvLiveReserve!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.Module.ogvLiveReserve: object expected");o.ogvLiveReserve=u.bilibili.mall.tab3.viewunite.common.OgvLiveReserve.fromObject(n.ogvLiveReserve)}if(n.combinationEp!=null){if(typeof n.combinationEp!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.Module.combinationEp: object expected");o.combinationEp=u.bilibili.mall.tab3.viewunite.common.CombinationEp.fromObject(n.combinationEp)}if(n.sponsor!=null){if(typeof n.sponsor!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.Module.sponsor: object expected");o.sponsor=u.bilibili.mall.tab3.viewunite.common.Sponsor.fromObject(n.sponsor)}if(n.activityEntranceModule!=null){if(typeof n.activityEntranceModule!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.Module.activityEntranceModule: object expected");o.activityEntranceModule=u.bilibili.mall.tab3.viewunite.common.ActivityEntranceModule.fromObject(n.activityEntranceModule)}if(n.serialSeason!=null){if(typeof n.serialSeason!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.Module.serialSeason: object expected");o.serialSeason=u.bilibili.mall.tab3.viewunite.common.SerialSeason.fromObject(n.serialSeason)}if(n.relates!=null){if(typeof n.relates!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.Module.relates: object expected");o.relates=u.bilibili.mall.tab3.viewunite.common.Relates.fromObject(n.relates)}if(n.banner!=null){if(typeof n.banner!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.Module.banner: object expected");o.banner=u.bilibili.mall.tab3.viewunite.common.Banner.fromObject(n.banner)}if(n.audio!=null){if(typeof n.audio!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.Module.audio: object expected");o.audio=u.bilibili.mall.tab3.viewunite.common.Audio.fromObject(n.audio)}if(n.likeComment!=null){if(typeof n.likeComment!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.Module.likeComment: object expected");o.likeComment=u.bilibili.mall.tab3.viewunite.common.LikeComment.fromObject(n.likeComment)}if(n.attentionRecommend!=null){if(typeof n.attentionRecommend!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.Module.attentionRecommend: object expected");o.attentionRecommend=u.bilibili.mall.tab3.viewunite.common.AttentionRecommend.fromObject(n.attentionRecommend)}if(n.covenanter!=null){if(typeof n.covenanter!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.Module.covenanter: object expected");o.covenanter=u.bilibili.mall.tab3.viewunite.common.Covenanter.fromObject(n.covenanter)}if(n.specialTag!=null){if(typeof n.specialTag!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.Module.specialTag: object expected");o.specialTag=u.bilibili.mall.tab3.viewunite.common.SpecialTag.fromObject(n.specialTag)}if(n.upDataModule!=null){if(typeof n.upDataModule!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.Module.upDataModule: object expected");o.upDataModule=u.bilibili.mall.tab3.viewunite.common.UpDataModule.fromObject(n.upDataModule)}if(n.professionApproval!=null){if(typeof n.professionApproval!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.Module.professionApproval: object expected");o.professionApproval=u.bilibili.mall.tab3.viewunite.common.ProfessionApproval.fromObject(n.professionApproval)}return o},l.toObject=function(n,o){o||(o={});let a={};return o.defaults&&(a.type=o.enums===String?"UNKNOWN":0),n.type!=null&&n.hasOwnProperty("type")&&(a.type=o.enums===String?u.bilibili.mall.tab3.viewunite.common.ModuleType[n.type]===void 0?n.type:u.bilibili.mall.tab3.viewunite.common.ModuleType[n.type]:n.type),n.ogvIntroduction!=null&&n.hasOwnProperty("ogvIntroduction")&&(a.ogvIntroduction=u.bilibili.mall.tab3.viewunite.common.OgvIntroduction.toObject(n.ogvIntroduction,o),o.oneofs&&(a.data="ogvIntroduction")),n.ugcIntroduction!=null&&n.hasOwnProperty("ugcIntroduction")&&(a.ugcIntroduction=u.bilibili.mall.tab3.viewunite.common.UgcIntroduction.toObject(n.ugcIntroduction,o),o.oneofs&&(a.data="ugcIntroduction")),n.kingPosition!=null&&n.hasOwnProperty("kingPosition")&&(a.kingPosition=u.bilibili.mall.tab3.viewunite.common.KingPosition.toObject(n.kingPosition,o),o.oneofs&&(a.data="kingPosition")),n.headLine!=null&&n.hasOwnProperty("headLine")&&(a.headLine=u.bilibili.mall.tab3.viewunite.common.Headline.toObject(n.headLine,o),o.oneofs&&(a.data="headLine")),n.ogvTitle!=null&&n.hasOwnProperty("ogvTitle")&&(a.ogvTitle=u.bilibili.mall.tab3.viewunite.common.OgvTitle.toObject(n.ogvTitle,o),o.oneofs&&(a.data="ogvTitle")),n.honor!=null&&n.hasOwnProperty("honor")&&(a.honor=u.bilibili.mall.tab3.viewunite.common.Honor.toObject(n.honor,o),o.oneofs&&(a.data="honor")),n.list!=null&&n.hasOwnProperty("list")&&(a.list=u.bilibili.mall.tab3.viewunite.common.UserList.toObject(n.list,o),o.oneofs&&(a.data="list")),n.staffs!=null&&n.hasOwnProperty("staffs")&&(a.staffs=u.bilibili.mall.tab3.viewunite.common.Staffs.toObject(n.staffs,o),o.oneofs&&(a.data="staffs")),n.activityReserve!=null&&n.hasOwnProperty("activityReserve")&&(a.activityReserve=u.bilibili.mall.tab3.viewunite.common.ActivityReserve.toObject(n.activityReserve,o),o.oneofs&&(a.data="activityReserve")),n.liveOrder!=null&&n.hasOwnProperty("liveOrder")&&(a.liveOrder=u.bilibili.mall.tab3.viewunite.common.LiveOrder.toObject(n.liveOrder,o),o.oneofs&&(a.data="liveOrder")),n.sectionData!=null&&n.hasOwnProperty("sectionData")&&(a.sectionData=u.bilibili.mall.tab3.viewunite.common.SectionData.toObject(n.sectionData,o),o.oneofs&&(a.data="sectionData")),n.deliveryData!=null&&n.hasOwnProperty("deliveryData")&&(a.deliveryData=u.bilibili.mall.tab3.viewunite.common.DeliveryData.toObject(n.deliveryData,o),o.oneofs&&(a.data="deliveryData")),n.followLayer!=null&&n.hasOwnProperty("followLayer")&&(a.followLayer=u.bilibili.mall.tab3.viewunite.common.FollowLayer.toObject(n.followLayer,o),o.oneofs&&(a.data="followLayer")),n.ogvSeasons!=null&&n.hasOwnProperty("ogvSeasons")&&(a.ogvSeasons=u.bilibili.mall.tab3.viewunite.common.OgvSeasons.toObject(n.ogvSeasons,o),o.oneofs&&(a.data="ogvSeasons")),n.ugcSeason!=null&&n.hasOwnProperty("ugcSeason")&&(a.ugcSeason=u.bilibili.mall.tab3.viewunite.common.UgcSeasons.toObject(n.ugcSeason,o),o.oneofs&&(a.data="ugcSeason")),n.ogvLiveReserve!=null&&n.hasOwnProperty("ogvLiveReserve")&&(a.ogvLiveReserve=u.bilibili.mall.tab3.viewunite.common.OgvLiveReserve.toObject(n.ogvLiveReserve,o),o.oneofs&&(a.data="ogvLiveReserve")),n.combinationEp!=null&&n.hasOwnProperty("combinationEp")&&(a.combinationEp=u.bilibili.mall.tab3.viewunite.common.CombinationEp.toObject(n.combinationEp,o),o.oneofs&&(a.data="combinationEp")),n.sponsor!=null&&n.hasOwnProperty("sponsor")&&(a.sponsor=u.bilibili.mall.tab3.viewunite.common.Sponsor.toObject(n.sponsor,o),o.oneofs&&(a.data="sponsor")),n.activityEntranceModule!=null&&n.hasOwnProperty("activityEntranceModule")&&(a.activityEntranceModule=u.bilibili.mall.tab3.viewunite.common.ActivityEntranceModule.toObject(n.activityEntranceModule,o),o.oneofs&&(a.data="activityEntranceModule")),n.serialSeason!=null&&n.hasOwnProperty("serialSeason")&&(a.serialSeason=u.bilibili.mall.tab3.viewunite.common.SerialSeason.toObject(n.serialSeason,o),o.oneofs&&(a.data="serialSeason")),n.relates!=null&&n.hasOwnProperty("relates")&&(a.relates=u.bilibili.mall.tab3.viewunite.common.Relates.toObject(n.relates,o),o.oneofs&&(a.data="relates")),n.banner!=null&&n.hasOwnProperty("banner")&&(a.banner=u.bilibili.mall.tab3.viewunite.common.Banner.toObject(n.banner,o),o.oneofs&&(a.data="banner")),n.audio!=null&&n.hasOwnProperty("audio")&&(a.audio=u.bilibili.mall.tab3.viewunite.common.Audio.toObject(n.audio,o),o.oneofs&&(a.data="audio")),n.likeComment!=null&&n.hasOwnProperty("likeComment")&&(a.likeComment=u.bilibili.mall.tab3.viewunite.common.LikeComment.toObject(n.likeComment,o),o.oneofs&&(a.data="likeComment")),n.attentionRecommend!=null&&n.hasOwnProperty("attentionRecommend")&&(a.attentionRecommend=u.bilibili.mall.tab3.viewunite.common.AttentionRecommend.toObject(n.attentionRecommend,o),o.oneofs&&(a.data="attentionRecommend")),n.covenanter!=null&&n.hasOwnProperty("covenanter")&&(a.covenanter=u.bilibili.mall.tab3.viewunite.common.Covenanter.toObject(n.covenanter,o),o.oneofs&&(a.data="covenanter")),n.specialTag!=null&&n.hasOwnProperty("specialTag")&&(a.specialTag=u.bilibili.mall.tab3.viewunite.common.SpecialTag.toObject(n.specialTag,o),o.oneofs&&(a.data="specialTag")),n.upDataModule!=null&&n.hasOwnProperty("upDataModule")&&(a.upDataModule=u.bilibili.mall.tab3.viewunite.common.UpDataModule.toObject(n.upDataModule,o),o.oneofs&&(a.data="upDataModule")),n.professionApproval!=null&&n.hasOwnProperty("professionApproval")&&(a.professionApproval=u.bilibili.mall.tab3.viewunite.common.ProfessionApproval.toObject(n.professionApproval,o),o.oneofs&&(a.data="professionApproval")),a},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/bilibili.mall.tab3.viewunite.common.Module"},l}(),e.UpDataModule=function(){function l(t){if(this.extTabs=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.extTabs&&a.extTabs.length||(a.extTabs=[]),a.extTabs.push(u.bilibili.mall.tab3.viewunite.common.ExtTab.decode(i,i.uint32()));break}case 2:{a.idx=i.int32();break}case 3:{a.protocolUrl=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.UpDataModule)return i;let n=new u.bilibili.mall.tab3.viewunite.common.UpDataModule;if(i.extTabs){if(!Array.isArray(i.extTabs))throw TypeError(".bilibili.mall.tab3.viewunite.common.UpDataModule.extTabs: array expected");n.extTabs=[];for(let o=0;o>>3){case 1:{a.extType=i.int32();break}case 2:{a.data=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.ExtTab)return i;let n=new u.bilibili.mall.tab3.viewunite.common.ExtTab;switch(i.extType){default:if(typeof i.extType=="number"){n.extType=i.extType;break}break;case"ExtNone":case 0:n.extType=0;break;case"ExtDataCenter":case 1:n.extType=1;break;case"ExtDataEarnings":case 2:n.extType=2;break}return i.data!=null&&(n.data=String(i.data)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.extType=n.enums===String?"ExtNone":0,o.data=""),i.extType!=null&&i.hasOwnProperty("extType")&&(o.extType=n.enums===String?u.bilibili.mall.tab3.viewunite.common.ExtType[i.extType]===void 0?i.extType:u.bilibili.mall.tab3.viewunite.common.ExtType[i.extType]:i.extType),i.data!=null&&i.hasOwnProperty("data")&&(o.data=i.data),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.common.ExtTab"},l}(),e.ExtType=function(){let l={},t=Object.create(l);return t[l[0]="ExtNone"]=0,t[l[1]="ExtDataCenter"]=1,t[l[2]="ExtDataEarnings"]=2,t}(),e.SpecialTag=function(){function l(t){if(this.specialCell=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.specialCell&&a.specialCell.length||(a.specialCell=[]),a.specialCell.push(u.bilibili.mall.tab3.viewunite.common.SpecialCell.decode(i,i.uint32()));break}case 2:{a.refresh=i.bool();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.SpecialTag)return i;let n=new u.bilibili.mall.tab3.viewunite.common.SpecialTag;if(i.specialCell){if(!Array.isArray(i.specialCell))throw TypeError(".bilibili.mall.tab3.viewunite.common.SpecialTag.specialCell: array expected");n.specialCell=[];for(let o=0;o>>3){default:i.skipType(y&7);break}}return a},l.fromObject=function(i){return i instanceof u.bilibili.mall.tab3.viewunite.common.AttentionRecommend?i:new u.bilibili.mall.tab3.viewunite.common.AttentionRecommend},l.toObject=function(){return{}},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.common.AttentionRecommend"},l}(),e.Covenanter=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.isFollowDisplay=i.int32();break}case 2:{a.text=u.bilibili.mall.tab3.viewunite.common.ContractText.decode(i,i.uint32());break}case 3:{a.isInteractDisplay=i.int32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.Covenanter)return i;let n=new u.bilibili.mall.tab3.viewunite.common.Covenanter;if(i.isFollowDisplay!=null&&(n.isFollowDisplay=i.isFollowDisplay|0),i.text!=null){if(typeof i.text!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.Covenanter.text: object expected");n.text=u.bilibili.mall.tab3.viewunite.common.ContractText.fromObject(i.text)}return i.isInteractDisplay!=null&&(n.isInteractDisplay=i.isInteractDisplay|0),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.isFollowDisplay=0,o.text=null,o.isInteractDisplay=0),i.isFollowDisplay!=null&&i.hasOwnProperty("isFollowDisplay")&&(o.isFollowDisplay=i.isFollowDisplay),i.text!=null&&i.hasOwnProperty("text")&&(o.text=u.bilibili.mall.tab3.viewunite.common.ContractText.toObject(i.text,n)),i.isInteractDisplay!=null&&i.hasOwnProperty("isInteractDisplay")&&(o.isInteractDisplay=i.isInteractDisplay),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.common.Covenanter"},l}(),e.ContractText=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.title=i.string();break}case 2:{a.subtitle=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.ContractText)return i;let n=new u.bilibili.mall.tab3.viewunite.common.ContractText;return i.title!=null&&(n.title=String(i.title)),i.subtitle!=null&&(n.subtitle=String(i.subtitle)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.title="",o.subtitle=""),i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.subtitle!=null&&i.hasOwnProperty("subtitle")&&(o.subtitle=i.subtitle),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.common.ContractText"},l}(),e.Audio=function(){function l(t){if(this.audioInfo={},t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.audioInfo===r.emptyObject&&(a.audioInfo={});let g=i.uint32()+i.pos;for(y=0,s=null;i.pos>>3){case 1:y=i.int64();break;case 2:s=u.bilibili.mall.tab3.viewunite.common.AudioInfo.decode(i,i.uint32());break;default:i.skipType(S&7);break}}a.audioInfo[typeof y=="object"?r.longToHash(y):y]=s;break}default:i.skipType(v&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.Audio)return i;let n=new u.bilibili.mall.tab3.viewunite.common.Audio;if(i.audioInfo){if(typeof i.audioInfo!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.Audio.audioInfo: object expected");n.audioInfo={};for(let o=Object.keys(i.audioInfo),a=0;a>>3){case 1:{a.title=i.string();break}case 2:{a.coverUrl=i.string();break}case 3:{a.songId=i.int64();break}case 4:{a.playCount=i.int64();break}case 5:{a.replyCount=i.int64();break}case 6:{a.upperId=i.int64();break}case 7:{a.entrance=i.string();break}case 8:{a.songAttr=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.AudioInfo)return i;let n=new u.bilibili.mall.tab3.viewunite.common.AudioInfo;return i.title!=null&&(n.title=String(i.title)),i.coverUrl!=null&&(n.coverUrl=String(i.coverUrl)),i.songId!=null&&(r.Long?(n.songId=r.Long.fromValue(i.songId)).unsigned=!1:typeof i.songId=="string"?n.songId=parseInt(i.songId,10):typeof i.songId=="number"?n.songId=i.songId:typeof i.songId=="object"&&(n.songId=new r.LongBits(i.songId.low>>>0,i.songId.high>>>0).toNumber())),i.playCount!=null&&(r.Long?(n.playCount=r.Long.fromValue(i.playCount)).unsigned=!1:typeof i.playCount=="string"?n.playCount=parseInt(i.playCount,10):typeof i.playCount=="number"?n.playCount=i.playCount:typeof i.playCount=="object"&&(n.playCount=new r.LongBits(i.playCount.low>>>0,i.playCount.high>>>0).toNumber())),i.replyCount!=null&&(r.Long?(n.replyCount=r.Long.fromValue(i.replyCount)).unsigned=!1:typeof i.replyCount=="string"?n.replyCount=parseInt(i.replyCount,10):typeof i.replyCount=="number"?n.replyCount=i.replyCount:typeof i.replyCount=="object"&&(n.replyCount=new r.LongBits(i.replyCount.low>>>0,i.replyCount.high>>>0).toNumber())),i.upperId!=null&&(r.Long?(n.upperId=r.Long.fromValue(i.upperId)).unsigned=!1:typeof i.upperId=="string"?n.upperId=parseInt(i.upperId,10):typeof i.upperId=="number"?n.upperId=i.upperId:typeof i.upperId=="object"&&(n.upperId=new r.LongBits(i.upperId.low>>>0,i.upperId.high>>>0).toNumber())),i.entrance!=null&&(n.entrance=String(i.entrance)),i.songAttr!=null&&(r.Long?(n.songAttr=r.Long.fromValue(i.songAttr)).unsigned=!1:typeof i.songAttr=="string"?n.songAttr=parseInt(i.songAttr,10):typeof i.songAttr=="number"?n.songAttr=i.songAttr:typeof i.songAttr=="object"&&(n.songAttr=new r.LongBits(i.songAttr.low>>>0,i.songAttr.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(o.title="",o.coverUrl="",r.Long){let a=new r.Long(0,0,!1);o.songId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.songId=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.playCount=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.playCount=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.replyCount=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.replyCount=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.upperId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.upperId=n.longs===String?"0":0;if(o.entrance="",r.Long){let a=new r.Long(0,0,!1);o.songAttr=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.songAttr=n.longs===String?"0":0}return i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.coverUrl!=null&&i.hasOwnProperty("coverUrl")&&(o.coverUrl=i.coverUrl),i.songId!=null&&i.hasOwnProperty("songId")&&(typeof i.songId=="number"?o.songId=n.longs===String?String(i.songId):i.songId:o.songId=n.longs===String?r.Long.prototype.toString.call(i.songId):n.longs===Number?new r.LongBits(i.songId.low>>>0,i.songId.high>>>0).toNumber():i.songId),i.playCount!=null&&i.hasOwnProperty("playCount")&&(typeof i.playCount=="number"?o.playCount=n.longs===String?String(i.playCount):i.playCount:o.playCount=n.longs===String?r.Long.prototype.toString.call(i.playCount):n.longs===Number?new r.LongBits(i.playCount.low>>>0,i.playCount.high>>>0).toNumber():i.playCount),i.replyCount!=null&&i.hasOwnProperty("replyCount")&&(typeof i.replyCount=="number"?o.replyCount=n.longs===String?String(i.replyCount):i.replyCount:o.replyCount=n.longs===String?r.Long.prototype.toString.call(i.replyCount):n.longs===Number?new r.LongBits(i.replyCount.low>>>0,i.replyCount.high>>>0).toNumber():i.replyCount),i.upperId!=null&&i.hasOwnProperty("upperId")&&(typeof i.upperId=="number"?o.upperId=n.longs===String?String(i.upperId):i.upperId:o.upperId=n.longs===String?r.Long.prototype.toString.call(i.upperId):n.longs===Number?new r.LongBits(i.upperId.low>>>0,i.upperId.high>>>0).toNumber():i.upperId),i.entrance!=null&&i.hasOwnProperty("entrance")&&(o.entrance=i.entrance),i.songAttr!=null&&i.hasOwnProperty("songAttr")&&(typeof i.songAttr=="number"?o.songAttr=n.longs===String?String(i.songAttr):i.songAttr:o.songAttr=n.longs===String?r.Long.prototype.toString.call(i.songAttr):n.longs===Number?new r.LongBits(i.songAttr.low>>>0,i.songAttr.high>>>0).toNumber():i.songAttr),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.common.AudioInfo"},l}(),e.Banner=function(){function l(t){if(this.relateItem=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.title=i.string();break}case 2:{a.relateItem&&a.relateItem.length||(a.relateItem=[]),a.relateItem.push(u.bilibili.mall.tab3.viewunite.common.RelateItem.decode(i,i.uint32()));break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.Banner)return i;let n=new u.bilibili.mall.tab3.viewunite.common.Banner;if(i.title!=null&&(n.title=String(i.title)),i.relateItem){if(!Array.isArray(i.relateItem))throw TypeError(".bilibili.mall.tab3.viewunite.common.Banner.relateItem: array expected");n.relateItem=[];for(let o=0;o>>3){case 1:{a.url=i.string();break}case 2:{a.cover=i.string();break}case 3:{a.jumpType=i.int32();break}case 4:{a.report===r.emptyObject&&(a.report={});let g=i.uint32()+i.pos;for(y="",s="";i.pos>>3){case 1:y=i.string();break;case 2:s=i.string();break;default:i.skipType(S&7);break}}a.report[y]=s;break}default:i.skipType(v&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.ActBannerItem)return i;let n=new u.bilibili.mall.tab3.viewunite.common.ActBannerItem;switch(i.url!=null&&(n.url=String(i.url)),i.cover!=null&&(n.cover=String(i.cover)),i.jumpType){default:if(typeof i.jumpType=="number"){n.jumpType=i.jumpType;break}break;case"JUMP_TYPE_UNKNOWN":case 0:n.jumpType=0;break;case"OPEN_URL":case 1:n.jumpType=1;break;case"REFRESH":case 2:n.jumpType=2;break;case"HALF_SCREEN":case 3:n.jumpType=3;break;case"OPEN_URL_BY_OUTER_BROWSER":case 4:n.jumpType=4;break}if(i.report){if(typeof i.report!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.ActBannerItem.report: object expected");n.report={};for(let o=Object.keys(i.report),a=0;a>>3){case 1:{a.url=i.string();break}case 2:{a.cover=i.string();break}case 3:{a.useDefaultBrowser=i.bool();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.RelateItem)return i;let n=new u.bilibili.mall.tab3.viewunite.common.RelateItem;return i.url!=null&&(n.url=String(i.url)),i.cover!=null&&(n.cover=String(i.cover)),i.useDefaultBrowser!=null&&(n.useDefaultBrowser=!!i.useDefaultBrowser),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.url="",o.cover="",o.useDefaultBrowser=!1),i.url!=null&&i.hasOwnProperty("url")&&(o.url=i.url),i.cover!=null&&i.hasOwnProperty("cover")&&(o.cover=i.cover),i.useDefaultBrowser!=null&&i.hasOwnProperty("useDefaultBrowser")&&(o.useDefaultBrowser=i.useDefaultBrowser),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.common.RelateItem"},l}(),e.ActivityEntranceModule=function(){function l(t){if(this.activityEntrance=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.activityEntrance&&a.activityEntrance.length||(a.activityEntrance=[]),a.activityEntrance.push(u.bilibili.mall.tab3.viewunite.common.ActivityEntrance.decode(i,i.uint32()));break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.ActivityEntranceModule)return i;let n=new u.bilibili.mall.tab3.viewunite.common.ActivityEntranceModule;if(i.activityEntrance){if(!Array.isArray(i.activityEntrance))throw TypeError(".bilibili.mall.tab3.viewunite.common.ActivityEntranceModule.activityEntrance: array expected");n.activityEntrance=[];for(let o=0;o>>3){case 1:{a.activityCover=i.string();break}case 2:{a.activityTitle=i.string();break}case 3:{a.wordTag=i.string();break}case 4:{a.activitySubtitle=i.string();break}case 5:{a.activityLink=i.string();break}case 6:{a.activityType=i.int32();break}case 7:{a.reserveId=i.int32();break}case 8:{a.status=i.int32();break}case 9:{a.upperList&&a.upperList.length||(a.upperList=[]),a.upperList.push(u.bilibili.mall.tab3.viewunite.common.User.decode(i,i.uint32()));break}case 10:{a.report===r.emptyObject&&(a.report={});let g=i.uint32()+i.pos;for(y="",s="";i.pos>>3){case 1:y=i.string();break;case 2:s=i.string();break;default:i.skipType(S&7);break}}a.report[y]=s;break}default:i.skipType(v&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.ActivityEntrance)return i;let n=new u.bilibili.mall.tab3.viewunite.common.ActivityEntrance;if(i.activityCover!=null&&(n.activityCover=String(i.activityCover)),i.activityTitle!=null&&(n.activityTitle=String(i.activityTitle)),i.wordTag!=null&&(n.wordTag=String(i.wordTag)),i.activitySubtitle!=null&&(n.activitySubtitle=String(i.activitySubtitle)),i.activityLink!=null&&(n.activityLink=String(i.activityLink)),i.activityType!=null&&(n.activityType=i.activityType|0),i.reserveId!=null&&(n.reserveId=i.reserveId|0),i.status!=null&&(n.status=i.status|0),i.upperList){if(!Array.isArray(i.upperList))throw TypeError(".bilibili.mall.tab3.viewunite.common.ActivityEntrance.upperList: array expected");n.upperList=[];for(let o=0;o>>3){case 1:{a.total=i.int64();break}case 2:{a.week=i.int64();break}case 3:{a.rankList&&a.rankList.length||(a.rankList=[]),a.rankList.push(u.bilibili.mall.tab3.viewunite.common.SponsorRank.decode(i,i.uint32()));break}case 4:{a.mine=u.bilibili.mall.tab3.viewunite.common.Mine.decode(i,i.uint32());break}case 5:{a.pointActivity=u.bilibili.mall.tab3.viewunite.common.PointActivity.decode(i,i.uint32());break}case 6:{a.pendants&&a.pendants.length||(a.pendants=[]),a.pendants.push(u.bilibili.mall.tab3.viewunite.common.Pendant.decode(i,i.uint32()));break}case 7:{a.threshold&&a.threshold.length||(a.threshold=[]),a.threshold.push(u.bilibili.mall.tab3.viewunite.common.Threshold.decode(i,i.uint32()));break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.Sponsor)return i;let n=new u.bilibili.mall.tab3.viewunite.common.Sponsor;if(i.total!=null&&(r.Long?(n.total=r.Long.fromValue(i.total)).unsigned=!1:typeof i.total=="string"?n.total=parseInt(i.total,10):typeof i.total=="number"?n.total=i.total:typeof i.total=="object"&&(n.total=new r.LongBits(i.total.low>>>0,i.total.high>>>0).toNumber())),i.week!=null&&(r.Long?(n.week=r.Long.fromValue(i.week)).unsigned=!1:typeof i.week=="string"?n.week=parseInt(i.week,10):typeof i.week=="number"?n.week=i.week:typeof i.week=="object"&&(n.week=new r.LongBits(i.week.low>>>0,i.week.high>>>0).toNumber())),i.rankList){if(!Array.isArray(i.rankList))throw TypeError(".bilibili.mall.tab3.viewunite.common.Sponsor.rankList: array expected");n.rankList=[];for(let o=0;o>>0,i.total.high>>>0).toNumber():i.total),i.week!=null&&i.hasOwnProperty("week")&&(typeof i.week=="number"?o.week=n.longs===String?String(i.week):i.week:o.week=n.longs===String?r.Long.prototype.toString.call(i.week):n.longs===Number?new r.LongBits(i.week.low>>>0,i.week.high>>>0).toNumber():i.week),i.rankList&&i.rankList.length){o.rankList=[];for(let a=0;a>>3){case 1:{a.tip=i.string();break}case 2:{a.content=i.string();break}case 3:{a.link=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.PointActivity)return i;let n=new u.bilibili.mall.tab3.viewunite.common.PointActivity;return i.tip!=null&&(n.tip=String(i.tip)),i.content!=null&&(n.content=String(i.content)),i.link!=null&&(n.link=String(i.link)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.tip="",o.content="",o.link=""),i.tip!=null&&i.hasOwnProperty("tip")&&(o.tip=i.tip),i.content!=null&&i.hasOwnProperty("content")&&(o.content=i.content),i.link!=null&&i.hasOwnProperty("link")&&(o.link=i.link),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.common.PointActivity"},l}(),e.SponsorRank=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.uid=i.int64();break}case 2:{a.msg=i.string();break}case 3:{a.uname=i.string();break}case 4:{a.face=i.string();break}case 5:{a.vip=u.bilibili.mall.tab3.viewunite.common.Vip.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.SponsorRank)return i;let n=new u.bilibili.mall.tab3.viewunite.common.SponsorRank;if(i.uid!=null&&(r.Long?(n.uid=r.Long.fromValue(i.uid)).unsigned=!1:typeof i.uid=="string"?n.uid=parseInt(i.uid,10):typeof i.uid=="number"?n.uid=i.uid:typeof i.uid=="object"&&(n.uid=new r.LongBits(i.uid.low>>>0,i.uid.high>>>0).toNumber())),i.msg!=null&&(n.msg=String(i.msg)),i.uname!=null&&(n.uname=String(i.uname)),i.face!=null&&(n.face=String(i.face)),i.vip!=null){if(typeof i.vip!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.SponsorRank.vip: object expected");n.vip=u.bilibili.mall.tab3.viewunite.common.Vip.fromObject(i.vip)}return n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.uid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.uid=n.longs===String?"0":0;o.msg="",o.uname="",o.face="",o.vip=null}return i.uid!=null&&i.hasOwnProperty("uid")&&(typeof i.uid=="number"?o.uid=n.longs===String?String(i.uid):i.uid:o.uid=n.longs===String?r.Long.prototype.toString.call(i.uid):n.longs===Number?new r.LongBits(i.uid.low>>>0,i.uid.high>>>0).toNumber():i.uid),i.msg!=null&&i.hasOwnProperty("msg")&&(o.msg=i.msg),i.uname!=null&&i.hasOwnProperty("uname")&&(o.uname=i.uname),i.face!=null&&i.hasOwnProperty("face")&&(o.face=i.face),i.vip!=null&&i.hasOwnProperty("vip")&&(o.vip=u.bilibili.mall.tab3.viewunite.common.Vip.toObject(i.vip,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.common.SponsorRank"},l}(),e.Mine=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.amount=i.double();break}case 2:{a.rank=i.int32();break}case 3:{a.msg=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.Mine)return i;let n=new u.bilibili.mall.tab3.viewunite.common.Mine;return i.amount!=null&&(n.amount=Number(i.amount)),i.rank!=null&&(n.rank=i.rank|0),i.msg!=null&&(n.msg=String(i.msg)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.amount=0,o.rank=0,o.msg=""),i.amount!=null&&i.hasOwnProperty("amount")&&(o.amount=n.json&&!isFinite(i.amount)?String(i.amount):i.amount),i.rank!=null&&i.hasOwnProperty("rank")&&(o.rank=i.rank),i.msg!=null&&i.hasOwnProperty("msg")&&(o.msg=i.msg),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.common.Mine"},l}(),e.Relates=function(){function l(t){if(this.cards=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.cards&&a.cards.length||(a.cards=[]),a.cards.push(u.bilibili.mall.tab3.viewunite.common.RelateCard.decode(i,i.uint32()));break}case 2:{a.config=u.bilibili.mall.tab3.viewunite.common.RelateConfig.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.Relates)return i;let n=new u.bilibili.mall.tab3.viewunite.common.Relates;if(i.cards){if(!Array.isArray(i.cards))throw TypeError(".bilibili.mall.tab3.viewunite.common.Relates.cards: array expected");n.cards=[];for(let o=0;o>>3){case 1:{a.validShowM=i.int64();break}case 2:{a.validShowN=i.int64();break}case 3:{a.pagination=u.bilibili.pagination.Pagination.decode(i,i.uint32());break}case 4:{a.canLoadMore=i.bool();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.RelateConfig)return i;let n=new u.bilibili.mall.tab3.viewunite.common.RelateConfig;if(i.validShowM!=null&&(r.Long?(n.validShowM=r.Long.fromValue(i.validShowM)).unsigned=!1:typeof i.validShowM=="string"?n.validShowM=parseInt(i.validShowM,10):typeof i.validShowM=="number"?n.validShowM=i.validShowM:typeof i.validShowM=="object"&&(n.validShowM=new r.LongBits(i.validShowM.low>>>0,i.validShowM.high>>>0).toNumber())),i.validShowN!=null&&(r.Long?(n.validShowN=r.Long.fromValue(i.validShowN)).unsigned=!1:typeof i.validShowN=="string"?n.validShowN=parseInt(i.validShowN,10):typeof i.validShowN=="number"?n.validShowN=i.validShowN:typeof i.validShowN=="object"&&(n.validShowN=new r.LongBits(i.validShowN.low>>>0,i.validShowN.high>>>0).toNumber())),i.pagination!=null){if(typeof i.pagination!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.RelateConfig.pagination: object expected");n.pagination=u.bilibili.pagination.Pagination.fromObject(i.pagination)}return i.canLoadMore!=null&&(n.canLoadMore=!!i.canLoadMore),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.validShowM=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.validShowM=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.validShowN=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.validShowN=n.longs===String?"0":0;o.pagination=null,o.canLoadMore=!1}return i.validShowM!=null&&i.hasOwnProperty("validShowM")&&(typeof i.validShowM=="number"?o.validShowM=n.longs===String?String(i.validShowM):i.validShowM:o.validShowM=n.longs===String?r.Long.prototype.toString.call(i.validShowM):n.longs===Number?new r.LongBits(i.validShowM.low>>>0,i.validShowM.high>>>0).toNumber():i.validShowM),i.validShowN!=null&&i.hasOwnProperty("validShowN")&&(typeof i.validShowN=="number"?o.validShowN=n.longs===String?String(i.validShowN):i.validShowN:o.validShowN=n.longs===String?r.Long.prototype.toString.call(i.validShowN):n.longs===Number?new r.LongBits(i.validShowN.low>>>0,i.validShowN.high>>>0).toNumber():i.validShowN),i.pagination!=null&&i.hasOwnProperty("pagination")&&(o.pagination=u.bilibili.pagination.Pagination.toObject(i.pagination,n)),i.canLoadMore!=null&&i.hasOwnProperty("canLoadMore")&&(o.canLoadMore=i.canLoadMore),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.common.RelateConfig"},l}(),e.RelateCard=function(){function l(i){if(i)for(let n=Object.keys(i),o=0;o>>3){case 1:{y.relateCardType=n.int32();break}case 2:{y.av=u.bilibili.mall.tab3.viewunite.common.RelateAVCard.decode(n,n.uint32());break}case 3:{y.bangumi=u.bilibili.mall.tab3.viewunite.common.RelateBangumiCard.decode(n,n.uint32());break}case 4:{y.resource=u.bilibili.mall.tab3.viewunite.common.RelateBangumiResourceCard.decode(n,n.uint32());break}case 5:{y.game=u.bilibili.mall.tab3.viewunite.common.RelateGameCard.decode(n,n.uint32());break}case 6:{y.cm=u.bilibili.mall.tab3.viewunite.common.RelateCMCard.decode(n,n.uint32());break}case 7:{y.live=u.bilibili.mall.tab3.viewunite.common.RelateLiveCard.decode(n,n.uint32());break}case 8:{y.bangumiAv=u.bilibili.mall.tab3.viewunite.common.RelateBangumiAvCard.decode(n,n.uint32());break}case 9:{y.aiCard=u.bilibili.mall.tab3.viewunite.common.RelatedAICard.decode(n,n.uint32());break}case 13:{y.bangumiUgc=u.bilibili.mall.tab3.viewunite.common.RelateBangumiUGCCard.decode(n,n.uint32());break}case 14:{y.special=u.bilibili.mall.tab3.viewunite.common.RelateSpecial.decode(n,n.uint32());break}case 10:{y.threePoint=u.bilibili.mall.tab3.viewunite.common.RelateThreePoint.decode(n,n.uint32());break}case 11:{y.cmStock=u.google.protobuf.Any.decode(n,n.uint32());break}case 12:{y.basicInfo=u.bilibili.mall.tab3.viewunite.common.CardBasicInfo.decode(n,n.uint32());break}default:n.skipType(s&7);break}}return y},l.fromObject=function(n){if(n instanceof u.bilibili.mall.tab3.viewunite.common.RelateCard)return n;let o=new u.bilibili.mall.tab3.viewunite.common.RelateCard;switch(n.relateCardType){default:if(typeof n.relateCardType=="number"){o.relateCardType=n.relateCardType;break}break;case"CARD_TYPE_UNKNOWN":case 0:o.relateCardType=0;break;case"AV":case 1:o.relateCardType=1;break;case"BANGUMI":case 2:o.relateCardType=2;break;case"RESOURCE":case 3:o.relateCardType=3;break;case"GAME":case 4:o.relateCardType=4;break;case"CM":case 5:o.relateCardType=5;break;case"LIVE":case 6:o.relateCardType=6;break;case"AI_RECOMMEND":case 7:o.relateCardType=7;break;case"BANGUMI_AV":case 8:o.relateCardType=8;break;case"BANGUMI_UGC":case 9:o.relateCardType=9;break;case"SPECIAL":case 10:o.relateCardType=10;break}if(n.av!=null){if(typeof n.av!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.RelateCard.av: object expected");o.av=u.bilibili.mall.tab3.viewunite.common.RelateAVCard.fromObject(n.av)}if(n.bangumi!=null){if(typeof n.bangumi!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.RelateCard.bangumi: object expected");o.bangumi=u.bilibili.mall.tab3.viewunite.common.RelateBangumiCard.fromObject(n.bangumi)}if(n.resource!=null){if(typeof n.resource!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.RelateCard.resource: object expected");o.resource=u.bilibili.mall.tab3.viewunite.common.RelateBangumiResourceCard.fromObject(n.resource)}if(n.game!=null){if(typeof n.game!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.RelateCard.game: object expected");o.game=u.bilibili.mall.tab3.viewunite.common.RelateGameCard.fromObject(n.game)}if(n.cm!=null){if(typeof n.cm!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.RelateCard.cm: object expected");o.cm=u.bilibili.mall.tab3.viewunite.common.RelateCMCard.fromObject(n.cm)}if(n.live!=null){if(typeof n.live!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.RelateCard.live: object expected");o.live=u.bilibili.mall.tab3.viewunite.common.RelateLiveCard.fromObject(n.live)}if(n.bangumiAv!=null){if(typeof n.bangumiAv!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.RelateCard.bangumiAv: object expected");o.bangumiAv=u.bilibili.mall.tab3.viewunite.common.RelateBangumiAvCard.fromObject(n.bangumiAv)}if(n.aiCard!=null){if(typeof n.aiCard!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.RelateCard.aiCard: object expected");o.aiCard=u.bilibili.mall.tab3.viewunite.common.RelatedAICard.fromObject(n.aiCard)}if(n.bangumiUgc!=null){if(typeof n.bangumiUgc!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.RelateCard.bangumiUgc: object expected");o.bangumiUgc=u.bilibili.mall.tab3.viewunite.common.RelateBangumiUGCCard.fromObject(n.bangumiUgc)}if(n.special!=null){if(typeof n.special!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.RelateCard.special: object expected");o.special=u.bilibili.mall.tab3.viewunite.common.RelateSpecial.fromObject(n.special)}if(n.threePoint!=null){if(typeof n.threePoint!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.RelateCard.threePoint: object expected");o.threePoint=u.bilibili.mall.tab3.viewunite.common.RelateThreePoint.fromObject(n.threePoint)}if(n.cmStock!=null){if(typeof n.cmStock!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.RelateCard.cmStock: object expected");o.cmStock=u.google.protobuf.Any.fromObject(n.cmStock)}if(n.basicInfo!=null){if(typeof n.basicInfo!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.RelateCard.basicInfo: object expected");o.basicInfo=u.bilibili.mall.tab3.viewunite.common.CardBasicInfo.fromObject(n.basicInfo)}return o},l.toObject=function(n,o){o||(o={});let a={};return o.defaults&&(a.relateCardType=o.enums===String?"CARD_TYPE_UNKNOWN":0,a.threePoint=null,a.cmStock=null,a.basicInfo=null),n.relateCardType!=null&&n.hasOwnProperty("relateCardType")&&(a.relateCardType=o.enums===String?u.bilibili.mall.tab3.viewunite.common.RelateCardType[n.relateCardType]===void 0?n.relateCardType:u.bilibili.mall.tab3.viewunite.common.RelateCardType[n.relateCardType]:n.relateCardType),n.av!=null&&n.hasOwnProperty("av")&&(a.av=u.bilibili.mall.tab3.viewunite.common.RelateAVCard.toObject(n.av,o),o.oneofs&&(a.Card="av")),n.bangumi!=null&&n.hasOwnProperty("bangumi")&&(a.bangumi=u.bilibili.mall.tab3.viewunite.common.RelateBangumiCard.toObject(n.bangumi,o),o.oneofs&&(a.Card="bangumi")),n.resource!=null&&n.hasOwnProperty("resource")&&(a.resource=u.bilibili.mall.tab3.viewunite.common.RelateBangumiResourceCard.toObject(n.resource,o),o.oneofs&&(a.Card="resource")),n.game!=null&&n.hasOwnProperty("game")&&(a.game=u.bilibili.mall.tab3.viewunite.common.RelateGameCard.toObject(n.game,o),o.oneofs&&(a.Card="game")),n.cm!=null&&n.hasOwnProperty("cm")&&(a.cm=u.bilibili.mall.tab3.viewunite.common.RelateCMCard.toObject(n.cm,o),o.oneofs&&(a.Card="cm")),n.live!=null&&n.hasOwnProperty("live")&&(a.live=u.bilibili.mall.tab3.viewunite.common.RelateLiveCard.toObject(n.live,o),o.oneofs&&(a.Card="live")),n.bangumiAv!=null&&n.hasOwnProperty("bangumiAv")&&(a.bangumiAv=u.bilibili.mall.tab3.viewunite.common.RelateBangumiAvCard.toObject(n.bangumiAv,o),o.oneofs&&(a.Card="bangumiAv")),n.aiCard!=null&&n.hasOwnProperty("aiCard")&&(a.aiCard=u.bilibili.mall.tab3.viewunite.common.RelatedAICard.toObject(n.aiCard,o),o.oneofs&&(a.Card="aiCard")),n.threePoint!=null&&n.hasOwnProperty("threePoint")&&(a.threePoint=u.bilibili.mall.tab3.viewunite.common.RelateThreePoint.toObject(n.threePoint,o)),n.cmStock!=null&&n.hasOwnProperty("cmStock")&&(a.cmStock=u.google.protobuf.Any.toObject(n.cmStock,o)),n.basicInfo!=null&&n.hasOwnProperty("basicInfo")&&(a.basicInfo=u.bilibili.mall.tab3.viewunite.common.CardBasicInfo.toObject(n.basicInfo,o)),n.bangumiUgc!=null&&n.hasOwnProperty("bangumiUgc")&&(a.bangumiUgc=u.bilibili.mall.tab3.viewunite.common.RelateBangumiUGCCard.toObject(n.bangumiUgc,o),o.oneofs&&(a.Card="bangumiUgc")),n.special!=null&&n.hasOwnProperty("special")&&(a.special=u.bilibili.mall.tab3.viewunite.common.RelateSpecial.toObject(n.special,o),o.oneofs&&(a.Card="special")),a},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/bilibili.mall.tab3.viewunite.common.RelateCard"},l}(),e.RelateSpecial=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.badge=u.bilibili.mall.tab3.viewunite.common.BadgeInfo.decode(i,i.uint32());break}case 2:{a.rcmdReason=u.bilibili.mall.tab3.viewunite.common.BadgeInfo.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.RelateSpecial)return i;let n=new u.bilibili.mall.tab3.viewunite.common.RelateSpecial;if(i.badge!=null){if(typeof i.badge!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.RelateSpecial.badge: object expected");n.badge=u.bilibili.mall.tab3.viewunite.common.BadgeInfo.fromObject(i.badge)}if(i.rcmdReason!=null){if(typeof i.rcmdReason!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.RelateSpecial.rcmdReason: object expected");n.rcmdReason=u.bilibili.mall.tab3.viewunite.common.BadgeInfo.fromObject(i.rcmdReason)}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.badge=null,o.rcmdReason=null),i.badge!=null&&i.hasOwnProperty("badge")&&(o.badge=u.bilibili.mall.tab3.viewunite.common.BadgeInfo.toObject(i.badge,n)),i.rcmdReason!=null&&i.hasOwnProperty("rcmdReason")&&(o.rcmdReason=u.bilibili.mall.tab3.viewunite.common.BadgeInfo.toObject(i.rcmdReason,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.common.RelateSpecial"},l}(),e.RelatedAICard=function(){function l(t){if(this.report={},t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.aid=i.int64();break}case 2:{a.duration=i.int64();break}case 3:{a.upInfo=u.bilibili.mall.tab3.viewunite.common.Staff.decode(i,i.uint32());break}case 4:{a.stat=u.bilibili.mall.tab3.viewunite.common.Stat.decode(i,i.uint32());break}case 5:{a.report===r.emptyObject&&(a.report={});let g=i.uint32()+i.pos;for(y="",s="";i.pos>>3){case 1:y=i.string();break;case 2:s=i.string();break;default:i.skipType(S&7);break}}a.report[y]=s;break}case 6:{a.gotoType=i.string();break}default:i.skipType(v&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.RelatedAICard)return i;let n=new u.bilibili.mall.tab3.viewunite.common.RelatedAICard;if(i.aid!=null&&(r.Long?(n.aid=r.Long.fromValue(i.aid)).unsigned=!1:typeof i.aid=="string"?n.aid=parseInt(i.aid,10):typeof i.aid=="number"?n.aid=i.aid:typeof i.aid=="object"&&(n.aid=new r.LongBits(i.aid.low>>>0,i.aid.high>>>0).toNumber())),i.duration!=null&&(r.Long?(n.duration=r.Long.fromValue(i.duration)).unsigned=!1:typeof i.duration=="string"?n.duration=parseInt(i.duration,10):typeof i.duration=="number"?n.duration=i.duration:typeof i.duration=="object"&&(n.duration=new r.LongBits(i.duration.low>>>0,i.duration.high>>>0).toNumber())),i.upInfo!=null){if(typeof i.upInfo!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.RelatedAICard.upInfo: object expected");n.upInfo=u.bilibili.mall.tab3.viewunite.common.Staff.fromObject(i.upInfo)}if(i.stat!=null){if(typeof i.stat!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.RelatedAICard.stat: object expected");n.stat=u.bilibili.mall.tab3.viewunite.common.Stat.fromObject(i.stat)}if(i.report){if(typeof i.report!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.RelatedAICard.report: object expected");n.report={};for(let o=Object.keys(i.report),a=0;a>>0,i.aid.high>>>0).toNumber():i.aid),i.duration!=null&&i.hasOwnProperty("duration")&&(typeof i.duration=="number"?o.duration=n.longs===String?String(i.duration):i.duration:o.duration=n.longs===String?r.Long.prototype.toString.call(i.duration):n.longs===Number?new r.LongBits(i.duration.low>>>0,i.duration.high>>>0).toNumber():i.duration),i.upInfo!=null&&i.hasOwnProperty("upInfo")&&(o.upInfo=u.bilibili.mall.tab3.viewunite.common.Staff.toObject(i.upInfo,n)),i.stat!=null&&i.hasOwnProperty("stat")&&(o.stat=u.bilibili.mall.tab3.viewunite.common.Stat.toObject(i.stat,n));let a;if(i.report&&(a=Object.keys(i.report)).length){o.report={};for(let y=0;y>>3){case 1:{a.dislike=u.bilibili.mall.tab3.viewunite.common.RelateDislike.decode(i,i.uint32());break}case 2:{a.feedback=u.bilibili.mall.tab3.viewunite.common.RelateDislike.decode(i,i.uint32());break}case 3:{a.watchLater=i.bool();break}case 4:{a.dislikeReportData=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.RelateThreePoint)return i;let n=new u.bilibili.mall.tab3.viewunite.common.RelateThreePoint;if(i.dislike!=null){if(typeof i.dislike!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.RelateThreePoint.dislike: object expected");n.dislike=u.bilibili.mall.tab3.viewunite.common.RelateDislike.fromObject(i.dislike)}if(i.feedback!=null){if(typeof i.feedback!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.RelateThreePoint.feedback: object expected");n.feedback=u.bilibili.mall.tab3.viewunite.common.RelateDislike.fromObject(i.feedback)}return i.watchLater!=null&&(n.watchLater=!!i.watchLater),i.dislikeReportData!=null&&(n.dislikeReportData=String(i.dislikeReportData)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.dislike=null,o.feedback=null,o.watchLater=!1,o.dislikeReportData=""),i.dislike!=null&&i.hasOwnProperty("dislike")&&(o.dislike=u.bilibili.mall.tab3.viewunite.common.RelateDislike.toObject(i.dislike,n)),i.feedback!=null&&i.hasOwnProperty("feedback")&&(o.feedback=u.bilibili.mall.tab3.viewunite.common.RelateDislike.toObject(i.feedback,n)),i.watchLater!=null&&i.hasOwnProperty("watchLater")&&(o.watchLater=i.watchLater),i.dislikeReportData!=null&&i.hasOwnProperty("dislikeReportData")&&(o.dislikeReportData=i.dislikeReportData),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.common.RelateThreePoint"},l}(),e.RelateDislike=function(){function l(t){if(this.dislikeReason=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.title=i.string();break}case 2:{a.subTitle=i.string();break}case 3:{a.closedSubTitle=i.string();break}case 4:{a.pasteText=i.string();break}case 5:{a.closedPasteText=i.string();break}case 6:{a.dislikeReason&&a.dislikeReason.length||(a.dislikeReason=[]),a.dislikeReason.push(u.bilibili.mall.tab3.viewunite.common.DislikeReasons.decode(i,i.uint32()));break}case 7:{a.toast=i.string();break}case 8:{a.closedToast=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.RelateDislike)return i;let n=new u.bilibili.mall.tab3.viewunite.common.RelateDislike;if(i.title!=null&&(n.title=String(i.title)),i.subTitle!=null&&(n.subTitle=String(i.subTitle)),i.closedSubTitle!=null&&(n.closedSubTitle=String(i.closedSubTitle)),i.pasteText!=null&&(n.pasteText=String(i.pasteText)),i.closedPasteText!=null&&(n.closedPasteText=String(i.closedPasteText)),i.dislikeReason){if(!Array.isArray(i.dislikeReason))throw TypeError(".bilibili.mall.tab3.viewunite.common.RelateDislike.dislikeReason: array expected");n.dislikeReason=[];for(let o=0;o>>3){case 1:{a.title=i.string();break}case 2:{a.desc=i.string();break}case 3:{a.cover=i.string();break}case 4:{a.uri=i.string();break}case 5:{a.trackId=i.string();break}case 6:{a.uniqueId=i.string();break}case 7:{a.fromSourceType=i.int64();break}case 8:{a.fromSourceId=i.string();break}case 9:{a.materialId=i.int64();break}case 10:{a.coverGif=i.string();break}case 11:{a.author=u.bilibili.mall.tab3.viewunite.common.Owner.decode(i,i.uint32());break}case 12:{a.id=i.int64();break}case 13:{a.from=i.string();break}case 14:{a.fromSpmidSuffix=i.string();break}case 15:{a.reportFlowData=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.CardBasicInfo)return i;let n=new u.bilibili.mall.tab3.viewunite.common.CardBasicInfo;if(i.title!=null&&(n.title=String(i.title)),i.desc!=null&&(n.desc=String(i.desc)),i.cover!=null&&(n.cover=String(i.cover)),i.uri!=null&&(n.uri=String(i.uri)),i.trackId!=null&&(n.trackId=String(i.trackId)),i.uniqueId!=null&&(n.uniqueId=String(i.uniqueId)),i.fromSourceType!=null&&(r.Long?(n.fromSourceType=r.Long.fromValue(i.fromSourceType)).unsigned=!1:typeof i.fromSourceType=="string"?n.fromSourceType=parseInt(i.fromSourceType,10):typeof i.fromSourceType=="number"?n.fromSourceType=i.fromSourceType:typeof i.fromSourceType=="object"&&(n.fromSourceType=new r.LongBits(i.fromSourceType.low>>>0,i.fromSourceType.high>>>0).toNumber())),i.fromSourceId!=null&&(n.fromSourceId=String(i.fromSourceId)),i.materialId!=null&&(r.Long?(n.materialId=r.Long.fromValue(i.materialId)).unsigned=!1:typeof i.materialId=="string"?n.materialId=parseInt(i.materialId,10):typeof i.materialId=="number"?n.materialId=i.materialId:typeof i.materialId=="object"&&(n.materialId=new r.LongBits(i.materialId.low>>>0,i.materialId.high>>>0).toNumber())),i.coverGif!=null&&(n.coverGif=String(i.coverGif)),i.author!=null){if(typeof i.author!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.CardBasicInfo.author: object expected");n.author=u.bilibili.mall.tab3.viewunite.common.Owner.fromObject(i.author)}return i.id!=null&&(r.Long?(n.id=r.Long.fromValue(i.id)).unsigned=!1:typeof i.id=="string"?n.id=parseInt(i.id,10):typeof i.id=="number"?n.id=i.id:typeof i.id=="object"&&(n.id=new r.LongBits(i.id.low>>>0,i.id.high>>>0).toNumber())),i.from!=null&&(n.from=String(i.from)),i.fromSpmidSuffix!=null&&(n.fromSpmidSuffix=String(i.fromSpmidSuffix)),i.reportFlowData!=null&&(n.reportFlowData=String(i.reportFlowData)),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(o.title="",o.desc="",o.cover="",o.uri="",o.trackId="",o.uniqueId="",r.Long){let a=new r.Long(0,0,!1);o.fromSourceType=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.fromSourceType=n.longs===String?"0":0;if(o.fromSourceId="",r.Long){let a=new r.Long(0,0,!1);o.materialId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.materialId=n.longs===String?"0":0;if(o.coverGif="",o.author=null,r.Long){let a=new r.Long(0,0,!1);o.id=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.id=n.longs===String?"0":0;o.from="",o.fromSpmidSuffix="",o.reportFlowData=""}return i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.desc!=null&&i.hasOwnProperty("desc")&&(o.desc=i.desc),i.cover!=null&&i.hasOwnProperty("cover")&&(o.cover=i.cover),i.uri!=null&&i.hasOwnProperty("uri")&&(o.uri=i.uri),i.trackId!=null&&i.hasOwnProperty("trackId")&&(o.trackId=i.trackId),i.uniqueId!=null&&i.hasOwnProperty("uniqueId")&&(o.uniqueId=i.uniqueId),i.fromSourceType!=null&&i.hasOwnProperty("fromSourceType")&&(typeof i.fromSourceType=="number"?o.fromSourceType=n.longs===String?String(i.fromSourceType):i.fromSourceType:o.fromSourceType=n.longs===String?r.Long.prototype.toString.call(i.fromSourceType):n.longs===Number?new r.LongBits(i.fromSourceType.low>>>0,i.fromSourceType.high>>>0).toNumber():i.fromSourceType),i.fromSourceId!=null&&i.hasOwnProperty("fromSourceId")&&(o.fromSourceId=i.fromSourceId),i.materialId!=null&&i.hasOwnProperty("materialId")&&(typeof i.materialId=="number"?o.materialId=n.longs===String?String(i.materialId):i.materialId:o.materialId=n.longs===String?r.Long.prototype.toString.call(i.materialId):n.longs===Number?new r.LongBits(i.materialId.low>>>0,i.materialId.high>>>0).toNumber():i.materialId),i.coverGif!=null&&i.hasOwnProperty("coverGif")&&(o.coverGif=i.coverGif),i.author!=null&&i.hasOwnProperty("author")&&(o.author=u.bilibili.mall.tab3.viewunite.common.Owner.toObject(i.author,n)),i.id!=null&&i.hasOwnProperty("id")&&(typeof i.id=="number"?o.id=n.longs===String?String(i.id):i.id:o.id=n.longs===String?r.Long.prototype.toString.call(i.id):n.longs===Number?new r.LongBits(i.id.low>>>0,i.id.high>>>0).toNumber():i.id),i.from!=null&&i.hasOwnProperty("from")&&(o.from=i.from),i.fromSpmidSuffix!=null&&i.hasOwnProperty("fromSpmidSuffix")&&(o.fromSpmidSuffix=i.fromSpmidSuffix),i.reportFlowData!=null&&i.hasOwnProperty("reportFlowData")&&(o.reportFlowData=i.reportFlowData),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.common.CardBasicInfo"},l}(),e.RelateBangumiAvCard=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.badge=u.bilibili.mall.tab3.viewunite.common.BadgeInfo.decode(i,i.uint32());break}case 2:{a.stat=u.bilibili.mall.tab3.viewunite.common.Stat.decode(i,i.uint32());break}case 3:{a.rating=u.bilibili.mall.tab3.viewunite.common.Rating.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.RelateBangumiAvCard)return i;let n=new u.bilibili.mall.tab3.viewunite.common.RelateBangumiAvCard;if(i.badge!=null){if(typeof i.badge!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.RelateBangumiAvCard.badge: object expected");n.badge=u.bilibili.mall.tab3.viewunite.common.BadgeInfo.fromObject(i.badge)}if(i.stat!=null){if(typeof i.stat!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.RelateBangumiAvCard.stat: object expected");n.stat=u.bilibili.mall.tab3.viewunite.common.Stat.fromObject(i.stat)}if(i.rating!=null){if(typeof i.rating!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.RelateBangumiAvCard.rating: object expected");n.rating=u.bilibili.mall.tab3.viewunite.common.Rating.fromObject(i.rating)}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.badge=null,o.stat=null,o.rating=null),i.badge!=null&&i.hasOwnProperty("badge")&&(o.badge=u.bilibili.mall.tab3.viewunite.common.BadgeInfo.toObject(i.badge,n)),i.stat!=null&&i.hasOwnProperty("stat")&&(o.stat=u.bilibili.mall.tab3.viewunite.common.Stat.toObject(i.stat,n)),i.rating!=null&&i.hasOwnProperty("rating")&&(o.rating=u.bilibili.mall.tab3.viewunite.common.Rating.toObject(i.rating,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.common.RelateBangumiAvCard"},l}(),e.RelateAVCard=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.duration=i.int64();break}case 2:{a.cid=i.int64();break}case 3:{a.dimension=u.bilibili.mall.tab3.viewunite.common.Dimension.decode(i,i.uint32());break}case 4:{a.stat=u.bilibili.mall.tab3.viewunite.common.Stat.decode(i,i.uint32());break}case 5:{a.jumpUrl=i.string();break}case 6:{a.showUpName=i.bool();break}case 7:{a.rcmdReason=u.bilibili.mall.tab3.viewunite.common.BadgeInfo.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.RelateAVCard)return i;let n=new u.bilibili.mall.tab3.viewunite.common.RelateAVCard;if(i.duration!=null&&(r.Long?(n.duration=r.Long.fromValue(i.duration)).unsigned=!1:typeof i.duration=="string"?n.duration=parseInt(i.duration,10):typeof i.duration=="number"?n.duration=i.duration:typeof i.duration=="object"&&(n.duration=new r.LongBits(i.duration.low>>>0,i.duration.high>>>0).toNumber())),i.cid!=null&&(r.Long?(n.cid=r.Long.fromValue(i.cid)).unsigned=!1:typeof i.cid=="string"?n.cid=parseInt(i.cid,10):typeof i.cid=="number"?n.cid=i.cid:typeof i.cid=="object"&&(n.cid=new r.LongBits(i.cid.low>>>0,i.cid.high>>>0).toNumber())),i.dimension!=null){if(typeof i.dimension!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.RelateAVCard.dimension: object expected");n.dimension=u.bilibili.mall.tab3.viewunite.common.Dimension.fromObject(i.dimension)}if(i.stat!=null){if(typeof i.stat!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.RelateAVCard.stat: object expected");n.stat=u.bilibili.mall.tab3.viewunite.common.Stat.fromObject(i.stat)}if(i.jumpUrl!=null&&(n.jumpUrl=String(i.jumpUrl)),i.showUpName!=null&&(n.showUpName=!!i.showUpName),i.rcmdReason!=null){if(typeof i.rcmdReason!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.RelateAVCard.rcmdReason: object expected");n.rcmdReason=u.bilibili.mall.tab3.viewunite.common.BadgeInfo.fromObject(i.rcmdReason)}return n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.duration=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.duration=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.cid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.cid=n.longs===String?"0":0;o.dimension=null,o.stat=null,o.jumpUrl="",o.showUpName=!1,o.rcmdReason=null}return i.duration!=null&&i.hasOwnProperty("duration")&&(typeof i.duration=="number"?o.duration=n.longs===String?String(i.duration):i.duration:o.duration=n.longs===String?r.Long.prototype.toString.call(i.duration):n.longs===Number?new r.LongBits(i.duration.low>>>0,i.duration.high>>>0).toNumber():i.duration),i.cid!=null&&i.hasOwnProperty("cid")&&(typeof i.cid=="number"?o.cid=n.longs===String?String(i.cid):i.cid:o.cid=n.longs===String?r.Long.prototype.toString.call(i.cid):n.longs===Number?new r.LongBits(i.cid.low>>>0,i.cid.high>>>0).toNumber():i.cid),i.dimension!=null&&i.hasOwnProperty("dimension")&&(o.dimension=u.bilibili.mall.tab3.viewunite.common.Dimension.toObject(i.dimension,n)),i.stat!=null&&i.hasOwnProperty("stat")&&(o.stat=u.bilibili.mall.tab3.viewunite.common.Stat.toObject(i.stat,n)),i.jumpUrl!=null&&i.hasOwnProperty("jumpUrl")&&(o.jumpUrl=i.jumpUrl),i.showUpName!=null&&i.hasOwnProperty("showUpName")&&(o.showUpName=i.showUpName),i.rcmdReason!=null&&i.hasOwnProperty("rcmdReason")&&(o.rcmdReason=u.bilibili.mall.tab3.viewunite.common.BadgeInfo.toObject(i.rcmdReason,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.common.RelateAVCard"},l}(),e.RelateBangumiCard=function(){function l(t){if(this.report={},t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.seasonId=i.int32();break}case 2:{a.seasonType=i.int32();break}case 3:{a.newEp=u.bilibili.mall.tab3.viewunite.common.NewEp.decode(i,i.uint32());break}case 4:{a.stat=u.bilibili.mall.tab3.viewunite.common.Stat.decode(i,i.uint32());break}case 5:{a.rating=u.bilibili.mall.tab3.viewunite.common.Rating.decode(i,i.uint32());break}case 6:{a.rcmdReason=i.string();break}case 7:{a.badgeInfo=u.bilibili.mall.tab3.viewunite.common.BadgeInfo.decode(i,i.uint32());break}case 8:{a.gotoType=i.string();break}case 9:{a.report===r.emptyObject&&(a.report={});let g=i.uint32()+i.pos;for(y="",s="";i.pos>>3){case 1:y=i.string();break;case 2:s=i.string();break;default:i.skipType(S&7);break}}a.report[y]=s;break}default:i.skipType(v&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.RelateBangumiCard)return i;let n=new u.bilibili.mall.tab3.viewunite.common.RelateBangumiCard;if(i.seasonId!=null&&(n.seasonId=i.seasonId|0),i.seasonType!=null&&(n.seasonType=i.seasonType|0),i.newEp!=null){if(typeof i.newEp!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.RelateBangumiCard.newEp: object expected");n.newEp=u.bilibili.mall.tab3.viewunite.common.NewEp.fromObject(i.newEp)}if(i.stat!=null){if(typeof i.stat!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.RelateBangumiCard.stat: object expected");n.stat=u.bilibili.mall.tab3.viewunite.common.Stat.fromObject(i.stat)}if(i.rating!=null){if(typeof i.rating!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.RelateBangumiCard.rating: object expected");n.rating=u.bilibili.mall.tab3.viewunite.common.Rating.fromObject(i.rating)}if(i.rcmdReason!=null&&(n.rcmdReason=String(i.rcmdReason)),i.badgeInfo!=null){if(typeof i.badgeInfo!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.RelateBangumiCard.badgeInfo: object expected");n.badgeInfo=u.bilibili.mall.tab3.viewunite.common.BadgeInfo.fromObject(i.badgeInfo)}if(i.gotoType!=null&&(n.gotoType=String(i.gotoType)),i.report){if(typeof i.report!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.RelateBangumiCard.report: object expected");n.report={};for(let o=Object.keys(i.report),a=0;a>>3){case 1:{a.badge=u.bilibili.mall.tab3.viewunite.common.BadgeInfo.decode(i,i.uint32());break}case 2:{a.stat=u.bilibili.mall.tab3.viewunite.common.Stat.decode(i,i.uint32());break}case 3:{a.rating=u.bilibili.mall.tab3.viewunite.common.Rating.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.RelateBangumiUGCCard)return i;let n=new u.bilibili.mall.tab3.viewunite.common.RelateBangumiUGCCard;if(i.badge!=null){if(typeof i.badge!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.RelateBangumiUGCCard.badge: object expected");n.badge=u.bilibili.mall.tab3.viewunite.common.BadgeInfo.fromObject(i.badge)}if(i.stat!=null){if(typeof i.stat!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.RelateBangumiUGCCard.stat: object expected");n.stat=u.bilibili.mall.tab3.viewunite.common.Stat.fromObject(i.stat)}if(i.rating!=null){if(typeof i.rating!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.RelateBangumiUGCCard.rating: object expected");n.rating=u.bilibili.mall.tab3.viewunite.common.Rating.fromObject(i.rating)}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.badge=null,o.stat=null,o.rating=null),i.badge!=null&&i.hasOwnProperty("badge")&&(o.badge=u.bilibili.mall.tab3.viewunite.common.BadgeInfo.toObject(i.badge,n)),i.stat!=null&&i.hasOwnProperty("stat")&&(o.stat=u.bilibili.mall.tab3.viewunite.common.Stat.toObject(i.stat,n)),i.rating!=null&&i.hasOwnProperty("rating")&&(o.rating=u.bilibili.mall.tab3.viewunite.common.Rating.toObject(i.rating,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.common.RelateBangumiUGCCard"},l}(),e.IconFont=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.name=i.string();break}case 2:{a.text=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.IconFont)return i;let n=new u.bilibili.mall.tab3.viewunite.common.IconFont;return i.name!=null&&(n.name=String(i.name)),i.text!=null&&(n.text=String(i.text)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.name="",o.text=""),i.name!=null&&i.hasOwnProperty("name")&&(o.name=i.name),i.text!=null&&i.hasOwnProperty("text")&&(o.text=i.text),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.common.IconFont"},l}(),e.UserStatus=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.show=i.int32();break}case 2:{a.follow=i.int32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.UserStatus)return i;let n=new u.bilibili.mall.tab3.viewunite.common.UserStatus;return i.show!=null&&(n.show=i.show|0),i.follow!=null&&(n.follow=i.follow|0),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.show=0,o.follow=0),i.show!=null&&i.hasOwnProperty("show")&&(o.show=i.show),i.follow!=null&&i.hasOwnProperty("follow")&&(o.follow=i.follow),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.common.UserStatus"},l}(),e.RelateBangumiResourceCard=function(){function l(t){if(this.report={},t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.type=i.int32();break}case 2:{a.scover=i.string();break}case 3:{a.reType=i.int32();break}case 4:{a.reValue=i.string();break}case 5:{a.corner=i.string();break}case 6:{a.card=i.int32();break}case 7:{a.siz=i.string();break}case 8:{a.position=i.int32();break}case 9:{a.rcmdReason=i.string();break}case 10:{a.label=i.string();break}case 11:{a.report===r.emptyObject&&(a.report={});let g=i.uint32()+i.pos;for(y="",s="";i.pos>>3){case 1:y=i.string();break;case 2:s=i.string();break;default:i.skipType(S&7);break}}a.report[y]=s;break}case 12:{a.gotoType=i.string();break}default:i.skipType(v&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.RelateBangumiResourceCard)return i;let n=new u.bilibili.mall.tab3.viewunite.common.RelateBangumiResourceCard;if(i.type!=null&&(n.type=i.type|0),i.scover!=null&&(n.scover=String(i.scover)),i.reType!=null&&(n.reType=i.reType|0),i.reValue!=null&&(n.reValue=String(i.reValue)),i.corner!=null&&(n.corner=String(i.corner)),i.card!=null&&(n.card=i.card|0),i.siz!=null&&(n.siz=String(i.siz)),i.position!=null&&(n.position=i.position|0),i.rcmdReason!=null&&(n.rcmdReason=String(i.rcmdReason)),i.label!=null&&(n.label=String(i.label)),i.report){if(typeof i.report!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.RelateBangumiResourceCard.report: object expected");n.report={};for(let o=Object.keys(i.report),a=0;a>>3){case 1:{a.reserveStatus=i.int64();break}case 2:{a.reserveStatusText=i.string();break}case 3:{a.reserve=i.string();break}case 4:{a.rating=i.float();break}case 5:{a.tagName=i.string();break}case 6:{a.rankInfo=u.bilibili.mall.tab3.viewunite.common.RankInfo.decode(i,i.uint32());break}case 7:{a.packInfo=u.bilibili.mall.tab3.viewunite.common.Button.decode(i,i.uint32());break}case 8:{a.notice=u.bilibili.mall.tab3.viewunite.common.Button.decode(i,i.uint32());break}case 9:{a.powerIconStyle=u.bilibili.mall.tab3.viewunite.common.PowerIconStyle.decode(i,i.uint32());break}case 10:{a.gameRcmdReason=i.string();break}case 11:{a.wikiInfo=u.bilibili.mall.tab3.viewunite.common.WikiInfo.decode(i,i.uint32());break}case 12:{a.badge=u.bilibili.mall.tab3.viewunite.common.BadgeInfo.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.RelateGameCard)return i;let n=new u.bilibili.mall.tab3.viewunite.common.RelateGameCard;if(i.reserveStatus!=null&&(r.Long?(n.reserveStatus=r.Long.fromValue(i.reserveStatus)).unsigned=!1:typeof i.reserveStatus=="string"?n.reserveStatus=parseInt(i.reserveStatus,10):typeof i.reserveStatus=="number"?n.reserveStatus=i.reserveStatus:typeof i.reserveStatus=="object"&&(n.reserveStatus=new r.LongBits(i.reserveStatus.low>>>0,i.reserveStatus.high>>>0).toNumber())),i.reserveStatusText!=null&&(n.reserveStatusText=String(i.reserveStatusText)),i.reserve!=null&&(n.reserve=String(i.reserve)),i.rating!=null&&(n.rating=Number(i.rating)),i.tagName!=null&&(n.tagName=String(i.tagName)),i.rankInfo!=null){if(typeof i.rankInfo!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.RelateGameCard.rankInfo: object expected");n.rankInfo=u.bilibili.mall.tab3.viewunite.common.RankInfo.fromObject(i.rankInfo)}if(i.packInfo!=null){if(typeof i.packInfo!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.RelateGameCard.packInfo: object expected");n.packInfo=u.bilibili.mall.tab3.viewunite.common.Button.fromObject(i.packInfo)}if(i.notice!=null){if(typeof i.notice!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.RelateGameCard.notice: object expected");n.notice=u.bilibili.mall.tab3.viewunite.common.Button.fromObject(i.notice)}if(i.powerIconStyle!=null){if(typeof i.powerIconStyle!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.RelateGameCard.powerIconStyle: object expected");n.powerIconStyle=u.bilibili.mall.tab3.viewunite.common.PowerIconStyle.fromObject(i.powerIconStyle)}if(i.gameRcmdReason!=null&&(n.gameRcmdReason=String(i.gameRcmdReason)),i.wikiInfo!=null){if(typeof i.wikiInfo!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.RelateGameCard.wikiInfo: object expected");n.wikiInfo=u.bilibili.mall.tab3.viewunite.common.WikiInfo.fromObject(i.wikiInfo)}if(i.badge!=null){if(typeof i.badge!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.RelateGameCard.badge: object expected");n.badge=u.bilibili.mall.tab3.viewunite.common.BadgeInfo.fromObject(i.badge)}return n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.reserveStatus=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.reserveStatus=n.longs===String?"0":0;o.reserveStatusText="",o.reserve="",o.rating=0,o.tagName="",o.rankInfo=null,o.packInfo=null,o.notice=null,o.powerIconStyle=null,o.gameRcmdReason="",o.wikiInfo=null,o.badge=null}return i.reserveStatus!=null&&i.hasOwnProperty("reserveStatus")&&(typeof i.reserveStatus=="number"?o.reserveStatus=n.longs===String?String(i.reserveStatus):i.reserveStatus:o.reserveStatus=n.longs===String?r.Long.prototype.toString.call(i.reserveStatus):n.longs===Number?new r.LongBits(i.reserveStatus.low>>>0,i.reserveStatus.high>>>0).toNumber():i.reserveStatus),i.reserveStatusText!=null&&i.hasOwnProperty("reserveStatusText")&&(o.reserveStatusText=i.reserveStatusText),i.reserve!=null&&i.hasOwnProperty("reserve")&&(o.reserve=i.reserve),i.rating!=null&&i.hasOwnProperty("rating")&&(o.rating=n.json&&!isFinite(i.rating)?String(i.rating):i.rating),i.tagName!=null&&i.hasOwnProperty("tagName")&&(o.tagName=i.tagName),i.rankInfo!=null&&i.hasOwnProperty("rankInfo")&&(o.rankInfo=u.bilibili.mall.tab3.viewunite.common.RankInfo.toObject(i.rankInfo,n)),i.packInfo!=null&&i.hasOwnProperty("packInfo")&&(o.packInfo=u.bilibili.mall.tab3.viewunite.common.Button.toObject(i.packInfo,n)),i.notice!=null&&i.hasOwnProperty("notice")&&(o.notice=u.bilibili.mall.tab3.viewunite.common.Button.toObject(i.notice,n)),i.powerIconStyle!=null&&i.hasOwnProperty("powerIconStyle")&&(o.powerIconStyle=u.bilibili.mall.tab3.viewunite.common.PowerIconStyle.toObject(i.powerIconStyle,n)),i.gameRcmdReason!=null&&i.hasOwnProperty("gameRcmdReason")&&(o.gameRcmdReason=i.gameRcmdReason),i.wikiInfo!=null&&i.hasOwnProperty("wikiInfo")&&(o.wikiInfo=u.bilibili.mall.tab3.viewunite.common.WikiInfo.toObject(i.wikiInfo,n)),i.badge!=null&&i.hasOwnProperty("badge")&&(o.badge=u.bilibili.mall.tab3.viewunite.common.BadgeInfo.toObject(i.badge,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.common.RelateGameCard"},l}(),e.WikiInfo=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.wikiLabel=i.string();break}case 2:{a.wikiUrl=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.WikiInfo)return i;let n=new u.bilibili.mall.tab3.viewunite.common.WikiInfo;return i.wikiLabel!=null&&(n.wikiLabel=String(i.wikiLabel)),i.wikiUrl!=null&&(n.wikiUrl=String(i.wikiUrl)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.wikiLabel="",o.wikiUrl=""),i.wikiLabel!=null&&i.hasOwnProperty("wikiLabel")&&(o.wikiLabel=i.wikiLabel),i.wikiUrl!=null&&i.hasOwnProperty("wikiUrl")&&(o.wikiUrl=i.wikiUrl),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.common.WikiInfo"},l}(),e.PowerIconStyle=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.iconUrl=i.string();break}case 2:{a.iconNightUrl=i.string();break}case 3:{a.iconWidth=i.int64();break}case 4:{a.iconHeight=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.PowerIconStyle)return i;let n=new u.bilibili.mall.tab3.viewunite.common.PowerIconStyle;return i.iconUrl!=null&&(n.iconUrl=String(i.iconUrl)),i.iconNightUrl!=null&&(n.iconNightUrl=String(i.iconNightUrl)),i.iconWidth!=null&&(r.Long?(n.iconWidth=r.Long.fromValue(i.iconWidth)).unsigned=!1:typeof i.iconWidth=="string"?n.iconWidth=parseInt(i.iconWidth,10):typeof i.iconWidth=="number"?n.iconWidth=i.iconWidth:typeof i.iconWidth=="object"&&(n.iconWidth=new r.LongBits(i.iconWidth.low>>>0,i.iconWidth.high>>>0).toNumber())),i.iconHeight!=null&&(r.Long?(n.iconHeight=r.Long.fromValue(i.iconHeight)).unsigned=!1:typeof i.iconHeight=="string"?n.iconHeight=parseInt(i.iconHeight,10):typeof i.iconHeight=="number"?n.iconHeight=i.iconHeight:typeof i.iconHeight=="object"&&(n.iconHeight=new r.LongBits(i.iconHeight.low>>>0,i.iconHeight.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(o.iconUrl="",o.iconNightUrl="",r.Long){let a=new r.Long(0,0,!1);o.iconWidth=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.iconWidth=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.iconHeight=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.iconHeight=n.longs===String?"0":0}return i.iconUrl!=null&&i.hasOwnProperty("iconUrl")&&(o.iconUrl=i.iconUrl),i.iconNightUrl!=null&&i.hasOwnProperty("iconNightUrl")&&(o.iconNightUrl=i.iconNightUrl),i.iconWidth!=null&&i.hasOwnProperty("iconWidth")&&(typeof i.iconWidth=="number"?o.iconWidth=n.longs===String?String(i.iconWidth):i.iconWidth:o.iconWidth=n.longs===String?r.Long.prototype.toString.call(i.iconWidth):n.longs===Number?new r.LongBits(i.iconWidth.low>>>0,i.iconWidth.high>>>0).toNumber():i.iconWidth),i.iconHeight!=null&&i.hasOwnProperty("iconHeight")&&(typeof i.iconHeight=="number"?o.iconHeight=n.longs===String?String(i.iconHeight):i.iconHeight:o.iconHeight=n.longs===String?r.Long.prototype.toString.call(i.iconHeight):n.longs===Number?new r.LongBits(i.iconHeight.low>>>0,i.iconHeight.high>>>0).toNumber():i.iconHeight),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.common.PowerIconStyle"},l}(),e.RankInfo=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.iconUrlNight=i.string();break}case 2:{a.iconUrlDay=i.string();break}case 3:{a.bkgNightColor=i.string();break}case 4:{a.bkgDayColor=i.string();break}case 5:{a.fontNightColor=i.string();break}case 6:{a.fontDayColor=i.string();break}case 7:{a.rankContent=i.string();break}case 8:{a.rankLink=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.RankInfo)return i;let n=new u.bilibili.mall.tab3.viewunite.common.RankInfo;return i.iconUrlNight!=null&&(n.iconUrlNight=String(i.iconUrlNight)),i.iconUrlDay!=null&&(n.iconUrlDay=String(i.iconUrlDay)),i.bkgNightColor!=null&&(n.bkgNightColor=String(i.bkgNightColor)),i.bkgDayColor!=null&&(n.bkgDayColor=String(i.bkgDayColor)),i.fontNightColor!=null&&(n.fontNightColor=String(i.fontNightColor)),i.fontDayColor!=null&&(n.fontDayColor=String(i.fontDayColor)),i.rankContent!=null&&(n.rankContent=String(i.rankContent)),i.rankLink!=null&&(n.rankLink=String(i.rankLink)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.iconUrlNight="",o.iconUrlDay="",o.bkgNightColor="",o.bkgDayColor="",o.fontNightColor="",o.fontDayColor="",o.rankContent="",o.rankLink=""),i.iconUrlNight!=null&&i.hasOwnProperty("iconUrlNight")&&(o.iconUrlNight=i.iconUrlNight),i.iconUrlDay!=null&&i.hasOwnProperty("iconUrlDay")&&(o.iconUrlDay=i.iconUrlDay),i.bkgNightColor!=null&&i.hasOwnProperty("bkgNightColor")&&(o.bkgNightColor=i.bkgNightColor),i.bkgDayColor!=null&&i.hasOwnProperty("bkgDayColor")&&(o.bkgDayColor=i.bkgDayColor),i.fontNightColor!=null&&i.hasOwnProperty("fontNightColor")&&(o.fontNightColor=i.fontNightColor),i.fontDayColor!=null&&i.hasOwnProperty("fontDayColor")&&(o.fontDayColor=i.fontDayColor),i.rankContent!=null&&i.hasOwnProperty("rankContent")&&(o.rankContent=i.rankContent),i.rankLink!=null&&i.hasOwnProperty("rankLink")&&(o.rankLink=i.rankLink),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.common.RankInfo"},l}(),e.RelateCMCard=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.aid=i.int64();break}case 2:{a.sourceContent=u.google.protobuf.Any.decode(i,i.uint32());break}case 3:{a.Duration=i.int64();break}case 4:{a.stat=u.bilibili.mall.tab3.viewunite.common.Stat.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.RelateCMCard)return i;let n=new u.bilibili.mall.tab3.viewunite.common.RelateCMCard;if(i.aid!=null&&(r.Long?(n.aid=r.Long.fromValue(i.aid)).unsigned=!1:typeof i.aid=="string"?n.aid=parseInt(i.aid,10):typeof i.aid=="number"?n.aid=i.aid:typeof i.aid=="object"&&(n.aid=new r.LongBits(i.aid.low>>>0,i.aid.high>>>0).toNumber())),i.sourceContent!=null){if(typeof i.sourceContent!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.RelateCMCard.sourceContent: object expected");n.sourceContent=u.google.protobuf.Any.fromObject(i.sourceContent)}if(i.Duration!=null&&(r.Long?(n.Duration=r.Long.fromValue(i.Duration)).unsigned=!1:typeof i.Duration=="string"?n.Duration=parseInt(i.Duration,10):typeof i.Duration=="number"?n.Duration=i.Duration:typeof i.Duration=="object"&&(n.Duration=new r.LongBits(i.Duration.low>>>0,i.Duration.high>>>0).toNumber())),i.stat!=null){if(typeof i.stat!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.RelateCMCard.stat: object expected");n.stat=u.bilibili.mall.tab3.viewunite.common.Stat.fromObject(i.stat)}return n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.aid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.aid=n.longs===String?"0":0;if(o.sourceContent=null,r.Long){let a=new r.Long(0,0,!1);o.Duration=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.Duration=n.longs===String?"0":0;o.stat=null}return i.aid!=null&&i.hasOwnProperty("aid")&&(typeof i.aid=="number"?o.aid=n.longs===String?String(i.aid):i.aid:o.aid=n.longs===String?r.Long.prototype.toString.call(i.aid):n.longs===Number?new r.LongBits(i.aid.low>>>0,i.aid.high>>>0).toNumber():i.aid),i.sourceContent!=null&&i.hasOwnProperty("sourceContent")&&(o.sourceContent=u.google.protobuf.Any.toObject(i.sourceContent,n)),i.Duration!=null&&i.hasOwnProperty("Duration")&&(typeof i.Duration=="number"?o.Duration=n.longs===String?String(i.Duration):i.Duration:o.Duration=n.longs===String?r.Long.prototype.toString.call(i.Duration):n.longs===Number?new r.LongBits(i.Duration.low>>>0,i.Duration.high>>>0).toNumber():i.Duration),i.stat!=null&&i.hasOwnProperty("stat")&&(o.stat=u.bilibili.mall.tab3.viewunite.common.Stat.toObject(i.stat,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.common.RelateCMCard"},l}(),e.RelateLiveCard=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.iconType=i.int64();break}case 2:{a.areaName=i.string();break}case 3:{a.watchedShow=i.int64();break}case 4:{a.liveStatus=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.RelateLiveCard)return i;let n=new u.bilibili.mall.tab3.viewunite.common.RelateLiveCard;return i.iconType!=null&&(r.Long?(n.iconType=r.Long.fromValue(i.iconType)).unsigned=!1:typeof i.iconType=="string"?n.iconType=parseInt(i.iconType,10):typeof i.iconType=="number"?n.iconType=i.iconType:typeof i.iconType=="object"&&(n.iconType=new r.LongBits(i.iconType.low>>>0,i.iconType.high>>>0).toNumber())),i.areaName!=null&&(n.areaName=String(i.areaName)),i.watchedShow!=null&&(r.Long?(n.watchedShow=r.Long.fromValue(i.watchedShow)).unsigned=!1:typeof i.watchedShow=="string"?n.watchedShow=parseInt(i.watchedShow,10):typeof i.watchedShow=="number"?n.watchedShow=i.watchedShow:typeof i.watchedShow=="object"&&(n.watchedShow=new r.LongBits(i.watchedShow.low>>>0,i.watchedShow.high>>>0).toNumber())),i.liveStatus!=null&&(r.Long?(n.liveStatus=r.Long.fromValue(i.liveStatus)).unsigned=!1:typeof i.liveStatus=="string"?n.liveStatus=parseInt(i.liveStatus,10):typeof i.liveStatus=="number"?n.liveStatus=i.liveStatus:typeof i.liveStatus=="object"&&(n.liveStatus=new r.LongBits(i.liveStatus.low>>>0,i.liveStatus.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.iconType=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.iconType=n.longs===String?"0":0;if(o.areaName="",r.Long){let a=new r.Long(0,0,!1);o.watchedShow=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.watchedShow=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.liveStatus=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.liveStatus=n.longs===String?"0":0}return i.iconType!=null&&i.hasOwnProperty("iconType")&&(typeof i.iconType=="number"?o.iconType=n.longs===String?String(i.iconType):i.iconType:o.iconType=n.longs===String?r.Long.prototype.toString.call(i.iconType):n.longs===Number?new r.LongBits(i.iconType.low>>>0,i.iconType.high>>>0).toNumber():i.iconType),i.areaName!=null&&i.hasOwnProperty("areaName")&&(o.areaName=i.areaName),i.watchedShow!=null&&i.hasOwnProperty("watchedShow")&&(typeof i.watchedShow=="number"?o.watchedShow=n.longs===String?String(i.watchedShow):i.watchedShow:o.watchedShow=n.longs===String?r.Long.prototype.toString.call(i.watchedShow):n.longs===Number?new r.LongBits(i.watchedShow.low>>>0,i.watchedShow.high>>>0).toNumber():i.watchedShow),i.liveStatus!=null&&i.hasOwnProperty("liveStatus")&&(typeof i.liveStatus=="number"?o.liveStatus=n.longs===String?String(i.liveStatus):i.liveStatus:o.liveStatus=n.longs===String?r.Long.prototype.toString.call(i.liveStatus):n.longs===Number?new r.LongBits(i.liveStatus.low>>>0,i.liveStatus.high>>>0).toNumber():i.liveStatus),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.common.RelateLiveCard"},l}(),e.OgvLiveReserve=function(){function l(t){if(this.report={},t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.reserveId=i.int64();break}case 2:{a.title=i.string();break}case 3:{a.icon=i.string();break}case 4:{a.nightIcon=i.string();break}case 5:{a.clickButton=i.string();break}case 6:{a.link=i.string();break}case 7:{a.followVideoIsReserveLive=i.int32();break}case 8:{a.bgColor=i.string();break}case 9:{a.nightBgColor=i.string();break}case 10:{a.textColor=i.string();break}case 11:{a.nightTextColor=i.string();break}case 12:{a.btBgColor=i.string();break}case 13:{a.btFrameColor=i.string();break}case 14:{a.nightBtBgColor=i.string();break}case 15:{a.nightBtFrameColor=i.string();break}case 16:{a.activeType=i.int32();break}case 17:{a.reserveStatus=i.int32();break}case 18:{a.btTextColor=i.string();break}case 19:{a.nightBtTextColor=i.string();break}case 20:{a.report===r.emptyObject&&(a.report={});let g=i.uint32()+i.pos;for(y="",s="";i.pos>>3){case 1:y=i.string();break;case 2:s=i.string();break;default:i.skipType(S&7);break}}a.report[y]=s;break}default:i.skipType(v&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.OgvLiveReserve)return i;let n=new u.bilibili.mall.tab3.viewunite.common.OgvLiveReserve;if(i.reserveId!=null&&(r.Long?(n.reserveId=r.Long.fromValue(i.reserveId)).unsigned=!1:typeof i.reserveId=="string"?n.reserveId=parseInt(i.reserveId,10):typeof i.reserveId=="number"?n.reserveId=i.reserveId:typeof i.reserveId=="object"&&(n.reserveId=new r.LongBits(i.reserveId.low>>>0,i.reserveId.high>>>0).toNumber())),i.title!=null&&(n.title=String(i.title)),i.icon!=null&&(n.icon=String(i.icon)),i.nightIcon!=null&&(n.nightIcon=String(i.nightIcon)),i.clickButton!=null&&(n.clickButton=String(i.clickButton)),i.link!=null&&(n.link=String(i.link)),i.followVideoIsReserveLive!=null&&(n.followVideoIsReserveLive=i.followVideoIsReserveLive|0),i.bgColor!=null&&(n.bgColor=String(i.bgColor)),i.nightBgColor!=null&&(n.nightBgColor=String(i.nightBgColor)),i.textColor!=null&&(n.textColor=String(i.textColor)),i.nightTextColor!=null&&(n.nightTextColor=String(i.nightTextColor)),i.btBgColor!=null&&(n.btBgColor=String(i.btBgColor)),i.btFrameColor!=null&&(n.btFrameColor=String(i.btFrameColor)),i.nightBtBgColor!=null&&(n.nightBtBgColor=String(i.nightBtBgColor)),i.nightBtFrameColor!=null&&(n.nightBtFrameColor=String(i.nightBtFrameColor)),i.activeType!=null&&(n.activeType=i.activeType|0),i.reserveStatus!=null&&(n.reserveStatus=i.reserveStatus|0),i.btTextColor!=null&&(n.btTextColor=String(i.btTextColor)),i.nightBtTextColor!=null&&(n.nightBtTextColor=String(i.nightBtTextColor)),i.report){if(typeof i.report!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.OgvLiveReserve.report: object expected");n.report={};for(let o=Object.keys(i.report),a=0;a>>0,i.reserveId.high>>>0).toNumber():i.reserveId),i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.icon!=null&&i.hasOwnProperty("icon")&&(o.icon=i.icon),i.nightIcon!=null&&i.hasOwnProperty("nightIcon")&&(o.nightIcon=i.nightIcon),i.clickButton!=null&&i.hasOwnProperty("clickButton")&&(o.clickButton=i.clickButton),i.link!=null&&i.hasOwnProperty("link")&&(o.link=i.link),i.followVideoIsReserveLive!=null&&i.hasOwnProperty("followVideoIsReserveLive")&&(o.followVideoIsReserveLive=i.followVideoIsReserveLive),i.bgColor!=null&&i.hasOwnProperty("bgColor")&&(o.bgColor=i.bgColor),i.nightBgColor!=null&&i.hasOwnProperty("nightBgColor")&&(o.nightBgColor=i.nightBgColor),i.textColor!=null&&i.hasOwnProperty("textColor")&&(o.textColor=i.textColor),i.nightTextColor!=null&&i.hasOwnProperty("nightTextColor")&&(o.nightTextColor=i.nightTextColor),i.btBgColor!=null&&i.hasOwnProperty("btBgColor")&&(o.btBgColor=i.btBgColor),i.btFrameColor!=null&&i.hasOwnProperty("btFrameColor")&&(o.btFrameColor=i.btFrameColor),i.nightBtBgColor!=null&&i.hasOwnProperty("nightBtBgColor")&&(o.nightBtBgColor=i.nightBtBgColor),i.nightBtFrameColor!=null&&i.hasOwnProperty("nightBtFrameColor")&&(o.nightBtFrameColor=i.nightBtFrameColor),i.activeType!=null&&i.hasOwnProperty("activeType")&&(o.activeType=i.activeType),i.reserveStatus!=null&&i.hasOwnProperty("reserveStatus")&&(o.reserveStatus=i.reserveStatus),i.btTextColor!=null&&i.hasOwnProperty("btTextColor")&&(o.btTextColor=i.btTextColor),i.nightBtTextColor!=null&&i.hasOwnProperty("nightBtTextColor")&&(o.nightBtTextColor=i.nightBtTextColor);let a;if(i.report&&(a=Object.keys(i.report)).length){o.report={};for(let y=0;y>>3){case 1:{a.title=i.string();break}case 2:{a.serialSeason&&a.serialSeason.length||(a.serialSeason=[]),a.serialSeason.push(u.bilibili.mall.tab3.viewunite.common.SerialSeason.decode(i,i.uint32()));break}case 3:{a.style=i.int32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.OgvSeasons)return i;let n=new u.bilibili.mall.tab3.viewunite.common.OgvSeasons;if(i.title!=null&&(n.title=String(i.title)),i.serialSeason){if(!Array.isArray(i.serialSeason))throw TypeError(".bilibili.mall.tab3.viewunite.common.OgvSeasons.serialSeason: array expected");n.serialSeason=[];for(let o=0;o>>3){case 1:{a.id=i.int64();break}case 2:{a.title=i.string();break}case 3:{a.cover=i.string();break}case 4:{a.supernatantTitle=i.string();break}case 5:{a.section&&a.section.length||(a.section=[]),a.section.push(u.bilibili.mall.tab3.viewunite.common.UgcSection.decode(i,i.uint32()));break}case 6:{a.unionTitle=i.string();break}case 7:{a.head=u.bilibili.mall.tab3.viewunite.common.SeasonHead.decode(i,i.uint32());break}case 8:{a.epCount=i.int64();break}case 9:{a.seasonType=i.int32();break}case 10:{a.activity=u.bilibili.mall.tab3.viewunite.common.UgcSeasonActivity.decode(i,i.uint32());break}case 11:{a.seasonAbility&&a.seasonAbility.length||(a.seasonAbility=[]),a.seasonAbility.push(i.string());break}case 12:{a.seasonTitle=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.UgcSeasons)return i;let n=new u.bilibili.mall.tab3.viewunite.common.UgcSeasons;if(i.id!=null&&(r.Long?(n.id=r.Long.fromValue(i.id)).unsigned=!1:typeof i.id=="string"?n.id=parseInt(i.id,10):typeof i.id=="number"?n.id=i.id:typeof i.id=="object"&&(n.id=new r.LongBits(i.id.low>>>0,i.id.high>>>0).toNumber())),i.title!=null&&(n.title=String(i.title)),i.cover!=null&&(n.cover=String(i.cover)),i.supernatantTitle!=null&&(n.supernatantTitle=String(i.supernatantTitle)),i.section){if(!Array.isArray(i.section))throw TypeError(".bilibili.mall.tab3.viewunite.common.UgcSeasons.section: array expected");n.section=[];for(let o=0;o>>0,i.epCount.high>>>0).toNumber())),i.seasonType){default:if(typeof i.seasonType=="number"){n.seasonType=i.seasonType;break}break;case"Unknown":case 0:n.seasonType=0;break;case"Base":case 1:n.seasonType=1;break;case"Good":case 2:n.seasonType=2;break}if(i.activity!=null){if(typeof i.activity!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.UgcSeasons.activity: object expected");n.activity=u.bilibili.mall.tab3.viewunite.common.UgcSeasonActivity.fromObject(i.activity)}if(i.seasonAbility){if(!Array.isArray(i.seasonAbility))throw TypeError(".bilibili.mall.tab3.viewunite.common.UgcSeasons.seasonAbility: array expected");n.seasonAbility=[];for(let o=0;o>>0,i.id.high>>>0).toNumber():i.id),i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.cover!=null&&i.hasOwnProperty("cover")&&(o.cover=i.cover),i.supernatantTitle!=null&&i.hasOwnProperty("supernatantTitle")&&(o.supernatantTitle=i.supernatantTitle),i.section&&i.section.length){o.section=[];for(let a=0;a>>0,i.epCount.high>>>0).toNumber():i.epCount),i.seasonType!=null&&i.hasOwnProperty("seasonType")&&(o.seasonType=n.enums===String?u.bilibili.mall.tab3.viewunite.common.SeasonType[i.seasonType]===void 0?i.seasonType:u.bilibili.mall.tab3.viewunite.common.SeasonType[i.seasonType]:i.seasonType),i.activity!=null&&i.hasOwnProperty("activity")&&(o.activity=u.bilibili.mall.tab3.viewunite.common.UgcSeasonActivity.toObject(i.activity,n)),i.seasonAbility&&i.seasonAbility.length){o.seasonAbility=[];for(let a=0;a>>3){case 1:{a.title=i.string();break}case 2:{a.intro=i.string();break}case 3:{a.vt=u.bilibili.mall.tab3.viewunite.common.StatInfo.decode(i,i.uint32());break}case 4:{a.danmaku=u.bilibili.mall.tab3.viewunite.common.StatInfo.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.SeasonHead)return i;let n=new u.bilibili.mall.tab3.viewunite.common.SeasonHead;if(i.title!=null&&(n.title=String(i.title)),i.intro!=null&&(n.intro=String(i.intro)),i.vt!=null){if(typeof i.vt!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.SeasonHead.vt: object expected");n.vt=u.bilibili.mall.tab3.viewunite.common.StatInfo.fromObject(i.vt)}if(i.danmaku!=null){if(typeof i.danmaku!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.SeasonHead.danmaku: object expected");n.danmaku=u.bilibili.mall.tab3.viewunite.common.StatInfo.fromObject(i.danmaku)}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.title="",o.intro="",o.vt=null,o.danmaku=null),i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.intro!=null&&i.hasOwnProperty("intro")&&(o.intro=i.intro),i.vt!=null&&i.hasOwnProperty("vt")&&(o.vt=u.bilibili.mall.tab3.viewunite.common.StatInfo.toObject(i.vt,n)),i.danmaku!=null&&i.hasOwnProperty("danmaku")&&(o.danmaku=u.bilibili.mall.tab3.viewunite.common.StatInfo.toObject(i.danmaku,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.common.SeasonHead"},l}(),e.UgcSection=function(){function l(t){if(this.episodes=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.id=i.int64();break}case 2:{a.title=i.string();break}case 3:{a.type=i.int64();break}case 4:{a.episodes&&a.episodes.length||(a.episodes=[]),a.episodes.push(u.bilibili.mall.tab3.viewunite.common.UgcEpisode.decode(i,i.uint32()));break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.UgcSection)return i;let n=new u.bilibili.mall.tab3.viewunite.common.UgcSection;if(i.id!=null&&(r.Long?(n.id=r.Long.fromValue(i.id)).unsigned=!1:typeof i.id=="string"?n.id=parseInt(i.id,10):typeof i.id=="number"?n.id=i.id:typeof i.id=="object"&&(n.id=new r.LongBits(i.id.low>>>0,i.id.high>>>0).toNumber())),i.title!=null&&(n.title=String(i.title)),i.type!=null&&(r.Long?(n.type=r.Long.fromValue(i.type)).unsigned=!1:typeof i.type=="string"?n.type=parseInt(i.type,10):typeof i.type=="number"?n.type=i.type:typeof i.type=="object"&&(n.type=new r.LongBits(i.type.low>>>0,i.type.high>>>0).toNumber())),i.episodes){if(!Array.isArray(i.episodes))throw TypeError(".bilibili.mall.tab3.viewunite.common.UgcSection.episodes: array expected");n.episodes=[];for(let o=0;o>>0,i.id.high>>>0).toNumber():i.id),i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.type!=null&&i.hasOwnProperty("type")&&(typeof i.type=="number"?o.type=n.longs===String?String(i.type):i.type:o.type=n.longs===String?r.Long.prototype.toString.call(i.type):n.longs===Number?new r.LongBits(i.type.low>>>0,i.type.high>>>0).toNumber():i.type),i.episodes&&i.episodes.length){o.episodes=[];for(let a=0;a>>3){case 1:{a.id=i.int64();break}case 2:{a.aid=i.int64();break}case 3:{a.cid=i.int64();break}case 4:{a.title=i.string();break}case 5:{a.cover=i.string();break}case 6:{a.coverRightText=i.string();break}case 7:{a.page=u.bilibili.mall.tab3.viewunite.common.Page.decode(i,i.uint32());break}case 8:{a.vt=u.bilibili.mall.tab3.viewunite.common.StatInfo.decode(i,i.uint32());break}case 9:{a.danmaku=u.bilibili.mall.tab3.viewunite.common.StatInfo.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.UgcEpisode)return i;let n=new u.bilibili.mall.tab3.viewunite.common.UgcEpisode;if(i.id!=null&&(r.Long?(n.id=r.Long.fromValue(i.id)).unsigned=!1:typeof i.id=="string"?n.id=parseInt(i.id,10):typeof i.id=="number"?n.id=i.id:typeof i.id=="object"&&(n.id=new r.LongBits(i.id.low>>>0,i.id.high>>>0).toNumber())),i.aid!=null&&(r.Long?(n.aid=r.Long.fromValue(i.aid)).unsigned=!1:typeof i.aid=="string"?n.aid=parseInt(i.aid,10):typeof i.aid=="number"?n.aid=i.aid:typeof i.aid=="object"&&(n.aid=new r.LongBits(i.aid.low>>>0,i.aid.high>>>0).toNumber())),i.cid!=null&&(r.Long?(n.cid=r.Long.fromValue(i.cid)).unsigned=!1:typeof i.cid=="string"?n.cid=parseInt(i.cid,10):typeof i.cid=="number"?n.cid=i.cid:typeof i.cid=="object"&&(n.cid=new r.LongBits(i.cid.low>>>0,i.cid.high>>>0).toNumber())),i.title!=null&&(n.title=String(i.title)),i.cover!=null&&(n.cover=String(i.cover)),i.coverRightText!=null&&(n.coverRightText=String(i.coverRightText)),i.page!=null){if(typeof i.page!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.UgcEpisode.page: object expected");n.page=u.bilibili.mall.tab3.viewunite.common.Page.fromObject(i.page)}if(i.vt!=null){if(typeof i.vt!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.UgcEpisode.vt: object expected");n.vt=u.bilibili.mall.tab3.viewunite.common.StatInfo.fromObject(i.vt)}if(i.danmaku!=null){if(typeof i.danmaku!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.UgcEpisode.danmaku: object expected");n.danmaku=u.bilibili.mall.tab3.viewunite.common.StatInfo.fromObject(i.danmaku)}return n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.id=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.id=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.aid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.aid=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.cid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.cid=n.longs===String?"0":0;o.title="",o.cover="",o.coverRightText="",o.page=null,o.vt=null,o.danmaku=null}return i.id!=null&&i.hasOwnProperty("id")&&(typeof i.id=="number"?o.id=n.longs===String?String(i.id):i.id:o.id=n.longs===String?r.Long.prototype.toString.call(i.id):n.longs===Number?new r.LongBits(i.id.low>>>0,i.id.high>>>0).toNumber():i.id),i.aid!=null&&i.hasOwnProperty("aid")&&(typeof i.aid=="number"?o.aid=n.longs===String?String(i.aid):i.aid:o.aid=n.longs===String?r.Long.prototype.toString.call(i.aid):n.longs===Number?new r.LongBits(i.aid.low>>>0,i.aid.high>>>0).toNumber():i.aid),i.cid!=null&&i.hasOwnProperty("cid")&&(typeof i.cid=="number"?o.cid=n.longs===String?String(i.cid):i.cid:o.cid=n.longs===String?r.Long.prototype.toString.call(i.cid):n.longs===Number?new r.LongBits(i.cid.low>>>0,i.cid.high>>>0).toNumber():i.cid),i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.cover!=null&&i.hasOwnProperty("cover")&&(o.cover=i.cover),i.coverRightText!=null&&i.hasOwnProperty("coverRightText")&&(o.coverRightText=i.coverRightText),i.page!=null&&i.hasOwnProperty("page")&&(o.page=u.bilibili.mall.tab3.viewunite.common.Page.toObject(i.page,n)),i.vt!=null&&i.hasOwnProperty("vt")&&(o.vt=u.bilibili.mall.tab3.viewunite.common.StatInfo.toObject(i.vt,n)),i.danmaku!=null&&i.hasOwnProperty("danmaku")&&(o.danmaku=u.bilibili.mall.tab3.viewunite.common.StatInfo.toObject(i.danmaku,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.common.UgcEpisode"},l}(),e.UgcSeasonActivity=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.type=i.int32();break}case 2:{a.oid=i.int64();break}case 3:{a.activityId=i.int64();break}case 4:{a.title=i.string();break}case 5:{a.intro=i.string();break}case 6:{a.dayCount=i.int32();break}case 7:{a.userCount=i.int32();break}case 8:{a.joinDeadline=i.int64();break}case 9:{a.activityDeadline=i.int64();break}case 10:{a.checkinViewTime=i.int32();break}case 11:{a.newActivity=i.bool();break}case 12:{a.userActivity=u.bilibili.mall.tab3.viewunite.common.UserActivity.decode(i,i.uint32());break}case 13:{a.seasonShow=u.bilibili.mall.tab3.viewunite.common.SeasonShow.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.UgcSeasonActivity)return i;let n=new u.bilibili.mall.tab3.viewunite.common.UgcSeasonActivity;if(i.type!=null&&(n.type=i.type|0),i.oid!=null&&(r.Long?(n.oid=r.Long.fromValue(i.oid)).unsigned=!1:typeof i.oid=="string"?n.oid=parseInt(i.oid,10):typeof i.oid=="number"?n.oid=i.oid:typeof i.oid=="object"&&(n.oid=new r.LongBits(i.oid.low>>>0,i.oid.high>>>0).toNumber())),i.activityId!=null&&(r.Long?(n.activityId=r.Long.fromValue(i.activityId)).unsigned=!1:typeof i.activityId=="string"?n.activityId=parseInt(i.activityId,10):typeof i.activityId=="number"?n.activityId=i.activityId:typeof i.activityId=="object"&&(n.activityId=new r.LongBits(i.activityId.low>>>0,i.activityId.high>>>0).toNumber())),i.title!=null&&(n.title=String(i.title)),i.intro!=null&&(n.intro=String(i.intro)),i.dayCount!=null&&(n.dayCount=i.dayCount|0),i.userCount!=null&&(n.userCount=i.userCount|0),i.joinDeadline!=null&&(r.Long?(n.joinDeadline=r.Long.fromValue(i.joinDeadline)).unsigned=!1:typeof i.joinDeadline=="string"?n.joinDeadline=parseInt(i.joinDeadline,10):typeof i.joinDeadline=="number"?n.joinDeadline=i.joinDeadline:typeof i.joinDeadline=="object"&&(n.joinDeadline=new r.LongBits(i.joinDeadline.low>>>0,i.joinDeadline.high>>>0).toNumber())),i.activityDeadline!=null&&(r.Long?(n.activityDeadline=r.Long.fromValue(i.activityDeadline)).unsigned=!1:typeof i.activityDeadline=="string"?n.activityDeadline=parseInt(i.activityDeadline,10):typeof i.activityDeadline=="number"?n.activityDeadline=i.activityDeadline:typeof i.activityDeadline=="object"&&(n.activityDeadline=new r.LongBits(i.activityDeadline.low>>>0,i.activityDeadline.high>>>0).toNumber())),i.checkinViewTime!=null&&(n.checkinViewTime=i.checkinViewTime|0),i.newActivity!=null&&(n.newActivity=!!i.newActivity),i.userActivity!=null){if(typeof i.userActivity!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.UgcSeasonActivity.userActivity: object expected");n.userActivity=u.bilibili.mall.tab3.viewunite.common.UserActivity.fromObject(i.userActivity)}if(i.seasonShow!=null){if(typeof i.seasonShow!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.UgcSeasonActivity.seasonShow: object expected");n.seasonShow=u.bilibili.mall.tab3.viewunite.common.SeasonShow.fromObject(i.seasonShow)}return n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(o.type=0,r.Long){let a=new r.Long(0,0,!1);o.oid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.oid=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.activityId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.activityId=n.longs===String?"0":0;if(o.title="",o.intro="",o.dayCount=0,o.userCount=0,r.Long){let a=new r.Long(0,0,!1);o.joinDeadline=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.joinDeadline=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.activityDeadline=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.activityDeadline=n.longs===String?"0":0;o.checkinViewTime=0,o.newActivity=!1,o.userActivity=null,o.seasonShow=null}return i.type!=null&&i.hasOwnProperty("type")&&(o.type=i.type),i.oid!=null&&i.hasOwnProperty("oid")&&(typeof i.oid=="number"?o.oid=n.longs===String?String(i.oid):i.oid:o.oid=n.longs===String?r.Long.prototype.toString.call(i.oid):n.longs===Number?new r.LongBits(i.oid.low>>>0,i.oid.high>>>0).toNumber():i.oid),i.activityId!=null&&i.hasOwnProperty("activityId")&&(typeof i.activityId=="number"?o.activityId=n.longs===String?String(i.activityId):i.activityId:o.activityId=n.longs===String?r.Long.prototype.toString.call(i.activityId):n.longs===Number?new r.LongBits(i.activityId.low>>>0,i.activityId.high>>>0).toNumber():i.activityId),i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.intro!=null&&i.hasOwnProperty("intro")&&(o.intro=i.intro),i.dayCount!=null&&i.hasOwnProperty("dayCount")&&(o.dayCount=i.dayCount),i.userCount!=null&&i.hasOwnProperty("userCount")&&(o.userCount=i.userCount),i.joinDeadline!=null&&i.hasOwnProperty("joinDeadline")&&(typeof i.joinDeadline=="number"?o.joinDeadline=n.longs===String?String(i.joinDeadline):i.joinDeadline:o.joinDeadline=n.longs===String?r.Long.prototype.toString.call(i.joinDeadline):n.longs===Number?new r.LongBits(i.joinDeadline.low>>>0,i.joinDeadline.high>>>0).toNumber():i.joinDeadline),i.activityDeadline!=null&&i.hasOwnProperty("activityDeadline")&&(typeof i.activityDeadline=="number"?o.activityDeadline=n.longs===String?String(i.activityDeadline):i.activityDeadline:o.activityDeadline=n.longs===String?r.Long.prototype.toString.call(i.activityDeadline):n.longs===Number?new r.LongBits(i.activityDeadline.low>>>0,i.activityDeadline.high>>>0).toNumber():i.activityDeadline),i.checkinViewTime!=null&&i.hasOwnProperty("checkinViewTime")&&(o.checkinViewTime=i.checkinViewTime),i.newActivity!=null&&i.hasOwnProperty("newActivity")&&(o.newActivity=i.newActivity),i.userActivity!=null&&i.hasOwnProperty("userActivity")&&(o.userActivity=u.bilibili.mall.tab3.viewunite.common.UserActivity.toObject(i.userActivity,n)),i.seasonShow!=null&&i.hasOwnProperty("seasonShow")&&(o.seasonShow=u.bilibili.mall.tab3.viewunite.common.SeasonShow.toObject(i.seasonShow,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.common.UgcSeasonActivity"},l}(),e.UserActivity=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.userState=i.int32();break}case 2:{a.lastCheckinDate=i.int64();break}case 3:{a.checkinToday=i.int32();break}case 4:{a.userDayCount=i.int32();break}case 5:{a.userViewTime=i.int32();break}case 6:{a.portrait=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.UserActivity)return i;let n=new u.bilibili.mall.tab3.viewunite.common.UserActivity;return i.userState!=null&&(n.userState=i.userState|0),i.lastCheckinDate!=null&&(r.Long?(n.lastCheckinDate=r.Long.fromValue(i.lastCheckinDate)).unsigned=!1:typeof i.lastCheckinDate=="string"?n.lastCheckinDate=parseInt(i.lastCheckinDate,10):typeof i.lastCheckinDate=="number"?n.lastCheckinDate=i.lastCheckinDate:typeof i.lastCheckinDate=="object"&&(n.lastCheckinDate=new r.LongBits(i.lastCheckinDate.low>>>0,i.lastCheckinDate.high>>>0).toNumber())),i.checkinToday!=null&&(n.checkinToday=i.checkinToday|0),i.userDayCount!=null&&(n.userDayCount=i.userDayCount|0),i.userViewTime!=null&&(n.userViewTime=i.userViewTime|0),i.portrait!=null&&(n.portrait=String(i.portrait)),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(o.userState=0,r.Long){let a=new r.Long(0,0,!1);o.lastCheckinDate=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.lastCheckinDate=n.longs===String?"0":0;o.checkinToday=0,o.userDayCount=0,o.userViewTime=0,o.portrait=""}return i.userState!=null&&i.hasOwnProperty("userState")&&(o.userState=i.userState),i.lastCheckinDate!=null&&i.hasOwnProperty("lastCheckinDate")&&(typeof i.lastCheckinDate=="number"?o.lastCheckinDate=n.longs===String?String(i.lastCheckinDate):i.lastCheckinDate:o.lastCheckinDate=n.longs===String?r.Long.prototype.toString.call(i.lastCheckinDate):n.longs===Number?new r.LongBits(i.lastCheckinDate.low>>>0,i.lastCheckinDate.high>>>0).toNumber():i.lastCheckinDate),i.checkinToday!=null&&i.hasOwnProperty("checkinToday")&&(o.checkinToday=i.checkinToday),i.userDayCount!=null&&i.hasOwnProperty("userDayCount")&&(o.userDayCount=i.userDayCount),i.userViewTime!=null&&i.hasOwnProperty("userViewTime")&&(o.userViewTime=i.userViewTime),i.portrait!=null&&i.hasOwnProperty("portrait")&&(o.portrait=i.portrait),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.common.UserActivity"},l}(),e.SeasonShow=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.buttonText=i.string();break}case 2:{a.joinText=i.string();break}case 3:{a.ruleText=i.string();break}case 4:{a.checkinText=i.string();break}case 5:{a.checkinPrompt=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.SeasonShow)return i;let n=new u.bilibili.mall.tab3.viewunite.common.SeasonShow;return i.buttonText!=null&&(n.buttonText=String(i.buttonText)),i.joinText!=null&&(n.joinText=String(i.joinText)),i.ruleText!=null&&(n.ruleText=String(i.ruleText)),i.checkinText!=null&&(n.checkinText=String(i.checkinText)),i.checkinPrompt!=null&&(n.checkinPrompt=String(i.checkinPrompt)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.buttonText="",o.joinText="",o.ruleText="",o.checkinText="",o.checkinPrompt=""),i.buttonText!=null&&i.hasOwnProperty("buttonText")&&(o.buttonText=i.buttonText),i.joinText!=null&&i.hasOwnProperty("joinText")&&(o.joinText=i.joinText),i.ruleText!=null&&i.hasOwnProperty("ruleText")&&(o.ruleText=i.ruleText),i.checkinText!=null&&i.hasOwnProperty("checkinText")&&(o.checkinText=i.checkinText),i.checkinPrompt!=null&&i.hasOwnProperty("checkinPrompt")&&(o.checkinPrompt=i.checkinPrompt),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.common.SeasonShow"},l}(),e.SerialSeason=function(){function l(t){if(this.report={},t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.seasonId=i.int32();break}case 2:{a.title=i.string();break}case 3:{a.seasonTitle=i.string();break}case 4:{a.isNew=i.int32();break}case 5:{a.cover=i.string();break}case 6:{a.badge=i.string();break}case 7:{a.badgeType=i.int32();break}case 8:{a.badgeInfo=u.bilibili.mall.tab3.viewunite.common.BadgeInfo.decode(i,i.uint32());break}case 9:{a.link=i.string();break}case 10:{a.resource=i.string();break}case 11:{a.newEp=u.bilibili.mall.tab3.viewunite.common.NewEp.decode(i,i.uint32());break}case 12:{a.report===r.emptyObject&&(a.report={});let g=i.uint32()+i.pos;for(y="",s="";i.pos>>3){case 1:y=i.string();break;case 2:s=i.string();break;default:i.skipType(S&7);break}}a.report[y]=s;break}default:i.skipType(v&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.SerialSeason)return i;let n=new u.bilibili.mall.tab3.viewunite.common.SerialSeason;if(i.seasonId!=null&&(n.seasonId=i.seasonId|0),i.title!=null&&(n.title=String(i.title)),i.seasonTitle!=null&&(n.seasonTitle=String(i.seasonTitle)),i.isNew!=null&&(n.isNew=i.isNew|0),i.cover!=null&&(n.cover=String(i.cover)),i.badge!=null&&(n.badge=String(i.badge)),i.badgeType!=null&&(n.badgeType=i.badgeType|0),i.badgeInfo!=null){if(typeof i.badgeInfo!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.SerialSeason.badgeInfo: object expected");n.badgeInfo=u.bilibili.mall.tab3.viewunite.common.BadgeInfo.fromObject(i.badgeInfo)}if(i.link!=null&&(n.link=String(i.link)),i.resource!=null&&(n.resource=String(i.resource)),i.newEp!=null){if(typeof i.newEp!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.SerialSeason.newEp: object expected");n.newEp=u.bilibili.mall.tab3.viewunite.common.NewEp.fromObject(i.newEp)}if(i.report){if(typeof i.report!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.SerialSeason.report: object expected");n.report={};for(let o=Object.keys(i.report),a=0;a>>3){case 1:{a.id=i.int32();break}case 2:{a.title=i.string();break}case 3:{a.desc=i.string();break}case 4:{a.isNew=i.int32();break}case 5:{a.more=i.string();break}case 6:{a.cover=i.string();break}case 7:{a.indexShow=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.NewEp)return i;let n=new u.bilibili.mall.tab3.viewunite.common.NewEp;return i.id!=null&&(n.id=i.id|0),i.title!=null&&(n.title=String(i.title)),i.desc!=null&&(n.desc=String(i.desc)),i.isNew!=null&&(n.isNew=i.isNew|0),i.more!=null&&(n.more=String(i.more)),i.cover!=null&&(n.cover=String(i.cover)),i.indexShow!=null&&(n.indexShow=String(i.indexShow)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.id=0,o.title="",o.desc="",o.isNew=0,o.more="",o.cover="",o.indexShow=""),i.id!=null&&i.hasOwnProperty("id")&&(o.id=i.id),i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.desc!=null&&i.hasOwnProperty("desc")&&(o.desc=i.desc),i.isNew!=null&&i.hasOwnProperty("isNew")&&(o.isNew=i.isNew),i.more!=null&&i.hasOwnProperty("more")&&(o.more=i.more),i.cover!=null&&i.hasOwnProperty("cover")&&(o.cover=i.cover),i.indexShow!=null&&i.hasOwnProperty("indexShow")&&(o.indexShow=i.indexShow),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.common.NewEp"},l}(),e.FollowLayer=function(){function l(t){if(this.report={},t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.staff=u.bilibili.mall.tab3.viewunite.common.Staff.decode(i,i.uint32());break}case 2:{a.desc=u.bilibili.mall.tab3.viewunite.common.Desc.decode(i,i.uint32());break}case 3:{a.report===r.emptyObject&&(a.report={});let g=i.uint32()+i.pos;for(y="",s="";i.pos>>3){case 1:y=i.string();break;case 2:s=i.string();break;default:i.skipType(S&7);break}}a.report[y]=s;break}default:i.skipType(v&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.FollowLayer)return i;let n=new u.bilibili.mall.tab3.viewunite.common.FollowLayer;if(i.staff!=null){if(typeof i.staff!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.FollowLayer.staff: object expected");n.staff=u.bilibili.mall.tab3.viewunite.common.Staff.fromObject(i.staff)}if(i.desc!=null){if(typeof i.desc!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.FollowLayer.desc: object expected");n.desc=u.bilibili.mall.tab3.viewunite.common.Desc.fromObject(i.desc)}if(i.report){if(typeof i.report!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.FollowLayer.report: object expected");n.report={};for(let o=Object.keys(i.report),a=0;a>>3){case 1:{a.info=i.string();break}case 2:{a.title=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.Desc)return i;let n=new u.bilibili.mall.tab3.viewunite.common.Desc;return i.info!=null&&(n.info=String(i.info)),i.title!=null&&(n.title=String(i.title)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.info="",o.title=""),i.info!=null&&i.hasOwnProperty("info")&&(o.info=i.info),i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.common.Desc"},l}(),e.SectionData=function(){function l(t){if(this.episodeIds=[],this.episodes=[],this.seasons=[],this.report={},t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.id=i.int32();break}case 2:{a.sectionId=i.int32();break}case 3:{a.title=i.string();break}case 4:{a.canOrdDesc=i.int32();break}case 5:{a.more=i.string();break}case 6:{if(a.episodeIds&&a.episodeIds.length||(a.episodeIds=[]),(v&7)===2){let g=i.uint32()+i.pos;for(;i.pos>>3){case 1:y=i.string();break;case 2:s=i.string();break;default:i.skipType(S&7);break}}a.report[y]=s;break}default:i.skipType(v&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.SectionData)return i;let n=new u.bilibili.mall.tab3.viewunite.common.SectionData;if(i.id!=null&&(n.id=i.id|0),i.sectionId!=null&&(n.sectionId=i.sectionId|0),i.title!=null&&(n.title=String(i.title)),i.canOrdDesc!=null&&(n.canOrdDesc=i.canOrdDesc|0),i.more!=null&&(n.more=String(i.more)),i.episodeIds){if(!Array.isArray(i.episodeIds))throw TypeError(".bilibili.mall.tab3.viewunite.common.SectionData.episodeIds: array expected");n.episodeIds=[];for(let o=0;o>>3){case 1:{a.title=i.string();break}case 2:{a.leftStrikethroughText=i.string();break}case 3:{a.type=i.string();break}case 4:{a.link=i.string();break}case 5:{a.badgeInfo=u.bilibili.mall.tab3.viewunite.common.BadgeInfo.decode(i,i.uint32());break}case 6:{a.subTitle=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.Button)return i;let n=new u.bilibili.mall.tab3.viewunite.common.Button;if(i.title!=null&&(n.title=String(i.title)),i.leftStrikethroughText!=null&&(n.leftStrikethroughText=String(i.leftStrikethroughText)),i.type!=null&&(n.type=String(i.type)),i.link!=null&&(n.link=String(i.link)),i.badgeInfo!=null){if(typeof i.badgeInfo!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.Button.badgeInfo: object expected");n.badgeInfo=u.bilibili.mall.tab3.viewunite.common.BadgeInfo.fromObject(i.badgeInfo)}return i.subTitle!=null&&(n.subTitle=String(i.subTitle)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.title="",o.leftStrikethroughText="",o.type="",o.link="",o.badgeInfo=null,o.subTitle=""),i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.leftStrikethroughText!=null&&i.hasOwnProperty("leftStrikethroughText")&&(o.leftStrikethroughText=i.leftStrikethroughText),i.type!=null&&i.hasOwnProperty("type")&&(o.type=i.type),i.link!=null&&i.hasOwnProperty("link")&&(o.link=i.link),i.badgeInfo!=null&&i.hasOwnProperty("badgeInfo")&&(o.badgeInfo=u.bilibili.mall.tab3.viewunite.common.BadgeInfo.toObject(i.badgeInfo,n)),i.subTitle!=null&&i.hasOwnProperty("subTitle")&&(o.subTitle=i.subTitle),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.common.Button"},l}(),e.CombinationEp=function(){function l(t){if(this.episodeIds=[],this.episodes=[],this.serialSeason=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.id=i.int32();break}case 2:{a.sectionId=i.int32();break}case 3:{a.title=i.string();break}case 4:{a.canOrdDesc=i.int32();break}case 5:{a.more=i.string();break}case 6:{if(a.episodeIds&&a.episodeIds.length||(a.episodeIds=[]),(y&7)===2){let s=i.uint32()+i.pos;for(;i.pos>>3){case 1:{y.title=n.string();break}case 2:{y.moduleStyle=u.bilibili.mall.tab3.viewunite.common.Style.decode(n,n.uint32());break}case 3:{y.more=n.string();break}case 4:{y.activity=u.bilibili.mall.tab3.viewunite.common.Activity.decode(n,n.uint32());break}case 5:{y.characters=u.bilibili.mall.tab3.viewunite.common.Characters.decode(n,n.uint32());break}case 6:{y.theatreHotTopic=u.bilibili.mall.tab3.viewunite.common.TheatreHotTopic.decode(n,n.uint32());break}case 7:{y.aggEps=u.bilibili.mall.tab3.viewunite.common.AggEps.decode(n,n.uint32());break}case 10:{y.actPageItems=u.bilibili.mall.tab3.viewunite.common.ActPageItems.decode(n,n.uint32());break}case 8:{y.id=n.int32();break}case 9:{y.report===r.emptyObject&&(y.report={});let S=n.uint32()+n.pos;for(s="",v="";n.pos>>3){case 1:s=n.string();break;case 2:v=n.string();break;default:n.skipType(F&7);break}}y.report[s]=v;break}default:n.skipType(g&7);break}}return y},l.fromObject=function(n){if(n instanceof u.bilibili.mall.tab3.viewunite.common.DeliveryData)return n;let o=new u.bilibili.mall.tab3.viewunite.common.DeliveryData;if(n.title!=null&&(o.title=String(n.title)),n.moduleStyle!=null){if(typeof n.moduleStyle!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.DeliveryData.moduleStyle: object expected");o.moduleStyle=u.bilibili.mall.tab3.viewunite.common.Style.fromObject(n.moduleStyle)}if(n.more!=null&&(o.more=String(n.more)),n.activity!=null){if(typeof n.activity!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.DeliveryData.activity: object expected");o.activity=u.bilibili.mall.tab3.viewunite.common.Activity.fromObject(n.activity)}if(n.characters!=null){if(typeof n.characters!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.DeliveryData.characters: object expected");o.characters=u.bilibili.mall.tab3.viewunite.common.Characters.fromObject(n.characters)}if(n.theatreHotTopic!=null){if(typeof n.theatreHotTopic!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.DeliveryData.theatreHotTopic: object expected");o.theatreHotTopic=u.bilibili.mall.tab3.viewunite.common.TheatreHotTopic.fromObject(n.theatreHotTopic)}if(n.aggEps!=null){if(typeof n.aggEps!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.DeliveryData.aggEps: object expected");o.aggEps=u.bilibili.mall.tab3.viewunite.common.AggEps.fromObject(n.aggEps)}if(n.actPageItems!=null){if(typeof n.actPageItems!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.DeliveryData.actPageItems: object expected");o.actPageItems=u.bilibili.mall.tab3.viewunite.common.ActPageItems.fromObject(n.actPageItems)}if(n.id!=null&&(o.id=n.id|0),n.report){if(typeof n.report!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.DeliveryData.report: object expected");o.report={};for(let a=Object.keys(n.report),y=0;y>>3){case 1:{a.aggEpCards&&a.aggEpCards.length||(a.aggEpCards=[]),a.aggEpCards.push(u.bilibili.mall.tab3.viewunite.common.AggEpCard.decode(i,i.uint32()));break}case 2:{a.placeIndex=i.int32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.AggEps)return i;let n=new u.bilibili.mall.tab3.viewunite.common.AggEps;if(i.aggEpCards){if(!Array.isArray(i.aggEpCards))throw TypeError(".bilibili.mall.tab3.viewunite.common.AggEps.aggEpCards: array expected");n.aggEpCards=[];for(let o=0;o>>3){case 1:{a.title=i.string();break}case 2:{a.cover=i.string();break}case 3:{a.icon=i.string();break}case 4:{a.num=i.int32();break}case 5:{a.jumpUrl=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.AggEpCard)return i;let n=new u.bilibili.mall.tab3.viewunite.common.AggEpCard;return i.title!=null&&(n.title=String(i.title)),i.cover!=null&&(n.cover=String(i.cover)),i.icon!=null&&(n.icon=String(i.icon)),i.num!=null&&(n.num=i.num|0),i.jumpUrl!=null&&(n.jumpUrl=String(i.jumpUrl)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.title="",o.cover="",o.icon="",o.num=0,o.jumpUrl=""),i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.cover!=null&&i.hasOwnProperty("cover")&&(o.cover=i.cover),i.icon!=null&&i.hasOwnProperty("icon")&&(o.icon=i.icon),i.num!=null&&i.hasOwnProperty("num")&&(o.num=i.num),i.jumpUrl!=null&&i.hasOwnProperty("jumpUrl")&&(o.jumpUrl=i.jumpUrl),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.common.AggEpCard"},l}(),e.TheatreHotTopic=function(){function l(t){if(this.report={},t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.theatreId=i.int64();break}case 2:{a.theatreSetId=i.int64();break}case 3:{a.theatreTitle=i.string();break}case 4:{a.backgroundImageUrl=i.string();break}case 5:{a.theatreUrl=i.string();break}case 6:{a.hotTopicId=i.int64();break}case 7:{a.hotTopicSetId=i.int64();break}case 8:{a.hotTopicTitle=i.string();break}case 9:{a.hotTopicUrl=i.string();break}case 10:{a.isSubscribe=i.int32();break}case 11:{a.report===r.emptyObject&&(a.report={});let g=i.uint32()+i.pos;for(y="",s="";i.pos>>3){case 1:y=i.string();break;case 2:s=i.string();break;default:i.skipType(S&7);break}}a.report[y]=s;break}default:i.skipType(v&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.TheatreHotTopic)return i;let n=new u.bilibili.mall.tab3.viewunite.common.TheatreHotTopic;if(i.theatreId!=null&&(r.Long?(n.theatreId=r.Long.fromValue(i.theatreId)).unsigned=!1:typeof i.theatreId=="string"?n.theatreId=parseInt(i.theatreId,10):typeof i.theatreId=="number"?n.theatreId=i.theatreId:typeof i.theatreId=="object"&&(n.theatreId=new r.LongBits(i.theatreId.low>>>0,i.theatreId.high>>>0).toNumber())),i.theatreSetId!=null&&(r.Long?(n.theatreSetId=r.Long.fromValue(i.theatreSetId)).unsigned=!1:typeof i.theatreSetId=="string"?n.theatreSetId=parseInt(i.theatreSetId,10):typeof i.theatreSetId=="number"?n.theatreSetId=i.theatreSetId:typeof i.theatreSetId=="object"&&(n.theatreSetId=new r.LongBits(i.theatreSetId.low>>>0,i.theatreSetId.high>>>0).toNumber())),i.theatreTitle!=null&&(n.theatreTitle=String(i.theatreTitle)),i.backgroundImageUrl!=null&&(n.backgroundImageUrl=String(i.backgroundImageUrl)),i.theatreUrl!=null&&(n.theatreUrl=String(i.theatreUrl)),i.hotTopicId!=null&&(r.Long?(n.hotTopicId=r.Long.fromValue(i.hotTopicId)).unsigned=!1:typeof i.hotTopicId=="string"?n.hotTopicId=parseInt(i.hotTopicId,10):typeof i.hotTopicId=="number"?n.hotTopicId=i.hotTopicId:typeof i.hotTopicId=="object"&&(n.hotTopicId=new r.LongBits(i.hotTopicId.low>>>0,i.hotTopicId.high>>>0).toNumber())),i.hotTopicSetId!=null&&(r.Long?(n.hotTopicSetId=r.Long.fromValue(i.hotTopicSetId)).unsigned=!1:typeof i.hotTopicSetId=="string"?n.hotTopicSetId=parseInt(i.hotTopicSetId,10):typeof i.hotTopicSetId=="number"?n.hotTopicSetId=i.hotTopicSetId:typeof i.hotTopicSetId=="object"&&(n.hotTopicSetId=new r.LongBits(i.hotTopicSetId.low>>>0,i.hotTopicSetId.high>>>0).toNumber())),i.hotTopicTitle!=null&&(n.hotTopicTitle=String(i.hotTopicTitle)),i.hotTopicUrl!=null&&(n.hotTopicUrl=String(i.hotTopicUrl)),i.isSubscribe!=null&&(n.isSubscribe=i.isSubscribe|0),i.report){if(typeof i.report!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.TheatreHotTopic.report: object expected");n.report={};for(let o=Object.keys(i.report),a=0;a>>0,i.theatreId.high>>>0).toNumber():i.theatreId),i.theatreSetId!=null&&i.hasOwnProperty("theatreSetId")&&(typeof i.theatreSetId=="number"?o.theatreSetId=n.longs===String?String(i.theatreSetId):i.theatreSetId:o.theatreSetId=n.longs===String?r.Long.prototype.toString.call(i.theatreSetId):n.longs===Number?new r.LongBits(i.theatreSetId.low>>>0,i.theatreSetId.high>>>0).toNumber():i.theatreSetId),i.theatreTitle!=null&&i.hasOwnProperty("theatreTitle")&&(o.theatreTitle=i.theatreTitle),i.backgroundImageUrl!=null&&i.hasOwnProperty("backgroundImageUrl")&&(o.backgroundImageUrl=i.backgroundImageUrl),i.theatreUrl!=null&&i.hasOwnProperty("theatreUrl")&&(o.theatreUrl=i.theatreUrl),i.hotTopicId!=null&&i.hasOwnProperty("hotTopicId")&&(typeof i.hotTopicId=="number"?o.hotTopicId=n.longs===String?String(i.hotTopicId):i.hotTopicId:o.hotTopicId=n.longs===String?r.Long.prototype.toString.call(i.hotTopicId):n.longs===Number?new r.LongBits(i.hotTopicId.low>>>0,i.hotTopicId.high>>>0).toNumber():i.hotTopicId),i.hotTopicSetId!=null&&i.hasOwnProperty("hotTopicSetId")&&(typeof i.hotTopicSetId=="number"?o.hotTopicSetId=n.longs===String?String(i.hotTopicSetId):i.hotTopicSetId:o.hotTopicSetId=n.longs===String?r.Long.prototype.toString.call(i.hotTopicSetId):n.longs===Number?new r.LongBits(i.hotTopicSetId.low>>>0,i.hotTopicSetId.high>>>0).toNumber():i.hotTopicSetId),i.hotTopicTitle!=null&&i.hasOwnProperty("hotTopicTitle")&&(o.hotTopicTitle=i.hotTopicTitle),i.hotTopicUrl!=null&&i.hasOwnProperty("hotTopicUrl")&&(o.hotTopicUrl=i.hotTopicUrl),i.isSubscribe!=null&&i.hasOwnProperty("isSubscribe")&&(o.isSubscribe=i.isSubscribe);let a;if(i.report&&(a=Object.keys(i.report)).length){o.report={};for(let y=0;y>>3){case 1:{a.item&&a.item.length||(a.item=[]),a.item.push(u.bilibili.mall.tab3.viewunite.common.ActBannerItem.decode(i,i.uint32()));break}case 2:{a.showStyle=i.int32();break}case 3:{a.title=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.ActPageItems)return i;let n=new u.bilibili.mall.tab3.viewunite.common.ActPageItems;if(i.item){if(!Array.isArray(i.item))throw TypeError(".bilibili.mall.tab3.viewunite.common.ActPageItems.item: array expected");n.item=[];for(let o=0;o>>3){case 1:{a.id=i.int32();break}case 2:{a.title=i.string();break}case 3:{a.link=i.string();break}case 4:{a.cover=i.string();break}case 5:{a.type=i.int32();break}case 6:{a.ab=i.string();break}case 7:{a.showName=i.string();break}case 8:{a.picurl=i.string();break}case 9:{a.picurlSelected=i.string();break}case 10:{a.h5Link=i.string();break}case 11:{a.jumpMode=i.string();break}case 12:{a.items&&a.items.length||(a.items=[]),a.items.push(u.bilibili.mall.tab3.viewunite.common.Item.decode(i,i.uint32()));break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.Activity)return i;let n=new u.bilibili.mall.tab3.viewunite.common.Activity;if(i.id!=null&&(n.id=i.id|0),i.title!=null&&(n.title=String(i.title)),i.link!=null&&(n.link=String(i.link)),i.cover!=null&&(n.cover=String(i.cover)),i.type!=null&&(n.type=i.type|0),i.ab!=null&&(n.ab=String(i.ab)),i.showName!=null&&(n.showName=String(i.showName)),i.picurl!=null&&(n.picurl=String(i.picurl)),i.picurlSelected!=null&&(n.picurlSelected=String(i.picurlSelected)),i.h5Link!=null&&(n.h5Link=String(i.h5Link)),i.jumpMode!=null&&(n.jumpMode=String(i.jumpMode)),i.items){if(!Array.isArray(i.items))throw TypeError(".bilibili.mall.tab3.viewunite.common.Activity.items: array expected");n.items=[];for(let o=0;o>>3){case 1:{a.pid=i.int32();break}case 2:{a.name=i.string();break}case 3:{a.image=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.Pendant)return i;let n=new u.bilibili.mall.tab3.viewunite.common.Pendant;return i.pid!=null&&(n.pid=i.pid|0),i.name!=null&&(n.name=String(i.name)),i.image!=null&&(n.image=String(i.image)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.pid=0,o.name="",o.image=""),i.pid!=null&&i.hasOwnProperty("pid")&&(o.pid=i.pid),i.name!=null&&i.hasOwnProperty("name")&&(o.name=i.name),i.image!=null&&i.hasOwnProperty("image")&&(o.image=i.image),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.common.Pendant"},l}(),e.Threshold=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.bp=i.int32();break}case 2:{a.days=i.int32();break}case 3:{a.daysText=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.Threshold)return i;let n=new u.bilibili.mall.tab3.viewunite.common.Threshold;return i.bp!=null&&(n.bp=i.bp|0),i.days!=null&&(n.days=i.days|0),i.daysText!=null&&(n.daysText=String(i.daysText)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.bp=0,o.days=0,o.daysText=""),i.bp!=null&&i.hasOwnProperty("bp")&&(o.bp=i.bp),i.days!=null&&i.hasOwnProperty("days")&&(o.days=i.days),i.daysText!=null&&i.hasOwnProperty("daysText")&&(o.daysText=i.daysText),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.common.Threshold"},l}(),e.Item=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.link=i.string();break}case 2:{a.cover=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.Item)return i;let n=new u.bilibili.mall.tab3.viewunite.common.Item;return i.link!=null&&(n.link=String(i.link)),i.cover!=null&&(n.cover=String(i.cover)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.link="",o.cover=""),i.link!=null&&i.hasOwnProperty("link")&&(o.link=i.link),i.cover!=null&&i.hasOwnProperty("cover")&&(o.cover=i.cover),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.common.Item"},l}(),e.Characters=function(){function l(t){if(this.groups=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.groups&&a.groups.length||(a.groups=[]),a.groups.push(u.bilibili.mall.tab3.viewunite.common.CharacterGroup.decode(i,i.uint32()));break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.Characters)return i;let n=new u.bilibili.mall.tab3.viewunite.common.Characters;if(i.groups){if(!Array.isArray(i.groups))throw TypeError(".bilibili.mall.tab3.viewunite.common.Characters.groups: array expected");n.groups=[];for(let o=0;o>>3){case 1:{a.title=i.string();break}case 2:{a.characters&&a.characters.length||(a.characters=[]),a.characters.push(u.bilibili.mall.tab3.viewunite.common.Celebrity.decode(i,i.uint32()));break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.CharacterGroup)return i;let n=new u.bilibili.mall.tab3.viewunite.common.CharacterGroup;if(i.title!=null&&(n.title=String(i.title)),i.characters){if(!Array.isArray(i.characters))throw TypeError(".bilibili.mall.tab3.viewunite.common.CharacterGroup.characters: array expected");n.characters=[];for(let o=0;o>>3){case 1:{a.id=i.int32();break}case 2:{a.name=i.string();break}case 3:{a.role=i.string();break}case 4:{a.avatar=i.string();break}case 5:{a.shortDesc=i.string();break}case 6:{a.desc=i.string();break}case 7:{a.characterAvatar=i.string();break}case 8:{a.link=i.string();break}case 9:{a.mid=i.int64();break}case 10:{a.isFollow=i.int32();break}case 11:{a.occupationName=i.string();break}case 12:{a.occupationType=i.int32();break}case 13:{a.relateAttr=i.int32();break}case 14:{a.smallAvatar=i.string();break}case 15:{a.report===r.emptyObject&&(a.report={});let g=i.uint32()+i.pos;for(y="",s="";i.pos>>3){case 1:y=i.string();break;case 2:s=i.string();break;default:i.skipType(S&7);break}}a.report[y]=s;break}case 16:{a.official=u.bilibili.mall.tab3.viewunite.common.OfficialVerify.decode(i,i.uint32());break}default:i.skipType(v&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.Celebrity)return i;let n=new u.bilibili.mall.tab3.viewunite.common.Celebrity;switch(i.id!=null&&(n.id=i.id|0),i.name!=null&&(n.name=String(i.name)),i.role!=null&&(n.role=String(i.role)),i.avatar!=null&&(n.avatar=String(i.avatar)),i.shortDesc!=null&&(n.shortDesc=String(i.shortDesc)),i.desc!=null&&(n.desc=String(i.desc)),i.characterAvatar!=null&&(n.characterAvatar=String(i.characterAvatar)),i.link!=null&&(n.link=String(i.link)),i.mid!=null&&(r.Long?(n.mid=r.Long.fromValue(i.mid)).unsigned=!1:typeof i.mid=="string"?n.mid=parseInt(i.mid,10):typeof i.mid=="number"?n.mid=i.mid:typeof i.mid=="object"&&(n.mid=new r.LongBits(i.mid.low>>>0,i.mid.high>>>0).toNumber())),i.isFollow!=null&&(n.isFollow=i.isFollow|0),i.occupationName!=null&&(n.occupationName=String(i.occupationName)),i.occupationType){default:if(typeof i.occupationType=="number"){n.occupationType=i.occupationType;break}break;case"STAFF":case 0:n.occupationType=0;break;case"CAST":case 1:n.occupationType=1;break;case"UNKNOWN_TYPE":case-1:n.occupationType=-1;break}if(i.relateAttr!=null&&(n.relateAttr=i.relateAttr|0),i.smallAvatar!=null&&(n.smallAvatar=String(i.smallAvatar)),i.report){if(typeof i.report!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.Celebrity.report: object expected");n.report={};for(let o=Object.keys(i.report),a=0;a>>0,i.mid.high>>>0).toNumber():i.mid),i.isFollow!=null&&i.hasOwnProperty("isFollow")&&(o.isFollow=i.isFollow),i.occupationName!=null&&i.hasOwnProperty("occupationName")&&(o.occupationName=i.occupationName),i.occupationType!=null&&i.hasOwnProperty("occupationType")&&(o.occupationType=n.enums===String?u.bilibili.mall.tab3.viewunite.common.OccupationType[i.occupationType]===void 0?i.occupationType:u.bilibili.mall.tab3.viewunite.common.OccupationType[i.occupationType]:i.occupationType),i.relateAttr!=null&&i.hasOwnProperty("relateAttr")&&(o.relateAttr=i.relateAttr),i.smallAvatar!=null&&i.hasOwnProperty("smallAvatar")&&(o.smallAvatar=i.smallAvatar);let a;if(i.report&&(a=Object.keys(i.report)).length){o.report={};for(let y=0;y>>3){case 1:{a.line=i.int32();break}case 2:{a.hidden=i.int32();break}case 3:{a.showPages&&a.showPages.length||(a.showPages=[]),a.showPages.push(i.string());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.Style)return i;let n=new u.bilibili.mall.tab3.viewunite.common.Style;if(i.line!=null&&(n.line=i.line|0),i.hidden!=null&&(n.hidden=i.hidden|0),i.showPages){if(!Array.isArray(i.showPages))throw TypeError(".bilibili.mall.tab3.viewunite.common.Style.showPages: array expected");n.showPages=[];for(let o=0;o>>3){case 1:{a.id=i.int32();break}case 2:{a.name=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.CardStyle)return i;let n=new u.bilibili.mall.tab3.viewunite.common.CardStyle;return i.id!=null&&(n.id=i.id|0),i.name!=null&&(n.name=String(i.name)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.id=0,o.name=""),i.id!=null&&i.hasOwnProperty("id")&&(o.id=i.id),i.name!=null&&i.hasOwnProperty("name")&&(o.name=i.name),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.common.CardStyle"},l}(),e.ViewEpisode=function(){function l(t){if(this.upInfos=[],this.multiViewEps=[],this.report={},t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.epId=i.int64();break}case 2:{a.badge=i.string();break}case 3:{a.badgeType=i.int32();break}case 4:{a.badgeInfo=u.bilibili.mall.tab3.viewunite.common.BadgeInfo.decode(i,i.uint32());break}case 5:{a.duration=i.int32();break}case 6:{a.status=i.int32();break}case 7:{a.cover=i.string();break}case 8:{a.aid=i.int64();break}case 9:{a.title=i.string();break}case 10:{a.movieTitle=i.string();break}case 11:{a.subtitle=i.string();break}case 12:{a.longTitle=i.string();break}case 13:{a.toastTitle=i.string();break}case 14:{a.cid=i.int64();break}case 15:{a.from=i.string();break}case 16:{a.shareUrl=i.string();break}case 17:{a.shareCopy=i.string();break}case 18:{a.shortLink=i.string();break}case 19:{a.vid=i.string();break}case 20:{a.releaseDate=i.string();break}case 21:{a.dimension=u.bilibili.mall.tab3.viewunite.common.Dimension.decode(i,i.uint32());break}case 22:{a.rights=u.bilibili.mall.tab3.viewunite.common.Rights.decode(i,i.uint32());break}case 23:{a.interaction=u.bilibili.mall.tab3.viewunite.common.Interaction.decode(i,i.uint32());break}case 24:{a.bvid=i.string();break}case 25:{a.archiveAttr=i.int32();break}case 26:{a.link=i.string();break}case 27:{a.linkType=i.string();break}case 28:{a.bmid=i.string();break}case 29:{a.pubTime=i.int64();break}case 30:{a.pv=i.int32();break}case 31:{a.epIndex=i.int32();break}case 32:{a.sectionIndex=i.int32();break}case 33:{a.upInfos&&a.upInfos.length||(a.upInfos=[]),a.upInfos.push(u.bilibili.mall.tab3.viewunite.common.Staff.decode(i,i.uint32()));break}case 34:{a.upInfo=u.bilibili.mall.tab3.viewunite.common.Staff.decode(i,i.uint32());break}case 35:{a.dialogType=i.string();break}case 36:{a.toastType=i.string();break}case 37:{a.multiViewEps&&a.multiViewEps.length||(a.multiViewEps=[]),a.multiViewEps.push(u.bilibili.mall.tab3.viewunite.common.MultiViewEp.decode(i,i.uint32()));break}case 38:{a.isSubView=i.bool();break}case 39:{a.isViewHide=i.bool();break}case 40:{a.jumpLink=i.string();break}case 41:{a.statForUnity=u.bilibili.mall.tab3.viewunite.common.Stat.decode(i,i.uint32());break}case 42:{a.report===r.emptyObject&&(a.report={});let g=i.uint32()+i.pos;for(y="",s="";i.pos>>3){case 1:y=i.string();break;case 2:s=i.string();break;default:i.skipType(S&7);break}}a.report[y]=s;break}default:i.skipType(v&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.ViewEpisode)return i;let n=new u.bilibili.mall.tab3.viewunite.common.ViewEpisode;if(i.epId!=null&&(r.Long?(n.epId=r.Long.fromValue(i.epId)).unsigned=!1:typeof i.epId=="string"?n.epId=parseInt(i.epId,10):typeof i.epId=="number"?n.epId=i.epId:typeof i.epId=="object"&&(n.epId=new r.LongBits(i.epId.low>>>0,i.epId.high>>>0).toNumber())),i.badge!=null&&(n.badge=String(i.badge)),i.badgeType!=null&&(n.badgeType=i.badgeType|0),i.badgeInfo!=null){if(typeof i.badgeInfo!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.ViewEpisode.badgeInfo: object expected");n.badgeInfo=u.bilibili.mall.tab3.viewunite.common.BadgeInfo.fromObject(i.badgeInfo)}if(i.duration!=null&&(n.duration=i.duration|0),i.status!=null&&(n.status=i.status|0),i.cover!=null&&(n.cover=String(i.cover)),i.aid!=null&&(r.Long?(n.aid=r.Long.fromValue(i.aid)).unsigned=!1:typeof i.aid=="string"?n.aid=parseInt(i.aid,10):typeof i.aid=="number"?n.aid=i.aid:typeof i.aid=="object"&&(n.aid=new r.LongBits(i.aid.low>>>0,i.aid.high>>>0).toNumber())),i.title!=null&&(n.title=String(i.title)),i.movieTitle!=null&&(n.movieTitle=String(i.movieTitle)),i.subtitle!=null&&(n.subtitle=String(i.subtitle)),i.longTitle!=null&&(n.longTitle=String(i.longTitle)),i.toastTitle!=null&&(n.toastTitle=String(i.toastTitle)),i.cid!=null&&(r.Long?(n.cid=r.Long.fromValue(i.cid)).unsigned=!1:typeof i.cid=="string"?n.cid=parseInt(i.cid,10):typeof i.cid=="number"?n.cid=i.cid:typeof i.cid=="object"&&(n.cid=new r.LongBits(i.cid.low>>>0,i.cid.high>>>0).toNumber())),i.from!=null&&(n.from=String(i.from)),i.shareUrl!=null&&(n.shareUrl=String(i.shareUrl)),i.shareCopy!=null&&(n.shareCopy=String(i.shareCopy)),i.shortLink!=null&&(n.shortLink=String(i.shortLink)),i.vid!=null&&(n.vid=String(i.vid)),i.releaseDate!=null&&(n.releaseDate=String(i.releaseDate)),i.dimension!=null){if(typeof i.dimension!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.ViewEpisode.dimension: object expected");n.dimension=u.bilibili.mall.tab3.viewunite.common.Dimension.fromObject(i.dimension)}if(i.rights!=null){if(typeof i.rights!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.ViewEpisode.rights: object expected");n.rights=u.bilibili.mall.tab3.viewunite.common.Rights.fromObject(i.rights)}if(i.interaction!=null){if(typeof i.interaction!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.ViewEpisode.interaction: object expected");n.interaction=u.bilibili.mall.tab3.viewunite.common.Interaction.fromObject(i.interaction)}if(i.bvid!=null&&(n.bvid=String(i.bvid)),i.archiveAttr!=null&&(n.archiveAttr=i.archiveAttr|0),i.link!=null&&(n.link=String(i.link)),i.linkType!=null&&(n.linkType=String(i.linkType)),i.bmid!=null&&(n.bmid=String(i.bmid)),i.pubTime!=null&&(r.Long?(n.pubTime=r.Long.fromValue(i.pubTime)).unsigned=!1:typeof i.pubTime=="string"?n.pubTime=parseInt(i.pubTime,10):typeof i.pubTime=="number"?n.pubTime=i.pubTime:typeof i.pubTime=="object"&&(n.pubTime=new r.LongBits(i.pubTime.low>>>0,i.pubTime.high>>>0).toNumber())),i.pv!=null&&(n.pv=i.pv|0),i.epIndex!=null&&(n.epIndex=i.epIndex|0),i.sectionIndex!=null&&(n.sectionIndex=i.sectionIndex|0),i.upInfos){if(!Array.isArray(i.upInfos))throw TypeError(".bilibili.mall.tab3.viewunite.common.ViewEpisode.upInfos: array expected");n.upInfos=[];for(let o=0;o>>0,i.epId.high>>>0).toNumber():i.epId),i.badge!=null&&i.hasOwnProperty("badge")&&(o.badge=i.badge),i.badgeType!=null&&i.hasOwnProperty("badgeType")&&(o.badgeType=i.badgeType),i.badgeInfo!=null&&i.hasOwnProperty("badgeInfo")&&(o.badgeInfo=u.bilibili.mall.tab3.viewunite.common.BadgeInfo.toObject(i.badgeInfo,n)),i.duration!=null&&i.hasOwnProperty("duration")&&(o.duration=i.duration),i.status!=null&&i.hasOwnProperty("status")&&(o.status=i.status),i.cover!=null&&i.hasOwnProperty("cover")&&(o.cover=i.cover),i.aid!=null&&i.hasOwnProperty("aid")&&(typeof i.aid=="number"?o.aid=n.longs===String?String(i.aid):i.aid:o.aid=n.longs===String?r.Long.prototype.toString.call(i.aid):n.longs===Number?new r.LongBits(i.aid.low>>>0,i.aid.high>>>0).toNumber():i.aid),i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.movieTitle!=null&&i.hasOwnProperty("movieTitle")&&(o.movieTitle=i.movieTitle),i.subtitle!=null&&i.hasOwnProperty("subtitle")&&(o.subtitle=i.subtitle),i.longTitle!=null&&i.hasOwnProperty("longTitle")&&(o.longTitle=i.longTitle),i.toastTitle!=null&&i.hasOwnProperty("toastTitle")&&(o.toastTitle=i.toastTitle),i.cid!=null&&i.hasOwnProperty("cid")&&(typeof i.cid=="number"?o.cid=n.longs===String?String(i.cid):i.cid:o.cid=n.longs===String?r.Long.prototype.toString.call(i.cid):n.longs===Number?new r.LongBits(i.cid.low>>>0,i.cid.high>>>0).toNumber():i.cid),i.from!=null&&i.hasOwnProperty("from")&&(o.from=i.from),i.shareUrl!=null&&i.hasOwnProperty("shareUrl")&&(o.shareUrl=i.shareUrl),i.shareCopy!=null&&i.hasOwnProperty("shareCopy")&&(o.shareCopy=i.shareCopy),i.shortLink!=null&&i.hasOwnProperty("shortLink")&&(o.shortLink=i.shortLink),i.vid!=null&&i.hasOwnProperty("vid")&&(o.vid=i.vid),i.releaseDate!=null&&i.hasOwnProperty("releaseDate")&&(o.releaseDate=i.releaseDate),i.dimension!=null&&i.hasOwnProperty("dimension")&&(o.dimension=u.bilibili.mall.tab3.viewunite.common.Dimension.toObject(i.dimension,n)),i.rights!=null&&i.hasOwnProperty("rights")&&(o.rights=u.bilibili.mall.tab3.viewunite.common.Rights.toObject(i.rights,n)),i.interaction!=null&&i.hasOwnProperty("interaction")&&(o.interaction=u.bilibili.mall.tab3.viewunite.common.Interaction.toObject(i.interaction,n)),i.bvid!=null&&i.hasOwnProperty("bvid")&&(o.bvid=i.bvid),i.archiveAttr!=null&&i.hasOwnProperty("archiveAttr")&&(o.archiveAttr=i.archiveAttr),i.link!=null&&i.hasOwnProperty("link")&&(o.link=i.link),i.linkType!=null&&i.hasOwnProperty("linkType")&&(o.linkType=i.linkType),i.bmid!=null&&i.hasOwnProperty("bmid")&&(o.bmid=i.bmid),i.pubTime!=null&&i.hasOwnProperty("pubTime")&&(typeof i.pubTime=="number"?o.pubTime=n.longs===String?String(i.pubTime):i.pubTime:o.pubTime=n.longs===String?r.Long.prototype.toString.call(i.pubTime):n.longs===Number?new r.LongBits(i.pubTime.low>>>0,i.pubTime.high>>>0).toNumber():i.pubTime),i.pv!=null&&i.hasOwnProperty("pv")&&(o.pv=i.pv),i.epIndex!=null&&i.hasOwnProperty("epIndex")&&(o.epIndex=i.epIndex),i.sectionIndex!=null&&i.hasOwnProperty("sectionIndex")&&(o.sectionIndex=i.sectionIndex),i.upInfos&&i.upInfos.length){o.upInfos=[];for(let y=0;y>>3){case 1:{a.allowDownload=i.int32();break}case 2:{a.allowReview=i.int32();break}case 3:{a.canWatch=i.int32();break}case 4:{a.resource=i.string();break}case 5:{a.allowDm=i.int32();break}case 6:{a.allowDemand=i.int32();break}case 7:{a.areaLimit=i.int32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.Rights)return i;let n=new u.bilibili.mall.tab3.viewunite.common.Rights;return i.allowDownload!=null&&(n.allowDownload=i.allowDownload|0),i.allowReview!=null&&(n.allowReview=i.allowReview|0),i.canWatch!=null&&(n.canWatch=i.canWatch|0),i.resource!=null&&(n.resource=String(i.resource)),i.allowDm!=null&&(n.allowDm=i.allowDm|0),i.allowDemand!=null&&(n.allowDemand=i.allowDemand|0),i.areaLimit!=null&&(n.areaLimit=i.areaLimit|0),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.allowDownload=0,o.allowReview=0,o.canWatch=0,o.resource="",o.allowDm=0,o.allowDemand=0,o.areaLimit=0),i.allowDownload!=null&&i.hasOwnProperty("allowDownload")&&(o.allowDownload=i.allowDownload),i.allowReview!=null&&i.hasOwnProperty("allowReview")&&(o.allowReview=i.allowReview),i.canWatch!=null&&i.hasOwnProperty("canWatch")&&(o.canWatch=i.canWatch),i.resource!=null&&i.hasOwnProperty("resource")&&(o.resource=i.resource),i.allowDm!=null&&i.hasOwnProperty("allowDm")&&(o.allowDm=i.allowDm),i.allowDemand!=null&&i.hasOwnProperty("allowDemand")&&(o.allowDemand=i.allowDemand),i.areaLimit!=null&&i.hasOwnProperty("areaLimit")&&(o.areaLimit=i.areaLimit),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.common.Rights"},l}(),e.Interaction=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.epId=i.int64();break}case 2:{a.historyNode=u.bilibili.mall.tab3.viewunite.common.HistoryNode.decode(i,i.uint32());break}case 3:{a.graphVersion=i.int64();break}case 4:{a.msg=i.string();break}case 5:{a.isInteraction=i.bool();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.Interaction)return i;let n=new u.bilibili.mall.tab3.viewunite.common.Interaction;if(i.epId!=null&&(r.Long?(n.epId=r.Long.fromValue(i.epId)).unsigned=!1:typeof i.epId=="string"?n.epId=parseInt(i.epId,10):typeof i.epId=="number"?n.epId=i.epId:typeof i.epId=="object"&&(n.epId=new r.LongBits(i.epId.low>>>0,i.epId.high>>>0).toNumber())),i.historyNode!=null){if(typeof i.historyNode!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.Interaction.historyNode: object expected");n.historyNode=u.bilibili.mall.tab3.viewunite.common.HistoryNode.fromObject(i.historyNode)}return i.graphVersion!=null&&(r.Long?(n.graphVersion=r.Long.fromValue(i.graphVersion)).unsigned=!1:typeof i.graphVersion=="string"?n.graphVersion=parseInt(i.graphVersion,10):typeof i.graphVersion=="number"?n.graphVersion=i.graphVersion:typeof i.graphVersion=="object"&&(n.graphVersion=new r.LongBits(i.graphVersion.low>>>0,i.graphVersion.high>>>0).toNumber())),i.msg!=null&&(n.msg=String(i.msg)),i.isInteraction!=null&&(n.isInteraction=!!i.isInteraction),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.epId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.epId=n.longs===String?"0":0;if(o.historyNode=null,r.Long){let a=new r.Long(0,0,!1);o.graphVersion=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.graphVersion=n.longs===String?"0":0;o.msg="",o.isInteraction=!1}return i.epId!=null&&i.hasOwnProperty("epId")&&(typeof i.epId=="number"?o.epId=n.longs===String?String(i.epId):i.epId:o.epId=n.longs===String?r.Long.prototype.toString.call(i.epId):n.longs===Number?new r.LongBits(i.epId.low>>>0,i.epId.high>>>0).toNumber():i.epId),i.historyNode!=null&&i.hasOwnProperty("historyNode")&&(o.historyNode=u.bilibili.mall.tab3.viewunite.common.HistoryNode.toObject(i.historyNode,n)),i.graphVersion!=null&&i.hasOwnProperty("graphVersion")&&(typeof i.graphVersion=="number"?o.graphVersion=n.longs===String?String(i.graphVersion):i.graphVersion:o.graphVersion=n.longs===String?r.Long.prototype.toString.call(i.graphVersion):n.longs===Number?new r.LongBits(i.graphVersion.low>>>0,i.graphVersion.high>>>0).toNumber():i.graphVersion),i.msg!=null&&i.hasOwnProperty("msg")&&(o.msg=i.msg),i.isInteraction!=null&&i.hasOwnProperty("isInteraction")&&(o.isInteraction=i.isInteraction),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.common.Interaction"},l}(),e.HistoryNode=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.nodeId=i.int64();break}case 2:{a.title=i.string();break}case 3:{a.cid=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.HistoryNode)return i;let n=new u.bilibili.mall.tab3.viewunite.common.HistoryNode;return i.nodeId!=null&&(r.Long?(n.nodeId=r.Long.fromValue(i.nodeId)).unsigned=!1:typeof i.nodeId=="string"?n.nodeId=parseInt(i.nodeId,10):typeof i.nodeId=="number"?n.nodeId=i.nodeId:typeof i.nodeId=="object"&&(n.nodeId=new r.LongBits(i.nodeId.low>>>0,i.nodeId.high>>>0).toNumber())),i.title!=null&&(n.title=String(i.title)),i.cid!=null&&(r.Long?(n.cid=r.Long.fromValue(i.cid)).unsigned=!1:typeof i.cid=="string"?n.cid=parseInt(i.cid,10):typeof i.cid=="number"?n.cid=i.cid:typeof i.cid=="object"&&(n.cid=new r.LongBits(i.cid.low>>>0,i.cid.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.nodeId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.nodeId=n.longs===String?"0":0;if(o.title="",r.Long){let a=new r.Long(0,0,!1);o.cid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.cid=n.longs===String?"0":0}return i.nodeId!=null&&i.hasOwnProperty("nodeId")&&(typeof i.nodeId=="number"?o.nodeId=n.longs===String?String(i.nodeId):i.nodeId:o.nodeId=n.longs===String?r.Long.prototype.toString.call(i.nodeId):n.longs===Number?new r.LongBits(i.nodeId.low>>>0,i.nodeId.high>>>0).toNumber():i.nodeId),i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.cid!=null&&i.hasOwnProperty("cid")&&(typeof i.cid=="number"?o.cid=n.longs===String?String(i.cid):i.cid:o.cid=n.longs===String?r.Long.prototype.toString.call(i.cid):n.longs===Number?new r.LongBits(i.cid.low>>>0,i.cid.high>>>0).toNumber():i.cid),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.common.HistoryNode"},l}(),e.SkipRange=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.start=i.int32();break}case 2:{a.end=i.int32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.SkipRange)return i;let n=new u.bilibili.mall.tab3.viewunite.common.SkipRange;return i.start!=null&&(n.start=i.start|0),i.end!=null&&(n.end=i.end|0),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.start=0,o.end=0),i.start!=null&&i.hasOwnProperty("start")&&(o.start=i.start),i.end!=null&&i.hasOwnProperty("end")&&(o.end=i.end),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.common.SkipRange"},l}(),e.MultiViewEp=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.epId=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.MultiViewEp)return i;let n=new u.bilibili.mall.tab3.viewunite.common.MultiViewEp;return i.epId!=null&&(r.Long?(n.epId=r.Long.fromValue(i.epId)).unsigned=!1:typeof i.epId=="string"?n.epId=parseInt(i.epId,10):typeof i.epId=="number"?n.epId=i.epId:typeof i.epId=="object"&&(n.epId=new r.LongBits(i.epId.low>>>0,i.epId.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults)if(r.Long){let a=new r.Long(0,0,!1);o.epId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.epId=n.longs===String?"0":0;return i.epId!=null&&i.hasOwnProperty("epId")&&(typeof i.epId=="number"?o.epId=n.longs===String?String(i.epId):i.epId:o.epId=n.longs===String?r.Long.prototype.toString.call(i.epId):n.longs===Number?new r.LongBits(i.epId.low>>>0,i.epId.high>>>0).toNumber():i.epId),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.common.MultiViewEp"},l}(),e.LikeComment=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.reply=i.string();break}case 2:{a.title=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.LikeComment)return i;let n=new u.bilibili.mall.tab3.viewunite.common.LikeComment;return i.reply!=null&&(n.reply=String(i.reply)),i.title!=null&&(n.title=String(i.title)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.reply="",o.title=""),i.reply!=null&&i.hasOwnProperty("reply")&&(o.reply=i.reply),i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.common.LikeComment"},l}(),e.LiveOrder=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.sid=i.int64();break}case 2:{a.text=i.string();break}case 3:{a.livePlanStartTime=i.int64();break}case 4:{a.isFollow=i.bool();break}case 5:{a.followCount=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.LiveOrder)return i;let n=new u.bilibili.mall.tab3.viewunite.common.LiveOrder;return i.sid!=null&&(r.Long?(n.sid=r.Long.fromValue(i.sid)).unsigned=!1:typeof i.sid=="string"?n.sid=parseInt(i.sid,10):typeof i.sid=="number"?n.sid=i.sid:typeof i.sid=="object"&&(n.sid=new r.LongBits(i.sid.low>>>0,i.sid.high>>>0).toNumber())),i.text!=null&&(n.text=String(i.text)),i.livePlanStartTime!=null&&(r.Long?(n.livePlanStartTime=r.Long.fromValue(i.livePlanStartTime)).unsigned=!1:typeof i.livePlanStartTime=="string"?n.livePlanStartTime=parseInt(i.livePlanStartTime,10):typeof i.livePlanStartTime=="number"?n.livePlanStartTime=i.livePlanStartTime:typeof i.livePlanStartTime=="object"&&(n.livePlanStartTime=new r.LongBits(i.livePlanStartTime.low>>>0,i.livePlanStartTime.high>>>0).toNumber())),i.isFollow!=null&&(n.isFollow=!!i.isFollow),i.followCount!=null&&(r.Long?(n.followCount=r.Long.fromValue(i.followCount)).unsigned=!1:typeof i.followCount=="string"?n.followCount=parseInt(i.followCount,10):typeof i.followCount=="number"?n.followCount=i.followCount:typeof i.followCount=="object"&&(n.followCount=new r.LongBits(i.followCount.low>>>0,i.followCount.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.sid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.sid=n.longs===String?"0":0;if(o.text="",r.Long){let a=new r.Long(0,0,!1);o.livePlanStartTime=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.livePlanStartTime=n.longs===String?"0":0;if(o.isFollow=!1,r.Long){let a=new r.Long(0,0,!1);o.followCount=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.followCount=n.longs===String?"0":0}return i.sid!=null&&i.hasOwnProperty("sid")&&(typeof i.sid=="number"?o.sid=n.longs===String?String(i.sid):i.sid:o.sid=n.longs===String?r.Long.prototype.toString.call(i.sid):n.longs===Number?new r.LongBits(i.sid.low>>>0,i.sid.high>>>0).toNumber():i.sid),i.text!=null&&i.hasOwnProperty("text")&&(o.text=i.text),i.livePlanStartTime!=null&&i.hasOwnProperty("livePlanStartTime")&&(typeof i.livePlanStartTime=="number"?o.livePlanStartTime=n.longs===String?String(i.livePlanStartTime):i.livePlanStartTime:o.livePlanStartTime=n.longs===String?r.Long.prototype.toString.call(i.livePlanStartTime):n.longs===Number?new r.LongBits(i.livePlanStartTime.low>>>0,i.livePlanStartTime.high>>>0).toNumber():i.livePlanStartTime),i.isFollow!=null&&i.hasOwnProperty("isFollow")&&(o.isFollow=i.isFollow),i.followCount!=null&&i.hasOwnProperty("followCount")&&(typeof i.followCount=="number"?o.followCount=n.longs===String?String(i.followCount):i.followCount:o.followCount=n.longs===String?r.Long.prototype.toString.call(i.followCount):n.longs===Number?new r.LongBits(i.followCount.low>>>0,i.followCount.high>>>0).toNumber():i.followCount),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.common.LiveOrder"},l}(),e.ActivityReserve=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.title=i.string();break}case 2:{a.vt=u.bilibili.mall.tab3.viewunite.common.StatInfo.decode(i,i.uint32());break}case 3:{a.danmaku=u.bilibili.mall.tab3.viewunite.common.StatInfo.decode(i,i.uint32());break}case 4:{a.button=u.bilibili.mall.tab3.viewunite.common.ReserveButton.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.ActivityReserve)return i;let n=new u.bilibili.mall.tab3.viewunite.common.ActivityReserve;if(i.title!=null&&(n.title=String(i.title)),i.vt!=null){if(typeof i.vt!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.ActivityReserve.vt: object expected");n.vt=u.bilibili.mall.tab3.viewunite.common.StatInfo.fromObject(i.vt)}if(i.danmaku!=null){if(typeof i.danmaku!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.ActivityReserve.danmaku: object expected");n.danmaku=u.bilibili.mall.tab3.viewunite.common.StatInfo.fromObject(i.danmaku)}if(i.button!=null){if(typeof i.button!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.ActivityReserve.button: object expected");n.button=u.bilibili.mall.tab3.viewunite.common.ReserveButton.fromObject(i.button)}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.title="",o.vt=null,o.danmaku=null,o.button=null),i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.vt!=null&&i.hasOwnProperty("vt")&&(o.vt=u.bilibili.mall.tab3.viewunite.common.StatInfo.toObject(i.vt,n)),i.danmaku!=null&&i.hasOwnProperty("danmaku")&&(o.danmaku=u.bilibili.mall.tab3.viewunite.common.StatInfo.toObject(i.danmaku,n)),i.button!=null&&i.hasOwnProperty("button")&&(o.button=u.bilibili.mall.tab3.viewunite.common.ReserveButton.toObject(i.button,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.common.ActivityReserve"},l}(),e.ReserveButton=function(){function l(i){if(i)for(let n=Object.keys(i),o=0;o>>3){case 1:{y.status=n.bool();break}case 3:{y.text=n.string();break}case 4:{y.selectedText=n.string();break}case 7:{y.orderType=n.int32();break}case 8:{y.reserve=u.bilibili.mall.tab3.viewunite.common.BizReserveActivityParam.decode(n,n.uint32());break}case 9:{y.fav=u.bilibili.mall.tab3.viewunite.common.BizFavParam.decode(n,n.uint32());break}default:n.skipType(s&7);break}}return y},l.fromObject=function(n){if(n instanceof u.bilibili.mall.tab3.viewunite.common.ReserveButton)return n;let o=new u.bilibili.mall.tab3.viewunite.common.ReserveButton;switch(n.status!=null&&(o.status=!!n.status),n.text!=null&&(o.text=String(n.text)),n.selectedText!=null&&(o.selectedText=String(n.selectedText)),n.orderType){default:if(typeof n.orderType=="number"){o.orderType=n.orderType;break}break;case"BizTypeNone":case 0:o.orderType=0;break;case"BizTypeReserveActivity":case 1:o.orderType=1;break;case"BizTypeFavSeason":case 2:o.orderType=2;break}if(n.reserve!=null){if(typeof n.reserve!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.ReserveButton.reserve: object expected");o.reserve=u.bilibili.mall.tab3.viewunite.common.BizReserveActivityParam.fromObject(n.reserve)}if(n.fav!=null){if(typeof n.fav!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.ReserveButton.fav: object expected");o.fav=u.bilibili.mall.tab3.viewunite.common.BizFavParam.fromObject(n.fav)}return o},l.toObject=function(n,o){o||(o={});let a={};return o.defaults&&(a.status=!1,a.text="",a.selectedText="",a.orderType=o.enums===String?"BizTypeNone":0),n.status!=null&&n.hasOwnProperty("status")&&(a.status=n.status),n.text!=null&&n.hasOwnProperty("text")&&(a.text=n.text),n.selectedText!=null&&n.hasOwnProperty("selectedText")&&(a.selectedText=n.selectedText),n.orderType!=null&&n.hasOwnProperty("orderType")&&(a.orderType=o.enums===String?u.bilibili.mall.tab3.viewunite.common.ReserveBizType[n.orderType]===void 0?n.orderType:u.bilibili.mall.tab3.viewunite.common.ReserveBizType[n.orderType]:n.orderType),n.reserve!=null&&n.hasOwnProperty("reserve")&&(a.reserve=u.bilibili.mall.tab3.viewunite.common.BizReserveActivityParam.toObject(n.reserve,o),o.oneofs&&(a.orderParam="reserve")),n.fav!=null&&n.hasOwnProperty("fav")&&(a.fav=u.bilibili.mall.tab3.viewunite.common.BizFavParam.toObject(n.fav,o),o.oneofs&&(a.orderParam="fav")),a},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/bilibili.mall.tab3.viewunite.common.ReserveButton"},l}(),e.OgvTitle=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.title=i.string();break}case 2:{a.badgeInfo=u.bilibili.mall.tab3.viewunite.common.BadgeInfo.decode(i,i.uint32());break}case 3:{a.isShowBtnAnimation=i.int32();break}case 4:{a.followVideoIsReserveLive=i.int32();break}case 5:{a.reserveId=i.int64();break}case 6:{a.titleDeliveryButton=u.bilibili.mall.tab3.viewunite.common.TitleDeliveryButton.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.OgvTitle)return i;let n=new u.bilibili.mall.tab3.viewunite.common.OgvTitle;if(i.title!=null&&(n.title=String(i.title)),i.badgeInfo!=null){if(typeof i.badgeInfo!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.OgvTitle.badgeInfo: object expected");n.badgeInfo=u.bilibili.mall.tab3.viewunite.common.BadgeInfo.fromObject(i.badgeInfo)}if(i.isShowBtnAnimation!=null&&(n.isShowBtnAnimation=i.isShowBtnAnimation|0),i.followVideoIsReserveLive!=null&&(n.followVideoIsReserveLive=i.followVideoIsReserveLive|0),i.reserveId!=null&&(r.Long?(n.reserveId=r.Long.fromValue(i.reserveId)).unsigned=!1:typeof i.reserveId=="string"?n.reserveId=parseInt(i.reserveId,10):typeof i.reserveId=="number"?n.reserveId=i.reserveId:typeof i.reserveId=="object"&&(n.reserveId=new r.LongBits(i.reserveId.low>>>0,i.reserveId.high>>>0).toNumber())),i.titleDeliveryButton!=null){if(typeof i.titleDeliveryButton!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.OgvTitle.titleDeliveryButton: object expected");n.titleDeliveryButton=u.bilibili.mall.tab3.viewunite.common.TitleDeliveryButton.fromObject(i.titleDeliveryButton)}return n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(o.title="",o.badgeInfo=null,o.isShowBtnAnimation=0,o.followVideoIsReserveLive=0,r.Long){let a=new r.Long(0,0,!1);o.reserveId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.reserveId=n.longs===String?"0":0;o.titleDeliveryButton=null}return i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.badgeInfo!=null&&i.hasOwnProperty("badgeInfo")&&(o.badgeInfo=u.bilibili.mall.tab3.viewunite.common.BadgeInfo.toObject(i.badgeInfo,n)),i.isShowBtnAnimation!=null&&i.hasOwnProperty("isShowBtnAnimation")&&(o.isShowBtnAnimation=i.isShowBtnAnimation),i.followVideoIsReserveLive!=null&&i.hasOwnProperty("followVideoIsReserveLive")&&(o.followVideoIsReserveLive=i.followVideoIsReserveLive),i.reserveId!=null&&i.hasOwnProperty("reserveId")&&(typeof i.reserveId=="number"?o.reserveId=n.longs===String?String(i.reserveId):i.reserveId:o.reserveId=n.longs===String?r.Long.prototype.toString.call(i.reserveId):n.longs===Number?new r.LongBits(i.reserveId.low>>>0,i.reserveId.high>>>0).toNumber():i.reserveId),i.titleDeliveryButton!=null&&i.hasOwnProperty("titleDeliveryButton")&&(o.titleDeliveryButton=u.bilibili.mall.tab3.viewunite.common.TitleDeliveryButton.toObject(i.titleDeliveryButton,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.common.OgvTitle"},l}(),e.TitleDeliveryButton=function(){function l(t){if(this.report={},t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.icon=i.string();break}case 2:{a.title=i.string();break}case 3:{a.link=i.string();break}case 4:{a.report===r.emptyObject&&(a.report={});let g=i.uint32()+i.pos;for(y="",s="";i.pos>>3){case 1:y=i.string();break;case 2:s=i.string();break;default:i.skipType(S&7);break}}a.report[y]=s;break}default:i.skipType(v&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.TitleDeliveryButton)return i;let n=new u.bilibili.mall.tab3.viewunite.common.TitleDeliveryButton;if(i.icon!=null&&(n.icon=String(i.icon)),i.title!=null&&(n.title=String(i.title)),i.link!=null&&(n.link=String(i.link)),i.report){if(typeof i.report!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.TitleDeliveryButton.report: object expected");n.report={};for(let o=Object.keys(i.report),a=0;a>>3){case 1:{a.id=i.int32();break}case 2:{a.title=i.string();break}case 3:{a.type=i.int32();break}case 4:{a.showName=i.string();break}case 5:{a.picurl=i.string();break}case 6:{a.picurlSelected=i.string();break}case 7:{a.h5Link=i.string();break}case 8:{a.link=i.string();break}case 9:{a.linkType=i.int32();break}case 10:{a.bizKey=i.int64();break}case 11:{a.desc=i.string();break}case 12:{a.actExt=i.string();break}case 13:{a.report===r.emptyObject&&(a.report={});let g=i.uint32()+i.pos;for(y="",s="";i.pos>>3){case 1:y=i.string();break;case 2:s=i.string();break;default:i.skipType(S&7);break}}a.report[y]=s;break}default:i.skipType(v&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.ActivityTab)return i;let n=new u.bilibili.mall.tab3.viewunite.common.ActivityTab;if(i.id!=null&&(n.id=i.id|0),i.title!=null&&(n.title=String(i.title)),i.type!=null&&(n.type=i.type|0),i.showName!=null&&(n.showName=String(i.showName)),i.picurl!=null&&(n.picurl=String(i.picurl)),i.picurlSelected!=null&&(n.picurlSelected=String(i.picurlSelected)),i.h5Link!=null&&(n.h5Link=String(i.h5Link)),i.link!=null&&(n.link=String(i.link)),i.linkType!=null&&(n.linkType=i.linkType|0),i.bizKey!=null&&(r.Long?(n.bizKey=r.Long.fromValue(i.bizKey)).unsigned=!1:typeof i.bizKey=="string"?n.bizKey=parseInt(i.bizKey,10):typeof i.bizKey=="number"?n.bizKey=i.bizKey:typeof i.bizKey=="object"&&(n.bizKey=new r.LongBits(i.bizKey.low>>>0,i.bizKey.high>>>0).toNumber())),i.desc!=null&&(n.desc=String(i.desc)),i.actExt!=null&&(n.actExt=String(i.actExt)),i.report){if(typeof i.report!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.ActivityTab.report: object expected");n.report={};for(let o=Object.keys(i.report),a=0;a>>0,i.bizKey.high>>>0).toNumber():i.bizKey),i.desc!=null&&i.hasOwnProperty("desc")&&(o.desc=i.desc),i.actExt!=null&&i.hasOwnProperty("actExt")&&(o.actExt=i.actExt);let a;if(i.report&&(a=Object.keys(i.report)).length){o.report={};for(let y=0;y>>3){case 1:{a.width=i.int64();break}case 2:{a.height=i.int64();break}case 3:{a.rotate=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.Dimension)return i;let n=new u.bilibili.mall.tab3.viewunite.common.Dimension;return i.width!=null&&(r.Long?(n.width=r.Long.fromValue(i.width)).unsigned=!1:typeof i.width=="string"?n.width=parseInt(i.width,10):typeof i.width=="number"?n.width=i.width:typeof i.width=="object"&&(n.width=new r.LongBits(i.width.low>>>0,i.width.high>>>0).toNumber())),i.height!=null&&(r.Long?(n.height=r.Long.fromValue(i.height)).unsigned=!1:typeof i.height=="string"?n.height=parseInt(i.height,10):typeof i.height=="number"?n.height=i.height:typeof i.height=="object"&&(n.height=new r.LongBits(i.height.low>>>0,i.height.high>>>0).toNumber())),i.rotate!=null&&(r.Long?(n.rotate=r.Long.fromValue(i.rotate)).unsigned=!1:typeof i.rotate=="string"?n.rotate=parseInt(i.rotate,10):typeof i.rotate=="number"?n.rotate=i.rotate:typeof i.rotate=="object"&&(n.rotate=new r.LongBits(i.rotate.low>>>0,i.rotate.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.width=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.width=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.height=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.height=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.rotate=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.rotate=n.longs===String?"0":0}return i.width!=null&&i.hasOwnProperty("width")&&(typeof i.width=="number"?o.width=n.longs===String?String(i.width):i.width:o.width=n.longs===String?r.Long.prototype.toString.call(i.width):n.longs===Number?new r.LongBits(i.width.low>>>0,i.width.high>>>0).toNumber():i.width),i.height!=null&&i.hasOwnProperty("height")&&(typeof i.height=="number"?o.height=n.longs===String?String(i.height):i.height:o.height=n.longs===String?r.Long.prototype.toString.call(i.height):n.longs===Number?new r.LongBits(i.height.low>>>0,i.height.high>>>0).toNumber():i.height),i.rotate!=null&&i.hasOwnProperty("rotate")&&(typeof i.rotate=="number"?o.rotate=n.longs===String?String(i.rotate):i.rotate:o.rotate=n.longs===String?r.Long.prototype.toString.call(i.rotate):n.longs===Number?new r.LongBits(i.rotate.low>>>0,i.rotate.high>>>0).toNumber():i.rotate),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.common.Dimension"},l}(),e.Staff=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.mid=i.int64();break}case 2:{a.attention=i.int32();break}case 3:{a.title=i.string();break}case 4:{a.name=i.string();break}case 5:{a.face=i.string();break}case 6:{a.official=u.bilibili.mall.tab3.viewunite.common.OfficialVerify.decode(i,i.uint32());break}case 7:{a.vip=u.bilibili.mall.tab3.viewunite.common.Vip.decode(i,i.uint32());break}case 8:{a.labelStyle=i.int32();break}case 9:{a.fans=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.Staff)return i;let n=new u.bilibili.mall.tab3.viewunite.common.Staff;if(i.mid!=null&&(r.Long?(n.mid=r.Long.fromValue(i.mid)).unsigned=!1:typeof i.mid=="string"?n.mid=parseInt(i.mid,10):typeof i.mid=="number"?n.mid=i.mid:typeof i.mid=="object"&&(n.mid=new r.LongBits(i.mid.low>>>0,i.mid.high>>>0).toNumber())),i.attention!=null&&(n.attention=i.attention|0),i.title!=null&&(n.title=String(i.title)),i.name!=null&&(n.name=String(i.name)),i.face!=null&&(n.face=String(i.face)),i.official!=null){if(typeof i.official!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.Staff.official: object expected");n.official=u.bilibili.mall.tab3.viewunite.common.OfficialVerify.fromObject(i.official)}if(i.vip!=null){if(typeof i.vip!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.Staff.vip: object expected");n.vip=u.bilibili.mall.tab3.viewunite.common.Vip.fromObject(i.vip)}return i.labelStyle!=null&&(n.labelStyle=i.labelStyle|0),i.fans!=null&&(n.fans=String(i.fans)),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.mid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.mid=n.longs===String?"0":0;o.attention=0,o.title="",o.name="",o.face="",o.official=null,o.vip=null,o.labelStyle=0,o.fans=""}return i.mid!=null&&i.hasOwnProperty("mid")&&(typeof i.mid=="number"?o.mid=n.longs===String?String(i.mid):i.mid:o.mid=n.longs===String?r.Long.prototype.toString.call(i.mid):n.longs===Number?new r.LongBits(i.mid.low>>>0,i.mid.high>>>0).toNumber():i.mid),i.attention!=null&&i.hasOwnProperty("attention")&&(o.attention=i.attention),i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.name!=null&&i.hasOwnProperty("name")&&(o.name=i.name),i.face!=null&&i.hasOwnProperty("face")&&(o.face=i.face),i.official!=null&&i.hasOwnProperty("official")&&(o.official=u.bilibili.mall.tab3.viewunite.common.OfficialVerify.toObject(i.official,n)),i.vip!=null&&i.hasOwnProperty("vip")&&(o.vip=u.bilibili.mall.tab3.viewunite.common.Vip.toObject(i.vip,n)),i.labelStyle!=null&&i.hasOwnProperty("labelStyle")&&(o.labelStyle=i.labelStyle),i.fans!=null&&i.hasOwnProperty("fans")&&(o.fans=i.fans),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.common.Staff"},l}(),e.Vip=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.type=i.int32();break}case 2:{a.vipStatus=i.int32();break}case 3:{a.themeType=i.int32();break}case 4:{a.label=u.bilibili.mall.tab3.viewunite.common.VipLabel.decode(i,i.uint32());break}case 5:{a.isVip=i.int32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.Vip)return i;let n=new u.bilibili.mall.tab3.viewunite.common.Vip;if(i.type!=null&&(n.type=i.type|0),i.vipStatus!=null&&(n.vipStatus=i.vipStatus|0),i.themeType!=null&&(n.themeType=i.themeType|0),i.label!=null){if(typeof i.label!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.Vip.label: object expected");n.label=u.bilibili.mall.tab3.viewunite.common.VipLabel.fromObject(i.label)}return i.isVip!=null&&(n.isVip=i.isVip|0),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.type=0,o.vipStatus=0,o.themeType=0,o.label=null,o.isVip=0),i.type!=null&&i.hasOwnProperty("type")&&(o.type=i.type),i.vipStatus!=null&&i.hasOwnProperty("vipStatus")&&(o.vipStatus=i.vipStatus),i.themeType!=null&&i.hasOwnProperty("themeType")&&(o.themeType=i.themeType),i.label!=null&&i.hasOwnProperty("label")&&(o.label=u.bilibili.mall.tab3.viewunite.common.VipLabel.toObject(i.label,n)),i.isVip!=null&&i.hasOwnProperty("isVip")&&(o.isVip=i.isVip),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.common.Vip"},l}(),e.VipLabel=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.path=i.string();break}case 2:{a.text=i.string();break}case 3:{a.labelTheme=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.VipLabel)return i;let n=new u.bilibili.mall.tab3.viewunite.common.VipLabel;return i.path!=null&&(n.path=String(i.path)),i.text!=null&&(n.text=String(i.text)),i.labelTheme!=null&&(n.labelTheme=String(i.labelTheme)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.path="",o.text="",o.labelTheme=""),i.path!=null&&i.hasOwnProperty("path")&&(o.path=i.path),i.text!=null&&i.hasOwnProperty("text")&&(o.text=i.text),i.labelTheme!=null&&i.hasOwnProperty("labelTheme")&&(o.labelTheme=i.labelTheme),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.common.VipLabel"},l}(),e.OfficialVerify=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.type=i.int32();break}case 2:{a.desc=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.OfficialVerify)return i;let n=new u.bilibili.mall.tab3.viewunite.common.OfficialVerify;return i.type!=null&&(n.type=i.type|0),i.desc!=null&&(n.desc=String(i.desc)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.type=0,o.desc=""),i.type!=null&&i.hasOwnProperty("type")&&(o.type=i.type),i.desc!=null&&i.hasOwnProperty("desc")&&(o.desc=i.desc),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.common.OfficialVerify"},l}(),e.Staffs=function(){function l(t){if(this.staff=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.staff&&a.staff.length||(a.staff=[]),a.staff.push(u.bilibili.mall.tab3.viewunite.common.Staff.decode(i,i.uint32()));break}case 2:{a.title=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.Staffs)return i;let n=new u.bilibili.mall.tab3.viewunite.common.Staffs;if(i.staff){if(!Array.isArray(i.staff))throw TypeError(".bilibili.mall.tab3.viewunite.common.Staffs.staff: array expected");n.staff=[];for(let o=0;o>>3){case 1:{a.avatar=u.bilibili.dagw.component.avatar.v1.AvatarItem.decode(i,i.uint32());break}case 2:{a.url=i.string();break}case 3:{a.title=i.string();break}case 4:{a.fans=i.string();break}case 5:{a.arcCount=i.string();break}case 6:{a.attention=i.int32();break}case 7:{a.attentionRelation=i.int32();break}case 8:{a.pubLocation=i.string();break}case 9:{a.vip=u.bilibili.mall.tab3.viewunite.common.Vip.decode(i,i.uint32());break}case 10:{a.titleUrl=i.string();break}case 11:{a.face=i.string();break}case 12:{a.mid=i.int64();break}case 13:{a.officialVerify=u.bilibili.mall.tab3.viewunite.common.OfficialVerify.decode(i,i.uint32());break}case 14:{a.live=u.bilibili.mall.tab3.viewunite.common.Live.decode(i,i.uint32());break}case 15:{a.fansNum=i.int64();break}case 16:{if(a.assists&&a.assists.length||(a.assists=[]),(y&7)===2){let s=i.uint32()+i.pos;for(;i.pos>>0,i.mid.high>>>0).toNumber())),i.officialVerify!=null){if(typeof i.officialVerify!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.Owner.officialVerify: object expected");n.officialVerify=u.bilibili.mall.tab3.viewunite.common.OfficialVerify.fromObject(i.officialVerify)}if(i.live!=null){if(typeof i.live!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.Owner.live: object expected");n.live=u.bilibili.mall.tab3.viewunite.common.Live.fromObject(i.live)}if(i.fansNum!=null&&(r.Long?(n.fansNum=r.Long.fromValue(i.fansNum)).unsigned=!1:typeof i.fansNum=="string"?n.fansNum=parseInt(i.fansNum,10):typeof i.fansNum=="number"?n.fansNum=i.fansNum:typeof i.fansNum=="object"&&(n.fansNum=new r.LongBits(i.fansNum.low>>>0,i.fansNum.high>>>0).toNumber())),i.assists){if(!Array.isArray(i.assists))throw TypeError(".bilibili.mall.tab3.viewunite.common.Owner.assists: array expected");n.assists=[];for(let o=0;o>>0,i.assists[o].high>>>0).toNumber())}return n},l.toObject=function(i,n){n||(n={});let o={};if((n.arrays||n.defaults)&&(o.assists=[]),n.defaults){if(o.avatar=null,o.url="",o.title="",o.fans="",o.arcCount="",o.attention=0,o.attentionRelation=n.enums===String?"ARS_NONE":0,o.pubLocation="",o.vip=null,o.titleUrl="",o.face="",r.Long){let a=new r.Long(0,0,!1);o.mid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.mid=n.longs===String?"0":0;if(o.officialVerify=null,o.live=null,r.Long){let a=new r.Long(0,0,!1);o.fansNum=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.fansNum=n.longs===String?"0":0}if(i.avatar!=null&&i.hasOwnProperty("avatar")&&(o.avatar=u.bilibili.dagw.component.avatar.v1.AvatarItem.toObject(i.avatar,n)),i.url!=null&&i.hasOwnProperty("url")&&(o.url=i.url),i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.fans!=null&&i.hasOwnProperty("fans")&&(o.fans=i.fans),i.arcCount!=null&&i.hasOwnProperty("arcCount")&&(o.arcCount=i.arcCount),i.attention!=null&&i.hasOwnProperty("attention")&&(o.attention=i.attention),i.attentionRelation!=null&&i.hasOwnProperty("attentionRelation")&&(o.attentionRelation=n.enums===String?u.bilibili.mall.tab3.viewunite.common.AttentionRelationStatus[i.attentionRelation]===void 0?i.attentionRelation:u.bilibili.mall.tab3.viewunite.common.AttentionRelationStatus[i.attentionRelation]:i.attentionRelation),i.pubLocation!=null&&i.hasOwnProperty("pubLocation")&&(o.pubLocation=i.pubLocation),i.vip!=null&&i.hasOwnProperty("vip")&&(o.vip=u.bilibili.mall.tab3.viewunite.common.Vip.toObject(i.vip,n)),i.titleUrl!=null&&i.hasOwnProperty("titleUrl")&&(o.titleUrl=i.titleUrl),i.face!=null&&i.hasOwnProperty("face")&&(o.face=i.face),i.mid!=null&&i.hasOwnProperty("mid")&&(typeof i.mid=="number"?o.mid=n.longs===String?String(i.mid):i.mid:o.mid=n.longs===String?r.Long.prototype.toString.call(i.mid):n.longs===Number?new r.LongBits(i.mid.low>>>0,i.mid.high>>>0).toNumber():i.mid),i.officialVerify!=null&&i.hasOwnProperty("officialVerify")&&(o.officialVerify=u.bilibili.mall.tab3.viewunite.common.OfficialVerify.toObject(i.officialVerify,n)),i.live!=null&&i.hasOwnProperty("live")&&(o.live=u.bilibili.mall.tab3.viewunite.common.Live.toObject(i.live,n)),i.fansNum!=null&&i.hasOwnProperty("fansNum")&&(typeof i.fansNum=="number"?o.fansNum=n.longs===String?String(i.fansNum):i.fansNum:o.fansNum=n.longs===String?r.Long.prototype.toString.call(i.fansNum):n.longs===Number?new r.LongBits(i.fansNum.low>>>0,i.fansNum.high>>>0).toNumber():i.fansNum),i.assists&&i.assists.length){o.assists=[];for(let a=0;a>>0,i.assists[a].high>>>0).toNumber():i.assists[a]}return o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.common.Owner"},l}(),e.Live=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.mid=i.int64();break}case 2:{a.roomId=i.int64();break}case 3:{a.uri=i.string();break}case 4:{a.endpageUri=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.Live)return i;let n=new u.bilibili.mall.tab3.viewunite.common.Live;return i.mid!=null&&(r.Long?(n.mid=r.Long.fromValue(i.mid)).unsigned=!1:typeof i.mid=="string"?n.mid=parseInt(i.mid,10):typeof i.mid=="number"?n.mid=i.mid:typeof i.mid=="object"&&(n.mid=new r.LongBits(i.mid.low>>>0,i.mid.high>>>0).toNumber())),i.roomId!=null&&(r.Long?(n.roomId=r.Long.fromValue(i.roomId)).unsigned=!1:typeof i.roomId=="string"?n.roomId=parseInt(i.roomId,10):typeof i.roomId=="number"?n.roomId=i.roomId:typeof i.roomId=="object"&&(n.roomId=new r.LongBits(i.roomId.low>>>0,i.roomId.high>>>0).toNumber())),i.uri!=null&&(n.uri=String(i.uri)),i.endpageUri!=null&&(n.endpageUri=String(i.endpageUri)),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.mid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.mid=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.roomId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.roomId=n.longs===String?"0":0;o.uri="",o.endpageUri=""}return i.mid!=null&&i.hasOwnProperty("mid")&&(typeof i.mid=="number"?o.mid=n.longs===String?String(i.mid):i.mid:o.mid=n.longs===String?r.Long.prototype.toString.call(i.mid):n.longs===Number?new r.LongBits(i.mid.low>>>0,i.mid.high>>>0).toNumber():i.mid),i.roomId!=null&&i.hasOwnProperty("roomId")&&(typeof i.roomId=="number"?o.roomId=n.longs===String?String(i.roomId):i.roomId:o.roomId=n.longs===String?r.Long.prototype.toString.call(i.roomId):n.longs===Number?new r.LongBits(i.roomId.low>>>0,i.roomId.high>>>0).toNumber():i.roomId),i.uri!=null&&i.hasOwnProperty("uri")&&(o.uri=i.uri),i.endpageUri!=null&&i.hasOwnProperty("endpageUri")&&(o.endpageUri=i.endpageUri),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.common.Live"},l}(),e.AttentionRelationStatus=function(){let l={},t=Object.create(l);return t[l[0]="ARS_NONE"]=0,t[l[1]="ARS_N0RELATION"]=1,t[l[2]="ARS_FOLLOWHIM"]=2,t[l[3]="ARS_FOLLOWME"]=3,t[l[4]="ARS_BUDDY"]=4,t[l[5]="ARS_SPECIAL"]=5,t[l[6]="ARS_CANCELBLOCK"]=6,t}(),e.ModuleType=function(){let l={},t=Object.create(l);return t[l[0]="UNKNOWN"]=0,t[l[1]="OGV_INTRODUCTION"]=1,t[l[2]="OGV_TITLE"]=2,t[l[3]="UGC_HEADLINE"]=3,t[l[4]="UGC_INTRODUCTION"]=4,t[l[5]="KING_POSITION"]=5,t[l[6]="MASTER_USER_LIST"]=6,t[l[7]="STAFFS"]=7,t[l[8]="HONOR"]=8,t[l[9]="OWNER"]=9,t[l[10]="PAGE"]=10,t[l[11]="ACTIVITY_RESERVE"]=11,t[l[12]="LIVE_ORDER"]=12,t[l[13]="POSITIVE"]=13,t[l[14]="SECTION"]=14,t[l[15]="RELATE"]=15,t[l[16]="PUGV"]=16,t[l[17]="COLLECTION_CARD"]=17,t[l[18]="ACTIVITY"]=18,t[l[19]="CHARACTER"]=19,t[l[20]="FOLLOW_LAYER"]=20,t[l[21]="OGV_SEASONS"]=21,t[l[22]="UGC_SEASON"]=22,t[l[23]="OGV_LIVE_RESERVE"]=23,t[l[24]="COMBINATION_EPISODE"]=24,t[l[25]="SPONSOR"]=25,t[l[26]="ACTIVITY_ENTRANCE"]=26,t[l[27]="THEATRE_HOT_TOPIC"]=27,t[l[28]="RELATED_RECOMMEND"]=28,t[l[29]="PAY_BAR"]=29,t[l[30]="BANNER"]=30,t[l[31]="AUDIO"]=31,t[l[32]="AGG_CARD"]=32,t[l[33]="SINGLE_EP"]=33,t[l[34]="LIKE_COMMENT"]=34,t[l[35]="ATTENTION_RECOMMEND"]=35,t[l[36]="COVENANTER"]=36,t[l[37]="SPECIALTAG"]=37,t[l[38]="UPDATA"]=38,t[l[39]="PROFESSION_APPROVAL"]=39,t}(),e.ProfessionApproval=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.title=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.ProfessionApproval)return i;let n=new u.bilibili.mall.tab3.viewunite.common.ProfessionApproval;return i.title!=null&&(n.title=String(i.title)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.title=""),i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.common.ProfessionApproval"},l}(),e.Honor=function(){function l(t){if(this.report={},t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.icon=i.string();break}case 2:{a.iconNight=i.string();break}case 3:{a.text=i.string();break}case 4:{a.textExtra=i.string();break}case 5:{a.textColor=i.string();break}case 6:{a.textColorNight=i.string();break}case 7:{a.bgColor=i.string();break}case 8:{a.bgColorNight=i.string();break}case 9:{a.url=i.string();break}case 10:{a.urlText=i.string();break}case 11:{a.type=i.int32();break}case 12:{a.honorJumpType=i.int32();break}case 13:{a.report===r.emptyObject&&(a.report={});let g=i.uint32()+i.pos;for(y="",s="";i.pos>>3){case 1:y=i.string();break;case 2:s=i.string();break;default:i.skipType(S&7);break}}a.report[y]=s;break}default:i.skipType(v&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.Honor)return i;let n=new u.bilibili.mall.tab3.viewunite.common.Honor;switch(i.icon!=null&&(n.icon=String(i.icon)),i.iconNight!=null&&(n.iconNight=String(i.iconNight)),i.text!=null&&(n.text=String(i.text)),i.textExtra!=null&&(n.textExtra=String(i.textExtra)),i.textColor!=null&&(n.textColor=String(i.textColor)),i.textColorNight!=null&&(n.textColorNight=String(i.textColorNight)),i.bgColor!=null&&(n.bgColor=String(i.bgColor)),i.bgColorNight!=null&&(n.bgColorNight=String(i.bgColorNight)),i.url!=null&&(n.url=String(i.url)),i.urlText!=null&&(n.urlText=String(i.urlText)),i.type){default:if(typeof i.type=="number"){n.type=i.type;break}break;case"HONOR_NONE":case 0:n.type=0;break;case"PLAYLET":case 1:n.type=1;break;case"ARGUE":case 2:n.type=2;break;case"NOTICE":case 3:n.type=3;break;case"GUIDANCE":case 4:n.type=4;break;case"HONOR_BILI_RANK":case 5:n.type=5;break;case"HONOR_WEEKLY_RANK":case 6:n.type=6;break;case"HONOR_DAILY_RANK":case 7:n.type=7;break;case"HONOR_CHANNEL":case 8:n.type=8;break;case"HONOR_MUSIC":case 9:n.type=9;break;case"HONOR_REPLY":case 10:n.type=10;break}switch(i.honorJumpType){default:if(typeof i.honorJumpType=="number"){n.honorJumpType=i.honorJumpType;break}break;case"HONOR_JUMP_TYPE_UNKNOWN":case 0:n.honorJumpType=0;break;case"HONOR_OPEN_URL":case 1:n.honorJumpType=1;break;case"HONOR_HALF_SCREEN":case 2:n.honorJumpType=2;break}if(i.report){if(typeof i.report!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.Honor.report: object expected");n.report={};for(let o=Object.keys(i.report),a=0;a>>3){case 1:{a.list&&a.list.length||(a.list=[]),a.list.push(u.bilibili.mall.tab3.viewunite.common.User.decode(i,i.uint32()));break}case 2:{a.title=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.UserList)return i;let n=new u.bilibili.mall.tab3.viewunite.common.UserList;if(i.list){if(!Array.isArray(i.list))throw TypeError(".bilibili.mall.tab3.viewunite.common.UserList.list: array expected");n.list=[];for(let o=0;o>>3){case 1:{a.mid=i.int64();break}case 2:{a.name=i.string();break}case 3:{a.face=i.string();break}case 4:{a.follower=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.User)return i;let n=new u.bilibili.mall.tab3.viewunite.common.User;return i.mid!=null&&(r.Long?(n.mid=r.Long.fromValue(i.mid)).unsigned=!1:typeof i.mid=="string"?n.mid=parseInt(i.mid,10):typeof i.mid=="number"?n.mid=i.mid:typeof i.mid=="object"&&(n.mid=new r.LongBits(i.mid.low>>>0,i.mid.high>>>0).toNumber())),i.name!=null&&(n.name=String(i.name)),i.face!=null&&(n.face=String(i.face)),i.follower!=null&&(r.Long?(n.follower=r.Long.fromValue(i.follower)).unsigned=!1:typeof i.follower=="string"?n.follower=parseInt(i.follower,10):typeof i.follower=="number"?n.follower=i.follower:typeof i.follower=="object"&&(n.follower=new r.LongBits(i.follower.low>>>0,i.follower.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.mid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.mid=n.longs===String?"0":0;if(o.name="",o.face="",r.Long){let a=new r.Long(0,0,!1);o.follower=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.follower=n.longs===String?"0":0}return i.mid!=null&&i.hasOwnProperty("mid")&&(typeof i.mid=="number"?o.mid=n.longs===String?String(i.mid):i.mid:o.mid=n.longs===String?r.Long.prototype.toString.call(i.mid):n.longs===Number?new r.LongBits(i.mid.low>>>0,i.mid.high>>>0).toNumber():i.mid),i.name!=null&&i.hasOwnProperty("name")&&(o.name=i.name),i.face!=null&&i.hasOwnProperty("face")&&(o.face=i.face),i.follower!=null&&i.hasOwnProperty("follower")&&(typeof i.follower=="number"?o.follower=n.longs===String?String(i.follower):i.follower:o.follower=n.longs===String?r.Long.prototype.toString.call(i.follower):n.longs===Number?new r.LongBits(i.follower.low>>>0,i.follower.high>>>0).toNumber():i.follower),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.common.User"},l}(),e.OgvIntroduction=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.followers=i.string();break}case 2:{a.score=i.string();break}case 3:{a.playData=u.bilibili.mall.tab3.viewunite.common.StatInfo.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.OgvIntroduction)return i;let n=new u.bilibili.mall.tab3.viewunite.common.OgvIntroduction;if(i.followers!=null&&(n.followers=String(i.followers)),i.score!=null&&(n.score=String(i.score)),i.playData!=null){if(typeof i.playData!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.OgvIntroduction.playData: object expected");n.playData=u.bilibili.mall.tab3.viewunite.common.StatInfo.fromObject(i.playData)}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.followers="",o.score="",o.playData=null),i.followers!=null&&i.hasOwnProperty("followers")&&(o.followers=i.followers),i.score!=null&&i.hasOwnProperty("score")&&(o.score=i.score),i.playData!=null&&i.hasOwnProperty("playData")&&(o.playData=u.bilibili.mall.tab3.viewunite.common.StatInfo.toObject(i.playData,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.common.OgvIntroduction"},l}(),e.UgcIntroduction=function(){function l(t){if(this.tags=[],this.bgm=[],this.sticker=[],this.videoSource=[],this.desc=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.tags&&a.tags.length||(a.tags=[]),a.tags.push(u.bilibili.mall.tab3.viewunite.common.Tag.decode(i,i.uint32()));break}case 2:{a.rating=u.bilibili.mall.tab3.viewunite.common.Rating.decode(i,i.uint32());break}case 3:{a.rank=u.bilibili.mall.tab3.viewunite.common.Rank.decode(i,i.uint32());break}case 4:{a.bgm&&a.bgm.length||(a.bgm=[]),a.bgm.push(u.bilibili.mall.tab3.viewunite.common.ViewMaterial.decode(i,i.uint32()));break}case 5:{a.sticker&&a.sticker.length||(a.sticker=[]),a.sticker.push(u.bilibili.mall.tab3.viewunite.common.ViewMaterial.decode(i,i.uint32()));break}case 6:{a.videoSource&&a.videoSource.length||(a.videoSource=[]),a.videoSource.push(u.bilibili.mall.tab3.viewunite.common.ViewMaterial.decode(i,i.uint32()));break}case 7:{a.pubdate=i.int64();break}case 8:{a.desc&&a.desc.length||(a.desc=[]),a.desc.push(u.bilibili.mall.tab3.viewunite.common.DescV2.decode(i,i.uint32()));break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.UgcIntroduction)return i;let n=new u.bilibili.mall.tab3.viewunite.common.UgcIntroduction;if(i.tags){if(!Array.isArray(i.tags))throw TypeError(".bilibili.mall.tab3.viewunite.common.UgcIntroduction.tags: array expected");n.tags=[];for(let o=0;o>>0,i.pubdate.high>>>0).toNumber())),i.desc){if(!Array.isArray(i.desc))throw TypeError(".bilibili.mall.tab3.viewunite.common.UgcIntroduction.desc: array expected");n.desc=[];for(let o=0;o>>0,i.pubdate.high>>>0).toNumber():i.pubdate),i.desc&&i.desc.length){o.desc=[];for(let a=0;a>>3){case 1:{a.value=i.int64();break}case 2:{a.text=i.string();break}case 3:{a.pureText=i.string();break}case 4:{a.icon=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.StatInfo)return i;let n=new u.bilibili.mall.tab3.viewunite.common.StatInfo;return i.value!=null&&(r.Long?(n.value=r.Long.fromValue(i.value)).unsigned=!1:typeof i.value=="string"?n.value=parseInt(i.value,10):typeof i.value=="number"?n.value=i.value:typeof i.value=="object"&&(n.value=new r.LongBits(i.value.low>>>0,i.value.high>>>0).toNumber())),i.text!=null&&(n.text=String(i.text)),i.pureText!=null&&(n.pureText=String(i.pureText)),i.icon!=null&&(n.icon=String(i.icon)),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.value=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.value=n.longs===String?"0":0;o.text="",o.pureText="",o.icon=""}return i.value!=null&&i.hasOwnProperty("value")&&(typeof i.value=="number"?o.value=n.longs===String?String(i.value):i.value:o.value=n.longs===String?r.Long.prototype.toString.call(i.value):n.longs===Number?new r.LongBits(i.value.low>>>0,i.value.high>>>0).toNumber():i.value),i.text!=null&&i.hasOwnProperty("text")&&(o.text=i.text),i.pureText!=null&&i.hasOwnProperty("pureText")&&(o.pureText=i.pureText),i.icon!=null&&i.hasOwnProperty("icon")&&(o.icon=i.icon),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.common.StatInfo"},l}(),e.DescV2=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.text=i.string();break}case 2:{a.type=i.int32();break}case 3:{a.uri=i.string();break}case 4:{a.rid=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.DescV2)return i;let n=new u.bilibili.mall.tab3.viewunite.common.DescV2;switch(i.text!=null&&(n.text=String(i.text)),i.type){default:if(typeof i.type=="number"){n.type=i.type;break}break;case"DescTypeUnknown":case 0:n.type=0;break;case"DescTypeText":case 1:n.type=1;break;case"DescTypeAt":case 2:n.type=2;break}return i.uri!=null&&(n.uri=String(i.uri)),i.rid!=null&&(r.Long?(n.rid=r.Long.fromValue(i.rid)).unsigned=!1:typeof i.rid=="string"?n.rid=parseInt(i.rid,10):typeof i.rid=="number"?n.rid=i.rid:typeof i.rid=="object"&&(n.rid=new r.LongBits(i.rid.low>>>0,i.rid.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults)if(o.text="",o.type=n.enums===String?"DescTypeUnknown":0,o.uri="",r.Long){let a=new r.Long(0,0,!1);o.rid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.rid=n.longs===String?"0":0;return i.text!=null&&i.hasOwnProperty("text")&&(o.text=i.text),i.type!=null&&i.hasOwnProperty("type")&&(o.type=n.enums===String?u.bilibili.mall.tab3.viewunite.common.DescType[i.type]===void 0?i.type:u.bilibili.mall.tab3.viewunite.common.DescType[i.type]:i.type),i.uri!=null&&i.hasOwnProperty("uri")&&(o.uri=i.uri),i.rid!=null&&i.hasOwnProperty("rid")&&(typeof i.rid=="number"?o.rid=n.longs===String?String(i.rid):i.rid:o.rid=n.longs===String?r.Long.prototype.toString.call(i.rid):n.longs===Number?new r.LongBits(i.rid.low>>>0,i.rid.high>>>0).toNumber():i.rid),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.common.DescV2"},l}(),e.DescType=function(){let l={},t=Object.create(l);return t[l[0]="DescTypeUnknown"]=0,t[l[1]="DescTypeText"]=1,t[l[2]="DescTypeAt"]=2,t}(),e.Rank=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.icon=i.string();break}case 2:{a.iconNight=i.string();break}case 3:{a.text=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.Rank)return i;let n=new u.bilibili.mall.tab3.viewunite.common.Rank;return i.icon!=null&&(n.icon=String(i.icon)),i.iconNight!=null&&(n.iconNight=String(i.iconNight)),i.text!=null&&(n.text=String(i.text)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.icon="",o.iconNight="",o.text=""),i.icon!=null&&i.hasOwnProperty("icon")&&(o.icon=i.icon),i.iconNight!=null&&i.hasOwnProperty("iconNight")&&(o.iconNight=i.iconNight),i.text!=null&&i.hasOwnProperty("text")&&(o.text=i.text),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.common.Rank"},l}(),e.KingPosition=function(){function l(t){if(this.kingPos=[],this.extend=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.kingPos&&a.kingPos.length||(a.kingPos=[]),a.kingPos.push(u.bilibili.mall.tab3.viewunite.common.KingPos.decode(i,i.uint32()));break}case 2:{a.extend&&a.extend.length||(a.extend=[]),a.extend.push(u.bilibili.mall.tab3.viewunite.common.KingPos.decode(i,i.uint32()));break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.KingPosition)return i;let n=new u.bilibili.mall.tab3.viewunite.common.KingPosition;if(i.kingPos){if(!Array.isArray(i.kingPos))throw TypeError(".bilibili.mall.tab3.viewunite.common.KingPosition.kingPos: array expected");n.kingPos=[];for(let o=0;o>>3){case 1:{a.score=i.string();break}case 2:{a.count=i.int32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.Rating)return i;let n=new u.bilibili.mall.tab3.viewunite.common.Rating;return i.score!=null&&(n.score=String(i.score)),i.count!=null&&(n.count=i.count|0),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.score="",o.count=0),i.score!=null&&i.hasOwnProperty("score")&&(o.score=i.score),i.count!=null&&i.hasOwnProperty("count")&&(o.count=i.count),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.common.Rating"},l}(),e.ViewMaterial=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.oid=i.int64();break}case 2:{a.mid=i.int64();break}case 3:{a.title=i.string();break}case 4:{a.author=i.string();break}case 5:{a.jumpUrl=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.ViewMaterial)return i;let n=new u.bilibili.mall.tab3.viewunite.common.ViewMaterial;return i.oid!=null&&(r.Long?(n.oid=r.Long.fromValue(i.oid)).unsigned=!1:typeof i.oid=="string"?n.oid=parseInt(i.oid,10):typeof i.oid=="number"?n.oid=i.oid:typeof i.oid=="object"&&(n.oid=new r.LongBits(i.oid.low>>>0,i.oid.high>>>0).toNumber())),i.mid!=null&&(r.Long?(n.mid=r.Long.fromValue(i.mid)).unsigned=!1:typeof i.mid=="string"?n.mid=parseInt(i.mid,10):typeof i.mid=="number"?n.mid=i.mid:typeof i.mid=="object"&&(n.mid=new r.LongBits(i.mid.low>>>0,i.mid.high>>>0).toNumber())),i.title!=null&&(n.title=String(i.title)),i.author!=null&&(n.author=String(i.author)),i.jumpUrl!=null&&(n.jumpUrl=String(i.jumpUrl)),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.oid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.oid=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.mid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.mid=n.longs===String?"0":0;o.title="",o.author="",o.jumpUrl=""}return i.oid!=null&&i.hasOwnProperty("oid")&&(typeof i.oid=="number"?o.oid=n.longs===String?String(i.oid):i.oid:o.oid=n.longs===String?r.Long.prototype.toString.call(i.oid):n.longs===Number?new r.LongBits(i.oid.low>>>0,i.oid.high>>>0).toNumber():i.oid),i.mid!=null&&i.hasOwnProperty("mid")&&(typeof i.mid=="number"?o.mid=n.longs===String?String(i.mid):i.mid:o.mid=n.longs===String?r.Long.prototype.toString.call(i.mid):n.longs===Number?new r.LongBits(i.mid.low>>>0,i.mid.high>>>0).toNumber():i.mid),i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.author!=null&&i.hasOwnProperty("author")&&(o.author=i.author),i.jumpUrl!=null&&i.hasOwnProperty("jumpUrl")&&(o.jumpUrl=i.jumpUrl),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.common.ViewMaterial"},l}(),e.Headline=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.label=u.bilibili.mall.tab3.viewunite.common.Label.decode(i,i.uint32());break}case 2:{a.content=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.Headline)return i;let n=new u.bilibili.mall.tab3.viewunite.common.Headline;if(i.label!=null){if(typeof i.label!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.Headline.label: object expected");n.label=u.bilibili.mall.tab3.viewunite.common.Label.fromObject(i.label)}return i.content!=null&&(n.content=String(i.content)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.label=null,o.content=""),i.label!=null&&i.hasOwnProperty("label")&&(o.label=u.bilibili.mall.tab3.viewunite.common.Label.toObject(i.label,n)),i.content!=null&&i.hasOwnProperty("content")&&(o.content=i.content),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.common.Headline"},l}(),e.Label=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.type=i.int32();break}case 2:{a.uri=i.string();break}case 3:{a.icon=i.string();break}case 4:{a.iconNight=i.string();break}case 5:{a.iconWidth=i.int64();break}case 6:{a.iconHeight=i.int64();break}case 7:{a.lottie=i.string();break}case 8:{a.lottieNight=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.Label)return i;let n=new u.bilibili.mall.tab3.viewunite.common.Label;return i.type!=null&&(n.type=i.type|0),i.uri!=null&&(n.uri=String(i.uri)),i.icon!=null&&(n.icon=String(i.icon)),i.iconNight!=null&&(n.iconNight=String(i.iconNight)),i.iconWidth!=null&&(r.Long?(n.iconWidth=r.Long.fromValue(i.iconWidth)).unsigned=!1:typeof i.iconWidth=="string"?n.iconWidth=parseInt(i.iconWidth,10):typeof i.iconWidth=="number"?n.iconWidth=i.iconWidth:typeof i.iconWidth=="object"&&(n.iconWidth=new r.LongBits(i.iconWidth.low>>>0,i.iconWidth.high>>>0).toNumber())),i.iconHeight!=null&&(r.Long?(n.iconHeight=r.Long.fromValue(i.iconHeight)).unsigned=!1:typeof i.iconHeight=="string"?n.iconHeight=parseInt(i.iconHeight,10):typeof i.iconHeight=="number"?n.iconHeight=i.iconHeight:typeof i.iconHeight=="object"&&(n.iconHeight=new r.LongBits(i.iconHeight.low>>>0,i.iconHeight.high>>>0).toNumber())),i.lottie!=null&&(n.lottie=String(i.lottie)),i.lottieNight!=null&&(n.lottieNight=String(i.lottieNight)),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(o.type=0,o.uri="",o.icon="",o.iconNight="",r.Long){let a=new r.Long(0,0,!1);o.iconWidth=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.iconWidth=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.iconHeight=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.iconHeight=n.longs===String?"0":0;o.lottie="",o.lottieNight=""}return i.type!=null&&i.hasOwnProperty("type")&&(o.type=i.type),i.uri!=null&&i.hasOwnProperty("uri")&&(o.uri=i.uri),i.icon!=null&&i.hasOwnProperty("icon")&&(o.icon=i.icon),i.iconNight!=null&&i.hasOwnProperty("iconNight")&&(o.iconNight=i.iconNight),i.iconWidth!=null&&i.hasOwnProperty("iconWidth")&&(typeof i.iconWidth=="number"?o.iconWidth=n.longs===String?String(i.iconWidth):i.iconWidth:o.iconWidth=n.longs===String?r.Long.prototype.toString.call(i.iconWidth):n.longs===Number?new r.LongBits(i.iconWidth.low>>>0,i.iconWidth.high>>>0).toNumber():i.iconWidth),i.iconHeight!=null&&i.hasOwnProperty("iconHeight")&&(typeof i.iconHeight=="number"?o.iconHeight=n.longs===String?String(i.iconHeight):i.iconHeight:o.iconHeight=n.longs===String?r.Long.prototype.toString.call(i.iconHeight):n.longs===Number?new r.LongBits(i.iconHeight.low>>>0,i.iconHeight.high>>>0).toNumber():i.iconHeight),i.lottie!=null&&i.hasOwnProperty("lottie")&&(o.lottie=i.lottie),i.lottieNight!=null&&i.hasOwnProperty("lottieNight")&&(o.lottieNight=i.lottieNight),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.common.Label"},l}(),e.Tag=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.tagId=i.int64();break}case 2:{a.name=i.string();break}case 3:{a.uri=i.string();break}case 4:{a.tagType=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.Tag)return i;let n=new u.bilibili.mall.tab3.viewunite.common.Tag;return i.tagId!=null&&(r.Long?(n.tagId=r.Long.fromValue(i.tagId)).unsigned=!1:typeof i.tagId=="string"?n.tagId=parseInt(i.tagId,10):typeof i.tagId=="number"?n.tagId=i.tagId:typeof i.tagId=="object"&&(n.tagId=new r.LongBits(i.tagId.low>>>0,i.tagId.high>>>0).toNumber())),i.name!=null&&(n.name=String(i.name)),i.uri!=null&&(n.uri=String(i.uri)),i.tagType!=null&&(n.tagType=String(i.tagType)),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.tagId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.tagId=n.longs===String?"0":0;o.name="",o.uri="",o.tagType=""}return i.tagId!=null&&i.hasOwnProperty("tagId")&&(typeof i.tagId=="number"?o.tagId=n.longs===String?String(i.tagId):i.tagId:o.tagId=n.longs===String?r.Long.prototype.toString.call(i.tagId):n.longs===Number?new r.LongBits(i.tagId.low>>>0,i.tagId.high>>>0).toNumber():i.tagId),i.name!=null&&i.hasOwnProperty("name")&&(o.name=i.name),i.uri!=null&&i.hasOwnProperty("uri")&&(o.uri=i.uri),i.tagType!=null&&i.hasOwnProperty("tagType")&&(o.tagType=i.tagType),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.common.Tag"},l}(),e.KingPos=function(){function l(i){if(i)for(let n=Object.keys(i),o=0;o>>3){case 1:{y.disable=n.bool();break}case 2:{y.icon=n.string();break}case 4:{y.disableToast=n.string();break}case 5:{y.checkedToast=n.string();break}case 3:{y.type=n.int32();break}case 6:{y.like=u.bilibili.mall.tab3.viewunite.common.LikeExtend.decode(n,n.uint32());break}case 7:{y.coin=u.bilibili.mall.tab3.viewunite.common.CoinExtend.decode(n,n.uint32());break}default:n.skipType(s&7);break}}return y},l.fromObject=function(n){if(n instanceof u.bilibili.mall.tab3.viewunite.common.KingPos)return n;let o=new u.bilibili.mall.tab3.viewunite.common.KingPos;switch(n.disable!=null&&(o.disable=!!n.disable),n.icon!=null&&(o.icon=String(n.icon)),n.disableToast!=null&&(o.disableToast=String(n.disableToast)),n.checkedToast!=null&&(o.checkedToast=String(n.checkedToast)),n.type){default:if(typeof n.type=="number"){o.type=n.type;break}break;case"KING_POS_UNSPECIFIED":case 0:o.type=0;break;case"LIKE":case 1:o.type=1;break;case"DISLIKE":case 2:o.type=2;break;case"COIN":case 3:o.type=3;break;case"FAV":case 4:o.type=4;break;case"SHARE":case 5:o.type=5;break;case"CACHE":case 6:o.type=6;break;case"DANMAKU":case 7:o.type=7;break}if(n.like!=null){if(typeof n.like!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.KingPos.like: object expected");o.like=u.bilibili.mall.tab3.viewunite.common.LikeExtend.fromObject(n.like)}if(n.coin!=null){if(typeof n.coin!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.KingPos.coin: object expected");o.coin=u.bilibili.mall.tab3.viewunite.common.CoinExtend.fromObject(n.coin)}return o},l.toObject=function(n,o){o||(o={});let a={};return o.defaults&&(a.disable=!1,a.icon="",a.type=o.enums===String?"KING_POS_UNSPECIFIED":0,a.disableToast="",a.checkedToast=""),n.disable!=null&&n.hasOwnProperty("disable")&&(a.disable=n.disable),n.icon!=null&&n.hasOwnProperty("icon")&&(a.icon=n.icon),n.type!=null&&n.hasOwnProperty("type")&&(a.type=o.enums===String?u.bilibili.mall.tab3.viewunite.common.KingPositionType[n.type]===void 0?n.type:u.bilibili.mall.tab3.viewunite.common.KingPositionType[n.type]:n.type),n.disableToast!=null&&n.hasOwnProperty("disableToast")&&(a.disableToast=n.disableToast),n.checkedToast!=null&&n.hasOwnProperty("checkedToast")&&(a.checkedToast=n.checkedToast),n.like!=null&&n.hasOwnProperty("like")&&(a.like=u.bilibili.mall.tab3.viewunite.common.LikeExtend.toObject(n.like,o),o.oneofs&&(a.extend="like")),n.coin!=null&&n.hasOwnProperty("coin")&&(a.coin=u.bilibili.mall.tab3.viewunite.common.CoinExtend.toObject(n.coin,o),o.oneofs&&(a.extend="coin")),a},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/bilibili.mall.tab3.viewunite.common.KingPos"},l}(),e.BadgeInfo=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.text=i.string();break}case 2:{a.textColor=i.string();break}case 3:{a.textColorNight=i.string();break}case 4:{a.bgColor=i.string();break}case 5:{a.bgColorNight=i.string();break}case 6:{a.borderColor=i.string();break}case 7:{a.borderColorNight=i.string();break}case 8:{a.bgStyle=i.int32();break}case 9:{a.img=i.string();break}case 10:{a.type=i.int32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.BadgeInfo)return i;let n=new u.bilibili.mall.tab3.viewunite.common.BadgeInfo;return i.text!=null&&(n.text=String(i.text)),i.textColor!=null&&(n.textColor=String(i.textColor)),i.textColorNight!=null&&(n.textColorNight=String(i.textColorNight)),i.bgColor!=null&&(n.bgColor=String(i.bgColor)),i.bgColorNight!=null&&(n.bgColorNight=String(i.bgColorNight)),i.borderColor!=null&&(n.borderColor=String(i.borderColor)),i.borderColorNight!=null&&(n.borderColorNight=String(i.borderColorNight)),i.bgStyle!=null&&(n.bgStyle=i.bgStyle|0),i.img!=null&&(n.img=String(i.img)),i.type!=null&&(n.type=i.type|0),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.text="",o.textColor="",o.textColorNight="",o.bgColor="",o.bgColorNight="",o.borderColor="",o.borderColorNight="",o.bgStyle=0,o.img="",o.type=0),i.text!=null&&i.hasOwnProperty("text")&&(o.text=i.text),i.textColor!=null&&i.hasOwnProperty("textColor")&&(o.textColor=i.textColor),i.textColorNight!=null&&i.hasOwnProperty("textColorNight")&&(o.textColorNight=i.textColorNight),i.bgColor!=null&&i.hasOwnProperty("bgColor")&&(o.bgColor=i.bgColor),i.bgColorNight!=null&&i.hasOwnProperty("bgColorNight")&&(o.bgColorNight=i.bgColorNight),i.borderColor!=null&&i.hasOwnProperty("borderColor")&&(o.borderColor=i.borderColor),i.borderColorNight!=null&&i.hasOwnProperty("borderColorNight")&&(o.borderColorNight=i.borderColorNight),i.bgStyle!=null&&i.hasOwnProperty("bgStyle")&&(o.bgStyle=i.bgStyle),i.img!=null&&i.hasOwnProperty("img")&&(o.img=i.img),i.type!=null&&i.hasOwnProperty("type")&&(o.type=i.type),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.common.BadgeInfo"},l}(),e.KingPositionType=function(){let l={},t=Object.create(l);return t[l[0]="KING_POS_UNSPECIFIED"]=0,t[l[1]="LIKE"]=1,t[l[2]="DISLIKE"]=2,t[l[3]="COIN"]=3,t[l[4]="FAV"]=4,t[l[5]="SHARE"]=5,t[l[6]="CACHE"]=6,t[l[7]="DANMAKU"]=7,t}(),e.CoinExtend=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.coinAppZipIcon=i.string();break}case 2:{a.coinAppIcon_1=i.string();break}case 3:{a.coinAppIcon_2=i.string();break}case 4:{a.coinAppIcon_3=i.string();break}case 5:{a.coinAppIcon_4=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.CoinExtend)return i;let n=new u.bilibili.mall.tab3.viewunite.common.CoinExtend;return i.coinAppZipIcon!=null&&(n.coinAppZipIcon=String(i.coinAppZipIcon)),i.coinAppIcon_1!=null&&(n.coinAppIcon_1=String(i.coinAppIcon_1)),i.coinAppIcon_2!=null&&(n.coinAppIcon_2=String(i.coinAppIcon_2)),i.coinAppIcon_3!=null&&(n.coinAppIcon_3=String(i.coinAppIcon_3)),i.coinAppIcon_4!=null&&(n.coinAppIcon_4=String(i.coinAppIcon_4)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.coinAppZipIcon="",o.coinAppIcon_1="",o.coinAppIcon_2="",o.coinAppIcon_3="",o.coinAppIcon_4=""),i.coinAppZipIcon!=null&&i.hasOwnProperty("coinAppZipIcon")&&(o.coinAppZipIcon=i.coinAppZipIcon),i.coinAppIcon_1!=null&&i.hasOwnProperty("coinAppIcon_1")&&(o.coinAppIcon_1=i.coinAppIcon_1),i.coinAppIcon_2!=null&&i.hasOwnProperty("coinAppIcon_2")&&(o.coinAppIcon_2=i.coinAppIcon_2),i.coinAppIcon_3!=null&&i.hasOwnProperty("coinAppIcon_3")&&(o.coinAppIcon_3=i.coinAppIcon_3),i.coinAppIcon_4!=null&&i.hasOwnProperty("coinAppIcon_4")&&(o.coinAppIcon_4=i.coinAppIcon_4),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.common.CoinExtend"},l}(),e.LikeExtend=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.tripleLike=u.bilibili.mall.tab3.viewunite.common.UpLikeImg.decode(i,i.uint32());break}case 2:{a.likeAnimation=i.string();break}case 3:{a.playerAnimation=u.bilibili.mall.tab3.viewunite.common.PlayerAnimation.decode(i,i.uint32());break}case 4:{a.resource=u.bilibili.mall.tab3.viewunite.common.ActivityResource.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.LikeExtend)return i;let n=new u.bilibili.mall.tab3.viewunite.common.LikeExtend;if(i.tripleLike!=null){if(typeof i.tripleLike!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.LikeExtend.tripleLike: object expected");n.tripleLike=u.bilibili.mall.tab3.viewunite.common.UpLikeImg.fromObject(i.tripleLike)}if(i.likeAnimation!=null&&(n.likeAnimation=String(i.likeAnimation)),i.playerAnimation!=null){if(typeof i.playerAnimation!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.LikeExtend.playerAnimation: object expected");n.playerAnimation=u.bilibili.mall.tab3.viewunite.common.PlayerAnimation.fromObject(i.playerAnimation)}if(i.resource!=null){if(typeof i.resource!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.LikeExtend.resource: object expected");n.resource=u.bilibili.mall.tab3.viewunite.common.ActivityResource.fromObject(i.resource)}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.tripleLike=null,o.likeAnimation="",o.playerAnimation=null,o.resource=null),i.tripleLike!=null&&i.hasOwnProperty("tripleLike")&&(o.tripleLike=u.bilibili.mall.tab3.viewunite.common.UpLikeImg.toObject(i.tripleLike,n)),i.likeAnimation!=null&&i.hasOwnProperty("likeAnimation")&&(o.likeAnimation=i.likeAnimation),i.playerAnimation!=null&&i.hasOwnProperty("playerAnimation")&&(o.playerAnimation=u.bilibili.mall.tab3.viewunite.common.PlayerAnimation.toObject(i.playerAnimation,n)),i.resource!=null&&i.hasOwnProperty("resource")&&(o.resource=u.bilibili.mall.tab3.viewunite.common.ActivityResource.toObject(i.resource,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.common.LikeExtend"},l}(),e.ActivityResource=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.modPoolName=i.string();break}case 2:{a.modResourceName=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.ActivityResource)return i;let n=new u.bilibili.mall.tab3.viewunite.common.ActivityResource;return i.modPoolName!=null&&(n.modPoolName=String(i.modPoolName)),i.modResourceName!=null&&(n.modResourceName=String(i.modResourceName)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.modPoolName="",o.modResourceName=""),i.modPoolName!=null&&i.hasOwnProperty("modPoolName")&&(o.modPoolName=i.modPoolName),i.modResourceName!=null&&i.hasOwnProperty("modResourceName")&&(o.modResourceName=i.modResourceName),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.common.ActivityResource"},l}(),e.PlayerAnimation=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.playerIcon=i.string();break}case 2:{a.playerTripleIcon=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.PlayerAnimation)return i;let n=new u.bilibili.mall.tab3.viewunite.common.PlayerAnimation;return i.playerIcon!=null&&(n.playerIcon=String(i.playerIcon)),i.playerTripleIcon!=null&&(n.playerTripleIcon=String(i.playerTripleIcon)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.playerIcon="",o.playerTripleIcon=""),i.playerIcon!=null&&i.hasOwnProperty("playerIcon")&&(o.playerIcon=i.playerIcon),i.playerTripleIcon!=null&&i.hasOwnProperty("playerTripleIcon")&&(o.playerTripleIcon=i.playerTripleIcon),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.common.PlayerAnimation"},l}(),e.DislikeReasons=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.id=i.int64();break}case 2:{a.mid=i.int64();break}case 3:{a.rid=i.int32();break}case 4:{a.tagId=i.int64();break}case 5:{a.name=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.DislikeReasons)return i;let n=new u.bilibili.mall.tab3.viewunite.common.DislikeReasons;return i.id!=null&&(r.Long?(n.id=r.Long.fromValue(i.id)).unsigned=!1:typeof i.id=="string"?n.id=parseInt(i.id,10):typeof i.id=="number"?n.id=i.id:typeof i.id=="object"&&(n.id=new r.LongBits(i.id.low>>>0,i.id.high>>>0).toNumber())),i.mid!=null&&(r.Long?(n.mid=r.Long.fromValue(i.mid)).unsigned=!1:typeof i.mid=="string"?n.mid=parseInt(i.mid,10):typeof i.mid=="number"?n.mid=i.mid:typeof i.mid=="object"&&(n.mid=new r.LongBits(i.mid.low>>>0,i.mid.high>>>0).toNumber())),i.rid!=null&&(n.rid=i.rid|0),i.tagId!=null&&(r.Long?(n.tagId=r.Long.fromValue(i.tagId)).unsigned=!1:typeof i.tagId=="string"?n.tagId=parseInt(i.tagId,10):typeof i.tagId=="number"?n.tagId=i.tagId:typeof i.tagId=="object"&&(n.tagId=new r.LongBits(i.tagId.low>>>0,i.tagId.high>>>0).toNumber())),i.name!=null&&(n.name=String(i.name)),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.id=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.id=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.mid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.mid=n.longs===String?"0":0;if(o.rid=0,r.Long){let a=new r.Long(0,0,!1);o.tagId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.tagId=n.longs===String?"0":0;o.name=""}return i.id!=null&&i.hasOwnProperty("id")&&(typeof i.id=="number"?o.id=n.longs===String?String(i.id):i.id:o.id=n.longs===String?r.Long.prototype.toString.call(i.id):n.longs===Number?new r.LongBits(i.id.low>>>0,i.id.high>>>0).toNumber():i.id),i.mid!=null&&i.hasOwnProperty("mid")&&(typeof i.mid=="number"?o.mid=n.longs===String?String(i.mid):i.mid:o.mid=n.longs===String?r.Long.prototype.toString.call(i.mid):n.longs===Number?new r.LongBits(i.mid.low>>>0,i.mid.high>>>0).toNumber():i.mid),i.rid!=null&&i.hasOwnProperty("rid")&&(o.rid=i.rid),i.tagId!=null&&i.hasOwnProperty("tagId")&&(typeof i.tagId=="number"?o.tagId=n.longs===String?String(i.tagId):i.tagId:o.tagId=n.longs===String?r.Long.prototype.toString.call(i.tagId):n.longs===Number?new r.LongBits(i.tagId.low>>>0,i.tagId.high>>>0).toNumber():i.tagId),i.name!=null&&i.hasOwnProperty("name")&&(o.name=i.name),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.common.DislikeReasons"},l}(),e.UpLikeImg=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.preImg=i.string();break}case 2:{a.sucImg=i.string();break}case 3:{a.content=i.string();break}case 4:{a.type=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.UpLikeImg)return i;let n=new u.bilibili.mall.tab3.viewunite.common.UpLikeImg;return i.preImg!=null&&(n.preImg=String(i.preImg)),i.sucImg!=null&&(n.sucImg=String(i.sucImg)),i.content!=null&&(n.content=String(i.content)),i.type!=null&&(r.Long?(n.type=r.Long.fromValue(i.type)).unsigned=!1:typeof i.type=="string"?n.type=parseInt(i.type,10):typeof i.type=="number"?n.type=i.type:typeof i.type=="object"&&(n.type=new r.LongBits(i.type.low>>>0,i.type.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults)if(o.preImg="",o.sucImg="",o.content="",r.Long){let a=new r.Long(0,0,!1);o.type=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.type=n.longs===String?"0":0;return i.preImg!=null&&i.hasOwnProperty("preImg")&&(o.preImg=i.preImg),i.sucImg!=null&&i.hasOwnProperty("sucImg")&&(o.sucImg=i.sucImg),i.content!=null&&i.hasOwnProperty("content")&&(o.content=i.content),i.type!=null&&i.hasOwnProperty("type")&&(typeof i.type=="number"?o.type=n.longs===String?String(i.type):i.type:o.type=n.longs===String?r.Long.prototype.toString.call(i.type):n.longs===Number?new r.LongBits(i.type.low>>>0,i.type.high>>>0).toNumber():i.type),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.common.UpLikeImg"},l}(),e.ReserveBizType=function(){let l={},t=Object.create(l);return t[l[0]="BizTypeNone"]=0,t[l[1]="BizTypeReserveActivity"]=1,t[l[2]="BizTypeFavSeason"]=2,t}(),e.BizReserveActivityParam=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.activityId=i.int64();break}case 2:{a.from=i.string();break}case 3:{a.type=i.string();break}case 4:{a.oid=i.int64();break}case 5:{a.reserveId=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.BizReserveActivityParam)return i;let n=new u.bilibili.mall.tab3.viewunite.common.BizReserveActivityParam;return i.activityId!=null&&(r.Long?(n.activityId=r.Long.fromValue(i.activityId)).unsigned=!1:typeof i.activityId=="string"?n.activityId=parseInt(i.activityId,10):typeof i.activityId=="number"?n.activityId=i.activityId:typeof i.activityId=="object"&&(n.activityId=new r.LongBits(i.activityId.low>>>0,i.activityId.high>>>0).toNumber())),i.from!=null&&(n.from=String(i.from)),i.type!=null&&(n.type=String(i.type)),i.oid!=null&&(r.Long?(n.oid=r.Long.fromValue(i.oid)).unsigned=!1:typeof i.oid=="string"?n.oid=parseInt(i.oid,10):typeof i.oid=="number"?n.oid=i.oid:typeof i.oid=="object"&&(n.oid=new r.LongBits(i.oid.low>>>0,i.oid.high>>>0).toNumber())),i.reserveId!=null&&(r.Long?(n.reserveId=r.Long.fromValue(i.reserveId)).unsigned=!1:typeof i.reserveId=="string"?n.reserveId=parseInt(i.reserveId,10):typeof i.reserveId=="number"?n.reserveId=i.reserveId:typeof i.reserveId=="object"&&(n.reserveId=new r.LongBits(i.reserveId.low>>>0,i.reserveId.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.activityId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.activityId=n.longs===String?"0":0;if(o.from="",o.type="",r.Long){let a=new r.Long(0,0,!1);o.oid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.oid=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.reserveId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.reserveId=n.longs===String?"0":0}return i.activityId!=null&&i.hasOwnProperty("activityId")&&(typeof i.activityId=="number"?o.activityId=n.longs===String?String(i.activityId):i.activityId:o.activityId=n.longs===String?r.Long.prototype.toString.call(i.activityId):n.longs===Number?new r.LongBits(i.activityId.low>>>0,i.activityId.high>>>0).toNumber():i.activityId),i.from!=null&&i.hasOwnProperty("from")&&(o.from=i.from),i.type!=null&&i.hasOwnProperty("type")&&(o.type=i.type),i.oid!=null&&i.hasOwnProperty("oid")&&(typeof i.oid=="number"?o.oid=n.longs===String?String(i.oid):i.oid:o.oid=n.longs===String?r.Long.prototype.toString.call(i.oid):n.longs===Number?new r.LongBits(i.oid.low>>>0,i.oid.high>>>0).toNumber():i.oid),i.reserveId!=null&&i.hasOwnProperty("reserveId")&&(typeof i.reserveId=="number"?o.reserveId=n.longs===String?String(i.reserveId):i.reserveId:o.reserveId=n.longs===String?r.Long.prototype.toString.call(i.reserveId):n.longs===Number?new r.LongBits(i.reserveId.low>>>0,i.reserveId.high>>>0).toNumber():i.reserveId),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.common.BizReserveActivityParam"},l}(),e.BizFavParam=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.seasonId=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.BizFavParam)return i;let n=new u.bilibili.mall.tab3.viewunite.common.BizFavParam;return i.seasonId!=null&&(r.Long?(n.seasonId=r.Long.fromValue(i.seasonId)).unsigned=!1:typeof i.seasonId=="string"?n.seasonId=parseInt(i.seasonId,10):typeof i.seasonId=="number"?n.seasonId=i.seasonId:typeof i.seasonId=="object"&&(n.seasonId=new r.LongBits(i.seasonId.low>>>0,i.seasonId.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults)if(r.Long){let a=new r.Long(0,0,!1);o.seasonId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.seasonId=n.longs===String?"0":0;return i.seasonId!=null&&i.hasOwnProperty("seasonId")&&(typeof i.seasonId=="number"?o.seasonId=n.longs===String?String(i.seasonId):i.seasonId:o.seasonId=n.longs===String?r.Long.prototype.toString.call(i.seasonId):n.longs===Number?new r.LongBits(i.seasonId.low>>>0,i.seasonId.high>>>0).toNumber():i.seasonId),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.common.BizFavParam"},l}(),e.Page=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.cid=i.int64();break}case 2:{a.part=i.string();break}case 3:{a.duration=i.int64();break}case 4:{a.desc=i.string();break}case 5:{a.dimension=u.bilibili.mall.tab3.viewunite.common.Dimension.decode(i,i.uint32());break}case 6:{a.dlTitle=i.string();break}case 7:{a.dlSubtitle=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.Page)return i;let n=new u.bilibili.mall.tab3.viewunite.common.Page;if(i.cid!=null&&(r.Long?(n.cid=r.Long.fromValue(i.cid)).unsigned=!1:typeof i.cid=="string"?n.cid=parseInt(i.cid,10):typeof i.cid=="number"?n.cid=i.cid:typeof i.cid=="object"&&(n.cid=new r.LongBits(i.cid.low>>>0,i.cid.high>>>0).toNumber())),i.part!=null&&(n.part=String(i.part)),i.duration!=null&&(r.Long?(n.duration=r.Long.fromValue(i.duration)).unsigned=!1:typeof i.duration=="string"?n.duration=parseInt(i.duration,10):typeof i.duration=="number"?n.duration=i.duration:typeof i.duration=="object"&&(n.duration=new r.LongBits(i.duration.low>>>0,i.duration.high>>>0).toNumber())),i.desc!=null&&(n.desc=String(i.desc)),i.dimension!=null){if(typeof i.dimension!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.Page.dimension: object expected");n.dimension=u.bilibili.mall.tab3.viewunite.common.Dimension.fromObject(i.dimension)}return i.dlTitle!=null&&(n.dlTitle=String(i.dlTitle)),i.dlSubtitle!=null&&(n.dlSubtitle=String(i.dlSubtitle)),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.cid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.cid=n.longs===String?"0":0;if(o.part="",r.Long){let a=new r.Long(0,0,!1);o.duration=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.duration=n.longs===String?"0":0;o.desc="",o.dimension=null,o.dlTitle="",o.dlSubtitle=""}return i.cid!=null&&i.hasOwnProperty("cid")&&(typeof i.cid=="number"?o.cid=n.longs===String?String(i.cid):i.cid:o.cid=n.longs===String?r.Long.prototype.toString.call(i.cid):n.longs===Number?new r.LongBits(i.cid.low>>>0,i.cid.high>>>0).toNumber():i.cid),i.part!=null&&i.hasOwnProperty("part")&&(o.part=i.part),i.duration!=null&&i.hasOwnProperty("duration")&&(typeof i.duration=="number"?o.duration=n.longs===String?String(i.duration):i.duration:o.duration=n.longs===String?r.Long.prototype.toString.call(i.duration):n.longs===Number?new r.LongBits(i.duration.low>>>0,i.duration.high>>>0).toNumber():i.duration),i.desc!=null&&i.hasOwnProperty("desc")&&(o.desc=i.desc),i.dimension!=null&&i.hasOwnProperty("dimension")&&(o.dimension=u.bilibili.mall.tab3.viewunite.common.Dimension.toObject(i.dimension,n)),i.dlTitle!=null&&i.hasOwnProperty("dlTitle")&&(o.dlTitle=i.dlTitle),i.dlSubtitle!=null&&i.hasOwnProperty("dlSubtitle")&&(o.dlSubtitle=i.dlSubtitle),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.common.Page"},l}(),e.Stat=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.vt=u.bilibili.mall.tab3.viewunite.common.StatInfo.decode(i,i.uint32());break}case 2:{a.danmaku=u.bilibili.mall.tab3.viewunite.common.StatInfo.decode(i,i.uint32());break}case 3:{a.reply=i.int64();break}case 4:{a.fav=i.int64();break}case 5:{a.coin=i.int64();break}case 6:{a.share=i.int64();break}case 7:{a.like=i.int64();break}case 8:{a.follow=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.Stat)return i;let n=new u.bilibili.mall.tab3.viewunite.common.Stat;if(i.vt!=null){if(typeof i.vt!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.Stat.vt: object expected");n.vt=u.bilibili.mall.tab3.viewunite.common.StatInfo.fromObject(i.vt)}if(i.danmaku!=null){if(typeof i.danmaku!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.Stat.danmaku: object expected");n.danmaku=u.bilibili.mall.tab3.viewunite.common.StatInfo.fromObject(i.danmaku)}return i.reply!=null&&(r.Long?(n.reply=r.Long.fromValue(i.reply)).unsigned=!1:typeof i.reply=="string"?n.reply=parseInt(i.reply,10):typeof i.reply=="number"?n.reply=i.reply:typeof i.reply=="object"&&(n.reply=new r.LongBits(i.reply.low>>>0,i.reply.high>>>0).toNumber())),i.fav!=null&&(r.Long?(n.fav=r.Long.fromValue(i.fav)).unsigned=!1:typeof i.fav=="string"?n.fav=parseInt(i.fav,10):typeof i.fav=="number"?n.fav=i.fav:typeof i.fav=="object"&&(n.fav=new r.LongBits(i.fav.low>>>0,i.fav.high>>>0).toNumber())),i.coin!=null&&(r.Long?(n.coin=r.Long.fromValue(i.coin)).unsigned=!1:typeof i.coin=="string"?n.coin=parseInt(i.coin,10):typeof i.coin=="number"?n.coin=i.coin:typeof i.coin=="object"&&(n.coin=new r.LongBits(i.coin.low>>>0,i.coin.high>>>0).toNumber())),i.share!=null&&(r.Long?(n.share=r.Long.fromValue(i.share)).unsigned=!1:typeof i.share=="string"?n.share=parseInt(i.share,10):typeof i.share=="number"?n.share=i.share:typeof i.share=="object"&&(n.share=new r.LongBits(i.share.low>>>0,i.share.high>>>0).toNumber())),i.like!=null&&(r.Long?(n.like=r.Long.fromValue(i.like)).unsigned=!1:typeof i.like=="string"?n.like=parseInt(i.like,10):typeof i.like=="number"?n.like=i.like:typeof i.like=="object"&&(n.like=new r.LongBits(i.like.low>>>0,i.like.high>>>0).toNumber())),i.follow!=null&&(r.Long?(n.follow=r.Long.fromValue(i.follow)).unsigned=!1:typeof i.follow=="string"?n.follow=parseInt(i.follow,10):typeof i.follow=="number"?n.follow=i.follow:typeof i.follow=="object"&&(n.follow=new r.LongBits(i.follow.low>>>0,i.follow.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(o.vt=null,o.danmaku=null,r.Long){let a=new r.Long(0,0,!1);o.reply=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.reply=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.fav=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.fav=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.coin=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.coin=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.share=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.share=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.like=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.like=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.follow=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.follow=n.longs===String?"0":0}return i.vt!=null&&i.hasOwnProperty("vt")&&(o.vt=u.bilibili.mall.tab3.viewunite.common.StatInfo.toObject(i.vt,n)),i.danmaku!=null&&i.hasOwnProperty("danmaku")&&(o.danmaku=u.bilibili.mall.tab3.viewunite.common.StatInfo.toObject(i.danmaku,n)),i.reply!=null&&i.hasOwnProperty("reply")&&(typeof i.reply=="number"?o.reply=n.longs===String?String(i.reply):i.reply:o.reply=n.longs===String?r.Long.prototype.toString.call(i.reply):n.longs===Number?new r.LongBits(i.reply.low>>>0,i.reply.high>>>0).toNumber():i.reply),i.fav!=null&&i.hasOwnProperty("fav")&&(typeof i.fav=="number"?o.fav=n.longs===String?String(i.fav):i.fav:o.fav=n.longs===String?r.Long.prototype.toString.call(i.fav):n.longs===Number?new r.LongBits(i.fav.low>>>0,i.fav.high>>>0).toNumber():i.fav),i.coin!=null&&i.hasOwnProperty("coin")&&(typeof i.coin=="number"?o.coin=n.longs===String?String(i.coin):i.coin:o.coin=n.longs===String?r.Long.prototype.toString.call(i.coin):n.longs===Number?new r.LongBits(i.coin.low>>>0,i.coin.high>>>0).toNumber():i.coin),i.share!=null&&i.hasOwnProperty("share")&&(typeof i.share=="number"?o.share=n.longs===String?String(i.share):i.share:o.share=n.longs===String?r.Long.prototype.toString.call(i.share):n.longs===Number?new r.LongBits(i.share.low>>>0,i.share.high>>>0).toNumber():i.share),i.like!=null&&i.hasOwnProperty("like")&&(typeof i.like=="number"?o.like=n.longs===String?String(i.like):i.like:o.like=n.longs===String?r.Long.prototype.toString.call(i.like):n.longs===Number?new r.LongBits(i.like.low>>>0,i.like.high>>>0).toNumber():i.like),i.follow!=null&&i.hasOwnProperty("follow")&&(typeof i.follow=="number"?o.follow=n.longs===String?String(i.follow):i.follow:o.follow=n.longs===String?r.Long.prototype.toString.call(i.follow):n.longs===Number?new r.LongBits(i.follow.low>>>0,i.follow.high>>>0).toNumber():i.follow),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.common.Stat"},l}(),e.SpecialCell=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.icon=i.string();break}case 2:{a.iconNight=i.string();break}case 3:{a.text=i.string();break}case 4:{a.textColor=i.string();break}case 5:{a.textColorNight=i.string();break}case 6:{a.jumpUrl=i.string();break}case 7:{a.cellType=i.string();break}case 8:{a.cellBgcolor=i.string();break}case 9:{a.cellBgcolorNight=i.string();break}case 10:{a.param=i.string();break}case 11:{a.pageTitle=i.string();break}case 12:{a.jumpType=i.string();break}case 13:{a.endIcon=i.string();break}case 14:{a.endIconNight=i.string();break}case 15:{a.cellFluid=u.bilibili.mall.tab3.viewunite.common.CellFluid.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.SpecialCell)return i;let n=new u.bilibili.mall.tab3.viewunite.common.SpecialCell;if(i.icon!=null&&(n.icon=String(i.icon)),i.iconNight!=null&&(n.iconNight=String(i.iconNight)),i.text!=null&&(n.text=String(i.text)),i.textColor!=null&&(n.textColor=String(i.textColor)),i.textColorNight!=null&&(n.textColorNight=String(i.textColorNight)),i.jumpUrl!=null&&(n.jumpUrl=String(i.jumpUrl)),i.cellType!=null&&(n.cellType=String(i.cellType)),i.cellBgcolor!=null&&(n.cellBgcolor=String(i.cellBgcolor)),i.cellBgcolorNight!=null&&(n.cellBgcolorNight=String(i.cellBgcolorNight)),i.param!=null&&(n.param=String(i.param)),i.pageTitle!=null&&(n.pageTitle=String(i.pageTitle)),i.jumpType!=null&&(n.jumpType=String(i.jumpType)),i.endIcon!=null&&(n.endIcon=String(i.endIcon)),i.endIconNight!=null&&(n.endIconNight=String(i.endIconNight)),i.cellFluid!=null){if(typeof i.cellFluid!="object")throw TypeError(".bilibili.mall.tab3.viewunite.common.SpecialCell.cellFluid: object expected");n.cellFluid=u.bilibili.mall.tab3.viewunite.common.CellFluid.fromObject(i.cellFluid)}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.icon="",o.iconNight="",o.text="",o.textColor="",o.textColorNight="",o.jumpUrl="",o.cellType="",o.cellBgcolor="",o.cellBgcolorNight="",o.param="",o.pageTitle="",o.jumpType="",o.endIcon="",o.endIconNight="",o.cellFluid=null),i.icon!=null&&i.hasOwnProperty("icon")&&(o.icon=i.icon),i.iconNight!=null&&i.hasOwnProperty("iconNight")&&(o.iconNight=i.iconNight),i.text!=null&&i.hasOwnProperty("text")&&(o.text=i.text),i.textColor!=null&&i.hasOwnProperty("textColor")&&(o.textColor=i.textColor),i.textColorNight!=null&&i.hasOwnProperty("textColorNight")&&(o.textColorNight=i.textColorNight),i.jumpUrl!=null&&i.hasOwnProperty("jumpUrl")&&(o.jumpUrl=i.jumpUrl),i.cellType!=null&&i.hasOwnProperty("cellType")&&(o.cellType=i.cellType),i.cellBgcolor!=null&&i.hasOwnProperty("cellBgcolor")&&(o.cellBgcolor=i.cellBgcolor),i.cellBgcolorNight!=null&&i.hasOwnProperty("cellBgcolorNight")&&(o.cellBgcolorNight=i.cellBgcolorNight),i.param!=null&&i.hasOwnProperty("param")&&(o.param=i.param),i.pageTitle!=null&&i.hasOwnProperty("pageTitle")&&(o.pageTitle=i.pageTitle),i.jumpType!=null&&i.hasOwnProperty("jumpType")&&(o.jumpType=i.jumpType),i.endIcon!=null&&i.hasOwnProperty("endIcon")&&(o.endIcon=i.endIcon),i.endIconNight!=null&&i.hasOwnProperty("endIconNight")&&(o.endIconNight=i.endIconNight),i.cellFluid!=null&&i.hasOwnProperty("cellFluid")&&(o.cellFluid=u.bilibili.mall.tab3.viewunite.common.CellFluid.toObject(i.cellFluid,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.common.SpecialCell"},l}(),e.CellFluid=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.topBaseColor=i.string();break}case 2:{a.topSplitColor=i.string();break}case 3:{a.topTextColor=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.common.CellFluid)return i;let n=new u.bilibili.mall.tab3.viewunite.common.CellFluid;return i.topBaseColor!=null&&(n.topBaseColor=String(i.topBaseColor)),i.topSplitColor!=null&&(n.topSplitColor=String(i.topSplitColor)),i.topTextColor!=null&&(n.topTextColor=String(i.topTextColor)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.topBaseColor="",o.topSplitColor="",o.topTextColor=""),i.topBaseColor!=null&&i.hasOwnProperty("topBaseColor")&&(o.topBaseColor=i.topBaseColor),i.topSplitColor!=null&&i.hasOwnProperty("topSplitColor")&&(o.topSplitColor=i.topSplitColor),i.topTextColor!=null&&i.hasOwnProperty("topTextColor")&&(o.topTextColor=i.topTextColor),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.common.CellFluid"},l}(),e}(),c.ugcanymodel=function(){let e={};return e.ViewUgcAny=function(){function l(t){if(this.pages=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.premiere=u.bilibili.mall.tab3.viewunite.ugcanymodel.PremiereResource.decode(i,i.uint32());break}case 2:{a.dislike=u.bilibili.mall.tab3.viewunite.ugcanymodel.Dislike.decode(i,i.uint32());break}case 3:{a.shortLink=i.string();break}case 4:{a.shareSubtitle=i.string();break}case 5:{a.pages&&a.pages.length||(a.pages=[]),a.pages.push(u.bilibili.mall.tab3.viewunite.common.Page.decode(i,i.uint32()));break}case 6:{a.elecRank=u.bilibili.mall.tab3.viewunite.ugcanymodel.ElecRank.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.ugcanymodel.ViewUgcAny)return i;let n=new u.bilibili.mall.tab3.viewunite.ugcanymodel.ViewUgcAny;if(i.premiere!=null){if(typeof i.premiere!="object")throw TypeError(".bilibili.mall.tab3.viewunite.ugcanymodel.ViewUgcAny.premiere: object expected");n.premiere=u.bilibili.mall.tab3.viewunite.ugcanymodel.PremiereResource.fromObject(i.premiere)}if(i.dislike!=null){if(typeof i.dislike!="object")throw TypeError(".bilibili.mall.tab3.viewunite.ugcanymodel.ViewUgcAny.dislike: object expected");n.dislike=u.bilibili.mall.tab3.viewunite.ugcanymodel.Dislike.fromObject(i.dislike)}if(i.shortLink!=null&&(n.shortLink=String(i.shortLink)),i.shareSubtitle!=null&&(n.shareSubtitle=String(i.shareSubtitle)),i.pages){if(!Array.isArray(i.pages))throw TypeError(".bilibili.mall.tab3.viewunite.ugcanymodel.ViewUgcAny.pages: array expected");n.pages=[];for(let o=0;o>>3){case 1:{a.list&&a.list.length||(a.list=[]),a.list.push(u.bilibili.mall.tab3.viewunite.ugcanymodel.ElecRankItem.decode(i,i.uint32()));break}case 2:{a.count=i.int64();break}case 3:{a.text=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.ugcanymodel.ElecRank)return i;let n=new u.bilibili.mall.tab3.viewunite.ugcanymodel.ElecRank;if(i.list){if(!Array.isArray(i.list))throw TypeError(".bilibili.mall.tab3.viewunite.ugcanymodel.ElecRank.list: array expected");n.list=[];for(let o=0;o>>0,i.count.high>>>0).toNumber())),i.text!=null&&(n.text=String(i.text)),n},l.toObject=function(i,n){n||(n={});let o={};if((n.arrays||n.defaults)&&(o.list=[]),n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.count=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.count=n.longs===String?"0":0;o.text=""}if(i.list&&i.list.length){o.list=[];for(let a=0;a>>0,i.count.high>>>0).toNumber():i.count),i.text!=null&&i.hasOwnProperty("text")&&(o.text=i.text),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.ugcanymodel.ElecRank"},l}(),e.ElecRankItem=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.avatar=i.string();break}case 2:{a.nickname=i.string();break}case 3:{a.message=i.string();break}case 4:{a.mid=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.ugcanymodel.ElecRankItem)return i;let n=new u.bilibili.mall.tab3.viewunite.ugcanymodel.ElecRankItem;return i.avatar!=null&&(n.avatar=String(i.avatar)),i.nickname!=null&&(n.nickname=String(i.nickname)),i.message!=null&&(n.message=String(i.message)),i.mid!=null&&(r.Long?(n.mid=r.Long.fromValue(i.mid)).unsigned=!1:typeof i.mid=="string"?n.mid=parseInt(i.mid,10):typeof i.mid=="number"?n.mid=i.mid:typeof i.mid=="object"&&(n.mid=new r.LongBits(i.mid.low>>>0,i.mid.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults)if(o.avatar="",o.nickname="",o.message="",r.Long){let a=new r.Long(0,0,!1);o.mid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.mid=n.longs===String?"0":0;return i.avatar!=null&&i.hasOwnProperty("avatar")&&(o.avatar=i.avatar),i.nickname!=null&&i.hasOwnProperty("nickname")&&(o.nickname=i.nickname),i.message!=null&&i.hasOwnProperty("message")&&(o.message=i.message),i.mid!=null&&i.hasOwnProperty("mid")&&(typeof i.mid=="number"?o.mid=n.longs===String?String(i.mid):i.mid:o.mid=n.longs===String?r.Long.prototype.toString.call(i.mid):n.longs===Number?new r.LongBits(i.mid.low>>>0,i.mid.high>>>0).toNumber():i.mid),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.ugcanymodel.ElecRankItem"},l}(),e.Dislike=function(){function l(t){if(this.reasons=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.title=i.string();break}case 2:{a.subtitle=i.string();break}case 3:{a.reasons&&a.reasons.length||(a.reasons=[]),a.reasons.push(u.bilibili.mall.tab3.viewunite.ugcanymodel.DislikeReason.decode(i,i.uint32()));break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.ugcanymodel.Dislike)return i;let n=new u.bilibili.mall.tab3.viewunite.ugcanymodel.Dislike;if(i.title!=null&&(n.title=String(i.title)),i.subtitle!=null&&(n.subtitle=String(i.subtitle)),i.reasons){if(!Array.isArray(i.reasons))throw TypeError(".bilibili.mall.tab3.viewunite.ugcanymodel.Dislike.reasons: array expected");n.reasons=[];for(let o=0;o>>3){case 1:{a.id=i.int64();break}case 2:{a.mid=i.int64();break}case 3:{a.rid=i.int32();break}case 4:{a.tagId=i.int64();break}case 5:{a.name=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.ugcanymodel.DislikeReason)return i;let n=new u.bilibili.mall.tab3.viewunite.ugcanymodel.DislikeReason;return i.id!=null&&(r.Long?(n.id=r.Long.fromValue(i.id)).unsigned=!1:typeof i.id=="string"?n.id=parseInt(i.id,10):typeof i.id=="number"?n.id=i.id:typeof i.id=="object"&&(n.id=new r.LongBits(i.id.low>>>0,i.id.high>>>0).toNumber())),i.mid!=null&&(r.Long?(n.mid=r.Long.fromValue(i.mid)).unsigned=!1:typeof i.mid=="string"?n.mid=parseInt(i.mid,10):typeof i.mid=="number"?n.mid=i.mid:typeof i.mid=="object"&&(n.mid=new r.LongBits(i.mid.low>>>0,i.mid.high>>>0).toNumber())),i.rid!=null&&(n.rid=i.rid|0),i.tagId!=null&&(r.Long?(n.tagId=r.Long.fromValue(i.tagId)).unsigned=!1:typeof i.tagId=="string"?n.tagId=parseInt(i.tagId,10):typeof i.tagId=="number"?n.tagId=i.tagId:typeof i.tagId=="object"&&(n.tagId=new r.LongBits(i.tagId.low>>>0,i.tagId.high>>>0).toNumber())),i.name!=null&&(n.name=String(i.name)),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.id=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.id=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.mid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.mid=n.longs===String?"0":0;if(o.rid=0,r.Long){let a=new r.Long(0,0,!1);o.tagId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.tagId=n.longs===String?"0":0;o.name=""}return i.id!=null&&i.hasOwnProperty("id")&&(typeof i.id=="number"?o.id=n.longs===String?String(i.id):i.id:o.id=n.longs===String?r.Long.prototype.toString.call(i.id):n.longs===Number?new r.LongBits(i.id.low>>>0,i.id.high>>>0).toNumber():i.id),i.mid!=null&&i.hasOwnProperty("mid")&&(typeof i.mid=="number"?o.mid=n.longs===String?String(i.mid):i.mid:o.mid=n.longs===String?r.Long.prototype.toString.call(i.mid):n.longs===Number?new r.LongBits(i.mid.low>>>0,i.mid.high>>>0).toNumber():i.mid),i.rid!=null&&i.hasOwnProperty("rid")&&(o.rid=i.rid),i.tagId!=null&&i.hasOwnProperty("tagId")&&(typeof i.tagId=="number"?o.tagId=n.longs===String?String(i.tagId):i.tagId:o.tagId=n.longs===String?r.Long.prototype.toString.call(i.tagId):n.longs===Number?new r.LongBits(i.tagId.low>>>0,i.tagId.high>>>0).toNumber():i.tagId),i.name!=null&&i.hasOwnProperty("name")&&(o.name=i.name),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.ugcanymodel.DislikeReason"},l}(),e.PremiereResource=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.premiere=u.bilibili.mall.tab3.viewunite.ugcanymodel.Premiere.decode(i,i.uint32());break}case 2:{a.reserve=u.bilibili.mall.tab3.viewunite.ugcanymodel.PremiereReserve.decode(i,i.uint32());break}case 3:{a.text=u.bilibili.mall.tab3.viewunite.ugcanymodel.PremiereText.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.ugcanymodel.PremiereResource)return i;let n=new u.bilibili.mall.tab3.viewunite.ugcanymodel.PremiereResource;if(i.premiere!=null){if(typeof i.premiere!="object")throw TypeError(".bilibili.mall.tab3.viewunite.ugcanymodel.PremiereResource.premiere: object expected");n.premiere=u.bilibili.mall.tab3.viewunite.ugcanymodel.Premiere.fromObject(i.premiere)}if(i.reserve!=null){if(typeof i.reserve!="object")throw TypeError(".bilibili.mall.tab3.viewunite.ugcanymodel.PremiereResource.reserve: object expected");n.reserve=u.bilibili.mall.tab3.viewunite.ugcanymodel.PremiereReserve.fromObject(i.reserve)}if(i.text!=null){if(typeof i.text!="object")throw TypeError(".bilibili.mall.tab3.viewunite.ugcanymodel.PremiereResource.text: object expected");n.text=u.bilibili.mall.tab3.viewunite.ugcanymodel.PremiereText.fromObject(i.text)}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.premiere=null,o.reserve=null,o.text=null),i.premiere!=null&&i.hasOwnProperty("premiere")&&(o.premiere=u.bilibili.mall.tab3.viewunite.ugcanymodel.Premiere.toObject(i.premiere,n)),i.reserve!=null&&i.hasOwnProperty("reserve")&&(o.reserve=u.bilibili.mall.tab3.viewunite.ugcanymodel.PremiereReserve.toObject(i.reserve,n)),i.text!=null&&i.hasOwnProperty("text")&&(o.text=u.bilibili.mall.tab3.viewunite.ugcanymodel.PremiereText.toObject(i.text,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.ugcanymodel.PremiereResource"},l}(),e.PremiereReserve=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.reserveId=i.int64();break}case 2:{a.count=i.int64();break}case 3:{a.isFollow=i.bool();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.ugcanymodel.PremiereReserve)return i;let n=new u.bilibili.mall.tab3.viewunite.ugcanymodel.PremiereReserve;return i.reserveId!=null&&(r.Long?(n.reserveId=r.Long.fromValue(i.reserveId)).unsigned=!1:typeof i.reserveId=="string"?n.reserveId=parseInt(i.reserveId,10):typeof i.reserveId=="number"?n.reserveId=i.reserveId:typeof i.reserveId=="object"&&(n.reserveId=new r.LongBits(i.reserveId.low>>>0,i.reserveId.high>>>0).toNumber())),i.count!=null&&(r.Long?(n.count=r.Long.fromValue(i.count)).unsigned=!1:typeof i.count=="string"?n.count=parseInt(i.count,10):typeof i.count=="number"?n.count=i.count:typeof i.count=="object"&&(n.count=new r.LongBits(i.count.low>>>0,i.count.high>>>0).toNumber())),i.isFollow!=null&&(n.isFollow=!!i.isFollow),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.reserveId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.reserveId=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.count=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.count=n.longs===String?"0":0;o.isFollow=!1}return i.reserveId!=null&&i.hasOwnProperty("reserveId")&&(typeof i.reserveId=="number"?o.reserveId=n.longs===String?String(i.reserveId):i.reserveId:o.reserveId=n.longs===String?r.Long.prototype.toString.call(i.reserveId):n.longs===Number?new r.LongBits(i.reserveId.low>>>0,i.reserveId.high>>>0).toNumber():i.reserveId),i.count!=null&&i.hasOwnProperty("count")&&(typeof i.count=="number"?o.count=n.longs===String?String(i.count):i.count:o.count=n.longs===String?r.Long.prototype.toString.call(i.count):n.longs===Number?new r.LongBits(i.count.low>>>0,i.count.high>>>0).toNumber():i.count),i.isFollow!=null&&i.hasOwnProperty("isFollow")&&(o.isFollow=i.isFollow),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.ugcanymodel.PremiereReserve"},l}(),e.PremiereText=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.title=i.string();break}case 2:{a.subtitle=i.string();break}case 3:{a.onlineText=i.string();break}case 4:{a.onlineIcon=i.string();break}case 5:{a.onlineIconDark=i.string();break}case 6:{a.introTitle=i.string();break}case 7:{a.introIcon=i.string();break}case 8:{a.guidancePulldown=i.string();break}case 9:{a.guidanceEntry=i.string();break}case 10:{a.introIconNight=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.ugcanymodel.PremiereText)return i;let n=new u.bilibili.mall.tab3.viewunite.ugcanymodel.PremiereText;return i.title!=null&&(n.title=String(i.title)),i.subtitle!=null&&(n.subtitle=String(i.subtitle)),i.onlineText!=null&&(n.onlineText=String(i.onlineText)),i.onlineIcon!=null&&(n.onlineIcon=String(i.onlineIcon)),i.onlineIconDark!=null&&(n.onlineIconDark=String(i.onlineIconDark)),i.introTitle!=null&&(n.introTitle=String(i.introTitle)),i.introIcon!=null&&(n.introIcon=String(i.introIcon)),i.guidancePulldown!=null&&(n.guidancePulldown=String(i.guidancePulldown)),i.guidanceEntry!=null&&(n.guidanceEntry=String(i.guidanceEntry)),i.introIconNight!=null&&(n.introIconNight=String(i.introIconNight)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.title="",o.subtitle="",o.onlineText="",o.onlineIcon="",o.onlineIconDark="",o.introTitle="",o.introIcon="",o.guidancePulldown="",o.guidanceEntry="",o.introIconNight=""),i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.subtitle!=null&&i.hasOwnProperty("subtitle")&&(o.subtitle=i.subtitle),i.onlineText!=null&&i.hasOwnProperty("onlineText")&&(o.onlineText=i.onlineText),i.onlineIcon!=null&&i.hasOwnProperty("onlineIcon")&&(o.onlineIcon=i.onlineIcon),i.onlineIconDark!=null&&i.hasOwnProperty("onlineIconDark")&&(o.onlineIconDark=i.onlineIconDark),i.introTitle!=null&&i.hasOwnProperty("introTitle")&&(o.introTitle=i.introTitle),i.introIcon!=null&&i.hasOwnProperty("introIcon")&&(o.introIcon=i.introIcon),i.guidancePulldown!=null&&i.hasOwnProperty("guidancePulldown")&&(o.guidancePulldown=i.guidancePulldown),i.guidanceEntry!=null&&i.hasOwnProperty("guidanceEntry")&&(o.guidanceEntry=i.guidanceEntry),i.introIconNight!=null&&i.hasOwnProperty("introIconNight")&&(o.introIconNight=i.introIconNight),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.ugcanymodel.PremiereText"},l}(),e.Premiere=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.premiereState=i.int32();break}case 2:{a.startTime=i.int64();break}case 3:{a.serviceTime=i.int64();break}case 4:{a.roomId=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.ugcanymodel.Premiere)return i;let n=new u.bilibili.mall.tab3.viewunite.ugcanymodel.Premiere;switch(i.premiereState){default:if(typeof i.premiereState=="number"){n.premiereState=i.premiereState;break}break;case"premiere_none":case 0:n.premiereState=0;break;case"premiere_before":case 1:n.premiereState=1;break;case"premiere_in":case 2:n.premiereState=2;break;case"premiere_after":case 3:n.premiereState=3;break}return i.startTime!=null&&(r.Long?(n.startTime=r.Long.fromValue(i.startTime)).unsigned=!1:typeof i.startTime=="string"?n.startTime=parseInt(i.startTime,10):typeof i.startTime=="number"?n.startTime=i.startTime:typeof i.startTime=="object"&&(n.startTime=new r.LongBits(i.startTime.low>>>0,i.startTime.high>>>0).toNumber())),i.serviceTime!=null&&(r.Long?(n.serviceTime=r.Long.fromValue(i.serviceTime)).unsigned=!1:typeof i.serviceTime=="string"?n.serviceTime=parseInt(i.serviceTime,10):typeof i.serviceTime=="number"?n.serviceTime=i.serviceTime:typeof i.serviceTime=="object"&&(n.serviceTime=new r.LongBits(i.serviceTime.low>>>0,i.serviceTime.high>>>0).toNumber())),i.roomId!=null&&(r.Long?(n.roomId=r.Long.fromValue(i.roomId)).unsigned=!1:typeof i.roomId=="string"?n.roomId=parseInt(i.roomId,10):typeof i.roomId=="number"?n.roomId=i.roomId:typeof i.roomId=="object"&&(n.roomId=new r.LongBits(i.roomId.low>>>0,i.roomId.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(o.premiereState=n.enums===String?"premiere_none":0,r.Long){let a=new r.Long(0,0,!1);o.startTime=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.startTime=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.serviceTime=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.serviceTime=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.roomId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.roomId=n.longs===String?"0":0}return i.premiereState!=null&&i.hasOwnProperty("premiereState")&&(o.premiereState=n.enums===String?u.bilibili.mall.tab3.viewunite.ugcanymodel.PremiereState[i.premiereState]===void 0?i.premiereState:u.bilibili.mall.tab3.viewunite.ugcanymodel.PremiereState[i.premiereState]:i.premiereState),i.startTime!=null&&i.hasOwnProperty("startTime")&&(typeof i.startTime=="number"?o.startTime=n.longs===String?String(i.startTime):i.startTime:o.startTime=n.longs===String?r.Long.prototype.toString.call(i.startTime):n.longs===Number?new r.LongBits(i.startTime.low>>>0,i.startTime.high>>>0).toNumber():i.startTime),i.serviceTime!=null&&i.hasOwnProperty("serviceTime")&&(typeof i.serviceTime=="number"?o.serviceTime=n.longs===String?String(i.serviceTime):i.serviceTime:o.serviceTime=n.longs===String?r.Long.prototype.toString.call(i.serviceTime):n.longs===Number?new r.LongBits(i.serviceTime.low>>>0,i.serviceTime.high>>>0).toNumber():i.serviceTime),i.roomId!=null&&i.hasOwnProperty("roomId")&&(typeof i.roomId=="number"?o.roomId=n.longs===String?String(i.roomId):i.roomId:o.roomId=n.longs===String?r.Long.prototype.toString.call(i.roomId):n.longs===Number?new r.LongBits(i.roomId.low>>>0,i.roomId.high>>>0).toNumber():i.roomId),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.ugcanymodel.Premiere"},l}(),e.PremiereState=function(){let l={},t=Object.create(l);return t[l[0]="premiere_none"]=0,t[l[1]="premiere_before"]=1,t[l[2]="premiere_in"]=2,t[l[3]="premiere_after"]=3,t}(),e}(),c.v1=function(){let e={};return e.View=function(){function l(t,i,n){b.rpc.Service.call(this,t,i,n)}return(l.prototype=Object.create(b.rpc.Service.prototype)).constructor=l,l.create=function(i,n,o){return new this(i,n,o)},Object.defineProperty(l.prototype.view=function t(i,n){return this.rpcCall(t,u.bilibili.mall.tab3.viewunite.v1.ViewReq,u.bilibili.mall.tab3.viewunite.v1.ViewReply,i,n)},"name",{value:"View"}),Object.defineProperty(l.prototype.arcRefresh=function t(i,n){return this.rpcCall(t,u.bilibili.mall.tab3.viewunite.v1.ArcRefreshReq,u.bilibili.mall.tab3.viewunite.v1.ArcRefreshReply,i,n)},"name",{value:"ArcRefresh"}),Object.defineProperty(l.prototype.viewProgress=function t(i,n){return this.rpcCall(t,u.bilibili.mall.tab3.viewunite.v1.ViewProgressReq,u.bilibili.mall.tab3.viewunite.v1.ViewProgressReply,i,n)},"name",{value:"ViewProgress"}),Object.defineProperty(l.prototype.relatesFeed=function t(i,n){return this.rpcCall(t,u.bilibili.mall.tab3.viewunite.v1.RelatesFeedReq,u.bilibili.mall.tab3.viewunite.v1.RelatesFeedReply,i,n)},"name",{value:"RelatesFeed"}),l}(),e.RelatesFeedReq=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.aid=i.int64();break}case 2:{a.bvid=i.string();break}case 3:{a.from=i.string();break}case 4:{a.spmid=i.string();break}case 5:{a.fromSpmid=i.string();break}case 6:{a.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.decode(i,i.uint32());break}case 7:{a.pagination=u.bilibili.pagination.Pagination.decode(i,i.uint32());break}case 8:{a.sessionId=i.string();break}case 9:{a.autoPlay=i.int64();break}case 10:{a.fromTrackId=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.v1.RelatesFeedReq)return i;let n=new u.bilibili.mall.tab3.viewunite.v1.RelatesFeedReq;if(i.aid!=null&&(r.Long?(n.aid=r.Long.fromValue(i.aid)).unsigned=!1:typeof i.aid=="string"?n.aid=parseInt(i.aid,10):typeof i.aid=="number"?n.aid=i.aid:typeof i.aid=="object"&&(n.aid=new r.LongBits(i.aid.low>>>0,i.aid.high>>>0).toNumber())),i.bvid!=null&&(n.bvid=String(i.bvid)),i.from!=null&&(n.from=String(i.from)),i.spmid!=null&&(n.spmid=String(i.spmid)),i.fromSpmid!=null&&(n.fromSpmid=String(i.fromSpmid)),i.playerArgs!=null){if(typeof i.playerArgs!="object")throw TypeError(".bilibili.mall.tab3.viewunite.v1.RelatesFeedReq.playerArgs: object expected");n.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.fromObject(i.playerArgs)}if(i.pagination!=null){if(typeof i.pagination!="object")throw TypeError(".bilibili.mall.tab3.viewunite.v1.RelatesFeedReq.pagination: object expected");n.pagination=u.bilibili.pagination.Pagination.fromObject(i.pagination)}return i.sessionId!=null&&(n.sessionId=String(i.sessionId)),i.autoPlay!=null&&(r.Long?(n.autoPlay=r.Long.fromValue(i.autoPlay)).unsigned=!1:typeof i.autoPlay=="string"?n.autoPlay=parseInt(i.autoPlay,10):typeof i.autoPlay=="number"?n.autoPlay=i.autoPlay:typeof i.autoPlay=="object"&&(n.autoPlay=new r.LongBits(i.autoPlay.low>>>0,i.autoPlay.high>>>0).toNumber())),i.fromTrackId!=null&&(n.fromTrackId=String(i.fromTrackId)),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.aid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.aid=n.longs===String?"0":0;if(o.bvid="",o.from="",o.spmid="",o.fromSpmid="",o.playerArgs=null,o.pagination=null,o.sessionId="",r.Long){let a=new r.Long(0,0,!1);o.autoPlay=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.autoPlay=n.longs===String?"0":0;o.fromTrackId=""}return i.aid!=null&&i.hasOwnProperty("aid")&&(typeof i.aid=="number"?o.aid=n.longs===String?String(i.aid):i.aid:o.aid=n.longs===String?r.Long.prototype.toString.call(i.aid):n.longs===Number?new r.LongBits(i.aid.low>>>0,i.aid.high>>>0).toNumber():i.aid),i.bvid!=null&&i.hasOwnProperty("bvid")&&(o.bvid=i.bvid),i.from!=null&&i.hasOwnProperty("from")&&(o.from=i.from),i.spmid!=null&&i.hasOwnProperty("spmid")&&(o.spmid=i.spmid),i.fromSpmid!=null&&i.hasOwnProperty("fromSpmid")&&(o.fromSpmid=i.fromSpmid),i.playerArgs!=null&&i.hasOwnProperty("playerArgs")&&(o.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.toObject(i.playerArgs,n)),i.pagination!=null&&i.hasOwnProperty("pagination")&&(o.pagination=u.bilibili.pagination.Pagination.toObject(i.pagination,n)),i.sessionId!=null&&i.hasOwnProperty("sessionId")&&(o.sessionId=i.sessionId),i.autoPlay!=null&&i.hasOwnProperty("autoPlay")&&(typeof i.autoPlay=="number"?o.autoPlay=n.longs===String?String(i.autoPlay):i.autoPlay:o.autoPlay=n.longs===String?r.Long.prototype.toString.call(i.autoPlay):n.longs===Number?new r.LongBits(i.autoPlay.low>>>0,i.autoPlay.high>>>0).toNumber():i.autoPlay),i.fromTrackId!=null&&i.hasOwnProperty("fromTrackId")&&(o.fromTrackId=i.fromTrackId),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.v1.RelatesFeedReq"},l}(),e.RelatesFeedReply=function(){function l(t){if(this.relates=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.relates&&a.relates.length||(a.relates=[]),a.relates.push(u.bilibili.mall.tab3.viewunite.common.RelateCard.decode(i,i.uint32()));break}case 2:{a.pagination=u.bilibili.pagination.Pagination.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.v1.RelatesFeedReply)return i;let n=new u.bilibili.mall.tab3.viewunite.v1.RelatesFeedReply;if(i.relates){if(!Array.isArray(i.relates))throw TypeError(".bilibili.mall.tab3.viewunite.v1.RelatesFeedReply.relates: array expected");n.relates=[];for(let o=0;o>>3){case 1:{a.aid=i.int64();break}case 2:{a.bvid=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.v1.ArcRefreshReq)return i;let n=new u.bilibili.mall.tab3.viewunite.v1.ArcRefreshReq;return i.aid!=null&&(r.Long?(n.aid=r.Long.fromValue(i.aid)).unsigned=!1:typeof i.aid=="string"?n.aid=parseInt(i.aid,10):typeof i.aid=="number"?n.aid=i.aid:typeof i.aid=="object"&&(n.aid=new r.LongBits(i.aid.low>>>0,i.aid.high>>>0).toNumber())),i.bvid!=null&&(n.bvid=String(i.bvid)),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.aid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.aid=n.longs===String?"0":0;o.bvid=""}return i.aid!=null&&i.hasOwnProperty("aid")&&(typeof i.aid=="number"?o.aid=n.longs===String?String(i.aid):i.aid:o.aid=n.longs===String?r.Long.prototype.toString.call(i.aid):n.longs===Number?new r.LongBits(i.aid.low>>>0,i.aid.high>>>0).toNumber():i.aid),i.bvid!=null&&i.hasOwnProperty("bvid")&&(o.bvid=i.bvid),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.v1.ArcRefreshReq"},l}(),e.ArcRefreshReply=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.stat=u.bilibili.mall.tab3.viewunite.common.Stat.decode(i,i.uint32());break}case 2:{a.reqUser=u.bilibili.mall.tab3.viewunite.v1.SimpleReqUser.decode(i,i.uint32());break}case 3:{a.arc=u.bilibili.mall.tab3.viewunite.v1.SimpleArc.decode(i,i.uint32());break}case 4:{a.online=u.bilibili.mall.tab3.viewunite.v1.Online.decode(i,i.uint32());break}case 5:{a.likeConfig=u.bilibili.mall.tab3.viewunite.v1.LikeConfig.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.v1.ArcRefreshReply)return i;let n=new u.bilibili.mall.tab3.viewunite.v1.ArcRefreshReply;if(i.stat!=null){if(typeof i.stat!="object")throw TypeError(".bilibili.mall.tab3.viewunite.v1.ArcRefreshReply.stat: object expected");n.stat=u.bilibili.mall.tab3.viewunite.common.Stat.fromObject(i.stat)}if(i.reqUser!=null){if(typeof i.reqUser!="object")throw TypeError(".bilibili.mall.tab3.viewunite.v1.ArcRefreshReply.reqUser: object expected");n.reqUser=u.bilibili.mall.tab3.viewunite.v1.SimpleReqUser.fromObject(i.reqUser)}if(i.arc!=null){if(typeof i.arc!="object")throw TypeError(".bilibili.mall.tab3.viewunite.v1.ArcRefreshReply.arc: object expected");n.arc=u.bilibili.mall.tab3.viewunite.v1.SimpleArc.fromObject(i.arc)}if(i.online!=null){if(typeof i.online!="object")throw TypeError(".bilibili.mall.tab3.viewunite.v1.ArcRefreshReply.online: object expected");n.online=u.bilibili.mall.tab3.viewunite.v1.Online.fromObject(i.online)}if(i.likeConfig!=null){if(typeof i.likeConfig!="object")throw TypeError(".bilibili.mall.tab3.viewunite.v1.ArcRefreshReply.likeConfig: object expected");n.likeConfig=u.bilibili.mall.tab3.viewunite.v1.LikeConfig.fromObject(i.likeConfig)}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.stat=null,o.reqUser=null,o.arc=null,o.online=null,o.likeConfig=null),i.stat!=null&&i.hasOwnProperty("stat")&&(o.stat=u.bilibili.mall.tab3.viewunite.common.Stat.toObject(i.stat,n)),i.reqUser!=null&&i.hasOwnProperty("reqUser")&&(o.reqUser=u.bilibili.mall.tab3.viewunite.v1.SimpleReqUser.toObject(i.reqUser,n)),i.arc!=null&&i.hasOwnProperty("arc")&&(o.arc=u.bilibili.mall.tab3.viewunite.v1.SimpleArc.toObject(i.arc,n)),i.online!=null&&i.hasOwnProperty("online")&&(o.online=u.bilibili.mall.tab3.viewunite.v1.Online.toObject(i.online,n)),i.likeConfig!=null&&i.hasOwnProperty("likeConfig")&&(o.likeConfig=u.bilibili.mall.tab3.viewunite.v1.LikeConfig.toObject(i.likeConfig,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.v1.ArcRefreshReply"},l}(),e.LikeConfig=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.tripleLike=u.bilibili.mall.tab3.viewunite.common.UpLikeImg.decode(i,i.uint32());break}case 2:{a.likeAnimation=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.v1.LikeConfig)return i;let n=new u.bilibili.mall.tab3.viewunite.v1.LikeConfig;if(i.tripleLike!=null){if(typeof i.tripleLike!="object")throw TypeError(".bilibili.mall.tab3.viewunite.v1.LikeConfig.tripleLike: object expected");n.tripleLike=u.bilibili.mall.tab3.viewunite.common.UpLikeImg.fromObject(i.tripleLike)}return i.likeAnimation!=null&&(n.likeAnimation=String(i.likeAnimation)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.tripleLike=null,o.likeAnimation=""),i.tripleLike!=null&&i.hasOwnProperty("tripleLike")&&(o.tripleLike=u.bilibili.mall.tab3.viewunite.common.UpLikeImg.toObject(i.tripleLike,n)),i.likeAnimation!=null&&i.hasOwnProperty("likeAnimation")&&(o.likeAnimation=i.likeAnimation),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.v1.LikeConfig"},l}(),e.SimpleArc=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.copyright=i.int32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.v1.SimpleArc)return i;let n=new u.bilibili.mall.tab3.viewunite.v1.SimpleArc;return i.copyright!=null&&(n.copyright=i.copyright|0),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.copyright=0),i.copyright!=null&&i.hasOwnProperty("copyright")&&(o.copyright=i.copyright),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.v1.SimpleArc"},l}(),e.SimpleReqUser=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.favorite=i.int32();break}case 2:{a.like=i.int32();break}case 3:{a.coin=i.int32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.v1.SimpleReqUser)return i;let n=new u.bilibili.mall.tab3.viewunite.v1.SimpleReqUser;return i.favorite!=null&&(n.favorite=i.favorite|0),i.like!=null&&(n.like=i.like|0),i.coin!=null&&(n.coin=i.coin|0),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.favorite=0,o.like=0,o.coin=0),i.favorite!=null&&i.hasOwnProperty("favorite")&&(o.favorite=i.favorite),i.like!=null&&i.hasOwnProperty("like")&&(o.like=i.like),i.coin!=null&&i.hasOwnProperty("coin")&&(o.coin=i.coin),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.v1.SimpleReqUser"},l}(),e.ViewReq=function(){function l(t){if(this.extraContent={},t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.aid=i.int64();break}case 2:{a.bvid=i.string();break}case 3:{a.from=i.string();break}case 4:{a.spmid=i.string();break}case 5:{a.fromSpmid=i.string();break}case 6:{a.sessionId=i.string();break}case 7:{a.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.decode(i,i.uint32());break}case 8:{a.trackId=i.string();break}case 9:{a.extraContent===r.emptyObject&&(a.extraContent={});let g=i.uint32()+i.pos;for(y="",s="";i.pos>>3){case 1:y=i.string();break;case 2:s=i.string();break;default:i.skipType(S&7);break}}a.extraContent[y]=s;break}case 10:{a.playMode=i.string();break}case 11:{a.relate=u.bilibili.mall.tab3.viewunite.v1.Relate.decode(i,i.uint32());break}case 12:{a.bizExtra=i.string();break}case 13:{a.adExtra=i.string();break}default:i.skipType(v&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.v1.ViewReq)return i;let n=new u.bilibili.mall.tab3.viewunite.v1.ViewReq;if(i.aid!=null&&(r.Long?(n.aid=r.Long.fromValue(i.aid)).unsigned=!1:typeof i.aid=="string"?n.aid=parseInt(i.aid,10):typeof i.aid=="number"?n.aid=i.aid:typeof i.aid=="object"&&(n.aid=new r.LongBits(i.aid.low>>>0,i.aid.high>>>0).toNumber())),i.bvid!=null&&(n.bvid=String(i.bvid)),i.from!=null&&(n.from=String(i.from)),i.spmid!=null&&(n.spmid=String(i.spmid)),i.fromSpmid!=null&&(n.fromSpmid=String(i.fromSpmid)),i.sessionId!=null&&(n.sessionId=String(i.sessionId)),i.playerArgs!=null){if(typeof i.playerArgs!="object")throw TypeError(".bilibili.mall.tab3.viewunite.v1.ViewReq.playerArgs: object expected");n.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.fromObject(i.playerArgs)}if(i.trackId!=null&&(n.trackId=String(i.trackId)),i.extraContent){if(typeof i.extraContent!="object")throw TypeError(".bilibili.mall.tab3.viewunite.v1.ViewReq.extraContent: object expected");n.extraContent={};for(let o=Object.keys(i.extraContent),a=0;a>>0,i.aid.high>>>0).toNumber():i.aid),i.bvid!=null&&i.hasOwnProperty("bvid")&&(o.bvid=i.bvid),i.from!=null&&i.hasOwnProperty("from")&&(o.from=i.from),i.spmid!=null&&i.hasOwnProperty("spmid")&&(o.spmid=i.spmid),i.fromSpmid!=null&&i.hasOwnProperty("fromSpmid")&&(o.fromSpmid=i.fromSpmid),i.sessionId!=null&&i.hasOwnProperty("sessionId")&&(o.sessionId=i.sessionId),i.playerArgs!=null&&i.hasOwnProperty("playerArgs")&&(o.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.toObject(i.playerArgs,n)),i.trackId!=null&&i.hasOwnProperty("trackId")&&(o.trackId=i.trackId);let a;if(i.extraContent&&(a=Object.keys(i.extraContent)).length){o.extraContent={};for(let y=0;y>>3){case 1:{a.deviceType=i.int64();break}case 2:{a.pagination=u.bilibili.pagination.Pagination.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.v1.Relate)return i;let n=new u.bilibili.mall.tab3.viewunite.v1.Relate;if(i.deviceType!=null&&(r.Long?(n.deviceType=r.Long.fromValue(i.deviceType)).unsigned=!1:typeof i.deviceType=="string"?n.deviceType=parseInt(i.deviceType,10):typeof i.deviceType=="number"?n.deviceType=i.deviceType:typeof i.deviceType=="object"&&(n.deviceType=new r.LongBits(i.deviceType.low>>>0,i.deviceType.high>>>0).toNumber())),i.pagination!=null){if(typeof i.pagination!="object")throw TypeError(".bilibili.mall.tab3.viewunite.v1.Relate.pagination: object expected");n.pagination=u.bilibili.pagination.Pagination.fromObject(i.pagination)}return n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.deviceType=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.deviceType=n.longs===String?"0":0;o.pagination=null}return i.deviceType!=null&&i.hasOwnProperty("deviceType")&&(typeof i.deviceType=="number"?o.deviceType=n.longs===String?String(i.deviceType):i.deviceType:o.deviceType=n.longs===String?r.Long.prototype.toString.call(i.deviceType):n.longs===Number?new r.LongBits(i.deviceType.low>>>0,i.deviceType.high>>>0).toNumber():i.deviceType),i.pagination!=null&&i.hasOwnProperty("pagination")&&(o.pagination=u.bilibili.pagination.Pagination.toObject(i.pagination,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.v1.Relate"},l}(),e.ViewReply=function(){function l(t){if(this.report={},t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.viewBase=u.bilibili.mall.tab3.viewunite.v1.ViewBase.decode(i,i.uint32());break}case 2:{a.arc=u.bilibili.mall.tab3.viewunite.v1.Arc.decode(i,i.uint32());break}case 3:{a.reqUser=u.bilibili.mall.tab3.viewunite.v1.ReqUser.decode(i,i.uint32());break}case 4:{a.owner=u.bilibili.mall.tab3.viewunite.common.Owner.decode(i,i.uint32());break}case 5:{a.tab=u.bilibili.mall.tab3.viewunite.v1.Tab.decode(i,i.uint32());break}case 6:{a.supplement=u.google.protobuf.Any.decode(i,i.uint32());break}case 7:{a.cm=u.bilibili.mall.tab3.viewunite.v1.CM.decode(i,i.uint32());break}case 8:{a.ecode=i.int32();break}case 9:{a.ecodeConfig=u.bilibili.mall.tab3.viewunite.v1.ECodeConfig.decode(i,i.uint32());break}case 10:{a.report===r.emptyObject&&(a.report={});let g=i.uint32()+i.pos;for(y="",s="";i.pos>>3){case 1:y=i.string();break;case 2:s=i.string();break;default:i.skipType(S&7);break}}a.report[y]=s;break}default:i.skipType(v&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.v1.ViewReply)return i;let n=new u.bilibili.mall.tab3.viewunite.v1.ViewReply;if(i.viewBase!=null){if(typeof i.viewBase!="object")throw TypeError(".bilibili.mall.tab3.viewunite.v1.ViewReply.viewBase: object expected");n.viewBase=u.bilibili.mall.tab3.viewunite.v1.ViewBase.fromObject(i.viewBase)}if(i.arc!=null){if(typeof i.arc!="object")throw TypeError(".bilibili.mall.tab3.viewunite.v1.ViewReply.arc: object expected");n.arc=u.bilibili.mall.tab3.viewunite.v1.Arc.fromObject(i.arc)}if(i.reqUser!=null){if(typeof i.reqUser!="object")throw TypeError(".bilibili.mall.tab3.viewunite.v1.ViewReply.reqUser: object expected");n.reqUser=u.bilibili.mall.tab3.viewunite.v1.ReqUser.fromObject(i.reqUser)}if(i.owner!=null){if(typeof i.owner!="object")throw TypeError(".bilibili.mall.tab3.viewunite.v1.ViewReply.owner: object expected");n.owner=u.bilibili.mall.tab3.viewunite.common.Owner.fromObject(i.owner)}if(i.tab!=null){if(typeof i.tab!="object")throw TypeError(".bilibili.mall.tab3.viewunite.v1.ViewReply.tab: object expected");n.tab=u.bilibili.mall.tab3.viewunite.v1.Tab.fromObject(i.tab)}if(i.supplement!=null){if(typeof i.supplement!="object")throw TypeError(".bilibili.mall.tab3.viewunite.v1.ViewReply.supplement: object expected");n.supplement=u.google.protobuf.Any.fromObject(i.supplement)}if(i.cm!=null){if(typeof i.cm!="object")throw TypeError(".bilibili.mall.tab3.viewunite.v1.ViewReply.cm: object expected");n.cm=u.bilibili.mall.tab3.viewunite.v1.CM.fromObject(i.cm)}switch(i.ecode){default:if(typeof i.ecode=="number"){n.ecode=i.ecode;break}break;case"CODE_DEFAULT":case 0:n.ecode=0;break;case"CODE_404":case 1:n.ecode=1;break;case"CODE_TEENAGER":case 78301:n.ecode=78301;break}if(i.ecodeConfig!=null){if(typeof i.ecodeConfig!="object")throw TypeError(".bilibili.mall.tab3.viewunite.v1.ViewReply.ecodeConfig: object expected");n.ecodeConfig=u.bilibili.mall.tab3.viewunite.v1.ECodeConfig.fromObject(i.ecodeConfig)}if(i.report){if(typeof i.report!="object")throw TypeError(".bilibili.mall.tab3.viewunite.v1.ViewReply.report: object expected");n.report={};for(let o=Object.keys(i.report),a=0;a>>3){case 1:{a.redirectUrl=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.v1.ECodeConfig)return i;let n=new u.bilibili.mall.tab3.viewunite.v1.ECodeConfig;return i.redirectUrl!=null&&(n.redirectUrl=String(i.redirectUrl)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.redirectUrl=""),i.redirectUrl!=null&&i.hasOwnProperty("redirectUrl")&&(o.redirectUrl=i.redirectUrl),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.v1.ECodeConfig"},l}(),e.ECode=function(){let l={},t=Object.create(l);return t[l[0]="CODE_DEFAULT"]=0,t[l[1]="CODE_404"]=1,t[l[78301]="CODE_TEENAGER"]=78301,t}(),e.CM=function(){function l(t){if(this.sourceContent=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.cmUnderPlayer=u.google.protobuf.Any.decode(i,i.uint32());break}case 2:{a.adsControl=u.google.protobuf.Any.decode(i,i.uint32());break}case 3:{a.sourceContent&&a.sourceContent.length||(a.sourceContent=[]),a.sourceContent.push(u.google.protobuf.Any.decode(i,i.uint32()));break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.v1.CM)return i;let n=new u.bilibili.mall.tab3.viewunite.v1.CM;if(i.cmUnderPlayer!=null){if(typeof i.cmUnderPlayer!="object")throw TypeError(".bilibili.mall.tab3.viewunite.v1.CM.cmUnderPlayer: object expected");n.cmUnderPlayer=u.google.protobuf.Any.fromObject(i.cmUnderPlayer)}if(i.adsControl!=null){if(typeof i.adsControl!="object")throw TypeError(".bilibili.mall.tab3.viewunite.v1.CM.adsControl: object expected");n.adsControl=u.google.protobuf.Any.fromObject(i.adsControl)}if(i.sourceContent){if(!Array.isArray(i.sourceContent))throw TypeError(".bilibili.mall.tab3.viewunite.v1.CM.sourceContent: array expected");n.sourceContent=[];for(let o=0;o>>3){case 1:{a.tabModule&&a.tabModule.length||(a.tabModule=[]),a.tabModule.push(u.bilibili.mall.tab3.viewunite.v1.TabModule.decode(i,i.uint32()));break}case 2:{a.tabBg=i.string();break}case 3:{a.danmakuEntrance=u.bilibili.mall.tab3.viewunite.v1.TabControl.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.v1.Tab)return i;let n=new u.bilibili.mall.tab3.viewunite.v1.Tab;if(i.tabModule){if(!Array.isArray(i.tabModule))throw TypeError(".bilibili.mall.tab3.viewunite.v1.Tab.tabModule: array expected");n.tabModule=[];for(let o=0;o>>3){case 1:{a.limit=i.bool();break}case 2:{a.disable=i.bool();break}case 3:{a.disableClickTip=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.v1.TabControl)return i;let n=new u.bilibili.mall.tab3.viewunite.v1.TabControl;return i.limit!=null&&(n.limit=!!i.limit),i.disable!=null&&(n.disable=!!i.disable),i.disableClickTip!=null&&(n.disableClickTip=String(i.disableClickTip)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.limit=!1,o.disable=!1,o.disableClickTip=""),i.limit!=null&&i.hasOwnProperty("limit")&&(o.limit=i.limit),i.disable!=null&&i.hasOwnProperty("disable")&&(o.disable=i.disable),i.disableClickTip!=null&&i.hasOwnProperty("disableClickTip")&&(o.disableClickTip=i.disableClickTip),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.v1.TabControl"},l}(),e.ReqUser=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.favorite=i.int32();break}case 2:{a.like=i.int32();break}case 3:{a.coin=i.int32();break}case 4:{a.favSeason=i.int32();break}case 5:{a.follow=i.int32();break}case 6:{a.dislike=i.int32();break}case 7:{a.elecPlusBtn=u.bilibili.mall.tab3.viewunite.v1.Button.decode(i,i.uint32());break}case 8:{a.chargingPlus=u.bilibili.mall.tab3.viewunite.v1.ChargingPlus.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.v1.ReqUser)return i;let n=new u.bilibili.mall.tab3.viewunite.v1.ReqUser;if(i.favorite!=null&&(n.favorite=i.favorite|0),i.like!=null&&(n.like=i.like|0),i.coin!=null&&(n.coin=i.coin|0),i.favSeason!=null&&(n.favSeason=i.favSeason|0),i.follow!=null&&(n.follow=i.follow|0),i.dislike!=null&&(n.dislike=i.dislike|0),i.elecPlusBtn!=null){if(typeof i.elecPlusBtn!="object")throw TypeError(".bilibili.mall.tab3.viewunite.v1.ReqUser.elecPlusBtn: object expected");n.elecPlusBtn=u.bilibili.mall.tab3.viewunite.v1.Button.fromObject(i.elecPlusBtn)}if(i.chargingPlus!=null){if(typeof i.chargingPlus!="object")throw TypeError(".bilibili.mall.tab3.viewunite.v1.ReqUser.chargingPlus: object expected");n.chargingPlus=u.bilibili.mall.tab3.viewunite.v1.ChargingPlus.fromObject(i.chargingPlus)}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.favorite=0,o.like=0,o.coin=0,o.favSeason=0,o.follow=0,o.dislike=0,o.elecPlusBtn=null,o.chargingPlus=null),i.favorite!=null&&i.hasOwnProperty("favorite")&&(o.favorite=i.favorite),i.like!=null&&i.hasOwnProperty("like")&&(o.like=i.like),i.coin!=null&&i.hasOwnProperty("coin")&&(o.coin=i.coin),i.favSeason!=null&&i.hasOwnProperty("favSeason")&&(o.favSeason=i.favSeason),i.follow!=null&&i.hasOwnProperty("follow")&&(o.follow=i.follow),i.dislike!=null&&i.hasOwnProperty("dislike")&&(o.dislike=i.dislike),i.elecPlusBtn!=null&&i.hasOwnProperty("elecPlusBtn")&&(o.elecPlusBtn=u.bilibili.mall.tab3.viewunite.v1.Button.toObject(i.elecPlusBtn,n)),i.chargingPlus!=null&&i.hasOwnProperty("chargingPlus")&&(o.chargingPlus=u.bilibili.mall.tab3.viewunite.v1.ChargingPlus.toObject(i.chargingPlus,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.v1.ReqUser"},l}(),e.ChargingPlus=function(){function l(t){if(this.playToast=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.pass=i.bool();break}case 2:{a.playToast&&a.playToast.length||(a.playToast=[]),a.playToast.push(u.bilibili.mall.tab3.viewunite.v1.PlayToast.decode(i,i.uint32()));break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.v1.ChargingPlus)return i;let n=new u.bilibili.mall.tab3.viewunite.v1.ChargingPlus;if(i.pass!=null&&(n.pass=!!i.pass),i.playToast){if(!Array.isArray(i.playToast))throw TypeError(".bilibili.mall.tab3.viewunite.v1.ChargingPlus.playToast: array expected");n.playToast=[];for(let o=0;o>>3){case 1:{a.business=i.int32();break}case 2:{a.iconUrl=i.string();break}case 3:{a.text=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.v1.PlayToast)return i;let n=new u.bilibili.mall.tab3.viewunite.v1.PlayToast;switch(i.business){default:if(typeof i.business=="number"){n.business=i.business;break}break;case"PLAYTOAST_UNKNOWN":case 0:n.business=0;break;case"PLAYTOAST_CHARGINGPLUS":case 1:n.business=1;break}return i.iconUrl!=null&&(n.iconUrl=String(i.iconUrl)),i.text!=null&&(n.text=String(i.text)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.business=n.enums===String?"PLAYTOAST_UNKNOWN":0,o.iconUrl="",o.text=""),i.business!=null&&i.hasOwnProperty("business")&&(o.business=n.enums===String?u.bilibili.mall.tab3.viewunite.v1.PlayToastEnum[i.business]===void 0?i.business:u.bilibili.mall.tab3.viewunite.v1.PlayToastEnum[i.business]:i.business),i.iconUrl!=null&&i.hasOwnProperty("iconUrl")&&(o.iconUrl=i.iconUrl),i.text!=null&&i.hasOwnProperty("text")&&(o.text=i.text),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.v1.PlayToast"},l}(),e.PlayToastEnum=function(){let l={},t=Object.create(l);return t[l[0]="PLAYTOAST_UNKNOWN"]=0,t[l[1]="PLAYTOAST_CHARGINGPLUS"]=1,t}(),e.Button=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.title=i.string();break}case 2:{a.uri=i.string();break}case 3:{a.icon=i.string();break}case 4:{a.jumpShowType=i.int32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.v1.Button)return i;let n=new u.bilibili.mall.tab3.viewunite.v1.Button;switch(i.title!=null&&(n.title=String(i.title)),i.uri!=null&&(n.uri=String(i.uri)),i.icon!=null&&(n.icon=String(i.icon)),i.jumpShowType){default:if(typeof i.jumpShowType=="number"){n.jumpShowType=i.jumpShowType;break}break;case"JST_DEFAULT":case 0:n.jumpShowType=0;break;case"JST_FULLSCREEN":case 1:n.jumpShowType=1;break;case"JST_HALFSCREEN":case 2:n.jumpShowType=2;break}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.title="",o.uri="",o.icon="",o.jumpShowType=n.enums===String?"JST_DEFAULT":0),i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.uri!=null&&i.hasOwnProperty("uri")&&(o.uri=i.uri),i.icon!=null&&i.hasOwnProperty("icon")&&(o.icon=i.icon),i.jumpShowType!=null&&i.hasOwnProperty("jumpShowType")&&(o.jumpShowType=n.enums===String?u.bilibili.mall.tab3.viewunite.v1.JumpShowType[i.jumpShowType]===void 0?i.jumpShowType:u.bilibili.mall.tab3.viewunite.v1.JumpShowType[i.jumpShowType]:i.jumpShowType),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.v1.Button"},l}(),e.JumpShowType=function(){let l={},t=Object.create(l);return t[l[0]="JST_DEFAULT"]=0,t[l[1]="JST_FULLSCREEN"]=1,t[l[2]="JST_HALFSCREEN"]=2,t}(),e.TabType=function(){let l={},t=Object.create(l);return t[l[0]="TAB_NONE"]=0,t[l[1]="TAB_INTRODUCTION"]=1,t[l[2]="TAB_REPLY"]=2,t[l[3]="TAB_OGV_ACTIVITY"]=3,t}(),e.TabModule=function(){function l(i){if(i)for(let n=Object.keys(i),o=0;o>>3){case 1:{y.tabType=n.int32();break}case 2:{y.introduction=u.bilibili.mall.tab3.viewunite.v1.IntroductionTab.decode(n,n.uint32());break}case 3:{y.reply=u.bilibili.mall.tab3.viewunite.v1.ReplyTab.decode(n,n.uint32());break}case 4:{y.activityTab=u.bilibili.mall.tab3.viewunite.common.ActivityTab.decode(n,n.uint32());break}default:n.skipType(s&7);break}}return y},l.fromObject=function(n){if(n instanceof u.bilibili.mall.tab3.viewunite.v1.TabModule)return n;let o=new u.bilibili.mall.tab3.viewunite.v1.TabModule;switch(n.tabType){default:if(typeof n.tabType=="number"){o.tabType=n.tabType;break}break;case"TAB_NONE":case 0:o.tabType=0;break;case"TAB_INTRODUCTION":case 1:o.tabType=1;break;case"TAB_REPLY":case 2:o.tabType=2;break;case"TAB_OGV_ACTIVITY":case 3:o.tabType=3;break}if(n.introduction!=null){if(typeof n.introduction!="object")throw TypeError(".bilibili.mall.tab3.viewunite.v1.TabModule.introduction: object expected");o.introduction=u.bilibili.mall.tab3.viewunite.v1.IntroductionTab.fromObject(n.introduction)}if(n.reply!=null){if(typeof n.reply!="object")throw TypeError(".bilibili.mall.tab3.viewunite.v1.TabModule.reply: object expected");o.reply=u.bilibili.mall.tab3.viewunite.v1.ReplyTab.fromObject(n.reply)}if(n.activityTab!=null){if(typeof n.activityTab!="object")throw TypeError(".bilibili.mall.tab3.viewunite.v1.TabModule.activityTab: object expected");o.activityTab=u.bilibili.mall.tab3.viewunite.common.ActivityTab.fromObject(n.activityTab)}return o},l.toObject=function(n,o){o||(o={});let a={};return o.defaults&&(a.tabType=o.enums===String?"TAB_NONE":0),n.tabType!=null&&n.hasOwnProperty("tabType")&&(a.tabType=o.enums===String?u.bilibili.mall.tab3.viewunite.v1.TabType[n.tabType]===void 0?n.tabType:u.bilibili.mall.tab3.viewunite.v1.TabType[n.tabType]:n.tabType),n.introduction!=null&&n.hasOwnProperty("introduction")&&(a.introduction=u.bilibili.mall.tab3.viewunite.v1.IntroductionTab.toObject(n.introduction,o),o.oneofs&&(a.tab="introduction")),n.reply!=null&&n.hasOwnProperty("reply")&&(a.reply=u.bilibili.mall.tab3.viewunite.v1.ReplyTab.toObject(n.reply,o),o.oneofs&&(a.tab="reply")),n.activityTab!=null&&n.hasOwnProperty("activityTab")&&(a.activityTab=u.bilibili.mall.tab3.viewunite.common.ActivityTab.toObject(n.activityTab,o),o.oneofs&&(a.tab="activityTab")),a},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/bilibili.mall.tab3.viewunite.v1.TabModule"},l}(),e.IntroductionTab=function(){function l(t){if(this.modules=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.title=i.string();break}case 2:{a.modules&&a.modules.length||(a.modules=[]),a.modules.push(u.bilibili.mall.tab3.viewunite.common.Module.decode(i,i.uint32()));break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.v1.IntroductionTab)return i;let n=new u.bilibili.mall.tab3.viewunite.v1.IntroductionTab;if(i.title!=null&&(n.title=String(i.title)),i.modules){if(!Array.isArray(i.modules))throw TypeError(".bilibili.mall.tab3.viewunite.v1.IntroductionTab.modules: array expected");n.modules=[];for(let o=0;o>>3){case 1:{a.replyStyle=u.bilibili.mall.tab3.viewunite.v1.ReplyStyle.decode(i,i.uint32());break}case 2:{a.title=i.string();break}case 3:{a.control=u.bilibili.mall.tab3.viewunite.v1.TabControl.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.v1.ReplyTab)return i;let n=new u.bilibili.mall.tab3.viewunite.v1.ReplyTab;if(i.replyStyle!=null){if(typeof i.replyStyle!="object")throw TypeError(".bilibili.mall.tab3.viewunite.v1.ReplyTab.replyStyle: object expected");n.replyStyle=u.bilibili.mall.tab3.viewunite.v1.ReplyStyle.fromObject(i.replyStyle)}if(i.title!=null&&(n.title=String(i.title)),i.control!=null){if(typeof i.control!="object")throw TypeError(".bilibili.mall.tab3.viewunite.v1.ReplyTab.control: object expected");n.control=u.bilibili.mall.tab3.viewunite.v1.TabControl.fromObject(i.control)}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.replyStyle=null,o.title="",o.control=null),i.replyStyle!=null&&i.hasOwnProperty("replyStyle")&&(o.replyStyle=u.bilibili.mall.tab3.viewunite.v1.ReplyStyle.toObject(i.replyStyle,n)),i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.control!=null&&i.hasOwnProperty("control")&&(o.control=u.bilibili.mall.tab3.viewunite.v1.TabControl.toObject(i.control,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.v1.ReplyTab"},l}(),e.ReplyStyle=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.badgeUrl=i.string();break}case 2:{a.badgeText=i.string();break}case 3:{a.badgeType=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.v1.ReplyStyle)return i;let n=new u.bilibili.mall.tab3.viewunite.v1.ReplyStyle;return i.badgeUrl!=null&&(n.badgeUrl=String(i.badgeUrl)),i.badgeText!=null&&(n.badgeText=String(i.badgeText)),i.badgeType!=null&&(r.Long?(n.badgeType=r.Long.fromValue(i.badgeType)).unsigned=!1:typeof i.badgeType=="string"?n.badgeType=parseInt(i.badgeType,10):typeof i.badgeType=="number"?n.badgeType=i.badgeType:typeof i.badgeType=="object"&&(n.badgeType=new r.LongBits(i.badgeType.low>>>0,i.badgeType.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults)if(o.badgeUrl="",o.badgeText="",r.Long){let a=new r.Long(0,0,!1);o.badgeType=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.badgeType=n.longs===String?"0":0;return i.badgeUrl!=null&&i.hasOwnProperty("badgeUrl")&&(o.badgeUrl=i.badgeUrl),i.badgeText!=null&&i.hasOwnProperty("badgeText")&&(o.badgeText=i.badgeText),i.badgeType!=null&&i.hasOwnProperty("badgeType")&&(typeof i.badgeType=="number"?o.badgeType=n.longs===String?String(i.badgeType):i.badgeType:o.badgeType=n.longs===String?r.Long.prototype.toString.call(i.badgeType):n.longs===Number?new r.LongBits(i.badgeType.low>>>0,i.badgeType.high>>>0).toNumber():i.badgeType),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.v1.ReplyStyle"},l}(),e.ViewBase=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.bizType=i.int32();break}case 2:{a.pageType=i.int32();break}case 3:{a.control=u.bilibili.mall.tab3.viewunite.v1.PageControl.decode(i,i.uint32());break}case 4:{a.activityResource=u.bilibili.mall.tab3.viewunite.v1.ActivityResource.decode(i,i.uint32());break}case 5:{a.config=u.bilibili.mall.tab3.viewunite.v1.Config.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.v1.ViewBase)return i;let n=new u.bilibili.mall.tab3.viewunite.v1.ViewBase;switch(i.bizType){default:if(typeof i.bizType=="number"){n.bizType=i.bizType;break}break;case"BIZ_TYPE_UNKNOWN":case 0:n.bizType=0;break;case"BIZ_TYPE_UGC":case 1:n.bizType=1;break;case"BIZ_TYPE_PGC":case 2:n.bizType=2;break;case"BIZ_TYPE_PUGV":case 3:n.bizType=3;break}switch(i.pageType){default:if(typeof i.pageType=="number"){n.pageType=i.pageType;break}break;case"COMMON_PAGE":case 0:n.pageType=0;break;case"ACTIVITY_PAGE":case 1:n.pageType=1;break}if(i.control!=null){if(typeof i.control!="object")throw TypeError(".bilibili.mall.tab3.viewunite.v1.ViewBase.control: object expected");n.control=u.bilibili.mall.tab3.viewunite.v1.PageControl.fromObject(i.control)}if(i.activityResource!=null){if(typeof i.activityResource!="object")throw TypeError(".bilibili.mall.tab3.viewunite.v1.ViewBase.activityResource: object expected");n.activityResource=u.bilibili.mall.tab3.viewunite.v1.ActivityResource.fromObject(i.activityResource)}if(i.config!=null){if(typeof i.config!="object")throw TypeError(".bilibili.mall.tab3.viewunite.v1.ViewBase.config: object expected");n.config=u.bilibili.mall.tab3.viewunite.v1.Config.fromObject(i.config)}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.bizType=n.enums===String?"BIZ_TYPE_UNKNOWN":0,o.pageType=n.enums===String?"COMMON_PAGE":0,o.control=null,o.activityResource=null,o.config=null),i.bizType!=null&&i.hasOwnProperty("bizType")&&(o.bizType=n.enums===String?u.bilibili.playershared.BizType[i.bizType]===void 0?i.bizType:u.bilibili.playershared.BizType[i.bizType]:i.bizType),i.pageType!=null&&i.hasOwnProperty("pageType")&&(o.pageType=n.enums===String?u.bilibili.mall.tab3.viewunite.v1.PageCategory[i.pageType]===void 0?i.pageType:u.bilibili.mall.tab3.viewunite.v1.PageCategory[i.pageType]:i.pageType),i.control!=null&&i.hasOwnProperty("control")&&(o.control=u.bilibili.mall.tab3.viewunite.v1.PageControl.toObject(i.control,n)),i.activityResource!=null&&i.hasOwnProperty("activityResource")&&(o.activityResource=u.bilibili.mall.tab3.viewunite.v1.ActivityResource.toObject(i.activityResource,n)),i.config!=null&&i.hasOwnProperty("config")&&(o.config=u.bilibili.mall.tab3.viewunite.v1.Config.toObject(i.config,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.v1.ViewBase"},l}(),e.Config=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.online=u.bilibili.mall.tab3.viewunite.v1.Online.decode(i,i.uint32());break}case 2:{a.playerIcon=u.bilibili.mall.tab3.viewunite.v1.PlayerIcon.decode(i,i.uint32());break}case 3:{a.storyEntrance=u.bilibili.mall.tab3.viewunite.v1.StoryEntrance.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.v1.Config)return i;let n=new u.bilibili.mall.tab3.viewunite.v1.Config;if(i.online!=null){if(typeof i.online!="object")throw TypeError(".bilibili.mall.tab3.viewunite.v1.Config.online: object expected");n.online=u.bilibili.mall.tab3.viewunite.v1.Online.fromObject(i.online)}if(i.playerIcon!=null){if(typeof i.playerIcon!="object")throw TypeError(".bilibili.mall.tab3.viewunite.v1.Config.playerIcon: object expected");n.playerIcon=u.bilibili.mall.tab3.viewunite.v1.PlayerIcon.fromObject(i.playerIcon)}if(i.storyEntrance!=null){if(typeof i.storyEntrance!="object")throw TypeError(".bilibili.mall.tab3.viewunite.v1.Config.storyEntrance: object expected");n.storyEntrance=u.bilibili.mall.tab3.viewunite.v1.StoryEntrance.fromObject(i.storyEntrance)}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.online=null,o.playerIcon=null,o.storyEntrance=null),i.online!=null&&i.hasOwnProperty("online")&&(o.online=u.bilibili.mall.tab3.viewunite.v1.Online.toObject(i.online,n)),i.playerIcon!=null&&i.hasOwnProperty("playerIcon")&&(o.playerIcon=u.bilibili.mall.tab3.viewunite.v1.PlayerIcon.toObject(i.playerIcon,n)),i.storyEntrance!=null&&i.hasOwnProperty("storyEntrance")&&(o.storyEntrance=u.bilibili.mall.tab3.viewunite.v1.StoryEntrance.toObject(i.storyEntrance,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.v1.Config"},l}(),e.StoryEntrance=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.arcPlayStory=i.bool();break}case 2:{a.storyIcon=i.string();break}case 3:{a.arcLandscapeStory=i.bool();break}case 4:{a.landscapeIcon=i.string();break}case 5:{a.playStory=i.bool();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.v1.StoryEntrance)return i;let n=new u.bilibili.mall.tab3.viewunite.v1.StoryEntrance;return i.arcPlayStory!=null&&(n.arcPlayStory=!!i.arcPlayStory),i.storyIcon!=null&&(n.storyIcon=String(i.storyIcon)),i.arcLandscapeStory!=null&&(n.arcLandscapeStory=!!i.arcLandscapeStory),i.landscapeIcon!=null&&(n.landscapeIcon=String(i.landscapeIcon)),i.playStory!=null&&(n.playStory=!!i.playStory),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.arcPlayStory=!1,o.storyIcon="",o.arcLandscapeStory=!1,o.landscapeIcon="",o.playStory=!1),i.arcPlayStory!=null&&i.hasOwnProperty("arcPlayStory")&&(o.arcPlayStory=i.arcPlayStory),i.storyIcon!=null&&i.hasOwnProperty("storyIcon")&&(o.storyIcon=i.storyIcon),i.arcLandscapeStory!=null&&i.hasOwnProperty("arcLandscapeStory")&&(o.arcLandscapeStory=i.arcLandscapeStory),i.landscapeIcon!=null&&i.hasOwnProperty("landscapeIcon")&&(o.landscapeIcon=i.landscapeIcon),i.playStory!=null&&i.hasOwnProperty("playStory")&&(o.playStory=i.playStory),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.v1.StoryEntrance"},l}(),e.PlayerIcon=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.url1=i.string();break}case 2:{a.hash1=i.string();break}case 3:{a.url2=i.string();break}case 4:{a.hash2=i.string();break}case 5:{a.dragLeftPng=i.string();break}case 6:{a.middlePng=i.string();break}case 7:{a.dragRightPng=i.string();break}case 8:{a.dragData=u.bilibili.mall.tab3.viewunite.v1.IconData.decode(i,i.uint32());break}case 9:{a.nodragData=u.bilibili.mall.tab3.viewunite.v1.IconData.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.v1.PlayerIcon)return i;let n=new u.bilibili.mall.tab3.viewunite.v1.PlayerIcon;if(i.url1!=null&&(n.url1=String(i.url1)),i.hash1!=null&&(n.hash1=String(i.hash1)),i.url2!=null&&(n.url2=String(i.url2)),i.hash2!=null&&(n.hash2=String(i.hash2)),i.dragLeftPng!=null&&(n.dragLeftPng=String(i.dragLeftPng)),i.middlePng!=null&&(n.middlePng=String(i.middlePng)),i.dragRightPng!=null&&(n.dragRightPng=String(i.dragRightPng)),i.dragData!=null){if(typeof i.dragData!="object")throw TypeError(".bilibili.mall.tab3.viewunite.v1.PlayerIcon.dragData: object expected");n.dragData=u.bilibili.mall.tab3.viewunite.v1.IconData.fromObject(i.dragData)}if(i.nodragData!=null){if(typeof i.nodragData!="object")throw TypeError(".bilibili.mall.tab3.viewunite.v1.PlayerIcon.nodragData: object expected");n.nodragData=u.bilibili.mall.tab3.viewunite.v1.IconData.fromObject(i.nodragData)}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.url1="",o.hash1="",o.url2="",o.hash2="",o.dragLeftPng="",o.middlePng="",o.dragRightPng="",o.dragData=null,o.nodragData=null),i.url1!=null&&i.hasOwnProperty("url1")&&(o.url1=i.url1),i.hash1!=null&&i.hasOwnProperty("hash1")&&(o.hash1=i.hash1),i.url2!=null&&i.hasOwnProperty("url2")&&(o.url2=i.url2),i.hash2!=null&&i.hasOwnProperty("hash2")&&(o.hash2=i.hash2),i.dragLeftPng!=null&&i.hasOwnProperty("dragLeftPng")&&(o.dragLeftPng=i.dragLeftPng),i.middlePng!=null&&i.hasOwnProperty("middlePng")&&(o.middlePng=i.middlePng),i.dragRightPng!=null&&i.hasOwnProperty("dragRightPng")&&(o.dragRightPng=i.dragRightPng),i.dragData!=null&&i.hasOwnProperty("dragData")&&(o.dragData=u.bilibili.mall.tab3.viewunite.v1.IconData.toObject(i.dragData,n)),i.nodragData!=null&&i.hasOwnProperty("nodragData")&&(o.nodragData=u.bilibili.mall.tab3.viewunite.v1.IconData.toObject(i.nodragData,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.v1.PlayerIcon"},l}(),e.IconData=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.metaJson=i.string();break}case 2:{a.spritsImg=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.v1.IconData)return i;let n=new u.bilibili.mall.tab3.viewunite.v1.IconData;return i.metaJson!=null&&(n.metaJson=String(i.metaJson)),i.spritsImg!=null&&(n.spritsImg=String(i.spritsImg)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.metaJson="",o.spritsImg=""),i.metaJson!=null&&i.hasOwnProperty("metaJson")&&(o.metaJson=i.metaJson),i.spritsImg!=null&&i.hasOwnProperty("spritsImg")&&(o.spritsImg=i.spritsImg),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.v1.IconData"},l}(),e.Online=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.onlineShow=i.bool();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.v1.Online)return i;let n=new u.bilibili.mall.tab3.viewunite.v1.Online;return i.onlineShow!=null&&(n.onlineShow=!!i.onlineShow),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.onlineShow=!1),i.onlineShow!=null&&i.hasOwnProperty("onlineShow")&&(o.onlineShow=i.onlineShow),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.v1.Online"},l}(),e.PageControl=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.toastShow=u.bilibili.mall.tab3.viewunite.v1.Control.decode(i,i.uint32());break}case 2:{a.materialShow=u.bilibili.mall.tab3.viewunite.v1.Control.decode(i,i.uint32());break}case 3:{a.upShow=u.bilibili.mall.tab3.viewunite.v1.Control.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.v1.PageControl)return i;let n=new u.bilibili.mall.tab3.viewunite.v1.PageControl;if(i.toastShow!=null){if(typeof i.toastShow!="object")throw TypeError(".bilibili.mall.tab3.viewunite.v1.PageControl.toastShow: object expected");n.toastShow=u.bilibili.mall.tab3.viewunite.v1.Control.fromObject(i.toastShow)}if(i.materialShow!=null){if(typeof i.materialShow!="object")throw TypeError(".bilibili.mall.tab3.viewunite.v1.PageControl.materialShow: object expected");n.materialShow=u.bilibili.mall.tab3.viewunite.v1.Control.fromObject(i.materialShow)}if(i.upShow!=null){if(typeof i.upShow!="object")throw TypeError(".bilibili.mall.tab3.viewunite.v1.PageControl.upShow: object expected");n.upShow=u.bilibili.mall.tab3.viewunite.v1.Control.fromObject(i.upShow)}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.toastShow=null,o.materialShow=null,o.upShow=null),i.toastShow!=null&&i.hasOwnProperty("toastShow")&&(o.toastShow=u.bilibili.mall.tab3.viewunite.v1.Control.toObject(i.toastShow,n)),i.materialShow!=null&&i.hasOwnProperty("materialShow")&&(o.materialShow=u.bilibili.mall.tab3.viewunite.v1.Control.toObject(i.materialShow,n)),i.upShow!=null&&i.hasOwnProperty("upShow")&&(o.upShow=u.bilibili.mall.tab3.viewunite.v1.Control.toObject(i.upShow,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.v1.PageControl"},l}(),e.Control=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.limit=i.bool();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.v1.Control)return i;let n=new u.bilibili.mall.tab3.viewunite.v1.Control;return i.limit!=null&&(n.limit=!!i.limit),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.limit=!1),i.limit!=null&&i.hasOwnProperty("limit")&&(o.limit=i.limit),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.v1.Control"},l}(),e.ActivityResource=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.darkTextColor=i.string();break}case 2:{a.dividerColor=i.string();break}case 3:{a.bgColor=i.string();break}case 4:{a.selectedBgColor=i.string();break}case 5:{a.textColor=i.string();break}case 6:{a.lightTextColor=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.v1.ActivityResource)return i;let n=new u.bilibili.mall.tab3.viewunite.v1.ActivityResource;return i.darkTextColor!=null&&(n.darkTextColor=String(i.darkTextColor)),i.dividerColor!=null&&(n.dividerColor=String(i.dividerColor)),i.bgColor!=null&&(n.bgColor=String(i.bgColor)),i.selectedBgColor!=null&&(n.selectedBgColor=String(i.selectedBgColor)),i.textColor!=null&&(n.textColor=String(i.textColor)),i.lightTextColor!=null&&(n.lightTextColor=String(i.lightTextColor)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.darkTextColor="",o.dividerColor="",o.bgColor="",o.selectedBgColor="",o.textColor="",o.lightTextColor=""),i.darkTextColor!=null&&i.hasOwnProperty("darkTextColor")&&(o.darkTextColor=i.darkTextColor),i.dividerColor!=null&&i.hasOwnProperty("dividerColor")&&(o.dividerColor=i.dividerColor),i.bgColor!=null&&i.hasOwnProperty("bgColor")&&(o.bgColor=i.bgColor),i.selectedBgColor!=null&&i.hasOwnProperty("selectedBgColor")&&(o.selectedBgColor=i.selectedBgColor),i.textColor!=null&&i.hasOwnProperty("textColor")&&(o.textColor=i.textColor),i.lightTextColor!=null&&i.hasOwnProperty("lightTextColor")&&(o.lightTextColor=i.lightTextColor),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.v1.ActivityResource"},l}(),e.Arc=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.aid=i.int64();break}case 2:{a.cid=i.int64();break}case 3:{a.duration=i.int64();break}case 4:{a.stat=u.bilibili.mall.tab3.viewunite.common.Stat.decode(i,i.uint32());break}case 5:{a.bvid=i.string();break}case 6:{a.copyright=i.int32();break}case 7:{a.right=u.bilibili.mall.tab3.viewunite.v1.Rights.decode(i,i.uint32());break}case 8:{a.cover=i.string();break}case 9:{a.typeId=i.int64();break}case 10:{a.title=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.v1.Arc)return i;let n=new u.bilibili.mall.tab3.viewunite.v1.Arc;if(i.aid!=null&&(r.Long?(n.aid=r.Long.fromValue(i.aid)).unsigned=!1:typeof i.aid=="string"?n.aid=parseInt(i.aid,10):typeof i.aid=="number"?n.aid=i.aid:typeof i.aid=="object"&&(n.aid=new r.LongBits(i.aid.low>>>0,i.aid.high>>>0).toNumber())),i.cid!=null&&(r.Long?(n.cid=r.Long.fromValue(i.cid)).unsigned=!1:typeof i.cid=="string"?n.cid=parseInt(i.cid,10):typeof i.cid=="number"?n.cid=i.cid:typeof i.cid=="object"&&(n.cid=new r.LongBits(i.cid.low>>>0,i.cid.high>>>0).toNumber())),i.duration!=null&&(r.Long?(n.duration=r.Long.fromValue(i.duration)).unsigned=!1:typeof i.duration=="string"?n.duration=parseInt(i.duration,10):typeof i.duration=="number"?n.duration=i.duration:typeof i.duration=="object"&&(n.duration=new r.LongBits(i.duration.low>>>0,i.duration.high>>>0).toNumber())),i.stat!=null){if(typeof i.stat!="object")throw TypeError(".bilibili.mall.tab3.viewunite.v1.Arc.stat: object expected");n.stat=u.bilibili.mall.tab3.viewunite.common.Stat.fromObject(i.stat)}if(i.bvid!=null&&(n.bvid=String(i.bvid)),i.copyright!=null&&(n.copyright=i.copyright|0),i.right!=null){if(typeof i.right!="object")throw TypeError(".bilibili.mall.tab3.viewunite.v1.Arc.right: object expected");n.right=u.bilibili.mall.tab3.viewunite.v1.Rights.fromObject(i.right)}return i.cover!=null&&(n.cover=String(i.cover)),i.typeId!=null&&(r.Long?(n.typeId=r.Long.fromValue(i.typeId)).unsigned=!1:typeof i.typeId=="string"?n.typeId=parseInt(i.typeId,10):typeof i.typeId=="number"?n.typeId=i.typeId:typeof i.typeId=="object"&&(n.typeId=new r.LongBits(i.typeId.low>>>0,i.typeId.high>>>0).toNumber())),i.title!=null&&(n.title=String(i.title)),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.aid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.aid=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.cid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.cid=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.duration=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.duration=n.longs===String?"0":0;if(o.stat=null,o.bvid="",o.copyright=0,o.right=null,o.cover="",r.Long){let a=new r.Long(0,0,!1);o.typeId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.typeId=n.longs===String?"0":0;o.title=""}return i.aid!=null&&i.hasOwnProperty("aid")&&(typeof i.aid=="number"?o.aid=n.longs===String?String(i.aid):i.aid:o.aid=n.longs===String?r.Long.prototype.toString.call(i.aid):n.longs===Number?new r.LongBits(i.aid.low>>>0,i.aid.high>>>0).toNumber():i.aid),i.cid!=null&&i.hasOwnProperty("cid")&&(typeof i.cid=="number"?o.cid=n.longs===String?String(i.cid):i.cid:o.cid=n.longs===String?r.Long.prototype.toString.call(i.cid):n.longs===Number?new r.LongBits(i.cid.low>>>0,i.cid.high>>>0).toNumber():i.cid),i.duration!=null&&i.hasOwnProperty("duration")&&(typeof i.duration=="number"?o.duration=n.longs===String?String(i.duration):i.duration:o.duration=n.longs===String?r.Long.prototype.toString.call(i.duration):n.longs===Number?new r.LongBits(i.duration.low>>>0,i.duration.high>>>0).toNumber():i.duration),i.stat!=null&&i.hasOwnProperty("stat")&&(o.stat=u.bilibili.mall.tab3.viewunite.common.Stat.toObject(i.stat,n)),i.bvid!=null&&i.hasOwnProperty("bvid")&&(o.bvid=i.bvid),i.copyright!=null&&i.hasOwnProperty("copyright")&&(o.copyright=i.copyright),i.right!=null&&i.hasOwnProperty("right")&&(o.right=u.bilibili.mall.tab3.viewunite.v1.Rights.toObject(i.right,n)),i.cover!=null&&i.hasOwnProperty("cover")&&(o.cover=i.cover),i.typeId!=null&&i.hasOwnProperty("typeId")&&(typeof i.typeId=="number"?o.typeId=n.longs===String?String(i.typeId):i.typeId:o.typeId=n.longs===String?r.Long.prototype.toString.call(i.typeId):n.longs===Number?new r.LongBits(i.typeId.low>>>0,i.typeId.high>>>0).toNumber():i.typeId),i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.v1.Arc"},l}(),e.Rights=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.onlyVipDownload=i.bool();break}case 2:{a.noReprint=i.bool();break}case 3:{a.download=i.bool();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.v1.Rights)return i;let n=new u.bilibili.mall.tab3.viewunite.v1.Rights;return i.onlyVipDownload!=null&&(n.onlyVipDownload=!!i.onlyVipDownload),i.noReprint!=null&&(n.noReprint=!!i.noReprint),i.download!=null&&(n.download=!!i.download),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.onlyVipDownload=!1,o.noReprint=!1,o.download=!1),i.onlyVipDownload!=null&&i.hasOwnProperty("onlyVipDownload")&&(o.onlyVipDownload=i.onlyVipDownload),i.noReprint!=null&&i.hasOwnProperty("noReprint")&&(o.noReprint=i.noReprint),i.download!=null&&i.hasOwnProperty("download")&&(o.download=i.download),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.v1.Rights"},l}(),e.PageCategory=function(){let l={},t=Object.create(l);return t[l[0]="COMMON_PAGE"]=0,t[l[1]="ACTIVITY_PAGE"]=1,t}(),e.ViewProgressReq=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.aid=i.int64();break}case 2:{a.cid=i.int64();break}case 3:{a.upMid=i.int64();break}case 4:{a.chronosParam=u.bilibili.mall.tab3.viewunite.v1.ChronosParam.decode(i,i.uint32());break}case 5:{a.type=i.int32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.v1.ViewProgressReq)return i;let n=new u.bilibili.mall.tab3.viewunite.v1.ViewProgressReq;if(i.aid!=null&&(r.Long?(n.aid=r.Long.fromValue(i.aid)).unsigned=!1:typeof i.aid=="string"?n.aid=parseInt(i.aid,10):typeof i.aid=="number"?n.aid=i.aid:typeof i.aid=="object"&&(n.aid=new r.LongBits(i.aid.low>>>0,i.aid.high>>>0).toNumber())),i.cid!=null&&(r.Long?(n.cid=r.Long.fromValue(i.cid)).unsigned=!1:typeof i.cid=="string"?n.cid=parseInt(i.cid,10):typeof i.cid=="number"?n.cid=i.cid:typeof i.cid=="object"&&(n.cid=new r.LongBits(i.cid.low>>>0,i.cid.high>>>0).toNumber())),i.upMid!=null&&(r.Long?(n.upMid=r.Long.fromValue(i.upMid)).unsigned=!1:typeof i.upMid=="string"?n.upMid=parseInt(i.upMid,10):typeof i.upMid=="number"?n.upMid=i.upMid:typeof i.upMid=="object"&&(n.upMid=new r.LongBits(i.upMid.low>>>0,i.upMid.high>>>0).toNumber())),i.chronosParam!=null){if(typeof i.chronosParam!="object")throw TypeError(".bilibili.mall.tab3.viewunite.v1.ViewProgressReq.chronosParam: object expected");n.chronosParam=u.bilibili.mall.tab3.viewunite.v1.ChronosParam.fromObject(i.chronosParam)}switch(i.type){default:if(typeof i.type=="number"){n.type=i.type;break}break;case"UGC":case 0:n.type=0;break;case"OGV":case 1:n.type=1;break}return n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.aid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.aid=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.cid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.cid=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.upMid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.upMid=n.longs===String?"0":0;o.chronosParam=null,o.type=n.enums===String?"UGC":0}return i.aid!=null&&i.hasOwnProperty("aid")&&(typeof i.aid=="number"?o.aid=n.longs===String?String(i.aid):i.aid:o.aid=n.longs===String?r.Long.prototype.toString.call(i.aid):n.longs===Number?new r.LongBits(i.aid.low>>>0,i.aid.high>>>0).toNumber():i.aid),i.cid!=null&&i.hasOwnProperty("cid")&&(typeof i.cid=="number"?o.cid=n.longs===String?String(i.cid):i.cid:o.cid=n.longs===String?r.Long.prototype.toString.call(i.cid):n.longs===Number?new r.LongBits(i.cid.low>>>0,i.cid.high>>>0).toNumber():i.cid),i.upMid!=null&&i.hasOwnProperty("upMid")&&(typeof i.upMid=="number"?o.upMid=n.longs===String?String(i.upMid):i.upMid:o.upMid=n.longs===String?r.Long.prototype.toString.call(i.upMid):n.longs===Number?new r.LongBits(i.upMid.low>>>0,i.upMid.high>>>0).toNumber():i.upMid),i.chronosParam!=null&&i.hasOwnProperty("chronosParam")&&(o.chronosParam=u.bilibili.mall.tab3.viewunite.v1.ChronosParam.toObject(i.chronosParam,n)),i.type!=null&&i.hasOwnProperty("type")&&(o.type=n.enums===String?u.bilibili.mall.tab3.viewunite.v1.UnionType[i.type]===void 0?i.type:u.bilibili.mall.tab3.viewunite.v1.UnionType[i.type]:i.type),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.v1.ViewProgressReq"},l}(),e.ChronosParam=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.engineVersion=i.string();break}case 2:{a.messageProtocol=i.string();break}case 3:{a.serviceKey=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.v1.ChronosParam)return i;let n=new u.bilibili.mall.tab3.viewunite.v1.ChronosParam;return i.engineVersion!=null&&(n.engineVersion=String(i.engineVersion)),i.messageProtocol!=null&&(n.messageProtocol=String(i.messageProtocol)),i.serviceKey!=null&&(n.serviceKey=String(i.serviceKey)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.engineVersion="",o.messageProtocol="",o.serviceKey=""),i.engineVersion!=null&&i.hasOwnProperty("engineVersion")&&(o.engineVersion=i.engineVersion),i.messageProtocol!=null&&i.hasOwnProperty("messageProtocol")&&(o.messageProtocol=i.messageProtocol),i.serviceKey!=null&&i.hasOwnProperty("serviceKey")&&(o.serviceKey=i.serviceKey),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.v1.ChronosParam"},l}(),e.ViewProgressReply=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.videoGuide=u.bilibili.mall.tab3.viewunite.v1.VideoGuide.decode(i,i.uint32());break}case 2:{a.chronos=u.bilibili.mall.tab3.viewunite.v1.Chronos.decode(i,i.uint32());break}case 3:{a.arcShot=u.bilibili.mall.tab3.viewunite.v1.VideoShot.decode(i,i.uint32());break}case 4:{a.dm=u.bilibili.mall.tab3.viewunite.v1.DmResource.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.v1.ViewProgressReply)return i;let n=new u.bilibili.mall.tab3.viewunite.v1.ViewProgressReply;if(i.videoGuide!=null){if(typeof i.videoGuide!="object")throw TypeError(".bilibili.mall.tab3.viewunite.v1.ViewProgressReply.videoGuide: object expected");n.videoGuide=u.bilibili.mall.tab3.viewunite.v1.VideoGuide.fromObject(i.videoGuide)}if(i.chronos!=null){if(typeof i.chronos!="object")throw TypeError(".bilibili.mall.tab3.viewunite.v1.ViewProgressReply.chronos: object expected");n.chronos=u.bilibili.mall.tab3.viewunite.v1.Chronos.fromObject(i.chronos)}if(i.arcShot!=null){if(typeof i.arcShot!="object")throw TypeError(".bilibili.mall.tab3.viewunite.v1.ViewProgressReply.arcShot: object expected");n.arcShot=u.bilibili.mall.tab3.viewunite.v1.VideoShot.fromObject(i.arcShot)}if(i.dm!=null){if(typeof i.dm!="object")throw TypeError(".bilibili.mall.tab3.viewunite.v1.ViewProgressReply.dm: object expected");n.dm=u.bilibili.mall.tab3.viewunite.v1.DmResource.fromObject(i.dm)}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.videoGuide=null,o.chronos=null,o.arcShot=null,o.dm=null),i.videoGuide!=null&&i.hasOwnProperty("videoGuide")&&(o.videoGuide=u.bilibili.mall.tab3.viewunite.v1.VideoGuide.toObject(i.videoGuide,n)),i.chronos!=null&&i.hasOwnProperty("chronos")&&(o.chronos=u.bilibili.mall.tab3.viewunite.v1.Chronos.toObject(i.chronos,n)),i.arcShot!=null&&i.hasOwnProperty("arcShot")&&(o.arcShot=u.bilibili.mall.tab3.viewunite.v1.VideoShot.toObject(i.arcShot,n)),i.dm!=null&&i.hasOwnProperty("dm")&&(o.dm=u.bilibili.mall.tab3.viewunite.v1.DmResource.toObject(i.dm,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.v1.ViewProgressReply"},l}(),e.DmResource=function(){function l(t){if(this.commandDms=[],this.cards=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.commandDms&&a.commandDms.length||(a.commandDms=[]),a.commandDms.push(u.bilibili.mall.tab3.viewunite.v1.CommandDm.decode(i,i.uint32()));break}case 2:{a.attention=u.bilibili.mall.tab3.viewunite.v1.AttentionCard.decode(i,i.uint32());break}case 3:{a.cards&&a.cards.length||(a.cards=[]),a.cards.push(u.bilibili.mall.tab3.viewunite.v1.OperationCard.decode(i,i.uint32()));break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.v1.DmResource)return i;let n=new u.bilibili.mall.tab3.viewunite.v1.DmResource;if(i.commandDms){if(!Array.isArray(i.commandDms))throw TypeError(".bilibili.mall.tab3.viewunite.v1.DmResource.commandDms: array expected");n.commandDms=[];for(let o=0;o>>3){case 1:{y.id=n.int64();break}case 2:{y.from=n.int32();break}case 3:{y.to=n.int32();break}case 4:{y.status=n.bool();break}case 5:{y.bizType=n.int32();break}case 6:{y.content=u.bilibili.mall.tab3.viewunite.v1.OperationCardContent.decode(n,n.uint32());break}case 7:{y.follow=u.bilibili.mall.tab3.viewunite.v1.BizFollowVideoParam.decode(n,n.uint32());break}case 8:{y.reserve=u.bilibili.mall.tab3.viewunite.v1.BizReserveActivityParam.decode(n,n.uint32());break}case 9:{y.jump=u.bilibili.mall.tab3.viewunite.v1.BizJumpLinkParam.decode(n,n.uint32());break}case 10:{y.game=u.bilibili.mall.tab3.viewunite.v1.BizReserveGameParam.decode(n,n.uint32());break}default:n.skipType(s&7);break}}return y},l.fromObject=function(n){if(n instanceof u.bilibili.mall.tab3.viewunite.v1.OperationCard)return n;let o=new u.bilibili.mall.tab3.viewunite.v1.OperationCard;switch(n.id!=null&&(r.Long?(o.id=r.Long.fromValue(n.id)).unsigned=!1:typeof n.id=="string"?o.id=parseInt(n.id,10):typeof n.id=="number"?o.id=n.id:typeof n.id=="object"&&(o.id=new r.LongBits(n.id.low>>>0,n.id.high>>>0).toNumber())),n.from!=null&&(o.from=n.from|0),n.to!=null&&(o.to=n.to|0),n.status!=null&&(o.status=!!n.status),n.bizType){default:if(typeof n.bizType=="number"){o.bizType=n.bizType;break}break;case"BizTypeNone":case 0:o.bizType=0;break;case"BizTypeFollowVideo":case 1:o.bizType=1;break;case"BizTypeReserveActivity":case 2:o.bizType=2;break;case"BizTypeJumpLink":case 3:o.bizType=3;break;case"BizTypeFavSeason":case 4:o.bizType=4;break;case"BizTypeReserveGame":case 5:o.bizType=5;break}if(n.content!=null){if(typeof n.content!="object")throw TypeError(".bilibili.mall.tab3.viewunite.v1.OperationCard.content: object expected");o.content=u.bilibili.mall.tab3.viewunite.v1.OperationCardContent.fromObject(n.content)}if(n.follow!=null){if(typeof n.follow!="object")throw TypeError(".bilibili.mall.tab3.viewunite.v1.OperationCard.follow: object expected");o.follow=u.bilibili.mall.tab3.viewunite.v1.BizFollowVideoParam.fromObject(n.follow)}if(n.reserve!=null){if(typeof n.reserve!="object")throw TypeError(".bilibili.mall.tab3.viewunite.v1.OperationCard.reserve: object expected");o.reserve=u.bilibili.mall.tab3.viewunite.v1.BizReserveActivityParam.fromObject(n.reserve)}if(n.jump!=null){if(typeof n.jump!="object")throw TypeError(".bilibili.mall.tab3.viewunite.v1.OperationCard.jump: object expected");o.jump=u.bilibili.mall.tab3.viewunite.v1.BizJumpLinkParam.fromObject(n.jump)}if(n.game!=null){if(typeof n.game!="object")throw TypeError(".bilibili.mall.tab3.viewunite.v1.OperationCard.game: object expected");o.game=u.bilibili.mall.tab3.viewunite.v1.BizReserveGameParam.fromObject(n.game)}return o},l.toObject=function(n,o){o||(o={});let a={};if(o.defaults){if(r.Long){let y=new r.Long(0,0,!1);a.id=o.longs===String?y.toString():o.longs===Number?y.toNumber():y}else a.id=o.longs===String?"0":0;a.from=0,a.to=0,a.status=!1,a.bizType=o.enums===String?"BizTypeNone":0,a.content=null}return n.id!=null&&n.hasOwnProperty("id")&&(typeof n.id=="number"?a.id=o.longs===String?String(n.id):n.id:a.id=o.longs===String?r.Long.prototype.toString.call(n.id):o.longs===Number?new r.LongBits(n.id.low>>>0,n.id.high>>>0).toNumber():n.id),n.from!=null&&n.hasOwnProperty("from")&&(a.from=n.from),n.to!=null&&n.hasOwnProperty("to")&&(a.to=n.to),n.status!=null&&n.hasOwnProperty("status")&&(a.status=n.status),n.bizType!=null&&n.hasOwnProperty("bizType")&&(a.bizType=o.enums===String?u.bilibili.mall.tab3.viewunite.v1.BizType[n.bizType]===void 0?n.bizType:u.bilibili.mall.tab3.viewunite.v1.BizType[n.bizType]:n.bizType),n.content!=null&&n.hasOwnProperty("content")&&(a.content=u.bilibili.mall.tab3.viewunite.v1.OperationCardContent.toObject(n.content,o)),n.follow!=null&&n.hasOwnProperty("follow")&&(a.follow=u.bilibili.mall.tab3.viewunite.v1.BizFollowVideoParam.toObject(n.follow,o),o.oneofs&&(a.param="follow")),n.reserve!=null&&n.hasOwnProperty("reserve")&&(a.reserve=u.bilibili.mall.tab3.viewunite.v1.BizReserveActivityParam.toObject(n.reserve,o),o.oneofs&&(a.param="reserve")),n.jump!=null&&n.hasOwnProperty("jump")&&(a.jump=u.bilibili.mall.tab3.viewunite.v1.BizJumpLinkParam.toObject(n.jump,o),o.oneofs&&(a.param="jump")),n.game!=null&&n.hasOwnProperty("game")&&(a.game=u.bilibili.mall.tab3.viewunite.v1.BizReserveGameParam.toObject(n.game,o),o.oneofs&&(a.param="game")),a},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/bilibili.mall.tab3.viewunite.v1.OperationCard"},l}(),e.BizFollowVideoParam=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.seasonId=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.v1.BizFollowVideoParam)return i;let n=new u.bilibili.mall.tab3.viewunite.v1.BizFollowVideoParam;return i.seasonId!=null&&(r.Long?(n.seasonId=r.Long.fromValue(i.seasonId)).unsigned=!1:typeof i.seasonId=="string"?n.seasonId=parseInt(i.seasonId,10):typeof i.seasonId=="number"?n.seasonId=i.seasonId:typeof i.seasonId=="object"&&(n.seasonId=new r.LongBits(i.seasonId.low>>>0,i.seasonId.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults)if(r.Long){let a=new r.Long(0,0,!1);o.seasonId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.seasonId=n.longs===String?"0":0;return i.seasonId!=null&&i.hasOwnProperty("seasonId")&&(typeof i.seasonId=="number"?o.seasonId=n.longs===String?String(i.seasonId):i.seasonId:o.seasonId=n.longs===String?r.Long.prototype.toString.call(i.seasonId):n.longs===Number?new r.LongBits(i.seasonId.low>>>0,i.seasonId.high>>>0).toNumber():i.seasonId),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.v1.BizFollowVideoParam"},l}(),e.BizReserveActivityParam=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.activityId=i.int64();break}case 2:{a.from=i.string();break}case 3:{a.type=i.string();break}case 4:{a.oid=i.int64();break}case 5:{a.reserveId=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.v1.BizReserveActivityParam)return i;let n=new u.bilibili.mall.tab3.viewunite.v1.BizReserveActivityParam;return i.activityId!=null&&(r.Long?(n.activityId=r.Long.fromValue(i.activityId)).unsigned=!1:typeof i.activityId=="string"?n.activityId=parseInt(i.activityId,10):typeof i.activityId=="number"?n.activityId=i.activityId:typeof i.activityId=="object"&&(n.activityId=new r.LongBits(i.activityId.low>>>0,i.activityId.high>>>0).toNumber())),i.from!=null&&(n.from=String(i.from)),i.type!=null&&(n.type=String(i.type)),i.oid!=null&&(r.Long?(n.oid=r.Long.fromValue(i.oid)).unsigned=!1:typeof i.oid=="string"?n.oid=parseInt(i.oid,10):typeof i.oid=="number"?n.oid=i.oid:typeof i.oid=="object"&&(n.oid=new r.LongBits(i.oid.low>>>0,i.oid.high>>>0).toNumber())),i.reserveId!=null&&(r.Long?(n.reserveId=r.Long.fromValue(i.reserveId)).unsigned=!1:typeof i.reserveId=="string"?n.reserveId=parseInt(i.reserveId,10):typeof i.reserveId=="number"?n.reserveId=i.reserveId:typeof i.reserveId=="object"&&(n.reserveId=new r.LongBits(i.reserveId.low>>>0,i.reserveId.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.activityId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.activityId=n.longs===String?"0":0;if(o.from="",o.type="",r.Long){let a=new r.Long(0,0,!1);o.oid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.oid=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.reserveId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.reserveId=n.longs===String?"0":0}return i.activityId!=null&&i.hasOwnProperty("activityId")&&(typeof i.activityId=="number"?o.activityId=n.longs===String?String(i.activityId):i.activityId:o.activityId=n.longs===String?r.Long.prototype.toString.call(i.activityId):n.longs===Number?new r.LongBits(i.activityId.low>>>0,i.activityId.high>>>0).toNumber():i.activityId),i.from!=null&&i.hasOwnProperty("from")&&(o.from=i.from),i.type!=null&&i.hasOwnProperty("type")&&(o.type=i.type),i.oid!=null&&i.hasOwnProperty("oid")&&(typeof i.oid=="number"?o.oid=n.longs===String?String(i.oid):i.oid:o.oid=n.longs===String?r.Long.prototype.toString.call(i.oid):n.longs===Number?new r.LongBits(i.oid.low>>>0,i.oid.high>>>0).toNumber():i.oid),i.reserveId!=null&&i.hasOwnProperty("reserveId")&&(typeof i.reserveId=="number"?o.reserveId=n.longs===String?String(i.reserveId):i.reserveId:o.reserveId=n.longs===String?r.Long.prototype.toString.call(i.reserveId):n.longs===Number?new r.LongBits(i.reserveId.low>>>0,i.reserveId.high>>>0).toNumber():i.reserveId),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.v1.BizReserveActivityParam"},l}(),e.BizJumpLinkParam=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.url=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.v1.BizJumpLinkParam)return i;let n=new u.bilibili.mall.tab3.viewunite.v1.BizJumpLinkParam;return i.url!=null&&(n.url=String(i.url)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.url=""),i.url!=null&&i.hasOwnProperty("url")&&(o.url=i.url),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.v1.BizJumpLinkParam"},l}(),e.BizReserveGameParam=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.gameId=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.v1.BizReserveGameParam)return i;let n=new u.bilibili.mall.tab3.viewunite.v1.BizReserveGameParam;return i.gameId!=null&&(r.Long?(n.gameId=r.Long.fromValue(i.gameId)).unsigned=!1:typeof i.gameId=="string"?n.gameId=parseInt(i.gameId,10):typeof i.gameId=="number"?n.gameId=i.gameId:typeof i.gameId=="object"&&(n.gameId=new r.LongBits(i.gameId.low>>>0,i.gameId.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults)if(r.Long){let a=new r.Long(0,0,!1);o.gameId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.gameId=n.longs===String?"0":0;return i.gameId!=null&&i.hasOwnProperty("gameId")&&(typeof i.gameId=="number"?o.gameId=n.longs===String?String(i.gameId):i.gameId:o.gameId=n.longs===String?r.Long.prototype.toString.call(i.gameId):n.longs===Number?new r.LongBits(i.gameId.low>>>0,i.gameId.high>>>0).toNumber():i.gameId),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.v1.BizReserveGameParam"},l}(),e.OperationCardContent=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.title=i.string();break}case 2:{a.subtitle=i.string();break}case 3:{a.icon=i.string();break}case 4:{a.buttonTitle=i.string();break}case 5:{a.buttonSelectedTitle=i.string();break}case 6:{a.showSelected=i.bool();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.v1.OperationCardContent)return i;let n=new u.bilibili.mall.tab3.viewunite.v1.OperationCardContent;return i.title!=null&&(n.title=String(i.title)),i.subtitle!=null&&(n.subtitle=String(i.subtitle)),i.icon!=null&&(n.icon=String(i.icon)),i.buttonTitle!=null&&(n.buttonTitle=String(i.buttonTitle)),i.buttonSelectedTitle!=null&&(n.buttonSelectedTitle=String(i.buttonSelectedTitle)),i.showSelected!=null&&(n.showSelected=!!i.showSelected),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.title="",o.subtitle="",o.icon="",o.buttonTitle="",o.buttonSelectedTitle="",o.showSelected=!1),i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.subtitle!=null&&i.hasOwnProperty("subtitle")&&(o.subtitle=i.subtitle),i.icon!=null&&i.hasOwnProperty("icon")&&(o.icon=i.icon),i.buttonTitle!=null&&i.hasOwnProperty("buttonTitle")&&(o.buttonTitle=i.buttonTitle),i.buttonSelectedTitle!=null&&i.hasOwnProperty("buttonSelectedTitle")&&(o.buttonSelectedTitle=i.buttonSelectedTitle),i.showSelected!=null&&i.hasOwnProperty("showSelected")&&(o.showSelected=i.showSelected),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.v1.OperationCardContent"},l}(),e.VideoViewPoint=function(){function l(t){if(this.points=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.points&&a.points.length||(a.points=[]),a.points.push(u.bilibili.mall.tab3.viewunite.v1.VideoPoint.decode(i,i.uint32()));break}case 2:{a.pointMaterial=u.bilibili.mall.tab3.viewunite.v1.PointMaterial.decode(i,i.uint32());break}case 3:{a.pointPermanent=i.bool();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.v1.VideoViewPoint)return i;let n=new u.bilibili.mall.tab3.viewunite.v1.VideoViewPoint;if(i.points){if(!Array.isArray(i.points))throw TypeError(".bilibili.mall.tab3.viewunite.v1.VideoViewPoint.points: array expected");n.points=[];for(let o=0;o>>3){case 1:{a.pvData=i.string();break}case 2:{a.imgXLen=i.int32();break}case 3:{a.imgYLen=i.int32();break}case 4:{a.imgXSize=i.int32();break}case 5:{a.imgYSize=i.int32();break}case 6:{a.image&&a.image.length||(a.image=[]),a.image.push(i.string());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.v1.VideoShot)return i;let n=new u.bilibili.mall.tab3.viewunite.v1.VideoShot;if(i.pvData!=null&&(n.pvData=String(i.pvData)),i.imgXLen!=null&&(n.imgXLen=i.imgXLen|0),i.imgYLen!=null&&(n.imgYLen=i.imgYLen|0),i.imgXSize!=null&&(n.imgXSize=i.imgXSize|0),i.imgYSize!=null&&(n.imgYSize=i.imgYSize|0),i.image){if(!Array.isArray(i.image))throw TypeError(".bilibili.mall.tab3.viewunite.v1.VideoShot.image: array expected");n.image=[];for(let o=0;o>>3){case 1:{a.type=i.int32();break}case 2:{a.from=i.int64();break}case 3:{a.to=i.int64();break}case 4:{a.content=i.string();break}case 5:{a.cover=i.string();break}case 6:{a.logoUrl=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.v1.VideoPoint)return i;let n=new u.bilibili.mall.tab3.viewunite.v1.VideoPoint;return i.type!=null&&(n.type=i.type|0),i.from!=null&&(r.Long?(n.from=r.Long.fromValue(i.from)).unsigned=!1:typeof i.from=="string"?n.from=parseInt(i.from,10):typeof i.from=="number"?n.from=i.from:typeof i.from=="object"&&(n.from=new r.LongBits(i.from.low>>>0,i.from.high>>>0).toNumber())),i.to!=null&&(r.Long?(n.to=r.Long.fromValue(i.to)).unsigned=!1:typeof i.to=="string"?n.to=parseInt(i.to,10):typeof i.to=="number"?n.to=i.to:typeof i.to=="object"&&(n.to=new r.LongBits(i.to.low>>>0,i.to.high>>>0).toNumber())),i.content!=null&&(n.content=String(i.content)),i.cover!=null&&(n.cover=String(i.cover)),i.logoUrl!=null&&(n.logoUrl=String(i.logoUrl)),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(o.type=0,r.Long){let a=new r.Long(0,0,!1);o.from=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.from=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.to=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.to=n.longs===String?"0":0;o.content="",o.cover="",o.logoUrl=""}return i.type!=null&&i.hasOwnProperty("type")&&(o.type=i.type),i.from!=null&&i.hasOwnProperty("from")&&(typeof i.from=="number"?o.from=n.longs===String?String(i.from):i.from:o.from=n.longs===String?r.Long.prototype.toString.call(i.from):n.longs===Number?new r.LongBits(i.from.low>>>0,i.from.high>>>0).toNumber():i.from),i.to!=null&&i.hasOwnProperty("to")&&(typeof i.to=="number"?o.to=n.longs===String?String(i.to):i.to:o.to=n.longs===String?r.Long.prototype.toString.call(i.to):n.longs===Number?new r.LongBits(i.to.low>>>0,i.to.high>>>0).toNumber():i.to),i.content!=null&&i.hasOwnProperty("content")&&(o.content=i.content),i.cover!=null&&i.hasOwnProperty("cover")&&(o.cover=i.cover),i.logoUrl!=null&&i.hasOwnProperty("logoUrl")&&(o.logoUrl=i.logoUrl),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.v1.VideoPoint"},l}(),e.Chronos=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.md5=i.string();break}case 2:{a.file=i.string();break}case 3:{a.sign=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.v1.Chronos)return i;let n=new u.bilibili.mall.tab3.viewunite.v1.Chronos;return i.md5!=null&&(n.md5=String(i.md5)),i.file!=null&&(n.file=String(i.file)),i.sign!=null&&(n.sign=String(i.sign)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.md5="",o.file="",o.sign=""),i.md5!=null&&i.hasOwnProperty("md5")&&(o.md5=i.md5),i.file!=null&&i.hasOwnProperty("file")&&(o.file=i.file),i.sign!=null&&i.hasOwnProperty("sign")&&(o.sign=i.sign),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.v1.Chronos"},l}(),e.VideoGuide=function(){function l(t){if(this.material=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.material&&a.material.length||(a.material=[]),a.material.push(u.bilibili.mall.tab3.viewunite.v1.Material.decode(i,i.uint32()));break}case 2:{a.videoPoint=u.bilibili.mall.tab3.viewunite.v1.VideoViewPoint.decode(i,i.uint32());break}case 3:{a.contractCard=u.bilibili.mall.tab3.viewunite.v1.ContractCard.decode(i,i.uint32());break}case 4:{a.rightMaterial=u.bilibili.mall.tab3.viewunite.v1.Material.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.v1.VideoGuide)return i;let n=new u.bilibili.mall.tab3.viewunite.v1.VideoGuide;if(i.material){if(!Array.isArray(i.material))throw TypeError(".bilibili.mall.tab3.viewunite.v1.VideoGuide.material: array expected");n.material=[];for(let o=0;o>>3){case 1:{a.showTime&&a.showTime.length||(a.showTime=[]),a.showTime.push(u.bilibili.mall.tab3.viewunite.v1.ShowTime.decode(i,i.uint32()));break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.v1.AttentionCard)return i;let n=new u.bilibili.mall.tab3.viewunite.v1.AttentionCard;if(i.showTime){if(!Array.isArray(i.showTime))throw TypeError(".bilibili.mall.tab3.viewunite.v1.AttentionCard.showTime: array expected");n.showTime=[];for(let o=0;o>>3){case 1:{a.displayProgress=i.float();break}case 2:{a.displayAccuracy=i.int64();break}case 3:{a.displayDuration=i.int64();break}case 4:{a.showMode=i.int32();break}case 5:{a.pageType=i.int32();break}case 6:{a.upper=u.bilibili.mall.tab3.viewunite.v1.UpperInfos.decode(i,i.uint32());break}case 7:{a.isFollowDisplay=i.int32();break}case 8:{a.text=u.bilibili.mall.tab3.viewunite.v1.ContractText.decode(i,i.uint32());break}case 9:{a.followDisplayEndDuration=i.int64();break}case 10:{a.isPlayDisplay=i.int32();break}case 11:{a.isInteractDisplay=i.int32();break}case 12:{a.playDisplaySwitch=i.bool();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.v1.ContractCard)return i;let n=new u.bilibili.mall.tab3.viewunite.v1.ContractCard;if(i.displayProgress!=null&&(n.displayProgress=Number(i.displayProgress)),i.displayAccuracy!=null&&(r.Long?(n.displayAccuracy=r.Long.fromValue(i.displayAccuracy)).unsigned=!1:typeof i.displayAccuracy=="string"?n.displayAccuracy=parseInt(i.displayAccuracy,10):typeof i.displayAccuracy=="number"?n.displayAccuracy=i.displayAccuracy:typeof i.displayAccuracy=="object"&&(n.displayAccuracy=new r.LongBits(i.displayAccuracy.low>>>0,i.displayAccuracy.high>>>0).toNumber())),i.displayDuration!=null&&(r.Long?(n.displayDuration=r.Long.fromValue(i.displayDuration)).unsigned=!1:typeof i.displayDuration=="string"?n.displayDuration=parseInt(i.displayDuration,10):typeof i.displayDuration=="number"?n.displayDuration=i.displayDuration:typeof i.displayDuration=="object"&&(n.displayDuration=new r.LongBits(i.displayDuration.low>>>0,i.displayDuration.high>>>0).toNumber())),i.showMode!=null&&(n.showMode=i.showMode|0),i.pageType!=null&&(n.pageType=i.pageType|0),i.upper!=null){if(typeof i.upper!="object")throw TypeError(".bilibili.mall.tab3.viewunite.v1.ContractCard.upper: object expected");n.upper=u.bilibili.mall.tab3.viewunite.v1.UpperInfos.fromObject(i.upper)}if(i.isFollowDisplay!=null&&(n.isFollowDisplay=i.isFollowDisplay|0),i.text!=null){if(typeof i.text!="object")throw TypeError(".bilibili.mall.tab3.viewunite.v1.ContractCard.text: object expected");n.text=u.bilibili.mall.tab3.viewunite.v1.ContractText.fromObject(i.text)}return i.followDisplayEndDuration!=null&&(r.Long?(n.followDisplayEndDuration=r.Long.fromValue(i.followDisplayEndDuration)).unsigned=!1:typeof i.followDisplayEndDuration=="string"?n.followDisplayEndDuration=parseInt(i.followDisplayEndDuration,10):typeof i.followDisplayEndDuration=="number"?n.followDisplayEndDuration=i.followDisplayEndDuration:typeof i.followDisplayEndDuration=="object"&&(n.followDisplayEndDuration=new r.LongBits(i.followDisplayEndDuration.low>>>0,i.followDisplayEndDuration.high>>>0).toNumber())),i.isPlayDisplay!=null&&(n.isPlayDisplay=i.isPlayDisplay|0),i.isInteractDisplay!=null&&(n.isInteractDisplay=i.isInteractDisplay|0),i.playDisplaySwitch!=null&&(n.playDisplaySwitch=!!i.playDisplaySwitch),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(o.displayProgress=0,r.Long){let a=new r.Long(0,0,!1);o.displayAccuracy=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.displayAccuracy=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.displayDuration=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.displayDuration=n.longs===String?"0":0;if(o.showMode=0,o.pageType=0,o.upper=null,o.isFollowDisplay=0,o.text=null,r.Long){let a=new r.Long(0,0,!1);o.followDisplayEndDuration=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.followDisplayEndDuration=n.longs===String?"0":0;o.isPlayDisplay=0,o.isInteractDisplay=0,o.playDisplaySwitch=!1}return i.displayProgress!=null&&i.hasOwnProperty("displayProgress")&&(o.displayProgress=n.json&&!isFinite(i.displayProgress)?String(i.displayProgress):i.displayProgress),i.displayAccuracy!=null&&i.hasOwnProperty("displayAccuracy")&&(typeof i.displayAccuracy=="number"?o.displayAccuracy=n.longs===String?String(i.displayAccuracy):i.displayAccuracy:o.displayAccuracy=n.longs===String?r.Long.prototype.toString.call(i.displayAccuracy):n.longs===Number?new r.LongBits(i.displayAccuracy.low>>>0,i.displayAccuracy.high>>>0).toNumber():i.displayAccuracy),i.displayDuration!=null&&i.hasOwnProperty("displayDuration")&&(typeof i.displayDuration=="number"?o.displayDuration=n.longs===String?String(i.displayDuration):i.displayDuration:o.displayDuration=n.longs===String?r.Long.prototype.toString.call(i.displayDuration):n.longs===Number?new r.LongBits(i.displayDuration.low>>>0,i.displayDuration.high>>>0).toNumber():i.displayDuration),i.showMode!=null&&i.hasOwnProperty("showMode")&&(o.showMode=i.showMode),i.pageType!=null&&i.hasOwnProperty("pageType")&&(o.pageType=i.pageType),i.upper!=null&&i.hasOwnProperty("upper")&&(o.upper=u.bilibili.mall.tab3.viewunite.v1.UpperInfos.toObject(i.upper,n)),i.isFollowDisplay!=null&&i.hasOwnProperty("isFollowDisplay")&&(o.isFollowDisplay=i.isFollowDisplay),i.text!=null&&i.hasOwnProperty("text")&&(o.text=u.bilibili.mall.tab3.viewunite.v1.ContractText.toObject(i.text,n)),i.followDisplayEndDuration!=null&&i.hasOwnProperty("followDisplayEndDuration")&&(typeof i.followDisplayEndDuration=="number"?o.followDisplayEndDuration=n.longs===String?String(i.followDisplayEndDuration):i.followDisplayEndDuration:o.followDisplayEndDuration=n.longs===String?r.Long.prototype.toString.call(i.followDisplayEndDuration):n.longs===Number?new r.LongBits(i.followDisplayEndDuration.low>>>0,i.followDisplayEndDuration.high>>>0).toNumber():i.followDisplayEndDuration),i.isPlayDisplay!=null&&i.hasOwnProperty("isPlayDisplay")&&(o.isPlayDisplay=i.isPlayDisplay),i.isInteractDisplay!=null&&i.hasOwnProperty("isInteractDisplay")&&(o.isInteractDisplay=i.isInteractDisplay),i.playDisplaySwitch!=null&&i.hasOwnProperty("playDisplaySwitch")&&(o.playDisplaySwitch=i.playDisplaySwitch),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.v1.ContractCard"},l}(),e.ContractText=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.title=i.string();break}case 2:{a.subtitle=i.string();break}case 3:{a.inlineTitle=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.v1.ContractText)return i;let n=new u.bilibili.mall.tab3.viewunite.v1.ContractText;return i.title!=null&&(n.title=String(i.title)),i.subtitle!=null&&(n.subtitle=String(i.subtitle)),i.inlineTitle!=null&&(n.inlineTitle=String(i.inlineTitle)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.title="",o.subtitle="",o.inlineTitle=""),i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.subtitle!=null&&i.hasOwnProperty("subtitle")&&(o.subtitle=i.subtitle),i.inlineTitle!=null&&i.hasOwnProperty("inlineTitle")&&(o.inlineTitle=i.inlineTitle),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.v1.ContractText"},l}(),e.UpperInfos=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.fansCount=i.int64();break}case 2:{a.arcCountLastHalfYear=i.int64();break}case 3:{a.firstUpDates=i.int64();break}case 4:{a.totalPlayCount=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.v1.UpperInfos)return i;let n=new u.bilibili.mall.tab3.viewunite.v1.UpperInfos;return i.fansCount!=null&&(r.Long?(n.fansCount=r.Long.fromValue(i.fansCount)).unsigned=!1:typeof i.fansCount=="string"?n.fansCount=parseInt(i.fansCount,10):typeof i.fansCount=="number"?n.fansCount=i.fansCount:typeof i.fansCount=="object"&&(n.fansCount=new r.LongBits(i.fansCount.low>>>0,i.fansCount.high>>>0).toNumber())),i.arcCountLastHalfYear!=null&&(r.Long?(n.arcCountLastHalfYear=r.Long.fromValue(i.arcCountLastHalfYear)).unsigned=!1:typeof i.arcCountLastHalfYear=="string"?n.arcCountLastHalfYear=parseInt(i.arcCountLastHalfYear,10):typeof i.arcCountLastHalfYear=="number"?n.arcCountLastHalfYear=i.arcCountLastHalfYear:typeof i.arcCountLastHalfYear=="object"&&(n.arcCountLastHalfYear=new r.LongBits(i.arcCountLastHalfYear.low>>>0,i.arcCountLastHalfYear.high>>>0).toNumber())),i.firstUpDates!=null&&(r.Long?(n.firstUpDates=r.Long.fromValue(i.firstUpDates)).unsigned=!1:typeof i.firstUpDates=="string"?n.firstUpDates=parseInt(i.firstUpDates,10):typeof i.firstUpDates=="number"?n.firstUpDates=i.firstUpDates:typeof i.firstUpDates=="object"&&(n.firstUpDates=new r.LongBits(i.firstUpDates.low>>>0,i.firstUpDates.high>>>0).toNumber())),i.totalPlayCount!=null&&(r.Long?(n.totalPlayCount=r.Long.fromValue(i.totalPlayCount)).unsigned=!1:typeof i.totalPlayCount=="string"?n.totalPlayCount=parseInt(i.totalPlayCount,10):typeof i.totalPlayCount=="number"?n.totalPlayCount=i.totalPlayCount:typeof i.totalPlayCount=="object"&&(n.totalPlayCount=new r.LongBits(i.totalPlayCount.low>>>0,i.totalPlayCount.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.fansCount=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.fansCount=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.arcCountLastHalfYear=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.arcCountLastHalfYear=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.firstUpDates=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.firstUpDates=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.totalPlayCount=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.totalPlayCount=n.longs===String?"0":0}return i.fansCount!=null&&i.hasOwnProperty("fansCount")&&(typeof i.fansCount=="number"?o.fansCount=n.longs===String?String(i.fansCount):i.fansCount:o.fansCount=n.longs===String?r.Long.prototype.toString.call(i.fansCount):n.longs===Number?new r.LongBits(i.fansCount.low>>>0,i.fansCount.high>>>0).toNumber():i.fansCount),i.arcCountLastHalfYear!=null&&i.hasOwnProperty("arcCountLastHalfYear")&&(typeof i.arcCountLastHalfYear=="number"?o.arcCountLastHalfYear=n.longs===String?String(i.arcCountLastHalfYear):i.arcCountLastHalfYear:o.arcCountLastHalfYear=n.longs===String?r.Long.prototype.toString.call(i.arcCountLastHalfYear):n.longs===Number?new r.LongBits(i.arcCountLastHalfYear.low>>>0,i.arcCountLastHalfYear.high>>>0).toNumber():i.arcCountLastHalfYear),i.firstUpDates!=null&&i.hasOwnProperty("firstUpDates")&&(typeof i.firstUpDates=="number"?o.firstUpDates=n.longs===String?String(i.firstUpDates):i.firstUpDates:o.firstUpDates=n.longs===String?r.Long.prototype.toString.call(i.firstUpDates):n.longs===Number?new r.LongBits(i.firstUpDates.low>>>0,i.firstUpDates.high>>>0).toNumber():i.firstUpDates),i.totalPlayCount!=null&&i.hasOwnProperty("totalPlayCount")&&(typeof i.totalPlayCount=="number"?o.totalPlayCount=n.longs===String?String(i.totalPlayCount):i.totalPlayCount:o.totalPlayCount=n.longs===String?r.Long.prototype.toString.call(i.totalPlayCount):n.longs===Number?new r.LongBits(i.totalPlayCount.low>>>0,i.totalPlayCount.high>>>0).toNumber():i.totalPlayCount),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.v1.UpperInfos"},l}(),e.CommandDm=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.id=i.int64();break}case 2:{a.oid=i.int64();break}case 3:{a.mid=i.int64();break}case 4:{a.command=i.string();break}case 5:{a.content=i.string();break}case 6:{a.progress=i.int32();break}case 7:{a.ctime=i.string();break}case 8:{a.mtime=i.string();break}case 9:{a.extra=i.string();break}case 10:{a.idStr=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.v1.CommandDm)return i;let n=new u.bilibili.mall.tab3.viewunite.v1.CommandDm;return i.id!=null&&(r.Long?(n.id=r.Long.fromValue(i.id)).unsigned=!1:typeof i.id=="string"?n.id=parseInt(i.id,10):typeof i.id=="number"?n.id=i.id:typeof i.id=="object"&&(n.id=new r.LongBits(i.id.low>>>0,i.id.high>>>0).toNumber())),i.oid!=null&&(r.Long?(n.oid=r.Long.fromValue(i.oid)).unsigned=!1:typeof i.oid=="string"?n.oid=parseInt(i.oid,10):typeof i.oid=="number"?n.oid=i.oid:typeof i.oid=="object"&&(n.oid=new r.LongBits(i.oid.low>>>0,i.oid.high>>>0).toNumber())),i.mid!=null&&(r.Long?(n.mid=r.Long.fromValue(i.mid)).unsigned=!1:typeof i.mid=="string"?n.mid=parseInt(i.mid,10):typeof i.mid=="number"?n.mid=i.mid:typeof i.mid=="object"&&(n.mid=new r.LongBits(i.mid.low>>>0,i.mid.high>>>0).toNumber())),i.command!=null&&(n.command=String(i.command)),i.content!=null&&(n.content=String(i.content)),i.progress!=null&&(n.progress=i.progress|0),i.ctime!=null&&(n.ctime=String(i.ctime)),i.mtime!=null&&(n.mtime=String(i.mtime)),i.extra!=null&&(n.extra=String(i.extra)),i.idStr!=null&&(n.idStr=String(i.idStr)),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.id=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.id=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.oid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.oid=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.mid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.mid=n.longs===String?"0":0;o.command="",o.content="",o.progress=0,o.ctime="",o.mtime="",o.extra="",o.idStr=""}return i.id!=null&&i.hasOwnProperty("id")&&(typeof i.id=="number"?o.id=n.longs===String?String(i.id):i.id:o.id=n.longs===String?r.Long.prototype.toString.call(i.id):n.longs===Number?new r.LongBits(i.id.low>>>0,i.id.high>>>0).toNumber():i.id),i.oid!=null&&i.hasOwnProperty("oid")&&(typeof i.oid=="number"?o.oid=n.longs===String?String(i.oid):i.oid:o.oid=n.longs===String?r.Long.prototype.toString.call(i.oid):n.longs===Number?new r.LongBits(i.oid.low>>>0,i.oid.high>>>0).toNumber():i.oid),i.mid!=null&&i.hasOwnProperty("mid")&&(typeof i.mid=="number"?o.mid=n.longs===String?String(i.mid):i.mid:o.mid=n.longs===String?r.Long.prototype.toString.call(i.mid):n.longs===Number?new r.LongBits(i.mid.low>>>0,i.mid.high>>>0).toNumber():i.mid),i.command!=null&&i.hasOwnProperty("command")&&(o.command=i.command),i.content!=null&&i.hasOwnProperty("content")&&(o.content=i.content),i.progress!=null&&i.hasOwnProperty("progress")&&(o.progress=i.progress),i.ctime!=null&&i.hasOwnProperty("ctime")&&(o.ctime=i.ctime),i.mtime!=null&&i.hasOwnProperty("mtime")&&(o.mtime=i.mtime),i.extra!=null&&i.hasOwnProperty("extra")&&(o.extra=i.extra),i.idStr!=null&&i.hasOwnProperty("idStr")&&(o.idStr=i.idStr),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.v1.CommandDm"},l}(),e.ShowTime=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.startTime=i.int32();break}case 2:{a.endTime=i.int32();break}case 3:{a.posX=i.double();break}case 4:{a.posY=i.double();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.v1.ShowTime)return i;let n=new u.bilibili.mall.tab3.viewunite.v1.ShowTime;return i.startTime!=null&&(n.startTime=i.startTime|0),i.endTime!=null&&(n.endTime=i.endTime|0),i.posX!=null&&(n.posX=Number(i.posX)),i.posY!=null&&(n.posY=Number(i.posY)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.startTime=0,o.endTime=0,o.posX=0,o.posY=0),i.startTime!=null&&i.hasOwnProperty("startTime")&&(o.startTime=i.startTime),i.endTime!=null&&i.hasOwnProperty("endTime")&&(o.endTime=i.endTime),i.posX!=null&&i.hasOwnProperty("posX")&&(o.posX=n.json&&!isFinite(i.posX)?String(i.posX):i.posX),i.posY!=null&&i.hasOwnProperty("posY")&&(o.posY=n.json&&!isFinite(i.posY)?String(i.posY):i.posY),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.v1.ShowTime"},l}(),e.PointMaterial=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.url=i.string();break}case 2:{a.materialSource=i.int32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.v1.PointMaterial)return i;let n=new u.bilibili.mall.tab3.viewunite.v1.PointMaterial;switch(i.url!=null&&(n.url=String(i.url)),i.materialSource){default:if(typeof i.materialSource=="number"){n.materialSource=i.materialSource;break}break;case"DEFAULT":case 0:n.materialSource=0;break;case"BIJIAN":case 1:n.materialSource=1;break}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.url="",o.materialSource=n.enums===String?"DEFAULT":0),i.url!=null&&i.hasOwnProperty("url")&&(o.url=i.url),i.materialSource!=null&&i.hasOwnProperty("materialSource")&&(o.materialSource=n.enums===String?u.bilibili.mall.tab3.viewunite.v1.MaterialSource[i.materialSource]===void 0?i.materialSource:u.bilibili.mall.tab3.viewunite.v1.MaterialSource[i.materialSource]:i.materialSource),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.v1.PointMaterial"},l}(),e.Material=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.icon=i.string();break}case 2:{a.text=i.string();break}case 3:{a.url=i.string();break}case 4:{a.type=i.int32();break}case 5:{a.param=i.string();break}case 6:{a.staticIcon=i.string();break}case 7:{a.bgColor=i.string();break}case 8:{a.bgPic=i.string();break}case 9:{a.jumpType=i.int32();break}case 10:{a.pageType=i.int32();break}case 11:{a.needLogin=i.bool();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.mall.tab3.viewunite.v1.Material)return i;let n=new u.bilibili.mall.tab3.viewunite.v1.Material;switch(i.icon!=null&&(n.icon=String(i.icon)),i.text!=null&&(n.text=String(i.text)),i.url!=null&&(n.url=String(i.url)),i.type){default:if(typeof i.type=="number"){n.type=i.type;break}break;case"NONE":case 0:n.type=0;break;case"ACTIVITY":case 1:n.type=1;break;case"BGM":case 2:n.type=2;break;case"EFFECT":case 3:n.type=3;break;case"SHOOT_SAME":case 4:n.type=4;break;case"SHOOT_TOGETHER":case 5:n.type=5;break;case"ACTIVITY_ICON":case 6:n.type=6;break;case"NEW_BGM":case 7:n.type=7;break}switch(i.param!=null&&(n.param=String(i.param)),i.staticIcon!=null&&(n.staticIcon=String(i.staticIcon)),i.bgColor!=null&&(n.bgColor=String(i.bgColor)),i.bgPic!=null&&(n.bgPic=String(i.bgPic)),i.jumpType!=null&&(n.jumpType=i.jumpType|0),i.pageType){default:if(typeof i.pageType=="number"){n.pageType=i.pageType;break}break;case"H5":case 0:n.pageType=0;break;case"NA":case 1:n.pageType=1;break}return i.needLogin!=null&&(n.needLogin=!!i.needLogin),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.icon="",o.text="",o.url="",o.type=n.enums===String?"NONE":0,o.param="",o.staticIcon="",o.bgColor="",o.bgPic="",o.jumpType=0,o.pageType=n.enums===String?"H5":0,o.needLogin=!1),i.icon!=null&&i.hasOwnProperty("icon")&&(o.icon=i.icon),i.text!=null&&i.hasOwnProperty("text")&&(o.text=i.text),i.url!=null&&i.hasOwnProperty("url")&&(o.url=i.url),i.type!=null&&i.hasOwnProperty("type")&&(o.type=n.enums===String?u.bilibili.mall.tab3.viewunite.v1.MaterialBizType[i.type]===void 0?i.type:u.bilibili.mall.tab3.viewunite.v1.MaterialBizType[i.type]:i.type),i.param!=null&&i.hasOwnProperty("param")&&(o.param=i.param),i.staticIcon!=null&&i.hasOwnProperty("staticIcon")&&(o.staticIcon=i.staticIcon),i.bgColor!=null&&i.hasOwnProperty("bgColor")&&(o.bgColor=i.bgColor),i.bgPic!=null&&i.hasOwnProperty("bgPic")&&(o.bgPic=i.bgPic),i.jumpType!=null&&i.hasOwnProperty("jumpType")&&(o.jumpType=i.jumpType),i.pageType!=null&&i.hasOwnProperty("pageType")&&(o.pageType=n.enums===String?u.bilibili.mall.tab3.viewunite.v1.PageType[i.pageType]===void 0?i.pageType:u.bilibili.mall.tab3.viewunite.v1.PageType[i.pageType]:i.pageType),i.needLogin!=null&&i.hasOwnProperty("needLogin")&&(o.needLogin=i.needLogin),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.mall.tab3.viewunite.v1.Material"},l}(),e.PageType=function(){let l={},t=Object.create(l);return t[l[0]="H5"]=0,t[l[1]="NA"]=1,t}(),e.UnionType=function(){let l={},t=Object.create(l);return t[l[0]="UGC"]=0,t[l[1]="OGV"]=1,t}(),e.MaterialSource=function(){let l={},t=Object.create(l);return t[l[0]="DEFAULT"]=0,t[l[1]="BIJIAN"]=1,t}(),e.MaterialBizType=function(){let l={},t=Object.create(l);return t[l[0]="NONE"]=0,t[l[1]="ACTIVITY"]=1,t[l[2]="BGM"]=2,t[l[3]="EFFECT"]=3,t[l[4]="SHOOT_SAME"]=4,t[l[5]="SHOOT_TOGETHER"]=5,t[l[6]="ACTIVITY_ICON"]=6,t[l[7]="NEW_BGM"]=7,t}(),e}(),c}(),p}(),d}(),O.metadata=function(){let d={};return d.device=function(){let p={};return p.Device=function(){function c(e){if(e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.appId=l.int32();break}case 2:{n.build=l.int32();break}case 3:{n.buvid=l.string();break}case 4:{n.mobiApp=l.string();break}case 5:{n.platform=l.string();break}case 6:{n.device=l.string();break}case 7:{n.channel=l.string();break}case 8:{n.brand=l.string();break}case 9:{n.model=l.string();break}case 10:{n.osver=l.string();break}case 11:{n.fpLocal=l.string();break}case 12:{n.fpRemote=l.string();break}case 13:{n.versionName=l.string();break}case 14:{n.fp=l.string();break}case 15:{n.fts=l.int64();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.metadata.device.Device)return l;let t=new u.bilibili.metadata.device.Device;return l.appId!=null&&(t.appId=l.appId|0),l.build!=null&&(t.build=l.build|0),l.buvid!=null&&(t.buvid=String(l.buvid)),l.mobiApp!=null&&(t.mobiApp=String(l.mobiApp)),l.platform!=null&&(t.platform=String(l.platform)),l.device!=null&&(t.device=String(l.device)),l.channel!=null&&(t.channel=String(l.channel)),l.brand!=null&&(t.brand=String(l.brand)),l.model!=null&&(t.model=String(l.model)),l.osver!=null&&(t.osver=String(l.osver)),l.fpLocal!=null&&(t.fpLocal=String(l.fpLocal)),l.fpRemote!=null&&(t.fpRemote=String(l.fpRemote)),l.versionName!=null&&(t.versionName=String(l.versionName)),l.fp!=null&&(t.fp=String(l.fp)),l.fts!=null&&(r.Long?(t.fts=r.Long.fromValue(l.fts)).unsigned=!1:typeof l.fts=="string"?t.fts=parseInt(l.fts,10):typeof l.fts=="number"?t.fts=l.fts:typeof l.fts=="object"&&(t.fts=new r.LongBits(l.fts.low>>>0,l.fts.high>>>0).toNumber())),t},c.toObject=function(l,t){t||(t={});let i={};if(t.defaults)if(i.appId=0,i.build=0,i.buvid="",i.mobiApp="",i.platform="",i.device="",i.channel="",i.brand="",i.model="",i.osver="",i.fpLocal="",i.fpRemote="",i.versionName="",i.fp="",r.Long){let n=new r.Long(0,0,!1);i.fts=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.fts=t.longs===String?"0":0;return l.appId!=null&&l.hasOwnProperty("appId")&&(i.appId=l.appId),l.build!=null&&l.hasOwnProperty("build")&&(i.build=l.build),l.buvid!=null&&l.hasOwnProperty("buvid")&&(i.buvid=l.buvid),l.mobiApp!=null&&l.hasOwnProperty("mobiApp")&&(i.mobiApp=l.mobiApp),l.platform!=null&&l.hasOwnProperty("platform")&&(i.platform=l.platform),l.device!=null&&l.hasOwnProperty("device")&&(i.device=l.device),l.channel!=null&&l.hasOwnProperty("channel")&&(i.channel=l.channel),l.brand!=null&&l.hasOwnProperty("brand")&&(i.brand=l.brand),l.model!=null&&l.hasOwnProperty("model")&&(i.model=l.model),l.osver!=null&&l.hasOwnProperty("osver")&&(i.osver=l.osver),l.fpLocal!=null&&l.hasOwnProperty("fpLocal")&&(i.fpLocal=l.fpLocal),l.fpRemote!=null&&l.hasOwnProperty("fpRemote")&&(i.fpRemote=l.fpRemote),l.versionName!=null&&l.hasOwnProperty("versionName")&&(i.versionName=l.versionName),l.fp!=null&&l.hasOwnProperty("fp")&&(i.fp=l.fp),l.fts!=null&&l.hasOwnProperty("fts")&&(typeof l.fts=="number"?i.fts=t.longs===String?String(l.fts):l.fts:i.fts=t.longs===String?r.Long.prototype.toString.call(l.fts):t.longs===Number?new r.LongBits(l.fts.low>>>0,l.fts.high>>>0).toNumber():l.fts),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.metadata.device.Device"},c}(),p}(),d.fawkes=function(){let p={};return p.FawkesReq=function(){function c(e){if(e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.appkey=l.string();break}case 2:{n.env=l.string();break}case 3:{n.sessionId=l.string();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.metadata.fawkes.FawkesReq)return l;let t=new u.bilibili.metadata.fawkes.FawkesReq;return l.appkey!=null&&(t.appkey=String(l.appkey)),l.env!=null&&(t.env=String(l.env)),l.sessionId!=null&&(t.sessionId=String(l.sessionId)),t},c.toObject=function(l,t){t||(t={});let i={};return t.defaults&&(i.appkey="",i.env="",i.sessionId=""),l.appkey!=null&&l.hasOwnProperty("appkey")&&(i.appkey=l.appkey),l.env!=null&&l.hasOwnProperty("env")&&(i.env=l.env),l.sessionId!=null&&l.hasOwnProperty("sessionId")&&(i.sessionId=l.sessionId),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.metadata.fawkes.FawkesReq"},c}(),p.FawkesReply=function(){function c(e){if(e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.config=l.string();break}case 2:{n.ff=l.string();break}case 3:{n.dd=l.string();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.metadata.fawkes.FawkesReply)return l;let t=new u.bilibili.metadata.fawkes.FawkesReply;return l.config!=null&&(t.config=String(l.config)),l.ff!=null&&(t.ff=String(l.ff)),l.dd!=null&&(t.dd=String(l.dd)),t},c.toObject=function(l,t){t||(t={});let i={};return t.defaults&&(i.config="",i.ff="",i.dd=""),l.config!=null&&l.hasOwnProperty("config")&&(i.config=l.config),l.ff!=null&&l.hasOwnProperty("ff")&&(i.ff=l.ff),l.dd!=null&&l.hasOwnProperty("dd")&&(i.dd=l.dd),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.metadata.fawkes.FawkesReply"},c}(),p}(),d.locale=function(){let p={};return p.LocaleIds=function(){function c(e){if(e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.language=l.string();break}case 2:{n.script=l.string();break}case 3:{n.region=l.string();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.metadata.locale.LocaleIds)return l;let t=new u.bilibili.metadata.locale.LocaleIds;return l.language!=null&&(t.language=String(l.language)),l.script!=null&&(t.script=String(l.script)),l.region!=null&&(t.region=String(l.region)),t},c.toObject=function(l,t){t||(t={});let i={};return t.defaults&&(i.language="",i.script="",i.region=""),l.language!=null&&l.hasOwnProperty("language")&&(i.language=l.language),l.script!=null&&l.hasOwnProperty("script")&&(i.script=l.script),l.region!=null&&l.hasOwnProperty("region")&&(i.region=l.region),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.metadata.locale.LocaleIds"},c}(),p.Locale=function(){function c(e){if(e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.cLocale=u.bilibili.metadata.locale.LocaleIds.decode(l,l.uint32());break}case 2:{n.sLocale=u.bilibili.metadata.locale.LocaleIds.decode(l,l.uint32());break}case 3:{n.simCode=l.string();break}case 4:{n.timezone=l.string();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.metadata.locale.Locale)return l;let t=new u.bilibili.metadata.locale.Locale;if(l.cLocale!=null){if(typeof l.cLocale!="object")throw TypeError(".bilibili.metadata.locale.Locale.cLocale: object expected");t.cLocale=u.bilibili.metadata.locale.LocaleIds.fromObject(l.cLocale)}if(l.sLocale!=null){if(typeof l.sLocale!="object")throw TypeError(".bilibili.metadata.locale.Locale.sLocale: object expected");t.sLocale=u.bilibili.metadata.locale.LocaleIds.fromObject(l.sLocale)}return l.simCode!=null&&(t.simCode=String(l.simCode)),l.timezone!=null&&(t.timezone=String(l.timezone)),t},c.toObject=function(l,t){t||(t={});let i={};return t.defaults&&(i.cLocale=null,i.sLocale=null,i.simCode="",i.timezone=""),l.cLocale!=null&&l.hasOwnProperty("cLocale")&&(i.cLocale=u.bilibili.metadata.locale.LocaleIds.toObject(l.cLocale,t)),l.sLocale!=null&&l.hasOwnProperty("sLocale")&&(i.sLocale=u.bilibili.metadata.locale.LocaleIds.toObject(l.sLocale,t)),l.simCode!=null&&l.hasOwnProperty("simCode")&&(i.simCode=l.simCode),l.timezone!=null&&l.hasOwnProperty("timezone")&&(i.timezone=l.timezone),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.metadata.locale.Locale"},c}(),p}(),d.Metadata=function(){function p(c){if(c)for(let e=Object.keys(c),l=0;l>>3){case 1:{i.accessKey=e.string();break}case 2:{i.mobiApp=e.string();break}case 3:{i.device=e.string();break}case 4:{i.build=e.int32();break}case 5:{i.channel=e.string();break}case 6:{i.buvid=e.string();break}case 7:{i.platform=e.string();break}default:e.skipType(n&7);break}}return i},p.fromObject=function(e){if(e instanceof u.bilibili.metadata.Metadata)return e;let l=new u.bilibili.metadata.Metadata;return e.accessKey!=null&&(l.accessKey=String(e.accessKey)),e.mobiApp!=null&&(l.mobiApp=String(e.mobiApp)),e.device!=null&&(l.device=String(e.device)),e.build!=null&&(l.build=e.build|0),e.channel!=null&&(l.channel=String(e.channel)),e.buvid!=null&&(l.buvid=String(e.buvid)),e.platform!=null&&(l.platform=String(e.platform)),l},p.toObject=function(e,l){l||(l={});let t={};return l.defaults&&(t.accessKey="",t.mobiApp="",t.device="",t.build=0,t.channel="",t.buvid="",t.platform=""),e.accessKey!=null&&e.hasOwnProperty("accessKey")&&(t.accessKey=e.accessKey),e.mobiApp!=null&&e.hasOwnProperty("mobiApp")&&(t.mobiApp=e.mobiApp),e.device!=null&&e.hasOwnProperty("device")&&(t.device=e.device),e.build!=null&&e.hasOwnProperty("build")&&(t.build=e.build),e.channel!=null&&e.hasOwnProperty("channel")&&(t.channel=e.channel),e.buvid!=null&&e.hasOwnProperty("buvid")&&(t.buvid=e.buvid),e.platform!=null&&e.hasOwnProperty("platform")&&(t.platform=e.platform),t},p.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},p.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/bilibili.metadata.Metadata"},p}(),d.network=function(){let p={};return p.NetworkType=function(){let c={},e=Object.create(c);return e[c[0]="NT_UNKNOWN"]=0,e[c[1]="WIFI"]=1,e[c[2]="CELLULAR"]=2,e[c[3]="OFFLINE"]=3,e[c[4]="OTHERNET"]=4,e[c[5]="ETHERNET"]=5,e}(),p.TFType=function(){let c={},e=Object.create(c);return e[c[0]="TF_UNKNOWN"]=0,e[c[1]="U_CARD"]=1,e[c[2]="U_PKG"]=2,e[c[3]="C_CARD"]=3,e[c[4]="C_PKG"]=4,e[c[5]="T_CARD"]=5,e[c[6]="T_PKG"]=6,e}(),p.Network=function(){function c(e){if(e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.type=l.int32();break}case 2:{n.tf=l.int32();break}case 3:{n.oid=l.string();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.metadata.network.Network)return l;let t=new u.bilibili.metadata.network.Network;switch(l.type){default:if(typeof l.type=="number"){t.type=l.type;break}break;case"NT_UNKNOWN":case 0:t.type=0;break;case"WIFI":case 1:t.type=1;break;case"CELLULAR":case 2:t.type=2;break;case"OFFLINE":case 3:t.type=3;break;case"OTHERNET":case 4:t.type=4;break;case"ETHERNET":case 5:t.type=5;break}switch(l.tf){default:if(typeof l.tf=="number"){t.tf=l.tf;break}break;case"TF_UNKNOWN":case 0:t.tf=0;break;case"U_CARD":case 1:t.tf=1;break;case"U_PKG":case 2:t.tf=2;break;case"C_CARD":case 3:t.tf=3;break;case"C_PKG":case 4:t.tf=4;break;case"T_CARD":case 5:t.tf=5;break;case"T_PKG":case 6:t.tf=6;break}return l.oid!=null&&(t.oid=String(l.oid)),t},c.toObject=function(l,t){t||(t={});let i={};return t.defaults&&(i.type=t.enums===String?"NT_UNKNOWN":0,i.tf=t.enums===String?"TF_UNKNOWN":0,i.oid=""),l.type!=null&&l.hasOwnProperty("type")&&(i.type=t.enums===String?u.bilibili.metadata.network.NetworkType[l.type]===void 0?l.type:u.bilibili.metadata.network.NetworkType[l.type]:l.type),l.tf!=null&&l.hasOwnProperty("tf")&&(i.tf=t.enums===String?u.bilibili.metadata.network.TFType[l.tf]===void 0?l.tf:u.bilibili.metadata.network.TFType[l.tf]:l.tf),l.oid!=null&&l.hasOwnProperty("oid")&&(i.oid=l.oid),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.metadata.network.Network"},c}(),p}(),d.parabox=function(){let p={};return p.Exps=function(){function c(e){if(this.exps=[],e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.exps&&n.exps.length||(n.exps=[]),n.exps.push(u.bilibili.metadata.parabox.Exp.decode(l,l.uint32()));break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.metadata.parabox.Exps)return l;let t=new u.bilibili.metadata.parabox.Exps;if(l.exps){if(!Array.isArray(l.exps))throw TypeError(".bilibili.metadata.parabox.Exps.exps: array expected");t.exps=[];for(let i=0;i>>3){case 1:{n.id=l.int64();break}case 2:{n.bucket=l.int32();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.metadata.parabox.Exp)return l;let t=new u.bilibili.metadata.parabox.Exp;return l.id!=null&&(r.Long?(t.id=r.Long.fromValue(l.id)).unsigned=!1:typeof l.id=="string"?t.id=parseInt(l.id,10):typeof l.id=="number"?t.id=l.id:typeof l.id=="object"&&(t.id=new r.LongBits(l.id.low>>>0,l.id.high>>>0).toNumber())),l.bucket!=null&&(t.bucket=l.bucket|0),t},c.toObject=function(l,t){t||(t={});let i={};if(t.defaults){if(r.Long){let n=new r.Long(0,0,!1);i.id=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.id=t.longs===String?"0":0;i.bucket=0}return l.id!=null&&l.hasOwnProperty("id")&&(typeof l.id=="number"?i.id=t.longs===String?String(l.id):l.id:i.id=t.longs===String?r.Long.prototype.toString.call(l.id):t.longs===Number?new r.LongBits(l.id.low>>>0,l.id.high>>>0).toNumber():l.id),l.bucket!=null&&l.hasOwnProperty("bucket")&&(i.bucket=l.bucket),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.metadata.parabox.Exp"},c}(),p}(),d.restriction=function(){let p={};return p.ModeType=function(){let c={},e=Object.create(c);return e[c[0]="NORMAL"]=0,e[c[1]="TEENAGERS"]=1,e[c[2]="LESSONS"]=2,e[c[3]="BASIC"]=3,e}(),p.Restriction=function(){function c(e){if(e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.teenagersMode=l.bool();break}case 2:{n.lessonsMode=l.bool();break}case 3:{n.mode=l.int32();break}case 4:{n.review=l.bool();break}case 5:{n.disableRcmd=l.bool();break}case 6:{n.basicMode=l.bool();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.metadata.restriction.Restriction)return l;let t=new u.bilibili.metadata.restriction.Restriction;switch(l.teenagersMode!=null&&(t.teenagersMode=!!l.teenagersMode),l.lessonsMode!=null&&(t.lessonsMode=!!l.lessonsMode),l.mode){default:if(typeof l.mode=="number"){t.mode=l.mode;break}break;case"NORMAL":case 0:t.mode=0;break;case"TEENAGERS":case 1:t.mode=1;break;case"LESSONS":case 2:t.mode=2;break;case"BASIC":case 3:t.mode=3;break}return l.review!=null&&(t.review=!!l.review),l.disableRcmd!=null&&(t.disableRcmd=!!l.disableRcmd),l.basicMode!=null&&(t.basicMode=!!l.basicMode),t},c.toObject=function(l,t){t||(t={});let i={};return t.defaults&&(i.teenagersMode=!1,i.lessonsMode=!1,i.mode=t.enums===String?"NORMAL":0,i.review=!1,i.disableRcmd=!1,i.basicMode=!1),l.teenagersMode!=null&&l.hasOwnProperty("teenagersMode")&&(i.teenagersMode=l.teenagersMode),l.lessonsMode!=null&&l.hasOwnProperty("lessonsMode")&&(i.lessonsMode=l.lessonsMode),l.mode!=null&&l.hasOwnProperty("mode")&&(i.mode=t.enums===String?u.bilibili.metadata.restriction.ModeType[l.mode]===void 0?l.mode:u.bilibili.metadata.restriction.ModeType[l.mode]:l.mode),l.review!=null&&l.hasOwnProperty("review")&&(i.review=l.review),l.disableRcmd!=null&&l.hasOwnProperty("disableRcmd")&&(i.disableRcmd=l.disableRcmd),l.basicMode!=null&&l.hasOwnProperty("basicMode")&&(i.basicMode=l.basicMode),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.metadata.restriction.Restriction"},c}(),p}(),d}(),O.pagination=function(){let d={};return d.Pagination=function(){function p(c){if(c)for(let e=Object.keys(c),l=0;l>>3){case 1:{i.pageSize=e.int32();break}case 2:{i.next=e.string();break}default:e.skipType(n&7);break}}return i},p.fromObject=function(e){if(e instanceof u.bilibili.pagination.Pagination)return e;let l=new u.bilibili.pagination.Pagination;return e.pageSize!=null&&(l.pageSize=e.pageSize|0),e.next!=null&&(l.next=String(e.next)),l},p.toObject=function(e,l){l||(l={});let t={};return l.defaults&&(t.pageSize=0,t.next=""),e.pageSize!=null&&e.hasOwnProperty("pageSize")&&(t.pageSize=e.pageSize),e.next!=null&&e.hasOwnProperty("next")&&(t.next=e.next),t},p.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},p.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/bilibili.pagination.Pagination"},p}(),d.PaginationReply=function(){function p(c){if(c)for(let e=Object.keys(c),l=0;l>>3){case 1:{i.next=e.string();break}case 2:{i.prev=e.string();break}default:e.skipType(n&7);break}}return i},p.fromObject=function(e){if(e instanceof u.bilibili.pagination.PaginationReply)return e;let l=new u.bilibili.pagination.PaginationReply;return e.next!=null&&(l.next=String(e.next)),e.prev!=null&&(l.prev=String(e.prev)),l},p.toObject=function(e,l){l||(l={});let t={};return l.defaults&&(t.next="",t.prev=""),e.next!=null&&e.hasOwnProperty("next")&&(t.next=e.next),e.prev!=null&&e.hasOwnProperty("prev")&&(t.prev=e.prev),t},p.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},p.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/bilibili.pagination.PaginationReply"},p}(),d.FeedPagination=function(){function p(c){if(c)for(let e=Object.keys(c),l=0;l>>3){case 1:{i.pageSize=e.int32();break}case 2:{i.offset=e.string();break}case 3:{i.isRefresh=e.bool();break}default:e.skipType(n&7);break}}return i},p.fromObject=function(e){if(e instanceof u.bilibili.pagination.FeedPagination)return e;let l=new u.bilibili.pagination.FeedPagination;return e.pageSize!=null&&(l.pageSize=e.pageSize|0),e.offset!=null&&(l.offset=String(e.offset)),e.isRefresh!=null&&(l.isRefresh=!!e.isRefresh),l},p.toObject=function(e,l){l||(l={});let t={};return l.defaults&&(t.pageSize=0,t.offset="",t.isRefresh=!1),e.pageSize!=null&&e.hasOwnProperty("pageSize")&&(t.pageSize=e.pageSize),e.offset!=null&&e.hasOwnProperty("offset")&&(t.offset=e.offset),e.isRefresh!=null&&e.hasOwnProperty("isRefresh")&&(t.isRefresh=e.isRefresh),t},p.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},p.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/bilibili.pagination.FeedPagination"},p}(),d.FeedPaginationReply=function(){function p(c){if(c)for(let e=Object.keys(c),l=0;l>>3){case 1:{i.nextOffset=e.string();break}case 2:{i.prevOffset=e.string();break}case 3:{i.lastReadOffset=e.string();break}default:e.skipType(n&7);break}}return i},p.fromObject=function(e){if(e instanceof u.bilibili.pagination.FeedPaginationReply)return e;let l=new u.bilibili.pagination.FeedPaginationReply;return e.nextOffset!=null&&(l.nextOffset=String(e.nextOffset)),e.prevOffset!=null&&(l.prevOffset=String(e.prevOffset)),e.lastReadOffset!=null&&(l.lastReadOffset=String(e.lastReadOffset)),l},p.toObject=function(e,l){l||(l={});let t={};return l.defaults&&(t.nextOffset="",t.prevOffset="",t.lastReadOffset=""),e.nextOffset!=null&&e.hasOwnProperty("nextOffset")&&(t.nextOffset=e.nextOffset),e.prevOffset!=null&&e.hasOwnProperty("prevOffset")&&(t.prevOffset=e.prevOffset),e.lastReadOffset!=null&&e.hasOwnProperty("lastReadOffset")&&(t.lastReadOffset=e.lastReadOffset),t},p.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},p.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/bilibili.pagination.FeedPaginationReply"},p}(),d}(),O.pangu=function(){let d={};return d.gallery=function(){let p={};return p.v1=function(){let c={};return c.GalleryInterface=function(){function e(l,t,i){b.rpc.Service.call(this,l,t,i)}return(e.prototype=Object.create(b.rpc.Service.prototype)).constructor=e,e.create=function(t,i,n){return new this(t,i,n)},Object.defineProperty(e.prototype.ping=function l(t,i){return this.rpcCall(l,u.google.protobuf.Empty,u.google.protobuf.Empty,t,i)},"name",{value:"Ping"}),Object.defineProperty(e.prototype.userInfo=function l(t,i){return this.rpcCall(l,u.bilibili.pangu.gallery.v1.GetUserInfoReq,u.bilibili.pangu.gallery.v1.GetUserInfoReply,t,i)},"name",{value:"UserInfo"}),Object.defineProperty(e.prototype.listNFTByMid=function l(t,i){return this.rpcCall(l,u.bilibili.pangu.gallery.v1.ListNFTByMidReq,u.bilibili.pangu.gallery.v1.ListNFTByMidReply,t,i)},"name",{value:"ListNFTByMid"}),Object.defineProperty(e.prototype.listOrderByMid=function l(t,i){return this.rpcCall(l,u.bilibili.pangu.gallery.v1.ListOrderByMidReq,u.bilibili.pangu.gallery.v1.ListOrderByMidReply,t,i)},"name",{value:"ListOrderByMid"}),Object.defineProperty(e.prototype.basicInfo=function l(t,i){return this.rpcCall(l,u.bilibili.pangu.gallery.v1.BasicInfoReq,u.bilibili.pangu.gallery.v1.BasicInfoReply,t,i)},"name",{value:"BasicInfo"}),Object.defineProperty(e.prototype.userCheck=function l(t,i){return this.rpcCall(l,u.bilibili.pangu.gallery.v1.UserCheckReq,u.bilibili.pangu.gallery.v1.UserCheckReply,t,i)},"name",{value:"UserCheck"}),Object.defineProperty(e.prototype.agreePolicy=function l(t,i){return this.rpcCall(l,u.bilibili.pangu.gallery.v1.AgreePolicyReq,u.bilibili.pangu.gallery.v1.AgreePolicyReply,t,i)},"name",{value:"AgreePolicy"}),Object.defineProperty(e.prototype.getLastPolicy=function l(t,i){return this.rpcCall(l,u.bilibili.pangu.gallery.v1.GetLastPolicyReq,u.bilibili.pangu.gallery.v1.GetLastPolicyReply,t,i)},"name",{value:"GetLastPolicy"}),Object.defineProperty(e.prototype.getBanners=function l(t,i){return this.rpcCall(l,u.bilibili.pangu.gallery.v1.GetBannersReq,u.bilibili.pangu.gallery.v1.GetBannersReply,t,i)},"name",{value:"GetBanners"}),Object.defineProperty(e.prototype.minePage=function l(t,i){return this.rpcCall(l,u.bilibili.pangu.gallery.v1.MinePageReq,u.bilibili.pangu.gallery.v1.MinePageReply,t,i)},"name",{value:"MinePage"}),e}(),c.GetUserInfoReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.mid=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.pangu.gallery.v1.GetUserInfoReq)return t;let i=new u.bilibili.pangu.gallery.v1.GetUserInfoReq;return t.mid!=null&&(r.Long?(i.mid=r.Long.fromValue(t.mid)).unsigned=!1:typeof t.mid=="string"?i.mid=parseInt(t.mid,10):typeof t.mid=="number"?i.mid=t.mid:typeof t.mid=="object"&&(i.mid=new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(r.Long){let o=new r.Long(0,0,!1);n.mid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mid=i.longs===String?"0":0;return t.mid!=null&&t.hasOwnProperty("mid")&&(typeof t.mid=="number"?n.mid=i.longs===String?String(t.mid):t.mid:n.mid=i.longs===String?r.Long.prototype.toString.call(t.mid):i.longs===Number?new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber():t.mid),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.pangu.gallery.v1.GetUserInfoReq"},e}(),c.GetUserInfoReply=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.mid=t.int64();break}case 2:{o.name=t.string();break}case 3:{o.address=t.string();break}case 4:{o.avatarUrl=t.string();break}case 5:{o.helpUrl=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.pangu.gallery.v1.GetUserInfoReply)return t;let i=new u.bilibili.pangu.gallery.v1.GetUserInfoReply;return t.mid!=null&&(r.Long?(i.mid=r.Long.fromValue(t.mid)).unsigned=!1:typeof t.mid=="string"?i.mid=parseInt(t.mid,10):typeof t.mid=="number"?i.mid=t.mid:typeof t.mid=="object"&&(i.mid=new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber())),t.name!=null&&(i.name=String(t.name)),t.address!=null&&(i.address=String(t.address)),t.avatarUrl!=null&&(i.avatarUrl=String(t.avatarUrl)),t.helpUrl!=null&&(i.helpUrl=String(t.helpUrl)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.mid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mid=i.longs===String?"0":0;n.name="",n.address="",n.avatarUrl="",n.helpUrl=""}return t.mid!=null&&t.hasOwnProperty("mid")&&(typeof t.mid=="number"?n.mid=i.longs===String?String(t.mid):t.mid:n.mid=i.longs===String?r.Long.prototype.toString.call(t.mid):i.longs===Number?new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber():t.mid),t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),t.address!=null&&t.hasOwnProperty("address")&&(n.address=t.address),t.avatarUrl!=null&&t.hasOwnProperty("avatarUrl")&&(n.avatarUrl=t.avatarUrl),t.helpUrl!=null&&t.hasOwnProperty("helpUrl")&&(n.helpUrl=t.helpUrl),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.pangu.gallery.v1.GetUserInfoReply"},e}(),c.ListNFTByMidReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.mid=t.int64();break}case 2:{o.category=t.string();break}case 3:{o.bizType=t.string();break}case 4:{o.anchorId=t.int64();break}case 5:{o.pageSize=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.pangu.gallery.v1.ListNFTByMidReq)return t;let i=new u.bilibili.pangu.gallery.v1.ListNFTByMidReq;return t.mid!=null&&(r.Long?(i.mid=r.Long.fromValue(t.mid)).unsigned=!1:typeof t.mid=="string"?i.mid=parseInt(t.mid,10):typeof t.mid=="number"?i.mid=t.mid:typeof t.mid=="object"&&(i.mid=new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber())),t.category!=null&&(i.category=String(t.category)),t.bizType!=null&&(i.bizType=String(t.bizType)),t.anchorId!=null&&(r.Long?(i.anchorId=r.Long.fromValue(t.anchorId)).unsigned=!1:typeof t.anchorId=="string"?i.anchorId=parseInt(t.anchorId,10):typeof t.anchorId=="number"?i.anchorId=t.anchorId:typeof t.anchorId=="object"&&(i.anchorId=new r.LongBits(t.anchorId.low>>>0,t.anchorId.high>>>0).toNumber())),t.pageSize!=null&&(r.Long?(i.pageSize=r.Long.fromValue(t.pageSize)).unsigned=!1:typeof t.pageSize=="string"?i.pageSize=parseInt(t.pageSize,10):typeof t.pageSize=="number"?i.pageSize=t.pageSize:typeof t.pageSize=="object"&&(i.pageSize=new r.LongBits(t.pageSize.low>>>0,t.pageSize.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.mid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mid=i.longs===String?"0":0;if(n.category="",n.bizType="",r.Long){let o=new r.Long(0,0,!1);n.anchorId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.anchorId=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.pageSize=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.pageSize=i.longs===String?"0":0}return t.mid!=null&&t.hasOwnProperty("mid")&&(typeof t.mid=="number"?n.mid=i.longs===String?String(t.mid):t.mid:n.mid=i.longs===String?r.Long.prototype.toString.call(t.mid):i.longs===Number?new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber():t.mid),t.category!=null&&t.hasOwnProperty("category")&&(n.category=t.category),t.bizType!=null&&t.hasOwnProperty("bizType")&&(n.bizType=t.bizType),t.anchorId!=null&&t.hasOwnProperty("anchorId")&&(typeof t.anchorId=="number"?n.anchorId=i.longs===String?String(t.anchorId):t.anchorId:n.anchorId=i.longs===String?r.Long.prototype.toString.call(t.anchorId):i.longs===Number?new r.LongBits(t.anchorId.low>>>0,t.anchorId.high>>>0).toNumber():t.anchorId),t.pageSize!=null&&t.hasOwnProperty("pageSize")&&(typeof t.pageSize=="number"?n.pageSize=i.longs===String?String(t.pageSize):t.pageSize:n.pageSize=i.longs===String?r.Long.prototype.toString.call(t.pageSize):i.longs===Number?new r.LongBits(t.pageSize.low>>>0,t.pageSize.high>>>0).toNumber():t.pageSize),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.pangu.gallery.v1.ListNFTByMidReq"},e}(),c.ListNFTByMidReply=function(){function e(l){if(this.nfts=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.nfts&&o.nfts.length||(o.nfts=[]),o.nfts.push(u.bilibili.pangu.gallery.v1.NFT.decode(t,t.uint32()));break}case 2:{o.anchorId=t.int64();break}case 3:{o.end=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.pangu.gallery.v1.ListNFTByMidReply)return t;let i=new u.bilibili.pangu.gallery.v1.ListNFTByMidReply;if(t.nfts){if(!Array.isArray(t.nfts))throw TypeError(".bilibili.pangu.gallery.v1.ListNFTByMidReply.nfts: array expected");i.nfts=[];for(let n=0;n>>0,t.anchorId.high>>>0).toNumber())),t.end!=null&&(i.end=!!t.end),i},e.toObject=function(t,i){i||(i={});let n={};if((i.arrays||i.defaults)&&(n.nfts=[]),i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.anchorId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.anchorId=i.longs===String?"0":0;n.end=!1}if(t.nfts&&t.nfts.length){n.nfts=[];for(let o=0;o>>0,t.anchorId.high>>>0).toNumber():t.anchorId),t.end!=null&&t.hasOwnProperty("end")&&(n.end=t.end),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.pangu.gallery.v1.ListNFTByMidReply"},e}(),c.NFT=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.nftId=t.string();break}case 2:{o.itemName=t.string();break}case 3:{o.serialNumber=t.string();break}case 4:{o.issuer=t.string();break}case 5:{o.display=u.bilibili.pangu.gallery.v1.Display.decode(t,t.uint32());break}case 6:{o.detailUrl=t.string();break}case 7:{o.nftStatus=t.int32();break}case 8:{o.itemId=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.pangu.gallery.v1.NFT)return t;let i=new u.bilibili.pangu.gallery.v1.NFT;if(t.nftId!=null&&(i.nftId=String(t.nftId)),t.itemName!=null&&(i.itemName=String(t.itemName)),t.serialNumber!=null&&(i.serialNumber=String(t.serialNumber)),t.issuer!=null&&(i.issuer=String(t.issuer)),t.display!=null){if(typeof t.display!="object")throw TypeError(".bilibili.pangu.gallery.v1.NFT.display: object expected");i.display=u.bilibili.pangu.gallery.v1.Display.fromObject(t.display)}switch(t.detailUrl!=null&&(i.detailUrl=String(t.detailUrl)),t.nftStatus){default:if(typeof t.nftStatus=="number"){i.nftStatus=t.nftStatus;break}break;case"UNDEFINED":case 0:i.nftStatus=0;break;case"NORMAL":case 1:i.nftStatus=1;break;case"DOING":case 2:i.nftStatus=2;break}return t.itemId!=null&&(r.Long?(i.itemId=r.Long.fromValue(t.itemId)).unsigned=!1:typeof t.itemId=="string"?i.itemId=parseInt(t.itemId,10):typeof t.itemId=="number"?i.itemId=t.itemId:typeof t.itemId=="object"&&(i.itemId=new r.LongBits(t.itemId.low>>>0,t.itemId.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(n.nftId="",n.itemName="",n.serialNumber="",n.issuer="",n.display=null,n.detailUrl="",n.nftStatus=i.enums===String?"UNDEFINED":0,r.Long){let o=new r.Long(0,0,!1);n.itemId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.itemId=i.longs===String?"0":0;return t.nftId!=null&&t.hasOwnProperty("nftId")&&(n.nftId=t.nftId),t.itemName!=null&&t.hasOwnProperty("itemName")&&(n.itemName=t.itemName),t.serialNumber!=null&&t.hasOwnProperty("serialNumber")&&(n.serialNumber=t.serialNumber),t.issuer!=null&&t.hasOwnProperty("issuer")&&(n.issuer=t.issuer),t.display!=null&&t.hasOwnProperty("display")&&(n.display=u.bilibili.pangu.gallery.v1.Display.toObject(t.display,i)),t.detailUrl!=null&&t.hasOwnProperty("detailUrl")&&(n.detailUrl=t.detailUrl),t.nftStatus!=null&&t.hasOwnProperty("nftStatus")&&(n.nftStatus=i.enums===String?u.bilibili.pangu.gallery.v1.NFTStatus[t.nftStatus]===void 0?t.nftStatus:u.bilibili.pangu.gallery.v1.NFTStatus[t.nftStatus]:t.nftStatus),t.itemId!=null&&t.hasOwnProperty("itemId")&&(typeof t.itemId=="number"?n.itemId=i.longs===String?String(t.itemId):t.itemId:n.itemId=i.longs===String?r.Long.prototype.toString.call(t.itemId):i.longs===Number?new r.LongBits(t.itemId.low>>>0,t.itemId.high>>>0).toNumber():t.itemId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.pangu.gallery.v1.NFT"},e}(),c.Display=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.bgThemeLight=t.string();break}case 2:{o.bgThemeNight=t.string();break}case 3:{o.nftPoster=t.string();break}case 4:{o.nftRaw=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.pangu.gallery.v1.Display)return t;let i=new u.bilibili.pangu.gallery.v1.Display;return t.bgThemeLight!=null&&(i.bgThemeLight=String(t.bgThemeLight)),t.bgThemeNight!=null&&(i.bgThemeNight=String(t.bgThemeNight)),t.nftPoster!=null&&(i.nftPoster=String(t.nftPoster)),t.nftRaw!=null&&(i.nftRaw=String(t.nftRaw)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.bgThemeLight="",n.bgThemeNight="",n.nftPoster="",n.nftRaw=""),t.bgThemeLight!=null&&t.hasOwnProperty("bgThemeLight")&&(n.bgThemeLight=t.bgThemeLight),t.bgThemeNight!=null&&t.hasOwnProperty("bgThemeNight")&&(n.bgThemeNight=t.bgThemeNight),t.nftPoster!=null&&t.hasOwnProperty("nftPoster")&&(n.nftPoster=t.nftPoster),t.nftRaw!=null&&t.hasOwnProperty("nftRaw")&&(n.nftRaw=t.nftRaw),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.pangu.gallery.v1.Display"},e}(),c.NFTStatus=function(){let e={},l=Object.create(e);return l[e[0]="UNDEFINED"]=0,l[e[1]="NORMAL"]=1,l[e[2]="DOING"]=2,l}(),c.ListOrderByMidReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.mid=t.int64();break}case 2:{o.anchorId=t.int64();break}case 3:{o.pageSize=t.int64();break}case 4:{o.rcType=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.pangu.gallery.v1.ListOrderByMidReq)return t;let i=new u.bilibili.pangu.gallery.v1.ListOrderByMidReq;switch(t.mid!=null&&(r.Long?(i.mid=r.Long.fromValue(t.mid)).unsigned=!1:typeof t.mid=="string"?i.mid=parseInt(t.mid,10):typeof t.mid=="number"?i.mid=t.mid:typeof t.mid=="object"&&(i.mid=new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber())),t.anchorId!=null&&(r.Long?(i.anchorId=r.Long.fromValue(t.anchorId)).unsigned=!1:typeof t.anchorId=="string"?i.anchorId=parseInt(t.anchorId,10):typeof t.anchorId=="number"?i.anchorId=t.anchorId:typeof t.anchorId=="object"&&(i.anchorId=new r.LongBits(t.anchorId.low>>>0,t.anchorId.high>>>0).toNumber())),t.pageSize!=null&&(r.Long?(i.pageSize=r.Long.fromValue(t.pageSize)).unsigned=!1:typeof t.pageSize=="string"?i.pageSize=parseInt(t.pageSize,10):typeof t.pageSize=="number"?i.pageSize=t.pageSize:typeof t.pageSize=="object"&&(i.pageSize=new r.LongBits(t.pageSize.low>>>0,t.pageSize.high>>>0).toNumber())),t.rcType){default:if(typeof t.rcType=="number"){i.rcType=t.rcType;break}break;case"All":case 0:i.rcType=0;break;case"input":case 1:i.rcType=1;break;case"output":case 2:i.rcType=2;break}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.mid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.anchorId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.anchorId=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.pageSize=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.pageSize=i.longs===String?"0":0;n.rcType=i.enums===String?"All":0}return t.mid!=null&&t.hasOwnProperty("mid")&&(typeof t.mid=="number"?n.mid=i.longs===String?String(t.mid):t.mid:n.mid=i.longs===String?r.Long.prototype.toString.call(t.mid):i.longs===Number?new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber():t.mid),t.anchorId!=null&&t.hasOwnProperty("anchorId")&&(typeof t.anchorId=="number"?n.anchorId=i.longs===String?String(t.anchorId):t.anchorId:n.anchorId=i.longs===String?r.Long.prototype.toString.call(t.anchorId):i.longs===Number?new r.LongBits(t.anchorId.low>>>0,t.anchorId.high>>>0).toNumber():t.anchorId),t.pageSize!=null&&t.hasOwnProperty("pageSize")&&(typeof t.pageSize=="number"?n.pageSize=i.longs===String?String(t.pageSize):t.pageSize:n.pageSize=i.longs===String?r.Long.prototype.toString.call(t.pageSize):i.longs===Number?new r.LongBits(t.pageSize.low>>>0,t.pageSize.high>>>0).toNumber():t.pageSize),t.rcType!=null&&t.hasOwnProperty("rcType")&&(n.rcType=i.enums===String?u.bilibili.pangu.gallery.v1.RecordType[t.rcType]===void 0?t.rcType:u.bilibili.pangu.gallery.v1.RecordType[t.rcType]:t.rcType),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.pangu.gallery.v1.ListOrderByMidReq"},e}(),c.RecordType=function(){let e={},l=Object.create(e);return l[e[0]="All"]=0,l[e[1]="input"]=1,l[e[2]="output"]=2,l}(),c.ListOrderByMidReply=function(){function e(l){if(this.orders=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.orders&&o.orders.length||(o.orders=[]),o.orders.push(u.bilibili.pangu.gallery.v1.Order.decode(t,t.uint32()));break}case 2:{o.anchorId=t.int64();break}case 3:{o.end=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.pangu.gallery.v1.ListOrderByMidReply)return t;let i=new u.bilibili.pangu.gallery.v1.ListOrderByMidReply;if(t.orders){if(!Array.isArray(t.orders))throw TypeError(".bilibili.pangu.gallery.v1.ListOrderByMidReply.orders: array expected");i.orders=[];for(let n=0;n>>0,t.anchorId.high>>>0).toNumber())),t.end!=null&&(i.end=!!t.end),i},e.toObject=function(t,i){i||(i={});let n={};if((i.arrays||i.defaults)&&(n.orders=[]),i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.anchorId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.anchorId=i.longs===String?"0":0;n.end=!1}if(t.orders&&t.orders.length){n.orders=[];for(let o=0;o>>0,t.anchorId.high>>>0).toNumber():t.anchorId),t.end!=null&&t.hasOwnProperty("end")&&(n.end=t.end),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.pangu.gallery.v1.ListOrderByMidReply"},e}(),c.Order=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.itemName=t.string();break}case 2:{o.serialNumber=t.string();break}case 3:{o.txHash=t.string();break}case 4:{o.txTime=t.string();break}case 5:{o.issuer=t.string();break}case 6:{o.issueTime=t.string();break}case 7:{o.tokenId=t.string();break}case 8:{o.display=u.bilibili.pangu.gallery.v1.Display.decode(t,t.uint32());break}case 9:{o.contractAddress=t.string();break}case 10:{o.hashJump=t.string();break}case 11:{o.contractJump=t.string();break}case 12:{o.disableBrowserJump=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.pangu.gallery.v1.Order)return t;let i=new u.bilibili.pangu.gallery.v1.Order;if(t.itemName!=null&&(i.itemName=String(t.itemName)),t.serialNumber!=null&&(i.serialNumber=String(t.serialNumber)),t.txHash!=null&&(i.txHash=String(t.txHash)),t.txTime!=null&&(i.txTime=String(t.txTime)),t.issuer!=null&&(i.issuer=String(t.issuer)),t.issueTime!=null&&(i.issueTime=String(t.issueTime)),t.tokenId!=null&&(i.tokenId=String(t.tokenId)),t.display!=null){if(typeof t.display!="object")throw TypeError(".bilibili.pangu.gallery.v1.Order.display: object expected");i.display=u.bilibili.pangu.gallery.v1.Display.fromObject(t.display)}return t.contractAddress!=null&&(i.contractAddress=String(t.contractAddress)),t.hashJump!=null&&(i.hashJump=String(t.hashJump)),t.contractJump!=null&&(i.contractJump=String(t.contractJump)),t.disableBrowserJump!=null&&(i.disableBrowserJump=!!t.disableBrowserJump),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.itemName="",n.serialNumber="",n.txHash="",n.txTime="",n.issuer="",n.issueTime="",n.tokenId="",n.display=null,n.contractAddress="",n.hashJump="",n.contractJump="",n.disableBrowserJump=!1),t.itemName!=null&&t.hasOwnProperty("itemName")&&(n.itemName=t.itemName),t.serialNumber!=null&&t.hasOwnProperty("serialNumber")&&(n.serialNumber=t.serialNumber),t.txHash!=null&&t.hasOwnProperty("txHash")&&(n.txHash=t.txHash),t.txTime!=null&&t.hasOwnProperty("txTime")&&(n.txTime=t.txTime),t.issuer!=null&&t.hasOwnProperty("issuer")&&(n.issuer=t.issuer),t.issueTime!=null&&t.hasOwnProperty("issueTime")&&(n.issueTime=t.issueTime),t.tokenId!=null&&t.hasOwnProperty("tokenId")&&(n.tokenId=t.tokenId),t.display!=null&&t.hasOwnProperty("display")&&(n.display=u.bilibili.pangu.gallery.v1.Display.toObject(t.display,i)),t.contractAddress!=null&&t.hasOwnProperty("contractAddress")&&(n.contractAddress=t.contractAddress),t.hashJump!=null&&t.hasOwnProperty("hashJump")&&(n.hashJump=t.hashJump),t.contractJump!=null&&t.hasOwnProperty("contractJump")&&(n.contractJump=t.contractJump),t.disableBrowserJump!=null&&t.hasOwnProperty("disableBrowserJump")&&(n.disableBrowserJump=t.disableBrowserJump),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.pangu.gallery.v1.Order"},e}(),c.BasicInfoReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.mid=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.pangu.gallery.v1.BasicInfoReq)return t;let i=new u.bilibili.pangu.gallery.v1.BasicInfoReq;return t.mid!=null&&(r.Long?(i.mid=r.Long.fromValue(t.mid)).unsigned=!1:typeof t.mid=="string"?i.mid=parseInt(t.mid,10):typeof t.mid=="number"?i.mid=t.mid:typeof t.mid=="object"&&(i.mid=new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(r.Long){let o=new r.Long(0,0,!1);n.mid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mid=i.longs===String?"0":0;return t.mid!=null&&t.hasOwnProperty("mid")&&(typeof t.mid=="number"?n.mid=i.longs===String?String(t.mid):t.mid:n.mid=i.longs===String?r.Long.prototype.toString.call(t.mid):i.longs===Number?new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber():t.mid),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.pangu.gallery.v1.BasicInfoReq"},e}(),c.BasicInfoReply=function(){function e(l){if(this.links=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.customerServiceUrl=t.string();break}case 2:{o.agreementUrl=t.string();break}case 3:{o.privacyUrl=t.string();break}case 4:{o.links&&o.links.length||(o.links=[]),o.links.push(u.bilibili.pangu.gallery.v1.Link.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.pangu.gallery.v1.BasicInfoReply)return t;let i=new u.bilibili.pangu.gallery.v1.BasicInfoReply;if(t.customerServiceUrl!=null&&(i.customerServiceUrl=String(t.customerServiceUrl)),t.agreementUrl!=null&&(i.agreementUrl=String(t.agreementUrl)),t.privacyUrl!=null&&(i.privacyUrl=String(t.privacyUrl)),t.links){if(!Array.isArray(t.links))throw TypeError(".bilibili.pangu.gallery.v1.BasicInfoReply.links: array expected");i.links=[];for(let n=0;n>>3){case 1:{o.name=t.string();break}case 2:{o.linkUrl=t.string();break}case 3:{o.trackEventId=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.pangu.gallery.v1.Link)return t;let i=new u.bilibili.pangu.gallery.v1.Link;return t.name!=null&&(i.name=String(t.name)),t.linkUrl!=null&&(i.linkUrl=String(t.linkUrl)),t.trackEventId!=null&&(i.trackEventId=String(t.trackEventId)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.name="",n.linkUrl="",n.trackEventId=""),t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),t.linkUrl!=null&&t.hasOwnProperty("linkUrl")&&(n.linkUrl=t.linkUrl),t.trackEventId!=null&&t.hasOwnProperty("trackEventId")&&(n.trackEventId=t.trackEventId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.pangu.gallery.v1.Link"},e}(),c.UserCheckReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.mid=t.int64();break}case 2:{o.policyType=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.pangu.gallery.v1.UserCheckReq)return t;let i=new u.bilibili.pangu.gallery.v1.UserCheckReq;switch(t.mid!=null&&(r.Long?(i.mid=r.Long.fromValue(t.mid)).unsigned=!1:typeof t.mid=="string"?i.mid=parseInt(t.mid,10):typeof t.mid=="number"?i.mid=t.mid:typeof t.mid=="object"&&(i.mid=new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber())),t.policyType){default:if(typeof t.policyType=="number"){i.policyType=t.policyType;break}break;case"UNKNOWN_POLICY":case 0:i.policyType=0;break;case"WALLET":case 1:i.policyType=1;break;case"SALE":case 2:i.policyType=2;break}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.mid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mid=i.longs===String?"0":0;n.policyType=i.enums===String?"UNKNOWN_POLICY":0}return t.mid!=null&&t.hasOwnProperty("mid")&&(typeof t.mid=="number"?n.mid=i.longs===String?String(t.mid):t.mid:n.mid=i.longs===String?r.Long.prototype.toString.call(t.mid):i.longs===Number?new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber():t.mid),t.policyType!=null&&t.hasOwnProperty("policyType")&&(n.policyType=i.enums===String?u.bilibili.pangu.gallery.v1.PolicyType[t.policyType]===void 0?t.policyType:u.bilibili.pangu.gallery.v1.PolicyType[t.policyType]:t.policyType),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.pangu.gallery.v1.UserCheckReq"},e}(),c.UserCheckReply=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.policyStatus=t.int32();break}case 2:{o.gt14=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.pangu.gallery.v1.UserCheckReply)return t;let i=new u.bilibili.pangu.gallery.v1.UserCheckReply;switch(t.policyStatus){default:if(typeof t.policyStatus=="number"){i.policyStatus=t.policyStatus;break}break;case"UNSIGNED":case 0:i.policyStatus=0;break;case"ACCEPTED":case 1:i.policyStatus=1;break;case"EXPIRED":case 2:i.policyStatus=2;break}switch(t.gt14){default:if(typeof t.gt14=="number"){i.gt14=t.gt14;break}break;case"LT14":case 0:i.gt14=0;break;case"GE14":case 1:i.gt14=1;break;case"UNKNOWN_GT14":case 2:i.gt14=2;break}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.policyStatus=i.enums===String?"UNSIGNED":0,n.gt14=i.enums===String?"LT14":0),t.policyStatus!=null&&t.hasOwnProperty("policyStatus")&&(n.policyStatus=i.enums===String?u.bilibili.pangu.gallery.v1.PolicyAgreeStatus[t.policyStatus]===void 0?t.policyStatus:u.bilibili.pangu.gallery.v1.PolicyAgreeStatus[t.policyStatus]:t.policyStatus),t.gt14!=null&&t.hasOwnProperty("gt14")&&(n.gt14=i.enums===String?u.bilibili.pangu.gallery.v1.GT14Status[t.gt14]===void 0?t.gt14:u.bilibili.pangu.gallery.v1.GT14Status[t.gt14]:t.gt14),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.pangu.gallery.v1.UserCheckReply"},e}(),c.PolicyAgreeStatus=function(){let e={},l=Object.create(e);return l[e[0]="UNSIGNED"]=0,l[e[1]="ACCEPTED"]=1,l[e[2]="EXPIRED"]=2,l}(),c.GT14Status=function(){let e={},l=Object.create(e);return l[e[0]="LT14"]=0,l[e[1]="GE14"]=1,l[e[2]="UNKNOWN_GT14"]=2,l}(),c.GetLastPolicyReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.policyType=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.pangu.gallery.v1.GetLastPolicyReq)return t;let i=new u.bilibili.pangu.gallery.v1.GetLastPolicyReq;switch(t.policyType){default:if(typeof t.policyType=="number"){i.policyType=t.policyType;break}break;case"UNKNOWN_POLICY":case 0:i.policyType=0;break;case"WALLET":case 1:i.policyType=1;break;case"SALE":case 2:i.policyType=2;break}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.policyType=i.enums===String?"UNKNOWN_POLICY":0),t.policyType!=null&&t.hasOwnProperty("policyType")&&(n.policyType=i.enums===String?u.bilibili.pangu.gallery.v1.PolicyType[t.policyType]===void 0?t.policyType:u.bilibili.pangu.gallery.v1.PolicyType[t.policyType]:t.policyType),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.pangu.gallery.v1.GetLastPolicyReq"},e}(),c.GetLastPolicyReply=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.shortDesc=t.string();break}case 2:{o.detailJump=t.string();break}case 3:{o.version=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.pangu.gallery.v1.GetLastPolicyReply)return t;let i=new u.bilibili.pangu.gallery.v1.GetLastPolicyReply;return t.shortDesc!=null&&(i.shortDesc=String(t.shortDesc)),t.detailJump!=null&&(i.detailJump=String(t.detailJump)),t.version!=null&&(i.version=String(t.version)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.shortDesc="",n.detailJump="",n.version=""),t.shortDesc!=null&&t.hasOwnProperty("shortDesc")&&(n.shortDesc=t.shortDesc),t.detailJump!=null&&t.hasOwnProperty("detailJump")&&(n.detailJump=t.detailJump),t.version!=null&&t.hasOwnProperty("version")&&(n.version=t.version),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.pangu.gallery.v1.GetLastPolicyReply"},e}(),c.AgreePolicyReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.policyType=t.int32();break}case 2:{o.version=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.pangu.gallery.v1.AgreePolicyReq)return t;let i=new u.bilibili.pangu.gallery.v1.AgreePolicyReq;switch(t.policyType){default:if(typeof t.policyType=="number"){i.policyType=t.policyType;break}break;case"UNKNOWN_POLICY":case 0:i.policyType=0;break;case"WALLET":case 1:i.policyType=1;break;case"SALE":case 2:i.policyType=2;break}return t.version!=null&&(i.version=String(t.version)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.policyType=i.enums===String?"UNKNOWN_POLICY":0,n.version=""),t.policyType!=null&&t.hasOwnProperty("policyType")&&(n.policyType=i.enums===String?u.bilibili.pangu.gallery.v1.PolicyType[t.policyType]===void 0?t.policyType:u.bilibili.pangu.gallery.v1.PolicyType[t.policyType]:t.policyType),t.version!=null&&t.hasOwnProperty("version")&&(n.version=t.version),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.pangu.gallery.v1.AgreePolicyReq"},e}(),c.PolicyType=function(){let e={},l=Object.create(e);return l[e[0]="UNKNOWN_POLICY"]=0,l[e[1]="WALLET"]=1,l[e[2]="SALE"]=2,l}(),c.AgreePolicyReply=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){default:t.skipType(a&7);break}}return o},e.fromObject=function(t){return t instanceof u.bilibili.pangu.gallery.v1.AgreePolicyReply?t:new u.bilibili.pangu.gallery.v1.AgreePolicyReply},e.toObject=function(){return{}},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.pangu.gallery.v1.AgreePolicyReply"},e}(),c.GetBannersReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.uid=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.pangu.gallery.v1.GetBannersReq)return t;let i=new u.bilibili.pangu.gallery.v1.GetBannersReq;return t.uid!=null&&(r.Long?(i.uid=r.Long.fromValue(t.uid)).unsigned=!1:typeof t.uid=="string"?i.uid=parseInt(t.uid,10):typeof t.uid=="number"?i.uid=t.uid:typeof t.uid=="object"&&(i.uid=new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(r.Long){let o=new r.Long(0,0,!1);n.uid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.uid=i.longs===String?"0":0;return t.uid!=null&&t.hasOwnProperty("uid")&&(typeof t.uid=="number"?n.uid=i.longs===String?String(t.uid):t.uid:n.uid=i.longs===String?r.Long.prototype.toString.call(t.uid):i.longs===Number?new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber():t.uid),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.pangu.gallery.v1.GetBannersReq"},e}(),c.GetBannersReply=function(){function e(l){if(this.bannerList=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.bannerList&&o.bannerList.length||(o.bannerList=[]),o.bannerList.push(u.bilibili.pangu.gallery.v1.BannerInfo.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.pangu.gallery.v1.GetBannersReply)return t;let i=new u.bilibili.pangu.gallery.v1.GetBannersReply;if(t.bannerList){if(!Array.isArray(t.bannerList))throw TypeError(".bilibili.pangu.gallery.v1.GetBannersReply.bannerList: array expected");i.bannerList=[];for(let n=0;n>>3){case 1:{o.imageUrl=t.string();break}case 2:{o.link=t.string();break}case 3:{o.title=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.pangu.gallery.v1.BannerInfo)return t;let i=new u.bilibili.pangu.gallery.v1.BannerInfo;return t.imageUrl!=null&&(i.imageUrl=String(t.imageUrl)),t.link!=null&&(i.link=String(t.link)),t.title!=null&&(i.title=String(t.title)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.imageUrl="",n.link="",n.title=""),t.imageUrl!=null&&t.hasOwnProperty("imageUrl")&&(n.imageUrl=t.imageUrl),t.link!=null&&t.hasOwnProperty("link")&&(n.link=t.link),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.pangu.gallery.v1.BannerInfo"},e}(),c.MinePageReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.uid=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.pangu.gallery.v1.MinePageReq)return t;let i=new u.bilibili.pangu.gallery.v1.MinePageReq;return t.uid!=null&&(r.Long?(i.uid=r.Long.fromValue(t.uid)).unsigned=!1:typeof t.uid=="string"?i.uid=parseInt(t.uid,10):typeof t.uid=="number"?i.uid=t.uid:typeof t.uid=="object"&&(i.uid=new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(r.Long){let o=new r.Long(0,0,!1);n.uid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.uid=i.longs===String?"0":0;return t.uid!=null&&t.hasOwnProperty("uid")&&(typeof t.uid=="number"?n.uid=i.longs===String?String(t.uid):t.uid:n.uid=i.longs===String?r.Long.prototype.toString.call(t.uid):i.longs===Number?new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber():t.uid),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.pangu.gallery.v1.MinePageReq"},e}(),c.MinePageReply=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.uid=t.int64();break}case 2:{o.name=t.string();break}case 3:{o.address=t.string();break}case 4:{o.avatarUrl=t.string();break}case 5:{o.questionJump=t.string();break}case 6:{o.aboutUsJump=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.pangu.gallery.v1.MinePageReply)return t;let i=new u.bilibili.pangu.gallery.v1.MinePageReply;return t.uid!=null&&(r.Long?(i.uid=r.Long.fromValue(t.uid)).unsigned=!1:typeof t.uid=="string"?i.uid=parseInt(t.uid,10):typeof t.uid=="number"?i.uid=t.uid:typeof t.uid=="object"&&(i.uid=new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber())),t.name!=null&&(i.name=String(t.name)),t.address!=null&&(i.address=String(t.address)),t.avatarUrl!=null&&(i.avatarUrl=String(t.avatarUrl)),t.questionJump!=null&&(i.questionJump=String(t.questionJump)),t.aboutUsJump!=null&&(i.aboutUsJump=String(t.aboutUsJump)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.uid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.uid=i.longs===String?"0":0;n.name="",n.address="",n.avatarUrl="",n.questionJump="",n.aboutUsJump=""}return t.uid!=null&&t.hasOwnProperty("uid")&&(typeof t.uid=="number"?n.uid=i.longs===String?String(t.uid):t.uid:n.uid=i.longs===String?r.Long.prototype.toString.call(t.uid):i.longs===Number?new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber():t.uid),t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),t.address!=null&&t.hasOwnProperty("address")&&(n.address=t.address),t.avatarUrl!=null&&t.hasOwnProperty("avatarUrl")&&(n.avatarUrl=t.avatarUrl),t.questionJump!=null&&t.hasOwnProperty("questionJump")&&(n.questionJump=t.questionJump),t.aboutUsJump!=null&&t.hasOwnProperty("aboutUsJump")&&(n.aboutUsJump=t.aboutUsJump),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.pangu.gallery.v1.MinePageReply"},e}(),c}(),p}(),d.openplatform=function(){let p={};return p.apiserver=function(){let c={};return c.v1alpha1=function(){let e={};return e.SignTransactionRequest=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.address=i.string();break}case 2:{a.nonce=i.uint64();break}case 3:{a.contractAddress=i.string();break}case 4:{a.gasPrice=i.uint64();break}case 5:{a.gasLimit=i.uint64();break}case 6:{a.input=i.bytes();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.pangu.openplatform.apiserver.v1alpha1.SignTransactionRequest)return i;let n=new u.bilibili.pangu.openplatform.apiserver.v1alpha1.SignTransactionRequest;return i.address!=null&&(n.address=String(i.address)),i.nonce!=null&&(r.Long?(n.nonce=r.Long.fromValue(i.nonce)).unsigned=!0:typeof i.nonce=="string"?n.nonce=parseInt(i.nonce,10):typeof i.nonce=="number"?n.nonce=i.nonce:typeof i.nonce=="object"&&(n.nonce=new r.LongBits(i.nonce.low>>>0,i.nonce.high>>>0).toNumber(!0))),i.contractAddress!=null&&(n.contractAddress=String(i.contractAddress)),i.gasPrice!=null&&(r.Long?(n.gasPrice=r.Long.fromValue(i.gasPrice)).unsigned=!0:typeof i.gasPrice=="string"?n.gasPrice=parseInt(i.gasPrice,10):typeof i.gasPrice=="number"?n.gasPrice=i.gasPrice:typeof i.gasPrice=="object"&&(n.gasPrice=new r.LongBits(i.gasPrice.low>>>0,i.gasPrice.high>>>0).toNumber(!0))),i.gasLimit!=null&&(r.Long?(n.gasLimit=r.Long.fromValue(i.gasLimit)).unsigned=!0:typeof i.gasLimit=="string"?n.gasLimit=parseInt(i.gasLimit,10):typeof i.gasLimit=="number"?n.gasLimit=i.gasLimit:typeof i.gasLimit=="object"&&(n.gasLimit=new r.LongBits(i.gasLimit.low>>>0,i.gasLimit.high>>>0).toNumber(!0))),i.input!=null&&(typeof i.input=="string"?r.base64.decode(i.input,n.input=r.newBuffer(r.base64.length(i.input)),0):i.input.length>=0&&(n.input=i.input)),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(o.address="",r.Long){let a=new r.Long(0,0,!0);o.nonce=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.nonce=n.longs===String?"0":0;if(o.contractAddress="",r.Long){let a=new r.Long(0,0,!0);o.gasPrice=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.gasPrice=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!0);o.gasLimit=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.gasLimit=n.longs===String?"0":0;n.bytes===String?o.input="":(o.input=[],n.bytes!==Array&&(o.input=r.newBuffer(o.input)))}return i.address!=null&&i.hasOwnProperty("address")&&(o.address=i.address),i.nonce!=null&&i.hasOwnProperty("nonce")&&(typeof i.nonce=="number"?o.nonce=n.longs===String?String(i.nonce):i.nonce:o.nonce=n.longs===String?r.Long.prototype.toString.call(i.nonce):n.longs===Number?new r.LongBits(i.nonce.low>>>0,i.nonce.high>>>0).toNumber(!0):i.nonce),i.contractAddress!=null&&i.hasOwnProperty("contractAddress")&&(o.contractAddress=i.contractAddress),i.gasPrice!=null&&i.hasOwnProperty("gasPrice")&&(typeof i.gasPrice=="number"?o.gasPrice=n.longs===String?String(i.gasPrice):i.gasPrice:o.gasPrice=n.longs===String?r.Long.prototype.toString.call(i.gasPrice):n.longs===Number?new r.LongBits(i.gasPrice.low>>>0,i.gasPrice.high>>>0).toNumber(!0):i.gasPrice),i.gasLimit!=null&&i.hasOwnProperty("gasLimit")&&(typeof i.gasLimit=="number"?o.gasLimit=n.longs===String?String(i.gasLimit):i.gasLimit:o.gasLimit=n.longs===String?r.Long.prototype.toString.call(i.gasLimit):n.longs===Number?new r.LongBits(i.gasLimit.low>>>0,i.gasLimit.high>>>0).toNumber(!0):i.gasLimit),i.input!=null&&i.hasOwnProperty("input")&&(o.input=n.bytes===String?r.base64.encode(i.input,0,i.input.length):n.bytes===Array?Array.prototype.slice.call(i.input):i.input),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.pangu.openplatform.apiserver.v1alpha1.SignTransactionRequest"},l}(),e.SignTransactionResponse=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.data=i.bytes();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.pangu.openplatform.apiserver.v1alpha1.SignTransactionResponse)return i;let n=new u.bilibili.pangu.openplatform.apiserver.v1alpha1.SignTransactionResponse;return i.data!=null&&(typeof i.data=="string"?r.base64.decode(i.data,n.data=r.newBuffer(r.base64.length(i.data)),0):i.data.length>=0&&(n.data=i.data)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(n.bytes===String?o.data="":(o.data=[],n.bytes!==Array&&(o.data=r.newBuffer(o.data)))),i.data!=null&&i.hasOwnProperty("data")&&(o.data=n.bytes===String?r.base64.encode(i.data,0,i.data.length):n.bytes===Array?Array.prototype.slice.call(i.data):i.data),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.pangu.openplatform.apiserver.v1alpha1.SignTransactionResponse"},l}(),e.GetUserInfoRequest=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.mid=i.uint64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.pangu.openplatform.apiserver.v1alpha1.GetUserInfoRequest)return i;let n=new u.bilibili.pangu.openplatform.apiserver.v1alpha1.GetUserInfoRequest;return i.mid!=null&&(r.Long?(n.mid=r.Long.fromValue(i.mid)).unsigned=!0:typeof i.mid=="string"?n.mid=parseInt(i.mid,10):typeof i.mid=="number"?n.mid=i.mid:typeof i.mid=="object"&&(n.mid=new r.LongBits(i.mid.low>>>0,i.mid.high>>>0).toNumber(!0))),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults)if(r.Long){let a=new r.Long(0,0,!0);o.mid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.mid=n.longs===String?"0":0;return i.mid!=null&&i.hasOwnProperty("mid")&&(typeof i.mid=="number"?o.mid=n.longs===String?String(i.mid):i.mid:o.mid=n.longs===String?r.Long.prototype.toString.call(i.mid):n.longs===Number?new r.LongBits(i.mid.low>>>0,i.mid.high>>>0).toNumber(!0):i.mid),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.pangu.openplatform.apiserver.v1alpha1.GetUserInfoRequest"},l}(),e.GetUserInfoResponse=function(){function l(t){if(this.addresses=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.addresses&&a.addresses.length||(a.addresses=[]),a.addresses.push(u.bilibili.pangu.openplatform.apiserver.v1alpha1.GetUserInfoResponse.PlatformAddress.decode(i,i.uint32()));break}case 2:{a.status=i.int32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.pangu.openplatform.apiserver.v1alpha1.GetUserInfoResponse)return i;let n=new u.bilibili.pangu.openplatform.apiserver.v1alpha1.GetUserInfoResponse;if(i.addresses){if(!Array.isArray(i.addresses))throw TypeError(".bilibili.pangu.openplatform.apiserver.v1alpha1.GetUserInfoResponse.addresses: array expected");n.addresses=[];for(let o=0;o>>3){case 1:{y.platformId=n.string();break}case 2:{y.address=n.string();break}default:n.skipType(s&7);break}}return y},t.fromObject=function(n){if(n instanceof u.bilibili.pangu.openplatform.apiserver.v1alpha1.GetUserInfoResponse.PlatformAddress)return n;let o=new u.bilibili.pangu.openplatform.apiserver.v1alpha1.GetUserInfoResponse.PlatformAddress;return n.platformId!=null&&(o.platformId=String(n.platformId)),n.address!=null&&(o.address=String(n.address)),o},t.toObject=function(n,o){o||(o={});let a={};return o.defaults&&(a.platformId="",a.address=""),n.platformId!=null&&n.hasOwnProperty("platformId")&&(a.platformId=n.platformId),n.address!=null&&n.hasOwnProperty("address")&&(a.address=n.address),a},t.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},t.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/bilibili.pangu.openplatform.apiserver.v1alpha1.GetUserInfoResponse.PlatformAddress"},t}(),l}(),e.AllocateAddressRequest=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.externalId=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.pangu.openplatform.apiserver.v1alpha1.AllocateAddressRequest)return i;let n=new u.bilibili.pangu.openplatform.apiserver.v1alpha1.AllocateAddressRequest;return i.externalId!=null&&(n.externalId=String(i.externalId)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.externalId=""),i.externalId!=null&&i.hasOwnProperty("externalId")&&(o.externalId=i.externalId),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.pangu.openplatform.apiserver.v1alpha1.AllocateAddressRequest"},l}(),e.AllocateAddressResponse=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.address=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.pangu.openplatform.apiserver.v1alpha1.AllocateAddressResponse)return i;let n=new u.bilibili.pangu.openplatform.apiserver.v1alpha1.AllocateAddressResponse;return i.address!=null&&(n.address=String(i.address)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.address=""),i.address!=null&&i.hasOwnProperty("address")&&(o.address=i.address),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.pangu.openplatform.apiserver.v1alpha1.AllocateAddressResponse"},l}(),e.BindAddressRequest=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.address=i.string();break}case 2:{a.mid=i.uint64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.pangu.openplatform.apiserver.v1alpha1.BindAddressRequest)return i;let n=new u.bilibili.pangu.openplatform.apiserver.v1alpha1.BindAddressRequest;return i.address!=null&&(n.address=String(i.address)),i.mid!=null&&(r.Long?(n.mid=r.Long.fromValue(i.mid)).unsigned=!0:typeof i.mid=="string"?n.mid=parseInt(i.mid,10):typeof i.mid=="number"?n.mid=i.mid:typeof i.mid=="object"&&(n.mid=new r.LongBits(i.mid.low>>>0,i.mid.high>>>0).toNumber(!0))),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults)if(o.address="",r.Long){let a=new r.Long(0,0,!0);o.mid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.mid=n.longs===String?"0":0;return i.address!=null&&i.hasOwnProperty("address")&&(o.address=i.address),i.mid!=null&&i.hasOwnProperty("mid")&&(typeof i.mid=="number"?o.mid=n.longs===String?String(i.mid):i.mid:o.mid=n.longs===String?r.Long.prototype.toString.call(i.mid):n.longs===Number?new r.LongBits(i.mid.low>>>0,i.mid.high>>>0).toNumber(!0):i.mid),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.pangu.openplatform.apiserver.v1alpha1.BindAddressRequest"},l}(),e.BindAddressResponse=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){default:i.skipType(y&7);break}}return a},l.fromObject=function(i){return i instanceof u.bilibili.pangu.openplatform.apiserver.v1alpha1.BindAddressResponse?i:new u.bilibili.pangu.openplatform.apiserver.v1alpha1.BindAddressResponse},l.toObject=function(){return{}},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.pangu.openplatform.apiserver.v1alpha1.BindAddressResponse"},l}(),e.OpenPlatform=function(){function l(t,i,n){b.rpc.Service.call(this,t,i,n)}return(l.prototype=Object.create(b.rpc.Service.prototype)).constructor=l,l.create=function(i,n,o){return new this(i,n,o)},Object.defineProperty(l.prototype.getUserInfo=function t(i,n){return this.rpcCall(t,u.bilibili.pangu.openplatform.apiserver.v1alpha1.GetUserInfoRequest,u.bilibili.pangu.openplatform.apiserver.v1alpha1.GetUserInfoResponse,i,n)},"name",{value:"GetUserInfo"}),Object.defineProperty(l.prototype.allocateAddress=function t(i,n){return this.rpcCall(t,u.bilibili.pangu.openplatform.apiserver.v1alpha1.AllocateAddressRequest,u.bilibili.pangu.openplatform.apiserver.v1alpha1.AllocateAddressResponse,i,n)},"name",{value:"AllocateAddress"}),Object.defineProperty(l.prototype.bindAddress=function t(i,n){return this.rpcCall(t,u.bilibili.pangu.openplatform.apiserver.v1alpha1.BindAddressRequest,u.bilibili.pangu.openplatform.apiserver.v1alpha1.BindAddressResponse,i,n)},"name",{value:"BindAddress"}),Object.defineProperty(l.prototype.signTransaction=function t(i,n){return this.rpcCall(t,u.bilibili.pangu.openplatform.apiserver.v1alpha1.SignTransactionRequest,u.bilibili.pangu.openplatform.apiserver.v1alpha1.SignTransactionResponse,i,n)},"name",{value:"SignTransaction"}),l}(),e.UserStatus=function(){let l={},t=Object.create(l);return t[l[0]="USER_UNKNOWN"]=0,t[l[1]="USER_ALLOWED"]=1,t[l[2]="USER_NOT_ALLOWED"]=2,t}(),e}(),c}(),p}(),d}(),O.pgc=function(){let d={};return d.gateway=function(){let p={};return p.player=function(){let c={};return c.v1=function(){let e={};return e.PlayURL=function(){function l(t,i,n){b.rpc.Service.call(this,t,i,n)}return(l.prototype=Object.create(b.rpc.Service.prototype)).constructor=l,l.create=function(i,n,o){return new this(i,n,o)},Object.defineProperty(l.prototype.playView=function t(i,n){return this.rpcCall(t,u.bilibili.pgc.gateway.player.v1.PlayViewReq,u.bilibili.pgc.gateway.player.v1.PlayViewReply,i,n)},"name",{value:"PlayView"}),Object.defineProperty(l.prototype.project=function t(i,n){return this.rpcCall(t,u.bilibili.pgc.gateway.player.v1.ProjectReq,u.bilibili.pgc.gateway.player.v1.ProjectReply,i,n)},"name",{value:"Project"}),Object.defineProperty(l.prototype.livePlayView=function t(i,n){return this.rpcCall(t,u.bilibili.pgc.gateway.player.v1.LivePlayViewReq,u.bilibili.pgc.gateway.player.v1.LivePlayViewReply,i,n)},"name",{value:"LivePlayView"}),l}(),e.PlayViewReq=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.epId=i.int64();break}case 2:{a.cid=i.int64();break}case 3:{a.qn=i.int64();break}case 4:{a.fnver=i.int32();break}case 5:{a.fnval=i.int32();break}case 6:{a.download=i.uint32();break}case 7:{a.forceHost=i.int32();break}case 8:{a.fourk=i.bool();break}case 9:{a.spmid=i.string();break}case 10:{a.fromSpmid=i.string();break}case 11:{a.teenagersMode=i.int32();break}case 12:{a.preferCodecType=i.int32();break}case 13:{a.isPreview=i.bool();break}case 14:{a.roomId=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.pgc.gateway.player.v1.PlayViewReq)return i;let n=new u.bilibili.pgc.gateway.player.v1.PlayViewReq;switch(i.epId!=null&&(r.Long?(n.epId=r.Long.fromValue(i.epId)).unsigned=!1:typeof i.epId=="string"?n.epId=parseInt(i.epId,10):typeof i.epId=="number"?n.epId=i.epId:typeof i.epId=="object"&&(n.epId=new r.LongBits(i.epId.low>>>0,i.epId.high>>>0).toNumber())),i.cid!=null&&(r.Long?(n.cid=r.Long.fromValue(i.cid)).unsigned=!1:typeof i.cid=="string"?n.cid=parseInt(i.cid,10):typeof i.cid=="number"?n.cid=i.cid:typeof i.cid=="object"&&(n.cid=new r.LongBits(i.cid.low>>>0,i.cid.high>>>0).toNumber())),i.qn!=null&&(r.Long?(n.qn=r.Long.fromValue(i.qn)).unsigned=!1:typeof i.qn=="string"?n.qn=parseInt(i.qn,10):typeof i.qn=="number"?n.qn=i.qn:typeof i.qn=="object"&&(n.qn=new r.LongBits(i.qn.low>>>0,i.qn.high>>>0).toNumber())),i.fnver!=null&&(n.fnver=i.fnver|0),i.fnval!=null&&(n.fnval=i.fnval|0),i.download!=null&&(n.download=i.download>>>0),i.forceHost!=null&&(n.forceHost=i.forceHost|0),i.fourk!=null&&(n.fourk=!!i.fourk),i.spmid!=null&&(n.spmid=String(i.spmid)),i.fromSpmid!=null&&(n.fromSpmid=String(i.fromSpmid)),i.teenagersMode!=null&&(n.teenagersMode=i.teenagersMode|0),i.preferCodecType){default:if(typeof i.preferCodecType=="number"){n.preferCodecType=i.preferCodecType;break}break;case"NOCODE":case 0:n.preferCodecType=0;break;case"CODE264":case 1:n.preferCodecType=1;break;case"CODE265":case 2:n.preferCodecType=2;break;case"CODEAV1":case 3:n.preferCodecType=3;break}return i.isPreview!=null&&(n.isPreview=!!i.isPreview),i.roomId!=null&&(r.Long?(n.roomId=r.Long.fromValue(i.roomId)).unsigned=!1:typeof i.roomId=="string"?n.roomId=parseInt(i.roomId,10):typeof i.roomId=="number"?n.roomId=i.roomId:typeof i.roomId=="object"&&(n.roomId=new r.LongBits(i.roomId.low>>>0,i.roomId.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.epId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.epId=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.cid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.cid=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.qn=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.qn=n.longs===String?"0":0;if(o.fnver=0,o.fnval=0,o.download=0,o.forceHost=0,o.fourk=!1,o.spmid="",o.fromSpmid="",o.teenagersMode=0,o.preferCodecType=n.enums===String?"NOCODE":0,o.isPreview=!1,r.Long){let a=new r.Long(0,0,!1);o.roomId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.roomId=n.longs===String?"0":0}return i.epId!=null&&i.hasOwnProperty("epId")&&(typeof i.epId=="number"?o.epId=n.longs===String?String(i.epId):i.epId:o.epId=n.longs===String?r.Long.prototype.toString.call(i.epId):n.longs===Number?new r.LongBits(i.epId.low>>>0,i.epId.high>>>0).toNumber():i.epId),i.cid!=null&&i.hasOwnProperty("cid")&&(typeof i.cid=="number"?o.cid=n.longs===String?String(i.cid):i.cid:o.cid=n.longs===String?r.Long.prototype.toString.call(i.cid):n.longs===Number?new r.LongBits(i.cid.low>>>0,i.cid.high>>>0).toNumber():i.cid),i.qn!=null&&i.hasOwnProperty("qn")&&(typeof i.qn=="number"?o.qn=n.longs===String?String(i.qn):i.qn:o.qn=n.longs===String?r.Long.prototype.toString.call(i.qn):n.longs===Number?new r.LongBits(i.qn.low>>>0,i.qn.high>>>0).toNumber():i.qn),i.fnver!=null&&i.hasOwnProperty("fnver")&&(o.fnver=i.fnver),i.fnval!=null&&i.hasOwnProperty("fnval")&&(o.fnval=i.fnval),i.download!=null&&i.hasOwnProperty("download")&&(o.download=i.download),i.forceHost!=null&&i.hasOwnProperty("forceHost")&&(o.forceHost=i.forceHost),i.fourk!=null&&i.hasOwnProperty("fourk")&&(o.fourk=i.fourk),i.spmid!=null&&i.hasOwnProperty("spmid")&&(o.spmid=i.spmid),i.fromSpmid!=null&&i.hasOwnProperty("fromSpmid")&&(o.fromSpmid=i.fromSpmid),i.teenagersMode!=null&&i.hasOwnProperty("teenagersMode")&&(o.teenagersMode=i.teenagersMode),i.preferCodecType!=null&&i.hasOwnProperty("preferCodecType")&&(o.preferCodecType=n.enums===String?u.bilibili.app.playurl.v1.CodeType[i.preferCodecType]===void 0?i.preferCodecType:u.bilibili.app.playurl.v1.CodeType[i.preferCodecType]:i.preferCodecType),i.isPreview!=null&&i.hasOwnProperty("isPreview")&&(o.isPreview=i.isPreview),i.roomId!=null&&i.hasOwnProperty("roomId")&&(typeof i.roomId=="number"?o.roomId=n.longs===String?String(i.roomId):i.roomId:o.roomId=n.longs===String?r.Long.prototype.toString.call(i.roomId):n.longs===Number?new r.LongBits(i.roomId.low>>>0,i.roomId.high>>>0).toNumber():i.roomId),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.pgc.gateway.player.v1.PlayViewReq"},l}(),e.ProjectReq=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.epId=i.int64();break}case 2:{a.cid=i.int64();break}case 3:{a.qn=i.int64();break}case 4:{a.fnver=i.int32();break}case 5:{a.fnval=i.int32();break}case 6:{a.download=i.uint32();break}case 7:{a.forceHost=i.int32();break}case 8:{a.fourk=i.bool();break}case 9:{a.spmid=i.string();break}case 10:{a.fromSpmid=i.string();break}case 11:{a.protocol=i.int32();break}case 12:{a.deviceType=i.int32();break}case 13:{a.useNewProjectCode=i.bool();break}case 14:{a.aid=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.pgc.gateway.player.v1.ProjectReq)return i;let n=new u.bilibili.pgc.gateway.player.v1.ProjectReq;return i.epId!=null&&(r.Long?(n.epId=r.Long.fromValue(i.epId)).unsigned=!1:typeof i.epId=="string"?n.epId=parseInt(i.epId,10):typeof i.epId=="number"?n.epId=i.epId:typeof i.epId=="object"&&(n.epId=new r.LongBits(i.epId.low>>>0,i.epId.high>>>0).toNumber())),i.cid!=null&&(r.Long?(n.cid=r.Long.fromValue(i.cid)).unsigned=!1:typeof i.cid=="string"?n.cid=parseInt(i.cid,10):typeof i.cid=="number"?n.cid=i.cid:typeof i.cid=="object"&&(n.cid=new r.LongBits(i.cid.low>>>0,i.cid.high>>>0).toNumber())),i.qn!=null&&(r.Long?(n.qn=r.Long.fromValue(i.qn)).unsigned=!1:typeof i.qn=="string"?n.qn=parseInt(i.qn,10):typeof i.qn=="number"?n.qn=i.qn:typeof i.qn=="object"&&(n.qn=new r.LongBits(i.qn.low>>>0,i.qn.high>>>0).toNumber())),i.fnver!=null&&(n.fnver=i.fnver|0),i.fnval!=null&&(n.fnval=i.fnval|0),i.download!=null&&(n.download=i.download>>>0),i.forceHost!=null&&(n.forceHost=i.forceHost|0),i.fourk!=null&&(n.fourk=!!i.fourk),i.spmid!=null&&(n.spmid=String(i.spmid)),i.fromSpmid!=null&&(n.fromSpmid=String(i.fromSpmid)),i.protocol!=null&&(n.protocol=i.protocol|0),i.deviceType!=null&&(n.deviceType=i.deviceType|0),i.useNewProjectCode!=null&&(n.useNewProjectCode=!!i.useNewProjectCode),i.aid!=null&&(r.Long?(n.aid=r.Long.fromValue(i.aid)).unsigned=!1:typeof i.aid=="string"?n.aid=parseInt(i.aid,10):typeof i.aid=="number"?n.aid=i.aid:typeof i.aid=="object"&&(n.aid=new r.LongBits(i.aid.low>>>0,i.aid.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.epId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.epId=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.cid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.cid=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.qn=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.qn=n.longs===String?"0":0;if(o.fnver=0,o.fnval=0,o.download=0,o.forceHost=0,o.fourk=!1,o.spmid="",o.fromSpmid="",o.protocol=0,o.deviceType=0,o.useNewProjectCode=!1,r.Long){let a=new r.Long(0,0,!1);o.aid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.aid=n.longs===String?"0":0}return i.epId!=null&&i.hasOwnProperty("epId")&&(typeof i.epId=="number"?o.epId=n.longs===String?String(i.epId):i.epId:o.epId=n.longs===String?r.Long.prototype.toString.call(i.epId):n.longs===Number?new r.LongBits(i.epId.low>>>0,i.epId.high>>>0).toNumber():i.epId),i.cid!=null&&i.hasOwnProperty("cid")&&(typeof i.cid=="number"?o.cid=n.longs===String?String(i.cid):i.cid:o.cid=n.longs===String?r.Long.prototype.toString.call(i.cid):n.longs===Number?new r.LongBits(i.cid.low>>>0,i.cid.high>>>0).toNumber():i.cid),i.qn!=null&&i.hasOwnProperty("qn")&&(typeof i.qn=="number"?o.qn=n.longs===String?String(i.qn):i.qn:o.qn=n.longs===String?r.Long.prototype.toString.call(i.qn):n.longs===Number?new r.LongBits(i.qn.low>>>0,i.qn.high>>>0).toNumber():i.qn),i.fnver!=null&&i.hasOwnProperty("fnver")&&(o.fnver=i.fnver),i.fnval!=null&&i.hasOwnProperty("fnval")&&(o.fnval=i.fnval),i.download!=null&&i.hasOwnProperty("download")&&(o.download=i.download),i.forceHost!=null&&i.hasOwnProperty("forceHost")&&(o.forceHost=i.forceHost),i.fourk!=null&&i.hasOwnProperty("fourk")&&(o.fourk=i.fourk),i.spmid!=null&&i.hasOwnProperty("spmid")&&(o.spmid=i.spmid),i.fromSpmid!=null&&i.hasOwnProperty("fromSpmid")&&(o.fromSpmid=i.fromSpmid),i.protocol!=null&&i.hasOwnProperty("protocol")&&(o.protocol=i.protocol),i.deviceType!=null&&i.hasOwnProperty("deviceType")&&(o.deviceType=i.deviceType),i.useNewProjectCode!=null&&i.hasOwnProperty("useNewProjectCode")&&(o.useNewProjectCode=i.useNewProjectCode),i.aid!=null&&i.hasOwnProperty("aid")&&(typeof i.aid=="number"?o.aid=n.longs===String?String(i.aid):i.aid:o.aid=n.longs===String?r.Long.prototype.toString.call(i.aid):n.longs===Number?new r.LongBits(i.aid.low>>>0,i.aid.high>>>0).toNumber():i.aid),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.pgc.gateway.player.v1.ProjectReq"},l}(),e.PlayViewReply=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.videoInfo=u.bilibili.app.playurl.v1.VideoInfo.decode(i,i.uint32());break}case 2:{a.playConf=u.bilibili.pgc.gateway.player.v1.PlayAbilityConf.decode(i,i.uint32());break}case 3:{a.business=u.bilibili.pgc.gateway.player.v1.BusinessInfo.decode(i,i.uint32());break}case 4:{a.event=u.bilibili.pgc.gateway.player.v1.Event.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.pgc.gateway.player.v1.PlayViewReply)return i;let n=new u.bilibili.pgc.gateway.player.v1.PlayViewReply;if(i.videoInfo!=null){if(typeof i.videoInfo!="object")throw TypeError(".bilibili.pgc.gateway.player.v1.PlayViewReply.videoInfo: object expected");n.videoInfo=u.bilibili.app.playurl.v1.VideoInfo.fromObject(i.videoInfo)}if(i.playConf!=null){if(typeof i.playConf!="object")throw TypeError(".bilibili.pgc.gateway.player.v1.PlayViewReply.playConf: object expected");n.playConf=u.bilibili.pgc.gateway.player.v1.PlayAbilityConf.fromObject(i.playConf)}if(i.business!=null){if(typeof i.business!="object")throw TypeError(".bilibili.pgc.gateway.player.v1.PlayViewReply.business: object expected");n.business=u.bilibili.pgc.gateway.player.v1.BusinessInfo.fromObject(i.business)}if(i.event!=null){if(typeof i.event!="object")throw TypeError(".bilibili.pgc.gateway.player.v1.PlayViewReply.event: object expected");n.event=u.bilibili.pgc.gateway.player.v1.Event.fromObject(i.event)}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.videoInfo=null,o.playConf=null,o.business=null,o.event=null),i.videoInfo!=null&&i.hasOwnProperty("videoInfo")&&(o.videoInfo=u.bilibili.app.playurl.v1.VideoInfo.toObject(i.videoInfo,n)),i.playConf!=null&&i.hasOwnProperty("playConf")&&(o.playConf=u.bilibili.pgc.gateway.player.v1.PlayAbilityConf.toObject(i.playConf,n)),i.business!=null&&i.hasOwnProperty("business")&&(o.business=u.bilibili.pgc.gateway.player.v1.BusinessInfo.toObject(i.business,n)),i.event!=null&&i.hasOwnProperty("event")&&(o.event=u.bilibili.pgc.gateway.player.v1.Event.toObject(i.event,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.pgc.gateway.player.v1.PlayViewReply"},l}(),e.Event=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.shake=u.bilibili.pgc.gateway.player.v1.Shake.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.pgc.gateway.player.v1.Event)return i;let n=new u.bilibili.pgc.gateway.player.v1.Event;if(i.shake!=null){if(typeof i.shake!="object")throw TypeError(".bilibili.pgc.gateway.player.v1.Event.shake: object expected");n.shake=u.bilibili.pgc.gateway.player.v1.Shake.fromObject(i.shake)}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.shake=null),i.shake!=null&&i.hasOwnProperty("shake")&&(o.shake=u.bilibili.pgc.gateway.player.v1.Shake.toObject(i.shake,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.pgc.gateway.player.v1.Event"},l}(),e.Shake=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.file=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.pgc.gateway.player.v1.Shake)return i;let n=new u.bilibili.pgc.gateway.player.v1.Shake;return i.file!=null&&(n.file=String(i.file)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.file=""),i.file!=null&&i.hasOwnProperty("file")&&(o.file=i.file),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.pgc.gateway.player.v1.Shake"},l}(),e.BusinessInfo=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.isPreview=i.bool();break}case 2:{a.bp=i.bool();break}case 3:{a.marlinToken=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.pgc.gateway.player.v1.BusinessInfo)return i;let n=new u.bilibili.pgc.gateway.player.v1.BusinessInfo;return i.isPreview!=null&&(n.isPreview=!!i.isPreview),i.bp!=null&&(n.bp=!!i.bp),i.marlinToken!=null&&(n.marlinToken=String(i.marlinToken)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.isPreview=!1,o.bp=!1,o.marlinToken=""),i.isPreview!=null&&i.hasOwnProperty("isPreview")&&(o.isPreview=i.isPreview),i.bp!=null&&i.hasOwnProperty("bp")&&(o.bp=i.bp),i.marlinToken!=null&&i.hasOwnProperty("marlinToken")&&(o.marlinToken=i.marlinToken),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.pgc.gateway.player.v1.BusinessInfo"},l}(),e.PlayAbilityConf=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.backgroundPlayDisable=i.bool();break}case 2:{a.flipDisable=i.bool();break}case 3:{a.castDisable=i.bool();break}case 4:{a.feedbackDisable=i.bool();break}case 5:{a.subtitleDisable=i.bool();break}case 6:{a.playbackRateDisable=i.bool();break}case 7:{a.timeUpDisable=i.bool();break}case 8:{a.playbackModeDisable=i.bool();break}case 9:{a.scaleModeDisable=i.bool();break}case 10:{a.likeDisable=i.bool();break}case 11:{a.dislikeDisable=i.bool();break}case 12:{a.coinDisable=i.bool();break}case 13:{a.elecDisable=i.bool();break}case 14:{a.shareDisable=i.bool();break}case 15:{a.screenShotDisable=i.bool();break}case 16:{a.lockScreenDisable=i.bool();break}case 17:{a.recommendDisable=i.bool();break}case 18:{a.playbackSpeedDisable=i.bool();break}case 19:{a.definitionDisable=i.bool();break}case 20:{a.selectionsDisable=i.bool();break}case 21:{a.nextDisable=i.bool();break}case 22:{a.editDmDisable=i.bool();break}case 23:{a.smallWindowDisable=i.bool();break}case 24:{a.shakeDisable=i.bool();break}case 25:{a.outerDmDisable=i.bool();break}case 26:{a.innerDmDisable=i.bool();break}case 27:{a.freyaEnterDisable=i.bool();break}case 28:{a.dolbyDisable=i.bool();break}case 29:{a.freyaFullDisable=i.bool();break}case 30:{a.skipOpedSwitchDisable=i.bool();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.pgc.gateway.player.v1.PlayAbilityConf)return i;let n=new u.bilibili.pgc.gateway.player.v1.PlayAbilityConf;return i.backgroundPlayDisable!=null&&(n.backgroundPlayDisable=!!i.backgroundPlayDisable),i.flipDisable!=null&&(n.flipDisable=!!i.flipDisable),i.castDisable!=null&&(n.castDisable=!!i.castDisable),i.feedbackDisable!=null&&(n.feedbackDisable=!!i.feedbackDisable),i.subtitleDisable!=null&&(n.subtitleDisable=!!i.subtitleDisable),i.playbackRateDisable!=null&&(n.playbackRateDisable=!!i.playbackRateDisable),i.timeUpDisable!=null&&(n.timeUpDisable=!!i.timeUpDisable),i.playbackModeDisable!=null&&(n.playbackModeDisable=!!i.playbackModeDisable),i.scaleModeDisable!=null&&(n.scaleModeDisable=!!i.scaleModeDisable),i.likeDisable!=null&&(n.likeDisable=!!i.likeDisable),i.dislikeDisable!=null&&(n.dislikeDisable=!!i.dislikeDisable),i.coinDisable!=null&&(n.coinDisable=!!i.coinDisable),i.elecDisable!=null&&(n.elecDisable=!!i.elecDisable),i.shareDisable!=null&&(n.shareDisable=!!i.shareDisable),i.screenShotDisable!=null&&(n.screenShotDisable=!!i.screenShotDisable),i.lockScreenDisable!=null&&(n.lockScreenDisable=!!i.lockScreenDisable),i.recommendDisable!=null&&(n.recommendDisable=!!i.recommendDisable),i.playbackSpeedDisable!=null&&(n.playbackSpeedDisable=!!i.playbackSpeedDisable),i.definitionDisable!=null&&(n.definitionDisable=!!i.definitionDisable),i.selectionsDisable!=null&&(n.selectionsDisable=!!i.selectionsDisable),i.nextDisable!=null&&(n.nextDisable=!!i.nextDisable),i.editDmDisable!=null&&(n.editDmDisable=!!i.editDmDisable),i.smallWindowDisable!=null&&(n.smallWindowDisable=!!i.smallWindowDisable),i.shakeDisable!=null&&(n.shakeDisable=!!i.shakeDisable),i.outerDmDisable!=null&&(n.outerDmDisable=!!i.outerDmDisable),i.innerDmDisable!=null&&(n.innerDmDisable=!!i.innerDmDisable),i.freyaEnterDisable!=null&&(n.freyaEnterDisable=!!i.freyaEnterDisable),i.dolbyDisable!=null&&(n.dolbyDisable=!!i.dolbyDisable),i.freyaFullDisable!=null&&(n.freyaFullDisable=!!i.freyaFullDisable),i.skipOpedSwitchDisable!=null&&(n.skipOpedSwitchDisable=!!i.skipOpedSwitchDisable),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.backgroundPlayDisable=!1,o.flipDisable=!1,o.castDisable=!1,o.feedbackDisable=!1,o.subtitleDisable=!1,o.playbackRateDisable=!1,o.timeUpDisable=!1,o.playbackModeDisable=!1,o.scaleModeDisable=!1,o.likeDisable=!1,o.dislikeDisable=!1,o.coinDisable=!1,o.elecDisable=!1,o.shareDisable=!1,o.screenShotDisable=!1,o.lockScreenDisable=!1,o.recommendDisable=!1,o.playbackSpeedDisable=!1,o.definitionDisable=!1,o.selectionsDisable=!1,o.nextDisable=!1,o.editDmDisable=!1,o.smallWindowDisable=!1,o.shakeDisable=!1,o.outerDmDisable=!1,o.innerDmDisable=!1,o.freyaEnterDisable=!1,o.dolbyDisable=!1,o.freyaFullDisable=!1,o.skipOpedSwitchDisable=!1),i.backgroundPlayDisable!=null&&i.hasOwnProperty("backgroundPlayDisable")&&(o.backgroundPlayDisable=i.backgroundPlayDisable),i.flipDisable!=null&&i.hasOwnProperty("flipDisable")&&(o.flipDisable=i.flipDisable),i.castDisable!=null&&i.hasOwnProperty("castDisable")&&(o.castDisable=i.castDisable),i.feedbackDisable!=null&&i.hasOwnProperty("feedbackDisable")&&(o.feedbackDisable=i.feedbackDisable),i.subtitleDisable!=null&&i.hasOwnProperty("subtitleDisable")&&(o.subtitleDisable=i.subtitleDisable),i.playbackRateDisable!=null&&i.hasOwnProperty("playbackRateDisable")&&(o.playbackRateDisable=i.playbackRateDisable),i.timeUpDisable!=null&&i.hasOwnProperty("timeUpDisable")&&(o.timeUpDisable=i.timeUpDisable),i.playbackModeDisable!=null&&i.hasOwnProperty("playbackModeDisable")&&(o.playbackModeDisable=i.playbackModeDisable),i.scaleModeDisable!=null&&i.hasOwnProperty("scaleModeDisable")&&(o.scaleModeDisable=i.scaleModeDisable),i.likeDisable!=null&&i.hasOwnProperty("likeDisable")&&(o.likeDisable=i.likeDisable),i.dislikeDisable!=null&&i.hasOwnProperty("dislikeDisable")&&(o.dislikeDisable=i.dislikeDisable),i.coinDisable!=null&&i.hasOwnProperty("coinDisable")&&(o.coinDisable=i.coinDisable),i.elecDisable!=null&&i.hasOwnProperty("elecDisable")&&(o.elecDisable=i.elecDisable),i.shareDisable!=null&&i.hasOwnProperty("shareDisable")&&(o.shareDisable=i.shareDisable),i.screenShotDisable!=null&&i.hasOwnProperty("screenShotDisable")&&(o.screenShotDisable=i.screenShotDisable),i.lockScreenDisable!=null&&i.hasOwnProperty("lockScreenDisable")&&(o.lockScreenDisable=i.lockScreenDisable),i.recommendDisable!=null&&i.hasOwnProperty("recommendDisable")&&(o.recommendDisable=i.recommendDisable),i.playbackSpeedDisable!=null&&i.hasOwnProperty("playbackSpeedDisable")&&(o.playbackSpeedDisable=i.playbackSpeedDisable),i.definitionDisable!=null&&i.hasOwnProperty("definitionDisable")&&(o.definitionDisable=i.definitionDisable),i.selectionsDisable!=null&&i.hasOwnProperty("selectionsDisable")&&(o.selectionsDisable=i.selectionsDisable),i.nextDisable!=null&&i.hasOwnProperty("nextDisable")&&(o.nextDisable=i.nextDisable),i.editDmDisable!=null&&i.hasOwnProperty("editDmDisable")&&(o.editDmDisable=i.editDmDisable),i.smallWindowDisable!=null&&i.hasOwnProperty("smallWindowDisable")&&(o.smallWindowDisable=i.smallWindowDisable),i.shakeDisable!=null&&i.hasOwnProperty("shakeDisable")&&(o.shakeDisable=i.shakeDisable),i.outerDmDisable!=null&&i.hasOwnProperty("outerDmDisable")&&(o.outerDmDisable=i.outerDmDisable),i.innerDmDisable!=null&&i.hasOwnProperty("innerDmDisable")&&(o.innerDmDisable=i.innerDmDisable),i.freyaEnterDisable!=null&&i.hasOwnProperty("freyaEnterDisable")&&(o.freyaEnterDisable=i.freyaEnterDisable),i.dolbyDisable!=null&&i.hasOwnProperty("dolbyDisable")&&(o.dolbyDisable=i.dolbyDisable),i.freyaFullDisable!=null&&i.hasOwnProperty("freyaFullDisable")&&(o.freyaFullDisable=i.freyaFullDisable),i.skipOpedSwitchDisable!=null&&i.hasOwnProperty("skipOpedSwitchDisable")&&(o.skipOpedSwitchDisable=i.skipOpedSwitchDisable),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.pgc.gateway.player.v1.PlayAbilityConf"},l}(),e.ProjectReply=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.project=u.bilibili.app.playurl.v1.PlayURLReply.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.pgc.gateway.player.v1.ProjectReply)return i;let n=new u.bilibili.pgc.gateway.player.v1.ProjectReply;if(i.project!=null){if(typeof i.project!="object")throw TypeError(".bilibili.pgc.gateway.player.v1.ProjectReply.project: object expected");n.project=u.bilibili.app.playurl.v1.PlayURLReply.fromObject(i.project)}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.project=null),i.project!=null&&i.hasOwnProperty("project")&&(o.project=u.bilibili.app.playurl.v1.PlayURLReply.toObject(i.project,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.pgc.gateway.player.v1.ProjectReply"},l}(),e.LivePlayViewReq=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.epId=i.int64();break}case 2:{a.quality=i.uint32();break}case 3:{a.ptype=i.uint32();break}case 4:{a.https=i.bool();break}case 5:{a.playType=i.uint32();break}case 6:{a.deviceType=i.int32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.pgc.gateway.player.v1.LivePlayViewReq)return i;let n=new u.bilibili.pgc.gateway.player.v1.LivePlayViewReq;return i.epId!=null&&(r.Long?(n.epId=r.Long.fromValue(i.epId)).unsigned=!1:typeof i.epId=="string"?n.epId=parseInt(i.epId,10):typeof i.epId=="number"?n.epId=i.epId:typeof i.epId=="object"&&(n.epId=new r.LongBits(i.epId.low>>>0,i.epId.high>>>0).toNumber())),i.quality!=null&&(n.quality=i.quality>>>0),i.ptype!=null&&(n.ptype=i.ptype>>>0),i.https!=null&&(n.https=!!i.https),i.playType!=null&&(n.playType=i.playType>>>0),i.deviceType!=null&&(n.deviceType=i.deviceType|0),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.epId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.epId=n.longs===String?"0":0;o.quality=0,o.ptype=0,o.https=!1,o.playType=0,o.deviceType=0}return i.epId!=null&&i.hasOwnProperty("epId")&&(typeof i.epId=="number"?o.epId=n.longs===String?String(i.epId):i.epId:o.epId=n.longs===String?r.Long.prototype.toString.call(i.epId):n.longs===Number?new r.LongBits(i.epId.low>>>0,i.epId.high>>>0).toNumber():i.epId),i.quality!=null&&i.hasOwnProperty("quality")&&(o.quality=i.quality),i.ptype!=null&&i.hasOwnProperty("ptype")&&(o.ptype=i.ptype),i.https!=null&&i.hasOwnProperty("https")&&(o.https=i.https),i.playType!=null&&i.hasOwnProperty("playType")&&(o.playType=i.playType),i.deviceType!=null&&i.hasOwnProperty("deviceType")&&(o.deviceType=i.deviceType),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.pgc.gateway.player.v1.LivePlayViewReq"},l}(),e.LivePlayViewReply=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.roomInfo=u.bilibili.pgc.gateway.player.v1.RoomInfo.decode(i,i.uint32());break}case 2:{a.playInfo=u.bilibili.pgc.gateway.player.v1.LivePlayInfo.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.pgc.gateway.player.v1.LivePlayViewReply)return i;let n=new u.bilibili.pgc.gateway.player.v1.LivePlayViewReply;if(i.roomInfo!=null){if(typeof i.roomInfo!="object")throw TypeError(".bilibili.pgc.gateway.player.v1.LivePlayViewReply.roomInfo: object expected");n.roomInfo=u.bilibili.pgc.gateway.player.v1.RoomInfo.fromObject(i.roomInfo)}if(i.playInfo!=null){if(typeof i.playInfo!="object")throw TypeError(".bilibili.pgc.gateway.player.v1.LivePlayViewReply.playInfo: object expected");n.playInfo=u.bilibili.pgc.gateway.player.v1.LivePlayInfo.fromObject(i.playInfo)}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.roomInfo=null,o.playInfo=null),i.roomInfo!=null&&i.hasOwnProperty("roomInfo")&&(o.roomInfo=u.bilibili.pgc.gateway.player.v1.RoomInfo.toObject(i.roomInfo,n)),i.playInfo!=null&&i.hasOwnProperty("playInfo")&&(o.playInfo=u.bilibili.pgc.gateway.player.v1.LivePlayInfo.toObject(i.playInfo,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.pgc.gateway.player.v1.LivePlayViewReply"},l}(),e.RoomInfo=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.roomId=i.int64();break}case 2:{a.uid=i.int64();break}case 3:{a.status=u.bilibili.pgc.gateway.player.v1.RoomStatusInfo.decode(i,i.uint32());break}case 4:{a.show=u.bilibili.pgc.gateway.player.v1.RoomShowInfo.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.pgc.gateway.player.v1.RoomInfo)return i;let n=new u.bilibili.pgc.gateway.player.v1.RoomInfo;if(i.roomId!=null&&(r.Long?(n.roomId=r.Long.fromValue(i.roomId)).unsigned=!1:typeof i.roomId=="string"?n.roomId=parseInt(i.roomId,10):typeof i.roomId=="number"?n.roomId=i.roomId:typeof i.roomId=="object"&&(n.roomId=new r.LongBits(i.roomId.low>>>0,i.roomId.high>>>0).toNumber())),i.uid!=null&&(r.Long?(n.uid=r.Long.fromValue(i.uid)).unsigned=!1:typeof i.uid=="string"?n.uid=parseInt(i.uid,10):typeof i.uid=="number"?n.uid=i.uid:typeof i.uid=="object"&&(n.uid=new r.LongBits(i.uid.low>>>0,i.uid.high>>>0).toNumber())),i.status!=null){if(typeof i.status!="object")throw TypeError(".bilibili.pgc.gateway.player.v1.RoomInfo.status: object expected");n.status=u.bilibili.pgc.gateway.player.v1.RoomStatusInfo.fromObject(i.status)}if(i.show!=null){if(typeof i.show!="object")throw TypeError(".bilibili.pgc.gateway.player.v1.RoomInfo.show: object expected");n.show=u.bilibili.pgc.gateway.player.v1.RoomShowInfo.fromObject(i.show)}return n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.roomId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.roomId=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.uid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.uid=n.longs===String?"0":0;o.status=null,o.show=null}return i.roomId!=null&&i.hasOwnProperty("roomId")&&(typeof i.roomId=="number"?o.roomId=n.longs===String?String(i.roomId):i.roomId:o.roomId=n.longs===String?r.Long.prototype.toString.call(i.roomId):n.longs===Number?new r.LongBits(i.roomId.low>>>0,i.roomId.high>>>0).toNumber():i.roomId),i.uid!=null&&i.hasOwnProperty("uid")&&(typeof i.uid=="number"?o.uid=n.longs===String?String(i.uid):i.uid:o.uid=n.longs===String?r.Long.prototype.toString.call(i.uid):n.longs===Number?new r.LongBits(i.uid.low>>>0,i.uid.high>>>0).toNumber():i.uid),i.status!=null&&i.hasOwnProperty("status")&&(o.status=u.bilibili.pgc.gateway.player.v1.RoomStatusInfo.toObject(i.status,n)),i.show!=null&&i.hasOwnProperty("show")&&(o.show=u.bilibili.pgc.gateway.player.v1.RoomShowInfo.toObject(i.show,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.pgc.gateway.player.v1.RoomInfo"},l}(),e.RoomStatusInfo=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.liveStatus=i.int64();break}case 2:{a.liveScreenType=i.int64();break}case 3:{a.liveMark=i.int64();break}case 4:{a.lockStatus=i.int64();break}case 5:{a.lockTime=i.int64();break}case 6:{a.hiddenStatus=i.int64();break}case 7:{a.hiddenTime=i.int64();break}case 8:{a.liveType=i.int64();break}case 9:{a.roomShield=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.pgc.gateway.player.v1.RoomStatusInfo)return i;let n=new u.bilibili.pgc.gateway.player.v1.RoomStatusInfo;return i.liveStatus!=null&&(r.Long?(n.liveStatus=r.Long.fromValue(i.liveStatus)).unsigned=!1:typeof i.liveStatus=="string"?n.liveStatus=parseInt(i.liveStatus,10):typeof i.liveStatus=="number"?n.liveStatus=i.liveStatus:typeof i.liveStatus=="object"&&(n.liveStatus=new r.LongBits(i.liveStatus.low>>>0,i.liveStatus.high>>>0).toNumber())),i.liveScreenType!=null&&(r.Long?(n.liveScreenType=r.Long.fromValue(i.liveScreenType)).unsigned=!1:typeof i.liveScreenType=="string"?n.liveScreenType=parseInt(i.liveScreenType,10):typeof i.liveScreenType=="number"?n.liveScreenType=i.liveScreenType:typeof i.liveScreenType=="object"&&(n.liveScreenType=new r.LongBits(i.liveScreenType.low>>>0,i.liveScreenType.high>>>0).toNumber())),i.liveMark!=null&&(r.Long?(n.liveMark=r.Long.fromValue(i.liveMark)).unsigned=!1:typeof i.liveMark=="string"?n.liveMark=parseInt(i.liveMark,10):typeof i.liveMark=="number"?n.liveMark=i.liveMark:typeof i.liveMark=="object"&&(n.liveMark=new r.LongBits(i.liveMark.low>>>0,i.liveMark.high>>>0).toNumber())),i.lockStatus!=null&&(r.Long?(n.lockStatus=r.Long.fromValue(i.lockStatus)).unsigned=!1:typeof i.lockStatus=="string"?n.lockStatus=parseInt(i.lockStatus,10):typeof i.lockStatus=="number"?n.lockStatus=i.lockStatus:typeof i.lockStatus=="object"&&(n.lockStatus=new r.LongBits(i.lockStatus.low>>>0,i.lockStatus.high>>>0).toNumber())),i.lockTime!=null&&(r.Long?(n.lockTime=r.Long.fromValue(i.lockTime)).unsigned=!1:typeof i.lockTime=="string"?n.lockTime=parseInt(i.lockTime,10):typeof i.lockTime=="number"?n.lockTime=i.lockTime:typeof i.lockTime=="object"&&(n.lockTime=new r.LongBits(i.lockTime.low>>>0,i.lockTime.high>>>0).toNumber())),i.hiddenStatus!=null&&(r.Long?(n.hiddenStatus=r.Long.fromValue(i.hiddenStatus)).unsigned=!1:typeof i.hiddenStatus=="string"?n.hiddenStatus=parseInt(i.hiddenStatus,10):typeof i.hiddenStatus=="number"?n.hiddenStatus=i.hiddenStatus:typeof i.hiddenStatus=="object"&&(n.hiddenStatus=new r.LongBits(i.hiddenStatus.low>>>0,i.hiddenStatus.high>>>0).toNumber())),i.hiddenTime!=null&&(r.Long?(n.hiddenTime=r.Long.fromValue(i.hiddenTime)).unsigned=!1:typeof i.hiddenTime=="string"?n.hiddenTime=parseInt(i.hiddenTime,10):typeof i.hiddenTime=="number"?n.hiddenTime=i.hiddenTime:typeof i.hiddenTime=="object"&&(n.hiddenTime=new r.LongBits(i.hiddenTime.low>>>0,i.hiddenTime.high>>>0).toNumber())),i.liveType!=null&&(r.Long?(n.liveType=r.Long.fromValue(i.liveType)).unsigned=!1:typeof i.liveType=="string"?n.liveType=parseInt(i.liveType,10):typeof i.liveType=="number"?n.liveType=i.liveType:typeof i.liveType=="object"&&(n.liveType=new r.LongBits(i.liveType.low>>>0,i.liveType.high>>>0).toNumber())),i.roomShield!=null&&(r.Long?(n.roomShield=r.Long.fromValue(i.roomShield)).unsigned=!1:typeof i.roomShield=="string"?n.roomShield=parseInt(i.roomShield,10):typeof i.roomShield=="number"?n.roomShield=i.roomShield:typeof i.roomShield=="object"&&(n.roomShield=new r.LongBits(i.roomShield.low>>>0,i.roomShield.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.liveStatus=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.liveStatus=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.liveScreenType=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.liveScreenType=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.liveMark=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.liveMark=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.lockStatus=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.lockStatus=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.lockTime=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.lockTime=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.hiddenStatus=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.hiddenStatus=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.hiddenTime=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.hiddenTime=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.liveType=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.liveType=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.roomShield=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.roomShield=n.longs===String?"0":0}return i.liveStatus!=null&&i.hasOwnProperty("liveStatus")&&(typeof i.liveStatus=="number"?o.liveStatus=n.longs===String?String(i.liveStatus):i.liveStatus:o.liveStatus=n.longs===String?r.Long.prototype.toString.call(i.liveStatus):n.longs===Number?new r.LongBits(i.liveStatus.low>>>0,i.liveStatus.high>>>0).toNumber():i.liveStatus),i.liveScreenType!=null&&i.hasOwnProperty("liveScreenType")&&(typeof i.liveScreenType=="number"?o.liveScreenType=n.longs===String?String(i.liveScreenType):i.liveScreenType:o.liveScreenType=n.longs===String?r.Long.prototype.toString.call(i.liveScreenType):n.longs===Number?new r.LongBits(i.liveScreenType.low>>>0,i.liveScreenType.high>>>0).toNumber():i.liveScreenType),i.liveMark!=null&&i.hasOwnProperty("liveMark")&&(typeof i.liveMark=="number"?o.liveMark=n.longs===String?String(i.liveMark):i.liveMark:o.liveMark=n.longs===String?r.Long.prototype.toString.call(i.liveMark):n.longs===Number?new r.LongBits(i.liveMark.low>>>0,i.liveMark.high>>>0).toNumber():i.liveMark),i.lockStatus!=null&&i.hasOwnProperty("lockStatus")&&(typeof i.lockStatus=="number"?o.lockStatus=n.longs===String?String(i.lockStatus):i.lockStatus:o.lockStatus=n.longs===String?r.Long.prototype.toString.call(i.lockStatus):n.longs===Number?new r.LongBits(i.lockStatus.low>>>0,i.lockStatus.high>>>0).toNumber():i.lockStatus),i.lockTime!=null&&i.hasOwnProperty("lockTime")&&(typeof i.lockTime=="number"?o.lockTime=n.longs===String?String(i.lockTime):i.lockTime:o.lockTime=n.longs===String?r.Long.prototype.toString.call(i.lockTime):n.longs===Number?new r.LongBits(i.lockTime.low>>>0,i.lockTime.high>>>0).toNumber():i.lockTime),i.hiddenStatus!=null&&i.hasOwnProperty("hiddenStatus")&&(typeof i.hiddenStatus=="number"?o.hiddenStatus=n.longs===String?String(i.hiddenStatus):i.hiddenStatus:o.hiddenStatus=n.longs===String?r.Long.prototype.toString.call(i.hiddenStatus):n.longs===Number?new r.LongBits(i.hiddenStatus.low>>>0,i.hiddenStatus.high>>>0).toNumber():i.hiddenStatus),i.hiddenTime!=null&&i.hasOwnProperty("hiddenTime")&&(typeof i.hiddenTime=="number"?o.hiddenTime=n.longs===String?String(i.hiddenTime):i.hiddenTime:o.hiddenTime=n.longs===String?r.Long.prototype.toString.call(i.hiddenTime):n.longs===Number?new r.LongBits(i.hiddenTime.low>>>0,i.hiddenTime.high>>>0).toNumber():i.hiddenTime),i.liveType!=null&&i.hasOwnProperty("liveType")&&(typeof i.liveType=="number"?o.liveType=n.longs===String?String(i.liveType):i.liveType:o.liveType=n.longs===String?r.Long.prototype.toString.call(i.liveType):n.longs===Number?new r.LongBits(i.liveType.low>>>0,i.liveType.high>>>0).toNumber():i.liveType),i.roomShield!=null&&i.hasOwnProperty("roomShield")&&(typeof i.roomShield=="number"?o.roomShield=n.longs===String?String(i.roomShield):i.roomShield:o.roomShield=n.longs===String?r.Long.prototype.toString.call(i.roomShield):n.longs===Number?new r.LongBits(i.roomShield.low>>>0,i.roomShield.high>>>0).toNumber():i.roomShield),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.pgc.gateway.player.v1.RoomStatusInfo"},l}(),e.RoomShowInfo=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.shortId=i.int64();break}case 8:{a.popularityCount=i.int64();break}case 10:{a.liveStartTime=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.pgc.gateway.player.v1.RoomShowInfo)return i;let n=new u.bilibili.pgc.gateway.player.v1.RoomShowInfo;return i.shortId!=null&&(r.Long?(n.shortId=r.Long.fromValue(i.shortId)).unsigned=!1:typeof i.shortId=="string"?n.shortId=parseInt(i.shortId,10):typeof i.shortId=="number"?n.shortId=i.shortId:typeof i.shortId=="object"&&(n.shortId=new r.LongBits(i.shortId.low>>>0,i.shortId.high>>>0).toNumber())),i.popularityCount!=null&&(r.Long?(n.popularityCount=r.Long.fromValue(i.popularityCount)).unsigned=!1:typeof i.popularityCount=="string"?n.popularityCount=parseInt(i.popularityCount,10):typeof i.popularityCount=="number"?n.popularityCount=i.popularityCount:typeof i.popularityCount=="object"&&(n.popularityCount=new r.LongBits(i.popularityCount.low>>>0,i.popularityCount.high>>>0).toNumber())),i.liveStartTime!=null&&(r.Long?(n.liveStartTime=r.Long.fromValue(i.liveStartTime)).unsigned=!1:typeof i.liveStartTime=="string"?n.liveStartTime=parseInt(i.liveStartTime,10):typeof i.liveStartTime=="number"?n.liveStartTime=i.liveStartTime:typeof i.liveStartTime=="object"&&(n.liveStartTime=new r.LongBits(i.liveStartTime.low>>>0,i.liveStartTime.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.shortId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.shortId=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.popularityCount=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.popularityCount=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.liveStartTime=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.liveStartTime=n.longs===String?"0":0}return i.shortId!=null&&i.hasOwnProperty("shortId")&&(typeof i.shortId=="number"?o.shortId=n.longs===String?String(i.shortId):i.shortId:o.shortId=n.longs===String?r.Long.prototype.toString.call(i.shortId):n.longs===Number?new r.LongBits(i.shortId.low>>>0,i.shortId.high>>>0).toNumber():i.shortId),i.popularityCount!=null&&i.hasOwnProperty("popularityCount")&&(typeof i.popularityCount=="number"?o.popularityCount=n.longs===String?String(i.popularityCount):i.popularityCount:o.popularityCount=n.longs===String?r.Long.prototype.toString.call(i.popularityCount):n.longs===Number?new r.LongBits(i.popularityCount.low>>>0,i.popularityCount.high>>>0).toNumber():i.popularityCount),i.liveStartTime!=null&&i.hasOwnProperty("liveStartTime")&&(typeof i.liveStartTime=="number"?o.liveStartTime=n.longs===String?String(i.liveStartTime):i.liveStartTime:o.liveStartTime=n.longs===String?r.Long.prototype.toString.call(i.liveStartTime):n.longs===Number?new r.LongBits(i.liveStartTime.low>>>0,i.liveStartTime.high>>>0).toNumber():i.liveStartTime),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.pgc.gateway.player.v1.RoomShowInfo"},l}(),e.LivePlayInfo=function(){function l(t){if(this.qualityDescription=[],this.durl=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.currentQn=i.int32();break}case 2:{a.qualityDescription&&a.qualityDescription.length||(a.qualityDescription=[]),a.qualityDescription.push(u.bilibili.pgc.gateway.player.v1.QualityDescription.decode(i,i.uint32()));break}case 3:{a.durl&&a.durl.length||(a.durl=[]),a.durl.push(u.bilibili.pgc.gateway.player.v1.ResponseDataUrl.decode(i,i.uint32()));break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.pgc.gateway.player.v1.LivePlayInfo)return i;let n=new u.bilibili.pgc.gateway.player.v1.LivePlayInfo;if(i.currentQn!=null&&(n.currentQn=i.currentQn|0),i.qualityDescription){if(!Array.isArray(i.qualityDescription))throw TypeError(".bilibili.pgc.gateway.player.v1.LivePlayInfo.qualityDescription: array expected");n.qualityDescription=[];for(let o=0;o>>3){case 1:{a.qn=i.int32();break}case 2:{a.desc=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.pgc.gateway.player.v1.QualityDescription)return i;let n=new u.bilibili.pgc.gateway.player.v1.QualityDescription;return i.qn!=null&&(n.qn=i.qn|0),i.desc!=null&&(n.desc=String(i.desc)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.qn=0,o.desc=""),i.qn!=null&&i.hasOwnProperty("qn")&&(o.qn=i.qn),i.desc!=null&&i.hasOwnProperty("desc")&&(o.desc=i.desc),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.pgc.gateway.player.v1.QualityDescription"},l}(),e.ResponseDataUrl=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.url=i.string();break}case 2:{a.streamType=i.uint32();break}case 3:{a.ptag=i.uint32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.pgc.gateway.player.v1.ResponseDataUrl)return i;let n=new u.bilibili.pgc.gateway.player.v1.ResponseDataUrl;return i.url!=null&&(n.url=String(i.url)),i.streamType!=null&&(n.streamType=i.streamType>>>0),i.ptag!=null&&(n.ptag=i.ptag>>>0),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.url="",o.streamType=0,o.ptag=0),i.url!=null&&i.hasOwnProperty("url")&&(o.url=i.url),i.streamType!=null&&i.hasOwnProperty("streamType")&&(o.streamType=i.streamType),i.ptag!=null&&i.hasOwnProperty("ptag")&&(o.ptag=i.ptag),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.pgc.gateway.player.v1.ResponseDataUrl"},l}(),e}(),c.v2=function(){let e={};return e.PlayURL=function(){function l(t,i,n){b.rpc.Service.call(this,t,i,n)}return(l.prototype=Object.create(b.rpc.Service.prototype)).constructor=l,l.create=function(i,n,o){return new this(i,n,o)},Object.defineProperty(l.prototype.playView=function t(i,n){return this.rpcCall(t,u.bilibili.pgc.gateway.player.v2.PlayViewReq,u.bilibili.pgc.gateway.player.v2.PlayViewReply,i,n)},"name",{value:"PlayView"}),Object.defineProperty(l.prototype.playViewComic=function t(i,n){return this.rpcCall(t,u.bilibili.pgc.gateway.player.v2.PlayViewReq,u.bilibili.pgc.gateway.player.v2.PlayViewReply,i,n)},"name",{value:"PlayViewComic"}),l}(),e.CodeType=function(){let l={},t=Object.create(l);return t[l[0]="NOCODE"]=0,t[l[1]="CODE264"]=1,t[l[2]="CODE265"]=2,t}(),e.PlayErr=function(){let l={},t=Object.create(l);return t[l[0]="NoErr"]=0,t[l[1]="WithMultiDeviceLoginErr"]=1,t}(),e.StreamLimit=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.title=i.string();break}case 2:{a.uri=i.string();break}case 3:{a.msg=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.pgc.gateway.player.v2.StreamLimit)return i;let n=new u.bilibili.pgc.gateway.player.v2.StreamLimit;return i.title!=null&&(n.title=String(i.title)),i.uri!=null&&(n.uri=String(i.uri)),i.msg!=null&&(n.msg=String(i.msg)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.title="",o.uri="",o.msg=""),i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.uri!=null&&i.hasOwnProperty("uri")&&(o.uri=i.uri),i.msg!=null&&i.hasOwnProperty("msg")&&(o.msg=i.msg),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.pgc.gateway.player.v2.StreamLimit"},l}(),e.PlayViewReq=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.epId=i.int64();break}case 2:{a.cid=i.int64();break}case 3:{a.qn=i.int64();break}case 4:{a.fnver=i.int32();break}case 5:{a.fnval=i.int32();break}case 6:{a.download=i.uint32();break}case 7:{a.forceHost=i.int32();break}case 8:{a.fourk=i.bool();break}case 9:{a.spmid=i.string();break}case 10:{a.fromSpmid=i.string();break}case 11:{a.teenagersMode=i.int32();break}case 12:{a.preferCodecType=i.int32();break}case 13:{a.isPreview=i.bool();break}case 14:{a.roomId=i.int64();break}case 15:{a.isNeedViewInfo=i.bool();break}case 16:{a.sceneControl=u.bilibili.pgc.gateway.player.v2.SceneControl.decode(i,i.uint32());break}case 17:{a.inlineScene=i.int32();break}case 18:{a.materialNo=i.int64();break}case 19:{a.securityLevel=i.int32();break}case 20:{a.seasonId=i.int64();break}case 21:{a.dataControl=u.bilibili.pgc.gateway.player.v2.DataControl.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.pgc.gateway.player.v2.PlayViewReq)return i;let n=new u.bilibili.pgc.gateway.player.v2.PlayViewReq;switch(i.epId!=null&&(r.Long?(n.epId=r.Long.fromValue(i.epId)).unsigned=!1:typeof i.epId=="string"?n.epId=parseInt(i.epId,10):typeof i.epId=="number"?n.epId=i.epId:typeof i.epId=="object"&&(n.epId=new r.LongBits(i.epId.low>>>0,i.epId.high>>>0).toNumber())),i.cid!=null&&(r.Long?(n.cid=r.Long.fromValue(i.cid)).unsigned=!1:typeof i.cid=="string"?n.cid=parseInt(i.cid,10):typeof i.cid=="number"?n.cid=i.cid:typeof i.cid=="object"&&(n.cid=new r.LongBits(i.cid.low>>>0,i.cid.high>>>0).toNumber())),i.qn!=null&&(r.Long?(n.qn=r.Long.fromValue(i.qn)).unsigned=!1:typeof i.qn=="string"?n.qn=parseInt(i.qn,10):typeof i.qn=="number"?n.qn=i.qn:typeof i.qn=="object"&&(n.qn=new r.LongBits(i.qn.low>>>0,i.qn.high>>>0).toNumber())),i.fnver!=null&&(n.fnver=i.fnver|0),i.fnval!=null&&(n.fnval=i.fnval|0),i.download!=null&&(n.download=i.download>>>0),i.forceHost!=null&&(n.forceHost=i.forceHost|0),i.fourk!=null&&(n.fourk=!!i.fourk),i.spmid!=null&&(n.spmid=String(i.spmid)),i.fromSpmid!=null&&(n.fromSpmid=String(i.fromSpmid)),i.teenagersMode!=null&&(n.teenagersMode=i.teenagersMode|0),i.preferCodecType){default:if(typeof i.preferCodecType=="number"){n.preferCodecType=i.preferCodecType;break}break;case"NOCODE":case 0:n.preferCodecType=0;break;case"CODE264":case 1:n.preferCodecType=1;break;case"CODE265":case 2:n.preferCodecType=2;break}if(i.isPreview!=null&&(n.isPreview=!!i.isPreview),i.roomId!=null&&(r.Long?(n.roomId=r.Long.fromValue(i.roomId)).unsigned=!1:typeof i.roomId=="string"?n.roomId=parseInt(i.roomId,10):typeof i.roomId=="number"?n.roomId=i.roomId:typeof i.roomId=="object"&&(n.roomId=new r.LongBits(i.roomId.low>>>0,i.roomId.high>>>0).toNumber())),i.isNeedViewInfo!=null&&(n.isNeedViewInfo=!!i.isNeedViewInfo),i.sceneControl!=null){if(typeof i.sceneControl!="object")throw TypeError(".bilibili.pgc.gateway.player.v2.PlayViewReq.sceneControl: object expected");n.sceneControl=u.bilibili.pgc.gateway.player.v2.SceneControl.fromObject(i.sceneControl)}switch(i.inlineScene){default:if(typeof i.inlineScene=="number"){n.inlineScene=i.inlineScene;break}break;case"UNKNOWN":case 0:n.inlineScene=0;break;case"RELATED_EP":case 1:n.inlineScene=1;break;case"HE":case 2:n.inlineScene=2;break;case"SKIP":case 3:n.inlineScene=3;break}switch(i.materialNo!=null&&(r.Long?(n.materialNo=r.Long.fromValue(i.materialNo)).unsigned=!1:typeof i.materialNo=="string"?n.materialNo=parseInt(i.materialNo,10):typeof i.materialNo=="number"?n.materialNo=i.materialNo:typeof i.materialNo=="object"&&(n.materialNo=new r.LongBits(i.materialNo.low>>>0,i.materialNo.high>>>0).toNumber())),i.securityLevel){default:if(typeof i.securityLevel=="number"){n.securityLevel=i.securityLevel;break}break;case"LEVEL_UNKNOWN":case 0:n.securityLevel=0;break;case"LEVEL_L1":case 1:n.securityLevel=1;break;case"LEVEL_L2":case 2:n.securityLevel=2;break;case"LEVEL_L3":case 3:n.securityLevel=3;break}if(i.seasonId!=null&&(r.Long?(n.seasonId=r.Long.fromValue(i.seasonId)).unsigned=!1:typeof i.seasonId=="string"?n.seasonId=parseInt(i.seasonId,10):typeof i.seasonId=="number"?n.seasonId=i.seasonId:typeof i.seasonId=="object"&&(n.seasonId=new r.LongBits(i.seasonId.low>>>0,i.seasonId.high>>>0).toNumber())),i.dataControl!=null){if(typeof i.dataControl!="object")throw TypeError(".bilibili.pgc.gateway.player.v2.PlayViewReq.dataControl: object expected");n.dataControl=u.bilibili.pgc.gateway.player.v2.DataControl.fromObject(i.dataControl)}return n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.epId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.epId=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.cid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.cid=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.qn=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.qn=n.longs===String?"0":0;if(o.fnver=0,o.fnval=0,o.download=0,o.forceHost=0,o.fourk=!1,o.spmid="",o.fromSpmid="",o.teenagersMode=0,o.preferCodecType=n.enums===String?"NOCODE":0,o.isPreview=!1,r.Long){let a=new r.Long(0,0,!1);o.roomId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.roomId=n.longs===String?"0":0;if(o.isNeedViewInfo=!1,o.sceneControl=null,o.inlineScene=n.enums===String?"UNKNOWN":0,r.Long){let a=new r.Long(0,0,!1);o.materialNo=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.materialNo=n.longs===String?"0":0;if(o.securityLevel=n.enums===String?"LEVEL_UNKNOWN":0,r.Long){let a=new r.Long(0,0,!1);o.seasonId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.seasonId=n.longs===String?"0":0;o.dataControl=null}return i.epId!=null&&i.hasOwnProperty("epId")&&(typeof i.epId=="number"?o.epId=n.longs===String?String(i.epId):i.epId:o.epId=n.longs===String?r.Long.prototype.toString.call(i.epId):n.longs===Number?new r.LongBits(i.epId.low>>>0,i.epId.high>>>0).toNumber():i.epId),i.cid!=null&&i.hasOwnProperty("cid")&&(typeof i.cid=="number"?o.cid=n.longs===String?String(i.cid):i.cid:o.cid=n.longs===String?r.Long.prototype.toString.call(i.cid):n.longs===Number?new r.LongBits(i.cid.low>>>0,i.cid.high>>>0).toNumber():i.cid),i.qn!=null&&i.hasOwnProperty("qn")&&(typeof i.qn=="number"?o.qn=n.longs===String?String(i.qn):i.qn:o.qn=n.longs===String?r.Long.prototype.toString.call(i.qn):n.longs===Number?new r.LongBits(i.qn.low>>>0,i.qn.high>>>0).toNumber():i.qn),i.fnver!=null&&i.hasOwnProperty("fnver")&&(o.fnver=i.fnver),i.fnval!=null&&i.hasOwnProperty("fnval")&&(o.fnval=i.fnval),i.download!=null&&i.hasOwnProperty("download")&&(o.download=i.download),i.forceHost!=null&&i.hasOwnProperty("forceHost")&&(o.forceHost=i.forceHost),i.fourk!=null&&i.hasOwnProperty("fourk")&&(o.fourk=i.fourk),i.spmid!=null&&i.hasOwnProperty("spmid")&&(o.spmid=i.spmid),i.fromSpmid!=null&&i.hasOwnProperty("fromSpmid")&&(o.fromSpmid=i.fromSpmid),i.teenagersMode!=null&&i.hasOwnProperty("teenagersMode")&&(o.teenagersMode=i.teenagersMode),i.preferCodecType!=null&&i.hasOwnProperty("preferCodecType")&&(o.preferCodecType=n.enums===String?u.bilibili.pgc.gateway.player.v2.CodeType[i.preferCodecType]===void 0?i.preferCodecType:u.bilibili.pgc.gateway.player.v2.CodeType[i.preferCodecType]:i.preferCodecType),i.isPreview!=null&&i.hasOwnProperty("isPreview")&&(o.isPreview=i.isPreview),i.roomId!=null&&i.hasOwnProperty("roomId")&&(typeof i.roomId=="number"?o.roomId=n.longs===String?String(i.roomId):i.roomId:o.roomId=n.longs===String?r.Long.prototype.toString.call(i.roomId):n.longs===Number?new r.LongBits(i.roomId.low>>>0,i.roomId.high>>>0).toNumber():i.roomId),i.isNeedViewInfo!=null&&i.hasOwnProperty("isNeedViewInfo")&&(o.isNeedViewInfo=i.isNeedViewInfo),i.sceneControl!=null&&i.hasOwnProperty("sceneControl")&&(o.sceneControl=u.bilibili.pgc.gateway.player.v2.SceneControl.toObject(i.sceneControl,n)),i.inlineScene!=null&&i.hasOwnProperty("inlineScene")&&(o.inlineScene=n.enums===String?u.bilibili.pgc.gateway.player.v2.InlineScene[i.inlineScene]===void 0?i.inlineScene:u.bilibili.pgc.gateway.player.v2.InlineScene[i.inlineScene]:i.inlineScene),i.materialNo!=null&&i.hasOwnProperty("materialNo")&&(typeof i.materialNo=="number"?o.materialNo=n.longs===String?String(i.materialNo):i.materialNo:o.materialNo=n.longs===String?r.Long.prototype.toString.call(i.materialNo):n.longs===Number?new r.LongBits(i.materialNo.low>>>0,i.materialNo.high>>>0).toNumber():i.materialNo),i.securityLevel!=null&&i.hasOwnProperty("securityLevel")&&(o.securityLevel=n.enums===String?u.bilibili.pgc.gateway.player.v2.SecurityLevel[i.securityLevel]===void 0?i.securityLevel:u.bilibili.pgc.gateway.player.v2.SecurityLevel[i.securityLevel]:i.securityLevel),i.seasonId!=null&&i.hasOwnProperty("seasonId")&&(typeof i.seasonId=="number"?o.seasonId=n.longs===String?String(i.seasonId):i.seasonId:o.seasonId=n.longs===String?r.Long.prototype.toString.call(i.seasonId):n.longs===Number?new r.LongBits(i.seasonId.low>>>0,i.seasonId.high>>>0).toNumber():i.seasonId),i.dataControl!=null&&i.hasOwnProperty("dataControl")&&(o.dataControl=u.bilibili.pgc.gateway.player.v2.DataControl.toObject(i.dataControl,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.pgc.gateway.player.v2.PlayViewReq"},l}(),e.DataControl=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.needWatchProgress=i.bool();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.pgc.gateway.player.v2.DataControl)return i;let n=new u.bilibili.pgc.gateway.player.v2.DataControl;return i.needWatchProgress!=null&&(n.needWatchProgress=!!i.needWatchProgress),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.needWatchProgress=!1),i.needWatchProgress!=null&&i.hasOwnProperty("needWatchProgress")&&(o.needWatchProgress=i.needWatchProgress),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.pgc.gateway.player.v2.DataControl"},l}(),e.SecurityLevel=function(){let l={},t=Object.create(l);return t[l[0]="LEVEL_UNKNOWN"]=0,t[l[1]="LEVEL_L1"]=1,t[l[2]="LEVEL_L2"]=2,t[l[3]="LEVEL_L3"]=3,t}(),e.InlineScene=function(){let l={},t=Object.create(l);return t[l[0]="UNKNOWN"]=0,t[l[1]="RELATED_EP"]=1,t[l[2]="HE"]=2,t[l[3]="SKIP"]=3,t}(),e.SceneControl=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.favPlaylist=i.bool();break}case 2:{a.smallWindow=i.bool();break}case 3:{a.pip=i.bool();break}case 4:{a.wasHeInline=i.bool();break}case 5:{a.isNeedTrial=i.bool();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.pgc.gateway.player.v2.SceneControl)return i;let n=new u.bilibili.pgc.gateway.player.v2.SceneControl;return i.favPlaylist!=null&&(n.favPlaylist=!!i.favPlaylist),i.smallWindow!=null&&(n.smallWindow=!!i.smallWindow),i.pip!=null&&(n.pip=!!i.pip),i.wasHeInline!=null&&(n.wasHeInline=!!i.wasHeInline),i.isNeedTrial!=null&&(n.isNeedTrial=!!i.isNeedTrial),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.favPlaylist=!1,o.smallWindow=!1,o.pip=!1,o.wasHeInline=!1,o.isNeedTrial=!1),i.favPlaylist!=null&&i.hasOwnProperty("favPlaylist")&&(o.favPlaylist=i.favPlaylist),i.smallWindow!=null&&i.hasOwnProperty("smallWindow")&&(o.smallWindow=i.smallWindow),i.pip!=null&&i.hasOwnProperty("pip")&&(o.pip=i.pip),i.wasHeInline!=null&&i.hasOwnProperty("wasHeInline")&&(o.wasHeInline=i.wasHeInline),i.isNeedTrial!=null&&i.hasOwnProperty("isNeedTrial")&&(o.isNeedTrial=i.isNeedTrial),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.pgc.gateway.player.v2.SceneControl"},l}(),e.PlayViewReply=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.videoInfo=u.bilibili.pgc.gateway.player.v2.VideoInfo.decode(i,i.uint32());break}case 2:{a.playConf=u.bilibili.pgc.gateway.player.v2.PlayAbilityConf.decode(i,i.uint32());break}case 3:{a.business=u.bilibili.pgc.gateway.player.v2.PlayViewBusinessInfo.decode(i,i.uint32());break}case 4:{a.event=u.bilibili.pgc.gateway.player.v2.Event.decode(i,i.uint32());break}case 5:{a.viewInfo=u.bilibili.pgc.gateway.player.v2.ViewInfo.decode(i,i.uint32());break}case 6:{a.playExtConf=u.bilibili.pgc.gateway.player.v2.PlayAbilityExtConf.decode(i,i.uint32());break}case 7:{a.playExtInfo=u.bilibili.pgc.gateway.player.v2.PlayExtInfo.decode(i,i.uint32());break}case 8:{a.hideField=u.bilibili.pgc.gateway.player.v2.HideField.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.pgc.gateway.player.v2.PlayViewReply)return i;let n=new u.bilibili.pgc.gateway.player.v2.PlayViewReply;if(i.videoInfo!=null){if(typeof i.videoInfo!="object")throw TypeError(".bilibili.pgc.gateway.player.v2.PlayViewReply.videoInfo: object expected");n.videoInfo=u.bilibili.pgc.gateway.player.v2.VideoInfo.fromObject(i.videoInfo)}if(i.playConf!=null){if(typeof i.playConf!="object")throw TypeError(".bilibili.pgc.gateway.player.v2.PlayViewReply.playConf: object expected");n.playConf=u.bilibili.pgc.gateway.player.v2.PlayAbilityConf.fromObject(i.playConf)}if(i.business!=null){if(typeof i.business!="object")throw TypeError(".bilibili.pgc.gateway.player.v2.PlayViewReply.business: object expected");n.business=u.bilibili.pgc.gateway.player.v2.PlayViewBusinessInfo.fromObject(i.business)}if(i.event!=null){if(typeof i.event!="object")throw TypeError(".bilibili.pgc.gateway.player.v2.PlayViewReply.event: object expected");n.event=u.bilibili.pgc.gateway.player.v2.Event.fromObject(i.event)}if(i.viewInfo!=null){if(typeof i.viewInfo!="object")throw TypeError(".bilibili.pgc.gateway.player.v2.PlayViewReply.viewInfo: object expected");n.viewInfo=u.bilibili.pgc.gateway.player.v2.ViewInfo.fromObject(i.viewInfo)}if(i.playExtConf!=null){if(typeof i.playExtConf!="object")throw TypeError(".bilibili.pgc.gateway.player.v2.PlayViewReply.playExtConf: object expected");n.playExtConf=u.bilibili.pgc.gateway.player.v2.PlayAbilityExtConf.fromObject(i.playExtConf)}if(i.playExtInfo!=null){if(typeof i.playExtInfo!="object")throw TypeError(".bilibili.pgc.gateway.player.v2.PlayViewReply.playExtInfo: object expected");n.playExtInfo=u.bilibili.pgc.gateway.player.v2.PlayExtInfo.fromObject(i.playExtInfo)}if(i.hideField!=null){if(typeof i.hideField!="object")throw TypeError(".bilibili.pgc.gateway.player.v2.PlayViewReply.hideField: object expected");n.hideField=u.bilibili.pgc.gateway.player.v2.HideField.fromObject(i.hideField)}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.videoInfo=null,o.playConf=null,o.business=null,o.event=null,o.viewInfo=null,o.playExtConf=null,o.playExtInfo=null,o.hideField=null),i.videoInfo!=null&&i.hasOwnProperty("videoInfo")&&(o.videoInfo=u.bilibili.pgc.gateway.player.v2.VideoInfo.toObject(i.videoInfo,n)),i.playConf!=null&&i.hasOwnProperty("playConf")&&(o.playConf=u.bilibili.pgc.gateway.player.v2.PlayAbilityConf.toObject(i.playConf,n)),i.business!=null&&i.hasOwnProperty("business")&&(o.business=u.bilibili.pgc.gateway.player.v2.PlayViewBusinessInfo.toObject(i.business,n)),i.event!=null&&i.hasOwnProperty("event")&&(o.event=u.bilibili.pgc.gateway.player.v2.Event.toObject(i.event,n)),i.viewInfo!=null&&i.hasOwnProperty("viewInfo")&&(o.viewInfo=u.bilibili.pgc.gateway.player.v2.ViewInfo.toObject(i.viewInfo,n)),i.playExtConf!=null&&i.hasOwnProperty("playExtConf")&&(o.playExtConf=u.bilibili.pgc.gateway.player.v2.PlayAbilityExtConf.toObject(i.playExtConf,n)),i.playExtInfo!=null&&i.hasOwnProperty("playExtInfo")&&(o.playExtInfo=u.bilibili.pgc.gateway.player.v2.PlayExtInfo.toObject(i.playExtInfo,n)),i.hideField!=null&&i.hasOwnProperty("hideField")&&(o.hideField=u.bilibili.pgc.gateway.player.v2.HideField.toObject(i.hideField,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.pgc.gateway.player.v2.PlayViewReply"},l}(),e.PlayExtInfo=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.playDubbingInfo=u.bilibili.pgc.gateway.player.v2.PlayDubbingInfo.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.pgc.gateway.player.v2.PlayExtInfo)return i;let n=new u.bilibili.pgc.gateway.player.v2.PlayExtInfo;if(i.playDubbingInfo!=null){if(typeof i.playDubbingInfo!="object")throw TypeError(".bilibili.pgc.gateway.player.v2.PlayExtInfo.playDubbingInfo: object expected");n.playDubbingInfo=u.bilibili.pgc.gateway.player.v2.PlayDubbingInfo.fromObject(i.playDubbingInfo)}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.playDubbingInfo=null),i.playDubbingInfo!=null&&i.hasOwnProperty("playDubbingInfo")&&(o.playDubbingInfo=u.bilibili.pgc.gateway.player.v2.PlayDubbingInfo.toObject(i.playDubbingInfo,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.pgc.gateway.player.v2.PlayExtInfo"},l}(),e.PlayDubbingInfo=function(){function l(t){if(this.roleAudioList=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.backgroundAudio=u.bilibili.pgc.gateway.player.v2.AudioMaterialProto.decode(i,i.uint32());break}case 2:{a.roleAudioList&&a.roleAudioList.length||(a.roleAudioList=[]),a.roleAudioList.push(u.bilibili.pgc.gateway.player.v2.RoleAudioProto.decode(i,i.uint32()));break}case 3:{a.guideText=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.pgc.gateway.player.v2.PlayDubbingInfo)return i;let n=new u.bilibili.pgc.gateway.player.v2.PlayDubbingInfo;if(i.backgroundAudio!=null){if(typeof i.backgroundAudio!="object")throw TypeError(".bilibili.pgc.gateway.player.v2.PlayDubbingInfo.backgroundAudio: object expected");n.backgroundAudio=u.bilibili.pgc.gateway.player.v2.AudioMaterialProto.fromObject(i.backgroundAudio)}if(i.roleAudioList){if(!Array.isArray(i.roleAudioList))throw TypeError(".bilibili.pgc.gateway.player.v2.PlayDubbingInfo.roleAudioList: array expected");n.roleAudioList=[];for(let o=0;o>>3){case 1:{a.roleId=i.int64();break}case 2:{a.roleName=i.string();break}case 3:{a.roleAvatar=i.string();break}case 4:{a.audioMaterialList&&a.audioMaterialList.length||(a.audioMaterialList=[]),a.audioMaterialList.push(u.bilibili.pgc.gateway.player.v2.AudioMaterialProto.decode(i,i.uint32()));break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.pgc.gateway.player.v2.RoleAudioProto)return i;let n=new u.bilibili.pgc.gateway.player.v2.RoleAudioProto;if(i.roleId!=null&&(r.Long?(n.roleId=r.Long.fromValue(i.roleId)).unsigned=!1:typeof i.roleId=="string"?n.roleId=parseInt(i.roleId,10):typeof i.roleId=="number"?n.roleId=i.roleId:typeof i.roleId=="object"&&(n.roleId=new r.LongBits(i.roleId.low>>>0,i.roleId.high>>>0).toNumber())),i.roleName!=null&&(n.roleName=String(i.roleName)),i.roleAvatar!=null&&(n.roleAvatar=String(i.roleAvatar)),i.audioMaterialList){if(!Array.isArray(i.audioMaterialList))throw TypeError(".bilibili.pgc.gateway.player.v2.RoleAudioProto.audioMaterialList: array expected");n.audioMaterialList=[];for(let o=0;o>>0,i.roleId.high>>>0).toNumber():i.roleId),i.roleName!=null&&i.hasOwnProperty("roleName")&&(o.roleName=i.roleName),i.roleAvatar!=null&&i.hasOwnProperty("roleAvatar")&&(o.roleAvatar=i.roleAvatar),i.audioMaterialList&&i.audioMaterialList.length){o.audioMaterialList=[];for(let a=0;a>>3){case 1:{a.audioId=i.string();break}case 2:{a.title=i.string();break}case 3:{a.edition=i.string();break}case 4:{a.personId=i.int64();break}case 5:{a.personName=i.string();break}case 6:{a.personAvatar=i.string();break}case 7:{a.audio&&a.audio.length||(a.audio=[]),a.audio.push(u.bilibili.pgc.gateway.player.v2.DashItem.decode(i,i.uint32()));break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.pgc.gateway.player.v2.AudioMaterialProto)return i;let n=new u.bilibili.pgc.gateway.player.v2.AudioMaterialProto;if(i.audioId!=null&&(n.audioId=String(i.audioId)),i.title!=null&&(n.title=String(i.title)),i.edition!=null&&(n.edition=String(i.edition)),i.personId!=null&&(r.Long?(n.personId=r.Long.fromValue(i.personId)).unsigned=!1:typeof i.personId=="string"?n.personId=parseInt(i.personId,10):typeof i.personId=="number"?n.personId=i.personId:typeof i.personId=="object"&&(n.personId=new r.LongBits(i.personId.low>>>0,i.personId.high>>>0).toNumber())),i.personName!=null&&(n.personName=String(i.personName)),i.personAvatar!=null&&(n.personAvatar=String(i.personAvatar)),i.audio){if(!Array.isArray(i.audio))throw TypeError(".bilibili.pgc.gateway.player.v2.AudioMaterialProto.audio: array expected");n.audio=[];for(let o=0;o>>0,i.personId.high>>>0).toNumber():i.personId),i.personName!=null&&i.hasOwnProperty("personName")&&(o.personName=i.personName),i.personAvatar!=null&&i.hasOwnProperty("personAvatar")&&(o.personAvatar=i.personAvatar),i.audio&&i.audio.length){o.audio=[];for(let a=0;a>>3){case 1:{a.continuePlayEpId=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.pgc.gateway.player.v2.ContinuePlayInfo)return i;let n=new u.bilibili.pgc.gateway.player.v2.ContinuePlayInfo;return i.continuePlayEpId!=null&&(r.Long?(n.continuePlayEpId=r.Long.fromValue(i.continuePlayEpId)).unsigned=!1:typeof i.continuePlayEpId=="string"?n.continuePlayEpId=parseInt(i.continuePlayEpId,10):typeof i.continuePlayEpId=="number"?n.continuePlayEpId=i.continuePlayEpId:typeof i.continuePlayEpId=="object"&&(n.continuePlayEpId=new r.LongBits(i.continuePlayEpId.low>>>0,i.continuePlayEpId.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults)if(r.Long){let a=new r.Long(0,0,!1);o.continuePlayEpId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.continuePlayEpId=n.longs===String?"0":0;return i.continuePlayEpId!=null&&i.hasOwnProperty("continuePlayEpId")&&(typeof i.continuePlayEpId=="number"?o.continuePlayEpId=n.longs===String?String(i.continuePlayEpId):i.continuePlayEpId:o.continuePlayEpId=n.longs===String?r.Long.prototype.toString.call(i.continuePlayEpId):n.longs===Number?new r.LongBits(i.continuePlayEpId.low>>>0,i.continuePlayEpId.high>>>0).toNumber():i.continuePlayEpId),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.pgc.gateway.player.v2.ContinuePlayInfo"},l}(),e.ViewInfo=function(){function l(t){if(this.demandNoPayEpids=[],this.expConfig={},this.extDialog={},this.extToast={},t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.dialog=u.bilibili.pgc.gateway.player.v2.Dialog.decode(i,i.uint32());break}case 2:{a.toast=u.bilibili.pgc.gateway.player.v2.Toast.decode(i,i.uint32());break}case 3:{a.couponInfo=u.bilibili.pgc.gateway.player.v2.CouponInfo.decode(i,i.uint32());break}case 4:{if(a.demandNoPayEpids&&a.demandNoPayEpids.length||(a.demandNoPayEpids=[]),(v&7)===2){let g=i.uint32()+i.pos;for(;i.pos>>3){case 1:y=i.string();break;case 2:s=i.bool();break;default:i.skipType(S&7);break}}a.expConfig[y]=s;break}case 7:{a.popWin=u.bilibili.pgc.gateway.player.v2.PopWin.decode(i,i.uint32());break}case 8:{a.tryWatchPromptBar=u.bilibili.pgc.gateway.player.v2.PromptBar.decode(i,i.uint32());break}case 9:{a.payTip=u.bilibili.pgc.gateway.player.v2.PayTip.decode(i,i.uint32());break}case 10:{a.highDefinitionTrialInfo=u.bilibili.pgc.gateway.player.v2.HighDefinitionTrialInfo.decode(i,i.uint32());break}case 11:{a.extDialog===r.emptyObject&&(a.extDialog={});let g=i.uint32()+i.pos;for(y="",s=null;i.pos>>3){case 1:y=i.string();break;case 2:s=u.bilibili.pgc.gateway.player.v2.Dialog.decode(i,i.uint32());break;default:i.skipType(S&7);break}}a.extDialog[y]=s;break}case 12:{a.animation=u.bilibili.pgc.gateway.player.v2.Animation.decode(i,i.uint32());break}case 13:{a.extToast===r.emptyObject&&(a.extToast={});let g=i.uint32()+i.pos;for(y="",s=null;i.pos>>3){case 1:y=i.string();break;case 2:s=u.bilibili.pgc.gateway.player.v2.Toast.decode(i,i.uint32());break;default:i.skipType(S&7);break}}a.extToast[y]=s;break}default:i.skipType(v&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.pgc.gateway.player.v2.ViewInfo)return i;let n=new u.bilibili.pgc.gateway.player.v2.ViewInfo;if(i.dialog!=null){if(typeof i.dialog!="object")throw TypeError(".bilibili.pgc.gateway.player.v2.ViewInfo.dialog: object expected");n.dialog=u.bilibili.pgc.gateway.player.v2.Dialog.fromObject(i.dialog)}if(i.toast!=null){if(typeof i.toast!="object")throw TypeError(".bilibili.pgc.gateway.player.v2.ViewInfo.toast: object expected");n.toast=u.bilibili.pgc.gateway.player.v2.Toast.fromObject(i.toast)}if(i.couponInfo!=null){if(typeof i.couponInfo!="object")throw TypeError(".bilibili.pgc.gateway.player.v2.ViewInfo.couponInfo: object expected");n.couponInfo=u.bilibili.pgc.gateway.player.v2.CouponInfo.fromObject(i.couponInfo)}if(i.demandNoPayEpids){if(!Array.isArray(i.demandNoPayEpids))throw TypeError(".bilibili.pgc.gateway.player.v2.ViewInfo.demandNoPayEpids: array expected");n.demandNoPayEpids=[];for(let o=0;o>>0,i.demandNoPayEpids[o].high>>>0).toNumber())}if(i.endPage!=null){if(typeof i.endPage!="object")throw TypeError(".bilibili.pgc.gateway.player.v2.ViewInfo.endPage: object expected");n.endPage=u.bilibili.pgc.gateway.player.v2.EndPage.fromObject(i.endPage)}if(i.expConfig){if(typeof i.expConfig!="object")throw TypeError(".bilibili.pgc.gateway.player.v2.ViewInfo.expConfig: object expected");n.expConfig={};for(let o=Object.keys(i.expConfig),a=0;a>>0,i.demandNoPayEpids[y].high>>>0).toNumber():i.demandNoPayEpids[y]}i.endPage!=null&&i.hasOwnProperty("endPage")&&(o.endPage=u.bilibili.pgc.gateway.player.v2.EndPage.toObject(i.endPage,n));let a;if(i.expConfig&&(a=Object.keys(i.expConfig)).length){o.expConfig={};for(let y=0;y>>3){case 1:{a.qnSvgaAnimationMap===r.emptyObject&&(a.qnSvgaAnimationMap={});let g=i.uint32()+i.pos;for(y="",s="";i.pos>>3){case 1:y=i.string();break;case 2:s=i.string();break;default:i.skipType(S&7);break}}a.qnSvgaAnimationMap[y]=s;break}default:i.skipType(v&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.pgc.gateway.player.v2.Animation)return i;let n=new u.bilibili.pgc.gateway.player.v2.Animation;if(i.qnSvgaAnimationMap){if(typeof i.qnSvgaAnimationMap!="object")throw TypeError(".bilibili.pgc.gateway.player.v2.Animation.qnSvgaAnimationMap: object expected");n.qnSvgaAnimationMap={};for(let o=Object.keys(i.qnSvgaAnimationMap),a=0;a>>3){case 1:{a.trialAble=i.bool();break}case 2:{a.remainingTimes=i.int32();break}case 3:{a.start=i.int32();break}case 4:{a.timeLength=i.int32();break}case 5:{a.startToast=u.bilibili.pgc.gateway.player.v2.Toast.decode(i,i.uint32());break}case 6:{a.endToast=u.bilibili.pgc.gateway.player.v2.Toast.decode(i,i.uint32());break}case 7:{a.report=u.bilibili.pgc.gateway.player.v2.Report.decode(i,i.uint32());break}case 8:{a.qualityOpenTipBtn=u.bilibili.pgc.gateway.player.v2.ButtonInfo.decode(i,i.uint32());break}case 9:{a.noLongerTrialBtn=u.bilibili.pgc.gateway.player.v2.ButtonInfo.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.pgc.gateway.player.v2.HighDefinitionTrialInfo)return i;let n=new u.bilibili.pgc.gateway.player.v2.HighDefinitionTrialInfo;if(i.trialAble!=null&&(n.trialAble=!!i.trialAble),i.remainingTimes!=null&&(n.remainingTimes=i.remainingTimes|0),i.start!=null&&(n.start=i.start|0),i.timeLength!=null&&(n.timeLength=i.timeLength|0),i.startToast!=null){if(typeof i.startToast!="object")throw TypeError(".bilibili.pgc.gateway.player.v2.HighDefinitionTrialInfo.startToast: object expected");n.startToast=u.bilibili.pgc.gateway.player.v2.Toast.fromObject(i.startToast)}if(i.endToast!=null){if(typeof i.endToast!="object")throw TypeError(".bilibili.pgc.gateway.player.v2.HighDefinitionTrialInfo.endToast: object expected");n.endToast=u.bilibili.pgc.gateway.player.v2.Toast.fromObject(i.endToast)}if(i.report!=null){if(typeof i.report!="object")throw TypeError(".bilibili.pgc.gateway.player.v2.HighDefinitionTrialInfo.report: object expected");n.report=u.bilibili.pgc.gateway.player.v2.Report.fromObject(i.report)}if(i.qualityOpenTipBtn!=null){if(typeof i.qualityOpenTipBtn!="object")throw TypeError(".bilibili.pgc.gateway.player.v2.HighDefinitionTrialInfo.qualityOpenTipBtn: object expected");n.qualityOpenTipBtn=u.bilibili.pgc.gateway.player.v2.ButtonInfo.fromObject(i.qualityOpenTipBtn)}if(i.noLongerTrialBtn!=null){if(typeof i.noLongerTrialBtn!="object")throw TypeError(".bilibili.pgc.gateway.player.v2.HighDefinitionTrialInfo.noLongerTrialBtn: object expected");n.noLongerTrialBtn=u.bilibili.pgc.gateway.player.v2.ButtonInfo.fromObject(i.noLongerTrialBtn)}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.trialAble=!1,o.remainingTimes=0,o.start=0,o.timeLength=0,o.startToast=null,o.endToast=null,o.report=null,o.qualityOpenTipBtn=null,o.noLongerTrialBtn=null),i.trialAble!=null&&i.hasOwnProperty("trialAble")&&(o.trialAble=i.trialAble),i.remainingTimes!=null&&i.hasOwnProperty("remainingTimes")&&(o.remainingTimes=i.remainingTimes),i.start!=null&&i.hasOwnProperty("start")&&(o.start=i.start),i.timeLength!=null&&i.hasOwnProperty("timeLength")&&(o.timeLength=i.timeLength),i.startToast!=null&&i.hasOwnProperty("startToast")&&(o.startToast=u.bilibili.pgc.gateway.player.v2.Toast.toObject(i.startToast,n)),i.endToast!=null&&i.hasOwnProperty("endToast")&&(o.endToast=u.bilibili.pgc.gateway.player.v2.Toast.toObject(i.endToast,n)),i.report!=null&&i.hasOwnProperty("report")&&(o.report=u.bilibili.pgc.gateway.player.v2.Report.toObject(i.report,n)),i.qualityOpenTipBtn!=null&&i.hasOwnProperty("qualityOpenTipBtn")&&(o.qualityOpenTipBtn=u.bilibili.pgc.gateway.player.v2.ButtonInfo.toObject(i.qualityOpenTipBtn,n)),i.noLongerTrialBtn!=null&&i.hasOwnProperty("noLongerTrialBtn")&&(o.noLongerTrialBtn=u.bilibili.pgc.gateway.player.v2.ButtonInfo.toObject(i.noLongerTrialBtn,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.pgc.gateway.player.v2.HighDefinitionTrialInfo"},l}(),e.EndPage=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.dialog=u.bilibili.pgc.gateway.player.v2.Dialog.decode(i,i.uint32());break}case 2:{a.hide=i.bool();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.pgc.gateway.player.v2.EndPage)return i;let n=new u.bilibili.pgc.gateway.player.v2.EndPage;if(i.dialog!=null){if(typeof i.dialog!="object")throw TypeError(".bilibili.pgc.gateway.player.v2.EndPage.dialog: object expected");n.dialog=u.bilibili.pgc.gateway.player.v2.Dialog.fromObject(i.dialog)}return i.hide!=null&&(n.hide=!!i.hide),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.dialog=null,o.hide=!1),i.dialog!=null&&i.hasOwnProperty("dialog")&&(o.dialog=u.bilibili.pgc.gateway.player.v2.Dialog.toObject(i.dialog,n)),i.hide!=null&&i.hasOwnProperty("hide")&&(o.hide=i.hide),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.pgc.gateway.player.v2.EndPage"},l}(),e.Toast=function(){function l(t){if(this.orderReportParams={},t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.text=i.string();break}case 2:{a.button=u.bilibili.pgc.gateway.player.v2.ButtonInfo.decode(i,i.uint32());break}case 3:{a.showStyleType=i.int32();break}case 4:{a.icon=i.string();break}case 5:{a.toastText=u.bilibili.pgc.gateway.player.v2.TextInfo.decode(i,i.uint32());break}case 6:{a.report=u.bilibili.pgc.gateway.player.v2.Report.decode(i,i.uint32());break}case 7:{a.orderReportParams===r.emptyObject&&(a.orderReportParams={});let g=i.uint32()+i.pos;for(y="",s="";i.pos>>3){case 1:y=i.string();break;case 2:s=i.string();break;default:i.skipType(S&7);break}}a.orderReportParams[y]=s;break}default:i.skipType(v&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.pgc.gateway.player.v2.Toast)return i;let n=new u.bilibili.pgc.gateway.player.v2.Toast;if(i.text!=null&&(n.text=String(i.text)),i.button!=null){if(typeof i.button!="object")throw TypeError(".bilibili.pgc.gateway.player.v2.Toast.button: object expected");n.button=u.bilibili.pgc.gateway.player.v2.ButtonInfo.fromObject(i.button)}if(i.showStyleType!=null&&(n.showStyleType=i.showStyleType|0),i.icon!=null&&(n.icon=String(i.icon)),i.toastText!=null){if(typeof i.toastText!="object")throw TypeError(".bilibili.pgc.gateway.player.v2.Toast.toastText: object expected");n.toastText=u.bilibili.pgc.gateway.player.v2.TextInfo.fromObject(i.toastText)}if(i.report!=null){if(typeof i.report!="object")throw TypeError(".bilibili.pgc.gateway.player.v2.Toast.report: object expected");n.report=u.bilibili.pgc.gateway.player.v2.Report.fromObject(i.report)}if(i.orderReportParams){if(typeof i.orderReportParams!="object")throw TypeError(".bilibili.pgc.gateway.player.v2.Toast.orderReportParams: object expected");n.orderReportParams={};for(let o=Object.keys(i.orderReportParams),a=0;a>>3){case 1:{a.title=u.bilibili.pgc.gateway.player.v2.TextInfo.decode(i,i.uint32());break}case 2:{a.subTitle=u.bilibili.pgc.gateway.player.v2.TextInfo.decode(i,i.uint32());break}case 3:{a.subTitleIcon=i.string();break}case 4:{a.bgImage=i.string();break}case 5:{a.bgGradientColor=u.bilibili.pgc.gateway.player.v2.GradientColor.decode(i,i.uint32());break}case 6:{a.button&&a.button.length||(a.button=[]),a.button.push(u.bilibili.pgc.gateway.player.v2.ButtonInfo.decode(i,i.uint32()));break}case 7:{a.report=u.bilibili.pgc.gateway.player.v2.Report.decode(i,i.uint32());break}case 8:{a.fullScreenIpIcon=i.string();break}case 9:{a.fullScreenBgGradientColor=u.bilibili.pgc.gateway.player.v2.GradientColor.decode(i,i.uint32());break}case 10:{a.promptBarType=i.int32();break}case 11:{a.configType=i.int64();break}case 12:{a.fixedBenefits&&a.fixedBenefits.length||(a.fixedBenefits=[]),a.fixedBenefits.push(u.bilibili.pgc.gateway.player.v2.MaterialInfo.decode(i,i.uint32()));break}case 13:{a.cardOpenGift&&a.cardOpenGift.length||(a.cardOpenGift=[]),a.cardOpenGift.push(u.bilibili.pgc.gateway.player.v2.MaterialInfo.decode(i,i.uint32()));break}case 14:{a.endTime=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.pgc.gateway.player.v2.PromptBar)return i;let n=new u.bilibili.pgc.gateway.player.v2.PromptBar;if(i.title!=null){if(typeof i.title!="object")throw TypeError(".bilibili.pgc.gateway.player.v2.PromptBar.title: object expected");n.title=u.bilibili.pgc.gateway.player.v2.TextInfo.fromObject(i.title)}if(i.subTitle!=null){if(typeof i.subTitle!="object")throw TypeError(".bilibili.pgc.gateway.player.v2.PromptBar.subTitle: object expected");n.subTitle=u.bilibili.pgc.gateway.player.v2.TextInfo.fromObject(i.subTitle)}if(i.subTitleIcon!=null&&(n.subTitleIcon=String(i.subTitleIcon)),i.bgImage!=null&&(n.bgImage=String(i.bgImage)),i.bgGradientColor!=null){if(typeof i.bgGradientColor!="object")throw TypeError(".bilibili.pgc.gateway.player.v2.PromptBar.bgGradientColor: object expected");n.bgGradientColor=u.bilibili.pgc.gateway.player.v2.GradientColor.fromObject(i.bgGradientColor)}if(i.button){if(!Array.isArray(i.button))throw TypeError(".bilibili.pgc.gateway.player.v2.PromptBar.button: array expected");n.button=[];for(let o=0;o>>0,i.configType.high>>>0).toNumber())),i.fixedBenefits){if(!Array.isArray(i.fixedBenefits))throw TypeError(".bilibili.pgc.gateway.player.v2.PromptBar.fixedBenefits: array expected");n.fixedBenefits=[];for(let o=0;o>>0,i.endTime.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if((n.arrays||n.defaults)&&(o.button=[],o.fixedBenefits=[],o.cardOpenGift=[]),n.defaults){if(o.title=null,o.subTitle=null,o.subTitleIcon="",o.bgImage="",o.bgGradientColor=null,o.report=null,o.fullScreenIpIcon="",o.fullScreenBgGradientColor=null,o.promptBarType=n.enums===String?"PROMPT_BAR_TYPE_UNKNOWN":0,r.Long){let a=new r.Long(0,0,!1);o.configType=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.configType=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.endTime=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.endTime=n.longs===String?"0":0}if(i.title!=null&&i.hasOwnProperty("title")&&(o.title=u.bilibili.pgc.gateway.player.v2.TextInfo.toObject(i.title,n)),i.subTitle!=null&&i.hasOwnProperty("subTitle")&&(o.subTitle=u.bilibili.pgc.gateway.player.v2.TextInfo.toObject(i.subTitle,n)),i.subTitleIcon!=null&&i.hasOwnProperty("subTitleIcon")&&(o.subTitleIcon=i.subTitleIcon),i.bgImage!=null&&i.hasOwnProperty("bgImage")&&(o.bgImage=i.bgImage),i.bgGradientColor!=null&&i.hasOwnProperty("bgGradientColor")&&(o.bgGradientColor=u.bilibili.pgc.gateway.player.v2.GradientColor.toObject(i.bgGradientColor,n)),i.button&&i.button.length){o.button=[];for(let a=0;a>>0,i.configType.high>>>0).toNumber():i.configType),i.fixedBenefits&&i.fixedBenefits.length){o.fixedBenefits=[];for(let a=0;a>>0,i.endTime.high>>>0).toNumber():i.endTime),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.pgc.gateway.player.v2.PromptBar"},l}(),e.MaterialInfo=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.id=i.int64();break}case 2:{a.img=i.string();break}case 3:{a.title=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.pgc.gateway.player.v2.MaterialInfo)return i;let n=new u.bilibili.pgc.gateway.player.v2.MaterialInfo;return i.id!=null&&(r.Long?(n.id=r.Long.fromValue(i.id)).unsigned=!1:typeof i.id=="string"?n.id=parseInt(i.id,10):typeof i.id=="number"?n.id=i.id:typeof i.id=="object"&&(n.id=new r.LongBits(i.id.low>>>0,i.id.high>>>0).toNumber())),i.img!=null&&(n.img=String(i.img)),i.title!=null&&(n.title=String(i.title)),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.id=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.id=n.longs===String?"0":0;o.img="",o.title=""}return i.id!=null&&i.hasOwnProperty("id")&&(typeof i.id=="number"?o.id=n.longs===String?String(i.id):i.id:o.id=n.longs===String?r.Long.prototype.toString.call(i.id):n.longs===Number?new r.LongBits(i.id.low>>>0,i.id.high>>>0).toNumber():i.id),i.img!=null&&i.hasOwnProperty("img")&&(o.img=i.img),i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.pgc.gateway.player.v2.MaterialInfo"},l}(),e.PromptBarType=function(){let l={},t=Object.create(l);return t[l[0]="PROMPT_BAR_TYPE_UNKNOWN"]=0,t[l[1]="OPEN_PROMPT_BAR"]=1,t[l[2]="TRY_PROMPT_BAR"]=2,t}(),e.GradientColor=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.startColor=i.string();break}case 2:{a.endColor=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.pgc.gateway.player.v2.GradientColor)return i;let n=new u.bilibili.pgc.gateway.player.v2.GradientColor;return i.startColor!=null&&(n.startColor=String(i.startColor)),i.endColor!=null&&(n.endColor=String(i.endColor)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.startColor="",o.endColor=""),i.startColor!=null&&i.hasOwnProperty("startColor")&&(o.startColor=i.startColor),i.endColor!=null&&i.hasOwnProperty("endColor")&&(o.endColor=i.endColor),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.pgc.gateway.player.v2.GradientColor"},l}(),e.Dialog=function(){function l(t){if(this.button=[],this.bottomDisplay=[],this.playList=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.code=i.int64();break}case 2:{a.msg=i.string();break}case 3:{a.type=i.string();break}case 4:{a.styleType=i.string();break}case 5:{a.config=u.bilibili.pgc.gateway.player.v2.DialogConfig.decode(i,i.uint32());break}case 6:{a.title=u.bilibili.pgc.gateway.player.v2.TextInfo.decode(i,i.uint32());break}case 7:{a.subtitle=u.bilibili.pgc.gateway.player.v2.TextInfo.decode(i,i.uint32());break}case 8:{a.image=u.bilibili.pgc.gateway.player.v2.ImageInfo.decode(i,i.uint32());break}case 9:{a.button&&a.button.length||(a.button=[]),a.button.push(u.bilibili.pgc.gateway.player.v2.ButtonInfo.decode(i,i.uint32()));break}case 10:{a.bottomDesc=u.bilibili.pgc.gateway.player.v2.ButtonInfo.decode(i,i.uint32());break}case 11:{a.report=u.bilibili.pgc.gateway.player.v2.Report.decode(i,i.uint32());break}case 12:{a.countDownSec=i.int32();break}case 13:{a.rightBottomDesc=u.bilibili.pgc.gateway.player.v2.TextInfo.decode(i,i.uint32());break}case 14:{a.bottomDisplay&&a.bottomDisplay.length||(a.bottomDisplay=[]),a.bottomDisplay.push(u.bilibili.pgc.gateway.player.v2.BottomDisplay.decode(i,i.uint32()));break}case 15:{a.playList&&a.playList.length||(a.playList=[]),a.playList.push(u.bilibili.pgc.gateway.player.v2.Playlist.decode(i,i.uint32()));break}case 16:{a.link=i.string();break}case 17:{a.halfImage=u.bilibili.pgc.gateway.player.v2.ImageInfo.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.pgc.gateway.player.v2.Dialog)return i;let n=new u.bilibili.pgc.gateway.player.v2.Dialog;if(i.code!=null&&(r.Long?(n.code=r.Long.fromValue(i.code)).unsigned=!1:typeof i.code=="string"?n.code=parseInt(i.code,10):typeof i.code=="number"?n.code=i.code:typeof i.code=="object"&&(n.code=new r.LongBits(i.code.low>>>0,i.code.high>>>0).toNumber())),i.msg!=null&&(n.msg=String(i.msg)),i.type!=null&&(n.type=String(i.type)),i.styleType!=null&&(n.styleType=String(i.styleType)),i.config!=null){if(typeof i.config!="object")throw TypeError(".bilibili.pgc.gateway.player.v2.Dialog.config: object expected");n.config=u.bilibili.pgc.gateway.player.v2.DialogConfig.fromObject(i.config)}if(i.title!=null){if(typeof i.title!="object")throw TypeError(".bilibili.pgc.gateway.player.v2.Dialog.title: object expected");n.title=u.bilibili.pgc.gateway.player.v2.TextInfo.fromObject(i.title)}if(i.subtitle!=null){if(typeof i.subtitle!="object")throw TypeError(".bilibili.pgc.gateway.player.v2.Dialog.subtitle: object expected");n.subtitle=u.bilibili.pgc.gateway.player.v2.TextInfo.fromObject(i.subtitle)}if(i.image!=null){if(typeof i.image!="object")throw TypeError(".bilibili.pgc.gateway.player.v2.Dialog.image: object expected");n.image=u.bilibili.pgc.gateway.player.v2.ImageInfo.fromObject(i.image)}if(i.button){if(!Array.isArray(i.button))throw TypeError(".bilibili.pgc.gateway.player.v2.Dialog.button: array expected");n.button=[];for(let o=0;o>>0,i.code.high>>>0).toNumber():i.code),i.msg!=null&&i.hasOwnProperty("msg")&&(o.msg=i.msg),i.type!=null&&i.hasOwnProperty("type")&&(o.type=i.type),i.styleType!=null&&i.hasOwnProperty("styleType")&&(o.styleType=i.styleType),i.config!=null&&i.hasOwnProperty("config")&&(o.config=u.bilibili.pgc.gateway.player.v2.DialogConfig.toObject(i.config,n)),i.title!=null&&i.hasOwnProperty("title")&&(o.title=u.bilibili.pgc.gateway.player.v2.TextInfo.toObject(i.title,n)),i.subtitle!=null&&i.hasOwnProperty("subtitle")&&(o.subtitle=u.bilibili.pgc.gateway.player.v2.TextInfo.toObject(i.subtitle,n)),i.image!=null&&i.hasOwnProperty("image")&&(o.image=u.bilibili.pgc.gateway.player.v2.ImageInfo.toObject(i.image,n)),i.button&&i.button.length){o.button=[];for(let a=0;a>>3){case 1:{a.seasonId=i.int64();break}case 2:{a.title=i.string();break}case 3:{a.cover=i.string();break}case 4:{a.link=i.string();break}case 5:{a.badgeInfo=u.bilibili.pgc.gateway.player.v2.BadgeInfo.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.pgc.gateway.player.v2.Playlist)return i;let n=new u.bilibili.pgc.gateway.player.v2.Playlist;if(i.seasonId!=null&&(r.Long?(n.seasonId=r.Long.fromValue(i.seasonId)).unsigned=!1:typeof i.seasonId=="string"?n.seasonId=parseInt(i.seasonId,10):typeof i.seasonId=="number"?n.seasonId=i.seasonId:typeof i.seasonId=="object"&&(n.seasonId=new r.LongBits(i.seasonId.low>>>0,i.seasonId.high>>>0).toNumber())),i.title!=null&&(n.title=String(i.title)),i.cover!=null&&(n.cover=String(i.cover)),i.link!=null&&(n.link=String(i.link)),i.badgeInfo!=null){if(typeof i.badgeInfo!="object")throw TypeError(".bilibili.pgc.gateway.player.v2.Playlist.badgeInfo: object expected");n.badgeInfo=u.bilibili.pgc.gateway.player.v2.BadgeInfo.fromObject(i.badgeInfo)}return n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.seasonId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.seasonId=n.longs===String?"0":0;o.title="",o.cover="",o.link="",o.badgeInfo=null}return i.seasonId!=null&&i.hasOwnProperty("seasonId")&&(typeof i.seasonId=="number"?o.seasonId=n.longs===String?String(i.seasonId):i.seasonId:o.seasonId=n.longs===String?r.Long.prototype.toString.call(i.seasonId):n.longs===Number?new r.LongBits(i.seasonId.low>>>0,i.seasonId.high>>>0).toNumber():i.seasonId),i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.cover!=null&&i.hasOwnProperty("cover")&&(o.cover=i.cover),i.link!=null&&i.hasOwnProperty("link")&&(o.link=i.link),i.badgeInfo!=null&&i.hasOwnProperty("badgeInfo")&&(o.badgeInfo=u.bilibili.pgc.gateway.player.v2.BadgeInfo.toObject(i.badgeInfo,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.pgc.gateway.player.v2.Playlist"},l}(),e.BottomDisplay=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.title=u.bilibili.pgc.gateway.player.v2.TextInfo.decode(i,i.uint32());break}case 2:{a.icon=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.pgc.gateway.player.v2.BottomDisplay)return i;let n=new u.bilibili.pgc.gateway.player.v2.BottomDisplay;if(i.title!=null){if(typeof i.title!="object")throw TypeError(".bilibili.pgc.gateway.player.v2.BottomDisplay.title: object expected");n.title=u.bilibili.pgc.gateway.player.v2.TextInfo.fromObject(i.title)}return i.icon!=null&&(n.icon=String(i.icon)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.title=null,o.icon=""),i.title!=null&&i.hasOwnProperty("title")&&(o.title=u.bilibili.pgc.gateway.player.v2.TextInfo.toObject(i.title,n)),i.icon!=null&&i.hasOwnProperty("icon")&&(o.icon=i.icon),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.pgc.gateway.player.v2.BottomDisplay"},l}(),e.ButtonInfo=function(){function l(t){if(this.orderReportParams={},t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.text=i.string();break}case 2:{a.textColor=i.string();break}case 3:{a.textColorNight=i.string();break}case 4:{a.bgColor=i.string();break}case 5:{a.bgColorNight=i.string();break}case 6:{a.link=i.string();break}case 7:{a.actionType=i.string();break}case 8:{a.badgeInfo=u.bilibili.pgc.gateway.player.v2.BadgeInfo.decode(i,i.uint32());break}case 9:{a.report=u.bilibili.pgc.gateway.player.v2.Report.decode(i,i.uint32());break}case 10:{a.leftStrikethroughText=i.string();break}case 11:{a.simpleTextInfo=u.bilibili.pgc.gateway.player.v2.TextInfo.decode(i,i.uint32());break}case 12:{a.simpleBgColor=i.string();break}case 13:{a.simpleBgColorNight=i.string();break}case 14:{a.bgGradientColor=u.bilibili.pgc.gateway.player.v2.GradientColor.decode(i,i.uint32());break}case 15:{a.orderReportParams===r.emptyObject&&(a.orderReportParams={});let g=i.uint32()+i.pos;for(y="",s="";i.pos>>3){case 1:y=i.string();break;case 2:s=i.string();break;default:i.skipType(S&7);break}}a.orderReportParams[y]=s;break}case 16:{a.taskParam=u.bilibili.pgc.gateway.player.v2.TaskParam.decode(i,i.uint32());break}case 17:{a.pcLink=i.string();break}case 18:{a.jumpType=i.int64();break}default:i.skipType(v&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.pgc.gateway.player.v2.ButtonInfo)return i;let n=new u.bilibili.pgc.gateway.player.v2.ButtonInfo;if(i.text!=null&&(n.text=String(i.text)),i.textColor!=null&&(n.textColor=String(i.textColor)),i.textColorNight!=null&&(n.textColorNight=String(i.textColorNight)),i.bgColor!=null&&(n.bgColor=String(i.bgColor)),i.bgColorNight!=null&&(n.bgColorNight=String(i.bgColorNight)),i.link!=null&&(n.link=String(i.link)),i.actionType!=null&&(n.actionType=String(i.actionType)),i.badgeInfo!=null){if(typeof i.badgeInfo!="object")throw TypeError(".bilibili.pgc.gateway.player.v2.ButtonInfo.badgeInfo: object expected");n.badgeInfo=u.bilibili.pgc.gateway.player.v2.BadgeInfo.fromObject(i.badgeInfo)}if(i.report!=null){if(typeof i.report!="object")throw TypeError(".bilibili.pgc.gateway.player.v2.ButtonInfo.report: object expected");n.report=u.bilibili.pgc.gateway.player.v2.Report.fromObject(i.report)}if(i.leftStrikethroughText!=null&&(n.leftStrikethroughText=String(i.leftStrikethroughText)),i.simpleTextInfo!=null){if(typeof i.simpleTextInfo!="object")throw TypeError(".bilibili.pgc.gateway.player.v2.ButtonInfo.simpleTextInfo: object expected");n.simpleTextInfo=u.bilibili.pgc.gateway.player.v2.TextInfo.fromObject(i.simpleTextInfo)}if(i.simpleBgColor!=null&&(n.simpleBgColor=String(i.simpleBgColor)),i.simpleBgColorNight!=null&&(n.simpleBgColorNight=String(i.simpleBgColorNight)),i.bgGradientColor!=null){if(typeof i.bgGradientColor!="object")throw TypeError(".bilibili.pgc.gateway.player.v2.ButtonInfo.bgGradientColor: object expected");n.bgGradientColor=u.bilibili.pgc.gateway.player.v2.GradientColor.fromObject(i.bgGradientColor)}if(i.orderReportParams){if(typeof i.orderReportParams!="object")throw TypeError(".bilibili.pgc.gateway.player.v2.ButtonInfo.orderReportParams: object expected");n.orderReportParams={};for(let o=Object.keys(i.orderReportParams),a=0;a>>0,i.jumpType.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if((n.objects||n.defaults)&&(o.orderReportParams={}),n.defaults)if(o.text="",o.textColor="",o.textColorNight="",o.bgColor="",o.bgColorNight="",o.link="",o.actionType="",o.badgeInfo=null,o.report=null,o.leftStrikethroughText="",o.simpleTextInfo=null,o.simpleBgColor="",o.simpleBgColorNight="",o.bgGradientColor=null,o.taskParam=null,o.pcLink="",r.Long){let y=new r.Long(0,0,!1);o.jumpType=n.longs===String?y.toString():n.longs===Number?y.toNumber():y}else o.jumpType=n.longs===String?"0":0;i.text!=null&&i.hasOwnProperty("text")&&(o.text=i.text),i.textColor!=null&&i.hasOwnProperty("textColor")&&(o.textColor=i.textColor),i.textColorNight!=null&&i.hasOwnProperty("textColorNight")&&(o.textColorNight=i.textColorNight),i.bgColor!=null&&i.hasOwnProperty("bgColor")&&(o.bgColor=i.bgColor),i.bgColorNight!=null&&i.hasOwnProperty("bgColorNight")&&(o.bgColorNight=i.bgColorNight),i.link!=null&&i.hasOwnProperty("link")&&(o.link=i.link),i.actionType!=null&&i.hasOwnProperty("actionType")&&(o.actionType=i.actionType),i.badgeInfo!=null&&i.hasOwnProperty("badgeInfo")&&(o.badgeInfo=u.bilibili.pgc.gateway.player.v2.BadgeInfo.toObject(i.badgeInfo,n)),i.report!=null&&i.hasOwnProperty("report")&&(o.report=u.bilibili.pgc.gateway.player.v2.Report.toObject(i.report,n)),i.leftStrikethroughText!=null&&i.hasOwnProperty("leftStrikethroughText")&&(o.leftStrikethroughText=i.leftStrikethroughText),i.simpleTextInfo!=null&&i.hasOwnProperty("simpleTextInfo")&&(o.simpleTextInfo=u.bilibili.pgc.gateway.player.v2.TextInfo.toObject(i.simpleTextInfo,n)),i.simpleBgColor!=null&&i.hasOwnProperty("simpleBgColor")&&(o.simpleBgColor=i.simpleBgColor),i.simpleBgColorNight!=null&&i.hasOwnProperty("simpleBgColorNight")&&(o.simpleBgColorNight=i.simpleBgColorNight),i.bgGradientColor!=null&&i.hasOwnProperty("bgGradientColor")&&(o.bgGradientColor=u.bilibili.pgc.gateway.player.v2.GradientColor.toObject(i.bgGradientColor,n));let a;if(i.orderReportParams&&(a=Object.keys(i.orderReportParams)).length){o.orderReportParams={};for(let y=0;y>>0,i.jumpType.high>>>0).toNumber():i.jumpType),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.pgc.gateway.player.v2.ButtonInfo"},l}(),e.TaskParam=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.taskType=i.string();break}case 2:{a.activityId=i.int64();break}case 3:{a.tipsId=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.pgc.gateway.player.v2.TaskParam)return i;let n=new u.bilibili.pgc.gateway.player.v2.TaskParam;return i.taskType!=null&&(n.taskType=String(i.taskType)),i.activityId!=null&&(r.Long?(n.activityId=r.Long.fromValue(i.activityId)).unsigned=!1:typeof i.activityId=="string"?n.activityId=parseInt(i.activityId,10):typeof i.activityId=="number"?n.activityId=i.activityId:typeof i.activityId=="object"&&(n.activityId=new r.LongBits(i.activityId.low>>>0,i.activityId.high>>>0).toNumber())),i.tipsId!=null&&(r.Long?(n.tipsId=r.Long.fromValue(i.tipsId)).unsigned=!1:typeof i.tipsId=="string"?n.tipsId=parseInt(i.tipsId,10):typeof i.tipsId=="number"?n.tipsId=i.tipsId:typeof i.tipsId=="object"&&(n.tipsId=new r.LongBits(i.tipsId.low>>>0,i.tipsId.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(o.taskType="",r.Long){let a=new r.Long(0,0,!1);o.activityId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.activityId=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.tipsId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.tipsId=n.longs===String?"0":0}return i.taskType!=null&&i.hasOwnProperty("taskType")&&(o.taskType=i.taskType),i.activityId!=null&&i.hasOwnProperty("activityId")&&(typeof i.activityId=="number"?o.activityId=n.longs===String?String(i.activityId):i.activityId:o.activityId=n.longs===String?r.Long.prototype.toString.call(i.activityId):n.longs===Number?new r.LongBits(i.activityId.low>>>0,i.activityId.high>>>0).toNumber():i.activityId),i.tipsId!=null&&i.hasOwnProperty("tipsId")&&(typeof i.tipsId=="number"?o.tipsId=n.longs===String?String(i.tipsId):i.tipsId:o.tipsId=n.longs===String?r.Long.prototype.toString.call(i.tipsId):n.longs===Number?new r.LongBits(i.tipsId.low>>>0,i.tipsId.high>>>0).toNumber():i.tipsId),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.pgc.gateway.player.v2.TaskParam"},l}(),e.Report=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.showEventId=i.string();break}case 2:{a.clickEventId=i.string();break}case 3:{a.extends=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.pgc.gateway.player.v2.Report)return i;let n=new u.bilibili.pgc.gateway.player.v2.Report;return i.showEventId!=null&&(n.showEventId=String(i.showEventId)),i.clickEventId!=null&&(n.clickEventId=String(i.clickEventId)),i.extends!=null&&(n.extends=String(i.extends)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.showEventId="",o.clickEventId="",o.extends=""),i.showEventId!=null&&i.hasOwnProperty("showEventId")&&(o.showEventId=i.showEventId),i.clickEventId!=null&&i.hasOwnProperty("clickEventId")&&(o.clickEventId=i.clickEventId),i.extends!=null&&i.hasOwnProperty("extends")&&(o.extends=i.extends),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.pgc.gateway.player.v2.Report"},l}(),e.BadgeInfo=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.text=i.string();break}case 2:{a.bgColor=i.string();break}case 3:{a.bgColorNight=i.string();break}case 4:{a.textColor=i.string();break}case 5:{a.bgGradientColor=u.bilibili.pgc.gateway.player.v2.GradientColor.decode(i,i.uint32());break}case 6:{a.img=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.pgc.gateway.player.v2.BadgeInfo)return i;let n=new u.bilibili.pgc.gateway.player.v2.BadgeInfo;if(i.text!=null&&(n.text=String(i.text)),i.bgColor!=null&&(n.bgColor=String(i.bgColor)),i.bgColorNight!=null&&(n.bgColorNight=String(i.bgColorNight)),i.textColor!=null&&(n.textColor=String(i.textColor)),i.bgGradientColor!=null){if(typeof i.bgGradientColor!="object")throw TypeError(".bilibili.pgc.gateway.player.v2.BadgeInfo.bgGradientColor: object expected");n.bgGradientColor=u.bilibili.pgc.gateway.player.v2.GradientColor.fromObject(i.bgGradientColor)}return i.img!=null&&(n.img=String(i.img)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.text="",o.bgColor="",o.bgColorNight="",o.textColor="",o.bgGradientColor=null,o.img=""),i.text!=null&&i.hasOwnProperty("text")&&(o.text=i.text),i.bgColor!=null&&i.hasOwnProperty("bgColor")&&(o.bgColor=i.bgColor),i.bgColorNight!=null&&i.hasOwnProperty("bgColorNight")&&(o.bgColorNight=i.bgColorNight),i.textColor!=null&&i.hasOwnProperty("textColor")&&(o.textColor=i.textColor),i.bgGradientColor!=null&&i.hasOwnProperty("bgGradientColor")&&(o.bgGradientColor=u.bilibili.pgc.gateway.player.v2.GradientColor.toObject(i.bgGradientColor,n)),i.img!=null&&i.hasOwnProperty("img")&&(o.img=i.img),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.pgc.gateway.player.v2.BadgeInfo"},l}(),e.ImageInfo=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.url=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.pgc.gateway.player.v2.ImageInfo)return i;let n=new u.bilibili.pgc.gateway.player.v2.ImageInfo;return i.url!=null&&(n.url=String(i.url)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.url=""),i.url!=null&&i.hasOwnProperty("url")&&(o.url=i.url),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.pgc.gateway.player.v2.ImageInfo"},l}(),e.TextInfo=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.text=i.string();break}case 2:{a.textColor=i.string();break}case 3:{a.textColorNight=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.pgc.gateway.player.v2.TextInfo)return i;let n=new u.bilibili.pgc.gateway.player.v2.TextInfo;return i.text!=null&&(n.text=String(i.text)),i.textColor!=null&&(n.textColor=String(i.textColor)),i.textColorNight!=null&&(n.textColorNight=String(i.textColorNight)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.text="",o.textColor="",o.textColorNight=""),i.text!=null&&i.hasOwnProperty("text")&&(o.text=i.text),i.textColor!=null&&i.hasOwnProperty("textColor")&&(o.textColor=i.textColor),i.textColorNight!=null&&i.hasOwnProperty("textColorNight")&&(o.textColorNight=i.textColorNight),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.pgc.gateway.player.v2.TextInfo"},l}(),e.PayTip=function(){function l(t){if(this.button=[],this.orderReportParams={},t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.title=i.string();break}case 2:{a.url=i.string();break}case 3:{a.icon=i.string();break}case 4:{a.type=i.int32();break}case 5:{a.showType=i.int32();break}case 6:{a.img=i.string();break}case 7:{a.bgDayColor=i.string();break}case 8:{a.bgNightColor=i.string();break}case 9:{a.bgLineColor=i.string();break}case 10:{a.bgNightLineColor=i.string();break}case 11:{a.textColor=i.string();break}case 12:{a.textNightColor=i.string();break}case 13:{a.viewStartTime=i.int64();break}case 14:{a.button&&a.button.length||(a.button=[]),a.button.push(u.bilibili.pgc.gateway.player.v2.ButtonInfo.decode(i,i.uint32()));break}case 15:{a.urlOpenType=i.int32();break}case 16:{a.report=u.bilibili.pgc.gateway.player.v2.Report.decode(i,i.uint32());break}case 17:{a.angleStyle=i.int32();break}case 18:{a.reportType=i.int32();break}case 19:{a.orderReportParams===r.emptyObject&&(a.orderReportParams={});let g=i.uint32()+i.pos;for(y="",s="";i.pos>>3){case 1:y=i.string();break;case 2:s=i.string();break;default:i.skipType(S&7);break}}a.orderReportParams[y]=s;break}case 20:{a.giantScreenImg=i.string();break}default:i.skipType(v&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.pgc.gateway.player.v2.PayTip)return i;let n=new u.bilibili.pgc.gateway.player.v2.PayTip;if(i.title!=null&&(n.title=String(i.title)),i.url!=null&&(n.url=String(i.url)),i.icon!=null&&(n.icon=String(i.icon)),i.type!=null&&(n.type=i.type|0),i.showType!=null&&(n.showType=i.showType|0),i.img!=null&&(n.img=String(i.img)),i.bgDayColor!=null&&(n.bgDayColor=String(i.bgDayColor)),i.bgNightColor!=null&&(n.bgNightColor=String(i.bgNightColor)),i.bgLineColor!=null&&(n.bgLineColor=String(i.bgLineColor)),i.bgNightLineColor!=null&&(n.bgNightLineColor=String(i.bgNightLineColor)),i.textColor!=null&&(n.textColor=String(i.textColor)),i.textNightColor!=null&&(n.textNightColor=String(i.textNightColor)),i.viewStartTime!=null&&(r.Long?(n.viewStartTime=r.Long.fromValue(i.viewStartTime)).unsigned=!1:typeof i.viewStartTime=="string"?n.viewStartTime=parseInt(i.viewStartTime,10):typeof i.viewStartTime=="number"?n.viewStartTime=i.viewStartTime:typeof i.viewStartTime=="object"&&(n.viewStartTime=new r.LongBits(i.viewStartTime.low>>>0,i.viewStartTime.high>>>0).toNumber())),i.button){if(!Array.isArray(i.button))throw TypeError(".bilibili.pgc.gateway.player.v2.PayTip.button: array expected");n.button=[];for(let o=0;o>>0,i.viewStartTime.high>>>0).toNumber():i.viewStartTime),i.button&&i.button.length){o.button=[];for(let y=0;y>>3){case 1:{a.isShowCover=i.bool();break}case 2:{a.isOrientationEnable=i.bool();break}case 3:{a.isNestedScrollEnable=i.bool();break}case 4:{a.isForceHalfscreenEnable=i.bool();break}case 5:{a.isBackgroundTranslucentEnable=i.bool();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.pgc.gateway.player.v2.DialogConfig)return i;let n=new u.bilibili.pgc.gateway.player.v2.DialogConfig;return i.isShowCover!=null&&(n.isShowCover=!!i.isShowCover),i.isOrientationEnable!=null&&(n.isOrientationEnable=!!i.isOrientationEnable),i.isNestedScrollEnable!=null&&(n.isNestedScrollEnable=!!i.isNestedScrollEnable),i.isForceHalfscreenEnable!=null&&(n.isForceHalfscreenEnable=!!i.isForceHalfscreenEnable),i.isBackgroundTranslucentEnable!=null&&(n.isBackgroundTranslucentEnable=!!i.isBackgroundTranslucentEnable),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.isShowCover=!1,o.isOrientationEnable=!1,o.isNestedScrollEnable=!1,o.isForceHalfscreenEnable=!1,o.isBackgroundTranslucentEnable=!1),i.isShowCover!=null&&i.hasOwnProperty("isShowCover")&&(o.isShowCover=i.isShowCover),i.isOrientationEnable!=null&&i.hasOwnProperty("isOrientationEnable")&&(o.isOrientationEnable=i.isOrientationEnable),i.isNestedScrollEnable!=null&&i.hasOwnProperty("isNestedScrollEnable")&&(o.isNestedScrollEnable=i.isNestedScrollEnable),i.isForceHalfscreenEnable!=null&&i.hasOwnProperty("isForceHalfscreenEnable")&&(o.isForceHalfscreenEnable=i.isForceHalfscreenEnable),i.isBackgroundTranslucentEnable!=null&&i.hasOwnProperty("isBackgroundTranslucentEnable")&&(o.isBackgroundTranslucentEnable=i.isBackgroundTranslucentEnable),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.pgc.gateway.player.v2.DialogConfig"},l}(),e.VideoInfo=function(){function l(t){if(this.streamList=[],this.dashAudio=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.quality=i.uint32();break}case 2:{a.format=i.string();break}case 3:{a.timelength=i.uint64();break}case 4:{a.videoCodecid=i.uint32();break}case 5:{a.streamList&&a.streamList.length||(a.streamList=[]),a.streamList.push(u.bilibili.pgc.gateway.player.v2.Stream.decode(i,i.uint32()));break}case 6:{a.dashAudio&&a.dashAudio.length||(a.dashAudio=[]),a.dashAudio.push(u.bilibili.pgc.gateway.player.v2.DashItem.decode(i,i.uint32()));break}case 7:{a.dolby=u.bilibili.pgc.gateway.player.v2.DolbyItem.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.pgc.gateway.player.v2.VideoInfo)return i;let n=new u.bilibili.pgc.gateway.player.v2.VideoInfo;if(i.quality!=null&&(n.quality=i.quality>>>0),i.format!=null&&(n.format=String(i.format)),i.timelength!=null&&(r.Long?(n.timelength=r.Long.fromValue(i.timelength)).unsigned=!0:typeof i.timelength=="string"?n.timelength=parseInt(i.timelength,10):typeof i.timelength=="number"?n.timelength=i.timelength:typeof i.timelength=="object"&&(n.timelength=new r.LongBits(i.timelength.low>>>0,i.timelength.high>>>0).toNumber(!0))),i.videoCodecid!=null&&(n.videoCodecid=i.videoCodecid>>>0),i.streamList){if(!Array.isArray(i.streamList))throw TypeError(".bilibili.pgc.gateway.player.v2.VideoInfo.streamList: array expected");n.streamList=[];for(let o=0;o>>0,i.timelength.high>>>0).toNumber(!0):i.timelength),i.videoCodecid!=null&&i.hasOwnProperty("videoCodecid")&&(o.videoCodecid=i.videoCodecid),i.streamList&&i.streamList.length){o.streamList=[];for(let a=0;a>>3){case 1:{a.type=i.int32();break}case 2:{a.audio&&a.audio.length||(a.audio=[]),a.audio.push(u.bilibili.pgc.gateway.player.v2.DashItem.decode(i,i.uint32()));break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.pgc.gateway.player.v2.DolbyItem)return i;let n=new u.bilibili.pgc.gateway.player.v2.DolbyItem;switch(i.type){default:if(typeof i.type=="number"){n.type=i.type;break}break;case"NONE":case 0:n.type=0;break;case"COMMON":case 1:n.type=1;break;case"ATMOS":case 2:n.type=2;break}if(i.audio){if(!Array.isArray(i.audio))throw TypeError(".bilibili.pgc.gateway.player.v2.DolbyItem.audio: array expected");n.audio=[];for(let o=0;o>>3){case 1:{a.id=i.uint32();break}case 2:{a.baseUrl=i.string();break}case 3:{a.backupUrl&&a.backupUrl.length||(a.backupUrl=[]),a.backupUrl.push(i.string());break}case 4:{a.bandwidth=i.uint32();break}case 5:{a.codecid=i.uint32();break}case 6:{a.md5=i.string();break}case 7:{a.size=i.uint64();break}case 8:{a.frameRate=i.string();break}case 9:{a.widevinePssh=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.pgc.gateway.player.v2.DashItem)return i;let n=new u.bilibili.pgc.gateway.player.v2.DashItem;if(i.id!=null&&(n.id=i.id>>>0),i.baseUrl!=null&&(n.baseUrl=String(i.baseUrl)),i.backupUrl){if(!Array.isArray(i.backupUrl))throw TypeError(".bilibili.pgc.gateway.player.v2.DashItem.backupUrl: array expected");n.backupUrl=[];for(let o=0;o>>0),i.codecid!=null&&(n.codecid=i.codecid>>>0),i.md5!=null&&(n.md5=String(i.md5)),i.size!=null&&(r.Long?(n.size=r.Long.fromValue(i.size)).unsigned=!0:typeof i.size=="string"?n.size=parseInt(i.size,10):typeof i.size=="number"?n.size=i.size:typeof i.size=="object"&&(n.size=new r.LongBits(i.size.low>>>0,i.size.high>>>0).toNumber(!0))),i.frameRate!=null&&(n.frameRate=String(i.frameRate)),i.widevinePssh!=null&&(n.widevinePssh=String(i.widevinePssh)),n},l.toObject=function(i,n){n||(n={});let o={};if((n.arrays||n.defaults)&&(o.backupUrl=[]),n.defaults){if(o.id=0,o.baseUrl="",o.bandwidth=0,o.codecid=0,o.md5="",r.Long){let a=new r.Long(0,0,!0);o.size=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.size=n.longs===String?"0":0;o.frameRate="",o.widevinePssh=""}if(i.id!=null&&i.hasOwnProperty("id")&&(o.id=i.id),i.baseUrl!=null&&i.hasOwnProperty("baseUrl")&&(o.baseUrl=i.baseUrl),i.backupUrl&&i.backupUrl.length){o.backupUrl=[];for(let a=0;a>>0,i.size.high>>>0).toNumber(!0):i.size),i.frameRate!=null&&i.hasOwnProperty("frameRate")&&(o.frameRate=i.frameRate),i.widevinePssh!=null&&i.hasOwnProperty("widevinePssh")&&(o.widevinePssh=i.widevinePssh),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.pgc.gateway.player.v2.DashItem"},l}(),e.Stream=function(){function l(i){if(i)for(let n=Object.keys(i),o=0;o>>3){case 1:{y.streamInfo=u.bilibili.pgc.gateway.player.v2.StreamInfo.decode(n,n.uint32());break}case 2:{y.dashVideo=u.bilibili.pgc.gateway.player.v2.DashVideo.decode(n,n.uint32());break}case 3:{y.segmentVideo=u.bilibili.pgc.gateway.player.v2.SegmentVideo.decode(n,n.uint32());break}default:n.skipType(s&7);break}}return y},l.fromObject=function(n){if(n instanceof u.bilibili.pgc.gateway.player.v2.Stream)return n;let o=new u.bilibili.pgc.gateway.player.v2.Stream;if(n.streamInfo!=null){if(typeof n.streamInfo!="object")throw TypeError(".bilibili.pgc.gateway.player.v2.Stream.streamInfo: object expected");o.streamInfo=u.bilibili.pgc.gateway.player.v2.StreamInfo.fromObject(n.streamInfo)}if(n.dashVideo!=null){if(typeof n.dashVideo!="object")throw TypeError(".bilibili.pgc.gateway.player.v2.Stream.dashVideo: object expected");o.dashVideo=u.bilibili.pgc.gateway.player.v2.DashVideo.fromObject(n.dashVideo)}if(n.segmentVideo!=null){if(typeof n.segmentVideo!="object")throw TypeError(".bilibili.pgc.gateway.player.v2.Stream.segmentVideo: object expected");o.segmentVideo=u.bilibili.pgc.gateway.player.v2.SegmentVideo.fromObject(n.segmentVideo)}return o},l.toObject=function(n,o){o||(o={});let a={};return o.defaults&&(a.streamInfo=null),n.streamInfo!=null&&n.hasOwnProperty("streamInfo")&&(a.streamInfo=u.bilibili.pgc.gateway.player.v2.StreamInfo.toObject(n.streamInfo,o)),n.dashVideo!=null&&n.hasOwnProperty("dashVideo")&&(a.dashVideo=u.bilibili.pgc.gateway.player.v2.DashVideo.toObject(n.dashVideo,o),o.oneofs&&(a.content="dashVideo")),n.segmentVideo!=null&&n.hasOwnProperty("segmentVideo")&&(a.segmentVideo=u.bilibili.pgc.gateway.player.v2.SegmentVideo.toObject(n.segmentVideo,o),o.oneofs&&(a.content="segmentVideo")),a},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/bilibili.pgc.gateway.player.v2.Stream"},l}(),e.SegmentVideo=function(){function l(t){if(this.segment=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.segment&&a.segment.length||(a.segment=[]),a.segment.push(u.bilibili.pgc.gateway.player.v2.ResponseUrl.decode(i,i.uint32()));break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.pgc.gateway.player.v2.SegmentVideo)return i;let n=new u.bilibili.pgc.gateway.player.v2.SegmentVideo;if(i.segment){if(!Array.isArray(i.segment))throw TypeError(".bilibili.pgc.gateway.player.v2.SegmentVideo.segment: array expected");n.segment=[];for(let o=0;o>>3){case 1:{a.order=i.uint32();break}case 2:{a.length=i.uint64();break}case 3:{a.size=i.uint64();break}case 4:{a.url=i.string();break}case 5:{a.backupUrl&&a.backupUrl.length||(a.backupUrl=[]),a.backupUrl.push(i.string());break}case 6:{a.md5=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.pgc.gateway.player.v2.ResponseUrl)return i;let n=new u.bilibili.pgc.gateway.player.v2.ResponseUrl;if(i.order!=null&&(n.order=i.order>>>0),i.length!=null&&(r.Long?(n.length=r.Long.fromValue(i.length)).unsigned=!0:typeof i.length=="string"?n.length=parseInt(i.length,10):typeof i.length=="number"?n.length=i.length:typeof i.length=="object"&&(n.length=new r.LongBits(i.length.low>>>0,i.length.high>>>0).toNumber(!0))),i.size!=null&&(r.Long?(n.size=r.Long.fromValue(i.size)).unsigned=!0:typeof i.size=="string"?n.size=parseInt(i.size,10):typeof i.size=="number"?n.size=i.size:typeof i.size=="object"&&(n.size=new r.LongBits(i.size.low>>>0,i.size.high>>>0).toNumber(!0))),i.url!=null&&(n.url=String(i.url)),i.backupUrl){if(!Array.isArray(i.backupUrl))throw TypeError(".bilibili.pgc.gateway.player.v2.ResponseUrl.backupUrl: array expected");n.backupUrl=[];for(let o=0;o>>0,i.length.high>>>0).toNumber(!0):i.length),i.size!=null&&i.hasOwnProperty("size")&&(typeof i.size=="number"?o.size=n.longs===String?String(i.size):i.size:o.size=n.longs===String?r.Long.prototype.toString.call(i.size):n.longs===Number?new r.LongBits(i.size.low>>>0,i.size.high>>>0).toNumber(!0):i.size),i.url!=null&&i.hasOwnProperty("url")&&(o.url=i.url),i.backupUrl&&i.backupUrl.length){o.backupUrl=[];for(let a=0;a>>3){case 1:{a.quality=i.uint32();break}case 2:{a.format=i.string();break}case 3:{a.description=i.string();break}case 4:{a.errCode=i.int32();break}case 5:{a.limit=u.bilibili.pgc.gateway.player.v2.StreamLimit.decode(i,i.uint32());break}case 6:{a.needVip=i.bool();break}case 7:{a.needLogin=i.bool();break}case 8:{a.intact=i.bool();break}case 9:{a.noRexcode=i.bool();break}case 10:{a.attribute=i.int64();break}case 11:{a.newDescription=i.string();break}case 12:{a.displayDesc=i.string();break}case 13:{a.superscript=i.string();break}case 14:{a.scheme=u.bilibili.pgc.gateway.player.v2.Scheme.decode(i,i.uint32());break}case 15:{a.supportDrm=i.bool();break}case 16:{a.subtitle=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.pgc.gateway.player.v2.StreamInfo)return i;let n=new u.bilibili.pgc.gateway.player.v2.StreamInfo;switch(i.quality!=null&&(n.quality=i.quality>>>0),i.format!=null&&(n.format=String(i.format)),i.description!=null&&(n.description=String(i.description)),i.errCode){default:if(typeof i.errCode=="number"){n.errCode=i.errCode;break}break;case"NoErr":case 0:n.errCode=0;break;case"WithMultiDeviceLoginErr":case 1:n.errCode=1;break}if(i.limit!=null){if(typeof i.limit!="object")throw TypeError(".bilibili.pgc.gateway.player.v2.StreamInfo.limit: object expected");n.limit=u.bilibili.pgc.gateway.player.v2.StreamLimit.fromObject(i.limit)}if(i.needVip!=null&&(n.needVip=!!i.needVip),i.needLogin!=null&&(n.needLogin=!!i.needLogin),i.intact!=null&&(n.intact=!!i.intact),i.noRexcode!=null&&(n.noRexcode=!!i.noRexcode),i.attribute!=null&&(r.Long?(n.attribute=r.Long.fromValue(i.attribute)).unsigned=!1:typeof i.attribute=="string"?n.attribute=parseInt(i.attribute,10):typeof i.attribute=="number"?n.attribute=i.attribute:typeof i.attribute=="object"&&(n.attribute=new r.LongBits(i.attribute.low>>>0,i.attribute.high>>>0).toNumber())),i.newDescription!=null&&(n.newDescription=String(i.newDescription)),i.displayDesc!=null&&(n.displayDesc=String(i.displayDesc)),i.superscript!=null&&(n.superscript=String(i.superscript)),i.scheme!=null){if(typeof i.scheme!="object")throw TypeError(".bilibili.pgc.gateway.player.v2.StreamInfo.scheme: object expected");n.scheme=u.bilibili.pgc.gateway.player.v2.Scheme.fromObject(i.scheme)}return i.supportDrm!=null&&(n.supportDrm=!!i.supportDrm),i.subtitle!=null&&(n.subtitle=String(i.subtitle)),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(o.quality=0,o.format="",o.description="",o.errCode=n.enums===String?"NoErr":0,o.limit=null,o.needVip=!1,o.needLogin=!1,o.intact=!1,o.noRexcode=!1,r.Long){let a=new r.Long(0,0,!1);o.attribute=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.attribute=n.longs===String?"0":0;o.newDescription="",o.displayDesc="",o.superscript="",o.scheme=null,o.supportDrm=!1,o.subtitle=""}return i.quality!=null&&i.hasOwnProperty("quality")&&(o.quality=i.quality),i.format!=null&&i.hasOwnProperty("format")&&(o.format=i.format),i.description!=null&&i.hasOwnProperty("description")&&(o.description=i.description),i.errCode!=null&&i.hasOwnProperty("errCode")&&(o.errCode=n.enums===String?u.bilibili.pgc.gateway.player.v2.PlayErr[i.errCode]===void 0?i.errCode:u.bilibili.pgc.gateway.player.v2.PlayErr[i.errCode]:i.errCode),i.limit!=null&&i.hasOwnProperty("limit")&&(o.limit=u.bilibili.pgc.gateway.player.v2.StreamLimit.toObject(i.limit,n)),i.needVip!=null&&i.hasOwnProperty("needVip")&&(o.needVip=i.needVip),i.needLogin!=null&&i.hasOwnProperty("needLogin")&&(o.needLogin=i.needLogin),i.intact!=null&&i.hasOwnProperty("intact")&&(o.intact=i.intact),i.noRexcode!=null&&i.hasOwnProperty("noRexcode")&&(o.noRexcode=i.noRexcode),i.attribute!=null&&i.hasOwnProperty("attribute")&&(typeof i.attribute=="number"?o.attribute=n.longs===String?String(i.attribute):i.attribute:o.attribute=n.longs===String?r.Long.prototype.toString.call(i.attribute):n.longs===Number?new r.LongBits(i.attribute.low>>>0,i.attribute.high>>>0).toNumber():i.attribute),i.newDescription!=null&&i.hasOwnProperty("newDescription")&&(o.newDescription=i.newDescription),i.displayDesc!=null&&i.hasOwnProperty("displayDesc")&&(o.displayDesc=i.displayDesc),i.superscript!=null&&i.hasOwnProperty("superscript")&&(o.superscript=i.superscript),i.scheme!=null&&i.hasOwnProperty("scheme")&&(o.scheme=u.bilibili.pgc.gateway.player.v2.Scheme.toObject(i.scheme,n)),i.supportDrm!=null&&i.hasOwnProperty("supportDrm")&&(o.supportDrm=i.supportDrm),i.subtitle!=null&&i.hasOwnProperty("subtitle")&&(o.subtitle=i.subtitle),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.pgc.gateway.player.v2.StreamInfo"},l}(),e.Scheme=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.actionType=i.int32();break}case 2:{a.toast=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.pgc.gateway.player.v2.Scheme)return i;let n=new u.bilibili.pgc.gateway.player.v2.Scheme;switch(i.actionType){default:if(typeof i.actionType=="number"){n.actionType=i.actionType;break}break;case"UNKNOWN":case 0:n.actionType=0;break;case"SHOW_TOAST":case 1:n.actionType=1;break}return i.toast!=null&&(n.toast=String(i.toast)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.actionType=n.enums===String?"UNKNOWN":0,o.toast=""),i.actionType!=null&&i.hasOwnProperty("actionType")&&(o.actionType=n.enums===String?u.bilibili.pgc.gateway.player.v2.Scheme.ActionType[i.actionType]===void 0?i.actionType:u.bilibili.pgc.gateway.player.v2.Scheme.ActionType[i.actionType]:i.actionType),i.toast!=null&&i.hasOwnProperty("toast")&&(o.toast=i.toast),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.pgc.gateway.player.v2.Scheme"},l.ActionType=function(){let t={},i=Object.create(t);return i[t[0]="UNKNOWN"]=0,i[t[1]="SHOW_TOAST"]=1,i}(),l}(),e.DashVideo=function(){function l(t){if(this.backupUrl=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.baseUrl=i.string();break}case 2:{a.backupUrl&&a.backupUrl.length||(a.backupUrl=[]),a.backupUrl.push(i.string());break}case 3:{a.bandwidth=i.uint32();break}case 4:{a.codecid=i.uint32();break}case 5:{a.md5=i.string();break}case 6:{a.size=i.uint64();break}case 7:{a.audioId=i.uint32();break}case 8:{a.noRexcode=i.bool();break}case 9:{a.frameRate=i.string();break}case 10:{a.width=i.uint32();break}case 11:{a.height=i.uint32();break}case 12:{a.widevinePssh=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.pgc.gateway.player.v2.DashVideo)return i;let n=new u.bilibili.pgc.gateway.player.v2.DashVideo;if(i.baseUrl!=null&&(n.baseUrl=String(i.baseUrl)),i.backupUrl){if(!Array.isArray(i.backupUrl))throw TypeError(".bilibili.pgc.gateway.player.v2.DashVideo.backupUrl: array expected");n.backupUrl=[];for(let o=0;o>>0),i.codecid!=null&&(n.codecid=i.codecid>>>0),i.md5!=null&&(n.md5=String(i.md5)),i.size!=null&&(r.Long?(n.size=r.Long.fromValue(i.size)).unsigned=!0:typeof i.size=="string"?n.size=parseInt(i.size,10):typeof i.size=="number"?n.size=i.size:typeof i.size=="object"&&(n.size=new r.LongBits(i.size.low>>>0,i.size.high>>>0).toNumber(!0))),i.audioId!=null&&(n.audioId=i.audioId>>>0),i.noRexcode!=null&&(n.noRexcode=!!i.noRexcode),i.frameRate!=null&&(n.frameRate=String(i.frameRate)),i.width!=null&&(n.width=i.width>>>0),i.height!=null&&(n.height=i.height>>>0),i.widevinePssh!=null&&(n.widevinePssh=String(i.widevinePssh)),n},l.toObject=function(i,n){n||(n={});let o={};if((n.arrays||n.defaults)&&(o.backupUrl=[]),n.defaults){if(o.baseUrl="",o.bandwidth=0,o.codecid=0,o.md5="",r.Long){let a=new r.Long(0,0,!0);o.size=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.size=n.longs===String?"0":0;o.audioId=0,o.noRexcode=!1,o.frameRate="",o.width=0,o.height=0,o.widevinePssh=""}if(i.baseUrl!=null&&i.hasOwnProperty("baseUrl")&&(o.baseUrl=i.baseUrl),i.backupUrl&&i.backupUrl.length){o.backupUrl=[];for(let a=0;a>>0,i.size.high>>>0).toNumber(!0):i.size),i.audioId!=null&&i.hasOwnProperty("audioId")&&(o.audioId=i.audioId),i.noRexcode!=null&&i.hasOwnProperty("noRexcode")&&(o.noRexcode=i.noRexcode),i.frameRate!=null&&i.hasOwnProperty("frameRate")&&(o.frameRate=i.frameRate),i.width!=null&&i.hasOwnProperty("width")&&(o.width=i.width),i.height!=null&&i.hasOwnProperty("height")&&(o.height=i.height),i.widevinePssh!=null&&i.hasOwnProperty("widevinePssh")&&(o.widevinePssh=i.widevinePssh),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.pgc.gateway.player.v2.DashVideo"},l}(),e.Event=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.shake=u.bilibili.pgc.gateway.player.v2.Shake.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.pgc.gateway.player.v2.Event)return i;let n=new u.bilibili.pgc.gateway.player.v2.Event;if(i.shake!=null){if(typeof i.shake!="object")throw TypeError(".bilibili.pgc.gateway.player.v2.Event.shake: object expected");n.shake=u.bilibili.pgc.gateway.player.v2.Shake.fromObject(i.shake)}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.shake=null),i.shake!=null&&i.hasOwnProperty("shake")&&(o.shake=u.bilibili.pgc.gateway.player.v2.Shake.toObject(i.shake,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.pgc.gateway.player.v2.Event"},l}(),e.Shake=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.file=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.pgc.gateway.player.v2.Shake)return i;let n=new u.bilibili.pgc.gateway.player.v2.Shake;return i.file!=null&&(n.file=String(i.file)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.file=""),i.file!=null&&i.hasOwnProperty("file")&&(o.file=i.file),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.pgc.gateway.player.v2.Shake"},l}(),e.PlayViewBusinessInfo=function(){function l(t){if(this.clipInfo=[],this.qualityExtMap={},this.expMap={},this.epPublicityVideoList=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.isPreview=i.bool();break}case 2:{a.bp=i.bool();break}case 3:{a.marlinToken=i.string();break}case 4:{a.playbackSpeedColor=i.string();break}case 5:{a.continuePlayInfo=u.bilibili.pgc.gateway.player.v2.ContinuePlayInfo.decode(i,i.uint32());break}case 6:{a.clipInfo&&a.clipInfo.length||(a.clipInfo=[]),a.clipInfo.push(u.bilibili.pgc.gateway.player.v2.ClipInfo.decode(i,i.uint32()));break}case 7:{a.inlineType=i.int32();break}case 8:{a.epWholeDuration=i.int32();break}case 9:{a.dimension=u.bilibili.pgc.gateway.player.v2.Dimension.decode(i,i.uint32());break}case 10:{a.qualityExtMap===r.emptyObject&&(a.qualityExtMap={});let g=i.uint32()+i.pos;for(y=0,s=null;i.pos>>3){case 1:y=i.int32();break;case 2:s=u.bilibili.pgc.gateway.player.v2.QualityExtInfo.decode(i,i.uint32());break;default:i.skipType(S&7);break}}a.qualityExtMap[y]=s;break}case 11:{a.expMap===r.emptyObject&&(a.expMap={});let g=i.uint32()+i.pos;for(y="",s=0;i.pos>>3){case 1:y=i.string();break;case 2:s=i.int32();break;default:i.skipType(S&7);break}}a.expMap[y]=s;break}case 12:{a.drmTechType=i.int32();break}case 13:{a.limitActionType=i.int32();break}case 14:{a.isDrm=i.bool();break}case 15:{a.recordInfo=u.bilibili.pgc.gateway.player.v2.RecordInfo.decode(i,i.uint32());break}case 16:{a.vipStatus=i.int32();break}case 17:{a.isLivePre=i.bool();break}case 18:{a.episodeInfo=u.bilibili.pgc.gateway.player.v2.EpisodeInfo.decode(i,i.uint32());break}case 19:{a.episodeAdvertisementInfo=u.bilibili.pgc.gateway.player.v2.EpisodeAdvertisementInfo.decode(i,i.uint32());break}case 20:{a.userStatus=u.bilibili.pgc.gateway.player.v2.UserStatus.decode(i,i.uint32());break}case 21:{a.epPublicityVideoList&&a.epPublicityVideoList.length||(a.epPublicityVideoList=[]),a.epPublicityVideoList.push(u.bilibili.pgc.gateway.player.v2.EpPublicityVideo.decode(i,i.uint32()));break}case 22:{a.watchTimeLength=i.uint64();break}default:i.skipType(v&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.pgc.gateway.player.v2.PlayViewBusinessInfo)return i;let n=new u.bilibili.pgc.gateway.player.v2.PlayViewBusinessInfo;if(i.isPreview!=null&&(n.isPreview=!!i.isPreview),i.bp!=null&&(n.bp=!!i.bp),i.marlinToken!=null&&(n.marlinToken=String(i.marlinToken)),i.playbackSpeedColor!=null&&(n.playbackSpeedColor=String(i.playbackSpeedColor)),i.continuePlayInfo!=null){if(typeof i.continuePlayInfo!="object")throw TypeError(".bilibili.pgc.gateway.player.v2.PlayViewBusinessInfo.continuePlayInfo: object expected");n.continuePlayInfo=u.bilibili.pgc.gateway.player.v2.ContinuePlayInfo.fromObject(i.continuePlayInfo)}if(i.clipInfo){if(!Array.isArray(i.clipInfo))throw TypeError(".bilibili.pgc.gateway.player.v2.PlayViewBusinessInfo.clipInfo: array expected");n.clipInfo=[];for(let o=0;o>>0,i.watchTimeLength.high>>>0).toNumber(!0))),n},l.toObject=function(i,n){n||(n={});let o={};if((n.arrays||n.defaults)&&(o.clipInfo=[],o.epPublicityVideoList=[]),(n.objects||n.defaults)&&(o.qualityExtMap={},o.expMap={}),n.defaults)if(o.isPreview=!1,o.bp=!1,o.marlinToken="",o.playbackSpeedColor="",o.continuePlayInfo=null,o.inlineType=n.enums===String?"TYPE_UNKNOWN":0,o.epWholeDuration=0,o.dimension=null,o.drmTechType=n.enums===String?"NON":0,o.limitActionType=n.enums===String?"LAT_UNKNOWN":0,o.isDrm=!1,o.recordInfo=null,o.vipStatus=0,o.isLivePre=!1,o.episodeInfo=null,o.episodeAdvertisementInfo=null,o.userStatus=null,r.Long){let y=new r.Long(0,0,!0);o.watchTimeLength=n.longs===String?y.toString():n.longs===Number?y.toNumber():y}else o.watchTimeLength=n.longs===String?"0":0;if(i.isPreview!=null&&i.hasOwnProperty("isPreview")&&(o.isPreview=i.isPreview),i.bp!=null&&i.hasOwnProperty("bp")&&(o.bp=i.bp),i.marlinToken!=null&&i.hasOwnProperty("marlinToken")&&(o.marlinToken=i.marlinToken),i.playbackSpeedColor!=null&&i.hasOwnProperty("playbackSpeedColor")&&(o.playbackSpeedColor=i.playbackSpeedColor),i.continuePlayInfo!=null&&i.hasOwnProperty("continuePlayInfo")&&(o.continuePlayInfo=u.bilibili.pgc.gateway.player.v2.ContinuePlayInfo.toObject(i.continuePlayInfo,n)),i.clipInfo&&i.clipInfo.length){o.clipInfo=[];for(let y=0;y>>0,i.watchTimeLength.high>>>0).toNumber(!0):i.watchTimeLength),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.pgc.gateway.player.v2.PlayViewBusinessInfo"},l}(),e.EpPublicityVideo=function(){function l(i){if(i)for(let n=Object.keys(i),o=0;o>>3){case 1:{y.type=n.int32();break}case 2:{y.epPreVideo=u.bilibili.pgc.gateway.player.v2.EpPreVideo.decode(n,n.uint32());break}case 3:{y.epInline=u.bilibili.pgc.gateway.player.v2.EpInlineVideo.decode(n,n.uint32());break}default:n.skipType(s&7);break}}return y},l.fromObject=function(n){if(n instanceof u.bilibili.pgc.gateway.player.v2.EpPublicityVideo)return n;let o=new u.bilibili.pgc.gateway.player.v2.EpPublicityVideo;switch(n.type){default:if(typeof n.type=="number"){o.type=n.type;break}break;case"PRE":case 0:o.type=0;break;case"INLINE":case 1:o.type=1;break;case"ADV_TYPE_UNKNOWN":case-1:o.type=-1;break}if(n.epPreVideo!=null){if(typeof n.epPreVideo!="object")throw TypeError(".bilibili.pgc.gateway.player.v2.EpPublicityVideo.epPreVideo: object expected");o.epPreVideo=u.bilibili.pgc.gateway.player.v2.EpPreVideo.fromObject(n.epPreVideo)}if(n.epInline!=null){if(typeof n.epInline!="object")throw TypeError(".bilibili.pgc.gateway.player.v2.EpPublicityVideo.epInline: object expected");o.epInline=u.bilibili.pgc.gateway.player.v2.EpInlineVideo.fromObject(n.epInline)}return o},l.toObject=function(n,o){o||(o={});let a={};return o.defaults&&(a.type=o.enums===String?"PRE":0),n.type!=null&&n.hasOwnProperty("type")&&(a.type=o.enums===String?u.bilibili.pgc.gateway.player.v2.EpPublicityVideoType[n.type]===void 0?n.type:u.bilibili.pgc.gateway.player.v2.EpPublicityVideoType[n.type]:n.type),n.epPreVideo!=null&&n.hasOwnProperty("epPreVideo")&&(a.epPreVideo=u.bilibili.pgc.gateway.player.v2.EpPreVideo.toObject(n.epPreVideo,o),o.oneofs&&(a.data="epPreVideo")),n.epInline!=null&&n.hasOwnProperty("epInline")&&(a.epInline=u.bilibili.pgc.gateway.player.v2.EpInlineVideo.toObject(n.epInline,o),o.oneofs&&(a.data="epInline")),a},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/bilibili.pgc.gateway.player.v2.EpPublicityVideo"},l}(),e.EpPreVideo=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.aid=i.int64();break}case 2:{a.cid=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.pgc.gateway.player.v2.EpPreVideo)return i;let n=new u.bilibili.pgc.gateway.player.v2.EpPreVideo;return i.aid!=null&&(r.Long?(n.aid=r.Long.fromValue(i.aid)).unsigned=!1:typeof i.aid=="string"?n.aid=parseInt(i.aid,10):typeof i.aid=="number"?n.aid=i.aid:typeof i.aid=="object"&&(n.aid=new r.LongBits(i.aid.low>>>0,i.aid.high>>>0).toNumber())),i.cid!=null&&(r.Long?(n.cid=r.Long.fromValue(i.cid)).unsigned=!1:typeof i.cid=="string"?n.cid=parseInt(i.cid,10):typeof i.cid=="number"?n.cid=i.cid:typeof i.cid=="object"&&(n.cid=new r.LongBits(i.cid.low>>>0,i.cid.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.aid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.aid=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.cid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.cid=n.longs===String?"0":0}return i.aid!=null&&i.hasOwnProperty("aid")&&(typeof i.aid=="number"?o.aid=n.longs===String?String(i.aid):i.aid:o.aid=n.longs===String?r.Long.prototype.toString.call(i.aid):n.longs===Number?new r.LongBits(i.aid.low>>>0,i.aid.high>>>0).toNumber():i.aid),i.cid!=null&&i.hasOwnProperty("cid")&&(typeof i.cid=="number"?o.cid=n.longs===String?String(i.cid):i.cid:o.cid=n.longs===String?r.Long.prototype.toString.call(i.cid):n.longs===Number?new r.LongBits(i.cid.low>>>0,i.cid.high>>>0).toNumber():i.cid),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.pgc.gateway.player.v2.EpPreVideo"},l}(),e.EpInlineVideo=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.materialNo=i.int64();break}case 2:{a.aid=i.int64();break}case 3:{a.cid=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.pgc.gateway.player.v2.EpInlineVideo)return i;let n=new u.bilibili.pgc.gateway.player.v2.EpInlineVideo;return i.materialNo!=null&&(r.Long?(n.materialNo=r.Long.fromValue(i.materialNo)).unsigned=!1:typeof i.materialNo=="string"?n.materialNo=parseInt(i.materialNo,10):typeof i.materialNo=="number"?n.materialNo=i.materialNo:typeof i.materialNo=="object"&&(n.materialNo=new r.LongBits(i.materialNo.low>>>0,i.materialNo.high>>>0).toNumber())),i.aid!=null&&(r.Long?(n.aid=r.Long.fromValue(i.aid)).unsigned=!1:typeof i.aid=="string"?n.aid=parseInt(i.aid,10):typeof i.aid=="number"?n.aid=i.aid:typeof i.aid=="object"&&(n.aid=new r.LongBits(i.aid.low>>>0,i.aid.high>>>0).toNumber())),i.cid!=null&&(r.Long?(n.cid=r.Long.fromValue(i.cid)).unsigned=!1:typeof i.cid=="string"?n.cid=parseInt(i.cid,10):typeof i.cid=="number"?n.cid=i.cid:typeof i.cid=="object"&&(n.cid=new r.LongBits(i.cid.low>>>0,i.cid.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.materialNo=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.materialNo=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.aid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.aid=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.cid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.cid=n.longs===String?"0":0}return i.materialNo!=null&&i.hasOwnProperty("materialNo")&&(typeof i.materialNo=="number"?o.materialNo=n.longs===String?String(i.materialNo):i.materialNo:o.materialNo=n.longs===String?r.Long.prototype.toString.call(i.materialNo):n.longs===Number?new r.LongBits(i.materialNo.low>>>0,i.materialNo.high>>>0).toNumber():i.materialNo),i.aid!=null&&i.hasOwnProperty("aid")&&(typeof i.aid=="number"?o.aid=n.longs===String?String(i.aid):i.aid:o.aid=n.longs===String?r.Long.prototype.toString.call(i.aid):n.longs===Number?new r.LongBits(i.aid.low>>>0,i.aid.high>>>0).toNumber():i.aid),i.cid!=null&&i.hasOwnProperty("cid")&&(typeof i.cid=="number"?o.cid=n.longs===String?String(i.cid):i.cid:o.cid=n.longs===String?r.Long.prototype.toString.call(i.cid):n.longs===Number?new r.LongBits(i.cid.low>>>0,i.cid.high>>>0).toNumber():i.cid),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.pgc.gateway.player.v2.EpInlineVideo"},l}(),e.EpPublicityVideoType=function(){let l={},t=Object.create(l);return t[l[0]="PRE"]=0,t[l[1]="INLINE"]=1,t[l[-1]="ADV_TYPE_UNKNOWN"]=-1,t}(),e.UserStatus=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.payCheck=i.bool();break}case 2:{a.sponsor=i.bool();break}case 3:{a.watchProgress=u.bilibili.pgc.gateway.player.v2.WatchProgress.decode(i,i.uint32());break}case 4:{a.aidWatchProgress=u.bilibili.pgc.gateway.player.v2.WatchProgress.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.pgc.gateway.player.v2.UserStatus)return i;let n=new u.bilibili.pgc.gateway.player.v2.UserStatus;if(i.payCheck!=null&&(n.payCheck=!!i.payCheck),i.sponsor!=null&&(n.sponsor=!!i.sponsor),i.watchProgress!=null){if(typeof i.watchProgress!="object")throw TypeError(".bilibili.pgc.gateway.player.v2.UserStatus.watchProgress: object expected");n.watchProgress=u.bilibili.pgc.gateway.player.v2.WatchProgress.fromObject(i.watchProgress)}if(i.aidWatchProgress!=null){if(typeof i.aidWatchProgress!="object")throw TypeError(".bilibili.pgc.gateway.player.v2.UserStatus.aidWatchProgress: object expected");n.aidWatchProgress=u.bilibili.pgc.gateway.player.v2.WatchProgress.fromObject(i.aidWatchProgress)}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.payCheck=!1,o.sponsor=!1,o.watchProgress=null,o.aidWatchProgress=null),i.payCheck!=null&&i.hasOwnProperty("payCheck")&&(o.payCheck=i.payCheck),i.sponsor!=null&&i.hasOwnProperty("sponsor")&&(o.sponsor=i.sponsor),i.watchProgress!=null&&i.hasOwnProperty("watchProgress")&&(o.watchProgress=u.bilibili.pgc.gateway.player.v2.WatchProgress.toObject(i.watchProgress,n)),i.aidWatchProgress!=null&&i.hasOwnProperty("aidWatchProgress")&&(o.aidWatchProgress=u.bilibili.pgc.gateway.player.v2.WatchProgress.toObject(i.aidWatchProgress,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.pgc.gateway.player.v2.UserStatus"},l}(),e.WatchProgress=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.lastEpId=i.int32();break}case 2:{a.lastEpIndex=i.string();break}case 3:{a.progress=i.int64();break}case 4:{a.lastPlayCid=i.int64();break}case 5:{a.toast=u.bilibili.pgc.gateway.player.v2.Toast.decode(i,i.uint32());break}case 6:{a.toastWithoutTime=u.bilibili.pgc.gateway.player.v2.Toast.decode(i,i.uint32());break}case 7:{a.lastPlayAid=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.pgc.gateway.player.v2.WatchProgress)return i;let n=new u.bilibili.pgc.gateway.player.v2.WatchProgress;if(i.lastEpId!=null&&(n.lastEpId=i.lastEpId|0),i.lastEpIndex!=null&&(n.lastEpIndex=String(i.lastEpIndex)),i.progress!=null&&(r.Long?(n.progress=r.Long.fromValue(i.progress)).unsigned=!1:typeof i.progress=="string"?n.progress=parseInt(i.progress,10):typeof i.progress=="number"?n.progress=i.progress:typeof i.progress=="object"&&(n.progress=new r.LongBits(i.progress.low>>>0,i.progress.high>>>0).toNumber())),i.lastPlayCid!=null&&(r.Long?(n.lastPlayCid=r.Long.fromValue(i.lastPlayCid)).unsigned=!1:typeof i.lastPlayCid=="string"?n.lastPlayCid=parseInt(i.lastPlayCid,10):typeof i.lastPlayCid=="number"?n.lastPlayCid=i.lastPlayCid:typeof i.lastPlayCid=="object"&&(n.lastPlayCid=new r.LongBits(i.lastPlayCid.low>>>0,i.lastPlayCid.high>>>0).toNumber())),i.toast!=null){if(typeof i.toast!="object")throw TypeError(".bilibili.pgc.gateway.player.v2.WatchProgress.toast: object expected");n.toast=u.bilibili.pgc.gateway.player.v2.Toast.fromObject(i.toast)}if(i.toastWithoutTime!=null){if(typeof i.toastWithoutTime!="object")throw TypeError(".bilibili.pgc.gateway.player.v2.WatchProgress.toastWithoutTime: object expected");n.toastWithoutTime=u.bilibili.pgc.gateway.player.v2.Toast.fromObject(i.toastWithoutTime)}return i.lastPlayAid!=null&&(r.Long?(n.lastPlayAid=r.Long.fromValue(i.lastPlayAid)).unsigned=!1:typeof i.lastPlayAid=="string"?n.lastPlayAid=parseInt(i.lastPlayAid,10):typeof i.lastPlayAid=="number"?n.lastPlayAid=i.lastPlayAid:typeof i.lastPlayAid=="object"&&(n.lastPlayAid=new r.LongBits(i.lastPlayAid.low>>>0,i.lastPlayAid.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(o.lastEpId=0,o.lastEpIndex="",r.Long){let a=new r.Long(0,0,!1);o.progress=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.progress=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.lastPlayCid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.lastPlayCid=n.longs===String?"0":0;if(o.toast=null,o.toastWithoutTime=null,r.Long){let a=new r.Long(0,0,!1);o.lastPlayAid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.lastPlayAid=n.longs===String?"0":0}return i.lastEpId!=null&&i.hasOwnProperty("lastEpId")&&(o.lastEpId=i.lastEpId),i.lastEpIndex!=null&&i.hasOwnProperty("lastEpIndex")&&(o.lastEpIndex=i.lastEpIndex),i.progress!=null&&i.hasOwnProperty("progress")&&(typeof i.progress=="number"?o.progress=n.longs===String?String(i.progress):i.progress:o.progress=n.longs===String?r.Long.prototype.toString.call(i.progress):n.longs===Number?new r.LongBits(i.progress.low>>>0,i.progress.high>>>0).toNumber():i.progress),i.lastPlayCid!=null&&i.hasOwnProperty("lastPlayCid")&&(typeof i.lastPlayCid=="number"?o.lastPlayCid=n.longs===String?String(i.lastPlayCid):i.lastPlayCid:o.lastPlayCid=n.longs===String?r.Long.prototype.toString.call(i.lastPlayCid):n.longs===Number?new r.LongBits(i.lastPlayCid.low>>>0,i.lastPlayCid.high>>>0).toNumber():i.lastPlayCid),i.toast!=null&&i.hasOwnProperty("toast")&&(o.toast=u.bilibili.pgc.gateway.player.v2.Toast.toObject(i.toast,n)),i.toastWithoutTime!=null&&i.hasOwnProperty("toastWithoutTime")&&(o.toastWithoutTime=u.bilibili.pgc.gateway.player.v2.Toast.toObject(i.toastWithoutTime,n)),i.lastPlayAid!=null&&i.hasOwnProperty("lastPlayAid")&&(typeof i.lastPlayAid=="number"?o.lastPlayAid=n.longs===String?String(i.lastPlayAid):i.lastPlayAid:o.lastPlayAid=n.longs===String?r.Long.prototype.toString.call(i.lastPlayAid):n.longs===Number?new r.LongBits(i.lastPlayAid.low>>>0,i.lastPlayAid.high>>>0).toNumber():i.lastPlayAid),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.pgc.gateway.player.v2.WatchProgress"},l}(),e.EpisodeAdvertisementInfo=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.aid=i.int64();break}case 2:{a.title=i.string();break}case 3:{a.link=i.string();break}case 4:{a.followVideoBntFlag=i.int32();break}case 5:{a.nextVideoTitle=i.string();break}case 6:{a.nextVideoLink=i.string();break}case 7:{a.cid=i.int64();break}case 8:{a.seasonId=i.int32();break}case 9:{a.follow=i.int32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.pgc.gateway.player.v2.EpisodeAdvertisementInfo)return i;let n=new u.bilibili.pgc.gateway.player.v2.EpisodeAdvertisementInfo;return i.aid!=null&&(r.Long?(n.aid=r.Long.fromValue(i.aid)).unsigned=!1:typeof i.aid=="string"?n.aid=parseInt(i.aid,10):typeof i.aid=="number"?n.aid=i.aid:typeof i.aid=="object"&&(n.aid=new r.LongBits(i.aid.low>>>0,i.aid.high>>>0).toNumber())),i.title!=null&&(n.title=String(i.title)),i.link!=null&&(n.link=String(i.link)),i.followVideoBntFlag!=null&&(n.followVideoBntFlag=i.followVideoBntFlag|0),i.nextVideoTitle!=null&&(n.nextVideoTitle=String(i.nextVideoTitle)),i.nextVideoLink!=null&&(n.nextVideoLink=String(i.nextVideoLink)),i.cid!=null&&(r.Long?(n.cid=r.Long.fromValue(i.cid)).unsigned=!1:typeof i.cid=="string"?n.cid=parseInt(i.cid,10):typeof i.cid=="number"?n.cid=i.cid:typeof i.cid=="object"&&(n.cid=new r.LongBits(i.cid.low>>>0,i.cid.high>>>0).toNumber())),i.seasonId!=null&&(n.seasonId=i.seasonId|0),i.follow!=null&&(n.follow=i.follow|0),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.aid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.aid=n.longs===String?"0":0;if(o.title="",o.link="",o.followVideoBntFlag=0,o.nextVideoTitle="",o.nextVideoLink="",r.Long){let a=new r.Long(0,0,!1);o.cid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.cid=n.longs===String?"0":0;o.seasonId=0,o.follow=0}return i.aid!=null&&i.hasOwnProperty("aid")&&(typeof i.aid=="number"?o.aid=n.longs===String?String(i.aid):i.aid:o.aid=n.longs===String?r.Long.prototype.toString.call(i.aid):n.longs===Number?new r.LongBits(i.aid.low>>>0,i.aid.high>>>0).toNumber():i.aid),i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.link!=null&&i.hasOwnProperty("link")&&(o.link=i.link),i.followVideoBntFlag!=null&&i.hasOwnProperty("followVideoBntFlag")&&(o.followVideoBntFlag=i.followVideoBntFlag),i.nextVideoTitle!=null&&i.hasOwnProperty("nextVideoTitle")&&(o.nextVideoTitle=i.nextVideoTitle),i.nextVideoLink!=null&&i.hasOwnProperty("nextVideoLink")&&(o.nextVideoLink=i.nextVideoLink),i.cid!=null&&i.hasOwnProperty("cid")&&(typeof i.cid=="number"?o.cid=n.longs===String?String(i.cid):i.cid:o.cid=n.longs===String?r.Long.prototype.toString.call(i.cid):n.longs===Number?new r.LongBits(i.cid.low>>>0,i.cid.high>>>0).toNumber():i.cid),i.seasonId!=null&&i.hasOwnProperty("seasonId")&&(o.seasonId=i.seasonId),i.follow!=null&&i.hasOwnProperty("follow")&&(o.follow=i.follow),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.pgc.gateway.player.v2.EpisodeAdvertisementInfo"},l}(),e.EpisodeInfo=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.epId=i.int32();break}case 2:{a.cid=i.int64();break}case 3:{a.aid=i.int64();break}case 4:{a.epStatus=i.int32();break}case 5:{a.seasonInfo=u.bilibili.pgc.gateway.player.v2.SeasonInfo.decode(i,i.uint32());break}case 6:{a.cover=i.string();break}case 7:{a.title=i.string();break}case 8:{a.interaction=u.bilibili.pgc.gateway.player.v2.Interaction.decode(i,i.uint32());break}case 9:{a.longTitle=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.pgc.gateway.player.v2.EpisodeInfo)return i;let n=new u.bilibili.pgc.gateway.player.v2.EpisodeInfo;if(i.epId!=null&&(n.epId=i.epId|0),i.cid!=null&&(r.Long?(n.cid=r.Long.fromValue(i.cid)).unsigned=!1:typeof i.cid=="string"?n.cid=parseInt(i.cid,10):typeof i.cid=="number"?n.cid=i.cid:typeof i.cid=="object"&&(n.cid=new r.LongBits(i.cid.low>>>0,i.cid.high>>>0).toNumber())),i.aid!=null&&(r.Long?(n.aid=r.Long.fromValue(i.aid)).unsigned=!1:typeof i.aid=="string"?n.aid=parseInt(i.aid,10):typeof i.aid=="number"?n.aid=i.aid:typeof i.aid=="object"&&(n.aid=new r.LongBits(i.aid.low>>>0,i.aid.high>>>0).toNumber())),i.epStatus!=null&&(n.epStatus=i.epStatus|0),i.seasonInfo!=null){if(typeof i.seasonInfo!="object")throw TypeError(".bilibili.pgc.gateway.player.v2.EpisodeInfo.seasonInfo: object expected");n.seasonInfo=u.bilibili.pgc.gateway.player.v2.SeasonInfo.fromObject(i.seasonInfo)}if(i.cover!=null&&(n.cover=String(i.cover)),i.title!=null&&(n.title=String(i.title)),i.interaction!=null){if(typeof i.interaction!="object")throw TypeError(".bilibili.pgc.gateway.player.v2.EpisodeInfo.interaction: object expected");n.interaction=u.bilibili.pgc.gateway.player.v2.Interaction.fromObject(i.interaction)}return i.longTitle!=null&&(n.longTitle=String(i.longTitle)),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(o.epId=0,r.Long){let a=new r.Long(0,0,!1);o.cid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.cid=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.aid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.aid=n.longs===String?"0":0;o.epStatus=0,o.seasonInfo=null,o.cover="",o.title="",o.interaction=null,o.longTitle=""}return i.epId!=null&&i.hasOwnProperty("epId")&&(o.epId=i.epId),i.cid!=null&&i.hasOwnProperty("cid")&&(typeof i.cid=="number"?o.cid=n.longs===String?String(i.cid):i.cid:o.cid=n.longs===String?r.Long.prototype.toString.call(i.cid):n.longs===Number?new r.LongBits(i.cid.low>>>0,i.cid.high>>>0).toNumber():i.cid),i.aid!=null&&i.hasOwnProperty("aid")&&(typeof i.aid=="number"?o.aid=n.longs===String?String(i.aid):i.aid:o.aid=n.longs===String?r.Long.prototype.toString.call(i.aid):n.longs===Number?new r.LongBits(i.aid.low>>>0,i.aid.high>>>0).toNumber():i.aid),i.epStatus!=null&&i.hasOwnProperty("epStatus")&&(o.epStatus=i.epStatus),i.seasonInfo!=null&&i.hasOwnProperty("seasonInfo")&&(o.seasonInfo=u.bilibili.pgc.gateway.player.v2.SeasonInfo.toObject(i.seasonInfo,n)),i.cover!=null&&i.hasOwnProperty("cover")&&(o.cover=i.cover),i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.interaction!=null&&i.hasOwnProperty("interaction")&&(o.interaction=u.bilibili.pgc.gateway.player.v2.Interaction.toObject(i.interaction,n)),i.longTitle!=null&&i.hasOwnProperty("longTitle")&&(o.longTitle=i.longTitle),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.pgc.gateway.player.v2.EpisodeInfo"},l}(),e.Interaction=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.historyNode=u.bilibili.pgc.gateway.player.v2.HistoryNode.decode(i,i.uint32());break}case 2:{a.graphVersion=i.int64();break}case 3:{a.msg=i.string();break}case 4:{a.isInteraction=i.bool();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.pgc.gateway.player.v2.Interaction)return i;let n=new u.bilibili.pgc.gateway.player.v2.Interaction;if(i.historyNode!=null){if(typeof i.historyNode!="object")throw TypeError(".bilibili.pgc.gateway.player.v2.Interaction.historyNode: object expected");n.historyNode=u.bilibili.pgc.gateway.player.v2.HistoryNode.fromObject(i.historyNode)}return i.graphVersion!=null&&(r.Long?(n.graphVersion=r.Long.fromValue(i.graphVersion)).unsigned=!1:typeof i.graphVersion=="string"?n.graphVersion=parseInt(i.graphVersion,10):typeof i.graphVersion=="number"?n.graphVersion=i.graphVersion:typeof i.graphVersion=="object"&&(n.graphVersion=new r.LongBits(i.graphVersion.low>>>0,i.graphVersion.high>>>0).toNumber())),i.msg!=null&&(n.msg=String(i.msg)),i.isInteraction!=null&&(n.isInteraction=!!i.isInteraction),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(o.historyNode=null,r.Long){let a=new r.Long(0,0,!1);o.graphVersion=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.graphVersion=n.longs===String?"0":0;o.msg="",o.isInteraction=!1}return i.historyNode!=null&&i.hasOwnProperty("historyNode")&&(o.historyNode=u.bilibili.pgc.gateway.player.v2.HistoryNode.toObject(i.historyNode,n)),i.graphVersion!=null&&i.hasOwnProperty("graphVersion")&&(typeof i.graphVersion=="number"?o.graphVersion=n.longs===String?String(i.graphVersion):i.graphVersion:o.graphVersion=n.longs===String?r.Long.prototype.toString.call(i.graphVersion):n.longs===Number?new r.LongBits(i.graphVersion.low>>>0,i.graphVersion.high>>>0).toNumber():i.graphVersion),i.msg!=null&&i.hasOwnProperty("msg")&&(o.msg=i.msg),i.isInteraction!=null&&i.hasOwnProperty("isInteraction")&&(o.isInteraction=i.isInteraction),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.pgc.gateway.player.v2.Interaction"},l}(),e.HistoryNode=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.nodeId=i.int64();break}case 2:{a.title=i.string();break}case 3:{a.cid=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.pgc.gateway.player.v2.HistoryNode)return i;let n=new u.bilibili.pgc.gateway.player.v2.HistoryNode;return i.nodeId!=null&&(r.Long?(n.nodeId=r.Long.fromValue(i.nodeId)).unsigned=!1:typeof i.nodeId=="string"?n.nodeId=parseInt(i.nodeId,10):typeof i.nodeId=="number"?n.nodeId=i.nodeId:typeof i.nodeId=="object"&&(n.nodeId=new r.LongBits(i.nodeId.low>>>0,i.nodeId.high>>>0).toNumber())),i.title!=null&&(n.title=String(i.title)),i.cid!=null&&(r.Long?(n.cid=r.Long.fromValue(i.cid)).unsigned=!1:typeof i.cid=="string"?n.cid=parseInt(i.cid,10):typeof i.cid=="number"?n.cid=i.cid:typeof i.cid=="object"&&(n.cid=new r.LongBits(i.cid.low>>>0,i.cid.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.nodeId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.nodeId=n.longs===String?"0":0;if(o.title="",r.Long){let a=new r.Long(0,0,!1);o.cid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.cid=n.longs===String?"0":0}return i.nodeId!=null&&i.hasOwnProperty("nodeId")&&(typeof i.nodeId=="number"?o.nodeId=n.longs===String?String(i.nodeId):i.nodeId:o.nodeId=n.longs===String?r.Long.prototype.toString.call(i.nodeId):n.longs===Number?new r.LongBits(i.nodeId.low>>>0,i.nodeId.high>>>0).toNumber():i.nodeId),i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.cid!=null&&i.hasOwnProperty("cid")&&(typeof i.cid=="number"?o.cid=n.longs===String?String(i.cid):i.cid:o.cid=n.longs===String?r.Long.prototype.toString.call(i.cid):n.longs===Number?new r.LongBits(i.cid.low>>>0,i.cid.high>>>0).toNumber():i.cid),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.pgc.gateway.player.v2.HistoryNode"},l}(),e.SeasonInfo=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.seasonId=i.int32();break}case 2:{a.seasonType=i.int32();break}case 3:{a.seasonStatus=i.int32();break}case 4:{a.cover=i.string();break}case 5:{a.title=i.string();break}case 6:{a.rights=u.bilibili.pgc.gateway.player.v2.Rights.decode(i,i.uint32());break}case 7:{a.mode=i.int32();break}case 8:{a.horizontalCover_169=i.string();break}case 9:{a.horizontalCover_1610=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.pgc.gateway.player.v2.SeasonInfo)return i;let n=new u.bilibili.pgc.gateway.player.v2.SeasonInfo;if(i.seasonId!=null&&(n.seasonId=i.seasonId|0),i.seasonType!=null&&(n.seasonType=i.seasonType|0),i.seasonStatus!=null&&(n.seasonStatus=i.seasonStatus|0),i.cover!=null&&(n.cover=String(i.cover)),i.title!=null&&(n.title=String(i.title)),i.rights!=null){if(typeof i.rights!="object")throw TypeError(".bilibili.pgc.gateway.player.v2.SeasonInfo.rights: object expected");n.rights=u.bilibili.pgc.gateway.player.v2.Rights.fromObject(i.rights)}return i.mode!=null&&(n.mode=i.mode|0),i.horizontalCover_169!=null&&(n.horizontalCover_169=String(i.horizontalCover_169)),i.horizontalCover_1610!=null&&(n.horizontalCover_1610=String(i.horizontalCover_1610)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.seasonId=0,o.seasonType=0,o.seasonStatus=0,o.cover="",o.title="",o.rights=null,o.mode=0,o.horizontalCover_169="",o.horizontalCover_1610=""),i.seasonId!=null&&i.hasOwnProperty("seasonId")&&(o.seasonId=i.seasonId),i.seasonType!=null&&i.hasOwnProperty("seasonType")&&(o.seasonType=i.seasonType),i.seasonStatus!=null&&i.hasOwnProperty("seasonStatus")&&(o.seasonStatus=i.seasonStatus),i.cover!=null&&i.hasOwnProperty("cover")&&(o.cover=i.cover),i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.rights!=null&&i.hasOwnProperty("rights")&&(o.rights=u.bilibili.pgc.gateway.player.v2.Rights.toObject(i.rights,n)),i.mode!=null&&i.hasOwnProperty("mode")&&(o.mode=i.mode),i.horizontalCover_169!=null&&i.hasOwnProperty("horizontalCover_169")&&(o.horizontalCover_169=i.horizontalCover_169),i.horizontalCover_1610!=null&&i.hasOwnProperty("horizontalCover_1610")&&(o.horizontalCover_1610=i.horizontalCover_1610),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.pgc.gateway.player.v2.SeasonInfo"},l}(),e.Rights=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.canWatch=i.int32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.pgc.gateway.player.v2.Rights)return i;let n=new u.bilibili.pgc.gateway.player.v2.Rights;return i.canWatch!=null&&(n.canWatch=i.canWatch|0),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.canWatch=0),i.canWatch!=null&&i.hasOwnProperty("canWatch")&&(o.canWatch=i.canWatch),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.pgc.gateway.player.v2.Rights"},l}(),e.RecordInfo=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.record=i.string();break}case 2:{a.recordIcon=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.pgc.gateway.player.v2.RecordInfo)return i;let n=new u.bilibili.pgc.gateway.player.v2.RecordInfo;return i.record!=null&&(n.record=String(i.record)),i.recordIcon!=null&&(n.recordIcon=String(i.recordIcon)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.record="",o.recordIcon=""),i.record!=null&&i.hasOwnProperty("record")&&(o.record=i.record),i.recordIcon!=null&&i.hasOwnProperty("recordIcon")&&(o.recordIcon=i.recordIcon),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.pgc.gateway.player.v2.RecordInfo"},l}(),e.LimitActionType=function(){let l={},t=Object.create(l);return t[l[0]="LAT_UNKNOWN"]=0,t[l[1]="SHOW_LIMIT_DIALOG"]=1,t[l[2]="SKIP_CURRENT_EP"]=2,t}(),e.DrmTechType=function(){let l={},t=Object.create(l);return t[l[0]="NON"]=0,t[l[1]="FAIR_PLAY"]=1,t[l[2]="WIDE_VINE"]=2,t[l[3]="BILI_DRM"]=3,t}(),e.QualityExtInfo=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.trialSupport=i.bool();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.pgc.gateway.player.v2.QualityExtInfo)return i;let n=new u.bilibili.pgc.gateway.player.v2.QualityExtInfo;return i.trialSupport!=null&&(n.trialSupport=!!i.trialSupport),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.trialSupport=!1),i.trialSupport!=null&&i.hasOwnProperty("trialSupport")&&(o.trialSupport=i.trialSupport),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.pgc.gateway.player.v2.QualityExtInfo"},l}(),e.Dimension=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.width=i.int32();break}case 2:{a.height=i.int32();break}case 3:{a.rotate=i.int32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.pgc.gateway.player.v2.Dimension)return i;let n=new u.bilibili.pgc.gateway.player.v2.Dimension;return i.width!=null&&(n.width=i.width|0),i.height!=null&&(n.height=i.height|0),i.rotate!=null&&(n.rotate=i.rotate|0),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.width=0,o.height=0,o.rotate=0),i.width!=null&&i.hasOwnProperty("width")&&(o.width=i.width),i.height!=null&&i.hasOwnProperty("height")&&(o.height=i.height),i.rotate!=null&&i.hasOwnProperty("rotate")&&(o.rotate=i.rotate),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.pgc.gateway.player.v2.Dimension"},l}(),e.MultiView=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.buttonMaterial=i.string();break}case 2:{a.epId=i.int64();break}case 3:{a.cid=i.int64();break}case 4:{a.avid=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.pgc.gateway.player.v2.MultiView)return i;let n=new u.bilibili.pgc.gateway.player.v2.MultiView;return i.buttonMaterial!=null&&(n.buttonMaterial=String(i.buttonMaterial)),i.epId!=null&&(r.Long?(n.epId=r.Long.fromValue(i.epId)).unsigned=!1:typeof i.epId=="string"?n.epId=parseInt(i.epId,10):typeof i.epId=="number"?n.epId=i.epId:typeof i.epId=="object"&&(n.epId=new r.LongBits(i.epId.low>>>0,i.epId.high>>>0).toNumber())),i.cid!=null&&(r.Long?(n.cid=r.Long.fromValue(i.cid)).unsigned=!1:typeof i.cid=="string"?n.cid=parseInt(i.cid,10):typeof i.cid=="number"?n.cid=i.cid:typeof i.cid=="object"&&(n.cid=new r.LongBits(i.cid.low>>>0,i.cid.high>>>0).toNumber())),i.avid!=null&&(r.Long?(n.avid=r.Long.fromValue(i.avid)).unsigned=!1:typeof i.avid=="string"?n.avid=parseInt(i.avid,10):typeof i.avid=="number"?n.avid=i.avid:typeof i.avid=="object"&&(n.avid=new r.LongBits(i.avid.low>>>0,i.avid.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(o.buttonMaterial="",r.Long){let a=new r.Long(0,0,!1);o.epId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.epId=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.cid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.cid=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.avid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.avid=n.longs===String?"0":0}return i.buttonMaterial!=null&&i.hasOwnProperty("buttonMaterial")&&(o.buttonMaterial=i.buttonMaterial),i.epId!=null&&i.hasOwnProperty("epId")&&(typeof i.epId=="number"?o.epId=n.longs===String?String(i.epId):i.epId:o.epId=n.longs===String?r.Long.prototype.toString.call(i.epId):n.longs===Number?new r.LongBits(i.epId.low>>>0,i.epId.high>>>0).toNumber():i.epId),i.cid!=null&&i.hasOwnProperty("cid")&&(typeof i.cid=="number"?o.cid=n.longs===String?String(i.cid):i.cid:o.cid=n.longs===String?r.Long.prototype.toString.call(i.cid):n.longs===Number?new r.LongBits(i.cid.low>>>0,i.cid.high>>>0).toNumber():i.cid),i.avid!=null&&i.hasOwnProperty("avid")&&(typeof i.avid=="number"?o.avid=n.longs===String?String(i.avid):i.avid:o.avid=n.longs===String?r.Long.prototype.toString.call(i.avid):n.longs===Number?new r.LongBits(i.avid.low>>>0,i.avid.high>>>0).toNumber():i.avid),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.pgc.gateway.player.v2.MultiView"},l}(),e.ClipInfo=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.materialNo=i.int64();break}case 2:{a.start=i.int32();break}case 3:{a.end=i.int32();break}case 4:{a.clipType=i.int32();break}case 5:{a.toastText=i.string();break}case 6:{a.multiView=u.bilibili.pgc.gateway.player.v2.MultiView.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.pgc.gateway.player.v2.ClipInfo)return i;let n=new u.bilibili.pgc.gateway.player.v2.ClipInfo;switch(i.materialNo!=null&&(r.Long?(n.materialNo=r.Long.fromValue(i.materialNo)).unsigned=!1:typeof i.materialNo=="string"?n.materialNo=parseInt(i.materialNo,10):typeof i.materialNo=="number"?n.materialNo=i.materialNo:typeof i.materialNo=="object"&&(n.materialNo=new r.LongBits(i.materialNo.low>>>0,i.materialNo.high>>>0).toNumber())),i.start!=null&&(n.start=i.start|0),i.end!=null&&(n.end=i.end|0),i.clipType){default:if(typeof i.clipType=="number"){n.clipType=i.clipType;break}break;case"NT_UNKNOWN":case 0:n.clipType=0;break;case"CLIP_TYPE_OP":case 1:n.clipType=1;break;case"CLIP_TYPE_ED":case 2:n.clipType=2;break;case"CLIP_TYPE_HE":case 3:n.clipType=3;break;case"CLIP_TYPE_MULTI_VIEW":case 4:n.clipType=4;break;case"CLIP_TYPE_AD":case 5:n.clipType=5;break;case"CLIP_TYPE_PREVIEW":case 6:n.clipType=6;break}if(i.toastText!=null&&(n.toastText=String(i.toastText)),i.multiView!=null){if(typeof i.multiView!="object")throw TypeError(".bilibili.pgc.gateway.player.v2.ClipInfo.multiView: object expected");n.multiView=u.bilibili.pgc.gateway.player.v2.MultiView.fromObject(i.multiView)}return n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.materialNo=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.materialNo=n.longs===String?"0":0;o.start=0,o.end=0,o.clipType=n.enums===String?"NT_UNKNOWN":0,o.toastText="",o.multiView=null}return i.materialNo!=null&&i.hasOwnProperty("materialNo")&&(typeof i.materialNo=="number"?o.materialNo=n.longs===String?String(i.materialNo):i.materialNo:o.materialNo=n.longs===String?r.Long.prototype.toString.call(i.materialNo):n.longs===Number?new r.LongBits(i.materialNo.low>>>0,i.materialNo.high>>>0).toNumber():i.materialNo),i.start!=null&&i.hasOwnProperty("start")&&(o.start=i.start),i.end!=null&&i.hasOwnProperty("end")&&(o.end=i.end),i.clipType!=null&&i.hasOwnProperty("clipType")&&(o.clipType=n.enums===String?u.bilibili.pgc.gateway.player.v2.ClipType[i.clipType]===void 0?i.clipType:u.bilibili.pgc.gateway.player.v2.ClipType[i.clipType]:i.clipType),i.toastText!=null&&i.hasOwnProperty("toastText")&&(o.toastText=i.toastText),i.multiView!=null&&i.hasOwnProperty("multiView")&&(o.multiView=u.bilibili.pgc.gateway.player.v2.MultiView.toObject(i.multiView,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.pgc.gateway.player.v2.ClipInfo"},l}(),e.ClipType=function(){let l={},t=Object.create(l);return t[l[0]="NT_UNKNOWN"]=0,t[l[1]="CLIP_TYPE_OP"]=1,t[l[2]="CLIP_TYPE_ED"]=2,t[l[3]="CLIP_TYPE_HE"]=3,t[l[4]="CLIP_TYPE_MULTI_VIEW"]=4,t[l[5]="CLIP_TYPE_AD"]=5,t[l[6]="CLIP_TYPE_PREVIEW"]=6,t}(),e.InlineType=function(){let l={},t=Object.create(l);return t[l[0]="TYPE_UNKNOWN"]=0,t[l[1]="TYPE_WHOLE"]=1,t[l[2]="TYPE_HE_CLIP"]=2,t[l[3]="TYPE_PREVIEW"]=3,t}(),e.CouponInfo=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.toast=u.bilibili.pgc.gateway.player.v2.CouponToast.decode(i,i.uint32());break}case 2:{a.popWin=u.bilibili.pgc.gateway.player.v2.PopWin.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.pgc.gateway.player.v2.CouponInfo)return i;let n=new u.bilibili.pgc.gateway.player.v2.CouponInfo;if(i.toast!=null){if(typeof i.toast!="object")throw TypeError(".bilibili.pgc.gateway.player.v2.CouponInfo.toast: object expected");n.toast=u.bilibili.pgc.gateway.player.v2.CouponToast.fromObject(i.toast)}if(i.popWin!=null){if(typeof i.popWin!="object")throw TypeError(".bilibili.pgc.gateway.player.v2.CouponInfo.popWin: object expected");n.popWin=u.bilibili.pgc.gateway.player.v2.PopWin.fromObject(i.popWin)}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.toast=null,o.popWin=null),i.toast!=null&&i.hasOwnProperty("toast")&&(o.toast=u.bilibili.pgc.gateway.player.v2.CouponToast.toObject(i.toast,n)),i.popWin!=null&&i.hasOwnProperty("popWin")&&(o.popWin=u.bilibili.pgc.gateway.player.v2.PopWin.toObject(i.popWin,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.pgc.gateway.player.v2.CouponInfo"},l}(),e.PopWin=function(){function l(t){if(this.coupon=[],this.button=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.title=i.string();break}case 2:{a.coupon&&a.coupon.length||(a.coupon=[]),a.coupon.push(u.bilibili.pgc.gateway.player.v2.Coupon.decode(i,i.uint32()));break}case 3:{a.button&&a.button.length||(a.button=[]),a.button.push(u.bilibili.pgc.gateway.player.v2.ButtonInfo.decode(i,i.uint32()));break}case 4:{a.bottomText=i.string();break}case 5:{a.popTitle=u.bilibili.pgc.gateway.player.v2.TextInfo.decode(i,i.uint32());break}case 6:{a.subtitle=u.bilibili.pgc.gateway.player.v2.TextInfo.decode(i,i.uint32());break}case 7:{a.bottomDesc=u.bilibili.pgc.gateway.player.v2.ButtonInfo.decode(i,i.uint32());break}case 8:{a.cover=i.string();break}case 9:{a.popType=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.pgc.gateway.player.v2.PopWin)return i;let n=new u.bilibili.pgc.gateway.player.v2.PopWin;if(i.title!=null&&(n.title=String(i.title)),i.coupon){if(!Array.isArray(i.coupon))throw TypeError(".bilibili.pgc.gateway.player.v2.PopWin.coupon: array expected");n.coupon=[];for(let o=0;o>>3){case 1:{a.couponToken=i.string();break}case 2:{a.type=i.int64();break}case 3:{a.value=i.string();break}case 4:{a.useDesc=i.string();break}case 5:{a.title=i.string();break}case 6:{a.desc=i.string();break}case 7:{a.payButtonText=i.string();break}case 8:{a.payButtonTextLineThrough=i.string();break}case 9:{a.realAmount=i.string();break}case 10:{a.expireTime=u.google.protobuf.Timestamp.decode(i,i.uint32());break}case 11:{a.otype=i.int64();break}case 12:{a.amount=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.pgc.gateway.player.v2.Coupon)return i;let n=new u.bilibili.pgc.gateway.player.v2.Coupon;if(i.couponToken!=null&&(n.couponToken=String(i.couponToken)),i.type!=null&&(r.Long?(n.type=r.Long.fromValue(i.type)).unsigned=!1:typeof i.type=="string"?n.type=parseInt(i.type,10):typeof i.type=="number"?n.type=i.type:typeof i.type=="object"&&(n.type=new r.LongBits(i.type.low>>>0,i.type.high>>>0).toNumber())),i.value!=null&&(n.value=String(i.value)),i.useDesc!=null&&(n.useDesc=String(i.useDesc)),i.title!=null&&(n.title=String(i.title)),i.desc!=null&&(n.desc=String(i.desc)),i.payButtonText!=null&&(n.payButtonText=String(i.payButtonText)),i.payButtonTextLineThrough!=null&&(n.payButtonTextLineThrough=String(i.payButtonTextLineThrough)),i.realAmount!=null&&(n.realAmount=String(i.realAmount)),i.expireTime!=null){if(typeof i.expireTime!="object")throw TypeError(".bilibili.pgc.gateway.player.v2.Coupon.expireTime: object expected");n.expireTime=u.google.protobuf.Timestamp.fromObject(i.expireTime)}return i.otype!=null&&(r.Long?(n.otype=r.Long.fromValue(i.otype)).unsigned=!1:typeof i.otype=="string"?n.otype=parseInt(i.otype,10):typeof i.otype=="number"?n.otype=i.otype:typeof i.otype=="object"&&(n.otype=new r.LongBits(i.otype.low>>>0,i.otype.high>>>0).toNumber())),i.amount!=null&&(n.amount=String(i.amount)),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(o.couponToken="",r.Long){let a=new r.Long(0,0,!1);o.type=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.type=n.longs===String?"0":0;if(o.value="",o.useDesc="",o.title="",o.desc="",o.payButtonText="",o.payButtonTextLineThrough="",o.realAmount="",o.expireTime=null,r.Long){let a=new r.Long(0,0,!1);o.otype=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.otype=n.longs===String?"0":0;o.amount=""}return i.couponToken!=null&&i.hasOwnProperty("couponToken")&&(o.couponToken=i.couponToken),i.type!=null&&i.hasOwnProperty("type")&&(typeof i.type=="number"?o.type=n.longs===String?String(i.type):i.type:o.type=n.longs===String?r.Long.prototype.toString.call(i.type):n.longs===Number?new r.LongBits(i.type.low>>>0,i.type.high>>>0).toNumber():i.type),i.value!=null&&i.hasOwnProperty("value")&&(o.value=i.value),i.useDesc!=null&&i.hasOwnProperty("useDesc")&&(o.useDesc=i.useDesc),i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.desc!=null&&i.hasOwnProperty("desc")&&(o.desc=i.desc),i.payButtonText!=null&&i.hasOwnProperty("payButtonText")&&(o.payButtonText=i.payButtonText),i.payButtonTextLineThrough!=null&&i.hasOwnProperty("payButtonTextLineThrough")&&(o.payButtonTextLineThrough=i.payButtonTextLineThrough),i.realAmount!=null&&i.hasOwnProperty("realAmount")&&(o.realAmount=i.realAmount),i.expireTime!=null&&i.hasOwnProperty("expireTime")&&(o.expireTime=u.google.protobuf.Timestamp.toObject(i.expireTime,n)),i.otype!=null&&i.hasOwnProperty("otype")&&(typeof i.otype=="number"?o.otype=n.longs===String?String(i.otype):i.otype:o.otype=n.longs===String?r.Long.prototype.toString.call(i.otype):n.longs===Number?new r.LongBits(i.otype.low>>>0,i.otype.high>>>0).toNumber():i.otype),i.amount!=null&&i.hasOwnProperty("amount")&&(o.amount=i.amount),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.pgc.gateway.player.v2.Coupon"},l}(),e.CouponToast=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.textInfo=u.bilibili.pgc.gateway.player.v2.CouponTextInfo.decode(i,i.uint32());break}case 2:{a.button=u.bilibili.pgc.gateway.player.v2.ButtonInfo.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.pgc.gateway.player.v2.CouponToast)return i;let n=new u.bilibili.pgc.gateway.player.v2.CouponToast;if(i.textInfo!=null){if(typeof i.textInfo!="object")throw TypeError(".bilibili.pgc.gateway.player.v2.CouponToast.textInfo: object expected");n.textInfo=u.bilibili.pgc.gateway.player.v2.CouponTextInfo.fromObject(i.textInfo)}if(i.button!=null){if(typeof i.button!="object")throw TypeError(".bilibili.pgc.gateway.player.v2.CouponToast.button: object expected");n.button=u.bilibili.pgc.gateway.player.v2.ButtonInfo.fromObject(i.button)}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.textInfo=null,o.button=null),i.textInfo!=null&&i.hasOwnProperty("textInfo")&&(o.textInfo=u.bilibili.pgc.gateway.player.v2.CouponTextInfo.toObject(i.textInfo,n)),i.button!=null&&i.hasOwnProperty("button")&&(o.button=u.bilibili.pgc.gateway.player.v2.ButtonInfo.toObject(i.button,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.pgc.gateway.player.v2.CouponToast"},l}(),e.CouponTextInfo=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.positivePreview=i.string();break}case 2:{a.section=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.pgc.gateway.player.v2.CouponTextInfo)return i;let n=new u.bilibili.pgc.gateway.player.v2.CouponTextInfo;return i.positivePreview!=null&&(n.positivePreview=String(i.positivePreview)),i.section!=null&&(n.section=String(i.section)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.positivePreview="",o.section=""),i.positivePreview!=null&&i.hasOwnProperty("positivePreview")&&(o.positivePreview=i.positivePreview),i.section!=null&&i.hasOwnProperty("section")&&(o.section=i.section),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.pgc.gateway.player.v2.CouponTextInfo"},l}(),e.PlayAbilityConf=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.backgroundPlayDisable=i.bool();break}case 2:{a.flipDisable=i.bool();break}case 3:{a.castDisable=i.bool();break}case 4:{a.feedbackDisable=i.bool();break}case 5:{a.subtitleDisable=i.bool();break}case 6:{a.playbackRateDisable=i.bool();break}case 7:{a.timeUpDisable=i.bool();break}case 8:{a.playbackModeDisable=i.bool();break}case 9:{a.scaleModeDisable=i.bool();break}case 10:{a.likeDisable=i.bool();break}case 11:{a.dislikeDisable=i.bool();break}case 12:{a.coinDisable=i.bool();break}case 13:{a.elecDisable=i.bool();break}case 14:{a.shareDisable=i.bool();break}case 15:{a.screenShotDisable=i.bool();break}case 16:{a.lockScreenDisable=i.bool();break}case 17:{a.recommendDisable=i.bool();break}case 18:{a.playbackSpeedDisable=i.bool();break}case 19:{a.definitionDisable=i.bool();break}case 20:{a.selectionsDisable=i.bool();break}case 21:{a.nextDisable=i.bool();break}case 22:{a.editDmDisable=i.bool();break}case 23:{a.smallWindowDisable=i.bool();break}case 24:{a.shakeDisable=i.bool();break}case 25:{a.outerDmDisable=i.bool();break}case 26:{a.innerDmDisable=i.bool();break}case 27:{a.freyaEnterDisable=i.bool();break}case 28:{a.dolbyDisable=i.bool();break}case 29:{a.freyaFullDisable=i.bool();break}case 30:{a.skipOpedSwitchDisable=i.bool();break}case 31:{a.recordScreenDisable=i.bool();break}case 32:{a.colorOptimizeDisable=i.bool();break}case 33:{a.dubbingDisable=i.bool();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.pgc.gateway.player.v2.PlayAbilityConf)return i;let n=new u.bilibili.pgc.gateway.player.v2.PlayAbilityConf;return i.backgroundPlayDisable!=null&&(n.backgroundPlayDisable=!!i.backgroundPlayDisable),i.flipDisable!=null&&(n.flipDisable=!!i.flipDisable),i.castDisable!=null&&(n.castDisable=!!i.castDisable),i.feedbackDisable!=null&&(n.feedbackDisable=!!i.feedbackDisable),i.subtitleDisable!=null&&(n.subtitleDisable=!!i.subtitleDisable),i.playbackRateDisable!=null&&(n.playbackRateDisable=!!i.playbackRateDisable),i.timeUpDisable!=null&&(n.timeUpDisable=!!i.timeUpDisable),i.playbackModeDisable!=null&&(n.playbackModeDisable=!!i.playbackModeDisable),i.scaleModeDisable!=null&&(n.scaleModeDisable=!!i.scaleModeDisable),i.likeDisable!=null&&(n.likeDisable=!!i.likeDisable),i.dislikeDisable!=null&&(n.dislikeDisable=!!i.dislikeDisable),i.coinDisable!=null&&(n.coinDisable=!!i.coinDisable),i.elecDisable!=null&&(n.elecDisable=!!i.elecDisable),i.shareDisable!=null&&(n.shareDisable=!!i.shareDisable),i.screenShotDisable!=null&&(n.screenShotDisable=!!i.screenShotDisable),i.lockScreenDisable!=null&&(n.lockScreenDisable=!!i.lockScreenDisable),i.recommendDisable!=null&&(n.recommendDisable=!!i.recommendDisable),i.playbackSpeedDisable!=null&&(n.playbackSpeedDisable=!!i.playbackSpeedDisable),i.definitionDisable!=null&&(n.definitionDisable=!!i.definitionDisable),i.selectionsDisable!=null&&(n.selectionsDisable=!!i.selectionsDisable),i.nextDisable!=null&&(n.nextDisable=!!i.nextDisable),i.editDmDisable!=null&&(n.editDmDisable=!!i.editDmDisable),i.smallWindowDisable!=null&&(n.smallWindowDisable=!!i.smallWindowDisable),i.shakeDisable!=null&&(n.shakeDisable=!!i.shakeDisable),i.outerDmDisable!=null&&(n.outerDmDisable=!!i.outerDmDisable),i.innerDmDisable!=null&&(n.innerDmDisable=!!i.innerDmDisable),i.freyaEnterDisable!=null&&(n.freyaEnterDisable=!!i.freyaEnterDisable),i.dolbyDisable!=null&&(n.dolbyDisable=!!i.dolbyDisable),i.freyaFullDisable!=null&&(n.freyaFullDisable=!!i.freyaFullDisable),i.skipOpedSwitchDisable!=null&&(n.skipOpedSwitchDisable=!!i.skipOpedSwitchDisable),i.recordScreenDisable!=null&&(n.recordScreenDisable=!!i.recordScreenDisable),i.colorOptimizeDisable!=null&&(n.colorOptimizeDisable=!!i.colorOptimizeDisable),i.dubbingDisable!=null&&(n.dubbingDisable=!!i.dubbingDisable),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.backgroundPlayDisable=!1,o.flipDisable=!1,o.castDisable=!1,o.feedbackDisable=!1,o.subtitleDisable=!1,o.playbackRateDisable=!1,o.timeUpDisable=!1,o.playbackModeDisable=!1,o.scaleModeDisable=!1,o.likeDisable=!1,o.dislikeDisable=!1,o.coinDisable=!1,o.elecDisable=!1,o.shareDisable=!1,o.screenShotDisable=!1,o.lockScreenDisable=!1,o.recommendDisable=!1,o.playbackSpeedDisable=!1,o.definitionDisable=!1,o.selectionsDisable=!1,o.nextDisable=!1,o.editDmDisable=!1,o.smallWindowDisable=!1,o.shakeDisable=!1,o.outerDmDisable=!1,o.innerDmDisable=!1,o.freyaEnterDisable=!1,o.dolbyDisable=!1,o.freyaFullDisable=!1,o.skipOpedSwitchDisable=!1,o.recordScreenDisable=!1,o.colorOptimizeDisable=!1,o.dubbingDisable=!1),i.backgroundPlayDisable!=null&&i.hasOwnProperty("backgroundPlayDisable")&&(o.backgroundPlayDisable=i.backgroundPlayDisable),i.flipDisable!=null&&i.hasOwnProperty("flipDisable")&&(o.flipDisable=i.flipDisable),i.castDisable!=null&&i.hasOwnProperty("castDisable")&&(o.castDisable=i.castDisable),i.feedbackDisable!=null&&i.hasOwnProperty("feedbackDisable")&&(o.feedbackDisable=i.feedbackDisable),i.subtitleDisable!=null&&i.hasOwnProperty("subtitleDisable")&&(o.subtitleDisable=i.subtitleDisable),i.playbackRateDisable!=null&&i.hasOwnProperty("playbackRateDisable")&&(o.playbackRateDisable=i.playbackRateDisable),i.timeUpDisable!=null&&i.hasOwnProperty("timeUpDisable")&&(o.timeUpDisable=i.timeUpDisable),i.playbackModeDisable!=null&&i.hasOwnProperty("playbackModeDisable")&&(o.playbackModeDisable=i.playbackModeDisable),i.scaleModeDisable!=null&&i.hasOwnProperty("scaleModeDisable")&&(o.scaleModeDisable=i.scaleModeDisable),i.likeDisable!=null&&i.hasOwnProperty("likeDisable")&&(o.likeDisable=i.likeDisable),i.dislikeDisable!=null&&i.hasOwnProperty("dislikeDisable")&&(o.dislikeDisable=i.dislikeDisable),i.coinDisable!=null&&i.hasOwnProperty("coinDisable")&&(o.coinDisable=i.coinDisable),i.elecDisable!=null&&i.hasOwnProperty("elecDisable")&&(o.elecDisable=i.elecDisable),i.shareDisable!=null&&i.hasOwnProperty("shareDisable")&&(o.shareDisable=i.shareDisable),i.screenShotDisable!=null&&i.hasOwnProperty("screenShotDisable")&&(o.screenShotDisable=i.screenShotDisable),i.lockScreenDisable!=null&&i.hasOwnProperty("lockScreenDisable")&&(o.lockScreenDisable=i.lockScreenDisable),i.recommendDisable!=null&&i.hasOwnProperty("recommendDisable")&&(o.recommendDisable=i.recommendDisable),i.playbackSpeedDisable!=null&&i.hasOwnProperty("playbackSpeedDisable")&&(o.playbackSpeedDisable=i.playbackSpeedDisable),i.definitionDisable!=null&&i.hasOwnProperty("definitionDisable")&&(o.definitionDisable=i.definitionDisable),i.selectionsDisable!=null&&i.hasOwnProperty("selectionsDisable")&&(o.selectionsDisable=i.selectionsDisable),i.nextDisable!=null&&i.hasOwnProperty("nextDisable")&&(o.nextDisable=i.nextDisable),i.editDmDisable!=null&&i.hasOwnProperty("editDmDisable")&&(o.editDmDisable=i.editDmDisable),i.smallWindowDisable!=null&&i.hasOwnProperty("smallWindowDisable")&&(o.smallWindowDisable=i.smallWindowDisable),i.shakeDisable!=null&&i.hasOwnProperty("shakeDisable")&&(o.shakeDisable=i.shakeDisable),i.outerDmDisable!=null&&i.hasOwnProperty("outerDmDisable")&&(o.outerDmDisable=i.outerDmDisable),i.innerDmDisable!=null&&i.hasOwnProperty("innerDmDisable")&&(o.innerDmDisable=i.innerDmDisable),i.freyaEnterDisable!=null&&i.hasOwnProperty("freyaEnterDisable")&&(o.freyaEnterDisable=i.freyaEnterDisable),i.dolbyDisable!=null&&i.hasOwnProperty("dolbyDisable")&&(o.dolbyDisable=i.dolbyDisable),i.freyaFullDisable!=null&&i.hasOwnProperty("freyaFullDisable")&&(o.freyaFullDisable=i.freyaFullDisable),i.skipOpedSwitchDisable!=null&&i.hasOwnProperty("skipOpedSwitchDisable")&&(o.skipOpedSwitchDisable=i.skipOpedSwitchDisable),i.recordScreenDisable!=null&&i.hasOwnProperty("recordScreenDisable")&&(o.recordScreenDisable=i.recordScreenDisable),i.colorOptimizeDisable!=null&&i.hasOwnProperty("colorOptimizeDisable")&&(o.colorOptimizeDisable=i.colorOptimizeDisable),i.dubbingDisable!=null&&i.hasOwnProperty("dubbingDisable")&&(o.dubbingDisable=i.dubbingDisable),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.pgc.gateway.player.v2.PlayAbilityConf"},l}(),e.PlayAbilityExtConf=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.allowCloseSubtitle=i.bool();break}case 2:{a.freyaConfig=u.bilibili.pgc.gateway.player.v2.FreyaConfig.decode(i,i.uint32());break}case 3:{a.castTips=u.bilibili.pgc.gateway.player.v2.CastTips.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.pgc.gateway.player.v2.PlayAbilityExtConf)return i;let n=new u.bilibili.pgc.gateway.player.v2.PlayAbilityExtConf;if(i.allowCloseSubtitle!=null&&(n.allowCloseSubtitle=!!i.allowCloseSubtitle),i.freyaConfig!=null){if(typeof i.freyaConfig!="object")throw TypeError(".bilibili.pgc.gateway.player.v2.PlayAbilityExtConf.freyaConfig: object expected");n.freyaConfig=u.bilibili.pgc.gateway.player.v2.FreyaConfig.fromObject(i.freyaConfig)}if(i.castTips!=null){if(typeof i.castTips!="object")throw TypeError(".bilibili.pgc.gateway.player.v2.PlayAbilityExtConf.castTips: object expected");n.castTips=u.bilibili.pgc.gateway.player.v2.CastTips.fromObject(i.castTips)}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.allowCloseSubtitle=!1,o.freyaConfig=null,o.castTips=null),i.allowCloseSubtitle!=null&&i.hasOwnProperty("allowCloseSubtitle")&&(o.allowCloseSubtitle=i.allowCloseSubtitle),i.freyaConfig!=null&&i.hasOwnProperty("freyaConfig")&&(o.freyaConfig=u.bilibili.pgc.gateway.player.v2.FreyaConfig.toObject(i.freyaConfig,n)),i.castTips!=null&&i.hasOwnProperty("castTips")&&(o.castTips=u.bilibili.pgc.gateway.player.v2.CastTips.toObject(i.castTips,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.pgc.gateway.player.v2.PlayAbilityExtConf"},l}(),e.FreyaConfig=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.desc=i.string();break}case 2:{a.type=i.int32();break}case 3:{a.issuedCnt=i.int32();break}case 4:{a.isAlwaysShow=i.bool();break}case 5:{a.screenNumber=i.int32();break}case 6:{a.fullScreenNumber=i.int32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.pgc.gateway.player.v2.FreyaConfig)return i;let n=new u.bilibili.pgc.gateway.player.v2.FreyaConfig;return i.desc!=null&&(n.desc=String(i.desc)),i.type!=null&&(n.type=i.type|0),i.issuedCnt!=null&&(n.issuedCnt=i.issuedCnt|0),i.isAlwaysShow!=null&&(n.isAlwaysShow=!!i.isAlwaysShow),i.screenNumber!=null&&(n.screenNumber=i.screenNumber|0),i.fullScreenNumber!=null&&(n.fullScreenNumber=i.fullScreenNumber|0),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.desc="",o.type=0,o.issuedCnt=0,o.isAlwaysShow=!1,o.screenNumber=0,o.fullScreenNumber=0),i.desc!=null&&i.hasOwnProperty("desc")&&(o.desc=i.desc),i.type!=null&&i.hasOwnProperty("type")&&(o.type=i.type),i.issuedCnt!=null&&i.hasOwnProperty("issuedCnt")&&(o.issuedCnt=i.issuedCnt),i.isAlwaysShow!=null&&i.hasOwnProperty("isAlwaysShow")&&(o.isAlwaysShow=i.isAlwaysShow),i.screenNumber!=null&&i.hasOwnProperty("screenNumber")&&(o.screenNumber=i.screenNumber),i.fullScreenNumber!=null&&i.hasOwnProperty("fullScreenNumber")&&(o.fullScreenNumber=i.fullScreenNumber),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.pgc.gateway.player.v2.FreyaConfig"},l}(),e.CastTips=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.code=i.int32();break}case 2:{a.message=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.pgc.gateway.player.v2.CastTips)return i;let n=new u.bilibili.pgc.gateway.player.v2.CastTips;return i.code!=null&&(n.code=i.code|0),i.message!=null&&(n.message=String(i.message)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.code=0,o.message=""),i.code!=null&&i.hasOwnProperty("code")&&(o.code=i.code),i.message!=null&&i.hasOwnProperty("message")&&(o.message=i.message),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.pgc.gateway.player.v2.CastTips"},l}(),e.HideField=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.fragmentDisable=i.bool();break}case 2:{a.vipStatus=i.int32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.pgc.gateway.player.v2.HideField)return i;let n=new u.bilibili.pgc.gateway.player.v2.HideField;return i.fragmentDisable!=null&&(n.fragmentDisable=!!i.fragmentDisable),i.vipStatus!=null&&(n.vipStatus=i.vipStatus|0),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.fragmentDisable=!1,o.vipStatus=0),i.fragmentDisable!=null&&i.hasOwnProperty("fragmentDisable")&&(o.fragmentDisable=i.fragmentDisable),i.vipStatus!=null&&i.hasOwnProperty("vipStatus")&&(o.vipStatus=i.vipStatus),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.pgc.gateway.player.v2.HideField"},l}(),e}(),c.v3=function(){let e={};return e.PlayURL=function(){function l(t,i,n){b.rpc.Service.call(this,t,i,n)}return(l.prototype=Object.create(b.rpc.Service.prototype)).constructor=l,l.create=function(i,n,o){return new this(i,n,o)},Object.defineProperty(l.prototype.playView=function t(i,n){return this.rpcCall(t,u.bilibili.pgc.gateway.player.v3.PlayViewReq,u.bilibili.pgc.gateway.player.v3.PlayViewReply,i,n)},"name",{value:"PlayView"}),l}(),e.PlayViewReq=function(){function l(t){if(this.extraContent={},t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.vod=u.bilibili.playershared.VideoVod.decode(i,i.uint32());break}case 2:{a.spmid=i.string();break}case 3:{a.fromSpmid=i.string();break}case 4:{a.teenagersMode=i.int32();break}case 5:{a.extraContent===r.emptyObject&&(a.extraContent={});let g=i.uint32()+i.pos;for(y="",s="";i.pos>>3){case 1:y=i.string();break;case 2:s=i.string();break;default:i.skipType(S&7);break}}a.extraContent[y]=s;break}case 6:{a.fromScene=i.string();break}default:i.skipType(v&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.pgc.gateway.player.v3.PlayViewReq)return i;let n=new u.bilibili.pgc.gateway.player.v3.PlayViewReq;if(i.vod!=null){if(typeof i.vod!="object")throw TypeError(".bilibili.pgc.gateway.player.v3.PlayViewReq.vod: object expected");n.vod=u.bilibili.playershared.VideoVod.fromObject(i.vod)}if(i.spmid!=null&&(n.spmid=String(i.spmid)),i.fromSpmid!=null&&(n.fromSpmid=String(i.fromSpmid)),i.teenagersMode!=null&&(n.teenagersMode=i.teenagersMode|0),i.extraContent){if(typeof i.extraContent!="object")throw TypeError(".bilibili.pgc.gateway.player.v3.PlayViewReq.extraContent: object expected");n.extraContent={};for(let o=Object.keys(i.extraContent),a=0;a>>3){case 1:{a.vodInfo=u.bilibili.playershared.VodInfo.decode(i,i.uint32());break}case 2:{a.playArcConf=u.bilibili.playershared.PlayArcConf.decode(i,i.uint32());break}case 3:{a.supplement=u.google.protobuf.Any.decode(i,i.uint32());break}case 4:{a.playArc=u.bilibili.playershared.PlayArc.decode(i,i.uint32());break}case 5:{a.qnTrialInfo=u.bilibili.playershared.QnTrialInfo.decode(i,i.uint32());break}case 6:{a.event=u.bilibili.playershared.Event.decode(i,i.uint32());break}case 7:{a.history=u.bilibili.playershared.History.decode(i,i.uint32());break}case 8:{a.viewInfo=u.bilibili.playershared.ViewInfo.decode(i,i.uint32());break}case 9:{a.hideField=u.bilibili.pgc.gateway.player.v2.HideField.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.pgc.gateway.player.v3.PlayViewReply)return i;let n=new u.bilibili.pgc.gateway.player.v3.PlayViewReply;if(i.vodInfo!=null){if(typeof i.vodInfo!="object")throw TypeError(".bilibili.pgc.gateway.player.v3.PlayViewReply.vodInfo: object expected");n.vodInfo=u.bilibili.playershared.VodInfo.fromObject(i.vodInfo)}if(i.playArcConf!=null){if(typeof i.playArcConf!="object")throw TypeError(".bilibili.pgc.gateway.player.v3.PlayViewReply.playArcConf: object expected");n.playArcConf=u.bilibili.playershared.PlayArcConf.fromObject(i.playArcConf)}if(i.supplement!=null){if(typeof i.supplement!="object")throw TypeError(".bilibili.pgc.gateway.player.v3.PlayViewReply.supplement: object expected");n.supplement=u.google.protobuf.Any.fromObject(i.supplement)}if(i.playArc!=null){if(typeof i.playArc!="object")throw TypeError(".bilibili.pgc.gateway.player.v3.PlayViewReply.playArc: object expected");n.playArc=u.bilibili.playershared.PlayArc.fromObject(i.playArc)}if(i.qnTrialInfo!=null){if(typeof i.qnTrialInfo!="object")throw TypeError(".bilibili.pgc.gateway.player.v3.PlayViewReply.qnTrialInfo: object expected");n.qnTrialInfo=u.bilibili.playershared.QnTrialInfo.fromObject(i.qnTrialInfo)}if(i.event!=null){if(typeof i.event!="object")throw TypeError(".bilibili.pgc.gateway.player.v3.PlayViewReply.event: object expected");n.event=u.bilibili.playershared.Event.fromObject(i.event)}if(i.history!=null){if(typeof i.history!="object")throw TypeError(".bilibili.pgc.gateway.player.v3.PlayViewReply.history: object expected");n.history=u.bilibili.playershared.History.fromObject(i.history)}if(i.viewInfo!=null){if(typeof i.viewInfo!="object")throw TypeError(".bilibili.pgc.gateway.player.v3.PlayViewReply.viewInfo: object expected");n.viewInfo=u.bilibili.playershared.ViewInfo.fromObject(i.viewInfo)}if(i.hideField!=null){if(typeof i.hideField!="object")throw TypeError(".bilibili.pgc.gateway.player.v3.PlayViewReply.hideField: object expected");n.hideField=u.bilibili.pgc.gateway.player.v2.HideField.fromObject(i.hideField)}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.vodInfo=null,o.playArcConf=null,o.supplement=null,o.playArc=null,o.qnTrialInfo=null,o.event=null,o.history=null,o.viewInfo=null,o.hideField=null),i.vodInfo!=null&&i.hasOwnProperty("vodInfo")&&(o.vodInfo=u.bilibili.playershared.VodInfo.toObject(i.vodInfo,n)),i.playArcConf!=null&&i.hasOwnProperty("playArcConf")&&(o.playArcConf=u.bilibili.playershared.PlayArcConf.toObject(i.playArcConf,n)),i.supplement!=null&&i.hasOwnProperty("supplement")&&(o.supplement=u.google.protobuf.Any.toObject(i.supplement,n)),i.playArc!=null&&i.hasOwnProperty("playArc")&&(o.playArc=u.bilibili.playershared.PlayArc.toObject(i.playArc,n)),i.qnTrialInfo!=null&&i.hasOwnProperty("qnTrialInfo")&&(o.qnTrialInfo=u.bilibili.playershared.QnTrialInfo.toObject(i.qnTrialInfo,n)),i.event!=null&&i.hasOwnProperty("event")&&(o.event=u.bilibili.playershared.Event.toObject(i.event,n)),i.history!=null&&i.hasOwnProperty("history")&&(o.history=u.bilibili.playershared.History.toObject(i.history,n)),i.viewInfo!=null&&i.hasOwnProperty("viewInfo")&&(o.viewInfo=u.bilibili.playershared.ViewInfo.toObject(i.viewInfo,n)),i.hideField!=null&&i.hasOwnProperty("hideField")&&(o.hideField=u.bilibili.pgc.gateway.player.v2.HideField.toObject(i.hideField,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.pgc.gateway.player.v3.PlayViewReply"},l}(),e}(),c}(),p}(),d.service=function(){let p={};return p.premiere=function(){let c={};return c.v1=function(){let e={};return e.Premiere=function(){function l(t,i,n){b.rpc.Service.call(this,t,i,n)}return(l.prototype=Object.create(b.rpc.Service.prototype)).constructor=l,l.create=function(i,n,o){return new this(i,n,o)},Object.defineProperty(l.prototype.status=function t(i,n){return this.rpcCall(t,u.bilibili.pgc.service.premiere.v1.PremiereStatusReq,u.bilibili.pgc.service.premiere.v1.PremiereStatusReply,i,n)},"name",{value:"Status"}),l}(),e.PremiereStatusReq=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.epId=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.pgc.service.premiere.v1.PremiereStatusReq)return i;let n=new u.bilibili.pgc.service.premiere.v1.PremiereStatusReq;return i.epId!=null&&(r.Long?(n.epId=r.Long.fromValue(i.epId)).unsigned=!1:typeof i.epId=="string"?n.epId=parseInt(i.epId,10):typeof i.epId=="number"?n.epId=i.epId:typeof i.epId=="object"&&(n.epId=new r.LongBits(i.epId.low>>>0,i.epId.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults)if(r.Long){let a=new r.Long(0,0,!1);o.epId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.epId=n.longs===String?"0":0;return i.epId!=null&&i.hasOwnProperty("epId")&&(typeof i.epId=="number"?o.epId=n.longs===String?String(i.epId):i.epId:o.epId=n.longs===String?r.Long.prototype.toString.call(i.epId):n.longs===Number?new r.LongBits(i.epId.low>>>0,i.epId.high>>>0).toNumber():i.epId),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.pgc.service.premiere.v1.PremiereStatusReq"},l}(),e.PremiereStatusReply=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.progress=i.int64();break}case 2:{a.startTime=i.int64();break}case 3:{a.delayTime=i.int64();break}case 4:{a.onlineCount=i.int64();break}case 5:{a.status=i.int32();break}case 6:{a.afterPremiereType=i.int32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.pgc.service.premiere.v1.PremiereStatusReply)return i;let n=new u.bilibili.pgc.service.premiere.v1.PremiereStatusReply;return i.progress!=null&&(r.Long?(n.progress=r.Long.fromValue(i.progress)).unsigned=!1:typeof i.progress=="string"?n.progress=parseInt(i.progress,10):typeof i.progress=="number"?n.progress=i.progress:typeof i.progress=="object"&&(n.progress=new r.LongBits(i.progress.low>>>0,i.progress.high>>>0).toNumber())),i.startTime!=null&&(r.Long?(n.startTime=r.Long.fromValue(i.startTime)).unsigned=!1:typeof i.startTime=="string"?n.startTime=parseInt(i.startTime,10):typeof i.startTime=="number"?n.startTime=i.startTime:typeof i.startTime=="object"&&(n.startTime=new r.LongBits(i.startTime.low>>>0,i.startTime.high>>>0).toNumber())),i.delayTime!=null&&(r.Long?(n.delayTime=r.Long.fromValue(i.delayTime)).unsigned=!1:typeof i.delayTime=="string"?n.delayTime=parseInt(i.delayTime,10):typeof i.delayTime=="number"?n.delayTime=i.delayTime:typeof i.delayTime=="object"&&(n.delayTime=new r.LongBits(i.delayTime.low>>>0,i.delayTime.high>>>0).toNumber())),i.onlineCount!=null&&(r.Long?(n.onlineCount=r.Long.fromValue(i.onlineCount)).unsigned=!1:typeof i.onlineCount=="string"?n.onlineCount=parseInt(i.onlineCount,10):typeof i.onlineCount=="number"?n.onlineCount=i.onlineCount:typeof i.onlineCount=="object"&&(n.onlineCount=new r.LongBits(i.onlineCount.low>>>0,i.onlineCount.high>>>0).toNumber())),i.status!=null&&(n.status=i.status|0),i.afterPremiereType!=null&&(n.afterPremiereType=i.afterPremiereType|0),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.progress=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.progress=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.startTime=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.startTime=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.delayTime=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.delayTime=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.onlineCount=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.onlineCount=n.longs===String?"0":0;o.status=0,o.afterPremiereType=0}return i.progress!=null&&i.hasOwnProperty("progress")&&(typeof i.progress=="number"?o.progress=n.longs===String?String(i.progress):i.progress:o.progress=n.longs===String?r.Long.prototype.toString.call(i.progress):n.longs===Number?new r.LongBits(i.progress.low>>>0,i.progress.high>>>0).toNumber():i.progress),i.startTime!=null&&i.hasOwnProperty("startTime")&&(typeof i.startTime=="number"?o.startTime=n.longs===String?String(i.startTime):i.startTime:o.startTime=n.longs===String?r.Long.prototype.toString.call(i.startTime):n.longs===Number?new r.LongBits(i.startTime.low>>>0,i.startTime.high>>>0).toNumber():i.startTime),i.delayTime!=null&&i.hasOwnProperty("delayTime")&&(typeof i.delayTime=="number"?o.delayTime=n.longs===String?String(i.delayTime):i.delayTime:o.delayTime=n.longs===String?r.Long.prototype.toString.call(i.delayTime):n.longs===Number?new r.LongBits(i.delayTime.low>>>0,i.delayTime.high>>>0).toNumber():i.delayTime),i.onlineCount!=null&&i.hasOwnProperty("onlineCount")&&(typeof i.onlineCount=="number"?o.onlineCount=n.longs===String?String(i.onlineCount):i.onlineCount:o.onlineCount=n.longs===String?r.Long.prototype.toString.call(i.onlineCount):n.longs===Number?new r.LongBits(i.onlineCount.low>>>0,i.onlineCount.high>>>0).toNumber():i.onlineCount),i.status!=null&&i.hasOwnProperty("status")&&(o.status=i.status),i.afterPremiereType!=null&&i.hasOwnProperty("afterPremiereType")&&(o.afterPremiereType=i.afterPremiereType),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.pgc.service.premiere.v1.PremiereStatusReply"},l}(),e}(),c}(),p}(),d}(),O.playershared=function(){let d={};return d.ConfType=function(){let p={},c=Object.create(p);return c[p[0]="NoType"]=0,c[p[1]="FLIPCONF"]=1,c[p[2]="CASTCONF"]=2,c[p[3]="FEEDBACK"]=3,c[p[4]="SUBTITLE"]=4,c[p[5]="PLAYBACKRATE"]=5,c[p[6]="TIMEUP"]=6,c[p[7]="PLAYBACKMODE"]=7,c[p[8]="SCALEMODE"]=8,c[p[9]="BACKGROUNDPLAY"]=9,c[p[10]="LIKE"]=10,c[p[11]="DISLIKE"]=11,c[p[12]="COIN"]=12,c[p[13]="ELEC"]=13,c[p[14]="SHARE"]=14,c[p[15]="SCREENSHOT"]=15,c[p[16]="LOCKSCREEN"]=16,c[p[17]="RECOMMEND"]=17,c[p[18]="PLAYBACKSPEED"]=18,c[p[19]="DEFINITION"]=19,c[p[20]="SELECTIONS"]=20,c[p[21]="NEXT"]=21,c[p[22]="EDITDM"]=22,c[p[23]="SMALLWINDOW"]=23,c[p[24]="SHAKE"]=24,c[p[25]="OUTERDM"]=25,c[p[26]="INNERDM"]=26,c[p[27]="PANORAMA"]=27,c[p[28]="DOLBY"]=28,c[p[29]="COLORFILTER"]=29,c[p[30]="LOSSLESS"]=30,c[p[31]="FREYAENTER"]=31,c[p[32]="FREYAFULLENTER"]=32,c[p[33]="SKIPOPED"]=33,c[p[34]="RECORDSCREEN"]=34,c[p[35]="DUBBING"]=35,c[p[36]="LISTEN"]=36,c}(),d.PlayArcConf=function(){function p(c){if(this.arcConfs={},c)for(let e=Object.keys(c),l=0;l>>3){case 1:{i.arcConfs===r.emptyObject&&(i.arcConfs={});let y=e.uint32()+e.pos;for(n=0,o=null;e.pos>>3){case 1:n=e.int32();break;case 2:o=u.bilibili.playershared.ArcConf.decode(e,e.uint32());break;default:e.skipType(s&7);break}}i.arcConfs[n]=o;break}default:e.skipType(a&7);break}}return i},p.fromObject=function(e){if(e instanceof u.bilibili.playershared.PlayArcConf)return e;let l=new u.bilibili.playershared.PlayArcConf;if(e.arcConfs){if(typeof e.arcConfs!="object")throw TypeError(".bilibili.playershared.PlayArcConf.arcConfs: object expected");l.arcConfs={};for(let t=Object.keys(e.arcConfs),i=0;i>>3){case 1:{i.isSupport=e.bool();break}case 2:{i.disabled=e.bool();break}case 3:{i.extraContent=u.bilibili.playershared.ExtraContent.decode(e,e.uint32());break}case 4:{if(i.unsupportScene&&i.unsupportScene.length||(i.unsupportScene=[]),(n&7)===2){let o=e.uint32()+e.pos;for(;e.pos>>3){case 1:{i.disabledReason=e.string();break}case 2:{i.disabledCode=e.int64();break}default:e.skipType(n&7);break}}return i},p.fromObject=function(e){if(e instanceof u.bilibili.playershared.ExtraContent)return e;let l=new u.bilibili.playershared.ExtraContent;return e.disabledReason!=null&&(l.disabledReason=String(e.disabledReason)),e.disabledCode!=null&&(r.Long?(l.disabledCode=r.Long.fromValue(e.disabledCode)).unsigned=!1:typeof e.disabledCode=="string"?l.disabledCode=parseInt(e.disabledCode,10):typeof e.disabledCode=="number"?l.disabledCode=e.disabledCode:typeof e.disabledCode=="object"&&(l.disabledCode=new r.LongBits(e.disabledCode.low>>>0,e.disabledCode.high>>>0).toNumber())),l},p.toObject=function(e,l){l||(l={});let t={};if(l.defaults)if(t.disabledReason="",r.Long){let i=new r.Long(0,0,!1);t.disabledCode=l.longs===String?i.toString():l.longs===Number?i.toNumber():i}else t.disabledCode=l.longs===String?"0":0;return e.disabledReason!=null&&e.hasOwnProperty("disabledReason")&&(t.disabledReason=e.disabledReason),e.disabledCode!=null&&e.hasOwnProperty("disabledCode")&&(typeof e.disabledCode=="number"?t.disabledCode=l.longs===String?String(e.disabledCode):e.disabledCode:t.disabledCode=l.longs===String?r.Long.prototype.toString.call(e.disabledCode):l.longs===Number?new r.LongBits(e.disabledCode.low>>>0,e.disabledCode.high>>>0).toNumber():e.disabledCode),t},p.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},p.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/bilibili.playershared.ExtraContent"},p}(),d.PlayDeviceConf=function(){function p(c){if(this.deviceConfs={},c)for(let e=Object.keys(c),l=0;l>>3){case 1:{i.deviceConfs===r.emptyObject&&(i.deviceConfs={});let y=e.uint32()+e.pos;for(n=0,o=null;e.pos>>3){case 1:n=e.int32();break;case 2:o=u.bilibili.playershared.DeviceConf.decode(e,e.uint32());break;default:e.skipType(s&7);break}}i.deviceConfs[n]=o;break}default:e.skipType(a&7);break}}return i},p.fromObject=function(e){if(e instanceof u.bilibili.playershared.PlayDeviceConf)return e;let l=new u.bilibili.playershared.PlayDeviceConf;if(e.deviceConfs){if(typeof e.deviceConfs!="object")throw TypeError(".bilibili.playershared.PlayDeviceConf.deviceConfs: object expected");l.deviceConfs={};for(let t=Object.keys(e.deviceConfs),i=0;i>>3){case 1:{n.switchVal=l.bool();break}case 2:{n.selectedVal=l.int64();break}default:l.skipType(o&7);break}}return n},p.fromObject=function(l){if(l instanceof u.bilibili.playershared.ConfValue)return l;let t=new u.bilibili.playershared.ConfValue;return l.switchVal!=null&&(t.switchVal=!!l.switchVal),l.selectedVal!=null&&(r.Long?(t.selectedVal=r.Long.fromValue(l.selectedVal)).unsigned=!1:typeof l.selectedVal=="string"?t.selectedVal=parseInt(l.selectedVal,10):typeof l.selectedVal=="number"?t.selectedVal=l.selectedVal:typeof l.selectedVal=="object"&&(t.selectedVal=new r.LongBits(l.selectedVal.low>>>0,l.selectedVal.high>>>0).toNumber())),t},p.toObject=function(l,t){t||(t={});let i={};return l.switchVal!=null&&l.hasOwnProperty("switchVal")&&(i.switchVal=l.switchVal,t.oneofs&&(i.value="switchVal")),l.selectedVal!=null&&l.hasOwnProperty("selectedVal")&&(typeof l.selectedVal=="number"?i.selectedVal=t.longs===String?String(l.selectedVal):l.selectedVal:i.selectedVal=t.longs===String?r.Long.prototype.toString.call(l.selectedVal):t.longs===Number?new r.LongBits(l.selectedVal.low>>>0,l.selectedVal.high>>>0).toNumber():l.selectedVal,t.oneofs&&(i.value="selectedVal")),i},p.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},p.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.playershared.ConfValue"},p}(),d.DeviceConf=function(){function p(c){if(c)for(let e=Object.keys(c),l=0;l>>3){case 1:{i.confValue=u.bilibili.playershared.ConfValue.decode(e,e.uint32());break}default:e.skipType(n&7);break}}return i},p.fromObject=function(e){if(e instanceof u.bilibili.playershared.DeviceConf)return e;let l=new u.bilibili.playershared.DeviceConf;if(e.confValue!=null){if(typeof e.confValue!="object")throw TypeError(".bilibili.playershared.DeviceConf.confValue: object expected");l.confValue=u.bilibili.playershared.ConfValue.fromObject(e.confValue)}return l},p.toObject=function(e,l){l||(l={});let t={};return l.defaults&&(t.confValue=null),e.confValue!=null&&e.hasOwnProperty("confValue")&&(t.confValue=u.bilibili.playershared.ConfValue.toObject(e.confValue,l)),t},p.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},p.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/bilibili.playershared.DeviceConf"},p}(),d.ViewInfo=function(){function p(c){if(this.dialogMap={},this.toasts=[],c)for(let e=Object.keys(c),l=0;l>>3){case 1:{i.dialogMap===r.emptyObject&&(i.dialogMap={});let y=e.uint32()+e.pos;for(n="",o=null;e.pos>>3){case 1:n=e.string();break;case 2:o=u.bilibili.playershared.Dialog.decode(e,e.uint32());break;default:e.skipType(s&7);break}}i.dialogMap[n]=o;break}case 2:{i.promptBar=u.bilibili.playershared.PromptBar.decode(e,e.uint32());break}case 3:{i.toasts&&i.toasts.length||(i.toasts=[]),i.toasts.push(u.bilibili.playershared.ComprehensiveToast.decode(e,e.uint32()));break}default:e.skipType(a&7);break}}return i},p.fromObject=function(e){if(e instanceof u.bilibili.playershared.ViewInfo)return e;let l=new u.bilibili.playershared.ViewInfo;if(e.dialogMap){if(typeof e.dialogMap!="object")throw TypeError(".bilibili.playershared.ViewInfo.dialogMap: object expected");l.dialogMap={};for(let t=Object.keys(e.dialogMap),i=0;i>>3){case 1:{i.type=e.int32();break}case 2:{i.button=u.bilibili.playershared.ButtonInfo.decode(e,e.uint32());break}case 3:{i.showStyleType=e.int32();break}case 4:{i.icon=e.string();break}case 5:{i.toastText=u.bilibili.playershared.TextInfo.decode(e,e.uint32());break}case 6:{i.report=u.bilibili.playershared.Report.decode(e,e.uint32());break}case 7:{i.orderReportParams===r.emptyObject&&(i.orderReportParams={});let y=e.uint32()+e.pos;for(n="",o="";e.pos>>3){case 1:n=e.string();break;case 2:o=e.string();break;default:e.skipType(s&7);break}}i.orderReportParams[n]=o;break}default:e.skipType(a&7);break}}return i},p.fromObject=function(e){if(e instanceof u.bilibili.playershared.ComprehensiveToast)return e;let l=new u.bilibili.playershared.ComprehensiveToast;switch(e.type){default:if(typeof e.type=="number"){l.type=e.type;break}break;case"TOAST_TYPE_UNKNOWN":case 0:l.type=0;break;case"VIP_CONTENT_REMIND":case 1:l.type=1;break;case"VIP_DEFINITION_REMIND":case 2:l.type=2;break;case"VIP_DEFINITION_GUIDE":case 3:l.type=3;break;case"OGV_VIDEO_START_TOAST":case 4:l.type=4;break;case"CHARGING_TOAST":case 5:l.type=5;break;case"VIP_SKIP_FRAGMENT_TOAST":case 6:l.type=6;break}if(e.button!=null){if(typeof e.button!="object")throw TypeError(".bilibili.playershared.ComprehensiveToast.button: object expected");l.button=u.bilibili.playershared.ButtonInfo.fromObject(e.button)}switch(e.showStyleType){default:if(typeof e.showStyleType=="number"){l.showStyleType=e.showStyleType;break}break;case"SHOW_STYLE_TYPE_UNKNOWN":case 0:l.showStyleType=0;break;case"SHOW_STYLE_TYPE_ORDINARY":case 1:l.showStyleType=1;break;case"SHOW_STYLE_TYPE_RESIDENT":case 2:l.showStyleType=2;break}if(e.icon!=null&&(l.icon=String(e.icon)),e.toastText!=null){if(typeof e.toastText!="object")throw TypeError(".bilibili.playershared.ComprehensiveToast.toastText: object expected");l.toastText=u.bilibili.playershared.TextInfo.fromObject(e.toastText)}if(e.report!=null){if(typeof e.report!="object")throw TypeError(".bilibili.playershared.ComprehensiveToast.report: object expected");l.report=u.bilibili.playershared.Report.fromObject(e.report)}if(e.orderReportParams){if(typeof e.orderReportParams!="object")throw TypeError(".bilibili.playershared.ComprehensiveToast.orderReportParams: object expected");l.orderReportParams={};for(let t=Object.keys(e.orderReportParams),i=0;i>>3){case 1:{i.title=u.bilibili.playershared.TextInfo.decode(e,e.uint32());break}case 2:{i.subTitle=u.bilibili.playershared.TextInfo.decode(e,e.uint32());break}case 3:{i.subTitleIcon=e.string();break}case 4:{i.bgImage=e.string();break}case 5:{i.bgGradientColor=u.bilibili.playershared.GradientColor.decode(e,e.uint32());break}case 6:{i.button&&i.button.length||(i.button=[]),i.button.push(u.bilibili.playershared.ButtonInfo.decode(e,e.uint32()));break}case 7:{i.report=u.bilibili.playershared.Report.decode(e,e.uint32());break}case 8:{i.fullScreenIpIcon=e.string();break}case 9:{i.fullScreenBgGradientColor=u.bilibili.playershared.GradientColor.decode(e,e.uint32());break}case 10:{i.promptBarType=e.int32();break}case 11:{i.promptBarStyle=e.int32();break}case 12:{i.benefitInfos&&i.benefitInfos.length||(i.benefitInfos=[]),i.benefitInfos.push(u.bilibili.playershared.BenefitInfo.decode(e,e.uint32()));break}case 13:{i.endTime=e.int64();break}default:e.skipType(n&7);break}}return i},p.fromObject=function(e){if(e instanceof u.bilibili.playershared.PromptBar)return e;let l=new u.bilibili.playershared.PromptBar;if(e.title!=null){if(typeof e.title!="object")throw TypeError(".bilibili.playershared.PromptBar.title: object expected");l.title=u.bilibili.playershared.TextInfo.fromObject(e.title)}if(e.subTitle!=null){if(typeof e.subTitle!="object")throw TypeError(".bilibili.playershared.PromptBar.subTitle: object expected");l.subTitle=u.bilibili.playershared.TextInfo.fromObject(e.subTitle)}if(e.subTitleIcon!=null&&(l.subTitleIcon=String(e.subTitleIcon)),e.bgImage!=null&&(l.bgImage=String(e.bgImage)),e.bgGradientColor!=null){if(typeof e.bgGradientColor!="object")throw TypeError(".bilibili.playershared.PromptBar.bgGradientColor: object expected");l.bgGradientColor=u.bilibili.playershared.GradientColor.fromObject(e.bgGradientColor)}if(e.button){if(!Array.isArray(e.button))throw TypeError(".bilibili.playershared.PromptBar.button: array expected");l.button=[];for(let t=0;t>>0,e.endTime.high>>>0).toNumber())),l},p.toObject=function(e,l){l||(l={});let t={};if((l.arrays||l.defaults)&&(t.button=[],t.benefitInfos=[]),l.defaults)if(t.title=null,t.subTitle=null,t.subTitleIcon="",t.bgImage="",t.bgGradientColor=null,t.report=null,t.fullScreenIpIcon="",t.fullScreenBgGradientColor=null,t.promptBarType=l.enums===String?"PROMPT_BAR_TYPE_UNKNOWN":0,t.promptBarStyle=l.enums===String?"PROMPT_BAR_STYLE_UNKNOWN":0,r.Long){let i=new r.Long(0,0,!1);t.endTime=l.longs===String?i.toString():l.longs===Number?i.toNumber():i}else t.endTime=l.longs===String?"0":0;if(e.title!=null&&e.hasOwnProperty("title")&&(t.title=u.bilibili.playershared.TextInfo.toObject(e.title,l)),e.subTitle!=null&&e.hasOwnProperty("subTitle")&&(t.subTitle=u.bilibili.playershared.TextInfo.toObject(e.subTitle,l)),e.subTitleIcon!=null&&e.hasOwnProperty("subTitleIcon")&&(t.subTitleIcon=e.subTitleIcon),e.bgImage!=null&&e.hasOwnProperty("bgImage")&&(t.bgImage=e.bgImage),e.bgGradientColor!=null&&e.hasOwnProperty("bgGradientColor")&&(t.bgGradientColor=u.bilibili.playershared.GradientColor.toObject(e.bgGradientColor,l)),e.button&&e.button.length){t.button=[];for(let i=0;i>>0,e.endTime.high>>>0).toNumber():e.endTime),t},p.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},p.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/bilibili.playershared.PromptBar"},p}(),d.PromptBarType=function(){let p={},c=Object.create(p);return c[p[0]="PROMPT_BAR_TYPE_UNKNOWN"]=0,c[p[1]="OPEN_PROMPT_BAR"]=1,c[p[2]="TRY_PROMPT_BAR"]=2,c}(),d.PromptBarStyle=function(){let p={},c=Object.create(p);return c[p[0]="PROMPT_BAR_STYLE_UNKNOWN"]=0,c[p[1]="TEXT"]=1,c[p[2]="CURING_BENEFITS"]=2,c[p[3]="CARD_OPENING_GIFT"]=3,c[p[4]="COUNTDOWN"]=4,c}(),d.BenefitInfo=function(){function p(c){if(c)for(let e=Object.keys(c),l=0;l>>3){case 1:{i.title=e.string();break}case 2:{i.icon=e.string();break}default:e.skipType(n&7);break}}return i},p.fromObject=function(e){if(e instanceof u.bilibili.playershared.BenefitInfo)return e;let l=new u.bilibili.playershared.BenefitInfo;return e.title!=null&&(l.title=String(e.title)),e.icon!=null&&(l.icon=String(e.icon)),l},p.toObject=function(e,l){l||(l={});let t={};return l.defaults&&(t.title="",t.icon=""),e.title!=null&&e.hasOwnProperty("title")&&(t.title=e.title),e.icon!=null&&e.hasOwnProperty("icon")&&(t.icon=e.icon),t},p.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},p.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/bilibili.playershared.BenefitInfo"},p}(),d.Dialog=function(){function p(c){if(this.button=[],this.bottomDisplay=[],c)for(let e=Object.keys(c),l=0;l>>3){case 1:{i.styleType=e.int32();break}case 2:{i.backgroundInfo=u.bilibili.playershared.BackgroundInfo.decode(e,e.uint32());break}case 3:{i.title=u.bilibili.playershared.TextInfo.decode(e,e.uint32());break}case 4:{i.subtitle=u.bilibili.playershared.TextInfo.decode(e,e.uint32());break}case 5:{i.image=u.bilibili.playershared.ImageInfo.decode(e,e.uint32());break}case 6:{i.button&&i.button.length||(i.button=[]),i.button.push(u.bilibili.playershared.ButtonInfo.decode(e,e.uint32()));break}case 7:{i.bottomDesc=u.bilibili.playershared.ButtonInfo.decode(e,e.uint32());break}case 8:{i.report=u.bilibili.playershared.Report.decode(e,e.uint32());break}case 9:{i.countDownSec=e.int32();break}case 10:{i.rightBottomDesc=u.bilibili.playershared.TextInfo.decode(e,e.uint32());break}case 11:{i.bottomDisplay&&i.bottomDisplay.length||(i.bottomDisplay=[]),i.bottomDisplay.push(u.bilibili.playershared.BottomDisplay.decode(e,e.uint32()));break}case 12:{i.extData=u.bilibili.playershared.ExtData.decode(e,e.uint32());break}case 13:{i.limitActionType=e.int32();break}case 14:{i.isHideMoreBtn=e.int32();break}default:e.skipType(n&7);break}}return i},p.fromObject=function(e){if(e instanceof u.bilibili.playershared.Dialog)return e;let l=new u.bilibili.playershared.Dialog;switch(e.styleType){default:if(typeof e.styleType=="number"){l.styleType=e.styleType;break}break;case"STYLE_UNKNOWN":case 0:l.styleType=0;break;case"HORIZONTAL_IMAGE":case 1:l.styleType=1;break;case"VERTICAL_TEXT":case 2:l.styleType=2;break;case"SIMPLE_TEXT":case 3:l.styleType=3;break;case"CHARGING_TEXT":case 4:l.styleType=4;break}if(e.backgroundInfo!=null){if(typeof e.backgroundInfo!="object")throw TypeError(".bilibili.playershared.Dialog.backgroundInfo: object expected");l.backgroundInfo=u.bilibili.playershared.BackgroundInfo.fromObject(e.backgroundInfo)}if(e.title!=null){if(typeof e.title!="object")throw TypeError(".bilibili.playershared.Dialog.title: object expected");l.title=u.bilibili.playershared.TextInfo.fromObject(e.title)}if(e.subtitle!=null){if(typeof e.subtitle!="object")throw TypeError(".bilibili.playershared.Dialog.subtitle: object expected");l.subtitle=u.bilibili.playershared.TextInfo.fromObject(e.subtitle)}if(e.image!=null){if(typeof e.image!="object")throw TypeError(".bilibili.playershared.Dialog.image: object expected");l.image=u.bilibili.playershared.ImageInfo.fromObject(e.image)}if(e.button){if(!Array.isArray(e.button))throw TypeError(".bilibili.playershared.Dialog.button: array expected");l.button=[];for(let t=0;t>>3){case 1:{i.title=u.bilibili.playershared.TextInfo.decode(e,e.uint32());break}case 2:{i.icon=e.string();break}default:e.skipType(n&7);break}}return i},p.fromObject=function(e){if(e instanceof u.bilibili.playershared.BottomDisplay)return e;let l=new u.bilibili.playershared.BottomDisplay;if(e.title!=null){if(typeof e.title!="object")throw TypeError(".bilibili.playershared.BottomDisplay.title: object expected");l.title=u.bilibili.playershared.TextInfo.fromObject(e.title)}return e.icon!=null&&(l.icon=String(e.icon)),l},p.toObject=function(e,l){l||(l={});let t={};return l.defaults&&(t.title=null,t.icon=""),e.title!=null&&e.hasOwnProperty("title")&&(t.title=u.bilibili.playershared.TextInfo.toObject(e.title,l)),e.icon!=null&&e.hasOwnProperty("icon")&&(t.icon=e.icon),t},p.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},p.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/bilibili.playershared.BottomDisplay"},p}(),d.Report=function(){function p(c){if(c)for(let e=Object.keys(c),l=0;l>>3){case 1:{i.showEventId=e.string();break}case 2:{i.clickEventId=e.string();break}case 3:{i.extends=e.string();break}default:e.skipType(n&7);break}}return i},p.fromObject=function(e){if(e instanceof u.bilibili.playershared.Report)return e;let l=new u.bilibili.playershared.Report;return e.showEventId!=null&&(l.showEventId=String(e.showEventId)),e.clickEventId!=null&&(l.clickEventId=String(e.clickEventId)),e.extends!=null&&(l.extends=String(e.extends)),l},p.toObject=function(e,l){l||(l={});let t={};return l.defaults&&(t.showEventId="",t.clickEventId="",t.extends=""),e.showEventId!=null&&e.hasOwnProperty("showEventId")&&(t.showEventId=e.showEventId),e.clickEventId!=null&&e.hasOwnProperty("clickEventId")&&(t.clickEventId=e.clickEventId),e.extends!=null&&e.hasOwnProperty("extends")&&(t.extends=e.extends),t},p.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},p.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/bilibili.playershared.Report"},p}(),d.TextInfo=function(){function p(c){if(c)for(let e=Object.keys(c),l=0;l>>3){case 1:{i.text=e.string();break}case 2:{i.textColor=e.string();break}case 3:{i.textColorNight=e.string();break}default:e.skipType(n&7);break}}return i},p.fromObject=function(e){if(e instanceof u.bilibili.playershared.TextInfo)return e;let l=new u.bilibili.playershared.TextInfo;return e.text!=null&&(l.text=String(e.text)),e.textColor!=null&&(l.textColor=String(e.textColor)),e.textColorNight!=null&&(l.textColorNight=String(e.textColorNight)),l},p.toObject=function(e,l){l||(l={});let t={};return l.defaults&&(t.text="",t.textColor="",t.textColorNight=""),e.text!=null&&e.hasOwnProperty("text")&&(t.text=e.text),e.textColor!=null&&e.hasOwnProperty("textColor")&&(t.textColor=e.textColor),e.textColorNight!=null&&e.hasOwnProperty("textColorNight")&&(t.textColorNight=e.textColorNight),t},p.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},p.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/bilibili.playershared.TextInfo"},p}(),d.ImageInfo=function(){function p(c){if(c)for(let e=Object.keys(c),l=0;l>>3){case 1:{i.url=e.string();break}default:e.skipType(n&7);break}}return i},p.fromObject=function(e){if(e instanceof u.bilibili.playershared.ImageInfo)return e;let l=new u.bilibili.playershared.ImageInfo;return e.url!=null&&(l.url=String(e.url)),l},p.toObject=function(e,l){l||(l={});let t={};return l.defaults&&(t.url=""),e.url!=null&&e.hasOwnProperty("url")&&(t.url=e.url),t},p.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},p.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/bilibili.playershared.ImageInfo"},p}(),d.ExtData=function(){function p(e){if(e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.type=l.int32();break}case 2:{n.playListInfo=u.bilibili.playershared.PlayListInfo.decode(l,l.uint32());break}case 3:{n.banner=u.bilibili.playershared.Banner.decode(l,l.uint32());break}case 4:{n.epInlineVideoInfo=u.bilibili.playershared.EpInlineVideoInfo.decode(l,l.uint32());break}default:l.skipType(o&7);break}}return n},p.fromObject=function(l){if(l instanceof u.bilibili.playershared.ExtData)return l;let t=new u.bilibili.playershared.ExtData;switch(l.type){default:if(typeof l.type=="number"){t.type=l.type;break}break;case"EXT_DATA_TYPE_UNKNOWN":case 0:t.type=0;break;case"PLAY_LIST":case 1:t.type=1;break;case"BANNER":case 2:t.type=2;break;case"HE_INLINE":case 3:t.type=3;break}if(l.playListInfo!=null){if(typeof l.playListInfo!="object")throw TypeError(".bilibili.playershared.ExtData.playListInfo: object expected");t.playListInfo=u.bilibili.playershared.PlayListInfo.fromObject(l.playListInfo)}if(l.banner!=null){if(typeof l.banner!="object")throw TypeError(".bilibili.playershared.ExtData.banner: object expected");t.banner=u.bilibili.playershared.Banner.fromObject(l.banner)}if(l.epInlineVideoInfo!=null){if(typeof l.epInlineVideoInfo!="object")throw TypeError(".bilibili.playershared.ExtData.epInlineVideoInfo: object expected");t.epInlineVideoInfo=u.bilibili.playershared.EpInlineVideoInfo.fromObject(l.epInlineVideoInfo)}return t},p.toObject=function(l,t){t||(t={});let i={};return t.defaults&&(i.type=t.enums===String?"EXT_DATA_TYPE_UNKNOWN":0),l.type!=null&&l.hasOwnProperty("type")&&(i.type=t.enums===String?u.bilibili.playershared.ExtDataType[l.type]===void 0?l.type:u.bilibili.playershared.ExtDataType[l.type]:l.type),l.playListInfo!=null&&l.hasOwnProperty("playListInfo")&&(i.playListInfo=u.bilibili.playershared.PlayListInfo.toObject(l.playListInfo,t),t.oneofs&&(i.data="playListInfo")),l.banner!=null&&l.hasOwnProperty("banner")&&(i.banner=u.bilibili.playershared.Banner.toObject(l.banner,t),t.oneofs&&(i.data="banner")),l.epInlineVideoInfo!=null&&l.hasOwnProperty("epInlineVideoInfo")&&(i.epInlineVideoInfo=u.bilibili.playershared.EpInlineVideoInfo.toObject(l.epInlineVideoInfo,t),t.oneofs&&(i.data="epInlineVideoInfo")),i},p.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},p.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.playershared.ExtData"},p}(),d.Banner=function(){function p(c){if(c)for(let e=Object.keys(c),l=0;l>>3){case 1:{i.jumpLink=e.string();break}case 2:{i.imageLink=e.string();break}case 3:{i.halfImageLink=e.string();break}case 4:{i.report=u.bilibili.playershared.Report.decode(e,e.uint32());break}default:e.skipType(n&7);break}}return i},p.fromObject=function(e){if(e instanceof u.bilibili.playershared.Banner)return e;let l=new u.bilibili.playershared.Banner;if(e.jumpLink!=null&&(l.jumpLink=String(e.jumpLink)),e.imageLink!=null&&(l.imageLink=String(e.imageLink)),e.halfImageLink!=null&&(l.halfImageLink=String(e.halfImageLink)),e.report!=null){if(typeof e.report!="object")throw TypeError(".bilibili.playershared.Banner.report: object expected");l.report=u.bilibili.playershared.Report.fromObject(e.report)}return l},p.toObject=function(e,l){l||(l={});let t={};return l.defaults&&(t.jumpLink="",t.imageLink="",t.halfImageLink="",t.report=null),e.jumpLink!=null&&e.hasOwnProperty("jumpLink")&&(t.jumpLink=e.jumpLink),e.imageLink!=null&&e.hasOwnProperty("imageLink")&&(t.imageLink=e.imageLink),e.halfImageLink!=null&&e.hasOwnProperty("halfImageLink")&&(t.halfImageLink=e.halfImageLink),e.report!=null&&e.hasOwnProperty("report")&&(t.report=u.bilibili.playershared.Report.toObject(e.report,l)),t},p.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},p.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/bilibili.playershared.Banner"},p}(),d.EpInlineVideoInfo=function(){function p(c){if(this.epInlineVideo=[],c)for(let e=Object.keys(c),l=0;l>>3){case 1:{i.epInlineVideo&&i.epInlineVideo.length||(i.epInlineVideo=[]),i.epInlineVideo.push(u.bilibili.playershared.EpInlineVideo.decode(e,e.uint32()));break}default:e.skipType(n&7);break}}return i},p.fromObject=function(e){if(e instanceof u.bilibili.playershared.EpInlineVideoInfo)return e;let l=new u.bilibili.playershared.EpInlineVideoInfo;if(e.epInlineVideo){if(!Array.isArray(e.epInlineVideo))throw TypeError(".bilibili.playershared.EpInlineVideoInfo.epInlineVideo: array expected");l.epInlineVideo=[];for(let t=0;t>>3){case 1:{i.materialNo=e.int64();break}case 2:{i.aid=e.int64();break}case 3:{i.cid=e.int64();break}default:e.skipType(n&7);break}}return i},p.fromObject=function(e){if(e instanceof u.bilibili.playershared.EpInlineVideo)return e;let l=new u.bilibili.playershared.EpInlineVideo;return e.materialNo!=null&&(r.Long?(l.materialNo=r.Long.fromValue(e.materialNo)).unsigned=!1:typeof e.materialNo=="string"?l.materialNo=parseInt(e.materialNo,10):typeof e.materialNo=="number"?l.materialNo=e.materialNo:typeof e.materialNo=="object"&&(l.materialNo=new r.LongBits(e.materialNo.low>>>0,e.materialNo.high>>>0).toNumber())),e.aid!=null&&(r.Long?(l.aid=r.Long.fromValue(e.aid)).unsigned=!1:typeof e.aid=="string"?l.aid=parseInt(e.aid,10):typeof e.aid=="number"?l.aid=e.aid:typeof e.aid=="object"&&(l.aid=new r.LongBits(e.aid.low>>>0,e.aid.high>>>0).toNumber())),e.cid!=null&&(r.Long?(l.cid=r.Long.fromValue(e.cid)).unsigned=!1:typeof e.cid=="string"?l.cid=parseInt(e.cid,10):typeof e.cid=="number"?l.cid=e.cid:typeof e.cid=="object"&&(l.cid=new r.LongBits(e.cid.low>>>0,e.cid.high>>>0).toNumber())),l},p.toObject=function(e,l){l||(l={});let t={};if(l.defaults){if(r.Long){let i=new r.Long(0,0,!1);t.materialNo=l.longs===String?i.toString():l.longs===Number?i.toNumber():i}else t.materialNo=l.longs===String?"0":0;if(r.Long){let i=new r.Long(0,0,!1);t.aid=l.longs===String?i.toString():l.longs===Number?i.toNumber():i}else t.aid=l.longs===String?"0":0;if(r.Long){let i=new r.Long(0,0,!1);t.cid=l.longs===String?i.toString():l.longs===Number?i.toNumber():i}else t.cid=l.longs===String?"0":0}return e.materialNo!=null&&e.hasOwnProperty("materialNo")&&(typeof e.materialNo=="number"?t.materialNo=l.longs===String?String(e.materialNo):e.materialNo:t.materialNo=l.longs===String?r.Long.prototype.toString.call(e.materialNo):l.longs===Number?new r.LongBits(e.materialNo.low>>>0,e.materialNo.high>>>0).toNumber():e.materialNo),e.aid!=null&&e.hasOwnProperty("aid")&&(typeof e.aid=="number"?t.aid=l.longs===String?String(e.aid):e.aid:t.aid=l.longs===String?r.Long.prototype.toString.call(e.aid):l.longs===Number?new r.LongBits(e.aid.low>>>0,e.aid.high>>>0).toNumber():e.aid),e.cid!=null&&e.hasOwnProperty("cid")&&(typeof e.cid=="number"?t.cid=l.longs===String?String(e.cid):e.cid:t.cid=l.longs===String?r.Long.prototype.toString.call(e.cid):l.longs===Number?new r.LongBits(e.cid.low>>>0,e.cid.high>>>0).toNumber():e.cid),t},p.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},p.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/bilibili.playershared.EpInlineVideo"},p}(),d.PlayListInfo=function(){function p(c){if(this.playList=[],c)for(let e=Object.keys(c),l=0;l>>3){case 2:{i.playList&&i.playList.length||(i.playList=[]),i.playList.push(u.bilibili.playershared.PlayList.decode(e,e.uint32()));break}default:e.skipType(n&7);break}}return i},p.fromObject=function(e){if(e instanceof u.bilibili.playershared.PlayListInfo)return e;let l=new u.bilibili.playershared.PlayListInfo;if(e.playList){if(!Array.isArray(e.playList))throw TypeError(".bilibili.playershared.PlayListInfo.playList: array expected");l.playList=[];for(let t=0;t>>3){case 1:{i.seasonId=e.int64();break}case 2:{i.title=e.string();break}case 3:{i.cover=e.string();break}case 4:{i.link=e.string();break}case 5:{i.badgeInfo=u.bilibili.playershared.BadgeInfo.decode(e,e.uint32());break}default:e.skipType(n&7);break}}return i},p.fromObject=function(e){if(e instanceof u.bilibili.playershared.PlayList)return e;let l=new u.bilibili.playershared.PlayList;if(e.seasonId!=null&&(r.Long?(l.seasonId=r.Long.fromValue(e.seasonId)).unsigned=!1:typeof e.seasonId=="string"?l.seasonId=parseInt(e.seasonId,10):typeof e.seasonId=="number"?l.seasonId=e.seasonId:typeof e.seasonId=="object"&&(l.seasonId=new r.LongBits(e.seasonId.low>>>0,e.seasonId.high>>>0).toNumber())),e.title!=null&&(l.title=String(e.title)),e.cover!=null&&(l.cover=String(e.cover)),e.link!=null&&(l.link=String(e.link)),e.badgeInfo!=null){if(typeof e.badgeInfo!="object")throw TypeError(".bilibili.playershared.PlayList.badgeInfo: object expected");l.badgeInfo=u.bilibili.playershared.BadgeInfo.fromObject(e.badgeInfo)}return l},p.toObject=function(e,l){l||(l={});let t={};if(l.defaults){if(r.Long){let i=new r.Long(0,0,!1);t.seasonId=l.longs===String?i.toString():l.longs===Number?i.toNumber():i}else t.seasonId=l.longs===String?"0":0;t.title="",t.cover="",t.link="",t.badgeInfo=null}return e.seasonId!=null&&e.hasOwnProperty("seasonId")&&(typeof e.seasonId=="number"?t.seasonId=l.longs===String?String(e.seasonId):e.seasonId:t.seasonId=l.longs===String?r.Long.prototype.toString.call(e.seasonId):l.longs===Number?new r.LongBits(e.seasonId.low>>>0,e.seasonId.high>>>0).toNumber():e.seasonId),e.title!=null&&e.hasOwnProperty("title")&&(t.title=e.title),e.cover!=null&&e.hasOwnProperty("cover")&&(t.cover=e.cover),e.link!=null&&e.hasOwnProperty("link")&&(t.link=e.link),e.badgeInfo!=null&&e.hasOwnProperty("badgeInfo")&&(t.badgeInfo=u.bilibili.playershared.BadgeInfo.toObject(e.badgeInfo,l)),t},p.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},p.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/bilibili.playershared.PlayList"},p}(),d.BadgeInfo=function(){function p(c){if(c)for(let e=Object.keys(c),l=0;l>>3){case 1:{i.text=e.string();break}case 2:{i.bgColor=e.string();break}case 3:{i.bgColorNight=e.string();break}case 4:{i.textColor=e.string();break}case 5:{i.bgGradientColor=u.bilibili.playershared.GradientColor.decode(e,e.uint32());break}case 6:{i.img=e.string();break}default:e.skipType(n&7);break}}return i},p.fromObject=function(e){if(e instanceof u.bilibili.playershared.BadgeInfo)return e;let l=new u.bilibili.playershared.BadgeInfo;if(e.text!=null&&(l.text=String(e.text)),e.bgColor!=null&&(l.bgColor=String(e.bgColor)),e.bgColorNight!=null&&(l.bgColorNight=String(e.bgColorNight)),e.textColor!=null&&(l.textColor=String(e.textColor)),e.bgGradientColor!=null){if(typeof e.bgGradientColor!="object")throw TypeError(".bilibili.playershared.BadgeInfo.bgGradientColor: object expected");l.bgGradientColor=u.bilibili.playershared.GradientColor.fromObject(e.bgGradientColor)}return e.img!=null&&(l.img=String(e.img)),l},p.toObject=function(e,l){l||(l={});let t={};return l.defaults&&(t.text="",t.bgColor="",t.bgColorNight="",t.textColor="",t.bgGradientColor=null,t.img=""),e.text!=null&&e.hasOwnProperty("text")&&(t.text=e.text),e.bgColor!=null&&e.hasOwnProperty("bgColor")&&(t.bgColor=e.bgColor),e.bgColorNight!=null&&e.hasOwnProperty("bgColorNight")&&(t.bgColorNight=e.bgColorNight),e.textColor!=null&&e.hasOwnProperty("textColor")&&(t.textColor=e.textColor),e.bgGradientColor!=null&&e.hasOwnProperty("bgGradientColor")&&(t.bgGradientColor=u.bilibili.playershared.GradientColor.toObject(e.bgGradientColor,l)),e.img!=null&&e.hasOwnProperty("img")&&(t.img=e.img),t},p.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},p.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/bilibili.playershared.BadgeInfo"},p}(),d.GradientColor=function(){function p(c){if(c)for(let e=Object.keys(c),l=0;l>>3){case 1:{i.startColor=e.string();break}case 2:{i.endColor=e.string();break}default:e.skipType(n&7);break}}return i},p.fromObject=function(e){if(e instanceof u.bilibili.playershared.GradientColor)return e;let l=new u.bilibili.playershared.GradientColor;return e.startColor!=null&&(l.startColor=String(e.startColor)),e.endColor!=null&&(l.endColor=String(e.endColor)),l},p.toObject=function(e,l){l||(l={});let t={};return l.defaults&&(t.startColor="",t.endColor=""),e.startColor!=null&&e.hasOwnProperty("startColor")&&(t.startColor=e.startColor),e.endColor!=null&&e.hasOwnProperty("endColor")&&(t.endColor=e.endColor),t},p.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},p.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/bilibili.playershared.GradientColor"},p}(),d.BackgroundInfo=function(){function p(c){if(c)for(let e=Object.keys(c),l=0;l>>3){case 1:{i.drawableColor=e.string();break}case 2:{i.drawableBitmapUrl=e.string();break}case 3:{i.effects=e.int32();break}default:e.skipType(n&7);break}}return i},p.fromObject=function(e){if(e instanceof u.bilibili.playershared.BackgroundInfo)return e;let l=new u.bilibili.playershared.BackgroundInfo;switch(e.drawableColor!=null&&(l.drawableColor=String(e.drawableColor)),e.drawableBitmapUrl!=null&&(l.drawableBitmapUrl=String(e.drawableBitmapUrl)),e.effects){default:if(typeof e.effects=="number"){l.effects=e.effects;break}break;case"EFFECTS_UNKNOWN":case 0:l.effects=0;break;case"GAUSSIAN_BLUR":case 1:l.effects=1;break;case"HALF_ALPHA":case 2:l.effects=2;break}return l},p.toObject=function(e,l){l||(l={});let t={};return l.defaults&&(t.drawableColor="",t.drawableBitmapUrl="",t.effects=l.enums===String?"EFFECTS_UNKNOWN":0),e.drawableColor!=null&&e.hasOwnProperty("drawableColor")&&(t.drawableColor=e.drawableColor),e.drawableBitmapUrl!=null&&e.hasOwnProperty("drawableBitmapUrl")&&(t.drawableBitmapUrl=e.drawableBitmapUrl),e.effects!=null&&e.hasOwnProperty("effects")&&(t.effects=l.enums===String?u.bilibili.playershared.Effects[e.effects]===void 0?e.effects:u.bilibili.playershared.Effects[e.effects]:e.effects),t},p.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},p.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/bilibili.playershared.BackgroundInfo"},p}(),d.Effects=function(){let p={},c=Object.create(p);return c[p[0]="EFFECTS_UNKNOWN"]=0,c[p[1]="GAUSSIAN_BLUR"]=1,c[p[2]="HALF_ALPHA"]=2,c}(),d.ButtonAction=function(){let p={},c=Object.create(p);return c[p[0]="BUTTON_UNKNOWN"]=0,c[p[1]="PAY"]=1,c[p[2]="VIP"]=2,c[p[3]="PACK"]=3,c[p[4]="LINK"]=4,c[p[5]="COUPON"]=5,c[p[6]="DEMAND"]=6,c[p[7]="DEMAND_PACK"]=7,c[p[8]="FOLLOW"]=8,c[p[9]="APPOINTMENT"]=9,c[p[10]="VIP_FREE"]=10,c[p[11]="TASK"]=11,c[p[12]="CHARGINGPLUS"]=12,c[p[13]="BP"]=13,c[p[14]="PRE_SELL"]=14,c[p[15]="LOGIN"]=15,c}(),d.ButtonInfo=function(){function p(c){if(this.orderReportParams={},c)for(let e=Object.keys(c),l=0;l>>3){case 1:{i.text=e.string();break}case 2:{i.textColor=e.string();break}case 3:{i.textColorNight=e.string();break}case 4:{i.bgColor=e.string();break}case 5:{i.bgColorNight=e.string();break}case 6:{i.link=e.string();break}case 7:{i.actionType=e.int32();break}case 8:{i.badgeInfo=u.bilibili.playershared.BadgeInfo.decode(e,e.uint32());break}case 9:{i.report=u.bilibili.playershared.Report.decode(e,e.uint32());break}case 10:{i.leftStrikethroughText=e.string();break}case 11:{i.simpleTextInfo=u.bilibili.playershared.TextInfo.decode(e,e.uint32());break}case 12:{i.simpleBgColor=e.string();break}case 13:{i.simpleBgColorNight=e.string();break}case 14:{i.bgGradientColor=u.bilibili.playershared.GradientColor.decode(e,e.uint32());break}case 15:{i.orderReportParams===r.emptyObject&&(i.orderReportParams={});let y=e.uint32()+e.pos;for(n="",o="";e.pos>>3){case 1:n=e.string();break;case 2:o=e.string();break;default:e.skipType(s&7);break}}i.orderReportParams[n]=o;break}case 16:{i.taskParam=u.bilibili.playershared.TaskParam.decode(e,e.uint32());break}case 17:{i.frameColor=e.string();break}case 18:{i.icon=e.string();break}default:e.skipType(a&7);break}}return i},p.fromObject=function(e){if(e instanceof u.bilibili.playershared.ButtonInfo)return e;let l=new u.bilibili.playershared.ButtonInfo;switch(e.text!=null&&(l.text=String(e.text)),e.textColor!=null&&(l.textColor=String(e.textColor)),e.textColorNight!=null&&(l.textColorNight=String(e.textColorNight)),e.bgColor!=null&&(l.bgColor=String(e.bgColor)),e.bgColorNight!=null&&(l.bgColorNight=String(e.bgColorNight)),e.link!=null&&(l.link=String(e.link)),e.actionType){default:if(typeof e.actionType=="number"){l.actionType=e.actionType;break}break;case"BUTTON_UNKNOWN":case 0:l.actionType=0;break;case"PAY":case 1:l.actionType=1;break;case"VIP":case 2:l.actionType=2;break;case"PACK":case 3:l.actionType=3;break;case"LINK":case 4:l.actionType=4;break;case"COUPON":case 5:l.actionType=5;break;case"DEMAND":case 6:l.actionType=6;break;case"DEMAND_PACK":case 7:l.actionType=7;break;case"FOLLOW":case 8:l.actionType=8;break;case"APPOINTMENT":case 9:l.actionType=9;break;case"VIP_FREE":case 10:l.actionType=10;break;case"TASK":case 11:l.actionType=11;break;case"CHARGINGPLUS":case 12:l.actionType=12;break;case"BP":case 13:l.actionType=13;break;case"PRE_SELL":case 14:l.actionType=14;break;case"LOGIN":case 15:l.actionType=15;break}if(e.badgeInfo!=null){if(typeof e.badgeInfo!="object")throw TypeError(".bilibili.playershared.ButtonInfo.badgeInfo: object expected");l.badgeInfo=u.bilibili.playershared.BadgeInfo.fromObject(e.badgeInfo)}if(e.report!=null){if(typeof e.report!="object")throw TypeError(".bilibili.playershared.ButtonInfo.report: object expected");l.report=u.bilibili.playershared.Report.fromObject(e.report)}if(e.leftStrikethroughText!=null&&(l.leftStrikethroughText=String(e.leftStrikethroughText)),e.simpleTextInfo!=null){if(typeof e.simpleTextInfo!="object")throw TypeError(".bilibili.playershared.ButtonInfo.simpleTextInfo: object expected");l.simpleTextInfo=u.bilibili.playershared.TextInfo.fromObject(e.simpleTextInfo)}if(e.simpleBgColor!=null&&(l.simpleBgColor=String(e.simpleBgColor)),e.simpleBgColorNight!=null&&(l.simpleBgColorNight=String(e.simpleBgColorNight)),e.bgGradientColor!=null){if(typeof e.bgGradientColor!="object")throw TypeError(".bilibili.playershared.ButtonInfo.bgGradientColor: object expected");l.bgGradientColor=u.bilibili.playershared.GradientColor.fromObject(e.bgGradientColor)}if(e.orderReportParams){if(typeof e.orderReportParams!="object")throw TypeError(".bilibili.playershared.ButtonInfo.orderReportParams: object expected");l.orderReportParams={};for(let t=Object.keys(e.orderReportParams),i=0;i>>3){case 1:{i.taskType=e.string();break}case 2:{i.activityId=e.int64();break}case 3:{i.tipsId=e.int64();break}default:e.skipType(n&7);break}}return i},p.fromObject=function(e){if(e instanceof u.bilibili.playershared.TaskParam)return e;let l=new u.bilibili.playershared.TaskParam;return e.taskType!=null&&(l.taskType=String(e.taskType)),e.activityId!=null&&(r.Long?(l.activityId=r.Long.fromValue(e.activityId)).unsigned=!1:typeof e.activityId=="string"?l.activityId=parseInt(e.activityId,10):typeof e.activityId=="number"?l.activityId=e.activityId:typeof e.activityId=="object"&&(l.activityId=new r.LongBits(e.activityId.low>>>0,e.activityId.high>>>0).toNumber())),e.tipsId!=null&&(r.Long?(l.tipsId=r.Long.fromValue(e.tipsId)).unsigned=!1:typeof e.tipsId=="string"?l.tipsId=parseInt(e.tipsId,10):typeof e.tipsId=="number"?l.tipsId=e.tipsId:typeof e.tipsId=="object"&&(l.tipsId=new r.LongBits(e.tipsId.low>>>0,e.tipsId.high>>>0).toNumber())),l},p.toObject=function(e,l){l||(l={});let t={};if(l.defaults){if(t.taskType="",r.Long){let i=new r.Long(0,0,!1);t.activityId=l.longs===String?i.toString():l.longs===Number?i.toNumber():i}else t.activityId=l.longs===String?"0":0;if(r.Long){let i=new r.Long(0,0,!1);t.tipsId=l.longs===String?i.toString():l.longs===Number?i.toNumber():i}else t.tipsId=l.longs===String?"0":0}return e.taskType!=null&&e.hasOwnProperty("taskType")&&(t.taskType=e.taskType),e.activityId!=null&&e.hasOwnProperty("activityId")&&(typeof e.activityId=="number"?t.activityId=l.longs===String?String(e.activityId):e.activityId:t.activityId=l.longs===String?r.Long.prototype.toString.call(e.activityId):l.longs===Number?new r.LongBits(e.activityId.low>>>0,e.activityId.high>>>0).toNumber():e.activityId),e.tipsId!=null&&e.hasOwnProperty("tipsId")&&(typeof e.tipsId=="number"?t.tipsId=l.longs===String?String(e.tipsId):e.tipsId:t.tipsId=l.longs===String?r.Long.prototype.toString.call(e.tipsId):l.longs===Number?new r.LongBits(e.tipsId.low>>>0,e.tipsId.high>>>0).toNumber():e.tipsId),t},p.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},p.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/bilibili.playershared.TaskParam"},p}(),d.VideoVod=function(){function p(c){if(c)for(let e=Object.keys(c),l=0;l>>3){case 1:{i.aid=e.int64();break}case 2:{i.cid=e.int64();break}case 3:{i.qn=e.int64();break}case 4:{i.fnver=e.int32();break}case 5:{i.fnval=e.int32();break}case 6:{i.download=e.uint32();break}case 7:{i.forceHost=e.int32();break}case 8:{i.fourk=e.bool();break}case 9:{i.preferCodecType=e.int32();break}case 10:{i.voiceBalance=e.int64();break}default:e.skipType(n&7);break}}return i},p.fromObject=function(e){if(e instanceof u.bilibili.playershared.VideoVod)return e;let l=new u.bilibili.playershared.VideoVod;switch(e.aid!=null&&(r.Long?(l.aid=r.Long.fromValue(e.aid)).unsigned=!1:typeof e.aid=="string"?l.aid=parseInt(e.aid,10):typeof e.aid=="number"?l.aid=e.aid:typeof e.aid=="object"&&(l.aid=new r.LongBits(e.aid.low>>>0,e.aid.high>>>0).toNumber())),e.cid!=null&&(r.Long?(l.cid=r.Long.fromValue(e.cid)).unsigned=!1:typeof e.cid=="string"?l.cid=parseInt(e.cid,10):typeof e.cid=="number"?l.cid=e.cid:typeof e.cid=="object"&&(l.cid=new r.LongBits(e.cid.low>>>0,e.cid.high>>>0).toNumber())),e.qn!=null&&(r.Long?(l.qn=r.Long.fromValue(e.qn)).unsigned=!1:typeof e.qn=="string"?l.qn=parseInt(e.qn,10):typeof e.qn=="number"?l.qn=e.qn:typeof e.qn=="object"&&(l.qn=new r.LongBits(e.qn.low>>>0,e.qn.high>>>0).toNumber())),e.fnver!=null&&(l.fnver=e.fnver|0),e.fnval!=null&&(l.fnval=e.fnval|0),e.download!=null&&(l.download=e.download>>>0),e.forceHost!=null&&(l.forceHost=e.forceHost|0),e.fourk!=null&&(l.fourk=!!e.fourk),e.preferCodecType){default:if(typeof e.preferCodecType=="number"){l.preferCodecType=e.preferCodecType;break}break;case"NOCODE":case 0:l.preferCodecType=0;break;case"CODE264":case 1:l.preferCodecType=1;break;case"CODE265":case 2:l.preferCodecType=2;break;case"CODEAV1":case 3:l.preferCodecType=3;break}return e.voiceBalance!=null&&(r.Long?(l.voiceBalance=r.Long.fromValue(e.voiceBalance)).unsigned=!1:typeof e.voiceBalance=="string"?l.voiceBalance=parseInt(e.voiceBalance,10):typeof e.voiceBalance=="number"?l.voiceBalance=e.voiceBalance:typeof e.voiceBalance=="object"&&(l.voiceBalance=new r.LongBits(e.voiceBalance.low>>>0,e.voiceBalance.high>>>0).toNumber())),l},p.toObject=function(e,l){l||(l={});let t={};if(l.defaults){if(r.Long){let i=new r.Long(0,0,!1);t.aid=l.longs===String?i.toString():l.longs===Number?i.toNumber():i}else t.aid=l.longs===String?"0":0;if(r.Long){let i=new r.Long(0,0,!1);t.cid=l.longs===String?i.toString():l.longs===Number?i.toNumber():i}else t.cid=l.longs===String?"0":0;if(r.Long){let i=new r.Long(0,0,!1);t.qn=l.longs===String?i.toString():l.longs===Number?i.toNumber():i}else t.qn=l.longs===String?"0":0;if(t.fnver=0,t.fnval=0,t.download=0,t.forceHost=0,t.fourk=!1,t.preferCodecType=l.enums===String?"NOCODE":0,r.Long){let i=new r.Long(0,0,!1);t.voiceBalance=l.longs===String?i.toString():l.longs===Number?i.toNumber():i}else t.voiceBalance=l.longs===String?"0":0}return e.aid!=null&&e.hasOwnProperty("aid")&&(typeof e.aid=="number"?t.aid=l.longs===String?String(e.aid):e.aid:t.aid=l.longs===String?r.Long.prototype.toString.call(e.aid):l.longs===Number?new r.LongBits(e.aid.low>>>0,e.aid.high>>>0).toNumber():e.aid),e.cid!=null&&e.hasOwnProperty("cid")&&(typeof e.cid=="number"?t.cid=l.longs===String?String(e.cid):e.cid:t.cid=l.longs===String?r.Long.prototype.toString.call(e.cid):l.longs===Number?new r.LongBits(e.cid.low>>>0,e.cid.high>>>0).toNumber():e.cid),e.qn!=null&&e.hasOwnProperty("qn")&&(typeof e.qn=="number"?t.qn=l.longs===String?String(e.qn):e.qn:t.qn=l.longs===String?r.Long.prototype.toString.call(e.qn):l.longs===Number?new r.LongBits(e.qn.low>>>0,e.qn.high>>>0).toNumber():e.qn),e.fnver!=null&&e.hasOwnProperty("fnver")&&(t.fnver=e.fnver),e.fnval!=null&&e.hasOwnProperty("fnval")&&(t.fnval=e.fnval),e.download!=null&&e.hasOwnProperty("download")&&(t.download=e.download),e.forceHost!=null&&e.hasOwnProperty("forceHost")&&(t.forceHost=e.forceHost),e.fourk!=null&&e.hasOwnProperty("fourk")&&(t.fourk=e.fourk),e.preferCodecType!=null&&e.hasOwnProperty("preferCodecType")&&(t.preferCodecType=l.enums===String?u.bilibili.playershared.CodeType[e.preferCodecType]===void 0?e.preferCodecType:u.bilibili.playershared.CodeType[e.preferCodecType]:e.preferCodecType),e.voiceBalance!=null&&e.hasOwnProperty("voiceBalance")&&(typeof e.voiceBalance=="number"?t.voiceBalance=l.longs===String?String(e.voiceBalance):e.voiceBalance:t.voiceBalance=l.longs===String?r.Long.prototype.toString.call(e.voiceBalance):l.longs===Number?new r.LongBits(e.voiceBalance.low>>>0,e.voiceBalance.high>>>0).toNumber():e.voiceBalance),t},p.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},p.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/bilibili.playershared.VideoVod"},p}(),d.CodeType=function(){let p={},c=Object.create(p);return c[p[0]="NOCODE"]=0,c[p[1]="CODE264"]=1,c[p[2]="CODE265"]=2,c[p[3]="CODEAV1"]=3,c}(),d.VodInfo=function(){function p(c){if(this.streamList=[],this.dashAudio=[],c)for(let e=Object.keys(c),l=0;l>>3){case 1:{i.quality=e.uint32();break}case 2:{i.format=e.string();break}case 3:{i.timelength=e.uint64();break}case 4:{i.videoCodecid=e.uint32();break}case 5:{i.streamList&&i.streamList.length||(i.streamList=[]),i.streamList.push(u.bilibili.playershared.Stream.decode(e,e.uint32()));break}case 6:{i.dashAudio&&i.dashAudio.length||(i.dashAudio=[]),i.dashAudio.push(u.bilibili.playershared.DashItem.decode(e,e.uint32()));break}case 7:{i.dolby=u.bilibili.playershared.DolbyItem.decode(e,e.uint32());break}case 8:{i.volume=u.bilibili.playershared.VolumeInfo.decode(e,e.uint32());break}case 9:{i.lossLessItem=u.bilibili.playershared.LossLessItem.decode(e,e.uint32());break}case 10:{i.supportProject=e.bool();break}default:e.skipType(n&7);break}}return i},p.fromObject=function(e){if(e instanceof u.bilibili.playershared.VodInfo)return e;let l=new u.bilibili.playershared.VodInfo;if(e.quality!=null&&(l.quality=e.quality>>>0),e.format!=null&&(l.format=String(e.format)),e.timelength!=null&&(r.Long?(l.timelength=r.Long.fromValue(e.timelength)).unsigned=!0:typeof e.timelength=="string"?l.timelength=parseInt(e.timelength,10):typeof e.timelength=="number"?l.timelength=e.timelength:typeof e.timelength=="object"&&(l.timelength=new r.LongBits(e.timelength.low>>>0,e.timelength.high>>>0).toNumber(!0))),e.videoCodecid!=null&&(l.videoCodecid=e.videoCodecid>>>0),e.streamList){if(!Array.isArray(e.streamList))throw TypeError(".bilibili.playershared.VodInfo.streamList: array expected");l.streamList=[];for(let t=0;t>>0,e.timelength.high>>>0).toNumber(!0):e.timelength),e.videoCodecid!=null&&e.hasOwnProperty("videoCodecid")&&(t.videoCodecid=e.videoCodecid),e.streamList&&e.streamList.length){t.streamList=[];for(let i=0;i>>3){case 1:{i.videos&&i.videos.length||(i.videos=[]),i.videos.push(u.bilibili.playershared.FragmentVideoInfo.decode(e,e.uint32()));break}default:e.skipType(n&7);break}}return i},p.fromObject=function(e){if(e instanceof u.bilibili.playershared.FragmentVideo)return e;let l=new u.bilibili.playershared.FragmentVideo;if(e.videos){if(!Array.isArray(e.videos))throw TypeError(".bilibili.playershared.FragmentVideo.videos: array expected");l.videos=[];for(let t=0;t>>3){case 1:{i.fragmentInfo=u.bilibili.playershared.FragmentInfo.decode(e,e.uint32());break}case 2:{i.vodInfo=u.bilibili.playershared.VodInfo.decode(e,e.uint32());break}case 3:{i.playArcConf=u.bilibili.playershared.PlayArcConf.decode(e,e.uint32());break}case 4:{i.dimension=u.bilibili.playershared.Dimension.decode(e,e.uint32());break}case 5:{i.timelength=e.uint64();break}case 6:{i.videoType=e.int32();break}case 7:{i.playableStatus=e.bool();break}default:e.skipType(n&7);break}}return i},p.fromObject=function(e){if(e instanceof u.bilibili.playershared.FragmentVideoInfo)return e;let l=new u.bilibili.playershared.FragmentVideoInfo;if(e.fragmentInfo!=null){if(typeof e.fragmentInfo!="object")throw TypeError(".bilibili.playershared.FragmentVideoInfo.fragmentInfo: object expected");l.fragmentInfo=u.bilibili.playershared.FragmentInfo.fromObject(e.fragmentInfo)}if(e.vodInfo!=null){if(typeof e.vodInfo!="object")throw TypeError(".bilibili.playershared.FragmentVideoInfo.vodInfo: object expected");l.vodInfo=u.bilibili.playershared.VodInfo.fromObject(e.vodInfo)}if(e.playArcConf!=null){if(typeof e.playArcConf!="object")throw TypeError(".bilibili.playershared.FragmentVideoInfo.playArcConf: object expected");l.playArcConf=u.bilibili.playershared.PlayArcConf.fromObject(e.playArcConf)}if(e.dimension!=null){if(typeof e.dimension!="object")throw TypeError(".bilibili.playershared.FragmentVideoInfo.dimension: object expected");l.dimension=u.bilibili.playershared.Dimension.fromObject(e.dimension)}switch(e.timelength!=null&&(r.Long?(l.timelength=r.Long.fromValue(e.timelength)).unsigned=!0:typeof e.timelength=="string"?l.timelength=parseInt(e.timelength,10):typeof e.timelength=="number"?l.timelength=e.timelength:typeof e.timelength=="object"&&(l.timelength=new r.LongBits(e.timelength.low>>>0,e.timelength.high>>>0).toNumber(!0))),e.videoType){default:if(typeof e.videoType=="number"){l.videoType=e.videoType;break}break;case"BIZ_TYPE_UNKNOWN":case 0:l.videoType=0;break;case"BIZ_TYPE_UGC":case 1:l.videoType=1;break;case"BIZ_TYPE_PGC":case 2:l.videoType=2;break;case"BIZ_TYPE_PUGV":case 3:l.videoType=3;break}return e.playableStatus!=null&&(l.playableStatus=!!e.playableStatus),l},p.toObject=function(e,l){l||(l={});let t={};if(l.defaults){if(t.fragmentInfo=null,t.vodInfo=null,t.playArcConf=null,t.dimension=null,r.Long){let i=new r.Long(0,0,!0);t.timelength=l.longs===String?i.toString():l.longs===Number?i.toNumber():i}else t.timelength=l.longs===String?"0":0;t.videoType=l.enums===String?"BIZ_TYPE_UNKNOWN":0,t.playableStatus=!1}return e.fragmentInfo!=null&&e.hasOwnProperty("fragmentInfo")&&(t.fragmentInfo=u.bilibili.playershared.FragmentInfo.toObject(e.fragmentInfo,l)),e.vodInfo!=null&&e.hasOwnProperty("vodInfo")&&(t.vodInfo=u.bilibili.playershared.VodInfo.toObject(e.vodInfo,l)),e.playArcConf!=null&&e.hasOwnProperty("playArcConf")&&(t.playArcConf=u.bilibili.playershared.PlayArcConf.toObject(e.playArcConf,l)),e.dimension!=null&&e.hasOwnProperty("dimension")&&(t.dimension=u.bilibili.playershared.Dimension.toObject(e.dimension,l)),e.timelength!=null&&e.hasOwnProperty("timelength")&&(typeof e.timelength=="number"?t.timelength=l.longs===String?String(e.timelength):e.timelength:t.timelength=l.longs===String?r.Long.prototype.toString.call(e.timelength):l.longs===Number?new r.LongBits(e.timelength.low>>>0,e.timelength.high>>>0).toNumber(!0):e.timelength),e.videoType!=null&&e.hasOwnProperty("videoType")&&(t.videoType=l.enums===String?u.bilibili.playershared.BizType[e.videoType]===void 0?e.videoType:u.bilibili.playershared.BizType[e.videoType]:e.videoType),e.playableStatus!=null&&e.hasOwnProperty("playableStatus")&&(t.playableStatus=e.playableStatus),t},p.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},p.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/bilibili.playershared.FragmentVideoInfo"},p}(),d.LossLessItem=function(){function p(c){if(c)for(let e=Object.keys(c),l=0;l>>3){case 1:{i.isLosslessAudio=e.bool();break}case 2:{i.audio=u.bilibili.playershared.DashItem.decode(e,e.uint32());break}case 3:{i.needVip=e.bool();break}default:e.skipType(n&7);break}}return i},p.fromObject=function(e){if(e instanceof u.bilibili.playershared.LossLessItem)return e;let l=new u.bilibili.playershared.LossLessItem;if(e.isLosslessAudio!=null&&(l.isLosslessAudio=!!e.isLosslessAudio),e.audio!=null){if(typeof e.audio!="object")throw TypeError(".bilibili.playershared.LossLessItem.audio: object expected");l.audio=u.bilibili.playershared.DashItem.fromObject(e.audio)}return e.needVip!=null&&(l.needVip=!!e.needVip),l},p.toObject=function(e,l){l||(l={});let t={};return l.defaults&&(t.isLosslessAudio=!1,t.audio=null,t.needVip=!1),e.isLosslessAudio!=null&&e.hasOwnProperty("isLosslessAudio")&&(t.isLosslessAudio=e.isLosslessAudio),e.audio!=null&&e.hasOwnProperty("audio")&&(t.audio=u.bilibili.playershared.DashItem.toObject(e.audio,l)),e.needVip!=null&&e.hasOwnProperty("needVip")&&(t.needVip=e.needVip),t},p.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},p.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/bilibili.playershared.LossLessItem"},p}(),d.VolumeInfo=function(){function p(c){if(c)for(let e=Object.keys(c),l=0;l>>3){case 1:{i.measuredI=e.double();break}case 2:{i.measuredLra=e.double();break}case 3:{i.measuredTp=e.double();break}case 4:{i.measuredThreshold=e.double();break}case 5:{i.targetOffset=e.double();break}case 6:{i.targetI=e.double();break}case 7:{i.targetTp=e.double();break}default:e.skipType(n&7);break}}return i},p.fromObject=function(e){if(e instanceof u.bilibili.playershared.VolumeInfo)return e;let l=new u.bilibili.playershared.VolumeInfo;return e.measuredI!=null&&(l.measuredI=Number(e.measuredI)),e.measuredLra!=null&&(l.measuredLra=Number(e.measuredLra)),e.measuredTp!=null&&(l.measuredTp=Number(e.measuredTp)),e.measuredThreshold!=null&&(l.measuredThreshold=Number(e.measuredThreshold)),e.targetOffset!=null&&(l.targetOffset=Number(e.targetOffset)),e.targetI!=null&&(l.targetI=Number(e.targetI)),e.targetTp!=null&&(l.targetTp=Number(e.targetTp)),l},p.toObject=function(e,l){l||(l={});let t={};return l.defaults&&(t.measuredI=0,t.measuredLra=0,t.measuredTp=0,t.measuredThreshold=0,t.targetOffset=0,t.targetI=0,t.targetTp=0),e.measuredI!=null&&e.hasOwnProperty("measuredI")&&(t.measuredI=l.json&&!isFinite(e.measuredI)?String(e.measuredI):e.measuredI),e.measuredLra!=null&&e.hasOwnProperty("measuredLra")&&(t.measuredLra=l.json&&!isFinite(e.measuredLra)?String(e.measuredLra):e.measuredLra),e.measuredTp!=null&&e.hasOwnProperty("measuredTp")&&(t.measuredTp=l.json&&!isFinite(e.measuredTp)?String(e.measuredTp):e.measuredTp),e.measuredThreshold!=null&&e.hasOwnProperty("measuredThreshold")&&(t.measuredThreshold=l.json&&!isFinite(e.measuredThreshold)?String(e.measuredThreshold):e.measuredThreshold),e.targetOffset!=null&&e.hasOwnProperty("targetOffset")&&(t.targetOffset=l.json&&!isFinite(e.targetOffset)?String(e.targetOffset):e.targetOffset),e.targetI!=null&&e.hasOwnProperty("targetI")&&(t.targetI=l.json&&!isFinite(e.targetI)?String(e.targetI):e.targetI),e.targetTp!=null&&e.hasOwnProperty("targetTp")&&(t.targetTp=l.json&&!isFinite(e.targetTp)?String(e.targetTp):e.targetTp),t},p.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},p.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/bilibili.playershared.VolumeInfo"},p}(),d.DolbyItem=function(){function p(c){if(this.audio=[],c)for(let e=Object.keys(c),l=0;l>>3){case 1:{i.type=e.int32();break}case 2:{i.audio&&i.audio.length||(i.audio=[]),i.audio.push(u.bilibili.playershared.DashItem.decode(e,e.uint32()));break}default:e.skipType(n&7);break}}return i},p.fromObject=function(e){if(e instanceof u.bilibili.playershared.DolbyItem)return e;let l=new u.bilibili.playershared.DolbyItem;switch(e.type){default:if(typeof e.type=="number"){l.type=e.type;break}break;case"NONE":case 0:l.type=0;break;case"COMMON":case 1:l.type=1;break;case"ATMOS":case 2:l.type=2;break}if(e.audio){if(!Array.isArray(e.audio))throw TypeError(".bilibili.playershared.DolbyItem.audio: array expected");l.audio=[];for(let t=0;t>>3){case 1:{n.streamInfo=u.bilibili.playershared.StreamInfo.decode(l,l.uint32());break}case 2:{n.dashVideo=u.bilibili.playershared.DashVideo.decode(l,l.uint32());break}case 3:{n.segmentVideo=u.bilibili.playershared.SegmentVideo.decode(l,l.uint32());break}default:l.skipType(o&7);break}}return n},p.fromObject=function(l){if(l instanceof u.bilibili.playershared.Stream)return l;let t=new u.bilibili.playershared.Stream;if(l.streamInfo!=null){if(typeof l.streamInfo!="object")throw TypeError(".bilibili.playershared.Stream.streamInfo: object expected");t.streamInfo=u.bilibili.playershared.StreamInfo.fromObject(l.streamInfo)}if(l.dashVideo!=null){if(typeof l.dashVideo!="object")throw TypeError(".bilibili.playershared.Stream.dashVideo: object expected");t.dashVideo=u.bilibili.playershared.DashVideo.fromObject(l.dashVideo)}if(l.segmentVideo!=null){if(typeof l.segmentVideo!="object")throw TypeError(".bilibili.playershared.Stream.segmentVideo: object expected");t.segmentVideo=u.bilibili.playershared.SegmentVideo.fromObject(l.segmentVideo)}return t},p.toObject=function(l,t){t||(t={});let i={};return t.defaults&&(i.streamInfo=null),l.streamInfo!=null&&l.hasOwnProperty("streamInfo")&&(i.streamInfo=u.bilibili.playershared.StreamInfo.toObject(l.streamInfo,t)),l.dashVideo!=null&&l.hasOwnProperty("dashVideo")&&(i.dashVideo=u.bilibili.playershared.DashVideo.toObject(l.dashVideo,t),t.oneofs&&(i.content="dashVideo")),l.segmentVideo!=null&&l.hasOwnProperty("segmentVideo")&&(i.segmentVideo=u.bilibili.playershared.SegmentVideo.toObject(l.segmentVideo,t),t.oneofs&&(i.content="segmentVideo")),i},p.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},p.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.playershared.Stream"},p}(),d.SegmentVideo=function(){function p(c){if(this.segment=[],c)for(let e=Object.keys(c),l=0;l>>3){case 1:{i.segment&&i.segment.length||(i.segment=[]),i.segment.push(u.bilibili.playershared.ResponseUrl.decode(e,e.uint32()));break}default:e.skipType(n&7);break}}return i},p.fromObject=function(e){if(e instanceof u.bilibili.playershared.SegmentVideo)return e;let l=new u.bilibili.playershared.SegmentVideo;if(e.segment){if(!Array.isArray(e.segment))throw TypeError(".bilibili.playershared.SegmentVideo.segment: array expected");l.segment=[];for(let t=0;t>>3){case 1:{i.quality=e.uint32();break}case 2:{i.format=e.string();break}case 3:{i.description=e.string();break}case 4:{i.errCode=e.int32();break}case 5:{i.limit=u.bilibili.playershared.StreamLimit.decode(e,e.uint32());break}case 6:{i.needVip=e.bool();break}case 7:{i.needLogin=e.bool();break}case 8:{i.intact=e.bool();break}case 9:{i.noRexcode=e.bool();break}case 10:{i.attribute=e.int64();break}case 11:{i.newDescription=e.string();break}case 12:{i.displayDesc=e.string();break}case 13:{i.superscript=e.string();break}case 14:{i.vipFree=e.bool();break}case 15:{i.subtitle=e.string();break}case 16:{i.scheme=u.bilibili.playershared.Scheme.decode(e,e.uint32());break}case 17:{i.supportDrm=e.bool();break}default:e.skipType(n&7);break}}return i},p.fromObject=function(e){if(e instanceof u.bilibili.playershared.StreamInfo)return e;let l=new u.bilibili.playershared.StreamInfo;switch(e.quality!=null&&(l.quality=e.quality>>>0),e.format!=null&&(l.format=String(e.format)),e.description!=null&&(l.description=String(e.description)),e.errCode){default:if(typeof e.errCode=="number"){l.errCode=e.errCode;break}break;case"NoErr":case 0:l.errCode=0;break;case"WithMultiDeviceLoginErr":case 1:l.errCode=1;break}if(e.limit!=null){if(typeof e.limit!="object")throw TypeError(".bilibili.playershared.StreamInfo.limit: object expected");l.limit=u.bilibili.playershared.StreamLimit.fromObject(e.limit)}if(e.needVip!=null&&(l.needVip=!!e.needVip),e.needLogin!=null&&(l.needLogin=!!e.needLogin),e.intact!=null&&(l.intact=!!e.intact),e.noRexcode!=null&&(l.noRexcode=!!e.noRexcode),e.attribute!=null&&(r.Long?(l.attribute=r.Long.fromValue(e.attribute)).unsigned=!1:typeof e.attribute=="string"?l.attribute=parseInt(e.attribute,10):typeof e.attribute=="number"?l.attribute=e.attribute:typeof e.attribute=="object"&&(l.attribute=new r.LongBits(e.attribute.low>>>0,e.attribute.high>>>0).toNumber())),e.newDescription!=null&&(l.newDescription=String(e.newDescription)),e.displayDesc!=null&&(l.displayDesc=String(e.displayDesc)),e.superscript!=null&&(l.superscript=String(e.superscript)),e.vipFree!=null&&(l.vipFree=!!e.vipFree),e.subtitle!=null&&(l.subtitle=String(e.subtitle)),e.scheme!=null){if(typeof e.scheme!="object")throw TypeError(".bilibili.playershared.StreamInfo.scheme: object expected");l.scheme=u.bilibili.playershared.Scheme.fromObject(e.scheme)}return e.supportDrm!=null&&(l.supportDrm=!!e.supportDrm),l},p.toObject=function(e,l){l||(l={});let t={};if(l.defaults){if(t.quality=0,t.format="",t.description="",t.errCode=l.enums===String?"NoErr":0,t.limit=null,t.needVip=!1,t.needLogin=!1,t.intact=!1,t.noRexcode=!1,r.Long){let i=new r.Long(0,0,!1);t.attribute=l.longs===String?i.toString():l.longs===Number?i.toNumber():i}else t.attribute=l.longs===String?"0":0;t.newDescription="",t.displayDesc="",t.superscript="",t.vipFree=!1,t.subtitle="",t.scheme=null,t.supportDrm=!1}return e.quality!=null&&e.hasOwnProperty("quality")&&(t.quality=e.quality),e.format!=null&&e.hasOwnProperty("format")&&(t.format=e.format),e.description!=null&&e.hasOwnProperty("description")&&(t.description=e.description),e.errCode!=null&&e.hasOwnProperty("errCode")&&(t.errCode=l.enums===String?u.bilibili.playershared.PlayErr[e.errCode]===void 0?e.errCode:u.bilibili.playershared.PlayErr[e.errCode]:e.errCode),e.limit!=null&&e.hasOwnProperty("limit")&&(t.limit=u.bilibili.playershared.StreamLimit.toObject(e.limit,l)),e.needVip!=null&&e.hasOwnProperty("needVip")&&(t.needVip=e.needVip),e.needLogin!=null&&e.hasOwnProperty("needLogin")&&(t.needLogin=e.needLogin),e.intact!=null&&e.hasOwnProperty("intact")&&(t.intact=e.intact),e.noRexcode!=null&&e.hasOwnProperty("noRexcode")&&(t.noRexcode=e.noRexcode),e.attribute!=null&&e.hasOwnProperty("attribute")&&(typeof e.attribute=="number"?t.attribute=l.longs===String?String(e.attribute):e.attribute:t.attribute=l.longs===String?r.Long.prototype.toString.call(e.attribute):l.longs===Number?new r.LongBits(e.attribute.low>>>0,e.attribute.high>>>0).toNumber():e.attribute),e.newDescription!=null&&e.hasOwnProperty("newDescription")&&(t.newDescription=e.newDescription),e.displayDesc!=null&&e.hasOwnProperty("displayDesc")&&(t.displayDesc=e.displayDesc),e.superscript!=null&&e.hasOwnProperty("superscript")&&(t.superscript=e.superscript),e.vipFree!=null&&e.hasOwnProperty("vipFree")&&(t.vipFree=e.vipFree),e.subtitle!=null&&e.hasOwnProperty("subtitle")&&(t.subtitle=e.subtitle),e.scheme!=null&&e.hasOwnProperty("scheme")&&(t.scheme=u.bilibili.playershared.Scheme.toObject(e.scheme,l)),e.supportDrm!=null&&e.hasOwnProperty("supportDrm")&&(t.supportDrm=e.supportDrm),t},p.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},p.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/bilibili.playershared.StreamInfo"},p}(),d.Scheme=function(){function p(c){if(c)for(let e=Object.keys(c),l=0;l>>3){case 1:{i.actionType=e.int32();break}case 2:{i.toast=e.string();break}default:e.skipType(n&7);break}}return i},p.fromObject=function(e){if(e instanceof u.bilibili.playershared.Scheme)return e;let l=new u.bilibili.playershared.Scheme;switch(e.actionType){default:if(typeof e.actionType=="number"){l.actionType=e.actionType;break}break;case"UNKNOWN":case 0:l.actionType=0;break;case"SHOW_TOAST":case 1:l.actionType=1;break}return e.toast!=null&&(l.toast=String(e.toast)),l},p.toObject=function(e,l){l||(l={});let t={};return l.defaults&&(t.actionType=l.enums===String?"UNKNOWN":0,t.toast=""),e.actionType!=null&&e.hasOwnProperty("actionType")&&(t.actionType=l.enums===String?u.bilibili.playershared.Scheme.ActionType[e.actionType]===void 0?e.actionType:u.bilibili.playershared.Scheme.ActionType[e.actionType]:e.actionType),e.toast!=null&&e.hasOwnProperty("toast")&&(t.toast=e.toast),t},p.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},p.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/bilibili.playershared.Scheme"},p.ActionType=function(){let c={},e=Object.create(c);return e[c[0]="UNKNOWN"]=0,e[c[1]="SHOW_TOAST"]=1,e}(),p}(),d.StreamLimit=function(){function p(c){if(c)for(let e=Object.keys(c),l=0;l>>3){case 1:{i.title=e.string();break}case 2:{i.uri=e.string();break}case 3:{i.msg=e.string();break}default:e.skipType(n&7);break}}return i},p.fromObject=function(e){if(e instanceof u.bilibili.playershared.StreamLimit)return e;let l=new u.bilibili.playershared.StreamLimit;return e.title!=null&&(l.title=String(e.title)),e.uri!=null&&(l.uri=String(e.uri)),e.msg!=null&&(l.msg=String(e.msg)),l},p.toObject=function(e,l){l||(l={});let t={};return l.defaults&&(t.title="",t.uri="",t.msg=""),e.title!=null&&e.hasOwnProperty("title")&&(t.title=e.title),e.uri!=null&&e.hasOwnProperty("uri")&&(t.uri=e.uri),e.msg!=null&&e.hasOwnProperty("msg")&&(t.msg=e.msg),t},p.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},p.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/bilibili.playershared.StreamLimit"},p}(),d.DashVideo=function(){function p(c){if(this.backupUrl=[],c)for(let e=Object.keys(c),l=0;l>>3){case 1:{i.baseUrl=e.string();break}case 2:{i.backupUrl&&i.backupUrl.length||(i.backupUrl=[]),i.backupUrl.push(e.string());break}case 3:{i.bandwidth=e.uint32();break}case 4:{i.codecid=e.uint32();break}case 5:{i.md5=e.string();break}case 6:{i.size=e.uint64();break}case 7:{i.audioId=e.uint32();break}case 8:{i.noRexcode=e.bool();break}case 9:{i.frameRate=e.string();break}case 10:{i.width=e.uint32();break}case 11:{i.height=e.uint32();break}case 12:{i.widevinePssh=e.string();break}default:e.skipType(n&7);break}}return i},p.fromObject=function(e){if(e instanceof u.bilibili.playershared.DashVideo)return e;let l=new u.bilibili.playershared.DashVideo;if(e.baseUrl!=null&&(l.baseUrl=String(e.baseUrl)),e.backupUrl){if(!Array.isArray(e.backupUrl))throw TypeError(".bilibili.playershared.DashVideo.backupUrl: array expected");l.backupUrl=[];for(let t=0;t>>0),e.codecid!=null&&(l.codecid=e.codecid>>>0),e.md5!=null&&(l.md5=String(e.md5)),e.size!=null&&(r.Long?(l.size=r.Long.fromValue(e.size)).unsigned=!0:typeof e.size=="string"?l.size=parseInt(e.size,10):typeof e.size=="number"?l.size=e.size:typeof e.size=="object"&&(l.size=new r.LongBits(e.size.low>>>0,e.size.high>>>0).toNumber(!0))),e.audioId!=null&&(l.audioId=e.audioId>>>0),e.noRexcode!=null&&(l.noRexcode=!!e.noRexcode),e.frameRate!=null&&(l.frameRate=String(e.frameRate)),e.width!=null&&(l.width=e.width>>>0),e.height!=null&&(l.height=e.height>>>0),e.widevinePssh!=null&&(l.widevinePssh=String(e.widevinePssh)),l},p.toObject=function(e,l){l||(l={});let t={};if((l.arrays||l.defaults)&&(t.backupUrl=[]),l.defaults){if(t.baseUrl="",t.bandwidth=0,t.codecid=0,t.md5="",r.Long){let i=new r.Long(0,0,!0);t.size=l.longs===String?i.toString():l.longs===Number?i.toNumber():i}else t.size=l.longs===String?"0":0;t.audioId=0,t.noRexcode=!1,t.frameRate="",t.width=0,t.height=0,t.widevinePssh=""}if(e.baseUrl!=null&&e.hasOwnProperty("baseUrl")&&(t.baseUrl=e.baseUrl),e.backupUrl&&e.backupUrl.length){t.backupUrl=[];for(let i=0;i>>0,e.size.high>>>0).toNumber(!0):e.size),e.audioId!=null&&e.hasOwnProperty("audioId")&&(t.audioId=e.audioId),e.noRexcode!=null&&e.hasOwnProperty("noRexcode")&&(t.noRexcode=e.noRexcode),e.frameRate!=null&&e.hasOwnProperty("frameRate")&&(t.frameRate=e.frameRate),e.width!=null&&e.hasOwnProperty("width")&&(t.width=e.width),e.height!=null&&e.hasOwnProperty("height")&&(t.height=e.height),e.widevinePssh!=null&&e.hasOwnProperty("widevinePssh")&&(t.widevinePssh=e.widevinePssh),t},p.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},p.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/bilibili.playershared.DashVideo"},p}(),d.ResponseDash=function(){function p(c){if(this.video=[],this.audio=[],c)for(let e=Object.keys(c),l=0;l>>3){case 1:{i.video&&i.video.length||(i.video=[]),i.video.push(u.bilibili.playershared.DashItem.decode(e,e.uint32()));break}case 2:{i.audio&&i.audio.length||(i.audio=[]),i.audio.push(u.bilibili.playershared.DashItem.decode(e,e.uint32()));break}default:e.skipType(n&7);break}}return i},p.fromObject=function(e){if(e instanceof u.bilibili.playershared.ResponseDash)return e;let l=new u.bilibili.playershared.ResponseDash;if(e.video){if(!Array.isArray(e.video))throw TypeError(".bilibili.playershared.ResponseDash.video: array expected");l.video=[];for(let t=0;t>>3){case 1:{i.id=e.uint32();break}case 2:{i.baseUrl=e.string();break}case 3:{i.backupUrl&&i.backupUrl.length||(i.backupUrl=[]),i.backupUrl.push(e.string());break}case 4:{i.bandwidth=e.uint32();break}case 5:{i.codecid=e.uint32();break}case 6:{i.md5=e.string();break}case 7:{i.size=e.uint64();break}case 8:{i.frameRate=e.string();break}case 9:{i.widevinePssh=e.string();break}default:e.skipType(n&7);break}}return i},p.fromObject=function(e){if(e instanceof u.bilibili.playershared.DashItem)return e;let l=new u.bilibili.playershared.DashItem;if(e.id!=null&&(l.id=e.id>>>0),e.baseUrl!=null&&(l.baseUrl=String(e.baseUrl)),e.backupUrl){if(!Array.isArray(e.backupUrl))throw TypeError(".bilibili.playershared.DashItem.backupUrl: array expected");l.backupUrl=[];for(let t=0;t>>0),e.codecid!=null&&(l.codecid=e.codecid>>>0),e.md5!=null&&(l.md5=String(e.md5)),e.size!=null&&(r.Long?(l.size=r.Long.fromValue(e.size)).unsigned=!0:typeof e.size=="string"?l.size=parseInt(e.size,10):typeof e.size=="number"?l.size=e.size:typeof e.size=="object"&&(l.size=new r.LongBits(e.size.low>>>0,e.size.high>>>0).toNumber(!0))),e.frameRate!=null&&(l.frameRate=String(e.frameRate)),e.widevinePssh!=null&&(l.widevinePssh=String(e.widevinePssh)),l},p.toObject=function(e,l){l||(l={});let t={};if((l.arrays||l.defaults)&&(t.backupUrl=[]),l.defaults){if(t.id=0,t.baseUrl="",t.bandwidth=0,t.codecid=0,t.md5="",r.Long){let i=new r.Long(0,0,!0);t.size=l.longs===String?i.toString():l.longs===Number?i.toNumber():i}else t.size=l.longs===String?"0":0;t.frameRate="",t.widevinePssh=""}if(e.id!=null&&e.hasOwnProperty("id")&&(t.id=e.id),e.baseUrl!=null&&e.hasOwnProperty("baseUrl")&&(t.baseUrl=e.baseUrl),e.backupUrl&&e.backupUrl.length){t.backupUrl=[];for(let i=0;i>>0,e.size.high>>>0).toNumber(!0):e.size),e.frameRate!=null&&e.hasOwnProperty("frameRate")&&(t.frameRate=e.frameRate),e.widevinePssh!=null&&e.hasOwnProperty("widevinePssh")&&(t.widevinePssh=e.widevinePssh),t},p.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},p.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/bilibili.playershared.DashItem"},p}(),d.ResponseUrl=function(){function p(c){if(this.backupUrl=[],c)for(let e=Object.keys(c),l=0;l>>3){case 1:{i.order=e.uint32();break}case 2:{i.length=e.uint64();break}case 3:{i.size=e.uint64();break}case 4:{i.url=e.string();break}case 5:{i.backupUrl&&i.backupUrl.length||(i.backupUrl=[]),i.backupUrl.push(e.string());break}case 6:{i.md5=e.string();break}default:e.skipType(n&7);break}}return i},p.fromObject=function(e){if(e instanceof u.bilibili.playershared.ResponseUrl)return e;let l=new u.bilibili.playershared.ResponseUrl;if(e.order!=null&&(l.order=e.order>>>0),e.length!=null&&(r.Long?(l.length=r.Long.fromValue(e.length)).unsigned=!0:typeof e.length=="string"?l.length=parseInt(e.length,10):typeof e.length=="number"?l.length=e.length:typeof e.length=="object"&&(l.length=new r.LongBits(e.length.low>>>0,e.length.high>>>0).toNumber(!0))),e.size!=null&&(r.Long?(l.size=r.Long.fromValue(e.size)).unsigned=!0:typeof e.size=="string"?l.size=parseInt(e.size,10):typeof e.size=="number"?l.size=e.size:typeof e.size=="object"&&(l.size=new r.LongBits(e.size.low>>>0,e.size.high>>>0).toNumber(!0))),e.url!=null&&(l.url=String(e.url)),e.backupUrl){if(!Array.isArray(e.backupUrl))throw TypeError(".bilibili.playershared.ResponseUrl.backupUrl: array expected");l.backupUrl=[];for(let t=0;t>>0,e.length.high>>>0).toNumber(!0):e.length),e.size!=null&&e.hasOwnProperty("size")&&(typeof e.size=="number"?t.size=l.longs===String?String(e.size):e.size:t.size=l.longs===String?r.Long.prototype.toString.call(e.size):l.longs===Number?new r.LongBits(e.size.low>>>0,e.size.high>>>0).toNumber(!0):e.size),e.url!=null&&e.hasOwnProperty("url")&&(t.url=e.url),e.backupUrl&&e.backupUrl.length){t.backupUrl=[];for(let i=0;i>>3){case 1:{i.videoType=e.int32();break}case 2:{i.aid=e.int64();break}case 3:{i.cid=e.int64();break}case 4:{i.drmTechType=e.int32();break}case 5:{i.arcType=e.int32();break}case 6:{i.interaction=u.bilibili.playershared.Interaction.decode(e,e.uint32());break}case 7:{i.dimension=u.bilibili.playershared.Dimension.decode(e,e.uint32());break}case 8:{i.duration=e.int64();break}case 9:{i.isPreview=e.bool();break}case 10:{i.watchTimeLength=e.uint64();break}case 11:{i.durationMs=e.uint64();break}default:e.skipType(n&7);break}}return i},p.fromObject=function(e){if(e instanceof u.bilibili.playershared.PlayArc)return e;let l=new u.bilibili.playershared.PlayArc;switch(e.videoType){default:if(typeof e.videoType=="number"){l.videoType=e.videoType;break}break;case"BIZ_TYPE_UNKNOWN":case 0:l.videoType=0;break;case"BIZ_TYPE_UGC":case 1:l.videoType=1;break;case"BIZ_TYPE_PGC":case 2:l.videoType=2;break;case"BIZ_TYPE_PUGV":case 3:l.videoType=3;break}switch(e.aid!=null&&(r.Long?(l.aid=r.Long.fromValue(e.aid)).unsigned=!1:typeof e.aid=="string"?l.aid=parseInt(e.aid,10):typeof e.aid=="number"?l.aid=e.aid:typeof e.aid=="object"&&(l.aid=new r.LongBits(e.aid.low>>>0,e.aid.high>>>0).toNumber())),e.cid!=null&&(r.Long?(l.cid=r.Long.fromValue(e.cid)).unsigned=!1:typeof e.cid=="string"?l.cid=parseInt(e.cid,10):typeof e.cid=="number"?l.cid=e.cid:typeof e.cid=="object"&&(l.cid=new r.LongBits(e.cid.low>>>0,e.cid.high>>>0).toNumber())),e.drmTechType){default:if(typeof e.drmTechType=="number"){l.drmTechType=e.drmTechType;break}break;case"UNKNOWN_DRM":case 0:l.drmTechType=0;break;case"FAIR_PLAY":case 1:l.drmTechType=1;break;case"WIDE_VINE":case 2:l.drmTechType=2;break;case"BILI_DRM":case 3:l.drmTechType=3;break}switch(e.arcType){default:if(typeof e.arcType=="number"){l.arcType=e.arcType;break}break;case"ARC_TYPE_NORMAL":case 0:l.arcType=0;break;case"ARC_TYPE_INTERACT":case 1:l.arcType=1;break}if(e.interaction!=null){if(typeof e.interaction!="object")throw TypeError(".bilibili.playershared.PlayArc.interaction: object expected");l.interaction=u.bilibili.playershared.Interaction.fromObject(e.interaction)}if(e.dimension!=null){if(typeof e.dimension!="object")throw TypeError(".bilibili.playershared.PlayArc.dimension: object expected");l.dimension=u.bilibili.playershared.Dimension.fromObject(e.dimension)}return e.duration!=null&&(r.Long?(l.duration=r.Long.fromValue(e.duration)).unsigned=!1:typeof e.duration=="string"?l.duration=parseInt(e.duration,10):typeof e.duration=="number"?l.duration=e.duration:typeof e.duration=="object"&&(l.duration=new r.LongBits(e.duration.low>>>0,e.duration.high>>>0).toNumber())),e.isPreview!=null&&(l.isPreview=!!e.isPreview),e.watchTimeLength!=null&&(r.Long?(l.watchTimeLength=r.Long.fromValue(e.watchTimeLength)).unsigned=!0:typeof e.watchTimeLength=="string"?l.watchTimeLength=parseInt(e.watchTimeLength,10):typeof e.watchTimeLength=="number"?l.watchTimeLength=e.watchTimeLength:typeof e.watchTimeLength=="object"&&(l.watchTimeLength=new r.LongBits(e.watchTimeLength.low>>>0,e.watchTimeLength.high>>>0).toNumber(!0))),e.durationMs!=null&&(r.Long?(l.durationMs=r.Long.fromValue(e.durationMs)).unsigned=!0:typeof e.durationMs=="string"?l.durationMs=parseInt(e.durationMs,10):typeof e.durationMs=="number"?l.durationMs=e.durationMs:typeof e.durationMs=="object"&&(l.durationMs=new r.LongBits(e.durationMs.low>>>0,e.durationMs.high>>>0).toNumber(!0))),l},p.toObject=function(e,l){l||(l={});let t={};if(l.defaults){if(t.videoType=l.enums===String?"BIZ_TYPE_UNKNOWN":0,r.Long){let i=new r.Long(0,0,!1);t.aid=l.longs===String?i.toString():l.longs===Number?i.toNumber():i}else t.aid=l.longs===String?"0":0;if(r.Long){let i=new r.Long(0,0,!1);t.cid=l.longs===String?i.toString():l.longs===Number?i.toNumber():i}else t.cid=l.longs===String?"0":0;if(t.drmTechType=l.enums===String?"UNKNOWN_DRM":0,t.arcType=l.enums===String?"ARC_TYPE_NORMAL":0,t.interaction=null,t.dimension=null,r.Long){let i=new r.Long(0,0,!1);t.duration=l.longs===String?i.toString():l.longs===Number?i.toNumber():i}else t.duration=l.longs===String?"0":0;if(t.isPreview=!1,r.Long){let i=new r.Long(0,0,!0);t.watchTimeLength=l.longs===String?i.toString():l.longs===Number?i.toNumber():i}else t.watchTimeLength=l.longs===String?"0":0;if(r.Long){let i=new r.Long(0,0,!0);t.durationMs=l.longs===String?i.toString():l.longs===Number?i.toNumber():i}else t.durationMs=l.longs===String?"0":0}return e.videoType!=null&&e.hasOwnProperty("videoType")&&(t.videoType=l.enums===String?u.bilibili.playershared.BizType[e.videoType]===void 0?e.videoType:u.bilibili.playershared.BizType[e.videoType]:e.videoType),e.aid!=null&&e.hasOwnProperty("aid")&&(typeof e.aid=="number"?t.aid=l.longs===String?String(e.aid):e.aid:t.aid=l.longs===String?r.Long.prototype.toString.call(e.aid):l.longs===Number?new r.LongBits(e.aid.low>>>0,e.aid.high>>>0).toNumber():e.aid),e.cid!=null&&e.hasOwnProperty("cid")&&(typeof e.cid=="number"?t.cid=l.longs===String?String(e.cid):e.cid:t.cid=l.longs===String?r.Long.prototype.toString.call(e.cid):l.longs===Number?new r.LongBits(e.cid.low>>>0,e.cid.high>>>0).toNumber():e.cid),e.drmTechType!=null&&e.hasOwnProperty("drmTechType")&&(t.drmTechType=l.enums===String?u.bilibili.playershared.DrmTechType[e.drmTechType]===void 0?e.drmTechType:u.bilibili.playershared.DrmTechType[e.drmTechType]:e.drmTechType),e.arcType!=null&&e.hasOwnProperty("arcType")&&(t.arcType=l.enums===String?u.bilibili.playershared.ArcType[e.arcType]===void 0?e.arcType:u.bilibili.playershared.ArcType[e.arcType]:e.arcType),e.interaction!=null&&e.hasOwnProperty("interaction")&&(t.interaction=u.bilibili.playershared.Interaction.toObject(e.interaction,l)),e.dimension!=null&&e.hasOwnProperty("dimension")&&(t.dimension=u.bilibili.playershared.Dimension.toObject(e.dimension,l)),e.duration!=null&&e.hasOwnProperty("duration")&&(typeof e.duration=="number"?t.duration=l.longs===String?String(e.duration):e.duration:t.duration=l.longs===String?r.Long.prototype.toString.call(e.duration):l.longs===Number?new r.LongBits(e.duration.low>>>0,e.duration.high>>>0).toNumber():e.duration),e.isPreview!=null&&e.hasOwnProperty("isPreview")&&(t.isPreview=e.isPreview),e.watchTimeLength!=null&&e.hasOwnProperty("watchTimeLength")&&(typeof e.watchTimeLength=="number"?t.watchTimeLength=l.longs===String?String(e.watchTimeLength):e.watchTimeLength:t.watchTimeLength=l.longs===String?r.Long.prototype.toString.call(e.watchTimeLength):l.longs===Number?new r.LongBits(e.watchTimeLength.low>>>0,e.watchTimeLength.high>>>0).toNumber(!0):e.watchTimeLength),e.durationMs!=null&&e.hasOwnProperty("durationMs")&&(typeof e.durationMs=="number"?t.durationMs=l.longs===String?String(e.durationMs):e.durationMs:t.durationMs=l.longs===String?r.Long.prototype.toString.call(e.durationMs):l.longs===Number?new r.LongBits(e.durationMs.low>>>0,e.durationMs.high>>>0).toNumber(!0):e.durationMs),t},p.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},p.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/bilibili.playershared.PlayArc"},p}(),d.FragmentType=function(){let p={},c=Object.create(p);return c[p[0]="UNKNOWN"]=0,c[p[1]="AD_FRAGMENT"]=1,c[p[2]="OGV_FRAGMENT"]=2,c}(),d.FragmentPosition=function(){let p={},c=Object.create(p);return c[p[0]="INVALID"]=0,c[p[1]="PRE"]=1,c[p[2]="MIDDLE"]=2,c[p[3]="POST"]=3,c}(),d.Dimension=function(){function p(c){if(c)for(let e=Object.keys(c),l=0;l>>3){case 1:{i.width=e.int64();break}case 2:{i.height=e.int64();break}case 3:{i.rotate=e.int64();break}default:e.skipType(n&7);break}}return i},p.fromObject=function(e){if(e instanceof u.bilibili.playershared.Dimension)return e;let l=new u.bilibili.playershared.Dimension;return e.width!=null&&(r.Long?(l.width=r.Long.fromValue(e.width)).unsigned=!1:typeof e.width=="string"?l.width=parseInt(e.width,10):typeof e.width=="number"?l.width=e.width:typeof e.width=="object"&&(l.width=new r.LongBits(e.width.low>>>0,e.width.high>>>0).toNumber())),e.height!=null&&(r.Long?(l.height=r.Long.fromValue(e.height)).unsigned=!1:typeof e.height=="string"?l.height=parseInt(e.height,10):typeof e.height=="number"?l.height=e.height:typeof e.height=="object"&&(l.height=new r.LongBits(e.height.low>>>0,e.height.high>>>0).toNumber())),e.rotate!=null&&(r.Long?(l.rotate=r.Long.fromValue(e.rotate)).unsigned=!1:typeof e.rotate=="string"?l.rotate=parseInt(e.rotate,10):typeof e.rotate=="number"?l.rotate=e.rotate:typeof e.rotate=="object"&&(l.rotate=new r.LongBits(e.rotate.low>>>0,e.rotate.high>>>0).toNumber())),l},p.toObject=function(e,l){l||(l={});let t={};if(l.defaults){if(r.Long){let i=new r.Long(0,0,!1);t.width=l.longs===String?i.toString():l.longs===Number?i.toNumber():i}else t.width=l.longs===String?"0":0;if(r.Long){let i=new r.Long(0,0,!1);t.height=l.longs===String?i.toString():l.longs===Number?i.toNumber():i}else t.height=l.longs===String?"0":0;if(r.Long){let i=new r.Long(0,0,!1);t.rotate=l.longs===String?i.toString():l.longs===Number?i.toNumber():i}else t.rotate=l.longs===String?"0":0}return e.width!=null&&e.hasOwnProperty("width")&&(typeof e.width=="number"?t.width=l.longs===String?String(e.width):e.width:t.width=l.longs===String?r.Long.prototype.toString.call(e.width):l.longs===Number?new r.LongBits(e.width.low>>>0,e.width.high>>>0).toNumber():e.width),e.height!=null&&e.hasOwnProperty("height")&&(typeof e.height=="number"?t.height=l.longs===String?String(e.height):e.height:t.height=l.longs===String?r.Long.prototype.toString.call(e.height):l.longs===Number?new r.LongBits(e.height.low>>>0,e.height.high>>>0).toNumber():e.height),e.rotate!=null&&e.hasOwnProperty("rotate")&&(typeof e.rotate=="number"?t.rotate=l.longs===String?String(e.rotate):e.rotate:t.rotate=l.longs===String?r.Long.prototype.toString.call(e.rotate):l.longs===Number?new r.LongBits(e.rotate.low>>>0,e.rotate.high>>>0).toNumber():e.rotate),t},p.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},p.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/bilibili.playershared.Dimension"},p}(),d.Interaction=function(){function p(c){if(c)for(let e=Object.keys(c),l=0;l>>3){case 1:{i.historyNode=u.bilibili.playershared.Node.decode(e,e.uint32());break}case 2:{i.graphVersion=e.int64();break}case 3:{i.msg=e.string();break}case 4:{i.mark=e.int64();break}default:e.skipType(n&7);break}}return i},p.fromObject=function(e){if(e instanceof u.bilibili.playershared.Interaction)return e;let l=new u.bilibili.playershared.Interaction;if(e.historyNode!=null){if(typeof e.historyNode!="object")throw TypeError(".bilibili.playershared.Interaction.historyNode: object expected");l.historyNode=u.bilibili.playershared.Node.fromObject(e.historyNode)}return e.graphVersion!=null&&(r.Long?(l.graphVersion=r.Long.fromValue(e.graphVersion)).unsigned=!1:typeof e.graphVersion=="string"?l.graphVersion=parseInt(e.graphVersion,10):typeof e.graphVersion=="number"?l.graphVersion=e.graphVersion:typeof e.graphVersion=="object"&&(l.graphVersion=new r.LongBits(e.graphVersion.low>>>0,e.graphVersion.high>>>0).toNumber())),e.msg!=null&&(l.msg=String(e.msg)),e.mark!=null&&(r.Long?(l.mark=r.Long.fromValue(e.mark)).unsigned=!1:typeof e.mark=="string"?l.mark=parseInt(e.mark,10):typeof e.mark=="number"?l.mark=e.mark:typeof e.mark=="object"&&(l.mark=new r.LongBits(e.mark.low>>>0,e.mark.high>>>0).toNumber())),l},p.toObject=function(e,l){l||(l={});let t={};if(l.defaults){if(t.historyNode=null,r.Long){let i=new r.Long(0,0,!1);t.graphVersion=l.longs===String?i.toString():l.longs===Number?i.toNumber():i}else t.graphVersion=l.longs===String?"0":0;if(t.msg="",r.Long){let i=new r.Long(0,0,!1);t.mark=l.longs===String?i.toString():l.longs===Number?i.toNumber():i}else t.mark=l.longs===String?"0":0}return e.historyNode!=null&&e.hasOwnProperty("historyNode")&&(t.historyNode=u.bilibili.playershared.Node.toObject(e.historyNode,l)),e.graphVersion!=null&&e.hasOwnProperty("graphVersion")&&(typeof e.graphVersion=="number"?t.graphVersion=l.longs===String?String(e.graphVersion):e.graphVersion:t.graphVersion=l.longs===String?r.Long.prototype.toString.call(e.graphVersion):l.longs===Number?new r.LongBits(e.graphVersion.low>>>0,e.graphVersion.high>>>0).toNumber():e.graphVersion),e.msg!=null&&e.hasOwnProperty("msg")&&(t.msg=e.msg),e.mark!=null&&e.hasOwnProperty("mark")&&(typeof e.mark=="number"?t.mark=l.longs===String?String(e.mark):e.mark:t.mark=l.longs===String?r.Long.prototype.toString.call(e.mark):l.longs===Number?new r.LongBits(e.mark.low>>>0,e.mark.high>>>0).toNumber():e.mark),t},p.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},p.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/bilibili.playershared.Interaction"},p}(),d.Node=function(){function p(c){if(c)for(let e=Object.keys(c),l=0;l>>3){case 1:{i.nodeId=e.int64();break}case 2:{i.title=e.string();break}case 3:{i.cid=e.int64();break}default:e.skipType(n&7);break}}return i},p.fromObject=function(e){if(e instanceof u.bilibili.playershared.Node)return e;let l=new u.bilibili.playershared.Node;return e.nodeId!=null&&(r.Long?(l.nodeId=r.Long.fromValue(e.nodeId)).unsigned=!1:typeof e.nodeId=="string"?l.nodeId=parseInt(e.nodeId,10):typeof e.nodeId=="number"?l.nodeId=e.nodeId:typeof e.nodeId=="object"&&(l.nodeId=new r.LongBits(e.nodeId.low>>>0,e.nodeId.high>>>0).toNumber())),e.title!=null&&(l.title=String(e.title)),e.cid!=null&&(r.Long?(l.cid=r.Long.fromValue(e.cid)).unsigned=!1:typeof e.cid=="string"?l.cid=parseInt(e.cid,10):typeof e.cid=="number"?l.cid=e.cid:typeof e.cid=="object"&&(l.cid=new r.LongBits(e.cid.low>>>0,e.cid.high>>>0).toNumber())),l},p.toObject=function(e,l){l||(l={});let t={};if(l.defaults){if(r.Long){let i=new r.Long(0,0,!1);t.nodeId=l.longs===String?i.toString():l.longs===Number?i.toNumber():i}else t.nodeId=l.longs===String?"0":0;if(t.title="",r.Long){let i=new r.Long(0,0,!1);t.cid=l.longs===String?i.toString():l.longs===Number?i.toNumber():i}else t.cid=l.longs===String?"0":0}return e.nodeId!=null&&e.hasOwnProperty("nodeId")&&(typeof e.nodeId=="number"?t.nodeId=l.longs===String?String(e.nodeId):e.nodeId:t.nodeId=l.longs===String?r.Long.prototype.toString.call(e.nodeId):l.longs===Number?new r.LongBits(e.nodeId.low>>>0,e.nodeId.high>>>0).toNumber():e.nodeId),e.title!=null&&e.hasOwnProperty("title")&&(t.title=e.title),e.cid!=null&&e.hasOwnProperty("cid")&&(typeof e.cid=="number"?t.cid=l.longs===String?String(e.cid):e.cid:t.cid=l.longs===String?r.Long.prototype.toString.call(e.cid):l.longs===Number?new r.LongBits(e.cid.low>>>0,e.cid.high>>>0).toNumber():e.cid),t},p.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},p.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/bilibili.playershared.Node"},p}(),d.ArcType=function(){let p={},c=Object.create(p);return c[p[0]="ARC_TYPE_NORMAL"]=0,c[p[1]="ARC_TYPE_INTERACT"]=1,c}(),d.DrmTechType=function(){let p={},c=Object.create(p);return c[p[0]="UNKNOWN_DRM"]=0,c[p[1]="FAIR_PLAY"]=1,c[p[2]="WIDE_VINE"]=2,c[p[3]="BILI_DRM"]=3,c}(),d.BizType=function(){let p={},c=Object.create(p);return c[p[0]="BIZ_TYPE_UNKNOWN"]=0,c[p[1]="BIZ_TYPE_UGC"]=1,c[p[2]="BIZ_TYPE_PGC"]=2,c[p[3]="BIZ_TYPE_PUGV"]=3,c}(),d.Event=function(){function p(c){if(c)for(let e=Object.keys(c),l=0;l>>3){case 1:{i.shake=u.bilibili.playershared.Shake.decode(e,e.uint32());break}default:e.skipType(n&7);break}}return i},p.fromObject=function(e){if(e instanceof u.bilibili.playershared.Event)return e;let l=new u.bilibili.playershared.Event;if(e.shake!=null){if(typeof e.shake!="object")throw TypeError(".bilibili.playershared.Event.shake: object expected");l.shake=u.bilibili.playershared.Shake.fromObject(e.shake)}return l},p.toObject=function(e,l){l||(l={});let t={};return l.defaults&&(t.shake=null),e.shake!=null&&e.hasOwnProperty("shake")&&(t.shake=u.bilibili.playershared.Shake.toObject(e.shake,l)),t},p.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},p.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/bilibili.playershared.Event"},p}(),d.Shake=function(){function p(c){if(c)for(let e=Object.keys(c),l=0;l>>3){case 1:{i.file=e.string();break}default:e.skipType(n&7);break}}return i},p.fromObject=function(e){if(e instanceof u.bilibili.playershared.Shake)return e;let l=new u.bilibili.playershared.Shake;return e.file!=null&&(l.file=String(e.file)),l},p.toObject=function(e,l){l||(l={});let t={};return l.defaults&&(t.file=""),e.file!=null&&e.hasOwnProperty("file")&&(t.file=e.file),t},p.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},p.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/bilibili.playershared.Shake"},p}(),d.QnTrialInfo=function(){function p(c){if(c)for(let e=Object.keys(c),l=0;l>>3){case 1:{i.trialAble=e.bool();break}case 2:{i.remainingTimes=e.int32();break}case 3:{i.start=e.int32();break}case 4:{i.timeLength=e.int32();break}case 5:{i.startToast=u.bilibili.playershared.Toast.decode(e,e.uint32());break}case 6:{i.endToast=u.bilibili.playershared.Toast.decode(e,e.uint32());break}case 8:{i.qualityOpenTipBtn=u.bilibili.playershared.Button.decode(e,e.uint32());break}default:e.skipType(n&7);break}}return i},p.fromObject=function(e){if(e instanceof u.bilibili.playershared.QnTrialInfo)return e;let l=new u.bilibili.playershared.QnTrialInfo;if(e.trialAble!=null&&(l.trialAble=!!e.trialAble),e.remainingTimes!=null&&(l.remainingTimes=e.remainingTimes|0),e.start!=null&&(l.start=e.start|0),e.timeLength!=null&&(l.timeLength=e.timeLength|0),e.startToast!=null){if(typeof e.startToast!="object")throw TypeError(".bilibili.playershared.QnTrialInfo.startToast: object expected");l.startToast=u.bilibili.playershared.Toast.fromObject(e.startToast)}if(e.endToast!=null){if(typeof e.endToast!="object")throw TypeError(".bilibili.playershared.QnTrialInfo.endToast: object expected");l.endToast=u.bilibili.playershared.Toast.fromObject(e.endToast)}if(e.qualityOpenTipBtn!=null){if(typeof e.qualityOpenTipBtn!="object")throw TypeError(".bilibili.playershared.QnTrialInfo.qualityOpenTipBtn: object expected");l.qualityOpenTipBtn=u.bilibili.playershared.Button.fromObject(e.qualityOpenTipBtn)}return l},p.toObject=function(e,l){l||(l={});let t={};return l.defaults&&(t.trialAble=!1,t.remainingTimes=0,t.start=0,t.timeLength=0,t.startToast=null,t.endToast=null,t.qualityOpenTipBtn=null),e.trialAble!=null&&e.hasOwnProperty("trialAble")&&(t.trialAble=e.trialAble),e.remainingTimes!=null&&e.hasOwnProperty("remainingTimes")&&(t.remainingTimes=e.remainingTimes),e.start!=null&&e.hasOwnProperty("start")&&(t.start=e.start),e.timeLength!=null&&e.hasOwnProperty("timeLength")&&(t.timeLength=e.timeLength),e.startToast!=null&&e.hasOwnProperty("startToast")&&(t.startToast=u.bilibili.playershared.Toast.toObject(e.startToast,l)),e.endToast!=null&&e.hasOwnProperty("endToast")&&(t.endToast=u.bilibili.playershared.Toast.toObject(e.endToast,l)),e.qualityOpenTipBtn!=null&&e.hasOwnProperty("qualityOpenTipBtn")&&(t.qualityOpenTipBtn=u.bilibili.playershared.Button.toObject(e.qualityOpenTipBtn,l)),t},p.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},p.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/bilibili.playershared.QnTrialInfo"},p}(),d.Toast=function(){function p(c){if(c)for(let e=Object.keys(c),l=0;l>>3){case 1:{i.text=e.string();break}case 2:{i.button=u.bilibili.playershared.Button.decode(e,e.uint32());break}default:e.skipType(n&7);break}}return i},p.fromObject=function(e){if(e instanceof u.bilibili.playershared.Toast)return e;let l=new u.bilibili.playershared.Toast;if(e.text!=null&&(l.text=String(e.text)),e.button!=null){if(typeof e.button!="object")throw TypeError(".bilibili.playershared.Toast.button: object expected");l.button=u.bilibili.playershared.Button.fromObject(e.button)}return l},p.toObject=function(e,l){l||(l={});let t={};return l.defaults&&(t.text="",t.button=null),e.text!=null&&e.hasOwnProperty("text")&&(t.text=e.text),e.button!=null&&e.hasOwnProperty("button")&&(t.button=u.bilibili.playershared.Button.toObject(e.button,l)),t},p.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},p.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/bilibili.playershared.Toast"},p}(),d.Button=function(){function p(c){if(this.reportParams={},c)for(let e=Object.keys(c),l=0;l>>3){case 1:{i.text=e.string();break}case 2:{i.link=e.string();break}case 3:{i.reportParams===r.emptyObject&&(i.reportParams={});let y=e.uint32()+e.pos;for(n="",o="";e.pos>>3){case 1:n=e.string();break;case 2:o=e.string();break;default:e.skipType(s&7);break}}i.reportParams[n]=o;break}default:e.skipType(a&7);break}}return i},p.fromObject=function(e){if(e instanceof u.bilibili.playershared.Button)return e;let l=new u.bilibili.playershared.Button;if(e.text!=null&&(l.text=String(e.text)),e.link!=null&&(l.link=String(e.link)),e.reportParams){if(typeof e.reportParams!="object")throw TypeError(".bilibili.playershared.Button.reportParams: object expected");l.reportParams={};for(let t=Object.keys(e.reportParams),i=0;i>>3){case 1:{i.currentVideo=u.bilibili.playershared.HistoryInfo.decode(e,e.uint32());break}case 2:{i.relatedVideo=u.bilibili.playershared.HistoryInfo.decode(e,e.uint32());break}default:e.skipType(n&7);break}}return i},p.fromObject=function(e){if(e instanceof u.bilibili.playershared.History)return e;let l=new u.bilibili.playershared.History;if(e.currentVideo!=null){if(typeof e.currentVideo!="object")throw TypeError(".bilibili.playershared.History.currentVideo: object expected");l.currentVideo=u.bilibili.playershared.HistoryInfo.fromObject(e.currentVideo)}if(e.relatedVideo!=null){if(typeof e.relatedVideo!="object")throw TypeError(".bilibili.playershared.History.relatedVideo: object expected");l.relatedVideo=u.bilibili.playershared.HistoryInfo.fromObject(e.relatedVideo)}return l},p.toObject=function(e,l){l||(l={});let t={};return l.defaults&&(t.currentVideo=null,t.relatedVideo=null),e.currentVideo!=null&&e.hasOwnProperty("currentVideo")&&(t.currentVideo=u.bilibili.playershared.HistoryInfo.toObject(e.currentVideo,l)),e.relatedVideo!=null&&e.hasOwnProperty("relatedVideo")&&(t.relatedVideo=u.bilibili.playershared.HistoryInfo.toObject(e.relatedVideo,l)),t},p.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},p.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/bilibili.playershared.History"},p}(),d.HistoryInfo=function(){function p(c){if(c)for(let e=Object.keys(c),l=0;l>>3){case 1:{i.progress=e.int64();break}case 2:{i.lastPlayCid=e.int64();break}case 3:{i.toast=u.bilibili.playershared.Toast.decode(e,e.uint32());break}case 4:{i.toastWithoutTime=u.bilibili.playershared.Toast.decode(e,e.uint32());break}case 5:{i.lastPlayAid=e.int64();break}default:e.skipType(n&7);break}}return i},p.fromObject=function(e){if(e instanceof u.bilibili.playershared.HistoryInfo)return e;let l=new u.bilibili.playershared.HistoryInfo;if(e.progress!=null&&(r.Long?(l.progress=r.Long.fromValue(e.progress)).unsigned=!1:typeof e.progress=="string"?l.progress=parseInt(e.progress,10):typeof e.progress=="number"?l.progress=e.progress:typeof e.progress=="object"&&(l.progress=new r.LongBits(e.progress.low>>>0,e.progress.high>>>0).toNumber())),e.lastPlayCid!=null&&(r.Long?(l.lastPlayCid=r.Long.fromValue(e.lastPlayCid)).unsigned=!1:typeof e.lastPlayCid=="string"?l.lastPlayCid=parseInt(e.lastPlayCid,10):typeof e.lastPlayCid=="number"?l.lastPlayCid=e.lastPlayCid:typeof e.lastPlayCid=="object"&&(l.lastPlayCid=new r.LongBits(e.lastPlayCid.low>>>0,e.lastPlayCid.high>>>0).toNumber())),e.toast!=null){if(typeof e.toast!="object")throw TypeError(".bilibili.playershared.HistoryInfo.toast: object expected");l.toast=u.bilibili.playershared.Toast.fromObject(e.toast)}if(e.toastWithoutTime!=null){if(typeof e.toastWithoutTime!="object")throw TypeError(".bilibili.playershared.HistoryInfo.toastWithoutTime: object expected");l.toastWithoutTime=u.bilibili.playershared.Toast.fromObject(e.toastWithoutTime)}return e.lastPlayAid!=null&&(r.Long?(l.lastPlayAid=r.Long.fromValue(e.lastPlayAid)).unsigned=!1:typeof e.lastPlayAid=="string"?l.lastPlayAid=parseInt(e.lastPlayAid,10):typeof e.lastPlayAid=="number"?l.lastPlayAid=e.lastPlayAid:typeof e.lastPlayAid=="object"&&(l.lastPlayAid=new r.LongBits(e.lastPlayAid.low>>>0,e.lastPlayAid.high>>>0).toNumber())),l},p.toObject=function(e,l){l||(l={});let t={};if(l.defaults){if(r.Long){let i=new r.Long(0,0,!1);t.progress=l.longs===String?i.toString():l.longs===Number?i.toNumber():i}else t.progress=l.longs===String?"0":0;if(r.Long){let i=new r.Long(0,0,!1);t.lastPlayCid=l.longs===String?i.toString():l.longs===Number?i.toNumber():i}else t.lastPlayCid=l.longs===String?"0":0;if(t.toast=null,t.toastWithoutTime=null,r.Long){let i=new r.Long(0,0,!1);t.lastPlayAid=l.longs===String?i.toString():l.longs===Number?i.toNumber():i}else t.lastPlayAid=l.longs===String?"0":0}return e.progress!=null&&e.hasOwnProperty("progress")&&(typeof e.progress=="number"?t.progress=l.longs===String?String(e.progress):e.progress:t.progress=l.longs===String?r.Long.prototype.toString.call(e.progress):l.longs===Number?new r.LongBits(e.progress.low>>>0,e.progress.high>>>0).toNumber():e.progress),e.lastPlayCid!=null&&e.hasOwnProperty("lastPlayCid")&&(typeof e.lastPlayCid=="number"?t.lastPlayCid=l.longs===String?String(e.lastPlayCid):e.lastPlayCid:t.lastPlayCid=l.longs===String?r.Long.prototype.toString.call(e.lastPlayCid):l.longs===Number?new r.LongBits(e.lastPlayCid.low>>>0,e.lastPlayCid.high>>>0).toNumber():e.lastPlayCid),e.toast!=null&&e.hasOwnProperty("toast")&&(t.toast=u.bilibili.playershared.Toast.toObject(e.toast,l)),e.toastWithoutTime!=null&&e.hasOwnProperty("toastWithoutTime")&&(t.toastWithoutTime=u.bilibili.playershared.Toast.toObject(e.toastWithoutTime,l)),e.lastPlayAid!=null&&e.hasOwnProperty("lastPlayAid")&&(typeof e.lastPlayAid=="number"?t.lastPlayAid=l.longs===String?String(e.lastPlayAid):e.lastPlayAid:t.lastPlayAid=l.longs===String?r.Long.prototype.toString.call(e.lastPlayAid):l.longs===Number?new r.LongBits(e.lastPlayAid.low>>>0,e.lastPlayAid.high>>>0).toNumber():e.lastPlayAid),t},p.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},p.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/bilibili.playershared.HistoryInfo"},p}(),d.Fragment=function(){function p(c){if(this.infos=[],c)for(let e=Object.keys(c),l=0;l>>3){case 1:{i.infos&&i.infos.length||(i.infos=[]),i.infos.push(u.bilibili.playershared.FragmentInfo.decode(e,e.uint32()));break}default:e.skipType(n&7);break}}return i},p.fromObject=function(e){if(e instanceof u.bilibili.playershared.Fragment)return e;let l=new u.bilibili.playershared.Fragment;if(e.infos){if(!Array.isArray(e.infos))throw TypeError(".bilibili.playershared.Fragment.infos: array expected");l.infos=[];for(let t=0;t>>3){case 1:{i.index=e.int32();break}case 2:{i.fragmentPosition=e.int32();break}case 3:{i.fragmentType=e.int32();break}case 4:{i.aid=e.int64();break}case 5:{i.cid=e.int64();break}case 6:{i.startTime=e.int64();break}case 7:{i.report=u.google.protobuf.Any.decode(e,e.uint32());break}default:e.skipType(n&7);break}}return i},p.fromObject=function(e){if(e instanceof u.bilibili.playershared.FragmentInfo)return e;let l=new u.bilibili.playershared.FragmentInfo;switch(e.index!=null&&(l.index=e.index|0),e.fragmentPosition){default:if(typeof e.fragmentPosition=="number"){l.fragmentPosition=e.fragmentPosition;break}break;case"INVALID":case 0:l.fragmentPosition=0;break;case"PRE":case 1:l.fragmentPosition=1;break;case"MIDDLE":case 2:l.fragmentPosition=2;break;case"POST":case 3:l.fragmentPosition=3;break}switch(e.fragmentType){default:if(typeof e.fragmentType=="number"){l.fragmentType=e.fragmentType;break}break;case"UNKNOWN":case 0:l.fragmentType=0;break;case"AD_FRAGMENT":case 1:l.fragmentType=1;break;case"OGV_FRAGMENT":case 2:l.fragmentType=2;break}if(e.aid!=null&&(r.Long?(l.aid=r.Long.fromValue(e.aid)).unsigned=!1:typeof e.aid=="string"?l.aid=parseInt(e.aid,10):typeof e.aid=="number"?l.aid=e.aid:typeof e.aid=="object"&&(l.aid=new r.LongBits(e.aid.low>>>0,e.aid.high>>>0).toNumber())),e.cid!=null&&(r.Long?(l.cid=r.Long.fromValue(e.cid)).unsigned=!1:typeof e.cid=="string"?l.cid=parseInt(e.cid,10):typeof e.cid=="number"?l.cid=e.cid:typeof e.cid=="object"&&(l.cid=new r.LongBits(e.cid.low>>>0,e.cid.high>>>0).toNumber())),e.startTime!=null&&(r.Long?(l.startTime=r.Long.fromValue(e.startTime)).unsigned=!1:typeof e.startTime=="string"?l.startTime=parseInt(e.startTime,10):typeof e.startTime=="number"?l.startTime=e.startTime:typeof e.startTime=="object"&&(l.startTime=new r.LongBits(e.startTime.low>>>0,e.startTime.high>>>0).toNumber())),e.report!=null){if(typeof e.report!="object")throw TypeError(".bilibili.playershared.FragmentInfo.report: object expected");l.report=u.google.protobuf.Any.fromObject(e.report)}return l},p.toObject=function(e,l){l||(l={});let t={};if(l.defaults){if(t.index=0,t.fragmentPosition=l.enums===String?"INVALID":0,t.fragmentType=l.enums===String?"UNKNOWN":0,r.Long){let i=new r.Long(0,0,!1);t.aid=l.longs===String?i.toString():l.longs===Number?i.toNumber():i}else t.aid=l.longs===String?"0":0;if(r.Long){let i=new r.Long(0,0,!1);t.cid=l.longs===String?i.toString():l.longs===Number?i.toNumber():i}else t.cid=l.longs===String?"0":0;if(r.Long){let i=new r.Long(0,0,!1);t.startTime=l.longs===String?i.toString():l.longs===Number?i.toNumber():i}else t.startTime=l.longs===String?"0":0;t.report=null}return e.index!=null&&e.hasOwnProperty("index")&&(t.index=e.index),e.fragmentPosition!=null&&e.hasOwnProperty("fragmentPosition")&&(t.fragmentPosition=l.enums===String?u.bilibili.playershared.FragmentPosition[e.fragmentPosition]===void 0?e.fragmentPosition:u.bilibili.playershared.FragmentPosition[e.fragmentPosition]:e.fragmentPosition),e.fragmentType!=null&&e.hasOwnProperty("fragmentType")&&(t.fragmentType=l.enums===String?u.bilibili.playershared.FragmentType[e.fragmentType]===void 0?e.fragmentType:u.bilibili.playershared.FragmentType[e.fragmentType]:e.fragmentType),e.aid!=null&&e.hasOwnProperty("aid")&&(typeof e.aid=="number"?t.aid=l.longs===String?String(e.aid):e.aid:t.aid=l.longs===String?r.Long.prototype.toString.call(e.aid):l.longs===Number?new r.LongBits(e.aid.low>>>0,e.aid.high>>>0).toNumber():e.aid),e.cid!=null&&e.hasOwnProperty("cid")&&(typeof e.cid=="number"?t.cid=l.longs===String?String(e.cid):e.cid:t.cid=l.longs===String?r.Long.prototype.toString.call(e.cid):l.longs===Number?new r.LongBits(e.cid.low>>>0,e.cid.high>>>0).toNumber():e.cid),e.startTime!=null&&e.hasOwnProperty("startTime")&&(typeof e.startTime=="number"?t.startTime=l.longs===String?String(e.startTime):e.startTime:t.startTime=l.longs===String?r.Long.prototype.toString.call(e.startTime):l.longs===Number?new r.LongBits(e.startTime.low>>>0,e.startTime.high>>>0).toNumber():e.startTime),e.report!=null&&e.hasOwnProperty("report")&&(t.report=u.google.protobuf.Any.toObject(e.report,l)),t},p.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},p.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/bilibili.playershared.FragmentInfo"},p}(),d}(),O.pmms=function(){let d={};return d.v1=function(){let p={};return p.PMMSMossService=function(){function c(e,l,t){b.rpc.Service.call(this,e,l,t)}return(c.prototype=Object.create(b.rpc.Service.prototype)).constructor=c,c.create=function(l,t,i){return new this(l,t,i)},Object.defineProperty(c.prototype.getPullMessages=function e(l,t){return this.rpcCall(e,u.bilibili.pmms.v1.GetPullMessagesReq,u.bilibili.pmms.v1.GetPullMessagesResponse,l,t)},"name",{value:"GetPullMessages"}),c}(),p.GetPullMessagesReq=function(){function c(e){if(e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.roomId=l.string();break}case 2:{n.pos=u.bilibili.pmms.v1.Position.decode(l,l.uint32());break}case 3:{n.control=u.bilibili.pmms.v1.ControlParams.decode(l,l.uint32());break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.pmms.v1.GetPullMessagesReq)return l;let t=new u.bilibili.pmms.v1.GetPullMessagesReq;if(l.roomId!=null&&(t.roomId=String(l.roomId)),l.pos!=null){if(typeof l.pos!="object")throw TypeError(".bilibili.pmms.v1.GetPullMessagesReq.pos: object expected");t.pos=u.bilibili.pmms.v1.Position.fromObject(l.pos)}if(l.control!=null){if(typeof l.control!="object")throw TypeError(".bilibili.pmms.v1.GetPullMessagesReq.control: object expected");t.control=u.bilibili.pmms.v1.ControlParams.fromObject(l.control)}return t},c.toObject=function(l,t){t||(t={});let i={};return t.defaults&&(i.roomId="",i.pos=null,i.control=null),l.roomId!=null&&l.hasOwnProperty("roomId")&&(i.roomId=l.roomId),l.pos!=null&&l.hasOwnProperty("pos")&&(i.pos=u.bilibili.pmms.v1.Position.toObject(l.pos,t)),l.control!=null&&l.hasOwnProperty("control")&&(i.control=u.bilibili.pmms.v1.ControlParams.toObject(l.control,t)),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.pmms.v1.GetPullMessagesReq"},c}(),p.GetPullMessagesResponse=function(){function c(e){if(this.messages=[],e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.messages&&n.messages.length||(n.messages=[]),n.messages.push(u.bilibili.pmms.v1.Message.decode(l,l.uint32()));break}case 2:{n.next=u.bilibili.pmms.v1.Position.decode(l,l.uint32());break}case 3:{n.control=u.bilibili.pmms.v1.ControlParams.decode(l,l.uint32());break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.pmms.v1.GetPullMessagesResponse)return l;let t=new u.bilibili.pmms.v1.GetPullMessagesResponse;if(l.messages){if(!Array.isArray(l.messages))throw TypeError(".bilibili.pmms.v1.GetPullMessagesResponse.messages: array expected");t.messages=[];for(let i=0;i>>3){case 1:{n.timestamp=l.int64();break}case 2:{n.roomIdx=l.int64();break}case 3:{n.userIdx=l.int64();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.pmms.v1.Position)return l;let t=new u.bilibili.pmms.v1.Position;return l.timestamp!=null&&(r.Long?(t.timestamp=r.Long.fromValue(l.timestamp)).unsigned=!1:typeof l.timestamp=="string"?t.timestamp=parseInt(l.timestamp,10):typeof l.timestamp=="number"?t.timestamp=l.timestamp:typeof l.timestamp=="object"&&(t.timestamp=new r.LongBits(l.timestamp.low>>>0,l.timestamp.high>>>0).toNumber())),l.roomIdx!=null&&(r.Long?(t.roomIdx=r.Long.fromValue(l.roomIdx)).unsigned=!1:typeof l.roomIdx=="string"?t.roomIdx=parseInt(l.roomIdx,10):typeof l.roomIdx=="number"?t.roomIdx=l.roomIdx:typeof l.roomIdx=="object"&&(t.roomIdx=new r.LongBits(l.roomIdx.low>>>0,l.roomIdx.high>>>0).toNumber())),l.userIdx!=null&&(r.Long?(t.userIdx=r.Long.fromValue(l.userIdx)).unsigned=!1:typeof l.userIdx=="string"?t.userIdx=parseInt(l.userIdx,10):typeof l.userIdx=="number"?t.userIdx=l.userIdx:typeof l.userIdx=="object"&&(t.userIdx=new r.LongBits(l.userIdx.low>>>0,l.userIdx.high>>>0).toNumber())),t},c.toObject=function(l,t){t||(t={});let i={};if(t.defaults){if(r.Long){let n=new r.Long(0,0,!1);i.timestamp=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.timestamp=t.longs===String?"0":0;if(r.Long){let n=new r.Long(0,0,!1);i.roomIdx=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.roomIdx=t.longs===String?"0":0;if(r.Long){let n=new r.Long(0,0,!1);i.userIdx=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.userIdx=t.longs===String?"0":0}return l.timestamp!=null&&l.hasOwnProperty("timestamp")&&(typeof l.timestamp=="number"?i.timestamp=t.longs===String?String(l.timestamp):l.timestamp:i.timestamp=t.longs===String?r.Long.prototype.toString.call(l.timestamp):t.longs===Number?new r.LongBits(l.timestamp.low>>>0,l.timestamp.high>>>0).toNumber():l.timestamp),l.roomIdx!=null&&l.hasOwnProperty("roomIdx")&&(typeof l.roomIdx=="number"?i.roomIdx=t.longs===String?String(l.roomIdx):l.roomIdx:i.roomIdx=t.longs===String?r.Long.prototype.toString.call(l.roomIdx):t.longs===Number?new r.LongBits(l.roomIdx.low>>>0,l.roomIdx.high>>>0).toNumber():l.roomIdx),l.userIdx!=null&&l.hasOwnProperty("userIdx")&&(typeof l.userIdx=="number"?i.userIdx=t.longs===String?String(l.userIdx):l.userIdx:i.userIdx=t.longs===String?r.Long.prototype.toString.call(l.userIdx):t.longs===Number?new r.LongBits(l.userIdx.low>>>0,l.userIdx.high>>>0).toNumber():l.userIdx),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.pmms.v1.Position"},c}(),p.ControlParams=function(){function c(e){if(e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.interval=l.int64();break}case 2:{n.attr=l.int64();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.pmms.v1.ControlParams)return l;let t=new u.bilibili.pmms.v1.ControlParams;return l.interval!=null&&(r.Long?(t.interval=r.Long.fromValue(l.interval)).unsigned=!1:typeof l.interval=="string"?t.interval=parseInt(l.interval,10):typeof l.interval=="number"?t.interval=l.interval:typeof l.interval=="object"&&(t.interval=new r.LongBits(l.interval.low>>>0,l.interval.high>>>0).toNumber())),l.attr!=null&&(r.Long?(t.attr=r.Long.fromValue(l.attr)).unsigned=!1:typeof l.attr=="string"?t.attr=parseInt(l.attr,10):typeof l.attr=="number"?t.attr=l.attr:typeof l.attr=="object"&&(t.attr=new r.LongBits(l.attr.low>>>0,l.attr.high>>>0).toNumber())),t},c.toObject=function(l,t){t||(t={});let i={};if(t.defaults){if(r.Long){let n=new r.Long(0,0,!1);i.interval=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.interval=t.longs===String?"0":0;if(r.Long){let n=new r.Long(0,0,!1);i.attr=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.attr=t.longs===String?"0":0}return l.interval!=null&&l.hasOwnProperty("interval")&&(typeof l.interval=="number"?i.interval=t.longs===String?String(l.interval):l.interval:i.interval=t.longs===String?r.Long.prototype.toString.call(l.interval):t.longs===Number?new r.LongBits(l.interval.low>>>0,l.interval.high>>>0).toNumber():l.interval),l.attr!=null&&l.hasOwnProperty("attr")&&(typeof l.attr=="number"?i.attr=t.longs===String?String(l.attr):l.attr:i.attr=t.longs===String?r.Long.prototype.toString.call(l.attr):t.longs===Number?new r.LongBits(l.attr.low>>>0,l.attr.high>>>0).toNumber():l.attr),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.pmms.v1.ControlParams"},c}(),p.Message=function(){function c(e){if(e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.targetPath=l.string();break}case 2:{n.message=u.google.protobuf.Any.decode(l,l.uint32());break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.bilibili.pmms.v1.Message)return l;let t=new u.bilibili.pmms.v1.Message;if(l.targetPath!=null&&(t.targetPath=String(l.targetPath)),l.message!=null){if(typeof l.message!="object")throw TypeError(".bilibili.pmms.v1.Message.message: object expected");t.message=u.google.protobuf.Any.fromObject(l.message)}return t},c.toObject=function(l,t){t||(t={});let i={};return t.defaults&&(i.targetPath="",i.message=null),l.targetPath!=null&&l.hasOwnProperty("targetPath")&&(i.targetPath=l.targetPath),l.message!=null&&l.hasOwnProperty("message")&&(i.message=u.google.protobuf.Any.toObject(l.message,t)),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/bilibili.pmms.v1.Message"},c}(),p.ControlAttr=function(){let c={},e=Object.create(c);return e[c[0]="ControlAttrAllow"]=0,e[c[1]="ControlAttrStatus"]=1,e[c[2]="ControlAttrCore"]=2,e}(),p}(),d}(),O.polymer=function(){let d={};return d.app=function(){let p={};return p.search=function(){let c={};return c.v1=function(){let e={};return e.Search=function(){function l(t,i,n){b.rpc.Service.call(this,t,i,n)}return(l.prototype=Object.create(b.rpc.Service.prototype)).constructor=l,l.create=function(i,n,o){return new this(i,n,o)},Object.defineProperty(l.prototype.searchAll=function t(i,n){return this.rpcCall(t,u.bilibili.polymer.app.search.v1.SearchAllRequest,u.bilibili.polymer.app.search.v1.SearchAllResponse,i,n)},"name",{value:"SearchAll"}),Object.defineProperty(l.prototype.searchByType=function t(i,n){return this.rpcCall(t,u.bilibili.polymer.app.search.v1.SearchByTypeRequest,u.bilibili.polymer.app.search.v1.SearchByTypeResponse,i,n)},"name",{value:"SearchByType"}),Object.defineProperty(l.prototype.searchComic=function t(i,n){return this.rpcCall(t,u.bilibili.polymer.app.search.v1.SearchComicRequest,u.bilibili.polymer.app.search.v1.SearchComicResponse,i,n)},"name",{value:"SearchComic"}),Object.defineProperty(l.prototype.searchReserve=function t(i,n){return this.rpcCall(t,u.bilibili.polymer.app.search.v1.SearchReserveRequest,u.bilibili.polymer.app.search.v1.SearchReserveResponse,i,n)},"name",{value:"SearchReserve"}),Object.defineProperty(l.prototype.searchReserveCancel=function t(i,n){return this.rpcCall(t,u.bilibili.polymer.app.search.v1.SearchReserveRequest,u.bilibili.polymer.app.search.v1.SearchReserveResponse,i,n)},"name",{value:"SearchReserveCancel"}),l}(),e.SearchAllRequest=function(){function l(t){if(this.fromExtra={},t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.keyword=i.string();break}case 2:{a.order=i.int32();break}case 3:{a.tidList=i.string();break}case 4:{a.durationList=i.string();break}case 5:{a.extraWord=i.string();break}case 6:{a.fromSource=i.string();break}case 7:{a.isOrgQuery=i.int32();break}case 8:{a.localTime=i.int32();break}case 9:{a.adExtra=i.string();break}case 10:{a.pagination=u.bilibili.pagination.Pagination.decode(i,i.uint32());break}case 11:{a.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.decode(i,i.uint32());break}case 12:{a.fromExtra===r.emptyObject&&(a.fromExtra={});let g=i.uint32()+i.pos;for(y="",s="";i.pos>>3){case 1:y=i.string();break;case 2:s=i.string();break;default:i.skipType(S&7);break}}a.fromExtra[y]=s;break}case 13:{a.forcedDisplayChatCard=i.int32();break}case 14:{a.isRefresh=i.int32();break}case 15:{a.refreshTimes=i.int32();break}case 16:{a.since=i.string();break}default:i.skipType(v&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.SearchAllRequest)return i;let n=new u.bilibili.polymer.app.search.v1.SearchAllRequest;switch(i.keyword!=null&&(n.keyword=String(i.keyword)),i.order){default:if(typeof i.order=="number"){n.order=i.order;break}break;case"SORT_DEFAULT":case 0:n.order=0;break;case"SORT_VIEW_COUNT":case 1:n.order=1;break;case"SORT_PUBLISH_TIME":case 2:n.order=2;break;case"SORT_DANMAKU_COUNT":case 3:n.order=3;break}if(i.tidList!=null&&(n.tidList=String(i.tidList)),i.durationList!=null&&(n.durationList=String(i.durationList)),i.extraWord!=null&&(n.extraWord=String(i.extraWord)),i.fromSource!=null&&(n.fromSource=String(i.fromSource)),i.isOrgQuery!=null&&(n.isOrgQuery=i.isOrgQuery|0),i.localTime!=null&&(n.localTime=i.localTime|0),i.adExtra!=null&&(n.adExtra=String(i.adExtra)),i.pagination!=null){if(typeof i.pagination!="object")throw TypeError(".bilibili.polymer.app.search.v1.SearchAllRequest.pagination: object expected");n.pagination=u.bilibili.pagination.Pagination.fromObject(i.pagination)}if(i.playerArgs!=null){if(typeof i.playerArgs!="object")throw TypeError(".bilibili.polymer.app.search.v1.SearchAllRequest.playerArgs: object expected");n.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.fromObject(i.playerArgs)}if(i.fromExtra){if(typeof i.fromExtra!="object")throw TypeError(".bilibili.polymer.app.search.v1.SearchAllRequest.fromExtra: object expected");n.fromExtra={};for(let o=Object.keys(i.fromExtra),a=0;a>>3){case 1:{a.idList=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.SearchComicRequest)return i;let n=new u.bilibili.polymer.app.search.v1.SearchComicRequest;return i.idList!=null&&(n.idList=String(i.idList)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.idList=""),i.idList!=null&&i.hasOwnProperty("idList")&&(o.idList=i.idList),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.SearchComicRequest"},l}(),e.Sort=function(){let l={},t=Object.create(l);return t[l[0]="SORT_DEFAULT"]=0,t[l[1]="SORT_VIEW_COUNT"]=1,t[l[2]="SORT_PUBLISH_TIME"]=2,t[l[3]="SORT_DANMAKU_COUNT"]=3,t}(),e.SearchByTypeRequest=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.type=i.int32();break}case 2:{a.keyword=i.string();break}case 3:{a.categorySort=i.int32();break}case 4:{a.categoryId=i.int64();break}case 5:{a.userType=i.int32();break}case 6:{a.userSort=i.int32();break}case 7:{a.pagination=u.bilibili.pagination.Pagination.decode(i,i.uint32());break}case 8:{a.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.SearchByTypeRequest)return i;let n=new u.bilibili.polymer.app.search.v1.SearchByTypeRequest;switch(i.type!=null&&(n.type=i.type|0),i.keyword!=null&&(n.keyword=String(i.keyword)),i.categorySort){default:if(typeof i.categorySort=="number"){n.categorySort=i.categorySort;break}break;case"CATEGORY_SORT_DEFAULT":case 0:n.categorySort=0;break;case"CATEGORY_SORT_PUBLISH_TIME":case 1:n.categorySort=1;break;case"CATEGORY_SORT_CLICK_COUNT":case 2:n.categorySort=2;break;case"CATEGORY_SORT_COMMENT_COUNT":case 3:n.categorySort=3;break;case"CATEGORY_SORT_LIKE_COUNT":case 4:n.categorySort=4;break}switch(i.categoryId!=null&&(r.Long?(n.categoryId=r.Long.fromValue(i.categoryId)).unsigned=!1:typeof i.categoryId=="string"?n.categoryId=parseInt(i.categoryId,10):typeof i.categoryId=="number"?n.categoryId=i.categoryId:typeof i.categoryId=="object"&&(n.categoryId=new r.LongBits(i.categoryId.low>>>0,i.categoryId.high>>>0).toNumber())),i.userType){default:if(typeof i.userType=="number"){n.userType=i.userType;break}break;case"ALL":case 0:n.userType=0;break;case"UP":case 1:n.userType=1;break;case"NORMAL_USER":case 2:n.userType=2;break;case"AUTHENTICATED_USER":case 3:n.userType=3;break}switch(i.userSort){default:if(typeof i.userSort=="number"){n.userSort=i.userSort;break}break;case"USER_SORT_DEFAULT":case 0:n.userSort=0;break;case"USER_SORT_FANS_DESCEND":case 1:n.userSort=1;break;case"USER_SORT_FANS_ASCEND":case 2:n.userSort=2;break;case"USER_SORT_LEVEL_DESCEND":case 3:n.userSort=3;break;case"USER_SORT_LEVEL_ASCEND":case 4:n.userSort=4;break}if(i.pagination!=null){if(typeof i.pagination!="object")throw TypeError(".bilibili.polymer.app.search.v1.SearchByTypeRequest.pagination: object expected");n.pagination=u.bilibili.pagination.Pagination.fromObject(i.pagination)}if(i.playerArgs!=null){if(typeof i.playerArgs!="object")throw TypeError(".bilibili.polymer.app.search.v1.SearchByTypeRequest.playerArgs: object expected");n.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.fromObject(i.playerArgs)}return n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(o.type=0,o.keyword="",o.categorySort=n.enums===String?"CATEGORY_SORT_DEFAULT":0,r.Long){let a=new r.Long(0,0,!1);o.categoryId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.categoryId=n.longs===String?"0":0;o.userType=n.enums===String?"ALL":0,o.userSort=n.enums===String?"USER_SORT_DEFAULT":0,o.pagination=null,o.playerArgs=null}return i.type!=null&&i.hasOwnProperty("type")&&(o.type=i.type),i.keyword!=null&&i.hasOwnProperty("keyword")&&(o.keyword=i.keyword),i.categorySort!=null&&i.hasOwnProperty("categorySort")&&(o.categorySort=n.enums===String?u.bilibili.polymer.app.search.v1.CategorySort[i.categorySort]===void 0?i.categorySort:u.bilibili.polymer.app.search.v1.CategorySort[i.categorySort]:i.categorySort),i.categoryId!=null&&i.hasOwnProperty("categoryId")&&(typeof i.categoryId=="number"?o.categoryId=n.longs===String?String(i.categoryId):i.categoryId:o.categoryId=n.longs===String?r.Long.prototype.toString.call(i.categoryId):n.longs===Number?new r.LongBits(i.categoryId.low>>>0,i.categoryId.high>>>0).toNumber():i.categoryId),i.userType!=null&&i.hasOwnProperty("userType")&&(o.userType=n.enums===String?u.bilibili.polymer.app.search.v1.UserType[i.userType]===void 0?i.userType:u.bilibili.polymer.app.search.v1.UserType[i.userType]:i.userType),i.userSort!=null&&i.hasOwnProperty("userSort")&&(o.userSort=n.enums===String?u.bilibili.polymer.app.search.v1.UserSort[i.userSort]===void 0?i.userSort:u.bilibili.polymer.app.search.v1.UserSort[i.userSort]:i.userSort),i.pagination!=null&&i.hasOwnProperty("pagination")&&(o.pagination=u.bilibili.pagination.Pagination.toObject(i.pagination,n)),i.playerArgs!=null&&i.hasOwnProperty("playerArgs")&&(o.playerArgs=u.bilibili.app.archive.middleware.v1.PlayerArgs.toObject(i.playerArgs,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.SearchByTypeRequest"},l}(),e.CategorySort=function(){let l={},t=Object.create(l);return t[l[0]="CATEGORY_SORT_DEFAULT"]=0,t[l[1]="CATEGORY_SORT_PUBLISH_TIME"]=1,t[l[2]="CATEGORY_SORT_CLICK_COUNT"]=2,t[l[3]="CATEGORY_SORT_COMMENT_COUNT"]=3,t[l[4]="CATEGORY_SORT_LIKE_COUNT"]=4,t}(),e.UserType=function(){let l={},t=Object.create(l);return t[l[0]="ALL"]=0,t[l[1]="UP"]=1,t[l[2]="NORMAL_USER"]=2,t[l[3]="AUTHENTICATED_USER"]=3,t}(),e.UserSort=function(){let l={},t=Object.create(l);return t[l[0]="USER_SORT_DEFAULT"]=0,t[l[1]="USER_SORT_FANS_DESCEND"]=1,t[l[2]="USER_SORT_FANS_ASCEND"]=2,t[l[3]="USER_SORT_LEVEL_DESCEND"]=3,t[l[4]="USER_SORT_LEVEL_ASCEND"]=4,t}(),e.PageOffset=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.page=i.int64();break}case 2:{a.qvId=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.PageOffset)return i;let n=new u.bilibili.polymer.app.search.v1.PageOffset;return i.page!=null&&(r.Long?(n.page=r.Long.fromValue(i.page)).unsigned=!1:typeof i.page=="string"?n.page=parseInt(i.page,10):typeof i.page=="number"?n.page=i.page:typeof i.page=="object"&&(n.page=new r.LongBits(i.page.low>>>0,i.page.high>>>0).toNumber())),i.qvId!=null&&(n.qvId=String(i.qvId)),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.page=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.page=n.longs===String?"0":0;o.qvId=""}return i.page!=null&&i.hasOwnProperty("page")&&(typeof i.page=="number"?o.page=n.longs===String?String(i.page):i.page:o.page=n.longs===String?r.Long.prototype.toString.call(i.page):n.longs===Number?new r.LongBits(i.page.low>>>0,i.page.high>>>0).toNumber():i.page),i.qvId!=null&&i.hasOwnProperty("qvId")&&(o.qvId=i.qvId),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.PageOffset"},l}(),e.SearchComicResponse=function(){function l(t){if(this.items=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.items&&a.items.length||(a.items=[]),a.items.push(u.bilibili.polymer.app.search.v1.SearchComicInfo.decode(i,i.uint32()));break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.SearchComicResponse)return i;let n=new u.bilibili.polymer.app.search.v1.SearchComicResponse;if(i.items){if(!Array.isArray(i.items))throw TypeError(".bilibili.polymer.app.search.v1.SearchComicResponse.items: array expected");n.items=[];for(let o=0;o>>3){case 1:{a.uri=i.string();break}case 2:{a.param=i.string();break}case 3:{a.comic=u.bilibili.polymer.app.search.v1.SearchComicCard.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.SearchComicInfo)return i;let n=new u.bilibili.polymer.app.search.v1.SearchComicInfo;if(i.uri!=null&&(n.uri=String(i.uri)),i.param!=null&&(n.param=String(i.param)),i.comic!=null){if(typeof i.comic!="object")throw TypeError(".bilibili.polymer.app.search.v1.SearchComicInfo.comic: object expected");n.comic=u.bilibili.polymer.app.search.v1.SearchComicCard.fromObject(i.comic)}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.uri="",o.param="",o.comic=null),i.uri!=null&&i.hasOwnProperty("uri")&&(o.uri=i.uri),i.param!=null&&i.hasOwnProperty("param")&&(o.param=i.param),i.comic!=null&&i.hasOwnProperty("comic")&&(o.comic=u.bilibili.polymer.app.search.v1.SearchComicCard.toObject(i.comic,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.SearchComicInfo"},l}(),e.SearchAllResponse=function(){function l(t){if(this.nav=[],this.item=[],this.extraWordList=[],this.annotation={},t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.keyword=i.string();break}case 2:{a.trackid=i.string();break}case 3:{a.nav&&a.nav.length||(a.nav=[]),a.nav.push(u.bilibili.polymer.app.search.v1.Nav.decode(i,i.uint32()));break}case 4:{a.item&&a.item.length||(a.item=[]),a.item.push(u.bilibili.polymer.app.search.v1.Item.decode(i,i.uint32()));break}case 5:{a.easterEgg=u.bilibili.polymer.app.search.v1.EasterEgg.decode(i,i.uint32());break}case 6:{a.expStr=i.string();break}case 7:{a.extraWordList&&a.extraWordList.length||(a.extraWordList=[]),a.extraWordList.push(i.string());break}case 8:{a.orgExtraWord=i.string();break}case 9:{a.selectBarType=i.int64();break}case 10:{a.newSearchExpNum=i.int64();break}case 11:{a.pagination=u.bilibili.pagination.PaginationReply.decode(i,i.uint32());break}case 12:{a.appDisplayOption=u.bilibili.polymer.app.search.v1.DisplayOption.decode(i,i.uint32());break}case 13:{a.annotation===r.emptyObject&&(a.annotation={});let g=i.uint32()+i.pos;for(y="",s="";i.pos>>3){case 1:y=i.string();break;case 2:s=i.string();break;default:i.skipType(S&7);break}}a.annotation[y]=s;break}case 14:{a.page=i.int64();break}case 15:{a.realExposureRatio=i.double();break}default:i.skipType(v&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.SearchAllResponse)return i;let n=new u.bilibili.polymer.app.search.v1.SearchAllResponse;if(i.keyword!=null&&(n.keyword=String(i.keyword)),i.trackid!=null&&(n.trackid=String(i.trackid)),i.nav){if(!Array.isArray(i.nav))throw TypeError(".bilibili.polymer.app.search.v1.SearchAllResponse.nav: array expected");n.nav=[];for(let o=0;o>>0,i.selectBarType.high>>>0).toNumber())),i.newSearchExpNum!=null&&(r.Long?(n.newSearchExpNum=r.Long.fromValue(i.newSearchExpNum)).unsigned=!1:typeof i.newSearchExpNum=="string"?n.newSearchExpNum=parseInt(i.newSearchExpNum,10):typeof i.newSearchExpNum=="number"?n.newSearchExpNum=i.newSearchExpNum:typeof i.newSearchExpNum=="object"&&(n.newSearchExpNum=new r.LongBits(i.newSearchExpNum.low>>>0,i.newSearchExpNum.high>>>0).toNumber())),i.pagination!=null){if(typeof i.pagination!="object")throw TypeError(".bilibili.polymer.app.search.v1.SearchAllResponse.pagination: object expected");n.pagination=u.bilibili.pagination.PaginationReply.fromObject(i.pagination)}if(i.appDisplayOption!=null){if(typeof i.appDisplayOption!="object")throw TypeError(".bilibili.polymer.app.search.v1.SearchAllResponse.appDisplayOption: object expected");n.appDisplayOption=u.bilibili.polymer.app.search.v1.DisplayOption.fromObject(i.appDisplayOption)}if(i.annotation){if(typeof i.annotation!="object")throw TypeError(".bilibili.polymer.app.search.v1.SearchAllResponse.annotation: object expected");n.annotation={};for(let o=Object.keys(i.annotation),a=0;a>>0,i.page.high>>>0).toNumber())),i.realExposureRatio!=null&&(n.realExposureRatio=Number(i.realExposureRatio)),n},l.toObject=function(i,n){n||(n={});let o={};if((n.arrays||n.defaults)&&(o.nav=[],o.item=[],o.extraWordList=[]),(n.objects||n.defaults)&&(o.annotation={}),n.defaults){if(o.keyword="",o.trackid="",o.easterEgg=null,o.expStr="",o.orgExtraWord="",r.Long){let y=new r.Long(0,0,!1);o.selectBarType=n.longs===String?y.toString():n.longs===Number?y.toNumber():y}else o.selectBarType=n.longs===String?"0":0;if(r.Long){let y=new r.Long(0,0,!1);o.newSearchExpNum=n.longs===String?y.toString():n.longs===Number?y.toNumber():y}else o.newSearchExpNum=n.longs===String?"0":0;if(o.pagination=null,o.appDisplayOption=null,r.Long){let y=new r.Long(0,0,!1);o.page=n.longs===String?y.toString():n.longs===Number?y.toNumber():y}else o.page=n.longs===String?"0":0;o.realExposureRatio=0}if(i.keyword!=null&&i.hasOwnProperty("keyword")&&(o.keyword=i.keyword),i.trackid!=null&&i.hasOwnProperty("trackid")&&(o.trackid=i.trackid),i.nav&&i.nav.length){o.nav=[];for(let y=0;y>>0,i.selectBarType.high>>>0).toNumber():i.selectBarType),i.newSearchExpNum!=null&&i.hasOwnProperty("newSearchExpNum")&&(typeof i.newSearchExpNum=="number"?o.newSearchExpNum=n.longs===String?String(i.newSearchExpNum):i.newSearchExpNum:o.newSearchExpNum=n.longs===String?r.Long.prototype.toString.call(i.newSearchExpNum):n.longs===Number?new r.LongBits(i.newSearchExpNum.low>>>0,i.newSearchExpNum.high>>>0).toNumber():i.newSearchExpNum),i.pagination!=null&&i.hasOwnProperty("pagination")&&(o.pagination=u.bilibili.pagination.PaginationReply.toObject(i.pagination,n)),i.appDisplayOption!=null&&i.hasOwnProperty("appDisplayOption")&&(o.appDisplayOption=u.bilibili.polymer.app.search.v1.DisplayOption.toObject(i.appDisplayOption,n));let a;if(i.annotation&&(a=Object.keys(i.annotation)).length){o.annotation={};for(let y=0;y>>0,i.page.high>>>0).toNumber():i.page),i.realExposureRatio!=null&&i.hasOwnProperty("realExposureRatio")&&(o.realExposureRatio=n.json&&!isFinite(i.realExposureRatio)?String(i.realExposureRatio):i.realExposureRatio),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.SearchAllResponse"},l}(),e.SearchByTypeResponse=function(){function l(t){if(this.items=[],this.annotation={},t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.trackid=i.string();break}case 2:{a.pages=i.int32();break}case 3:{a.expStr=i.string();break}case 4:{a.keyword=i.string();break}case 5:{a.resultIsRecommend=i.int32();break}case 6:{a.items&&a.items.length||(a.items=[]),a.items.push(u.bilibili.polymer.app.search.v1.Item.decode(i,i.uint32()));break}case 7:{a.pagination=u.bilibili.pagination.PaginationReply.decode(i,i.uint32());break}case 8:{a.annotation===r.emptyObject&&(a.annotation={});let g=i.uint32()+i.pos;for(y="",s="";i.pos>>3){case 1:y=i.string();break;case 2:s=i.string();break;default:i.skipType(S&7);break}}a.annotation[y]=s;break}case 9:{a.realExposureRatio=i.double();break}default:i.skipType(v&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.SearchByTypeResponse)return i;let n=new u.bilibili.polymer.app.search.v1.SearchByTypeResponse;if(i.trackid!=null&&(n.trackid=String(i.trackid)),i.pages!=null&&(n.pages=i.pages|0),i.expStr!=null&&(n.expStr=String(i.expStr)),i.keyword!=null&&(n.keyword=String(i.keyword)),i.resultIsRecommend!=null&&(n.resultIsRecommend=i.resultIsRecommend|0),i.items){if(!Array.isArray(i.items))throw TypeError(".bilibili.polymer.app.search.v1.SearchByTypeResponse.items: array expected");n.items=[];for(let o=0;o>>3){case 1:{y.uri=n.string();break}case 2:{y.param=n.string();break}case 3:{y.goto=n.string();break}case 4:{y.linktype=n.string();break}case 5:{y.position=n.int32();break}case 6:{y.trackid=n.string();break}case 7:{y.special=u.bilibili.polymer.app.search.v1.SearchSpecialCard.decode(n,n.uint32());break}case 8:{y.article=u.bilibili.polymer.app.search.v1.SearchArticleCard.decode(n,n.uint32());break}case 9:{y.banner=u.bilibili.polymer.app.search.v1.SearchBannerCard.decode(n,n.uint32());break}case 10:{y.live=u.bilibili.polymer.app.search.v1.SearchLiveCard.decode(n,n.uint32());break}case 11:{y.game=u.bilibili.polymer.app.search.v1.SearchGameCard.decode(n,n.uint32());break}case 12:{y.purchase=u.bilibili.polymer.app.search.v1.SearchPurchaseCard.decode(n,n.uint32());break}case 13:{y.recommendWord=u.bilibili.polymer.app.search.v1.SearchRecommendWordCard.decode(n,n.uint32());break}case 14:{y.dynamic=u.bilibili.polymer.app.search.v1.SearchDynamicCard.decode(n,n.uint32());break}case 15:{y.suggestKeyword=u.bilibili.polymer.app.search.v1.SearchNoResultSuggestWordCard.decode(n,n.uint32());break}case 16:{y.specialGuide=u.bilibili.polymer.app.search.v1.SearchSpecialGuideCard.decode(n,n.uint32());break}case 17:{y.comic=u.bilibili.polymer.app.search.v1.SearchComicCard.decode(n,n.uint32());break}case 18:{y.channelNew=u.bilibili.polymer.app.search.v1.SearchNewChannelCard.decode(n,n.uint32());break}case 19:{y.ogvCard=u.bilibili.polymer.app.search.v1.SearchOgvCard.decode(n,n.uint32());break}case 20:{y.bangumiRelates=u.bilibili.polymer.app.search.v1.SearchOgvRelationCard.decode(n,n.uint32());break}case 21:{y.findMore=u.bilibili.polymer.app.search.v1.SearchOgvRecommendCard.decode(n,n.uint32());break}case 22:{y.esport=u.bilibili.polymer.app.search.v1.SearchSportCard.decode(n,n.uint32());break}case 23:{y.authorNew=u.bilibili.polymer.app.search.v1.SearchAuthorNewCard.decode(n,n.uint32());break}case 24:{y.tips=u.bilibili.polymer.app.search.v1.SearchTipsCard.decode(n,n.uint32());break}case 25:{y.cm=u.bilibili.polymer.app.search.v1.SearchAdCard.decode(n,n.uint32());break}case 26:{y.pediaCard=u.bilibili.polymer.app.search.v1.SearchPediaCard.decode(n,n.uint32());break}case 27:{y.ugcInline=u.bilibili.polymer.app.search.v1.SearchUgcInlineCard.decode(n,n.uint32());break}case 28:{y.liveInline=u.bilibili.polymer.app.search.v1.SearchLiveInlineCard.decode(n,n.uint32());break}case 29:{y.topGame=u.bilibili.polymer.app.search.v1.SearchTopGameCard.decode(n,n.uint32());break}case 30:{y.sports=u.bilibili.polymer.app.search.v1.SearchOlympicGameCard.decode(n,n.uint32());break}case 31:{y.pediaCardInline=u.bilibili.polymer.app.search.v1.SearchOlympicWikiCard.decode(n,n.uint32());break}case 32:{y.recommendTips=u.bilibili.polymer.app.search.v1.SearchRecommendTipCard.decode(n,n.uint32());break}case 33:{y.collectionCard=u.bilibili.polymer.app.search.v1.SearchCollectionCard.decode(n,n.uint32());break}case 34:{y.ogvChannel=u.bilibili.polymer.app.search.v1.SearchOgvChannelCard.decode(n,n.uint32());break}case 35:{y.ogvInline=u.bilibili.polymer.app.search.v1.SearchOgvInlineCard.decode(n,n.uint32());break}case 36:{y.author=u.bilibili.polymer.app.search.v1.SearchUpperCard.decode(n,n.uint32());break}case 37:{y.av=u.bilibili.polymer.app.search.v1.SearchVideoCard.decode(n,n.uint32());break}case 38:{y.bangumi=u.bilibili.polymer.app.search.v1.SearchBangumiCard.decode(n,n.uint32());break}case 39:{y.esportsInline=u.bilibili.polymer.app.search.v1.SearchSportInlineCard.decode(n,n.uint32());break}case 40:{y.hotBanner=u.bilibili.polymer.app.search.v1.SearchHotBannerCard.decode(n,n.uint32());break}case 41:{y.subject=u.bilibili.polymer.app.search.v1.SearchSubjectCard.decode(n,n.uint32());break}case 42:{y.dynamicNew=u.bilibili.polymer.app.search.v1.SearchDynamicCard.decode(n,n.uint32());break}case 43:{y.articleNew=u.bilibili.polymer.app.search.v1.SearchArticleCard.decode(n,n.uint32());break}case 44:{y.pediaCardPic=u.bilibili.polymer.app.search.v1.SearchPediaPicCard.decode(n,n.uint32());break}case 45:{y.npsCard=u.bilibili.polymer.app.search.v1.SearchNPSCard.decode(n,n.uint32());break}case 46:{y.chatGpt=u.bilibili.polymer.app.search.v1.SearchChatGPTCard.decode(n,n.uint32());break}case 47:{y.hotRecommend=u.bilibili.polymer.app.search.v1.SearchHotRecommend.decode(n,n.uint32());break}case 48:{y.liveMaster=u.bilibili.polymer.app.search.v1.SearchLiveMaster.decode(n,n.uint32());break}case 49:{y.liveRoomTitle=u.bilibili.polymer.app.search.v1.SearchLiveRoomTitle.decode(n,n.uint32());break}case 50:{y.liveRoom=u.bilibili.polymer.app.search.v1.SearchLiveRoom.decode(n,n.uint32());break}case 51:{y.cheese=u.bilibili.polymer.app.search.v1.SearchCheese.decode(n,n.uint32());break}case 52:{y.relatedSearch=u.bilibili.polymer.app.search.v1.SearchRelatedSearch.decode(n,n.uint32());break}default:n.skipType(s&7);break}}return y},l.fromObject=function(n){if(n instanceof u.bilibili.polymer.app.search.v1.Item)return n;let o=new u.bilibili.polymer.app.search.v1.Item;if(n.uri!=null&&(o.uri=String(n.uri)),n.param!=null&&(o.param=String(n.param)),n.goto!=null&&(o.goto=String(n.goto)),n.linktype!=null&&(o.linktype=String(n.linktype)),n.position!=null&&(o.position=n.position|0),n.trackid!=null&&(o.trackid=String(n.trackid)),n.special!=null){if(typeof n.special!="object")throw TypeError(".bilibili.polymer.app.search.v1.Item.special: object expected");o.special=u.bilibili.polymer.app.search.v1.SearchSpecialCard.fromObject(n.special)}if(n.article!=null){if(typeof n.article!="object")throw TypeError(".bilibili.polymer.app.search.v1.Item.article: object expected");o.article=u.bilibili.polymer.app.search.v1.SearchArticleCard.fromObject(n.article)}if(n.banner!=null){if(typeof n.banner!="object")throw TypeError(".bilibili.polymer.app.search.v1.Item.banner: object expected");o.banner=u.bilibili.polymer.app.search.v1.SearchBannerCard.fromObject(n.banner)}if(n.live!=null){if(typeof n.live!="object")throw TypeError(".bilibili.polymer.app.search.v1.Item.live: object expected");o.live=u.bilibili.polymer.app.search.v1.SearchLiveCard.fromObject(n.live)}if(n.game!=null){if(typeof n.game!="object")throw TypeError(".bilibili.polymer.app.search.v1.Item.game: object expected");o.game=u.bilibili.polymer.app.search.v1.SearchGameCard.fromObject(n.game)}if(n.purchase!=null){if(typeof n.purchase!="object")throw TypeError(".bilibili.polymer.app.search.v1.Item.purchase: object expected");o.purchase=u.bilibili.polymer.app.search.v1.SearchPurchaseCard.fromObject(n.purchase)}if(n.recommendWord!=null){if(typeof n.recommendWord!="object")throw TypeError(".bilibili.polymer.app.search.v1.Item.recommendWord: object expected");o.recommendWord=u.bilibili.polymer.app.search.v1.SearchRecommendWordCard.fromObject(n.recommendWord)}if(n.dynamic!=null){if(typeof n.dynamic!="object")throw TypeError(".bilibili.polymer.app.search.v1.Item.dynamic: object expected");o.dynamic=u.bilibili.polymer.app.search.v1.SearchDynamicCard.fromObject(n.dynamic)}if(n.suggestKeyword!=null){if(typeof n.suggestKeyword!="object")throw TypeError(".bilibili.polymer.app.search.v1.Item.suggestKeyword: object expected");o.suggestKeyword=u.bilibili.polymer.app.search.v1.SearchNoResultSuggestWordCard.fromObject(n.suggestKeyword)}if(n.specialGuide!=null){if(typeof n.specialGuide!="object")throw TypeError(".bilibili.polymer.app.search.v1.Item.specialGuide: object expected");o.specialGuide=u.bilibili.polymer.app.search.v1.SearchSpecialGuideCard.fromObject(n.specialGuide)}if(n.comic!=null){if(typeof n.comic!="object")throw TypeError(".bilibili.polymer.app.search.v1.Item.comic: object expected");o.comic=u.bilibili.polymer.app.search.v1.SearchComicCard.fromObject(n.comic)}if(n.channelNew!=null){if(typeof n.channelNew!="object")throw TypeError(".bilibili.polymer.app.search.v1.Item.channelNew: object expected");o.channelNew=u.bilibili.polymer.app.search.v1.SearchNewChannelCard.fromObject(n.channelNew)}if(n.ogvCard!=null){if(typeof n.ogvCard!="object")throw TypeError(".bilibili.polymer.app.search.v1.Item.ogvCard: object expected");o.ogvCard=u.bilibili.polymer.app.search.v1.SearchOgvCard.fromObject(n.ogvCard)}if(n.bangumiRelates!=null){if(typeof n.bangumiRelates!="object")throw TypeError(".bilibili.polymer.app.search.v1.Item.bangumiRelates: object expected");o.bangumiRelates=u.bilibili.polymer.app.search.v1.SearchOgvRelationCard.fromObject(n.bangumiRelates)}if(n.findMore!=null){if(typeof n.findMore!="object")throw TypeError(".bilibili.polymer.app.search.v1.Item.findMore: object expected");o.findMore=u.bilibili.polymer.app.search.v1.SearchOgvRecommendCard.fromObject(n.findMore)}if(n.esport!=null){if(typeof n.esport!="object")throw TypeError(".bilibili.polymer.app.search.v1.Item.esport: object expected");o.esport=u.bilibili.polymer.app.search.v1.SearchSportCard.fromObject(n.esport)}if(n.authorNew!=null){if(typeof n.authorNew!="object")throw TypeError(".bilibili.polymer.app.search.v1.Item.authorNew: object expected");o.authorNew=u.bilibili.polymer.app.search.v1.SearchAuthorNewCard.fromObject(n.authorNew)}if(n.tips!=null){if(typeof n.tips!="object")throw TypeError(".bilibili.polymer.app.search.v1.Item.tips: object expected");o.tips=u.bilibili.polymer.app.search.v1.SearchTipsCard.fromObject(n.tips)}if(n.cm!=null){if(typeof n.cm!="object")throw TypeError(".bilibili.polymer.app.search.v1.Item.cm: object expected");o.cm=u.bilibili.polymer.app.search.v1.SearchAdCard.fromObject(n.cm)}if(n.pediaCard!=null){if(typeof n.pediaCard!="object")throw TypeError(".bilibili.polymer.app.search.v1.Item.pediaCard: object expected");o.pediaCard=u.bilibili.polymer.app.search.v1.SearchPediaCard.fromObject(n.pediaCard)}if(n.ugcInline!=null){if(typeof n.ugcInline!="object")throw TypeError(".bilibili.polymer.app.search.v1.Item.ugcInline: object expected");o.ugcInline=u.bilibili.polymer.app.search.v1.SearchUgcInlineCard.fromObject(n.ugcInline)}if(n.liveInline!=null){if(typeof n.liveInline!="object")throw TypeError(".bilibili.polymer.app.search.v1.Item.liveInline: object expected");o.liveInline=u.bilibili.polymer.app.search.v1.SearchLiveInlineCard.fromObject(n.liveInline)}if(n.topGame!=null){if(typeof n.topGame!="object")throw TypeError(".bilibili.polymer.app.search.v1.Item.topGame: object expected");o.topGame=u.bilibili.polymer.app.search.v1.SearchTopGameCard.fromObject(n.topGame)}if(n.sports!=null){if(typeof n.sports!="object")throw TypeError(".bilibili.polymer.app.search.v1.Item.sports: object expected");o.sports=u.bilibili.polymer.app.search.v1.SearchOlympicGameCard.fromObject(n.sports)}if(n.pediaCardInline!=null){if(typeof n.pediaCardInline!="object")throw TypeError(".bilibili.polymer.app.search.v1.Item.pediaCardInline: object expected");o.pediaCardInline=u.bilibili.polymer.app.search.v1.SearchOlympicWikiCard.fromObject(n.pediaCardInline)}if(n.recommendTips!=null){if(typeof n.recommendTips!="object")throw TypeError(".bilibili.polymer.app.search.v1.Item.recommendTips: object expected");o.recommendTips=u.bilibili.polymer.app.search.v1.SearchRecommendTipCard.fromObject(n.recommendTips)}if(n.collectionCard!=null){if(typeof n.collectionCard!="object")throw TypeError(".bilibili.polymer.app.search.v1.Item.collectionCard: object expected");o.collectionCard=u.bilibili.polymer.app.search.v1.SearchCollectionCard.fromObject(n.collectionCard)}if(n.ogvChannel!=null){if(typeof n.ogvChannel!="object")throw TypeError(".bilibili.polymer.app.search.v1.Item.ogvChannel: object expected");o.ogvChannel=u.bilibili.polymer.app.search.v1.SearchOgvChannelCard.fromObject(n.ogvChannel)}if(n.ogvInline!=null){if(typeof n.ogvInline!="object")throw TypeError(".bilibili.polymer.app.search.v1.Item.ogvInline: object expected");o.ogvInline=u.bilibili.polymer.app.search.v1.SearchOgvInlineCard.fromObject(n.ogvInline)}if(n.author!=null){if(typeof n.author!="object")throw TypeError(".bilibili.polymer.app.search.v1.Item.author: object expected");o.author=u.bilibili.polymer.app.search.v1.SearchUpperCard.fromObject(n.author)}if(n.av!=null){if(typeof n.av!="object")throw TypeError(".bilibili.polymer.app.search.v1.Item.av: object expected");o.av=u.bilibili.polymer.app.search.v1.SearchVideoCard.fromObject(n.av)}if(n.bangumi!=null){if(typeof n.bangumi!="object")throw TypeError(".bilibili.polymer.app.search.v1.Item.bangumi: object expected");o.bangumi=u.bilibili.polymer.app.search.v1.SearchBangumiCard.fromObject(n.bangumi)}if(n.esportsInline!=null){if(typeof n.esportsInline!="object")throw TypeError(".bilibili.polymer.app.search.v1.Item.esportsInline: object expected");o.esportsInline=u.bilibili.polymer.app.search.v1.SearchSportInlineCard.fromObject(n.esportsInline)}if(n.hotBanner!=null){if(typeof n.hotBanner!="object")throw TypeError(".bilibili.polymer.app.search.v1.Item.hotBanner: object expected");o.hotBanner=u.bilibili.polymer.app.search.v1.SearchHotBannerCard.fromObject(n.hotBanner)}if(n.subject!=null){if(typeof n.subject!="object")throw TypeError(".bilibili.polymer.app.search.v1.Item.subject: object expected");o.subject=u.bilibili.polymer.app.search.v1.SearchSubjectCard.fromObject(n.subject)}if(n.dynamicNew!=null){if(typeof n.dynamicNew!="object")throw TypeError(".bilibili.polymer.app.search.v1.Item.dynamicNew: object expected");o.dynamicNew=u.bilibili.polymer.app.search.v1.SearchDynamicCard.fromObject(n.dynamicNew)}if(n.articleNew!=null){if(typeof n.articleNew!="object")throw TypeError(".bilibili.polymer.app.search.v1.Item.articleNew: object expected");o.articleNew=u.bilibili.polymer.app.search.v1.SearchArticleCard.fromObject(n.articleNew)}if(n.pediaCardPic!=null){if(typeof n.pediaCardPic!="object")throw TypeError(".bilibili.polymer.app.search.v1.Item.pediaCardPic: object expected");o.pediaCardPic=u.bilibili.polymer.app.search.v1.SearchPediaPicCard.fromObject(n.pediaCardPic)}if(n.npsCard!=null){if(typeof n.npsCard!="object")throw TypeError(".bilibili.polymer.app.search.v1.Item.npsCard: object expected");o.npsCard=u.bilibili.polymer.app.search.v1.SearchNPSCard.fromObject(n.npsCard)}if(n.chatGpt!=null){if(typeof n.chatGpt!="object")throw TypeError(".bilibili.polymer.app.search.v1.Item.chatGpt: object expected");o.chatGpt=u.bilibili.polymer.app.search.v1.SearchChatGPTCard.fromObject(n.chatGpt)}if(n.hotRecommend!=null){if(typeof n.hotRecommend!="object")throw TypeError(".bilibili.polymer.app.search.v1.Item.hotRecommend: object expected");o.hotRecommend=u.bilibili.polymer.app.search.v1.SearchHotRecommend.fromObject(n.hotRecommend)}if(n.liveMaster!=null){if(typeof n.liveMaster!="object")throw TypeError(".bilibili.polymer.app.search.v1.Item.liveMaster: object expected");o.liveMaster=u.bilibili.polymer.app.search.v1.SearchLiveMaster.fromObject(n.liveMaster)}if(n.liveRoomTitle!=null){if(typeof n.liveRoomTitle!="object")throw TypeError(".bilibili.polymer.app.search.v1.Item.liveRoomTitle: object expected");o.liveRoomTitle=u.bilibili.polymer.app.search.v1.SearchLiveRoomTitle.fromObject(n.liveRoomTitle)}if(n.liveRoom!=null){if(typeof n.liveRoom!="object")throw TypeError(".bilibili.polymer.app.search.v1.Item.liveRoom: object expected");o.liveRoom=u.bilibili.polymer.app.search.v1.SearchLiveRoom.fromObject(n.liveRoom)}if(n.cheese!=null){if(typeof n.cheese!="object")throw TypeError(".bilibili.polymer.app.search.v1.Item.cheese: object expected");o.cheese=u.bilibili.polymer.app.search.v1.SearchCheese.fromObject(n.cheese)}if(n.relatedSearch!=null){if(typeof n.relatedSearch!="object")throw TypeError(".bilibili.polymer.app.search.v1.Item.relatedSearch: object expected");o.relatedSearch=u.bilibili.polymer.app.search.v1.SearchRelatedSearch.fromObject(n.relatedSearch)}return o},l.toObject=function(n,o){o||(o={});let a={};return o.defaults&&(a.uri="",a.param="",a.goto="",a.linktype="",a.position=0,a.trackid=""),n.uri!=null&&n.hasOwnProperty("uri")&&(a.uri=n.uri),n.param!=null&&n.hasOwnProperty("param")&&(a.param=n.param),n.goto!=null&&n.hasOwnProperty("goto")&&(a.goto=n.goto),n.linktype!=null&&n.hasOwnProperty("linktype")&&(a.linktype=n.linktype),n.position!=null&&n.hasOwnProperty("position")&&(a.position=n.position),n.trackid!=null&&n.hasOwnProperty("trackid")&&(a.trackid=n.trackid),n.special!=null&&n.hasOwnProperty("special")&&(a.special=u.bilibili.polymer.app.search.v1.SearchSpecialCard.toObject(n.special,o),o.oneofs&&(a.cardItem="special")),n.article!=null&&n.hasOwnProperty("article")&&(a.article=u.bilibili.polymer.app.search.v1.SearchArticleCard.toObject(n.article,o),o.oneofs&&(a.cardItem="article")),n.banner!=null&&n.hasOwnProperty("banner")&&(a.banner=u.bilibili.polymer.app.search.v1.SearchBannerCard.toObject(n.banner,o),o.oneofs&&(a.cardItem="banner")),n.live!=null&&n.hasOwnProperty("live")&&(a.live=u.bilibili.polymer.app.search.v1.SearchLiveCard.toObject(n.live,o),o.oneofs&&(a.cardItem="live")),n.game!=null&&n.hasOwnProperty("game")&&(a.game=u.bilibili.polymer.app.search.v1.SearchGameCard.toObject(n.game,o),o.oneofs&&(a.cardItem="game")),n.purchase!=null&&n.hasOwnProperty("purchase")&&(a.purchase=u.bilibili.polymer.app.search.v1.SearchPurchaseCard.toObject(n.purchase,o),o.oneofs&&(a.cardItem="purchase")),n.recommendWord!=null&&n.hasOwnProperty("recommendWord")&&(a.recommendWord=u.bilibili.polymer.app.search.v1.SearchRecommendWordCard.toObject(n.recommendWord,o),o.oneofs&&(a.cardItem="recommendWord")),n.dynamic!=null&&n.hasOwnProperty("dynamic")&&(a.dynamic=u.bilibili.polymer.app.search.v1.SearchDynamicCard.toObject(n.dynamic,o),o.oneofs&&(a.cardItem="dynamic")),n.suggestKeyword!=null&&n.hasOwnProperty("suggestKeyword")&&(a.suggestKeyword=u.bilibili.polymer.app.search.v1.SearchNoResultSuggestWordCard.toObject(n.suggestKeyword,o),o.oneofs&&(a.cardItem="suggestKeyword")),n.specialGuide!=null&&n.hasOwnProperty("specialGuide")&&(a.specialGuide=u.bilibili.polymer.app.search.v1.SearchSpecialGuideCard.toObject(n.specialGuide,o),o.oneofs&&(a.cardItem="specialGuide")),n.comic!=null&&n.hasOwnProperty("comic")&&(a.comic=u.bilibili.polymer.app.search.v1.SearchComicCard.toObject(n.comic,o),o.oneofs&&(a.cardItem="comic")),n.channelNew!=null&&n.hasOwnProperty("channelNew")&&(a.channelNew=u.bilibili.polymer.app.search.v1.SearchNewChannelCard.toObject(n.channelNew,o),o.oneofs&&(a.cardItem="channelNew")),n.ogvCard!=null&&n.hasOwnProperty("ogvCard")&&(a.ogvCard=u.bilibili.polymer.app.search.v1.SearchOgvCard.toObject(n.ogvCard,o),o.oneofs&&(a.cardItem="ogvCard")),n.bangumiRelates!=null&&n.hasOwnProperty("bangumiRelates")&&(a.bangumiRelates=u.bilibili.polymer.app.search.v1.SearchOgvRelationCard.toObject(n.bangumiRelates,o),o.oneofs&&(a.cardItem="bangumiRelates")),n.findMore!=null&&n.hasOwnProperty("findMore")&&(a.findMore=u.bilibili.polymer.app.search.v1.SearchOgvRecommendCard.toObject(n.findMore,o),o.oneofs&&(a.cardItem="findMore")),n.esport!=null&&n.hasOwnProperty("esport")&&(a.esport=u.bilibili.polymer.app.search.v1.SearchSportCard.toObject(n.esport,o),o.oneofs&&(a.cardItem="esport")),n.authorNew!=null&&n.hasOwnProperty("authorNew")&&(a.authorNew=u.bilibili.polymer.app.search.v1.SearchAuthorNewCard.toObject(n.authorNew,o),o.oneofs&&(a.cardItem="authorNew")),n.tips!=null&&n.hasOwnProperty("tips")&&(a.tips=u.bilibili.polymer.app.search.v1.SearchTipsCard.toObject(n.tips,o),o.oneofs&&(a.cardItem="tips")),n.cm!=null&&n.hasOwnProperty("cm")&&(a.cm=u.bilibili.polymer.app.search.v1.SearchAdCard.toObject(n.cm,o),o.oneofs&&(a.cardItem="cm")),n.pediaCard!=null&&n.hasOwnProperty("pediaCard")&&(a.pediaCard=u.bilibili.polymer.app.search.v1.SearchPediaCard.toObject(n.pediaCard,o),o.oneofs&&(a.cardItem="pediaCard")),n.ugcInline!=null&&n.hasOwnProperty("ugcInline")&&(a.ugcInline=u.bilibili.polymer.app.search.v1.SearchUgcInlineCard.toObject(n.ugcInline,o),o.oneofs&&(a.cardItem="ugcInline")),n.liveInline!=null&&n.hasOwnProperty("liveInline")&&(a.liveInline=u.bilibili.polymer.app.search.v1.SearchLiveInlineCard.toObject(n.liveInline,o),o.oneofs&&(a.cardItem="liveInline")),n.topGame!=null&&n.hasOwnProperty("topGame")&&(a.topGame=u.bilibili.polymer.app.search.v1.SearchTopGameCard.toObject(n.topGame,o),o.oneofs&&(a.cardItem="topGame")),n.sports!=null&&n.hasOwnProperty("sports")&&(a.sports=u.bilibili.polymer.app.search.v1.SearchOlympicGameCard.toObject(n.sports,o),o.oneofs&&(a.cardItem="sports")),n.pediaCardInline!=null&&n.hasOwnProperty("pediaCardInline")&&(a.pediaCardInline=u.bilibili.polymer.app.search.v1.SearchOlympicWikiCard.toObject(n.pediaCardInline,o),o.oneofs&&(a.cardItem="pediaCardInline")),n.recommendTips!=null&&n.hasOwnProperty("recommendTips")&&(a.recommendTips=u.bilibili.polymer.app.search.v1.SearchRecommendTipCard.toObject(n.recommendTips,o),o.oneofs&&(a.cardItem="recommendTips")),n.collectionCard!=null&&n.hasOwnProperty("collectionCard")&&(a.collectionCard=u.bilibili.polymer.app.search.v1.SearchCollectionCard.toObject(n.collectionCard,o),o.oneofs&&(a.cardItem="collectionCard")),n.ogvChannel!=null&&n.hasOwnProperty("ogvChannel")&&(a.ogvChannel=u.bilibili.polymer.app.search.v1.SearchOgvChannelCard.toObject(n.ogvChannel,o),o.oneofs&&(a.cardItem="ogvChannel")),n.ogvInline!=null&&n.hasOwnProperty("ogvInline")&&(a.ogvInline=u.bilibili.polymer.app.search.v1.SearchOgvInlineCard.toObject(n.ogvInline,o),o.oneofs&&(a.cardItem="ogvInline")),n.author!=null&&n.hasOwnProperty("author")&&(a.author=u.bilibili.polymer.app.search.v1.SearchUpperCard.toObject(n.author,o),o.oneofs&&(a.cardItem="author")),n.av!=null&&n.hasOwnProperty("av")&&(a.av=u.bilibili.polymer.app.search.v1.SearchVideoCard.toObject(n.av,o),o.oneofs&&(a.cardItem="av")),n.bangumi!=null&&n.hasOwnProperty("bangumi")&&(a.bangumi=u.bilibili.polymer.app.search.v1.SearchBangumiCard.toObject(n.bangumi,o),o.oneofs&&(a.cardItem="bangumi")),n.esportsInline!=null&&n.hasOwnProperty("esportsInline")&&(a.esportsInline=u.bilibili.polymer.app.search.v1.SearchSportInlineCard.toObject(n.esportsInline,o),o.oneofs&&(a.cardItem="esportsInline")),n.hotBanner!=null&&n.hasOwnProperty("hotBanner")&&(a.hotBanner=u.bilibili.polymer.app.search.v1.SearchHotBannerCard.toObject(n.hotBanner,o),o.oneofs&&(a.cardItem="hotBanner")),n.subject!=null&&n.hasOwnProperty("subject")&&(a.subject=u.bilibili.polymer.app.search.v1.SearchSubjectCard.toObject(n.subject,o),o.oneofs&&(a.cardItem="subject")),n.dynamicNew!=null&&n.hasOwnProperty("dynamicNew")&&(a.dynamicNew=u.bilibili.polymer.app.search.v1.SearchDynamicCard.toObject(n.dynamicNew,o),o.oneofs&&(a.cardItem="dynamicNew")),n.articleNew!=null&&n.hasOwnProperty("articleNew")&&(a.articleNew=u.bilibili.polymer.app.search.v1.SearchArticleCard.toObject(n.articleNew,o),o.oneofs&&(a.cardItem="articleNew")),n.pediaCardPic!=null&&n.hasOwnProperty("pediaCardPic")&&(a.pediaCardPic=u.bilibili.polymer.app.search.v1.SearchPediaPicCard.toObject(n.pediaCardPic,o),o.oneofs&&(a.cardItem="pediaCardPic")),n.npsCard!=null&&n.hasOwnProperty("npsCard")&&(a.npsCard=u.bilibili.polymer.app.search.v1.SearchNPSCard.toObject(n.npsCard,o),o.oneofs&&(a.cardItem="npsCard")),n.chatGpt!=null&&n.hasOwnProperty("chatGpt")&&(a.chatGpt=u.bilibili.polymer.app.search.v1.SearchChatGPTCard.toObject(n.chatGpt,o),o.oneofs&&(a.cardItem="chatGpt")),n.hotRecommend!=null&&n.hasOwnProperty("hotRecommend")&&(a.hotRecommend=u.bilibili.polymer.app.search.v1.SearchHotRecommend.toObject(n.hotRecommend,o),o.oneofs&&(a.cardItem="hotRecommend")),n.liveMaster!=null&&n.hasOwnProperty("liveMaster")&&(a.liveMaster=u.bilibili.polymer.app.search.v1.SearchLiveMaster.toObject(n.liveMaster,o),o.oneofs&&(a.cardItem="liveMaster")),n.liveRoomTitle!=null&&n.hasOwnProperty("liveRoomTitle")&&(a.liveRoomTitle=u.bilibili.polymer.app.search.v1.SearchLiveRoomTitle.toObject(n.liveRoomTitle,o),o.oneofs&&(a.cardItem="liveRoomTitle")),n.liveRoom!=null&&n.hasOwnProperty("liveRoom")&&(a.liveRoom=u.bilibili.polymer.app.search.v1.SearchLiveRoom.toObject(n.liveRoom,o),o.oneofs&&(a.cardItem="liveRoom")),n.cheese!=null&&n.hasOwnProperty("cheese")&&(a.cheese=u.bilibili.polymer.app.search.v1.SearchCheese.toObject(n.cheese,o),o.oneofs&&(a.cardItem="cheese")),n.relatedSearch!=null&&n.hasOwnProperty("relatedSearch")&&(a.relatedSearch=u.bilibili.polymer.app.search.v1.SearchRelatedSearch.toObject(n.relatedSearch,o),o.oneofs&&(a.cardItem="relatedSearch")),a},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/bilibili.polymer.app.search.v1.Item"},l}(),e.SearchUpperCard=function(){function l(t){if(this.avItems=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.title=i.string();break}case 2:{a.cover=i.string();break}case 3:{a.sign=i.string();break}case 4:{a.fans=i.int32();break}case 5:{a.archives=i.int32();break}case 6:{a.liveStatus=i.int32();break}case 7:{a.roomid=i.int32();break}case 8:{a.officialVerify=u.bilibili.polymer.app.search.v1.OfficialVerify.decode(i,i.uint32());break}case 9:{a.faceNftNew=i.int32();break}case 10:{a.nftFaceIcon=u.bilibili.polymer.app.search.v1.NftFaceIcon.decode(i,i.uint32());break}case 11:{a.avItems&&a.avItems.length||(a.avItems=[]),a.avItems.push(u.bilibili.polymer.app.search.v1.AvItem.decode(i,i.uint32()));break}case 12:{a.isUp=i.bool();break}case 13:{a.attentions=i.int32();break}case 14:{a.level=i.int32();break}case 15:{a.isSeniorMember=i.int32();break}case 16:{a.vip=u.bilibili.polymer.app.search.v1.VipInfo.decode(i,i.uint32());break}case 17:{a.relation=u.bilibili.polymer.app.search.v1.Relation.decode(i,i.uint32());break}case 18:{a.liveLink=i.string();break}case 19:{a.notice=u.bilibili.polymer.app.search.v1.Notice.decode(i,i.uint32());break}case 20:{a.avatarInfo=u.bilibili.dagw.component.avatar.v1.AvatarItem.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.SearchUpperCard)return i;let n=new u.bilibili.polymer.app.search.v1.SearchUpperCard;if(i.title!=null&&(n.title=String(i.title)),i.cover!=null&&(n.cover=String(i.cover)),i.sign!=null&&(n.sign=String(i.sign)),i.fans!=null&&(n.fans=i.fans|0),i.archives!=null&&(n.archives=i.archives|0),i.liveStatus!=null&&(n.liveStatus=i.liveStatus|0),i.roomid!=null&&(n.roomid=i.roomid|0),i.officialVerify!=null){if(typeof i.officialVerify!="object")throw TypeError(".bilibili.polymer.app.search.v1.SearchUpperCard.officialVerify: object expected");n.officialVerify=u.bilibili.polymer.app.search.v1.OfficialVerify.fromObject(i.officialVerify)}if(i.faceNftNew!=null&&(n.faceNftNew=i.faceNftNew|0),i.nftFaceIcon!=null){if(typeof i.nftFaceIcon!="object")throw TypeError(".bilibili.polymer.app.search.v1.SearchUpperCard.nftFaceIcon: object expected");n.nftFaceIcon=u.bilibili.polymer.app.search.v1.NftFaceIcon.fromObject(i.nftFaceIcon)}if(i.avItems){if(!Array.isArray(i.avItems))throw TypeError(".bilibili.polymer.app.search.v1.SearchUpperCard.avItems: array expected");n.avItems=[];for(let o=0;o>>3){case 1:{a.title=i.string();break}case 2:{a.cover=i.string();break}case 3:{a.rcmdReason=u.bilibili.polymer.app.search.v1.RcmdReason.decode(i,i.uint32());break}case 4:{a.newRecTags&&a.newRecTags.length||(a.newRecTags=[]),a.newRecTags.push(u.bilibili.polymer.app.search.v1.ReasonStyle.decode(i,i.uint32()));break}case 5:{a.threePoint&&a.threePoint.length||(a.threePoint=[]),a.threePoint.push(u.bilibili.polymer.app.search.v1.ThreePoint.decode(i,i.uint32()));break}case 6:{a.share=u.bilibili.polymer.app.search.v1.Share.decode(i,i.uint32());break}case 7:{a.cardBusinessBadge=u.bilibili.polymer.app.search.v1.CardBusinessBadge.decode(i,i.uint32());break}case 8:{a.play=i.int32();break}case 9:{a.danmaku=i.int32();break}case 10:{a.author=i.string();break}case 11:{a.desc=i.string();break}case 12:{a.duration=i.string();break}case 13:{a.badges&&a.badges.length||(a.badges=[]),a.badges.push(u.bilibili.polymer.app.search.v1.ReasonStyle.decode(i,i.uint32()));break}case 14:{a.mid=i.int64();break}case 15:{a.showCardDesc_1=i.string();break}case 16:{a.showCardDesc_2=i.string();break}case 17:{a.fullText=u.bilibili.polymer.app.search.v1.FullTextResult.decode(i,i.uint32());break}case 18:{a.newRecTagsV2&&a.newRecTagsV2.length||(a.newRecTagsV2=[]),a.newRecTagsV2.push(u.bilibili.polymer.app.search.v1.ReasonStyle.decode(i,i.uint32()));break}case 19:{a.badgesV2&&a.badgesV2.length||(a.badgesV2=[]),a.badgesV2.push(u.bilibili.polymer.app.search.v1.ReasonStyle.decode(i,i.uint32()));break}case 20:{a.feedback=u.bilibili.polymer.app.search.v1.Feedback.decode(i,i.uint32());break}case 21:{a.timeLine=u.bilibili.polymer.app.search.v1.TimeLine.decode(i,i.uint32());break}case 22:{a.face=i.string();break}case 23:{a.ptime=i.int64();break}case 24:{a.viewContent=i.string();break}case 25:{a.iconType=i.int32();break}case 26:{a.foldingTimeLine=u.bilibili.polymer.app.search.v1.FoldingTimeLine.decode(i,i.uint32());break}case 27:{a.chargingLabel=u.bilibili.polymer.app.search.v1.LabelStyle.decode(i,i.uint32());break}case 28:{a.cardLayout=u.bilibili.polymer.app.search.v1.CardLayout.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.SearchVideoCard)return i;let n=new u.bilibili.polymer.app.search.v1.SearchVideoCard;if(i.title!=null&&(n.title=String(i.title)),i.cover!=null&&(n.cover=String(i.cover)),i.rcmdReason!=null){if(typeof i.rcmdReason!="object")throw TypeError(".bilibili.polymer.app.search.v1.SearchVideoCard.rcmdReason: object expected");n.rcmdReason=u.bilibili.polymer.app.search.v1.RcmdReason.fromObject(i.rcmdReason)}if(i.newRecTags){if(!Array.isArray(i.newRecTags))throw TypeError(".bilibili.polymer.app.search.v1.SearchVideoCard.newRecTags: array expected");n.newRecTags=[];for(let o=0;o>>0,i.mid.high>>>0).toNumber())),i.showCardDesc_1!=null&&(n.showCardDesc_1=String(i.showCardDesc_1)),i.showCardDesc_2!=null&&(n.showCardDesc_2=String(i.showCardDesc_2)),i.fullText!=null){if(typeof i.fullText!="object")throw TypeError(".bilibili.polymer.app.search.v1.SearchVideoCard.fullText: object expected");n.fullText=u.bilibili.polymer.app.search.v1.FullTextResult.fromObject(i.fullText)}if(i.newRecTagsV2){if(!Array.isArray(i.newRecTagsV2))throw TypeError(".bilibili.polymer.app.search.v1.SearchVideoCard.newRecTagsV2: array expected");n.newRecTagsV2=[];for(let o=0;o>>0,i.ptime.high>>>0).toNumber())),i.viewContent!=null&&(n.viewContent=String(i.viewContent)),i.iconType!=null&&(n.iconType=i.iconType|0),i.foldingTimeLine!=null){if(typeof i.foldingTimeLine!="object")throw TypeError(".bilibili.polymer.app.search.v1.SearchVideoCard.foldingTimeLine: object expected");n.foldingTimeLine=u.bilibili.polymer.app.search.v1.FoldingTimeLine.fromObject(i.foldingTimeLine)}if(i.chargingLabel!=null){if(typeof i.chargingLabel!="object")throw TypeError(".bilibili.polymer.app.search.v1.SearchVideoCard.chargingLabel: object expected");n.chargingLabel=u.bilibili.polymer.app.search.v1.LabelStyle.fromObject(i.chargingLabel)}if(i.cardLayout!=null){if(typeof i.cardLayout!="object")throw TypeError(".bilibili.polymer.app.search.v1.SearchVideoCard.cardLayout: object expected");n.cardLayout=u.bilibili.polymer.app.search.v1.CardLayout.fromObject(i.cardLayout)}return n},l.toObject=function(i,n){n||(n={});let o={};if((n.arrays||n.defaults)&&(o.newRecTags=[],o.threePoint=[],o.badges=[],o.newRecTagsV2=[],o.badgesV2=[]),n.defaults){if(o.title="",o.cover="",o.rcmdReason=null,o.share=null,o.cardBusinessBadge=null,o.play=0,o.danmaku=0,o.author="",o.desc="",o.duration="",r.Long){let a=new r.Long(0,0,!1);o.mid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.mid=n.longs===String?"0":0;if(o.showCardDesc_1="",o.showCardDesc_2="",o.fullText=null,o.feedback=null,o.timeLine=null,o.face="",r.Long){let a=new r.Long(0,0,!1);o.ptime=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.ptime=n.longs===String?"0":0;o.viewContent="",o.iconType=0,o.foldingTimeLine=null,o.chargingLabel=null,o.cardLayout=null}if(i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.cover!=null&&i.hasOwnProperty("cover")&&(o.cover=i.cover),i.rcmdReason!=null&&i.hasOwnProperty("rcmdReason")&&(o.rcmdReason=u.bilibili.polymer.app.search.v1.RcmdReason.toObject(i.rcmdReason,n)),i.newRecTags&&i.newRecTags.length){o.newRecTags=[];for(let a=0;a>>0,i.mid.high>>>0).toNumber():i.mid),i.showCardDesc_1!=null&&i.hasOwnProperty("showCardDesc_1")&&(o.showCardDesc_1=i.showCardDesc_1),i.showCardDesc_2!=null&&i.hasOwnProperty("showCardDesc_2")&&(o.showCardDesc_2=i.showCardDesc_2),i.fullText!=null&&i.hasOwnProperty("fullText")&&(o.fullText=u.bilibili.polymer.app.search.v1.FullTextResult.toObject(i.fullText,n)),i.newRecTagsV2&&i.newRecTagsV2.length){o.newRecTagsV2=[];for(let a=0;a>>0,i.ptime.high>>>0).toNumber():i.ptime),i.viewContent!=null&&i.hasOwnProperty("viewContent")&&(o.viewContent=i.viewContent),i.iconType!=null&&i.hasOwnProperty("iconType")&&(o.iconType=i.iconType),i.foldingTimeLine!=null&&i.hasOwnProperty("foldingTimeLine")&&(o.foldingTimeLine=u.bilibili.polymer.app.search.v1.FoldingTimeLine.toObject(i.foldingTimeLine,n)),i.chargingLabel!=null&&i.hasOwnProperty("chargingLabel")&&(o.chargingLabel=u.bilibili.polymer.app.search.v1.LabelStyle.toObject(i.chargingLabel,n)),i.cardLayout!=null&&i.hasOwnProperty("cardLayout")&&(o.cardLayout=u.bilibili.polymer.app.search.v1.CardLayout.toObject(i.cardLayout,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.SearchVideoCard"},l}(),e.TimeLine=function(){function l(t){if(this.items=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.icon=i.string();break}case 2:{a.title=i.string();break}case 3:{a.color=i.int32();break}case 4:{a.segment=i.int32();break}case 5:{a.startSecond=i.int64();break}case 6:{a.endSecond=i.int64();break}case 7:{a.initPosition=i.int32();break}case 8:{a.type=i.int32();break}case 9:{a.items&&a.items.length||(a.items=[]),a.items.push(u.bilibili.polymer.app.search.v1.VideoTextItem.decode(i,i.uint32()));break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.TimeLine)return i;let n=new u.bilibili.polymer.app.search.v1.TimeLine;if(i.icon!=null&&(n.icon=String(i.icon)),i.title!=null&&(n.title=String(i.title)),i.color!=null&&(n.color=i.color|0),i.segment!=null&&(n.segment=i.segment|0),i.startSecond!=null&&(r.Long?(n.startSecond=r.Long.fromValue(i.startSecond)).unsigned=!1:typeof i.startSecond=="string"?n.startSecond=parseInt(i.startSecond,10):typeof i.startSecond=="number"?n.startSecond=i.startSecond:typeof i.startSecond=="object"&&(n.startSecond=new r.LongBits(i.startSecond.low>>>0,i.startSecond.high>>>0).toNumber())),i.endSecond!=null&&(r.Long?(n.endSecond=r.Long.fromValue(i.endSecond)).unsigned=!1:typeof i.endSecond=="string"?n.endSecond=parseInt(i.endSecond,10):typeof i.endSecond=="number"?n.endSecond=i.endSecond:typeof i.endSecond=="object"&&(n.endSecond=new r.LongBits(i.endSecond.low>>>0,i.endSecond.high>>>0).toNumber())),i.initPosition!=null&&(n.initPosition=i.initPosition|0),i.type!=null&&(n.type=i.type|0),i.items){if(!Array.isArray(i.items))throw TypeError(".bilibili.polymer.app.search.v1.TimeLine.items: array expected");n.items=[];for(let o=0;o>>0,i.startSecond.high>>>0).toNumber():i.startSecond),i.endSecond!=null&&i.hasOwnProperty("endSecond")&&(typeof i.endSecond=="number"?o.endSecond=n.longs===String?String(i.endSecond):i.endSecond:o.endSecond=n.longs===String?r.Long.prototype.toString.call(i.endSecond):n.longs===Number?new r.LongBits(i.endSecond.low>>>0,i.endSecond.high>>>0).toNumber():i.endSecond),i.initPosition!=null&&i.hasOwnProperty("initPosition")&&(o.initPosition=i.initPosition),i.type!=null&&i.hasOwnProperty("type")&&(o.type=i.type),i.items&&i.items.length){o.items=[];for(let a=0;a>>3){case 1:{a.type=i.int32();break}case 2:{a.text=i.string();break}case 3:{a.startSecond=i.int64();break}case 4:{a.jumpUrl=i.string();break}case 5:{a.imgUrl=i.string();break}case 6:{a.videoTime=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.VideoTextItem)return i;let n=new u.bilibili.polymer.app.search.v1.VideoTextItem;return i.type!=null&&(n.type=i.type|0),i.text!=null&&(n.text=String(i.text)),i.startSecond!=null&&(r.Long?(n.startSecond=r.Long.fromValue(i.startSecond)).unsigned=!1:typeof i.startSecond=="string"?n.startSecond=parseInt(i.startSecond,10):typeof i.startSecond=="number"?n.startSecond=i.startSecond:typeof i.startSecond=="object"&&(n.startSecond=new r.LongBits(i.startSecond.low>>>0,i.startSecond.high>>>0).toNumber())),i.jumpUrl!=null&&(n.jumpUrl=String(i.jumpUrl)),i.imgUrl!=null&&(n.imgUrl=String(i.imgUrl)),i.videoTime!=null&&(n.videoTime=String(i.videoTime)),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(o.type=0,o.text="",r.Long){let a=new r.Long(0,0,!1);o.startSecond=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.startSecond=n.longs===String?"0":0;o.jumpUrl="",o.imgUrl="",o.videoTime=""}return i.type!=null&&i.hasOwnProperty("type")&&(o.type=i.type),i.text!=null&&i.hasOwnProperty("text")&&(o.text=i.text),i.startSecond!=null&&i.hasOwnProperty("startSecond")&&(typeof i.startSecond=="number"?o.startSecond=n.longs===String?String(i.startSecond):i.startSecond:o.startSecond=n.longs===String?r.Long.prototype.toString.call(i.startSecond):n.longs===Number?new r.LongBits(i.startSecond.low>>>0,i.startSecond.high>>>0).toNumber():i.startSecond),i.jumpUrl!=null&&i.hasOwnProperty("jumpUrl")&&(o.jumpUrl=i.jumpUrl),i.imgUrl!=null&&i.hasOwnProperty("imgUrl")&&(o.imgUrl=i.imgUrl),i.videoTime!=null&&i.hasOwnProperty("videoTime")&&(o.videoTime=i.videoTime),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.VideoTextItem"},l}(),e.SearchBangumiCard=function(){function l(t){if(this.episodes=[],this.badges=[],this.episodesNew=[],this.badgesV2=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.title=i.string();break}case 2:{a.cover=i.string();break}case 3:{a.mediaType=i.int32();break}case 4:{a.playState=i.int32();break}case 5:{a.area=i.string();break}case 6:{a.style=i.string();break}case 7:{a.styles=i.string();break}case 8:{a.cv=i.string();break}case 9:{a.rating=i.double();break}case 10:{a.vote=i.int32();break}case 11:{a.target=i.string();break}case 12:{a.staff=i.string();break}case 13:{a.prompt=i.string();break}case 14:{a.ptime=i.int64();break}case 15:{a.seasonTypeName=i.string();break}case 16:{a.episodes&&a.episodes.length||(a.episodes=[]),a.episodes.push(u.bilibili.polymer.app.search.v1.Episode.decode(i,i.uint32()));break}case 17:{a.isSelection=i.int32();break}case 18:{a.isAtten=i.int32();break}case 19:{a.label=i.string();break}case 20:{a.seasonId=i.int64();break}case 21:{a.outName=i.string();break}case 22:{a.outIcon=i.string();break}case 23:{a.outUrl=i.string();break}case 24:{a.badges&&a.badges.length||(a.badges=[]),a.badges.push(u.bilibili.polymer.app.search.v1.ReasonStyle.decode(i,i.uint32()));break}case 25:{a.isOut=i.int32();break}case 26:{a.episodesNew&&a.episodesNew.length||(a.episodesNew=[]),a.episodesNew.push(u.bilibili.polymer.app.search.v1.EpisodeNew.decode(i,i.uint32()));break}case 27:{a.watchButton=u.bilibili.polymer.app.search.v1.WatchButton.decode(i,i.uint32());break}case 28:{a.selectionStyle=i.string();break}case 29:{a.checkMore=u.bilibili.polymer.app.search.v1.CheckMore.decode(i,i.uint32());break}case 30:{a.followButton=u.bilibili.polymer.app.search.v1.FollowButton.decode(i,i.uint32());break}case 31:{a.styleLabel=u.bilibili.polymer.app.search.v1.ReasonStyle.decode(i,i.uint32());break}case 32:{a.badgesV2&&a.badgesV2.length||(a.badgesV2=[]),a.badgesV2.push(u.bilibili.polymer.app.search.v1.ReasonStyle.decode(i,i.uint32()));break}case 33:{a.stylesV2=i.string();break}case 34:{a.cardLayout=u.bilibili.polymer.app.search.v1.CardLayout.decode(i,i.uint32());break}case 35:{a.saleInfo=u.bilibili.polymer.app.search.v1.SaleInfo.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.SearchBangumiCard)return i;let n=new u.bilibili.polymer.app.search.v1.SearchBangumiCard;if(i.title!=null&&(n.title=String(i.title)),i.cover!=null&&(n.cover=String(i.cover)),i.mediaType!=null&&(n.mediaType=i.mediaType|0),i.playState!=null&&(n.playState=i.playState|0),i.area!=null&&(n.area=String(i.area)),i.style!=null&&(n.style=String(i.style)),i.styles!=null&&(n.styles=String(i.styles)),i.cv!=null&&(n.cv=String(i.cv)),i.rating!=null&&(n.rating=Number(i.rating)),i.vote!=null&&(n.vote=i.vote|0),i.target!=null&&(n.target=String(i.target)),i.staff!=null&&(n.staff=String(i.staff)),i.prompt!=null&&(n.prompt=String(i.prompt)),i.ptime!=null&&(r.Long?(n.ptime=r.Long.fromValue(i.ptime)).unsigned=!1:typeof i.ptime=="string"?n.ptime=parseInt(i.ptime,10):typeof i.ptime=="number"?n.ptime=i.ptime:typeof i.ptime=="object"&&(n.ptime=new r.LongBits(i.ptime.low>>>0,i.ptime.high>>>0).toNumber())),i.seasonTypeName!=null&&(n.seasonTypeName=String(i.seasonTypeName)),i.episodes){if(!Array.isArray(i.episodes))throw TypeError(".bilibili.polymer.app.search.v1.SearchBangumiCard.episodes: array expected");n.episodes=[];for(let o=0;o>>0,i.seasonId.high>>>0).toNumber())),i.outName!=null&&(n.outName=String(i.outName)),i.outIcon!=null&&(n.outIcon=String(i.outIcon)),i.outUrl!=null&&(n.outUrl=String(i.outUrl)),i.badges){if(!Array.isArray(i.badges))throw TypeError(".bilibili.polymer.app.search.v1.SearchBangumiCard.badges: array expected");n.badges=[];for(let o=0;o>>0,i.ptime.high>>>0).toNumber():i.ptime),i.seasonTypeName!=null&&i.hasOwnProperty("seasonTypeName")&&(o.seasonTypeName=i.seasonTypeName),i.episodes&&i.episodes.length){o.episodes=[];for(let a=0;a>>0,i.seasonId.high>>>0).toNumber():i.seasonId),i.outName!=null&&i.hasOwnProperty("outName")&&(o.outName=i.outName),i.outIcon!=null&&i.hasOwnProperty("outIcon")&&(o.outIcon=i.outIcon),i.outUrl!=null&&i.hasOwnProperty("outUrl")&&(o.outUrl=i.outUrl),i.badges&&i.badges.length){o.badges=[];for(let a=0;a>>3){case 1:{a.title=i.string();break}case 2:{a.cover=i.string();break}case 3:{a.newRecTags&&a.newRecTags.length||(a.newRecTags=[]),a.newRecTags.push(u.bilibili.polymer.app.search.v1.ReasonStyle.decode(i,i.uint32()));break}case 4:{a.cardBusinessBadge=u.bilibili.polymer.app.search.v1.CardBusinessBadge.decode(i,i.uint32());break}case 5:{a.badge=i.string();break}case 6:{a.desc=i.string();break}case 7:{a.newRecTagsV2&&a.newRecTagsV2.length||(a.newRecTagsV2=[]),a.newRecTagsV2.push(u.bilibili.polymer.app.search.v1.ReasonStyle.decode(i,i.uint32()));break}case 8:{a.rcmdReason=u.bilibili.polymer.app.search.v1.RcmdReason.decode(i,i.uint32());break}case 9:{a.reserveInfo=u.bilibili.polymer.app.search.v1.ReserveInfo.decode(i,i.uint32());break}case 10:{a.cardLayout=u.bilibili.polymer.app.search.v1.CardLayout.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.SearchSpecialCard)return i;let n=new u.bilibili.polymer.app.search.v1.SearchSpecialCard;if(i.title!=null&&(n.title=String(i.title)),i.cover!=null&&(n.cover=String(i.cover)),i.newRecTags){if(!Array.isArray(i.newRecTags))throw TypeError(".bilibili.polymer.app.search.v1.SearchSpecialCard.newRecTags: array expected");n.newRecTags=[];for(let o=0;o>>3){case 1:{a.title=i.string();break}case 2:{a.cover=i.string();break}case 3:{a.play=i.int32();break}case 4:{a.like=i.int32();break}case 5:{a.reply=i.int32();break}case 6:{a.imageUrls&&a.imageUrls.length||(a.imageUrls=[]),a.imageUrls.push(i.string());break}case 7:{a.author=i.string();break}case 8:{a.templateId=i.int32();break}case 9:{a.id=i.int64();break}case 10:{a.mid=i.int64();break}case 11:{a.name=i.string();break}case 12:{a.desc=i.string();break}case 13:{a.view=i.int32();break}case 14:{a.pubTime=i.string();break}case 15:{a.badge=i.string();break}case 16:{a.feedback=u.bilibili.polymer.app.search.v1.Feedback.decode(i,i.uint32());break}case 17:{a.cardLayout=u.bilibili.polymer.app.search.v1.CardLayout.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.SearchArticleCard)return i;let n=new u.bilibili.polymer.app.search.v1.SearchArticleCard;if(i.title!=null&&(n.title=String(i.title)),i.cover!=null&&(n.cover=String(i.cover)),i.play!=null&&(n.play=i.play|0),i.like!=null&&(n.like=i.like|0),i.reply!=null&&(n.reply=i.reply|0),i.imageUrls){if(!Array.isArray(i.imageUrls))throw TypeError(".bilibili.polymer.app.search.v1.SearchArticleCard.imageUrls: array expected");n.imageUrls=[];for(let o=0;o>>0,i.id.high>>>0).toNumber())),i.mid!=null&&(r.Long?(n.mid=r.Long.fromValue(i.mid)).unsigned=!1:typeof i.mid=="string"?n.mid=parseInt(i.mid,10):typeof i.mid=="number"?n.mid=i.mid:typeof i.mid=="object"&&(n.mid=new r.LongBits(i.mid.low>>>0,i.mid.high>>>0).toNumber())),i.name!=null&&(n.name=String(i.name)),i.desc!=null&&(n.desc=String(i.desc)),i.view!=null&&(n.view=i.view|0),i.pubTime!=null&&(n.pubTime=String(i.pubTime)),i.badge!=null&&(n.badge=String(i.badge)),i.feedback!=null){if(typeof i.feedback!="object")throw TypeError(".bilibili.polymer.app.search.v1.SearchArticleCard.feedback: object expected");n.feedback=u.bilibili.polymer.app.search.v1.Feedback.fromObject(i.feedback)}if(i.cardLayout!=null){if(typeof i.cardLayout!="object")throw TypeError(".bilibili.polymer.app.search.v1.SearchArticleCard.cardLayout: object expected");n.cardLayout=u.bilibili.polymer.app.search.v1.CardLayout.fromObject(i.cardLayout)}return n},l.toObject=function(i,n){n||(n={});let o={};if((n.arrays||n.defaults)&&(o.imageUrls=[]),n.defaults){if(o.title="",o.cover="",o.play=0,o.like=0,o.reply=0,o.author="",o.templateId=0,r.Long){let a=new r.Long(0,0,!1);o.id=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.id=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.mid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.mid=n.longs===String?"0":0;o.name="",o.desc="",o.view=0,o.pubTime="",o.badge="",o.feedback=null,o.cardLayout=null}if(i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.cover!=null&&i.hasOwnProperty("cover")&&(o.cover=i.cover),i.play!=null&&i.hasOwnProperty("play")&&(o.play=i.play),i.like!=null&&i.hasOwnProperty("like")&&(o.like=i.like),i.reply!=null&&i.hasOwnProperty("reply")&&(o.reply=i.reply),i.imageUrls&&i.imageUrls.length){o.imageUrls=[];for(let a=0;a>>0,i.id.high>>>0).toNumber():i.id),i.mid!=null&&i.hasOwnProperty("mid")&&(typeof i.mid=="number"?o.mid=n.longs===String?String(i.mid):i.mid:o.mid=n.longs===String?r.Long.prototype.toString.call(i.mid):n.longs===Number?new r.LongBits(i.mid.low>>>0,i.mid.high>>>0).toNumber():i.mid),i.name!=null&&i.hasOwnProperty("name")&&(o.name=i.name),i.desc!=null&&i.hasOwnProperty("desc")&&(o.desc=i.desc),i.view!=null&&i.hasOwnProperty("view")&&(o.view=i.view),i.pubTime!=null&&i.hasOwnProperty("pubTime")&&(o.pubTime=i.pubTime),i.badge!=null&&i.hasOwnProperty("badge")&&(o.badge=i.badge),i.feedback!=null&&i.hasOwnProperty("feedback")&&(o.feedback=u.bilibili.polymer.app.search.v1.Feedback.toObject(i.feedback,n)),i.cardLayout!=null&&i.hasOwnProperty("cardLayout")&&(o.cardLayout=u.bilibili.polymer.app.search.v1.CardLayout.toObject(i.cardLayout,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.SearchArticleCard"},l}(),e.SearchBannerCard=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.title=i.string();break}case 2:{a.cover=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.SearchBannerCard)return i;let n=new u.bilibili.polymer.app.search.v1.SearchBannerCard;return i.title!=null&&(n.title=String(i.title)),i.cover!=null&&(n.cover=String(i.cover)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.title="",o.cover=""),i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.cover!=null&&i.hasOwnProperty("cover")&&(o.cover=i.cover),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.SearchBannerCard"},l}(),e.SearchLiveCard=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.title=i.string();break}case 2:{a.cover=i.string();break}case 3:{a.rcmdReason=u.bilibili.polymer.app.search.v1.RcmdReason.decode(i,i.uint32());break}case 4:{a.name=i.string();break}case 5:{a.online=i.int32();break}case 6:{a.badge=i.string();break}case 7:{a.liveLink=i.string();break}case 8:{a.cardLeftText=i.string();break}case 9:{a.cardLeftIcon=i.int32();break}case 10:{a.showCardDesc_2=i.string();break}case 11:{a.rightTopLiveBadge=u.bilibili.polymer.app.search.v1.RightTopLiveBadge.decode(i,i.uint32());break}case 12:{a.feedback=u.bilibili.polymer.app.search.v1.Feedback.decode(i,i.uint32());break}case 13:{a.cardLayout=u.bilibili.polymer.app.search.v1.CardLayout.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.SearchLiveCard)return i;let n=new u.bilibili.polymer.app.search.v1.SearchLiveCard;if(i.title!=null&&(n.title=String(i.title)),i.cover!=null&&(n.cover=String(i.cover)),i.rcmdReason!=null){if(typeof i.rcmdReason!="object")throw TypeError(".bilibili.polymer.app.search.v1.SearchLiveCard.rcmdReason: object expected");n.rcmdReason=u.bilibili.polymer.app.search.v1.RcmdReason.fromObject(i.rcmdReason)}if(i.name!=null&&(n.name=String(i.name)),i.online!=null&&(n.online=i.online|0),i.badge!=null&&(n.badge=String(i.badge)),i.liveLink!=null&&(n.liveLink=String(i.liveLink)),i.cardLeftText!=null&&(n.cardLeftText=String(i.cardLeftText)),i.cardLeftIcon!=null&&(n.cardLeftIcon=i.cardLeftIcon|0),i.showCardDesc_2!=null&&(n.showCardDesc_2=String(i.showCardDesc_2)),i.rightTopLiveBadge!=null){if(typeof i.rightTopLiveBadge!="object")throw TypeError(".bilibili.polymer.app.search.v1.SearchLiveCard.rightTopLiveBadge: object expected");n.rightTopLiveBadge=u.bilibili.polymer.app.search.v1.RightTopLiveBadge.fromObject(i.rightTopLiveBadge)}if(i.feedback!=null){if(typeof i.feedback!="object")throw TypeError(".bilibili.polymer.app.search.v1.SearchLiveCard.feedback: object expected");n.feedback=u.bilibili.polymer.app.search.v1.Feedback.fromObject(i.feedback)}if(i.cardLayout!=null){if(typeof i.cardLayout!="object")throw TypeError(".bilibili.polymer.app.search.v1.SearchLiveCard.cardLayout: object expected");n.cardLayout=u.bilibili.polymer.app.search.v1.CardLayout.fromObject(i.cardLayout)}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.title="",o.cover="",o.rcmdReason=null,o.name="",o.online=0,o.badge="",o.liveLink="",o.cardLeftText="",o.cardLeftIcon=0,o.showCardDesc_2="",o.rightTopLiveBadge=null,o.feedback=null,o.cardLayout=null),i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.cover!=null&&i.hasOwnProperty("cover")&&(o.cover=i.cover),i.rcmdReason!=null&&i.hasOwnProperty("rcmdReason")&&(o.rcmdReason=u.bilibili.polymer.app.search.v1.RcmdReason.toObject(i.rcmdReason,n)),i.name!=null&&i.hasOwnProperty("name")&&(o.name=i.name),i.online!=null&&i.hasOwnProperty("online")&&(o.online=i.online),i.badge!=null&&i.hasOwnProperty("badge")&&(o.badge=i.badge),i.liveLink!=null&&i.hasOwnProperty("liveLink")&&(o.liveLink=i.liveLink),i.cardLeftText!=null&&i.hasOwnProperty("cardLeftText")&&(o.cardLeftText=i.cardLeftText),i.cardLeftIcon!=null&&i.hasOwnProperty("cardLeftIcon")&&(o.cardLeftIcon=i.cardLeftIcon),i.showCardDesc_2!=null&&i.hasOwnProperty("showCardDesc_2")&&(o.showCardDesc_2=i.showCardDesc_2),i.rightTopLiveBadge!=null&&i.hasOwnProperty("rightTopLiveBadge")&&(o.rightTopLiveBadge=u.bilibili.polymer.app.search.v1.RightTopLiveBadge.toObject(i.rightTopLiveBadge,n)),i.feedback!=null&&i.hasOwnProperty("feedback")&&(o.feedback=u.bilibili.polymer.app.search.v1.Feedback.toObject(i.feedback,n)),i.cardLayout!=null&&i.hasOwnProperty("cardLayout")&&(o.cardLayout=u.bilibili.polymer.app.search.v1.CardLayout.toObject(i.cardLayout,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.SearchLiveCard"},l}(),e.SearchGameCard=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.title=i.string();break}case 2:{a.cover=i.string();break}case 3:{a.reserve=i.string();break}case 4:{a.rating=i.float();break}case 5:{a.tags=i.string();break}case 6:{a.noticeName=i.string();break}case 7:{a.noticeContent=i.string();break}case 8:{a.giftContent=i.string();break}case 9:{a.giftUrl=i.string();break}case 10:{a.reserveStatus=i.int32();break}case 11:{a.rankInfo=u.bilibili.polymer.app.search.v1.RankInfo.decode(i,i.uint32());break}case 12:{a.specialBgColor=i.string();break}case 13:{a.cloudGameParams=u.bilibili.polymer.app.search.v1.CloudGameParams.decode(i,i.uint32());break}case 14:{a.showCloudGameEntry=i.bool();break}case 15:{a.newRecTag=u.bilibili.polymer.app.search.v1.ReasonStyle.decode(i,i.uint32());break}case 16:{a.noticeContentName=i.string();break}case 17:{a.cardLayout=u.bilibili.polymer.app.search.v1.CardLayout.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.SearchGameCard)return i;let n=new u.bilibili.polymer.app.search.v1.SearchGameCard;if(i.title!=null&&(n.title=String(i.title)),i.cover!=null&&(n.cover=String(i.cover)),i.reserve!=null&&(n.reserve=String(i.reserve)),i.rating!=null&&(n.rating=Number(i.rating)),i.tags!=null&&(n.tags=String(i.tags)),i.noticeName!=null&&(n.noticeName=String(i.noticeName)),i.noticeContent!=null&&(n.noticeContent=String(i.noticeContent)),i.giftContent!=null&&(n.giftContent=String(i.giftContent)),i.giftUrl!=null&&(n.giftUrl=String(i.giftUrl)),i.reserveStatus!=null&&(n.reserveStatus=i.reserveStatus|0),i.rankInfo!=null){if(typeof i.rankInfo!="object")throw TypeError(".bilibili.polymer.app.search.v1.SearchGameCard.rankInfo: object expected");n.rankInfo=u.bilibili.polymer.app.search.v1.RankInfo.fromObject(i.rankInfo)}if(i.specialBgColor!=null&&(n.specialBgColor=String(i.specialBgColor)),i.cloudGameParams!=null){if(typeof i.cloudGameParams!="object")throw TypeError(".bilibili.polymer.app.search.v1.SearchGameCard.cloudGameParams: object expected");n.cloudGameParams=u.bilibili.polymer.app.search.v1.CloudGameParams.fromObject(i.cloudGameParams)}if(i.showCloudGameEntry!=null&&(n.showCloudGameEntry=!!i.showCloudGameEntry),i.newRecTag!=null){if(typeof i.newRecTag!="object")throw TypeError(".bilibili.polymer.app.search.v1.SearchGameCard.newRecTag: object expected");n.newRecTag=u.bilibili.polymer.app.search.v1.ReasonStyle.fromObject(i.newRecTag)}if(i.noticeContentName!=null&&(n.noticeContentName=String(i.noticeContentName)),i.cardLayout!=null){if(typeof i.cardLayout!="object")throw TypeError(".bilibili.polymer.app.search.v1.SearchGameCard.cardLayout: object expected");n.cardLayout=u.bilibili.polymer.app.search.v1.CardLayout.fromObject(i.cardLayout)}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.title="",o.cover="",o.reserve="",o.rating=0,o.tags="",o.noticeName="",o.noticeContent="",o.giftContent="",o.giftUrl="",o.reserveStatus=0,o.rankInfo=null,o.specialBgColor="",o.cloudGameParams=null,o.showCloudGameEntry=!1,o.newRecTag=null,o.noticeContentName="",o.cardLayout=null),i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.cover!=null&&i.hasOwnProperty("cover")&&(o.cover=i.cover),i.reserve!=null&&i.hasOwnProperty("reserve")&&(o.reserve=i.reserve),i.rating!=null&&i.hasOwnProperty("rating")&&(o.rating=n.json&&!isFinite(i.rating)?String(i.rating):i.rating),i.tags!=null&&i.hasOwnProperty("tags")&&(o.tags=i.tags),i.noticeName!=null&&i.hasOwnProperty("noticeName")&&(o.noticeName=i.noticeName),i.noticeContent!=null&&i.hasOwnProperty("noticeContent")&&(o.noticeContent=i.noticeContent),i.giftContent!=null&&i.hasOwnProperty("giftContent")&&(o.giftContent=i.giftContent),i.giftUrl!=null&&i.hasOwnProperty("giftUrl")&&(o.giftUrl=i.giftUrl),i.reserveStatus!=null&&i.hasOwnProperty("reserveStatus")&&(o.reserveStatus=i.reserveStatus),i.rankInfo!=null&&i.hasOwnProperty("rankInfo")&&(o.rankInfo=u.bilibili.polymer.app.search.v1.RankInfo.toObject(i.rankInfo,n)),i.specialBgColor!=null&&i.hasOwnProperty("specialBgColor")&&(o.specialBgColor=i.specialBgColor),i.cloudGameParams!=null&&i.hasOwnProperty("cloudGameParams")&&(o.cloudGameParams=u.bilibili.polymer.app.search.v1.CloudGameParams.toObject(i.cloudGameParams,n)),i.showCloudGameEntry!=null&&i.hasOwnProperty("showCloudGameEntry")&&(o.showCloudGameEntry=i.showCloudGameEntry),i.newRecTag!=null&&i.hasOwnProperty("newRecTag")&&(o.newRecTag=u.bilibili.polymer.app.search.v1.ReasonStyle.toObject(i.newRecTag,n)),i.noticeContentName!=null&&i.hasOwnProperty("noticeContentName")&&(o.noticeContentName=i.noticeContentName),i.cardLayout!=null&&i.hasOwnProperty("cardLayout")&&(o.cardLayout=u.bilibili.polymer.app.search.v1.CardLayout.toObject(i.cardLayout,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.SearchGameCard"},l}(),e.SearchPurchaseCard=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.title=i.string();break}case 2:{a.cover=i.string();break}case 3:{a.badge=i.string();break}case 4:{a.venue=i.string();break}case 5:{a.price=i.int32();break}case 6:{a.priceComplete=i.string();break}case 7:{a.priceType=i.int32();break}case 8:{a.requiredNumber=i.int32();break}case 9:{a.city=i.string();break}case 10:{a.showTime=i.string();break}case 11:{a.id=i.int64();break}case 12:{a.shopName=i.string();break}case 13:{a.cardLayout=u.bilibili.polymer.app.search.v1.CardLayout.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.SearchPurchaseCard)return i;let n=new u.bilibili.polymer.app.search.v1.SearchPurchaseCard;if(i.title!=null&&(n.title=String(i.title)),i.cover!=null&&(n.cover=String(i.cover)),i.badge!=null&&(n.badge=String(i.badge)),i.venue!=null&&(n.venue=String(i.venue)),i.price!=null&&(n.price=i.price|0),i.priceComplete!=null&&(n.priceComplete=String(i.priceComplete)),i.priceType!=null&&(n.priceType=i.priceType|0),i.requiredNumber!=null&&(n.requiredNumber=i.requiredNumber|0),i.city!=null&&(n.city=String(i.city)),i.showTime!=null&&(n.showTime=String(i.showTime)),i.id!=null&&(r.Long?(n.id=r.Long.fromValue(i.id)).unsigned=!1:typeof i.id=="string"?n.id=parseInt(i.id,10):typeof i.id=="number"?n.id=i.id:typeof i.id=="object"&&(n.id=new r.LongBits(i.id.low>>>0,i.id.high>>>0).toNumber())),i.shopName!=null&&(n.shopName=String(i.shopName)),i.cardLayout!=null){if(typeof i.cardLayout!="object")throw TypeError(".bilibili.polymer.app.search.v1.SearchPurchaseCard.cardLayout: object expected");n.cardLayout=u.bilibili.polymer.app.search.v1.CardLayout.fromObject(i.cardLayout)}return n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(o.title="",o.cover="",o.badge="",o.venue="",o.price=0,o.priceComplete="",o.priceType=0,o.requiredNumber=0,o.city="",o.showTime="",r.Long){let a=new r.Long(0,0,!1);o.id=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.id=n.longs===String?"0":0;o.shopName="",o.cardLayout=null}return i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.cover!=null&&i.hasOwnProperty("cover")&&(o.cover=i.cover),i.badge!=null&&i.hasOwnProperty("badge")&&(o.badge=i.badge),i.venue!=null&&i.hasOwnProperty("venue")&&(o.venue=i.venue),i.price!=null&&i.hasOwnProperty("price")&&(o.price=i.price),i.priceComplete!=null&&i.hasOwnProperty("priceComplete")&&(o.priceComplete=i.priceComplete),i.priceType!=null&&i.hasOwnProperty("priceType")&&(o.priceType=i.priceType),i.requiredNumber!=null&&i.hasOwnProperty("requiredNumber")&&(o.requiredNumber=i.requiredNumber),i.city!=null&&i.hasOwnProperty("city")&&(o.city=i.city),i.showTime!=null&&i.hasOwnProperty("showTime")&&(o.showTime=i.showTime),i.id!=null&&i.hasOwnProperty("id")&&(typeof i.id=="number"?o.id=n.longs===String?String(i.id):i.id:o.id=n.longs===String?r.Long.prototype.toString.call(i.id):n.longs===Number?new r.LongBits(i.id.low>>>0,i.id.high>>>0).toNumber():i.id),i.shopName!=null&&i.hasOwnProperty("shopName")&&(o.shopName=i.shopName),i.cardLayout!=null&&i.hasOwnProperty("cardLayout")&&(o.cardLayout=u.bilibili.polymer.app.search.v1.CardLayout.toObject(i.cardLayout,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.SearchPurchaseCard"},l}(),e.SearchRecommendWordCard=function(){function l(t){if(this.list=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.title=i.string();break}case 2:{a.cover=i.string();break}case 3:{a.list&&a.list.length||(a.list=[]),a.list.push(u.bilibili.polymer.app.search.v1.RecommendWord.decode(i,i.uint32()));break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.SearchRecommendWordCard)return i;let n=new u.bilibili.polymer.app.search.v1.SearchRecommendWordCard;if(i.title!=null&&(n.title=String(i.title)),i.cover!=null&&(n.cover=String(i.cover)),i.list){if(!Array.isArray(i.list))throw TypeError(".bilibili.polymer.app.search.v1.SearchRecommendWordCard.list: array expected");n.list=[];for(let o=0;o>>3){case 1:{a.title=i.string();break}case 2:{a.cover=i.string();break}case 3:{a.coverCount=i.int32();break}case 4:{a.covers&&a.covers.length||(a.covers=[]),a.covers.push(i.string());break}case 5:{a.upper=u.bilibili.polymer.app.search.v1.Upper.decode(i,i.uint32());break}case 6:{a.stat=u.bilibili.polymer.app.search.v1.Stat.decode(i,i.uint32());break}case 7:{a.dyTopic&&a.dyTopic.length||(a.dyTopic=[]),a.dyTopic.push(u.bilibili.polymer.app.search.v1.DyTopic.decode(i,i.uint32()));break}case 8:{a.badge=i.string();break}case 9:{a.feedback=u.bilibili.polymer.app.search.v1.Feedback.decode(i,i.uint32());break}case 10:{a.cardLayout=u.bilibili.polymer.app.search.v1.CardLayout.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.SearchDynamicCard)return i;let n=new u.bilibili.polymer.app.search.v1.SearchDynamicCard;if(i.title!=null&&(n.title=String(i.title)),i.cover!=null&&(n.cover=String(i.cover)),i.coverCount!=null&&(n.coverCount=i.coverCount|0),i.covers){if(!Array.isArray(i.covers))throw TypeError(".bilibili.polymer.app.search.v1.SearchDynamicCard.covers: array expected");n.covers=[];for(let o=0;o>>3){case 1:{a.title=i.string();break}case 2:{a.cover=i.string();break}case 3:{a.sugKeyWordType=i.int32();break}case 4:{a.cardLayout=u.bilibili.polymer.app.search.v1.CardLayout.decode(i,i.uint32());break}case 5:{a.prefix=i.string();break}case 6:{a.content=i.string();break}case 7:{a.suffix=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.SearchNoResultSuggestWordCard)return i;let n=new u.bilibili.polymer.app.search.v1.SearchNoResultSuggestWordCard;if(i.title!=null&&(n.title=String(i.title)),i.cover!=null&&(n.cover=String(i.cover)),i.sugKeyWordType!=null&&(n.sugKeyWordType=i.sugKeyWordType|0),i.cardLayout!=null){if(typeof i.cardLayout!="object")throw TypeError(".bilibili.polymer.app.search.v1.SearchNoResultSuggestWordCard.cardLayout: object expected");n.cardLayout=u.bilibili.polymer.app.search.v1.CardLayout.fromObject(i.cardLayout)}return i.prefix!=null&&(n.prefix=String(i.prefix)),i.content!=null&&(n.content=String(i.content)),i.suffix!=null&&(n.suffix=String(i.suffix)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.title="",o.cover="",o.sugKeyWordType=0,o.cardLayout=null,o.prefix="",o.content="",o.suffix=""),i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.cover!=null&&i.hasOwnProperty("cover")&&(o.cover=i.cover),i.sugKeyWordType!=null&&i.hasOwnProperty("sugKeyWordType")&&(o.sugKeyWordType=i.sugKeyWordType),i.cardLayout!=null&&i.hasOwnProperty("cardLayout")&&(o.cardLayout=u.bilibili.polymer.app.search.v1.CardLayout.toObject(i.cardLayout,n)),i.prefix!=null&&i.hasOwnProperty("prefix")&&(o.prefix=i.prefix),i.content!=null&&i.hasOwnProperty("content")&&(o.content=i.content),i.suffix!=null&&i.hasOwnProperty("suffix")&&(o.suffix=i.suffix),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.SearchNoResultSuggestWordCard"},l}(),e.SearchSpecialGuideCard=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.title=i.string();break}case 2:{a.cover=i.string();break}case 3:{a.phone=i.string();break}case 4:{a.desc=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.SearchSpecialGuideCard)return i;let n=new u.bilibili.polymer.app.search.v1.SearchSpecialGuideCard;return i.title!=null&&(n.title=String(i.title)),i.cover!=null&&(n.cover=String(i.cover)),i.phone!=null&&(n.phone=String(i.phone)),i.desc!=null&&(n.desc=String(i.desc)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.title="",o.cover="",o.phone="",o.desc=""),i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.cover!=null&&i.hasOwnProperty("cover")&&(o.cover=i.cover),i.phone!=null&&i.hasOwnProperty("phone")&&(o.phone=i.phone),i.desc!=null&&i.hasOwnProperty("desc")&&(o.desc=i.desc),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.SearchSpecialGuideCard"},l}(),e.SearchComicCard=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.title=i.string();break}case 2:{a.cover=i.string();break}case 3:{a.name=i.string();break}case 4:{a.style=i.string();break}case 5:{a.comicUrl=i.string();break}case 6:{a.badge=i.string();break}case 7:{a.cardLayout=u.bilibili.polymer.app.search.v1.CardLayout.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.SearchComicCard)return i;let n=new u.bilibili.polymer.app.search.v1.SearchComicCard;if(i.title!=null&&(n.title=String(i.title)),i.cover!=null&&(n.cover=String(i.cover)),i.name!=null&&(n.name=String(i.name)),i.style!=null&&(n.style=String(i.style)),i.comicUrl!=null&&(n.comicUrl=String(i.comicUrl)),i.badge!=null&&(n.badge=String(i.badge)),i.cardLayout!=null){if(typeof i.cardLayout!="object")throw TypeError(".bilibili.polymer.app.search.v1.SearchComicCard.cardLayout: object expected");n.cardLayout=u.bilibili.polymer.app.search.v1.CardLayout.fromObject(i.cardLayout)}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.title="",o.cover="",o.name="",o.style="",o.comicUrl="",o.badge="",o.cardLayout=null),i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.cover!=null&&i.hasOwnProperty("cover")&&(o.cover=i.cover),i.name!=null&&i.hasOwnProperty("name")&&(o.name=i.name),i.style!=null&&i.hasOwnProperty("style")&&(o.style=i.style),i.comicUrl!=null&&i.hasOwnProperty("comicUrl")&&(o.comicUrl=i.comicUrl),i.badge!=null&&i.hasOwnProperty("badge")&&(o.badge=i.badge),i.cardLayout!=null&&i.hasOwnProperty("cardLayout")&&(o.cardLayout=u.bilibili.polymer.app.search.v1.CardLayout.toObject(i.cardLayout,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.SearchComicCard"},l}(),e.SearchNewChannelCard=function(){function l(t){if(this.items=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.title=i.string();break}case 2:{a.cover=i.string();break}case 3:{a.id=i.int64();break}case 4:{a.typeIcon=i.string();break}case 5:{a.channelLabel1=u.bilibili.polymer.app.search.v1.ChannelLabel.decode(i,i.uint32());break}case 6:{a.channelLabel2=u.bilibili.polymer.app.search.v1.ChannelLabel.decode(i,i.uint32());break}case 7:{a.channelButton=u.bilibili.polymer.app.search.v1.ChannelLabel.decode(i,i.uint32());break}case 8:{a.designType=i.string();break}case 9:{a.items&&a.items.length||(a.items=[]),a.items.push(u.bilibili.polymer.app.search.v1.ChannelMixedItem.decode(i,i.uint32()));break}case 10:{a.cardLayout=u.bilibili.polymer.app.search.v1.CardLayout.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.SearchNewChannelCard)return i;let n=new u.bilibili.polymer.app.search.v1.SearchNewChannelCard;if(i.title!=null&&(n.title=String(i.title)),i.cover!=null&&(n.cover=String(i.cover)),i.id!=null&&(r.Long?(n.id=r.Long.fromValue(i.id)).unsigned=!1:typeof i.id=="string"?n.id=parseInt(i.id,10):typeof i.id=="number"?n.id=i.id:typeof i.id=="object"&&(n.id=new r.LongBits(i.id.low>>>0,i.id.high>>>0).toNumber())),i.typeIcon!=null&&(n.typeIcon=String(i.typeIcon)),i.channelLabel1!=null){if(typeof i.channelLabel1!="object")throw TypeError(".bilibili.polymer.app.search.v1.SearchNewChannelCard.channelLabel1: object expected");n.channelLabel1=u.bilibili.polymer.app.search.v1.ChannelLabel.fromObject(i.channelLabel1)}if(i.channelLabel2!=null){if(typeof i.channelLabel2!="object")throw TypeError(".bilibili.polymer.app.search.v1.SearchNewChannelCard.channelLabel2: object expected");n.channelLabel2=u.bilibili.polymer.app.search.v1.ChannelLabel.fromObject(i.channelLabel2)}if(i.channelButton!=null){if(typeof i.channelButton!="object")throw TypeError(".bilibili.polymer.app.search.v1.SearchNewChannelCard.channelButton: object expected");n.channelButton=u.bilibili.polymer.app.search.v1.ChannelLabel.fromObject(i.channelButton)}if(i.designType!=null&&(n.designType=String(i.designType)),i.items){if(!Array.isArray(i.items))throw TypeError(".bilibili.polymer.app.search.v1.SearchNewChannelCard.items: array expected");n.items=[];for(let o=0;o>>0,i.id.high>>>0).toNumber():i.id),i.typeIcon!=null&&i.hasOwnProperty("typeIcon")&&(o.typeIcon=i.typeIcon),i.channelLabel1!=null&&i.hasOwnProperty("channelLabel1")&&(o.channelLabel1=u.bilibili.polymer.app.search.v1.ChannelLabel.toObject(i.channelLabel1,n)),i.channelLabel2!=null&&i.hasOwnProperty("channelLabel2")&&(o.channelLabel2=u.bilibili.polymer.app.search.v1.ChannelLabel.toObject(i.channelLabel2,n)),i.channelButton!=null&&i.hasOwnProperty("channelButton")&&(o.channelButton=u.bilibili.polymer.app.search.v1.ChannelLabel.toObject(i.channelButton,n)),i.designType!=null&&i.hasOwnProperty("designType")&&(o.designType=i.designType),i.items&&i.items.length){o.items=[];for(let a=0;a>>3){case 1:{a.title=i.string();break}case 2:{a.cover=i.string();break}case 3:{a.specialBgColor=i.string();break}case 4:{a.moreText=i.string();break}case 5:{a.moreUrl=i.string();break}case 6:{a.items&&a.items.length||(a.items=[]),a.items.push(u.bilibili.polymer.app.search.v1.DetailsRelationItem.decode(i,i.uint32()));break}case 7:{a.isNewStyle=i.int32();break}case 8:{a.ogvCardUi=u.bilibili.polymer.app.search.v1.OgvCardUI.decode(i,i.uint32());break}case 9:{a.moreSearchType=i.int32();break}case 10:{a.cardLayout=u.bilibili.polymer.app.search.v1.CardLayout.decode(i,i.uint32());break}case 11:{a.saleInfo=u.bilibili.polymer.app.search.v1.SaleInfo.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.SearchOgvRelationCard)return i;let n=new u.bilibili.polymer.app.search.v1.SearchOgvRelationCard;if(i.title!=null&&(n.title=String(i.title)),i.cover!=null&&(n.cover=String(i.cover)),i.specialBgColor!=null&&(n.specialBgColor=String(i.specialBgColor)),i.moreText!=null&&(n.moreText=String(i.moreText)),i.moreUrl!=null&&(n.moreUrl=String(i.moreUrl)),i.items){if(!Array.isArray(i.items))throw TypeError(".bilibili.polymer.app.search.v1.SearchOgvRelationCard.items: array expected");n.items=[];for(let o=0;o>>3){case 1:{a.backgroundImage=i.string();break}case 2:{a.gaussianBlurValue=i.string();break}case 3:{a.moduleColor=i.string();break}case 4:{a.maskOpacity=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.OgvCardUI)return i;let n=new u.bilibili.polymer.app.search.v1.OgvCardUI;return i.backgroundImage!=null&&(n.backgroundImage=String(i.backgroundImage)),i.gaussianBlurValue!=null&&(n.gaussianBlurValue=String(i.gaussianBlurValue)),i.moduleColor!=null&&(n.moduleColor=String(i.moduleColor)),i.maskOpacity!=null&&(n.maskOpacity=String(i.maskOpacity)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.backgroundImage="",o.gaussianBlurValue="",o.moduleColor="",o.maskOpacity=""),i.backgroundImage!=null&&i.hasOwnProperty("backgroundImage")&&(o.backgroundImage=i.backgroundImage),i.gaussianBlurValue!=null&&i.hasOwnProperty("gaussianBlurValue")&&(o.gaussianBlurValue=i.gaussianBlurValue),i.moduleColor!=null&&i.hasOwnProperty("moduleColor")&&(o.moduleColor=i.moduleColor),i.maskOpacity!=null&&i.hasOwnProperty("maskOpacity")&&(o.maskOpacity=i.maskOpacity),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.OgvCardUI"},l}(),e.DetailsRelationItem=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.title=i.string();break}case 2:{a.cover=i.string();break}case 3:{a.coverLeftText=i.string();break}case 4:{a.coverBadgeStyle=u.bilibili.polymer.app.search.v1.ReasonStyle.decode(i,i.uint32());break}case 5:{a.modulePos=i.string();break}case 6:{a.goto=i.string();break}case 7:{a.param=i.string();break}case 8:{a.uri=i.string();break}case 9:{a.position=i.int32();break}case 10:{a.coverLeftTextV2=i.string();break}case 11:{a.coverBadgeStyleV2=u.bilibili.polymer.app.search.v1.ReasonStyle.decode(i,i.uint32());break}case 12:{a.viewContent=i.string();break}case 13:{a.iconType=i.int32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.DetailsRelationItem)return i;let n=new u.bilibili.polymer.app.search.v1.DetailsRelationItem;if(i.title!=null&&(n.title=String(i.title)),i.cover!=null&&(n.cover=String(i.cover)),i.coverLeftText!=null&&(n.coverLeftText=String(i.coverLeftText)),i.coverBadgeStyle!=null){if(typeof i.coverBadgeStyle!="object")throw TypeError(".bilibili.polymer.app.search.v1.DetailsRelationItem.coverBadgeStyle: object expected");n.coverBadgeStyle=u.bilibili.polymer.app.search.v1.ReasonStyle.fromObject(i.coverBadgeStyle)}if(i.modulePos!=null&&(n.modulePos=String(i.modulePos)),i.goto!=null&&(n.goto=String(i.goto)),i.param!=null&&(n.param=String(i.param)),i.uri!=null&&(n.uri=String(i.uri)),i.position!=null&&(n.position=i.position|0),i.coverLeftTextV2!=null&&(n.coverLeftTextV2=String(i.coverLeftTextV2)),i.coverBadgeStyleV2!=null){if(typeof i.coverBadgeStyleV2!="object")throw TypeError(".bilibili.polymer.app.search.v1.DetailsRelationItem.coverBadgeStyleV2: object expected");n.coverBadgeStyleV2=u.bilibili.polymer.app.search.v1.ReasonStyle.fromObject(i.coverBadgeStyleV2)}return i.viewContent!=null&&(n.viewContent=String(i.viewContent)),i.iconType!=null&&(n.iconType=i.iconType|0),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.title="",o.cover="",o.coverLeftText="",o.coverBadgeStyle=null,o.modulePos="",o.goto="",o.param="",o.uri="",o.position=0,o.coverLeftTextV2="",o.coverBadgeStyleV2=null,o.viewContent="",o.iconType=0),i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.cover!=null&&i.hasOwnProperty("cover")&&(o.cover=i.cover),i.coverLeftText!=null&&i.hasOwnProperty("coverLeftText")&&(o.coverLeftText=i.coverLeftText),i.coverBadgeStyle!=null&&i.hasOwnProperty("coverBadgeStyle")&&(o.coverBadgeStyle=u.bilibili.polymer.app.search.v1.ReasonStyle.toObject(i.coverBadgeStyle,n)),i.modulePos!=null&&i.hasOwnProperty("modulePos")&&(o.modulePos=i.modulePos),i.goto!=null&&i.hasOwnProperty("goto")&&(o.goto=i.goto),i.param!=null&&i.hasOwnProperty("param")&&(o.param=i.param),i.uri!=null&&i.hasOwnProperty("uri")&&(o.uri=i.uri),i.position!=null&&i.hasOwnProperty("position")&&(o.position=i.position),i.coverLeftTextV2!=null&&i.hasOwnProperty("coverLeftTextV2")&&(o.coverLeftTextV2=i.coverLeftTextV2),i.coverBadgeStyleV2!=null&&i.hasOwnProperty("coverBadgeStyleV2")&&(o.coverBadgeStyleV2=u.bilibili.polymer.app.search.v1.ReasonStyle.toObject(i.coverBadgeStyleV2,n)),i.viewContent!=null&&i.hasOwnProperty("viewContent")&&(o.viewContent=i.viewContent),i.iconType!=null&&i.hasOwnProperty("iconType")&&(o.iconType=i.iconType),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.DetailsRelationItem"},l}(),e.SearchOgvRecommendCard=function(){function l(t){if(this.items=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.title=i.string();break}case 2:{a.cover=i.string();break}case 3:{a.items&&a.items.length||(a.items=[]),a.items.push(u.bilibili.polymer.app.search.v1.OgvRecommendWord.decode(i,i.uint32()));break}case 4:{a.specialBgColor=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.SearchOgvRecommendCard)return i;let n=new u.bilibili.polymer.app.search.v1.SearchOgvRecommendCard;if(i.title!=null&&(n.title=String(i.title)),i.cover!=null&&(n.cover=String(i.cover)),i.items){if(!Array.isArray(i.items))throw TypeError(".bilibili.polymer.app.search.v1.SearchOgvRecommendCard.items: array expected");n.items=[];for(let o=0;o>>3){case 1:{a.title=i.string();break}case 2:{a.goto=i.string();break}case 3:{a.param=i.string();break}case 4:{a.uri=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.OgvRecommendWord)return i;let n=new u.bilibili.polymer.app.search.v1.OgvRecommendWord;return i.title!=null&&(n.title=String(i.title)),i.goto!=null&&(n.goto=String(i.goto)),i.param!=null&&(n.param=String(i.param)),i.uri!=null&&(n.uri=String(i.uri)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.title="",o.goto="",o.param="",o.uri=""),i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.goto!=null&&i.hasOwnProperty("goto")&&(o.goto=i.goto),i.param!=null&&i.hasOwnProperty("param")&&(o.param=i.param),i.uri!=null&&i.hasOwnProperty("uri")&&(o.uri=i.uri),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.OgvRecommendWord"},l}(),e.SearchSportCard=function(){function l(t){if(this.extraLink=[],this.items=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.title=i.string();break}case 2:{a.cover=i.string();break}case 3:{a.bgCover=i.string();break}case 4:{a.matchTop=u.bilibili.polymer.app.search.v1.MatchItem.decode(i,i.uint32());break}case 5:{a.matchBottom=u.bilibili.polymer.app.search.v1.MatchItem.decode(i,i.uint32());break}case 6:{a.extraLink&&a.extraLink.length||(a.extraLink=[]),a.extraLink.push(u.bilibili.polymer.app.search.v1.ExtraLink.decode(i,i.uint32()));break}case 7:{a.items&&a.items.length||(a.items=[]),a.items.push(u.bilibili.polymer.app.search.v1.MatchInfoObj.decode(i,i.uint32()));break}case 8:{a.id=i.int64();break}case 9:{a.cardLayout=u.bilibili.polymer.app.search.v1.CardLayout.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.SearchSportCard)return i;let n=new u.bilibili.polymer.app.search.v1.SearchSportCard;if(i.title!=null&&(n.title=String(i.title)),i.cover!=null&&(n.cover=String(i.cover)),i.bgCover!=null&&(n.bgCover=String(i.bgCover)),i.matchTop!=null){if(typeof i.matchTop!="object")throw TypeError(".bilibili.polymer.app.search.v1.SearchSportCard.matchTop: object expected");n.matchTop=u.bilibili.polymer.app.search.v1.MatchItem.fromObject(i.matchTop)}if(i.matchBottom!=null){if(typeof i.matchBottom!="object")throw TypeError(".bilibili.polymer.app.search.v1.SearchSportCard.matchBottom: object expected");n.matchBottom=u.bilibili.polymer.app.search.v1.MatchItem.fromObject(i.matchBottom)}if(i.extraLink){if(!Array.isArray(i.extraLink))throw TypeError(".bilibili.polymer.app.search.v1.SearchSportCard.extraLink: array expected");n.extraLink=[];for(let o=0;o>>0,i.id.high>>>0).toNumber())),i.cardLayout!=null){if(typeof i.cardLayout!="object")throw TypeError(".bilibili.polymer.app.search.v1.SearchSportCard.cardLayout: object expected");n.cardLayout=u.bilibili.polymer.app.search.v1.CardLayout.fromObject(i.cardLayout)}return n},l.toObject=function(i,n){n||(n={});let o={};if((n.arrays||n.defaults)&&(o.extraLink=[],o.items=[]),n.defaults){if(o.title="",o.cover="",o.bgCover="",o.matchTop=null,o.matchBottom=null,r.Long){let a=new r.Long(0,0,!1);o.id=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.id=n.longs===String?"0":0;o.cardLayout=null}if(i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.cover!=null&&i.hasOwnProperty("cover")&&(o.cover=i.cover),i.bgCover!=null&&i.hasOwnProperty("bgCover")&&(o.bgCover=i.bgCover),i.matchTop!=null&&i.hasOwnProperty("matchTop")&&(o.matchTop=u.bilibili.polymer.app.search.v1.MatchItem.toObject(i.matchTop,n)),i.matchBottom!=null&&i.hasOwnProperty("matchBottom")&&(o.matchBottom=u.bilibili.polymer.app.search.v1.MatchItem.toObject(i.matchBottom,n)),i.extraLink&&i.extraLink.length){o.extraLink=[];for(let a=0;a>>0,i.id.high>>>0).toNumber():i.id),i.cardLayout!=null&&i.hasOwnProperty("cardLayout")&&(o.cardLayout=u.bilibili.polymer.app.search.v1.CardLayout.toObject(i.cardLayout,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.SearchSportCard"},l}(),e.SearchSportInlineCard=function(){function l(t){if(this.extraLink=[],this.items=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.title=i.string();break}case 2:{a.cover=i.string();break}case 3:{a.bgCover=i.string();break}case 4:{a.matchTop=u.bilibili.polymer.app.search.v1.MatchItem.decode(i,i.uint32());break}case 5:{a.matchBottom=u.bilibili.polymer.app.search.v1.MatchItem.decode(i,i.uint32());break}case 6:{a.extraLink&&a.extraLink.length||(a.extraLink=[]),a.extraLink.push(u.bilibili.polymer.app.search.v1.ExtraLink.decode(i,i.uint32()));break}case 7:{a.items&&a.items.length||(a.items=[]),a.items.push(u.bilibili.polymer.app.search.v1.MatchInfoObj.decode(i,i.uint32()));break}case 8:{a.id=i.int64();break}case 9:{a.esportsInline=u.bilibili.polymer.app.search.v1.SearchInlineData.decode(i,i.uint32());break}case 10:{a.inlineType=i.string();break}case 11:{a.cardLayout=u.bilibili.polymer.app.search.v1.CardLayout.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.SearchSportInlineCard)return i;let n=new u.bilibili.polymer.app.search.v1.SearchSportInlineCard;if(i.title!=null&&(n.title=String(i.title)),i.cover!=null&&(n.cover=String(i.cover)),i.bgCover!=null&&(n.bgCover=String(i.bgCover)),i.matchTop!=null){if(typeof i.matchTop!="object")throw TypeError(".bilibili.polymer.app.search.v1.SearchSportInlineCard.matchTop: object expected");n.matchTop=u.bilibili.polymer.app.search.v1.MatchItem.fromObject(i.matchTop)}if(i.matchBottom!=null){if(typeof i.matchBottom!="object")throw TypeError(".bilibili.polymer.app.search.v1.SearchSportInlineCard.matchBottom: object expected");n.matchBottom=u.bilibili.polymer.app.search.v1.MatchItem.fromObject(i.matchBottom)}if(i.extraLink){if(!Array.isArray(i.extraLink))throw TypeError(".bilibili.polymer.app.search.v1.SearchSportInlineCard.extraLink: array expected");n.extraLink=[];for(let o=0;o>>0,i.id.high>>>0).toNumber())),i.esportsInline!=null){if(typeof i.esportsInline!="object")throw TypeError(".bilibili.polymer.app.search.v1.SearchSportInlineCard.esportsInline: object expected");n.esportsInline=u.bilibili.polymer.app.search.v1.SearchInlineData.fromObject(i.esportsInline)}if(i.inlineType!=null&&(n.inlineType=String(i.inlineType)),i.cardLayout!=null){if(typeof i.cardLayout!="object")throw TypeError(".bilibili.polymer.app.search.v1.SearchSportInlineCard.cardLayout: object expected");n.cardLayout=u.bilibili.polymer.app.search.v1.CardLayout.fromObject(i.cardLayout)}return n},l.toObject=function(i,n){n||(n={});let o={};if((n.arrays||n.defaults)&&(o.extraLink=[],o.items=[]),n.defaults){if(o.title="",o.cover="",o.bgCover="",o.matchTop=null,o.matchBottom=null,r.Long){let a=new r.Long(0,0,!1);o.id=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.id=n.longs===String?"0":0;o.esportsInline=null,o.inlineType="",o.cardLayout=null}if(i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.cover!=null&&i.hasOwnProperty("cover")&&(o.cover=i.cover),i.bgCover!=null&&i.hasOwnProperty("bgCover")&&(o.bgCover=i.bgCover),i.matchTop!=null&&i.hasOwnProperty("matchTop")&&(o.matchTop=u.bilibili.polymer.app.search.v1.MatchItem.toObject(i.matchTop,n)),i.matchBottom!=null&&i.hasOwnProperty("matchBottom")&&(o.matchBottom=u.bilibili.polymer.app.search.v1.MatchItem.toObject(i.matchBottom,n)),i.extraLink&&i.extraLink.length){o.extraLink=[];for(let a=0;a>>0,i.id.high>>>0).toNumber():i.id),i.esportsInline!=null&&i.hasOwnProperty("esportsInline")&&(o.esportsInline=u.bilibili.polymer.app.search.v1.SearchInlineData.toObject(i.esportsInline,n)),i.inlineType!=null&&i.hasOwnProperty("inlineType")&&(o.inlineType=i.inlineType),i.cardLayout!=null&&i.hasOwnProperty("cardLayout")&&(o.cardLayout=u.bilibili.polymer.app.search.v1.CardLayout.toObject(i.cardLayout,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.SearchSportInlineCard"},l}(),e.SearchHotBannerCard=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.icon=i.string();break}case 2:{a.iconNight=i.string();break}case 3:{a.title=i.string();break}case 4:{a.moreText=i.string();break}case 5:{a.moreUrl=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.SearchHotBannerCard)return i;let n=new u.bilibili.polymer.app.search.v1.SearchHotBannerCard;return i.icon!=null&&(n.icon=String(i.icon)),i.iconNight!=null&&(n.iconNight=String(i.iconNight)),i.title!=null&&(n.title=String(i.title)),i.moreText!=null&&(n.moreText=String(i.moreText)),i.moreUrl!=null&&(n.moreUrl=String(i.moreUrl)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.icon="",o.iconNight="",o.title="",o.moreText="",o.moreUrl=""),i.icon!=null&&i.hasOwnProperty("icon")&&(o.icon=i.icon),i.iconNight!=null&&i.hasOwnProperty("iconNight")&&(o.iconNight=i.iconNight),i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.moreText!=null&&i.hasOwnProperty("moreText")&&(o.moreText=i.moreText),i.moreUrl!=null&&i.hasOwnProperty("moreUrl")&&(o.moreUrl=i.moreUrl),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.SearchHotBannerCard"},l}(),e.SearchSubjectCard=function(){function l(t){if(this.badges=[],this.items=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.id=i.int64();break}case 2:{a.title=i.string();break}case 3:{a.cover=i.string();break}case 4:{a.desc=i.string();break}case 5:{a.hotText=i.string();break}case 6:{a.moreText=i.string();break}case 7:{a.moreUrl=i.string();break}case 8:{a.topicType=i.string();break}case 9:{a.badges&&a.badges.length||(a.badges=[]),a.badges.push(u.bilibili.polymer.app.search.v1.ReasonStyle.decode(i,i.uint32()));break}case 10:{a.items&&a.items.length||(a.items=[]),a.items.push(u.bilibili.polymer.app.search.v1.TopicItem.decode(i,i.uint32()));break}case 11:{a.feedback=u.bilibili.polymer.app.search.v1.Feedback.decode(i,i.uint32());break}case 12:{a.cardLayout=u.bilibili.polymer.app.search.v1.CardLayout.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.SearchSubjectCard)return i;let n=new u.bilibili.polymer.app.search.v1.SearchSubjectCard;if(i.id!=null&&(r.Long?(n.id=r.Long.fromValue(i.id)).unsigned=!1:typeof i.id=="string"?n.id=parseInt(i.id,10):typeof i.id=="number"?n.id=i.id:typeof i.id=="object"&&(n.id=new r.LongBits(i.id.low>>>0,i.id.high>>>0).toNumber())),i.title!=null&&(n.title=String(i.title)),i.cover!=null&&(n.cover=String(i.cover)),i.desc!=null&&(n.desc=String(i.desc)),i.hotText!=null&&(n.hotText=String(i.hotText)),i.moreText!=null&&(n.moreText=String(i.moreText)),i.moreUrl!=null&&(n.moreUrl=String(i.moreUrl)),i.topicType!=null&&(n.topicType=String(i.topicType)),i.badges){if(!Array.isArray(i.badges))throw TypeError(".bilibili.polymer.app.search.v1.SearchSubjectCard.badges: array expected");n.badges=[];for(let o=0;o>>0,i.id.high>>>0).toNumber():i.id),i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.cover!=null&&i.hasOwnProperty("cover")&&(o.cover=i.cover),i.desc!=null&&i.hasOwnProperty("desc")&&(o.desc=i.desc),i.hotText!=null&&i.hasOwnProperty("hotText")&&(o.hotText=i.hotText),i.moreText!=null&&i.hasOwnProperty("moreText")&&(o.moreText=i.moreText),i.moreUrl!=null&&i.hasOwnProperty("moreUrl")&&(o.moreUrl=i.moreUrl),i.topicType!=null&&i.hasOwnProperty("topicType")&&(o.topicType=i.topicType),i.badges&&i.badges.length){o.badges=[];for(let a=0;a>>3){case 1:{a.cover=i.string();break}case 2:{a.picNavigation&&a.picNavigation.length||(a.picNavigation=[]),a.picNavigation.push(u.bilibili.polymer.app.search.v1.PicNavigation.decode(i,i.uint32()));break}case 3:{a.cardLayout=u.bilibili.polymer.app.search.v1.CardLayout.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.SearchPediaPicCard)return i;let n=new u.bilibili.polymer.app.search.v1.SearchPediaPicCard;if(i.cover!=null&&(n.cover=String(i.cover)),i.picNavigation){if(!Array.isArray(i.picNavigation))throw TypeError(".bilibili.polymer.app.search.v1.SearchPediaPicCard.picNavigation: array expected");n.picNavigation=[];for(let o=0;o>>3){case 1:{a.uri=i.string();break}case 2:{a.param=i.string();break}case 3:{a.goto=i.string();break}case 4:{a.linktype=i.string();break}case 5:{a.position=i.int32();break}case 6:{a.trackid=i.string();break}case 7:{a.id=i.int64();break}case 8:{a.title=i.string();break}case 9:{a.contentType=i.int32();break}case 10:{a.upName=i.string();break}case 11:{a.publishText=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.TopicItem)return i;let n=new u.bilibili.polymer.app.search.v1.TopicItem;return i.uri!=null&&(n.uri=String(i.uri)),i.param!=null&&(n.param=String(i.param)),i.goto!=null&&(n.goto=String(i.goto)),i.linktype!=null&&(n.linktype=String(i.linktype)),i.position!=null&&(n.position=i.position|0),i.trackid!=null&&(n.trackid=String(i.trackid)),i.id!=null&&(r.Long?(n.id=r.Long.fromValue(i.id)).unsigned=!1:typeof i.id=="string"?n.id=parseInt(i.id,10):typeof i.id=="number"?n.id=i.id:typeof i.id=="object"&&(n.id=new r.LongBits(i.id.low>>>0,i.id.high>>>0).toNumber())),i.title!=null&&(n.title=String(i.title)),i.contentType!=null&&(n.contentType=i.contentType|0),i.upName!=null&&(n.upName=String(i.upName)),i.publishText!=null&&(n.publishText=String(i.publishText)),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(o.uri="",o.param="",o.goto="",o.linktype="",o.position=0,o.trackid="",r.Long){let a=new r.Long(0,0,!1);o.id=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.id=n.longs===String?"0":0;o.title="",o.contentType=0,o.upName="",o.publishText=""}return i.uri!=null&&i.hasOwnProperty("uri")&&(o.uri=i.uri),i.param!=null&&i.hasOwnProperty("param")&&(o.param=i.param),i.goto!=null&&i.hasOwnProperty("goto")&&(o.goto=i.goto),i.linktype!=null&&i.hasOwnProperty("linktype")&&(o.linktype=i.linktype),i.position!=null&&i.hasOwnProperty("position")&&(o.position=i.position),i.trackid!=null&&i.hasOwnProperty("trackid")&&(o.trackid=i.trackid),i.id!=null&&i.hasOwnProperty("id")&&(typeof i.id=="number"?o.id=n.longs===String?String(i.id):i.id:o.id=n.longs===String?r.Long.prototype.toString.call(i.id):n.longs===Number?new r.LongBits(i.id.low>>>0,i.id.high>>>0).toNumber():i.id),i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.contentType!=null&&i.hasOwnProperty("contentType")&&(o.contentType=i.contentType),i.upName!=null&&i.hasOwnProperty("upName")&&(o.upName=i.upName),i.publishText!=null&&i.hasOwnProperty("publishText")&&(o.publishText=i.publishText),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.TopicItem"},l}(),e.MatchInfoObj=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.id=i.int64();break}case 2:{a.status=i.int32();break}case 3:{a.matchStage=i.string();break}case 4:{a.team_1=u.bilibili.polymer.app.search.v1.MatchTeam.decode(i,i.uint32());break}case 5:{a.team_2=u.bilibili.polymer.app.search.v1.MatchTeam.decode(i,i.uint32());break}case 6:{a.matchLabel=u.bilibili.polymer.app.search.v1.MatchItem.decode(i,i.uint32());break}case 7:{a.matchTime=u.bilibili.polymer.app.search.v1.MatchItem.decode(i,i.uint32());break}case 8:{a.matchButton=u.bilibili.polymer.app.search.v1.MatchItem.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.MatchInfoObj)return i;let n=new u.bilibili.polymer.app.search.v1.MatchInfoObj;if(i.id!=null&&(r.Long?(n.id=r.Long.fromValue(i.id)).unsigned=!1:typeof i.id=="string"?n.id=parseInt(i.id,10):typeof i.id=="number"?n.id=i.id:typeof i.id=="object"&&(n.id=new r.LongBits(i.id.low>>>0,i.id.high>>>0).toNumber())),i.status!=null&&(n.status=i.status|0),i.matchStage!=null&&(n.matchStage=String(i.matchStage)),i.team_1!=null){if(typeof i.team_1!="object")throw TypeError(".bilibili.polymer.app.search.v1.MatchInfoObj.team_1: object expected");n.team_1=u.bilibili.polymer.app.search.v1.MatchTeam.fromObject(i.team_1)}if(i.team_2!=null){if(typeof i.team_2!="object")throw TypeError(".bilibili.polymer.app.search.v1.MatchInfoObj.team_2: object expected");n.team_2=u.bilibili.polymer.app.search.v1.MatchTeam.fromObject(i.team_2)}if(i.matchLabel!=null){if(typeof i.matchLabel!="object")throw TypeError(".bilibili.polymer.app.search.v1.MatchInfoObj.matchLabel: object expected");n.matchLabel=u.bilibili.polymer.app.search.v1.MatchItem.fromObject(i.matchLabel)}if(i.matchTime!=null){if(typeof i.matchTime!="object")throw TypeError(".bilibili.polymer.app.search.v1.MatchInfoObj.matchTime: object expected");n.matchTime=u.bilibili.polymer.app.search.v1.MatchItem.fromObject(i.matchTime)}if(i.matchButton!=null){if(typeof i.matchButton!="object")throw TypeError(".bilibili.polymer.app.search.v1.MatchInfoObj.matchButton: object expected");n.matchButton=u.bilibili.polymer.app.search.v1.MatchItem.fromObject(i.matchButton)}return n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.id=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.id=n.longs===String?"0":0;o.status=0,o.matchStage="",o.team_1=null,o.team_2=null,o.matchLabel=null,o.matchTime=null,o.matchButton=null}return i.id!=null&&i.hasOwnProperty("id")&&(typeof i.id=="number"?o.id=n.longs===String?String(i.id):i.id:o.id=n.longs===String?r.Long.prototype.toString.call(i.id):n.longs===Number?new r.LongBits(i.id.low>>>0,i.id.high>>>0).toNumber():i.id),i.status!=null&&i.hasOwnProperty("status")&&(o.status=i.status),i.matchStage!=null&&i.hasOwnProperty("matchStage")&&(o.matchStage=i.matchStage),i.team_1!=null&&i.hasOwnProperty("team_1")&&(o.team_1=u.bilibili.polymer.app.search.v1.MatchTeam.toObject(i.team_1,n)),i.team_2!=null&&i.hasOwnProperty("team_2")&&(o.team_2=u.bilibili.polymer.app.search.v1.MatchTeam.toObject(i.team_2,n)),i.matchLabel!=null&&i.hasOwnProperty("matchLabel")&&(o.matchLabel=u.bilibili.polymer.app.search.v1.MatchItem.toObject(i.matchLabel,n)),i.matchTime!=null&&i.hasOwnProperty("matchTime")&&(o.matchTime=u.bilibili.polymer.app.search.v1.MatchItem.toObject(i.matchTime,n)),i.matchButton!=null&&i.hasOwnProperty("matchButton")&&(o.matchButton=u.bilibili.polymer.app.search.v1.MatchItem.toObject(i.matchButton,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.MatchInfoObj"},l}(),e.SearchAuthorNewCard=function(){function l(t){if(this.avItems=[],this.threePoint=[],this.userCardInfo=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.title=i.string();break}case 2:{a.cover=i.string();break}case 3:{a.liveFace=i.int32();break}case 4:{a.liveUri=i.string();break}case 5:{a.liveLink=i.string();break}case 6:{a.fans=i.int32();break}case 7:{a.level=i.int32();break}case 8:{a.sign=i.string();break}case 9:{a.isUp=i.bool();break}case 10:{a.archives=i.int32();break}case 11:{a.mid=i.int64();break}case 12:{a.roomid=i.int64();break}case 13:{a.relation=u.bilibili.polymer.app.search.v1.Relation.decode(i,i.uint32());break}case 14:{a.officialVerify=u.bilibili.polymer.app.search.v1.OfficialVerify.decode(i,i.uint32());break}case 15:{a.faceNftNew=i.int32();break}case 16:{a.nftFaceIcon=u.bilibili.polymer.app.search.v1.NftFaceIcon.decode(i,i.uint32());break}case 17:{a.isSeniorMember=i.int32();break}case 18:{a.background=u.bilibili.polymer.app.search.v1.Background.decode(i,i.uint32());break}case 19:{a.avStyle=i.int32();break}case 20:{a.space=u.bilibili.polymer.app.search.v1.Space.decode(i,i.uint32());break}case 21:{a.avItems&&a.avItems.length||(a.avItems=[]),a.avItems.push(u.bilibili.polymer.app.search.v1.AvItem.decode(i,i.uint32()));break}case 22:{a.notice=u.bilibili.polymer.app.search.v1.Notice.decode(i,i.uint32());break}case 23:{a.sharePlane=u.bilibili.polymer.app.search.v1.SharePlane.decode(i,i.uint32());break}case 24:{a.inlineType=i.string();break}case 25:{a.inlineLive=u.bilibili.polymer.app.search.v1.SearchInlineData.decode(i,i.uint32());break}case 26:{a.isInlineLive=i.int32();break}case 27:{a.threePoint&&a.threePoint.length||(a.threePoint=[]),a.threePoint.push(u.bilibili.polymer.app.search.v1.ThreePoint.decode(i,i.uint32()));break}case 28:{a.liveStatus=i.int32();break}case 29:{a.vip=u.bilibili.polymer.app.search.v1.VipInfo.decode(i,i.uint32());break}case 30:{a.attentions=i.int32();break}case 31:{a.feedback=u.bilibili.polymer.app.search.v1.Feedback.decode(i,i.uint32());break}case 32:{a.userCardInfo&&a.userCardInfo.length||(a.userCardInfo=[]),a.userCardInfo.push(i.string());break}case 33:{a.cardLayout=u.bilibili.polymer.app.search.v1.CardLayout.decode(i,i.uint32());break}case 34:{a.avatarInfo=u.bilibili.dagw.component.avatar.v1.AvatarItem.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.SearchAuthorNewCard)return i;let n=new u.bilibili.polymer.app.search.v1.SearchAuthorNewCard;if(i.title!=null&&(n.title=String(i.title)),i.cover!=null&&(n.cover=String(i.cover)),i.liveFace!=null&&(n.liveFace=i.liveFace|0),i.liveUri!=null&&(n.liveUri=String(i.liveUri)),i.liveLink!=null&&(n.liveLink=String(i.liveLink)),i.fans!=null&&(n.fans=i.fans|0),i.level!=null&&(n.level=i.level|0),i.sign!=null&&(n.sign=String(i.sign)),i.isUp!=null&&(n.isUp=!!i.isUp),i.archives!=null&&(n.archives=i.archives|0),i.mid!=null&&(r.Long?(n.mid=r.Long.fromValue(i.mid)).unsigned=!1:typeof i.mid=="string"?n.mid=parseInt(i.mid,10):typeof i.mid=="number"?n.mid=i.mid:typeof i.mid=="object"&&(n.mid=new r.LongBits(i.mid.low>>>0,i.mid.high>>>0).toNumber())),i.roomid!=null&&(r.Long?(n.roomid=r.Long.fromValue(i.roomid)).unsigned=!1:typeof i.roomid=="string"?n.roomid=parseInt(i.roomid,10):typeof i.roomid=="number"?n.roomid=i.roomid:typeof i.roomid=="object"&&(n.roomid=new r.LongBits(i.roomid.low>>>0,i.roomid.high>>>0).toNumber())),i.relation!=null){if(typeof i.relation!="object")throw TypeError(".bilibili.polymer.app.search.v1.SearchAuthorNewCard.relation: object expected");n.relation=u.bilibili.polymer.app.search.v1.Relation.fromObject(i.relation)}if(i.officialVerify!=null){if(typeof i.officialVerify!="object")throw TypeError(".bilibili.polymer.app.search.v1.SearchAuthorNewCard.officialVerify: object expected");n.officialVerify=u.bilibili.polymer.app.search.v1.OfficialVerify.fromObject(i.officialVerify)}if(i.faceNftNew!=null&&(n.faceNftNew=i.faceNftNew|0),i.nftFaceIcon!=null){if(typeof i.nftFaceIcon!="object")throw TypeError(".bilibili.polymer.app.search.v1.SearchAuthorNewCard.nftFaceIcon: object expected");n.nftFaceIcon=u.bilibili.polymer.app.search.v1.NftFaceIcon.fromObject(i.nftFaceIcon)}if(i.isSeniorMember!=null&&(n.isSeniorMember=i.isSeniorMember|0),i.background!=null){if(typeof i.background!="object")throw TypeError(".bilibili.polymer.app.search.v1.SearchAuthorNewCard.background: object expected");n.background=u.bilibili.polymer.app.search.v1.Background.fromObject(i.background)}if(i.avStyle!=null&&(n.avStyle=i.avStyle|0),i.space!=null){if(typeof i.space!="object")throw TypeError(".bilibili.polymer.app.search.v1.SearchAuthorNewCard.space: object expected");n.space=u.bilibili.polymer.app.search.v1.Space.fromObject(i.space)}if(i.avItems){if(!Array.isArray(i.avItems))throw TypeError(".bilibili.polymer.app.search.v1.SearchAuthorNewCard.avItems: array expected");n.avItems=[];for(let o=0;o>>0,i.mid.high>>>0).toNumber():i.mid),i.roomid!=null&&i.hasOwnProperty("roomid")&&(typeof i.roomid=="number"?o.roomid=n.longs===String?String(i.roomid):i.roomid:o.roomid=n.longs===String?r.Long.prototype.toString.call(i.roomid):n.longs===Number?new r.LongBits(i.roomid.low>>>0,i.roomid.high>>>0).toNumber():i.roomid),i.relation!=null&&i.hasOwnProperty("relation")&&(o.relation=u.bilibili.polymer.app.search.v1.Relation.toObject(i.relation,n)),i.officialVerify!=null&&i.hasOwnProperty("officialVerify")&&(o.officialVerify=u.bilibili.polymer.app.search.v1.OfficialVerify.toObject(i.officialVerify,n)),i.faceNftNew!=null&&i.hasOwnProperty("faceNftNew")&&(o.faceNftNew=i.faceNftNew),i.nftFaceIcon!=null&&i.hasOwnProperty("nftFaceIcon")&&(o.nftFaceIcon=u.bilibili.polymer.app.search.v1.NftFaceIcon.toObject(i.nftFaceIcon,n)),i.isSeniorMember!=null&&i.hasOwnProperty("isSeniorMember")&&(o.isSeniorMember=i.isSeniorMember),i.background!=null&&i.hasOwnProperty("background")&&(o.background=u.bilibili.polymer.app.search.v1.Background.toObject(i.background,n)),i.avStyle!=null&&i.hasOwnProperty("avStyle")&&(o.avStyle=i.avStyle),i.space!=null&&i.hasOwnProperty("space")&&(o.space=u.bilibili.polymer.app.search.v1.Space.toObject(i.space,n)),i.avItems&&i.avItems.length){o.avItems=[];for(let a=0;a>>3){case 1:{a.cover=i.string();break}case 2:{a.event=i.string();break}case 3:{a.eventV2=i.string();break}case 4:{a.text=i.string();break}case 5:{a.upId=i.int64();break}case 6:{a.uri=i.string();break}case 7:{a.faceNftNew=i.int32();break}case 8:{a.nftFaceIcon=u.bilibili.polymer.app.search.v1.NftFaceIcon.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.Avatar)return i;let n=new u.bilibili.polymer.app.search.v1.Avatar;if(i.cover!=null&&(n.cover=String(i.cover)),i.event!=null&&(n.event=String(i.event)),i.eventV2!=null&&(n.eventV2=String(i.eventV2)),i.text!=null&&(n.text=String(i.text)),i.upId!=null&&(r.Long?(n.upId=r.Long.fromValue(i.upId)).unsigned=!1:typeof i.upId=="string"?n.upId=parseInt(i.upId,10):typeof i.upId=="number"?n.upId=i.upId:typeof i.upId=="object"&&(n.upId=new r.LongBits(i.upId.low>>>0,i.upId.high>>>0).toNumber())),i.uri!=null&&(n.uri=String(i.uri)),i.faceNftNew!=null&&(n.faceNftNew=i.faceNftNew|0),i.nftFaceIcon!=null){if(typeof i.nftFaceIcon!="object")throw TypeError(".bilibili.polymer.app.search.v1.Avatar.nftFaceIcon: object expected");n.nftFaceIcon=u.bilibili.polymer.app.search.v1.NftFaceIcon.fromObject(i.nftFaceIcon)}return n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(o.cover="",o.event="",o.eventV2="",o.text="",r.Long){let a=new r.Long(0,0,!1);o.upId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.upId=n.longs===String?"0":0;o.uri="",o.faceNftNew=0,o.nftFaceIcon=null}return i.cover!=null&&i.hasOwnProperty("cover")&&(o.cover=i.cover),i.event!=null&&i.hasOwnProperty("event")&&(o.event=i.event),i.eventV2!=null&&i.hasOwnProperty("eventV2")&&(o.eventV2=i.eventV2),i.text!=null&&i.hasOwnProperty("text")&&(o.text=i.text),i.upId!=null&&i.hasOwnProperty("upId")&&(typeof i.upId=="number"?o.upId=n.longs===String?String(i.upId):i.upId:o.upId=n.longs===String?r.Long.prototype.toString.call(i.upId):n.longs===Number?new r.LongBits(i.upId.low>>>0,i.upId.high>>>0).toNumber():i.upId),i.uri!=null&&i.hasOwnProperty("uri")&&(o.uri=i.uri),i.faceNftNew!=null&&i.hasOwnProperty("faceNftNew")&&(o.faceNftNew=i.faceNftNew),i.nftFaceIcon!=null&&i.hasOwnProperty("nftFaceIcon")&&(o.nftFaceIcon=u.bilibili.polymer.app.search.v1.NftFaceIcon.toObject(i.nftFaceIcon,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.Avatar"},l}(),e.Args=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.online=i.int32();break}case 2:{a.rname=i.string();break}case 3:{a.roomId=i.int64();break}case 4:{a.tname=i.string();break}case 5:{a.upId=i.int64();break}case 6:{a.upName=i.string();break}case 7:{a.rid=i.int64();break}case 8:{a.tid=i.int64();break}case 9:{a.aid=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.Args)return i;let n=new u.bilibili.polymer.app.search.v1.Args;return i.online!=null&&(n.online=i.online|0),i.rname!=null&&(n.rname=String(i.rname)),i.roomId!=null&&(r.Long?(n.roomId=r.Long.fromValue(i.roomId)).unsigned=!1:typeof i.roomId=="string"?n.roomId=parseInt(i.roomId,10):typeof i.roomId=="number"?n.roomId=i.roomId:typeof i.roomId=="object"&&(n.roomId=new r.LongBits(i.roomId.low>>>0,i.roomId.high>>>0).toNumber())),i.tname!=null&&(n.tname=String(i.tname)),i.upId!=null&&(r.Long?(n.upId=r.Long.fromValue(i.upId)).unsigned=!1:typeof i.upId=="string"?n.upId=parseInt(i.upId,10):typeof i.upId=="number"?n.upId=i.upId:typeof i.upId=="object"&&(n.upId=new r.LongBits(i.upId.low>>>0,i.upId.high>>>0).toNumber())),i.upName!=null&&(n.upName=String(i.upName)),i.rid!=null&&(r.Long?(n.rid=r.Long.fromValue(i.rid)).unsigned=!1:typeof i.rid=="string"?n.rid=parseInt(i.rid,10):typeof i.rid=="number"?n.rid=i.rid:typeof i.rid=="object"&&(n.rid=new r.LongBits(i.rid.low>>>0,i.rid.high>>>0).toNumber())),i.tid!=null&&(r.Long?(n.tid=r.Long.fromValue(i.tid)).unsigned=!1:typeof i.tid=="string"?n.tid=parseInt(i.tid,10):typeof i.tid=="number"?n.tid=i.tid:typeof i.tid=="object"&&(n.tid=new r.LongBits(i.tid.low>>>0,i.tid.high>>>0).toNumber())),i.aid!=null&&(r.Long?(n.aid=r.Long.fromValue(i.aid)).unsigned=!1:typeof i.aid=="string"?n.aid=parseInt(i.aid,10):typeof i.aid=="number"?n.aid=i.aid:typeof i.aid=="object"&&(n.aid=new r.LongBits(i.aid.low>>>0,i.aid.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(o.online=0,o.rname="",r.Long){let a=new r.Long(0,0,!1);o.roomId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.roomId=n.longs===String?"0":0;if(o.tname="",r.Long){let a=new r.Long(0,0,!1);o.upId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.upId=n.longs===String?"0":0;if(o.upName="",r.Long){let a=new r.Long(0,0,!1);o.rid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.rid=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.tid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.tid=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.aid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.aid=n.longs===String?"0":0}return i.online!=null&&i.hasOwnProperty("online")&&(o.online=i.online),i.rname!=null&&i.hasOwnProperty("rname")&&(o.rname=i.rname),i.roomId!=null&&i.hasOwnProperty("roomId")&&(typeof i.roomId=="number"?o.roomId=n.longs===String?String(i.roomId):i.roomId:o.roomId=n.longs===String?r.Long.prototype.toString.call(i.roomId):n.longs===Number?new r.LongBits(i.roomId.low>>>0,i.roomId.high>>>0).toNumber():i.roomId),i.tname!=null&&i.hasOwnProperty("tname")&&(o.tname=i.tname),i.upId!=null&&i.hasOwnProperty("upId")&&(typeof i.upId=="number"?o.upId=n.longs===String?String(i.upId):i.upId:o.upId=n.longs===String?r.Long.prototype.toString.call(i.upId):n.longs===Number?new r.LongBits(i.upId.low>>>0,i.upId.high>>>0).toNumber():i.upId),i.upName!=null&&i.hasOwnProperty("upName")&&(o.upName=i.upName),i.rid!=null&&i.hasOwnProperty("rid")&&(typeof i.rid=="number"?o.rid=n.longs===String?String(i.rid):i.rid:o.rid=n.longs===String?r.Long.prototype.toString.call(i.rid):n.longs===Number?new r.LongBits(i.rid.low>>>0,i.rid.high>>>0).toNumber():i.rid),i.tid!=null&&i.hasOwnProperty("tid")&&(typeof i.tid=="number"?o.tid=n.longs===String?String(i.tid):i.tid:o.tid=n.longs===String?r.Long.prototype.toString.call(i.tid):n.longs===Number?new r.LongBits(i.tid.low>>>0,i.tid.high>>>0).toNumber():i.tid),i.aid!=null&&i.hasOwnProperty("aid")&&(typeof i.aid=="number"?o.aid=n.longs===String?String(i.aid):i.aid:o.aid=n.longs===String?r.Long.prototype.toString.call(i.aid):n.longs===Number?new r.LongBits(i.aid.low>>>0,i.aid.high>>>0).toNumber():i.aid),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.Args"},l}(),e.InlineThreePointPanel=function(){function l(t){if(this.functionalButtons=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.panelType=i.int32();break}case 2:{a.shareId=i.string();break}case 3:{a.shareOrigin=i.string();break}case 4:{a.functionalButtons&&a.functionalButtons.length||(a.functionalButtons=[]),a.functionalButtons.push(u.bilibili.polymer.app.search.v1.ShareButtonItem.decode(i,i.uint32()));break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.InlineThreePointPanel)return i;let n=new u.bilibili.polymer.app.search.v1.InlineThreePointPanel;if(i.panelType!=null&&(n.panelType=i.panelType|0),i.shareId!=null&&(n.shareId=String(i.shareId)),i.shareOrigin!=null&&(n.shareOrigin=String(i.shareOrigin)),i.functionalButtons){if(!Array.isArray(i.functionalButtons))throw TypeError(".bilibili.polymer.app.search.v1.InlineThreePointPanel.functionalButtons: array expected");n.functionalButtons=[];for(let o=0;o>>3){case 1:{a.type=i.int32();break}case 2:{a.buttonMetas&&a.buttonMetas.length||(a.buttonMetas=[]),a.buttonMetas.push(u.bilibili.polymer.app.search.v1.ButtonMeta.decode(i,i.uint32()));break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.ShareButtonItem)return i;let n=new u.bilibili.polymer.app.search.v1.ShareButtonItem;if(i.type!=null&&(n.type=i.type|0),i.buttonMetas){if(!Array.isArray(i.buttonMetas))throw TypeError(".bilibili.polymer.app.search.v1.ShareButtonItem.buttonMetas: array expected");n.buttonMetas=[];for(let o=0;o>>3){case 1:{a.icon=i.string();break}case 2:{a.text=i.string();break}case 3:{a.buttonStatus=i.string();break}case 4:{a.toast=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.ButtonMeta)return i;let n=new u.bilibili.polymer.app.search.v1.ButtonMeta;return i.icon!=null&&(n.icon=String(i.icon)),i.text!=null&&(n.text=String(i.text)),i.buttonStatus!=null&&(n.buttonStatus=String(i.buttonStatus)),i.toast!=null&&(n.toast=String(i.toast)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.icon="",o.text="",o.buttonStatus="",o.toast=""),i.icon!=null&&i.hasOwnProperty("icon")&&(o.icon=i.icon),i.text!=null&&i.hasOwnProperty("text")&&(o.text=i.text),i.buttonStatus!=null&&i.hasOwnProperty("buttonStatus")&&(o.buttonStatus=i.buttonStatus),i.toast!=null&&i.hasOwnProperty("toast")&&(o.toast=i.toast),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.ButtonMeta"},l}(),e.SearchLikeButtonItem=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.aid=i.int64();break}case 2:{a.count=i.int64();break}case 3:{a.selected=i.int32();break}case 4:{a.showCount=i.bool();break}case 5:{a.likeResource=u.bilibili.polymer.app.search.v1.LikeResource.decode(i,i.uint32());break}case 6:{a.likeNightResource=u.bilibili.polymer.app.search.v1.LikeResource.decode(i,i.uint32());break}case 7:{a.dislikeResource=u.bilibili.polymer.app.search.v1.LikeResource.decode(i,i.uint32());break}case 8:{a.dislikeNightResource=u.bilibili.polymer.app.search.v1.LikeResource.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.SearchLikeButtonItem)return i;let n=new u.bilibili.polymer.app.search.v1.SearchLikeButtonItem;if(i.aid!=null&&(r.Long?(n.aid=r.Long.fromValue(i.aid)).unsigned=!1:typeof i.aid=="string"?n.aid=parseInt(i.aid,10):typeof i.aid=="number"?n.aid=i.aid:typeof i.aid=="object"&&(n.aid=new r.LongBits(i.aid.low>>>0,i.aid.high>>>0).toNumber())),i.count!=null&&(r.Long?(n.count=r.Long.fromValue(i.count)).unsigned=!1:typeof i.count=="string"?n.count=parseInt(i.count,10):typeof i.count=="number"?n.count=i.count:typeof i.count=="object"&&(n.count=new r.LongBits(i.count.low>>>0,i.count.high>>>0).toNumber())),i.selected!=null&&(n.selected=i.selected|0),i.showCount!=null&&(n.showCount=!!i.showCount),i.likeResource!=null){if(typeof i.likeResource!="object")throw TypeError(".bilibili.polymer.app.search.v1.SearchLikeButtonItem.likeResource: object expected");n.likeResource=u.bilibili.polymer.app.search.v1.LikeResource.fromObject(i.likeResource)}if(i.likeNightResource!=null){if(typeof i.likeNightResource!="object")throw TypeError(".bilibili.polymer.app.search.v1.SearchLikeButtonItem.likeNightResource: object expected");n.likeNightResource=u.bilibili.polymer.app.search.v1.LikeResource.fromObject(i.likeNightResource)}if(i.dislikeResource!=null){if(typeof i.dislikeResource!="object")throw TypeError(".bilibili.polymer.app.search.v1.SearchLikeButtonItem.dislikeResource: object expected");n.dislikeResource=u.bilibili.polymer.app.search.v1.LikeResource.fromObject(i.dislikeResource)}if(i.dislikeNightResource!=null){if(typeof i.dislikeNightResource!="object")throw TypeError(".bilibili.polymer.app.search.v1.SearchLikeButtonItem.dislikeNightResource: object expected");n.dislikeNightResource=u.bilibili.polymer.app.search.v1.LikeResource.fromObject(i.dislikeNightResource)}return n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.aid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.aid=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.count=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.count=n.longs===String?"0":0;o.selected=0,o.showCount=!1,o.likeResource=null,o.likeNightResource=null,o.dislikeResource=null,o.dislikeNightResource=null}return i.aid!=null&&i.hasOwnProperty("aid")&&(typeof i.aid=="number"?o.aid=n.longs===String?String(i.aid):i.aid:o.aid=n.longs===String?r.Long.prototype.toString.call(i.aid):n.longs===Number?new r.LongBits(i.aid.low>>>0,i.aid.high>>>0).toNumber():i.aid),i.count!=null&&i.hasOwnProperty("count")&&(typeof i.count=="number"?o.count=n.longs===String?String(i.count):i.count:o.count=n.longs===String?r.Long.prototype.toString.call(i.count):n.longs===Number?new r.LongBits(i.count.low>>>0,i.count.high>>>0).toNumber():i.count),i.selected!=null&&i.hasOwnProperty("selected")&&(o.selected=i.selected),i.showCount!=null&&i.hasOwnProperty("showCount")&&(o.showCount=i.showCount),i.likeResource!=null&&i.hasOwnProperty("likeResource")&&(o.likeResource=u.bilibili.polymer.app.search.v1.LikeResource.toObject(i.likeResource,n)),i.likeNightResource!=null&&i.hasOwnProperty("likeNightResource")&&(o.likeNightResource=u.bilibili.polymer.app.search.v1.LikeResource.toObject(i.likeNightResource,n)),i.dislikeResource!=null&&i.hasOwnProperty("dislikeResource")&&(o.dislikeResource=u.bilibili.polymer.app.search.v1.LikeResource.toObject(i.dislikeResource,n)),i.dislikeNightResource!=null&&i.hasOwnProperty("dislikeNightResource")&&(o.dislikeNightResource=u.bilibili.polymer.app.search.v1.LikeResource.toObject(i.dislikeNightResource,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.SearchLikeButtonItem"},l}(),e.LikeResource=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.url=i.string();break}case 2:{a.contentHash=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.LikeResource)return i;let n=new u.bilibili.polymer.app.search.v1.LikeResource;return i.url!=null&&(n.url=String(i.url)),i.contentHash!=null&&(n.contentHash=String(i.contentHash)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.url="",o.contentHash=""),i.url!=null&&i.hasOwnProperty("url")&&(o.url=i.url),i.contentHash!=null&&i.hasOwnProperty("contentHash")&&(o.contentHash=i.contentHash),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.LikeResource"},l}(),e.Space=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.show=i.int32();break}case 2:{a.textColor=i.string();break}case 3:{a.textColorNight=i.string();break}case 4:{a.text=i.string();break}case 5:{a.spaceUrl=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.Space)return i;let n=new u.bilibili.polymer.app.search.v1.Space;return i.show!=null&&(n.show=i.show|0),i.textColor!=null&&(n.textColor=String(i.textColor)),i.textColorNight!=null&&(n.textColorNight=String(i.textColorNight)),i.text!=null&&(n.text=String(i.text)),i.spaceUrl!=null&&(n.spaceUrl=String(i.spaceUrl)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.show=0,o.textColor="",o.textColorNight="",o.text="",o.spaceUrl=""),i.show!=null&&i.hasOwnProperty("show")&&(o.show=i.show),i.textColor!=null&&i.hasOwnProperty("textColor")&&(o.textColor=i.textColor),i.textColorNight!=null&&i.hasOwnProperty("textColorNight")&&(o.textColorNight=i.textColorNight),i.text!=null&&i.hasOwnProperty("text")&&(o.text=i.text),i.spaceUrl!=null&&i.hasOwnProperty("spaceUrl")&&(o.spaceUrl=i.spaceUrl),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.Space"},l}(),e.AvItem=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.title=i.string();break}case 2:{a.cover=i.string();break}case 3:{a.uri=i.string();break}case 4:{a.ctimeLabel=i.string();break}case 5:{a.duration=i.string();break}case 6:{a.play=i.int32();break}case 7:{a.danmaku=i.int64();break}case 8:{a.ctime=i.int32();break}case 9:{a.goto=i.string();break}case 10:{a.param=i.string();break}case 11:{a.position=i.int32();break}case 12:{a.ctimeLabelV2=i.string();break}case 13:{a.viewContent=i.string();break}case 14:{a.iconType=i.int32();break}case 15:{a.chargingLabel=u.bilibili.polymer.app.search.v1.LabelStyle.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.AvItem)return i;let n=new u.bilibili.polymer.app.search.v1.AvItem;if(i.title!=null&&(n.title=String(i.title)),i.cover!=null&&(n.cover=String(i.cover)),i.uri!=null&&(n.uri=String(i.uri)),i.ctimeLabel!=null&&(n.ctimeLabel=String(i.ctimeLabel)),i.duration!=null&&(n.duration=String(i.duration)),i.play!=null&&(n.play=i.play|0),i.danmaku!=null&&(r.Long?(n.danmaku=r.Long.fromValue(i.danmaku)).unsigned=!1:typeof i.danmaku=="string"?n.danmaku=parseInt(i.danmaku,10):typeof i.danmaku=="number"?n.danmaku=i.danmaku:typeof i.danmaku=="object"&&(n.danmaku=new r.LongBits(i.danmaku.low>>>0,i.danmaku.high>>>0).toNumber())),i.ctime!=null&&(n.ctime=i.ctime|0),i.goto!=null&&(n.goto=String(i.goto)),i.param!=null&&(n.param=String(i.param)),i.position!=null&&(n.position=i.position|0),i.ctimeLabelV2!=null&&(n.ctimeLabelV2=String(i.ctimeLabelV2)),i.viewContent!=null&&(n.viewContent=String(i.viewContent)),i.iconType!=null&&(n.iconType=i.iconType|0),i.chargingLabel!=null){if(typeof i.chargingLabel!="object")throw TypeError(".bilibili.polymer.app.search.v1.AvItem.chargingLabel: object expected");n.chargingLabel=u.bilibili.polymer.app.search.v1.LabelStyle.fromObject(i.chargingLabel)}return n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(o.title="",o.cover="",o.uri="",o.ctimeLabel="",o.duration="",o.play=0,r.Long){let a=new r.Long(0,0,!1);o.danmaku=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.danmaku=n.longs===String?"0":0;o.ctime=0,o.goto="",o.param="",o.position=0,o.ctimeLabelV2="",o.viewContent="",o.iconType=0,o.chargingLabel=null}return i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.cover!=null&&i.hasOwnProperty("cover")&&(o.cover=i.cover),i.uri!=null&&i.hasOwnProperty("uri")&&(o.uri=i.uri),i.ctimeLabel!=null&&i.hasOwnProperty("ctimeLabel")&&(o.ctimeLabel=i.ctimeLabel),i.duration!=null&&i.hasOwnProperty("duration")&&(o.duration=i.duration),i.play!=null&&i.hasOwnProperty("play")&&(o.play=i.play),i.danmaku!=null&&i.hasOwnProperty("danmaku")&&(typeof i.danmaku=="number"?o.danmaku=n.longs===String?String(i.danmaku):i.danmaku:o.danmaku=n.longs===String?r.Long.prototype.toString.call(i.danmaku):n.longs===Number?new r.LongBits(i.danmaku.low>>>0,i.danmaku.high>>>0).toNumber():i.danmaku),i.ctime!=null&&i.hasOwnProperty("ctime")&&(o.ctime=i.ctime),i.goto!=null&&i.hasOwnProperty("goto")&&(o.goto=i.goto),i.param!=null&&i.hasOwnProperty("param")&&(o.param=i.param),i.position!=null&&i.hasOwnProperty("position")&&(o.position=i.position),i.ctimeLabelV2!=null&&i.hasOwnProperty("ctimeLabelV2")&&(o.ctimeLabelV2=i.ctimeLabelV2),i.viewContent!=null&&i.hasOwnProperty("viewContent")&&(o.viewContent=i.viewContent),i.iconType!=null&&i.hasOwnProperty("iconType")&&(o.iconType=i.iconType),i.chargingLabel!=null&&i.hasOwnProperty("chargingLabel")&&(o.chargingLabel=u.bilibili.polymer.app.search.v1.LabelStyle.toObject(i.chargingLabel,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.AvItem"},l}(),e.SearchTipsCard=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.title=i.string();break}case 2:{a.cover=i.string();break}case 134:{a.coverNight=i.string();break}case 4:{a.subTitle=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.SearchTipsCard)return i;let n=new u.bilibili.polymer.app.search.v1.SearchTipsCard;return i.title!=null&&(n.title=String(i.title)),i.cover!=null&&(n.cover=String(i.cover)),i.coverNight!=null&&(n.coverNight=String(i.coverNight)),i.subTitle!=null&&(n.subTitle=String(i.subTitle)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.title="",o.cover="",o.subTitle="",o.coverNight=""),i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.cover!=null&&i.hasOwnProperty("cover")&&(o.cover=i.cover),i.subTitle!=null&&i.hasOwnProperty("subTitle")&&(o.subTitle=i.subTitle),i.coverNight!=null&&i.hasOwnProperty("coverNight")&&(o.coverNight=i.coverNight),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.SearchTipsCard"},l}(),e.SearchAdCard=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.jsonStr=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.SearchAdCard)return i;let n=new u.bilibili.polymer.app.search.v1.SearchAdCard;return i.jsonStr!=null&&(n.jsonStr=String(i.jsonStr)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.jsonStr=""),i.jsonStr!=null&&i.hasOwnProperty("jsonStr")&&(o.jsonStr=i.jsonStr),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.SearchAdCard"},l}(),e.SearchPediaCard=function(){function l(t){if(this.navigation=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.title=i.string();break}case 2:{a.cover=i.string();break}case 3:{a.navigation&&a.navigation.length||(a.navigation=[]),a.navigation.push(u.bilibili.polymer.app.search.v1.Navigation.decode(i,i.uint32()));break}case 4:{a.readMore=u.bilibili.polymer.app.search.v1.NavigationButton.decode(i,i.uint32());break}case 5:{a.navigationModuleCount=i.int32();break}case 6:{a.pediaCover=u.bilibili.polymer.app.search.v1.PediaCover.decode(i,i.uint32());break}case 7:{a.cardBusinessBadge=u.bilibili.polymer.app.search.v1.CardBusinessBadge.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.SearchPediaCard)return i;let n=new u.bilibili.polymer.app.search.v1.SearchPediaCard;if(i.title!=null&&(n.title=String(i.title)),i.cover!=null&&(n.cover=String(i.cover)),i.navigation){if(!Array.isArray(i.navigation))throw TypeError(".bilibili.polymer.app.search.v1.SearchPediaCard.navigation: array expected");n.navigation=[];for(let o=0;o>>3){case 1:{a.title=i.string();break}case 2:{a.cover=i.string();break}case 3:{a.author=i.string();break}case 4:{a.danmaku=i.int32();break}case 5:{a.desc=i.string();break}case 6:{a.inlineType=i.string();break}case 7:{a.mid=i.int64();break}case 8:{a.play=i.int64();break}case 9:{a.ugcInline=u.bilibili.polymer.app.search.v1.SearchInlineData.decode(i,i.uint32());break}case 10:{a.fullText=u.bilibili.polymer.app.search.v1.FullTextResult.decode(i,i.uint32());break}case 11:{a.feedback=u.bilibili.polymer.app.search.v1.Feedback.decode(i,i.uint32());break}case 12:{a.cardLayout=u.bilibili.polymer.app.search.v1.CardLayout.decode(i,i.uint32());break}case 13:{a.avatarInfo=u.bilibili.dagw.component.avatar.v1.AvatarItem.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.SearchUgcInlineCard)return i;let n=new u.bilibili.polymer.app.search.v1.SearchUgcInlineCard;if(i.title!=null&&(n.title=String(i.title)),i.cover!=null&&(n.cover=String(i.cover)),i.author!=null&&(n.author=String(i.author)),i.danmaku!=null&&(n.danmaku=i.danmaku|0),i.desc!=null&&(n.desc=String(i.desc)),i.inlineType!=null&&(n.inlineType=String(i.inlineType)),i.mid!=null&&(r.Long?(n.mid=r.Long.fromValue(i.mid)).unsigned=!1:typeof i.mid=="string"?n.mid=parseInt(i.mid,10):typeof i.mid=="number"?n.mid=i.mid:typeof i.mid=="object"&&(n.mid=new r.LongBits(i.mid.low>>>0,i.mid.high>>>0).toNumber())),i.play!=null&&(r.Long?(n.play=r.Long.fromValue(i.play)).unsigned=!1:typeof i.play=="string"?n.play=parseInt(i.play,10):typeof i.play=="number"?n.play=i.play:typeof i.play=="object"&&(n.play=new r.LongBits(i.play.low>>>0,i.play.high>>>0).toNumber())),i.ugcInline!=null){if(typeof i.ugcInline!="object")throw TypeError(".bilibili.polymer.app.search.v1.SearchUgcInlineCard.ugcInline: object expected");n.ugcInline=u.bilibili.polymer.app.search.v1.SearchInlineData.fromObject(i.ugcInline)}if(i.fullText!=null){if(typeof i.fullText!="object")throw TypeError(".bilibili.polymer.app.search.v1.SearchUgcInlineCard.fullText: object expected");n.fullText=u.bilibili.polymer.app.search.v1.FullTextResult.fromObject(i.fullText)}if(i.feedback!=null){if(typeof i.feedback!="object")throw TypeError(".bilibili.polymer.app.search.v1.SearchUgcInlineCard.feedback: object expected");n.feedback=u.bilibili.polymer.app.search.v1.Feedback.fromObject(i.feedback)}if(i.cardLayout!=null){if(typeof i.cardLayout!="object")throw TypeError(".bilibili.polymer.app.search.v1.SearchUgcInlineCard.cardLayout: object expected");n.cardLayout=u.bilibili.polymer.app.search.v1.CardLayout.fromObject(i.cardLayout)}if(i.avatarInfo!=null){if(typeof i.avatarInfo!="object")throw TypeError(".bilibili.polymer.app.search.v1.SearchUgcInlineCard.avatarInfo: object expected");n.avatarInfo=u.bilibili.dagw.component.avatar.v1.AvatarItem.fromObject(i.avatarInfo)}return n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(o.title="",o.cover="",o.author="",o.danmaku=0,o.desc="",o.inlineType="",r.Long){let a=new r.Long(0,0,!1);o.mid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.mid=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.play=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.play=n.longs===String?"0":0;o.ugcInline=null,o.fullText=null,o.feedback=null,o.cardLayout=null,o.avatarInfo=null}return i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.cover!=null&&i.hasOwnProperty("cover")&&(o.cover=i.cover),i.author!=null&&i.hasOwnProperty("author")&&(o.author=i.author),i.danmaku!=null&&i.hasOwnProperty("danmaku")&&(o.danmaku=i.danmaku),i.desc!=null&&i.hasOwnProperty("desc")&&(o.desc=i.desc),i.inlineType!=null&&i.hasOwnProperty("inlineType")&&(o.inlineType=i.inlineType),i.mid!=null&&i.hasOwnProperty("mid")&&(typeof i.mid=="number"?o.mid=n.longs===String?String(i.mid):i.mid:o.mid=n.longs===String?r.Long.prototype.toString.call(i.mid):n.longs===Number?new r.LongBits(i.mid.low>>>0,i.mid.high>>>0).toNumber():i.mid),i.play!=null&&i.hasOwnProperty("play")&&(typeof i.play=="number"?o.play=n.longs===String?String(i.play):i.play:o.play=n.longs===String?r.Long.prototype.toString.call(i.play):n.longs===Number?new r.LongBits(i.play.low>>>0,i.play.high>>>0).toNumber():i.play),i.ugcInline!=null&&i.hasOwnProperty("ugcInline")&&(o.ugcInline=u.bilibili.polymer.app.search.v1.SearchInlineData.toObject(i.ugcInline,n)),i.fullText!=null&&i.hasOwnProperty("fullText")&&(o.fullText=u.bilibili.polymer.app.search.v1.FullTextResult.toObject(i.fullText,n)),i.feedback!=null&&i.hasOwnProperty("feedback")&&(o.feedback=u.bilibili.polymer.app.search.v1.Feedback.toObject(i.feedback,n)),i.cardLayout!=null&&i.hasOwnProperty("cardLayout")&&(o.cardLayout=u.bilibili.polymer.app.search.v1.CardLayout.toObject(i.cardLayout,n)),i.avatarInfo!=null&&i.hasOwnProperty("avatarInfo")&&(o.avatarInfo=u.bilibili.dagw.component.avatar.v1.AvatarItem.toObject(i.avatarInfo,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.SearchUgcInlineCard"},l}(),e.SearchInlineData=function(){function l(t){if(this.threePointV2=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.uri=i.string();break}case 2:{a.title=i.string();break}case 3:{a.playerArgs=u.bilibili.polymer.app.search.v1.PlayerArgs.decode(i,i.uint32());break}case 4:{a.canPlay=i.int32();break}case 5:{a.args=u.bilibili.polymer.app.search.v1.Args.decode(i,i.uint32());break}case 6:{a.cardGoto=i.string();break}case 7:{a.cardType=i.string();break}case 8:{a.cover=i.string();break}case 9:{a.coverLeftIcon_1=i.int32();break}case 10:{a.coverLeftIcon_2=i.int32();break}case 11:{a.coverLeftText_1=i.string();break}case 12:{a.coverLeftText_2=i.string();break}case 13:{a.upArgs=u.bilibili.polymer.app.search.v1.UpArgs.decode(i,i.uint32());break}case 14:{a.extraUri=i.string();break}case 15:{a.isFav=i.bool();break}case 16:{a.isCoin=i.bool();break}case 17:{a.goto=i.string();break}case 18:{a.share=u.bilibili.polymer.app.search.v1.Share.decode(i,i.uint32());break}case 19:{a.threePoint=u.bilibili.polymer.app.search.v1.ThreePoint2.decode(i,i.uint32());break}case 20:{a.threePointV2&&a.threePointV2.length||(a.threePointV2=[]),a.threePointV2.push(u.bilibili.polymer.app.search.v1.ThreePointV2.decode(i,i.uint32()));break}case 21:{a.sharePlane=u.bilibili.polymer.app.search.v1.SharePlane.decode(i,i.uint32());break}case 22:{a.threePointMeta=u.bilibili.polymer.app.search.v1.InlineThreePointPanel.decode(i,i.uint32());break}case 23:{a.avatar=u.bilibili.polymer.app.search.v1.Avatar.decode(i,i.uint32());break}case 24:{a.coverRightText=i.string();break}case 25:{a.desc=i.string();break}case 26:{a.inlineProgressBar=u.bilibili.polymer.app.search.v1.InlineProgressBar.decode(i,i.uint32());break}case 27:{a.likeButton=u.bilibili.polymer.app.search.v1.SearchLikeButtonItem.decode(i,i.uint32());break}case 28:{a.officialIcon=i.int32();break}case 29:{a.officialIconV2=i.int32();break}case 30:{a.param=i.string();break}case 31:{a.trafficConfig=u.bilibili.polymer.app.search.v1.TrafficConfig.decode(i,i.uint32());break}case 32:{a.isAtten=i.bool();break}case 33:{a.gotoIcon=u.bilibili.polymer.app.search.v1.GotoIcon.decode(i,i.uint32());break}case 34:{a.disableDanmaku=i.bool();break}case 35:{a.hideDanmakuSwitch=i.bool();break}case 36:{a.badgeStyle=u.bilibili.polymer.app.search.v1.ReasonStyle.decode(i,i.uint32());break}case 37:{a.playerWidget=u.bilibili.polymer.app.search.v1.PlayerWidget.decode(i,i.uint32());break}case 38:{a.coverBadgeStyle=u.bilibili.polymer.app.search.v1.ReasonStyle.decode(i,i.uint32());break}case 39:{a.rightTopLiveBadge=u.bilibili.polymer.app.search.v1.RightTopLiveBadge.decode(i,i.uint32());break}case 40:{a.reportFlowData=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.SearchInlineData)return i;let n=new u.bilibili.polymer.app.search.v1.SearchInlineData;if(i.uri!=null&&(n.uri=String(i.uri)),i.title!=null&&(n.title=String(i.title)),i.playerArgs!=null){if(typeof i.playerArgs!="object")throw TypeError(".bilibili.polymer.app.search.v1.SearchInlineData.playerArgs: object expected");n.playerArgs=u.bilibili.polymer.app.search.v1.PlayerArgs.fromObject(i.playerArgs)}if(i.canPlay!=null&&(n.canPlay=i.canPlay|0),i.args!=null){if(typeof i.args!="object")throw TypeError(".bilibili.polymer.app.search.v1.SearchInlineData.args: object expected");n.args=u.bilibili.polymer.app.search.v1.Args.fromObject(i.args)}if(i.cardGoto!=null&&(n.cardGoto=String(i.cardGoto)),i.cardType!=null&&(n.cardType=String(i.cardType)),i.cover!=null&&(n.cover=String(i.cover)),i.coverLeftIcon_1!=null&&(n.coverLeftIcon_1=i.coverLeftIcon_1|0),i.coverLeftIcon_2!=null&&(n.coverLeftIcon_2=i.coverLeftIcon_2|0),i.coverLeftText_1!=null&&(n.coverLeftText_1=String(i.coverLeftText_1)),i.coverLeftText_2!=null&&(n.coverLeftText_2=String(i.coverLeftText_2)),i.upArgs!=null){if(typeof i.upArgs!="object")throw TypeError(".bilibili.polymer.app.search.v1.SearchInlineData.upArgs: object expected");n.upArgs=u.bilibili.polymer.app.search.v1.UpArgs.fromObject(i.upArgs)}if(i.extraUri!=null&&(n.extraUri=String(i.extraUri)),i.isFav!=null&&(n.isFav=!!i.isFav),i.isCoin!=null&&(n.isCoin=!!i.isCoin),i.goto!=null&&(n.goto=String(i.goto)),i.share!=null){if(typeof i.share!="object")throw TypeError(".bilibili.polymer.app.search.v1.SearchInlineData.share: object expected");n.share=u.bilibili.polymer.app.search.v1.Share.fromObject(i.share)}if(i.threePoint!=null){if(typeof i.threePoint!="object")throw TypeError(".bilibili.polymer.app.search.v1.SearchInlineData.threePoint: object expected");n.threePoint=u.bilibili.polymer.app.search.v1.ThreePoint2.fromObject(i.threePoint)}if(i.threePointV2){if(!Array.isArray(i.threePointV2))throw TypeError(".bilibili.polymer.app.search.v1.SearchInlineData.threePointV2: array expected");n.threePointV2=[];for(let o=0;o>>3){case 1:{a.title=i.string();break}case 2:{a.cover=i.string();break}case 3:{a.mid=i.int64();break}case 4:{a.rcmdReasonStyle=u.bilibili.polymer.app.search.v1.ReasonStyle.decode(i,i.uint32());break}case 5:{a.roomid=i.int64();break}case 6:{a.liveLink=i.string();break}case 7:{a.liveRoomInline=u.bilibili.polymer.app.search.v1.SearchInlineData.decode(i,i.uint32());break}case 8:{a.inlineType=i.string();break}case 9:{a.feedback=u.bilibili.polymer.app.search.v1.Feedback.decode(i,i.uint32());break}case 10:{a.cardLayout=u.bilibili.polymer.app.search.v1.CardLayout.decode(i,i.uint32());break}case 11:{a.avatarInfo=u.bilibili.dagw.component.avatar.v1.AvatarItem.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.SearchLiveInlineCard)return i;let n=new u.bilibili.polymer.app.search.v1.SearchLiveInlineCard;if(i.title!=null&&(n.title=String(i.title)),i.cover!=null&&(n.cover=String(i.cover)),i.mid!=null&&(r.Long?(n.mid=r.Long.fromValue(i.mid)).unsigned=!1:typeof i.mid=="string"?n.mid=parseInt(i.mid,10):typeof i.mid=="number"?n.mid=i.mid:typeof i.mid=="object"&&(n.mid=new r.LongBits(i.mid.low>>>0,i.mid.high>>>0).toNumber())),i.rcmdReasonStyle!=null){if(typeof i.rcmdReasonStyle!="object")throw TypeError(".bilibili.polymer.app.search.v1.SearchLiveInlineCard.rcmdReasonStyle: object expected");n.rcmdReasonStyle=u.bilibili.polymer.app.search.v1.ReasonStyle.fromObject(i.rcmdReasonStyle)}if(i.roomid!=null&&(r.Long?(n.roomid=r.Long.fromValue(i.roomid)).unsigned=!1:typeof i.roomid=="string"?n.roomid=parseInt(i.roomid,10):typeof i.roomid=="number"?n.roomid=i.roomid:typeof i.roomid=="object"&&(n.roomid=new r.LongBits(i.roomid.low>>>0,i.roomid.high>>>0).toNumber())),i.liveLink!=null&&(n.liveLink=String(i.liveLink)),i.liveRoomInline!=null){if(typeof i.liveRoomInline!="object")throw TypeError(".bilibili.polymer.app.search.v1.SearchLiveInlineCard.liveRoomInline: object expected");n.liveRoomInline=u.bilibili.polymer.app.search.v1.SearchInlineData.fromObject(i.liveRoomInline)}if(i.inlineType!=null&&(n.inlineType=String(i.inlineType)),i.feedback!=null){if(typeof i.feedback!="object")throw TypeError(".bilibili.polymer.app.search.v1.SearchLiveInlineCard.feedback: object expected");n.feedback=u.bilibili.polymer.app.search.v1.Feedback.fromObject(i.feedback)}if(i.cardLayout!=null){if(typeof i.cardLayout!="object")throw TypeError(".bilibili.polymer.app.search.v1.SearchLiveInlineCard.cardLayout: object expected");n.cardLayout=u.bilibili.polymer.app.search.v1.CardLayout.fromObject(i.cardLayout)}if(i.avatarInfo!=null){if(typeof i.avatarInfo!="object")throw TypeError(".bilibili.polymer.app.search.v1.SearchLiveInlineCard.avatarInfo: object expected");n.avatarInfo=u.bilibili.dagw.component.avatar.v1.AvatarItem.fromObject(i.avatarInfo)}return n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(o.title="",o.cover="",r.Long){let a=new r.Long(0,0,!1);o.mid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.mid=n.longs===String?"0":0;if(o.rcmdReasonStyle=null,r.Long){let a=new r.Long(0,0,!1);o.roomid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.roomid=n.longs===String?"0":0;o.liveLink="",o.liveRoomInline=null,o.inlineType="",o.feedback=null,o.cardLayout=null,o.avatarInfo=null}return i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.cover!=null&&i.hasOwnProperty("cover")&&(o.cover=i.cover),i.mid!=null&&i.hasOwnProperty("mid")&&(typeof i.mid=="number"?o.mid=n.longs===String?String(i.mid):i.mid:o.mid=n.longs===String?r.Long.prototype.toString.call(i.mid):n.longs===Number?new r.LongBits(i.mid.low>>>0,i.mid.high>>>0).toNumber():i.mid),i.rcmdReasonStyle!=null&&i.hasOwnProperty("rcmdReasonStyle")&&(o.rcmdReasonStyle=u.bilibili.polymer.app.search.v1.ReasonStyle.toObject(i.rcmdReasonStyle,n)),i.roomid!=null&&i.hasOwnProperty("roomid")&&(typeof i.roomid=="number"?o.roomid=n.longs===String?String(i.roomid):i.roomid:o.roomid=n.longs===String?r.Long.prototype.toString.call(i.roomid):n.longs===Number?new r.LongBits(i.roomid.low>>>0,i.roomid.high>>>0).toNumber():i.roomid),i.liveLink!=null&&i.hasOwnProperty("liveLink")&&(o.liveLink=i.liveLink),i.liveRoomInline!=null&&i.hasOwnProperty("liveRoomInline")&&(o.liveRoomInline=u.bilibili.polymer.app.search.v1.SearchInlineData.toObject(i.liveRoomInline,n)),i.inlineType!=null&&i.hasOwnProperty("inlineType")&&(o.inlineType=i.inlineType),i.feedback!=null&&i.hasOwnProperty("feedback")&&(o.feedback=u.bilibili.polymer.app.search.v1.Feedback.toObject(i.feedback,n)),i.cardLayout!=null&&i.hasOwnProperty("cardLayout")&&(o.cardLayout=u.bilibili.polymer.app.search.v1.CardLayout.toObject(i.cardLayout,n)),i.avatarInfo!=null&&i.hasOwnProperty("avatarInfo")&&(o.avatarInfo=u.bilibili.dagw.component.avatar.v1.AvatarItem.toObject(i.avatarInfo,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.SearchLiveInlineCard"},l}(),e.PlayerWidget=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.title=i.string();break}case 2:{a.desc=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.PlayerWidget)return i;let n=new u.bilibili.polymer.app.search.v1.PlayerWidget;return i.title!=null&&(n.title=String(i.title)),i.desc!=null&&(n.desc=String(i.desc)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.title="",o.desc=""),i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.desc!=null&&i.hasOwnProperty("desc")&&(o.desc=i.desc),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.PlayerWidget"},l}(),e.SearchOgvInlineCard=function(){function l(t){if(this.badgesV2=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.title=i.string();break}case 2:{a.cover=i.string();break}case 3:{a.author=i.string();break}case 4:{a.danmaku=i.int32();break}case 5:{a.desc=i.string();break}case 6:{a.face=i.string();break}case 7:{a.inlineType=i.string();break}case 8:{a.mid=i.int64();break}case 9:{a.play=i.int64();break}case 10:{a.ogvInline=u.bilibili.polymer.app.search.v1.SearchInlineData.decode(i,i.uint32());break}case 11:{a.ogvClipInfo=u.bilibili.polymer.app.search.v1.OgvClipInfo.decode(i,i.uint32());break}case 12:{a.watchButton=u.bilibili.polymer.app.search.v1.WatchButton.decode(i,i.uint32());break}case 13:{a.score=i.string();break}case 14:{a.ogvInlineExp=i.int32();break}case 15:{a.badgesV2&&a.badgesV2.length||(a.badgesV2=[]),a.badgesV2.push(u.bilibili.polymer.app.search.v1.ReasonStyle.decode(i,i.uint32()));break}case 16:{a.cardLayout=u.bilibili.polymer.app.search.v1.CardLayout.decode(i,i.uint32());break}case 17:{a.saleInfo=u.bilibili.polymer.app.search.v1.SaleInfo.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.SearchOgvInlineCard)return i;let n=new u.bilibili.polymer.app.search.v1.SearchOgvInlineCard;if(i.title!=null&&(n.title=String(i.title)),i.cover!=null&&(n.cover=String(i.cover)),i.author!=null&&(n.author=String(i.author)),i.danmaku!=null&&(n.danmaku=i.danmaku|0),i.desc!=null&&(n.desc=String(i.desc)),i.face!=null&&(n.face=String(i.face)),i.inlineType!=null&&(n.inlineType=String(i.inlineType)),i.mid!=null&&(r.Long?(n.mid=r.Long.fromValue(i.mid)).unsigned=!1:typeof i.mid=="string"?n.mid=parseInt(i.mid,10):typeof i.mid=="number"?n.mid=i.mid:typeof i.mid=="object"&&(n.mid=new r.LongBits(i.mid.low>>>0,i.mid.high>>>0).toNumber())),i.play!=null&&(r.Long?(n.play=r.Long.fromValue(i.play)).unsigned=!1:typeof i.play=="string"?n.play=parseInt(i.play,10):typeof i.play=="number"?n.play=i.play:typeof i.play=="object"&&(n.play=new r.LongBits(i.play.low>>>0,i.play.high>>>0).toNumber())),i.ogvInline!=null){if(typeof i.ogvInline!="object")throw TypeError(".bilibili.polymer.app.search.v1.SearchOgvInlineCard.ogvInline: object expected");n.ogvInline=u.bilibili.polymer.app.search.v1.SearchInlineData.fromObject(i.ogvInline)}if(i.ogvClipInfo!=null){if(typeof i.ogvClipInfo!="object")throw TypeError(".bilibili.polymer.app.search.v1.SearchOgvInlineCard.ogvClipInfo: object expected");n.ogvClipInfo=u.bilibili.polymer.app.search.v1.OgvClipInfo.fromObject(i.ogvClipInfo)}if(i.watchButton!=null){if(typeof i.watchButton!="object")throw TypeError(".bilibili.polymer.app.search.v1.SearchOgvInlineCard.watchButton: object expected");n.watchButton=u.bilibili.polymer.app.search.v1.WatchButton.fromObject(i.watchButton)}if(i.score!=null&&(n.score=String(i.score)),i.ogvInlineExp!=null&&(n.ogvInlineExp=i.ogvInlineExp|0),i.badgesV2){if(!Array.isArray(i.badgesV2))throw TypeError(".bilibili.polymer.app.search.v1.SearchOgvInlineCard.badgesV2: array expected");n.badgesV2=[];for(let o=0;o>>0,i.mid.high>>>0).toNumber():i.mid),i.play!=null&&i.hasOwnProperty("play")&&(typeof i.play=="number"?o.play=n.longs===String?String(i.play):i.play:o.play=n.longs===String?r.Long.prototype.toString.call(i.play):n.longs===Number?new r.LongBits(i.play.low>>>0,i.play.high>>>0).toNumber():i.play),i.ogvInline!=null&&i.hasOwnProperty("ogvInline")&&(o.ogvInline=u.bilibili.polymer.app.search.v1.SearchInlineData.toObject(i.ogvInline,n)),i.ogvClipInfo!=null&&i.hasOwnProperty("ogvClipInfo")&&(o.ogvClipInfo=u.bilibili.polymer.app.search.v1.OgvClipInfo.toObject(i.ogvClipInfo,n)),i.watchButton!=null&&i.hasOwnProperty("watchButton")&&(o.watchButton=u.bilibili.polymer.app.search.v1.WatchButton.toObject(i.watchButton,n)),i.score!=null&&i.hasOwnProperty("score")&&(o.score=i.score),i.ogvInlineExp!=null&&i.hasOwnProperty("ogvInlineExp")&&(o.ogvInlineExp=i.ogvInlineExp),i.badgesV2&&i.badgesV2.length){o.badgesV2=[];for(let a=0;a>>3){case 1:{a.title=i.string();break}case 2:{a.cover=i.string();break}case 3:{a.array=i.int32();break}case 4:{a.backgroundImage=i.string();break}case 5:{a.buttonType=i.int32();break}case 6:{a.gameIcon=i.string();break}case 7:{a.gameBaseId=i.int64();break}case 8:{a.gameStatus=i.int32();break}case 9:{a.inlineType=i.string();break}case 10:{a.topGameUi=u.bilibili.polymer.app.search.v1.TopGameUI.decode(i,i.uint32());break}case 11:{a.noticeContent=i.string();break}case 12:{a.noticeName=i.string();break}case 13:{a.rating=i.float();break}case 14:{a.score=i.string();break}case 15:{a.tabInfo&&a.tabInfo.length||(a.tabInfo=[]),a.tabInfo.push(u.bilibili.polymer.app.search.v1.TabInfo.decode(i,i.uint32()));break}case 16:{a.tags=i.string();break}case 17:{a.ugcInline=u.bilibili.polymer.app.search.v1.SearchInlineData.decode(i,i.uint32());break}case 18:{a.videoCoverImage=i.string();break}case 19:{a.inlineLive=u.bilibili.polymer.app.search.v1.SearchInlineData.decode(i,i.uint32());break}case 20:{a.cardLayout=u.bilibili.polymer.app.search.v1.CardLayout.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.SearchTopGameCard)return i;let n=new u.bilibili.polymer.app.search.v1.SearchTopGameCard;if(i.title!=null&&(n.title=String(i.title)),i.cover!=null&&(n.cover=String(i.cover)),i.array!=null&&(n.array=i.array|0),i.backgroundImage!=null&&(n.backgroundImage=String(i.backgroundImage)),i.buttonType!=null&&(n.buttonType=i.buttonType|0),i.gameIcon!=null&&(n.gameIcon=String(i.gameIcon)),i.gameBaseId!=null&&(r.Long?(n.gameBaseId=r.Long.fromValue(i.gameBaseId)).unsigned=!1:typeof i.gameBaseId=="string"?n.gameBaseId=parseInt(i.gameBaseId,10):typeof i.gameBaseId=="number"?n.gameBaseId=i.gameBaseId:typeof i.gameBaseId=="object"&&(n.gameBaseId=new r.LongBits(i.gameBaseId.low>>>0,i.gameBaseId.high>>>0).toNumber())),i.gameStatus!=null&&(n.gameStatus=i.gameStatus|0),i.inlineType!=null&&(n.inlineType=String(i.inlineType)),i.topGameUi!=null){if(typeof i.topGameUi!="object")throw TypeError(".bilibili.polymer.app.search.v1.SearchTopGameCard.topGameUi: object expected");n.topGameUi=u.bilibili.polymer.app.search.v1.TopGameUI.fromObject(i.topGameUi)}if(i.noticeContent!=null&&(n.noticeContent=String(i.noticeContent)),i.noticeName!=null&&(n.noticeName=String(i.noticeName)),i.rating!=null&&(n.rating=Number(i.rating)),i.score!=null&&(n.score=String(i.score)),i.tabInfo){if(!Array.isArray(i.tabInfo))throw TypeError(".bilibili.polymer.app.search.v1.SearchTopGameCard.tabInfo: array expected");n.tabInfo=[];for(let o=0;o>>0,i.gameBaseId.high>>>0).toNumber():i.gameBaseId),i.gameStatus!=null&&i.hasOwnProperty("gameStatus")&&(o.gameStatus=i.gameStatus),i.inlineType!=null&&i.hasOwnProperty("inlineType")&&(o.inlineType=i.inlineType),i.topGameUi!=null&&i.hasOwnProperty("topGameUi")&&(o.topGameUi=u.bilibili.polymer.app.search.v1.TopGameUI.toObject(i.topGameUi,n)),i.noticeContent!=null&&i.hasOwnProperty("noticeContent")&&(o.noticeContent=i.noticeContent),i.noticeName!=null&&i.hasOwnProperty("noticeName")&&(o.noticeName=i.noticeName),i.rating!=null&&i.hasOwnProperty("rating")&&(o.rating=n.json&&!isFinite(i.rating)?String(i.rating):i.rating),i.score!=null&&i.hasOwnProperty("score")&&(o.score=i.score),i.tabInfo&&i.tabInfo.length){o.tabInfo=[];for(let a=0;a>>3){case 1:{a.title=i.string();break}case 2:{a.cover=i.string();break}case 3:{a.sportsMatchItem=u.bilibili.polymer.app.search.v1.SportsMatchItem.decode(i,i.uint32());break}case 4:{a.matchTop=u.bilibili.polymer.app.search.v1.MatchItem.decode(i,i.uint32());break}case 5:{a.bgCover=i.string();break}case 6:{a.extraLink&&a.extraLink.length||(a.extraLink=[]),a.extraLink.push(u.bilibili.polymer.app.search.v1.ExtraLink.decode(i,i.uint32()));break}case 7:{a.inlineType=i.string();break}case 8:{a.ugcInline=u.bilibili.polymer.app.search.v1.SearchInlineData.decode(i,i.uint32());break}case 9:{a.liveRoomInline=u.bilibili.polymer.app.search.v1.SearchInlineData.decode(i,i.uint32());break}case 10:{a.matchBottom=u.bilibili.polymer.app.search.v1.MatchItem.decode(i,i.uint32());break}case 11:{a.cardLayout=u.bilibili.polymer.app.search.v1.CardLayout.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.SearchOlympicGameCard)return i;let n=new u.bilibili.polymer.app.search.v1.SearchOlympicGameCard;if(i.title!=null&&(n.title=String(i.title)),i.cover!=null&&(n.cover=String(i.cover)),i.sportsMatchItem!=null){if(typeof i.sportsMatchItem!="object")throw TypeError(".bilibili.polymer.app.search.v1.SearchOlympicGameCard.sportsMatchItem: object expected");n.sportsMatchItem=u.bilibili.polymer.app.search.v1.SportsMatchItem.fromObject(i.sportsMatchItem)}if(i.matchTop!=null){if(typeof i.matchTop!="object")throw TypeError(".bilibili.polymer.app.search.v1.SearchOlympicGameCard.matchTop: object expected");n.matchTop=u.bilibili.polymer.app.search.v1.MatchItem.fromObject(i.matchTop)}if(i.bgCover!=null&&(n.bgCover=String(i.bgCover)),i.extraLink){if(!Array.isArray(i.extraLink))throw TypeError(".bilibili.polymer.app.search.v1.SearchOlympicGameCard.extraLink: array expected");n.extraLink=[];for(let o=0;o>>3){case 1:{a.title=i.string();break}case 2:{a.cover=i.string();break}case 3:{a.cardBusinessBadge=u.bilibili.polymer.app.search.v1.CardBusinessBadge.decode(i,i.uint32());break}case 4:{a.readMore=u.bilibili.polymer.app.search.v1.NavigationButton.decode(i,i.uint32());break}case 5:{a.inlineType=i.string();break}case 6:{a.ugcInline=u.bilibili.polymer.app.search.v1.SearchInlineData.decode(i,i.uint32());break}case 7:{a.liveRoomInline=u.bilibili.polymer.app.search.v1.SearchInlineData.decode(i,i.uint32());break}case 8:{a.pediaCover=u.bilibili.polymer.app.search.v1.PediaCover.decode(i,i.uint32());break}case 9:{a.navigation&&a.navigation.length||(a.navigation=[]),a.navigation.push(u.bilibili.polymer.app.search.v1.Navigation.decode(i,i.uint32()));break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.SearchOlympicWikiCard)return i;let n=new u.bilibili.polymer.app.search.v1.SearchOlympicWikiCard;if(i.title!=null&&(n.title=String(i.title)),i.cover!=null&&(n.cover=String(i.cover)),i.cardBusinessBadge!=null){if(typeof i.cardBusinessBadge!="object")throw TypeError(".bilibili.polymer.app.search.v1.SearchOlympicWikiCard.cardBusinessBadge: object expected");n.cardBusinessBadge=u.bilibili.polymer.app.search.v1.CardBusinessBadge.fromObject(i.cardBusinessBadge)}if(i.readMore!=null){if(typeof i.readMore!="object")throw TypeError(".bilibili.polymer.app.search.v1.SearchOlympicWikiCard.readMore: object expected");n.readMore=u.bilibili.polymer.app.search.v1.NavigationButton.fromObject(i.readMore)}if(i.inlineType!=null&&(n.inlineType=String(i.inlineType)),i.ugcInline!=null){if(typeof i.ugcInline!="object")throw TypeError(".bilibili.polymer.app.search.v1.SearchOlympicWikiCard.ugcInline: object expected");n.ugcInline=u.bilibili.polymer.app.search.v1.SearchInlineData.fromObject(i.ugcInline)}if(i.liveRoomInline!=null){if(typeof i.liveRoomInline!="object")throw TypeError(".bilibili.polymer.app.search.v1.SearchOlympicWikiCard.liveRoomInline: object expected");n.liveRoomInline=u.bilibili.polymer.app.search.v1.SearchInlineData.fromObject(i.liveRoomInline)}if(i.pediaCover!=null){if(typeof i.pediaCover!="object")throw TypeError(".bilibili.polymer.app.search.v1.SearchOlympicWikiCard.pediaCover: object expected");n.pediaCover=u.bilibili.polymer.app.search.v1.PediaCover.fromObject(i.pediaCover)}if(i.navigation){if(!Array.isArray(i.navigation))throw TypeError(".bilibili.polymer.app.search.v1.SearchOlympicWikiCard.navigation: array expected");n.navigation=[];for(let o=0;o>>3){case 1:{a.title=i.string();break}case 2:{a.cover=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.SearchRecommendTipCard)return i;let n=new u.bilibili.polymer.app.search.v1.SearchRecommendTipCard;return i.title!=null&&(n.title=String(i.title)),i.cover!=null&&(n.cover=String(i.cover)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.title="",o.cover=""),i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.cover!=null&&i.hasOwnProperty("cover")&&(o.cover=i.cover),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.SearchRecommendTipCard"},l}(),e.SearchCollectionCard=function(){function l(t){if(this.avItems=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.title=i.string();break}case 2:{a.cover=i.string();break}case 3:{a.author=i.string();break}case 4:{a.avItems&&a.avItems.length||(a.avItems=[]),a.avItems.push(u.bilibili.polymer.app.search.v1.AvItem.decode(i,i.uint32()));break}case 5:{a.bottomButton=u.bilibili.polymer.app.search.v1.BottomButton.decode(i,i.uint32());break}case 6:{a.collectionIcon=i.string();break}case 7:{a.showCardDesc_1=i.string();break}case 8:{a.showCardDesc_2=i.string();break}case 9:{a.cardLayout=u.bilibili.polymer.app.search.v1.CardLayout.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.SearchCollectionCard)return i;let n=new u.bilibili.polymer.app.search.v1.SearchCollectionCard;if(i.title!=null&&(n.title=String(i.title)),i.cover!=null&&(n.cover=String(i.cover)),i.author!=null&&(n.author=String(i.author)),i.avItems){if(!Array.isArray(i.avItems))throw TypeError(".bilibili.polymer.app.search.v1.SearchCollectionCard.avItems: array expected");n.avItems=[];for(let o=0;o>>3){case 1:{a.title=i.string();break}case 2:{a.cover=i.string();break}case 3:{a.mediaId=i.int64();break}case 4:{a.styles=i.string();break}case 5:{a.area=i.string();break}case 6:{a.staff=i.string();break}case 7:{a.badge=i.string();break}case 8:{a.watchButton=u.bilibili.polymer.app.search.v1.WatchButton.decode(i,i.uint32());break}case 9:{a.rating=i.double();break}case 10:{a.desc=i.string();break}case 11:{a.badgesV2&&a.badgesV2.length||(a.badgesV2=[]),a.badgesV2.push(u.bilibili.polymer.app.search.v1.ReasonStyle.decode(i,i.uint32()));break}case 12:{a.stylesV2=i.string();break}case 13:{a.purchaseButton=u.bilibili.polymer.app.search.v1.PurchaseButton.decode(i,i.uint32());break}case 14:{a.styleLabel=u.bilibili.polymer.app.search.v1.ReasonStyle.decode(i,i.uint32());break}case 15:{a.cardLayout=u.bilibili.polymer.app.search.v1.CardLayout.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.SearchOgvChannelCard)return i;let n=new u.bilibili.polymer.app.search.v1.SearchOgvChannelCard;if(i.title!=null&&(n.title=String(i.title)),i.cover!=null&&(n.cover=String(i.cover)),i.mediaId!=null&&(r.Long?(n.mediaId=r.Long.fromValue(i.mediaId)).unsigned=!1:typeof i.mediaId=="string"?n.mediaId=parseInt(i.mediaId,10):typeof i.mediaId=="number"?n.mediaId=i.mediaId:typeof i.mediaId=="object"&&(n.mediaId=new r.LongBits(i.mediaId.low>>>0,i.mediaId.high>>>0).toNumber())),i.styles!=null&&(n.styles=String(i.styles)),i.area!=null&&(n.area=String(i.area)),i.staff!=null&&(n.staff=String(i.staff)),i.badge!=null&&(n.badge=String(i.badge)),i.watchButton!=null){if(typeof i.watchButton!="object")throw TypeError(".bilibili.polymer.app.search.v1.SearchOgvChannelCard.watchButton: object expected");n.watchButton=u.bilibili.polymer.app.search.v1.WatchButton.fromObject(i.watchButton)}if(i.rating!=null&&(n.rating=Number(i.rating)),i.desc!=null&&(n.desc=String(i.desc)),i.badgesV2){if(!Array.isArray(i.badgesV2))throw TypeError(".bilibili.polymer.app.search.v1.SearchOgvChannelCard.badgesV2: array expected");n.badgesV2=[];for(let o=0;o>>0,i.mediaId.high>>>0).toNumber():i.mediaId),i.styles!=null&&i.hasOwnProperty("styles")&&(o.styles=i.styles),i.area!=null&&i.hasOwnProperty("area")&&(o.area=i.area),i.staff!=null&&i.hasOwnProperty("staff")&&(o.staff=i.staff),i.badge!=null&&i.hasOwnProperty("badge")&&(o.badge=i.badge),i.watchButton!=null&&i.hasOwnProperty("watchButton")&&(o.watchButton=u.bilibili.polymer.app.search.v1.WatchButton.toObject(i.watchButton,n)),i.rating!=null&&i.hasOwnProperty("rating")&&(o.rating=n.json&&!isFinite(i.rating)?String(i.rating):i.rating),i.desc!=null&&i.hasOwnProperty("desc")&&(o.desc=i.desc),i.badgesV2&&i.badgesV2.length){o.badgesV2=[];for(let a=0;a>>3){case 1:{a.title=i.string();break}case 2:{a.subTitle1=i.string();break}case 3:{a.subTitle2=i.string();break}case 4:{a.cover=i.string();break}case 5:{a.bgCover=i.string();break}case 6:{a.specialBgColor=i.string();break}case 7:{a.coverUri=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.SearchOgvCard)return i;let n=new u.bilibili.polymer.app.search.v1.SearchOgvCard;return i.title!=null&&(n.title=String(i.title)),i.subTitle1!=null&&(n.subTitle1=String(i.subTitle1)),i.subTitle2!=null&&(n.subTitle2=String(i.subTitle2)),i.cover!=null&&(n.cover=String(i.cover)),i.bgCover!=null&&(n.bgCover=String(i.bgCover)),i.specialBgColor!=null&&(n.specialBgColor=String(i.specialBgColor)),i.coverUri!=null&&(n.coverUri=String(i.coverUri)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.title="",o.subTitle1="",o.subTitle2="",o.cover="",o.bgCover="",o.specialBgColor="",o.coverUri=""),i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.subTitle1!=null&&i.hasOwnProperty("subTitle1")&&(o.subTitle1=i.subTitle1),i.subTitle2!=null&&i.hasOwnProperty("subTitle2")&&(o.subTitle2=i.subTitle2),i.cover!=null&&i.hasOwnProperty("cover")&&(o.cover=i.cover),i.bgCover!=null&&i.hasOwnProperty("bgCover")&&(o.bgCover=i.bgCover),i.specialBgColor!=null&&i.hasOwnProperty("specialBgColor")&&(o.specialBgColor=i.specialBgColor),i.coverUri!=null&&i.hasOwnProperty("coverUri")&&(o.coverUri=i.coverUri),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.SearchOgvCard"},l}(),e.RecommendWord=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.param=i.string();break}case 2:{a.type=i.string();break}case 3:{a.title=i.string();break}case 4:{a.fromSource=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.RecommendWord)return i;let n=new u.bilibili.polymer.app.search.v1.RecommendWord;return i.param!=null&&(n.param=String(i.param)),i.type!=null&&(n.type=String(i.type)),i.title!=null&&(n.title=String(i.title)),i.fromSource!=null&&(n.fromSource=String(i.fromSource)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.param="",o.type="",o.title="",o.fromSource=""),i.param!=null&&i.hasOwnProperty("param")&&(o.param=i.param),i.type!=null&&i.hasOwnProperty("type")&&(o.type=i.type),i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.fromSource!=null&&i.hasOwnProperty("fromSource")&&(o.fromSource=i.fromSource),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.RecommendWord"},l}(),e.EasterEgg=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.id=i.int32();break}case 2:{a.showCount=i.int32();break}case 3:{a.type=i.int32();break}case 4:{a.url=i.string();break}case 5:{a.closeCount=i.int32();break}case 6:{a.maskTransparency=i.int32();break}case 7:{a.maskColor=i.string();break}case 8:{a.picType=i.int32();break}case 9:{a.showTime=i.int32();break}case 10:{a.sourceUrl=i.string();break}case 11:{a.sourceMd5=i.string();break}case 12:{a.sourceSize=i.int32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.EasterEgg)return i;let n=new u.bilibili.polymer.app.search.v1.EasterEgg;return i.id!=null&&(n.id=i.id|0),i.showCount!=null&&(n.showCount=i.showCount|0),i.type!=null&&(n.type=i.type|0),i.url!=null&&(n.url=String(i.url)),i.closeCount!=null&&(n.closeCount=i.closeCount|0),i.maskTransparency!=null&&(n.maskTransparency=i.maskTransparency|0),i.maskColor!=null&&(n.maskColor=String(i.maskColor)),i.picType!=null&&(n.picType=i.picType|0),i.showTime!=null&&(n.showTime=i.showTime|0),i.sourceUrl!=null&&(n.sourceUrl=String(i.sourceUrl)),i.sourceMd5!=null&&(n.sourceMd5=String(i.sourceMd5)),i.sourceSize!=null&&(n.sourceSize=i.sourceSize|0),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.id=0,o.showCount=0,o.type=0,o.url="",o.closeCount=0,o.maskTransparency=0,o.maskColor="",o.picType=0,o.showTime=0,o.sourceUrl="",o.sourceMd5="",o.sourceSize=0),i.id!=null&&i.hasOwnProperty("id")&&(o.id=i.id),i.showCount!=null&&i.hasOwnProperty("showCount")&&(o.showCount=i.showCount),i.type!=null&&i.hasOwnProperty("type")&&(o.type=i.type),i.url!=null&&i.hasOwnProperty("url")&&(o.url=i.url),i.closeCount!=null&&i.hasOwnProperty("closeCount")&&(o.closeCount=i.closeCount),i.maskTransparency!=null&&i.hasOwnProperty("maskTransparency")&&(o.maskTransparency=i.maskTransparency),i.maskColor!=null&&i.hasOwnProperty("maskColor")&&(o.maskColor=i.maskColor),i.picType!=null&&i.hasOwnProperty("picType")&&(o.picType=i.picType),i.showTime!=null&&i.hasOwnProperty("showTime")&&(o.showTime=i.showTime),i.sourceUrl!=null&&i.hasOwnProperty("sourceUrl")&&(o.sourceUrl=i.sourceUrl),i.sourceMd5!=null&&i.hasOwnProperty("sourceMd5")&&(o.sourceMd5=i.sourceMd5),i.sourceSize!=null&&i.hasOwnProperty("sourceSize")&&(o.sourceSize=i.sourceSize),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.EasterEgg"},l}(),e.Nav=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.name=i.string();break}case 2:{a.total=i.int32();break}case 3:{a.pages=i.int32();break}case 4:{a.type=i.int32();break}case 5:{a.showMore=i.int32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.Nav)return i;let n=new u.bilibili.polymer.app.search.v1.Nav;return i.name!=null&&(n.name=String(i.name)),i.total!=null&&(n.total=i.total|0),i.pages!=null&&(n.pages=i.pages|0),i.type!=null&&(n.type=i.type|0),i.showMore!=null&&(n.showMore=i.showMore|0),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.name="",o.total=0,o.pages=0,o.type=0,o.showMore=0),i.name!=null&&i.hasOwnProperty("name")&&(o.name=i.name),i.total!=null&&i.hasOwnProperty("total")&&(o.total=i.total),i.pages!=null&&i.hasOwnProperty("pages")&&(o.pages=i.pages),i.type!=null&&i.hasOwnProperty("type")&&(o.type=i.type),i.showMore!=null&&i.hasOwnProperty("showMore")&&(o.showMore=i.showMore),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.Nav"},l}(),e.Video=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.bvid=i.string();break}case 2:{a.cid=i.int64();break}case 3:{a.shareSubtitle=i.string();break}case 4:{a.isHotLabel=i.bool();break}case 5:{a.page=i.int32();break}case 6:{a.pageCount=i.int32();break}case 7:{a.shortLink=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.Video)return i;let n=new u.bilibili.polymer.app.search.v1.Video;return i.bvid!=null&&(n.bvid=String(i.bvid)),i.cid!=null&&(r.Long?(n.cid=r.Long.fromValue(i.cid)).unsigned=!1:typeof i.cid=="string"?n.cid=parseInt(i.cid,10):typeof i.cid=="number"?n.cid=i.cid:typeof i.cid=="object"&&(n.cid=new r.LongBits(i.cid.low>>>0,i.cid.high>>>0).toNumber())),i.shareSubtitle!=null&&(n.shareSubtitle=String(i.shareSubtitle)),i.isHotLabel!=null&&(n.isHotLabel=!!i.isHotLabel),i.page!=null&&(n.page=i.page|0),i.pageCount!=null&&(n.pageCount=i.pageCount|0),i.shortLink!=null&&(n.shortLink=String(i.shortLink)),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(o.bvid="",r.Long){let a=new r.Long(0,0,!1);o.cid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.cid=n.longs===String?"0":0;o.shareSubtitle="",o.isHotLabel=!1,o.page=0,o.pageCount=0,o.shortLink=""}return i.bvid!=null&&i.hasOwnProperty("bvid")&&(o.bvid=i.bvid),i.cid!=null&&i.hasOwnProperty("cid")&&(typeof i.cid=="number"?o.cid=n.longs===String?String(i.cid):i.cid:o.cid=n.longs===String?r.Long.prototype.toString.call(i.cid):n.longs===Number?new r.LongBits(i.cid.low>>>0,i.cid.high>>>0).toNumber():i.cid),i.shareSubtitle!=null&&i.hasOwnProperty("shareSubtitle")&&(o.shareSubtitle=i.shareSubtitle),i.isHotLabel!=null&&i.hasOwnProperty("isHotLabel")&&(o.isHotLabel=i.isHotLabel),i.page!=null&&i.hasOwnProperty("page")&&(o.page=i.page),i.pageCount!=null&&i.hasOwnProperty("pageCount")&&(o.pageCount=i.pageCount),i.shortLink!=null&&i.hasOwnProperty("shortLink")&&(o.shortLink=i.shortLink),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.Video"},l}(),e.Navigation=function(){function l(t){if(this.children=[],this.inlineChildren=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.id=i.int64();break}case 2:{a.children&&a.children.length||(a.children=[]),a.children.push(u.bilibili.polymer.app.search.v1.Navigation.decode(i,i.uint32()));break}case 3:{a.inlineChildren&&a.inlineChildren.length||(a.inlineChildren=[]),a.inlineChildren.push(u.bilibili.polymer.app.search.v1.Navigation.decode(i,i.uint32()));break}case 4:{a.title=i.string();break}case 5:{a.uri=i.string();break}case 6:{a.button=u.bilibili.polymer.app.search.v1.NavigationButton.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.Navigation)return i;let n=new u.bilibili.polymer.app.search.v1.Navigation;if(i.id!=null&&(r.Long?(n.id=r.Long.fromValue(i.id)).unsigned=!1:typeof i.id=="string"?n.id=parseInt(i.id,10):typeof i.id=="number"?n.id=i.id:typeof i.id=="object"&&(n.id=new r.LongBits(i.id.low>>>0,i.id.high>>>0).toNumber())),i.children){if(!Array.isArray(i.children))throw TypeError(".bilibili.polymer.app.search.v1.Navigation.children: array expected");n.children=[];for(let o=0;o>>0,i.id.high>>>0).toNumber():i.id),i.children&&i.children.length){o.children=[];for(let a=0;a>>3){case 1:{a.type=i.int64();break}case 2:{a.text=i.string();break}case 3:{a.uri=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.NavigationButton)return i;let n=new u.bilibili.polymer.app.search.v1.NavigationButton;return i.type!=null&&(r.Long?(n.type=r.Long.fromValue(i.type)).unsigned=!1:typeof i.type=="string"?n.type=parseInt(i.type,10):typeof i.type=="number"?n.type=i.type:typeof i.type=="object"&&(n.type=new r.LongBits(i.type.low>>>0,i.type.high>>>0).toNumber())),i.text!=null&&(n.text=String(i.text)),i.uri!=null&&(n.uri=String(i.uri)),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.type=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.type=n.longs===String?"0":0;o.text="",o.uri=""}return i.type!=null&&i.hasOwnProperty("type")&&(typeof i.type=="number"?o.type=n.longs===String?String(i.type):i.type:o.type=n.longs===String?r.Long.prototype.toString.call(i.type):n.longs===Number?new r.LongBits(i.type.low>>>0,i.type.high>>>0).toNumber():i.type),i.text!=null&&i.hasOwnProperty("text")&&(o.text=i.text),i.uri!=null&&i.hasOwnProperty("uri")&&(o.uri=i.uri),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.NavigationButton"},l}(),e.PediaCover=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.coverType=i.int64();break}case 2:{a.coverSunUrl=i.string();break}case 3:{a.coverNightUrl=i.string();break}case 4:{a.coverWidth=i.int32();break}case 5:{a.coverHeight=i.int32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.PediaCover)return i;let n=new u.bilibili.polymer.app.search.v1.PediaCover;return i.coverType!=null&&(r.Long?(n.coverType=r.Long.fromValue(i.coverType)).unsigned=!1:typeof i.coverType=="string"?n.coverType=parseInt(i.coverType,10):typeof i.coverType=="number"?n.coverType=i.coverType:typeof i.coverType=="object"&&(n.coverType=new r.LongBits(i.coverType.low>>>0,i.coverType.high>>>0).toNumber())),i.coverSunUrl!=null&&(n.coverSunUrl=String(i.coverSunUrl)),i.coverNightUrl!=null&&(n.coverNightUrl=String(i.coverNightUrl)),i.coverWidth!=null&&(n.coverWidth=i.coverWidth|0),i.coverHeight!=null&&(n.coverHeight=i.coverHeight|0),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.coverType=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.coverType=n.longs===String?"0":0;o.coverSunUrl="",o.coverNightUrl="",o.coverWidth=0,o.coverHeight=0}return i.coverType!=null&&i.hasOwnProperty("coverType")&&(typeof i.coverType=="number"?o.coverType=n.longs===String?String(i.coverType):i.coverType:o.coverType=n.longs===String?r.Long.prototype.toString.call(i.coverType):n.longs===Number?new r.LongBits(i.coverType.low>>>0,i.coverType.high>>>0).toNumber():i.coverType),i.coverSunUrl!=null&&i.hasOwnProperty("coverSunUrl")&&(o.coverSunUrl=i.coverSunUrl),i.coverNightUrl!=null&&i.hasOwnProperty("coverNightUrl")&&(o.coverNightUrl=i.coverNightUrl),i.coverWidth!=null&&i.hasOwnProperty("coverWidth")&&(o.coverWidth=i.coverWidth),i.coverHeight!=null&&i.hasOwnProperty("coverHeight")&&(o.coverHeight=i.coverHeight),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.PediaCover"},l}(),e.TabInfo=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.tabName=i.string();break}case 2:{a.tabUrl=i.string();break}case 3:{a.sort=i.int32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.TabInfo)return i;let n=new u.bilibili.polymer.app.search.v1.TabInfo;return i.tabName!=null&&(n.tabName=String(i.tabName)),i.tabUrl!=null&&(n.tabUrl=String(i.tabUrl)),i.sort!=null&&(n.sort=i.sort|0),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.tabName="",o.tabUrl="",o.sort=0),i.tabName!=null&&i.hasOwnProperty("tabName")&&(o.tabName=i.tabName),i.tabUrl!=null&&i.hasOwnProperty("tabUrl")&&(o.tabUrl=i.tabUrl),i.sort!=null&&i.hasOwnProperty("sort")&&(o.sort=i.sort),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.TabInfo"},l}(),e.TopGameUI=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.backgroundImage=i.string();break}case 2:{a.coverDefaultColor=i.string();break}case 3:{a.gaussianBlurValue=i.string();break}case 4:{a.maskColorValue=i.string();break}case 5:{a.maskOpacity=i.string();break}case 6:{a.moduleColor=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.TopGameUI)return i;let n=new u.bilibili.polymer.app.search.v1.TopGameUI;return i.backgroundImage!=null&&(n.backgroundImage=String(i.backgroundImage)),i.coverDefaultColor!=null&&(n.coverDefaultColor=String(i.coverDefaultColor)),i.gaussianBlurValue!=null&&(n.gaussianBlurValue=String(i.gaussianBlurValue)),i.maskColorValue!=null&&(n.maskColorValue=String(i.maskColorValue)),i.maskOpacity!=null&&(n.maskOpacity=String(i.maskOpacity)),i.moduleColor!=null&&(n.moduleColor=String(i.moduleColor)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.backgroundImage="",o.coverDefaultColor="",o.gaussianBlurValue="",o.maskColorValue="",o.maskOpacity="",o.moduleColor=""),i.backgroundImage!=null&&i.hasOwnProperty("backgroundImage")&&(o.backgroundImage=i.backgroundImage),i.coverDefaultColor!=null&&i.hasOwnProperty("coverDefaultColor")&&(o.coverDefaultColor=i.coverDefaultColor),i.gaussianBlurValue!=null&&i.hasOwnProperty("gaussianBlurValue")&&(o.gaussianBlurValue=i.gaussianBlurValue),i.maskColorValue!=null&&i.hasOwnProperty("maskColorValue")&&(o.maskColorValue=i.maskColorValue),i.maskOpacity!=null&&i.hasOwnProperty("maskOpacity")&&(o.maskOpacity=i.maskOpacity),i.moduleColor!=null&&i.hasOwnProperty("moduleColor")&&(o.moduleColor=i.moduleColor),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.TopGameUI"},l}(),e.CardBusinessBadge=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.gotoIcon=u.bilibili.polymer.app.search.v1.GotoIcon.decode(i,i.uint32());break}case 2:{a.badgeStyle=u.bilibili.polymer.app.search.v1.ReasonStyle.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.CardBusinessBadge)return i;let n=new u.bilibili.polymer.app.search.v1.CardBusinessBadge;if(i.gotoIcon!=null){if(typeof i.gotoIcon!="object")throw TypeError(".bilibili.polymer.app.search.v1.CardBusinessBadge.gotoIcon: object expected");n.gotoIcon=u.bilibili.polymer.app.search.v1.GotoIcon.fromObject(i.gotoIcon)}if(i.badgeStyle!=null){if(typeof i.badgeStyle!="object")throw TypeError(".bilibili.polymer.app.search.v1.CardBusinessBadge.badgeStyle: object expected");n.badgeStyle=u.bilibili.polymer.app.search.v1.ReasonStyle.fromObject(i.badgeStyle)}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.gotoIcon=null,o.badgeStyle=null),i.gotoIcon!=null&&i.hasOwnProperty("gotoIcon")&&(o.gotoIcon=u.bilibili.polymer.app.search.v1.GotoIcon.toObject(i.gotoIcon,n)),i.badgeStyle!=null&&i.hasOwnProperty("badgeStyle")&&(o.badgeStyle=u.bilibili.polymer.app.search.v1.ReasonStyle.toObject(i.badgeStyle,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.CardBusinessBadge"},l}(),e.GotoIcon=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.iconUrl=i.string();break}case 2:{a.iconNightUrl=i.string();break}case 3:{a.iconWidth=i.int32();break}case 4:{a.iconHeight=i.int32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.GotoIcon)return i;let n=new u.bilibili.polymer.app.search.v1.GotoIcon;return i.iconUrl!=null&&(n.iconUrl=String(i.iconUrl)),i.iconNightUrl!=null&&(n.iconNightUrl=String(i.iconNightUrl)),i.iconWidth!=null&&(n.iconWidth=i.iconWidth|0),i.iconHeight!=null&&(n.iconHeight=i.iconHeight|0),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.iconUrl="",o.iconNightUrl="",o.iconWidth=0,o.iconHeight=0),i.iconUrl!=null&&i.hasOwnProperty("iconUrl")&&(o.iconUrl=i.iconUrl),i.iconNightUrl!=null&&i.hasOwnProperty("iconNightUrl")&&(o.iconNightUrl=i.iconNightUrl),i.iconWidth!=null&&i.hasOwnProperty("iconWidth")&&(o.iconWidth=i.iconWidth),i.iconHeight!=null&&i.hasOwnProperty("iconHeight")&&(o.iconHeight=i.iconHeight),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.GotoIcon"},l}(),e.BrandADAccount=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.param=i.string();break}case 2:{a.goto=i.string();break}case 3:{a.mid=i.int64();break}case 4:{a.name=i.string();break}case 5:{a.face=i.string();break}case 6:{a.sign=i.string();break}case 7:{a.relation=u.bilibili.polymer.app.search.v1.Relation.decode(i,i.uint32());break}case 8:{a.roomid=i.int64();break}case 9:{a.liveStatus=i.int64();break}case 10:{a.liveLink=i.string();break}case 11:{a.officialVerify=u.bilibili.polymer.app.search.v1.OfficialVerify.decode(i,i.uint32());break}case 12:{a.vip=u.bilibili.polymer.app.search.v1.VipInfo.decode(i,i.uint32());break}case 13:{a.uri=i.string();break}case 14:{a.faceNftNew=i.int32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.BrandADAccount)return i;let n=new u.bilibili.polymer.app.search.v1.BrandADAccount;if(i.param!=null&&(n.param=String(i.param)),i.goto!=null&&(n.goto=String(i.goto)),i.mid!=null&&(r.Long?(n.mid=r.Long.fromValue(i.mid)).unsigned=!1:typeof i.mid=="string"?n.mid=parseInt(i.mid,10):typeof i.mid=="number"?n.mid=i.mid:typeof i.mid=="object"&&(n.mid=new r.LongBits(i.mid.low>>>0,i.mid.high>>>0).toNumber())),i.name!=null&&(n.name=String(i.name)),i.face!=null&&(n.face=String(i.face)),i.sign!=null&&(n.sign=String(i.sign)),i.relation!=null){if(typeof i.relation!="object")throw TypeError(".bilibili.polymer.app.search.v1.BrandADAccount.relation: object expected");n.relation=u.bilibili.polymer.app.search.v1.Relation.fromObject(i.relation)}if(i.roomid!=null&&(r.Long?(n.roomid=r.Long.fromValue(i.roomid)).unsigned=!1:typeof i.roomid=="string"?n.roomid=parseInt(i.roomid,10):typeof i.roomid=="number"?n.roomid=i.roomid:typeof i.roomid=="object"&&(n.roomid=new r.LongBits(i.roomid.low>>>0,i.roomid.high>>>0).toNumber())),i.liveStatus!=null&&(r.Long?(n.liveStatus=r.Long.fromValue(i.liveStatus)).unsigned=!1:typeof i.liveStatus=="string"?n.liveStatus=parseInt(i.liveStatus,10):typeof i.liveStatus=="number"?n.liveStatus=i.liveStatus:typeof i.liveStatus=="object"&&(n.liveStatus=new r.LongBits(i.liveStatus.low>>>0,i.liveStatus.high>>>0).toNumber())),i.liveLink!=null&&(n.liveLink=String(i.liveLink)),i.officialVerify!=null){if(typeof i.officialVerify!="object")throw TypeError(".bilibili.polymer.app.search.v1.BrandADAccount.officialVerify: object expected");n.officialVerify=u.bilibili.polymer.app.search.v1.OfficialVerify.fromObject(i.officialVerify)}if(i.vip!=null){if(typeof i.vip!="object")throw TypeError(".bilibili.polymer.app.search.v1.BrandADAccount.vip: object expected");n.vip=u.bilibili.polymer.app.search.v1.VipInfo.fromObject(i.vip)}return i.uri!=null&&(n.uri=String(i.uri)),i.faceNftNew!=null&&(n.faceNftNew=i.faceNftNew|0),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(o.param="",o.goto="",r.Long){let a=new r.Long(0,0,!1);o.mid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.mid=n.longs===String?"0":0;if(o.name="",o.face="",o.sign="",o.relation=null,r.Long){let a=new r.Long(0,0,!1);o.roomid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.roomid=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.liveStatus=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.liveStatus=n.longs===String?"0":0;o.liveLink="",o.officialVerify=null,o.vip=null,o.uri="",o.faceNftNew=0}return i.param!=null&&i.hasOwnProperty("param")&&(o.param=i.param),i.goto!=null&&i.hasOwnProperty("goto")&&(o.goto=i.goto),i.mid!=null&&i.hasOwnProperty("mid")&&(typeof i.mid=="number"?o.mid=n.longs===String?String(i.mid):i.mid:o.mid=n.longs===String?r.Long.prototype.toString.call(i.mid):n.longs===Number?new r.LongBits(i.mid.low>>>0,i.mid.high>>>0).toNumber():i.mid),i.name!=null&&i.hasOwnProperty("name")&&(o.name=i.name),i.face!=null&&i.hasOwnProperty("face")&&(o.face=i.face),i.sign!=null&&i.hasOwnProperty("sign")&&(o.sign=i.sign),i.relation!=null&&i.hasOwnProperty("relation")&&(o.relation=u.bilibili.polymer.app.search.v1.Relation.toObject(i.relation,n)),i.roomid!=null&&i.hasOwnProperty("roomid")&&(typeof i.roomid=="number"?o.roomid=n.longs===String?String(i.roomid):i.roomid:o.roomid=n.longs===String?r.Long.prototype.toString.call(i.roomid):n.longs===Number?new r.LongBits(i.roomid.low>>>0,i.roomid.high>>>0).toNumber():i.roomid),i.liveStatus!=null&&i.hasOwnProperty("liveStatus")&&(typeof i.liveStatus=="number"?o.liveStatus=n.longs===String?String(i.liveStatus):i.liveStatus:o.liveStatus=n.longs===String?r.Long.prototype.toString.call(i.liveStatus):n.longs===Number?new r.LongBits(i.liveStatus.low>>>0,i.liveStatus.high>>>0).toNumber():i.liveStatus),i.liveLink!=null&&i.hasOwnProperty("liveLink")&&(o.liveLink=i.liveLink),i.officialVerify!=null&&i.hasOwnProperty("officialVerify")&&(o.officialVerify=u.bilibili.polymer.app.search.v1.OfficialVerify.toObject(i.officialVerify,n)),i.vip!=null&&i.hasOwnProperty("vip")&&(o.vip=u.bilibili.polymer.app.search.v1.VipInfo.toObject(i.vip,n)),i.uri!=null&&i.hasOwnProperty("uri")&&(o.uri=i.uri),i.faceNftNew!=null&&i.hasOwnProperty("faceNftNew")&&(o.faceNftNew=i.faceNftNew),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.BrandADAccount"},l}(),e.BrandADArc=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.param=i.string();break}case 2:{a.goto=i.string();break}case 3:{a.aid=i.int64();break}case 4:{a.play=i.int64();break}case 5:{a.reply=i.int64();break}case 6:{a.duration=i.string();break}case 7:{a.author=i.string();break}case 8:{a.title=i.string();break}case 9:{a.uri=i.string();break}case 10:{a.cover=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.BrandADArc)return i;let n=new u.bilibili.polymer.app.search.v1.BrandADArc;return i.param!=null&&(n.param=String(i.param)),i.goto!=null&&(n.goto=String(i.goto)),i.aid!=null&&(r.Long?(n.aid=r.Long.fromValue(i.aid)).unsigned=!1:typeof i.aid=="string"?n.aid=parseInt(i.aid,10):typeof i.aid=="number"?n.aid=i.aid:typeof i.aid=="object"&&(n.aid=new r.LongBits(i.aid.low>>>0,i.aid.high>>>0).toNumber())),i.play!=null&&(r.Long?(n.play=r.Long.fromValue(i.play)).unsigned=!1:typeof i.play=="string"?n.play=parseInt(i.play,10):typeof i.play=="number"?n.play=i.play:typeof i.play=="object"&&(n.play=new r.LongBits(i.play.low>>>0,i.play.high>>>0).toNumber())),i.reply!=null&&(r.Long?(n.reply=r.Long.fromValue(i.reply)).unsigned=!1:typeof i.reply=="string"?n.reply=parseInt(i.reply,10):typeof i.reply=="number"?n.reply=i.reply:typeof i.reply=="object"&&(n.reply=new r.LongBits(i.reply.low>>>0,i.reply.high>>>0).toNumber())),i.duration!=null&&(n.duration=String(i.duration)),i.author!=null&&(n.author=String(i.author)),i.title!=null&&(n.title=String(i.title)),i.uri!=null&&(n.uri=String(i.uri)),i.cover!=null&&(n.cover=String(i.cover)),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(o.param="",o.goto="",r.Long){let a=new r.Long(0,0,!1);o.aid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.aid=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.play=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.play=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.reply=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.reply=n.longs===String?"0":0;o.duration="",o.author="",o.title="",o.uri="",o.cover=""}return i.param!=null&&i.hasOwnProperty("param")&&(o.param=i.param),i.goto!=null&&i.hasOwnProperty("goto")&&(o.goto=i.goto),i.aid!=null&&i.hasOwnProperty("aid")&&(typeof i.aid=="number"?o.aid=n.longs===String?String(i.aid):i.aid:o.aid=n.longs===String?r.Long.prototype.toString.call(i.aid):n.longs===Number?new r.LongBits(i.aid.low>>>0,i.aid.high>>>0).toNumber():i.aid),i.play!=null&&i.hasOwnProperty("play")&&(typeof i.play=="number"?o.play=n.longs===String?String(i.play):i.play:o.play=n.longs===String?r.Long.prototype.toString.call(i.play):n.longs===Number?new r.LongBits(i.play.low>>>0,i.play.high>>>0).toNumber():i.play),i.reply!=null&&i.hasOwnProperty("reply")&&(typeof i.reply=="number"?o.reply=n.longs===String?String(i.reply):i.reply:o.reply=n.longs===String?r.Long.prototype.toString.call(i.reply):n.longs===Number?new r.LongBits(i.reply.low>>>0,i.reply.high>>>0).toNumber():i.reply),i.duration!=null&&i.hasOwnProperty("duration")&&(o.duration=i.duration),i.author!=null&&i.hasOwnProperty("author")&&(o.author=i.author),i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.uri!=null&&i.hasOwnProperty("uri")&&(o.uri=i.uri),i.cover!=null&&i.hasOwnProperty("cover")&&(o.cover=i.cover),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.BrandADArc"},l}(),e.SportsMatchItem=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.matchId=i.int64();break}case 2:{a.seasonId=i.int64();break}case 3:{a.matchName=i.string();break}case 4:{a.img=i.string();break}case 5:{a.beginTimeDesc=i.string();break}case 6:{a.matchStatusDesc=i.string();break}case 7:{a.subContent=i.string();break}case 8:{a.subExtraIcon=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.SportsMatchItem)return i;let n=new u.bilibili.polymer.app.search.v1.SportsMatchItem;return i.matchId!=null&&(r.Long?(n.matchId=r.Long.fromValue(i.matchId)).unsigned=!1:typeof i.matchId=="string"?n.matchId=parseInt(i.matchId,10):typeof i.matchId=="number"?n.matchId=i.matchId:typeof i.matchId=="object"&&(n.matchId=new r.LongBits(i.matchId.low>>>0,i.matchId.high>>>0).toNumber())),i.seasonId!=null&&(r.Long?(n.seasonId=r.Long.fromValue(i.seasonId)).unsigned=!1:typeof i.seasonId=="string"?n.seasonId=parseInt(i.seasonId,10):typeof i.seasonId=="number"?n.seasonId=i.seasonId:typeof i.seasonId=="object"&&(n.seasonId=new r.LongBits(i.seasonId.low>>>0,i.seasonId.high>>>0).toNumber())),i.matchName!=null&&(n.matchName=String(i.matchName)),i.img!=null&&(n.img=String(i.img)),i.beginTimeDesc!=null&&(n.beginTimeDesc=String(i.beginTimeDesc)),i.matchStatusDesc!=null&&(n.matchStatusDesc=String(i.matchStatusDesc)),i.subContent!=null&&(n.subContent=String(i.subContent)),i.subExtraIcon!=null&&(n.subExtraIcon=String(i.subExtraIcon)),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.matchId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.matchId=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.seasonId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.seasonId=n.longs===String?"0":0;o.matchName="",o.img="",o.beginTimeDesc="",o.matchStatusDesc="",o.subContent="",o.subExtraIcon=""}return i.matchId!=null&&i.hasOwnProperty("matchId")&&(typeof i.matchId=="number"?o.matchId=n.longs===String?String(i.matchId):i.matchId:o.matchId=n.longs===String?r.Long.prototype.toString.call(i.matchId):n.longs===Number?new r.LongBits(i.matchId.low>>>0,i.matchId.high>>>0).toNumber():i.matchId),i.seasonId!=null&&i.hasOwnProperty("seasonId")&&(typeof i.seasonId=="number"?o.seasonId=n.longs===String?String(i.seasonId):i.seasonId:o.seasonId=n.longs===String?r.Long.prototype.toString.call(i.seasonId):n.longs===Number?new r.LongBits(i.seasonId.low>>>0,i.seasonId.high>>>0).toNumber():i.seasonId),i.matchName!=null&&i.hasOwnProperty("matchName")&&(o.matchName=i.matchName),i.img!=null&&i.hasOwnProperty("img")&&(o.img=i.img),i.beginTimeDesc!=null&&i.hasOwnProperty("beginTimeDesc")&&(o.beginTimeDesc=i.beginTimeDesc),i.matchStatusDesc!=null&&i.hasOwnProperty("matchStatusDesc")&&(o.matchStatusDesc=i.matchStatusDesc),i.subContent!=null&&i.hasOwnProperty("subContent")&&(o.subContent=i.subContent),i.subExtraIcon!=null&&i.hasOwnProperty("subExtraIcon")&&(o.subExtraIcon=i.subExtraIcon),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.SportsMatchItem"},l}(),e.Share=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.type=i.string();break}case 2:{a.video=u.bilibili.polymer.app.search.v1.Video.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.Share)return i;let n=new u.bilibili.polymer.app.search.v1.Share;if(i.type!=null&&(n.type=String(i.type)),i.video!=null){if(typeof i.video!="object")throw TypeError(".bilibili.polymer.app.search.v1.Share.video: object expected");n.video=u.bilibili.polymer.app.search.v1.Video.fromObject(i.video)}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.type="",o.video=null),i.type!=null&&i.hasOwnProperty("type")&&(o.type=i.type),i.video!=null&&i.hasOwnProperty("video")&&(o.video=u.bilibili.polymer.app.search.v1.Video.toObject(i.video,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.Share"},l}(),e.Episode=function(){function l(t){if(this.badges=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.uri=i.string();break}case 2:{a.param=i.string();break}case 3:{a.index=i.string();break}case 4:{a.badges&&a.badges.length||(a.badges=[]),a.badges.push(u.bilibili.polymer.app.search.v1.ReasonStyle.decode(i,i.uint32()));break}case 5:{a.position=i.int32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.Episode)return i;let n=new u.bilibili.polymer.app.search.v1.Episode;if(i.uri!=null&&(n.uri=String(i.uri)),i.param!=null&&(n.param=String(i.param)),i.index!=null&&(n.index=String(i.index)),i.badges){if(!Array.isArray(i.badges))throw TypeError(".bilibili.polymer.app.search.v1.Episode.badges: array expected");n.badges=[];for(let o=0;o>>3){case 1:{a.mid=i.int64();break}case 2:{a.title=i.string();break}case 3:{a.cover=i.string();break}case 4:{a.ptimeText=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.Upper)return i;let n=new u.bilibili.polymer.app.search.v1.Upper;return i.mid!=null&&(r.Long?(n.mid=r.Long.fromValue(i.mid)).unsigned=!1:typeof i.mid=="string"?n.mid=parseInt(i.mid,10):typeof i.mid=="number"?n.mid=i.mid:typeof i.mid=="object"&&(n.mid=new r.LongBits(i.mid.low>>>0,i.mid.high>>>0).toNumber())),i.title!=null&&(n.title=String(i.title)),i.cover!=null&&(n.cover=String(i.cover)),i.ptimeText!=null&&(n.ptimeText=String(i.ptimeText)),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.mid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.mid=n.longs===String?"0":0;o.title="",o.cover="",o.ptimeText=""}return i.mid!=null&&i.hasOwnProperty("mid")&&(typeof i.mid=="number"?o.mid=n.longs===String?String(i.mid):i.mid:o.mid=n.longs===String?r.Long.prototype.toString.call(i.mid):n.longs===Number?new r.LongBits(i.mid.low>>>0,i.mid.high>>>0).toNumber():i.mid),i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.cover!=null&&i.hasOwnProperty("cover")&&(o.cover=i.cover),i.ptimeText!=null&&i.hasOwnProperty("ptimeText")&&(o.ptimeText=i.ptimeText),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.Upper"},l}(),e.Stat=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.play=i.int32();break}case 2:{a.like=i.int32();break}case 3:{a.reply=i.int32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.Stat)return i;let n=new u.bilibili.polymer.app.search.v1.Stat;return i.play!=null&&(n.play=i.play|0),i.like!=null&&(n.like=i.like|0),i.reply!=null&&(n.reply=i.reply|0),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.play=0,o.like=0,o.reply=0),i.play!=null&&i.hasOwnProperty("play")&&(o.play=i.play),i.like!=null&&i.hasOwnProperty("like")&&(o.like=i.like),i.reply!=null&&i.hasOwnProperty("reply")&&(o.reply=i.reply),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.Stat"},l}(),e.DyTopic=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.title=i.string();break}case 2:{a.uri=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.DyTopic)return i;let n=new u.bilibili.polymer.app.search.v1.DyTopic;return i.title!=null&&(n.title=String(i.title)),i.uri!=null&&(n.uri=String(i.uri)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.title="",o.uri=""),i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.uri!=null&&i.hasOwnProperty("uri")&&(o.uri=i.uri),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.DyTopic"},l}(),e.TextLabel=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.text=i.string();break}case 2:{a.uri=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.TextLabel)return i;let n=new u.bilibili.polymer.app.search.v1.TextLabel;return i.text!=null&&(n.text=String(i.text)),i.uri!=null&&(n.uri=String(i.uri)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.text="",o.uri=""),i.text!=null&&i.hasOwnProperty("text")&&(o.text=i.text),i.uri!=null&&i.hasOwnProperty("uri")&&(o.uri=i.uri),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.TextLabel"},l}(),e.TextButton=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.text=i.string();break}case 2:{a.uri=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.TextButton)return i;let n=new u.bilibili.polymer.app.search.v1.TextButton;return i.text!=null&&(n.text=String(i.text)),i.uri!=null&&(n.uri=String(i.uri)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.text="",o.uri=""),i.text!=null&&i.hasOwnProperty("text")&&(o.text=i.text),i.uri!=null&&i.hasOwnProperty("uri")&&(o.uri=i.uri),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.TextButton"},l}(),e.ChannelMixedItem=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.id=i.int64();break}case 2:{a.coverLeftIcon_1=i.int32();break}case 3:{a.coverLeftText_1=i.string();break}case 4:{a.cover=i.string();break}case 5:{a.goto=i.string();break}case 6:{a.param=i.string();break}case 7:{a.uri=i.string();break}case 8:{a.title=i.string();break}case 9:{a.badge=u.bilibili.polymer.app.search.v1.Badge2.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.ChannelMixedItem)return i;let n=new u.bilibili.polymer.app.search.v1.ChannelMixedItem;if(i.id!=null&&(r.Long?(n.id=r.Long.fromValue(i.id)).unsigned=!1:typeof i.id=="string"?n.id=parseInt(i.id,10):typeof i.id=="number"?n.id=i.id:typeof i.id=="object"&&(n.id=new r.LongBits(i.id.low>>>0,i.id.high>>>0).toNumber())),i.coverLeftIcon_1!=null&&(n.coverLeftIcon_1=i.coverLeftIcon_1|0),i.coverLeftText_1!=null&&(n.coverLeftText_1=String(i.coverLeftText_1)),i.cover!=null&&(n.cover=String(i.cover)),i.goto!=null&&(n.goto=String(i.goto)),i.param!=null&&(n.param=String(i.param)),i.uri!=null&&(n.uri=String(i.uri)),i.title!=null&&(n.title=String(i.title)),i.badge!=null){if(typeof i.badge!="object")throw TypeError(".bilibili.polymer.app.search.v1.ChannelMixedItem.badge: object expected");n.badge=u.bilibili.polymer.app.search.v1.Badge2.fromObject(i.badge)}return n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.id=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.id=n.longs===String?"0":0;o.coverLeftIcon_1=0,o.coverLeftText_1="",o.cover="",o.goto="",o.param="",o.uri="",o.title="",o.badge=null}return i.id!=null&&i.hasOwnProperty("id")&&(typeof i.id=="number"?o.id=n.longs===String?String(i.id):i.id:o.id=n.longs===String?r.Long.prototype.toString.call(i.id):n.longs===Number?new r.LongBits(i.id.low>>>0,i.id.high>>>0).toNumber():i.id),i.coverLeftIcon_1!=null&&i.hasOwnProperty("coverLeftIcon_1")&&(o.coverLeftIcon_1=i.coverLeftIcon_1),i.coverLeftText_1!=null&&i.hasOwnProperty("coverLeftText_1")&&(o.coverLeftText_1=i.coverLeftText_1),i.cover!=null&&i.hasOwnProperty("cover")&&(o.cover=i.cover),i.goto!=null&&i.hasOwnProperty("goto")&&(o.goto=i.goto),i.param!=null&&i.hasOwnProperty("param")&&(o.param=i.param),i.uri!=null&&i.hasOwnProperty("uri")&&(o.uri=i.uri),i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.badge!=null&&i.hasOwnProperty("badge")&&(o.badge=u.bilibili.polymer.app.search.v1.Badge2.toObject(i.badge,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.ChannelMixedItem"},l}(),e.Badge2=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.bgCover=i.string();break}case 2:{a.text=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.Badge2)return i;let n=new u.bilibili.polymer.app.search.v1.Badge2;return i.bgCover!=null&&(n.bgCover=String(i.bgCover)),i.text!=null&&(n.text=String(i.text)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.bgCover="",o.text=""),i.bgCover!=null&&i.hasOwnProperty("bgCover")&&(o.bgCover=i.bgCover),i.text!=null&&i.hasOwnProperty("text")&&(o.text=i.text),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.Badge2"},l}(),e.BottomButton=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.desc=i.string();break}case 2:{a.link=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.BottomButton)return i;let n=new u.bilibili.polymer.app.search.v1.BottomButton;return i.desc!=null&&(n.desc=String(i.desc)),i.link!=null&&(n.link=String(i.link)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.desc="",o.link=""),i.desc!=null&&i.hasOwnProperty("desc")&&(o.desc=i.desc),i.link!=null&&i.hasOwnProperty("link")&&(o.link=i.link),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.BottomButton"},l}(),e.OgvClipInfo=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.playStartTime=i.int64();break}case 2:{a.playEndTime=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.OgvClipInfo)return i;let n=new u.bilibili.polymer.app.search.v1.OgvClipInfo;return i.playStartTime!=null&&(r.Long?(n.playStartTime=r.Long.fromValue(i.playStartTime)).unsigned=!1:typeof i.playStartTime=="string"?n.playStartTime=parseInt(i.playStartTime,10):typeof i.playStartTime=="number"?n.playStartTime=i.playStartTime:typeof i.playStartTime=="object"&&(n.playStartTime=new r.LongBits(i.playStartTime.low>>>0,i.playStartTime.high>>>0).toNumber())),i.playEndTime!=null&&(r.Long?(n.playEndTime=r.Long.fromValue(i.playEndTime)).unsigned=!1:typeof i.playEndTime=="string"?n.playEndTime=parseInt(i.playEndTime,10):typeof i.playEndTime=="number"?n.playEndTime=i.playEndTime:typeof i.playEndTime=="object"&&(n.playEndTime=new r.LongBits(i.playEndTime.low>>>0,i.playEndTime.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.playStartTime=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.playStartTime=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.playEndTime=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.playEndTime=n.longs===String?"0":0}return i.playStartTime!=null&&i.hasOwnProperty("playStartTime")&&(typeof i.playStartTime=="number"?o.playStartTime=n.longs===String?String(i.playStartTime):i.playStartTime:o.playStartTime=n.longs===String?r.Long.prototype.toString.call(i.playStartTime):n.longs===Number?new r.LongBits(i.playStartTime.low>>>0,i.playStartTime.high>>>0).toNumber():i.playStartTime),i.playEndTime!=null&&i.hasOwnProperty("playEndTime")&&(typeof i.playEndTime=="number"?o.playEndTime=n.longs===String?String(i.playEndTime):i.playEndTime:o.playEndTime=n.longs===String?r.Long.prototype.toString.call(i.playEndTime):n.longs===Number?new r.LongBits(i.playEndTime.low>>>0,i.playEndTime.high>>>0).toNumber():i.playEndTime),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.OgvClipInfo"},l}(),e.ThreePoint=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.type=i.string();break}case 2:{a.icon=i.string();break}case 3:{a.title=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.ThreePoint)return i;let n=new u.bilibili.polymer.app.search.v1.ThreePoint;return i.type!=null&&(n.type=String(i.type)),i.icon!=null&&(n.icon=String(i.icon)),i.title!=null&&(n.title=String(i.title)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.type="",o.icon="",o.title=""),i.type!=null&&i.hasOwnProperty("type")&&(o.type=i.type),i.icon!=null&&i.hasOwnProperty("icon")&&(o.icon=i.icon),i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.ThreePoint"},l}(),e.Relation=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.status=i.int32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.Relation)return i;let n=new u.bilibili.polymer.app.search.v1.Relation;return i.status!=null&&(n.status=i.status|0),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.status=0),i.status!=null&&i.hasOwnProperty("status")&&(o.status=i.status),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.Relation"},l}(),e.Badge=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.text=i.string();break}case 2:{a.bgCover=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.Badge)return i;let n=new u.bilibili.polymer.app.search.v1.Badge;return i.text!=null&&(n.text=String(i.text)),i.bgCover!=null&&(n.bgCover=String(i.bgCover)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.text="",o.bgCover=""),i.text!=null&&i.hasOwnProperty("text")&&(o.text=i.text),i.bgCover!=null&&i.hasOwnProperty("bgCover")&&(o.bgCover=i.bgCover),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.Badge"},l}(),e.ChannelLabel=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.text=i.string();break}case 2:{a.uri=i.string();break}case 3:{a.iconType=i.int32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.ChannelLabel)return i;let n=new u.bilibili.polymer.app.search.v1.ChannelLabel;return i.text!=null&&(n.text=String(i.text)),i.uri!=null&&(n.uri=String(i.uri)),i.iconType!=null&&(n.iconType=i.iconType|0),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.text="",o.uri="",o.iconType=0),i.text!=null&&i.hasOwnProperty("text")&&(o.text=i.text),i.uri!=null&&i.hasOwnProperty("uri")&&(o.uri=i.uri),i.iconType!=null&&i.hasOwnProperty("iconType")&&(o.iconType=i.iconType),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.ChannelLabel"},l}(),e.ExtraLink=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.text=i.string();break}case 2:{a.uri=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.ExtraLink)return i;let n=new u.bilibili.polymer.app.search.v1.ExtraLink;return i.text!=null&&(n.text=String(i.text)),i.uri!=null&&(n.uri=String(i.uri)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.text="",o.uri=""),i.text!=null&&i.hasOwnProperty("text")&&(o.text=i.text),i.uri!=null&&i.hasOwnProperty("uri")&&(o.uri=i.uri),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.ExtraLink"},l}(),e.MatchTeam=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.id=i.int64();break}case 2:{a.title=i.string();break}case 3:{a.cover=i.string();break}case 4:{a.score=i.int32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.MatchTeam)return i;let n=new u.bilibili.polymer.app.search.v1.MatchTeam;return i.id!=null&&(r.Long?(n.id=r.Long.fromValue(i.id)).unsigned=!1:typeof i.id=="string"?n.id=parseInt(i.id,10):typeof i.id=="number"?n.id=i.id:typeof i.id=="object"&&(n.id=new r.LongBits(i.id.low>>>0,i.id.high>>>0).toNumber())),i.title!=null&&(n.title=String(i.title)),i.cover!=null&&(n.cover=String(i.cover)),i.score!=null&&(n.score=i.score|0),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.id=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.id=n.longs===String?"0":0;o.title="",o.cover="",o.score=0}return i.id!=null&&i.hasOwnProperty("id")&&(typeof i.id=="number"?o.id=n.longs===String?String(i.id):i.id:o.id=n.longs===String?r.Long.prototype.toString.call(i.id):n.longs===Number?new r.LongBits(i.id.low>>>0,i.id.high>>>0).toNumber():i.id),i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.cover!=null&&i.hasOwnProperty("cover")&&(o.cover=i.cover),i.score!=null&&i.hasOwnProperty("score")&&(o.score=i.score),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.MatchTeam"},l}(),e.MatchItem=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.state=i.int32();break}case 2:{a.text=i.string();break}case 3:{a.textColor=i.string();break}case 4:{a.textColorNight=i.string();break}case 5:{a.uri=i.string();break}case 6:{a.liveLink=i.string();break}case 7:{a.texts=u.bilibili.polymer.app.search.v1.Texts.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.MatchItem)return i;let n=new u.bilibili.polymer.app.search.v1.MatchItem;if(i.state!=null&&(n.state=i.state|0),i.text!=null&&(n.text=String(i.text)),i.textColor!=null&&(n.textColor=String(i.textColor)),i.textColorNight!=null&&(n.textColorNight=String(i.textColorNight)),i.uri!=null&&(n.uri=String(i.uri)),i.liveLink!=null&&(n.liveLink=String(i.liveLink)),i.texts!=null){if(typeof i.texts!="object")throw TypeError(".bilibili.polymer.app.search.v1.MatchItem.texts: object expected");n.texts=u.bilibili.polymer.app.search.v1.Texts.fromObject(i.texts)}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.state=0,o.text="",o.textColor="",o.textColorNight="",o.uri="",o.liveLink="",o.texts=null),i.state!=null&&i.hasOwnProperty("state")&&(o.state=i.state),i.text!=null&&i.hasOwnProperty("text")&&(o.text=i.text),i.textColor!=null&&i.hasOwnProperty("textColor")&&(o.textColor=i.textColor),i.textColorNight!=null&&i.hasOwnProperty("textColorNight")&&(o.textColorNight=i.textColorNight),i.uri!=null&&i.hasOwnProperty("uri")&&(o.uri=i.uri),i.liveLink!=null&&i.hasOwnProperty("liveLink")&&(o.liveLink=i.liveLink),i.texts!=null&&i.hasOwnProperty("texts")&&(o.texts=u.bilibili.polymer.app.search.v1.Texts.toObject(i.texts,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.MatchItem"},l}(),e.Texts=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.bookingText=i.string();break}case 2:{a.unbookingText=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.Texts)return i;let n=new u.bilibili.polymer.app.search.v1.Texts;return i.bookingText!=null&&(n.bookingText=String(i.bookingText)),i.unbookingText!=null&&(n.unbookingText=String(i.unbookingText)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.bookingText="",o.unbookingText=""),i.bookingText!=null&&i.hasOwnProperty("bookingText")&&(o.bookingText=i.bookingText),i.unbookingText!=null&&i.hasOwnProperty("unbookingText")&&(o.unbookingText=i.unbookingText),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.Texts"},l}(),e.UpArgs=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.upId=i.int64();break}case 2:{a.upName=i.string();break}case 3:{a.upFace=i.string();break}case 4:{a.selected=i.int32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.UpArgs)return i;let n=new u.bilibili.polymer.app.search.v1.UpArgs;return i.upId!=null&&(r.Long?(n.upId=r.Long.fromValue(i.upId)).unsigned=!1:typeof i.upId=="string"?n.upId=parseInt(i.upId,10):typeof i.upId=="number"?n.upId=i.upId:typeof i.upId=="object"&&(n.upId=new r.LongBits(i.upId.low>>>0,i.upId.high>>>0).toNumber())),i.upName!=null&&(n.upName=String(i.upName)),i.upFace!=null&&(n.upFace=String(i.upFace)),i.selected!=null&&(n.selected=i.selected|0),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.upId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.upId=n.longs===String?"0":0;o.upName="",o.upFace="",o.selected=0}return i.upId!=null&&i.hasOwnProperty("upId")&&(typeof i.upId=="number"?o.upId=n.longs===String?String(i.upId):i.upId:o.upId=n.longs===String?r.Long.prototype.toString.call(i.upId):n.longs===Number?new r.LongBits(i.upId.low>>>0,i.upId.high>>>0).toNumber():i.upId),i.upName!=null&&i.hasOwnProperty("upName")&&(o.upName=i.upName),i.upFace!=null&&i.hasOwnProperty("upFace")&&(o.upFace=i.upFace),i.selected!=null&&i.hasOwnProperty("selected")&&(o.selected=i.selected),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.UpArgs"},l}(),e.ThreePointV4=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.sharePlane=u.bilibili.polymer.app.search.v1.SharePlane.decode(i,i.uint32());break}case 2:{a.watchLater=u.bilibili.polymer.app.search.v1.WatchLater.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.ThreePointV4)return i;let n=new u.bilibili.polymer.app.search.v1.ThreePointV4;if(i.sharePlane!=null){if(typeof i.sharePlane!="object")throw TypeError(".bilibili.polymer.app.search.v1.ThreePointV4.sharePlane: object expected");n.sharePlane=u.bilibili.polymer.app.search.v1.SharePlane.fromObject(i.sharePlane)}if(i.watchLater!=null){if(typeof i.watchLater!="object")throw TypeError(".bilibili.polymer.app.search.v1.ThreePointV4.watchLater: object expected");n.watchLater=u.bilibili.polymer.app.search.v1.WatchLater.fromObject(i.watchLater)}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.sharePlane=null,o.watchLater=null),i.sharePlane!=null&&i.hasOwnProperty("sharePlane")&&(o.sharePlane=u.bilibili.polymer.app.search.v1.SharePlane.toObject(i.sharePlane,n)),i.watchLater!=null&&i.hasOwnProperty("watchLater")&&(o.watchLater=u.bilibili.polymer.app.search.v1.WatchLater.toObject(i.watchLater,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.ThreePointV4"},l}(),e.WatchLater=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.aid=i.int64();break}case 2:{a.bvid=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.WatchLater)return i;let n=new u.bilibili.polymer.app.search.v1.WatchLater;return i.aid!=null&&(r.Long?(n.aid=r.Long.fromValue(i.aid)).unsigned=!1:typeof i.aid=="string"?n.aid=parseInt(i.aid,10):typeof i.aid=="number"?n.aid=i.aid:typeof i.aid=="object"&&(n.aid=new r.LongBits(i.aid.low>>>0,i.aid.high>>>0).toNumber())),i.bvid!=null&&(n.bvid=String(i.bvid)),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.aid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.aid=n.longs===String?"0":0;o.bvid=""}return i.aid!=null&&i.hasOwnProperty("aid")&&(typeof i.aid=="number"?o.aid=n.longs===String?String(i.aid):i.aid:o.aid=n.longs===String?r.Long.prototype.toString.call(i.aid):n.longs===Number?new r.LongBits(i.aid.low>>>0,i.aid.high>>>0).toNumber():i.aid),i.bvid!=null&&i.hasOwnProperty("bvid")&&(o.bvid=i.bvid),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.WatchLater"},l}(),e.ThreePointV3=function(){function l(t){if(this.reasons=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.title=i.string();break}case 2:{a.selectedTitle=i.string();break}case 3:{a.subtitle=i.string();break}case 4:{a.reasons&&a.reasons.length||(a.reasons=[]),a.reasons.push(u.bilibili.polymer.app.search.v1.DislikeReason.decode(i,i.uint32()));break}case 5:{a.type=i.string();break}case 6:{a.id=i.int64();break}case 7:{a.selected=i.int32();break}case 8:{a.icon=i.string();break}case 9:{a.selectedIcon=i.string();break}case 10:{a.url=i.string();break}case 11:{a.defaultId=i.int32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.ThreePointV3)return i;let n=new u.bilibili.polymer.app.search.v1.ThreePointV3;if(i.title!=null&&(n.title=String(i.title)),i.selectedTitle!=null&&(n.selectedTitle=String(i.selectedTitle)),i.subtitle!=null&&(n.subtitle=String(i.subtitle)),i.reasons){if(!Array.isArray(i.reasons))throw TypeError(".bilibili.polymer.app.search.v1.ThreePointV3.reasons: array expected");n.reasons=[];for(let o=0;o>>0,i.id.high>>>0).toNumber())),i.selected!=null&&(n.selected=i.selected|0),i.icon!=null&&(n.icon=String(i.icon)),i.selectedIcon!=null&&(n.selectedIcon=String(i.selectedIcon)),i.url!=null&&(n.url=String(i.url)),i.defaultId!=null&&(n.defaultId=i.defaultId|0),n},l.toObject=function(i,n){n||(n={});let o={};if((n.arrays||n.defaults)&&(o.reasons=[]),n.defaults){if(o.title="",o.selectedTitle="",o.subtitle="",o.type="",r.Long){let a=new r.Long(0,0,!1);o.id=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.id=n.longs===String?"0":0;o.selected=0,o.icon="",o.selectedIcon="",o.url="",o.defaultId=0}if(i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.selectedTitle!=null&&i.hasOwnProperty("selectedTitle")&&(o.selectedTitle=i.selectedTitle),i.subtitle!=null&&i.hasOwnProperty("subtitle")&&(o.subtitle=i.subtitle),i.reasons&&i.reasons.length){o.reasons=[];for(let a=0;a>>0,i.id.high>>>0).toNumber():i.id),i.selected!=null&&i.hasOwnProperty("selected")&&(o.selected=i.selected),i.icon!=null&&i.hasOwnProperty("icon")&&(o.icon=i.icon),i.selectedIcon!=null&&i.hasOwnProperty("selectedIcon")&&(o.selectedIcon=i.selectedIcon),i.url!=null&&i.hasOwnProperty("url")&&(o.url=i.url),i.defaultId!=null&&i.hasOwnProperty("defaultId")&&(o.defaultId=i.defaultId),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.ThreePointV3"},l}(),e.ThreePointV2=function(){function l(t){if(this.reasons=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.title=i.string();break}case 2:{a.subtitle=i.string();break}case 3:{a.reasons&&a.reasons.length||(a.reasons=[]),a.reasons.push(u.bilibili.polymer.app.search.v1.DislikeReason.decode(i,i.uint32()));break}case 4:{a.type=i.string();break}case 5:{a.id=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.ThreePointV2)return i;let n=new u.bilibili.polymer.app.search.v1.ThreePointV2;if(i.title!=null&&(n.title=String(i.title)),i.subtitle!=null&&(n.subtitle=String(i.subtitle)),i.reasons){if(!Array.isArray(i.reasons))throw TypeError(".bilibili.polymer.app.search.v1.ThreePointV2.reasons: array expected");n.reasons=[];for(let o=0;o>>0,i.id.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if((n.arrays||n.defaults)&&(o.reasons=[]),n.defaults)if(o.title="",o.subtitle="",o.type="",r.Long){let a=new r.Long(0,0,!1);o.id=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.id=n.longs===String?"0":0;if(i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.subtitle!=null&&i.hasOwnProperty("subtitle")&&(o.subtitle=i.subtitle),i.reasons&&i.reasons.length){o.reasons=[];for(let a=0;a>>0,i.id.high>>>0).toNumber():i.id),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.ThreePointV2"},l}(),e.Mask=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.avatar=u.bilibili.polymer.app.search.v1.Avatar.decode(i,i.uint32());break}case 2:{a.button=u.bilibili.polymer.app.search.v1.Button.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.Mask)return i;let n=new u.bilibili.polymer.app.search.v1.Mask;if(i.avatar!=null){if(typeof i.avatar!="object")throw TypeError(".bilibili.polymer.app.search.v1.Mask.avatar: object expected");n.avatar=u.bilibili.polymer.app.search.v1.Avatar.fromObject(i.avatar)}if(i.button!=null){if(typeof i.button!="object")throw TypeError(".bilibili.polymer.app.search.v1.Mask.button: object expected");n.button=u.bilibili.polymer.app.search.v1.Button.fromObject(i.button)}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.avatar=null,o.button=null),i.avatar!=null&&i.hasOwnProperty("avatar")&&(o.avatar=u.bilibili.polymer.app.search.v1.Avatar.toObject(i.avatar,n)),i.button!=null&&i.hasOwnProperty("button")&&(o.button=u.bilibili.polymer.app.search.v1.Button.toObject(i.button,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.Mask"},l}(),e.Button=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.text=i.string();break}case 2:{a.param=i.string();break}case 3:{a.uri=i.string();break}case 4:{a.event=i.string();break}case 5:{a.selected=i.int32();break}case 6:{a.type=i.int32();break}case 7:{a.eventV2=i.string();break}case 8:{a.relation=u.bilibili.polymer.app.search.v1.Relation.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.Button)return i;let n=new u.bilibili.polymer.app.search.v1.Button;if(i.text!=null&&(n.text=String(i.text)),i.param!=null&&(n.param=String(i.param)),i.uri!=null&&(n.uri=String(i.uri)),i.event!=null&&(n.event=String(i.event)),i.selected!=null&&(n.selected=i.selected|0),i.type!=null&&(n.type=i.type|0),i.eventV2!=null&&(n.eventV2=String(i.eventV2)),i.relation!=null){if(typeof i.relation!="object")throw TypeError(".bilibili.polymer.app.search.v1.Button.relation: object expected");n.relation=u.bilibili.polymer.app.search.v1.Relation.fromObject(i.relation)}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.text="",o.param="",o.uri="",o.event="",o.selected=0,o.type=0,o.eventV2="",o.relation=null),i.text!=null&&i.hasOwnProperty("text")&&(o.text=i.text),i.param!=null&&i.hasOwnProperty("param")&&(o.param=i.param),i.uri!=null&&i.hasOwnProperty("uri")&&(o.uri=i.uri),i.event!=null&&i.hasOwnProperty("event")&&(o.event=i.event),i.selected!=null&&i.hasOwnProperty("selected")&&(o.selected=i.selected),i.type!=null&&i.hasOwnProperty("type")&&(o.type=i.type),i.eventV2!=null&&i.hasOwnProperty("eventV2")&&(o.eventV2=i.eventV2),i.relation!=null&&i.hasOwnProperty("relation")&&(o.relation=u.bilibili.polymer.app.search.v1.Relation.toObject(i.relation,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.Button"},l}(),e.ThreePoint2=function(){function l(t){if(this.dislikeReasons=[],this.feedbacks=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.dislikeReasons&&a.dislikeReasons.length||(a.dislikeReasons=[]),a.dislikeReasons.push(u.bilibili.polymer.app.search.v1.DislikeReason.decode(i,i.uint32()));break}case 2:{a.feedbacks&&a.feedbacks.length||(a.feedbacks=[]),a.feedbacks.push(u.bilibili.polymer.app.search.v1.DislikeReason.decode(i,i.uint32()));break}case 3:{a.watchLater=i.int32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.ThreePoint2)return i;let n=new u.bilibili.polymer.app.search.v1.ThreePoint2;if(i.dislikeReasons){if(!Array.isArray(i.dislikeReasons))throw TypeError(".bilibili.polymer.app.search.v1.ThreePoint2.dislikeReasons: array expected");n.dislikeReasons=[];for(let o=0;o>>3){case 1:{a.id=i.int32();break}case 2:{a.name=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.DislikeReason)return i;let n=new u.bilibili.polymer.app.search.v1.DislikeReason;return i.id!=null&&(n.id=i.id|0),i.name!=null&&(n.name=String(i.name)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.id=0,o.name=""),i.id!=null&&i.hasOwnProperty("id")&&(o.id=i.id),i.name!=null&&i.hasOwnProperty("name")&&(o.name=i.name),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.DislikeReason"},l}(),e.PlayerArgs=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.isLive=i.int32();break}case 2:{a.aid=i.int64();break}case 3:{a.cid=i.int64();break}case 4:{a.subType=i.int32();break}case 5:{a.roomId=i.int64();break}case 7:{a.epId=i.int64();break}case 8:{a.isPreview=i.int32();break}case 9:{a.type=i.string();break}case 10:{a.duration=i.int32();break}case 11:{a.seasonId=i.int64();break}case 12:{a.reportRequiredPlayDuration=i.int32();break}case 13:{a.reportRequiredTime=i.int32();break}case 14:{a.manualPlay=i.int32();break}case 15:{a.hidePlayButton=i.bool();break}case 16:{a.contentMode=i.int32();break}case 17:{a.reportHistory=i.int32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.PlayerArgs)return i;let n=new u.bilibili.polymer.app.search.v1.PlayerArgs;return i.isLive!=null&&(n.isLive=i.isLive|0),i.aid!=null&&(r.Long?(n.aid=r.Long.fromValue(i.aid)).unsigned=!1:typeof i.aid=="string"?n.aid=parseInt(i.aid,10):typeof i.aid=="number"?n.aid=i.aid:typeof i.aid=="object"&&(n.aid=new r.LongBits(i.aid.low>>>0,i.aid.high>>>0).toNumber())),i.cid!=null&&(r.Long?(n.cid=r.Long.fromValue(i.cid)).unsigned=!1:typeof i.cid=="string"?n.cid=parseInt(i.cid,10):typeof i.cid=="number"?n.cid=i.cid:typeof i.cid=="object"&&(n.cid=new r.LongBits(i.cid.low>>>0,i.cid.high>>>0).toNumber())),i.subType!=null&&(n.subType=i.subType|0),i.roomId!=null&&(r.Long?(n.roomId=r.Long.fromValue(i.roomId)).unsigned=!1:typeof i.roomId=="string"?n.roomId=parseInt(i.roomId,10):typeof i.roomId=="number"?n.roomId=i.roomId:typeof i.roomId=="object"&&(n.roomId=new r.LongBits(i.roomId.low>>>0,i.roomId.high>>>0).toNumber())),i.epId!=null&&(r.Long?(n.epId=r.Long.fromValue(i.epId)).unsigned=!1:typeof i.epId=="string"?n.epId=parseInt(i.epId,10):typeof i.epId=="number"?n.epId=i.epId:typeof i.epId=="object"&&(n.epId=new r.LongBits(i.epId.low>>>0,i.epId.high>>>0).toNumber())),i.isPreview!=null&&(n.isPreview=i.isPreview|0),i.type!=null&&(n.type=String(i.type)),i.duration!=null&&(n.duration=i.duration|0),i.seasonId!=null&&(r.Long?(n.seasonId=r.Long.fromValue(i.seasonId)).unsigned=!1:typeof i.seasonId=="string"?n.seasonId=parseInt(i.seasonId,10):typeof i.seasonId=="number"?n.seasonId=i.seasonId:typeof i.seasonId=="object"&&(n.seasonId=new r.LongBits(i.seasonId.low>>>0,i.seasonId.high>>>0).toNumber())),i.reportRequiredPlayDuration!=null&&(n.reportRequiredPlayDuration=i.reportRequiredPlayDuration|0),i.reportRequiredTime!=null&&(n.reportRequiredTime=i.reportRequiredTime|0),i.manualPlay!=null&&(n.manualPlay=i.manualPlay|0),i.hidePlayButton!=null&&(n.hidePlayButton=!!i.hidePlayButton),i.contentMode!=null&&(n.contentMode=i.contentMode|0),i.reportHistory!=null&&(n.reportHistory=i.reportHistory|0),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(o.isLive=0,r.Long){let a=new r.Long(0,0,!1);o.aid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.aid=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.cid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.cid=n.longs===String?"0":0;if(o.subType=0,r.Long){let a=new r.Long(0,0,!1);o.roomId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.roomId=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.epId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.epId=n.longs===String?"0":0;if(o.isPreview=0,o.type="",o.duration=0,r.Long){let a=new r.Long(0,0,!1);o.seasonId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.seasonId=n.longs===String?"0":0;o.reportRequiredPlayDuration=0,o.reportRequiredTime=0,o.manualPlay=0,o.hidePlayButton=!1,o.contentMode=0,o.reportHistory=0}return i.isLive!=null&&i.hasOwnProperty("isLive")&&(o.isLive=i.isLive),i.aid!=null&&i.hasOwnProperty("aid")&&(typeof i.aid=="number"?o.aid=n.longs===String?String(i.aid):i.aid:o.aid=n.longs===String?r.Long.prototype.toString.call(i.aid):n.longs===Number?new r.LongBits(i.aid.low>>>0,i.aid.high>>>0).toNumber():i.aid),i.cid!=null&&i.hasOwnProperty("cid")&&(typeof i.cid=="number"?o.cid=n.longs===String?String(i.cid):i.cid:o.cid=n.longs===String?r.Long.prototype.toString.call(i.cid):n.longs===Number?new r.LongBits(i.cid.low>>>0,i.cid.high>>>0).toNumber():i.cid),i.subType!=null&&i.hasOwnProperty("subType")&&(o.subType=i.subType),i.roomId!=null&&i.hasOwnProperty("roomId")&&(typeof i.roomId=="number"?o.roomId=n.longs===String?String(i.roomId):i.roomId:o.roomId=n.longs===String?r.Long.prototype.toString.call(i.roomId):n.longs===Number?new r.LongBits(i.roomId.low>>>0,i.roomId.high>>>0).toNumber():i.roomId),i.epId!=null&&i.hasOwnProperty("epId")&&(typeof i.epId=="number"?o.epId=n.longs===String?String(i.epId):i.epId:o.epId=n.longs===String?r.Long.prototype.toString.call(i.epId):n.longs===Number?new r.LongBits(i.epId.low>>>0,i.epId.high>>>0).toNumber():i.epId),i.isPreview!=null&&i.hasOwnProperty("isPreview")&&(o.isPreview=i.isPreview),i.type!=null&&i.hasOwnProperty("type")&&(o.type=i.type),i.duration!=null&&i.hasOwnProperty("duration")&&(o.duration=i.duration),i.seasonId!=null&&i.hasOwnProperty("seasonId")&&(typeof i.seasonId=="number"?o.seasonId=n.longs===String?String(i.seasonId):i.seasonId:o.seasonId=n.longs===String?r.Long.prototype.toString.call(i.seasonId):n.longs===Number?new r.LongBits(i.seasonId.low>>>0,i.seasonId.high>>>0).toNumber():i.seasonId),i.reportRequiredPlayDuration!=null&&i.hasOwnProperty("reportRequiredPlayDuration")&&(o.reportRequiredPlayDuration=i.reportRequiredPlayDuration),i.reportRequiredTime!=null&&i.hasOwnProperty("reportRequiredTime")&&(o.reportRequiredTime=i.reportRequiredTime),i.manualPlay!=null&&i.hasOwnProperty("manualPlay")&&(o.manualPlay=i.manualPlay),i.hidePlayButton!=null&&i.hasOwnProperty("hidePlayButton")&&(o.hidePlayButton=i.hidePlayButton),i.contentMode!=null&&i.hasOwnProperty("contentMode")&&(o.contentMode=i.contentMode),i.reportHistory!=null&&i.hasOwnProperty("reportHistory")&&(o.reportHistory=i.reportHistory),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.PlayerArgs"},l}(),e.RightTopLiveBadge=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.liveStatus=i.int32();break}case 2:{a.inLive=u.bilibili.polymer.app.search.v1.LiveBadgeResource.decode(i,i.uint32());break}case 3:{a.liveStatsDesc=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.RightTopLiveBadge)return i;let n=new u.bilibili.polymer.app.search.v1.RightTopLiveBadge;if(i.liveStatus!=null&&(n.liveStatus=i.liveStatus|0),i.inLive!=null){if(typeof i.inLive!="object")throw TypeError(".bilibili.polymer.app.search.v1.RightTopLiveBadge.inLive: object expected");n.inLive=u.bilibili.polymer.app.search.v1.LiveBadgeResource.fromObject(i.inLive)}return i.liveStatsDesc!=null&&(n.liveStatsDesc=String(i.liveStatsDesc)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.liveStatus=0,o.inLive=null,o.liveStatsDesc=""),i.liveStatus!=null&&i.hasOwnProperty("liveStatus")&&(o.liveStatus=i.liveStatus),i.inLive!=null&&i.hasOwnProperty("inLive")&&(o.inLive=u.bilibili.polymer.app.search.v1.LiveBadgeResource.toObject(i.inLive,n)),i.liveStatsDesc!=null&&i.hasOwnProperty("liveStatsDesc")&&(o.liveStatsDesc=i.liveStatsDesc),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.RightTopLiveBadge"},l}(),e.InlineProgressBar=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.iconDrag=i.string();break}case 2:{a.iconDragHash=i.string();break}case 3:{a.iconStop=i.string();break}case 4:{a.iconStopHash=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.InlineProgressBar)return i;let n=new u.bilibili.polymer.app.search.v1.InlineProgressBar;return i.iconDrag!=null&&(n.iconDrag=String(i.iconDrag)),i.iconDragHash!=null&&(n.iconDragHash=String(i.iconDragHash)),i.iconStop!=null&&(n.iconStop=String(i.iconStop)),i.iconStopHash!=null&&(n.iconStopHash=String(i.iconStopHash)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.iconDrag="",o.iconDragHash="",o.iconStop="",o.iconStopHash=""),i.iconDrag!=null&&i.hasOwnProperty("iconDrag")&&(o.iconDrag=i.iconDrag),i.iconDragHash!=null&&i.hasOwnProperty("iconDragHash")&&(o.iconDragHash=i.iconDragHash),i.iconStop!=null&&i.hasOwnProperty("iconStop")&&(o.iconStop=i.iconStop),i.iconStopHash!=null&&i.hasOwnProperty("iconStopHash")&&(o.iconStopHash=i.iconStopHash),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.InlineProgressBar"},l}(),e.LiveBadgeResource=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.text=i.string();break}case 2:{a.animationUrl=i.string();break}case 3:{a.animationUrlHash=i.string();break}case 4:{a.backgroundColorLight=i.string();break}case 5:{a.backgroundColorNight=i.string();break}case 6:{a.alphaLight=i.int64();break}case 7:{a.alphaNight=i.int64();break}case 8:{a.fontColor=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.LiveBadgeResource)return i;let n=new u.bilibili.polymer.app.search.v1.LiveBadgeResource;return i.text!=null&&(n.text=String(i.text)),i.animationUrl!=null&&(n.animationUrl=String(i.animationUrl)),i.animationUrlHash!=null&&(n.animationUrlHash=String(i.animationUrlHash)),i.backgroundColorLight!=null&&(n.backgroundColorLight=String(i.backgroundColorLight)),i.backgroundColorNight!=null&&(n.backgroundColorNight=String(i.backgroundColorNight)),i.alphaLight!=null&&(r.Long?(n.alphaLight=r.Long.fromValue(i.alphaLight)).unsigned=!1:typeof i.alphaLight=="string"?n.alphaLight=parseInt(i.alphaLight,10):typeof i.alphaLight=="number"?n.alphaLight=i.alphaLight:typeof i.alphaLight=="object"&&(n.alphaLight=new r.LongBits(i.alphaLight.low>>>0,i.alphaLight.high>>>0).toNumber())),i.alphaNight!=null&&(r.Long?(n.alphaNight=r.Long.fromValue(i.alphaNight)).unsigned=!1:typeof i.alphaNight=="string"?n.alphaNight=parseInt(i.alphaNight,10):typeof i.alphaNight=="number"?n.alphaNight=i.alphaNight:typeof i.alphaNight=="object"&&(n.alphaNight=new r.LongBits(i.alphaNight.low>>>0,i.alphaNight.high>>>0).toNumber())),i.fontColor!=null&&(n.fontColor=String(i.fontColor)),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(o.text="",o.animationUrl="",o.animationUrlHash="",o.backgroundColorLight="",o.backgroundColorNight="",r.Long){let a=new r.Long(0,0,!1);o.alphaLight=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.alphaLight=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.alphaNight=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.alphaNight=n.longs===String?"0":0;o.fontColor=""}return i.text!=null&&i.hasOwnProperty("text")&&(o.text=i.text),i.animationUrl!=null&&i.hasOwnProperty("animationUrl")&&(o.animationUrl=i.animationUrl),i.animationUrlHash!=null&&i.hasOwnProperty("animationUrlHash")&&(o.animationUrlHash=i.animationUrlHash),i.backgroundColorLight!=null&&i.hasOwnProperty("backgroundColorLight")&&(o.backgroundColorLight=i.backgroundColorLight),i.backgroundColorNight!=null&&i.hasOwnProperty("backgroundColorNight")&&(o.backgroundColorNight=i.backgroundColorNight),i.alphaLight!=null&&i.hasOwnProperty("alphaLight")&&(typeof i.alphaLight=="number"?o.alphaLight=n.longs===String?String(i.alphaLight):i.alphaLight:o.alphaLight=n.longs===String?r.Long.prototype.toString.call(i.alphaLight):n.longs===Number?new r.LongBits(i.alphaLight.low>>>0,i.alphaLight.high>>>0).toNumber():i.alphaLight),i.alphaNight!=null&&i.hasOwnProperty("alphaNight")&&(typeof i.alphaNight=="number"?o.alphaNight=n.longs===String?String(i.alphaNight):i.alphaNight:o.alphaNight=n.longs===String?r.Long.prototype.toString.call(i.alphaNight):n.longs===Number?new r.LongBits(i.alphaNight.low>>>0,i.alphaNight.high>>>0).toNumber():i.alphaNight),i.fontColor!=null&&i.hasOwnProperty("fontColor")&&(o.fontColor=i.fontColor),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.LiveBadgeResource"},l}(),e.TrafficConfig=function(){function l(t){if(this.options=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.title=i.string();break}case 2:{a.options&&a.options.length||(a.options=[]),a.options.push(u.bilibili.polymer.app.search.v1.TrafficConfigOption.decode(i,i.uint32()));break}case 3:{a.defaultOptionId=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.TrafficConfig)return i;let n=new u.bilibili.polymer.app.search.v1.TrafficConfig;if(i.title!=null&&(n.title=String(i.title)),i.options){if(!Array.isArray(i.options))throw TypeError(".bilibili.polymer.app.search.v1.TrafficConfig.options: array expected");n.options=[];for(let o=0;o>>0,i.defaultOptionId.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if((n.arrays||n.defaults)&&(o.options=[]),n.defaults)if(o.title="",r.Long){let a=new r.Long(0,0,!1);o.defaultOptionId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.defaultOptionId=n.longs===String?"0":0;if(i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.options&&i.options.length){o.options=[];for(let a=0;a>>0,i.defaultOptionId.high>>>0).toNumber():i.defaultOptionId),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.TrafficConfig"},l}(),e.TrafficConfigOption=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.id=i.int32();break}case 2:{a.text=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.TrafficConfigOption)return i;let n=new u.bilibili.polymer.app.search.v1.TrafficConfigOption;return i.id!=null&&(n.id=i.id|0),i.text!=null&&(n.text=String(i.text)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.id=0,o.text=""),i.id!=null&&i.hasOwnProperty("id")&&(o.id=i.id),i.text!=null&&i.hasOwnProperty("text")&&(o.text=i.text),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.TrafficConfigOption"},l}(),e.CloudGameParams=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.sourceFrom=i.int64();break}case 2:{a.scene=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.CloudGameParams)return i;let n=new u.bilibili.polymer.app.search.v1.CloudGameParams;return i.sourceFrom!=null&&(r.Long?(n.sourceFrom=r.Long.fromValue(i.sourceFrom)).unsigned=!1:typeof i.sourceFrom=="string"?n.sourceFrom=parseInt(i.sourceFrom,10):typeof i.sourceFrom=="number"?n.sourceFrom=i.sourceFrom:typeof i.sourceFrom=="object"&&(n.sourceFrom=new r.LongBits(i.sourceFrom.low>>>0,i.sourceFrom.high>>>0).toNumber())),i.scene!=null&&(n.scene=String(i.scene)),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.sourceFrom=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.sourceFrom=n.longs===String?"0":0;o.scene=""}return i.sourceFrom!=null&&i.hasOwnProperty("sourceFrom")&&(typeof i.sourceFrom=="number"?o.sourceFrom=n.longs===String?String(i.sourceFrom):i.sourceFrom:o.sourceFrom=n.longs===String?r.Long.prototype.toString.call(i.sourceFrom):n.longs===Number?new r.LongBits(i.sourceFrom.low>>>0,i.sourceFrom.high>>>0).toNumber():i.sourceFrom),i.scene!=null&&i.hasOwnProperty("scene")&&(o.scene=i.scene),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.CloudGameParams"},l}(),e.RankInfo=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.searchNightIconUrl=i.string();break}case 2:{a.searchDayIconUrl=i.string();break}case 3:{a.searchBkgNightColor=i.string();break}case 4:{a.searchBkgDayColor=i.string();break}case 5:{a.searchFontNightColor=i.string();break}case 6:{a.searchFontDayColor=i.string();break}case 7:{a.rankContent=i.string();break}case 8:{a.rankLink=i.string();break}case 9:{a.gameRank=i.int64();break}case 10:{a.rankType=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.RankInfo)return i;let n=new u.bilibili.polymer.app.search.v1.RankInfo;return i.searchNightIconUrl!=null&&(n.searchNightIconUrl=String(i.searchNightIconUrl)),i.searchDayIconUrl!=null&&(n.searchDayIconUrl=String(i.searchDayIconUrl)),i.searchBkgNightColor!=null&&(n.searchBkgNightColor=String(i.searchBkgNightColor)),i.searchBkgDayColor!=null&&(n.searchBkgDayColor=String(i.searchBkgDayColor)),i.searchFontNightColor!=null&&(n.searchFontNightColor=String(i.searchFontNightColor)),i.searchFontDayColor!=null&&(n.searchFontDayColor=String(i.searchFontDayColor)),i.rankContent!=null&&(n.rankContent=String(i.rankContent)),i.rankLink!=null&&(n.rankLink=String(i.rankLink)),i.gameRank!=null&&(r.Long?(n.gameRank=r.Long.fromValue(i.gameRank)).unsigned=!1:typeof i.gameRank=="string"?n.gameRank=parseInt(i.gameRank,10):typeof i.gameRank=="number"?n.gameRank=i.gameRank:typeof i.gameRank=="object"&&(n.gameRank=new r.LongBits(i.gameRank.low>>>0,i.gameRank.high>>>0).toNumber())),i.rankType!=null&&(r.Long?(n.rankType=r.Long.fromValue(i.rankType)).unsigned=!1:typeof i.rankType=="string"?n.rankType=parseInt(i.rankType,10):typeof i.rankType=="number"?n.rankType=i.rankType:typeof i.rankType=="object"&&(n.rankType=new r.LongBits(i.rankType.low>>>0,i.rankType.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(o.searchNightIconUrl="",o.searchDayIconUrl="",o.searchBkgNightColor="",o.searchBkgDayColor="",o.searchFontNightColor="",o.searchFontDayColor="",o.rankContent="",o.rankLink="",r.Long){let a=new r.Long(0,0,!1);o.gameRank=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.gameRank=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.rankType=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.rankType=n.longs===String?"0":0}return i.searchNightIconUrl!=null&&i.hasOwnProperty("searchNightIconUrl")&&(o.searchNightIconUrl=i.searchNightIconUrl),i.searchDayIconUrl!=null&&i.hasOwnProperty("searchDayIconUrl")&&(o.searchDayIconUrl=i.searchDayIconUrl),i.searchBkgNightColor!=null&&i.hasOwnProperty("searchBkgNightColor")&&(o.searchBkgNightColor=i.searchBkgNightColor),i.searchBkgDayColor!=null&&i.hasOwnProperty("searchBkgDayColor")&&(o.searchBkgDayColor=i.searchBkgDayColor),i.searchFontNightColor!=null&&i.hasOwnProperty("searchFontNightColor")&&(o.searchFontNightColor=i.searchFontNightColor),i.searchFontDayColor!=null&&i.hasOwnProperty("searchFontDayColor")&&(o.searchFontDayColor=i.searchFontDayColor),i.rankContent!=null&&i.hasOwnProperty("rankContent")&&(o.rankContent=i.rankContent),i.rankLink!=null&&i.hasOwnProperty("rankLink")&&(o.rankLink=i.rankLink),i.gameRank!=null&&i.hasOwnProperty("gameRank")&&(typeof i.gameRank=="number"?o.gameRank=n.longs===String?String(i.gameRank):i.gameRank:o.gameRank=n.longs===String?r.Long.prototype.toString.call(i.gameRank):n.longs===Number?new r.LongBits(i.gameRank.low>>>0,i.gameRank.high>>>0).toNumber():i.gameRank),i.rankType!=null&&i.hasOwnProperty("rankType")&&(typeof i.rankType=="number"?o.rankType=n.longs===String?String(i.rankType):i.rankType:o.rankType=n.longs===String?r.Long.prototype.toString.call(i.rankType):n.longs===Number?new r.LongBits(i.rankType.low>>>0,i.rankType.high>>>0).toNumber():i.rankType),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.RankInfo"},l}(),e.EpisodeNew=function(){function l(t){if(this.badges=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.title=i.string();break}case 2:{a.uri=i.string();break}case 3:{a.param=i.string();break}case 4:{a.isNew=i.int32();break}case 5:{a.badges&&a.badges.length||(a.badges=[]),a.badges.push(u.bilibili.polymer.app.search.v1.ReasonStyle.decode(i,i.uint32()));break}case 6:{a.type=i.int32();break}case 7:{a.position=i.int32();break}case 8:{a.cover=i.string();break}case 9:{a.label=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.EpisodeNew)return i;let n=new u.bilibili.polymer.app.search.v1.EpisodeNew;if(i.title!=null&&(n.title=String(i.title)),i.uri!=null&&(n.uri=String(i.uri)),i.param!=null&&(n.param=String(i.param)),i.isNew!=null&&(n.isNew=i.isNew|0),i.badges){if(!Array.isArray(i.badges))throw TypeError(".bilibili.polymer.app.search.v1.EpisodeNew.badges: array expected");n.badges=[];for(let o=0;o>>3){case 1:{a.content=i.string();break}case 2:{a.uri=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.CheckMore)return i;let n=new u.bilibili.polymer.app.search.v1.CheckMore;return i.content!=null&&(n.content=String(i.content)),i.uri!=null&&(n.uri=String(i.uri)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.content="",o.uri=""),i.content!=null&&i.hasOwnProperty("content")&&(o.content=i.content),i.uri!=null&&i.hasOwnProperty("uri")&&(o.uri=i.uri),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.CheckMore"},l}(),e.FollowButton=function(){function l(t){if(this.texts={},t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.icon=i.string();break}case 2:{a.texts===r.emptyObject&&(a.texts={});let g=i.uint32()+i.pos;for(y="",s="";i.pos>>3){case 1:y=i.string();break;case 2:s=i.string();break;default:i.skipType(S&7);break}}a.texts[y]=s;break}case 3:{a.statusReport=i.string();break}default:i.skipType(v&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.FollowButton)return i;let n=new u.bilibili.polymer.app.search.v1.FollowButton;if(i.icon!=null&&(n.icon=String(i.icon)),i.texts){if(typeof i.texts!="object")throw TypeError(".bilibili.polymer.app.search.v1.FollowButton.texts: object expected");n.texts={};for(let o=Object.keys(i.texts),a=0;a>>3){case 1:{a.jumpUrl=i.string();break}case 2:{a.text=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.PurchaseButton)return i;let n=new u.bilibili.polymer.app.search.v1.PurchaseButton;return i.jumpUrl!=null&&(n.jumpUrl=String(i.jumpUrl)),i.text!=null&&(n.text=String(i.text)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.jumpUrl="",o.text=""),i.jumpUrl!=null&&i.hasOwnProperty("jumpUrl")&&(o.jumpUrl=i.jumpUrl),i.text!=null&&i.hasOwnProperty("text")&&(o.text=i.text),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.PurchaseButton"},l}(),e.WatchButton=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.title=i.string();break}case 2:{a.link=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.WatchButton)return i;let n=new u.bilibili.polymer.app.search.v1.WatchButton;return i.title!=null&&(n.title=String(i.title)),i.link!=null&&(n.link=String(i.link)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.title="",o.link=""),i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.link!=null&&i.hasOwnProperty("link")&&(o.link=i.link),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.WatchButton"},l}(),e.RcmdReason=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.content=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.RcmdReason)return i;let n=new u.bilibili.polymer.app.search.v1.RcmdReason;return i.content!=null&&(n.content=String(i.content)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.content=""),i.content!=null&&i.hasOwnProperty("content")&&(o.content=i.content),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.RcmdReason"},l}(),e.WatchedShow=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.switch=i.bool();break}case 2:{a.num=i.int64();break}case 3:{a.textSmall=i.string();break}case 4:{a.textLarge=i.string();break}case 5:{a.icon=i.string();break}case 6:{a.iconLocation=i.string();break}case 7:{a.iconWeb=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.WatchedShow)return i;let n=new u.bilibili.polymer.app.search.v1.WatchedShow;return i.switch!=null&&(n.switch=!!i.switch),i.num!=null&&(r.Long?(n.num=r.Long.fromValue(i.num)).unsigned=!1:typeof i.num=="string"?n.num=parseInt(i.num,10):typeof i.num=="number"?n.num=i.num:typeof i.num=="object"&&(n.num=new r.LongBits(i.num.low>>>0,i.num.high>>>0).toNumber())),i.textSmall!=null&&(n.textSmall=String(i.textSmall)),i.textLarge!=null&&(n.textLarge=String(i.textLarge)),i.icon!=null&&(n.icon=String(i.icon)),i.iconLocation!=null&&(n.iconLocation=String(i.iconLocation)),i.iconWeb!=null&&(n.iconWeb=String(i.iconWeb)),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(o.switch=!1,r.Long){let a=new r.Long(0,0,!1);o.num=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.num=n.longs===String?"0":0;o.textSmall="",o.textLarge="",o.icon="",o.iconLocation="",o.iconWeb=""}return i.switch!=null&&i.hasOwnProperty("switch")&&(o.switch=i.switch),i.num!=null&&i.hasOwnProperty("num")&&(typeof i.num=="number"?o.num=n.longs===String?String(i.num):i.num:o.num=n.longs===String?r.Long.prototype.toString.call(i.num):n.longs===Number?new r.LongBits(i.num.low>>>0,i.num.high>>>0).toNumber():i.num),i.textSmall!=null&&i.hasOwnProperty("textSmall")&&(o.textSmall=i.textSmall),i.textLarge!=null&&i.hasOwnProperty("textLarge")&&(o.textLarge=i.textLarge),i.icon!=null&&i.hasOwnProperty("icon")&&(o.icon=i.icon),i.iconLocation!=null&&i.hasOwnProperty("iconLocation")&&(o.iconLocation=i.iconLocation),i.iconWeb!=null&&i.hasOwnProperty("iconWeb")&&(o.iconWeb=i.iconWeb),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.WatchedShow"},l}(),e.Notice=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.mid=i.int64();break}case 2:{a.noticeId=i.int64();break}case 3:{a.content=i.string();break}case 4:{a.url=i.string();break}case 5:{a.noticeType=i.int64();break}case 6:{a.icon=i.string();break}case 7:{a.iconNight=i.string();break}case 8:{a.textColor=i.string();break}case 9:{a.textColorNight=i.string();break}case 10:{a.bgColor=i.string();break}case 11:{a.bgColorNight=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.Notice)return i;let n=new u.bilibili.polymer.app.search.v1.Notice;return i.mid!=null&&(r.Long?(n.mid=r.Long.fromValue(i.mid)).unsigned=!1:typeof i.mid=="string"?n.mid=parseInt(i.mid,10):typeof i.mid=="number"?n.mid=i.mid:typeof i.mid=="object"&&(n.mid=new r.LongBits(i.mid.low>>>0,i.mid.high>>>0).toNumber())),i.noticeId!=null&&(r.Long?(n.noticeId=r.Long.fromValue(i.noticeId)).unsigned=!1:typeof i.noticeId=="string"?n.noticeId=parseInt(i.noticeId,10):typeof i.noticeId=="number"?n.noticeId=i.noticeId:typeof i.noticeId=="object"&&(n.noticeId=new r.LongBits(i.noticeId.low>>>0,i.noticeId.high>>>0).toNumber())),i.content!=null&&(n.content=String(i.content)),i.url!=null&&(n.url=String(i.url)),i.noticeType!=null&&(r.Long?(n.noticeType=r.Long.fromValue(i.noticeType)).unsigned=!1:typeof i.noticeType=="string"?n.noticeType=parseInt(i.noticeType,10):typeof i.noticeType=="number"?n.noticeType=i.noticeType:typeof i.noticeType=="object"&&(n.noticeType=new r.LongBits(i.noticeType.low>>>0,i.noticeType.high>>>0).toNumber())),i.icon!=null&&(n.icon=String(i.icon)),i.iconNight!=null&&(n.iconNight=String(i.iconNight)),i.textColor!=null&&(n.textColor=String(i.textColor)),i.textColorNight!=null&&(n.textColorNight=String(i.textColorNight)),i.bgColor!=null&&(n.bgColor=String(i.bgColor)),i.bgColorNight!=null&&(n.bgColorNight=String(i.bgColorNight)),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.mid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.mid=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.noticeId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.noticeId=n.longs===String?"0":0;if(o.content="",o.url="",r.Long){let a=new r.Long(0,0,!1);o.noticeType=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.noticeType=n.longs===String?"0":0;o.icon="",o.iconNight="",o.textColor="",o.textColorNight="",o.bgColor="",o.bgColorNight=""}return i.mid!=null&&i.hasOwnProperty("mid")&&(typeof i.mid=="number"?o.mid=n.longs===String?String(i.mid):i.mid:o.mid=n.longs===String?r.Long.prototype.toString.call(i.mid):n.longs===Number?new r.LongBits(i.mid.low>>>0,i.mid.high>>>0).toNumber():i.mid),i.noticeId!=null&&i.hasOwnProperty("noticeId")&&(typeof i.noticeId=="number"?o.noticeId=n.longs===String?String(i.noticeId):i.noticeId:o.noticeId=n.longs===String?r.Long.prototype.toString.call(i.noticeId):n.longs===Number?new r.LongBits(i.noticeId.low>>>0,i.noticeId.high>>>0).toNumber():i.noticeId),i.content!=null&&i.hasOwnProperty("content")&&(o.content=i.content),i.url!=null&&i.hasOwnProperty("url")&&(o.url=i.url),i.noticeType!=null&&i.hasOwnProperty("noticeType")&&(typeof i.noticeType=="number"?o.noticeType=n.longs===String?String(i.noticeType):i.noticeType:o.noticeType=n.longs===String?r.Long.prototype.toString.call(i.noticeType):n.longs===Number?new r.LongBits(i.noticeType.low>>>0,i.noticeType.high>>>0).toNumber():i.noticeType),i.icon!=null&&i.hasOwnProperty("icon")&&(o.icon=i.icon),i.iconNight!=null&&i.hasOwnProperty("iconNight")&&(o.iconNight=i.iconNight),i.textColor!=null&&i.hasOwnProperty("textColor")&&(o.textColor=i.textColor),i.textColorNight!=null&&i.hasOwnProperty("textColorNight")&&(o.textColorNight=i.textColorNight),i.bgColor!=null&&i.hasOwnProperty("bgColor")&&(o.bgColor=i.bgColor),i.bgColorNight!=null&&i.hasOwnProperty("bgColorNight")&&(o.bgColorNight=i.bgColorNight),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.Notice"},l}(),e.Background=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.show=i.int32();break}case 2:{a.bgPicUrl=i.string();break}case 3:{a.fgPicUrl=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.Background)return i;let n=new u.bilibili.polymer.app.search.v1.Background;return i.show!=null&&(n.show=i.show|0),i.bgPicUrl!=null&&(n.bgPicUrl=String(i.bgPicUrl)),i.fgPicUrl!=null&&(n.fgPicUrl=String(i.fgPicUrl)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.show=0,o.bgPicUrl="",o.fgPicUrl=""),i.show!=null&&i.hasOwnProperty("show")&&(o.show=i.show),i.bgPicUrl!=null&&i.hasOwnProperty("bgPicUrl")&&(o.bgPicUrl=i.bgPicUrl),i.fgPicUrl!=null&&i.hasOwnProperty("fgPicUrl")&&(o.fgPicUrl=i.fgPicUrl),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.Background"},l}(),e.NftFaceIcon=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.regionType=i.int32();break}case 2:{a.icon=i.string();break}case 3:{a.showStatus=i.int32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.NftFaceIcon)return i;let n=new u.bilibili.polymer.app.search.v1.NftFaceIcon;return i.regionType!=null&&(n.regionType=i.regionType|0),i.icon!=null&&(n.icon=String(i.icon)),i.showStatus!=null&&(n.showStatus=i.showStatus|0),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.regionType=0,o.icon="",o.showStatus=0),i.regionType!=null&&i.hasOwnProperty("regionType")&&(o.regionType=i.regionType),i.icon!=null&&i.hasOwnProperty("icon")&&(o.icon=i.icon),i.showStatus!=null&&i.hasOwnProperty("showStatus")&&(o.showStatus=i.showStatus),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.NftFaceIcon"},l}(),e.VipInfo=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.type=i.int32();break}case 2:{a.status=i.int32();break}case 3:{a.dueDate=i.int64();break}case 4:{a.vipPayType=i.int32();break}case 5:{a.themeType=i.int32();break}case 6:{a.label=u.bilibili.polymer.app.search.v1.VipLabel.decode(i,i.uint32());break}case 7:{a.avatarSubscript=i.int32();break}case 8:{a.nicknameColor=i.string();break}case 9:{a.role=i.int64();break}case 10:{a.avatarSubscriptUrl=i.string();break}case 11:{a.tvVipStatus=i.int32();break}case 12:{a.tvVipPayType=i.int32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.VipInfo)return i;let n=new u.bilibili.polymer.app.search.v1.VipInfo;if(i.type!=null&&(n.type=i.type|0),i.status!=null&&(n.status=i.status|0),i.dueDate!=null&&(r.Long?(n.dueDate=r.Long.fromValue(i.dueDate)).unsigned=!1:typeof i.dueDate=="string"?n.dueDate=parseInt(i.dueDate,10):typeof i.dueDate=="number"?n.dueDate=i.dueDate:typeof i.dueDate=="object"&&(n.dueDate=new r.LongBits(i.dueDate.low>>>0,i.dueDate.high>>>0).toNumber())),i.vipPayType!=null&&(n.vipPayType=i.vipPayType|0),i.themeType!=null&&(n.themeType=i.themeType|0),i.label!=null){if(typeof i.label!="object")throw TypeError(".bilibili.polymer.app.search.v1.VipInfo.label: object expected");n.label=u.bilibili.polymer.app.search.v1.VipLabel.fromObject(i.label)}return i.avatarSubscript!=null&&(n.avatarSubscript=i.avatarSubscript|0),i.nicknameColor!=null&&(n.nicknameColor=String(i.nicknameColor)),i.role!=null&&(r.Long?(n.role=r.Long.fromValue(i.role)).unsigned=!1:typeof i.role=="string"?n.role=parseInt(i.role,10):typeof i.role=="number"?n.role=i.role:typeof i.role=="object"&&(n.role=new r.LongBits(i.role.low>>>0,i.role.high>>>0).toNumber())),i.avatarSubscriptUrl!=null&&(n.avatarSubscriptUrl=String(i.avatarSubscriptUrl)),i.tvVipStatus!=null&&(n.tvVipStatus=i.tvVipStatus|0),i.tvVipPayType!=null&&(n.tvVipPayType=i.tvVipPayType|0),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(o.type=0,o.status=0,r.Long){let a=new r.Long(0,0,!1);o.dueDate=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.dueDate=n.longs===String?"0":0;if(o.vipPayType=0,o.themeType=0,o.label=null,o.avatarSubscript=0,o.nicknameColor="",r.Long){let a=new r.Long(0,0,!1);o.role=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.role=n.longs===String?"0":0;o.avatarSubscriptUrl="",o.tvVipStatus=0,o.tvVipPayType=0}return i.type!=null&&i.hasOwnProperty("type")&&(o.type=i.type),i.status!=null&&i.hasOwnProperty("status")&&(o.status=i.status),i.dueDate!=null&&i.hasOwnProperty("dueDate")&&(typeof i.dueDate=="number"?o.dueDate=n.longs===String?String(i.dueDate):i.dueDate:o.dueDate=n.longs===String?r.Long.prototype.toString.call(i.dueDate):n.longs===Number?new r.LongBits(i.dueDate.low>>>0,i.dueDate.high>>>0).toNumber():i.dueDate),i.vipPayType!=null&&i.hasOwnProperty("vipPayType")&&(o.vipPayType=i.vipPayType),i.themeType!=null&&i.hasOwnProperty("themeType")&&(o.themeType=i.themeType),i.label!=null&&i.hasOwnProperty("label")&&(o.label=u.bilibili.polymer.app.search.v1.VipLabel.toObject(i.label,n)),i.avatarSubscript!=null&&i.hasOwnProperty("avatarSubscript")&&(o.avatarSubscript=i.avatarSubscript),i.nicknameColor!=null&&i.hasOwnProperty("nicknameColor")&&(o.nicknameColor=i.nicknameColor),i.role!=null&&i.hasOwnProperty("role")&&(typeof i.role=="number"?o.role=n.longs===String?String(i.role):i.role:o.role=n.longs===String?r.Long.prototype.toString.call(i.role):n.longs===Number?new r.LongBits(i.role.low>>>0,i.role.high>>>0).toNumber():i.role),i.avatarSubscriptUrl!=null&&i.hasOwnProperty("avatarSubscriptUrl")&&(o.avatarSubscriptUrl=i.avatarSubscriptUrl),i.tvVipStatus!=null&&i.hasOwnProperty("tvVipStatus")&&(o.tvVipStatus=i.tvVipStatus),i.tvVipPayType!=null&&i.hasOwnProperty("tvVipPayType")&&(o.tvVipPayType=i.tvVipPayType),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.VipInfo"},l}(),e.VipLabel=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.path=i.string();break}case 2:{a.text=i.string();break}case 3:{a.labelTheme=i.string();break}case 4:{a.textColor=i.string();break}case 5:{a.bgStyle=i.int32();break}case 6:{a.bgColor=i.string();break}case 7:{a.borderColor=i.string();break}case 8:{a.useImgLabel=i.bool();break}case 9:{a.imgLabelUriHans=i.string();break}case 10:{a.imgLabelUriHant=i.string();break}case 11:{a.imgLabelUriHansStatic=i.string();break}case 12:{a.imgLabelUriHantStatic=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.VipLabel)return i;let n=new u.bilibili.polymer.app.search.v1.VipLabel;return i.path!=null&&(n.path=String(i.path)),i.text!=null&&(n.text=String(i.text)),i.labelTheme!=null&&(n.labelTheme=String(i.labelTheme)),i.textColor!=null&&(n.textColor=String(i.textColor)),i.bgStyle!=null&&(n.bgStyle=i.bgStyle|0),i.bgColor!=null&&(n.bgColor=String(i.bgColor)),i.borderColor!=null&&(n.borderColor=String(i.borderColor)),i.useImgLabel!=null&&(n.useImgLabel=!!i.useImgLabel),i.imgLabelUriHans!=null&&(n.imgLabelUriHans=String(i.imgLabelUriHans)),i.imgLabelUriHant!=null&&(n.imgLabelUriHant=String(i.imgLabelUriHant)),i.imgLabelUriHansStatic!=null&&(n.imgLabelUriHansStatic=String(i.imgLabelUriHansStatic)),i.imgLabelUriHantStatic!=null&&(n.imgLabelUriHantStatic=String(i.imgLabelUriHantStatic)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.path="",o.text="",o.labelTheme="",o.textColor="",o.bgStyle=0,o.bgColor="",o.borderColor="",o.useImgLabel=!1,o.imgLabelUriHans="",o.imgLabelUriHant="",o.imgLabelUriHansStatic="",o.imgLabelUriHantStatic=""),i.path!=null&&i.hasOwnProperty("path")&&(o.path=i.path),i.text!=null&&i.hasOwnProperty("text")&&(o.text=i.text),i.labelTheme!=null&&i.hasOwnProperty("labelTheme")&&(o.labelTheme=i.labelTheme),i.textColor!=null&&i.hasOwnProperty("textColor")&&(o.textColor=i.textColor),i.bgStyle!=null&&i.hasOwnProperty("bgStyle")&&(o.bgStyle=i.bgStyle),i.bgColor!=null&&i.hasOwnProperty("bgColor")&&(o.bgColor=i.bgColor),i.borderColor!=null&&i.hasOwnProperty("borderColor")&&(o.borderColor=i.borderColor),i.useImgLabel!=null&&i.hasOwnProperty("useImgLabel")&&(o.useImgLabel=i.useImgLabel),i.imgLabelUriHans!=null&&i.hasOwnProperty("imgLabelUriHans")&&(o.imgLabelUriHans=i.imgLabelUriHans),i.imgLabelUriHant!=null&&i.hasOwnProperty("imgLabelUriHant")&&(o.imgLabelUriHant=i.imgLabelUriHant),i.imgLabelUriHansStatic!=null&&i.hasOwnProperty("imgLabelUriHansStatic")&&(o.imgLabelUriHansStatic=i.imgLabelUriHansStatic),i.imgLabelUriHantStatic!=null&&i.hasOwnProperty("imgLabelUriHantStatic")&&(o.imgLabelUriHantStatic=i.imgLabelUriHantStatic),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.VipLabel"},l}(),e.OfficialVerify=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.type=i.int32();break}case 2:{a.desc=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.OfficialVerify)return i;let n=new u.bilibili.polymer.app.search.v1.OfficialVerify;return i.type!=null&&(n.type=i.type|0),i.desc!=null&&(n.desc=String(i.desc)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.type=0,o.desc=""),i.type!=null&&i.hasOwnProperty("type")&&(o.type=i.type),i.desc!=null&&i.hasOwnProperty("desc")&&(o.desc=i.desc),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.OfficialVerify"},l}(),e.FullTextResult=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.type=i.int32();break}case 2:{a.showText=i.string();break}case 3:{a.jumpStartProgress=i.int64();break}case 4:{a.jumpUri=i.string();break}case 5:{a.icon=i.string();break}case 6:{a.iconForNight=i.string();break}case 7:{a.id=i.int64();break}case 8:{a.prefix=i.string();break}case 9:{a.text=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.FullTextResult)return i;let n=new u.bilibili.polymer.app.search.v1.FullTextResult;return i.type!=null&&(n.type=i.type|0),i.showText!=null&&(n.showText=String(i.showText)),i.jumpStartProgress!=null&&(r.Long?(n.jumpStartProgress=r.Long.fromValue(i.jumpStartProgress)).unsigned=!1:typeof i.jumpStartProgress=="string"?n.jumpStartProgress=parseInt(i.jumpStartProgress,10):typeof i.jumpStartProgress=="number"?n.jumpStartProgress=i.jumpStartProgress:typeof i.jumpStartProgress=="object"&&(n.jumpStartProgress=new r.LongBits(i.jumpStartProgress.low>>>0,i.jumpStartProgress.high>>>0).toNumber())),i.jumpUri!=null&&(n.jumpUri=String(i.jumpUri)),i.icon!=null&&(n.icon=String(i.icon)),i.iconForNight!=null&&(n.iconForNight=String(i.iconForNight)),i.id!=null&&(r.Long?(n.id=r.Long.fromValue(i.id)).unsigned=!1:typeof i.id=="string"?n.id=parseInt(i.id,10):typeof i.id=="number"?n.id=i.id:typeof i.id=="object"&&(n.id=new r.LongBits(i.id.low>>>0,i.id.high>>>0).toNumber())),i.prefix!=null&&(n.prefix=String(i.prefix)),i.text!=null&&(n.text=String(i.text)),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(o.type=0,o.showText="",r.Long){let a=new r.Long(0,0,!1);o.jumpStartProgress=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.jumpStartProgress=n.longs===String?"0":0;if(o.jumpUri="",o.icon="",o.iconForNight="",r.Long){let a=new r.Long(0,0,!1);o.id=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.id=n.longs===String?"0":0;o.prefix="",o.text=""}return i.type!=null&&i.hasOwnProperty("type")&&(o.type=i.type),i.showText!=null&&i.hasOwnProperty("showText")&&(o.showText=i.showText),i.jumpStartProgress!=null&&i.hasOwnProperty("jumpStartProgress")&&(typeof i.jumpStartProgress=="number"?o.jumpStartProgress=n.longs===String?String(i.jumpStartProgress):i.jumpStartProgress:o.jumpStartProgress=n.longs===String?r.Long.prototype.toString.call(i.jumpStartProgress):n.longs===Number?new r.LongBits(i.jumpStartProgress.low>>>0,i.jumpStartProgress.high>>>0).toNumber():i.jumpStartProgress),i.jumpUri!=null&&i.hasOwnProperty("jumpUri")&&(o.jumpUri=i.jumpUri),i.icon!=null&&i.hasOwnProperty("icon")&&(o.icon=i.icon),i.iconForNight!=null&&i.hasOwnProperty("iconForNight")&&(o.iconForNight=i.iconForNight),i.id!=null&&i.hasOwnProperty("id")&&(typeof i.id=="number"?o.id=n.longs===String?String(i.id):i.id:o.id=n.longs===String?r.Long.prototype.toString.call(i.id):n.longs===Number?new r.LongBits(i.id.low>>>0,i.id.high>>>0).toNumber():i.id),i.prefix!=null&&i.hasOwnProperty("prefix")&&(o.prefix=i.prefix),i.text!=null&&i.hasOwnProperty("text")&&(o.text=i.text),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.FullTextResult"},l}(),e.ReasonStyle=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.text=i.string();break}case 2:{a.textColor=i.string();break}case 3:{a.textColorNight=i.string();break}case 4:{a.bgColor=i.string();break}case 5:{a.bgColorNight=i.string();break}case 6:{a.borderColor=i.string();break}case 7:{a.borderColorNight=i.string();break}case 8:{a.bgStyle=i.int32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.ReasonStyle)return i;let n=new u.bilibili.polymer.app.search.v1.ReasonStyle;return i.text!=null&&(n.text=String(i.text)),i.textColor!=null&&(n.textColor=String(i.textColor)),i.textColorNight!=null&&(n.textColorNight=String(i.textColorNight)),i.bgColor!=null&&(n.bgColor=String(i.bgColor)),i.bgColorNight!=null&&(n.bgColorNight=String(i.bgColorNight)),i.borderColor!=null&&(n.borderColor=String(i.borderColor)),i.borderColorNight!=null&&(n.borderColorNight=String(i.borderColorNight)),i.bgStyle!=null&&(n.bgStyle=i.bgStyle|0),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.text="",o.textColor="",o.textColorNight="",o.bgColor="",o.bgColorNight="",o.borderColor="",o.borderColorNight="",o.bgStyle=0),i.text!=null&&i.hasOwnProperty("text")&&(o.text=i.text),i.textColor!=null&&i.hasOwnProperty("textColor")&&(o.textColor=i.textColor),i.textColorNight!=null&&i.hasOwnProperty("textColorNight")&&(o.textColorNight=i.textColorNight),i.bgColor!=null&&i.hasOwnProperty("bgColor")&&(o.bgColor=i.bgColor),i.bgColorNight!=null&&i.hasOwnProperty("bgColorNight")&&(o.bgColorNight=i.bgColorNight),i.borderColor!=null&&i.hasOwnProperty("borderColor")&&(o.borderColor=i.borderColor),i.borderColorNight!=null&&i.hasOwnProperty("borderColorNight")&&(o.borderColorNight=i.borderColorNight),i.bgStyle!=null&&i.hasOwnProperty("bgStyle")&&(o.bgStyle=i.bgStyle),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.ReasonStyle"},l}(),e.SharePlane=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.title=i.string();break}case 2:{a.shareSubtitle=i.string();break}case 3:{a.desc=i.string();break}case 4:{a.cover=i.string();break}case 5:{a.aid=i.int64();break}case 6:{a.bvid=i.string();break}case 7:{a.shareTo=u.bilibili.polymer.app.search.v1.ShareTo.decode(i,i.uint32());break}case 8:{a.author=i.string();break}case 9:{a.authorId=i.int64();break}case 10:{a.shortLink=i.string();break}case 11:{a.playNumber=i.string();break}case 12:{a.roomId=i.int64();break}case 13:{a.epId=i.int32();break}case 14:{a.areaName=i.string();break}case 15:{a.authorFace=i.string();break}case 16:{a.seasonId=i.int32();break}case 17:{a.shareFrom=i.string();break}case 18:{a.seasonTitle=i.string();break}case 19:{a.from=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.SharePlane)return i;let n=new u.bilibili.polymer.app.search.v1.SharePlane;if(i.title!=null&&(n.title=String(i.title)),i.shareSubtitle!=null&&(n.shareSubtitle=String(i.shareSubtitle)),i.desc!=null&&(n.desc=String(i.desc)),i.cover!=null&&(n.cover=String(i.cover)),i.aid!=null&&(r.Long?(n.aid=r.Long.fromValue(i.aid)).unsigned=!1:typeof i.aid=="string"?n.aid=parseInt(i.aid,10):typeof i.aid=="number"?n.aid=i.aid:typeof i.aid=="object"&&(n.aid=new r.LongBits(i.aid.low>>>0,i.aid.high>>>0).toNumber())),i.bvid!=null&&(n.bvid=String(i.bvid)),i.shareTo!=null){if(typeof i.shareTo!="object")throw TypeError(".bilibili.polymer.app.search.v1.SharePlane.shareTo: object expected");n.shareTo=u.bilibili.polymer.app.search.v1.ShareTo.fromObject(i.shareTo)}return i.author!=null&&(n.author=String(i.author)),i.authorId!=null&&(r.Long?(n.authorId=r.Long.fromValue(i.authorId)).unsigned=!1:typeof i.authorId=="string"?n.authorId=parseInt(i.authorId,10):typeof i.authorId=="number"?n.authorId=i.authorId:typeof i.authorId=="object"&&(n.authorId=new r.LongBits(i.authorId.low>>>0,i.authorId.high>>>0).toNumber())),i.shortLink!=null&&(n.shortLink=String(i.shortLink)),i.playNumber!=null&&(n.playNumber=String(i.playNumber)),i.roomId!=null&&(r.Long?(n.roomId=r.Long.fromValue(i.roomId)).unsigned=!1:typeof i.roomId=="string"?n.roomId=parseInt(i.roomId,10):typeof i.roomId=="number"?n.roomId=i.roomId:typeof i.roomId=="object"&&(n.roomId=new r.LongBits(i.roomId.low>>>0,i.roomId.high>>>0).toNumber())),i.epId!=null&&(n.epId=i.epId|0),i.areaName!=null&&(n.areaName=String(i.areaName)),i.authorFace!=null&&(n.authorFace=String(i.authorFace)),i.seasonId!=null&&(n.seasonId=i.seasonId|0),i.shareFrom!=null&&(n.shareFrom=String(i.shareFrom)),i.seasonTitle!=null&&(n.seasonTitle=String(i.seasonTitle)),i.from!=null&&(n.from=String(i.from)),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(o.title="",o.shareSubtitle="",o.desc="",o.cover="",r.Long){let a=new r.Long(0,0,!1);o.aid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.aid=n.longs===String?"0":0;if(o.bvid="",o.shareTo=null,o.author="",r.Long){let a=new r.Long(0,0,!1);o.authorId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.authorId=n.longs===String?"0":0;if(o.shortLink="",o.playNumber="",r.Long){let a=new r.Long(0,0,!1);o.roomId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.roomId=n.longs===String?"0":0;o.epId=0,o.areaName="",o.authorFace="",o.seasonId=0,o.shareFrom="",o.seasonTitle="",o.from=""}return i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.shareSubtitle!=null&&i.hasOwnProperty("shareSubtitle")&&(o.shareSubtitle=i.shareSubtitle),i.desc!=null&&i.hasOwnProperty("desc")&&(o.desc=i.desc),i.cover!=null&&i.hasOwnProperty("cover")&&(o.cover=i.cover),i.aid!=null&&i.hasOwnProperty("aid")&&(typeof i.aid=="number"?o.aid=n.longs===String?String(i.aid):i.aid:o.aid=n.longs===String?r.Long.prototype.toString.call(i.aid):n.longs===Number?new r.LongBits(i.aid.low>>>0,i.aid.high>>>0).toNumber():i.aid),i.bvid!=null&&i.hasOwnProperty("bvid")&&(o.bvid=i.bvid),i.shareTo!=null&&i.hasOwnProperty("shareTo")&&(o.shareTo=u.bilibili.polymer.app.search.v1.ShareTo.toObject(i.shareTo,n)),i.author!=null&&i.hasOwnProperty("author")&&(o.author=i.author),i.authorId!=null&&i.hasOwnProperty("authorId")&&(typeof i.authorId=="number"?o.authorId=n.longs===String?String(i.authorId):i.authorId:o.authorId=n.longs===String?r.Long.prototype.toString.call(i.authorId):n.longs===Number?new r.LongBits(i.authorId.low>>>0,i.authorId.high>>>0).toNumber():i.authorId),i.shortLink!=null&&i.hasOwnProperty("shortLink")&&(o.shortLink=i.shortLink),i.playNumber!=null&&i.hasOwnProperty("playNumber")&&(o.playNumber=i.playNumber),i.roomId!=null&&i.hasOwnProperty("roomId")&&(typeof i.roomId=="number"?o.roomId=n.longs===String?String(i.roomId):i.roomId:o.roomId=n.longs===String?r.Long.prototype.toString.call(i.roomId):n.longs===Number?new r.LongBits(i.roomId.low>>>0,i.roomId.high>>>0).toNumber():i.roomId),i.epId!=null&&i.hasOwnProperty("epId")&&(o.epId=i.epId),i.areaName!=null&&i.hasOwnProperty("areaName")&&(o.areaName=i.areaName),i.authorFace!=null&&i.hasOwnProperty("authorFace")&&(o.authorFace=i.authorFace),i.seasonId!=null&&i.hasOwnProperty("seasonId")&&(o.seasonId=i.seasonId),i.shareFrom!=null&&i.hasOwnProperty("shareFrom")&&(o.shareFrom=i.shareFrom),i.seasonTitle!=null&&i.hasOwnProperty("seasonTitle")&&(o.seasonTitle=i.seasonTitle),i.from!=null&&i.hasOwnProperty("from")&&(o.from=i.from),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.SharePlane"},l}(),e.ShareTo=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.dynamic=i.bool();break}case 2:{a.im=i.bool();break}case 3:{a.copy=i.bool();break}case 4:{a.more=i.bool();break}case 5:{a.wechat=i.bool();break}case 6:{a.weibo=i.bool();break}case 7:{a.wechatMonment=i.bool();break}case 8:{a.qq=i.bool();break}case 9:{a.qzone=i.bool();break}case 10:{a.facebook=i.bool();break}case 11:{a.line=i.bool();break}case 12:{a.messenger=i.bool();break}case 13:{a.whatsApp=i.bool();break}case 14:{a.twitter=i.bool();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.ShareTo)return i;let n=new u.bilibili.polymer.app.search.v1.ShareTo;return i.dynamic!=null&&(n.dynamic=!!i.dynamic),i.im!=null&&(n.im=!!i.im),i.copy!=null&&(n.copy=!!i.copy),i.more!=null&&(n.more=!!i.more),i.wechat!=null&&(n.wechat=!!i.wechat),i.weibo!=null&&(n.weibo=!!i.weibo),i.wechatMonment!=null&&(n.wechatMonment=!!i.wechatMonment),i.qq!=null&&(n.qq=!!i.qq),i.qzone!=null&&(n.qzone=!!i.qzone),i.facebook!=null&&(n.facebook=!!i.facebook),i.line!=null&&(n.line=!!i.line),i.messenger!=null&&(n.messenger=!!i.messenger),i.whatsApp!=null&&(n.whatsApp=!!i.whatsApp),i.twitter!=null&&(n.twitter=!!i.twitter),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.dynamic=!1,o.im=!1,o.copy=!1,o.more=!1,o.wechat=!1,o.weibo=!1,o.wechatMonment=!1,o.qq=!1,o.qzone=!1,o.facebook=!1,o.line=!1,o.messenger=!1,o.whatsApp=!1,o.twitter=!1),i.dynamic!=null&&i.hasOwnProperty("dynamic")&&(o.dynamic=i.dynamic),i.im!=null&&i.hasOwnProperty("im")&&(o.im=i.im),i.copy!=null&&i.hasOwnProperty("copy")&&(o.copy=i.copy),i.more!=null&&i.hasOwnProperty("more")&&(o.more=i.more),i.wechat!=null&&i.hasOwnProperty("wechat")&&(o.wechat=i.wechat),i.weibo!=null&&i.hasOwnProperty("weibo")&&(o.weibo=i.weibo),i.wechatMonment!=null&&i.hasOwnProperty("wechatMonment")&&(o.wechatMonment=i.wechatMonment),i.qq!=null&&i.hasOwnProperty("qq")&&(o.qq=i.qq),i.qzone!=null&&i.hasOwnProperty("qzone")&&(o.qzone=i.qzone),i.facebook!=null&&i.hasOwnProperty("facebook")&&(o.facebook=i.facebook),i.line!=null&&i.hasOwnProperty("line")&&(o.line=i.line),i.messenger!=null&&i.hasOwnProperty("messenger")&&(o.messenger=i.messenger),i.whatsApp!=null&&i.hasOwnProperty("whatsApp")&&(o.whatsApp=i.whatsApp),i.twitter!=null&&i.hasOwnProperty("twitter")&&(o.twitter=i.twitter),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.ShareTo"},l}(),e.DisplayOption=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.videoTitleRow=i.int32();break}case 2:{a.searchPageVisualOpti=i.int32();break}case 3:{a.refreshOpti=i.int32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.DisplayOption)return i;let n=new u.bilibili.polymer.app.search.v1.DisplayOption;return i.videoTitleRow!=null&&(n.videoTitleRow=i.videoTitleRow|0),i.searchPageVisualOpti!=null&&(n.searchPageVisualOpti=i.searchPageVisualOpti|0),i.refreshOpti!=null&&(n.refreshOpti=i.refreshOpti|0),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.videoTitleRow=0,o.searchPageVisualOpti=0,o.refreshOpti=0),i.videoTitleRow!=null&&i.hasOwnProperty("videoTitleRow")&&(o.videoTitleRow=i.videoTitleRow),i.searchPageVisualOpti!=null&&i.hasOwnProperty("searchPageVisualOpti")&&(o.searchPageVisualOpti=i.searchPageVisualOpti),i.refreshOpti!=null&&i.hasOwnProperty("refreshOpti")&&(o.refreshOpti=i.refreshOpti),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.DisplayOption"},l}(),e.Feedback=function(){function l(t){if(this.sections=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.sections&&a.sections.length||(a.sections=[]),a.sections.push(u.bilibili.polymer.app.search.v1.FeedbackSection.decode(i,i.uint32()));break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.Feedback)return i;let n=new u.bilibili.polymer.app.search.v1.Feedback;if(i.sections){if(!Array.isArray(i.sections))throw TypeError(".bilibili.polymer.app.search.v1.Feedback.sections: array expected");n.sections=[];for(let o=0;o>>3){case 1:{a.title=i.string();break}case 2:{a.type=i.string();break}case 3:{a.items&&a.items.length||(a.items=[]),a.items.push(u.bilibili.polymer.app.search.v1.FeedbackItem.decode(i,i.uint32()));break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.FeedbackSection)return i;let n=new u.bilibili.polymer.app.search.v1.FeedbackSection;if(i.title!=null&&(n.title=String(i.title)),i.type!=null&&(n.type=String(i.type)),i.items){if(!Array.isArray(i.items))throw TypeError(".bilibili.polymer.app.search.v1.FeedbackSection.items: array expected");n.items=[];for(let o=0;o>>3){case 1:{a.text=i.string();break}case 2:{a.id=i.int32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.FeedbackItem)return i;let n=new u.bilibili.polymer.app.search.v1.FeedbackItem;return i.text!=null&&(n.text=String(i.text)),i.id!=null&&(n.id=i.id|0),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.text="",o.id=0),i.text!=null&&i.hasOwnProperty("text")&&(o.text=i.text),i.id!=null&&i.hasOwnProperty("id")&&(o.id=i.id),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.FeedbackItem"},l}(),e.PicNavigation=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.title=i.string();break}case 2:{a.uri=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.PicNavigation)return i;let n=new u.bilibili.polymer.app.search.v1.PicNavigation;return i.title!=null&&(n.title=String(i.title)),i.uri!=null&&(n.uri=String(i.uri)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.title="",o.uri=""),i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.uri!=null&&i.hasOwnProperty("uri")&&(o.uri=i.uri),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.PicNavigation"},l}(),e.ReserveInfo=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.sid=i.int64();break}case 2:{a.title=i.string();break}case 3:{a.isFollow=i.int64();break}case 4:{a.oid=i.string();break}case 5:{a.icon=i.string();break}case 6:{a.iconNight=i.string();break}case 7:{a.state=i.int64();break}case 8:{a.bgColor=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.ReserveInfo)return i;let n=new u.bilibili.polymer.app.search.v1.ReserveInfo;return i.sid!=null&&(r.Long?(n.sid=r.Long.fromValue(i.sid)).unsigned=!1:typeof i.sid=="string"?n.sid=parseInt(i.sid,10):typeof i.sid=="number"?n.sid=i.sid:typeof i.sid=="object"&&(n.sid=new r.LongBits(i.sid.low>>>0,i.sid.high>>>0).toNumber())),i.title!=null&&(n.title=String(i.title)),i.isFollow!=null&&(r.Long?(n.isFollow=r.Long.fromValue(i.isFollow)).unsigned=!1:typeof i.isFollow=="string"?n.isFollow=parseInt(i.isFollow,10):typeof i.isFollow=="number"?n.isFollow=i.isFollow:typeof i.isFollow=="object"&&(n.isFollow=new r.LongBits(i.isFollow.low>>>0,i.isFollow.high>>>0).toNumber())),i.oid!=null&&(n.oid=String(i.oid)),i.icon!=null&&(n.icon=String(i.icon)),i.iconNight!=null&&(n.iconNight=String(i.iconNight)),i.state!=null&&(r.Long?(n.state=r.Long.fromValue(i.state)).unsigned=!1:typeof i.state=="string"?n.state=parseInt(i.state,10):typeof i.state=="number"?n.state=i.state:typeof i.state=="object"&&(n.state=new r.LongBits(i.state.low>>>0,i.state.high>>>0).toNumber())),i.bgColor!=null&&(r.Long?(n.bgColor=r.Long.fromValue(i.bgColor)).unsigned=!1:typeof i.bgColor=="string"?n.bgColor=parseInt(i.bgColor,10):typeof i.bgColor=="number"?n.bgColor=i.bgColor:typeof i.bgColor=="object"&&(n.bgColor=new r.LongBits(i.bgColor.low>>>0,i.bgColor.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.sid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.sid=n.longs===String?"0":0;if(o.title="",r.Long){let a=new r.Long(0,0,!1);o.isFollow=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.isFollow=n.longs===String?"0":0;if(o.oid="",o.icon="",o.iconNight="",r.Long){let a=new r.Long(0,0,!1);o.state=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.state=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.bgColor=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.bgColor=n.longs===String?"0":0}return i.sid!=null&&i.hasOwnProperty("sid")&&(typeof i.sid=="number"?o.sid=n.longs===String?String(i.sid):i.sid:o.sid=n.longs===String?r.Long.prototype.toString.call(i.sid):n.longs===Number?new r.LongBits(i.sid.low>>>0,i.sid.high>>>0).toNumber():i.sid),i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.isFollow!=null&&i.hasOwnProperty("isFollow")&&(typeof i.isFollow=="number"?o.isFollow=n.longs===String?String(i.isFollow):i.isFollow:o.isFollow=n.longs===String?r.Long.prototype.toString.call(i.isFollow):n.longs===Number?new r.LongBits(i.isFollow.low>>>0,i.isFollow.high>>>0).toNumber():i.isFollow),i.oid!=null&&i.hasOwnProperty("oid")&&(o.oid=i.oid),i.icon!=null&&i.hasOwnProperty("icon")&&(o.icon=i.icon),i.iconNight!=null&&i.hasOwnProperty("iconNight")&&(o.iconNight=i.iconNight),i.state!=null&&i.hasOwnProperty("state")&&(typeof i.state=="number"?o.state=n.longs===String?String(i.state):i.state:o.state=n.longs===String?r.Long.prototype.toString.call(i.state):n.longs===Number?new r.LongBits(i.state.low>>>0,i.state.high>>>0).toNumber():i.state),i.bgColor!=null&&i.hasOwnProperty("bgColor")&&(typeof i.bgColor=="number"?o.bgColor=n.longs===String?String(i.bgColor):i.bgColor:o.bgColor=n.longs===String?r.Long.prototype.toString.call(i.bgColor):n.longs===Number?new r.LongBits(i.bgColor.low>>>0,i.bgColor.high>>>0).toNumber():i.bgColor),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.ReserveInfo"},l}(),e.SearchReserveRequest=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.sid=i.int64();break}case 2:{a.oid=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.SearchReserveRequest)return i;let n=new u.bilibili.polymer.app.search.v1.SearchReserveRequest;return i.sid!=null&&(r.Long?(n.sid=r.Long.fromValue(i.sid)).unsigned=!1:typeof i.sid=="string"?n.sid=parseInt(i.sid,10):typeof i.sid=="number"?n.sid=i.sid:typeof i.sid=="object"&&(n.sid=new r.LongBits(i.sid.low>>>0,i.sid.high>>>0).toNumber())),i.oid!=null&&(n.oid=String(i.oid)),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.sid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.sid=n.longs===String?"0":0;o.oid=""}return i.sid!=null&&i.hasOwnProperty("sid")&&(typeof i.sid=="number"?o.sid=n.longs===String?String(i.sid):i.sid:o.sid=n.longs===String?r.Long.prototype.toString.call(i.sid):n.longs===Number?new r.LongBits(i.sid.low>>>0,i.sid.high>>>0).toNumber():i.sid),i.oid!=null&&i.hasOwnProperty("oid")&&(o.oid=i.oid),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.SearchReserveRequest"},l}(),e.SearchReserveResponse=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.reserveInfo=u.bilibili.polymer.app.search.v1.ReserveInfo.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.SearchReserveResponse)return i;let n=new u.bilibili.polymer.app.search.v1.SearchReserveResponse;if(i.reserveInfo!=null){if(typeof i.reserveInfo!="object")throw TypeError(".bilibili.polymer.app.search.v1.SearchReserveResponse.reserveInfo: object expected");n.reserveInfo=u.bilibili.polymer.app.search.v1.ReserveInfo.fromObject(i.reserveInfo)}return n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.reserveInfo=null),i.reserveInfo!=null&&i.hasOwnProperty("reserveInfo")&&(o.reserveInfo=u.bilibili.polymer.app.search.v1.ReserveInfo.toObject(i.reserveInfo,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.SearchReserveResponse"},l}(),e.SearchNPSCard=function(){function l(t){if(this.options=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.title=i.string();break}case 2:{a.options&&a.options.length||(a.options=[]),a.options.push(u.bilibili.polymer.app.search.v1.SearchNPSCard.Option.decode(i,i.uint32()));break}case 3:{a.cardLayout=u.bilibili.polymer.app.search.v1.CardLayout.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.SearchNPSCard)return i;let n=new u.bilibili.polymer.app.search.v1.SearchNPSCard;if(i.title!=null&&(n.title=String(i.title)),i.options){if(!Array.isArray(i.options))throw TypeError(".bilibili.polymer.app.search.v1.SearchNPSCard.options: array expected");n.options=[];for(let o=0;o>>3){case 1:{y.text=n.string();break}default:n.skipType(s&7);break}}return y},t.fromObject=function(n){if(n instanceof u.bilibili.polymer.app.search.v1.SearchNPSCard.Option)return n;let o=new u.bilibili.polymer.app.search.v1.SearchNPSCard.Option;return n.text!=null&&(o.text=String(n.text)),o},t.toObject=function(n,o){o||(o={});let a={};return o.defaults&&(a.text=""),n.text!=null&&n.hasOwnProperty("text")&&(a.text=n.text),a},t.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},t.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/bilibili.polymer.app.search.v1.SearchNPSCard.Option"},t}(),l}(),e.FoldingTimeLine=function(){function l(t){if(this.items=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.icon=i.string();break}case 2:{a.leftTitle=i.string();break}case 3:{a.rightTitle=i.string();break}case 4:{a.color=i.int32();break}case 5:{a.segment=i.int32();break}case 6:{a.startSecond=i.int64();break}case 7:{a.endSecond=i.int64();break}case 8:{a.initPosition=i.int32();break}case 9:{a.type=i.int32();break}case 10:{a.hangStyleSinal=i.int32();break}case 11:{a.hasImgUrl=i.int32();break}case 12:{a.items&&a.items.length||(a.items=[]),a.items.push(u.bilibili.polymer.app.search.v1.VideoTextItem.decode(i,i.uint32()));break}case 13:{a.iconNight=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.FoldingTimeLine)return i;let n=new u.bilibili.polymer.app.search.v1.FoldingTimeLine;if(i.icon!=null&&(n.icon=String(i.icon)),i.leftTitle!=null&&(n.leftTitle=String(i.leftTitle)),i.rightTitle!=null&&(n.rightTitle=String(i.rightTitle)),i.color!=null&&(n.color=i.color|0),i.segment!=null&&(n.segment=i.segment|0),i.startSecond!=null&&(r.Long?(n.startSecond=r.Long.fromValue(i.startSecond)).unsigned=!1:typeof i.startSecond=="string"?n.startSecond=parseInt(i.startSecond,10):typeof i.startSecond=="number"?n.startSecond=i.startSecond:typeof i.startSecond=="object"&&(n.startSecond=new r.LongBits(i.startSecond.low>>>0,i.startSecond.high>>>0).toNumber())),i.endSecond!=null&&(r.Long?(n.endSecond=r.Long.fromValue(i.endSecond)).unsigned=!1:typeof i.endSecond=="string"?n.endSecond=parseInt(i.endSecond,10):typeof i.endSecond=="number"?n.endSecond=i.endSecond:typeof i.endSecond=="object"&&(n.endSecond=new r.LongBits(i.endSecond.low>>>0,i.endSecond.high>>>0).toNumber())),i.initPosition!=null&&(n.initPosition=i.initPosition|0),i.type!=null&&(n.type=i.type|0),i.hangStyleSinal!=null&&(n.hangStyleSinal=i.hangStyleSinal|0),i.hasImgUrl!=null&&(n.hasImgUrl=i.hasImgUrl|0),i.items){if(!Array.isArray(i.items))throw TypeError(".bilibili.polymer.app.search.v1.FoldingTimeLine.items: array expected");n.items=[];for(let o=0;o>>0,i.startSecond.high>>>0).toNumber():i.startSecond),i.endSecond!=null&&i.hasOwnProperty("endSecond")&&(typeof i.endSecond=="number"?o.endSecond=n.longs===String?String(i.endSecond):i.endSecond:o.endSecond=n.longs===String?r.Long.prototype.toString.call(i.endSecond):n.longs===Number?new r.LongBits(i.endSecond.low>>>0,i.endSecond.high>>>0).toNumber():i.endSecond),i.initPosition!=null&&i.hasOwnProperty("initPosition")&&(o.initPosition=i.initPosition),i.type!=null&&i.hasOwnProperty("type")&&(o.type=i.type),i.hangStyleSinal!=null&&i.hasOwnProperty("hangStyleSinal")&&(o.hangStyleSinal=i.hangStyleSinal),i.hasImgUrl!=null&&i.hasOwnProperty("hasImgUrl")&&(o.hasImgUrl=i.hasImgUrl),i.items&&i.items.length){o.items=[];for(let a=0;a>>3){case 1:{a.sessionId=i.string();break}case 2:{a.loadingIconLight&&a.loadingIconLight.length||(a.loadingIconLight=[]),a.loadingIconLight.push(i.string());break}case 3:{a.loadingIconNight&&a.loadingIconNight.length||(a.loadingIconNight=[]),a.loadingIconNight.push(i.string());break}case 4:{a.backgroundLight=i.string();break}case 5:{a.backgroundNight=i.string();break}case 6:{a.betaText=i.string();break}case 7:{a.disclaimer=u.bilibili.polymer.app.search.v1.Disclaimer.decode(i,i.uint32());break}case 8:{a.title=i.string();break}case 9:{a.autoExpand=i.bool();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.SearchChatGPTCard)return i;let n=new u.bilibili.polymer.app.search.v1.SearchChatGPTCard;if(i.sessionId!=null&&(n.sessionId=String(i.sessionId)),i.loadingIconLight){if(!Array.isArray(i.loadingIconLight))throw TypeError(".bilibili.polymer.app.search.v1.SearchChatGPTCard.loadingIconLight: array expected");n.loadingIconLight=[];for(let o=0;o>>3){case 1:{a.title=i.string();break}case 2:{a.list&&a.list.length||(a.list=[]),a.list.push(u.bilibili.polymer.app.search.v1.Disclaimer.Item.decode(i,i.uint32()));break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.Disclaimer)return i;let n=new u.bilibili.polymer.app.search.v1.Disclaimer;if(i.title!=null&&(n.title=String(i.title)),i.list){if(!Array.isArray(i.list))throw TypeError(".bilibili.polymer.app.search.v1.Disclaimer.list: array expected");n.list=[];for(let o=0;o>>3){case 1:{y.icon=n.string();break}case 2:{y.text=n.string();break}default:n.skipType(s&7);break}}return y},t.fromObject=function(n){if(n instanceof u.bilibili.polymer.app.search.v1.Disclaimer.Item)return n;let o=new u.bilibili.polymer.app.search.v1.Disclaimer.Item;return n.icon!=null&&(o.icon=String(n.icon)),n.text!=null&&(o.text=String(n.text)),o},t.toObject=function(n,o){o||(o={});let a={};return o.defaults&&(a.icon="",a.text=""),n.icon!=null&&n.hasOwnProperty("icon")&&(a.icon=n.icon),n.text!=null&&n.hasOwnProperty("text")&&(a.text=n.text),a},t.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},t.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/bilibili.polymer.app.search.v1.Disclaimer.Item"},t}(),l}(),e.SearchHotRecommend=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.title=i.string();break}case 2:{a.cover=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.SearchHotRecommend)return i;let n=new u.bilibili.polymer.app.search.v1.SearchHotRecommend;return i.title!=null&&(n.title=String(i.title)),i.cover!=null&&(n.cover=String(i.cover)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.title="",o.cover=""),i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.cover!=null&&i.hasOwnProperty("cover")&&(o.cover=i.cover),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.SearchHotRecommend"},l}(),e.GloryInfo=function(){function l(t){if(this.items=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.title=i.string();break}case 2:{a.total=i.int32();break}case 3:{a.items&&a.items.length||(a.items=[]),a.items.push(u.bilibili.polymer.app.search.v1.GloryItem.decode(i,i.uint32()));break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.GloryInfo)return i;let n=new u.bilibili.polymer.app.search.v1.GloryInfo;if(i.title!=null&&(n.title=String(i.title)),i.total!=null&&(n.total=i.total|0),i.items){if(!Array.isArray(i.items))throw TypeError(".bilibili.polymer.app.search.v1.GloryInfo.items: array expected");n.items=[];for(let o=0;o>>3){case 1:{a.title=i.string();break}case 2:{a.cover=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.GloryItem)return i;let n=new u.bilibili.polymer.app.search.v1.GloryItem;return i.title!=null&&(n.title=String(i.title)),i.cover!=null&&(n.cover=String(i.cover)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.title="",o.cover=""),i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.cover!=null&&i.hasOwnProperty("cover")&&(o.cover=i.cover),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.GloryItem"},l}(),e.SearchLiveMaster=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.title=i.string();break}case 2:{a.name=i.string();break}case 3:{a.cover=i.string();break}case 4:{a.uri=i.string();break}case 5:{a.watchedShow=u.bilibili.polymer.app.search.v1.WatchedShow.decode(i,i.uint32());break}case 6:{a.ucover=i.string();break}case 7:{a.attentions=i.int64();break}case 8:{a.verifyType=i.int32();break}case 9:{a.faceNftNew=i.bool();break}case 10:{a.nftDamrk=i.string();break}case 11:{a.verifyDesc=i.string();break}case 12:{a.level=i.int32();break}case 13:{a.levelColor=i.int32();break}case 14:{a.isAtten=i.int32();break}case 15:{a.gloryInfo=u.bilibili.polymer.app.search.v1.GloryInfo.decode(i,i.uint32());break}case 16:{a.roomid=i.int64();break}case 17:{a.mid=i.int64();break}case 18:{a.online=i.int32();break}case 19:{a.liveStatus=i.int32();break}case 20:{a.cateParentName=i.string();break}case 21:{a.cateName=i.string();break}case 22:{a.liveLink=i.string();break}case 23:{a.avatarInfo=u.bilibili.dagw.component.avatar.v1.AvatarItem.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.SearchLiveMaster)return i;let n=new u.bilibili.polymer.app.search.v1.SearchLiveMaster;if(i.title!=null&&(n.title=String(i.title)),i.name!=null&&(n.name=String(i.name)),i.cover!=null&&(n.cover=String(i.cover)),i.uri!=null&&(n.uri=String(i.uri)),i.watchedShow!=null){if(typeof i.watchedShow!="object")throw TypeError(".bilibili.polymer.app.search.v1.SearchLiveMaster.watchedShow: object expected");n.watchedShow=u.bilibili.polymer.app.search.v1.WatchedShow.fromObject(i.watchedShow)}if(i.ucover!=null&&(n.ucover=String(i.ucover)),i.attentions!=null&&(r.Long?(n.attentions=r.Long.fromValue(i.attentions)).unsigned=!1:typeof i.attentions=="string"?n.attentions=parseInt(i.attentions,10):typeof i.attentions=="number"?n.attentions=i.attentions:typeof i.attentions=="object"&&(n.attentions=new r.LongBits(i.attentions.low>>>0,i.attentions.high>>>0).toNumber())),i.verifyType!=null&&(n.verifyType=i.verifyType|0),i.faceNftNew!=null&&(n.faceNftNew=!!i.faceNftNew),i.nftDamrk!=null&&(n.nftDamrk=String(i.nftDamrk)),i.verifyDesc!=null&&(n.verifyDesc=String(i.verifyDesc)),i.level!=null&&(n.level=i.level|0),i.levelColor!=null&&(n.levelColor=i.levelColor|0),i.isAtten!=null&&(n.isAtten=i.isAtten|0),i.gloryInfo!=null){if(typeof i.gloryInfo!="object")throw TypeError(".bilibili.polymer.app.search.v1.SearchLiveMaster.gloryInfo: object expected");n.gloryInfo=u.bilibili.polymer.app.search.v1.GloryInfo.fromObject(i.gloryInfo)}if(i.roomid!=null&&(r.Long?(n.roomid=r.Long.fromValue(i.roomid)).unsigned=!1:typeof i.roomid=="string"?n.roomid=parseInt(i.roomid,10):typeof i.roomid=="number"?n.roomid=i.roomid:typeof i.roomid=="object"&&(n.roomid=new r.LongBits(i.roomid.low>>>0,i.roomid.high>>>0).toNumber())),i.mid!=null&&(r.Long?(n.mid=r.Long.fromValue(i.mid)).unsigned=!1:typeof i.mid=="string"?n.mid=parseInt(i.mid,10):typeof i.mid=="number"?n.mid=i.mid:typeof i.mid=="object"&&(n.mid=new r.LongBits(i.mid.low>>>0,i.mid.high>>>0).toNumber())),i.online!=null&&(n.online=i.online|0),i.liveStatus!=null&&(n.liveStatus=i.liveStatus|0),i.cateParentName!=null&&(n.cateParentName=String(i.cateParentName)),i.cateName!=null&&(n.cateName=String(i.cateName)),i.liveLink!=null&&(n.liveLink=String(i.liveLink)),i.avatarInfo!=null){if(typeof i.avatarInfo!="object")throw TypeError(".bilibili.polymer.app.search.v1.SearchLiveMaster.avatarInfo: object expected");n.avatarInfo=u.bilibili.dagw.component.avatar.v1.AvatarItem.fromObject(i.avatarInfo)}return n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(o.title="",o.name="",o.cover="",o.uri="",o.watchedShow=null,o.ucover="",r.Long){let a=new r.Long(0,0,!1);o.attentions=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.attentions=n.longs===String?"0":0;if(o.verifyType=0,o.faceNftNew=!1,o.nftDamrk="",o.verifyDesc="",o.level=0,o.levelColor=0,o.isAtten=0,o.gloryInfo=null,r.Long){let a=new r.Long(0,0,!1);o.roomid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.roomid=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.mid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.mid=n.longs===String?"0":0;o.online=0,o.liveStatus=0,o.cateParentName="",o.cateName="",o.liveLink="",o.avatarInfo=null}return i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.name!=null&&i.hasOwnProperty("name")&&(o.name=i.name),i.cover!=null&&i.hasOwnProperty("cover")&&(o.cover=i.cover),i.uri!=null&&i.hasOwnProperty("uri")&&(o.uri=i.uri),i.watchedShow!=null&&i.hasOwnProperty("watchedShow")&&(o.watchedShow=u.bilibili.polymer.app.search.v1.WatchedShow.toObject(i.watchedShow,n)),i.ucover!=null&&i.hasOwnProperty("ucover")&&(o.ucover=i.ucover),i.attentions!=null&&i.hasOwnProperty("attentions")&&(typeof i.attentions=="number"?o.attentions=n.longs===String?String(i.attentions):i.attentions:o.attentions=n.longs===String?r.Long.prototype.toString.call(i.attentions):n.longs===Number?new r.LongBits(i.attentions.low>>>0,i.attentions.high>>>0).toNumber():i.attentions),i.verifyType!=null&&i.hasOwnProperty("verifyType")&&(o.verifyType=i.verifyType),i.faceNftNew!=null&&i.hasOwnProperty("faceNftNew")&&(o.faceNftNew=i.faceNftNew),i.nftDamrk!=null&&i.hasOwnProperty("nftDamrk")&&(o.nftDamrk=i.nftDamrk),i.verifyDesc!=null&&i.hasOwnProperty("verifyDesc")&&(o.verifyDesc=i.verifyDesc),i.level!=null&&i.hasOwnProperty("level")&&(o.level=i.level),i.levelColor!=null&&i.hasOwnProperty("levelColor")&&(o.levelColor=i.levelColor),i.isAtten!=null&&i.hasOwnProperty("isAtten")&&(o.isAtten=i.isAtten),i.gloryInfo!=null&&i.hasOwnProperty("gloryInfo")&&(o.gloryInfo=u.bilibili.polymer.app.search.v1.GloryInfo.toObject(i.gloryInfo,n)),i.roomid!=null&&i.hasOwnProperty("roomid")&&(typeof i.roomid=="number"?o.roomid=n.longs===String?String(i.roomid):i.roomid:o.roomid=n.longs===String?r.Long.prototype.toString.call(i.roomid):n.longs===Number?new r.LongBits(i.roomid.low>>>0,i.roomid.high>>>0).toNumber():i.roomid),i.mid!=null&&i.hasOwnProperty("mid")&&(typeof i.mid=="number"?o.mid=n.longs===String?String(i.mid):i.mid:o.mid=n.longs===String?r.Long.prototype.toString.call(i.mid):n.longs===Number?new r.LongBits(i.mid.low>>>0,i.mid.high>>>0).toNumber():i.mid),i.online!=null&&i.hasOwnProperty("online")&&(o.online=i.online),i.liveStatus!=null&&i.hasOwnProperty("liveStatus")&&(o.liveStatus=i.liveStatus),i.cateParentName!=null&&i.hasOwnProperty("cateParentName")&&(o.cateParentName=i.cateParentName),i.cateName!=null&&i.hasOwnProperty("cateName")&&(o.cateName=i.cateName),i.liveLink!=null&&i.hasOwnProperty("liveLink")&&(o.liveLink=i.liveLink),i.avatarInfo!=null&&i.hasOwnProperty("avatarInfo")&&(o.avatarInfo=u.bilibili.dagw.component.avatar.v1.AvatarItem.toObject(i.avatarInfo,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.SearchLiveMaster"},l}(),e.SearchLiveRoomTitle=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.totalCount=i.int32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.SearchLiveRoomTitle)return i;let n=new u.bilibili.polymer.app.search.v1.SearchLiveRoomTitle;return i.totalCount!=null&&(n.totalCount=i.totalCount|0),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.totalCount=0),i.totalCount!=null&&i.hasOwnProperty("totalCount")&&(o.totalCount=i.totalCount),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.SearchLiveRoomTitle"},l}(),e.SearchLiveRoom=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.title=i.string();break}case 2:{a.name=i.string();break}case 3:{a.cover=i.string();break}case 4:{a.uri=i.string();break}case 5:{a.param=i.string();break}case 6:{a.watchedShow=u.bilibili.polymer.app.search.v1.WatchedShow.decode(i,i.uint32());break}case 7:{a.roomid=i.int64();break}case 8:{a.shortId=i.int64();break}case 9:{a.goto=i.string();break}case 10:{a.areaV2Name=i.string();break}case 11:{a.online=i.int32();break}case 12:{a.mid=i.int64();break}case 13:{a.liveStatus=i.int32();break}case 14:{a.liveLink=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.SearchLiveRoom)return i;let n=new u.bilibili.polymer.app.search.v1.SearchLiveRoom;if(i.title!=null&&(n.title=String(i.title)),i.name!=null&&(n.name=String(i.name)),i.cover!=null&&(n.cover=String(i.cover)),i.uri!=null&&(n.uri=String(i.uri)),i.param!=null&&(n.param=String(i.param)),i.watchedShow!=null){if(typeof i.watchedShow!="object")throw TypeError(".bilibili.polymer.app.search.v1.SearchLiveRoom.watchedShow: object expected");n.watchedShow=u.bilibili.polymer.app.search.v1.WatchedShow.fromObject(i.watchedShow)}return i.roomid!=null&&(r.Long?(n.roomid=r.Long.fromValue(i.roomid)).unsigned=!1:typeof i.roomid=="string"?n.roomid=parseInt(i.roomid,10):typeof i.roomid=="number"?n.roomid=i.roomid:typeof i.roomid=="object"&&(n.roomid=new r.LongBits(i.roomid.low>>>0,i.roomid.high>>>0).toNumber())),i.shortId!=null&&(r.Long?(n.shortId=r.Long.fromValue(i.shortId)).unsigned=!1:typeof i.shortId=="string"?n.shortId=parseInt(i.shortId,10):typeof i.shortId=="number"?n.shortId=i.shortId:typeof i.shortId=="object"&&(n.shortId=new r.LongBits(i.shortId.low>>>0,i.shortId.high>>>0).toNumber())),i.goto!=null&&(n.goto=String(i.goto)),i.areaV2Name!=null&&(n.areaV2Name=String(i.areaV2Name)),i.online!=null&&(n.online=i.online|0),i.mid!=null&&(r.Long?(n.mid=r.Long.fromValue(i.mid)).unsigned=!1:typeof i.mid=="string"?n.mid=parseInt(i.mid,10):typeof i.mid=="number"?n.mid=i.mid:typeof i.mid=="object"&&(n.mid=new r.LongBits(i.mid.low>>>0,i.mid.high>>>0).toNumber())),i.liveStatus!=null&&(n.liveStatus=i.liveStatus|0),i.liveLink!=null&&(n.liveLink=String(i.liveLink)),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(o.title="",o.name="",o.cover="",o.uri="",o.param="",o.watchedShow=null,r.Long){let a=new r.Long(0,0,!1);o.roomid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.roomid=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.shortId=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.shortId=n.longs===String?"0":0;if(o.goto="",o.areaV2Name="",o.online=0,r.Long){let a=new r.Long(0,0,!1);o.mid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.mid=n.longs===String?"0":0;o.liveStatus=0,o.liveLink=""}return i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.name!=null&&i.hasOwnProperty("name")&&(o.name=i.name),i.cover!=null&&i.hasOwnProperty("cover")&&(o.cover=i.cover),i.uri!=null&&i.hasOwnProperty("uri")&&(o.uri=i.uri),i.param!=null&&i.hasOwnProperty("param")&&(o.param=i.param),i.watchedShow!=null&&i.hasOwnProperty("watchedShow")&&(o.watchedShow=u.bilibili.polymer.app.search.v1.WatchedShow.toObject(i.watchedShow,n)),i.roomid!=null&&i.hasOwnProperty("roomid")&&(typeof i.roomid=="number"?o.roomid=n.longs===String?String(i.roomid):i.roomid:o.roomid=n.longs===String?r.Long.prototype.toString.call(i.roomid):n.longs===Number?new r.LongBits(i.roomid.low>>>0,i.roomid.high>>>0).toNumber():i.roomid),i.shortId!=null&&i.hasOwnProperty("shortId")&&(typeof i.shortId=="number"?o.shortId=n.longs===String?String(i.shortId):i.shortId:o.shortId=n.longs===String?r.Long.prototype.toString.call(i.shortId):n.longs===Number?new r.LongBits(i.shortId.low>>>0,i.shortId.high>>>0).toNumber():i.shortId),i.goto!=null&&i.hasOwnProperty("goto")&&(o.goto=i.goto),i.areaV2Name!=null&&i.hasOwnProperty("areaV2Name")&&(o.areaV2Name=i.areaV2Name),i.online!=null&&i.hasOwnProperty("online")&&(o.online=i.online),i.mid!=null&&i.hasOwnProperty("mid")&&(typeof i.mid=="number"?o.mid=n.longs===String?String(i.mid):i.mid:o.mid=n.longs===String?r.Long.prototype.toString.call(i.mid):n.longs===Number?new r.LongBits(i.mid.low>>>0,i.mid.high>>>0).toNumber():i.mid),i.liveStatus!=null&&i.hasOwnProperty("liveStatus")&&(o.liveStatus=i.liveStatus),i.liveLink!=null&&i.hasOwnProperty("liveLink")&&(o.liveLink=i.liveLink),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.SearchLiveRoom"},l}(),e.LabelStyle=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.text=i.string();break}case 2:{a.textColor=i.string();break}case 3:{a.textColorNight=i.string();break}case 4:{a.bgColor=i.string();break}case 5:{a.bgColorNight=i.string();break}case 6:{a.borderColor=i.string();break}case 7:{a.borderColorNight=i.string();break}case 8:{a.icon=i.string();break}case 9:{a.iconNight=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.LabelStyle)return i;let n=new u.bilibili.polymer.app.search.v1.LabelStyle;return i.text!=null&&(n.text=String(i.text)),i.textColor!=null&&(n.textColor=String(i.textColor)),i.textColorNight!=null&&(n.textColorNight=String(i.textColorNight)),i.bgColor!=null&&(n.bgColor=String(i.bgColor)),i.bgColorNight!=null&&(n.bgColorNight=String(i.bgColorNight)),i.borderColor!=null&&(n.borderColor=String(i.borderColor)),i.borderColorNight!=null&&(n.borderColorNight=String(i.borderColorNight)),i.icon!=null&&(n.icon=String(i.icon)),i.iconNight!=null&&(n.iconNight=String(i.iconNight)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.text="",o.textColor="",o.textColorNight="",o.bgColor="",o.bgColorNight="",o.borderColor="",o.borderColorNight="",o.icon="",o.iconNight=""),i.text!=null&&i.hasOwnProperty("text")&&(o.text=i.text),i.textColor!=null&&i.hasOwnProperty("textColor")&&(o.textColor=i.textColor),i.textColorNight!=null&&i.hasOwnProperty("textColorNight")&&(o.textColorNight=i.textColorNight),i.bgColor!=null&&i.hasOwnProperty("bgColor")&&(o.bgColor=i.bgColor),i.bgColorNight!=null&&i.hasOwnProperty("bgColorNight")&&(o.bgColorNight=i.bgColorNight),i.borderColor!=null&&i.hasOwnProperty("borderColor")&&(o.borderColor=i.borderColor),i.borderColorNight!=null&&i.hasOwnProperty("borderColorNight")&&(o.borderColorNight=i.borderColorNight),i.icon!=null&&i.hasOwnProperty("icon")&&(o.icon=i.icon),i.iconNight!=null&&i.hasOwnProperty("iconNight")&&(o.iconNight=i.iconNight),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.LabelStyle"},l}(),e.SearchCheese=function(){function l(t){if(this.badges=[],this.threePoint=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.seasonId=i.int64();break}case 2:{a.title=i.string();break}case 3:{a.cover=i.string();break}case 4:{a.name=i.string();break}case 5:{a.uri=i.string();break}case 6:{a.showCardDesc_1=i.string();break}case 7:{a.showCardDesc_2=i.string();break}case 8:{a.viewContent=i.string();break}case 9:{a.iconType=i.int32();break}case 10:{a.badges&&a.badges.length||(a.badges=[]),a.badges.push(u.bilibili.polymer.app.search.v1.ReasonStyle.decode(i,i.uint32()));break}case 11:{a.threePoint&&a.threePoint.length||(a.threePoint=[]),a.threePoint.push(u.bilibili.polymer.app.search.v1.ThreePoint.decode(i,i.uint32()));break}case 12:{a.feedback=u.bilibili.polymer.app.search.v1.Feedback.decode(i,i.uint32());break}case 13:{a.shareFrom=i.string();break}case 14:{a.cardLayout=u.bilibili.polymer.app.search.v1.CardLayout.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.SearchCheese)return i;let n=new u.bilibili.polymer.app.search.v1.SearchCheese;if(i.seasonId!=null&&(r.Long?(n.seasonId=r.Long.fromValue(i.seasonId)).unsigned=!1:typeof i.seasonId=="string"?n.seasonId=parseInt(i.seasonId,10):typeof i.seasonId=="number"?n.seasonId=i.seasonId:typeof i.seasonId=="object"&&(n.seasonId=new r.LongBits(i.seasonId.low>>>0,i.seasonId.high>>>0).toNumber())),i.title!=null&&(n.title=String(i.title)),i.cover!=null&&(n.cover=String(i.cover)),i.name!=null&&(n.name=String(i.name)),i.uri!=null&&(n.uri=String(i.uri)),i.showCardDesc_1!=null&&(n.showCardDesc_1=String(i.showCardDesc_1)),i.showCardDesc_2!=null&&(n.showCardDesc_2=String(i.showCardDesc_2)),i.viewContent!=null&&(n.viewContent=String(i.viewContent)),i.iconType!=null&&(n.iconType=i.iconType|0),i.badges){if(!Array.isArray(i.badges))throw TypeError(".bilibili.polymer.app.search.v1.SearchCheese.badges: array expected");n.badges=[];for(let o=0;o>>0,i.seasonId.high>>>0).toNumber():i.seasonId),i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.cover!=null&&i.hasOwnProperty("cover")&&(o.cover=i.cover),i.name!=null&&i.hasOwnProperty("name")&&(o.name=i.name),i.uri!=null&&i.hasOwnProperty("uri")&&(o.uri=i.uri),i.showCardDesc_1!=null&&i.hasOwnProperty("showCardDesc_1")&&(o.showCardDesc_1=i.showCardDesc_1),i.showCardDesc_2!=null&&i.hasOwnProperty("showCardDesc_2")&&(o.showCardDesc_2=i.showCardDesc_2),i.viewContent!=null&&i.hasOwnProperty("viewContent")&&(o.viewContent=i.viewContent),i.iconType!=null&&i.hasOwnProperty("iconType")&&(o.iconType=i.iconType),i.badges&&i.badges.length){o.badges=[];for(let a=0;a>>3){case 1:{a.query=i.string();break}case 2:{a.url=i.string();break}case 3:{a.recommendReason=i.string();break}case 4:{a.iconType=i.int64();break}case 5:{a.icon=i.string();break}case 6:{a.iconNight=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.RelatedQuery)return i;let n=new u.bilibili.polymer.app.search.v1.RelatedQuery;return i.query!=null&&(n.query=String(i.query)),i.url!=null&&(n.url=String(i.url)),i.recommendReason!=null&&(n.recommendReason=String(i.recommendReason)),i.iconType!=null&&(r.Long?(n.iconType=r.Long.fromValue(i.iconType)).unsigned=!1:typeof i.iconType=="string"?n.iconType=parseInt(i.iconType,10):typeof i.iconType=="number"?n.iconType=i.iconType:typeof i.iconType=="object"&&(n.iconType=new r.LongBits(i.iconType.low>>>0,i.iconType.high>>>0).toNumber())),i.icon!=null&&(n.icon=String(i.icon)),i.iconNight!=null&&(n.iconNight=String(i.iconNight)),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(o.query="",o.url="",o.recommendReason="",r.Long){let a=new r.Long(0,0,!1);o.iconType=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.iconType=n.longs===String?"0":0;o.icon="",o.iconNight=""}return i.query!=null&&i.hasOwnProperty("query")&&(o.query=i.query),i.url!=null&&i.hasOwnProperty("url")&&(o.url=i.url),i.recommendReason!=null&&i.hasOwnProperty("recommendReason")&&(o.recommendReason=i.recommendReason),i.iconType!=null&&i.hasOwnProperty("iconType")&&(typeof i.iconType=="number"?o.iconType=n.longs===String?String(i.iconType):i.iconType:o.iconType=n.longs===String?r.Long.prototype.toString.call(i.iconType):n.longs===Number?new r.LongBits(i.iconType.low>>>0,i.iconType.high>>>0).toNumber():i.iconType),i.icon!=null&&i.hasOwnProperty("icon")&&(o.icon=i.icon),i.iconNight!=null&&i.hasOwnProperty("iconNight")&&(o.iconNight=i.iconNight),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.RelatedQuery"},l}(),e.SearchRelatedSearch=function(){function l(t){if(this.relatedQueryList=[],t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.title=i.string();break}case 2:{a.relatedQueryList&&a.relatedQueryList.length||(a.relatedQueryList=[]),a.relatedQueryList.push(u.bilibili.polymer.app.search.v1.RelatedQuery.decode(i,i.uint32()));break}case 3:{a.cardLayout=u.bilibili.polymer.app.search.v1.CardLayout.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.SearchRelatedSearch)return i;let n=new u.bilibili.polymer.app.search.v1.SearchRelatedSearch;if(i.title!=null&&(n.title=String(i.title)),i.relatedQueryList){if(!Array.isArray(i.relatedQueryList))throw TypeError(".bilibili.polymer.app.search.v1.SearchRelatedSearch.relatedQueryList: array expected");n.relatedQueryList=[];for(let o=0;o>>3){case 1:{a.compactCoverWidth=i.float();break}case 2:{a.compactCoverHeight=i.float();break}case 3:{a.verticalPadding=i.float();break}case 4:{a.moduleSpacing=i.float();break}case 5:{a.isLargeAvatar=i.bool();break}case 6:{a.backgroundCoverHeight=i.float();break}case 7:{a.buttonTopEqualCover=i.bool();break}case 8:{a.column=i.int32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.CardLayout)return i;let n=new u.bilibili.polymer.app.search.v1.CardLayout;return i.compactCoverWidth!=null&&(n.compactCoverWidth=Number(i.compactCoverWidth)),i.compactCoverHeight!=null&&(n.compactCoverHeight=Number(i.compactCoverHeight)),i.verticalPadding!=null&&(n.verticalPadding=Number(i.verticalPadding)),i.moduleSpacing!=null&&(n.moduleSpacing=Number(i.moduleSpacing)),i.isLargeAvatar!=null&&(n.isLargeAvatar=!!i.isLargeAvatar),i.backgroundCoverHeight!=null&&(n.backgroundCoverHeight=Number(i.backgroundCoverHeight)),i.buttonTopEqualCover!=null&&(n.buttonTopEqualCover=!!i.buttonTopEqualCover),i.column!=null&&(n.column=i.column|0),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.compactCoverWidth=0,o.compactCoverHeight=0,o.verticalPadding=0,o.moduleSpacing=0,o.isLargeAvatar=!1,o.backgroundCoverHeight=0,o.buttonTopEqualCover=!1,o.column=0),i.compactCoverWidth!=null&&i.hasOwnProperty("compactCoverWidth")&&(o.compactCoverWidth=n.json&&!isFinite(i.compactCoverWidth)?String(i.compactCoverWidth):i.compactCoverWidth),i.compactCoverHeight!=null&&i.hasOwnProperty("compactCoverHeight")&&(o.compactCoverHeight=n.json&&!isFinite(i.compactCoverHeight)?String(i.compactCoverHeight):i.compactCoverHeight),i.verticalPadding!=null&&i.hasOwnProperty("verticalPadding")&&(o.verticalPadding=n.json&&!isFinite(i.verticalPadding)?String(i.verticalPadding):i.verticalPadding),i.moduleSpacing!=null&&i.hasOwnProperty("moduleSpacing")&&(o.moduleSpacing=n.json&&!isFinite(i.moduleSpacing)?String(i.moduleSpacing):i.moduleSpacing),i.isLargeAvatar!=null&&i.hasOwnProperty("isLargeAvatar")&&(o.isLargeAvatar=i.isLargeAvatar),i.backgroundCoverHeight!=null&&i.hasOwnProperty("backgroundCoverHeight")&&(o.backgroundCoverHeight=n.json&&!isFinite(i.backgroundCoverHeight)?String(i.backgroundCoverHeight):i.backgroundCoverHeight),i.buttonTopEqualCover!=null&&i.hasOwnProperty("buttonTopEqualCover")&&(o.buttonTopEqualCover=i.buttonTopEqualCover),i.column!=null&&i.hasOwnProperty("column")&&(o.column=i.column),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.CardLayout"},l}(),e.SaleInfo=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.icon=i.string();break}case 2:{a.iconNight=i.string();break}case 3:{a.title=i.string();break}case 4:{a.label=u.bilibili.polymer.app.search.v1.ReasonStyle.decode(i,i.uint32());break}case 5:{a.desc=i.string();break}case 6:{a.button=u.bilibili.polymer.app.search.v1.PurchaseButton.decode(i,i.uint32());break}case 7:{a.vipStatus=i.string();break}case 8:{a.vipType=i.string();break}case 9:{a.tipsId=i.string();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.app.search.v1.SaleInfo)return i;let n=new u.bilibili.polymer.app.search.v1.SaleInfo;if(i.icon!=null&&(n.icon=String(i.icon)),i.iconNight!=null&&(n.iconNight=String(i.iconNight)),i.title!=null&&(n.title=String(i.title)),i.label!=null){if(typeof i.label!="object")throw TypeError(".bilibili.polymer.app.search.v1.SaleInfo.label: object expected");n.label=u.bilibili.polymer.app.search.v1.ReasonStyle.fromObject(i.label)}if(i.desc!=null&&(n.desc=String(i.desc)),i.button!=null){if(typeof i.button!="object")throw TypeError(".bilibili.polymer.app.search.v1.SaleInfo.button: object expected");n.button=u.bilibili.polymer.app.search.v1.PurchaseButton.fromObject(i.button)}return i.vipStatus!=null&&(n.vipStatus=String(i.vipStatus)),i.vipType!=null&&(n.vipType=String(i.vipType)),i.tipsId!=null&&(n.tipsId=String(i.tipsId)),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.icon="",o.iconNight="",o.title="",o.label=null,o.desc="",o.button=null,o.vipStatus="",o.vipType="",o.tipsId=""),i.icon!=null&&i.hasOwnProperty("icon")&&(o.icon=i.icon),i.iconNight!=null&&i.hasOwnProperty("iconNight")&&(o.iconNight=i.iconNight),i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.label!=null&&i.hasOwnProperty("label")&&(o.label=u.bilibili.polymer.app.search.v1.ReasonStyle.toObject(i.label,n)),i.desc!=null&&i.hasOwnProperty("desc")&&(o.desc=i.desc),i.button!=null&&i.hasOwnProperty("button")&&(o.button=u.bilibili.polymer.app.search.v1.PurchaseButton.toObject(i.button,n)),i.vipStatus!=null&&i.hasOwnProperty("vipStatus")&&(o.vipStatus=i.vipStatus),i.vipType!=null&&i.hasOwnProperty("vipType")&&(o.vipType=i.vipType),i.tipsId!=null&&i.hasOwnProperty("tipsId")&&(o.tipsId=i.tipsId),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.app.search.v1.SaleInfo"},l}(),e}(),c}(),p}(),d.chronos=function(){let p={};return p.v1=function(){let c={};return c.ChronosService=function(){function e(l,t,i){b.rpc.Service.call(this,l,t,i)}return(e.prototype=Object.create(b.rpc.Service.prototype)).constructor=e,e.create=function(t,i,n){return new this(t,i,n)},Object.defineProperty(e.prototype.obtainChronosPackage=function l(t,i){return this.rpcCall(l,u.bilibili.polymer.chronos.v1.ObtainChronosPackageReq,u.bilibili.polymer.chronos.v1.ObtainChronosPackageRsp,t,i)},"name",{value:"ObtainChronosPackage"}),e}(),c.ObtainChronosPackageReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.serviceKey=t.string();break}case 2:{o.engineVersion=t.string();break}case 3:{o.bizId=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.polymer.chronos.v1.ObtainChronosPackageReq)return t;let i=new u.bilibili.polymer.chronos.v1.ObtainChronosPackageReq;return t.serviceKey!=null&&(i.serviceKey=String(t.serviceKey)),t.engineVersion!=null&&(i.engineVersion=String(t.engineVersion)),t.bizId!=null&&(i.bizId=String(t.bizId)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.serviceKey="",n.engineVersion="",n.bizId=""),t.serviceKey!=null&&t.hasOwnProperty("serviceKey")&&(n.serviceKey=t.serviceKey),t.engineVersion!=null&&t.hasOwnProperty("engineVersion")&&(n.engineVersion=t.engineVersion),t.bizId!=null&&t.hasOwnProperty("bizId")&&(n.bizId=t.bizId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.polymer.chronos.v1.ObtainChronosPackageReq"},e}(),c.ObtainChronosPackageRsp=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.md5=t.string();break}case 2:{o.url=t.string();break}case 3:{o.sign=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.polymer.chronos.v1.ObtainChronosPackageRsp)return t;let i=new u.bilibili.polymer.chronos.v1.ObtainChronosPackageRsp;return t.md5!=null&&(i.md5=String(t.md5)),t.url!=null&&(i.url=String(t.url)),t.sign!=null&&(i.sign=String(t.sign)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.md5="",n.url="",n.sign=""),t.md5!=null&&t.hasOwnProperty("md5")&&(n.md5=t.md5),t.url!=null&&t.hasOwnProperty("url")&&(n.url=t.url),t.sign!=null&&t.hasOwnProperty("sign")&&(n.sign=t.sign),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.polymer.chronos.v1.ObtainChronosPackageRsp"},e}(),c}(),p}(),d.community=function(){let p={};return p.govern=function(){let c={};return c.v1=function(){let e={};return e.AntiHarassmentService=function(){function l(t,i,n){b.rpc.Service.call(this,t,i,n)}return(l.prototype=Object.create(b.rpc.Service.prototype)).constructor=l,l.create=function(i,n,o){return new this(i,n,o)},Object.defineProperty(l.prototype.storeAntiHarassmentSettings=function t(i,n){return this.rpcCall(t,u.bilibili.polymer.community.govern.v1.StoreAntiHarassmentSettingsReq,u.bilibili.polymer.community.govern.v1.StoreAntiHarassmentSettingsRsp,i,n)},"name",{value:"StoreAntiHarassmentSettings"}),Object.defineProperty(l.prototype.loadAntiHarassmentSettings=function t(i,n){return this.rpcCall(t,u.bilibili.polymer.community.govern.v1.LoadAntiHarassmentSettingsReq,u.bilibili.polymer.community.govern.v1.LoadAntiHarassmentSettingsRsp,i,n)},"name",{value:"LoadAntiHarassmentSettings"}),l}(),e.StoreAntiHarassmentSettingsReq=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.bizType=i.int32();break}case 2:{a.mid=i.int64();break}case 3:{a.antiHarassmentSetting=u.bilibili.polymer.community.govern.v1.AntiHarassmentSetting.decode(i,i.uint32());break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.community.govern.v1.StoreAntiHarassmentSettingsReq)return i;let n=new u.bilibili.polymer.community.govern.v1.StoreAntiHarassmentSettingsReq;switch(i.bizType){default:if(typeof i.bizType=="number"){n.bizType=i.bizType;break}break;case"InvalidBizType":case 0:n.bizType=0;break;case"Im":case 1:n.bizType=1;break;case"Dm":case 2:n.bizType=2;break;case"Reply":case 3:n.bizType=3;break;case"ReplyMe":case 4:n.bizType=4;break;case"LikeMe":case 5:n.bizType=5;break;case"AtMe":case 6:n.bizType=6;break}if(i.mid!=null&&(r.Long?(n.mid=r.Long.fromValue(i.mid)).unsigned=!1:typeof i.mid=="string"?n.mid=parseInt(i.mid,10):typeof i.mid=="number"?n.mid=i.mid:typeof i.mid=="object"&&(n.mid=new r.LongBits(i.mid.low>>>0,i.mid.high>>>0).toNumber())),i.antiHarassmentSetting!=null){if(typeof i.antiHarassmentSetting!="object")throw TypeError(".bilibili.polymer.community.govern.v1.StoreAntiHarassmentSettingsReq.antiHarassmentSetting: object expected");n.antiHarassmentSetting=u.bilibili.polymer.community.govern.v1.AntiHarassmentSetting.fromObject(i.antiHarassmentSetting)}return n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(o.bizType=n.enums===String?"InvalidBizType":0,r.Long){let a=new r.Long(0,0,!1);o.mid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.mid=n.longs===String?"0":0;o.antiHarassmentSetting=null}return i.bizType!=null&&i.hasOwnProperty("bizType")&&(o.bizType=n.enums===String?u.bilibili.polymer.community.govern.v1.BizType[i.bizType]===void 0?i.bizType:u.bilibili.polymer.community.govern.v1.BizType[i.bizType]:i.bizType),i.mid!=null&&i.hasOwnProperty("mid")&&(typeof i.mid=="number"?o.mid=n.longs===String?String(i.mid):i.mid:o.mid=n.longs===String?r.Long.prototype.toString.call(i.mid):n.longs===Number?new r.LongBits(i.mid.low>>>0,i.mid.high>>>0).toNumber():i.mid),i.antiHarassmentSetting!=null&&i.hasOwnProperty("antiHarassmentSetting")&&(o.antiHarassmentSetting=u.bilibili.polymer.community.govern.v1.AntiHarassmentSetting.toObject(i.antiHarassmentSetting,n)),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.community.govern.v1.StoreAntiHarassmentSettingsReq"},l}(),e.StoreAntiHarassmentSettingsRsp=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){default:i.skipType(y&7);break}}return a},l.fromObject=function(i){return i instanceof u.bilibili.polymer.community.govern.v1.StoreAntiHarassmentSettingsRsp?i:new u.bilibili.polymer.community.govern.v1.StoreAntiHarassmentSettingsRsp},l.toObject=function(){return{}},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.community.govern.v1.StoreAntiHarassmentSettingsRsp"},l}(),e.LoadAntiHarassmentSettingsReq=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.bizType=i.int32();break}case 2:{a.recvMid=i.int64();break}case 3:{a.sendMid=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.community.govern.v1.LoadAntiHarassmentSettingsReq)return i;let n=new u.bilibili.polymer.community.govern.v1.LoadAntiHarassmentSettingsReq;switch(i.bizType){default:if(typeof i.bizType=="number"){n.bizType=i.bizType;break}break;case"InvalidBizType":case 0:n.bizType=0;break;case"Im":case 1:n.bizType=1;break;case"Dm":case 2:n.bizType=2;break;case"Reply":case 3:n.bizType=3;break;case"ReplyMe":case 4:n.bizType=4;break;case"LikeMe":case 5:n.bizType=5;break;case"AtMe":case 6:n.bizType=6;break}return i.recvMid!=null&&(r.Long?(n.recvMid=r.Long.fromValue(i.recvMid)).unsigned=!1:typeof i.recvMid=="string"?n.recvMid=parseInt(i.recvMid,10):typeof i.recvMid=="number"?n.recvMid=i.recvMid:typeof i.recvMid=="object"&&(n.recvMid=new r.LongBits(i.recvMid.low>>>0,i.recvMid.high>>>0).toNumber())),i.sendMid!=null&&(r.Long?(n.sendMid=r.Long.fromValue(i.sendMid)).unsigned=!1:typeof i.sendMid=="string"?n.sendMid=parseInt(i.sendMid,10):typeof i.sendMid=="number"?n.sendMid=i.sendMid:typeof i.sendMid=="object"&&(n.sendMid=new r.LongBits(i.sendMid.low>>>0,i.sendMid.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(o.bizType=n.enums===String?"InvalidBizType":0,r.Long){let a=new r.Long(0,0,!1);o.recvMid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.recvMid=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.sendMid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.sendMid=n.longs===String?"0":0}return i.bizType!=null&&i.hasOwnProperty("bizType")&&(o.bizType=n.enums===String?u.bilibili.polymer.community.govern.v1.BizType[i.bizType]===void 0?i.bizType:u.bilibili.polymer.community.govern.v1.BizType[i.bizType]:i.bizType),i.recvMid!=null&&i.hasOwnProperty("recvMid")&&(typeof i.recvMid=="number"?o.recvMid=n.longs===String?String(i.recvMid):i.recvMid:o.recvMid=n.longs===String?r.Long.prototype.toString.call(i.recvMid):n.longs===Number?new r.LongBits(i.recvMid.low>>>0,i.recvMid.high>>>0).toNumber():i.recvMid),i.sendMid!=null&&i.hasOwnProperty("sendMid")&&(typeof i.sendMid=="number"?o.sendMid=n.longs===String?String(i.sendMid):i.sendMid:o.sendMid=n.longs===String?r.Long.prototype.toString.call(i.sendMid):n.longs===Number?new r.LongBits(i.sendMid.low>>>0,i.sendMid.high>>>0).toNumber():i.sendMid),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.community.govern.v1.LoadAntiHarassmentSettingsReq"},l}(),e.BizType=function(){let l={},t=Object.create(l);return t[l[0]="InvalidBizType"]=0,t[l[1]="Im"]=1,t[l[2]="Dm"]=2,t[l[3]="Reply"]=3,t[l[4]="ReplyMe"]=4,t[l[5]="LikeMe"]=5,t[l[6]="AtMe"]=6,t}(),e.LoadAntiHarassmentSettingsRsp=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.antiHarassmentRet=i.bool();break}case 2:{a.antiHarassmentSetting=u.bilibili.polymer.community.govern.v1.AntiHarassmentSetting.decode(i,i.uint32());break}case 3:{a.showWindow=i.int32();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.community.govern.v1.LoadAntiHarassmentSettingsRsp)return i;let n=new u.bilibili.polymer.community.govern.v1.LoadAntiHarassmentSettingsRsp;if(i.antiHarassmentRet!=null&&(n.antiHarassmentRet=!!i.antiHarassmentRet),i.antiHarassmentSetting!=null){if(typeof i.antiHarassmentSetting!="object")throw TypeError(".bilibili.polymer.community.govern.v1.LoadAntiHarassmentSettingsRsp.antiHarassmentSetting: object expected");n.antiHarassmentSetting=u.bilibili.polymer.community.govern.v1.AntiHarassmentSetting.fromObject(i.antiHarassmentSetting)}return i.showWindow!=null&&(n.showWindow=i.showWindow|0),n},l.toObject=function(i,n){n||(n={});let o={};return n.defaults&&(o.antiHarassmentRet=!1,o.antiHarassmentSetting=null,o.showWindow=0),i.antiHarassmentRet!=null&&i.hasOwnProperty("antiHarassmentRet")&&(o.antiHarassmentRet=i.antiHarassmentRet),i.antiHarassmentSetting!=null&&i.hasOwnProperty("antiHarassmentSetting")&&(o.antiHarassmentSetting=u.bilibili.polymer.community.govern.v1.AntiHarassmentSetting.toObject(i.antiHarassmentSetting,n)),i.showWindow!=null&&i.hasOwnProperty("showWindow")&&(o.showWindow=i.showWindow),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.community.govern.v1.LoadAntiHarassmentSettingsRsp"},l}(),e.AntiHarassmentSetting=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.mid=i.int64();break}case 2:{a.autoLimit=i.bool();break}case 3:{a.im=u.bilibili.polymer.community.govern.v1.AntiHarassmentInfo.decode(i,i.uint32());break}case 4:{a.reply=u.bilibili.polymer.community.govern.v1.AntiHarassmentInfo.decode(i,i.uint32());break}case 5:{a.dm=u.bilibili.polymer.community.govern.v1.AntiHarassmentInfo.decode(i,i.uint32());break}case 6:{a.replyMe=u.bilibili.polymer.community.govern.v1.AntiHarassmentInfo.decode(i,i.uint32());break}case 7:{a.likeMe=u.bilibili.polymer.community.govern.v1.AntiHarassmentInfo.decode(i,i.uint32());break}case 8:{a.atMe=u.bilibili.polymer.community.govern.v1.AntiHarassmentInfo.decode(i,i.uint32());break}case 9:{a.autoLimitExpireTime=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.community.govern.v1.AntiHarassmentSetting)return i;let n=new u.bilibili.polymer.community.govern.v1.AntiHarassmentSetting;if(i.mid!=null&&(r.Long?(n.mid=r.Long.fromValue(i.mid)).unsigned=!1:typeof i.mid=="string"?n.mid=parseInt(i.mid,10):typeof i.mid=="number"?n.mid=i.mid:typeof i.mid=="object"&&(n.mid=new r.LongBits(i.mid.low>>>0,i.mid.high>>>0).toNumber())),i.autoLimit!=null&&(n.autoLimit=!!i.autoLimit),i.im!=null){if(typeof i.im!="object")throw TypeError(".bilibili.polymer.community.govern.v1.AntiHarassmentSetting.im: object expected");n.im=u.bilibili.polymer.community.govern.v1.AntiHarassmentInfo.fromObject(i.im)}if(i.reply!=null){if(typeof i.reply!="object")throw TypeError(".bilibili.polymer.community.govern.v1.AntiHarassmentSetting.reply: object expected");n.reply=u.bilibili.polymer.community.govern.v1.AntiHarassmentInfo.fromObject(i.reply)}if(i.dm!=null){if(typeof i.dm!="object")throw TypeError(".bilibili.polymer.community.govern.v1.AntiHarassmentSetting.dm: object expected");n.dm=u.bilibili.polymer.community.govern.v1.AntiHarassmentInfo.fromObject(i.dm)}if(i.replyMe!=null){if(typeof i.replyMe!="object")throw TypeError(".bilibili.polymer.community.govern.v1.AntiHarassmentSetting.replyMe: object expected");n.replyMe=u.bilibili.polymer.community.govern.v1.AntiHarassmentInfo.fromObject(i.replyMe)}if(i.likeMe!=null){if(typeof i.likeMe!="object")throw TypeError(".bilibili.polymer.community.govern.v1.AntiHarassmentSetting.likeMe: object expected");n.likeMe=u.bilibili.polymer.community.govern.v1.AntiHarassmentInfo.fromObject(i.likeMe)}if(i.atMe!=null){if(typeof i.atMe!="object")throw TypeError(".bilibili.polymer.community.govern.v1.AntiHarassmentSetting.atMe: object expected");n.atMe=u.bilibili.polymer.community.govern.v1.AntiHarassmentInfo.fromObject(i.atMe)}return i.autoLimitExpireTime!=null&&(r.Long?(n.autoLimitExpireTime=r.Long.fromValue(i.autoLimitExpireTime)).unsigned=!1:typeof i.autoLimitExpireTime=="string"?n.autoLimitExpireTime=parseInt(i.autoLimitExpireTime,10):typeof i.autoLimitExpireTime=="number"?n.autoLimitExpireTime=i.autoLimitExpireTime:typeof i.autoLimitExpireTime=="object"&&(n.autoLimitExpireTime=new r.LongBits(i.autoLimitExpireTime.low>>>0,i.autoLimitExpireTime.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(r.Long){let a=new r.Long(0,0,!1);o.mid=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.mid=n.longs===String?"0":0;if(o.autoLimit=!1,o.im=null,o.reply=null,o.dm=null,o.replyMe=null,o.likeMe=null,o.atMe=null,r.Long){let a=new r.Long(0,0,!1);o.autoLimitExpireTime=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.autoLimitExpireTime=n.longs===String?"0":0}return i.mid!=null&&i.hasOwnProperty("mid")&&(typeof i.mid=="number"?o.mid=n.longs===String?String(i.mid):i.mid:o.mid=n.longs===String?r.Long.prototype.toString.call(i.mid):n.longs===Number?new r.LongBits(i.mid.low>>>0,i.mid.high>>>0).toNumber():i.mid),i.autoLimit!=null&&i.hasOwnProperty("autoLimit")&&(o.autoLimit=i.autoLimit),i.im!=null&&i.hasOwnProperty("im")&&(o.im=u.bilibili.polymer.community.govern.v1.AntiHarassmentInfo.toObject(i.im,n)),i.reply!=null&&i.hasOwnProperty("reply")&&(o.reply=u.bilibili.polymer.community.govern.v1.AntiHarassmentInfo.toObject(i.reply,n)),i.dm!=null&&i.hasOwnProperty("dm")&&(o.dm=u.bilibili.polymer.community.govern.v1.AntiHarassmentInfo.toObject(i.dm,n)),i.replyMe!=null&&i.hasOwnProperty("replyMe")&&(o.replyMe=u.bilibili.polymer.community.govern.v1.AntiHarassmentInfo.toObject(i.replyMe,n)),i.likeMe!=null&&i.hasOwnProperty("likeMe")&&(o.likeMe=u.bilibili.polymer.community.govern.v1.AntiHarassmentInfo.toObject(i.likeMe,n)),i.atMe!=null&&i.hasOwnProperty("atMe")&&(o.atMe=u.bilibili.polymer.community.govern.v1.AntiHarassmentInfo.toObject(i.atMe,n)),i.autoLimitExpireTime!=null&&i.hasOwnProperty("autoLimitExpireTime")&&(typeof i.autoLimitExpireTime=="number"?o.autoLimitExpireTime=n.longs===String?String(i.autoLimitExpireTime):i.autoLimitExpireTime:o.autoLimitExpireTime=n.longs===String?r.Long.prototype.toString.call(i.autoLimitExpireTime):n.longs===Number?new r.LongBits(i.autoLimitExpireTime.low>>>0,i.autoLimitExpireTime.high>>>0).toNumber():i.autoLimitExpireTime),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.community.govern.v1.AntiHarassmentSetting"},l}(),e.AntiHarassmentInfo=function(){function l(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.limit=i.int32();break}case 2:{a.followTimeLimitSecond=i.int32();break}case 3:{a.expireTime=i.int64();break}default:i.skipType(y&7);break}}return a},l.fromObject=function(i){if(i instanceof u.bilibili.polymer.community.govern.v1.AntiHarassmentInfo)return i;let n=new u.bilibili.polymer.community.govern.v1.AntiHarassmentInfo;switch(i.limit){default:if(typeof i.limit=="number"){n.limit=i.limit;break}break;case"DefaultLimit":case 0:n.limit=0;break;case"FollowLimit":case 1:n.limit=1;break;case"ReFollowLimit":case 2:n.limit=2;break;case"TwoWayFollow":case 3:n.limit=3;break;case"AllLimit":case 4:n.limit=4;break}return i.followTimeLimitSecond!=null&&(n.followTimeLimitSecond=i.followTimeLimitSecond|0),i.expireTime!=null&&(r.Long?(n.expireTime=r.Long.fromValue(i.expireTime)).unsigned=!1:typeof i.expireTime=="string"?n.expireTime=parseInt(i.expireTime,10):typeof i.expireTime=="number"?n.expireTime=i.expireTime:typeof i.expireTime=="object"&&(n.expireTime=new r.LongBits(i.expireTime.low>>>0,i.expireTime.high>>>0).toNumber())),n},l.toObject=function(i,n){n||(n={});let o={};if(n.defaults)if(o.limit=n.enums===String?"DefaultLimit":0,o.followTimeLimitSecond=0,r.Long){let a=new r.Long(0,0,!1);o.expireTime=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.expireTime=n.longs===String?"0":0;return i.limit!=null&&i.hasOwnProperty("limit")&&(o.limit=n.enums===String?u.bilibili.polymer.community.govern.v1.AntiHarassmentLimit[i.limit]===void 0?i.limit:u.bilibili.polymer.community.govern.v1.AntiHarassmentLimit[i.limit]:i.limit),i.followTimeLimitSecond!=null&&i.hasOwnProperty("followTimeLimitSecond")&&(o.followTimeLimitSecond=i.followTimeLimitSecond),i.expireTime!=null&&i.hasOwnProperty("expireTime")&&(typeof i.expireTime=="number"?o.expireTime=n.longs===String?String(i.expireTime):i.expireTime:o.expireTime=n.longs===String?r.Long.prototype.toString.call(i.expireTime):n.longs===Number?new r.LongBits(i.expireTime.low>>>0,i.expireTime.high>>>0).toNumber():i.expireTime),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},l.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.polymer.community.govern.v1.AntiHarassmentInfo"},l}(),e.AntiHarassmentLimit=function(){let l={},t=Object.create(l);return t[l[0]="DefaultLimit"]=0,t[l[1]="FollowLimit"]=1,t[l[2]="ReFollowLimit"]=2,t[l[3]="TwoWayFollow"]=3,t[l[4]="AllLimit"]=4,t}(),e}(),c}(),p}(),d.contract=function(){let p={};return p.v1=function(){let c={};return c.Contract=function(){function e(l,t,i){b.rpc.Service.call(this,l,t,i)}return(e.prototype=Object.create(b.rpc.Service.prototype)).constructor=e,e.create=function(t,i,n){return new this(t,i,n)},Object.defineProperty(e.prototype.addContract=function l(t,i){return this.rpcCall(l,u.bilibili.polymer.contract.v1.AddContractReq,u.google.protobuf.Empty,t,i)},"name",{value:"AddContract"}),Object.defineProperty(e.prototype.addContractV2=function l(t,i){return this.rpcCall(l,u.bilibili.polymer.contract.v1.AddContractReq,u.bilibili.polymer.contract.v1.AddContractReply,t,i)},"name",{value:"AddContractV2"}),Object.defineProperty(e.prototype.contractConfig=function l(t,i){return this.rpcCall(l,u.bilibili.polymer.contract.v1.ContractConfigReq,u.bilibili.polymer.contract.v1.ContractConfigReply,t,i)},"name",{value:"ContractConfig"}),e}(),c.AddContractReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.common=u.bilibili.polymer.contract.v1.CommonReq.decode(t,t.uint32());break}case 2:{o.mid=t.int64();break}case 3:{o.upMid=t.int64();break}case 4:{o.aid=t.int64();break}case 5:{o.source=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.polymer.contract.v1.AddContractReq)return t;let i=new u.bilibili.polymer.contract.v1.AddContractReq;if(t.common!=null){if(typeof t.common!="object")throw TypeError(".bilibili.polymer.contract.v1.AddContractReq.common: object expected");i.common=u.bilibili.polymer.contract.v1.CommonReq.fromObject(t.common)}switch(t.mid!=null&&(r.Long?(i.mid=r.Long.fromValue(t.mid)).unsigned=!1:typeof t.mid=="string"?i.mid=parseInt(t.mid,10):typeof t.mid=="number"?i.mid=t.mid:typeof t.mid=="object"&&(i.mid=new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber())),t.upMid!=null&&(r.Long?(i.upMid=r.Long.fromValue(t.upMid)).unsigned=!1:typeof t.upMid=="string"?i.upMid=parseInt(t.upMid,10):typeof t.upMid=="number"?i.upMid=t.upMid:typeof t.upMid=="object"&&(i.upMid=new r.LongBits(t.upMid.low>>>0,t.upMid.high>>>0).toNumber())),t.aid!=null&&(r.Long?(i.aid=r.Long.fromValue(t.aid)).unsigned=!1:typeof t.aid=="string"?i.aid=parseInt(t.aid,10):typeof t.aid=="number"?i.aid=t.aid:typeof t.aid=="object"&&(i.aid=new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber())),t.source){default:if(typeof t.source=="number"){i.source=t.source;break}break;case"PLAY":case 0:i.source=0;break;case"SPACE":case 1:i.source=1;break}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.common=null,r.Long){let o=new r.Long(0,0,!1);n.mid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.upMid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.upMid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.aid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.aid=i.longs===String?"0":0;n.source=i.enums===String?"PLAY":0}return t.common!=null&&t.hasOwnProperty("common")&&(n.common=u.bilibili.polymer.contract.v1.CommonReq.toObject(t.common,i)),t.mid!=null&&t.hasOwnProperty("mid")&&(typeof t.mid=="number"?n.mid=i.longs===String?String(t.mid):t.mid:n.mid=i.longs===String?r.Long.prototype.toString.call(t.mid):i.longs===Number?new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber():t.mid),t.upMid!=null&&t.hasOwnProperty("upMid")&&(typeof t.upMid=="number"?n.upMid=i.longs===String?String(t.upMid):t.upMid:n.upMid=i.longs===String?r.Long.prototype.toString.call(t.upMid):i.longs===Number?new r.LongBits(t.upMid.low>>>0,t.upMid.high>>>0).toNumber():t.upMid),t.aid!=null&&t.hasOwnProperty("aid")&&(typeof t.aid=="number"?n.aid=i.longs===String?String(t.aid):t.aid:n.aid=i.longs===String?r.Long.prototype.toString.call(t.aid):i.longs===Number?new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber():t.aid),t.source!=null&&t.hasOwnProperty("source")&&(n.source=i.enums===String?u.bilibili.polymer.contract.v1.AddContractReq.Source[t.source]===void 0?t.source:u.bilibili.polymer.contract.v1.AddContractReq.Source[t.source]:t.source),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.polymer.contract.v1.AddContractReq"},e.Source=function(){let l={},t=Object.create(l);return t[l[0]="PLAY"]=0,t[l[1]="SPACE"]=1,t}(),e}(),c.AddContractReply=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.allowMessage=t.bool();break}case 2:{o.allowReply=t.bool();break}case 3:{o.inputText=t.string();break}case 4:{o.inputTitle=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.polymer.contract.v1.AddContractReply)return t;let i=new u.bilibili.polymer.contract.v1.AddContractReply;return t.allowMessage!=null&&(i.allowMessage=!!t.allowMessage),t.allowReply!=null&&(i.allowReply=!!t.allowReply),t.inputText!=null&&(i.inputText=String(t.inputText)),t.inputTitle!=null&&(i.inputTitle=String(t.inputTitle)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.allowMessage=!1,n.allowReply=!1,n.inputText="",n.inputTitle=""),t.allowMessage!=null&&t.hasOwnProperty("allowMessage")&&(n.allowMessage=t.allowMessage),t.allowReply!=null&&t.hasOwnProperty("allowReply")&&(n.allowReply=t.allowReply),t.inputText!=null&&t.hasOwnProperty("inputText")&&(n.inputText=t.inputText),t.inputTitle!=null&&t.hasOwnProperty("inputTitle")&&(n.inputTitle=t.inputTitle),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.polymer.contract.v1.AddContractReply"},e}(),c.CommonReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.platform=t.string();break}case 2:{o.build=t.int32();break}case 3:{o.buvid=t.string();break}case 4:{o.mobiApp=t.string();break}case 5:{o.device=t.string();break}case 6:{o.ip=t.string();break}case 7:{o.spmid=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.polymer.contract.v1.CommonReq)return t;let i=new u.bilibili.polymer.contract.v1.CommonReq;return t.platform!=null&&(i.platform=String(t.platform)),t.build!=null&&(i.build=t.build|0),t.buvid!=null&&(i.buvid=String(t.buvid)),t.mobiApp!=null&&(i.mobiApp=String(t.mobiApp)),t.device!=null&&(i.device=String(t.device)),t.ip!=null&&(i.ip=String(t.ip)),t.spmid!=null&&(i.spmid=String(t.spmid)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.platform="",n.build=0,n.buvid="",n.mobiApp="",n.device="",n.ip="",n.spmid=""),t.platform!=null&&t.hasOwnProperty("platform")&&(n.platform=t.platform),t.build!=null&&t.hasOwnProperty("build")&&(n.build=t.build),t.buvid!=null&&t.hasOwnProperty("buvid")&&(n.buvid=t.buvid),t.mobiApp!=null&&t.hasOwnProperty("mobiApp")&&(n.mobiApp=t.mobiApp),t.device!=null&&t.hasOwnProperty("device")&&(n.device=t.device),t.ip!=null&&t.hasOwnProperty("ip")&&(n.ip=t.ip),t.spmid!=null&&t.hasOwnProperty("spmid")&&(n.spmid=t.spmid),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.polymer.contract.v1.CommonReq"},e}(),c.ContractConfigReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.common=u.bilibili.polymer.contract.v1.CommonReq.decode(t,t.uint32());break}case 2:{o.mid=t.int64();break}case 3:{o.upMid=t.int64();break}case 4:{o.aid=t.int64();break}case 5:{o.source=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.polymer.contract.v1.ContractConfigReq)return t;let i=new u.bilibili.polymer.contract.v1.ContractConfigReq;if(t.common!=null){if(typeof t.common!="object")throw TypeError(".bilibili.polymer.contract.v1.ContractConfigReq.common: object expected");i.common=u.bilibili.polymer.contract.v1.CommonReq.fromObject(t.common)}switch(t.mid!=null&&(r.Long?(i.mid=r.Long.fromValue(t.mid)).unsigned=!1:typeof t.mid=="string"?i.mid=parseInt(t.mid,10):typeof t.mid=="number"?i.mid=t.mid:typeof t.mid=="object"&&(i.mid=new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber())),t.upMid!=null&&(r.Long?(i.upMid=r.Long.fromValue(t.upMid)).unsigned=!1:typeof t.upMid=="string"?i.upMid=parseInt(t.upMid,10):typeof t.upMid=="number"?i.upMid=t.upMid:typeof t.upMid=="object"&&(i.upMid=new r.LongBits(t.upMid.low>>>0,t.upMid.high>>>0).toNumber())),t.aid!=null&&(r.Long?(i.aid=r.Long.fromValue(t.aid)).unsigned=!1:typeof t.aid=="string"?i.aid=parseInt(t.aid,10):typeof t.aid=="number"?i.aid=t.aid:typeof t.aid=="object"&&(i.aid=new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber())),t.source){default:if(typeof t.source=="number"){i.source=t.source;break}break;case"PLAY":case 0:i.source=0;break;case"SPACE":case 1:i.source=1;break;case"STORY":case 2:i.source=2;break}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.common=null,r.Long){let o=new r.Long(0,0,!1);n.mid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.upMid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.upMid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.aid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.aid=i.longs===String?"0":0;n.source=i.enums===String?"PLAY":0}return t.common!=null&&t.hasOwnProperty("common")&&(n.common=u.bilibili.polymer.contract.v1.CommonReq.toObject(t.common,i)),t.mid!=null&&t.hasOwnProperty("mid")&&(typeof t.mid=="number"?n.mid=i.longs===String?String(t.mid):t.mid:n.mid=i.longs===String?r.Long.prototype.toString.call(t.mid):i.longs===Number?new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber():t.mid),t.upMid!=null&&t.hasOwnProperty("upMid")&&(typeof t.upMid=="number"?n.upMid=i.longs===String?String(t.upMid):t.upMid:n.upMid=i.longs===String?r.Long.prototype.toString.call(t.upMid):i.longs===Number?new r.LongBits(t.upMid.low>>>0,t.upMid.high>>>0).toNumber():t.upMid),t.aid!=null&&t.hasOwnProperty("aid")&&(typeof t.aid=="number"?n.aid=i.longs===String?String(t.aid):t.aid:n.aid=i.longs===String?r.Long.prototype.toString.call(t.aid):i.longs===Number?new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber():t.aid),t.source!=null&&t.hasOwnProperty("source")&&(n.source=i.enums===String?u.bilibili.polymer.contract.v1.ContractConfigReq.Source[t.source]===void 0?t.source:u.bilibili.polymer.contract.v1.ContractConfigReq.Source[t.source]:t.source),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.polymer.contract.v1.ContractConfigReq"},e.Source=function(){let l={},t=Object.create(l);return t[l[0]="PLAY"]=0,t[l[1]="SPACE"]=1,t[l[2]="STORY"]=2,t}(),e}(),c.ContractConfigReply=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.isFollowDisplay=t.int32();break}case 2:{o.isTripleDisplay=t.int32();break}case 3:{o.contractCard=u.bilibili.polymer.contract.v1.ContractCard.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.polymer.contract.v1.ContractConfigReply)return t;let i=new u.bilibili.polymer.contract.v1.ContractConfigReply;if(t.isFollowDisplay!=null&&(i.isFollowDisplay=t.isFollowDisplay|0),t.isTripleDisplay!=null&&(i.isTripleDisplay=t.isTripleDisplay|0),t.contractCard!=null){if(typeof t.contractCard!="object")throw TypeError(".bilibili.polymer.contract.v1.ContractConfigReply.contractCard: object expected");i.contractCard=u.bilibili.polymer.contract.v1.ContractCard.fromObject(t.contractCard)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.isFollowDisplay=0,n.isTripleDisplay=0,n.contractCard=null),t.isFollowDisplay!=null&&t.hasOwnProperty("isFollowDisplay")&&(n.isFollowDisplay=t.isFollowDisplay),t.isTripleDisplay!=null&&t.hasOwnProperty("isTripleDisplay")&&(n.isTripleDisplay=t.isTripleDisplay),t.contractCard!=null&&t.hasOwnProperty("contractCard")&&(n.contractCard=u.bilibili.polymer.contract.v1.ContractCard.toObject(t.contractCard,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.polymer.contract.v1.ContractConfigReply"},e}(),c.ContractCard=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.subTitle=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.polymer.contract.v1.ContractCard)return t;let i=new u.bilibili.polymer.contract.v1.ContractCard;return t.title!=null&&(i.title=String(t.title)),t.subTitle!=null&&(i.subTitle=String(t.subTitle)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.title="",n.subTitle=""),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.subTitle!=null&&t.hasOwnProperty("subTitle")&&(n.subTitle=t.subTitle),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.polymer.contract.v1.ContractCard"},e}(),c}(),p}(),d.demo=function(){let p={};return p.v1=function(){let c={};return c.Demo=function(){function e(l,t,i){b.rpc.Service.call(this,l,t,i)}return(e.prototype=Object.create(b.rpc.Service.prototype)).constructor=e,e.create=function(t,i,n){return new this(t,i,n)},Object.defineProperty(e.prototype.helloWorld=function l(t,i){return this.rpcCall(l,u.bilibili.polymer.demo.v1.HelloWorldReq,u.bilibili.polymer.demo.v1.HelloWorldResp,t,i)},"name",{value:"HelloWorld"}),e}(),c.HelloWorldReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.Content=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.polymer.demo.v1.HelloWorldReq)return t;let i=new u.bilibili.polymer.demo.v1.HelloWorldReq;return t.Content!=null&&(i.Content=String(t.Content)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.Content=""),t.Content!=null&&t.hasOwnProperty("Content")&&(n.Content=t.Content),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.polymer.demo.v1.HelloWorldReq"},e}(),c.HelloWorldResp=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.Data=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.polymer.demo.v1.HelloWorldResp)return t;let i=new u.bilibili.polymer.demo.v1.HelloWorldResp;return t.Data!=null&&(i.Data=String(t.Data)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.Data=""),t.Data!=null&&t.hasOwnProperty("Data")&&(n.Data=t.Data),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.polymer.demo.v1.HelloWorldResp"},e}(),c}(),p}(),d.list=function(){let p={};return p.v1=function(){let c={};return c.List=function(){function e(l,t,i){b.rpc.Service.call(this,l,t,i)}return(e.prototype=Object.create(b.rpc.Service.prototype)).constructor=e,e.create=function(t,i,n){return new this(t,i,n)},Object.defineProperty(e.prototype.favoriteTab=function l(t,i){return this.rpcCall(l,u.bilibili.polymer.list.v1.FavoriteTabReq,u.bilibili.polymer.list.v1.FavoriteTabReply,t,i)},"name",{value:"FavoriteTab"}),Object.defineProperty(e.prototype.checkAccount=function l(t,i){return this.rpcCall(l,u.bilibili.polymer.list.v1.CheckAccountReq,u.bilibili.polymer.list.v1.CheckAccountReply,t,i)},"name",{value:"CheckAccount"}),e}(),c.FavoriteTabReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){default:t.skipType(a&7);break}}return o},e.fromObject=function(t){return t instanceof u.bilibili.polymer.list.v1.FavoriteTabReq?t:new u.bilibili.polymer.list.v1.FavoriteTabReq},e.toObject=function(){return{}},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.polymer.list.v1.FavoriteTabReq"},e}(),c.FavoriteTabReply=function(){function e(l){if(this.items=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.items&&o.items.length||(o.items=[]),o.items.push(u.bilibili.polymer.list.v1.FavoriteTabItem.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.polymer.list.v1.FavoriteTabReply)return t;let i=new u.bilibili.polymer.list.v1.FavoriteTabReply;if(t.items){if(!Array.isArray(t.items))throw TypeError(".bilibili.polymer.list.v1.FavoriteTabReply.items: array expected");i.items=[];for(let n=0;n>>3){case 1:{o.name=t.string();break}case 2:{o.uri=t.string();break}case 3:{o.type=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.polymer.list.v1.FavoriteTabItem)return t;let i=new u.bilibili.polymer.list.v1.FavoriteTabItem;return t.name!=null&&(i.name=String(t.name)),t.uri!=null&&(i.uri=String(t.uri)),t.type!=null&&(i.type=String(t.type)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.name="",n.uri="",n.type=""),t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),t.uri!=null&&t.hasOwnProperty("uri")&&(n.uri=t.uri),t.type!=null&&t.hasOwnProperty("type")&&(n.type=t.type),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.polymer.list.v1.FavoriteTabItem"},e}(),c.CheckAccountReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.uid=t.int64();break}case 2:{o.periods=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.polymer.list.v1.CheckAccountReq)return t;let i=new u.bilibili.polymer.list.v1.CheckAccountReq;return t.uid!=null&&(r.Long?(i.uid=r.Long.fromValue(t.uid)).unsigned=!1:typeof t.uid=="string"?i.uid=parseInt(t.uid,10):typeof t.uid=="number"?i.uid=t.uid:typeof t.uid=="object"&&(i.uid=new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber())),t.periods!=null&&(i.periods=String(t.periods)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.uid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.uid=i.longs===String?"0":0;n.periods=""}return t.uid!=null&&t.hasOwnProperty("uid")&&(typeof t.uid=="number"?n.uid=i.longs===String?String(t.uid):t.uid:n.uid=i.longs===String?r.Long.prototype.toString.call(t.uid):i.longs===Number?new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber():t.uid),t.periods!=null&&t.hasOwnProperty("periods")&&(n.periods=t.periods),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.polymer.list.v1.CheckAccountReq"},e}(),c.CheckAccountReply=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.isNew=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.polymer.list.v1.CheckAccountReply)return t;let i=new u.bilibili.polymer.list.v1.CheckAccountReply;return t.isNew!=null&&(i.isNew=!!t.isNew),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.isNew=!1),t.isNew!=null&&t.hasOwnProperty("isNew")&&(n.isNew=t.isNew),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.polymer.list.v1.CheckAccountReply"},e}(),c}(),p}(),d}(),O.relation=function(){let d={};return d.interface_=function(){let p={};return p.v1=function(){let c={};return c.RelationInterface=function(){function e(l,t,i){b.rpc.Service.call(this,l,t,i)}return(e.prototype=Object.create(b.rpc.Service.prototype)).constructor=e,e.create=function(t,i,n){return new this(t,i,n)},Object.defineProperty(e.prototype.atSearch=function l(t,i){return this.rpcCall(l,u.bilibili.relation.interface_.v1.AtSearchReq,u.bilibili.relation.interface_.v1.AtSearchReply,t,i)},"name",{value:"AtSearch"}),Object.defineProperty(e.prototype.modifyRelation=function l(t,i){return this.rpcCall(l,u.bilibili.relation.interface_.v1.FollowingReq,u.bilibili.relation.interface_.v1.ModifyRelationReply,t,i)},"name",{value:"ModifyRelation"}),e}(),c.AtSearchReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.mid=t.int64();break}case 2:{o.keyword=t.string();break}case 3:{o.scene=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.relation.interface_.v1.AtSearchReq)return t;let i=new u.bilibili.relation.interface_.v1.AtSearchReq;return t.mid!=null&&(r.Long?(i.mid=r.Long.fromValue(t.mid)).unsigned=!1:typeof t.mid=="string"?i.mid=parseInt(t.mid,10):typeof t.mid=="number"?i.mid=t.mid:typeof t.mid=="object"&&(i.mid=new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber())),t.keyword!=null&&(i.keyword=String(t.keyword)),t.scene!=null&&(i.scene=t.scene|0),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.mid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mid=i.longs===String?"0":0;n.keyword="",n.scene=0}return t.mid!=null&&t.hasOwnProperty("mid")&&(typeof t.mid=="number"?n.mid=i.longs===String?String(t.mid):t.mid:n.mid=i.longs===String?r.Long.prototype.toString.call(t.mid):i.longs===Number?new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber():t.mid),t.keyword!=null&&t.hasOwnProperty("keyword")&&(n.keyword=t.keyword),t.scene!=null&&t.hasOwnProperty("scene")&&(n.scene=t.scene),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.relation.interface_.v1.AtSearchReq"},e}(),c.AtItem=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.mid=t.int64();break}case 2:{o.name=t.string();break}case 3:{o.face=t.string();break}case 4:{o.fans=t.int32();break}case 5:{o.officialVerifyType=t.int32();break}case 6:{o.avatar=u.bilibili.dagw.component.avatar.v1.AvatarItem.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.relation.interface_.v1.AtItem)return t;let i=new u.bilibili.relation.interface_.v1.AtItem;if(t.mid!=null&&(r.Long?(i.mid=r.Long.fromValue(t.mid)).unsigned=!1:typeof t.mid=="string"?i.mid=parseInt(t.mid,10):typeof t.mid=="number"?i.mid=t.mid:typeof t.mid=="object"&&(i.mid=new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber())),t.name!=null&&(i.name=String(t.name)),t.face!=null&&(i.face=String(t.face)),t.fans!=null&&(i.fans=t.fans|0),t.officialVerifyType!=null&&(i.officialVerifyType=t.officialVerifyType|0),t.avatar!=null){if(typeof t.avatar!="object")throw TypeError(".bilibili.relation.interface_.v1.AtItem.avatar: object expected");i.avatar=u.bilibili.dagw.component.avatar.v1.AvatarItem.fromObject(t.avatar)}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.mid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mid=i.longs===String?"0":0;n.name="",n.face="",n.fans=0,n.officialVerifyType=0,n.avatar=null}return t.mid!=null&&t.hasOwnProperty("mid")&&(typeof t.mid=="number"?n.mid=i.longs===String?String(t.mid):t.mid:n.mid=i.longs===String?r.Long.prototype.toString.call(t.mid):i.longs===Number?new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber():t.mid),t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),t.face!=null&&t.hasOwnProperty("face")&&(n.face=t.face),t.fans!=null&&t.hasOwnProperty("fans")&&(n.fans=t.fans),t.officialVerifyType!=null&&t.hasOwnProperty("officialVerifyType")&&(n.officialVerifyType=t.officialVerifyType),t.avatar!=null&&t.hasOwnProperty("avatar")&&(n.avatar=u.bilibili.dagw.component.avatar.v1.AvatarItem.toObject(t.avatar,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.relation.interface_.v1.AtItem"},e}(),c.AtGroup=function(){function e(l){if(this.items=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.groupType=t.int32();break}case 2:{o.groupName=t.string();break}case 3:{o.items&&o.items.length||(o.items=[]),o.items.push(u.bilibili.relation.interface_.v1.AtItem.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.relation.interface_.v1.AtGroup)return t;let i=new u.bilibili.relation.interface_.v1.AtGroup;switch(t.groupType){default:if(typeof t.groupType=="number"){i.groupType=t.groupType;break}break;case"AT_GROUP_TYPE_DEFAULT":case 0:i.groupType=0;break;case"AT_GROUP_TYPE_RECENT":case 1:i.groupType=1;break;case"AT_GROUP_TYPE_FOLLOW":case 2:i.groupType=2;break;case"AT_GROUP_TYPE_FANS":case 3:i.groupType=3;break;case"AT_GROUP_TYPE_OTHERS":case 4:i.groupType=4;break}if(t.groupName!=null&&(i.groupName=String(t.groupName)),t.items){if(!Array.isArray(t.items))throw TypeError(".bilibili.relation.interface_.v1.AtGroup.items: array expected");i.items=[];for(let n=0;n>>3){case 1:{o.groups&&o.groups.length||(o.groups=[]),o.groups.push(u.bilibili.relation.interface_.v1.AtGroup.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.relation.interface_.v1.AtSearchReply)return t;let i=new u.bilibili.relation.interface_.v1.AtSearchReply;if(t.groups){if(!Array.isArray(t.groups))throw TypeError(".bilibili.relation.interface_.v1.AtSearchReply.groups: array expected");i.groups=[];for(let n=0;n>>3){case 1:{o.fid=t.int64();break}case 2:{o.act=t.int32();break}case 3:{o.source=t.uint32();break}case 4:{o.spmid=t.string();break}case 5:{o.extendContent=t.string();break}case 6:{o.fromSpmid=t.string();break}case 7:{o.fromScmid=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.relation.interface_.v1.FollowingReq)return t;let i=new u.bilibili.relation.interface_.v1.FollowingReq;switch(t.fid!=null&&(r.Long?(i.fid=r.Long.fromValue(t.fid)).unsigned=!1:typeof t.fid=="string"?i.fid=parseInt(t.fid,10):typeof t.fid=="number"?i.fid=t.fid:typeof t.fid=="object"&&(i.fid=new r.LongBits(t.fid.low>>>0,t.fid.high>>>0).toNumber())),t.act){default:if(typeof t.act=="number"){i.act=t.act;break}break;case"ACT_NA":case 0:i.act=0;break;case"ACT_ADD_FOLLOWING":case 1:i.act=1;break;case"ACT_DEL_FOLLOWING":case 2:i.act=2;break;case"ACT_ADD_WHISPER":case 3:i.act=3;break;case"ACT_DEL_WHISPER":case 4:i.act=4;break;case"ACT_ADD_BLACK":case 5:i.act=5;break;case"ACT_DEL_BLACK":case 6:i.act=6;break;case"ACT_DEL_FOLLOWER":case 7:i.act=7;break}return t.source!=null&&(i.source=t.source>>>0),t.spmid!=null&&(i.spmid=String(t.spmid)),t.extendContent!=null&&(i.extendContent=String(t.extendContent)),t.fromSpmid!=null&&(i.fromSpmid=String(t.fromSpmid)),t.fromScmid!=null&&(i.fromScmid=String(t.fromScmid)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.fid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.fid=i.longs===String?"0":0;n.act=i.enums===String?"ACT_NA":0,n.source=0,n.spmid="",n.extendContent="",n.fromSpmid="",n.fromScmid=""}return t.fid!=null&&t.hasOwnProperty("fid")&&(typeof t.fid=="number"?n.fid=i.longs===String?String(t.fid):t.fid:n.fid=i.longs===String?r.Long.prototype.toString.call(t.fid):i.longs===Number?new r.LongBits(t.fid.low>>>0,t.fid.high>>>0).toNumber():t.fid),t.act!=null&&t.hasOwnProperty("act")&&(n.act=i.enums===String?u.bilibili.relation.interface_.v1.Act[t.act]===void 0?t.act:u.bilibili.relation.interface_.v1.Act[t.act]:t.act),t.source!=null&&t.hasOwnProperty("source")&&(n.source=t.source),t.spmid!=null&&t.hasOwnProperty("spmid")&&(n.spmid=t.spmid),t.extendContent!=null&&t.hasOwnProperty("extendContent")&&(n.extendContent=t.extendContent),t.fromSpmid!=null&&t.hasOwnProperty("fromSpmid")&&(n.fromSpmid=t.fromSpmid),t.fromScmid!=null&&t.hasOwnProperty("fromScmid")&&(n.fromScmid=t.fromScmid),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.relation.interface_.v1.FollowingReq"},e}(),c.ModifyRelationReply=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){default:t.skipType(a&7);break}}return o},e.fromObject=function(t){return t instanceof u.bilibili.relation.interface_.v1.ModifyRelationReply?t:new u.bilibili.relation.interface_.v1.ModifyRelationReply},e.toObject=function(){return{}},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.relation.interface_.v1.ModifyRelationReply"},e}(),c}(),p}(),d}(),O.render=function(){let d={};return d.Render=function(){function p(c){if(c)for(let e=Object.keys(c),l=0;l>>3){case 1:{i.code=e.int64();break}case 2:{i.message=e.string();break}case 3:{i.ttl=e.uint64();break}case 4:{i.data=u.google.protobuf.Any.decode(e,e.uint32());break}default:e.skipType(n&7);break}}return i},p.fromObject=function(e){if(e instanceof u.bilibili.render.Render)return e;let l=new u.bilibili.render.Render;if(e.code!=null&&(r.Long?(l.code=r.Long.fromValue(e.code)).unsigned=!1:typeof e.code=="string"?l.code=parseInt(e.code,10):typeof e.code=="number"?l.code=e.code:typeof e.code=="object"&&(l.code=new r.LongBits(e.code.low>>>0,e.code.high>>>0).toNumber())),e.message!=null&&(l.message=String(e.message)),e.ttl!=null&&(r.Long?(l.ttl=r.Long.fromValue(e.ttl)).unsigned=!0:typeof e.ttl=="string"?l.ttl=parseInt(e.ttl,10):typeof e.ttl=="number"?l.ttl=e.ttl:typeof e.ttl=="object"&&(l.ttl=new r.LongBits(e.ttl.low>>>0,e.ttl.high>>>0).toNumber(!0))),e.data!=null){if(typeof e.data!="object")throw TypeError(".bilibili.render.Render.data: object expected");l.data=u.google.protobuf.Any.fromObject(e.data)}return l},p.toObject=function(e,l){l||(l={});let t={};if(l.defaults){if(r.Long){let i=new r.Long(0,0,!1);t.code=l.longs===String?i.toString():l.longs===Number?i.toNumber():i}else t.code=l.longs===String?"0":0;if(t.message="",r.Long){let i=new r.Long(0,0,!0);t.ttl=l.longs===String?i.toString():l.longs===Number?i.toNumber():i}else t.ttl=l.longs===String?"0":0;t.data=null}return e.code!=null&&e.hasOwnProperty("code")&&(typeof e.code=="number"?t.code=l.longs===String?String(e.code):e.code:t.code=l.longs===String?r.Long.prototype.toString.call(e.code):l.longs===Number?new r.LongBits(e.code.low>>>0,e.code.high>>>0).toNumber():e.code),e.message!=null&&e.hasOwnProperty("message")&&(t.message=e.message),e.ttl!=null&&e.hasOwnProperty("ttl")&&(typeof e.ttl=="number"?t.ttl=l.longs===String?String(e.ttl):e.ttl:t.ttl=l.longs===String?r.Long.prototype.toString.call(e.ttl):l.longs===Number?new r.LongBits(e.ttl.low>>>0,e.ttl.high>>>0).toNumber(!0):e.ttl),e.data!=null&&e.hasOwnProperty("data")&&(t.data=u.google.protobuf.Any.toObject(e.data,l)),t},p.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},p.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/bilibili.render.Render"},p}(),d}(),O.rpc=function(){let d={};return d.Status=function(){function p(c){if(this.details=[],c)for(let e=Object.keys(c),l=0;l>>3){case 1:{i.code=e.int32();break}case 2:{i.message=e.string();break}case 3:{i.details&&i.details.length||(i.details=[]),i.details.push(u.google.protobuf.Any.decode(e,e.uint32()));break}default:e.skipType(n&7);break}}return i},p.fromObject=function(e){if(e instanceof u.bilibili.rpc.Status)return e;let l=new u.bilibili.rpc.Status;if(e.code!=null&&(l.code=e.code|0),e.message!=null&&(l.message=String(e.message)),e.details){if(!Array.isArray(e.details))throw TypeError(".bilibili.rpc.Status.details: array expected");l.details=[];for(let t=0;t>>3){case 1:{o.viewType=t.int64();break}case 2:{o.cardType=t.int64();break}case 3:{o.objectId=t.int64();break}case 4:{o.fromSpmid=t.string();break}case 5:{o.spmid=t.string();break}case 6:{o.autoPlay=t.string();break}case 7:{o.searchTrace=t.int64();break}case 8:{o.keyword=t.string();break}case 9:{o.term=t.string();break}case 10:{o.keywordFrom=t.string();break}case 11:{o.extra=t.string();break}case 12:{o.accessKey=t.string();break}case 13:{o.sugFrom=t.string();break}case 14:{o.isAd=t.bool();break}case 15:{o.videoId=t.int64();break}case 16:{o.progress=t.int64();break}case 17:{o.serialAid=t.int64();break}case 18:{o.fourk=t.int32();break}case 19:{o.eightk=t.int32();break}case 20:{o.upMid=t.int64();break}case 21:{o.playStyle=t.int64();break}case 22:{o.device=u.bilibili.tv.interface_.v1.Device.decode(t,t.uint32());break}case 23:{o.comeFromOutside=t.int32();break}case 24:{o.stay=t.int32();break}case 25:{o.childLock=t.int32();break}case 26:{o.projNew=t.bool();break}case 27:{o.mobiAccessKey=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.tv.interface_.v1.CardViewV2Req)return t;let i=new u.bilibili.tv.interface_.v1.CardViewV2Req;if(t.viewType!=null&&(r.Long?(i.viewType=r.Long.fromValue(t.viewType)).unsigned=!1:typeof t.viewType=="string"?i.viewType=parseInt(t.viewType,10):typeof t.viewType=="number"?i.viewType=t.viewType:typeof t.viewType=="object"&&(i.viewType=new r.LongBits(t.viewType.low>>>0,t.viewType.high>>>0).toNumber())),t.cardType!=null&&(r.Long?(i.cardType=r.Long.fromValue(t.cardType)).unsigned=!1:typeof t.cardType=="string"?i.cardType=parseInt(t.cardType,10):typeof t.cardType=="number"?i.cardType=t.cardType:typeof t.cardType=="object"&&(i.cardType=new r.LongBits(t.cardType.low>>>0,t.cardType.high>>>0).toNumber())),t.objectId!=null&&(r.Long?(i.objectId=r.Long.fromValue(t.objectId)).unsigned=!1:typeof t.objectId=="string"?i.objectId=parseInt(t.objectId,10):typeof t.objectId=="number"?i.objectId=t.objectId:typeof t.objectId=="object"&&(i.objectId=new r.LongBits(t.objectId.low>>>0,t.objectId.high>>>0).toNumber())),t.fromSpmid!=null&&(i.fromSpmid=String(t.fromSpmid)),t.spmid!=null&&(i.spmid=String(t.spmid)),t.autoPlay!=null&&(i.autoPlay=String(t.autoPlay)),t.searchTrace!=null&&(r.Long?(i.searchTrace=r.Long.fromValue(t.searchTrace)).unsigned=!1:typeof t.searchTrace=="string"?i.searchTrace=parseInt(t.searchTrace,10):typeof t.searchTrace=="number"?i.searchTrace=t.searchTrace:typeof t.searchTrace=="object"&&(i.searchTrace=new r.LongBits(t.searchTrace.low>>>0,t.searchTrace.high>>>0).toNumber())),t.keyword!=null&&(i.keyword=String(t.keyword)),t.term!=null&&(i.term=String(t.term)),t.keywordFrom!=null&&(i.keywordFrom=String(t.keywordFrom)),t.extra!=null&&(i.extra=String(t.extra)),t.accessKey!=null&&(i.accessKey=String(t.accessKey)),t.sugFrom!=null&&(i.sugFrom=String(t.sugFrom)),t.isAd!=null&&(i.isAd=!!t.isAd),t.videoId!=null&&(r.Long?(i.videoId=r.Long.fromValue(t.videoId)).unsigned=!1:typeof t.videoId=="string"?i.videoId=parseInt(t.videoId,10):typeof t.videoId=="number"?i.videoId=t.videoId:typeof t.videoId=="object"&&(i.videoId=new r.LongBits(t.videoId.low>>>0,t.videoId.high>>>0).toNumber())),t.progress!=null&&(r.Long?(i.progress=r.Long.fromValue(t.progress)).unsigned=!1:typeof t.progress=="string"?i.progress=parseInt(t.progress,10):typeof t.progress=="number"?i.progress=t.progress:typeof t.progress=="object"&&(i.progress=new r.LongBits(t.progress.low>>>0,t.progress.high>>>0).toNumber())),t.serialAid!=null&&(r.Long?(i.serialAid=r.Long.fromValue(t.serialAid)).unsigned=!1:typeof t.serialAid=="string"?i.serialAid=parseInt(t.serialAid,10):typeof t.serialAid=="number"?i.serialAid=t.serialAid:typeof t.serialAid=="object"&&(i.serialAid=new r.LongBits(t.serialAid.low>>>0,t.serialAid.high>>>0).toNumber())),t.fourk!=null&&(i.fourk=t.fourk|0),t.eightk!=null&&(i.eightk=t.eightk|0),t.upMid!=null&&(r.Long?(i.upMid=r.Long.fromValue(t.upMid)).unsigned=!1:typeof t.upMid=="string"?i.upMid=parseInt(t.upMid,10):typeof t.upMid=="number"?i.upMid=t.upMid:typeof t.upMid=="object"&&(i.upMid=new r.LongBits(t.upMid.low>>>0,t.upMid.high>>>0).toNumber())),t.playStyle!=null&&(r.Long?(i.playStyle=r.Long.fromValue(t.playStyle)).unsigned=!1:typeof t.playStyle=="string"?i.playStyle=parseInt(t.playStyle,10):typeof t.playStyle=="number"?i.playStyle=t.playStyle:typeof t.playStyle=="object"&&(i.playStyle=new r.LongBits(t.playStyle.low>>>0,t.playStyle.high>>>0).toNumber())),t.device!=null){if(typeof t.device!="object")throw TypeError(".bilibili.tv.interface_.v1.CardViewV2Req.device: object expected");i.device=u.bilibili.tv.interface_.v1.Device.fromObject(t.device)}return t.comeFromOutside!=null&&(i.comeFromOutside=t.comeFromOutside|0),t.stay!=null&&(i.stay=t.stay|0),t.childLock!=null&&(i.childLock=t.childLock|0),t.projNew!=null&&(i.projNew=!!t.projNew),t.mobiAccessKey!=null&&(i.mobiAccessKey=String(t.mobiAccessKey)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.viewType=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.viewType=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.cardType=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.cardType=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.objectId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.objectId=i.longs===String?"0":0;if(n.fromSpmid="",n.spmid="",n.autoPlay="",r.Long){let o=new r.Long(0,0,!1);n.searchTrace=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.searchTrace=i.longs===String?"0":0;if(n.keyword="",n.term="",n.keywordFrom="",n.extra="",n.accessKey="",n.sugFrom="",n.isAd=!1,r.Long){let o=new r.Long(0,0,!1);n.videoId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.videoId=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.progress=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.progress=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.serialAid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.serialAid=i.longs===String?"0":0;if(n.fourk=0,n.eightk=0,r.Long){let o=new r.Long(0,0,!1);n.upMid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.upMid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.playStyle=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.playStyle=i.longs===String?"0":0;n.device=null,n.comeFromOutside=0,n.stay=0,n.childLock=0,n.projNew=!1,n.mobiAccessKey=""}return t.viewType!=null&&t.hasOwnProperty("viewType")&&(typeof t.viewType=="number"?n.viewType=i.longs===String?String(t.viewType):t.viewType:n.viewType=i.longs===String?r.Long.prototype.toString.call(t.viewType):i.longs===Number?new r.LongBits(t.viewType.low>>>0,t.viewType.high>>>0).toNumber():t.viewType),t.cardType!=null&&t.hasOwnProperty("cardType")&&(typeof t.cardType=="number"?n.cardType=i.longs===String?String(t.cardType):t.cardType:n.cardType=i.longs===String?r.Long.prototype.toString.call(t.cardType):i.longs===Number?new r.LongBits(t.cardType.low>>>0,t.cardType.high>>>0).toNumber():t.cardType),t.objectId!=null&&t.hasOwnProperty("objectId")&&(typeof t.objectId=="number"?n.objectId=i.longs===String?String(t.objectId):t.objectId:n.objectId=i.longs===String?r.Long.prototype.toString.call(t.objectId):i.longs===Number?new r.LongBits(t.objectId.low>>>0,t.objectId.high>>>0).toNumber():t.objectId),t.fromSpmid!=null&&t.hasOwnProperty("fromSpmid")&&(n.fromSpmid=t.fromSpmid),t.spmid!=null&&t.hasOwnProperty("spmid")&&(n.spmid=t.spmid),t.autoPlay!=null&&t.hasOwnProperty("autoPlay")&&(n.autoPlay=t.autoPlay),t.searchTrace!=null&&t.hasOwnProperty("searchTrace")&&(typeof t.searchTrace=="number"?n.searchTrace=i.longs===String?String(t.searchTrace):t.searchTrace:n.searchTrace=i.longs===String?r.Long.prototype.toString.call(t.searchTrace):i.longs===Number?new r.LongBits(t.searchTrace.low>>>0,t.searchTrace.high>>>0).toNumber():t.searchTrace),t.keyword!=null&&t.hasOwnProperty("keyword")&&(n.keyword=t.keyword),t.term!=null&&t.hasOwnProperty("term")&&(n.term=t.term),t.keywordFrom!=null&&t.hasOwnProperty("keywordFrom")&&(n.keywordFrom=t.keywordFrom),t.extra!=null&&t.hasOwnProperty("extra")&&(n.extra=t.extra),t.accessKey!=null&&t.hasOwnProperty("accessKey")&&(n.accessKey=t.accessKey),t.sugFrom!=null&&t.hasOwnProperty("sugFrom")&&(n.sugFrom=t.sugFrom),t.isAd!=null&&t.hasOwnProperty("isAd")&&(n.isAd=t.isAd),t.videoId!=null&&t.hasOwnProperty("videoId")&&(typeof t.videoId=="number"?n.videoId=i.longs===String?String(t.videoId):t.videoId:n.videoId=i.longs===String?r.Long.prototype.toString.call(t.videoId):i.longs===Number?new r.LongBits(t.videoId.low>>>0,t.videoId.high>>>0).toNumber():t.videoId),t.progress!=null&&t.hasOwnProperty("progress")&&(typeof t.progress=="number"?n.progress=i.longs===String?String(t.progress):t.progress:n.progress=i.longs===String?r.Long.prototype.toString.call(t.progress):i.longs===Number?new r.LongBits(t.progress.low>>>0,t.progress.high>>>0).toNumber():t.progress),t.serialAid!=null&&t.hasOwnProperty("serialAid")&&(typeof t.serialAid=="number"?n.serialAid=i.longs===String?String(t.serialAid):t.serialAid:n.serialAid=i.longs===String?r.Long.prototype.toString.call(t.serialAid):i.longs===Number?new r.LongBits(t.serialAid.low>>>0,t.serialAid.high>>>0).toNumber():t.serialAid),t.fourk!=null&&t.hasOwnProperty("fourk")&&(n.fourk=t.fourk),t.eightk!=null&&t.hasOwnProperty("eightk")&&(n.eightk=t.eightk),t.upMid!=null&&t.hasOwnProperty("upMid")&&(typeof t.upMid=="number"?n.upMid=i.longs===String?String(t.upMid):t.upMid:n.upMid=i.longs===String?r.Long.prototype.toString.call(t.upMid):i.longs===Number?new r.LongBits(t.upMid.low>>>0,t.upMid.high>>>0).toNumber():t.upMid),t.playStyle!=null&&t.hasOwnProperty("playStyle")&&(typeof t.playStyle=="number"?n.playStyle=i.longs===String?String(t.playStyle):t.playStyle:n.playStyle=i.longs===String?r.Long.prototype.toString.call(t.playStyle):i.longs===Number?new r.LongBits(t.playStyle.low>>>0,t.playStyle.high>>>0).toNumber():t.playStyle),t.device!=null&&t.hasOwnProperty("device")&&(n.device=u.bilibili.tv.interface_.v1.Device.toObject(t.device,i)),t.comeFromOutside!=null&&t.hasOwnProperty("comeFromOutside")&&(n.comeFromOutside=t.comeFromOutside),t.stay!=null&&t.hasOwnProperty("stay")&&(n.stay=t.stay),t.childLock!=null&&t.hasOwnProperty("childLock")&&(n.childLock=t.childLock),t.projNew!=null&&t.hasOwnProperty("projNew")&&(n.projNew=t.projNew),t.mobiAccessKey!=null&&t.hasOwnProperty("mobiAccessKey")&&(n.mobiAccessKey=t.mobiAccessKey),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.tv.interface_.v1.CardViewV2Req"},e}(),c.Device=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.buvid=t.string();break}case 2:{o.build=t.int32();break}case 3:{o.platform=t.string();break}case 4:{o.mobiApp=t.string();break}case 5:{o.sysVer=t.int64();break}case 6:{o.channel=t.string();break}case 7:{o.brand=t.string();break}case 8:{o.model=t.string();break}case 9:{o.brvd=t.string();break}case 10:{o.brr=t.string();break}case 11:{o.memory=t.int64();break}case 12:{o.cpu=t.string();break}case 13:{o.mpiId=t.string();break}case 14:{o.mpiType=t.string();break}case 15:{o.mpiModel=t.string();break}case 16:{o.teenagerMode=t.int64();break}case 17:{o.guestAccessKey=t.string();break}case 18:{o.modeSwitch=t.bool();break}case 19:{o.guestId=t.int64();break}case 20:{o.buildSn=t.int64();break}case 21:{o.fromOut=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.tv.interface_.v1.Device)return t;let i=new u.bilibili.tv.interface_.v1.Device;return t.buvid!=null&&(i.buvid=String(t.buvid)),t.build!=null&&(i.build=t.build|0),t.platform!=null&&(i.platform=String(t.platform)),t.mobiApp!=null&&(i.mobiApp=String(t.mobiApp)),t.sysVer!=null&&(r.Long?(i.sysVer=r.Long.fromValue(t.sysVer)).unsigned=!1:typeof t.sysVer=="string"?i.sysVer=parseInt(t.sysVer,10):typeof t.sysVer=="number"?i.sysVer=t.sysVer:typeof t.sysVer=="object"&&(i.sysVer=new r.LongBits(t.sysVer.low>>>0,t.sysVer.high>>>0).toNumber())),t.channel!=null&&(i.channel=String(t.channel)),t.brand!=null&&(i.brand=String(t.brand)),t.model!=null&&(i.model=String(t.model)),t.brvd!=null&&(i.brvd=String(t.brvd)),t.brr!=null&&(i.brr=String(t.brr)),t.memory!=null&&(r.Long?(i.memory=r.Long.fromValue(t.memory)).unsigned=!1:typeof t.memory=="string"?i.memory=parseInt(t.memory,10):typeof t.memory=="number"?i.memory=t.memory:typeof t.memory=="object"&&(i.memory=new r.LongBits(t.memory.low>>>0,t.memory.high>>>0).toNumber())),t.cpu!=null&&(i.cpu=String(t.cpu)),t.mpiId!=null&&(i.mpiId=String(t.mpiId)),t.mpiType!=null&&(i.mpiType=String(t.mpiType)),t.mpiModel!=null&&(i.mpiModel=String(t.mpiModel)),t.teenagerMode!=null&&(r.Long?(i.teenagerMode=r.Long.fromValue(t.teenagerMode)).unsigned=!1:typeof t.teenagerMode=="string"?i.teenagerMode=parseInt(t.teenagerMode,10):typeof t.teenagerMode=="number"?i.teenagerMode=t.teenagerMode:typeof t.teenagerMode=="object"&&(i.teenagerMode=new r.LongBits(t.teenagerMode.low>>>0,t.teenagerMode.high>>>0).toNumber())),t.guestAccessKey!=null&&(i.guestAccessKey=String(t.guestAccessKey)),t.modeSwitch!=null&&(i.modeSwitch=!!t.modeSwitch),t.guestId!=null&&(r.Long?(i.guestId=r.Long.fromValue(t.guestId)).unsigned=!1:typeof t.guestId=="string"?i.guestId=parseInt(t.guestId,10):typeof t.guestId=="number"?i.guestId=t.guestId:typeof t.guestId=="object"&&(i.guestId=new r.LongBits(t.guestId.low>>>0,t.guestId.high>>>0).toNumber())),t.buildSn!=null&&(r.Long?(i.buildSn=r.Long.fromValue(t.buildSn)).unsigned=!1:typeof t.buildSn=="string"?i.buildSn=parseInt(t.buildSn,10):typeof t.buildSn=="number"?i.buildSn=t.buildSn:typeof t.buildSn=="object"&&(i.buildSn=new r.LongBits(t.buildSn.low>>>0,t.buildSn.high>>>0).toNumber())),t.fromOut!=null&&(i.fromOut=String(t.fromOut)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.buvid="",n.build=0,n.platform="",n.mobiApp="",r.Long){let o=new r.Long(0,0,!1);n.sysVer=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.sysVer=i.longs===String?"0":0;if(n.channel="",n.brand="",n.model="",n.brvd="",n.brr="",r.Long){let o=new r.Long(0,0,!1);n.memory=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.memory=i.longs===String?"0":0;if(n.cpu="",n.mpiId="",n.mpiType="",n.mpiModel="",r.Long){let o=new r.Long(0,0,!1);n.teenagerMode=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.teenagerMode=i.longs===String?"0":0;if(n.guestAccessKey="",n.modeSwitch=!1,r.Long){let o=new r.Long(0,0,!1);n.guestId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.guestId=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.buildSn=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.buildSn=i.longs===String?"0":0;n.fromOut=""}return t.buvid!=null&&t.hasOwnProperty("buvid")&&(n.buvid=t.buvid),t.build!=null&&t.hasOwnProperty("build")&&(n.build=t.build),t.platform!=null&&t.hasOwnProperty("platform")&&(n.platform=t.platform),t.mobiApp!=null&&t.hasOwnProperty("mobiApp")&&(n.mobiApp=t.mobiApp),t.sysVer!=null&&t.hasOwnProperty("sysVer")&&(typeof t.sysVer=="number"?n.sysVer=i.longs===String?String(t.sysVer):t.sysVer:n.sysVer=i.longs===String?r.Long.prototype.toString.call(t.sysVer):i.longs===Number?new r.LongBits(t.sysVer.low>>>0,t.sysVer.high>>>0).toNumber():t.sysVer),t.channel!=null&&t.hasOwnProperty("channel")&&(n.channel=t.channel),t.brand!=null&&t.hasOwnProperty("brand")&&(n.brand=t.brand),t.model!=null&&t.hasOwnProperty("model")&&(n.model=t.model),t.brvd!=null&&t.hasOwnProperty("brvd")&&(n.brvd=t.brvd),t.brr!=null&&t.hasOwnProperty("brr")&&(n.brr=t.brr),t.memory!=null&&t.hasOwnProperty("memory")&&(typeof t.memory=="number"?n.memory=i.longs===String?String(t.memory):t.memory:n.memory=i.longs===String?r.Long.prototype.toString.call(t.memory):i.longs===Number?new r.LongBits(t.memory.low>>>0,t.memory.high>>>0).toNumber():t.memory),t.cpu!=null&&t.hasOwnProperty("cpu")&&(n.cpu=t.cpu),t.mpiId!=null&&t.hasOwnProperty("mpiId")&&(n.mpiId=t.mpiId),t.mpiType!=null&&t.hasOwnProperty("mpiType")&&(n.mpiType=t.mpiType),t.mpiModel!=null&&t.hasOwnProperty("mpiModel")&&(n.mpiModel=t.mpiModel),t.teenagerMode!=null&&t.hasOwnProperty("teenagerMode")&&(typeof t.teenagerMode=="number"?n.teenagerMode=i.longs===String?String(t.teenagerMode):t.teenagerMode:n.teenagerMode=i.longs===String?r.Long.prototype.toString.call(t.teenagerMode):i.longs===Number?new r.LongBits(t.teenagerMode.low>>>0,t.teenagerMode.high>>>0).toNumber():t.teenagerMode),t.guestAccessKey!=null&&t.hasOwnProperty("guestAccessKey")&&(n.guestAccessKey=t.guestAccessKey),t.modeSwitch!=null&&t.hasOwnProperty("modeSwitch")&&(n.modeSwitch=t.modeSwitch),t.guestId!=null&&t.hasOwnProperty("guestId")&&(typeof t.guestId=="number"?n.guestId=i.longs===String?String(t.guestId):t.guestId:n.guestId=i.longs===String?r.Long.prototype.toString.call(t.guestId):i.longs===Number?new r.LongBits(t.guestId.low>>>0,t.guestId.high>>>0).toNumber():t.guestId),t.buildSn!=null&&t.hasOwnProperty("buildSn")&&(typeof t.buildSn=="number"?n.buildSn=i.longs===String?String(t.buildSn):t.buildSn:n.buildSn=i.longs===String?r.Long.prototype.toString.call(t.buildSn):i.longs===Number?new r.LongBits(t.buildSn.low>>>0,t.buildSn.high>>>0).toNumber():t.buildSn),t.fromOut!=null&&t.hasOwnProperty("fromOut")&&(n.fromOut=t.fromOut),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.tv.interface_.v1.Device"},e}(),c.CardViewV2Reply=function(){function e(l){if(this.jumps=[],this.labels=[],this.highLight=[],this.playlistTab=[],this.playList=[],this.endpageButton=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.cardType=t.int64();break}case 2:{o.cardFrom=t.int64();break}case 3:{o.attribute=t.int64();break}case 4:{o.cardId=t.int64();break}case 5:{o.title=t.string();break}case 6:{o.hoverTitle=t.string();break}case 7:{o.subtitle=t.string();break}case 8:{o.subtitle2=t.string();break}case 9:{o.hoverSubtitle=t.string();break}case 10:{o.horizontalUrl=t.string();break}case 11:{o.verticalUrl=t.string();break}case 12:{o.desc=t.string();break}case 13:{o.watchProgress=u.bilibili.tv.interface_.v1.WatchProgressV2.decode(t,t.uint32());break}case 14:{o.catalog=u.bilibili.tv.interface_.v1.Catalog.decode(t,t.uint32());break}case 15:{o.jumps&&o.jumps.length||(o.jumps=[]),o.jumps.push(u.bilibili.tv.interface_.v1.Jumps.decode(t,t.uint32()));break}case 16:{o.cornermark=u.bilibili.tv.interface_.v1.Labels.decode(t,t.uint32());break}case 17:{o.labels&&o.labels.length||(o.labels=[]),o.labels.push(u.bilibili.tv.interface_.v1.Labels.decode(t,t.uint32()));break}case 18:{o.uploader=u.bilibili.tv.interface_.v1.Uploader.decode(t,t.uint32());break}case 19:{o.payment=u.bilibili.tv.interface_.v1.PaymentV2.decode(t,t.uint32());break}case 20:{o.autoPlay=u.bilibili.tv.interface_.v1.AutoPlay.decode(t,t.uint32());break}case 21:{o.cheeseExt=u.bilibili.tv.interface_.v1.CheeseExt.decode(t,t.uint32());break}case 22:{o.pgcExt=u.bilibili.tv.interface_.v1.PgcExt.decode(t,t.uint32());break}case 23:{o.ugcExt=u.bilibili.tv.interface_.v1.UgcExt.decode(t,t.uint32());break}case 24:{o.liveExt=u.bilibili.tv.interface_.v1.LiveExt.decode(t,t.uint32());break}case 25:{o.adExt=u.bilibili.tv.interface_.v1.AdExtra.decode(t,t.uint32());break}case 26:{o.esportExt=u.bilibili.tv.interface_.v1.EsportExt.decode(t,t.uint32());break}case 27:{o.serialExt=u.bilibili.tv.interface_.v1.SerialExt.decode(t,t.uint32());break}case 28:{o.multiplePageCount=t.int64();break}case 29:{o.schema=t.string();break}case 30:{o.recommendSceneCard=u.bilibili.tv.interface_.v1.SceneCard.decode(t,t.uint32());break}case 31:{o.userProfileInternalTrackId=t.int64();break}case 32:{o.toast=u.bilibili.tv.interface_.v1.ViewToast.decode(t,t.uint32());break}case 33:{o.searchExt=u.bilibili.tv.interface_.v1.SearchExt.decode(t,t.uint32());break}case 34:{o.shareExt=u.bilibili.tv.interface_.v1.ShareExt.decode(t,t.uint32());break}case 35:{o.ogvCollection=u.bilibili.tv.interface_.v1.OgvCollection.decode(t,t.uint32());break}case 36:{o.playScenePage=u.bilibili.tv.interface_.v1.PlayScenePageViewV2.decode(t,t.uint32());break}case 37:{o.playSceneCard=u.bilibili.tv.interface_.v1.SceneCard.decode(t,t.uint32());break}case 38:{o.highLight&&o.highLight.length||(o.highLight=[]),o.highLight.push(u.bilibili.tv.interface_.v1.HLRange.decode(t,t.uint32()));break}case 39:{o.infocExt=u.bilibili.tv.interface_.v1.InfocExt.decode(t,t.uint32());break}case 40:{o.playlistTab&&o.playlistTab.length||(o.playlistTab=[]),o.playlistTab.push(u.bilibili.tv.interface_.v1.PlaylistTab.decode(t,t.uint32()));break}case 41:{o.playList&&o.playList.length||(o.playList=[]),o.playList.push(u.bilibili.tv.interface_.v1.CardViewPlayListResp.decode(t,t.uint32()));break}case 42:{o.endpageButton&&o.endpageButton.length||(o.endpageButton=[]),o.endpageButton.push(u.bilibili.tv.interface_.v1.Button.decode(t,t.uint32()));break}case 43:{o.shopExt=u.bilibili.tv.interface_.v1.ShopExt.decode(t,t.uint32());break}case 44:{o.projExt=u.bilibili.tv.interface_.v1.ProjExt.decode(t,t.uint32());break}case 45:{o.recommendSceneCardStr=t.string();break}case 46:{o.playScenePageStr=t.string();break}case 47:{o.playSceneCardStr=t.string();break}case 48:{o.jumpLine=u.bilibili.tv.interface_.v1.JumpLine.decode(t,t.uint32());break}case 49:{o.projExtra=u.bilibili.tv.interface_.v1.MediaExtra.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.tv.interface_.v1.CardViewV2Reply)return t;let i=new u.bilibili.tv.interface_.v1.CardViewV2Reply;if(t.cardType!=null&&(r.Long?(i.cardType=r.Long.fromValue(t.cardType)).unsigned=!1:typeof t.cardType=="string"?i.cardType=parseInt(t.cardType,10):typeof t.cardType=="number"?i.cardType=t.cardType:typeof t.cardType=="object"&&(i.cardType=new r.LongBits(t.cardType.low>>>0,t.cardType.high>>>0).toNumber())),t.cardFrom!=null&&(r.Long?(i.cardFrom=r.Long.fromValue(t.cardFrom)).unsigned=!1:typeof t.cardFrom=="string"?i.cardFrom=parseInt(t.cardFrom,10):typeof t.cardFrom=="number"?i.cardFrom=t.cardFrom:typeof t.cardFrom=="object"&&(i.cardFrom=new r.LongBits(t.cardFrom.low>>>0,t.cardFrom.high>>>0).toNumber())),t.attribute!=null&&(r.Long?(i.attribute=r.Long.fromValue(t.attribute)).unsigned=!1:typeof t.attribute=="string"?i.attribute=parseInt(t.attribute,10):typeof t.attribute=="number"?i.attribute=t.attribute:typeof t.attribute=="object"&&(i.attribute=new r.LongBits(t.attribute.low>>>0,t.attribute.high>>>0).toNumber())),t.cardId!=null&&(r.Long?(i.cardId=r.Long.fromValue(t.cardId)).unsigned=!1:typeof t.cardId=="string"?i.cardId=parseInt(t.cardId,10):typeof t.cardId=="number"?i.cardId=t.cardId:typeof t.cardId=="object"&&(i.cardId=new r.LongBits(t.cardId.low>>>0,t.cardId.high>>>0).toNumber())),t.title!=null&&(i.title=String(t.title)),t.hoverTitle!=null&&(i.hoverTitle=String(t.hoverTitle)),t.subtitle!=null&&(i.subtitle=String(t.subtitle)),t.subtitle2!=null&&(i.subtitle2=String(t.subtitle2)),t.hoverSubtitle!=null&&(i.hoverSubtitle=String(t.hoverSubtitle)),t.horizontalUrl!=null&&(i.horizontalUrl=String(t.horizontalUrl)),t.verticalUrl!=null&&(i.verticalUrl=String(t.verticalUrl)),t.desc!=null&&(i.desc=String(t.desc)),t.watchProgress!=null){if(typeof t.watchProgress!="object")throw TypeError(".bilibili.tv.interface_.v1.CardViewV2Reply.watchProgress: object expected");i.watchProgress=u.bilibili.tv.interface_.v1.WatchProgressV2.fromObject(t.watchProgress)}if(t.catalog!=null){if(typeof t.catalog!="object")throw TypeError(".bilibili.tv.interface_.v1.CardViewV2Reply.catalog: object expected");i.catalog=u.bilibili.tv.interface_.v1.Catalog.fromObject(t.catalog)}if(t.jumps){if(!Array.isArray(t.jumps))throw TypeError(".bilibili.tv.interface_.v1.CardViewV2Reply.jumps: array expected");i.jumps=[];for(let n=0;n>>0,t.multiplePageCount.high>>>0).toNumber())),t.schema!=null&&(i.schema=String(t.schema)),t.recommendSceneCard!=null){if(typeof t.recommendSceneCard!="object")throw TypeError(".bilibili.tv.interface_.v1.CardViewV2Reply.recommendSceneCard: object expected");i.recommendSceneCard=u.bilibili.tv.interface_.v1.SceneCard.fromObject(t.recommendSceneCard)}if(t.userProfileInternalTrackId!=null&&(r.Long?(i.userProfileInternalTrackId=r.Long.fromValue(t.userProfileInternalTrackId)).unsigned=!1:typeof t.userProfileInternalTrackId=="string"?i.userProfileInternalTrackId=parseInt(t.userProfileInternalTrackId,10):typeof t.userProfileInternalTrackId=="number"?i.userProfileInternalTrackId=t.userProfileInternalTrackId:typeof t.userProfileInternalTrackId=="object"&&(i.userProfileInternalTrackId=new r.LongBits(t.userProfileInternalTrackId.low>>>0,t.userProfileInternalTrackId.high>>>0).toNumber())),t.toast!=null){if(typeof t.toast!="object")throw TypeError(".bilibili.tv.interface_.v1.CardViewV2Reply.toast: object expected");i.toast=u.bilibili.tv.interface_.v1.ViewToast.fromObject(t.toast)}if(t.searchExt!=null){if(typeof t.searchExt!="object")throw TypeError(".bilibili.tv.interface_.v1.CardViewV2Reply.searchExt: object expected");i.searchExt=u.bilibili.tv.interface_.v1.SearchExt.fromObject(t.searchExt)}if(t.shareExt!=null){if(typeof t.shareExt!="object")throw TypeError(".bilibili.tv.interface_.v1.CardViewV2Reply.shareExt: object expected");i.shareExt=u.bilibili.tv.interface_.v1.ShareExt.fromObject(t.shareExt)}if(t.ogvCollection!=null){if(typeof t.ogvCollection!="object")throw TypeError(".bilibili.tv.interface_.v1.CardViewV2Reply.ogvCollection: object expected");i.ogvCollection=u.bilibili.tv.interface_.v1.OgvCollection.fromObject(t.ogvCollection)}if(t.playScenePage!=null){if(typeof t.playScenePage!="object")throw TypeError(".bilibili.tv.interface_.v1.CardViewV2Reply.playScenePage: object expected");i.playScenePage=u.bilibili.tv.interface_.v1.PlayScenePageViewV2.fromObject(t.playScenePage)}if(t.playSceneCard!=null){if(typeof t.playSceneCard!="object")throw TypeError(".bilibili.tv.interface_.v1.CardViewV2Reply.playSceneCard: object expected");i.playSceneCard=u.bilibili.tv.interface_.v1.SceneCard.fromObject(t.playSceneCard)}if(t.highLight){if(!Array.isArray(t.highLight))throw TypeError(".bilibili.tv.interface_.v1.CardViewV2Reply.highLight: array expected");i.highLight=[];for(let n=0;n>>0,t.cardType.high>>>0).toNumber():t.cardType),t.cardFrom!=null&&t.hasOwnProperty("cardFrom")&&(typeof t.cardFrom=="number"?n.cardFrom=i.longs===String?String(t.cardFrom):t.cardFrom:n.cardFrom=i.longs===String?r.Long.prototype.toString.call(t.cardFrom):i.longs===Number?new r.LongBits(t.cardFrom.low>>>0,t.cardFrom.high>>>0).toNumber():t.cardFrom),t.attribute!=null&&t.hasOwnProperty("attribute")&&(typeof t.attribute=="number"?n.attribute=i.longs===String?String(t.attribute):t.attribute:n.attribute=i.longs===String?r.Long.prototype.toString.call(t.attribute):i.longs===Number?new r.LongBits(t.attribute.low>>>0,t.attribute.high>>>0).toNumber():t.attribute),t.cardId!=null&&t.hasOwnProperty("cardId")&&(typeof t.cardId=="number"?n.cardId=i.longs===String?String(t.cardId):t.cardId:n.cardId=i.longs===String?r.Long.prototype.toString.call(t.cardId):i.longs===Number?new r.LongBits(t.cardId.low>>>0,t.cardId.high>>>0).toNumber():t.cardId),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.hoverTitle!=null&&t.hasOwnProperty("hoverTitle")&&(n.hoverTitle=t.hoverTitle),t.subtitle!=null&&t.hasOwnProperty("subtitle")&&(n.subtitle=t.subtitle),t.subtitle2!=null&&t.hasOwnProperty("subtitle2")&&(n.subtitle2=t.subtitle2),t.hoverSubtitle!=null&&t.hasOwnProperty("hoverSubtitle")&&(n.hoverSubtitle=t.hoverSubtitle),t.horizontalUrl!=null&&t.hasOwnProperty("horizontalUrl")&&(n.horizontalUrl=t.horizontalUrl),t.verticalUrl!=null&&t.hasOwnProperty("verticalUrl")&&(n.verticalUrl=t.verticalUrl),t.desc!=null&&t.hasOwnProperty("desc")&&(n.desc=t.desc),t.watchProgress!=null&&t.hasOwnProperty("watchProgress")&&(n.watchProgress=u.bilibili.tv.interface_.v1.WatchProgressV2.toObject(t.watchProgress,i)),t.catalog!=null&&t.hasOwnProperty("catalog")&&(n.catalog=u.bilibili.tv.interface_.v1.Catalog.toObject(t.catalog,i)),t.jumps&&t.jumps.length){n.jumps=[];for(let o=0;o>>0,t.multiplePageCount.high>>>0).toNumber():t.multiplePageCount),t.schema!=null&&t.hasOwnProperty("schema")&&(n.schema=t.schema),t.recommendSceneCard!=null&&t.hasOwnProperty("recommendSceneCard")&&(n.recommendSceneCard=u.bilibili.tv.interface_.v1.SceneCard.toObject(t.recommendSceneCard,i)),t.userProfileInternalTrackId!=null&&t.hasOwnProperty("userProfileInternalTrackId")&&(typeof t.userProfileInternalTrackId=="number"?n.userProfileInternalTrackId=i.longs===String?String(t.userProfileInternalTrackId):t.userProfileInternalTrackId:n.userProfileInternalTrackId=i.longs===String?r.Long.prototype.toString.call(t.userProfileInternalTrackId):i.longs===Number?new r.LongBits(t.userProfileInternalTrackId.low>>>0,t.userProfileInternalTrackId.high>>>0).toNumber():t.userProfileInternalTrackId),t.toast!=null&&t.hasOwnProperty("toast")&&(n.toast=u.bilibili.tv.interface_.v1.ViewToast.toObject(t.toast,i)),t.searchExt!=null&&t.hasOwnProperty("searchExt")&&(n.searchExt=u.bilibili.tv.interface_.v1.SearchExt.toObject(t.searchExt,i)),t.shareExt!=null&&t.hasOwnProperty("shareExt")&&(n.shareExt=u.bilibili.tv.interface_.v1.ShareExt.toObject(t.shareExt,i)),t.ogvCollection!=null&&t.hasOwnProperty("ogvCollection")&&(n.ogvCollection=u.bilibili.tv.interface_.v1.OgvCollection.toObject(t.ogvCollection,i)),t.playScenePage!=null&&t.hasOwnProperty("playScenePage")&&(n.playScenePage=u.bilibili.tv.interface_.v1.PlayScenePageViewV2.toObject(t.playScenePage,i)),t.playSceneCard!=null&&t.hasOwnProperty("playSceneCard")&&(n.playSceneCard=u.bilibili.tv.interface_.v1.SceneCard.toObject(t.playSceneCard,i)),t.highLight&&t.highLight.length){n.highLight=[];for(let o=0;o>>3){case 1:{o.cardType=t.int64();break}case 2:{o.cardFrom=t.int64();break}case 3:{o.attribute=t.int32();break}case 4:{o.cardId=t.int64();break}case 5:{o.title=t.string();break}case 6:{o.hoverTitle=t.string();break}case 7:{o.subtitle=t.string();break}case 8:{o.subtitle2=t.string();break}case 9:{o.hoverSubtitle=t.string();break}case 10:{o.horizontalUrl=t.string();break}case 11:{o.verticalUrl=t.string();break}case 12:{o.desc=t.string();break}case 13:{o.watchProgress=u.bilibili.tv.interface_.v1.WatchProgressV2.decode(t,t.uint32());break}case 14:{o.catalog=u.bilibili.tv.interface_.v1.Catalog.decode(t,t.uint32());break}case 15:{o.jumps&&o.jumps.length||(o.jumps=[]),o.jumps.push(u.bilibili.tv.interface_.v1.Jumps.decode(t,t.uint32()));break}case 16:{o.cornermark=u.bilibili.tv.interface_.v1.Labels.decode(t,t.uint32());break}case 17:{o.labels&&o.labels.length||(o.labels=[]),o.labels.push(u.bilibili.tv.interface_.v1.Labels.decode(t,t.uint32()));break}case 18:{o.uploader=u.bilibili.tv.interface_.v1.Uploader.decode(t,t.uint32());break}case 19:{o.payment=u.bilibili.tv.interface_.v1.PaymentV2.decode(t,t.uint32());break}case 20:{o.autoPlay=u.bilibili.tv.interface_.v1.AutoPlay.decode(t,t.uint32());break}case 21:{o.cheeseExt=u.bilibili.tv.interface_.v1.CheeseExt.decode(t,t.uint32());break}case 22:{o.pgcExt=u.bilibili.tv.interface_.v1.PgcExt.decode(t,t.uint32());break}case 23:{o.ugcExt=u.bilibili.tv.interface_.v1.UgcExt.decode(t,t.uint32());break}case 24:{o.liveExt=u.bilibili.tv.interface_.v1.LiveExt.decode(t,t.uint32());break}case 25:{o.adExt=u.bilibili.tv.interface_.v1.AdExtra.decode(t,t.uint32());break}case 26:{o.esportExt=u.bilibili.tv.interface_.v1.EsportExt.decode(t,t.uint32());break}case 27:{o.serialExt=u.bilibili.tv.interface_.v1.SerialExt.decode(t,t.uint32());break}case 28:{o.multiplePageCount=t.int64();break}case 29:{o.schema=t.string();break}case 30:{o.recommendSceneCard=u.bilibili.tv.interface_.v1.SceneCard.decode(t,t.uint32());break}case 31:{o.userProfileInternalTrackId=t.int64();break}case 32:{o.toast=u.bilibili.tv.interface_.v1.ViewToast.decode(t,t.uint32());break}case 33:{o.searchExt=u.bilibili.tv.interface_.v1.SearchExt.decode(t,t.uint32());break}case 34:{o.shareExt=u.bilibili.tv.interface_.v1.ShareExt.decode(t,t.uint32());break}case 35:{o.ogvCollection=u.bilibili.tv.interface_.v1.OgvCollection.decode(t,t.uint32());break}case 36:{o.playScenePage=u.bilibili.tv.interface_.v1.PlayScenePageViewV2.decode(t,t.uint32());break}case 37:{o.playSceneCard=u.bilibili.tv.interface_.v1.SceneCard.decode(t,t.uint32());break}case 38:{o.highLight&&o.highLight.length||(o.highLight=[]),o.highLight.push(u.bilibili.tv.interface_.v1.HLRange.decode(t,t.uint32()));break}case 39:{o.infocExt=u.bilibili.tv.interface_.v1.InfocExt.decode(t,t.uint32());break}case 40:{o.recommendSceneCardStr=t.string();break}case 41:{o.playScenePageStr=t.string();break}case 42:{o.playSceneCardStr=t.string();break}case 43:{o.projExtra=u.bilibili.tv.interface_.v1.MediaExtra.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.tv.interface_.v1.CommonCardResp)return t;let i=new u.bilibili.tv.interface_.v1.CommonCardResp;if(t.cardType!=null&&(r.Long?(i.cardType=r.Long.fromValue(t.cardType)).unsigned=!1:typeof t.cardType=="string"?i.cardType=parseInt(t.cardType,10):typeof t.cardType=="number"?i.cardType=t.cardType:typeof t.cardType=="object"&&(i.cardType=new r.LongBits(t.cardType.low>>>0,t.cardType.high>>>0).toNumber())),t.cardFrom!=null&&(r.Long?(i.cardFrom=r.Long.fromValue(t.cardFrom)).unsigned=!1:typeof t.cardFrom=="string"?i.cardFrom=parseInt(t.cardFrom,10):typeof t.cardFrom=="number"?i.cardFrom=t.cardFrom:typeof t.cardFrom=="object"&&(i.cardFrom=new r.LongBits(t.cardFrom.low>>>0,t.cardFrom.high>>>0).toNumber())),t.attribute!=null&&(i.attribute=t.attribute|0),t.cardId!=null&&(r.Long?(i.cardId=r.Long.fromValue(t.cardId)).unsigned=!1:typeof t.cardId=="string"?i.cardId=parseInt(t.cardId,10):typeof t.cardId=="number"?i.cardId=t.cardId:typeof t.cardId=="object"&&(i.cardId=new r.LongBits(t.cardId.low>>>0,t.cardId.high>>>0).toNumber())),t.title!=null&&(i.title=String(t.title)),t.hoverTitle!=null&&(i.hoverTitle=String(t.hoverTitle)),t.subtitle!=null&&(i.subtitle=String(t.subtitle)),t.subtitle2!=null&&(i.subtitle2=String(t.subtitle2)),t.hoverSubtitle!=null&&(i.hoverSubtitle=String(t.hoverSubtitle)),t.horizontalUrl!=null&&(i.horizontalUrl=String(t.horizontalUrl)),t.verticalUrl!=null&&(i.verticalUrl=String(t.verticalUrl)),t.desc!=null&&(i.desc=String(t.desc)),t.watchProgress!=null){if(typeof t.watchProgress!="object")throw TypeError(".bilibili.tv.interface_.v1.CommonCardResp.watchProgress: object expected");i.watchProgress=u.bilibili.tv.interface_.v1.WatchProgressV2.fromObject(t.watchProgress)}if(t.catalog!=null){if(typeof t.catalog!="object")throw TypeError(".bilibili.tv.interface_.v1.CommonCardResp.catalog: object expected");i.catalog=u.bilibili.tv.interface_.v1.Catalog.fromObject(t.catalog)}if(t.jumps){if(!Array.isArray(t.jumps))throw TypeError(".bilibili.tv.interface_.v1.CommonCardResp.jumps: array expected");i.jumps=[];for(let n=0;n>>0,t.multiplePageCount.high>>>0).toNumber())),t.schema!=null&&(i.schema=String(t.schema)),t.recommendSceneCard!=null){if(typeof t.recommendSceneCard!="object")throw TypeError(".bilibili.tv.interface_.v1.CommonCardResp.recommendSceneCard: object expected");i.recommendSceneCard=u.bilibili.tv.interface_.v1.SceneCard.fromObject(t.recommendSceneCard)}if(t.userProfileInternalTrackId!=null&&(r.Long?(i.userProfileInternalTrackId=r.Long.fromValue(t.userProfileInternalTrackId)).unsigned=!1:typeof t.userProfileInternalTrackId=="string"?i.userProfileInternalTrackId=parseInt(t.userProfileInternalTrackId,10):typeof t.userProfileInternalTrackId=="number"?i.userProfileInternalTrackId=t.userProfileInternalTrackId:typeof t.userProfileInternalTrackId=="object"&&(i.userProfileInternalTrackId=new r.LongBits(t.userProfileInternalTrackId.low>>>0,t.userProfileInternalTrackId.high>>>0).toNumber())),t.toast!=null){if(typeof t.toast!="object")throw TypeError(".bilibili.tv.interface_.v1.CommonCardResp.toast: object expected");i.toast=u.bilibili.tv.interface_.v1.ViewToast.fromObject(t.toast)}if(t.searchExt!=null){if(typeof t.searchExt!="object")throw TypeError(".bilibili.tv.interface_.v1.CommonCardResp.searchExt: object expected");i.searchExt=u.bilibili.tv.interface_.v1.SearchExt.fromObject(t.searchExt)}if(t.shareExt!=null){if(typeof t.shareExt!="object")throw TypeError(".bilibili.tv.interface_.v1.CommonCardResp.shareExt: object expected");i.shareExt=u.bilibili.tv.interface_.v1.ShareExt.fromObject(t.shareExt)}if(t.ogvCollection!=null){if(typeof t.ogvCollection!="object")throw TypeError(".bilibili.tv.interface_.v1.CommonCardResp.ogvCollection: object expected");i.ogvCollection=u.bilibili.tv.interface_.v1.OgvCollection.fromObject(t.ogvCollection)}if(t.playScenePage!=null){if(typeof t.playScenePage!="object")throw TypeError(".bilibili.tv.interface_.v1.CommonCardResp.playScenePage: object expected");i.playScenePage=u.bilibili.tv.interface_.v1.PlayScenePageViewV2.fromObject(t.playScenePage)}if(t.playSceneCard!=null){if(typeof t.playSceneCard!="object")throw TypeError(".bilibili.tv.interface_.v1.CommonCardResp.playSceneCard: object expected");i.playSceneCard=u.bilibili.tv.interface_.v1.SceneCard.fromObject(t.playSceneCard)}if(t.highLight){if(!Array.isArray(t.highLight))throw TypeError(".bilibili.tv.interface_.v1.CommonCardResp.highLight: array expected");i.highLight=[];for(let n=0;n>>0,t.cardType.high>>>0).toNumber():t.cardType),t.cardFrom!=null&&t.hasOwnProperty("cardFrom")&&(typeof t.cardFrom=="number"?n.cardFrom=i.longs===String?String(t.cardFrom):t.cardFrom:n.cardFrom=i.longs===String?r.Long.prototype.toString.call(t.cardFrom):i.longs===Number?new r.LongBits(t.cardFrom.low>>>0,t.cardFrom.high>>>0).toNumber():t.cardFrom),t.attribute!=null&&t.hasOwnProperty("attribute")&&(n.attribute=t.attribute),t.cardId!=null&&t.hasOwnProperty("cardId")&&(typeof t.cardId=="number"?n.cardId=i.longs===String?String(t.cardId):t.cardId:n.cardId=i.longs===String?r.Long.prototype.toString.call(t.cardId):i.longs===Number?new r.LongBits(t.cardId.low>>>0,t.cardId.high>>>0).toNumber():t.cardId),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.hoverTitle!=null&&t.hasOwnProperty("hoverTitle")&&(n.hoverTitle=t.hoverTitle),t.subtitle!=null&&t.hasOwnProperty("subtitle")&&(n.subtitle=t.subtitle),t.subtitle2!=null&&t.hasOwnProperty("subtitle2")&&(n.subtitle2=t.subtitle2),t.hoverSubtitle!=null&&t.hasOwnProperty("hoverSubtitle")&&(n.hoverSubtitle=t.hoverSubtitle),t.horizontalUrl!=null&&t.hasOwnProperty("horizontalUrl")&&(n.horizontalUrl=t.horizontalUrl),t.verticalUrl!=null&&t.hasOwnProperty("verticalUrl")&&(n.verticalUrl=t.verticalUrl),t.desc!=null&&t.hasOwnProperty("desc")&&(n.desc=t.desc),t.watchProgress!=null&&t.hasOwnProperty("watchProgress")&&(n.watchProgress=u.bilibili.tv.interface_.v1.WatchProgressV2.toObject(t.watchProgress,i)),t.catalog!=null&&t.hasOwnProperty("catalog")&&(n.catalog=u.bilibili.tv.interface_.v1.Catalog.toObject(t.catalog,i)),t.jumps&&t.jumps.length){n.jumps=[];for(let o=0;o>>0,t.multiplePageCount.high>>>0).toNumber():t.multiplePageCount),t.schema!=null&&t.hasOwnProperty("schema")&&(n.schema=t.schema),t.recommendSceneCard!=null&&t.hasOwnProperty("recommendSceneCard")&&(n.recommendSceneCard=u.bilibili.tv.interface_.v1.SceneCard.toObject(t.recommendSceneCard,i)),t.userProfileInternalTrackId!=null&&t.hasOwnProperty("userProfileInternalTrackId")&&(typeof t.userProfileInternalTrackId=="number"?n.userProfileInternalTrackId=i.longs===String?String(t.userProfileInternalTrackId):t.userProfileInternalTrackId:n.userProfileInternalTrackId=i.longs===String?r.Long.prototype.toString.call(t.userProfileInternalTrackId):i.longs===Number?new r.LongBits(t.userProfileInternalTrackId.low>>>0,t.userProfileInternalTrackId.high>>>0).toNumber():t.userProfileInternalTrackId),t.toast!=null&&t.hasOwnProperty("toast")&&(n.toast=u.bilibili.tv.interface_.v1.ViewToast.toObject(t.toast,i)),t.searchExt!=null&&t.hasOwnProperty("searchExt")&&(n.searchExt=u.bilibili.tv.interface_.v1.SearchExt.toObject(t.searchExt,i)),t.shareExt!=null&&t.hasOwnProperty("shareExt")&&(n.shareExt=u.bilibili.tv.interface_.v1.ShareExt.toObject(t.shareExt,i)),t.ogvCollection!=null&&t.hasOwnProperty("ogvCollection")&&(n.ogvCollection=u.bilibili.tv.interface_.v1.OgvCollection.toObject(t.ogvCollection,i)),t.playScenePage!=null&&t.hasOwnProperty("playScenePage")&&(n.playScenePage=u.bilibili.tv.interface_.v1.PlayScenePageViewV2.toObject(t.playScenePage,i)),t.playSceneCard!=null&&t.hasOwnProperty("playSceneCard")&&(n.playSceneCard=u.bilibili.tv.interface_.v1.SceneCard.toObject(t.playSceneCard,i)),t.highLight&&t.highLight.length){n.highLight=[];for(let o=0;o>>3){case 1:{o.videoId=t.int64();break}case 2:{o.progress=t.int64();break}case 3:{o.type=t.int32();break}case 4:{o.progressEnd=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.tv.interface_.v1.WatchProgressV2)return t;let i=new u.bilibili.tv.interface_.v1.WatchProgressV2;return t.videoId!=null&&(r.Long?(i.videoId=r.Long.fromValue(t.videoId)).unsigned=!1:typeof t.videoId=="string"?i.videoId=parseInt(t.videoId,10):typeof t.videoId=="number"?i.videoId=t.videoId:typeof t.videoId=="object"&&(i.videoId=new r.LongBits(t.videoId.low>>>0,t.videoId.high>>>0).toNumber())),t.progress!=null&&(r.Long?(i.progress=r.Long.fromValue(t.progress)).unsigned=!1:typeof t.progress=="string"?i.progress=parseInt(t.progress,10):typeof t.progress=="number"?i.progress=t.progress:typeof t.progress=="object"&&(i.progress=new r.LongBits(t.progress.low>>>0,t.progress.high>>>0).toNumber())),t.type!=null&&(i.type=t.type|0),t.progressEnd!=null&&(r.Long?(i.progressEnd=r.Long.fromValue(t.progressEnd)).unsigned=!1:typeof t.progressEnd=="string"?i.progressEnd=parseInt(t.progressEnd,10):typeof t.progressEnd=="number"?i.progressEnd=t.progressEnd:typeof t.progressEnd=="object"&&(i.progressEnd=new r.LongBits(t.progressEnd.low>>>0,t.progressEnd.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.videoId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.videoId=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.progress=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.progress=i.longs===String?"0":0;if(n.type=0,r.Long){let o=new r.Long(0,0,!1);n.progressEnd=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.progressEnd=i.longs===String?"0":0}return t.videoId!=null&&t.hasOwnProperty("videoId")&&(typeof t.videoId=="number"?n.videoId=i.longs===String?String(t.videoId):t.videoId:n.videoId=i.longs===String?r.Long.prototype.toString.call(t.videoId):i.longs===Number?new r.LongBits(t.videoId.low>>>0,t.videoId.high>>>0).toNumber():t.videoId),t.progress!=null&&t.hasOwnProperty("progress")&&(typeof t.progress=="number"?n.progress=i.longs===String?String(t.progress):t.progress:n.progress=i.longs===String?r.Long.prototype.toString.call(t.progress):i.longs===Number?new r.LongBits(t.progress.low>>>0,t.progress.high>>>0).toNumber():t.progress),t.type!=null&&t.hasOwnProperty("type")&&(n.type=t.type),t.progressEnd!=null&&t.hasOwnProperty("progressEnd")&&(typeof t.progressEnd=="number"?n.progressEnd=i.longs===String?String(t.progressEnd):t.progressEnd:n.progressEnd=i.longs===String?r.Long.prototype.toString.call(t.progressEnd):i.longs===Number?new r.LongBits(t.progressEnd.low>>>0,t.progressEnd.high>>>0).toNumber():t.progressEnd),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.tv.interface_.v1.WatchProgressV2"},e}(),c.Catalog=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.catalogId=t.int64();break}case 2:{o.catalogName=t.string();break}case 3:{o.catalogPid=t.int64();break}case 4:{o.catalogPname=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.tv.interface_.v1.Catalog)return t;let i=new u.bilibili.tv.interface_.v1.Catalog;return t.catalogId!=null&&(r.Long?(i.catalogId=r.Long.fromValue(t.catalogId)).unsigned=!1:typeof t.catalogId=="string"?i.catalogId=parseInt(t.catalogId,10):typeof t.catalogId=="number"?i.catalogId=t.catalogId:typeof t.catalogId=="object"&&(i.catalogId=new r.LongBits(t.catalogId.low>>>0,t.catalogId.high>>>0).toNumber())),t.catalogName!=null&&(i.catalogName=String(t.catalogName)),t.catalogPid!=null&&(r.Long?(i.catalogPid=r.Long.fromValue(t.catalogPid)).unsigned=!1:typeof t.catalogPid=="string"?i.catalogPid=parseInt(t.catalogPid,10):typeof t.catalogPid=="number"?i.catalogPid=t.catalogPid:typeof t.catalogPid=="object"&&(i.catalogPid=new r.LongBits(t.catalogPid.low>>>0,t.catalogPid.high>>>0).toNumber())),t.catalogPname!=null&&(i.catalogPname=String(t.catalogPname)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.catalogId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.catalogId=i.longs===String?"0":0;if(n.catalogName="",r.Long){let o=new r.Long(0,0,!1);n.catalogPid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.catalogPid=i.longs===String?"0":0;n.catalogPname=""}return t.catalogId!=null&&t.hasOwnProperty("catalogId")&&(typeof t.catalogId=="number"?n.catalogId=i.longs===String?String(t.catalogId):t.catalogId:n.catalogId=i.longs===String?r.Long.prototype.toString.call(t.catalogId):i.longs===Number?new r.LongBits(t.catalogId.low>>>0,t.catalogId.high>>>0).toNumber():t.catalogId),t.catalogName!=null&&t.hasOwnProperty("catalogName")&&(n.catalogName=t.catalogName),t.catalogPid!=null&&t.hasOwnProperty("catalogPid")&&(typeof t.catalogPid=="number"?n.catalogPid=i.longs===String?String(t.catalogPid):t.catalogPid:n.catalogPid=i.longs===String?r.Long.prototype.toString.call(t.catalogPid):i.longs===Number?new r.LongBits(t.catalogPid.low>>>0,t.catalogPid.high>>>0).toNumber():t.catalogPid),t.catalogPname!=null&&t.hasOwnProperty("catalogPname")&&(n.catalogPname=t.catalogPname),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.tv.interface_.v1.Catalog"},e}(),c.Jumps=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.jumpType=t.int64();break}case 2:{o.jumpId=t.int64();break}case 3:{o.JumpEpId=t.int64();break}case 4:{o.jumpText=t.string();break}case 5:{o.JumpSchema=t.string();break}case 6:{o.jumpProgress=t.int64();break}case 7:{o.jumpCardId=t.int64();break}case 8:{o.rankText=t.string();break}case 9:{o.rankId=t.int64();break}case 10:{o.jumpTextAfter=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.tv.interface_.v1.Jumps)return t;let i=new u.bilibili.tv.interface_.v1.Jumps;return t.jumpType!=null&&(r.Long?(i.jumpType=r.Long.fromValue(t.jumpType)).unsigned=!1:typeof t.jumpType=="string"?i.jumpType=parseInt(t.jumpType,10):typeof t.jumpType=="number"?i.jumpType=t.jumpType:typeof t.jumpType=="object"&&(i.jumpType=new r.LongBits(t.jumpType.low>>>0,t.jumpType.high>>>0).toNumber())),t.jumpId!=null&&(r.Long?(i.jumpId=r.Long.fromValue(t.jumpId)).unsigned=!1:typeof t.jumpId=="string"?i.jumpId=parseInt(t.jumpId,10):typeof t.jumpId=="number"?i.jumpId=t.jumpId:typeof t.jumpId=="object"&&(i.jumpId=new r.LongBits(t.jumpId.low>>>0,t.jumpId.high>>>0).toNumber())),t.JumpEpId!=null&&(r.Long?(i.JumpEpId=r.Long.fromValue(t.JumpEpId)).unsigned=!1:typeof t.JumpEpId=="string"?i.JumpEpId=parseInt(t.JumpEpId,10):typeof t.JumpEpId=="number"?i.JumpEpId=t.JumpEpId:typeof t.JumpEpId=="object"&&(i.JumpEpId=new r.LongBits(t.JumpEpId.low>>>0,t.JumpEpId.high>>>0).toNumber())),t.jumpText!=null&&(i.jumpText=String(t.jumpText)),t.JumpSchema!=null&&(i.JumpSchema=String(t.JumpSchema)),t.jumpProgress!=null&&(r.Long?(i.jumpProgress=r.Long.fromValue(t.jumpProgress)).unsigned=!1:typeof t.jumpProgress=="string"?i.jumpProgress=parseInt(t.jumpProgress,10):typeof t.jumpProgress=="number"?i.jumpProgress=t.jumpProgress:typeof t.jumpProgress=="object"&&(i.jumpProgress=new r.LongBits(t.jumpProgress.low>>>0,t.jumpProgress.high>>>0).toNumber())),t.jumpCardId!=null&&(r.Long?(i.jumpCardId=r.Long.fromValue(t.jumpCardId)).unsigned=!1:typeof t.jumpCardId=="string"?i.jumpCardId=parseInt(t.jumpCardId,10):typeof t.jumpCardId=="number"?i.jumpCardId=t.jumpCardId:typeof t.jumpCardId=="object"&&(i.jumpCardId=new r.LongBits(t.jumpCardId.low>>>0,t.jumpCardId.high>>>0).toNumber())),t.rankText!=null&&(i.rankText=String(t.rankText)),t.rankId!=null&&(r.Long?(i.rankId=r.Long.fromValue(t.rankId)).unsigned=!1:typeof t.rankId=="string"?i.rankId=parseInt(t.rankId,10):typeof t.rankId=="number"?i.rankId=t.rankId:typeof t.rankId=="object"&&(i.rankId=new r.LongBits(t.rankId.low>>>0,t.rankId.high>>>0).toNumber())),t.jumpTextAfter!=null&&(i.jumpTextAfter=String(t.jumpTextAfter)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.jumpType=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.jumpType=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.jumpId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.jumpId=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.JumpEpId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.JumpEpId=i.longs===String?"0":0;if(n.jumpText="",n.JumpSchema="",r.Long){let o=new r.Long(0,0,!1);n.jumpProgress=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.jumpProgress=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.jumpCardId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.jumpCardId=i.longs===String?"0":0;if(n.rankText="",r.Long){let o=new r.Long(0,0,!1);n.rankId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.rankId=i.longs===String?"0":0;n.jumpTextAfter=""}return t.jumpType!=null&&t.hasOwnProperty("jumpType")&&(typeof t.jumpType=="number"?n.jumpType=i.longs===String?String(t.jumpType):t.jumpType:n.jumpType=i.longs===String?r.Long.prototype.toString.call(t.jumpType):i.longs===Number?new r.LongBits(t.jumpType.low>>>0,t.jumpType.high>>>0).toNumber():t.jumpType),t.jumpId!=null&&t.hasOwnProperty("jumpId")&&(typeof t.jumpId=="number"?n.jumpId=i.longs===String?String(t.jumpId):t.jumpId:n.jumpId=i.longs===String?r.Long.prototype.toString.call(t.jumpId):i.longs===Number?new r.LongBits(t.jumpId.low>>>0,t.jumpId.high>>>0).toNumber():t.jumpId),t.JumpEpId!=null&&t.hasOwnProperty("JumpEpId")&&(typeof t.JumpEpId=="number"?n.JumpEpId=i.longs===String?String(t.JumpEpId):t.JumpEpId:n.JumpEpId=i.longs===String?r.Long.prototype.toString.call(t.JumpEpId):i.longs===Number?new r.LongBits(t.JumpEpId.low>>>0,t.JumpEpId.high>>>0).toNumber():t.JumpEpId),t.jumpText!=null&&t.hasOwnProperty("jumpText")&&(n.jumpText=t.jumpText),t.JumpSchema!=null&&t.hasOwnProperty("JumpSchema")&&(n.JumpSchema=t.JumpSchema),t.jumpProgress!=null&&t.hasOwnProperty("jumpProgress")&&(typeof t.jumpProgress=="number"?n.jumpProgress=i.longs===String?String(t.jumpProgress):t.jumpProgress:n.jumpProgress=i.longs===String?r.Long.prototype.toString.call(t.jumpProgress):i.longs===Number?new r.LongBits(t.jumpProgress.low>>>0,t.jumpProgress.high>>>0).toNumber():t.jumpProgress),t.jumpCardId!=null&&t.hasOwnProperty("jumpCardId")&&(typeof t.jumpCardId=="number"?n.jumpCardId=i.longs===String?String(t.jumpCardId):t.jumpCardId:n.jumpCardId=i.longs===String?r.Long.prototype.toString.call(t.jumpCardId):i.longs===Number?new r.LongBits(t.jumpCardId.low>>>0,t.jumpCardId.high>>>0).toNumber():t.jumpCardId),t.rankText!=null&&t.hasOwnProperty("rankText")&&(n.rankText=t.rankText),t.rankId!=null&&t.hasOwnProperty("rankId")&&(typeof t.rankId=="number"?n.rankId=i.longs===String?String(t.rankId):t.rankId:n.rankId=i.longs===String?r.Long.prototype.toString.call(t.rankId):i.longs===Number?new r.LongBits(t.rankId.low>>>0,t.rankId.high>>>0).toNumber():t.rankId),t.jumpTextAfter!=null&&t.hasOwnProperty("jumpTextAfter")&&(n.jumpTextAfter=t.jumpTextAfter),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.tv.interface_.v1.Jumps"},e}(),c.Labels=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.text=t.string();break}case 2:{o.textColor=t.string();break}case 3:{o.bgColor=t.string();break}case 4:{o.borderColor=t.string();break}case 5:{o.bold=t.bool();break}case 6:{o.cover=t.string();break}case 7:{o.labelType=t.int64();break}case 8:{o.style=t.int64();break}case 9:{o.link=t.string();break}case 10:{o.seqCover=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.tv.interface_.v1.Labels)return t;let i=new u.bilibili.tv.interface_.v1.Labels;return t.text!=null&&(i.text=String(t.text)),t.textColor!=null&&(i.textColor=String(t.textColor)),t.bgColor!=null&&(i.bgColor=String(t.bgColor)),t.borderColor!=null&&(i.borderColor=String(t.borderColor)),t.bold!=null&&(i.bold=!!t.bold),t.cover!=null&&(i.cover=String(t.cover)),t.labelType!=null&&(r.Long?(i.labelType=r.Long.fromValue(t.labelType)).unsigned=!1:typeof t.labelType=="string"?i.labelType=parseInt(t.labelType,10):typeof t.labelType=="number"?i.labelType=t.labelType:typeof t.labelType=="object"&&(i.labelType=new r.LongBits(t.labelType.low>>>0,t.labelType.high>>>0).toNumber())),t.style!=null&&(r.Long?(i.style=r.Long.fromValue(t.style)).unsigned=!1:typeof t.style=="string"?i.style=parseInt(t.style,10):typeof t.style=="number"?i.style=t.style:typeof t.style=="object"&&(i.style=new r.LongBits(t.style.low>>>0,t.style.high>>>0).toNumber())),t.link!=null&&(i.link=String(t.link)),t.seqCover!=null&&(i.seqCover=String(t.seqCover)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.text="",n.textColor="",n.bgColor="",n.borderColor="",n.bold=!1,n.cover="",r.Long){let o=new r.Long(0,0,!1);n.labelType=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.labelType=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.style=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.style=i.longs===String?"0":0;n.link="",n.seqCover=""}return t.text!=null&&t.hasOwnProperty("text")&&(n.text=t.text),t.textColor!=null&&t.hasOwnProperty("textColor")&&(n.textColor=t.textColor),t.bgColor!=null&&t.hasOwnProperty("bgColor")&&(n.bgColor=t.bgColor),t.borderColor!=null&&t.hasOwnProperty("borderColor")&&(n.borderColor=t.borderColor),t.bold!=null&&t.hasOwnProperty("bold")&&(n.bold=t.bold),t.cover!=null&&t.hasOwnProperty("cover")&&(n.cover=t.cover),t.labelType!=null&&t.hasOwnProperty("labelType")&&(typeof t.labelType=="number"?n.labelType=i.longs===String?String(t.labelType):t.labelType:n.labelType=i.longs===String?r.Long.prototype.toString.call(t.labelType):i.longs===Number?new r.LongBits(t.labelType.low>>>0,t.labelType.high>>>0).toNumber():t.labelType),t.style!=null&&t.hasOwnProperty("style")&&(typeof t.style=="number"?n.style=i.longs===String?String(t.style):t.style:n.style=i.longs===String?r.Long.prototype.toString.call(t.style):i.longs===Number?new r.LongBits(t.style.low>>>0,t.style.high>>>0).toNumber():t.style),t.link!=null&&t.hasOwnProperty("link")&&(n.link=t.link),t.seqCover!=null&&t.hasOwnProperty("seqCover")&&(n.seqCover=t.seqCover),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.tv.interface_.v1.Labels"},e}(),c.Uploader=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.upName=t.string();break}case 2:{o.upMid=t.int64();break}case 3:{o.upFace=t.string();break}case 4:{o.hasFollow=t.bool();break}case 5:{o.canFollow=t.bool();break}case 6:{o.fansCount=t.int64();break}case 7:{o.archiveCount=t.int32();break}case 8:{o.url=t.string();break}case 9:{o.officialInfo=u.bilibili.tv.interface_.v1.OfficialInfo.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.tv.interface_.v1.Uploader)return t;let i=new u.bilibili.tv.interface_.v1.Uploader;if(t.upName!=null&&(i.upName=String(t.upName)),t.upMid!=null&&(r.Long?(i.upMid=r.Long.fromValue(t.upMid)).unsigned=!1:typeof t.upMid=="string"?i.upMid=parseInt(t.upMid,10):typeof t.upMid=="number"?i.upMid=t.upMid:typeof t.upMid=="object"&&(i.upMid=new r.LongBits(t.upMid.low>>>0,t.upMid.high>>>0).toNumber())),t.upFace!=null&&(i.upFace=String(t.upFace)),t.hasFollow!=null&&(i.hasFollow=!!t.hasFollow),t.canFollow!=null&&(i.canFollow=!!t.canFollow),t.fansCount!=null&&(r.Long?(i.fansCount=r.Long.fromValue(t.fansCount)).unsigned=!1:typeof t.fansCount=="string"?i.fansCount=parseInt(t.fansCount,10):typeof t.fansCount=="number"?i.fansCount=t.fansCount:typeof t.fansCount=="object"&&(i.fansCount=new r.LongBits(t.fansCount.low>>>0,t.fansCount.high>>>0).toNumber())),t.archiveCount!=null&&(i.archiveCount=t.archiveCount|0),t.url!=null&&(i.url=String(t.url)),t.officialInfo!=null){if(typeof t.officialInfo!="object")throw TypeError(".bilibili.tv.interface_.v1.Uploader.officialInfo: object expected");i.officialInfo=u.bilibili.tv.interface_.v1.OfficialInfo.fromObject(t.officialInfo)}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.upName="",r.Long){let o=new r.Long(0,0,!1);n.upMid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.upMid=i.longs===String?"0":0;if(n.upFace="",n.hasFollow=!1,n.canFollow=!1,r.Long){let o=new r.Long(0,0,!1);n.fansCount=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.fansCount=i.longs===String?"0":0;n.archiveCount=0,n.url="",n.officialInfo=null}return t.upName!=null&&t.hasOwnProperty("upName")&&(n.upName=t.upName),t.upMid!=null&&t.hasOwnProperty("upMid")&&(typeof t.upMid=="number"?n.upMid=i.longs===String?String(t.upMid):t.upMid:n.upMid=i.longs===String?r.Long.prototype.toString.call(t.upMid):i.longs===Number?new r.LongBits(t.upMid.low>>>0,t.upMid.high>>>0).toNumber():t.upMid),t.upFace!=null&&t.hasOwnProperty("upFace")&&(n.upFace=t.upFace),t.hasFollow!=null&&t.hasOwnProperty("hasFollow")&&(n.hasFollow=t.hasFollow),t.canFollow!=null&&t.hasOwnProperty("canFollow")&&(n.canFollow=t.canFollow),t.fansCount!=null&&t.hasOwnProperty("fansCount")&&(typeof t.fansCount=="number"?n.fansCount=i.longs===String?String(t.fansCount):t.fansCount:n.fansCount=i.longs===String?r.Long.prototype.toString.call(t.fansCount):i.longs===Number?new r.LongBits(t.fansCount.low>>>0,t.fansCount.high>>>0).toNumber():t.fansCount),t.archiveCount!=null&&t.hasOwnProperty("archiveCount")&&(n.archiveCount=t.archiveCount),t.url!=null&&t.hasOwnProperty("url")&&(n.url=t.url),t.officialInfo!=null&&t.hasOwnProperty("officialInfo")&&(n.officialInfo=u.bilibili.tv.interface_.v1.OfficialInfo.toObject(t.officialInfo,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.tv.interface_.v1.Uploader"},e}(),c.OfficialInfo=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.role=t.int32();break}case 2:{o.title=t.string();break}case 3:{o.desc=t.string();break}case 4:{o.type=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.tv.interface_.v1.OfficialInfo)return t;let i=new u.bilibili.tv.interface_.v1.OfficialInfo;return t.role!=null&&(i.role=t.role|0),t.title!=null&&(i.title=String(t.title)),t.desc!=null&&(i.desc=String(t.desc)),t.type!=null&&(i.type=t.type|0),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.role=0,n.title="",n.desc="",n.type=0),t.role!=null&&t.hasOwnProperty("role")&&(n.role=t.role),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.desc!=null&&t.hasOwnProperty("desc")&&(n.desc=t.desc),t.type!=null&&t.hasOwnProperty("type")&&(n.type=t.type),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.tv.interface_.v1.OfficialInfo"},e}(),c.PaymentV2=function(){function e(l){if(this.payCard={},l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.originalAmount=t.string();break}case 2:{o.payAmount=t.string();break}case 3:{o.desc=t.string();break}case 4:{o.payCard===r.emptyObject&&(o.payCard={});let v=t.uint32()+t.pos;for(a="",y=null;t.pos>>3){case 1:a=t.string();break;case 2:y=u.bilibili.tv.interface_.v1.PayCard.decode(t,t.uint32());break;default:t.skipType(g&7);break}}o.payCard[a]=y;break}case 5:{o.paymentShowExt=u.bilibili.tv.interface_.v1.PaymentShowExt.decode(t,t.uint32());break}default:t.skipType(s&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.tv.interface_.v1.PaymentV2)return t;let i=new u.bilibili.tv.interface_.v1.PaymentV2;if(t.originalAmount!=null&&(i.originalAmount=String(t.originalAmount)),t.payAmount!=null&&(i.payAmount=String(t.payAmount)),t.desc!=null&&(i.desc=String(t.desc)),t.payCard){if(typeof t.payCard!="object")throw TypeError(".bilibili.tv.interface_.v1.PaymentV2.payCard: object expected");i.payCard={};for(let n=Object.keys(t.payCard),o=0;o>>3){case 1:{o.title=t.string();break}case 2:{o.seasonTitle=t.string();break}case 3:{o.epShow=t.string();break}case 4:{o.price=t.string();break}case 5:{o.realPrice=t.string();break}case 6:{o.button=t.string();break}case 7:{o.buttonType=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.tv.interface_.v1.PayCard)return t;let i=new u.bilibili.tv.interface_.v1.PayCard;return t.title!=null&&(i.title=String(t.title)),t.seasonTitle!=null&&(i.seasonTitle=String(t.seasonTitle)),t.epShow!=null&&(i.epShow=String(t.epShow)),t.price!=null&&(i.price=String(t.price)),t.realPrice!=null&&(i.realPrice=String(t.realPrice)),t.button!=null&&(i.button=String(t.button)),t.buttonType!=null&&(i.buttonType=String(t.buttonType)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.title="",n.seasonTitle="",n.epShow="",n.price="",n.realPrice="",n.button="",n.buttonType=""),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.seasonTitle!=null&&t.hasOwnProperty("seasonTitle")&&(n.seasonTitle=t.seasonTitle),t.epShow!=null&&t.hasOwnProperty("epShow")&&(n.epShow=t.epShow),t.price!=null&&t.hasOwnProperty("price")&&(n.price=t.price),t.realPrice!=null&&t.hasOwnProperty("realPrice")&&(n.realPrice=t.realPrice),t.button!=null&&t.hasOwnProperty("button")&&(n.button=t.button),t.buttonType!=null&&t.hasOwnProperty("buttonType")&&(n.buttonType=t.buttonType),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.tv.interface_.v1.PayCard"},e}(),c.PaymentShowExt=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.showDevice=t.string();break}case 2:{o.originalAmountName=t.string();break}case 3:{o.payAmountName=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.tv.interface_.v1.PaymentShowExt)return t;let i=new u.bilibili.tv.interface_.v1.PaymentShowExt;return t.showDevice!=null&&(i.showDevice=String(t.showDevice)),t.originalAmountName!=null&&(i.originalAmountName=String(t.originalAmountName)),t.payAmountName!=null&&(i.payAmountName=String(t.payAmountName)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.showDevice="",n.originalAmountName="",n.payAmountName=""),t.showDevice!=null&&t.hasOwnProperty("showDevice")&&(n.showDevice=t.showDevice),t.originalAmountName!=null&&t.hasOwnProperty("originalAmountName")&&(n.originalAmountName=t.originalAmountName),t.payAmountName!=null&&t.hasOwnProperty("payAmountName")&&(n.payAmountName=t.payAmountName),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.tv.interface_.v1.PaymentShowExt"},e}(),c.AutoPlay=function(){function e(l){if(this.cidList=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.cidCount=t.int64();break}case 2:{o.cidList&&o.cidList.length||(o.cidList=[]),o.cidList.push(u.bilibili.tv.interface_.v1.CidList.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.tv.interface_.v1.AutoPlay)return t;let i=new u.bilibili.tv.interface_.v1.AutoPlay;if(t.cidCount!=null&&(r.Long?(i.cidCount=r.Long.fromValue(t.cidCount)).unsigned=!1:typeof t.cidCount=="string"?i.cidCount=parseInt(t.cidCount,10):typeof t.cidCount=="number"?i.cidCount=t.cidCount:typeof t.cidCount=="object"&&(i.cidCount=new r.LongBits(t.cidCount.low>>>0,t.cidCount.high>>>0).toNumber())),t.cidList){if(!Array.isArray(t.cidList))throw TypeError(".bilibili.tv.interface_.v1.AutoPlay.cidList: array expected");i.cidList=[];for(let n=0;n>>0,t.cidCount.high>>>0).toNumber():t.cidCount),t.cidList&&t.cidList.length){n.cidList=[];for(let o=0;o>>3){case 1:{o.videoId=t.int64();break}case 2:{o.videoType=t.int64();break}case 3:{o.from=t.string();break}case 4:{o.title=t.string();break}case 5:{o.longTitle=t.string();break}case 6:{o.horizontalUrl=t.string();break}case 7:{o.hidemark=t.bool();break}case 8:{o.firsti=t.string();break}case 9:{o.isPortrait=t.bool();break}case 10:{o.page=t.int64();break}case 11:{o.needLogin=t.bool();break}case 12:{o.watchRight=t.int64();break}case 13:{o.paid=t.bool();break}case 14:{o.playurlArgs=u.bilibili.tv.interface_.v1.PlayurlArgs.decode(t,t.uint32());break}case 15:{o.cornermark=u.bilibili.tv.interface_.v1.Labels.decode(t,t.uint32());break}case 16:{o.copyright=t.int64();break}case 17:{o.allowDemand=t.bool();break}case 18:{o.aid=t.int64();break}case 19:{o.publishTime=t.int64();break}case 20:{o.publishDate=t.string();break}case 21:{o.duration=t.int64();break}case 22:{o.related=t.int32();break}case 23:{o.tabType=t.int64();break}case 24:{o.guideText=t.string();break}case 25:{o.guidePage=t.int64();break}case 26:{o.internalLinkId=t.int64();break}case 27:{o.firstiGau=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.tv.interface_.v1.CidList)return t;let i=new u.bilibili.tv.interface_.v1.CidList;if(t.videoId!=null&&(r.Long?(i.videoId=r.Long.fromValue(t.videoId)).unsigned=!1:typeof t.videoId=="string"?i.videoId=parseInt(t.videoId,10):typeof t.videoId=="number"?i.videoId=t.videoId:typeof t.videoId=="object"&&(i.videoId=new r.LongBits(t.videoId.low>>>0,t.videoId.high>>>0).toNumber())),t.videoType!=null&&(r.Long?(i.videoType=r.Long.fromValue(t.videoType)).unsigned=!1:typeof t.videoType=="string"?i.videoType=parseInt(t.videoType,10):typeof t.videoType=="number"?i.videoType=t.videoType:typeof t.videoType=="object"&&(i.videoType=new r.LongBits(t.videoType.low>>>0,t.videoType.high>>>0).toNumber())),t.from!=null&&(i.from=String(t.from)),t.title!=null&&(i.title=String(t.title)),t.longTitle!=null&&(i.longTitle=String(t.longTitle)),t.horizontalUrl!=null&&(i.horizontalUrl=String(t.horizontalUrl)),t.hidemark!=null&&(i.hidemark=!!t.hidemark),t.firsti!=null&&(i.firsti=String(t.firsti)),t.isPortrait!=null&&(i.isPortrait=!!t.isPortrait),t.page!=null&&(r.Long?(i.page=r.Long.fromValue(t.page)).unsigned=!1:typeof t.page=="string"?i.page=parseInt(t.page,10):typeof t.page=="number"?i.page=t.page:typeof t.page=="object"&&(i.page=new r.LongBits(t.page.low>>>0,t.page.high>>>0).toNumber())),t.needLogin!=null&&(i.needLogin=!!t.needLogin),t.watchRight!=null&&(r.Long?(i.watchRight=r.Long.fromValue(t.watchRight)).unsigned=!1:typeof t.watchRight=="string"?i.watchRight=parseInt(t.watchRight,10):typeof t.watchRight=="number"?i.watchRight=t.watchRight:typeof t.watchRight=="object"&&(i.watchRight=new r.LongBits(t.watchRight.low>>>0,t.watchRight.high>>>0).toNumber())),t.paid!=null&&(i.paid=!!t.paid),t.playurlArgs!=null){if(typeof t.playurlArgs!="object")throw TypeError(".bilibili.tv.interface_.v1.CidList.playurlArgs: object expected");i.playurlArgs=u.bilibili.tv.interface_.v1.PlayurlArgs.fromObject(t.playurlArgs)}if(t.cornermark!=null){if(typeof t.cornermark!="object")throw TypeError(".bilibili.tv.interface_.v1.CidList.cornermark: object expected");i.cornermark=u.bilibili.tv.interface_.v1.Labels.fromObject(t.cornermark)}return t.copyright!=null&&(r.Long?(i.copyright=r.Long.fromValue(t.copyright)).unsigned=!1:typeof t.copyright=="string"?i.copyright=parseInt(t.copyright,10):typeof t.copyright=="number"?i.copyright=t.copyright:typeof t.copyright=="object"&&(i.copyright=new r.LongBits(t.copyright.low>>>0,t.copyright.high>>>0).toNumber())),t.allowDemand!=null&&(i.allowDemand=!!t.allowDemand),t.aid!=null&&(r.Long?(i.aid=r.Long.fromValue(t.aid)).unsigned=!1:typeof t.aid=="string"?i.aid=parseInt(t.aid,10):typeof t.aid=="number"?i.aid=t.aid:typeof t.aid=="object"&&(i.aid=new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber())),t.publishTime!=null&&(r.Long?(i.publishTime=r.Long.fromValue(t.publishTime)).unsigned=!1:typeof t.publishTime=="string"?i.publishTime=parseInt(t.publishTime,10):typeof t.publishTime=="number"?i.publishTime=t.publishTime:typeof t.publishTime=="object"&&(i.publishTime=new r.LongBits(t.publishTime.low>>>0,t.publishTime.high>>>0).toNumber())),t.publishDate!=null&&(i.publishDate=String(t.publishDate)),t.duration!=null&&(r.Long?(i.duration=r.Long.fromValue(t.duration)).unsigned=!1:typeof t.duration=="string"?i.duration=parseInt(t.duration,10):typeof t.duration=="number"?i.duration=t.duration:typeof t.duration=="object"&&(i.duration=new r.LongBits(t.duration.low>>>0,t.duration.high>>>0).toNumber())),t.related!=null&&(i.related=t.related|0),t.tabType!=null&&(r.Long?(i.tabType=r.Long.fromValue(t.tabType)).unsigned=!1:typeof t.tabType=="string"?i.tabType=parseInt(t.tabType,10):typeof t.tabType=="number"?i.tabType=t.tabType:typeof t.tabType=="object"&&(i.tabType=new r.LongBits(t.tabType.low>>>0,t.tabType.high>>>0).toNumber())),t.guideText!=null&&(i.guideText=String(t.guideText)),t.guidePage!=null&&(r.Long?(i.guidePage=r.Long.fromValue(t.guidePage)).unsigned=!1:typeof t.guidePage=="string"?i.guidePage=parseInt(t.guidePage,10):typeof t.guidePage=="number"?i.guidePage=t.guidePage:typeof t.guidePage=="object"&&(i.guidePage=new r.LongBits(t.guidePage.low>>>0,t.guidePage.high>>>0).toNumber())),t.internalLinkId!=null&&(r.Long?(i.internalLinkId=r.Long.fromValue(t.internalLinkId)).unsigned=!1:typeof t.internalLinkId=="string"?i.internalLinkId=parseInt(t.internalLinkId,10):typeof t.internalLinkId=="number"?i.internalLinkId=t.internalLinkId:typeof t.internalLinkId=="object"&&(i.internalLinkId=new r.LongBits(t.internalLinkId.low>>>0,t.internalLinkId.high>>>0).toNumber())),t.firstiGau!=null&&(i.firstiGau=String(t.firstiGau)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.videoId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.videoId=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.videoType=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.videoType=i.longs===String?"0":0;if(n.from="",n.title="",n.longTitle="",n.horizontalUrl="",n.hidemark=!1,n.firsti="",n.isPortrait=!1,r.Long){let o=new r.Long(0,0,!1);n.page=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.page=i.longs===String?"0":0;if(n.needLogin=!1,r.Long){let o=new r.Long(0,0,!1);n.watchRight=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.watchRight=i.longs===String?"0":0;if(n.paid=!1,n.playurlArgs=null,n.cornermark=null,r.Long){let o=new r.Long(0,0,!1);n.copyright=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.copyright=i.longs===String?"0":0;if(n.allowDemand=!1,r.Long){let o=new r.Long(0,0,!1);n.aid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.aid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.publishTime=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.publishTime=i.longs===String?"0":0;if(n.publishDate="",r.Long){let o=new r.Long(0,0,!1);n.duration=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.duration=i.longs===String?"0":0;if(n.related=0,r.Long){let o=new r.Long(0,0,!1);n.tabType=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.tabType=i.longs===String?"0":0;if(n.guideText="",r.Long){let o=new r.Long(0,0,!1);n.guidePage=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.guidePage=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.internalLinkId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.internalLinkId=i.longs===String?"0":0;n.firstiGau=""}return t.videoId!=null&&t.hasOwnProperty("videoId")&&(typeof t.videoId=="number"?n.videoId=i.longs===String?String(t.videoId):t.videoId:n.videoId=i.longs===String?r.Long.prototype.toString.call(t.videoId):i.longs===Number?new r.LongBits(t.videoId.low>>>0,t.videoId.high>>>0).toNumber():t.videoId),t.videoType!=null&&t.hasOwnProperty("videoType")&&(typeof t.videoType=="number"?n.videoType=i.longs===String?String(t.videoType):t.videoType:n.videoType=i.longs===String?r.Long.prototype.toString.call(t.videoType):i.longs===Number?new r.LongBits(t.videoType.low>>>0,t.videoType.high>>>0).toNumber():t.videoType),t.from!=null&&t.hasOwnProperty("from")&&(n.from=t.from),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.longTitle!=null&&t.hasOwnProperty("longTitle")&&(n.longTitle=t.longTitle),t.horizontalUrl!=null&&t.hasOwnProperty("horizontalUrl")&&(n.horizontalUrl=t.horizontalUrl),t.hidemark!=null&&t.hasOwnProperty("hidemark")&&(n.hidemark=t.hidemark),t.firsti!=null&&t.hasOwnProperty("firsti")&&(n.firsti=t.firsti),t.isPortrait!=null&&t.hasOwnProperty("isPortrait")&&(n.isPortrait=t.isPortrait),t.page!=null&&t.hasOwnProperty("page")&&(typeof t.page=="number"?n.page=i.longs===String?String(t.page):t.page:n.page=i.longs===String?r.Long.prototype.toString.call(t.page):i.longs===Number?new r.LongBits(t.page.low>>>0,t.page.high>>>0).toNumber():t.page),t.needLogin!=null&&t.hasOwnProperty("needLogin")&&(n.needLogin=t.needLogin),t.watchRight!=null&&t.hasOwnProperty("watchRight")&&(typeof t.watchRight=="number"?n.watchRight=i.longs===String?String(t.watchRight):t.watchRight:n.watchRight=i.longs===String?r.Long.prototype.toString.call(t.watchRight):i.longs===Number?new r.LongBits(t.watchRight.low>>>0,t.watchRight.high>>>0).toNumber():t.watchRight),t.paid!=null&&t.hasOwnProperty("paid")&&(n.paid=t.paid),t.playurlArgs!=null&&t.hasOwnProperty("playurlArgs")&&(n.playurlArgs=u.bilibili.tv.interface_.v1.PlayurlArgs.toObject(t.playurlArgs,i)),t.cornermark!=null&&t.hasOwnProperty("cornermark")&&(n.cornermark=u.bilibili.tv.interface_.v1.Labels.toObject(t.cornermark,i)),t.copyright!=null&&t.hasOwnProperty("copyright")&&(typeof t.copyright=="number"?n.copyright=i.longs===String?String(t.copyright):t.copyright:n.copyright=i.longs===String?r.Long.prototype.toString.call(t.copyright):i.longs===Number?new r.LongBits(t.copyright.low>>>0,t.copyright.high>>>0).toNumber():t.copyright),t.allowDemand!=null&&t.hasOwnProperty("allowDemand")&&(n.allowDemand=t.allowDemand),t.aid!=null&&t.hasOwnProperty("aid")&&(typeof t.aid=="number"?n.aid=i.longs===String?String(t.aid):t.aid:n.aid=i.longs===String?r.Long.prototype.toString.call(t.aid):i.longs===Number?new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber():t.aid),t.publishTime!=null&&t.hasOwnProperty("publishTime")&&(typeof t.publishTime=="number"?n.publishTime=i.longs===String?String(t.publishTime):t.publishTime:n.publishTime=i.longs===String?r.Long.prototype.toString.call(t.publishTime):i.longs===Number?new r.LongBits(t.publishTime.low>>>0,t.publishTime.high>>>0).toNumber():t.publishTime),t.publishDate!=null&&t.hasOwnProperty("publishDate")&&(n.publishDate=t.publishDate),t.duration!=null&&t.hasOwnProperty("duration")&&(typeof t.duration=="number"?n.duration=i.longs===String?String(t.duration):t.duration:n.duration=i.longs===String?r.Long.prototype.toString.call(t.duration):i.longs===Number?new r.LongBits(t.duration.low>>>0,t.duration.high>>>0).toNumber():t.duration),t.related!=null&&t.hasOwnProperty("related")&&(n.related=t.related),t.tabType!=null&&t.hasOwnProperty("tabType")&&(typeof t.tabType=="number"?n.tabType=i.longs===String?String(t.tabType):t.tabType:n.tabType=i.longs===String?r.Long.prototype.toString.call(t.tabType):i.longs===Number?new r.LongBits(t.tabType.low>>>0,t.tabType.high>>>0).toNumber():t.tabType),t.guideText!=null&&t.hasOwnProperty("guideText")&&(n.guideText=t.guideText),t.guidePage!=null&&t.hasOwnProperty("guidePage")&&(typeof t.guidePage=="number"?n.guidePage=i.longs===String?String(t.guidePage):t.guidePage:n.guidePage=i.longs===String?r.Long.prototype.toString.call(t.guidePage):i.longs===Number?new r.LongBits(t.guidePage.low>>>0,t.guidePage.high>>>0).toNumber():t.guidePage),t.internalLinkId!=null&&t.hasOwnProperty("internalLinkId")&&(typeof t.internalLinkId=="number"?n.internalLinkId=i.longs===String?String(t.internalLinkId):t.internalLinkId:n.internalLinkId=i.longs===String?r.Long.prototype.toString.call(t.internalLinkId):i.longs===Number?new r.LongBits(t.internalLinkId.low>>>0,t.internalLinkId.high>>>0).toNumber():t.internalLinkId),t.firstiGau!=null&&t.hasOwnProperty("firstiGau")&&(n.firstiGau=t.firstiGau),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.tv.interface_.v1.CidList"},e}(),c.PlayurlArgs=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.playurlType=t.int64();break}case 2:{o.objectId=t.int64();break}case 3:{o.cid=t.int64();break}case 4:{o.highlight=t.int64();break}case 5:{o.sectionId=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.tv.interface_.v1.PlayurlArgs)return t;let i=new u.bilibili.tv.interface_.v1.PlayurlArgs;return t.playurlType!=null&&(r.Long?(i.playurlType=r.Long.fromValue(t.playurlType)).unsigned=!1:typeof t.playurlType=="string"?i.playurlType=parseInt(t.playurlType,10):typeof t.playurlType=="number"?i.playurlType=t.playurlType:typeof t.playurlType=="object"&&(i.playurlType=new r.LongBits(t.playurlType.low>>>0,t.playurlType.high>>>0).toNumber())),t.objectId!=null&&(r.Long?(i.objectId=r.Long.fromValue(t.objectId)).unsigned=!1:typeof t.objectId=="string"?i.objectId=parseInt(t.objectId,10):typeof t.objectId=="number"?i.objectId=t.objectId:typeof t.objectId=="object"&&(i.objectId=new r.LongBits(t.objectId.low>>>0,t.objectId.high>>>0).toNumber())),t.cid!=null&&(r.Long?(i.cid=r.Long.fromValue(t.cid)).unsigned=!1:typeof t.cid=="string"?i.cid=parseInt(t.cid,10):typeof t.cid=="number"?i.cid=t.cid:typeof t.cid=="object"&&(i.cid=new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber())),t.highlight!=null&&(r.Long?(i.highlight=r.Long.fromValue(t.highlight)).unsigned=!1:typeof t.highlight=="string"?i.highlight=parseInt(t.highlight,10):typeof t.highlight=="number"?i.highlight=t.highlight:typeof t.highlight=="object"&&(i.highlight=new r.LongBits(t.highlight.low>>>0,t.highlight.high>>>0).toNumber())),t.sectionId!=null&&(i.sectionId=String(t.sectionId)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.playurlType=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.playurlType=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.objectId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.objectId=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.cid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.cid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.highlight=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.highlight=i.longs===String?"0":0;n.sectionId=""}return t.playurlType!=null&&t.hasOwnProperty("playurlType")&&(typeof t.playurlType=="number"?n.playurlType=i.longs===String?String(t.playurlType):t.playurlType:n.playurlType=i.longs===String?r.Long.prototype.toString.call(t.playurlType):i.longs===Number?new r.LongBits(t.playurlType.low>>>0,t.playurlType.high>>>0).toNumber():t.playurlType),t.objectId!=null&&t.hasOwnProperty("objectId")&&(typeof t.objectId=="number"?n.objectId=i.longs===String?String(t.objectId):t.objectId:n.objectId=i.longs===String?r.Long.prototype.toString.call(t.objectId):i.longs===Number?new r.LongBits(t.objectId.low>>>0,t.objectId.high>>>0).toNumber():t.objectId),t.cid!=null&&t.hasOwnProperty("cid")&&(typeof t.cid=="number"?n.cid=i.longs===String?String(t.cid):t.cid:n.cid=i.longs===String?r.Long.prototype.toString.call(t.cid):i.longs===Number?new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber():t.cid),t.highlight!=null&&t.hasOwnProperty("highlight")&&(typeof t.highlight=="number"?n.highlight=i.longs===String?String(t.highlight):t.highlight:n.highlight=i.longs===String?r.Long.prototype.toString.call(t.highlight):i.longs===Number?new r.LongBits(t.highlight.low>>>0,t.highlight.high>>>0).toNumber():t.highlight),t.sectionId!=null&&t.hasOwnProperty("sectionId")&&(n.sectionId=t.sectionId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.tv.interface_.v1.PlayurlArgs"},e}(),c.CheeseExt=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.buyButton=u.bilibili.tv.interface_.v1.CheeseBuyButton.decode(t,t.uint32());break}case 2:{o.rights=u.bilibili.tv.interface_.v1.CheeseExtRight.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.tv.interface_.v1.CheeseExt)return t;let i=new u.bilibili.tv.interface_.v1.CheeseExt;if(t.buyButton!=null){if(typeof t.buyButton!="object")throw TypeError(".bilibili.tv.interface_.v1.CheeseExt.buyButton: object expected");i.buyButton=u.bilibili.tv.interface_.v1.CheeseBuyButton.fromObject(t.buyButton)}if(t.rights!=null){if(typeof t.rights!="object")throw TypeError(".bilibili.tv.interface_.v1.CheeseExt.rights: object expected");i.rights=u.bilibili.tv.interface_.v1.CheeseExtRight.fromObject(t.rights)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.buyButton=null,n.rights=null),t.buyButton!=null&&t.hasOwnProperty("buyButton")&&(n.buyButton=u.bilibili.tv.interface_.v1.CheeseBuyButton.toObject(t.buyButton,i)),t.rights!=null&&t.hasOwnProperty("rights")&&(n.rights=u.bilibili.tv.interface_.v1.CheeseExtRight.toObject(t.rights,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.tv.interface_.v1.CheeseExt"},e}(),c.CheeseBuyButton=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.cover=t.string();break}case 2:{o.focusCover=t.string();break}case 3:{o.text=t.string();break}case 4:{o.textBuy=t.string();break}case 5:{o.schema=t.string();break}case 6:{o.type=t.int32();break}case 7:{o.toast=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.tv.interface_.v1.CheeseBuyButton)return t;let i=new u.bilibili.tv.interface_.v1.CheeseBuyButton;return t.cover!=null&&(i.cover=String(t.cover)),t.focusCover!=null&&(i.focusCover=String(t.focusCover)),t.text!=null&&(i.text=String(t.text)),t.textBuy!=null&&(i.textBuy=String(t.textBuy)),t.schema!=null&&(i.schema=String(t.schema)),t.type!=null&&(i.type=t.type|0),t.toast!=null&&(i.toast=String(t.toast)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.cover="",n.focusCover="",n.text="",n.textBuy="",n.schema="",n.type=0,n.toast=""),t.cover!=null&&t.hasOwnProperty("cover")&&(n.cover=t.cover),t.focusCover!=null&&t.hasOwnProperty("focusCover")&&(n.focusCover=t.focusCover),t.text!=null&&t.hasOwnProperty("text")&&(n.text=t.text),t.textBuy!=null&&t.hasOwnProperty("textBuy")&&(n.textBuy=t.textBuy),t.schema!=null&&t.hasOwnProperty("schema")&&(n.schema=t.schema),t.type!=null&&t.hasOwnProperty("type")&&(n.type=t.type),t.toast!=null&&t.hasOwnProperty("toast")&&(n.toast=t.toast),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.tv.interface_.v1.CheeseBuyButton"},e}(),c.CheeseExtRight=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.allowBuy=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.tv.interface_.v1.CheeseExtRight)return t;let i=new u.bilibili.tv.interface_.v1.CheeseExtRight;return t.allowBuy!=null&&(i.allowBuy=t.allowBuy|0),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.allowBuy=0),t.allowBuy!=null&&t.hasOwnProperty("allowBuy")&&(n.allowBuy=t.allowBuy),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.tv.interface_.v1.CheeseExtRight"},e}(),c.PgcExt=function(){function e(l){if(this.demandNoPayEpids=[],this.marqueeDesc=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.rights=u.bilibili.tv.interface_.v1.Rights.decode(t,t.uint32());break}case 2:{o.entrance=u.bilibili.tv.interface_.v1.Entrance.decode(t,t.uint32());break}case 3:{if(o.demandNoPayEpids&&o.demandNoPayEpids.length||(o.demandNoPayEpids=[]),(a&7)===2){let y=t.uint32()+t.pos;for(;t.pos>>0,t.playlistEpid.high>>>0).toNumber())),t.payTime!=null&&(r.Long?(i.payTime=r.Long.fromValue(t.payTime)).unsigned=!1:typeof t.payTime=="string"?i.payTime=parseInt(t.payTime,10):typeof t.payTime=="number"?i.payTime=t.payTime:typeof t.payTime=="object"&&(i.payTime=new r.LongBits(t.payTime.low>>>0,t.payTime.high>>>0).toNumber())),t.userStatus!=null){if(typeof t.userStatus!="object")throw TypeError(".bilibili.tv.interface_.v1.PgcExt.userStatus: object expected");i.userStatus=u.bilibili.tv.interface_.v1.UserStatus.fromObject(t.userStatus)}return t.scoreStr!=null&&(i.scoreStr=String(t.scoreStr)),i},e.toObject=function(t,i){i||(i={});let n={};if((i.arrays||i.defaults)&&(n.demandNoPayEpids=[],n.marqueeDesc=[]),i.defaults){if(n.rights=null,n.entrance=null,n.record="",n.showIndex="",n.archiveView="",n.style="",n.isFinish=0,n.highlight=null,n.highlightV2=null,n.score=0,n.buttonText="",n.viewCloseUploader=!1,n.titleCover="",n.buyButton=null,n.favorites="",n.isFourk=!1,r.Long){let o=new r.Long(0,0,!1);n.playlistEpid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.playlistEpid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.payTime=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.payTime=i.longs===String?"0":0;n.userStatus=null,n.scoreStr=""}if(t.rights!=null&&t.hasOwnProperty("rights")&&(n.rights=u.bilibili.tv.interface_.v1.Rights.toObject(t.rights,i)),t.entrance!=null&&t.hasOwnProperty("entrance")&&(n.entrance=u.bilibili.tv.interface_.v1.Entrance.toObject(t.entrance,i)),t.demandNoPayEpids&&t.demandNoPayEpids.length){n.demandNoPayEpids=[];for(let o=0;o>>0,t.playlistEpid.high>>>0).toNumber():t.playlistEpid),t.payTime!=null&&t.hasOwnProperty("payTime")&&(typeof t.payTime=="number"?n.payTime=i.longs===String?String(t.payTime):t.payTime:n.payTime=i.longs===String?r.Long.prototype.toString.call(t.payTime):i.longs===Number?new r.LongBits(t.payTime.low>>>0,t.payTime.high>>>0).toNumber():t.payTime),t.userStatus!=null&&t.hasOwnProperty("userStatus")&&(n.userStatus=u.bilibili.tv.interface_.v1.UserStatus.toObject(t.userStatus,i)),t.scoreStr!=null&&t.hasOwnProperty("scoreStr")&&(n.scoreStr=t.scoreStr),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.tv.interface_.v1.PgcExt"},e}(),c.Rights=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.allowBp=t.int32();break}case 2:{o.allowDownload=t.int32();break}case 3:{o.allowReview=t.int32();break}case 4:{o.areaLimit=t.int32();break}case 5:{o.banAreaShow=t.int32();break}case 6:{o.copyright=t.string();break}case 7:{o.isPreview=t.int32();break}case 8:{o.allowLike=t.int32();break}case 9:{o.allowFollow=t.int32();break}case 10:{o.allowBuy=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.tv.interface_.v1.Rights)return t;let i=new u.bilibili.tv.interface_.v1.Rights;return t.allowBp!=null&&(i.allowBp=t.allowBp|0),t.allowDownload!=null&&(i.allowDownload=t.allowDownload|0),t.allowReview!=null&&(i.allowReview=t.allowReview|0),t.areaLimit!=null&&(i.areaLimit=t.areaLimit|0),t.banAreaShow!=null&&(i.banAreaShow=t.banAreaShow|0),t.copyright!=null&&(i.copyright=String(t.copyright)),t.isPreview!=null&&(i.isPreview=t.isPreview|0),t.allowLike!=null&&(i.allowLike=t.allowLike|0),t.allowFollow!=null&&(i.allowFollow=t.allowFollow|0),t.allowBuy!=null&&(i.allowBuy=t.allowBuy|0),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.allowBp=0,n.allowDownload=0,n.allowReview=0,n.areaLimit=0,n.banAreaShow=0,n.copyright="",n.isPreview=0,n.allowLike=0,n.allowFollow=0,n.allowBuy=0),t.allowBp!=null&&t.hasOwnProperty("allowBp")&&(n.allowBp=t.allowBp),t.allowDownload!=null&&t.hasOwnProperty("allowDownload")&&(n.allowDownload=t.allowDownload),t.allowReview!=null&&t.hasOwnProperty("allowReview")&&(n.allowReview=t.allowReview),t.areaLimit!=null&&t.hasOwnProperty("areaLimit")&&(n.areaLimit=t.areaLimit),t.banAreaShow!=null&&t.hasOwnProperty("banAreaShow")&&(n.banAreaShow=t.banAreaShow),t.copyright!=null&&t.hasOwnProperty("copyright")&&(n.copyright=t.copyright),t.isPreview!=null&&t.hasOwnProperty("isPreview")&&(n.isPreview=t.isPreview),t.allowLike!=null&&t.hasOwnProperty("allowLike")&&(n.allowLike=t.allowLike),t.allowFollow!=null&&t.hasOwnProperty("allowFollow")&&(n.allowFollow=t.allowFollow),t.allowBuy!=null&&t.hasOwnProperty("allowBuy")&&(n.allowBuy=t.allowBuy),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.tv.interface_.v1.Rights"},e}(),c.Entrance=function(){function e(l){if(this.buttons=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.subTitle=t.string();break}case 3:{o.score=t.string();break}case 4:{o.text=t.string();break}case 5:{o.img=t.string();break}case 6:{o.jumpUrl=t.string();break}case 7:{o.buttons&&o.buttons.length||(o.buttons=[]),o.buttons.push(u.bilibili.tv.interface_.v1.BuyButton.decode(t,t.uint32()));break}case 8:{o.showDru=t.int64();break}case 9:{o.showTime=t.int64();break}case 10:{o.style=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.tv.interface_.v1.Entrance)return t;let i=new u.bilibili.tv.interface_.v1.Entrance;if(t.title!=null&&(i.title=String(t.title)),t.subTitle!=null&&(i.subTitle=String(t.subTitle)),t.score!=null&&(i.score=String(t.score)),t.text!=null&&(i.text=String(t.text)),t.img!=null&&(i.img=String(t.img)),t.jumpUrl!=null&&(i.jumpUrl=String(t.jumpUrl)),t.buttons){if(!Array.isArray(t.buttons))throw TypeError(".bilibili.tv.interface_.v1.Entrance.buttons: array expected");i.buttons=[];for(let n=0;n>>0,t.showDru.high>>>0).toNumber())),t.showTime!=null&&(r.Long?(i.showTime=r.Long.fromValue(t.showTime)).unsigned=!1:typeof t.showTime=="string"?i.showTime=parseInt(t.showTime,10):typeof t.showTime=="number"?i.showTime=t.showTime:typeof t.showTime=="object"&&(i.showTime=new r.LongBits(t.showTime.low>>>0,t.showTime.high>>>0).toNumber())),t.style!=null&&(i.style=t.style|0),i},e.toObject=function(t,i){i||(i={});let n={};if((i.arrays||i.defaults)&&(n.buttons=[]),i.defaults){if(n.title="",n.subTitle="",n.score="",n.text="",n.img="",n.jumpUrl="",r.Long){let o=new r.Long(0,0,!1);n.showDru=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.showDru=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.showTime=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.showTime=i.longs===String?"0":0;n.style=0}if(t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.subTitle!=null&&t.hasOwnProperty("subTitle")&&(n.subTitle=t.subTitle),t.score!=null&&t.hasOwnProperty("score")&&(n.score=t.score),t.text!=null&&t.hasOwnProperty("text")&&(n.text=t.text),t.img!=null&&t.hasOwnProperty("img")&&(n.img=t.img),t.jumpUrl!=null&&t.hasOwnProperty("jumpUrl")&&(n.jumpUrl=t.jumpUrl),t.buttons&&t.buttons.length){n.buttons=[];for(let o=0;o>>0,t.showDru.high>>>0).toNumber():t.showDru),t.showTime!=null&&t.hasOwnProperty("showTime")&&(typeof t.showTime=="number"?n.showTime=i.longs===String?String(t.showTime):t.showTime:n.showTime=i.longs===String?r.Long.prototype.toString.call(t.showTime):i.longs===Number?new r.LongBits(t.showTime.low>>>0,t.showTime.high>>>0).toNumber():t.showTime),t.style!=null&&t.hasOwnProperty("style")&&(n.style=t.style),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.tv.interface_.v1.Entrance"},e}(),c.BuyButton=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.cover=t.string();break}case 2:{o.focusCover=t.string();break}case 3:{o.text=t.string();break}case 4:{o.schema=t.string();break}case 5:{o.type=t.int32();break}case 6:{o.infocId=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.tv.interface_.v1.BuyButton)return t;let i=new u.bilibili.tv.interface_.v1.BuyButton;return t.cover!=null&&(i.cover=String(t.cover)),t.focusCover!=null&&(i.focusCover=String(t.focusCover)),t.text!=null&&(i.text=String(t.text)),t.schema!=null&&(i.schema=String(t.schema)),t.type!=null&&(i.type=t.type|0),t.infocId!=null&&(i.infocId=t.infocId|0),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.cover="",n.focusCover="",n.text="",n.schema="",n.type=0,n.infocId=0),t.cover!=null&&t.hasOwnProperty("cover")&&(n.cover=t.cover),t.focusCover!=null&&t.hasOwnProperty("focusCover")&&(n.focusCover=t.focusCover),t.text!=null&&t.hasOwnProperty("text")&&(n.text=t.text),t.schema!=null&&t.hasOwnProperty("schema")&&(n.schema=t.schema),t.type!=null&&t.hasOwnProperty("type")&&(n.type=t.type),t.infocId!=null&&t.hasOwnProperty("infocId")&&(n.infocId=t.infocId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.tv.interface_.v1.BuyButton"},e}(),c.HighLight=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.startTime=t.int64();break}case 2:{o.endTime=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.tv.interface_.v1.HighLight)return t;let i=new u.bilibili.tv.interface_.v1.HighLight;return t.startTime!=null&&(r.Long?(i.startTime=r.Long.fromValue(t.startTime)).unsigned=!1:typeof t.startTime=="string"?i.startTime=parseInt(t.startTime,10):typeof t.startTime=="number"?i.startTime=t.startTime:typeof t.startTime=="object"&&(i.startTime=new r.LongBits(t.startTime.low>>>0,t.startTime.high>>>0).toNumber())),t.endTime!=null&&(r.Long?(i.endTime=r.Long.fromValue(t.endTime)).unsigned=!1:typeof t.endTime=="string"?i.endTime=parseInt(t.endTime,10):typeof t.endTime=="number"?i.endTime=t.endTime:typeof t.endTime=="object"&&(i.endTime=new r.LongBits(t.endTime.low>>>0,t.endTime.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.startTime=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.startTime=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.endTime=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.endTime=i.longs===String?"0":0}return t.startTime!=null&&t.hasOwnProperty("startTime")&&(typeof t.startTime=="number"?n.startTime=i.longs===String?String(t.startTime):t.startTime:n.startTime=i.longs===String?r.Long.prototype.toString.call(t.startTime):i.longs===Number?new r.LongBits(t.startTime.low>>>0,t.startTime.high>>>0).toNumber():t.startTime),t.endTime!=null&&t.hasOwnProperty("endTime")&&(typeof t.endTime=="number"?n.endTime=i.longs===String?String(t.endTime):t.endTime:n.endTime=i.longs===String?r.Long.prototype.toString.call(t.endTime):i.longs===Number?new r.LongBits(t.endTime.low>>>0,t.endTime.high>>>0).toNumber():t.endTime),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.tv.interface_.v1.HighLight"},e}(),c.UserStatus=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.Follow=t.int32();break}case 2:{o.Pay=t.int32();break}case 3:{o.WatchProgress=u.bilibili.tv.interface_.v1.WatchProgress.decode(t,t.uint32());break}case 4:{o.Booking=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.tv.interface_.v1.UserStatus)return t;let i=new u.bilibili.tv.interface_.v1.UserStatus;if(t.Follow!=null&&(i.Follow=t.Follow|0),t.Pay!=null&&(i.Pay=t.Pay|0),t.WatchProgress!=null){if(typeof t.WatchProgress!="object")throw TypeError(".bilibili.tv.interface_.v1.UserStatus.WatchProgress: object expected");i.WatchProgress=u.bilibili.tv.interface_.v1.WatchProgress.fromObject(t.WatchProgress)}return t.Booking!=null&&(i.Booking=t.Booking|0),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.Follow=0,n.Pay=0,n.WatchProgress=null,n.Booking=0),t.Follow!=null&&t.hasOwnProperty("Follow")&&(n.Follow=t.Follow),t.Pay!=null&&t.hasOwnProperty("Pay")&&(n.Pay=t.Pay),t.WatchProgress!=null&&t.hasOwnProperty("WatchProgress")&&(n.WatchProgress=u.bilibili.tv.interface_.v1.WatchProgress.toObject(t.WatchProgress,i)),t.Booking!=null&&t.hasOwnProperty("Booking")&&(n.Booking=t.Booking),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.tv.interface_.v1.UserStatus"},e}(),c.WatchProgress=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.lastEpId=t.int32();break}case 2:{o.lastEpIndex=t.int32();break}case 3:{o.lastTime=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.tv.interface_.v1.WatchProgress)return t;let i=new u.bilibili.tv.interface_.v1.WatchProgress;return t.lastEpId!=null&&(i.lastEpId=t.lastEpId|0),t.lastEpIndex!=null&&(i.lastEpIndex=t.lastEpIndex|0),t.lastTime!=null&&(r.Long?(i.lastTime=r.Long.fromValue(t.lastTime)).unsigned=!1:typeof t.lastTime=="string"?i.lastTime=parseInt(t.lastTime,10):typeof t.lastTime=="number"?i.lastTime=t.lastTime:typeof t.lastTime=="object"&&(i.lastTime=new r.LongBits(t.lastTime.low>>>0,t.lastTime.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(n.lastEpId=0,n.lastEpIndex=0,r.Long){let o=new r.Long(0,0,!1);n.lastTime=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.lastTime=i.longs===String?"0":0;return t.lastEpId!=null&&t.hasOwnProperty("lastEpId")&&(n.lastEpId=t.lastEpId),t.lastEpIndex!=null&&t.hasOwnProperty("lastEpIndex")&&(n.lastEpIndex=t.lastEpIndex),t.lastTime!=null&&t.hasOwnProperty("lastTime")&&(typeof t.lastTime=="number"?n.lastTime=i.longs===String?String(t.lastTime):t.lastTime:n.lastTime=i.longs===String?r.Long.prototype.toString.call(t.lastTime):i.longs===Number?new r.LongBits(t.lastTime.low>>>0,t.lastTime.high>>>0).toNumber():t.lastTime),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.tv.interface_.v1.WatchProgress"},e}(),c.UgcExt=function(){function e(l){if(this.listSubtitles=[],this.viewSubtitles=[],this.searchSubtitles=[],this.actions=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.hasLike=t.bool();break}case 2:{o.likes=t.string();break}case 3:{o.archiveView=t.string();break}case 4:{o.favorites=t.string();break}case 5:{o.duration=t.int64();break}case 6:{o.listSubtitle=u.bilibili.tv.interface_.v1.UGCCardSubtitle.decode(t,t.uint32());break}case 7:{o.listSubtitles&&o.listSubtitles.length||(o.listSubtitles=[]),o.listSubtitles.push(u.bilibili.tv.interface_.v1.UGCCardSubtitle.decode(t,t.uint32()));break}case 8:{o.viewSubtitles&&o.viewSubtitles.length||(o.viewSubtitles=[]),o.viewSubtitles.push(u.bilibili.tv.interface_.v1.UGCCardSubtitle.decode(t,t.uint32()));break}case 9:{o.searchSubtitles&&o.searchSubtitles.length||(o.searchSubtitles=[]),o.searchSubtitles.push(u.bilibili.tv.interface_.v1.UGCCardSubtitle.decode(t,t.uint32()));break}case 10:{o.actions&&o.actions.length||(o.actions=[]),o.actions.push(u.bilibili.tv.interface_.v1.UgcCardAction.decode(t,t.uint32()));break}case 11:{o.viewCloseUploader=t.bool();break}case 12:{o.rights=u.bilibili.tv.interface_.v1.UgcRights.decode(t,t.uint32());break}case 13:{o.upExt=u.bilibili.tv.interface_.v1.UpExtInfo.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.tv.interface_.v1.UgcExt)return t;let i=new u.bilibili.tv.interface_.v1.UgcExt;if(t.hasLike!=null&&(i.hasLike=!!t.hasLike),t.likes!=null&&(i.likes=String(t.likes)),t.archiveView!=null&&(i.archiveView=String(t.archiveView)),t.favorites!=null&&(i.favorites=String(t.favorites)),t.duration!=null&&(r.Long?(i.duration=r.Long.fromValue(t.duration)).unsigned=!1:typeof t.duration=="string"?i.duration=parseInt(t.duration,10):typeof t.duration=="number"?i.duration=t.duration:typeof t.duration=="object"&&(i.duration=new r.LongBits(t.duration.low>>>0,t.duration.high>>>0).toNumber())),t.listSubtitle!=null){if(typeof t.listSubtitle!="object")throw TypeError(".bilibili.tv.interface_.v1.UgcExt.listSubtitle: object expected");i.listSubtitle=u.bilibili.tv.interface_.v1.UGCCardSubtitle.fromObject(t.listSubtitle)}if(t.listSubtitles){if(!Array.isArray(t.listSubtitles))throw TypeError(".bilibili.tv.interface_.v1.UgcExt.listSubtitles: array expected");i.listSubtitles=[];for(let n=0;n>>0,t.duration.high>>>0).toNumber():t.duration),t.listSubtitle!=null&&t.hasOwnProperty("listSubtitle")&&(n.listSubtitle=u.bilibili.tv.interface_.v1.UGCCardSubtitle.toObject(t.listSubtitle,i)),t.listSubtitles&&t.listSubtitles.length){n.listSubtitles=[];for(let o=0;o>>3){case 1:{o.icon=t.string();break}case 2:{o.text=t.string();break}case 3:{o.jumpTo=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.tv.interface_.v1.UGCCardSubtitle)return t;let i=new u.bilibili.tv.interface_.v1.UGCCardSubtitle;return t.icon!=null&&(i.icon=String(t.icon)),t.text!=null&&(i.text=String(t.text)),t.jumpTo!=null&&(i.jumpTo=String(t.jumpTo)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.icon="",n.text="",n.jumpTo=""),t.icon!=null&&t.hasOwnProperty("icon")&&(n.icon=t.icon),t.text!=null&&t.hasOwnProperty("text")&&(n.text=t.text),t.jumpTo!=null&&t.hasOwnProperty("jumpTo")&&(n.jumpTo=t.jumpTo),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.tv.interface_.v1.UGCCardSubtitle"},e}(),c.UgcCardAction=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.type=t.string();break}case 2:{o.icon=t.string();break}case 3:{o.text=t.string();break}case 4:{o.jumpTo=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.tv.interface_.v1.UgcCardAction)return t;let i=new u.bilibili.tv.interface_.v1.UgcCardAction;return t.type!=null&&(i.type=String(t.type)),t.icon!=null&&(i.icon=String(t.icon)),t.text!=null&&(i.text=String(t.text)),t.jumpTo!=null&&(i.jumpTo=String(t.jumpTo)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.type="",n.icon="",n.text="",n.jumpTo=""),t.type!=null&&t.hasOwnProperty("type")&&(n.type=t.type),t.icon!=null&&t.hasOwnProperty("icon")&&(n.icon=t.icon),t.text!=null&&t.hasOwnProperty("text")&&(n.text=t.text),t.jumpTo!=null&&t.hasOwnProperty("jumpTo")&&(n.jumpTo=t.jumpTo),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.tv.interface_.v1.UgcCardAction"},e}(),c.UgcRights=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.allowLike=t.int32();break}case 2:{o.allowFollow=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.tv.interface_.v1.UgcRights)return t;let i=new u.bilibili.tv.interface_.v1.UgcRights;return t.allowLike!=null&&(i.allowLike=t.allowLike|0),t.allowFollow!=null&&(i.allowFollow=t.allowFollow|0),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.allowLike=0,n.allowFollow=0),t.allowLike!=null&&t.hasOwnProperty("allowLike")&&(n.allowLike=t.allowLike),t.allowFollow!=null&&t.hasOwnProperty("allowFollow")&&(n.allowFollow=t.allowFollow),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.tv.interface_.v1.UgcRights"},e}(),c.UpExtInfo=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.upName=t.string();break}case 2:{o.ipLocation=t.string();break}case 3:{o.mcnName=t.string();break}case 4:{o.liveRoom=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.tv.interface_.v1.UpExtInfo)return t;let i=new u.bilibili.tv.interface_.v1.UpExtInfo;return t.upName!=null&&(i.upName=String(t.upName)),t.ipLocation!=null&&(i.ipLocation=String(t.ipLocation)),t.mcnName!=null&&(i.mcnName=String(t.mcnName)),t.liveRoom!=null&&(i.liveRoom=String(t.liveRoom)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.upName="",n.ipLocation="",n.mcnName="",n.liveRoom=""),t.upName!=null&&t.hasOwnProperty("upName")&&(n.upName=t.upName),t.ipLocation!=null&&t.hasOwnProperty("ipLocation")&&(n.ipLocation=t.ipLocation),t.mcnName!=null&&t.hasOwnProperty("mcnName")&&(n.mcnName=t.mcnName),t.liveRoom!=null&&t.hasOwnProperty("liveRoom")&&(n.liveRoom=t.liveRoom),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.tv.interface_.v1.UpExtInfo"},e}(),c.LiveExt=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.liveSkip=u.bilibili.tv.interface_.v1.LiveSkipResp.decode(t,t.uint32());break}case 2:{o.popularityCount=t.int64();break}case 3:{o.message=t.string();break}case 4:{o.status=t.int64();break}case 5:{o.liveKey=t.string();break}case 6:{o.subSessionKey=t.string();break}case 7:{o.liveType=t.int64();break}case 8:{o.chatTitle=t.string();break}case 9:{o.popularityText=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.tv.interface_.v1.LiveExt)return t;let i=new u.bilibili.tv.interface_.v1.LiveExt;if(t.liveSkip!=null){if(typeof t.liveSkip!="object")throw TypeError(".bilibili.tv.interface_.v1.LiveExt.liveSkip: object expected");i.liveSkip=u.bilibili.tv.interface_.v1.LiveSkipResp.fromObject(t.liveSkip)}return t.popularityCount!=null&&(r.Long?(i.popularityCount=r.Long.fromValue(t.popularityCount)).unsigned=!1:typeof t.popularityCount=="string"?i.popularityCount=parseInt(t.popularityCount,10):typeof t.popularityCount=="number"?i.popularityCount=t.popularityCount:typeof t.popularityCount=="object"&&(i.popularityCount=new r.LongBits(t.popularityCount.low>>>0,t.popularityCount.high>>>0).toNumber())),t.message!=null&&(i.message=String(t.message)),t.status!=null&&(r.Long?(i.status=r.Long.fromValue(t.status)).unsigned=!1:typeof t.status=="string"?i.status=parseInt(t.status,10):typeof t.status=="number"?i.status=t.status:typeof t.status=="object"&&(i.status=new r.LongBits(t.status.low>>>0,t.status.high>>>0).toNumber())),t.liveKey!=null&&(i.liveKey=String(t.liveKey)),t.subSessionKey!=null&&(i.subSessionKey=String(t.subSessionKey)),t.liveType!=null&&(r.Long?(i.liveType=r.Long.fromValue(t.liveType)).unsigned=!1:typeof t.liveType=="string"?i.liveType=parseInt(t.liveType,10):typeof t.liveType=="number"?i.liveType=t.liveType:typeof t.liveType=="object"&&(i.liveType=new r.LongBits(t.liveType.low>>>0,t.liveType.high>>>0).toNumber())),t.chatTitle!=null&&(i.chatTitle=String(t.chatTitle)),t.popularityText!=null&&(i.popularityText=String(t.popularityText)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.liveSkip=null,r.Long){let o=new r.Long(0,0,!1);n.popularityCount=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.popularityCount=i.longs===String?"0":0;if(n.message="",r.Long){let o=new r.Long(0,0,!1);n.status=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.status=i.longs===String?"0":0;if(n.liveKey="",n.subSessionKey="",r.Long){let o=new r.Long(0,0,!1);n.liveType=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.liveType=i.longs===String?"0":0;n.chatTitle="",n.popularityText=""}return t.liveSkip!=null&&t.hasOwnProperty("liveSkip")&&(n.liveSkip=u.bilibili.tv.interface_.v1.LiveSkipResp.toObject(t.liveSkip,i)),t.popularityCount!=null&&t.hasOwnProperty("popularityCount")&&(typeof t.popularityCount=="number"?n.popularityCount=i.longs===String?String(t.popularityCount):t.popularityCount:n.popularityCount=i.longs===String?r.Long.prototype.toString.call(t.popularityCount):i.longs===Number?new r.LongBits(t.popularityCount.low>>>0,t.popularityCount.high>>>0).toNumber():t.popularityCount),t.message!=null&&t.hasOwnProperty("message")&&(n.message=t.message),t.status!=null&&t.hasOwnProperty("status")&&(typeof t.status=="number"?n.status=i.longs===String?String(t.status):t.status:n.status=i.longs===String?r.Long.prototype.toString.call(t.status):i.longs===Number?new r.LongBits(t.status.low>>>0,t.status.high>>>0).toNumber():t.status),t.liveKey!=null&&t.hasOwnProperty("liveKey")&&(n.liveKey=t.liveKey),t.subSessionKey!=null&&t.hasOwnProperty("subSessionKey")&&(n.subSessionKey=t.subSessionKey),t.liveType!=null&&t.hasOwnProperty("liveType")&&(typeof t.liveType=="number"?n.liveType=i.longs===String?String(t.liveType):t.liveType:n.liveType=i.longs===String?r.Long.prototype.toString.call(t.liveType):i.longs===Number?new r.LongBits(t.liveType.low>>>0,t.liveType.high>>>0).toNumber():t.liveType),t.chatTitle!=null&&t.hasOwnProperty("chatTitle")&&(n.chatTitle=t.chatTitle),t.popularityText!=null&&t.hasOwnProperty("popularityText")&&(n.popularityText=t.popularityText),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.tv.interface_.v1.LiveExt"},e}(),c.LiveSkipResp=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.etime=t.string();break}case 2:{o.curTime=t.string();break}case 3:{o.contentId=t.int64();break}case 4:{o.type=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.tv.interface_.v1.LiveSkipResp)return t;let i=new u.bilibili.tv.interface_.v1.LiveSkipResp;return t.etime!=null&&(i.etime=String(t.etime)),t.curTime!=null&&(i.curTime=String(t.curTime)),t.contentId!=null&&(r.Long?(i.contentId=r.Long.fromValue(t.contentId)).unsigned=!1:typeof t.contentId=="string"?i.contentId=parseInt(t.contentId,10):typeof t.contentId=="number"?i.contentId=t.contentId:typeof t.contentId=="object"&&(i.contentId=new r.LongBits(t.contentId.low>>>0,t.contentId.high>>>0).toNumber())),t.type!=null&&(i.type=t.type|0),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.etime="",n.curTime="",r.Long){let o=new r.Long(0,0,!1);n.contentId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.contentId=i.longs===String?"0":0;n.type=0}return t.etime!=null&&t.hasOwnProperty("etime")&&(n.etime=t.etime),t.curTime!=null&&t.hasOwnProperty("curTime")&&(n.curTime=t.curTime),t.contentId!=null&&t.hasOwnProperty("contentId")&&(typeof t.contentId=="number"?n.contentId=i.longs===String?String(t.contentId):t.contentId:n.contentId=i.longs===String?r.Long.prototype.toString.call(t.contentId):i.longs===Number?new r.LongBits(t.contentId.low>>>0,t.contentId.high>>>0).toNumber():t.contentId),t.type!=null&&t.hasOwnProperty("type")&&(n.type=t.type),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.tv.interface_.v1.LiveSkipResp"},e}(),c.AdExtra=function(){function e(l){if(this.showUrls=[],this.clickUrls=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.adCb=t.string();break}case 2:{o.creativeId=t.int64();break}case 3:{o.clientIp=t.string();break}case 4:{o.isAd=t.bool();break}case 5:{o.requestId=t.string();break}case 6:{o.resourceId=t.int64();break}case 7:{o.sourceId=t.int64();break}case 8:{o.cardIndex=t.int64();break}case 9:{o.isAdLoc=t.bool();break}case 10:{o.adTagStyle=u.bilibili.tv.interface_.v1.FeedAdExtraAdTagStyle.decode(t,t.uint32());break}case 11:{o.jumpUrl=t.string();break}case 12:{o.referralPopActiveTime=t.int64();break}case 13:{o.referralPopTime=t.int64();break}case 14:{o.video=u.bilibili.tv.interface_.v1.FeedAdExtraVideo.decode(t,t.uint32());break}case 15:{o.showUrls&&o.showUrls.length||(o.showUrls=[]),o.showUrls.push(t.string());break}case 16:{o.clickUrls&&o.clickUrls.length||(o.clickUrls=[]),o.clickUrls.push(t.string());break}case 17:{o.ottJumpUrl=t.string();break}case 18:{o.referralBgImg=t.string();break}case 19:{o.referralActImg=t.string();break}case 20:{o.isShop=t.bool();break}case 21:{o.fromTrackId=t.string();break}case 22:{o.cmFromTrackId=t.string();break}case 23:{o.shopFrom=t.int64();break}case 24:{o.adFrom=t.string();break}case 25:{o.adId=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.tv.interface_.v1.AdExtra)return t;let i=new u.bilibili.tv.interface_.v1.AdExtra;if(t.adCb!=null&&(i.adCb=String(t.adCb)),t.creativeId!=null&&(r.Long?(i.creativeId=r.Long.fromValue(t.creativeId)).unsigned=!1:typeof t.creativeId=="string"?i.creativeId=parseInt(t.creativeId,10):typeof t.creativeId=="number"?i.creativeId=t.creativeId:typeof t.creativeId=="object"&&(i.creativeId=new r.LongBits(t.creativeId.low>>>0,t.creativeId.high>>>0).toNumber())),t.clientIp!=null&&(i.clientIp=String(t.clientIp)),t.isAd!=null&&(i.isAd=!!t.isAd),t.requestId!=null&&(i.requestId=String(t.requestId)),t.resourceId!=null&&(r.Long?(i.resourceId=r.Long.fromValue(t.resourceId)).unsigned=!1:typeof t.resourceId=="string"?i.resourceId=parseInt(t.resourceId,10):typeof t.resourceId=="number"?i.resourceId=t.resourceId:typeof t.resourceId=="object"&&(i.resourceId=new r.LongBits(t.resourceId.low>>>0,t.resourceId.high>>>0).toNumber())),t.sourceId!=null&&(r.Long?(i.sourceId=r.Long.fromValue(t.sourceId)).unsigned=!1:typeof t.sourceId=="string"?i.sourceId=parseInt(t.sourceId,10):typeof t.sourceId=="number"?i.sourceId=t.sourceId:typeof t.sourceId=="object"&&(i.sourceId=new r.LongBits(t.sourceId.low>>>0,t.sourceId.high>>>0).toNumber())),t.cardIndex!=null&&(r.Long?(i.cardIndex=r.Long.fromValue(t.cardIndex)).unsigned=!1:typeof t.cardIndex=="string"?i.cardIndex=parseInt(t.cardIndex,10):typeof t.cardIndex=="number"?i.cardIndex=t.cardIndex:typeof t.cardIndex=="object"&&(i.cardIndex=new r.LongBits(t.cardIndex.low>>>0,t.cardIndex.high>>>0).toNumber())),t.isAdLoc!=null&&(i.isAdLoc=!!t.isAdLoc),t.adTagStyle!=null){if(typeof t.adTagStyle!="object")throw TypeError(".bilibili.tv.interface_.v1.AdExtra.adTagStyle: object expected");i.adTagStyle=u.bilibili.tv.interface_.v1.FeedAdExtraAdTagStyle.fromObject(t.adTagStyle)}if(t.jumpUrl!=null&&(i.jumpUrl=String(t.jumpUrl)),t.referralPopActiveTime!=null&&(r.Long?(i.referralPopActiveTime=r.Long.fromValue(t.referralPopActiveTime)).unsigned=!1:typeof t.referralPopActiveTime=="string"?i.referralPopActiveTime=parseInt(t.referralPopActiveTime,10):typeof t.referralPopActiveTime=="number"?i.referralPopActiveTime=t.referralPopActiveTime:typeof t.referralPopActiveTime=="object"&&(i.referralPopActiveTime=new r.LongBits(t.referralPopActiveTime.low>>>0,t.referralPopActiveTime.high>>>0).toNumber())),t.referralPopTime!=null&&(r.Long?(i.referralPopTime=r.Long.fromValue(t.referralPopTime)).unsigned=!1:typeof t.referralPopTime=="string"?i.referralPopTime=parseInt(t.referralPopTime,10):typeof t.referralPopTime=="number"?i.referralPopTime=t.referralPopTime:typeof t.referralPopTime=="object"&&(i.referralPopTime=new r.LongBits(t.referralPopTime.low>>>0,t.referralPopTime.high>>>0).toNumber())),t.video!=null){if(typeof t.video!="object")throw TypeError(".bilibili.tv.interface_.v1.AdExtra.video: object expected");i.video=u.bilibili.tv.interface_.v1.FeedAdExtraVideo.fromObject(t.video)}if(t.showUrls){if(!Array.isArray(t.showUrls))throw TypeError(".bilibili.tv.interface_.v1.AdExtra.showUrls: array expected");i.showUrls=[];for(let n=0;n>>0,t.shopFrom.high>>>0).toNumber())),t.adFrom!=null&&(i.adFrom=String(t.adFrom)),t.adId!=null&&(r.Long?(i.adId=r.Long.fromValue(t.adId)).unsigned=!1:typeof t.adId=="string"?i.adId=parseInt(t.adId,10):typeof t.adId=="number"?i.adId=t.adId:typeof t.adId=="object"&&(i.adId=new r.LongBits(t.adId.low>>>0,t.adId.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if((i.arrays||i.defaults)&&(n.showUrls=[],n.clickUrls=[]),i.defaults){if(n.adCb="",r.Long){let o=new r.Long(0,0,!1);n.creativeId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.creativeId=i.longs===String?"0":0;if(n.clientIp="",n.isAd=!1,n.requestId="",r.Long){let o=new r.Long(0,0,!1);n.resourceId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.resourceId=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.sourceId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.sourceId=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.cardIndex=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.cardIndex=i.longs===String?"0":0;if(n.isAdLoc=!1,n.adTagStyle=null,n.jumpUrl="",r.Long){let o=new r.Long(0,0,!1);n.referralPopActiveTime=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.referralPopActiveTime=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.referralPopTime=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.referralPopTime=i.longs===String?"0":0;if(n.video=null,n.ottJumpUrl="",n.referralBgImg="",n.referralActImg="",n.isShop=!1,n.fromTrackId="",n.cmFromTrackId="",r.Long){let o=new r.Long(0,0,!1);n.shopFrom=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.shopFrom=i.longs===String?"0":0;if(n.adFrom="",r.Long){let o=new r.Long(0,0,!1);n.adId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.adId=i.longs===String?"0":0}if(t.adCb!=null&&t.hasOwnProperty("adCb")&&(n.adCb=t.adCb),t.creativeId!=null&&t.hasOwnProperty("creativeId")&&(typeof t.creativeId=="number"?n.creativeId=i.longs===String?String(t.creativeId):t.creativeId:n.creativeId=i.longs===String?r.Long.prototype.toString.call(t.creativeId):i.longs===Number?new r.LongBits(t.creativeId.low>>>0,t.creativeId.high>>>0).toNumber():t.creativeId),t.clientIp!=null&&t.hasOwnProperty("clientIp")&&(n.clientIp=t.clientIp),t.isAd!=null&&t.hasOwnProperty("isAd")&&(n.isAd=t.isAd),t.requestId!=null&&t.hasOwnProperty("requestId")&&(n.requestId=t.requestId),t.resourceId!=null&&t.hasOwnProperty("resourceId")&&(typeof t.resourceId=="number"?n.resourceId=i.longs===String?String(t.resourceId):t.resourceId:n.resourceId=i.longs===String?r.Long.prototype.toString.call(t.resourceId):i.longs===Number?new r.LongBits(t.resourceId.low>>>0,t.resourceId.high>>>0).toNumber():t.resourceId),t.sourceId!=null&&t.hasOwnProperty("sourceId")&&(typeof t.sourceId=="number"?n.sourceId=i.longs===String?String(t.sourceId):t.sourceId:n.sourceId=i.longs===String?r.Long.prototype.toString.call(t.sourceId):i.longs===Number?new r.LongBits(t.sourceId.low>>>0,t.sourceId.high>>>0).toNumber():t.sourceId),t.cardIndex!=null&&t.hasOwnProperty("cardIndex")&&(typeof t.cardIndex=="number"?n.cardIndex=i.longs===String?String(t.cardIndex):t.cardIndex:n.cardIndex=i.longs===String?r.Long.prototype.toString.call(t.cardIndex):i.longs===Number?new r.LongBits(t.cardIndex.low>>>0,t.cardIndex.high>>>0).toNumber():t.cardIndex),t.isAdLoc!=null&&t.hasOwnProperty("isAdLoc")&&(n.isAdLoc=t.isAdLoc),t.adTagStyle!=null&&t.hasOwnProperty("adTagStyle")&&(n.adTagStyle=u.bilibili.tv.interface_.v1.FeedAdExtraAdTagStyle.toObject(t.adTagStyle,i)),t.jumpUrl!=null&&t.hasOwnProperty("jumpUrl")&&(n.jumpUrl=t.jumpUrl),t.referralPopActiveTime!=null&&t.hasOwnProperty("referralPopActiveTime")&&(typeof t.referralPopActiveTime=="number"?n.referralPopActiveTime=i.longs===String?String(t.referralPopActiveTime):t.referralPopActiveTime:n.referralPopActiveTime=i.longs===String?r.Long.prototype.toString.call(t.referralPopActiveTime):i.longs===Number?new r.LongBits(t.referralPopActiveTime.low>>>0,t.referralPopActiveTime.high>>>0).toNumber():t.referralPopActiveTime),t.referralPopTime!=null&&t.hasOwnProperty("referralPopTime")&&(typeof t.referralPopTime=="number"?n.referralPopTime=i.longs===String?String(t.referralPopTime):t.referralPopTime:n.referralPopTime=i.longs===String?r.Long.prototype.toString.call(t.referralPopTime):i.longs===Number?new r.LongBits(t.referralPopTime.low>>>0,t.referralPopTime.high>>>0).toNumber():t.referralPopTime),t.video!=null&&t.hasOwnProperty("video")&&(n.video=u.bilibili.tv.interface_.v1.FeedAdExtraVideo.toObject(t.video,i)),t.showUrls&&t.showUrls.length){n.showUrls=[];for(let o=0;o>>0,t.shopFrom.high>>>0).toNumber():t.shopFrom),t.adFrom!=null&&t.hasOwnProperty("adFrom")&&(n.adFrom=t.adFrom),t.adId!=null&&t.hasOwnProperty("adId")&&(typeof t.adId=="number"?n.adId=i.longs===String?String(t.adId):t.adId:n.adId=i.longs===String?r.Long.prototype.toString.call(t.adId):i.longs===Number?new r.LongBits(t.adId.low>>>0,t.adId.high>>>0).toNumber():t.adId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.tv.interface_.v1.AdExtra"},e}(),c.FeedAdExtraAdTagStyle=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.type=t.int64();break}case 2:{o.text=t.string();break}case 3:{o.text_4DetailPage=t.string();break}case 4:{o.textColor=t.string();break}case 5:{o.bgBorderColor=t.string();break}case 6:{o.bgColor=t.string();break}case 7:{o.borderColor=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.tv.interface_.v1.FeedAdExtraAdTagStyle)return t;let i=new u.bilibili.tv.interface_.v1.FeedAdExtraAdTagStyle;return t.type!=null&&(r.Long?(i.type=r.Long.fromValue(t.type)).unsigned=!1:typeof t.type=="string"?i.type=parseInt(t.type,10):typeof t.type=="number"?i.type=t.type:typeof t.type=="object"&&(i.type=new r.LongBits(t.type.low>>>0,t.type.high>>>0).toNumber())),t.text!=null&&(i.text=String(t.text)),t.text_4DetailPage!=null&&(i.text_4DetailPage=String(t.text_4DetailPage)),t.textColor!=null&&(i.textColor=String(t.textColor)),t.bgBorderColor!=null&&(i.bgBorderColor=String(t.bgBorderColor)),t.bgColor!=null&&(i.bgColor=String(t.bgColor)),t.borderColor!=null&&(i.borderColor=String(t.borderColor)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.type=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.type=i.longs===String?"0":0;n.text="",n.text_4DetailPage="",n.textColor="",n.bgBorderColor="",n.bgColor="",n.borderColor=""}return t.type!=null&&t.hasOwnProperty("type")&&(typeof t.type=="number"?n.type=i.longs===String?String(t.type):t.type:n.type=i.longs===String?r.Long.prototype.toString.call(t.type):i.longs===Number?new r.LongBits(t.type.low>>>0,t.type.high>>>0).toNumber():t.type),t.text!=null&&t.hasOwnProperty("text")&&(n.text=t.text),t.text_4DetailPage!=null&&t.hasOwnProperty("text_4DetailPage")&&(n.text_4DetailPage=t.text_4DetailPage),t.textColor!=null&&t.hasOwnProperty("textColor")&&(n.textColor=t.textColor),t.bgBorderColor!=null&&t.hasOwnProperty("bgBorderColor")&&(n.bgBorderColor=t.bgBorderColor),t.bgColor!=null&&t.hasOwnProperty("bgColor")&&(n.bgColor=t.bgColor),t.borderColor!=null&&t.hasOwnProperty("borderColor")&&(n.borderColor=t.borderColor),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.tv.interface_.v1.FeedAdExtraAdTagStyle"},e}(),c.FeedAdExtraVideo=function(){function e(l){if(this.process0Urls=[],this.play_3sUrls=[],this.play_5sUrls=[],this.process4Urls=[],this.play_7sUrls=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.avid=t.int64();break}case 2:{o.cid=t.int64();break}case 3:{o.page=t.int64();break}case 4:{o.from=t.string();break}case 5:{o.orientation=t.int64();break}case 6:{o.url=t.string();break}case 7:{o.cover=t.string();break}case 8:{o.btnDycTime=t.int64();break}case 9:{o.autoPlay=t.bool();break}case 10:{o.btnDycColor=t.bool();break}case 11:{o.bizId=t.int64();break}case 12:{o.process0Urls&&o.process0Urls.length||(o.process0Urls=[]),o.process0Urls.push(t.string());break}case 13:{o.play_3sUrls&&o.play_3sUrls.length||(o.play_3sUrls=[]),o.play_3sUrls.push(t.string());break}case 14:{o.play_5sUrls&&o.play_5sUrls.length||(o.play_5sUrls=[]),o.play_5sUrls.push(t.string());break}case 15:{o.autoPlayValue=t.int64();break}case 16:{o.seasonId=t.int64();break}case 17:{o.epId=t.int64();break}case 18:{o.contentType=t.int32();break}case 19:{o.roomId=t.int64();break}case 20:{o.process4Urls&&o.process4Urls.length||(o.process4Urls=[]),o.process4Urls.push(t.string());break}case 21:{o.play_7sUrls&&o.play_7sUrls.length||(o.play_7sUrls=[]),o.play_7sUrls.push(t.string());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.tv.interface_.v1.FeedAdExtraVideo)return t;let i=new u.bilibili.tv.interface_.v1.FeedAdExtraVideo;if(t.avid!=null&&(r.Long?(i.avid=r.Long.fromValue(t.avid)).unsigned=!1:typeof t.avid=="string"?i.avid=parseInt(t.avid,10):typeof t.avid=="number"?i.avid=t.avid:typeof t.avid=="object"&&(i.avid=new r.LongBits(t.avid.low>>>0,t.avid.high>>>0).toNumber())),t.cid!=null&&(r.Long?(i.cid=r.Long.fromValue(t.cid)).unsigned=!1:typeof t.cid=="string"?i.cid=parseInt(t.cid,10):typeof t.cid=="number"?i.cid=t.cid:typeof t.cid=="object"&&(i.cid=new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber())),t.page!=null&&(r.Long?(i.page=r.Long.fromValue(t.page)).unsigned=!1:typeof t.page=="string"?i.page=parseInt(t.page,10):typeof t.page=="number"?i.page=t.page:typeof t.page=="object"&&(i.page=new r.LongBits(t.page.low>>>0,t.page.high>>>0).toNumber())),t.from!=null&&(i.from=String(t.from)),t.orientation!=null&&(r.Long?(i.orientation=r.Long.fromValue(t.orientation)).unsigned=!1:typeof t.orientation=="string"?i.orientation=parseInt(t.orientation,10):typeof t.orientation=="number"?i.orientation=t.orientation:typeof t.orientation=="object"&&(i.orientation=new r.LongBits(t.orientation.low>>>0,t.orientation.high>>>0).toNumber())),t.url!=null&&(i.url=String(t.url)),t.cover!=null&&(i.cover=String(t.cover)),t.btnDycTime!=null&&(r.Long?(i.btnDycTime=r.Long.fromValue(t.btnDycTime)).unsigned=!1:typeof t.btnDycTime=="string"?i.btnDycTime=parseInt(t.btnDycTime,10):typeof t.btnDycTime=="number"?i.btnDycTime=t.btnDycTime:typeof t.btnDycTime=="object"&&(i.btnDycTime=new r.LongBits(t.btnDycTime.low>>>0,t.btnDycTime.high>>>0).toNumber())),t.autoPlay!=null&&(i.autoPlay=!!t.autoPlay),t.btnDycColor!=null&&(i.btnDycColor=!!t.btnDycColor),t.bizId!=null&&(r.Long?(i.bizId=r.Long.fromValue(t.bizId)).unsigned=!1:typeof t.bizId=="string"?i.bizId=parseInt(t.bizId,10):typeof t.bizId=="number"?i.bizId=t.bizId:typeof t.bizId=="object"&&(i.bizId=new r.LongBits(t.bizId.low>>>0,t.bizId.high>>>0).toNumber())),t.process0Urls){if(!Array.isArray(t.process0Urls))throw TypeError(".bilibili.tv.interface_.v1.FeedAdExtraVideo.process0Urls: array expected");i.process0Urls=[];for(let n=0;n>>0,t.autoPlayValue.high>>>0).toNumber())),t.seasonId!=null&&(r.Long?(i.seasonId=r.Long.fromValue(t.seasonId)).unsigned=!1:typeof t.seasonId=="string"?i.seasonId=parseInt(t.seasonId,10):typeof t.seasonId=="number"?i.seasonId=t.seasonId:typeof t.seasonId=="object"&&(i.seasonId=new r.LongBits(t.seasonId.low>>>0,t.seasonId.high>>>0).toNumber())),t.epId!=null&&(r.Long?(i.epId=r.Long.fromValue(t.epId)).unsigned=!1:typeof t.epId=="string"?i.epId=parseInt(t.epId,10):typeof t.epId=="number"?i.epId=t.epId:typeof t.epId=="object"&&(i.epId=new r.LongBits(t.epId.low>>>0,t.epId.high>>>0).toNumber())),t.contentType!=null&&(i.contentType=t.contentType|0),t.roomId!=null&&(r.Long?(i.roomId=r.Long.fromValue(t.roomId)).unsigned=!1:typeof t.roomId=="string"?i.roomId=parseInt(t.roomId,10):typeof t.roomId=="number"?i.roomId=t.roomId:typeof t.roomId=="object"&&(i.roomId=new r.LongBits(t.roomId.low>>>0,t.roomId.high>>>0).toNumber())),t.process4Urls){if(!Array.isArray(t.process4Urls))throw TypeError(".bilibili.tv.interface_.v1.FeedAdExtraVideo.process4Urls: array expected");i.process4Urls=[];for(let n=0;n>>0,t.avid.high>>>0).toNumber():t.avid),t.cid!=null&&t.hasOwnProperty("cid")&&(typeof t.cid=="number"?n.cid=i.longs===String?String(t.cid):t.cid:n.cid=i.longs===String?r.Long.prototype.toString.call(t.cid):i.longs===Number?new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber():t.cid),t.page!=null&&t.hasOwnProperty("page")&&(typeof t.page=="number"?n.page=i.longs===String?String(t.page):t.page:n.page=i.longs===String?r.Long.prototype.toString.call(t.page):i.longs===Number?new r.LongBits(t.page.low>>>0,t.page.high>>>0).toNumber():t.page),t.from!=null&&t.hasOwnProperty("from")&&(n.from=t.from),t.orientation!=null&&t.hasOwnProperty("orientation")&&(typeof t.orientation=="number"?n.orientation=i.longs===String?String(t.orientation):t.orientation:n.orientation=i.longs===String?r.Long.prototype.toString.call(t.orientation):i.longs===Number?new r.LongBits(t.orientation.low>>>0,t.orientation.high>>>0).toNumber():t.orientation),t.url!=null&&t.hasOwnProperty("url")&&(n.url=t.url),t.cover!=null&&t.hasOwnProperty("cover")&&(n.cover=t.cover),t.btnDycTime!=null&&t.hasOwnProperty("btnDycTime")&&(typeof t.btnDycTime=="number"?n.btnDycTime=i.longs===String?String(t.btnDycTime):t.btnDycTime:n.btnDycTime=i.longs===String?r.Long.prototype.toString.call(t.btnDycTime):i.longs===Number?new r.LongBits(t.btnDycTime.low>>>0,t.btnDycTime.high>>>0).toNumber():t.btnDycTime),t.autoPlay!=null&&t.hasOwnProperty("autoPlay")&&(n.autoPlay=t.autoPlay),t.btnDycColor!=null&&t.hasOwnProperty("btnDycColor")&&(n.btnDycColor=t.btnDycColor),t.bizId!=null&&t.hasOwnProperty("bizId")&&(typeof t.bizId=="number"?n.bizId=i.longs===String?String(t.bizId):t.bizId:n.bizId=i.longs===String?r.Long.prototype.toString.call(t.bizId):i.longs===Number?new r.LongBits(t.bizId.low>>>0,t.bizId.high>>>0).toNumber():t.bizId),t.process0Urls&&t.process0Urls.length){n.process0Urls=[];for(let o=0;o>>0,t.autoPlayValue.high>>>0).toNumber():t.autoPlayValue),t.seasonId!=null&&t.hasOwnProperty("seasonId")&&(typeof t.seasonId=="number"?n.seasonId=i.longs===String?String(t.seasonId):t.seasonId:n.seasonId=i.longs===String?r.Long.prototype.toString.call(t.seasonId):i.longs===Number?new r.LongBits(t.seasonId.low>>>0,t.seasonId.high>>>0).toNumber():t.seasonId),t.epId!=null&&t.hasOwnProperty("epId")&&(typeof t.epId=="number"?n.epId=i.longs===String?String(t.epId):t.epId:n.epId=i.longs===String?r.Long.prototype.toString.call(t.epId):i.longs===Number?new r.LongBits(t.epId.low>>>0,t.epId.high>>>0).toNumber():t.epId),t.contentType!=null&&t.hasOwnProperty("contentType")&&(n.contentType=t.contentType),t.roomId!=null&&t.hasOwnProperty("roomId")&&(typeof t.roomId=="number"?n.roomId=i.longs===String?String(t.roomId):t.roomId:n.roomId=i.longs===String?r.Long.prototype.toString.call(t.roomId):i.longs===Number?new r.LongBits(t.roomId.low>>>0,t.roomId.high>>>0).toNumber():t.roomId),t.process4Urls&&t.process4Urls.length){n.process4Urls=[];for(let o=0;o>>3){case 1:{o.tid=t.int64();break}case 2:{o.title=t.string();break}case 3:{o.logo=t.string();break}case 4:{o.score=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.tv.interface_.v1.Team)return t;let i=new u.bilibili.tv.interface_.v1.Team;return t.tid!=null&&(r.Long?(i.tid=r.Long.fromValue(t.tid)).unsigned=!1:typeof t.tid=="string"?i.tid=parseInt(t.tid,10):typeof t.tid=="number"?i.tid=t.tid:typeof t.tid=="object"&&(i.tid=new r.LongBits(t.tid.low>>>0,t.tid.high>>>0).toNumber())),t.title!=null&&(i.title=String(t.title)),t.logo!=null&&(i.logo=String(t.logo)),t.score!=null&&(r.Long?(i.score=r.Long.fromValue(t.score)).unsigned=!1:typeof t.score=="string"?i.score=parseInt(t.score,10):typeof t.score=="number"?i.score=t.score:typeof t.score=="object"&&(i.score=new r.LongBits(t.score.low>>>0,t.score.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.tid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.tid=i.longs===String?"0":0;if(n.title="",n.logo="",r.Long){let o=new r.Long(0,0,!1);n.score=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.score=i.longs===String?"0":0}return t.tid!=null&&t.hasOwnProperty("tid")&&(typeof t.tid=="number"?n.tid=i.longs===String?String(t.tid):t.tid:n.tid=i.longs===String?r.Long.prototype.toString.call(t.tid):i.longs===Number?new r.LongBits(t.tid.low>>>0,t.tid.high>>>0).toNumber():t.tid),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.logo!=null&&t.hasOwnProperty("logo")&&(n.logo=t.logo),t.score!=null&&t.hasOwnProperty("score")&&(typeof t.score=="number"?n.score=i.longs===String?String(t.score):t.score:n.score=i.longs===String?r.Long.prototype.toString.call(t.score):i.longs===Number?new r.LongBits(t.score.low>>>0,t.score.high>>>0).toNumber():t.score),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.tv.interface_.v1.Team"},e}(),c.EsportExt=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.homeTeam=u.bilibili.tv.interface_.v1.Team.decode(t,t.uint32());break}case 2:{o.awayTeam=u.bilibili.tv.interface_.v1.Team.decode(t,t.uint32());break}case 3:{o.esportId=t.int64();break}case 4:{o.roomId=t.int64();break}case 5:{o.gameStage=t.string();break}case 6:{o.gameType=t.int64();break}case 7:{o.message=t.string();break}case 8:{o.status=t.int32();break}case 9:{o.liveKey=t.string();break}case 10:{o.subSessionKey=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.tv.interface_.v1.EsportExt)return t;let i=new u.bilibili.tv.interface_.v1.EsportExt;if(t.homeTeam!=null){if(typeof t.homeTeam!="object")throw TypeError(".bilibili.tv.interface_.v1.EsportExt.homeTeam: object expected");i.homeTeam=u.bilibili.tv.interface_.v1.Team.fromObject(t.homeTeam)}if(t.awayTeam!=null){if(typeof t.awayTeam!="object")throw TypeError(".bilibili.tv.interface_.v1.EsportExt.awayTeam: object expected");i.awayTeam=u.bilibili.tv.interface_.v1.Team.fromObject(t.awayTeam)}return t.esportId!=null&&(r.Long?(i.esportId=r.Long.fromValue(t.esportId)).unsigned=!1:typeof t.esportId=="string"?i.esportId=parseInt(t.esportId,10):typeof t.esportId=="number"?i.esportId=t.esportId:typeof t.esportId=="object"&&(i.esportId=new r.LongBits(t.esportId.low>>>0,t.esportId.high>>>0).toNumber())),t.roomId!=null&&(r.Long?(i.roomId=r.Long.fromValue(t.roomId)).unsigned=!1:typeof t.roomId=="string"?i.roomId=parseInt(t.roomId,10):typeof t.roomId=="number"?i.roomId=t.roomId:typeof t.roomId=="object"&&(i.roomId=new r.LongBits(t.roomId.low>>>0,t.roomId.high>>>0).toNumber())),t.gameStage!=null&&(i.gameStage=String(t.gameStage)),t.gameType!=null&&(r.Long?(i.gameType=r.Long.fromValue(t.gameType)).unsigned=!1:typeof t.gameType=="string"?i.gameType=parseInt(t.gameType,10):typeof t.gameType=="number"?i.gameType=t.gameType:typeof t.gameType=="object"&&(i.gameType=new r.LongBits(t.gameType.low>>>0,t.gameType.high>>>0).toNumber())),t.message!=null&&(i.message=String(t.message)),t.status!=null&&(i.status=t.status|0),t.liveKey!=null&&(i.liveKey=String(t.liveKey)),t.subSessionKey!=null&&(i.subSessionKey=String(t.subSessionKey)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.homeTeam=null,n.awayTeam=null,r.Long){let o=new r.Long(0,0,!1);n.esportId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.esportId=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.roomId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.roomId=i.longs===String?"0":0;if(n.gameStage="",r.Long){let o=new r.Long(0,0,!1);n.gameType=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.gameType=i.longs===String?"0":0;n.message="",n.status=0,n.liveKey="",n.subSessionKey=""}return t.homeTeam!=null&&t.hasOwnProperty("homeTeam")&&(n.homeTeam=u.bilibili.tv.interface_.v1.Team.toObject(t.homeTeam,i)),t.awayTeam!=null&&t.hasOwnProperty("awayTeam")&&(n.awayTeam=u.bilibili.tv.interface_.v1.Team.toObject(t.awayTeam,i)),t.esportId!=null&&t.hasOwnProperty("esportId")&&(typeof t.esportId=="number"?n.esportId=i.longs===String?String(t.esportId):t.esportId:n.esportId=i.longs===String?r.Long.prototype.toString.call(t.esportId):i.longs===Number?new r.LongBits(t.esportId.low>>>0,t.esportId.high>>>0).toNumber():t.esportId),t.roomId!=null&&t.hasOwnProperty("roomId")&&(typeof t.roomId=="number"?n.roomId=i.longs===String?String(t.roomId):t.roomId:n.roomId=i.longs===String?r.Long.prototype.toString.call(t.roomId):i.longs===Number?new r.LongBits(t.roomId.low>>>0,t.roomId.high>>>0).toNumber():t.roomId),t.gameStage!=null&&t.hasOwnProperty("gameStage")&&(n.gameStage=t.gameStage),t.gameType!=null&&t.hasOwnProperty("gameType")&&(typeof t.gameType=="number"?n.gameType=i.longs===String?String(t.gameType):t.gameType:n.gameType=i.longs===String?r.Long.prototype.toString.call(t.gameType):i.longs===Number?new r.LongBits(t.gameType.low>>>0,t.gameType.high>>>0).toNumber():t.gameType),t.message!=null&&t.hasOwnProperty("message")&&(n.message=t.message),t.status!=null&&t.hasOwnProperty("status")&&(n.status=t.status),t.liveKey!=null&&t.hasOwnProperty("liveKey")&&(n.liveKey=t.liveKey),t.subSessionKey!=null&&t.hasOwnProperty("subSessionKey")&&(n.subSessionKey=t.subSessionKey),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.tv.interface_.v1.EsportExt"},e}(),c.SerialExt=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.showEpTitle=t.bool();break}case 2:{o.showEpIndex=t.bool();break}case 3:{o.listSubtitle=u.bilibili.tv.interface_.v1.SerialListSubtitle.decode(t,t.uint32());break}case 4:{o.rights=u.bilibili.tv.interface_.v1.SerialRights.decode(t,t.uint32());break}case 5:{o.playingUgc=u.bilibili.tv.interface_.v1.SerialPlayingUgc.decode(t,t.uint32());break}case 6:{o.upExt=u.bilibili.tv.interface_.v1.UpExtInfo.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.tv.interface_.v1.SerialExt)return t;let i=new u.bilibili.tv.interface_.v1.SerialExt;if(t.showEpTitle!=null&&(i.showEpTitle=!!t.showEpTitle),t.showEpIndex!=null&&(i.showEpIndex=!!t.showEpIndex),t.listSubtitle!=null){if(typeof t.listSubtitle!="object")throw TypeError(".bilibili.tv.interface_.v1.SerialExt.listSubtitle: object expected");i.listSubtitle=u.bilibili.tv.interface_.v1.SerialListSubtitle.fromObject(t.listSubtitle)}if(t.rights!=null){if(typeof t.rights!="object")throw TypeError(".bilibili.tv.interface_.v1.SerialExt.rights: object expected");i.rights=u.bilibili.tv.interface_.v1.SerialRights.fromObject(t.rights)}if(t.playingUgc!=null){if(typeof t.playingUgc!="object")throw TypeError(".bilibili.tv.interface_.v1.SerialExt.playingUgc: object expected");i.playingUgc=u.bilibili.tv.interface_.v1.SerialPlayingUgc.fromObject(t.playingUgc)}if(t.upExt!=null){if(typeof t.upExt!="object")throw TypeError(".bilibili.tv.interface_.v1.SerialExt.upExt: object expected");i.upExt=u.bilibili.tv.interface_.v1.UpExtInfo.fromObject(t.upExt)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.showEpTitle=!1,n.showEpIndex=!1,n.listSubtitle=null,n.rights=null,n.playingUgc=null,n.upExt=null),t.showEpTitle!=null&&t.hasOwnProperty("showEpTitle")&&(n.showEpTitle=t.showEpTitle),t.showEpIndex!=null&&t.hasOwnProperty("showEpIndex")&&(n.showEpIndex=t.showEpIndex),t.listSubtitle!=null&&t.hasOwnProperty("listSubtitle")&&(n.listSubtitle=u.bilibili.tv.interface_.v1.SerialListSubtitle.toObject(t.listSubtitle,i)),t.rights!=null&&t.hasOwnProperty("rights")&&(n.rights=u.bilibili.tv.interface_.v1.SerialRights.toObject(t.rights,i)),t.playingUgc!=null&&t.hasOwnProperty("playingUgc")&&(n.playingUgc=u.bilibili.tv.interface_.v1.SerialPlayingUgc.toObject(t.playingUgc,i)),t.upExt!=null&&t.hasOwnProperty("upExt")&&(n.upExt=u.bilibili.tv.interface_.v1.UpExtInfo.toObject(t.upExt,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.tv.interface_.v1.SerialExt"},e}(),c.SerialListSubtitle=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.icon=t.string();break}case 2:{o.text=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.tv.interface_.v1.SerialListSubtitle)return t;let i=new u.bilibili.tv.interface_.v1.SerialListSubtitle;return t.icon!=null&&(i.icon=String(t.icon)),t.text!=null&&(i.text=String(t.text)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.icon="",n.text=""),t.icon!=null&&t.hasOwnProperty("icon")&&(n.icon=t.icon),t.text!=null&&t.hasOwnProperty("text")&&(n.text=t.text),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.tv.interface_.v1.SerialListSubtitle"},e}(),c.SerialRights=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.allowLike=t.int32();break}case 2:{o.allowFollow=t.int32();break}case 3:{o.allowBuy=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.tv.interface_.v1.SerialRights)return t;let i=new u.bilibili.tv.interface_.v1.SerialRights;return t.allowLike!=null&&(i.allowLike=t.allowLike|0),t.allowFollow!=null&&(i.allowFollow=t.allowFollow|0),t.allowBuy!=null&&(i.allowBuy=t.allowBuy|0),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.allowLike=0,n.allowFollow=0,n.allowBuy=0),t.allowLike!=null&&t.hasOwnProperty("allowLike")&&(n.allowLike=t.allowLike),t.allowFollow!=null&&t.hasOwnProperty("allowFollow")&&(n.allowFollow=t.allowFollow),t.allowBuy!=null&&t.hasOwnProperty("allowBuy")&&(n.allowBuy=t.allowBuy),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.tv.interface_.v1.SerialRights"},e}(),c.SerialPlayingUgc=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.avid=t.int32();break}case 2:{o.likes=t.string();break}case 3:{o.favorites=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.tv.interface_.v1.SerialPlayingUgc)return t;let i=new u.bilibili.tv.interface_.v1.SerialPlayingUgc;return t.avid!=null&&(i.avid=t.avid|0),t.likes!=null&&(i.likes=String(t.likes)),t.favorites!=null&&(i.favorites=String(t.favorites)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.avid=0,n.likes="",n.favorites=""),t.avid!=null&&t.hasOwnProperty("avid")&&(n.avid=t.avid),t.likes!=null&&t.hasOwnProperty("likes")&&(n.likes=t.likes),t.favorites!=null&&t.hasOwnProperty("favorites")&&(n.favorites=t.favorites),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.tv.interface_.v1.SerialPlayingUgc"},e}(),c.SceneCard=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.cardType=t.int32();break}case 2:{o.cardEntity=t.string();break}case 3:{o.cardEntityId=t.int64();break}case 4:{o.cardEntityName=t.string();break}case 5:{o.cardEntityParams=t.string();break}case 6:{o.pos=t.int64();break}case 7:{o.operaterType=t.int64();break}case 8:{o.operater=t.string();break}case 9:{o.internalTrackId=t.string();break}case 10:{o.cardButtonType=t.int32();break}case 11:{o.cardButtonTypeName=t.string();break}case 12:{o.modularId=t.int64();break}case 13:{o.modularName=t.string();break}case 14:{o.roomId=t.int64();break}case 15:{o.title=t.string();break}case 16:{o.cardFrom=t.int64();break}case 17:{o.avid=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.tv.interface_.v1.SceneCard)return t;let i=new u.bilibili.tv.interface_.v1.SceneCard;return t.cardType!=null&&(i.cardType=t.cardType|0),t.cardEntity!=null&&(i.cardEntity=String(t.cardEntity)),t.cardEntityId!=null&&(r.Long?(i.cardEntityId=r.Long.fromValue(t.cardEntityId)).unsigned=!1:typeof t.cardEntityId=="string"?i.cardEntityId=parseInt(t.cardEntityId,10):typeof t.cardEntityId=="number"?i.cardEntityId=t.cardEntityId:typeof t.cardEntityId=="object"&&(i.cardEntityId=new r.LongBits(t.cardEntityId.low>>>0,t.cardEntityId.high>>>0).toNumber())),t.cardEntityName!=null&&(i.cardEntityName=String(t.cardEntityName)),t.cardEntityParams!=null&&(i.cardEntityParams=String(t.cardEntityParams)),t.pos!=null&&(r.Long?(i.pos=r.Long.fromValue(t.pos)).unsigned=!1:typeof t.pos=="string"?i.pos=parseInt(t.pos,10):typeof t.pos=="number"?i.pos=t.pos:typeof t.pos=="object"&&(i.pos=new r.LongBits(t.pos.low>>>0,t.pos.high>>>0).toNumber())),t.operaterType!=null&&(r.Long?(i.operaterType=r.Long.fromValue(t.operaterType)).unsigned=!1:typeof t.operaterType=="string"?i.operaterType=parseInt(t.operaterType,10):typeof t.operaterType=="number"?i.operaterType=t.operaterType:typeof t.operaterType=="object"&&(i.operaterType=new r.LongBits(t.operaterType.low>>>0,t.operaterType.high>>>0).toNumber())),t.operater!=null&&(i.operater=String(t.operater)),t.internalTrackId!=null&&(i.internalTrackId=String(t.internalTrackId)),t.cardButtonType!=null&&(i.cardButtonType=t.cardButtonType|0),t.cardButtonTypeName!=null&&(i.cardButtonTypeName=String(t.cardButtonTypeName)),t.modularId!=null&&(r.Long?(i.modularId=r.Long.fromValue(t.modularId)).unsigned=!1:typeof t.modularId=="string"?i.modularId=parseInt(t.modularId,10):typeof t.modularId=="number"?i.modularId=t.modularId:typeof t.modularId=="object"&&(i.modularId=new r.LongBits(t.modularId.low>>>0,t.modularId.high>>>0).toNumber())),t.modularName!=null&&(i.modularName=String(t.modularName)),t.roomId!=null&&(r.Long?(i.roomId=r.Long.fromValue(t.roomId)).unsigned=!1:typeof t.roomId=="string"?i.roomId=parseInt(t.roomId,10):typeof t.roomId=="number"?i.roomId=t.roomId:typeof t.roomId=="object"&&(i.roomId=new r.LongBits(t.roomId.low>>>0,t.roomId.high>>>0).toNumber())),t.title!=null&&(i.title=String(t.title)),t.cardFrom!=null&&(r.Long?(i.cardFrom=r.Long.fromValue(t.cardFrom)).unsigned=!1:typeof t.cardFrom=="string"?i.cardFrom=parseInt(t.cardFrom,10):typeof t.cardFrom=="number"?i.cardFrom=t.cardFrom:typeof t.cardFrom=="object"&&(i.cardFrom=new r.LongBits(t.cardFrom.low>>>0,t.cardFrom.high>>>0).toNumber())),t.avid!=null&&(r.Long?(i.avid=r.Long.fromValue(t.avid)).unsigned=!1:typeof t.avid=="string"?i.avid=parseInt(t.avid,10):typeof t.avid=="number"?i.avid=t.avid:typeof t.avid=="object"&&(i.avid=new r.LongBits(t.avid.low>>>0,t.avid.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.cardType=0,n.cardEntity="",r.Long){let o=new r.Long(0,0,!1);n.cardEntityId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.cardEntityId=i.longs===String?"0":0;if(n.cardEntityName="",n.cardEntityParams="",r.Long){let o=new r.Long(0,0,!1);n.pos=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.pos=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.operaterType=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.operaterType=i.longs===String?"0":0;if(n.operater="",n.internalTrackId="",n.cardButtonType=0,n.cardButtonTypeName="",r.Long){let o=new r.Long(0,0,!1);n.modularId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.modularId=i.longs===String?"0":0;if(n.modularName="",r.Long){let o=new r.Long(0,0,!1);n.roomId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.roomId=i.longs===String?"0":0;if(n.title="",r.Long){let o=new r.Long(0,0,!1);n.cardFrom=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.cardFrom=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.avid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.avid=i.longs===String?"0":0}return t.cardType!=null&&t.hasOwnProperty("cardType")&&(n.cardType=t.cardType),t.cardEntity!=null&&t.hasOwnProperty("cardEntity")&&(n.cardEntity=t.cardEntity),t.cardEntityId!=null&&t.hasOwnProperty("cardEntityId")&&(typeof t.cardEntityId=="number"?n.cardEntityId=i.longs===String?String(t.cardEntityId):t.cardEntityId:n.cardEntityId=i.longs===String?r.Long.prototype.toString.call(t.cardEntityId):i.longs===Number?new r.LongBits(t.cardEntityId.low>>>0,t.cardEntityId.high>>>0).toNumber():t.cardEntityId),t.cardEntityName!=null&&t.hasOwnProperty("cardEntityName")&&(n.cardEntityName=t.cardEntityName),t.cardEntityParams!=null&&t.hasOwnProperty("cardEntityParams")&&(n.cardEntityParams=t.cardEntityParams),t.pos!=null&&t.hasOwnProperty("pos")&&(typeof t.pos=="number"?n.pos=i.longs===String?String(t.pos):t.pos:n.pos=i.longs===String?r.Long.prototype.toString.call(t.pos):i.longs===Number?new r.LongBits(t.pos.low>>>0,t.pos.high>>>0).toNumber():t.pos),t.operaterType!=null&&t.hasOwnProperty("operaterType")&&(typeof t.operaterType=="number"?n.operaterType=i.longs===String?String(t.operaterType):t.operaterType:n.operaterType=i.longs===String?r.Long.prototype.toString.call(t.operaterType):i.longs===Number?new r.LongBits(t.operaterType.low>>>0,t.operaterType.high>>>0).toNumber():t.operaterType),t.operater!=null&&t.hasOwnProperty("operater")&&(n.operater=t.operater),t.internalTrackId!=null&&t.hasOwnProperty("internalTrackId")&&(n.internalTrackId=t.internalTrackId),t.cardButtonType!=null&&t.hasOwnProperty("cardButtonType")&&(n.cardButtonType=t.cardButtonType),t.cardButtonTypeName!=null&&t.hasOwnProperty("cardButtonTypeName")&&(n.cardButtonTypeName=t.cardButtonTypeName),t.modularId!=null&&t.hasOwnProperty("modularId")&&(typeof t.modularId=="number"?n.modularId=i.longs===String?String(t.modularId):t.modularId:n.modularId=i.longs===String?r.Long.prototype.toString.call(t.modularId):i.longs===Number?new r.LongBits(t.modularId.low>>>0,t.modularId.high>>>0).toNumber():t.modularId),t.modularName!=null&&t.hasOwnProperty("modularName")&&(n.modularName=t.modularName),t.roomId!=null&&t.hasOwnProperty("roomId")&&(typeof t.roomId=="number"?n.roomId=i.longs===String?String(t.roomId):t.roomId:n.roomId=i.longs===String?r.Long.prototype.toString.call(t.roomId):i.longs===Number?new r.LongBits(t.roomId.low>>>0,t.roomId.high>>>0).toNumber():t.roomId),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.cardFrom!=null&&t.hasOwnProperty("cardFrom")&&(typeof t.cardFrom=="number"?n.cardFrom=i.longs===String?String(t.cardFrom):t.cardFrom:n.cardFrom=i.longs===String?r.Long.prototype.toString.call(t.cardFrom):i.longs===Number?new r.LongBits(t.cardFrom.low>>>0,t.cardFrom.high>>>0).toNumber():t.cardFrom),t.avid!=null&&t.hasOwnProperty("avid")&&(typeof t.avid=="number"?n.avid=i.longs===String?String(t.avid):t.avid:n.avid=i.longs===String?r.Long.prototype.toString.call(t.avid):i.longs===Number?new r.LongBits(t.avid.low>>>0,t.avid.high>>>0).toNumber():t.avid),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.tv.interface_.v1.SceneCard"},e}(),c.ViewToast=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.homeToast=t.string();break}case 2:{o.homeIcon=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.tv.interface_.v1.ViewToast)return t;let i=new u.bilibili.tv.interface_.v1.ViewToast;return t.homeToast!=null&&(i.homeToast=String(t.homeToast)),t.homeIcon!=null&&(i.homeIcon=String(t.homeIcon)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.homeToast="",n.homeIcon=""),t.homeToast!=null&&t.hasOwnProperty("homeToast")&&(n.homeToast=t.homeToast),t.homeIcon!=null&&t.hasOwnProperty("homeIcon")&&(n.homeIcon=t.homeIcon),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.tv.interface_.v1.ViewToast"},e}(),c.SearchExt=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.name=t.string();break}case 2:{o.switch=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.tv.interface_.v1.SearchExt)return t;let i=new u.bilibili.tv.interface_.v1.SearchExt;return t.name!=null&&(i.name=String(t.name)),t.switch!=null&&(i.switch=!!t.switch),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.name="",n.switch=!1),t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),t.switch!=null&&t.hasOwnProperty("switch")&&(n.switch=t.switch),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.tv.interface_.v1.SearchExt"},e}(),c.ShareExt=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.shareToPhone=t.bool();break}case 2:{o.title=t.string();break}case 3:{o.loginTitle=t.string();break}case 4:{o.qrTitle=t.string();break}case 5:{o.qrUrl=t.string();break}case 6:{o.userName=t.string();break}case 7:{o.userFace=t.string();break}case 8:{o.qrImg=t.string();break}case 9:{o.shareStyle=t.int32();break}case 10:{o.text=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.tv.interface_.v1.ShareExt)return t;let i=new u.bilibili.tv.interface_.v1.ShareExt;return t.shareToPhone!=null&&(i.shareToPhone=!!t.shareToPhone),t.title!=null&&(i.title=String(t.title)),t.loginTitle!=null&&(i.loginTitle=String(t.loginTitle)),t.qrTitle!=null&&(i.qrTitle=String(t.qrTitle)),t.qrUrl!=null&&(i.qrUrl=String(t.qrUrl)),t.userName!=null&&(i.userName=String(t.userName)),t.userFace!=null&&(i.userFace=String(t.userFace)),t.qrImg!=null&&(i.qrImg=String(t.qrImg)),t.shareStyle!=null&&(i.shareStyle=t.shareStyle|0),t.text!=null&&(i.text=String(t.text)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.shareToPhone=!1,n.title="",n.loginTitle="",n.qrTitle="",n.qrUrl="",n.userName="",n.userFace="",n.qrImg="",n.shareStyle=0,n.text=""),t.shareToPhone!=null&&t.hasOwnProperty("shareToPhone")&&(n.shareToPhone=t.shareToPhone),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.loginTitle!=null&&t.hasOwnProperty("loginTitle")&&(n.loginTitle=t.loginTitle),t.qrTitle!=null&&t.hasOwnProperty("qrTitle")&&(n.qrTitle=t.qrTitle),t.qrUrl!=null&&t.hasOwnProperty("qrUrl")&&(n.qrUrl=t.qrUrl),t.userName!=null&&t.hasOwnProperty("userName")&&(n.userName=t.userName),t.userFace!=null&&t.hasOwnProperty("userFace")&&(n.userFace=t.userFace),t.qrImg!=null&&t.hasOwnProperty("qrImg")&&(n.qrImg=t.qrImg),t.shareStyle!=null&&t.hasOwnProperty("shareStyle")&&(n.shareStyle=t.shareStyle),t.text!=null&&t.hasOwnProperty("text")&&(n.text=t.text),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.tv.interface_.v1.ShareExt"},e}(),c.OgvCollection=function(){function e(l){if(this.covers=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.baseInfo=t.string();break}case 2:{o.subInfo=t.string();break}case 3:{o.covers&&o.covers.length||(o.covers=[]),o.covers.push(t.string());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.tv.interface_.v1.OgvCollection)return t;let i=new u.bilibili.tv.interface_.v1.OgvCollection;if(t.baseInfo!=null&&(i.baseInfo=String(t.baseInfo)),t.subInfo!=null&&(i.subInfo=String(t.subInfo)),t.covers){if(!Array.isArray(t.covers))throw TypeError(".bilibili.tv.interface_.v1.OgvCollection.covers: array expected");i.covers=[];for(let n=0;n>>3){case 1:{o.pageType=t.string();break}case 2:{o.pageEntity=t.string();break}case 3:{o.pageEntityId=t.int64();break}case 4:{o.pageEntityName=t.string();break}case 5:{o.traceId=t.string();break}case 6:{o.pageMainCardType=t.int64();break}case 7:{o.pageMainCardEntity=t.string();break}case 8:{o.pageMainCardEntityId=t.int64();break}case 9:{o.pageMainCardEntityName=t.string();break}case 10:{o.pageMainCardEntityParams=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.tv.interface_.v1.PlayScenePageViewV2)return t;let i=new u.bilibili.tv.interface_.v1.PlayScenePageViewV2;return t.pageType!=null&&(i.pageType=String(t.pageType)),t.pageEntity!=null&&(i.pageEntity=String(t.pageEntity)),t.pageEntityId!=null&&(r.Long?(i.pageEntityId=r.Long.fromValue(t.pageEntityId)).unsigned=!1:typeof t.pageEntityId=="string"?i.pageEntityId=parseInt(t.pageEntityId,10):typeof t.pageEntityId=="number"?i.pageEntityId=t.pageEntityId:typeof t.pageEntityId=="object"&&(i.pageEntityId=new r.LongBits(t.pageEntityId.low>>>0,t.pageEntityId.high>>>0).toNumber())),t.pageEntityName!=null&&(i.pageEntityName=String(t.pageEntityName)),t.traceId!=null&&(i.traceId=String(t.traceId)),t.pageMainCardType!=null&&(r.Long?(i.pageMainCardType=r.Long.fromValue(t.pageMainCardType)).unsigned=!1:typeof t.pageMainCardType=="string"?i.pageMainCardType=parseInt(t.pageMainCardType,10):typeof t.pageMainCardType=="number"?i.pageMainCardType=t.pageMainCardType:typeof t.pageMainCardType=="object"&&(i.pageMainCardType=new r.LongBits(t.pageMainCardType.low>>>0,t.pageMainCardType.high>>>0).toNumber())),t.pageMainCardEntity!=null&&(i.pageMainCardEntity=String(t.pageMainCardEntity)),t.pageMainCardEntityId!=null&&(r.Long?(i.pageMainCardEntityId=r.Long.fromValue(t.pageMainCardEntityId)).unsigned=!1:typeof t.pageMainCardEntityId=="string"?i.pageMainCardEntityId=parseInt(t.pageMainCardEntityId,10):typeof t.pageMainCardEntityId=="number"?i.pageMainCardEntityId=t.pageMainCardEntityId:typeof t.pageMainCardEntityId=="object"&&(i.pageMainCardEntityId=new r.LongBits(t.pageMainCardEntityId.low>>>0,t.pageMainCardEntityId.high>>>0).toNumber())),t.pageMainCardEntityName!=null&&(i.pageMainCardEntityName=String(t.pageMainCardEntityName)),t.pageMainCardEntityParams!=null&&(i.pageMainCardEntityParams=String(t.pageMainCardEntityParams)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.pageType="",n.pageEntity="",r.Long){let o=new r.Long(0,0,!1);n.pageEntityId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.pageEntityId=i.longs===String?"0":0;if(n.pageEntityName="",n.traceId="",r.Long){let o=new r.Long(0,0,!1);n.pageMainCardType=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.pageMainCardType=i.longs===String?"0":0;if(n.pageMainCardEntity="",r.Long){let o=new r.Long(0,0,!1);n.pageMainCardEntityId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.pageMainCardEntityId=i.longs===String?"0":0;n.pageMainCardEntityName="",n.pageMainCardEntityParams=""}return t.pageType!=null&&t.hasOwnProperty("pageType")&&(n.pageType=t.pageType),t.pageEntity!=null&&t.hasOwnProperty("pageEntity")&&(n.pageEntity=t.pageEntity),t.pageEntityId!=null&&t.hasOwnProperty("pageEntityId")&&(typeof t.pageEntityId=="number"?n.pageEntityId=i.longs===String?String(t.pageEntityId):t.pageEntityId:n.pageEntityId=i.longs===String?r.Long.prototype.toString.call(t.pageEntityId):i.longs===Number?new r.LongBits(t.pageEntityId.low>>>0,t.pageEntityId.high>>>0).toNumber():t.pageEntityId),t.pageEntityName!=null&&t.hasOwnProperty("pageEntityName")&&(n.pageEntityName=t.pageEntityName),t.traceId!=null&&t.hasOwnProperty("traceId")&&(n.traceId=t.traceId),t.pageMainCardType!=null&&t.hasOwnProperty("pageMainCardType")&&(typeof t.pageMainCardType=="number"?n.pageMainCardType=i.longs===String?String(t.pageMainCardType):t.pageMainCardType:n.pageMainCardType=i.longs===String?r.Long.prototype.toString.call(t.pageMainCardType):i.longs===Number?new r.LongBits(t.pageMainCardType.low>>>0,t.pageMainCardType.high>>>0).toNumber():t.pageMainCardType),t.pageMainCardEntity!=null&&t.hasOwnProperty("pageMainCardEntity")&&(n.pageMainCardEntity=t.pageMainCardEntity),t.pageMainCardEntityId!=null&&t.hasOwnProperty("pageMainCardEntityId")&&(typeof t.pageMainCardEntityId=="number"?n.pageMainCardEntityId=i.longs===String?String(t.pageMainCardEntityId):t.pageMainCardEntityId:n.pageMainCardEntityId=i.longs===String?r.Long.prototype.toString.call(t.pageMainCardEntityId):i.longs===Number?new r.LongBits(t.pageMainCardEntityId.low>>>0,t.pageMainCardEntityId.high>>>0).toNumber():t.pageMainCardEntityId),t.pageMainCardEntityName!=null&&t.hasOwnProperty("pageMainCardEntityName")&&(n.pageMainCardEntityName=t.pageMainCardEntityName),t.pageMainCardEntityParams!=null&&t.hasOwnProperty("pageMainCardEntityParams")&&(n.pageMainCardEntityParams=t.pageMainCardEntityParams),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.tv.interface_.v1.PlayScenePageViewV2"},e}(),c.HLRange=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.beginning=t.int32();break}case 2:{o.ending=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.tv.interface_.v1.HLRange)return t;let i=new u.bilibili.tv.interface_.v1.HLRange;return t.beginning!=null&&(i.beginning=t.beginning|0),t.ending!=null&&(i.ending=t.ending|0),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.beginning=0,n.ending=0),t.beginning!=null&&t.hasOwnProperty("beginning")&&(n.beginning=t.beginning),t.ending!=null&&t.hasOwnProperty("ending")&&(n.ending=t.ending),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.tv.interface_.v1.HLRange"},e}(),c.InfocExt=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.viderType=t.int32();break}case 2:{o.contentType=t.int32();break}case 3:{o.aid=t.int64();break}case 4:{o.cid=t.int64();break}case 5:{o.sid=t.int64();break}case 6:{o.epid=t.int64();break}case 7:{o.viderTypeStr=t.string();break}case 8:{o.contentTypeStr=t.string();break}case 9:{o.aidStr=t.string();break}case 10:{o.cidStr=t.string();break}case 11:{o.sidStr=t.string();break}case 12:{o.epidStr=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.tv.interface_.v1.InfocExt)return t;let i=new u.bilibili.tv.interface_.v1.InfocExt;return t.viderType!=null&&(i.viderType=t.viderType|0),t.contentType!=null&&(i.contentType=t.contentType|0),t.aid!=null&&(r.Long?(i.aid=r.Long.fromValue(t.aid)).unsigned=!1:typeof t.aid=="string"?i.aid=parseInt(t.aid,10):typeof t.aid=="number"?i.aid=t.aid:typeof t.aid=="object"&&(i.aid=new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber())),t.cid!=null&&(r.Long?(i.cid=r.Long.fromValue(t.cid)).unsigned=!1:typeof t.cid=="string"?i.cid=parseInt(t.cid,10):typeof t.cid=="number"?i.cid=t.cid:typeof t.cid=="object"&&(i.cid=new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber())),t.sid!=null&&(r.Long?(i.sid=r.Long.fromValue(t.sid)).unsigned=!1:typeof t.sid=="string"?i.sid=parseInt(t.sid,10):typeof t.sid=="number"?i.sid=t.sid:typeof t.sid=="object"&&(i.sid=new r.LongBits(t.sid.low>>>0,t.sid.high>>>0).toNumber())),t.epid!=null&&(r.Long?(i.epid=r.Long.fromValue(t.epid)).unsigned=!1:typeof t.epid=="string"?i.epid=parseInt(t.epid,10):typeof t.epid=="number"?i.epid=t.epid:typeof t.epid=="object"&&(i.epid=new r.LongBits(t.epid.low>>>0,t.epid.high>>>0).toNumber())),t.viderTypeStr!=null&&(i.viderTypeStr=String(t.viderTypeStr)),t.contentTypeStr!=null&&(i.contentTypeStr=String(t.contentTypeStr)),t.aidStr!=null&&(i.aidStr=String(t.aidStr)),t.cidStr!=null&&(i.cidStr=String(t.cidStr)),t.sidStr!=null&&(i.sidStr=String(t.sidStr)),t.epidStr!=null&&(i.epidStr=String(t.epidStr)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.viderType=0,n.contentType=0,r.Long){let o=new r.Long(0,0,!1);n.aid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.aid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.cid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.cid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.sid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.sid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.epid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.epid=i.longs===String?"0":0;n.viderTypeStr="",n.contentTypeStr="",n.aidStr="",n.cidStr="",n.sidStr="",n.epidStr=""}return t.viderType!=null&&t.hasOwnProperty("viderType")&&(n.viderType=t.viderType),t.contentType!=null&&t.hasOwnProperty("contentType")&&(n.contentType=t.contentType),t.aid!=null&&t.hasOwnProperty("aid")&&(typeof t.aid=="number"?n.aid=i.longs===String?String(t.aid):t.aid:n.aid=i.longs===String?r.Long.prototype.toString.call(t.aid):i.longs===Number?new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber():t.aid),t.cid!=null&&t.hasOwnProperty("cid")&&(typeof t.cid=="number"?n.cid=i.longs===String?String(t.cid):t.cid:n.cid=i.longs===String?r.Long.prototype.toString.call(t.cid):i.longs===Number?new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber():t.cid),t.sid!=null&&t.hasOwnProperty("sid")&&(typeof t.sid=="number"?n.sid=i.longs===String?String(t.sid):t.sid:n.sid=i.longs===String?r.Long.prototype.toString.call(t.sid):i.longs===Number?new r.LongBits(t.sid.low>>>0,t.sid.high>>>0).toNumber():t.sid),t.epid!=null&&t.hasOwnProperty("epid")&&(typeof t.epid=="number"?n.epid=i.longs===String?String(t.epid):t.epid:n.epid=i.longs===String?r.Long.prototype.toString.call(t.epid):i.longs===Number?new r.LongBits(t.epid.low>>>0,t.epid.high>>>0).toNumber():t.epid),t.viderTypeStr!=null&&t.hasOwnProperty("viderTypeStr")&&(n.viderTypeStr=t.viderTypeStr),t.contentTypeStr!=null&&t.hasOwnProperty("contentTypeStr")&&(n.contentTypeStr=t.contentTypeStr),t.aidStr!=null&&t.hasOwnProperty("aidStr")&&(n.aidStr=t.aidStr),t.cidStr!=null&&t.hasOwnProperty("cidStr")&&(n.cidStr=t.cidStr),t.sidStr!=null&&t.hasOwnProperty("sidStr")&&(n.sidStr=t.sidStr),t.epidStr!=null&&t.hasOwnProperty("epidStr")&&(n.epidStr=t.epidStr),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.tv.interface_.v1.InfocExt"},e}(),c.PlaylistTab=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.groupId=t.int32();break}case 3:{o.listType=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.tv.interface_.v1.PlaylistTab)return t;let i=new u.bilibili.tv.interface_.v1.PlaylistTab;return t.title!=null&&(i.title=String(t.title)),t.groupId!=null&&(i.groupId=t.groupId|0),t.listType!=null&&(r.Long?(i.listType=r.Long.fromValue(t.listType)).unsigned=!1:typeof t.listType=="string"?i.listType=parseInt(t.listType,10):typeof t.listType=="number"?i.listType=t.listType:typeof t.listType=="object"&&(i.listType=new r.LongBits(t.listType.low>>>0,t.listType.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(n.title="",n.groupId=0,r.Long){let o=new r.Long(0,0,!1);n.listType=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.listType=i.longs===String?"0":0;return t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.groupId!=null&&t.hasOwnProperty("groupId")&&(n.groupId=t.groupId),t.listType!=null&&t.hasOwnProperty("listType")&&(typeof t.listType=="number"?n.listType=i.longs===String?String(t.listType):t.listType:n.listType=i.longs===String?r.Long.prototype.toString.call(t.listType):i.longs===Number?new r.LongBits(t.listType.low>>>0,t.listType.high>>>0).toNumber():t.listType),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.tv.interface_.v1.PlaylistTab"},e}(),c.CardViewPlayListResp=function(){function e(l){if(this.listCards=[],this.epIds=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.listName=t.string();break}case 2:{o.listType=t.int64();break}case 3:{o.listCards&&o.listCards.length||(o.listCards=[]),o.listCards.push(u.bilibili.tv.interface_.v1.CommonCardResp.decode(t,t.uint32()));break}case 4:{o.groupId=t.int32();break}case 5:{o.updateTime=t.string();break}case 6:{o.serialId=t.int64();break}case 7:{o.listFollowed=t.int64();break}case 8:{if(o.epIds&&o.epIds.length||(o.epIds=[]),(a&7)===2){let y=t.uint32()+t.pos;for(;t.pos>>0,t.listType.high>>>0).toNumber())),t.listCards){if(!Array.isArray(t.listCards))throw TypeError(".bilibili.tv.interface_.v1.CardViewPlayListResp.listCards: array expected");i.listCards=[];for(let n=0;n>>0,t.serialId.high>>>0).toNumber())),t.listFollowed!=null&&(r.Long?(i.listFollowed=r.Long.fromValue(t.listFollowed)).unsigned=!1:typeof t.listFollowed=="string"?i.listFollowed=parseInt(t.listFollowed,10):typeof t.listFollowed=="number"?i.listFollowed=t.listFollowed:typeof t.listFollowed=="object"&&(i.listFollowed=new r.LongBits(t.listFollowed.low>>>0,t.listFollowed.high>>>0).toNumber())),t.epIds){if(!Array.isArray(t.epIds))throw TypeError(".bilibili.tv.interface_.v1.CardViewPlayListResp.epIds: array expected");i.epIds=[];for(let n=0;n>>0,t.listType.high>>>0).toNumber():t.listType),t.listCards&&t.listCards.length){n.listCards=[];for(let o=0;o>>0,t.serialId.high>>>0).toNumber():t.serialId),t.listFollowed!=null&&t.hasOwnProperty("listFollowed")&&(typeof t.listFollowed=="number"?n.listFollowed=i.longs===String?String(t.listFollowed):t.listFollowed:n.listFollowed=i.longs===String?r.Long.prototype.toString.call(t.listFollowed):i.longs===Number?new r.LongBits(t.listFollowed.low>>>0,t.listFollowed.high>>>0).toNumber():t.listFollowed),t.epIds&&t.epIds.length){n.epIds=[];for(let o=0;o>>3){case 1:{o.type=t.int32();break}case 2:{o.btnText=t.string();break}case 3:{o.msg=t.string();break}case 4:{o.url=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.tv.interface_.v1.Button)return t;let i=new u.bilibili.tv.interface_.v1.Button;return t.type!=null&&(i.type=t.type|0),t.btnText!=null&&(i.btnText=String(t.btnText)),t.msg!=null&&(i.msg=String(t.msg)),t.url!=null&&(i.url=String(t.url)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.type=0,n.btnText="",n.msg="",n.url=""),t.type!=null&&t.hasOwnProperty("type")&&(n.type=t.type),t.btnText!=null&&t.hasOwnProperty("btnText")&&(n.btnText=t.btnText),t.msg!=null&&t.hasOwnProperty("msg")&&(n.msg=t.msg),t.url!=null&&t.hasOwnProperty("url")&&(n.url=t.url),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.tv.interface_.v1.Button"},e}(),c.ShopExt=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.cartStatus=t.int64();break}case 2:{o.trackShop=u.bilibili.tv.interface_.v1.TrackShop.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.tv.interface_.v1.ShopExt)return t;let i=new u.bilibili.tv.interface_.v1.ShopExt;if(t.cartStatus!=null&&(r.Long?(i.cartStatus=r.Long.fromValue(t.cartStatus)).unsigned=!1:typeof t.cartStatus=="string"?i.cartStatus=parseInt(t.cartStatus,10):typeof t.cartStatus=="number"?i.cartStatus=t.cartStatus:typeof t.cartStatus=="object"&&(i.cartStatus=new r.LongBits(t.cartStatus.low>>>0,t.cartStatus.high>>>0).toNumber())),t.trackShop!=null){if(typeof t.trackShop!="object")throw TypeError(".bilibili.tv.interface_.v1.ShopExt.trackShop: object expected");i.trackShop=u.bilibili.tv.interface_.v1.TrackShop.fromObject(t.trackShop)}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.cartStatus=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.cartStatus=i.longs===String?"0":0;n.trackShop=null}return t.cartStatus!=null&&t.hasOwnProperty("cartStatus")&&(typeof t.cartStatus=="number"?n.cartStatus=i.longs===String?String(t.cartStatus):t.cartStatus:n.cartStatus=i.longs===String?r.Long.prototype.toString.call(t.cartStatus):i.longs===Number?new r.LongBits(t.cartStatus.low>>>0,t.cartStatus.high>>>0).toNumber():t.cartStatus),t.trackShop!=null&&t.hasOwnProperty("trackShop")&&(n.trackShop=u.bilibili.tv.interface_.v1.TrackShop.toObject(t.trackShop,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.tv.interface_.v1.ShopExt"},e}(),c.TrackShop=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.trackShopPage=u.bilibili.tv.interface_.v1.PlayScenePageViewV2.decode(t,t.uint32());break}case 2:{o.trackShopModule=u.bilibili.tv.interface_.v1.SceneModule.decode(t,t.uint32());break}case 3:{o.trackShopCard=u.bilibili.tv.interface_.v1.SceneCard.decode(t,t.uint32());break}case 4:{o.trackShopPageStr=t.string();break}case 5:{o.trackShopModuleStr=t.string();break}case 6:{o.trackShopCardStr=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.tv.interface_.v1.TrackShop)return t;let i=new u.bilibili.tv.interface_.v1.TrackShop;if(t.trackShopPage!=null){if(typeof t.trackShopPage!="object")throw TypeError(".bilibili.tv.interface_.v1.TrackShop.trackShopPage: object expected");i.trackShopPage=u.bilibili.tv.interface_.v1.PlayScenePageViewV2.fromObject(t.trackShopPage)}if(t.trackShopModule!=null){if(typeof t.trackShopModule!="object")throw TypeError(".bilibili.tv.interface_.v1.TrackShop.trackShopModule: object expected");i.trackShopModule=u.bilibili.tv.interface_.v1.SceneModule.fromObject(t.trackShopModule)}if(t.trackShopCard!=null){if(typeof t.trackShopCard!="object")throw TypeError(".bilibili.tv.interface_.v1.TrackShop.trackShopCard: object expected");i.trackShopCard=u.bilibili.tv.interface_.v1.SceneCard.fromObject(t.trackShopCard)}return t.trackShopPageStr!=null&&(i.trackShopPageStr=String(t.trackShopPageStr)),t.trackShopModuleStr!=null&&(i.trackShopModuleStr=String(t.trackShopModuleStr)),t.trackShopCardStr!=null&&(i.trackShopCardStr=String(t.trackShopCardStr)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.trackShopPage=null,n.trackShopModule=null,n.trackShopCard=null,n.trackShopPageStr="",n.trackShopModuleStr="",n.trackShopCardStr=""),t.trackShopPage!=null&&t.hasOwnProperty("trackShopPage")&&(n.trackShopPage=u.bilibili.tv.interface_.v1.PlayScenePageViewV2.toObject(t.trackShopPage,i)),t.trackShopModule!=null&&t.hasOwnProperty("trackShopModule")&&(n.trackShopModule=u.bilibili.tv.interface_.v1.SceneModule.toObject(t.trackShopModule,i)),t.trackShopCard!=null&&t.hasOwnProperty("trackShopCard")&&(n.trackShopCard=u.bilibili.tv.interface_.v1.SceneCard.toObject(t.trackShopCard,i)),t.trackShopPageStr!=null&&t.hasOwnProperty("trackShopPageStr")&&(n.trackShopPageStr=t.trackShopPageStr),t.trackShopModuleStr!=null&&t.hasOwnProperty("trackShopModuleStr")&&(n.trackShopModuleStr=t.trackShopModuleStr),t.trackShopCardStr!=null&&t.hasOwnProperty("trackShopCardStr")&&(n.trackShopCardStr=t.trackShopCardStr),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.tv.interface_.v1.TrackShop"},e}(),c.SceneModule=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.moduleType=t.int64();break}case 2:{o.moduleEntity=t.string();break}case 3:{o.moduleEntityId=t.int64();break}case 4:{o.moduleEntityName=t.string();break}case 5:{o.moduleEntityPos=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.tv.interface_.v1.SceneModule)return t;let i=new u.bilibili.tv.interface_.v1.SceneModule;return t.moduleType!=null&&(r.Long?(i.moduleType=r.Long.fromValue(t.moduleType)).unsigned=!1:typeof t.moduleType=="string"?i.moduleType=parseInt(t.moduleType,10):typeof t.moduleType=="number"?i.moduleType=t.moduleType:typeof t.moduleType=="object"&&(i.moduleType=new r.LongBits(t.moduleType.low>>>0,t.moduleType.high>>>0).toNumber())),t.moduleEntity!=null&&(i.moduleEntity=String(t.moduleEntity)),t.moduleEntityId!=null&&(r.Long?(i.moduleEntityId=r.Long.fromValue(t.moduleEntityId)).unsigned=!1:typeof t.moduleEntityId=="string"?i.moduleEntityId=parseInt(t.moduleEntityId,10):typeof t.moduleEntityId=="number"?i.moduleEntityId=t.moduleEntityId:typeof t.moduleEntityId=="object"&&(i.moduleEntityId=new r.LongBits(t.moduleEntityId.low>>>0,t.moduleEntityId.high>>>0).toNumber())),t.moduleEntityName!=null&&(i.moduleEntityName=String(t.moduleEntityName)),t.moduleEntityPos!=null&&(i.moduleEntityPos=t.moduleEntityPos|0),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.moduleType=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.moduleType=i.longs===String?"0":0;if(n.moduleEntity="",r.Long){let o=new r.Long(0,0,!1);n.moduleEntityId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.moduleEntityId=i.longs===String?"0":0;n.moduleEntityName="",n.moduleEntityPos=0}return t.moduleType!=null&&t.hasOwnProperty("moduleType")&&(typeof t.moduleType=="number"?n.moduleType=i.longs===String?String(t.moduleType):t.moduleType:n.moduleType=i.longs===String?r.Long.prototype.toString.call(t.moduleType):i.longs===Number?new r.LongBits(t.moduleType.low>>>0,t.moduleType.high>>>0).toNumber():t.moduleType),t.moduleEntity!=null&&t.hasOwnProperty("moduleEntity")&&(n.moduleEntity=t.moduleEntity),t.moduleEntityId!=null&&t.hasOwnProperty("moduleEntityId")&&(typeof t.moduleEntityId=="number"?n.moduleEntityId=i.longs===String?String(t.moduleEntityId):t.moduleEntityId:n.moduleEntityId=i.longs===String?r.Long.prototype.toString.call(t.moduleEntityId):i.longs===Number?new r.LongBits(t.moduleEntityId.low>>>0,t.moduleEntityId.high>>>0).toNumber():t.moduleEntityId),t.moduleEntityName!=null&&t.hasOwnProperty("moduleEntityName")&&(n.moduleEntityName=t.moduleEntityName),t.moduleEntityPos!=null&&t.hasOwnProperty("moduleEntityPos")&&(n.moduleEntityPos=t.moduleEntityPos),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.tv.interface_.v1.SceneModule"},e}(),c.ProjExt=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.endPageSwitch=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.tv.interface_.v1.ProjExt)return t;let i=new u.bilibili.tv.interface_.v1.ProjExt;return t.endPageSwitch!=null&&(i.endPageSwitch=t.endPageSwitch|0),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.endPageSwitch=0),t.endPageSwitch!=null&&t.hasOwnProperty("endPageSwitch")&&(n.endPageSwitch=t.endPageSwitch),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.tv.interface_.v1.ProjExt"},e}(),c.JumpLine=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.text=t.string();break}case 2:{o.url=t.string();break}case 3:{o.pic=t.string();break}case 4:{o.dynamic=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.tv.interface_.v1.JumpLine)return t;let i=new u.bilibili.tv.interface_.v1.JumpLine;return t.text!=null&&(i.text=String(t.text)),t.url!=null&&(i.url=String(t.url)),t.pic!=null&&(i.pic=String(t.pic)),t.dynamic!=null&&(i.dynamic=!!t.dynamic),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.text="",n.url="",n.pic="",n.dynamic=!1),t.text!=null&&t.hasOwnProperty("text")&&(n.text=t.text),t.url!=null&&t.hasOwnProperty("url")&&(n.url=t.url),t.pic!=null&&t.hasOwnProperty("pic")&&(n.pic=t.pic),t.dynamic!=null&&t.hasOwnProperty("dynamic")&&(n.dynamic=t.dynamic),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.tv.interface_.v1.JumpLine"},e}(),c.MediaExtra=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.type=t.int64();break}case 2:{o.bizId=t.int64();break}case 3:{o.otype=t.int64();break}case 4:{o.oid=t.int64();break}case 5:{o.cid=t.int64();break}case 6:{o.desc=t.bool();break}case 7:{o.mobiApp=t.string();break}case 8:{o.bvId=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.tv.interface_.v1.MediaExtra)return t;let i=new u.bilibili.tv.interface_.v1.MediaExtra;return t.type!=null&&(r.Long?(i.type=r.Long.fromValue(t.type)).unsigned=!1:typeof t.type=="string"?i.type=parseInt(t.type,10):typeof t.type=="number"?i.type=t.type:typeof t.type=="object"&&(i.type=new r.LongBits(t.type.low>>>0,t.type.high>>>0).toNumber())),t.bizId!=null&&(r.Long?(i.bizId=r.Long.fromValue(t.bizId)).unsigned=!1:typeof t.bizId=="string"?i.bizId=parseInt(t.bizId,10):typeof t.bizId=="number"?i.bizId=t.bizId:typeof t.bizId=="object"&&(i.bizId=new r.LongBits(t.bizId.low>>>0,t.bizId.high>>>0).toNumber())),t.otype!=null&&(r.Long?(i.otype=r.Long.fromValue(t.otype)).unsigned=!1:typeof t.otype=="string"?i.otype=parseInt(t.otype,10):typeof t.otype=="number"?i.otype=t.otype:typeof t.otype=="object"&&(i.otype=new r.LongBits(t.otype.low>>>0,t.otype.high>>>0).toNumber())),t.oid!=null&&(r.Long?(i.oid=r.Long.fromValue(t.oid)).unsigned=!1:typeof t.oid=="string"?i.oid=parseInt(t.oid,10):typeof t.oid=="number"?i.oid=t.oid:typeof t.oid=="object"&&(i.oid=new r.LongBits(t.oid.low>>>0,t.oid.high>>>0).toNumber())),t.cid!=null&&(r.Long?(i.cid=r.Long.fromValue(t.cid)).unsigned=!1:typeof t.cid=="string"?i.cid=parseInt(t.cid,10):typeof t.cid=="number"?i.cid=t.cid:typeof t.cid=="object"&&(i.cid=new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber())),t.desc!=null&&(i.desc=!!t.desc),t.mobiApp!=null&&(i.mobiApp=String(t.mobiApp)),t.bvId!=null&&(i.bvId=String(t.bvId)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.type=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.type=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.bizId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.bizId=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.otype=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.otype=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.oid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.oid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.cid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.cid=i.longs===String?"0":0;n.desc=!1,n.mobiApp="",n.bvId=""}return t.type!=null&&t.hasOwnProperty("type")&&(typeof t.type=="number"?n.type=i.longs===String?String(t.type):t.type:n.type=i.longs===String?r.Long.prototype.toString.call(t.type):i.longs===Number?new r.LongBits(t.type.low>>>0,t.type.high>>>0).toNumber():t.type),t.bizId!=null&&t.hasOwnProperty("bizId")&&(typeof t.bizId=="number"?n.bizId=i.longs===String?String(t.bizId):t.bizId:n.bizId=i.longs===String?r.Long.prototype.toString.call(t.bizId):i.longs===Number?new r.LongBits(t.bizId.low>>>0,t.bizId.high>>>0).toNumber():t.bizId),t.otype!=null&&t.hasOwnProperty("otype")&&(typeof t.otype=="number"?n.otype=i.longs===String?String(t.otype):t.otype:n.otype=i.longs===String?r.Long.prototype.toString.call(t.otype):i.longs===Number?new r.LongBits(t.otype.low>>>0,t.otype.high>>>0).toNumber():t.otype),t.oid!=null&&t.hasOwnProperty("oid")&&(typeof t.oid=="number"?n.oid=i.longs===String?String(t.oid):t.oid:n.oid=i.longs===String?r.Long.prototype.toString.call(t.oid):i.longs===Number?new r.LongBits(t.oid.low>>>0,t.oid.high>>>0).toNumber():t.oid),t.cid!=null&&t.hasOwnProperty("cid")&&(typeof t.cid=="number"?n.cid=i.longs===String?String(t.cid):t.cid:n.cid=i.longs===String?r.Long.prototype.toString.call(t.cid):i.longs===Number?new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber():t.cid),t.desc!=null&&t.hasOwnProperty("desc")&&(n.desc=t.desc),t.mobiApp!=null&&t.hasOwnProperty("mobiApp")&&(n.mobiApp=t.mobiApp),t.bvId!=null&&t.hasOwnProperty("bvId")&&(n.bvId=t.bvId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.tv.interface_.v1.MediaExtra"},e}(),c.DM=function(){function e(l,t,i){b.rpc.Service.call(this,l,t,i)}return(e.prototype=Object.create(b.rpc.Service.prototype)).constructor=e,e.create=function(t,i,n){return new this(t,i,n)},Object.defineProperty(e.prototype.dmSegMobile=function l(t,i){return this.rpcCall(l,u.bilibili.tv.interface_.v1.DmSegMobileReq,u.bilibili.tv.interface_.v1.DmSegMobileReply,t,i)},"name",{value:"DmSegMobile"}),Object.defineProperty(e.prototype.dmView=function l(t,i){return this.rpcCall(l,u.bilibili.tv.interface_.v1.DmViewReq,u.bilibili.tv.interface_.v1.DmViewReply,t,i)},"name",{value:"DmView"}),Object.defineProperty(e.prototype.commandDmsOtt=function l(t,i){return this.rpcCall(l,u.bilibili.tv.interface_.v1.CommandDmsOttReq,u.bilibili.tv.interface_.v1.CommandDmsOttReply,t,i)},"name",{value:"CommandDmsOtt"}),Object.defineProperty(e.prototype.tvViewProgress=function l(t,i){return this.rpcCall(l,u.bilibili.tv.interface_.v1.TvViewProgressReq,u.bilibili.tv.interface_.v1.TvViewProgressReply,t,i)},"name",{value:"TvViewProgress"}),e}(),c.TvViewProgressReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.aid=t.int64();break}case 2:{o.cid=t.int64();break}case 3:{o.upMid=t.int64();break}case 4:{o.engineVersion=t.string();break}case 5:{o.messageProtocol=t.string();break}case 6:{o.serviceKey=t.string();break}case 7:{o.sid=t.int64();break}case 8:{o.pid=t.int64();break}case 9:{o.from=t.int64();break}case 10:{o.guestAccessKey=t.string();break}case 11:{o.epid=t.int64();break}case 12:{o.mobiAccessKey=t.string();break}case 13:{o.spmid=t.string();break}case 14:{o.fromSpmid=t.string();break}case 15:{o.childLock=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.tv.interface_.v1.TvViewProgressReq)return t;let i=new u.bilibili.tv.interface_.v1.TvViewProgressReq;return t.aid!=null&&(r.Long?(i.aid=r.Long.fromValue(t.aid)).unsigned=!1:typeof t.aid=="string"?i.aid=parseInt(t.aid,10):typeof t.aid=="number"?i.aid=t.aid:typeof t.aid=="object"&&(i.aid=new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber())),t.cid!=null&&(r.Long?(i.cid=r.Long.fromValue(t.cid)).unsigned=!1:typeof t.cid=="string"?i.cid=parseInt(t.cid,10):typeof t.cid=="number"?i.cid=t.cid:typeof t.cid=="object"&&(i.cid=new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber())),t.upMid!=null&&(r.Long?(i.upMid=r.Long.fromValue(t.upMid)).unsigned=!1:typeof t.upMid=="string"?i.upMid=parseInt(t.upMid,10):typeof t.upMid=="number"?i.upMid=t.upMid:typeof t.upMid=="object"&&(i.upMid=new r.LongBits(t.upMid.low>>>0,t.upMid.high>>>0).toNumber())),t.engineVersion!=null&&(i.engineVersion=String(t.engineVersion)),t.messageProtocol!=null&&(i.messageProtocol=String(t.messageProtocol)),t.serviceKey!=null&&(i.serviceKey=String(t.serviceKey)),t.sid!=null&&(r.Long?(i.sid=r.Long.fromValue(t.sid)).unsigned=!1:typeof t.sid=="string"?i.sid=parseInt(t.sid,10):typeof t.sid=="number"?i.sid=t.sid:typeof t.sid=="object"&&(i.sid=new r.LongBits(t.sid.low>>>0,t.sid.high>>>0).toNumber())),t.pid!=null&&(r.Long?(i.pid=r.Long.fromValue(t.pid)).unsigned=!1:typeof t.pid=="string"?i.pid=parseInt(t.pid,10):typeof t.pid=="number"?i.pid=t.pid:typeof t.pid=="object"&&(i.pid=new r.LongBits(t.pid.low>>>0,t.pid.high>>>0).toNumber())),t.from!=null&&(r.Long?(i.from=r.Long.fromValue(t.from)).unsigned=!1:typeof t.from=="string"?i.from=parseInt(t.from,10):typeof t.from=="number"?i.from=t.from:typeof t.from=="object"&&(i.from=new r.LongBits(t.from.low>>>0,t.from.high>>>0).toNumber())),t.guestAccessKey!=null&&(i.guestAccessKey=String(t.guestAccessKey)),t.epid!=null&&(r.Long?(i.epid=r.Long.fromValue(t.epid)).unsigned=!1:typeof t.epid=="string"?i.epid=parseInt(t.epid,10):typeof t.epid=="number"?i.epid=t.epid:typeof t.epid=="object"&&(i.epid=new r.LongBits(t.epid.low>>>0,t.epid.high>>>0).toNumber())),t.mobiAccessKey!=null&&(i.mobiAccessKey=String(t.mobiAccessKey)),t.spmid!=null&&(i.spmid=String(t.spmid)),t.fromSpmid!=null&&(i.fromSpmid=String(t.fromSpmid)),t.childLock!=null&&(r.Long?(i.childLock=r.Long.fromValue(t.childLock)).unsigned=!1:typeof t.childLock=="string"?i.childLock=parseInt(t.childLock,10):typeof t.childLock=="number"?i.childLock=t.childLock:typeof t.childLock=="object"&&(i.childLock=new r.LongBits(t.childLock.low>>>0,t.childLock.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.aid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.aid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.cid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.cid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.upMid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.upMid=i.longs===String?"0":0;if(n.engineVersion="",n.messageProtocol="",n.serviceKey="",r.Long){let o=new r.Long(0,0,!1);n.sid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.sid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.pid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.pid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.from=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.from=i.longs===String?"0":0;if(n.guestAccessKey="",r.Long){let o=new r.Long(0,0,!1);n.epid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.epid=i.longs===String?"0":0;if(n.mobiAccessKey="",n.spmid="",n.fromSpmid="",r.Long){let o=new r.Long(0,0,!1);n.childLock=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.childLock=i.longs===String?"0":0}return t.aid!=null&&t.hasOwnProperty("aid")&&(typeof t.aid=="number"?n.aid=i.longs===String?String(t.aid):t.aid:n.aid=i.longs===String?r.Long.prototype.toString.call(t.aid):i.longs===Number?new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber():t.aid),t.cid!=null&&t.hasOwnProperty("cid")&&(typeof t.cid=="number"?n.cid=i.longs===String?String(t.cid):t.cid:n.cid=i.longs===String?r.Long.prototype.toString.call(t.cid):i.longs===Number?new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber():t.cid),t.upMid!=null&&t.hasOwnProperty("upMid")&&(typeof t.upMid=="number"?n.upMid=i.longs===String?String(t.upMid):t.upMid:n.upMid=i.longs===String?r.Long.prototype.toString.call(t.upMid):i.longs===Number?new r.LongBits(t.upMid.low>>>0,t.upMid.high>>>0).toNumber():t.upMid),t.engineVersion!=null&&t.hasOwnProperty("engineVersion")&&(n.engineVersion=t.engineVersion),t.messageProtocol!=null&&t.hasOwnProperty("messageProtocol")&&(n.messageProtocol=t.messageProtocol),t.serviceKey!=null&&t.hasOwnProperty("serviceKey")&&(n.serviceKey=t.serviceKey),t.sid!=null&&t.hasOwnProperty("sid")&&(typeof t.sid=="number"?n.sid=i.longs===String?String(t.sid):t.sid:n.sid=i.longs===String?r.Long.prototype.toString.call(t.sid):i.longs===Number?new r.LongBits(t.sid.low>>>0,t.sid.high>>>0).toNumber():t.sid),t.pid!=null&&t.hasOwnProperty("pid")&&(typeof t.pid=="number"?n.pid=i.longs===String?String(t.pid):t.pid:n.pid=i.longs===String?r.Long.prototype.toString.call(t.pid):i.longs===Number?new r.LongBits(t.pid.low>>>0,t.pid.high>>>0).toNumber():t.pid),t.from!=null&&t.hasOwnProperty("from")&&(typeof t.from=="number"?n.from=i.longs===String?String(t.from):t.from:n.from=i.longs===String?r.Long.prototype.toString.call(t.from):i.longs===Number?new r.LongBits(t.from.low>>>0,t.from.high>>>0).toNumber():t.from),t.guestAccessKey!=null&&t.hasOwnProperty("guestAccessKey")&&(n.guestAccessKey=t.guestAccessKey),t.epid!=null&&t.hasOwnProperty("epid")&&(typeof t.epid=="number"?n.epid=i.longs===String?String(t.epid):t.epid:n.epid=i.longs===String?r.Long.prototype.toString.call(t.epid):i.longs===Number?new r.LongBits(t.epid.low>>>0,t.epid.high>>>0).toNumber():t.epid),t.mobiAccessKey!=null&&t.hasOwnProperty("mobiAccessKey")&&(n.mobiAccessKey=t.mobiAccessKey),t.spmid!=null&&t.hasOwnProperty("spmid")&&(n.spmid=t.spmid),t.fromSpmid!=null&&t.hasOwnProperty("fromSpmid")&&(n.fromSpmid=t.fromSpmid),t.childLock!=null&&t.hasOwnProperty("childLock")&&(typeof t.childLock=="number"?n.childLock=i.longs===String?String(t.childLock):t.childLock:n.childLock=i.longs===String?r.Long.prototype.toString.call(t.childLock):i.longs===Number?new r.LongBits(t.childLock.low>>>0,t.childLock.high>>>0).toNumber():t.childLock),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.tv.interface_.v1.TvViewProgressReq"},e}(),c.TvViewProgressReply=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.videoGuide=u.bilibili.tv.interface_.v1.VideoGuide.decode(t,t.uint32());break}case 2:{o.chronos=u.bilibili.tv.interface_.v1.Chronos.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.tv.interface_.v1.TvViewProgressReply)return t;let i=new u.bilibili.tv.interface_.v1.TvViewProgressReply;if(t.videoGuide!=null){if(typeof t.videoGuide!="object")throw TypeError(".bilibili.tv.interface_.v1.TvViewProgressReply.videoGuide: object expected");i.videoGuide=u.bilibili.tv.interface_.v1.VideoGuide.fromObject(t.videoGuide)}if(t.chronos!=null){if(typeof t.chronos!="object")throw TypeError(".bilibili.tv.interface_.v1.TvViewProgressReply.chronos: object expected");i.chronos=u.bilibili.tv.interface_.v1.Chronos.fromObject(t.chronos)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.videoGuide=null,n.chronos=null),t.videoGuide!=null&&t.hasOwnProperty("videoGuide")&&(n.videoGuide=u.bilibili.tv.interface_.v1.VideoGuide.toObject(t.videoGuide,i)),t.chronos!=null&&t.hasOwnProperty("chronos")&&(n.chronos=u.bilibili.tv.interface_.v1.Chronos.toObject(t.chronos,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.tv.interface_.v1.TvViewProgressReply"},e}(),c.VideoGuide=function(){function e(l){if(this.commandDms=[],l)for(let t=Object.keys(l),i=0;i>>3){case 2:{o.commandDms&&o.commandDms.length||(o.commandDms=[]),o.commandDms.push(u.bilibili.tv.interface_.v1.CommandDm.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.tv.interface_.v1.VideoGuide)return t;let i=new u.bilibili.tv.interface_.v1.VideoGuide;if(t.commandDms){if(!Array.isArray(t.commandDms))throw TypeError(".bilibili.tv.interface_.v1.VideoGuide.commandDms: array expected");i.commandDms=[];for(let n=0;n>>3){case 1:{o.id=t.int64();break}case 2:{o.oid=t.int64();break}case 3:{o.mid=t.int64();break}case 4:{o.command=t.string();break}case 5:{o.content=t.string();break}case 6:{o.progress=t.int32();break}case 7:{o.ctime=t.string();break}case 8:{o.mtime=t.string();break}case 9:{o.extra=t.string();break}case 10:{o.idStr=t.string();break}case 11:{o.display=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.tv.interface_.v1.CommandDm)return t;let i=new u.bilibili.tv.interface_.v1.CommandDm;return t.id!=null&&(r.Long?(i.id=r.Long.fromValue(t.id)).unsigned=!1:typeof t.id=="string"?i.id=parseInt(t.id,10):typeof t.id=="number"?i.id=t.id:typeof t.id=="object"&&(i.id=new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber())),t.oid!=null&&(r.Long?(i.oid=r.Long.fromValue(t.oid)).unsigned=!1:typeof t.oid=="string"?i.oid=parseInt(t.oid,10):typeof t.oid=="number"?i.oid=t.oid:typeof t.oid=="object"&&(i.oid=new r.LongBits(t.oid.low>>>0,t.oid.high>>>0).toNumber())),t.mid!=null&&(r.Long?(i.mid=r.Long.fromValue(t.mid)).unsigned=!1:typeof t.mid=="string"?i.mid=parseInt(t.mid,10):typeof t.mid=="number"?i.mid=t.mid:typeof t.mid=="object"&&(i.mid=new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber())),t.command!=null&&(i.command=String(t.command)),t.content!=null&&(i.content=String(t.content)),t.progress!=null&&(i.progress=t.progress|0),t.ctime!=null&&(i.ctime=String(t.ctime)),t.mtime!=null&&(i.mtime=String(t.mtime)),t.extra!=null&&(i.extra=String(t.extra)),t.idStr!=null&&(i.idStr=String(t.idStr)),t.display!=null&&(r.Long?(i.display=r.Long.fromValue(t.display)).unsigned=!1:typeof t.display=="string"?i.display=parseInt(t.display,10):typeof t.display=="number"?i.display=t.display:typeof t.display=="object"&&(i.display=new r.LongBits(t.display.low>>>0,t.display.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.id=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.id=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.oid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.oid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.mid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mid=i.longs===String?"0":0;if(n.command="",n.content="",n.progress=0,n.ctime="",n.mtime="",n.extra="",n.idStr="",r.Long){let o=new r.Long(0,0,!1);n.display=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.display=i.longs===String?"0":0}return t.id!=null&&t.hasOwnProperty("id")&&(typeof t.id=="number"?n.id=i.longs===String?String(t.id):t.id:n.id=i.longs===String?r.Long.prototype.toString.call(t.id):i.longs===Number?new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber():t.id),t.oid!=null&&t.hasOwnProperty("oid")&&(typeof t.oid=="number"?n.oid=i.longs===String?String(t.oid):t.oid:n.oid=i.longs===String?r.Long.prototype.toString.call(t.oid):i.longs===Number?new r.LongBits(t.oid.low>>>0,t.oid.high>>>0).toNumber():t.oid),t.mid!=null&&t.hasOwnProperty("mid")&&(typeof t.mid=="number"?n.mid=i.longs===String?String(t.mid):t.mid:n.mid=i.longs===String?r.Long.prototype.toString.call(t.mid):i.longs===Number?new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber():t.mid),t.command!=null&&t.hasOwnProperty("command")&&(n.command=t.command),t.content!=null&&t.hasOwnProperty("content")&&(n.content=t.content),t.progress!=null&&t.hasOwnProperty("progress")&&(n.progress=t.progress),t.ctime!=null&&t.hasOwnProperty("ctime")&&(n.ctime=t.ctime),t.mtime!=null&&t.hasOwnProperty("mtime")&&(n.mtime=t.mtime),t.extra!=null&&t.hasOwnProperty("extra")&&(n.extra=t.extra),t.idStr!=null&&t.hasOwnProperty("idStr")&&(n.idStr=t.idStr),t.display!=null&&t.hasOwnProperty("display")&&(typeof t.display=="number"?n.display=i.longs===String?String(t.display):t.display:n.display=i.longs===String?r.Long.prototype.toString.call(t.display):i.longs===Number?new r.LongBits(t.display.low>>>0,t.display.high>>>0).toNumber():t.display),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.tv.interface_.v1.CommandDm"},e}(),c.Chronos=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.md5=t.string();break}case 2:{o.file=t.string();break}case 3:{o.sign=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.tv.interface_.v1.Chronos)return t;let i=new u.bilibili.tv.interface_.v1.Chronos;return t.md5!=null&&(i.md5=String(t.md5)),t.file!=null&&(i.file=String(t.file)),t.sign!=null&&(i.sign=String(t.sign)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.md5="",n.file="",n.sign=""),t.md5!=null&&t.hasOwnProperty("md5")&&(n.md5=t.md5),t.file!=null&&t.hasOwnProperty("file")&&(n.file=t.file),t.sign!=null&&t.hasOwnProperty("sign")&&(n.sign=t.sign),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.tv.interface_.v1.Chronos"},e}(),c.CommandDmsOttReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.aid=t.int64();break}case 2:{o.cid=t.int64();break}case 3:{o.mid=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.tv.interface_.v1.CommandDmsOttReq)return t;let i=new u.bilibili.tv.interface_.v1.CommandDmsOttReq;return t.aid!=null&&(r.Long?(i.aid=r.Long.fromValue(t.aid)).unsigned=!1:typeof t.aid=="string"?i.aid=parseInt(t.aid,10):typeof t.aid=="number"?i.aid=t.aid:typeof t.aid=="object"&&(i.aid=new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber())),t.cid!=null&&(r.Long?(i.cid=r.Long.fromValue(t.cid)).unsigned=!1:typeof t.cid=="string"?i.cid=parseInt(t.cid,10):typeof t.cid=="number"?i.cid=t.cid:typeof t.cid=="object"&&(i.cid=new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber())),t.mid!=null&&(r.Long?(i.mid=r.Long.fromValue(t.mid)).unsigned=!1:typeof t.mid=="string"?i.mid=parseInt(t.mid,10):typeof t.mid=="number"?i.mid=t.mid:typeof t.mid=="object"&&(i.mid=new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.aid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.aid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.cid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.cid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.mid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mid=i.longs===String?"0":0}return t.aid!=null&&t.hasOwnProperty("aid")&&(typeof t.aid=="number"?n.aid=i.longs===String?String(t.aid):t.aid:n.aid=i.longs===String?r.Long.prototype.toString.call(t.aid):i.longs===Number?new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber():t.aid),t.cid!=null&&t.hasOwnProperty("cid")&&(typeof t.cid=="number"?n.cid=i.longs===String?String(t.cid):t.cid:n.cid=i.longs===String?r.Long.prototype.toString.call(t.cid):i.longs===Number?new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber():t.cid),t.mid!=null&&t.hasOwnProperty("mid")&&(typeof t.mid=="number"?n.mid=i.longs===String?String(t.mid):t.mid:n.mid=i.longs===String?r.Long.prototype.toString.call(t.mid):i.longs===Number?new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber():t.mid),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.tv.interface_.v1.CommandDmsOttReq"},e}(),c.CommandDmsOttReply=function(){function e(l){if(this.commandDmsOtt=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.commandDmsOtt&&o.commandDmsOtt.length||(o.commandDmsOtt=[]),o.commandDmsOtt.push(u.bilibili.tv.interface_.v1.CommandDmOtt.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.tv.interface_.v1.CommandDmsOttReply)return t;let i=new u.bilibili.tv.interface_.v1.CommandDmsOttReply;if(t.commandDmsOtt){if(!Array.isArray(t.commandDmsOtt))throw TypeError(".bilibili.tv.interface_.v1.CommandDmsOttReply.commandDmsOtt: array expected");i.commandDmsOtt=[];for(let n=0;n>>3){case 1:{o.id=t.int64();break}case 2:{o.oid=t.int64();break}case 3:{o.mid=t.int64();break}case 4:{o.type=t.int32();break}case 5:{o.command=t.string();break}case 6:{o.content=t.string();break}case 7:{o.state=t.int32();break}case 8:{o.progress=t.int32();break}case 9:{o.ctime=t.string();break}case 10:{o.mtime=t.string();break}case 11:{o.extra=t.string();break}case 12:{o.idStr=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.tv.interface_.v1.CommandDmOtt)return t;let i=new u.bilibili.tv.interface_.v1.CommandDmOtt;return t.id!=null&&(r.Long?(i.id=r.Long.fromValue(t.id)).unsigned=!1:typeof t.id=="string"?i.id=parseInt(t.id,10):typeof t.id=="number"?i.id=t.id:typeof t.id=="object"&&(i.id=new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber())),t.oid!=null&&(r.Long?(i.oid=r.Long.fromValue(t.oid)).unsigned=!1:typeof t.oid=="string"?i.oid=parseInt(t.oid,10):typeof t.oid=="number"?i.oid=t.oid:typeof t.oid=="object"&&(i.oid=new r.LongBits(t.oid.low>>>0,t.oid.high>>>0).toNumber())),t.mid!=null&&(r.Long?(i.mid=r.Long.fromValue(t.mid)).unsigned=!1:typeof t.mid=="string"?i.mid=parseInt(t.mid,10):typeof t.mid=="number"?i.mid=t.mid:typeof t.mid=="object"&&(i.mid=new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber())),t.type!=null&&(i.type=t.type|0),t.command!=null&&(i.command=String(t.command)),t.content!=null&&(i.content=String(t.content)),t.state!=null&&(i.state=t.state|0),t.progress!=null&&(i.progress=t.progress|0),t.ctime!=null&&(i.ctime=String(t.ctime)),t.mtime!=null&&(i.mtime=String(t.mtime)),t.extra!=null&&(i.extra=String(t.extra)),t.idStr!=null&&(i.idStr=String(t.idStr)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.id=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.id=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.oid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.oid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.mid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mid=i.longs===String?"0":0;n.type=0,n.command="",n.content="",n.state=0,n.progress=0,n.ctime="",n.mtime="",n.extra="",n.idStr=""}return t.id!=null&&t.hasOwnProperty("id")&&(typeof t.id=="number"?n.id=i.longs===String?String(t.id):t.id:n.id=i.longs===String?r.Long.prototype.toString.call(t.id):i.longs===Number?new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber():t.id),t.oid!=null&&t.hasOwnProperty("oid")&&(typeof t.oid=="number"?n.oid=i.longs===String?String(t.oid):t.oid:n.oid=i.longs===String?r.Long.prototype.toString.call(t.oid):i.longs===Number?new r.LongBits(t.oid.low>>>0,t.oid.high>>>0).toNumber():t.oid),t.mid!=null&&t.hasOwnProperty("mid")&&(typeof t.mid=="number"?n.mid=i.longs===String?String(t.mid):t.mid:n.mid=i.longs===String?r.Long.prototype.toString.call(t.mid):i.longs===Number?new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber():t.mid),t.type!=null&&t.hasOwnProperty("type")&&(n.type=t.type),t.command!=null&&t.hasOwnProperty("command")&&(n.command=t.command),t.content!=null&&t.hasOwnProperty("content")&&(n.content=t.content),t.state!=null&&t.hasOwnProperty("state")&&(n.state=t.state),t.progress!=null&&t.hasOwnProperty("progress")&&(n.progress=t.progress),t.ctime!=null&&t.hasOwnProperty("ctime")&&(n.ctime=t.ctime),t.mtime!=null&&t.hasOwnProperty("mtime")&&(n.mtime=t.mtime),t.extra!=null&&t.hasOwnProperty("extra")&&(n.extra=t.extra),t.idStr!=null&&t.hasOwnProperty("idStr")&&(n.idStr=t.idStr),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.tv.interface_.v1.CommandDmOtt"},e}(),c.DmSegMobileReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.pid=t.int64();break}case 2:{o.oid=t.int64();break}case 3:{o.type=t.int32();break}case 4:{o.segmentIndex=t.int64();break}case 5:{o.teenagersMode=t.int32();break}case 6:{o.from=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.tv.interface_.v1.DmSegMobileReq)return t;let i=new u.bilibili.tv.interface_.v1.DmSegMobileReq;return t.pid!=null&&(r.Long?(i.pid=r.Long.fromValue(t.pid)).unsigned=!1:typeof t.pid=="string"?i.pid=parseInt(t.pid,10):typeof t.pid=="number"?i.pid=t.pid:typeof t.pid=="object"&&(i.pid=new r.LongBits(t.pid.low>>>0,t.pid.high>>>0).toNumber())),t.oid!=null&&(r.Long?(i.oid=r.Long.fromValue(t.oid)).unsigned=!1:typeof t.oid=="string"?i.oid=parseInt(t.oid,10):typeof t.oid=="number"?i.oid=t.oid:typeof t.oid=="object"&&(i.oid=new r.LongBits(t.oid.low>>>0,t.oid.high>>>0).toNumber())),t.type!=null&&(i.type=t.type|0),t.segmentIndex!=null&&(r.Long?(i.segmentIndex=r.Long.fromValue(t.segmentIndex)).unsigned=!1:typeof t.segmentIndex=="string"?i.segmentIndex=parseInt(t.segmentIndex,10):typeof t.segmentIndex=="number"?i.segmentIndex=t.segmentIndex:typeof t.segmentIndex=="object"&&(i.segmentIndex=new r.LongBits(t.segmentIndex.low>>>0,t.segmentIndex.high>>>0).toNumber())),t.teenagersMode!=null&&(i.teenagersMode=t.teenagersMode|0),t.from!=null&&(r.Long?(i.from=r.Long.fromValue(t.from)).unsigned=!1:typeof t.from=="string"?i.from=parseInt(t.from,10):typeof t.from=="number"?i.from=t.from:typeof t.from=="object"&&(i.from=new r.LongBits(t.from.low>>>0,t.from.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.pid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.pid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.oid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.oid=i.longs===String?"0":0;if(n.type=0,r.Long){let o=new r.Long(0,0,!1);n.segmentIndex=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.segmentIndex=i.longs===String?"0":0;if(n.teenagersMode=0,r.Long){let o=new r.Long(0,0,!1);n.from=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.from=i.longs===String?"0":0}return t.pid!=null&&t.hasOwnProperty("pid")&&(typeof t.pid=="number"?n.pid=i.longs===String?String(t.pid):t.pid:n.pid=i.longs===String?r.Long.prototype.toString.call(t.pid):i.longs===Number?new r.LongBits(t.pid.low>>>0,t.pid.high>>>0).toNumber():t.pid),t.oid!=null&&t.hasOwnProperty("oid")&&(typeof t.oid=="number"?n.oid=i.longs===String?String(t.oid):t.oid:n.oid=i.longs===String?r.Long.prototype.toString.call(t.oid):i.longs===Number?new r.LongBits(t.oid.low>>>0,t.oid.high>>>0).toNumber():t.oid),t.type!=null&&t.hasOwnProperty("type")&&(n.type=t.type),t.segmentIndex!=null&&t.hasOwnProperty("segmentIndex")&&(typeof t.segmentIndex=="number"?n.segmentIndex=i.longs===String?String(t.segmentIndex):t.segmentIndex:n.segmentIndex=i.longs===String?r.Long.prototype.toString.call(t.segmentIndex):i.longs===Number?new r.LongBits(t.segmentIndex.low>>>0,t.segmentIndex.high>>>0).toNumber():t.segmentIndex),t.teenagersMode!=null&&t.hasOwnProperty("teenagersMode")&&(n.teenagersMode=t.teenagersMode),t.from!=null&&t.hasOwnProperty("from")&&(typeof t.from=="number"?n.from=i.longs===String?String(t.from):t.from:n.from=i.longs===String?r.Long.prototype.toString.call(t.from):i.longs===Number?new r.LongBits(t.from.low>>>0,t.from.high>>>0).toNumber():t.from),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.tv.interface_.v1.DmSegMobileReq"},e}(),c.DmSegMobileReply=function(){function e(l){if(this.elems=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.elems&&o.elems.length||(o.elems=[]),o.elems.push(u.bilibili.tv.interface_.v1.DanmakuElem.decode(t,t.uint32()));break}case 2:{o.state=t.int32();break}case 3:{o.aiFlag=u.bilibili.tv.interface_.v1.DanmakuAIFlag.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.tv.interface_.v1.DmSegMobileReply)return t;let i=new u.bilibili.tv.interface_.v1.DmSegMobileReply;if(t.elems){if(!Array.isArray(t.elems))throw TypeError(".bilibili.tv.interface_.v1.DmSegMobileReply.elems: array expected");i.elems=[];for(let n=0;n>>3){case 1:{o.pid=t.int64();break}case 2:{o.oid=t.int64();break}case 3:{o.type=t.int32();break}case 4:{o.spmid=t.string();break}case 5:{o.isHardBoot=t.int32();break}case 6:{o.from=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.tv.interface_.v1.DmViewReq)return t;let i=new u.bilibili.tv.interface_.v1.DmViewReq;return t.pid!=null&&(r.Long?(i.pid=r.Long.fromValue(t.pid)).unsigned=!1:typeof t.pid=="string"?i.pid=parseInt(t.pid,10):typeof t.pid=="number"?i.pid=t.pid:typeof t.pid=="object"&&(i.pid=new r.LongBits(t.pid.low>>>0,t.pid.high>>>0).toNumber())),t.oid!=null&&(r.Long?(i.oid=r.Long.fromValue(t.oid)).unsigned=!1:typeof t.oid=="string"?i.oid=parseInt(t.oid,10):typeof t.oid=="number"?i.oid=t.oid:typeof t.oid=="object"&&(i.oid=new r.LongBits(t.oid.low>>>0,t.oid.high>>>0).toNumber())),t.type!=null&&(i.type=t.type|0),t.spmid!=null&&(i.spmid=String(t.spmid)),t.isHardBoot!=null&&(i.isHardBoot=t.isHardBoot|0),t.from!=null&&(r.Long?(i.from=r.Long.fromValue(t.from)).unsigned=!1:typeof t.from=="string"?i.from=parseInt(t.from,10):typeof t.from=="number"?i.from=t.from:typeof t.from=="object"&&(i.from=new r.LongBits(t.from.low>>>0,t.from.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.pid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.pid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.oid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.oid=i.longs===String?"0":0;if(n.type=0,n.spmid="",n.isHardBoot=0,r.Long){let o=new r.Long(0,0,!1);n.from=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.from=i.longs===String?"0":0}return t.pid!=null&&t.hasOwnProperty("pid")&&(typeof t.pid=="number"?n.pid=i.longs===String?String(t.pid):t.pid:n.pid=i.longs===String?r.Long.prototype.toString.call(t.pid):i.longs===Number?new r.LongBits(t.pid.low>>>0,t.pid.high>>>0).toNumber():t.pid),t.oid!=null&&t.hasOwnProperty("oid")&&(typeof t.oid=="number"?n.oid=i.longs===String?String(t.oid):t.oid:n.oid=i.longs===String?r.Long.prototype.toString.call(t.oid):i.longs===Number?new r.LongBits(t.oid.low>>>0,t.oid.high>>>0).toNumber():t.oid),t.type!=null&&t.hasOwnProperty("type")&&(n.type=t.type),t.spmid!=null&&t.hasOwnProperty("spmid")&&(n.spmid=t.spmid),t.isHardBoot!=null&&t.hasOwnProperty("isHardBoot")&&(n.isHardBoot=t.isHardBoot),t.from!=null&&t.hasOwnProperty("from")&&(typeof t.from=="number"?n.from=i.longs===String?String(t.from):t.from:n.from=i.longs===String?r.Long.prototype.toString.call(t.from):i.longs===Number?new r.LongBits(t.from.low>>>0,t.from.high>>>0).toNumber():t.from),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.tv.interface_.v1.DmViewReq"},e}(),c.DmViewReply=function(){function e(l){if(this.specialDms=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.closed=t.bool();break}case 2:{o.mask=u.bilibili.tv.interface_.v1.VideoMask.decode(t,t.uint32());break}case 3:{o.subtitle=u.bilibili.tv.interface_.v1.VideoSubtitle.decode(t,t.uint32());break}case 4:{o.specialDms&&o.specialDms.length||(o.specialDms=[]),o.specialDms.push(t.string());break}case 5:{o.aiFlag=u.bilibili.tv.interface_.v1.DanmakuFlagConfig.decode(t,t.uint32());break}case 6:{o.playerConfig=u.bilibili.tv.interface_.v1.DanmuPlayerViewConfig.decode(t,t.uint32());break}case 7:{o.sendBoxStyle=t.int32();break}case 8:{o.allow=t.bool();break}case 9:{o.checkBox=t.bool();break}case 10:{o.checkBoxShowMsg=t.string();break}case 11:{o.textPlaceholder=t.string();break}case 12:{o.inputPlaceholder=t.string();break}case 13:{o.commandClose=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.tv.interface_.v1.DmViewReply)return t;let i=new u.bilibili.tv.interface_.v1.DmViewReply;if(t.closed!=null&&(i.closed=!!t.closed),t.mask!=null){if(typeof t.mask!="object")throw TypeError(".bilibili.tv.interface_.v1.DmViewReply.mask: object expected");i.mask=u.bilibili.tv.interface_.v1.VideoMask.fromObject(t.mask)}if(t.subtitle!=null){if(typeof t.subtitle!="object")throw TypeError(".bilibili.tv.interface_.v1.DmViewReply.subtitle: object expected");i.subtitle=u.bilibili.tv.interface_.v1.VideoSubtitle.fromObject(t.subtitle)}if(t.specialDms){if(!Array.isArray(t.specialDms))throw TypeError(".bilibili.tv.interface_.v1.DmViewReply.specialDms: array expected");i.specialDms=[];for(let n=0;n>>3){case 1:{o.cid=t.int64();break}case 2:{o.plat=t.int32();break}case 3:{o.fps=t.int32();break}case 4:{o.time=t.int64();break}case 5:{o.maskUrl=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.tv.interface_.v1.VideoMask)return t;let i=new u.bilibili.tv.interface_.v1.VideoMask;return t.cid!=null&&(r.Long?(i.cid=r.Long.fromValue(t.cid)).unsigned=!1:typeof t.cid=="string"?i.cid=parseInt(t.cid,10):typeof t.cid=="number"?i.cid=t.cid:typeof t.cid=="object"&&(i.cid=new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber())),t.plat!=null&&(i.plat=t.plat|0),t.fps!=null&&(i.fps=t.fps|0),t.time!=null&&(r.Long?(i.time=r.Long.fromValue(t.time)).unsigned=!1:typeof t.time=="string"?i.time=parseInt(t.time,10):typeof t.time=="number"?i.time=t.time:typeof t.time=="object"&&(i.time=new r.LongBits(t.time.low>>>0,t.time.high>>>0).toNumber())),t.maskUrl!=null&&(i.maskUrl=String(t.maskUrl)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.cid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.cid=i.longs===String?"0":0;if(n.plat=0,n.fps=0,r.Long){let o=new r.Long(0,0,!1);n.time=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.time=i.longs===String?"0":0;n.maskUrl=""}return t.cid!=null&&t.hasOwnProperty("cid")&&(typeof t.cid=="number"?n.cid=i.longs===String?String(t.cid):t.cid:n.cid=i.longs===String?r.Long.prototype.toString.call(t.cid):i.longs===Number?new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber():t.cid),t.plat!=null&&t.hasOwnProperty("plat")&&(n.plat=t.plat),t.fps!=null&&t.hasOwnProperty("fps")&&(n.fps=t.fps),t.time!=null&&t.hasOwnProperty("time")&&(typeof t.time=="number"?n.time=i.longs===String?String(t.time):t.time:n.time=i.longs===String?r.Long.prototype.toString.call(t.time):i.longs===Number?new r.LongBits(t.time.low>>>0,t.time.high>>>0).toNumber():t.time),t.maskUrl!=null&&t.hasOwnProperty("maskUrl")&&(n.maskUrl=t.maskUrl),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.tv.interface_.v1.VideoMask"},e}(),c.VideoSubtitle=function(){function e(l){if(this.subtitles=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.lan=t.string();break}case 2:{o.lanDoc=t.string();break}case 3:{o.subtitles&&o.subtitles.length||(o.subtitles=[]),o.subtitles.push(u.bilibili.tv.interface_.v1.SubtitleItem.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.tv.interface_.v1.VideoSubtitle)return t;let i=new u.bilibili.tv.interface_.v1.VideoSubtitle;if(t.lan!=null&&(i.lan=String(t.lan)),t.lanDoc!=null&&(i.lanDoc=String(t.lanDoc)),t.subtitles){if(!Array.isArray(t.subtitles))throw TypeError(".bilibili.tv.interface_.v1.VideoSubtitle.subtitles: array expected");i.subtitles=[];for(let n=0;n>>3){case 1:{o.id=t.int64();break}case 2:{o.idStr=t.string();break}case 3:{o.lan=t.string();break}case 4:{o.lanDoc=t.string();break}case 5:{o.subtitleUrl=t.string();break}case 6:{o.author=u.bilibili.tv.interface_.v1.UserInfo.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.tv.interface_.v1.SubtitleItem)return t;let i=new u.bilibili.tv.interface_.v1.SubtitleItem;if(t.id!=null&&(r.Long?(i.id=r.Long.fromValue(t.id)).unsigned=!1:typeof t.id=="string"?i.id=parseInt(t.id,10):typeof t.id=="number"?i.id=t.id:typeof t.id=="object"&&(i.id=new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber())),t.idStr!=null&&(i.idStr=String(t.idStr)),t.lan!=null&&(i.lan=String(t.lan)),t.lanDoc!=null&&(i.lanDoc=String(t.lanDoc)),t.subtitleUrl!=null&&(i.subtitleUrl=String(t.subtitleUrl)),t.author!=null){if(typeof t.author!="object")throw TypeError(".bilibili.tv.interface_.v1.SubtitleItem.author: object expected");i.author=u.bilibili.tv.interface_.v1.UserInfo.fromObject(t.author)}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.id=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.id=i.longs===String?"0":0;n.idStr="",n.lan="",n.lanDoc="",n.subtitleUrl="",n.author=null}return t.id!=null&&t.hasOwnProperty("id")&&(typeof t.id=="number"?n.id=i.longs===String?String(t.id):t.id:n.id=i.longs===String?r.Long.prototype.toString.call(t.id):i.longs===Number?new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber():t.id),t.idStr!=null&&t.hasOwnProperty("idStr")&&(n.idStr=t.idStr),t.lan!=null&&t.hasOwnProperty("lan")&&(n.lan=t.lan),t.lanDoc!=null&&t.hasOwnProperty("lanDoc")&&(n.lanDoc=t.lanDoc),t.subtitleUrl!=null&&t.hasOwnProperty("subtitleUrl")&&(n.subtitleUrl=t.subtitleUrl),t.author!=null&&t.hasOwnProperty("author")&&(n.author=u.bilibili.tv.interface_.v1.UserInfo.toObject(t.author,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.tv.interface_.v1.SubtitleItem"},e}(),c.UserInfo=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.mid=t.int64();break}case 2:{o.name=t.string();break}case 3:{o.sex=t.string();break}case 4:{o.face=t.string();break}case 5:{o.sign=t.string();break}case 6:{o.rank=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.tv.interface_.v1.UserInfo)return t;let i=new u.bilibili.tv.interface_.v1.UserInfo;return t.mid!=null&&(r.Long?(i.mid=r.Long.fromValue(t.mid)).unsigned=!1:typeof t.mid=="string"?i.mid=parseInt(t.mid,10):typeof t.mid=="number"?i.mid=t.mid:typeof t.mid=="object"&&(i.mid=new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber())),t.name!=null&&(i.name=String(t.name)),t.sex!=null&&(i.sex=String(t.sex)),t.face!=null&&(i.face=String(t.face)),t.sign!=null&&(i.sign=String(t.sign)),t.rank!=null&&(i.rank=t.rank|0),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.mid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mid=i.longs===String?"0":0;n.name="",n.sex="",n.face="",n.sign="",n.rank=0}return t.mid!=null&&t.hasOwnProperty("mid")&&(typeof t.mid=="number"?n.mid=i.longs===String?String(t.mid):t.mid:n.mid=i.longs===String?r.Long.prototype.toString.call(t.mid):i.longs===Number?new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber():t.mid),t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),t.sex!=null&&t.hasOwnProperty("sex")&&(n.sex=t.sex),t.face!=null&&t.hasOwnProperty("face")&&(n.face=t.face),t.sign!=null&&t.hasOwnProperty("sign")&&(n.sign=t.sign),t.rank!=null&&t.hasOwnProperty("rank")&&(n.rank=t.rank),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.tv.interface_.v1.UserInfo"},e}(),c.DanmakuElem=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.id=t.int64();break}case 2:{o.progress=t.int32();break}case 3:{o.mode=t.int32();break}case 4:{o.fontsize=t.int32();break}case 5:{o.color=t.uint32();break}case 6:{o.midHash=t.string();break}case 7:{o.content=t.string();break}case 8:{o.ctime=t.int64();break}case 9:{o.weight=t.int32();break}case 10:{o.action=t.string();break}case 11:{o.pool=t.int32();break}case 12:{o.idStr=t.string();break}case 13:{o.attr=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.tv.interface_.v1.DanmakuElem)return t;let i=new u.bilibili.tv.interface_.v1.DanmakuElem;return t.id!=null&&(r.Long?(i.id=r.Long.fromValue(t.id)).unsigned=!1:typeof t.id=="string"?i.id=parseInt(t.id,10):typeof t.id=="number"?i.id=t.id:typeof t.id=="object"&&(i.id=new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber())),t.progress!=null&&(i.progress=t.progress|0),t.mode!=null&&(i.mode=t.mode|0),t.fontsize!=null&&(i.fontsize=t.fontsize|0),t.color!=null&&(i.color=t.color>>>0),t.midHash!=null&&(i.midHash=String(t.midHash)),t.content!=null&&(i.content=String(t.content)),t.ctime!=null&&(r.Long?(i.ctime=r.Long.fromValue(t.ctime)).unsigned=!1:typeof t.ctime=="string"?i.ctime=parseInt(t.ctime,10):typeof t.ctime=="number"?i.ctime=t.ctime:typeof t.ctime=="object"&&(i.ctime=new r.LongBits(t.ctime.low>>>0,t.ctime.high>>>0).toNumber())),t.weight!=null&&(i.weight=t.weight|0),t.action!=null&&(i.action=String(t.action)),t.pool!=null&&(i.pool=t.pool|0),t.idStr!=null&&(i.idStr=String(t.idStr)),t.attr!=null&&(i.attr=t.attr|0),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.id=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.id=i.longs===String?"0":0;if(n.progress=0,n.mode=0,n.fontsize=0,n.color=0,n.midHash="",n.content="",r.Long){let o=new r.Long(0,0,!1);n.ctime=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.ctime=i.longs===String?"0":0;n.weight=0,n.action="",n.pool=0,n.idStr="",n.attr=0}return t.id!=null&&t.hasOwnProperty("id")&&(typeof t.id=="number"?n.id=i.longs===String?String(t.id):t.id:n.id=i.longs===String?r.Long.prototype.toString.call(t.id):i.longs===Number?new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber():t.id),t.progress!=null&&t.hasOwnProperty("progress")&&(n.progress=t.progress),t.mode!=null&&t.hasOwnProperty("mode")&&(n.mode=t.mode),t.fontsize!=null&&t.hasOwnProperty("fontsize")&&(n.fontsize=t.fontsize),t.color!=null&&t.hasOwnProperty("color")&&(n.color=t.color),t.midHash!=null&&t.hasOwnProperty("midHash")&&(n.midHash=t.midHash),t.content!=null&&t.hasOwnProperty("content")&&(n.content=t.content),t.ctime!=null&&t.hasOwnProperty("ctime")&&(typeof t.ctime=="number"?n.ctime=i.longs===String?String(t.ctime):t.ctime:n.ctime=i.longs===String?r.Long.prototype.toString.call(t.ctime):i.longs===Number?new r.LongBits(t.ctime.low>>>0,t.ctime.high>>>0).toNumber():t.ctime),t.weight!=null&&t.hasOwnProperty("weight")&&(n.weight=t.weight),t.action!=null&&t.hasOwnProperty("action")&&(n.action=t.action),t.pool!=null&&t.hasOwnProperty("pool")&&(n.pool=t.pool),t.idStr!=null&&t.hasOwnProperty("idStr")&&(n.idStr=t.idStr),t.attr!=null&&t.hasOwnProperty("attr")&&(n.attr=t.attr),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.tv.interface_.v1.DanmakuElem"},e}(),c.DanmakuFlag=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.dmid=t.int64();break}case 2:{o.flag=t.uint32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.tv.interface_.v1.DanmakuFlag)return t;let i=new u.bilibili.tv.interface_.v1.DanmakuFlag;return t.dmid!=null&&(r.Long?(i.dmid=r.Long.fromValue(t.dmid)).unsigned=!1:typeof t.dmid=="string"?i.dmid=parseInt(t.dmid,10):typeof t.dmid=="number"?i.dmid=t.dmid:typeof t.dmid=="object"&&(i.dmid=new r.LongBits(t.dmid.low>>>0,t.dmid.high>>>0).toNumber())),t.flag!=null&&(i.flag=t.flag>>>0),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.dmid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.dmid=i.longs===String?"0":0;n.flag=0}return t.dmid!=null&&t.hasOwnProperty("dmid")&&(typeof t.dmid=="number"?n.dmid=i.longs===String?String(t.dmid):t.dmid:n.dmid=i.longs===String?r.Long.prototype.toString.call(t.dmid):i.longs===Number?new r.LongBits(t.dmid.low>>>0,t.dmid.high>>>0).toNumber():t.dmid),t.flag!=null&&t.hasOwnProperty("flag")&&(n.flag=t.flag),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.tv.interface_.v1.DanmakuFlag"},e}(),c.DanmakuFlagConfig=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.recFlag=t.int32();break}case 2:{o.recText=t.string();break}case 3:{o.recSwitch=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.tv.interface_.v1.DanmakuFlagConfig)return t;let i=new u.bilibili.tv.interface_.v1.DanmakuFlagConfig;return t.recFlag!=null&&(i.recFlag=t.recFlag|0),t.recText!=null&&(i.recText=String(t.recText)),t.recSwitch!=null&&(i.recSwitch=t.recSwitch|0),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.recFlag=0,n.recText="",n.recSwitch=0),t.recFlag!=null&&t.hasOwnProperty("recFlag")&&(n.recFlag=t.recFlag),t.recText!=null&&t.hasOwnProperty("recText")&&(n.recText=t.recText),t.recSwitch!=null&&t.hasOwnProperty("recSwitch")&&(n.recSwitch=t.recSwitch),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.tv.interface_.v1.DanmakuFlagConfig"},e}(),c.DanmakuAIFlag=function(){function e(l){if(this.dmFlags=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.dmFlags&&o.dmFlags.length||(o.dmFlags=[]),o.dmFlags.push(u.bilibili.tv.interface_.v1.DanmakuFlag.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.tv.interface_.v1.DanmakuAIFlag)return t;let i=new u.bilibili.tv.interface_.v1.DanmakuAIFlag;if(t.dmFlags){if(!Array.isArray(t.dmFlags))throw TypeError(".bilibili.tv.interface_.v1.DanmakuAIFlag.dmFlags: array expected");i.dmFlags=[];for(let n=0;n>>3){case 1:{o.danmukuDefaultPlayerConfig=u.bilibili.tv.interface_.v1.DanmuDefaultPlayerConfig.decode(t,t.uint32());break}case 2:{o.danmukuPlayerConfig=u.bilibili.tv.interface_.v1.DanmuPlayerConfig.decode(t,t.uint32());break}case 3:{o.danmukuPlayerDynamicConfig&&o.danmukuPlayerDynamicConfig.length||(o.danmukuPlayerDynamicConfig=[]),o.danmukuPlayerDynamicConfig.push(u.bilibili.tv.interface_.v1.DanmuPlayerDynamicConfig.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.tv.interface_.v1.DanmuPlayerViewConfig)return t;let i=new u.bilibili.tv.interface_.v1.DanmuPlayerViewConfig;if(t.danmukuDefaultPlayerConfig!=null){if(typeof t.danmukuDefaultPlayerConfig!="object")throw TypeError(".bilibili.tv.interface_.v1.DanmuPlayerViewConfig.danmukuDefaultPlayerConfig: object expected");i.danmukuDefaultPlayerConfig=u.bilibili.tv.interface_.v1.DanmuDefaultPlayerConfig.fromObject(t.danmukuDefaultPlayerConfig)}if(t.danmukuPlayerConfig!=null){if(typeof t.danmukuPlayerConfig!="object")throw TypeError(".bilibili.tv.interface_.v1.DanmuPlayerViewConfig.danmukuPlayerConfig: object expected");i.danmukuPlayerConfig=u.bilibili.tv.interface_.v1.DanmuPlayerConfig.fromObject(t.danmukuPlayerConfig)}if(t.danmukuPlayerDynamicConfig){if(!Array.isArray(t.danmukuPlayerDynamicConfig))throw TypeError(".bilibili.tv.interface_.v1.DanmuPlayerViewConfig.danmukuPlayerDynamicConfig: array expected");i.danmukuPlayerDynamicConfig=[];for(let n=0;n>>3){case 1:{o.playerDanmakuUseDefaultConfig=t.bool();break}case 4:{o.playerDanmakuAiRecommendedSwitch=t.bool();break}case 5:{o.playerDanmakuAiRecommendedLevel=t.int32();break}case 6:{o.playerDanmakuBlocktop=t.bool();break}case 7:{o.playerDanmakuBlockscroll=t.bool();break}case 8:{o.playerDanmakuBlockbottom=t.bool();break}case 9:{o.playerDanmakuBlockcolorful=t.bool();break}case 10:{o.playerDanmakuBlockrepeat=t.bool();break}case 11:{o.playerDanmakuBlockspecial=t.bool();break}case 12:{o.playerDanmakuOpacity=t.float();break}case 13:{o.playerDanmakuScalingfactor=t.float();break}case 14:{o.playerDanmakuDomain=t.float();break}case 15:{o.playerDanmakuSpeed=t.int32();break}case 16:{o.inlinePlayerDanmakuSwitch=t.bool();break}case 17:{o.playerDanmukuTopDistance=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.tv.interface_.v1.DanmuDefaultPlayerConfig)return t;let i=new u.bilibili.tv.interface_.v1.DanmuDefaultPlayerConfig;return t.playerDanmakuUseDefaultConfig!=null&&(i.playerDanmakuUseDefaultConfig=!!t.playerDanmakuUseDefaultConfig),t.playerDanmakuAiRecommendedSwitch!=null&&(i.playerDanmakuAiRecommendedSwitch=!!t.playerDanmakuAiRecommendedSwitch),t.playerDanmakuAiRecommendedLevel!=null&&(i.playerDanmakuAiRecommendedLevel=t.playerDanmakuAiRecommendedLevel|0),t.playerDanmakuBlocktop!=null&&(i.playerDanmakuBlocktop=!!t.playerDanmakuBlocktop),t.playerDanmakuBlockscroll!=null&&(i.playerDanmakuBlockscroll=!!t.playerDanmakuBlockscroll),t.playerDanmakuBlockbottom!=null&&(i.playerDanmakuBlockbottom=!!t.playerDanmakuBlockbottom),t.playerDanmakuBlockcolorful!=null&&(i.playerDanmakuBlockcolorful=!!t.playerDanmakuBlockcolorful),t.playerDanmakuBlockrepeat!=null&&(i.playerDanmakuBlockrepeat=!!t.playerDanmakuBlockrepeat),t.playerDanmakuBlockspecial!=null&&(i.playerDanmakuBlockspecial=!!t.playerDanmakuBlockspecial),t.playerDanmakuOpacity!=null&&(i.playerDanmakuOpacity=Number(t.playerDanmakuOpacity)),t.playerDanmakuScalingfactor!=null&&(i.playerDanmakuScalingfactor=Number(t.playerDanmakuScalingfactor)),t.playerDanmakuDomain!=null&&(i.playerDanmakuDomain=Number(t.playerDanmakuDomain)),t.playerDanmakuSpeed!=null&&(i.playerDanmakuSpeed=t.playerDanmakuSpeed|0),t.inlinePlayerDanmakuSwitch!=null&&(i.inlinePlayerDanmakuSwitch=!!t.inlinePlayerDanmakuSwitch),t.playerDanmukuTopDistance!=null&&(i.playerDanmukuTopDistance=t.playerDanmukuTopDistance|0),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.playerDanmakuUseDefaultConfig=!1,n.playerDanmakuAiRecommendedSwitch=!1,n.playerDanmakuAiRecommendedLevel=0,n.playerDanmakuBlocktop=!1,n.playerDanmakuBlockscroll=!1,n.playerDanmakuBlockbottom=!1,n.playerDanmakuBlockcolorful=!1,n.playerDanmakuBlockrepeat=!1,n.playerDanmakuBlockspecial=!1,n.playerDanmakuOpacity=0,n.playerDanmakuScalingfactor=0,n.playerDanmakuDomain=0,n.playerDanmakuSpeed=0,n.inlinePlayerDanmakuSwitch=!1,n.playerDanmukuTopDistance=0),t.playerDanmakuUseDefaultConfig!=null&&t.hasOwnProperty("playerDanmakuUseDefaultConfig")&&(n.playerDanmakuUseDefaultConfig=t.playerDanmakuUseDefaultConfig),t.playerDanmakuAiRecommendedSwitch!=null&&t.hasOwnProperty("playerDanmakuAiRecommendedSwitch")&&(n.playerDanmakuAiRecommendedSwitch=t.playerDanmakuAiRecommendedSwitch),t.playerDanmakuAiRecommendedLevel!=null&&t.hasOwnProperty("playerDanmakuAiRecommendedLevel")&&(n.playerDanmakuAiRecommendedLevel=t.playerDanmakuAiRecommendedLevel),t.playerDanmakuBlocktop!=null&&t.hasOwnProperty("playerDanmakuBlocktop")&&(n.playerDanmakuBlocktop=t.playerDanmakuBlocktop),t.playerDanmakuBlockscroll!=null&&t.hasOwnProperty("playerDanmakuBlockscroll")&&(n.playerDanmakuBlockscroll=t.playerDanmakuBlockscroll),t.playerDanmakuBlockbottom!=null&&t.hasOwnProperty("playerDanmakuBlockbottom")&&(n.playerDanmakuBlockbottom=t.playerDanmakuBlockbottom),t.playerDanmakuBlockcolorful!=null&&t.hasOwnProperty("playerDanmakuBlockcolorful")&&(n.playerDanmakuBlockcolorful=t.playerDanmakuBlockcolorful),t.playerDanmakuBlockrepeat!=null&&t.hasOwnProperty("playerDanmakuBlockrepeat")&&(n.playerDanmakuBlockrepeat=t.playerDanmakuBlockrepeat),t.playerDanmakuBlockspecial!=null&&t.hasOwnProperty("playerDanmakuBlockspecial")&&(n.playerDanmakuBlockspecial=t.playerDanmakuBlockspecial),t.playerDanmakuOpacity!=null&&t.hasOwnProperty("playerDanmakuOpacity")&&(n.playerDanmakuOpacity=i.json&&!isFinite(t.playerDanmakuOpacity)?String(t.playerDanmakuOpacity):t.playerDanmakuOpacity),t.playerDanmakuScalingfactor!=null&&t.hasOwnProperty("playerDanmakuScalingfactor")&&(n.playerDanmakuScalingfactor=i.json&&!isFinite(t.playerDanmakuScalingfactor)?String(t.playerDanmakuScalingfactor):t.playerDanmakuScalingfactor),t.playerDanmakuDomain!=null&&t.hasOwnProperty("playerDanmakuDomain")&&(n.playerDanmakuDomain=i.json&&!isFinite(t.playerDanmakuDomain)?String(t.playerDanmakuDomain):t.playerDanmakuDomain),t.playerDanmakuSpeed!=null&&t.hasOwnProperty("playerDanmakuSpeed")&&(n.playerDanmakuSpeed=t.playerDanmakuSpeed),t.inlinePlayerDanmakuSwitch!=null&&t.hasOwnProperty("inlinePlayerDanmakuSwitch")&&(n.inlinePlayerDanmakuSwitch=t.inlinePlayerDanmakuSwitch),t.playerDanmukuTopDistance!=null&&t.hasOwnProperty("playerDanmukuTopDistance")&&(n.playerDanmukuTopDistance=t.playerDanmukuTopDistance),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.tv.interface_.v1.DanmuDefaultPlayerConfig"},e}(),c.DanmuPlayerConfig=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.playerDanmakuSwitch=t.bool();break}case 2:{o.playerDanmakuSwitchSave=t.bool();break}case 3:{o.playerDanmakuUseDefaultConfig=t.bool();break}case 4:{o.playerDanmakuAiRecommendedSwitch=t.bool();break}case 5:{o.playerDanmakuAiRecommendedLevel=t.int32();break}case 6:{o.playerDanmakuBlocktop=t.bool();break}case 7:{o.playerDanmakuBlockscroll=t.bool();break}case 8:{o.playerDanmakuBlockbottom=t.bool();break}case 9:{o.playerDanmakuBlockcolorful=t.bool();break}case 10:{o.playerDanmakuBlockrepeat=t.bool();break}case 11:{o.playerDanmakuBlockspecial=t.bool();break}case 12:{o.playerDanmakuOpacity=t.float();break}case 13:{o.playerDanmakuScalingfactor=t.float();break}case 14:{o.playerDanmakuDomain=t.float();break}case 15:{o.playerDanmakuSpeed=t.int32();break}case 16:{o.playerDanmakuEnableblocklist=t.bool();break}case 17:{o.inlinePlayerDanmakuSwitch=t.bool();break}case 18:{o.inlinePlayerDanmakuConfig=t.int32();break}case 19:{o.playerDanmukuTopDistance=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.tv.interface_.v1.DanmuPlayerConfig)return t;let i=new u.bilibili.tv.interface_.v1.DanmuPlayerConfig;return t.playerDanmakuSwitch!=null&&(i.playerDanmakuSwitch=!!t.playerDanmakuSwitch),t.playerDanmakuSwitchSave!=null&&(i.playerDanmakuSwitchSave=!!t.playerDanmakuSwitchSave),t.playerDanmakuUseDefaultConfig!=null&&(i.playerDanmakuUseDefaultConfig=!!t.playerDanmakuUseDefaultConfig),t.playerDanmakuAiRecommendedSwitch!=null&&(i.playerDanmakuAiRecommendedSwitch=!!t.playerDanmakuAiRecommendedSwitch),t.playerDanmakuAiRecommendedLevel!=null&&(i.playerDanmakuAiRecommendedLevel=t.playerDanmakuAiRecommendedLevel|0),t.playerDanmakuBlocktop!=null&&(i.playerDanmakuBlocktop=!!t.playerDanmakuBlocktop),t.playerDanmakuBlockscroll!=null&&(i.playerDanmakuBlockscroll=!!t.playerDanmakuBlockscroll),t.playerDanmakuBlockbottom!=null&&(i.playerDanmakuBlockbottom=!!t.playerDanmakuBlockbottom),t.playerDanmakuBlockcolorful!=null&&(i.playerDanmakuBlockcolorful=!!t.playerDanmakuBlockcolorful),t.playerDanmakuBlockrepeat!=null&&(i.playerDanmakuBlockrepeat=!!t.playerDanmakuBlockrepeat),t.playerDanmakuBlockspecial!=null&&(i.playerDanmakuBlockspecial=!!t.playerDanmakuBlockspecial),t.playerDanmakuOpacity!=null&&(i.playerDanmakuOpacity=Number(t.playerDanmakuOpacity)),t.playerDanmakuScalingfactor!=null&&(i.playerDanmakuScalingfactor=Number(t.playerDanmakuScalingfactor)),t.playerDanmakuDomain!=null&&(i.playerDanmakuDomain=Number(t.playerDanmakuDomain)),t.playerDanmakuSpeed!=null&&(i.playerDanmakuSpeed=t.playerDanmakuSpeed|0),t.playerDanmakuEnableblocklist!=null&&(i.playerDanmakuEnableblocklist=!!t.playerDanmakuEnableblocklist),t.inlinePlayerDanmakuSwitch!=null&&(i.inlinePlayerDanmakuSwitch=!!t.inlinePlayerDanmakuSwitch),t.inlinePlayerDanmakuConfig!=null&&(i.inlinePlayerDanmakuConfig=t.inlinePlayerDanmakuConfig|0),t.playerDanmukuTopDistance!=null&&(i.playerDanmukuTopDistance=t.playerDanmukuTopDistance|0),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.playerDanmakuSwitch=!1,n.playerDanmakuSwitchSave=!1,n.playerDanmakuUseDefaultConfig=!1,n.playerDanmakuAiRecommendedSwitch=!1,n.playerDanmakuAiRecommendedLevel=0,n.playerDanmakuBlocktop=!1,n.playerDanmakuBlockscroll=!1,n.playerDanmakuBlockbottom=!1,n.playerDanmakuBlockcolorful=!1,n.playerDanmakuBlockrepeat=!1,n.playerDanmakuBlockspecial=!1,n.playerDanmakuOpacity=0,n.playerDanmakuScalingfactor=0,n.playerDanmakuDomain=0,n.playerDanmakuSpeed=0,n.playerDanmakuEnableblocklist=!1,n.inlinePlayerDanmakuSwitch=!1,n.inlinePlayerDanmakuConfig=0,n.playerDanmukuTopDistance=0),t.playerDanmakuSwitch!=null&&t.hasOwnProperty("playerDanmakuSwitch")&&(n.playerDanmakuSwitch=t.playerDanmakuSwitch),t.playerDanmakuSwitchSave!=null&&t.hasOwnProperty("playerDanmakuSwitchSave")&&(n.playerDanmakuSwitchSave=t.playerDanmakuSwitchSave),t.playerDanmakuUseDefaultConfig!=null&&t.hasOwnProperty("playerDanmakuUseDefaultConfig")&&(n.playerDanmakuUseDefaultConfig=t.playerDanmakuUseDefaultConfig),t.playerDanmakuAiRecommendedSwitch!=null&&t.hasOwnProperty("playerDanmakuAiRecommendedSwitch")&&(n.playerDanmakuAiRecommendedSwitch=t.playerDanmakuAiRecommendedSwitch),t.playerDanmakuAiRecommendedLevel!=null&&t.hasOwnProperty("playerDanmakuAiRecommendedLevel")&&(n.playerDanmakuAiRecommendedLevel=t.playerDanmakuAiRecommendedLevel),t.playerDanmakuBlocktop!=null&&t.hasOwnProperty("playerDanmakuBlocktop")&&(n.playerDanmakuBlocktop=t.playerDanmakuBlocktop),t.playerDanmakuBlockscroll!=null&&t.hasOwnProperty("playerDanmakuBlockscroll")&&(n.playerDanmakuBlockscroll=t.playerDanmakuBlockscroll),t.playerDanmakuBlockbottom!=null&&t.hasOwnProperty("playerDanmakuBlockbottom")&&(n.playerDanmakuBlockbottom=t.playerDanmakuBlockbottom),t.playerDanmakuBlockcolorful!=null&&t.hasOwnProperty("playerDanmakuBlockcolorful")&&(n.playerDanmakuBlockcolorful=t.playerDanmakuBlockcolorful),t.playerDanmakuBlockrepeat!=null&&t.hasOwnProperty("playerDanmakuBlockrepeat")&&(n.playerDanmakuBlockrepeat=t.playerDanmakuBlockrepeat),t.playerDanmakuBlockspecial!=null&&t.hasOwnProperty("playerDanmakuBlockspecial")&&(n.playerDanmakuBlockspecial=t.playerDanmakuBlockspecial),t.playerDanmakuOpacity!=null&&t.hasOwnProperty("playerDanmakuOpacity")&&(n.playerDanmakuOpacity=i.json&&!isFinite(t.playerDanmakuOpacity)?String(t.playerDanmakuOpacity):t.playerDanmakuOpacity),t.playerDanmakuScalingfactor!=null&&t.hasOwnProperty("playerDanmakuScalingfactor")&&(n.playerDanmakuScalingfactor=i.json&&!isFinite(t.playerDanmakuScalingfactor)?String(t.playerDanmakuScalingfactor):t.playerDanmakuScalingfactor),t.playerDanmakuDomain!=null&&t.hasOwnProperty("playerDanmakuDomain")&&(n.playerDanmakuDomain=i.json&&!isFinite(t.playerDanmakuDomain)?String(t.playerDanmakuDomain):t.playerDanmakuDomain),t.playerDanmakuSpeed!=null&&t.hasOwnProperty("playerDanmakuSpeed")&&(n.playerDanmakuSpeed=t.playerDanmakuSpeed),t.playerDanmakuEnableblocklist!=null&&t.hasOwnProperty("playerDanmakuEnableblocklist")&&(n.playerDanmakuEnableblocklist=t.playerDanmakuEnableblocklist),t.inlinePlayerDanmakuSwitch!=null&&t.hasOwnProperty("inlinePlayerDanmakuSwitch")&&(n.inlinePlayerDanmakuSwitch=t.inlinePlayerDanmakuSwitch),t.inlinePlayerDanmakuConfig!=null&&t.hasOwnProperty("inlinePlayerDanmakuConfig")&&(n.inlinePlayerDanmakuConfig=t.inlinePlayerDanmakuConfig),t.playerDanmukuTopDistance!=null&&t.hasOwnProperty("playerDanmukuTopDistance")&&(n.playerDanmukuTopDistance=t.playerDanmukuTopDistance),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.tv.interface_.v1.DanmuPlayerConfig"},e}(),c.DanmuPlayerDynamicConfig=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.progress=t.int32();break}case 14:{o.playerDanmakuDomain=t.float();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.tv.interface_.v1.DanmuPlayerDynamicConfig)return t;let i=new u.bilibili.tv.interface_.v1.DanmuPlayerDynamicConfig;return t.progress!=null&&(i.progress=t.progress|0),t.playerDanmakuDomain!=null&&(i.playerDanmakuDomain=Number(t.playerDanmakuDomain)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.progress=0,n.playerDanmakuDomain=0),t.progress!=null&&t.hasOwnProperty("progress")&&(n.progress=t.progress),t.playerDanmakuDomain!=null&&t.hasOwnProperty("playerDanmakuDomain")&&(n.playerDanmakuDomain=i.json&&!isFinite(t.playerDanmakuDomain)?String(t.playerDanmakuDomain):t.playerDanmakuDomain),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.tv.interface_.v1.DanmuPlayerDynamicConfig"},e}(),c}(),p}(),d}(),O.vega=function(){let d={};return d.deneb=function(){let p={};return p.v1=function(){let c={};return c.VegaDenebRPC=function(){function e(l,t,i){b.rpc.Service.call(this,l,t,i)}return(e.prototype=Object.create(b.rpc.Service.prototype)).constructor=e,e.create=function(t,i,n){return new this(t,i,n)},Object.defineProperty(e.prototype.messagePulls=function l(t,i){return this.rpcCall(l,u.bilibili.vega.deneb.v1.MessagePullsReq,u.bilibili.vega.deneb.v1.MessagePullsReply,t,i)},"name",{value:"MessagePulls"}),e}(),c.MessagePullsReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.startSeqId=t.int64();break}case 2:{o.endSeqId=t.int64();break}case 3:{o.pn=t.int32();break}case 4:{o.ps=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.vega.deneb.v1.MessagePullsReq)return t;let i=new u.bilibili.vega.deneb.v1.MessagePullsReq;return t.startSeqId!=null&&(r.Long?(i.startSeqId=r.Long.fromValue(t.startSeqId)).unsigned=!1:typeof t.startSeqId=="string"?i.startSeqId=parseInt(t.startSeqId,10):typeof t.startSeqId=="number"?i.startSeqId=t.startSeqId:typeof t.startSeqId=="object"&&(i.startSeqId=new r.LongBits(t.startSeqId.low>>>0,t.startSeqId.high>>>0).toNumber())),t.endSeqId!=null&&(r.Long?(i.endSeqId=r.Long.fromValue(t.endSeqId)).unsigned=!1:typeof t.endSeqId=="string"?i.endSeqId=parseInt(t.endSeqId,10):typeof t.endSeqId=="number"?i.endSeqId=t.endSeqId:typeof t.endSeqId=="object"&&(i.endSeqId=new r.LongBits(t.endSeqId.low>>>0,t.endSeqId.high>>>0).toNumber())),t.pn!=null&&(i.pn=t.pn|0),t.ps!=null&&(i.ps=t.ps|0),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.startSeqId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.startSeqId=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.endSeqId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.endSeqId=i.longs===String?"0":0;n.pn=0,n.ps=0}return t.startSeqId!=null&&t.hasOwnProperty("startSeqId")&&(typeof t.startSeqId=="number"?n.startSeqId=i.longs===String?String(t.startSeqId):t.startSeqId:n.startSeqId=i.longs===String?r.Long.prototype.toString.call(t.startSeqId):i.longs===Number?new r.LongBits(t.startSeqId.low>>>0,t.startSeqId.high>>>0).toNumber():t.startSeqId),t.endSeqId!=null&&t.hasOwnProperty("endSeqId")&&(typeof t.endSeqId=="number"?n.endSeqId=i.longs===String?String(t.endSeqId):t.endSeqId:n.endSeqId=i.longs===String?r.Long.prototype.toString.call(t.endSeqId):i.longs===Number?new r.LongBits(t.endSeqId.low>>>0,t.endSeqId.high>>>0).toNumber():t.endSeqId),t.pn!=null&&t.hasOwnProperty("pn")&&(n.pn=t.pn),t.ps!=null&&t.hasOwnProperty("ps")&&(n.ps=t.ps),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.vega.deneb.v1.MessagePullsReq"},e}(),c.MessagePullsReply=function(){function e(l){if(this.data=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.data&&o.data.length||(o.data=[]),o.data.push(u.google.protobuf.Any.decode(t,t.uint32()));break}case 2:{o.pn=t.int32();break}case 3:{o.ps=t.int32();break}case 4:{o.count=t.int64();break}case 5:{o.hasNext=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.vega.deneb.v1.MessagePullsReply)return t;let i=new u.bilibili.vega.deneb.v1.MessagePullsReply;if(t.data){if(!Array.isArray(t.data))throw TypeError(".bilibili.vega.deneb.v1.MessagePullsReply.data: array expected");i.data=[];for(let n=0;n>>0,t.count.high>>>0).toNumber())),t.hasNext!=null&&(i.hasNext=!!t.hasNext),i},e.toObject=function(t,i){i||(i={});let n={};if((i.arrays||i.defaults)&&(n.data=[]),i.defaults){if(n.pn=0,n.ps=0,r.Long){let o=new r.Long(0,0,!1);n.count=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.count=i.longs===String?"0":0;n.hasNext=!1}if(t.data&&t.data.length){n.data=[];for(let o=0;o>>0,t.count.high>>>0).toNumber():t.count),t.hasNext!=null&&t.hasOwnProperty("hasNext")&&(n.hasNext=t.hasNext),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.vega.deneb.v1.MessagePullsReply"},e}(),c}(),p}(),d}(),O.web=function(){let d={};return d.interface_=function(){let p={};return p.v1=function(){let c={};return c.WebInterface=function(){function e(l,t,i){b.rpc.Service.call(this,l,t,i)}return(e.prototype=Object.create(b.rpc.Service.prototype)).constructor=e,e.create=function(t,i,n){return new this(t,i,n)},Object.defineProperty(e.prototype.viewDetail=function l(t,i){return this.rpcCall(l,u.bilibili.web.interface_.v1.ViewDetailReq,u.bilibili.web.interface_.v1.ViewDetailReply,t,i)},"name",{value:"ViewDetail"}),Object.defineProperty(e.prototype.activitySeason=function l(t,i){return this.rpcCall(l,u.bilibili.web.interface_.v1.ActivitySeasonReq,u.bilibili.web.interface_.v1.ActivitySeasonReply,t,i)},"name",{value:"ActivitySeason"}),Object.defineProperty(e.prototype.clickActivitySeason=function l(t,i){return this.rpcCall(l,u.bilibili.web.interface_.v1.ClickActivitySeasonReq,u.bilibili.web.interface_.v1.NoReply,t,i)},"name",{value:"ClickActivitySeason"}),Object.defineProperty(e.prototype.activityArchive=function l(t,i){return this.rpcCall(l,u.bilibili.web.interface_.v1.ActivityArchiveReq,u.bilibili.web.interface_.v1.ActivityArchiveReply,t,i)},"name",{value:"ActivityArchive"}),Object.defineProperty(e.prototype.activityLiveTimeInfo=function l(t,i){return this.rpcCall(l,u.bilibili.web.interface_.v1.ActivityLiveTimeInfoReq,u.bilibili.web.interface_.v1.ActivityLiveTimeInfoReply,t,i)},"name",{value:"ActivityLiveTimeInfo"}),e}(),c.NoReply=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){default:t.skipType(a&7);break}}return o},e.fromObject=function(t){return t instanceof u.bilibili.web.interface_.v1.NoReply?t:new u.bilibili.web.interface_.v1.NoReply},e.toObject=function(){return{}},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.web.interface_.v1.NoReply"},e}(),c.ActivityLiveTimeInfoReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.activityKey=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.web.interface_.v1.ActivityLiveTimeInfoReq)return t;let i=new u.bilibili.web.interface_.v1.ActivityLiveTimeInfoReq;return t.activityKey!=null&&(i.activityKey=String(t.activityKey)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.activityKey=""),t.activityKey!=null&&t.hasOwnProperty("activityKey")&&(n.activityKey=t.activityKey),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.web.interface_.v1.ActivityLiveTimeInfoReq"},e}(),c.ActivityLiveTimeInfoReply=function(){function e(l){if(this.timeline=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.nowTime=t.int64();break}case 2:{o.startTime=t.int64();break}case 3:{o.endTime=t.int64();break}case 4:{o.timeline&&o.timeline.length||(o.timeline=[]),o.timeline.push(u.bilibili.web.interface_.v1.LiveTimeline.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.web.interface_.v1.ActivityLiveTimeInfoReply)return t;let i=new u.bilibili.web.interface_.v1.ActivityLiveTimeInfoReply;if(t.nowTime!=null&&(r.Long?(i.nowTime=r.Long.fromValue(t.nowTime)).unsigned=!1:typeof t.nowTime=="string"?i.nowTime=parseInt(t.nowTime,10):typeof t.nowTime=="number"?i.nowTime=t.nowTime:typeof t.nowTime=="object"&&(i.nowTime=new r.LongBits(t.nowTime.low>>>0,t.nowTime.high>>>0).toNumber())),t.startTime!=null&&(r.Long?(i.startTime=r.Long.fromValue(t.startTime)).unsigned=!1:typeof t.startTime=="string"?i.startTime=parseInt(t.startTime,10):typeof t.startTime=="number"?i.startTime=t.startTime:typeof t.startTime=="object"&&(i.startTime=new r.LongBits(t.startTime.low>>>0,t.startTime.high>>>0).toNumber())),t.endTime!=null&&(r.Long?(i.endTime=r.Long.fromValue(t.endTime)).unsigned=!1:typeof t.endTime=="string"?i.endTime=parseInt(t.endTime,10):typeof t.endTime=="number"?i.endTime=t.endTime:typeof t.endTime=="object"&&(i.endTime=new r.LongBits(t.endTime.low>>>0,t.endTime.high>>>0).toNumber())),t.timeline){if(!Array.isArray(t.timeline))throw TypeError(".bilibili.web.interface_.v1.ActivityLiveTimeInfoReply.timeline: array expected");i.timeline=[];for(let n=0;n>>0,t.nowTime.high>>>0).toNumber():t.nowTime),t.startTime!=null&&t.hasOwnProperty("startTime")&&(typeof t.startTime=="number"?n.startTime=i.longs===String?String(t.startTime):t.startTime:n.startTime=i.longs===String?r.Long.prototype.toString.call(t.startTime):i.longs===Number?new r.LongBits(t.startTime.low>>>0,t.startTime.high>>>0).toNumber():t.startTime),t.endTime!=null&&t.hasOwnProperty("endTime")&&(typeof t.endTime=="number"?n.endTime=i.longs===String?String(t.endTime):t.endTime:n.endTime=i.longs===String?r.Long.prototype.toString.call(t.endTime):i.longs===Number?new r.LongBits(t.endTime.low>>>0,t.endTime.high>>>0).toNumber():t.endTime),t.timeline&&t.timeline.length){n.timeline=[];for(let o=0;o>>3){case 1:{o.aid=t.int64();break}case 2:{o.bvid=t.string();break}case 3:{o.activityKey=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.web.interface_.v1.ActivityArchiveReq)return t;let i=new u.bilibili.web.interface_.v1.ActivityArchiveReq;return t.aid!=null&&(r.Long?(i.aid=r.Long.fromValue(t.aid)).unsigned=!1:typeof t.aid=="string"?i.aid=parseInt(t.aid,10):typeof t.aid=="number"?i.aid=t.aid:typeof t.aid=="object"&&(i.aid=new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber())),t.bvid!=null&&(i.bvid=String(t.bvid)),t.activityKey!=null&&(i.activityKey=String(t.activityKey)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.aid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.aid=i.longs===String?"0":0;n.bvid="",n.activityKey=""}return t.aid!=null&&t.hasOwnProperty("aid")&&(typeof t.aid=="number"?n.aid=i.longs===String?String(t.aid):t.aid:n.aid=i.longs===String?r.Long.prototype.toString.call(t.aid):i.longs===Number?new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber():t.aid),t.bvid!=null&&t.hasOwnProperty("bvid")&&(n.bvid=t.bvid),t.activityKey!=null&&t.hasOwnProperty("activityKey")&&(n.activityKey=t.activityKey),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.web.interface_.v1.ActivityArchiveReq"},e}(),c.ActivityArchiveReply=function(){function e(l){if(this.pages=[],this.staff=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.arc=u.bilibili.web.interface_.v1.Arc.decode(t,t.uint32());break}case 2:{o.bvid=t.string();break}case 3:{o.pages&&o.pages.length||(o.pages=[]),o.pages.push(u.bilibili.web.interface_.v1.Page.decode(t,t.uint32()));break}case 4:{o.reqUser=u.bilibili.web.interface_.v1.ReqUser.decode(t,t.uint32());break}case 5:{o.staff&&o.staff.length||(o.staff=[]),o.staff.push(u.bilibili.web.interface_.v1.Staff.decode(t,t.uint32()));break}case 6:{o.rightRelate=u.bilibili.web.interface_.v1.OperationRelate.decode(t,t.uint32());break}case 7:{o.bottomRelate=u.bilibili.web.interface_.v1.OperationRelate.decode(t,t.uint32());break}case 8:{o.disableShowUpInfo=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.web.interface_.v1.ActivityArchiveReply)return t;let i=new u.bilibili.web.interface_.v1.ActivityArchiveReply;if(t.arc!=null){if(typeof t.arc!="object")throw TypeError(".bilibili.web.interface_.v1.ActivityArchiveReply.arc: object expected");i.arc=u.bilibili.web.interface_.v1.Arc.fromObject(t.arc)}if(t.bvid!=null&&(i.bvid=String(t.bvid)),t.pages){if(!Array.isArray(t.pages))throw TypeError(".bilibili.web.interface_.v1.ActivityArchiveReply.pages: array expected");i.pages=[];for(let n=0;n>>3){case 1:{a.orderType=i.int32();break}case 2:{a.reserveParam=u.bilibili.web.interface_.v1.ReserveActivityParam.decode(i,i.uint32());break}case 3:{a.favParam=u.bilibili.web.interface_.v1.FavSeasonParam.decode(i,i.uint32());break}case 4:{a.jumpParam=u.bilibili.web.interface_.v1.JumpURLParam.decode(i,i.uint32());break}case 5:{a.spmid=i.string();break}case 6:{a.action=i.int64();break}default:i.skipType(y&7);break}}return a},e.fromObject=function(i){if(i instanceof u.bilibili.web.interface_.v1.ClickActivitySeasonReq)return i;let n=new u.bilibili.web.interface_.v1.ClickActivitySeasonReq;switch(i.orderType){default:if(typeof i.orderType=="number"){n.orderType=i.orderType;break}break;case"TypeNone":case 0:n.orderType=0;break;case"TypeOrderActivity":case 1:n.orderType=1;break;case"TypeFavSeason":case 2:n.orderType=2;break;case"TypeClick":case 3:n.orderType=3;break}if(i.reserveParam!=null){if(typeof i.reserveParam!="object")throw TypeError(".bilibili.web.interface_.v1.ClickActivitySeasonReq.reserveParam: object expected");n.reserveParam=u.bilibili.web.interface_.v1.ReserveActivityParam.fromObject(i.reserveParam)}if(i.favParam!=null){if(typeof i.favParam!="object")throw TypeError(".bilibili.web.interface_.v1.ClickActivitySeasonReq.favParam: object expected");n.favParam=u.bilibili.web.interface_.v1.FavSeasonParam.fromObject(i.favParam)}if(i.jumpParam!=null){if(typeof i.jumpParam!="object")throw TypeError(".bilibili.web.interface_.v1.ClickActivitySeasonReq.jumpParam: object expected");n.jumpParam=u.bilibili.web.interface_.v1.JumpURLParam.fromObject(i.jumpParam)}return i.spmid!=null&&(n.spmid=String(i.spmid)),i.action!=null&&(r.Long?(n.action=r.Long.fromValue(i.action)).unsigned=!1:typeof i.action=="string"?n.action=parseInt(i.action,10):typeof i.action=="number"?n.action=i.action:typeof i.action=="object"&&(n.action=new r.LongBits(i.action.low>>>0,i.action.high>>>0).toNumber())),n},e.toObject=function(i,n){n||(n={});let o={};if(n.defaults)if(o.orderType=n.enums===String?"TypeNone":0,o.spmid="",r.Long){let a=new r.Long(0,0,!1);o.action=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.action=n.longs===String?"0":0;return i.orderType!=null&&i.hasOwnProperty("orderType")&&(o.orderType=n.enums===String?u.bilibili.web.interface_.v1.OrderType[i.orderType]===void 0?i.orderType:u.bilibili.web.interface_.v1.OrderType[i.orderType]:i.orderType),i.reserveParam!=null&&i.hasOwnProperty("reserveParam")&&(o.reserveParam=u.bilibili.web.interface_.v1.ReserveActivityParam.toObject(i.reserveParam,n),n.oneofs&&(o.param="reserveParam")),i.favParam!=null&&i.hasOwnProperty("favParam")&&(o.favParam=u.bilibili.web.interface_.v1.FavSeasonParam.toObject(i.favParam,n),n.oneofs&&(o.param="favParam")),i.jumpParam!=null&&i.hasOwnProperty("jumpParam")&&(o.jumpParam=u.bilibili.web.interface_.v1.JumpURLParam.toObject(i.jumpParam,n),n.oneofs&&(o.param="jumpParam")),i.spmid!=null&&i.hasOwnProperty("spmid")&&(o.spmid=i.spmid),i.action!=null&&i.hasOwnProperty("action")&&(typeof i.action=="number"?o.action=n.longs===String?String(i.action):i.action:o.action=n.longs===String?r.Long.prototype.toString.call(i.action):n.longs===Number?new r.LongBits(i.action.low>>>0,i.action.high>>>0).toNumber():i.action),o},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.web.interface_.v1.ClickActivitySeasonReq"},e}(),c.ActivitySeasonReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.aid=t.int64();break}case 2:{o.bvid=t.string();break}case 3:{o.activityKey=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.web.interface_.v1.ActivitySeasonReq)return t;let i=new u.bilibili.web.interface_.v1.ActivitySeasonReq;return t.aid!=null&&(r.Long?(i.aid=r.Long.fromValue(t.aid)).unsigned=!1:typeof t.aid=="string"?i.aid=parseInt(t.aid,10):typeof t.aid=="number"?i.aid=t.aid:typeof t.aid=="object"&&(i.aid=new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber())),t.bvid!=null&&(i.bvid=String(t.bvid)),t.activityKey!=null&&(i.activityKey=String(t.activityKey)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.aid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.aid=i.longs===String?"0":0;n.bvid="",n.activityKey=""}return t.aid!=null&&t.hasOwnProperty("aid")&&(typeof t.aid=="number"?n.aid=i.longs===String?String(t.aid):t.aid:n.aid=i.longs===String?r.Long.prototype.toString.call(t.aid):i.longs===Number?new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber():t.aid),t.bvid!=null&&t.hasOwnProperty("bvid")&&(n.bvid=t.bvid),t.activityKey!=null&&t.hasOwnProperty("activityKey")&&(n.activityKey=t.activityKey),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.web.interface_.v1.ActivitySeasonReq"},e}(),c.ActivitySeasonReply=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.status=t.int32();break}case 2:{o.title=t.string();break}case 3:{o.live=u.bilibili.web.interface_.v1.ActivityLive.decode(t,t.uint32());break}case 4:{o.subscribe=u.bilibili.web.interface_.v1.ActivitySubscribe.decode(t,t.uint32());break}case 5:{o.game=u.bilibili.web.interface_.v1.ActivityGame.decode(t,t.uint32());break}case 6:{o.view=u.bilibili.web.interface_.v1.ActivityView.decode(t,t.uint32());break}case 7:{o.theme=u.bilibili.web.interface_.v1.ActivityTheme.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.web.interface_.v1.ActivitySeasonReply)return t;let i=new u.bilibili.web.interface_.v1.ActivitySeasonReply;switch(t.status){default:if(typeof t.status=="number"){i.status=t.status;break}break;case"StatusNone":case 0:i.status=0;break;case"StatusLive":case 1:i.status=1;break;case"StatusView":case 2:i.status=2;break}if(t.title!=null&&(i.title=String(t.title)),t.live!=null){if(typeof t.live!="object")throw TypeError(".bilibili.web.interface_.v1.ActivitySeasonReply.live: object expected");i.live=u.bilibili.web.interface_.v1.ActivityLive.fromObject(t.live)}if(t.subscribe!=null){if(typeof t.subscribe!="object")throw TypeError(".bilibili.web.interface_.v1.ActivitySeasonReply.subscribe: object expected");i.subscribe=u.bilibili.web.interface_.v1.ActivitySubscribe.fromObject(t.subscribe)}if(t.game!=null){if(typeof t.game!="object")throw TypeError(".bilibili.web.interface_.v1.ActivitySeasonReply.game: object expected");i.game=u.bilibili.web.interface_.v1.ActivityGame.fromObject(t.game)}if(t.view!=null){if(typeof t.view!="object")throw TypeError(".bilibili.web.interface_.v1.ActivitySeasonReply.view: object expected");i.view=u.bilibili.web.interface_.v1.ActivityView.fromObject(t.view)}if(t.theme!=null){if(typeof t.theme!="object")throw TypeError(".bilibili.web.interface_.v1.ActivitySeasonReply.theme: object expected");i.theme=u.bilibili.web.interface_.v1.ActivityTheme.fromObject(t.theme)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.status=i.enums===String?"StatusNone":0,n.title="",n.live=null,n.subscribe=null,n.game=null,n.view=null,n.theme=null),t.status!=null&&t.hasOwnProperty("status")&&(n.status=i.enums===String?u.bilibili.web.interface_.v1.ActivitySeasonStatus[t.status]===void 0?t.status:u.bilibili.web.interface_.v1.ActivitySeasonStatus[t.status]:t.status),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.live!=null&&t.hasOwnProperty("live")&&(n.live=u.bilibili.web.interface_.v1.ActivityLive.toObject(t.live,i)),t.subscribe!=null&&t.hasOwnProperty("subscribe")&&(n.subscribe=u.bilibili.web.interface_.v1.ActivitySubscribe.toObject(t.subscribe,i)),t.game!=null&&t.hasOwnProperty("game")&&(n.game=u.bilibili.web.interface_.v1.ActivityGame.toObject(t.game,i)),t.view!=null&&t.hasOwnProperty("view")&&(n.view=u.bilibili.web.interface_.v1.ActivityView.toObject(t.view,i)),t.theme!=null&&t.hasOwnProperty("theme")&&(n.theme=u.bilibili.web.interface_.v1.ActivityTheme.toObject(t.theme,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.web.interface_.v1.ActivitySeasonReply"},e}(),c.ActivityTheme=function(){function e(l){if(this.kvColor={},l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.baseColor=t.string();break}case 2:{o.loadingBgColor=t.string();break}case 3:{o.operatedBgColor=t.string();break}case 4:{o.defaultElementColor=t.string();break}case 5:{o.hoverElementColor=t.string();break}case 6:{o.selectedElementColor=t.string();break}case 7:{o.baseFontColor=t.string();break}case 8:{o.infoFontColor=t.string();break}case 9:{o.maskBgColor=t.string();break}case 10:{o.pageBgColor=t.string();break}case 11:{o.centerLogoImg=t.string();break}case 12:{o.pageBgImg=t.string();break}case 13:{o.decorations_2233Img=t.string();break}case 14:{o.mainBannerBgImg=t.string();break}case 15:{o.mainBannerTitleImg=t.string();break}case 16:{o.likeAnimationImg=t.string();break}case 17:{o.comboLikeImg=t.string();break}case 18:{o.comboCoinImg=t.string();break}case 19:{o.comboFavImg=t.string();break}case 20:{o.arrowBtnImg=t.string();break}case 21:{o.shareIconBgImg=t.string();break}case 22:{o.liveListLocationImg=t.string();break}case 23:{o.liveListLocationImgActive=t.string();break}case 24:{o.playerLoadingImg=t.string();break}case 25:{o.shareImg=t.string();break}case 26:{o.kvColor===r.emptyObject&&(o.kvColor={});let v=t.uint32()+t.pos;for(a="",y="";t.pos>>3){case 1:a=t.string();break;case 2:y=t.string();break;default:t.skipType(g&7);break}}o.kvColor[a]=y;break}default:t.skipType(s&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.web.interface_.v1.ActivityTheme)return t;let i=new u.bilibili.web.interface_.v1.ActivityTheme;if(t.baseColor!=null&&(i.baseColor=String(t.baseColor)),t.loadingBgColor!=null&&(i.loadingBgColor=String(t.loadingBgColor)),t.operatedBgColor!=null&&(i.operatedBgColor=String(t.operatedBgColor)),t.defaultElementColor!=null&&(i.defaultElementColor=String(t.defaultElementColor)),t.hoverElementColor!=null&&(i.hoverElementColor=String(t.hoverElementColor)),t.selectedElementColor!=null&&(i.selectedElementColor=String(t.selectedElementColor)),t.baseFontColor!=null&&(i.baseFontColor=String(t.baseFontColor)),t.infoFontColor!=null&&(i.infoFontColor=String(t.infoFontColor)),t.maskBgColor!=null&&(i.maskBgColor=String(t.maskBgColor)),t.pageBgColor!=null&&(i.pageBgColor=String(t.pageBgColor)),t.centerLogoImg!=null&&(i.centerLogoImg=String(t.centerLogoImg)),t.pageBgImg!=null&&(i.pageBgImg=String(t.pageBgImg)),t.decorations_2233Img!=null&&(i.decorations_2233Img=String(t.decorations_2233Img)),t.mainBannerBgImg!=null&&(i.mainBannerBgImg=String(t.mainBannerBgImg)),t.mainBannerTitleImg!=null&&(i.mainBannerTitleImg=String(t.mainBannerTitleImg)),t.likeAnimationImg!=null&&(i.likeAnimationImg=String(t.likeAnimationImg)),t.comboLikeImg!=null&&(i.comboLikeImg=String(t.comboLikeImg)),t.comboCoinImg!=null&&(i.comboCoinImg=String(t.comboCoinImg)),t.comboFavImg!=null&&(i.comboFavImg=String(t.comboFavImg)),t.arrowBtnImg!=null&&(i.arrowBtnImg=String(t.arrowBtnImg)),t.shareIconBgImg!=null&&(i.shareIconBgImg=String(t.shareIconBgImg)),t.liveListLocationImg!=null&&(i.liveListLocationImg=String(t.liveListLocationImg)),t.liveListLocationImgActive!=null&&(i.liveListLocationImgActive=String(t.liveListLocationImgActive)),t.playerLoadingImg!=null&&(i.playerLoadingImg=String(t.playerLoadingImg)),t.shareImg!=null&&(i.shareImg=String(t.shareImg)),t.kvColor){if(typeof t.kvColor!="object")throw TypeError(".bilibili.web.interface_.v1.ActivityTheme.kvColor: object expected");i.kvColor={};for(let n=Object.keys(t.kvColor),o=0;o>>3){case 1:{o.arc=u.bilibili.web.interface_.v1.Arc.decode(t,t.uint32());break}case 2:{o.bvid=t.string();break}case 3:{o.pages&&o.pages.length||(o.pages=[]),o.pages.push(u.bilibili.web.interface_.v1.Page.decode(t,t.uint32()));break}case 4:{o.staff&&o.staff.length||(o.staff=[]),o.staff.push(u.bilibili.web.interface_.v1.Staff.decode(t,t.uint32()));break}case 5:{o.reqUser=u.bilibili.web.interface_.v1.ReqUser.decode(t,t.uint32());break}case 6:{o.rightRelate=u.bilibili.web.interface_.v1.OperationRelate.decode(t,t.uint32());break}case 7:{o.bottomRelate=u.bilibili.web.interface_.v1.OperationRelate.decode(t,t.uint32());break}case 8:{o.sections&&o.sections.length||(o.sections=[]),o.sections.push(u.bilibili.web.interface_.v1.ActivitySeasonSection.decode(t,t.uint32()));break}case 9:{o.disableShowUpInfo=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.web.interface_.v1.ActivityView)return t;let i=new u.bilibili.web.interface_.v1.ActivityView;if(t.arc!=null){if(typeof t.arc!="object")throw TypeError(".bilibili.web.interface_.v1.ActivityView.arc: object expected");i.arc=u.bilibili.web.interface_.v1.Arc.fromObject(t.arc)}if(t.bvid!=null&&(i.bvid=String(t.bvid)),t.pages){if(!Array.isArray(t.pages))throw TypeError(".bilibili.web.interface_.v1.ActivityView.pages: array expected");i.pages=[];for(let n=0;n>>3){case 1:{o.favorite=t.bool();break}case 2:{o.like=t.bool();break}case 3:{o.dislike=t.bool();break}case 4:{o.multiply=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.web.interface_.v1.ReqUser)return t;let i=new u.bilibili.web.interface_.v1.ReqUser;return t.favorite!=null&&(i.favorite=!!t.favorite),t.like!=null&&(i.like=!!t.like),t.dislike!=null&&(i.dislike=!!t.dislike),t.multiply!=null&&(r.Long?(i.multiply=r.Long.fromValue(t.multiply)).unsigned=!1:typeof t.multiply=="string"?i.multiply=parseInt(t.multiply,10):typeof t.multiply=="number"?i.multiply=t.multiply:typeof t.multiply=="object"&&(i.multiply=new r.LongBits(t.multiply.low>>>0,t.multiply.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(n.favorite=!1,n.like=!1,n.dislike=!1,r.Long){let o=new r.Long(0,0,!1);n.multiply=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.multiply=i.longs===String?"0":0;return t.favorite!=null&&t.hasOwnProperty("favorite")&&(n.favorite=t.favorite),t.like!=null&&t.hasOwnProperty("like")&&(n.like=t.like),t.dislike!=null&&t.hasOwnProperty("dislike")&&(n.dislike=t.dislike),t.multiply!=null&&t.hasOwnProperty("multiply")&&(typeof t.multiply=="number"?n.multiply=i.longs===String?String(t.multiply):t.multiply:n.multiply=i.longs===String?r.Long.prototype.toString.call(t.multiply):i.longs===Number?new r.LongBits(t.multiply.low>>>0,t.multiply.high>>>0).toNumber():t.multiply),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.web.interface_.v1.ReqUser"},e}(),c.ActivitySeasonSection=function(){function e(l){if(this.episodes=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.id=t.int64();break}case 2:{o.title=t.string();break}case 3:{o.type=t.int64();break}case 4:{o.episodes&&o.episodes.length||(o.episodes=[]),o.episodes.push(u.bilibili.web.interface_.v1.ActivityEpisode.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.web.interface_.v1.ActivitySeasonSection)return t;let i=new u.bilibili.web.interface_.v1.ActivitySeasonSection;if(t.id!=null&&(r.Long?(i.id=r.Long.fromValue(t.id)).unsigned=!1:typeof t.id=="string"?i.id=parseInt(t.id,10):typeof t.id=="number"?i.id=t.id:typeof t.id=="object"&&(i.id=new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber())),t.title!=null&&(i.title=String(t.title)),t.type!=null&&(r.Long?(i.type=r.Long.fromValue(t.type)).unsigned=!1:typeof t.type=="string"?i.type=parseInt(t.type,10):typeof t.type=="number"?i.type=t.type:typeof t.type=="object"&&(i.type=new r.LongBits(t.type.low>>>0,t.type.high>>>0).toNumber())),t.episodes){if(!Array.isArray(t.episodes))throw TypeError(".bilibili.web.interface_.v1.ActivitySeasonSection.episodes: array expected");i.episodes=[];for(let n=0;n>>0,t.id.high>>>0).toNumber():t.id),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.type!=null&&t.hasOwnProperty("type")&&(typeof t.type=="number"?n.type=i.longs===String?String(t.type):t.type:n.type=i.longs===String?r.Long.prototype.toString.call(t.type):i.longs===Number?new r.LongBits(t.type.low>>>0,t.type.high>>>0).toNumber():t.type),t.episodes&&t.episodes.length){n.episodes=[];for(let o=0;o>>3){case 1:{o.id=t.int64();break}case 2:{o.aid=t.int64();break}case 3:{o.bvid=t.string();break}case 4:{o.cid=t.int64();break}case 5:{o.title=t.string();break}case 6:{o.cover=t.string();break}case 7:{o.author=u.bilibili.web.interface_.v1.Author.decode(t,t.uint32());break}case 8:{o.rights=u.bilibili.web.interface_.v1.Rights.decode(t,t.uint32());break}case 9:{o.disableShowUpInfo=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.web.interface_.v1.ActivityEpisode)return t;let i=new u.bilibili.web.interface_.v1.ActivityEpisode;if(t.id!=null&&(r.Long?(i.id=r.Long.fromValue(t.id)).unsigned=!1:typeof t.id=="string"?i.id=parseInt(t.id,10):typeof t.id=="number"?i.id=t.id:typeof t.id=="object"&&(i.id=new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber())),t.aid!=null&&(r.Long?(i.aid=r.Long.fromValue(t.aid)).unsigned=!1:typeof t.aid=="string"?i.aid=parseInt(t.aid,10):typeof t.aid=="number"?i.aid=t.aid:typeof t.aid=="object"&&(i.aid=new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber())),t.bvid!=null&&(i.bvid=String(t.bvid)),t.cid!=null&&(r.Long?(i.cid=r.Long.fromValue(t.cid)).unsigned=!1:typeof t.cid=="string"?i.cid=parseInt(t.cid,10):typeof t.cid=="number"?i.cid=t.cid:typeof t.cid=="object"&&(i.cid=new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber())),t.title!=null&&(i.title=String(t.title)),t.cover!=null&&(i.cover=String(t.cover)),t.author!=null){if(typeof t.author!="object")throw TypeError(".bilibili.web.interface_.v1.ActivityEpisode.author: object expected");i.author=u.bilibili.web.interface_.v1.Author.fromObject(t.author)}if(t.rights!=null){if(typeof t.rights!="object")throw TypeError(".bilibili.web.interface_.v1.ActivityEpisode.rights: object expected");i.rights=u.bilibili.web.interface_.v1.Rights.fromObject(t.rights)}return t.disableShowUpInfo!=null&&(i.disableShowUpInfo=!!t.disableShowUpInfo),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.id=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.id=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.aid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.aid=i.longs===String?"0":0;if(n.bvid="",r.Long){let o=new r.Long(0,0,!1);n.cid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.cid=i.longs===String?"0":0;n.title="",n.cover="",n.author=null,n.rights=null,n.disableShowUpInfo=!1}return t.id!=null&&t.hasOwnProperty("id")&&(typeof t.id=="number"?n.id=i.longs===String?String(t.id):t.id:n.id=i.longs===String?r.Long.prototype.toString.call(t.id):i.longs===Number?new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber():t.id),t.aid!=null&&t.hasOwnProperty("aid")&&(typeof t.aid=="number"?n.aid=i.longs===String?String(t.aid):t.aid:n.aid=i.longs===String?r.Long.prototype.toString.call(t.aid):i.longs===Number?new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber():t.aid),t.bvid!=null&&t.hasOwnProperty("bvid")&&(n.bvid=t.bvid),t.cid!=null&&t.hasOwnProperty("cid")&&(typeof t.cid=="number"?n.cid=i.longs===String?String(t.cid):t.cid:n.cid=i.longs===String?r.Long.prototype.toString.call(t.cid):i.longs===Number?new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber():t.cid),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.cover!=null&&t.hasOwnProperty("cover")&&(n.cover=t.cover),t.author!=null&&t.hasOwnProperty("author")&&(n.author=u.bilibili.web.interface_.v1.Author.toObject(t.author,i)),t.rights!=null&&t.hasOwnProperty("rights")&&(n.rights=u.bilibili.web.interface_.v1.Rights.toObject(t.rights,i)),t.disableShowUpInfo!=null&&t.hasOwnProperty("disableShowUpInfo")&&(n.disableShowUpInfo=t.disableShowUpInfo),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.web.interface_.v1.ActivityEpisode"},e}(),c.ActivityGame=function(){function e(l){if(this.iframes=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.iframes&&o.iframes.length||(o.iframes=[]),o.iframes.push(u.bilibili.web.interface_.v1.ActivityGameIframe.decode(t,t.uint32()));break}case 2:{o.disclaimer=t.string();break}case 3:{o.disclaimerUrl=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.web.interface_.v1.ActivityGame)return t;let i=new u.bilibili.web.interface_.v1.ActivityGame;if(t.iframes){if(!Array.isArray(t.iframes))throw TypeError(".bilibili.web.interface_.v1.ActivityGame.iframes: array expected");i.iframes=[];for(let n=0;n>>3){case 1:{o.url=t.string();break}case 2:{o.height=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.web.interface_.v1.ActivityGameIframe)return t;let i=new u.bilibili.web.interface_.v1.ActivityGameIframe;return t.url!=null&&(i.url=String(t.url)),t.height!=null&&(r.Long?(i.height=r.Long.fromValue(t.height)).unsigned=!1:typeof t.height=="string"?i.height=parseInt(t.height,10):typeof t.height=="number"?i.height=t.height:typeof t.height=="object"&&(i.height=new r.LongBits(t.height.low>>>0,t.height.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(n.url="",r.Long){let o=new r.Long(0,0,!1);n.height=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.height=i.longs===String?"0":0;return t.url!=null&&t.hasOwnProperty("url")&&(n.url=t.url),t.height!=null&&t.hasOwnProperty("height")&&(typeof t.height=="number"?n.height=i.longs===String?String(t.height):t.height:n.height=i.longs===String?r.Long.prototype.toString.call(t.height):i.longs===Number?new r.LongBits(t.height.low>>>0,t.height.high>>>0).toNumber():t.height),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.web.interface_.v1.ActivityGameIframe"},e}(),c.ActivityLive=function(){function e(l){if(this.timeline=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.roomId=t.int64();break}case 2:{o.nowTime=t.int64();break}case 3:{o.startTime=t.int64();break}case 4:{o.endTime=t.int64();break}case 5:{o.hoverPic=t.string();break}case 6:{o.hoverJumpUrl=t.string();break}case 7:{o.breakCycle=t.int64();break}case 8:{o.timeline&&o.timeline.length||(o.timeline=[]),o.timeline.push(u.bilibili.web.interface_.v1.LiveTimeline.decode(t,t.uint32()));break}case 9:{o.operationRelate=u.bilibili.web.interface_.v1.OperationRelate.decode(t,t.uint32());break}case 10:{o.replyType=t.int64();break}case 11:{o.replyId=t.int64();break}case 12:{o.hoverPicClose=t.string();break}case 13:{o.giftDisclaimer=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.web.interface_.v1.ActivityLive)return t;let i=new u.bilibili.web.interface_.v1.ActivityLive;if(t.roomId!=null&&(r.Long?(i.roomId=r.Long.fromValue(t.roomId)).unsigned=!1:typeof t.roomId=="string"?i.roomId=parseInt(t.roomId,10):typeof t.roomId=="number"?i.roomId=t.roomId:typeof t.roomId=="object"&&(i.roomId=new r.LongBits(t.roomId.low>>>0,t.roomId.high>>>0).toNumber())),t.nowTime!=null&&(r.Long?(i.nowTime=r.Long.fromValue(t.nowTime)).unsigned=!1:typeof t.nowTime=="string"?i.nowTime=parseInt(t.nowTime,10):typeof t.nowTime=="number"?i.nowTime=t.nowTime:typeof t.nowTime=="object"&&(i.nowTime=new r.LongBits(t.nowTime.low>>>0,t.nowTime.high>>>0).toNumber())),t.startTime!=null&&(r.Long?(i.startTime=r.Long.fromValue(t.startTime)).unsigned=!1:typeof t.startTime=="string"?i.startTime=parseInt(t.startTime,10):typeof t.startTime=="number"?i.startTime=t.startTime:typeof t.startTime=="object"&&(i.startTime=new r.LongBits(t.startTime.low>>>0,t.startTime.high>>>0).toNumber())),t.endTime!=null&&(r.Long?(i.endTime=r.Long.fromValue(t.endTime)).unsigned=!1:typeof t.endTime=="string"?i.endTime=parseInt(t.endTime,10):typeof t.endTime=="number"?i.endTime=t.endTime:typeof t.endTime=="object"&&(i.endTime=new r.LongBits(t.endTime.low>>>0,t.endTime.high>>>0).toNumber())),t.hoverPic!=null&&(i.hoverPic=String(t.hoverPic)),t.hoverJumpUrl!=null&&(i.hoverJumpUrl=String(t.hoverJumpUrl)),t.breakCycle!=null&&(r.Long?(i.breakCycle=r.Long.fromValue(t.breakCycle)).unsigned=!1:typeof t.breakCycle=="string"?i.breakCycle=parseInt(t.breakCycle,10):typeof t.breakCycle=="number"?i.breakCycle=t.breakCycle:typeof t.breakCycle=="object"&&(i.breakCycle=new r.LongBits(t.breakCycle.low>>>0,t.breakCycle.high>>>0).toNumber())),t.timeline){if(!Array.isArray(t.timeline))throw TypeError(".bilibili.web.interface_.v1.ActivityLive.timeline: array expected");i.timeline=[];for(let n=0;n>>0,t.replyType.high>>>0).toNumber())),t.replyId!=null&&(r.Long?(i.replyId=r.Long.fromValue(t.replyId)).unsigned=!1:typeof t.replyId=="string"?i.replyId=parseInt(t.replyId,10):typeof t.replyId=="number"?i.replyId=t.replyId:typeof t.replyId=="object"&&(i.replyId=new r.LongBits(t.replyId.low>>>0,t.replyId.high>>>0).toNumber())),t.hoverPicClose!=null&&(i.hoverPicClose=String(t.hoverPicClose)),t.giftDisclaimer!=null&&(i.giftDisclaimer=String(t.giftDisclaimer)),i},e.toObject=function(t,i){i||(i={});let n={};if((i.arrays||i.defaults)&&(n.timeline=[]),i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.roomId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.roomId=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.nowTime=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.nowTime=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.startTime=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.startTime=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.endTime=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.endTime=i.longs===String?"0":0;if(n.hoverPic="",n.hoverJumpUrl="",r.Long){let o=new r.Long(0,0,!1);n.breakCycle=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.breakCycle=i.longs===String?"0":0;if(n.operationRelate=null,r.Long){let o=new r.Long(0,0,!1);n.replyType=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.replyType=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.replyId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.replyId=i.longs===String?"0":0;n.hoverPicClose="",n.giftDisclaimer=""}if(t.roomId!=null&&t.hasOwnProperty("roomId")&&(typeof t.roomId=="number"?n.roomId=i.longs===String?String(t.roomId):t.roomId:n.roomId=i.longs===String?r.Long.prototype.toString.call(t.roomId):i.longs===Number?new r.LongBits(t.roomId.low>>>0,t.roomId.high>>>0).toNumber():t.roomId),t.nowTime!=null&&t.hasOwnProperty("nowTime")&&(typeof t.nowTime=="number"?n.nowTime=i.longs===String?String(t.nowTime):t.nowTime:n.nowTime=i.longs===String?r.Long.prototype.toString.call(t.nowTime):i.longs===Number?new r.LongBits(t.nowTime.low>>>0,t.nowTime.high>>>0).toNumber():t.nowTime),t.startTime!=null&&t.hasOwnProperty("startTime")&&(typeof t.startTime=="number"?n.startTime=i.longs===String?String(t.startTime):t.startTime:n.startTime=i.longs===String?r.Long.prototype.toString.call(t.startTime):i.longs===Number?new r.LongBits(t.startTime.low>>>0,t.startTime.high>>>0).toNumber():t.startTime),t.endTime!=null&&t.hasOwnProperty("endTime")&&(typeof t.endTime=="number"?n.endTime=i.longs===String?String(t.endTime):t.endTime:n.endTime=i.longs===String?r.Long.prototype.toString.call(t.endTime):i.longs===Number?new r.LongBits(t.endTime.low>>>0,t.endTime.high>>>0).toNumber():t.endTime),t.hoverPic!=null&&t.hasOwnProperty("hoverPic")&&(n.hoverPic=t.hoverPic),t.hoverJumpUrl!=null&&t.hasOwnProperty("hoverJumpUrl")&&(n.hoverJumpUrl=t.hoverJumpUrl),t.breakCycle!=null&&t.hasOwnProperty("breakCycle")&&(typeof t.breakCycle=="number"?n.breakCycle=i.longs===String?String(t.breakCycle):t.breakCycle:n.breakCycle=i.longs===String?r.Long.prototype.toString.call(t.breakCycle):i.longs===Number?new r.LongBits(t.breakCycle.low>>>0,t.breakCycle.high>>>0).toNumber():t.breakCycle),t.timeline&&t.timeline.length){n.timeline=[];for(let o=0;o>>0,t.replyType.high>>>0).toNumber():t.replyType),t.replyId!=null&&t.hasOwnProperty("replyId")&&(typeof t.replyId=="number"?n.replyId=i.longs===String?String(t.replyId):t.replyId:n.replyId=i.longs===String?r.Long.prototype.toString.call(t.replyId):i.longs===Number?new r.LongBits(t.replyId.low>>>0,t.replyId.high>>>0).toNumber():t.replyId),t.hoverPicClose!=null&&t.hasOwnProperty("hoverPicClose")&&(n.hoverPicClose=t.hoverPicClose),t.giftDisclaimer!=null&&t.hasOwnProperty("giftDisclaimer")&&(n.giftDisclaimer=t.giftDisclaimer),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.web.interface_.v1.ActivityLive"},e}(),c.OperationRelate=function(){function e(l){if(this.relateItem=[],this.aiRelateItem=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.title=t.string();break}case 2:{o.relateItem&&o.relateItem.length||(o.relateItem=[]),o.relateItem.push(u.bilibili.web.interface_.v1.RelateItem.decode(t,t.uint32()));break}case 3:{o.aiRelateItem&&o.aiRelateItem.length||(o.aiRelateItem=[]),o.aiRelateItem.push(u.bilibili.web.interface_.v1.Relate.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.web.interface_.v1.OperationRelate)return t;let i=new u.bilibili.web.interface_.v1.OperationRelate;if(t.title!=null&&(i.title=String(t.title)),t.relateItem){if(!Array.isArray(t.relateItem))throw TypeError(".bilibili.web.interface_.v1.OperationRelate.relateItem: array expected");i.relateItem=[];for(let n=0;n>>3){case 1:{o.url=t.string();break}case 2:{o.cover=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.web.interface_.v1.RelateItem)return t;let i=new u.bilibili.web.interface_.v1.RelateItem;return t.url!=null&&(i.url=String(t.url)),t.cover!=null&&(i.cover=String(t.cover)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.url="",n.cover=""),t.url!=null&&t.hasOwnProperty("url")&&(n.url=t.url),t.cover!=null&&t.hasOwnProperty("cover")&&(n.cover=t.cover),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.web.interface_.v1.RelateItem"},e}(),c.Relate=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.arc=u.bilibili.web.interface_.v1.Arc.decode(t,t.uint32());break}case 2:{o.bvid=t.string();break}case 3:{o.seasonType=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.web.interface_.v1.Relate)return t;let i=new u.bilibili.web.interface_.v1.Relate;if(t.arc!=null){if(typeof t.arc!="object")throw TypeError(".bilibili.web.interface_.v1.Relate.arc: object expected");i.arc=u.bilibili.web.interface_.v1.Arc.fromObject(t.arc)}return t.bvid!=null&&(i.bvid=String(t.bvid)),t.seasonType!=null&&(r.Long?(i.seasonType=r.Long.fromValue(t.seasonType)).unsigned=!1:typeof t.seasonType=="string"?i.seasonType=parseInt(t.seasonType,10):typeof t.seasonType=="number"?i.seasonType=t.seasonType:typeof t.seasonType=="object"&&(i.seasonType=new r.LongBits(t.seasonType.low>>>0,t.seasonType.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(n.arc=null,n.bvid="",r.Long){let o=new r.Long(0,0,!1);n.seasonType=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.seasonType=i.longs===String?"0":0;return t.arc!=null&&t.hasOwnProperty("arc")&&(n.arc=u.bilibili.web.interface_.v1.Arc.toObject(t.arc,i)),t.bvid!=null&&t.hasOwnProperty("bvid")&&(n.bvid=t.bvid),t.seasonType!=null&&t.hasOwnProperty("seasonType")&&(typeof t.seasonType=="number"?n.seasonType=i.longs===String?String(t.seasonType):t.seasonType:n.seasonType=i.longs===String?r.Long.prototype.toString.call(t.seasonType):i.longs===Number?new r.LongBits(t.seasonType.low>>>0,t.seasonType.high>>>0).toNumber():t.seasonType),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.web.interface_.v1.Relate"},e}(),c.LiveTimeline=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.name=t.string();break}case 2:{o.startTime=t.int64();break}case 3:{o.endTime=t.int64();break}case 4:{o.cover=t.string();break}case 5:{o.subtitle=t.string();break}case 6:{o.h5Cover=t.string();break}case 7:{o.configType=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.web.interface_.v1.LiveTimeline)return t;let i=new u.bilibili.web.interface_.v1.LiveTimeline;return t.name!=null&&(i.name=String(t.name)),t.startTime!=null&&(r.Long?(i.startTime=r.Long.fromValue(t.startTime)).unsigned=!1:typeof t.startTime=="string"?i.startTime=parseInt(t.startTime,10):typeof t.startTime=="number"?i.startTime=t.startTime:typeof t.startTime=="object"&&(i.startTime=new r.LongBits(t.startTime.low>>>0,t.startTime.high>>>0).toNumber())),t.endTime!=null&&(r.Long?(i.endTime=r.Long.fromValue(t.endTime)).unsigned=!1:typeof t.endTime=="string"?i.endTime=parseInt(t.endTime,10):typeof t.endTime=="number"?i.endTime=t.endTime:typeof t.endTime=="object"&&(i.endTime=new r.LongBits(t.endTime.low>>>0,t.endTime.high>>>0).toNumber())),t.cover!=null&&(i.cover=String(t.cover)),t.subtitle!=null&&(i.subtitle=String(t.subtitle)),t.h5Cover!=null&&(i.h5Cover=String(t.h5Cover)),t.configType!=null&&(r.Long?(i.configType=r.Long.fromValue(t.configType)).unsigned=!1:typeof t.configType=="string"?i.configType=parseInt(t.configType,10):typeof t.configType=="number"?i.configType=t.configType:typeof t.configType=="object"&&(i.configType=new r.LongBits(t.configType.low>>>0,t.configType.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.name="",r.Long){let o=new r.Long(0,0,!1);n.startTime=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.startTime=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.endTime=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.endTime=i.longs===String?"0":0;if(n.cover="",n.subtitle="",n.h5Cover="",r.Long){let o=new r.Long(0,0,!1);n.configType=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.configType=i.longs===String?"0":0}return t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),t.startTime!=null&&t.hasOwnProperty("startTime")&&(typeof t.startTime=="number"?n.startTime=i.longs===String?String(t.startTime):t.startTime:n.startTime=i.longs===String?r.Long.prototype.toString.call(t.startTime):i.longs===Number?new r.LongBits(t.startTime.low>>>0,t.startTime.high>>>0).toNumber():t.startTime),t.endTime!=null&&t.hasOwnProperty("endTime")&&(typeof t.endTime=="number"?n.endTime=i.longs===String?String(t.endTime):t.endTime:n.endTime=i.longs===String?r.Long.prototype.toString.call(t.endTime):i.longs===Number?new r.LongBits(t.endTime.low>>>0,t.endTime.high>>>0).toNumber():t.endTime),t.cover!=null&&t.hasOwnProperty("cover")&&(n.cover=t.cover),t.subtitle!=null&&t.hasOwnProperty("subtitle")&&(n.subtitle=t.subtitle),t.h5Cover!=null&&t.hasOwnProperty("h5Cover")&&(n.h5Cover=t.h5Cover),t.configType!=null&&t.hasOwnProperty("configType")&&(typeof t.configType=="number"?n.configType=i.longs===String?String(t.configType):t.configType:n.configType=i.longs===String?r.Long.prototype.toString.call(t.configType):i.longs===Number?new r.LongBits(t.configType.low>>>0,t.configType.high>>>0).toNumber():t.configType),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.web.interface_.v1.LiveTimeline"},e}(),c.ActivitySubscribe=function(){function e(t){if(t)for(let i=Object.keys(t),n=0;n>>3){case 1:{a.status=i.bool();break}case 2:{a.title=i.string();break}case 3:{a.buttonTitle=i.string();break}case 4:{a.buttonSelectedTitle=i.string();break}case 5:{a.seasonStatView=i.int64();break}case 6:{a.seasonStatDanmaku=i.int64();break}case 7:{a.orderType=i.int32();break}case 8:{a.ReserveParam=u.bilibili.web.interface_.v1.ReserveActivityParam.decode(i,i.uint32());break}case 9:{a.FavParam=u.bilibili.web.interface_.v1.FavSeasonParam.decode(i,i.uint32());break}case 10:{a.JumpParam=u.bilibili.web.interface_.v1.JumpURLParam.decode(i,i.uint32());break}case 11:{a.seasonStatVt=i.int64();break}case 12:{a.enableVt=i.int32();break}default:i.skipType(y&7);break}}return a},e.fromObject=function(i){if(i instanceof u.bilibili.web.interface_.v1.ActivitySubscribe)return i;let n=new u.bilibili.web.interface_.v1.ActivitySubscribe;switch(i.status!=null&&(n.status=!!i.status),i.title!=null&&(n.title=String(i.title)),i.buttonTitle!=null&&(n.buttonTitle=String(i.buttonTitle)),i.buttonSelectedTitle!=null&&(n.buttonSelectedTitle=String(i.buttonSelectedTitle)),i.seasonStatView!=null&&(r.Long?(n.seasonStatView=r.Long.fromValue(i.seasonStatView)).unsigned=!1:typeof i.seasonStatView=="string"?n.seasonStatView=parseInt(i.seasonStatView,10):typeof i.seasonStatView=="number"?n.seasonStatView=i.seasonStatView:typeof i.seasonStatView=="object"&&(n.seasonStatView=new r.LongBits(i.seasonStatView.low>>>0,i.seasonStatView.high>>>0).toNumber())),i.seasonStatDanmaku!=null&&(r.Long?(n.seasonStatDanmaku=r.Long.fromValue(i.seasonStatDanmaku)).unsigned=!1:typeof i.seasonStatDanmaku=="string"?n.seasonStatDanmaku=parseInt(i.seasonStatDanmaku,10):typeof i.seasonStatDanmaku=="number"?n.seasonStatDanmaku=i.seasonStatDanmaku:typeof i.seasonStatDanmaku=="object"&&(n.seasonStatDanmaku=new r.LongBits(i.seasonStatDanmaku.low>>>0,i.seasonStatDanmaku.high>>>0).toNumber())),i.orderType){default:if(typeof i.orderType=="number"){n.orderType=i.orderType;break}break;case"TypeNone":case 0:n.orderType=0;break;case"TypeOrderActivity":case 1:n.orderType=1;break;case"TypeFavSeason":case 2:n.orderType=2;break;case"TypeClick":case 3:n.orderType=3;break}if(i.ReserveParam!=null){if(typeof i.ReserveParam!="object")throw TypeError(".bilibili.web.interface_.v1.ActivitySubscribe.ReserveParam: object expected");n.ReserveParam=u.bilibili.web.interface_.v1.ReserveActivityParam.fromObject(i.ReserveParam)}if(i.FavParam!=null){if(typeof i.FavParam!="object")throw TypeError(".bilibili.web.interface_.v1.ActivitySubscribe.FavParam: object expected");n.FavParam=u.bilibili.web.interface_.v1.FavSeasonParam.fromObject(i.FavParam)}if(i.JumpParam!=null){if(typeof i.JumpParam!="object")throw TypeError(".bilibili.web.interface_.v1.ActivitySubscribe.JumpParam: object expected");n.JumpParam=u.bilibili.web.interface_.v1.JumpURLParam.fromObject(i.JumpParam)}return i.seasonStatVt!=null&&(r.Long?(n.seasonStatVt=r.Long.fromValue(i.seasonStatVt)).unsigned=!1:typeof i.seasonStatVt=="string"?n.seasonStatVt=parseInt(i.seasonStatVt,10):typeof i.seasonStatVt=="number"?n.seasonStatVt=i.seasonStatVt:typeof i.seasonStatVt=="object"&&(n.seasonStatVt=new r.LongBits(i.seasonStatVt.low>>>0,i.seasonStatVt.high>>>0).toNumber())),i.enableVt!=null&&(n.enableVt=i.enableVt|0),n},e.toObject=function(i,n){n||(n={});let o={};if(n.defaults){if(o.status=!1,o.title="",o.buttonTitle="",o.buttonSelectedTitle="",r.Long){let a=new r.Long(0,0,!1);o.seasonStatView=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.seasonStatView=n.longs===String?"0":0;if(r.Long){let a=new r.Long(0,0,!1);o.seasonStatDanmaku=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.seasonStatDanmaku=n.longs===String?"0":0;if(o.orderType=n.enums===String?"TypeNone":0,r.Long){let a=new r.Long(0,0,!1);o.seasonStatVt=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.seasonStatVt=n.longs===String?"0":0;o.enableVt=0}return i.status!=null&&i.hasOwnProperty("status")&&(o.status=i.status),i.title!=null&&i.hasOwnProperty("title")&&(o.title=i.title),i.buttonTitle!=null&&i.hasOwnProperty("buttonTitle")&&(o.buttonTitle=i.buttonTitle),i.buttonSelectedTitle!=null&&i.hasOwnProperty("buttonSelectedTitle")&&(o.buttonSelectedTitle=i.buttonSelectedTitle),i.seasonStatView!=null&&i.hasOwnProperty("seasonStatView")&&(typeof i.seasonStatView=="number"?o.seasonStatView=n.longs===String?String(i.seasonStatView):i.seasonStatView:o.seasonStatView=n.longs===String?r.Long.prototype.toString.call(i.seasonStatView):n.longs===Number?new r.LongBits(i.seasonStatView.low>>>0,i.seasonStatView.high>>>0).toNumber():i.seasonStatView),i.seasonStatDanmaku!=null&&i.hasOwnProperty("seasonStatDanmaku")&&(typeof i.seasonStatDanmaku=="number"?o.seasonStatDanmaku=n.longs===String?String(i.seasonStatDanmaku):i.seasonStatDanmaku:o.seasonStatDanmaku=n.longs===String?r.Long.prototype.toString.call(i.seasonStatDanmaku):n.longs===Number?new r.LongBits(i.seasonStatDanmaku.low>>>0,i.seasonStatDanmaku.high>>>0).toNumber():i.seasonStatDanmaku),i.orderType!=null&&i.hasOwnProperty("orderType")&&(o.orderType=n.enums===String?u.bilibili.web.interface_.v1.OrderType[i.orderType]===void 0?i.orderType:u.bilibili.web.interface_.v1.OrderType[i.orderType]:i.orderType),i.ReserveParam!=null&&i.hasOwnProperty("ReserveParam")&&(o.ReserveParam=u.bilibili.web.interface_.v1.ReserveActivityParam.toObject(i.ReserveParam,n),n.oneofs&&(o.Param="ReserveParam")),i.FavParam!=null&&i.hasOwnProperty("FavParam")&&(o.FavParam=u.bilibili.web.interface_.v1.FavSeasonParam.toObject(i.FavParam,n),n.oneofs&&(o.Param="FavParam")),i.JumpParam!=null&&i.hasOwnProperty("JumpParam")&&(o.JumpParam=u.bilibili.web.interface_.v1.JumpURLParam.toObject(i.JumpParam,n),n.oneofs&&(o.Param="JumpParam")),i.seasonStatVt!=null&&i.hasOwnProperty("seasonStatVt")&&(typeof i.seasonStatVt=="number"?o.seasonStatVt=n.longs===String?String(i.seasonStatVt):i.seasonStatVt:o.seasonStatVt=n.longs===String?r.Long.prototype.toString.call(i.seasonStatVt):n.longs===Number?new r.LongBits(i.seasonStatVt.low>>>0,i.seasonStatVt.high>>>0).toNumber():i.seasonStatVt),i.enableVt!=null&&i.hasOwnProperty("enableVt")&&(o.enableVt=i.enableVt),o},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/bilibili.web.interface_.v1.ActivitySubscribe"},e}(),c.ReserveActivityParam=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.reserveId=t.int64();break}case 2:{o.from=t.string();break}case 3:{o.type=t.string();break}case 4:{o.oid=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.web.interface_.v1.ReserveActivityParam)return t;let i=new u.bilibili.web.interface_.v1.ReserveActivityParam;return t.reserveId!=null&&(r.Long?(i.reserveId=r.Long.fromValue(t.reserveId)).unsigned=!1:typeof t.reserveId=="string"?i.reserveId=parseInt(t.reserveId,10):typeof t.reserveId=="number"?i.reserveId=t.reserveId:typeof t.reserveId=="object"&&(i.reserveId=new r.LongBits(t.reserveId.low>>>0,t.reserveId.high>>>0).toNumber())),t.from!=null&&(i.from=String(t.from)),t.type!=null&&(i.type=String(t.type)),t.oid!=null&&(r.Long?(i.oid=r.Long.fromValue(t.oid)).unsigned=!1:typeof t.oid=="string"?i.oid=parseInt(t.oid,10):typeof t.oid=="number"?i.oid=t.oid:typeof t.oid=="object"&&(i.oid=new r.LongBits(t.oid.low>>>0,t.oid.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.reserveId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.reserveId=i.longs===String?"0":0;if(n.from="",n.type="",r.Long){let o=new r.Long(0,0,!1);n.oid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.oid=i.longs===String?"0":0}return t.reserveId!=null&&t.hasOwnProperty("reserveId")&&(typeof t.reserveId=="number"?n.reserveId=i.longs===String?String(t.reserveId):t.reserveId:n.reserveId=i.longs===String?r.Long.prototype.toString.call(t.reserveId):i.longs===Number?new r.LongBits(t.reserveId.low>>>0,t.reserveId.high>>>0).toNumber():t.reserveId),t.from!=null&&t.hasOwnProperty("from")&&(n.from=t.from),t.type!=null&&t.hasOwnProperty("type")&&(n.type=t.type),t.oid!=null&&t.hasOwnProperty("oid")&&(typeof t.oid=="number"?n.oid=i.longs===String?String(t.oid):t.oid:n.oid=i.longs===String?r.Long.prototype.toString.call(t.oid):i.longs===Number?new r.LongBits(t.oid.low>>>0,t.oid.high>>>0).toNumber():t.oid),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.web.interface_.v1.ReserveActivityParam"},e}(),c.FavSeasonParam=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.seasonId=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.web.interface_.v1.FavSeasonParam)return t;let i=new u.bilibili.web.interface_.v1.FavSeasonParam;return t.seasonId!=null&&(r.Long?(i.seasonId=r.Long.fromValue(t.seasonId)).unsigned=!1:typeof t.seasonId=="string"?i.seasonId=parseInt(t.seasonId,10):typeof t.seasonId=="number"?i.seasonId=t.seasonId:typeof t.seasonId=="object"&&(i.seasonId=new r.LongBits(t.seasonId.low>>>0,t.seasonId.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(r.Long){let o=new r.Long(0,0,!1);n.seasonId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.seasonId=i.longs===String?"0":0;return t.seasonId!=null&&t.hasOwnProperty("seasonId")&&(typeof t.seasonId=="number"?n.seasonId=i.longs===String?String(t.seasonId):t.seasonId:n.seasonId=i.longs===String?r.Long.prototype.toString.call(t.seasonId):i.longs===Number?new r.LongBits(t.seasonId.low>>>0,t.seasonId.high>>>0).toNumber():t.seasonId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.web.interface_.v1.FavSeasonParam"},e}(),c.JumpURLParam=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.jumpUrl=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.web.interface_.v1.JumpURLParam)return t;let i=new u.bilibili.web.interface_.v1.JumpURLParam;return t.jumpUrl!=null&&(i.jumpUrl=String(t.jumpUrl)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.jumpUrl=""),t.jumpUrl!=null&&t.hasOwnProperty("jumpUrl")&&(n.jumpUrl=t.jumpUrl),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.web.interface_.v1.JumpURLParam"},e}(),c.ActivitySeasonStatus=function(){let e={},l=Object.create(e);return l[e[0]="StatusNone"]=0,l[e[1]="StatusLive"]=1,l[e[2]="StatusView"]=2,l}(),c.OrderType=function(){let e={},l=Object.create(e);return l[e[0]="TypeNone"]=0,l[e[1]="TypeOrderActivity"]=1,l[e[2]="TypeFavSeason"]=2,l[e[3]="TypeClick"]=3,l}(),c.ViewDetailReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.aid=t.int64();break}case 2:{o.bvid=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.web.interface_.v1.ViewDetailReq)return t;let i=new u.bilibili.web.interface_.v1.ViewDetailReq;return t.aid!=null&&(r.Long?(i.aid=r.Long.fromValue(t.aid)).unsigned=!1:typeof t.aid=="string"?i.aid=parseInt(t.aid,10):typeof t.aid=="number"?i.aid=t.aid:typeof t.aid=="object"&&(i.aid=new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber())),t.bvid!=null&&(i.bvid=String(t.bvid)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.aid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.aid=i.longs===String?"0":0;n.bvid=""}return t.aid!=null&&t.hasOwnProperty("aid")&&(typeof t.aid=="number"?n.aid=i.longs===String?String(t.aid):t.aid:n.aid=i.longs===String?r.Long.prototype.toString.call(t.aid):i.longs===Number?new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber():t.aid),t.bvid!=null&&t.hasOwnProperty("bvid")&&(n.bvid=t.bvid),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.web.interface_.v1.ViewDetailReq"},e}(),c.ViewDetailReply=function(){function e(l){if(this.tags=[],this.related=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.view=u.bilibili.web.interface_.v1.View.decode(t,t.uint32());break}case 2:{o.card=u.bilibili.web.interface_.v1.Card.decode(t,t.uint32());break}case 3:{o.tags&&o.tags.length||(o.tags=[]),o.tags.push(u.bilibili.web.interface_.v1.Tag.decode(t,t.uint32()));break}case 4:{o.reply=u.bilibili.web.interface_.v1.HotReply.decode(t,t.uint32());break}case 5:{o.related&&o.related.length||(o.related=[]),o.related.push(u.bilibili.web.interface_.v1.Arc.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.web.interface_.v1.ViewDetailReply)return t;let i=new u.bilibili.web.interface_.v1.ViewDetailReply;if(t.view!=null){if(typeof t.view!="object")throw TypeError(".bilibili.web.interface_.v1.ViewDetailReply.view: object expected");i.view=u.bilibili.web.interface_.v1.View.fromObject(t.view)}if(t.card!=null){if(typeof t.card!="object")throw TypeError(".bilibili.web.interface_.v1.ViewDetailReply.card: object expected");i.card=u.bilibili.web.interface_.v1.Card.fromObject(t.card)}if(t.tags){if(!Array.isArray(t.tags))throw TypeError(".bilibili.web.interface_.v1.ViewDetailReply.tags: array expected");i.tags=[];for(let n=0;n>>3){case 1:{o.arc=u.bilibili.web.interface_.v1.Arc.decode(t,t.uint32());break}case 2:{o.noCache=t.bool();break}case 3:{o.pages&&o.pages.length||(o.pages=[]),o.pages.push(u.bilibili.web.interface_.v1.Page.decode(t,t.uint32()));break}case 4:{o.subtitle=u.bilibili.web.interface_.v1.Subtitle.decode(t,t.uint32());break}case 5:{o.asset=u.bilibili.web.interface_.v1.UGCPayAsset.decode(t,t.uint32());break}case 6:{o.label=u.bilibili.web.interface_.v1.ViewLabel.decode(t,t.uint32());break}case 7:{o.staff&&o.staff.length||(o.staff=[]),o.staff.push(u.bilibili.web.interface_.v1.Staff.decode(t,t.uint32()));break}case 8:{o.ugcSeason=u.bilibili.web.interface_.v1.UGCSeason.decode(t,t.uint32());break}case 9:{o.steinGuideCid=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.web.interface_.v1.View)return t;let i=new u.bilibili.web.interface_.v1.View;if(t.arc!=null){if(typeof t.arc!="object")throw TypeError(".bilibili.web.interface_.v1.View.arc: object expected");i.arc=u.bilibili.web.interface_.v1.Arc.fromObject(t.arc)}if(t.noCache!=null&&(i.noCache=!!t.noCache),t.pages){if(!Array.isArray(t.pages))throw TypeError(".bilibili.web.interface_.v1.View.pages: array expected");i.pages=[];for(let n=0;n>>0,t.steinGuideCid.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if((i.arrays||i.defaults)&&(n.pages=[],n.staff=[]),i.defaults)if(n.arc=null,n.noCache=!1,n.subtitle=null,n.asset=null,n.label=null,n.ugcSeason=null,r.Long){let o=new r.Long(0,0,!1);n.steinGuideCid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.steinGuideCid=i.longs===String?"0":0;if(t.arc!=null&&t.hasOwnProperty("arc")&&(n.arc=u.bilibili.web.interface_.v1.Arc.toObject(t.arc,i)),t.noCache!=null&&t.hasOwnProperty("noCache")&&(n.noCache=t.noCache),t.pages&&t.pages.length){n.pages=[];for(let o=0;o>>0,t.steinGuideCid.high>>>0).toNumber():t.steinGuideCid),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.web.interface_.v1.View"},e}(),c.Rights=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.bp=t.int32();break}case 2:{o.elec=t.int32();break}case 3:{o.download=t.int32();break}case 4:{o.movie=t.int32();break}case 5:{o.pay=t.int32();break}case 6:{o.hd5=t.int32();break}case 7:{o.noReprint=t.int32();break}case 8:{o.autoplay=t.int32();break}case 9:{o.ugcPay=t.int32();break}case 10:{o.isCooperation=t.int32();break}case 11:{o.ugcPayPreview=t.int32();break}case 12:{o.arcPay=t.int32();break}case 13:{o.freeWatch=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.web.interface_.v1.Rights)return t;let i=new u.bilibili.web.interface_.v1.Rights;return t.bp!=null&&(i.bp=t.bp|0),t.elec!=null&&(i.elec=t.elec|0),t.download!=null&&(i.download=t.download|0),t.movie!=null&&(i.movie=t.movie|0),t.pay!=null&&(i.pay=t.pay|0),t.hd5!=null&&(i.hd5=t.hd5|0),t.noReprint!=null&&(i.noReprint=t.noReprint|0),t.autoplay!=null&&(i.autoplay=t.autoplay|0),t.ugcPay!=null&&(i.ugcPay=t.ugcPay|0),t.isCooperation!=null&&(i.isCooperation=t.isCooperation|0),t.ugcPayPreview!=null&&(i.ugcPayPreview=t.ugcPayPreview|0),t.arcPay!=null&&(i.arcPay=t.arcPay|0),t.freeWatch!=null&&(i.freeWatch=t.freeWatch|0),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.bp=0,n.elec=0,n.download=0,n.movie=0,n.pay=0,n.hd5=0,n.noReprint=0,n.autoplay=0,n.ugcPay=0,n.isCooperation=0,n.ugcPayPreview=0,n.arcPay=0,n.freeWatch=0),t.bp!=null&&t.hasOwnProperty("bp")&&(n.bp=t.bp),t.elec!=null&&t.hasOwnProperty("elec")&&(n.elec=t.elec),t.download!=null&&t.hasOwnProperty("download")&&(n.download=t.download),t.movie!=null&&t.hasOwnProperty("movie")&&(n.movie=t.movie),t.pay!=null&&t.hasOwnProperty("pay")&&(n.pay=t.pay),t.hd5!=null&&t.hasOwnProperty("hd5")&&(n.hd5=t.hd5),t.noReprint!=null&&t.hasOwnProperty("noReprint")&&(n.noReprint=t.noReprint),t.autoplay!=null&&t.hasOwnProperty("autoplay")&&(n.autoplay=t.autoplay),t.ugcPay!=null&&t.hasOwnProperty("ugcPay")&&(n.ugcPay=t.ugcPay),t.isCooperation!=null&&t.hasOwnProperty("isCooperation")&&(n.isCooperation=t.isCooperation),t.ugcPayPreview!=null&&t.hasOwnProperty("ugcPayPreview")&&(n.ugcPayPreview=t.ugcPayPreview),t.arcPay!=null&&t.hasOwnProperty("arcPay")&&(n.arcPay=t.arcPay),t.freeWatch!=null&&t.hasOwnProperty("freeWatch")&&(n.freeWatch=t.freeWatch),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.web.interface_.v1.Rights"},e}(),c.Author=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.mid=t.int64();break}case 2:{o.name=t.string();break}case 3:{o.face=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.web.interface_.v1.Author)return t;let i=new u.bilibili.web.interface_.v1.Author;return t.mid!=null&&(r.Long?(i.mid=r.Long.fromValue(t.mid)).unsigned=!1:typeof t.mid=="string"?i.mid=parseInt(t.mid,10):typeof t.mid=="number"?i.mid=t.mid:typeof t.mid=="object"&&(i.mid=new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber())),t.name!=null&&(i.name=String(t.name)),t.face!=null&&(i.face=String(t.face)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.mid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mid=i.longs===String?"0":0;n.name="",n.face=""}return t.mid!=null&&t.hasOwnProperty("mid")&&(typeof t.mid=="number"?n.mid=i.longs===String?String(t.mid):t.mid:n.mid=i.longs===String?r.Long.prototype.toString.call(t.mid):i.longs===Number?new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber():t.mid),t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),t.face!=null&&t.hasOwnProperty("face")&&(n.face=t.face),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.web.interface_.v1.Author"},e}(),c.Stat=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.aid=t.int64();break}case 2:{o.view=t.int32();break}case 3:{o.danmaku=t.int32();break}case 4:{o.reply=t.int32();break}case 5:{o.fav=t.int32();break}case 6:{o.coin=t.int32();break}case 7:{o.share=t.int32();break}case 8:{o.nowRank=t.int32();break}case 9:{o.hisRank=t.int32();break}case 10:{o.like=t.int32();break}case 11:{o.dislike=t.int32();break}case 12:{o.evaluation=t.string();break}case 13:{o.argueMsg=t.string();break}case 14:{o.vt=t.int64();break}case 15:{o.vv=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.web.interface_.v1.Stat)return t;let i=new u.bilibili.web.interface_.v1.Stat;return t.aid!=null&&(r.Long?(i.aid=r.Long.fromValue(t.aid)).unsigned=!1:typeof t.aid=="string"?i.aid=parseInt(t.aid,10):typeof t.aid=="number"?i.aid=t.aid:typeof t.aid=="object"&&(i.aid=new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber())),t.view!=null&&(i.view=t.view|0),t.danmaku!=null&&(i.danmaku=t.danmaku|0),t.reply!=null&&(i.reply=t.reply|0),t.fav!=null&&(i.fav=t.fav|0),t.coin!=null&&(i.coin=t.coin|0),t.share!=null&&(i.share=t.share|0),t.nowRank!=null&&(i.nowRank=t.nowRank|0),t.hisRank!=null&&(i.hisRank=t.hisRank|0),t.like!=null&&(i.like=t.like|0),t.dislike!=null&&(i.dislike=t.dislike|0),t.evaluation!=null&&(i.evaluation=String(t.evaluation)),t.argueMsg!=null&&(i.argueMsg=String(t.argueMsg)),t.vt!=null&&(r.Long?(i.vt=r.Long.fromValue(t.vt)).unsigned=!1:typeof t.vt=="string"?i.vt=parseInt(t.vt,10):typeof t.vt=="number"?i.vt=t.vt:typeof t.vt=="object"&&(i.vt=new r.LongBits(t.vt.low>>>0,t.vt.high>>>0).toNumber())),t.vv!=null&&(r.Long?(i.vv=r.Long.fromValue(t.vv)).unsigned=!1:typeof t.vv=="string"?i.vv=parseInt(t.vv,10):typeof t.vv=="number"?i.vv=t.vv:typeof t.vv=="object"&&(i.vv=new r.LongBits(t.vv.low>>>0,t.vv.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.aid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.aid=i.longs===String?"0":0;if(n.view=0,n.danmaku=0,n.reply=0,n.fav=0,n.coin=0,n.share=0,n.nowRank=0,n.hisRank=0,n.like=0,n.dislike=0,n.evaluation="",n.argueMsg="",r.Long){let o=new r.Long(0,0,!1);n.vt=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.vt=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.vv=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.vv=i.longs===String?"0":0}return t.aid!=null&&t.hasOwnProperty("aid")&&(typeof t.aid=="number"?n.aid=i.longs===String?String(t.aid):t.aid:n.aid=i.longs===String?r.Long.prototype.toString.call(t.aid):i.longs===Number?new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber():t.aid),t.view!=null&&t.hasOwnProperty("view")&&(n.view=t.view),t.danmaku!=null&&t.hasOwnProperty("danmaku")&&(n.danmaku=t.danmaku),t.reply!=null&&t.hasOwnProperty("reply")&&(n.reply=t.reply),t.fav!=null&&t.hasOwnProperty("fav")&&(n.fav=t.fav),t.coin!=null&&t.hasOwnProperty("coin")&&(n.coin=t.coin),t.share!=null&&t.hasOwnProperty("share")&&(n.share=t.share),t.nowRank!=null&&t.hasOwnProperty("nowRank")&&(n.nowRank=t.nowRank),t.hisRank!=null&&t.hasOwnProperty("hisRank")&&(n.hisRank=t.hisRank),t.like!=null&&t.hasOwnProperty("like")&&(n.like=t.like),t.dislike!=null&&t.hasOwnProperty("dislike")&&(n.dislike=t.dislike),t.evaluation!=null&&t.hasOwnProperty("evaluation")&&(n.evaluation=t.evaluation),t.argueMsg!=null&&t.hasOwnProperty("argueMsg")&&(n.argueMsg=t.argueMsg),t.vt!=null&&t.hasOwnProperty("vt")&&(typeof t.vt=="number"?n.vt=i.longs===String?String(t.vt):t.vt:n.vt=i.longs===String?r.Long.prototype.toString.call(t.vt):i.longs===Number?new r.LongBits(t.vt.low>>>0,t.vt.high>>>0).toNumber():t.vt),t.vv!=null&&t.hasOwnProperty("vv")&&(typeof t.vv=="number"?n.vv=i.longs===String?String(t.vv):t.vv:n.vv=i.longs===String?r.Long.prototype.toString.call(t.vv):i.longs===Number?new r.LongBits(t.vv.low>>>0,t.vv.high>>>0).toNumber():t.vv),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.web.interface_.v1.Stat"},e}(),c.Page=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.cid=t.int64();break}case 2:{o.page=t.int32();break}case 3:{o.from=t.string();break}case 4:{o.part=t.string();break}case 5:{o.duration=t.int64();break}case 6:{o.vid=t.string();break}case 7:{o.desc=t.string();break}case 8:{o.weblink=t.string();break}case 9:{o.dimension=u.bilibili.web.interface_.v1.Dimension.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.web.interface_.v1.Page)return t;let i=new u.bilibili.web.interface_.v1.Page;if(t.cid!=null&&(r.Long?(i.cid=r.Long.fromValue(t.cid)).unsigned=!1:typeof t.cid=="string"?i.cid=parseInt(t.cid,10):typeof t.cid=="number"?i.cid=t.cid:typeof t.cid=="object"&&(i.cid=new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber())),t.page!=null&&(i.page=t.page|0),t.from!=null&&(i.from=String(t.from)),t.part!=null&&(i.part=String(t.part)),t.duration!=null&&(r.Long?(i.duration=r.Long.fromValue(t.duration)).unsigned=!1:typeof t.duration=="string"?i.duration=parseInt(t.duration,10):typeof t.duration=="number"?i.duration=t.duration:typeof t.duration=="object"&&(i.duration=new r.LongBits(t.duration.low>>>0,t.duration.high>>>0).toNumber())),t.vid!=null&&(i.vid=String(t.vid)),t.desc!=null&&(i.desc=String(t.desc)),t.weblink!=null&&(i.weblink=String(t.weblink)),t.dimension!=null){if(typeof t.dimension!="object")throw TypeError(".bilibili.web.interface_.v1.Page.dimension: object expected");i.dimension=u.bilibili.web.interface_.v1.Dimension.fromObject(t.dimension)}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.cid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.cid=i.longs===String?"0":0;if(n.page=0,n.from="",n.part="",r.Long){let o=new r.Long(0,0,!1);n.duration=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.duration=i.longs===String?"0":0;n.vid="",n.desc="",n.weblink="",n.dimension=null}return t.cid!=null&&t.hasOwnProperty("cid")&&(typeof t.cid=="number"?n.cid=i.longs===String?String(t.cid):t.cid:n.cid=i.longs===String?r.Long.prototype.toString.call(t.cid):i.longs===Number?new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber():t.cid),t.page!=null&&t.hasOwnProperty("page")&&(n.page=t.page),t.from!=null&&t.hasOwnProperty("from")&&(n.from=t.from),t.part!=null&&t.hasOwnProperty("part")&&(n.part=t.part),t.duration!=null&&t.hasOwnProperty("duration")&&(typeof t.duration=="number"?n.duration=i.longs===String?String(t.duration):t.duration:n.duration=i.longs===String?r.Long.prototype.toString.call(t.duration):i.longs===Number?new r.LongBits(t.duration.low>>>0,t.duration.high>>>0).toNumber():t.duration),t.vid!=null&&t.hasOwnProperty("vid")&&(n.vid=t.vid),t.desc!=null&&t.hasOwnProperty("desc")&&(n.desc=t.desc),t.weblink!=null&&t.hasOwnProperty("weblink")&&(n.weblink=t.weblink),t.dimension!=null&&t.hasOwnProperty("dimension")&&(n.dimension=u.bilibili.web.interface_.v1.Dimension.toObject(t.dimension,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.web.interface_.v1.Page"},e}(),c.Dimension=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.width=t.int64();break}case 2:{o.height=t.int64();break}case 3:{o.rotate=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.web.interface_.v1.Dimension)return t;let i=new u.bilibili.web.interface_.v1.Dimension;return t.width!=null&&(r.Long?(i.width=r.Long.fromValue(t.width)).unsigned=!1:typeof t.width=="string"?i.width=parseInt(t.width,10):typeof t.width=="number"?i.width=t.width:typeof t.width=="object"&&(i.width=new r.LongBits(t.width.low>>>0,t.width.high>>>0).toNumber())),t.height!=null&&(r.Long?(i.height=r.Long.fromValue(t.height)).unsigned=!1:typeof t.height=="string"?i.height=parseInt(t.height,10):typeof t.height=="number"?i.height=t.height:typeof t.height=="object"&&(i.height=new r.LongBits(t.height.low>>>0,t.height.high>>>0).toNumber())),t.rotate!=null&&(r.Long?(i.rotate=r.Long.fromValue(t.rotate)).unsigned=!1:typeof t.rotate=="string"?i.rotate=parseInt(t.rotate,10):typeof t.rotate=="number"?i.rotate=t.rotate:typeof t.rotate=="object"&&(i.rotate=new r.LongBits(t.rotate.low>>>0,t.rotate.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.width=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.width=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.height=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.height=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.rotate=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.rotate=i.longs===String?"0":0}return t.width!=null&&t.hasOwnProperty("width")&&(typeof t.width=="number"?n.width=i.longs===String?String(t.width):t.width:n.width=i.longs===String?r.Long.prototype.toString.call(t.width):i.longs===Number?new r.LongBits(t.width.low>>>0,t.width.high>>>0).toNumber():t.width),t.height!=null&&t.hasOwnProperty("height")&&(typeof t.height=="number"?n.height=i.longs===String?String(t.height):t.height:n.height=i.longs===String?r.Long.prototype.toString.call(t.height):i.longs===Number?new r.LongBits(t.height.low>>>0,t.height.high>>>0).toNumber():t.height),t.rotate!=null&&t.hasOwnProperty("rotate")&&(typeof t.rotate=="number"?n.rotate=i.longs===String?String(t.rotate):t.rotate:n.rotate=i.longs===String?r.Long.prototype.toString.call(t.rotate):i.longs===Number?new r.LongBits(t.rotate.low>>>0,t.rotate.high>>>0).toNumber():t.rotate),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.web.interface_.v1.Dimension"},e}(),c.Subtitle=function(){function e(l){if(this.list=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.allowSubmit=t.bool();break}case 2:{o.list&&o.list.length||(o.list=[]),o.list.push(u.bilibili.web.interface_.v1.SubtitleItem.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.web.interface_.v1.Subtitle)return t;let i=new u.bilibili.web.interface_.v1.Subtitle;if(t.allowSubmit!=null&&(i.allowSubmit=!!t.allowSubmit),t.list){if(!Array.isArray(t.list))throw TypeError(".bilibili.web.interface_.v1.Subtitle.list: array expected");i.list=[];for(let n=0;n>>3){case 1:{o.id=t.int64();break}case 2:{o.lan=t.string();break}case 3:{o.lanDoc=t.string();break}case 4:{o.isLock=t.bool();break}case 5:{o.authorMid=t.int64();break}case 6:{o.subtitleUrl=t.string();break}case 7:{o.author=u.bilibili.web.interface_.v1.AccInfo.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.web.interface_.v1.SubtitleItem)return t;let i=new u.bilibili.web.interface_.v1.SubtitleItem;if(t.id!=null&&(r.Long?(i.id=r.Long.fromValue(t.id)).unsigned=!1:typeof t.id=="string"?i.id=parseInt(t.id,10):typeof t.id=="number"?i.id=t.id:typeof t.id=="object"&&(i.id=new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber())),t.lan!=null&&(i.lan=String(t.lan)),t.lanDoc!=null&&(i.lanDoc=String(t.lanDoc)),t.isLock!=null&&(i.isLock=!!t.isLock),t.authorMid!=null&&(r.Long?(i.authorMid=r.Long.fromValue(t.authorMid)).unsigned=!1:typeof t.authorMid=="string"?i.authorMid=parseInt(t.authorMid,10):typeof t.authorMid=="number"?i.authorMid=t.authorMid:typeof t.authorMid=="object"&&(i.authorMid=new r.LongBits(t.authorMid.low>>>0,t.authorMid.high>>>0).toNumber())),t.subtitleUrl!=null&&(i.subtitleUrl=String(t.subtitleUrl)),t.author!=null){if(typeof t.author!="object")throw TypeError(".bilibili.web.interface_.v1.SubtitleItem.author: object expected");i.author=u.bilibili.web.interface_.v1.AccInfo.fromObject(t.author)}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.id=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.id=i.longs===String?"0":0;if(n.lan="",n.lanDoc="",n.isLock=!1,r.Long){let o=new r.Long(0,0,!1);n.authorMid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.authorMid=i.longs===String?"0":0;n.subtitleUrl="",n.author=null}return t.id!=null&&t.hasOwnProperty("id")&&(typeof t.id=="number"?n.id=i.longs===String?String(t.id):t.id:n.id=i.longs===String?r.Long.prototype.toString.call(t.id):i.longs===Number?new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber():t.id),t.lan!=null&&t.hasOwnProperty("lan")&&(n.lan=t.lan),t.lanDoc!=null&&t.hasOwnProperty("lanDoc")&&(n.lanDoc=t.lanDoc),t.isLock!=null&&t.hasOwnProperty("isLock")&&(n.isLock=t.isLock),t.authorMid!=null&&t.hasOwnProperty("authorMid")&&(typeof t.authorMid=="number"?n.authorMid=i.longs===String?String(t.authorMid):t.authorMid:n.authorMid=i.longs===String?r.Long.prototype.toString.call(t.authorMid):i.longs===Number?new r.LongBits(t.authorMid.low>>>0,t.authorMid.high>>>0).toNumber():t.authorMid),t.subtitleUrl!=null&&t.hasOwnProperty("subtitleUrl")&&(n.subtitleUrl=t.subtitleUrl),t.author!=null&&t.hasOwnProperty("author")&&(n.author=u.bilibili.web.interface_.v1.AccInfo.toObject(t.author,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.web.interface_.v1.SubtitleItem"},e}(),c.AccInfo=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.mid=t.int64();break}case 2:{o.name=t.string();break}case 3:{o.sex=t.string();break}case 4:{o.face=t.string();break}case 5:{o.sign=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.web.interface_.v1.AccInfo)return t;let i=new u.bilibili.web.interface_.v1.AccInfo;return t.mid!=null&&(r.Long?(i.mid=r.Long.fromValue(t.mid)).unsigned=!1:typeof t.mid=="string"?i.mid=parseInt(t.mid,10):typeof t.mid=="number"?i.mid=t.mid:typeof t.mid=="object"&&(i.mid=new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber())),t.name!=null&&(i.name=String(t.name)),t.sex!=null&&(i.sex=String(t.sex)),t.face!=null&&(i.face=String(t.face)),t.sign!=null&&(i.sign=String(t.sign)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.mid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mid=i.longs===String?"0":0;n.name="",n.sex="",n.face="",n.sign=""}return t.mid!=null&&t.hasOwnProperty("mid")&&(typeof t.mid=="number"?n.mid=i.longs===String?String(t.mid):t.mid:n.mid=i.longs===String?r.Long.prototype.toString.call(t.mid):i.longs===Number?new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber():t.mid),t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),t.sex!=null&&t.hasOwnProperty("sex")&&(n.sex=t.sex),t.face!=null&&t.hasOwnProperty("face")&&(n.face=t.face),t.sign!=null&&t.hasOwnProperty("sign")&&(n.sign=t.sign),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.web.interface_.v1.AccInfo"},e}(),c.UGCPayAsset=function(){function e(l){if(this.platformPrice={},l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.price=t.int64();break}case 2:{o.platformPrice===r.emptyObject&&(o.platformPrice={});let v=t.uint32()+t.pos;for(a="",y=0;t.pos>>3){case 1:a=t.string();break;case 2:y=t.int64();break;default:t.skipType(g&7);break}}o.platformPrice[a]=y;break}default:t.skipType(s&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.web.interface_.v1.UGCPayAsset)return t;let i=new u.bilibili.web.interface_.v1.UGCPayAsset;if(t.price!=null&&(r.Long?(i.price=r.Long.fromValue(t.price)).unsigned=!1:typeof t.price=="string"?i.price=parseInt(t.price,10):typeof t.price=="number"?i.price=t.price:typeof t.price=="object"&&(i.price=new r.LongBits(t.price.low>>>0,t.price.high>>>0).toNumber())),t.platformPrice){if(typeof t.platformPrice!="object")throw TypeError(".bilibili.web.interface_.v1.UGCPayAsset.platformPrice: object expected");i.platformPrice={};for(let n=Object.keys(t.platformPrice),o=0;o>>0,t.platformPrice[n[o]].high>>>0).toNumber())}return i},e.toObject=function(t,i){i||(i={});let n={};if((i.objects||i.defaults)&&(n.platformPrice={}),i.defaults)if(r.Long){let a=new r.Long(0,0,!1);n.price=i.longs===String?a.toString():i.longs===Number?a.toNumber():a}else n.price=i.longs===String?"0":0;t.price!=null&&t.hasOwnProperty("price")&&(typeof t.price=="number"?n.price=i.longs===String?String(t.price):t.price:n.price=i.longs===String?r.Long.prototype.toString.call(t.price):i.longs===Number?new r.LongBits(t.price.low>>>0,t.price.high>>>0).toNumber():t.price);let o;if(t.platformPrice&&(o=Object.keys(t.platformPrice)).length){n.platformPrice={};for(let a=0;a>>0,t.platformPrice[o[a]].high>>>0).toNumber():t.platformPrice[o[a]]}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.web.interface_.v1.UGCPayAsset"},e}(),c.ViewLabel=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.type=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.web.interface_.v1.ViewLabel)return t;let i=new u.bilibili.web.interface_.v1.ViewLabel;return t.type!=null&&(r.Long?(i.type=r.Long.fromValue(t.type)).unsigned=!1:typeof t.type=="string"?i.type=parseInt(t.type,10):typeof t.type=="number"?i.type=t.type:typeof t.type=="object"&&(i.type=new r.LongBits(t.type.low>>>0,t.type.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(r.Long){let o=new r.Long(0,0,!1);n.type=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.type=i.longs===String?"0":0;return t.type!=null&&t.hasOwnProperty("type")&&(typeof t.type=="number"?n.type=i.longs===String?String(t.type):t.type:n.type=i.longs===String?r.Long.prototype.toString.call(t.type):i.longs===Number?new r.LongBits(t.type.low>>>0,t.type.high>>>0).toNumber():t.type),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.web.interface_.v1.ViewLabel"},e}(),c.Staff=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.mid=t.int64();break}case 2:{o.title=t.string();break}case 3:{o.name=t.string();break}case 4:{o.face=t.string();break}case 5:{o.vip=u.bilibili.web.interface_.v1.VipInfo.decode(t,t.uint32());break}case 6:{o.official=u.bilibili.web.interface_.v1.OfficialInfo.decode(t,t.uint32());break}case 7:{o.follower=t.int64();break}case 8:{o.labelStyle=t.int32();break}case 9:{o.relation=u.bilibili.web.interface_.v1.Relation.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.web.interface_.v1.Staff)return t;let i=new u.bilibili.web.interface_.v1.Staff;if(t.mid!=null&&(r.Long?(i.mid=r.Long.fromValue(t.mid)).unsigned=!1:typeof t.mid=="string"?i.mid=parseInt(t.mid,10):typeof t.mid=="number"?i.mid=t.mid:typeof t.mid=="object"&&(i.mid=new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber())),t.title!=null&&(i.title=String(t.title)),t.name!=null&&(i.name=String(t.name)),t.face!=null&&(i.face=String(t.face)),t.vip!=null){if(typeof t.vip!="object")throw TypeError(".bilibili.web.interface_.v1.Staff.vip: object expected");i.vip=u.bilibili.web.interface_.v1.VipInfo.fromObject(t.vip)}if(t.official!=null){if(typeof t.official!="object")throw TypeError(".bilibili.web.interface_.v1.Staff.official: object expected");i.official=u.bilibili.web.interface_.v1.OfficialInfo.fromObject(t.official)}if(t.follower!=null&&(r.Long?(i.follower=r.Long.fromValue(t.follower)).unsigned=!1:typeof t.follower=="string"?i.follower=parseInt(t.follower,10):typeof t.follower=="number"?i.follower=t.follower:typeof t.follower=="object"&&(i.follower=new r.LongBits(t.follower.low>>>0,t.follower.high>>>0).toNumber())),t.labelStyle!=null&&(i.labelStyle=t.labelStyle|0),t.relation!=null){if(typeof t.relation!="object")throw TypeError(".bilibili.web.interface_.v1.Staff.relation: object expected");i.relation=u.bilibili.web.interface_.v1.Relation.fromObject(t.relation)}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.mid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mid=i.longs===String?"0":0;if(n.title="",n.name="",n.face="",n.vip=null,n.official=null,r.Long){let o=new r.Long(0,0,!1);n.follower=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.follower=i.longs===String?"0":0;n.labelStyle=0,n.relation=null}return t.mid!=null&&t.hasOwnProperty("mid")&&(typeof t.mid=="number"?n.mid=i.longs===String?String(t.mid):t.mid:n.mid=i.longs===String?r.Long.prototype.toString.call(t.mid):i.longs===Number?new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber():t.mid),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),t.face!=null&&t.hasOwnProperty("face")&&(n.face=t.face),t.vip!=null&&t.hasOwnProperty("vip")&&(n.vip=u.bilibili.web.interface_.v1.VipInfo.toObject(t.vip,i)),t.official!=null&&t.hasOwnProperty("official")&&(n.official=u.bilibili.web.interface_.v1.OfficialInfo.toObject(t.official,i)),t.follower!=null&&t.hasOwnProperty("follower")&&(typeof t.follower=="number"?n.follower=i.longs===String?String(t.follower):t.follower:n.follower=i.longs===String?r.Long.prototype.toString.call(t.follower):i.longs===Number?new r.LongBits(t.follower.low>>>0,t.follower.high>>>0).toNumber():t.follower),t.labelStyle!=null&&t.hasOwnProperty("labelStyle")&&(n.labelStyle=t.labelStyle),t.relation!=null&&t.hasOwnProperty("relation")&&(n.relation=u.bilibili.web.interface_.v1.Relation.toObject(t.relation,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.web.interface_.v1.Staff"},e}(),c.Relation=function(){function e(l){if(this.tag=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.attribute=t.int64();break}case 2:{if(o.tag&&o.tag.length||(o.tag=[]),(a&7)===2){let y=t.uint32()+t.pos;for(;t.pos>>0,t.attribute.high>>>0).toNumber())),t.tag){if(!Array.isArray(t.tag))throw TypeError(".bilibili.web.interface_.v1.Relation.tag: array expected");i.tag=[];for(let n=0;n>>0,t.tag[n].high>>>0).toNumber())}return t.special!=null&&(r.Long?(i.special=r.Long.fromValue(t.special)).unsigned=!1:typeof t.special=="string"?i.special=parseInt(t.special,10):typeof t.special=="number"?i.special=t.special:typeof t.special=="object"&&(i.special=new r.LongBits(t.special.low>>>0,t.special.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if((i.arrays||i.defaults)&&(n.tag=[]),i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.attribute=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.attribute=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.special=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.special=i.longs===String?"0":0}if(t.attribute!=null&&t.hasOwnProperty("attribute")&&(typeof t.attribute=="number"?n.attribute=i.longs===String?String(t.attribute):t.attribute:n.attribute=i.longs===String?r.Long.prototype.toString.call(t.attribute):i.longs===Number?new r.LongBits(t.attribute.low>>>0,t.attribute.high>>>0).toNumber():t.attribute),t.tag&&t.tag.length){n.tag=[];for(let o=0;o>>0,t.tag[o].high>>>0).toNumber():t.tag[o]}return t.special!=null&&t.hasOwnProperty("special")&&(typeof t.special=="number"?n.special=i.longs===String?String(t.special):t.special:n.special=i.longs===String?r.Long.prototype.toString.call(t.special):i.longs===Number?new r.LongBits(t.special.low>>>0,t.special.high>>>0).toNumber():t.special),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.web.interface_.v1.Relation"},e}(),c.VipInfo=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.type=t.int32();break}case 2:{o.status=t.int32();break}case 3:{o.vipPayType=t.int32();break}case 4:{o.themeType=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.web.interface_.v1.VipInfo)return t;let i=new u.bilibili.web.interface_.v1.VipInfo;return t.type!=null&&(i.type=t.type|0),t.status!=null&&(i.status=t.status|0),t.vipPayType!=null&&(i.vipPayType=t.vipPayType|0),t.themeType!=null&&(i.themeType=t.themeType|0),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.type=0,n.status=0,n.vipPayType=0,n.themeType=0),t.type!=null&&t.hasOwnProperty("type")&&(n.type=t.type),t.status!=null&&t.hasOwnProperty("status")&&(n.status=t.status),t.vipPayType!=null&&t.hasOwnProperty("vipPayType")&&(n.vipPayType=t.vipPayType),t.themeType!=null&&t.hasOwnProperty("themeType")&&(n.themeType=t.themeType),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.web.interface_.v1.VipInfo"},e}(),c.OfficialInfo=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.role=t.int32();break}case 2:{o.title=t.string();break}case 3:{o.desc=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.web.interface_.v1.OfficialInfo)return t;let i=new u.bilibili.web.interface_.v1.OfficialInfo;return t.role!=null&&(i.role=t.role|0),t.title!=null&&(i.title=String(t.title)),t.desc!=null&&(i.desc=String(t.desc)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.role=0,n.title="",n.desc=""),t.role!=null&&t.hasOwnProperty("role")&&(n.role=t.role),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.desc!=null&&t.hasOwnProperty("desc")&&(n.desc=t.desc),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.web.interface_.v1.OfficialInfo"},e}(),c.UGCSeason=function(){function e(l){if(this.sections=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.id=t.int64();break}case 2:{o.title=t.string();break}case 3:{o.cover=t.string();break}case 4:{o.mid=t.int64();break}case 5:{o.intro=t.string();break}case 6:{o.signState=t.int32();break}case 7:{o.attribute=t.int64();break}case 8:{o.sections&&o.sections.length||(o.sections=[]),o.sections.push(u.bilibili.web.interface_.v1.SeasonSection.decode(t,t.uint32()));break}case 9:{o.stat=u.bilibili.web.interface_.v1.SeasonStat.decode(t,t.uint32());break}case 10:{o.epCount=t.int64();break}case 11:{o.SeasonType=t.int64();break}case 12:{o.isPaySeason=t.bool();break}case 13:{o.enableVt=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.web.interface_.v1.UGCSeason)return t;let i=new u.bilibili.web.interface_.v1.UGCSeason;if(t.id!=null&&(r.Long?(i.id=r.Long.fromValue(t.id)).unsigned=!1:typeof t.id=="string"?i.id=parseInt(t.id,10):typeof t.id=="number"?i.id=t.id:typeof t.id=="object"&&(i.id=new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber())),t.title!=null&&(i.title=String(t.title)),t.cover!=null&&(i.cover=String(t.cover)),t.mid!=null&&(r.Long?(i.mid=r.Long.fromValue(t.mid)).unsigned=!1:typeof t.mid=="string"?i.mid=parseInt(t.mid,10):typeof t.mid=="number"?i.mid=t.mid:typeof t.mid=="object"&&(i.mid=new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber())),t.intro!=null&&(i.intro=String(t.intro)),t.signState!=null&&(i.signState=t.signState|0),t.attribute!=null&&(r.Long?(i.attribute=r.Long.fromValue(t.attribute)).unsigned=!1:typeof t.attribute=="string"?i.attribute=parseInt(t.attribute,10):typeof t.attribute=="number"?i.attribute=t.attribute:typeof t.attribute=="object"&&(i.attribute=new r.LongBits(t.attribute.low>>>0,t.attribute.high>>>0).toNumber())),t.sections){if(!Array.isArray(t.sections))throw TypeError(".bilibili.web.interface_.v1.UGCSeason.sections: array expected");i.sections=[];for(let n=0;n>>0,t.epCount.high>>>0).toNumber())),t.SeasonType!=null&&(r.Long?(i.SeasonType=r.Long.fromValue(t.SeasonType)).unsigned=!1:typeof t.SeasonType=="string"?i.SeasonType=parseInt(t.SeasonType,10):typeof t.SeasonType=="number"?i.SeasonType=t.SeasonType:typeof t.SeasonType=="object"&&(i.SeasonType=new r.LongBits(t.SeasonType.low>>>0,t.SeasonType.high>>>0).toNumber())),t.isPaySeason!=null&&(i.isPaySeason=!!t.isPaySeason),t.enableVt!=null&&(i.enableVt=t.enableVt|0),i},e.toObject=function(t,i){i||(i={});let n={};if((i.arrays||i.defaults)&&(n.sections=[]),i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.id=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.id=i.longs===String?"0":0;if(n.title="",n.cover="",r.Long){let o=new r.Long(0,0,!1);n.mid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mid=i.longs===String?"0":0;if(n.intro="",n.signState=0,r.Long){let o=new r.Long(0,0,!1);n.attribute=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.attribute=i.longs===String?"0":0;if(n.stat=null,r.Long){let o=new r.Long(0,0,!1);n.epCount=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.epCount=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.SeasonType=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.SeasonType=i.longs===String?"0":0;n.isPaySeason=!1,n.enableVt=0}if(t.id!=null&&t.hasOwnProperty("id")&&(typeof t.id=="number"?n.id=i.longs===String?String(t.id):t.id:n.id=i.longs===String?r.Long.prototype.toString.call(t.id):i.longs===Number?new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber():t.id),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.cover!=null&&t.hasOwnProperty("cover")&&(n.cover=t.cover),t.mid!=null&&t.hasOwnProperty("mid")&&(typeof t.mid=="number"?n.mid=i.longs===String?String(t.mid):t.mid:n.mid=i.longs===String?r.Long.prototype.toString.call(t.mid):i.longs===Number?new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber():t.mid),t.intro!=null&&t.hasOwnProperty("intro")&&(n.intro=t.intro),t.signState!=null&&t.hasOwnProperty("signState")&&(n.signState=t.signState),t.attribute!=null&&t.hasOwnProperty("attribute")&&(typeof t.attribute=="number"?n.attribute=i.longs===String?String(t.attribute):t.attribute:n.attribute=i.longs===String?r.Long.prototype.toString.call(t.attribute):i.longs===Number?new r.LongBits(t.attribute.low>>>0,t.attribute.high>>>0).toNumber():t.attribute),t.sections&&t.sections.length){n.sections=[];for(let o=0;o>>0,t.epCount.high>>>0).toNumber():t.epCount),t.SeasonType!=null&&t.hasOwnProperty("SeasonType")&&(typeof t.SeasonType=="number"?n.SeasonType=i.longs===String?String(t.SeasonType):t.SeasonType:n.SeasonType=i.longs===String?r.Long.prototype.toString.call(t.SeasonType):i.longs===Number?new r.LongBits(t.SeasonType.low>>>0,t.SeasonType.high>>>0).toNumber():t.SeasonType),t.isPaySeason!=null&&t.hasOwnProperty("isPaySeason")&&(n.isPaySeason=t.isPaySeason),t.enableVt!=null&&t.hasOwnProperty("enableVt")&&(n.enableVt=t.enableVt),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.web.interface_.v1.UGCSeason"},e}(),c.SeasonSection=function(){function e(l){if(this.episodes=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.seasonId=t.int64();break}case 2:{o.id=t.int64();break}case 3:{o.title=t.string();break}case 4:{o.type=t.int64();break}case 5:{o.episodes&&o.episodes.length||(o.episodes=[]),o.episodes.push(u.bilibili.web.interface_.v1.SeasonEpisode.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.web.interface_.v1.SeasonSection)return t;let i=new u.bilibili.web.interface_.v1.SeasonSection;if(t.seasonId!=null&&(r.Long?(i.seasonId=r.Long.fromValue(t.seasonId)).unsigned=!1:typeof t.seasonId=="string"?i.seasonId=parseInt(t.seasonId,10):typeof t.seasonId=="number"?i.seasonId=t.seasonId:typeof t.seasonId=="object"&&(i.seasonId=new r.LongBits(t.seasonId.low>>>0,t.seasonId.high>>>0).toNumber())),t.id!=null&&(r.Long?(i.id=r.Long.fromValue(t.id)).unsigned=!1:typeof t.id=="string"?i.id=parseInt(t.id,10):typeof t.id=="number"?i.id=t.id:typeof t.id=="object"&&(i.id=new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber())),t.title!=null&&(i.title=String(t.title)),t.type!=null&&(r.Long?(i.type=r.Long.fromValue(t.type)).unsigned=!1:typeof t.type=="string"?i.type=parseInt(t.type,10):typeof t.type=="number"?i.type=t.type:typeof t.type=="object"&&(i.type=new r.LongBits(t.type.low>>>0,t.type.high>>>0).toNumber())),t.episodes){if(!Array.isArray(t.episodes))throw TypeError(".bilibili.web.interface_.v1.SeasonSection.episodes: array expected");i.episodes=[];for(let n=0;n>>0,t.seasonId.high>>>0).toNumber():t.seasonId),t.id!=null&&t.hasOwnProperty("id")&&(typeof t.id=="number"?n.id=i.longs===String?String(t.id):t.id:n.id=i.longs===String?r.Long.prototype.toString.call(t.id):i.longs===Number?new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber():t.id),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.type!=null&&t.hasOwnProperty("type")&&(typeof t.type=="number"?n.type=i.longs===String?String(t.type):t.type:n.type=i.longs===String?r.Long.prototype.toString.call(t.type):i.longs===Number?new r.LongBits(t.type.low>>>0,t.type.high>>>0).toNumber():t.type),t.episodes&&t.episodes.length){n.episodes=[];for(let o=0;o>>3){case 1:{o.seasonId=t.int64();break}case 2:{o.sectionId=t.int64();break}case 3:{o.id=t.int64();break}case 4:{o.aid=t.int64();break}case 5:{o.cid=t.int64();break}case 6:{o.title=t.string();break}case 7:{o.attribute=t.int64();break}case 8:{o.arc=u.bilibili.web.interface_.v1.Arc.decode(t,t.uint32());break}case 9:{o.page=u.bilibili.web.interface_.v1.Page.decode(t,t.uint32());break}case 10:{o.bvid=t.string();break}case 11:{o.badgeStyle=u.bilibili.web.interface_.v1.ReasonStyle.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.web.interface_.v1.SeasonEpisode)return t;let i=new u.bilibili.web.interface_.v1.SeasonEpisode;if(t.seasonId!=null&&(r.Long?(i.seasonId=r.Long.fromValue(t.seasonId)).unsigned=!1:typeof t.seasonId=="string"?i.seasonId=parseInt(t.seasonId,10):typeof t.seasonId=="number"?i.seasonId=t.seasonId:typeof t.seasonId=="object"&&(i.seasonId=new r.LongBits(t.seasonId.low>>>0,t.seasonId.high>>>0).toNumber())),t.sectionId!=null&&(r.Long?(i.sectionId=r.Long.fromValue(t.sectionId)).unsigned=!1:typeof t.sectionId=="string"?i.sectionId=parseInt(t.sectionId,10):typeof t.sectionId=="number"?i.sectionId=t.sectionId:typeof t.sectionId=="object"&&(i.sectionId=new r.LongBits(t.sectionId.low>>>0,t.sectionId.high>>>0).toNumber())),t.id!=null&&(r.Long?(i.id=r.Long.fromValue(t.id)).unsigned=!1:typeof t.id=="string"?i.id=parseInt(t.id,10):typeof t.id=="number"?i.id=t.id:typeof t.id=="object"&&(i.id=new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber())),t.aid!=null&&(r.Long?(i.aid=r.Long.fromValue(t.aid)).unsigned=!1:typeof t.aid=="string"?i.aid=parseInt(t.aid,10):typeof t.aid=="number"?i.aid=t.aid:typeof t.aid=="object"&&(i.aid=new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber())),t.cid!=null&&(r.Long?(i.cid=r.Long.fromValue(t.cid)).unsigned=!1:typeof t.cid=="string"?i.cid=parseInt(t.cid,10):typeof t.cid=="number"?i.cid=t.cid:typeof t.cid=="object"&&(i.cid=new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber())),t.title!=null&&(i.title=String(t.title)),t.attribute!=null&&(r.Long?(i.attribute=r.Long.fromValue(t.attribute)).unsigned=!1:typeof t.attribute=="string"?i.attribute=parseInt(t.attribute,10):typeof t.attribute=="number"?i.attribute=t.attribute:typeof t.attribute=="object"&&(i.attribute=new r.LongBits(t.attribute.low>>>0,t.attribute.high>>>0).toNumber())),t.arc!=null){if(typeof t.arc!="object")throw TypeError(".bilibili.web.interface_.v1.SeasonEpisode.arc: object expected");i.arc=u.bilibili.web.interface_.v1.Arc.fromObject(t.arc)}if(t.page!=null){if(typeof t.page!="object")throw TypeError(".bilibili.web.interface_.v1.SeasonEpisode.page: object expected");i.page=u.bilibili.web.interface_.v1.Page.fromObject(t.page)}if(t.bvid!=null&&(i.bvid=String(t.bvid)),t.badgeStyle!=null){if(typeof t.badgeStyle!="object")throw TypeError(".bilibili.web.interface_.v1.SeasonEpisode.badgeStyle: object expected");i.badgeStyle=u.bilibili.web.interface_.v1.ReasonStyle.fromObject(t.badgeStyle)}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.seasonId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.seasonId=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.sectionId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.sectionId=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.id=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.id=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.aid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.aid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.cid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.cid=i.longs===String?"0":0;if(n.title="",r.Long){let o=new r.Long(0,0,!1);n.attribute=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.attribute=i.longs===String?"0":0;n.arc=null,n.page=null,n.bvid="",n.badgeStyle=null}return t.seasonId!=null&&t.hasOwnProperty("seasonId")&&(typeof t.seasonId=="number"?n.seasonId=i.longs===String?String(t.seasonId):t.seasonId:n.seasonId=i.longs===String?r.Long.prototype.toString.call(t.seasonId):i.longs===Number?new r.LongBits(t.seasonId.low>>>0,t.seasonId.high>>>0).toNumber():t.seasonId),t.sectionId!=null&&t.hasOwnProperty("sectionId")&&(typeof t.sectionId=="number"?n.sectionId=i.longs===String?String(t.sectionId):t.sectionId:n.sectionId=i.longs===String?r.Long.prototype.toString.call(t.sectionId):i.longs===Number?new r.LongBits(t.sectionId.low>>>0,t.sectionId.high>>>0).toNumber():t.sectionId),t.id!=null&&t.hasOwnProperty("id")&&(typeof t.id=="number"?n.id=i.longs===String?String(t.id):t.id:n.id=i.longs===String?r.Long.prototype.toString.call(t.id):i.longs===Number?new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber():t.id),t.aid!=null&&t.hasOwnProperty("aid")&&(typeof t.aid=="number"?n.aid=i.longs===String?String(t.aid):t.aid:n.aid=i.longs===String?r.Long.prototype.toString.call(t.aid):i.longs===Number?new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber():t.aid),t.cid!=null&&t.hasOwnProperty("cid")&&(typeof t.cid=="number"?n.cid=i.longs===String?String(t.cid):t.cid:n.cid=i.longs===String?r.Long.prototype.toString.call(t.cid):i.longs===Number?new r.LongBits(t.cid.low>>>0,t.cid.high>>>0).toNumber():t.cid),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.attribute!=null&&t.hasOwnProperty("attribute")&&(typeof t.attribute=="number"?n.attribute=i.longs===String?String(t.attribute):t.attribute:n.attribute=i.longs===String?r.Long.prototype.toString.call(t.attribute):i.longs===Number?new r.LongBits(t.attribute.low>>>0,t.attribute.high>>>0).toNumber():t.attribute),t.arc!=null&&t.hasOwnProperty("arc")&&(n.arc=u.bilibili.web.interface_.v1.Arc.toObject(t.arc,i)),t.page!=null&&t.hasOwnProperty("page")&&(n.page=u.bilibili.web.interface_.v1.Page.toObject(t.page,i)),t.bvid!=null&&t.hasOwnProperty("bvid")&&(n.bvid=t.bvid),t.badgeStyle!=null&&t.hasOwnProperty("badgeStyle")&&(n.badgeStyle=u.bilibili.web.interface_.v1.ReasonStyle.toObject(t.badgeStyle,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.web.interface_.v1.SeasonEpisode"},e}(),c.ReasonStyle=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.text=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.web.interface_.v1.ReasonStyle)return t;let i=new u.bilibili.web.interface_.v1.ReasonStyle;return t.text!=null&&(i.text=String(t.text)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.text=""),t.text!=null&&t.hasOwnProperty("text")&&(n.text=t.text),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.web.interface_.v1.ReasonStyle"},e}(),c.Arc=function(){function e(l){if(this.tags=[],this.staffInfo=[],this.descV2=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.aid=t.int64();break}case 2:{o.videos=t.int64();break}case 3:{o.typeId=t.int32();break}case 4:{o.typeName=t.string();break}case 5:{o.copyright=t.int32();break}case 6:{o.pic=t.string();break}case 7:{o.title=t.string();break}case 8:{o.pubdate=t.int64();break}case 9:{o.ctime=t.int64();break}case 10:{o.desc=t.string();break}case 11:{o.state=t.int32();break}case 12:{o.access=t.int32();break}case 13:{o.attribute=t.int32();break}case 14:{o.tag=t.string();break}case 15:{o.tags&&o.tags.length||(o.tags=[]),o.tags.push(t.string());break}case 16:{o.duration=t.int64();break}case 17:{o.missionId=t.int64();break}case 18:{o.orderId=t.int64();break}case 19:{o.redirectUrl=t.string();break}case 20:{o.forward=t.int64();break}case 21:{o.rights=u.bilibili.web.interface_.v1.Rights.decode(t,t.uint32());break}case 22:{o.author=u.bilibili.web.interface_.v1.Author.decode(t,t.uint32());break}case 23:{o.stat=u.bilibili.web.interface_.v1.Stat.decode(t,t.uint32());break}case 24:{o.reportResult=t.string();break}case 25:{o.dynamic=t.string();break}case 26:{o.firstCid=t.int64();break}case 27:{o.dimension=u.bilibili.web.interface_.v1.Dimension.decode(t,t.uint32());break}case 28:{o.staffInfo&&o.staffInfo.length||(o.staffInfo=[]),o.staffInfo.push(u.bilibili.web.interface_.v1.StaffInfo.decode(t,t.uint32()));break}case 29:{o.seasonId=t.int64();break}case 30:{o.descV2&&o.descV2.length||(o.descV2=[]),o.descV2.push(u.bilibili.web.interface_.v1.DescV2.decode(t,t.uint32()));break}case 31:{o.isChargeableSeason=t.bool();break}case 32:{o.isBlooper=t.bool();break}case 33:{o.enableVt=t.int32();break}case 34:{o.vtDisplay=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.web.interface_.v1.Arc)return t;let i=new u.bilibili.web.interface_.v1.Arc;if(t.aid!=null&&(r.Long?(i.aid=r.Long.fromValue(t.aid)).unsigned=!1:typeof t.aid=="string"?i.aid=parseInt(t.aid,10):typeof t.aid=="number"?i.aid=t.aid:typeof t.aid=="object"&&(i.aid=new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber())),t.videos!=null&&(r.Long?(i.videos=r.Long.fromValue(t.videos)).unsigned=!1:typeof t.videos=="string"?i.videos=parseInt(t.videos,10):typeof t.videos=="number"?i.videos=t.videos:typeof t.videos=="object"&&(i.videos=new r.LongBits(t.videos.low>>>0,t.videos.high>>>0).toNumber())),t.typeId!=null&&(i.typeId=t.typeId|0),t.typeName!=null&&(i.typeName=String(t.typeName)),t.copyright!=null&&(i.copyright=t.copyright|0),t.pic!=null&&(i.pic=String(t.pic)),t.title!=null&&(i.title=String(t.title)),t.pubdate!=null&&(r.Long?(i.pubdate=r.Long.fromValue(t.pubdate)).unsigned=!1:typeof t.pubdate=="string"?i.pubdate=parseInt(t.pubdate,10):typeof t.pubdate=="number"?i.pubdate=t.pubdate:typeof t.pubdate=="object"&&(i.pubdate=new r.LongBits(t.pubdate.low>>>0,t.pubdate.high>>>0).toNumber())),t.ctime!=null&&(r.Long?(i.ctime=r.Long.fromValue(t.ctime)).unsigned=!1:typeof t.ctime=="string"?i.ctime=parseInt(t.ctime,10):typeof t.ctime=="number"?i.ctime=t.ctime:typeof t.ctime=="object"&&(i.ctime=new r.LongBits(t.ctime.low>>>0,t.ctime.high>>>0).toNumber())),t.desc!=null&&(i.desc=String(t.desc)),t.state!=null&&(i.state=t.state|0),t.access!=null&&(i.access=t.access|0),t.attribute!=null&&(i.attribute=t.attribute|0),t.tag!=null&&(i.tag=String(t.tag)),t.tags){if(!Array.isArray(t.tags))throw TypeError(".bilibili.web.interface_.v1.Arc.tags: array expected");i.tags=[];for(let n=0;n>>0,t.duration.high>>>0).toNumber())),t.missionId!=null&&(r.Long?(i.missionId=r.Long.fromValue(t.missionId)).unsigned=!1:typeof t.missionId=="string"?i.missionId=parseInt(t.missionId,10):typeof t.missionId=="number"?i.missionId=t.missionId:typeof t.missionId=="object"&&(i.missionId=new r.LongBits(t.missionId.low>>>0,t.missionId.high>>>0).toNumber())),t.orderId!=null&&(r.Long?(i.orderId=r.Long.fromValue(t.orderId)).unsigned=!1:typeof t.orderId=="string"?i.orderId=parseInt(t.orderId,10):typeof t.orderId=="number"?i.orderId=t.orderId:typeof t.orderId=="object"&&(i.orderId=new r.LongBits(t.orderId.low>>>0,t.orderId.high>>>0).toNumber())),t.redirectUrl!=null&&(i.redirectUrl=String(t.redirectUrl)),t.forward!=null&&(r.Long?(i.forward=r.Long.fromValue(t.forward)).unsigned=!1:typeof t.forward=="string"?i.forward=parseInt(t.forward,10):typeof t.forward=="number"?i.forward=t.forward:typeof t.forward=="object"&&(i.forward=new r.LongBits(t.forward.low>>>0,t.forward.high>>>0).toNumber())),t.rights!=null){if(typeof t.rights!="object")throw TypeError(".bilibili.web.interface_.v1.Arc.rights: object expected");i.rights=u.bilibili.web.interface_.v1.Rights.fromObject(t.rights)}if(t.author!=null){if(typeof t.author!="object")throw TypeError(".bilibili.web.interface_.v1.Arc.author: object expected");i.author=u.bilibili.web.interface_.v1.Author.fromObject(t.author)}if(t.stat!=null){if(typeof t.stat!="object")throw TypeError(".bilibili.web.interface_.v1.Arc.stat: object expected");i.stat=u.bilibili.web.interface_.v1.Stat.fromObject(t.stat)}if(t.reportResult!=null&&(i.reportResult=String(t.reportResult)),t.dynamic!=null&&(i.dynamic=String(t.dynamic)),t.firstCid!=null&&(r.Long?(i.firstCid=r.Long.fromValue(t.firstCid)).unsigned=!1:typeof t.firstCid=="string"?i.firstCid=parseInt(t.firstCid,10):typeof t.firstCid=="number"?i.firstCid=t.firstCid:typeof t.firstCid=="object"&&(i.firstCid=new r.LongBits(t.firstCid.low>>>0,t.firstCid.high>>>0).toNumber())),t.dimension!=null){if(typeof t.dimension!="object")throw TypeError(".bilibili.web.interface_.v1.Arc.dimension: object expected");i.dimension=u.bilibili.web.interface_.v1.Dimension.fromObject(t.dimension)}if(t.staffInfo){if(!Array.isArray(t.staffInfo))throw TypeError(".bilibili.web.interface_.v1.Arc.staffInfo: array expected");i.staffInfo=[];for(let n=0;n>>0,t.seasonId.high>>>0).toNumber())),t.descV2){if(!Array.isArray(t.descV2))throw TypeError(".bilibili.web.interface_.v1.Arc.descV2: array expected");i.descV2=[];for(let n=0;n>>0,t.aid.high>>>0).toNumber():t.aid),t.videos!=null&&t.hasOwnProperty("videos")&&(typeof t.videos=="number"?n.videos=i.longs===String?String(t.videos):t.videos:n.videos=i.longs===String?r.Long.prototype.toString.call(t.videos):i.longs===Number?new r.LongBits(t.videos.low>>>0,t.videos.high>>>0).toNumber():t.videos),t.typeId!=null&&t.hasOwnProperty("typeId")&&(n.typeId=t.typeId),t.typeName!=null&&t.hasOwnProperty("typeName")&&(n.typeName=t.typeName),t.copyright!=null&&t.hasOwnProperty("copyright")&&(n.copyright=t.copyright),t.pic!=null&&t.hasOwnProperty("pic")&&(n.pic=t.pic),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.pubdate!=null&&t.hasOwnProperty("pubdate")&&(typeof t.pubdate=="number"?n.pubdate=i.longs===String?String(t.pubdate):t.pubdate:n.pubdate=i.longs===String?r.Long.prototype.toString.call(t.pubdate):i.longs===Number?new r.LongBits(t.pubdate.low>>>0,t.pubdate.high>>>0).toNumber():t.pubdate),t.ctime!=null&&t.hasOwnProperty("ctime")&&(typeof t.ctime=="number"?n.ctime=i.longs===String?String(t.ctime):t.ctime:n.ctime=i.longs===String?r.Long.prototype.toString.call(t.ctime):i.longs===Number?new r.LongBits(t.ctime.low>>>0,t.ctime.high>>>0).toNumber():t.ctime),t.desc!=null&&t.hasOwnProperty("desc")&&(n.desc=t.desc),t.state!=null&&t.hasOwnProperty("state")&&(n.state=t.state),t.access!=null&&t.hasOwnProperty("access")&&(n.access=t.access),t.attribute!=null&&t.hasOwnProperty("attribute")&&(n.attribute=t.attribute),t.tag!=null&&t.hasOwnProperty("tag")&&(n.tag=t.tag),t.tags&&t.tags.length){n.tags=[];for(let o=0;o>>0,t.duration.high>>>0).toNumber():t.duration),t.missionId!=null&&t.hasOwnProperty("missionId")&&(typeof t.missionId=="number"?n.missionId=i.longs===String?String(t.missionId):t.missionId:n.missionId=i.longs===String?r.Long.prototype.toString.call(t.missionId):i.longs===Number?new r.LongBits(t.missionId.low>>>0,t.missionId.high>>>0).toNumber():t.missionId),t.orderId!=null&&t.hasOwnProperty("orderId")&&(typeof t.orderId=="number"?n.orderId=i.longs===String?String(t.orderId):t.orderId:n.orderId=i.longs===String?r.Long.prototype.toString.call(t.orderId):i.longs===Number?new r.LongBits(t.orderId.low>>>0,t.orderId.high>>>0).toNumber():t.orderId),t.redirectUrl!=null&&t.hasOwnProperty("redirectUrl")&&(n.redirectUrl=t.redirectUrl),t.forward!=null&&t.hasOwnProperty("forward")&&(typeof t.forward=="number"?n.forward=i.longs===String?String(t.forward):t.forward:n.forward=i.longs===String?r.Long.prototype.toString.call(t.forward):i.longs===Number?new r.LongBits(t.forward.low>>>0,t.forward.high>>>0).toNumber():t.forward),t.rights!=null&&t.hasOwnProperty("rights")&&(n.rights=u.bilibili.web.interface_.v1.Rights.toObject(t.rights,i)),t.author!=null&&t.hasOwnProperty("author")&&(n.author=u.bilibili.web.interface_.v1.Author.toObject(t.author,i)),t.stat!=null&&t.hasOwnProperty("stat")&&(n.stat=u.bilibili.web.interface_.v1.Stat.toObject(t.stat,i)),t.reportResult!=null&&t.hasOwnProperty("reportResult")&&(n.reportResult=t.reportResult),t.dynamic!=null&&t.hasOwnProperty("dynamic")&&(n.dynamic=t.dynamic),t.firstCid!=null&&t.hasOwnProperty("firstCid")&&(typeof t.firstCid=="number"?n.firstCid=i.longs===String?String(t.firstCid):t.firstCid:n.firstCid=i.longs===String?r.Long.prototype.toString.call(t.firstCid):i.longs===Number?new r.LongBits(t.firstCid.low>>>0,t.firstCid.high>>>0).toNumber():t.firstCid),t.dimension!=null&&t.hasOwnProperty("dimension")&&(n.dimension=u.bilibili.web.interface_.v1.Dimension.toObject(t.dimension,i)),t.staffInfo&&t.staffInfo.length){n.staffInfo=[];for(let o=0;o>>0,t.seasonId.high>>>0).toNumber():t.seasonId),t.descV2&&t.descV2.length){n.descV2=[];for(let o=0;o>>3){case 1:{o.rawText=t.string();break}case 2:{o.type=t.int64();break}case 3:{o.bizId=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.web.interface_.v1.DescV2)return t;let i=new u.bilibili.web.interface_.v1.DescV2;return t.rawText!=null&&(i.rawText=String(t.rawText)),t.type!=null&&(r.Long?(i.type=r.Long.fromValue(t.type)).unsigned=!1:typeof t.type=="string"?i.type=parseInt(t.type,10):typeof t.type=="number"?i.type=t.type:typeof t.type=="object"&&(i.type=new r.LongBits(t.type.low>>>0,t.type.high>>>0).toNumber())),t.bizId!=null&&(r.Long?(i.bizId=r.Long.fromValue(t.bizId)).unsigned=!1:typeof t.bizId=="string"?i.bizId=parseInt(t.bizId,10):typeof t.bizId=="number"?i.bizId=t.bizId:typeof t.bizId=="object"&&(i.bizId=new r.LongBits(t.bizId.low>>>0,t.bizId.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.rawText="",r.Long){let o=new r.Long(0,0,!1);n.type=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.type=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.bizId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.bizId=i.longs===String?"0":0}return t.rawText!=null&&t.hasOwnProperty("rawText")&&(n.rawText=t.rawText),t.type!=null&&t.hasOwnProperty("type")&&(typeof t.type=="number"?n.type=i.longs===String?String(t.type):t.type:n.type=i.longs===String?r.Long.prototype.toString.call(t.type):i.longs===Number?new r.LongBits(t.type.low>>>0,t.type.high>>>0).toNumber():t.type),t.bizId!=null&&t.hasOwnProperty("bizId")&&(typeof t.bizId=="number"?n.bizId=i.longs===String?String(t.bizId):t.bizId:n.bizId=i.longs===String?r.Long.prototype.toString.call(t.bizId):i.longs===Number?new r.LongBits(t.bizId.low>>>0,t.bizId.high>>>0).toNumber():t.bizId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.web.interface_.v1.DescV2"},e}(),c.StaffInfo=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.mid=t.int64();break}case 2:{o.title=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.web.interface_.v1.StaffInfo)return t;let i=new u.bilibili.web.interface_.v1.StaffInfo;return t.mid!=null&&(r.Long?(i.mid=r.Long.fromValue(t.mid)).unsigned=!1:typeof t.mid=="string"?i.mid=parseInt(t.mid,10):typeof t.mid=="number"?i.mid=t.mid:typeof t.mid=="object"&&(i.mid=new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber())),t.title!=null&&(i.title=String(t.title)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.mid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mid=i.longs===String?"0":0;n.title=""}return t.mid!=null&&t.hasOwnProperty("mid")&&(typeof t.mid=="number"?n.mid=i.longs===String?String(t.mid):t.mid:n.mid=i.longs===String?r.Long.prototype.toString.call(t.mid):i.longs===Number?new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber():t.mid),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.web.interface_.v1.StaffInfo"},e}(),c.SeasonStat=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.seasonId=t.int64();break}case 2:{o.view=t.int32();break}case 3:{o.danmaku=t.int32();break}case 4:{o.reply=t.int32();break}case 5:{o.fav=t.int32();break}case 6:{o.coin=t.int32();break}case 7:{o.share=t.int32();break}case 8:{o.nowRank=t.int32();break}case 9:{o.hisRank=t.int32();break}case 10:{o.like=t.int32();break}case 11:{o.vt=t.int64();break}case 12:{o.vv=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.web.interface_.v1.SeasonStat)return t;let i=new u.bilibili.web.interface_.v1.SeasonStat;return t.seasonId!=null&&(r.Long?(i.seasonId=r.Long.fromValue(t.seasonId)).unsigned=!1:typeof t.seasonId=="string"?i.seasonId=parseInt(t.seasonId,10):typeof t.seasonId=="number"?i.seasonId=t.seasonId:typeof t.seasonId=="object"&&(i.seasonId=new r.LongBits(t.seasonId.low>>>0,t.seasonId.high>>>0).toNumber())),t.view!=null&&(i.view=t.view|0),t.danmaku!=null&&(i.danmaku=t.danmaku|0),t.reply!=null&&(i.reply=t.reply|0),t.fav!=null&&(i.fav=t.fav|0),t.coin!=null&&(i.coin=t.coin|0),t.share!=null&&(i.share=t.share|0),t.nowRank!=null&&(i.nowRank=t.nowRank|0),t.hisRank!=null&&(i.hisRank=t.hisRank|0),t.like!=null&&(i.like=t.like|0),t.vt!=null&&(r.Long?(i.vt=r.Long.fromValue(t.vt)).unsigned=!1:typeof t.vt=="string"?i.vt=parseInt(t.vt,10):typeof t.vt=="number"?i.vt=t.vt:typeof t.vt=="object"&&(i.vt=new r.LongBits(t.vt.low>>>0,t.vt.high>>>0).toNumber())),t.vv!=null&&(r.Long?(i.vv=r.Long.fromValue(t.vv)).unsigned=!1:typeof t.vv=="string"?i.vv=parseInt(t.vv,10):typeof t.vv=="number"?i.vv=t.vv:typeof t.vv=="object"&&(i.vv=new r.LongBits(t.vv.low>>>0,t.vv.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.seasonId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.seasonId=i.longs===String?"0":0;if(n.view=0,n.danmaku=0,n.reply=0,n.fav=0,n.coin=0,n.share=0,n.nowRank=0,n.hisRank=0,n.like=0,r.Long){let o=new r.Long(0,0,!1);n.vt=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.vt=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.vv=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.vv=i.longs===String?"0":0}return t.seasonId!=null&&t.hasOwnProperty("seasonId")&&(typeof t.seasonId=="number"?n.seasonId=i.longs===String?String(t.seasonId):t.seasonId:n.seasonId=i.longs===String?r.Long.prototype.toString.call(t.seasonId):i.longs===Number?new r.LongBits(t.seasonId.low>>>0,t.seasonId.high>>>0).toNumber():t.seasonId),t.view!=null&&t.hasOwnProperty("view")&&(n.view=t.view),t.danmaku!=null&&t.hasOwnProperty("danmaku")&&(n.danmaku=t.danmaku),t.reply!=null&&t.hasOwnProperty("reply")&&(n.reply=t.reply),t.fav!=null&&t.hasOwnProperty("fav")&&(n.fav=t.fav),t.coin!=null&&t.hasOwnProperty("coin")&&(n.coin=t.coin),t.share!=null&&t.hasOwnProperty("share")&&(n.share=t.share),t.nowRank!=null&&t.hasOwnProperty("nowRank")&&(n.nowRank=t.nowRank),t.hisRank!=null&&t.hasOwnProperty("hisRank")&&(n.hisRank=t.hisRank),t.like!=null&&t.hasOwnProperty("like")&&(n.like=t.like),t.vt!=null&&t.hasOwnProperty("vt")&&(typeof t.vt=="number"?n.vt=i.longs===String?String(t.vt):t.vt:n.vt=i.longs===String?r.Long.prototype.toString.call(t.vt):i.longs===Number?new r.LongBits(t.vt.low>>>0,t.vt.high>>>0).toNumber():t.vt),t.vv!=null&&t.hasOwnProperty("vv")&&(typeof t.vv=="number"?n.vv=i.longs===String?String(t.vv):t.vv:n.vv=i.longs===String?r.Long.prototype.toString.call(t.vv):i.longs===Number?new r.LongBits(t.vv.low>>>0,t.vv.high>>>0).toNumber():t.vv),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.web.interface_.v1.SeasonStat"},e}(),c.Card=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.card=u.bilibili.web.interface_.v1.AccountCard.decode(t,t.uint32());break}case 2:{o.space=u.bilibili.web.interface_.v1.Space.decode(t,t.uint32());break}case 3:{o.following=t.bool();break}case 4:{o.archiveCount=t.int64();break}case 5:{o.articleCount=t.int32();break}case 6:{o.follower=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.web.interface_.v1.Card)return t;let i=new u.bilibili.web.interface_.v1.Card;if(t.card!=null){if(typeof t.card!="object")throw TypeError(".bilibili.web.interface_.v1.Card.card: object expected");i.card=u.bilibili.web.interface_.v1.AccountCard.fromObject(t.card)}if(t.space!=null){if(typeof t.space!="object")throw TypeError(".bilibili.web.interface_.v1.Card.space: object expected");i.space=u.bilibili.web.interface_.v1.Space.fromObject(t.space)}return t.following!=null&&(i.following=!!t.following),t.archiveCount!=null&&(r.Long?(i.archiveCount=r.Long.fromValue(t.archiveCount)).unsigned=!1:typeof t.archiveCount=="string"?i.archiveCount=parseInt(t.archiveCount,10):typeof t.archiveCount=="number"?i.archiveCount=t.archiveCount:typeof t.archiveCount=="object"&&(i.archiveCount=new r.LongBits(t.archiveCount.low>>>0,t.archiveCount.high>>>0).toNumber())),t.articleCount!=null&&(i.articleCount=t.articleCount|0),t.follower!=null&&(r.Long?(i.follower=r.Long.fromValue(t.follower)).unsigned=!1:typeof t.follower=="string"?i.follower=parseInt(t.follower,10):typeof t.follower=="number"?i.follower=t.follower:typeof t.follower=="object"&&(i.follower=new r.LongBits(t.follower.low>>>0,t.follower.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.card=null,n.space=null,n.following=!1,r.Long){let o=new r.Long(0,0,!1);n.archiveCount=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.archiveCount=i.longs===String?"0":0;if(n.articleCount=0,r.Long){let o=new r.Long(0,0,!1);n.follower=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.follower=i.longs===String?"0":0}return t.card!=null&&t.hasOwnProperty("card")&&(n.card=u.bilibili.web.interface_.v1.AccountCard.toObject(t.card,i)),t.space!=null&&t.hasOwnProperty("space")&&(n.space=u.bilibili.web.interface_.v1.Space.toObject(t.space,i)),t.following!=null&&t.hasOwnProperty("following")&&(n.following=t.following),t.archiveCount!=null&&t.hasOwnProperty("archiveCount")&&(typeof t.archiveCount=="number"?n.archiveCount=i.longs===String?String(t.archiveCount):t.archiveCount:n.archiveCount=i.longs===String?r.Long.prototype.toString.call(t.archiveCount):i.longs===Number?new r.LongBits(t.archiveCount.low>>>0,t.archiveCount.high>>>0).toNumber():t.archiveCount),t.articleCount!=null&&t.hasOwnProperty("articleCount")&&(n.articleCount=t.articleCount),t.follower!=null&&t.hasOwnProperty("follower")&&(typeof t.follower=="number"?n.follower=i.longs===String?String(t.follower):t.follower:n.follower=i.longs===String?r.Long.prototype.toString.call(t.follower):i.longs===Number?new r.LongBits(t.follower.low>>>0,t.follower.high>>>0).toNumber():t.follower),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.web.interface_.v1.Card"},e}(),c.AccountCard=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.mid=t.string();break}case 2:{o.name=t.string();break}case 3:{o.sex=t.string();break}case 4:{o.rank=t.string();break}case 5:{o.face=t.string();break}case 6:{o.spacesta=t.int32();break}case 7:{o.sign=t.string();break}case 8:{o.levelInfo=u.bilibili.web.interface_.v1.CardLevelInfo.decode(t,t.uint32());break}case 9:{o.pendant=u.bilibili.web.interface_.v1.PendantInfo.decode(t,t.uint32());break}case 10:{o.nameplate=u.bilibili.web.interface_.v1.NameplateInfo.decode(t,t.uint32());break}case 11:{o.official=u.bilibili.web.interface_.v1.OfficialInfo.decode(t,t.uint32());break}case 12:{o.officialVerify=u.bilibili.web.interface_.v1.OfficialVerify.decode(t,t.uint32());break}case 13:{o.vip=u.bilibili.web.interface_.v1.CardVip.decode(t,t.uint32());break}case 14:{o.fans=t.int64();break}case 15:{o.friend=t.int64();break}case 16:{o.attention=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.web.interface_.v1.AccountCard)return t;let i=new u.bilibili.web.interface_.v1.AccountCard;if(t.mid!=null&&(i.mid=String(t.mid)),t.name!=null&&(i.name=String(t.name)),t.sex!=null&&(i.sex=String(t.sex)),t.rank!=null&&(i.rank=String(t.rank)),t.face!=null&&(i.face=String(t.face)),t.spacesta!=null&&(i.spacesta=t.spacesta|0),t.sign!=null&&(i.sign=String(t.sign)),t.levelInfo!=null){if(typeof t.levelInfo!="object")throw TypeError(".bilibili.web.interface_.v1.AccountCard.levelInfo: object expected");i.levelInfo=u.bilibili.web.interface_.v1.CardLevelInfo.fromObject(t.levelInfo)}if(t.pendant!=null){if(typeof t.pendant!="object")throw TypeError(".bilibili.web.interface_.v1.AccountCard.pendant: object expected");i.pendant=u.bilibili.web.interface_.v1.PendantInfo.fromObject(t.pendant)}if(t.nameplate!=null){if(typeof t.nameplate!="object")throw TypeError(".bilibili.web.interface_.v1.AccountCard.nameplate: object expected");i.nameplate=u.bilibili.web.interface_.v1.NameplateInfo.fromObject(t.nameplate)}if(t.official!=null){if(typeof t.official!="object")throw TypeError(".bilibili.web.interface_.v1.AccountCard.official: object expected");i.official=u.bilibili.web.interface_.v1.OfficialInfo.fromObject(t.official)}if(t.officialVerify!=null){if(typeof t.officialVerify!="object")throw TypeError(".bilibili.web.interface_.v1.AccountCard.officialVerify: object expected");i.officialVerify=u.bilibili.web.interface_.v1.OfficialVerify.fromObject(t.officialVerify)}if(t.vip!=null){if(typeof t.vip!="object")throw TypeError(".bilibili.web.interface_.v1.AccountCard.vip: object expected");i.vip=u.bilibili.web.interface_.v1.CardVip.fromObject(t.vip)}return t.fans!=null&&(r.Long?(i.fans=r.Long.fromValue(t.fans)).unsigned=!1:typeof t.fans=="string"?i.fans=parseInt(t.fans,10):typeof t.fans=="number"?i.fans=t.fans:typeof t.fans=="object"&&(i.fans=new r.LongBits(t.fans.low>>>0,t.fans.high>>>0).toNumber())),t.friend!=null&&(r.Long?(i.friend=r.Long.fromValue(t.friend)).unsigned=!1:typeof t.friend=="string"?i.friend=parseInt(t.friend,10):typeof t.friend=="number"?i.friend=t.friend:typeof t.friend=="object"&&(i.friend=new r.LongBits(t.friend.low>>>0,t.friend.high>>>0).toNumber())),t.attention!=null&&(r.Long?(i.attention=r.Long.fromValue(t.attention)).unsigned=!1:typeof t.attention=="string"?i.attention=parseInt(t.attention,10):typeof t.attention=="number"?i.attention=t.attention:typeof t.attention=="object"&&(i.attention=new r.LongBits(t.attention.low>>>0,t.attention.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.mid="",n.name="",n.sex="",n.rank="",n.face="",n.spacesta=0,n.sign="",n.levelInfo=null,n.pendant=null,n.nameplate=null,n.official=null,n.officialVerify=null,n.vip=null,r.Long){let o=new r.Long(0,0,!1);n.fans=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.fans=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.friend=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.friend=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.attention=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.attention=i.longs===String?"0":0}return t.mid!=null&&t.hasOwnProperty("mid")&&(n.mid=t.mid),t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),t.sex!=null&&t.hasOwnProperty("sex")&&(n.sex=t.sex),t.rank!=null&&t.hasOwnProperty("rank")&&(n.rank=t.rank),t.face!=null&&t.hasOwnProperty("face")&&(n.face=t.face),t.spacesta!=null&&t.hasOwnProperty("spacesta")&&(n.spacesta=t.spacesta),t.sign!=null&&t.hasOwnProperty("sign")&&(n.sign=t.sign),t.levelInfo!=null&&t.hasOwnProperty("levelInfo")&&(n.levelInfo=u.bilibili.web.interface_.v1.CardLevelInfo.toObject(t.levelInfo,i)),t.pendant!=null&&t.hasOwnProperty("pendant")&&(n.pendant=u.bilibili.web.interface_.v1.PendantInfo.toObject(t.pendant,i)),t.nameplate!=null&&t.hasOwnProperty("nameplate")&&(n.nameplate=u.bilibili.web.interface_.v1.NameplateInfo.toObject(t.nameplate,i)),t.official!=null&&t.hasOwnProperty("official")&&(n.official=u.bilibili.web.interface_.v1.OfficialInfo.toObject(t.official,i)),t.officialVerify!=null&&t.hasOwnProperty("officialVerify")&&(n.officialVerify=u.bilibili.web.interface_.v1.OfficialVerify.toObject(t.officialVerify,i)),t.vip!=null&&t.hasOwnProperty("vip")&&(n.vip=u.bilibili.web.interface_.v1.CardVip.toObject(t.vip,i)),t.fans!=null&&t.hasOwnProperty("fans")&&(typeof t.fans=="number"?n.fans=i.longs===String?String(t.fans):t.fans:n.fans=i.longs===String?r.Long.prototype.toString.call(t.fans):i.longs===Number?new r.LongBits(t.fans.low>>>0,t.fans.high>>>0).toNumber():t.fans),t.friend!=null&&t.hasOwnProperty("friend")&&(typeof t.friend=="number"?n.friend=i.longs===String?String(t.friend):t.friend:n.friend=i.longs===String?r.Long.prototype.toString.call(t.friend):i.longs===Number?new r.LongBits(t.friend.low>>>0,t.friend.high>>>0).toNumber():t.friend),t.attention!=null&&t.hasOwnProperty("attention")&&(typeof t.attention=="number"?n.attention=i.longs===String?String(t.attention):t.attention:n.attention=i.longs===String?r.Long.prototype.toString.call(t.attention):i.longs===Number?new r.LongBits(t.attention.low>>>0,t.attention.high>>>0).toNumber():t.attention),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.web.interface_.v1.AccountCard"},e}(),c.Space=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.sImg=t.string();break}case 2:{o.lImg=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.web.interface_.v1.Space)return t;let i=new u.bilibili.web.interface_.v1.Space;return t.sImg!=null&&(i.sImg=String(t.sImg)),t.lImg!=null&&(i.lImg=String(t.lImg)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.sImg="",n.lImg=""),t.sImg!=null&&t.hasOwnProperty("sImg")&&(n.sImg=t.sImg),t.lImg!=null&&t.hasOwnProperty("lImg")&&(n.lImg=t.lImg),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.web.interface_.v1.Space"},e}(),c.PendantInfo=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.pid=t.int32();break}case 2:{o.name=t.string();break}case 3:{o.image=t.string();break}case 4:{o.expire=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.web.interface_.v1.PendantInfo)return t;let i=new u.bilibili.web.interface_.v1.PendantInfo;return t.pid!=null&&(i.pid=t.pid|0),t.name!=null&&(i.name=String(t.name)),t.image!=null&&(i.image=String(t.image)),t.expire!=null&&(r.Long?(i.expire=r.Long.fromValue(t.expire)).unsigned=!1:typeof t.expire=="string"?i.expire=parseInt(t.expire,10):typeof t.expire=="number"?i.expire=t.expire:typeof t.expire=="object"&&(i.expire=new r.LongBits(t.expire.low>>>0,t.expire.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(n.pid=0,n.name="",n.image="",r.Long){let o=new r.Long(0,0,!1);n.expire=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.expire=i.longs===String?"0":0;return t.pid!=null&&t.hasOwnProperty("pid")&&(n.pid=t.pid),t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),t.image!=null&&t.hasOwnProperty("image")&&(n.image=t.image),t.expire!=null&&t.hasOwnProperty("expire")&&(typeof t.expire=="number"?n.expire=i.longs===String?String(t.expire):t.expire:n.expire=i.longs===String?r.Long.prototype.toString.call(t.expire):i.longs===Number?new r.LongBits(t.expire.low>>>0,t.expire.high>>>0).toNumber():t.expire),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.web.interface_.v1.PendantInfo"},e}(),c.NameplateInfo=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.nid=t.int32();break}case 2:{o.name=t.string();break}case 3:{o.image=t.string();break}case 4:{o.imageSmall=t.string();break}case 5:{o.level=t.string();break}case 6:{o.condition=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.web.interface_.v1.NameplateInfo)return t;let i=new u.bilibili.web.interface_.v1.NameplateInfo;return t.nid!=null&&(i.nid=t.nid|0),t.name!=null&&(i.name=String(t.name)),t.image!=null&&(i.image=String(t.image)),t.imageSmall!=null&&(i.imageSmall=String(t.imageSmall)),t.level!=null&&(i.level=String(t.level)),t.condition!=null&&(i.condition=String(t.condition)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.nid=0,n.name="",n.image="",n.imageSmall="",n.level="",n.condition=""),t.nid!=null&&t.hasOwnProperty("nid")&&(n.nid=t.nid),t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),t.image!=null&&t.hasOwnProperty("image")&&(n.image=t.image),t.imageSmall!=null&&t.hasOwnProperty("imageSmall")&&(n.imageSmall=t.imageSmall),t.level!=null&&t.hasOwnProperty("level")&&(n.level=t.level),t.condition!=null&&t.hasOwnProperty("condition")&&(n.condition=t.condition),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.web.interface_.v1.NameplateInfo"},e}(),c.CardLevelInfo=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.cur=t.int32();break}case 2:{o.min=t.int32();break}case 3:{o.nowExp=t.int32();break}case 4:{o.nextExp=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.web.interface_.v1.CardLevelInfo)return t;let i=new u.bilibili.web.interface_.v1.CardLevelInfo;return t.cur!=null&&(i.cur=t.cur|0),t.min!=null&&(i.min=t.min|0),t.nowExp!=null&&(i.nowExp=t.nowExp|0),t.nextExp!=null&&(i.nextExp=t.nextExp|0),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.cur=0,n.min=0,n.nowExp=0,n.nextExp=0),t.cur!=null&&t.hasOwnProperty("cur")&&(n.cur=t.cur),t.min!=null&&t.hasOwnProperty("min")&&(n.min=t.min),t.nowExp!=null&&t.hasOwnProperty("nowExp")&&(n.nowExp=t.nowExp),t.nextExp!=null&&t.hasOwnProperty("nextExp")&&(n.nextExp=t.nextExp),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.web.interface_.v1.CardLevelInfo"},e}(),c.CardVip=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.type=t.int32();break}case 2:{o.dueRemark=t.string();break}case 3:{o.accessStatus=t.int32();break}case 4:{o.vipStatus=t.int32();break}case 5:{o.vipStatusWarn=t.string();break}case 6:{o.themeType=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.web.interface_.v1.CardVip)return t;let i=new u.bilibili.web.interface_.v1.CardVip;return t.type!=null&&(i.type=t.type|0),t.dueRemark!=null&&(i.dueRemark=String(t.dueRemark)),t.accessStatus!=null&&(i.accessStatus=t.accessStatus|0),t.vipStatus!=null&&(i.vipStatus=t.vipStatus|0),t.vipStatusWarn!=null&&(i.vipStatusWarn=String(t.vipStatusWarn)),t.themeType!=null&&(i.themeType=t.themeType|0),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.type=0,n.dueRemark="",n.accessStatus=0,n.vipStatus=0,n.vipStatusWarn="",n.themeType=0),t.type!=null&&t.hasOwnProperty("type")&&(n.type=t.type),t.dueRemark!=null&&t.hasOwnProperty("dueRemark")&&(n.dueRemark=t.dueRemark),t.accessStatus!=null&&t.hasOwnProperty("accessStatus")&&(n.accessStatus=t.accessStatus),t.vipStatus!=null&&t.hasOwnProperty("vipStatus")&&(n.vipStatus=t.vipStatus),t.vipStatusWarn!=null&&t.hasOwnProperty("vipStatusWarn")&&(n.vipStatusWarn=t.vipStatusWarn),t.themeType!=null&&t.hasOwnProperty("themeType")&&(n.themeType=t.themeType),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.web.interface_.v1.CardVip"},e}(),c.OfficialVerify=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.type=t.int32();break}case 2:{o.desc=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.web.interface_.v1.OfficialVerify)return t;let i=new u.bilibili.web.interface_.v1.OfficialVerify;return t.type!=null&&(i.type=t.type|0),t.desc!=null&&(i.desc=String(t.desc)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.type=0,n.desc=""),t.type!=null&&t.hasOwnProperty("type")&&(n.type=t.type),t.desc!=null&&t.hasOwnProperty("desc")&&(n.desc=t.desc),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.web.interface_.v1.OfficialVerify"},e}(),c.Tag=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.id=t.int64();break}case 2:{o.name=t.string();break}case 3:{o.cover=t.string();break}case 4:{o.headCover=t.string();break}case 5:{o.content=t.string();break}case 6:{o.shortContent=t.string();break}case 7:{o.type=t.int32();break}case 8:{o.state=t.int32();break}case 9:{o.ctime=t.int64();break}case 10:{o.tagCount=u.bilibili.web.interface_.v1.TagCount.decode(t,t.uint32());break}case 11:{o.isAtten=t.int32();break}case 12:{o.likes=t.int64();break}case 13:{o.hates=t.int64();break}case 14:{o.attribute=t.int32();break}case 15:{o.liked=t.int32();break}case 16:{o.hated=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.web.interface_.v1.Tag)return t;let i=new u.bilibili.web.interface_.v1.Tag;if(t.id!=null&&(r.Long?(i.id=r.Long.fromValue(t.id)).unsigned=!1:typeof t.id=="string"?i.id=parseInt(t.id,10):typeof t.id=="number"?i.id=t.id:typeof t.id=="object"&&(i.id=new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber())),t.name!=null&&(i.name=String(t.name)),t.cover!=null&&(i.cover=String(t.cover)),t.headCover!=null&&(i.headCover=String(t.headCover)),t.content!=null&&(i.content=String(t.content)),t.shortContent!=null&&(i.shortContent=String(t.shortContent)),t.type!=null&&(i.type=t.type|0),t.state!=null&&(i.state=t.state|0),t.ctime!=null&&(r.Long?(i.ctime=r.Long.fromValue(t.ctime)).unsigned=!1:typeof t.ctime=="string"?i.ctime=parseInt(t.ctime,10):typeof t.ctime=="number"?i.ctime=t.ctime:typeof t.ctime=="object"&&(i.ctime=new r.LongBits(t.ctime.low>>>0,t.ctime.high>>>0).toNumber())),t.tagCount!=null){if(typeof t.tagCount!="object")throw TypeError(".bilibili.web.interface_.v1.Tag.tagCount: object expected");i.tagCount=u.bilibili.web.interface_.v1.TagCount.fromObject(t.tagCount)}return t.isAtten!=null&&(i.isAtten=t.isAtten|0),t.likes!=null&&(r.Long?(i.likes=r.Long.fromValue(t.likes)).unsigned=!1:typeof t.likes=="string"?i.likes=parseInt(t.likes,10):typeof t.likes=="number"?i.likes=t.likes:typeof t.likes=="object"&&(i.likes=new r.LongBits(t.likes.low>>>0,t.likes.high>>>0).toNumber())),t.hates!=null&&(r.Long?(i.hates=r.Long.fromValue(t.hates)).unsigned=!1:typeof t.hates=="string"?i.hates=parseInt(t.hates,10):typeof t.hates=="number"?i.hates=t.hates:typeof t.hates=="object"&&(i.hates=new r.LongBits(t.hates.low>>>0,t.hates.high>>>0).toNumber())),t.attribute!=null&&(i.attribute=t.attribute|0),t.liked!=null&&(i.liked=t.liked|0),t.hated!=null&&(i.hated=t.hated|0),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.id=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.id=i.longs===String?"0":0;if(n.name="",n.cover="",n.headCover="",n.content="",n.shortContent="",n.type=0,n.state=0,r.Long){let o=new r.Long(0,0,!1);n.ctime=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.ctime=i.longs===String?"0":0;if(n.tagCount=null,n.isAtten=0,r.Long){let o=new r.Long(0,0,!1);n.likes=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.likes=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.hates=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.hates=i.longs===String?"0":0;n.attribute=0,n.liked=0,n.hated=0}return t.id!=null&&t.hasOwnProperty("id")&&(typeof t.id=="number"?n.id=i.longs===String?String(t.id):t.id:n.id=i.longs===String?r.Long.prototype.toString.call(t.id):i.longs===Number?new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber():t.id),t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),t.cover!=null&&t.hasOwnProperty("cover")&&(n.cover=t.cover),t.headCover!=null&&t.hasOwnProperty("headCover")&&(n.headCover=t.headCover),t.content!=null&&t.hasOwnProperty("content")&&(n.content=t.content),t.shortContent!=null&&t.hasOwnProperty("shortContent")&&(n.shortContent=t.shortContent),t.type!=null&&t.hasOwnProperty("type")&&(n.type=t.type),t.state!=null&&t.hasOwnProperty("state")&&(n.state=t.state),t.ctime!=null&&t.hasOwnProperty("ctime")&&(typeof t.ctime=="number"?n.ctime=i.longs===String?String(t.ctime):t.ctime:n.ctime=i.longs===String?r.Long.prototype.toString.call(t.ctime):i.longs===Number?new r.LongBits(t.ctime.low>>>0,t.ctime.high>>>0).toNumber():t.ctime),t.tagCount!=null&&t.hasOwnProperty("tagCount")&&(n.tagCount=u.bilibili.web.interface_.v1.TagCount.toObject(t.tagCount,i)),t.isAtten!=null&&t.hasOwnProperty("isAtten")&&(n.isAtten=t.isAtten),t.likes!=null&&t.hasOwnProperty("likes")&&(typeof t.likes=="number"?n.likes=i.longs===String?String(t.likes):t.likes:n.likes=i.longs===String?r.Long.prototype.toString.call(t.likes):i.longs===Number?new r.LongBits(t.likes.low>>>0,t.likes.high>>>0).toNumber():t.likes),t.hates!=null&&t.hasOwnProperty("hates")&&(typeof t.hates=="number"?n.hates=i.longs===String?String(t.hates):t.hates:n.hates=i.longs===String?r.Long.prototype.toString.call(t.hates):i.longs===Number?new r.LongBits(t.hates.low>>>0,t.hates.high>>>0).toNumber():t.hates),t.attribute!=null&&t.hasOwnProperty("attribute")&&(n.attribute=t.attribute),t.liked!=null&&t.hasOwnProperty("liked")&&(n.liked=t.liked),t.hated!=null&&t.hasOwnProperty("hated")&&(n.hated=t.hated),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.web.interface_.v1.Tag"},e}(),c.TagCount=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.view=t.int64();break}case 2:{o.use=t.int64();break}case 3:{o.atten=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.web.interface_.v1.TagCount)return t;let i=new u.bilibili.web.interface_.v1.TagCount;return t.view!=null&&(r.Long?(i.view=r.Long.fromValue(t.view)).unsigned=!1:typeof t.view=="string"?i.view=parseInt(t.view,10):typeof t.view=="number"?i.view=t.view:typeof t.view=="object"&&(i.view=new r.LongBits(t.view.low>>>0,t.view.high>>>0).toNumber())),t.use!=null&&(r.Long?(i.use=r.Long.fromValue(t.use)).unsigned=!1:typeof t.use=="string"?i.use=parseInt(t.use,10):typeof t.use=="number"?i.use=t.use:typeof t.use=="object"&&(i.use=new r.LongBits(t.use.low>>>0,t.use.high>>>0).toNumber())),t.atten!=null&&(r.Long?(i.atten=r.Long.fromValue(t.atten)).unsigned=!1:typeof t.atten=="string"?i.atten=parseInt(t.atten,10):typeof t.atten=="number"?i.atten=t.atten:typeof t.atten=="object"&&(i.atten=new r.LongBits(t.atten.low>>>0,t.atten.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.view=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.view=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.use=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.use=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.atten=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.atten=i.longs===String?"0":0}return t.view!=null&&t.hasOwnProperty("view")&&(typeof t.view=="number"?n.view=i.longs===String?String(t.view):t.view:n.view=i.longs===String?r.Long.prototype.toString.call(t.view):i.longs===Number?new r.LongBits(t.view.low>>>0,t.view.high>>>0).toNumber():t.view),t.use!=null&&t.hasOwnProperty("use")&&(typeof t.use=="number"?n.use=i.longs===String?String(t.use):t.use:n.use=i.longs===String?r.Long.prototype.toString.call(t.use):i.longs===Number?new r.LongBits(t.use.low>>>0,t.use.high>>>0).toNumber():t.use),t.atten!=null&&t.hasOwnProperty("atten")&&(typeof t.atten=="number"?n.atten=i.longs===String?String(t.atten):t.atten:n.atten=i.longs===String?r.Long.prototype.toString.call(t.atten):i.longs===Number?new r.LongBits(t.atten.low>>>0,t.atten.high>>>0).toNumber():t.atten),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.web.interface_.v1.TagCount"},e}(),c.HotReply=function(){function e(l){if(this.replies=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.page=u.bilibili.web.interface_.v1.ReplyPage.decode(t,t.uint32());break}case 2:{o.replies&&o.replies.length||(o.replies=[]),o.replies.push(u.bilibili.web.interface_.v1.Reply.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.web.interface_.v1.HotReply)return t;let i=new u.bilibili.web.interface_.v1.HotReply;if(t.page!=null){if(typeof t.page!="object")throw TypeError(".bilibili.web.interface_.v1.HotReply.page: object expected");i.page=u.bilibili.web.interface_.v1.ReplyPage.fromObject(t.page)}if(t.replies){if(!Array.isArray(t.replies))throw TypeError(".bilibili.web.interface_.v1.HotReply.replies: array expected");i.replies=[];for(let n=0;n>>3){case 1:{o.acount=t.int64();break}case 2:{o.count=t.int64();break}case 3:{o.num=t.int64();break}case 4:{o.size=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.web.interface_.v1.ReplyPage)return t;let i=new u.bilibili.web.interface_.v1.ReplyPage;return t.acount!=null&&(r.Long?(i.acount=r.Long.fromValue(t.acount)).unsigned=!1:typeof t.acount=="string"?i.acount=parseInt(t.acount,10):typeof t.acount=="number"?i.acount=t.acount:typeof t.acount=="object"&&(i.acount=new r.LongBits(t.acount.low>>>0,t.acount.high>>>0).toNumber())),t.count!=null&&(r.Long?(i.count=r.Long.fromValue(t.count)).unsigned=!1:typeof t.count=="string"?i.count=parseInt(t.count,10):typeof t.count=="number"?i.count=t.count:typeof t.count=="object"&&(i.count=new r.LongBits(t.count.low>>>0,t.count.high>>>0).toNumber())),t.num!=null&&(r.Long?(i.num=r.Long.fromValue(t.num)).unsigned=!1:typeof t.num=="string"?i.num=parseInt(t.num,10):typeof t.num=="number"?i.num=t.num:typeof t.num=="object"&&(i.num=new r.LongBits(t.num.low>>>0,t.num.high>>>0).toNumber())),t.size!=null&&(r.Long?(i.size=r.Long.fromValue(t.size)).unsigned=!1:typeof t.size=="string"?i.size=parseInt(t.size,10):typeof t.size=="number"?i.size=t.size:typeof t.size=="object"&&(i.size=new r.LongBits(t.size.low>>>0,t.size.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.acount=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.acount=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.count=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.count=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.num=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.num=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.size=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.size=i.longs===String?"0":0}return t.acount!=null&&t.hasOwnProperty("acount")&&(typeof t.acount=="number"?n.acount=i.longs===String?String(t.acount):t.acount:n.acount=i.longs===String?r.Long.prototype.toString.call(t.acount):i.longs===Number?new r.LongBits(t.acount.low>>>0,t.acount.high>>>0).toNumber():t.acount),t.count!=null&&t.hasOwnProperty("count")&&(typeof t.count=="number"?n.count=i.longs===String?String(t.count):t.count:n.count=i.longs===String?r.Long.prototype.toString.call(t.count):i.longs===Number?new r.LongBits(t.count.low>>>0,t.count.high>>>0).toNumber():t.count),t.num!=null&&t.hasOwnProperty("num")&&(typeof t.num=="number"?n.num=i.longs===String?String(t.num):t.num:n.num=i.longs===String?r.Long.prototype.toString.call(t.num):i.longs===Number?new r.LongBits(t.num.low>>>0,t.num.high>>>0).toNumber():t.num),t.size!=null&&t.hasOwnProperty("size")&&(typeof t.size=="number"?n.size=i.longs===String?String(t.size):t.size:n.size=i.longs===String?r.Long.prototype.toString.call(t.size):i.longs===Number?new r.LongBits(t.size.low>>>0,t.size.high>>>0).toNumber():t.size),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.web.interface_.v1.ReplyPage"},e}(),c.Reply=function(){function e(l){if(this.replies=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.rpid=t.int64();break}case 2:{o.oid=t.int64();break}case 3:{o.type=t.int32();break}case 4:{o.mid=t.int64();break}case 5:{o.root=t.int64();break}case 6:{o.parent=t.int64();break}case 7:{o.dialog=t.int64();break}case 8:{o.count=t.int32();break}case 9:{o.rcount=t.int32();break}case 10:{o.floor=t.int32();break}case 11:{o.state=t.int32();break}case 12:{o.fansGrade=t.int32();break}case 13:{o.attr=t.uint32();break}case 14:{o.ctime=t.int64();break}case 15:{o.rpidStr=t.string();break}case 16:{o.rootStr=t.string();break}case 17:{o.parentStr=t.string();break}case 18:{o.dialogStr=t.string();break}case 19:{o.like=t.int32();break}case 20:{o.hate=t.int32();break}case 21:{o.action=t.int32();break}case 22:{o.member=u.bilibili.web.interface_.v1.ReplyMember.decode(t,t.uint32());break}case 23:{o.content=u.bilibili.web.interface_.v1.ReplyContent.decode(t,t.uint32());break}case 24:{o.replies&&o.replies.length||(o.replies=[]),o.replies.push(u.bilibili.web.interface_.v1.Reply.decode(t,t.uint32()));break}case 25:{o.assist=t.int32();break}case 26:{o.folder=u.bilibili.web.interface_.v1.ReplyFolder.decode(t,t.uint32());break}case 27:{o.upAction=u.bilibili.web.interface_.v1.ReplyUpAction.decode(t,t.uint32());break}case 28:{o.label=u.bilibili.web.interface_.v1.ReplyLabel.decode(t,t.uint32());break}case 29:{o.rawInput=t.string();break}case 30:{o.showFollow=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.web.interface_.v1.Reply)return t;let i=new u.bilibili.web.interface_.v1.Reply;if(t.rpid!=null&&(r.Long?(i.rpid=r.Long.fromValue(t.rpid)).unsigned=!1:typeof t.rpid=="string"?i.rpid=parseInt(t.rpid,10):typeof t.rpid=="number"?i.rpid=t.rpid:typeof t.rpid=="object"&&(i.rpid=new r.LongBits(t.rpid.low>>>0,t.rpid.high>>>0).toNumber())),t.oid!=null&&(r.Long?(i.oid=r.Long.fromValue(t.oid)).unsigned=!1:typeof t.oid=="string"?i.oid=parseInt(t.oid,10):typeof t.oid=="number"?i.oid=t.oid:typeof t.oid=="object"&&(i.oid=new r.LongBits(t.oid.low>>>0,t.oid.high>>>0).toNumber())),t.type!=null&&(i.type=t.type|0),t.mid!=null&&(r.Long?(i.mid=r.Long.fromValue(t.mid)).unsigned=!1:typeof t.mid=="string"?i.mid=parseInt(t.mid,10):typeof t.mid=="number"?i.mid=t.mid:typeof t.mid=="object"&&(i.mid=new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber())),t.root!=null&&(r.Long?(i.root=r.Long.fromValue(t.root)).unsigned=!1:typeof t.root=="string"?i.root=parseInt(t.root,10):typeof t.root=="number"?i.root=t.root:typeof t.root=="object"&&(i.root=new r.LongBits(t.root.low>>>0,t.root.high>>>0).toNumber())),t.parent!=null&&(r.Long?(i.parent=r.Long.fromValue(t.parent)).unsigned=!1:typeof t.parent=="string"?i.parent=parseInt(t.parent,10):typeof t.parent=="number"?i.parent=t.parent:typeof t.parent=="object"&&(i.parent=new r.LongBits(t.parent.low>>>0,t.parent.high>>>0).toNumber())),t.dialog!=null&&(r.Long?(i.dialog=r.Long.fromValue(t.dialog)).unsigned=!1:typeof t.dialog=="string"?i.dialog=parseInt(t.dialog,10):typeof t.dialog=="number"?i.dialog=t.dialog:typeof t.dialog=="object"&&(i.dialog=new r.LongBits(t.dialog.low>>>0,t.dialog.high>>>0).toNumber())),t.count!=null&&(i.count=t.count|0),t.rcount!=null&&(i.rcount=t.rcount|0),t.floor!=null&&(i.floor=t.floor|0),t.state!=null&&(i.state=t.state|0),t.fansGrade!=null&&(i.fansGrade=t.fansGrade|0),t.attr!=null&&(i.attr=t.attr>>>0),t.ctime!=null&&(r.Long?(i.ctime=r.Long.fromValue(t.ctime)).unsigned=!1:typeof t.ctime=="string"?i.ctime=parseInt(t.ctime,10):typeof t.ctime=="number"?i.ctime=t.ctime:typeof t.ctime=="object"&&(i.ctime=new r.LongBits(t.ctime.low>>>0,t.ctime.high>>>0).toNumber())),t.rpidStr!=null&&(i.rpidStr=String(t.rpidStr)),t.rootStr!=null&&(i.rootStr=String(t.rootStr)),t.parentStr!=null&&(i.parentStr=String(t.parentStr)),t.dialogStr!=null&&(i.dialogStr=String(t.dialogStr)),t.like!=null&&(i.like=t.like|0),t.hate!=null&&(i.hate=t.hate|0),t.action!=null&&(i.action=t.action|0),t.member!=null){if(typeof t.member!="object")throw TypeError(".bilibili.web.interface_.v1.Reply.member: object expected");i.member=u.bilibili.web.interface_.v1.ReplyMember.fromObject(t.member)}if(t.content!=null){if(typeof t.content!="object")throw TypeError(".bilibili.web.interface_.v1.Reply.content: object expected");i.content=u.bilibili.web.interface_.v1.ReplyContent.fromObject(t.content)}if(t.replies){if(!Array.isArray(t.replies))throw TypeError(".bilibili.web.interface_.v1.Reply.replies: array expected");i.replies=[];for(let n=0;n>>0,t.rpid.high>>>0).toNumber():t.rpid),t.oid!=null&&t.hasOwnProperty("oid")&&(typeof t.oid=="number"?n.oid=i.longs===String?String(t.oid):t.oid:n.oid=i.longs===String?r.Long.prototype.toString.call(t.oid):i.longs===Number?new r.LongBits(t.oid.low>>>0,t.oid.high>>>0).toNumber():t.oid),t.type!=null&&t.hasOwnProperty("type")&&(n.type=t.type),t.mid!=null&&t.hasOwnProperty("mid")&&(typeof t.mid=="number"?n.mid=i.longs===String?String(t.mid):t.mid:n.mid=i.longs===String?r.Long.prototype.toString.call(t.mid):i.longs===Number?new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber():t.mid),t.root!=null&&t.hasOwnProperty("root")&&(typeof t.root=="number"?n.root=i.longs===String?String(t.root):t.root:n.root=i.longs===String?r.Long.prototype.toString.call(t.root):i.longs===Number?new r.LongBits(t.root.low>>>0,t.root.high>>>0).toNumber():t.root),t.parent!=null&&t.hasOwnProperty("parent")&&(typeof t.parent=="number"?n.parent=i.longs===String?String(t.parent):t.parent:n.parent=i.longs===String?r.Long.prototype.toString.call(t.parent):i.longs===Number?new r.LongBits(t.parent.low>>>0,t.parent.high>>>0).toNumber():t.parent),t.dialog!=null&&t.hasOwnProperty("dialog")&&(typeof t.dialog=="number"?n.dialog=i.longs===String?String(t.dialog):t.dialog:n.dialog=i.longs===String?r.Long.prototype.toString.call(t.dialog):i.longs===Number?new r.LongBits(t.dialog.low>>>0,t.dialog.high>>>0).toNumber():t.dialog),t.count!=null&&t.hasOwnProperty("count")&&(n.count=t.count),t.rcount!=null&&t.hasOwnProperty("rcount")&&(n.rcount=t.rcount),t.floor!=null&&t.hasOwnProperty("floor")&&(n.floor=t.floor),t.state!=null&&t.hasOwnProperty("state")&&(n.state=t.state),t.fansGrade!=null&&t.hasOwnProperty("fansGrade")&&(n.fansGrade=t.fansGrade),t.attr!=null&&t.hasOwnProperty("attr")&&(n.attr=t.attr),t.ctime!=null&&t.hasOwnProperty("ctime")&&(typeof t.ctime=="number"?n.ctime=i.longs===String?String(t.ctime):t.ctime:n.ctime=i.longs===String?r.Long.prototype.toString.call(t.ctime):i.longs===Number?new r.LongBits(t.ctime.low>>>0,t.ctime.high>>>0).toNumber():t.ctime),t.rpidStr!=null&&t.hasOwnProperty("rpidStr")&&(n.rpidStr=t.rpidStr),t.rootStr!=null&&t.hasOwnProperty("rootStr")&&(n.rootStr=t.rootStr),t.parentStr!=null&&t.hasOwnProperty("parentStr")&&(n.parentStr=t.parentStr),t.dialogStr!=null&&t.hasOwnProperty("dialogStr")&&(n.dialogStr=t.dialogStr),t.like!=null&&t.hasOwnProperty("like")&&(n.like=t.like),t.hate!=null&&t.hasOwnProperty("hate")&&(n.hate=t.hate),t.action!=null&&t.hasOwnProperty("action")&&(n.action=t.action),t.member!=null&&t.hasOwnProperty("member")&&(n.member=u.bilibili.web.interface_.v1.ReplyMember.toObject(t.member,i)),t.content!=null&&t.hasOwnProperty("content")&&(n.content=u.bilibili.web.interface_.v1.ReplyContent.toObject(t.content,i)),t.replies&&t.replies.length){n.replies=[];for(let o=0;o>>3){case 1:{o.info=u.bilibili.web.interface_.v1.ReplyMemberInfo.decode(t,t.uint32());break}case 2:{o.fansDetail=u.bilibili.web.interface_.v1.ReplyFansDetail.decode(t,t.uint32());break}case 3:{o.following=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.web.interface_.v1.ReplyMember)return t;let i=new u.bilibili.web.interface_.v1.ReplyMember;if(t.info!=null){if(typeof t.info!="object")throw TypeError(".bilibili.web.interface_.v1.ReplyMember.info: object expected");i.info=u.bilibili.web.interface_.v1.ReplyMemberInfo.fromObject(t.info)}if(t.fansDetail!=null){if(typeof t.fansDetail!="object")throw TypeError(".bilibili.web.interface_.v1.ReplyMember.fansDetail: object expected");i.fansDetail=u.bilibili.web.interface_.v1.ReplyFansDetail.fromObject(t.fansDetail)}return t.following!=null&&(i.following=t.following|0),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.info=null,n.fansDetail=null,n.following=0),t.info!=null&&t.hasOwnProperty("info")&&(n.info=u.bilibili.web.interface_.v1.ReplyMemberInfo.toObject(t.info,i)),t.fansDetail!=null&&t.hasOwnProperty("fansDetail")&&(n.fansDetail=u.bilibili.web.interface_.v1.ReplyFansDetail.toObject(t.fansDetail,i)),t.following!=null&&t.hasOwnProperty("following")&&(n.following=t.following),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.web.interface_.v1.ReplyMember"},e}(),c.ReplyMemberInfo=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.role=t.int32();break}case 2:{o.mid=t.string();break}case 3:{o.name=t.string();break}case 4:{o.sex=t.string();break}case 5:{o.sign=t.string();break}case 6:{o.avatar=t.string();break}case 7:{o.rank=t.string();break}case 8:{o.displayRank=t.string();break}case 9:{o.levelInfo=u.bilibili.web.interface_.v1.ReplyLevelInfo.decode(t,t.uint32());break}case 10:{o.pendant=u.bilibili.web.interface_.v1.PendantInfo.decode(t,t.uint32());break}case 11:{o.nameplate=u.bilibili.web.interface_.v1.NameplateInfo.decode(t,t.uint32());break}case 12:{o.officialVerify=u.bilibili.web.interface_.v1.OfficialVerify.decode(t,t.uint32());break}case 13:{o.vip=u.bilibili.web.interface_.v1.ReplyVip.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.web.interface_.v1.ReplyMemberInfo)return t;let i=new u.bilibili.web.interface_.v1.ReplyMemberInfo;if(t.role!=null&&(i.role=t.role|0),t.mid!=null&&(i.mid=String(t.mid)),t.name!=null&&(i.name=String(t.name)),t.sex!=null&&(i.sex=String(t.sex)),t.sign!=null&&(i.sign=String(t.sign)),t.avatar!=null&&(i.avatar=String(t.avatar)),t.rank!=null&&(i.rank=String(t.rank)),t.displayRank!=null&&(i.displayRank=String(t.displayRank)),t.levelInfo!=null){if(typeof t.levelInfo!="object")throw TypeError(".bilibili.web.interface_.v1.ReplyMemberInfo.levelInfo: object expected");i.levelInfo=u.bilibili.web.interface_.v1.ReplyLevelInfo.fromObject(t.levelInfo)}if(t.pendant!=null){if(typeof t.pendant!="object")throw TypeError(".bilibili.web.interface_.v1.ReplyMemberInfo.pendant: object expected");i.pendant=u.bilibili.web.interface_.v1.PendantInfo.fromObject(t.pendant)}if(t.nameplate!=null){if(typeof t.nameplate!="object")throw TypeError(".bilibili.web.interface_.v1.ReplyMemberInfo.nameplate: object expected");i.nameplate=u.bilibili.web.interface_.v1.NameplateInfo.fromObject(t.nameplate)}if(t.officialVerify!=null){if(typeof t.officialVerify!="object")throw TypeError(".bilibili.web.interface_.v1.ReplyMemberInfo.officialVerify: object expected");i.officialVerify=u.bilibili.web.interface_.v1.OfficialVerify.fromObject(t.officialVerify)}if(t.vip!=null){if(typeof t.vip!="object")throw TypeError(".bilibili.web.interface_.v1.ReplyMemberInfo.vip: object expected");i.vip=u.bilibili.web.interface_.v1.ReplyVip.fromObject(t.vip)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.role=0,n.mid="",n.name="",n.sex="",n.sign="",n.avatar="",n.rank="",n.displayRank="",n.levelInfo=null,n.pendant=null,n.nameplate=null,n.officialVerify=null,n.vip=null),t.role!=null&&t.hasOwnProperty("role")&&(n.role=t.role),t.mid!=null&&t.hasOwnProperty("mid")&&(n.mid=t.mid),t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),t.sex!=null&&t.hasOwnProperty("sex")&&(n.sex=t.sex),t.sign!=null&&t.hasOwnProperty("sign")&&(n.sign=t.sign),t.avatar!=null&&t.hasOwnProperty("avatar")&&(n.avatar=t.avatar),t.rank!=null&&t.hasOwnProperty("rank")&&(n.rank=t.rank),t.displayRank!=null&&t.hasOwnProperty("displayRank")&&(n.displayRank=t.displayRank),t.levelInfo!=null&&t.hasOwnProperty("levelInfo")&&(n.levelInfo=u.bilibili.web.interface_.v1.ReplyLevelInfo.toObject(t.levelInfo,i)),t.pendant!=null&&t.hasOwnProperty("pendant")&&(n.pendant=u.bilibili.web.interface_.v1.PendantInfo.toObject(t.pendant,i)),t.nameplate!=null&&t.hasOwnProperty("nameplate")&&(n.nameplate=u.bilibili.web.interface_.v1.NameplateInfo.toObject(t.nameplate,i)),t.officialVerify!=null&&t.hasOwnProperty("officialVerify")&&(n.officialVerify=u.bilibili.web.interface_.v1.OfficialVerify.toObject(t.officialVerify,i)),t.vip!=null&&t.hasOwnProperty("vip")&&(n.vip=u.bilibili.web.interface_.v1.ReplyVip.toObject(t.vip,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.web.interface_.v1.ReplyMemberInfo"},e}(),c.ReplyLevelInfo=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.cur=t.int32();break}case 2:{o.min=t.int32();break}case 3:{o.nowExp=t.int32();break}case 4:{o.nextExp=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.web.interface_.v1.ReplyLevelInfo)return t;let i=new u.bilibili.web.interface_.v1.ReplyLevelInfo;return t.cur!=null&&(i.cur=t.cur|0),t.min!=null&&(i.min=t.min|0),t.nowExp!=null&&(i.nowExp=t.nowExp|0),t.nextExp!=null&&(i.nextExp=t.nextExp|0),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.cur=0,n.min=0,n.nowExp=0,n.nextExp=0),t.cur!=null&&t.hasOwnProperty("cur")&&(n.cur=t.cur),t.min!=null&&t.hasOwnProperty("min")&&(n.min=t.min),t.nowExp!=null&&t.hasOwnProperty("nowExp")&&(n.nowExp=t.nowExp),t.nextExp!=null&&t.hasOwnProperty("nextExp")&&(n.nextExp=t.nextExp),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.web.interface_.v1.ReplyLevelInfo"},e}(),c.ReplyVip=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.type=t.int32();break}case 2:{o.dueDate=t.int64();break}case 3:{o.dueRemark=t.string();break}case 4:{o.accessStatus=t.int32();break}case 5:{o.vipStatus=t.int32();break}case 6:{o.vipStatusWarn=t.string();break}case 7:{o.themeType=t.int32();break}case 8:{o.label=u.bilibili.web.interface_.v1.VipLabel.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.web.interface_.v1.ReplyVip)return t;let i=new u.bilibili.web.interface_.v1.ReplyVip;if(t.type!=null&&(i.type=t.type|0),t.dueDate!=null&&(r.Long?(i.dueDate=r.Long.fromValue(t.dueDate)).unsigned=!1:typeof t.dueDate=="string"?i.dueDate=parseInt(t.dueDate,10):typeof t.dueDate=="number"?i.dueDate=t.dueDate:typeof t.dueDate=="object"&&(i.dueDate=new r.LongBits(t.dueDate.low>>>0,t.dueDate.high>>>0).toNumber())),t.dueRemark!=null&&(i.dueRemark=String(t.dueRemark)),t.accessStatus!=null&&(i.accessStatus=t.accessStatus|0),t.vipStatus!=null&&(i.vipStatus=t.vipStatus|0),t.vipStatusWarn!=null&&(i.vipStatusWarn=String(t.vipStatusWarn)),t.themeType!=null&&(i.themeType=t.themeType|0),t.label!=null){if(typeof t.label!="object")throw TypeError(".bilibili.web.interface_.v1.ReplyVip.label: object expected");i.label=u.bilibili.web.interface_.v1.VipLabel.fromObject(t.label)}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.type=0,r.Long){let o=new r.Long(0,0,!1);n.dueDate=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.dueDate=i.longs===String?"0":0;n.dueRemark="",n.accessStatus=0,n.vipStatus=0,n.vipStatusWarn="",n.themeType=0,n.label=null}return t.type!=null&&t.hasOwnProperty("type")&&(n.type=t.type),t.dueDate!=null&&t.hasOwnProperty("dueDate")&&(typeof t.dueDate=="number"?n.dueDate=i.longs===String?String(t.dueDate):t.dueDate:n.dueDate=i.longs===String?r.Long.prototype.toString.call(t.dueDate):i.longs===Number?new r.LongBits(t.dueDate.low>>>0,t.dueDate.high>>>0).toNumber():t.dueDate),t.dueRemark!=null&&t.hasOwnProperty("dueRemark")&&(n.dueRemark=t.dueRemark),t.accessStatus!=null&&t.hasOwnProperty("accessStatus")&&(n.accessStatus=t.accessStatus),t.vipStatus!=null&&t.hasOwnProperty("vipStatus")&&(n.vipStatus=t.vipStatus),t.vipStatusWarn!=null&&t.hasOwnProperty("vipStatusWarn")&&(n.vipStatusWarn=t.vipStatusWarn),t.themeType!=null&&t.hasOwnProperty("themeType")&&(n.themeType=t.themeType),t.label!=null&&t.hasOwnProperty("label")&&(n.label=u.bilibili.web.interface_.v1.VipLabel.toObject(t.label,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.web.interface_.v1.ReplyVip"},e}(),c.VipLabel=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.path=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.web.interface_.v1.VipLabel)return t;let i=new u.bilibili.web.interface_.v1.VipLabel;return t.path!=null&&(i.path=String(t.path)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.path=""),t.path!=null&&t.hasOwnProperty("path")&&(n.path=t.path),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.web.interface_.v1.VipLabel"},e}(),c.ReplyFansDetail=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.uid=t.int64();break}case 2:{o.medalId=t.int32();break}case 3:{o.medalName=t.string();break}case 4:{o.score=t.int32();break}case 5:{o.level=t.int32();break}case 6:{o.intimacy=t.int32();break}case 7:{o.status=t.int32();break}case 8:{o.received=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.web.interface_.v1.ReplyFansDetail)return t;let i=new u.bilibili.web.interface_.v1.ReplyFansDetail;return t.uid!=null&&(r.Long?(i.uid=r.Long.fromValue(t.uid)).unsigned=!1:typeof t.uid=="string"?i.uid=parseInt(t.uid,10):typeof t.uid=="number"?i.uid=t.uid:typeof t.uid=="object"&&(i.uid=new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber())),t.medalId!=null&&(i.medalId=t.medalId|0),t.medalName!=null&&(i.medalName=String(t.medalName)),t.score!=null&&(i.score=t.score|0),t.level!=null&&(i.level=t.level|0),t.intimacy!=null&&(i.intimacy=t.intimacy|0),t.status!=null&&(i.status=t.status|0),t.received!=null&&(i.received=t.received|0),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.uid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.uid=i.longs===String?"0":0;n.medalId=0,n.medalName="",n.score=0,n.level=0,n.intimacy=0,n.status=0,n.received=0}return t.uid!=null&&t.hasOwnProperty("uid")&&(typeof t.uid=="number"?n.uid=i.longs===String?String(t.uid):t.uid:n.uid=i.longs===String?r.Long.prototype.toString.call(t.uid):i.longs===Number?new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber():t.uid),t.medalId!=null&&t.hasOwnProperty("medalId")&&(n.medalId=t.medalId),t.medalName!=null&&t.hasOwnProperty("medalName")&&(n.medalName=t.medalName),t.score!=null&&t.hasOwnProperty("score")&&(n.score=t.score),t.level!=null&&t.hasOwnProperty("level")&&(n.level=t.level),t.intimacy!=null&&t.hasOwnProperty("intimacy")&&(n.intimacy=t.intimacy),t.status!=null&&t.hasOwnProperty("status")&&(n.status=t.status),t.received!=null&&t.hasOwnProperty("received")&&(n.received=t.received),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.web.interface_.v1.ReplyFansDetail"},e}(),c.ReplyContent=function(){function e(l){if(this.ats=[],this.topics=[],this.members=[],this.emote={},l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.rpId=t.int64();break}case 2:{o.message=t.string();break}case 3:{o.vote=u.bilibili.web.interface_.v1.ReplyVote.decode(t,t.uint32());break}case 4:{if(o.ats&&o.ats.length||(o.ats=[]),(s&7)===2){let v=t.uint32()+t.pos;for(;t.pos>>3){case 1:a=t.string();break;case 2:y=u.bilibili.web.interface_.v1.ReplyEmote.decode(t,t.uint32());break;default:t.skipType(g&7);break}}o.emote[a]=y;break}default:t.skipType(s&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.web.interface_.v1.ReplyContent)return t;let i=new u.bilibili.web.interface_.v1.ReplyContent;if(t.rpId!=null&&(r.Long?(i.rpId=r.Long.fromValue(t.rpId)).unsigned=!1:typeof t.rpId=="string"?i.rpId=parseInt(t.rpId,10):typeof t.rpId=="number"?i.rpId=t.rpId:typeof t.rpId=="object"&&(i.rpId=new r.LongBits(t.rpId.low>>>0,t.rpId.high>>>0).toNumber())),t.message!=null&&(i.message=String(t.message)),t.vote!=null){if(typeof t.vote!="object")throw TypeError(".bilibili.web.interface_.v1.ReplyContent.vote: object expected");i.vote=u.bilibili.web.interface_.v1.ReplyVote.fromObject(t.vote)}if(t.ats){if(!Array.isArray(t.ats))throw TypeError(".bilibili.web.interface_.v1.ReplyContent.ats: array expected");i.ats=[];for(let n=0;n>>0,t.ats[n].high>>>0).toNumber())}if(t.topics){if(!Array.isArray(t.topics))throw TypeError(".bilibili.web.interface_.v1.ReplyContent.topics: array expected");i.topics=[];for(let n=0;n>>0),t.plat!=null&&(i.plat=t.plat|0),t.device!=null&&(i.device=String(t.device)),t.version!=null&&(i.version=String(t.version)),t.members){if(!Array.isArray(t.members))throw TypeError(".bilibili.web.interface_.v1.ReplyContent.members: array expected");i.members=[];for(let n=0;n>>0,t.rpId.high>>>0).toNumber():t.rpId),t.message!=null&&t.hasOwnProperty("message")&&(n.message=t.message),t.vote!=null&&t.hasOwnProperty("vote")&&(n.vote=u.bilibili.web.interface_.v1.ReplyVote.toObject(t.vote,i)),t.ats&&t.ats.length){n.ats=[];for(let a=0;a>>0,t.ats[a].high>>>0).toNumber():t.ats[a]}if(t.topics&&t.topics.length){n.topics=[];for(let a=0;a>>3){case 1:{o.id=t.int64();break}case 2:{o.packageId=t.int64();break}case 3:{o.state=t.int64();break}case 4:{o.type=t.int64();break}case 5:{o.attr=t.int64();break}case 6:{o.text=t.string();break}case 7:{o.url=t.string();break}case 8:{o.meta=u.bilibili.web.interface_.v1.ReplyEmoteMeta.decode(t,t.uint32());break}case 9:{o.ctime=t.int64();break}case 10:{o.mtime=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.web.interface_.v1.ReplyEmote)return t;let i=new u.bilibili.web.interface_.v1.ReplyEmote;if(t.id!=null&&(r.Long?(i.id=r.Long.fromValue(t.id)).unsigned=!1:typeof t.id=="string"?i.id=parseInt(t.id,10):typeof t.id=="number"?i.id=t.id:typeof t.id=="object"&&(i.id=new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber())),t.packageId!=null&&(r.Long?(i.packageId=r.Long.fromValue(t.packageId)).unsigned=!1:typeof t.packageId=="string"?i.packageId=parseInt(t.packageId,10):typeof t.packageId=="number"?i.packageId=t.packageId:typeof t.packageId=="object"&&(i.packageId=new r.LongBits(t.packageId.low>>>0,t.packageId.high>>>0).toNumber())),t.state!=null&&(r.Long?(i.state=r.Long.fromValue(t.state)).unsigned=!1:typeof t.state=="string"?i.state=parseInt(t.state,10):typeof t.state=="number"?i.state=t.state:typeof t.state=="object"&&(i.state=new r.LongBits(t.state.low>>>0,t.state.high>>>0).toNumber())),t.type!=null&&(r.Long?(i.type=r.Long.fromValue(t.type)).unsigned=!1:typeof t.type=="string"?i.type=parseInt(t.type,10):typeof t.type=="number"?i.type=t.type:typeof t.type=="object"&&(i.type=new r.LongBits(t.type.low>>>0,t.type.high>>>0).toNumber())),t.attr!=null&&(r.Long?(i.attr=r.Long.fromValue(t.attr)).unsigned=!1:typeof t.attr=="string"?i.attr=parseInt(t.attr,10):typeof t.attr=="number"?i.attr=t.attr:typeof t.attr=="object"&&(i.attr=new r.LongBits(t.attr.low>>>0,t.attr.high>>>0).toNumber())),t.text!=null&&(i.text=String(t.text)),t.url!=null&&(i.url=String(t.url)),t.meta!=null){if(typeof t.meta!="object")throw TypeError(".bilibili.web.interface_.v1.ReplyEmote.meta: object expected");i.meta=u.bilibili.web.interface_.v1.ReplyEmoteMeta.fromObject(t.meta)}return t.ctime!=null&&(r.Long?(i.ctime=r.Long.fromValue(t.ctime)).unsigned=!1:typeof t.ctime=="string"?i.ctime=parseInt(t.ctime,10):typeof t.ctime=="number"?i.ctime=t.ctime:typeof t.ctime=="object"&&(i.ctime=new r.LongBits(t.ctime.low>>>0,t.ctime.high>>>0).toNumber())),t.mtime!=null&&(r.Long?(i.mtime=r.Long.fromValue(t.mtime)).unsigned=!1:typeof t.mtime=="string"?i.mtime=parseInt(t.mtime,10):typeof t.mtime=="number"?i.mtime=t.mtime:typeof t.mtime=="object"&&(i.mtime=new r.LongBits(t.mtime.low>>>0,t.mtime.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.id=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.id=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.packageId=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.packageId=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.state=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.state=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.type=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.type=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.attr=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.attr=i.longs===String?"0":0;if(n.text="",n.url="",n.meta=null,r.Long){let o=new r.Long(0,0,!1);n.ctime=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.ctime=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.mtime=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mtime=i.longs===String?"0":0}return t.id!=null&&t.hasOwnProperty("id")&&(typeof t.id=="number"?n.id=i.longs===String?String(t.id):t.id:n.id=i.longs===String?r.Long.prototype.toString.call(t.id):i.longs===Number?new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber():t.id),t.packageId!=null&&t.hasOwnProperty("packageId")&&(typeof t.packageId=="number"?n.packageId=i.longs===String?String(t.packageId):t.packageId:n.packageId=i.longs===String?r.Long.prototype.toString.call(t.packageId):i.longs===Number?new r.LongBits(t.packageId.low>>>0,t.packageId.high>>>0).toNumber():t.packageId),t.state!=null&&t.hasOwnProperty("state")&&(typeof t.state=="number"?n.state=i.longs===String?String(t.state):t.state:n.state=i.longs===String?r.Long.prototype.toString.call(t.state):i.longs===Number?new r.LongBits(t.state.low>>>0,t.state.high>>>0).toNumber():t.state),t.type!=null&&t.hasOwnProperty("type")&&(typeof t.type=="number"?n.type=i.longs===String?String(t.type):t.type:n.type=i.longs===String?r.Long.prototype.toString.call(t.type):i.longs===Number?new r.LongBits(t.type.low>>>0,t.type.high>>>0).toNumber():t.type),t.attr!=null&&t.hasOwnProperty("attr")&&(typeof t.attr=="number"?n.attr=i.longs===String?String(t.attr):t.attr:n.attr=i.longs===String?r.Long.prototype.toString.call(t.attr):i.longs===Number?new r.LongBits(t.attr.low>>>0,t.attr.high>>>0).toNumber():t.attr),t.text!=null&&t.hasOwnProperty("text")&&(n.text=t.text),t.url!=null&&t.hasOwnProperty("url")&&(n.url=t.url),t.meta!=null&&t.hasOwnProperty("meta")&&(n.meta=u.bilibili.web.interface_.v1.ReplyEmoteMeta.toObject(t.meta,i)),t.ctime!=null&&t.hasOwnProperty("ctime")&&(typeof t.ctime=="number"?n.ctime=i.longs===String?String(t.ctime):t.ctime:n.ctime=i.longs===String?r.Long.prototype.toString.call(t.ctime):i.longs===Number?new r.LongBits(t.ctime.low>>>0,t.ctime.high>>>0).toNumber():t.ctime),t.mtime!=null&&t.hasOwnProperty("mtime")&&(typeof t.mtime=="number"?n.mtime=i.longs===String?String(t.mtime):t.mtime:n.mtime=i.longs===String?r.Long.prototype.toString.call(t.mtime):i.longs===Number?new r.LongBits(t.mtime.low>>>0,t.mtime.high>>>0).toNumber():t.mtime),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.web.interface_.v1.ReplyEmote"},e}(),c.ReplyEmoteMeta=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.size=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.web.interface_.v1.ReplyEmoteMeta)return t;let i=new u.bilibili.web.interface_.v1.ReplyEmoteMeta;switch(t.size){default:if(typeof t.size=="number"){i.size=t.size;break}break;case"EMOTE_META_SIZE_UNSPECIFIED":case 0:i.size=0;break;case"EMOTE_META_SIZE_SMALL":case 1:i.size=1;break;case"EMOTE_META_SIZE_BIG":case 2:i.size=2;break}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.size=i.enums===String?"EMOTE_META_SIZE_UNSPECIFIED":0),t.size!=null&&t.hasOwnProperty("size")&&(n.size=i.enums===String?u.bilibili.web.interface_.v1.ReplyEmoteMetaSize[t.size]===void 0?t.size:u.bilibili.web.interface_.v1.ReplyEmoteMetaSize[t.size]:t.size),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.web.interface_.v1.ReplyEmoteMeta"},e}(),c.ReplyEmoteMetaSize=function(){let e={},l=Object.create(e);return l[e[0]="EMOTE_META_SIZE_UNSPECIFIED"]=0,l[e[1]="EMOTE_META_SIZE_SMALL"]=1,l[e[2]="EMOTE_META_SIZE_BIG"]=2,l}(),c.ReplyVote=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.id=t.int64();break}case 2:{o.title=t.string();break}case 3:{o.cnt=t.int32();break}case 4:{o.desc=t.string();break}case 5:{o.deleted=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.web.interface_.v1.ReplyVote)return t;let i=new u.bilibili.web.interface_.v1.ReplyVote;return t.id!=null&&(r.Long?(i.id=r.Long.fromValue(t.id)).unsigned=!1:typeof t.id=="string"?i.id=parseInt(t.id,10):typeof t.id=="number"?i.id=t.id:typeof t.id=="object"&&(i.id=new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber())),t.title!=null&&(i.title=String(t.title)),t.cnt!=null&&(i.cnt=t.cnt|0),t.desc!=null&&(i.desc=String(t.desc)),t.deleted!=null&&(i.deleted=!!t.deleted),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.id=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.id=i.longs===String?"0":0;n.title="",n.cnt=0,n.desc="",n.deleted=!1}return t.id!=null&&t.hasOwnProperty("id")&&(typeof t.id=="number"?n.id=i.longs===String?String(t.id):t.id:n.id=i.longs===String?r.Long.prototype.toString.call(t.id):i.longs===Number?new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber():t.id),t.title!=null&&t.hasOwnProperty("title")&&(n.title=t.title),t.cnt!=null&&t.hasOwnProperty("cnt")&&(n.cnt=t.cnt),t.desc!=null&&t.hasOwnProperty("desc")&&(n.desc=t.desc),t.deleted!=null&&t.hasOwnProperty("deleted")&&(n.deleted=t.deleted),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.web.interface_.v1.ReplyVote"},e}(),c.ReplyFolder=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.hasFolded=t.bool();break}case 2:{o.isFolded=t.bool();break}case 3:{o.rule=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.web.interface_.v1.ReplyFolder)return t;let i=new u.bilibili.web.interface_.v1.ReplyFolder;return t.hasFolded!=null&&(i.hasFolded=!!t.hasFolded),t.isFolded!=null&&(i.isFolded=!!t.isFolded),t.rule!=null&&(i.rule=String(t.rule)),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.hasFolded=!1,n.isFolded=!1,n.rule=""),t.hasFolded!=null&&t.hasOwnProperty("hasFolded")&&(n.hasFolded=t.hasFolded),t.isFolded!=null&&t.hasOwnProperty("isFolded")&&(n.isFolded=t.isFolded),t.rule!=null&&t.hasOwnProperty("rule")&&(n.rule=t.rule),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.web.interface_.v1.ReplyFolder"},e}(),c.ReplyUpAction=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.like=t.bool();break}case 2:{o.reply=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.web.interface_.v1.ReplyUpAction)return t;let i=new u.bilibili.web.interface_.v1.ReplyUpAction;return t.like!=null&&(i.like=!!t.like),t.reply!=null&&(i.reply=!!t.reply),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.like=!1,n.reply=!1),t.like!=null&&t.hasOwnProperty("like")&&(n.like=t.like),t.reply!=null&&t.hasOwnProperty("reply")&&(n.reply=t.reply),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.web.interface_.v1.ReplyUpAction"},e}(),c.ReplyLabel=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.rpid=t.int64();break}case 2:{o.content=t.string();break}case 3:{o.textColor=t.string();break}case 4:{o.textColorNightMode=t.string();break}case 5:{o.bgColor=t.string();break}case 6:{o.bgColorNightMode=t.string();break}case 7:{o.link=t.string();break}case 8:{o.position=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.web.interface_.v1.ReplyLabel)return t;let i=new u.bilibili.web.interface_.v1.ReplyLabel;return t.rpid!=null&&(r.Long?(i.rpid=r.Long.fromValue(t.rpid)).unsigned=!1:typeof t.rpid=="string"?i.rpid=parseInt(t.rpid,10):typeof t.rpid=="number"?i.rpid=t.rpid:typeof t.rpid=="object"&&(i.rpid=new r.LongBits(t.rpid.low>>>0,t.rpid.high>>>0).toNumber())),t.content!=null&&(i.content=String(t.content)),t.textColor!=null&&(i.textColor=String(t.textColor)),t.textColorNightMode!=null&&(i.textColorNightMode=String(t.textColorNightMode)),t.bgColor!=null&&(i.bgColor=String(t.bgColor)),t.bgColorNightMode!=null&&(i.bgColorNightMode=String(t.bgColorNightMode)),t.link!=null&&(i.link=String(t.link)),t.position!=null&&(i.position=String(t.position)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.rpid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.rpid=i.longs===String?"0":0;n.content="",n.textColor="",n.textColorNightMode="",n.bgColor="",n.bgColorNightMode="",n.link="",n.position=""}return t.rpid!=null&&t.hasOwnProperty("rpid")&&(typeof t.rpid=="number"?n.rpid=i.longs===String?String(t.rpid):t.rpid:n.rpid=i.longs===String?r.Long.prototype.toString.call(t.rpid):i.longs===Number?new r.LongBits(t.rpid.low>>>0,t.rpid.high>>>0).toNumber():t.rpid),t.content!=null&&t.hasOwnProperty("content")&&(n.content=t.content),t.textColor!=null&&t.hasOwnProperty("textColor")&&(n.textColor=t.textColor),t.textColorNightMode!=null&&t.hasOwnProperty("textColorNightMode")&&(n.textColorNightMode=t.textColorNightMode),t.bgColor!=null&&t.hasOwnProperty("bgColor")&&(n.bgColor=t.bgColor),t.bgColorNightMode!=null&&t.hasOwnProperty("bgColorNightMode")&&(n.bgColorNightMode=t.bgColorNightMode),t.link!=null&&t.hasOwnProperty("link")&&(n.link=t.link),t.position!=null&&t.hasOwnProperty("position")&&(n.position=t.position),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.web.interface_.v1.ReplyLabel"},e}(),c}(),p}(),d.space=function(){let p={};return p.v1=function(){let c={};return c.Space=function(){function e(l,t,i){b.rpc.Service.call(this,l,t,i)}return(e.prototype=Object.create(b.rpc.Service.prototype)).constructor=e,e.create=function(t,i,n){return new this(t,i,n)},Object.defineProperty(e.prototype.official=function l(t,i){return this.rpcCall(l,u.bilibili.web.space.v1.OfficialRequest,u.bilibili.web.space.v1.OfficialReply,t,i)},"name",{value:"Official"}),Object.defineProperty(e.prototype.privacy=function l(t,i){return this.rpcCall(l,u.bilibili.web.space.v1.PrivacyRequest,u.bilibili.web.space.v1.PrivacyReply,t,i)},"name",{value:"Privacy"}),Object.defineProperty(e.prototype.photoMallList=function l(t,i){return this.rpcCall(l,u.bilibili.web.space.v1.PhotoMallListReq,u.bilibili.web.space.v1.PhotoMallListReply,t,i)},"name",{value:"PhotoMallList"}),Object.defineProperty(e.prototype.setTopPhoto=function l(t,i){return this.rpcCall(l,u.bilibili.web.space.v1.SetTopPhotoReq,u.bilibili.web.space.v1.NoReply,t,i)},"name",{value:"SetTopPhoto"}),Object.defineProperty(e.prototype.topPhoto=function l(t,i){return this.rpcCall(l,u.bilibili.web.space.v1.TopPhotoReq,u.bilibili.web.space.v1.TopPhotoReply,t,i)},"name",{value:"TopPhoto"}),Object.defineProperty(e.prototype.userTab=function l(t,i){return this.rpcCall(l,u.bilibili.web.space.v1.UserTabReq,u.bilibili.web.space.v1.UserTabReply,t,i)},"name",{value:"UserTab"}),Object.defineProperty(e.prototype.topPhotoArcCancel=function l(t,i){return this.rpcCall(l,u.bilibili.web.space.v1.TopPhotoArcCancelReq,u.bilibili.web.space.v1.NoReply,t,i)},"name",{value:"TopPhotoArcCancel"}),Object.defineProperty(e.prototype.whitelist=function l(t,i){return this.rpcCall(l,u.bilibili.web.space.v1.WhitelistReq,u.bilibili.web.space.v1.WhitelistReply,t,i)},"name",{value:"Whitelist"}),Object.defineProperty(e.prototype.addWhitelist=function l(t,i){return this.rpcCall(l,u.bilibili.web.space.v1.WhitelistAddReq,u.bilibili.web.space.v1.WhitelistAddReply,t,i)},"name",{value:"AddWhitelist"}),Object.defineProperty(e.prototype.upWhitelist=function l(t,i){return this.rpcCall(l,u.bilibili.web.space.v1.WhitelistAddReq,u.bilibili.web.space.v1.WhitelistUpReply,t,i)},"name",{value:"UpWhitelist"}),Object.defineProperty(e.prototype.queryWhitelistValid=function l(t,i){return this.rpcCall(l,u.bilibili.web.space.v1.WhitelistReq,u.bilibili.web.space.v1.WhitelistValidTimeReply,t,i)},"name",{value:"QueryWhitelistValid"}),Object.defineProperty(e.prototype.upActivityTab=function l(t,i){return this.rpcCall(l,u.bilibili.web.space.v1.UpActivityTabReq,u.bilibili.web.space.v1.UpActivityTabResp,t,i)},"name",{value:"UpActivityTab"}),Object.defineProperty(e.prototype.upRcmdBlackList=function l(t,i){return this.rpcCall(l,u.google.protobuf.Empty,u.bilibili.web.space.v1.UpRcmdBlackListReply,t,i)},"name",{value:"UpRcmdBlackList"}),Object.defineProperty(e.prototype.spaceSetting=function l(t,i){return this.rpcCall(l,u.bilibili.web.space.v1.SpaceSettingReq,u.bilibili.web.space.v1.SpaceSettingReply,t,i)},"name",{value:"SpaceSetting"}),e}(),c.SpaceSettingReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.mid=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.web.space.v1.SpaceSettingReq)return t;let i=new u.bilibili.web.space.v1.SpaceSettingReq;return t.mid!=null&&(r.Long?(i.mid=r.Long.fromValue(t.mid)).unsigned=!1:typeof t.mid=="string"?i.mid=parseInt(t.mid,10):typeof t.mid=="number"?i.mid=t.mid:typeof t.mid=="object"&&(i.mid=new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(r.Long){let o=new r.Long(0,0,!1);n.mid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mid=i.longs===String?"0":0;return t.mid!=null&&t.hasOwnProperty("mid")&&(typeof t.mid=="number"?n.mid=i.longs===String?String(t.mid):t.mid:n.mid=i.longs===String?r.Long.prototype.toString.call(t.mid):i.longs===Number?new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber():t.mid),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.web.space.v1.SpaceSettingReq"},e}(),c.SpaceSettingReply=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.channel=t.int64();break}case 2:{o.FavVideo=t.int64();break}case 3:{o.CoinsVideo=t.int64();break}case 4:{o.LikesVideo=t.int64();break}case 5:{o.Bangumi=t.int64();break}case 6:{o.PlayedGame=t.int64();break}case 7:{o.Groups=t.int64();break}case 8:{o.Comic=t.int64();break}case 9:{o.BBQ=t.int64();break}case 10:{o.DressUp=t.int64();break}case 11:{o.DisableFollowing=t.int64();break}case 12:{o.LivePlayback=t.int64();break}case 13:{o.CloseSpaceMedal=t.int64();break}case 14:{o.OnlyShowWearing=t.int64();break}case 15:{o.DisableShowSchool=t.int64();break}case 16:{o.DisableShowNft=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.web.space.v1.SpaceSettingReply)return t;let i=new u.bilibili.web.space.v1.SpaceSettingReply;return t.channel!=null&&(r.Long?(i.channel=r.Long.fromValue(t.channel)).unsigned=!1:typeof t.channel=="string"?i.channel=parseInt(t.channel,10):typeof t.channel=="number"?i.channel=t.channel:typeof t.channel=="object"&&(i.channel=new r.LongBits(t.channel.low>>>0,t.channel.high>>>0).toNumber())),t.FavVideo!=null&&(r.Long?(i.FavVideo=r.Long.fromValue(t.FavVideo)).unsigned=!1:typeof t.FavVideo=="string"?i.FavVideo=parseInt(t.FavVideo,10):typeof t.FavVideo=="number"?i.FavVideo=t.FavVideo:typeof t.FavVideo=="object"&&(i.FavVideo=new r.LongBits(t.FavVideo.low>>>0,t.FavVideo.high>>>0).toNumber())),t.CoinsVideo!=null&&(r.Long?(i.CoinsVideo=r.Long.fromValue(t.CoinsVideo)).unsigned=!1:typeof t.CoinsVideo=="string"?i.CoinsVideo=parseInt(t.CoinsVideo,10):typeof t.CoinsVideo=="number"?i.CoinsVideo=t.CoinsVideo:typeof t.CoinsVideo=="object"&&(i.CoinsVideo=new r.LongBits(t.CoinsVideo.low>>>0,t.CoinsVideo.high>>>0).toNumber())),t.LikesVideo!=null&&(r.Long?(i.LikesVideo=r.Long.fromValue(t.LikesVideo)).unsigned=!1:typeof t.LikesVideo=="string"?i.LikesVideo=parseInt(t.LikesVideo,10):typeof t.LikesVideo=="number"?i.LikesVideo=t.LikesVideo:typeof t.LikesVideo=="object"&&(i.LikesVideo=new r.LongBits(t.LikesVideo.low>>>0,t.LikesVideo.high>>>0).toNumber())),t.Bangumi!=null&&(r.Long?(i.Bangumi=r.Long.fromValue(t.Bangumi)).unsigned=!1:typeof t.Bangumi=="string"?i.Bangumi=parseInt(t.Bangumi,10):typeof t.Bangumi=="number"?i.Bangumi=t.Bangumi:typeof t.Bangumi=="object"&&(i.Bangumi=new r.LongBits(t.Bangumi.low>>>0,t.Bangumi.high>>>0).toNumber())),t.PlayedGame!=null&&(r.Long?(i.PlayedGame=r.Long.fromValue(t.PlayedGame)).unsigned=!1:typeof t.PlayedGame=="string"?i.PlayedGame=parseInt(t.PlayedGame,10):typeof t.PlayedGame=="number"?i.PlayedGame=t.PlayedGame:typeof t.PlayedGame=="object"&&(i.PlayedGame=new r.LongBits(t.PlayedGame.low>>>0,t.PlayedGame.high>>>0).toNumber())),t.Groups!=null&&(r.Long?(i.Groups=r.Long.fromValue(t.Groups)).unsigned=!1:typeof t.Groups=="string"?i.Groups=parseInt(t.Groups,10):typeof t.Groups=="number"?i.Groups=t.Groups:typeof t.Groups=="object"&&(i.Groups=new r.LongBits(t.Groups.low>>>0,t.Groups.high>>>0).toNumber())),t.Comic!=null&&(r.Long?(i.Comic=r.Long.fromValue(t.Comic)).unsigned=!1:typeof t.Comic=="string"?i.Comic=parseInt(t.Comic,10):typeof t.Comic=="number"?i.Comic=t.Comic:typeof t.Comic=="object"&&(i.Comic=new r.LongBits(t.Comic.low>>>0,t.Comic.high>>>0).toNumber())),t.BBQ!=null&&(r.Long?(i.BBQ=r.Long.fromValue(t.BBQ)).unsigned=!1:typeof t.BBQ=="string"?i.BBQ=parseInt(t.BBQ,10):typeof t.BBQ=="number"?i.BBQ=t.BBQ:typeof t.BBQ=="object"&&(i.BBQ=new r.LongBits(t.BBQ.low>>>0,t.BBQ.high>>>0).toNumber())),t.DressUp!=null&&(r.Long?(i.DressUp=r.Long.fromValue(t.DressUp)).unsigned=!1:typeof t.DressUp=="string"?i.DressUp=parseInt(t.DressUp,10):typeof t.DressUp=="number"?i.DressUp=t.DressUp:typeof t.DressUp=="object"&&(i.DressUp=new r.LongBits(t.DressUp.low>>>0,t.DressUp.high>>>0).toNumber())),t.DisableFollowing!=null&&(r.Long?(i.DisableFollowing=r.Long.fromValue(t.DisableFollowing)).unsigned=!1:typeof t.DisableFollowing=="string"?i.DisableFollowing=parseInt(t.DisableFollowing,10):typeof t.DisableFollowing=="number"?i.DisableFollowing=t.DisableFollowing:typeof t.DisableFollowing=="object"&&(i.DisableFollowing=new r.LongBits(t.DisableFollowing.low>>>0,t.DisableFollowing.high>>>0).toNumber())),t.LivePlayback!=null&&(r.Long?(i.LivePlayback=r.Long.fromValue(t.LivePlayback)).unsigned=!1:typeof t.LivePlayback=="string"?i.LivePlayback=parseInt(t.LivePlayback,10):typeof t.LivePlayback=="number"?i.LivePlayback=t.LivePlayback:typeof t.LivePlayback=="object"&&(i.LivePlayback=new r.LongBits(t.LivePlayback.low>>>0,t.LivePlayback.high>>>0).toNumber())),t.CloseSpaceMedal!=null&&(r.Long?(i.CloseSpaceMedal=r.Long.fromValue(t.CloseSpaceMedal)).unsigned=!1:typeof t.CloseSpaceMedal=="string"?i.CloseSpaceMedal=parseInt(t.CloseSpaceMedal,10):typeof t.CloseSpaceMedal=="number"?i.CloseSpaceMedal=t.CloseSpaceMedal:typeof t.CloseSpaceMedal=="object"&&(i.CloseSpaceMedal=new r.LongBits(t.CloseSpaceMedal.low>>>0,t.CloseSpaceMedal.high>>>0).toNumber())),t.OnlyShowWearing!=null&&(r.Long?(i.OnlyShowWearing=r.Long.fromValue(t.OnlyShowWearing)).unsigned=!1:typeof t.OnlyShowWearing=="string"?i.OnlyShowWearing=parseInt(t.OnlyShowWearing,10):typeof t.OnlyShowWearing=="number"?i.OnlyShowWearing=t.OnlyShowWearing:typeof t.OnlyShowWearing=="object"&&(i.OnlyShowWearing=new r.LongBits(t.OnlyShowWearing.low>>>0,t.OnlyShowWearing.high>>>0).toNumber())),t.DisableShowSchool!=null&&(r.Long?(i.DisableShowSchool=r.Long.fromValue(t.DisableShowSchool)).unsigned=!1:typeof t.DisableShowSchool=="string"?i.DisableShowSchool=parseInt(t.DisableShowSchool,10):typeof t.DisableShowSchool=="number"?i.DisableShowSchool=t.DisableShowSchool:typeof t.DisableShowSchool=="object"&&(i.DisableShowSchool=new r.LongBits(t.DisableShowSchool.low>>>0,t.DisableShowSchool.high>>>0).toNumber())),t.DisableShowNft!=null&&(r.Long?(i.DisableShowNft=r.Long.fromValue(t.DisableShowNft)).unsigned=!1:typeof t.DisableShowNft=="string"?i.DisableShowNft=parseInt(t.DisableShowNft,10):typeof t.DisableShowNft=="number"?i.DisableShowNft=t.DisableShowNft:typeof t.DisableShowNft=="object"&&(i.DisableShowNft=new r.LongBits(t.DisableShowNft.low>>>0,t.DisableShowNft.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.channel=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.channel=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.FavVideo=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.FavVideo=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.CoinsVideo=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.CoinsVideo=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.LikesVideo=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.LikesVideo=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.Bangumi=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.Bangumi=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.PlayedGame=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.PlayedGame=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.Groups=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.Groups=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.Comic=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.Comic=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.BBQ=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.BBQ=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.DressUp=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.DressUp=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.DisableFollowing=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.DisableFollowing=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.LivePlayback=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.LivePlayback=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.CloseSpaceMedal=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.CloseSpaceMedal=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.OnlyShowWearing=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.OnlyShowWearing=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.DisableShowSchool=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.DisableShowSchool=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.DisableShowNft=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.DisableShowNft=i.longs===String?"0":0}return t.channel!=null&&t.hasOwnProperty("channel")&&(typeof t.channel=="number"?n.channel=i.longs===String?String(t.channel):t.channel:n.channel=i.longs===String?r.Long.prototype.toString.call(t.channel):i.longs===Number?new r.LongBits(t.channel.low>>>0,t.channel.high>>>0).toNumber():t.channel),t.FavVideo!=null&&t.hasOwnProperty("FavVideo")&&(typeof t.FavVideo=="number"?n.FavVideo=i.longs===String?String(t.FavVideo):t.FavVideo:n.FavVideo=i.longs===String?r.Long.prototype.toString.call(t.FavVideo):i.longs===Number?new r.LongBits(t.FavVideo.low>>>0,t.FavVideo.high>>>0).toNumber():t.FavVideo),t.CoinsVideo!=null&&t.hasOwnProperty("CoinsVideo")&&(typeof t.CoinsVideo=="number"?n.CoinsVideo=i.longs===String?String(t.CoinsVideo):t.CoinsVideo:n.CoinsVideo=i.longs===String?r.Long.prototype.toString.call(t.CoinsVideo):i.longs===Number?new r.LongBits(t.CoinsVideo.low>>>0,t.CoinsVideo.high>>>0).toNumber():t.CoinsVideo),t.LikesVideo!=null&&t.hasOwnProperty("LikesVideo")&&(typeof t.LikesVideo=="number"?n.LikesVideo=i.longs===String?String(t.LikesVideo):t.LikesVideo:n.LikesVideo=i.longs===String?r.Long.prototype.toString.call(t.LikesVideo):i.longs===Number?new r.LongBits(t.LikesVideo.low>>>0,t.LikesVideo.high>>>0).toNumber():t.LikesVideo),t.Bangumi!=null&&t.hasOwnProperty("Bangumi")&&(typeof t.Bangumi=="number"?n.Bangumi=i.longs===String?String(t.Bangumi):t.Bangumi:n.Bangumi=i.longs===String?r.Long.prototype.toString.call(t.Bangumi):i.longs===Number?new r.LongBits(t.Bangumi.low>>>0,t.Bangumi.high>>>0).toNumber():t.Bangumi),t.PlayedGame!=null&&t.hasOwnProperty("PlayedGame")&&(typeof t.PlayedGame=="number"?n.PlayedGame=i.longs===String?String(t.PlayedGame):t.PlayedGame:n.PlayedGame=i.longs===String?r.Long.prototype.toString.call(t.PlayedGame):i.longs===Number?new r.LongBits(t.PlayedGame.low>>>0,t.PlayedGame.high>>>0).toNumber():t.PlayedGame),t.Groups!=null&&t.hasOwnProperty("Groups")&&(typeof t.Groups=="number"?n.Groups=i.longs===String?String(t.Groups):t.Groups:n.Groups=i.longs===String?r.Long.prototype.toString.call(t.Groups):i.longs===Number?new r.LongBits(t.Groups.low>>>0,t.Groups.high>>>0).toNumber():t.Groups),t.Comic!=null&&t.hasOwnProperty("Comic")&&(typeof t.Comic=="number"?n.Comic=i.longs===String?String(t.Comic):t.Comic:n.Comic=i.longs===String?r.Long.prototype.toString.call(t.Comic):i.longs===Number?new r.LongBits(t.Comic.low>>>0,t.Comic.high>>>0).toNumber():t.Comic),t.BBQ!=null&&t.hasOwnProperty("BBQ")&&(typeof t.BBQ=="number"?n.BBQ=i.longs===String?String(t.BBQ):t.BBQ:n.BBQ=i.longs===String?r.Long.prototype.toString.call(t.BBQ):i.longs===Number?new r.LongBits(t.BBQ.low>>>0,t.BBQ.high>>>0).toNumber():t.BBQ),t.DressUp!=null&&t.hasOwnProperty("DressUp")&&(typeof t.DressUp=="number"?n.DressUp=i.longs===String?String(t.DressUp):t.DressUp:n.DressUp=i.longs===String?r.Long.prototype.toString.call(t.DressUp):i.longs===Number?new r.LongBits(t.DressUp.low>>>0,t.DressUp.high>>>0).toNumber():t.DressUp),t.DisableFollowing!=null&&t.hasOwnProperty("DisableFollowing")&&(typeof t.DisableFollowing=="number"?n.DisableFollowing=i.longs===String?String(t.DisableFollowing):t.DisableFollowing:n.DisableFollowing=i.longs===String?r.Long.prototype.toString.call(t.DisableFollowing):i.longs===Number?new r.LongBits(t.DisableFollowing.low>>>0,t.DisableFollowing.high>>>0).toNumber():t.DisableFollowing),t.LivePlayback!=null&&t.hasOwnProperty("LivePlayback")&&(typeof t.LivePlayback=="number"?n.LivePlayback=i.longs===String?String(t.LivePlayback):t.LivePlayback:n.LivePlayback=i.longs===String?r.Long.prototype.toString.call(t.LivePlayback):i.longs===Number?new r.LongBits(t.LivePlayback.low>>>0,t.LivePlayback.high>>>0).toNumber():t.LivePlayback),t.CloseSpaceMedal!=null&&t.hasOwnProperty("CloseSpaceMedal")&&(typeof t.CloseSpaceMedal=="number"?n.CloseSpaceMedal=i.longs===String?String(t.CloseSpaceMedal):t.CloseSpaceMedal:n.CloseSpaceMedal=i.longs===String?r.Long.prototype.toString.call(t.CloseSpaceMedal):i.longs===Number?new r.LongBits(t.CloseSpaceMedal.low>>>0,t.CloseSpaceMedal.high>>>0).toNumber():t.CloseSpaceMedal),t.OnlyShowWearing!=null&&t.hasOwnProperty("OnlyShowWearing")&&(typeof t.OnlyShowWearing=="number"?n.OnlyShowWearing=i.longs===String?String(t.OnlyShowWearing):t.OnlyShowWearing:n.OnlyShowWearing=i.longs===String?r.Long.prototype.toString.call(t.OnlyShowWearing):i.longs===Number?new r.LongBits(t.OnlyShowWearing.low>>>0,t.OnlyShowWearing.high>>>0).toNumber():t.OnlyShowWearing),t.DisableShowSchool!=null&&t.hasOwnProperty("DisableShowSchool")&&(typeof t.DisableShowSchool=="number"?n.DisableShowSchool=i.longs===String?String(t.DisableShowSchool):t.DisableShowSchool:n.DisableShowSchool=i.longs===String?r.Long.prototype.toString.call(t.DisableShowSchool):i.longs===Number?new r.LongBits(t.DisableShowSchool.low>>>0,t.DisableShowSchool.high>>>0).toNumber():t.DisableShowSchool),t.DisableShowNft!=null&&t.hasOwnProperty("DisableShowNft")&&(typeof t.DisableShowNft=="number"?n.DisableShowNft=i.longs===String?String(t.DisableShowNft):t.DisableShowNft:n.DisableShowNft=i.longs===String?r.Long.prototype.toString.call(t.DisableShowNft):i.longs===Number?new r.LongBits(t.DisableShowNft.low>>>0,t.DisableShowNft.high>>>0).toNumber():t.DisableShowNft),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.web.space.v1.SpaceSettingReply"},e}(),c.TopPhotoType=function(){let e={},l=Object.create(e);return l[e[0]="UNKNOWN"]=0,l[e[1]="PIC"]=1,l[e[2]="ARCHIVE"]=2,l}(),c.NoReply=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){default:t.skipType(a&7);break}}return o},e.fromObject=function(t){return t instanceof u.bilibili.web.space.v1.NoReply?t:new u.bilibili.web.space.v1.NoReply},e.toObject=function(){return{}},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.web.space.v1.NoReply"},e}(),c.TopPhotoArcCancelReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.mid=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.web.space.v1.TopPhotoArcCancelReq)return t;let i=new u.bilibili.web.space.v1.TopPhotoArcCancelReq;return t.mid!=null&&(r.Long?(i.mid=r.Long.fromValue(t.mid)).unsigned=!1:typeof t.mid=="string"?i.mid=parseInt(t.mid,10):typeof t.mid=="number"?i.mid=t.mid:typeof t.mid=="object"&&(i.mid=new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(r.Long){let o=new r.Long(0,0,!1);n.mid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mid=i.longs===String?"0":0;return t.mid!=null&&t.hasOwnProperty("mid")&&(typeof t.mid=="number"?n.mid=i.longs===String?String(t.mid):t.mid:n.mid=i.longs===String?r.Long.prototype.toString.call(t.mid):i.longs===Number?new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber():t.mid),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.web.space.v1.TopPhotoArcCancelReq"},e}(),c.OfficialRequest=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.mid=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.web.space.v1.OfficialRequest)return t;let i=new u.bilibili.web.space.v1.OfficialRequest;return t.mid!=null&&(r.Long?(i.mid=r.Long.fromValue(t.mid)).unsigned=!1:typeof t.mid=="string"?i.mid=parseInt(t.mid,10):typeof t.mid=="number"?i.mid=t.mid:typeof t.mid=="object"&&(i.mid=new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(r.Long){let o=new r.Long(0,0,!1);n.mid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mid=i.longs===String?"0":0;return t.mid!=null&&t.hasOwnProperty("mid")&&(typeof t.mid=="number"?n.mid=i.longs===String?String(t.mid):t.mid:n.mid=i.longs===String?r.Long.prototype.toString.call(t.mid):i.longs===Number?new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber():t.mid),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.web.space.v1.OfficialRequest"},e}(),c.OfficialReply=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.id=t.int64();break}case 2:{o.uid=t.int64();break}case 3:{o.name=t.string();break}case 4:{o.icon=t.string();break}case 5:{o.scheme=t.string();break}case 6:{o.rcmd=t.string();break}case 7:{o.iosUrl=t.string();break}case 8:{o.androidUrl=t.string();break}case 9:{o.button=t.string();break}case 10:{o.deleted=t.string();break}case 11:{o.mtime=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.web.space.v1.OfficialReply)return t;let i=new u.bilibili.web.space.v1.OfficialReply;return t.id!=null&&(r.Long?(i.id=r.Long.fromValue(t.id)).unsigned=!1:typeof t.id=="string"?i.id=parseInt(t.id,10):typeof t.id=="number"?i.id=t.id:typeof t.id=="object"&&(i.id=new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber())),t.uid!=null&&(r.Long?(i.uid=r.Long.fromValue(t.uid)).unsigned=!1:typeof t.uid=="string"?i.uid=parseInt(t.uid,10):typeof t.uid=="number"?i.uid=t.uid:typeof t.uid=="object"&&(i.uid=new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber())),t.name!=null&&(i.name=String(t.name)),t.icon!=null&&(i.icon=String(t.icon)),t.scheme!=null&&(i.scheme=String(t.scheme)),t.rcmd!=null&&(i.rcmd=String(t.rcmd)),t.iosUrl!=null&&(i.iosUrl=String(t.iosUrl)),t.androidUrl!=null&&(i.androidUrl=String(t.androidUrl)),t.button!=null&&(i.button=String(t.button)),t.deleted!=null&&(i.deleted=String(t.deleted)),t.mtime!=null&&(r.Long?(i.mtime=r.Long.fromValue(t.mtime)).unsigned=!1:typeof t.mtime=="string"?i.mtime=parseInt(t.mtime,10):typeof t.mtime=="number"?i.mtime=t.mtime:typeof t.mtime=="object"&&(i.mtime=new r.LongBits(t.mtime.low>>>0,t.mtime.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.id=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.id=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.uid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.uid=i.longs===String?"0":0;if(n.name="",n.icon="",n.scheme="",n.rcmd="",n.iosUrl="",n.androidUrl="",n.button="",n.deleted="",r.Long){let o=new r.Long(0,0,!1);n.mtime=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mtime=i.longs===String?"0":0}return t.id!=null&&t.hasOwnProperty("id")&&(typeof t.id=="number"?n.id=i.longs===String?String(t.id):t.id:n.id=i.longs===String?r.Long.prototype.toString.call(t.id):i.longs===Number?new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber():t.id),t.uid!=null&&t.hasOwnProperty("uid")&&(typeof t.uid=="number"?n.uid=i.longs===String?String(t.uid):t.uid:n.uid=i.longs===String?r.Long.prototype.toString.call(t.uid):i.longs===Number?new r.LongBits(t.uid.low>>>0,t.uid.high>>>0).toNumber():t.uid),t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),t.icon!=null&&t.hasOwnProperty("icon")&&(n.icon=t.icon),t.scheme!=null&&t.hasOwnProperty("scheme")&&(n.scheme=t.scheme),t.rcmd!=null&&t.hasOwnProperty("rcmd")&&(n.rcmd=t.rcmd),t.iosUrl!=null&&t.hasOwnProperty("iosUrl")&&(n.iosUrl=t.iosUrl),t.androidUrl!=null&&t.hasOwnProperty("androidUrl")&&(n.androidUrl=t.androidUrl),t.button!=null&&t.hasOwnProperty("button")&&(n.button=t.button),t.deleted!=null&&t.hasOwnProperty("deleted")&&(n.deleted=t.deleted),t.mtime!=null&&t.hasOwnProperty("mtime")&&(typeof t.mtime=="number"?n.mtime=i.longs===String?String(t.mtime):t.mtime:n.mtime=i.longs===String?r.Long.prototype.toString.call(t.mtime):i.longs===Number?new r.LongBits(t.mtime.low>>>0,t.mtime.high>>>0).toNumber():t.mtime),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.web.space.v1.OfficialReply"},e}(),c.PrivacyRequest=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.mid=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.web.space.v1.PrivacyRequest)return t;let i=new u.bilibili.web.space.v1.PrivacyRequest;return t.mid!=null&&(r.Long?(i.mid=r.Long.fromValue(t.mid)).unsigned=!1:typeof t.mid=="string"?i.mid=parseInt(t.mid,10):typeof t.mid=="number"?i.mid=t.mid:typeof t.mid=="object"&&(i.mid=new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(r.Long){let o=new r.Long(0,0,!1);n.mid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mid=i.longs===String?"0":0;return t.mid!=null&&t.hasOwnProperty("mid")&&(typeof t.mid=="number"?n.mid=i.longs===String?String(t.mid):t.mid:n.mid=i.longs===String?r.Long.prototype.toString.call(t.mid):i.longs===Number?new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber():t.mid),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.web.space.v1.PrivacyRequest"},e}(),c.PrivacyReply=function(){function e(l){if(this.privacy={},l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.privacy===r.emptyObject&&(o.privacy={});let v=t.uint32()+t.pos;for(a="",y=0;t.pos>>3){case 1:a=t.string();break;case 2:y=t.int64();break;default:t.skipType(g&7);break}}o.privacy[a]=y;break}default:t.skipType(s&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.web.space.v1.PrivacyReply)return t;let i=new u.bilibili.web.space.v1.PrivacyReply;if(t.privacy){if(typeof t.privacy!="object")throw TypeError(".bilibili.web.space.v1.PrivacyReply.privacy: object expected");i.privacy={};for(let n=Object.keys(t.privacy),o=0;o>>0,t.privacy[n[o]].high>>>0).toNumber())}return i},e.toObject=function(t,i){i||(i={});let n={};(i.objects||i.defaults)&&(n.privacy={});let o;if(t.privacy&&(o=Object.keys(t.privacy)).length){n.privacy={};for(let a=0;a>>0,t.privacy[o[a]].high>>>0).toNumber():t.privacy[o[a]]}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.web.space.v1.PrivacyReply"},e}(),c.PhotoMallListReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.mobiapp=t.string();break}case 2:{o.mid=t.int64();break}case 3:{o.device=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.web.space.v1.PhotoMallListReq)return t;let i=new u.bilibili.web.space.v1.PhotoMallListReq;return t.mobiapp!=null&&(i.mobiapp=String(t.mobiapp)),t.mid!=null&&(r.Long?(i.mid=r.Long.fromValue(t.mid)).unsigned=!1:typeof t.mid=="string"?i.mid=parseInt(t.mid,10):typeof t.mid=="number"?i.mid=t.mid:typeof t.mid=="object"&&(i.mid=new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber())),t.device!=null&&(i.device=String(t.device)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.mobiapp="",r.Long){let o=new r.Long(0,0,!1);n.mid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mid=i.longs===String?"0":0;n.device=""}return t.mobiapp!=null&&t.hasOwnProperty("mobiapp")&&(n.mobiapp=t.mobiapp),t.mid!=null&&t.hasOwnProperty("mid")&&(typeof t.mid=="number"?n.mid=i.longs===String?String(t.mid):t.mid:n.mid=i.longs===String?r.Long.prototype.toString.call(t.mid):i.longs===Number?new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber():t.mid),t.device!=null&&t.hasOwnProperty("device")&&(n.device=t.device),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.web.space.v1.PhotoMallListReq"},e}(),c.PhotoMallListReply=function(){function e(l){if(this.list=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.list&&o.list.length||(o.list=[]),o.list.push(u.bilibili.web.space.v1.PhotoMall.decode(t,t.uint32()));break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.web.space.v1.PhotoMallListReply)return t;let i=new u.bilibili.web.space.v1.PhotoMallListReply;if(t.list){if(!Array.isArray(t.list))throw TypeError(".bilibili.web.space.v1.PhotoMallListReply.list: array expected");i.list=[];for(let n=0;n>>3){case 1:{o.id=t.int64();break}case 2:{o.name=t.string();break}case 3:{o.img=t.string();break}case 4:{o.nightImg=t.string();break}case 5:{o.isActivated=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.web.space.v1.PhotoMall)return t;let i=new u.bilibili.web.space.v1.PhotoMall;return t.id!=null&&(r.Long?(i.id=r.Long.fromValue(t.id)).unsigned=!1:typeof t.id=="string"?i.id=parseInt(t.id,10):typeof t.id=="number"?i.id=t.id:typeof t.id=="object"&&(i.id=new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber())),t.name!=null&&(i.name=String(t.name)),t.img!=null&&(i.img=String(t.img)),t.nightImg!=null&&(i.nightImg=String(t.nightImg)),t.isActivated!=null&&(r.Long?(i.isActivated=r.Long.fromValue(t.isActivated)).unsigned=!1:typeof t.isActivated=="string"?i.isActivated=parseInt(t.isActivated,10):typeof t.isActivated=="number"?i.isActivated=t.isActivated:typeof t.isActivated=="object"&&(i.isActivated=new r.LongBits(t.isActivated.low>>>0,t.isActivated.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.id=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.id=i.longs===String?"0":0;if(n.name="",n.img="",n.nightImg="",r.Long){let o=new r.Long(0,0,!1);n.isActivated=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.isActivated=i.longs===String?"0":0}return t.id!=null&&t.hasOwnProperty("id")&&(typeof t.id=="number"?n.id=i.longs===String?String(t.id):t.id:n.id=i.longs===String?r.Long.prototype.toString.call(t.id):i.longs===Number?new r.LongBits(t.id.low>>>0,t.id.high>>>0).toNumber():t.id),t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),t.img!=null&&t.hasOwnProperty("img")&&(n.img=t.img),t.nightImg!=null&&t.hasOwnProperty("nightImg")&&(n.nightImg=t.nightImg),t.isActivated!=null&&t.hasOwnProperty("isActivated")&&(typeof t.isActivated=="number"?n.isActivated=i.longs===String?String(t.isActivated):t.isActivated:n.isActivated=i.longs===String?r.Long.prototype.toString.call(t.isActivated):i.longs===Number?new r.LongBits(t.isActivated.low>>>0,t.isActivated.high>>>0).toNumber():t.isActivated),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.web.space.v1.PhotoMall"},e}(),c.SetTopPhotoReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.mobiapp=t.string();break}case 2:{o.ID=t.int64();break}case 3:{o.mid=t.int64();break}case 4:{o.type=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.web.space.v1.SetTopPhotoReq)return t;let i=new u.bilibili.web.space.v1.SetTopPhotoReq;switch(t.mobiapp!=null&&(i.mobiapp=String(t.mobiapp)),t.ID!=null&&(r.Long?(i.ID=r.Long.fromValue(t.ID)).unsigned=!1:typeof t.ID=="string"?i.ID=parseInt(t.ID,10):typeof t.ID=="number"?i.ID=t.ID:typeof t.ID=="object"&&(i.ID=new r.LongBits(t.ID.low>>>0,t.ID.high>>>0).toNumber())),t.mid!=null&&(r.Long?(i.mid=r.Long.fromValue(t.mid)).unsigned=!1:typeof t.mid=="string"?i.mid=parseInt(t.mid,10):typeof t.mid=="number"?i.mid=t.mid:typeof t.mid=="object"&&(i.mid=new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber())),t.type){default:if(typeof t.type=="number"){i.type=t.type;break}break;case"UNKNOWN":case 0:i.type=0;break;case"PIC":case 1:i.type=1;break;case"ARCHIVE":case 2:i.type=2;break}return i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.mobiapp="",r.Long){let o=new r.Long(0,0,!1);n.ID=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.ID=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.mid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mid=i.longs===String?"0":0;n.type=i.enums===String?"UNKNOWN":0}return t.mobiapp!=null&&t.hasOwnProperty("mobiapp")&&(n.mobiapp=t.mobiapp),t.ID!=null&&t.hasOwnProperty("ID")&&(typeof t.ID=="number"?n.ID=i.longs===String?String(t.ID):t.ID:n.ID=i.longs===String?r.Long.prototype.toString.call(t.ID):i.longs===Number?new r.LongBits(t.ID.low>>>0,t.ID.high>>>0).toNumber():t.ID),t.mid!=null&&t.hasOwnProperty("mid")&&(typeof t.mid=="number"?n.mid=i.longs===String?String(t.mid):t.mid:n.mid=i.longs===String?r.Long.prototype.toString.call(t.mid):i.longs===Number?new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber():t.mid),t.type!=null&&t.hasOwnProperty("type")&&(n.type=i.enums===String?u.bilibili.web.space.v1.TopPhotoType[t.type]===void 0?t.type:u.bilibili.web.space.v1.TopPhotoType[t.type]:t.type),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.web.space.v1.SetTopPhotoReq"},e}(),c.TopPhotoReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.mobiapp=t.string();break}case 2:{o.mid=t.int64();break}case 3:{o.build=t.int32();break}case 4:{o.device=t.string();break}case 5:{o.loginMid=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.web.space.v1.TopPhotoReq)return t;let i=new u.bilibili.web.space.v1.TopPhotoReq;return t.mobiapp!=null&&(i.mobiapp=String(t.mobiapp)),t.mid!=null&&(r.Long?(i.mid=r.Long.fromValue(t.mid)).unsigned=!1:typeof t.mid=="string"?i.mid=parseInt(t.mid,10):typeof t.mid=="number"?i.mid=t.mid:typeof t.mid=="object"&&(i.mid=new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber())),t.build!=null&&(i.build=t.build|0),t.device!=null&&(i.device=String(t.device)),t.loginMid!=null&&(r.Long?(i.loginMid=r.Long.fromValue(t.loginMid)).unsigned=!1:typeof t.loginMid=="string"?i.loginMid=parseInt(t.loginMid,10):typeof t.loginMid=="number"?i.loginMid=t.loginMid:typeof t.loginMid=="object"&&(i.loginMid=new r.LongBits(t.loginMid.low>>>0,t.loginMid.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.mobiapp="",r.Long){let o=new r.Long(0,0,!1);n.mid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mid=i.longs===String?"0":0;if(n.build=0,n.device="",r.Long){let o=new r.Long(0,0,!1);n.loginMid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.loginMid=i.longs===String?"0":0}return t.mobiapp!=null&&t.hasOwnProperty("mobiapp")&&(n.mobiapp=t.mobiapp),t.mid!=null&&t.hasOwnProperty("mid")&&(typeof t.mid=="number"?n.mid=i.longs===String?String(t.mid):t.mid:n.mid=i.longs===String?r.Long.prototype.toString.call(t.mid):i.longs===Number?new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber():t.mid),t.build!=null&&t.hasOwnProperty("build")&&(n.build=t.build),t.device!=null&&t.hasOwnProperty("device")&&(n.device=t.device),t.loginMid!=null&&t.hasOwnProperty("loginMid")&&(typeof t.loginMid=="number"?n.loginMid=i.longs===String?String(t.loginMid):t.loginMid:n.loginMid=i.longs===String?r.Long.prototype.toString.call(t.loginMid):i.longs===Number?new r.LongBits(t.loginMid.low>>>0,t.loginMid.high>>>0).toNumber():t.loginMid),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.web.space.v1.TopPhotoReq"},e}(),c.TopPhotoReply=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.topPhoto=u.bilibili.web.space.v1.TopPhoto.decode(t,t.uint32());break}case 2:{o.topPhotoArc=u.bilibili.web.space.v1.TopPhotoArc.decode(t,t.uint32());break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.web.space.v1.TopPhotoReply)return t;let i=new u.bilibili.web.space.v1.TopPhotoReply;if(t.topPhoto!=null){if(typeof t.topPhoto!="object")throw TypeError(".bilibili.web.space.v1.TopPhotoReply.topPhoto: object expected");i.topPhoto=u.bilibili.web.space.v1.TopPhoto.fromObject(t.topPhoto)}if(t.topPhotoArc!=null){if(typeof t.topPhotoArc!="object")throw TypeError(".bilibili.web.space.v1.TopPhotoReply.topPhotoArc: object expected");i.topPhotoArc=u.bilibili.web.space.v1.TopPhotoArc.fromObject(t.topPhotoArc)}return i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.topPhoto=null,n.topPhotoArc=null),t.topPhoto!=null&&t.hasOwnProperty("topPhoto")&&(n.topPhoto=u.bilibili.web.space.v1.TopPhoto.toObject(t.topPhoto,i)),t.topPhotoArc!=null&&t.hasOwnProperty("topPhotoArc")&&(n.topPhotoArc=u.bilibili.web.space.v1.TopPhotoArc.toObject(t.topPhotoArc,i)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.web.space.v1.TopPhotoReply"},e}(),c.TopPhoto=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.imgUrl=t.string();break}case 2:{o.nightImgUrl=t.string();break}case 3:{o.sid=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.web.space.v1.TopPhoto)return t;let i=new u.bilibili.web.space.v1.TopPhoto;return t.imgUrl!=null&&(i.imgUrl=String(t.imgUrl)),t.nightImgUrl!=null&&(i.nightImgUrl=String(t.nightImgUrl)),t.sid!=null&&(r.Long?(i.sid=r.Long.fromValue(t.sid)).unsigned=!1:typeof t.sid=="string"?i.sid=parseInt(t.sid,10):typeof t.sid=="number"?i.sid=t.sid:typeof t.sid=="object"&&(i.sid=new r.LongBits(t.sid.low>>>0,t.sid.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(n.imgUrl="",n.nightImgUrl="",r.Long){let o=new r.Long(0,0,!1);n.sid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.sid=i.longs===String?"0":0;return t.imgUrl!=null&&t.hasOwnProperty("imgUrl")&&(n.imgUrl=t.imgUrl),t.nightImgUrl!=null&&t.hasOwnProperty("nightImgUrl")&&(n.nightImgUrl=t.nightImgUrl),t.sid!=null&&t.hasOwnProperty("sid")&&(typeof t.sid=="number"?n.sid=i.longs===String?String(t.sid):t.sid:n.sid=i.longs===String?r.Long.prototype.toString.call(t.sid):i.longs===Number?new r.LongBits(t.sid.low>>>0,t.sid.high>>>0).toNumber():t.sid),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.web.space.v1.TopPhoto"},e}(),c.TopPhotoArc=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.show=t.bool();break}case 2:{o.aid=t.int64();break}case 3:{o.pic=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.web.space.v1.TopPhotoArc)return t;let i=new u.bilibili.web.space.v1.TopPhotoArc;return t.show!=null&&(i.show=!!t.show),t.aid!=null&&(r.Long?(i.aid=r.Long.fromValue(t.aid)).unsigned=!1:typeof t.aid=="string"?i.aid=parseInt(t.aid,10):typeof t.aid=="number"?i.aid=t.aid:typeof t.aid=="object"&&(i.aid=new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber())),t.pic!=null&&(i.pic=String(t.pic)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.show=!1,r.Long){let o=new r.Long(0,0,!1);n.aid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.aid=i.longs===String?"0":0;n.pic=""}return t.show!=null&&t.hasOwnProperty("show")&&(n.show=t.show),t.aid!=null&&t.hasOwnProperty("aid")&&(typeof t.aid=="number"?n.aid=i.longs===String?String(t.aid):t.aid:n.aid=i.longs===String?r.Long.prototype.toString.call(t.aid):i.longs===Number?new r.LongBits(t.aid.low>>>0,t.aid.high>>>0).toNumber():t.aid),t.pic!=null&&t.hasOwnProperty("pic")&&(n.pic=t.pic),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.web.space.v1.TopPhotoArc"},e}(),c.WhitelistReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.mid=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.web.space.v1.WhitelistReq)return t;let i=new u.bilibili.web.space.v1.WhitelistReq;return t.mid!=null&&(r.Long?(i.mid=r.Long.fromValue(t.mid)).unsigned=!1:typeof t.mid=="string"?i.mid=parseInt(t.mid,10):typeof t.mid=="number"?i.mid=t.mid:typeof t.mid=="object"&&(i.mid=new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults)if(r.Long){let o=new r.Long(0,0,!1);n.mid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mid=i.longs===String?"0":0;return t.mid!=null&&t.hasOwnProperty("mid")&&(typeof t.mid=="number"?n.mid=i.longs===String?String(t.mid):t.mid:n.mid=i.longs===String?r.Long.prototype.toString.call(t.mid):i.longs===Number?new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber():t.mid),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.web.space.v1.WhitelistReq"},e}(),c.WhitelistReply=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.isWhite=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.web.space.v1.WhitelistReply)return t;let i=new u.bilibili.web.space.v1.WhitelistReply;return t.isWhite!=null&&(i.isWhite=!!t.isWhite),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.isWhite=!1),t.isWhite!=null&&t.hasOwnProperty("isWhite")&&(n.isWhite=t.isWhite),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.web.space.v1.WhitelistReply"},e}(),c.WhitelistValidTimeReply=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.isWhite=t.bool();break}case 2:{o.stime=t.int64();break}case 3:{o.etime=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.web.space.v1.WhitelistValidTimeReply)return t;let i=new u.bilibili.web.space.v1.WhitelistValidTimeReply;return t.isWhite!=null&&(i.isWhite=!!t.isWhite),t.stime!=null&&(r.Long?(i.stime=r.Long.fromValue(t.stime)).unsigned=!1:typeof t.stime=="string"?i.stime=parseInt(t.stime,10):typeof t.stime=="number"?i.stime=t.stime:typeof t.stime=="object"&&(i.stime=new r.LongBits(t.stime.low>>>0,t.stime.high>>>0).toNumber())),t.etime!=null&&(r.Long?(i.etime=r.Long.fromValue(t.etime)).unsigned=!1:typeof t.etime=="string"?i.etime=parseInt(t.etime,10):typeof t.etime=="number"?i.etime=t.etime:typeof t.etime=="object"&&(i.etime=new r.LongBits(t.etime.low>>>0,t.etime.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.isWhite=!1,r.Long){let o=new r.Long(0,0,!1);n.stime=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.stime=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.etime=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.etime=i.longs===String?"0":0}return t.isWhite!=null&&t.hasOwnProperty("isWhite")&&(n.isWhite=t.isWhite),t.stime!=null&&t.hasOwnProperty("stime")&&(typeof t.stime=="number"?n.stime=i.longs===String?String(t.stime):t.stime:n.stime=i.longs===String?r.Long.prototype.toString.call(t.stime):i.longs===Number?new r.LongBits(t.stime.low>>>0,t.stime.high>>>0).toNumber():t.stime),t.etime!=null&&t.hasOwnProperty("etime")&&(typeof t.etime=="number"?n.etime=i.longs===String?String(t.etime):t.etime:n.etime=i.longs===String?r.Long.prototype.toString.call(t.etime):i.longs===Number?new r.LongBits(t.etime.low>>>0,t.etime.high>>>0).toNumber():t.etime),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.web.space.v1.WhitelistValidTimeReply"},e}(),c.WhitelistAddReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.mid=t.int64();break}case 2:{o.stime=t.int64();break}case 3:{o.etime=t.int64();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.web.space.v1.WhitelistAddReq)return t;let i=new u.bilibili.web.space.v1.WhitelistAddReq;return t.mid!=null&&(r.Long?(i.mid=r.Long.fromValue(t.mid)).unsigned=!1:typeof t.mid=="string"?i.mid=parseInt(t.mid,10):typeof t.mid=="number"?i.mid=t.mid:typeof t.mid=="object"&&(i.mid=new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber())),t.stime!=null&&(r.Long?(i.stime=r.Long.fromValue(t.stime)).unsigned=!1:typeof t.stime=="string"?i.stime=parseInt(t.stime,10):typeof t.stime=="number"?i.stime=t.stime:typeof t.stime=="object"&&(i.stime=new r.LongBits(t.stime.low>>>0,t.stime.high>>>0).toNumber())),t.etime!=null&&(r.Long?(i.etime=r.Long.fromValue(t.etime)).unsigned=!1:typeof t.etime=="string"?i.etime=parseInt(t.etime,10):typeof t.etime=="number"?i.etime=t.etime:typeof t.etime=="object"&&(i.etime=new r.LongBits(t.etime.low>>>0,t.etime.high>>>0).toNumber())),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.mid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mid=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.stime=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.stime=i.longs===String?"0":0;if(r.Long){let o=new r.Long(0,0,!1);n.etime=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.etime=i.longs===String?"0":0}return t.mid!=null&&t.hasOwnProperty("mid")&&(typeof t.mid=="number"?n.mid=i.longs===String?String(t.mid):t.mid:n.mid=i.longs===String?r.Long.prototype.toString.call(t.mid):i.longs===Number?new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber():t.mid),t.stime!=null&&t.hasOwnProperty("stime")&&(typeof t.stime=="number"?n.stime=i.longs===String?String(t.stime):t.stime:n.stime=i.longs===String?r.Long.prototype.toString.call(t.stime):i.longs===Number?new r.LongBits(t.stime.low>>>0,t.stime.high>>>0).toNumber():t.stime),t.etime!=null&&t.hasOwnProperty("etime")&&(typeof t.etime=="number"?n.etime=i.longs===String?String(t.etime):t.etime:n.etime=i.longs===String?r.Long.prototype.toString.call(t.etime):i.longs===Number?new r.LongBits(t.etime.low>>>0,t.etime.high>>>0).toNumber():t.etime),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.web.space.v1.WhitelistAddReq"},e}(),c.WhitelistAddReply=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.addOk=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.web.space.v1.WhitelistAddReply)return t;let i=new u.bilibili.web.space.v1.WhitelistAddReply;return t.addOk!=null&&(i.addOk=!!t.addOk),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.addOk=!1),t.addOk!=null&&t.hasOwnProperty("addOk")&&(n.addOk=t.addOk),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.web.space.v1.WhitelistAddReply"},e}(),c.WhitelistUpReply=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.upOk=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.web.space.v1.WhitelistUpReply)return t;let i=new u.bilibili.web.space.v1.WhitelistUpReply;return t.upOk!=null&&(i.upOk=!!t.upOk),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.upOk=!1),t.upOk!=null&&t.hasOwnProperty("upOk")&&(n.upOk=t.upOk),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.web.space.v1.WhitelistUpReply"},e}(),c.UpActivityTabReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.mid=t.int64();break}case 2:{o.state=t.int32();break}case 3:{o.tabCont=t.int64();break}case 4:{o.tabName=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.web.space.v1.UpActivityTabReq)return t;let i=new u.bilibili.web.space.v1.UpActivityTabReq;return t.mid!=null&&(r.Long?(i.mid=r.Long.fromValue(t.mid)).unsigned=!1:typeof t.mid=="string"?i.mid=parseInt(t.mid,10):typeof t.mid=="number"?i.mid=t.mid:typeof t.mid=="object"&&(i.mid=new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber())),t.state!=null&&(i.state=t.state|0),t.tabCont!=null&&(r.Long?(i.tabCont=r.Long.fromValue(t.tabCont)).unsigned=!1:typeof t.tabCont=="string"?i.tabCont=parseInt(t.tabCont,10):typeof t.tabCont=="number"?i.tabCont=t.tabCont:typeof t.tabCont=="object"&&(i.tabCont=new r.LongBits(t.tabCont.low>>>0,t.tabCont.high>>>0).toNumber())),t.tabName!=null&&(i.tabName=String(t.tabName)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.mid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mid=i.longs===String?"0":0;if(n.state=0,r.Long){let o=new r.Long(0,0,!1);n.tabCont=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.tabCont=i.longs===String?"0":0;n.tabName=""}return t.mid!=null&&t.hasOwnProperty("mid")&&(typeof t.mid=="number"?n.mid=i.longs===String?String(t.mid):t.mid:n.mid=i.longs===String?r.Long.prototype.toString.call(t.mid):i.longs===Number?new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber():t.mid),t.state!=null&&t.hasOwnProperty("state")&&(n.state=t.state),t.tabCont!=null&&t.hasOwnProperty("tabCont")&&(typeof t.tabCont=="number"?n.tabCont=i.longs===String?String(t.tabCont):t.tabCont:n.tabCont=i.longs===String?r.Long.prototype.toString.call(t.tabCont):i.longs===Number?new r.LongBits(t.tabCont.low>>>0,t.tabCont.high>>>0).toNumber():t.tabCont),t.tabName!=null&&t.hasOwnProperty("tabName")&&(n.tabName=t.tabName),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.web.space.v1.UpActivityTabReq"},e}(),c.UpActivityTabResp=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.success=t.bool();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.web.space.v1.UpActivityTabResp)return t;let i=new u.bilibili.web.space.v1.UpActivityTabResp;return t.success!=null&&(i.success=!!t.success),i},e.toObject=function(t,i){i||(i={});let n={};return i.defaults&&(n.success=!1),t.success!=null&&t.hasOwnProperty("success")&&(n.success=t.success),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.web.space.v1.UpActivityTabResp"},e}(),c.UserTabReq=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.mid=t.int64();break}case 2:{o.plat=t.int32();break}case 3:{o.build=t.int32();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.web.space.v1.UserTabReq)return t;let i=new u.bilibili.web.space.v1.UserTabReq;return t.mid!=null&&(r.Long?(i.mid=r.Long.fromValue(t.mid)).unsigned=!1:typeof t.mid=="string"?i.mid=parseInt(t.mid,10):typeof t.mid=="number"?i.mid=t.mid:typeof t.mid=="object"&&(i.mid=new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber())),t.plat!=null&&(i.plat=t.plat|0),t.build!=null&&(i.build=t.build|0),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(r.Long){let o=new r.Long(0,0,!1);n.mid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mid=i.longs===String?"0":0;n.plat=0,n.build=0}return t.mid!=null&&t.hasOwnProperty("mid")&&(typeof t.mid=="number"?n.mid=i.longs===String?String(t.mid):t.mid:n.mid=i.longs===String?r.Long.prototype.toString.call(t.mid):i.longs===Number?new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber():t.mid),t.plat!=null&&t.hasOwnProperty("plat")&&(n.plat=t.plat),t.build!=null&&t.hasOwnProperty("build")&&(n.build=t.build),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.web.space.v1.UserTabReq"},e}(),c.UserTabReply=function(){function e(l){if(l)for(let t=Object.keys(l),i=0;i>>3){case 1:{o.tabType=t.int32();break}case 2:{o.mid=t.int64();break}case 3:{o.tabName=t.string();break}case 4:{o.tabOrder=t.int32();break}case 5:{o.tabCont=t.int64();break}case 6:{o.isDefault=t.int32();break}case 7:{o.h5Link=t.string();break}default:t.skipType(a&7);break}}return o},e.fromObject=function(t){if(t instanceof u.bilibili.web.space.v1.UserTabReply)return t;let i=new u.bilibili.web.space.v1.UserTabReply;return t.tabType!=null&&(i.tabType=t.tabType|0),t.mid!=null&&(r.Long?(i.mid=r.Long.fromValue(t.mid)).unsigned=!1:typeof t.mid=="string"?i.mid=parseInt(t.mid,10):typeof t.mid=="number"?i.mid=t.mid:typeof t.mid=="object"&&(i.mid=new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber())),t.tabName!=null&&(i.tabName=String(t.tabName)),t.tabOrder!=null&&(i.tabOrder=t.tabOrder|0),t.tabCont!=null&&(r.Long?(i.tabCont=r.Long.fromValue(t.tabCont)).unsigned=!1:typeof t.tabCont=="string"?i.tabCont=parseInt(t.tabCont,10):typeof t.tabCont=="number"?i.tabCont=t.tabCont:typeof t.tabCont=="object"&&(i.tabCont=new r.LongBits(t.tabCont.low>>>0,t.tabCont.high>>>0).toNumber())),t.isDefault!=null&&(i.isDefault=t.isDefault|0),t.h5Link!=null&&(i.h5Link=String(t.h5Link)),i},e.toObject=function(t,i){i||(i={});let n={};if(i.defaults){if(n.tabType=0,r.Long){let o=new r.Long(0,0,!1);n.mid=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.mid=i.longs===String?"0":0;if(n.tabName="",n.tabOrder=0,r.Long){let o=new r.Long(0,0,!1);n.tabCont=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else n.tabCont=i.longs===String?"0":0;n.isDefault=0,n.h5Link=""}return t.tabType!=null&&t.hasOwnProperty("tabType")&&(n.tabType=t.tabType),t.mid!=null&&t.hasOwnProperty("mid")&&(typeof t.mid=="number"?n.mid=i.longs===String?String(t.mid):t.mid:n.mid=i.longs===String?r.Long.prototype.toString.call(t.mid):i.longs===Number?new r.LongBits(t.mid.low>>>0,t.mid.high>>>0).toNumber():t.mid),t.tabName!=null&&t.hasOwnProperty("tabName")&&(n.tabName=t.tabName),t.tabOrder!=null&&t.hasOwnProperty("tabOrder")&&(n.tabOrder=t.tabOrder),t.tabCont!=null&&t.hasOwnProperty("tabCont")&&(typeof t.tabCont=="number"?n.tabCont=i.longs===String?String(t.tabCont):t.tabCont:n.tabCont=i.longs===String?r.Long.prototype.toString.call(t.tabCont):i.longs===Number?new r.LongBits(t.tabCont.low>>>0,t.tabCont.high>>>0).toNumber():t.tabCont),t.isDefault!=null&&t.hasOwnProperty("isDefault")&&(n.isDefault=t.isDefault),t.h5Link!=null&&t.hasOwnProperty("h5Link")&&(n.h5Link=t.h5Link),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.web.space.v1.UserTabReply"},e}(),c.UpRcmdBlackListReply=function(){function e(l){if(this.bannedMids=[],l)for(let t=Object.keys(l),i=0;i>>3){case 1:{if(o.bannedMids&&o.bannedMids.length||(o.bannedMids=[]),(a&7)===2){let y=t.uint32()+t.pos;for(;t.pos>>0,t.bannedMids[n].high>>>0).toNumber())}return i},e.toObject=function(t,i){i||(i={});let n={};if((i.arrays||i.defaults)&&(n.bannedMids=[]),t.bannedMids&&t.bannedMids.length){n.bannedMids=[];for(let o=0;o>>0,t.bannedMids[o].high>>>0).toNumber():t.bannedMids[o]}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/bilibili.web.space.v1.UpRcmdBlackListReply"},e}(),c}(),p}(),d}(),O})(),Kr=u.archive=(()=>{let O={};return O.service=function(){let d={};return d.v1=function(){let p={};return p.Arc=function(){function c(e){if(this.tags=[],this.staffInfo=[],e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.aid=l.int64();break}case 2:{n.videos=l.int64();break}case 3:{n.typeId=l.int32();break}case 4:{n.typeName=l.string();break}case 5:{n.copyright=l.int32();break}case 6:{n.pic=l.string();break}case 7:{n.title=l.string();break}case 8:{n.pubdate=l.int64();break}case 9:{n.ctime=l.int64();break}case 10:{n.desc=l.string();break}case 11:{n.state=l.int32();break}case 12:{n.access=l.int32();break}case 13:{n.attribute=l.int32();break}case 14:{n.tag=l.string();break}case 15:{n.tags&&n.tags.length||(n.tags=[]),n.tags.push(l.string());break}case 16:{n.duration=l.int64();break}case 17:{n.missionId=l.int64();break}case 18:{n.orderId=l.int64();break}case 19:{n.redirectUrl=l.string();break}case 20:{n.forward=l.int64();break}case 21:{n.rights=u.archive.service.v1.Rights.decode(l,l.uint32());break}case 22:{n.author=u.archive.service.v1.Author.decode(l,l.uint32());break}case 23:{n.stat=u.archive.service.v1.Stat.decode(l,l.uint32());break}case 24:{n.reportResult=l.string();break}case 25:{n.dynamic=l.string();break}case 26:{n.firstCid=l.int64();break}case 27:{n.dimension=u.archive.service.v1.Dimension.decode(l,l.uint32());break}case 28:{n.staffInfo&&n.staffInfo.length||(n.staffInfo=[]),n.staffInfo.push(u.archive.service.v1.StaffInfo.decode(l,l.uint32()));break}case 29:{n.seasonId=l.int64();break}case 30:{n.attributeV2=l.int64();break}case 31:{n.seasonTheme=u.archive.service.v1.SeasonTheme.decode(l,l.uint32());break}case 40:{n.shortLinkV2=l.string();break}case 41:{n.upFromV2=l.int32();break}case 42:{n.firstFrame=l.string();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.archive.service.v1.Arc)return l;let t=new u.archive.service.v1.Arc;if(l.aid!=null&&(r.Long?(t.aid=r.Long.fromValue(l.aid)).unsigned=!1:typeof l.aid=="string"?t.aid=parseInt(l.aid,10):typeof l.aid=="number"?t.aid=l.aid:typeof l.aid=="object"&&(t.aid=new r.LongBits(l.aid.low>>>0,l.aid.high>>>0).toNumber())),l.videos!=null&&(r.Long?(t.videos=r.Long.fromValue(l.videos)).unsigned=!1:typeof l.videos=="string"?t.videos=parseInt(l.videos,10):typeof l.videos=="number"?t.videos=l.videos:typeof l.videos=="object"&&(t.videos=new r.LongBits(l.videos.low>>>0,l.videos.high>>>0).toNumber())),l.typeId!=null&&(t.typeId=l.typeId|0),l.typeName!=null&&(t.typeName=String(l.typeName)),l.copyright!=null&&(t.copyright=l.copyright|0),l.pic!=null&&(t.pic=String(l.pic)),l.title!=null&&(t.title=String(l.title)),l.pubdate!=null&&(r.Long?(t.pubdate=r.Long.fromValue(l.pubdate)).unsigned=!1:typeof l.pubdate=="string"?t.pubdate=parseInt(l.pubdate,10):typeof l.pubdate=="number"?t.pubdate=l.pubdate:typeof l.pubdate=="object"&&(t.pubdate=new r.LongBits(l.pubdate.low>>>0,l.pubdate.high>>>0).toNumber())),l.ctime!=null&&(r.Long?(t.ctime=r.Long.fromValue(l.ctime)).unsigned=!1:typeof l.ctime=="string"?t.ctime=parseInt(l.ctime,10):typeof l.ctime=="number"?t.ctime=l.ctime:typeof l.ctime=="object"&&(t.ctime=new r.LongBits(l.ctime.low>>>0,l.ctime.high>>>0).toNumber())),l.desc!=null&&(t.desc=String(l.desc)),l.state!=null&&(t.state=l.state|0),l.access!=null&&(t.access=l.access|0),l.attribute!=null&&(t.attribute=l.attribute|0),l.tag!=null&&(t.tag=String(l.tag)),l.tags){if(!Array.isArray(l.tags))throw TypeError(".archive.service.v1.Arc.tags: array expected");t.tags=[];for(let i=0;i>>0,l.duration.high>>>0).toNumber())),l.missionId!=null&&(r.Long?(t.missionId=r.Long.fromValue(l.missionId)).unsigned=!1:typeof l.missionId=="string"?t.missionId=parseInt(l.missionId,10):typeof l.missionId=="number"?t.missionId=l.missionId:typeof l.missionId=="object"&&(t.missionId=new r.LongBits(l.missionId.low>>>0,l.missionId.high>>>0).toNumber())),l.orderId!=null&&(r.Long?(t.orderId=r.Long.fromValue(l.orderId)).unsigned=!1:typeof l.orderId=="string"?t.orderId=parseInt(l.orderId,10):typeof l.orderId=="number"?t.orderId=l.orderId:typeof l.orderId=="object"&&(t.orderId=new r.LongBits(l.orderId.low>>>0,l.orderId.high>>>0).toNumber())),l.redirectUrl!=null&&(t.redirectUrl=String(l.redirectUrl)),l.forward!=null&&(r.Long?(t.forward=r.Long.fromValue(l.forward)).unsigned=!1:typeof l.forward=="string"?t.forward=parseInt(l.forward,10):typeof l.forward=="number"?t.forward=l.forward:typeof l.forward=="object"&&(t.forward=new r.LongBits(l.forward.low>>>0,l.forward.high>>>0).toNumber())),l.rights!=null){if(typeof l.rights!="object")throw TypeError(".archive.service.v1.Arc.rights: object expected");t.rights=u.archive.service.v1.Rights.fromObject(l.rights)}if(l.author!=null){if(typeof l.author!="object")throw TypeError(".archive.service.v1.Arc.author: object expected");t.author=u.archive.service.v1.Author.fromObject(l.author)}if(l.stat!=null){if(typeof l.stat!="object")throw TypeError(".archive.service.v1.Arc.stat: object expected");t.stat=u.archive.service.v1.Stat.fromObject(l.stat)}if(l.reportResult!=null&&(t.reportResult=String(l.reportResult)),l.dynamic!=null&&(t.dynamic=String(l.dynamic)),l.firstCid!=null&&(r.Long?(t.firstCid=r.Long.fromValue(l.firstCid)).unsigned=!1:typeof l.firstCid=="string"?t.firstCid=parseInt(l.firstCid,10):typeof l.firstCid=="number"?t.firstCid=l.firstCid:typeof l.firstCid=="object"&&(t.firstCid=new r.LongBits(l.firstCid.low>>>0,l.firstCid.high>>>0).toNumber())),l.dimension!=null){if(typeof l.dimension!="object")throw TypeError(".archive.service.v1.Arc.dimension: object expected");t.dimension=u.archive.service.v1.Dimension.fromObject(l.dimension)}if(l.staffInfo){if(!Array.isArray(l.staffInfo))throw TypeError(".archive.service.v1.Arc.staffInfo: array expected");t.staffInfo=[];for(let i=0;i>>0,l.seasonId.high>>>0).toNumber())),l.attributeV2!=null&&(r.Long?(t.attributeV2=r.Long.fromValue(l.attributeV2)).unsigned=!1:typeof l.attributeV2=="string"?t.attributeV2=parseInt(l.attributeV2,10):typeof l.attributeV2=="number"?t.attributeV2=l.attributeV2:typeof l.attributeV2=="object"&&(t.attributeV2=new r.LongBits(l.attributeV2.low>>>0,l.attributeV2.high>>>0).toNumber())),l.seasonTheme!=null){if(typeof l.seasonTheme!="object")throw TypeError(".archive.service.v1.Arc.seasonTheme: object expected");t.seasonTheme=u.archive.service.v1.SeasonTheme.fromObject(l.seasonTheme)}return l.shortLinkV2!=null&&(t.shortLinkV2=String(l.shortLinkV2)),l.upFromV2!=null&&(t.upFromV2=l.upFromV2|0),l.firstFrame!=null&&(t.firstFrame=String(l.firstFrame)),t},c.toObject=function(l,t){t||(t={});let i={};if((t.arrays||t.defaults)&&(i.tags=[],i.staffInfo=[]),t.defaults){if(r.Long){let n=new r.Long(0,0,!1);i.aid=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.aid=t.longs===String?"0":0;if(r.Long){let n=new r.Long(0,0,!1);i.videos=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.videos=t.longs===String?"0":0;if(i.typeId=0,i.typeName="",i.copyright=0,i.pic="",i.title="",r.Long){let n=new r.Long(0,0,!1);i.pubdate=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.pubdate=t.longs===String?"0":0;if(r.Long){let n=new r.Long(0,0,!1);i.ctime=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.ctime=t.longs===String?"0":0;if(i.desc="",i.state=0,i.access=0,i.attribute=0,i.tag="",r.Long){let n=new r.Long(0,0,!1);i.duration=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.duration=t.longs===String?"0":0;if(r.Long){let n=new r.Long(0,0,!1);i.missionId=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.missionId=t.longs===String?"0":0;if(r.Long){let n=new r.Long(0,0,!1);i.orderId=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.orderId=t.longs===String?"0":0;if(i.redirectUrl="",r.Long){let n=new r.Long(0,0,!1);i.forward=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.forward=t.longs===String?"0":0;if(i.rights=null,i.author=null,i.stat=null,i.reportResult="",i.dynamic="",r.Long){let n=new r.Long(0,0,!1);i.firstCid=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.firstCid=t.longs===String?"0":0;if(i.dimension=null,r.Long){let n=new r.Long(0,0,!1);i.seasonId=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.seasonId=t.longs===String?"0":0;if(r.Long){let n=new r.Long(0,0,!1);i.attributeV2=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.attributeV2=t.longs===String?"0":0;i.seasonTheme=null,i.shortLinkV2="",i.upFromV2=0,i.firstFrame=""}if(l.aid!=null&&l.hasOwnProperty("aid")&&(typeof l.aid=="number"?i.aid=t.longs===String?String(l.aid):l.aid:i.aid=t.longs===String?r.Long.prototype.toString.call(l.aid):t.longs===Number?new r.LongBits(l.aid.low>>>0,l.aid.high>>>0).toNumber():l.aid),l.videos!=null&&l.hasOwnProperty("videos")&&(typeof l.videos=="number"?i.videos=t.longs===String?String(l.videos):l.videos:i.videos=t.longs===String?r.Long.prototype.toString.call(l.videos):t.longs===Number?new r.LongBits(l.videos.low>>>0,l.videos.high>>>0).toNumber():l.videos),l.typeId!=null&&l.hasOwnProperty("typeId")&&(i.typeId=l.typeId),l.typeName!=null&&l.hasOwnProperty("typeName")&&(i.typeName=l.typeName),l.copyright!=null&&l.hasOwnProperty("copyright")&&(i.copyright=l.copyright),l.pic!=null&&l.hasOwnProperty("pic")&&(i.pic=l.pic),l.title!=null&&l.hasOwnProperty("title")&&(i.title=l.title),l.pubdate!=null&&l.hasOwnProperty("pubdate")&&(typeof l.pubdate=="number"?i.pubdate=t.longs===String?String(l.pubdate):l.pubdate:i.pubdate=t.longs===String?r.Long.prototype.toString.call(l.pubdate):t.longs===Number?new r.LongBits(l.pubdate.low>>>0,l.pubdate.high>>>0).toNumber():l.pubdate),l.ctime!=null&&l.hasOwnProperty("ctime")&&(typeof l.ctime=="number"?i.ctime=t.longs===String?String(l.ctime):l.ctime:i.ctime=t.longs===String?r.Long.prototype.toString.call(l.ctime):t.longs===Number?new r.LongBits(l.ctime.low>>>0,l.ctime.high>>>0).toNumber():l.ctime),l.desc!=null&&l.hasOwnProperty("desc")&&(i.desc=l.desc),l.state!=null&&l.hasOwnProperty("state")&&(i.state=l.state),l.access!=null&&l.hasOwnProperty("access")&&(i.access=l.access),l.attribute!=null&&l.hasOwnProperty("attribute")&&(i.attribute=l.attribute),l.tag!=null&&l.hasOwnProperty("tag")&&(i.tag=l.tag),l.tags&&l.tags.length){i.tags=[];for(let n=0;n>>0,l.duration.high>>>0).toNumber():l.duration),l.missionId!=null&&l.hasOwnProperty("missionId")&&(typeof l.missionId=="number"?i.missionId=t.longs===String?String(l.missionId):l.missionId:i.missionId=t.longs===String?r.Long.prototype.toString.call(l.missionId):t.longs===Number?new r.LongBits(l.missionId.low>>>0,l.missionId.high>>>0).toNumber():l.missionId),l.orderId!=null&&l.hasOwnProperty("orderId")&&(typeof l.orderId=="number"?i.orderId=t.longs===String?String(l.orderId):l.orderId:i.orderId=t.longs===String?r.Long.prototype.toString.call(l.orderId):t.longs===Number?new r.LongBits(l.orderId.low>>>0,l.orderId.high>>>0).toNumber():l.orderId),l.redirectUrl!=null&&l.hasOwnProperty("redirectUrl")&&(i.redirectUrl=l.redirectUrl),l.forward!=null&&l.hasOwnProperty("forward")&&(typeof l.forward=="number"?i.forward=t.longs===String?String(l.forward):l.forward:i.forward=t.longs===String?r.Long.prototype.toString.call(l.forward):t.longs===Number?new r.LongBits(l.forward.low>>>0,l.forward.high>>>0).toNumber():l.forward),l.rights!=null&&l.hasOwnProperty("rights")&&(i.rights=u.archive.service.v1.Rights.toObject(l.rights,t)),l.author!=null&&l.hasOwnProperty("author")&&(i.author=u.archive.service.v1.Author.toObject(l.author,t)),l.stat!=null&&l.hasOwnProperty("stat")&&(i.stat=u.archive.service.v1.Stat.toObject(l.stat,t)),l.reportResult!=null&&l.hasOwnProperty("reportResult")&&(i.reportResult=l.reportResult),l.dynamic!=null&&l.hasOwnProperty("dynamic")&&(i.dynamic=l.dynamic),l.firstCid!=null&&l.hasOwnProperty("firstCid")&&(typeof l.firstCid=="number"?i.firstCid=t.longs===String?String(l.firstCid):l.firstCid:i.firstCid=t.longs===String?r.Long.prototype.toString.call(l.firstCid):t.longs===Number?new r.LongBits(l.firstCid.low>>>0,l.firstCid.high>>>0).toNumber():l.firstCid),l.dimension!=null&&l.hasOwnProperty("dimension")&&(i.dimension=u.archive.service.v1.Dimension.toObject(l.dimension,t)),l.staffInfo&&l.staffInfo.length){i.staffInfo=[];for(let n=0;n>>0,l.seasonId.high>>>0).toNumber():l.seasonId),l.attributeV2!=null&&l.hasOwnProperty("attributeV2")&&(typeof l.attributeV2=="number"?i.attributeV2=t.longs===String?String(l.attributeV2):l.attributeV2:i.attributeV2=t.longs===String?r.Long.prototype.toString.call(l.attributeV2):t.longs===Number?new r.LongBits(l.attributeV2.low>>>0,l.attributeV2.high>>>0).toNumber():l.attributeV2),l.seasonTheme!=null&&l.hasOwnProperty("seasonTheme")&&(i.seasonTheme=u.archive.service.v1.SeasonTheme.toObject(l.seasonTheme,t)),l.shortLinkV2!=null&&l.hasOwnProperty("shortLinkV2")&&(i.shortLinkV2=l.shortLinkV2),l.upFromV2!=null&&l.hasOwnProperty("upFromV2")&&(i.upFromV2=l.upFromV2),l.firstFrame!=null&&l.hasOwnProperty("firstFrame")&&(i.firstFrame=l.firstFrame),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/archive.service.v1.Arc"},c}(),p.SeasonTheme=function(){function c(e){if(e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.bgColor=l.string();break}case 2:{n.selectedBgColor=l.string();break}case 3:{n.textColor=l.string();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.archive.service.v1.SeasonTheme)return l;let t=new u.archive.service.v1.SeasonTheme;return l.bgColor!=null&&(t.bgColor=String(l.bgColor)),l.selectedBgColor!=null&&(t.selectedBgColor=String(l.selectedBgColor)),l.textColor!=null&&(t.textColor=String(l.textColor)),t},c.toObject=function(l,t){t||(t={});let i={};return t.defaults&&(i.bgColor="",i.selectedBgColor="",i.textColor=""),l.bgColor!=null&&l.hasOwnProperty("bgColor")&&(i.bgColor=l.bgColor),l.selectedBgColor!=null&&l.hasOwnProperty("selectedBgColor")&&(i.selectedBgColor=l.selectedBgColor),l.textColor!=null&&l.hasOwnProperty("textColor")&&(i.textColor=l.textColor),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/archive.service.v1.SeasonTheme"},c}(),p.StaffInfo=function(){function c(e){if(e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.mid=l.int64();break}case 2:{n.title=l.string();break}case 3:{n.attribute=l.int64();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.archive.service.v1.StaffInfo)return l;let t=new u.archive.service.v1.StaffInfo;return l.mid!=null&&(r.Long?(t.mid=r.Long.fromValue(l.mid)).unsigned=!1:typeof l.mid=="string"?t.mid=parseInt(l.mid,10):typeof l.mid=="number"?t.mid=l.mid:typeof l.mid=="object"&&(t.mid=new r.LongBits(l.mid.low>>>0,l.mid.high>>>0).toNumber())),l.title!=null&&(t.title=String(l.title)),l.attribute!=null&&(r.Long?(t.attribute=r.Long.fromValue(l.attribute)).unsigned=!1:typeof l.attribute=="string"?t.attribute=parseInt(l.attribute,10):typeof l.attribute=="number"?t.attribute=l.attribute:typeof l.attribute=="object"&&(t.attribute=new r.LongBits(l.attribute.low>>>0,l.attribute.high>>>0).toNumber())),t},c.toObject=function(l,t){t||(t={});let i={};if(t.defaults){if(r.Long){let n=new r.Long(0,0,!1);i.mid=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.mid=t.longs===String?"0":0;if(i.title="",r.Long){let n=new r.Long(0,0,!1);i.attribute=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.attribute=t.longs===String?"0":0}return l.mid!=null&&l.hasOwnProperty("mid")&&(typeof l.mid=="number"?i.mid=t.longs===String?String(l.mid):l.mid:i.mid=t.longs===String?r.Long.prototype.toString.call(l.mid):t.longs===Number?new r.LongBits(l.mid.low>>>0,l.mid.high>>>0).toNumber():l.mid),l.title!=null&&l.hasOwnProperty("title")&&(i.title=l.title),l.attribute!=null&&l.hasOwnProperty("attribute")&&(typeof l.attribute=="number"?i.attribute=t.longs===String?String(l.attribute):l.attribute:i.attribute=t.longs===String?r.Long.prototype.toString.call(l.attribute):t.longs===Number?new r.LongBits(l.attribute.low>>>0,l.attribute.high>>>0).toNumber():l.attribute),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/archive.service.v1.StaffInfo"},c}(),p.Dimension=function(){function c(e){if(e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.width=l.int64();break}case 2:{n.height=l.int64();break}case 3:{n.rotate=l.int64();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.archive.service.v1.Dimension)return l;let t=new u.archive.service.v1.Dimension;return l.width!=null&&(r.Long?(t.width=r.Long.fromValue(l.width)).unsigned=!1:typeof l.width=="string"?t.width=parseInt(l.width,10):typeof l.width=="number"?t.width=l.width:typeof l.width=="object"&&(t.width=new r.LongBits(l.width.low>>>0,l.width.high>>>0).toNumber())),l.height!=null&&(r.Long?(t.height=r.Long.fromValue(l.height)).unsigned=!1:typeof l.height=="string"?t.height=parseInt(l.height,10):typeof l.height=="number"?t.height=l.height:typeof l.height=="object"&&(t.height=new r.LongBits(l.height.low>>>0,l.height.high>>>0).toNumber())),l.rotate!=null&&(r.Long?(t.rotate=r.Long.fromValue(l.rotate)).unsigned=!1:typeof l.rotate=="string"?t.rotate=parseInt(l.rotate,10):typeof l.rotate=="number"?t.rotate=l.rotate:typeof l.rotate=="object"&&(t.rotate=new r.LongBits(l.rotate.low>>>0,l.rotate.high>>>0).toNumber())),t},c.toObject=function(l,t){t||(t={});let i={};if(t.defaults){if(r.Long){let n=new r.Long(0,0,!1);i.width=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.width=t.longs===String?"0":0;if(r.Long){let n=new r.Long(0,0,!1);i.height=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.height=t.longs===String?"0":0;if(r.Long){let n=new r.Long(0,0,!1);i.rotate=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.rotate=t.longs===String?"0":0}return l.width!=null&&l.hasOwnProperty("width")&&(typeof l.width=="number"?i.width=t.longs===String?String(l.width):l.width:i.width=t.longs===String?r.Long.prototype.toString.call(l.width):t.longs===Number?new r.LongBits(l.width.low>>>0,l.width.high>>>0).toNumber():l.width),l.height!=null&&l.hasOwnProperty("height")&&(typeof l.height=="number"?i.height=t.longs===String?String(l.height):l.height:i.height=t.longs===String?r.Long.prototype.toString.call(l.height):t.longs===Number?new r.LongBits(l.height.low>>>0,l.height.high>>>0).toNumber():l.height),l.rotate!=null&&l.hasOwnProperty("rotate")&&(typeof l.rotate=="number"?i.rotate=t.longs===String?String(l.rotate):l.rotate:i.rotate=t.longs===String?r.Long.prototype.toString.call(l.rotate):t.longs===Number?new r.LongBits(l.rotate.low>>>0,l.rotate.high>>>0).toNumber():l.rotate),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/archive.service.v1.Dimension"},c}(),p.Rights=function(){function c(e){if(e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.bp=l.int32();break}case 2:{n.elec=l.int32();break}case 3:{n.download=l.int32();break}case 4:{n.movie=l.int32();break}case 5:{n.pay=l.int32();break}case 6:{n.hd5=l.int32();break}case 7:{n.noReprint=l.int32();break}case 8:{n.autoplay=l.int32();break}case 9:{n.ugcPay=l.int32();break}case 10:{n.isCooperation=l.int32();break}case 11:{n.ugcPayPreview=l.int32();break}case 12:{n.noBackground=l.int32();break}case 13:{n.arcPay=l.int32();break}case 14:{n.payFreeWatch=l.int32();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.archive.service.v1.Rights)return l;let t=new u.archive.service.v1.Rights;return l.bp!=null&&(t.bp=l.bp|0),l.elec!=null&&(t.elec=l.elec|0),l.download!=null&&(t.download=l.download|0),l.movie!=null&&(t.movie=l.movie|0),l.pay!=null&&(t.pay=l.pay|0),l.hd5!=null&&(t.hd5=l.hd5|0),l.noReprint!=null&&(t.noReprint=l.noReprint|0),l.autoplay!=null&&(t.autoplay=l.autoplay|0),l.ugcPay!=null&&(t.ugcPay=l.ugcPay|0),l.isCooperation!=null&&(t.isCooperation=l.isCooperation|0),l.ugcPayPreview!=null&&(t.ugcPayPreview=l.ugcPayPreview|0),l.noBackground!=null&&(t.noBackground=l.noBackground|0),l.arcPay!=null&&(t.arcPay=l.arcPay|0),l.payFreeWatch!=null&&(t.payFreeWatch=l.payFreeWatch|0),t},c.toObject=function(l,t){t||(t={});let i={};return t.defaults&&(i.bp=0,i.elec=0,i.download=0,i.movie=0,i.pay=0,i.hd5=0,i.noReprint=0,i.autoplay=0,i.ugcPay=0,i.isCooperation=0,i.ugcPayPreview=0,i.noBackground=0,i.arcPay=0,i.payFreeWatch=0),l.bp!=null&&l.hasOwnProperty("bp")&&(i.bp=l.bp),l.elec!=null&&l.hasOwnProperty("elec")&&(i.elec=l.elec),l.download!=null&&l.hasOwnProperty("download")&&(i.download=l.download),l.movie!=null&&l.hasOwnProperty("movie")&&(i.movie=l.movie),l.pay!=null&&l.hasOwnProperty("pay")&&(i.pay=l.pay),l.hd5!=null&&l.hasOwnProperty("hd5")&&(i.hd5=l.hd5),l.noReprint!=null&&l.hasOwnProperty("noReprint")&&(i.noReprint=l.noReprint),l.autoplay!=null&&l.hasOwnProperty("autoplay")&&(i.autoplay=l.autoplay),l.ugcPay!=null&&l.hasOwnProperty("ugcPay")&&(i.ugcPay=l.ugcPay),l.isCooperation!=null&&l.hasOwnProperty("isCooperation")&&(i.isCooperation=l.isCooperation),l.ugcPayPreview!=null&&l.hasOwnProperty("ugcPayPreview")&&(i.ugcPayPreview=l.ugcPayPreview),l.noBackground!=null&&l.hasOwnProperty("noBackground")&&(i.noBackground=l.noBackground),l.arcPay!=null&&l.hasOwnProperty("arcPay")&&(i.arcPay=l.arcPay),l.payFreeWatch!=null&&l.hasOwnProperty("payFreeWatch")&&(i.payFreeWatch=l.payFreeWatch),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/archive.service.v1.Rights"},c}(),p.Author=function(){function c(e){if(e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.mid=l.int64();break}case 2:{n.name=l.string();break}case 3:{n.face=l.string();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.archive.service.v1.Author)return l;let t=new u.archive.service.v1.Author;return l.mid!=null&&(r.Long?(t.mid=r.Long.fromValue(l.mid)).unsigned=!1:typeof l.mid=="string"?t.mid=parseInt(l.mid,10):typeof l.mid=="number"?t.mid=l.mid:typeof l.mid=="object"&&(t.mid=new r.LongBits(l.mid.low>>>0,l.mid.high>>>0).toNumber())),l.name!=null&&(t.name=String(l.name)),l.face!=null&&(t.face=String(l.face)),t},c.toObject=function(l,t){t||(t={});let i={};if(t.defaults){if(r.Long){let n=new r.Long(0,0,!1);i.mid=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.mid=t.longs===String?"0":0;i.name="",i.face=""}return l.mid!=null&&l.hasOwnProperty("mid")&&(typeof l.mid=="number"?i.mid=t.longs===String?String(l.mid):l.mid:i.mid=t.longs===String?r.Long.prototype.toString.call(l.mid):t.longs===Number?new r.LongBits(l.mid.low>>>0,l.mid.high>>>0).toNumber():l.mid),l.name!=null&&l.hasOwnProperty("name")&&(i.name=l.name),l.face!=null&&l.hasOwnProperty("face")&&(i.face=l.face),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/archive.service.v1.Author"},c}(),p.Stat=function(){function c(e){if(e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.aid=l.int64();break}case 2:{n.view=l.int32();break}case 3:{n.danmaku=l.int32();break}case 4:{n.reply=l.int32();break}case 5:{n.fav=l.int32();break}case 6:{n.coin=l.int32();break}case 7:{n.share=l.int32();break}case 8:{n.nowRank=l.int32();break}case 9:{n.hisRank=l.int32();break}case 10:{n.like=l.int32();break}case 11:{n.dislike=l.int32();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.archive.service.v1.Stat)return l;let t=new u.archive.service.v1.Stat;return l.aid!=null&&(r.Long?(t.aid=r.Long.fromValue(l.aid)).unsigned=!1:typeof l.aid=="string"?t.aid=parseInt(l.aid,10):typeof l.aid=="number"?t.aid=l.aid:typeof l.aid=="object"&&(t.aid=new r.LongBits(l.aid.low>>>0,l.aid.high>>>0).toNumber())),l.view!=null&&(t.view=l.view|0),l.danmaku!=null&&(t.danmaku=l.danmaku|0),l.reply!=null&&(t.reply=l.reply|0),l.fav!=null&&(t.fav=l.fav|0),l.coin!=null&&(t.coin=l.coin|0),l.share!=null&&(t.share=l.share|0),l.nowRank!=null&&(t.nowRank=l.nowRank|0),l.hisRank!=null&&(t.hisRank=l.hisRank|0),l.like!=null&&(t.like=l.like|0),l.dislike!=null&&(t.dislike=l.dislike|0),t},c.toObject=function(l,t){t||(t={});let i={};if(t.defaults){if(r.Long){let n=new r.Long(0,0,!1);i.aid=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.aid=t.longs===String?"0":0;i.view=0,i.danmaku=0,i.reply=0,i.fav=0,i.coin=0,i.share=0,i.nowRank=0,i.hisRank=0,i.like=0,i.dislike=0}return l.aid!=null&&l.hasOwnProperty("aid")&&(typeof l.aid=="number"?i.aid=t.longs===String?String(l.aid):l.aid:i.aid=t.longs===String?r.Long.prototype.toString.call(l.aid):t.longs===Number?new r.LongBits(l.aid.low>>>0,l.aid.high>>>0).toNumber():l.aid),l.view!=null&&l.hasOwnProperty("view")&&(i.view=l.view),l.danmaku!=null&&l.hasOwnProperty("danmaku")&&(i.danmaku=l.danmaku),l.reply!=null&&l.hasOwnProperty("reply")&&(i.reply=l.reply),l.fav!=null&&l.hasOwnProperty("fav")&&(i.fav=l.fav),l.coin!=null&&l.hasOwnProperty("coin")&&(i.coin=l.coin),l.share!=null&&l.hasOwnProperty("share")&&(i.share=l.share),l.nowRank!=null&&l.hasOwnProperty("nowRank")&&(i.nowRank=l.nowRank),l.hisRank!=null&&l.hasOwnProperty("hisRank")&&(i.hisRank=l.hisRank),l.like!=null&&l.hasOwnProperty("like")&&(i.like=l.like),l.dislike!=null&&l.hasOwnProperty("dislike")&&(i.dislike=l.dislike),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/archive.service.v1.Stat"},c}(),p.Page=function(){function c(e){if(e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.cid=l.int64();break}case 2:{n.page=l.int32();break}case 3:{n.from=l.string();break}case 4:{n.part=l.string();break}case 5:{n.duration=l.int64();break}case 6:{n.vid=l.string();break}case 7:{n.desc=l.string();break}case 8:{n.webLink=l.string();break}case 9:{n.dimension=u.archive.service.v1.Dimension.decode(l,l.uint32());break}case 10:{n.firstFrame=l.string();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.archive.service.v1.Page)return l;let t=new u.archive.service.v1.Page;if(l.cid!=null&&(r.Long?(t.cid=r.Long.fromValue(l.cid)).unsigned=!1:typeof l.cid=="string"?t.cid=parseInt(l.cid,10):typeof l.cid=="number"?t.cid=l.cid:typeof l.cid=="object"&&(t.cid=new r.LongBits(l.cid.low>>>0,l.cid.high>>>0).toNumber())),l.page!=null&&(t.page=l.page|0),l.from!=null&&(t.from=String(l.from)),l.part!=null&&(t.part=String(l.part)),l.duration!=null&&(r.Long?(t.duration=r.Long.fromValue(l.duration)).unsigned=!1:typeof l.duration=="string"?t.duration=parseInt(l.duration,10):typeof l.duration=="number"?t.duration=l.duration:typeof l.duration=="object"&&(t.duration=new r.LongBits(l.duration.low>>>0,l.duration.high>>>0).toNumber())),l.vid!=null&&(t.vid=String(l.vid)),l.desc!=null&&(t.desc=String(l.desc)),l.webLink!=null&&(t.webLink=String(l.webLink)),l.dimension!=null){if(typeof l.dimension!="object")throw TypeError(".archive.service.v1.Page.dimension: object expected");t.dimension=u.archive.service.v1.Dimension.fromObject(l.dimension)}return l.firstFrame!=null&&(t.firstFrame=String(l.firstFrame)),t},c.toObject=function(l,t){t||(t={});let i={};if(t.defaults){if(r.Long){let n=new r.Long(0,0,!1);i.cid=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.cid=t.longs===String?"0":0;if(i.page=0,i.from="",i.part="",r.Long){let n=new r.Long(0,0,!1);i.duration=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else i.duration=t.longs===String?"0":0;i.vid="",i.desc="",i.webLink="",i.dimension=null,i.firstFrame=""}return l.cid!=null&&l.hasOwnProperty("cid")&&(typeof l.cid=="number"?i.cid=t.longs===String?String(l.cid):l.cid:i.cid=t.longs===String?r.Long.prototype.toString.call(l.cid):t.longs===Number?new r.LongBits(l.cid.low>>>0,l.cid.high>>>0).toNumber():l.cid),l.page!=null&&l.hasOwnProperty("page")&&(i.page=l.page),l.from!=null&&l.hasOwnProperty("from")&&(i.from=l.from),l.part!=null&&l.hasOwnProperty("part")&&(i.part=l.part),l.duration!=null&&l.hasOwnProperty("duration")&&(typeof l.duration=="number"?i.duration=t.longs===String?String(l.duration):l.duration:i.duration=t.longs===String?r.Long.prototype.toString.call(l.duration):t.longs===Number?new r.LongBits(l.duration.low>>>0,l.duration.high>>>0).toNumber():l.duration),l.vid!=null&&l.hasOwnProperty("vid")&&(i.vid=l.vid),l.desc!=null&&l.hasOwnProperty("desc")&&(i.desc=l.desc),l.webLink!=null&&l.hasOwnProperty("webLink")&&(i.webLink=l.webLink),l.dimension!=null&&l.hasOwnProperty("dimension")&&(i.dimension=u.archive.service.v1.Dimension.toObject(l.dimension,t)),l.firstFrame!=null&&l.hasOwnProperty("firstFrame")&&(i.firstFrame=l.firstFrame),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/archive.service.v1.Page"},c}(),p}(),d}(),O})(),Yr=u.gogoproto={},Qr=u.infoc=(()=>{let O={};return O.AppInfo=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.appId=c.int32();break}case 2:{t.platform=c.int32();break}case 3:{t.buvid=c.string();break}case 4:{t.chid=c.string();break}case 5:{t.brand=c.string();break}case 6:{t.deviceId=c.string();break}case 7:{t.model=c.string();break}case 8:{t.osver=c.string();break}case 9:{t.fts=c.int64();break}case 10:{t.buvidShared=c.string();break}case 11:{t.uid=c.int32();break}case 12:{t.apiLevel=c.int32();break}case 13:{t.abi=c.string();break}case 14:{t.bilifp=c.string();break}case 15:{t.sessionId=c.string();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.infoc.AppInfo)return c;let e=new u.infoc.AppInfo;return c.appId!=null&&(e.appId=c.appId|0),c.platform!=null&&(e.platform=c.platform|0),c.buvid!=null&&(e.buvid=String(c.buvid)),c.chid!=null&&(e.chid=String(c.chid)),c.brand!=null&&(e.brand=String(c.brand)),c.deviceId!=null&&(e.deviceId=String(c.deviceId)),c.model!=null&&(e.model=String(c.model)),c.osver!=null&&(e.osver=String(c.osver)),c.fts!=null&&(r.Long?(e.fts=r.Long.fromValue(c.fts)).unsigned=!1:typeof c.fts=="string"?e.fts=parseInt(c.fts,10):typeof c.fts=="number"?e.fts=c.fts:typeof c.fts=="object"&&(e.fts=new r.LongBits(c.fts.low>>>0,c.fts.high>>>0).toNumber())),c.buvidShared!=null&&(e.buvidShared=String(c.buvidShared)),c.uid!=null&&(e.uid=c.uid|0),c.apiLevel!=null&&(e.apiLevel=c.apiLevel|0),c.abi!=null&&(e.abi=String(c.abi)),c.bilifp!=null&&(e.bilifp=String(c.bilifp)),c.sessionId!=null&&(e.sessionId=String(c.sessionId)),e},d.toObject=function(c,e){e||(e={});let l={};if(e.defaults){if(l.appId=0,l.platform=0,l.buvid="",l.chid="",l.brand="",l.deviceId="",l.model="",l.osver="",r.Long){let t=new r.Long(0,0,!1);l.fts=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.fts=e.longs===String?"0":0;l.buvidShared="",l.uid=0,l.apiLevel=0,l.abi="",l.bilifp="",l.sessionId=""}return c.appId!=null&&c.hasOwnProperty("appId")&&(l.appId=c.appId),c.platform!=null&&c.hasOwnProperty("platform")&&(l.platform=c.platform),c.buvid!=null&&c.hasOwnProperty("buvid")&&(l.buvid=c.buvid),c.chid!=null&&c.hasOwnProperty("chid")&&(l.chid=c.chid),c.brand!=null&&c.hasOwnProperty("brand")&&(l.brand=c.brand),c.deviceId!=null&&c.hasOwnProperty("deviceId")&&(l.deviceId=c.deviceId),c.model!=null&&c.hasOwnProperty("model")&&(l.model=c.model),c.osver!=null&&c.hasOwnProperty("osver")&&(l.osver=c.osver),c.fts!=null&&c.hasOwnProperty("fts")&&(typeof c.fts=="number"?l.fts=e.longs===String?String(c.fts):c.fts:l.fts=e.longs===String?r.Long.prototype.toString.call(c.fts):e.longs===Number?new r.LongBits(c.fts.low>>>0,c.fts.high>>>0).toNumber():c.fts),c.buvidShared!=null&&c.hasOwnProperty("buvidShared")&&(l.buvidShared=c.buvidShared),c.uid!=null&&c.hasOwnProperty("uid")&&(l.uid=c.uid),c.apiLevel!=null&&c.hasOwnProperty("apiLevel")&&(l.apiLevel=c.apiLevel),c.abi!=null&&c.hasOwnProperty("abi")&&(l.abi=c.abi),c.bilifp!=null&&c.hasOwnProperty("bilifp")&&(l.bilifp=c.bilifp),c.sessionId!=null&&c.hasOwnProperty("sessionId")&&(l.sessionId=c.sessionId),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/infoc.AppInfo"},d}(),O.EventCategory=function(){let d={},p=Object.create(d);return p[d[0]="OTHER"]=0,p[d[1]="PAGEVIEW"]=1,p[d[2]="CLICK"]=2,p[d[3]="EXPOSURE"]=3,p[d[4]="SYSTEM"]=4,p[d[5]="TRACKER"]=5,p[d[7]="CUSTOM"]=7,p[d[8]="COMPATIBLE"]=8,p[d[9]="PLAYER"]=9,p}(),O.RuntimeNetWork=function(){let d={},p=Object.create(d);return p[d[0]="UNKNOWN"]=0,p[d[1]="WIFI"]=1,p[d[2]="CELLULAR"]=2,p[d[3]="OFFLINE"]=3,p[d[4]="OTHERNET"]=4,p[d[5]="ETHERNET"]=5,p}(),O.AppRuntimeInfo=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.network=c.int32();break}case 2:{t.oid=c.string();break}case 3:{t.longitude=c.double();break}case 4:{t.latitude=c.double();break}case 5:{t.version=c.string();break}case 6:{t.versionCode=c.string();break}case 7:{t.logver=c.string();break}case 8:{t.abtest=c.string();break}case 9:{t.ffVersion=c.string();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.infoc.AppRuntimeInfo)return c;let e=new u.infoc.AppRuntimeInfo;switch(c.network){default:if(typeof c.network=="number"){e.network=c.network;break}break;case"UNKNOWN":case 0:e.network=0;break;case"WIFI":case 1:e.network=1;break;case"CELLULAR":case 2:e.network=2;break;case"OFFLINE":case 3:e.network=3;break;case"OTHERNET":case 4:e.network=4;break;case"ETHERNET":case 5:e.network=5;break}return c.oid!=null&&(e.oid=String(c.oid)),c.longitude!=null&&(e.longitude=Number(c.longitude)),c.latitude!=null&&(e.latitude=Number(c.latitude)),c.version!=null&&(e.version=String(c.version)),c.versionCode!=null&&(e.versionCode=String(c.versionCode)),c.logver!=null&&(e.logver=String(c.logver)),c.abtest!=null&&(e.abtest=String(c.abtest)),c.ffVersion!=null&&(e.ffVersion=String(c.ffVersion)),e},d.toObject=function(c,e){e||(e={});let l={};return e.defaults&&(l.network=e.enums===String?"UNKNOWN":0,l.oid="",l.longitude=0,l.latitude=0,l.version="",l.versionCode="",l.logver="",l.abtest="",l.ffVersion=""),c.network!=null&&c.hasOwnProperty("network")&&(l.network=e.enums===String?u.infoc.RuntimeNetWork[c.network]===void 0?c.network:u.infoc.RuntimeNetWork[c.network]:c.network),c.oid!=null&&c.hasOwnProperty("oid")&&(l.oid=c.oid),c.longitude!=null&&c.hasOwnProperty("longitude")&&(l.longitude=e.json&&!isFinite(c.longitude)?String(c.longitude):c.longitude),c.latitude!=null&&c.hasOwnProperty("latitude")&&(l.latitude=e.json&&!isFinite(c.latitude)?String(c.latitude):c.latitude),c.version!=null&&c.hasOwnProperty("version")&&(l.version=c.version),c.versionCode!=null&&c.hasOwnProperty("versionCode")&&(l.versionCode=c.versionCode),c.logver!=null&&c.hasOwnProperty("logver")&&(l.logver=c.logver),c.abtest!=null&&c.hasOwnProperty("abtest")&&(l.abtest=c.abtest),c.ffVersion!=null&&c.hasOwnProperty("ffVersion")&&(l.ffVersion=c.ffVersion),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/infoc.AppRuntimeInfo"},d}(),O.AppEvent=function(){function d(p){if(this.extendedFields={},p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.eventId=c.string();break}case 2:{t.appInfo=u.infoc.AppInfo.decode(c,c.uint32());break}case 3:{t.runtimeInfo=u.infoc.AppRuntimeInfo.decode(c,c.uint32());break}case 4:{t.mid=c.string();break}case 5:{t.ctime=c.int64();break}case 6:{t.logId=c.string();break}case 7:{t.retrySendCount=c.int32();break}case 8:{t.sn=c.int64();break}case 9:{t.eventCategory=c.int32();break}case 10:{t.appPageViewInfo=u.infoc.AppPageViewInfo.decode(c,c.uint32());break}case 11:{t.appClickInfo=u.infoc.AppClickInfo.decode(c,c.uint32());break}case 12:{t.appExposureInfo=u.infoc.AppExposureInfo.decode(c,c.uint32());break}case 13:{t.extendedFields===r.emptyObject&&(t.extendedFields={});let a=c.uint32()+c.pos;for(i="",n="";c.pos>>3){case 1:i=c.string();break;case 2:n=c.string();break;default:c.skipType(y&7);break}}t.extendedFields[i]=n;break}case 14:{t.pageType=c.int32();break}case 15:{t.snGenTime=c.int64();break}case 16:{t.uploadTime=c.int64();break}case 17:{t.appPlayerInfo=u.infoc.AppPlayerInfo.decode(c,c.uint32());break}default:c.skipType(o&7);break}}return t},d.fromObject=function(c){if(c instanceof u.infoc.AppEvent)return c;let e=new u.infoc.AppEvent;if(c.eventId!=null&&(e.eventId=String(c.eventId)),c.appInfo!=null){if(typeof c.appInfo!="object")throw TypeError(".infoc.AppEvent.appInfo: object expected");e.appInfo=u.infoc.AppInfo.fromObject(c.appInfo)}if(c.runtimeInfo!=null){if(typeof c.runtimeInfo!="object")throw TypeError(".infoc.AppEvent.runtimeInfo: object expected");e.runtimeInfo=u.infoc.AppRuntimeInfo.fromObject(c.runtimeInfo)}switch(c.mid!=null&&(e.mid=String(c.mid)),c.ctime!=null&&(r.Long?(e.ctime=r.Long.fromValue(c.ctime)).unsigned=!1:typeof c.ctime=="string"?e.ctime=parseInt(c.ctime,10):typeof c.ctime=="number"?e.ctime=c.ctime:typeof c.ctime=="object"&&(e.ctime=new r.LongBits(c.ctime.low>>>0,c.ctime.high>>>0).toNumber())),c.logId!=null&&(e.logId=String(c.logId)),c.retrySendCount!=null&&(e.retrySendCount=c.retrySendCount|0),c.sn!=null&&(r.Long?(e.sn=r.Long.fromValue(c.sn)).unsigned=!1:typeof c.sn=="string"?e.sn=parseInt(c.sn,10):typeof c.sn=="number"?e.sn=c.sn:typeof c.sn=="object"&&(e.sn=new r.LongBits(c.sn.low>>>0,c.sn.high>>>0).toNumber())),c.eventCategory){default:if(typeof c.eventCategory=="number"){e.eventCategory=c.eventCategory;break}break;case"OTHER":case 0:e.eventCategory=0;break;case"PAGEVIEW":case 1:e.eventCategory=1;break;case"CLICK":case 2:e.eventCategory=2;break;case"EXPOSURE":case 3:e.eventCategory=3;break;case"SYSTEM":case 4:e.eventCategory=4;break;case"TRACKER":case 5:e.eventCategory=5;break;case"CUSTOM":case 7:e.eventCategory=7;break;case"COMPATIBLE":case 8:e.eventCategory=8;break;case"PLAYER":case 9:e.eventCategory=9;break}if(c.appPageViewInfo!=null){if(typeof c.appPageViewInfo!="object")throw TypeError(".infoc.AppEvent.appPageViewInfo: object expected");e.appPageViewInfo=u.infoc.AppPageViewInfo.fromObject(c.appPageViewInfo)}if(c.appClickInfo!=null){if(typeof c.appClickInfo!="object")throw TypeError(".infoc.AppEvent.appClickInfo: object expected");e.appClickInfo=u.infoc.AppClickInfo.fromObject(c.appClickInfo)}if(c.appExposureInfo!=null){if(typeof c.appExposureInfo!="object")throw TypeError(".infoc.AppEvent.appExposureInfo: object expected");e.appExposureInfo=u.infoc.AppExposureInfo.fromObject(c.appExposureInfo)}if(c.extendedFields){if(typeof c.extendedFields!="object")throw TypeError(".infoc.AppEvent.extendedFields: object expected");e.extendedFields={};for(let l=Object.keys(c.extendedFields),t=0;t>>0,c.snGenTime.high>>>0).toNumber())),c.uploadTime!=null&&(r.Long?(e.uploadTime=r.Long.fromValue(c.uploadTime)).unsigned=!1:typeof c.uploadTime=="string"?e.uploadTime=parseInt(c.uploadTime,10):typeof c.uploadTime=="number"?e.uploadTime=c.uploadTime:typeof c.uploadTime=="object"&&(e.uploadTime=new r.LongBits(c.uploadTime.low>>>0,c.uploadTime.high>>>0).toNumber())),c.appPlayerInfo!=null){if(typeof c.appPlayerInfo!="object")throw TypeError(".infoc.AppEvent.appPlayerInfo: object expected");e.appPlayerInfo=u.infoc.AppPlayerInfo.fromObject(c.appPlayerInfo)}return e},d.toObject=function(c,e){e||(e={});let l={};if((e.objects||e.defaults)&&(l.extendedFields={}),e.defaults){if(l.eventId="",l.appInfo=null,l.runtimeInfo=null,l.mid="",r.Long){let i=new r.Long(0,0,!1);l.ctime=e.longs===String?i.toString():e.longs===Number?i.toNumber():i}else l.ctime=e.longs===String?"0":0;if(l.logId="",l.retrySendCount=0,r.Long){let i=new r.Long(0,0,!1);l.sn=e.longs===String?i.toString():e.longs===Number?i.toNumber():i}else l.sn=e.longs===String?"0":0;if(l.eventCategory=e.enums===String?"OTHER":0,l.appPageViewInfo=null,l.appClickInfo=null,l.appExposureInfo=null,l.pageType=0,r.Long){let i=new r.Long(0,0,!1);l.snGenTime=e.longs===String?i.toString():e.longs===Number?i.toNumber():i}else l.snGenTime=e.longs===String?"0":0;if(r.Long){let i=new r.Long(0,0,!1);l.uploadTime=e.longs===String?i.toString():e.longs===Number?i.toNumber():i}else l.uploadTime=e.longs===String?"0":0;l.appPlayerInfo=null}c.eventId!=null&&c.hasOwnProperty("eventId")&&(l.eventId=c.eventId),c.appInfo!=null&&c.hasOwnProperty("appInfo")&&(l.appInfo=u.infoc.AppInfo.toObject(c.appInfo,e)),c.runtimeInfo!=null&&c.hasOwnProperty("runtimeInfo")&&(l.runtimeInfo=u.infoc.AppRuntimeInfo.toObject(c.runtimeInfo,e)),c.mid!=null&&c.hasOwnProperty("mid")&&(l.mid=c.mid),c.ctime!=null&&c.hasOwnProperty("ctime")&&(typeof c.ctime=="number"?l.ctime=e.longs===String?String(c.ctime):c.ctime:l.ctime=e.longs===String?r.Long.prototype.toString.call(c.ctime):e.longs===Number?new r.LongBits(c.ctime.low>>>0,c.ctime.high>>>0).toNumber():c.ctime),c.logId!=null&&c.hasOwnProperty("logId")&&(l.logId=c.logId),c.retrySendCount!=null&&c.hasOwnProperty("retrySendCount")&&(l.retrySendCount=c.retrySendCount),c.sn!=null&&c.hasOwnProperty("sn")&&(typeof c.sn=="number"?l.sn=e.longs===String?String(c.sn):c.sn:l.sn=e.longs===String?r.Long.prototype.toString.call(c.sn):e.longs===Number?new r.LongBits(c.sn.low>>>0,c.sn.high>>>0).toNumber():c.sn),c.eventCategory!=null&&c.hasOwnProperty("eventCategory")&&(l.eventCategory=e.enums===String?u.infoc.EventCategory[c.eventCategory]===void 0?c.eventCategory:u.infoc.EventCategory[c.eventCategory]:c.eventCategory),c.appPageViewInfo!=null&&c.hasOwnProperty("appPageViewInfo")&&(l.appPageViewInfo=u.infoc.AppPageViewInfo.toObject(c.appPageViewInfo,e)),c.appClickInfo!=null&&c.hasOwnProperty("appClickInfo")&&(l.appClickInfo=u.infoc.AppClickInfo.toObject(c.appClickInfo,e)),c.appExposureInfo!=null&&c.hasOwnProperty("appExposureInfo")&&(l.appExposureInfo=u.infoc.AppExposureInfo.toObject(c.appExposureInfo,e));let t;if(c.extendedFields&&(t=Object.keys(c.extendedFields)).length){l.extendedFields={};for(let i=0;i>>0,c.snGenTime.high>>>0).toNumber():c.snGenTime),c.uploadTime!=null&&c.hasOwnProperty("uploadTime")&&(typeof c.uploadTime=="number"?l.uploadTime=e.longs===String?String(c.uploadTime):c.uploadTime:l.uploadTime=e.longs===String?r.Long.prototype.toString.call(c.uploadTime):e.longs===Number?new r.LongBits(c.uploadTime.low>>>0,c.uploadTime.high>>>0).toNumber():c.uploadTime),c.appPlayerInfo!=null&&c.hasOwnProperty("appPlayerInfo")&&(l.appPlayerInfo=u.infoc.AppPlayerInfo.toObject(c.appPlayerInfo,e)),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/infoc.AppEvent"},d}(),O.AppPageViewInfo=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.eventIdFrom=c.string();break}case 4:{t.loadType=c.int32();break}case 5:{t.duration=c.int64();break}case 6:{t.pvstart=c.int64();break}case 7:{t.pvend=c.int64();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.infoc.AppPageViewInfo)return c;let e=new u.infoc.AppPageViewInfo;return c.eventIdFrom!=null&&(e.eventIdFrom=String(c.eventIdFrom)),c.loadType!=null&&(e.loadType=c.loadType|0),c.duration!=null&&(r.Long?(e.duration=r.Long.fromValue(c.duration)).unsigned=!1:typeof c.duration=="string"?e.duration=parseInt(c.duration,10):typeof c.duration=="number"?e.duration=c.duration:typeof c.duration=="object"&&(e.duration=new r.LongBits(c.duration.low>>>0,c.duration.high>>>0).toNumber())),c.pvstart!=null&&(r.Long?(e.pvstart=r.Long.fromValue(c.pvstart)).unsigned=!1:typeof c.pvstart=="string"?e.pvstart=parseInt(c.pvstart,10):typeof c.pvstart=="number"?e.pvstart=c.pvstart:typeof c.pvstart=="object"&&(e.pvstart=new r.LongBits(c.pvstart.low>>>0,c.pvstart.high>>>0).toNumber())),c.pvend!=null&&(r.Long?(e.pvend=r.Long.fromValue(c.pvend)).unsigned=!1:typeof c.pvend=="string"?e.pvend=parseInt(c.pvend,10):typeof c.pvend=="number"?e.pvend=c.pvend:typeof c.pvend=="object"&&(e.pvend=new r.LongBits(c.pvend.low>>>0,c.pvend.high>>>0).toNumber())),e},d.toObject=function(c,e){e||(e={});let l={};if(e.defaults){if(l.eventIdFrom="",l.loadType=0,r.Long){let t=new r.Long(0,0,!1);l.duration=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.duration=e.longs===String?"0":0;if(r.Long){let t=new r.Long(0,0,!1);l.pvstart=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.pvstart=e.longs===String?"0":0;if(r.Long){let t=new r.Long(0,0,!1);l.pvend=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.pvend=e.longs===String?"0":0}return c.eventIdFrom!=null&&c.hasOwnProperty("eventIdFrom")&&(l.eventIdFrom=c.eventIdFrom),c.loadType!=null&&c.hasOwnProperty("loadType")&&(l.loadType=c.loadType),c.duration!=null&&c.hasOwnProperty("duration")&&(typeof c.duration=="number"?l.duration=e.longs===String?String(c.duration):c.duration:l.duration=e.longs===String?r.Long.prototype.toString.call(c.duration):e.longs===Number?new r.LongBits(c.duration.low>>>0,c.duration.high>>>0).toNumber():c.duration),c.pvstart!=null&&c.hasOwnProperty("pvstart")&&(typeof c.pvstart=="number"?l.pvstart=e.longs===String?String(c.pvstart):c.pvstart:l.pvstart=e.longs===String?r.Long.prototype.toString.call(c.pvstart):e.longs===Number?new r.LongBits(c.pvstart.low>>>0,c.pvstart.high>>>0).toNumber():c.pvstart),c.pvend!=null&&c.hasOwnProperty("pvend")&&(typeof c.pvend=="number"?l.pvend=e.longs===String?String(c.pvend):c.pvend:l.pvend=e.longs===String?r.Long.prototype.toString.call(c.pvend):e.longs===Number?new r.LongBits(c.pvend.low>>>0,c.pvend.high>>>0).toNumber():c.pvend),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/infoc.AppPageViewInfo"},d}(),O.AppExposureInfo=function(){function d(p){if(this.contentInfos=[],p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.contentInfos&&t.contentInfos.length||(t.contentInfos=[]),t.contentInfos.push(u.infoc.AppExposureInfo.AppExposureContentInfo.decode(c,c.uint32()));break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.infoc.AppExposureInfo)return c;let e=new u.infoc.AppExposureInfo;if(c.contentInfos){if(!Array.isArray(c.contentInfos))throw TypeError(".infoc.AppExposureInfo.contentInfos: array expected");e.contentInfos=[];for(let l=0;l>>3){case 1:{i.eventId=e.string();break}case 2:{i.extendedFields===r.emptyObject&&(i.extendedFields={});let y=e.uint32()+e.pos;for(n="",o="";e.pos>>3){case 1:n=e.string();break;case 2:o=e.string();break;default:e.skipType(s&7);break}}i.extendedFields[n]=o;break}default:e.skipType(a&7);break}}return i},p.fromObject=function(e){if(e instanceof u.infoc.AppExposureInfo.AppExposureContentInfo)return e;let l=new u.infoc.AppExposureInfo.AppExposureContentInfo;if(e.eventId!=null&&(l.eventId=String(e.eventId)),e.extendedFields){if(typeof e.extendedFields!="object")throw TypeError(".infoc.AppExposureInfo.AppExposureContentInfo.extendedFields: object expected");l.extendedFields={};for(let t=Object.keys(e.extendedFields),i=0;i>>3){default:c.skipType(i&7);break}}return t},d.fromObject=function(c){return c instanceof u.infoc.AppClickInfo?c:new u.infoc.AppClickInfo},d.toObject=function(){return{}},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/infoc.AppClickInfo"},d}(),O.AppPlayerInfo=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.playFromSpmid=c.string();break}case 2:{t.seasonId=c.string();break}case 3:{t.type=c.int32();break}case 4:{t.subType=c.int32();break}case 5:{t.epId=c.string();break}case 6:{t.progress=c.string();break}case 7:{t.avid=c.string();break}case 8:{t.cid=c.string();break}case 9:{t.networkType=c.int32();break}case 10:{t.danmaku=c.int32();break}case 11:{t.status=c.int32();break}case 12:{t.playMethod=c.int32();break}case 13:{t.playType=c.int32();break}case 14:{t.playerSessionId=c.string();break}case 15:{t.speed=c.string();break}case 16:{t.playerClarity=c.string();break}case 17:{t.isAutoplay=c.int32();break}case 18:{t.videoFormat=c.int32();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.infoc.AppPlayerInfo)return c;let e=new u.infoc.AppPlayerInfo;return c.playFromSpmid!=null&&(e.playFromSpmid=String(c.playFromSpmid)),c.seasonId!=null&&(e.seasonId=String(c.seasonId)),c.type!=null&&(e.type=c.type|0),c.subType!=null&&(e.subType=c.subType|0),c.epId!=null&&(e.epId=String(c.epId)),c.progress!=null&&(e.progress=String(c.progress)),c.avid!=null&&(e.avid=String(c.avid)),c.cid!=null&&(e.cid=String(c.cid)),c.networkType!=null&&(e.networkType=c.networkType|0),c.danmaku!=null&&(e.danmaku=c.danmaku|0),c.status!=null&&(e.status=c.status|0),c.playMethod!=null&&(e.playMethod=c.playMethod|0),c.playType!=null&&(e.playType=c.playType|0),c.playerSessionId!=null&&(e.playerSessionId=String(c.playerSessionId)),c.speed!=null&&(e.speed=String(c.speed)),c.playerClarity!=null&&(e.playerClarity=String(c.playerClarity)),c.isAutoplay!=null&&(e.isAutoplay=c.isAutoplay|0),c.videoFormat!=null&&(e.videoFormat=c.videoFormat|0),e},d.toObject=function(c,e){e||(e={});let l={};return e.defaults&&(l.playFromSpmid="",l.seasonId="",l.type=0,l.subType=0,l.epId="",l.progress="",l.avid="",l.cid="",l.networkType=0,l.danmaku=0,l.status=0,l.playMethod=0,l.playType=0,l.playerSessionId="",l.speed="",l.playerClarity="",l.isAutoplay=0,l.videoFormat=0),c.playFromSpmid!=null&&c.hasOwnProperty("playFromSpmid")&&(l.playFromSpmid=c.playFromSpmid),c.seasonId!=null&&c.hasOwnProperty("seasonId")&&(l.seasonId=c.seasonId),c.type!=null&&c.hasOwnProperty("type")&&(l.type=c.type),c.subType!=null&&c.hasOwnProperty("subType")&&(l.subType=c.subType),c.epId!=null&&c.hasOwnProperty("epId")&&(l.epId=c.epId),c.progress!=null&&c.hasOwnProperty("progress")&&(l.progress=c.progress),c.avid!=null&&c.hasOwnProperty("avid")&&(l.avid=c.avid),c.cid!=null&&c.hasOwnProperty("cid")&&(l.cid=c.cid),c.networkType!=null&&c.hasOwnProperty("networkType")&&(l.networkType=c.networkType),c.danmaku!=null&&c.hasOwnProperty("danmaku")&&(l.danmaku=c.danmaku),c.status!=null&&c.hasOwnProperty("status")&&(l.status=c.status),c.playMethod!=null&&c.hasOwnProperty("playMethod")&&(l.playMethod=c.playMethod),c.playType!=null&&c.hasOwnProperty("playType")&&(l.playType=c.playType),c.playerSessionId!=null&&c.hasOwnProperty("playerSessionId")&&(l.playerSessionId=c.playerSessionId),c.speed!=null&&c.hasOwnProperty("speed")&&(l.speed=c.speed),c.playerClarity!=null&&c.hasOwnProperty("playerClarity")&&(l.playerClarity=c.playerClarity),c.isAutoplay!=null&&c.hasOwnProperty("isAutoplay")&&(l.isAutoplay=c.isAutoplay),c.videoFormat!=null&&c.hasOwnProperty("videoFormat")&&(l.videoFormat=c.videoFormat),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/infoc.AppPlayerInfo"},d}(),O})(),Zr=u.dynamic=(()=>{let O={};return O.MetaDataCtrl=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.platform=c.string();break}case 2:{t.build=c.string();break}case 3:{t.mobiApp=c.string();break}case 4:{t.buvid=c.string();break}case 5:{t.device=c.string();break}case 6:{t.fromSpmid=c.string();break}case 7:{t.from=c.string();break}case 8:{t.traceId=c.string();break}case 9:{t.teenagerMode=c.int32();break}case 10:{t.coldStart=c.int32();break}case 11:{t.version=c.string();break}case 12:{t.network=c.int32();break}case 13:{t.ip=c.string();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.dynamic.MetaDataCtrl)return c;let e=new u.dynamic.MetaDataCtrl;return c.platform!=null&&(e.platform=String(c.platform)),c.build!=null&&(e.build=String(c.build)),c.mobiApp!=null&&(e.mobiApp=String(c.mobiApp)),c.buvid!=null&&(e.buvid=String(c.buvid)),c.device!=null&&(e.device=String(c.device)),c.fromSpmid!=null&&(e.fromSpmid=String(c.fromSpmid)),c.from!=null&&(e.from=String(c.from)),c.traceId!=null&&(e.traceId=String(c.traceId)),c.teenagerMode!=null&&(e.teenagerMode=c.teenagerMode|0),c.coldStart!=null&&(e.coldStart=c.coldStart|0),c.version!=null&&(e.version=String(c.version)),c.network!=null&&(e.network=c.network|0),c.ip!=null&&(e.ip=String(c.ip)),e},d.toObject=function(c,e){e||(e={});let l={};return e.defaults&&(l.platform="",l.build="",l.mobiApp="",l.buvid="",l.device="",l.fromSpmid="",l.from="",l.traceId="",l.teenagerMode=0,l.coldStart=0,l.version="",l.network=0,l.ip=""),c.platform!=null&&c.hasOwnProperty("platform")&&(l.platform=c.platform),c.build!=null&&c.hasOwnProperty("build")&&(l.build=c.build),c.mobiApp!=null&&c.hasOwnProperty("mobiApp")&&(l.mobiApp=c.mobiApp),c.buvid!=null&&c.hasOwnProperty("buvid")&&(l.buvid=c.buvid),c.device!=null&&c.hasOwnProperty("device")&&(l.device=c.device),c.fromSpmid!=null&&c.hasOwnProperty("fromSpmid")&&(l.fromSpmid=c.fromSpmid),c.from!=null&&c.hasOwnProperty("from")&&(l.from=c.from),c.traceId!=null&&c.hasOwnProperty("traceId")&&(l.traceId=c.traceId),c.teenagerMode!=null&&c.hasOwnProperty("teenagerMode")&&(l.teenagerMode=c.teenagerMode),c.coldStart!=null&&c.hasOwnProperty("coldStart")&&(l.coldStart=c.coldStart),c.version!=null&&c.hasOwnProperty("version")&&(l.version=c.version),c.network!=null&&c.hasOwnProperty("network")&&(l.network=c.network),c.ip!=null&&c.hasOwnProperty("ip")&&(l.ip=c.ip),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/dynamic.MetaDataCtrl"},d}(),O.DynRevsId=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.dynType=c.int64();break}case 2:{t.rid=c.int64();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.dynamic.DynRevsId)return c;let e=new u.dynamic.DynRevsId;return c.dynType!=null&&(r.Long?(e.dynType=r.Long.fromValue(c.dynType)).unsigned=!1:typeof c.dynType=="string"?e.dynType=parseInt(c.dynType,10):typeof c.dynType=="number"?e.dynType=c.dynType:typeof c.dynType=="object"&&(e.dynType=new r.LongBits(c.dynType.low>>>0,c.dynType.high>>>0).toNumber())),c.rid!=null&&(r.Long?(e.rid=r.Long.fromValue(c.rid)).unsigned=!1:typeof c.rid=="string"?e.rid=parseInt(c.rid,10):typeof c.rid=="number"?e.rid=c.rid:typeof c.rid=="object"&&(e.rid=new r.LongBits(c.rid.low>>>0,c.rid.high>>>0).toNumber())),e},d.toObject=function(c,e){e||(e={});let l={};if(e.defaults){if(r.Long){let t=new r.Long(0,0,!1);l.dynType=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.dynType=e.longs===String?"0":0;if(r.Long){let t=new r.Long(0,0,!1);l.rid=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.rid=e.longs===String?"0":0}return c.dynType!=null&&c.hasOwnProperty("dynType")&&(typeof c.dynType=="number"?l.dynType=e.longs===String?String(c.dynType):c.dynType:l.dynType=e.longs===String?r.Long.prototype.toString.call(c.dynType):e.longs===Number?new r.LongBits(c.dynType.low>>>0,c.dynType.high>>>0).toNumber():c.dynType),c.rid!=null&&c.hasOwnProperty("rid")&&(typeof c.rid=="number"?l.rid=e.longs===String?String(c.rid):c.rid:l.rid=e.longs===String?r.Long.prototype.toString.call(c.rid):e.longs===Number?new r.LongBits(c.rid.low>>>0,c.rid.high>>>0).toNumber():c.rid),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/dynamic.DynRevsId"},d}(),O.LbsLoc=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.lat=c.double();break}case 2:{t.lng=c.double();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.dynamic.LbsLoc)return c;let e=new u.dynamic.LbsLoc;return c.lat!=null&&(e.lat=Number(c.lat)),c.lng!=null&&(e.lng=Number(c.lng)),e},d.toObject=function(c,e){e||(e={});let l={};return e.defaults&&(l.lat=0,l.lng=0),c.lat!=null&&c.hasOwnProperty("lat")&&(l.lat=e.json&&!isFinite(c.lat)?String(c.lat):c.lat),c.lng!=null&&c.hasOwnProperty("lng")&&(l.lng=e.json&&!isFinite(c.lng)?String(c.lng):c.lng),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/dynamic.LbsLoc"},d}(),O.ExtLbs=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.address=c.string();break}case 2:{t.distance=c.int64();break}case 3:{t.type=c.int64();break}case 4:{t.poi=c.string();break}case 5:{t.location=u.dynamic.LbsLoc.decode(c,c.uint32());break}case 6:{t.showTitle=c.string();break}case 7:{t.title=c.string();break}case 8:{t.showDistance=c.string();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.dynamic.ExtLbs)return c;let e=new u.dynamic.ExtLbs;if(c.address!=null&&(e.address=String(c.address)),c.distance!=null&&(r.Long?(e.distance=r.Long.fromValue(c.distance)).unsigned=!1:typeof c.distance=="string"?e.distance=parseInt(c.distance,10):typeof c.distance=="number"?e.distance=c.distance:typeof c.distance=="object"&&(e.distance=new r.LongBits(c.distance.low>>>0,c.distance.high>>>0).toNumber())),c.type!=null&&(r.Long?(e.type=r.Long.fromValue(c.type)).unsigned=!1:typeof c.type=="string"?e.type=parseInt(c.type,10):typeof c.type=="number"?e.type=c.type:typeof c.type=="object"&&(e.type=new r.LongBits(c.type.low>>>0,c.type.high>>>0).toNumber())),c.poi!=null&&(e.poi=String(c.poi)),c.location!=null){if(typeof c.location!="object")throw TypeError(".dynamic.ExtLbs.location: object expected");e.location=u.dynamic.LbsLoc.fromObject(c.location)}return c.showTitle!=null&&(e.showTitle=String(c.showTitle)),c.title!=null&&(e.title=String(c.title)),c.showDistance!=null&&(e.showDistance=String(c.showDistance)),e},d.toObject=function(c,e){e||(e={});let l={};if(e.defaults){if(l.address="",r.Long){let t=new r.Long(0,0,!1);l.distance=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.distance=e.longs===String?"0":0;if(r.Long){let t=new r.Long(0,0,!1);l.type=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.type=e.longs===String?"0":0;l.poi="",l.location=null,l.showTitle="",l.title="",l.showDistance=""}return c.address!=null&&c.hasOwnProperty("address")&&(l.address=c.address),c.distance!=null&&c.hasOwnProperty("distance")&&(typeof c.distance=="number"?l.distance=e.longs===String?String(c.distance):c.distance:l.distance=e.longs===String?r.Long.prototype.toString.call(c.distance):e.longs===Number?new r.LongBits(c.distance.low>>>0,c.distance.high>>>0).toNumber():c.distance),c.type!=null&&c.hasOwnProperty("type")&&(typeof c.type=="number"?l.type=e.longs===String?String(c.type):c.type:l.type=e.longs===String?r.Long.prototype.toString.call(c.type):e.longs===Number?new r.LongBits(c.type.low>>>0,c.type.high>>>0).toNumber():c.type),c.poi!=null&&c.hasOwnProperty("poi")&&(l.poi=c.poi),c.location!=null&&c.hasOwnProperty("location")&&(l.location=u.dynamic.LbsLoc.toObject(c.location,e)),c.showTitle!=null&&c.hasOwnProperty("showTitle")&&(l.showTitle=c.showTitle),c.title!=null&&c.hasOwnProperty("title")&&(l.title=c.title),c.showDistance!=null&&c.hasOwnProperty("showDistance")&&(l.showDistance=c.showDistance),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/dynamic.ExtLbs"},d}(),O.BottomBusiness=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.rid=c.int64();break}case 2:{t.type=c.int64();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.dynamic.BottomBusiness)return c;let e=new u.dynamic.BottomBusiness;return c.rid!=null&&(r.Long?(e.rid=r.Long.fromValue(c.rid)).unsigned=!1:typeof c.rid=="string"?e.rid=parseInt(c.rid,10):typeof c.rid=="number"?e.rid=c.rid:typeof c.rid=="object"&&(e.rid=new r.LongBits(c.rid.low>>>0,c.rid.high>>>0).toNumber())),c.type!=null&&(r.Long?(e.type=r.Long.fromValue(c.type)).unsigned=!1:typeof c.type=="string"?e.type=parseInt(c.type,10):typeof c.type=="number"?e.type=c.type:typeof c.type=="object"&&(e.type=new r.LongBits(c.type.low>>>0,c.type.high>>>0).toNumber())),e},d.toObject=function(c,e){e||(e={});let l={};if(e.defaults){if(r.Long){let t=new r.Long(0,0,!1);l.rid=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.rid=e.longs===String?"0":0;if(r.Long){let t=new r.Long(0,0,!1);l.type=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.type=e.longs===String?"0":0}return c.rid!=null&&c.hasOwnProperty("rid")&&(typeof c.rid=="number"?l.rid=e.longs===String?String(c.rid):c.rid:l.rid=e.longs===String?r.Long.prototype.toString.call(c.rid):e.longs===Number?new r.LongBits(c.rid.low>>>0,c.rid.high>>>0).toNumber():c.rid),c.type!=null&&c.hasOwnProperty("type")&&(typeof c.type=="number"?l.type=e.longs===String?String(c.type):c.type:l.type=e.longs===String?r.Long.prototype.toString.call(c.type):e.longs===Number?new r.LongBits(c.type.low>>>0,c.type.high>>>0).toNumber():c.type),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/dynamic.BottomBusiness"},d}(),O.AttachCardType=function(){let d={},p=Object.create(d);return p[d[0]="ATTACH_CARD_NONE"]=0,p[d[1]="ATTACH_CARD_GOODS"]=1,p[d[2]="ATTACH_CARD_VOTE"]=2,p[d[3]="ATTACH_CARD_UGC"]=3,p[d[4]="ATTACH_CARD_ACTIVITY"]=4,p[d[5]="ATTACH_CARD_OFFICIAL_ACTIVITY"]=5,p[d[6]="ATTACH_CARD_TOPIC"]=6,p[d[7]="ATTACH_CARD_OGV"]=7,p[d[8]="ATTACH_CARD_AUTO_OGV"]=8,p[d[9]="ATTACH_CARD_GAME"]=9,p[d[10]="ATTACH_CARD_MANGA"]=10,p[d[11]="ATTACH_CARD_DECORATION"]=11,p[d[12]="ATTACH_CARD_MATCH"]=12,p[d[13]="ATTACH_CARD_PUGV"]=13,p[d[14]="ATTACH_CARD_RESERVE"]=14,p[d[15]="ATTACH_CARD_UP_TOPIC"]=15,p[d[16]="ATTACH_CARD_UP_ACTIVITY"]=16,p[d[17]="ATTACH_CARD_UP_MAOER"]=17,p[d[18]="ATTACH_CARD_MEMBER_GOODS"]=18,p[d[19]="ATTACH_CARD_MAN_TIAN_XING"]=19,p[d[20]="ATTACH_CARD_LOTTERY"]=20,p}(),O.DynIdentity=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.dynId=c.int64();break}case 2:{t.revsId=u.dynamic.DynRevsId.decode(c,c.uint32());break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.dynamic.DynIdentity)return c;let e=new u.dynamic.DynIdentity;if(c.dynId!=null&&(r.Long?(e.dynId=r.Long.fromValue(c.dynId)).unsigned=!1:typeof c.dynId=="string"?e.dynId=parseInt(c.dynId,10):typeof c.dynId=="number"?e.dynId=c.dynId:typeof c.dynId=="object"&&(e.dynId=new r.LongBits(c.dynId.low>>>0,c.dynId.high>>>0).toNumber())),c.revsId!=null){if(typeof c.revsId!="object")throw TypeError(".dynamic.DynIdentity.revsId: object expected");e.revsId=u.dynamic.DynRevsId.fromObject(c.revsId)}return e},d.toObject=function(c,e){e||(e={});let l={};if(e.defaults){if(r.Long){let t=new r.Long(0,0,!1);l.dynId=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.dynId=e.longs===String?"0":0;l.revsId=null}return c.dynId!=null&&c.hasOwnProperty("dynId")&&(typeof c.dynId=="number"?l.dynId=e.longs===String?String(c.dynId):c.dynId:l.dynId=e.longs===String?r.Long.prototype.toString.call(c.dynId):e.longs===Number?new r.LongBits(c.dynId.low>>>0,c.dynId.high>>>0).toNumber():c.dynId),c.revsId!=null&&c.hasOwnProperty("revsId")&&(l.revsId=u.dynamic.DynRevsId.toObject(c.revsId,e)),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/dynamic.DynIdentity"},d}(),O.ShareChannel=function(){function d(p){if(this.shareChannels=[],p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.shareOrigin=c.string();break}case 2:{t.oid=c.string();break}case 3:{t.sid=c.string();break}case 4:{t.shareChannels&&t.shareChannels.length||(t.shareChannels=[]),t.shareChannels.push(u.dynamic.ShareChannelItem.decode(c,c.uint32()));break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.dynamic.ShareChannel)return c;let e=new u.dynamic.ShareChannel;if(c.shareOrigin!=null&&(e.shareOrigin=String(c.shareOrigin)),c.oid!=null&&(e.oid=String(c.oid)),c.sid!=null&&(e.sid=String(c.sid)),c.shareChannels){if(!Array.isArray(c.shareChannels))throw TypeError(".dynamic.ShareChannel.shareChannels: array expected");e.shareChannels=[];for(let l=0;l>>3){case 1:{t.name=c.string();break}case 2:{t.picture=c.string();break}case 3:{t.shareChannel=c.string();break}case 4:{t.reserve=u.dynamic.ShareReserve.decode(c,c.uint32());break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.dynamic.ShareChannelItem)return c;let e=new u.dynamic.ShareChannelItem;if(c.name!=null&&(e.name=String(c.name)),c.picture!=null&&(e.picture=String(c.picture)),c.shareChannel!=null&&(e.shareChannel=String(c.shareChannel)),c.reserve!=null){if(typeof c.reserve!="object")throw TypeError(".dynamic.ShareChannelItem.reserve: object expected");e.reserve=u.dynamic.ShareReserve.fromObject(c.reserve)}return e},d.toObject=function(c,e){e||(e={});let l={};return e.defaults&&(l.name="",l.picture="",l.shareChannel="",l.reserve=null),c.name!=null&&c.hasOwnProperty("name")&&(l.name=c.name),c.picture!=null&&c.hasOwnProperty("picture")&&(l.picture=c.picture),c.shareChannel!=null&&c.hasOwnProperty("shareChannel")&&(l.shareChannel=c.shareChannel),c.reserve!=null&&c.hasOwnProperty("reserve")&&(l.reserve=u.dynamic.ShareReserve.toObject(c.reserve,e)),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/dynamic.ShareChannelItem"},d}(),O.ShareReservePoster=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.url=c.string();break}case 2:{t.width=c.double();break}case 3:{t.height=c.double();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.dynamic.ShareReservePoster)return c;let e=new u.dynamic.ShareReservePoster;return c.url!=null&&(e.url=String(c.url)),c.width!=null&&(e.width=Number(c.width)),c.height!=null&&(e.height=Number(c.height)),e},d.toObject=function(c,e){e||(e={});let l={};return e.defaults&&(l.url="",l.width=0,l.height=0),c.url!=null&&c.hasOwnProperty("url")&&(l.url=c.url),c.width!=null&&c.hasOwnProperty("width")&&(l.width=e.json&&!isFinite(c.width)?String(c.width):c.width),c.height!=null&&c.hasOwnProperty("height")&&(l.height=e.json&&!isFinite(c.height)?String(c.height):c.height),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/dynamic.ShareReservePoster"},d}(),O.ShareReserveLottery=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.icon=c.string();break}case 2:{t.text=c.string();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.dynamic.ShareReserveLottery)return c;let e=new u.dynamic.ShareReserveLottery;return c.icon!=null&&(e.icon=String(c.icon)),c.text!=null&&(e.text=String(c.text)),e},d.toObject=function(c,e){e||(e={});let l={};return e.defaults&&(l.icon="",l.text=""),c.icon!=null&&c.hasOwnProperty("icon")&&(l.icon=c.icon),c.text!=null&&c.hasOwnProperty("text")&&(l.text=c.text),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/dynamic.ShareReserveLottery"},d}(),O.ShareReserve=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.title=c.string();break}case 2:{t.desc=c.string();break}case 3:{t.qrCodeIcon=c.string();break}case 4:{t.qrCodeText=c.string();break}case 5:{t.qrCodeUrl=c.string();break}case 6:{t.name=c.string();break}case 7:{t.face=c.string();break}case 8:{t.poster=u.dynamic.ShareReservePoster.decode(c,c.uint32());break}case 9:{t.reserveLottery=u.dynamic.ShareReserveLottery.decode(c,c.uint32());break}case 10:{t.badgeText=c.string();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.dynamic.ShareReserve)return c;let e=new u.dynamic.ShareReserve;if(c.title!=null&&(e.title=String(c.title)),c.desc!=null&&(e.desc=String(c.desc)),c.qrCodeIcon!=null&&(e.qrCodeIcon=String(c.qrCodeIcon)),c.qrCodeText!=null&&(e.qrCodeText=String(c.qrCodeText)),c.qrCodeUrl!=null&&(e.qrCodeUrl=String(c.qrCodeUrl)),c.name!=null&&(e.name=String(c.name)),c.face!=null&&(e.face=String(c.face)),c.poster!=null){if(typeof c.poster!="object")throw TypeError(".dynamic.ShareReserve.poster: object expected");e.poster=u.dynamic.ShareReservePoster.fromObject(c.poster)}if(c.reserveLottery!=null){if(typeof c.reserveLottery!="object")throw TypeError(".dynamic.ShareReserve.reserveLottery: object expected");e.reserveLottery=u.dynamic.ShareReserveLottery.fromObject(c.reserveLottery)}return c.badgeText!=null&&(e.badgeText=String(c.badgeText)),e},d.toObject=function(c,e){e||(e={});let l={};return e.defaults&&(l.title="",l.desc="",l.qrCodeIcon="",l.qrCodeText="",l.qrCodeUrl="",l.name="",l.face="",l.poster=null,l.reserveLottery=null,l.badgeText=""),c.title!=null&&c.hasOwnProperty("title")&&(l.title=c.title),c.desc!=null&&c.hasOwnProperty("desc")&&(l.desc=c.desc),c.qrCodeIcon!=null&&c.hasOwnProperty("qrCodeIcon")&&(l.qrCodeIcon=c.qrCodeIcon),c.qrCodeText!=null&&c.hasOwnProperty("qrCodeText")&&(l.qrCodeText=c.qrCodeText),c.qrCodeUrl!=null&&c.hasOwnProperty("qrCodeUrl")&&(l.qrCodeUrl=c.qrCodeUrl),c.name!=null&&c.hasOwnProperty("name")&&(l.name=c.name),c.face!=null&&c.hasOwnProperty("face")&&(l.face=c.face),c.poster!=null&&c.hasOwnProperty("poster")&&(l.poster=u.dynamic.ShareReservePoster.toObject(c.poster,e)),c.reserveLottery!=null&&c.hasOwnProperty("reserveLottery")&&(l.reserveLottery=u.dynamic.ShareReserveLottery.toObject(c.reserveLottery,e)),c.badgeText!=null&&c.hasOwnProperty("badgeText")&&(l.badgeText=c.badgeText),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/dynamic.ShareReserve"},d}(),O.ContentType=function(){let d={},p=Object.create(d);return p[d[0]="CONTENT_TYPE_NONE"]=0,p[d[1]="TEXT"]=1,p[d[2]="AT"]=2,p[d[3]="LOTTERY"]=3,p[d[4]="VOTE"]=4,p[d[5]="TOPIC"]=5,p[d[6]="GOODS"]=6,p[d[7]="BV"]=7,p[d[8]="AV"]=8,p[d[9]="EMOJI"]=9,p[d[10]="USER"]=10,p[d[11]="CV"]=11,p[d[12]="VC"]=12,p[d[13]="WEB"]=13,p[d[14]="TAOBAO"]=14,p[d[15]="MAIL"]=15,p[d[16]="OGV_SEASON"]=16,p[d[17]="OGV_EP"]=17,p}(),O.Sketch=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.title=c.string();break}case 2:{t.descText=c.string();break}case 3:{t.text=c.string();break}case 4:{t.bizId=c.int64();break}case 5:{t.bizType=c.int64();break}case 6:{t.coverUrl=c.string();break}case 7:{t.targetUrl=c.string();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.dynamic.Sketch)return c;let e=new u.dynamic.Sketch;return c.title!=null&&(e.title=String(c.title)),c.descText!=null&&(e.descText=String(c.descText)),c.text!=null&&(e.text=String(c.text)),c.bizId!=null&&(r.Long?(e.bizId=r.Long.fromValue(c.bizId)).unsigned=!1:typeof c.bizId=="string"?e.bizId=parseInt(c.bizId,10):typeof c.bizId=="number"?e.bizId=c.bizId:typeof c.bizId=="object"&&(e.bizId=new r.LongBits(c.bizId.low>>>0,c.bizId.high>>>0).toNumber())),c.bizType!=null&&(r.Long?(e.bizType=r.Long.fromValue(c.bizType)).unsigned=!1:typeof c.bizType=="string"?e.bizType=parseInt(c.bizType,10):typeof c.bizType=="number"?e.bizType=c.bizType:typeof c.bizType=="object"&&(e.bizType=new r.LongBits(c.bizType.low>>>0,c.bizType.high>>>0).toNumber())),c.coverUrl!=null&&(e.coverUrl=String(c.coverUrl)),c.targetUrl!=null&&(e.targetUrl=String(c.targetUrl)),e},d.toObject=function(c,e){e||(e={});let l={};if(e.defaults){if(l.title="",l.descText="",l.text="",r.Long){let t=new r.Long(0,0,!1);l.bizId=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.bizId=e.longs===String?"0":0;if(r.Long){let t=new r.Long(0,0,!1);l.bizType=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.bizType=e.longs===String?"0":0;l.coverUrl="",l.targetUrl=""}return c.title!=null&&c.hasOwnProperty("title")&&(l.title=c.title),c.descText!=null&&c.hasOwnProperty("descText")&&(l.descText=c.descText),c.text!=null&&c.hasOwnProperty("text")&&(l.text=c.text),c.bizId!=null&&c.hasOwnProperty("bizId")&&(typeof c.bizId=="number"?l.bizId=e.longs===String?String(c.bizId):c.bizId:l.bizId=e.longs===String?r.Long.prototype.toString.call(c.bizId):e.longs===Number?new r.LongBits(c.bizId.low>>>0,c.bizId.high>>>0).toNumber():c.bizId),c.bizType!=null&&c.hasOwnProperty("bizType")&&(typeof c.bizType=="number"?l.bizType=e.longs===String?String(c.bizType):c.bizType:l.bizType=e.longs===String?r.Long.prototype.toString.call(c.bizType):e.longs===Number?new r.LongBits(c.bizType.low>>>0,c.bizType.high>>>0).toNumber():c.bizType),c.coverUrl!=null&&c.hasOwnProperty("coverUrl")&&(l.coverUrl=c.coverUrl),c.targetUrl!=null&&c.hasOwnProperty("targetUrl")&&(l.targetUrl=c.targetUrl),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/dynamic.Sketch"},d}(),O.Program=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.title=c.string();break}case 2:{t.desc=c.string();break}case 3:{t.cover=c.string();break}case 4:{t.targetUrl=c.string();break}case 5:{t.icon=c.string();break}case 6:{t.programText=c.string();break}case 7:{t.jumpText=c.string();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.dynamic.Program)return c;let e=new u.dynamic.Program;return c.title!=null&&(e.title=String(c.title)),c.desc!=null&&(e.desc=String(c.desc)),c.cover!=null&&(e.cover=String(c.cover)),c.targetUrl!=null&&(e.targetUrl=String(c.targetUrl)),c.icon!=null&&(e.icon=String(c.icon)),c.programText!=null&&(e.programText=String(c.programText)),c.jumpText!=null&&(e.jumpText=String(c.jumpText)),e},d.toObject=function(c,e){e||(e={});let l={};return e.defaults&&(l.title="",l.desc="",l.cover="",l.targetUrl="",l.icon="",l.programText="",l.jumpText=""),c.title!=null&&c.hasOwnProperty("title")&&(l.title=c.title),c.desc!=null&&c.hasOwnProperty("desc")&&(l.desc=c.desc),c.cover!=null&&c.hasOwnProperty("cover")&&(l.cover=c.cover),c.targetUrl!=null&&c.hasOwnProperty("targetUrl")&&(l.targetUrl=c.targetUrl),c.icon!=null&&c.hasOwnProperty("icon")&&(l.icon=c.icon),c.programText!=null&&c.hasOwnProperty("programText")&&(l.programText=c.programText),c.jumpText!=null&&c.hasOwnProperty("jumpText")&&(l.jumpText=c.jumpText),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/dynamic.Program"},d}(),O.CreateScene=function(){let d={},p=Object.create(d);return p[d[0]="CREATE_SCENE_INVALID"]=0,p[d[1]="CREATE_SCENE_CREATE_WORD"]=1,p[d[2]="CREATE_SCENE_CREATE_DRAW"]=2,p[d[3]="CREATE_SCENE_CREATE_DYN_VIDEO"]=3,p[d[4]="CREATE_SCENE_REPOST"]=4,p[d[5]="CREATE_SCENE_SHARE_BIZ"]=5,p[d[6]="CREATE_SCENE_SHARE_PAGE"]=6,p[d[7]="CREATE_SCENE_SHARE_PROGRAM"]=7,p[d[8]="CREATE_SCENE_REPLY_SYNC"]=8,p[d[9]="CREATE_SCENE_REPLY_CREATE_ACTIVITY"]=9,p[d[10]="CREATE_SCENE_CREATE_AD"]=10,p[d[11]="CREATE_SCENE_CREATE_LIVE_RCMD"]=11,p[d[12]="CREATE_SCENE_CREATE_ARTICLE"]=12,p}(),O.CreateInitCheckScene=function(){let d={},p=Object.create(d);return p[d[0]="CREATE_INIT_CHECK_SCENE_INVALID"]=0,p[d[1]="CREATE_INIT_CHECK_SCENE_NORMAL"]=1,p[d[2]="CREATE_INIT_CHECK_SCENE_REPOST"]=2,p[d[3]="CREATE_INIT_CHECK_SCENE_SHARE"]=3,p[d[4]="CREATE_INIT_CHECK_SCENE_RESERVE_SHARE"]=4,p[d[5]="CREATE_INIT_CHECK_SCENE_ARTICLE"]=5,p}(),O.UserCreateMeta=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.appMeta=u.dynamic.MetaDataCtrl.decode(c,c.uint32());break}case 2:{t.loc=u.dynamic.LbsLoc.decode(c,c.uint32());break}case 3:{t.repostMode=c.int32();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.dynamic.UserCreateMeta)return c;let e=new u.dynamic.UserCreateMeta;if(c.appMeta!=null){if(typeof c.appMeta!="object")throw TypeError(".dynamic.UserCreateMeta.appMeta: object expected");e.appMeta=u.dynamic.MetaDataCtrl.fromObject(c.appMeta)}if(c.loc!=null){if(typeof c.loc!="object")throw TypeError(".dynamic.UserCreateMeta.loc: object expected");e.loc=u.dynamic.LbsLoc.fromObject(c.loc)}return c.repostMode!=null&&(e.repostMode=c.repostMode|0),e},d.toObject=function(c,e){e||(e={});let l={};return e.defaults&&(l.appMeta=null,l.loc=null,l.repostMode=0),c.appMeta!=null&&c.hasOwnProperty("appMeta")&&(l.appMeta=u.dynamic.MetaDataCtrl.toObject(c.appMeta,e)),c.loc!=null&&c.hasOwnProperty("loc")&&(l.loc=u.dynamic.LbsLoc.toObject(c.loc,e)),c.repostMode!=null&&c.hasOwnProperty("repostMode")&&(l.repostMode=c.repostMode),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/dynamic.UserCreateMeta"},d}(),O.RepostInitCheck=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.repostSrc=u.dynamic.DynIdentity.decode(c,c.uint32());break}case 2:{t.shareId=c.string();break}case 3:{t.shareMode=c.int32();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.dynamic.RepostInitCheck)return c;let e=new u.dynamic.RepostInitCheck;if(c.repostSrc!=null){if(typeof c.repostSrc!="object")throw TypeError(".dynamic.RepostInitCheck.repostSrc: object expected");e.repostSrc=u.dynamic.DynIdentity.fromObject(c.repostSrc)}return c.shareId!=null&&(e.shareId=String(c.shareId)),c.shareMode!=null&&(e.shareMode=c.shareMode|0),e},d.toObject=function(c,e){e||(e={});let l={};return e.defaults&&(l.repostSrc=null,l.shareId="",l.shareMode=0),c.repostSrc!=null&&c.hasOwnProperty("repostSrc")&&(l.repostSrc=u.dynamic.DynIdentity.toObject(c.repostSrc,e)),c.shareId!=null&&c.hasOwnProperty("shareId")&&(l.shareId=c.shareId),c.shareMode!=null&&c.hasOwnProperty("shareMode")&&(l.shareMode=c.shareMode),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/dynamic.RepostInitCheck"},d}(),O.CreateContent=function(){function d(p){if(this.contents=[],p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.contents&&t.contents.length||(t.contents=[]),t.contents.push(u.dynamic.CreateContentItem.decode(c,c.uint32()));break}case 2:{t.title=c.string();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.dynamic.CreateContent)return c;let e=new u.dynamic.CreateContent;if(c.contents){if(!Array.isArray(c.contents))throw TypeError(".dynamic.CreateContent.contents: array expected");e.contents=[];for(let l=0;l>>3){case 1:{t.rawText=c.string();break}case 2:{t.type=c.int32();break}case 3:{t.bizId=c.string();break}case 4:{t.goods=u.dynamic.GoodsContent.decode(c,c.uint32());break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.dynamic.CreateContentItem)return c;let e=new u.dynamic.CreateContentItem;switch(c.rawText!=null&&(e.rawText=String(c.rawText)),c.type){default:if(typeof c.type=="number"){e.type=c.type;break}break;case"CONTENT_TYPE_NONE":case 0:e.type=0;break;case"TEXT":case 1:e.type=1;break;case"AT":case 2:e.type=2;break;case"LOTTERY":case 3:e.type=3;break;case"VOTE":case 4:e.type=4;break;case"TOPIC":case 5:e.type=5;break;case"GOODS":case 6:e.type=6;break;case"BV":case 7:e.type=7;break;case"AV":case 8:e.type=8;break;case"EMOJI":case 9:e.type=9;break;case"USER":case 10:e.type=10;break;case"CV":case 11:e.type=11;break;case"VC":case 12:e.type=12;break;case"WEB":case 13:e.type=13;break;case"TAOBAO":case 14:e.type=14;break;case"MAIL":case 15:e.type=15;break;case"OGV_SEASON":case 16:e.type=16;break;case"OGV_EP":case 17:e.type=17;break}if(c.bizId!=null&&(e.bizId=String(c.bizId)),c.goods!=null){if(typeof c.goods!="object")throw TypeError(".dynamic.CreateContentItem.goods: object expected");e.goods=u.dynamic.GoodsContent.fromObject(c.goods)}return e},d.toObject=function(c,e){e||(e={});let l={};return e.defaults&&(l.rawText="",l.type=e.enums===String?"CONTENT_TYPE_NONE":0,l.bizId="",l.goods=null),c.rawText!=null&&c.hasOwnProperty("rawText")&&(l.rawText=c.rawText),c.type!=null&&c.hasOwnProperty("type")&&(l.type=e.enums===String?u.dynamic.ContentType[c.type]===void 0?c.type:u.dynamic.ContentType[c.type]:c.type),c.bizId!=null&&c.hasOwnProperty("bizId")&&(l.bizId=c.bizId),c.goods!=null&&c.hasOwnProperty("goods")&&(l.goods=u.dynamic.GoodsContent.toObject(c.goods,e)),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/dynamic.CreateContentItem"},d}(),O.GoodsContent=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.sourceType=c.int32();break}case 2:{t.itemId=c.int64();break}case 3:{t.shopId=c.int64();break}case 4:{t.actId=c.int64();break}case 5:{t.actMid=c.int64();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.dynamic.GoodsContent)return c;let e=new u.dynamic.GoodsContent;return c.sourceType!=null&&(e.sourceType=c.sourceType|0),c.itemId!=null&&(r.Long?(e.itemId=r.Long.fromValue(c.itemId)).unsigned=!1:typeof c.itemId=="string"?e.itemId=parseInt(c.itemId,10):typeof c.itemId=="number"?e.itemId=c.itemId:typeof c.itemId=="object"&&(e.itemId=new r.LongBits(c.itemId.low>>>0,c.itemId.high>>>0).toNumber())),c.shopId!=null&&(r.Long?(e.shopId=r.Long.fromValue(c.shopId)).unsigned=!1:typeof c.shopId=="string"?e.shopId=parseInt(c.shopId,10):typeof c.shopId=="number"?e.shopId=c.shopId:typeof c.shopId=="object"&&(e.shopId=new r.LongBits(c.shopId.low>>>0,c.shopId.high>>>0).toNumber())),c.actId!=null&&(r.Long?(e.actId=r.Long.fromValue(c.actId)).unsigned=!1:typeof c.actId=="string"?e.actId=parseInt(c.actId,10):typeof c.actId=="number"?e.actId=c.actId:typeof c.actId=="object"&&(e.actId=new r.LongBits(c.actId.low>>>0,c.actId.high>>>0).toNumber())),c.actMid!=null&&(r.Long?(e.actMid=r.Long.fromValue(c.actMid)).unsigned=!1:typeof c.actMid=="string"?e.actMid=parseInt(c.actMid,10):typeof c.actMid=="number"?e.actMid=c.actMid:typeof c.actMid=="object"&&(e.actMid=new r.LongBits(c.actMid.low>>>0,c.actMid.high>>>0).toNumber())),e},d.toObject=function(c,e){e||(e={});let l={};if(e.defaults){if(l.sourceType=0,r.Long){let t=new r.Long(0,0,!1);l.itemId=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.itemId=e.longs===String?"0":0;if(r.Long){let t=new r.Long(0,0,!1);l.shopId=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.shopId=e.longs===String?"0":0;if(r.Long){let t=new r.Long(0,0,!1);l.actId=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.actId=e.longs===String?"0":0;if(r.Long){let t=new r.Long(0,0,!1);l.actMid=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.actMid=e.longs===String?"0":0}return c.sourceType!=null&&c.hasOwnProperty("sourceType")&&(l.sourceType=c.sourceType),c.itemId!=null&&c.hasOwnProperty("itemId")&&(typeof c.itemId=="number"?l.itemId=e.longs===String?String(c.itemId):c.itemId:l.itemId=e.longs===String?r.Long.prototype.toString.call(c.itemId):e.longs===Number?new r.LongBits(c.itemId.low>>>0,c.itemId.high>>>0).toNumber():c.itemId),c.shopId!=null&&c.hasOwnProperty("shopId")&&(typeof c.shopId=="number"?l.shopId=e.longs===String?String(c.shopId):c.shopId:l.shopId=e.longs===String?r.Long.prototype.toString.call(c.shopId):e.longs===Number?new r.LongBits(c.shopId.low>>>0,c.shopId.high>>>0).toNumber():c.shopId),c.actId!=null&&c.hasOwnProperty("actId")&&(typeof c.actId=="number"?l.actId=e.longs===String?String(c.actId):c.actId:l.actId=e.longs===String?r.Long.prototype.toString.call(c.actId):e.longs===Number?new r.LongBits(c.actId.low>>>0,c.actId.high>>>0).toNumber():c.actId),c.actMid!=null&&c.hasOwnProperty("actMid")&&(typeof c.actMid=="number"?l.actMid=e.longs===String?String(c.actMid):c.actMid:l.actMid=e.longs===String?r.Long.prototype.toString.call(c.actMid):e.longs===Number?new r.LongBits(c.actMid.low>>>0,c.actMid.high>>>0).toNumber():c.actMid),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/dynamic.GoodsContent"},d}(),O.CreateTag=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.lbs=u.dynamic.ExtLbs.decode(c,c.uint32());break}case 2:{t.sdkGame=u.dynamic.BottomBusiness.decode(c,c.uint32());break}case 3:{t.diversion=u.dynamic.BottomBusiness.decode(c,c.uint32());break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.dynamic.CreateTag)return c;let e=new u.dynamic.CreateTag;if(c.lbs!=null){if(typeof c.lbs!="object")throw TypeError(".dynamic.CreateTag.lbs: object expected");e.lbs=u.dynamic.ExtLbs.fromObject(c.lbs)}if(c.sdkGame!=null){if(typeof c.sdkGame!="object")throw TypeError(".dynamic.CreateTag.sdkGame: object expected");e.sdkGame=u.dynamic.BottomBusiness.fromObject(c.sdkGame)}if(c.diversion!=null){if(typeof c.diversion!="object")throw TypeError(".dynamic.CreateTag.diversion: object expected");e.diversion=u.dynamic.BottomBusiness.fromObject(c.diversion)}return e},d.toObject=function(c,e){e||(e={});let l={};return e.defaults&&(l.lbs=null,l.sdkGame=null,l.diversion=null),c.lbs!=null&&c.hasOwnProperty("lbs")&&(l.lbs=u.dynamic.ExtLbs.toObject(c.lbs,e)),c.sdkGame!=null&&c.hasOwnProperty("sdkGame")&&(l.sdkGame=u.dynamic.BottomBusiness.toObject(c.sdkGame,e)),c.diversion!=null&&c.hasOwnProperty("diversion")&&(l.diversion=u.dynamic.BottomBusiness.toObject(c.diversion,e)),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/dynamic.CreateTag"},d}(),O.CreateAttachCard=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.goods=u.dynamic.CreateGoodsCard.decode(c,c.uint32());break}case 2:{t.commonCard=u.dynamic.CreateCommonAttachCard.decode(c,c.uint32());break}case 3:{t.commercial=u.dynamic.CreateCommercialCard.decode(c,c.uint32());break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.dynamic.CreateAttachCard)return c;let e=new u.dynamic.CreateAttachCard;if(c.goods!=null){if(typeof c.goods!="object")throw TypeError(".dynamic.CreateAttachCard.goods: object expected");e.goods=u.dynamic.CreateGoodsCard.fromObject(c.goods)}if(c.commonCard!=null){if(typeof c.commonCard!="object")throw TypeError(".dynamic.CreateAttachCard.commonCard: object expected");e.commonCard=u.dynamic.CreateCommonAttachCard.fromObject(c.commonCard)}if(c.commercial!=null){if(typeof c.commercial!="object")throw TypeError(".dynamic.CreateAttachCard.commercial: object expected");e.commercial=u.dynamic.CreateCommercialCard.fromObject(c.commercial)}return e},d.toObject=function(c,e){e||(e={});let l={};return e.defaults&&(l.goods=null,l.commonCard=null,l.commercial=null),c.goods!=null&&c.hasOwnProperty("goods")&&(l.goods=u.dynamic.CreateGoodsCard.toObject(c.goods,e)),c.commonCard!=null&&c.hasOwnProperty("commonCard")&&(l.commonCard=u.dynamic.CreateCommonAttachCard.toObject(c.commonCard,e)),c.commercial!=null&&c.hasOwnProperty("commercial")&&(l.commercial=u.dynamic.CreateCommercialCard.toObject(c.commercial,e)),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/dynamic.CreateAttachCard"},d}(),O.CreateCommercialCard=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.commercialEntityType=c.int64();break}case 2:{t.commercialEntityId=c.int64();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.dynamic.CreateCommercialCard)return c;let e=new u.dynamic.CreateCommercialCard;return c.commercialEntityType!=null&&(r.Long?(e.commercialEntityType=r.Long.fromValue(c.commercialEntityType)).unsigned=!1:typeof c.commercialEntityType=="string"?e.commercialEntityType=parseInt(c.commercialEntityType,10):typeof c.commercialEntityType=="number"?e.commercialEntityType=c.commercialEntityType:typeof c.commercialEntityType=="object"&&(e.commercialEntityType=new r.LongBits(c.commercialEntityType.low>>>0,c.commercialEntityType.high>>>0).toNumber())),c.commercialEntityId!=null&&(r.Long?(e.commercialEntityId=r.Long.fromValue(c.commercialEntityId)).unsigned=!1:typeof c.commercialEntityId=="string"?e.commercialEntityId=parseInt(c.commercialEntityId,10):typeof c.commercialEntityId=="number"?e.commercialEntityId=c.commercialEntityId:typeof c.commercialEntityId=="object"&&(e.commercialEntityId=new r.LongBits(c.commercialEntityId.low>>>0,c.commercialEntityId.high>>>0).toNumber())),e},d.toObject=function(c,e){e||(e={});let l={};if(e.defaults){if(r.Long){let t=new r.Long(0,0,!1);l.commercialEntityType=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.commercialEntityType=e.longs===String?"0":0;if(r.Long){let t=new r.Long(0,0,!1);l.commercialEntityId=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.commercialEntityId=e.longs===String?"0":0}return c.commercialEntityType!=null&&c.hasOwnProperty("commercialEntityType")&&(typeof c.commercialEntityType=="number"?l.commercialEntityType=e.longs===String?String(c.commercialEntityType):c.commercialEntityType:l.commercialEntityType=e.longs===String?r.Long.prototype.toString.call(c.commercialEntityType):e.longs===Number?new r.LongBits(c.commercialEntityType.low>>>0,c.commercialEntityType.high>>>0).toNumber():c.commercialEntityType),c.commercialEntityId!=null&&c.hasOwnProperty("commercialEntityId")&&(typeof c.commercialEntityId=="number"?l.commercialEntityId=e.longs===String?String(c.commercialEntityId):c.commercialEntityId:l.commercialEntityId=e.longs===String?r.Long.prototype.toString.call(c.commercialEntityId):e.longs===Number?new r.LongBits(c.commercialEntityId.low>>>0,c.commercialEntityId.high>>>0).toNumber():c.commercialEntityId),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/dynamic.CreateCommercialCard"},d}(),O.CreateGoodsCard=function(){function d(p){if(this.itemId=[],this.goodsCardItems=[],p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.itemId&&t.itemId.length||(t.itemId=[]),t.itemId.push(c.string());break}case 2:{t.goodsCardItems&&t.goodsCardItems.length||(t.goodsCardItems=[]),t.goodsCardItems.push(u.dynamic.CreateGoodsCardItem.decode(c,c.uint32()));break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.dynamic.CreateGoodsCard)return c;let e=new u.dynamic.CreateGoodsCard;if(c.itemId){if(!Array.isArray(c.itemId))throw TypeError(".dynamic.CreateGoodsCard.itemId: array expected");e.itemId=[];for(let l=0;l>>3){case 1:{t.itemId=c.string();break}case 2:{t.actId=c.int64();break}case 3:{t.actMid=c.int64();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.dynamic.CreateGoodsCardItem)return c;let e=new u.dynamic.CreateGoodsCardItem;return c.itemId!=null&&(e.itemId=String(c.itemId)),c.actId!=null&&(r.Long?(e.actId=r.Long.fromValue(c.actId)).unsigned=!1:typeof c.actId=="string"?e.actId=parseInt(c.actId,10):typeof c.actId=="number"?e.actId=c.actId:typeof c.actId=="object"&&(e.actId=new r.LongBits(c.actId.low>>>0,c.actId.high>>>0).toNumber())),c.actMid!=null&&(r.Long?(e.actMid=r.Long.fromValue(c.actMid)).unsigned=!1:typeof c.actMid=="string"?e.actMid=parseInt(c.actMid,10):typeof c.actMid=="number"?e.actMid=c.actMid:typeof c.actMid=="object"&&(e.actMid=new r.LongBits(c.actMid.low>>>0,c.actMid.high>>>0).toNumber())),e},d.toObject=function(c,e){e||(e={});let l={};if(e.defaults){if(l.itemId="",r.Long){let t=new r.Long(0,0,!1);l.actId=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.actId=e.longs===String?"0":0;if(r.Long){let t=new r.Long(0,0,!1);l.actMid=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.actMid=e.longs===String?"0":0}return c.itemId!=null&&c.hasOwnProperty("itemId")&&(l.itemId=c.itemId),c.actId!=null&&c.hasOwnProperty("actId")&&(typeof c.actId=="number"?l.actId=e.longs===String?String(c.actId):c.actId:l.actId=e.longs===String?r.Long.prototype.toString.call(c.actId):e.longs===Number?new r.LongBits(c.actId.low>>>0,c.actId.high>>>0).toNumber():c.actId),c.actMid!=null&&c.hasOwnProperty("actMid")&&(typeof c.actMid=="number"?l.actMid=e.longs===String?String(c.actMid):c.actMid:l.actMid=e.longs===String?r.Long.prototype.toString.call(c.actMid):e.longs===Number?new r.LongBits(c.actMid.low>>>0,c.actMid.high>>>0).toNumber():c.actMid),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/dynamic.CreateGoodsCardItem"},d}(),O.ReserveSource=function(){let d={},p=Object.create(d);return p[d[0]="RESERVE_SOURCE_NEW"]=0,p[d[1]="RESERVE_SOURCE_ASSOCIATED"]=1,p}(),O.CreateCommonAttachCard=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.type=c.int32();break}case 2:{t.bizId=c.int64();break}case 3:{t.reserveSource=c.int32();break}case 4:{t.reserveLottery=c.int32();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.dynamic.CreateCommonAttachCard)return c;let e=new u.dynamic.CreateCommonAttachCard;switch(c.type){default:if(typeof c.type=="number"){e.type=c.type;break}break;case"ATTACH_CARD_NONE":case 0:e.type=0;break;case"ATTACH_CARD_GOODS":case 1:e.type=1;break;case"ATTACH_CARD_VOTE":case 2:e.type=2;break;case"ATTACH_CARD_UGC":case 3:e.type=3;break;case"ATTACH_CARD_ACTIVITY":case 4:e.type=4;break;case"ATTACH_CARD_OFFICIAL_ACTIVITY":case 5:e.type=5;break;case"ATTACH_CARD_TOPIC":case 6:e.type=6;break;case"ATTACH_CARD_OGV":case 7:e.type=7;break;case"ATTACH_CARD_AUTO_OGV":case 8:e.type=8;break;case"ATTACH_CARD_GAME":case 9:e.type=9;break;case"ATTACH_CARD_MANGA":case 10:e.type=10;break;case"ATTACH_CARD_DECORATION":case 11:e.type=11;break;case"ATTACH_CARD_MATCH":case 12:e.type=12;break;case"ATTACH_CARD_PUGV":case 13:e.type=13;break;case"ATTACH_CARD_RESERVE":case 14:e.type=14;break;case"ATTACH_CARD_UP_TOPIC":case 15:e.type=15;break;case"ATTACH_CARD_UP_ACTIVITY":case 16:e.type=16;break;case"ATTACH_CARD_UP_MAOER":case 17:e.type=17;break;case"ATTACH_CARD_MEMBER_GOODS":case 18:e.type=18;break;case"ATTACH_CARD_MAN_TIAN_XING":case 19:e.type=19;break;case"ATTACH_CARD_LOTTERY":case 20:e.type=20;break}switch(c.bizId!=null&&(r.Long?(e.bizId=r.Long.fromValue(c.bizId)).unsigned=!1:typeof c.bizId=="string"?e.bizId=parseInt(c.bizId,10):typeof c.bizId=="number"?e.bizId=c.bizId:typeof c.bizId=="object"&&(e.bizId=new r.LongBits(c.bizId.low>>>0,c.bizId.high>>>0).toNumber())),c.reserveSource){default:if(typeof c.reserveSource=="number"){e.reserveSource=c.reserveSource;break}break;case"RESERVE_SOURCE_NEW":case 0:e.reserveSource=0;break;case"RESERVE_SOURCE_ASSOCIATED":case 1:e.reserveSource=1;break}return c.reserveLottery!=null&&(e.reserveLottery=c.reserveLottery|0),e},d.toObject=function(c,e){e||(e={});let l={};if(e.defaults){if(l.type=e.enums===String?"ATTACH_CARD_NONE":0,r.Long){let t=new r.Long(0,0,!1);l.bizId=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.bizId=e.longs===String?"0":0;l.reserveSource=e.enums===String?"RESERVE_SOURCE_NEW":0,l.reserveLottery=0}return c.type!=null&&c.hasOwnProperty("type")&&(l.type=e.enums===String?u.dynamic.AttachCardType[c.type]===void 0?c.type:u.dynamic.AttachCardType[c.type]:c.type),c.bizId!=null&&c.hasOwnProperty("bizId")&&(typeof c.bizId=="number"?l.bizId=e.longs===String?String(c.bizId):c.bizId:l.bizId=e.longs===String?r.Long.prototype.toString.call(c.bizId):e.longs===Number?new r.LongBits(c.bizId.low>>>0,c.bizId.high>>>0).toNumber():c.bizId),c.reserveSource!=null&&c.hasOwnProperty("reserveSource")&&(l.reserveSource=e.enums===String?u.dynamic.ReserveSource[c.reserveSource]===void 0?c.reserveSource:u.dynamic.ReserveSource[c.reserveSource]:c.reserveSource),c.reserveLottery!=null&&c.hasOwnProperty("reserveLottery")&&(l.reserveLottery=c.reserveLottery),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/dynamic.CreateCommonAttachCard"},d}(),O.VideoShareInfo=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.cid=c.int64();break}case 2:{t.part=c.int32();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.dynamic.VideoShareInfo)return c;let e=new u.dynamic.VideoShareInfo;return c.cid!=null&&(r.Long?(e.cid=r.Long.fromValue(c.cid)).unsigned=!1:typeof c.cid=="string"?e.cid=parseInt(c.cid,10):typeof c.cid=="number"?e.cid=c.cid:typeof c.cid=="object"&&(e.cid=new r.LongBits(c.cid.low>>>0,c.cid.high>>>0).toNumber())),c.part!=null&&(e.part=c.part|0),e},d.toObject=function(c,e){e||(e={});let l={};if(e.defaults){if(r.Long){let t=new r.Long(0,0,!1);l.cid=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.cid=e.longs===String?"0":0;l.part=0}return c.cid!=null&&c.hasOwnProperty("cid")&&(typeof c.cid=="number"?l.cid=e.longs===String?String(c.cid):c.cid:l.cid=e.longs===String?r.Long.prototype.toString.call(c.cid):e.longs===Number?new r.LongBits(c.cid.low>>>0,c.cid.high>>>0).toNumber():c.cid),c.part!=null&&c.hasOwnProperty("part")&&(l.part=c.part),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/dynamic.VideoShareInfo"},d}(),O.CreateActivity=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.activityId=c.int64();break}case 2:{t.activityState=c.int32();break}case 3:{t.isNewActivity=c.int32();break}case 4:{t.action=c.int32();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.dynamic.CreateActivity)return c;let e=new u.dynamic.CreateActivity;return c.activityId!=null&&(r.Long?(e.activityId=r.Long.fromValue(c.activityId)).unsigned=!1:typeof c.activityId=="string"?e.activityId=parseInt(c.activityId,10):typeof c.activityId=="number"?e.activityId=c.activityId:typeof c.activityId=="object"&&(e.activityId=new r.LongBits(c.activityId.low>>>0,c.activityId.high>>>0).toNumber())),c.activityState!=null&&(e.activityState=c.activityState|0),c.isNewActivity!=null&&(e.isNewActivity=c.isNewActivity|0),c.action!=null&&(e.action=c.action|0),e},d.toObject=function(c,e){e||(e={});let l={};if(e.defaults){if(r.Long){let t=new r.Long(0,0,!1);l.activityId=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.activityId=e.longs===String?"0":0;l.activityState=0,l.isNewActivity=0,l.action=0}return c.activityId!=null&&c.hasOwnProperty("activityId")&&(typeof c.activityId=="number"?l.activityId=e.longs===String?String(c.activityId):c.activityId:l.activityId=e.longs===String?r.Long.prototype.toString.call(c.activityId):e.longs===Number?new r.LongBits(c.activityId.low>>>0,c.activityId.high>>>0).toNumber():c.activityId),c.activityState!=null&&c.hasOwnProperty("activityState")&&(l.activityState=c.activityState),c.isNewActivity!=null&&c.hasOwnProperty("isNewActivity")&&(l.isNewActivity=c.isNewActivity),c.action!=null&&c.hasOwnProperty("action")&&(l.action=c.action),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/dynamic.CreateActivity"},d}(),O.CreateOption=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.upChooseComment=c.int32();break}case 2:{t.closeComment=c.int32();break}case 3:{t.foldExclude=c.int32();break}case 4:{t.auditLevel=c.int32();break}case 5:{t.syncToComment=c.int32();break}case 6:{t.videoShareInfo=u.dynamic.VideoShareInfo.decode(c,c.uint32());break}case 7:{t.activity=u.dynamic.CreateActivity.decode(c,c.uint32());break}case 10:{t.picMode=c.int32();break}case 11:{t.onlyFans=c.int64();break}case 12:{t.limitPegasus=c.int32();break}case 13:{t.limitSearch=c.int32();break}case 14:{t.timerPubTime=c.int64();break}case 15:{t.onlyFansDnd=c.int64();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.dynamic.CreateOption)return c;let e=new u.dynamic.CreateOption;if(c.upChooseComment!=null&&(e.upChooseComment=c.upChooseComment|0),c.closeComment!=null&&(e.closeComment=c.closeComment|0),c.foldExclude!=null&&(e.foldExclude=c.foldExclude|0),c.auditLevel!=null&&(e.auditLevel=c.auditLevel|0),c.syncToComment!=null&&(e.syncToComment=c.syncToComment|0),c.videoShareInfo!=null){if(typeof c.videoShareInfo!="object")throw TypeError(".dynamic.CreateOption.videoShareInfo: object expected");e.videoShareInfo=u.dynamic.VideoShareInfo.fromObject(c.videoShareInfo)}if(c.activity!=null){if(typeof c.activity!="object")throw TypeError(".dynamic.CreateOption.activity: object expected");e.activity=u.dynamic.CreateActivity.fromObject(c.activity)}return c.picMode!=null&&(e.picMode=c.picMode|0),c.onlyFans!=null&&(r.Long?(e.onlyFans=r.Long.fromValue(c.onlyFans)).unsigned=!1:typeof c.onlyFans=="string"?e.onlyFans=parseInt(c.onlyFans,10):typeof c.onlyFans=="number"?e.onlyFans=c.onlyFans:typeof c.onlyFans=="object"&&(e.onlyFans=new r.LongBits(c.onlyFans.low>>>0,c.onlyFans.high>>>0).toNumber())),c.limitPegasus!=null&&(e.limitPegasus=c.limitPegasus|0),c.limitSearch!=null&&(e.limitSearch=c.limitSearch|0),c.timerPubTime!=null&&(r.Long?(e.timerPubTime=r.Long.fromValue(c.timerPubTime)).unsigned=!1:typeof c.timerPubTime=="string"?e.timerPubTime=parseInt(c.timerPubTime,10):typeof c.timerPubTime=="number"?e.timerPubTime=c.timerPubTime:typeof c.timerPubTime=="object"&&(e.timerPubTime=new r.LongBits(c.timerPubTime.low>>>0,c.timerPubTime.high>>>0).toNumber())),c.onlyFansDnd!=null&&(r.Long?(e.onlyFansDnd=r.Long.fromValue(c.onlyFansDnd)).unsigned=!1:typeof c.onlyFansDnd=="string"?e.onlyFansDnd=parseInt(c.onlyFansDnd,10):typeof c.onlyFansDnd=="number"?e.onlyFansDnd=c.onlyFansDnd:typeof c.onlyFansDnd=="object"&&(e.onlyFansDnd=new r.LongBits(c.onlyFansDnd.low>>>0,c.onlyFansDnd.high>>>0).toNumber())),e},d.toObject=function(c,e){e||(e={});let l={};if(e.defaults){if(l.upChooseComment=0,l.closeComment=0,l.foldExclude=0,l.auditLevel=0,l.syncToComment=0,l.videoShareInfo=null,l.activity=null,l.picMode=0,r.Long){let t=new r.Long(0,0,!1);l.onlyFans=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.onlyFans=e.longs===String?"0":0;if(l.limitPegasus=0,l.limitSearch=0,r.Long){let t=new r.Long(0,0,!1);l.timerPubTime=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.timerPubTime=e.longs===String?"0":0;if(r.Long){let t=new r.Long(0,0,!1);l.onlyFansDnd=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.onlyFansDnd=e.longs===String?"0":0}return c.upChooseComment!=null&&c.hasOwnProperty("upChooseComment")&&(l.upChooseComment=c.upChooseComment),c.closeComment!=null&&c.hasOwnProperty("closeComment")&&(l.closeComment=c.closeComment),c.foldExclude!=null&&c.hasOwnProperty("foldExclude")&&(l.foldExclude=c.foldExclude),c.auditLevel!=null&&c.hasOwnProperty("auditLevel")&&(l.auditLevel=c.auditLevel),c.syncToComment!=null&&c.hasOwnProperty("syncToComment")&&(l.syncToComment=c.syncToComment),c.videoShareInfo!=null&&c.hasOwnProperty("videoShareInfo")&&(l.videoShareInfo=u.dynamic.VideoShareInfo.toObject(c.videoShareInfo,e)),c.activity!=null&&c.hasOwnProperty("activity")&&(l.activity=u.dynamic.CreateActivity.toObject(c.activity,e)),c.picMode!=null&&c.hasOwnProperty("picMode")&&(l.picMode=c.picMode),c.onlyFans!=null&&c.hasOwnProperty("onlyFans")&&(typeof c.onlyFans=="number"?l.onlyFans=e.longs===String?String(c.onlyFans):c.onlyFans:l.onlyFans=e.longs===String?r.Long.prototype.toString.call(c.onlyFans):e.longs===Number?new r.LongBits(c.onlyFans.low>>>0,c.onlyFans.high>>>0).toNumber():c.onlyFans),c.limitPegasus!=null&&c.hasOwnProperty("limitPegasus")&&(l.limitPegasus=c.limitPegasus),c.limitSearch!=null&&c.hasOwnProperty("limitSearch")&&(l.limitSearch=c.limitSearch),c.timerPubTime!=null&&c.hasOwnProperty("timerPubTime")&&(typeof c.timerPubTime=="number"?l.timerPubTime=e.longs===String?String(c.timerPubTime):c.timerPubTime:l.timerPubTime=e.longs===String?r.Long.prototype.toString.call(c.timerPubTime):e.longs===Number?new r.LongBits(c.timerPubTime.low>>>0,c.timerPubTime.high>>>0).toNumber():c.timerPubTime),c.onlyFansDnd!=null&&c.hasOwnProperty("onlyFansDnd")&&(typeof c.onlyFansDnd=="number"?l.onlyFansDnd=e.longs===String?String(c.onlyFansDnd):c.onlyFansDnd:l.onlyFansDnd=e.longs===String?r.Long.prototype.toString.call(c.onlyFansDnd):e.longs===Number?new r.LongBits(c.onlyFansDnd.low>>>0,c.onlyFansDnd.high>>>0).toNumber():c.onlyFansDnd),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/dynamic.CreateOption"},d}(),O.CreateTopic=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.id=c.int64();break}case 2:{t.name=c.string();break}case 3:{t.fromSource=c.string();break}case 4:{t.fromTopicId=c.int64();break}case 5:{t.superTopicId=c.int64();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.dynamic.CreateTopic)return c;let e=new u.dynamic.CreateTopic;return c.id!=null&&(r.Long?(e.id=r.Long.fromValue(c.id)).unsigned=!1:typeof c.id=="string"?e.id=parseInt(c.id,10):typeof c.id=="number"?e.id=c.id:typeof c.id=="object"&&(e.id=new r.LongBits(c.id.low>>>0,c.id.high>>>0).toNumber())),c.name!=null&&(e.name=String(c.name)),c.fromSource!=null&&(e.fromSource=String(c.fromSource)),c.fromTopicId!=null&&(r.Long?(e.fromTopicId=r.Long.fromValue(c.fromTopicId)).unsigned=!1:typeof c.fromTopicId=="string"?e.fromTopicId=parseInt(c.fromTopicId,10):typeof c.fromTopicId=="number"?e.fromTopicId=c.fromTopicId:typeof c.fromTopicId=="object"&&(e.fromTopicId=new r.LongBits(c.fromTopicId.low>>>0,c.fromTopicId.high>>>0).toNumber())),c.superTopicId!=null&&(r.Long?(e.superTopicId=r.Long.fromValue(c.superTopicId)).unsigned=!1:typeof c.superTopicId=="string"?e.superTopicId=parseInt(c.superTopicId,10):typeof c.superTopicId=="number"?e.superTopicId=c.superTopicId:typeof c.superTopicId=="object"&&(e.superTopicId=new r.LongBits(c.superTopicId.low>>>0,c.superTopicId.high>>>0).toNumber())),e},d.toObject=function(c,e){e||(e={});let l={};if(e.defaults){if(r.Long){let t=new r.Long(0,0,!1);l.id=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.id=e.longs===String?"0":0;if(l.name="",l.fromSource="",r.Long){let t=new r.Long(0,0,!1);l.fromTopicId=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.fromTopicId=e.longs===String?"0":0;if(r.Long){let t=new r.Long(0,0,!1);l.superTopicId=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.superTopicId=e.longs===String?"0":0}return c.id!=null&&c.hasOwnProperty("id")&&(typeof c.id=="number"?l.id=e.longs===String?String(c.id):c.id:l.id=e.longs===String?r.Long.prototype.toString.call(c.id):e.longs===Number?new r.LongBits(c.id.low>>>0,c.id.high>>>0).toNumber():c.id),c.name!=null&&c.hasOwnProperty("name")&&(l.name=c.name),c.fromSource!=null&&c.hasOwnProperty("fromSource")&&(l.fromSource=c.fromSource),c.fromTopicId!=null&&c.hasOwnProperty("fromTopicId")&&(typeof c.fromTopicId=="number"?l.fromTopicId=e.longs===String?String(c.fromTopicId):c.fromTopicId:l.fromTopicId=e.longs===String?r.Long.prototype.toString.call(c.fromTopicId):e.longs===Number?new r.LongBits(c.fromTopicId.low>>>0,c.fromTopicId.high>>>0).toNumber():c.fromTopicId),c.superTopicId!=null&&c.hasOwnProperty("superTopicId")&&(typeof c.superTopicId=="number"?l.superTopicId=e.longs===String?String(c.superTopicId):c.superTopicId:l.superTopicId=e.longs===String?r.Long.prototype.toString.call(c.superTopicId):e.longs===Number?new r.LongBits(c.superTopicId.low>>>0,c.superTopicId.high>>>0).toNumber():c.superTopicId),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/dynamic.CreateTopic"},d}(),O.CreatePicTag=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.itemId=c.int64();break}case 2:{t.tid=c.int64();break}case 3:{t.mid=c.int64();break}case 4:{t.text=c.string();break}case 5:{t.textString=c.string();break}case 6:{t.type=c.int64();break}case 7:{t.sourceType=c.int64();break}case 8:{t.url=c.string();break}case 9:{t.schemaUrl=c.string();break}case 10:{t.jumpUrl=c.string();break}case 11:{t.orientation=c.int64();break}case 12:{t.x=c.int64();break}case 13:{t.y=c.int64();break}case 14:{t.poi=c.string();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.dynamic.CreatePicTag)return c;let e=new u.dynamic.CreatePicTag;return c.itemId!=null&&(r.Long?(e.itemId=r.Long.fromValue(c.itemId)).unsigned=!1:typeof c.itemId=="string"?e.itemId=parseInt(c.itemId,10):typeof c.itemId=="number"?e.itemId=c.itemId:typeof c.itemId=="object"&&(e.itemId=new r.LongBits(c.itemId.low>>>0,c.itemId.high>>>0).toNumber())),c.tid!=null&&(r.Long?(e.tid=r.Long.fromValue(c.tid)).unsigned=!1:typeof c.tid=="string"?e.tid=parseInt(c.tid,10):typeof c.tid=="number"?e.tid=c.tid:typeof c.tid=="object"&&(e.tid=new r.LongBits(c.tid.low>>>0,c.tid.high>>>0).toNumber())),c.mid!=null&&(r.Long?(e.mid=r.Long.fromValue(c.mid)).unsigned=!1:typeof c.mid=="string"?e.mid=parseInt(c.mid,10):typeof c.mid=="number"?e.mid=c.mid:typeof c.mid=="object"&&(e.mid=new r.LongBits(c.mid.low>>>0,c.mid.high>>>0).toNumber())),c.text!=null&&(e.text=String(c.text)),c.textString!=null&&(e.textString=String(c.textString)),c.type!=null&&(r.Long?(e.type=r.Long.fromValue(c.type)).unsigned=!1:typeof c.type=="string"?e.type=parseInt(c.type,10):typeof c.type=="number"?e.type=c.type:typeof c.type=="object"&&(e.type=new r.LongBits(c.type.low>>>0,c.type.high>>>0).toNumber())),c.sourceType!=null&&(r.Long?(e.sourceType=r.Long.fromValue(c.sourceType)).unsigned=!1:typeof c.sourceType=="string"?e.sourceType=parseInt(c.sourceType,10):typeof c.sourceType=="number"?e.sourceType=c.sourceType:typeof c.sourceType=="object"&&(e.sourceType=new r.LongBits(c.sourceType.low>>>0,c.sourceType.high>>>0).toNumber())),c.url!=null&&(e.url=String(c.url)),c.schemaUrl!=null&&(e.schemaUrl=String(c.schemaUrl)),c.jumpUrl!=null&&(e.jumpUrl=String(c.jumpUrl)),c.orientation!=null&&(r.Long?(e.orientation=r.Long.fromValue(c.orientation)).unsigned=!1:typeof c.orientation=="string"?e.orientation=parseInt(c.orientation,10):typeof c.orientation=="number"?e.orientation=c.orientation:typeof c.orientation=="object"&&(e.orientation=new r.LongBits(c.orientation.low>>>0,c.orientation.high>>>0).toNumber())),c.x!=null&&(r.Long?(e.x=r.Long.fromValue(c.x)).unsigned=!1:typeof c.x=="string"?e.x=parseInt(c.x,10):typeof c.x=="number"?e.x=c.x:typeof c.x=="object"&&(e.x=new r.LongBits(c.x.low>>>0,c.x.high>>>0).toNumber())),c.y!=null&&(r.Long?(e.y=r.Long.fromValue(c.y)).unsigned=!1:typeof c.y=="string"?e.y=parseInt(c.y,10):typeof c.y=="number"?e.y=c.y:typeof c.y=="object"&&(e.y=new r.LongBits(c.y.low>>>0,c.y.high>>>0).toNumber())),c.poi!=null&&(e.poi=String(c.poi)),e},d.toObject=function(c,e){e||(e={});let l={};if(e.defaults){if(r.Long){let t=new r.Long(0,0,!1);l.itemId=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.itemId=e.longs===String?"0":0;if(r.Long){let t=new r.Long(0,0,!1);l.tid=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.tid=e.longs===String?"0":0;if(r.Long){let t=new r.Long(0,0,!1);l.mid=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.mid=e.longs===String?"0":0;if(l.text="",l.textString="",r.Long){let t=new r.Long(0,0,!1);l.type=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.type=e.longs===String?"0":0;if(r.Long){let t=new r.Long(0,0,!1);l.sourceType=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.sourceType=e.longs===String?"0":0;if(l.url="",l.schemaUrl="",l.jumpUrl="",r.Long){let t=new r.Long(0,0,!1);l.orientation=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.orientation=e.longs===String?"0":0;if(r.Long){let t=new r.Long(0,0,!1);l.x=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.x=e.longs===String?"0":0;if(r.Long){let t=new r.Long(0,0,!1);l.y=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.y=e.longs===String?"0":0;l.poi=""}return c.itemId!=null&&c.hasOwnProperty("itemId")&&(typeof c.itemId=="number"?l.itemId=e.longs===String?String(c.itemId):c.itemId:l.itemId=e.longs===String?r.Long.prototype.toString.call(c.itemId):e.longs===Number?new r.LongBits(c.itemId.low>>>0,c.itemId.high>>>0).toNumber():c.itemId),c.tid!=null&&c.hasOwnProperty("tid")&&(typeof c.tid=="number"?l.tid=e.longs===String?String(c.tid):c.tid:l.tid=e.longs===String?r.Long.prototype.toString.call(c.tid):e.longs===Number?new r.LongBits(c.tid.low>>>0,c.tid.high>>>0).toNumber():c.tid),c.mid!=null&&c.hasOwnProperty("mid")&&(typeof c.mid=="number"?l.mid=e.longs===String?String(c.mid):c.mid:l.mid=e.longs===String?r.Long.prototype.toString.call(c.mid):e.longs===Number?new r.LongBits(c.mid.low>>>0,c.mid.high>>>0).toNumber():c.mid),c.text!=null&&c.hasOwnProperty("text")&&(l.text=c.text),c.textString!=null&&c.hasOwnProperty("textString")&&(l.textString=c.textString),c.type!=null&&c.hasOwnProperty("type")&&(typeof c.type=="number"?l.type=e.longs===String?String(c.type):c.type:l.type=e.longs===String?r.Long.prototype.toString.call(c.type):e.longs===Number?new r.LongBits(c.type.low>>>0,c.type.high>>>0).toNumber():c.type),c.sourceType!=null&&c.hasOwnProperty("sourceType")&&(typeof c.sourceType=="number"?l.sourceType=e.longs===String?String(c.sourceType):c.sourceType:l.sourceType=e.longs===String?r.Long.prototype.toString.call(c.sourceType):e.longs===Number?new r.LongBits(c.sourceType.low>>>0,c.sourceType.high>>>0).toNumber():c.sourceType),c.url!=null&&c.hasOwnProperty("url")&&(l.url=c.url),c.schemaUrl!=null&&c.hasOwnProperty("schemaUrl")&&(l.schemaUrl=c.schemaUrl),c.jumpUrl!=null&&c.hasOwnProperty("jumpUrl")&&(l.jumpUrl=c.jumpUrl),c.orientation!=null&&c.hasOwnProperty("orientation")&&(typeof c.orientation=="number"?l.orientation=e.longs===String?String(c.orientation):c.orientation:l.orientation=e.longs===String?r.Long.prototype.toString.call(c.orientation):e.longs===Number?new r.LongBits(c.orientation.low>>>0,c.orientation.high>>>0).toNumber():c.orientation),c.x!=null&&c.hasOwnProperty("x")&&(typeof c.x=="number"?l.x=e.longs===String?String(c.x):c.x:l.x=e.longs===String?r.Long.prototype.toString.call(c.x):e.longs===Number?new r.LongBits(c.x.low>>>0,c.x.high>>>0).toNumber():c.x),c.y!=null&&c.hasOwnProperty("y")&&(typeof c.y=="number"?l.y=e.longs===String?String(c.y):c.y:l.y=e.longs===String?r.Long.prototype.toString.call(c.y):e.longs===Number?new r.LongBits(c.y.low>>>0,c.y.high>>>0).toNumber():c.y),c.poi!=null&&c.hasOwnProperty("poi")&&(l.poi=c.poi),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/dynamic.CreatePicTag"},d}(),O.CreatePic=function(){function d(p){if(this.imgTags=[],p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.imgSrc=c.string();break}case 2:{t.imgWidth=c.double();break}case 3:{t.imgHeight=c.double();break}case 4:{t.imgSize=c.double();break}case 5:{t.imgTags&&t.imgTags.length||(t.imgTags=[]),t.imgTags.push(u.dynamic.CreatePicTag.decode(c,c.uint32()));break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.dynamic.CreatePic)return c;let e=new u.dynamic.CreatePic;if(c.imgSrc!=null&&(e.imgSrc=String(c.imgSrc)),c.imgWidth!=null&&(e.imgWidth=Number(c.imgWidth)),c.imgHeight!=null&&(e.imgHeight=Number(c.imgHeight)),c.imgSize!=null&&(e.imgSize=Number(c.imgSize)),c.imgTags){if(!Array.isArray(c.imgTags))throw TypeError(".dynamic.CreatePic.imgTags: array expected");e.imgTags=[];for(let l=0;l>>3){case 1:{t.cid=c.int64();break}case 2:{t.upfrom=c.int32();break}case 3:{t.filters=c.string();break}case 4:{t.fonts=c.string();break}case 5:{t.subtitles=c.string();break}case 6:{t.bgms=c.string();break}case 7:{t.stickers=c.string();break}case 8:{t.videoupStickers=c.string();break}case 9:{t.trans=c.string();break}case 10:{t.makeups=c.string();break}case 11:{t.surgerys=c.string();break}case 12:{t.videofxs=c.string();break}case 13:{t.themes=c.string();break}case 14:{t.cooperates=c.string();break}case 15:{t.rhythms=c.string();break}case 16:{t.effects=c.string();break}case 17:{t.backgrounds=c.string();break}case 18:{t.videos=c.string();break}case 19:{t.sounds=c.string();break}case 20:{t.flowers=c.string();break}case 21:{t.coverTemplates=c.string();break}case 22:{t.tts=c.string();break}case 23:{t.openings=c.string();break}case 24:{t.recordText=c.bool();break}case 25:{t.vupers=c.string();break}case 26:{t.features=c.string();break}case 27:{t.bcutFeatures=c.string();break}case 28:{t.audioRecord=c.int32();break}case 29:{t.camera=c.int32();break}case 30:{t.speed=c.int32();break}case 31:{t.cameraRotate=c.int32();break}case 32:{t.screenRecord=c.int32();break}case 33:{t.defaultEnd=c.int32();break}case 34:{t.duration=c.int32();break}case 35:{t.picCount=c.uint32();break}case 36:{t.videoCount=c.uint32();break}case 37:{t.shotDuration=c.int32();break}case 38:{t.shotGame=c.string();break}case 39:{t.highlight=c.bool();break}case 40:{t.highlightCnt=c.int32();break}case 41:{t.pipCount=c.int32();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.dynamic.DynVideoEditor)return c;let e=new u.dynamic.DynVideoEditor;return c.cid!=null&&(r.Long?(e.cid=r.Long.fromValue(c.cid)).unsigned=!1:typeof c.cid=="string"?e.cid=parseInt(c.cid,10):typeof c.cid=="number"?e.cid=c.cid:typeof c.cid=="object"&&(e.cid=new r.LongBits(c.cid.low>>>0,c.cid.high>>>0).toNumber())),c.upfrom!=null&&(e.upfrom=c.upfrom|0),c.filters!=null&&(e.filters=String(c.filters)),c.fonts!=null&&(e.fonts=String(c.fonts)),c.subtitles!=null&&(e.subtitles=String(c.subtitles)),c.bgms!=null&&(e.bgms=String(c.bgms)),c.stickers!=null&&(e.stickers=String(c.stickers)),c.videoupStickers!=null&&(e.videoupStickers=String(c.videoupStickers)),c.trans!=null&&(e.trans=String(c.trans)),c.makeups!=null&&(e.makeups=String(c.makeups)),c.surgerys!=null&&(e.surgerys=String(c.surgerys)),c.videofxs!=null&&(e.videofxs=String(c.videofxs)),c.themes!=null&&(e.themes=String(c.themes)),c.cooperates!=null&&(e.cooperates=String(c.cooperates)),c.rhythms!=null&&(e.rhythms=String(c.rhythms)),c.effects!=null&&(e.effects=String(c.effects)),c.backgrounds!=null&&(e.backgrounds=String(c.backgrounds)),c.videos!=null&&(e.videos=String(c.videos)),c.sounds!=null&&(e.sounds=String(c.sounds)),c.flowers!=null&&(e.flowers=String(c.flowers)),c.coverTemplates!=null&&(e.coverTemplates=String(c.coverTemplates)),c.tts!=null&&(e.tts=String(c.tts)),c.openings!=null&&(e.openings=String(c.openings)),c.recordText!=null&&(e.recordText=!!c.recordText),c.vupers!=null&&(e.vupers=String(c.vupers)),c.features!=null&&(e.features=String(c.features)),c.bcutFeatures!=null&&(e.bcutFeatures=String(c.bcutFeatures)),c.audioRecord!=null&&(e.audioRecord=c.audioRecord|0),c.camera!=null&&(e.camera=c.camera|0),c.speed!=null&&(e.speed=c.speed|0),c.cameraRotate!=null&&(e.cameraRotate=c.cameraRotate|0),c.screenRecord!=null&&(e.screenRecord=c.screenRecord|0),c.defaultEnd!=null&&(e.defaultEnd=c.defaultEnd|0),c.duration!=null&&(e.duration=c.duration|0),c.picCount!=null&&(e.picCount=c.picCount>>>0),c.videoCount!=null&&(e.videoCount=c.videoCount>>>0),c.shotDuration!=null&&(e.shotDuration=c.shotDuration|0),c.shotGame!=null&&(e.shotGame=String(c.shotGame)),c.highlight!=null&&(e.highlight=!!c.highlight),c.highlightCnt!=null&&(e.highlightCnt=c.highlightCnt|0),c.pipCount!=null&&(e.pipCount=c.pipCount|0),e},d.toObject=function(c,e){e||(e={});let l={};if(e.defaults){if(r.Long){let t=new r.Long(0,0,!1);l.cid=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.cid=e.longs===String?"0":0;l.upfrom=0,l.filters="",l.fonts="",l.subtitles="",l.bgms="",l.stickers="",l.videoupStickers="",l.trans="",l.makeups="",l.surgerys="",l.videofxs="",l.themes="",l.cooperates="",l.rhythms="",l.effects="",l.backgrounds="",l.videos="",l.sounds="",l.flowers="",l.coverTemplates="",l.tts="",l.openings="",l.recordText=!1,l.vupers="",l.features="",l.bcutFeatures="",l.audioRecord=0,l.camera=0,l.speed=0,l.cameraRotate=0,l.screenRecord=0,l.defaultEnd=0,l.duration=0,l.picCount=0,l.videoCount=0,l.shotDuration=0,l.shotGame="",l.highlight=!1,l.highlightCnt=0,l.pipCount=0}return c.cid!=null&&c.hasOwnProperty("cid")&&(typeof c.cid=="number"?l.cid=e.longs===String?String(c.cid):c.cid:l.cid=e.longs===String?r.Long.prototype.toString.call(c.cid):e.longs===Number?new r.LongBits(c.cid.low>>>0,c.cid.high>>>0).toNumber():c.cid),c.upfrom!=null&&c.hasOwnProperty("upfrom")&&(l.upfrom=c.upfrom),c.filters!=null&&c.hasOwnProperty("filters")&&(l.filters=c.filters),c.fonts!=null&&c.hasOwnProperty("fonts")&&(l.fonts=c.fonts),c.subtitles!=null&&c.hasOwnProperty("subtitles")&&(l.subtitles=c.subtitles),c.bgms!=null&&c.hasOwnProperty("bgms")&&(l.bgms=c.bgms),c.stickers!=null&&c.hasOwnProperty("stickers")&&(l.stickers=c.stickers),c.videoupStickers!=null&&c.hasOwnProperty("videoupStickers")&&(l.videoupStickers=c.videoupStickers),c.trans!=null&&c.hasOwnProperty("trans")&&(l.trans=c.trans),c.makeups!=null&&c.hasOwnProperty("makeups")&&(l.makeups=c.makeups),c.surgerys!=null&&c.hasOwnProperty("surgerys")&&(l.surgerys=c.surgerys),c.videofxs!=null&&c.hasOwnProperty("videofxs")&&(l.videofxs=c.videofxs),c.themes!=null&&c.hasOwnProperty("themes")&&(l.themes=c.themes),c.cooperates!=null&&c.hasOwnProperty("cooperates")&&(l.cooperates=c.cooperates),c.rhythms!=null&&c.hasOwnProperty("rhythms")&&(l.rhythms=c.rhythms),c.effects!=null&&c.hasOwnProperty("effects")&&(l.effects=c.effects),c.backgrounds!=null&&c.hasOwnProperty("backgrounds")&&(l.backgrounds=c.backgrounds),c.videos!=null&&c.hasOwnProperty("videos")&&(l.videos=c.videos),c.sounds!=null&&c.hasOwnProperty("sounds")&&(l.sounds=c.sounds),c.flowers!=null&&c.hasOwnProperty("flowers")&&(l.flowers=c.flowers),c.coverTemplates!=null&&c.hasOwnProperty("coverTemplates")&&(l.coverTemplates=c.coverTemplates),c.tts!=null&&c.hasOwnProperty("tts")&&(l.tts=c.tts),c.openings!=null&&c.hasOwnProperty("openings")&&(l.openings=c.openings),c.recordText!=null&&c.hasOwnProperty("recordText")&&(l.recordText=c.recordText),c.vupers!=null&&c.hasOwnProperty("vupers")&&(l.vupers=c.vupers),c.features!=null&&c.hasOwnProperty("features")&&(l.features=c.features),c.bcutFeatures!=null&&c.hasOwnProperty("bcutFeatures")&&(l.bcutFeatures=c.bcutFeatures),c.audioRecord!=null&&c.hasOwnProperty("audioRecord")&&(l.audioRecord=c.audioRecord),c.camera!=null&&c.hasOwnProperty("camera")&&(l.camera=c.camera),c.speed!=null&&c.hasOwnProperty("speed")&&(l.speed=c.speed),c.cameraRotate!=null&&c.hasOwnProperty("cameraRotate")&&(l.cameraRotate=c.cameraRotate),c.screenRecord!=null&&c.hasOwnProperty("screenRecord")&&(l.screenRecord=c.screenRecord),c.defaultEnd!=null&&c.hasOwnProperty("defaultEnd")&&(l.defaultEnd=c.defaultEnd),c.duration!=null&&c.hasOwnProperty("duration")&&(l.duration=c.duration),c.picCount!=null&&c.hasOwnProperty("picCount")&&(l.picCount=c.picCount),c.videoCount!=null&&c.hasOwnProperty("videoCount")&&(l.videoCount=c.videoCount),c.shotDuration!=null&&c.hasOwnProperty("shotDuration")&&(l.shotDuration=c.shotDuration),c.shotGame!=null&&c.hasOwnProperty("shotGame")&&(l.shotGame=c.shotGame),c.highlight!=null&&c.hasOwnProperty("highlight")&&(l.highlight=c.highlight),c.highlightCnt!=null&&c.hasOwnProperty("highlightCnt")&&(l.highlightCnt=c.highlightCnt),c.pipCount!=null&&c.hasOwnProperty("pipCount")&&(l.pipCount=c.pipCount),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/dynamic.DynVideoEditor"},d}(),O.DynVideoMultiP=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.title=c.string();break}case 2:{t.filename=c.string();break}case 3:{t.cid=c.int64();break}case 4:{t.editor=u.dynamic.DynVideoEditor.decode(c,c.uint32());break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.dynamic.DynVideoMultiP)return c;let e=new u.dynamic.DynVideoMultiP;if(c.title!=null&&(e.title=String(c.title)),c.filename!=null&&(e.filename=String(c.filename)),c.cid!=null&&(r.Long?(e.cid=r.Long.fromValue(c.cid)).unsigned=!1:typeof c.cid=="string"?e.cid=parseInt(c.cid,10):typeof c.cid=="number"?e.cid=c.cid:typeof c.cid=="object"&&(e.cid=new r.LongBits(c.cid.low>>>0,c.cid.high>>>0).toNumber())),c.editor!=null){if(typeof c.editor!="object")throw TypeError(".dynamic.DynVideoMultiP.editor: object expected");e.editor=u.dynamic.DynVideoEditor.fromObject(c.editor)}return e},d.toObject=function(c,e){e||(e={});let l={};if(e.defaults){if(l.title="",l.filename="",r.Long){let t=new r.Long(0,0,!1);l.cid=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.cid=e.longs===String?"0":0;l.editor=null}return c.title!=null&&c.hasOwnProperty("title")&&(l.title=c.title),c.filename!=null&&c.hasOwnProperty("filename")&&(l.filename=c.filename),c.cid!=null&&c.hasOwnProperty("cid")&&(typeof c.cid=="number"?l.cid=e.longs===String?String(c.cid):c.cid:l.cid=e.longs===String?r.Long.prototype.toString.call(c.cid):e.longs===Number?new r.LongBits(c.cid.low>>>0,c.cid.high>>>0).toNumber():c.cid),c.editor!=null&&c.hasOwnProperty("editor")&&(l.editor=u.dynamic.DynVideoEditor.toObject(c.editor,e)),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/dynamic.DynVideoMultiP"},d}(),O.DynVideoWatermark=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.state=c.int32();break}case 2:{t.type=c.int32();break}case 3:{t.position=c.int32();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.dynamic.DynVideoWatermark)return c;let e=new u.dynamic.DynVideoWatermark;return c.state!=null&&(e.state=c.state|0),c.type!=null&&(e.type=c.type|0),c.position!=null&&(e.position=c.position|0),e},d.toObject=function(c,e){e||(e={});let l={};return e.defaults&&(l.state=0,l.type=0,l.position=0),c.state!=null&&c.hasOwnProperty("state")&&(l.state=c.state),c.type!=null&&c.hasOwnProperty("type")&&(l.type=c.type),c.position!=null&&c.hasOwnProperty("position")&&(l.position=c.position),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/dynamic.DynVideoWatermark"},d}(),O.DynVideoVote=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.voteId=c.int64();break}case 2:{t.voteTitle=c.string();break}case 3:{t.topForReply=c.int32();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.dynamic.DynVideoVote)return c;let e=new u.dynamic.DynVideoVote;return c.voteId!=null&&(r.Long?(e.voteId=r.Long.fromValue(c.voteId)).unsigned=!1:typeof c.voteId=="string"?e.voteId=parseInt(c.voteId,10):typeof c.voteId=="number"?e.voteId=c.voteId:typeof c.voteId=="object"&&(e.voteId=new r.LongBits(c.voteId.low>>>0,c.voteId.high>>>0).toNumber())),c.voteTitle!=null&&(e.voteTitle=String(c.voteTitle)),c.topForReply!=null&&(e.topForReply=c.topForReply|0),e},d.toObject=function(c,e){e||(e={});let l={};if(e.defaults){if(r.Long){let t=new r.Long(0,0,!1);l.voteId=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.voteId=e.longs===String?"0":0;l.voteTitle="",l.topForReply=0}return c.voteId!=null&&c.hasOwnProperty("voteId")&&(typeof c.voteId=="number"?l.voteId=e.longs===String?String(c.voteId):c.voteId:l.voteId=e.longs===String?r.Long.prototype.toString.call(c.voteId):e.longs===Number?new r.LongBits(c.voteId.low>>>0,c.voteId.high>>>0).toNumber():c.voteId),c.voteTitle!=null&&c.hasOwnProperty("voteTitle")&&(l.voteTitle=c.voteTitle),c.topForReply!=null&&c.hasOwnProperty("topForReply")&&(l.topForReply=c.topForReply),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/dynamic.DynVideoVote"},d}(),O.DynVideoTopic=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.fromSource=c.string();break}case 2:{t.fromTopicId=c.int64();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.dynamic.DynVideoTopic)return c;let e=new u.dynamic.DynVideoTopic;return c.fromSource!=null&&(e.fromSource=String(c.fromSource)),c.fromTopicId!=null&&(r.Long?(e.fromTopicId=r.Long.fromValue(c.fromTopicId)).unsigned=!1:typeof c.fromTopicId=="string"?e.fromTopicId=parseInt(c.fromTopicId,10):typeof c.fromTopicId=="number"?e.fromTopicId=c.fromTopicId:typeof c.fromTopicId=="object"&&(e.fromTopicId=new r.LongBits(c.fromTopicId.low>>>0,c.fromTopicId.high>>>0).toNumber())),e},d.toObject=function(c,e){e||(e={});let l={};if(e.defaults)if(l.fromSource="",r.Long){let t=new r.Long(0,0,!1);l.fromTopicId=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.fromTopicId=e.longs===String?"0":0;return c.fromSource!=null&&c.hasOwnProperty("fromSource")&&(l.fromSource=c.fromSource),c.fromTopicId!=null&&c.hasOwnProperty("fromTopicId")&&(typeof c.fromTopicId=="number"?l.fromTopicId=e.longs===String?String(c.fromTopicId):c.fromTopicId:l.fromTopicId=e.longs===String?r.Long.prototype.toString.call(c.fromTopicId):e.longs===Number?new r.LongBits(c.fromTopicId.low>>>0,c.fromTopicId.high>>>0).toNumber():c.fromTopicId),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/dynamic.DynVideoTopic"},d}(),O.CreateDynVideo=function(){function d(p){if(this.followMids=[],this.videos=[],p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.relationFrom=c.string();break}case 2:{if(t.followMids&&t.followMids.length||(t.followMids=[]),(i&7)===2){let n=c.uint32()+c.pos;for(;c.pos>>0,c.followMids[l].high>>>0).toNumber())}if(c.bizFrom!=null&&(e.bizFrom=c.bizFrom|0),c.copyright!=null&&(e.copyright=c.copyright|0),c.noPublic!=null&&(e.noPublic=c.noPublic|0),c.noReprint!=null&&(e.noReprint=c.noReprint|0),c.source!=null&&(e.source=String(c.source)),c.cover!=null&&(e.cover=String(c.cover)),c.title!=null&&(e.title=String(c.title)),c.tid!=null&&(r.Long?(e.tid=r.Long.fromValue(c.tid)).unsigned=!1:typeof c.tid=="string"?e.tid=parseInt(c.tid,10):typeof c.tid=="number"?e.tid=c.tid:typeof c.tid=="object"&&(e.tid=new r.LongBits(c.tid.low>>>0,c.tid.high>>>0).toNumber())),c.tag!=null&&(e.tag=String(c.tag)),c.desc!=null&&(e.desc=String(c.desc)),c.descFormatId!=null&&(r.Long?(e.descFormatId=r.Long.fromValue(c.descFormatId)).unsigned=!1:typeof c.descFormatId=="string"?e.descFormatId=parseInt(c.descFormatId,10):typeof c.descFormatId=="number"?e.descFormatId=c.descFormatId:typeof c.descFormatId=="object"&&(e.descFormatId=new r.LongBits(c.descFormatId.low>>>0,c.descFormatId.high>>>0).toNumber())),c.openElec!=null&&(e.openElec=c.openElec|0),c.dtime!=null&&(e.dtime=c.dtime|0),c.videos){if(!Array.isArray(c.videos))throw TypeError(".dynamic.CreateDynVideo.videos: array expected");e.videos=[];for(let l=0;l>>0,c.missionId.high>>>0).toNumber())),c.dynamic!=null&&(e.dynamic=String(c.dynamic)),c.dynamicExtension!=null&&(e.dynamicExtension=String(c.dynamicExtension)),c.dynamicCtrl!=null&&(e.dynamicCtrl=String(c.dynamicCtrl)),c.dynamicFrom!=null&&(e.dynamicFrom=String(c.dynamicFrom)),c.lotteryId!=null&&(r.Long?(e.lotteryId=r.Long.fromValue(c.lotteryId)).unsigned=!1:typeof c.lotteryId=="string"?e.lotteryId=parseInt(c.lotteryId,10):typeof c.lotteryId=="number"?e.lotteryId=c.lotteryId:typeof c.lotteryId=="object"&&(e.lotteryId=new r.LongBits(c.lotteryId.low>>>0,c.lotteryId.high>>>0).toNumber())),c.vote!=null){if(typeof c.vote!="object")throw TypeError(".dynamic.CreateDynVideo.vote: object expected");e.vote=u.dynamic.DynVideoVote.fromObject(c.vote)}if(c.upSelectionReply!=null&&(e.upSelectionReply=!!c.upSelectionReply),c.upCloseReply!=null&&(e.upCloseReply=!!c.upCloseReply),c.upCloseDanmu!=null&&(e.upCloseDanmu=!!c.upCloseDanmu),c.upFrom!=null&&(r.Long?(e.upFrom=r.Long.fromValue(c.upFrom)).unsigned=!1:typeof c.upFrom=="string"?e.upFrom=parseInt(c.upFrom,10):typeof c.upFrom=="number"?e.upFrom=c.upFrom:typeof c.upFrom=="object"&&(e.upFrom=new r.LongBits(c.upFrom.low>>>0,c.upFrom.high>>>0).toNumber())),c.duration!=null&&(r.Long?(e.duration=r.Long.fromValue(c.duration)).unsigned=!1:typeof c.duration=="string"?e.duration=parseInt(c.duration,10):typeof c.duration=="number"?e.duration=c.duration:typeof c.duration=="object"&&(e.duration=new r.LongBits(c.duration.low>>>0,c.duration.high>>>0).toNumber())),c.topicId!=null&&(r.Long?(e.topicId=r.Long.fromValue(c.topicId)).unsigned=!1:typeof c.topicId=="string"?e.topicId=parseInt(c.topicId,10):typeof c.topicId=="number"?e.topicId=c.topicId:typeof c.topicId=="object"&&(e.topicId=new r.LongBits(c.topicId.low>>>0,c.topicId.high>>>0).toNumber())),c.uploadId!=null&&(e.uploadId=String(c.uploadId)),c.topicDetail!=null){if(typeof c.topicDetail!="object")throw TypeError(".dynamic.CreateDynVideo.topicDetail: object expected");e.topicDetail=u.dynamic.DynVideoTopic.fromObject(c.topicDetail)}return e},d.toObject=function(c,e){e||(e={});let l={};if((e.arrays||e.defaults)&&(l.followMids=[],l.videos=[]),e.defaults){if(l.relationFrom="",l.bizFrom=0,l.copyright=0,l.noPublic=0,l.noReprint=0,l.source="",l.cover="",l.title="",r.Long){let t=new r.Long(0,0,!1);l.tid=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.tid=e.longs===String?"0":0;if(l.tag="",l.desc="",r.Long){let t=new r.Long(0,0,!1);l.descFormatId=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.descFormatId=e.longs===String?"0":0;if(l.openElec=0,l.dtime=0,l.watermark=null,r.Long){let t=new r.Long(0,0,!1);l.missionId=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.missionId=e.longs===String?"0":0;if(l.dynamic="",l.dynamicExtension="",l.dynamicCtrl="",l.dynamicFrom="",r.Long){let t=new r.Long(0,0,!1);l.lotteryId=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.lotteryId=e.longs===String?"0":0;if(l.vote=null,l.upSelectionReply=!1,l.upCloseReply=!1,l.upCloseDanmu=!1,r.Long){let t=new r.Long(0,0,!1);l.upFrom=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.upFrom=e.longs===String?"0":0;if(r.Long){let t=new r.Long(0,0,!1);l.duration=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.duration=e.longs===String?"0":0;if(r.Long){let t=new r.Long(0,0,!1);l.topicId=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.topicId=e.longs===String?"0":0;l.uploadId="",l.topicDetail=null}if(c.relationFrom!=null&&c.hasOwnProperty("relationFrom")&&(l.relationFrom=c.relationFrom),c.followMids&&c.followMids.length){l.followMids=[];for(let t=0;t>>0,c.followMids[t].high>>>0).toNumber():c.followMids[t]}if(c.bizFrom!=null&&c.hasOwnProperty("bizFrom")&&(l.bizFrom=c.bizFrom),c.copyright!=null&&c.hasOwnProperty("copyright")&&(l.copyright=c.copyright),c.noPublic!=null&&c.hasOwnProperty("noPublic")&&(l.noPublic=c.noPublic),c.noReprint!=null&&c.hasOwnProperty("noReprint")&&(l.noReprint=c.noReprint),c.source!=null&&c.hasOwnProperty("source")&&(l.source=c.source),c.cover!=null&&c.hasOwnProperty("cover")&&(l.cover=c.cover),c.title!=null&&c.hasOwnProperty("title")&&(l.title=c.title),c.tid!=null&&c.hasOwnProperty("tid")&&(typeof c.tid=="number"?l.tid=e.longs===String?String(c.tid):c.tid:l.tid=e.longs===String?r.Long.prototype.toString.call(c.tid):e.longs===Number?new r.LongBits(c.tid.low>>>0,c.tid.high>>>0).toNumber():c.tid),c.tag!=null&&c.hasOwnProperty("tag")&&(l.tag=c.tag),c.desc!=null&&c.hasOwnProperty("desc")&&(l.desc=c.desc),c.descFormatId!=null&&c.hasOwnProperty("descFormatId")&&(typeof c.descFormatId=="number"?l.descFormatId=e.longs===String?String(c.descFormatId):c.descFormatId:l.descFormatId=e.longs===String?r.Long.prototype.toString.call(c.descFormatId):e.longs===Number?new r.LongBits(c.descFormatId.low>>>0,c.descFormatId.high>>>0).toNumber():c.descFormatId),c.openElec!=null&&c.hasOwnProperty("openElec")&&(l.openElec=c.openElec),c.dtime!=null&&c.hasOwnProperty("dtime")&&(l.dtime=c.dtime),c.videos&&c.videos.length){l.videos=[];for(let t=0;t>>0,c.missionId.high>>>0).toNumber():c.missionId),c.dynamic!=null&&c.hasOwnProperty("dynamic")&&(l.dynamic=c.dynamic),c.dynamicExtension!=null&&c.hasOwnProperty("dynamicExtension")&&(l.dynamicExtension=c.dynamicExtension),c.dynamicCtrl!=null&&c.hasOwnProperty("dynamicCtrl")&&(l.dynamicCtrl=c.dynamicCtrl),c.dynamicFrom!=null&&c.hasOwnProperty("dynamicFrom")&&(l.dynamicFrom=c.dynamicFrom),c.lotteryId!=null&&c.hasOwnProperty("lotteryId")&&(typeof c.lotteryId=="number"?l.lotteryId=e.longs===String?String(c.lotteryId):c.lotteryId:l.lotteryId=e.longs===String?r.Long.prototype.toString.call(c.lotteryId):e.longs===Number?new r.LongBits(c.lotteryId.low>>>0,c.lotteryId.high>>>0).toNumber():c.lotteryId),c.vote!=null&&c.hasOwnProperty("vote")&&(l.vote=u.dynamic.DynVideoVote.toObject(c.vote,e)),c.upSelectionReply!=null&&c.hasOwnProperty("upSelectionReply")&&(l.upSelectionReply=c.upSelectionReply),c.upCloseReply!=null&&c.hasOwnProperty("upCloseReply")&&(l.upCloseReply=c.upCloseReply),c.upCloseDanmu!=null&&c.hasOwnProperty("upCloseDanmu")&&(l.upCloseDanmu=c.upCloseDanmu),c.upFrom!=null&&c.hasOwnProperty("upFrom")&&(typeof c.upFrom=="number"?l.upFrom=e.longs===String?String(c.upFrom):c.upFrom:l.upFrom=e.longs===String?r.Long.prototype.toString.call(c.upFrom):e.longs===Number?new r.LongBits(c.upFrom.low>>>0,c.upFrom.high>>>0).toNumber():c.upFrom),c.duration!=null&&c.hasOwnProperty("duration")&&(typeof c.duration=="number"?l.duration=e.longs===String?String(c.duration):c.duration:l.duration=e.longs===String?r.Long.prototype.toString.call(c.duration):e.longs===Number?new r.LongBits(c.duration.low>>>0,c.duration.high>>>0).toNumber():c.duration),c.topicId!=null&&c.hasOwnProperty("topicId")&&(typeof c.topicId=="number"?l.topicId=e.longs===String?String(c.topicId):c.topicId:l.topicId=e.longs===String?r.Long.prototype.toString.call(c.topicId):e.longs===Number?new r.LongBits(c.topicId.low>>>0,c.topicId.high>>>0).toNumber():c.topicId),c.uploadId!=null&&c.hasOwnProperty("uploadId")&&(l.uploadId=c.uploadId),c.topicDetail!=null&&c.hasOwnProperty("topicDetail")&&(l.topicDetail=u.dynamic.DynVideoTopic.toObject(c.topicDetail,e)),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/dynamic.CreateDynVideo"},d}(),O.DynVideoHotAct=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.actId=c.int64();break}case 2:{t.etime=c.int64();break}case 3:{t.id=c.int64();break}case 4:{t.pic=c.string();break}case 5:{t.stime=c.int64();break}case 6:{t.title=c.string();break}case 7:{t.link=c.string();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.dynamic.DynVideoHotAct)return c;let e=new u.dynamic.DynVideoHotAct;return c.actId!=null&&(r.Long?(e.actId=r.Long.fromValue(c.actId)).unsigned=!1:typeof c.actId=="string"?e.actId=parseInt(c.actId,10):typeof c.actId=="number"?e.actId=c.actId:typeof c.actId=="object"&&(e.actId=new r.LongBits(c.actId.low>>>0,c.actId.high>>>0).toNumber())),c.etime!=null&&(r.Long?(e.etime=r.Long.fromValue(c.etime)).unsigned=!1:typeof c.etime=="string"?e.etime=parseInt(c.etime,10):typeof c.etime=="number"?e.etime=c.etime:typeof c.etime=="object"&&(e.etime=new r.LongBits(c.etime.low>>>0,c.etime.high>>>0).toNumber())),c.id!=null&&(r.Long?(e.id=r.Long.fromValue(c.id)).unsigned=!1:typeof c.id=="string"?e.id=parseInt(c.id,10):typeof c.id=="number"?e.id=c.id:typeof c.id=="object"&&(e.id=new r.LongBits(c.id.low>>>0,c.id.high>>>0).toNumber())),c.pic!=null&&(e.pic=String(c.pic)),c.stime!=null&&(r.Long?(e.stime=r.Long.fromValue(c.stime)).unsigned=!1:typeof c.stime=="string"?e.stime=parseInt(c.stime,10):typeof c.stime=="number"?e.stime=c.stime:typeof c.stime=="object"&&(e.stime=new r.LongBits(c.stime.low>>>0,c.stime.high>>>0).toNumber())),c.title!=null&&(e.title=String(c.title)),c.link!=null&&(e.link=String(c.link)),e},d.toObject=function(c,e){e||(e={});let l={};if(e.defaults){if(r.Long){let t=new r.Long(0,0,!1);l.actId=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.actId=e.longs===String?"0":0;if(r.Long){let t=new r.Long(0,0,!1);l.etime=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.etime=e.longs===String?"0":0;if(r.Long){let t=new r.Long(0,0,!1);l.id=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.id=e.longs===String?"0":0;if(l.pic="",r.Long){let t=new r.Long(0,0,!1);l.stime=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.stime=e.longs===String?"0":0;l.title="",l.link=""}return c.actId!=null&&c.hasOwnProperty("actId")&&(typeof c.actId=="number"?l.actId=e.longs===String?String(c.actId):c.actId:l.actId=e.longs===String?r.Long.prototype.toString.call(c.actId):e.longs===Number?new r.LongBits(c.actId.low>>>0,c.actId.high>>>0).toNumber():c.actId),c.etime!=null&&c.hasOwnProperty("etime")&&(typeof c.etime=="number"?l.etime=e.longs===String?String(c.etime):c.etime:l.etime=e.longs===String?r.Long.prototype.toString.call(c.etime):e.longs===Number?new r.LongBits(c.etime.low>>>0,c.etime.high>>>0).toNumber():c.etime),c.id!=null&&c.hasOwnProperty("id")&&(typeof c.id=="number"?l.id=e.longs===String?String(c.id):c.id:l.id=e.longs===String?r.Long.prototype.toString.call(c.id):e.longs===Number?new r.LongBits(c.id.low>>>0,c.id.high>>>0).toNumber():c.id),c.pic!=null&&c.hasOwnProperty("pic")&&(l.pic=c.pic),c.stime!=null&&c.hasOwnProperty("stime")&&(typeof c.stime=="number"?l.stime=e.longs===String?String(c.stime):c.stime:l.stime=e.longs===String?r.Long.prototype.toString.call(c.stime):e.longs===Number?new r.LongBits(c.stime.low>>>0,c.stime.high>>>0).toNumber():c.stime),c.title!=null&&c.hasOwnProperty("title")&&(l.title=c.title),c.link!=null&&c.hasOwnProperty("link")&&(l.link=c.link),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/dynamic.DynVideoHotAct"},d}(),O.DynVideoSubmitActBanner=function(){function d(p){if(this.list=[],p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.hotactText=c.string();break}case 2:{t.hotactUrl=c.string();break}case 3:{t.list&&t.list.length||(t.list=[]),t.list.push(u.dynamic.DynVideoHotAct.decode(c,c.uint32()));break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.dynamic.DynVideoSubmitActBanner)return c;let e=new u.dynamic.DynVideoSubmitActBanner;if(c.hotactText!=null&&(e.hotactText=String(c.hotactText)),c.hotactUrl!=null&&(e.hotactUrl=String(c.hotactUrl)),c.list){if(!Array.isArray(c.list))throw TypeError(".dynamic.DynVideoSubmitActBanner.list: array expected");e.list=[];for(let l=0;l>>3){case 1:{t.show=c.int32();break}case 2:{t.text=c.string();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.dynamic.DynVideoPushIntro)return c;let e=new u.dynamic.DynVideoPushIntro;return c.show!=null&&(e.show=c.show|0),c.text!=null&&(e.text=String(c.text)),e},d.toObject=function(c,e){e||(e={});let l={};return e.defaults&&(l.show=0,l.text=""),c.show!=null&&c.hasOwnProperty("show")&&(l.show=c.show),c.text!=null&&c.hasOwnProperty("text")&&(l.text=c.text),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/dynamic.DynVideoPushIntro"},d}(),O.CreateDynVideoResult=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.aid=c.int64();break}case 2:{t.message=c.string();break}case 3:{t.submitactBanner=u.dynamic.DynVideoSubmitActBanner.decode(c,c.uint32());break}case 4:{t.pushIntro=u.dynamic.DynVideoPushIntro.decode(c,c.uint32());break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.dynamic.CreateDynVideoResult)return c;let e=new u.dynamic.CreateDynVideoResult;if(c.aid!=null&&(r.Long?(e.aid=r.Long.fromValue(c.aid)).unsigned=!1:typeof c.aid=="string"?e.aid=parseInt(c.aid,10):typeof c.aid=="number"?e.aid=c.aid:typeof c.aid=="object"&&(e.aid=new r.LongBits(c.aid.low>>>0,c.aid.high>>>0).toNumber())),c.message!=null&&(e.message=String(c.message)),c.submitactBanner!=null){if(typeof c.submitactBanner!="object")throw TypeError(".dynamic.CreateDynVideoResult.submitactBanner: object expected");e.submitactBanner=u.dynamic.DynVideoSubmitActBanner.fromObject(c.submitactBanner)}if(c.pushIntro!=null){if(typeof c.pushIntro!="object")throw TypeError(".dynamic.CreateDynVideoResult.pushIntro: object expected");e.pushIntro=u.dynamic.DynVideoPushIntro.fromObject(c.pushIntro)}return e},d.toObject=function(c,e){e||(e={});let l={};if(e.defaults){if(r.Long){let t=new r.Long(0,0,!1);l.aid=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.aid=e.longs===String?"0":0;l.message="",l.submitactBanner=null,l.pushIntro=null}return c.aid!=null&&c.hasOwnProperty("aid")&&(typeof c.aid=="number"?l.aid=e.longs===String?String(c.aid):c.aid:l.aid=e.longs===String?r.Long.prototype.toString.call(c.aid):e.longs===Number?new r.LongBits(c.aid.low>>>0,c.aid.high>>>0).toNumber():c.aid),c.message!=null&&c.hasOwnProperty("message")&&(l.message=c.message),c.submitactBanner!=null&&c.hasOwnProperty("submitactBanner")&&(l.submitactBanner=u.dynamic.DynVideoSubmitActBanner.toObject(c.submitactBanner,e)),c.pushIntro!=null&&c.hasOwnProperty("pushIntro")&&(l.pushIntro=u.dynamic.DynVideoPushIntro.toObject(c.pushIntro,e)),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/dynamic.CreateDynVideoResult"},d}(),O.PublishSetting=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.minWordsToArticle=c.uint32();break}case 2:{t.maxWordsToArticle=c.uint32();break}case 3:{t.uploadSize=c.uint32();break}case 4:{t.maxAtCount=c.uint32();break}case 5:{t.maxDraftCount=c.uint32();break}case 6:{t.titleMaxLen=c.int64();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.dynamic.PublishSetting)return c;let e=new u.dynamic.PublishSetting;return c.minWordsToArticle!=null&&(e.minWordsToArticle=c.minWordsToArticle>>>0),c.maxWordsToArticle!=null&&(e.maxWordsToArticle=c.maxWordsToArticle>>>0),c.uploadSize!=null&&(e.uploadSize=c.uploadSize>>>0),c.maxAtCount!=null&&(e.maxAtCount=c.maxAtCount>>>0),c.maxDraftCount!=null&&(e.maxDraftCount=c.maxDraftCount>>>0),c.titleMaxLen!=null&&(r.Long?(e.titleMaxLen=r.Long.fromValue(c.titleMaxLen)).unsigned=!1:typeof c.titleMaxLen=="string"?e.titleMaxLen=parseInt(c.titleMaxLen,10):typeof c.titleMaxLen=="number"?e.titleMaxLen=c.titleMaxLen:typeof c.titleMaxLen=="object"&&(e.titleMaxLen=new r.LongBits(c.titleMaxLen.low>>>0,c.titleMaxLen.high>>>0).toNumber())),e},d.toObject=function(c,e){e||(e={});let l={};if(e.defaults)if(l.minWordsToArticle=0,l.maxWordsToArticle=0,l.uploadSize=0,l.maxAtCount=0,l.maxDraftCount=0,r.Long){let t=new r.Long(0,0,!1);l.titleMaxLen=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.titleMaxLen=e.longs===String?"0":0;return c.minWordsToArticle!=null&&c.hasOwnProperty("minWordsToArticle")&&(l.minWordsToArticle=c.minWordsToArticle),c.maxWordsToArticle!=null&&c.hasOwnProperty("maxWordsToArticle")&&(l.maxWordsToArticle=c.maxWordsToArticle),c.uploadSize!=null&&c.hasOwnProperty("uploadSize")&&(l.uploadSize=c.uploadSize),c.maxAtCount!=null&&c.hasOwnProperty("maxAtCount")&&(l.maxAtCount=c.maxAtCount),c.maxDraftCount!=null&&c.hasOwnProperty("maxDraftCount")&&(l.maxDraftCount=c.maxDraftCount),c.titleMaxLen!=null&&c.hasOwnProperty("titleMaxLen")&&(typeof c.titleMaxLen=="number"?l.titleMaxLen=e.longs===String?String(c.titleMaxLen):c.titleMaxLen:l.titleMaxLen=e.longs===String?r.Long.prototype.toString.call(c.titleMaxLen):e.longs===Number?new r.LongBits(c.titleMaxLen.low>>>0,c.titleMaxLen.high>>>0).toNumber():c.titleMaxLen),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/dynamic.PublishSetting"},d}(),O.ShareResult=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.shareEnable=c.int64();break}case 2:{t.toast=c.string();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.dynamic.ShareResult)return c;let e=new u.dynamic.ShareResult;return c.shareEnable!=null&&(r.Long?(e.shareEnable=r.Long.fromValue(c.shareEnable)).unsigned=!1:typeof c.shareEnable=="string"?e.shareEnable=parseInt(c.shareEnable,10):typeof c.shareEnable=="number"?e.shareEnable=c.shareEnable:typeof c.shareEnable=="object"&&(e.shareEnable=new r.LongBits(c.shareEnable.low>>>0,c.shareEnable.high>>>0).toNumber())),c.toast!=null&&(e.toast=String(c.toast)),e},d.toObject=function(c,e){e||(e={});let l={};if(e.defaults){if(r.Long){let t=new r.Long(0,0,!1);l.shareEnable=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.shareEnable=e.longs===String?"0":0;l.toast=""}return c.shareEnable!=null&&c.hasOwnProperty("shareEnable")&&(typeof c.shareEnable=="number"?l.shareEnable=e.longs===String?String(c.shareEnable):c.shareEnable:l.shareEnable=e.longs===String?r.Long.prototype.toString.call(c.shareEnable):e.longs===Number?new r.LongBits(c.shareEnable.low>>>0,c.shareEnable.high>>>0).toNumber():c.shareEnable),c.toast!=null&&c.hasOwnProperty("toast")&&(l.toast=c.toast),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/dynamic.ShareResult"},d}(),O.UpPermission=function(){function d(p){if(this.items=[],p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.items&&t.items.length||(t.items=[]),t.items.push(u.dynamic.UpPermissionItem.decode(c,c.uint32()));break}case 2:{t.launchedActivity=u.dynamic.LaunchedActivity.decode(c,c.uint32());break}case 3:{t.shareResult=u.dynamic.ShareResult.decode(c,c.uint32());break}case 4:{t.onlyFansPermission=u.dynamic.OnlyFansPermission.decode(c,c.uint32());break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.dynamic.UpPermission)return c;let e=new u.dynamic.UpPermission;if(c.items){if(!Array.isArray(c.items))throw TypeError(".dynamic.UpPermission.items: array expected");e.items=[];for(let l=0;l>>3){case 1:{t.type=c.int32();break}case 2:{t.permission=c.int32();break}case 3:{t.title=c.string();break}case 4:{t.subtitle=c.string();break}case 5:{t.icon=c.string();break}case 6:{t.jumpUrl=c.string();break}case 7:{t.toast=c.string();break}case 8:{t.hasRedDot=c.int64();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.dynamic.UpPermissionItem)return c;let e=new u.dynamic.UpPermissionItem;switch(c.type){default:if(typeof c.type=="number"){e.type=c.type;break}break;case"UP_PERMISSION_TYPE_NONE":case 0:e.type=0;break;case"UP_PERMISSION_TYPE_LOTTERY":case 1:e.type=1;break;case"UP_PERMISSION_TYPE_CLIP_PUBLISHED":case 2:e.type=2;break;case"UP_PERMISSION_TYPE_UGC_ATTACH_CARD":case 3:e.type=3;break;case"UP_PERMISSION_TYPE_GOODS_ATTACH_CARD":case 4:e.type=4;break;case"UP_PERMISSION_TYPE_CHOOSE_COMMENT":case 5:e.type=5;break;case"UP_PERMISSION_TYPE_CONTROL_COMMENT":case 6:e.type=6;break;case"UP_PERMISSION_TYPE_CONTROL_DANMU":case 7:e.type=7;break;case"UP_PERMISSION_TYPE_VIDEO_RESERVE":case 8:e.type=8;break;case"UP_PERMISSION_TYPE_LIVE_RESERVE":case 9:e.type=9;break;case"UP_PERMISSION_TYPE_BIZ_LINK":case 10:e.type=10;break;case"UP_PERMISSION_TYPE_COMMERCIAL":case 11:e.type=11;break;case"UP_PERMISSION_TYPE_BIG_COVER":case 12:e.type=12;break}return c.permission!=null&&(e.permission=c.permission|0),c.title!=null&&(e.title=String(c.title)),c.subtitle!=null&&(e.subtitle=String(c.subtitle)),c.icon!=null&&(e.icon=String(c.icon)),c.jumpUrl!=null&&(e.jumpUrl=String(c.jumpUrl)),c.toast!=null&&(e.toast=String(c.toast)),c.hasRedDot!=null&&(r.Long?(e.hasRedDot=r.Long.fromValue(c.hasRedDot)).unsigned=!1:typeof c.hasRedDot=="string"?e.hasRedDot=parseInt(c.hasRedDot,10):typeof c.hasRedDot=="number"?e.hasRedDot=c.hasRedDot:typeof c.hasRedDot=="object"&&(e.hasRedDot=new r.LongBits(c.hasRedDot.low>>>0,c.hasRedDot.high>>>0).toNumber())),e},d.toObject=function(c,e){e||(e={});let l={};if(e.defaults)if(l.type=e.enums===String?"UP_PERMISSION_TYPE_NONE":0,l.permission=0,l.title="",l.subtitle="",l.icon="",l.jumpUrl="",l.toast="",r.Long){let t=new r.Long(0,0,!1);l.hasRedDot=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.hasRedDot=e.longs===String?"0":0;return c.type!=null&&c.hasOwnProperty("type")&&(l.type=e.enums===String?u.dynamic.UpPermissionType[c.type]===void 0?c.type:u.dynamic.UpPermissionType[c.type]:c.type),c.permission!=null&&c.hasOwnProperty("permission")&&(l.permission=c.permission),c.title!=null&&c.hasOwnProperty("title")&&(l.title=c.title),c.subtitle!=null&&c.hasOwnProperty("subtitle")&&(l.subtitle=c.subtitle),c.icon!=null&&c.hasOwnProperty("icon")&&(l.icon=c.icon),c.jumpUrl!=null&&c.hasOwnProperty("jumpUrl")&&(l.jumpUrl=c.jumpUrl),c.toast!=null&&c.hasOwnProperty("toast")&&(l.toast=c.toast),c.hasRedDot!=null&&c.hasOwnProperty("hasRedDot")&&(typeof c.hasRedDot=="number"?l.hasRedDot=e.longs===String?String(c.hasRedDot):c.hasRedDot:l.hasRedDot=e.longs===String?r.Long.prototype.toString.call(c.hasRedDot):e.longs===Number?new r.LongBits(c.hasRedDot.low>>>0,c.hasRedDot.high>>>0).toNumber():c.hasRedDot),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/dynamic.UpPermissionItem"},d}(),O.OnlyFansOptionType=function(){let d={},p=Object.create(d);return p[d[0]="ONLY_FANS_OPTION_NONE"]=0,p[d[1]="ONLY_FANS_OPTION_UPOWER"]=1,p[d[2]="ONLY_FANS_OPTION_HIGH_UPOWER"]=2,p}(),O.OnlyFansOption=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.type=c.int32();break}case 2:{t.disabled=c.int32();break}case 3:{t.title=c.string();break}case 4:{t.subtitle=c.string();break}case 5:{t.icon=c.string();break}case 6:{t.onlyFansName=c.string();break}case 7:{t.descSubtitle=c.string();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.dynamic.OnlyFansOption)return c;let e=new u.dynamic.OnlyFansOption;switch(c.type){default:if(typeof c.type=="number"){e.type=c.type;break}break;case"ONLY_FANS_OPTION_NONE":case 0:e.type=0;break;case"ONLY_FANS_OPTION_UPOWER":case 1:e.type=1;break;case"ONLY_FANS_OPTION_HIGH_UPOWER":case 2:e.type=2;break}return c.disabled!=null&&(e.disabled=c.disabled|0),c.title!=null&&(e.title=String(c.title)),c.subtitle!=null&&(e.subtitle=String(c.subtitle)),c.icon!=null&&(e.icon=String(c.icon)),c.onlyFansName!=null&&(e.onlyFansName=String(c.onlyFansName)),c.descSubtitle!=null&&(e.descSubtitle=String(c.descSubtitle)),e},d.toObject=function(c,e){e||(e={});let l={};return e.defaults&&(l.type=e.enums===String?"ONLY_FANS_OPTION_NONE":0,l.disabled=0,l.title="",l.subtitle="",l.icon="",l.onlyFansName="",l.descSubtitle=""),c.type!=null&&c.hasOwnProperty("type")&&(l.type=e.enums===String?u.dynamic.OnlyFansOptionType[c.type]===void 0?c.type:u.dynamic.OnlyFansOptionType[c.type]:c.type),c.disabled!=null&&c.hasOwnProperty("disabled")&&(l.disabled=c.disabled),c.title!=null&&c.hasOwnProperty("title")&&(l.title=c.title),c.subtitle!=null&&c.hasOwnProperty("subtitle")&&(l.subtitle=c.subtitle),c.icon!=null&&c.hasOwnProperty("icon")&&(l.icon=c.icon),c.onlyFansName!=null&&c.hasOwnProperty("onlyFansName")&&(l.onlyFansName=c.onlyFansName),c.descSubtitle!=null&&c.hasOwnProperty("descSubtitle")&&(l.descSubtitle=c.descSubtitle),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/dynamic.OnlyFansOption"},d}(),O.OnlyFansPermission=function(){function d(p){if(this.options=[],p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.permission=c.int32();break}case 2:{t.title=c.string();break}case 3:{t.subtitle=c.string();break}case 4:{t.icon=c.string();break}case 5:{t.toast=c.string();break}case 6:{t.options&&t.options.length||(t.options=[]),t.options.push(u.dynamic.OnlyFansOption.decode(c,c.uint32()));break}case 7:{t.dndSetting=u.dynamic.OnlyFansDndSetting.decode(c,c.uint32());break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.dynamic.OnlyFansPermission)return c;let e=new u.dynamic.OnlyFansPermission;if(c.permission!=null&&(e.permission=c.permission|0),c.title!=null&&(e.title=String(c.title)),c.subtitle!=null&&(e.subtitle=String(c.subtitle)),c.icon!=null&&(e.icon=String(c.icon)),c.toast!=null&&(e.toast=String(c.toast)),c.options){if(!Array.isArray(c.options))throw TypeError(".dynamic.OnlyFansPermission.options: array expected");e.options=[];for(let l=0;l>>3){case 1:{t.title=c.string();break}case 2:{t.popTitle=c.string();break}case 3:{t.popDesc=c.string();break}case 4:{t.popPicture=c.string();break}case 5:{t.popBtnText=c.string();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.dynamic.OnlyFansDndSetting)return c;let e=new u.dynamic.OnlyFansDndSetting;return c.title!=null&&(e.title=String(c.title)),c.popTitle!=null&&(e.popTitle=String(c.popTitle)),c.popDesc!=null&&(e.popDesc=String(c.popDesc)),c.popPicture!=null&&(e.popPicture=String(c.popPicture)),c.popBtnText!=null&&(e.popBtnText=String(c.popBtnText)),e},d.toObject=function(c,e){e||(e={});let l={};return e.defaults&&(l.title="",l.popTitle="",l.popDesc="",l.popPicture="",l.popBtnText=""),c.title!=null&&c.hasOwnProperty("title")&&(l.title=c.title),c.popTitle!=null&&c.hasOwnProperty("popTitle")&&(l.popTitle=c.popTitle),c.popDesc!=null&&c.hasOwnProperty("popDesc")&&(l.popDesc=c.popDesc),c.popPicture!=null&&c.hasOwnProperty("popPicture")&&(l.popPicture=c.popPicture),c.popBtnText!=null&&c.hasOwnProperty("popBtnText")&&(l.popBtnText=c.popBtnText),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/dynamic.OnlyFansDndSetting"},d}(),O.PublishYellowBar=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.text=c.string();break}case 2:{t.url=c.string();break}case 3:{t.icon=c.string();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.dynamic.PublishYellowBar)return c;let e=new u.dynamic.PublishYellowBar;return c.text!=null&&(e.text=String(c.text)),c.url!=null&&(e.url=String(c.url)),c.icon!=null&&(e.icon=String(c.icon)),e},d.toObject=function(c,e){e||(e={});let l={};return e.defaults&&(l.text="",l.url="",l.icon=""),c.text!=null&&c.hasOwnProperty("text")&&(l.text=c.text),c.url!=null&&c.hasOwnProperty("url")&&(l.url=c.url),c.icon!=null&&c.hasOwnProperty("icon")&&(l.icon=c.icon),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/dynamic.PublishYellowBar"},d}(),O.LaunchedActivity=function(){function d(p){if(this.activities=[],p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.moduleTitle=c.string();break}case 2:{t.activities&&t.activities.length||(t.activities=[]),t.activities.push(u.dynamic.LaunchedActivityItem.decode(c,c.uint32()));break}case 3:{t.showMore=u.dynamic.ShowMoreLaunchedActivity.decode(c,c.uint32());break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.dynamic.LaunchedActivity)return c;let e=new u.dynamic.LaunchedActivity;if(c.moduleTitle!=null&&(e.moduleTitle=String(c.moduleTitle)),c.activities){if(!Array.isArray(c.activities))throw TypeError(".dynamic.LaunchedActivity.activities: array expected");e.activities=[];for(let l=0;l>>3){case 1:{t.activityId=c.int64();break}case 2:{t.activityName=c.string();break}case 3:{t.activityState=c.int32();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.dynamic.LaunchedActivityItem)return c;let e=new u.dynamic.LaunchedActivityItem;return c.activityId!=null&&(r.Long?(e.activityId=r.Long.fromValue(c.activityId)).unsigned=!1:typeof c.activityId=="string"?e.activityId=parseInt(c.activityId,10):typeof c.activityId=="number"?e.activityId=c.activityId:typeof c.activityId=="object"&&(e.activityId=new r.LongBits(c.activityId.low>>>0,c.activityId.high>>>0).toNumber())),c.activityName!=null&&(e.activityName=String(c.activityName)),c.activityState!=null&&(e.activityState=c.activityState|0),e},d.toObject=function(c,e){e||(e={});let l={};if(e.defaults){if(r.Long){let t=new r.Long(0,0,!1);l.activityId=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.activityId=e.longs===String?"0":0;l.activityName="",l.activityState=0}return c.activityId!=null&&c.hasOwnProperty("activityId")&&(typeof c.activityId=="number"?l.activityId=e.longs===String?String(c.activityId):c.activityId:l.activityId=e.longs===String?r.Long.prototype.toString.call(c.activityId):e.longs===Number?new r.LongBits(c.activityId.low>>>0,c.activityId.high>>>0).toNumber():c.activityId),c.activityName!=null&&c.hasOwnProperty("activityName")&&(l.activityName=c.activityName),c.activityState!=null&&c.hasOwnProperty("activityState")&&(l.activityState=c.activityState),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/dynamic.LaunchedActivityItem"},d}(),O.ShowMoreLaunchedActivity=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.buttonText=c.string();break}case 2:{t.jumpUrl=c.string();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.dynamic.ShowMoreLaunchedActivity)return c;let e=new u.dynamic.ShowMoreLaunchedActivity;return c.buttonText!=null&&(e.buttonText=String(c.buttonText)),c.jumpUrl!=null&&(e.jumpUrl=String(c.jumpUrl)),e},d.toObject=function(c,e){e||(e={});let l={};return e.defaults&&(l.buttonText="",l.jumpUrl=""),c.buttonText!=null&&c.hasOwnProperty("buttonText")&&(l.buttonText=c.buttonText),c.jumpUrl!=null&&c.hasOwnProperty("jumpUrl")&&(l.jumpUrl=c.jumpUrl),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/dynamic.ShowMoreLaunchedActivity"},d}(),O.PlusRedDot=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.plusHasRedDot=c.int64();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.dynamic.PlusRedDot)return c;let e=new u.dynamic.PlusRedDot;return c.plusHasRedDot!=null&&(r.Long?(e.plusHasRedDot=r.Long.fromValue(c.plusHasRedDot)).unsigned=!1:typeof c.plusHasRedDot=="string"?e.plusHasRedDot=parseInt(c.plusHasRedDot,10):typeof c.plusHasRedDot=="number"?e.plusHasRedDot=c.plusHasRedDot:typeof c.plusHasRedDot=="object"&&(e.plusHasRedDot=new r.LongBits(c.plusHasRedDot.low>>>0,c.plusHasRedDot.high>>>0).toNumber())),e},d.toObject=function(c,e){e||(e={});let l={};if(e.defaults)if(r.Long){let t=new r.Long(0,0,!1);l.plusHasRedDot=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.plusHasRedDot=e.longs===String?"0":0;return c.plusHasRedDot!=null&&c.hasOwnProperty("plusHasRedDot")&&(typeof c.plusHasRedDot=="number"?l.plusHasRedDot=e.longs===String?String(c.plusHasRedDot):c.plusHasRedDot:l.plusHasRedDot=e.longs===String?r.Long.prototype.toString.call(c.plusHasRedDot):e.longs===Number?new r.LongBits(c.plusHasRedDot.low>>>0,c.plusHasRedDot.high>>>0).toNumber():c.plusHasRedDot),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/dynamic.PlusRedDot"},d}(),O.CreateCheckResp=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.setting=u.dynamic.PublishSetting.decode(c,c.uint32());break}case 2:{t.permission=u.dynamic.UpPermission.decode(c,c.uint32());break}case 3:{t.shareInfo=u.dynamic.ShareChannel.decode(c,c.uint32());break}case 4:{t.yellowBar=u.dynamic.PublishYellowBar.decode(c,c.uint32());break}case 5:{t.plusRedDot=u.dynamic.PlusRedDot.decode(c,c.uint32());break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.dynamic.CreateCheckResp)return c;let e=new u.dynamic.CreateCheckResp;if(c.setting!=null){if(typeof c.setting!="object")throw TypeError(".dynamic.CreateCheckResp.setting: object expected");e.setting=u.dynamic.PublishSetting.fromObject(c.setting)}if(c.permission!=null){if(typeof c.permission!="object")throw TypeError(".dynamic.CreateCheckResp.permission: object expected");e.permission=u.dynamic.UpPermission.fromObject(c.permission)}if(c.shareInfo!=null){if(typeof c.shareInfo!="object")throw TypeError(".dynamic.CreateCheckResp.shareInfo: object expected");e.shareInfo=u.dynamic.ShareChannel.fromObject(c.shareInfo)}if(c.yellowBar!=null){if(typeof c.yellowBar!="object")throw TypeError(".dynamic.CreateCheckResp.yellowBar: object expected");e.yellowBar=u.dynamic.PublishYellowBar.fromObject(c.yellowBar)}if(c.plusRedDot!=null){if(typeof c.plusRedDot!="object")throw TypeError(".dynamic.CreateCheckResp.plusRedDot: object expected");e.plusRedDot=u.dynamic.PlusRedDot.fromObject(c.plusRedDot)}return e},d.toObject=function(c,e){e||(e={});let l={};return e.defaults&&(l.setting=null,l.permission=null,l.shareInfo=null,l.yellowBar=null,l.plusRedDot=null),c.setting!=null&&c.hasOwnProperty("setting")&&(l.setting=u.dynamic.PublishSetting.toObject(c.setting,e)),c.permission!=null&&c.hasOwnProperty("permission")&&(l.permission=u.dynamic.UpPermission.toObject(c.permission,e)),c.shareInfo!=null&&c.hasOwnProperty("shareInfo")&&(l.shareInfo=u.dynamic.ShareChannel.toObject(c.shareInfo,e)),c.yellowBar!=null&&c.hasOwnProperty("yellowBar")&&(l.yellowBar=u.dynamic.PublishYellowBar.toObject(c.yellowBar,e)),c.plusRedDot!=null&&c.hasOwnProperty("plusRedDot")&&(l.plusRedDot=u.dynamic.PlusRedDot.toObject(c.plusRedDot,e)),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/dynamic.CreateCheckResp"},d}(),O.CreateResp=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.dynId=c.int64();break}case 2:{t.dynIdStr=c.string();break}case 3:{t.dynType=c.int64();break}case 4:{t.dynRid=c.int64();break}case 5:{t.fakeCard=u.bilibili.app.dynamic.v2.DynamicItem.decode(c,c.uint32());break}case 6:{t.videoResult=u.dynamic.CreateDynVideoResult.decode(c,c.uint32());break}case 7:{t.shareWindow=u.dynamic.ShareDynWindow.decode(c,c.uint32());break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.dynamic.CreateResp)return c;let e=new u.dynamic.CreateResp;if(c.dynId!=null&&(r.Long?(e.dynId=r.Long.fromValue(c.dynId)).unsigned=!1:typeof c.dynId=="string"?e.dynId=parseInt(c.dynId,10):typeof c.dynId=="number"?e.dynId=c.dynId:typeof c.dynId=="object"&&(e.dynId=new r.LongBits(c.dynId.low>>>0,c.dynId.high>>>0).toNumber())),c.dynIdStr!=null&&(e.dynIdStr=String(c.dynIdStr)),c.dynType!=null&&(r.Long?(e.dynType=r.Long.fromValue(c.dynType)).unsigned=!1:typeof c.dynType=="string"?e.dynType=parseInt(c.dynType,10):typeof c.dynType=="number"?e.dynType=c.dynType:typeof c.dynType=="object"&&(e.dynType=new r.LongBits(c.dynType.low>>>0,c.dynType.high>>>0).toNumber())),c.dynRid!=null&&(r.Long?(e.dynRid=r.Long.fromValue(c.dynRid)).unsigned=!1:typeof c.dynRid=="string"?e.dynRid=parseInt(c.dynRid,10):typeof c.dynRid=="number"?e.dynRid=c.dynRid:typeof c.dynRid=="object"&&(e.dynRid=new r.LongBits(c.dynRid.low>>>0,c.dynRid.high>>>0).toNumber())),c.fakeCard!=null){if(typeof c.fakeCard!="object")throw TypeError(".dynamic.CreateResp.fakeCard: object expected");e.fakeCard=u.bilibili.app.dynamic.v2.DynamicItem.fromObject(c.fakeCard)}if(c.videoResult!=null){if(typeof c.videoResult!="object")throw TypeError(".dynamic.CreateResp.videoResult: object expected");e.videoResult=u.dynamic.CreateDynVideoResult.fromObject(c.videoResult)}if(c.shareWindow!=null){if(typeof c.shareWindow!="object")throw TypeError(".dynamic.CreateResp.shareWindow: object expected");e.shareWindow=u.dynamic.ShareDynWindow.fromObject(c.shareWindow)}return e},d.toObject=function(c,e){e||(e={});let l={};if(e.defaults){if(r.Long){let t=new r.Long(0,0,!1);l.dynId=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.dynId=e.longs===String?"0":0;if(l.dynIdStr="",r.Long){let t=new r.Long(0,0,!1);l.dynType=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.dynType=e.longs===String?"0":0;if(r.Long){let t=new r.Long(0,0,!1);l.dynRid=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.dynRid=e.longs===String?"0":0;l.fakeCard=null,l.videoResult=null,l.shareWindow=null}return c.dynId!=null&&c.hasOwnProperty("dynId")&&(typeof c.dynId=="number"?l.dynId=e.longs===String?String(c.dynId):c.dynId:l.dynId=e.longs===String?r.Long.prototype.toString.call(c.dynId):e.longs===Number?new r.LongBits(c.dynId.low>>>0,c.dynId.high>>>0).toNumber():c.dynId),c.dynIdStr!=null&&c.hasOwnProperty("dynIdStr")&&(l.dynIdStr=c.dynIdStr),c.dynType!=null&&c.hasOwnProperty("dynType")&&(typeof c.dynType=="number"?l.dynType=e.longs===String?String(c.dynType):c.dynType:l.dynType=e.longs===String?r.Long.prototype.toString.call(c.dynType):e.longs===Number?new r.LongBits(c.dynType.low>>>0,c.dynType.high>>>0).toNumber():c.dynType),c.dynRid!=null&&c.hasOwnProperty("dynRid")&&(typeof c.dynRid=="number"?l.dynRid=e.longs===String?String(c.dynRid):c.dynRid:l.dynRid=e.longs===String?r.Long.prototype.toString.call(c.dynRid):e.longs===Number?new r.LongBits(c.dynRid.low>>>0,c.dynRid.high>>>0).toNumber():c.dynRid),c.fakeCard!=null&&c.hasOwnProperty("fakeCard")&&(l.fakeCard=u.bilibili.app.dynamic.v2.DynamicItem.toObject(c.fakeCard,e)),c.videoResult!=null&&c.hasOwnProperty("videoResult")&&(l.videoResult=u.dynamic.CreateDynVideoResult.toObject(c.videoResult,e)),c.shareWindow!=null&&c.hasOwnProperty("shareWindow")&&(l.shareWindow=u.dynamic.ShareDynWindow.toObject(c.shareWindow,e)),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/dynamic.CreateResp"},d}(),O.ShareDynWindow=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.mainTitle=c.string();break}case 2:{t.subTitle=c.string();break}case 3:{t.dynItem=u.bilibili.app.dynamic.v2.DynamicItem.decode(c,c.uint32());break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.dynamic.ShareDynWindow)return c;let e=new u.dynamic.ShareDynWindow;if(c.mainTitle!=null&&(e.mainTitle=String(c.mainTitle)),c.subTitle!=null&&(e.subTitle=String(c.subTitle)),c.dynItem!=null){if(typeof c.dynItem!="object")throw TypeError(".dynamic.ShareDynWindow.dynItem: object expected");e.dynItem=u.bilibili.app.dynamic.v2.DynamicItem.fromObject(c.dynItem)}return e},d.toObject=function(c,e){e||(e={});let l={};return e.defaults&&(l.mainTitle="",l.subTitle="",l.dynItem=null),c.mainTitle!=null&&c.hasOwnProperty("mainTitle")&&(l.mainTitle=c.mainTitle),c.subTitle!=null&&c.hasOwnProperty("subTitle")&&(l.subTitle=c.subTitle),c.dynItem!=null&&c.hasOwnProperty("dynItem")&&(l.dynItem=u.bilibili.app.dynamic.v2.DynamicItem.toObject(c.dynItem,e)),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/dynamic.ShareDynWindow"},d}(),O.GetUidByNameReq=function(){function d(p){if(this.names=[],p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.names&&t.names.length||(t.names=[]),t.names.push(c.string());break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.dynamic.GetUidByNameReq)return c;let e=new u.dynamic.GetUidByNameReq;if(c.names){if(!Array.isArray(c.names))throw TypeError(".dynamic.GetUidByNameReq.names: array expected");e.names=[];for(let l=0;l>>3){case 1:{t.uids===r.emptyObject&&(t.uids={});let a=c.uint32()+c.pos;for(i="",n=0;c.pos>>3){case 1:i=c.string();break;case 2:n=c.int64();break;default:c.skipType(y&7);break}}t.uids[i]=n;break}default:c.skipType(o&7);break}}return t},d.fromObject=function(c){if(c instanceof u.dynamic.GetUidByNameRsp)return c;let e=new u.dynamic.GetUidByNameRsp;if(c.uids){if(typeof c.uids!="object")throw TypeError(".dynamic.GetUidByNameRsp.uids: object expected");e.uids={};for(let l=Object.keys(c.uids),t=0;t>>0,c.uids[l[t]].high>>>0).toNumber())}return e},d.toObject=function(c,e){e||(e={});let l={};(e.objects||e.defaults)&&(l.uids={});let t;if(c.uids&&(t=Object.keys(c.uids)).length){l.uids={};for(let i=0;i>>0,c.uids[t[i]].high>>>0).toNumber():c.uids[t[i]]}return l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/dynamic.GetUidByNameRsp"},d}(),O.AtListReq=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.uid=c.int64();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.dynamic.AtListReq)return c;let e=new u.dynamic.AtListReq;return c.uid!=null&&(r.Long?(e.uid=r.Long.fromValue(c.uid)).unsigned=!1:typeof c.uid=="string"?e.uid=parseInt(c.uid,10):typeof c.uid=="number"?e.uid=c.uid:typeof c.uid=="object"&&(e.uid=new r.LongBits(c.uid.low>>>0,c.uid.high>>>0).toNumber())),e},d.toObject=function(c,e){e||(e={});let l={};if(e.defaults)if(r.Long){let t=new r.Long(0,0,!1);l.uid=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.uid=e.longs===String?"0":0;return c.uid!=null&&c.hasOwnProperty("uid")&&(typeof c.uid=="number"?l.uid=e.longs===String?String(c.uid):c.uid:l.uid=e.longs===String?r.Long.prototype.toString.call(c.uid):e.longs===Number?new r.LongBits(c.uid.low>>>0,c.uid.high>>>0).toNumber():c.uid),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/dynamic.AtListReq"},d}(),O.AtItem=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.uid=c.int64();break}case 2:{t.name=c.string();break}case 3:{t.face=c.string();break}case 4:{t.fans=c.int32();break}case 5:{t.officialVerifyType=c.int32();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.dynamic.AtItem)return c;let e=new u.dynamic.AtItem;return c.uid!=null&&(r.Long?(e.uid=r.Long.fromValue(c.uid)).unsigned=!1:typeof c.uid=="string"?e.uid=parseInt(c.uid,10):typeof c.uid=="number"?e.uid=c.uid:typeof c.uid=="object"&&(e.uid=new r.LongBits(c.uid.low>>>0,c.uid.high>>>0).toNumber())),c.name!=null&&(e.name=String(c.name)),c.face!=null&&(e.face=String(c.face)),c.fans!=null&&(e.fans=c.fans|0),c.officialVerifyType!=null&&(e.officialVerifyType=c.officialVerifyType|0),e},d.toObject=function(c,e){e||(e={});let l={};if(e.defaults){if(r.Long){let t=new r.Long(0,0,!1);l.uid=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.uid=e.longs===String?"0":0;l.name="",l.face="",l.fans=0,l.officialVerifyType=0}return c.uid!=null&&c.hasOwnProperty("uid")&&(typeof c.uid=="number"?l.uid=e.longs===String?String(c.uid):c.uid:l.uid=e.longs===String?r.Long.prototype.toString.call(c.uid):e.longs===Number?new r.LongBits(c.uid.low>>>0,c.uid.high>>>0).toNumber():c.uid),c.name!=null&&c.hasOwnProperty("name")&&(l.name=c.name),c.face!=null&&c.hasOwnProperty("face")&&(l.face=c.face),c.fans!=null&&c.hasOwnProperty("fans")&&(l.fans=c.fans),c.officialVerifyType!=null&&c.hasOwnProperty("officialVerifyType")&&(l.officialVerifyType=c.officialVerifyType),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/dynamic.AtItem"},d}(),O.AtGroupType=function(){let d={},p=Object.create(d);return p[d[0]="AT_GROUP_TYPE_DEFAULT"]=0,p[d[1]="AT_GROUP_TYPE_RECENT"]=1,p[d[2]="AT_GROUP_TYPE_FOLLOW"]=2,p[d[3]="AT_GROUP_TYPE_FANS"]=3,p[d[4]="AT_GROUP_TYPE_OTHERS"]=4,p}(),O.AtGroup=function(){function d(p){if(this.items=[],p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.groupType=c.int32();break}case 2:{t.groupName=c.string();break}case 3:{t.items&&t.items.length||(t.items=[]),t.items.push(u.dynamic.AtItem.decode(c,c.uint32()));break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.dynamic.AtGroup)return c;let e=new u.dynamic.AtGroup;if(c.groupType!=null&&(e.groupType=c.groupType|0),c.groupName!=null&&(e.groupName=String(c.groupName)),c.items){if(!Array.isArray(c.items))throw TypeError(".dynamic.AtGroup.items: array expected");e.items=[];for(let l=0;l>>3){case 1:{t.groups&&t.groups.length||(t.groups=[]),t.groups.push(u.dynamic.AtGroup.decode(c,c.uint32()));break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.dynamic.AtListRsp)return c;let e=new u.dynamic.AtListRsp;if(c.groups){if(!Array.isArray(c.groups))throw TypeError(".dynamic.AtListRsp.groups: array expected");e.groups=[];for(let l=0;l>>3){case 1:{t.uid=c.int64();break}case 2:{t.keyword=c.string();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.dynamic.AtSearchReq)return c;let e=new u.dynamic.AtSearchReq;return c.uid!=null&&(r.Long?(e.uid=r.Long.fromValue(c.uid)).unsigned=!1:typeof c.uid=="string"?e.uid=parseInt(c.uid,10):typeof c.uid=="number"?e.uid=c.uid:typeof c.uid=="object"&&(e.uid=new r.LongBits(c.uid.low>>>0,c.uid.high>>>0).toNumber())),c.keyword!=null&&(e.keyword=String(c.keyword)),e},d.toObject=function(c,e){e||(e={});let l={};if(e.defaults){if(r.Long){let t=new r.Long(0,0,!1);l.uid=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.uid=e.longs===String?"0":0;l.keyword=""}return c.uid!=null&&c.hasOwnProperty("uid")&&(typeof c.uid=="number"?l.uid=e.longs===String?String(c.uid):c.uid:l.uid=e.longs===String?r.Long.prototype.toString.call(c.uid):e.longs===Number?new r.LongBits(c.uid.low>>>0,c.uid.high>>>0).toNumber():c.uid),c.keyword!=null&&c.hasOwnProperty("keyword")&&(l.keyword=c.keyword),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/dynamic.AtSearchReq"},d}(),O})(),Xr=u.opus=(()=>{let O={};return O.DemoToDel=function(){function d(p,c,e){b.rpc.Service.call(this,p,c,e)}return(d.prototype=Object.create(b.rpc.Service.prototype)).constructor=d,d.create=function(c,e,l){return new this(c,e,l)},d}(),O.OpusBizType=function(){let d={},p=Object.create(d);return p[d[0]="DEFAULT"]=0,p[d[1]="VIDEO"]=1,p[d[2]="RESERVE"]=2,p[d[3]="VOTE"]=3,p[d[4]="LIVE"]=4,p[d[5]="LOTTERY"]=5,p[d[6]="MATCH"]=6,p[d[7]="GOODS"]=7,p[d[8]="OGV_SS"]=8,p[d[9]="OGV_EP"]=9,p[d[10]="MANGA"]=10,p[d[11]="CHEESE"]=11,p[d[12]="VIDEO_TS"]=12,p[d[13]="AT"]=13,p[d[14]="HASH_TAG"]=14,p[d[15]="CV"]=15,p[d[16]="URL"]=16,p[d[17]="MAIL"]=17,p[d[18]="LBS"]=18,p[d[19]="ACTIVITY"]=19,p[d[20]="ATTACH_CARD_OFFICIAL_ACTIVITY"]=20,p[d[21]="GAME"]=21,p[d[22]="DECORATION"]=22,p[d[23]="UP_TOPIC"]=23,p[d[24]="UP_ACTIVITY"]=24,p[d[25]="UP_MAOER"]=25,p[d[26]="MEMBER_GOODS"]=26,p[d[27]="OPENMALL_UP_ITEMS"]=27,p[d[29]="MUSIC"]=29,p[d[31]="MEMBER_TICKET"]=31,p[d[32]="REPOST_PIC_URL"]=32,p[d[33]="REPOST_PIC_DYN_URL"]=33,p[d[34]="OGV_FOLLOW_CARD"]=34,p}(),O.OpusSource=function(){let d={},p=Object.create(d);return p[d[0]="DEFAULT_SOURCE"]=0,p[d[1]="ALBUM"]=1,p[d[2]="ARTICLE"]=2,p[d[3]="NOTE"]=3,p[d[4]="OGV_COMMENT"]=4,p[d[5]="ARTICLE_H5"]=5,p[d[6]="WORD"]=6,p[d[7]="REPOST"]=7,p}(),O.OpusSummary=function(){function d(p){if(this.cover=[],this.tags=[],p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.opusSource=c.int32();break}case 2:{t.title=c.string();break}case 3:{t.cover&&t.cover.length||(t.cover=[]),t.cover.push(u.opus.Pic.decode(c,c.uint32()));break}case 4:{t.summary=u.opus.OpusContent.decode(c,c.uint32());break}case 5:{t.tags&&t.tags.length||(t.tags=[]),t.tags.push(u.opus.OpusTag.decode(c,c.uint32()));break}case 6:{t.pubInfo=u.opus.PubInfo.decode(c,c.uint32());break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.opus.OpusSummary)return c;let e=new u.opus.OpusSummary;switch(c.opusSource){default:if(typeof c.opusSource=="number"){e.opusSource=c.opusSource;break}break;case"DEFAULT_SOURCE":case 0:e.opusSource=0;break;case"ALBUM":case 1:e.opusSource=1;break;case"ARTICLE":case 2:e.opusSource=2;break;case"NOTE":case 3:e.opusSource=3;break;case"OGV_COMMENT":case 4:e.opusSource=4;break;case"ARTICLE_H5":case 5:e.opusSource=5;break;case"WORD":case 6:e.opusSource=6;break;case"REPOST":case 7:e.opusSource=7;break}if(c.title!=null&&(e.title=String(c.title)),c.cover){if(!Array.isArray(c.cover))throw TypeError(".opus.OpusSummary.cover: array expected");e.cover=[];for(let l=0;l>>3){case 1:{t.opusId=c.int64();break}case 2:{t.opusSource=c.int32();break}case 3:{t.title=c.string();break}case 4:{t.coverAvid=c.int64();break}case 5:{t.h5Content=c.string();break}case 6:{t.content=u.opus.OpusContent.decode(c,c.uint32());break}case 7:{t.tags&&t.tags.length||(t.tags=[]),t.tags.push(u.opus.OpusTag.decode(c,c.uint32()));break}case 8:{t.pubInfo=u.opus.PubInfo.decode(c,c.uint32());break}case 9:{t.article=u.opus.Article.decode(c,c.uint32());break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.opus.Opus)return c;let e=new u.opus.Opus;switch(c.opusId!=null&&(r.Long?(e.opusId=r.Long.fromValue(c.opusId)).unsigned=!1:typeof c.opusId=="string"?e.opusId=parseInt(c.opusId,10):typeof c.opusId=="number"?e.opusId=c.opusId:typeof c.opusId=="object"&&(e.opusId=new r.LongBits(c.opusId.low>>>0,c.opusId.high>>>0).toNumber())),c.opusSource){default:if(typeof c.opusSource=="number"){e.opusSource=c.opusSource;break}break;case"DEFAULT_SOURCE":case 0:e.opusSource=0;break;case"ALBUM":case 1:e.opusSource=1;break;case"ARTICLE":case 2:e.opusSource=2;break;case"NOTE":case 3:e.opusSource=3;break;case"OGV_COMMENT":case 4:e.opusSource=4;break;case"ARTICLE_H5":case 5:e.opusSource=5;break;case"WORD":case 6:e.opusSource=6;break;case"REPOST":case 7:e.opusSource=7;break}if(c.title!=null&&(e.title=String(c.title)),c.coverAvid!=null&&(r.Long?(e.coverAvid=r.Long.fromValue(c.coverAvid)).unsigned=!1:typeof c.coverAvid=="string"?e.coverAvid=parseInt(c.coverAvid,10):typeof c.coverAvid=="number"?e.coverAvid=c.coverAvid:typeof c.coverAvid=="object"&&(e.coverAvid=new r.LongBits(c.coverAvid.low>>>0,c.coverAvid.high>>>0).toNumber())),c.h5Content!=null&&(e.h5Content=String(c.h5Content)),c.content!=null){if(typeof c.content!="object")throw TypeError(".opus.Opus.content: object expected");e.content=u.opus.OpusContent.fromObject(c.content)}if(c.tags){if(!Array.isArray(c.tags))throw TypeError(".opus.Opus.tags: array expected");e.tags=[];for(let l=0;l>>0,c.opusId.high>>>0).toNumber():c.opusId),c.opusSource!=null&&c.hasOwnProperty("opusSource")&&(l.opusSource=e.enums===String?u.opus.OpusSource[c.opusSource]===void 0?c.opusSource:u.opus.OpusSource[c.opusSource]:c.opusSource),c.title!=null&&c.hasOwnProperty("title")&&(l.title=c.title),c.coverAvid!=null&&c.hasOwnProperty("coverAvid")&&(typeof c.coverAvid=="number"?l.coverAvid=e.longs===String?String(c.coverAvid):c.coverAvid:l.coverAvid=e.longs===String?r.Long.prototype.toString.call(c.coverAvid):e.longs===Number?new r.LongBits(c.coverAvid.low>>>0,c.coverAvid.high>>>0).toNumber():c.coverAvid),c.h5Content!=null&&c.hasOwnProperty("h5Content")&&(l.h5Content=c.h5Content),c.content!=null&&c.hasOwnProperty("content")&&(l.content=u.opus.OpusContent.toObject(c.content,e)),c.tags&&c.tags.length){l.tags=[];for(let t=0;t>>3){case 1:{t.uid=c.int64();break}case 2:{t.pubTime=c.int64();break}case 3:{t.lastMtime=c.int64();break}case 4:{t.timerPubTime=c.int64();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.opus.PubInfo)return c;let e=new u.opus.PubInfo;return c.uid!=null&&(r.Long?(e.uid=r.Long.fromValue(c.uid)).unsigned=!1:typeof c.uid=="string"?e.uid=parseInt(c.uid,10):typeof c.uid=="number"?e.uid=c.uid:typeof c.uid=="object"&&(e.uid=new r.LongBits(c.uid.low>>>0,c.uid.high>>>0).toNumber())),c.pubTime!=null&&(r.Long?(e.pubTime=r.Long.fromValue(c.pubTime)).unsigned=!1:typeof c.pubTime=="string"?e.pubTime=parseInt(c.pubTime,10):typeof c.pubTime=="number"?e.pubTime=c.pubTime:typeof c.pubTime=="object"&&(e.pubTime=new r.LongBits(c.pubTime.low>>>0,c.pubTime.high>>>0).toNumber())),c.lastMtime!=null&&(r.Long?(e.lastMtime=r.Long.fromValue(c.lastMtime)).unsigned=!1:typeof c.lastMtime=="string"?e.lastMtime=parseInt(c.lastMtime,10):typeof c.lastMtime=="number"?e.lastMtime=c.lastMtime:typeof c.lastMtime=="object"&&(e.lastMtime=new r.LongBits(c.lastMtime.low>>>0,c.lastMtime.high>>>0).toNumber())),c.timerPubTime!=null&&(r.Long?(e.timerPubTime=r.Long.fromValue(c.timerPubTime)).unsigned=!1:typeof c.timerPubTime=="string"?e.timerPubTime=parseInt(c.timerPubTime,10):typeof c.timerPubTime=="number"?e.timerPubTime=c.timerPubTime:typeof c.timerPubTime=="object"&&(e.timerPubTime=new r.LongBits(c.timerPubTime.low>>>0,c.timerPubTime.high>>>0).toNumber())),e},d.toObject=function(c,e){e||(e={});let l={};if(e.defaults){if(r.Long){let t=new r.Long(0,0,!1);l.uid=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.uid=e.longs===String?"0":0;if(r.Long){let t=new r.Long(0,0,!1);l.pubTime=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.pubTime=e.longs===String?"0":0;if(r.Long){let t=new r.Long(0,0,!1);l.lastMtime=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.lastMtime=e.longs===String?"0":0;if(r.Long){let t=new r.Long(0,0,!1);l.timerPubTime=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.timerPubTime=e.longs===String?"0":0}return c.uid!=null&&c.hasOwnProperty("uid")&&(typeof c.uid=="number"?l.uid=e.longs===String?String(c.uid):c.uid:l.uid=e.longs===String?r.Long.prototype.toString.call(c.uid):e.longs===Number?new r.LongBits(c.uid.low>>>0,c.uid.high>>>0).toNumber():c.uid),c.pubTime!=null&&c.hasOwnProperty("pubTime")&&(typeof c.pubTime=="number"?l.pubTime=e.longs===String?String(c.pubTime):c.pubTime:l.pubTime=e.longs===String?r.Long.prototype.toString.call(c.pubTime):e.longs===Number?new r.LongBits(c.pubTime.low>>>0,c.pubTime.high>>>0).toNumber():c.pubTime),c.lastMtime!=null&&c.hasOwnProperty("lastMtime")&&(typeof c.lastMtime=="number"?l.lastMtime=e.longs===String?String(c.lastMtime):c.lastMtime:l.lastMtime=e.longs===String?r.Long.prototype.toString.call(c.lastMtime):e.longs===Number?new r.LongBits(c.lastMtime.low>>>0,c.lastMtime.high>>>0).toNumber():c.lastMtime),c.timerPubTime!=null&&c.hasOwnProperty("timerPubTime")&&(typeof c.timerPubTime=="number"?l.timerPubTime=e.longs===String?String(c.timerPubTime):c.timerPubTime:l.timerPubTime=e.longs===String?r.Long.prototype.toString.call(c.timerPubTime):e.longs===Number?new r.LongBits(c.timerPubTime.low>>>0,c.timerPubTime.high>>>0).toNumber():c.timerPubTime),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/opus.PubInfo"},d}(),O.Article=function(){function d(p){if(this.cover=[],this.bizTags=[],p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.categoryId=c.int64();break}case 2:{t.listId=c.int64();break}case 3:{t.originality=c.int32();break}case 4:{t.reproduced=c.int32();break}case 5:{t.cover&&t.cover.length||(t.cover=[]),t.cover.push(u.opus.Pic.decode(c,c.uint32()));break}case 6:{t.bizTags&&t.bizTags.length||(t.bizTags=[]),t.bizTags.push(c.string());break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.opus.Article)return c;let e=new u.opus.Article;if(c.categoryId!=null&&(r.Long?(e.categoryId=r.Long.fromValue(c.categoryId)).unsigned=!1:typeof c.categoryId=="string"?e.categoryId=parseInt(c.categoryId,10):typeof c.categoryId=="number"?e.categoryId=c.categoryId:typeof c.categoryId=="object"&&(e.categoryId=new r.LongBits(c.categoryId.low>>>0,c.categoryId.high>>>0).toNumber())),c.listId!=null&&(r.Long?(e.listId=r.Long.fromValue(c.listId)).unsigned=!1:typeof c.listId=="string"?e.listId=parseInt(c.listId,10):typeof c.listId=="number"?e.listId=c.listId:typeof c.listId=="object"&&(e.listId=new r.LongBits(c.listId.low>>>0,c.listId.high>>>0).toNumber())),c.originality!=null&&(e.originality=c.originality|0),c.reproduced!=null&&(e.reproduced=c.reproduced|0),c.cover){if(!Array.isArray(c.cover))throw TypeError(".opus.Article.cover: array expected");e.cover=[];for(let l=0;l>>0,c.categoryId.high>>>0).toNumber():c.categoryId),c.listId!=null&&c.hasOwnProperty("listId")&&(typeof c.listId=="number"?l.listId=e.longs===String?String(c.listId):c.listId:l.listId=e.longs===String?r.Long.prototype.toString.call(c.listId):e.longs===Number?new r.LongBits(c.listId.low>>>0,c.listId.high>>>0).toNumber():c.listId),c.originality!=null&&c.hasOwnProperty("originality")&&(l.originality=c.originality),c.reproduced!=null&&c.hasOwnProperty("reproduced")&&(l.reproduced=c.reproduced),c.cover&&c.cover.length){l.cover=[];for(let t=0;t>>3){case 1:{t.paragraphs&&t.paragraphs.length||(t.paragraphs=[]),t.paragraphs.push(u.opus.Paragraph.decode(c,c.uint32()));break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.opus.OpusContent)return c;let e=new u.opus.OpusContent;if(c.paragraphs){if(!Array.isArray(c.paragraphs))throw TypeError(".opus.OpusContent.paragraphs: array expected");e.paragraphs=[];for(let l=0;l>>3){case 1:{t.paraType=c.int32();break}case 2:{t.format=u.opus.Paragraph.ParagraphFormat.decode(c,c.uint32());break}case 3:{t.text=u.opus.TextParagraph.decode(c,c.uint32());break}case 4:{t.pic=u.opus.PicParagraph.decode(c,c.uint32());break}case 5:{t.line=u.opus.LineParagraph.decode(c,c.uint32());break}case 6:{t.linkCard=u.opus.CardParagraph.decode(c,c.uint32());break}case 7:{t.code=u.opus.CodeParagraph.decode(c,c.uint32());break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.opus.Paragraph)return c;let e=new u.opus.Paragraph;switch(c.paraType){default:if(typeof c.paraType=="number"){e.paraType=c.paraType;break}break;case"DEFAULT":case 0:e.paraType=0;break;case"TEXT":case 1:e.paraType=1;break;case"PICTURES":case 2:e.paraType=2;break;case"LINE":case 3:e.paraType=3;break;case"REFERENCE":case 4:e.paraType=4;break;case"SORTED_LIST":case 5:e.paraType=5;break;case"UNSORTED_LIST":case 6:e.paraType=6;break;case"LINK_CARD":case 7:e.paraType=7;break}if(c.format!=null){if(typeof c.format!="object")throw TypeError(".opus.Paragraph.format: object expected");e.format=u.opus.Paragraph.ParagraphFormat.fromObject(c.format)}if(c.text!=null){if(typeof c.text!="object")throw TypeError(".opus.Paragraph.text: object expected");e.text=u.opus.TextParagraph.fromObject(c.text)}if(c.pic!=null){if(typeof c.pic!="object")throw TypeError(".opus.Paragraph.pic: object expected");e.pic=u.opus.PicParagraph.fromObject(c.pic)}if(c.line!=null){if(typeof c.line!="object")throw TypeError(".opus.Paragraph.line: object expected");e.line=u.opus.LineParagraph.fromObject(c.line)}if(c.linkCard!=null){if(typeof c.linkCard!="object")throw TypeError(".opus.Paragraph.linkCard: object expected");e.linkCard=u.opus.CardParagraph.fromObject(c.linkCard)}if(c.code!=null){if(typeof c.code!="object")throw TypeError(".opus.Paragraph.code: object expected");e.code=u.opus.CodeParagraph.fromObject(c.code)}return e},d.toObject=function(c,e){e||(e={});let l={};return e.defaults&&(l.paraType=e.enums===String?"DEFAULT":0,l.format=null,l.text=null,l.pic=null,l.line=null,l.linkCard=null,l.code=null),c.paraType!=null&&c.hasOwnProperty("paraType")&&(l.paraType=e.enums===String?u.opus.Paragraph.ParagraphType[c.paraType]===void 0?c.paraType:u.opus.Paragraph.ParagraphType[c.paraType]:c.paraType),c.format!=null&&c.hasOwnProperty("format")&&(l.format=u.opus.Paragraph.ParagraphFormat.toObject(c.format,e)),c.text!=null&&c.hasOwnProperty("text")&&(l.text=u.opus.TextParagraph.toObject(c.text,e)),c.pic!=null&&c.hasOwnProperty("pic")&&(l.pic=u.opus.PicParagraph.toObject(c.pic,e)),c.line!=null&&c.hasOwnProperty("line")&&(l.line=u.opus.LineParagraph.toObject(c.line,e)),c.linkCard!=null&&c.hasOwnProperty("linkCard")&&(l.linkCard=u.opus.CardParagraph.toObject(c.linkCard,e)),c.code!=null&&c.hasOwnProperty("code")&&(l.code=u.opus.CodeParagraph.toObject(c.code,e)),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/opus.Paragraph"},d.ParagraphType=function(){let p={},c=Object.create(p);return c[p[0]="DEFAULT"]=0,c[p[1]="TEXT"]=1,c[p[2]="PICTURES"]=2,c[p[3]="LINE"]=3,c[p[4]="REFERENCE"]=4,c[p[5]="SORTED_LIST"]=5,c[p[6]="UNSORTED_LIST"]=6,c[p[7]="LINK_CARD"]=7,c}(),d.ParagraphAlign=function(){let p={},c=Object.create(p);return c[p[0]="LEFT"]=0,c[p[1]="MIDDLE"]=1,c[p[2]="RIGHT"]=2,c}(),d.ListFormat=function(){function p(c){if(c)for(let e=Object.keys(c),l=0;l>>3){case 1:{i.level=e.int32();break}case 2:{i.order=e.int32();break}case 3:{i.theme=e.string();break}default:e.skipType(n&7);break}}return i},p.fromObject=function(e){if(e instanceof u.opus.Paragraph.ListFormat)return e;let l=new u.opus.Paragraph.ListFormat;return e.level!=null&&(l.level=e.level|0),e.order!=null&&(l.order=e.order|0),e.theme!=null&&(l.theme=String(e.theme)),l},p.toObject=function(e,l){l||(l={});let t={};return l.defaults&&(t.level=0,t.order=0,t.theme=""),e.level!=null&&e.hasOwnProperty("level")&&(t.level=e.level),e.order!=null&&e.hasOwnProperty("order")&&(t.order=e.order),e.theme!=null&&e.hasOwnProperty("theme")&&(t.theme=e.theme),t},p.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},p.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/opus.Paragraph.ListFormat"},p}(),d.ParagraphFormat=function(){function p(c){if(c)for(let e=Object.keys(c),l=0;l>>3){case 1:{i.align=e.int32();break}case 2:{i.listFormat=u.opus.Paragraph.ListFormat.decode(e,e.uint32());break}default:e.skipType(n&7);break}}return i},p.fromObject=function(e){if(e instanceof u.opus.Paragraph.ParagraphFormat)return e;let l=new u.opus.Paragraph.ParagraphFormat;switch(e.align){default:if(typeof e.align=="number"){l.align=e.align;break}break;case"LEFT":case 0:l.align=0;break;case"MIDDLE":case 1:l.align=1;break;case"RIGHT":case 2:l.align=2;break}if(e.listFormat!=null){if(typeof e.listFormat!="object")throw TypeError(".opus.Paragraph.ParagraphFormat.listFormat: object expected");l.listFormat=u.opus.Paragraph.ListFormat.fromObject(e.listFormat)}return l},p.toObject=function(e,l){l||(l={});let t={};return l.defaults&&(t.align=l.enums===String?"LEFT":0,t.listFormat=null),e.align!=null&&e.hasOwnProperty("align")&&(t.align=l.enums===String?u.opus.Paragraph.ParagraphAlign[e.align]===void 0?e.align:u.opus.Paragraph.ParagraphAlign[e.align]:e.align),e.listFormat!=null&&e.hasOwnProperty("listFormat")&&(t.listFormat=u.opus.Paragraph.ListFormat.toObject(e.listFormat,l)),t},p.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},p.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/opus.Paragraph.ParagraphFormat"},p}(),d}(),O.TextParagraph=function(){function d(p){if(this.nodes=[],p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.nodes&&t.nodes.length||(t.nodes=[]),t.nodes.push(u.opus.TextNode.decode(c,c.uint32()));break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.opus.TextParagraph)return c;let e=new u.opus.TextParagraph;if(c.nodes){if(!Array.isArray(c.nodes))throw TypeError(".opus.TextParagraph.nodes: array expected");e.nodes=[];for(let l=0;l>>3){case 1:{t.nodeType=c.int32();break}case 2:{t.word=u.opus.WordNode.decode(c,c.uint32());break}case 3:{t.emote=u.opus.EmoteNode.decode(c,c.uint32());break}case 4:{t.link=u.opus.LinkNode.decode(c,c.uint32());break}case 5:{t.formula=u.opus.FormulaNode.decode(c,c.uint32());break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.opus.TextNode)return c;let e=new u.opus.TextNode;switch(c.nodeType){default:if(typeof c.nodeType=="number"){e.nodeType=c.nodeType;break}break;case"DEFAULT":case 0:e.nodeType=0;break;case"WORDS":case 1:e.nodeType=1;break;case"EMOTE":case 2:e.nodeType=2;break;case"AT":case 3:e.nodeType=3;break;case"BIZ_LINK":case 4:e.nodeType=4;break;case"FORMULA":case 5:e.nodeType=5;break}if(c.word!=null){if(typeof c.word!="object")throw TypeError(".opus.TextNode.word: object expected");e.word=u.opus.WordNode.fromObject(c.word)}if(c.emote!=null){if(typeof c.emote!="object")throw TypeError(".opus.TextNode.emote: object expected");e.emote=u.opus.EmoteNode.fromObject(c.emote)}if(c.link!=null){if(typeof c.link!="object")throw TypeError(".opus.TextNode.link: object expected");e.link=u.opus.LinkNode.fromObject(c.link)}if(c.formula!=null){if(typeof c.formula!="object")throw TypeError(".opus.TextNode.formula: object expected");e.formula=u.opus.FormulaNode.fromObject(c.formula)}return e},d.toObject=function(c,e){e||(e={});let l={};return e.defaults&&(l.nodeType=e.enums===String?"DEFAULT":0,l.word=null,l.emote=null,l.link=null,l.formula=null),c.nodeType!=null&&c.hasOwnProperty("nodeType")&&(l.nodeType=e.enums===String?u.opus.TextNode.TextNodeType[c.nodeType]===void 0?c.nodeType:u.opus.TextNode.TextNodeType[c.nodeType]:c.nodeType),c.word!=null&&c.hasOwnProperty("word")&&(l.word=u.opus.WordNode.toObject(c.word,e)),c.emote!=null&&c.hasOwnProperty("emote")&&(l.emote=u.opus.EmoteNode.toObject(c.emote,e)),c.link!=null&&c.hasOwnProperty("link")&&(l.link=u.opus.LinkNode.toObject(c.link,e)),c.formula!=null&&c.hasOwnProperty("formula")&&(l.formula=u.opus.FormulaNode.toObject(c.formula,e)),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/opus.TextNode"},d.TextNodeType=function(){let p={},c=Object.create(p);return c[p[0]="DEFAULT"]=0,c[p[1]="WORDS"]=1,c[p[2]="EMOTE"]=2,c[p[3]="AT"]=3,c[p[4]="BIZ_LINK"]=4,c[p[5]="FORMULA"]=5,c}(),d}(),O.WordNode=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.words=c.string();break}case 2:{t.fontSize=c.double();break}case 3:{t.color=c.string();break}case 4:{t.darkColor=c.string();break}case 5:{t.style=u.opus.WordNode.WordNodeStyle.decode(c,c.uint32());break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.opus.WordNode)return c;let e=new u.opus.WordNode;if(c.words!=null&&(e.words=String(c.words)),c.fontSize!=null&&(e.fontSize=Number(c.fontSize)),c.color!=null&&(e.color=String(c.color)),c.darkColor!=null&&(e.darkColor=String(c.darkColor)),c.style!=null){if(typeof c.style!="object")throw TypeError(".opus.WordNode.style: object expected");e.style=u.opus.WordNode.WordNodeStyle.fromObject(c.style)}return e},d.toObject=function(c,e){e||(e={});let l={};return e.defaults&&(l.words="",l.fontSize=0,l.color="",l.darkColor="",l.style=null),c.words!=null&&c.hasOwnProperty("words")&&(l.words=c.words),c.fontSize!=null&&c.hasOwnProperty("fontSize")&&(l.fontSize=e.json&&!isFinite(c.fontSize)?String(c.fontSize):c.fontSize),c.color!=null&&c.hasOwnProperty("color")&&(l.color=c.color),c.darkColor!=null&&c.hasOwnProperty("darkColor")&&(l.darkColor=c.darkColor),c.style!=null&&c.hasOwnProperty("style")&&(l.style=u.opus.WordNode.WordNodeStyle.toObject(c.style,e)),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/opus.WordNode"},d.WordNodeStyle=function(){function p(c){if(c)for(let e=Object.keys(c),l=0;l>>3){case 1:{i.bold=e.bool();break}case 2:{i.italic=e.bool();break}case 3:{i.strikethrough=e.bool();break}case 4:{i.underline=e.bool();break}default:e.skipType(n&7);break}}return i},p.fromObject=function(e){if(e instanceof u.opus.WordNode.WordNodeStyle)return e;let l=new u.opus.WordNode.WordNodeStyle;return e.bold!=null&&(l.bold=!!e.bold),e.italic!=null&&(l.italic=!!e.italic),e.strikethrough!=null&&(l.strikethrough=!!e.strikethrough),e.underline!=null&&(l.underline=!!e.underline),l},p.toObject=function(e,l){l||(l={});let t={};return l.defaults&&(t.bold=!1,t.italic=!1,t.strikethrough=!1,t.underline=!1),e.bold!=null&&e.hasOwnProperty("bold")&&(t.bold=e.bold),e.italic!=null&&e.hasOwnProperty("italic")&&(t.italic=e.italic),e.strikethrough!=null&&e.hasOwnProperty("strikethrough")&&(t.strikethrough=e.strikethrough),e.underline!=null&&e.hasOwnProperty("underline")&&(t.underline=e.underline),t},p.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},p.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/opus.WordNode.WordNodeStyle"},p}(),d}(),O.EmoteNode=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.rawText=c.string();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.opus.EmoteNode)return c;let e=new u.opus.EmoteNode;return c.rawText!=null&&(e.rawText=String(c.rawText)),e},d.toObject=function(c,e){e||(e={});let l={};return e.defaults&&(l.rawText=""),c.rawText!=null&&c.hasOwnProperty("rawText")&&(l.rawText=c.rawText),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/opus.EmoteNode"},d}(),O.LinkNode=function(){function d(p){if(this.pics=[],p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.showText=c.string();break}case 2:{t.link=c.string();break}case 3:{t.icon=c.string();break}case 4:{t.iconSuffix=c.string();break}case 5:{t.linkType=c.int32();break}case 6:{t.bizId=c.string();break}case 7:{t.videoTs=u.opus.VideoTs.decode(c,c.uint32());break}case 8:{t.style=u.opus.LinkNode.LinkNodeStyle.decode(c,c.uint32());break}case 9:{t.pics&&t.pics.length||(t.pics=[]),t.pics.push(u.opus.Pic.decode(c,c.uint32()));break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.opus.LinkNode)return c;let e=new u.opus.LinkNode;switch(c.showText!=null&&(e.showText=String(c.showText)),c.link!=null&&(e.link=String(c.link)),c.icon!=null&&(e.icon=String(c.icon)),c.iconSuffix!=null&&(e.iconSuffix=String(c.iconSuffix)),c.linkType){default:if(typeof c.linkType=="number"){e.linkType=c.linkType;break}break;case"DEFAULT":case 0:e.linkType=0;break;case"VIDEO":case 1:e.linkType=1;break;case"RESERVE":case 2:e.linkType=2;break;case"VOTE":case 3:e.linkType=3;break;case"LIVE":case 4:e.linkType=4;break;case"LOTTERY":case 5:e.linkType=5;break;case"MATCH":case 6:e.linkType=6;break;case"GOODS":case 7:e.linkType=7;break;case"OGV_SS":case 8:e.linkType=8;break;case"OGV_EP":case 9:e.linkType=9;break;case"MANGA":case 10:e.linkType=10;break;case"CHEESE":case 11:e.linkType=11;break;case"VIDEO_TS":case 12:e.linkType=12;break;case"AT":case 13:e.linkType=13;break;case"HASH_TAG":case 14:e.linkType=14;break;case"CV":case 15:e.linkType=15;break;case"URL":case 16:e.linkType=16;break;case"MAIL":case 17:e.linkType=17;break;case"LBS":case 18:e.linkType=18;break;case"ACTIVITY":case 19:e.linkType=19;break;case"ATTACH_CARD_OFFICIAL_ACTIVITY":case 20:e.linkType=20;break;case"GAME":case 21:e.linkType=21;break;case"DECORATION":case 22:e.linkType=22;break;case"UP_TOPIC":case 23:e.linkType=23;break;case"UP_ACTIVITY":case 24:e.linkType=24;break;case"UP_MAOER":case 25:e.linkType=25;break;case"MEMBER_GOODS":case 26:e.linkType=26;break;case"OPENMALL_UP_ITEMS":case 27:e.linkType=27;break;case"MUSIC":case 29:e.linkType=29;break;case"MEMBER_TICKET":case 31:e.linkType=31;break;case"REPOST_PIC_URL":case 32:e.linkType=32;break;case"REPOST_PIC_DYN_URL":case 33:e.linkType=33;break;case"OGV_FOLLOW_CARD":case 34:e.linkType=34;break}if(c.bizId!=null&&(e.bizId=String(c.bizId)),c.videoTs!=null){if(typeof c.videoTs!="object")throw TypeError(".opus.LinkNode.videoTs: object expected");e.videoTs=u.opus.VideoTs.fromObject(c.videoTs)}if(c.style!=null){if(typeof c.style!="object")throw TypeError(".opus.LinkNode.style: object expected");e.style=u.opus.LinkNode.LinkNodeStyle.fromObject(c.style)}if(c.pics){if(!Array.isArray(c.pics))throw TypeError(".opus.LinkNode.pics: array expected");e.pics=[];for(let l=0;l>>3){case 1:{i.bold=e.bool();break}case 2:{i.italic=e.bool();break}case 3:{i.strikethrough=e.bool();break}case 4:{i.underline=e.bool();break}case 5:{i.fontSize=e.double();break}default:e.skipType(n&7);break}}return i},p.fromObject=function(e){if(e instanceof u.opus.LinkNode.LinkNodeStyle)return e;let l=new u.opus.LinkNode.LinkNodeStyle;return e.bold!=null&&(l.bold=!!e.bold),e.italic!=null&&(l.italic=!!e.italic),e.strikethrough!=null&&(l.strikethrough=!!e.strikethrough),e.underline!=null&&(l.underline=!!e.underline),e.fontSize!=null&&(l.fontSize=Number(e.fontSize)),l},p.toObject=function(e,l){l||(l={});let t={};return l.defaults&&(t.bold=!1,t.italic=!1,t.strikethrough=!1,t.underline=!1,t.fontSize=0),e.bold!=null&&e.hasOwnProperty("bold")&&(t.bold=e.bold),e.italic!=null&&e.hasOwnProperty("italic")&&(t.italic=e.italic),e.strikethrough!=null&&e.hasOwnProperty("strikethrough")&&(t.strikethrough=e.strikethrough),e.underline!=null&&e.hasOwnProperty("underline")&&(t.underline=e.underline),e.fontSize!=null&&e.hasOwnProperty("fontSize")&&(t.fontSize=l.json&&!isFinite(e.fontSize)?String(e.fontSize):e.fontSize),t},p.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},p.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/opus.LinkNode.LinkNodeStyle"},p}(),d}(),O.FormulaNode=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.latexContent=c.string();break}case 2:{t.pic=u.opus.Pic.decode(c,c.uint32());break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.opus.FormulaNode)return c;let e=new u.opus.FormulaNode;if(c.latexContent!=null&&(e.latexContent=String(c.latexContent)),c.pic!=null){if(typeof c.pic!="object")throw TypeError(".opus.FormulaNode.pic: object expected");e.pic=u.opus.Pic.fromObject(c.pic)}return e},d.toObject=function(c,e){e||(e={});let l={};return e.defaults&&(l.latexContent="",l.pic=null),c.latexContent!=null&&c.hasOwnProperty("latexContent")&&(l.latexContent=c.latexContent),c.pic!=null&&c.hasOwnProperty("pic")&&(l.pic=u.opus.Pic.toObject(c.pic,e)),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/opus.FormulaNode"},d}(),O.VideoTs=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.cid=c.int64();break}case 2:{t.oidType=c.int64();break}case 3:{t.status=c.int64();break}case 4:{t.index=c.int64();break}case 5:{t.seconds=c.int64();break}case 6:{t.cidCount=c.int64();break}case 7:{t.key=c.string();break}case 8:{t.title=c.string();break}case 9:{t.epid=c.int64();break}case 10:{t.desc=c.string();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.opus.VideoTs)return c;let e=new u.opus.VideoTs;return c.cid!=null&&(r.Long?(e.cid=r.Long.fromValue(c.cid)).unsigned=!1:typeof c.cid=="string"?e.cid=parseInt(c.cid,10):typeof c.cid=="number"?e.cid=c.cid:typeof c.cid=="object"&&(e.cid=new r.LongBits(c.cid.low>>>0,c.cid.high>>>0).toNumber())),c.oidType!=null&&(r.Long?(e.oidType=r.Long.fromValue(c.oidType)).unsigned=!1:typeof c.oidType=="string"?e.oidType=parseInt(c.oidType,10):typeof c.oidType=="number"?e.oidType=c.oidType:typeof c.oidType=="object"&&(e.oidType=new r.LongBits(c.oidType.low>>>0,c.oidType.high>>>0).toNumber())),c.status!=null&&(r.Long?(e.status=r.Long.fromValue(c.status)).unsigned=!1:typeof c.status=="string"?e.status=parseInt(c.status,10):typeof c.status=="number"?e.status=c.status:typeof c.status=="object"&&(e.status=new r.LongBits(c.status.low>>>0,c.status.high>>>0).toNumber())),c.index!=null&&(r.Long?(e.index=r.Long.fromValue(c.index)).unsigned=!1:typeof c.index=="string"?e.index=parseInt(c.index,10):typeof c.index=="number"?e.index=c.index:typeof c.index=="object"&&(e.index=new r.LongBits(c.index.low>>>0,c.index.high>>>0).toNumber())),c.seconds!=null&&(r.Long?(e.seconds=r.Long.fromValue(c.seconds)).unsigned=!1:typeof c.seconds=="string"?e.seconds=parseInt(c.seconds,10):typeof c.seconds=="number"?e.seconds=c.seconds:typeof c.seconds=="object"&&(e.seconds=new r.LongBits(c.seconds.low>>>0,c.seconds.high>>>0).toNumber())),c.cidCount!=null&&(r.Long?(e.cidCount=r.Long.fromValue(c.cidCount)).unsigned=!1:typeof c.cidCount=="string"?e.cidCount=parseInt(c.cidCount,10):typeof c.cidCount=="number"?e.cidCount=c.cidCount:typeof c.cidCount=="object"&&(e.cidCount=new r.LongBits(c.cidCount.low>>>0,c.cidCount.high>>>0).toNumber())),c.key!=null&&(e.key=String(c.key)),c.title!=null&&(e.title=String(c.title)),c.epid!=null&&(r.Long?(e.epid=r.Long.fromValue(c.epid)).unsigned=!1:typeof c.epid=="string"?e.epid=parseInt(c.epid,10):typeof c.epid=="number"?e.epid=c.epid:typeof c.epid=="object"&&(e.epid=new r.LongBits(c.epid.low>>>0,c.epid.high>>>0).toNumber())),c.desc!=null&&(e.desc=String(c.desc)),e},d.toObject=function(c,e){e||(e={});let l={};if(e.defaults){if(r.Long){let t=new r.Long(0,0,!1);l.cid=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.cid=e.longs===String?"0":0;if(r.Long){let t=new r.Long(0,0,!1);l.oidType=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.oidType=e.longs===String?"0":0;if(r.Long){let t=new r.Long(0,0,!1);l.status=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.status=e.longs===String?"0":0;if(r.Long){let t=new r.Long(0,0,!1);l.index=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.index=e.longs===String?"0":0;if(r.Long){let t=new r.Long(0,0,!1);l.seconds=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.seconds=e.longs===String?"0":0;if(r.Long){let t=new r.Long(0,0,!1);l.cidCount=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.cidCount=e.longs===String?"0":0;if(l.key="",l.title="",r.Long){let t=new r.Long(0,0,!1);l.epid=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.epid=e.longs===String?"0":0;l.desc=""}return c.cid!=null&&c.hasOwnProperty("cid")&&(typeof c.cid=="number"?l.cid=e.longs===String?String(c.cid):c.cid:l.cid=e.longs===String?r.Long.prototype.toString.call(c.cid):e.longs===Number?new r.LongBits(c.cid.low>>>0,c.cid.high>>>0).toNumber():c.cid),c.oidType!=null&&c.hasOwnProperty("oidType")&&(typeof c.oidType=="number"?l.oidType=e.longs===String?String(c.oidType):c.oidType:l.oidType=e.longs===String?r.Long.prototype.toString.call(c.oidType):e.longs===Number?new r.LongBits(c.oidType.low>>>0,c.oidType.high>>>0).toNumber():c.oidType),c.status!=null&&c.hasOwnProperty("status")&&(typeof c.status=="number"?l.status=e.longs===String?String(c.status):c.status:l.status=e.longs===String?r.Long.prototype.toString.call(c.status):e.longs===Number?new r.LongBits(c.status.low>>>0,c.status.high>>>0).toNumber():c.status),c.index!=null&&c.hasOwnProperty("index")&&(typeof c.index=="number"?l.index=e.longs===String?String(c.index):c.index:l.index=e.longs===String?r.Long.prototype.toString.call(c.index):e.longs===Number?new r.LongBits(c.index.low>>>0,c.index.high>>>0).toNumber():c.index),c.seconds!=null&&c.hasOwnProperty("seconds")&&(typeof c.seconds=="number"?l.seconds=e.longs===String?String(c.seconds):c.seconds:l.seconds=e.longs===String?r.Long.prototype.toString.call(c.seconds):e.longs===Number?new r.LongBits(c.seconds.low>>>0,c.seconds.high>>>0).toNumber():c.seconds),c.cidCount!=null&&c.hasOwnProperty("cidCount")&&(typeof c.cidCount=="number"?l.cidCount=e.longs===String?String(c.cidCount):c.cidCount:l.cidCount=e.longs===String?r.Long.prototype.toString.call(c.cidCount):e.longs===Number?new r.LongBits(c.cidCount.low>>>0,c.cidCount.high>>>0).toNumber():c.cidCount),c.key!=null&&c.hasOwnProperty("key")&&(l.key=c.key),c.title!=null&&c.hasOwnProperty("title")&&(l.title=c.title),c.epid!=null&&c.hasOwnProperty("epid")&&(typeof c.epid=="number"?l.epid=e.longs===String?String(c.epid):c.epid:l.epid=e.longs===String?r.Long.prototype.toString.call(c.epid):e.longs===Number?new r.LongBits(c.epid.low>>>0,c.epid.high>>>0).toNumber():c.epid),c.desc!=null&&c.hasOwnProperty("desc")&&(l.desc=c.desc),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/opus.VideoTs"},d}(),O.PicParagraph=function(){function d(p){if(this.pics=[],p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.pics&&t.pics.length||(t.pics=[]),t.pics.push(u.opus.Pic.decode(c,c.uint32()));break}case 2:{t.style=c.int32();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.opus.PicParagraph)return c;let e=new u.opus.PicParagraph;if(c.pics){if(!Array.isArray(c.pics))throw TypeError(".opus.PicParagraph.pics: array expected");e.pics=[];for(let l=0;l>>3){case 1:{t.url=c.string();break}case 2:{t.width=c.double();break}case 3:{t.height=c.double();break}case 4:{t.size=c.double();break}case 5:{t.comment=c.string();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.opus.Pic)return c;let e=new u.opus.Pic;return c.url!=null&&(e.url=String(c.url)),c.width!=null&&(e.width=Number(c.width)),c.height!=null&&(e.height=Number(c.height)),c.size!=null&&(e.size=Number(c.size)),c.comment!=null&&(e.comment=String(c.comment)),e},d.toObject=function(c,e){e||(e={});let l={};return e.defaults&&(l.url="",l.width=0,l.height=0,l.size=0,l.comment=""),c.url!=null&&c.hasOwnProperty("url")&&(l.url=c.url),c.width!=null&&c.hasOwnProperty("width")&&(l.width=e.json&&!isFinite(c.width)?String(c.width):c.width),c.height!=null&&c.hasOwnProperty("height")&&(l.height=e.json&&!isFinite(c.height)?String(c.height):c.height),c.size!=null&&c.hasOwnProperty("size")&&(l.size=e.json&&!isFinite(c.size)?String(c.size):c.size),c.comment!=null&&c.hasOwnProperty("comment")&&(l.comment=c.comment),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/opus.Pic"},d}(),O.LineParagraph=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.pic=u.opus.Pic.decode(c,c.uint32());break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.opus.LineParagraph)return c;let e=new u.opus.LineParagraph;if(c.pic!=null){if(typeof c.pic!="object")throw TypeError(".opus.LineParagraph.pic: object expected");e.pic=u.opus.Pic.fromObject(c.pic)}return e},d.toObject=function(c,e){e||(e={});let l={};return e.defaults&&(l.pic=null),c.pic!=null&&c.hasOwnProperty("pic")&&(l.pic=u.opus.Pic.toObject(c.pic,e)),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/opus.LineParagraph"},d}(),O.CardParagraph=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.card=u.opus.LinkNode.decode(c,c.uint32());break}case 2:{t.defaultText=c.string();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.opus.CardParagraph)return c;let e=new u.opus.CardParagraph;if(c.card!=null){if(typeof c.card!="object")throw TypeError(".opus.CardParagraph.card: object expected");e.card=u.opus.LinkNode.fromObject(c.card)}return c.defaultText!=null&&(e.defaultText=String(c.defaultText)),e},d.toObject=function(c,e){e||(e={});let l={};return e.defaults&&(l.card=null,l.defaultText=""),c.card!=null&&c.hasOwnProperty("card")&&(l.card=u.opus.LinkNode.toObject(c.card,e)),c.defaultText!=null&&c.hasOwnProperty("defaultText")&&(l.defaultText=c.defaultText),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/opus.CardParagraph"},d}(),O.OpusTag=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.tag=u.opus.LinkNode.decode(c,c.uint32());break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.opus.OpusTag)return c;let e=new u.opus.OpusTag;if(c.tag!=null){if(typeof c.tag!="object")throw TypeError(".opus.OpusTag.tag: object expected");e.tag=u.opus.LinkNode.fromObject(c.tag)}return e},d.toObject=function(c,e){e||(e={});let l={};return e.defaults&&(l.tag=null),c.tag!=null&&c.hasOwnProperty("tag")&&(l.tag=u.opus.LinkNode.toObject(c.tag,e)),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/opus.OpusTag"},d}(),O.CodeParagraph=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.lang=c.string();break}case 2:{t.content=c.string();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.opus.CodeParagraph)return c;let e=new u.opus.CodeParagraph;return c.lang!=null&&(e.lang=String(c.lang)),c.content!=null&&(e.content=String(c.content)),e},d.toObject=function(c,e){e||(e={});let l={};return e.defaults&&(l.lang="",l.content=""),c.lang!=null&&c.hasOwnProperty("lang")&&(l.lang=c.lang),c.content!=null&&c.hasOwnProperty("content")&&(l.content=c.content),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/opus.CodeParagraph"},d}(),O})(),jr=u.vote=(()=>{let O={};return O.VoteInfo=function(){function d(p){if(this.myVotes=[],this.options=[],this.voteBizInfo=[],p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.voteId=c.int64();break}case 2:{t.title=c.string();break}case 3:{t.desc=c.string();break}case 4:{t.joinNum=c.int64();break}case 5:{t.type=c.int32();break}case 6:{t.choiceCnt=c.int32();break}case 7:{t.endTime=c.int64();break}case 8:{t.status=c.int32();break}case 9:{t.votePublisher=c.int64();break}case 10:{t.defaultShare=c.int32();break}case 11:{t.ctime=c.int64();break}case 12:{t.bizType=c.int32();break}case 13:{t.imgUrl=c.string();break}case 14:{if(t.myVotes&&t.myVotes.length||(t.myVotes=[]),(i&7)===2){let n=c.uint32()+c.pos;for(;c.pos>>0,c.voteId.high>>>0).toNumber())),c.title!=null&&(e.title=String(c.title)),c.desc!=null&&(e.desc=String(c.desc)),c.joinNum!=null&&(r.Long?(e.joinNum=r.Long.fromValue(c.joinNum)).unsigned=!1:typeof c.joinNum=="string"?e.joinNum=parseInt(c.joinNum,10):typeof c.joinNum=="number"?e.joinNum=c.joinNum:typeof c.joinNum=="object"&&(e.joinNum=new r.LongBits(c.joinNum.low>>>0,c.joinNum.high>>>0).toNumber())),c.type!=null&&(e.type=c.type|0),c.choiceCnt!=null&&(e.choiceCnt=c.choiceCnt|0),c.endTime!=null&&(r.Long?(e.endTime=r.Long.fromValue(c.endTime)).unsigned=!1:typeof c.endTime=="string"?e.endTime=parseInt(c.endTime,10):typeof c.endTime=="number"?e.endTime=c.endTime:typeof c.endTime=="object"&&(e.endTime=new r.LongBits(c.endTime.low>>>0,c.endTime.high>>>0).toNumber())),c.status!=null&&(e.status=c.status|0),c.votePublisher!=null&&(r.Long?(e.votePublisher=r.Long.fromValue(c.votePublisher)).unsigned=!1:typeof c.votePublisher=="string"?e.votePublisher=parseInt(c.votePublisher,10):typeof c.votePublisher=="number"?e.votePublisher=c.votePublisher:typeof c.votePublisher=="object"&&(e.votePublisher=new r.LongBits(c.votePublisher.low>>>0,c.votePublisher.high>>>0).toNumber())),c.defaultShare!=null&&(e.defaultShare=c.defaultShare|0),c.ctime!=null&&(r.Long?(e.ctime=r.Long.fromValue(c.ctime)).unsigned=!1:typeof c.ctime=="string"?e.ctime=parseInt(c.ctime,10):typeof c.ctime=="number"?e.ctime=c.ctime:typeof c.ctime=="object"&&(e.ctime=new r.LongBits(c.ctime.low>>>0,c.ctime.high>>>0).toNumber())),c.bizType!=null&&(e.bizType=c.bizType|0),c.imgUrl!=null&&(e.imgUrl=String(c.imgUrl)),c.myVotes){if(!Array.isArray(c.myVotes))throw TypeError(".vote.VoteInfo.myVotes: array expected");e.myVotes=[];for(let l=0;l>>0,c.startTime.high>>>0).toNumber())),c.voterUid!=null&&(r.Long?(e.voterUid=r.Long.fromValue(c.voterUid)).unsigned=!1:typeof c.voterUid=="string"?e.voterUid=parseInt(c.voterUid,10):typeof c.voterUid=="number"?e.voterUid=c.voterUid:typeof c.voterUid=="object"&&(e.voterUid=new r.LongBits(c.voterUid.low>>>0,c.voterUid.high>>>0).toNumber())),c.voterLevel!=null&&(e.voterLevel=c.voterLevel|0),c.duration!=null&&(r.Long?(e.duration=r.Long.fromValue(c.duration)).unsigned=!1:typeof c.duration=="string"?e.duration=parseInt(c.duration,10):typeof c.duration=="number"?e.duration=c.duration:typeof c.duration=="object"&&(e.duration=new r.LongBits(c.duration.low>>>0,c.duration.high>>>0).toNumber())),c.voteBizInfo){if(!Array.isArray(c.voteBizInfo))throw TypeError(".vote.VoteInfo.voteBizInfo: array expected");e.voteBizInfo=[];for(let l=0;l>>0,c.onlyFansLevel.high>>>0).toNumber())),e},d.toObject=function(c,e){e||(e={});let l={};if((e.arrays||e.defaults)&&(l.myVotes=[],l.options=[],l.voteBizInfo=[]),e.defaults){if(r.Long){let t=new r.Long(0,0,!1);l.voteId=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.voteId=e.longs===String?"0":0;if(l.title="",l.desc="",r.Long){let t=new r.Long(0,0,!1);l.joinNum=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.joinNum=e.longs===String?"0":0;if(l.type=0,l.choiceCnt=0,r.Long){let t=new r.Long(0,0,!1);l.endTime=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.endTime=e.longs===String?"0":0;if(l.status=0,r.Long){let t=new r.Long(0,0,!1);l.votePublisher=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.votePublisher=e.longs===String?"0":0;if(l.defaultShare=0,r.Long){let t=new r.Long(0,0,!1);l.ctime=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.ctime=e.longs===String?"0":0;if(l.bizType=0,l.imgUrl="",l.optionsCnt=0,r.Long){let t=new r.Long(0,0,!1);l.startTime=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.startTime=e.longs===String?"0":0;if(r.Long){let t=new r.Long(0,0,!1);l.voterUid=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.voterUid=e.longs===String?"0":0;if(l.voterLevel=0,r.Long){let t=new r.Long(0,0,!1);l.duration=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.duration=e.longs===String?"0":0;if(l.face="",l.name="",r.Long){let t=new r.Long(0,0,!1);l.onlyFansLevel=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.onlyFansLevel=e.longs===String?"0":0}if(c.voteId!=null&&c.hasOwnProperty("voteId")&&(typeof c.voteId=="number"?l.voteId=e.longs===String?String(c.voteId):c.voteId:l.voteId=e.longs===String?r.Long.prototype.toString.call(c.voteId):e.longs===Number?new r.LongBits(c.voteId.low>>>0,c.voteId.high>>>0).toNumber():c.voteId),c.title!=null&&c.hasOwnProperty("title")&&(l.title=c.title),c.desc!=null&&c.hasOwnProperty("desc")&&(l.desc=c.desc),c.joinNum!=null&&c.hasOwnProperty("joinNum")&&(typeof c.joinNum=="number"?l.joinNum=e.longs===String?String(c.joinNum):c.joinNum:l.joinNum=e.longs===String?r.Long.prototype.toString.call(c.joinNum):e.longs===Number?new r.LongBits(c.joinNum.low>>>0,c.joinNum.high>>>0).toNumber():c.joinNum),c.type!=null&&c.hasOwnProperty("type")&&(l.type=c.type),c.choiceCnt!=null&&c.hasOwnProperty("choiceCnt")&&(l.choiceCnt=c.choiceCnt),c.endTime!=null&&c.hasOwnProperty("endTime")&&(typeof c.endTime=="number"?l.endTime=e.longs===String?String(c.endTime):c.endTime:l.endTime=e.longs===String?r.Long.prototype.toString.call(c.endTime):e.longs===Number?new r.LongBits(c.endTime.low>>>0,c.endTime.high>>>0).toNumber():c.endTime),c.status!=null&&c.hasOwnProperty("status")&&(l.status=c.status),c.votePublisher!=null&&c.hasOwnProperty("votePublisher")&&(typeof c.votePublisher=="number"?l.votePublisher=e.longs===String?String(c.votePublisher):c.votePublisher:l.votePublisher=e.longs===String?r.Long.prototype.toString.call(c.votePublisher):e.longs===Number?new r.LongBits(c.votePublisher.low>>>0,c.votePublisher.high>>>0).toNumber():c.votePublisher),c.defaultShare!=null&&c.hasOwnProperty("defaultShare")&&(l.defaultShare=c.defaultShare),c.ctime!=null&&c.hasOwnProperty("ctime")&&(typeof c.ctime=="number"?l.ctime=e.longs===String?String(c.ctime):c.ctime:l.ctime=e.longs===String?r.Long.prototype.toString.call(c.ctime):e.longs===Number?new r.LongBits(c.ctime.low>>>0,c.ctime.high>>>0).toNumber():c.ctime),c.bizType!=null&&c.hasOwnProperty("bizType")&&(l.bizType=c.bizType),c.imgUrl!=null&&c.hasOwnProperty("imgUrl")&&(l.imgUrl=c.imgUrl),c.myVotes&&c.myVotes.length){l.myVotes=[];for(let t=0;t>>0,c.startTime.high>>>0).toNumber():c.startTime),c.voterUid!=null&&c.hasOwnProperty("voterUid")&&(typeof c.voterUid=="number"?l.voterUid=e.longs===String?String(c.voterUid):c.voterUid:l.voterUid=e.longs===String?r.Long.prototype.toString.call(c.voterUid):e.longs===Number?new r.LongBits(c.voterUid.low>>>0,c.voterUid.high>>>0).toNumber():c.voterUid),c.voterLevel!=null&&c.hasOwnProperty("voterLevel")&&(l.voterLevel=c.voterLevel),c.duration!=null&&c.hasOwnProperty("duration")&&(typeof c.duration=="number"?l.duration=e.longs===String?String(c.duration):c.duration:l.duration=e.longs===String?r.Long.prototype.toString.call(c.duration):e.longs===Number?new r.LongBits(c.duration.low>>>0,c.duration.high>>>0).toNumber():c.duration),c.voteBizInfo&&c.voteBizInfo.length){l.voteBizInfo=[];for(let t=0;t>>0,c.onlyFansLevel.high>>>0).toNumber():c.onlyFansLevel),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/vote.VoteInfo"},d}(),O.VoteBizInfo=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.bizId=c.int64();break}case 2:{t.bizType=c.int32();break}case 3:{t.bizExt=c.string();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.vote.VoteBizInfo)return c;let e=new u.vote.VoteBizInfo;return c.bizId!=null&&(r.Long?(e.bizId=r.Long.fromValue(c.bizId)).unsigned=!1:typeof c.bizId=="string"?e.bizId=parseInt(c.bizId,10):typeof c.bizId=="number"?e.bizId=c.bizId:typeof c.bizId=="object"&&(e.bizId=new r.LongBits(c.bizId.low>>>0,c.bizId.high>>>0).toNumber())),c.bizType!=null&&(e.bizType=c.bizType|0),c.bizExt!=null&&(e.bizExt=String(c.bizExt)),e},d.toObject=function(c,e){e||(e={});let l={};if(e.defaults){if(r.Long){let t=new r.Long(0,0,!1);l.bizId=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.bizId=e.longs===String?"0":0;l.bizType=0,l.bizExt=""}return c.bizId!=null&&c.hasOwnProperty("bizId")&&(typeof c.bizId=="number"?l.bizId=e.longs===String?String(c.bizId):c.bizId:l.bizId=e.longs===String?r.Long.prototype.toString.call(c.bizId):e.longs===Number?new r.LongBits(c.bizId.low>>>0,c.bizId.high>>>0).toNumber():c.bizId),c.bizType!=null&&c.hasOwnProperty("bizType")&&(l.bizType=c.bizType),c.bizExt!=null&&c.hasOwnProperty("bizExt")&&(l.bizExt=c.bizExt),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/vote.VoteBizInfo"},d}(),O.VoteOptionInfo=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.optIdx=c.int32();break}case 2:{t.optDesc=c.string();break}case 3:{t.imgUrl=c.string();break}case 4:{t.cnt=c.int32();break}case 5:{t.btnStr=c.string();break}case 6:{t.title=c.string();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.vote.VoteOptionInfo)return c;let e=new u.vote.VoteOptionInfo;return c.optIdx!=null&&(e.optIdx=c.optIdx|0),c.optDesc!=null&&(e.optDesc=String(c.optDesc)),c.imgUrl!=null&&(e.imgUrl=String(c.imgUrl)),c.cnt!=null&&(e.cnt=c.cnt|0),c.btnStr!=null&&(e.btnStr=String(c.btnStr)),c.title!=null&&(e.title=String(c.title)),e},d.toObject=function(c,e){e||(e={});let l={};return e.defaults&&(l.optIdx=0,l.optDesc="",l.imgUrl="",l.cnt=0,l.btnStr="",l.title=""),c.optIdx!=null&&c.hasOwnProperty("optIdx")&&(l.optIdx=c.optIdx),c.optDesc!=null&&c.hasOwnProperty("optDesc")&&(l.optDesc=c.optDesc),c.imgUrl!=null&&c.hasOwnProperty("imgUrl")&&(l.imgUrl=c.imgUrl),c.cnt!=null&&c.hasOwnProperty("cnt")&&(l.cnt=c.cnt),c.btnStr!=null&&c.hasOwnProperty("btnStr")&&(l.btnStr=c.btnStr),c.title!=null&&c.hasOwnProperty("title")&&(l.title=c.title),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/vote.VoteOptionInfo"},d}(),O})(),tu=u.gateway=(()=>{let O={};return O.PlayerArgs=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.qn=c.int64();break}case 2:{t.fnver=c.int64();break}case 3:{t.fnval=c.int64();break}case 4:{t.forceHost=c.int64();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.PlayerArgs)return c;let e=new u.gateway.PlayerArgs;return c.qn!=null&&(r.Long?(e.qn=r.Long.fromValue(c.qn)).unsigned=!1:typeof c.qn=="string"?e.qn=parseInt(c.qn,10):typeof c.qn=="number"?e.qn=c.qn:typeof c.qn=="object"&&(e.qn=new r.LongBits(c.qn.low>>>0,c.qn.high>>>0).toNumber())),c.fnver!=null&&(r.Long?(e.fnver=r.Long.fromValue(c.fnver)).unsigned=!1:typeof c.fnver=="string"?e.fnver=parseInt(c.fnver,10):typeof c.fnver=="number"?e.fnver=c.fnver:typeof c.fnver=="object"&&(e.fnver=new r.LongBits(c.fnver.low>>>0,c.fnver.high>>>0).toNumber())),c.fnval!=null&&(r.Long?(e.fnval=r.Long.fromValue(c.fnval)).unsigned=!1:typeof c.fnval=="string"?e.fnval=parseInt(c.fnval,10):typeof c.fnval=="number"?e.fnval=c.fnval:typeof c.fnval=="object"&&(e.fnval=new r.LongBits(c.fnval.low>>>0,c.fnval.high>>>0).toNumber())),c.forceHost!=null&&(r.Long?(e.forceHost=r.Long.fromValue(c.forceHost)).unsigned=!1:typeof c.forceHost=="string"?e.forceHost=parseInt(c.forceHost,10):typeof c.forceHost=="number"?e.forceHost=c.forceHost:typeof c.forceHost=="object"&&(e.forceHost=new r.LongBits(c.forceHost.low>>>0,c.forceHost.high>>>0).toNumber())),e},d.toObject=function(c,e){e||(e={});let l={};if(e.defaults){if(r.Long){let t=new r.Long(0,0,!1);l.qn=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.qn=e.longs===String?"0":0;if(r.Long){let t=new r.Long(0,0,!1);l.fnver=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.fnver=e.longs===String?"0":0;if(r.Long){let t=new r.Long(0,0,!1);l.fnval=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.fnval=e.longs===String?"0":0;if(r.Long){let t=new r.Long(0,0,!1);l.forceHost=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.forceHost=e.longs===String?"0":0}return c.qn!=null&&c.hasOwnProperty("qn")&&(typeof c.qn=="number"?l.qn=e.longs===String?String(c.qn):c.qn:l.qn=e.longs===String?r.Long.prototype.toString.call(c.qn):e.longs===Number?new r.LongBits(c.qn.low>>>0,c.qn.high>>>0).toNumber():c.qn),c.fnver!=null&&c.hasOwnProperty("fnver")&&(typeof c.fnver=="number"?l.fnver=e.longs===String?String(c.fnver):c.fnver:l.fnver=e.longs===String?r.Long.prototype.toString.call(c.fnver):e.longs===Number?new r.LongBits(c.fnver.low>>>0,c.fnver.high>>>0).toNumber():c.fnver),c.fnval!=null&&c.hasOwnProperty("fnval")&&(typeof c.fnval=="number"?l.fnval=e.longs===String?String(c.fnval):c.fnval:l.fnval=e.longs===String?r.Long.prototype.toString.call(c.fnval):e.longs===Number?new r.LongBits(c.fnval.low>>>0,c.fnval.high>>>0).toNumber():c.fnval),c.forceHost!=null&&c.hasOwnProperty("forceHost")&&(typeof c.forceHost=="number"?l.forceHost=e.longs===String?String(c.forceHost):c.forceHost:l.forceHost=e.longs===String?r.Long.prototype.toString.call(c.forceHost):e.longs===Number?new r.LongBits(c.forceHost.low>>>0,c.forceHost.high>>>0).toNumber():c.forceHost),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.PlayerArgs"},d}(),O.NoReq=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){default:c.skipType(i&7);break}}return t},d.fromObject=function(c){return c instanceof u.gateway.NoReq?c:new u.gateway.NoReq},d.toObject=function(){return{}},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.NoReq"},d}(),O.NoReply=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){default:c.skipType(i&7);break}}return t},d.fromObject=function(c){return c instanceof u.gateway.NoReply?c:new u.gateway.NoReply},d.toObject=function(){return{}},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.NoReply"},d}(),O.DynVideoReq=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.updateBaseline=c.string();break}case 2:{t.offset=c.string();break}case 3:{t.page=c.int32();break}case 4:{t.refreshType=c.int32();break}case 5:{t.playurlParam=u.gateway.PlayurlParam.decode(c,c.uint32());break}case 6:{t.assistBaseline=c.string();break}case 7:{t.localTime=c.int32();break}case 8:{t.from=c.string();break}case 9:{t.playerArgs=u.gateway.PlayerArgs.decode(c,c.uint32());break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.DynVideoReq)return c;let e=new u.gateway.DynVideoReq;switch(c.updateBaseline!=null&&(e.updateBaseline=String(c.updateBaseline)),c.offset!=null&&(e.offset=String(c.offset)),c.page!=null&&(e.page=c.page|0),c.refreshType){default:if(typeof c.refreshType=="number"){e.refreshType=c.refreshType;break}break;case"refresh_new":case 0:e.refreshType=0;break;case"refresh_history":case 1:e.refreshType=1;break}if(c.playurlParam!=null){if(typeof c.playurlParam!="object")throw TypeError(".gateway.DynVideoReq.playurlParam: object expected");e.playurlParam=u.gateway.PlayurlParam.fromObject(c.playurlParam)}if(c.assistBaseline!=null&&(e.assistBaseline=String(c.assistBaseline)),c.localTime!=null&&(e.localTime=c.localTime|0),c.from!=null&&(e.from=String(c.from)),c.playerArgs!=null){if(typeof c.playerArgs!="object")throw TypeError(".gateway.DynVideoReq.playerArgs: object expected");e.playerArgs=u.gateway.PlayerArgs.fromObject(c.playerArgs)}return e},d.toObject=function(c,e){e||(e={});let l={};return e.defaults&&(l.updateBaseline="",l.offset="",l.page=0,l.refreshType=e.enums===String?"refresh_new":0,l.playurlParam=null,l.assistBaseline="",l.localTime=0,l.from="",l.playerArgs=null),c.updateBaseline!=null&&c.hasOwnProperty("updateBaseline")&&(l.updateBaseline=c.updateBaseline),c.offset!=null&&c.hasOwnProperty("offset")&&(l.offset=c.offset),c.page!=null&&c.hasOwnProperty("page")&&(l.page=c.page),c.refreshType!=null&&c.hasOwnProperty("refreshType")&&(l.refreshType=e.enums===String?u.gateway.Refresh[c.refreshType]===void 0?c.refreshType:u.gateway.Refresh[c.refreshType]:c.refreshType),c.playurlParam!=null&&c.hasOwnProperty("playurlParam")&&(l.playurlParam=u.gateway.PlayurlParam.toObject(c.playurlParam,e)),c.assistBaseline!=null&&c.hasOwnProperty("assistBaseline")&&(l.assistBaseline=c.assistBaseline),c.localTime!=null&&c.hasOwnProperty("localTime")&&(l.localTime=c.localTime),c.from!=null&&c.hasOwnProperty("from")&&(l.from=c.from),c.playerArgs!=null&&c.hasOwnProperty("playerArgs")&&(l.playerArgs=u.gateway.PlayerArgs.toObject(c.playerArgs,e)),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.DynVideoReq"},d}(),O.Refresh=function(){let d={},p=Object.create(d);return p[d[0]="refresh_new"]=0,p[d[1]="refresh_history"]=1,p}(),O.PlayurlParam=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.qn=c.int32();break}case 2:{t.fnver=c.int32();break}case 3:{t.fnval=c.int32();break}case 4:{t.forceHost=c.int32();break}case 5:{t.fourk=c.int32();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.PlayurlParam)return c;let e=new u.gateway.PlayurlParam;return c.qn!=null&&(e.qn=c.qn|0),c.fnver!=null&&(e.fnver=c.fnver|0),c.fnval!=null&&(e.fnval=c.fnval|0),c.forceHost!=null&&(e.forceHost=c.forceHost|0),c.fourk!=null&&(e.fourk=c.fourk|0),e},d.toObject=function(c,e){e||(e={});let l={};return e.defaults&&(l.qn=0,l.fnver=0,l.fnval=0,l.forceHost=0,l.fourk=0),c.qn!=null&&c.hasOwnProperty("qn")&&(l.qn=c.qn),c.fnver!=null&&c.hasOwnProperty("fnver")&&(l.fnver=c.fnver),c.fnval!=null&&c.hasOwnProperty("fnval")&&(l.fnval=c.fnval),c.forceHost!=null&&c.hasOwnProperty("forceHost")&&(l.forceHost=c.forceHost),c.fourk!=null&&c.hasOwnProperty("fourk")&&(l.fourk=c.fourk),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.PlayurlParam"},d}(),O.DynVideoReply=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.dynamicList=u.gateway.CardVideoDynList.decode(c,c.uint32());break}case 2:{t.videoUpList=u.gateway.CardVideoUpList.decode(c,c.uint32());break}case 3:{t.videoFollowList=u.gateway.CardVideoFollowList.decode(c,c.uint32());break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.DynVideoReply)return c;let e=new u.gateway.DynVideoReply;if(c.dynamicList!=null){if(typeof c.dynamicList!="object")throw TypeError(".gateway.DynVideoReply.dynamicList: object expected");e.dynamicList=u.gateway.CardVideoDynList.fromObject(c.dynamicList)}if(c.videoUpList!=null){if(typeof c.videoUpList!="object")throw TypeError(".gateway.DynVideoReply.videoUpList: object expected");e.videoUpList=u.gateway.CardVideoUpList.fromObject(c.videoUpList)}if(c.videoFollowList!=null){if(typeof c.videoFollowList!="object")throw TypeError(".gateway.DynVideoReply.videoFollowList: object expected");e.videoFollowList=u.gateway.CardVideoFollowList.fromObject(c.videoFollowList)}return e},d.toObject=function(c,e){e||(e={});let l={};return e.defaults&&(l.dynamicList=null,l.videoUpList=null,l.videoFollowList=null),c.dynamicList!=null&&c.hasOwnProperty("dynamicList")&&(l.dynamicList=u.gateway.CardVideoDynList.toObject(c.dynamicList,e)),c.videoUpList!=null&&c.hasOwnProperty("videoUpList")&&(l.videoUpList=u.gateway.CardVideoUpList.toObject(c.videoUpList,e)),c.videoFollowList!=null&&c.hasOwnProperty("videoFollowList")&&(l.videoFollowList=u.gateway.CardVideoFollowList.toObject(c.videoFollowList,e)),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.DynVideoReply"},d}(),O.CardVideoDynList=function(){function d(p){if(this.list=[],p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.list&&t.list.length||(t.list=[]),t.list.push(u.gateway.DynamicItem.decode(c,c.uint32()));break}case 2:{t.updateNum=c.int64();break}case 3:{t.historyOffset=c.string();break}case 4:{t.updateBaseline=c.string();break}case 5:{t.hasMore=c.bool();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.CardVideoDynList)return c;let e=new u.gateway.CardVideoDynList;if(c.list){if(!Array.isArray(c.list))throw TypeError(".gateway.CardVideoDynList.list: array expected");e.list=[];for(let l=0;l>>0,c.updateNum.high>>>0).toNumber())),c.historyOffset!=null&&(e.historyOffset=String(c.historyOffset)),c.updateBaseline!=null&&(e.updateBaseline=String(c.updateBaseline)),c.hasMore!=null&&(e.hasMore=!!c.hasMore),e},d.toObject=function(c,e){e||(e={});let l={};if((e.arrays||e.defaults)&&(l.list=[]),e.defaults){if(r.Long){let t=new r.Long(0,0,!1);l.updateNum=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.updateNum=e.longs===String?"0":0;l.historyOffset="",l.updateBaseline="",l.hasMore=!1}if(c.list&&c.list.length){l.list=[];for(let t=0;t>>0,c.updateNum.high>>>0).toNumber():c.updateNum),c.historyOffset!=null&&c.hasOwnProperty("historyOffset")&&(l.historyOffset=c.historyOffset),c.updateBaseline!=null&&c.hasOwnProperty("updateBaseline")&&(l.updateBaseline=c.updateBaseline),c.hasMore!=null&&c.hasOwnProperty("hasMore")&&(l.hasMore=c.hasMore),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.CardVideoDynList"},d}(),O.DynamicItem=function(){function d(p){if(this.modules=[],p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.cardType=c.int32();break}case 2:{t.itemType=c.int32();break}case 3:{t.modules&&t.modules.length||(t.modules=[]),t.modules.push(u.gateway.Module.decode(c,c.uint32()));break}case 4:{t.extend=u.gateway.Extend.decode(c,c.uint32());break}case 5:{t.hasFold=c.int32();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.DynamicItem)return c;let e=new u.gateway.DynamicItem;switch(c.cardType){default:if(typeof c.cardType=="number"){e.cardType=c.cardType;break}break;case"dyn_none":case 0:e.cardType=0;break;case"forward":case 1:e.cardType=1;break;case"av":case 2:e.cardType=2;break;case"pgc":case 3:e.cardType=3;break;case"courses":case 4:e.cardType=4;break;case"fold":case 5:e.cardType=5;break;case"word":case 6:e.cardType=6;break;case"draw":case 7:e.cardType=7;break;case"article":case 8:e.cardType=8;break;case"music":case 9:e.cardType=9;break;case"common_square":case 10:e.cardType=10;break;case"common_vertical":case 11:e.cardType=11;break;case"live":case 12:e.cardType=12;break;case"medialist":case 13:e.cardType=13;break;case"courses_season":case 14:e.cardType=14;break;case"ad":case 15:e.cardType=15;break;case"applet":case 16:e.cardType=16;break;case"subscription":case 17:e.cardType=17;break;case"live_rcmd":case 18:e.cardType=18;break;case"banner":case 19:e.cardType=19;break;case"ugc_season":case 20:e.cardType=20;break;case"subscription_new":case 21:e.cardType=21;break}switch(c.itemType){default:if(typeof c.itemType=="number"){e.itemType=c.itemType;break}break;case"dyn_none":case 0:e.itemType=0;break;case"forward":case 1:e.itemType=1;break;case"av":case 2:e.itemType=2;break;case"pgc":case 3:e.itemType=3;break;case"courses":case 4:e.itemType=4;break;case"fold":case 5:e.itemType=5;break;case"word":case 6:e.itemType=6;break;case"draw":case 7:e.itemType=7;break;case"article":case 8:e.itemType=8;break;case"music":case 9:e.itemType=9;break;case"common_square":case 10:e.itemType=10;break;case"common_vertical":case 11:e.itemType=11;break;case"live":case 12:e.itemType=12;break;case"medialist":case 13:e.itemType=13;break;case"courses_season":case 14:e.itemType=14;break;case"ad":case 15:e.itemType=15;break;case"applet":case 16:e.itemType=16;break;case"subscription":case 17:e.itemType=17;break;case"live_rcmd":case 18:e.itemType=18;break;case"banner":case 19:e.itemType=19;break;case"ugc_season":case 20:e.itemType=20;break;case"subscription_new":case 21:e.itemType=21;break}if(c.modules){if(!Array.isArray(c.modules))throw TypeError(".gateway.DynamicItem.modules: array expected");e.modules=[];for(let l=0;l>>3){case 1:{i.moduleType=e.int32();break}case 2:{i.moduleAuthor=u.gateway.ModuleAuthor.decode(e,e.uint32());break}case 3:{i.moduleDispute=u.gateway.ModuleDispute.decode(e,e.uint32());break}case 4:{i.moduleDesc=u.gateway.ModuleDesc.decode(e,e.uint32());break}case 5:{i.moduleDynamic=u.gateway.ModuleDynamic.decode(e,e.uint32());break}case 6:{i.moduleLikeUser=u.gateway.ModuleLikeUser.decode(e,e.uint32());break}case 7:{i.moduleExtend=u.gateway.ModuleExtend.decode(e,e.uint32());break}case 8:{i.moduleAdditional=u.gateway.ModuleAdditional.decode(e,e.uint32());break}case 9:{i.moduleStat=u.gateway.ModuleStat.decode(e,e.uint32());break}case 10:{i.moduleFold=u.gateway.ModuleFold.decode(e,e.uint32());break}case 11:{i.moduleComment=u.gateway.ModuleComment.decode(e,e.uint32());break}case 12:{i.moduleInteraction=u.gateway.ModuleInteraction.decode(e,e.uint32());break}case 13:{i.moduleAuthorForward=u.gateway.ModuleAuthorForward.decode(e,e.uint32());break}case 14:{i.moduleAd=u.gateway.ModuleAd.decode(e,e.uint32());break}case 15:{i.moduleBanner=u.gateway.ModuleBanner.decode(e,e.uint32());break}case 16:{i.moduleItemNull=u.gateway.ModuleItemNull.decode(e,e.uint32());break}case 17:{i.moduleShareInfo=u.gateway.ModuleShareInfo.decode(e,e.uint32());break}case 18:{i.moduleRecommend=u.gateway.ModuleRecommend.decode(e,e.uint32());break}case 19:{i.moduleTop=u.gateway.ModuleTop.decode(e,e.uint32());break}case 20:{i.moduleButtom=u.gateway.ModuleButtom.decode(e,e.uint32());break}case 21:{i.moduleStatForward=u.gateway.ModuleStat.decode(e,e.uint32());break}default:e.skipType(n&7);break}}return i},d.fromObject=function(e){if(e instanceof u.gateway.Module)return e;let l=new u.gateway.Module;switch(e.moduleType){default:if(typeof e.moduleType=="number"){l.moduleType=e.moduleType;break}break;case"module_none":case 0:l.moduleType=0;break;case"module_author":case 1:l.moduleType=1;break;case"module_dispute":case 2:l.moduleType=2;break;case"module_desc":case 3:l.moduleType=3;break;case"module_dynamic":case 4:l.moduleType=4;break;case"module_forward":case 5:l.moduleType=5;break;case"module_likeUser":case 6:l.moduleType=6;break;case"module_extend":case 7:l.moduleType=7;break;case"module_additional":case 8:l.moduleType=8;break;case"module_stat":case 9:l.moduleType=9;break;case"module_fold":case 10:l.moduleType=10;break;case"module_comment":case 11:l.moduleType=11;break;case"module_interaction":case 12:l.moduleType=12;break;case"module_author_forward":case 13:l.moduleType=13;break;case"module_ad":case 14:l.moduleType=14;break;case"module_banner":case 15:l.moduleType=15;break;case"module_item_null":case 16:l.moduleType=16;break;case"module_stat_forward":case 19:l.moduleType=19;break;case"module_top":case 20:l.moduleType=20;break;case"module_bottom":case 21:l.moduleType=21;break}if(e.moduleAuthor!=null){if(typeof e.moduleAuthor!="object")throw TypeError(".gateway.Module.moduleAuthor: object expected");l.moduleAuthor=u.gateway.ModuleAuthor.fromObject(e.moduleAuthor)}if(e.moduleDispute!=null){if(typeof e.moduleDispute!="object")throw TypeError(".gateway.Module.moduleDispute: object expected");l.moduleDispute=u.gateway.ModuleDispute.fromObject(e.moduleDispute)}if(e.moduleDesc!=null){if(typeof e.moduleDesc!="object")throw TypeError(".gateway.Module.moduleDesc: object expected");l.moduleDesc=u.gateway.ModuleDesc.fromObject(e.moduleDesc)}if(e.moduleDynamic!=null){if(typeof e.moduleDynamic!="object")throw TypeError(".gateway.Module.moduleDynamic: object expected");l.moduleDynamic=u.gateway.ModuleDynamic.fromObject(e.moduleDynamic)}if(e.moduleLikeUser!=null){if(typeof e.moduleLikeUser!="object")throw TypeError(".gateway.Module.moduleLikeUser: object expected");l.moduleLikeUser=u.gateway.ModuleLikeUser.fromObject(e.moduleLikeUser)}if(e.moduleExtend!=null){if(typeof e.moduleExtend!="object")throw TypeError(".gateway.Module.moduleExtend: object expected");l.moduleExtend=u.gateway.ModuleExtend.fromObject(e.moduleExtend)}if(e.moduleAdditional!=null){if(typeof e.moduleAdditional!="object")throw TypeError(".gateway.Module.moduleAdditional: object expected");l.moduleAdditional=u.gateway.ModuleAdditional.fromObject(e.moduleAdditional)}if(e.moduleStat!=null){if(typeof e.moduleStat!="object")throw TypeError(".gateway.Module.moduleStat: object expected");l.moduleStat=u.gateway.ModuleStat.fromObject(e.moduleStat)}if(e.moduleFold!=null){if(typeof e.moduleFold!="object")throw TypeError(".gateway.Module.moduleFold: object expected");l.moduleFold=u.gateway.ModuleFold.fromObject(e.moduleFold)}if(e.moduleComment!=null){if(typeof e.moduleComment!="object")throw TypeError(".gateway.Module.moduleComment: object expected");l.moduleComment=u.gateway.ModuleComment.fromObject(e.moduleComment)}if(e.moduleInteraction!=null){if(typeof e.moduleInteraction!="object")throw TypeError(".gateway.Module.moduleInteraction: object expected");l.moduleInteraction=u.gateway.ModuleInteraction.fromObject(e.moduleInteraction)}if(e.moduleAuthorForward!=null){if(typeof e.moduleAuthorForward!="object")throw TypeError(".gateway.Module.moduleAuthorForward: object expected");l.moduleAuthorForward=u.gateway.ModuleAuthorForward.fromObject(e.moduleAuthorForward)}if(e.moduleAd!=null){if(typeof e.moduleAd!="object")throw TypeError(".gateway.Module.moduleAd: object expected");l.moduleAd=u.gateway.ModuleAd.fromObject(e.moduleAd)}if(e.moduleBanner!=null){if(typeof e.moduleBanner!="object")throw TypeError(".gateway.Module.moduleBanner: object expected");l.moduleBanner=u.gateway.ModuleBanner.fromObject(e.moduleBanner)}if(e.moduleItemNull!=null){if(typeof e.moduleItemNull!="object")throw TypeError(".gateway.Module.moduleItemNull: object expected");l.moduleItemNull=u.gateway.ModuleItemNull.fromObject(e.moduleItemNull)}if(e.moduleShareInfo!=null){if(typeof e.moduleShareInfo!="object")throw TypeError(".gateway.Module.moduleShareInfo: object expected");l.moduleShareInfo=u.gateway.ModuleShareInfo.fromObject(e.moduleShareInfo)}if(e.moduleRecommend!=null){if(typeof e.moduleRecommend!="object")throw TypeError(".gateway.Module.moduleRecommend: object expected");l.moduleRecommend=u.gateway.ModuleRecommend.fromObject(e.moduleRecommend)}if(e.moduleTop!=null){if(typeof e.moduleTop!="object")throw TypeError(".gateway.Module.moduleTop: object expected");l.moduleTop=u.gateway.ModuleTop.fromObject(e.moduleTop)}if(e.moduleButtom!=null){if(typeof e.moduleButtom!="object")throw TypeError(".gateway.Module.moduleButtom: object expected");l.moduleButtom=u.gateway.ModuleButtom.fromObject(e.moduleButtom)}if(e.moduleStatForward!=null){if(typeof e.moduleStatForward!="object")throw TypeError(".gateway.Module.moduleStatForward: object expected");l.moduleStatForward=u.gateway.ModuleStat.fromObject(e.moduleStatForward)}return l},d.toObject=function(e,l){l||(l={});let t={};return l.defaults&&(t.moduleType=l.enums===String?"module_none":0),e.moduleType!=null&&e.hasOwnProperty("moduleType")&&(t.moduleType=l.enums===String?u.gateway.DynModuleType[e.moduleType]===void 0?e.moduleType:u.gateway.DynModuleType[e.moduleType]:e.moduleType),e.moduleAuthor!=null&&e.hasOwnProperty("moduleAuthor")&&(t.moduleAuthor=u.gateway.ModuleAuthor.toObject(e.moduleAuthor,l),l.oneofs&&(t.moduleItem="moduleAuthor")),e.moduleDispute!=null&&e.hasOwnProperty("moduleDispute")&&(t.moduleDispute=u.gateway.ModuleDispute.toObject(e.moduleDispute,l),l.oneofs&&(t.moduleItem="moduleDispute")),e.moduleDesc!=null&&e.hasOwnProperty("moduleDesc")&&(t.moduleDesc=u.gateway.ModuleDesc.toObject(e.moduleDesc,l),l.oneofs&&(t.moduleItem="moduleDesc")),e.moduleDynamic!=null&&e.hasOwnProperty("moduleDynamic")&&(t.moduleDynamic=u.gateway.ModuleDynamic.toObject(e.moduleDynamic,l),l.oneofs&&(t.moduleItem="moduleDynamic")),e.moduleLikeUser!=null&&e.hasOwnProperty("moduleLikeUser")&&(t.moduleLikeUser=u.gateway.ModuleLikeUser.toObject(e.moduleLikeUser,l),l.oneofs&&(t.moduleItem="moduleLikeUser")),e.moduleExtend!=null&&e.hasOwnProperty("moduleExtend")&&(t.moduleExtend=u.gateway.ModuleExtend.toObject(e.moduleExtend,l),l.oneofs&&(t.moduleItem="moduleExtend")),e.moduleAdditional!=null&&e.hasOwnProperty("moduleAdditional")&&(t.moduleAdditional=u.gateway.ModuleAdditional.toObject(e.moduleAdditional,l),l.oneofs&&(t.moduleItem="moduleAdditional")),e.moduleStat!=null&&e.hasOwnProperty("moduleStat")&&(t.moduleStat=u.gateway.ModuleStat.toObject(e.moduleStat,l),l.oneofs&&(t.moduleItem="moduleStat")),e.moduleFold!=null&&e.hasOwnProperty("moduleFold")&&(t.moduleFold=u.gateway.ModuleFold.toObject(e.moduleFold,l),l.oneofs&&(t.moduleItem="moduleFold")),e.moduleComment!=null&&e.hasOwnProperty("moduleComment")&&(t.moduleComment=u.gateway.ModuleComment.toObject(e.moduleComment,l),l.oneofs&&(t.moduleItem="moduleComment")),e.moduleInteraction!=null&&e.hasOwnProperty("moduleInteraction")&&(t.moduleInteraction=u.gateway.ModuleInteraction.toObject(e.moduleInteraction,l),l.oneofs&&(t.moduleItem="moduleInteraction")),e.moduleAuthorForward!=null&&e.hasOwnProperty("moduleAuthorForward")&&(t.moduleAuthorForward=u.gateway.ModuleAuthorForward.toObject(e.moduleAuthorForward,l),l.oneofs&&(t.moduleItem="moduleAuthorForward")),e.moduleAd!=null&&e.hasOwnProperty("moduleAd")&&(t.moduleAd=u.gateway.ModuleAd.toObject(e.moduleAd,l),l.oneofs&&(t.moduleItem="moduleAd")),e.moduleBanner!=null&&e.hasOwnProperty("moduleBanner")&&(t.moduleBanner=u.gateway.ModuleBanner.toObject(e.moduleBanner,l),l.oneofs&&(t.moduleItem="moduleBanner")),e.moduleItemNull!=null&&e.hasOwnProperty("moduleItemNull")&&(t.moduleItemNull=u.gateway.ModuleItemNull.toObject(e.moduleItemNull,l),l.oneofs&&(t.moduleItem="moduleItemNull")),e.moduleShareInfo!=null&&e.hasOwnProperty("moduleShareInfo")&&(t.moduleShareInfo=u.gateway.ModuleShareInfo.toObject(e.moduleShareInfo,l),l.oneofs&&(t.moduleItem="moduleShareInfo")),e.moduleRecommend!=null&&e.hasOwnProperty("moduleRecommend")&&(t.moduleRecommend=u.gateway.ModuleRecommend.toObject(e.moduleRecommend,l),l.oneofs&&(t.moduleItem="moduleRecommend")),e.moduleTop!=null&&e.hasOwnProperty("moduleTop")&&(t.moduleTop=u.gateway.ModuleTop.toObject(e.moduleTop,l),l.oneofs&&(t.moduleItem="moduleTop")),e.moduleButtom!=null&&e.hasOwnProperty("moduleButtom")&&(t.moduleButtom=u.gateway.ModuleButtom.toObject(e.moduleButtom,l),l.oneofs&&(t.moduleItem="moduleButtom")),e.moduleStatForward!=null&&e.hasOwnProperty("moduleStatForward")&&(t.moduleStatForward=u.gateway.ModuleStat.toObject(e.moduleStatForward,l),l.oneofs&&(t.moduleItem="moduleStatForward")),t},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/gateway.Module"},d}(),O.ModuleAuthor=function(){function d(p){if(this.tpList=[],p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.mid=c.int64();break}case 2:{t.ptimeLabelText=c.string();break}case 3:{t.author=u.gateway.UserInfo.decode(c,c.uint32());break}case 4:{t.decorateCard=u.gateway.DecorateCard.decode(c,c.uint32());break}case 5:{t.uri=c.string();break}case 6:{t.tpList&&t.tpList.length||(t.tpList=[]),t.tpList.push(u.gateway.ThreePointItem.decode(c,c.uint32()));break}case 7:{t.badgeType=c.int32();break}case 8:{t.badgeButton=u.gateway.ModuleAuthorBadgeButton.decode(c,c.uint32());break}case 9:{t.attend=c.int32();break}case 10:{t.relation=u.gateway.Relation.decode(c,c.uint32());break}case 11:{t.weight=u.gateway.Weight.decode(c,c.uint32());break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.ModuleAuthor)return c;let e=new u.gateway.ModuleAuthor;if(c.mid!=null&&(r.Long?(e.mid=r.Long.fromValue(c.mid)).unsigned=!1:typeof c.mid=="string"?e.mid=parseInt(c.mid,10):typeof c.mid=="number"?e.mid=c.mid:typeof c.mid=="object"&&(e.mid=new r.LongBits(c.mid.low>>>0,c.mid.high>>>0).toNumber())),c.ptimeLabelText!=null&&(e.ptimeLabelText=String(c.ptimeLabelText)),c.author!=null){if(typeof c.author!="object")throw TypeError(".gateway.ModuleAuthor.author: object expected");e.author=u.gateway.UserInfo.fromObject(c.author)}if(c.decorateCard!=null){if(typeof c.decorateCard!="object")throw TypeError(".gateway.ModuleAuthor.decorateCard: object expected");e.decorateCard=u.gateway.DecorateCard.fromObject(c.decorateCard)}if(c.uri!=null&&(e.uri=String(c.uri)),c.tpList){if(!Array.isArray(c.tpList))throw TypeError(".gateway.ModuleAuthor.tpList: array expected");e.tpList=[];for(let l=0;l>>0,c.mid.high>>>0).toNumber():c.mid),c.ptimeLabelText!=null&&c.hasOwnProperty("ptimeLabelText")&&(l.ptimeLabelText=c.ptimeLabelText),c.author!=null&&c.hasOwnProperty("author")&&(l.author=u.gateway.UserInfo.toObject(c.author,e)),c.decorateCard!=null&&c.hasOwnProperty("decorateCard")&&(l.decorateCard=u.gateway.DecorateCard.toObject(c.decorateCard,e)),c.uri!=null&&c.hasOwnProperty("uri")&&(l.uri=c.uri),c.tpList&&c.tpList.length){l.tpList=[];for(let t=0;t>>3){case 1:{t.mid=c.int64();break}case 2:{t.name=c.string();break}case 3:{t.face=c.string();break}case 4:{t.official=u.gateway.OfficialVerify.decode(c,c.uint32());break}case 5:{t.vip=u.gateway.VipInfo.decode(c,c.uint32());break}case 6:{t.live=u.gateway.LiveInfo.decode(c,c.uint32());break}case 7:{t.uri=c.string();break}case 8:{t.pendant=u.gateway.UserPendant.decode(c,c.uint32());break}case 9:{t.nameplate=u.gateway.Nameplate.decode(c,c.uint32());break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.UserInfo)return c;let e=new u.gateway.UserInfo;if(c.mid!=null&&(r.Long?(e.mid=r.Long.fromValue(c.mid)).unsigned=!1:typeof c.mid=="string"?e.mid=parseInt(c.mid,10):typeof c.mid=="number"?e.mid=c.mid:typeof c.mid=="object"&&(e.mid=new r.LongBits(c.mid.low>>>0,c.mid.high>>>0).toNumber())),c.name!=null&&(e.name=String(c.name)),c.face!=null&&(e.face=String(c.face)),c.official!=null){if(typeof c.official!="object")throw TypeError(".gateway.UserInfo.official: object expected");e.official=u.gateway.OfficialVerify.fromObject(c.official)}if(c.vip!=null){if(typeof c.vip!="object")throw TypeError(".gateway.UserInfo.vip: object expected");e.vip=u.gateway.VipInfo.fromObject(c.vip)}if(c.live!=null){if(typeof c.live!="object")throw TypeError(".gateway.UserInfo.live: object expected");e.live=u.gateway.LiveInfo.fromObject(c.live)}if(c.uri!=null&&(e.uri=String(c.uri)),c.pendant!=null){if(typeof c.pendant!="object")throw TypeError(".gateway.UserInfo.pendant: object expected");e.pendant=u.gateway.UserPendant.fromObject(c.pendant)}if(c.nameplate!=null){if(typeof c.nameplate!="object")throw TypeError(".gateway.UserInfo.nameplate: object expected");e.nameplate=u.gateway.Nameplate.fromObject(c.nameplate)}return e},d.toObject=function(c,e){e||(e={});let l={};if(e.defaults){if(r.Long){let t=new r.Long(0,0,!1);l.mid=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.mid=e.longs===String?"0":0;l.name="",l.face="",l.official=null,l.vip=null,l.live=null,l.uri="",l.pendant=null,l.nameplate=null}return c.mid!=null&&c.hasOwnProperty("mid")&&(typeof c.mid=="number"?l.mid=e.longs===String?String(c.mid):c.mid:l.mid=e.longs===String?r.Long.prototype.toString.call(c.mid):e.longs===Number?new r.LongBits(c.mid.low>>>0,c.mid.high>>>0).toNumber():c.mid),c.name!=null&&c.hasOwnProperty("name")&&(l.name=c.name),c.face!=null&&c.hasOwnProperty("face")&&(l.face=c.face),c.official!=null&&c.hasOwnProperty("official")&&(l.official=u.gateway.OfficialVerify.toObject(c.official,e)),c.vip!=null&&c.hasOwnProperty("vip")&&(l.vip=u.gateway.VipInfo.toObject(c.vip,e)),c.live!=null&&c.hasOwnProperty("live")&&(l.live=u.gateway.LiveInfo.toObject(c.live,e)),c.uri!=null&&c.hasOwnProperty("uri")&&(l.uri=c.uri),c.pendant!=null&&c.hasOwnProperty("pendant")&&(l.pendant=u.gateway.UserPendant.toObject(c.pendant,e)),c.nameplate!=null&&c.hasOwnProperty("nameplate")&&(l.nameplate=u.gateway.Nameplate.toObject(c.nameplate,e)),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.UserInfo"},d}(),O.OfficialVerify=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.type=c.int32();break}case 2:{t.desc=c.string();break}case 3:{t.isAtten=c.int32();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.OfficialVerify)return c;let e=new u.gateway.OfficialVerify;return c.type!=null&&(e.type=c.type|0),c.desc!=null&&(e.desc=String(c.desc)),c.isAtten!=null&&(e.isAtten=c.isAtten|0),e},d.toObject=function(c,e){e||(e={});let l={};return e.defaults&&(l.type=0,l.desc="",l.isAtten=0),c.type!=null&&c.hasOwnProperty("type")&&(l.type=c.type),c.desc!=null&&c.hasOwnProperty("desc")&&(l.desc=c.desc),c.isAtten!=null&&c.hasOwnProperty("isAtten")&&(l.isAtten=c.isAtten),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.OfficialVerify"},d}(),O.VipInfo=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.Type=c.int32();break}case 2:{t.status=c.int32();break}case 3:{t.dueDate=c.int64();break}case 4:{t.label=u.gateway.VipLabel.decode(c,c.uint32());break}case 5:{t.themeType=c.int32();break}case 6:{t.avatarSubscript=c.int32();break}case 7:{t.nicknameColor=c.string();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.VipInfo)return c;let e=new u.gateway.VipInfo;if(c.Type!=null&&(e.Type=c.Type|0),c.status!=null&&(e.status=c.status|0),c.dueDate!=null&&(r.Long?(e.dueDate=r.Long.fromValue(c.dueDate)).unsigned=!1:typeof c.dueDate=="string"?e.dueDate=parseInt(c.dueDate,10):typeof c.dueDate=="number"?e.dueDate=c.dueDate:typeof c.dueDate=="object"&&(e.dueDate=new r.LongBits(c.dueDate.low>>>0,c.dueDate.high>>>0).toNumber())),c.label!=null){if(typeof c.label!="object")throw TypeError(".gateway.VipInfo.label: object expected");e.label=u.gateway.VipLabel.fromObject(c.label)}return c.themeType!=null&&(e.themeType=c.themeType|0),c.avatarSubscript!=null&&(e.avatarSubscript=c.avatarSubscript|0),c.nicknameColor!=null&&(e.nicknameColor=String(c.nicknameColor)),e},d.toObject=function(c,e){e||(e={});let l={};if(e.defaults){if(l.Type=0,l.status=0,r.Long){let t=new r.Long(0,0,!1);l.dueDate=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.dueDate=e.longs===String?"0":0;l.label=null,l.themeType=0,l.avatarSubscript=0,l.nicknameColor=""}return c.Type!=null&&c.hasOwnProperty("Type")&&(l.Type=c.Type),c.status!=null&&c.hasOwnProperty("status")&&(l.status=c.status),c.dueDate!=null&&c.hasOwnProperty("dueDate")&&(typeof c.dueDate=="number"?l.dueDate=e.longs===String?String(c.dueDate):c.dueDate:l.dueDate=e.longs===String?r.Long.prototype.toString.call(c.dueDate):e.longs===Number?new r.LongBits(c.dueDate.low>>>0,c.dueDate.high>>>0).toNumber():c.dueDate),c.label!=null&&c.hasOwnProperty("label")&&(l.label=u.gateway.VipLabel.toObject(c.label,e)),c.themeType!=null&&c.hasOwnProperty("themeType")&&(l.themeType=c.themeType),c.avatarSubscript!=null&&c.hasOwnProperty("avatarSubscript")&&(l.avatarSubscript=c.avatarSubscript),c.nicknameColor!=null&&c.hasOwnProperty("nicknameColor")&&(l.nicknameColor=c.nicknameColor),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.VipInfo"},d}(),O.VipLabel=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.path=c.string();break}case 2:{t.text=c.string();break}case 3:{t.labelTheme=c.string();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.VipLabel)return c;let e=new u.gateway.VipLabel;return c.path!=null&&(e.path=String(c.path)),c.text!=null&&(e.text=String(c.text)),c.labelTheme!=null&&(e.labelTheme=String(c.labelTheme)),e},d.toObject=function(c,e){e||(e={});let l={};return e.defaults&&(l.path="",l.text="",l.labelTheme=""),c.path!=null&&c.hasOwnProperty("path")&&(l.path=c.path),c.text!=null&&c.hasOwnProperty("text")&&(l.text=c.text),c.labelTheme!=null&&c.hasOwnProperty("labelTheme")&&(l.labelTheme=c.labelTheme),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.VipLabel"},d}(),O.LiveInfo=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.isLiving=c.int32();break}case 2:{t.uri=c.string();break}case 3:{t.liveState=c.int32();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.LiveInfo)return c;let e=new u.gateway.LiveInfo;switch(c.isLiving!=null&&(e.isLiving=c.isLiving|0),c.uri!=null&&(e.uri=String(c.uri)),c.liveState){default:if(typeof c.liveState=="number"){e.liveState=c.liveState;break}break;case"live_none":case 0:e.liveState=0;break;case"live_live":case 1:e.liveState=1;break;case"live_rotation":case 2:e.liveState=2;break}return e},d.toObject=function(c,e){e||(e={});let l={};return e.defaults&&(l.isLiving=0,l.uri="",l.liveState=e.enums===String?"live_none":0),c.isLiving!=null&&c.hasOwnProperty("isLiving")&&(l.isLiving=c.isLiving),c.uri!=null&&c.hasOwnProperty("uri")&&(l.uri=c.uri),c.liveState!=null&&c.hasOwnProperty("liveState")&&(l.liveState=e.enums===String?u.gateway.LiveState[c.liveState]===void 0?c.liveState:u.gateway.LiveState[c.liveState]:c.liveState),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.LiveInfo"},d}(),O.LiveState=function(){let d={},p=Object.create(d);return p[d[0]="live_none"]=0,p[d[1]="live_live"]=1,p[d[2]="live_rotation"]=2,p}(),O.UserPendant=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.pid=c.int64();break}case 2:{t.name=c.string();break}case 3:{t.image=c.string();break}case 4:{t.expire=c.int64();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.UserPendant)return c;let e=new u.gateway.UserPendant;return c.pid!=null&&(r.Long?(e.pid=r.Long.fromValue(c.pid)).unsigned=!1:typeof c.pid=="string"?e.pid=parseInt(c.pid,10):typeof c.pid=="number"?e.pid=c.pid:typeof c.pid=="object"&&(e.pid=new r.LongBits(c.pid.low>>>0,c.pid.high>>>0).toNumber())),c.name!=null&&(e.name=String(c.name)),c.image!=null&&(e.image=String(c.image)),c.expire!=null&&(r.Long?(e.expire=r.Long.fromValue(c.expire)).unsigned=!1:typeof c.expire=="string"?e.expire=parseInt(c.expire,10):typeof c.expire=="number"?e.expire=c.expire:typeof c.expire=="object"&&(e.expire=new r.LongBits(c.expire.low>>>0,c.expire.high>>>0).toNumber())),e},d.toObject=function(c,e){e||(e={});let l={};if(e.defaults){if(r.Long){let t=new r.Long(0,0,!1);l.pid=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.pid=e.longs===String?"0":0;if(l.name="",l.image="",r.Long){let t=new r.Long(0,0,!1);l.expire=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.expire=e.longs===String?"0":0}return c.pid!=null&&c.hasOwnProperty("pid")&&(typeof c.pid=="number"?l.pid=e.longs===String?String(c.pid):c.pid:l.pid=e.longs===String?r.Long.prototype.toString.call(c.pid):e.longs===Number?new r.LongBits(c.pid.low>>>0,c.pid.high>>>0).toNumber():c.pid),c.name!=null&&c.hasOwnProperty("name")&&(l.name=c.name),c.image!=null&&c.hasOwnProperty("image")&&(l.image=c.image),c.expire!=null&&c.hasOwnProperty("expire")&&(typeof c.expire=="number"?l.expire=e.longs===String?String(c.expire):c.expire:l.expire=e.longs===String?r.Long.prototype.toString.call(c.expire):e.longs===Number?new r.LongBits(c.expire.low>>>0,c.expire.high>>>0).toNumber():c.expire),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.UserPendant"},d}(),O.Nameplate=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.nid=c.int64();break}case 2:{t.name=c.string();break}case 3:{t.image=c.string();break}case 4:{t.imageSmall=c.string();break}case 5:{t.level=c.string();break}case 6:{t.condition=c.string();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.Nameplate)return c;let e=new u.gateway.Nameplate;return c.nid!=null&&(r.Long?(e.nid=r.Long.fromValue(c.nid)).unsigned=!1:typeof c.nid=="string"?e.nid=parseInt(c.nid,10):typeof c.nid=="number"?e.nid=c.nid:typeof c.nid=="object"&&(e.nid=new r.LongBits(c.nid.low>>>0,c.nid.high>>>0).toNumber())),c.name!=null&&(e.name=String(c.name)),c.image!=null&&(e.image=String(c.image)),c.imageSmall!=null&&(e.imageSmall=String(c.imageSmall)),c.level!=null&&(e.level=String(c.level)),c.condition!=null&&(e.condition=String(c.condition)),e},d.toObject=function(c,e){e||(e={});let l={};if(e.defaults){if(r.Long){let t=new r.Long(0,0,!1);l.nid=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.nid=e.longs===String?"0":0;l.name="",l.image="",l.imageSmall="",l.level="",l.condition=""}return c.nid!=null&&c.hasOwnProperty("nid")&&(typeof c.nid=="number"?l.nid=e.longs===String?String(c.nid):c.nid:l.nid=e.longs===String?r.Long.prototype.toString.call(c.nid):e.longs===Number?new r.LongBits(c.nid.low>>>0,c.nid.high>>>0).toNumber():c.nid),c.name!=null&&c.hasOwnProperty("name")&&(l.name=c.name),c.image!=null&&c.hasOwnProperty("image")&&(l.image=c.image),c.imageSmall!=null&&c.hasOwnProperty("imageSmall")&&(l.imageSmall=c.imageSmall),c.level!=null&&c.hasOwnProperty("level")&&(l.level=c.level),c.condition!=null&&c.hasOwnProperty("condition")&&(l.condition=c.condition),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.Nameplate"},d}(),O.DecorateCard=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.id=c.int64();break}case 2:{t.cardUrl=c.string();break}case 3:{t.jumpUrl=c.string();break}case 4:{t.fan=u.gateway.DecoCardFan.decode(c,c.uint32());break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.DecorateCard)return c;let e=new u.gateway.DecorateCard;if(c.id!=null&&(r.Long?(e.id=r.Long.fromValue(c.id)).unsigned=!1:typeof c.id=="string"?e.id=parseInt(c.id,10):typeof c.id=="number"?e.id=c.id:typeof c.id=="object"&&(e.id=new r.LongBits(c.id.low>>>0,c.id.high>>>0).toNumber())),c.cardUrl!=null&&(e.cardUrl=String(c.cardUrl)),c.jumpUrl!=null&&(e.jumpUrl=String(c.jumpUrl)),c.fan!=null){if(typeof c.fan!="object")throw TypeError(".gateway.DecorateCard.fan: object expected");e.fan=u.gateway.DecoCardFan.fromObject(c.fan)}return e},d.toObject=function(c,e){e||(e={});let l={};if(e.defaults){if(r.Long){let t=new r.Long(0,0,!1);l.id=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.id=e.longs===String?"0":0;l.cardUrl="",l.jumpUrl="",l.fan=null}return c.id!=null&&c.hasOwnProperty("id")&&(typeof c.id=="number"?l.id=e.longs===String?String(c.id):c.id:l.id=e.longs===String?r.Long.prototype.toString.call(c.id):e.longs===Number?new r.LongBits(c.id.low>>>0,c.id.high>>>0).toNumber():c.id),c.cardUrl!=null&&c.hasOwnProperty("cardUrl")&&(l.cardUrl=c.cardUrl),c.jumpUrl!=null&&c.hasOwnProperty("jumpUrl")&&(l.jumpUrl=c.jumpUrl),c.fan!=null&&c.hasOwnProperty("fan")&&(l.fan=u.gateway.DecoCardFan.toObject(c.fan,e)),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.DecorateCard"},d}(),O.DecoCardFan=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.isFan=c.int32();break}case 2:{t.number=c.int32();break}case 3:{t.numberStr=c.string();break}case 4:{t.color=c.string();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.DecoCardFan)return c;let e=new u.gateway.DecoCardFan;return c.isFan!=null&&(e.isFan=c.isFan|0),c.number!=null&&(e.number=c.number|0),c.numberStr!=null&&(e.numberStr=String(c.numberStr)),c.color!=null&&(e.color=String(c.color)),e},d.toObject=function(c,e){e||(e={});let l={};return e.defaults&&(l.isFan=0,l.number=0,l.numberStr="",l.color=""),c.isFan!=null&&c.hasOwnProperty("isFan")&&(l.isFan=c.isFan),c.number!=null&&c.hasOwnProperty("number")&&(l.number=c.number),c.numberStr!=null&&c.hasOwnProperty("numberStr")&&(l.numberStr=c.numberStr),c.color!=null&&c.hasOwnProperty("color")&&(l.color=c.color),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.DecoCardFan"},d}(),O.ModuleDispute=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.title=c.string();break}case 2:{t.desc=c.string();break}case 3:{t.uri=c.string();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.ModuleDispute)return c;let e=new u.gateway.ModuleDispute;return c.title!=null&&(e.title=String(c.title)),c.desc!=null&&(e.desc=String(c.desc)),c.uri!=null&&(e.uri=String(c.uri)),e},d.toObject=function(c,e){e||(e={});let l={};return e.defaults&&(l.title="",l.desc="",l.uri=""),c.title!=null&&c.hasOwnProperty("title")&&(l.title=c.title),c.desc!=null&&c.hasOwnProperty("desc")&&(l.desc=c.desc),c.uri!=null&&c.hasOwnProperty("uri")&&(l.uri=c.uri),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.ModuleDispute"},d}(),O.ModuleDesc=function(){function d(p){if(this.desc=[],p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.desc&&t.desc.length||(t.desc=[]),t.desc.push(u.gateway.Description.decode(c,c.uint32()));break}case 2:{t.jumpUri=c.string();break}case 3:{t.text=c.string();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.ModuleDesc)return c;let e=new u.gateway.ModuleDesc;if(c.desc){if(!Array.isArray(c.desc))throw TypeError(".gateway.ModuleDesc.desc: array expected");e.desc=[];for(let l=0;l>>3){case 1:{t.text=c.string();break}case 2:{t.type=c.int32();break}case 3:{t.uri=c.string();break}case 4:{t.emojiType=c.int32();break}case 5:{t.goodsType=c.string();break}case 6:{t.iconUrl=c.string();break}case 7:{t.iconName=c.string();break}case 8:{t.rid=c.string();break}case 9:{t.goods=u.gateway.ModuleDescGoods.decode(c,c.uint32());break}case 10:{t.origText=c.string();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.Description)return c;let e=new u.gateway.Description;switch(c.text!=null&&(e.text=String(c.text)),c.type){default:if(typeof c.type=="number"){e.type=c.type;break}break;case"desc_type_none":case 0:e.type=0;break;case"desc_type_text":case 1:e.type=1;break;case"desc_type_aite":case 2:e.type=2;break;case"desc_type_lottery":case 3:e.type=3;break;case"desc_type_vote":case 4:e.type=4;break;case"desc_type_topic":case 5:e.type=5;break;case"desc_type_goods":case 6:e.type=6;break;case"desc_type_bv":case 7:e.type=7;break;case"desc_type_av":case 8:e.type=8;break;case"desc_type_emoji":case 9:e.type=9;break;case"desc_type_user":case 10:e.type=10;break;case"desc_type_cv":case 11:e.type=11;break;case"desc_type_vc":case 12:e.type=12;break;case"desc_type_web":case 13:e.type=13;break;case"desc_type_taobao":case 14:e.type=14;break;case"desc_type_mail":case 15:e.type=15;break;case"desc_type_ogv_season":case 16:e.type=16;break;case"desc_type_ogv_ep":case 17:e.type=17;break}switch(c.uri!=null&&(e.uri=String(c.uri)),c.emojiType){default:if(typeof c.emojiType=="number"){e.emojiType=c.emojiType;break}break;case"emoji_none":case 0:e.emojiType=0;break;case"emoji_old":case 1:e.emojiType=1;break;case"emoji_new":case 2:e.emojiType=2;break;case"vip":case 3:e.emojiType=3;break}if(c.goodsType!=null&&(e.goodsType=String(c.goodsType)),c.iconUrl!=null&&(e.iconUrl=String(c.iconUrl)),c.iconName!=null&&(e.iconName=String(c.iconName)),c.rid!=null&&(e.rid=String(c.rid)),c.goods!=null){if(typeof c.goods!="object")throw TypeError(".gateway.Description.goods: object expected");e.goods=u.gateway.ModuleDescGoods.fromObject(c.goods)}return c.origText!=null&&(e.origText=String(c.origText)),e},d.toObject=function(c,e){e||(e={});let l={};return e.defaults&&(l.text="",l.type=e.enums===String?"desc_type_none":0,l.uri="",l.emojiType=e.enums===String?"emoji_none":0,l.goodsType="",l.iconUrl="",l.iconName="",l.rid="",l.goods=null,l.origText=""),c.text!=null&&c.hasOwnProperty("text")&&(l.text=c.text),c.type!=null&&c.hasOwnProperty("type")&&(l.type=e.enums===String?u.gateway.DescType[c.type]===void 0?c.type:u.gateway.DescType[c.type]:c.type),c.uri!=null&&c.hasOwnProperty("uri")&&(l.uri=c.uri),c.emojiType!=null&&c.hasOwnProperty("emojiType")&&(l.emojiType=e.enums===String?u.gateway.EmojiType[c.emojiType]===void 0?c.emojiType:u.gateway.EmojiType[c.emojiType]:c.emojiType),c.goodsType!=null&&c.hasOwnProperty("goodsType")&&(l.goodsType=c.goodsType),c.iconUrl!=null&&c.hasOwnProperty("iconUrl")&&(l.iconUrl=c.iconUrl),c.iconName!=null&&c.hasOwnProperty("iconName")&&(l.iconName=c.iconName),c.rid!=null&&c.hasOwnProperty("rid")&&(l.rid=c.rid),c.goods!=null&&c.hasOwnProperty("goods")&&(l.goods=u.gateway.ModuleDescGoods.toObject(c.goods,e)),c.origText!=null&&c.hasOwnProperty("origText")&&(l.origText=c.origText),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.Description"},d}(),O.DescType=function(){let d={},p=Object.create(d);return p[d[0]="desc_type_none"]=0,p[d[1]="desc_type_text"]=1,p[d[2]="desc_type_aite"]=2,p[d[3]="desc_type_lottery"]=3,p[d[4]="desc_type_vote"]=4,p[d[5]="desc_type_topic"]=5,p[d[6]="desc_type_goods"]=6,p[d[7]="desc_type_bv"]=7,p[d[8]="desc_type_av"]=8,p[d[9]="desc_type_emoji"]=9,p[d[10]="desc_type_user"]=10,p[d[11]="desc_type_cv"]=11,p[d[12]="desc_type_vc"]=12,p[d[13]="desc_type_web"]=13,p[d[14]="desc_type_taobao"]=14,p[d[15]="desc_type_mail"]=15,p[d[16]="desc_type_ogv_season"]=16,p[d[17]="desc_type_ogv_ep"]=17,p}(),O.EmojiType=function(){let d={},p=Object.create(d);return p[d[0]="emoji_none"]=0,p[d[1]="emoji_old"]=1,p[d[2]="emoji_new"]=2,p[d[3]="vip"]=3,p}(),O.ModuleDescGoods=function(){function d(p){if(this.openWhiteList=[],p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.sourceType=c.int32();break}case 2:{t.jumpUrl=c.string();break}case 3:{t.schemaUrl=c.string();break}case 4:{t.itemId=c.int64();break}case 5:{t.openWhiteList&&t.openWhiteList.length||(t.openWhiteList=[]),t.openWhiteList.push(c.string());break}case 6:{t.userWebV2=c.bool();break}case 7:{t.adMark=c.string();break}case 8:{t.schemaPackageName=c.string();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.ModuleDescGoods)return c;let e=new u.gateway.ModuleDescGoods;if(c.sourceType!=null&&(e.sourceType=c.sourceType|0),c.jumpUrl!=null&&(e.jumpUrl=String(c.jumpUrl)),c.schemaUrl!=null&&(e.schemaUrl=String(c.schemaUrl)),c.itemId!=null&&(r.Long?(e.itemId=r.Long.fromValue(c.itemId)).unsigned=!1:typeof c.itemId=="string"?e.itemId=parseInt(c.itemId,10):typeof c.itemId=="number"?e.itemId=c.itemId:typeof c.itemId=="object"&&(e.itemId=new r.LongBits(c.itemId.low>>>0,c.itemId.high>>>0).toNumber())),c.openWhiteList){if(!Array.isArray(c.openWhiteList))throw TypeError(".gateway.ModuleDescGoods.openWhiteList: array expected");e.openWhiteList=[];for(let l=0;l>>0,c.itemId.high>>>0).toNumber():c.itemId),c.openWhiteList&&c.openWhiteList.length){l.openWhiteList=[];for(let t=0;t>>3){case 1:{i.type=e.int32();break}case 2:{i.dynArchive=u.gateway.MdlDynArchive.decode(e,e.uint32());break}case 3:{i.dynPgc=u.gateway.MdlDynPGC.decode(e,e.uint32());break}case 4:{i.dynCourSeason=u.gateway.MdlDynCourSeason.decode(e,e.uint32());break}case 5:{i.dynCourBatch=u.gateway.MdlDynCourBatch.decode(e,e.uint32());break}case 6:{i.dynForward=u.gateway.MdlDynForward.decode(e,e.uint32());break}case 7:{i.dynDraw=u.gateway.MdlDynDraw.decode(e,e.uint32());break}case 8:{i.dynArticle=u.gateway.MdlDynArticle.decode(e,e.uint32());break}case 9:{i.dynMusic=u.gateway.MdlDynMusic.decode(e,e.uint32());break}case 10:{i.dynCommon=u.gateway.MdlDynCommon.decode(e,e.uint32());break}case 11:{i.dynCommonLive=u.gateway.MdlDynLive.decode(e,e.uint32());break}case 12:{i.dynMedialist=u.gateway.MdlDynMedialist.decode(e,e.uint32());break}case 13:{i.dynApplet=u.gateway.MdlDynApplet.decode(e,e.uint32());break}case 14:{i.dynSubscription=u.gateway.MdlDynSubscription.decode(e,e.uint32());break}case 15:{i.dynLiveRcmd=u.gateway.MdlDynLiveRcmd.decode(e,e.uint32());break}case 16:{i.dynUgcSeason=u.gateway.MdlDynUGCSeason.decode(e,e.uint32());break}case 17:{i.dynSubscriptionNew=u.gateway.MdlDynSubscriptionNew.decode(e,e.uint32());break}default:e.skipType(n&7);break}}return i},d.fromObject=function(e){if(e instanceof u.gateway.ModuleDynamic)return e;let l=new u.gateway.ModuleDynamic;switch(e.type){default:if(typeof e.type=="number"){l.type=e.type;break}break;case"mdl_dyn_archive":case 0:l.type=0;break;case"mdl_dyn_pgc":case 1:l.type=1;break;case"mdl_dyn_cour_season":case 2:l.type=2;break;case"mdl_dyn_cour_batch":case 3:l.type=3;break;case"mdl_dyn_forward":case 4:l.type=4;break;case"mdl_dyn_draw":case 5:l.type=5;break;case"mdl_dyn_article":case 6:l.type=6;break;case"mdl_dyn_music":case 7:l.type=7;break;case"mdl_dyn_common":case 8:l.type=8;break;case"mdl_dyn_live":case 9:l.type=9;break;case"mdl_dyn_medialist":case 10:l.type=10;break;case"mdl_dyn_applet":case 11:l.type=11;break;case"mdl_dyn_subscription":case 12:l.type=12;break;case"mdl_dyn_live_rcmd":case 13:l.type=13;break;case"mdl_dyn_ugc_season":case 14:l.type=14;break;case"mdl_dyn_subscription_new":case 15:l.type=15;break}if(e.dynArchive!=null){if(typeof e.dynArchive!="object")throw TypeError(".gateway.ModuleDynamic.dynArchive: object expected");l.dynArchive=u.gateway.MdlDynArchive.fromObject(e.dynArchive)}if(e.dynPgc!=null){if(typeof e.dynPgc!="object")throw TypeError(".gateway.ModuleDynamic.dynPgc: object expected");l.dynPgc=u.gateway.MdlDynPGC.fromObject(e.dynPgc)}if(e.dynCourSeason!=null){if(typeof e.dynCourSeason!="object")throw TypeError(".gateway.ModuleDynamic.dynCourSeason: object expected");l.dynCourSeason=u.gateway.MdlDynCourSeason.fromObject(e.dynCourSeason)}if(e.dynCourBatch!=null){if(typeof e.dynCourBatch!="object")throw TypeError(".gateway.ModuleDynamic.dynCourBatch: object expected");l.dynCourBatch=u.gateway.MdlDynCourBatch.fromObject(e.dynCourBatch)}if(e.dynForward!=null){if(typeof e.dynForward!="object")throw TypeError(".gateway.ModuleDynamic.dynForward: object expected");l.dynForward=u.gateway.MdlDynForward.fromObject(e.dynForward)}if(e.dynDraw!=null){if(typeof e.dynDraw!="object")throw TypeError(".gateway.ModuleDynamic.dynDraw: object expected");l.dynDraw=u.gateway.MdlDynDraw.fromObject(e.dynDraw)}if(e.dynArticle!=null){if(typeof e.dynArticle!="object")throw TypeError(".gateway.ModuleDynamic.dynArticle: object expected");l.dynArticle=u.gateway.MdlDynArticle.fromObject(e.dynArticle)}if(e.dynMusic!=null){if(typeof e.dynMusic!="object")throw TypeError(".gateway.ModuleDynamic.dynMusic: object expected");l.dynMusic=u.gateway.MdlDynMusic.fromObject(e.dynMusic)}if(e.dynCommon!=null){if(typeof e.dynCommon!="object")throw TypeError(".gateway.ModuleDynamic.dynCommon: object expected");l.dynCommon=u.gateway.MdlDynCommon.fromObject(e.dynCommon)}if(e.dynCommonLive!=null){if(typeof e.dynCommonLive!="object")throw TypeError(".gateway.ModuleDynamic.dynCommonLive: object expected");l.dynCommonLive=u.gateway.MdlDynLive.fromObject(e.dynCommonLive)}if(e.dynMedialist!=null){if(typeof e.dynMedialist!="object")throw TypeError(".gateway.ModuleDynamic.dynMedialist: object expected");l.dynMedialist=u.gateway.MdlDynMedialist.fromObject(e.dynMedialist)}if(e.dynApplet!=null){if(typeof e.dynApplet!="object")throw TypeError(".gateway.ModuleDynamic.dynApplet: object expected");l.dynApplet=u.gateway.MdlDynApplet.fromObject(e.dynApplet)}if(e.dynSubscription!=null){if(typeof e.dynSubscription!="object")throw TypeError(".gateway.ModuleDynamic.dynSubscription: object expected");l.dynSubscription=u.gateway.MdlDynSubscription.fromObject(e.dynSubscription)}if(e.dynLiveRcmd!=null){if(typeof e.dynLiveRcmd!="object")throw TypeError(".gateway.ModuleDynamic.dynLiveRcmd: object expected");l.dynLiveRcmd=u.gateway.MdlDynLiveRcmd.fromObject(e.dynLiveRcmd)}if(e.dynUgcSeason!=null){if(typeof e.dynUgcSeason!="object")throw TypeError(".gateway.ModuleDynamic.dynUgcSeason: object expected");l.dynUgcSeason=u.gateway.MdlDynUGCSeason.fromObject(e.dynUgcSeason)}if(e.dynSubscriptionNew!=null){if(typeof e.dynSubscriptionNew!="object")throw TypeError(".gateway.ModuleDynamic.dynSubscriptionNew: object expected");l.dynSubscriptionNew=u.gateway.MdlDynSubscriptionNew.fromObject(e.dynSubscriptionNew)}return l},d.toObject=function(e,l){l||(l={});let t={};return l.defaults&&(t.type=l.enums===String?"mdl_dyn_archive":0),e.type!=null&&e.hasOwnProperty("type")&&(t.type=l.enums===String?u.gateway.ModuleDynamicType[e.type]===void 0?e.type:u.gateway.ModuleDynamicType[e.type]:e.type),e.dynArchive!=null&&e.hasOwnProperty("dynArchive")&&(t.dynArchive=u.gateway.MdlDynArchive.toObject(e.dynArchive,l),l.oneofs&&(t.moduleItem="dynArchive")),e.dynPgc!=null&&e.hasOwnProperty("dynPgc")&&(t.dynPgc=u.gateway.MdlDynPGC.toObject(e.dynPgc,l),l.oneofs&&(t.moduleItem="dynPgc")),e.dynCourSeason!=null&&e.hasOwnProperty("dynCourSeason")&&(t.dynCourSeason=u.gateway.MdlDynCourSeason.toObject(e.dynCourSeason,l),l.oneofs&&(t.moduleItem="dynCourSeason")),e.dynCourBatch!=null&&e.hasOwnProperty("dynCourBatch")&&(t.dynCourBatch=u.gateway.MdlDynCourBatch.toObject(e.dynCourBatch,l),l.oneofs&&(t.moduleItem="dynCourBatch")),e.dynForward!=null&&e.hasOwnProperty("dynForward")&&(t.dynForward=u.gateway.MdlDynForward.toObject(e.dynForward,l),l.oneofs&&(t.moduleItem="dynForward")),e.dynDraw!=null&&e.hasOwnProperty("dynDraw")&&(t.dynDraw=u.gateway.MdlDynDraw.toObject(e.dynDraw,l),l.oneofs&&(t.moduleItem="dynDraw")),e.dynArticle!=null&&e.hasOwnProperty("dynArticle")&&(t.dynArticle=u.gateway.MdlDynArticle.toObject(e.dynArticle,l),l.oneofs&&(t.moduleItem="dynArticle")),e.dynMusic!=null&&e.hasOwnProperty("dynMusic")&&(t.dynMusic=u.gateway.MdlDynMusic.toObject(e.dynMusic,l),l.oneofs&&(t.moduleItem="dynMusic")),e.dynCommon!=null&&e.hasOwnProperty("dynCommon")&&(t.dynCommon=u.gateway.MdlDynCommon.toObject(e.dynCommon,l),l.oneofs&&(t.moduleItem="dynCommon")),e.dynCommonLive!=null&&e.hasOwnProperty("dynCommonLive")&&(t.dynCommonLive=u.gateway.MdlDynLive.toObject(e.dynCommonLive,l),l.oneofs&&(t.moduleItem="dynCommonLive")),e.dynMedialist!=null&&e.hasOwnProperty("dynMedialist")&&(t.dynMedialist=u.gateway.MdlDynMedialist.toObject(e.dynMedialist,l),l.oneofs&&(t.moduleItem="dynMedialist")),e.dynApplet!=null&&e.hasOwnProperty("dynApplet")&&(t.dynApplet=u.gateway.MdlDynApplet.toObject(e.dynApplet,l),l.oneofs&&(t.moduleItem="dynApplet")),e.dynSubscription!=null&&e.hasOwnProperty("dynSubscription")&&(t.dynSubscription=u.gateway.MdlDynSubscription.toObject(e.dynSubscription,l),l.oneofs&&(t.moduleItem="dynSubscription")),e.dynLiveRcmd!=null&&e.hasOwnProperty("dynLiveRcmd")&&(t.dynLiveRcmd=u.gateway.MdlDynLiveRcmd.toObject(e.dynLiveRcmd,l),l.oneofs&&(t.moduleItem="dynLiveRcmd")),e.dynUgcSeason!=null&&e.hasOwnProperty("dynUgcSeason")&&(t.dynUgcSeason=u.gateway.MdlDynUGCSeason.toObject(e.dynUgcSeason,l),l.oneofs&&(t.moduleItem="dynUgcSeason")),e.dynSubscriptionNew!=null&&e.hasOwnProperty("dynSubscriptionNew")&&(t.dynSubscriptionNew=u.gateway.MdlDynSubscriptionNew.toObject(e.dynSubscriptionNew,l),l.oneofs&&(t.moduleItem="dynSubscriptionNew")),t},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/gateway.ModuleDynamic"},d}(),O.ModuleDynamicType=function(){let d={},p=Object.create(d);return p[d[0]="mdl_dyn_archive"]=0,p[d[1]="mdl_dyn_pgc"]=1,p[d[2]="mdl_dyn_cour_season"]=2,p[d[3]="mdl_dyn_cour_batch"]=3,p[d[4]="mdl_dyn_forward"]=4,p[d[5]="mdl_dyn_draw"]=5,p[d[6]="mdl_dyn_article"]=6,p[d[7]="mdl_dyn_music"]=7,p[d[8]="mdl_dyn_common"]=8,p[d[9]="mdl_dyn_live"]=9,p[d[10]="mdl_dyn_medialist"]=10,p[d[11]="mdl_dyn_applet"]=11,p[d[12]="mdl_dyn_subscription"]=12,p[d[13]="mdl_dyn_live_rcmd"]=13,p[d[14]="mdl_dyn_ugc_season"]=14,p[d[15]="mdl_dyn_subscription_new"]=15,p}(),O.MdlDynArchive=function(){function d(p){if(this.badge=[],this.badgeCategory=[],p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.title=c.string();break}case 2:{t.cover=c.string();break}case 3:{t.uri=c.string();break}case 4:{t.coverLeftText_1=c.string();break}case 5:{t.coverLeftText_2=c.string();break}case 6:{t.coverLeftText_3=c.string();break}case 7:{t.avid=c.int64();break}case 8:{t.cid=c.int64();break}case 9:{t.mediaType=c.int32();break}case 10:{t.dimension=u.gateway.Dimension.decode(c,c.uint32());break}case 11:{t.badge&&t.badge.length||(t.badge=[]),t.badge.push(u.gateway.VideoBadge.decode(c,c.uint32()));break}case 12:{t.canPlay=c.bool();break}case 13:{t.stype=c.int32();break}case 14:{t.isPGC=c.bool();break}case 15:{t.inlineURL=c.string();break}case 16:{t.EpisodeId=c.int64();break}case 17:{t.SubType=c.int32();break}case 18:{t.PgcSeasonId=c.int64();break}case 19:{t.playIcon=c.string();break}case 20:{t.duration=c.int64();break}case 21:{t.jumpUrl=c.string();break}case 22:{t.isPreview=c.bool();break}case 23:{t.badgeCategory&&t.badgeCategory.length||(t.badgeCategory=[]),t.badgeCategory.push(u.gateway.VideoBadge.decode(c,c.uint32()));break}case 24:{t.isFeature=c.bool();break}case 25:{t.reserveType=c.int32();break}case 26:{t.bvid=c.string();break}case 27:{t.view=c.int32();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.MdlDynArchive)return c;let e=new u.gateway.MdlDynArchive;switch(c.title!=null&&(e.title=String(c.title)),c.cover!=null&&(e.cover=String(c.cover)),c.uri!=null&&(e.uri=String(c.uri)),c.coverLeftText_1!=null&&(e.coverLeftText_1=String(c.coverLeftText_1)),c.coverLeftText_2!=null&&(e.coverLeftText_2=String(c.coverLeftText_2)),c.coverLeftText_3!=null&&(e.coverLeftText_3=String(c.coverLeftText_3)),c.avid!=null&&(r.Long?(e.avid=r.Long.fromValue(c.avid)).unsigned=!1:typeof c.avid=="string"?e.avid=parseInt(c.avid,10):typeof c.avid=="number"?e.avid=c.avid:typeof c.avid=="object"&&(e.avid=new r.LongBits(c.avid.low>>>0,c.avid.high>>>0).toNumber())),c.cid!=null&&(r.Long?(e.cid=r.Long.fromValue(c.cid)).unsigned=!1:typeof c.cid=="string"?e.cid=parseInt(c.cid,10):typeof c.cid=="number"?e.cid=c.cid:typeof c.cid=="object"&&(e.cid=new r.LongBits(c.cid.low>>>0,c.cid.high>>>0).toNumber())),c.mediaType){default:if(typeof c.mediaType=="number"){e.mediaType=c.mediaType;break}break;case"MediaTypeNone":case 0:e.mediaType=0;break;case"MediaTypeUGC":case 1:e.mediaType=1;break;case"MediaTypePGC":case 2:e.mediaType=2;break;case"MediaTypeLive":case 3:e.mediaType=3;break;case"MediaTypeVCS":case 4:e.mediaType=4;break}if(c.dimension!=null){if(typeof c.dimension!="object")throw TypeError(".gateway.MdlDynArchive.dimension: object expected");e.dimension=u.gateway.Dimension.fromObject(c.dimension)}if(c.badge){if(!Array.isArray(c.badge))throw TypeError(".gateway.MdlDynArchive.badge: array expected");e.badge=[];for(let l=0;l>>0,c.EpisodeId.high>>>0).toNumber())),c.SubType!=null&&(e.SubType=c.SubType|0),c.PgcSeasonId!=null&&(r.Long?(e.PgcSeasonId=r.Long.fromValue(c.PgcSeasonId)).unsigned=!1:typeof c.PgcSeasonId=="string"?e.PgcSeasonId=parseInt(c.PgcSeasonId,10):typeof c.PgcSeasonId=="number"?e.PgcSeasonId=c.PgcSeasonId:typeof c.PgcSeasonId=="object"&&(e.PgcSeasonId=new r.LongBits(c.PgcSeasonId.low>>>0,c.PgcSeasonId.high>>>0).toNumber())),c.playIcon!=null&&(e.playIcon=String(c.playIcon)),c.duration!=null&&(r.Long?(e.duration=r.Long.fromValue(c.duration)).unsigned=!1:typeof c.duration=="string"?e.duration=parseInt(c.duration,10):typeof c.duration=="number"?e.duration=c.duration:typeof c.duration=="object"&&(e.duration=new r.LongBits(c.duration.low>>>0,c.duration.high>>>0).toNumber())),c.jumpUrl!=null&&(e.jumpUrl=String(c.jumpUrl)),c.isPreview!=null&&(e.isPreview=!!c.isPreview),c.badgeCategory){if(!Array.isArray(c.badgeCategory))throw TypeError(".gateway.MdlDynArchive.badgeCategory: array expected");e.badgeCategory=[];for(let l=0;l>>0,c.avid.high>>>0).toNumber():c.avid),c.cid!=null&&c.hasOwnProperty("cid")&&(typeof c.cid=="number"?l.cid=e.longs===String?String(c.cid):c.cid:l.cid=e.longs===String?r.Long.prototype.toString.call(c.cid):e.longs===Number?new r.LongBits(c.cid.low>>>0,c.cid.high>>>0).toNumber():c.cid),c.mediaType!=null&&c.hasOwnProperty("mediaType")&&(l.mediaType=e.enums===String?u.gateway.MediaType[c.mediaType]===void 0?c.mediaType:u.gateway.MediaType[c.mediaType]:c.mediaType),c.dimension!=null&&c.hasOwnProperty("dimension")&&(l.dimension=u.gateway.Dimension.toObject(c.dimension,e)),c.badge&&c.badge.length){l.badge=[];for(let t=0;t>>0,c.EpisodeId.high>>>0).toNumber():c.EpisodeId),c.SubType!=null&&c.hasOwnProperty("SubType")&&(l.SubType=c.SubType),c.PgcSeasonId!=null&&c.hasOwnProperty("PgcSeasonId")&&(typeof c.PgcSeasonId=="number"?l.PgcSeasonId=e.longs===String?String(c.PgcSeasonId):c.PgcSeasonId:l.PgcSeasonId=e.longs===String?r.Long.prototype.toString.call(c.PgcSeasonId):e.longs===Number?new r.LongBits(c.PgcSeasonId.low>>>0,c.PgcSeasonId.high>>>0).toNumber():c.PgcSeasonId),c.playIcon!=null&&c.hasOwnProperty("playIcon")&&(l.playIcon=c.playIcon),c.duration!=null&&c.hasOwnProperty("duration")&&(typeof c.duration=="number"?l.duration=e.longs===String?String(c.duration):c.duration:l.duration=e.longs===String?r.Long.prototype.toString.call(c.duration):e.longs===Number?new r.LongBits(c.duration.low>>>0,c.duration.high>>>0).toNumber():c.duration),c.jumpUrl!=null&&c.hasOwnProperty("jumpUrl")&&(l.jumpUrl=c.jumpUrl),c.isPreview!=null&&c.hasOwnProperty("isPreview")&&(l.isPreview=c.isPreview),c.badgeCategory&&c.badgeCategory.length){l.badgeCategory=[];for(let t=0;t>>3){case 1:{t.height=c.int64();break}case 2:{t.width=c.int64();break}case 3:{t.rotate=c.int64();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.Dimension)return c;let e=new u.gateway.Dimension;return c.height!=null&&(r.Long?(e.height=r.Long.fromValue(c.height)).unsigned=!1:typeof c.height=="string"?e.height=parseInt(c.height,10):typeof c.height=="number"?e.height=c.height:typeof c.height=="object"&&(e.height=new r.LongBits(c.height.low>>>0,c.height.high>>>0).toNumber())),c.width!=null&&(r.Long?(e.width=r.Long.fromValue(c.width)).unsigned=!1:typeof c.width=="string"?e.width=parseInt(c.width,10):typeof c.width=="number"?e.width=c.width:typeof c.width=="object"&&(e.width=new r.LongBits(c.width.low>>>0,c.width.high>>>0).toNumber())),c.rotate!=null&&(r.Long?(e.rotate=r.Long.fromValue(c.rotate)).unsigned=!1:typeof c.rotate=="string"?e.rotate=parseInt(c.rotate,10):typeof c.rotate=="number"?e.rotate=c.rotate:typeof c.rotate=="object"&&(e.rotate=new r.LongBits(c.rotate.low>>>0,c.rotate.high>>>0).toNumber())),e},d.toObject=function(c,e){e||(e={});let l={};if(e.defaults){if(r.Long){let t=new r.Long(0,0,!1);l.height=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.height=e.longs===String?"0":0;if(r.Long){let t=new r.Long(0,0,!1);l.width=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.width=e.longs===String?"0":0;if(r.Long){let t=new r.Long(0,0,!1);l.rotate=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.rotate=e.longs===String?"0":0}return c.height!=null&&c.hasOwnProperty("height")&&(typeof c.height=="number"?l.height=e.longs===String?String(c.height):c.height:l.height=e.longs===String?r.Long.prototype.toString.call(c.height):e.longs===Number?new r.LongBits(c.height.low>>>0,c.height.high>>>0).toNumber():c.height),c.width!=null&&c.hasOwnProperty("width")&&(typeof c.width=="number"?l.width=e.longs===String?String(c.width):c.width:l.width=e.longs===String?r.Long.prototype.toString.call(c.width):e.longs===Number?new r.LongBits(c.width.low>>>0,c.width.high>>>0).toNumber():c.width),c.rotate!=null&&c.hasOwnProperty("rotate")&&(typeof c.rotate=="number"?l.rotate=e.longs===String?String(c.rotate):c.rotate:l.rotate=e.longs===String?r.Long.prototype.toString.call(c.rotate):e.longs===Number?new r.LongBits(c.rotate.low>>>0,c.rotate.high>>>0).toNumber():c.rotate),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.Dimension"},d}(),O.VideoBadge=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.text=c.string();break}case 2:{t.textColor=c.string();break}case 3:{t.textColorNight=c.string();break}case 4:{t.bgColor=c.string();break}case 5:{t.bgColorNight=c.string();break}case 6:{t.borderColor=c.string();break}case 7:{t.borderColorNight=c.string();break}case 8:{t.bgStyle=c.int32();break}case 9:{t.bgAlpha=c.int32();break}case 10:{t.bgAlphaNight=c.int32();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.VideoBadge)return c;let e=new u.gateway.VideoBadge;return c.text!=null&&(e.text=String(c.text)),c.textColor!=null&&(e.textColor=String(c.textColor)),c.textColorNight!=null&&(e.textColorNight=String(c.textColorNight)),c.bgColor!=null&&(e.bgColor=String(c.bgColor)),c.bgColorNight!=null&&(e.bgColorNight=String(c.bgColorNight)),c.borderColor!=null&&(e.borderColor=String(c.borderColor)),c.borderColorNight!=null&&(e.borderColorNight=String(c.borderColorNight)),c.bgStyle!=null&&(e.bgStyle=c.bgStyle|0),c.bgAlpha!=null&&(e.bgAlpha=c.bgAlpha|0),c.bgAlphaNight!=null&&(e.bgAlphaNight=c.bgAlphaNight|0),e},d.toObject=function(c,e){e||(e={});let l={};return e.defaults&&(l.text="",l.textColor="",l.textColorNight="",l.bgColor="",l.bgColorNight="",l.borderColor="",l.borderColorNight="",l.bgStyle=0,l.bgAlpha=0,l.bgAlphaNight=0),c.text!=null&&c.hasOwnProperty("text")&&(l.text=c.text),c.textColor!=null&&c.hasOwnProperty("textColor")&&(l.textColor=c.textColor),c.textColorNight!=null&&c.hasOwnProperty("textColorNight")&&(l.textColorNight=c.textColorNight),c.bgColor!=null&&c.hasOwnProperty("bgColor")&&(l.bgColor=c.bgColor),c.bgColorNight!=null&&c.hasOwnProperty("bgColorNight")&&(l.bgColorNight=c.bgColorNight),c.borderColor!=null&&c.hasOwnProperty("borderColor")&&(l.borderColor=c.borderColor),c.borderColorNight!=null&&c.hasOwnProperty("borderColorNight")&&(l.borderColorNight=c.borderColorNight),c.bgStyle!=null&&c.hasOwnProperty("bgStyle")&&(l.bgStyle=c.bgStyle),c.bgAlpha!=null&&c.hasOwnProperty("bgAlpha")&&(l.bgAlpha=c.bgAlpha),c.bgAlphaNight!=null&&c.hasOwnProperty("bgAlphaNight")&&(l.bgAlphaNight=c.bgAlphaNight),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.VideoBadge"},d}(),O.VideoType=function(){let d={},p=Object.create(d);return p[d[0]="video_type_general"]=0,p[d[1]="video_type_dynamic"]=1,p[d[2]="video_type_playback"]=2,p}(),O.MdlDynPGC=function(){function d(p){if(this.badge=[],this.badgeCategory=[],p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.title=c.string();break}case 2:{t.cover=c.string();break}case 3:{t.uri=c.string();break}case 4:{t.coverLeftText_1=c.string();break}case 5:{t.coverLeftText_2=c.string();break}case 6:{t.coverLeftText_3=c.string();break}case 7:{t.cid=c.int64();break}case 8:{t.seasonId=c.int64();break}case 9:{t.epid=c.int64();break}case 10:{t.aid=c.int64();break}case 11:{t.mediaType=c.int32();break}case 12:{t.subType=c.int32();break}case 13:{t.isPreview=c.bool();break}case 14:{t.dimension=u.gateway.Dimension.decode(c,c.uint32());break}case 15:{t.badge&&t.badge.length||(t.badge=[]),t.badge.push(u.gateway.VideoBadge.decode(c,c.uint32()));break}case 16:{t.canPlay=c.bool();break}case 17:{t.season=u.gateway.PGCSeason.decode(c,c.uint32());break}case 18:{t.playIcon=c.string();break}case 19:{t.duration=c.int64();break}case 20:{t.jumpUrl=c.string();break}case 21:{t.badgeCategory&&t.badgeCategory.length||(t.badgeCategory=[]),t.badgeCategory.push(u.gateway.VideoBadge.decode(c,c.uint32()));break}case 22:{t.isFeature=c.bool();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.MdlDynPGC)return c;let e=new u.gateway.MdlDynPGC;switch(c.title!=null&&(e.title=String(c.title)),c.cover!=null&&(e.cover=String(c.cover)),c.uri!=null&&(e.uri=String(c.uri)),c.coverLeftText_1!=null&&(e.coverLeftText_1=String(c.coverLeftText_1)),c.coverLeftText_2!=null&&(e.coverLeftText_2=String(c.coverLeftText_2)),c.coverLeftText_3!=null&&(e.coverLeftText_3=String(c.coverLeftText_3)),c.cid!=null&&(r.Long?(e.cid=r.Long.fromValue(c.cid)).unsigned=!1:typeof c.cid=="string"?e.cid=parseInt(c.cid,10):typeof c.cid=="number"?e.cid=c.cid:typeof c.cid=="object"&&(e.cid=new r.LongBits(c.cid.low>>>0,c.cid.high>>>0).toNumber())),c.seasonId!=null&&(r.Long?(e.seasonId=r.Long.fromValue(c.seasonId)).unsigned=!1:typeof c.seasonId=="string"?e.seasonId=parseInt(c.seasonId,10):typeof c.seasonId=="number"?e.seasonId=c.seasonId:typeof c.seasonId=="object"&&(e.seasonId=new r.LongBits(c.seasonId.low>>>0,c.seasonId.high>>>0).toNumber())),c.epid!=null&&(r.Long?(e.epid=r.Long.fromValue(c.epid)).unsigned=!1:typeof c.epid=="string"?e.epid=parseInt(c.epid,10):typeof c.epid=="number"?e.epid=c.epid:typeof c.epid=="object"&&(e.epid=new r.LongBits(c.epid.low>>>0,c.epid.high>>>0).toNumber())),c.aid!=null&&(r.Long?(e.aid=r.Long.fromValue(c.aid)).unsigned=!1:typeof c.aid=="string"?e.aid=parseInt(c.aid,10):typeof c.aid=="number"?e.aid=c.aid:typeof c.aid=="object"&&(e.aid=new r.LongBits(c.aid.low>>>0,c.aid.high>>>0).toNumber())),c.mediaType){default:if(typeof c.mediaType=="number"){e.mediaType=c.mediaType;break}break;case"MediaTypeNone":case 0:e.mediaType=0;break;case"MediaTypeUGC":case 1:e.mediaType=1;break;case"MediaTypePGC":case 2:e.mediaType=2;break;case"MediaTypeLive":case 3:e.mediaType=3;break;case"MediaTypeVCS":case 4:e.mediaType=4;break}switch(c.subType){default:if(typeof c.subType=="number"){e.subType=c.subType;break}break;case"VideoSubTypeNone":case 0:e.subType=0;break;case"VideoSubTypeBangumi":case 1:e.subType=1;break;case"VideoSubTypeMovie":case 2:e.subType=2;break;case"VideoSubTypeDocumentary":case 3:e.subType=3;break;case"VideoSubTypeDomestic":case 4:e.subType=4;break;case"VideoSubTypeTeleplay":case 5:e.subType=5;break}if(c.isPreview!=null&&(e.isPreview=!!c.isPreview),c.dimension!=null){if(typeof c.dimension!="object")throw TypeError(".gateway.MdlDynPGC.dimension: object expected");e.dimension=u.gateway.Dimension.fromObject(c.dimension)}if(c.badge){if(!Array.isArray(c.badge))throw TypeError(".gateway.MdlDynPGC.badge: array expected");e.badge=[];for(let l=0;l>>0,c.duration.high>>>0).toNumber())),c.jumpUrl!=null&&(e.jumpUrl=String(c.jumpUrl)),c.badgeCategory){if(!Array.isArray(c.badgeCategory))throw TypeError(".gateway.MdlDynPGC.badgeCategory: array expected");e.badgeCategory=[];for(let l=0;l>>0,c.cid.high>>>0).toNumber():c.cid),c.seasonId!=null&&c.hasOwnProperty("seasonId")&&(typeof c.seasonId=="number"?l.seasonId=e.longs===String?String(c.seasonId):c.seasonId:l.seasonId=e.longs===String?r.Long.prototype.toString.call(c.seasonId):e.longs===Number?new r.LongBits(c.seasonId.low>>>0,c.seasonId.high>>>0).toNumber():c.seasonId),c.epid!=null&&c.hasOwnProperty("epid")&&(typeof c.epid=="number"?l.epid=e.longs===String?String(c.epid):c.epid:l.epid=e.longs===String?r.Long.prototype.toString.call(c.epid):e.longs===Number?new r.LongBits(c.epid.low>>>0,c.epid.high>>>0).toNumber():c.epid),c.aid!=null&&c.hasOwnProperty("aid")&&(typeof c.aid=="number"?l.aid=e.longs===String?String(c.aid):c.aid:l.aid=e.longs===String?r.Long.prototype.toString.call(c.aid):e.longs===Number?new r.LongBits(c.aid.low>>>0,c.aid.high>>>0).toNumber():c.aid),c.mediaType!=null&&c.hasOwnProperty("mediaType")&&(l.mediaType=e.enums===String?u.gateway.MediaType[c.mediaType]===void 0?c.mediaType:u.gateway.MediaType[c.mediaType]:c.mediaType),c.subType!=null&&c.hasOwnProperty("subType")&&(l.subType=e.enums===String?u.gateway.VideoSubType[c.subType]===void 0?c.subType:u.gateway.VideoSubType[c.subType]:c.subType),c.isPreview!=null&&c.hasOwnProperty("isPreview")&&(l.isPreview=c.isPreview),c.dimension!=null&&c.hasOwnProperty("dimension")&&(l.dimension=u.gateway.Dimension.toObject(c.dimension,e)),c.badge&&c.badge.length){l.badge=[];for(let t=0;t>>0,c.duration.high>>>0).toNumber():c.duration),c.jumpUrl!=null&&c.hasOwnProperty("jumpUrl")&&(l.jumpUrl=c.jumpUrl),c.badgeCategory&&c.badgeCategory.length){l.badgeCategory=[];for(let t=0;t>>3){case 1:{t.isFinish=c.int32();break}case 2:{t.title=c.string();break}case 3:{t.type=c.int32();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.PGCSeason)return c;let e=new u.gateway.PGCSeason;return c.isFinish!=null&&(e.isFinish=c.isFinish|0),c.title!=null&&(e.title=String(c.title)),c.type!=null&&(e.type=c.type|0),e},d.toObject=function(c,e){e||(e={});let l={};return e.defaults&&(l.isFinish=0,l.title="",l.type=0),c.isFinish!=null&&c.hasOwnProperty("isFinish")&&(l.isFinish=c.isFinish),c.title!=null&&c.hasOwnProperty("title")&&(l.title=c.title),c.type!=null&&c.hasOwnProperty("type")&&(l.type=c.type),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.PGCSeason"},d}(),O.MdlDynCourSeason=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.title=c.string();break}case 2:{t.cover=c.string();break}case 3:{t.uri=c.string();break}case 4:{t.text_1=c.string();break}case 5:{t.desc=c.string();break}case 6:{t.badge=u.gateway.VideoBadge.decode(c,c.uint32());break}case 7:{t.playIcon=c.string();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.MdlDynCourSeason)return c;let e=new u.gateway.MdlDynCourSeason;if(c.title!=null&&(e.title=String(c.title)),c.cover!=null&&(e.cover=String(c.cover)),c.uri!=null&&(e.uri=String(c.uri)),c.text_1!=null&&(e.text_1=String(c.text_1)),c.desc!=null&&(e.desc=String(c.desc)),c.badge!=null){if(typeof c.badge!="object")throw TypeError(".gateway.MdlDynCourSeason.badge: object expected");e.badge=u.gateway.VideoBadge.fromObject(c.badge)}return c.playIcon!=null&&(e.playIcon=String(c.playIcon)),e},d.toObject=function(c,e){e||(e={});let l={};return e.defaults&&(l.title="",l.cover="",l.uri="",l.text_1="",l.desc="",l.badge=null,l.playIcon=""),c.title!=null&&c.hasOwnProperty("title")&&(l.title=c.title),c.cover!=null&&c.hasOwnProperty("cover")&&(l.cover=c.cover),c.uri!=null&&c.hasOwnProperty("uri")&&(l.uri=c.uri),c.text_1!=null&&c.hasOwnProperty("text_1")&&(l.text_1=c.text_1),c.desc!=null&&c.hasOwnProperty("desc")&&(l.desc=c.desc),c.badge!=null&&c.hasOwnProperty("badge")&&(l.badge=u.gateway.VideoBadge.toObject(c.badge,e)),c.playIcon!=null&&c.hasOwnProperty("playIcon")&&(l.playIcon=c.playIcon),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.MdlDynCourSeason"},d}(),O.MdlDynCourBatch=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.title=c.string();break}case 2:{t.cover=c.string();break}case 3:{t.uri=c.string();break}case 4:{t.text_1=c.string();break}case 5:{t.text_2=c.string();break}case 6:{t.badge=u.gateway.VideoBadge.decode(c,c.uint32());break}case 7:{t.playIcon=c.string();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.MdlDynCourBatch)return c;let e=new u.gateway.MdlDynCourBatch;if(c.title!=null&&(e.title=String(c.title)),c.cover!=null&&(e.cover=String(c.cover)),c.uri!=null&&(e.uri=String(c.uri)),c.text_1!=null&&(e.text_1=String(c.text_1)),c.text_2!=null&&(e.text_2=String(c.text_2)),c.badge!=null){if(typeof c.badge!="object")throw TypeError(".gateway.MdlDynCourBatch.badge: object expected");e.badge=u.gateway.VideoBadge.fromObject(c.badge)}return c.playIcon!=null&&(e.playIcon=String(c.playIcon)),e},d.toObject=function(c,e){e||(e={});let l={};return e.defaults&&(l.title="",l.cover="",l.uri="",l.text_1="",l.text_2="",l.badge=null,l.playIcon=""),c.title!=null&&c.hasOwnProperty("title")&&(l.title=c.title),c.cover!=null&&c.hasOwnProperty("cover")&&(l.cover=c.cover),c.uri!=null&&c.hasOwnProperty("uri")&&(l.uri=c.uri),c.text_1!=null&&c.hasOwnProperty("text_1")&&(l.text_1=c.text_1),c.text_2!=null&&c.hasOwnProperty("text_2")&&(l.text_2=c.text_2),c.badge!=null&&c.hasOwnProperty("badge")&&(l.badge=u.gateway.VideoBadge.toObject(c.badge,e)),c.playIcon!=null&&c.hasOwnProperty("playIcon")&&(l.playIcon=c.playIcon),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.MdlDynCourBatch"},d}(),O.MdlDynForward=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.item=u.gateway.DynamicItem.decode(c,c.uint32());break}case 2:{t.rtype=c.int32();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.MdlDynForward)return c;let e=new u.gateway.MdlDynForward;if(c.item!=null){if(typeof c.item!="object")throw TypeError(".gateway.MdlDynForward.item: object expected");e.item=u.gateway.DynamicItem.fromObject(c.item)}return c.rtype!=null&&(e.rtype=c.rtype|0),e},d.toObject=function(c,e){e||(e={});let l={};return e.defaults&&(l.item=null,l.rtype=0),c.item!=null&&c.hasOwnProperty("item")&&(l.item=u.gateway.DynamicItem.toObject(c.item,e)),c.rtype!=null&&c.hasOwnProperty("rtype")&&(l.rtype=c.rtype),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.MdlDynForward"},d}(),O.MdlDynDraw=function(){function d(p){if(this.items=[],p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.items&&t.items.length||(t.items=[]),t.items.push(u.gateway.MdlDynDrawItem.decode(c,c.uint32()));break}case 2:{t.uri=c.string();break}case 3:{t.id=c.int64();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.MdlDynDraw)return c;let e=new u.gateway.MdlDynDraw;if(c.items){if(!Array.isArray(c.items))throw TypeError(".gateway.MdlDynDraw.items: array expected");e.items=[];for(let l=0;l>>0,c.id.high>>>0).toNumber())),e},d.toObject=function(c,e){e||(e={});let l={};if((e.arrays||e.defaults)&&(l.items=[]),e.defaults)if(l.uri="",r.Long){let t=new r.Long(0,0,!1);l.id=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.id=e.longs===String?"0":0;if(c.items&&c.items.length){l.items=[];for(let t=0;t>>0,c.id.high>>>0).toNumber():c.id),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.MdlDynDraw"},d}(),O.MdlDynDrawItem=function(){function d(p){if(this.tags=[],p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.src=c.string();break}case 2:{t.width=c.int64();break}case 3:{t.height=c.int64();break}case 4:{t.size=c.float();break}case 5:{t.tags&&t.tags.length||(t.tags=[]),t.tags.push(u.gateway.MdlDynDrawTag.decode(c,c.uint32()));break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.MdlDynDrawItem)return c;let e=new u.gateway.MdlDynDrawItem;if(c.src!=null&&(e.src=String(c.src)),c.width!=null&&(r.Long?(e.width=r.Long.fromValue(c.width)).unsigned=!1:typeof c.width=="string"?e.width=parseInt(c.width,10):typeof c.width=="number"?e.width=c.width:typeof c.width=="object"&&(e.width=new r.LongBits(c.width.low>>>0,c.width.high>>>0).toNumber())),c.height!=null&&(r.Long?(e.height=r.Long.fromValue(c.height)).unsigned=!1:typeof c.height=="string"?e.height=parseInt(c.height,10):typeof c.height=="number"?e.height=c.height:typeof c.height=="object"&&(e.height=new r.LongBits(c.height.low>>>0,c.height.high>>>0).toNumber())),c.size!=null&&(e.size=Number(c.size)),c.tags){if(!Array.isArray(c.tags))throw TypeError(".gateway.MdlDynDrawItem.tags: array expected");e.tags=[];for(let l=0;l>>0,c.width.high>>>0).toNumber():c.width),c.height!=null&&c.hasOwnProperty("height")&&(typeof c.height=="number"?l.height=e.longs===String?String(c.height):c.height:l.height=e.longs===String?r.Long.prototype.toString.call(c.height):e.longs===Number?new r.LongBits(c.height.low>>>0,c.height.high>>>0).toNumber():c.height),c.size!=null&&c.hasOwnProperty("size")&&(l.size=e.json&&!isFinite(c.size)?String(c.size):c.size),c.tags&&c.tags.length){l.tags=[];for(let t=0;t>>3){case 1:{t.type=c.int32();break}case 2:{t.item=u.gateway.MdlDynDrawTagItem.decode(c,c.uint32());break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.MdlDynDrawTag)return c;let e=new u.gateway.MdlDynDrawTag;switch(c.type){default:if(typeof c.type=="number"){e.type=c.type;break}break;case"mdl_draw_tag_none":case 0:e.type=0;break;case"mdl_draw_tag_common":case 1:e.type=1;break;case"mdl_draw_tag_goods":case 2:e.type=2;break;case"mdl_draw_tag_user":case 3:e.type=3;break;case"mdl_draw_tag_topic":case 4:e.type=4;break;case"mdl_draw_tag_lbs":case 5:e.type=5;break}if(c.item!=null){if(typeof c.item!="object")throw TypeError(".gateway.MdlDynDrawTag.item: object expected");e.item=u.gateway.MdlDynDrawTagItem.fromObject(c.item)}return e},d.toObject=function(c,e){e||(e={});let l={};return e.defaults&&(l.type=e.enums===String?"mdl_draw_tag_none":0,l.item=null),c.type!=null&&c.hasOwnProperty("type")&&(l.type=e.enums===String?u.gateway.MdlDynDrawTagType[c.type]===void 0?c.type:u.gateway.MdlDynDrawTagType[c.type]:c.type),c.item!=null&&c.hasOwnProperty("item")&&(l.item=u.gateway.MdlDynDrawTagItem.toObject(c.item,e)),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.MdlDynDrawTag"},d}(),O.MdlDynDrawTagType=function(){let d={},p=Object.create(d);return p[d[0]="mdl_draw_tag_none"]=0,p[d[1]="mdl_draw_tag_common"]=1,p[d[2]="mdl_draw_tag_goods"]=2,p[d[3]="mdl_draw_tag_user"]=3,p[d[4]="mdl_draw_tag_topic"]=4,p[d[5]="mdl_draw_tag_lbs"]=5,p}(),O.MdlDynDrawTagItem=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.url=c.string();break}case 2:{t.text=c.string();break}case 3:{t.x=c.int64();break}case 4:{t.y=c.int64();break}case 5:{t.orientation=c.int32();break}case 6:{t.source=c.int32();break}case 7:{t.itemId=c.int64();break}case 8:{t.mid=c.int64();break}case 9:{t.tid=c.int64();break}case 10:{t.poi=c.string();break}case 11:{t.schemaUrl=c.string();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.MdlDynDrawTagItem)return c;let e=new u.gateway.MdlDynDrawTagItem;return c.url!=null&&(e.url=String(c.url)),c.text!=null&&(e.text=String(c.text)),c.x!=null&&(r.Long?(e.x=r.Long.fromValue(c.x)).unsigned=!1:typeof c.x=="string"?e.x=parseInt(c.x,10):typeof c.x=="number"?e.x=c.x:typeof c.x=="object"&&(e.x=new r.LongBits(c.x.low>>>0,c.x.high>>>0).toNumber())),c.y!=null&&(r.Long?(e.y=r.Long.fromValue(c.y)).unsigned=!1:typeof c.y=="string"?e.y=parseInt(c.y,10):typeof c.y=="number"?e.y=c.y:typeof c.y=="object"&&(e.y=new r.LongBits(c.y.low>>>0,c.y.high>>>0).toNumber())),c.orientation!=null&&(e.orientation=c.orientation|0),c.source!=null&&(e.source=c.source|0),c.itemId!=null&&(r.Long?(e.itemId=r.Long.fromValue(c.itemId)).unsigned=!1:typeof c.itemId=="string"?e.itemId=parseInt(c.itemId,10):typeof c.itemId=="number"?e.itemId=c.itemId:typeof c.itemId=="object"&&(e.itemId=new r.LongBits(c.itemId.low>>>0,c.itemId.high>>>0).toNumber())),c.mid!=null&&(r.Long?(e.mid=r.Long.fromValue(c.mid)).unsigned=!1:typeof c.mid=="string"?e.mid=parseInt(c.mid,10):typeof c.mid=="number"?e.mid=c.mid:typeof c.mid=="object"&&(e.mid=new r.LongBits(c.mid.low>>>0,c.mid.high>>>0).toNumber())),c.tid!=null&&(r.Long?(e.tid=r.Long.fromValue(c.tid)).unsigned=!1:typeof c.tid=="string"?e.tid=parseInt(c.tid,10):typeof c.tid=="number"?e.tid=c.tid:typeof c.tid=="object"&&(e.tid=new r.LongBits(c.tid.low>>>0,c.tid.high>>>0).toNumber())),c.poi!=null&&(e.poi=String(c.poi)),c.schemaUrl!=null&&(e.schemaUrl=String(c.schemaUrl)),e},d.toObject=function(c,e){e||(e={});let l={};if(e.defaults){if(l.url="",l.text="",r.Long){let t=new r.Long(0,0,!1);l.x=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.x=e.longs===String?"0":0;if(r.Long){let t=new r.Long(0,0,!1);l.y=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.y=e.longs===String?"0":0;if(l.orientation=0,l.source=0,r.Long){let t=new r.Long(0,0,!1);l.itemId=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.itemId=e.longs===String?"0":0;if(r.Long){let t=new r.Long(0,0,!1);l.mid=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.mid=e.longs===String?"0":0;if(r.Long){let t=new r.Long(0,0,!1);l.tid=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.tid=e.longs===String?"0":0;l.poi="",l.schemaUrl=""}return c.url!=null&&c.hasOwnProperty("url")&&(l.url=c.url),c.text!=null&&c.hasOwnProperty("text")&&(l.text=c.text),c.x!=null&&c.hasOwnProperty("x")&&(typeof c.x=="number"?l.x=e.longs===String?String(c.x):c.x:l.x=e.longs===String?r.Long.prototype.toString.call(c.x):e.longs===Number?new r.LongBits(c.x.low>>>0,c.x.high>>>0).toNumber():c.x),c.y!=null&&c.hasOwnProperty("y")&&(typeof c.y=="number"?l.y=e.longs===String?String(c.y):c.y:l.y=e.longs===String?r.Long.prototype.toString.call(c.y):e.longs===Number?new r.LongBits(c.y.low>>>0,c.y.high>>>0).toNumber():c.y),c.orientation!=null&&c.hasOwnProperty("orientation")&&(l.orientation=c.orientation),c.source!=null&&c.hasOwnProperty("source")&&(l.source=c.source),c.itemId!=null&&c.hasOwnProperty("itemId")&&(typeof c.itemId=="number"?l.itemId=e.longs===String?String(c.itemId):c.itemId:l.itemId=e.longs===String?r.Long.prototype.toString.call(c.itemId):e.longs===Number?new r.LongBits(c.itemId.low>>>0,c.itemId.high>>>0).toNumber():c.itemId),c.mid!=null&&c.hasOwnProperty("mid")&&(typeof c.mid=="number"?l.mid=e.longs===String?String(c.mid):c.mid:l.mid=e.longs===String?r.Long.prototype.toString.call(c.mid):e.longs===Number?new r.LongBits(c.mid.low>>>0,c.mid.high>>>0).toNumber():c.mid),c.tid!=null&&c.hasOwnProperty("tid")&&(typeof c.tid=="number"?l.tid=e.longs===String?String(c.tid):c.tid:l.tid=e.longs===String?r.Long.prototype.toString.call(c.tid):e.longs===Number?new r.LongBits(c.tid.low>>>0,c.tid.high>>>0).toNumber():c.tid),c.poi!=null&&c.hasOwnProperty("poi")&&(l.poi=c.poi),c.schemaUrl!=null&&c.hasOwnProperty("schemaUrl")&&(l.schemaUrl=c.schemaUrl),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.MdlDynDrawTagItem"},d}(),O.MdlDynArticle=function(){function d(p){if(this.covers=[],p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.id=c.int64();break}case 2:{t.uri=c.string();break}case 3:{t.title=c.string();break}case 4:{t.desc=c.string();break}case 5:{t.covers&&t.covers.length||(t.covers=[]),t.covers.push(c.string());break}case 6:{t.label=c.string();break}case 7:{t.templateID=c.int32();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.MdlDynArticle)return c;let e=new u.gateway.MdlDynArticle;if(c.id!=null&&(r.Long?(e.id=r.Long.fromValue(c.id)).unsigned=!1:typeof c.id=="string"?e.id=parseInt(c.id,10):typeof c.id=="number"?e.id=c.id:typeof c.id=="object"&&(e.id=new r.LongBits(c.id.low>>>0,c.id.high>>>0).toNumber())),c.uri!=null&&(e.uri=String(c.uri)),c.title!=null&&(e.title=String(c.title)),c.desc!=null&&(e.desc=String(c.desc)),c.covers){if(!Array.isArray(c.covers))throw TypeError(".gateway.MdlDynArticle.covers: array expected");e.covers=[];for(let l=0;l>>0,c.id.high>>>0).toNumber():c.id),c.uri!=null&&c.hasOwnProperty("uri")&&(l.uri=c.uri),c.title!=null&&c.hasOwnProperty("title")&&(l.title=c.title),c.desc!=null&&c.hasOwnProperty("desc")&&(l.desc=c.desc),c.covers&&c.covers.length){l.covers=[];for(let t=0;t>>3){case 1:{t.id=c.int64();break}case 2:{t.uri=c.string();break}case 3:{t.upId=c.int64();break}case 4:{t.title=c.string();break}case 5:{t.cover=c.string();break}case 6:{t.label1=c.string();break}case 7:{t.upper=c.string();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.MdlDynMusic)return c;let e=new u.gateway.MdlDynMusic;return c.id!=null&&(r.Long?(e.id=r.Long.fromValue(c.id)).unsigned=!1:typeof c.id=="string"?e.id=parseInt(c.id,10):typeof c.id=="number"?e.id=c.id:typeof c.id=="object"&&(e.id=new r.LongBits(c.id.low>>>0,c.id.high>>>0).toNumber())),c.uri!=null&&(e.uri=String(c.uri)),c.upId!=null&&(r.Long?(e.upId=r.Long.fromValue(c.upId)).unsigned=!1:typeof c.upId=="string"?e.upId=parseInt(c.upId,10):typeof c.upId=="number"?e.upId=c.upId:typeof c.upId=="object"&&(e.upId=new r.LongBits(c.upId.low>>>0,c.upId.high>>>0).toNumber())),c.title!=null&&(e.title=String(c.title)),c.cover!=null&&(e.cover=String(c.cover)),c.label1!=null&&(e.label1=String(c.label1)),c.upper!=null&&(e.upper=String(c.upper)),e},d.toObject=function(c,e){e||(e={});let l={};if(e.defaults){if(r.Long){let t=new r.Long(0,0,!1);l.id=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.id=e.longs===String?"0":0;if(l.uri="",r.Long){let t=new r.Long(0,0,!1);l.upId=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.upId=e.longs===String?"0":0;l.title="",l.cover="",l.label1="",l.upper=""}return c.id!=null&&c.hasOwnProperty("id")&&(typeof c.id=="number"?l.id=e.longs===String?String(c.id):c.id:l.id=e.longs===String?r.Long.prototype.toString.call(c.id):e.longs===Number?new r.LongBits(c.id.low>>>0,c.id.high>>>0).toNumber():c.id),c.uri!=null&&c.hasOwnProperty("uri")&&(l.uri=c.uri),c.upId!=null&&c.hasOwnProperty("upId")&&(typeof c.upId=="number"?l.upId=e.longs===String?String(c.upId):c.upId:l.upId=e.longs===String?r.Long.prototype.toString.call(c.upId):e.longs===Number?new r.LongBits(c.upId.low>>>0,c.upId.high>>>0).toNumber():c.upId),c.title!=null&&c.hasOwnProperty("title")&&(l.title=c.title),c.cover!=null&&c.hasOwnProperty("cover")&&(l.cover=c.cover),c.label1!=null&&c.hasOwnProperty("label1")&&(l.label1=c.label1),c.upper!=null&&c.hasOwnProperty("upper")&&(l.upper=c.upper),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.MdlDynMusic"},d}(),O.MdlDynCommon=function(){function d(p){if(this.badge=[],p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.oid=c.int64();break}case 2:{t.uri=c.string();break}case 3:{t.title=c.string();break}case 4:{t.desc=c.string();break}case 5:{t.cover=c.string();break}case 6:{t.label=c.string();break}case 7:{t.bizType=c.int32();break}case 8:{t.sketchID=c.int64();break}case 9:{t.style=c.int32();break}case 10:{t.badge&&t.badge.length||(t.badge=[]),t.badge.push(u.gateway.VideoBadge.decode(c,c.uint32()));break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.MdlDynCommon)return c;let e=new u.gateway.MdlDynCommon;switch(c.oid!=null&&(r.Long?(e.oid=r.Long.fromValue(c.oid)).unsigned=!1:typeof c.oid=="string"?e.oid=parseInt(c.oid,10):typeof c.oid=="number"?e.oid=c.oid:typeof c.oid=="object"&&(e.oid=new r.LongBits(c.oid.low>>>0,c.oid.high>>>0).toNumber())),c.uri!=null&&(e.uri=String(c.uri)),c.title!=null&&(e.title=String(c.title)),c.desc!=null&&(e.desc=String(c.desc)),c.cover!=null&&(e.cover=String(c.cover)),c.label!=null&&(e.label=String(c.label)),c.bizType!=null&&(e.bizType=c.bizType|0),c.sketchID!=null&&(r.Long?(e.sketchID=r.Long.fromValue(c.sketchID)).unsigned=!1:typeof c.sketchID=="string"?e.sketchID=parseInt(c.sketchID,10):typeof c.sketchID=="number"?e.sketchID=c.sketchID:typeof c.sketchID=="object"&&(e.sketchID=new r.LongBits(c.sketchID.low>>>0,c.sketchID.high>>>0).toNumber())),c.style){default:if(typeof c.style=="number"){e.style=c.style;break}break;case"mdl_dyn_common_none":case 0:e.style=0;break;case"mdl_dyn_common_square":case 1:e.style=1;break;case"mdl_dyn_common_vertica":case 2:e.style=2;break}if(c.badge){if(!Array.isArray(c.badge))throw TypeError(".gateway.MdlDynCommon.badge: array expected");e.badge=[];for(let l=0;l>>0,c.oid.high>>>0).toNumber():c.oid),c.uri!=null&&c.hasOwnProperty("uri")&&(l.uri=c.uri),c.title!=null&&c.hasOwnProperty("title")&&(l.title=c.title),c.desc!=null&&c.hasOwnProperty("desc")&&(l.desc=c.desc),c.cover!=null&&c.hasOwnProperty("cover")&&(l.cover=c.cover),c.label!=null&&c.hasOwnProperty("label")&&(l.label=c.label),c.bizType!=null&&c.hasOwnProperty("bizType")&&(l.bizType=c.bizType),c.sketchID!=null&&c.hasOwnProperty("sketchID")&&(typeof c.sketchID=="number"?l.sketchID=e.longs===String?String(c.sketchID):c.sketchID:l.sketchID=e.longs===String?r.Long.prototype.toString.call(c.sketchID):e.longs===Number?new r.LongBits(c.sketchID.low>>>0,c.sketchID.high>>>0).toNumber():c.sketchID),c.style!=null&&c.hasOwnProperty("style")&&(l.style=e.enums===String?u.gateway.MdlDynCommonType[c.style]===void 0?c.style:u.gateway.MdlDynCommonType[c.style]:c.style),c.badge&&c.badge.length){l.badge=[];for(let t=0;t>>3){case 1:{t.id=c.int64();break}case 2:{t.uri=c.string();break}case 3:{t.title=c.string();break}case 4:{t.cover=c.string();break}case 5:{t.coverLabel=c.string();break}case 6:{t.coverLabel2=c.string();break}case 7:{t.liveState=c.int32();break}case 8:{t.badge=u.gateway.VideoBadge.decode(c,c.uint32());break}case 9:{t.reserveType=c.int32();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.MdlDynLive)return c;let e=new u.gateway.MdlDynLive;switch(c.id!=null&&(r.Long?(e.id=r.Long.fromValue(c.id)).unsigned=!1:typeof c.id=="string"?e.id=parseInt(c.id,10):typeof c.id=="number"?e.id=c.id:typeof c.id=="object"&&(e.id=new r.LongBits(c.id.low>>>0,c.id.high>>>0).toNumber())),c.uri!=null&&(e.uri=String(c.uri)),c.title!=null&&(e.title=String(c.title)),c.cover!=null&&(e.cover=String(c.cover)),c.coverLabel!=null&&(e.coverLabel=String(c.coverLabel)),c.coverLabel2!=null&&(e.coverLabel2=String(c.coverLabel2)),c.liveState){default:if(typeof c.liveState=="number"){e.liveState=c.liveState;break}break;case"live_none":case 0:e.liveState=0;break;case"live_live":case 1:e.liveState=1;break;case"live_rotation":case 2:e.liveState=2;break}if(c.badge!=null){if(typeof c.badge!="object")throw TypeError(".gateway.MdlDynLive.badge: object expected");e.badge=u.gateway.VideoBadge.fromObject(c.badge)}switch(c.reserveType){default:if(typeof c.reserveType=="number"){e.reserveType=c.reserveType;break}break;case"reserve_none":case 0:e.reserveType=0;break;case"reserve_recall":case 1:e.reserveType=1;break}return e},d.toObject=function(c,e){e||(e={});let l={};if(e.defaults){if(r.Long){let t=new r.Long(0,0,!1);l.id=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.id=e.longs===String?"0":0;l.uri="",l.title="",l.cover="",l.coverLabel="",l.coverLabel2="",l.liveState=e.enums===String?"live_none":0,l.badge=null,l.reserveType=e.enums===String?"reserve_none":0}return c.id!=null&&c.hasOwnProperty("id")&&(typeof c.id=="number"?l.id=e.longs===String?String(c.id):c.id:l.id=e.longs===String?r.Long.prototype.toString.call(c.id):e.longs===Number?new r.LongBits(c.id.low>>>0,c.id.high>>>0).toNumber():c.id),c.uri!=null&&c.hasOwnProperty("uri")&&(l.uri=c.uri),c.title!=null&&c.hasOwnProperty("title")&&(l.title=c.title),c.cover!=null&&c.hasOwnProperty("cover")&&(l.cover=c.cover),c.coverLabel!=null&&c.hasOwnProperty("coverLabel")&&(l.coverLabel=c.coverLabel),c.coverLabel2!=null&&c.hasOwnProperty("coverLabel2")&&(l.coverLabel2=c.coverLabel2),c.liveState!=null&&c.hasOwnProperty("liveState")&&(l.liveState=e.enums===String?u.gateway.LiveState[c.liveState]===void 0?c.liveState:u.gateway.LiveState[c.liveState]:c.liveState),c.badge!=null&&c.hasOwnProperty("badge")&&(l.badge=u.gateway.VideoBadge.toObject(c.badge,e)),c.reserveType!=null&&c.hasOwnProperty("reserveType")&&(l.reserveType=e.enums===String?u.gateway.ReserveType[c.reserveType]===void 0?c.reserveType:u.gateway.ReserveType[c.reserveType]:c.reserveType),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.MdlDynLive"},d}(),O.MdlDynMedialist=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.id=c.int64();break}case 2:{t.uri=c.string();break}case 3:{t.title=c.string();break}case 4:{t.subTitle=c.string();break}case 5:{t.cover=c.string();break}case 6:{t.coverType=c.int32();break}case 7:{t.badge=u.gateway.VideoBadge.decode(c,c.uint32());break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.MdlDynMedialist)return c;let e=new u.gateway.MdlDynMedialist;if(c.id!=null&&(r.Long?(e.id=r.Long.fromValue(c.id)).unsigned=!1:typeof c.id=="string"?e.id=parseInt(c.id,10):typeof c.id=="number"?e.id=c.id:typeof c.id=="object"&&(e.id=new r.LongBits(c.id.low>>>0,c.id.high>>>0).toNumber())),c.uri!=null&&(e.uri=String(c.uri)),c.title!=null&&(e.title=String(c.title)),c.subTitle!=null&&(e.subTitle=String(c.subTitle)),c.cover!=null&&(e.cover=String(c.cover)),c.coverType!=null&&(e.coverType=c.coverType|0),c.badge!=null){if(typeof c.badge!="object")throw TypeError(".gateway.MdlDynMedialist.badge: object expected");e.badge=u.gateway.VideoBadge.fromObject(c.badge)}return e},d.toObject=function(c,e){e||(e={});let l={};if(e.defaults){if(r.Long){let t=new r.Long(0,0,!1);l.id=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.id=e.longs===String?"0":0;l.uri="",l.title="",l.subTitle="",l.cover="",l.coverType=0,l.badge=null}return c.id!=null&&c.hasOwnProperty("id")&&(typeof c.id=="number"?l.id=e.longs===String?String(c.id):c.id:l.id=e.longs===String?r.Long.prototype.toString.call(c.id):e.longs===Number?new r.LongBits(c.id.low>>>0,c.id.high>>>0).toNumber():c.id),c.uri!=null&&c.hasOwnProperty("uri")&&(l.uri=c.uri),c.title!=null&&c.hasOwnProperty("title")&&(l.title=c.title),c.subTitle!=null&&c.hasOwnProperty("subTitle")&&(l.subTitle=c.subTitle),c.cover!=null&&c.hasOwnProperty("cover")&&(l.cover=c.cover),c.coverType!=null&&c.hasOwnProperty("coverType")&&(l.coverType=c.coverType),c.badge!=null&&c.hasOwnProperty("badge")&&(l.badge=u.gateway.VideoBadge.toObject(c.badge,e)),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.MdlDynMedialist"},d}(),O.MdlDynApplet=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.id=c.int64();break}case 2:{t.uri=c.string();break}case 4:{t.title=c.string();break}case 5:{t.subTitle=c.string();break}case 6:{t.cover=c.string();break}case 7:{t.icon=c.string();break}case 8:{t.label=c.string();break}case 9:{t.buttonTitle=c.string();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.MdlDynApplet)return c;let e=new u.gateway.MdlDynApplet;return c.id!=null&&(r.Long?(e.id=r.Long.fromValue(c.id)).unsigned=!1:typeof c.id=="string"?e.id=parseInt(c.id,10):typeof c.id=="number"?e.id=c.id:typeof c.id=="object"&&(e.id=new r.LongBits(c.id.low>>>0,c.id.high>>>0).toNumber())),c.uri!=null&&(e.uri=String(c.uri)),c.title!=null&&(e.title=String(c.title)),c.subTitle!=null&&(e.subTitle=String(c.subTitle)),c.cover!=null&&(e.cover=String(c.cover)),c.icon!=null&&(e.icon=String(c.icon)),c.label!=null&&(e.label=String(c.label)),c.buttonTitle!=null&&(e.buttonTitle=String(c.buttonTitle)),e},d.toObject=function(c,e){e||(e={});let l={};if(e.defaults){if(r.Long){let t=new r.Long(0,0,!1);l.id=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.id=e.longs===String?"0":0;l.uri="",l.title="",l.subTitle="",l.cover="",l.icon="",l.label="",l.buttonTitle=""}return c.id!=null&&c.hasOwnProperty("id")&&(typeof c.id=="number"?l.id=e.longs===String?String(c.id):c.id:l.id=e.longs===String?r.Long.prototype.toString.call(c.id):e.longs===Number?new r.LongBits(c.id.low>>>0,c.id.high>>>0).toNumber():c.id),c.uri!=null&&c.hasOwnProperty("uri")&&(l.uri=c.uri),c.title!=null&&c.hasOwnProperty("title")&&(l.title=c.title),c.subTitle!=null&&c.hasOwnProperty("subTitle")&&(l.subTitle=c.subTitle),c.cover!=null&&c.hasOwnProperty("cover")&&(l.cover=c.cover),c.icon!=null&&c.hasOwnProperty("icon")&&(l.icon=c.icon),c.label!=null&&c.hasOwnProperty("label")&&(l.label=c.label),c.buttonTitle!=null&&c.hasOwnProperty("buttonTitle")&&(l.buttonTitle=c.buttonTitle),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.MdlDynApplet"},d}(),O.MdlDynSubscription=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.id=c.int64();break}case 2:{t.adId=c.int64();break}case 3:{t.uri=c.string();break}case 4:{t.title=c.string();break}case 5:{t.cover=c.string();break}case 6:{t.adTitle=c.string();break}case 7:{t.badge=u.gateway.VideoBadge.decode(c,c.uint32());break}case 8:{t.tips=c.string();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.MdlDynSubscription)return c;let e=new u.gateway.MdlDynSubscription;if(c.id!=null&&(r.Long?(e.id=r.Long.fromValue(c.id)).unsigned=!1:typeof c.id=="string"?e.id=parseInt(c.id,10):typeof c.id=="number"?e.id=c.id:typeof c.id=="object"&&(e.id=new r.LongBits(c.id.low>>>0,c.id.high>>>0).toNumber())),c.adId!=null&&(r.Long?(e.adId=r.Long.fromValue(c.adId)).unsigned=!1:typeof c.adId=="string"?e.adId=parseInt(c.adId,10):typeof c.adId=="number"?e.adId=c.adId:typeof c.adId=="object"&&(e.adId=new r.LongBits(c.adId.low>>>0,c.adId.high>>>0).toNumber())),c.uri!=null&&(e.uri=String(c.uri)),c.title!=null&&(e.title=String(c.title)),c.cover!=null&&(e.cover=String(c.cover)),c.adTitle!=null&&(e.adTitle=String(c.adTitle)),c.badge!=null){if(typeof c.badge!="object")throw TypeError(".gateway.MdlDynSubscription.badge: object expected");e.badge=u.gateway.VideoBadge.fromObject(c.badge)}return c.tips!=null&&(e.tips=String(c.tips)),e},d.toObject=function(c,e){e||(e={});let l={};if(e.defaults){if(r.Long){let t=new r.Long(0,0,!1);l.id=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.id=e.longs===String?"0":0;if(r.Long){let t=new r.Long(0,0,!1);l.adId=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.adId=e.longs===String?"0":0;l.uri="",l.title="",l.cover="",l.adTitle="",l.badge=null,l.tips=""}return c.id!=null&&c.hasOwnProperty("id")&&(typeof c.id=="number"?l.id=e.longs===String?String(c.id):c.id:l.id=e.longs===String?r.Long.prototype.toString.call(c.id):e.longs===Number?new r.LongBits(c.id.low>>>0,c.id.high>>>0).toNumber():c.id),c.adId!=null&&c.hasOwnProperty("adId")&&(typeof c.adId=="number"?l.adId=e.longs===String?String(c.adId):c.adId:l.adId=e.longs===String?r.Long.prototype.toString.call(c.adId):e.longs===Number?new r.LongBits(c.adId.low>>>0,c.adId.high>>>0).toNumber():c.adId),c.uri!=null&&c.hasOwnProperty("uri")&&(l.uri=c.uri),c.title!=null&&c.hasOwnProperty("title")&&(l.title=c.title),c.cover!=null&&c.hasOwnProperty("cover")&&(l.cover=c.cover),c.adTitle!=null&&c.hasOwnProperty("adTitle")&&(l.adTitle=c.adTitle),c.badge!=null&&c.hasOwnProperty("badge")&&(l.badge=u.gateway.VideoBadge.toObject(c.badge,e)),c.tips!=null&&c.hasOwnProperty("tips")&&(l.tips=c.tips),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.MdlDynSubscription"},d}(),O.MdlDynLiveRcmd=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.content=c.string();break}case 2:{t.reserveType=c.int32();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.MdlDynLiveRcmd)return c;let e=new u.gateway.MdlDynLiveRcmd;switch(c.content!=null&&(e.content=String(c.content)),c.reserveType){default:if(typeof c.reserveType=="number"){e.reserveType=c.reserveType;break}break;case"reserve_none":case 0:e.reserveType=0;break;case"reserve_recall":case 1:e.reserveType=1;break}return e},d.toObject=function(c,e){e||(e={});let l={};return e.defaults&&(l.content="",l.reserveType=e.enums===String?"reserve_none":0),c.content!=null&&c.hasOwnProperty("content")&&(l.content=c.content),c.reserveType!=null&&c.hasOwnProperty("reserveType")&&(l.reserveType=e.enums===String?u.gateway.ReserveType[c.reserveType]===void 0?c.reserveType:u.gateway.ReserveType[c.reserveType]:c.reserveType),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.MdlDynLiveRcmd"},d}(),O.MdlDynUGCSeason=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.title=c.string();break}case 2:{t.cover=c.string();break}case 3:{t.uri=c.string();break}case 4:{t.coverLeftText_1=c.string();break}case 5:{t.coverLeftText_2=c.string();break}case 6:{t.coverLeftText_3=c.string();break}case 7:{t.id=c.int64();break}case 8:{t.inlineURL=c.string();break}case 9:{t.canPlay=c.bool();break}case 10:{t.playIcon=c.string();break}case 11:{t.avid=c.int64();break}case 12:{t.cid=c.int64();break}case 13:{t.dimension=u.gateway.Dimension.decode(c,c.uint32());break}case 14:{t.duration=c.int64();break}case 15:{t.jumpUrl=c.string();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.MdlDynUGCSeason)return c;let e=new u.gateway.MdlDynUGCSeason;if(c.title!=null&&(e.title=String(c.title)),c.cover!=null&&(e.cover=String(c.cover)),c.uri!=null&&(e.uri=String(c.uri)),c.coverLeftText_1!=null&&(e.coverLeftText_1=String(c.coverLeftText_1)),c.coverLeftText_2!=null&&(e.coverLeftText_2=String(c.coverLeftText_2)),c.coverLeftText_3!=null&&(e.coverLeftText_3=String(c.coverLeftText_3)),c.id!=null&&(r.Long?(e.id=r.Long.fromValue(c.id)).unsigned=!1:typeof c.id=="string"?e.id=parseInt(c.id,10):typeof c.id=="number"?e.id=c.id:typeof c.id=="object"&&(e.id=new r.LongBits(c.id.low>>>0,c.id.high>>>0).toNumber())),c.inlineURL!=null&&(e.inlineURL=String(c.inlineURL)),c.canPlay!=null&&(e.canPlay=!!c.canPlay),c.playIcon!=null&&(e.playIcon=String(c.playIcon)),c.avid!=null&&(r.Long?(e.avid=r.Long.fromValue(c.avid)).unsigned=!1:typeof c.avid=="string"?e.avid=parseInt(c.avid,10):typeof c.avid=="number"?e.avid=c.avid:typeof c.avid=="object"&&(e.avid=new r.LongBits(c.avid.low>>>0,c.avid.high>>>0).toNumber())),c.cid!=null&&(r.Long?(e.cid=r.Long.fromValue(c.cid)).unsigned=!1:typeof c.cid=="string"?e.cid=parseInt(c.cid,10):typeof c.cid=="number"?e.cid=c.cid:typeof c.cid=="object"&&(e.cid=new r.LongBits(c.cid.low>>>0,c.cid.high>>>0).toNumber())),c.dimension!=null){if(typeof c.dimension!="object")throw TypeError(".gateway.MdlDynUGCSeason.dimension: object expected");e.dimension=u.gateway.Dimension.fromObject(c.dimension)}return c.duration!=null&&(r.Long?(e.duration=r.Long.fromValue(c.duration)).unsigned=!1:typeof c.duration=="string"?e.duration=parseInt(c.duration,10):typeof c.duration=="number"?e.duration=c.duration:typeof c.duration=="object"&&(e.duration=new r.LongBits(c.duration.low>>>0,c.duration.high>>>0).toNumber())),c.jumpUrl!=null&&(e.jumpUrl=String(c.jumpUrl)),e},d.toObject=function(c,e){e||(e={});let l={};if(e.defaults){if(l.title="",l.cover="",l.uri="",l.coverLeftText_1="",l.coverLeftText_2="",l.coverLeftText_3="",r.Long){let t=new r.Long(0,0,!1);l.id=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.id=e.longs===String?"0":0;if(l.inlineURL="",l.canPlay=!1,l.playIcon="",r.Long){let t=new r.Long(0,0,!1);l.avid=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.avid=e.longs===String?"0":0;if(r.Long){let t=new r.Long(0,0,!1);l.cid=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.cid=e.longs===String?"0":0;if(l.dimension=null,r.Long){let t=new r.Long(0,0,!1);l.duration=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.duration=e.longs===String?"0":0;l.jumpUrl=""}return c.title!=null&&c.hasOwnProperty("title")&&(l.title=c.title),c.cover!=null&&c.hasOwnProperty("cover")&&(l.cover=c.cover),c.uri!=null&&c.hasOwnProperty("uri")&&(l.uri=c.uri),c.coverLeftText_1!=null&&c.hasOwnProperty("coverLeftText_1")&&(l.coverLeftText_1=c.coverLeftText_1),c.coverLeftText_2!=null&&c.hasOwnProperty("coverLeftText_2")&&(l.coverLeftText_2=c.coverLeftText_2),c.coverLeftText_3!=null&&c.hasOwnProperty("coverLeftText_3")&&(l.coverLeftText_3=c.coverLeftText_3),c.id!=null&&c.hasOwnProperty("id")&&(typeof c.id=="number"?l.id=e.longs===String?String(c.id):c.id:l.id=e.longs===String?r.Long.prototype.toString.call(c.id):e.longs===Number?new r.LongBits(c.id.low>>>0,c.id.high>>>0).toNumber():c.id),c.inlineURL!=null&&c.hasOwnProperty("inlineURL")&&(l.inlineURL=c.inlineURL),c.canPlay!=null&&c.hasOwnProperty("canPlay")&&(l.canPlay=c.canPlay),c.playIcon!=null&&c.hasOwnProperty("playIcon")&&(l.playIcon=c.playIcon),c.avid!=null&&c.hasOwnProperty("avid")&&(typeof c.avid=="number"?l.avid=e.longs===String?String(c.avid):c.avid:l.avid=e.longs===String?r.Long.prototype.toString.call(c.avid):e.longs===Number?new r.LongBits(c.avid.low>>>0,c.avid.high>>>0).toNumber():c.avid),c.cid!=null&&c.hasOwnProperty("cid")&&(typeof c.cid=="number"?l.cid=e.longs===String?String(c.cid):c.cid:l.cid=e.longs===String?r.Long.prototype.toString.call(c.cid):e.longs===Number?new r.LongBits(c.cid.low>>>0,c.cid.high>>>0).toNumber():c.cid),c.dimension!=null&&c.hasOwnProperty("dimension")&&(l.dimension=u.gateway.Dimension.toObject(c.dimension,e)),c.duration!=null&&c.hasOwnProperty("duration")&&(typeof c.duration=="number"?l.duration=e.longs===String?String(c.duration):c.duration:l.duration=e.longs===String?r.Long.prototype.toString.call(c.duration):e.longs===Number?new r.LongBits(c.duration.low>>>0,c.duration.high>>>0).toNumber():c.duration),c.jumpUrl!=null&&c.hasOwnProperty("jumpUrl")&&(l.jumpUrl=c.jumpUrl),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.MdlDynUGCSeason"},d}(),O.MdlDynSubscriptionNew=function(){function d(c){if(c)for(let e=Object.keys(c),l=0;l>>3){case 1:{i.style=e.int32();break}case 2:{i.dynSubscription=u.gateway.MdlDynSubscription.decode(e,e.uint32());break}case 3:{i.dynLiveRcmd=u.gateway.MdlDynLiveRcmd.decode(e,e.uint32());break}default:e.skipType(n&7);break}}return i},d.fromObject=function(e){if(e instanceof u.gateway.MdlDynSubscriptionNew)return e;let l=new u.gateway.MdlDynSubscriptionNew;switch(e.style){default:if(typeof e.style=="number"){l.style=e.style;break}break;case"mdl_dyn_subscription_new_style_nont":case 0:l.style=0;break;case"mdl_dyn_subscription_new_style_live":case 1:l.style=1;break;case"mdl_dyn_subscription_new_style_draw":case 2:l.style=2;break}if(e.dynSubscription!=null){if(typeof e.dynSubscription!="object")throw TypeError(".gateway.MdlDynSubscriptionNew.dynSubscription: object expected");l.dynSubscription=u.gateway.MdlDynSubscription.fromObject(e.dynSubscription)}if(e.dynLiveRcmd!=null){if(typeof e.dynLiveRcmd!="object")throw TypeError(".gateway.MdlDynSubscriptionNew.dynLiveRcmd: object expected");l.dynLiveRcmd=u.gateway.MdlDynLiveRcmd.fromObject(e.dynLiveRcmd)}return l},d.toObject=function(e,l){l||(l={});let t={};return l.defaults&&(t.style=l.enums===String?"mdl_dyn_subscription_new_style_nont":0),e.style!=null&&e.hasOwnProperty("style")&&(t.style=l.enums===String?u.gateway.MdlDynSubscriptionNewStyle[e.style]===void 0?e.style:u.gateway.MdlDynSubscriptionNewStyle[e.style]:e.style),e.dynSubscription!=null&&e.hasOwnProperty("dynSubscription")&&(t.dynSubscription=u.gateway.MdlDynSubscription.toObject(e.dynSubscription,l),l.oneofs&&(t.item="dynSubscription")),e.dynLiveRcmd!=null&&e.hasOwnProperty("dynLiveRcmd")&&(t.dynLiveRcmd=u.gateway.MdlDynLiveRcmd.toObject(e.dynLiveRcmd,l),l.oneofs&&(t.item="dynLiveRcmd")),t},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/gateway.MdlDynSubscriptionNew"},d}(),O.MdlDynSubscriptionNewStyle=function(){let d={},p=Object.create(d);return p[d[0]="mdl_dyn_subscription_new_style_nont"]=0,p[d[1]="mdl_dyn_subscription_new_style_live"]=1,p[d[2]="mdl_dyn_subscription_new_style_draw"]=2,p}(),O.ModuleAdditional=function(){function d(c){if(c)for(let e=Object.keys(c),l=0;l>>3){case 1:{i.type=e.int32();break}case 2:{i.pgc=u.gateway.AdditionalPGC.decode(e,e.uint32());break}case 3:{i.goods=u.gateway.AdditionGoods.decode(e,e.uint32());break}case 4:{i.vote=u.gateway.AdditionVote.decode(e,e.uint32());break}case 5:{i.common=u.gateway.AdditionCommon.decode(e,e.uint32());break}case 6:{i.esport=u.gateway.AdditionEsport.decode(e,e.uint32());break}case 8:{i.vote2=u.gateway.AdditionVote2.decode(e,e.uint32());break}case 9:{i.ugc=u.gateway.AdditionUgc.decode(e,e.uint32());break}case 10:{i.up=u.gateway.AdditionUP.decode(e,e.uint32());break}case 7:{i.rid=e.int64();break}default:e.skipType(n&7);break}}return i},d.fromObject=function(e){if(e instanceof u.gateway.ModuleAdditional)return e;let l=new u.gateway.ModuleAdditional;switch(e.type){default:if(typeof e.type=="number"){l.type=e.type;break}break;case"additional_none":case 0:l.type=0;break;case"additional_type_pgc":case 1:l.type=1;break;case"additional_type_goods":case 2:l.type=2;break;case"additional_type_vote":case 3:l.type=3;break;case"additional_type_common":case 4:l.type=4;break;case"additional_type_esport":case 5:l.type=5;break;case"additional_type_up_rcmd":case 6:l.type=6;break;case"additional_type_ugc":case 7:l.type=7;break;case"additional_type_up_reservation":case 8:l.type=8;break}if(e.pgc!=null){if(typeof e.pgc!="object")throw TypeError(".gateway.ModuleAdditional.pgc: object expected");l.pgc=u.gateway.AdditionalPGC.fromObject(e.pgc)}if(e.goods!=null){if(typeof e.goods!="object")throw TypeError(".gateway.ModuleAdditional.goods: object expected");l.goods=u.gateway.AdditionGoods.fromObject(e.goods)}if(e.vote!=null){if(typeof e.vote!="object")throw TypeError(".gateway.ModuleAdditional.vote: object expected");l.vote=u.gateway.AdditionVote.fromObject(e.vote)}if(e.common!=null){if(typeof e.common!="object")throw TypeError(".gateway.ModuleAdditional.common: object expected");l.common=u.gateway.AdditionCommon.fromObject(e.common)}if(e.esport!=null){if(typeof e.esport!="object")throw TypeError(".gateway.ModuleAdditional.esport: object expected");l.esport=u.gateway.AdditionEsport.fromObject(e.esport)}if(e.vote2!=null){if(typeof e.vote2!="object")throw TypeError(".gateway.ModuleAdditional.vote2: object expected");l.vote2=u.gateway.AdditionVote2.fromObject(e.vote2)}if(e.ugc!=null){if(typeof e.ugc!="object")throw TypeError(".gateway.ModuleAdditional.ugc: object expected");l.ugc=u.gateway.AdditionUgc.fromObject(e.ugc)}if(e.up!=null){if(typeof e.up!="object")throw TypeError(".gateway.ModuleAdditional.up: object expected");l.up=u.gateway.AdditionUP.fromObject(e.up)}return e.rid!=null&&(r.Long?(l.rid=r.Long.fromValue(e.rid)).unsigned=!1:typeof e.rid=="string"?l.rid=parseInt(e.rid,10):typeof e.rid=="number"?l.rid=e.rid:typeof e.rid=="object"&&(l.rid=new r.LongBits(e.rid.low>>>0,e.rid.high>>>0).toNumber())),l},d.toObject=function(e,l){l||(l={});let t={};if(l.defaults)if(t.type=l.enums===String?"additional_none":0,r.Long){let i=new r.Long(0,0,!1);t.rid=l.longs===String?i.toString():l.longs===Number?i.toNumber():i}else t.rid=l.longs===String?"0":0;return e.type!=null&&e.hasOwnProperty("type")&&(t.type=l.enums===String?u.gateway.AdditionalType[e.type]===void 0?e.type:u.gateway.AdditionalType[e.type]:e.type),e.pgc!=null&&e.hasOwnProperty("pgc")&&(t.pgc=u.gateway.AdditionalPGC.toObject(e.pgc,l),l.oneofs&&(t.item="pgc")),e.goods!=null&&e.hasOwnProperty("goods")&&(t.goods=u.gateway.AdditionGoods.toObject(e.goods,l),l.oneofs&&(t.item="goods")),e.vote!=null&&e.hasOwnProperty("vote")&&(t.vote=u.gateway.AdditionVote.toObject(e.vote,l),l.oneofs&&(t.item="vote")),e.common!=null&&e.hasOwnProperty("common")&&(t.common=u.gateway.AdditionCommon.toObject(e.common,l),l.oneofs&&(t.item="common")),e.esport!=null&&e.hasOwnProperty("esport")&&(t.esport=u.gateway.AdditionEsport.toObject(e.esport,l),l.oneofs&&(t.item="esport")),e.rid!=null&&e.hasOwnProperty("rid")&&(typeof e.rid=="number"?t.rid=l.longs===String?String(e.rid):e.rid:t.rid=l.longs===String?r.Long.prototype.toString.call(e.rid):l.longs===Number?new r.LongBits(e.rid.low>>>0,e.rid.high>>>0).toNumber():e.rid),e.vote2!=null&&e.hasOwnProperty("vote2")&&(t.vote2=u.gateway.AdditionVote2.toObject(e.vote2,l),l.oneofs&&(t.item="vote2")),e.ugc!=null&&e.hasOwnProperty("ugc")&&(t.ugc=u.gateway.AdditionUgc.toObject(e.ugc,l),l.oneofs&&(t.item="ugc")),e.up!=null&&e.hasOwnProperty("up")&&(t.up=u.gateway.AdditionUP.toObject(e.up,l),l.oneofs&&(t.item="up")),t},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/gateway.ModuleAdditional"},d}(),O.AdditionalType=function(){let d={},p=Object.create(d);return p[d[0]="additional_none"]=0,p[d[1]="additional_type_pgc"]=1,p[d[2]="additional_type_goods"]=2,p[d[3]="additional_type_vote"]=3,p[d[4]="additional_type_common"]=4,p[d[5]="additional_type_esport"]=5,p[d[6]="additional_type_up_rcmd"]=6,p[d[7]="additional_type_ugc"]=7,p[d[8]="additional_type_up_reservation"]=8,p}(),O.AdditionalPGC=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.headText=c.string();break}case 2:{t.title=c.string();break}case 3:{t.imageUrl=c.string();break}case 4:{t.descText_1=c.string();break}case 5:{t.descText_2=c.string();break}case 6:{t.url=c.string();break}case 7:{t.button=u.gateway.AdditionalButton.decode(c,c.uint32());break}case 8:{t.headIcon=c.string();break}case 9:{t.style=c.int32();break}case 10:{t.type=c.string();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.AdditionalPGC)return c;let e=new u.gateway.AdditionalPGC;if(c.headText!=null&&(e.headText=String(c.headText)),c.title!=null&&(e.title=String(c.title)),c.imageUrl!=null&&(e.imageUrl=String(c.imageUrl)),c.descText_1!=null&&(e.descText_1=String(c.descText_1)),c.descText_2!=null&&(e.descText_2=String(c.descText_2)),c.url!=null&&(e.url=String(c.url)),c.button!=null){if(typeof c.button!="object")throw TypeError(".gateway.AdditionalPGC.button: object expected");e.button=u.gateway.AdditionalButton.fromObject(c.button)}switch(c.headIcon!=null&&(e.headIcon=String(c.headIcon)),c.style){default:if(typeof c.style=="number"){e.style=c.style;break}break;case"add_style_vertical":case 0:e.style=0;break;case"add_style_square":case 1:e.style=1;break}return c.type!=null&&(e.type=String(c.type)),e},d.toObject=function(c,e){e||(e={});let l={};return e.defaults&&(l.headText="",l.title="",l.imageUrl="",l.descText_1="",l.descText_2="",l.url="",l.button=null,l.headIcon="",l.style=e.enums===String?"add_style_vertical":0,l.type=""),c.headText!=null&&c.hasOwnProperty("headText")&&(l.headText=c.headText),c.title!=null&&c.hasOwnProperty("title")&&(l.title=c.title),c.imageUrl!=null&&c.hasOwnProperty("imageUrl")&&(l.imageUrl=c.imageUrl),c.descText_1!=null&&c.hasOwnProperty("descText_1")&&(l.descText_1=c.descText_1),c.descText_2!=null&&c.hasOwnProperty("descText_2")&&(l.descText_2=c.descText_2),c.url!=null&&c.hasOwnProperty("url")&&(l.url=c.url),c.button!=null&&c.hasOwnProperty("button")&&(l.button=u.gateway.AdditionalButton.toObject(c.button,e)),c.headIcon!=null&&c.hasOwnProperty("headIcon")&&(l.headIcon=c.headIcon),c.style!=null&&c.hasOwnProperty("style")&&(l.style=e.enums===String?u.gateway.ImageStyle[c.style]===void 0?c.style:u.gateway.ImageStyle[c.style]:c.style),c.type!=null&&c.hasOwnProperty("type")&&(l.type=c.type),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.AdditionalPGC"},d}(),O.ImageStyle=function(){let d={},p=Object.create(d);return p[d[0]="add_style_vertical"]=0,p[d[1]="add_style_square"]=1,p}(),O.AdditionalButton=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.type=c.int32();break}case 2:{t.jumpStyle=u.gateway.AdditionalButtonStyle.decode(c,c.uint32());break}case 3:{t.jumpUrl=c.string();break}case 4:{t.uncheck=u.gateway.AdditionalButtonStyle.decode(c,c.uint32());break}case 5:{t.check=u.gateway.AdditionalButtonStyle.decode(c,c.uint32());break}case 6:{t.status=c.int32();break}case 7:{t.clickType=c.int32();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.AdditionalButton)return c;let e=new u.gateway.AdditionalButton;switch(c.type){default:if(typeof c.type=="number"){e.type=c.type;break}break;case"bt_none":case 0:e.type=0;break;case"bt_jump":case 1:e.type=1;break;case"bt_button":case 2:e.type=2;break}if(c.jumpStyle!=null){if(typeof c.jumpStyle!="object")throw TypeError(".gateway.AdditionalButton.jumpStyle: object expected");e.jumpStyle=u.gateway.AdditionalButtonStyle.fromObject(c.jumpStyle)}if(c.jumpUrl!=null&&(e.jumpUrl=String(c.jumpUrl)),c.uncheck!=null){if(typeof c.uncheck!="object")throw TypeError(".gateway.AdditionalButton.uncheck: object expected");e.uncheck=u.gateway.AdditionalButtonStyle.fromObject(c.uncheck)}if(c.check!=null){if(typeof c.check!="object")throw TypeError(".gateway.AdditionalButton.check: object expected");e.check=u.gateway.AdditionalButtonStyle.fromObject(c.check)}switch(c.status){default:if(typeof c.status=="number"){e.status=c.status;break}break;case"none":case 0:e.status=0;break;case"uncheck":case 1:e.status=1;break;case"check":case 2:e.status=2;break}switch(c.clickType){default:if(typeof c.clickType=="number"){e.clickType=c.clickType;break}break;case"click_none":case 0:e.clickType=0;break;case"click_up":case 1:e.clickType=1;break}return e},d.toObject=function(c,e){e||(e={});let l={};return e.defaults&&(l.type=e.enums===String?"bt_none":0,l.jumpStyle=null,l.jumpUrl="",l.uncheck=null,l.check=null,l.status=e.enums===String?"none":0,l.clickType=e.enums===String?"click_none":0),c.type!=null&&c.hasOwnProperty("type")&&(l.type=e.enums===String?u.gateway.AddButtonType[c.type]===void 0?c.type:u.gateway.AddButtonType[c.type]:c.type),c.jumpStyle!=null&&c.hasOwnProperty("jumpStyle")&&(l.jumpStyle=u.gateway.AdditionalButtonStyle.toObject(c.jumpStyle,e)),c.jumpUrl!=null&&c.hasOwnProperty("jumpUrl")&&(l.jumpUrl=c.jumpUrl),c.uncheck!=null&&c.hasOwnProperty("uncheck")&&(l.uncheck=u.gateway.AdditionalButtonStyle.toObject(c.uncheck,e)),c.check!=null&&c.hasOwnProperty("check")&&(l.check=u.gateway.AdditionalButtonStyle.toObject(c.check,e)),c.status!=null&&c.hasOwnProperty("status")&&(l.status=e.enums===String?u.gateway.AdditionalButtonStatus[c.status]===void 0?c.status:u.gateway.AdditionalButtonStatus[c.status]:c.status),c.clickType!=null&&c.hasOwnProperty("clickType")&&(l.clickType=e.enums===String?u.gateway.AdditionalButtonClickType[c.clickType]===void 0?c.clickType:u.gateway.AdditionalButtonClickType[c.clickType]:c.clickType),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.AdditionalButton"},d}(),O.AddButtonType=function(){let d={},p=Object.create(d);return p[d[0]="bt_none"]=0,p[d[1]="bt_jump"]=1,p[d[2]="bt_button"]=2,p}(),O.AdditionalButtonStatus=function(){let d={},p=Object.create(d);return p[d[0]="none"]=0,p[d[1]="uncheck"]=1,p[d[2]="check"]=2,p}(),O.AdditionalButtonClickType=function(){let d={},p=Object.create(d);return p[d[0]="click_none"]=0,p[d[1]="click_up"]=1,p}(),O.AdditionalButtonStyle=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.icon=c.string();break}case 2:{t.text=c.string();break}case 3:{t.interactive=u.gateway.AdditionalButtonInteractive.decode(c,c.uint32());break}case 4:{t.bgStyle=c.int32();break}case 5:{t.toast=c.string();break}case 6:{t.disable=c.int32();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.AdditionalButtonStyle)return c;let e=new u.gateway.AdditionalButtonStyle;if(c.icon!=null&&(e.icon=String(c.icon)),c.text!=null&&(e.text=String(c.text)),c.interactive!=null){if(typeof c.interactive!="object")throw TypeError(".gateway.AdditionalButtonStyle.interactive: object expected");e.interactive=u.gateway.AdditionalButtonInteractive.fromObject(c.interactive)}switch(c.bgStyle){default:if(typeof c.bgStyle=="number"){e.bgStyle=c.bgStyle;break}break;case"fill":case 0:e.bgStyle=0;break;case"stroke":case 1:e.bgStyle=1;break;case"gray":case 2:e.bgStyle=2;break}switch(c.toast!=null&&(e.toast=String(c.toast)),c.disable){default:if(typeof c.disable=="number"){e.disable=c.disable;break}break;case"highlight":case 0:e.disable=0;break;case"gary":case 1:e.disable=1;break}return e},d.toObject=function(c,e){e||(e={});let l={};return e.defaults&&(l.icon="",l.text="",l.interactive=null,l.bgStyle=e.enums===String?"fill":0,l.toast="",l.disable=e.enums===String?"highlight":0),c.icon!=null&&c.hasOwnProperty("icon")&&(l.icon=c.icon),c.text!=null&&c.hasOwnProperty("text")&&(l.text=c.text),c.interactive!=null&&c.hasOwnProperty("interactive")&&(l.interactive=u.gateway.AdditionalButtonInteractive.toObject(c.interactive,e)),c.bgStyle!=null&&c.hasOwnProperty("bgStyle")&&(l.bgStyle=e.enums===String?u.gateway.AddButtonBgStyle[c.bgStyle]===void 0?c.bgStyle:u.gateway.AddButtonBgStyle[c.bgStyle]:c.bgStyle),c.toast!=null&&c.hasOwnProperty("toast")&&(l.toast=c.toast),c.disable!=null&&c.hasOwnProperty("disable")&&(l.disable=e.enums===String?u.gateway.DisableState[c.disable]===void 0?c.disable:u.gateway.DisableState[c.disable]:c.disable),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.AdditionalButtonStyle"},d}(),O.DisableState=function(){let d={},p=Object.create(d);return p[d[0]="highlight"]=0,p[d[1]="gary"]=1,p}(),O.AddButtonBgStyle=function(){let d={},p=Object.create(d);return p[d[0]="fill"]=0,p[d[1]="stroke"]=1,p[d[2]="gray"]=2,p}(),O.AdditionalButtonInteractive=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.popups=c.string();break}case 2:{t.confirm=c.string();break}case 3:{t.cancel=c.string();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.AdditionalButtonInteractive)return c;let e=new u.gateway.AdditionalButtonInteractive;return c.popups!=null&&(e.popups=String(c.popups)),c.confirm!=null&&(e.confirm=String(c.confirm)),c.cancel!=null&&(e.cancel=String(c.cancel)),e},d.toObject=function(c,e){e||(e={});let l={};return e.defaults&&(l.popups="",l.confirm="",l.cancel=""),c.popups!=null&&c.hasOwnProperty("popups")&&(l.popups=c.popups),c.confirm!=null&&c.hasOwnProperty("confirm")&&(l.confirm=c.confirm),c.cancel!=null&&c.hasOwnProperty("cancel")&&(l.cancel=c.cancel),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.AdditionalButtonInteractive"},d}(),O.AdditionGoods=function(){function d(p){if(this.goodsItems=[],p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.rcmdDesc=c.string();break}case 2:{t.goodsItems&&t.goodsItems.length||(t.goodsItems=[]),t.goodsItems.push(u.gateway.GoodsItem.decode(c,c.uint32()));break}case 3:{t.cardType=c.string();break}case 4:{t.icon=c.string();break}case 5:{t.uri=c.string();break}case 6:{t.sourceType=c.int32();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.AdditionGoods)return c;let e=new u.gateway.AdditionGoods;if(c.rcmdDesc!=null&&(e.rcmdDesc=String(c.rcmdDesc)),c.goodsItems){if(!Array.isArray(c.goodsItems))throw TypeError(".gateway.AdditionGoods.goodsItems: array expected");e.goodsItems=[];for(let l=0;l>>3){case 1:{t.cover=c.string();break}case 2:{t.schemaPackageName=c.string();break}case 3:{t.sourceType=c.int32();break}case 4:{t.jumpUrl=c.string();break}case 5:{t.jumpDesc=c.string();break}case 6:{t.title=c.string();break}case 7:{t.brief=c.string();break}case 8:{t.price=c.string();break}case 9:{t.itemId=c.int64();break}case 10:{t.schemaUrl=c.string();break}case 11:{t.openWhiteList&&t.openWhiteList.length||(t.openWhiteList=[]),t.openWhiteList.push(c.string());break}case 12:{t.userWebV2=c.bool();break}case 13:{t.adMark=c.string();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.GoodsItem)return c;let e=new u.gateway.GoodsItem;if(c.cover!=null&&(e.cover=String(c.cover)),c.schemaPackageName!=null&&(e.schemaPackageName=String(c.schemaPackageName)),c.sourceType!=null&&(e.sourceType=c.sourceType|0),c.jumpUrl!=null&&(e.jumpUrl=String(c.jumpUrl)),c.jumpDesc!=null&&(e.jumpDesc=String(c.jumpDesc)),c.title!=null&&(e.title=String(c.title)),c.brief!=null&&(e.brief=String(c.brief)),c.price!=null&&(e.price=String(c.price)),c.itemId!=null&&(r.Long?(e.itemId=r.Long.fromValue(c.itemId)).unsigned=!1:typeof c.itemId=="string"?e.itemId=parseInt(c.itemId,10):typeof c.itemId=="number"?e.itemId=c.itemId:typeof c.itemId=="object"&&(e.itemId=new r.LongBits(c.itemId.low>>>0,c.itemId.high>>>0).toNumber())),c.schemaUrl!=null&&(e.schemaUrl=String(c.schemaUrl)),c.openWhiteList){if(!Array.isArray(c.openWhiteList))throw TypeError(".gateway.GoodsItem.openWhiteList: array expected");e.openWhiteList=[];for(let l=0;l>>0,c.itemId.high>>>0).toNumber():c.itemId),c.schemaUrl!=null&&c.hasOwnProperty("schemaUrl")&&(l.schemaUrl=c.schemaUrl),c.openWhiteList&&c.openWhiteList.length){l.openWhiteList=[];for(let t=0;t>>3){case 1:{t.imageUrl=c.string();break}case 2:{t.title=c.string();break}case 3:{t.text_1=c.string();break}case 4:{t.buttonText=c.string();break}case 5:{t.url=c.string();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.AdditionVote)return c;let e=new u.gateway.AdditionVote;return c.imageUrl!=null&&(e.imageUrl=String(c.imageUrl)),c.title!=null&&(e.title=String(c.title)),c.text_1!=null&&(e.text_1=String(c.text_1)),c.buttonText!=null&&(e.buttonText=String(c.buttonText)),c.url!=null&&(e.url=String(c.url)),e},d.toObject=function(c,e){e||(e={});let l={};return e.defaults&&(l.imageUrl="",l.title="",l.text_1="",l.buttonText="",l.url=""),c.imageUrl!=null&&c.hasOwnProperty("imageUrl")&&(l.imageUrl=c.imageUrl),c.title!=null&&c.hasOwnProperty("title")&&(l.title=c.title),c.text_1!=null&&c.hasOwnProperty("text_1")&&(l.text_1=c.text_1),c.buttonText!=null&&c.hasOwnProperty("buttonText")&&(l.buttonText=c.buttonText),c.url!=null&&c.hasOwnProperty("url")&&(l.url=c.url),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.AdditionVote"},d}(),O.AdditionUgc=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.headText=c.string();break}case 2:{t.title=c.string();break}case 3:{t.cover=c.string();break}case 4:{t.descText_1=c.string();break}case 5:{t.descText_2=c.string();break}case 6:{t.uri=c.string();break}case 7:{t.duration=c.string();break}case 8:{t.lineFeed=c.bool();break}case 9:{t.cardType=c.string();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.AdditionUgc)return c;let e=new u.gateway.AdditionUgc;return c.headText!=null&&(e.headText=String(c.headText)),c.title!=null&&(e.title=String(c.title)),c.cover!=null&&(e.cover=String(c.cover)),c.descText_1!=null&&(e.descText_1=String(c.descText_1)),c.descText_2!=null&&(e.descText_2=String(c.descText_2)),c.uri!=null&&(e.uri=String(c.uri)),c.duration!=null&&(e.duration=String(c.duration)),c.lineFeed!=null&&(e.lineFeed=!!c.lineFeed),c.cardType!=null&&(e.cardType=String(c.cardType)),e},d.toObject=function(c,e){e||(e={});let l={};return e.defaults&&(l.headText="",l.title="",l.cover="",l.descText_1="",l.descText_2="",l.uri="",l.duration="",l.lineFeed=!1,l.cardType=""),c.headText!=null&&c.hasOwnProperty("headText")&&(l.headText=c.headText),c.title!=null&&c.hasOwnProperty("title")&&(l.title=c.title),c.cover!=null&&c.hasOwnProperty("cover")&&(l.cover=c.cover),c.descText_1!=null&&c.hasOwnProperty("descText_1")&&(l.descText_1=c.descText_1),c.descText_2!=null&&c.hasOwnProperty("descText_2")&&(l.descText_2=c.descText_2),c.uri!=null&&c.hasOwnProperty("uri")&&(l.uri=c.uri),c.duration!=null&&c.hasOwnProperty("duration")&&(l.duration=c.duration),c.lineFeed!=null&&c.hasOwnProperty("lineFeed")&&(l.lineFeed=c.lineFeed),c.cardType!=null&&c.hasOwnProperty("cardType")&&(l.cardType=c.cardType),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.AdditionUgc"},d}(),O.AdditionCommon=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.headText=c.string();break}case 2:{t.title=c.string();break}case 3:{t.imageUrl=c.string();break}case 4:{t.descText_1=c.string();break}case 5:{t.descText_2=c.string();break}case 6:{t.url=c.string();break}case 7:{t.button=u.gateway.AdditionalButton.decode(c,c.uint32());break}case 8:{t.headIcon=c.string();break}case 9:{t.style=c.int32();break}case 10:{t.type=c.string();break}case 11:{t.cardType=c.string();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.AdditionCommon)return c;let e=new u.gateway.AdditionCommon;if(c.headText!=null&&(e.headText=String(c.headText)),c.title!=null&&(e.title=String(c.title)),c.imageUrl!=null&&(e.imageUrl=String(c.imageUrl)),c.descText_1!=null&&(e.descText_1=String(c.descText_1)),c.descText_2!=null&&(e.descText_2=String(c.descText_2)),c.url!=null&&(e.url=String(c.url)),c.button!=null){if(typeof c.button!="object")throw TypeError(".gateway.AdditionCommon.button: object expected");e.button=u.gateway.AdditionalButton.fromObject(c.button)}switch(c.headIcon!=null&&(e.headIcon=String(c.headIcon)),c.style){default:if(typeof c.style=="number"){e.style=c.style;break}break;case"add_style_vertical":case 0:e.style=0;break;case"add_style_square":case 1:e.style=1;break}return c.type!=null&&(e.type=String(c.type)),c.cardType!=null&&(e.cardType=String(c.cardType)),e},d.toObject=function(c,e){e||(e={});let l={};return e.defaults&&(l.headText="",l.title="",l.imageUrl="",l.descText_1="",l.descText_2="",l.url="",l.button=null,l.headIcon="",l.style=e.enums===String?"add_style_vertical":0,l.type="",l.cardType=""),c.headText!=null&&c.hasOwnProperty("headText")&&(l.headText=c.headText),c.title!=null&&c.hasOwnProperty("title")&&(l.title=c.title),c.imageUrl!=null&&c.hasOwnProperty("imageUrl")&&(l.imageUrl=c.imageUrl),c.descText_1!=null&&c.hasOwnProperty("descText_1")&&(l.descText_1=c.descText_1),c.descText_2!=null&&c.hasOwnProperty("descText_2")&&(l.descText_2=c.descText_2),c.url!=null&&c.hasOwnProperty("url")&&(l.url=c.url),c.button!=null&&c.hasOwnProperty("button")&&(l.button=u.gateway.AdditionalButton.toObject(c.button,e)),c.headIcon!=null&&c.hasOwnProperty("headIcon")&&(l.headIcon=c.headIcon),c.style!=null&&c.hasOwnProperty("style")&&(l.style=e.enums===String?u.gateway.ImageStyle[c.style]===void 0?c.style:u.gateway.ImageStyle[c.style]:c.style),c.type!=null&&c.hasOwnProperty("type")&&(l.type=c.type),c.cardType!=null&&c.hasOwnProperty("cardType")&&(l.cardType=c.cardType),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.AdditionCommon"},d}(),O.AdditionEsport=function(){function d(c){if(c)for(let e=Object.keys(c),l=0;l>>3){case 1:{i.style=e.int32();break}case 2:{i.additionEsportMoba=u.gateway.AdditionEsportMoba.decode(e,e.uint32());break}case 3:{i.type=e.string();break}case 4:{i.cardType=e.string();break}default:e.skipType(n&7);break}}return i},d.fromObject=function(e){if(e instanceof u.gateway.AdditionEsport)return e;let l=new u.gateway.AdditionEsport;switch(e.style){default:if(typeof e.style=="number"){l.style=e.style;break}break;case"moba":case 0:l.style=0;break}if(e.additionEsportMoba!=null){if(typeof e.additionEsportMoba!="object")throw TypeError(".gateway.AdditionEsport.additionEsportMoba: object expected");l.additionEsportMoba=u.gateway.AdditionEsportMoba.fromObject(e.additionEsportMoba)}return e.type!=null&&(l.type=String(e.type)),e.cardType!=null&&(l.cardType=String(e.cardType)),l},d.toObject=function(e,l){l||(l={});let t={};return l.defaults&&(t.style=l.enums===String?"moba":0,t.type="",t.cardType=""),e.style!=null&&e.hasOwnProperty("style")&&(t.style=l.enums===String?u.gateway.EspaceStyle[e.style]===void 0?e.style:u.gateway.EspaceStyle[e.style]:e.style),e.additionEsportMoba!=null&&e.hasOwnProperty("additionEsportMoba")&&(t.additionEsportMoba=u.gateway.AdditionEsportMoba.toObject(e.additionEsportMoba,l),l.oneofs&&(t.item="additionEsportMoba")),e.type!=null&&e.hasOwnProperty("type")&&(t.type=e.type),e.cardType!=null&&e.hasOwnProperty("cardType")&&(t.cardType=e.cardType),t},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/gateway.AdditionEsport"},d}(),O.EspaceStyle=function(){let d={},p=Object.create(d);return p[d[0]="moba"]=0,p}(),O.AdditionEsportMoba=function(){function d(p){if(this.matchTeam=[],p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.headText=c.string();break}case 2:{t.title=c.string();break}case 3:{t.matchTeam&&t.matchTeam.length||(t.matchTeam=[]),t.matchTeam.push(u.gateway.MatchTeam.decode(c,c.uint32()));break}case 4:{t.additionEsportMobaStatus=u.gateway.AdditionEsportMobaStatus.decode(c,c.uint32());break}case 5:{t.uri=c.string();break}case 6:{t.button=u.gateway.AdditionalButton.decode(c,c.uint32());break}case 7:{t.subTitle=c.string();break}case 10:{t.type=c.string();break}case 11:{t.cardType=c.string();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.AdditionEsportMoba)return c;let e=new u.gateway.AdditionEsportMoba;if(c.headText!=null&&(e.headText=String(c.headText)),c.title!=null&&(e.title=String(c.title)),c.matchTeam){if(!Array.isArray(c.matchTeam))throw TypeError(".gateway.AdditionEsportMoba.matchTeam: array expected");e.matchTeam=[];for(let l=0;l>>3){case 1:{t.additionEsportMobaStatusDesc&&t.additionEsportMobaStatusDesc.length||(t.additionEsportMobaStatusDesc=[]),t.additionEsportMobaStatusDesc.push(u.gateway.AdditionEsportMobaStatusDesc.decode(c,c.uint32()));break}case 2:{t.title=c.string();break}case 3:{t.status=c.int32();break}case 4:{t.color=c.string();break}case 5:{t.nightColor=c.string();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.AdditionEsportMobaStatus)return c;let e=new u.gateway.AdditionEsportMobaStatus;if(c.additionEsportMobaStatusDesc){if(!Array.isArray(c.additionEsportMobaStatusDesc))throw TypeError(".gateway.AdditionEsportMobaStatus.additionEsportMobaStatusDesc: array expected");e.additionEsportMobaStatusDesc=[];for(let l=0;l>>3){case 1:{t.title=c.string();break}case 2:{t.color=c.string();break}case 3:{t.nightColor=c.string();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.AdditionEsportMobaStatusDesc)return c;let e=new u.gateway.AdditionEsportMobaStatusDesc;return c.title!=null&&(e.title=String(c.title)),c.color!=null&&(e.color=String(c.color)),c.nightColor!=null&&(e.nightColor=String(c.nightColor)),e},d.toObject=function(c,e){e||(e={});let l={};return e.defaults&&(l.title="",l.color="",l.nightColor=""),c.title!=null&&c.hasOwnProperty("title")&&(l.title=c.title),c.color!=null&&c.hasOwnProperty("color")&&(l.color=c.color),c.nightColor!=null&&c.hasOwnProperty("nightColor")&&(l.nightColor=c.nightColor),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.AdditionEsportMobaStatusDesc"},d}(),O.MatchTeam=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.id=c.int64();break}case 2:{t.name=c.string();break}case 3:{t.cover=c.string();break}case 4:{t.color=c.string();break}case 5:{t.nightColor=c.string();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.MatchTeam)return c;let e=new u.gateway.MatchTeam;return c.id!=null&&(r.Long?(e.id=r.Long.fromValue(c.id)).unsigned=!1:typeof c.id=="string"?e.id=parseInt(c.id,10):typeof c.id=="number"?e.id=c.id:typeof c.id=="object"&&(e.id=new r.LongBits(c.id.low>>>0,c.id.high>>>0).toNumber())),c.name!=null&&(e.name=String(c.name)),c.cover!=null&&(e.cover=String(c.cover)),c.color!=null&&(e.color=String(c.color)),c.nightColor!=null&&(e.nightColor=String(c.nightColor)),e},d.toObject=function(c,e){e||(e={});let l={};if(e.defaults){if(r.Long){let t=new r.Long(0,0,!1);l.id=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.id=e.longs===String?"0":0;l.name="",l.cover="",l.color="",l.nightColor=""}return c.id!=null&&c.hasOwnProperty("id")&&(typeof c.id=="number"?l.id=e.longs===String?String(c.id):c.id:l.id=e.longs===String?r.Long.prototype.toString.call(c.id):e.longs===Number?new r.LongBits(c.id.low>>>0,c.id.high>>>0).toNumber():c.id),c.name!=null&&c.hasOwnProperty("name")&&(l.name=c.name),c.cover!=null&&c.hasOwnProperty("cover")&&(l.cover=c.cover),c.color!=null&&c.hasOwnProperty("color")&&(l.color=c.color),c.nightColor!=null&&c.hasOwnProperty("nightColor")&&(l.nightColor=c.nightColor),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.MatchTeam"},d}(),O.AdditionUP=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.title=c.string();break}case 2:{t.descText_1=u.gateway.HighlightText.decode(c,c.uint32());break}case 3:{t.descText_2=c.string();break}case 4:{t.url=c.string();break}case 5:{t.button=u.gateway.AdditionalButton.decode(c,c.uint32());break}case 6:{t.cardType=c.string();break}case 7:{t.reserveTotal=c.int64();break}case 8:{t.actSkin=u.gateway.AdditionalActSkin.decode(c,c.uint32());break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.AdditionUP)return c;let e=new u.gateway.AdditionUP;if(c.title!=null&&(e.title=String(c.title)),c.descText_1!=null){if(typeof c.descText_1!="object")throw TypeError(".gateway.AdditionUP.descText_1: object expected");e.descText_1=u.gateway.HighlightText.fromObject(c.descText_1)}if(c.descText_2!=null&&(e.descText_2=String(c.descText_2)),c.url!=null&&(e.url=String(c.url)),c.button!=null){if(typeof c.button!="object")throw TypeError(".gateway.AdditionUP.button: object expected");e.button=u.gateway.AdditionalButton.fromObject(c.button)}if(c.cardType!=null&&(e.cardType=String(c.cardType)),c.reserveTotal!=null&&(r.Long?(e.reserveTotal=r.Long.fromValue(c.reserveTotal)).unsigned=!1:typeof c.reserveTotal=="string"?e.reserveTotal=parseInt(c.reserveTotal,10):typeof c.reserveTotal=="number"?e.reserveTotal=c.reserveTotal:typeof c.reserveTotal=="object"&&(e.reserveTotal=new r.LongBits(c.reserveTotal.low>>>0,c.reserveTotal.high>>>0).toNumber())),c.actSkin!=null){if(typeof c.actSkin!="object")throw TypeError(".gateway.AdditionUP.actSkin: object expected");e.actSkin=u.gateway.AdditionalActSkin.fromObject(c.actSkin)}return e},d.toObject=function(c,e){e||(e={});let l={};if(e.defaults){if(l.title="",l.descText_1=null,l.descText_2="",l.url="",l.button=null,l.cardType="",r.Long){let t=new r.Long(0,0,!1);l.reserveTotal=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.reserveTotal=e.longs===String?"0":0;l.actSkin=null}return c.title!=null&&c.hasOwnProperty("title")&&(l.title=c.title),c.descText_1!=null&&c.hasOwnProperty("descText_1")&&(l.descText_1=u.gateway.HighlightText.toObject(c.descText_1,e)),c.descText_2!=null&&c.hasOwnProperty("descText_2")&&(l.descText_2=c.descText_2),c.url!=null&&c.hasOwnProperty("url")&&(l.url=c.url),c.button!=null&&c.hasOwnProperty("button")&&(l.button=u.gateway.AdditionalButton.toObject(c.button,e)),c.cardType!=null&&c.hasOwnProperty("cardType")&&(l.cardType=c.cardType),c.reserveTotal!=null&&c.hasOwnProperty("reserveTotal")&&(typeof c.reserveTotal=="number"?l.reserveTotal=e.longs===String?String(c.reserveTotal):c.reserveTotal:l.reserveTotal=e.longs===String?r.Long.prototype.toString.call(c.reserveTotal):e.longs===Number?new r.LongBits(c.reserveTotal.low>>>0,c.reserveTotal.high>>>0).toNumber():c.reserveTotal),c.actSkin!=null&&c.hasOwnProperty("actSkin")&&(l.actSkin=u.gateway.AdditionalActSkin.toObject(c.actSkin,e)),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.AdditionUP"},d}(),O.AdditionalActSkin=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.svga=c.string();break}case 2:{t.lastImage=c.string();break}case 3:{t.playTimes=c.int64();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.AdditionalActSkin)return c;let e=new u.gateway.AdditionalActSkin;return c.svga!=null&&(e.svga=String(c.svga)),c.lastImage!=null&&(e.lastImage=String(c.lastImage)),c.playTimes!=null&&(r.Long?(e.playTimes=r.Long.fromValue(c.playTimes)).unsigned=!1:typeof c.playTimes=="string"?e.playTimes=parseInt(c.playTimes,10):typeof c.playTimes=="number"?e.playTimes=c.playTimes:typeof c.playTimes=="object"&&(e.playTimes=new r.LongBits(c.playTimes.low>>>0,c.playTimes.high>>>0).toNumber())),e},d.toObject=function(c,e){e||(e={});let l={};if(e.defaults)if(l.svga="",l.lastImage="",r.Long){let t=new r.Long(0,0,!1);l.playTimes=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.playTimes=e.longs===String?"0":0;return c.svga!=null&&c.hasOwnProperty("svga")&&(l.svga=c.svga),c.lastImage!=null&&c.hasOwnProperty("lastImage")&&(l.lastImage=c.lastImage),c.playTimes!=null&&c.hasOwnProperty("playTimes")&&(typeof c.playTimes=="number"?l.playTimes=e.longs===String?String(c.playTimes):c.playTimes:l.playTimes=e.longs===String?r.Long.prototype.toString.call(c.playTimes):e.longs===Number?new r.LongBits(c.playTimes.low>>>0,c.playTimes.high>>>0).toNumber():c.playTimes),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.AdditionalActSkin"},d}(),O.HighlightText=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.text=c.string();break}case 2:{t.textStyle=c.int32();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.HighlightText)return c;let e=new u.gateway.HighlightText;switch(c.text!=null&&(e.text=String(c.text)),c.textStyle){default:if(typeof c.textStyle=="number"){e.textStyle=c.textStyle;break}break;case"style_none":case 0:e.textStyle=0;break;case"style_highlight":case 1:e.textStyle=1;break}return e},d.toObject=function(c,e){e||(e={});let l={};return e.defaults&&(l.text="",l.textStyle=e.enums===String?"style_none":0),c.text!=null&&c.hasOwnProperty("text")&&(l.text=c.text),c.textStyle!=null&&c.hasOwnProperty("textStyle")&&(l.textStyle=e.enums===String?u.gateway.HighlightTextStyle[c.textStyle]===void 0?c.textStyle:u.gateway.HighlightTextStyle[c.textStyle]:c.textStyle),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.HighlightText"},d}(),O.HighlightTextStyle=function(){let d={},p=Object.create(d);return p[d[0]="style_none"]=0,p[d[1]="style_highlight"]=1,p}(),O.ModuleExtend=function(){function d(p){if(this.extend=[],p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.extend&&t.extend.length||(t.extend=[]),t.extend.push(u.gateway.ModuleExtendItem.decode(c,c.uint32()));break}case 2:{t.uri=c.string();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.ModuleExtend)return c;let e=new u.gateway.ModuleExtend;if(c.extend){if(!Array.isArray(c.extend))throw TypeError(".gateway.ModuleExtend.extend: array expected");e.extend=[];for(let l=0;l>>3){case 1:{i.type=e.int32();break}case 2:{i.extInfoTopic=u.gateway.ExtInfoTopic.decode(e,e.uint32());break}case 3:{i.extInfoLbs=u.gateway.ExtInfoLBS.decode(e,e.uint32());break}case 4:{i.extInfoHot=u.gateway.ExtInfoHot.decode(e,e.uint32());break}case 5:{i.extInfoGame=u.gateway.ExtInfoGame.decode(e,e.uint32());break}case 6:{i.extInfoCommon=u.gateway.ExtInfoCommon.decode(e,e.uint32());break}case 7:{i.extInfoOgv=u.gateway.ExtInfoOGV.decode(e,e.uint32());break}default:e.skipType(n&7);break}}return i},d.fromObject=function(e){if(e instanceof u.gateway.ModuleExtendItem)return e;let l=new u.gateway.ModuleExtendItem;switch(e.type){default:if(typeof e.type=="number"){l.type=e.type;break}break;case"dyn_ext_type_none":case 0:l.type=0;break;case"dyn_ext_type_topic":case 1:l.type=1;break;case"dyn_ext_type_lbs":case 2:l.type=2;break;case"dyn_ext_type_hot":case 3:l.type=3;break;case"dyn_ext_type_game":case 4:l.type=4;break;case"dyn_ext_type_common":case 5:l.type=5;break;case"dyn_ext_type_biliCut":case 6:l.type=6;break;case"dyn_ext_type_ogv":case 7:l.type=7;break;case"dyn_ext_type_auto_ogv":case 8:l.type=8;break}if(e.extInfoTopic!=null){if(typeof e.extInfoTopic!="object")throw TypeError(".gateway.ModuleExtendItem.extInfoTopic: object expected");l.extInfoTopic=u.gateway.ExtInfoTopic.fromObject(e.extInfoTopic)}if(e.extInfoLbs!=null){if(typeof e.extInfoLbs!="object")throw TypeError(".gateway.ModuleExtendItem.extInfoLbs: object expected");l.extInfoLbs=u.gateway.ExtInfoLBS.fromObject(e.extInfoLbs)}if(e.extInfoHot!=null){if(typeof e.extInfoHot!="object")throw TypeError(".gateway.ModuleExtendItem.extInfoHot: object expected");l.extInfoHot=u.gateway.ExtInfoHot.fromObject(e.extInfoHot)}if(e.extInfoGame!=null){if(typeof e.extInfoGame!="object")throw TypeError(".gateway.ModuleExtendItem.extInfoGame: object expected");l.extInfoGame=u.gateway.ExtInfoGame.fromObject(e.extInfoGame)}if(e.extInfoCommon!=null){if(typeof e.extInfoCommon!="object")throw TypeError(".gateway.ModuleExtendItem.extInfoCommon: object expected");l.extInfoCommon=u.gateway.ExtInfoCommon.fromObject(e.extInfoCommon)}if(e.extInfoOgv!=null){if(typeof e.extInfoOgv!="object")throw TypeError(".gateway.ModuleExtendItem.extInfoOgv: object expected");l.extInfoOgv=u.gateway.ExtInfoOGV.fromObject(e.extInfoOgv)}return l},d.toObject=function(e,l){l||(l={});let t={};return l.defaults&&(t.type=l.enums===String?"dyn_ext_type_none":0),e.type!=null&&e.hasOwnProperty("type")&&(t.type=l.enums===String?u.gateway.DynExtendType[e.type]===void 0?e.type:u.gateway.DynExtendType[e.type]:e.type),e.extInfoTopic!=null&&e.hasOwnProperty("extInfoTopic")&&(t.extInfoTopic=u.gateway.ExtInfoTopic.toObject(e.extInfoTopic,l),l.oneofs&&(t.extend="extInfoTopic")),e.extInfoLbs!=null&&e.hasOwnProperty("extInfoLbs")&&(t.extInfoLbs=u.gateway.ExtInfoLBS.toObject(e.extInfoLbs,l),l.oneofs&&(t.extend="extInfoLbs")),e.extInfoHot!=null&&e.hasOwnProperty("extInfoHot")&&(t.extInfoHot=u.gateway.ExtInfoHot.toObject(e.extInfoHot,l),l.oneofs&&(t.extend="extInfoHot")),e.extInfoGame!=null&&e.hasOwnProperty("extInfoGame")&&(t.extInfoGame=u.gateway.ExtInfoGame.toObject(e.extInfoGame,l),l.oneofs&&(t.extend="extInfoGame")),e.extInfoCommon!=null&&e.hasOwnProperty("extInfoCommon")&&(t.extInfoCommon=u.gateway.ExtInfoCommon.toObject(e.extInfoCommon,l),l.oneofs&&(t.extend="extInfoCommon")),e.extInfoOgv!=null&&e.hasOwnProperty("extInfoOgv")&&(t.extInfoOgv=u.gateway.ExtInfoOGV.toObject(e.extInfoOgv,l),l.oneofs&&(t.extend="extInfoOgv")),t},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/gateway.ModuleExtendItem"},d}(),O.DynExtendType=function(){let d={},p=Object.create(d);return p[d[0]="dyn_ext_type_none"]=0,p[d[1]="dyn_ext_type_topic"]=1,p[d[2]="dyn_ext_type_lbs"]=2,p[d[3]="dyn_ext_type_hot"]=3,p[d[4]="dyn_ext_type_game"]=4,p[d[5]="dyn_ext_type_common"]=5,p[d[6]="dyn_ext_type_biliCut"]=6,p[d[7]="dyn_ext_type_ogv"]=7,p[d[8]="dyn_ext_type_auto_ogv"]=8,p}(),O.ExtInfoTopic=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.title=c.string();break}case 2:{t.uri=c.string();break}case 3:{t.icon=c.string();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.ExtInfoTopic)return c;let e=new u.gateway.ExtInfoTopic;return c.title!=null&&(e.title=String(c.title)),c.uri!=null&&(e.uri=String(c.uri)),c.icon!=null&&(e.icon=String(c.icon)),e},d.toObject=function(c,e){e||(e={});let l={};return e.defaults&&(l.title="",l.uri="",l.icon=""),c.title!=null&&c.hasOwnProperty("title")&&(l.title=c.title),c.uri!=null&&c.hasOwnProperty("uri")&&(l.uri=c.uri),c.icon!=null&&c.hasOwnProperty("icon")&&(l.icon=c.icon),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.ExtInfoTopic"},d}(),O.ExtInfoLBS=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.title=c.string();break}case 2:{t.uri=c.string();break}case 3:{t.icon=c.string();break}case 4:{t.poiType=c.int32();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.ExtInfoLBS)return c;let e=new u.gateway.ExtInfoLBS;return c.title!=null&&(e.title=String(c.title)),c.uri!=null&&(e.uri=String(c.uri)),c.icon!=null&&(e.icon=String(c.icon)),c.poiType!=null&&(e.poiType=c.poiType|0),e},d.toObject=function(c,e){e||(e={});let l={};return e.defaults&&(l.title="",l.uri="",l.icon="",l.poiType=0),c.title!=null&&c.hasOwnProperty("title")&&(l.title=c.title),c.uri!=null&&c.hasOwnProperty("uri")&&(l.uri=c.uri),c.icon!=null&&c.hasOwnProperty("icon")&&(l.icon=c.icon),c.poiType!=null&&c.hasOwnProperty("poiType")&&(l.poiType=c.poiType),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.ExtInfoLBS"},d}(),O.ExtInfoHot=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.title=c.string();break}case 2:{t.uri=c.string();break}case 3:{t.icon=c.string();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.ExtInfoHot)return c;let e=new u.gateway.ExtInfoHot;return c.title!=null&&(e.title=String(c.title)),c.uri!=null&&(e.uri=String(c.uri)),c.icon!=null&&(e.icon=String(c.icon)),e},d.toObject=function(c,e){e||(e={});let l={};return e.defaults&&(l.title="",l.uri="",l.icon=""),c.title!=null&&c.hasOwnProperty("title")&&(l.title=c.title),c.uri!=null&&c.hasOwnProperty("uri")&&(l.uri=c.uri),c.icon!=null&&c.hasOwnProperty("icon")&&(l.icon=c.icon),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.ExtInfoHot"},d}(),O.ExtInfoGame=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.title=c.string();break}case 2:{t.uri=c.string();break}case 3:{t.icon=c.string();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.ExtInfoGame)return c;let e=new u.gateway.ExtInfoGame;return c.title!=null&&(e.title=String(c.title)),c.uri!=null&&(e.uri=String(c.uri)),c.icon!=null&&(e.icon=String(c.icon)),e},d.toObject=function(c,e){e||(e={});let l={};return e.defaults&&(l.title="",l.uri="",l.icon=""),c.title!=null&&c.hasOwnProperty("title")&&(l.title=c.title),c.uri!=null&&c.hasOwnProperty("uri")&&(l.uri=c.uri),c.icon!=null&&c.hasOwnProperty("icon")&&(l.icon=c.icon),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.ExtInfoGame"},d}(),O.ExtInfoCommon=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.title=c.string();break}case 2:{t.uri=c.string();break}case 3:{t.icon=c.string();break}case 4:{t.poiType=c.int32();break}case 5:{t.type=c.int32();break}case 6:{t.subModule=c.string();break}case 7:{t.actionText=c.string();break}case 8:{t.actionUrl=c.string();break}case 9:{t.rid=c.int64();break}case 10:{t.isShowLight=c.bool();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.ExtInfoCommon)return c;let e=new u.gateway.ExtInfoCommon;switch(c.title!=null&&(e.title=String(c.title)),c.uri!=null&&(e.uri=String(c.uri)),c.icon!=null&&(e.icon=String(c.icon)),c.poiType!=null&&(e.poiType=c.poiType|0),c.type){default:if(typeof c.type=="number"){e.type=c.type;break}break;case"dyn_ext_type_none":case 0:e.type=0;break;case"dyn_ext_type_topic":case 1:e.type=1;break;case"dyn_ext_type_lbs":case 2:e.type=2;break;case"dyn_ext_type_hot":case 3:e.type=3;break;case"dyn_ext_type_game":case 4:e.type=4;break;case"dyn_ext_type_common":case 5:e.type=5;break;case"dyn_ext_type_biliCut":case 6:e.type=6;break;case"dyn_ext_type_ogv":case 7:e.type=7;break;case"dyn_ext_type_auto_ogv":case 8:e.type=8;break}return c.subModule!=null&&(e.subModule=String(c.subModule)),c.actionText!=null&&(e.actionText=String(c.actionText)),c.actionUrl!=null&&(e.actionUrl=String(c.actionUrl)),c.rid!=null&&(r.Long?(e.rid=r.Long.fromValue(c.rid)).unsigned=!1:typeof c.rid=="string"?e.rid=parseInt(c.rid,10):typeof c.rid=="number"?e.rid=c.rid:typeof c.rid=="object"&&(e.rid=new r.LongBits(c.rid.low>>>0,c.rid.high>>>0).toNumber())),c.isShowLight!=null&&(e.isShowLight=!!c.isShowLight),e},d.toObject=function(c,e){e||(e={});let l={};if(e.defaults){if(l.title="",l.uri="",l.icon="",l.poiType=0,l.type=e.enums===String?"dyn_ext_type_none":0,l.subModule="",l.actionText="",l.actionUrl="",r.Long){let t=new r.Long(0,0,!1);l.rid=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.rid=e.longs===String?"0":0;l.isShowLight=!1}return c.title!=null&&c.hasOwnProperty("title")&&(l.title=c.title),c.uri!=null&&c.hasOwnProperty("uri")&&(l.uri=c.uri),c.icon!=null&&c.hasOwnProperty("icon")&&(l.icon=c.icon),c.poiType!=null&&c.hasOwnProperty("poiType")&&(l.poiType=c.poiType),c.type!=null&&c.hasOwnProperty("type")&&(l.type=e.enums===String?u.gateway.DynExtendType[c.type]===void 0?c.type:u.gateway.DynExtendType[c.type]:c.type),c.subModule!=null&&c.hasOwnProperty("subModule")&&(l.subModule=c.subModule),c.actionText!=null&&c.hasOwnProperty("actionText")&&(l.actionText=c.actionText),c.actionUrl!=null&&c.hasOwnProperty("actionUrl")&&(l.actionUrl=c.actionUrl),c.rid!=null&&c.hasOwnProperty("rid")&&(typeof c.rid=="number"?l.rid=e.longs===String?String(c.rid):c.rid:l.rid=e.longs===String?r.Long.prototype.toString.call(c.rid):e.longs===Number?new r.LongBits(c.rid.low>>>0,c.rid.high>>>0).toNumber():c.rid),c.isShowLight!=null&&c.hasOwnProperty("isShowLight")&&(l.isShowLight=c.isShowLight),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.ExtInfoCommon"},d}(),O.ExtInfoOGV=function(){function d(p){if(this.infoOgv=[],p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.infoOgv&&t.infoOgv.length||(t.infoOgv=[]),t.infoOgv.push(u.gateway.InfoOGV.decode(c,c.uint32()));break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.ExtInfoOGV)return c;let e=new u.gateway.ExtInfoOGV;if(c.infoOgv){if(!Array.isArray(c.infoOgv))throw TypeError(".gateway.ExtInfoOGV.infoOgv: array expected");e.infoOgv=[];for(let l=0;l>>3){case 1:{t.title=c.string();break}case 2:{t.uri=c.string();break}case 3:{t.icon=c.string();break}case 4:{t.subModule=c.string();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.InfoOGV)return c;let e=new u.gateway.InfoOGV;return c.title!=null&&(e.title=String(c.title)),c.uri!=null&&(e.uri=String(c.uri)),c.icon!=null&&(e.icon=String(c.icon)),c.subModule!=null&&(e.subModule=String(c.subModule)),e},d.toObject=function(c,e){e||(e={});let l={};return e.defaults&&(l.title="",l.uri="",l.icon="",l.subModule=""),c.title!=null&&c.hasOwnProperty("title")&&(l.title=c.title),c.uri!=null&&c.hasOwnProperty("uri")&&(l.uri=c.uri),c.icon!=null&&c.hasOwnProperty("icon")&&(l.icon=c.icon),c.subModule!=null&&c.hasOwnProperty("subModule")&&(l.subModule=c.subModule),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.InfoOGV"},d}(),O.ModuleInteraction=function(){function d(p){if(this.interactionItem=[],p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.interactionItem&&t.interactionItem.length||(t.interactionItem=[]),t.interactionItem.push(u.gateway.InteractionItem.decode(c,c.uint32()));break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.ModuleInteraction)return c;let e=new u.gateway.ModuleInteraction;if(c.interactionItem){if(!Array.isArray(c.interactionItem))throw TypeError(".gateway.ModuleInteraction.interactionItem: array expected");e.interactionItem=[];for(let l=0;l>>3){case 1:{t.iconType=c.int32();break}case 2:{t.desc&&t.desc.length||(t.desc=[]),t.desc.push(u.gateway.Description.decode(c,c.uint32()));break}case 3:{t.uri=c.string();break}case 4:{t.dynamicId=c.string();break}case 6:{t.commentMid=c.int64();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.InteractionItem)return c;let e=new u.gateway.InteractionItem;switch(c.iconType){default:if(typeof c.iconType=="number"){e.iconType=c.iconType;break}break;case"local_icon_comment":case 0:e.iconType=0;break;case"local_icon_like":case 1:e.iconType=1;break}if(c.desc){if(!Array.isArray(c.desc))throw TypeError(".gateway.InteractionItem.desc: array expected");e.desc=[];for(let l=0;l>>0,c.commentMid.high>>>0).toNumber())),e},d.toObject=function(c,e){e||(e={});let l={};if((e.arrays||e.defaults)&&(l.desc=[]),e.defaults)if(l.iconType=e.enums===String?"local_icon_comment":0,l.uri="",l.dynamicId="",r.Long){let t=new r.Long(0,0,!1);l.commentMid=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.commentMid=e.longs===String?"0":0;if(c.iconType!=null&&c.hasOwnProperty("iconType")&&(l.iconType=e.enums===String?u.gateway.LocalIconType[c.iconType]===void 0?c.iconType:u.gateway.LocalIconType[c.iconType]:c.iconType),c.desc&&c.desc.length){l.desc=[];for(let t=0;t>>0,c.commentMid.high>>>0).toNumber():c.commentMid),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.InteractionItem"},d}(),O.LocalIconType=function(){let d={},p=Object.create(d);return p[d[0]="local_icon_comment"]=0,p[d[1]="local_icon_like"]=1,p}(),O.DynUriType=function(){let d={},p=Object.create(d);return p[d[0]="dyn_uri_type_none"]=0,p[d[1]="dyn_uri_type_direct"]=1,p[d[2]="dyn_uri_type_suffix"]=2,p}(),O.ModuleStat=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.repost=c.int64();break}case 2:{t.like=c.int64();break}case 3:{t.reply=c.int64();break}case 4:{t.likeInfo=u.gateway.LikeInfo.decode(c,c.uint32());break}case 5:{t.noComment=c.bool();break}case 6:{t.noForward=c.bool();break}case 7:{t.replyUrl=c.string();break}case 8:{t.noCommentText=c.string();break}case 9:{t.noForwardText=c.string();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.ModuleStat)return c;let e=new u.gateway.ModuleStat;if(c.repost!=null&&(r.Long?(e.repost=r.Long.fromValue(c.repost)).unsigned=!1:typeof c.repost=="string"?e.repost=parseInt(c.repost,10):typeof c.repost=="number"?e.repost=c.repost:typeof c.repost=="object"&&(e.repost=new r.LongBits(c.repost.low>>>0,c.repost.high>>>0).toNumber())),c.like!=null&&(r.Long?(e.like=r.Long.fromValue(c.like)).unsigned=!1:typeof c.like=="string"?e.like=parseInt(c.like,10):typeof c.like=="number"?e.like=c.like:typeof c.like=="object"&&(e.like=new r.LongBits(c.like.low>>>0,c.like.high>>>0).toNumber())),c.reply!=null&&(r.Long?(e.reply=r.Long.fromValue(c.reply)).unsigned=!1:typeof c.reply=="string"?e.reply=parseInt(c.reply,10):typeof c.reply=="number"?e.reply=c.reply:typeof c.reply=="object"&&(e.reply=new r.LongBits(c.reply.low>>>0,c.reply.high>>>0).toNumber())),c.likeInfo!=null){if(typeof c.likeInfo!="object")throw TypeError(".gateway.ModuleStat.likeInfo: object expected");e.likeInfo=u.gateway.LikeInfo.fromObject(c.likeInfo)}return c.noComment!=null&&(e.noComment=!!c.noComment),c.noForward!=null&&(e.noForward=!!c.noForward),c.replyUrl!=null&&(e.replyUrl=String(c.replyUrl)),c.noCommentText!=null&&(e.noCommentText=String(c.noCommentText)),c.noForwardText!=null&&(e.noForwardText=String(c.noForwardText)),e},d.toObject=function(c,e){e||(e={});let l={};if(e.defaults){if(r.Long){let t=new r.Long(0,0,!1);l.repost=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.repost=e.longs===String?"0":0;if(r.Long){let t=new r.Long(0,0,!1);l.like=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.like=e.longs===String?"0":0;if(r.Long){let t=new r.Long(0,0,!1);l.reply=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.reply=e.longs===String?"0":0;l.likeInfo=null,l.noComment=!1,l.noForward=!1,l.replyUrl="",l.noCommentText="",l.noForwardText=""}return c.repost!=null&&c.hasOwnProperty("repost")&&(typeof c.repost=="number"?l.repost=e.longs===String?String(c.repost):c.repost:l.repost=e.longs===String?r.Long.prototype.toString.call(c.repost):e.longs===Number?new r.LongBits(c.repost.low>>>0,c.repost.high>>>0).toNumber():c.repost),c.like!=null&&c.hasOwnProperty("like")&&(typeof c.like=="number"?l.like=e.longs===String?String(c.like):c.like:l.like=e.longs===String?r.Long.prototype.toString.call(c.like):e.longs===Number?new r.LongBits(c.like.low>>>0,c.like.high>>>0).toNumber():c.like),c.reply!=null&&c.hasOwnProperty("reply")&&(typeof c.reply=="number"?l.reply=e.longs===String?String(c.reply):c.reply:l.reply=e.longs===String?r.Long.prototype.toString.call(c.reply):e.longs===Number?new r.LongBits(c.reply.low>>>0,c.reply.high>>>0).toNumber():c.reply),c.likeInfo!=null&&c.hasOwnProperty("likeInfo")&&(l.likeInfo=u.gateway.LikeInfo.toObject(c.likeInfo,e)),c.noComment!=null&&c.hasOwnProperty("noComment")&&(l.noComment=c.noComment),c.noForward!=null&&c.hasOwnProperty("noForward")&&(l.noForward=c.noForward),c.replyUrl!=null&&c.hasOwnProperty("replyUrl")&&(l.replyUrl=c.replyUrl),c.noCommentText!=null&&c.hasOwnProperty("noCommentText")&&(l.noCommentText=c.noCommentText),c.noForwardText!=null&&c.hasOwnProperty("noForwardText")&&(l.noForwardText=c.noForwardText),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.ModuleStat"},d}(),O.ModuleFold=function(){function d(p){if(this.foldUsers=[],p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.foldType=c.int32();break}case 2:{t.text=c.string();break}case 3:{t.foldIds=c.string();break}case 4:{t.foldUsers&&t.foldUsers.length||(t.foldUsers=[]),t.foldUsers.push(u.gateway.UserInfo.decode(c,c.uint32()));break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.ModuleFold)return c;let e=new u.gateway.ModuleFold;switch(c.foldType){default:if(typeof c.foldType=="number"){e.foldType=c.foldType;break}break;case"FoldTypeZore":case 0:e.foldType=0;break;case"FoldTypePublish":case 1:e.foldType=1;break;case"FoldTypeFrequent":case 2:e.foldType=2;break;case"FoldTypeUnite":case 3:e.foldType=3;break;case"FoldTypeLimit":case 4:e.foldType=4;break}if(c.text!=null&&(e.text=String(c.text)),c.foldIds!=null&&(e.foldIds=String(c.foldIds)),c.foldUsers){if(!Array.isArray(c.foldUsers))throw TypeError(".gateway.ModuleFold.foldUsers: array expected");e.foldUsers=[];for(let l=0;l>>3){case 1:{t.updateBaseline=c.string();break}case 2:{t.offset=c.string();break}case 3:{t.page=c.int32();break}case 4:{t.refreshType=c.int32();break}case 5:{t.playurlParam=u.gateway.PlayurlParam.decode(c,c.uint32());break}case 6:{t.assistBaseline=c.string();break}case 7:{t.localTime=c.int32();break}case 8:{t.rcmdUpsParam=u.gateway.RcmdUPsParam.decode(c,c.uint32());break}case 9:{t.adParam=u.gateway.AdParam.decode(c,c.uint32());break}case 10:{t.coldStart=c.int32();break}case 11:{t.from=c.string();break}case 12:{t.playerArgs=u.gateway.PlayerArgs.decode(c,c.uint32());break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.DynAllReq)return c;let e=new u.gateway.DynAllReq;switch(c.updateBaseline!=null&&(e.updateBaseline=String(c.updateBaseline)),c.offset!=null&&(e.offset=String(c.offset)),c.page!=null&&(e.page=c.page|0),c.refreshType){default:if(typeof c.refreshType=="number"){e.refreshType=c.refreshType;break}break;case"refresh_new":case 0:e.refreshType=0;break;case"refresh_history":case 1:e.refreshType=1;break}if(c.playurlParam!=null){if(typeof c.playurlParam!="object")throw TypeError(".gateway.DynAllReq.playurlParam: object expected");e.playurlParam=u.gateway.PlayurlParam.fromObject(c.playurlParam)}if(c.assistBaseline!=null&&(e.assistBaseline=String(c.assistBaseline)),c.localTime!=null&&(e.localTime=c.localTime|0),c.rcmdUpsParam!=null){if(typeof c.rcmdUpsParam!="object")throw TypeError(".gateway.DynAllReq.rcmdUpsParam: object expected");e.rcmdUpsParam=u.gateway.RcmdUPsParam.fromObject(c.rcmdUpsParam)}if(c.adParam!=null){if(typeof c.adParam!="object")throw TypeError(".gateway.DynAllReq.adParam: object expected");e.adParam=u.gateway.AdParam.fromObject(c.adParam)}if(c.coldStart!=null&&(e.coldStart=c.coldStart|0),c.from!=null&&(e.from=String(c.from)),c.playerArgs!=null){if(typeof c.playerArgs!="object")throw TypeError(".gateway.DynAllReq.playerArgs: object expected");e.playerArgs=u.gateway.PlayerArgs.fromObject(c.playerArgs)}return e},d.toObject=function(c,e){e||(e={});let l={};return e.defaults&&(l.updateBaseline="",l.offset="",l.page=0,l.refreshType=e.enums===String?"refresh_new":0,l.playurlParam=null,l.assistBaseline="",l.localTime=0,l.rcmdUpsParam=null,l.adParam=null,l.coldStart=0,l.from="",l.playerArgs=null),c.updateBaseline!=null&&c.hasOwnProperty("updateBaseline")&&(l.updateBaseline=c.updateBaseline),c.offset!=null&&c.hasOwnProperty("offset")&&(l.offset=c.offset),c.page!=null&&c.hasOwnProperty("page")&&(l.page=c.page),c.refreshType!=null&&c.hasOwnProperty("refreshType")&&(l.refreshType=e.enums===String?u.gateway.Refresh[c.refreshType]===void 0?c.refreshType:u.gateway.Refresh[c.refreshType]:c.refreshType),c.playurlParam!=null&&c.hasOwnProperty("playurlParam")&&(l.playurlParam=u.gateway.PlayurlParam.toObject(c.playurlParam,e)),c.assistBaseline!=null&&c.hasOwnProperty("assistBaseline")&&(l.assistBaseline=c.assistBaseline),c.localTime!=null&&c.hasOwnProperty("localTime")&&(l.localTime=c.localTime),c.rcmdUpsParam!=null&&c.hasOwnProperty("rcmdUpsParam")&&(l.rcmdUpsParam=u.gateway.RcmdUPsParam.toObject(c.rcmdUpsParam,e)),c.adParam!=null&&c.hasOwnProperty("adParam")&&(l.adParam=u.gateway.AdParam.toObject(c.adParam,e)),c.coldStart!=null&&c.hasOwnProperty("coldStart")&&(l.coldStart=c.coldStart),c.from!=null&&c.hasOwnProperty("from")&&(l.from=c.from),c.playerArgs!=null&&c.hasOwnProperty("playerArgs")&&(l.playerArgs=u.gateway.PlayerArgs.toObject(c.playerArgs,e)),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.DynAllReq"},d}(),O.RcmdUPsParam=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.dislikeTs=c.int64();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.RcmdUPsParam)return c;let e=new u.gateway.RcmdUPsParam;return c.dislikeTs!=null&&(r.Long?(e.dislikeTs=r.Long.fromValue(c.dislikeTs)).unsigned=!1:typeof c.dislikeTs=="string"?e.dislikeTs=parseInt(c.dislikeTs,10):typeof c.dislikeTs=="number"?e.dislikeTs=c.dislikeTs:typeof c.dislikeTs=="object"&&(e.dislikeTs=new r.LongBits(c.dislikeTs.low>>>0,c.dislikeTs.high>>>0).toNumber())),e},d.toObject=function(c,e){e||(e={});let l={};if(e.defaults)if(r.Long){let t=new r.Long(0,0,!1);l.dislikeTs=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.dislikeTs=e.longs===String?"0":0;return c.dislikeTs!=null&&c.hasOwnProperty("dislikeTs")&&(typeof c.dislikeTs=="number"?l.dislikeTs=e.longs===String?String(c.dislikeTs):c.dislikeTs:l.dislikeTs=e.longs===String?r.Long.prototype.toString.call(c.dislikeTs):e.longs===Number?new r.LongBits(c.dislikeTs.low>>>0,c.dislikeTs.high>>>0).toNumber():c.dislikeTs),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.RcmdUPsParam"},d}(),O.AdParam=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.adExtra=c.string();break}case 2:{t.requestId=c.string();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.AdParam)return c;let e=new u.gateway.AdParam;return c.adExtra!=null&&(e.adExtra=String(c.adExtra)),c.requestId!=null&&(e.requestId=String(c.requestId)),e},d.toObject=function(c,e){e||(e={});let l={};return e.defaults&&(l.adExtra="",l.requestId=""),c.adExtra!=null&&c.hasOwnProperty("adExtra")&&(l.adExtra=c.adExtra),c.requestId!=null&&c.hasOwnProperty("requestId")&&(l.requestId=c.requestId),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.AdParam"},d}(),O.DynAllReply=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.dynamicList=u.gateway.DynamicList.decode(c,c.uint32());break}case 2:{t.upList=u.gateway.CardVideoUpList.decode(c,c.uint32());break}case 3:{t.topicList=u.gateway.TopicList.decode(c,c.uint32());break}case 4:{t.unfollow=u.gateway.Unfollow.decode(c,c.uint32());break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.DynAllReply)return c;let e=new u.gateway.DynAllReply;if(c.dynamicList!=null){if(typeof c.dynamicList!="object")throw TypeError(".gateway.DynAllReply.dynamicList: object expected");e.dynamicList=u.gateway.DynamicList.fromObject(c.dynamicList)}if(c.upList!=null){if(typeof c.upList!="object")throw TypeError(".gateway.DynAllReply.upList: object expected");e.upList=u.gateway.CardVideoUpList.fromObject(c.upList)}if(c.topicList!=null){if(typeof c.topicList!="object")throw TypeError(".gateway.DynAllReply.topicList: object expected");e.topicList=u.gateway.TopicList.fromObject(c.topicList)}if(c.unfollow!=null){if(typeof c.unfollow!="object")throw TypeError(".gateway.DynAllReply.unfollow: object expected");e.unfollow=u.gateway.Unfollow.fromObject(c.unfollow)}return e},d.toObject=function(c,e){e||(e={});let l={};return e.defaults&&(l.dynamicList=null,l.upList=null,l.topicList=null,l.unfollow=null),c.dynamicList!=null&&c.hasOwnProperty("dynamicList")&&(l.dynamicList=u.gateway.DynamicList.toObject(c.dynamicList,e)),c.upList!=null&&c.hasOwnProperty("upList")&&(l.upList=u.gateway.CardVideoUpList.toObject(c.upList,e)),c.topicList!=null&&c.hasOwnProperty("topicList")&&(l.topicList=u.gateway.TopicList.toObject(c.topicList,e)),c.unfollow!=null&&c.hasOwnProperty("unfollow")&&(l.unfollow=u.gateway.Unfollow.toObject(c.unfollow,e)),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.DynAllReply"},d}(),O.DynamicList=function(){function d(p){if(this.list=[],p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.list&&t.list.length||(t.list=[]),t.list.push(u.gateway.DynamicItem.decode(c,c.uint32()));break}case 2:{t.updateNum=c.int64();break}case 3:{t.historyOffset=c.string();break}case 4:{t.updateBaseline=c.string();break}case 5:{t.hasMore=c.bool();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.DynamicList)return c;let e=new u.gateway.DynamicList;if(c.list){if(!Array.isArray(c.list))throw TypeError(".gateway.DynamicList.list: array expected");e.list=[];for(let l=0;l>>0,c.updateNum.high>>>0).toNumber())),c.historyOffset!=null&&(e.historyOffset=String(c.historyOffset)),c.updateBaseline!=null&&(e.updateBaseline=String(c.updateBaseline)),c.hasMore!=null&&(e.hasMore=!!c.hasMore),e},d.toObject=function(c,e){e||(e={});let l={};if((e.arrays||e.defaults)&&(l.list=[]),e.defaults){if(r.Long){let t=new r.Long(0,0,!1);l.updateNum=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.updateNum=e.longs===String?"0":0;l.historyOffset="",l.updateBaseline="",l.hasMore=!1}if(c.list&&c.list.length){l.list=[];for(let t=0;t>>0,c.updateNum.high>>>0).toNumber():c.updateNum),c.historyOffset!=null&&c.hasOwnProperty("historyOffset")&&(l.historyOffset=c.historyOffset),c.updateBaseline!=null&&c.hasOwnProperty("updateBaseline")&&(l.updateBaseline=c.updateBaseline),c.hasMore!=null&&c.hasOwnProperty("hasMore")&&(l.hasMore=c.hasMore),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.DynamicList"},d}(),O.TopicList=function(){function d(p){if(this.topicListItem=[],p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.title=c.string();break}case 2:{t.topicListItem&&t.topicListItem.length||(t.topicListItem=[]),t.topicListItem.push(u.gateway.TopicListItem.decode(c,c.uint32()));break}case 3:{t.actButton=u.gateway.TopicButton.decode(c,c.uint32());break}case 4:{t.moreButton=u.gateway.TopicButton.decode(c,c.uint32());break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.TopicList)return c;let e=new u.gateway.TopicList;if(c.title!=null&&(e.title=String(c.title)),c.topicListItem){if(!Array.isArray(c.topicListItem))throw TypeError(".gateway.TopicList.topicListItem: array expected");e.topicListItem=[];for(let l=0;l>>3){case 1:{t.icon=c.string();break}case 2:{t.iconTitle=c.string();break}case 3:{t.topicId=c.int64();break}case 4:{t.topicName=c.string();break}case 5:{t.url=c.string();break}case 6:{t.pos=c.int64();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.TopicListItem)return c;let e=new u.gateway.TopicListItem;return c.icon!=null&&(e.icon=String(c.icon)),c.iconTitle!=null&&(e.iconTitle=String(c.iconTitle)),c.topicId!=null&&(r.Long?(e.topicId=r.Long.fromValue(c.topicId)).unsigned=!1:typeof c.topicId=="string"?e.topicId=parseInt(c.topicId,10):typeof c.topicId=="number"?e.topicId=c.topicId:typeof c.topicId=="object"&&(e.topicId=new r.LongBits(c.topicId.low>>>0,c.topicId.high>>>0).toNumber())),c.topicName!=null&&(e.topicName=String(c.topicName)),c.url!=null&&(e.url=String(c.url)),c.pos!=null&&(r.Long?(e.pos=r.Long.fromValue(c.pos)).unsigned=!1:typeof c.pos=="string"?e.pos=parseInt(c.pos,10):typeof c.pos=="number"?e.pos=c.pos:typeof c.pos=="object"&&(e.pos=new r.LongBits(c.pos.low>>>0,c.pos.high>>>0).toNumber())),e},d.toObject=function(c,e){e||(e={});let l={};if(e.defaults){if(l.icon="",l.iconTitle="",r.Long){let t=new r.Long(0,0,!1);l.topicId=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.topicId=e.longs===String?"0":0;if(l.topicName="",l.url="",r.Long){let t=new r.Long(0,0,!1);l.pos=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.pos=e.longs===String?"0":0}return c.icon!=null&&c.hasOwnProperty("icon")&&(l.icon=c.icon),c.iconTitle!=null&&c.hasOwnProperty("iconTitle")&&(l.iconTitle=c.iconTitle),c.topicId!=null&&c.hasOwnProperty("topicId")&&(typeof c.topicId=="number"?l.topicId=e.longs===String?String(c.topicId):c.topicId:l.topicId=e.longs===String?r.Long.prototype.toString.call(c.topicId):e.longs===Number?new r.LongBits(c.topicId.low>>>0,c.topicId.high>>>0).toNumber():c.topicId),c.topicName!=null&&c.hasOwnProperty("topicName")&&(l.topicName=c.topicName),c.url!=null&&c.hasOwnProperty("url")&&(l.url=c.url),c.pos!=null&&c.hasOwnProperty("pos")&&(typeof c.pos=="number"?l.pos=e.longs===String?String(c.pos):c.pos:l.pos=e.longs===String?r.Long.prototype.toString.call(c.pos):e.longs===Number?new r.LongBits(c.pos.low>>>0,c.pos.high>>>0).toNumber():c.pos),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.TopicListItem"},d}(),O.TopicButton=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.icon=c.string();break}case 2:{t.title=c.string();break}case 3:{t.jumpUri=c.string();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.TopicButton)return c;let e=new u.gateway.TopicButton;return c.icon!=null&&(e.icon=String(c.icon)),c.title!=null&&(e.title=String(c.title)),c.jumpUri!=null&&(e.jumpUri=String(c.jumpUri)),e},d.toObject=function(c,e){e||(e={});let l={};return e.defaults&&(l.icon="",l.title="",l.jumpUri=""),c.icon!=null&&c.hasOwnProperty("icon")&&(l.icon=c.icon),c.title!=null&&c.hasOwnProperty("title")&&(l.title=c.title),c.jumpUri!=null&&c.hasOwnProperty("jumpUri")&&(l.jumpUri=c.jumpUri),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.TopicButton"},d}(),O.Unfollow=function(){function d(p){if(this.list=[],p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.title=c.string();break}case 2:{t.list&&t.list.length||(t.list=[]),t.list.push(u.gateway.UnfollowUserItem.decode(c,c.uint32()));break}case 3:{t.TrackId=c.string();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.Unfollow)return c;let e=new u.gateway.Unfollow;if(c.title!=null&&(e.title=String(c.title)),c.list){if(!Array.isArray(c.list))throw TypeError(".gateway.Unfollow.list: array expected");e.list=[];for(let l=0;l>>3){case 1:{t.hasUpdate=c.bool();break}case 2:{t.face=c.string();break}case 3:{t.name=c.string();break}case 4:{t.uid=c.int64();break}case 5:{t.pos=c.int32();break}case 6:{t.liveState=c.int32();break}case 7:{t.official=u.gateway.OfficialVerify.decode(c,c.uint32());break}case 8:{t.vip=u.gateway.VipInfo.decode(c,c.uint32());break}case 9:{t.sign=c.string();break}case 10:{t.label=c.string();break}case 11:{t.button=u.gateway.AdditionalButton.decode(c,c.uint32());break}case 12:{t.uri=c.string();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.UnfollowUserItem)return c;let e=new u.gateway.UnfollowUserItem;switch(c.hasUpdate!=null&&(e.hasUpdate=!!c.hasUpdate),c.face!=null&&(e.face=String(c.face)),c.name!=null&&(e.name=String(c.name)),c.uid!=null&&(r.Long?(e.uid=r.Long.fromValue(c.uid)).unsigned=!1:typeof c.uid=="string"?e.uid=parseInt(c.uid,10):typeof c.uid=="number"?e.uid=c.uid:typeof c.uid=="object"&&(e.uid=new r.LongBits(c.uid.low>>>0,c.uid.high>>>0).toNumber())),c.pos!=null&&(e.pos=c.pos|0),c.liveState){default:if(typeof c.liveState=="number"){e.liveState=c.liveState;break}break;case"live_none":case 0:e.liveState=0;break;case"live_live":case 1:e.liveState=1;break;case"live_rotation":case 2:e.liveState=2;break}if(c.official!=null){if(typeof c.official!="object")throw TypeError(".gateway.UnfollowUserItem.official: object expected");e.official=u.gateway.OfficialVerify.fromObject(c.official)}if(c.vip!=null){if(typeof c.vip!="object")throw TypeError(".gateway.UnfollowUserItem.vip: object expected");e.vip=u.gateway.VipInfo.fromObject(c.vip)}if(c.sign!=null&&(e.sign=String(c.sign)),c.label!=null&&(e.label=String(c.label)),c.button!=null){if(typeof c.button!="object")throw TypeError(".gateway.UnfollowUserItem.button: object expected");e.button=u.gateway.AdditionalButton.fromObject(c.button)}return c.uri!=null&&(e.uri=String(c.uri)),e},d.toObject=function(c,e){e||(e={});let l={};if(e.defaults){if(l.hasUpdate=!1,l.face="",l.name="",r.Long){let t=new r.Long(0,0,!1);l.uid=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.uid=e.longs===String?"0":0;l.pos=0,l.liveState=e.enums===String?"live_none":0,l.official=null,l.vip=null,l.sign="",l.label="",l.button=null,l.uri=""}return c.hasUpdate!=null&&c.hasOwnProperty("hasUpdate")&&(l.hasUpdate=c.hasUpdate),c.face!=null&&c.hasOwnProperty("face")&&(l.face=c.face),c.name!=null&&c.hasOwnProperty("name")&&(l.name=c.name),c.uid!=null&&c.hasOwnProperty("uid")&&(typeof c.uid=="number"?l.uid=e.longs===String?String(c.uid):c.uid:l.uid=e.longs===String?r.Long.prototype.toString.call(c.uid):e.longs===Number?new r.LongBits(c.uid.low>>>0,c.uid.high>>>0).toNumber():c.uid),c.pos!=null&&c.hasOwnProperty("pos")&&(l.pos=c.pos),c.liveState!=null&&c.hasOwnProperty("liveState")&&(l.liveState=e.enums===String?u.gateway.LiveState[c.liveState]===void 0?c.liveState:u.gateway.LiveState[c.liveState]:c.liveState),c.official!=null&&c.hasOwnProperty("official")&&(l.official=u.gateway.OfficialVerify.toObject(c.official,e)),c.vip!=null&&c.hasOwnProperty("vip")&&(l.vip=u.gateway.VipInfo.toObject(c.vip,e)),c.sign!=null&&c.hasOwnProperty("sign")&&(l.sign=c.sign),c.label!=null&&c.hasOwnProperty("label")&&(l.label=c.label),c.button!=null&&c.hasOwnProperty("button")&&(l.button=u.gateway.AdditionalButton.toObject(c.button,e)),c.uri!=null&&c.hasOwnProperty("uri")&&(l.uri=c.uri),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.UnfollowUserItem"},d}(),O.DynDetailsReq=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.dynamicIds=c.string();break}case 2:{t.playurlParam=u.gateway.PlayurlParam.decode(c,c.uint32());break}case 3:{t.localTime=c.int32();break}case 4:{t.playerArgs=u.gateway.PlayerArgs.decode(c,c.uint32());break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.DynDetailsReq)return c;let e=new u.gateway.DynDetailsReq;if(c.dynamicIds!=null&&(e.dynamicIds=String(c.dynamicIds)),c.playurlParam!=null){if(typeof c.playurlParam!="object")throw TypeError(".gateway.DynDetailsReq.playurlParam: object expected");e.playurlParam=u.gateway.PlayurlParam.fromObject(c.playurlParam)}if(c.localTime!=null&&(e.localTime=c.localTime|0),c.playerArgs!=null){if(typeof c.playerArgs!="object")throw TypeError(".gateway.DynDetailsReq.playerArgs: object expected");e.playerArgs=u.gateway.PlayerArgs.fromObject(c.playerArgs)}return e},d.toObject=function(c,e){e||(e={});let l={};return e.defaults&&(l.dynamicIds="",l.playurlParam=null,l.localTime=0,l.playerArgs=null),c.dynamicIds!=null&&c.hasOwnProperty("dynamicIds")&&(l.dynamicIds=c.dynamicIds),c.playurlParam!=null&&c.hasOwnProperty("playurlParam")&&(l.playurlParam=u.gateway.PlayurlParam.toObject(c.playurlParam,e)),c.localTime!=null&&c.hasOwnProperty("localTime")&&(l.localTime=c.localTime),c.playerArgs!=null&&c.hasOwnProperty("playerArgs")&&(l.playerArgs=u.gateway.PlayerArgs.toObject(c.playerArgs,e)),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.DynDetailsReq"},d}(),O.DynDetailsReply=function(){function d(p){if(this.list=[],p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.list&&t.list.length||(t.list=[]),t.list.push(u.gateway.DynamicItem.decode(c,c.uint32()));break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.DynDetailsReply)return c;let e=new u.gateway.DynDetailsReply;if(c.list){if(!Array.isArray(c.list))throw TypeError(".gateway.DynDetailsReply.list: array expected");e.list=[];for(let l=0;l>>3){case 1:{t.hostUid=c.int64();break}case 2:{t.offset=c.string();break}case 3:{t.page=c.int32();break}case 4:{t.isPreload=c.int32();break}case 5:{t.playurlParam=u.gateway.PlayurlParam.decode(c,c.uint32());break}case 6:{t.localTime=c.int32();break}case 7:{t.footprint=c.string();break}case 8:{t.from=c.string();break}case 9:{t.playerArgs=u.gateway.PlayerArgs.decode(c,c.uint32());break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.DynVideoPersonalReq)return c;let e=new u.gateway.DynVideoPersonalReq;if(c.hostUid!=null&&(r.Long?(e.hostUid=r.Long.fromValue(c.hostUid)).unsigned=!1:typeof c.hostUid=="string"?e.hostUid=parseInt(c.hostUid,10):typeof c.hostUid=="number"?e.hostUid=c.hostUid:typeof c.hostUid=="object"&&(e.hostUid=new r.LongBits(c.hostUid.low>>>0,c.hostUid.high>>>0).toNumber())),c.offset!=null&&(e.offset=String(c.offset)),c.page!=null&&(e.page=c.page|0),c.isPreload!=null&&(e.isPreload=c.isPreload|0),c.playurlParam!=null){if(typeof c.playurlParam!="object")throw TypeError(".gateway.DynVideoPersonalReq.playurlParam: object expected");e.playurlParam=u.gateway.PlayurlParam.fromObject(c.playurlParam)}if(c.localTime!=null&&(e.localTime=c.localTime|0),c.footprint!=null&&(e.footprint=String(c.footprint)),c.from!=null&&(e.from=String(c.from)),c.playerArgs!=null){if(typeof c.playerArgs!="object")throw TypeError(".gateway.DynVideoPersonalReq.playerArgs: object expected");e.playerArgs=u.gateway.PlayerArgs.fromObject(c.playerArgs)}return e},d.toObject=function(c,e){e||(e={});let l={};if(e.defaults){if(r.Long){let t=new r.Long(0,0,!1);l.hostUid=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.hostUid=e.longs===String?"0":0;l.offset="",l.page=0,l.isPreload=0,l.playurlParam=null,l.localTime=0,l.footprint="",l.from="",l.playerArgs=null}return c.hostUid!=null&&c.hasOwnProperty("hostUid")&&(typeof c.hostUid=="number"?l.hostUid=e.longs===String?String(c.hostUid):c.hostUid:l.hostUid=e.longs===String?r.Long.prototype.toString.call(c.hostUid):e.longs===Number?new r.LongBits(c.hostUid.low>>>0,c.hostUid.high>>>0).toNumber():c.hostUid),c.offset!=null&&c.hasOwnProperty("offset")&&(l.offset=c.offset),c.page!=null&&c.hasOwnProperty("page")&&(l.page=c.page),c.isPreload!=null&&c.hasOwnProperty("isPreload")&&(l.isPreload=c.isPreload),c.playurlParam!=null&&c.hasOwnProperty("playurlParam")&&(l.playurlParam=u.gateway.PlayurlParam.toObject(c.playurlParam,e)),c.localTime!=null&&c.hasOwnProperty("localTime")&&(l.localTime=c.localTime),c.footprint!=null&&c.hasOwnProperty("footprint")&&(l.footprint=c.footprint),c.from!=null&&c.hasOwnProperty("from")&&(l.from=c.from),c.playerArgs!=null&&c.hasOwnProperty("playerArgs")&&(l.playerArgs=u.gateway.PlayerArgs.toObject(c.playerArgs,e)),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.DynVideoPersonalReq"},d}(),O.DynVideoPersonalReply=function(){function d(p){if(this.list=[],p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.list&&t.list.length||(t.list=[]),t.list.push(u.gateway.DynamicItem.decode(c,c.uint32()));break}case 2:{t.offset=c.string();break}case 3:{t.hasMore=c.bool();break}case 4:{t.readOffset=c.string();break}case 5:{t.relation=u.gateway.Relation.decode(c,c.uint32());break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.DynVideoPersonalReply)return c;let e=new u.gateway.DynVideoPersonalReply;if(c.list){if(!Array.isArray(c.list))throw TypeError(".gateway.DynVideoPersonalReply.list: array expected");e.list=[];for(let l=0;l>>3){case 1:{t.hostUid=c.int64();break}case 2:{t.readOffset=c.string();break}case 3:{t.footprint=c.string();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.DynVideoUpdOffsetReq)return c;let e=new u.gateway.DynVideoUpdOffsetReq;return c.hostUid!=null&&(r.Long?(e.hostUid=r.Long.fromValue(c.hostUid)).unsigned=!1:typeof c.hostUid=="string"?e.hostUid=parseInt(c.hostUid,10):typeof c.hostUid=="number"?e.hostUid=c.hostUid:typeof c.hostUid=="object"&&(e.hostUid=new r.LongBits(c.hostUid.low>>>0,c.hostUid.high>>>0).toNumber())),c.readOffset!=null&&(e.readOffset=String(c.readOffset)),c.footprint!=null&&(e.footprint=String(c.footprint)),e},d.toObject=function(c,e){e||(e={});let l={};if(e.defaults){if(r.Long){let t=new r.Long(0,0,!1);l.hostUid=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.hostUid=e.longs===String?"0":0;l.readOffset="",l.footprint=""}return c.hostUid!=null&&c.hasOwnProperty("hostUid")&&(typeof c.hostUid=="number"?l.hostUid=e.longs===String?String(c.hostUid):c.hostUid:l.hostUid=e.longs===String?r.Long.prototype.toString.call(c.hostUid):e.longs===Number?new r.LongBits(c.hostUid.low>>>0,c.hostUid.high>>>0).toNumber():c.hostUid),c.readOffset!=null&&c.hasOwnProperty("readOffset")&&(l.readOffset=c.readOffset),c.footprint!=null&&c.hasOwnProperty("footprint")&&(l.footprint=c.footprint),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.DynVideoUpdOffsetReq"},d}(),O.CardVideoUpList=function(){function d(p){if(this.list=[],p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.title=c.string();break}case 2:{t.list&&t.list.length||(t.list=[]),t.list.push(u.gateway.UpListItem.decode(c,c.uint32()));break}case 3:{t.footprint=c.string();break}case 4:{t.showLiveNum=c.int32();break}case 5:{t.moreLabel=u.gateway.UpListMoreLabel.decode(c,c.uint32());break}case 6:{t.titleSwitch=c.int32();break}case 7:{t.showMoreLabel=c.bool();break}case 8:{t.showInPersonal=c.bool();break}case 9:{t.showMoreButton=c.bool();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.CardVideoUpList)return c;let e=new u.gateway.CardVideoUpList;if(c.title!=null&&(e.title=String(c.title)),c.list){if(!Array.isArray(c.list))throw TypeError(".gateway.CardVideoUpList.list: array expected");e.list=[];for(let l=0;l>>3){case 1:{t.title=c.string();break}case 2:{t.uri=c.string();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.UpListMoreLabel)return c;let e=new u.gateway.UpListMoreLabel;return c.title!=null&&(e.title=String(c.title)),c.uri!=null&&(e.uri=String(c.uri)),e},d.toObject=function(c,e){e||(e={});let l={};return e.defaults&&(l.title="",l.uri=""),c.title!=null&&c.hasOwnProperty("title")&&(l.title=c.title),c.uri!=null&&c.hasOwnProperty("uri")&&(l.uri=c.uri),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.UpListMoreLabel"},d}(),O.UpListItem=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.hasUpdate=c.bool();break}case 2:{t.face=c.string();break}case 3:{t.name=c.string();break}case 4:{t.uid=c.int64();break}case 5:{t.pos=c.int64();break}case 6:{t.userItemType=c.int32();break}case 7:{t.displayStyleDay=u.gateway.UserItemStyle.decode(c,c.uint32());break}case 8:{t.displayStyleNight=u.gateway.UserItemStyle.decode(c,c.uint32());break}case 9:{t.styleId=c.int64();break}case 10:{t.liveState=c.int32();break}case 11:{t.separator=c.bool();break}case 12:{t.uri=c.string();break}case 13:{t.isRecall=c.bool();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.UpListItem)return c;let e=new u.gateway.UpListItem;switch(c.hasUpdate!=null&&(e.hasUpdate=!!c.hasUpdate),c.face!=null&&(e.face=String(c.face)),c.name!=null&&(e.name=String(c.name)),c.uid!=null&&(r.Long?(e.uid=r.Long.fromValue(c.uid)).unsigned=!1:typeof c.uid=="string"?e.uid=parseInt(c.uid,10):typeof c.uid=="number"?e.uid=c.uid:typeof c.uid=="object"&&(e.uid=new r.LongBits(c.uid.low>>>0,c.uid.high>>>0).toNumber())),c.pos!=null&&(r.Long?(e.pos=r.Long.fromValue(c.pos)).unsigned=!1:typeof c.pos=="string"?e.pos=parseInt(c.pos,10):typeof c.pos=="number"?e.pos=c.pos:typeof c.pos=="object"&&(e.pos=new r.LongBits(c.pos.low>>>0,c.pos.high>>>0).toNumber())),c.userItemType){default:if(typeof c.userItemType=="number"){e.userItemType=c.userItemType;break}break;case"user_item_type_none":case 0:e.userItemType=0;break;case"user_item_type_live":case 1:e.userItemType=1;break;case"user_item_type_live_custom":case 2:e.userItemType=2;break;case"user_item_type_normal":case 3:e.userItemType=3;break;case"user_item_type_extend":case 4:e.userItemType=4;break}if(c.displayStyleDay!=null){if(typeof c.displayStyleDay!="object")throw TypeError(".gateway.UpListItem.displayStyleDay: object expected");e.displayStyleDay=u.gateway.UserItemStyle.fromObject(c.displayStyleDay)}if(c.displayStyleNight!=null){if(typeof c.displayStyleNight!="object")throw TypeError(".gateway.UpListItem.displayStyleNight: object expected");e.displayStyleNight=u.gateway.UserItemStyle.fromObject(c.displayStyleNight)}switch(c.styleId!=null&&(r.Long?(e.styleId=r.Long.fromValue(c.styleId)).unsigned=!1:typeof c.styleId=="string"?e.styleId=parseInt(c.styleId,10):typeof c.styleId=="number"?e.styleId=c.styleId:typeof c.styleId=="object"&&(e.styleId=new r.LongBits(c.styleId.low>>>0,c.styleId.high>>>0).toNumber())),c.liveState){default:if(typeof c.liveState=="number"){e.liveState=c.liveState;break}break;case"live_none":case 0:e.liveState=0;break;case"live_live":case 1:e.liveState=1;break;case"live_rotation":case 2:e.liveState=2;break}return c.separator!=null&&(e.separator=!!c.separator),c.uri!=null&&(e.uri=String(c.uri)),c.isRecall!=null&&(e.isRecall=!!c.isRecall),e},d.toObject=function(c,e){e||(e={});let l={};if(e.defaults){if(l.hasUpdate=!1,l.face="",l.name="",r.Long){let t=new r.Long(0,0,!1);l.uid=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.uid=e.longs===String?"0":0;if(r.Long){let t=new r.Long(0,0,!1);l.pos=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.pos=e.longs===String?"0":0;if(l.userItemType=e.enums===String?"user_item_type_none":0,l.displayStyleDay=null,l.displayStyleNight=null,r.Long){let t=new r.Long(0,0,!1);l.styleId=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.styleId=e.longs===String?"0":0;l.liveState=e.enums===String?"live_none":0,l.separator=!1,l.uri="",l.isRecall=!1}return c.hasUpdate!=null&&c.hasOwnProperty("hasUpdate")&&(l.hasUpdate=c.hasUpdate),c.face!=null&&c.hasOwnProperty("face")&&(l.face=c.face),c.name!=null&&c.hasOwnProperty("name")&&(l.name=c.name),c.uid!=null&&c.hasOwnProperty("uid")&&(typeof c.uid=="number"?l.uid=e.longs===String?String(c.uid):c.uid:l.uid=e.longs===String?r.Long.prototype.toString.call(c.uid):e.longs===Number?new r.LongBits(c.uid.low>>>0,c.uid.high>>>0).toNumber():c.uid),c.pos!=null&&c.hasOwnProperty("pos")&&(typeof c.pos=="number"?l.pos=e.longs===String?String(c.pos):c.pos:l.pos=e.longs===String?r.Long.prototype.toString.call(c.pos):e.longs===Number?new r.LongBits(c.pos.low>>>0,c.pos.high>>>0).toNumber():c.pos),c.userItemType!=null&&c.hasOwnProperty("userItemType")&&(l.userItemType=e.enums===String?u.gateway.UserItemType[c.userItemType]===void 0?c.userItemType:u.gateway.UserItemType[c.userItemType]:c.userItemType),c.displayStyleDay!=null&&c.hasOwnProperty("displayStyleDay")&&(l.displayStyleDay=u.gateway.UserItemStyle.toObject(c.displayStyleDay,e)),c.displayStyleNight!=null&&c.hasOwnProperty("displayStyleNight")&&(l.displayStyleNight=u.gateway.UserItemStyle.toObject(c.displayStyleNight,e)),c.styleId!=null&&c.hasOwnProperty("styleId")&&(typeof c.styleId=="number"?l.styleId=e.longs===String?String(c.styleId):c.styleId:l.styleId=e.longs===String?r.Long.prototype.toString.call(c.styleId):e.longs===Number?new r.LongBits(c.styleId.low>>>0,c.styleId.high>>>0).toNumber():c.styleId),c.liveState!=null&&c.hasOwnProperty("liveState")&&(l.liveState=e.enums===String?u.gateway.LiveState[c.liveState]===void 0?c.liveState:u.gateway.LiveState[c.liveState]:c.liveState),c.separator!=null&&c.hasOwnProperty("separator")&&(l.separator=c.separator),c.uri!=null&&c.hasOwnProperty("uri")&&(l.uri=c.uri),c.isRecall!=null&&c.hasOwnProperty("isRecall")&&(l.isRecall=c.isRecall),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.UpListItem"},d}(),O.UserItemType=function(){let d={},p=Object.create(d);return p[d[0]="user_item_type_none"]=0,p[d[1]="user_item_type_live"]=1,p[d[2]="user_item_type_live_custom"]=2,p[d[3]="user_item_type_normal"]=3,p[d[4]="user_item_type_extend"]=4,p}(),O.UserItemStyle=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.rectText=c.string();break}case 2:{t.rectTextColor=c.string();break}case 3:{t.rectIcon=c.string();break}case 4:{t.rectBgColor=c.string();break}case 5:{t.outerAnimation=c.string();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.UserItemStyle)return c;let e=new u.gateway.UserItemStyle;return c.rectText!=null&&(e.rectText=String(c.rectText)),c.rectTextColor!=null&&(e.rectTextColor=String(c.rectTextColor)),c.rectIcon!=null&&(e.rectIcon=String(c.rectIcon)),c.rectBgColor!=null&&(e.rectBgColor=String(c.rectBgColor)),c.outerAnimation!=null&&(e.outerAnimation=String(c.outerAnimation)),e},d.toObject=function(c,e){e||(e={});let l={};return e.defaults&&(l.rectText="",l.rectTextColor="",l.rectIcon="",l.rectBgColor="",l.outerAnimation=""),c.rectText!=null&&c.hasOwnProperty("rectText")&&(l.rectText=c.rectText),c.rectTextColor!=null&&c.hasOwnProperty("rectTextColor")&&(l.rectTextColor=c.rectTextColor),c.rectIcon!=null&&c.hasOwnProperty("rectIcon")&&(l.rectIcon=c.rectIcon),c.rectBgColor!=null&&c.hasOwnProperty("rectBgColor")&&(l.rectBgColor=c.rectBgColor),c.outerAnimation!=null&&c.hasOwnProperty("outerAnimation")&&(l.outerAnimation=c.outerAnimation),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.UserItemStyle"},d}(),O.CardVideoFollowList=function(){function d(p){if(this.list=[],p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.viewAllLink=c.string();break}case 2:{t.list&&t.list.length||(t.list=[]),t.list.push(u.gateway.FollowListItem.decode(c,c.uint32()));break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.CardVideoFollowList)return c;let e=new u.gateway.CardVideoFollowList;if(c.viewAllLink!=null&&(e.viewAllLink=String(c.viewAllLink)),c.list){if(!Array.isArray(c.list))throw TypeError(".gateway.CardVideoFollowList.list: array expected");e.list=[];for(let l=0;l>>3){case 1:{t.seasonId=c.int64();break}case 2:{t.title=c.string();break}case 3:{t.cover=c.string();break}case 4:{t.url=c.string();break}case 5:{t.newEp=u.gateway.NewEP.decode(c,c.uint32());break}case 6:{t.subTitle=c.string();break}case 7:{t.pos=c.int64();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.FollowListItem)return c;let e=new u.gateway.FollowListItem;if(c.seasonId!=null&&(r.Long?(e.seasonId=r.Long.fromValue(c.seasonId)).unsigned=!1:typeof c.seasonId=="string"?e.seasonId=parseInt(c.seasonId,10):typeof c.seasonId=="number"?e.seasonId=c.seasonId:typeof c.seasonId=="object"&&(e.seasonId=new r.LongBits(c.seasonId.low>>>0,c.seasonId.high>>>0).toNumber())),c.title!=null&&(e.title=String(c.title)),c.cover!=null&&(e.cover=String(c.cover)),c.url!=null&&(e.url=String(c.url)),c.newEp!=null){if(typeof c.newEp!="object")throw TypeError(".gateway.FollowListItem.newEp: object expected");e.newEp=u.gateway.NewEP.fromObject(c.newEp)}return c.subTitle!=null&&(e.subTitle=String(c.subTitle)),c.pos!=null&&(r.Long?(e.pos=r.Long.fromValue(c.pos)).unsigned=!1:typeof c.pos=="string"?e.pos=parseInt(c.pos,10):typeof c.pos=="number"?e.pos=c.pos:typeof c.pos=="object"&&(e.pos=new r.LongBits(c.pos.low>>>0,c.pos.high>>>0).toNumber())),e},d.toObject=function(c,e){e||(e={});let l={};if(e.defaults){if(r.Long){let t=new r.Long(0,0,!1);l.seasonId=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.seasonId=e.longs===String?"0":0;if(l.title="",l.cover="",l.url="",l.newEp=null,l.subTitle="",r.Long){let t=new r.Long(0,0,!1);l.pos=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.pos=e.longs===String?"0":0}return c.seasonId!=null&&c.hasOwnProperty("seasonId")&&(typeof c.seasonId=="number"?l.seasonId=e.longs===String?String(c.seasonId):c.seasonId:l.seasonId=e.longs===String?r.Long.prototype.toString.call(c.seasonId):e.longs===Number?new r.LongBits(c.seasonId.low>>>0,c.seasonId.high>>>0).toNumber():c.seasonId),c.title!=null&&c.hasOwnProperty("title")&&(l.title=c.title),c.cover!=null&&c.hasOwnProperty("cover")&&(l.cover=c.cover),c.url!=null&&c.hasOwnProperty("url")&&(l.url=c.url),c.newEp!=null&&c.hasOwnProperty("newEp")&&(l.newEp=u.gateway.NewEP.toObject(c.newEp,e)),c.subTitle!=null&&c.hasOwnProperty("subTitle")&&(l.subTitle=c.subTitle),c.pos!=null&&c.hasOwnProperty("pos")&&(typeof c.pos=="number"?l.pos=e.longs===String?String(c.pos):c.pos:l.pos=e.longs===String?r.Long.prototype.toString.call(c.pos):e.longs===Number?new r.LongBits(c.pos.low>>>0,c.pos.high>>>0).toNumber():c.pos),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.FollowListItem"},d}(),O.NewEP=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.id=c.int32();break}case 2:{t.indexShow=c.string();break}case 3:{t.cover=c.string();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.NewEP)return c;let e=new u.gateway.NewEP;return c.id!=null&&(e.id=c.id|0),c.indexShow!=null&&(e.indexShow=String(c.indexShow)),c.cover!=null&&(e.cover=String(c.cover)),e},d.toObject=function(c,e){e||(e={});let l={};return e.defaults&&(l.id=0,l.indexShow="",l.cover=""),c.id!=null&&c.hasOwnProperty("id")&&(l.id=c.id),c.indexShow!=null&&c.hasOwnProperty("indexShow")&&(l.indexShow=c.indexShow),c.cover!=null&&c.hasOwnProperty("cover")&&(l.cover=c.cover),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.NewEP"},d}(),O.Extend=function(){function d(p){if(this.origDesc=[],this.desc=[],p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.dynIdStr=c.string();break}case 2:{t.businessId=c.string();break}case 3:{t.origDynIdStr=c.string();break}case 4:{t.origName=c.string();break}case 5:{t.origImgUrl=c.string();break}case 6:{t.origDesc&&t.origDesc.length||(t.origDesc=[]),t.origDesc.push(u.gateway.Description.decode(c,c.uint32()));break}case 7:{t.desc&&t.desc.length||(t.desc=[]),t.desc.push(u.gateway.Description.decode(c,c.uint32()));break}case 8:{t.origDynType=c.int32();break}case 9:{t.shareType=c.string();break}case 10:{t.shareScene=c.string();break}case 11:{t.isFastShare=c.bool();break}case 12:{t.rType=c.int32();break}case 13:{t.dynType=c.int64();break}case 14:{t.uid=c.int64();break}case 15:{t.cardUrl=c.string();break}case 16:{t.sourceContent=u.google.protobuf.Any.decode(c,c.uint32());break}case 17:{t.origFace=c.string();break}case 18:{t.reply=u.gateway.ExtendReply.decode(c,c.uint32());break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.Extend)return c;let e=new u.gateway.Extend;if(c.dynIdStr!=null&&(e.dynIdStr=String(c.dynIdStr)),c.businessId!=null&&(e.businessId=String(c.businessId)),c.origDynIdStr!=null&&(e.origDynIdStr=String(c.origDynIdStr)),c.origName!=null&&(e.origName=String(c.origName)),c.origImgUrl!=null&&(e.origImgUrl=String(c.origImgUrl)),c.origDesc){if(!Array.isArray(c.origDesc))throw TypeError(".gateway.Extend.origDesc: array expected");e.origDesc=[];for(let l=0;l>>0,c.dynType.high>>>0).toNumber())),c.uid!=null&&(r.Long?(e.uid=r.Long.fromValue(c.uid)).unsigned=!1:typeof c.uid=="string"?e.uid=parseInt(c.uid,10):typeof c.uid=="number"?e.uid=c.uid:typeof c.uid=="object"&&(e.uid=new r.LongBits(c.uid.low>>>0,c.uid.high>>>0).toNumber())),c.cardUrl!=null&&(e.cardUrl=String(c.cardUrl)),c.sourceContent!=null){if(typeof c.sourceContent!="object")throw TypeError(".gateway.Extend.sourceContent: object expected");e.sourceContent=u.google.protobuf.Any.fromObject(c.sourceContent)}if(c.origFace!=null&&(e.origFace=String(c.origFace)),c.reply!=null){if(typeof c.reply!="object")throw TypeError(".gateway.Extend.reply: object expected");e.reply=u.gateway.ExtendReply.fromObject(c.reply)}return e},d.toObject=function(c,e){e||(e={});let l={};if((e.arrays||e.defaults)&&(l.origDesc=[],l.desc=[]),e.defaults){if(l.dynIdStr="",l.businessId="",l.origDynIdStr="",l.origName="",l.origImgUrl="",l.origDynType=e.enums===String?"dyn_none":0,l.shareType="",l.shareScene="",l.isFastShare=!1,l.rType=0,r.Long){let t=new r.Long(0,0,!1);l.dynType=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.dynType=e.longs===String?"0":0;if(r.Long){let t=new r.Long(0,0,!1);l.uid=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.uid=e.longs===String?"0":0;l.cardUrl="",l.sourceContent=null,l.origFace="",l.reply=null}if(c.dynIdStr!=null&&c.hasOwnProperty("dynIdStr")&&(l.dynIdStr=c.dynIdStr),c.businessId!=null&&c.hasOwnProperty("businessId")&&(l.businessId=c.businessId),c.origDynIdStr!=null&&c.hasOwnProperty("origDynIdStr")&&(l.origDynIdStr=c.origDynIdStr),c.origName!=null&&c.hasOwnProperty("origName")&&(l.origName=c.origName),c.origImgUrl!=null&&c.hasOwnProperty("origImgUrl")&&(l.origImgUrl=c.origImgUrl),c.origDesc&&c.origDesc.length){l.origDesc=[];for(let t=0;t>>0,c.dynType.high>>>0).toNumber():c.dynType),c.uid!=null&&c.hasOwnProperty("uid")&&(typeof c.uid=="number"?l.uid=e.longs===String?String(c.uid):c.uid:l.uid=e.longs===String?r.Long.prototype.toString.call(c.uid):e.longs===Number?new r.LongBits(c.uid.low>>>0,c.uid.high>>>0).toNumber():c.uid),c.cardUrl!=null&&c.hasOwnProperty("cardUrl")&&(l.cardUrl=c.cardUrl),c.sourceContent!=null&&c.hasOwnProperty("sourceContent")&&(l.sourceContent=u.google.protobuf.Any.toObject(c.sourceContent,e)),c.origFace!=null&&c.hasOwnProperty("origFace")&&(l.origFace=c.origFace),c.reply!=null&&c.hasOwnProperty("reply")&&(l.reply=u.gateway.ExtendReply.toObject(c.reply,e)),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.Extend"},d}(),O.ExtendReply=function(){function d(p){if(this.params=[],p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.uri=c.string();break}case 2:{t.params&&t.params.length||(t.params=[]),t.params.push(u.gateway.ExtendReplyParam.decode(c,c.uint32()));break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.ExtendReply)return c;let e=new u.gateway.ExtendReply;if(c.uri!=null&&(e.uri=String(c.uri)),c.params){if(!Array.isArray(c.params))throw TypeError(".gateway.ExtendReply.params: array expected");e.params=[];for(let l=0;l>>3){case 1:{t.key=c.string();break}case 2:{t.value=c.string();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.ExtendReplyParam)return c;let e=new u.gateway.ExtendReplyParam;return c.key!=null&&(e.key=String(c.key)),c.value!=null&&(e.value=String(c.value)),e},d.toObject=function(c,e){e||(e={});let l={};return e.defaults&&(l.key="",l.value=""),c.key!=null&&c.hasOwnProperty("key")&&(l.key=c.key),c.value!=null&&c.hasOwnProperty("value")&&(l.value=c.value),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.ExtendReplyParam"},d}(),O.DynModuleType=function(){let d={},p=Object.create(d);return p[d[0]="module_none"]=0,p[d[1]="module_author"]=1,p[d[2]="module_dispute"]=2,p[d[3]="module_desc"]=3,p[d[4]="module_dynamic"]=4,p[d[5]="module_forward"]=5,p[d[6]="module_likeUser"]=6,p[d[7]="module_extend"]=7,p[d[8]="module_additional"]=8,p[d[9]="module_stat"]=9,p[d[10]="module_fold"]=10,p[d[11]="module_comment"]=11,p[d[12]="module_interaction"]=12,p[d[13]="module_author_forward"]=13,p[d[14]="module_ad"]=14,p[d[15]="module_banner"]=15,p[d[16]="module_item_null"]=16,p[d[19]="module_stat_forward"]=19,p[d[20]="module_top"]=20,p[d[21]="module_bottom"]=21,p}(),O.ModuleAuthorForward=function(){function d(p){if(this.title=[],this.tpList=[],p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.title&&t.title.length||(t.title=[]),t.title.push(u.gateway.ModuleAuthorForwardTitle.decode(c,c.uint32()));break}case 2:{t.url=c.string();break}case 3:{t.uid=c.int64();break}case 4:{t.ptimeLabelText=c.string();break}case 5:{t.showFollow=c.bool();break}case 6:{t.faceUrl=c.string();break}case 7:{t.relation=u.gateway.Relation.decode(c,c.uint32());break}case 8:{t.tpList&&t.tpList.length||(t.tpList=[]),t.tpList.push(u.gateway.ThreePointItem.decode(c,c.uint32()));break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.ModuleAuthorForward)return c;let e=new u.gateway.ModuleAuthorForward;if(c.title){if(!Array.isArray(c.title))throw TypeError(".gateway.ModuleAuthorForward.title: array expected");e.title=[];for(let l=0;l>>0,c.uid.high>>>0).toNumber())),c.ptimeLabelText!=null&&(e.ptimeLabelText=String(c.ptimeLabelText)),c.showFollow!=null&&(e.showFollow=!!c.showFollow),c.faceUrl!=null&&(e.faceUrl=String(c.faceUrl)),c.relation!=null){if(typeof c.relation!="object")throw TypeError(".gateway.ModuleAuthorForward.relation: object expected");e.relation=u.gateway.Relation.fromObject(c.relation)}if(c.tpList){if(!Array.isArray(c.tpList))throw TypeError(".gateway.ModuleAuthorForward.tpList: array expected");e.tpList=[];for(let l=0;l>>0,c.uid.high>>>0).toNumber():c.uid),c.ptimeLabelText!=null&&c.hasOwnProperty("ptimeLabelText")&&(l.ptimeLabelText=c.ptimeLabelText),c.showFollow!=null&&c.hasOwnProperty("showFollow")&&(l.showFollow=c.showFollow),c.faceUrl!=null&&c.hasOwnProperty("faceUrl")&&(l.faceUrl=c.faceUrl),c.relation!=null&&c.hasOwnProperty("relation")&&(l.relation=u.gateway.Relation.toObject(c.relation,e)),c.tpList&&c.tpList.length){l.tpList=[];for(let t=0;t>>3){case 1:{t.text=c.string();break}case 2:{t.url=c.string();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.ModuleAuthorForwardTitle)return c;let e=new u.gateway.ModuleAuthorForwardTitle;return c.text!=null&&(e.text=String(c.text)),c.url!=null&&(e.url=String(c.url)),e},d.toObject=function(c,e){e||(e={});let l={};return e.defaults&&(l.text="",l.url=""),c.text!=null&&c.hasOwnProperty("text")&&(l.text=c.text),c.url!=null&&c.hasOwnProperty("url")&&(l.url=c.url),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.ModuleAuthorForwardTitle"},d}(),O.ModuleAd=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.sourceContent=u.google.protobuf.Any.decode(c,c.uint32());break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.ModuleAd)return c;let e=new u.gateway.ModuleAd;if(c.sourceContent!=null){if(typeof c.sourceContent!="object")throw TypeError(".gateway.ModuleAd.sourceContent: object expected");e.sourceContent=u.google.protobuf.Any.fromObject(c.sourceContent)}return e},d.toObject=function(c,e){e||(e={});let l={};return e.defaults&&(l.sourceContent=null),c.sourceContent!=null&&c.hasOwnProperty("sourceContent")&&(l.sourceContent=u.google.protobuf.Any.toObject(c.sourceContent,e)),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.ModuleAd"},d}(),O.ModuleBanner=function(){function d(c){if(c)for(let e=Object.keys(c),l=0;l>>3){case 1:{i.title=e.string();break}case 2:{i.type=e.int32();break}case 3:{i.user=u.gateway.ModuleBannerUser.decode(e,e.uint32());break}case 4:{i.dislikeText=e.string();break}case 5:{i.dislikeIcon=e.string();break}default:e.skipType(n&7);break}}return i},d.fromObject=function(e){if(e instanceof u.gateway.ModuleBanner)return e;let l=new u.gateway.ModuleBanner;switch(e.title!=null&&(l.title=String(e.title)),e.type){default:if(typeof e.type=="number"){l.type=e.type;break}break;case"module_banner_type_none":case 0:l.type=0;break;case"module_banner_type_user":case 1:l.type=1;break}if(e.user!=null){if(typeof e.user!="object")throw TypeError(".gateway.ModuleBanner.user: object expected");l.user=u.gateway.ModuleBannerUser.fromObject(e.user)}return e.dislikeText!=null&&(l.dislikeText=String(e.dislikeText)),e.dislikeIcon!=null&&(l.dislikeIcon=String(e.dislikeIcon)),l},d.toObject=function(e,l){l||(l={});let t={};return l.defaults&&(t.title="",t.type=l.enums===String?"module_banner_type_none":0,t.dislikeText="",t.dislikeIcon=""),e.title!=null&&e.hasOwnProperty("title")&&(t.title=e.title),e.type!=null&&e.hasOwnProperty("type")&&(t.type=l.enums===String?u.gateway.ModuleBannerType[e.type]===void 0?e.type:u.gateway.ModuleBannerType[e.type]:e.type),e.user!=null&&e.hasOwnProperty("user")&&(t.user=u.gateway.ModuleBannerUser.toObject(e.user,l),l.oneofs&&(t.item="user")),e.dislikeText!=null&&e.hasOwnProperty("dislikeText")&&(t.dislikeText=e.dislikeText),e.dislikeIcon!=null&&e.hasOwnProperty("dislikeIcon")&&(t.dislikeIcon=e.dislikeIcon),t},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/gateway.ModuleBanner"},d}(),O.AdditionVote2=function(){function d(c){if(c)for(let e=Object.keys(c),l=0;l>>3){case 1:{i.additionVoteType=e.int32();break}case 2:{i.voteId=e.int64();break}case 3:{i.title=e.string();break}case 4:{i.label=e.string();break}case 5:{i.deadline=e.int64();break}case 6:{i.openText=e.string();break}case 7:{i.closeText=e.string();break}case 8:{i.votedText=e.string();break}case 9:{i.state=e.int32();break}case 10:{i.additionVoteWord=u.gateway.AdditionVoteWord.decode(e,e.uint32());break}case 11:{i.additionVotePic=u.gateway.AdditionVotePic.decode(e,e.uint32());break}case 12:{i.additionVoteDefaule=u.gateway.AdditionVoteDefaule.decode(e,e.uint32());break}case 13:{i.bizType=e.int32();break}case 14:{i.total=e.int64();break}case 15:{i.cardType=e.string();break}case 16:{i.tips=e.string();break}case 17:{i.uri=e.string();break}case 18:{i.isVoted=e.bool();break}case 19:{i.choiceCnt=e.int32();break}case 20:{i.defauleSelectShare=e.bool();break}default:e.skipType(n&7);break}}return i},d.fromObject=function(e){if(e instanceof u.gateway.AdditionVote2)return e;let l=new u.gateway.AdditionVote2;switch(e.additionVoteType){default:if(typeof e.additionVoteType=="number"){l.additionVoteType=e.additionVoteType;break}break;case"addition_vote_type_none":case 0:l.additionVoteType=0;break;case"addition_vote_type_word":case 1:l.additionVoteType=1;break;case"addition_vote_type_pic":case 2:l.additionVoteType=2;break;case"addition_vote_type_default":case 3:l.additionVoteType=3;break}switch(e.voteId!=null&&(r.Long?(l.voteId=r.Long.fromValue(e.voteId)).unsigned=!1:typeof e.voteId=="string"?l.voteId=parseInt(e.voteId,10):typeof e.voteId=="number"?l.voteId=e.voteId:typeof e.voteId=="object"&&(l.voteId=new r.LongBits(e.voteId.low>>>0,e.voteId.high>>>0).toNumber())),e.title!=null&&(l.title=String(e.title)),e.label!=null&&(l.label=String(e.label)),e.deadline!=null&&(r.Long?(l.deadline=r.Long.fromValue(e.deadline)).unsigned=!1:typeof e.deadline=="string"?l.deadline=parseInt(e.deadline,10):typeof e.deadline=="number"?l.deadline=e.deadline:typeof e.deadline=="object"&&(l.deadline=new r.LongBits(e.deadline.low>>>0,e.deadline.high>>>0).toNumber())),e.openText!=null&&(l.openText=String(e.openText)),e.closeText!=null&&(l.closeText=String(e.closeText)),e.votedText!=null&&(l.votedText=String(e.votedText)),e.state){default:if(typeof e.state=="number"){l.state=e.state;break}break;case"addition_vote_state_none":case 0:l.state=0;break;case"addition_vote_state_open":case 1:l.state=1;break;case"addition_vote_state_close":case 2:l.state=2;break}if(e.additionVoteWord!=null){if(typeof e.additionVoteWord!="object")throw TypeError(".gateway.AdditionVote2.additionVoteWord: object expected");l.additionVoteWord=u.gateway.AdditionVoteWord.fromObject(e.additionVoteWord)}if(e.additionVotePic!=null){if(typeof e.additionVotePic!="object")throw TypeError(".gateway.AdditionVote2.additionVotePic: object expected");l.additionVotePic=u.gateway.AdditionVotePic.fromObject(e.additionVotePic)}if(e.additionVoteDefaule!=null){if(typeof e.additionVoteDefaule!="object")throw TypeError(".gateway.AdditionVote2.additionVoteDefaule: object expected");l.additionVoteDefaule=u.gateway.AdditionVoteDefaule.fromObject(e.additionVoteDefaule)}return e.bizType!=null&&(l.bizType=e.bizType|0),e.total!=null&&(r.Long?(l.total=r.Long.fromValue(e.total)).unsigned=!1:typeof e.total=="string"?l.total=parseInt(e.total,10):typeof e.total=="number"?l.total=e.total:typeof e.total=="object"&&(l.total=new r.LongBits(e.total.low>>>0,e.total.high>>>0).toNumber())),e.cardType!=null&&(l.cardType=String(e.cardType)),e.tips!=null&&(l.tips=String(e.tips)),e.uri!=null&&(l.uri=String(e.uri)),e.isVoted!=null&&(l.isVoted=!!e.isVoted),e.choiceCnt!=null&&(l.choiceCnt=e.choiceCnt|0),e.defauleSelectShare!=null&&(l.defauleSelectShare=!!e.defauleSelectShare),l},d.toObject=function(e,l){l||(l={});let t={};if(l.defaults){if(t.additionVoteType=l.enums===String?"addition_vote_type_none":0,r.Long){let i=new r.Long(0,0,!1);t.voteId=l.longs===String?i.toString():l.longs===Number?i.toNumber():i}else t.voteId=l.longs===String?"0":0;if(t.title="",t.label="",r.Long){let i=new r.Long(0,0,!1);t.deadline=l.longs===String?i.toString():l.longs===Number?i.toNumber():i}else t.deadline=l.longs===String?"0":0;if(t.openText="",t.closeText="",t.votedText="",t.state=l.enums===String?"addition_vote_state_none":0,t.bizType=0,r.Long){let i=new r.Long(0,0,!1);t.total=l.longs===String?i.toString():l.longs===Number?i.toNumber():i}else t.total=l.longs===String?"0":0;t.cardType="",t.tips="",t.uri="",t.isVoted=!1,t.choiceCnt=0,t.defauleSelectShare=!1}return e.additionVoteType!=null&&e.hasOwnProperty("additionVoteType")&&(t.additionVoteType=l.enums===String?u.gateway.AdditionVoteType[e.additionVoteType]===void 0?e.additionVoteType:u.gateway.AdditionVoteType[e.additionVoteType]:e.additionVoteType),e.voteId!=null&&e.hasOwnProperty("voteId")&&(typeof e.voteId=="number"?t.voteId=l.longs===String?String(e.voteId):e.voteId:t.voteId=l.longs===String?r.Long.prototype.toString.call(e.voteId):l.longs===Number?new r.LongBits(e.voteId.low>>>0,e.voteId.high>>>0).toNumber():e.voteId),e.title!=null&&e.hasOwnProperty("title")&&(t.title=e.title),e.label!=null&&e.hasOwnProperty("label")&&(t.label=e.label),e.deadline!=null&&e.hasOwnProperty("deadline")&&(typeof e.deadline=="number"?t.deadline=l.longs===String?String(e.deadline):e.deadline:t.deadline=l.longs===String?r.Long.prototype.toString.call(e.deadline):l.longs===Number?new r.LongBits(e.deadline.low>>>0,e.deadline.high>>>0).toNumber():e.deadline),e.openText!=null&&e.hasOwnProperty("openText")&&(t.openText=e.openText),e.closeText!=null&&e.hasOwnProperty("closeText")&&(t.closeText=e.closeText),e.votedText!=null&&e.hasOwnProperty("votedText")&&(t.votedText=e.votedText),e.state!=null&&e.hasOwnProperty("state")&&(t.state=l.enums===String?u.gateway.AdditionVoteState[e.state]===void 0?e.state:u.gateway.AdditionVoteState[e.state]:e.state),e.additionVoteWord!=null&&e.hasOwnProperty("additionVoteWord")&&(t.additionVoteWord=u.gateway.AdditionVoteWord.toObject(e.additionVoteWord,l),l.oneofs&&(t.item="additionVoteWord")),e.additionVotePic!=null&&e.hasOwnProperty("additionVotePic")&&(t.additionVotePic=u.gateway.AdditionVotePic.toObject(e.additionVotePic,l),l.oneofs&&(t.item="additionVotePic")),e.additionVoteDefaule!=null&&e.hasOwnProperty("additionVoteDefaule")&&(t.additionVoteDefaule=u.gateway.AdditionVoteDefaule.toObject(e.additionVoteDefaule,l),l.oneofs&&(t.item="additionVoteDefaule")),e.bizType!=null&&e.hasOwnProperty("bizType")&&(t.bizType=e.bizType),e.total!=null&&e.hasOwnProperty("total")&&(typeof e.total=="number"?t.total=l.longs===String?String(e.total):e.total:t.total=l.longs===String?r.Long.prototype.toString.call(e.total):l.longs===Number?new r.LongBits(e.total.low>>>0,e.total.high>>>0).toNumber():e.total),e.cardType!=null&&e.hasOwnProperty("cardType")&&(t.cardType=e.cardType),e.tips!=null&&e.hasOwnProperty("tips")&&(t.tips=e.tips),e.uri!=null&&e.hasOwnProperty("uri")&&(t.uri=e.uri),e.isVoted!=null&&e.hasOwnProperty("isVoted")&&(t.isVoted=e.isVoted),e.choiceCnt!=null&&e.hasOwnProperty("choiceCnt")&&(t.choiceCnt=e.choiceCnt),e.defauleSelectShare!=null&&e.hasOwnProperty("defauleSelectShare")&&(t.defauleSelectShare=e.defauleSelectShare),t},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/gateway.AdditionVote2"},d}(),O.AdditionVoteType=function(){let d={},p=Object.create(d);return p[d[0]="addition_vote_type_none"]=0,p[d[1]="addition_vote_type_word"]=1,p[d[2]="addition_vote_type_pic"]=2,p[d[3]="addition_vote_type_default"]=3,p}(),O.AdditionVoteWord=function(){function d(p){if(this.item=[],p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.item&&t.item.length||(t.item=[]),t.item.push(u.gateway.AdditionVoteWordItem.decode(c,c.uint32()));break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.AdditionVoteWord)return c;let e=new u.gateway.AdditionVoteWord;if(c.item){if(!Array.isArray(c.item))throw TypeError(".gateway.AdditionVoteWord.item: array expected");e.item=[];for(let l=0;l>>3){case 1:{t.optIdx=c.int32();break}case 2:{t.title=c.string();break}case 3:{t.isVote=c.bool();break}case 4:{t.total=c.int32();break}case 5:{t.persent=c.double();break}case 6:{t.isMaxOption=c.bool();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.AdditionVoteWordItem)return c;let e=new u.gateway.AdditionVoteWordItem;return c.optIdx!=null&&(e.optIdx=c.optIdx|0),c.title!=null&&(e.title=String(c.title)),c.isVote!=null&&(e.isVote=!!c.isVote),c.total!=null&&(e.total=c.total|0),c.persent!=null&&(e.persent=Number(c.persent)),c.isMaxOption!=null&&(e.isMaxOption=!!c.isMaxOption),e},d.toObject=function(c,e){e||(e={});let l={};return e.defaults&&(l.optIdx=0,l.title="",l.isVote=!1,l.total=0,l.persent=0,l.isMaxOption=!1),c.optIdx!=null&&c.hasOwnProperty("optIdx")&&(l.optIdx=c.optIdx),c.title!=null&&c.hasOwnProperty("title")&&(l.title=c.title),c.isVote!=null&&c.hasOwnProperty("isVote")&&(l.isVote=c.isVote),c.total!=null&&c.hasOwnProperty("total")&&(l.total=c.total),c.persent!=null&&c.hasOwnProperty("persent")&&(l.persent=e.json&&!isFinite(c.persent)?String(c.persent):c.persent),c.isMaxOption!=null&&c.hasOwnProperty("isMaxOption")&&(l.isMaxOption=c.isMaxOption),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.AdditionVoteWordItem"},d}(),O.AdditionVotePic=function(){function d(p){if(this.item=[],p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.item&&t.item.length||(t.item=[]),t.item.push(u.gateway.AdditionVotePicItem.decode(c,c.uint32()));break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.AdditionVotePic)return c;let e=new u.gateway.AdditionVotePic;if(c.item){if(!Array.isArray(c.item))throw TypeError(".gateway.AdditionVotePic.item: array expected");e.item=[];for(let l=0;l>>3){case 1:{t.optIdx=c.int32();break}case 2:{t.cover=c.string();break}case 3:{t.isVote=c.bool();break}case 4:{t.total=c.int32();break}case 5:{t.persent=c.double();break}case 6:{t.title=c.string();break}case 7:{t.isMaxOption=c.bool();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.AdditionVotePicItem)return c;let e=new u.gateway.AdditionVotePicItem;return c.optIdx!=null&&(e.optIdx=c.optIdx|0),c.cover!=null&&(e.cover=String(c.cover)),c.isVote!=null&&(e.isVote=!!c.isVote),c.total!=null&&(e.total=c.total|0),c.persent!=null&&(e.persent=Number(c.persent)),c.title!=null&&(e.title=String(c.title)),c.isMaxOption!=null&&(e.isMaxOption=!!c.isMaxOption),e},d.toObject=function(c,e){e||(e={});let l={};return e.defaults&&(l.optIdx=0,l.cover="",l.isVote=!1,l.total=0,l.persent=0,l.title="",l.isMaxOption=!1),c.optIdx!=null&&c.hasOwnProperty("optIdx")&&(l.optIdx=c.optIdx),c.cover!=null&&c.hasOwnProperty("cover")&&(l.cover=c.cover),c.isVote!=null&&c.hasOwnProperty("isVote")&&(l.isVote=c.isVote),c.total!=null&&c.hasOwnProperty("total")&&(l.total=c.total),c.persent!=null&&c.hasOwnProperty("persent")&&(l.persent=e.json&&!isFinite(c.persent)?String(c.persent):c.persent),c.title!=null&&c.hasOwnProperty("title")&&(l.title=c.title),c.isMaxOption!=null&&c.hasOwnProperty("isMaxOption")&&(l.isMaxOption=c.isMaxOption),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.AdditionVotePicItem"},d}(),O.AdditionVoteDefaule=function(){function d(p){if(this.cover=[],p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.cover&&t.cover.length||(t.cover=[]),t.cover.push(c.string());break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.AdditionVoteDefaule)return c;let e=new u.gateway.AdditionVoteDefaule;if(c.cover){if(!Array.isArray(c.cover))throw TypeError(".gateway.AdditionVoteDefaule.cover: array expected");e.cover=[];for(let l=0;l>>3){case 1:{t.icon=c.string();break}case 2:{t.text=c.string();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.ModuleItemNull)return c;let e=new u.gateway.ModuleItemNull;return c.icon!=null&&(e.icon=String(c.icon)),c.text!=null&&(e.text=String(c.text)),e},d.toObject=function(c,e){e||(e={});let l={};return e.defaults&&(l.icon="",l.text=""),c.icon!=null&&c.hasOwnProperty("icon")&&(l.icon=c.icon),c.text!=null&&c.hasOwnProperty("text")&&(l.text=c.text),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.ModuleItemNull"},d}(),O.ModuleBannerUser=function(){function d(p){if(this.list=[],p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.list&&t.list.length||(t.list=[]),t.list.push(u.gateway.ModuleBannerUserItem.decode(c,c.uint32()));break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.ModuleBannerUser)return c;let e=new u.gateway.ModuleBannerUser;if(c.list){if(!Array.isArray(c.list))throw TypeError(".gateway.ModuleBannerUser.list: array expected");e.list=[];for(let l=0;l>>3){case 1:{t.face=c.string();break}case 2:{t.name=c.string();break}case 3:{t.uid=c.int64();break}case 4:{t.liveState=c.int32();break}case 5:{t.official=u.gateway.OfficialVerify.decode(c,c.uint32());break}case 6:{t.vip=u.gateway.VipInfo.decode(c,c.uint32());break}case 7:{t.label=c.string();break}case 8:{t.button=u.gateway.AdditionalButton.decode(c,c.uint32());break}case 9:{t.uri=c.string();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.ModuleBannerUserItem)return c;let e=new u.gateway.ModuleBannerUserItem;switch(c.face!=null&&(e.face=String(c.face)),c.name!=null&&(e.name=String(c.name)),c.uid!=null&&(r.Long?(e.uid=r.Long.fromValue(c.uid)).unsigned=!1:typeof c.uid=="string"?e.uid=parseInt(c.uid,10):typeof c.uid=="number"?e.uid=c.uid:typeof c.uid=="object"&&(e.uid=new r.LongBits(c.uid.low>>>0,c.uid.high>>>0).toNumber())),c.liveState){default:if(typeof c.liveState=="number"){e.liveState=c.liveState;break}break;case"live_none":case 0:e.liveState=0;break;case"live_live":case 1:e.liveState=1;break;case"live_rotation":case 2:e.liveState=2;break}if(c.official!=null){if(typeof c.official!="object")throw TypeError(".gateway.ModuleBannerUserItem.official: object expected");e.official=u.gateway.OfficialVerify.fromObject(c.official)}if(c.vip!=null){if(typeof c.vip!="object")throw TypeError(".gateway.ModuleBannerUserItem.vip: object expected");e.vip=u.gateway.VipInfo.fromObject(c.vip)}if(c.label!=null&&(e.label=String(c.label)),c.button!=null){if(typeof c.button!="object")throw TypeError(".gateway.ModuleBannerUserItem.button: object expected");e.button=u.gateway.AdditionalButton.fromObject(c.button)}return c.uri!=null&&(e.uri=String(c.uri)),e},d.toObject=function(c,e){e||(e={});let l={};if(e.defaults){if(l.face="",l.name="",r.Long){let t=new r.Long(0,0,!1);l.uid=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.uid=e.longs===String?"0":0;l.liveState=e.enums===String?"live_none":0,l.official=null,l.vip=null,l.label="",l.button=null,l.uri=""}return c.face!=null&&c.hasOwnProperty("face")&&(l.face=c.face),c.name!=null&&c.hasOwnProperty("name")&&(l.name=c.name),c.uid!=null&&c.hasOwnProperty("uid")&&(typeof c.uid=="number"?l.uid=e.longs===String?String(c.uid):c.uid:l.uid=e.longs===String?r.Long.prototype.toString.call(c.uid):e.longs===Number?new r.LongBits(c.uid.low>>>0,c.uid.high>>>0).toNumber():c.uid),c.liveState!=null&&c.hasOwnProperty("liveState")&&(l.liveState=e.enums===String?u.gateway.LiveState[c.liveState]===void 0?c.liveState:u.gateway.LiveState[c.liveState]:c.liveState),c.official!=null&&c.hasOwnProperty("official")&&(l.official=u.gateway.OfficialVerify.toObject(c.official,e)),c.vip!=null&&c.hasOwnProperty("vip")&&(l.vip=u.gateway.VipInfo.toObject(c.vip,e)),c.label!=null&&c.hasOwnProperty("label")&&(l.label=c.label),c.button!=null&&c.hasOwnProperty("button")&&(l.button=u.gateway.AdditionalButton.toObject(c.button,e)),c.uri!=null&&c.hasOwnProperty("uri")&&(l.uri=c.uri),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.ModuleBannerUserItem"},d}(),O.ModuleLikeUser=function(){function d(p){if(this.likeUsers=[],p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.likeUsers&&t.likeUsers.length||(t.likeUsers=[]),t.likeUsers.push(u.gateway.LikeUser.decode(c,c.uint32()));break}case 2:{t.displayText=c.string();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.ModuleLikeUser)return c;let e=new u.gateway.ModuleLikeUser;if(c.likeUsers){if(!Array.isArray(c.likeUsers))throw TypeError(".gateway.ModuleLikeUser.likeUsers: array expected");e.likeUsers=[];for(let l=0;l>>3){case 1:{t.uid=c.int64();break}case 2:{t.uname=c.string();break}case 3:{t.uri=c.string();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.LikeUser)return c;let e=new u.gateway.LikeUser;return c.uid!=null&&(r.Long?(e.uid=r.Long.fromValue(c.uid)).unsigned=!1:typeof c.uid=="string"?e.uid=parseInt(c.uid,10):typeof c.uid=="number"?e.uid=c.uid:typeof c.uid=="object"&&(e.uid=new r.LongBits(c.uid.low>>>0,c.uid.high>>>0).toNumber())),c.uname!=null&&(e.uname=String(c.uname)),c.uri!=null&&(e.uri=String(c.uri)),e},d.toObject=function(c,e){e||(e={});let l={};if(e.defaults){if(r.Long){let t=new r.Long(0,0,!1);l.uid=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.uid=e.longs===String?"0":0;l.uname="",l.uri=""}return c.uid!=null&&c.hasOwnProperty("uid")&&(typeof c.uid=="number"?l.uid=e.longs===String?String(c.uid):c.uid:l.uid=e.longs===String?r.Long.prototype.toString.call(c.uid):e.longs===Number?new r.LongBits(c.uid.low>>>0,c.uid.high>>>0).toNumber():c.uid),c.uname!=null&&c.hasOwnProperty("uname")&&(l.uname=c.uname),c.uri!=null&&c.hasOwnProperty("uri")&&(l.uri=c.uri),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.LikeUser"},d}(),O.LikeInfo=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.animation=u.gateway.LikeAnimation.decode(c,c.uint32());break}case 2:{t.isLike=c.bool();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.LikeInfo)return c;let e=new u.gateway.LikeInfo;if(c.animation!=null){if(typeof c.animation!="object")throw TypeError(".gateway.LikeInfo.animation: object expected");e.animation=u.gateway.LikeAnimation.fromObject(c.animation)}return c.isLike!=null&&(e.isLike=!!c.isLike),e},d.toObject=function(c,e){e||(e={});let l={};return e.defaults&&(l.animation=null,l.isLike=!1),c.animation!=null&&c.hasOwnProperty("animation")&&(l.animation=u.gateway.LikeAnimation.toObject(c.animation,e)),c.isLike!=null&&c.hasOwnProperty("isLike")&&(l.isLike=c.isLike),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.LikeInfo"},d}(),O.LikeAnimation=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.begin=c.string();break}case 2:{t.proc=c.string();break}case 3:{t.end=c.string();break}case 4:{t.likeIconId=c.int64();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.LikeAnimation)return c;let e=new u.gateway.LikeAnimation;return c.begin!=null&&(e.begin=String(c.begin)),c.proc!=null&&(e.proc=String(c.proc)),c.end!=null&&(e.end=String(c.end)),c.likeIconId!=null&&(r.Long?(e.likeIconId=r.Long.fromValue(c.likeIconId)).unsigned=!1:typeof c.likeIconId=="string"?e.likeIconId=parseInt(c.likeIconId,10):typeof c.likeIconId=="number"?e.likeIconId=c.likeIconId:typeof c.likeIconId=="object"&&(e.likeIconId=new r.LongBits(c.likeIconId.low>>>0,c.likeIconId.high>>>0).toNumber())),e},d.toObject=function(c,e){e||(e={});let l={};if(e.defaults)if(l.begin="",l.proc="",l.end="",r.Long){let t=new r.Long(0,0,!1);l.likeIconId=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.likeIconId=e.longs===String?"0":0;return c.begin!=null&&c.hasOwnProperty("begin")&&(l.begin=c.begin),c.proc!=null&&c.hasOwnProperty("proc")&&(l.proc=c.proc),c.end!=null&&c.hasOwnProperty("end")&&(l.end=c.end),c.likeIconId!=null&&c.hasOwnProperty("likeIconId")&&(typeof c.likeIconId=="number"?l.likeIconId=e.longs===String?String(c.likeIconId):c.likeIconId:l.likeIconId=e.longs===String?r.Long.prototype.toString.call(c.likeIconId):e.longs===Number?new r.LongBits(c.likeIconId.low>>>0,c.likeIconId.high>>>0).toNumber():c.likeIconId),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.LikeAnimation"},d}(),O.ModuleAuthorBadgeType=function(){let d={},p=Object.create(d);return p[d[0]="module_author_badge_type_none"]=0,p[d[1]="module_author_badge_type_threePoint"]=1,p[d[2]="module_author_badge_type_button"]=2,p[d[3]="module_author_badge_type_weight"]=3,p}(),O.ThreePointItem=function(){function d(c){if(c)for(let e=Object.keys(c),l=0;l>>3){case 1:{i.type=e.int32();break}case 2:{i.default=u.gateway.ThreePointDefault.decode(e,e.uint32());break}case 3:{i.autoPlayer=u.gateway.ThreePointAutoPlay.decode(e,e.uint32());break}case 4:{i.share=u.gateway.ThreePointShare.decode(e,e.uint32());break}case 5:{i.attention=u.gateway.ThreePointAttention.decode(e,e.uint32());break}case 6:{i.wait=u.gateway.ThreePointWait.decode(e,e.uint32());break}case 7:{i.dislike=u.gateway.ThreePointDislike.decode(e,e.uint32());break}case 8:{i.favorite=u.gateway.ThreePointFavorite.decode(e,e.uint32());break}default:e.skipType(n&7);break}}return i},d.fromObject=function(e){if(e instanceof u.gateway.ThreePointItem)return e;let l=new u.gateway.ThreePointItem;switch(e.type){default:if(typeof e.type=="number"){l.type=e.type;break}break;case"tp_none":case 0:l.type=0;break;case"background":case 1:l.type=1;break;case"auto_play":case 2:l.type=2;break;case"share":case 3:l.type=3;break;case"wait":case 4:l.type=4;break;case"attention":case 5:l.type=5;break;case"report":case 6:l.type=6;break;case"delete":case 7:l.type=7;break;case"dislike":case 8:l.type=8;break;case"favorite":case 9:l.type=9;break}if(e.default!=null){if(typeof e.default!="object")throw TypeError(".gateway.ThreePointItem.default: object expected");l.default=u.gateway.ThreePointDefault.fromObject(e.default)}if(e.autoPlayer!=null){if(typeof e.autoPlayer!="object")throw TypeError(".gateway.ThreePointItem.autoPlayer: object expected");l.autoPlayer=u.gateway.ThreePointAutoPlay.fromObject(e.autoPlayer)}if(e.share!=null){if(typeof e.share!="object")throw TypeError(".gateway.ThreePointItem.share: object expected");l.share=u.gateway.ThreePointShare.fromObject(e.share)}if(e.attention!=null){if(typeof e.attention!="object")throw TypeError(".gateway.ThreePointItem.attention: object expected");l.attention=u.gateway.ThreePointAttention.fromObject(e.attention)}if(e.wait!=null){if(typeof e.wait!="object")throw TypeError(".gateway.ThreePointItem.wait: object expected");l.wait=u.gateway.ThreePointWait.fromObject(e.wait)}if(e.dislike!=null){if(typeof e.dislike!="object")throw TypeError(".gateway.ThreePointItem.dislike: object expected");l.dislike=u.gateway.ThreePointDislike.fromObject(e.dislike)}if(e.favorite!=null){if(typeof e.favorite!="object")throw TypeError(".gateway.ThreePointItem.favorite: object expected");l.favorite=u.gateway.ThreePointFavorite.fromObject(e.favorite)}return l},d.toObject=function(e,l){l||(l={});let t={};return l.defaults&&(t.type=l.enums===String?"tp_none":0),e.type!=null&&e.hasOwnProperty("type")&&(t.type=l.enums===String?u.gateway.ThreePointType[e.type]===void 0?e.type:u.gateway.ThreePointType[e.type]:e.type),e.default!=null&&e.hasOwnProperty("default")&&(t.default=u.gateway.ThreePointDefault.toObject(e.default,l),l.oneofs&&(t.item="default")),e.autoPlayer!=null&&e.hasOwnProperty("autoPlayer")&&(t.autoPlayer=u.gateway.ThreePointAutoPlay.toObject(e.autoPlayer,l),l.oneofs&&(t.item="autoPlayer")),e.share!=null&&e.hasOwnProperty("share")&&(t.share=u.gateway.ThreePointShare.toObject(e.share,l),l.oneofs&&(t.item="share")),e.attention!=null&&e.hasOwnProperty("attention")&&(t.attention=u.gateway.ThreePointAttention.toObject(e.attention,l),l.oneofs&&(t.item="attention")),e.wait!=null&&e.hasOwnProperty("wait")&&(t.wait=u.gateway.ThreePointWait.toObject(e.wait,l),l.oneofs&&(t.item="wait")),e.dislike!=null&&e.hasOwnProperty("dislike")&&(t.dislike=u.gateway.ThreePointDislike.toObject(e.dislike,l),l.oneofs&&(t.item="dislike")),e.favorite!=null&&e.hasOwnProperty("favorite")&&(t.favorite=u.gateway.ThreePointFavorite.toObject(e.favorite,l),l.oneofs&&(t.item="favorite")),t},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/gateway.ThreePointItem"},d}(),O.ThreePointType=function(){let d={},p=Object.create(d);return p[d[0]="tp_none"]=0,p[d[1]="background"]=1,p[d[2]="auto_play"]=2,p[d[3]="share"]=3,p[d[4]="wait"]=4,p[d[5]="attention"]=5,p[d[6]="report"]=6,p[d[7]="delete"]=7,p[d[8]="dislike"]=8,p[d[9]="favorite"]=9,p}(),O.ModuleAuthorBadgeButton=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.icon=c.string();break}case 2:{t.title=c.string();break}case 3:{t.state=c.int32();break}case 4:{t.id=c.int64();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.ModuleAuthorBadgeButton)return c;let e=new u.gateway.ModuleAuthorBadgeButton;return c.icon!=null&&(e.icon=String(c.icon)),c.title!=null&&(e.title=String(c.title)),c.state!=null&&(e.state=c.state|0),c.id!=null&&(r.Long?(e.id=r.Long.fromValue(c.id)).unsigned=!1:typeof c.id=="string"?e.id=parseInt(c.id,10):typeof c.id=="number"?e.id=c.id:typeof c.id=="object"&&(e.id=new r.LongBits(c.id.low>>>0,c.id.high>>>0).toNumber())),e},d.toObject=function(c,e){e||(e={});let l={};if(e.defaults)if(l.icon="",l.title="",l.state=0,r.Long){let t=new r.Long(0,0,!1);l.id=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.id=e.longs===String?"0":0;return c.icon!=null&&c.hasOwnProperty("icon")&&(l.icon=c.icon),c.title!=null&&c.hasOwnProperty("title")&&(l.title=c.title),c.state!=null&&c.hasOwnProperty("state")&&(l.state=c.state),c.id!=null&&c.hasOwnProperty("id")&&(typeof c.id=="number"?l.id=e.longs===String?String(c.id):c.id:l.id=e.longs===String?r.Long.prototype.toString.call(c.id):e.longs===Number?new r.LongBits(c.id.low>>>0,c.id.high>>>0).toNumber():c.id),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.ModuleAuthorBadgeButton"},d}(),O.ThreePointDefault=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.icon=c.string();break}case 2:{t.title=c.string();break}case 3:{t.uri=c.string();break}case 4:{t.id=c.string();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.ThreePointDefault)return c;let e=new u.gateway.ThreePointDefault;return c.icon!=null&&(e.icon=String(c.icon)),c.title!=null&&(e.title=String(c.title)),c.uri!=null&&(e.uri=String(c.uri)),c.id!=null&&(e.id=String(c.id)),e},d.toObject=function(c,e){e||(e={});let l={};return e.defaults&&(l.icon="",l.title="",l.uri="",l.id=""),c.icon!=null&&c.hasOwnProperty("icon")&&(l.icon=c.icon),c.title!=null&&c.hasOwnProperty("title")&&(l.title=c.title),c.uri!=null&&c.hasOwnProperty("uri")&&(l.uri=c.uri),c.id!=null&&c.hasOwnProperty("id")&&(l.id=c.id),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.ThreePointDefault"},d}(),O.ThreePointAutoPlay=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.openIcon=c.string();break}case 2:{t.openText=c.string();break}case 3:{t.closeIcon=c.string();break}case 4:{t.closeText=c.string();break}case 5:{t.openTextV2=c.string();break}case 6:{t.closeTextV2=c.string();break}case 7:{t.onlyIcon=c.string();break}case 8:{t.onlyText=c.string();break}case 9:{t.openIconV2=c.string();break}case 10:{t.closeIconV2=c.string();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.ThreePointAutoPlay)return c;let e=new u.gateway.ThreePointAutoPlay;return c.openIcon!=null&&(e.openIcon=String(c.openIcon)),c.openText!=null&&(e.openText=String(c.openText)),c.closeIcon!=null&&(e.closeIcon=String(c.closeIcon)),c.closeText!=null&&(e.closeText=String(c.closeText)),c.openTextV2!=null&&(e.openTextV2=String(c.openTextV2)),c.closeTextV2!=null&&(e.closeTextV2=String(c.closeTextV2)),c.onlyIcon!=null&&(e.onlyIcon=String(c.onlyIcon)),c.onlyText!=null&&(e.onlyText=String(c.onlyText)),c.openIconV2!=null&&(e.openIconV2=String(c.openIconV2)),c.closeIconV2!=null&&(e.closeIconV2=String(c.closeIconV2)),e},d.toObject=function(c,e){e||(e={});let l={};return e.defaults&&(l.openIcon="",l.openText="",l.closeIcon="",l.closeText="",l.openTextV2="",l.closeTextV2="",l.onlyIcon="",l.onlyText="",l.openIconV2="",l.closeIconV2=""),c.openIcon!=null&&c.hasOwnProperty("openIcon")&&(l.openIcon=c.openIcon),c.openText!=null&&c.hasOwnProperty("openText")&&(l.openText=c.openText),c.closeIcon!=null&&c.hasOwnProperty("closeIcon")&&(l.closeIcon=c.closeIcon),c.closeText!=null&&c.hasOwnProperty("closeText")&&(l.closeText=c.closeText),c.openTextV2!=null&&c.hasOwnProperty("openTextV2")&&(l.openTextV2=c.openTextV2),c.closeTextV2!=null&&c.hasOwnProperty("closeTextV2")&&(l.closeTextV2=c.closeTextV2),c.onlyIcon!=null&&c.hasOwnProperty("onlyIcon")&&(l.onlyIcon=c.onlyIcon),c.onlyText!=null&&c.hasOwnProperty("onlyText")&&(l.onlyText=c.onlyText),c.openIconV2!=null&&c.hasOwnProperty("openIconV2")&&(l.openIconV2=c.openIconV2),c.closeIconV2!=null&&c.hasOwnProperty("closeIconV2")&&(l.closeIconV2=c.closeIconV2),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.ThreePointAutoPlay"},d}(),O.ThreePointShare=function(){function d(p){if(this.channel=[],p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.icon=c.string();break}case 2:{t.title=c.string();break}case 3:{t.channel&&t.channel.length||(t.channel=[]),t.channel.push(u.gateway.ThreePointShareChannel.decode(c,c.uint32()));break}case 4:{t.channelName=c.string();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.ThreePointShare)return c;let e=new u.gateway.ThreePointShare;if(c.icon!=null&&(e.icon=String(c.icon)),c.title!=null&&(e.title=String(c.title)),c.channel){if(!Array.isArray(c.channel))throw TypeError(".gateway.ThreePointShare.channel: array expected");e.channel=[];for(let l=0;l>>3){case 1:{t.icon=c.string();break}case 2:{t.title=c.string();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.ThreePointShareChannel)return c;let e=new u.gateway.ThreePointShareChannel;return c.icon!=null&&(e.icon=String(c.icon)),c.title!=null&&(e.title=String(c.title)),e},d.toObject=function(c,e){e||(e={});let l={};return e.defaults&&(l.icon="",l.title=""),c.icon!=null&&c.hasOwnProperty("icon")&&(l.icon=c.icon),c.title!=null&&c.hasOwnProperty("title")&&(l.title=c.title),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.ThreePointShareChannel"},d}(),O.ThreePointAttention=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.attentionIcon=c.string();break}case 2:{t.attentionText=c.string();break}case 3:{t.notAttentionIcon=c.string();break}case 4:{t.notAttentionText=c.string();break}case 5:{t.status=c.int32();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.ThreePointAttention)return c;let e=new u.gateway.ThreePointAttention;switch(c.attentionIcon!=null&&(e.attentionIcon=String(c.attentionIcon)),c.attentionText!=null&&(e.attentionText=String(c.attentionText)),c.notAttentionIcon!=null&&(e.notAttentionIcon=String(c.notAttentionIcon)),c.notAttentionText!=null&&(e.notAttentionText=String(c.notAttentionText)),c.status){default:if(typeof c.status=="number"){e.status=c.status;break}break;case"tp_not_attention":case 0:e.status=0;break;case"tp_attention":case 1:e.status=1;break}return e},d.toObject=function(c,e){e||(e={});let l={};return e.defaults&&(l.attentionIcon="",l.attentionText="",l.notAttentionIcon="",l.notAttentionText="",l.status=e.enums===String?"tp_not_attention":0),c.attentionIcon!=null&&c.hasOwnProperty("attentionIcon")&&(l.attentionIcon=c.attentionIcon),c.attentionText!=null&&c.hasOwnProperty("attentionText")&&(l.attentionText=c.attentionText),c.notAttentionIcon!=null&&c.hasOwnProperty("notAttentionIcon")&&(l.notAttentionIcon=c.notAttentionIcon),c.notAttentionText!=null&&c.hasOwnProperty("notAttentionText")&&(l.notAttentionText=c.notAttentionText),c.status!=null&&c.hasOwnProperty("status")&&(l.status=e.enums===String?u.gateway.ThreePointAttentionStatus[c.status]===void 0?c.status:u.gateway.ThreePointAttentionStatus[c.status]:c.status),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.ThreePointAttention"},d}(),O.ThreePointAttentionStatus=function(){let d={},p=Object.create(d);return p[d[0]="tp_not_attention"]=0,p[d[1]="tp_attention"]=1,p}(),O.ThreePointWait=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.additionIcon=c.string();break}case 2:{t.additionText=c.string();break}case 3:{t.noAdditionIcon=c.string();break}case 4:{t.noAdditionText=c.string();break}case 5:{t.id=c.int64();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.ThreePointWait)return c;let e=new u.gateway.ThreePointWait;return c.additionIcon!=null&&(e.additionIcon=String(c.additionIcon)),c.additionText!=null&&(e.additionText=String(c.additionText)),c.noAdditionIcon!=null&&(e.noAdditionIcon=String(c.noAdditionIcon)),c.noAdditionText!=null&&(e.noAdditionText=String(c.noAdditionText)),c.id!=null&&(r.Long?(e.id=r.Long.fromValue(c.id)).unsigned=!1:typeof c.id=="string"?e.id=parseInt(c.id,10):typeof c.id=="number"?e.id=c.id:typeof c.id=="object"&&(e.id=new r.LongBits(c.id.low>>>0,c.id.high>>>0).toNumber())),e},d.toObject=function(c,e){e||(e={});let l={};if(e.defaults)if(l.additionIcon="",l.additionText="",l.noAdditionIcon="",l.noAdditionText="",r.Long){let t=new r.Long(0,0,!1);l.id=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.id=e.longs===String?"0":0;return c.additionIcon!=null&&c.hasOwnProperty("additionIcon")&&(l.additionIcon=c.additionIcon),c.additionText!=null&&c.hasOwnProperty("additionText")&&(l.additionText=c.additionText),c.noAdditionIcon!=null&&c.hasOwnProperty("noAdditionIcon")&&(l.noAdditionIcon=c.noAdditionIcon),c.noAdditionText!=null&&c.hasOwnProperty("noAdditionText")&&(l.noAdditionText=c.noAdditionText),c.id!=null&&c.hasOwnProperty("id")&&(typeof c.id=="number"?l.id=e.longs===String?String(c.id):c.id:l.id=e.longs===String?r.Long.prototype.toString.call(c.id):e.longs===Number?new r.LongBits(c.id.low>>>0,c.id.high>>>0).toNumber():c.id),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.ThreePointWait"},d}(),O.ThreePointDislike=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.icon=c.string();break}case 2:{t.title=c.string();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.ThreePointDislike)return c;let e=new u.gateway.ThreePointDislike;return c.icon!=null&&(e.icon=String(c.icon)),c.title!=null&&(e.title=String(c.title)),e},d.toObject=function(c,e){e||(e={});let l={};return e.defaults&&(l.icon="",l.title=""),c.icon!=null&&c.hasOwnProperty("icon")&&(l.icon=c.icon),c.title!=null&&c.hasOwnProperty("title")&&(l.title=c.title),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.ThreePointDislike"},d}(),O.ThreePointFavorite=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.icon=c.string();break}case 2:{t.title=c.string();break}case 3:{t.id=c.int64();break}case 4:{t.isFavourite=c.bool();break}case 5:{t.cancelIcon=c.string();break}case 6:{t.cancelTitle=c.string();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.ThreePointFavorite)return c;let e=new u.gateway.ThreePointFavorite;return c.icon!=null&&(e.icon=String(c.icon)),c.title!=null&&(e.title=String(c.title)),c.id!=null&&(r.Long?(e.id=r.Long.fromValue(c.id)).unsigned=!1:typeof c.id=="string"?e.id=parseInt(c.id,10):typeof c.id=="number"?e.id=c.id:typeof c.id=="object"&&(e.id=new r.LongBits(c.id.low>>>0,c.id.high>>>0).toNumber())),c.isFavourite!=null&&(e.isFavourite=!!c.isFavourite),c.cancelIcon!=null&&(e.cancelIcon=String(c.cancelIcon)),c.cancelTitle!=null&&(e.cancelTitle=String(c.cancelTitle)),e},d.toObject=function(c,e){e||(e={});let l={};if(e.defaults){if(l.icon="",l.title="",r.Long){let t=new r.Long(0,0,!1);l.id=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.id=e.longs===String?"0":0;l.isFavourite=!1,l.cancelIcon="",l.cancelTitle=""}return c.icon!=null&&c.hasOwnProperty("icon")&&(l.icon=c.icon),c.title!=null&&c.hasOwnProperty("title")&&(l.title=c.title),c.id!=null&&c.hasOwnProperty("id")&&(typeof c.id=="number"?l.id=e.longs===String?String(c.id):c.id:l.id=e.longs===String?r.Long.prototype.toString.call(c.id):e.longs===Number?new r.LongBits(c.id.low>>>0,c.id.high>>>0).toNumber():c.id),c.isFavourite!=null&&c.hasOwnProperty("isFavourite")&&(l.isFavourite=c.isFavourite),c.cancelIcon!=null&&c.hasOwnProperty("cancelIcon")&&(l.cancelIcon=c.cancelIcon),c.cancelTitle!=null&&c.hasOwnProperty("cancelTitle")&&(l.cancelTitle=c.cancelTitle),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.ThreePointFavorite"},d}(),O.Weight=function(){function d(p){if(this.items=[],p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.title=c.string();break}case 2:{t.items&&t.items.length||(t.items=[]),t.items.push(u.gateway.WeightItem.decode(c,c.uint32()));break}case 3:{t.icon=c.string();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.Weight)return c;let e=new u.gateway.Weight;if(c.title!=null&&(e.title=String(c.title)),c.items){if(!Array.isArray(c.items))throw TypeError(".gateway.Weight.items: array expected");e.items=[];for(let l=0;l>>3){case 1:{i.type=e.int32();break}case 2:{i.button=u.gateway.WeightButton.decode(e,e.uint32());break}case 3:{i.dislike=u.gateway.WeightDislike.decode(e,e.uint32());break}default:e.skipType(n&7);break}}return i},d.fromObject=function(e){if(e instanceof u.gateway.WeightItem)return e;let l=new u.gateway.WeightItem;switch(e.type){default:if(typeof e.type=="number"){l.type=e.type;break}break;case"weight_none":case 0:l.type=0;break;case"weight_dislike":case 1:l.type=1;break;case"weight_jump":case 2:l.type=2;break}if(e.button!=null){if(typeof e.button!="object")throw TypeError(".gateway.WeightItem.button: object expected");l.button=u.gateway.WeightButton.fromObject(e.button)}if(e.dislike!=null){if(typeof e.dislike!="object")throw TypeError(".gateway.WeightItem.dislike: object expected");l.dislike=u.gateway.WeightDislike.fromObject(e.dislike)}return l},d.toObject=function(e,l){l||(l={});let t={};return l.defaults&&(t.type=l.enums===String?"weight_none":0),e.type!=null&&e.hasOwnProperty("type")&&(t.type=l.enums===String?u.gateway.WeightType[e.type]===void 0?e.type:u.gateway.WeightType[e.type]:e.type),e.button!=null&&e.hasOwnProperty("button")&&(t.button=u.gateway.WeightButton.toObject(e.button,l),l.oneofs&&(t.item="button")),e.dislike!=null&&e.hasOwnProperty("dislike")&&(t.dislike=u.gateway.WeightDislike.toObject(e.dislike,l),l.oneofs&&(t.item="dislike")),t},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/gateway.WeightItem"},d}(),O.WeightType=function(){let d={},p=Object.create(d);return p[d[0]="weight_none"]=0,p[d[1]="weight_dislike"]=1,p[d[2]="weight_jump"]=2,p}(),O.WeightDislike=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.feedBackType=c.string();break}case 2:{t.title=c.string();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.WeightDislike)return c;let e=new u.gateway.WeightDislike;return c.feedBackType!=null&&(e.feedBackType=String(c.feedBackType)),c.title!=null&&(e.title=String(c.title)),e},d.toObject=function(c,e){e||(e={});let l={};return e.defaults&&(l.feedBackType="",l.title=""),c.feedBackType!=null&&c.hasOwnProperty("feedBackType")&&(l.feedBackType=c.feedBackType),c.title!=null&&c.hasOwnProperty("title")&&(l.title=c.title),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.WeightDislike"},d}(),O.WeightButton=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.jumpUrl=c.string();break}case 2:{t.title=c.string();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.WeightButton)return c;let e=new u.gateway.WeightButton;return c.jumpUrl!=null&&(e.jumpUrl=String(c.jumpUrl)),c.title!=null&&(e.title=String(c.title)),e},d.toObject=function(c,e){e||(e={});let l={};return e.defaults&&(l.jumpUrl="",l.title=""),c.jumpUrl!=null&&c.hasOwnProperty("jumpUrl")&&(l.jumpUrl=c.jumpUrl),c.title!=null&&c.hasOwnProperty("title")&&(l.title=c.title),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.WeightButton"},d}(),O.ModuleComment=function(){function d(p){if(this.cmtShowItem=[],p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.cmtShowItem&&t.cmtShowItem.length||(t.cmtShowItem=[]),t.cmtShowItem.push(u.gateway.CmtShowItem.decode(c,c.uint32()));break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.ModuleComment)return c;let e=new u.gateway.ModuleComment;if(c.cmtShowItem){if(!Array.isArray(c.cmtShowItem))throw TypeError(".gateway.ModuleComment.cmtShowItem: array expected");e.cmtShowItem=[];for(let l=0;l>>3){case 1:{t.uid=c.int64();break}case 2:{t.uname=c.string();break}case 3:{t.uri=c.string();break}case 4:{t.comment=c.string();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.CmtShowItem)return c;let e=new u.gateway.CmtShowItem;return c.uid!=null&&(r.Long?(e.uid=r.Long.fromValue(c.uid)).unsigned=!1:typeof c.uid=="string"?e.uid=parseInt(c.uid,10):typeof c.uid=="number"?e.uid=c.uid:typeof c.uid=="object"&&(e.uid=new r.LongBits(c.uid.low>>>0,c.uid.high>>>0).toNumber())),c.uname!=null&&(e.uname=String(c.uname)),c.uri!=null&&(e.uri=String(c.uri)),c.comment!=null&&(e.comment=String(c.comment)),e},d.toObject=function(c,e){e||(e={});let l={};if(e.defaults){if(r.Long){let t=new r.Long(0,0,!1);l.uid=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.uid=e.longs===String?"0":0;l.uname="",l.uri="",l.comment=""}return c.uid!=null&&c.hasOwnProperty("uid")&&(typeof c.uid=="number"?l.uid=e.longs===String?String(c.uid):c.uid:l.uid=e.longs===String?r.Long.prototype.toString.call(c.uid):e.longs===Number?new r.LongBits(c.uid.low>>>0,c.uid.high>>>0).toNumber():c.uid),c.uname!=null&&c.hasOwnProperty("uname")&&(l.uname=c.uname),c.uri!=null&&c.hasOwnProperty("uri")&&(l.uri=c.uri),c.comment!=null&&c.hasOwnProperty("comment")&&(l.comment=c.comment),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.CmtShowItem"},d}(),O.DynAdditionCommonFollowReq=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.status=c.int32();break}case 2:{t.dynId=c.string();break}case 3:{t.cardType=c.string();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.DynAdditionCommonFollowReq)return c;let e=new u.gateway.DynAdditionCommonFollowReq;switch(c.status){default:if(typeof c.status=="number"){e.status=c.status;break}break;case"none":case 0:e.status=0;break;case"uncheck":case 1:e.status=1;break;case"check":case 2:e.status=2;break}return c.dynId!=null&&(e.dynId=String(c.dynId)),c.cardType!=null&&(e.cardType=String(c.cardType)),e},d.toObject=function(c,e){e||(e={});let l={};return e.defaults&&(l.status=e.enums===String?"none":0,l.dynId="",l.cardType=""),c.status!=null&&c.hasOwnProperty("status")&&(l.status=e.enums===String?u.gateway.AdditionalButtonStatus[c.status]===void 0?c.status:u.gateway.AdditionalButtonStatus[c.status]:c.status),c.dynId!=null&&c.hasOwnProperty("dynId")&&(l.dynId=c.dynId),c.cardType!=null&&c.hasOwnProperty("cardType")&&(l.cardType=c.cardType),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.DynAdditionCommonFollowReq"},d}(),O.FollowType=function(){let d={},p=Object.create(d);return p[d[0]="ft_not_follow"]=0,p[d[1]="ft_follow"]=1,p}(),O.DynAdditionCommonFollowReply=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.status=c.int32();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.DynAdditionCommonFollowReply)return c;let e=new u.gateway.DynAdditionCommonFollowReply;switch(c.status){default:if(typeof c.status=="number"){e.status=c.status;break}break;case"none":case 0:e.status=0;break;case"uncheck":case 1:e.status=1;break;case"check":case 2:e.status=2;break}return e},d.toObject=function(c,e){e||(e={});let l={};return e.defaults&&(l.status=e.enums===String?"none":0),c.status!=null&&c.hasOwnProperty("status")&&(l.status=e.enums===String?u.gateway.AdditionalButtonStatus[c.status]===void 0?c.status:u.gateway.AdditionalButtonStatus[c.status]:c.status),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.DynAdditionCommonFollowReply"},d}(),O.DynThumbReq=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.uid=c.int64();break}case 2:{t.dynId=c.string();break}case 3:{t.dynType=c.int64();break}case 4:{t.rid=c.string();break}case 5:{t.type=c.int32();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.DynThumbReq)return c;let e=new u.gateway.DynThumbReq;switch(c.uid!=null&&(r.Long?(e.uid=r.Long.fromValue(c.uid)).unsigned=!1:typeof c.uid=="string"?e.uid=parseInt(c.uid,10):typeof c.uid=="number"?e.uid=c.uid:typeof c.uid=="object"&&(e.uid=new r.LongBits(c.uid.low>>>0,c.uid.high>>>0).toNumber())),c.dynId!=null&&(e.dynId=String(c.dynId)),c.dynType!=null&&(r.Long?(e.dynType=r.Long.fromValue(c.dynType)).unsigned=!1:typeof c.dynType=="string"?e.dynType=parseInt(c.dynType,10):typeof c.dynType=="number"?e.dynType=c.dynType:typeof c.dynType=="object"&&(e.dynType=new r.LongBits(c.dynType.low>>>0,c.dynType.high>>>0).toNumber())),c.rid!=null&&(e.rid=String(c.rid)),c.type){default:if(typeof c.type=="number"){e.type=c.type;break}break;case"cancel":case 0:e.type=0;break;case"thumb":case 1:e.type=1;break}return e},d.toObject=function(c,e){e||(e={});let l={};if(e.defaults){if(r.Long){let t=new r.Long(0,0,!1);l.uid=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.uid=e.longs===String?"0":0;if(l.dynId="",r.Long){let t=new r.Long(0,0,!1);l.dynType=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.dynType=e.longs===String?"0":0;l.rid="",l.type=e.enums===String?"cancel":0}return c.uid!=null&&c.hasOwnProperty("uid")&&(typeof c.uid=="number"?l.uid=e.longs===String?String(c.uid):c.uid:l.uid=e.longs===String?r.Long.prototype.toString.call(c.uid):e.longs===Number?new r.LongBits(c.uid.low>>>0,c.uid.high>>>0).toNumber():c.uid),c.dynId!=null&&c.hasOwnProperty("dynId")&&(l.dynId=c.dynId),c.dynType!=null&&c.hasOwnProperty("dynType")&&(typeof c.dynType=="number"?l.dynType=e.longs===String?String(c.dynType):c.dynType:l.dynType=e.longs===String?r.Long.prototype.toString.call(c.dynType):e.longs===Number?new r.LongBits(c.dynType.low>>>0,c.dynType.high>>>0).toNumber():c.dynType),c.rid!=null&&c.hasOwnProperty("rid")&&(l.rid=c.rid),c.type!=null&&c.hasOwnProperty("type")&&(l.type=e.enums===String?u.gateway.ThumbType[c.type]===void 0?c.type:u.gateway.ThumbType[c.type]:c.type),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.DynThumbReq"},d}(),O.ThumbType=function(){let d={},p=Object.create(d);return p[d[0]="cancel"]=0,p[d[1]="thumb"]=1,p}(),O.DynFakeCardReq=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.content=c.string();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.DynFakeCardReq)return c;let e=new u.gateway.DynFakeCardReq;return c.content!=null&&(e.content=String(c.content)),e},d.toObject=function(c,e){e||(e={});let l={};return e.defaults&&(l.content=""),c.content!=null&&c.hasOwnProperty("content")&&(l.content=c.content),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.DynFakeCardReq"},d}(),O.DynFakeCardReply=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.item=u.gateway.DynamicItem.decode(c,c.uint32());break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.DynFakeCardReply)return c;let e=new u.gateway.DynFakeCardReply;if(c.item!=null){if(typeof c.item!="object")throw TypeError(".gateway.DynFakeCardReply.item: object expected");e.item=u.gateway.DynamicItem.fromObject(c.item)}return e},d.toObject=function(c,e){e||(e={});let l={};return e.defaults&&(l.item=null),c.item!=null&&c.hasOwnProperty("item")&&(l.item=u.gateway.DynamicItem.toObject(c.item,e)),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.DynFakeCardReply"},d}(),O.DynRcmdUpExchangeReq=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.uid=c.int64();break}case 2:{t.dislikeTs=c.int64();break}case 3:{t.from=c.string();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.DynRcmdUpExchangeReq)return c;let e=new u.gateway.DynRcmdUpExchangeReq;return c.uid!=null&&(r.Long?(e.uid=r.Long.fromValue(c.uid)).unsigned=!1:typeof c.uid=="string"?e.uid=parseInt(c.uid,10):typeof c.uid=="number"?e.uid=c.uid:typeof c.uid=="object"&&(e.uid=new r.LongBits(c.uid.low>>>0,c.uid.high>>>0).toNumber())),c.dislikeTs!=null&&(r.Long?(e.dislikeTs=r.Long.fromValue(c.dislikeTs)).unsigned=!1:typeof c.dislikeTs=="string"?e.dislikeTs=parseInt(c.dislikeTs,10):typeof c.dislikeTs=="number"?e.dislikeTs=c.dislikeTs:typeof c.dislikeTs=="object"&&(e.dislikeTs=new r.LongBits(c.dislikeTs.low>>>0,c.dislikeTs.high>>>0).toNumber())),c.from!=null&&(e.from=String(c.from)),e},d.toObject=function(c,e){e||(e={});let l={};if(e.defaults){if(r.Long){let t=new r.Long(0,0,!1);l.uid=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.uid=e.longs===String?"0":0;if(r.Long){let t=new r.Long(0,0,!1);l.dislikeTs=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.dislikeTs=e.longs===String?"0":0;l.from=""}return c.uid!=null&&c.hasOwnProperty("uid")&&(typeof c.uid=="number"?l.uid=e.longs===String?String(c.uid):c.uid:l.uid=e.longs===String?r.Long.prototype.toString.call(c.uid):e.longs===Number?new r.LongBits(c.uid.low>>>0,c.uid.high>>>0).toNumber():c.uid),c.dislikeTs!=null&&c.hasOwnProperty("dislikeTs")&&(typeof c.dislikeTs=="number"?l.dislikeTs=e.longs===String?String(c.dislikeTs):c.dislikeTs:l.dislikeTs=e.longs===String?r.Long.prototype.toString.call(c.dislikeTs):e.longs===Number?new r.LongBits(c.dislikeTs.low>>>0,c.dislikeTs.high>>>0).toNumber():c.dislikeTs),c.from!=null&&c.hasOwnProperty("from")&&(l.from=c.from),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.DynRcmdUpExchangeReq"},d}(),O.DynRcmdUpExchangeReply=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.unfollow=u.gateway.Unfollow.decode(c,c.uint32());break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.DynRcmdUpExchangeReply)return c;let e=new u.gateway.DynRcmdUpExchangeReply;if(c.unfollow!=null){if(typeof c.unfollow!="object")throw TypeError(".gateway.DynRcmdUpExchangeReply.unfollow: object expected");e.unfollow=u.gateway.Unfollow.fromObject(c.unfollow)}return e},d.toObject=function(c,e){e||(e={});let l={};return e.defaults&&(l.unfollow=null),c.unfollow!=null&&c.hasOwnProperty("unfollow")&&(l.unfollow=u.gateway.Unfollow.toObject(c.unfollow,e)),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.DynRcmdUpExchangeReply"},d}(),O.DynAllPersonalReq=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.hostUid=c.int64();break}case 2:{t.offset=c.string();break}case 3:{t.page=c.int32();break}case 4:{t.isPreload=c.int32();break}case 5:{t.playurlParam=u.gateway.PlayurlParam.decode(c,c.uint32());break}case 6:{t.localTime=c.int32();break}case 7:{t.footprint=c.string();break}case 8:{t.from=c.string();break}case 9:{t.playerArgs=u.gateway.PlayerArgs.decode(c,c.uint32());break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.DynAllPersonalReq)return c;let e=new u.gateway.DynAllPersonalReq;if(c.hostUid!=null&&(r.Long?(e.hostUid=r.Long.fromValue(c.hostUid)).unsigned=!1:typeof c.hostUid=="string"?e.hostUid=parseInt(c.hostUid,10):typeof c.hostUid=="number"?e.hostUid=c.hostUid:typeof c.hostUid=="object"&&(e.hostUid=new r.LongBits(c.hostUid.low>>>0,c.hostUid.high>>>0).toNumber())),c.offset!=null&&(e.offset=String(c.offset)),c.page!=null&&(e.page=c.page|0),c.isPreload!=null&&(e.isPreload=c.isPreload|0),c.playurlParam!=null){if(typeof c.playurlParam!="object")throw TypeError(".gateway.DynAllPersonalReq.playurlParam: object expected");e.playurlParam=u.gateway.PlayurlParam.fromObject(c.playurlParam)}if(c.localTime!=null&&(e.localTime=c.localTime|0),c.footprint!=null&&(e.footprint=String(c.footprint)),c.from!=null&&(e.from=String(c.from)),c.playerArgs!=null){if(typeof c.playerArgs!="object")throw TypeError(".gateway.DynAllPersonalReq.playerArgs: object expected");e.playerArgs=u.gateway.PlayerArgs.fromObject(c.playerArgs)}return e},d.toObject=function(c,e){e||(e={});let l={};if(e.defaults){if(r.Long){let t=new r.Long(0,0,!1);l.hostUid=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.hostUid=e.longs===String?"0":0;l.offset="",l.page=0,l.isPreload=0,l.playurlParam=null,l.localTime=0,l.footprint="",l.from="",l.playerArgs=null}return c.hostUid!=null&&c.hasOwnProperty("hostUid")&&(typeof c.hostUid=="number"?l.hostUid=e.longs===String?String(c.hostUid):c.hostUid:l.hostUid=e.longs===String?r.Long.prototype.toString.call(c.hostUid):e.longs===Number?new r.LongBits(c.hostUid.low>>>0,c.hostUid.high>>>0).toNumber():c.hostUid),c.offset!=null&&c.hasOwnProperty("offset")&&(l.offset=c.offset),c.page!=null&&c.hasOwnProperty("page")&&(l.page=c.page),c.isPreload!=null&&c.hasOwnProperty("isPreload")&&(l.isPreload=c.isPreload),c.playurlParam!=null&&c.hasOwnProperty("playurlParam")&&(l.playurlParam=u.gateway.PlayurlParam.toObject(c.playurlParam,e)),c.localTime!=null&&c.hasOwnProperty("localTime")&&(l.localTime=c.localTime),c.footprint!=null&&c.hasOwnProperty("footprint")&&(l.footprint=c.footprint),c.from!=null&&c.hasOwnProperty("from")&&(l.from=c.from),c.playerArgs!=null&&c.hasOwnProperty("playerArgs")&&(l.playerArgs=u.gateway.PlayerArgs.toObject(c.playerArgs,e)),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.DynAllPersonalReq"},d}(),O.DynAllPersonalReply=function(){function d(p){if(this.list=[],p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.list&&t.list.length||(t.list=[]),t.list.push(u.gateway.DynamicItem.decode(c,c.uint32()));break}case 2:{t.offset=c.string();break}case 3:{t.hasMore=c.bool();break}case 4:{t.readOffset=c.string();break}case 5:{t.relation=u.gateway.Relation.decode(c,c.uint32());break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.DynAllPersonalReply)return c;let e=new u.gateway.DynAllPersonalReply;if(c.list){if(!Array.isArray(c.list))throw TypeError(".gateway.DynAllPersonalReply.list: array expected");e.list=[];for(let l=0;l>>3){case 1:{t.hostUid=c.int64();break}case 2:{t.readOffset=c.string();break}case 3:{t.footprint=c.string();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.DynAllUpdOffsetReq)return c;let e=new u.gateway.DynAllUpdOffsetReq;return c.hostUid!=null&&(r.Long?(e.hostUid=r.Long.fromValue(c.hostUid)).unsigned=!1:typeof c.hostUid=="string"?e.hostUid=parseInt(c.hostUid,10):typeof c.hostUid=="number"?e.hostUid=c.hostUid:typeof c.hostUid=="object"&&(e.hostUid=new r.LongBits(c.hostUid.low>>>0,c.hostUid.high>>>0).toNumber())),c.readOffset!=null&&(e.readOffset=String(c.readOffset)),c.footprint!=null&&(e.footprint=String(c.footprint)),e},d.toObject=function(c,e){e||(e={});let l={};if(e.defaults){if(r.Long){let t=new r.Long(0,0,!1);l.hostUid=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.hostUid=e.longs===String?"0":0;l.readOffset="",l.footprint=""}return c.hostUid!=null&&c.hasOwnProperty("hostUid")&&(typeof c.hostUid=="number"?l.hostUid=e.longs===String?String(c.hostUid):c.hostUid:l.hostUid=e.longs===String?r.Long.prototype.toString.call(c.hostUid):e.longs===Number?new r.LongBits(c.hostUid.low>>>0,c.hostUid.high>>>0).toNumber():c.hostUid),c.readOffset!=null&&c.hasOwnProperty("readOffset")&&(l.readOffset=c.readOffset),c.footprint!=null&&c.hasOwnProperty("footprint")&&(l.footprint=c.footprint),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.DynAllUpdOffsetReq"},d}(),O.DynVoteReq=function(){function d(p){if(this.votes=[],p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.voteId=c.int64();break}case 2:{if(t.votes&&t.votes.length||(t.votes=[]),(i&7)===2){let n=c.uint32()+c.pos;for(;c.pos>>0,c.voteId.high>>>0).toNumber())),c.votes){if(!Array.isArray(c.votes))throw TypeError(".gateway.DynVoteReq.votes: array expected");e.votes=[];for(let l=0;l>>0,c.votes[l].high>>>0).toNumber())}switch(c.status){default:if(typeof c.status=="number"){e.status=c.status;break}break;case"normal":case 0:e.status=0;break;case"anonymous":case 1:e.status=1;break}return c.dynamicId!=null&&(e.dynamicId=String(c.dynamicId)),c.share!=null&&(e.share=!!c.share),e},d.toObject=function(c,e){e||(e={});let l={};if((e.arrays||e.defaults)&&(l.votes=[]),e.defaults){if(r.Long){let t=new r.Long(0,0,!1);l.voteId=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.voteId=e.longs===String?"0":0;l.status=e.enums===String?"normal":0,l.dynamicId="",l.share=!1}if(c.voteId!=null&&c.hasOwnProperty("voteId")&&(typeof c.voteId=="number"?l.voteId=e.longs===String?String(c.voteId):c.voteId:l.voteId=e.longs===String?r.Long.prototype.toString.call(c.voteId):e.longs===Number?new r.LongBits(c.voteId.low>>>0,c.voteId.high>>>0).toNumber():c.voteId),c.votes&&c.votes.length){l.votes=[];for(let t=0;t>>0,c.votes[t].high>>>0).toNumber():c.votes[t]}return c.status!=null&&c.hasOwnProperty("status")&&(l.status=e.enums===String?u.gateway.VoteStatus[c.status]===void 0?c.status:u.gateway.VoteStatus[c.status]:c.status),c.dynamicId!=null&&c.hasOwnProperty("dynamicId")&&(l.dynamicId=c.dynamicId),c.share!=null&&c.hasOwnProperty("share")&&(l.share=c.share),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.DynVoteReq"},d}(),O.VoteStatus=function(){let d={},p=Object.create(d);return p[d[0]="normal"]=0,p[d[1]="anonymous"]=1,p}(),O.DynVoteReply=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.item=u.gateway.AdditionVote2.decode(c,c.uint32());break}case 2:{t.toast=c.string();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.DynVoteReply)return c;let e=new u.gateway.DynVoteReply;if(c.item!=null){if(typeof c.item!="object")throw TypeError(".gateway.DynVoteReply.item: object expected");e.item=u.gateway.AdditionVote2.fromObject(c.item)}return c.toast!=null&&(e.toast=String(c.toast)),e},d.toObject=function(c,e){e||(e={});let l={};return e.defaults&&(l.item=null,l.toast=""),c.item!=null&&c.hasOwnProperty("item")&&(l.item=u.gateway.AdditionVote2.toObject(c.item,e)),c.toast!=null&&c.hasOwnProperty("toast")&&(l.toast=c.toast),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.DynVoteReply"},d}(),O.Relation=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.status=c.int32();break}case 2:{t.isFollow=c.int32();break}case 3:{t.isFollowed=c.int32();break}case 4:{t.title=c.string();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.Relation)return c;let e=new u.gateway.Relation;switch(c.status){default:if(typeof c.status=="number"){e.status=c.status;break}break;case"relation_status_none":case 0:e.status=0;break;case"relation_status_nofollow":case 1:e.status=1;break;case"relation_status_follow":case 2:e.status=2;break;case"relation_status_followed":case 3:e.status=3;break;case"relation_status_mutual_concern":case 4:e.status=4;break;case"relation_status_special":case 5:e.status=5;break}return c.isFollow!=null&&(e.isFollow=c.isFollow|0),c.isFollowed!=null&&(e.isFollowed=c.isFollowed|0),c.title!=null&&(e.title=String(c.title)),e},d.toObject=function(c,e){e||(e={});let l={};return e.defaults&&(l.status=e.enums===String?"relation_status_none":0,l.isFollow=0,l.isFollowed=0,l.title=""),c.status!=null&&c.hasOwnProperty("status")&&(l.status=e.enums===String?u.gateway.RelationStatus[c.status]===void 0?c.status:u.gateway.RelationStatus[c.status]:c.status),c.isFollow!=null&&c.hasOwnProperty("isFollow")&&(l.isFollow=c.isFollow),c.isFollowed!=null&&c.hasOwnProperty("isFollowed")&&(l.isFollowed=c.isFollowed),c.title!=null&&c.hasOwnProperty("title")&&(l.title=c.title),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.Relation"},d}(),O.RelationStatus=function(){let d={},p=Object.create(d);return p[d[0]="relation_status_none"]=0,p[d[1]="relation_status_nofollow"]=1,p[d[2]="relation_status_follow"]=2,p[d[3]="relation_status_followed"]=3,p[d[4]="relation_status_mutual_concern"]=4,p[d[5]="relation_status_special"]=5,p}(),O.MixUpListLiveItem=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.status=c.bool();break}case 2:{t.roomId=c.int64();break}case 3:{t.uri=c.string();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.MixUpListLiveItem)return c;let e=new u.gateway.MixUpListLiveItem;return c.status!=null&&(e.status=!!c.status),c.roomId!=null&&(r.Long?(e.roomId=r.Long.fromValue(c.roomId)).unsigned=!1:typeof c.roomId=="string"?e.roomId=parseInt(c.roomId,10):typeof c.roomId=="number"?e.roomId=c.roomId:typeof c.roomId=="object"&&(e.roomId=new r.LongBits(c.roomId.low>>>0,c.roomId.high>>>0).toNumber())),c.uri!=null&&(e.uri=String(c.uri)),e},d.toObject=function(c,e){e||(e={});let l={};if(e.defaults){if(l.status=!1,r.Long){let t=new r.Long(0,0,!1);l.roomId=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.roomId=e.longs===String?"0":0;l.uri=""}return c.status!=null&&c.hasOwnProperty("status")&&(l.status=c.status),c.roomId!=null&&c.hasOwnProperty("roomId")&&(typeof c.roomId=="number"?l.roomId=e.longs===String?String(c.roomId):c.roomId:l.roomId=e.longs===String?r.Long.prototype.toString.call(c.roomId):e.longs===Number?new r.LongBits(c.roomId.low>>>0,c.roomId.high>>>0).toNumber():c.roomId),c.uri!=null&&c.hasOwnProperty("uri")&&(l.uri=c.uri),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.MixUpListLiveItem"},d}(),O.MixUpListItem=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.uid=c.int64();break}case 2:{t.specialAttention=c.int32();break}case 3:{t.reddotState=c.int32();break}case 4:{t.liveInfo=u.gateway.MixUpListLiveItem.decode(c,c.uint32());break}case 5:{t.name=c.string();break}case 6:{t.face=c.string();break}case 7:{t.official=u.gateway.OfficialVerify.decode(c,c.uint32());break}case 8:{t.vip=u.gateway.VipInfo.decode(c,c.uint32());break}case 9:{t.relation=u.gateway.Relation.decode(c,c.uint32());break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.MixUpListItem)return c;let e=new u.gateway.MixUpListItem;if(c.uid!=null&&(r.Long?(e.uid=r.Long.fromValue(c.uid)).unsigned=!1:typeof c.uid=="string"?e.uid=parseInt(c.uid,10):typeof c.uid=="number"?e.uid=c.uid:typeof c.uid=="object"&&(e.uid=new r.LongBits(c.uid.low>>>0,c.uid.high>>>0).toNumber())),c.specialAttention!=null&&(e.specialAttention=c.specialAttention|0),c.reddotState!=null&&(e.reddotState=c.reddotState|0),c.liveInfo!=null){if(typeof c.liveInfo!="object")throw TypeError(".gateway.MixUpListItem.liveInfo: object expected");e.liveInfo=u.gateway.MixUpListLiveItem.fromObject(c.liveInfo)}if(c.name!=null&&(e.name=String(c.name)),c.face!=null&&(e.face=String(c.face)),c.official!=null){if(typeof c.official!="object")throw TypeError(".gateway.MixUpListItem.official: object expected");e.official=u.gateway.OfficialVerify.fromObject(c.official)}if(c.vip!=null){if(typeof c.vip!="object")throw TypeError(".gateway.MixUpListItem.vip: object expected");e.vip=u.gateway.VipInfo.fromObject(c.vip)}if(c.relation!=null){if(typeof c.relation!="object")throw TypeError(".gateway.MixUpListItem.relation: object expected");e.relation=u.gateway.Relation.fromObject(c.relation)}return e},d.toObject=function(c,e){e||(e={});let l={};if(e.defaults){if(r.Long){let t=new r.Long(0,0,!1);l.uid=e.longs===String?t.toString():e.longs===Number?t.toNumber():t}else l.uid=e.longs===String?"0":0;l.specialAttention=0,l.reddotState=0,l.liveInfo=null,l.name="",l.face="",l.official=null,l.vip=null,l.relation=null}return c.uid!=null&&c.hasOwnProperty("uid")&&(typeof c.uid=="number"?l.uid=e.longs===String?String(c.uid):c.uid:l.uid=e.longs===String?r.Long.prototype.toString.call(c.uid):e.longs===Number?new r.LongBits(c.uid.low>>>0,c.uid.high>>>0).toNumber():c.uid),c.specialAttention!=null&&c.hasOwnProperty("specialAttention")&&(l.specialAttention=c.specialAttention),c.reddotState!=null&&c.hasOwnProperty("reddotState")&&(l.reddotState=c.reddotState),c.liveInfo!=null&&c.hasOwnProperty("liveInfo")&&(l.liveInfo=u.gateway.MixUpListLiveItem.toObject(c.liveInfo,e)),c.name!=null&&c.hasOwnProperty("name")&&(l.name=c.name),c.face!=null&&c.hasOwnProperty("face")&&(l.face=c.face),c.official!=null&&c.hasOwnProperty("official")&&(l.official=u.gateway.OfficialVerify.toObject(c.official,e)),c.vip!=null&&c.hasOwnProperty("vip")&&(l.vip=u.gateway.VipInfo.toObject(c.vip,e)),c.relation!=null&&c.hasOwnProperty("relation")&&(l.relation=u.gateway.Relation.toObject(c.relation,e)),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.MixUpListItem"},d}(),O.DynMixUpListViewMoreReq=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.sortType=c.int32();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.DynMixUpListViewMoreReq)return c;let e=new u.gateway.DynMixUpListViewMoreReq;return c.sortType!=null&&(e.sortType=c.sortType|0),e},d.toObject=function(c,e){e||(e={});let l={};return e.defaults&&(l.sortType=0),c.sortType!=null&&c.hasOwnProperty("sortType")&&(l.sortType=c.sortType),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.DynMixUpListViewMoreReq"},d}(),O.SortType=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.sortType=c.int32();break}case 2:{t.sortTypeName=c.string();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.SortType)return c;let e=new u.gateway.SortType;return c.sortType!=null&&(e.sortType=c.sortType|0),c.sortTypeName!=null&&(e.sortTypeName=String(c.sortTypeName)),e},d.toObject=function(c,e){e||(e={});let l={};return e.defaults&&(l.sortType=0,l.sortTypeName=""),c.sortType!=null&&c.hasOwnProperty("sortType")&&(l.sortType=c.sortType),c.sortTypeName!=null&&c.hasOwnProperty("sortTypeName")&&(l.sortTypeName=c.sortTypeName),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.SortType"},d}(),O.DynMixUpListViewMoreReply=function(){function d(p){if(this.items=[],this.sortTypes=[],p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.items&&t.items.length||(t.items=[]),t.items.push(u.gateway.MixUpListItem.decode(c,c.uint32()));break}case 2:{t.searchDefaultText=c.string();break}case 3:{t.sortTypes&&t.sortTypes.length||(t.sortTypes=[]),t.sortTypes.push(u.gateway.SortType.decode(c,c.uint32()));break}case 4:{t.showMoreSortTypes=c.bool();break}case 5:{t.defaultSortType=c.int32();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.DynMixUpListViewMoreReply)return c;let e=new u.gateway.DynMixUpListViewMoreReply;if(c.items){if(!Array.isArray(c.items))throw TypeError(".gateway.DynMixUpListViewMoreReply.items: array expected");e.items=[];for(let l=0;l>>3){case 1:{t.historyOffset=c.string();break}case 2:{t.page=c.int32();break}case 3:{t.from=c.string();break}case 4:{t.playerArgs=u.gateway.PlayerArgs.decode(c,c.uint32());break}case 5:{t.localTime=c.int32();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.DynLightReq)return c;let e=new u.gateway.DynLightReq;if(c.historyOffset!=null&&(e.historyOffset=String(c.historyOffset)),c.page!=null&&(e.page=c.page|0),c.from!=null&&(e.from=String(c.from)),c.playerArgs!=null){if(typeof c.playerArgs!="object")throw TypeError(".gateway.DynLightReq.playerArgs: object expected");e.playerArgs=u.gateway.PlayerArgs.fromObject(c.playerArgs)}return c.localTime!=null&&(e.localTime=c.localTime|0),e},d.toObject=function(c,e){e||(e={});let l={};return e.defaults&&(l.historyOffset="",l.page=0,l.from="",l.playerArgs=null,l.localTime=0),c.historyOffset!=null&&c.hasOwnProperty("historyOffset")&&(l.historyOffset=c.historyOffset),c.page!=null&&c.hasOwnProperty("page")&&(l.page=c.page),c.from!=null&&c.hasOwnProperty("from")&&(l.from=c.from),c.playerArgs!=null&&c.hasOwnProperty("playerArgs")&&(l.playerArgs=u.gateway.PlayerArgs.toObject(c.playerArgs,e)),c.localTime!=null&&c.hasOwnProperty("localTime")&&(l.localTime=c.localTime),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.DynLightReq"},d}(),O.DynLightReply=function(){function d(p){if(p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.dynamicList=u.gateway.DynamicList.decode(c,c.uint32());break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.DynLightReply)return c;let e=new u.gateway.DynLightReply;if(c.dynamicList!=null){if(typeof c.dynamicList!="object")throw TypeError(".gateway.DynLightReply.dynamicList: object expected");e.dynamicList=u.gateway.DynamicList.fromObject(c.dynamicList)}return e},d.toObject=function(c,e){e||(e={});let l={};return e.defaults&&(l.dynamicList=null),c.dynamicList!=null&&c.hasOwnProperty("dynamicList")&&(l.dynamicList=u.gateway.DynamicList.toObject(c.dynamicList,e)),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.DynLightReply"},d}(),O.ModuleShareInfo=function(){function d(p){if(this.shareChannels=[],p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.title=c.string();break}case 2:{t.shareChannels&&t.shareChannels.length||(t.shareChannels=[]),t.shareChannels.push(u.gateway.ShareChannel.decode(c,c.uint32()));break}case 3:{t.shareOrigin=c.string();break}case 4:{t.oid=c.string();break}case 5:{t.sid=c.string();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.ModuleShareInfo)return c;let e=new u.gateway.ModuleShareInfo;if(c.title!=null&&(e.title=String(c.title)),c.shareChannels){if(!Array.isArray(c.shareChannels))throw TypeError(".gateway.ModuleShareInfo.shareChannels: array expected");e.shareChannels=[];for(let l=0;l>>3){case 1:{t.name=c.string();break}case 2:{t.image=c.string();break}case 3:{t.channel=c.string();break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.ShareChannel)return c;let e=new u.gateway.ShareChannel;return c.name!=null&&(e.name=String(c.name)),c.image!=null&&(e.image=String(c.image)),c.channel!=null&&(e.channel=String(c.channel)),e},d.toObject=function(c,e){e||(e={});let l={};return e.defaults&&(l.name="",l.image="",l.channel=""),c.name!=null&&c.hasOwnProperty("name")&&(l.name=c.name),c.image!=null&&c.hasOwnProperty("image")&&(l.image=c.image),c.channel!=null&&c.hasOwnProperty("channel")&&(l.channel=c.channel),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.ShareChannel"},d}(),O.ModuleRecommend=function(){function d(p){if(this.ad=[],p)for(let c=Object.keys(p),e=0;e>>3){case 1:{t.moduleTitle=c.string();break}case 2:{t.image=c.string();break}case 3:{t.tag=c.string();break}case 4:{t.title=c.string();break}case 5:{t.jumpUrl=c.string();break}case 6:{t.ad&&t.ad.length||(t.ad=[]),t.ad.push(u.google.protobuf.Any.decode(c,c.uint32()));break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.ModuleRecommend)return c;let e=new u.gateway.ModuleRecommend;if(c.moduleTitle!=null&&(e.moduleTitle=String(c.moduleTitle)),c.image!=null&&(e.image=String(c.image)),c.tag!=null&&(e.tag=String(c.tag)),c.title!=null&&(e.title=String(c.title)),c.jumpUrl!=null&&(e.jumpUrl=String(c.jumpUrl)),c.ad){if(!Array.isArray(c.ad))throw TypeError(".gateway.ModuleRecommend.ad: array expected");e.ad=[];for(let l=0;l>>3){case 1:{t.tpList&&t.tpList.length||(t.tpList=[]),t.tpList.push(u.gateway.ThreePointItem.decode(c,c.uint32()));break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.ModuleTop)return c;let e=new u.gateway.ModuleTop;if(c.tpList){if(!Array.isArray(c.tpList))throw TypeError(".gateway.ModuleTop.tpList: array expected");e.tpList=[];for(let l=0;l>>3){case 1:{t.moduleStat=u.gateway.ModuleStat.decode(c,c.uint32());break}default:c.skipType(i&7);break}}return t},d.fromObject=function(c){if(c instanceof u.gateway.ModuleButtom)return c;let e=new u.gateway.ModuleButtom;if(c.moduleStat!=null){if(typeof c.moduleStat!="object")throw TypeError(".gateway.ModuleButtom.moduleStat: object expected");e.moduleStat=u.gateway.ModuleStat.fromObject(c.moduleStat)}return e},d.toObject=function(c,e){e||(e={});let l={};return e.defaults&&(l.moduleStat=null),c.moduleStat!=null&&c.hasOwnProperty("moduleStat")&&(l.moduleStat=u.gateway.ModuleStat.toObject(c.moduleStat,e)),l},d.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},d.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/gateway.ModuleButtom"},d}(),O})(),iu=u.google=(()=>{let O={};return O.protobuf=function(){let d={};return d.DoubleValue=function(){function p(c){if(c)for(let e=Object.keys(c),l=0;l>>3){case 1:{i.value=e.double();break}default:e.skipType(n&7);break}}return i},p.fromObject=function(e){if(e instanceof u.google.protobuf.DoubleValue)return e;let l=new u.google.protobuf.DoubleValue;return e.value!=null&&(l.value=Number(e.value)),l},p.toObject=function(e,l){l||(l={});let t={};return l.defaults&&(t.value=0),e.value!=null&&e.hasOwnProperty("value")&&(t.value=l.json&&!isFinite(e.value)?String(e.value):e.value),t},p.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},p.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/google.protobuf.DoubleValue"},p}(),d.FloatValue=function(){function p(c){if(c)for(let e=Object.keys(c),l=0;l>>3){case 1:{i.value=e.float();break}default:e.skipType(n&7);break}}return i},p.fromObject=function(e){if(e instanceof u.google.protobuf.FloatValue)return e;let l=new u.google.protobuf.FloatValue;return e.value!=null&&(l.value=Number(e.value)),l},p.toObject=function(e,l){l||(l={});let t={};return l.defaults&&(t.value=0),e.value!=null&&e.hasOwnProperty("value")&&(t.value=l.json&&!isFinite(e.value)?String(e.value):e.value),t},p.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},p.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/google.protobuf.FloatValue"},p}(),d.Int64Value=function(){function p(c){if(c)for(let e=Object.keys(c),l=0;l>>3){case 1:{i.value=e.int64();break}default:e.skipType(n&7);break}}return i},p.fromObject=function(e){if(e instanceof u.google.protobuf.Int64Value)return e;let l=new u.google.protobuf.Int64Value;return e.value!=null&&(r.Long?(l.value=r.Long.fromValue(e.value)).unsigned=!1:typeof e.value=="string"?l.value=parseInt(e.value,10):typeof e.value=="number"?l.value=e.value:typeof e.value=="object"&&(l.value=new r.LongBits(e.value.low>>>0,e.value.high>>>0).toNumber())),l},p.toObject=function(e,l){l||(l={});let t={};if(l.defaults)if(r.Long){let i=new r.Long(0,0,!1);t.value=l.longs===String?i.toString():l.longs===Number?i.toNumber():i}else t.value=l.longs===String?"0":0;return e.value!=null&&e.hasOwnProperty("value")&&(typeof e.value=="number"?t.value=l.longs===String?String(e.value):e.value:t.value=l.longs===String?r.Long.prototype.toString.call(e.value):l.longs===Number?new r.LongBits(e.value.low>>>0,e.value.high>>>0).toNumber():e.value),t},p.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},p.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/google.protobuf.Int64Value"},p}(),d.UInt64Value=function(){function p(c){if(c)for(let e=Object.keys(c),l=0;l>>3){case 1:{i.value=e.uint64();break}default:e.skipType(n&7);break}}return i},p.fromObject=function(e){if(e instanceof u.google.protobuf.UInt64Value)return e;let l=new u.google.protobuf.UInt64Value;return e.value!=null&&(r.Long?(l.value=r.Long.fromValue(e.value)).unsigned=!0:typeof e.value=="string"?l.value=parseInt(e.value,10):typeof e.value=="number"?l.value=e.value:typeof e.value=="object"&&(l.value=new r.LongBits(e.value.low>>>0,e.value.high>>>0).toNumber(!0))),l},p.toObject=function(e,l){l||(l={});let t={};if(l.defaults)if(r.Long){let i=new r.Long(0,0,!0);t.value=l.longs===String?i.toString():l.longs===Number?i.toNumber():i}else t.value=l.longs===String?"0":0;return e.value!=null&&e.hasOwnProperty("value")&&(typeof e.value=="number"?t.value=l.longs===String?String(e.value):e.value:t.value=l.longs===String?r.Long.prototype.toString.call(e.value):l.longs===Number?new r.LongBits(e.value.low>>>0,e.value.high>>>0).toNumber(!0):e.value),t},p.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},p.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/google.protobuf.UInt64Value"},p}(),d.Int32Value=function(){function p(c){if(c)for(let e=Object.keys(c),l=0;l>>3){case 1:{i.value=e.int32();break}default:e.skipType(n&7);break}}return i},p.fromObject=function(e){if(e instanceof u.google.protobuf.Int32Value)return e;let l=new u.google.protobuf.Int32Value;return e.value!=null&&(l.value=e.value|0),l},p.toObject=function(e,l){l||(l={});let t={};return l.defaults&&(t.value=0),e.value!=null&&e.hasOwnProperty("value")&&(t.value=e.value),t},p.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},p.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/google.protobuf.Int32Value"},p}(),d.UInt32Value=function(){function p(c){if(c)for(let e=Object.keys(c),l=0;l>>3){case 1:{i.value=e.uint32();break}default:e.skipType(n&7);break}}return i},p.fromObject=function(e){if(e instanceof u.google.protobuf.UInt32Value)return e;let l=new u.google.protobuf.UInt32Value;return e.value!=null&&(l.value=e.value>>>0),l},p.toObject=function(e,l){l||(l={});let t={};return l.defaults&&(t.value=0),e.value!=null&&e.hasOwnProperty("value")&&(t.value=e.value),t},p.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},p.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/google.protobuf.UInt32Value"},p}(),d.BoolValue=function(){function p(c){if(c)for(let e=Object.keys(c),l=0;l>>3){case 1:{i.value=e.bool();break}default:e.skipType(n&7);break}}return i},p.fromObject=function(e){if(e instanceof u.google.protobuf.BoolValue)return e;let l=new u.google.protobuf.BoolValue;return e.value!=null&&(l.value=!!e.value),l},p.toObject=function(e,l){l||(l={});let t={};return l.defaults&&(t.value=!1),e.value!=null&&e.hasOwnProperty("value")&&(t.value=e.value),t},p.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},p.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/google.protobuf.BoolValue"},p}(),d.StringValue=function(){function p(c){if(c)for(let e=Object.keys(c),l=0;l>>3){case 1:{i.value=e.string();break}default:e.skipType(n&7);break}}return i},p.fromObject=function(e){if(e instanceof u.google.protobuf.StringValue)return e;let l=new u.google.protobuf.StringValue;return e.value!=null&&(l.value=String(e.value)),l},p.toObject=function(e,l){l||(l={});let t={};return l.defaults&&(t.value=""),e.value!=null&&e.hasOwnProperty("value")&&(t.value=e.value),t},p.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},p.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/google.protobuf.StringValue"},p}(),d.BytesValue=function(){function p(c){if(c)for(let e=Object.keys(c),l=0;l>>3){case 1:{i.value=e.bytes();break}default:e.skipType(n&7);break}}return i},p.fromObject=function(e){if(e instanceof u.google.protobuf.BytesValue)return e;let l=new u.google.protobuf.BytesValue;return e.value!=null&&(typeof e.value=="string"?r.base64.decode(e.value,l.value=r.newBuffer(r.base64.length(e.value)),0):e.value.length>=0&&(l.value=e.value)),l},p.toObject=function(e,l){l||(l={});let t={};return l.defaults&&(l.bytes===String?t.value="":(t.value=[],l.bytes!==Array&&(t.value=r.newBuffer(t.value)))),e.value!=null&&e.hasOwnProperty("value")&&(t.value=l.bytes===String?r.base64.encode(e.value,0,e.value.length):l.bytes===Array?Array.prototype.slice.call(e.value):e.value),t},p.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},p.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/google.protobuf.BytesValue"},p}(),d.Any=function(){function p(c){if(c)for(let e=Object.keys(c),l=0;l>>3){case 1:{i.type_url=e.string();break}case 2:{i.value=e.bytes();break}default:e.skipType(n&7);break}}return i},p.fromObject=function(e){if(e instanceof u.google.protobuf.Any)return e;let l=new u.google.protobuf.Any;return e.type_url!=null&&(l.type_url=String(e.type_url)),e.value!=null&&(typeof e.value=="string"?r.base64.decode(e.value,l.value=r.newBuffer(r.base64.length(e.value)),0):e.value.length>=0&&(l.value=e.value)),l},p.toObject=function(e,l){l||(l={});let t={};return l.defaults&&(t.type_url="",l.bytes===String?t.value="":(t.value=[],l.bytes!==Array&&(t.value=r.newBuffer(t.value)))),e.type_url!=null&&e.hasOwnProperty("type_url")&&(t.type_url=e.type_url),e.value!=null&&e.hasOwnProperty("value")&&(t.value=l.bytes===String?r.base64.encode(e.value,0,e.value.length):l.bytes===Array?Array.prototype.slice.call(e.value):e.value),t},p.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},p.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/google.protobuf.Any"},p}(),d.FileDescriptorSet=function(){function p(c){if(this.file=[],c)for(let e=Object.keys(c),l=0;l>>3){case 1:{i.file&&i.file.length||(i.file=[]),i.file.push(u.google.protobuf.FileDescriptorProto.decode(e,e.uint32()));break}default:e.skipType(n&7);break}}return i},p.fromObject=function(e){if(e instanceof u.google.protobuf.FileDescriptorSet)return e;let l=new u.google.protobuf.FileDescriptorSet;if(e.file){if(!Array.isArray(e.file))throw TypeError(".google.protobuf.FileDescriptorSet.file: array expected");l.file=[];for(let t=0;t>>3){case 1:{i.name=e.string();break}case 2:{i.package=e.string();break}case 3:{i.dependency&&i.dependency.length||(i.dependency=[]),i.dependency.push(e.string());break}case 10:{if(i.publicDependency&&i.publicDependency.length||(i.publicDependency=[]),(n&7)===2){let o=e.uint32()+e.pos;for(;e.pos>>3){case 1:{i.name=e.string();break}case 2:{i.field&&i.field.length||(i.field=[]),i.field.push(u.google.protobuf.FieldDescriptorProto.decode(e,e.uint32()));break}case 6:{i.extension&&i.extension.length||(i.extension=[]),i.extension.push(u.google.protobuf.FieldDescriptorProto.decode(e,e.uint32()));break}case 3:{i.nestedType&&i.nestedType.length||(i.nestedType=[]),i.nestedType.push(u.google.protobuf.DescriptorProto.decode(e,e.uint32()));break}case 4:{i.enumType&&i.enumType.length||(i.enumType=[]),i.enumType.push(u.google.protobuf.EnumDescriptorProto.decode(e,e.uint32()));break}case 5:{i.extensionRange&&i.extensionRange.length||(i.extensionRange=[]),i.extensionRange.push(u.google.protobuf.DescriptorProto.ExtensionRange.decode(e,e.uint32()));break}case 8:{i.oneofDecl&&i.oneofDecl.length||(i.oneofDecl=[]),i.oneofDecl.push(u.google.protobuf.OneofDescriptorProto.decode(e,e.uint32()));break}case 7:{i.options=u.google.protobuf.MessageOptions.decode(e,e.uint32());break}case 9:{i.reservedRange&&i.reservedRange.length||(i.reservedRange=[]),i.reservedRange.push(u.google.protobuf.DescriptorProto.ReservedRange.decode(e,e.uint32()));break}case 10:{i.reservedName&&i.reservedName.length||(i.reservedName=[]),i.reservedName.push(e.string());break}default:e.skipType(n&7);break}}return i},p.fromObject=function(e){if(e instanceof u.google.protobuf.DescriptorProto)return e;let l=new u.google.protobuf.DescriptorProto;if(e.name!=null&&(l.name=String(e.name)),e.field){if(!Array.isArray(e.field))throw TypeError(".google.protobuf.DescriptorProto.field: array expected");l.field=[];for(let t=0;t>>3){case 1:{n.start=l.int32();break}case 2:{n.end=l.int32();break}case 3:{n.options=u.google.protobuf.ExtensionRangeOptions.decode(l,l.uint32());break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.google.protobuf.DescriptorProto.ExtensionRange)return l;let t=new u.google.protobuf.DescriptorProto.ExtensionRange;if(l.start!=null&&(t.start=l.start|0),l.end!=null&&(t.end=l.end|0),l.options!=null){if(typeof l.options!="object")throw TypeError(".google.protobuf.DescriptorProto.ExtensionRange.options: object expected");t.options=u.google.protobuf.ExtensionRangeOptions.fromObject(l.options)}return t},c.toObject=function(l,t){t||(t={});let i={};return t.defaults&&(i.start=0,i.end=0,i.options=null),l.start!=null&&l.hasOwnProperty("start")&&(i.start=l.start),l.end!=null&&l.hasOwnProperty("end")&&(i.end=l.end),l.options!=null&&l.hasOwnProperty("options")&&(i.options=u.google.protobuf.ExtensionRangeOptions.toObject(l.options,t)),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/google.protobuf.DescriptorProto.ExtensionRange"},c}(),p.ReservedRange=function(){function c(e){if(e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.start=l.int32();break}case 2:{n.end=l.int32();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.google.protobuf.DescriptorProto.ReservedRange)return l;let t=new u.google.protobuf.DescriptorProto.ReservedRange;return l.start!=null&&(t.start=l.start|0),l.end!=null&&(t.end=l.end|0),t},c.toObject=function(l,t){t||(t={});let i={};return t.defaults&&(i.start=0,i.end=0),l.start!=null&&l.hasOwnProperty("start")&&(i.start=l.start),l.end!=null&&l.hasOwnProperty("end")&&(i.end=l.end),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/google.protobuf.DescriptorProto.ReservedRange"},c}(),p}(),d.ExtensionRangeOptions=function(){function p(c){if(this.uninterpretedOption=[],c)for(let e=Object.keys(c),l=0;l>>3){case 999:{i.uninterpretedOption&&i.uninterpretedOption.length||(i.uninterpretedOption=[]),i.uninterpretedOption.push(u.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break}default:e.skipType(n&7);break}}return i},p.fromObject=function(e){if(e instanceof u.google.protobuf.ExtensionRangeOptions)return e;let l=new u.google.protobuf.ExtensionRangeOptions;if(e.uninterpretedOption){if(!Array.isArray(e.uninterpretedOption))throw TypeError(".google.protobuf.ExtensionRangeOptions.uninterpretedOption: array expected");l.uninterpretedOption=[];for(let t=0;t>>3){case 1:{i.name=e.string();break}case 3:{i.number=e.int32();break}case 4:{i.label=e.int32();break}case 5:{i.type=e.int32();break}case 6:{i.typeName=e.string();break}case 2:{i.extendee=e.string();break}case 7:{i.defaultValue=e.string();break}case 9:{i.oneofIndex=e.int32();break}case 10:{i.jsonName=e.string();break}case 8:{i.options=u.google.protobuf.FieldOptions.decode(e,e.uint32());break}default:e.skipType(n&7);break}}return i},p.fromObject=function(e){if(e instanceof u.google.protobuf.FieldDescriptorProto)return e;let l=new u.google.protobuf.FieldDescriptorProto;switch(e.name!=null&&(l.name=String(e.name)),e.number!=null&&(l.number=e.number|0),e.label){default:if(typeof e.label=="number"){l.label=e.label;break}break;case"LABEL_OPTIONAL":case 1:l.label=1;break;case"LABEL_REQUIRED":case 2:l.label=2;break;case"LABEL_REPEATED":case 3:l.label=3;break}switch(e.type){default:if(typeof e.type=="number"){l.type=e.type;break}break;case"TYPE_DOUBLE":case 1:l.type=1;break;case"TYPE_FLOAT":case 2:l.type=2;break;case"TYPE_INT64":case 3:l.type=3;break;case"TYPE_UINT64":case 4:l.type=4;break;case"TYPE_INT32":case 5:l.type=5;break;case"TYPE_FIXED64":case 6:l.type=6;break;case"TYPE_FIXED32":case 7:l.type=7;break;case"TYPE_BOOL":case 8:l.type=8;break;case"TYPE_STRING":case 9:l.type=9;break;case"TYPE_GROUP":case 10:l.type=10;break;case"TYPE_MESSAGE":case 11:l.type=11;break;case"TYPE_BYTES":case 12:l.type=12;break;case"TYPE_UINT32":case 13:l.type=13;break;case"TYPE_ENUM":case 14:l.type=14;break;case"TYPE_SFIXED32":case 15:l.type=15;break;case"TYPE_SFIXED64":case 16:l.type=16;break;case"TYPE_SINT32":case 17:l.type=17;break;case"TYPE_SINT64":case 18:l.type=18;break}if(e.typeName!=null&&(l.typeName=String(e.typeName)),e.extendee!=null&&(l.extendee=String(e.extendee)),e.defaultValue!=null&&(l.defaultValue=String(e.defaultValue)),e.oneofIndex!=null&&(l.oneofIndex=e.oneofIndex|0),e.jsonName!=null&&(l.jsonName=String(e.jsonName)),e.options!=null){if(typeof e.options!="object")throw TypeError(".google.protobuf.FieldDescriptorProto.options: object expected");l.options=u.google.protobuf.FieldOptions.fromObject(e.options)}return l},p.toObject=function(e,l){l||(l={});let t={};return l.defaults&&(t.name="",t.extendee="",t.number=0,t.label=l.enums===String?"LABEL_OPTIONAL":1,t.type=l.enums===String?"TYPE_DOUBLE":1,t.typeName="",t.defaultValue="",t.options=null,t.oneofIndex=0,t.jsonName=""),e.name!=null&&e.hasOwnProperty("name")&&(t.name=e.name),e.extendee!=null&&e.hasOwnProperty("extendee")&&(t.extendee=e.extendee),e.number!=null&&e.hasOwnProperty("number")&&(t.number=e.number),e.label!=null&&e.hasOwnProperty("label")&&(t.label=l.enums===String?u.google.protobuf.FieldDescriptorProto.Label[e.label]===void 0?e.label:u.google.protobuf.FieldDescriptorProto.Label[e.label]:e.label),e.type!=null&&e.hasOwnProperty("type")&&(t.type=l.enums===String?u.google.protobuf.FieldDescriptorProto.Type[e.type]===void 0?e.type:u.google.protobuf.FieldDescriptorProto.Type[e.type]:e.type),e.typeName!=null&&e.hasOwnProperty("typeName")&&(t.typeName=e.typeName),e.defaultValue!=null&&e.hasOwnProperty("defaultValue")&&(t.defaultValue=e.defaultValue),e.options!=null&&e.hasOwnProperty("options")&&(t.options=u.google.protobuf.FieldOptions.toObject(e.options,l)),e.oneofIndex!=null&&e.hasOwnProperty("oneofIndex")&&(t.oneofIndex=e.oneofIndex),e.jsonName!=null&&e.hasOwnProperty("jsonName")&&(t.jsonName=e.jsonName),t},p.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},p.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/google.protobuf.FieldDescriptorProto"},p.Type=function(){let c={},e=Object.create(c);return e[c[1]="TYPE_DOUBLE"]=1,e[c[2]="TYPE_FLOAT"]=2,e[c[3]="TYPE_INT64"]=3,e[c[4]="TYPE_UINT64"]=4,e[c[5]="TYPE_INT32"]=5,e[c[6]="TYPE_FIXED64"]=6,e[c[7]="TYPE_FIXED32"]=7,e[c[8]="TYPE_BOOL"]=8,e[c[9]="TYPE_STRING"]=9,e[c[10]="TYPE_GROUP"]=10,e[c[11]="TYPE_MESSAGE"]=11,e[c[12]="TYPE_BYTES"]=12,e[c[13]="TYPE_UINT32"]=13,e[c[14]="TYPE_ENUM"]=14,e[c[15]="TYPE_SFIXED32"]=15,e[c[16]="TYPE_SFIXED64"]=16,e[c[17]="TYPE_SINT32"]=17,e[c[18]="TYPE_SINT64"]=18,e}(),p.Label=function(){let c={},e=Object.create(c);return e[c[1]="LABEL_OPTIONAL"]=1,e[c[2]="LABEL_REQUIRED"]=2,e[c[3]="LABEL_REPEATED"]=3,e}(),p}(),d.OneofDescriptorProto=function(){function p(c){if(c)for(let e=Object.keys(c),l=0;l>>3){case 1:{i.name=e.string();break}case 2:{i.options=u.google.protobuf.OneofOptions.decode(e,e.uint32());break}default:e.skipType(n&7);break}}return i},p.fromObject=function(e){if(e instanceof u.google.protobuf.OneofDescriptorProto)return e;let l=new u.google.protobuf.OneofDescriptorProto;if(e.name!=null&&(l.name=String(e.name)),e.options!=null){if(typeof e.options!="object")throw TypeError(".google.protobuf.OneofDescriptorProto.options: object expected");l.options=u.google.protobuf.OneofOptions.fromObject(e.options)}return l},p.toObject=function(e,l){l||(l={});let t={};return l.defaults&&(t.name="",t.options=null),e.name!=null&&e.hasOwnProperty("name")&&(t.name=e.name),e.options!=null&&e.hasOwnProperty("options")&&(t.options=u.google.protobuf.OneofOptions.toObject(e.options,l)),t},p.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},p.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/google.protobuf.OneofDescriptorProto"},p}(),d.EnumDescriptorProto=function(){function p(c){if(this.value=[],this.reservedRange=[],this.reservedName=[],c)for(let e=Object.keys(c),l=0;l>>3){case 1:{i.name=e.string();break}case 2:{i.value&&i.value.length||(i.value=[]),i.value.push(u.google.protobuf.EnumValueDescriptorProto.decode(e,e.uint32()));break}case 3:{i.options=u.google.protobuf.EnumOptions.decode(e,e.uint32());break}case 4:{i.reservedRange&&i.reservedRange.length||(i.reservedRange=[]),i.reservedRange.push(u.google.protobuf.EnumDescriptorProto.EnumReservedRange.decode(e,e.uint32()));break}case 5:{i.reservedName&&i.reservedName.length||(i.reservedName=[]),i.reservedName.push(e.string());break}default:e.skipType(n&7);break}}return i},p.fromObject=function(e){if(e instanceof u.google.protobuf.EnumDescriptorProto)return e;let l=new u.google.protobuf.EnumDescriptorProto;if(e.name!=null&&(l.name=String(e.name)),e.value){if(!Array.isArray(e.value))throw TypeError(".google.protobuf.EnumDescriptorProto.value: array expected");l.value=[];for(let t=0;t>>3){case 1:{n.start=l.int32();break}case 2:{n.end=l.int32();break}default:l.skipType(o&7);break}}return n},c.fromObject=function(l){if(l instanceof u.google.protobuf.EnumDescriptorProto.EnumReservedRange)return l;let t=new u.google.protobuf.EnumDescriptorProto.EnumReservedRange;return l.start!=null&&(t.start=l.start|0),l.end!=null&&(t.end=l.end|0),t},c.toObject=function(l,t){t||(t={});let i={};return t.defaults&&(i.start=0,i.end=0),l.start!=null&&l.hasOwnProperty("start")&&(i.start=l.start),l.end!=null&&l.hasOwnProperty("end")&&(i.end=l.end),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/google.protobuf.EnumDescriptorProto.EnumReservedRange"},c}(),p}(),d.EnumValueDescriptorProto=function(){function p(c){if(c)for(let e=Object.keys(c),l=0;l>>3){case 1:{i.name=e.string();break}case 2:{i.number=e.int32();break}case 3:{i.options=u.google.protobuf.EnumValueOptions.decode(e,e.uint32());break}default:e.skipType(n&7);break}}return i},p.fromObject=function(e){if(e instanceof u.google.protobuf.EnumValueDescriptorProto)return e;let l=new u.google.protobuf.EnumValueDescriptorProto;if(e.name!=null&&(l.name=String(e.name)),e.number!=null&&(l.number=e.number|0),e.options!=null){if(typeof e.options!="object")throw TypeError(".google.protobuf.EnumValueDescriptorProto.options: object expected");l.options=u.google.protobuf.EnumValueOptions.fromObject(e.options)}return l},p.toObject=function(e,l){l||(l={});let t={};return l.defaults&&(t.name="",t.number=0,t.options=null),e.name!=null&&e.hasOwnProperty("name")&&(t.name=e.name),e.number!=null&&e.hasOwnProperty("number")&&(t.number=e.number),e.options!=null&&e.hasOwnProperty("options")&&(t.options=u.google.protobuf.EnumValueOptions.toObject(e.options,l)),t},p.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},p.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/google.protobuf.EnumValueDescriptorProto"},p}(),d.ServiceDescriptorProto=function(){function p(c){if(this.method=[],c)for(let e=Object.keys(c),l=0;l>>3){case 1:{i.name=e.string();break}case 2:{i.method&&i.method.length||(i.method=[]),i.method.push(u.google.protobuf.MethodDescriptorProto.decode(e,e.uint32()));break}case 3:{i.options=u.google.protobuf.ServiceOptions.decode(e,e.uint32());break}default:e.skipType(n&7);break}}return i},p.fromObject=function(e){if(e instanceof u.google.protobuf.ServiceDescriptorProto)return e;let l=new u.google.protobuf.ServiceDescriptorProto;if(e.name!=null&&(l.name=String(e.name)),e.method){if(!Array.isArray(e.method))throw TypeError(".google.protobuf.ServiceDescriptorProto.method: array expected");l.method=[];for(let t=0;t>>3){case 1:{i.name=e.string();break}case 2:{i.inputType=e.string();break}case 3:{i.outputType=e.string();break}case 4:{i.options=u.google.protobuf.MethodOptions.decode(e,e.uint32());break}case 5:{i.clientStreaming=e.bool();break}case 6:{i.serverStreaming=e.bool();break}default:e.skipType(n&7);break}}return i},p.fromObject=function(e){if(e instanceof u.google.protobuf.MethodDescriptorProto)return e;let l=new u.google.protobuf.MethodDescriptorProto;if(e.name!=null&&(l.name=String(e.name)),e.inputType!=null&&(l.inputType=String(e.inputType)),e.outputType!=null&&(l.outputType=String(e.outputType)),e.options!=null){if(typeof e.options!="object")throw TypeError(".google.protobuf.MethodDescriptorProto.options: object expected");l.options=u.google.protobuf.MethodOptions.fromObject(e.options)}return e.clientStreaming!=null&&(l.clientStreaming=!!e.clientStreaming),e.serverStreaming!=null&&(l.serverStreaming=!!e.serverStreaming),l},p.toObject=function(e,l){l||(l={});let t={};return l.defaults&&(t.name="",t.inputType="",t.outputType="",t.options=null,t.clientStreaming=!1,t.serverStreaming=!1),e.name!=null&&e.hasOwnProperty("name")&&(t.name=e.name),e.inputType!=null&&e.hasOwnProperty("inputType")&&(t.inputType=e.inputType),e.outputType!=null&&e.hasOwnProperty("outputType")&&(t.outputType=e.outputType),e.options!=null&&e.hasOwnProperty("options")&&(t.options=u.google.protobuf.MethodOptions.toObject(e.options,l)),e.clientStreaming!=null&&e.hasOwnProperty("clientStreaming")&&(t.clientStreaming=e.clientStreaming),e.serverStreaming!=null&&e.hasOwnProperty("serverStreaming")&&(t.serverStreaming=e.serverStreaming),t},p.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},p.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/google.protobuf.MethodDescriptorProto"},p}(),d.FileOptions=function(){function p(c){if(this.uninterpretedOption=[],c)for(let e=Object.keys(c),l=0;l>>3){case 1:{i.javaPackage=e.string();break}case 8:{i.javaOuterClassname=e.string();break}case 10:{i.javaMultipleFiles=e.bool();break}case 20:{i.javaGenerateEqualsAndHash=e.bool();break}case 27:{i.javaStringCheckUtf8=e.bool();break}case 9:{i.optimizeFor=e.int32();break}case 11:{i.goPackage=e.string();break}case 16:{i.ccGenericServices=e.bool();break}case 17:{i.javaGenericServices=e.bool();break}case 18:{i.pyGenericServices=e.bool();break}case 42:{i.phpGenericServices=e.bool();break}case 23:{i.deprecated=e.bool();break}case 31:{i.ccEnableArenas=e.bool();break}case 36:{i.objcClassPrefix=e.string();break}case 37:{i.csharpNamespace=e.string();break}case 39:{i.swiftPrefix=e.string();break}case 40:{i.phpClassPrefix=e.string();break}case 41:{i.phpNamespace=e.string();break}case 44:{i.phpMetadataNamespace=e.string();break}case 45:{i.rubyPackage=e.string();break}case 999:{i.uninterpretedOption&&i.uninterpretedOption.length||(i.uninterpretedOption=[]),i.uninterpretedOption.push(u.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break}case 63001:{i[".gogoproto.goprotoGettersAll"]=e.bool();break}case 63002:{i[".gogoproto.goprotoEnumPrefixAll"]=e.bool();break}case 63003:{i[".gogoproto.goprotoStringerAll"]=e.bool();break}case 63004:{i[".gogoproto.verboseEqualAll"]=e.bool();break}case 63005:{i[".gogoproto.faceAll"]=e.bool();break}case 63006:{i[".gogoproto.gostringAll"]=e.bool();break}case 63007:{i[".gogoproto.populateAll"]=e.bool();break}case 63008:{i[".gogoproto.stringerAll"]=e.bool();break}case 63009:{i[".gogoproto.onlyoneAll"]=e.bool();break}case 63013:{i[".gogoproto.equalAll"]=e.bool();break}case 63014:{i[".gogoproto.descriptionAll"]=e.bool();break}case 63015:{i[".gogoproto.testgenAll"]=e.bool();break}case 63016:{i[".gogoproto.benchgenAll"]=e.bool();break}case 63017:{i[".gogoproto.marshalerAll"]=e.bool();break}case 63018:{i[".gogoproto.unmarshalerAll"]=e.bool();break}case 63019:{i[".gogoproto.stableMarshalerAll"]=e.bool();break}case 63020:{i[".gogoproto.sizerAll"]=e.bool();break}case 63021:{i[".gogoproto.goprotoEnumStringerAll"]=e.bool();break}case 63022:{i[".gogoproto.enumStringerAll"]=e.bool();break}case 63023:{i[".gogoproto.unsafeMarshalerAll"]=e.bool();break}case 63024:{i[".gogoproto.unsafeUnmarshalerAll"]=e.bool();break}case 63025:{i[".gogoproto.goprotoExtensionsMapAll"]=e.bool();break}case 63026:{i[".gogoproto.goprotoUnrecognizedAll"]=e.bool();break}case 63027:{i[".gogoproto.gogoprotoImport"]=e.bool();break}case 63028:{i[".gogoproto.protosizerAll"]=e.bool();break}case 63029:{i[".gogoproto.compareAll"]=e.bool();break}case 63030:{i[".gogoproto.typedeclAll"]=e.bool();break}case 63031:{i[".gogoproto.enumdeclAll"]=e.bool();break}case 63032:{i[".gogoproto.goprotoRegistration"]=e.bool();break}case 63033:{i[".gogoproto.messagenameAll"]=e.bool();break}case 63034:{i[".gogoproto.goprotoSizecacheAll"]=e.bool();break}case 63035:{i[".gogoproto.goprotoUnkeyedAll"]=e.bool();break}case 7e4:{i[".bilibili.extension.crane.biliGrpcHost"]=e.string();break}default:e.skipType(n&7);break}}return i},p.fromObject=function(e){if(e instanceof u.google.protobuf.FileOptions)return e;let l=new u.google.protobuf.FileOptions;switch(e.javaPackage!=null&&(l.javaPackage=String(e.javaPackage)),e.javaOuterClassname!=null&&(l.javaOuterClassname=String(e.javaOuterClassname)),e.javaMultipleFiles!=null&&(l.javaMultipleFiles=!!e.javaMultipleFiles),e.javaGenerateEqualsAndHash!=null&&(l.javaGenerateEqualsAndHash=!!e.javaGenerateEqualsAndHash),e.javaStringCheckUtf8!=null&&(l.javaStringCheckUtf8=!!e.javaStringCheckUtf8),e.optimizeFor){default:if(typeof e.optimizeFor=="number"){l.optimizeFor=e.optimizeFor;break}break;case"SPEED":case 1:l.optimizeFor=1;break;case"CODE_SIZE":case 2:l.optimizeFor=2;break;case"LITE_RUNTIME":case 3:l.optimizeFor=3;break}if(e.goPackage!=null&&(l.goPackage=String(e.goPackage)),e.ccGenericServices!=null&&(l.ccGenericServices=!!e.ccGenericServices),e.javaGenericServices!=null&&(l.javaGenericServices=!!e.javaGenericServices),e.pyGenericServices!=null&&(l.pyGenericServices=!!e.pyGenericServices),e.phpGenericServices!=null&&(l.phpGenericServices=!!e.phpGenericServices),e.deprecated!=null&&(l.deprecated=!!e.deprecated),e.ccEnableArenas!=null&&(l.ccEnableArenas=!!e.ccEnableArenas),e.objcClassPrefix!=null&&(l.objcClassPrefix=String(e.objcClassPrefix)),e.csharpNamespace!=null&&(l.csharpNamespace=String(e.csharpNamespace)),e.swiftPrefix!=null&&(l.swiftPrefix=String(e.swiftPrefix)),e.phpClassPrefix!=null&&(l.phpClassPrefix=String(e.phpClassPrefix)),e.phpNamespace!=null&&(l.phpNamespace=String(e.phpNamespace)),e.phpMetadataNamespace!=null&&(l.phpMetadataNamespace=String(e.phpMetadataNamespace)),e.rubyPackage!=null&&(l.rubyPackage=String(e.rubyPackage)),e.uninterpretedOption){if(!Array.isArray(e.uninterpretedOption))throw TypeError(".google.protobuf.FileOptions.uninterpretedOption: array expected");l.uninterpretedOption=[];for(let t=0;t>>3){case 1:{i.messageSetWireFormat=e.bool();break}case 2:{i.noStandardDescriptorAccessor=e.bool();break}case 3:{i.deprecated=e.bool();break}case 7:{i.mapEntry=e.bool();break}case 999:{i.uninterpretedOption&&i.uninterpretedOption.length||(i.uninterpretedOption=[]),i.uninterpretedOption.push(u.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break}case 64001:{i[".gogoproto.goprotoGetters"]=e.bool();break}case 64003:{i[".gogoproto.goprotoStringer"]=e.bool();break}case 64004:{i[".gogoproto.verboseEqual"]=e.bool();break}case 64005:{i[".gogoproto.face"]=e.bool();break}case 64006:{i[".gogoproto.gostring"]=e.bool();break}case 64007:{i[".gogoproto.populate"]=e.bool();break}case 67008:{i[".gogoproto.stringer"]=e.bool();break}case 64009:{i[".gogoproto.onlyone"]=e.bool();break}case 64013:{i[".gogoproto.equal"]=e.bool();break}case 64014:{i[".gogoproto.description"]=e.bool();break}case 64015:{i[".gogoproto.testgen"]=e.bool();break}case 64016:{i[".gogoproto.benchgen"]=e.bool();break}case 64017:{i[".gogoproto.marshaler"]=e.bool();break}case 64018:{i[".gogoproto.unmarshaler"]=e.bool();break}case 64019:{i[".gogoproto.stableMarshaler"]=e.bool();break}case 64020:{i[".gogoproto.sizer"]=e.bool();break}case 64023:{i[".gogoproto.unsafeMarshaler"]=e.bool();break}case 64024:{i[".gogoproto.unsafeUnmarshaler"]=e.bool();break}case 64025:{i[".gogoproto.goprotoExtensionsMap"]=e.bool();break}case 64026:{i[".gogoproto.goprotoUnrecognized"]=e.bool();break}case 64028:{i[".gogoproto.protosizer"]=e.bool();break}case 64029:{i[".gogoproto.compare"]=e.bool();break}case 64030:{i[".gogoproto.typedecl"]=e.bool();break}case 64033:{i[".gogoproto.messagename"]=e.bool();break}case 64034:{i[".gogoproto.goprotoSizecache"]=e.bool();break}case 64035:{i[".gogoproto.goprotoUnkeyed"]=e.bool();break}default:e.skipType(n&7);break}}return i},p.fromObject=function(e){if(e instanceof u.google.protobuf.MessageOptions)return e;let l=new u.google.protobuf.MessageOptions;if(e.messageSetWireFormat!=null&&(l.messageSetWireFormat=!!e.messageSetWireFormat),e.noStandardDescriptorAccessor!=null&&(l.noStandardDescriptorAccessor=!!e.noStandardDescriptorAccessor),e.deprecated!=null&&(l.deprecated=!!e.deprecated),e.mapEntry!=null&&(l.mapEntry=!!e.mapEntry),e.uninterpretedOption){if(!Array.isArray(e.uninterpretedOption))throw TypeError(".google.protobuf.MessageOptions.uninterpretedOption: array expected");l.uninterpretedOption=[];for(let t=0;t>>3){case 1:{i.ctype=e.int32();break}case 2:{i.packed=e.bool();break}case 6:{i.jstype=e.int32();break}case 5:{i.lazy=e.bool();break}case 3:{i.deprecated=e.bool();break}case 10:{i.weak=e.bool();break}case 999:{i.uninterpretedOption&&i.uninterpretedOption.length||(i.uninterpretedOption=[]),i.uninterpretedOption.push(u.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break}case 75001:{i[".bilibili.app.distribution.v1.refenum"]=e.string();break}case 75002:{i[".bilibili.app.distribution.v1.inheritFrom"]=e.string();break}case 75003:{i[".bilibili.app.distribution.v1.fieldRuntimeSettingTitle"]=e.string();break}case 65001:{i[".gogoproto.nullable"]=e.bool();break}case 65002:{i[".gogoproto.embed"]=e.bool();break}case 65003:{i[".gogoproto.customtype"]=e.string();break}case 65004:{i[".gogoproto.customname"]=e.string();break}case 65005:{i[".gogoproto.jsontag"]=e.string();break}case 65006:{i[".gogoproto.moretags"]=e.string();break}case 65007:{i[".gogoproto.casttype"]=e.string();break}case 65008:{i[".gogoproto.castkey"]=e.string();break}case 65009:{i[".gogoproto.castvalue"]=e.string();break}case 65010:{i[".gogoproto.stdtime"]=e.bool();break}case 65011:{i[".gogoproto.stdduration"]=e.bool();break}case 65012:{i[".gogoproto.wktpointer"]=e.bool();break}default:e.skipType(n&7);break}}return i},p.fromObject=function(e){if(e instanceof u.google.protobuf.FieldOptions)return e;let l=new u.google.protobuf.FieldOptions;switch(e.ctype){default:if(typeof e.ctype=="number"){l.ctype=e.ctype;break}break;case"STRING":case 0:l.ctype=0;break;case"CORD":case 1:l.ctype=1;break;case"STRING_PIECE":case 2:l.ctype=2;break}switch(e.packed!=null&&(l.packed=!!e.packed),e.jstype){default:if(typeof e.jstype=="number"){l.jstype=e.jstype;break}break;case"JS_NORMAL":case 0:l.jstype=0;break;case"JS_STRING":case 1:l.jstype=1;break;case"JS_NUMBER":case 2:l.jstype=2;break}if(e.lazy!=null&&(l.lazy=!!e.lazy),e.deprecated!=null&&(l.deprecated=!!e.deprecated),e.weak!=null&&(l.weak=!!e.weak),e.uninterpretedOption){if(!Array.isArray(e.uninterpretedOption))throw TypeError(".google.protobuf.FieldOptions.uninterpretedOption: array expected");l.uninterpretedOption=[];for(let t=0;t>>3){case 999:{i.uninterpretedOption&&i.uninterpretedOption.length||(i.uninterpretedOption=[]),i.uninterpretedOption.push(u.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break}default:e.skipType(n&7);break}}return i},p.fromObject=function(e){if(e instanceof u.google.protobuf.OneofOptions)return e;let l=new u.google.protobuf.OneofOptions;if(e.uninterpretedOption){if(!Array.isArray(e.uninterpretedOption))throw TypeError(".google.protobuf.OneofOptions.uninterpretedOption: array expected");l.uninterpretedOption=[];for(let t=0;t>>3){case 2:{i.allowAlias=e.bool();break}case 3:{i.deprecated=e.bool();break}case 999:{i.uninterpretedOption&&i.uninterpretedOption.length||(i.uninterpretedOption=[]),i.uninterpretedOption.push(u.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break}case 62001:{i[".gogoproto.goprotoEnumPrefix"]=e.bool();break}case 62021:{i[".gogoproto.goprotoEnumStringer"]=e.bool();break}case 62022:{i[".gogoproto.enumStringer"]=e.bool();break}case 62023:{i[".gogoproto.enumCustomname"]=e.string();break}case 62024:{i[".gogoproto.enumdecl"]=e.bool();break}default:e.skipType(n&7);break}}return i},p.fromObject=function(e){if(e instanceof u.google.protobuf.EnumOptions)return e;let l=new u.google.protobuf.EnumOptions;if(e.allowAlias!=null&&(l.allowAlias=!!e.allowAlias),e.deprecated!=null&&(l.deprecated=!!e.deprecated),e.uninterpretedOption){if(!Array.isArray(e.uninterpretedOption))throw TypeError(".google.protobuf.EnumOptions.uninterpretedOption: array expected");l.uninterpretedOption=[];for(let t=0;t>>3){case 1:{i.deprecated=e.bool();break}case 999:{i.uninterpretedOption&&i.uninterpretedOption.length||(i.uninterpretedOption=[]),i.uninterpretedOption.push(u.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break}case 66001:{i[".gogoproto.enumvalueCustomname"]=e.string();break}default:e.skipType(n&7);break}}return i},p.fromObject=function(e){if(e instanceof u.google.protobuf.EnumValueOptions)return e;let l=new u.google.protobuf.EnumValueOptions;if(e.deprecated!=null&&(l.deprecated=!!e.deprecated),e.uninterpretedOption){if(!Array.isArray(e.uninterpretedOption))throw TypeError(".google.protobuf.EnumValueOptions.uninterpretedOption: array expected");l.uninterpretedOption=[];for(let t=0;t>>3){case 33:{i.deprecated=e.bool();break}case 999:{i.uninterpretedOption&&i.uninterpretedOption.length||(i.uninterpretedOption=[]),i.uninterpretedOption.push(u.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break}case 1049:{i[".google.api.defaultHost"]=e.string();break}case 1050:{i[".google.api.oauthScopes"]=e.string();break}default:e.skipType(n&7);break}}return i},p.fromObject=function(e){if(e instanceof u.google.protobuf.ServiceOptions)return e;let l=new u.google.protobuf.ServiceOptions;if(e.deprecated!=null&&(l.deprecated=!!e.deprecated),e.uninterpretedOption){if(!Array.isArray(e.uninterpretedOption))throw TypeError(".google.protobuf.ServiceOptions.uninterpretedOption: array expected");l.uninterpretedOption=[];for(let t=0;t>>3){case 33:{i.deprecated=e.bool();break}case 34:{i.idempotencyLevel=e.int32();break}case 999:{i.uninterpretedOption&&i.uninterpretedOption.length||(i.uninterpretedOption=[]),i.uninterpretedOption.push(u.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break}case 1051:{i[".google.api.methodSignature"]&&i[".google.api.methodSignature"].length||(i[".google.api.methodSignature"]=[]),i[".google.api.methodSignature"].push(e.string());break}case 72295728:{i[".google.api.http"]=u.google.api.HttpRule.decode(e,e.uint32());break}default:e.skipType(n&7);break}}return i},p.fromObject=function(e){if(e instanceof u.google.protobuf.MethodOptions)return e;let l=new u.google.protobuf.MethodOptions;switch(e.deprecated!=null&&(l.deprecated=!!e.deprecated),e.idempotencyLevel){default:if(typeof e.idempotencyLevel=="number"){l.idempotencyLevel=e.idempotencyLevel;break}break;case"IDEMPOTENCY_UNKNOWN":case 0:l.idempotencyLevel=0;break;case"NO_SIDE_EFFECTS":case 1:l.idempotencyLevel=1;break;case"IDEMPOTENT":case 2:l.idempotencyLevel=2;break}if(e.uninterpretedOption){if(!Array.isArray(e.uninterpretedOption))throw TypeError(".google.protobuf.MethodOptions.uninterpretedOption: array expected");l.uninterpretedOption=[];for(let t=0;t>>3){case 2:{i.name&&i.name.length||(i.name=[]),i.name.push(u.google.protobuf.UninterpretedOption.NamePart.decode(e,e.uint32()));break}case 3:{i.identifierValue=e.string();break}case 4:{i.positiveIntValue=e.uint64();break}case 5:{i.negativeIntValue=e.int64();break}case 6:{i.doubleValue=e.double();break}case 7:{i.stringValue=e.bytes();break}case 8:{i.aggregateValue=e.string();break}default:e.skipType(n&7);break}}return i},p.fromObject=function(e){if(e instanceof u.google.protobuf.UninterpretedOption)return e;let l=new u.google.protobuf.UninterpretedOption;if(e.name){if(!Array.isArray(e.name))throw TypeError(".google.protobuf.UninterpretedOption.name: array expected");l.name=[];for(let t=0;t>>0,e.positiveIntValue.high>>>0).toNumber(!0))),e.negativeIntValue!=null&&(r.Long?(l.negativeIntValue=r.Long.fromValue(e.negativeIntValue)).unsigned=!1:typeof e.negativeIntValue=="string"?l.negativeIntValue=parseInt(e.negativeIntValue,10):typeof e.negativeIntValue=="number"?l.negativeIntValue=e.negativeIntValue:typeof e.negativeIntValue=="object"&&(l.negativeIntValue=new r.LongBits(e.negativeIntValue.low>>>0,e.negativeIntValue.high>>>0).toNumber())),e.doubleValue!=null&&(l.doubleValue=Number(e.doubleValue)),e.stringValue!=null&&(typeof e.stringValue=="string"?r.base64.decode(e.stringValue,l.stringValue=r.newBuffer(r.base64.length(e.stringValue)),0):e.stringValue.length>=0&&(l.stringValue=e.stringValue)),e.aggregateValue!=null&&(l.aggregateValue=String(e.aggregateValue)),l},p.toObject=function(e,l){l||(l={});let t={};if((l.arrays||l.defaults)&&(t.name=[]),l.defaults){if(t.identifierValue="",r.Long){let i=new r.Long(0,0,!0);t.positiveIntValue=l.longs===String?i.toString():l.longs===Number?i.toNumber():i}else t.positiveIntValue=l.longs===String?"0":0;if(r.Long){let i=new r.Long(0,0,!1);t.negativeIntValue=l.longs===String?i.toString():l.longs===Number?i.toNumber():i}else t.negativeIntValue=l.longs===String?"0":0;t.doubleValue=0,l.bytes===String?t.stringValue="":(t.stringValue=[],l.bytes!==Array&&(t.stringValue=r.newBuffer(t.stringValue))),t.aggregateValue=""}if(e.name&&e.name.length){t.name=[];for(let i=0;i>>0,e.positiveIntValue.high>>>0).toNumber(!0):e.positiveIntValue),e.negativeIntValue!=null&&e.hasOwnProperty("negativeIntValue")&&(typeof e.negativeIntValue=="number"?t.negativeIntValue=l.longs===String?String(e.negativeIntValue):e.negativeIntValue:t.negativeIntValue=l.longs===String?r.Long.prototype.toString.call(e.negativeIntValue):l.longs===Number?new r.LongBits(e.negativeIntValue.low>>>0,e.negativeIntValue.high>>>0).toNumber():e.negativeIntValue),e.doubleValue!=null&&e.hasOwnProperty("doubleValue")&&(t.doubleValue=l.json&&!isFinite(e.doubleValue)?String(e.doubleValue):e.doubleValue),e.stringValue!=null&&e.hasOwnProperty("stringValue")&&(t.stringValue=l.bytes===String?r.base64.encode(e.stringValue,0,e.stringValue.length):l.bytes===Array?Array.prototype.slice.call(e.stringValue):e.stringValue),e.aggregateValue!=null&&e.hasOwnProperty("aggregateValue")&&(t.aggregateValue=e.aggregateValue),t},p.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},p.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/google.protobuf.UninterpretedOption"},p.NamePart=function(){function c(e){if(e)for(let l=Object.keys(e),t=0;t>>3){case 1:{n.namePart=l.string();break}case 2:{n.isExtension=l.bool();break}default:l.skipType(o&7);break}}if(!n.hasOwnProperty("namePart"))throw r.ProtocolError("missing required 'namePart'",{instance:n});if(!n.hasOwnProperty("isExtension"))throw r.ProtocolError("missing required 'isExtension'",{instance:n});return n},c.fromObject=function(l){if(l instanceof u.google.protobuf.UninterpretedOption.NamePart)return l;let t=new u.google.protobuf.UninterpretedOption.NamePart;return l.namePart!=null&&(t.namePart=String(l.namePart)),l.isExtension!=null&&(t.isExtension=!!l.isExtension),t},c.toObject=function(l,t){t||(t={});let i={};return t.defaults&&(i.namePart="",i.isExtension=!1),l.namePart!=null&&l.hasOwnProperty("namePart")&&(i.namePart=l.namePart),l.isExtension!=null&&l.hasOwnProperty("isExtension")&&(i.isExtension=l.isExtension),i},c.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},c.getTypeUrl=function(l){return l===void 0&&(l="type.googleapis.com"),l+"/google.protobuf.UninterpretedOption.NamePart"},c}(),p}(),d.SourceCodeInfo=function(){function p(c){if(this.location=[],c)for(let e=Object.keys(c),l=0;l>>3){case 1:{i.location&&i.location.length||(i.location=[]),i.location.push(u.google.protobuf.SourceCodeInfo.Location.decode(e,e.uint32()));break}default:e.skipType(n&7);break}}return i},p.fromObject=function(e){if(e instanceof u.google.protobuf.SourceCodeInfo)return e;let l=new u.google.protobuf.SourceCodeInfo;if(e.location){if(!Array.isArray(e.location))throw TypeError(".google.protobuf.SourceCodeInfo.location: array expected");l.location=[];for(let t=0;t>>3){case 1:{if(n.path&&n.path.length||(n.path=[]),(o&7)===2){let a=l.uint32()+l.pos;for(;l.pos>>3){case 1:{i.annotation&&i.annotation.length||(i.annotation=[]),i.annotation.push(u.google.protobuf.GeneratedCodeInfo.Annotation.decode(e,e.uint32()));break}default:e.skipType(n&7);break}}return i},p.fromObject=function(e){if(e instanceof u.google.protobuf.GeneratedCodeInfo)return e;let l=new u.google.protobuf.GeneratedCodeInfo;if(e.annotation){if(!Array.isArray(e.annotation))throw TypeError(".google.protobuf.GeneratedCodeInfo.annotation: array expected");l.annotation=[];for(let t=0;t>>3){case 1:{if(n.path&&n.path.length||(n.path=[]),(o&7)===2){let a=l.uint32()+l.pos;for(;l.pos>>3){default:e.skipType(n&7);break}}return i},p.fromObject=function(e){return e instanceof u.google.protobuf.Empty?e:new u.google.protobuf.Empty},p.toObject=function(){return{}},p.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},p.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/google.protobuf.Empty"},p}(),d.Timestamp=function(){function p(c){if(c)for(let e=Object.keys(c),l=0;l>>3){case 1:{i.seconds=e.int64();break}case 2:{i.nanos=e.int32();break}default:e.skipType(n&7);break}}return i},p.fromObject=function(e){if(e instanceof u.google.protobuf.Timestamp)return e;let l=new u.google.protobuf.Timestamp;return e.seconds!=null&&(r.Long?(l.seconds=r.Long.fromValue(e.seconds)).unsigned=!1:typeof e.seconds=="string"?l.seconds=parseInt(e.seconds,10):typeof e.seconds=="number"?l.seconds=e.seconds:typeof e.seconds=="object"&&(l.seconds=new r.LongBits(e.seconds.low>>>0,e.seconds.high>>>0).toNumber())),e.nanos!=null&&(l.nanos=e.nanos|0),l},p.toObject=function(e,l){l||(l={});let t={};if(l.defaults){if(r.Long){let i=new r.Long(0,0,!1);t.seconds=l.longs===String?i.toString():l.longs===Number?i.toNumber():i}else t.seconds=l.longs===String?"0":0;t.nanos=0}return e.seconds!=null&&e.hasOwnProperty("seconds")&&(typeof e.seconds=="number"?t.seconds=l.longs===String?String(e.seconds):e.seconds:t.seconds=l.longs===String?r.Long.prototype.toString.call(e.seconds):l.longs===Number?new r.LongBits(e.seconds.low>>>0,e.seconds.high>>>0).toNumber():e.seconds),e.nanos!=null&&e.hasOwnProperty("nanos")&&(t.nanos=e.nanos),t},p.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},p.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/google.protobuf.Timestamp"},p}(),d}(),O.api=function(){let d={};return d.Http=function(){function p(c){if(this.rules=[],c)for(let e=Object.keys(c),l=0;l>>3){case 1:{i.rules&&i.rules.length||(i.rules=[]),i.rules.push(u.google.api.HttpRule.decode(e,e.uint32()));break}case 2:{i.fullyDecodeReservedExpansion=e.bool();break}default:e.skipType(n&7);break}}return i},p.fromObject=function(e){if(e instanceof u.google.api.Http)return e;let l=new u.google.api.Http;if(e.rules){if(!Array.isArray(e.rules))throw TypeError(".google.api.Http.rules: array expected");l.rules=[];for(let t=0;t>>3){case 1:{n.selector=l.string();break}case 2:{n.get=l.string();break}case 3:{n.put=l.string();break}case 4:{n.post=l.string();break}case 5:{n.delete=l.string();break}case 6:{n.patch=l.string();break}case 8:{n.custom=u.google.api.CustomHttpPattern.decode(l,l.uint32());break}case 7:{n.body=l.string();break}case 12:{n.responseBody=l.string();break}case 11:{n.additionalBindings&&n.additionalBindings.length||(n.additionalBindings=[]),n.additionalBindings.push(u.google.api.HttpRule.decode(l,l.uint32()));break}default:l.skipType(o&7);break}}return n},p.fromObject=function(l){if(l instanceof u.google.api.HttpRule)return l;let t=new u.google.api.HttpRule;if(l.selector!=null&&(t.selector=String(l.selector)),l.get!=null&&(t.get=String(l.get)),l.put!=null&&(t.put=String(l.put)),l.post!=null&&(t.post=String(l.post)),l.delete!=null&&(t.delete=String(l.delete)),l.patch!=null&&(t.patch=String(l.patch)),l.custom!=null){if(typeof l.custom!="object")throw TypeError(".google.api.HttpRule.custom: object expected");t.custom=u.google.api.CustomHttpPattern.fromObject(l.custom)}if(l.body!=null&&(t.body=String(l.body)),l.responseBody!=null&&(t.responseBody=String(l.responseBody)),l.additionalBindings){if(!Array.isArray(l.additionalBindings))throw TypeError(".google.api.HttpRule.additionalBindings: array expected");t.additionalBindings=[];for(let i=0;i>>3){case 1:{i.kind=e.string();break}case 2:{i.path=e.string();break}default:e.skipType(n&7);break}}return i},p.fromObject=function(e){if(e instanceof u.google.api.CustomHttpPattern)return e;let l=new u.google.api.CustomHttpPattern;return e.kind!=null&&(l.kind=String(e.kind)),e.path!=null&&(l.path=String(e.path)),l},p.toObject=function(e,l){l||(l={});let t={};return l.defaults&&(t.kind="",t.path=""),e.kind!=null&&e.hasOwnProperty("kind")&&(t.kind=e.kind),e.path!=null&&e.hasOwnProperty("path")&&(t.path=e.path),t},p.prototype.toJSON=function(){return this.constructor.toObject(this,b.util.toJSONOptions)},p.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/google.api.CustomHttpPattern"},p}(),d}(),O})(),nu=r.Long;export{b as $protobuf,nu as Long,Kr as archive,Wr as bilibili,u as default,Zr as dynamic,tu as gateway,Yr as gogoproto,iu as google,Qr as infoc,Xr as opus,jr as vote}; +/*! Bundled license information: + +long/umd/index.js: + (** + * @license + * Copyright 2009 The Closure Library Authors + * Copyright 2020 Daniel Wirtz / The long.js Authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * SPDX-License-Identifier: Apache-2.0 + *) +*/ diff --git a/arkguard/test/grammar/big_files/kntr-ark.js b/arkguard/test/grammar/big_files/kntr-ark.js new file mode 100644 index 0000000000..40a9bb3880 --- /dev/null +++ b/arkguard/test/grammar/big_files/kntr-ark.js @@ -0,0 +1,409920 @@ +//region block: polyfills +if (typeof ArrayBuffer.isView === 'undefined') { + ArrayBuffer.isView = function (a) { + return a != null && a.__proto__ != null && a.__proto__.__proto__ === Int8Array.prototype.__proto__; + }; +} +if (typeof Array.prototype.fill === 'undefined') { + // Polyfill from https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/fill#Polyfill + Object.defineProperty(Array.prototype, 'fill', {value: function (value) { + // Steps 1-2. + if (this == null) { + throw new TypeError('this is null or not defined'); + } + var O = Object(this); // Steps 3-5. + var len = O.length >>> 0; // Steps 6-7. + var start = arguments[1]; + var relativeStart = start >> 0; // Step 8. + var k = relativeStart < 0 ? Math.max(len + relativeStart, 0) : Math.min(relativeStart, len); // Steps 9-10. + var end = arguments[2]; + var relativeEnd = end === undefined ? len : end >> 0; // Step 11. + var finalValue = relativeEnd < 0 ? Math.max(len + relativeEnd, 0) : Math.min(relativeEnd, len); // Step 12. + while (k < finalValue) { + O[k] = value; + k++; + } + ; // Step 13. + return O; + }}); +} +[Int8Array, Int16Array, Uint16Array, Int32Array, Float32Array, Float64Array].forEach(function (TypedArray) { + if (typeof TypedArray.prototype.fill === 'undefined') { + Object.defineProperty(TypedArray.prototype, 'fill', {value: Array.prototype.fill}); + } +}); +if (typeof Math.clz32 === 'undefined') { + Math.clz32 = function (log, LN2) { + return function (x) { + var asUint = x >>> 0; + if (asUint === 0) { + return 32; + } + return 31 - (log(asUint) / LN2 | 0) | 0; // the "| 0" acts like math.floor + }; + }(Math.log, Math.LN2); +} +if (typeof Math.imul === 'undefined') { + Math.imul = function imul(a, b) { + return (a & 4.29490176E9) * (b & 65535) + (a & 65535) * (b | 0) | 0; + }; +} +//endregion +(function (root, factory) { + if (typeof define === 'function' && define.amd) + define(['exports'], factory); + else if (typeof exports === 'object') + factory(module.exports); + else + root.kntr = factory(typeof kntr === 'undefined' ? {} : kntr); +}(this, function (_) { + 'use strict'; + //region block: imports + var clz32 = Math.clz32; + var isView = ArrayBuffer.isView; + var imul = Math.imul; + //endregion + //region block: pre-declaration + class CharSequence {} + class Number_0 { + constructor() { + } + } + class Unit { + constructor() { + } + toString() { + return 'kotlin.Unit'; + } + } + class ByteCompanionObject { + constructor() { + this.MIN_VALUE = -128; + this.MAX_VALUE = 127; + this.SIZE_BYTES = 1; + this.SIZE_BITS = 8; + } + get_MIN_VALUE_7nmmor_k$() { + return this.MIN_VALUE; + } + get_MAX_VALUE_54a9lf_k$() { + return this.MAX_VALUE; + } + get_SIZE_BYTES_qphg4q_k$() { + return this.SIZE_BYTES; + } + get_SIZE_BITS_7qhjj9_k$() { + return this.SIZE_BITS; + } + } + class IntCompanionObject { + constructor() { + this.MIN_VALUE = -2147483648; + this.MAX_VALUE = 2147483647; + this.SIZE_BYTES = 4; + this.SIZE_BITS = 32; + } + get_MIN_VALUE_7nmmor_k$() { + return this.MIN_VALUE; + } + get_MAX_VALUE_54a9lf_k$() { + return this.MAX_VALUE; + } + get_SIZE_BYTES_qphg4q_k$() { + return this.SIZE_BYTES; + } + get_SIZE_BITS_7qhjj9_k$() { + return this.SIZE_BITS; + } + } + class FloatCompanionObject { + constructor() { + this.MIN_VALUE = 1.4E-45; + this.MAX_VALUE = 3.4028235E38; + this.POSITIVE_INFINITY = Infinity; + this.NEGATIVE_INFINITY = -Infinity; + this.NaN = NaN; + this.SIZE_BYTES = 4; + this.SIZE_BITS = 32; + } + get_MIN_VALUE_7nmmor_k$() { + return this.MIN_VALUE; + } + get_MAX_VALUE_54a9lf_k$() { + return this.MAX_VALUE; + } + get_POSITIVE_INFINITY_yq30fv_k$() { + return this.POSITIVE_INFINITY; + } + get_NEGATIVE_INFINITY_e9bp9z_k$() { + return this.NEGATIVE_INFINITY; + } + get_NaN_18jnv2_k$() { + return this.NaN; + } + get_SIZE_BYTES_qphg4q_k$() { + return this.SIZE_BYTES; + } + get_SIZE_BITS_7qhjj9_k$() { + return this.SIZE_BITS; + } + } + class DoubleCompanionObject { + constructor() { + this.MIN_VALUE = 4.9E-324; + this.MAX_VALUE = 1.7976931348623157E308; + this.POSITIVE_INFINITY = Infinity; + this.NEGATIVE_INFINITY = -Infinity; + this.NaN = NaN; + this.SIZE_BYTES = 8; + this.SIZE_BITS = 64; + } + get_MIN_VALUE_7nmmor_k$() { + return this.MIN_VALUE; + } + get_MAX_VALUE_54a9lf_k$() { + return this.MAX_VALUE; + } + get_POSITIVE_INFINITY_yq30fv_k$() { + return this.POSITIVE_INFINITY; + } + get_NEGATIVE_INFINITY_e9bp9z_k$() { + return this.NEGATIVE_INFINITY; + } + get_NaN_18jnv2_k$() { + return this.NaN; + } + get_SIZE_BYTES_qphg4q_k$() { + return this.SIZE_BYTES; + } + get_SIZE_BITS_7qhjj9_k$() { + return this.SIZE_BITS; + } + } + class Collection {} + class AbstractCollection { + static new_kotlin_collections_AbstractCollection_s1tlv0_k$($box) { + var $this = createThis(this, $box); + return $this; + } + contains_aljjnj_k$(element) { + var tmp$ret$0; + $l$block_0: { + // Inline function 'kotlin.collections.any' call + var this_0 = this; + var tmp; + if (isInterface(this_0, Collection)) { + tmp = this_0.isEmpty_y1axqb_k$(); + } else { + tmp = false; + } + if (tmp) { + tmp$ret$0 = false; + break $l$block_0; + } + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element_0 = tmp0_iterator.next_20eer_k$(); + var tmp$ret$1; + // Inline function 'kotlin.collections.AbstractCollection.contains.' call + var it = element_0; + tmp$ret$1 = equals(it, element); + if (tmp$ret$1) { + tmp$ret$0 = true; + break $l$block_0; + } + } + tmp$ret$0 = false; + } + return tmp$ret$0; + } + containsAll_bwkf3g_k$(elements) { + var tmp$ret$0; + $l$block_0: { + // Inline function 'kotlin.collections.all' call + var this_0 = elements; + var tmp; + if (isInterface(this_0, Collection)) { + tmp = this_0.isEmpty_y1axqb_k$(); + } else { + tmp = false; + } + if (tmp) { + tmp$ret$0 = true; + break $l$block_0; + } + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$1; + // Inline function 'kotlin.collections.AbstractCollection.containsAll.' call + var it = element; + tmp$ret$1 = this.contains_aljjnj_k$(it); + if (!tmp$ret$1) { + tmp$ret$0 = false; + break $l$block_0; + } + } + tmp$ret$0 = true; + } + return tmp$ret$0; + } + isEmpty_y1axqb_k$() { + return this.get_size_woubt6_k$() === 0; + } + toString() { + return joinToString_0(this, ', ', '[', ']', VOID, VOID, AbstractCollection$toString$lambda(this)); + } + toArray() { + return collectionToArray(this); + } + } + class AbstractMutableCollection extends AbstractCollection { + static new_kotlin_collections_AbstractMutableCollection_jgoj1k_k$() { + var $this = this.new_kotlin_collections_AbstractCollection_s1tlv0_k$(); + return $this; + } + toJSON() { + return this.toArray(); + } + checkIsMutable_h5js84_k$() { + } + } + class IteratorImpl { + constructor($outer) { + this.$this_1 = $outer; + this.index_1 = 0; + this.last_1 = -1; + } + hasNext_bitz1p_k$() { + return this.index_1 < this.$this_1.get_size_woubt6_k$(); + } + next_20eer_k$() { + if (!this.hasNext_bitz1p_k$()) + throw NoSuchElementException.new_kotlin_NoSuchElementException_wy3d4q_k$(); + var tmp = this; + var tmp0_this = this; + var tmp1 = tmp0_this.index_1; + tmp0_this.index_1 = tmp1 + 1 | 0; + tmp.last_1 = tmp1; + return this.$this_1.get_c1px32_k$(this.last_1); + } + } + class List {} + class AbstractMutableList extends AbstractMutableCollection { + static new_kotlin_collections_AbstractMutableList_ddn594_k$() { + var $this = this.new_kotlin_collections_AbstractMutableCollection_jgoj1k_k$(); + $this.modCount_1 = 0; + return $this; + } + add_utx5q5_k$(element) { + this.checkIsMutable_h5js84_k$(); + this.add_dl6gt3_k$(this.get_size_woubt6_k$(), element); + return true; + } + iterator_jk1svi_k$() { + return new IteratorImpl(this); + } + contains_aljjnj_k$(element) { + return this.indexOf_si1fv9_k$(element) >= 0; + } + indexOf_si1fv9_k$(element) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.indexOfFirst' call + var this_0 = this; + var index = 0; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var item = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'kotlin.collections.AbstractMutableList.indexOf.' call + var it = item; + tmp$ret$0 = equals(it, element); + if (tmp$ret$0) { + tmp$ret$1 = index; + break $l$block; + } + var tmp1 = index; + index = tmp1 + 1 | 0; + Unit_instance; + } + tmp$ret$1 = -1; + } + return tmp$ret$1; + } + equals(other) { + if (other === this) + return true; + if (!(!(other == null) ? isInterface(other, List) : false)) + return false; + return Companion_instance_4.orderedEquals_pczg6k_k$(this, other); + } + hashCode() { + return Companion_instance_4.orderedHashCode_7x61fj_k$(this); + } + } + class Map_0 {} + class AbstractMap { + static new_kotlin_collections_AbstractMap_5v98o7_k$() { + Companion_instance_5; + var $this = createThis(this); + $this._keys_1 = null; + $this._values_1 = null; + return $this; + } + containsKey_aw81wo_k$(key) { + return !(implFindEntry(this, key) == null); + } + containsValue_yf2ykl_k$(value) { + var tmp$ret$0; + $l$block_0: { + // Inline function 'kotlin.collections.any' call + var this_0 = this.get_entries_p20ztl_k$(); + var tmp; + if (isInterface(this_0, Collection)) { + tmp = this_0.isEmpty_y1axqb_k$(); + } else { + tmp = false; + } + if (tmp) { + tmp$ret$0 = false; + break $l$block_0; + } + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$1; + // Inline function 'kotlin.collections.AbstractMap.containsValue.' call + var it = element; + tmp$ret$1 = equals(it.get_value_j01efc_k$(), value); + if (tmp$ret$1) { + tmp$ret$0 = true; + break $l$block_0; + } + } + tmp$ret$0 = false; + } + return tmp$ret$0; + } + containsEntry_x9fcvg_k$(entry) { + if (!(!(entry == null) ? isInterface(entry, Entry) : false)) + return false; + var key = entry.get_key_18j28a_k$(); + var value = entry.get_value_j01efc_k$(); + var tmp$ret$0; + // Inline function 'kotlin.collections.get' call + var this_0 = this; + var key_0 = key; + tmp$ret$0 = (isInterface(this_0, Map_0) ? this_0 : THROW_CCE()).get_wei43m_k$(key_0); + var ourValue = tmp$ret$0; + if (!equals(value, ourValue)) { + return false; + } + var tmp; + if (ourValue == null) { + var tmp$ret$1; + // Inline function 'kotlin.collections.containsKey' call + var this_1 = this; + var key_1 = key; + tmp$ret$1 = (isInterface(this_1, Map_0) ? this_1 : THROW_CCE()).containsKey_aw81wo_k$(key_1); + tmp = !tmp$ret$1; + } else { + tmp = false; + } + if (tmp) { + return false; + } + return true; + } + equals(other) { + if (other === this) + return true; + if (!(!(other == null) ? isInterface(other, Map_0) : false)) + return false; + if (!(this.get_size_woubt6_k$() === other.get_size_woubt6_k$())) + return false; + var tmp$ret$0; + $l$block_0: { + // Inline function 'kotlin.collections.all' call + var this_0 = other.get_entries_p20ztl_k$(); + var tmp; + if (isInterface(this_0, Collection)) { + tmp = this_0.isEmpty_y1axqb_k$(); + } else { + tmp = false; + } + if (tmp) { + tmp$ret$0 = true; + break $l$block_0; + } + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$1; + // Inline function 'kotlin.collections.AbstractMap.equals.' call + var it = element; + tmp$ret$1 = this.containsEntry_x9fcvg_k$(it); + if (!tmp$ret$1) { + tmp$ret$0 = false; + break $l$block_0; + } + } + tmp$ret$0 = true; + } + return tmp$ret$0; + } + get_wei43m_k$(key) { + var tmp0_safe_receiver = implFindEntry(this, key); + return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.get_value_j01efc_k$(); + } + hashCode() { + return hashCode(this.get_entries_p20ztl_k$()); + } + isEmpty_y1axqb_k$() { + return this.get_size_woubt6_k$() === 0; + } + get_size_woubt6_k$() { + return this.get_entries_p20ztl_k$().get_size_woubt6_k$(); + } + get_keys_wop4xp_k$() { + if (this._keys_1 == null) { + var tmp = this; + tmp._keys_1 = AbstractMap$keys$1.new_kotlin_collections_AbstractMap__no_name_provided__hkmqdr_k$(this); + } + return ensureNotNull(this._keys_1); + } + toString() { + var tmp = this.get_entries_p20ztl_k$(); + return joinToString_0(tmp, ', ', '{', '}', VOID, VOID, AbstractMap$toString$lambda(this)); + } + toString_shrnxz_k$(entry) { + return toString_2(this, entry.get_key_18j28a_k$()) + '=' + toString_2(this, entry.get_value_j01efc_k$()); + } + get_values_ksazhn_k$() { + if (this._values_1 == null) { + var tmp = this; + tmp._values_1 = AbstractMap$values$1.new_kotlin_collections_AbstractMap__no_name_provided__l68rhx_k$(this); + } + return ensureNotNull(this._values_1); + } + } + class MutableMap {} + class AbstractMutableMap extends AbstractMap { + static new_kotlin_collections_AbstractMutableMap_wd9kkp_k$() { + var $this = this.new_kotlin_collections_AbstractMap_5v98o7_k$(); + $this.keysView_1 = null; + $this.valuesView_1 = null; + return $this; + } + createKeysView_nu3fmd_k$() { + return HashMapKeysDefault.new_kotlin_collections_HashMapKeysDefault_bct206_k$(this); + } + createValuesView_6r85x9_k$() { + return HashMapValuesDefault.new_kotlin_collections_HashMapValuesDefault_3yszgo_k$(this); + } + get_keys_wop4xp_k$() { + var tmp0_elvis_lhs = this.keysView_1; + var tmp; + if (tmp0_elvis_lhs == null) { + var tmp$ret$0; + // Inline function 'kotlin.also' call + var this_0 = this.createKeysView_nu3fmd_k$(); + // Inline function 'kotlin.contracts.contract' call + // Inline function 'kotlin.collections.AbstractMutableMap..' call + var it = this_0; + this.keysView_1 = it; + tmp$ret$0 = this_0; + tmp = tmp$ret$0; + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + get_values_ksazhn_k$() { + var tmp0_elvis_lhs = this.valuesView_1; + var tmp; + if (tmp0_elvis_lhs == null) { + var tmp$ret$0; + // Inline function 'kotlin.also' call + var this_0 = this.createValuesView_6r85x9_k$(); + // Inline function 'kotlin.contracts.contract' call + // Inline function 'kotlin.collections.AbstractMutableMap..' call + var it = this_0; + this.valuesView_1 = it; + tmp$ret$0 = this_0; + tmp = tmp$ret$0; + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + } + class Set {} + class AbstractMutableSet extends AbstractMutableCollection { + static new_kotlin_collections_AbstractMutableSet_v3jhzq_k$() { + var $this = this.new_kotlin_collections_AbstractMutableCollection_jgoj1k_k$(); + return $this; + } + equals(other) { + if (other === this) + return true; + if (!(!(other == null) ? isInterface(other, Set) : false)) + return false; + return Companion_instance_6.setEquals_3t788x_k$(this, other); + } + hashCode() { + return Companion_instance_6.unorderedHashCode_9qpwii_k$(this); + } + } + class Companion { + constructor() { + Companion_instance = this; + var tmp = this; + var tmp$ret$0; + // Inline function 'kotlin.also' call + var this_0 = ArrayList.new_kotlin_collections_ArrayList_tdd6ob_k$(0); + // Inline function 'kotlin.contracts.contract' call + // Inline function 'kotlin.collections.Companion.Empty.' call + var it = this_0; + it.isReadOnly_1 = true; + tmp$ret$0 = this_0; + tmp.Empty_1 = tmp$ret$0; + } + } + class ArrayList extends AbstractMutableList { + static new_kotlin_collections_ArrayList_ny19rj_k$(array) { + Companion_getInstance(); + var $this = this.new_kotlin_collections_AbstractMutableList_ddn594_k$(); + $this.array_1 = array; + $this.isReadOnly_1 = false; + return $this; + } + static new_kotlin_collections_ArrayList_ony0vx_k$() { + Companion_getInstance(); + var tmp$ret$0; + // Inline function 'kotlin.emptyArray' call + tmp$ret$0 = []; + var $this = this.new_kotlin_collections_ArrayList_ny19rj_k$(tmp$ret$0); + return $this; + } + static new_kotlin_collections_ArrayList_tdd6ob_k$(initialCapacity) { + Companion_getInstance(); + var tmp$ret$0; + // Inline function 'kotlin.emptyArray' call + tmp$ret$0 = []; + var $this = this.new_kotlin_collections_ArrayList_ny19rj_k$(tmp$ret$0); + // Inline function 'kotlin.require' call + var value = initialCapacity >= 0; + // Inline function 'kotlin.contracts.contract' call + if (!value) { + var tmp$ret$1; + // Inline function 'kotlin.collections.ArrayList..' call + tmp$ret$1 = 'Negative initial capacity: ' + initialCapacity; + var message = tmp$ret$1; + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$(toString_1(message)); + } + return $this; + } + static new_kotlin_collections_ArrayList_nk3udn_k$(elements) { + Companion_getInstance(); + var tmp$ret$0; + // Inline function 'kotlin.collections.toTypedArray' call + var this_0 = elements; + tmp$ret$0 = copyToArray(this_0); + var $this = this.new_kotlin_collections_ArrayList_ny19rj_k$(tmp$ret$0); + return $this; + } + ensureCapacity_wr7980_k$(minCapacity) { + } + get_size_woubt6_k$() { + return this.array_1.length; + } + get_c1px32_k$(index) { + var tmp = this.array_1[rangeCheck(this, index)]; + return (tmp == null ? true : !(tmp == null)) ? tmp : THROW_CCE(); + } + add_utx5q5_k$(element) { + this.checkIsMutable_h5js84_k$(); + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_0 = this.array_1; + tmp$ret$0 = this_0; + tmp$ret$0.push(element); + var tmp0_this = this; + var tmp1 = tmp0_this.modCount_1; + tmp0_this.modCount_1 = tmp1 + 1 | 0; + Unit_instance; + return true; + } + add_dl6gt3_k$(index, element) { + this.checkIsMutable_h5js84_k$(); + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_0 = this.array_1; + tmp$ret$0 = this_0; + tmp$ret$0.splice(insertionRangeCheck(this, index), 0, element); + var tmp0_this = this; + var tmp1 = tmp0_this.modCount_1; + tmp0_this.modCount_1 = tmp1 + 1 | 0; + Unit_instance; + } + indexOf_si1fv9_k$(element) { + return indexOf(this.array_1, element); + } + toString() { + return arrayToString(this.array_1); + } + toArray_jjyjqa_k$() { + return [].slice.call(this.array_1); + } + toArray() { + return this.toArray_jjyjqa_k$(); + } + checkIsMutable_h5js84_k$() { + if (this.isReadOnly_1) + throw UnsupportedOperationException.new_kotlin_UnsupportedOperationException_cv3bvm_k$(); + } + } + class HashMap extends AbstractMutableMap { + static new_kotlin_collections_HashMap_qt4ck1_k$(internalMap) { + var $this = this.new_kotlin_collections_AbstractMutableMap_wd9kkp_k$(); + init_kotlin_collections_HashMap($this); + $this.internalMap_1 = internalMap; + return $this; + } + static new_kotlin_collections_HashMap_2a5kxx_k$() { + var $this = this.new_kotlin_collections_HashMap_qt4ck1_k$(InternalHashMap.new_kotlin_collections_InternalHashMap_iefrky_k$()); + return $this; + } + static new_kotlin_collections_HashMap_kycc7v_k$(initialCapacity, loadFactor) { + var $this = this.new_kotlin_collections_HashMap_qt4ck1_k$(InternalHashMap.new_kotlin_collections_InternalHashMap_uj162q_k$(initialCapacity, loadFactor)); + return $this; + } + static new_kotlin_collections_HashMap_5ewlp_k$(initialCapacity) { + var $this = this.new_kotlin_collections_HashMap_kycc7v_k$(initialCapacity, 1.0); + return $this; + } + static new_kotlin_collections_HashMap_gc38m_k$(original) { + var $this = this.new_kotlin_collections_HashMap_qt4ck1_k$(InternalHashMap.new_kotlin_collections_InternalHashMap_c4hmjh_k$(original)); + return $this; + } + containsKey_aw81wo_k$(key) { + return this.internalMap_1.contains_vbgn2f_k$(key); + } + containsValue_yf2ykl_k$(value) { + return this.internalMap_1.containsValue_yf2ykl_k$(value); + } + createKeysView_nu3fmd_k$() { + return HashMapKeys.new_kotlin_collections_HashMapKeys_omwpzq_k$(this.internalMap_1); + } + createValuesView_6r85x9_k$() { + return HashMapValues.new_kotlin_collections_HashMapValues_fbss94_k$(this.internalMap_1); + } + get_entries_p20ztl_k$() { + var tmp0_elvis_lhs = this.entriesView_1; + var tmp; + if (tmp0_elvis_lhs == null) { + var tmp$ret$0; + // Inline function 'kotlin.also' call + var this_0 = HashMapEntrySet.new_kotlin_collections_HashMapEntrySet_dbqeqn_k$(this.internalMap_1); + // Inline function 'kotlin.contracts.contract' call + // Inline function 'kotlin.collections.HashMap..' call + var it = this_0; + this.entriesView_1 = it; + tmp$ret$0 = this_0; + tmp = tmp$ret$0; + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + get_wei43m_k$(key) { + return this.internalMap_1.get_wei43m_k$(key); + } + put_4fpzoq_k$(key, value) { + return this.internalMap_1.put_4fpzoq_k$(key, value); + } + get_size_woubt6_k$() { + return this.internalMap_1.get_size_woubt6_k$(); + } + } + class HashMapKeys extends AbstractMutableSet { + static new_kotlin_collections_HashMapKeys_omwpzq_k$(backing) { + var $this = this.new_kotlin_collections_AbstractMutableSet_v3jhzq_k$(); + $this.backing_1 = backing; + return $this; + } + get_size_woubt6_k$() { + return this.backing_1.get_size_woubt6_k$(); + } + isEmpty_y1axqb_k$() { + return this.backing_1.get_size_woubt6_k$() === 0; + } + contains_aljjnj_k$(element) { + return this.backing_1.contains_vbgn2f_k$(element); + } + add_utx5q5_k$(element) { + throw UnsupportedOperationException.new_kotlin_UnsupportedOperationException_cv3bvm_k$(); + } + iterator_jk1svi_k$() { + return this.backing_1.keysIterator_mjslfm_k$(); + } + } + class HashMapValues extends AbstractMutableCollection { + static new_kotlin_collections_HashMapValues_fbss94_k$(backing) { + var $this = this.new_kotlin_collections_AbstractMutableCollection_jgoj1k_k$(); + $this.backing_1 = backing; + return $this; + } + get_size_woubt6_k$() { + return this.backing_1.get_size_woubt6_k$(); + } + isEmpty_y1axqb_k$() { + return this.backing_1.get_size_woubt6_k$() === 0; + } + contains_m22g8e_k$(element) { + return this.backing_1.containsValue_yf2ykl_k$(element); + } + contains_aljjnj_k$(element) { + if (!(element == null ? true : !(element == null))) + return false; + return this.contains_m22g8e_k$((element == null ? true : !(element == null)) ? element : THROW_CCE()); + } + add_sqnzo4_k$(element) { + throw UnsupportedOperationException.new_kotlin_UnsupportedOperationException_cv3bvm_k$(); + } + add_utx5q5_k$(element) { + return this.add_sqnzo4_k$((element == null ? true : !(element == null)) ? element : THROW_CCE()); + } + iterator_jk1svi_k$() { + return this.backing_1.valuesIterator_3ptos0_k$(); + } + } + class HashMapEntrySetBase extends AbstractMutableSet { + static new_kotlin_collections_HashMapEntrySetBase_d6x5hb_k$(backing) { + var $this = this.new_kotlin_collections_AbstractMutableSet_v3jhzq_k$(); + $this.backing_1 = backing; + return $this; + } + get_size_woubt6_k$() { + return this.backing_1.get_size_woubt6_k$(); + } + isEmpty_y1axqb_k$() { + return this.backing_1.get_size_woubt6_k$() === 0; + } + contains_pftbw2_k$(element) { + return this.backing_1.containsEntry_jg6xfi_k$(element); + } + contains_aljjnj_k$(element) { + if (!(!(element == null) ? isInterface(element, Entry) : false)) + return false; + return this.contains_pftbw2_k$((!(element == null) ? isInterface(element, Entry) : false) ? element : THROW_CCE()); + } + add_k8z7xs_k$(element) { + throw UnsupportedOperationException.new_kotlin_UnsupportedOperationException_cv3bvm_k$(); + } + add_utx5q5_k$(element) { + return this.add_k8z7xs_k$((!(element == null) ? isInterface(element, Entry) : false) ? element : THROW_CCE()); + } + containsAll_bwkf3g_k$(elements) { + return this.backing_1.containsAllEntries_m9iqdx_k$(elements); + } + } + class HashMapEntrySet extends HashMapEntrySetBase { + static new_kotlin_collections_HashMapEntrySet_dbqeqn_k$(backing) { + var $this = this.new_kotlin_collections_HashMapEntrySetBase_d6x5hb_k$(backing); + return $this; + } + iterator_jk1svi_k$() { + return this.backing_1.entriesIterator_or017i_k$(); + } + } + class HashMapKeysDefault$iterator$1 { + constructor($entryIterator) { + this.$entryIterator_1 = $entryIterator; + } + hasNext_bitz1p_k$() { + return this.$entryIterator_1.hasNext_bitz1p_k$(); + } + next_20eer_k$() { + return this.$entryIterator_1.next_20eer_k$().get_key_18j28a_k$(); + } + } + class HashMapKeysDefault extends AbstractMutableSet { + static new_kotlin_collections_HashMapKeysDefault_bct206_k$(backingMap) { + var $this = this.new_kotlin_collections_AbstractMutableSet_v3jhzq_k$(); + $this.backingMap_1 = backingMap; + return $this; + } + add_b330zt_k$(element) { + throw UnsupportedOperationException.new_kotlin_UnsupportedOperationException_chzcdl_k$('Add is not supported on keys'); + } + add_utx5q5_k$(element) { + return this.add_b330zt_k$((element == null ? true : !(element == null)) ? element : THROW_CCE()); + } + contains_vbgn2f_k$(element) { + return this.backingMap_1.containsKey_aw81wo_k$(element); + } + contains_aljjnj_k$(element) { + if (!(element == null ? true : !(element == null))) + return false; + return this.contains_vbgn2f_k$((element == null ? true : !(element == null)) ? element : THROW_CCE()); + } + iterator_jk1svi_k$() { + var entryIterator = this.backingMap_1.get_entries_p20ztl_k$().iterator_jk1svi_k$(); + return new HashMapKeysDefault$iterator$1(entryIterator); + } + get_size_woubt6_k$() { + return this.backingMap_1.get_size_woubt6_k$(); + } + } + class HashMapValuesDefault$iterator$1 { + constructor($entryIterator) { + this.$entryIterator_1 = $entryIterator; + } + hasNext_bitz1p_k$() { + return this.$entryIterator_1.hasNext_bitz1p_k$(); + } + next_20eer_k$() { + return this.$entryIterator_1.next_20eer_k$().get_value_j01efc_k$(); + } + } + class HashMapValuesDefault extends AbstractMutableCollection { + static new_kotlin_collections_HashMapValuesDefault_3yszgo_k$(backingMap) { + var $this = this.new_kotlin_collections_AbstractMutableCollection_jgoj1k_k$(); + $this.backingMap_1 = backingMap; + return $this; + } + add_sqnzo4_k$(element) { + throw UnsupportedOperationException.new_kotlin_UnsupportedOperationException_chzcdl_k$('Add is not supported on values'); + } + add_utx5q5_k$(element) { + return this.add_sqnzo4_k$((element == null ? true : !(element == null)) ? element : THROW_CCE()); + } + contains_m22g8e_k$(element) { + return this.backingMap_1.containsValue_yf2ykl_k$(element); + } + contains_aljjnj_k$(element) { + if (!(element == null ? true : !(element == null))) + return false; + return this.contains_m22g8e_k$((element == null ? true : !(element == null)) ? element : THROW_CCE()); + } + iterator_jk1svi_k$() { + var entryIterator = this.backingMap_1.get_entries_p20ztl_k$().iterator_jk1svi_k$(); + return new HashMapValuesDefault$iterator$1(entryIterator); + } + get_size_woubt6_k$() { + return this.backingMap_1.get_size_woubt6_k$(); + } + } + class HashSet extends AbstractMutableSet { + static new_kotlin_collections_HashSet_jthjpv_k$(map) { + var $this = this.new_kotlin_collections_AbstractMutableSet_v3jhzq_k$(); + init_kotlin_collections_HashSet($this); + $this.internalMap_1 = map; + return $this; + } + static new_kotlin_collections_HashSet_ovxcsm_k$() { + var $this = this.new_kotlin_collections_HashSet_jthjpv_k$(InternalHashMap.new_kotlin_collections_InternalHashMap_iefrky_k$()); + return $this; + } + static new_kotlin_collections_HashSet_7p4ico_k$(elements) { + var $this = this.new_kotlin_collections_HashSet_jthjpv_k$(InternalHashMap.new_kotlin_collections_InternalHashMap_jnbws6_k$(elements.get_size_woubt6_k$())); + var tmp0_iterator = elements.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + $this.internalMap_1.put_4fpzoq_k$(element, true); + Unit_instance; + } + return $this; + } + static new_kotlin_collections_HashSet_uopk62_k$(initialCapacity, loadFactor) { + var $this = this.new_kotlin_collections_HashSet_jthjpv_k$(InternalHashMap.new_kotlin_collections_InternalHashMap_uj162q_k$(initialCapacity, loadFactor)); + return $this; + } + static new_kotlin_collections_HashSet_9nbh5e_k$(initialCapacity) { + var $this = this.new_kotlin_collections_HashSet_uopk62_k$(initialCapacity, 1.0); + return $this; + } + add_utx5q5_k$(element) { + return this.internalMap_1.put_4fpzoq_k$(element, true) == null; + } + contains_aljjnj_k$(element) { + return this.internalMap_1.contains_vbgn2f_k$(element); + } + isEmpty_y1axqb_k$() { + return this.internalMap_1.get_size_woubt6_k$() === 0; + } + iterator_jk1svi_k$() { + return this.internalMap_1.keysIterator_mjslfm_k$(); + } + get_size_woubt6_k$() { + return this.internalMap_1.get_size_woubt6_k$(); + } + } + class Companion_0 { + constructor() { + this.MAGIC_1 = -1640531527; + this.INITIAL_CAPACITY_1 = 8; + this.INITIAL_MAX_PROBE_DISTANCE_1 = 2; + this.TOMBSTONE_1 = -1; + } + } + class Itr { + constructor(map) { + this.map_1 = map; + this.index_1 = 0; + this.lastIndex_1 = -1; + this.expectedModCount_1 = this.map_1.modCount_1; + this.initNext_95pjyr_k$(); + Unit_instance; + } + initNext_95pjyr_k$() { + while (this.index_1 < this.map_1.length_1 ? this.map_1.presenceArray_1[this.index_1] < 0 : false) { + var tmp0_this = this; + var tmp1 = tmp0_this.index_1; + tmp0_this.index_1 = tmp1 + 1 | 0; + Unit_instance; + } + } + hasNext_bitz1p_k$() { + return this.index_1 < this.map_1.length_1; + } + checkForComodification_ue3neh_k$() { + if (!(this.map_1.modCount_1 === this.expectedModCount_1)) + throw ConcurrentModificationException.new_kotlin_ConcurrentModificationException_fy07nh_k$(); + } + } + class KeysItr extends Itr { + constructor(map) { + super(map); + } + next_20eer_k$() { + this.checkForComodification_ue3neh_k$(); + if (this.index_1 >= this.map_1.length_1) + throw NoSuchElementException.new_kotlin_NoSuchElementException_wy3d4q_k$(); + var tmp = this; + var tmp0_this = this; + var tmp1 = tmp0_this.index_1; + tmp0_this.index_1 = tmp1 + 1 | 0; + tmp.lastIndex_1 = tmp1; + var result = this.map_1.keysArray_1[this.lastIndex_1]; + this.initNext_95pjyr_k$(); + return result; + } + } + class ValuesItr extends Itr { + constructor(map) { + super(map); + } + next_20eer_k$() { + this.checkForComodification_ue3neh_k$(); + if (this.index_1 >= this.map_1.length_1) + throw NoSuchElementException.new_kotlin_NoSuchElementException_wy3d4q_k$(); + var tmp = this; + var tmp0_this = this; + var tmp1 = tmp0_this.index_1; + tmp0_this.index_1 = tmp1 + 1 | 0; + tmp.lastIndex_1 = tmp1; + var result = ensureNotNull(this.map_1.valuesArray_1)[this.lastIndex_1]; + this.initNext_95pjyr_k$(); + return result; + } + } + class EntriesItr extends Itr { + constructor(map) { + super(map); + } + next_20eer_k$() { + this.checkForComodification_ue3neh_k$(); + if (this.index_1 >= this.map_1.length_1) + throw NoSuchElementException.new_kotlin_NoSuchElementException_wy3d4q_k$(); + var tmp = this; + var tmp0_this = this; + var tmp1 = tmp0_this.index_1; + tmp0_this.index_1 = tmp1 + 1 | 0; + tmp.lastIndex_1 = tmp1; + var result = new EntryRef(this.map_1, this.lastIndex_1); + this.initNext_95pjyr_k$(); + return result; + } + nextHashCode_esvjde_k$() { + if (this.index_1 >= this.map_1.length_1) + throw NoSuchElementException.new_kotlin_NoSuchElementException_wy3d4q_k$(); + var tmp = this; + var tmp0_this = this; + var tmp1 = tmp0_this.index_1; + tmp0_this.index_1 = tmp1 + 1 | 0; + tmp.lastIndex_1 = tmp1; + var tmp$ret$0; + // Inline function 'kotlin.hashCode' call + var this_0 = this.map_1.keysArray_1[this.lastIndex_1]; + var tmp0_safe_receiver = this_0; + var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : hashCode(tmp0_safe_receiver); + tmp$ret$0 = tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs; + var tmp_0 = tmp$ret$0; + var tmp$ret$1; + // Inline function 'kotlin.hashCode' call + var this_1 = ensureNotNull(this.map_1.valuesArray_1)[this.lastIndex_1]; + var tmp0_safe_receiver_0 = this_1; + var tmp1_elvis_lhs_0 = tmp0_safe_receiver_0 == null ? null : hashCode(tmp0_safe_receiver_0); + tmp$ret$1 = tmp1_elvis_lhs_0 == null ? 0 : tmp1_elvis_lhs_0; + var result = tmp_0 ^ tmp$ret$1; + this.initNext_95pjyr_k$(); + return result; + } + nextAppendString_konuli_k$(sb) { + if (this.index_1 >= this.map_1.length_1) + throw NoSuchElementException.new_kotlin_NoSuchElementException_wy3d4q_k$(); + var tmp = this; + var tmp0_this = this; + var tmp1 = tmp0_this.index_1; + tmp0_this.index_1 = tmp1 + 1 | 0; + tmp.lastIndex_1 = tmp1; + var key = this.map_1.keysArray_1[this.lastIndex_1]; + if (equals(key, this.map_1)) { + sb.append_22ad7x_k$('(this Map)'); + Unit_instance; + } else { + sb.append_t8pm91_k$(key); + Unit_instance; + } + sb.append_t84oo1_k$(_Char___init__impl__6a9atx(61)); + Unit_instance; + var value = ensureNotNull(this.map_1.valuesArray_1)[this.lastIndex_1]; + if (equals(value, this.map_1)) { + sb.append_22ad7x_k$('(this Map)'); + Unit_instance; + } else { + sb.append_t8pm91_k$(value); + Unit_instance; + } + this.initNext_95pjyr_k$(); + } + } + class Entry {} + class EntryRef { + constructor(map, index) { + this.map_1 = map; + this.index_1 = index; + } + get_key_18j28a_k$() { + return this.map_1.keysArray_1[this.index_1]; + } + get_value_j01efc_k$() { + return ensureNotNull(this.map_1.valuesArray_1)[this.index_1]; + } + equals(other) { + var tmp; + var tmp_0; + if (!(other == null) ? isInterface(other, Entry) : false) { + tmp_0 = equals(other.get_key_18j28a_k$(), this.get_key_18j28a_k$()); + } else { + tmp_0 = false; + } + if (tmp_0) { + tmp = equals(other.get_value_j01efc_k$(), this.get_value_j01efc_k$()); + } else { + tmp = false; + } + return tmp; + } + hashCode() { + var tmp$ret$0; + // Inline function 'kotlin.hashCode' call + var this_0 = this.get_key_18j28a_k$(); + var tmp0_safe_receiver = this_0; + var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : hashCode(tmp0_safe_receiver); + tmp$ret$0 = tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs; + var tmp = tmp$ret$0; + var tmp$ret$1; + // Inline function 'kotlin.hashCode' call + var this_1 = this.get_value_j01efc_k$(); + var tmp0_safe_receiver_0 = this_1; + var tmp1_elvis_lhs_0 = tmp0_safe_receiver_0 == null ? null : hashCode(tmp0_safe_receiver_0); + tmp$ret$1 = tmp1_elvis_lhs_0 == null ? 0 : tmp1_elvis_lhs_0; + return tmp ^ tmp$ret$1; + } + toString() { + return '' + this.get_key_18j28a_k$() + '=' + this.get_value_j01efc_k$(); + } + } + class InternalMap {} + function containsAllEntries(m) { + var tmp$ret$0; + $l$block_0: { + // Inline function 'kotlin.collections.all' call + var this_0 = m; + var tmp; + if (isInterface(this_0, Collection)) { + tmp = this_0.isEmpty_y1axqb_k$(); + } else { + tmp = false; + } + if (tmp) { + tmp$ret$0 = true; + break $l$block_0; + } + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$3; + // Inline function 'kotlin.collections.InternalMap.containsAllEntries.' call + var it = element; + var tmp$ret$2; + // Inline function 'kotlin.js.unsafeCast' call + var this_1 = it; + var tmp$ret$1; + // Inline function 'kotlin.js.asDynamic' call + var this_2 = this_1; + tmp$ret$1 = this_2; + tmp$ret$2 = tmp$ret$1; + var entry = tmp$ret$2; + var tmp_0; + if (!(entry == null) ? isInterface(entry, Entry) : false) { + tmp_0 = this.containsOtherEntry_yvdc55_k$(entry); + } else { + tmp_0 = false; + } + tmp$ret$3 = tmp_0; + if (!tmp$ret$3) { + tmp$ret$0 = false; + break $l$block_0; + } + } + tmp$ret$0 = true; + } + return tmp$ret$0; + } + class InternalHashMap { + static new_kotlin_collections_InternalHashMap_xusumo_k$(keysArray, valuesArray, presenceArray, hashArray, maxProbeDistance, length) { + Companion_instance_0; + var $this = createThis(this); + $this.keysArray_1 = keysArray; + $this.valuesArray_1 = valuesArray; + $this.presenceArray_1 = presenceArray; + $this.hashArray_1 = hashArray; + $this.maxProbeDistance_1 = maxProbeDistance; + $this.length_1 = length; + $this.hashShift_1 = computeShift(Companion_instance_0, _get_hashSize__tftcho($this)); + $this.modCount_1 = 0; + $this._size_1 = 0; + $this.isReadOnly_1 = false; + return $this; + } + get_size_woubt6_k$() { + return this._size_1; + } + static new_kotlin_collections_InternalHashMap_iefrky_k$() { + Companion_instance_0; + var $this = this.new_kotlin_collections_InternalHashMap_jnbws6_k$(8); + return $this; + } + static new_kotlin_collections_InternalHashMap_jnbws6_k$(initialCapacity) { + Companion_instance_0; + var $this = this.new_kotlin_collections_InternalHashMap_xusumo_k$(arrayOfUninitializedElements(initialCapacity), null, new Int32Array(initialCapacity), new Int32Array(computeHashSize(Companion_instance_0, initialCapacity)), 2, 0); + return $this; + } + static new_kotlin_collections_InternalHashMap_c4hmjh_k$(original) { + Companion_instance_0; + var $this = this.new_kotlin_collections_InternalHashMap_jnbws6_k$(original.get_size_woubt6_k$()); + $this.putAll_wgg6cj_k$(original); + return $this; + } + static new_kotlin_collections_InternalHashMap_uj162q_k$(initialCapacity, loadFactor) { + Companion_instance_0; + var $this = this.new_kotlin_collections_InternalHashMap_jnbws6_k$(initialCapacity); + // Inline function 'kotlin.require' call + var value = loadFactor > 0.0; + // Inline function 'kotlin.contracts.contract' call + if (!value) { + var tmp$ret$0; + // Inline function 'kotlin.collections.InternalHashMap..' call + tmp$ret$0 = 'Non-positive load factor: ' + loadFactor; + var message = tmp$ret$0; + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$(toString_1(message)); + } + return $this; + } + containsValue_yf2ykl_k$(value) { + return findValue(this, value) >= 0; + } + get_wei43m_k$(key) { + var index = findKey(this, key); + if (index < 0) + return null; + return ensureNotNull(this.valuesArray_1)[index]; + } + contains_vbgn2f_k$(key) { + return findKey(this, key) >= 0; + } + put_4fpzoq_k$(key, value) { + var index = addKey(this, key); + var valuesArray = allocateValuesArray(this); + if (index < 0) { + var oldValue = valuesArray[(-index | 0) - 1 | 0]; + valuesArray[(-index | 0) - 1 | 0] = value; + return oldValue; + } else { + valuesArray[index] = value; + return null; + } + } + putAll_wgg6cj_k$(from) { + this.checkIsMutable_h5js84_k$(); + putAllEntries(this, from.get_entries_p20ztl_k$()); + Unit_instance; + } + equals(other) { + var tmp; + if (other === this) { + tmp = true; + } else { + var tmp_0; + if (!(other == null) ? isInterface(other, Map_0) : false) { + tmp_0 = contentEquals(this, other); + } else { + tmp_0 = false; + } + tmp = tmp_0; + } + return tmp; + } + hashCode() { + var result = 0; + var it = this.entriesIterator_or017i_k$(); + while (it.hasNext_bitz1p_k$()) { + result = result + it.nextHashCode_esvjde_k$() | 0; + } + return result; + } + toString() { + var sb = StringBuilder.new_kotlin_text_StringBuilder_wcb3z_k$(2 + imul(this._size_1, 3) | 0); + sb.append_22ad7x_k$('{'); + Unit_instance; + var i = 0; + var it = this.entriesIterator_or017i_k$(); + while (it.hasNext_bitz1p_k$()) { + if (i > 0) { + sb.append_22ad7x_k$(', '); + Unit_instance; + } + it.nextAppendString_konuli_k$(sb); + var tmp0 = i; + i = tmp0 + 1 | 0; + Unit_instance; + } + sb.append_22ad7x_k$('}'); + Unit_instance; + return sb.toString(); + } + checkIsMutable_h5js84_k$() { + if (this.isReadOnly_1) + throw UnsupportedOperationException.new_kotlin_UnsupportedOperationException_cv3bvm_k$(); + } + containsEntry_jg6xfi_k$(entry) { + var index = findKey(this, entry.get_key_18j28a_k$()); + if (index < 0) + return false; + return equals(ensureNotNull(this.valuesArray_1)[index], entry.get_value_j01efc_k$()); + } + containsOtherEntry_yvdc55_k$(entry) { + return this.containsEntry_jg6xfi_k$(isInterface(entry, Entry) ? entry : THROW_CCE()); + } + keysIterator_mjslfm_k$() { + return new KeysItr(this); + } + valuesIterator_3ptos0_k$() { + return new ValuesItr(this); + } + entriesIterator_or017i_k$() { + return new EntriesItr(this); + } + } + class LinkedHashMap extends HashMap { + static new_kotlin_collections_LinkedHashMap_ga0any_k$() { + var $this = this.new_kotlin_collections_HashMap_2a5kxx_k$(); + init_kotlin_collections_LinkedHashMap($this); + return $this; + } + static new_kotlin_collections_LinkedHashMap_31p40q_k$(initialCapacity) { + var $this = this.new_kotlin_collections_HashMap_5ewlp_k$(initialCapacity); + init_kotlin_collections_LinkedHashMap($this); + return $this; + } + static new_kotlin_collections_LinkedHashMap_40dkn3_k$(original) { + var $this = this.new_kotlin_collections_HashMap_gc38m_k$(original); + init_kotlin_collections_LinkedHashMap($this); + return $this; + } + } + class LinkedHashSet extends HashSet { + static new_kotlin_collections_LinkedHashSet_ahyf7j_k$() { + var $this = this.new_kotlin_collections_HashSet_ovxcsm_k$(); + init_kotlin_collections_LinkedHashSet($this); + return $this; + } + static new_kotlin_collections_LinkedHashSet_vuym41_k$(elements) { + var $this = this.new_kotlin_collections_HashSet_7p4ico_k$(elements); + init_kotlin_collections_LinkedHashSet($this); + return $this; + } + } + class KClass {} + class KClassImpl { + constructor(jClass) { + this.jClass_1 = jClass; + } + get_jClass_en9agn_k$() { + return this.jClass_1; + } + equals(other) { + var tmp0_subject = other; + var tmp; + if (tmp0_subject instanceof NothingKClassImpl) { + tmp = false; + } else { + if (tmp0_subject instanceof ErrorKClass) { + tmp = false; + } else { + if (tmp0_subject instanceof KClassImpl) { + tmp = equals(this.get_jClass_en9agn_k$(), other.get_jClass_en9agn_k$()); + } else { + tmp = false; + } + } + } + return tmp; + } + hashCode() { + var tmp0_safe_receiver = this.get_simpleName_r6f8py_k$(); + var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : getStringHashCode(tmp0_safe_receiver); + return tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs; + } + toString() { + return 'class ' + this.get_simpleName_r6f8py_k$(); + } + } + class NothingKClassImpl extends KClassImpl { + constructor() { + NothingKClassImpl_instance = null; + super(Object); + NothingKClassImpl_instance = this; + this.simpleName_1 = 'Nothing'; + } + get_simpleName_r6f8py_k$() { + return this.simpleName_1; + } + get_jClass_en9agn_k$() { + throw UnsupportedOperationException.new_kotlin_UnsupportedOperationException_chzcdl_k$("There's no native JS class for Nothing type"); + } + equals(other) { + return other === this; + } + hashCode() { + return 0; + } + } + class ErrorKClass { + constructor() { + } + get_simpleName_r6f8py_k$() { + var message = 'Unknown simpleName for ErrorKClass'; + throw IllegalStateException.new_kotlin_IllegalStateException_w47ei6_k$(toString_1(message)); + } + equals(other) { + return other === this; + } + hashCode() { + return 0; + } + } + class PrimitiveKClassImpl extends KClassImpl { + constructor(jClass, givenSimpleName, isInstanceFunction) { + super(jClass); + this.givenSimpleName_1 = givenSimpleName; + this.isInstanceFunction_1 = isInstanceFunction; + } + equals(other) { + if (!(other instanceof PrimitiveKClassImpl)) + return false; + return super.equals(other) ? this.givenSimpleName_1 === other.givenSimpleName_1 : false; + } + get_simpleName_r6f8py_k$() { + return this.givenSimpleName_1; + } + } + class SimpleKClassImpl extends KClassImpl { + constructor(jClass) { + super(jClass); + var tmp = this; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_0 = jClass; + tmp$ret$0 = this_0; + var tmp0_safe_receiver = tmp$ret$0.$metadata$; + var this_1 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.simpleName; + tmp$ret$1 = this_1; + tmp.simpleName_1 = tmp$ret$1; + } + get_simpleName_r6f8py_k$() { + return this.simpleName_1; + } + } + class KProperty1 {} + class PrimitiveClasses { + constructor() { + PrimitiveClasses_instance = this; + var tmp = this; + var tmp$ret$0; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = Object; + tmp$ret$0 = this_0; + var tmp_0 = tmp$ret$0; + tmp.anyClass = new PrimitiveKClassImpl(tmp_0, 'Any', PrimitiveClasses$anyClass$lambda); + var tmp_1 = this; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_1 = Number; + tmp$ret$1 = this_1; + var tmp_2 = tmp$ret$1; + tmp_1.numberClass = new PrimitiveKClassImpl(tmp_2, 'Number', PrimitiveClasses$numberClass$lambda); + this.nothingClass = NothingKClassImpl_getInstance(); + var tmp_3 = this; + var tmp$ret$2; + // Inline function 'kotlin.js.unsafeCast' call + var this_2 = Boolean; + tmp$ret$2 = this_2; + var tmp_4 = tmp$ret$2; + tmp_3.booleanClass = new PrimitiveKClassImpl(tmp_4, 'Boolean', PrimitiveClasses$booleanClass$lambda); + var tmp_5 = this; + var tmp$ret$3; + // Inline function 'kotlin.js.unsafeCast' call + var this_3 = Number; + tmp$ret$3 = this_3; + var tmp_6 = tmp$ret$3; + tmp_5.byteClass = new PrimitiveKClassImpl(tmp_6, 'Byte', PrimitiveClasses$byteClass$lambda); + var tmp_7 = this; + var tmp$ret$4; + // Inline function 'kotlin.js.unsafeCast' call + var this_4 = Number; + tmp$ret$4 = this_4; + var tmp_8 = tmp$ret$4; + tmp_7.shortClass = new PrimitiveKClassImpl(tmp_8, 'Short', PrimitiveClasses$shortClass$lambda); + var tmp_9 = this; + var tmp$ret$5; + // Inline function 'kotlin.js.unsafeCast' call + var this_5 = Number; + tmp$ret$5 = this_5; + var tmp_10 = tmp$ret$5; + tmp_9.intClass = new PrimitiveKClassImpl(tmp_10, 'Int', PrimitiveClasses$intClass$lambda); + var tmp_11 = this; + var tmp$ret$6; + // Inline function 'kotlin.js.unsafeCast' call + var this_6 = Number; + tmp$ret$6 = this_6; + var tmp_12 = tmp$ret$6; + tmp_11.floatClass = new PrimitiveKClassImpl(tmp_12, 'Float', PrimitiveClasses$floatClass$lambda); + var tmp_13 = this; + var tmp$ret$7; + // Inline function 'kotlin.js.unsafeCast' call + var this_7 = Number; + tmp$ret$7 = this_7; + var tmp_14 = tmp$ret$7; + tmp_13.doubleClass = new PrimitiveKClassImpl(tmp_14, 'Double', PrimitiveClasses$doubleClass$lambda); + var tmp_15 = this; + var tmp$ret$8; + // Inline function 'kotlin.js.unsafeCast' call + var this_8 = Array; + tmp$ret$8 = this_8; + var tmp_16 = tmp$ret$8; + tmp_15.arrayClass = new PrimitiveKClassImpl(tmp_16, 'Array', PrimitiveClasses$arrayClass$lambda); + var tmp_17 = this; + var tmp$ret$9; + // Inline function 'kotlin.js.unsafeCast' call + var this_9 = String; + tmp$ret$9 = this_9; + var tmp_18 = tmp$ret$9; + tmp_17.stringClass = new PrimitiveKClassImpl(tmp_18, 'String', PrimitiveClasses$stringClass$lambda); + var tmp_19 = this; + var tmp$ret$10; + // Inline function 'kotlin.js.unsafeCast' call + var this_10 = Error; + tmp$ret$10 = this_10; + var tmp_20 = tmp$ret$10; + tmp_19.throwableClass = new PrimitiveKClassImpl(tmp_20, 'Throwable', PrimitiveClasses$throwableClass$lambda); + var tmp_21 = this; + var tmp$ret$11; + // Inline function 'kotlin.js.unsafeCast' call + var this_11 = Array; + tmp$ret$11 = this_11; + var tmp_22 = tmp$ret$11; + tmp_21.booleanArrayClass = new PrimitiveKClassImpl(tmp_22, 'BooleanArray', PrimitiveClasses$booleanArrayClass$lambda); + var tmp_23 = this; + var tmp$ret$12; + // Inline function 'kotlin.js.unsafeCast' call + var this_12 = Uint16Array; + tmp$ret$12 = this_12; + var tmp_24 = tmp$ret$12; + tmp_23.charArrayClass = new PrimitiveKClassImpl(tmp_24, 'CharArray', PrimitiveClasses$charArrayClass$lambda); + var tmp_25 = this; + var tmp$ret$13; + // Inline function 'kotlin.js.unsafeCast' call + var this_13 = Int8Array; + tmp$ret$13 = this_13; + var tmp_26 = tmp$ret$13; + tmp_25.byteArrayClass = new PrimitiveKClassImpl(tmp_26, 'ByteArray', PrimitiveClasses$byteArrayClass$lambda); + var tmp_27 = this; + var tmp$ret$14; + // Inline function 'kotlin.js.unsafeCast' call + var this_14 = Int16Array; + tmp$ret$14 = this_14; + var tmp_28 = tmp$ret$14; + tmp_27.shortArrayClass = new PrimitiveKClassImpl(tmp_28, 'ShortArray', PrimitiveClasses$shortArrayClass$lambda); + var tmp_29 = this; + var tmp$ret$15; + // Inline function 'kotlin.js.unsafeCast' call + var this_15 = Int32Array; + tmp$ret$15 = this_15; + var tmp_30 = tmp$ret$15; + tmp_29.intArrayClass = new PrimitiveKClassImpl(tmp_30, 'IntArray', PrimitiveClasses$intArrayClass$lambda); + var tmp_31 = this; + var tmp$ret$16; + // Inline function 'kotlin.js.unsafeCast' call + var this_16 = Array; + tmp$ret$16 = this_16; + var tmp_32 = tmp$ret$16; + tmp_31.longArrayClass = new PrimitiveKClassImpl(tmp_32, 'LongArray', PrimitiveClasses$longArrayClass$lambda); + var tmp_33 = this; + var tmp$ret$17; + // Inline function 'kotlin.js.unsafeCast' call + var this_17 = Float32Array; + tmp$ret$17 = this_17; + var tmp_34 = tmp$ret$17; + tmp_33.floatArrayClass = new PrimitiveKClassImpl(tmp_34, 'FloatArray', PrimitiveClasses$floatArrayClass$lambda); + var tmp_35 = this; + var tmp$ret$18; + // Inline function 'kotlin.js.unsafeCast' call + var this_18 = Float64Array; + tmp$ret$18 = this_18; + var tmp_36 = tmp$ret$18; + tmp_35.doubleArrayClass = new PrimitiveKClassImpl(tmp_36, 'DoubleArray', PrimitiveClasses$doubleArrayClass$lambda); + } + get_anyClass_x0jl4l_k$() { + return this.anyClass; + } + get_numberClass_pnym9y_k$() { + return this.numberClass; + } + get_nothingClass_7ivpcc_k$() { + return this.nothingClass; + } + get_booleanClass_d285fr_k$() { + return this.booleanClass; + } + get_byteClass_pu7s61_k$() { + return this.byteClass; + } + get_shortClass_5ajsv9_k$() { + return this.shortClass; + } + get_intClass_mw4y9a_k$() { + return this.intClass; + } + get_floatClass_xlwq2t_k$() { + return this.floatClass; + } + get_doubleClass_dahzcy_k$() { + return this.doubleClass; + } + get_arrayClass_udg0fc_k$() { + return this.arrayClass; + } + get_stringClass_bik2gy_k$() { + return this.stringClass; + } + get_throwableClass_ee1a8x_k$() { + return this.throwableClass; + } + get_booleanArrayClass_lnbwea_k$() { + return this.booleanArrayClass; + } + get_charArrayClass_7lhfoe_k$() { + return this.charArrayClass; + } + get_byteArrayClass_57my8g_k$() { + return this.byteArrayClass; + } + get_shortArrayClass_c1p7wy_k$() { + return this.shortArrayClass; + } + get_intArrayClass_h44pbv_k$() { + return this.intArrayClass; + } + get_longArrayClass_v379a4_k$() { + return this.longArrayClass; + } + get_floatArrayClass_qngmha_k$() { + return this.floatArrayClass; + } + get_doubleArrayClass_84hee1_k$() { + return this.doubleArrayClass; + } + functionClass(arity) { + var tmp0_elvis_lhs = get_functionClasses()[arity]; + var tmp; + if (tmp0_elvis_lhs == null) { + var tmp$ret$3; + // Inline function 'kotlin.run' call + var this_0 = this; + // Inline function 'kotlin.contracts.contract' call + var tmp$ret$2; + // Inline function 'kotlin.reflect.js.internal.PrimitiveClasses.functionClass.' call + var $this$run = this_0; + var tmp$ret$0; + // Inline function 'kotlin.js.unsafeCast' call + var this_1 = Function; + tmp$ret$0 = this_1; + var tmp_0 = tmp$ret$0; + var tmp_1 = 'Function' + arity; + var result = new PrimitiveKClassImpl(tmp_0, tmp_1, PrimitiveClasses$functionClass$lambda(arity)); + var tmp$ret$1; + // Inline function 'kotlin.js.asDynamic' call + var this_2 = get_functionClasses(); + tmp$ret$1 = this_2; + tmp$ret$1[arity] = result; + tmp$ret$2 = result; + tmp$ret$3 = tmp$ret$2; + tmp = tmp$ret$3; + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + } + class Exception extends Error { + static new_kotlin_Exception_f32mds_k$() { + var $this = createThis(this); + init_kotlin_Exception($this); + Unit_instance; + setPropertiesToThrowableInstance($this); + return $this; + } + static new_kotlin_Exception_hsqbop_k$(message) { + var $this = createThis(this); + init_kotlin_Exception($this); + Unit_instance; + setPropertiesToThrowableInstance($this, message); + return $this; + } + static new_kotlin_Exception_9qyiel_k$(message, cause) { + var $this = createThis(this); + init_kotlin_Exception($this); + Unit_instance; + setPropertiesToThrowableInstance($this, message, cause); + return $this; + } + } + class CharacterCodingException extends Exception { + static new_kotlin_text_CharacterCodingException_wozcvs_k$(message) { + var $this = this.new_kotlin_Exception_hsqbop_k$(message); + captureStack($this, $this.$throwableCtor_2); + return $this; + } + static new_kotlin_text_CharacterCodingException_el5v5_k$() { + var $this = this.new_kotlin_text_CharacterCodingException_wozcvs_k$(null); + return $this; + } + } + class StringBuilder { + static new_kotlin_text_StringBuilder_7at1nh_k$(content) { + var $this = createThis(this); + $this.string_1 = !(content === undefined) ? content : ''; + return $this; + } + static new_kotlin_text_StringBuilder_wcb3z_k$(capacity) { + var $this = this.new_kotlin_text_StringBuilder_u46mrb_k$(); + return $this; + } + static new_kotlin_text_StringBuilder_u46mrb_k$() { + var $this = this.new_kotlin_text_StringBuilder_7at1nh_k$(''); + return $this; + } + get_length_g42xv3_k$() { + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_0 = this.string_1; + tmp$ret$0 = this_0; + return tmp$ret$0.length; + } + get_kdzpvg_k$(index) { + var tmp$ret$0; + // Inline function 'kotlin.text.getOrElse' call + var this_0 = this.string_1; + var index_0 = index; + var tmp; + if (index_0 >= 0 ? index_0 <= get_lastIndex_3(this_0) : false) { + tmp = charSequenceGet(this_0, index_0); + } else { + var it = index_0; + throw IndexOutOfBoundsException.new_kotlin_IndexOutOfBoundsException_ddr8db_k$('index: ' + index + ', length: ' + this.get_length_g42xv3_k$() + '}'); + } + tmp$ret$0 = tmp; + return tmp$ret$0; + } + append_t84oo1_k$(value) { + var tmp0_this = this; + tmp0_this.string_1 = tmp0_this.string_1 + toString(value); + return this; + } + append_jgojdo_k$(value) { + var tmp0_this = this; + tmp0_this.string_1 = tmp0_this.string_1 + toString_0(value); + return this; + } + append_t8pm91_k$(value) { + var tmp0_this = this; + tmp0_this.string_1 = tmp0_this.string_1 + toString_0(value); + return this; + } + append_22ad7x_k$(value) { + var tmp0_this = this; + var tmp = tmp0_this; + var tmp_0 = tmp0_this.string_1; + var tmp1_elvis_lhs = value; + tmp.string_1 = tmp_0 + (tmp1_elvis_lhs == null ? 'null' : tmp1_elvis_lhs); + return this; + } + toString() { + return this.string_1; + } + } + class sam$kotlin_Comparator$0 { + constructor(function_0) { + this.function_1 = function_0; + } + compare_bczr_k$(a, b) { + return this.function_1(a, b); + } + compare(a, b) { + return this.compare_bczr_k$(a, b); + } + } + class Companion_1 { + constructor() { + Companion_instance_1 = this; + this.MIN_VALUE_1 = _Char___init__impl__6a9atx(0); + this.MAX_VALUE_1 = _Char___init__impl__6a9atx(65535); + this.MIN_HIGH_SURROGATE_1 = _Char___init__impl__6a9atx(55296); + this.MAX_HIGH_SURROGATE_1 = _Char___init__impl__6a9atx(56319); + this.MIN_LOW_SURROGATE_1 = _Char___init__impl__6a9atx(56320); + this.MAX_LOW_SURROGATE_1 = _Char___init__impl__6a9atx(57343); + this.MIN_SURROGATE_1 = _Char___init__impl__6a9atx(55296); + this.MAX_SURROGATE_1 = _Char___init__impl__6a9atx(57343); + this.SIZE_BYTES_1 = 2; + this.SIZE_BITS_1 = 16; + } + } + class Char {} + class Companion_2 { + constructor() { + } + } + class Enum { + constructor(name, ordinal) { + Companion_instance_2; + this.name_1 = name; + this.ordinal_1 = ordinal; + } + get_name_woqyms_k$() { + return this.name_1; + } + get_ordinal_ip24qg_k$() { + return this.ordinal_1; + } + compareTo_30rs7w_k$(other) { + return compareTo_0(this.ordinal_1, other.ordinal_1); + } + compareTo_hpufkf_k$(other) { + return this.compareTo_30rs7w_k$(other instanceof Enum ? other : THROW_CCE()); + } + equals(other) { + return this === other; + } + hashCode() { + return identityHashCode(this); + } + toString() { + return this.name_1; + } + } + class arrayIterator$1 { + constructor($array) { + this.$array_1 = $array; + this.index_1 = 0; + } + hasNext_bitz1p_k$() { + return !(this.index_1 === this.$array_1.length); + } + next_20eer_k$() { + var tmp; + if (!(this.index_1 === this.$array_1.length)) { + var tmp0_this = this; + var tmp1 = tmp0_this.index_1; + tmp0_this.index_1 = tmp1 + 1 | 0; + tmp = this.$array_1[tmp1]; + } else { + throw NoSuchElementException.new_kotlin_NoSuchElementException_eborbh_k$('' + this.index_1); + } + return tmp; + } + } + class Companion_3 { + constructor() { + Companion_instance_3 = this; + this.MIN_VALUE_1 = new Long(0, -2147483648); + this.MAX_VALUE_1 = new Long(-1, 2147483647); + this.SIZE_BYTES_1 = 8; + this.SIZE_BITS_1 = 64; + } + } + class Long extends Number_0 { + constructor(low, high) { + Companion_getInstance_3(); + super(); + this.low_1 = low; + this.high_1 = high; + } + compareTo_kvbqny_k$(other) { + return compare(this, other); + } + compareTo_hpufkf_k$(other) { + return this.compareTo_kvbqny_k$(other instanceof Long ? other : THROW_CCE()); + } + plus_eydew_k$(other) { + return add(this, other); + } + minus_eam86m_k$(other) { + return subtract(this, other); + } + times_v7n83g_k$(other) { + return multiply(this, other); + } + div_et91rl_k$(other) { + return divide(this, other); + } + unaryMinus_6uz0qp_k$() { + return this.inv_28kx_k$().plus_eydew_k$(new Long(1, 0)); + } + shl_bg8if3_k$(bitCount) { + return shiftLeft(this, bitCount); + } + shr_9fl3wl_k$(bitCount) { + return shiftRight(this, bitCount); + } + ushr_z7nmq8_k$(bitCount) { + return shiftRightUnsigned(this, bitCount); + } + and_1dc02z_k$(other) { + return new Long(this.low_1 & other.low_1, this.high_1 & other.high_1); + } + or_sl8881_k$(other) { + return new Long(this.low_1 | other.low_1, this.high_1 | other.high_1); + } + xor_gifw87_k$(other) { + return new Long(this.low_1 ^ other.low_1, this.high_1 ^ other.high_1); + } + inv_28kx_k$() { + return new Long(~this.low_1, ~this.high_1); + } + toByte_edm0nx_k$() { + return toByte(this.low_1); + } + toInt_1tsl84_k$() { + return this.low_1; + } + toDouble_ygsx0s_k$() { + return toNumber(this); + } + valueOf() { + return this.toDouble_ygsx0s_k$(); + } + equals(other) { + var tmp; + if (other instanceof Long) { + tmp = equalsLong(this, other); + } else { + tmp = false; + } + return tmp; + } + hashCode() { + return hashCode_0(this); + } + toString() { + return toStringImpl(this, 10); + } + } + class Digit { + constructor() { + Digit_instance = this; + var tmp = this; + var tmp$ret$0; + // Inline function 'kotlin.intArrayOf' call + var elements = new Int32Array([48, 1632, 1776, 1984, 2406, 2534, 2662, 2790, 2918, 3046, 3174, 3302, 3430, 3558, 3664, 3792, 3872, 4160, 4240, 6112, 6160, 6470, 6608, 6784, 6800, 6992, 7088, 7232, 7248, 42528, 43216, 43264, 43472, 43504, 43600, 44016, 65296]); + tmp$ret$0 = elements; + tmp.rangeStart_1 = tmp$ret$0; + } + } + class RuntimeException extends Exception { + static new_kotlin_RuntimeException_29f9zq_k$() { + var $this = this.new_kotlin_Exception_f32mds_k$(); + init_kotlin_RuntimeException($this); + return $this; + } + static new_kotlin_RuntimeException_xu1s8h_k$(message) { + var $this = this.new_kotlin_Exception_hsqbop_k$(message); + init_kotlin_RuntimeException($this); + return $this; + } + static new_kotlin_RuntimeException_iani9z_k$(message, cause) { + var $this = this.new_kotlin_Exception_9qyiel_k$(message, cause); + init_kotlin_RuntimeException($this); + return $this; + } + } + class IllegalArgumentException extends RuntimeException { + static new_kotlin_IllegalArgumentException_pv5o3f_k$() { + var $this = this.new_kotlin_RuntimeException_29f9zq_k$(); + init_kotlin_IllegalArgumentException($this); + return $this; + } + static new_kotlin_IllegalArgumentException_sfqr8_k$(message) { + var $this = this.new_kotlin_RuntimeException_xu1s8h_k$(message); + init_kotlin_IllegalArgumentException($this); + return $this; + } + static new_kotlin_IllegalArgumentException_afpr0i_k$(message, cause) { + var $this = this.new_kotlin_RuntimeException_iani9z_k$(message, cause); + init_kotlin_IllegalArgumentException($this); + return $this; + } + } + class IndexOutOfBoundsException extends RuntimeException { + static new_kotlin_IndexOutOfBoundsException_cc7xqw_k$() { + var $this = this.new_kotlin_RuntimeException_29f9zq_k$(); + init_kotlin_IndexOutOfBoundsException($this); + return $this; + } + static new_kotlin_IndexOutOfBoundsException_ddr8db_k$(message) { + var $this = this.new_kotlin_RuntimeException_xu1s8h_k$(message); + init_kotlin_IndexOutOfBoundsException($this); + return $this; + } + } + class IllegalStateException extends RuntimeException { + static new_kotlin_IllegalStateException_1wtnp1_k$() { + var $this = this.new_kotlin_RuntimeException_29f9zq_k$(); + init_kotlin_IllegalStateException($this); + return $this; + } + static new_kotlin_IllegalStateException_w47ei6_k$(message) { + var $this = this.new_kotlin_RuntimeException_xu1s8h_k$(message); + init_kotlin_IllegalStateException($this); + return $this; + } + } + class UnsupportedOperationException extends RuntimeException { + static new_kotlin_UnsupportedOperationException_cv3bvm_k$() { + var $this = this.new_kotlin_RuntimeException_29f9zq_k$(); + init_kotlin_UnsupportedOperationException($this); + return $this; + } + static new_kotlin_UnsupportedOperationException_chzcdl_k$(message) { + var $this = this.new_kotlin_RuntimeException_xu1s8h_k$(message); + init_kotlin_UnsupportedOperationException($this); + return $this; + } + } + class NoSuchElementException extends RuntimeException { + static new_kotlin_NoSuchElementException_wy3d4q_k$() { + var $this = this.new_kotlin_RuntimeException_29f9zq_k$(); + init_kotlin_NoSuchElementException($this); + return $this; + } + static new_kotlin_NoSuchElementException_eborbh_k$(message) { + var $this = this.new_kotlin_RuntimeException_xu1s8h_k$(message); + init_kotlin_NoSuchElementException($this); + return $this; + } + } + class ConcurrentModificationException extends RuntimeException { + static new_kotlin_ConcurrentModificationException_fy07nh_k$() { + var $this = this.new_kotlin_RuntimeException_29f9zq_k$(); + init_kotlin_ConcurrentModificationException($this); + return $this; + } + } + class NumberFormatException extends IllegalArgumentException { + static new_kotlin_NumberFormatException_rswu7k_k$() { + var $this = this.new_kotlin_IllegalArgumentException_pv5o3f_k$(); + init_kotlin_NumberFormatException($this); + return $this; + } + static new_kotlin_NumberFormatException_hv2a95_k$(message) { + var $this = this.new_kotlin_IllegalArgumentException_sfqr8_k$(message); + init_kotlin_NumberFormatException($this); + return $this; + } + } + class ArithmeticException extends RuntimeException { + static new_kotlin_ArithmeticException_t7nj4q_k$() { + var $this = this.new_kotlin_RuntimeException_29f9zq_k$(); + init_kotlin_ArithmeticException($this); + return $this; + } + static new_kotlin_ArithmeticException_y2sjkx_k$(message) { + var $this = this.new_kotlin_RuntimeException_xu1s8h_k$(message); + init_kotlin_ArithmeticException($this); + return $this; + } + } + class NullPointerException extends RuntimeException { + static new_kotlin_NullPointerException_q6jd54_k$() { + var $this = this.new_kotlin_RuntimeException_29f9zq_k$(); + init_kotlin_NullPointerException($this); + return $this; + } + } + class NoWhenBranchMatchedException extends RuntimeException { + static new_kotlin_NoWhenBranchMatchedException_9ooqm1_k$() { + var $this = this.new_kotlin_RuntimeException_29f9zq_k$(); + init_kotlin_NoWhenBranchMatchedException($this); + return $this; + } + } + class ClassCastException extends RuntimeException { + static new_kotlin_ClassCastException_zhuhe1_k$() { + var $this = this.new_kotlin_RuntimeException_29f9zq_k$(); + init_kotlin_ClassCastException($this); + return $this; + } + } + class UninitializedPropertyAccessException extends RuntimeException { + static new_kotlin_UninitializedPropertyAccessException_l975ei_k$() { + var $this = this.new_kotlin_RuntimeException_29f9zq_k$(); + init_kotlin_UninitializedPropertyAccessException($this); + return $this; + } + static new_kotlin_UninitializedPropertyAccessException_egi92l_k$(message) { + var $this = this.new_kotlin_RuntimeException_xu1s8h_k$(message); + init_kotlin_UninitializedPropertyAccessException($this); + return $this; + } + } + class Companion_4 { + constructor() { + this.maxArraySize_1 = 2147483639; + } + checkElementIndex_r3t1bm_k$(index, size) { + if (index < 0 ? true : index >= size) { + throw IndexOutOfBoundsException.new_kotlin_IndexOutOfBoundsException_ddr8db_k$('index: ' + index + ', size: ' + size); + } + } + checkPositionIndex_xiph8v_k$(index, size) { + if (index < 0 ? true : index > size) { + throw IndexOutOfBoundsException.new_kotlin_IndexOutOfBoundsException_ddr8db_k$('index: ' + index + ', size: ' + size); + } + } + checkRangeIndexes_a38xj7_k$(fromIndex, toIndex, size) { + if (fromIndex < 0 ? true : toIndex > size) { + throw IndexOutOfBoundsException.new_kotlin_IndexOutOfBoundsException_ddr8db_k$('fromIndex: ' + fromIndex + ', toIndex: ' + toIndex + ', size: ' + size); + } + if (fromIndex > toIndex) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('fromIndex: ' + fromIndex + ' > toIndex: ' + toIndex); + } + } + checkBoundsIndexes_fu3rwb_k$(startIndex, endIndex, size) { + if (startIndex < 0 ? true : endIndex > size) { + throw IndexOutOfBoundsException.new_kotlin_IndexOutOfBoundsException_ddr8db_k$('startIndex: ' + startIndex + ', endIndex: ' + endIndex + ', size: ' + size); + } + if (startIndex > endIndex) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('startIndex: ' + startIndex + ' > endIndex: ' + endIndex); + } + } + newCapacity_jl318a_k$(oldCapacity, minCapacity) { + var newCapacity = oldCapacity + (oldCapacity >> 1) | 0; + if ((newCapacity - minCapacity | 0) < 0) + newCapacity = minCapacity; + if ((newCapacity - 2147483639 | 0) > 0) + newCapacity = minCapacity > 2147483639 ? IntCompanionObject_instance.MAX_VALUE : 2147483639; + return newCapacity; + } + orderedHashCode_7x61fj_k$(c) { + var hashCode_0 = 1; + var tmp0_iterator = c.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var e = tmp0_iterator.next_20eer_k$(); + var tmp = imul(31, hashCode_0); + var tmp1_safe_receiver = e; + var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : hashCode(tmp1_safe_receiver); + hashCode_0 = tmp + (tmp2_elvis_lhs == null ? 0 : tmp2_elvis_lhs) | 0; + } + return hashCode_0; + } + orderedEquals_pczg6k_k$(c, other) { + if (!(c.get_size_woubt6_k$() === other.get_size_woubt6_k$())) + return false; + var otherIterator = other.iterator_jk1svi_k$(); + var tmp0_iterator = c.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var elem = tmp0_iterator.next_20eer_k$(); + var elemOther = otherIterator.next_20eer_k$(); + if (!equals(elem, elemOther)) { + return false; + } + } + return true; + } + } + class AbstractMap$keys$1$iterator$1 { + constructor($entryIterator) { + this.$entryIterator_1 = $entryIterator; + } + hasNext_bitz1p_k$() { + return this.$entryIterator_1.hasNext_bitz1p_k$(); + } + next_20eer_k$() { + return this.$entryIterator_1.next_20eer_k$().get_key_18j28a_k$(); + } + } + class AbstractMap$values$1$iterator$1 { + constructor($entryIterator) { + this.$entryIterator_1 = $entryIterator; + } + hasNext_bitz1p_k$() { + return this.$entryIterator_1.hasNext_bitz1p_k$(); + } + next_20eer_k$() { + return this.$entryIterator_1.next_20eer_k$().get_value_j01efc_k$(); + } + } + class Companion_5 { + constructor() { + } + } + class AbstractSet extends AbstractCollection { + static new_kotlin_collections_AbstractSet_l10baj_k$($box) { + Companion_instance_6; + var $this = this.new_kotlin_collections_AbstractCollection_s1tlv0_k$($box); + return $this; + } + equals(other) { + if (other === this) + return true; + if (!(!(other == null) ? isInterface(other, Set) : false)) + return false; + return Companion_instance_6.setEquals_3t788x_k$(this, other); + } + hashCode() { + return Companion_instance_6.unorderedHashCode_9qpwii_k$(this); + } + } + class AbstractMap$keys$1 extends AbstractSet { + static new_kotlin_collections_AbstractMap__no_name_provided__hkmqdr_k$(this$0, $box) { + if ($box === VOID) + $box = {}; + $box.this$0__1 = this$0; + var $this = this.new_kotlin_collections_AbstractSet_l10baj_k$($box); + return $this; + } + contains_vbgn2f_k$(element) { + return this.this$0__1.containsKey_aw81wo_k$(element); + } + contains_aljjnj_k$(element) { + if (!(element == null ? true : !(element == null))) + return false; + return this.contains_vbgn2f_k$((element == null ? true : !(element == null)) ? element : THROW_CCE()); + } + iterator_jk1svi_k$() { + var entryIterator = this.this$0__1.get_entries_p20ztl_k$().iterator_jk1svi_k$(); + return new AbstractMap$keys$1$iterator$1(entryIterator); + } + get_size_woubt6_k$() { + return this.this$0__1.get_size_woubt6_k$(); + } + } + class AbstractMap$values$1 extends AbstractCollection { + static new_kotlin_collections_AbstractMap__no_name_provided__l68rhx_k$(this$0, $box) { + if ($box === VOID) + $box = {}; + $box.this$0__1 = this$0; + var $this = this.new_kotlin_collections_AbstractCollection_s1tlv0_k$($box); + return $this; + } + contains_m22g8e_k$(element) { + return this.this$0__1.containsValue_yf2ykl_k$(element); + } + contains_aljjnj_k$(element) { + if (!(element == null ? true : !(element == null))) + return false; + return this.contains_m22g8e_k$((element == null ? true : !(element == null)) ? element : THROW_CCE()); + } + iterator_jk1svi_k$() { + var entryIterator = this.this$0__1.get_entries_p20ztl_k$().iterator_jk1svi_k$(); + return new AbstractMap$values$1$iterator$1(entryIterator); + } + get_size_woubt6_k$() { + return this.this$0__1.get_size_woubt6_k$(); + } + } + class Companion_6 { + constructor() { + } + unorderedHashCode_9qpwii_k$(c) { + var hashCode_0 = 0; + var tmp0_iterator = c.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp = hashCode_0; + var tmp1_safe_receiver = element; + var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : hashCode(tmp1_safe_receiver); + hashCode_0 = tmp + (tmp2_elvis_lhs == null ? 0 : tmp2_elvis_lhs) | 0; + } + return hashCode_0; + } + setEquals_3t788x_k$(c, other) { + if (!(c.get_size_woubt6_k$() === other.get_size_woubt6_k$())) + return false; + var tmp$ret$0; + // Inline function 'kotlin.collections.containsAll' call + var this_0 = c; + var elements = other; + tmp$ret$0 = this_0.containsAll_bwkf3g_k$(elements); + return tmp$ret$0; + } + } + class EmptyList { + constructor() { + EmptyList_instance = this; + this.serialVersionUID_1 = new Long(-1478467534, -1720727600); + } + equals(other) { + var tmp; + if (!(other == null) ? isInterface(other, List) : false) { + tmp = other.isEmpty_y1axqb_k$(); + } else { + tmp = false; + } + return tmp; + } + hashCode() { + return 1; + } + toString() { + return '[]'; + } + get_size_woubt6_k$() { + return 0; + } + isEmpty_y1axqb_k$() { + return true; + } + containsAll_4yme17_k$(elements) { + return elements.isEmpty_y1axqb_k$(); + } + containsAll_bwkf3g_k$(elements) { + return this.containsAll_4yme17_k$(elements); + } + get_c1px32_k$(index) { + throw IndexOutOfBoundsException.new_kotlin_IndexOutOfBoundsException_ddr8db_k$("Empty list doesn't contain element at index " + index + '.'); + } + iterator_jk1svi_k$() { + return EmptyIterator_instance; + } + } + class ArrayAsCollection { + constructor(values, isVarargs) { + this.values_1 = values; + this.isVarargs_1 = isVarargs; + } + get_size_woubt6_k$() { + return this.values_1.length; + } + isEmpty_y1axqb_k$() { + var tmp$ret$0; + // Inline function 'kotlin.collections.isEmpty' call + var this_0 = this.values_1; + tmp$ret$0 = this_0.length === 0; + return tmp$ret$0; + } + contains_ccp5tc_k$(element) { + return contains(this.values_1, element); + } + containsAll_bwkfgd_k$(elements) { + var tmp$ret$0; + $l$block_0: { + // Inline function 'kotlin.collections.all' call + var this_0 = elements; + var tmp; + if (isInterface(this_0, Collection)) { + tmp = this_0.isEmpty_y1axqb_k$(); + } else { + tmp = false; + } + if (tmp) { + tmp$ret$0 = true; + break $l$block_0; + } + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$1; + // Inline function 'kotlin.collections.ArrayAsCollection.containsAll.' call + var it = element; + tmp$ret$1 = this.contains_ccp5tc_k$(it); + if (!tmp$ret$1) { + tmp$ret$0 = false; + break $l$block_0; + } + } + tmp$ret$0 = true; + } + return tmp$ret$0; + } + containsAll_bwkf3g_k$(elements) { + return this.containsAll_bwkfgd_k$(elements); + } + iterator_jk1svi_k$() { + return arrayIterator(this.values_1); + } + } + class EmptyIterator { + constructor() { + } + hasNext_bitz1p_k$() { + return false; + } + next_20eer_k$() { + throw NoSuchElementException.new_kotlin_NoSuchElementException_wy3d4q_k$(); + } + } + class IndexedValue { + constructor(index, value) { + this.index_1 = index; + this.value_1 = value; + } + toString() { + return 'IndexedValue(index=' + this.index_1 + ', value=' + this.value_1 + ')'; + } + hashCode() { + var result = this.index_1; + result = imul(result, 31) + (this.value_1 == null ? 0 : hashCode(this.value_1)) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof IndexedValue)) + return false; + var tmp0_other_with_cast = other instanceof IndexedValue ? other : THROW_CCE(); + if (!(this.index_1 === tmp0_other_with_cast.index_1)) + return false; + if (!equals(this.value_1, tmp0_other_with_cast.value_1)) + return false; + return true; + } + } + class IndexingIterable { + constructor(iteratorFactory) { + this.iteratorFactory_1 = iteratorFactory; + } + iterator_jk1svi_k$() { + return new IndexingIterator(this.iteratorFactory_1()); + } + } + class IndexingIterator { + constructor(iterator) { + this.iterator_1 = iterator; + this.index_1 = 0; + } + hasNext_bitz1p_k$() { + return this.iterator_1.hasNext_bitz1p_k$(); + } + next_20eer_k$() { + var tmp0_this = this; + var tmp1 = tmp0_this.index_1; + tmp0_this.index_1 = tmp1 + 1 | 0; + return new IndexedValue(checkIndexOverflow(tmp1), this.iterator_1.next_20eer_k$()); + } + } + class MapWithDefault {} + class EmptyMap { + constructor() { + EmptyMap_instance = this; + this.serialVersionUID_1 = new Long(-888910638, 1920087921); + } + equals(other) { + var tmp; + if (!(other == null) ? isInterface(other, Map_0) : false) { + tmp = other.isEmpty_y1axqb_k$(); + } else { + tmp = false; + } + return tmp; + } + hashCode() { + return 0; + } + toString() { + return '{}'; + } + get_size_woubt6_k$() { + return 0; + } + isEmpty_y1axqb_k$() { + return true; + } + containsKey_v2r3nj_k$(key) { + return false; + } + containsKey_aw81wo_k$(key) { + if (!(key == null ? true : !(key == null))) + return false; + return this.containsKey_v2r3nj_k$((key == null ? true : !(key == null)) ? key : THROW_CCE()); + } + get_eccq09_k$(key) { + return null; + } + get_wei43m_k$(key) { + if (!(key == null ? true : !(key == null))) + return null; + return this.get_eccq09_k$((key == null ? true : !(key == null)) ? key : THROW_CCE()); + } + get_entries_p20ztl_k$() { + return EmptySet_getInstance(); + } + get_keys_wop4xp_k$() { + return EmptySet_getInstance(); + } + get_values_ksazhn_k$() { + return EmptyList_getInstance(); + } + } + class IntIterator { + constructor() { + } + next_20eer_k$() { + return this.nextInt_ujorgc_k$(); + } + } + class EmptySet { + constructor() { + EmptySet_instance = this; + this.serialVersionUID_1 = new Long(1993859828, 793161749); + } + equals(other) { + var tmp; + if (!(other == null) ? isInterface(other, Set) : false) { + tmp = other.isEmpty_y1axqb_k$(); + } else { + tmp = false; + } + return tmp; + } + hashCode() { + return 0; + } + toString() { + return '[]'; + } + get_size_woubt6_k$() { + return 0; + } + isEmpty_y1axqb_k$() { + return true; + } + containsAll_4yme17_k$(elements) { + return elements.isEmpty_y1axqb_k$(); + } + containsAll_bwkf3g_k$(elements) { + return this.containsAll_4yme17_k$(elements); + } + iterator_jk1svi_k$() { + return EmptyIterator_instance; + } + } + class Companion_7 { + constructor() { + Companion_instance_7 = this; + this.EMPTY_1 = new IntRange(1, 0); + } + } + class IntProgression { + constructor(start, endInclusive, step) { + Companion_instance_8; + if (step === 0) + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('Step must be non-zero.'); + if (step === IntCompanionObject_instance.MIN_VALUE) + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('Step must be greater than Int.MIN_VALUE to avoid overflow on negation.'); + this.first_1 = start; + this.last_1 = getProgressionLastElement(start, endInclusive, step); + this.step_1 = step; + } + iterator_jk1svi_k$() { + return new IntProgressionIterator(this.first_1, this.last_1, this.step_1); + } + isEmpty_y1axqb_k$() { + return this.step_1 > 0 ? this.first_1 > this.last_1 : this.first_1 < this.last_1; + } + equals(other) { + var tmp; + if (other instanceof IntProgression) { + tmp = (this.isEmpty_y1axqb_k$() ? other.isEmpty_y1axqb_k$() : false) ? true : (this.first_1 === other.first_1 ? this.last_1 === other.last_1 : false) ? this.step_1 === other.step_1 : false; + } else { + tmp = false; + } + return tmp; + } + hashCode() { + return this.isEmpty_y1axqb_k$() ? -1 : imul(31, imul(31, this.first_1) + this.last_1 | 0) + this.step_1 | 0; + } + toString() { + return this.step_1 > 0 ? '' + this.first_1 + '..' + this.last_1 + ' step ' + this.step_1 : '' + this.first_1 + ' downTo ' + this.last_1 + ' step ' + (-this.step_1 | 0); + } + } + class IntRange extends IntProgression { + constructor(start, endInclusive) { + Companion_getInstance_7(); + super(start, endInclusive, 1); + } + isEmpty_y1axqb_k$() { + return this.first_1 > this.last_1; + } + equals(other) { + var tmp; + if (other instanceof IntRange) { + tmp = (this.isEmpty_y1axqb_k$() ? other.isEmpty_y1axqb_k$() : false) ? true : this.first_1 === other.first_1 ? this.last_1 === other.last_1 : false; + } else { + tmp = false; + } + return tmp; + } + hashCode() { + return this.isEmpty_y1axqb_k$() ? -1 : imul(31, this.first_1) + this.last_1 | 0; + } + toString() { + return '' + this.first_1 + '..' + this.last_1; + } + } + class IntProgressionIterator extends IntIterator { + constructor(first, last, step) { + super(); + this.step_1 = step; + this.finalElement_1 = last; + this.hasNext_1 = this.step_1 > 0 ? first <= last : first >= last; + this.next_1 = this.hasNext_1 ? first : this.finalElement_1; + } + hasNext_bitz1p_k$() { + return this.hasNext_1; + } + nextInt_ujorgc_k$() { + var value = this.next_1; + if (value === this.finalElement_1) { + if (!this.hasNext_1) + throw NoSuchElementException.new_kotlin_NoSuchElementException_wy3d4q_k$(); + this.hasNext_1 = false; + } else { + var tmp0_this = this; + tmp0_this.next_1 = tmp0_this.next_1 + this.step_1 | 0; + } + return value; + } + } + class Companion_8 { + constructor() { + } + fromClosedRange_y6bqsv_k$(rangeStart, rangeEnd, step) { + return new IntProgression(rangeStart, rangeEnd, step); + } + } + class LazyThreadSafetyMode extends Enum { + constructor(name, ordinal) { + super(name, ordinal); + } + } + class UnsafeLazyImpl { + constructor(initializer) { + this.initializer_1 = initializer; + this._value_1 = UNINITIALIZED_VALUE_instance; + } + get_value_j01efc_k$() { + if (this._value_1 === UNINITIALIZED_VALUE_instance) { + this._value_1 = ensureNotNull(this.initializer_1)(); + this.initializer_1 = null; + } + var tmp = this._value_1; + return (tmp == null ? true : !(tmp == null)) ? tmp : THROW_CCE(); + } + isInitialized_2wsk3a_k$() { + return !(this._value_1 === UNINITIALIZED_VALUE_instance); + } + toString() { + return this.isInitialized_2wsk3a_k$() ? toString_0(this.get_value_j01efc_k$()) : 'Lazy value not initialized yet.'; + } + } + class UNINITIALIZED_VALUE { + constructor() { + } + } + class Pair { + constructor(first, second) { + this.first_1 = first; + this.second_1 = second; + } + toString() { + return '(' + this.first_1 + ', ' + this.second_1 + ')'; + } + component1_7eebsc_k$() { + return this.first_1; + } + component2_7eebsb_k$() { + return this.second_1; + } + hashCode() { + var result = this.first_1 == null ? 0 : hashCode(this.first_1); + result = imul(result, 31) + (this.second_1 == null ? 0 : hashCode(this.second_1)) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof Pair)) + return false; + var tmp0_other_with_cast = other instanceof Pair ? other : THROW_CCE(); + if (!equals(this.first_1, tmp0_other_with_cast.first_1)) + return false; + if (!equals(this.second_1, tmp0_other_with_cast.second_1)) + return false; + return true; + } + } + class SerializationStrategy {} + class DeserializationStrategy {} + class KSerializer {} + class SerializationException extends IllegalArgumentException { + static new_kotlinx_serialization_SerializationException_ux6c97_k$() { + var $this = this.new_kotlin_IllegalArgumentException_pv5o3f_k$(); + init_kotlinx_serialization_SerializationException($this); + return $this; + } + static new_kotlinx_serialization_SerializationException_jj1itu_k$(message) { + var $this = this.new_kotlin_IllegalArgumentException_sfqr8_k$(message); + init_kotlinx_serialization_SerializationException($this); + return $this; + } + static new_kotlinx_serialization_SerializationException_pjmzgo_k$(message, cause) { + var $this = this.new_kotlin_IllegalArgumentException_afpr0i_k$(message, cause); + init_kotlinx_serialization_SerializationException($this); + return $this; + } + } + class UnknownFieldException extends SerializationException { + static new_kotlinx_serialization_UnknownFieldException_mhgeaq_k$(message) { + var $this = this.new_kotlinx_serialization_SerializationException_jj1itu_k$(message); + captureStack($this, $this.$throwableCtor_5); + return $this; + } + static new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(index) { + var $this = this.new_kotlinx_serialization_UnknownFieldException_mhgeaq_k$('An unknown field for index ' + index); + return $this; + } + } + class MissingFieldException extends SerializationException { + static new_kotlinx_serialization_MissingFieldException_lk3vie_k$(missingFields, message, cause) { + var $this = this.new_kotlinx_serialization_SerializationException_pjmzgo_k$(message, cause); + captureStack($this, $this.$throwableCtor_5); + $this.missingFields_1 = missingFields; + return $this; + } + static new_kotlinx_serialization_MissingFieldException_2xrfvb_k$(missingFields, serialName) { + var $this = this.new_kotlinx_serialization_MissingFieldException_lk3vie_k$(missingFields, missingFields.get_size_woubt6_k$() === 1 ? "Field '" + missingFields.get_c1px32_k$(0) + "' is required for type with serial name '" + serialName + "', but it was missing" : 'Fields ' + missingFields + " are required for type with serial name '" + serialName + "', but they were missing", null); + return $this; + } + } + class SerialDescriptor {} + function get_isNullable() { + return false; + } + class elementDescriptors$1$1 { + constructor($this_elementDescriptors) { + this.$this_elementDescriptors_1 = $this_elementDescriptors; + this.elementsLeft_1 = $this_elementDescriptors.get_elementsCount_288r0x_k$(); + } + hasNext_bitz1p_k$() { + return this.elementsLeft_1 > 0; + } + next_20eer_k$() { + var tmp = this.$this_elementDescriptors_1.get_elementsCount_288r0x_k$(); + var tmp0_this = this; + var tmp1 = tmp0_this.elementsLeft_1; + tmp0_this.elementsLeft_1 = tmp1 - 1 | 0; + return this.$this_elementDescriptors_1.getElementDescriptor_ncda77_k$(tmp - tmp1 | 0); + } + } + class _no_name_provided__qut3iv { + constructor($this_elementDescriptors) { + this.$this_elementDescriptors_1 = $this_elementDescriptors; + } + iterator_jk1svi_k$() { + var tmp$ret$0; + // Inline function 'kotlinx.serialization.descriptors..' call + tmp$ret$0 = new elementDescriptors$1$1(this.$this_elementDescriptors_1); + return tmp$ret$0; + } + } + class elementNames$1$1 { + constructor($this_elementNames) { + this.$this_elementNames_1 = $this_elementNames; + this.elementsLeft_1 = $this_elementNames.get_elementsCount_288r0x_k$(); + } + hasNext_bitz1p_k$() { + return this.elementsLeft_1 > 0; + } + next_20eer_k$() { + var tmp = this.$this_elementNames_1.get_elementsCount_288r0x_k$(); + var tmp0_this = this; + var tmp1 = tmp0_this.elementsLeft_1; + tmp0_this.elementsLeft_1 = tmp1 - 1 | 0; + return this.$this_elementNames_1.getElementName_u4sqmf_k$(tmp - tmp1 | 0); + } + } + class _no_name_provided__qut3iv_0 { + constructor($this_elementNames) { + this.$this_elementNames_1 = $this_elementNames; + } + iterator_jk1svi_k$() { + var tmp$ret$0; + // Inline function 'kotlinx.serialization.descriptors..' call + tmp$ret$0 = new elementNames$1$1(this.$this_elementNames_1); + return tmp$ret$0; + } + } + class ClassSerialDescriptorBuilder { + constructor(serialName) { + this.serialName_1 = serialName; + this.isNullable_1 = false; + this.annotations_1 = emptyList(); + this.elementNames_1 = ArrayList.new_kotlin_collections_ArrayList_ony0vx_k$(); + this.uniqueNames_1 = HashSet.new_kotlin_collections_HashSet_ovxcsm_k$(); + this.elementDescriptors_1 = ArrayList.new_kotlin_collections_ArrayList_ony0vx_k$(); + this.elementAnnotations_1 = ArrayList.new_kotlin_collections_ArrayList_ony0vx_k$(); + this.elementOptionality_1 = ArrayList.new_kotlin_collections_ArrayList_ony0vx_k$(); + } + element_om879h_k$(elementName, descriptor, annotations, isOptional) { + // Inline function 'kotlin.require' call + var value = this.uniqueNames_1.add_utx5q5_k$(elementName); + // Inline function 'kotlin.contracts.contract' call + if (!value) { + var tmp$ret$0; + // Inline function 'kotlinx.serialization.descriptors.ClassSerialDescriptorBuilder.element.' call + tmp$ret$0 = "Element with name '" + elementName + "' is already registered"; + var message = tmp$ret$0; + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$(toString_1(message)); + } + var tmp0_this = this; + // Inline function 'kotlin.collections.plusAssign' call + var this_0 = tmp0_this.elementNames_1; + var element = elementName; + this_0.add_utx5q5_k$(element); + Unit_instance; + var tmp1_this = this; + // Inline function 'kotlin.collections.plusAssign' call + var this_1 = tmp1_this.elementDescriptors_1; + var element_0 = descriptor; + this_1.add_utx5q5_k$(element_0); + Unit_instance; + var tmp2_this = this; + // Inline function 'kotlin.collections.plusAssign' call + var this_2 = tmp2_this.elementAnnotations_1; + var element_1 = annotations; + this_2.add_utx5q5_k$(element_1); + Unit_instance; + var tmp3_this = this; + // Inline function 'kotlin.collections.plusAssign' call + var this_3 = tmp3_this.elementOptionality_1; + var element_2 = isOptional; + this_3.add_utx5q5_k$(element_2); + Unit_instance; + } + element$default_ey7ac9_k$(elementName, descriptor, annotations, isOptional, $super) { + annotations = annotations === VOID ? emptyList() : annotations; + isOptional = isOptional === VOID ? false : isOptional; + var tmp; + if ($super === VOID) { + this.element_om879h_k$(elementName, descriptor, annotations, isOptional); + tmp = Unit_instance; + } else { + tmp = $super.element_om879h_k$.call(this, elementName, descriptor, annotations, isOptional); + } + return tmp; + } + } + class CachedNames {} + class SerialDescriptorImpl { + constructor(serialName, kind, elementsCount, typeParameters, builder) { + this.serialName_1 = serialName; + this.kind_1 = kind; + this.elementsCount_1 = elementsCount; + this.annotations_1 = builder.annotations_1; + this.serialNames_1 = toHashSet(builder.elementNames_1); + var tmp = this; + var tmp$ret$0; + // Inline function 'kotlin.collections.toTypedArray' call + var this_0 = builder.elementNames_1; + tmp$ret$0 = copyToArray(this_0); + tmp.elementNames_1 = tmp$ret$0; + this.elementDescriptors_1 = compactArray(builder.elementDescriptors_1); + var tmp_0 = this; + var tmp$ret$1; + // Inline function 'kotlin.collections.toTypedArray' call + var this_1 = builder.elementAnnotations_1; + tmp$ret$1 = copyToArray(this_1); + tmp_0.elementAnnotations_1 = tmp$ret$1; + this.elementOptionality_1 = toBooleanArray(builder.elementOptionality_1); + var tmp_1 = this; + var tmp$ret$4; + // Inline function 'kotlin.collections.map' call + var this_2 = withIndex(this.elementNames_1); + var tmp$ret$3; + // Inline function 'kotlin.collections.mapTo' call + var this_3 = this_2; + var destination = ArrayList.new_kotlin_collections_ArrayList_tdd6ob_k$(collectionSizeOrDefault(this_2, 10)); + var tmp0_iterator = this_3.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var item = tmp0_iterator.next_20eer_k$(); + var tmp$ret$2; + // Inline function 'kotlinx.serialization.descriptors.SerialDescriptorImpl.name2Index.' call + var it = item; + tmp$ret$2 = to(it.value_1, it.index_1); + destination.add_utx5q5_k$(tmp$ret$2); + Unit_instance; + } + tmp$ret$3 = destination; + tmp$ret$4 = tmp$ret$3; + tmp_1.name2Index_1 = toMap(tmp$ret$4); + this.typeParametersDescriptors_1 = compactArray(typeParameters); + var tmp_2 = this; + tmp_2._hashCode$delegate_1 = lazy_0(SerialDescriptorImpl$_hashCode$delegate$lambda(this)); + } + get_serialName_u2rqhk_k$() { + return this.serialName_1; + } + get_kind_wop7ml_k$() { + return this.kind_1; + } + get_elementsCount_288r0x_k$() { + return this.elementsCount_1; + } + get_serialNames_8zf3cl_k$() { + return this.serialNames_1; + } + getElementName_u4sqmf_k$(index) { + return getChecked(this.elementNames_1, index); + } + getElementAnnotations_omrjs6_k$(index) { + return getChecked(this.elementAnnotations_1, index); + } + getElementDescriptor_ncda77_k$(index) { + return getChecked(this.elementDescriptors_1, index); + } + isElementOptional_heqq56_k$(index) { + return getChecked_0(this.elementOptionality_1, index); + } + equals(other) { + var tmp$ret$0; + $l$block_5: { + // Inline function 'kotlinx.serialization.internal.equalsImpl' call + var this_0 = this; + var other_0 = other; + if (this_0 === other_0) { + tmp$ret$0 = true; + break $l$block_5; + } + if (!(other_0 instanceof SerialDescriptorImpl)) { + tmp$ret$0 = false; + break $l$block_5; + } + if (!(this_0.get_serialName_u2rqhk_k$() === other_0.get_serialName_u2rqhk_k$())) { + tmp$ret$0 = false; + break $l$block_5; + } + var tmp$ret$1; + // Inline function 'kotlinx.serialization.descriptors.SerialDescriptorImpl.equals.' call + var otherDescriptor = other_0; + tmp$ret$1 = contentEquals_0(this.typeParametersDescriptors_1, otherDescriptor.typeParametersDescriptors_1); + if (!tmp$ret$1) { + tmp$ret$0 = false; + break $l$block_5; + } + if (!(this_0.get_elementsCount_288r0x_k$() === other_0.get_elementsCount_288r0x_k$())) { + tmp$ret$0 = false; + break $l$block_5; + } + var inductionVariable = 0; + var last = this_0.get_elementsCount_288r0x_k$(); + if (inductionVariable < last) + do { + var index = inductionVariable; + inductionVariable = inductionVariable + 1 | 0; + if (!(this_0.getElementDescriptor_ncda77_k$(index).get_serialName_u2rqhk_k$() === other_0.getElementDescriptor_ncda77_k$(index).get_serialName_u2rqhk_k$())) { + tmp$ret$0 = false; + break $l$block_5; + } + if (!equals(this_0.getElementDescriptor_ncda77_k$(index).get_kind_wop7ml_k$(), other_0.getElementDescriptor_ncda77_k$(index).get_kind_wop7ml_k$())) { + tmp$ret$0 = false; + break $l$block_5; + } + } + while (inductionVariable < last); + tmp$ret$0 = true; + } + return tmp$ret$0; + } + hashCode() { + return _get__hashCode__tgwhef(this); + } + toString() { + var tmp = until(0, this.elementsCount_1); + var tmp_0 = this.serialName_1 + '('; + return joinToString_0(tmp, ', ', tmp_0, ')', VOID, VOID, SerialDescriptorImpl$toString$lambda(this)); + } + } + class SerialKind { + constructor() { + } + toString() { + return ensureNotNull(getKClassFromExpression(this).get_simpleName_r6f8py_k$()); + } + hashCode() { + return getStringHashCode(this.toString()); + } + } + class ENUM extends SerialKind { + constructor() { + ENUM_instance = null; + super(); + ENUM_instance = this; + } + } + class PrimitiveKind extends SerialKind { + constructor() { + super(); + } + } + class BOOLEAN extends PrimitiveKind { + constructor() { + BOOLEAN_instance = null; + super(); + BOOLEAN_instance = this; + } + } + class BYTE extends PrimitiveKind { + constructor() { + BYTE_instance = null; + super(); + BYTE_instance = this; + } + } + class INT extends PrimitiveKind { + constructor() { + INT_instance = null; + super(); + INT_instance = this; + } + } + class LONG extends PrimitiveKind { + constructor() { + LONG_instance = null; + super(); + LONG_instance = this; + } + } + class FLOAT extends PrimitiveKind { + constructor() { + FLOAT_instance = null; + super(); + FLOAT_instance = this; + } + } + class DOUBLE extends PrimitiveKind { + constructor() { + DOUBLE_instance = null; + super(); + DOUBLE_instance = this; + } + } + class STRING extends PrimitiveKind { + constructor() { + STRING_instance = null; + super(); + STRING_instance = this; + } + } + class StructureKind extends SerialKind { + constructor() { + super(); + } + } + class CLASS extends StructureKind { + constructor() { + CLASS_instance = null; + super(); + CLASS_instance = this; + } + } + class LIST extends StructureKind { + constructor() { + LIST_instance = null; + super(); + LIST_instance = this; + } + } + class MAP extends StructureKind { + constructor() { + MAP_instance = null; + super(); + MAP_instance = this; + } + } + class OBJECT extends StructureKind { + constructor() { + OBJECT_instance = null; + super(); + OBJECT_instance = this; + } + } + class PolymorphicKind extends SerialKind {} + class Decoder {} + function decodeSerializableValue(deserializer) { + return deserializer.deserialize_sy6x50_k$(this); + } + class Companion_9 { + constructor() { + this.DECODE_DONE_1 = -1; + this.UNKNOWN_NAME_1 = -3; + } + } + class CompositeDecoder {} + function decodeSequentially() { + return false; + } + function decodeCollectionSize(descriptor) { + return -1; + } + function decodeSerializableElement$default(descriptor, index, deserializer, previousValue, $super) { + previousValue = previousValue === VOID ? null : previousValue; + return $super === VOID ? this.decodeSerializableElement_uahnnv_k$(descriptor, index, deserializer, previousValue) : $super.decodeSerializableElement_uahnnv_k$.call(this, descriptor, index, deserializer, previousValue); + } + class Encoder {} + function encodeNotNullMark() { + } + function beginCollection(descriptor, collectionSize) { + return this.beginStructure_yljocp_k$(descriptor); + } + function encodeSerializableValue(serializer, value) { + serializer.serialize_5ase3y_k$(this, value); + } + function encodeNullableSerializableValue(serializer, value) { + var isNullabilitySupported = serializer.get_descriptor_wjt6a0_k$().get_isNullable_67sy7o_k$(); + if (isNullabilitySupported) { + return this.encodeSerializableValue_3uuzip_k$(isInterface(serializer, SerializationStrategy) ? serializer : THROW_CCE(), value); + } + if (value == null) { + this.encodeNull_ejiosz_k$(); + Unit_instance; + } else { + this.encodeNotNullMark_415a1t_k$(); + this.encodeSerializableValue_3uuzip_k$(serializer, value); + Unit_instance; + } + } + class CompositeEncoder {} + function shouldEncodeElementDefault(descriptor, index) { + return true; + } + class ListLikeDescriptor { + constructor(elementDescriptor) { + this.elementDescriptor_1 = elementDescriptor; + this.elementsCount_1 = 1; + } + get_kind_wop7ml_k$() { + return LIST_getInstance(); + } + get_elementsCount_288r0x_k$() { + return this.elementsCount_1; + } + getElementName_u4sqmf_k$(index) { + return index.toString(); + } + isElementOptional_heqq56_k$(index) { + // Inline function 'kotlin.require' call + var value = index >= 0; + // Inline function 'kotlin.contracts.contract' call + if (!value) { + var tmp$ret$0; + // Inline function 'kotlinx.serialization.internal.ListLikeDescriptor.isElementOptional.' call + tmp$ret$0 = 'Illegal index ' + index + ', ' + this.get_serialName_u2rqhk_k$() + ' expects only non-negative indices'; + var message = tmp$ret$0; + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$(toString_1(message)); + } + return false; + } + getElementAnnotations_omrjs6_k$(index) { + // Inline function 'kotlin.require' call + var value = index >= 0; + // Inline function 'kotlin.contracts.contract' call + if (!value) { + var tmp$ret$0; + // Inline function 'kotlinx.serialization.internal.ListLikeDescriptor.getElementAnnotations.' call + tmp$ret$0 = 'Illegal index ' + index + ', ' + this.get_serialName_u2rqhk_k$() + ' expects only non-negative indices'; + var message = tmp$ret$0; + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$(toString_1(message)); + } + return emptyList(); + } + getElementDescriptor_ncda77_k$(index) { + // Inline function 'kotlin.require' call + var value = index >= 0; + // Inline function 'kotlin.contracts.contract' call + if (!value) { + var tmp$ret$0; + // Inline function 'kotlinx.serialization.internal.ListLikeDescriptor.getElementDescriptor.' call + tmp$ret$0 = 'Illegal index ' + index + ', ' + this.get_serialName_u2rqhk_k$() + ' expects only non-negative indices'; + var message = tmp$ret$0; + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$(toString_1(message)); + } + return this.elementDescriptor_1; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof ListLikeDescriptor)) + return false; + if (equals(this.elementDescriptor_1, other.elementDescriptor_1) ? this.get_serialName_u2rqhk_k$() === other.get_serialName_u2rqhk_k$() : false) + return true; + return false; + } + hashCode() { + return imul(hashCode(this.elementDescriptor_1), 31) + getStringHashCode(this.get_serialName_u2rqhk_k$()) | 0; + } + toString() { + return this.get_serialName_u2rqhk_k$() + '(' + this.elementDescriptor_1 + ')'; + } + } + class ArrayListClassDesc extends ListLikeDescriptor { + constructor(elementDesc) { + super(elementDesc); + } + get_serialName_u2rqhk_k$() { + return 'kotlin.collections.ArrayList'; + } + } + class LinkedHashSetClassDesc extends ListLikeDescriptor { + constructor(elementDesc) { + super(elementDesc); + } + get_serialName_u2rqhk_k$() { + return 'kotlin.collections.LinkedHashSet'; + } + } + class MapLikeDescriptor { + constructor(serialName, keyDescriptor, valueDescriptor) { + this.serialName_1 = serialName; + this.keyDescriptor_1 = keyDescriptor; + this.valueDescriptor_1 = valueDescriptor; + this.elementsCount_1 = 2; + } + get_serialName_u2rqhk_k$() { + return this.serialName_1; + } + get_kind_wop7ml_k$() { + return MAP_getInstance(); + } + get_elementsCount_288r0x_k$() { + return this.elementsCount_1; + } + getElementName_u4sqmf_k$(index) { + return index.toString(); + } + isElementOptional_heqq56_k$(index) { + // Inline function 'kotlin.require' call + var value = index >= 0; + // Inline function 'kotlin.contracts.contract' call + if (!value) { + var tmp$ret$0; + // Inline function 'kotlinx.serialization.internal.MapLikeDescriptor.isElementOptional.' call + tmp$ret$0 = 'Illegal index ' + index + ', ' + this.get_serialName_u2rqhk_k$() + ' expects only non-negative indices'; + var message = tmp$ret$0; + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$(toString_1(message)); + } + return false; + } + getElementAnnotations_omrjs6_k$(index) { + // Inline function 'kotlin.require' call + var value = index >= 0; + // Inline function 'kotlin.contracts.contract' call + if (!value) { + var tmp$ret$0; + // Inline function 'kotlinx.serialization.internal.MapLikeDescriptor.getElementAnnotations.' call + tmp$ret$0 = 'Illegal index ' + index + ', ' + this.get_serialName_u2rqhk_k$() + ' expects only non-negative indices'; + var message = tmp$ret$0; + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$(toString_1(message)); + } + return emptyList(); + } + getElementDescriptor_ncda77_k$(index) { + // Inline function 'kotlin.require' call + var value = index >= 0; + // Inline function 'kotlin.contracts.contract' call + if (!value) { + var tmp$ret$0; + // Inline function 'kotlinx.serialization.internal.MapLikeDescriptor.getElementDescriptor.' call + tmp$ret$0 = 'Illegal index ' + index + ', ' + this.get_serialName_u2rqhk_k$() + ' expects only non-negative indices'; + var message = tmp$ret$0; + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$(toString_1(message)); + } + var tmp0_subject = index % 2 | 0; + var tmp; + switch (tmp0_subject) { + case 0: + tmp = this.keyDescriptor_1; + break; + case 1: + tmp = this.valueDescriptor_1; + break; + default: + var message_0 = 'Unreached'; + throw IllegalStateException.new_kotlin_IllegalStateException_w47ei6_k$(toString_1(message_0)); + } + return tmp; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof MapLikeDescriptor)) + return false; + if (!(this.get_serialName_u2rqhk_k$() === other.get_serialName_u2rqhk_k$())) + return false; + if (!equals(this.keyDescriptor_1, other.keyDescriptor_1)) + return false; + if (!equals(this.valueDescriptor_1, other.valueDescriptor_1)) + return false; + return true; + } + hashCode() { + var result = getStringHashCode(this.get_serialName_u2rqhk_k$()); + result = imul(31, result) + hashCode(this.keyDescriptor_1) | 0; + result = imul(31, result) + hashCode(this.valueDescriptor_1) | 0; + return result; + } + toString() { + return this.get_serialName_u2rqhk_k$() + '(' + this.keyDescriptor_1 + ', ' + this.valueDescriptor_1 + ')'; + } + } + class LinkedHashMapClassDesc extends MapLikeDescriptor { + constructor(keyDesc, valueDesc) { + super('kotlin.collections.LinkedHashMap', keyDesc, valueDesc); + } + } + class PrimitiveArrayDescriptor extends ListLikeDescriptor { + constructor(primitive) { + super(primitive); + this.serialName_1 = primitive.get_serialName_u2rqhk_k$() + 'Array'; + } + get_serialName_u2rqhk_k$() { + return this.serialName_1; + } + } + class AbstractCollectionSerializer { + constructor() { + } + merge_4lx7x7_k$(decoder, previous) { + var tmp0_safe_receiver = previous; + var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : this.toBuilder_5lxc6t_k$(tmp0_safe_receiver); + var builder = tmp1_elvis_lhs == null ? this.builder_3thy1n_k$() : tmp1_elvis_lhs; + var startIndex = this.builderSize_wan9ya_k$(builder); + var compositeDecoder = decoder.beginStructure_yljocp_k$(this.get_descriptor_wjt6a0_k$()); + if (compositeDecoder.decodeSequentially_xlblqy_k$()) { + this.readAll_464h0j_k$(compositeDecoder, builder, startIndex, readSize(this, compositeDecoder, builder)); + Unit_instance; + } else { + $l$loop: while (true) { + var index = compositeDecoder.decodeElementIndex_bstkhp_k$(this.get_descriptor_wjt6a0_k$()); + Companion_instance_9; + if (index === -1) + break $l$loop; + this.readElement$default_2bdt9n_k$(compositeDecoder, startIndex + index | 0, builder); + Unit_instance; + } + } + compositeDecoder.endStructure_1xqz0n_k$(this.get_descriptor_wjt6a0_k$()); + return this.toResult_x7ydem_k$(builder); + } + deserialize_sy6x50_k$(decoder) { + return this.merge_4lx7x7_k$(decoder, null); + } + readElement$default_2bdt9n_k$(decoder, index, builder, checkIndex, $super) { + checkIndex = checkIndex === VOID ? true : checkIndex; + var tmp; + if ($super === VOID) { + this.readElement_36l3ep_k$(decoder, index, builder, checkIndex); + tmp = Unit_instance; + } else { + tmp = $super.readElement_36l3ep_k$.call(this, decoder, index, builder, checkIndex); + } + return tmp; + } + } + class CollectionLikeSerializer extends AbstractCollectionSerializer { + constructor(elementSerializer) { + super(); + this.elementSerializer_1 = elementSerializer; + } + serialize_ag16s_k$(encoder, value) { + var size = this.collectionSize_kqukvo_k$(value); + // Inline function 'kotlinx.serialization.encoding.encodeCollection' call + var this_0 = encoder; + var descriptor = this.get_descriptor_wjt6a0_k$(); + var collectionSize = size; + var composite = this_0.beginCollection_9edss2_k$(descriptor, collectionSize); + // Inline function 'kotlinx.serialization.internal.CollectionLikeSerializer.serialize.' call + var $this$encodeCollection = composite; + var iterator = this.collectionIterator_l8s4xt_k$(value); + var inductionVariable = 0; + if (inductionVariable < size) + do { + var index = inductionVariable; + inductionVariable = inductionVariable + 1 | 0; + $this$encodeCollection.encodeSerializableElement_isqxcl_k$(this.get_descriptor_wjt6a0_k$(), index, this.elementSerializer_1, iterator.next_20eer_k$()); + Unit_instance; + } + while (inductionVariable < size); + composite.endStructure_1xqz0n_k$(descriptor); + Unit_instance; + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_ag16s_k$(encoder, (value == null ? true : !(value == null)) ? value : THROW_CCE()); + } + readAll_464h0j_k$(decoder, builder, startIndex, size) { + // Inline function 'kotlin.require' call + var value = size >= 0; + // Inline function 'kotlin.contracts.contract' call + if (!value) { + var tmp$ret$0; + // Inline function 'kotlinx.serialization.internal.CollectionLikeSerializer.readAll.' call + tmp$ret$0 = 'Size must be known in advance when using READ_ALL'; + var message = tmp$ret$0; + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$(toString_1(message)); + } + var inductionVariable = 0; + if (inductionVariable < size) + do { + var index = inductionVariable; + inductionVariable = inductionVariable + 1 | 0; + this.readElement_36l3ep_k$(decoder, startIndex + index | 0, builder, false); + Unit_instance; + } + while (inductionVariable < size); + } + readElement_36l3ep_k$(decoder, index, builder, checkIndex) { + this.insert_rt7dry_k$(builder, index, decoder.decodeSerializableElement$default_j0zaoi_k$(this.get_descriptor_wjt6a0_k$(), index, this.elementSerializer_1)); + } + } + class CollectionSerializer extends CollectionLikeSerializer { + constructor(element) { + super(element); + } + collectionSize_y7efpe_k$(_this__u8e3s4) { + return _this__u8e3s4.get_size_woubt6_k$(); + } + collectionSize_kqukvo_k$(_this__u8e3s4) { + return this.collectionSize_y7efpe_k$((!(_this__u8e3s4 == null) ? isInterface(_this__u8e3s4, Collection) : false) ? _this__u8e3s4 : THROW_CCE()); + } + collectionIterator_5cte45_k$(_this__u8e3s4) { + return _this__u8e3s4.iterator_jk1svi_k$(); + } + collectionIterator_l8s4xt_k$(_this__u8e3s4) { + return this.collectionIterator_5cte45_k$((!(_this__u8e3s4 == null) ? isInterface(_this__u8e3s4, Collection) : false) ? _this__u8e3s4 : THROW_CCE()); + } + } + class ArrayListSerializer extends CollectionSerializer { + constructor(element) { + super(element); + this.descriptor_1 = new ArrayListClassDesc(element.get_descriptor_wjt6a0_k$()); + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + builder_3thy1n_k$() { + var tmp$ret$0; + // Inline function 'kotlin.collections.arrayListOf' call + tmp$ret$0 = ArrayList.new_kotlin_collections_ArrayList_ony0vx_k$(); + return tmp$ret$0; + } + builderSize_nmsdqw_k$(_this__u8e3s4) { + return _this__u8e3s4.get_size_woubt6_k$(); + } + builderSize_wan9ya_k$(_this__u8e3s4) { + return this.builderSize_nmsdqw_k$(_this__u8e3s4 instanceof ArrayList ? _this__u8e3s4 : THROW_CCE()); + } + toResult_s8tuw4_k$(_this__u8e3s4) { + return _this__u8e3s4; + } + toResult_x7ydem_k$(_this__u8e3s4) { + return this.toResult_s8tuw4_k$(_this__u8e3s4 instanceof ArrayList ? _this__u8e3s4 : THROW_CCE()); + } + toBuilder_unwgi5_k$(_this__u8e3s4) { + var tmp0_elvis_lhs = _this__u8e3s4 instanceof ArrayList ? _this__u8e3s4 : null; + return tmp0_elvis_lhs == null ? ArrayList.new_kotlin_collections_ArrayList_nk3udn_k$(_this__u8e3s4) : tmp0_elvis_lhs; + } + toBuilder_5lxc6t_k$(_this__u8e3s4) { + return this.toBuilder_unwgi5_k$((!(_this__u8e3s4 == null) ? isInterface(_this__u8e3s4, List) : false) ? _this__u8e3s4 : THROW_CCE()); + } + checkCapacity_ct4uka_k$(_this__u8e3s4, size) { + return _this__u8e3s4.ensureCapacity_wr7980_k$(size); + } + checkCapacity_4ljkg0_k$(_this__u8e3s4, size) { + return this.checkCapacity_ct4uka_k$(_this__u8e3s4 instanceof ArrayList ? _this__u8e3s4 : THROW_CCE(), size); + } + insert_jg0gr_k$(_this__u8e3s4, index, element) { + _this__u8e3s4.add_dl6gt3_k$(index, element); + } + insert_rt7dry_k$(_this__u8e3s4, index, element) { + var tmp = _this__u8e3s4 instanceof ArrayList ? _this__u8e3s4 : THROW_CCE(); + return this.insert_jg0gr_k$(tmp, index, (element == null ? true : !(element == null)) ? element : THROW_CCE()); + } + } + class LinkedHashSetSerializer extends CollectionSerializer { + constructor(eSerializer) { + super(eSerializer); + this.descriptor_1 = new LinkedHashSetClassDesc(eSerializer.get_descriptor_wjt6a0_k$()); + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + builder_3thy1n_k$() { + var tmp$ret$0; + // Inline function 'kotlin.collections.linkedSetOf' call + tmp$ret$0 = LinkedHashSet.new_kotlin_collections_LinkedHashSet_ahyf7j_k$(); + return tmp$ret$0; + } + builderSize_dfddvc_k$(_this__u8e3s4) { + return _this__u8e3s4.get_size_woubt6_k$(); + } + builderSize_wan9ya_k$(_this__u8e3s4) { + return this.builderSize_dfddvc_k$(_this__u8e3s4 instanceof LinkedHashSet ? _this__u8e3s4 : THROW_CCE()); + } + toResult_54d9hg_k$(_this__u8e3s4) { + return _this__u8e3s4; + } + toResult_x7ydem_k$(_this__u8e3s4) { + return this.toResult_54d9hg_k$(_this__u8e3s4 instanceof LinkedHashSet ? _this__u8e3s4 : THROW_CCE()); + } + toBuilder_4rloh5_k$(_this__u8e3s4) { + var tmp0_elvis_lhs = _this__u8e3s4 instanceof LinkedHashSet ? _this__u8e3s4 : null; + return tmp0_elvis_lhs == null ? LinkedHashSet.new_kotlin_collections_LinkedHashSet_vuym41_k$(_this__u8e3s4) : tmp0_elvis_lhs; + } + toBuilder_5lxc6t_k$(_this__u8e3s4) { + return this.toBuilder_4rloh5_k$((!(_this__u8e3s4 == null) ? isInterface(_this__u8e3s4, Set) : false) ? _this__u8e3s4 : THROW_CCE()); + } + checkCapacity_z67u8a_k$(_this__u8e3s4, size) { + } + checkCapacity_4ljkg0_k$(_this__u8e3s4, size) { + return this.checkCapacity_z67u8a_k$(_this__u8e3s4 instanceof LinkedHashSet ? _this__u8e3s4 : THROW_CCE(), size); + } + insert_901o9d_k$(_this__u8e3s4, index, element) { + _this__u8e3s4.add_utx5q5_k$(element); + Unit_instance; + } + insert_rt7dry_k$(_this__u8e3s4, index, element) { + var tmp = _this__u8e3s4 instanceof LinkedHashSet ? _this__u8e3s4 : THROW_CCE(); + return this.insert_901o9d_k$(tmp, index, (element == null ? true : !(element == null)) ? element : THROW_CCE()); + } + } + class MapLikeSerializer extends AbstractCollectionSerializer { + constructor(keySerializer, valueSerializer) { + super(); + this.keySerializer_1 = keySerializer; + this.valueSerializer_1 = valueSerializer; + } + readAll_lkk7i3_k$(decoder, builder, startIndex, size) { + // Inline function 'kotlin.require' call + var value = size >= 0; + // Inline function 'kotlin.contracts.contract' call + if (!value) { + var tmp$ret$0; + // Inline function 'kotlinx.serialization.internal.MapLikeSerializer.readAll.' call + tmp$ret$0 = 'Size must be known in advance when using READ_ALL'; + var message = tmp$ret$0; + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$(toString_1(message)); + } + var progression = step(until(0, imul(size, 2)), 2); + var inductionVariable = progression.first_1; + var last = progression.last_1; + var step_0 = progression.step_1; + if ((step_0 > 0 ? inductionVariable <= last : false) ? true : step_0 < 0 ? last <= inductionVariable : false) + do { + var index = inductionVariable; + inductionVariable = inductionVariable + step_0 | 0; + this.readElement_xcquwd_k$(decoder, startIndex + index | 0, builder, false); + Unit_instance; + } + while (!(index === last)); + } + readAll_464h0j_k$(decoder, builder, startIndex, size) { + return this.readAll_lkk7i3_k$(decoder, (!(builder == null) ? isInterface(builder, MutableMap) : false) ? builder : THROW_CCE(), startIndex, size); + } + readElement_xcquwd_k$(decoder, index, builder, checkIndex) { + var key = decoder.decodeSerializableElement$default_j0zaoi_k$(this.get_descriptor_wjt6a0_k$(), index, this.keySerializer_1); + var tmp; + if (checkIndex) { + var tmp$ret$1; + // Inline function 'kotlin.also' call + var this_0 = decoder.decodeElementIndex_bstkhp_k$(this.get_descriptor_wjt6a0_k$()); + // Inline function 'kotlin.contracts.contract' call + // Inline function 'kotlinx.serialization.internal.MapLikeSerializer.readElement.' call + var it = this_0; + // Inline function 'kotlin.require' call + var value = it === (index + 1 | 0); + // Inline function 'kotlin.contracts.contract' call + if (!value) { + var tmp$ret$0; + // Inline function 'kotlinx.serialization.internal.MapLikeSerializer.readElement..' call + tmp$ret$0 = 'Value must follow key in a map, index for key: ' + index + ', returned index for value: ' + it; + var message = tmp$ret$0; + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$(toString_1(message)); + } + tmp$ret$1 = this_0; + tmp = tmp$ret$1; + } else { + tmp = index + 1 | 0; + } + var vIndex = tmp; + var tmp_0; + var tmp_1; + if (builder.containsKey_aw81wo_k$(key)) { + var tmp_2 = this.valueSerializer_1.get_descriptor_wjt6a0_k$().get_kind_wop7ml_k$(); + tmp_1 = !(tmp_2 instanceof PrimitiveKind); + } else { + tmp_1 = false; + } + if (tmp_1) { + tmp_0 = decoder.decodeSerializableElement_uahnnv_k$(this.get_descriptor_wjt6a0_k$(), vIndex, this.valueSerializer_1, getValue(builder, key)); + } else { + tmp_0 = decoder.decodeSerializableElement$default_j0zaoi_k$(this.get_descriptor_wjt6a0_k$(), vIndex, this.valueSerializer_1); + } + var value_0 = tmp_0; + // Inline function 'kotlin.collections.set' call + var this_1 = builder; + var key_0 = key; + var value_1 = value_0; + this_1.put_4fpzoq_k$(key_0, value_1); + Unit_instance; + } + readElement_36l3ep_k$(decoder, index, builder, checkIndex) { + return this.readElement_xcquwd_k$(decoder, index, (!(builder == null) ? isInterface(builder, MutableMap) : false) ? builder : THROW_CCE(), checkIndex); + } + serialize_ag16s_k$(encoder, value) { + var size = this.collectionSize_kqukvo_k$(value); + // Inline function 'kotlinx.serialization.encoding.encodeCollection' call + var this_0 = encoder; + var descriptor = this.get_descriptor_wjt6a0_k$(); + var collectionSize = size; + var composite = this_0.beginCollection_9edss2_k$(descriptor, collectionSize); + // Inline function 'kotlinx.serialization.internal.MapLikeSerializer.serialize.' call + var $this$encodeCollection = composite; + var iterator = this.collectionIterator_l8s4xt_k$(value); + var index = 0; + // Inline function 'kotlin.collections.forEach' call + var this_1 = iterator; + var tmp$ret$0; + // Inline function 'kotlin.collections.iterator' call + var this_2 = this_1; + tmp$ret$0 = this_2; + var tmp0_iterator = tmp$ret$0; + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + // Inline function 'kotlinx.serialization.internal.MapLikeSerializer.serialize..' call + var name_for_destructuring_parameter_0_fjsvno = element; + var tmp$ret$1; + // Inline function 'kotlin.collections.component1' call + var this_3 = name_for_destructuring_parameter_0_fjsvno; + tmp$ret$1 = this_3.get_key_18j28a_k$(); + var k = tmp$ret$1; + var tmp$ret$2; + // Inline function 'kotlin.collections.component2' call + var this_4 = name_for_destructuring_parameter_0_fjsvno; + tmp$ret$2 = this_4.get_value_j01efc_k$(); + var v = tmp$ret$2; + var tmp = this.get_descriptor_wjt6a0_k$(); + var tmp0 = index; + index = tmp0 + 1 | 0; + $this$encodeCollection.encodeSerializableElement_isqxcl_k$(tmp, tmp0, this.keySerializer_1, k); + var tmp_0 = this.get_descriptor_wjt6a0_k$(); + var tmp1 = index; + index = tmp1 + 1 | 0; + $this$encodeCollection.encodeSerializableElement_isqxcl_k$(tmp_0, tmp1, this.valueSerializer_1, v); + Unit_instance; + } + composite.endStructure_1xqz0n_k$(descriptor); + Unit_instance; + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_ag16s_k$(encoder, (value == null ? true : !(value == null)) ? value : THROW_CCE()); + } + } + class LinkedHashMapSerializer extends MapLikeSerializer { + constructor(kSerializer, vSerializer) { + super(kSerializer, vSerializer); + this.descriptor_1 = new LinkedHashMapClassDesc(kSerializer.get_descriptor_wjt6a0_k$(), vSerializer.get_descriptor_wjt6a0_k$()); + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + collectionSize_tcfefw_k$(_this__u8e3s4) { + return _this__u8e3s4.get_size_woubt6_k$(); + } + collectionSize_kqukvo_k$(_this__u8e3s4) { + return this.collectionSize_tcfefw_k$((!(_this__u8e3s4 == null) ? isInterface(_this__u8e3s4, Map_0) : false) ? _this__u8e3s4 : THROW_CCE()); + } + collectionIterator_iaj4x5_k$(_this__u8e3s4) { + var tmp$ret$0; + // Inline function 'kotlin.collections.iterator' call + var this_0 = _this__u8e3s4; + tmp$ret$0 = this_0.get_entries_p20ztl_k$().iterator_jk1svi_k$(); + return tmp$ret$0; + } + collectionIterator_l8s4xt_k$(_this__u8e3s4) { + return this.collectionIterator_iaj4x5_k$((!(_this__u8e3s4 == null) ? isInterface(_this__u8e3s4, Map_0) : false) ? _this__u8e3s4 : THROW_CCE()); + } + builder_3thy1n_k$() { + return LinkedHashMap.new_kotlin_collections_LinkedHashMap_ga0any_k$(); + } + builderSize_vabndf_k$(_this__u8e3s4) { + return imul(_this__u8e3s4.get_size_woubt6_k$(), 2); + } + builderSize_wan9ya_k$(_this__u8e3s4) { + return this.builderSize_vabndf_k$(_this__u8e3s4 instanceof LinkedHashMap ? _this__u8e3s4 : THROW_CCE()); + } + toResult_48ppgx_k$(_this__u8e3s4) { + return _this__u8e3s4; + } + toResult_x7ydem_k$(_this__u8e3s4) { + return this.toResult_48ppgx_k$(_this__u8e3s4 instanceof LinkedHashMap ? _this__u8e3s4 : THROW_CCE()); + } + toBuilder_2u7r19_k$(_this__u8e3s4) { + var tmp0_elvis_lhs = _this__u8e3s4 instanceof LinkedHashMap ? _this__u8e3s4 : null; + return tmp0_elvis_lhs == null ? LinkedHashMap.new_kotlin_collections_LinkedHashMap_40dkn3_k$(_this__u8e3s4) : tmp0_elvis_lhs; + } + toBuilder_5lxc6t_k$(_this__u8e3s4) { + return this.toBuilder_2u7r19_k$((!(_this__u8e3s4 == null) ? isInterface(_this__u8e3s4, Map_0) : false) ? _this__u8e3s4 : THROW_CCE()); + } + checkCapacity_q9nvtr_k$(_this__u8e3s4, size) { + } + checkCapacity_4ljkg0_k$(_this__u8e3s4, size) { + return this.checkCapacity_q9nvtr_k$(_this__u8e3s4 instanceof LinkedHashMap ? _this__u8e3s4 : THROW_CCE(), size); + } + } + class PrimitiveArraySerializer extends CollectionLikeSerializer { + constructor(primitiveSerializer) { + super(primitiveSerializer); + this.descriptor_1 = new PrimitiveArrayDescriptor(primitiveSerializer.get_descriptor_wjt6a0_k$()); + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + builderSize_o7j3ed_k$(_this__u8e3s4) { + return _this__u8e3s4.get_position_jfponi_k$(); + } + builderSize_wan9ya_k$(_this__u8e3s4) { + return this.builderSize_o7j3ed_k$(_this__u8e3s4 instanceof PrimitiveArrayBuilder ? _this__u8e3s4 : THROW_CCE()); + } + toResult_a2kawh_k$(_this__u8e3s4) { + return _this__u8e3s4.build_1k0s4u_k$(); + } + toResult_x7ydem_k$(_this__u8e3s4) { + return this.toResult_a2kawh_k$(_this__u8e3s4 instanceof PrimitiveArrayBuilder ? _this__u8e3s4 : THROW_CCE()); + } + checkCapacity_m26r65_k$(_this__u8e3s4, size) { + return _this__u8e3s4.ensureCapacity_wr7980_k$(size); + } + checkCapacity_4ljkg0_k$(_this__u8e3s4, size) { + return this.checkCapacity_m26r65_k$(_this__u8e3s4 instanceof PrimitiveArrayBuilder ? _this__u8e3s4 : THROW_CCE(), size); + } + collectionIterator_7wnbtc_k$(_this__u8e3s4) { + var message = 'This method lead to boxing and must not be used, use writeContents instead'; + throw IllegalStateException.new_kotlin_IllegalStateException_w47ei6_k$(toString_1(message)); + } + collectionIterator_l8s4xt_k$(_this__u8e3s4) { + return this.collectionIterator_7wnbtc_k$((_this__u8e3s4 == null ? true : !(_this__u8e3s4 == null)) ? _this__u8e3s4 : THROW_CCE()); + } + insert_hsr581_k$(_this__u8e3s4, index, element) { + var message = 'This method lead to boxing and must not be used, use Builder.append instead'; + throw IllegalStateException.new_kotlin_IllegalStateException_w47ei6_k$(toString_1(message)); + } + insert_rt7dry_k$(_this__u8e3s4, index, element) { + var tmp = _this__u8e3s4 instanceof PrimitiveArrayBuilder ? _this__u8e3s4 : THROW_CCE(); + return this.insert_hsr581_k$(tmp, index, (element == null ? true : !(element == null)) ? element : THROW_CCE()); + } + builder_3thy1n_k$() { + return this.toBuilder_5lxc6t_k$(this.empty_1lj7f1_k$()); + } + serialize_tb1dm5_k$(encoder, value) { + var size = this.collectionSize_kqukvo_k$(value); + // Inline function 'kotlinx.serialization.encoding.encodeCollection' call + var this_0 = encoder; + var descriptor = this.descriptor_1; + var collectionSize = size; + var composite = this_0.beginCollection_9edss2_k$(descriptor, collectionSize); + // Inline function 'kotlinx.serialization.internal.PrimitiveArraySerializer.serialize.' call + var $this$encodeCollection = composite; + this.writeContent_wekas_k$($this$encodeCollection, value, size); + Unit_instance; + composite.endStructure_1xqz0n_k$(descriptor); + Unit_instance; + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_tb1dm5_k$(encoder, (value == null ? true : !(value == null)) ? value : THROW_CCE()); + } + serialize_ag16s_k$(encoder, value) { + return this.serialize_tb1dm5_k$(encoder, (value == null ? true : !(value == null)) ? value : THROW_CCE()); + } + deserialize_sy6x50_k$(decoder) { + return this.merge_4lx7x7_k$(decoder, null); + } + } + class PrimitiveArrayBuilder { + constructor() { + } + ensureCapacity$default_e1gu2o_k$(requiredCapacity, $super) { + requiredCapacity = requiredCapacity === VOID ? this.get_position_jfponi_k$() + 1 | 0 : requiredCapacity; + var tmp; + if ($super === VOID) { + this.ensureCapacity_wr7980_k$(requiredCapacity); + tmp = Unit_instance; + } else { + tmp = $super.ensureCapacity_wr7980_k$.call(this, requiredCapacity); + } + return tmp; + } + } + class Companion_10 { + constructor() { + Companion_instance_10 = this; + this.EMPTY_HIGH_MARKS_1 = longArray(0); + } + } + class ElementMarker { + constructor(descriptor, readIfAbsent) { + Companion_getInstance_10(); + this.descriptor_1 = descriptor; + this.readIfAbsent_1 = readIfAbsent; + var elementsCount = this.descriptor_1.get_elementsCount_288r0x_k$(); + Companion_getInstance_3(); + if (elementsCount <= 64) { + var tmp = this; + var tmp_0; + Companion_getInstance_3(); + if (elementsCount === 64) { + tmp_0 = new Long(0, 0); + } else { + tmp_0 = (new Long(-1, -1)).shl_bg8if3_k$(elementsCount); + } + tmp.lowerMarks_1 = tmp_0; + this.highMarksArray_1 = Companion_getInstance_10().EMPTY_HIGH_MARKS_1; + } else { + this.lowerMarks_1 = new Long(0, 0); + this.highMarksArray_1 = prepareHighMarksArray(this, elementsCount); + } + } + mark_qmjjl1_k$(index) { + Companion_getInstance_3(); + if (index < 64) { + this.lowerMarks_1 = this.lowerMarks_1.or_sl8881_k$((new Long(1, 0)).shl_bg8if3_k$(index)); + } else { + markHigh(this, index); + Unit_instance; + } + } + nextUnmarkedIndex_u6mxd2_k$() { + var elementsCount = this.descriptor_1.get_elementsCount_288r0x_k$(); + while (!this.lowerMarks_1.equals(new Long(-1, -1))) { + var index = countTrailingZeroBits(this.lowerMarks_1.inv_28kx_k$()); + this.lowerMarks_1 = this.lowerMarks_1.or_sl8881_k$((new Long(1, 0)).shl_bg8if3_k$(index)); + if (this.readIfAbsent_1(this.descriptor_1, index)) { + return index; + } + } + Companion_getInstance_3(); + if (elementsCount > 64) { + return nextUnmarkedHighIndex(this); + } + Companion_instance_9; + return -1; + } + } + class PluginGeneratedSerialDescriptor { + constructor(serialName, generatedSerializer, elementsCount) { + generatedSerializer = generatedSerializer === VOID ? null : generatedSerializer; + this.serialName_1 = serialName; + this.generatedSerializer_1 = generatedSerializer; + this.elementsCount_1 = elementsCount; + this.added_1 = -1; + var tmp = this; + var tmp_0 = 0; + var tmp_1 = this.elementsCount_1; + var tmp$ret$0; + // Inline function 'kotlin.arrayOfNulls' call + var size = tmp_1; + tmp$ret$0 = fillArrayVal(Array(size), null); + var tmp_2 = tmp$ret$0; + while (tmp_0 < tmp_1) { + var tmp_3 = tmp_0; + var tmp$ret$1; + tmp$ret$1 = '[UNINITIALIZED]'; + tmp_2[tmp_3] = tmp$ret$1; + tmp_0 = tmp_0 + 1 | 0; + } + tmp.names_1 = tmp_2; + var tmp_4 = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOfNulls' call + var size_0 = this.elementsCount_1; + tmp$ret$2 = fillArrayVal(Array(size_0), null); + tmp_4.propertiesAnnotations_1 = tmp$ret$2; + this.classAnnotations_1 = null; + this.elementsOptionality_1 = booleanArray(this.elementsCount_1); + this.indices_1 = emptyMap(); + var tmp_5 = this; + var tmp_6 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_5.childSerializers$delegate_1 = lazy(tmp_6, PluginGeneratedSerialDescriptor$childSerializers$delegate$lambda(this)); + var tmp_7 = this; + var tmp_8 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_7.typeParameterDescriptors$delegate_1 = lazy(tmp_8, PluginGeneratedSerialDescriptor$typeParameterDescriptors$delegate$lambda(this)); + var tmp_9 = this; + var tmp_10 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_9._hashCode$delegate_1 = lazy(tmp_10, PluginGeneratedSerialDescriptor$_hashCode$delegate$lambda(this)); + } + get_serialName_u2rqhk_k$() { + return this.serialName_1; + } + get_elementsCount_288r0x_k$() { + return this.elementsCount_1; + } + get_kind_wop7ml_k$() { + return CLASS_getInstance(); + } + get_serialNames_8zf3cl_k$() { + return this.indices_1.get_keys_wop4xp_k$(); + } + get_typeParameterDescriptors_hcpg9q_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.typeParameterDescriptors$delegate_1; + var thisRef = this; + var property = typeParameterDescriptors$factory(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + addElement_5pzumi_k$(name, isOptional) { + var tmp0_this = this; + tmp0_this.added_1 = tmp0_this.added_1 + 1 | 0; + this.names_1[tmp0_this.added_1] = name; + this.elementsOptionality_1[this.added_1] = isOptional; + this.propertiesAnnotations_1[this.added_1] = null; + if (this.added_1 === (this.elementsCount_1 - 1 | 0)) { + this.indices_1 = buildIndices(this); + } + } + pushAnnotation_fm15ho_k$(annotation) { + var tmp$ret$1; + // Inline function 'kotlin.let' call + var this_0 = this.propertiesAnnotations_1[this.added_1]; + // Inline function 'kotlin.contracts.contract' call + var tmp$ret$0; + // Inline function 'kotlinx.serialization.internal.PluginGeneratedSerialDescriptor.pushAnnotation.' call + var it = this_0; + var tmp; + if (it == null) { + var result = ArrayList.new_kotlin_collections_ArrayList_tdd6ob_k$(1); + this.propertiesAnnotations_1[this.added_1] = result; + tmp = result; + } else { + tmp = it; + } + tmp$ret$0 = tmp; + tmp$ret$1 = tmp$ret$0; + var list = tmp$ret$1; + list.add_utx5q5_k$(annotation); + Unit_instance; + } + getElementDescriptor_ncda77_k$(index) { + return getChecked(_get_childSerializers__7vnyfa(this), index).get_descriptor_wjt6a0_k$(); + } + isElementOptional_heqq56_k$(index) { + return getChecked_0(this.elementsOptionality_1, index); + } + getElementAnnotations_omrjs6_k$(index) { + var tmp0_elvis_lhs = getChecked(this.propertiesAnnotations_1, index); + return tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs; + } + getElementName_u4sqmf_k$(index) { + return getChecked(this.names_1, index); + } + equals(other) { + var tmp$ret$0; + $l$block_5: { + // Inline function 'kotlinx.serialization.internal.equalsImpl' call + var this_0 = this; + var other_0 = other; + if (this_0 === other_0) { + tmp$ret$0 = true; + break $l$block_5; + } + if (!(other_0 instanceof PluginGeneratedSerialDescriptor)) { + tmp$ret$0 = false; + break $l$block_5; + } + if (!(this_0.get_serialName_u2rqhk_k$() === other_0.get_serialName_u2rqhk_k$())) { + tmp$ret$0 = false; + break $l$block_5; + } + var tmp$ret$1; + // Inline function 'kotlinx.serialization.internal.PluginGeneratedSerialDescriptor.equals.' call + var otherDescriptor = other_0; + tmp$ret$1 = contentEquals_0(this.get_typeParameterDescriptors_hcpg9q_k$(), otherDescriptor.get_typeParameterDescriptors_hcpg9q_k$()); + if (!tmp$ret$1) { + tmp$ret$0 = false; + break $l$block_5; + } + if (!(this_0.get_elementsCount_288r0x_k$() === other_0.get_elementsCount_288r0x_k$())) { + tmp$ret$0 = false; + break $l$block_5; + } + var inductionVariable = 0; + var last = this_0.get_elementsCount_288r0x_k$(); + if (inductionVariable < last) + do { + var index = inductionVariable; + inductionVariable = inductionVariable + 1 | 0; + if (!(this_0.getElementDescriptor_ncda77_k$(index).get_serialName_u2rqhk_k$() === other_0.getElementDescriptor_ncda77_k$(index).get_serialName_u2rqhk_k$())) { + tmp$ret$0 = false; + break $l$block_5; + } + if (!equals(this_0.getElementDescriptor_ncda77_k$(index).get_kind_wop7ml_k$(), other_0.getElementDescriptor_ncda77_k$(index).get_kind_wop7ml_k$())) { + tmp$ret$0 = false; + break $l$block_5; + } + } + while (inductionVariable < last); + tmp$ret$0 = true; + } + return tmp$ret$0; + } + hashCode() { + return _get__hashCode__tgwhef_0(this); + } + toString() { + var tmp = until(0, this.elementsCount_1); + var tmp_0 = this.get_serialName_u2rqhk_k$() + '('; + return joinToString_0(tmp, ', ', tmp_0, ')', VOID, VOID, PluginGeneratedSerialDescriptor$toString$lambda(this)); + } + } + class EnumDescriptor extends PluginGeneratedSerialDescriptor { + constructor(name, elementsCount) { + super(name, VOID, elementsCount); + this.kind_1 = ENUM_getInstance(); + var tmp = this; + tmp.elementDescriptors$delegate_1 = lazy_0(EnumDescriptor$elementDescriptors$delegate$lambda(elementsCount, name, this)); + } + get_kind_wop7ml_k$() { + return this.kind_1; + } + getElementDescriptor_ncda77_k$(index) { + return getChecked(_get_elementDescriptors__y23q9p(this), index); + } + equals(other) { + if (this === other) + return true; + if (other == null) + return false; + if (!(!(other == null) ? isInterface(other, SerialDescriptor) : false)) + return false; + if (!(other.get_kind_wop7ml_k$() === ENUM_getInstance())) + return false; + if (!(this.get_serialName_u2rqhk_k$() === other.get_serialName_u2rqhk_k$())) + return false; + if (!equals(cachedSerialNames(this), cachedSerialNames(other))) + return false; + return true; + } + toString() { + return joinToString_0(get_elementNames(this), ', ', this.get_serialName_u2rqhk_k$() + '(', ')'); + } + hashCode() { + var result = getStringHashCode(this.get_serialName_u2rqhk_k$()); + var tmp$ret$4; + // Inline function 'kotlinx.serialization.internal.elementsHashCodeBy' call + var this_0 = get_elementNames(this); + var tmp$ret$3; + // Inline function 'kotlin.collections.fold' call + var this_1 = this_0; + var initial = 1; + var accumulator = initial; + var tmp0_iterator = this_1.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$2; + // Inline function 'kotlinx.serialization.internal.elementsHashCodeBy.' call + var hash = accumulator; + var element_0 = element; + var tmp = imul(31, hash); + var tmp$ret$1; + // Inline function 'kotlin.hashCode' call + var tmp$ret$0; + // Inline function 'kotlinx.serialization.internal.EnumDescriptor.hashCode.' call + var it = element_0; + tmp$ret$0 = it; + var this_2 = tmp$ret$0; + var tmp0_safe_receiver = this_2; + var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : hashCode(tmp0_safe_receiver); + tmp$ret$1 = tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs; + tmp$ret$2 = tmp + tmp$ret$1 | 0; + accumulator = tmp$ret$2; + } + tmp$ret$3 = accumulator; + tmp$ret$4 = tmp$ret$3; + var elementsHashCode = tmp$ret$4; + result = imul(31, result) + elementsHashCode | 0; + return result; + } + } + class NullableSerializer { + constructor(serializer) { + this.serializer_1 = serializer; + this.descriptor_1 = new SerialDescriptorForNullable(this.serializer_1.get_descriptor_wjt6a0_k$()); + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + serialize_k0t1hm_k$(encoder, value) { + if (!(value == null)) { + encoder.encodeNotNullMark_415a1t_k$(); + encoder.encodeSerializableValue_3uuzip_k$(this.serializer_1, value); + Unit_instance; + } else { + encoder.encodeNull_ejiosz_k$(); + Unit_instance; + } + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_k0t1hm_k$(encoder, (value == null ? true : !(value == null)) ? value : THROW_CCE()); + } + deserialize_sy6x50_k$(decoder) { + return decoder.decodeNotNullMark_us4ba1_k$() ? decoder.decodeSerializableValue_xpnpad_k$(this.serializer_1) : decoder.decodeNull_jzrmuj_k$(); + } + equals(other) { + if (this === other) + return true; + if (other == null ? true : !getKClassFromExpression(this).equals(getKClassFromExpression(other))) + return false; + if (other instanceof NullableSerializer) + other; + else + THROW_CCE(); + Unit_instance; + if (!equals(this.serializer_1, other.serializer_1)) + return false; + return true; + } + hashCode() { + return hashCode(this.serializer_1); + } + } + class SerialDescriptorForNullable { + constructor(original) { + this.original_1 = original; + this.serialName_1 = this.original_1.get_serialName_u2rqhk_k$() + '?'; + this.serialNames_1 = cachedSerialNames(this.original_1); + } + get_elementsCount_288r0x_k$() { + return this.original_1.get_elementsCount_288r0x_k$(); + } + get_kind_wop7ml_k$() { + return this.original_1.get_kind_wop7ml_k$(); + } + getElementAnnotations_omrjs6_k$(index) { + return this.original_1.getElementAnnotations_omrjs6_k$(index); + } + getElementDescriptor_ncda77_k$(index) { + return this.original_1.getElementDescriptor_ncda77_k$(index); + } + getElementName_u4sqmf_k$(index) { + return this.original_1.getElementName_u4sqmf_k$(index); + } + isElementOptional_heqq56_k$(index) { + return this.original_1.isElementOptional_heqq56_k$(index); + } + get_serialName_u2rqhk_k$() { + return this.serialName_1; + } + get_serialNames_8zf3cl_k$() { + return this.serialNames_1; + } + get_isNullable_67sy7o_k$() { + return true; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof SerialDescriptorForNullable)) + return false; + if (!equals(this.original_1, other.original_1)) + return false; + return true; + } + toString() { + return '' + this.original_1 + '?'; + } + hashCode() { + return imul(hashCode(this.original_1), 31); + } + } + class GeneratedSerializer {} + function typeParametersSerializers() { + return get_EMPTY_SERIALIZER_ARRAY(); + } + class ByteArraySerializer extends PrimitiveArraySerializer { + constructor() { + ByteArraySerializer_instance = null; + super(serializer(ByteCompanionObject_instance)); + ByteArraySerializer_instance = this; + } + collectionSize_edl2xf_k$(_this__u8e3s4) { + return _this__u8e3s4.length; + } + collectionSize_kqukvo_k$(_this__u8e3s4) { + return this.collectionSize_edl2xf_k$((!(_this__u8e3s4 == null) ? isByteArray(_this__u8e3s4) : false) ? _this__u8e3s4 : THROW_CCE()); + } + toBuilder_glfche_k$(_this__u8e3s4) { + return new ByteArrayBuilder(_this__u8e3s4); + } + toBuilder_5lxc6t_k$(_this__u8e3s4) { + return this.toBuilder_glfche_k$((!(_this__u8e3s4 == null) ? isByteArray(_this__u8e3s4) : false) ? _this__u8e3s4 : THROW_CCE()); + } + empty_1lj7f1_k$() { + return new Int8Array(0); + } + readElement_kt6f2_k$(decoder, index, builder, checkIndex) { + builder.append_qon69a_k$(decoder.decodeByteElement_c1pisz_k$(this.descriptor_1, index)); + } + readElement_36l3ep_k$(decoder, index, builder, checkIndex) { + return this.readElement_kt6f2_k$(decoder, index, builder instanceof ByteArrayBuilder ? builder : THROW_CCE(), checkIndex); + } + readElement_9d70uk_k$(decoder, index, builder, checkIndex) { + return this.readElement_kt6f2_k$(decoder, index, builder instanceof ByteArrayBuilder ? builder : THROW_CCE(), checkIndex); + } + writeContent_43scmy_k$(encoder, content, size) { + var inductionVariable = 0; + if (inductionVariable < size) + do { + var i = inductionVariable; + inductionVariable = inductionVariable + 1 | 0; + encoder.encodeByteElement_kft2ib_k$(this.descriptor_1, i, content[i]); + Unit_instance; + } + while (inductionVariable < size); + } + writeContent_wekas_k$(encoder, content, size) { + return this.writeContent_43scmy_k$(encoder, (!(content == null) ? isByteArray(content) : false) ? content : THROW_CCE(), size); + } + } + class ByteArrayBuilder extends PrimitiveArrayBuilder { + constructor(bufferWithData) { + super(); + this.buffer_1 = bufferWithData; + this.position_1 = bufferWithData.length; + this.ensureCapacity_wr7980_k$(10); + Unit_instance; + } + get_position_jfponi_k$() { + return this.position_1; + } + ensureCapacity_wr7980_k$(requiredCapacity) { + if (this.buffer_1.length < requiredCapacity) + this.buffer_1 = copyOf_1(this.buffer_1, coerceAtLeast(requiredCapacity, imul(this.buffer_1.length, 2))); + } + append_qon69a_k$(c) { + this.ensureCapacity$default_e1gu2o_k$(); + var tmp = this.buffer_1; + var tmp0_this = this; + var tmp1 = tmp0_this.position_1; + tmp0_this.position_1 = tmp1 + 1 | 0; + tmp[tmp1] = c; + } + build_1k0s4u_k$() { + return copyOf_1(this.buffer_1, this.position_1); + } + } + class StringSerializer { + constructor() { + StringSerializer_instance = this; + this.descriptor_1 = new PrimitiveSerialDescriptor('kotlin.String', STRING_getInstance()); + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + serialize_jnz9c3_k$(encoder, value) { + return encoder.encodeString_424b5v_k$(value); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_jnz9c3_k$(encoder, (!(value == null) ? typeof value === 'string' : false) ? value : THROW_CCE()); + } + deserialize_sy6x50_k$(decoder) { + return decoder.decodeString_x3hxsx_k$(); + } + } + class DoubleSerializer { + constructor() { + DoubleSerializer_instance = this; + this.descriptor_1 = new PrimitiveSerialDescriptor('kotlin.Double', DOUBLE_getInstance()); + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + serialize_sc6aif_k$(encoder, value) { + return encoder.encodeDouble_n270q9_k$(value); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_sc6aif_k$(encoder, (!(value == null) ? typeof value === 'number' : false) ? value : THROW_CCE()); + } + deserialize_sy6x50_k$(decoder) { + return decoder.decodeDouble_ur8l0f_k$(); + } + } + class FloatSerializer { + constructor() { + FloatSerializer_instance = this; + this.descriptor_1 = new PrimitiveSerialDescriptor('kotlin.Float', FLOAT_getInstance()); + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + serialize_ttziez_k$(encoder, value) { + return encoder.encodeFloat_b8b85a_k$(value); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_ttziez_k$(encoder, (!(value == null) ? typeof value === 'number' : false) ? value : THROW_CCE()); + } + deserialize_sy6x50_k$(decoder) { + return decoder.decodeFloat_jcnrwu_k$(); + } + } + class LongSerializer { + constructor() { + LongSerializer_instance = this; + this.descriptor_1 = new PrimitiveSerialDescriptor('kotlin.Long', LONG_getInstance()); + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + serialize_q3bvgl_k$(encoder, value) { + return encoder.encodeLong_ctei1s_k$(value); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_q3bvgl_k$(encoder, value instanceof Long ? value : THROW_CCE()); + } + deserialize_sy6x50_k$(decoder) { + return decoder.decodeLong_jzt186_k$(); + } + } + class IntSerializer { + constructor() { + IntSerializer_instance = this; + this.descriptor_1 = new PrimitiveSerialDescriptor('kotlin.Int', INT_getInstance()); + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + serialize_iz3ntn_k$(encoder, value) { + return encoder.encodeInt_y5zi3z_k$(value); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_iz3ntn_k$(encoder, (!(value == null) ? typeof value === 'number' : false) ? value : THROW_CCE()); + } + deserialize_sy6x50_k$(decoder) { + return decoder.decodeInt_8iq8f5_k$(); + } + } + class ByteSerializer { + constructor() { + ByteSerializer_instance = this; + this.descriptor_1 = new PrimitiveSerialDescriptor('kotlin.Byte', BYTE_getInstance()); + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + serialize_bqouor_k$(encoder, value) { + return encoder.encodeByte_6txfee_k$(value); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_bqouor_k$(encoder, (!(value == null) ? typeof value === 'number' : false) ? value : THROW_CCE()); + } + deserialize_sy6x50_k$(decoder) { + return decoder.decodeByte_jzz7je_k$(); + } + } + class BooleanSerializer { + constructor() { + BooleanSerializer_instance = this; + this.descriptor_1 = new PrimitiveSerialDescriptor('kotlin.Boolean', BOOLEAN_getInstance()); + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + serialize_ky3y8o_k$(encoder, value) { + return encoder.encodeBoolean_tu2e59_k$(value); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_ky3y8o_k$(encoder, (!(value == null) ? typeof value === 'boolean' : false) ? value : THROW_CCE()); + } + deserialize_sy6x50_k$(decoder) { + return decoder.decodeBoolean_m0aca_k$(); + } + } + class PrimitiveSerialDescriptor { + constructor(serialName, kind) { + this.serialName_1 = serialName; + this.kind_1 = kind; + } + get_serialName_u2rqhk_k$() { + return this.serialName_1; + } + get_kind_wop7ml_k$() { + return this.kind_1; + } + get_elementsCount_288r0x_k$() { + return 0; + } + getElementName_u4sqmf_k$(index) { + error(this); + } + isElementOptional_heqq56_k$(index) { + error(this); + } + getElementDescriptor_ncda77_k$(index) { + error(this); + } + getElementAnnotations_omrjs6_k$(index) { + error(this); + } + toString() { + return 'PrimitiveDescriptor(' + this.serialName_1 + ')'; + } + } + class MapEntry { + constructor(key, value) { + this.key_1 = key; + this.value_1 = value; + } + get_key_18j28a_k$() { + return this.key_1; + } + get_value_j01efc_k$() { + return this.value_1; + } + toString() { + return 'MapEntry(key=' + this.key_1 + ', value=' + this.value_1 + ')'; + } + hashCode() { + var result = this.key_1 == null ? 0 : hashCode(this.key_1); + result = imul(result, 31) + (this.value_1 == null ? 0 : hashCode(this.value_1)) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof MapEntry)) + return false; + var tmp0_other_with_cast = other instanceof MapEntry ? other : THROW_CCE(); + if (!equals(this.key_1, tmp0_other_with_cast.key_1)) + return false; + if (!equals(this.value_1, tmp0_other_with_cast.value_1)) + return false; + return true; + } + } + class KeyValueSerializer { + constructor(keySerializer, valueSerializer) { + this.keySerializer_1 = keySerializer; + this.valueSerializer_1 = valueSerializer; + } + serialize_hmir9w_k$(encoder, value) { + var structuredEncoder = encoder.beginStructure_yljocp_k$(this.get_descriptor_wjt6a0_k$()); + structuredEncoder.encodeSerializableElement_isqxcl_k$(this.get_descriptor_wjt6a0_k$(), 0, this.keySerializer_1, this.get_key_ebxj0t_k$(value)); + structuredEncoder.encodeSerializableElement_isqxcl_k$(this.get_descriptor_wjt6a0_k$(), 1, this.valueSerializer_1, this.get_value_k1nl8b_k$(value)); + structuredEncoder.endStructure_1xqz0n_k$(this.get_descriptor_wjt6a0_k$()); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_hmir9w_k$(encoder, (value == null ? true : !(value == null)) ? value : THROW_CCE()); + } + deserialize_sy6x50_k$(decoder) { + var composite = decoder.beginStructure_yljocp_k$(this.get_descriptor_wjt6a0_k$()); + if (composite.decodeSequentially_xlblqy_k$()) { + var key = composite.decodeSerializableElement$default_j0zaoi_k$(this.get_descriptor_wjt6a0_k$(), 0, this.keySerializer_1); + var value = composite.decodeSerializableElement$default_j0zaoi_k$(this.get_descriptor_wjt6a0_k$(), 1, this.valueSerializer_1); + return this.toResult_8m84pf_k$(key, value); + } + var key_0 = get_NULL(); + var value_0 = get_NULL(); + mainLoop: while (true) { + var idx = composite.decodeElementIndex_bstkhp_k$(this.get_descriptor_wjt6a0_k$()); + Companion_instance_9; + if (idx === -1) { + break mainLoop; + } else { + if (idx === 0) { + key_0 = composite.decodeSerializableElement$default_j0zaoi_k$(this.get_descriptor_wjt6a0_k$(), 0, this.keySerializer_1); + } else { + if (idx === 1) { + value_0 = composite.decodeSerializableElement$default_j0zaoi_k$(this.get_descriptor_wjt6a0_k$(), 1, this.valueSerializer_1); + } else { + throw SerializationException.new_kotlinx_serialization_SerializationException_jj1itu_k$('Invalid index: ' + idx); + } + } + } + } + composite.endStructure_1xqz0n_k$(this.get_descriptor_wjt6a0_k$()); + if (key_0 === get_NULL()) + throw SerializationException.new_kotlinx_serialization_SerializationException_jj1itu_k$("Element 'key' is missing"); + if (value_0 === get_NULL()) + throw SerializationException.new_kotlinx_serialization_SerializationException_jj1itu_k$("Element 'value' is missing"); + var tmp = (key_0 == null ? true : !(key_0 == null)) ? key_0 : THROW_CCE(); + return this.toResult_8m84pf_k$(tmp, (value_0 == null ? true : !(value_0 == null)) ? value_0 : THROW_CCE()); + } + } + class MapEntrySerializer extends KeyValueSerializer { + constructor(keySerializer, valueSerializer) { + super(keySerializer, valueSerializer); + var tmp = this; + var tmp_0 = MAP_getInstance(); + tmp.descriptor_1 = buildSerialDescriptor('kotlin.collections.Map.Entry', tmp_0, [], MapEntrySerializer$descriptor$lambda(keySerializer, valueSerializer)); + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + get_key_xxv71t_k$(_this__u8e3s4) { + return _this__u8e3s4.get_key_18j28a_k$(); + } + get_key_ebxj0t_k$(_this__u8e3s4) { + return this.get_key_xxv71t_k$((!(_this__u8e3s4 == null) ? isInterface(_this__u8e3s4, Entry) : false) ? _this__u8e3s4 : THROW_CCE()); + } + get_value_ubwxlt_k$(_this__u8e3s4) { + return _this__u8e3s4.get_value_j01efc_k$(); + } + get_value_k1nl8b_k$(_this__u8e3s4) { + return this.get_value_ubwxlt_k$((!(_this__u8e3s4 == null) ? isInterface(_this__u8e3s4, Entry) : false) ? _this__u8e3s4 : THROW_CCE()); + } + toResult_8m84pf_k$(key, value) { + return new MapEntry(key, value); + } + } + class SerializersModule { + constructor() { + } + } + class SerialModuleImpl extends SerializersModule { + constructor(class2ContextualFactory, polyBase2Serializers, polyBase2DefaultSerializerProvider, polyBase2NamedSerializers, polyBase2DefaultDeserializerProvider) { + super(); + this.class2ContextualFactory_1 = class2ContextualFactory; + this.polyBase2Serializers_1 = polyBase2Serializers; + this.polyBase2DefaultSerializerProvider_1 = polyBase2DefaultSerializerProvider; + this.polyBase2NamedSerializers_1 = polyBase2NamedSerializers; + this.polyBase2DefaultDeserializerProvider_1 = polyBase2DefaultDeserializerProvider; + } + } + class SerializableWith {} + class ProtoBuf { + constructor(encodeDefaults, serializersModule) { + Default_getInstance(); + this.encodeDefaults_1 = encodeDefaults; + this.serializersModule_1 = serializersModule; + } + encodeToByteArray_n90khx_k$(serializer, value) { + var output = new ByteArrayOutput(); + var encoder = new ProtobufEncoder(this, new ProtobufWriter(output), serializer.get_descriptor_wjt6a0_k$()); + encoder.encodeSerializableValue_3uuzip_k$(serializer, value); + return output.toByteArray_qczt2u_k$(); + } + decodeFromByteArray_8opj5c_k$(deserializer, bytes) { + var input = new ByteArrayInput(bytes); + var decoder = new ProtobufDecoder(this, new ProtobufReader(input), deserializer.get_descriptor_wjt6a0_k$()); + return decoder.decodeSerializableValue_xpnpad_k$(deserializer); + } + } + class Default extends ProtoBuf { + constructor() { + Default_instance = null; + super(false, EmptySerializersModule_0()); + Default_instance = this; + } + } + class ProtoNumber { + constructor(number) { + this.number_1 = number; + } + equals(other) { + if (!(other instanceof ProtoNumber)) + return false; + var tmp0_other_with_cast = other instanceof ProtoNumber ? other : THROW_CCE(); + if (!(this.number_1 === tmp0_other_with_cast.number_1)) + return false; + return true; + } + hashCode() { + return imul(getStringHashCode('number'), 127) ^ this.number_1; + } + toString() { + return '@kotlinx.serialization.protobuf.ProtoNumber(number=' + this.number_1 + ')'; + } + } + class ProtoPacked { + constructor() { + } + equals(other) { + if (!(other instanceof ProtoPacked)) + return false; + var tmp0_other_with_cast = other instanceof ProtoPacked ? other : THROW_CCE(); + return true; + } + hashCode() { + return 0; + } + toString() { + return '@kotlinx.serialization.protobuf.ProtoPacked()'; + } + } + class ProtoIntegerType extends Enum { + constructor(name, ordinal, signature) { + super(name, ordinal); + this.signature_1 = signature; + } + } + class ProtoType {} + class ProtobufDecodingException extends SerializationException { + static new_kotlinx_serialization_protobuf_internal_ProtobufDecodingException_yxd951_k$(message) { + var $this = this.new_kotlinx_serialization_SerializationException_jj1itu_k$(message); + captureStack($this, $this.$throwableCtor_5); + return $this; + } + } + class ProtobufTaggedBase { + constructor() { + this.tagsStack_1 = longArray(8); + this.stackSize_1 = -1; + } + get_currentTag_wui9re_k$() { + return this.tagsStack_1[this.stackSize_1]; + } + get_currentTagOrDefault_711ujw_k$() { + return this.stackSize_1 === -1 ? new Long(19500, 0) : this.tagsStack_1[this.stackSize_1]; + } + popTagOrDefault_ti4giz_k$() { + var tmp; + if (this.stackSize_1 === -1) { + tmp = new Long(19500, 0); + } else { + var tmp_0 = this.tagsStack_1; + var tmp0_this = this; + var tmp1 = tmp0_this.stackSize_1; + tmp0_this.stackSize_1 = tmp1 - 1 | 0; + tmp = tmp_0[tmp1]; + } + return tmp; + } + pushTag_3ag0mq_k$(tag) { + if (tag.equals(new Long(19500, 0))) + return Unit_instance; + var tmp0_this = this; + tmp0_this.stackSize_1 = tmp0_this.stackSize_1 + 1 | 0; + var idx = tmp0_this.stackSize_1; + if (this.stackSize_1 >= this.tagsStack_1.length) { + expand(this); + Unit_instance; + } + this.tagsStack_1[idx] = tag; + } + popTag_g8zwqf_k$() { + if (this.stackSize_1 >= 0) { + var tmp = this.tagsStack_1; + var tmp0_this = this; + var tmp1 = tmp0_this.stackSize_1; + tmp0_this.stackSize_1 = tmp1 - 1 | 0; + return tmp[tmp1]; + } + throw SerializationException.new_kotlinx_serialization_SerializationException_jj1itu_k$('No tag in stack for requested element'); + } + } + class ProtobufTaggedDecoder extends ProtobufTaggedBase { + constructor() { + super(); + } + decodeNotNullMark_us4ba1_k$() { + return true; + } + decodeNull_jzrmuj_k$() { + return null; + } + decodeBoolean_m0aca_k$() { + return this.decodeTaggedBoolean_60lsfo_k$(this.popTagOrDefault_ti4giz_k$()); + } + decodeByte_jzz7je_k$() { + return this.decodeTaggedByte_8aqmn4_k$(this.popTagOrDefault_ti4giz_k$()); + } + decodeInt_8iq8f5_k$() { + return this.decodeTaggedInt_m0s3ir_k$(this.popTagOrDefault_ti4giz_k$()); + } + decodeLong_jzt186_k$() { + return this.decodeTaggedLong_nnp5lg_k$(this.popTagOrDefault_ti4giz_k$()); + } + decodeFloat_jcnrwu_k$() { + return this.decodeTaggedFloat_w40scg_k$(this.popTagOrDefault_ti4giz_k$()); + } + decodeDouble_ur8l0f_k$() { + return this.decodeTaggedDouble_snw993_k$(this.popTagOrDefault_ti4giz_k$()); + } + decodeString_x3hxsx_k$() { + return this.decodeTaggedString_uxox2h_k$(this.popTagOrDefault_ti4giz_k$()); + } + decodeEnum_slg6lu_k$(enumDescriptor) { + return this.decodeTaggedEnum_3ept5k_k$(this.popTagOrDefault_ti4giz_k$(), enumDescriptor); + } + beginStructure_yljocp_k$(descriptor) { + return this; + } + endStructure_1xqz0n_k$(descriptor) { + } + decodeBooleanElement_vuyhtj_k$(descriptor, index) { + return this.decodeTaggedBoolean_60lsfo_k$(this.getTag_u4dqfb_k$(descriptor, index)); + } + decodeByteElement_c1pisz_k$(descriptor, index) { + return this.decodeTaggedByte_8aqmn4_k$(this.getTag_u4dqfb_k$(descriptor, index)); + } + decodeIntElement_941u6a_k$(descriptor, index) { + return this.decodeTaggedInt_m0s3ir_k$(this.getTag_u4dqfb_k$(descriptor, index)); + } + decodeLongElement_994anb_k$(descriptor, index) { + return this.decodeTaggedLong_nnp5lg_k$(this.getTag_u4dqfb_k$(descriptor, index)); + } + decodeFloatElement_p2q55h_k$(descriptor, index) { + return this.decodeTaggedFloat_w40scg_k$(this.getTag_u4dqfb_k$(descriptor, index)); + } + decodeDoubleElement_isei84_k$(descriptor, index) { + return this.decodeTaggedDouble_snw993_k$(this.getTag_u4dqfb_k$(descriptor, index)); + } + decodeStringElement_3oenpg_k$(descriptor, index) { + return this.decodeTaggedString_uxox2h_k$(this.getTag_u4dqfb_k$(descriptor, index)); + } + decodeSerializableElement_uahnnv_k$(descriptor, index, deserializer, previousValue) { + var tmp$ret$1; + // Inline function 'kotlinx.serialization.protobuf.internal.ProtobufTaggedBase.tagBlock' call + var this_0 = this; + var tag = this.getTag_u4dqfb_k$(descriptor, index); + this_0.pushTag_3ag0mq_k$(tag); + var tmp$ret$0; + // Inline function 'kotlinx.serialization.protobuf.internal.ProtobufTaggedDecoder.decodeSerializableElement.' call + tmp$ret$0 = this.decodeSerializableValue_8i9jjz_k$(deserializer, previousValue); + tmp$ret$1 = tmp$ret$0; + return tmp$ret$1; + } + decodeNullableSerializableElement_k2y6ab_k$(descriptor, index, deserializer, previousValue) { + var tmp$ret$1; + // Inline function 'kotlinx.serialization.protobuf.internal.ProtobufTaggedBase.tagBlock' call + var this_0 = this; + var tag = this.getTag_u4dqfb_k$(descriptor, index); + this_0.pushTag_3ag0mq_k$(tag); + var tmp$ret$0; + // Inline function 'kotlinx.serialization.protobuf.internal.ProtobufTaggedDecoder.decodeNullableSerializableElement.' call + var tmp; + if (this.decodeNotNullMark_us4ba1_k$()) { + tmp = this.decodeSerializableValue_8i9jjz_k$(deserializer, previousValue); + } else { + tmp = this.decodeNull_jzrmuj_k$(); + } + tmp$ret$0 = tmp; + tmp$ret$1 = tmp$ret$0; + return tmp$ret$1; + } + } + class ProtobufDecoder extends ProtobufTaggedDecoder { + constructor(proto, reader, descriptor) { + super(); + this.proto_1 = proto; + this.reader_1 = reader; + this.descriptor_1 = descriptor; + this.indexCache_1 = null; + this.sparseIndexCache_1 = null; + this.nullValue_1 = false; + var tmp = this; + tmp.elementMarker_1 = new ElementMarker(this.descriptor_1, ProtobufDecoder$readIfAbsent$ref(this)); + this.populateCache_22m921_k$(this.descriptor_1); + Unit_instance; + } + populateCache_22m921_k$(descriptor) { + var elements = descriptor.get_elementsCount_288r0x_k$(); + if (elements < 32) { + var cache = new Int32Array(elements + 1 | 0); + var inductionVariable = 0; + if (inductionVariable < elements) + do { + var i = inductionVariable; + inductionVariable = inductionVariable + 1 | 0; + var protoId = extractProtoId(descriptor, i, false); + if (protoId <= elements) { + cache[protoId] = i; + Unit_instance; + } else { + return populateCacheMap(this, descriptor, elements); + } + } + while (inductionVariable < elements); + this.indexCache_1 = cache; + } else { + populateCacheMap(this, descriptor, elements); + Unit_instance; + } + } + beginStructure_yljocp_k$(descriptor) { + var tmp0_subject = descriptor.get_kind_wop7ml_k$(); + var tmp; + if (equals(tmp0_subject, LIST_getInstance())) { + var tag = this.get_currentTagOrDefault_711ujw_k$(); + var tmp_0; + if ((equals(this.descriptor_1.get_kind_wop7ml_k$(), LIST_getInstance()) ? !tag.equals(get_MISSING_TAG()) : false) ? !equals(this.descriptor_1, descriptor) : false) { + var reader = makeDelimited(this.reader_1, tag); + reader.readTag_hv8kro_k$(); + Unit_instance; + var tmp$ret$0; + // Inline function 'kotlinx.serialization.protobuf.internal.ProtoDesc' call + var protoId = 1; + var type = ProtoIntegerType_DEFAULT_getInstance(); + tmp$ret$0 = type.signature_1.or_sl8881_k$(toLong_0(protoId)); + tmp_0 = new RepeatedDecoder(this.proto_1, reader, tmp$ret$0, descriptor); + } else if (this.reader_1.currentType_1 === get_SIZE_DELIMITED() ? get_isPackable(descriptor.getElementDescriptor_ncda77_k$(0)) : false) { + var sliceReader = new ProtobufReader(this.reader_1.objectInput_lgltf9_k$()); + tmp_0 = new PackedArrayDecoder(this.proto_1, sliceReader, descriptor); + } else { + tmp_0 = new RepeatedDecoder(this.proto_1, this.reader_1, tag, descriptor); + } + return tmp_0; + } else { + var tmp_1; + if (equals(tmp0_subject, CLASS_getInstance()) ? true : equals(tmp0_subject, OBJECT_getInstance())) { + tmp_1 = true; + } else { + tmp_1 = tmp0_subject instanceof PolymorphicKind; + } + if (tmp_1) { + var tag_0 = this.get_currentTagOrDefault_711ujw_k$(); + if (tag_0.equals(get_MISSING_TAG()) ? equals(this.descriptor_1, descriptor) : false) + return this; + return new ProtobufDecoder(this.proto_1, makeDelimited(this.reader_1, tag_0), descriptor); + } else { + if (equals(tmp0_subject, MAP_getInstance())) { + tmp = new MapEntryReader(this.proto_1, makeDelimitedForced(this.reader_1, this.get_currentTagOrDefault_711ujw_k$()), this.get_currentTagOrDefault_711ujw_k$(), descriptor); + } else { + throw SerializationException.new_kotlinx_serialization_SerializationException_jj1itu_k$('Primitives are not supported at top-level'); + } + } + } + return tmp; + } + endStructure_1xqz0n_k$(descriptor) { + } + decodeTaggedBoolean_60lsfo_k$(tag) { + var value = this.decodeTaggedInt_m0s3ir_k$(tag); + var tmp; + switch (value) { + case 0: + tmp = false; + break; + case 1: + tmp = true; + break; + default: + throw SerializationException.new_kotlinx_serialization_SerializationException_jj1itu_k$('Unexpected boolean value: ' + value); + } + return tmp; + } + decodeTaggedByte_8aqmn4_k$(tag) { + return toByte(this.decodeTaggedInt_m0s3ir_k$(tag)); + } + decodeTaggedInt_m0s3ir_k$(tag) { + var tmp; + if (tag.equals(get_MISSING_TAG())) { + tmp = this.reader_1.readInt32NoTag_65fnmp_k$(); + } else { + tmp = this.reader_1.readInt_hbj26l_k$(get_integerType(tag)); + } + return tmp; + } + decodeTaggedLong_nnp5lg_k$(tag) { + var tmp; + if (tag.equals(get_MISSING_TAG())) { + tmp = this.reader_1.readLongNoTag_tpnh89_k$(); + } else { + tmp = this.reader_1.readLong_br1uau_k$(get_integerType(tag)); + } + return tmp; + } + decodeTaggedFloat_w40scg_k$(tag) { + var tmp; + if (tag.equals(get_MISSING_TAG())) { + tmp = this.reader_1.readFloatNoTag_1a957x_k$(); + } else { + tmp = this.reader_1.readFloat_issql6_k$(); + } + return tmp; + } + decodeTaggedDouble_snw993_k$(tag) { + var tmp; + if (tag.equals(get_MISSING_TAG())) { + tmp = this.reader_1.readDoubleNoTag_yloa7i_k$(); + } else { + tmp = this.reader_1.readDouble_fg6gvt_k$(); + } + return tmp; + } + decodeTaggedString_uxox2h_k$(tag) { + var tmp; + if (tag.equals(get_MISSING_TAG())) { + tmp = this.reader_1.readStringNoTag_wtqdbi_k$(); + } else { + tmp = this.reader_1.readString_89sxq1_k$(); + } + return tmp; + } + decodeTaggedEnum_3ept5k_k$(tag, enumDescription) { + return findIndexByTag(this, enumDescription, this.decodeTaggedInt_m0s3ir_k$(tag)); + } + decodeSerializableValue_xpnpad_k$(deserializer) { + return this.decodeSerializableValue_8i9jjz_k$(deserializer, null); + } + decodeSerializableValue_8i9jjz_k$(deserializer, previousValue) { + var tmp; + if (deserializer instanceof MapLikeSerializer) { + tmp = deserializeMap(this, isInterface(deserializer, DeserializationStrategy) ? deserializer : THROW_CCE(), previousValue); + } else { + if (equals(deserializer.get_descriptor_wjt6a0_k$(), ByteArraySerializer_0().get_descriptor_wjt6a0_k$())) { + var tmp_0 = deserializeByteArray(this, (previousValue == null ? true : isByteArray(previousValue)) ? previousValue : THROW_CCE()); + tmp = !(tmp_0 == null) ? tmp_0 : THROW_CCE(); + } else { + if (deserializer instanceof AbstractCollectionSerializer) { + tmp = (deserializer instanceof AbstractCollectionSerializer ? deserializer : THROW_CCE()).merge_4lx7x7_k$(this, previousValue); + } else { + tmp = deserializer.deserialize_sy6x50_k$(this); + } + } + } + return tmp; + } + getTag_u4dqfb_k$(_this__u8e3s4, index) { + return extractParameters(_this__u8e3s4, index); + } + decodeElementIndex_bstkhp_k$(descriptor) { + while (true) { + var protoId = this.reader_1.readTag_hv8kro_k$(); + if (protoId === -1) { + return this.elementMarker_1.nextUnmarkedIndex_u6mxd2_k$(); + } + var index = getIndexByTag(this, protoId); + if (index === -1) { + this.reader_1.skipElement_60hf3h_k$(); + Unit_instance; + } else { + this.elementMarker_1.mark_qmjjl1_k$(index); + return index; + } + } + } + decodeNotNullMark_us4ba1_k$() { + return !this.nullValue_1; + } + } + class PackedArrayDecoder extends ProtobufDecoder { + constructor(proto, reader, descriptor) { + super(proto, reader, descriptor); + this.nextIndex_1 = 0; + } + getTag_u4dqfb_k$(_this__u8e3s4, index) { + return get_MISSING_TAG(); + } + beginStructure_yljocp_k$(descriptor) { + throw SerializationException.new_kotlinx_serialization_SerializationException_jj1itu_k$('Packing only supports primitive number types. The input type however was a struct: ' + descriptor); + } + decodeElementIndex_bstkhp_k$(descriptor) { + if (this.reader_1.get_eof_18j6gd_k$()) { + Companion_instance_9; + return -1; + } + var tmp0_this = this; + var tmp1 = tmp0_this.nextIndex_1; + tmp0_this.nextIndex_1 = tmp1 + 1 | 0; + return tmp1; + } + decodeTaggedString_uxox2h_k$(tag) { + throw SerializationException.new_kotlinx_serialization_SerializationException_jj1itu_k$('Packing only supports primitive number types. The actual reading is for string.'); + } + } + class ProtobufTaggedEncoder extends ProtobufTaggedBase { + constructor() { + super(); + this.nullableMode_1 = NullableMode_NOT_NULL_getInstance(); + } + encodeNull_ejiosz_k$() { + if (!this.nullableMode_1.equals(NullableMode_ACCEPTABLE_getInstance())) { + var tmp0_subject = this.nullableMode_1; + var tmp0 = tmp0_subject.ordinal_1; + { + var message; + switch (tmp0) { + case 1: + message = "'null' is not supported for optional properties in ProtoBuf"; + break; + case 2: + message = "'null' is not supported for collection types in ProtoBuf"; + break; + case 3: + message = "'null' is not allowed for not-null properties"; + break; + default: + message = "'null' is not supported in ProtoBuf"; + break; + } + } + throw SerializationException.new_kotlinx_serialization_SerializationException_jj1itu_k$(message); + } + } + encodeBoolean_tu2e59_k$(value) { + this.encodeTaggedBoolean_y080q9_k$(this.popTagOrDefault_ti4giz_k$(), value); + } + encodeByte_6txfee_k$(value) { + this.encodeTaggedByte_t7bn5s_k$(this.popTagOrDefault_ti4giz_k$(), value); + } + encodeInt_y5zi3z_k$(value) { + this.encodeTaggedInt_wi7m2l_k$(this.popTagOrDefault_ti4giz_k$(), value); + } + encodeLong_ctei1s_k$(value) { + this.encodeTaggedLong_7428ba_k$(this.popTagOrDefault_ti4giz_k$(), value); + } + encodeFloat_b8b85a_k$(value) { + this.encodeTaggedFloat_u6w2ts_k$(this.popTagOrDefault_ti4giz_k$(), value); + } + encodeDouble_n270q9_k$(value) { + this.encodeTaggedDouble_kyf7y3_k$(this.popTagOrDefault_ti4giz_k$(), value); + } + encodeString_424b5v_k$(value) { + this.encodeTaggedString_ein5vr_k$(this.popTagOrDefault_ti4giz_k$(), value); + } + encodeEnum_2qin0y_k$(enumDescriptor, index) { + return this.encodeTaggedEnum_7bic1k_k$(this.popTagOrDefault_ti4giz_k$(), enumDescriptor, index); + } + endStructure_1xqz0n_k$(descriptor) { + if (this.stackSize_1 >= 0) { + this.popTag_g8zwqf_k$(); + Unit_instance; + } + this.endEncode_mdsrgg_k$(descriptor); + } + endEncode_mdsrgg_k$(descriptor) { + } + encodeBooleanElement_ydht7q_k$(descriptor, index, value) { + return this.encodeTaggedBoolean_y080q9_k$(this.getTag_u4dqfb_k$(descriptor, index), value); + } + encodeByteElement_kft2ib_k$(descriptor, index, value) { + return this.encodeTaggedByte_t7bn5s_k$(this.getTag_u4dqfb_k$(descriptor, index), value); + } + encodeIntElement_krhhce_k$(descriptor, index, value) { + return this.encodeTaggedInt_wi7m2l_k$(this.getTag_u4dqfb_k$(descriptor, index), value); + } + encodeLongElement_ujvv2b_k$(descriptor, index, value) { + return this.encodeTaggedLong_7428ba_k$(this.getTag_u4dqfb_k$(descriptor, index), value); + } + encodeFloatElement_oe8hn_k$(descriptor, index, value) { + return this.encodeTaggedFloat_u6w2ts_k$(this.getTag_u4dqfb_k$(descriptor, index), value); + } + encodeDoubleElement_a6rqhe_k$(descriptor, index, value) { + return this.encodeTaggedDouble_kyf7y3_k$(this.getTag_u4dqfb_k$(descriptor, index), value); + } + encodeStringElement_1n5wu2_k$(descriptor, index, value) { + return this.encodeTaggedString_ein5vr_k$(this.getTag_u4dqfb_k$(descriptor, index), value); + } + encodeSerializableElement_isqxcl_k$(descriptor, index, serializer, value) { + this.nullableMode_1 = NullableMode_NOT_NULL_getInstance(); + this.pushTag_3ag0mq_k$(this.getTag_u4dqfb_k$(descriptor, index)); + this.encodeSerializableValue_3uuzip_k$(serializer, value); + } + encodeNullableSerializableElement_5lquiv_k$(descriptor, index, serializer, value) { + var elementKind = descriptor.getElementDescriptor_ncda77_k$(index).get_kind_wop7ml_k$(); + var tmp = this; + var tmp_0; + if (descriptor.isElementOptional_heqq56_k$(index)) { + tmp_0 = NullableMode_OPTIONAL_getInstance(); + } else if (equals(elementKind, MAP_getInstance()) ? true : equals(elementKind, LIST_getInstance())) { + tmp_0 = NullableMode_COLLECTION_getInstance(); + } else { + tmp_0 = NullableMode_ACCEPTABLE_getInstance(); + } + tmp.nullableMode_1 = tmp_0; + this.pushTag_3ag0mq_k$(this.getTag_u4dqfb_k$(descriptor, index)); + this.encodeNullableSerializableValue_ibrab1_k$(serializer, value); + } + } + class ProtobufEncoder extends ProtobufTaggedEncoder { + constructor(proto, writer, descriptor) { + super(); + this.proto_1 = proto; + this.writer_1 = writer; + this.descriptor_1 = descriptor; + } + shouldEncodeElementDefault_x8eyid_k$(descriptor, index) { + return this.proto_1.encodeDefaults_1; + } + beginCollection_9edss2_k$(descriptor, collectionSize) { + var tmp0_subject = descriptor.get_kind_wop7ml_k$(); + var tmp; + if (equals(tmp0_subject, LIST_getInstance())) { + var tag = this.get_currentTagOrDefault_711ujw_k$(); + var tmp_0; + if (get_isPacked(tag) ? get_isPackable(descriptor.getElementDescriptor_ncda77_k$(0)) : false) { + tmp_0 = new PackedArrayEncoder(this.proto_1, this.writer_1, this.get_currentTagOrDefault_711ujw_k$(), descriptor); + } else { + if (tag.equals(get_MISSING_TAG())) { + this.writer_1.writeInt_i8xgjs_k$(collectionSize); + Unit_instance; + } + var tmp_1; + if ((equals(this.descriptor_1.get_kind_wop7ml_k$(), LIST_getInstance()) ? !tag.equals(get_MISSING_TAG()) : false) ? !equals(this.descriptor_1, descriptor) : false) { + tmp_1 = new NestedRepeatedEncoder(this.proto_1, this.writer_1, tag, descriptor); + } else { + tmp_1 = new RepeatedEncoder(this.proto_1, this.writer_1, tag, descriptor); + } + tmp_0 = tmp_1; + } + tmp = tmp_0; + } else if (equals(tmp0_subject, MAP_getInstance())) { + tmp = new MapRepeatedEncoder(this.proto_1, this.get_currentTag_wui9re_k$(), this.writer_1, descriptor); + } else { + throw SerializationException.new_kotlinx_serialization_SerializationException_jj1itu_k$('This serial kind is not supported as collection: ' + descriptor); + } + return tmp; + } + beginStructure_yljocp_k$(descriptor) { + var tmp0_subject = descriptor.get_kind_wop7ml_k$(); + var tmp; + if (equals(tmp0_subject, LIST_getInstance())) { + var tmp_0; + if (get_isPackable(descriptor.getElementDescriptor_ncda77_k$(0)) ? get_isPacked(this.get_currentTagOrDefault_711ujw_k$()) : false) { + tmp_0 = new PackedArrayEncoder(this.proto_1, this.writer_1, this.get_currentTagOrDefault_711ujw_k$(), descriptor); + } else { + tmp_0 = new RepeatedEncoder(this.proto_1, this.writer_1, this.get_currentTagOrDefault_711ujw_k$(), descriptor); + } + tmp = tmp_0; + } else { + var tmp_1; + if (equals(tmp0_subject, CLASS_getInstance()) ? true : equals(tmp0_subject, OBJECT_getInstance())) { + tmp_1 = true; + } else { + tmp_1 = tmp0_subject instanceof PolymorphicKind; + } + if (tmp_1) { + var tag = this.get_currentTagOrDefault_711ujw_k$(); + tmp = (tag.equals(get_MISSING_TAG()) ? equals(descriptor, this.descriptor_1) : false) ? this : new ObjectEncoder(this.proto_1, this.get_currentTagOrDefault_711ujw_k$(), this.writer_1, VOID, descriptor); + } else { + if (equals(tmp0_subject, MAP_getInstance())) { + tmp = new MapRepeatedEncoder(this.proto_1, this.get_currentTagOrDefault_711ujw_k$(), this.writer_1, descriptor); + } else { + throw SerializationException.new_kotlinx_serialization_SerializationException_jj1itu_k$('This serial kind is not supported as structure: ' + descriptor); + } + } + } + return tmp; + } + encodeTaggedInt_wi7m2l_k$(tag, value) { + if (tag.equals(get_MISSING_TAG())) { + this.writer_1.writeInt_i8xgjs_k$(value); + Unit_instance; + } else { + var tmp$ret$0; + // Inline function 'kotlinx.serialization.protobuf.internal.protoId' call + var this_0 = tag; + tmp$ret$0 = this_0.and_1dc02z_k$(toLong_0(IntCompanionObject_instance.MAX_VALUE)).toInt_1tsl84_k$(); + this.writer_1.writeInt_b26cfg_k$(value, tmp$ret$0, get_integerType(tag)); + Unit_instance; + } + } + encodeTaggedByte_t7bn5s_k$(tag, value) { + return this.encodeTaggedInt_wi7m2l_k$(tag, value); + } + encodeTaggedBoolean_y080q9_k$(tag, value) { + return this.encodeTaggedInt_wi7m2l_k$(tag, value ? 1 : 0); + } + encodeTaggedLong_7428ba_k$(tag, value) { + if (tag.equals(get_MISSING_TAG())) { + this.writer_1.writeLong_hrcb1l_k$(value); + Unit_instance; + } else { + var tmp$ret$0; + // Inline function 'kotlinx.serialization.protobuf.internal.protoId' call + var this_0 = tag; + tmp$ret$0 = this_0.and_1dc02z_k$(toLong_0(IntCompanionObject_instance.MAX_VALUE)).toInt_1tsl84_k$(); + this.writer_1.writeLong_3r19y5_k$(value, tmp$ret$0, get_integerType(tag)); + Unit_instance; + } + } + encodeTaggedFloat_u6w2ts_k$(tag, value) { + if (tag.equals(get_MISSING_TAG())) { + this.writer_1.writeFloat_3fh4uj_k$(value); + Unit_instance; + } else { + var tmp$ret$0; + // Inline function 'kotlinx.serialization.protobuf.internal.protoId' call + var this_0 = tag; + tmp$ret$0 = this_0.and_1dc02z_k$(toLong_0(IntCompanionObject_instance.MAX_VALUE)).toInt_1tsl84_k$(); + this.writer_1.writeFloat_ed0m0j_k$(value, tmp$ret$0); + Unit_instance; + } + } + encodeTaggedDouble_kyf7y3_k$(tag, value) { + if (tag.equals(get_MISSING_TAG())) { + this.writer_1.writeDouble_x1b0t6_k$(value); + Unit_instance; + } else { + var tmp$ret$0; + // Inline function 'kotlinx.serialization.protobuf.internal.protoId' call + var this_0 = tag; + tmp$ret$0 = this_0.and_1dc02z_k$(toLong_0(IntCompanionObject_instance.MAX_VALUE)).toInt_1tsl84_k$(); + this.writer_1.writeDouble_z25fpu_k$(value, tmp$ret$0); + Unit_instance; + } + } + encodeTaggedString_ein5vr_k$(tag, value) { + if (tag.equals(get_MISSING_TAG())) { + this.writer_1.writeString_npol3u_k$(value); + Unit_instance; + } else { + var tmp$ret$0; + // Inline function 'kotlinx.serialization.protobuf.internal.protoId' call + var this_0 = tag; + tmp$ret$0 = this_0.and_1dc02z_k$(toLong_0(IntCompanionObject_instance.MAX_VALUE)).toInt_1tsl84_k$(); + this.writer_1.writeString_3ygm02_k$(value, tmp$ret$0); + Unit_instance; + } + } + encodeTaggedEnum_7bic1k_k$(tag, enumDescriptor, ordinal) { + if (tag.equals(get_MISSING_TAG())) { + this.writer_1.writeInt_i8xgjs_k$(extractProtoId(enumDescriptor, ordinal, true)); + Unit_instance; + } else { + var tmp = extractProtoId(enumDescriptor, ordinal, true); + var tmp$ret$0; + // Inline function 'kotlinx.serialization.protobuf.internal.protoId' call + var this_0 = tag; + tmp$ret$0 = this_0.and_1dc02z_k$(toLong_0(IntCompanionObject_instance.MAX_VALUE)).toInt_1tsl84_k$(); + this.writer_1.writeInt_b26cfg_k$(tmp, tmp$ret$0, ProtoIntegerType_DEFAULT_getInstance()); + Unit_instance; + } + } + getTag_u4dqfb_k$(_this__u8e3s4, index) { + return extractParameters(_this__u8e3s4, index); + } + encodeSerializableValue_3uuzip_k$(serializer, value) { + var tmp; + if (serializer instanceof MapLikeSerializer) { + serializeMap(this, isInterface(serializer, SerializationStrategy) ? serializer : THROW_CCE(), value); + tmp = Unit_instance; + } else { + if (equals(serializer.get_descriptor_wjt6a0_k$(), ByteArraySerializer_0().get_descriptor_wjt6a0_k$())) { + serializeByteArray(this, (!(value == null) ? isByteArray(value) : false) ? value : THROW_CCE()); + tmp = Unit_instance; + } else { + serializer.serialize_5ase3y_k$(this, value); + tmp = Unit_instance; + } + } + return tmp; + } + } + class NestedRepeatedEncoder extends ProtobufEncoder { + constructor(proto, writer, curTag, descriptor, stream) { + stream = stream === VOID ? new ByteArrayOutput() : stream; + super(proto, new ProtobufWriter(stream), descriptor); + this.writer_2 = writer; + this.curTag_1 = curTag; + this.stream_1 = stream; + } + getTag_u4dqfb_k$(_this__u8e3s4, index) { + var tmp$ret$0; + // Inline function 'kotlinx.serialization.protobuf.internal.ProtoDesc' call + var protoId = 1; + var type = ProtoIntegerType_DEFAULT_getInstance(); + tmp$ret$0 = type.signature_1.or_sl8881_k$(toLong_0(protoId)); + return tmp$ret$0; + } + endEncode_mdsrgg_k$(descriptor) { + var tmp$ret$0; + // Inline function 'kotlinx.serialization.protobuf.internal.protoId' call + var this_0 = this.curTag_1; + tmp$ret$0 = this_0.and_1dc02z_k$(toLong_0(IntCompanionObject_instance.MAX_VALUE)).toInt_1tsl84_k$(); + this.writer_2.writeOutput_emoljh_k$(this.stream_1, tmp$ret$0); + } + } + class PackedArrayEncoder extends NestedRepeatedEncoder { + constructor(proto, writer, curTag, descriptor, stream) { + stream = stream === VOID ? new ByteArrayOutput() : stream; + super(proto, writer, curTag, descriptor, stream); + } + getTag_u4dqfb_k$(_this__u8e3s4, index) { + return get_MISSING_TAG(); + } + beginCollection_9edss2_k$(descriptor, collectionSize) { + throw SerializationException.new_kotlinx_serialization_SerializationException_jj1itu_k$('Packing only supports primitive number types'); + } + beginStructure_yljocp_k$(descriptor) { + throw SerializationException.new_kotlinx_serialization_SerializationException_jj1itu_k$('Packing only supports primitive number types'); + } + encodeTaggedString_ein5vr_k$(tag, value) { + throw SerializationException.new_kotlinx_serialization_SerializationException_jj1itu_k$('Packing only supports primitive number types'); + } + } + class RepeatedDecoder extends ProtobufDecoder { + constructor(proto, decoder, currentTag, descriptor) { + super(proto, decoder, descriptor); + this.index_1 = -1; + var tmp = this; + var tmp_0; + if (currentTag.equals(get_MISSING_TAG())) { + var length = this.reader_1.readInt32NoTag_65fnmp_k$(); + // Inline function 'kotlin.require' call + var value = length >= 0; + // Inline function 'kotlin.contracts.contract' call + if (!value) { + var tmp$ret$0; + // Inline function 'kotlinx.serialization.protobuf.internal.RepeatedDecoder.' call + tmp$ret$0 = 'Expected positive length for ' + descriptor + ', but got ' + length; + var message = tmp$ret$0; + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$(toString_1(message)); + } + tmp_0 = toLong_0(length).unaryMinus_6uz0qp_k$(); + } else { + tmp_0 = currentTag; + } + tmp.tagOrSize_1 = tmp_0; + } + decodeElementIndex_bstkhp_k$(descriptor) { + if (this.tagOrSize_1.compareTo_kvbqny_k$(new Long(0, 0)) > 0) { + return decodeTaggedListIndex(this); + } + return decodeListIndexNoTag(this); + } + getTag_u4dqfb_k$(_this__u8e3s4, index) { + if (this.tagOrSize_1.compareTo_kvbqny_k$(new Long(0, 0)) > 0) + return this.tagOrSize_1; + return get_MISSING_TAG(); + } + } + class MapEntryReader extends ProtobufDecoder { + constructor(proto, decoder, parentTag, descriptor) { + super(proto, decoder, descriptor); + this.parentTag_1 = parentTag; + } + getTag_u4dqfb_k$(_this__u8e3s4, index) { + var tmp; + if ((index % 2 | 0) === 0) { + var tmp$ret$0; + // Inline function 'kotlinx.serialization.protobuf.internal.ProtoDesc' call + var protoId = 1; + var type = get_integerType(this.parentTag_1); + tmp$ret$0 = type.signature_1.or_sl8881_k$(toLong_0(protoId)); + tmp = tmp$ret$0; + } else { + var tmp$ret$1; + // Inline function 'kotlinx.serialization.protobuf.internal.ProtoDesc' call + var protoId_0 = 2; + var type_0 = get_integerType(this.parentTag_1); + tmp$ret$1 = type_0.signature_1.or_sl8881_k$(toLong_0(protoId_0)); + tmp = tmp$ret$1; + } + return tmp; + } + } + class RepeatedEncoder extends ProtobufEncoder { + constructor(proto, writer, curTag, descriptor) { + super(proto, writer, descriptor); + this.curTag_1 = curTag; + } + getTag_u4dqfb_k$(_this__u8e3s4, index) { + return this.curTag_1; + } + } + class ObjectEncoder extends ProtobufEncoder { + constructor(proto, parentTag, parentWriter, stream, descriptor) { + stream = stream === VOID ? new ByteArrayOutput() : stream; + super(proto, new ProtobufWriter(stream), descriptor); + this.parentTag_1 = parentTag; + this.parentWriter_1 = parentWriter; + this.stream_1 = stream; + } + endEncode_mdsrgg_k$(descriptor) { + if (!this.parentTag_1.equals(get_MISSING_TAG())) { + var tmp$ret$0; + // Inline function 'kotlinx.serialization.protobuf.internal.protoId' call + var this_0 = this.parentTag_1; + tmp$ret$0 = this_0.and_1dc02z_k$(toLong_0(IntCompanionObject_instance.MAX_VALUE)).toInt_1tsl84_k$(); + this.parentWriter_1.writeOutput_emoljh_k$(this.stream_1, tmp$ret$0); + Unit_instance; + } else { + this.parentWriter_1.writeOutput_q6h0yt_k$(this.stream_1); + Unit_instance; + } + } + } + class MapRepeatedEncoder extends ObjectEncoder { + constructor(proto, parentTag, parentWriter, descriptor) { + super(proto, parentTag, parentWriter, VOID, descriptor); + } + getTag_u4dqfb_k$(_this__u8e3s4, index) { + var tmp; + if ((index % 2 | 0) === 0) { + var tmp$ret$0; + // Inline function 'kotlinx.serialization.protobuf.internal.ProtoDesc' call + var protoId = 1; + var type = get_integerType(this.parentTag_1); + tmp$ret$0 = type.signature_1.or_sl8881_k$(toLong_0(protoId)); + tmp = tmp$ret$0; + } else { + var tmp$ret$1; + // Inline function 'kotlinx.serialization.protobuf.internal.ProtoDesc' call + var protoId_0 = 2; + var type_0 = get_integerType(this.parentTag_1); + tmp$ret$1 = type_0.signature_1.or_sl8881_k$(toLong_0(protoId_0)); + tmp = tmp$ret$1; + } + return tmp; + } + } + class ProtobufReader { + constructor(input) { + this.input_1 = input; + this.currentId_1 = -1; + this.currentType_1 = -1; + this.pushBack_1 = false; + this.pushBackHeader_1 = 0; + } + get_eof_18j6gd_k$() { + return !this.pushBack_1 ? this.input_1.get_availableBytes_11q47p_k$() === 0 : false; + } + readTag_hv8kro_k$() { + if (this.pushBack_1) { + this.pushBack_1 = false; + var previousHeader = this.currentId_1 << 3 | this.currentType_1; + var tmp$ret$0; + // Inline function 'kotlin.also' call + var this_0 = updateIdAndType(this, this.pushBackHeader_1); + // Inline function 'kotlin.contracts.contract' call + // Inline function 'kotlinx.serialization.protobuf.internal.ProtobufReader.readTag.' call + var it = this_0; + this.pushBackHeader_1 = previousHeader; + tmp$ret$0 = this_0; + return tmp$ret$0; + } + this.pushBackHeader_1 = this.currentId_1 << 3 | this.currentType_1; + var header = this.input_1.readVarint64_c1l8ax_k$(true).toInt_1tsl84_k$(); + return updateIdAndType(this, header); + } + pushBackTag_y3reuh_k$() { + this.pushBack_1 = true; + var nextHeader = this.currentId_1 << 3 | this.currentType_1; + updateIdAndType(this, this.pushBackHeader_1); + Unit_instance; + this.pushBackHeader_1 = nextHeader; + } + skipElement_60hf3h_k$() { + var tmp0_subject = this.currentType_1; + if (tmp0_subject === get_VARINT()) { + this.readInt_hbj26l_k$(ProtoIntegerType_DEFAULT_getInstance()); + Unit_instance; + } else if (tmp0_subject === get_i64()) { + this.readLong_br1uau_k$(ProtoIntegerType_FIXED_getInstance()); + Unit_instance; + } else if (tmp0_subject === get_SIZE_DELIMITED()) { + this.readByteArray_52wnjv_k$(); + Unit_instance; + } else if (tmp0_subject === get_i32()) { + this.readInt_hbj26l_k$(ProtoIntegerType_FIXED_getInstance()); + Unit_instance; + } else + throw ProtobufDecodingException.new_kotlinx_serialization_protobuf_internal_ProtobufDecodingException_yxd951_k$('Unsupported start group or end group wire type: ' + this.currentType_1); + } + readByteArray_52wnjv_k$() { + // Inline function 'kotlinx.serialization.protobuf.internal.ProtobufReader.assertWireType' call + var this_0 = this; + var expected = get_SIZE_DELIMITED(); + if (!(this_0.currentType_1 === expected)) + throw ProtobufDecodingException.new_kotlinx_serialization_protobuf_internal_ProtobufDecodingException_yxd951_k$('Expected wire type ' + expected + ', but found ' + this_0.currentType_1); + return this.readByteArrayNoTag_lh4cke_k$(); + } + readByteArrayNoTag_lh4cke_k$() { + var length = decode32$default(this); + checkLength(this, length); + return this.input_1.readExactNBytes_elkqdu_k$(length); + } + objectInput_lgltf9_k$() { + // Inline function 'kotlinx.serialization.protobuf.internal.ProtobufReader.assertWireType' call + var this_0 = this; + var expected = get_SIZE_DELIMITED(); + if (!(this_0.currentType_1 === expected)) + throw ProtobufDecodingException.new_kotlinx_serialization_protobuf_internal_ProtobufDecodingException_yxd951_k$('Expected wire type ' + expected + ', but found ' + this_0.currentType_1); + return this.objectTaglessInput_lsdsy2_k$(); + } + objectTaglessInput_lsdsy2_k$() { + var length = decode32$default(this); + checkLength(this, length); + return this.input_1.slice_mm0ex2_k$(length); + } + readInt_hbj26l_k$(format) { + var wireType = format.equals(ProtoIntegerType_FIXED_getInstance()) ? get_i32() : get_VARINT(); + // Inline function 'kotlinx.serialization.protobuf.internal.ProtobufReader.assertWireType' call + var this_0 = this; + var expected = wireType; + if (!(this_0.currentType_1 === expected)) + throw ProtobufDecodingException.new_kotlinx_serialization_protobuf_internal_ProtobufDecodingException_yxd951_k$('Expected wire type ' + expected + ', but found ' + this_0.currentType_1); + return decode32(this, format); + } + readInt32NoTag_65fnmp_k$() { + return decode32$default(this); + } + readLong_br1uau_k$(format) { + var wireType = format.equals(ProtoIntegerType_FIXED_getInstance()) ? get_i64() : get_VARINT(); + // Inline function 'kotlinx.serialization.protobuf.internal.ProtobufReader.assertWireType' call + var this_0 = this; + var expected = wireType; + if (!(this_0.currentType_1 === expected)) + throw ProtobufDecodingException.new_kotlinx_serialization_protobuf_internal_ProtobufDecodingException_yxd951_k$('Expected wire type ' + expected + ', but found ' + this_0.currentType_1); + return decode64(this, format); + } + readLongNoTag_tpnh89_k$() { + return decode64(this, ProtoIntegerType_DEFAULT_getInstance()); + } + readFloat_issql6_k$() { + // Inline function 'kotlinx.serialization.protobuf.internal.ProtobufReader.assertWireType' call + var this_0 = this; + var expected = get_i32(); + if (!(this_0.currentType_1 === expected)) + throw ProtobufDecodingException.new_kotlinx_serialization_protobuf_internal_ProtobufDecodingException_yxd951_k$('Expected wire type ' + expected + ', but found ' + this_0.currentType_1); + var tmp$ret$0; + // Inline function 'kotlin.fromBits' call + var this_1 = FloatCompanionObject_instance; + var bits = readIntLittleEndian(this); + tmp$ret$0 = floatFromBits(bits); + return tmp$ret$0; + } + readFloatNoTag_1a957x_k$() { + var tmp$ret$0; + // Inline function 'kotlin.fromBits' call + var this_0 = FloatCompanionObject_instance; + var bits = readIntLittleEndian(this); + tmp$ret$0 = floatFromBits(bits); + return tmp$ret$0; + } + readDouble_fg6gvt_k$() { + // Inline function 'kotlinx.serialization.protobuf.internal.ProtobufReader.assertWireType' call + var this_0 = this; + var expected = get_i64(); + if (!(this_0.currentType_1 === expected)) + throw ProtobufDecodingException.new_kotlinx_serialization_protobuf_internal_ProtobufDecodingException_yxd951_k$('Expected wire type ' + expected + ', but found ' + this_0.currentType_1); + var tmp$ret$0; + // Inline function 'kotlin.fromBits' call + var this_1 = DoubleCompanionObject_instance; + var bits = readLongLittleEndian(this); + tmp$ret$0 = doubleFromBits(bits); + return tmp$ret$0; + } + readDoubleNoTag_yloa7i_k$() { + var tmp$ret$0; + // Inline function 'kotlin.fromBits' call + var this_0 = DoubleCompanionObject_instance; + var bits = readLongLittleEndian(this); + tmp$ret$0 = doubleFromBits(bits); + return tmp$ret$0; + } + readString_89sxq1_k$() { + // Inline function 'kotlinx.serialization.protobuf.internal.ProtobufReader.assertWireType' call + var this_0 = this; + var expected = get_SIZE_DELIMITED(); + if (!(this_0.currentType_1 === expected)) + throw ProtobufDecodingException.new_kotlinx_serialization_protobuf_internal_ProtobufDecodingException_yxd951_k$('Expected wire type ' + expected + ', but found ' + this_0.currentType_1); + var length = decode32$default(this); + checkLength(this, length); + return this.input_1.readString_yokn5d_k$(length); + } + readStringNoTag_wtqdbi_k$() { + var length = decode32$default(this); + checkLength(this, length); + return this.input_1.readString_yokn5d_k$(length); + } + } + class NullableMode extends Enum { + constructor(name, ordinal) { + super(name, ordinal); + } + } + class ProtobufWriter { + constructor(out) { + this.out_1 = out; + } + writeBytes_cntt0_k$(bytes, tag) { + encode32$default(this.out_1, this, tag << 3 | get_SIZE_DELIMITED()); + this.writeBytes_morzks_k$(bytes); + } + writeBytes_morzks_k$(bytes) { + encode32$default(this.out_1, this, bytes.length); + this.out_1.write_g2w2un_k$(bytes); + } + writeOutput_emoljh_k$(output, tag) { + encode32$default(this.out_1, this, tag << 3 | get_SIZE_DELIMITED()); + this.writeOutput_q6h0yt_k$(output); + } + writeOutput_q6h0yt_k$(output) { + encode32$default(this.out_1, this, output.size_23och_k$()); + this.out_1.write_b919ra_k$(output); + } + writeInt_b26cfg_k$(value, tag, format) { + var wireType = format.equals(ProtoIntegerType_FIXED_getInstance()) ? get_i32() : get_VARINT(); + encode32$default(this.out_1, this, tag << 3 | wireType); + encode32(this.out_1, this, value, format); + } + writeInt_i8xgjs_k$(value) { + encode32$default(this.out_1, this, value); + } + writeLong_3r19y5_k$(value, tag, format) { + var wireType = format.equals(ProtoIntegerType_FIXED_getInstance()) ? get_i64() : get_VARINT(); + encode32$default(this.out_1, this, tag << 3 | wireType); + encode64(this.out_1, this, value, format); + } + writeLong_hrcb1l_k$(value) { + encode64$default(this.out_1, this, value); + } + writeString_3ygm02_k$(value, tag) { + var bytes = encodeToByteArray(value); + this.writeBytes_cntt0_k$(bytes, tag); + } + writeString_npol3u_k$(value) { + var bytes = encodeToByteArray(value); + this.writeBytes_morzks_k$(bytes); + } + writeDouble_z25fpu_k$(value, tag) { + encode32$default(this.out_1, this, tag << 3 | get_i64()); + this.out_1.writeLong_hrcb1l_k$(reverseBytes_0(value, this)); + } + writeDouble_x1b0t6_k$(value) { + this.out_1.writeLong_hrcb1l_k$(reverseBytes_0(value, this)); + } + writeFloat_ed0m0j_k$(value, tag) { + encode32$default(this.out_1, this, tag << 3 | get_i32()); + this.out_1.writeInt_i8xgjs_k$(reverseBytes(value, this)); + } + writeFloat_3fh4uj_k$(value) { + this.out_1.writeInt_i8xgjs_k$(reverseBytes(value, this)); + } + } + class Companion_11 { + constructor() { + Companion_instance_11 = this; + var tmp = this; + var tmp_0 = 0; + var tmp_1 = 65; + var tmp_2 = new Int32Array(tmp_1); + while (tmp_0 < tmp_1) { + var tmp_3 = tmp_0; + var tmp$ret$0; + tmp$ret$0 = (63 - tmp_3 | 0) / 7 | 0; + tmp_2[tmp_3] = tmp$ret$0; + tmp_0 = tmp_0 + 1 | 0; + } + tmp.VAR_INT_LENGTHS_1 = tmp_2; + } + } + class ByteArrayOutput { + constructor() { + Companion_getInstance_11(); + this.array_1 = new Int8Array(32); + this.position_1 = 0; + } + size_23och_k$() { + return this.position_1; + } + toByteArray_qczt2u_k$() { + var newArray = new Int8Array(this.position_1); + var tmp$ret$4; + // Inline function 'kotlin.collections.copyInto' call + var this_0 = this.array_1; + var destination = newArray; + var startIndex = 0; + var endIndex = this.position_1; + var destinationOffset = 0; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_1 = this_0; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_2 = this_1; + tmp$ret$0 = this_2; + tmp$ret$1 = tmp$ret$0; + var tmp = tmp$ret$1; + var tmp$ret$3; + // Inline function 'kotlin.js.unsafeCast' call + var this_3 = destination; + var tmp$ret$2; + // Inline function 'kotlin.js.asDynamic' call + var this_4 = this_3; + tmp$ret$2 = this_4; + tmp$ret$3 = tmp$ret$2; + arrayCopy(tmp, tmp$ret$3, destinationOffset, startIndex, endIndex); + tmp$ret$4 = destination; + Unit_instance; + return newArray; + } + write_g2w2un_k$(buffer) { + var count = buffer.length; + if (count === 0) { + return Unit_instance; + } + ensureCapacity_0(this, count); + var tmp$ret$4; + // Inline function 'kotlin.collections.copyInto' call + var this_0 = buffer; + var destination = this.array_1; + var destinationOffset = this.position_1; + var startIndex = 0; + var endIndex = count; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_1 = this_0; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_2 = this_1; + tmp$ret$0 = this_2; + tmp$ret$1 = tmp$ret$0; + var tmp = tmp$ret$1; + var tmp$ret$3; + // Inline function 'kotlin.js.unsafeCast' call + var this_3 = destination; + var tmp$ret$2; + // Inline function 'kotlin.js.asDynamic' call + var this_4 = this_3; + tmp$ret$2 = this_4; + tmp$ret$3 = tmp$ret$2; + arrayCopy(tmp, tmp$ret$3, destinationOffset, startIndex, endIndex); + tmp$ret$4 = destination; + Unit_instance; + var tmp0_this = this; + tmp0_this.position_1 = tmp0_this.position_1 + count | 0; + } + write_b919ra_k$(output) { + var count = output.size_23och_k$(); + ensureCapacity_0(this, count); + var tmp$ret$4; + // Inline function 'kotlin.collections.copyInto' call + var this_0 = output.array_1; + var destination = this.array_1; + var destinationOffset = this.position_1; + var startIndex = 0; + var endIndex = count; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_1 = this_0; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_2 = this_1; + tmp$ret$0 = this_2; + tmp$ret$1 = tmp$ret$0; + var tmp = tmp$ret$1; + var tmp$ret$3; + // Inline function 'kotlin.js.unsafeCast' call + var this_3 = destination; + var tmp$ret$2; + // Inline function 'kotlin.js.asDynamic' call + var this_4 = this_3; + tmp$ret$2 = this_4; + tmp$ret$3 = tmp$ret$2; + arrayCopy(tmp, tmp$ret$3, destinationOffset, startIndex, endIndex); + tmp$ret$4 = destination; + Unit_instance; + var tmp0_this = this; + tmp0_this.position_1 = tmp0_this.position_1 + count | 0; + } + writeInt_i8xgjs_k$(intValue) { + ensureCapacity_0(this, 4); + var inductionVariable = 3; + if (0 <= inductionVariable) + do { + var i = inductionVariable; + inductionVariable = inductionVariable + -1 | 0; + var tmp = this.array_1; + var tmp1_this = this; + var tmp2 = tmp1_this.position_1; + tmp1_this.position_1 = tmp2 + 1 | 0; + tmp[tmp2] = toByte(intValue >> imul(i, 8)); + Unit_instance; + } + while (0 <= inductionVariable); + } + writeLong_hrcb1l_k$(longValue) { + ensureCapacity_0(this, 8); + var inductionVariable = 7; + if (0 <= inductionVariable) + do { + var i = inductionVariable; + inductionVariable = inductionVariable + -1 | 0; + var tmp = this.array_1; + var tmp1_this = this; + var tmp2 = tmp1_this.position_1; + tmp1_this.position_1 = tmp2 + 1 | 0; + tmp[tmp2] = longValue.shr_9fl3wl_k$(imul(i, 8)).toByte_edm0nx_k$(); + Unit_instance; + } + while (0 <= inductionVariable); + } + encodeVarint32_6iuzv9_k$(value) { + ensureCapacity_0(this, 5); + if ((value & -128) === 0) { + var tmp = this.array_1; + var tmp0_this = this; + var tmp1 = tmp0_this.position_1; + tmp0_this.position_1 = tmp1 + 1 | 0; + tmp[tmp1] = toByte(value); + return Unit_instance; + } + var length = varIntLength(this, toLong_0(value)); + encodeVarint(this, toLong_0(value), length); + } + encodeVarint64_kcevbe_k$(value) { + var length = varIntLength(this, value); + ensureCapacity_0(this, length + 1 | 0); + encodeVarint(this, value, length); + } + } + class ByteArrayInput { + constructor(array, endIndex) { + endIndex = endIndex === VOID ? array.length : endIndex; + this.array_1 = array; + this.endIndex_1 = endIndex; + this.position_1 = 0; + } + get_availableBytes_11q47p_k$() { + return this.endIndex_1 - this.position_1 | 0; + } + slice_mm0ex2_k$(size) { + ensureEnoughBytes(this, size); + var result = new ByteArrayInput(this.array_1, this.position_1 + size | 0); + result.position_1 = this.position_1; + var tmp0_this = this; + tmp0_this.position_1 = tmp0_this.position_1 + size | 0; + return result; + } + read_22xsm_k$() { + var tmp; + if (this.position_1 < this.endIndex_1) { + var tmp_0 = this.array_1; + var tmp0_this = this; + var tmp1 = tmp0_this.position_1; + tmp0_this.position_1 = tmp1 + 1 | 0; + tmp = tmp_0[tmp1] & 255; + } else { + tmp = -1; + } + return tmp; + } + readExactNBytes_elkqdu_k$(bytesCount) { + ensureEnoughBytes(this, bytesCount); + var b = new Int8Array(bytesCount); + var length = b.length; + var copied = (this.endIndex_1 - this.position_1 | 0) < length ? this.endIndex_1 - this.position_1 | 0 : length; + var tmp$ret$4; + // Inline function 'kotlin.collections.copyInto' call + var this_0 = this.array_1; + var destination = b; + var destinationOffset = 0; + var startIndex = this.position_1; + var endIndex = this.position_1 + copied | 0; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_1 = this_0; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_2 = this_1; + tmp$ret$0 = this_2; + tmp$ret$1 = tmp$ret$0; + var tmp = tmp$ret$1; + var tmp$ret$3; + // Inline function 'kotlin.js.unsafeCast' call + var this_3 = destination; + var tmp$ret$2; + // Inline function 'kotlin.js.asDynamic' call + var this_4 = this_3; + tmp$ret$2 = this_4; + tmp$ret$3 = tmp$ret$2; + arrayCopy(tmp, tmp$ret$3, destinationOffset, startIndex, endIndex); + tmp$ret$4 = destination; + Unit_instance; + var tmp0_this = this; + tmp0_this.position_1 = tmp0_this.position_1 + copied | 0; + return b; + } + readString_yokn5d_k$(length) { + var result = decodeToString(this.array_1, this.position_1, this.position_1 + length | 0); + var tmp0_this = this; + tmp0_this.position_1 = tmp0_this.position_1 + length | 0; + return result; + } + readVarint32_qfuf7h_k$() { + if (this.position_1 === this.endIndex_1) { + eof(this); + Unit_instance; + } + var currentPosition = this.position_1; + var tmp = this.array_1; + var tmp0 = currentPosition; + currentPosition = tmp0 + 1 | 0; + var result = tmp[tmp0]; + if (result >= 0) { + this.position_1 = currentPosition; + return result; + } else if ((this.endIndex_1 - this.position_1 | 0) > 1) { + var tmp_0 = result; + var tmp_1 = this.array_1; + var tmp1 = currentPosition; + currentPosition = tmp1 + 1 | 0; + result = tmp_0 ^ tmp_1[tmp1] << 7; + if (result < 0) { + this.position_1 = currentPosition; + return result ^ -128; + } + } + return readVarint32SlowPath(this); + } + readVarint64_c1l8ax_k$(eofAllowed) { + if (this.position_1 === this.endIndex_1) { + if (eofAllowed) + return new Long(-1, -1); + else { + eof(this); + Unit_instance; + } + } + var currentPosition = this.position_1; + var tmp = this.array_1; + var tmp0 = currentPosition; + currentPosition = tmp0 + 1 | 0; + var result = toLong_0(tmp[tmp0]); + if (result.compareTo_kvbqny_k$(new Long(0, 0)) >= 0) { + this.position_1 = currentPosition; + return result; + } else if ((this.endIndex_1 - this.position_1 | 0) > 1) { + var tmp_0 = result; + var tmp_1 = this.array_1; + var tmp1 = currentPosition; + currentPosition = tmp1 + 1 | 0; + result = tmp_0.xor_gifw87_k$(toLong_0(tmp_1[tmp1]).shl_bg8if3_k$(7)); + if (result.compareTo_kvbqny_k$(new Long(0, 0)) < 0) { + this.position_1 = currentPosition; + return result.xor_gifw87_k$(new Long(-128, -1)); + } + } + return readVarint64SlowPath(this); + } + } + class IPlatformNeuron {} + function reportClick$default(force, eventId, extra, $super) { + extra = extra === VOID ? emptyMap() : extra; + var tmp; + if ($super === VOID) { + this.reportClick_kf4xpm_k$(force, eventId, extra); + tmp = Unit_instance; + } else { + tmp = $super.reportClick_kf4xpm_k$.call(this, force, eventId, extra); + } + return tmp; + } + function reportExposure$default(force, eventId, extra, $super) { + extra = extra === VOID ? emptyMap() : extra; + var tmp; + if ($super === VOID) { + this.reportExposure_ppr4al_k$(force, eventId, extra); + tmp = Unit_instance; + } else { + tmp = $super.reportExposure_ppr4al_k$.call(this, force, eventId, extra); + } + return tmp; + } + class KNeuron { + constructor() { + KNeuron_instance = this; + this.$$delegate_0__1 = _get_mPlatformNeuron_$accessor$l84lya_pc869p(); + } + reportClick_kf4xpm_k$(force, eventId, extra) { + this.$$delegate_0__1.reportClick_kf4xpm_k$(force, eventId, extra); + } + reportExposure_ppr4al_k$(force, eventId, extra) { + this.$$delegate_0__1.reportExposure_ppr4al_k$(force, eventId, extra); + } + reportPlayer_56x5o9_k$(force, eventId, playFromSpmid, seasonId, type, subType, epId, progress, avid, cid, networkType, danmaku, status, playMethod, playType, playerSessionId, speed, playerClarity, isAutoplay, videoFormat, extra) { + this.$$delegate_0__1.reportPlayer_56x5o9_k$(force, eventId, playFromSpmid, seasonId, type, subType, epId, progress, avid, cid, networkType, danmaku, status, playMethod, playType, playerSessionId, speed, playerClarity, isAutoplay, videoFormat, extra); + } + trackT_5v759e_k$(force, eventId, extra, sampler) { + this.$$delegate_0__1.trackT_5v759e_k$(force, eventId, extra, sampler); + } + simpleTrackT(eventId, extra) { + this.trackT_5v759e_k$(false, eventId, extra, KNeuron$simpleTrackT$lambda); + } + } + class Companion_12 { + constructor() { + this.targetPath = '/google.protobuf.Any'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance(); + } + } + class $serializer { + constructor() { + $serializer_instance = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.google.protobuf.KAny', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('typeUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('value', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), ByteArraySerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, ByteArraySerializer_getInstance(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, ByteArraySerializer_getInstance(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KAny.new_com_google_protobuf_KAny_q3bn3u_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_lhuq0s_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.typeUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.typeUrl); + Unit_instance; + } + var tmp; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1)) { + tmp = true; + } else { + var tmp$ret$0; + // Inline function 'kotlin.byteArrayOf' call + var elements = new Int8Array([]); + tmp$ret$0 = elements; + tmp = !equals(value.value, tmp$ret$0); + } + if (tmp) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 1, ByteArraySerializer_getInstance(), value.value); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_lhuq0s_k$(encoder, value instanceof KAny ? value : THROW_CCE()); + } + } + class KAny { + constructor(typeUrl, value) { + Companion_instance_12; + typeUrl = typeUrl === VOID ? '' : typeUrl; + var tmp; + if (value === VOID) { + var tmp$ret$0; + var tmp$ret$0_0; + // Inline function 'kotlin.byteArrayOf' call + var elements = new Int8Array([]); + tmp$ret$0 = elements; + tmp$ret$0_0 = Unit_instance; + tmp = tmp$ret$0; + } else { + tmp = value; + } + value = tmp; + this.typeUrl = typeUrl; + this.value = value; + } + get_typeUrl_cucxsk_k$() { + return this.typeUrl; + } + get_value_j01efc_k$() { + return this.value; + } + component1_7eebsc_k$() { + return this.typeUrl; + } + component2_7eebsb_k$() { + return this.value; + } + copy_ibkqit_k$(typeUrl, value) { + return new KAny(typeUrl, value); + } + copy(typeUrl, value, $super) { + typeUrl = typeUrl === VOID ? this.typeUrl : typeUrl; + value = value === VOID ? this.value : value; + return this.copy_ibkqit_k$(typeUrl, value); + } + toString() { + return 'KAny(typeUrl=' + this.typeUrl + ', value=' + toString_1(this.value) + ')'; + } + hashCode() { + var result = getStringHashCode(this.typeUrl); + result = imul(result, 31) + hashCode(this.value) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KAny)) + return false; + var tmp0_other_with_cast = other instanceof KAny ? other : THROW_CCE(); + if (!(this.typeUrl === tmp0_other_with_cast.typeUrl)) + return false; + if (!equals(this.value, tmp0_other_with_cast.value)) + return false; + return true; + } + static new_com_google_protobuf_KAny_q3bn3u_k$(seen1, typeUrl, value, serializationConstructorMarker) { + Companion_instance_12; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.typeUrl = ''; + else + $this.typeUrl = typeUrl; + if (0 === (seen1 & 2)) { + var tmp = $this; + var tmp$ret$0; + // Inline function 'kotlin.byteArrayOf' call + var elements = new Int8Array([]); + tmp$ret$0 = elements; + tmp.value = tmp$ret$0; + } else + $this.value = value; + return $this; + } + } + class Companion_13 { + constructor() { + Companion_instance_13 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, new ArrayListSerializer($serializer_getInstance_1()), new ArrayListSerializer($serializer_getInstance_58()), null, null, new ArrayListSerializer($serializer_getInstance_2()), null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/google.protobuf.Api'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_0(); + } + } + class $serializer_0 { + constructor() { + $serializer_instance_0 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.google.protobuf.KApi', this, 7); + tmp0_serialDesc.addElement_5pzumi_k$('name', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('methods', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('options', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('version', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('sourceContext', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('mixins', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('syntax', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_13().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), tmp0_cached[1], tmp0_cached[2], StringSerializer_getInstance(), get_nullable($serializer_getInstance_44()), tmp0_cached[5], IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = 0; + var tmp11_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp12_cached = Companion_getInstance_13().$childSerializers_1; + if (tmp11_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp11_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp12_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp11_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp12_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_44(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp11_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 5, tmp12_cached[5], tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + } else + while (tmp1_flag) { + tmp2_index = tmp11_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp11_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp12_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp11_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp12_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_44(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp11_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 5, tmp12_cached[5], tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp11_input.endStructure_1xqz0n_k$(tmp0_desc); + return KApi.new_com_google_protobuf_KApi_6zr8r7_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, null); + } + serialize_271ezu_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_13().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.name === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.name); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !equals(value.methods, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 1, tmp2_cached[1], value.methods); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !equals(value.options, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 2, tmp2_cached[2], value.options); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.version === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.version); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.sourceContext == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, $serializer_getInstance_44(), value.sourceContext); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !equals(value.mixins, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 5, tmp2_cached[5], value.mixins); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.syntax === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 6, value.syntax); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_271ezu_k$(encoder, value instanceof KApi ? value : THROW_CCE()); + } + } + class KApi { + constructor(name, methods, options, version, sourceContext, mixins, syntax) { + Companion_getInstance_13(); + name = name === VOID ? '' : name; + methods = methods === VOID ? emptyList() : methods; + options = options === VOID ? emptyList() : options; + version = version === VOID ? '' : version; + sourceContext = sourceContext === VOID ? null : sourceContext; + mixins = mixins === VOID ? emptyList() : mixins; + syntax = syntax === VOID ? 0 : syntax; + this.name = name; + this.methods = methods; + this.options = options; + this.version = version; + this.sourceContext = sourceContext; + this.mixins = mixins; + this.syntax = syntax; + } + get_name_woqyms_k$() { + return this.name; + } + get_methods_h2gczt_k$() { + return this.methods; + } + get_options_jecmyz_k$() { + return this.options; + } + get_version_72w4j3_k$() { + return this.version; + } + get_sourceContext_g32ju3_k$() { + return this.sourceContext; + } + get_mixins_gni5uj_k$() { + return this.mixins; + } + get_syntax_jqefos_k$() { + return this.syntax; + } + syntaxEnum() { + return Companion_getInstance_64().fromValue(this.syntax); + } + component1_7eebsc_k$() { + return this.name; + } + component2_7eebsb_k$() { + return this.methods; + } + component3_7eebsa_k$() { + return this.options; + } + component4_7eebs9_k$() { + return this.version; + } + component5_7eebs8_k$() { + return this.sourceContext; + } + component6_7eebs7_k$() { + return this.mixins; + } + component7_7eebs6_k$() { + return this.syntax; + } + copy_o4696r_k$(name, methods, options, version, sourceContext, mixins, syntax) { + return new KApi(name, methods, options, version, sourceContext, mixins, syntax); + } + copy(name, methods, options, version, sourceContext, mixins, syntax, $super) { + name = name === VOID ? this.name : name; + methods = methods === VOID ? this.methods : methods; + options = options === VOID ? this.options : options; + version = version === VOID ? this.version : version; + sourceContext = sourceContext === VOID ? this.sourceContext : sourceContext; + mixins = mixins === VOID ? this.mixins : mixins; + syntax = syntax === VOID ? this.syntax : syntax; + return this.copy_o4696r_k$(name, methods, options, version, sourceContext, mixins, syntax); + } + toString() { + return 'KApi(name=' + this.name + ', methods=' + this.methods + ', options=' + this.options + ', version=' + this.version + ', sourceContext=' + this.sourceContext + ', mixins=' + this.mixins + ', syntax=' + this.syntax + ')'; + } + hashCode() { + var result = getStringHashCode(this.name); + result = imul(result, 31) + hashCode(this.methods) | 0; + result = imul(result, 31) + hashCode(this.options) | 0; + result = imul(result, 31) + getStringHashCode(this.version) | 0; + result = imul(result, 31) + (this.sourceContext == null ? 0 : this.sourceContext.hashCode()) | 0; + result = imul(result, 31) + hashCode(this.mixins) | 0; + result = imul(result, 31) + this.syntax | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KApi)) + return false; + var tmp0_other_with_cast = other instanceof KApi ? other : THROW_CCE(); + if (!(this.name === tmp0_other_with_cast.name)) + return false; + if (!equals(this.methods, tmp0_other_with_cast.methods)) + return false; + if (!equals(this.options, tmp0_other_with_cast.options)) + return false; + if (!(this.version === tmp0_other_with_cast.version)) + return false; + if (!equals(this.sourceContext, tmp0_other_with_cast.sourceContext)) + return false; + if (!equals(this.mixins, tmp0_other_with_cast.mixins)) + return false; + if (!(this.syntax === tmp0_other_with_cast.syntax)) + return false; + return true; + } + static new_com_google_protobuf_KApi_6zr8r7_k$(seen1, name, methods, options, version, sourceContext, mixins, syntax, serializationConstructorMarker) { + Companion_getInstance_13(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_0().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.name = ''; + else + $this.name = name; + if (0 === (seen1 & 2)) + $this.methods = emptyList(); + else + $this.methods = methods; + if (0 === (seen1 & 4)) + $this.options = emptyList(); + else + $this.options = options; + if (0 === (seen1 & 8)) + $this.version = ''; + else + $this.version = version; + if (0 === (seen1 & 16)) + $this.sourceContext = null; + else + $this.sourceContext = sourceContext; + if (0 === (seen1 & 32)) + $this.mixins = emptyList(); + else + $this.mixins = mixins; + if (0 === (seen1 & 64)) + $this.syntax = 0; + else + $this.syntax = syntax; + return $this; + } + } + class Companion_14 { + constructor() { + Companion_instance_14 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, null, null, new ArrayListSerializer($serializer_getInstance_58()), null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/google.protobuf.Method'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1(); + } + } + class $serializer_1 { + constructor() { + $serializer_instance_1 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.google.protobuf.KMethod', this, 7); + tmp0_serialDesc.addElement_5pzumi_k$('name', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('requestTypeUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('requestStreaming', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('responseTypeUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('responseStreaming', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('options', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('syntax', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_14().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), BooleanSerializer_getInstance(), StringSerializer_getInstance(), BooleanSerializer_getInstance(), tmp0_cached[5], IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = false; + var tmp7_local3 = null; + var tmp8_local4 = false; + var tmp9_local5 = null; + var tmp10_local6 = 0; + var tmp11_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp12_cached = Companion_getInstance_14().$childSerializers_1; + if (tmp11_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp11_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp11_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp11_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 5, tmp12_cached[5], tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + } else + while (tmp1_flag) { + tmp2_index = tmp11_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp11_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp11_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp11_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 5, tmp12_cached[5], tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp11_input.endStructure_1xqz0n_k$(tmp0_desc); + return KMethod.new_com_google_protobuf_KMethod_vsrq5z_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, null); + } + serialize_inpjf9_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_14().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.name === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.name); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.requestTypeUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.requestTypeUrl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.requestStreaming === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 2, value.requestStreaming); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.responseTypeUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.responseTypeUrl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.responseStreaming === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 4, value.responseStreaming); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !equals(value.options, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 5, tmp2_cached[5], value.options); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.syntax === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 6, value.syntax); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_inpjf9_k$(encoder, value instanceof KMethod ? value : THROW_CCE()); + } + } + class KMethod { + constructor(name, requestTypeUrl, requestStreaming, responseTypeUrl, responseStreaming, options, syntax) { + Companion_getInstance_14(); + name = name === VOID ? '' : name; + requestTypeUrl = requestTypeUrl === VOID ? '' : requestTypeUrl; + requestStreaming = requestStreaming === VOID ? false : requestStreaming; + responseTypeUrl = responseTypeUrl === VOID ? '' : responseTypeUrl; + responseStreaming = responseStreaming === VOID ? false : responseStreaming; + options = options === VOID ? emptyList() : options; + syntax = syntax === VOID ? 0 : syntax; + this.name = name; + this.requestTypeUrl = requestTypeUrl; + this.requestStreaming = requestStreaming; + this.responseTypeUrl = responseTypeUrl; + this.responseStreaming = responseStreaming; + this.options = options; + this.syntax = syntax; + } + get_name_woqyms_k$() { + return this.name; + } + get_requestTypeUrl_bg1msx_k$() { + return this.requestTypeUrl; + } + get_requestStreaming_36ql5w_k$() { + return this.requestStreaming; + } + get_responseTypeUrl_zf9ht7_k$() { + return this.responseTypeUrl; + } + get_responseStreaming_4zwsqg_k$() { + return this.responseStreaming; + } + get_options_jecmyz_k$() { + return this.options; + } + get_syntax_jqefos_k$() { + return this.syntax; + } + syntaxEnum() { + return Companion_getInstance_64().fromValue(this.syntax); + } + component1_7eebsc_k$() { + return this.name; + } + component2_7eebsb_k$() { + return this.requestTypeUrl; + } + component3_7eebsa_k$() { + return this.requestStreaming; + } + component4_7eebs9_k$() { + return this.responseTypeUrl; + } + component5_7eebs8_k$() { + return this.responseStreaming; + } + component6_7eebs7_k$() { + return this.options; + } + component7_7eebs6_k$() { + return this.syntax; + } + copy_w97p2f_k$(name, requestTypeUrl, requestStreaming, responseTypeUrl, responseStreaming, options, syntax) { + return new KMethod(name, requestTypeUrl, requestStreaming, responseTypeUrl, responseStreaming, options, syntax); + } + copy(name, requestTypeUrl, requestStreaming, responseTypeUrl, responseStreaming, options, syntax, $super) { + name = name === VOID ? this.name : name; + requestTypeUrl = requestTypeUrl === VOID ? this.requestTypeUrl : requestTypeUrl; + requestStreaming = requestStreaming === VOID ? this.requestStreaming : requestStreaming; + responseTypeUrl = responseTypeUrl === VOID ? this.responseTypeUrl : responseTypeUrl; + responseStreaming = responseStreaming === VOID ? this.responseStreaming : responseStreaming; + options = options === VOID ? this.options : options; + syntax = syntax === VOID ? this.syntax : syntax; + return this.copy_w97p2f_k$(name, requestTypeUrl, requestStreaming, responseTypeUrl, responseStreaming, options, syntax); + } + toString() { + return 'KMethod(name=' + this.name + ', requestTypeUrl=' + this.requestTypeUrl + ', requestStreaming=' + this.requestStreaming + ', responseTypeUrl=' + this.responseTypeUrl + ', responseStreaming=' + this.responseStreaming + ', options=' + this.options + ', syntax=' + this.syntax + ')'; + } + hashCode() { + var result = getStringHashCode(this.name); + result = imul(result, 31) + getStringHashCode(this.requestTypeUrl) | 0; + result = imul(result, 31) + getBooleanHashCode(this.requestStreaming) | 0; + result = imul(result, 31) + getStringHashCode(this.responseTypeUrl) | 0; + result = imul(result, 31) + getBooleanHashCode(this.responseStreaming) | 0; + result = imul(result, 31) + hashCode(this.options) | 0; + result = imul(result, 31) + this.syntax | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KMethod)) + return false; + var tmp0_other_with_cast = other instanceof KMethod ? other : THROW_CCE(); + if (!(this.name === tmp0_other_with_cast.name)) + return false; + if (!(this.requestTypeUrl === tmp0_other_with_cast.requestTypeUrl)) + return false; + if (!(this.requestStreaming === tmp0_other_with_cast.requestStreaming)) + return false; + if (!(this.responseTypeUrl === tmp0_other_with_cast.responseTypeUrl)) + return false; + if (!(this.responseStreaming === tmp0_other_with_cast.responseStreaming)) + return false; + if (!equals(this.options, tmp0_other_with_cast.options)) + return false; + if (!(this.syntax === tmp0_other_with_cast.syntax)) + return false; + return true; + } + static new_com_google_protobuf_KMethod_vsrq5z_k$(seen1, name, requestTypeUrl, requestStreaming, responseTypeUrl, responseStreaming, options, syntax, serializationConstructorMarker) { + Companion_getInstance_14(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.name = ''; + else + $this.name = name; + if (0 === (seen1 & 2)) + $this.requestTypeUrl = ''; + else + $this.requestTypeUrl = requestTypeUrl; + if (0 === (seen1 & 4)) + $this.requestStreaming = false; + else + $this.requestStreaming = requestStreaming; + if (0 === (seen1 & 8)) + $this.responseTypeUrl = ''; + else + $this.responseTypeUrl = responseTypeUrl; + if (0 === (seen1 & 16)) + $this.responseStreaming = false; + else + $this.responseStreaming = responseStreaming; + if (0 === (seen1 & 32)) + $this.options = emptyList(); + else + $this.options = options; + if (0 === (seen1 & 64)) + $this.syntax = 0; + else + $this.syntax = syntax; + return $this; + } + } + class Companion_15 { + constructor() { + this.targetPath = '/google.protobuf.Mixin'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_2(); + } + } + class $serializer_2 { + constructor() { + $serializer_instance_2 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.google.protobuf.KMixin', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('name', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('root', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KMixin.new_com_google_protobuf_KMixin_64hc3x_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_6pgd2p_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.name === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.name); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.root === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.root); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_6pgd2p_k$(encoder, value instanceof KMixin ? value : THROW_CCE()); + } + } + class KMixin { + constructor(name, root) { + Companion_instance_15; + name = name === VOID ? '' : name; + root = root === VOID ? '' : root; + this.name = name; + this.root = root; + } + get_name_woqyms_k$() { + return this.name; + } + get_root_wott0r_k$() { + return this.root; + } + component1_7eebsc_k$() { + return this.name; + } + component2_7eebsb_k$() { + return this.root; + } + copy_plwnsl_k$(name, root) { + return new KMixin(name, root); + } + copy(name, root, $super) { + name = name === VOID ? this.name : name; + root = root === VOID ? this.root : root; + return this.copy_plwnsl_k$(name, root); + } + toString() { + return 'KMixin(name=' + this.name + ', root=' + this.root + ')'; + } + hashCode() { + var result = getStringHashCode(this.name); + result = imul(result, 31) + getStringHashCode(this.root) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KMixin)) + return false; + var tmp0_other_with_cast = other instanceof KMixin ? other : THROW_CCE(); + if (!(this.name === tmp0_other_with_cast.name)) + return false; + if (!(this.root === tmp0_other_with_cast.root)) + return false; + return true; + } + static new_com_google_protobuf_KMixin_64hc3x_k$(seen1, name, root, serializationConstructorMarker) { + Companion_instance_15; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_2().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.name = ''; + else + $this.name = name; + if (0 === (seen1 & 2)) + $this.root = ''; + else + $this.root = root; + return $this; + } + } + class Companion_16 { + constructor() { + this.targetPath = '/google.protobuf.compiler.Version'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_3(); + } + } + class $serializer_3 { + constructor() { + $serializer_instance_3 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.google.protobuf.compiler.KVersion', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('major', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('minor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('patch', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('suffix', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = 0; + var tmp6_local2 = 0; + var tmp7_local3 = null; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KVersion.new_com_google_protobuf_compiler_KVersion_854mu7_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_b3l6v8_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.major === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.major); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.minor === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.minor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.patch === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.patch); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.suffix === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.suffix); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_b3l6v8_k$(encoder, value instanceof KVersion ? value : THROW_CCE()); + } + } + class KVersion { + constructor(major, minor, patch, suffix) { + Companion_instance_16; + major = major === VOID ? 0 : major; + minor = minor === VOID ? 0 : minor; + patch = patch === VOID ? 0 : patch; + suffix = suffix === VOID ? '' : suffix; + this.major = major; + this.minor = minor; + this.patch = patch; + this.suffix = suffix; + } + get_major_iv37gw_k$() { + return this.major; + } + get_minor_iv8ebw_k$() { + return this.minor; + } + get_patch_iwqsdb_k$() { + return this.patch; + } + get_suffix_jo1v8a_k$() { + return this.suffix; + } + component1_7eebsc_k$() { + return this.major; + } + component2_7eebsb_k$() { + return this.minor; + } + component3_7eebsa_k$() { + return this.patch; + } + component4_7eebs9_k$() { + return this.suffix; + } + copy_yrzm95_k$(major, minor, patch, suffix) { + return new KVersion(major, minor, patch, suffix); + } + copy(major, minor, patch, suffix, $super) { + major = major === VOID ? this.major : major; + minor = minor === VOID ? this.minor : minor; + patch = patch === VOID ? this.patch : patch; + suffix = suffix === VOID ? this.suffix : suffix; + return this.copy_yrzm95_k$(major, minor, patch, suffix); + } + toString() { + return 'KVersion(major=' + this.major + ', minor=' + this.minor + ', patch=' + this.patch + ', suffix=' + this.suffix + ')'; + } + hashCode() { + var result = this.major; + result = imul(result, 31) + this.minor | 0; + result = imul(result, 31) + this.patch | 0; + result = imul(result, 31) + getStringHashCode(this.suffix) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KVersion)) + return false; + var tmp0_other_with_cast = other instanceof KVersion ? other : THROW_CCE(); + if (!(this.major === tmp0_other_with_cast.major)) + return false; + if (!(this.minor === tmp0_other_with_cast.minor)) + return false; + if (!(this.patch === tmp0_other_with_cast.patch)) + return false; + if (!(this.suffix === tmp0_other_with_cast.suffix)) + return false; + return true; + } + static new_com_google_protobuf_compiler_KVersion_854mu7_k$(seen1, major, minor, patch, suffix, serializationConstructorMarker) { + Companion_instance_16; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_3().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.major = 0; + else + $this.major = major; + if (0 === (seen1 & 2)) + $this.minor = 0; + else + $this.minor = minor; + if (0 === (seen1 & 4)) + $this.patch = 0; + else + $this.patch = patch; + if (0 === (seen1 & 8)) + $this.suffix = ''; + else + $this.suffix = suffix; + return $this; + } + } + class Companion_17 { + constructor() { + Companion_instance_17 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer(StringSerializer_getInstance()), null, new ArrayListSerializer($serializer_getInstance_9()), null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/google.protobuf.compiler.CodeGeneratorRequest'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_4(); + } + } + class $serializer_4 { + constructor() { + $serializer_instance_4 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.google.protobuf.compiler.KCodeGeneratorRequest', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('fileToGenerate', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('parameter', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('protoFile', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(15)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('compilerVersion', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_17().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0], StringSerializer_getInstance(), tmp0_cached[2], get_nullable($serializer_getInstance_3())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp9_cached = Companion_getInstance_17().$childSerializers_1; + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp9_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp9_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_3(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp9_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp9_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_3(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KCodeGeneratorRequest.new_com_google_protobuf_compiler_KCodeGeneratorRequest_a45h8g_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_1ad6pt_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_17().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.fileToGenerate, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.fileToGenerate); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.parameter === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.parameter); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !equals(value.protoFile, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 2, tmp2_cached[2], value.protoFile); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.compilerVersion == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_3(), value.compilerVersion); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_1ad6pt_k$(encoder, value instanceof KCodeGeneratorRequest ? value : THROW_CCE()); + } + } + class KCodeGeneratorRequest { + constructor(fileToGenerate, parameter, protoFile, compilerVersion) { + Companion_getInstance_17(); + fileToGenerate = fileToGenerate === VOID ? emptyList() : fileToGenerate; + parameter = parameter === VOID ? '' : parameter; + protoFile = protoFile === VOID ? emptyList() : protoFile; + compilerVersion = compilerVersion === VOID ? null : compilerVersion; + this.fileToGenerate = fileToGenerate; + this.parameter = parameter; + this.protoFile = protoFile; + this.compilerVersion = compilerVersion; + } + get_fileToGenerate_bdzkj9_k$() { + return this.fileToGenerate; + } + get_parameter_u6ydc0_k$() { + return this.parameter; + } + get_protoFile_1et3qd_k$() { + return this.protoFile; + } + get_compilerVersion_yew0c0_k$() { + return this.compilerVersion; + } + component1_7eebsc_k$() { + return this.fileToGenerate; + } + component2_7eebsb_k$() { + return this.parameter; + } + component3_7eebsa_k$() { + return this.protoFile; + } + component4_7eebs9_k$() { + return this.compilerVersion; + } + copy_xcjlxl_k$(fileToGenerate, parameter, protoFile, compilerVersion) { + return new KCodeGeneratorRequest(fileToGenerate, parameter, protoFile, compilerVersion); + } + copy(fileToGenerate, parameter, protoFile, compilerVersion, $super) { + fileToGenerate = fileToGenerate === VOID ? this.fileToGenerate : fileToGenerate; + parameter = parameter === VOID ? this.parameter : parameter; + protoFile = protoFile === VOID ? this.protoFile : protoFile; + compilerVersion = compilerVersion === VOID ? this.compilerVersion : compilerVersion; + return this.copy_xcjlxl_k$(fileToGenerate, parameter, protoFile, compilerVersion); + } + toString() { + return 'KCodeGeneratorRequest(fileToGenerate=' + this.fileToGenerate + ', parameter=' + this.parameter + ', protoFile=' + this.protoFile + ', compilerVersion=' + this.compilerVersion + ')'; + } + hashCode() { + var result = hashCode(this.fileToGenerate); + result = imul(result, 31) + getStringHashCode(this.parameter) | 0; + result = imul(result, 31) + hashCode(this.protoFile) | 0; + result = imul(result, 31) + (this.compilerVersion == null ? 0 : this.compilerVersion.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KCodeGeneratorRequest)) + return false; + var tmp0_other_with_cast = other instanceof KCodeGeneratorRequest ? other : THROW_CCE(); + if (!equals(this.fileToGenerate, tmp0_other_with_cast.fileToGenerate)) + return false; + if (!(this.parameter === tmp0_other_with_cast.parameter)) + return false; + if (!equals(this.protoFile, tmp0_other_with_cast.protoFile)) + return false; + if (!equals(this.compilerVersion, tmp0_other_with_cast.compilerVersion)) + return false; + return true; + } + static new_com_google_protobuf_compiler_KCodeGeneratorRequest_a45h8g_k$(seen1, fileToGenerate, parameter, protoFile, compilerVersion, serializationConstructorMarker) { + Companion_getInstance_17(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_4().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.fileToGenerate = emptyList(); + else + $this.fileToGenerate = fileToGenerate; + if (0 === (seen1 & 2)) + $this.parameter = ''; + else + $this.parameter = parameter; + if (0 === (seen1 & 4)) + $this.protoFile = emptyList(); + else + $this.protoFile = protoFile; + if (0 === (seen1 & 8)) + $this.compilerVersion = null; + else + $this.compilerVersion = compilerVersion; + return $this; + } + } + class Companion_18 { + constructor() { + Companion_instance_18 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KCodeGeneratorResponse$KFeature$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KCodeGeneratorResponse$KFeature$Companion$_anonymous__4sq3l0); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.google.protobuf.compiler.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KFeature_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.google.protobuf.compiler.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KFeature with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_5 { + constructor() { + $serializer_instance_5 = this; + var tmp0_serialDesc = new EnumDescriptor('com.google.protobuf.compiler.KCodeGeneratorResponse.KFeature', 3); + tmp0_serialDesc.addElement_5pzumi_k$('NONE', false); + tmp0_serialDesc.addElement_5pzumi_k$('PROTO3_OPTIONAL', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_1ois4f_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_1ois4f_k$(encoder, value instanceof KFeature ? value : THROW_CCE()); + } + } + class Companion_19 { + constructor() { + this.targetPath = '/google.protobuf.compiler.CodeGeneratorResponse.File'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_6(); + } + } + class $serializer_6 { + constructor() { + $serializer_instance_6 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.google.protobuf.compiler.KCodeGeneratorResponse.KFile', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('name', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('insertionPoint', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('content', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(15)); + tmp0_serialDesc.addElement_5pzumi_k$('generatedCodeInfo', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(16)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_40())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_40(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_40(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KFile.new_com_google_protobuf_compiler_KCodeGeneratorResponse_KFile_h03udk_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_wew3q4_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.name === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.name); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.insertionPoint === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.insertionPoint); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.content === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.content); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.generatedCodeInfo == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_40(), value.generatedCodeInfo); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_wew3q4_k$(encoder, value instanceof KFile ? value : THROW_CCE()); + } + } + class KFeature extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class KFile { + constructor(name, insertionPoint, content, generatedCodeInfo) { + Companion_instance_19; + name = name === VOID ? '' : name; + insertionPoint = insertionPoint === VOID ? '' : insertionPoint; + content = content === VOID ? '' : content; + generatedCodeInfo = generatedCodeInfo === VOID ? null : generatedCodeInfo; + this.name = name; + this.insertionPoint = insertionPoint; + this.content = content; + this.generatedCodeInfo = generatedCodeInfo; + } + get_name_woqyms_k$() { + return this.name; + } + get_insertionPoint_439b8q_k$() { + return this.insertionPoint; + } + get_content_h02jrk_k$() { + return this.content; + } + get_generatedCodeInfo_x5ny9t_k$() { + return this.generatedCodeInfo; + } + component1_7eebsc_k$() { + return this.name; + } + component2_7eebsb_k$() { + return this.insertionPoint; + } + component3_7eebsa_k$() { + return this.content; + } + component4_7eebs9_k$() { + return this.generatedCodeInfo; + } + copy_d4ni3d_k$(name, insertionPoint, content, generatedCodeInfo) { + return new KFile(name, insertionPoint, content, generatedCodeInfo); + } + copy(name, insertionPoint, content, generatedCodeInfo, $super) { + name = name === VOID ? this.name : name; + insertionPoint = insertionPoint === VOID ? this.insertionPoint : insertionPoint; + content = content === VOID ? this.content : content; + generatedCodeInfo = generatedCodeInfo === VOID ? this.generatedCodeInfo : generatedCodeInfo; + return this.copy_d4ni3d_k$(name, insertionPoint, content, generatedCodeInfo); + } + toString() { + return 'KFile(name=' + this.name + ', insertionPoint=' + this.insertionPoint + ', content=' + this.content + ', generatedCodeInfo=' + this.generatedCodeInfo + ')'; + } + hashCode() { + var result = getStringHashCode(this.name); + result = imul(result, 31) + getStringHashCode(this.insertionPoint) | 0; + result = imul(result, 31) + getStringHashCode(this.content) | 0; + result = imul(result, 31) + (this.generatedCodeInfo == null ? 0 : this.generatedCodeInfo.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KFile)) + return false; + var tmp0_other_with_cast = other instanceof KFile ? other : THROW_CCE(); + if (!(this.name === tmp0_other_with_cast.name)) + return false; + if (!(this.insertionPoint === tmp0_other_with_cast.insertionPoint)) + return false; + if (!(this.content === tmp0_other_with_cast.content)) + return false; + if (!equals(this.generatedCodeInfo, tmp0_other_with_cast.generatedCodeInfo)) + return false; + return true; + } + static new_com_google_protobuf_compiler_KCodeGeneratorResponse_KFile_h03udk_k$(seen1, name, insertionPoint, content, generatedCodeInfo, serializationConstructorMarker) { + Companion_instance_19; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_6().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.name = ''; + else + $this.name = name; + if (0 === (seen1 & 2)) + $this.insertionPoint = ''; + else + $this.insertionPoint = insertionPoint; + if (0 === (seen1 & 4)) + $this.content = ''; + else + $this.content = content; + if (0 === (seen1 & 8)) + $this.generatedCodeInfo = null; + else + $this.generatedCodeInfo = generatedCodeInfo; + return $this; + } + } + class Companion_20 { + constructor() { + Companion_instance_20 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, new ArrayListSerializer($serializer_getInstance_6())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/google.protobuf.compiler.CodeGeneratorResponse'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_7(); + } + } + class $serializer_7 { + constructor() { + $serializer_instance_7 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.google.protobuf.compiler.KCodeGeneratorResponse', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('error', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('supportedFeatures', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('file', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(15)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_20().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), LongSerializer_getInstance(), tmp0_cached[2]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = new Long(0, 0); + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp8_cached = Companion_getInstance_20().$childSerializers_1; + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp8_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp8_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KCodeGeneratorResponse.new_com_google_protobuf_compiler_KCodeGeneratorResponse_4sjwio_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_39nuvf_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_20().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.error === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.error); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.supportedFeatures.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.supportedFeatures); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !equals(value.file, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 2, tmp2_cached[2], value.file); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_39nuvf_k$(encoder, value instanceof KCodeGeneratorResponse ? value : THROW_CCE()); + } + } + class KCodeGeneratorResponse { + constructor(error, supportedFeatures, file) { + Companion_getInstance_20(); + error = error === VOID ? '' : error; + supportedFeatures = supportedFeatures === VOID ? new Long(0, 0) : supportedFeatures; + file = file === VOID ? emptyList() : file; + this.error = error; + this.supportedFeatures = supportedFeatures; + this.file = file; + } + get_error_iqzvfj_k$() { + return this.error; + } + get_supportedFeatures_s5p02m_k$() { + return this.supportedFeatures; + } + get_file_wom0n9_k$() { + return this.file; + } + component1_7eebsc_k$() { + return this.error; + } + component2_7eebsb_k$() { + return this.supportedFeatures; + } + component3_7eebsa_k$() { + return this.file; + } + copy_49zrrg_k$(error, supportedFeatures, file) { + return new KCodeGeneratorResponse(error, supportedFeatures, file); + } + copy(error, supportedFeatures, file, $super) { + error = error === VOID ? this.error : error; + supportedFeatures = supportedFeatures === VOID ? this.supportedFeatures : supportedFeatures; + file = file === VOID ? this.file : file; + return this.copy_49zrrg_k$(error, supportedFeatures, file); + } + toString() { + return 'KCodeGeneratorResponse(error=' + this.error + ', supportedFeatures=' + this.supportedFeatures.toString() + ', file=' + this.file + ')'; + } + hashCode() { + var result = getStringHashCode(this.error); + result = imul(result, 31) + this.supportedFeatures.hashCode() | 0; + result = imul(result, 31) + hashCode(this.file) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KCodeGeneratorResponse)) + return false; + var tmp0_other_with_cast = other instanceof KCodeGeneratorResponse ? other : THROW_CCE(); + if (!(this.error === tmp0_other_with_cast.error)) + return false; + if (!this.supportedFeatures.equals(tmp0_other_with_cast.supportedFeatures)) + return false; + if (!equals(this.file, tmp0_other_with_cast.file)) + return false; + return true; + } + static new_com_google_protobuf_compiler_KCodeGeneratorResponse_4sjwio_k$(seen1, error, supportedFeatures, file, serializationConstructorMarker) { + Companion_getInstance_20(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_7().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.error = ''; + else + $this.error = error; + if (0 === (seen1 & 2)) + $this.supportedFeatures = new Long(0, 0); + else + $this.supportedFeatures = supportedFeatures; + if (0 === (seen1 & 4)) + $this.file = emptyList(); + else + $this.file = file; + return $this; + } + } + class Companion_21 { + constructor() { + Companion_instance_21 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer($serializer_getInstance_9())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/google.protobuf.FileDescriptorSet'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_8(); + } + } + class $serializer_8 { + constructor() { + $serializer_instance_8 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.google.protobuf.KFileDescriptorSet', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('file', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_21().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp6_cached = Companion_getInstance_21().$childSerializers_1; + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KFileDescriptorSet.new_com_google_protobuf_KFileDescriptorSet_jc5xw4_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_uvci87_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_21().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.file, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.file); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_uvci87_k$(encoder, value instanceof KFileDescriptorSet ? value : THROW_CCE()); + } + } + class KFileDescriptorSet { + constructor(file) { + Companion_getInstance_21(); + file = file === VOID ? emptyList() : file; + this.file = file; + } + get_file_wom0n9_k$() { + return this.file; + } + component1_7eebsc_k$() { + return this.file; + } + copy_tdmrr1_k$(file) { + return new KFileDescriptorSet(file); + } + copy(file, $super) { + file = file === VOID ? this.file : file; + return this.copy_tdmrr1_k$(file); + } + toString() { + return 'KFileDescriptorSet(file=' + this.file + ')'; + } + hashCode() { + return hashCode(this.file); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KFileDescriptorSet)) + return false; + var tmp0_other_with_cast = other instanceof KFileDescriptorSet ? other : THROW_CCE(); + if (!equals(this.file, tmp0_other_with_cast.file)) + return false; + return true; + } + static new_com_google_protobuf_KFileDescriptorSet_jc5xw4_k$(seen1, file, serializationConstructorMarker) { + Companion_getInstance_21(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_8().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.file = emptyList(); + else + $this.file = file; + return $this; + } + } + class Companion_22 { + constructor() { + Companion_instance_22 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, new ArrayListSerializer(StringSerializer_getInstance()), new ArrayListSerializer(IntSerializer_getInstance()), new ArrayListSerializer(IntSerializer_getInstance()), new ArrayListSerializer($serializer_getInstance_12()), new ArrayListSerializer($serializer_getInstance_19()), new ArrayListSerializer($serializer_getInstance_21()), new ArrayListSerializer($serializer_getInstance_16()), null, null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/google.protobuf.FileDescriptorProto'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_9(); + } + } + class $serializer_9 { + constructor() { + $serializer_instance_9 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.google.protobuf.KFileDescriptorProto', this, 12); + tmp0_serialDesc.addElement_5pzumi_k$('name', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('package', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('dependency', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('publicDependency', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('weakDependency', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('messageType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('enumType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('service', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('extension', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('options', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('sourceCodeInfo', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('syntax', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_22().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), tmp0_cached[2], tmp0_cached[3], tmp0_cached[4], tmp0_cached[5], tmp0_cached[6], tmp0_cached[7], tmp0_cached[8], get_nullable($serializer_getInstance_24()), get_nullable($serializer_getInstance_38()), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_local8 = null; + var tmp13_local9 = null; + var tmp14_local10 = null; + var tmp15_local11 = null; + var tmp16_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp17_cached = Companion_getInstance_22().$childSerializers_1; + if (tmp16_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp16_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp17_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp16_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 3, tmp17_cached[3], tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp16_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 4, tmp17_cached[4], tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp16_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 5, tmp17_cached[5], tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp16_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 6, tmp17_cached[6], tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp16_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 7, tmp17_cached[7], tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp16_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 8, tmp17_cached[8], tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp16_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 9, $serializer_getInstance_24(), tmp13_local9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp16_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 10, $serializer_getInstance_38(), tmp14_local10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + } else + while (tmp1_flag) { + tmp2_index = tmp16_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp16_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp17_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp16_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 3, tmp17_cached[3], tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp16_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 4, tmp17_cached[4], tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp16_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 5, tmp17_cached[5], tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp16_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 6, tmp17_cached[6], tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp16_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 7, tmp17_cached[7], tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp16_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 8, tmp17_cached[8], tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp16_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 9, $serializer_getInstance_24(), tmp13_local9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp16_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 10, $serializer_getInstance_38(), tmp14_local10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp16_input.endStructure_1xqz0n_k$(tmp0_desc); + return KFileDescriptorProto.new_com_google_protobuf_KFileDescriptorProto_dbg8kb_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, null); + } + serialize_iwhdgz_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_22().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.name === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.name); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.package === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.package); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !equals(value.dependency, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 2, tmp2_cached[2], value.dependency); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !equals(value.publicDependency, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 3, tmp2_cached[3], value.publicDependency); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !equals(value.weakDependency, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 4, tmp2_cached[4], value.weakDependency); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !equals(value.messageType, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 5, tmp2_cached[5], value.messageType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !equals(value.enumType, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 6, tmp2_cached[6], value.enumType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !equals(value.service, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 7, tmp2_cached[7], value.service); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !equals(value.extension, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 8, tmp2_cached[8], value.extension); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.options == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 9, $serializer_getInstance_24(), value.options); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.sourceCodeInfo == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 10, $serializer_getInstance_38(), value.sourceCodeInfo); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.syntax === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 11, value.syntax); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_iwhdgz_k$(encoder, value instanceof KFileDescriptorProto ? value : THROW_CCE()); + } + } + class KFileDescriptorProto { + constructor(name, package_0, dependency, publicDependency, weakDependency, messageType, enumType, service, extension, options, sourceCodeInfo, syntax) { + Companion_getInstance_22(); + name = name === VOID ? '' : name; + package_0 = package_0 === VOID ? '' : package_0; + dependency = dependency === VOID ? emptyList() : dependency; + publicDependency = publicDependency === VOID ? emptyList() : publicDependency; + weakDependency = weakDependency === VOID ? emptyList() : weakDependency; + messageType = messageType === VOID ? emptyList() : messageType; + enumType = enumType === VOID ? emptyList() : enumType; + service = service === VOID ? emptyList() : service; + extension = extension === VOID ? emptyList() : extension; + options = options === VOID ? null : options; + sourceCodeInfo = sourceCodeInfo === VOID ? null : sourceCodeInfo; + syntax = syntax === VOID ? '' : syntax; + this.name = name; + this.package = package_0; + this.dependency = dependency; + this.publicDependency = publicDependency; + this.weakDependency = weakDependency; + this.messageType = messageType; + this.enumType = enumType; + this.service = service; + this.extension = extension; + this.options = options; + this.sourceCodeInfo = sourceCodeInfo; + this.syntax = syntax; + } + get_name_woqyms_k$() { + return this.name; + } + get_package_c2y7c3_k$() { + return this.package; + } + get_dependency_klwl64_k$() { + return this.dependency; + } + get_publicDependency_qpzskd_k$() { + return this.publicDependency; + } + get_weakDependency_bz9kvg_k$() { + return this.weakDependency; + } + get_messageType_jm64o_k$() { + return this.messageType; + } + get_enumType_4zbesk_k$() { + return this.enumType; + } + get_service_y2v8i4_k$() { + return this.service; + } + get_extension_1m6fe2_k$() { + return this.extension; + } + get_options_jecmyz_k$() { + return this.options; + } + get_sourceCodeInfo_3jsj29_k$() { + return this.sourceCodeInfo; + } + get_syntax_jqefos_k$() { + return this.syntax; + } + component1_7eebsc_k$() { + return this.name; + } + component2_7eebsb_k$() { + return this.package; + } + component3_7eebsa_k$() { + return this.dependency; + } + component4_7eebs9_k$() { + return this.publicDependency; + } + component5_7eebs8_k$() { + return this.weakDependency; + } + component6_7eebs7_k$() { + return this.messageType; + } + component7_7eebs6_k$() { + return this.enumType; + } + component8_7eebs5_k$() { + return this.service; + } + component9_7eebs4_k$() { + return this.extension; + } + component10_gazzfo_k$() { + return this.options; + } + component11_gazzfn_k$() { + return this.sourceCodeInfo; + } + component12_gazzfm_k$() { + return this.syntax; + } + copy_pmys4t_k$(name, package_0, dependency, publicDependency, weakDependency, messageType, enumType, service, extension, options, sourceCodeInfo, syntax) { + return new KFileDescriptorProto(name, package_0, dependency, publicDependency, weakDependency, messageType, enumType, service, extension, options, sourceCodeInfo, syntax); + } + copy(name, package_0, dependency, publicDependency, weakDependency, messageType, enumType, service, extension, options, sourceCodeInfo, syntax, $super) { + name = name === VOID ? this.name : name; + package_0 = package_0 === VOID ? this.package : package_0; + dependency = dependency === VOID ? this.dependency : dependency; + publicDependency = publicDependency === VOID ? this.publicDependency : publicDependency; + weakDependency = weakDependency === VOID ? this.weakDependency : weakDependency; + messageType = messageType === VOID ? this.messageType : messageType; + enumType = enumType === VOID ? this.enumType : enumType; + service = service === VOID ? this.service : service; + extension = extension === VOID ? this.extension : extension; + options = options === VOID ? this.options : options; + sourceCodeInfo = sourceCodeInfo === VOID ? this.sourceCodeInfo : sourceCodeInfo; + syntax = syntax === VOID ? this.syntax : syntax; + return this.copy_pmys4t_k$(name, package_0, dependency, publicDependency, weakDependency, messageType, enumType, service, extension, options, sourceCodeInfo, syntax); + } + toString() { + return 'KFileDescriptorProto(name=' + this.name + ', package=' + this.package + ', dependency=' + this.dependency + ', publicDependency=' + this.publicDependency + ', weakDependency=' + this.weakDependency + ', messageType=' + this.messageType + ', enumType=' + this.enumType + ', service=' + this.service + ', extension=' + this.extension + ', options=' + this.options + ', sourceCodeInfo=' + this.sourceCodeInfo + ', syntax=' + this.syntax + ')'; + } + hashCode() { + var result = getStringHashCode(this.name); + result = imul(result, 31) + getStringHashCode(this.package) | 0; + result = imul(result, 31) + hashCode(this.dependency) | 0; + result = imul(result, 31) + hashCode(this.publicDependency) | 0; + result = imul(result, 31) + hashCode(this.weakDependency) | 0; + result = imul(result, 31) + hashCode(this.messageType) | 0; + result = imul(result, 31) + hashCode(this.enumType) | 0; + result = imul(result, 31) + hashCode(this.service) | 0; + result = imul(result, 31) + hashCode(this.extension) | 0; + result = imul(result, 31) + (this.options == null ? 0 : this.options.hashCode()) | 0; + result = imul(result, 31) + (this.sourceCodeInfo == null ? 0 : this.sourceCodeInfo.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.syntax) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KFileDescriptorProto)) + return false; + var tmp0_other_with_cast = other instanceof KFileDescriptorProto ? other : THROW_CCE(); + if (!(this.name === tmp0_other_with_cast.name)) + return false; + if (!(this.package === tmp0_other_with_cast.package)) + return false; + if (!equals(this.dependency, tmp0_other_with_cast.dependency)) + return false; + if (!equals(this.publicDependency, tmp0_other_with_cast.publicDependency)) + return false; + if (!equals(this.weakDependency, tmp0_other_with_cast.weakDependency)) + return false; + if (!equals(this.messageType, tmp0_other_with_cast.messageType)) + return false; + if (!equals(this.enumType, tmp0_other_with_cast.enumType)) + return false; + if (!equals(this.service, tmp0_other_with_cast.service)) + return false; + if (!equals(this.extension, tmp0_other_with_cast.extension)) + return false; + if (!equals(this.options, tmp0_other_with_cast.options)) + return false; + if (!equals(this.sourceCodeInfo, tmp0_other_with_cast.sourceCodeInfo)) + return false; + if (!(this.syntax === tmp0_other_with_cast.syntax)) + return false; + return true; + } + static new_com_google_protobuf_KFileDescriptorProto_dbg8kb_k$(seen1, name, package_0, dependency, publicDependency, weakDependency, messageType, enumType, service, extension, options, sourceCodeInfo, syntax, serializationConstructorMarker) { + Companion_getInstance_22(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_9().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.name = ''; + else + $this.name = name; + if (0 === (seen1 & 2)) + $this.package = ''; + else + $this.package = package_0; + if (0 === (seen1 & 4)) + $this.dependency = emptyList(); + else + $this.dependency = dependency; + if (0 === (seen1 & 8)) + $this.publicDependency = emptyList(); + else + $this.publicDependency = publicDependency; + if (0 === (seen1 & 16)) + $this.weakDependency = emptyList(); + else + $this.weakDependency = weakDependency; + if (0 === (seen1 & 32)) + $this.messageType = emptyList(); + else + $this.messageType = messageType; + if (0 === (seen1 & 64)) + $this.enumType = emptyList(); + else + $this.enumType = enumType; + if (0 === (seen1 & 128)) + $this.service = emptyList(); + else + $this.service = service; + if (0 === (seen1 & 256)) + $this.extension = emptyList(); + else + $this.extension = extension; + if (0 === (seen1 & 512)) + $this.options = null; + else + $this.options = options; + if (0 === (seen1 & 1024)) + $this.sourceCodeInfo = null; + else + $this.sourceCodeInfo = sourceCodeInfo; + if (0 === (seen1 & 2048)) + $this.syntax = ''; + else + $this.syntax = syntax; + return $this; + } + } + class Companion_23 { + constructor() { + this.targetPath = '/google.protobuf.DescriptorProto.ExtensionRange'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_10(); + } + } + class $serializer_10 { + constructor() { + $serializer_instance_10 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.google.protobuf.KDescriptorProto.KExtensionRange', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('start', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('end', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('options', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), IntSerializer_getInstance(), get_nullable($serializer_getInstance_13())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = 0; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_13(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_13(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KExtensionRange.new_com_google_protobuf_KDescriptorProto_KExtensionRange_llu2u5_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_533nr0_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.start === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.start); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.end === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.end); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.options == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_13(), value.options); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_533nr0_k$(encoder, value instanceof KExtensionRange ? value : THROW_CCE()); + } + } + class Companion_24 { + constructor() { + this.targetPath = '/google.protobuf.DescriptorProto.ReservedRange'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_11(); + } + } + class $serializer_11 { + constructor() { + $serializer_instance_11 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.google.protobuf.KDescriptorProto.KReservedRange', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('start', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('end', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = 0; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KReservedRange.new_com_google_protobuf_KDescriptorProto_KReservedRange_pqmx6c_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_peyz61_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.start === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.start); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.end === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.end); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_peyz61_k$(encoder, value instanceof KReservedRange ? value : THROW_CCE()); + } + } + class KExtensionRange { + constructor(start, end, options) { + Companion_instance_23; + start = start === VOID ? 0 : start; + end = end === VOID ? 0 : end; + options = options === VOID ? null : options; + this.start = start; + this.end = end; + this.options = options; + } + get_start_iypx6h_k$() { + return this.start; + } + get_end_18j6ha_k$() { + return this.end; + } + get_options_jecmyz_k$() { + return this.options; + } + component1_7eebsc_k$() { + return this.start; + } + component2_7eebsb_k$() { + return this.end; + } + component3_7eebsa_k$() { + return this.options; + } + copy_y2t7c1_k$(start, end, options) { + return new KExtensionRange(start, end, options); + } + copy(start, end, options, $super) { + start = start === VOID ? this.start : start; + end = end === VOID ? this.end : end; + options = options === VOID ? this.options : options; + return this.copy_y2t7c1_k$(start, end, options); + } + toString() { + return 'KExtensionRange(start=' + this.start + ', end=' + this.end + ', options=' + this.options + ')'; + } + hashCode() { + var result = this.start; + result = imul(result, 31) + this.end | 0; + result = imul(result, 31) + (this.options == null ? 0 : this.options.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KExtensionRange)) + return false; + var tmp0_other_with_cast = other instanceof KExtensionRange ? other : THROW_CCE(); + if (!(this.start === tmp0_other_with_cast.start)) + return false; + if (!(this.end === tmp0_other_with_cast.end)) + return false; + if (!equals(this.options, tmp0_other_with_cast.options)) + return false; + return true; + } + static new_com_google_protobuf_KDescriptorProto_KExtensionRange_llu2u5_k$(seen1, start, end, options, serializationConstructorMarker) { + Companion_instance_23; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_10().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.start = 0; + else + $this.start = start; + if (0 === (seen1 & 2)) + $this.end = 0; + else + $this.end = end; + if (0 === (seen1 & 4)) + $this.options = null; + else + $this.options = options; + return $this; + } + } + class KReservedRange { + constructor(start, end) { + Companion_instance_24; + start = start === VOID ? 0 : start; + end = end === VOID ? 0 : end; + this.start = start; + this.end = end; + } + get_start_iypx6h_k$() { + return this.start; + } + get_end_18j6ha_k$() { + return this.end; + } + component1_7eebsc_k$() { + return this.start; + } + component2_7eebsb_k$() { + return this.end; + } + copy_fhtu3_k$(start, end) { + return new KReservedRange(start, end); + } + copy(start, end, $super) { + start = start === VOID ? this.start : start; + end = end === VOID ? this.end : end; + return this.copy_fhtu3_k$(start, end); + } + toString() { + return 'KReservedRange(start=' + this.start + ', end=' + this.end + ')'; + } + hashCode() { + var result = this.start; + result = imul(result, 31) + this.end | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KReservedRange)) + return false; + var tmp0_other_with_cast = other instanceof KReservedRange ? other : THROW_CCE(); + if (!(this.start === tmp0_other_with_cast.start)) + return false; + if (!(this.end === tmp0_other_with_cast.end)) + return false; + return true; + } + static new_com_google_protobuf_KDescriptorProto_KReservedRange_pqmx6c_k$(seen1, start, end, serializationConstructorMarker) { + Companion_instance_24; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_11().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.start = 0; + else + $this.start = start; + if (0 === (seen1 & 2)) + $this.end = 0; + else + $this.end = end; + return $this; + } + } + class Companion_25 { + constructor() { + Companion_instance_25 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, new ArrayListSerializer($serializer_getInstance_16()), new ArrayListSerializer($serializer_getInstance_16()), null, new ArrayListSerializer($serializer_getInstance_19()), new ArrayListSerializer($serializer_getInstance_10()), new ArrayListSerializer($serializer_getInstance_17()), null, new ArrayListSerializer($serializer_getInstance_11()), new ArrayListSerializer(StringSerializer_getInstance())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/google.protobuf.DescriptorProto'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_12(); + } + } + class $serializer_12 { + constructor() { + $serializer_instance_12 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.google.protobuf.KDescriptorProto', this, 10); + tmp0_serialDesc.addElement_5pzumi_k$('name', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('field', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('extension', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('nestedType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('enumType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('extensionRange', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('oneofDecl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('options', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('reservedRange', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('reservedName', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_25().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), tmp0_cached[1], tmp0_cached[2], new ArrayListSerializer($serializer_getInstance_12()), tmp0_cached[4], tmp0_cached[5], tmp0_cached[6], get_nullable($serializer_getInstance_25()), tmp0_cached[8], tmp0_cached[9]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_local8 = null; + var tmp13_local9 = null; + var tmp14_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp15_cached = Companion_getInstance_25().$childSerializers_1; + if (tmp14_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp14_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp15_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp14_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp15_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp14_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 3, new ArrayListSerializer($serializer_getInstance_12()), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp14_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 4, tmp15_cached[4], tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp14_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 5, tmp15_cached[5], tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp14_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 6, tmp15_cached[6], tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_25(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp14_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 8, tmp15_cached[8], tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp14_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 9, tmp15_cached[9], tmp13_local9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + } else + while (tmp1_flag) { + tmp2_index = tmp14_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp14_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp15_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp14_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp15_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp14_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 3, new ArrayListSerializer($serializer_getInstance_12()), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp14_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 4, tmp15_cached[4], tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp14_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 5, tmp15_cached[5], tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp14_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 6, tmp15_cached[6], tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_25(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp14_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 8, tmp15_cached[8], tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp14_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 9, tmp15_cached[9], tmp13_local9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp14_input.endStructure_1xqz0n_k$(tmp0_desc); + return KDescriptorProto.new_com_google_protobuf_KDescriptorProto_p2nx4w_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, null); + } + serialize_8p0c47_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_25().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.name === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.name); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !equals(value.field, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 1, tmp2_cached[1], value.field); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !equals(value.extension, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 2, tmp2_cached[2], value.extension); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !equals(value.nestedType, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 3, new ArrayListSerializer($serializer_getInstance_12()), value.nestedType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !equals(value.enumType, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 4, tmp2_cached[4], value.enumType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !equals(value.extensionRange, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 5, tmp2_cached[5], value.extensionRange); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !equals(value.oneofDecl, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 6, tmp2_cached[6], value.oneofDecl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.options == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 7, $serializer_getInstance_25(), value.options); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !equals(value.reservedRange, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 8, tmp2_cached[8], value.reservedRange); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !equals(value.reservedName, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 9, tmp2_cached[9], value.reservedName); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_8p0c47_k$(encoder, value instanceof KDescriptorProto ? value : THROW_CCE()); + } + } + class KDescriptorProto { + constructor(name, field, extension, nestedType, enumType, extensionRange, oneofDecl, options, reservedRange, reservedName) { + Companion_getInstance_25(); + name = name === VOID ? '' : name; + field = field === VOID ? emptyList() : field; + extension = extension === VOID ? emptyList() : extension; + nestedType = nestedType === VOID ? emptyList() : nestedType; + enumType = enumType === VOID ? emptyList() : enumType; + extensionRange = extensionRange === VOID ? emptyList() : extensionRange; + oneofDecl = oneofDecl === VOID ? emptyList() : oneofDecl; + options = options === VOID ? null : options; + reservedRange = reservedRange === VOID ? emptyList() : reservedRange; + reservedName = reservedName === VOID ? emptyList() : reservedName; + this.name = name; + this.field = field; + this.extension = extension; + this.nestedType = nestedType; + this.enumType = enumType; + this.extensionRange = extensionRange; + this.oneofDecl = oneofDecl; + this.options = options; + this.reservedRange = reservedRange; + this.reservedName = reservedName; + } + get_name_woqyms_k$() { + return this.name; + } + get_field_irdnf5_k$() { + return this.field; + } + get_extension_1m6fe2_k$() { + return this.extension; + } + get_nestedType_yv80bq_k$() { + return this.nestedType; + } + get_enumType_4zbesk_k$() { + return this.enumType; + } + get_extensionRange_y27ozr_k$() { + return this.extensionRange; + } + get_oneofDecl_n019ya_k$() { + return this.oneofDecl; + } + get_options_jecmyz_k$() { + return this.options; + } + get_reservedRange_2zvho4_k$() { + return this.reservedRange; + } + get_reservedName_duh4o4_k$() { + return this.reservedName; + } + component1_7eebsc_k$() { + return this.name; + } + component2_7eebsb_k$() { + return this.field; + } + component3_7eebsa_k$() { + return this.extension; + } + component4_7eebs9_k$() { + return this.nestedType; + } + component5_7eebs8_k$() { + return this.enumType; + } + component6_7eebs7_k$() { + return this.extensionRange; + } + component7_7eebs6_k$() { + return this.oneofDecl; + } + component8_7eebs5_k$() { + return this.options; + } + component9_7eebs4_k$() { + return this.reservedRange; + } + component10_gazzfo_k$() { + return this.reservedName; + } + copy_8i8twx_k$(name, field, extension, nestedType, enumType, extensionRange, oneofDecl, options, reservedRange, reservedName) { + return new KDescriptorProto(name, field, extension, nestedType, enumType, extensionRange, oneofDecl, options, reservedRange, reservedName); + } + copy(name, field, extension, nestedType, enumType, extensionRange, oneofDecl, options, reservedRange, reservedName, $super) { + name = name === VOID ? this.name : name; + field = field === VOID ? this.field : field; + extension = extension === VOID ? this.extension : extension; + nestedType = nestedType === VOID ? this.nestedType : nestedType; + enumType = enumType === VOID ? this.enumType : enumType; + extensionRange = extensionRange === VOID ? this.extensionRange : extensionRange; + oneofDecl = oneofDecl === VOID ? this.oneofDecl : oneofDecl; + options = options === VOID ? this.options : options; + reservedRange = reservedRange === VOID ? this.reservedRange : reservedRange; + reservedName = reservedName === VOID ? this.reservedName : reservedName; + return this.copy_8i8twx_k$(name, field, extension, nestedType, enumType, extensionRange, oneofDecl, options, reservedRange, reservedName); + } + toString() { + return 'KDescriptorProto(name=' + this.name + ', field=' + this.field + ', extension=' + this.extension + ', nestedType=' + this.nestedType + ', enumType=' + this.enumType + ', extensionRange=' + this.extensionRange + ', oneofDecl=' + this.oneofDecl + ', options=' + this.options + ', reservedRange=' + this.reservedRange + ', reservedName=' + this.reservedName + ')'; + } + hashCode() { + var result = getStringHashCode(this.name); + result = imul(result, 31) + hashCode(this.field) | 0; + result = imul(result, 31) + hashCode(this.extension) | 0; + result = imul(result, 31) + hashCode(this.nestedType) | 0; + result = imul(result, 31) + hashCode(this.enumType) | 0; + result = imul(result, 31) + hashCode(this.extensionRange) | 0; + result = imul(result, 31) + hashCode(this.oneofDecl) | 0; + result = imul(result, 31) + (this.options == null ? 0 : this.options.hashCode()) | 0; + result = imul(result, 31) + hashCode(this.reservedRange) | 0; + result = imul(result, 31) + hashCode(this.reservedName) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KDescriptorProto)) + return false; + var tmp0_other_with_cast = other instanceof KDescriptorProto ? other : THROW_CCE(); + if (!(this.name === tmp0_other_with_cast.name)) + return false; + if (!equals(this.field, tmp0_other_with_cast.field)) + return false; + if (!equals(this.extension, tmp0_other_with_cast.extension)) + return false; + if (!equals(this.nestedType, tmp0_other_with_cast.nestedType)) + return false; + if (!equals(this.enumType, tmp0_other_with_cast.enumType)) + return false; + if (!equals(this.extensionRange, tmp0_other_with_cast.extensionRange)) + return false; + if (!equals(this.oneofDecl, tmp0_other_with_cast.oneofDecl)) + return false; + if (!equals(this.options, tmp0_other_with_cast.options)) + return false; + if (!equals(this.reservedRange, tmp0_other_with_cast.reservedRange)) + return false; + if (!equals(this.reservedName, tmp0_other_with_cast.reservedName)) + return false; + return true; + } + static new_com_google_protobuf_KDescriptorProto_p2nx4w_k$(seen1, name, field, extension, nestedType, enumType, extensionRange, oneofDecl, options, reservedRange, reservedName, serializationConstructorMarker) { + Companion_getInstance_25(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_12().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.name = ''; + else + $this.name = name; + if (0 === (seen1 & 2)) + $this.field = emptyList(); + else + $this.field = field; + if (0 === (seen1 & 4)) + $this.extension = emptyList(); + else + $this.extension = extension; + if (0 === (seen1 & 8)) + $this.nestedType = emptyList(); + else + $this.nestedType = nestedType; + if (0 === (seen1 & 16)) + $this.enumType = emptyList(); + else + $this.enumType = enumType; + if (0 === (seen1 & 32)) + $this.extensionRange = emptyList(); + else + $this.extensionRange = extensionRange; + if (0 === (seen1 & 64)) + $this.oneofDecl = emptyList(); + else + $this.oneofDecl = oneofDecl; + if (0 === (seen1 & 128)) + $this.options = null; + else + $this.options = options; + if (0 === (seen1 & 256)) + $this.reservedRange = emptyList(); + else + $this.reservedRange = reservedRange; + if (0 === (seen1 & 512)) + $this.reservedName = emptyList(); + else + $this.reservedName = reservedName; + return $this; + } + } + class Companion_26 { + constructor() { + Companion_instance_26 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer($serializer_getInstance_36())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/google.protobuf.ExtensionRangeOptions'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_13(); + } + } + class $serializer_13 { + constructor() { + $serializer_instance_13 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.google.protobuf.KExtensionRangeOptions', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('uninterpretedOption', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(999)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_26().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp6_cached = Companion_getInstance_26().$childSerializers_1; + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KExtensionRangeOptions.new_com_google_protobuf_KExtensionRangeOptions_tgfea6_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_qunfcg_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_26().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.uninterpretedOption, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.uninterpretedOption); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_qunfcg_k$(encoder, value instanceof KExtensionRangeOptions ? value : THROW_CCE()); + } + } + class KExtensionRangeOptions { + constructor(uninterpretedOption) { + Companion_getInstance_26(); + uninterpretedOption = uninterpretedOption === VOID ? emptyList() : uninterpretedOption; + this.uninterpretedOption = uninterpretedOption; + } + get_uninterpretedOption_xd0u75_k$() { + return this.uninterpretedOption; + } + component1_7eebsc_k$() { + return this.uninterpretedOption; + } + copy_gu7dwu_k$(uninterpretedOption) { + return new KExtensionRangeOptions(uninterpretedOption); + } + copy(uninterpretedOption, $super) { + uninterpretedOption = uninterpretedOption === VOID ? this.uninterpretedOption : uninterpretedOption; + return this.copy_gu7dwu_k$(uninterpretedOption); + } + toString() { + return 'KExtensionRangeOptions(uninterpretedOption=' + this.uninterpretedOption + ')'; + } + hashCode() { + return hashCode(this.uninterpretedOption); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KExtensionRangeOptions)) + return false; + var tmp0_other_with_cast = other instanceof KExtensionRangeOptions ? other : THROW_CCE(); + if (!equals(this.uninterpretedOption, tmp0_other_with_cast.uninterpretedOption)) + return false; + return true; + } + static new_com_google_protobuf_KExtensionRangeOptions_tgfea6_k$(seen1, uninterpretedOption, serializationConstructorMarker) { + Companion_getInstance_26(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_13().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.uninterpretedOption = emptyList(); + else + $this.uninterpretedOption = uninterpretedOption; + return $this; + } + } + class Companion_27 { + constructor() { + Companion_instance_27 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KFieldDescriptorProto$KType$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KFieldDescriptorProto$KType$Companion$_anonymous__3yuois); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_0(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.google.protobuf.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KType_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.google.protobuf.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KType with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_0(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_14 { + constructor() { + $serializer_instance_14 = this; + var tmp0_serialDesc = new EnumDescriptor('com.google.protobuf.KFieldDescriptorProto.KType', 19); + tmp0_serialDesc.addElement_5pzumi_k$('DOUBLE', false); + tmp0_serialDesc.addElement_5pzumi_k$('FLOAT', false); + tmp0_serialDesc.addElement_5pzumi_k$('INT64', false); + tmp0_serialDesc.addElement_5pzumi_k$('UINT64', false); + tmp0_serialDesc.addElement_5pzumi_k$('INT32', false); + tmp0_serialDesc.addElement_5pzumi_k$('FIXED64', false); + tmp0_serialDesc.addElement_5pzumi_k$('FIXED32', false); + tmp0_serialDesc.addElement_5pzumi_k$('BOOL', false); + tmp0_serialDesc.addElement_5pzumi_k$('STRING', false); + tmp0_serialDesc.addElement_5pzumi_k$('GROUP', false); + tmp0_serialDesc.addElement_5pzumi_k$('MESSAGE', false); + tmp0_serialDesc.addElement_5pzumi_k$('BYTES', false); + tmp0_serialDesc.addElement_5pzumi_k$('UINT32', false); + tmp0_serialDesc.addElement_5pzumi_k$('ENUM', false); + tmp0_serialDesc.addElement_5pzumi_k$('SFIXED32', false); + tmp0_serialDesc.addElement_5pzumi_k$('SFIXED64', false); + tmp0_serialDesc.addElement_5pzumi_k$('SINT32', false); + tmp0_serialDesc.addElement_5pzumi_k$('SINT64', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_0()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_ia647t_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_ia647t_k$(encoder, value instanceof KType ? value : THROW_CCE()); + } + } + class Companion_28 { + constructor() { + Companion_instance_28 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KFieldDescriptorProto$KLabel$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KFieldDescriptorProto$KLabel$Companion$_anonymous__txa9zo); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_1(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.google.protobuf.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KLabel_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.google.protobuf.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KLabel with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_1(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_15 { + constructor() { + $serializer_instance_15 = this; + var tmp0_serialDesc = new EnumDescriptor('com.google.protobuf.KFieldDescriptorProto.KLabel', 4); + tmp0_serialDesc.addElement_5pzumi_k$('OPTIONAL', false); + tmp0_serialDesc.addElement_5pzumi_k$('REQUIRED', false); + tmp0_serialDesc.addElement_5pzumi_k$('REPEATED', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_1()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_bdahkv_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_bdahkv_k$(encoder, value instanceof KLabel ? value : THROW_CCE()); + } + } + class KType extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class KLabel extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_29 { + constructor() { + this.targetPath = '/google.protobuf.FieldDescriptorProto'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_16(); + } + } + class $serializer_16 { + constructor() { + $serializer_instance_16 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.google.protobuf.KFieldDescriptorProto', this, 11); + tmp0_serialDesc.addElement_5pzumi_k$('name', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('number', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('label', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('typeName', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('extendee', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('defaultValue', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('oneofIndex', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('jsonName', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('options', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('proto3Optional', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(17)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_28()), BooleanSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = 0; + var tmp6_local2 = 0; + var tmp7_local3 = 0; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = 0; + var tmp12_local8 = null; + var tmp13_local9 = null; + var tmp14_local10 = false; + var tmp15_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp15_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 9, $serializer_getInstance_28(), tmp13_local9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp15_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + } else + while (tmp1_flag) { + tmp2_index = tmp15_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 9, $serializer_getInstance_28(), tmp13_local9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp15_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp15_input.endStructure_1xqz0n_k$(tmp0_desc); + return KFieldDescriptorProto.new_com_google_protobuf_KFieldDescriptorProto_ymrvin_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, null); + } + serialize_7thfc9_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.name === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.name); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.number === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.number); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.label === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.label); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.type === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 3, value.type); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.typeName === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.typeName); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.extendee === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.extendee); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.defaultValue === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.defaultValue); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.oneofIndex === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 7, value.oneofIndex); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.jsonName === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 8, value.jsonName); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.options == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 9, $serializer_getInstance_28(), value.options); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.proto3Optional === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 10, value.proto3Optional); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_7thfc9_k$(encoder, value instanceof KFieldDescriptorProto ? value : THROW_CCE()); + } + } + class KFieldDescriptorProto { + constructor(name, number, label, type, typeName, extendee, defaultValue, oneofIndex, jsonName, options, proto3Optional) { + Companion_instance_29; + name = name === VOID ? '' : name; + number = number === VOID ? 0 : number; + label = label === VOID ? 0 : label; + type = type === VOID ? 0 : type; + typeName = typeName === VOID ? '' : typeName; + extendee = extendee === VOID ? '' : extendee; + defaultValue = defaultValue === VOID ? '' : defaultValue; + oneofIndex = oneofIndex === VOID ? 0 : oneofIndex; + jsonName = jsonName === VOID ? '' : jsonName; + options = options === VOID ? null : options; + proto3Optional = proto3Optional === VOID ? false : proto3Optional; + this.name = name; + this.number = number; + this.label = label; + this.type = type; + this.typeName = typeName; + this.extendee = extendee; + this.defaultValue = defaultValue; + this.oneofIndex = oneofIndex; + this.jsonName = jsonName; + this.options = options; + this.proto3Optional = proto3Optional; + } + get_name_woqyms_k$() { + return this.name; + } + get_number_hay53m_k$() { + return this.number; + } + get_label_iuj8p7_k$() { + return this.label; + } + get_type_wovaf7_k$() { + return this.type; + } + get_typeName_s1eeum_k$() { + return this.typeName; + } + get_extendee_942br7_k$() { + return this.extendee; + } + get_defaultValue_6cv1mv_k$() { + return this.defaultValue; + } + get_oneofIndex_2n2a8y_k$() { + return this.oneofIndex; + } + get_jsonName_6k8rq4_k$() { + return this.jsonName; + } + get_options_jecmyz_k$() { + return this.options; + } + get_proto3Optional_h8far0_k$() { + return this.proto3Optional; + } + labelEnum() { + return Companion_getInstance_28().fromValue(this.label); + } + typeEnum() { + return Companion_getInstance_27().fromValue(this.type); + } + component1_7eebsc_k$() { + return this.name; + } + component2_7eebsb_k$() { + return this.number; + } + component3_7eebsa_k$() { + return this.label; + } + component4_7eebs9_k$() { + return this.type; + } + component5_7eebs8_k$() { + return this.typeName; + } + component6_7eebs7_k$() { + return this.extendee; + } + component7_7eebs6_k$() { + return this.defaultValue; + } + component8_7eebs5_k$() { + return this.oneofIndex; + } + component9_7eebs4_k$() { + return this.jsonName; + } + component10_gazzfo_k$() { + return this.options; + } + component11_gazzfn_k$() { + return this.proto3Optional; + } + copy_q4tfyc_k$(name, number, label, type, typeName, extendee, defaultValue, oneofIndex, jsonName, options, proto3Optional) { + return new KFieldDescriptorProto(name, number, label, type, typeName, extendee, defaultValue, oneofIndex, jsonName, options, proto3Optional); + } + copy(name, number, label, type, typeName, extendee, defaultValue, oneofIndex, jsonName, options, proto3Optional, $super) { + name = name === VOID ? this.name : name; + number = number === VOID ? this.number : number; + label = label === VOID ? this.label : label; + type = type === VOID ? this.type : type; + typeName = typeName === VOID ? this.typeName : typeName; + extendee = extendee === VOID ? this.extendee : extendee; + defaultValue = defaultValue === VOID ? this.defaultValue : defaultValue; + oneofIndex = oneofIndex === VOID ? this.oneofIndex : oneofIndex; + jsonName = jsonName === VOID ? this.jsonName : jsonName; + options = options === VOID ? this.options : options; + proto3Optional = proto3Optional === VOID ? this.proto3Optional : proto3Optional; + return this.copy_q4tfyc_k$(name, number, label, type, typeName, extendee, defaultValue, oneofIndex, jsonName, options, proto3Optional); + } + toString() { + return 'KFieldDescriptorProto(name=' + this.name + ', number=' + this.number + ', label=' + this.label + ', type=' + this.type + ', typeName=' + this.typeName + ', extendee=' + this.extendee + ', defaultValue=' + this.defaultValue + ', oneofIndex=' + this.oneofIndex + ', jsonName=' + this.jsonName + ', options=' + this.options + ', proto3Optional=' + this.proto3Optional + ')'; + } + hashCode() { + var result = getStringHashCode(this.name); + result = imul(result, 31) + this.number | 0; + result = imul(result, 31) + this.label | 0; + result = imul(result, 31) + this.type | 0; + result = imul(result, 31) + getStringHashCode(this.typeName) | 0; + result = imul(result, 31) + getStringHashCode(this.extendee) | 0; + result = imul(result, 31) + getStringHashCode(this.defaultValue) | 0; + result = imul(result, 31) + this.oneofIndex | 0; + result = imul(result, 31) + getStringHashCode(this.jsonName) | 0; + result = imul(result, 31) + (this.options == null ? 0 : this.options.hashCode()) | 0; + result = imul(result, 31) + getBooleanHashCode(this.proto3Optional) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KFieldDescriptorProto)) + return false; + var tmp0_other_with_cast = other instanceof KFieldDescriptorProto ? other : THROW_CCE(); + if (!(this.name === tmp0_other_with_cast.name)) + return false; + if (!(this.number === tmp0_other_with_cast.number)) + return false; + if (!(this.label === tmp0_other_with_cast.label)) + return false; + if (!(this.type === tmp0_other_with_cast.type)) + return false; + if (!(this.typeName === tmp0_other_with_cast.typeName)) + return false; + if (!(this.extendee === tmp0_other_with_cast.extendee)) + return false; + if (!(this.defaultValue === tmp0_other_with_cast.defaultValue)) + return false; + if (!(this.oneofIndex === tmp0_other_with_cast.oneofIndex)) + return false; + if (!(this.jsonName === tmp0_other_with_cast.jsonName)) + return false; + if (!equals(this.options, tmp0_other_with_cast.options)) + return false; + if (!(this.proto3Optional === tmp0_other_with_cast.proto3Optional)) + return false; + return true; + } + static new_com_google_protobuf_KFieldDescriptorProto_ymrvin_k$(seen1, name, number, label, type, typeName, extendee, defaultValue, oneofIndex, jsonName, options, proto3Optional, serializationConstructorMarker) { + Companion_instance_29; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_16().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.name = ''; + else + $this.name = name; + if (0 === (seen1 & 2)) + $this.number = 0; + else + $this.number = number; + if (0 === (seen1 & 4)) + $this.label = 0; + else + $this.label = label; + if (0 === (seen1 & 8)) + $this.type = 0; + else + $this.type = type; + if (0 === (seen1 & 16)) + $this.typeName = ''; + else + $this.typeName = typeName; + if (0 === (seen1 & 32)) + $this.extendee = ''; + else + $this.extendee = extendee; + if (0 === (seen1 & 64)) + $this.defaultValue = ''; + else + $this.defaultValue = defaultValue; + if (0 === (seen1 & 128)) + $this.oneofIndex = 0; + else + $this.oneofIndex = oneofIndex; + if (0 === (seen1 & 256)) + $this.jsonName = ''; + else + $this.jsonName = jsonName; + if (0 === (seen1 & 512)) + $this.options = null; + else + $this.options = options; + if (0 === (seen1 & 1024)) + $this.proto3Optional = false; + else + $this.proto3Optional = proto3Optional; + return $this; + } + } + class Companion_30 { + constructor() { + this.targetPath = '/google.protobuf.OneofDescriptorProto'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_17(); + } + } + class $serializer_17 { + constructor() { + $serializer_instance_17 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.google.protobuf.KOneofDescriptorProto', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('name', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('options', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), get_nullable($serializer_getInstance_29())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_29(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_29(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KOneofDescriptorProto.new_com_google_protobuf_KOneofDescriptorProto_dnd7pu_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_k1vkkm_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.name === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.name); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.options == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_29(), value.options); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_k1vkkm_k$(encoder, value instanceof KOneofDescriptorProto ? value : THROW_CCE()); + } + } + class KOneofDescriptorProto { + constructor(name, options) { + Companion_instance_30; + name = name === VOID ? '' : name; + options = options === VOID ? null : options; + this.name = name; + this.options = options; + } + get_name_woqyms_k$() { + return this.name; + } + get_options_jecmyz_k$() { + return this.options; + } + component1_7eebsc_k$() { + return this.name; + } + component2_7eebsb_k$() { + return this.options; + } + copy_n224gq_k$(name, options) { + return new KOneofDescriptorProto(name, options); + } + copy(name, options, $super) { + name = name === VOID ? this.name : name; + options = options === VOID ? this.options : options; + return this.copy_n224gq_k$(name, options); + } + toString() { + return 'KOneofDescriptorProto(name=' + this.name + ', options=' + this.options + ')'; + } + hashCode() { + var result = getStringHashCode(this.name); + result = imul(result, 31) + (this.options == null ? 0 : this.options.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KOneofDescriptorProto)) + return false; + var tmp0_other_with_cast = other instanceof KOneofDescriptorProto ? other : THROW_CCE(); + if (!(this.name === tmp0_other_with_cast.name)) + return false; + if (!equals(this.options, tmp0_other_with_cast.options)) + return false; + return true; + } + static new_com_google_protobuf_KOneofDescriptorProto_dnd7pu_k$(seen1, name, options, serializationConstructorMarker) { + Companion_instance_30; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_17().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.name = ''; + else + $this.name = name; + if (0 === (seen1 & 2)) + $this.options = null; + else + $this.options = options; + return $this; + } + } + class Companion_31 { + constructor() { + this.targetPath = '/google.protobuf.EnumDescriptorProto.EnumReservedRange'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_18(); + } + } + class $serializer_18 { + constructor() { + $serializer_instance_18 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.google.protobuf.KEnumDescriptorProto.KEnumReservedRange', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('start', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('end', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = 0; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KEnumReservedRange.new_com_google_protobuf_KEnumDescriptorProto_KEnumReservedRange_114trg_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_89s9gp_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.start === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.start); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.end === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.end); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_89s9gp_k$(encoder, value instanceof KEnumReservedRange ? value : THROW_CCE()); + } + } + class KEnumReservedRange { + constructor(start, end) { + Companion_instance_31; + start = start === VOID ? 0 : start; + end = end === VOID ? 0 : end; + this.start = start; + this.end = end; + } + get_start_iypx6h_k$() { + return this.start; + } + get_end_18j6ha_k$() { + return this.end; + } + component1_7eebsc_k$() { + return this.start; + } + component2_7eebsb_k$() { + return this.end; + } + copy_fhtu3_k$(start, end) { + return new KEnumReservedRange(start, end); + } + copy(start, end, $super) { + start = start === VOID ? this.start : start; + end = end === VOID ? this.end : end; + return this.copy_fhtu3_k$(start, end); + } + toString() { + return 'KEnumReservedRange(start=' + this.start + ', end=' + this.end + ')'; + } + hashCode() { + var result = this.start; + result = imul(result, 31) + this.end | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KEnumReservedRange)) + return false; + var tmp0_other_with_cast = other instanceof KEnumReservedRange ? other : THROW_CCE(); + if (!(this.start === tmp0_other_with_cast.start)) + return false; + if (!(this.end === tmp0_other_with_cast.end)) + return false; + return true; + } + static new_com_google_protobuf_KEnumDescriptorProto_KEnumReservedRange_114trg_k$(seen1, start, end, serializationConstructorMarker) { + Companion_instance_31; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_18().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.start = 0; + else + $this.start = start; + if (0 === (seen1 & 2)) + $this.end = 0; + else + $this.end = end; + return $this; + } + } + class Companion_32 { + constructor() { + Companion_instance_32 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, new ArrayListSerializer($serializer_getInstance_20()), null, new ArrayListSerializer($serializer_getInstance_18()), new ArrayListSerializer(StringSerializer_getInstance())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/google.protobuf.EnumDescriptorProto'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_19(); + } + } + class $serializer_19 { + constructor() { + $serializer_instance_19 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.google.protobuf.KEnumDescriptorProto', this, 5); + tmp0_serialDesc.addElement_5pzumi_k$('name', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('value', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('options', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('reservedRange', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('reservedName', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_32().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), tmp0_cached[1], get_nullable($serializer_getInstance_30()), tmp0_cached[3], tmp0_cached[4]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp10_cached = Companion_getInstance_32().$childSerializers_1; + if (tmp9_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp9_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp10_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_30(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp9_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 3, tmp10_cached[3], tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp9_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 4, tmp10_cached[4], tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + } else + while (tmp1_flag) { + tmp2_index = tmp9_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp9_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp10_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_30(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp9_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 3, tmp10_cached[3], tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp9_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 4, tmp10_cached[4], tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp9_input.endStructure_1xqz0n_k$(tmp0_desc); + return KEnumDescriptorProto.new_com_google_protobuf_KEnumDescriptorProto_wbjrxn_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); + } + serialize_tx8r48_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_32().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.name === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.name); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !equals(value.value, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 1, tmp2_cached[1], value.value); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.options == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_30(), value.options); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !equals(value.reservedRange, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 3, tmp2_cached[3], value.reservedRange); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !equals(value.reservedName, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 4, tmp2_cached[4], value.reservedName); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_tx8r48_k$(encoder, value instanceof KEnumDescriptorProto ? value : THROW_CCE()); + } + } + class KEnumDescriptorProto { + constructor(name, value, options, reservedRange, reservedName) { + Companion_getInstance_32(); + name = name === VOID ? '' : name; + value = value === VOID ? emptyList() : value; + options = options === VOID ? null : options; + reservedRange = reservedRange === VOID ? emptyList() : reservedRange; + reservedName = reservedName === VOID ? emptyList() : reservedName; + this.name = name; + this.value = value; + this.options = options; + this.reservedRange = reservedRange; + this.reservedName = reservedName; + } + get_name_woqyms_k$() { + return this.name; + } + get_value_j01efc_k$() { + return this.value; + } + get_options_jecmyz_k$() { + return this.options; + } + get_reservedRange_2zvho4_k$() { + return this.reservedRange; + } + get_reservedName_duh4o4_k$() { + return this.reservedName; + } + component1_7eebsc_k$() { + return this.name; + } + component2_7eebsb_k$() { + return this.value; + } + component3_7eebsa_k$() { + return this.options; + } + component4_7eebs9_k$() { + return this.reservedRange; + } + component5_7eebs8_k$() { + return this.reservedName; + } + copy_yi1q4g_k$(name, value, options, reservedRange, reservedName) { + return new KEnumDescriptorProto(name, value, options, reservedRange, reservedName); + } + copy(name, value, options, reservedRange, reservedName, $super) { + name = name === VOID ? this.name : name; + value = value === VOID ? this.value : value; + options = options === VOID ? this.options : options; + reservedRange = reservedRange === VOID ? this.reservedRange : reservedRange; + reservedName = reservedName === VOID ? this.reservedName : reservedName; + return this.copy_yi1q4g_k$(name, value, options, reservedRange, reservedName); + } + toString() { + return 'KEnumDescriptorProto(name=' + this.name + ', value=' + this.value + ', options=' + this.options + ', reservedRange=' + this.reservedRange + ', reservedName=' + this.reservedName + ')'; + } + hashCode() { + var result = getStringHashCode(this.name); + result = imul(result, 31) + hashCode(this.value) | 0; + result = imul(result, 31) + (this.options == null ? 0 : this.options.hashCode()) | 0; + result = imul(result, 31) + hashCode(this.reservedRange) | 0; + result = imul(result, 31) + hashCode(this.reservedName) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KEnumDescriptorProto)) + return false; + var tmp0_other_with_cast = other instanceof KEnumDescriptorProto ? other : THROW_CCE(); + if (!(this.name === tmp0_other_with_cast.name)) + return false; + if (!equals(this.value, tmp0_other_with_cast.value)) + return false; + if (!equals(this.options, tmp0_other_with_cast.options)) + return false; + if (!equals(this.reservedRange, tmp0_other_with_cast.reservedRange)) + return false; + if (!equals(this.reservedName, tmp0_other_with_cast.reservedName)) + return false; + return true; + } + static new_com_google_protobuf_KEnumDescriptorProto_wbjrxn_k$(seen1, name, value, options, reservedRange, reservedName, serializationConstructorMarker) { + Companion_getInstance_32(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_19().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.name = ''; + else + $this.name = name; + if (0 === (seen1 & 2)) + $this.value = emptyList(); + else + $this.value = value; + if (0 === (seen1 & 4)) + $this.options = null; + else + $this.options = options; + if (0 === (seen1 & 8)) + $this.reservedRange = emptyList(); + else + $this.reservedRange = reservedRange; + if (0 === (seen1 & 16)) + $this.reservedName = emptyList(); + else + $this.reservedName = reservedName; + return $this; + } + } + class Companion_33 { + constructor() { + this.targetPath = '/google.protobuf.EnumValueDescriptorProto'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_20(); + } + } + class $serializer_20 { + constructor() { + $serializer_instance_20 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.google.protobuf.KEnumValueDescriptorProto', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('name', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('number', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('options', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), IntSerializer_getInstance(), get_nullable($serializer_getInstance_31())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = 0; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_31(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_31(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KEnumValueDescriptorProto.new_com_google_protobuf_KEnumValueDescriptorProto_y4lm8m_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_c4a1gz_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.name === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.name); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.number === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.number); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.options == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_31(), value.options); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_c4a1gz_k$(encoder, value instanceof KEnumValueDescriptorProto ? value : THROW_CCE()); + } + } + class KEnumValueDescriptorProto { + constructor(name, number, options) { + Companion_instance_33; + name = name === VOID ? '' : name; + number = number === VOID ? 0 : number; + options = options === VOID ? null : options; + this.name = name; + this.number = number; + this.options = options; + } + get_name_woqyms_k$() { + return this.name; + } + get_number_hay53m_k$() { + return this.number; + } + get_options_jecmyz_k$() { + return this.options; + } + component1_7eebsc_k$() { + return this.name; + } + component2_7eebsb_k$() { + return this.number; + } + component3_7eebsa_k$() { + return this.options; + } + copy_1tubcl_k$(name, number, options) { + return new KEnumValueDescriptorProto(name, number, options); + } + copy(name, number, options, $super) { + name = name === VOID ? this.name : name; + number = number === VOID ? this.number : number; + options = options === VOID ? this.options : options; + return this.copy_1tubcl_k$(name, number, options); + } + toString() { + return 'KEnumValueDescriptorProto(name=' + this.name + ', number=' + this.number + ', options=' + this.options + ')'; + } + hashCode() { + var result = getStringHashCode(this.name); + result = imul(result, 31) + this.number | 0; + result = imul(result, 31) + (this.options == null ? 0 : this.options.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KEnumValueDescriptorProto)) + return false; + var tmp0_other_with_cast = other instanceof KEnumValueDescriptorProto ? other : THROW_CCE(); + if (!(this.name === tmp0_other_with_cast.name)) + return false; + if (!(this.number === tmp0_other_with_cast.number)) + return false; + if (!equals(this.options, tmp0_other_with_cast.options)) + return false; + return true; + } + static new_com_google_protobuf_KEnumValueDescriptorProto_y4lm8m_k$(seen1, name, number, options, serializationConstructorMarker) { + Companion_instance_33; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_20().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.name = ''; + else + $this.name = name; + if (0 === (seen1 & 2)) + $this.number = 0; + else + $this.number = number; + if (0 === (seen1 & 4)) + $this.options = null; + else + $this.options = options; + return $this; + } + } + class Companion_34 { + constructor() { + Companion_instance_34 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, new ArrayListSerializer($serializer_getInstance_22()), null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/google.protobuf.ServiceDescriptorProto'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_21(); + } + } + class $serializer_21 { + constructor() { + $serializer_instance_21 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.google.protobuf.KServiceDescriptorProto', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('name', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('method', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('options', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_34().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), tmp0_cached[1], get_nullable($serializer_getInstance_32())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp8_cached = Companion_getInstance_34().$childSerializers_1; + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp8_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_32(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp8_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_32(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KServiceDescriptorProto.new_com_google_protobuf_KServiceDescriptorProto_mk5e5s_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_827zji_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_34().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.name === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.name); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !equals(value.method, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 1, tmp2_cached[1], value.method); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.options == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_32(), value.options); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_827zji_k$(encoder, value instanceof KServiceDescriptorProto ? value : THROW_CCE()); + } + } + class KServiceDescriptorProto { + constructor(name, method, options) { + Companion_getInstance_34(); + name = name === VOID ? '' : name; + method = method === VOID ? emptyList() : method; + options = options === VOID ? null : options; + this.name = name; + this.method = method; + this.options = options; + } + get_name_woqyms_k$() { + return this.name; + } + get_method_gl8esq_k$() { + return this.method; + } + get_options_jecmyz_k$() { + return this.options; + } + component1_7eebsc_k$() { + return this.name; + } + component2_7eebsb_k$() { + return this.method; + } + component3_7eebsa_k$() { + return this.options; + } + copy_lekprp_k$(name, method, options) { + return new KServiceDescriptorProto(name, method, options); + } + copy(name, method, options, $super) { + name = name === VOID ? this.name : name; + method = method === VOID ? this.method : method; + options = options === VOID ? this.options : options; + return this.copy_lekprp_k$(name, method, options); + } + toString() { + return 'KServiceDescriptorProto(name=' + this.name + ', method=' + this.method + ', options=' + this.options + ')'; + } + hashCode() { + var result = getStringHashCode(this.name); + result = imul(result, 31) + hashCode(this.method) | 0; + result = imul(result, 31) + (this.options == null ? 0 : this.options.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KServiceDescriptorProto)) + return false; + var tmp0_other_with_cast = other instanceof KServiceDescriptorProto ? other : THROW_CCE(); + if (!(this.name === tmp0_other_with_cast.name)) + return false; + if (!equals(this.method, tmp0_other_with_cast.method)) + return false; + if (!equals(this.options, tmp0_other_with_cast.options)) + return false; + return true; + } + static new_com_google_protobuf_KServiceDescriptorProto_mk5e5s_k$(seen1, name, method, options, serializationConstructorMarker) { + Companion_getInstance_34(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_21().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.name = ''; + else + $this.name = name; + if (0 === (seen1 & 2)) + $this.method = emptyList(); + else + $this.method = method; + if (0 === (seen1 & 4)) + $this.options = null; + else + $this.options = options; + return $this; + } + } + class Companion_35 { + constructor() { + this.targetPath = '/google.protobuf.MethodDescriptorProto'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_22(); + } + } + class $serializer_22 { + constructor() { + $serializer_instance_22 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.google.protobuf.KMethodDescriptorProto', this, 6); + tmp0_serialDesc.addElement_5pzumi_k$('name', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('inputType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('outputType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('options', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('clientStreaming', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('serverStreaming', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_34()), BooleanSerializer_getInstance(), BooleanSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = false; + var tmp9_local5 = false; + var tmp10_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp10_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_34(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp10_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp10_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + } else + while (tmp1_flag) { + tmp2_index = tmp10_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_34(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp10_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp10_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp10_input.endStructure_1xqz0n_k$(tmp0_desc); + return KMethodDescriptorProto.new_com_google_protobuf_KMethodDescriptorProto_ua8tm2_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); + } + serialize_lhf0yw_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.name === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.name); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.inputType === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.inputType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.outputType === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.outputType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.options == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_34(), value.options); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.clientStreaming === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 4, value.clientStreaming); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.serverStreaming === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 5, value.serverStreaming); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_lhf0yw_k$(encoder, value instanceof KMethodDescriptorProto ? value : THROW_CCE()); + } + } + class KMethodDescriptorProto { + constructor(name, inputType, outputType, options, clientStreaming, serverStreaming) { + Companion_instance_35; + name = name === VOID ? '' : name; + inputType = inputType === VOID ? '' : inputType; + outputType = outputType === VOID ? '' : outputType; + options = options === VOID ? null : options; + clientStreaming = clientStreaming === VOID ? false : clientStreaming; + serverStreaming = serverStreaming === VOID ? false : serverStreaming; + this.name = name; + this.inputType = inputType; + this.outputType = outputType; + this.options = options; + this.clientStreaming = clientStreaming; + this.serverStreaming = serverStreaming; + } + get_name_woqyms_k$() { + return this.name; + } + get_inputType_yaat1h_k$() { + return this.inputType; + } + get_outputType_tsg410_k$() { + return this.outputType; + } + get_options_jecmyz_k$() { + return this.options; + } + get_clientStreaming_xy9clu_k$() { + return this.clientStreaming; + } + get_serverStreaming_k8fone_k$() { + return this.serverStreaming; + } + component1_7eebsc_k$() { + return this.name; + } + component2_7eebsb_k$() { + return this.inputType; + } + component3_7eebsa_k$() { + return this.outputType; + } + component4_7eebs9_k$() { + return this.options; + } + component5_7eebs8_k$() { + return this.clientStreaming; + } + component6_7eebs7_k$() { + return this.serverStreaming; + } + copy_e6z3po_k$(name, inputType, outputType, options, clientStreaming, serverStreaming) { + return new KMethodDescriptorProto(name, inputType, outputType, options, clientStreaming, serverStreaming); + } + copy(name, inputType, outputType, options, clientStreaming, serverStreaming, $super) { + name = name === VOID ? this.name : name; + inputType = inputType === VOID ? this.inputType : inputType; + outputType = outputType === VOID ? this.outputType : outputType; + options = options === VOID ? this.options : options; + clientStreaming = clientStreaming === VOID ? this.clientStreaming : clientStreaming; + serverStreaming = serverStreaming === VOID ? this.serverStreaming : serverStreaming; + return this.copy_e6z3po_k$(name, inputType, outputType, options, clientStreaming, serverStreaming); + } + toString() { + return 'KMethodDescriptorProto(name=' + this.name + ', inputType=' + this.inputType + ', outputType=' + this.outputType + ', options=' + this.options + ', clientStreaming=' + this.clientStreaming + ', serverStreaming=' + this.serverStreaming + ')'; + } + hashCode() { + var result = getStringHashCode(this.name); + result = imul(result, 31) + getStringHashCode(this.inputType) | 0; + result = imul(result, 31) + getStringHashCode(this.outputType) | 0; + result = imul(result, 31) + (this.options == null ? 0 : this.options.hashCode()) | 0; + result = imul(result, 31) + getBooleanHashCode(this.clientStreaming) | 0; + result = imul(result, 31) + getBooleanHashCode(this.serverStreaming) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KMethodDescriptorProto)) + return false; + var tmp0_other_with_cast = other instanceof KMethodDescriptorProto ? other : THROW_CCE(); + if (!(this.name === tmp0_other_with_cast.name)) + return false; + if (!(this.inputType === tmp0_other_with_cast.inputType)) + return false; + if (!(this.outputType === tmp0_other_with_cast.outputType)) + return false; + if (!equals(this.options, tmp0_other_with_cast.options)) + return false; + if (!(this.clientStreaming === tmp0_other_with_cast.clientStreaming)) + return false; + if (!(this.serverStreaming === tmp0_other_with_cast.serverStreaming)) + return false; + return true; + } + static new_com_google_protobuf_KMethodDescriptorProto_ua8tm2_k$(seen1, name, inputType, outputType, options, clientStreaming, serverStreaming, serializationConstructorMarker) { + Companion_instance_35; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_22().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.name = ''; + else + $this.name = name; + if (0 === (seen1 & 2)) + $this.inputType = ''; + else + $this.inputType = inputType; + if (0 === (seen1 & 4)) + $this.outputType = ''; + else + $this.outputType = outputType; + if (0 === (seen1 & 8)) + $this.options = null; + else + $this.options = options; + if (0 === (seen1 & 16)) + $this.clientStreaming = false; + else + $this.clientStreaming = clientStreaming; + if (0 === (seen1 & 32)) + $this.serverStreaming = false; + else + $this.serverStreaming = serverStreaming; + return $this; + } + } + class Companion_36 { + constructor() { + Companion_instance_36 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KFileOptions$KOptimizeMode$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KFileOptions$KOptimizeMode$Companion$_anonymous__emz6en); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_2(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.google.protobuf.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KOptimizeMode_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.google.protobuf.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KOptimizeMode with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_2(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_23 { + constructor() { + $serializer_instance_23 = this; + var tmp0_serialDesc = new EnumDescriptor('com.google.protobuf.KFileOptions.KOptimizeMode', 4); + tmp0_serialDesc.addElement_5pzumi_k$('SPEED', false); + tmp0_serialDesc.addElement_5pzumi_k$('CODE_SIZE', false); + tmp0_serialDesc.addElement_5pzumi_k$('LITE_RUNTIME', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_2()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_gx0z6g_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_gx0z6g_k$(encoder, value instanceof KOptimizeMode ? value : THROW_CCE()); + } + } + class KOptimizeMode extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_37 { + constructor() { + Companion_instance_37 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, new ArrayListSerializer($serializer_getInstance_36())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/google.protobuf.FileOptions'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_24(); + } + } + class $serializer_24 { + constructor() { + $serializer_instance_24 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.google.protobuf.KFileOptions', this, 21); + tmp0_serialDesc.addElement_5pzumi_k$('javaPackage', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('javaOuterClassname', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('javaMultipleFiles', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('javaGenerateEqualsAndHash', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(20)); + tmp0_serialDesc.addElement_5pzumi_k$('javaStringCheckUtf8', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(27)); + tmp0_serialDesc.addElement_5pzumi_k$('optimizeFor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('goPackage', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('ccGenericServices', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(16)); + tmp0_serialDesc.addElement_5pzumi_k$('javaGenericServices', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(17)); + tmp0_serialDesc.addElement_5pzumi_k$('pyGenericServices', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(18)); + tmp0_serialDesc.addElement_5pzumi_k$('phpGenericServices', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(42)); + tmp0_serialDesc.addElement_5pzumi_k$('deprecated', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(23)); + tmp0_serialDesc.addElement_5pzumi_k$('ccEnableArenas', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(31)); + tmp0_serialDesc.addElement_5pzumi_k$('objcClassPrefix', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(36)); + tmp0_serialDesc.addElement_5pzumi_k$('csharpNamespace', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(37)); + tmp0_serialDesc.addElement_5pzumi_k$('swiftPrefix', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(39)); + tmp0_serialDesc.addElement_5pzumi_k$('phpClassPrefix', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(40)); + tmp0_serialDesc.addElement_5pzumi_k$('phpNamespace', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(41)); + tmp0_serialDesc.addElement_5pzumi_k$('phpMetadataNamespace', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(44)); + tmp0_serialDesc.addElement_5pzumi_k$('rubyPackage', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(45)); + tmp0_serialDesc.addElement_5pzumi_k$('uninterpretedOption', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(999)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_37().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), tmp0_cached[20]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = false; + var tmp7_local3 = false; + var tmp8_local4 = false; + var tmp9_local5 = 0; + var tmp10_local6 = null; + var tmp11_local7 = false; + var tmp12_local8 = false; + var tmp13_local9 = false; + var tmp14_local10 = false; + var tmp15_local11 = false; + var tmp16_local12 = false; + var tmp17_local13 = null; + var tmp18_local14 = null; + var tmp19_local15 = null; + var tmp20_local16 = null; + var tmp21_local17 = null; + var tmp22_local18 = null; + var tmp23_local19 = null; + var tmp24_local20 = null; + var tmp25_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp26_cached = Companion_getInstance_37().$childSerializers_1; + if (tmp25_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp25_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp25_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp25_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp25_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp25_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp25_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp25_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp25_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp25_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp25_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp25_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp25_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + tmp16_local12 = tmp25_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + tmp17_local13 = tmp25_input.decodeStringElement_3oenpg_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + tmp18_local14 = tmp25_input.decodeStringElement_3oenpg_k$(tmp0_desc, 14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + tmp19_local15 = tmp25_input.decodeStringElement_3oenpg_k$(tmp0_desc, 15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + tmp20_local16 = tmp25_input.decodeStringElement_3oenpg_k$(tmp0_desc, 16); + tmp3_bitMask0 = tmp3_bitMask0 | 65536; + tmp21_local17 = tmp25_input.decodeStringElement_3oenpg_k$(tmp0_desc, 17); + tmp3_bitMask0 = tmp3_bitMask0 | 131072; + tmp22_local18 = tmp25_input.decodeStringElement_3oenpg_k$(tmp0_desc, 18); + tmp3_bitMask0 = tmp3_bitMask0 | 262144; + tmp23_local19 = tmp25_input.decodeStringElement_3oenpg_k$(tmp0_desc, 19); + tmp3_bitMask0 = tmp3_bitMask0 | 524288; + tmp24_local20 = tmp25_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 20, tmp26_cached[20], tmp24_local20); + tmp3_bitMask0 = tmp3_bitMask0 | 1048576; + } else + while (tmp1_flag) { + tmp2_index = tmp25_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp25_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp25_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp25_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp25_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp25_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp25_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp25_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp25_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp25_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp25_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp25_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp25_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + case 12: + tmp16_local12 = tmp25_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + break; + case 13: + tmp17_local13 = tmp25_input.decodeStringElement_3oenpg_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + break; + case 14: + tmp18_local14 = tmp25_input.decodeStringElement_3oenpg_k$(tmp0_desc, 14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + break; + case 15: + tmp19_local15 = tmp25_input.decodeStringElement_3oenpg_k$(tmp0_desc, 15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + break; + case 16: + tmp20_local16 = tmp25_input.decodeStringElement_3oenpg_k$(tmp0_desc, 16); + tmp3_bitMask0 = tmp3_bitMask0 | 65536; + break; + case 17: + tmp21_local17 = tmp25_input.decodeStringElement_3oenpg_k$(tmp0_desc, 17); + tmp3_bitMask0 = tmp3_bitMask0 | 131072; + break; + case 18: + tmp22_local18 = tmp25_input.decodeStringElement_3oenpg_k$(tmp0_desc, 18); + tmp3_bitMask0 = tmp3_bitMask0 | 262144; + break; + case 19: + tmp23_local19 = tmp25_input.decodeStringElement_3oenpg_k$(tmp0_desc, 19); + tmp3_bitMask0 = tmp3_bitMask0 | 524288; + break; + case 20: + tmp24_local20 = tmp25_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 20, tmp26_cached[20], tmp24_local20); + tmp3_bitMask0 = tmp3_bitMask0 | 1048576; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp25_input.endStructure_1xqz0n_k$(tmp0_desc); + return KFileOptions.new_com_google_protobuf_KFileOptions_ve2so7_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, tmp18_local14, tmp19_local15, tmp20_local16, tmp21_local17, tmp22_local18, tmp23_local19, tmp24_local20, null); + } + serialize_qqe9oy_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_37().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.javaPackage === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.javaPackage); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.javaOuterClassname === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.javaOuterClassname); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.javaMultipleFiles === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 2, value.javaMultipleFiles); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.javaGenerateEqualsAndHash === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 3, value.javaGenerateEqualsAndHash); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.javaStringCheckUtf8 === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 4, value.javaStringCheckUtf8); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.optimizeFor === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 5, value.optimizeFor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.goPackage === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.goPackage); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.ccGenericServices === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 7, value.ccGenericServices); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.javaGenericServices === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 8, value.javaGenericServices); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.pyGenericServices === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 9, value.pyGenericServices); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.phpGenericServices === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 10, value.phpGenericServices); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.deprecated === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 11, value.deprecated); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !(value.ccEnableArenas === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 12, value.ccEnableArenas); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 13) ? true : !(value.objcClassPrefix === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 13, value.objcClassPrefix); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 14) ? true : !(value.csharpNamespace === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 14, value.csharpNamespace); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 15) ? true : !(value.swiftPrefix === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 15, value.swiftPrefix); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 16) ? true : !(value.phpClassPrefix === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 16, value.phpClassPrefix); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 17) ? true : !(value.phpNamespace === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 17, value.phpNamespace); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 18) ? true : !(value.phpMetadataNamespace === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 18, value.phpMetadataNamespace); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 19) ? true : !(value.rubyPackage === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 19, value.rubyPackage); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 20) ? true : !equals(value.uninterpretedOption, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 20, tmp2_cached[20], value.uninterpretedOption); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_qqe9oy_k$(encoder, value instanceof KFileOptions ? value : THROW_CCE()); + } + } + class KFileOptions { + constructor(javaPackage, javaOuterClassname, javaMultipleFiles, javaGenerateEqualsAndHash, javaStringCheckUtf8, optimizeFor, goPackage, ccGenericServices, javaGenericServices, pyGenericServices, phpGenericServices, deprecated, ccEnableArenas, objcClassPrefix, csharpNamespace, swiftPrefix, phpClassPrefix, phpNamespace, phpMetadataNamespace, rubyPackage, uninterpretedOption) { + Companion_getInstance_37(); + javaPackage = javaPackage === VOID ? '' : javaPackage; + javaOuterClassname = javaOuterClassname === VOID ? '' : javaOuterClassname; + javaMultipleFiles = javaMultipleFiles === VOID ? false : javaMultipleFiles; + javaGenerateEqualsAndHash = javaGenerateEqualsAndHash === VOID ? false : javaGenerateEqualsAndHash; + javaStringCheckUtf8 = javaStringCheckUtf8 === VOID ? false : javaStringCheckUtf8; + optimizeFor = optimizeFor === VOID ? 0 : optimizeFor; + goPackage = goPackage === VOID ? '' : goPackage; + ccGenericServices = ccGenericServices === VOID ? false : ccGenericServices; + javaGenericServices = javaGenericServices === VOID ? false : javaGenericServices; + pyGenericServices = pyGenericServices === VOID ? false : pyGenericServices; + phpGenericServices = phpGenericServices === VOID ? false : phpGenericServices; + deprecated = deprecated === VOID ? false : deprecated; + ccEnableArenas = ccEnableArenas === VOID ? false : ccEnableArenas; + objcClassPrefix = objcClassPrefix === VOID ? '' : objcClassPrefix; + csharpNamespace = csharpNamespace === VOID ? '' : csharpNamespace; + swiftPrefix = swiftPrefix === VOID ? '' : swiftPrefix; + phpClassPrefix = phpClassPrefix === VOID ? '' : phpClassPrefix; + phpNamespace = phpNamespace === VOID ? '' : phpNamespace; + phpMetadataNamespace = phpMetadataNamespace === VOID ? '' : phpMetadataNamespace; + rubyPackage = rubyPackage === VOID ? '' : rubyPackage; + uninterpretedOption = uninterpretedOption === VOID ? emptyList() : uninterpretedOption; + this.javaPackage = javaPackage; + this.javaOuterClassname = javaOuterClassname; + this.javaMultipleFiles = javaMultipleFiles; + this.javaGenerateEqualsAndHash = javaGenerateEqualsAndHash; + this.javaStringCheckUtf8 = javaStringCheckUtf8; + this.optimizeFor = optimizeFor; + this.goPackage = goPackage; + this.ccGenericServices = ccGenericServices; + this.javaGenericServices = javaGenericServices; + this.pyGenericServices = pyGenericServices; + this.phpGenericServices = phpGenericServices; + this.deprecated = deprecated; + this.ccEnableArenas = ccEnableArenas; + this.objcClassPrefix = objcClassPrefix; + this.csharpNamespace = csharpNamespace; + this.swiftPrefix = swiftPrefix; + this.phpClassPrefix = phpClassPrefix; + this.phpNamespace = phpNamespace; + this.phpMetadataNamespace = phpMetadataNamespace; + this.rubyPackage = rubyPackage; + this.uninterpretedOption = uninterpretedOption; + } + get_javaPackage_m2wg9n_k$() { + return this.javaPackage; + } + get_javaOuterClassname_wvg8vh_k$() { + return this.javaOuterClassname; + } + get_javaMultipleFiles_yyd670_k$() { + return this.javaMultipleFiles; + } + get_javaGenerateEqualsAndHash_s9u0fa_k$() { + return this.javaGenerateEqualsAndHash; + } + get_javaStringCheckUtf8_vt9i77_k$() { + return this.javaStringCheckUtf8; + } + get_optimizeFor_nco2il_k$() { + return this.optimizeFor; + } + get_goPackage_13o711_k$() { + return this.goPackage; + } + get_ccGenericServices_i0m7ys_k$() { + return this.ccGenericServices; + } + get_javaGenericServices_rtsn86_k$() { + return this.javaGenericServices; + } + get_pyGenericServices_g5lwmb_k$() { + return this.pyGenericServices; + } + get_phpGenericServices_vgs8fu_k$() { + return this.phpGenericServices; + } + get_deprecated_nv0664_k$() { + return this.deprecated; + } + get_ccEnableArenas_ty8c7c_k$() { + return this.ccEnableArenas; + } + get_objcClassPrefix_68jdez_k$() { + return this.objcClassPrefix; + } + get_csharpNamespace_y1q4ol_k$() { + return this.csharpNamespace; + } + get_swiftPrefix_q3azvg_k$() { + return this.swiftPrefix; + } + get_phpClassPrefix_ifwsbp_k$() { + return this.phpClassPrefix; + } + get_phpNamespace_vuitbo_k$() { + return this.phpNamespace; + } + get_phpMetadataNamespace_rljs6b_k$() { + return this.phpMetadataNamespace; + } + get_rubyPackage_ehoxpf_k$() { + return this.rubyPackage; + } + get_uninterpretedOption_xd0u75_k$() { + return this.uninterpretedOption; + } + optimizeForEnum() { + return Companion_getInstance_36().fromValue(this.optimizeFor); + } + component1_7eebsc_k$() { + return this.javaPackage; + } + component2_7eebsb_k$() { + return this.javaOuterClassname; + } + component3_7eebsa_k$() { + return this.javaMultipleFiles; + } + component4_7eebs9_k$() { + return this.javaGenerateEqualsAndHash; + } + component5_7eebs8_k$() { + return this.javaStringCheckUtf8; + } + component6_7eebs7_k$() { + return this.optimizeFor; + } + component7_7eebs6_k$() { + return this.goPackage; + } + component8_7eebs5_k$() { + return this.ccGenericServices; + } + component9_7eebs4_k$() { + return this.javaGenericServices; + } + component10_gazzfo_k$() { + return this.pyGenericServices; + } + component11_gazzfn_k$() { + return this.phpGenericServices; + } + component12_gazzfm_k$() { + return this.deprecated; + } + component13_gazzfl_k$() { + return this.ccEnableArenas; + } + component14_gazzfk_k$() { + return this.objcClassPrefix; + } + component15_gazzfj_k$() { + return this.csharpNamespace; + } + component16_gazzfi_k$() { + return this.swiftPrefix; + } + component17_gazzfh_k$() { + return this.phpClassPrefix; + } + component18_gazzfg_k$() { + return this.phpNamespace; + } + component19_gazzff_k$() { + return this.phpMetadataNamespace; + } + component20_gazzet_k$() { + return this.rubyPackage; + } + component21_gazzes_k$() { + return this.uninterpretedOption; + } + copy_ll1upx_k$(javaPackage, javaOuterClassname, javaMultipleFiles, javaGenerateEqualsAndHash, javaStringCheckUtf8, optimizeFor, goPackage, ccGenericServices, javaGenericServices, pyGenericServices, phpGenericServices, deprecated, ccEnableArenas, objcClassPrefix, csharpNamespace, swiftPrefix, phpClassPrefix, phpNamespace, phpMetadataNamespace, rubyPackage, uninterpretedOption) { + return new KFileOptions(javaPackage, javaOuterClassname, javaMultipleFiles, javaGenerateEqualsAndHash, javaStringCheckUtf8, optimizeFor, goPackage, ccGenericServices, javaGenericServices, pyGenericServices, phpGenericServices, deprecated, ccEnableArenas, objcClassPrefix, csharpNamespace, swiftPrefix, phpClassPrefix, phpNamespace, phpMetadataNamespace, rubyPackage, uninterpretedOption); + } + copy(javaPackage, javaOuterClassname, javaMultipleFiles, javaGenerateEqualsAndHash, javaStringCheckUtf8, optimizeFor, goPackage, ccGenericServices, javaGenericServices, pyGenericServices, phpGenericServices, deprecated, ccEnableArenas, objcClassPrefix, csharpNamespace, swiftPrefix, phpClassPrefix, phpNamespace, phpMetadataNamespace, rubyPackage, uninterpretedOption, $super) { + javaPackage = javaPackage === VOID ? this.javaPackage : javaPackage; + javaOuterClassname = javaOuterClassname === VOID ? this.javaOuterClassname : javaOuterClassname; + javaMultipleFiles = javaMultipleFiles === VOID ? this.javaMultipleFiles : javaMultipleFiles; + javaGenerateEqualsAndHash = javaGenerateEqualsAndHash === VOID ? this.javaGenerateEqualsAndHash : javaGenerateEqualsAndHash; + javaStringCheckUtf8 = javaStringCheckUtf8 === VOID ? this.javaStringCheckUtf8 : javaStringCheckUtf8; + optimizeFor = optimizeFor === VOID ? this.optimizeFor : optimizeFor; + goPackage = goPackage === VOID ? this.goPackage : goPackage; + ccGenericServices = ccGenericServices === VOID ? this.ccGenericServices : ccGenericServices; + javaGenericServices = javaGenericServices === VOID ? this.javaGenericServices : javaGenericServices; + pyGenericServices = pyGenericServices === VOID ? this.pyGenericServices : pyGenericServices; + phpGenericServices = phpGenericServices === VOID ? this.phpGenericServices : phpGenericServices; + deprecated = deprecated === VOID ? this.deprecated : deprecated; + ccEnableArenas = ccEnableArenas === VOID ? this.ccEnableArenas : ccEnableArenas; + objcClassPrefix = objcClassPrefix === VOID ? this.objcClassPrefix : objcClassPrefix; + csharpNamespace = csharpNamespace === VOID ? this.csharpNamespace : csharpNamespace; + swiftPrefix = swiftPrefix === VOID ? this.swiftPrefix : swiftPrefix; + phpClassPrefix = phpClassPrefix === VOID ? this.phpClassPrefix : phpClassPrefix; + phpNamespace = phpNamespace === VOID ? this.phpNamespace : phpNamespace; + phpMetadataNamespace = phpMetadataNamespace === VOID ? this.phpMetadataNamespace : phpMetadataNamespace; + rubyPackage = rubyPackage === VOID ? this.rubyPackage : rubyPackage; + uninterpretedOption = uninterpretedOption === VOID ? this.uninterpretedOption : uninterpretedOption; + return this.copy_ll1upx_k$(javaPackage, javaOuterClassname, javaMultipleFiles, javaGenerateEqualsAndHash, javaStringCheckUtf8, optimizeFor, goPackage, ccGenericServices, javaGenericServices, pyGenericServices, phpGenericServices, deprecated, ccEnableArenas, objcClassPrefix, csharpNamespace, swiftPrefix, phpClassPrefix, phpNamespace, phpMetadataNamespace, rubyPackage, uninterpretedOption); + } + toString() { + return 'KFileOptions(javaPackage=' + this.javaPackage + ', javaOuterClassname=' + this.javaOuterClassname + ', javaMultipleFiles=' + this.javaMultipleFiles + ', javaGenerateEqualsAndHash=' + this.javaGenerateEqualsAndHash + ', javaStringCheckUtf8=' + this.javaStringCheckUtf8 + ', optimizeFor=' + this.optimizeFor + ', goPackage=' + this.goPackage + ', ccGenericServices=' + this.ccGenericServices + ', javaGenericServices=' + this.javaGenericServices + ', pyGenericServices=' + this.pyGenericServices + ', phpGenericServices=' + this.phpGenericServices + ', deprecated=' + this.deprecated + ', ccEnableArenas=' + this.ccEnableArenas + ', objcClassPrefix=' + this.objcClassPrefix + ', csharpNamespace=' + this.csharpNamespace + ', swiftPrefix=' + this.swiftPrefix + ', phpClassPrefix=' + this.phpClassPrefix + ', phpNamespace=' + this.phpNamespace + ', phpMetadataNamespace=' + this.phpMetadataNamespace + ', rubyPackage=' + this.rubyPackage + ', uninterpretedOption=' + this.uninterpretedOption + ')'; + } + hashCode() { + var result = getStringHashCode(this.javaPackage); + result = imul(result, 31) + getStringHashCode(this.javaOuterClassname) | 0; + result = imul(result, 31) + getBooleanHashCode(this.javaMultipleFiles) | 0; + result = imul(result, 31) + getBooleanHashCode(this.javaGenerateEqualsAndHash) | 0; + result = imul(result, 31) + getBooleanHashCode(this.javaStringCheckUtf8) | 0; + result = imul(result, 31) + this.optimizeFor | 0; + result = imul(result, 31) + getStringHashCode(this.goPackage) | 0; + result = imul(result, 31) + getBooleanHashCode(this.ccGenericServices) | 0; + result = imul(result, 31) + getBooleanHashCode(this.javaGenericServices) | 0; + result = imul(result, 31) + getBooleanHashCode(this.pyGenericServices) | 0; + result = imul(result, 31) + getBooleanHashCode(this.phpGenericServices) | 0; + result = imul(result, 31) + getBooleanHashCode(this.deprecated) | 0; + result = imul(result, 31) + getBooleanHashCode(this.ccEnableArenas) | 0; + result = imul(result, 31) + getStringHashCode(this.objcClassPrefix) | 0; + result = imul(result, 31) + getStringHashCode(this.csharpNamespace) | 0; + result = imul(result, 31) + getStringHashCode(this.swiftPrefix) | 0; + result = imul(result, 31) + getStringHashCode(this.phpClassPrefix) | 0; + result = imul(result, 31) + getStringHashCode(this.phpNamespace) | 0; + result = imul(result, 31) + getStringHashCode(this.phpMetadataNamespace) | 0; + result = imul(result, 31) + getStringHashCode(this.rubyPackage) | 0; + result = imul(result, 31) + hashCode(this.uninterpretedOption) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KFileOptions)) + return false; + var tmp0_other_with_cast = other instanceof KFileOptions ? other : THROW_CCE(); + if (!(this.javaPackage === tmp0_other_with_cast.javaPackage)) + return false; + if (!(this.javaOuterClassname === tmp0_other_with_cast.javaOuterClassname)) + return false; + if (!(this.javaMultipleFiles === tmp0_other_with_cast.javaMultipleFiles)) + return false; + if (!(this.javaGenerateEqualsAndHash === tmp0_other_with_cast.javaGenerateEqualsAndHash)) + return false; + if (!(this.javaStringCheckUtf8 === tmp0_other_with_cast.javaStringCheckUtf8)) + return false; + if (!(this.optimizeFor === tmp0_other_with_cast.optimizeFor)) + return false; + if (!(this.goPackage === tmp0_other_with_cast.goPackage)) + return false; + if (!(this.ccGenericServices === tmp0_other_with_cast.ccGenericServices)) + return false; + if (!(this.javaGenericServices === tmp0_other_with_cast.javaGenericServices)) + return false; + if (!(this.pyGenericServices === tmp0_other_with_cast.pyGenericServices)) + return false; + if (!(this.phpGenericServices === tmp0_other_with_cast.phpGenericServices)) + return false; + if (!(this.deprecated === tmp0_other_with_cast.deprecated)) + return false; + if (!(this.ccEnableArenas === tmp0_other_with_cast.ccEnableArenas)) + return false; + if (!(this.objcClassPrefix === tmp0_other_with_cast.objcClassPrefix)) + return false; + if (!(this.csharpNamespace === tmp0_other_with_cast.csharpNamespace)) + return false; + if (!(this.swiftPrefix === tmp0_other_with_cast.swiftPrefix)) + return false; + if (!(this.phpClassPrefix === tmp0_other_with_cast.phpClassPrefix)) + return false; + if (!(this.phpNamespace === tmp0_other_with_cast.phpNamespace)) + return false; + if (!(this.phpMetadataNamespace === tmp0_other_with_cast.phpMetadataNamespace)) + return false; + if (!(this.rubyPackage === tmp0_other_with_cast.rubyPackage)) + return false; + if (!equals(this.uninterpretedOption, tmp0_other_with_cast.uninterpretedOption)) + return false; + return true; + } + static new_com_google_protobuf_KFileOptions_ve2so7_k$(seen1, javaPackage, javaOuterClassname, javaMultipleFiles, javaGenerateEqualsAndHash, javaStringCheckUtf8, optimizeFor, goPackage, ccGenericServices, javaGenericServices, pyGenericServices, phpGenericServices, deprecated, ccEnableArenas, objcClassPrefix, csharpNamespace, swiftPrefix, phpClassPrefix, phpNamespace, phpMetadataNamespace, rubyPackage, uninterpretedOption, serializationConstructorMarker) { + Companion_getInstance_37(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_24().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.javaPackage = ''; + else + $this.javaPackage = javaPackage; + if (0 === (seen1 & 2)) + $this.javaOuterClassname = ''; + else + $this.javaOuterClassname = javaOuterClassname; + if (0 === (seen1 & 4)) + $this.javaMultipleFiles = false; + else + $this.javaMultipleFiles = javaMultipleFiles; + if (0 === (seen1 & 8)) + $this.javaGenerateEqualsAndHash = false; + else + $this.javaGenerateEqualsAndHash = javaGenerateEqualsAndHash; + if (0 === (seen1 & 16)) + $this.javaStringCheckUtf8 = false; + else + $this.javaStringCheckUtf8 = javaStringCheckUtf8; + if (0 === (seen1 & 32)) + $this.optimizeFor = 0; + else + $this.optimizeFor = optimizeFor; + if (0 === (seen1 & 64)) + $this.goPackage = ''; + else + $this.goPackage = goPackage; + if (0 === (seen1 & 128)) + $this.ccGenericServices = false; + else + $this.ccGenericServices = ccGenericServices; + if (0 === (seen1 & 256)) + $this.javaGenericServices = false; + else + $this.javaGenericServices = javaGenericServices; + if (0 === (seen1 & 512)) + $this.pyGenericServices = false; + else + $this.pyGenericServices = pyGenericServices; + if (0 === (seen1 & 1024)) + $this.phpGenericServices = false; + else + $this.phpGenericServices = phpGenericServices; + if (0 === (seen1 & 2048)) + $this.deprecated = false; + else + $this.deprecated = deprecated; + if (0 === (seen1 & 4096)) + $this.ccEnableArenas = false; + else + $this.ccEnableArenas = ccEnableArenas; + if (0 === (seen1 & 8192)) + $this.objcClassPrefix = ''; + else + $this.objcClassPrefix = objcClassPrefix; + if (0 === (seen1 & 16384)) + $this.csharpNamespace = ''; + else + $this.csharpNamespace = csharpNamespace; + if (0 === (seen1 & 32768)) + $this.swiftPrefix = ''; + else + $this.swiftPrefix = swiftPrefix; + if (0 === (seen1 & 65536)) + $this.phpClassPrefix = ''; + else + $this.phpClassPrefix = phpClassPrefix; + if (0 === (seen1 & 131072)) + $this.phpNamespace = ''; + else + $this.phpNamespace = phpNamespace; + if (0 === (seen1 & 262144)) + $this.phpMetadataNamespace = ''; + else + $this.phpMetadataNamespace = phpMetadataNamespace; + if (0 === (seen1 & 524288)) + $this.rubyPackage = ''; + else + $this.rubyPackage = rubyPackage; + if (0 === (seen1 & 1048576)) + $this.uninterpretedOption = emptyList(); + else + $this.uninterpretedOption = uninterpretedOption; + return $this; + } + } + class Companion_38 { + constructor() { + Companion_instance_38 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, null, new ArrayListSerializer($serializer_getInstance_36())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/google.protobuf.MessageOptions'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_25(); + } + } + class $serializer_25 { + constructor() { + $serializer_instance_25 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.google.protobuf.KMessageOptions', this, 5); + tmp0_serialDesc.addElement_5pzumi_k$('messageSetWireFormat', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('noStandardDescriptorAccessor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('deprecated', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('mapEntry', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('uninterpretedOption', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(999)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_38().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), tmp0_cached[4]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = false; + var tmp5_local1 = false; + var tmp6_local2 = false; + var tmp7_local3 = false; + var tmp8_local4 = null; + var tmp9_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp10_cached = Companion_getInstance_38().$childSerializers_1; + if (tmp9_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp9_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp9_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp9_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp9_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp9_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 4, tmp10_cached[4], tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + } else + while (tmp1_flag) { + tmp2_index = tmp9_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp9_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp9_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp9_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp9_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp9_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 4, tmp10_cached[4], tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp9_input.endStructure_1xqz0n_k$(tmp0_desc); + return KMessageOptions.new_com_google_protobuf_KMessageOptions_9f355_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); + } + serialize_d663hb_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_38().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.messageSetWireFormat === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 0, value.messageSetWireFormat); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.noStandardDescriptorAccessor === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 1, value.noStandardDescriptorAccessor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.deprecated === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 2, value.deprecated); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.mapEntry === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 3, value.mapEntry); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !equals(value.uninterpretedOption, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 4, tmp2_cached[4], value.uninterpretedOption); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_d663hb_k$(encoder, value instanceof KMessageOptions ? value : THROW_CCE()); + } + } + class KMessageOptions { + constructor(messageSetWireFormat, noStandardDescriptorAccessor, deprecated, mapEntry, uninterpretedOption) { + Companion_getInstance_38(); + messageSetWireFormat = messageSetWireFormat === VOID ? false : messageSetWireFormat; + noStandardDescriptorAccessor = noStandardDescriptorAccessor === VOID ? false : noStandardDescriptorAccessor; + deprecated = deprecated === VOID ? false : deprecated; + mapEntry = mapEntry === VOID ? false : mapEntry; + uninterpretedOption = uninterpretedOption === VOID ? emptyList() : uninterpretedOption; + this.messageSetWireFormat = messageSetWireFormat; + this.noStandardDescriptorAccessor = noStandardDescriptorAccessor; + this.deprecated = deprecated; + this.mapEntry = mapEntry; + this.uninterpretedOption = uninterpretedOption; + } + get_messageSetWireFormat_r05me8_k$() { + return this.messageSetWireFormat; + } + get_noStandardDescriptorAccessor_zegbkz_k$() { + return this.noStandardDescriptorAccessor; + } + get_deprecated_nv0664_k$() { + return this.deprecated; + } + get_mapEntry_t8pxa9_k$() { + return this.mapEntry; + } + get_uninterpretedOption_xd0u75_k$() { + return this.uninterpretedOption; + } + component1_7eebsc_k$() { + return this.messageSetWireFormat; + } + component2_7eebsb_k$() { + return this.noStandardDescriptorAccessor; + } + component3_7eebsa_k$() { + return this.deprecated; + } + component4_7eebs9_k$() { + return this.mapEntry; + } + component5_7eebs8_k$() { + return this.uninterpretedOption; + } + copy_x0fr0y_k$(messageSetWireFormat, noStandardDescriptorAccessor, deprecated, mapEntry, uninterpretedOption) { + return new KMessageOptions(messageSetWireFormat, noStandardDescriptorAccessor, deprecated, mapEntry, uninterpretedOption); + } + copy(messageSetWireFormat, noStandardDescriptorAccessor, deprecated, mapEntry, uninterpretedOption, $super) { + messageSetWireFormat = messageSetWireFormat === VOID ? this.messageSetWireFormat : messageSetWireFormat; + noStandardDescriptorAccessor = noStandardDescriptorAccessor === VOID ? this.noStandardDescriptorAccessor : noStandardDescriptorAccessor; + deprecated = deprecated === VOID ? this.deprecated : deprecated; + mapEntry = mapEntry === VOID ? this.mapEntry : mapEntry; + uninterpretedOption = uninterpretedOption === VOID ? this.uninterpretedOption : uninterpretedOption; + return this.copy_x0fr0y_k$(messageSetWireFormat, noStandardDescriptorAccessor, deprecated, mapEntry, uninterpretedOption); + } + toString() { + return 'KMessageOptions(messageSetWireFormat=' + this.messageSetWireFormat + ', noStandardDescriptorAccessor=' + this.noStandardDescriptorAccessor + ', deprecated=' + this.deprecated + ', mapEntry=' + this.mapEntry + ', uninterpretedOption=' + this.uninterpretedOption + ')'; + } + hashCode() { + var result = getBooleanHashCode(this.messageSetWireFormat); + result = imul(result, 31) + getBooleanHashCode(this.noStandardDescriptorAccessor) | 0; + result = imul(result, 31) + getBooleanHashCode(this.deprecated) | 0; + result = imul(result, 31) + getBooleanHashCode(this.mapEntry) | 0; + result = imul(result, 31) + hashCode(this.uninterpretedOption) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KMessageOptions)) + return false; + var tmp0_other_with_cast = other instanceof KMessageOptions ? other : THROW_CCE(); + if (!(this.messageSetWireFormat === tmp0_other_with_cast.messageSetWireFormat)) + return false; + if (!(this.noStandardDescriptorAccessor === tmp0_other_with_cast.noStandardDescriptorAccessor)) + return false; + if (!(this.deprecated === tmp0_other_with_cast.deprecated)) + return false; + if (!(this.mapEntry === tmp0_other_with_cast.mapEntry)) + return false; + if (!equals(this.uninterpretedOption, tmp0_other_with_cast.uninterpretedOption)) + return false; + return true; + } + static new_com_google_protobuf_KMessageOptions_9f355_k$(seen1, messageSetWireFormat, noStandardDescriptorAccessor, deprecated, mapEntry, uninterpretedOption, serializationConstructorMarker) { + Companion_getInstance_38(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_25().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.messageSetWireFormat = false; + else + $this.messageSetWireFormat = messageSetWireFormat; + if (0 === (seen1 & 2)) + $this.noStandardDescriptorAccessor = false; + else + $this.noStandardDescriptorAccessor = noStandardDescriptorAccessor; + if (0 === (seen1 & 4)) + $this.deprecated = false; + else + $this.deprecated = deprecated; + if (0 === (seen1 & 8)) + $this.mapEntry = false; + else + $this.mapEntry = mapEntry; + if (0 === (seen1 & 16)) + $this.uninterpretedOption = emptyList(); + else + $this.uninterpretedOption = uninterpretedOption; + return $this; + } + } + class Companion_39 { + constructor() { + Companion_instance_39 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KFieldOptions$KCType$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KFieldOptions$KCType$Companion$_anonymous__kgjga0); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_3(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.google.protobuf.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KCType_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.google.protobuf.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KCType with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_3(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_26 { + constructor() { + $serializer_instance_26 = this; + var tmp0_serialDesc = new EnumDescriptor('com.google.protobuf.KFieldOptions.KCType', 4); + tmp0_serialDesc.addElement_5pzumi_k$('STRING', false); + tmp0_serialDesc.addElement_5pzumi_k$('CORD', false); + tmp0_serialDesc.addElement_5pzumi_k$('STRING_PIECE', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_3()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_wtzbgl_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_wtzbgl_k$(encoder, value instanceof KCType ? value : THROW_CCE()); + } + } + class Companion_40 { + constructor() { + Companion_instance_40 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KFieldOptions$KJSType$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KFieldOptions$KJSType$Companion$_anonymous__2z0v5i); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_4(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.google.protobuf.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KJSType_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.google.protobuf.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KJSType with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_4(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_27 { + constructor() { + $serializer_instance_27 = this; + var tmp0_serialDesc = new EnumDescriptor('com.google.protobuf.KFieldOptions.KJSType', 4); + tmp0_serialDesc.addElement_5pzumi_k$('JS_NORMAL', false); + tmp0_serialDesc.addElement_5pzumi_k$('JS_STRING', false); + tmp0_serialDesc.addElement_5pzumi_k$('JS_NUMBER', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_4()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_xz1n21_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_xz1n21_k$(encoder, value instanceof KJSType ? value : THROW_CCE()); + } + } + class KCType extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class KJSType extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_41 { + constructor() { + Companion_instance_41 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, null, null, null, null, new ArrayListSerializer($serializer_getInstance_36())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/google.protobuf.FieldOptions'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_28(); + } + } + class $serializer_28 { + constructor() { + $serializer_instance_28 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.google.protobuf.KFieldOptions', this, 8); + tmp0_serialDesc.addElement_5pzumi_k$('ctype', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('packed', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('jstype', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('lazy', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('unverifiedLazy', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(15)); + tmp0_serialDesc.addElement_5pzumi_k$('deprecated', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('weak', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('uninterpretedOption', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(999)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_41().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), BooleanSerializer_getInstance(), IntSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), tmp0_cached[7]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = false; + var tmp6_local2 = 0; + var tmp7_local3 = false; + var tmp8_local4 = false; + var tmp9_local5 = false; + var tmp10_local6 = false; + var tmp11_local7 = null; + var tmp12_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp13_cached = Companion_getInstance_41().$childSerializers_1; + if (tmp12_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp12_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp12_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp12_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp12_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp12_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp12_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 7, tmp13_cached[7], tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + } else + while (tmp1_flag) { + tmp2_index = tmp12_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp12_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp12_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp12_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp12_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp12_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp12_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 7, tmp13_cached[7], tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp12_input.endStructure_1xqz0n_k$(tmp0_desc); + return KFieldOptions.new_com_google_protobuf_KFieldOptions_hdhte5_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null); + } + serialize_jza6em_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_41().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.ctype === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.ctype); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.packed === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 1, value.packed); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.jstype === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.jstype); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.lazy === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 3, value.lazy); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.unverifiedLazy === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 4, value.unverifiedLazy); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.deprecated === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 5, value.deprecated); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.weak === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 6, value.weak); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !equals(value.uninterpretedOption, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 7, tmp2_cached[7], value.uninterpretedOption); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_jza6em_k$(encoder, value instanceof KFieldOptions ? value : THROW_CCE()); + } + } + class KFieldOptions { + constructor(ctype, packed, jstype, lazy, unverifiedLazy, deprecated, weak, uninterpretedOption) { + Companion_getInstance_41(); + ctype = ctype === VOID ? 0 : ctype; + packed = packed === VOID ? false : packed; + jstype = jstype === VOID ? 0 : jstype; + lazy = lazy === VOID ? false : lazy; + unverifiedLazy = unverifiedLazy === VOID ? false : unverifiedLazy; + deprecated = deprecated === VOID ? false : deprecated; + weak = weak === VOID ? false : weak; + uninterpretedOption = uninterpretedOption === VOID ? emptyList() : uninterpretedOption; + this.ctype = ctype; + this.packed = packed; + this.jstype = jstype; + this.lazy = lazy; + this.unverifiedLazy = unverifiedLazy; + this.deprecated = deprecated; + this.weak = weak; + this.uninterpretedOption = uninterpretedOption; + } + get_ctype_ipxpf8_k$() { + return this.ctype; + } + get_packed_hxvatd_k$() { + return this.packed; + } + get_jstype_fdt0jw_k$() { + return this.jstype; + } + get_lazy_wopozh_k$() { + return this.lazy; + } + get_unverifiedLazy_akba82_k$() { + return this.unverifiedLazy; + } + get_deprecated_nv0664_k$() { + return this.deprecated; + } + get_weak_wows75_k$() { + return this.weak; + } + get_uninterpretedOption_xd0u75_k$() { + return this.uninterpretedOption; + } + ctypeEnum() { + return Companion_getInstance_39().fromValue(this.ctype); + } + jstypeEnum() { + return Companion_getInstance_40().fromValue(this.jstype); + } + component1_7eebsc_k$() { + return this.ctype; + } + component2_7eebsb_k$() { + return this.packed; + } + component3_7eebsa_k$() { + return this.jstype; + } + component4_7eebs9_k$() { + return this.lazy; + } + component5_7eebs8_k$() { + return this.unverifiedLazy; + } + component6_7eebs7_k$() { + return this.deprecated; + } + component7_7eebs6_k$() { + return this.weak; + } + component8_7eebs5_k$() { + return this.uninterpretedOption; + } + copy_b8mhlf_k$(ctype, packed, jstype, lazy, unverifiedLazy, deprecated, weak, uninterpretedOption) { + return new KFieldOptions(ctype, packed, jstype, lazy, unverifiedLazy, deprecated, weak, uninterpretedOption); + } + copy(ctype, packed, jstype, lazy, unverifiedLazy, deprecated, weak, uninterpretedOption, $super) { + ctype = ctype === VOID ? this.ctype : ctype; + packed = packed === VOID ? this.packed : packed; + jstype = jstype === VOID ? this.jstype : jstype; + lazy = lazy === VOID ? this.lazy : lazy; + unverifiedLazy = unverifiedLazy === VOID ? this.unverifiedLazy : unverifiedLazy; + deprecated = deprecated === VOID ? this.deprecated : deprecated; + weak = weak === VOID ? this.weak : weak; + uninterpretedOption = uninterpretedOption === VOID ? this.uninterpretedOption : uninterpretedOption; + return this.copy_b8mhlf_k$(ctype, packed, jstype, lazy, unverifiedLazy, deprecated, weak, uninterpretedOption); + } + toString() { + return 'KFieldOptions(ctype=' + this.ctype + ', packed=' + this.packed + ', jstype=' + this.jstype + ', lazy=' + this.lazy + ', unverifiedLazy=' + this.unverifiedLazy + ', deprecated=' + this.deprecated + ', weak=' + this.weak + ', uninterpretedOption=' + this.uninterpretedOption + ')'; + } + hashCode() { + var result = this.ctype; + result = imul(result, 31) + getBooleanHashCode(this.packed) | 0; + result = imul(result, 31) + this.jstype | 0; + result = imul(result, 31) + getBooleanHashCode(this.lazy) | 0; + result = imul(result, 31) + getBooleanHashCode(this.unverifiedLazy) | 0; + result = imul(result, 31) + getBooleanHashCode(this.deprecated) | 0; + result = imul(result, 31) + getBooleanHashCode(this.weak) | 0; + result = imul(result, 31) + hashCode(this.uninterpretedOption) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KFieldOptions)) + return false; + var tmp0_other_with_cast = other instanceof KFieldOptions ? other : THROW_CCE(); + if (!(this.ctype === tmp0_other_with_cast.ctype)) + return false; + if (!(this.packed === tmp0_other_with_cast.packed)) + return false; + if (!(this.jstype === tmp0_other_with_cast.jstype)) + return false; + if (!(this.lazy === tmp0_other_with_cast.lazy)) + return false; + if (!(this.unverifiedLazy === tmp0_other_with_cast.unverifiedLazy)) + return false; + if (!(this.deprecated === tmp0_other_with_cast.deprecated)) + return false; + if (!(this.weak === tmp0_other_with_cast.weak)) + return false; + if (!equals(this.uninterpretedOption, tmp0_other_with_cast.uninterpretedOption)) + return false; + return true; + } + static new_com_google_protobuf_KFieldOptions_hdhte5_k$(seen1, ctype, packed, jstype, lazy, unverifiedLazy, deprecated, weak, uninterpretedOption, serializationConstructorMarker) { + Companion_getInstance_41(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_28().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.ctype = 0; + else + $this.ctype = ctype; + if (0 === (seen1 & 2)) + $this.packed = false; + else + $this.packed = packed; + if (0 === (seen1 & 4)) + $this.jstype = 0; + else + $this.jstype = jstype; + if (0 === (seen1 & 8)) + $this.lazy = false; + else + $this.lazy = lazy; + if (0 === (seen1 & 16)) + $this.unverifiedLazy = false; + else + $this.unverifiedLazy = unverifiedLazy; + if (0 === (seen1 & 32)) + $this.deprecated = false; + else + $this.deprecated = deprecated; + if (0 === (seen1 & 64)) + $this.weak = false; + else + $this.weak = weak; + if (0 === (seen1 & 128)) + $this.uninterpretedOption = emptyList(); + else + $this.uninterpretedOption = uninterpretedOption; + return $this; + } + } + class Companion_42 { + constructor() { + Companion_instance_42 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer($serializer_getInstance_36())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/google.protobuf.OneofOptions'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_29(); + } + } + class $serializer_29 { + constructor() { + $serializer_instance_29 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.google.protobuf.KOneofOptions', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('uninterpretedOption', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(999)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_42().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp6_cached = Companion_getInstance_42().$childSerializers_1; + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KOneofOptions.new_com_google_protobuf_KOneofOptions_5ghqvh_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_aium0b_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_42().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.uninterpretedOption, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.uninterpretedOption); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_aium0b_k$(encoder, value instanceof KOneofOptions ? value : THROW_CCE()); + } + } + class KOneofOptions { + constructor(uninterpretedOption) { + Companion_getInstance_42(); + uninterpretedOption = uninterpretedOption === VOID ? emptyList() : uninterpretedOption; + this.uninterpretedOption = uninterpretedOption; + } + get_uninterpretedOption_xd0u75_k$() { + return this.uninterpretedOption; + } + component1_7eebsc_k$() { + return this.uninterpretedOption; + } + copy_gu7dwu_k$(uninterpretedOption) { + return new KOneofOptions(uninterpretedOption); + } + copy(uninterpretedOption, $super) { + uninterpretedOption = uninterpretedOption === VOID ? this.uninterpretedOption : uninterpretedOption; + return this.copy_gu7dwu_k$(uninterpretedOption); + } + toString() { + return 'KOneofOptions(uninterpretedOption=' + this.uninterpretedOption + ')'; + } + hashCode() { + return hashCode(this.uninterpretedOption); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KOneofOptions)) + return false; + var tmp0_other_with_cast = other instanceof KOneofOptions ? other : THROW_CCE(); + if (!equals(this.uninterpretedOption, tmp0_other_with_cast.uninterpretedOption)) + return false; + return true; + } + static new_com_google_protobuf_KOneofOptions_5ghqvh_k$(seen1, uninterpretedOption, serializationConstructorMarker) { + Companion_getInstance_42(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_29().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.uninterpretedOption = emptyList(); + else + $this.uninterpretedOption = uninterpretedOption; + return $this; + } + } + class Companion_43 { + constructor() { + Companion_instance_43 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, new ArrayListSerializer($serializer_getInstance_36())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/google.protobuf.EnumOptions'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_30(); + } + } + class $serializer_30 { + constructor() { + $serializer_instance_30 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.google.protobuf.KEnumOptions', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('allowAlias', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('deprecated', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('uninterpretedOption', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(999)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_43().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), tmp0_cached[2]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = false; + var tmp5_local1 = false; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp8_cached = Companion_getInstance_43().$childSerializers_1; + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp8_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp8_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KEnumOptions.new_com_google_protobuf_KEnumOptions_aefl0x_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_53ria5_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_43().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.allowAlias === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 0, value.allowAlias); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.deprecated === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 1, value.deprecated); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !equals(value.uninterpretedOption, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 2, tmp2_cached[2], value.uninterpretedOption); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_53ria5_k$(encoder, value instanceof KEnumOptions ? value : THROW_CCE()); + } + } + class KEnumOptions { + constructor(allowAlias, deprecated, uninterpretedOption) { + Companion_getInstance_43(); + allowAlias = allowAlias === VOID ? false : allowAlias; + deprecated = deprecated === VOID ? false : deprecated; + uninterpretedOption = uninterpretedOption === VOID ? emptyList() : uninterpretedOption; + this.allowAlias = allowAlias; + this.deprecated = deprecated; + this.uninterpretedOption = uninterpretedOption; + } + get_allowAlias_s7efio_k$() { + return this.allowAlias; + } + get_deprecated_nv0664_k$() { + return this.deprecated; + } + get_uninterpretedOption_xd0u75_k$() { + return this.uninterpretedOption; + } + component1_7eebsc_k$() { + return this.allowAlias; + } + component2_7eebsb_k$() { + return this.deprecated; + } + component3_7eebsa_k$() { + return this.uninterpretedOption; + } + copy_dxx4c2_k$(allowAlias, deprecated, uninterpretedOption) { + return new KEnumOptions(allowAlias, deprecated, uninterpretedOption); + } + copy(allowAlias, deprecated, uninterpretedOption, $super) { + allowAlias = allowAlias === VOID ? this.allowAlias : allowAlias; + deprecated = deprecated === VOID ? this.deprecated : deprecated; + uninterpretedOption = uninterpretedOption === VOID ? this.uninterpretedOption : uninterpretedOption; + return this.copy_dxx4c2_k$(allowAlias, deprecated, uninterpretedOption); + } + toString() { + return 'KEnumOptions(allowAlias=' + this.allowAlias + ', deprecated=' + this.deprecated + ', uninterpretedOption=' + this.uninterpretedOption + ')'; + } + hashCode() { + var result = getBooleanHashCode(this.allowAlias); + result = imul(result, 31) + getBooleanHashCode(this.deprecated) | 0; + result = imul(result, 31) + hashCode(this.uninterpretedOption) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KEnumOptions)) + return false; + var tmp0_other_with_cast = other instanceof KEnumOptions ? other : THROW_CCE(); + if (!(this.allowAlias === tmp0_other_with_cast.allowAlias)) + return false; + if (!(this.deprecated === tmp0_other_with_cast.deprecated)) + return false; + if (!equals(this.uninterpretedOption, tmp0_other_with_cast.uninterpretedOption)) + return false; + return true; + } + static new_com_google_protobuf_KEnumOptions_aefl0x_k$(seen1, allowAlias, deprecated, uninterpretedOption, serializationConstructorMarker) { + Companion_getInstance_43(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_30().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.allowAlias = false; + else + $this.allowAlias = allowAlias; + if (0 === (seen1 & 2)) + $this.deprecated = false; + else + $this.deprecated = deprecated; + if (0 === (seen1 & 4)) + $this.uninterpretedOption = emptyList(); + else + $this.uninterpretedOption = uninterpretedOption; + return $this; + } + } + class Companion_44 { + constructor() { + Companion_instance_44 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, new ArrayListSerializer($serializer_getInstance_36())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/google.protobuf.EnumValueOptions'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_31(); + } + } + class $serializer_31 { + constructor() { + $serializer_instance_31 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.google.protobuf.KEnumValueOptions', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('deprecated', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('uninterpretedOption', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(999)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_44().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [BooleanSerializer_getInstance(), tmp0_cached[1]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = false; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp7_cached = Companion_getInstance_44().$childSerializers_1; + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KEnumValueOptions.new_com_google_protobuf_KEnumValueOptions_3lvodr_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_5dutbs_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_44().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.deprecated === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 0, value.deprecated); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !equals(value.uninterpretedOption, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 1, tmp2_cached[1], value.uninterpretedOption); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_5dutbs_k$(encoder, value instanceof KEnumValueOptions ? value : THROW_CCE()); + } + } + class KEnumValueOptions { + constructor(deprecated, uninterpretedOption) { + Companion_getInstance_44(); + deprecated = deprecated === VOID ? false : deprecated; + uninterpretedOption = uninterpretedOption === VOID ? emptyList() : uninterpretedOption; + this.deprecated = deprecated; + this.uninterpretedOption = uninterpretedOption; + } + get_deprecated_nv0664_k$() { + return this.deprecated; + } + get_uninterpretedOption_xd0u75_k$() { + return this.uninterpretedOption; + } + component1_7eebsc_k$() { + return this.deprecated; + } + component2_7eebsb_k$() { + return this.uninterpretedOption; + } + copy_jckcul_k$(deprecated, uninterpretedOption) { + return new KEnumValueOptions(deprecated, uninterpretedOption); + } + copy(deprecated, uninterpretedOption, $super) { + deprecated = deprecated === VOID ? this.deprecated : deprecated; + uninterpretedOption = uninterpretedOption === VOID ? this.uninterpretedOption : uninterpretedOption; + return this.copy_jckcul_k$(deprecated, uninterpretedOption); + } + toString() { + return 'KEnumValueOptions(deprecated=' + this.deprecated + ', uninterpretedOption=' + this.uninterpretedOption + ')'; + } + hashCode() { + var result = getBooleanHashCode(this.deprecated); + result = imul(result, 31) + hashCode(this.uninterpretedOption) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KEnumValueOptions)) + return false; + var tmp0_other_with_cast = other instanceof KEnumValueOptions ? other : THROW_CCE(); + if (!(this.deprecated === tmp0_other_with_cast.deprecated)) + return false; + if (!equals(this.uninterpretedOption, tmp0_other_with_cast.uninterpretedOption)) + return false; + return true; + } + static new_com_google_protobuf_KEnumValueOptions_3lvodr_k$(seen1, deprecated, uninterpretedOption, serializationConstructorMarker) { + Companion_getInstance_44(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_31().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.deprecated = false; + else + $this.deprecated = deprecated; + if (0 === (seen1 & 2)) + $this.uninterpretedOption = emptyList(); + else + $this.uninterpretedOption = uninterpretedOption; + return $this; + } + } + class Companion_45 { + constructor() { + Companion_instance_45 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, new ArrayListSerializer($serializer_getInstance_36())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/google.protobuf.ServiceOptions'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_32(); + } + } + class $serializer_32 { + constructor() { + $serializer_instance_32 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.google.protobuf.KServiceOptions', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('deprecated', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(33)); + tmp0_serialDesc.addElement_5pzumi_k$('uninterpretedOption', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(999)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_45().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [BooleanSerializer_getInstance(), tmp0_cached[1]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = false; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp7_cached = Companion_getInstance_45().$childSerializers_1; + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KServiceOptions.new_com_google_protobuf_KServiceOptions_6ckbak_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_pyhmsz_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_45().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.deprecated === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 0, value.deprecated); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !equals(value.uninterpretedOption, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 1, tmp2_cached[1], value.uninterpretedOption); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_pyhmsz_k$(encoder, value instanceof KServiceOptions ? value : THROW_CCE()); + } + } + class KServiceOptions { + constructor(deprecated, uninterpretedOption) { + Companion_getInstance_45(); + deprecated = deprecated === VOID ? false : deprecated; + uninterpretedOption = uninterpretedOption === VOID ? emptyList() : uninterpretedOption; + this.deprecated = deprecated; + this.uninterpretedOption = uninterpretedOption; + } + get_deprecated_nv0664_k$() { + return this.deprecated; + } + get_uninterpretedOption_xd0u75_k$() { + return this.uninterpretedOption; + } + component1_7eebsc_k$() { + return this.deprecated; + } + component2_7eebsb_k$() { + return this.uninterpretedOption; + } + copy_jckcul_k$(deprecated, uninterpretedOption) { + return new KServiceOptions(deprecated, uninterpretedOption); + } + copy(deprecated, uninterpretedOption, $super) { + deprecated = deprecated === VOID ? this.deprecated : deprecated; + uninterpretedOption = uninterpretedOption === VOID ? this.uninterpretedOption : uninterpretedOption; + return this.copy_jckcul_k$(deprecated, uninterpretedOption); + } + toString() { + return 'KServiceOptions(deprecated=' + this.deprecated + ', uninterpretedOption=' + this.uninterpretedOption + ')'; + } + hashCode() { + var result = getBooleanHashCode(this.deprecated); + result = imul(result, 31) + hashCode(this.uninterpretedOption) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KServiceOptions)) + return false; + var tmp0_other_with_cast = other instanceof KServiceOptions ? other : THROW_CCE(); + if (!(this.deprecated === tmp0_other_with_cast.deprecated)) + return false; + if (!equals(this.uninterpretedOption, tmp0_other_with_cast.uninterpretedOption)) + return false; + return true; + } + static new_com_google_protobuf_KServiceOptions_6ckbak_k$(seen1, deprecated, uninterpretedOption, serializationConstructorMarker) { + Companion_getInstance_45(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_32().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.deprecated = false; + else + $this.deprecated = deprecated; + if (0 === (seen1 & 2)) + $this.uninterpretedOption = emptyList(); + else + $this.uninterpretedOption = uninterpretedOption; + return $this; + } + } + class Companion_46 { + constructor() { + Companion_instance_46 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KMethodOptions$KIdempotencyLevel$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KMethodOptions$KIdempotencyLevel$Companion$_anonymous__oerigt); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_5(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.google.protobuf.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KIdempotencyLevel_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.google.protobuf.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KIdempotencyLevel with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_5(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_33 { + constructor() { + $serializer_instance_33 = this; + var tmp0_serialDesc = new EnumDescriptor('com.google.protobuf.KMethodOptions.KIdempotencyLevel', 4); + tmp0_serialDesc.addElement_5pzumi_k$('IDEMPOTENCY_UNKNOWN', false); + tmp0_serialDesc.addElement_5pzumi_k$('NO_SIDE_EFFECTS', false); + tmp0_serialDesc.addElement_5pzumi_k$('IDEMPOTENT', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_5()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_ksc8mu_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_ksc8mu_k$(encoder, value instanceof KIdempotencyLevel ? value : THROW_CCE()); + } + } + class KIdempotencyLevel extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_47 { + constructor() { + Companion_instance_47 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, new ArrayListSerializer($serializer_getInstance_36())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/google.protobuf.MethodOptions'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_34(); + } + } + class $serializer_34 { + constructor() { + $serializer_instance_34 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.google.protobuf.KMethodOptions', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('deprecated', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(33)); + tmp0_serialDesc.addElement_5pzumi_k$('idempotencyLevel', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(34)); + tmp0_serialDesc.addElement_5pzumi_k$('uninterpretedOption', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(999)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_47().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [BooleanSerializer_getInstance(), IntSerializer_getInstance(), tmp0_cached[2]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = false; + var tmp5_local1 = 0; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp8_cached = Companion_getInstance_47().$childSerializers_1; + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp8_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp8_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KMethodOptions.new_com_google_protobuf_KMethodOptions_hjyv44_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_oe30kt_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_47().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.deprecated === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 0, value.deprecated); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.idempotencyLevel === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.idempotencyLevel); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !equals(value.uninterpretedOption, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 2, tmp2_cached[2], value.uninterpretedOption); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_oe30kt_k$(encoder, value instanceof KMethodOptions ? value : THROW_CCE()); + } + } + class KMethodOptions { + constructor(deprecated, idempotencyLevel, uninterpretedOption) { + Companion_getInstance_47(); + deprecated = deprecated === VOID ? false : deprecated; + idempotencyLevel = idempotencyLevel === VOID ? 0 : idempotencyLevel; + uninterpretedOption = uninterpretedOption === VOID ? emptyList() : uninterpretedOption; + this.deprecated = deprecated; + this.idempotencyLevel = idempotencyLevel; + this.uninterpretedOption = uninterpretedOption; + } + get_deprecated_nv0664_k$() { + return this.deprecated; + } + get_idempotencyLevel_oe08sk_k$() { + return this.idempotencyLevel; + } + get_uninterpretedOption_xd0u75_k$() { + return this.uninterpretedOption; + } + idempotencyLevelEnum() { + return Companion_getInstance_46().fromValue(this.idempotencyLevel); + } + component1_7eebsc_k$() { + return this.deprecated; + } + component2_7eebsb_k$() { + return this.idempotencyLevel; + } + component3_7eebsa_k$() { + return this.uninterpretedOption; + } + copy_3rj5qd_k$(deprecated, idempotencyLevel, uninterpretedOption) { + return new KMethodOptions(deprecated, idempotencyLevel, uninterpretedOption); + } + copy(deprecated, idempotencyLevel, uninterpretedOption, $super) { + deprecated = deprecated === VOID ? this.deprecated : deprecated; + idempotencyLevel = idempotencyLevel === VOID ? this.idempotencyLevel : idempotencyLevel; + uninterpretedOption = uninterpretedOption === VOID ? this.uninterpretedOption : uninterpretedOption; + return this.copy_3rj5qd_k$(deprecated, idempotencyLevel, uninterpretedOption); + } + toString() { + return 'KMethodOptions(deprecated=' + this.deprecated + ', idempotencyLevel=' + this.idempotencyLevel + ', uninterpretedOption=' + this.uninterpretedOption + ')'; + } + hashCode() { + var result = getBooleanHashCode(this.deprecated); + result = imul(result, 31) + this.idempotencyLevel | 0; + result = imul(result, 31) + hashCode(this.uninterpretedOption) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KMethodOptions)) + return false; + var tmp0_other_with_cast = other instanceof KMethodOptions ? other : THROW_CCE(); + if (!(this.deprecated === tmp0_other_with_cast.deprecated)) + return false; + if (!(this.idempotencyLevel === tmp0_other_with_cast.idempotencyLevel)) + return false; + if (!equals(this.uninterpretedOption, tmp0_other_with_cast.uninterpretedOption)) + return false; + return true; + } + static new_com_google_protobuf_KMethodOptions_hjyv44_k$(seen1, deprecated, idempotencyLevel, uninterpretedOption, serializationConstructorMarker) { + Companion_getInstance_47(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_34().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.deprecated = false; + else + $this.deprecated = deprecated; + if (0 === (seen1 & 2)) + $this.idempotencyLevel = 0; + else + $this.idempotencyLevel = idempotencyLevel; + if (0 === (seen1 & 4)) + $this.uninterpretedOption = emptyList(); + else + $this.uninterpretedOption = uninterpretedOption; + return $this; + } + } + class Companion_48 { + constructor() { + this.targetPath = '/google.protobuf.UninterpretedOption.NamePart'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_35(); + } + } + class $serializer_35 { + constructor() { + $serializer_instance_35 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.google.protobuf.KUninterpretedOption.KNamePart', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('namePart', false); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('isExtension', false); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), BooleanSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = false; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KNamePart.new_com_google_protobuf_KUninterpretedOption_KNamePart_v5ylg6_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_h7nalp_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.namePart); + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 1, value.isExtension); + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_h7nalp_k$(encoder, value instanceof KNamePart ? value : THROW_CCE()); + } + } + class KNamePart { + constructor(namePart, isExtension) { + Companion_instance_48; + this.namePart = namePart; + this.isExtension = isExtension; + } + get_namePart_1d6g49_k$() { + return this.namePart; + } + get_isExtension_n93mq4_k$() { + return this.isExtension; + } + component1_7eebsc_k$() { + return this.namePart; + } + component2_7eebsb_k$() { + return this.isExtension; + } + copy_smzrfk_k$(namePart, isExtension) { + return new KNamePart(namePart, isExtension); + } + copy(namePart, isExtension, $super) { + namePart = namePart === VOID ? this.namePart : namePart; + isExtension = isExtension === VOID ? this.isExtension : isExtension; + return this.copy_smzrfk_k$(namePart, isExtension); + } + toString() { + return 'KNamePart(namePart=' + this.namePart + ', isExtension=' + this.isExtension + ')'; + } + hashCode() { + var result = getStringHashCode(this.namePart); + result = imul(result, 31) + getBooleanHashCode(this.isExtension) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KNamePart)) + return false; + var tmp0_other_with_cast = other instanceof KNamePart ? other : THROW_CCE(); + if (!(this.namePart === tmp0_other_with_cast.namePart)) + return false; + if (!(this.isExtension === tmp0_other_with_cast.isExtension)) + return false; + return true; + } + static new_com_google_protobuf_KUninterpretedOption_KNamePart_v5ylg6_k$(seen1, namePart, isExtension, serializationConstructorMarker) { + Companion_instance_48; + if (!(3 === (3 & seen1))) { + throwMissingFieldException(seen1, 3, $serializer_getInstance_35().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + $this.namePart = namePart; + $this.isExtension = isExtension; + return $this; + } + } + class Companion_49 { + constructor() { + Companion_instance_49 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer($serializer_getInstance_35()), null, null, null, null, null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/google.protobuf.UninterpretedOption'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_36(); + } + } + class $serializer_36 { + constructor() { + $serializer_instance_36 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.google.protobuf.KUninterpretedOption', this, 7); + tmp0_serialDesc.addElement_5pzumi_k$('name', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('identifierValue', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('positiveIntValue', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('negativeIntValue', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('doubleValue', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('stringValue', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('aggregateValue', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_49().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0], StringSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), DoubleSerializer_getInstance(), ByteArraySerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = new Long(0, 0); + var tmp7_local3 = new Long(0, 0); + var tmp8_local4 = 0.0; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp12_cached = Companion_getInstance_49().$childSerializers_1; + if (tmp11_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp11_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp12_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp11_input.decodeDoubleElement_isei84_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp11_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 5, ByteArraySerializer_getInstance(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + } else + while (tmp1_flag) { + tmp2_index = tmp11_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp11_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp12_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp11_input.decodeDoubleElement_isei84_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp11_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 5, ByteArraySerializer_getInstance(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp11_input.endStructure_1xqz0n_k$(tmp0_desc); + return KUninterpretedOption.new_com_google_protobuf_KUninterpretedOption_4my2a8_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, null); + } + serialize_iankiw_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_49().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.name, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.name); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.identifierValue === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.identifierValue); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.positiveIntValue.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.positiveIntValue); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !value.negativeIntValue.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 3, value.negativeIntValue); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !equals(value.doubleValue, 0.0)) { + tmp1_output.encodeDoubleElement_a6rqhe_k$(tmp0_desc, 4, value.doubleValue); + Unit_instance; + } + var tmp; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5)) { + tmp = true; + } else { + var tmp$ret$0; + // Inline function 'kotlin.byteArrayOf' call + var elements = new Int8Array([]); + tmp$ret$0 = elements; + tmp = !equals(value.stringValue, tmp$ret$0); + } + if (tmp) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 5, ByteArraySerializer_getInstance(), value.stringValue); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.aggregateValue === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.aggregateValue); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_iankiw_k$(encoder, value instanceof KUninterpretedOption ? value : THROW_CCE()); + } + } + class KUninterpretedOption { + constructor(name, identifierValue, positiveIntValue, negativeIntValue, doubleValue, stringValue, aggregateValue) { + Companion_getInstance_49(); + name = name === VOID ? emptyList() : name; + identifierValue = identifierValue === VOID ? '' : identifierValue; + positiveIntValue = positiveIntValue === VOID ? new Long(0, 0) : positiveIntValue; + negativeIntValue = negativeIntValue === VOID ? new Long(0, 0) : negativeIntValue; + doubleValue = doubleValue === VOID ? 0.0 : doubleValue; + var tmp; + if (stringValue === VOID) { + var tmp$ret$0; + var tmp$ret$0_0; + // Inline function 'kotlin.byteArrayOf' call + var elements = new Int8Array([]); + tmp$ret$0 = elements; + tmp$ret$0_0 = Unit_instance; + tmp = tmp$ret$0; + } else { + tmp = stringValue; + } + stringValue = tmp; + aggregateValue = aggregateValue === VOID ? '' : aggregateValue; + this.name = name; + this.identifierValue = identifierValue; + this.positiveIntValue = positiveIntValue; + this.negativeIntValue = negativeIntValue; + this.doubleValue = doubleValue; + this.stringValue = stringValue; + this.aggregateValue = aggregateValue; + } + get_name_woqyms_k$() { + return this.name; + } + get_identifierValue_3729gf_k$() { + return this.identifierValue; + } + get_positiveIntValue_5j8lgk_k$() { + return this.positiveIntValue; + } + get_negativeIntValue_gpvbc0_k$() { + return this.negativeIntValue; + } + get_doubleValue_d08oqx_k$() { + return this.doubleValue; + } + get_stringValue_b8arux_k$() { + return this.stringValue; + } + get_aggregateValue_xhtm9n_k$() { + return this.aggregateValue; + } + component1_7eebsc_k$() { + return this.name; + } + component2_7eebsb_k$() { + return this.identifierValue; + } + component3_7eebsa_k$() { + return this.positiveIntValue; + } + component4_7eebs9_k$() { + return this.negativeIntValue; + } + component5_7eebs8_k$() { + return this.doubleValue; + } + component6_7eebs7_k$() { + return this.stringValue; + } + component7_7eebs6_k$() { + return this.aggregateValue; + } + copy_vkypb3_k$(name, identifierValue, positiveIntValue, negativeIntValue, doubleValue, stringValue, aggregateValue) { + return new KUninterpretedOption(name, identifierValue, positiveIntValue, negativeIntValue, doubleValue, stringValue, aggregateValue); + } + copy(name, identifierValue, positiveIntValue, negativeIntValue, doubleValue, stringValue, aggregateValue, $super) { + name = name === VOID ? this.name : name; + identifierValue = identifierValue === VOID ? this.identifierValue : identifierValue; + positiveIntValue = positiveIntValue === VOID ? this.positiveIntValue : positiveIntValue; + negativeIntValue = negativeIntValue === VOID ? this.negativeIntValue : negativeIntValue; + doubleValue = doubleValue === VOID ? this.doubleValue : doubleValue; + stringValue = stringValue === VOID ? this.stringValue : stringValue; + aggregateValue = aggregateValue === VOID ? this.aggregateValue : aggregateValue; + return this.copy_vkypb3_k$(name, identifierValue, positiveIntValue, negativeIntValue, doubleValue, stringValue, aggregateValue); + } + toString() { + return 'KUninterpretedOption(name=' + this.name + ', identifierValue=' + this.identifierValue + ', positiveIntValue=' + this.positiveIntValue.toString() + ', negativeIntValue=' + this.negativeIntValue.toString() + ', doubleValue=' + this.doubleValue + ', stringValue=' + toString_1(this.stringValue) + ', aggregateValue=' + this.aggregateValue + ')'; + } + hashCode() { + var result = hashCode(this.name); + result = imul(result, 31) + getStringHashCode(this.identifierValue) | 0; + result = imul(result, 31) + this.positiveIntValue.hashCode() | 0; + result = imul(result, 31) + this.negativeIntValue.hashCode() | 0; + result = imul(result, 31) + getNumberHashCode(this.doubleValue) | 0; + result = imul(result, 31) + hashCode(this.stringValue) | 0; + result = imul(result, 31) + getStringHashCode(this.aggregateValue) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KUninterpretedOption)) + return false; + var tmp0_other_with_cast = other instanceof KUninterpretedOption ? other : THROW_CCE(); + if (!equals(this.name, tmp0_other_with_cast.name)) + return false; + if (!(this.identifierValue === tmp0_other_with_cast.identifierValue)) + return false; + if (!this.positiveIntValue.equals(tmp0_other_with_cast.positiveIntValue)) + return false; + if (!this.negativeIntValue.equals(tmp0_other_with_cast.negativeIntValue)) + return false; + if (!equals(this.doubleValue, tmp0_other_with_cast.doubleValue)) + return false; + if (!equals(this.stringValue, tmp0_other_with_cast.stringValue)) + return false; + if (!(this.aggregateValue === tmp0_other_with_cast.aggregateValue)) + return false; + return true; + } + static new_com_google_protobuf_KUninterpretedOption_4my2a8_k$(seen1, name, identifierValue, positiveIntValue, negativeIntValue, doubleValue, stringValue, aggregateValue, serializationConstructorMarker) { + Companion_getInstance_49(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_36().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.name = emptyList(); + else + $this.name = name; + if (0 === (seen1 & 2)) + $this.identifierValue = ''; + else + $this.identifierValue = identifierValue; + if (0 === (seen1 & 4)) + $this.positiveIntValue = new Long(0, 0); + else + $this.positiveIntValue = positiveIntValue; + if (0 === (seen1 & 8)) + $this.negativeIntValue = new Long(0, 0); + else + $this.negativeIntValue = negativeIntValue; + if (0 === (seen1 & 16)) + $this.doubleValue = 0.0; + else + $this.doubleValue = doubleValue; + if (0 === (seen1 & 32)) { + var tmp = $this; + var tmp$ret$0; + // Inline function 'kotlin.byteArrayOf' call + var elements = new Int8Array([]); + tmp$ret$0 = elements; + tmp.stringValue = tmp$ret$0; + } else + $this.stringValue = stringValue; + if (0 === (seen1 & 64)) + $this.aggregateValue = ''; + else + $this.aggregateValue = aggregateValue; + return $this; + } + } + class Companion_50 { + constructor() { + Companion_instance_50 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer(IntSerializer_getInstance()), new ArrayListSerializer(IntSerializer_getInstance()), null, null, new ArrayListSerializer(StringSerializer_getInstance())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/google.protobuf.SourceCodeInfo.Location'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_37(); + } + } + class $serializer_37 { + constructor() { + $serializer_instance_37 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.google.protobuf.KSourceCodeInfo.KLocation', this, 5); + tmp0_serialDesc.addElement_5pzumi_k$('path', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('span', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('leadingComments', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('trailingComments', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('leadingDetachedComments', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_50().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0], tmp0_cached[1], StringSerializer_getInstance(), StringSerializer_getInstance(), tmp0_cached[4]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp10_cached = Companion_getInstance_50().$childSerializers_1; + if (tmp9_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp9_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp10_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp9_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp10_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp9_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 4, tmp10_cached[4], tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + } else + while (tmp1_flag) { + tmp2_index = tmp9_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp9_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp10_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp9_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp10_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp9_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 4, tmp10_cached[4], tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp9_input.endStructure_1xqz0n_k$(tmp0_desc); + return KLocation.new_com_google_protobuf_KSourceCodeInfo_KLocation_wikp4m_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); + } + serialize_10k0gi_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_50().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.path, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.path); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !equals(value.span, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 1, tmp2_cached[1], value.span); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.leadingComments === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.leadingComments); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.trailingComments === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.trailingComments); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !equals(value.leadingDetachedComments, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 4, tmp2_cached[4], value.leadingDetachedComments); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_10k0gi_k$(encoder, value instanceof KLocation ? value : THROW_CCE()); + } + } + class KLocation { + constructor(path, span, leadingComments, trailingComments, leadingDetachedComments) { + Companion_getInstance_50(); + path = path === VOID ? emptyList() : path; + span = span === VOID ? emptyList() : span; + leadingComments = leadingComments === VOID ? '' : leadingComments; + trailingComments = trailingComments === VOID ? '' : trailingComments; + leadingDetachedComments = leadingDetachedComments === VOID ? emptyList() : leadingDetachedComments; + this.path = path; + this.span = span; + this.leadingComments = leadingComments; + this.trailingComments = trailingComments; + this.leadingDetachedComments = leadingDetachedComments; + } + get_path_wos8ry_k$() { + return this.path; + } + get_span_wouger_k$() { + return this.span; + } + get_leadingComments_xt2mkv_k$() { + return this.leadingComments; + } + get_trailingComments_f0zeh3_k$() { + return this.trailingComments; + } + get_leadingDetachedComments_c4eddp_k$() { + return this.leadingDetachedComments; + } + component1_7eebsc_k$() { + return this.path; + } + component2_7eebsb_k$() { + return this.span; + } + component3_7eebsa_k$() { + return this.leadingComments; + } + component4_7eebs9_k$() { + return this.trailingComments; + } + component5_7eebs8_k$() { + return this.leadingDetachedComments; + } + copy_3o2fyl_k$(path, span, leadingComments, trailingComments, leadingDetachedComments) { + return new KLocation(path, span, leadingComments, trailingComments, leadingDetachedComments); + } + copy(path, span, leadingComments, trailingComments, leadingDetachedComments, $super) { + path = path === VOID ? this.path : path; + span = span === VOID ? this.span : span; + leadingComments = leadingComments === VOID ? this.leadingComments : leadingComments; + trailingComments = trailingComments === VOID ? this.trailingComments : trailingComments; + leadingDetachedComments = leadingDetachedComments === VOID ? this.leadingDetachedComments : leadingDetachedComments; + return this.copy_3o2fyl_k$(path, span, leadingComments, trailingComments, leadingDetachedComments); + } + toString() { + return 'KLocation(path=' + this.path + ', span=' + this.span + ', leadingComments=' + this.leadingComments + ', trailingComments=' + this.trailingComments + ', leadingDetachedComments=' + this.leadingDetachedComments + ')'; + } + hashCode() { + var result = hashCode(this.path); + result = imul(result, 31) + hashCode(this.span) | 0; + result = imul(result, 31) + getStringHashCode(this.leadingComments) | 0; + result = imul(result, 31) + getStringHashCode(this.trailingComments) | 0; + result = imul(result, 31) + hashCode(this.leadingDetachedComments) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KLocation)) + return false; + var tmp0_other_with_cast = other instanceof KLocation ? other : THROW_CCE(); + if (!equals(this.path, tmp0_other_with_cast.path)) + return false; + if (!equals(this.span, tmp0_other_with_cast.span)) + return false; + if (!(this.leadingComments === tmp0_other_with_cast.leadingComments)) + return false; + if (!(this.trailingComments === tmp0_other_with_cast.trailingComments)) + return false; + if (!equals(this.leadingDetachedComments, tmp0_other_with_cast.leadingDetachedComments)) + return false; + return true; + } + static new_com_google_protobuf_KSourceCodeInfo_KLocation_wikp4m_k$(seen1, path, span, leadingComments, trailingComments, leadingDetachedComments, serializationConstructorMarker) { + Companion_getInstance_50(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_37().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.path = emptyList(); + else + $this.path = path; + if (0 === (seen1 & 2)) + $this.span = emptyList(); + else + $this.span = span; + if (0 === (seen1 & 4)) + $this.leadingComments = ''; + else + $this.leadingComments = leadingComments; + if (0 === (seen1 & 8)) + $this.trailingComments = ''; + else + $this.trailingComments = trailingComments; + if (0 === (seen1 & 16)) + $this.leadingDetachedComments = emptyList(); + else + $this.leadingDetachedComments = leadingDetachedComments; + return $this; + } + } + class Companion_51 { + constructor() { + Companion_instance_51 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer($serializer_getInstance_37())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/google.protobuf.SourceCodeInfo'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_38(); + } + } + class $serializer_38 { + constructor() { + $serializer_instance_38 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.google.protobuf.KSourceCodeInfo', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('location', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_51().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp6_cached = Companion_getInstance_51().$childSerializers_1; + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSourceCodeInfo.new_com_google_protobuf_KSourceCodeInfo_bzyqvq_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_hl8e8w_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_51().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.location, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.location); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_hl8e8w_k$(encoder, value instanceof KSourceCodeInfo ? value : THROW_CCE()); + } + } + class KSourceCodeInfo { + constructor(location) { + Companion_getInstance_51(); + location = location === VOID ? emptyList() : location; + this.location = location; + } + get_location_d3s02_k$() { + return this.location; + } + component1_7eebsc_k$() { + return this.location; + } + copy_9de74c_k$(location) { + return new KSourceCodeInfo(location); + } + copy(location, $super) { + location = location === VOID ? this.location : location; + return this.copy_9de74c_k$(location); + } + toString() { + return 'KSourceCodeInfo(location=' + this.location + ')'; + } + hashCode() { + return hashCode(this.location); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSourceCodeInfo)) + return false; + var tmp0_other_with_cast = other instanceof KSourceCodeInfo ? other : THROW_CCE(); + if (!equals(this.location, tmp0_other_with_cast.location)) + return false; + return true; + } + static new_com_google_protobuf_KSourceCodeInfo_bzyqvq_k$(seen1, location, serializationConstructorMarker) { + Companion_getInstance_51(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_38().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.location = emptyList(); + else + $this.location = location; + return $this; + } + } + class Companion_52 { + constructor() { + Companion_instance_52 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer(IntSerializer_getInstance()), null, null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/google.protobuf.GeneratedCodeInfo.Annotation'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_39(); + } + } + class $serializer_39 { + constructor() { + $serializer_instance_39 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.google.protobuf.KGeneratedCodeInfo.KAnnotation', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('path', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('sourceFile', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('begin', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('end', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_52().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0], StringSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = 0; + var tmp7_local3 = 0; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp9_cached = Companion_getInstance_52().$childSerializers_1; + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp9_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp9_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KAnnotation.new_com_google_protobuf_KGeneratedCodeInfo_KAnnotation_363oc5_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_dj79nq_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_52().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.path, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.path); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.sourceFile === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.sourceFile); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.begin === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.begin); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.end === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 3, value.end); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_dj79nq_k$(encoder, value instanceof KAnnotation ? value : THROW_CCE()); + } + } + class KAnnotation { + constructor(path, sourceFile, begin, end) { + Companion_getInstance_52(); + path = path === VOID ? emptyList() : path; + sourceFile = sourceFile === VOID ? '' : sourceFile; + begin = begin === VOID ? 0 : begin; + end = end === VOID ? 0 : end; + this.path = path; + this.sourceFile = sourceFile; + this.begin = begin; + this.end = end; + } + get_path_wos8ry_k$() { + return this.path; + } + get_sourceFile_wgvveo_k$() { + return this.sourceFile; + } + get_begin_ip3yio_k$() { + return this.begin; + } + get_end_18j6ha_k$() { + return this.end; + } + component1_7eebsc_k$() { + return this.path; + } + component2_7eebsb_k$() { + return this.sourceFile; + } + component3_7eebsa_k$() { + return this.begin; + } + component4_7eebs9_k$() { + return this.end; + } + copy_wjnh6l_k$(path, sourceFile, begin, end) { + return new KAnnotation(path, sourceFile, begin, end); + } + copy(path, sourceFile, begin, end, $super) { + path = path === VOID ? this.path : path; + sourceFile = sourceFile === VOID ? this.sourceFile : sourceFile; + begin = begin === VOID ? this.begin : begin; + end = end === VOID ? this.end : end; + return this.copy_wjnh6l_k$(path, sourceFile, begin, end); + } + toString() { + return 'KAnnotation(path=' + this.path + ', sourceFile=' + this.sourceFile + ', begin=' + this.begin + ', end=' + this.end + ')'; + } + hashCode() { + var result = hashCode(this.path); + result = imul(result, 31) + getStringHashCode(this.sourceFile) | 0; + result = imul(result, 31) + this.begin | 0; + result = imul(result, 31) + this.end | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KAnnotation)) + return false; + var tmp0_other_with_cast = other instanceof KAnnotation ? other : THROW_CCE(); + if (!equals(this.path, tmp0_other_with_cast.path)) + return false; + if (!(this.sourceFile === tmp0_other_with_cast.sourceFile)) + return false; + if (!(this.begin === tmp0_other_with_cast.begin)) + return false; + if (!(this.end === tmp0_other_with_cast.end)) + return false; + return true; + } + static new_com_google_protobuf_KGeneratedCodeInfo_KAnnotation_363oc5_k$(seen1, path, sourceFile, begin, end, serializationConstructorMarker) { + Companion_getInstance_52(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_39().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.path = emptyList(); + else + $this.path = path; + if (0 === (seen1 & 2)) + $this.sourceFile = ''; + else + $this.sourceFile = sourceFile; + if (0 === (seen1 & 4)) + $this.begin = 0; + else + $this.begin = begin; + if (0 === (seen1 & 8)) + $this.end = 0; + else + $this.end = end; + return $this; + } + } + class Companion_53 { + constructor() { + Companion_instance_53 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer($serializer_getInstance_39())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/google.protobuf.GeneratedCodeInfo'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_40(); + } + } + class $serializer_40 { + constructor() { + $serializer_instance_40 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.google.protobuf.KGeneratedCodeInfo', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('annotation', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_53().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp6_cached = Companion_getInstance_53().$childSerializers_1; + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KGeneratedCodeInfo.new_com_google_protobuf_KGeneratedCodeInfo_cnl37y_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_19aa4a_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_53().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.annotation, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.annotation); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_19aa4a_k$(encoder, value instanceof KGeneratedCodeInfo ? value : THROW_CCE()); + } + } + class KGeneratedCodeInfo { + constructor(annotation) { + Companion_getInstance_53(); + annotation = annotation === VOID ? emptyList() : annotation; + this.annotation = annotation; + } + get_annotation_p5103c_k$() { + return this.annotation; + } + component1_7eebsc_k$() { + return this.annotation; + } + copy_8xo6gs_k$(annotation) { + return new KGeneratedCodeInfo(annotation); + } + copy(annotation, $super) { + annotation = annotation === VOID ? this.annotation : annotation; + return this.copy_8xo6gs_k$(annotation); + } + toString() { + return 'KGeneratedCodeInfo(annotation=' + this.annotation + ')'; + } + hashCode() { + return hashCode(this.annotation); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KGeneratedCodeInfo)) + return false; + var tmp0_other_with_cast = other instanceof KGeneratedCodeInfo ? other : THROW_CCE(); + if (!equals(this.annotation, tmp0_other_with_cast.annotation)) + return false; + return true; + } + static new_com_google_protobuf_KGeneratedCodeInfo_cnl37y_k$(seen1, annotation, serializationConstructorMarker) { + Companion_getInstance_53(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_40().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.annotation = emptyList(); + else + $this.annotation = annotation; + return $this; + } + } + class Companion_54 { + constructor() { + this.targetPath = '/google.protobuf.Duration'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_41(); + } + } + class $serializer_41 { + constructor() { + $serializer_instance_41 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.google.protobuf.KDuration', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('seconds', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('nanos', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = 0; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KDuration.new_com_google_protobuf_KDuration_64bg56_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_5xmybm_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.seconds.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.seconds); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.nanos === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.nanos); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_5xmybm_k$(encoder, value instanceof KDuration ? value : THROW_CCE()); + } + } + class KDuration { + constructor(seconds, nanos) { + Companion_instance_54; + seconds = seconds === VOID ? new Long(0, 0) : seconds; + nanos = nanos === VOID ? 0 : nanos; + this.seconds = seconds; + this.nanos = nanos; + } + get_seconds_xuhyfq_k$() { + return this.seconds; + } + get_nanos_ivn312_k$() { + return this.nanos; + } + component1_7eebsc_k$() { + return this.seconds; + } + component2_7eebsb_k$() { + return this.nanos; + } + copy_hlxmm3_k$(seconds, nanos) { + return new KDuration(seconds, nanos); + } + copy(seconds, nanos, $super) { + seconds = seconds === VOID ? this.seconds : seconds; + nanos = nanos === VOID ? this.nanos : nanos; + return this.copy_hlxmm3_k$(seconds, nanos); + } + toString() { + return 'KDuration(seconds=' + this.seconds.toString() + ', nanos=' + this.nanos + ')'; + } + hashCode() { + var result = this.seconds.hashCode(); + result = imul(result, 31) + this.nanos | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KDuration)) + return false; + var tmp0_other_with_cast = other instanceof KDuration ? other : THROW_CCE(); + if (!this.seconds.equals(tmp0_other_with_cast.seconds)) + return false; + if (!(this.nanos === tmp0_other_with_cast.nanos)) + return false; + return true; + } + static new_com_google_protobuf_KDuration_64bg56_k$(seen1, seconds, nanos, serializationConstructorMarker) { + Companion_instance_54; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_41().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.seconds = new Long(0, 0); + else + $this.seconds = seconds; + if (0 === (seen1 & 2)) + $this.nanos = 0; + else + $this.nanos = nanos; + return $this; + } + } + class Companion_55 { + constructor() { + this.targetPath = '/google.protobuf.Empty'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_42(); + } + } + class $serializer_42 { + constructor() { + $serializer_instance_42 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.google.protobuf.KEmpty', this, 0); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = []; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp4_input.decodeSequentially_xlblqy_k$()) { + } else + while (tmp1_flag) { + tmp2_index = tmp4_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + if (tmp2_index === -1) + tmp1_flag = false; + else + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + tmp4_input.endStructure_1xqz0n_k$(tmp0_desc); + return KEmpty.new_com_google_protobuf_KEmpty_i255td_k$(tmp3_bitMask0, null); + } + serialize_5jj0jn_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_5jj0jn_k$(encoder, value instanceof KEmpty ? value : THROW_CCE()); + } + } + class KEmpty { + constructor() { + Companion_instance_55; + } + static new_com_google_protobuf_KEmpty_i255td_k$(seen1, serializationConstructorMarker) { + Companion_instance_55; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_42().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + return $this; + } + } + class Companion_56 { + constructor() { + Companion_instance_56 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer(StringSerializer_getInstance())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/google.protobuf.FieldMask'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_43(); + } + } + class $serializer_43 { + constructor() { + $serializer_instance_43 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.google.protobuf.KFieldMask', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('paths', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_56().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp6_cached = Companion_getInstance_56().$childSerializers_1; + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KFieldMask.new_com_google_protobuf_KFieldMask_hh6r33_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_1l76ay_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_56().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.paths, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.paths); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_1l76ay_k$(encoder, value instanceof KFieldMask ? value : THROW_CCE()); + } + } + class KFieldMask { + constructor(paths) { + Companion_getInstance_56(); + paths = paths === VOID ? emptyList() : paths; + this.paths = paths; + } + get_paths_iwqshx_k$() { + return this.paths; + } + component1_7eebsc_k$() { + return this.paths; + } + copy_is4t59_k$(paths) { + return new KFieldMask(paths); + } + copy(paths, $super) { + paths = paths === VOID ? this.paths : paths; + return this.copy_is4t59_k$(paths); + } + toString() { + return 'KFieldMask(paths=' + this.paths + ')'; + } + hashCode() { + return hashCode(this.paths); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KFieldMask)) + return false; + var tmp0_other_with_cast = other instanceof KFieldMask ? other : THROW_CCE(); + if (!equals(this.paths, tmp0_other_with_cast.paths)) + return false; + return true; + } + static new_com_google_protobuf_KFieldMask_hh6r33_k$(seen1, paths, serializationConstructorMarker) { + Companion_getInstance_56(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_43().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.paths = emptyList(); + else + $this.paths = paths; + return $this; + } + } + class Companion_57 { + constructor() { + this.targetPath = '/google.protobuf.SourceContext'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_44(); + } + } + class $serializer_44 { + constructor() { + $serializer_instance_44 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.google.protobuf.KSourceContext', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('fileName', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSourceContext.new_com_google_protobuf_KSourceContext_y2dpcx_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_xhdqjo_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.fileName === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.fileName); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_xhdqjo_k$(encoder, value instanceof KSourceContext ? value : THROW_CCE()); + } + } + class KSourceContext { + constructor(fileName) { + Companion_instance_57; + fileName = fileName === VOID ? '' : fileName; + this.fileName = fileName; + } + get_fileName_r258mo_k$() { + return this.fileName; + } + component1_7eebsc_k$() { + return this.fileName; + } + copy_a35qlh_k$(fileName) { + return new KSourceContext(fileName); + } + copy(fileName, $super) { + fileName = fileName === VOID ? this.fileName : fileName; + return this.copy_a35qlh_k$(fileName); + } + toString() { + return 'KSourceContext(fileName=' + this.fileName + ')'; + } + hashCode() { + return getStringHashCode(this.fileName); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSourceContext)) + return false; + var tmp0_other_with_cast = other instanceof KSourceContext ? other : THROW_CCE(); + if (!(this.fileName === tmp0_other_with_cast.fileName)) + return false; + return true; + } + static new_com_google_protobuf_KSourceContext_y2dpcx_k$(seen1, fileName, serializationConstructorMarker) { + Companion_instance_57; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_44().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.fileName = ''; + else + $this.fileName = fileName; + return $this; + } + } + class Companion_58 { + constructor() { + Companion_instance_58 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KNullValue$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KNullValue$Companion$_anonymous__safs28); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_6(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.google.protobuf.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KNullValue_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.google.protobuf.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KNullValue with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_6(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_45 { + constructor() { + $serializer_instance_45 = this; + var tmp0_serialDesc = new EnumDescriptor('com.google.protobuf.KNullValue', 2); + tmp0_serialDesc.addElement_5pzumi_k$('NULL_VALUE', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_6()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_qmsmct_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_qmsmct_k$(encoder, value instanceof KNullValue ? value : THROW_CCE()); + } + } + class KNullValue extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_59 { + constructor() { + this.targetPath = '/google.protobuf.Struct.FieldsEntry'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_46(); + } + } + class $serializer_46 { + constructor() { + $serializer_instance_46 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.google.protobuf.KStruct.KFieldsEntry', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('key', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('value', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), get_nullable($serializer_getInstance_48())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_48(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_48(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KFieldsEntry.new_com_google_protobuf_KStruct_KFieldsEntry_3gaumo_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_89loyf_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.key === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.key); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.value == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_48(), value.value); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_89loyf_k$(encoder, value instanceof KFieldsEntry ? value : THROW_CCE()); + } + } + class KFieldsEntry { + constructor(key, value) { + Companion_instance_59; + key = key === VOID ? '' : key; + value = value === VOID ? null : value; + this.key = key; + this.value = value; + } + get_key_18j28a_k$() { + return this.key; + } + get_value_j01efc_k$() { + return this.value; + } + component1_7eebsc_k$() { + return this.key; + } + component2_7eebsb_k$() { + return this.value; + } + copy_ko2k0w_k$(key, value) { + return new KFieldsEntry(key, value); + } + copy(key, value, $super) { + key = key === VOID ? this.key : key; + value = value === VOID ? this.value : value; + return this.copy_ko2k0w_k$(key, value); + } + toString() { + return 'KFieldsEntry(key=' + this.key + ', value=' + this.value + ')'; + } + hashCode() { + var result = getStringHashCode(this.key); + result = imul(result, 31) + (this.value == null ? 0 : this.value.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KFieldsEntry)) + return false; + var tmp0_other_with_cast = other instanceof KFieldsEntry ? other : THROW_CCE(); + if (!(this.key === tmp0_other_with_cast.key)) + return false; + if (!equals(this.value, tmp0_other_with_cast.value)) + return false; + return true; + } + static new_com_google_protobuf_KStruct_KFieldsEntry_3gaumo_k$(seen1, key, value, serializationConstructorMarker) { + Companion_instance_59; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_46().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.key = ''; + else + $this.key = key; + if (0 === (seen1 & 2)) + $this.value = null; + else + $this.value = value; + return $this; + } + } + class Companion_60 { + constructor() { + Companion_instance_60 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new LinkedHashMapSerializer(StringSerializer_getInstance(), get_nullable($serializer_getInstance_48()))]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/google.protobuf.Struct'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_47(); + } + } + class $serializer_47 { + constructor() { + $serializer_instance_47 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.google.protobuf.KStruct', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('fields', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_60().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp6_cached = Companion_getInstance_60().$childSerializers_1; + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KStruct.new_com_google_protobuf_KStruct_la2vw5_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_clhbmp_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_60().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.fields, emptyMap())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.fields); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_clhbmp_k$(encoder, value instanceof KStruct ? value : THROW_CCE()); + } + } + class KStruct { + constructor(fields) { + Companion_getInstance_60(); + fields = fields === VOID ? emptyMap() : fields; + this.fields = fields; + } + get_fields_dbuqbm_k$() { + return this.fields; + } + component1_7eebsc_k$() { + return this.fields; + } + copy_59t7pm_k$(fields) { + return new KStruct(fields); + } + copy(fields, $super) { + fields = fields === VOID ? this.fields : fields; + return this.copy_59t7pm_k$(fields); + } + toString() { + return 'KStruct(fields=' + this.fields + ')'; + } + hashCode() { + return hashCode(this.fields); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KStruct)) + return false; + var tmp0_other_with_cast = other instanceof KStruct ? other : THROW_CCE(); + if (!equals(this.fields, tmp0_other_with_cast.fields)) + return false; + return true; + } + static new_com_google_protobuf_KStruct_la2vw5_k$(seen1, fields, serializationConstructorMarker) { + Companion_getInstance_60(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_47().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.fields = emptyMap(); + else + $this.fields = fields; + return $this; + } + } + class KKind { + constructor(value) { + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + } + class KNullValue_0 extends KKind { + constructor() { + KNullValue_instance = null; + super(0); + KNullValue_instance = this; + } + } + class KNumberValue extends KKind { + constructor() { + KNumberValue_instance = null; + super(1); + KNumberValue_instance = this; + } + } + class KStringValue extends KKind { + constructor() { + KStringValue_instance = null; + super(2); + KStringValue_instance = this; + } + } + class KBoolValue extends KKind { + constructor() { + KBoolValue_instance = null; + super(3); + KBoolValue_instance = this; + } + } + class KStructValue extends KKind { + constructor() { + KStructValue_instance = null; + super(4); + KStructValue_instance = this; + } + } + class KListValue extends KKind { + constructor() { + KListValue_instance = null; + super(5); + KListValue_instance = this; + } + } + class Companion_61 { + constructor() { + Companion_instance_61 = this; + var tmp = this; + tmp.kindValues$delegate_1 = lazy_0(KValue$Companion$kindValues$delegate$lambda); + this.targetPath = '/google.protobuf.Value'; + } + get_kindValues_xk97dt_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.kindValues$delegate_1; + var thisRef = this; + var property = kindValues$factory(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_48(); + } + get kindValues() { + return this.get_kindValues_xk97dt_k$(); + } + } + class $serializer_48 { + constructor() { + $serializer_instance_48 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.google.protobuf.KValue', this, 6); + tmp0_serialDesc.addElement_5pzumi_k$('nullValue', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('numberValue', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('stringValue', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('boolValue', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('structValue', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('listValue', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable(IntSerializer_getInstance()), get_nullable(DoubleSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(BooleanSerializer_getInstance()), get_nullable($serializer_getInstance_47()), get_nullable($serializer_getInstance_49())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_transient0 = 0; + var tmp11_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp11_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, IntSerializer_getInstance(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, DoubleSerializer_getInstance(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, BooleanSerializer_getInstance(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_47(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_49(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + } else + while (tmp1_flag) { + tmp2_index = tmp11_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, IntSerializer_getInstance(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, DoubleSerializer_getInstance(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, BooleanSerializer_getInstance(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_47(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_49(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp11_input.endStructure_1xqz0n_k$(tmp0_desc); + return KValue.new_com_google_protobuf_KValue_b27oyg_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); + } + serialize_y04rtr_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.nullValue_1 === 0)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, IntSerializer_getInstance(), value.nullValue_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.numberValue_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, DoubleSerializer_getInstance(), value.numberValue_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.stringValue_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, StringSerializer_getInstance(), value.stringValue_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.boolValue_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, BooleanSerializer_getInstance(), value.boolValue_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.structValue_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, $serializer_getInstance_47(), value.structValue_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.listValue_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 5, $serializer_getInstance_49(), value.listValue_1); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_y04rtr_k$(encoder, value instanceof KValue ? value : THROW_CCE()); + } + } + class KValue { + constructor(nullValue, numberValue, stringValue, boolValue, structValue, listValue) { + Companion_getInstance_61(); + nullValue = nullValue === VOID ? 0 : nullValue; + numberValue = numberValue === VOID ? null : numberValue; + stringValue = stringValue === VOID ? null : stringValue; + boolValue = boolValue === VOID ? null : boolValue; + structValue = structValue === VOID ? null : structValue; + listValue = listValue === VOID ? null : listValue; + this.nullValue_1 = nullValue; + this.numberValue_1 = numberValue; + this.stringValue_1 = stringValue; + this.boolValue_1 = boolValue; + this.structValue_1 = structValue; + this.listValue_1 = listValue; + var tmp = this; + tmp.kindNumber$delegate_1 = lazy_0(KValue$kindNumber$delegate$lambda(this)); + } + kindValue() { + if (!(this.nullValue_1 == null)) { + var tmp = this.nullValue_1; + return (tmp == null ? true : !(tmp == null)) ? tmp : null; + } else if (!(this.numberValue_1 == null)) { + var tmp_0 = this.numberValue_1; + return (tmp_0 == null ? true : !(tmp_0 == null)) ? tmp_0 : null; + } else if (!(this.stringValue_1 == null)) { + var tmp_1 = this.stringValue_1; + return (tmp_1 == null ? true : !(tmp_1 == null)) ? tmp_1 : null; + } else if (!(this.boolValue_1 == null)) { + var tmp_2 = this.boolValue_1; + return (tmp_2 == null ? true : !(tmp_2 == null)) ? tmp_2 : null; + } else if (!(this.structValue_1 == null)) { + var tmp_3 = this.structValue_1; + return (tmp_3 == null ? true : !(tmp_3 == null)) ? tmp_3 : null; + } else if (!(this.listValue_1 == null)) { + var tmp_4 = this.listValue_1; + return (tmp_4 == null ? true : !(tmp_4 == null)) ? tmp_4 : null; + } else { + return null; + } + } + kindTypeJs() { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = Companion_getInstance_61().kindValues; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.google.protobuf.KValue.kindType.' call + var it = element; + tmp$ret$0 = it.value === _get_kindNumber__e1o5ri(this); + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + return tmp$ret$1; + } + copy_tgws7a_k$(nullValue, numberValue, stringValue, boolValue, structValue, listValue) { + return new KValue(nullValue, numberValue, stringValue, boolValue, structValue, listValue); + } + copy(nullValue, numberValue, stringValue, boolValue, structValue, listValue, $super) { + nullValue = nullValue === VOID ? this.nullValue_1 : nullValue; + numberValue = numberValue === VOID ? this.numberValue_1 : numberValue; + stringValue = stringValue === VOID ? this.stringValue_1 : stringValue; + boolValue = boolValue === VOID ? this.boolValue_1 : boolValue; + structValue = structValue === VOID ? this.structValue_1 : structValue; + listValue = listValue === VOID ? this.listValue_1 : listValue; + return this.copy_tgws7a_k$(nullValue, numberValue, stringValue, boolValue, structValue, listValue); + } + toString() { + return 'KValue(nullValue=' + this.nullValue_1 + ', numberValue=' + this.numberValue_1 + ', stringValue=' + this.stringValue_1 + ', boolValue=' + this.boolValue_1 + ', structValue=' + this.structValue_1 + ', listValue=' + this.listValue_1 + ')'; + } + hashCode() { + var result = this.nullValue_1 == null ? 0 : this.nullValue_1; + result = imul(result, 31) + (this.numberValue_1 == null ? 0 : getNumberHashCode(this.numberValue_1)) | 0; + result = imul(result, 31) + (this.stringValue_1 == null ? 0 : getStringHashCode(this.stringValue_1)) | 0; + result = imul(result, 31) + (this.boolValue_1 == null ? 0 : getBooleanHashCode(this.boolValue_1)) | 0; + result = imul(result, 31) + (this.structValue_1 == null ? 0 : this.structValue_1.hashCode()) | 0; + result = imul(result, 31) + (this.listValue_1 == null ? 0 : this.listValue_1.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KValue)) + return false; + var tmp0_other_with_cast = other instanceof KValue ? other : THROW_CCE(); + if (!(this.nullValue_1 == tmp0_other_with_cast.nullValue_1)) + return false; + if (!equals(this.numberValue_1, tmp0_other_with_cast.numberValue_1)) + return false; + if (!(this.stringValue_1 == tmp0_other_with_cast.stringValue_1)) + return false; + if (!(this.boolValue_1 == tmp0_other_with_cast.boolValue_1)) + return false; + if (!equals(this.structValue_1, tmp0_other_with_cast.structValue_1)) + return false; + if (!equals(this.listValue_1, tmp0_other_with_cast.listValue_1)) + return false; + return true; + } + static new_com_google_protobuf_KValue_b27oyg_k$(seen1, nullValue, numberValue, stringValue, boolValue, structValue, listValue, serializationConstructorMarker) { + Companion_getInstance_61(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_48().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.nullValue_1 = 0; + else + $this.nullValue_1 = nullValue; + if (0 === (seen1 & 2)) + $this.numberValue_1 = null; + else + $this.numberValue_1 = numberValue; + if (0 === (seen1 & 4)) + $this.stringValue_1 = null; + else + $this.stringValue_1 = stringValue; + if (0 === (seen1 & 8)) + $this.boolValue_1 = null; + else + $this.boolValue_1 = boolValue; + if (0 === (seen1 & 16)) + $this.structValue_1 = null; + else + $this.structValue_1 = structValue; + if (0 === (seen1 & 32)) + $this.listValue_1 = null; + else + $this.listValue_1 = listValue; + var tmp = $this; + tmp.kindNumber$delegate_1 = lazy_0(KValue$_init_$lambda_xxcqh1($this)); + return $this; + } + } + class Companion_62 { + constructor() { + Companion_instance_62 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer($serializer_getInstance_48())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/google.protobuf.ListValue'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_49(); + } + } + class $serializer_49 { + constructor() { + $serializer_instance_49 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.google.protobuf.KListValue', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('values', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_62().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp6_cached = Companion_getInstance_62().$childSerializers_1; + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KListValue_0.new_com_google_protobuf_KListValue_7ldqfw_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_5zysir_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_62().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.values, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.values); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_5zysir_k$(encoder, value instanceof KListValue_0 ? value : THROW_CCE()); + } + } + class KListValue_0 { + constructor(values) { + Companion_getInstance_62(); + values = values === VOID ? emptyList() : values; + this.values = values; + } + get_values_ksazhn_k$() { + return this.values; + } + component1_7eebsc_k$() { + return this.values; + } + copy_ves4nr_k$(values) { + return new KListValue_0(values); + } + copy(values, $super) { + values = values === VOID ? this.values : values; + return this.copy_ves4nr_k$(values); + } + toString() { + return 'KListValue(values=' + this.values + ')'; + } + hashCode() { + return hashCode(this.values); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KListValue_0)) + return false; + var tmp0_other_with_cast = other instanceof KListValue_0 ? other : THROW_CCE(); + if (!equals(this.values, tmp0_other_with_cast.values)) + return false; + return true; + } + static new_com_google_protobuf_KListValue_7ldqfw_k$(seen1, values, serializationConstructorMarker) { + Companion_getInstance_62(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_49().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.values = emptyList(); + else + $this.values = values; + return $this; + } + } + class Companion_63 { + constructor() { + this.targetPath = '/google.protobuf.Timestamp'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_50(); + } + } + class $serializer_50 { + constructor() { + $serializer_instance_50 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.google.protobuf.KTimestamp', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('seconds', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('nanos', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = 0; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KTimestamp.new_com_google_protobuf_KTimestamp_o846gs_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_hthzl2_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.seconds.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.seconds); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.nanos === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.nanos); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_hthzl2_k$(encoder, value instanceof KTimestamp ? value : THROW_CCE()); + } + } + class KTimestamp { + constructor(seconds, nanos) { + Companion_instance_63; + seconds = seconds === VOID ? new Long(0, 0) : seconds; + nanos = nanos === VOID ? 0 : nanos; + this.seconds = seconds; + this.nanos = nanos; + } + get_seconds_xuhyfq_k$() { + return this.seconds; + } + get_nanos_ivn312_k$() { + return this.nanos; + } + component1_7eebsc_k$() { + return this.seconds; + } + component2_7eebsb_k$() { + return this.nanos; + } + copy_hlxmm3_k$(seconds, nanos) { + return new KTimestamp(seconds, nanos); + } + copy(seconds, nanos, $super) { + seconds = seconds === VOID ? this.seconds : seconds; + nanos = nanos === VOID ? this.nanos : nanos; + return this.copy_hlxmm3_k$(seconds, nanos); + } + toString() { + return 'KTimestamp(seconds=' + this.seconds.toString() + ', nanos=' + this.nanos + ')'; + } + hashCode() { + var result = this.seconds.hashCode(); + result = imul(result, 31) + this.nanos | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KTimestamp)) + return false; + var tmp0_other_with_cast = other instanceof KTimestamp ? other : THROW_CCE(); + if (!this.seconds.equals(tmp0_other_with_cast.seconds)) + return false; + if (!(this.nanos === tmp0_other_with_cast.nanos)) + return false; + return true; + } + static new_com_google_protobuf_KTimestamp_o846gs_k$(seen1, seconds, nanos, serializationConstructorMarker) { + Companion_instance_63; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_50().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.seconds = new Long(0, 0); + else + $this.seconds = seconds; + if (0 === (seen1 & 2)) + $this.nanos = 0; + else + $this.nanos = nanos; + return $this; + } + } + class Companion_64 { + constructor() { + Companion_instance_64 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KSyntax$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KSyntax$Companion$_anonymous__4b87vj); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_7(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.google.protobuf.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KSyntax_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.google.protobuf.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KSyntax with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_7(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_51 { + constructor() { + $serializer_instance_51 = this; + var tmp0_serialDesc = new EnumDescriptor('com.google.protobuf.KSyntax', 3); + tmp0_serialDesc.addElement_5pzumi_k$('PROTO2', false); + tmp0_serialDesc.addElement_5pzumi_k$('PROTO3', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_7()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_m44e0q_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_m44e0q_k$(encoder, value instanceof KSyntax ? value : THROW_CCE()); + } + } + class KSyntax extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_65 { + constructor() { + Companion_instance_65 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, new ArrayListSerializer($serializer_getInstance_55()), new ArrayListSerializer(StringSerializer_getInstance()), new ArrayListSerializer($serializer_getInstance_58()), null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/google.protobuf.Type'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_52(); + } + } + class $serializer_52 { + constructor() { + $serializer_instance_52 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.google.protobuf.KType', this, 6); + tmp0_serialDesc.addElement_5pzumi_k$('name', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('fields', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('oneofs', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('options', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('sourceContext', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('syntax', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_65().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), tmp0_cached[1], tmp0_cached[2], tmp0_cached[3], get_nullable($serializer_getInstance_44()), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = 0; + var tmp10_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp11_cached = Companion_getInstance_65().$childSerializers_1; + if (tmp10_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp10_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp11_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp10_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp11_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp10_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 3, tmp11_cached[3], tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_44(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + } else + while (tmp1_flag) { + tmp2_index = tmp10_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp10_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp11_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp10_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp11_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp10_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 3, tmp11_cached[3], tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_44(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp10_input.endStructure_1xqz0n_k$(tmp0_desc); + return KType_0.new_com_google_protobuf_KType_nvdyc5_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); + } + serialize_cbjhwc_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_65().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.name === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.name); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !equals(value.fields, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 1, tmp2_cached[1], value.fields); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !equals(value.oneofs, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 2, tmp2_cached[2], value.oneofs); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !equals(value.options, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 3, tmp2_cached[3], value.options); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.sourceContext == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, $serializer_getInstance_44(), value.sourceContext); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.syntax === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 5, value.syntax); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_cbjhwc_k$(encoder, value instanceof KType_0 ? value : THROW_CCE()); + } + } + class KType_0 { + constructor(name, fields, oneofs, options, sourceContext, syntax) { + Companion_getInstance_65(); + name = name === VOID ? '' : name; + fields = fields === VOID ? emptyList() : fields; + oneofs = oneofs === VOID ? emptyList() : oneofs; + options = options === VOID ? emptyList() : options; + sourceContext = sourceContext === VOID ? null : sourceContext; + syntax = syntax === VOID ? 0 : syntax; + this.name = name; + this.fields = fields; + this.oneofs = oneofs; + this.options = options; + this.sourceContext = sourceContext; + this.syntax = syntax; + } + get_name_woqyms_k$() { + return this.name; + } + get_fields_dbuqbm_k$() { + return this.fields; + } + get_oneofs_ho0d3z_k$() { + return this.oneofs; + } + get_options_jecmyz_k$() { + return this.options; + } + get_sourceContext_g32ju3_k$() { + return this.sourceContext; + } + get_syntax_jqefos_k$() { + return this.syntax; + } + syntaxEnum() { + return Companion_getInstance_64().fromValue(this.syntax); + } + component1_7eebsc_k$() { + return this.name; + } + component2_7eebsb_k$() { + return this.fields; + } + component3_7eebsa_k$() { + return this.oneofs; + } + component4_7eebs9_k$() { + return this.options; + } + component5_7eebs8_k$() { + return this.sourceContext; + } + component6_7eebs7_k$() { + return this.syntax; + } + copy_22mp9e_k$(name, fields, oneofs, options, sourceContext, syntax) { + return new KType_0(name, fields, oneofs, options, sourceContext, syntax); + } + copy(name, fields, oneofs, options, sourceContext, syntax, $super) { + name = name === VOID ? this.name : name; + fields = fields === VOID ? this.fields : fields; + oneofs = oneofs === VOID ? this.oneofs : oneofs; + options = options === VOID ? this.options : options; + sourceContext = sourceContext === VOID ? this.sourceContext : sourceContext; + syntax = syntax === VOID ? this.syntax : syntax; + return this.copy_22mp9e_k$(name, fields, oneofs, options, sourceContext, syntax); + } + toString() { + return 'KType(name=' + this.name + ', fields=' + this.fields + ', oneofs=' + this.oneofs + ', options=' + this.options + ', sourceContext=' + this.sourceContext + ', syntax=' + this.syntax + ')'; + } + hashCode() { + var result = getStringHashCode(this.name); + result = imul(result, 31) + hashCode(this.fields) | 0; + result = imul(result, 31) + hashCode(this.oneofs) | 0; + result = imul(result, 31) + hashCode(this.options) | 0; + result = imul(result, 31) + (this.sourceContext == null ? 0 : this.sourceContext.hashCode()) | 0; + result = imul(result, 31) + this.syntax | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KType_0)) + return false; + var tmp0_other_with_cast = other instanceof KType_0 ? other : THROW_CCE(); + if (!(this.name === tmp0_other_with_cast.name)) + return false; + if (!equals(this.fields, tmp0_other_with_cast.fields)) + return false; + if (!equals(this.oneofs, tmp0_other_with_cast.oneofs)) + return false; + if (!equals(this.options, tmp0_other_with_cast.options)) + return false; + if (!equals(this.sourceContext, tmp0_other_with_cast.sourceContext)) + return false; + if (!(this.syntax === tmp0_other_with_cast.syntax)) + return false; + return true; + } + static new_com_google_protobuf_KType_nvdyc5_k$(seen1, name, fields, oneofs, options, sourceContext, syntax, serializationConstructorMarker) { + Companion_getInstance_65(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_52().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.name = ''; + else + $this.name = name; + if (0 === (seen1 & 2)) + $this.fields = emptyList(); + else + $this.fields = fields; + if (0 === (seen1 & 4)) + $this.oneofs = emptyList(); + else + $this.oneofs = oneofs; + if (0 === (seen1 & 8)) + $this.options = emptyList(); + else + $this.options = options; + if (0 === (seen1 & 16)) + $this.sourceContext = null; + else + $this.sourceContext = sourceContext; + if (0 === (seen1 & 32)) + $this.syntax = 0; + else + $this.syntax = syntax; + return $this; + } + } + class Companion_66 { + constructor() { + Companion_instance_66 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KField$KKind$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KField$KKind$Companion$_anonymous__potuqj); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_8(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.google.protobuf.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KKind_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.google.protobuf.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KKind with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_8(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_53 { + constructor() { + $serializer_instance_53 = this; + var tmp0_serialDesc = new EnumDescriptor('com.google.protobuf.KField.KKind', 20); + tmp0_serialDesc.addElement_5pzumi_k$('TYPE_UNKNOWN', false); + tmp0_serialDesc.addElement_5pzumi_k$('TYPE_DOUBLE', false); + tmp0_serialDesc.addElement_5pzumi_k$('TYPE_FLOAT', false); + tmp0_serialDesc.addElement_5pzumi_k$('TYPE_INT64', false); + tmp0_serialDesc.addElement_5pzumi_k$('TYPE_UINT64', false); + tmp0_serialDesc.addElement_5pzumi_k$('TYPE_INT32', false); + tmp0_serialDesc.addElement_5pzumi_k$('TYPE_FIXED64', false); + tmp0_serialDesc.addElement_5pzumi_k$('TYPE_FIXED32', false); + tmp0_serialDesc.addElement_5pzumi_k$('TYPE_BOOL', false); + tmp0_serialDesc.addElement_5pzumi_k$('TYPE_STRING', false); + tmp0_serialDesc.addElement_5pzumi_k$('TYPE_GROUP', false); + tmp0_serialDesc.addElement_5pzumi_k$('TYPE_MESSAGE', false); + tmp0_serialDesc.addElement_5pzumi_k$('TYPE_BYTES', false); + tmp0_serialDesc.addElement_5pzumi_k$('TYPE_UINT32', false); + tmp0_serialDesc.addElement_5pzumi_k$('TYPE_ENUM', false); + tmp0_serialDesc.addElement_5pzumi_k$('TYPE_SFIXED32', false); + tmp0_serialDesc.addElement_5pzumi_k$('TYPE_SFIXED64', false); + tmp0_serialDesc.addElement_5pzumi_k$('TYPE_SINT32', false); + tmp0_serialDesc.addElement_5pzumi_k$('TYPE_SINT64', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_8()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_va8n84_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_va8n84_k$(encoder, value instanceof KKind_0 ? value : THROW_CCE()); + } + } + class Companion_67 { + constructor() { + Companion_instance_67 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KField$KCardinality$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KField$KCardinality$Companion$_anonymous__j6g97t); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_9(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.google.protobuf.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KCardinality_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.google.protobuf.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KCardinality with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_9(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_54 { + constructor() { + $serializer_instance_54 = this; + var tmp0_serialDesc = new EnumDescriptor('com.google.protobuf.KField.KCardinality', 5); + tmp0_serialDesc.addElement_5pzumi_k$('UNKNOWN', false); + tmp0_serialDesc.addElement_5pzumi_k$('OPTIONAL', false); + tmp0_serialDesc.addElement_5pzumi_k$('REQUIRED', false); + tmp0_serialDesc.addElement_5pzumi_k$('REPEATED', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_9()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_g08wti_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_g08wti_k$(encoder, value instanceof KCardinality ? value : THROW_CCE()); + } + } + class KKind_0 extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class KCardinality extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_68 { + constructor() { + Companion_instance_68 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, null, null, null, null, new ArrayListSerializer($serializer_getInstance_58()), null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/google.protobuf.Field'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_55(); + } + } + class $serializer_55 { + constructor() { + $serializer_instance_55 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.google.protobuf.KField', this, 10); + tmp0_serialDesc.addElement_5pzumi_k$('kind', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('cardinality', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('number', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('name', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('typeUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('oneofIndex', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('packed', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('options', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('jsonName', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('defaultValue', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_68().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), BooleanSerializer_getInstance(), tmp0_cached[7], StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = 0; + var tmp6_local2 = 0; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = 0; + var tmp10_local6 = false; + var tmp11_local7 = null; + var tmp12_local8 = null; + var tmp13_local9 = null; + var tmp14_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp15_cached = Companion_getInstance_68().$childSerializers_1; + if (tmp14_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp14_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp14_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 7, tmp15_cached[7], tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + } else + while (tmp1_flag) { + tmp2_index = tmp14_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp14_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp14_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 7, tmp15_cached[7], tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp14_input.endStructure_1xqz0n_k$(tmp0_desc); + return KField.new_com_google_protobuf_KField_qfwr3m_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, null); + } + serialize_eu177a_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_68().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.kind === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.kind); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.cardinality === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.cardinality); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.number === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.number); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.name === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.name); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.typeUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.typeUrl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.oneofIndex === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 5, value.oneofIndex); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.packed === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 6, value.packed); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !equals(value.options, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 7, tmp2_cached[7], value.options); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.jsonName === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 8, value.jsonName); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.defaultValue === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 9, value.defaultValue); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_eu177a_k$(encoder, value instanceof KField ? value : THROW_CCE()); + } + } + class KField { + constructor(kind, cardinality, number, name, typeUrl, oneofIndex, packed, options, jsonName, defaultValue) { + Companion_getInstance_68(); + kind = kind === VOID ? 0 : kind; + cardinality = cardinality === VOID ? 0 : cardinality; + number = number === VOID ? 0 : number; + name = name === VOID ? '' : name; + typeUrl = typeUrl === VOID ? '' : typeUrl; + oneofIndex = oneofIndex === VOID ? 0 : oneofIndex; + packed = packed === VOID ? false : packed; + options = options === VOID ? emptyList() : options; + jsonName = jsonName === VOID ? '' : jsonName; + defaultValue = defaultValue === VOID ? '' : defaultValue; + this.kind = kind; + this.cardinality = cardinality; + this.number = number; + this.name = name; + this.typeUrl = typeUrl; + this.oneofIndex = oneofIndex; + this.packed = packed; + this.options = options; + this.jsonName = jsonName; + this.defaultValue = defaultValue; + } + get_kind_wop7ml_k$() { + return this.kind; + } + get_cardinality_rvf3fp_k$() { + return this.cardinality; + } + get_number_hay53m_k$() { + return this.number; + } + get_name_woqyms_k$() { + return this.name; + } + get_typeUrl_cucxsk_k$() { + return this.typeUrl; + } + get_oneofIndex_2n2a8y_k$() { + return this.oneofIndex; + } + get_packed_hxvatd_k$() { + return this.packed; + } + get_options_jecmyz_k$() { + return this.options; + } + get_jsonName_6k8rq4_k$() { + return this.jsonName; + } + get_defaultValue_6cv1mv_k$() { + return this.defaultValue; + } + kindEnum() { + return Companion_getInstance_66().fromValue(this.kind); + } + cardinalityEnum() { + return Companion_getInstance_67().fromValue(this.cardinality); + } + component1_7eebsc_k$() { + return this.kind; + } + component2_7eebsb_k$() { + return this.cardinality; + } + component3_7eebsa_k$() { + return this.number; + } + component4_7eebs9_k$() { + return this.name; + } + component5_7eebs8_k$() { + return this.typeUrl; + } + component6_7eebs7_k$() { + return this.oneofIndex; + } + component7_7eebs6_k$() { + return this.packed; + } + component8_7eebs5_k$() { + return this.options; + } + component9_7eebs4_k$() { + return this.jsonName; + } + component10_gazzfo_k$() { + return this.defaultValue; + } + copy_ftd22c_k$(kind, cardinality, number, name, typeUrl, oneofIndex, packed, options, jsonName, defaultValue) { + return new KField(kind, cardinality, number, name, typeUrl, oneofIndex, packed, options, jsonName, defaultValue); + } + copy(kind, cardinality, number, name, typeUrl, oneofIndex, packed, options, jsonName, defaultValue, $super) { + kind = kind === VOID ? this.kind : kind; + cardinality = cardinality === VOID ? this.cardinality : cardinality; + number = number === VOID ? this.number : number; + name = name === VOID ? this.name : name; + typeUrl = typeUrl === VOID ? this.typeUrl : typeUrl; + oneofIndex = oneofIndex === VOID ? this.oneofIndex : oneofIndex; + packed = packed === VOID ? this.packed : packed; + options = options === VOID ? this.options : options; + jsonName = jsonName === VOID ? this.jsonName : jsonName; + defaultValue = defaultValue === VOID ? this.defaultValue : defaultValue; + return this.copy_ftd22c_k$(kind, cardinality, number, name, typeUrl, oneofIndex, packed, options, jsonName, defaultValue); + } + toString() { + return 'KField(kind=' + this.kind + ', cardinality=' + this.cardinality + ', number=' + this.number + ', name=' + this.name + ', typeUrl=' + this.typeUrl + ', oneofIndex=' + this.oneofIndex + ', packed=' + this.packed + ', options=' + this.options + ', jsonName=' + this.jsonName + ', defaultValue=' + this.defaultValue + ')'; + } + hashCode() { + var result = this.kind; + result = imul(result, 31) + this.cardinality | 0; + result = imul(result, 31) + this.number | 0; + result = imul(result, 31) + getStringHashCode(this.name) | 0; + result = imul(result, 31) + getStringHashCode(this.typeUrl) | 0; + result = imul(result, 31) + this.oneofIndex | 0; + result = imul(result, 31) + getBooleanHashCode(this.packed) | 0; + result = imul(result, 31) + hashCode(this.options) | 0; + result = imul(result, 31) + getStringHashCode(this.jsonName) | 0; + result = imul(result, 31) + getStringHashCode(this.defaultValue) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KField)) + return false; + var tmp0_other_with_cast = other instanceof KField ? other : THROW_CCE(); + if (!(this.kind === tmp0_other_with_cast.kind)) + return false; + if (!(this.cardinality === tmp0_other_with_cast.cardinality)) + return false; + if (!(this.number === tmp0_other_with_cast.number)) + return false; + if (!(this.name === tmp0_other_with_cast.name)) + return false; + if (!(this.typeUrl === tmp0_other_with_cast.typeUrl)) + return false; + if (!(this.oneofIndex === tmp0_other_with_cast.oneofIndex)) + return false; + if (!(this.packed === tmp0_other_with_cast.packed)) + return false; + if (!equals(this.options, tmp0_other_with_cast.options)) + return false; + if (!(this.jsonName === tmp0_other_with_cast.jsonName)) + return false; + if (!(this.defaultValue === tmp0_other_with_cast.defaultValue)) + return false; + return true; + } + static new_com_google_protobuf_KField_qfwr3m_k$(seen1, kind, cardinality, number, name, typeUrl, oneofIndex, packed, options, jsonName, defaultValue, serializationConstructorMarker) { + Companion_getInstance_68(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_55().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.kind = 0; + else + $this.kind = kind; + if (0 === (seen1 & 2)) + $this.cardinality = 0; + else + $this.cardinality = cardinality; + if (0 === (seen1 & 4)) + $this.number = 0; + else + $this.number = number; + if (0 === (seen1 & 8)) + $this.name = ''; + else + $this.name = name; + if (0 === (seen1 & 16)) + $this.typeUrl = ''; + else + $this.typeUrl = typeUrl; + if (0 === (seen1 & 32)) + $this.oneofIndex = 0; + else + $this.oneofIndex = oneofIndex; + if (0 === (seen1 & 64)) + $this.packed = false; + else + $this.packed = packed; + if (0 === (seen1 & 128)) + $this.options = emptyList(); + else + $this.options = options; + if (0 === (seen1 & 256)) + $this.jsonName = ''; + else + $this.jsonName = jsonName; + if (0 === (seen1 & 512)) + $this.defaultValue = ''; + else + $this.defaultValue = defaultValue; + return $this; + } + } + class Companion_69 { + constructor() { + Companion_instance_69 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, new ArrayListSerializer($serializer_getInstance_57()), new ArrayListSerializer($serializer_getInstance_58()), null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/google.protobuf.Enum'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_56(); + } + } + class $serializer_56 { + constructor() { + $serializer_instance_56 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.google.protobuf.KEnum', this, 5); + tmp0_serialDesc.addElement_5pzumi_k$('name', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('enumvalue', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('options', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('sourceContext', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('syntax', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_69().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), tmp0_cached[1], tmp0_cached[2], get_nullable($serializer_getInstance_44()), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = 0; + var tmp9_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp10_cached = Companion_getInstance_69().$childSerializers_1; + if (tmp9_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp9_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp10_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp9_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp10_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_44(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + } else + while (tmp1_flag) { + tmp2_index = tmp9_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp9_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp10_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp9_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp10_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_44(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp9_input.endStructure_1xqz0n_k$(tmp0_desc); + return KEnum.new_com_google_protobuf_KEnum_42ahxd_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); + } + serialize_hvnfp1_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_69().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.name === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.name); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !equals(value.enumvalue, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 1, tmp2_cached[1], value.enumvalue); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !equals(value.options, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 2, tmp2_cached[2], value.options); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.sourceContext == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_44(), value.sourceContext); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.syntax === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 4, value.syntax); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_hvnfp1_k$(encoder, value instanceof KEnum ? value : THROW_CCE()); + } + } + class KEnum { + constructor(name, enumvalue, options, sourceContext, syntax) { + Companion_getInstance_69(); + name = name === VOID ? '' : name; + enumvalue = enumvalue === VOID ? emptyList() : enumvalue; + options = options === VOID ? emptyList() : options; + sourceContext = sourceContext === VOID ? null : sourceContext; + syntax = syntax === VOID ? 0 : syntax; + this.name = name; + this.enumvalue = enumvalue; + this.options = options; + this.sourceContext = sourceContext; + this.syntax = syntax; + } + get_name_woqyms_k$() { + return this.name; + } + get_enumvalue_cuv8mf_k$() { + return this.enumvalue; + } + get_options_jecmyz_k$() { + return this.options; + } + get_sourceContext_g32ju3_k$() { + return this.sourceContext; + } + get_syntax_jqefos_k$() { + return this.syntax; + } + syntaxEnum() { + return Companion_getInstance_64().fromValue(this.syntax); + } + component1_7eebsc_k$() { + return this.name; + } + component2_7eebsb_k$() { + return this.enumvalue; + } + component3_7eebsa_k$() { + return this.options; + } + component4_7eebs9_k$() { + return this.sourceContext; + } + component5_7eebs8_k$() { + return this.syntax; + } + copy_nzfjja_k$(name, enumvalue, options, sourceContext, syntax) { + return new KEnum(name, enumvalue, options, sourceContext, syntax); + } + copy(name, enumvalue, options, sourceContext, syntax, $super) { + name = name === VOID ? this.name : name; + enumvalue = enumvalue === VOID ? this.enumvalue : enumvalue; + options = options === VOID ? this.options : options; + sourceContext = sourceContext === VOID ? this.sourceContext : sourceContext; + syntax = syntax === VOID ? this.syntax : syntax; + return this.copy_nzfjja_k$(name, enumvalue, options, sourceContext, syntax); + } + toString() { + return 'KEnum(name=' + this.name + ', enumvalue=' + this.enumvalue + ', options=' + this.options + ', sourceContext=' + this.sourceContext + ', syntax=' + this.syntax + ')'; + } + hashCode() { + var result = getStringHashCode(this.name); + result = imul(result, 31) + hashCode(this.enumvalue) | 0; + result = imul(result, 31) + hashCode(this.options) | 0; + result = imul(result, 31) + (this.sourceContext == null ? 0 : this.sourceContext.hashCode()) | 0; + result = imul(result, 31) + this.syntax | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KEnum)) + return false; + var tmp0_other_with_cast = other instanceof KEnum ? other : THROW_CCE(); + if (!(this.name === tmp0_other_with_cast.name)) + return false; + if (!equals(this.enumvalue, tmp0_other_with_cast.enumvalue)) + return false; + if (!equals(this.options, tmp0_other_with_cast.options)) + return false; + if (!equals(this.sourceContext, tmp0_other_with_cast.sourceContext)) + return false; + if (!(this.syntax === tmp0_other_with_cast.syntax)) + return false; + return true; + } + static new_com_google_protobuf_KEnum_42ahxd_k$(seen1, name, enumvalue, options, sourceContext, syntax, serializationConstructorMarker) { + Companion_getInstance_69(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_56().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.name = ''; + else + $this.name = name; + if (0 === (seen1 & 2)) + $this.enumvalue = emptyList(); + else + $this.enumvalue = enumvalue; + if (0 === (seen1 & 4)) + $this.options = emptyList(); + else + $this.options = options; + if (0 === (seen1 & 8)) + $this.sourceContext = null; + else + $this.sourceContext = sourceContext; + if (0 === (seen1 & 16)) + $this.syntax = 0; + else + $this.syntax = syntax; + return $this; + } + } + class Companion_70 { + constructor() { + Companion_instance_70 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, new ArrayListSerializer($serializer_getInstance_58())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/google.protobuf.EnumValue'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_57(); + } + } + class $serializer_57 { + constructor() { + $serializer_instance_57 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.google.protobuf.KEnumValue', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('name', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('number', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('options', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_70().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), IntSerializer_getInstance(), tmp0_cached[2]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = 0; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp8_cached = Companion_getInstance_70().$childSerializers_1; + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp8_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp8_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KEnumValue.new_com_google_protobuf_KEnumValue_f3rnvi_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_fh1j0g_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_70().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.name === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.name); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.number === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.number); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !equals(value.options, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 2, tmp2_cached[2], value.options); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_fh1j0g_k$(encoder, value instanceof KEnumValue ? value : THROW_CCE()); + } + } + class KEnumValue { + constructor(name, number, options) { + Companion_getInstance_70(); + name = name === VOID ? '' : name; + number = number === VOID ? 0 : number; + options = options === VOID ? emptyList() : options; + this.name = name; + this.number = number; + this.options = options; + } + get_name_woqyms_k$() { + return this.name; + } + get_number_hay53m_k$() { + return this.number; + } + get_options_jecmyz_k$() { + return this.options; + } + component1_7eebsc_k$() { + return this.name; + } + component2_7eebsb_k$() { + return this.number; + } + component3_7eebsa_k$() { + return this.options; + } + copy_27ouo9_k$(name, number, options) { + return new KEnumValue(name, number, options); + } + copy(name, number, options, $super) { + name = name === VOID ? this.name : name; + number = number === VOID ? this.number : number; + options = options === VOID ? this.options : options; + return this.copy_27ouo9_k$(name, number, options); + } + toString() { + return 'KEnumValue(name=' + this.name + ', number=' + this.number + ', options=' + this.options + ')'; + } + hashCode() { + var result = getStringHashCode(this.name); + result = imul(result, 31) + this.number | 0; + result = imul(result, 31) + hashCode(this.options) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KEnumValue)) + return false; + var tmp0_other_with_cast = other instanceof KEnumValue ? other : THROW_CCE(); + if (!(this.name === tmp0_other_with_cast.name)) + return false; + if (!(this.number === tmp0_other_with_cast.number)) + return false; + if (!equals(this.options, tmp0_other_with_cast.options)) + return false; + return true; + } + static new_com_google_protobuf_KEnumValue_f3rnvi_k$(seen1, name, number, options, serializationConstructorMarker) { + Companion_getInstance_70(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_57().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.name = ''; + else + $this.name = name; + if (0 === (seen1 & 2)) + $this.number = 0; + else + $this.number = number; + if (0 === (seen1 & 4)) + $this.options = emptyList(); + else + $this.options = options; + return $this; + } + } + class Companion_71 { + constructor() { + this.targetPath = '/google.protobuf.Option'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_58(); + } + } + class $serializer_58 { + constructor() { + $serializer_instance_58 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.google.protobuf.KOption', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('name', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('value', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), get_nullable($serializer_getInstance())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KOption.new_com_google_protobuf_KOption_pf6th4_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_z04j9b_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.name === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.name); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.value == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance(), value.value); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_z04j9b_k$(encoder, value instanceof KOption ? value : THROW_CCE()); + } + } + class KOption { + constructor(name, value) { + Companion_instance_71; + name = name === VOID ? '' : name; + value = value === VOID ? null : value; + this.name = name; + this.value = value; + } + get_name_woqyms_k$() { + return this.name; + } + get_value_j01efc_k$() { + return this.value; + } + component1_7eebsc_k$() { + return this.name; + } + component2_7eebsb_k$() { + return this.value; + } + copy_cfhc9x_k$(name, value) { + return new KOption(name, value); + } + copy(name, value, $super) { + name = name === VOID ? this.name : name; + value = value === VOID ? this.value : value; + return this.copy_cfhc9x_k$(name, value); + } + toString() { + return 'KOption(name=' + this.name + ', value=' + this.value + ')'; + } + hashCode() { + var result = getStringHashCode(this.name); + result = imul(result, 31) + (this.value == null ? 0 : this.value.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KOption)) + return false; + var tmp0_other_with_cast = other instanceof KOption ? other : THROW_CCE(); + if (!(this.name === tmp0_other_with_cast.name)) + return false; + if (!equals(this.value, tmp0_other_with_cast.value)) + return false; + return true; + } + static new_com_google_protobuf_KOption_pf6th4_k$(seen1, name, value, serializationConstructorMarker) { + Companion_instance_71; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_58().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.name = ''; + else + $this.name = name; + if (0 === (seen1 & 2)) + $this.value = null; + else + $this.value = value; + return $this; + } + } + class Companion_72 { + constructor() { + this.targetPath = '/google.protobuf.DoubleValue'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_59(); + } + } + class $serializer_59 { + constructor() { + $serializer_instance_59 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.google.protobuf.KDoubleValue', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('value', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [DoubleSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0.0; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeDoubleElement_isei84_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeDoubleElement_isei84_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KDoubleValue.new_com_google_protobuf_KDoubleValue_1xhaya_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_4dccnk_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.value, 0.0)) { + tmp1_output.encodeDoubleElement_a6rqhe_k$(tmp0_desc, 0, value.value); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_4dccnk_k$(encoder, value instanceof KDoubleValue ? value : THROW_CCE()); + } + } + class KDoubleValue { + constructor(value) { + Companion_instance_72; + value = value === VOID ? 0.0 : value; + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + component1_7eebsc_k$() { + return this.value; + } + copy_rpdqz3_k$(value) { + return new KDoubleValue(value); + } + copy(value, $super) { + value = value === VOID ? this.value : value; + return this.copy_rpdqz3_k$(value); + } + toString() { + return 'KDoubleValue(value=' + this.value + ')'; + } + hashCode() { + return getNumberHashCode(this.value); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KDoubleValue)) + return false; + var tmp0_other_with_cast = other instanceof KDoubleValue ? other : THROW_CCE(); + if (!equals(this.value, tmp0_other_with_cast.value)) + return false; + return true; + } + static new_com_google_protobuf_KDoubleValue_1xhaya_k$(seen1, value, serializationConstructorMarker) { + Companion_instance_72; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_59().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.value = 0.0; + else + $this.value = value; + return $this; + } + } + class Companion_73 { + constructor() { + this.targetPath = '/google.protobuf.FloatValue'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_60(); + } + } + class $serializer_60 { + constructor() { + $serializer_instance_60 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.google.protobuf.KFloatValue', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('value', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [FloatSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0.0; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeFloatElement_p2q55h_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeFloatElement_p2q55h_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KFloatValue.new_com_google_protobuf_KFloatValue_uozih3_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_8mr9q9_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.value, 0.0)) { + tmp1_output.encodeFloatElement_oe8hn_k$(tmp0_desc, 0, value.value); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_8mr9q9_k$(encoder, value instanceof KFloatValue ? value : THROW_CCE()); + } + } + class KFloatValue { + constructor(value) { + Companion_instance_73; + value = value === VOID ? 0.0 : value; + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + component1_7eebsc_k$() { + return this.value; + } + copy_s06gv7_k$(value) { + return new KFloatValue(value); + } + copy(value, $super) { + value = value === VOID ? this.value : value; + return this.copy_s06gv7_k$(value); + } + toString() { + return 'KFloatValue(value=' + this.value + ')'; + } + hashCode() { + return getNumberHashCode(this.value); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KFloatValue)) + return false; + var tmp0_other_with_cast = other instanceof KFloatValue ? other : THROW_CCE(); + if (!equals(this.value, tmp0_other_with_cast.value)) + return false; + return true; + } + static new_com_google_protobuf_KFloatValue_uozih3_k$(seen1, value, serializationConstructorMarker) { + Companion_instance_73; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_60().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.value = 0.0; + else + $this.value = value; + return $this; + } + } + class Companion_74 { + constructor() { + this.targetPath = '/google.protobuf.Int64Value'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_61(); + } + } + class $serializer_61 { + constructor() { + $serializer_instance_61 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.google.protobuf.KInt64Value', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('value', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KInt64Value.new_com_google_protobuf_KInt64Value_9qqeu_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_wlbii6_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.value.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.value); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_wlbii6_k$(encoder, value instanceof KInt64Value ? value : THROW_CCE()); + } + } + class KInt64Value { + constructor(value) { + Companion_instance_74; + value = value === VOID ? new Long(0, 0) : value; + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + component1_7eebsc_k$() { + return this.value; + } + copy_5ymysz_k$(value) { + return new KInt64Value(value); + } + copy(value, $super) { + value = value === VOID ? this.value : value; + return this.copy_5ymysz_k$(value); + } + toString() { + return 'KInt64Value(value=' + this.value.toString() + ')'; + } + hashCode() { + return this.value.hashCode(); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KInt64Value)) + return false; + var tmp0_other_with_cast = other instanceof KInt64Value ? other : THROW_CCE(); + if (!this.value.equals(tmp0_other_with_cast.value)) + return false; + return true; + } + static new_com_google_protobuf_KInt64Value_9qqeu_k$(seen1, value, serializationConstructorMarker) { + Companion_instance_74; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_61().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.value = new Long(0, 0); + else + $this.value = value; + return $this; + } + } + class Companion_75 { + constructor() { + this.targetPath = '/google.protobuf.UInt64Value'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_62(); + } + } + class $serializer_62 { + constructor() { + $serializer_instance_62 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.google.protobuf.KUInt64Value', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('value', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KUInt64Value.new_com_google_protobuf_KUInt64Value_h3k875_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_msmpu1_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.value.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.value); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_msmpu1_k$(encoder, value instanceof KUInt64Value ? value : THROW_CCE()); + } + } + class KUInt64Value { + constructor(value) { + Companion_instance_75; + value = value === VOID ? new Long(0, 0) : value; + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + component1_7eebsc_k$() { + return this.value; + } + copy_5ymysz_k$(value) { + return new KUInt64Value(value); + } + copy(value, $super) { + value = value === VOID ? this.value : value; + return this.copy_5ymysz_k$(value); + } + toString() { + return 'KUInt64Value(value=' + this.value.toString() + ')'; + } + hashCode() { + return this.value.hashCode(); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KUInt64Value)) + return false; + var tmp0_other_with_cast = other instanceof KUInt64Value ? other : THROW_CCE(); + if (!this.value.equals(tmp0_other_with_cast.value)) + return false; + return true; + } + static new_com_google_protobuf_KUInt64Value_h3k875_k$(seen1, value, serializationConstructorMarker) { + Companion_instance_75; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_62().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.value = new Long(0, 0); + else + $this.value = value; + return $this; + } + } + class Companion_76 { + constructor() { + this.targetPath = '/google.protobuf.Int32Value'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_63(); + } + } + class $serializer_63 { + constructor() { + $serializer_instance_63 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.google.protobuf.KInt32Value', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('value', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KInt32Value.new_com_google_protobuf_KInt32Value_euclax_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_b8rirx_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.value === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.value); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_b8rirx_k$(encoder, value instanceof KInt32Value ? value : THROW_CCE()); + } + } + class KInt32Value { + constructor(value) { + Companion_instance_76; + value = value === VOID ? 0 : value; + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + component1_7eebsc_k$() { + return this.value; + } + copy_ns6qmb_k$(value) { + return new KInt32Value(value); + } + copy(value, $super) { + value = value === VOID ? this.value : value; + return this.copy_ns6qmb_k$(value); + } + toString() { + return 'KInt32Value(value=' + this.value + ')'; + } + hashCode() { + return this.value; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KInt32Value)) + return false; + var tmp0_other_with_cast = other instanceof KInt32Value ? other : THROW_CCE(); + if (!(this.value === tmp0_other_with_cast.value)) + return false; + return true; + } + static new_com_google_protobuf_KInt32Value_euclax_k$(seen1, value, serializationConstructorMarker) { + Companion_instance_76; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_63().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.value = 0; + else + $this.value = value; + return $this; + } + } + class Companion_77 { + constructor() { + this.targetPath = '/google.protobuf.UInt32Value'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_64(); + } + } + class $serializer_64 { + constructor() { + $serializer_instance_64 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.google.protobuf.KUInt32Value', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('value', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KUInt32Value.new_com_google_protobuf_KUInt32Value_ckplto_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_1g2q3s_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.value === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.value); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_1g2q3s_k$(encoder, value instanceof KUInt32Value ? value : THROW_CCE()); + } + } + class KUInt32Value { + constructor(value) { + Companion_instance_77; + value = value === VOID ? 0 : value; + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + component1_7eebsc_k$() { + return this.value; + } + copy_ns6qmb_k$(value) { + return new KUInt32Value(value); + } + copy(value, $super) { + value = value === VOID ? this.value : value; + return this.copy_ns6qmb_k$(value); + } + toString() { + return 'KUInt32Value(value=' + this.value + ')'; + } + hashCode() { + return this.value; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KUInt32Value)) + return false; + var tmp0_other_with_cast = other instanceof KUInt32Value ? other : THROW_CCE(); + if (!(this.value === tmp0_other_with_cast.value)) + return false; + return true; + } + static new_com_google_protobuf_KUInt32Value_ckplto_k$(seen1, value, serializationConstructorMarker) { + Companion_instance_77; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_64().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.value = 0; + else + $this.value = value; + return $this; + } + } + class Companion_78 { + constructor() { + this.targetPath = '/google.protobuf.BoolValue'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_65(); + } + } + class $serializer_65 { + constructor() { + $serializer_instance_65 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.google.protobuf.KBoolValue', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('value', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [BooleanSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = false; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KBoolValue_0.new_com_google_protobuf_KBoolValue_7xmb4o_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_7a6tnb_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.value === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 0, value.value); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_7a6tnb_k$(encoder, value instanceof KBoolValue_0 ? value : THROW_CCE()); + } + } + class KBoolValue_0 { + constructor(value) { + Companion_instance_78; + value = value === VOID ? false : value; + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + component1_7eebsc_k$() { + return this.value; + } + copy_o18wmo_k$(value) { + return new KBoolValue_0(value); + } + copy(value, $super) { + value = value === VOID ? this.value : value; + return this.copy_o18wmo_k$(value); + } + toString() { + return 'KBoolValue(value=' + this.value + ')'; + } + hashCode() { + return getBooleanHashCode(this.value); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KBoolValue_0)) + return false; + var tmp0_other_with_cast = other instanceof KBoolValue_0 ? other : THROW_CCE(); + if (!(this.value === tmp0_other_with_cast.value)) + return false; + return true; + } + static new_com_google_protobuf_KBoolValue_7xmb4o_k$(seen1, value, serializationConstructorMarker) { + Companion_instance_78; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_65().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.value = false; + else + $this.value = value; + return $this; + } + } + class Companion_79 { + constructor() { + this.targetPath = '/google.protobuf.StringValue'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_66(); + } + } + class $serializer_66 { + constructor() { + $serializer_instance_66 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.google.protobuf.KStringValue', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('value', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KStringValue_0.new_com_google_protobuf_KStringValue_tlb6p7_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_45qafk_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.value === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.value); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_45qafk_k$(encoder, value instanceof KStringValue_0 ? value : THROW_CCE()); + } + } + class KStringValue_0 { + constructor(value) { + Companion_instance_79; + value = value === VOID ? '' : value; + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + component1_7eebsc_k$() { + return this.value; + } + copy_a35qlh_k$(value) { + return new KStringValue_0(value); + } + copy(value, $super) { + value = value === VOID ? this.value : value; + return this.copy_a35qlh_k$(value); + } + toString() { + return 'KStringValue(value=' + this.value + ')'; + } + hashCode() { + return getStringHashCode(this.value); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KStringValue_0)) + return false; + var tmp0_other_with_cast = other instanceof KStringValue_0 ? other : THROW_CCE(); + if (!(this.value === tmp0_other_with_cast.value)) + return false; + return true; + } + static new_com_google_protobuf_KStringValue_tlb6p7_k$(seen1, value, serializationConstructorMarker) { + Companion_instance_79; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_66().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.value = ''; + else + $this.value = value; + return $this; + } + } + class Companion_80 { + constructor() { + this.targetPath = '/google.protobuf.BytesValue'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_67(); + } + } + class $serializer_67 { + constructor() { + $serializer_instance_67 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.google.protobuf.KBytesValue', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('value', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [ByteArraySerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, ByteArraySerializer_getInstance(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, ByteArraySerializer_getInstance(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KBytesValue.new_com_google_protobuf_KBytesValue_dqpa7t_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_dhb7yo_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0)) { + tmp = true; + } else { + var tmp$ret$0; + // Inline function 'kotlin.byteArrayOf' call + var elements = new Int8Array([]); + tmp$ret$0 = elements; + tmp = !equals(value.value, tmp$ret$0); + } + if (tmp) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, ByteArraySerializer_getInstance(), value.value); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_dhb7yo_k$(encoder, value instanceof KBytesValue ? value : THROW_CCE()); + } + } + class KBytesValue { + constructor(value) { + Companion_instance_80; + var tmp; + if (value === VOID) { + var tmp$ret$0; + var tmp$ret$0_0; + // Inline function 'kotlin.byteArrayOf' call + var elements = new Int8Array([]); + tmp$ret$0 = elements; + tmp$ret$0_0 = Unit_instance; + tmp = tmp$ret$0; + } else { + tmp = value; + } + value = tmp; + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + component1_7eebsc_k$() { + return this.value; + } + copy_xbgpbf_k$(value) { + return new KBytesValue(value); + } + copy(value, $super) { + value = value === VOID ? this.value : value; + return this.copy_xbgpbf_k$(value); + } + toString() { + return 'KBytesValue(value=' + toString_1(this.value) + ')'; + } + hashCode() { + return hashCode(this.value); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KBytesValue)) + return false; + var tmp0_other_with_cast = other instanceof KBytesValue ? other : THROW_CCE(); + if (!equals(this.value, tmp0_other_with_cast.value)) + return false; + return true; + } + static new_com_google_protobuf_KBytesValue_dqpa7t_k$(seen1, value, serializationConstructorMarker) { + Companion_instance_80; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_67().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) { + var tmp = $this; + var tmp$ret$0; + // Inline function 'kotlin.byteArrayOf' call + var elements = new Int8Array([]); + tmp$ret$0 = elements; + tmp.value = tmp$ret$0; + } else + $this.value = value; + return $this; + } + } + class Companion_81 { + constructor() { + Companion_instance_81 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KConfType$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KConfType$Companion$_anonymous__235vuu); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_10(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.playershared.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KConfType_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.playershared.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KConfType with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_10(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_68 { + constructor() { + $serializer_instance_68 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.playershared.KConfType', 38); + tmp0_serialDesc.addElement_5pzumi_k$('NO_TYPE', false); + tmp0_serialDesc.addElement_5pzumi_k$('FLIPCONF', false); + tmp0_serialDesc.addElement_5pzumi_k$('CASTCONF', false); + tmp0_serialDesc.addElement_5pzumi_k$('FEEDBACK', false); + tmp0_serialDesc.addElement_5pzumi_k$('SUBTITLE', false); + tmp0_serialDesc.addElement_5pzumi_k$('PLAYBACKRATE', false); + tmp0_serialDesc.addElement_5pzumi_k$('TIMEUP', false); + tmp0_serialDesc.addElement_5pzumi_k$('PLAYBACKMODE', false); + tmp0_serialDesc.addElement_5pzumi_k$('SCALEMODE', false); + tmp0_serialDesc.addElement_5pzumi_k$('BACKGROUNDPLAY', false); + tmp0_serialDesc.addElement_5pzumi_k$('LIKE', false); + tmp0_serialDesc.addElement_5pzumi_k$('DISLIKE', false); + tmp0_serialDesc.addElement_5pzumi_k$('COIN', false); + tmp0_serialDesc.addElement_5pzumi_k$('ELEC', false); + tmp0_serialDesc.addElement_5pzumi_k$('SHARE', false); + tmp0_serialDesc.addElement_5pzumi_k$('SCREENSHOT', false); + tmp0_serialDesc.addElement_5pzumi_k$('LOCKSCREEN', false); + tmp0_serialDesc.addElement_5pzumi_k$('RECOMMEND', false); + tmp0_serialDesc.addElement_5pzumi_k$('PLAYBACKSPEED', false); + tmp0_serialDesc.addElement_5pzumi_k$('DEFINITION', false); + tmp0_serialDesc.addElement_5pzumi_k$('SELECTIONS', false); + tmp0_serialDesc.addElement_5pzumi_k$('NEXT', false); + tmp0_serialDesc.addElement_5pzumi_k$('EDITDM', false); + tmp0_serialDesc.addElement_5pzumi_k$('SMALLWINDOW', false); + tmp0_serialDesc.addElement_5pzumi_k$('SHAKE', false); + tmp0_serialDesc.addElement_5pzumi_k$('OUTERDM', false); + tmp0_serialDesc.addElement_5pzumi_k$('INNERDM', false); + tmp0_serialDesc.addElement_5pzumi_k$('PANORAMA', false); + tmp0_serialDesc.addElement_5pzumi_k$('DOLBY', false); + tmp0_serialDesc.addElement_5pzumi_k$('COLORFILTER', false); + tmp0_serialDesc.addElement_5pzumi_k$('LOSSLESS', false); + tmp0_serialDesc.addElement_5pzumi_k$('FREYAENTER', false); + tmp0_serialDesc.addElement_5pzumi_k$('FREYAFULLENTER', false); + tmp0_serialDesc.addElement_5pzumi_k$('SKIPOPED', false); + tmp0_serialDesc.addElement_5pzumi_k$('RECORDSCREEN', false); + tmp0_serialDesc.addElement_5pzumi_k$('DUBBING', false); + tmp0_serialDesc.addElement_5pzumi_k$('LISTEN', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_10()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_ni40xz_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_ni40xz_k$(encoder, value instanceof KConfType ? value : THROW_CCE()); + } + } + class KConfType extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_82 { + constructor() { + Companion_instance_82 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KUnsupportScene$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KUnsupportScene$Companion$_anonymous__79d6i6); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_11(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.playershared.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KUnsupportScene_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.playershared.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KUnsupportScene with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_11(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_69 { + constructor() { + $serializer_instance_69 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.playershared.KUnsupportScene', 3); + tmp0_serialDesc.addElement_5pzumi_k$('UNKNOWN_SCENE', false); + tmp0_serialDesc.addElement_5pzumi_k$('PREMIERE', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_11()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_lxo8i9_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_lxo8i9_k$(encoder, value instanceof KUnsupportScene ? value : THROW_CCE()); + } + } + class KUnsupportScene extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_83 { + constructor() { + this.targetPath = '/bilibili.playershared.PlayArcConf.ArcConfsEntry'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_70(); + } + } + class $serializer_70 { + constructor() { + $serializer_instance_70 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.playershared.KPlayArcConf.KArcConfsEntry', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('key', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('value', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), get_nullable($serializer_getInstance_72())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_72(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_72(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KArcConfsEntry.new_com_bapis_bilibili_playershared_KPlayArcConf_KArcConfsEntry_vp0tw9_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_996uso_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.key === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.key); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.value == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_72(), value.value); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_996uso_k$(encoder, value instanceof KArcConfsEntry ? value : THROW_CCE()); + } + } + class KArcConfsEntry { + constructor(key, value) { + Companion_instance_83; + key = key === VOID ? 0 : key; + value = value === VOID ? null : value; + this.key = key; + this.value = value; + } + get_key_18j28a_k$() { + return this.key; + } + get_value_j01efc_k$() { + return this.value; + } + component1_7eebsc_k$() { + return this.key; + } + component2_7eebsb_k$() { + return this.value; + } + copy_1gpvan_k$(key, value) { + return new KArcConfsEntry(key, value); + } + copy(key, value, $super) { + key = key === VOID ? this.key : key; + value = value === VOID ? this.value : value; + return this.copy_1gpvan_k$(key, value); + } + toString() { + return 'KArcConfsEntry(key=' + this.key + ', value=' + this.value + ')'; + } + hashCode() { + var result = this.key; + result = imul(result, 31) + (this.value == null ? 0 : this.value.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KArcConfsEntry)) + return false; + var tmp0_other_with_cast = other instanceof KArcConfsEntry ? other : THROW_CCE(); + if (!(this.key === tmp0_other_with_cast.key)) + return false; + if (!equals(this.value, tmp0_other_with_cast.value)) + return false; + return true; + } + static new_com_bapis_bilibili_playershared_KPlayArcConf_KArcConfsEntry_vp0tw9_k$(seen1, key, value, serializationConstructorMarker) { + Companion_instance_83; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_70().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.key = 0; + else + $this.key = key; + if (0 === (seen1 & 2)) + $this.value = null; + else + $this.value = value; + return $this; + } + } + class Companion_84 { + constructor() { + Companion_instance_84 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new LinkedHashMapSerializer(IntSerializer_getInstance(), get_nullable($serializer_getInstance_72()))]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.playershared.PlayArcConf'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_71(); + } + } + class $serializer_71 { + constructor() { + $serializer_instance_71 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.playershared.KPlayArcConf', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('arcConfs', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_84().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp6_cached = Companion_getInstance_84().$childSerializers_1; + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KPlayArcConf.new_com_bapis_bilibili_playershared_KPlayArcConf_1e85a7_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_vr93kq_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_84().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.arcConfs, emptyMap())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.arcConfs); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_vr93kq_k$(encoder, value instanceof KPlayArcConf ? value : THROW_CCE()); + } + } + class KPlayArcConf { + constructor(arcConfs) { + Companion_getInstance_84(); + arcConfs = arcConfs === VOID ? emptyMap() : arcConfs; + this.arcConfs = arcConfs; + } + get_arcConfs_aa35nq_k$() { + return this.arcConfs; + } + component1_7eebsc_k$() { + return this.arcConfs; + } + copy_ln9qo9_k$(arcConfs) { + return new KPlayArcConf(arcConfs); + } + copy(arcConfs, $super) { + arcConfs = arcConfs === VOID ? this.arcConfs : arcConfs; + return this.copy_ln9qo9_k$(arcConfs); + } + toString() { + return 'KPlayArcConf(arcConfs=' + this.arcConfs + ')'; + } + hashCode() { + return hashCode(this.arcConfs); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KPlayArcConf)) + return false; + var tmp0_other_with_cast = other instanceof KPlayArcConf ? other : THROW_CCE(); + if (!equals(this.arcConfs, tmp0_other_with_cast.arcConfs)) + return false; + return true; + } + static new_com_bapis_bilibili_playershared_KPlayArcConf_1e85a7_k$(seen1, arcConfs, serializationConstructorMarker) { + Companion_getInstance_84(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_71().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.arcConfs = emptyMap(); + else + $this.arcConfs = arcConfs; + return $this; + } + } + class Companion_85 { + constructor() { + Companion_instance_85 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, new ArrayListSerializer(IntSerializer_getInstance())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.playershared.ArcConf'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_72(); + } + } + class $serializer_72 { + constructor() { + $serializer_instance_72 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.playershared.KArcConf', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('isSupport', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('disabled', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('extraContent', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('unsupportScene', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_85().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), get_nullable($serializer_getInstance_73()), tmp0_cached[3]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = false; + var tmp5_local1 = false; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp9_cached = Companion_getInstance_85().$childSerializers_1; + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_73(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 3, tmp9_cached[3], tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_73(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 3, tmp9_cached[3], tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KArcConf.new_com_bapis_bilibili_playershared_KArcConf_24h4wy_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_isphke_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_85().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.isSupport === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 0, value.isSupport); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.disabled === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 1, value.disabled); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.extraContent == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_73(), value.extraContent); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !equals(value.unsupportScene, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 3, tmp2_cached[3], value.unsupportScene); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_isphke_k$(encoder, value instanceof KArcConf ? value : THROW_CCE()); + } + } + class KArcConf { + constructor(isSupport, disabled, extraContent, unsupportScene) { + Companion_getInstance_85(); + isSupport = isSupport === VOID ? false : isSupport; + disabled = disabled === VOID ? false : disabled; + extraContent = extraContent === VOID ? null : extraContent; + unsupportScene = unsupportScene === VOID ? emptyList() : unsupportScene; + this.isSupport = isSupport; + this.disabled = disabled; + this.extraContent = extraContent; + this.unsupportScene = unsupportScene; + } + get_isSupport_vqxyec_k$() { + return this.isSupport; + } + get_disabled_rbmjej_k$() { + return this.disabled; + } + get_extraContent_ts1v1q_k$() { + return this.extraContent; + } + get_unsupportScene_cq0esh_k$() { + return this.unsupportScene; + } + component1_7eebsc_k$() { + return this.isSupport; + } + component2_7eebsb_k$() { + return this.disabled; + } + component3_7eebsa_k$() { + return this.extraContent; + } + component4_7eebs9_k$() { + return this.unsupportScene; + } + copy_c6fgqq_k$(isSupport, disabled, extraContent, unsupportScene) { + return new KArcConf(isSupport, disabled, extraContent, unsupportScene); + } + copy(isSupport, disabled, extraContent, unsupportScene, $super) { + isSupport = isSupport === VOID ? this.isSupport : isSupport; + disabled = disabled === VOID ? this.disabled : disabled; + extraContent = extraContent === VOID ? this.extraContent : extraContent; + unsupportScene = unsupportScene === VOID ? this.unsupportScene : unsupportScene; + return this.copy_c6fgqq_k$(isSupport, disabled, extraContent, unsupportScene); + } + toString() { + return 'KArcConf(isSupport=' + this.isSupport + ', disabled=' + this.disabled + ', extraContent=' + this.extraContent + ', unsupportScene=' + this.unsupportScene + ')'; + } + hashCode() { + var result = getBooleanHashCode(this.isSupport); + result = imul(result, 31) + getBooleanHashCode(this.disabled) | 0; + result = imul(result, 31) + (this.extraContent == null ? 0 : this.extraContent.hashCode()) | 0; + result = imul(result, 31) + hashCode(this.unsupportScene) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KArcConf)) + return false; + var tmp0_other_with_cast = other instanceof KArcConf ? other : THROW_CCE(); + if (!(this.isSupport === tmp0_other_with_cast.isSupport)) + return false; + if (!(this.disabled === tmp0_other_with_cast.disabled)) + return false; + if (!equals(this.extraContent, tmp0_other_with_cast.extraContent)) + return false; + if (!equals(this.unsupportScene, tmp0_other_with_cast.unsupportScene)) + return false; + return true; + } + static new_com_bapis_bilibili_playershared_KArcConf_24h4wy_k$(seen1, isSupport, disabled, extraContent, unsupportScene, serializationConstructorMarker) { + Companion_getInstance_85(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_72().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.isSupport = false; + else + $this.isSupport = isSupport; + if (0 === (seen1 & 2)) + $this.disabled = false; + else + $this.disabled = disabled; + if (0 === (seen1 & 4)) + $this.extraContent = null; + else + $this.extraContent = extraContent; + if (0 === (seen1 & 8)) + $this.unsupportScene = emptyList(); + else + $this.unsupportScene = unsupportScene; + return $this; + } + } + class Companion_86 { + constructor() { + this.targetPath = '/bilibili.playershared.ExtraContent'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_73(); + } + } + class $serializer_73 { + constructor() { + $serializer_instance_73 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.playershared.KExtraContent', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('disabledReason', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('disabledCode', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = new Long(0, 0); + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KExtraContent.new_com_bapis_bilibili_playershared_KExtraContent_3hi77m_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_2eh217_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.disabledReason === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.disabledReason); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.disabledCode.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.disabledCode); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_2eh217_k$(encoder, value instanceof KExtraContent ? value : THROW_CCE()); + } + } + class KExtraContent { + constructor(disabledReason, disabledCode) { + Companion_instance_86; + disabledReason = disabledReason === VOID ? '' : disabledReason; + disabledCode = disabledCode === VOID ? new Long(0, 0) : disabledCode; + this.disabledReason = disabledReason; + this.disabledCode = disabledCode; + } + get_disabledReason_mm6hhz_k$() { + return this.disabledReason; + } + get_disabledCode_bpizvy_k$() { + return this.disabledCode; + } + component1_7eebsc_k$() { + return this.disabledReason; + } + component2_7eebsb_k$() { + return this.disabledCode; + } + copy_gaforn_k$(disabledReason, disabledCode) { + return new KExtraContent(disabledReason, disabledCode); + } + copy(disabledReason, disabledCode, $super) { + disabledReason = disabledReason === VOID ? this.disabledReason : disabledReason; + disabledCode = disabledCode === VOID ? this.disabledCode : disabledCode; + return this.copy_gaforn_k$(disabledReason, disabledCode); + } + toString() { + return 'KExtraContent(disabledReason=' + this.disabledReason + ', disabledCode=' + this.disabledCode.toString() + ')'; + } + hashCode() { + var result = getStringHashCode(this.disabledReason); + result = imul(result, 31) + this.disabledCode.hashCode() | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KExtraContent)) + return false; + var tmp0_other_with_cast = other instanceof KExtraContent ? other : THROW_CCE(); + if (!(this.disabledReason === tmp0_other_with_cast.disabledReason)) + return false; + if (!this.disabledCode.equals(tmp0_other_with_cast.disabledCode)) + return false; + return true; + } + static new_com_bapis_bilibili_playershared_KExtraContent_3hi77m_k$(seen1, disabledReason, disabledCode, serializationConstructorMarker) { + Companion_instance_86; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_73().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.disabledReason = ''; + else + $this.disabledReason = disabledReason; + if (0 === (seen1 & 2)) + $this.disabledCode = new Long(0, 0); + else + $this.disabledCode = disabledCode; + return $this; + } + } + class Companion_87 { + constructor() { + this.targetPath = '/bilibili.playershared.PlayDeviceConf.DeviceConfsEntry'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_74(); + } + } + class $serializer_74 { + constructor() { + $serializer_instance_74 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.playershared.KPlayDeviceConf.KDeviceConfsEntry', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('key', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('value', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), get_nullable($serializer_getInstance_77())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_77(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_77(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KDeviceConfsEntry.new_com_bapis_bilibili_playershared_KPlayDeviceConf_KDeviceConfsEntry_oojgud_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_cl87hi_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.key === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.key); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.value == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_77(), value.value); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_cl87hi_k$(encoder, value instanceof KDeviceConfsEntry ? value : THROW_CCE()); + } + } + class KDeviceConfsEntry { + constructor(key, value) { + Companion_instance_87; + key = key === VOID ? 0 : key; + value = value === VOID ? null : value; + this.key = key; + this.value = value; + } + get_key_18j28a_k$() { + return this.key; + } + get_value_j01efc_k$() { + return this.value; + } + component1_7eebsc_k$() { + return this.key; + } + component2_7eebsb_k$() { + return this.value; + } + copy_yyzr55_k$(key, value) { + return new KDeviceConfsEntry(key, value); + } + copy(key, value, $super) { + key = key === VOID ? this.key : key; + value = value === VOID ? this.value : value; + return this.copy_yyzr55_k$(key, value); + } + toString() { + return 'KDeviceConfsEntry(key=' + this.key + ', value=' + this.value + ')'; + } + hashCode() { + var result = this.key; + result = imul(result, 31) + (this.value == null ? 0 : this.value.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KDeviceConfsEntry)) + return false; + var tmp0_other_with_cast = other instanceof KDeviceConfsEntry ? other : THROW_CCE(); + if (!(this.key === tmp0_other_with_cast.key)) + return false; + if (!equals(this.value, tmp0_other_with_cast.value)) + return false; + return true; + } + static new_com_bapis_bilibili_playershared_KPlayDeviceConf_KDeviceConfsEntry_oojgud_k$(seen1, key, value, serializationConstructorMarker) { + Companion_instance_87; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_74().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.key = 0; + else + $this.key = key; + if (0 === (seen1 & 2)) + $this.value = null; + else + $this.value = value; + return $this; + } + } + class Companion_88 { + constructor() { + Companion_instance_88 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new LinkedHashMapSerializer(IntSerializer_getInstance(), get_nullable($serializer_getInstance_77()))]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.playershared.PlayDeviceConf'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_75(); + } + } + class $serializer_75 { + constructor() { + $serializer_instance_75 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.playershared.KPlayDeviceConf', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('deviceConfs', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_88().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp6_cached = Companion_getInstance_88().$childSerializers_1; + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KPlayDeviceConf.new_com_bapis_bilibili_playershared_KPlayDeviceConf_8mndtp_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_dmvn5c_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_88().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.deviceConfs, emptyMap())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.deviceConfs); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_dmvn5c_k$(encoder, value instanceof KPlayDeviceConf ? value : THROW_CCE()); + } + } + class KPlayDeviceConf { + constructor(deviceConfs) { + Companion_getInstance_88(); + deviceConfs = deviceConfs === VOID ? emptyMap() : deviceConfs; + this.deviceConfs = deviceConfs; + } + get_deviceConfs_c1vgi8_k$() { + return this.deviceConfs; + } + component1_7eebsc_k$() { + return this.deviceConfs; + } + copy_88e66p_k$(deviceConfs) { + return new KPlayDeviceConf(deviceConfs); + } + copy(deviceConfs, $super) { + deviceConfs = deviceConfs === VOID ? this.deviceConfs : deviceConfs; + return this.copy_88e66p_k$(deviceConfs); + } + toString() { + return 'KPlayDeviceConf(deviceConfs=' + this.deviceConfs + ')'; + } + hashCode() { + return hashCode(this.deviceConfs); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KPlayDeviceConf)) + return false; + var tmp0_other_with_cast = other instanceof KPlayDeviceConf ? other : THROW_CCE(); + if (!equals(this.deviceConfs, tmp0_other_with_cast.deviceConfs)) + return false; + return true; + } + static new_com_bapis_bilibili_playershared_KPlayDeviceConf_8mndtp_k$(seen1, deviceConfs, serializationConstructorMarker) { + Companion_getInstance_88(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_75().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.deviceConfs = emptyMap(); + else + $this.deviceConfs = deviceConfs; + return $this; + } + } + class KValue_0 { + constructor(value) { + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + } + class KSwitchVal extends KValue_0 { + constructor() { + KSwitchVal_instance = null; + super(0); + KSwitchVal_instance = this; + } + } + class KSelectedVal extends KValue_0 { + constructor() { + KSelectedVal_instance = null; + super(1); + KSelectedVal_instance = this; + } + } + class Companion_89 { + constructor() { + Companion_instance_89 = this; + var tmp = this; + tmp.valueValues$delegate_1 = lazy_0(KConfValue$Companion$valueValues$delegate$lambda); + this.targetPath = '/bilibili.playershared.ConfValue'; + } + get_valueValues_8jdrw6_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.valueValues$delegate_1; + var thisRef = this; + var property = valueValues$factory(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_76(); + } + get valueValues() { + return this.get_valueValues_8jdrw6_k$(); + } + } + class $serializer_76 { + constructor() { + $serializer_instance_76 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.playershared.KConfValue', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('switchVal', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('selectedVal', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable(BooleanSerializer_getInstance()), get_nullable(LongSerializer_getInstance())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_transient0 = 0; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, BooleanSerializer_getInstance(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, LongSerializer_getInstance(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, BooleanSerializer_getInstance(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, LongSerializer_getInstance(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KConfValue.new_com_bapis_bilibili_playershared_KConfValue_eags8o_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_74z1nf_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.switchVal_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, BooleanSerializer_getInstance(), value.switchVal_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.selectedVal_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, LongSerializer_getInstance(), value.selectedVal_1); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_74z1nf_k$(encoder, value instanceof KConfValue ? value : THROW_CCE()); + } + } + class KConfValue { + constructor(switchVal, selectedVal) { + Companion_getInstance_89(); + switchVal = switchVal === VOID ? null : switchVal; + selectedVal = selectedVal === VOID ? null : selectedVal; + this.switchVal_1 = switchVal; + this.selectedVal_1 = selectedVal; + var tmp = this; + tmp.valueNumber$delegate_1 = lazy_0(KConfValue$valueNumber$delegate$lambda(this)); + } + valueValue() { + if (!(this.switchVal_1 == null)) { + var tmp = this.switchVal_1; + return (tmp == null ? true : !(tmp == null)) ? tmp : null; + } else if (!(this.selectedVal_1 == null)) { + var tmp_0 = this.selectedVal_1; + return (tmp_0 == null ? true : !(tmp_0 == null)) ? tmp_0 : null; + } else { + return null; + } + } + valueTypeJs() { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = Companion_getInstance_89().valueValues; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.playershared.KConfValue.valueType.' call + var it = element; + tmp$ret$0 = it.value === _get_valueNumber__5bxiuv(this); + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + return tmp$ret$1; + } + copy_rtupj6_k$(switchVal, selectedVal) { + return new KConfValue(switchVal, selectedVal); + } + copy(switchVal, selectedVal, $super) { + switchVal = switchVal === VOID ? this.switchVal_1 : switchVal; + selectedVal = selectedVal === VOID ? this.selectedVal_1 : selectedVal; + return this.copy_rtupj6_k$(switchVal, selectedVal); + } + toString() { + return 'KConfValue(switchVal=' + this.switchVal_1 + ', selectedVal=' + toString_0(this.selectedVal_1) + ')'; + } + hashCode() { + var result = this.switchVal_1 == null ? 0 : getBooleanHashCode(this.switchVal_1); + result = imul(result, 31) + (this.selectedVal_1 == null ? 0 : this.selectedVal_1.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KConfValue)) + return false; + var tmp0_other_with_cast = other instanceof KConfValue ? other : THROW_CCE(); + if (!(this.switchVal_1 == tmp0_other_with_cast.switchVal_1)) + return false; + if (!equals(this.selectedVal_1, tmp0_other_with_cast.selectedVal_1)) + return false; + return true; + } + static new_com_bapis_bilibili_playershared_KConfValue_eags8o_k$(seen1, switchVal, selectedVal, serializationConstructorMarker) { + Companion_getInstance_89(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_76().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.switchVal_1 = null; + else + $this.switchVal_1 = switchVal; + if (0 === (seen1 & 2)) + $this.selectedVal_1 = null; + else + $this.selectedVal_1 = selectedVal; + var tmp = $this; + tmp.valueNumber$delegate_1 = lazy_0(KConfValue$_init_$lambda_46ey4p($this)); + return $this; + } + } + class Companion_90 { + constructor() { + this.targetPath = '/bilibili.playershared.DeviceConf'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_77(); + } + } + class $serializer_77 { + constructor() { + $serializer_instance_77 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.playershared.KDeviceConf', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('confValue', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_76())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_76(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_76(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KDeviceConf.new_com_bapis_bilibili_playershared_KDeviceConf_525ckp_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_vmgcsc_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.confValue == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_76(), value.confValue); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_vmgcsc_k$(encoder, value instanceof KDeviceConf ? value : THROW_CCE()); + } + } + class KDeviceConf { + constructor(confValue) { + Companion_instance_90; + confValue = confValue === VOID ? null : confValue; + this.confValue = confValue; + } + get_confValue_52z01o_k$() { + return this.confValue; + } + component1_7eebsc_k$() { + return this.confValue; + } + copy_85kui4_k$(confValue) { + return new KDeviceConf(confValue); + } + copy(confValue, $super) { + confValue = confValue === VOID ? this.confValue : confValue; + return this.copy_85kui4_k$(confValue); + } + toString() { + return 'KDeviceConf(confValue=' + this.confValue + ')'; + } + hashCode() { + return this.confValue == null ? 0 : this.confValue.hashCode(); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KDeviceConf)) + return false; + var tmp0_other_with_cast = other instanceof KDeviceConf ? other : THROW_CCE(); + if (!equals(this.confValue, tmp0_other_with_cast.confValue)) + return false; + return true; + } + static new_com_bapis_bilibili_playershared_KDeviceConf_525ckp_k$(seen1, confValue, serializationConstructorMarker) { + Companion_instance_90; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_77().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.confValue = null; + else + $this.confValue = confValue; + return $this; + } + } + class Companion_91 { + constructor() { + Companion_instance_91 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KToastType$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KToastType$Companion$_anonymous__l9bpvr); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_12(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.playershared.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KToastType_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.playershared.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KToastType with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_12(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_78 { + constructor() { + $serializer_instance_78 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.playershared.KToastType', 8); + tmp0_serialDesc.addElement_5pzumi_k$('UNKNOWN', false); + tmp0_serialDesc.addElement_5pzumi_k$('VIP_CONTENT_REMIND', false); + tmp0_serialDesc.addElement_5pzumi_k$('VIP_DEFINITION_REMIND', false); + tmp0_serialDesc.addElement_5pzumi_k$('VIP_DEFINITION_GUIDE', false); + tmp0_serialDesc.addElement_5pzumi_k$('OGV_VIDEO_START_TOAST', false); + tmp0_serialDesc.addElement_5pzumi_k$('CHARGING_TOAST', false); + tmp0_serialDesc.addElement_5pzumi_k$('VIP_SKIP_FRAGMENT_TOAST', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_12()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_p41bse_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_p41bse_k$(encoder, value instanceof KToastType ? value : THROW_CCE()); + } + } + class KToastType extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_92 { + constructor() { + Companion_instance_92 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KShowStyleType$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KShowStyleType$Companion$_anonymous__pzcrro); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_13(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.playershared.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KShowStyleType_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.playershared.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KShowStyleType with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_13(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_79 { + constructor() { + $serializer_instance_79 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.playershared.KShowStyleType', 4); + tmp0_serialDesc.addElement_5pzumi_k$('UNKNOWN', false); + tmp0_serialDesc.addElement_5pzumi_k$('ORDINARY', false); + tmp0_serialDesc.addElement_5pzumi_k$('RESIDENT', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_13()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_9uhmin_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_9uhmin_k$(encoder, value instanceof KShowStyleType ? value : THROW_CCE()); + } + } + class KShowStyleType extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_93 { + constructor() { + Companion_instance_93 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KGuideStyle$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KGuideStyle$Companion$_anonymous__4dklbj); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_14(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.playershared.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KGuideStyle_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.playershared.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KGuideStyle with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_14(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_80 { + constructor() { + $serializer_instance_80 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.playershared.KGuideStyle', 6); + tmp0_serialDesc.addElement_5pzumi_k$('STYLE_UNKNOWN', false); + tmp0_serialDesc.addElement_5pzumi_k$('HORIZONTAL_IMAGE', false); + tmp0_serialDesc.addElement_5pzumi_k$('VERTICAL_TEXT', false); + tmp0_serialDesc.addElement_5pzumi_k$('SIMPLE_TEXT', false); + tmp0_serialDesc.addElement_5pzumi_k$('CHARGING_TEXT', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_14()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_vragsw_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_vragsw_k$(encoder, value instanceof KGuideStyle ? value : THROW_CCE()); + } + } + class KGuideStyle extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_94 { + constructor() { + Companion_instance_94 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KPromptBarType$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KPromptBarType$Companion$_anonymous__k75jqn); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_15(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.playershared.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KPromptBarType_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.playershared.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KPromptBarType with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_15(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_81 { + constructor() { + $serializer_instance_81 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.playershared.KPromptBarType', 4); + tmp0_serialDesc.addElement_5pzumi_k$('UNKNOWN', false); + tmp0_serialDesc.addElement_5pzumi_k$('OPEN_PROMPT_BAR', false); + tmp0_serialDesc.addElement_5pzumi_k$('TRY_PROMPT_BAR', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_15()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_42nmo6_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_42nmo6_k$(encoder, value instanceof KPromptBarType ? value : THROW_CCE()); + } + } + class KPromptBarType extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_95 { + constructor() { + Companion_instance_95 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KPromptBarStyle$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KPromptBarStyle$Companion$_anonymous__t7opsu); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_16(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.playershared.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KPromptBarStyle_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.playershared.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KPromptBarStyle with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_16(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_82 { + constructor() { + $serializer_instance_82 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.playershared.KPromptBarStyle', 6); + tmp0_serialDesc.addElement_5pzumi_k$('UNKNOWN', false); + tmp0_serialDesc.addElement_5pzumi_k$('TEXT', false); + tmp0_serialDesc.addElement_5pzumi_k$('CURING_BENEFITS', false); + tmp0_serialDesc.addElement_5pzumi_k$('CARD_OPENING_GIFT', false); + tmp0_serialDesc.addElement_5pzumi_k$('COUNTDOWN', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_16()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_4fsc4d_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_4fsc4d_k$(encoder, value instanceof KPromptBarStyle ? value : THROW_CCE()); + } + } + class KPromptBarStyle extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_96 { + constructor() { + Companion_instance_96 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KLimitActionType$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KLimitActionType$Companion$_anonymous__m853ch); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_17(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.playershared.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KLimitActionType_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.playershared.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KLimitActionType with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_17(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_83 { + constructor() { + $serializer_instance_83 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.playershared.KLimitActionType', 4); + tmp0_serialDesc.addElement_5pzumi_k$('LAT_UNKNOWN', false); + tmp0_serialDesc.addElement_5pzumi_k$('SHOW_LIMIT_DIALOG', false); + tmp0_serialDesc.addElement_5pzumi_k$('SKIP_CURRENT_EP', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_17()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_vl3qgs_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_vl3qgs_k$(encoder, value instanceof KLimitActionType ? value : THROW_CCE()); + } + } + class KLimitActionType extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_97 { + constructor() { + Companion_instance_97 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KExtDataType$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KExtDataType$Companion$_anonymous__hvr9vv); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_18(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.playershared.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KExtDataType_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.playershared.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KExtDataType with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_18(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_84 { + constructor() { + $serializer_instance_84 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.playershared.KExtDataType', 5); + tmp0_serialDesc.addElement_5pzumi_k$('UNKNOWN', false); + tmp0_serialDesc.addElement_5pzumi_k$('PLAY_LIST', false); + tmp0_serialDesc.addElement_5pzumi_k$('BANNER', false); + tmp0_serialDesc.addElement_5pzumi_k$('HE_INLINE', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_18()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_9ffo4q_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_9ffo4q_k$(encoder, value instanceof KExtDataType ? value : THROW_CCE()); + } + } + class KExtDataType extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_98 { + constructor() { + Companion_instance_98 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KEffects$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KEffects$Companion$_anonymous__mrl5jc); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_19(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.playershared.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KEffects_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.playershared.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KEffects with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_19(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_85 { + constructor() { + $serializer_instance_85 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.playershared.KEffects', 4); + tmp0_serialDesc.addElement_5pzumi_k$('UNKNOWN', false); + tmp0_serialDesc.addElement_5pzumi_k$('GAUSSIAN_BLUR', false); + tmp0_serialDesc.addElement_5pzumi_k$('HALF_ALPHA', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_19()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_egtuk3_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_egtuk3_k$(encoder, value instanceof KEffects ? value : THROW_CCE()); + } + } + class KEffects extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_99 { + constructor() { + Companion_instance_99 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KButtonAction$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KButtonAction$Companion$_anonymous__1jamt8); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_20(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.playershared.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KButtonAction_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.playershared.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KButtonAction with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_20(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_86 { + constructor() { + $serializer_instance_86 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.playershared.KButtonAction', 17); + tmp0_serialDesc.addElement_5pzumi_k$('BUTTON_UNKNOWN', false); + tmp0_serialDesc.addElement_5pzumi_k$('PAY', false); + tmp0_serialDesc.addElement_5pzumi_k$('VIP', false); + tmp0_serialDesc.addElement_5pzumi_k$('PACK', false); + tmp0_serialDesc.addElement_5pzumi_k$('LINK', false); + tmp0_serialDesc.addElement_5pzumi_k$('COUPON', false); + tmp0_serialDesc.addElement_5pzumi_k$('DEMAND', false); + tmp0_serialDesc.addElement_5pzumi_k$('DEMAND_PACK', false); + tmp0_serialDesc.addElement_5pzumi_k$('FOLLOW', false); + tmp0_serialDesc.addElement_5pzumi_k$('APPOINTMENT', false); + tmp0_serialDesc.addElement_5pzumi_k$('VIP_FREE', false); + tmp0_serialDesc.addElement_5pzumi_k$('TASK', false); + tmp0_serialDesc.addElement_5pzumi_k$('CHARGINGPLUS', false); + tmp0_serialDesc.addElement_5pzumi_k$('BP', false); + tmp0_serialDesc.addElement_5pzumi_k$('PRE_SELL', false); + tmp0_serialDesc.addElement_5pzumi_k$('LOGIN', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_20()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_eclchv_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_eclchv_k$(encoder, value instanceof KButtonAction ? value : THROW_CCE()); + } + } + class KButtonAction extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_100 { + constructor() { + this.targetPath = '/bilibili.playershared.ViewInfo.DialogMapEntry'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_87(); + } + } + class $serializer_87 { + constructor() { + $serializer_instance_87 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.playershared.KViewInfo.KDialogMapEntry', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('key', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('value', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), get_nullable($serializer_getInstance_93())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_93(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_93(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KDialogMapEntry.new_com_bapis_bilibili_playershared_KViewInfo_KDialogMapEntry_woqso4_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_z7dhcg_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.key === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.key); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.value == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_93(), value.value); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_z7dhcg_k$(encoder, value instanceof KDialogMapEntry ? value : THROW_CCE()); + } + } + class KDialogMapEntry { + constructor(key, value) { + Companion_instance_100; + key = key === VOID ? '' : key; + value = value === VOID ? null : value; + this.key = key; + this.value = value; + } + get_key_18j28a_k$() { + return this.key; + } + get_value_j01efc_k$() { + return this.value; + } + component1_7eebsc_k$() { + return this.key; + } + component2_7eebsb_k$() { + return this.value; + } + copy_rrni87_k$(key, value) { + return new KDialogMapEntry(key, value); + } + copy(key, value, $super) { + key = key === VOID ? this.key : key; + value = value === VOID ? this.value : value; + return this.copy_rrni87_k$(key, value); + } + toString() { + return 'KDialogMapEntry(key=' + this.key + ', value=' + this.value + ')'; + } + hashCode() { + var result = getStringHashCode(this.key); + result = imul(result, 31) + (this.value == null ? 0 : this.value.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KDialogMapEntry)) + return false; + var tmp0_other_with_cast = other instanceof KDialogMapEntry ? other : THROW_CCE(); + if (!(this.key === tmp0_other_with_cast.key)) + return false; + if (!equals(this.value, tmp0_other_with_cast.value)) + return false; + return true; + } + static new_com_bapis_bilibili_playershared_KViewInfo_KDialogMapEntry_woqso4_k$(seen1, key, value, serializationConstructorMarker) { + Companion_instance_100; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_87().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.key = ''; + else + $this.key = key; + if (0 === (seen1 & 2)) + $this.value = null; + else + $this.value = value; + return $this; + } + } + class Companion_101 { + constructor() { + Companion_instance_101 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new LinkedHashMapSerializer(StringSerializer_getInstance(), get_nullable($serializer_getInstance_93())), null, new ArrayListSerializer($serializer_getInstance_90())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.playershared.ViewInfo'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_88(); + } + } + class $serializer_88 { + constructor() { + $serializer_instance_88 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.playershared.KViewInfo', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('dialogMap', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('promptBar', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('toasts', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_101().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0], get_nullable($serializer_getInstance_91()), tmp0_cached[2]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp8_cached = Companion_getInstance_101().$childSerializers_1; + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp8_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_91(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp8_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp8_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_91(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp8_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KViewInfo.new_com_bapis_bilibili_playershared_KViewInfo_o149ly_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_wocw7f_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_101().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.dialogMap, emptyMap())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.dialogMap); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.promptBar == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_91(), value.promptBar); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !equals(value.toasts, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 2, tmp2_cached[2], value.toasts); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_wocw7f_k$(encoder, value instanceof KViewInfo ? value : THROW_CCE()); + } + } + class KViewInfo { + constructor(dialogMap, promptBar, toasts) { + Companion_getInstance_101(); + dialogMap = dialogMap === VOID ? emptyMap() : dialogMap; + promptBar = promptBar === VOID ? null : promptBar; + toasts = toasts === VOID ? emptyList() : toasts; + this.dialogMap = dialogMap; + this.promptBar = promptBar; + this.toasts = toasts; + } + get_dialogMap_uosjez_k$() { + return this.dialogMap; + } + get_promptBar_4os3oa_k$() { + return this.promptBar; + } + get_toasts_k1pt11_k$() { + return this.toasts; + } + component1_7eebsc_k$() { + return this.dialogMap; + } + component2_7eebsb_k$() { + return this.promptBar; + } + component3_7eebsa_k$() { + return this.toasts; + } + copy_8pzs2k_k$(dialogMap, promptBar, toasts) { + return new KViewInfo(dialogMap, promptBar, toasts); + } + copy(dialogMap, promptBar, toasts, $super) { + dialogMap = dialogMap === VOID ? this.dialogMap : dialogMap; + promptBar = promptBar === VOID ? this.promptBar : promptBar; + toasts = toasts === VOID ? this.toasts : toasts; + return this.copy_8pzs2k_k$(dialogMap, promptBar, toasts); + } + toString() { + return 'KViewInfo(dialogMap=' + this.dialogMap + ', promptBar=' + this.promptBar + ', toasts=' + this.toasts + ')'; + } + hashCode() { + var result = hashCode(this.dialogMap); + result = imul(result, 31) + (this.promptBar == null ? 0 : this.promptBar.hashCode()) | 0; + result = imul(result, 31) + hashCode(this.toasts) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KViewInfo)) + return false; + var tmp0_other_with_cast = other instanceof KViewInfo ? other : THROW_CCE(); + if (!equals(this.dialogMap, tmp0_other_with_cast.dialogMap)) + return false; + if (!equals(this.promptBar, tmp0_other_with_cast.promptBar)) + return false; + if (!equals(this.toasts, tmp0_other_with_cast.toasts)) + return false; + return true; + } + static new_com_bapis_bilibili_playershared_KViewInfo_o149ly_k$(seen1, dialogMap, promptBar, toasts, serializationConstructorMarker) { + Companion_getInstance_101(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_88().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.dialogMap = emptyMap(); + else + $this.dialogMap = dialogMap; + if (0 === (seen1 & 2)) + $this.promptBar = null; + else + $this.promptBar = promptBar; + if (0 === (seen1 & 4)) + $this.toasts = emptyList(); + else + $this.toasts = toasts; + return $this; + } + } + class Companion_102 { + constructor() { + this.targetPath = '/bilibili.playershared.ComprehensiveToast.OrderReportParamsEntry'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_89(); + } + } + class $serializer_89 { + constructor() { + $serializer_instance_89 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.playershared.KComprehensiveToast.KOrderReportParamsEntry', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('key', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('value', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KOrderReportParamsEntry.new_com_bapis_bilibili_playershared_KComprehensiveToast_KOrderReportParamsEntry_al89y5_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_4q1y1o_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.key === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.key); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.value === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.value); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_4q1y1o_k$(encoder, value instanceof KOrderReportParamsEntry ? value : THROW_CCE()); + } + } + class KOrderReportParamsEntry { + constructor(key, value) { + Companion_instance_102; + key = key === VOID ? '' : key; + value = value === VOID ? '' : value; + this.key = key; + this.value = value; + } + get_key_18j28a_k$() { + return this.key; + } + get_value_j01efc_k$() { + return this.value; + } + component1_7eebsc_k$() { + return this.key; + } + component2_7eebsb_k$() { + return this.value; + } + copy_plwnsl_k$(key, value) { + return new KOrderReportParamsEntry(key, value); + } + copy(key, value, $super) { + key = key === VOID ? this.key : key; + value = value === VOID ? this.value : value; + return this.copy_plwnsl_k$(key, value); + } + toString() { + return 'KOrderReportParamsEntry(key=' + this.key + ', value=' + this.value + ')'; + } + hashCode() { + var result = getStringHashCode(this.key); + result = imul(result, 31) + getStringHashCode(this.value) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KOrderReportParamsEntry)) + return false; + var tmp0_other_with_cast = other instanceof KOrderReportParamsEntry ? other : THROW_CCE(); + if (!(this.key === tmp0_other_with_cast.key)) + return false; + if (!(this.value === tmp0_other_with_cast.value)) + return false; + return true; + } + static new_com_bapis_bilibili_playershared_KComprehensiveToast_KOrderReportParamsEntry_al89y5_k$(seen1, key, value, serializationConstructorMarker) { + Companion_instance_102; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_89().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.key = ''; + else + $this.key = key; + if (0 === (seen1 & 2)) + $this.value = ''; + else + $this.value = value; + return $this; + } + } + class Companion_103 { + constructor() { + Companion_instance_103 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, null, null, null, new LinkedHashMapSerializer(StringSerializer_getInstance(), StringSerializer_getInstance())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.playershared.ComprehensiveToast'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_90(); + } + } + class $serializer_90 { + constructor() { + $serializer_instance_90 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.playershared.KComprehensiveToast', this, 7); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('button', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('showStyleType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('icon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('toastText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('report', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('orderReportParams', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_103().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), get_nullable($serializer_getInstance_108()), IntSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_96()), get_nullable($serializer_getInstance_95()), tmp0_cached[6]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = null; + var tmp6_local2 = 0; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp12_cached = Companion_getInstance_103().$childSerializers_1; + if (tmp11_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_108(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_96(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_95(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp11_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 6, tmp12_cached[6], tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + } else + while (tmp1_flag) { + tmp2_index = tmp11_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_108(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_96(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_95(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp11_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 6, tmp12_cached[6], tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp11_input.endStructure_1xqz0n_k$(tmp0_desc); + return KComprehensiveToast.new_com_bapis_bilibili_playershared_KComprehensiveToast_e5zpfe_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, null); + } + serialize_w56uwl_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_103().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.type === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.type); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.button == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_108(), value.button); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.showStyleType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.showStyleType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.icon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.icon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.toastText == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, $serializer_getInstance_96(), value.toastText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.report == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 5, $serializer_getInstance_95(), value.report); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !equals(value.orderReportParams, emptyMap())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 6, tmp2_cached[6], value.orderReportParams); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_w56uwl_k$(encoder, value instanceof KComprehensiveToast ? value : THROW_CCE()); + } + } + class KComprehensiveToast { + constructor(type, button, showStyleType, icon, toastText, report, orderReportParams) { + Companion_getInstance_103(); + type = type === VOID ? 0 : type; + button = button === VOID ? null : button; + showStyleType = showStyleType === VOID ? 0 : showStyleType; + icon = icon === VOID ? '' : icon; + toastText = toastText === VOID ? null : toastText; + report = report === VOID ? null : report; + orderReportParams = orderReportParams === VOID ? emptyMap() : orderReportParams; + this.type = type; + this.button = button; + this.showStyleType = showStyleType; + this.icon = icon; + this.toastText = toastText; + this.report = report; + this.orderReportParams = orderReportParams; + } + get_type_wovaf7_k$() { + return this.type; + } + get_button_bmjiuz_k$() { + return this.button; + } + get_showStyleType_i19mud_k$() { + return this.showStyleType; + } + get_icon_wont8i_k$() { + return this.icon; + } + get_toastText_cuxydn_k$() { + return this.toastText; + } + get_report_iye43h_k$() { + return this.report; + } + get_orderReportParams_spw7dt_k$() { + return this.orderReportParams; + } + typeEnum() { + return Companion_getInstance_91().fromValue(this.type); + } + showStyleTypeEnum() { + return Companion_getInstance_92().fromValue(this.showStyleType); + } + component1_7eebsc_k$() { + return this.type; + } + component2_7eebsb_k$() { + return this.button; + } + component3_7eebsa_k$() { + return this.showStyleType; + } + component4_7eebs9_k$() { + return this.icon; + } + component5_7eebs8_k$() { + return this.toastText; + } + component6_7eebs7_k$() { + return this.report; + } + component7_7eebs6_k$() { + return this.orderReportParams; + } + copy_hka8ss_k$(type, button, showStyleType, icon, toastText, report, orderReportParams) { + return new KComprehensiveToast(type, button, showStyleType, icon, toastText, report, orderReportParams); + } + copy(type, button, showStyleType, icon, toastText, report, orderReportParams, $super) { + type = type === VOID ? this.type : type; + button = button === VOID ? this.button : button; + showStyleType = showStyleType === VOID ? this.showStyleType : showStyleType; + icon = icon === VOID ? this.icon : icon; + toastText = toastText === VOID ? this.toastText : toastText; + report = report === VOID ? this.report : report; + orderReportParams = orderReportParams === VOID ? this.orderReportParams : orderReportParams; + return this.copy_hka8ss_k$(type, button, showStyleType, icon, toastText, report, orderReportParams); + } + toString() { + return 'KComprehensiveToast(type=' + this.type + ', button=' + this.button + ', showStyleType=' + this.showStyleType + ', icon=' + this.icon + ', toastText=' + this.toastText + ', report=' + this.report + ', orderReportParams=' + this.orderReportParams + ')'; + } + hashCode() { + var result = this.type; + result = imul(result, 31) + (this.button == null ? 0 : this.button.hashCode()) | 0; + result = imul(result, 31) + this.showStyleType | 0; + result = imul(result, 31) + getStringHashCode(this.icon) | 0; + result = imul(result, 31) + (this.toastText == null ? 0 : this.toastText.hashCode()) | 0; + result = imul(result, 31) + (this.report == null ? 0 : this.report.hashCode()) | 0; + result = imul(result, 31) + hashCode(this.orderReportParams) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KComprehensiveToast)) + return false; + var tmp0_other_with_cast = other instanceof KComprehensiveToast ? other : THROW_CCE(); + if (!(this.type === tmp0_other_with_cast.type)) + return false; + if (!equals(this.button, tmp0_other_with_cast.button)) + return false; + if (!(this.showStyleType === tmp0_other_with_cast.showStyleType)) + return false; + if (!(this.icon === tmp0_other_with_cast.icon)) + return false; + if (!equals(this.toastText, tmp0_other_with_cast.toastText)) + return false; + if (!equals(this.report, tmp0_other_with_cast.report)) + return false; + if (!equals(this.orderReportParams, tmp0_other_with_cast.orderReportParams)) + return false; + return true; + } + static new_com_bapis_bilibili_playershared_KComprehensiveToast_e5zpfe_k$(seen1, type, button, showStyleType, icon, toastText, report, orderReportParams, serializationConstructorMarker) { + Companion_getInstance_103(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_90().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.type = 0; + else + $this.type = type; + if (0 === (seen1 & 2)) + $this.button = null; + else + $this.button = button; + if (0 === (seen1 & 4)) + $this.showStyleType = 0; + else + $this.showStyleType = showStyleType; + if (0 === (seen1 & 8)) + $this.icon = ''; + else + $this.icon = icon; + if (0 === (seen1 & 16)) + $this.toastText = null; + else + $this.toastText = toastText; + if (0 === (seen1 & 32)) + $this.report = null; + else + $this.report = report; + if (0 === (seen1 & 64)) + $this.orderReportParams = emptyMap(); + else + $this.orderReportParams = orderReportParams; + return $this; + } + } + class Companion_104 { + constructor() { + Companion_instance_104 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, null, null, new ArrayListSerializer($serializer_getInstance_108()), null, null, null, null, null, new ArrayListSerializer($serializer_getInstance_92()), null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.playershared.PromptBar'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_91(); + } + } + class $serializer_91 { + constructor() { + $serializer_instance_91 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.playershared.KPromptBar', this, 13); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('subTitle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('subTitleIcon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('bgImage', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('bgGradientColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('button', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('report', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('fullScreenIpIcon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('fullScreenBgGradientColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('promptBarType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('promptBarStyle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('benefitInfos', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('endTime', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(13)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_104().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_96()), get_nullable($serializer_getInstance_96()), StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_105()), tmp0_cached[5], get_nullable($serializer_getInstance_95()), StringSerializer_getInstance(), get_nullable($serializer_getInstance_105()), IntSerializer_getInstance(), IntSerializer_getInstance(), tmp0_cached[11], LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_local8 = null; + var tmp13_local9 = 0; + var tmp14_local10 = 0; + var tmp15_local11 = null; + var tmp16_local12 = new Long(0, 0); + var tmp17_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp18_cached = Companion_getInstance_104().$childSerializers_1; + if (tmp17_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp17_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_96(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp17_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_96(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp17_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_105(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp17_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 5, tmp18_cached[5], tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp17_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_95(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp17_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_105(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp17_input.decodeIntElement_941u6a_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp17_input.decodeIntElement_941u6a_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp17_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 11, tmp18_cached[11], tmp15_local11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + tmp16_local12 = tmp17_input.decodeLongElement_994anb_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + } else + while (tmp1_flag) { + tmp2_index = tmp17_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp17_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_96(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp17_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_96(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp17_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_105(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp17_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 5, tmp18_cached[5], tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp17_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_95(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp17_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_105(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp17_input.decodeIntElement_941u6a_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp17_input.decodeIntElement_941u6a_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp17_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 11, tmp18_cached[11], tmp15_local11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + case 12: + tmp16_local12 = tmp17_input.decodeLongElement_994anb_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp17_input.endStructure_1xqz0n_k$(tmp0_desc); + return KPromptBar.new_com_bapis_bilibili_playershared_KPromptBar_n461g5_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, null); + } + serialize_bkqrnd_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_104().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_96(), value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.subTitle == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_96(), value.subTitle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.subTitleIcon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.subTitleIcon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.bgImage === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.bgImage); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.bgGradientColor == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, $serializer_getInstance_105(), value.bgGradientColor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !equals(value.button, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 5, tmp2_cached[5], value.button); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.report == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 6, $serializer_getInstance_95(), value.report); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.fullScreenIpIcon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.fullScreenIpIcon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.fullScreenBgGradientColor == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 8, $serializer_getInstance_105(), value.fullScreenBgGradientColor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.promptBarType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 9, value.promptBarType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.promptBarStyle === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 10, value.promptBarStyle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !equals(value.benefitInfos, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 11, tmp2_cached[11], value.benefitInfos); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !value.endTime.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 12, value.endTime); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_bkqrnd_k$(encoder, value instanceof KPromptBar ? value : THROW_CCE()); + } + } + class KPromptBar { + constructor(title, subTitle, subTitleIcon, bgImage, bgGradientColor, button, report, fullScreenIpIcon, fullScreenBgGradientColor, promptBarType, promptBarStyle, benefitInfos, endTime) { + Companion_getInstance_104(); + title = title === VOID ? null : title; + subTitle = subTitle === VOID ? null : subTitle; + subTitleIcon = subTitleIcon === VOID ? '' : subTitleIcon; + bgImage = bgImage === VOID ? '' : bgImage; + bgGradientColor = bgGradientColor === VOID ? null : bgGradientColor; + button = button === VOID ? emptyList() : button; + report = report === VOID ? null : report; + fullScreenIpIcon = fullScreenIpIcon === VOID ? '' : fullScreenIpIcon; + fullScreenBgGradientColor = fullScreenBgGradientColor === VOID ? null : fullScreenBgGradientColor; + promptBarType = promptBarType === VOID ? 0 : promptBarType; + promptBarStyle = promptBarStyle === VOID ? 0 : promptBarStyle; + benefitInfos = benefitInfos === VOID ? emptyList() : benefitInfos; + endTime = endTime === VOID ? new Long(0, 0) : endTime; + this.title = title; + this.subTitle = subTitle; + this.subTitleIcon = subTitleIcon; + this.bgImage = bgImage; + this.bgGradientColor = bgGradientColor; + this.button = button; + this.report = report; + this.fullScreenIpIcon = fullScreenIpIcon; + this.fullScreenBgGradientColor = fullScreenBgGradientColor; + this.promptBarType = promptBarType; + this.promptBarStyle = promptBarStyle; + this.benefitInfos = benefitInfos; + this.endTime = endTime; + } + get_title_iz32un_k$() { + return this.title; + } + get_subTitle_4nt9z5_k$() { + return this.subTitle; + } + get_subTitleIcon_3v889m_k$() { + return this.subTitleIcon; + } + get_bgImage_215nmb_k$() { + return this.bgImage; + } + get_bgGradientColor_utqfbv_k$() { + return this.bgGradientColor; + } + get_button_bmjiuz_k$() { + return this.button; + } + get_report_iye43h_k$() { + return this.report; + } + get_fullScreenIpIcon_g2edz0_k$() { + return this.fullScreenIpIcon; + } + get_fullScreenBgGradientColor_yzzpkm_k$() { + return this.fullScreenBgGradientColor; + } + get_promptBarType_u13fb4_k$() { + return this.promptBarType; + } + get_promptBarStyle_7k49hx_k$() { + return this.promptBarStyle; + } + get_benefitInfos_6ij4vr_k$() { + return this.benefitInfos; + } + get_endTime_pbcuqp_k$() { + return this.endTime; + } + promptBarTypeEnum() { + return Companion_getInstance_94().fromValue(this.promptBarType); + } + promptBarStyleEnum() { + return Companion_getInstance_95().fromValue(this.promptBarStyle); + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.subTitle; + } + component3_7eebsa_k$() { + return this.subTitleIcon; + } + component4_7eebs9_k$() { + return this.bgImage; + } + component5_7eebs8_k$() { + return this.bgGradientColor; + } + component6_7eebs7_k$() { + return this.button; + } + component7_7eebs6_k$() { + return this.report; + } + component8_7eebs5_k$() { + return this.fullScreenIpIcon; + } + component9_7eebs4_k$() { + return this.fullScreenBgGradientColor; + } + component10_gazzfo_k$() { + return this.promptBarType; + } + component11_gazzfn_k$() { + return this.promptBarStyle; + } + component12_gazzfm_k$() { + return this.benefitInfos; + } + component13_gazzfl_k$() { + return this.endTime; + } + copy_npclqa_k$(title, subTitle, subTitleIcon, bgImage, bgGradientColor, button, report, fullScreenIpIcon, fullScreenBgGradientColor, promptBarType, promptBarStyle, benefitInfos, endTime) { + return new KPromptBar(title, subTitle, subTitleIcon, bgImage, bgGradientColor, button, report, fullScreenIpIcon, fullScreenBgGradientColor, promptBarType, promptBarStyle, benefitInfos, endTime); + } + copy(title, subTitle, subTitleIcon, bgImage, bgGradientColor, button, report, fullScreenIpIcon, fullScreenBgGradientColor, promptBarType, promptBarStyle, benefitInfos, endTime, $super) { + title = title === VOID ? this.title : title; + subTitle = subTitle === VOID ? this.subTitle : subTitle; + subTitleIcon = subTitleIcon === VOID ? this.subTitleIcon : subTitleIcon; + bgImage = bgImage === VOID ? this.bgImage : bgImage; + bgGradientColor = bgGradientColor === VOID ? this.bgGradientColor : bgGradientColor; + button = button === VOID ? this.button : button; + report = report === VOID ? this.report : report; + fullScreenIpIcon = fullScreenIpIcon === VOID ? this.fullScreenIpIcon : fullScreenIpIcon; + fullScreenBgGradientColor = fullScreenBgGradientColor === VOID ? this.fullScreenBgGradientColor : fullScreenBgGradientColor; + promptBarType = promptBarType === VOID ? this.promptBarType : promptBarType; + promptBarStyle = promptBarStyle === VOID ? this.promptBarStyle : promptBarStyle; + benefitInfos = benefitInfos === VOID ? this.benefitInfos : benefitInfos; + endTime = endTime === VOID ? this.endTime : endTime; + return this.copy_npclqa_k$(title, subTitle, subTitleIcon, bgImage, bgGradientColor, button, report, fullScreenIpIcon, fullScreenBgGradientColor, promptBarType, promptBarStyle, benefitInfos, endTime); + } + toString() { + return 'KPromptBar(title=' + this.title + ', subTitle=' + this.subTitle + ', subTitleIcon=' + this.subTitleIcon + ', bgImage=' + this.bgImage + ', bgGradientColor=' + this.bgGradientColor + ', button=' + this.button + ', report=' + this.report + ', fullScreenIpIcon=' + this.fullScreenIpIcon + ', fullScreenBgGradientColor=' + this.fullScreenBgGradientColor + ', promptBarType=' + this.promptBarType + ', promptBarStyle=' + this.promptBarStyle + ', benefitInfos=' + this.benefitInfos + ', endTime=' + this.endTime.toString() + ')'; + } + hashCode() { + var result = this.title == null ? 0 : this.title.hashCode(); + result = imul(result, 31) + (this.subTitle == null ? 0 : this.subTitle.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.subTitleIcon) | 0; + result = imul(result, 31) + getStringHashCode(this.bgImage) | 0; + result = imul(result, 31) + (this.bgGradientColor == null ? 0 : this.bgGradientColor.hashCode()) | 0; + result = imul(result, 31) + hashCode(this.button) | 0; + result = imul(result, 31) + (this.report == null ? 0 : this.report.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.fullScreenIpIcon) | 0; + result = imul(result, 31) + (this.fullScreenBgGradientColor == null ? 0 : this.fullScreenBgGradientColor.hashCode()) | 0; + result = imul(result, 31) + this.promptBarType | 0; + result = imul(result, 31) + this.promptBarStyle | 0; + result = imul(result, 31) + hashCode(this.benefitInfos) | 0; + result = imul(result, 31) + this.endTime.hashCode() | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KPromptBar)) + return false; + var tmp0_other_with_cast = other instanceof KPromptBar ? other : THROW_CCE(); + if (!equals(this.title, tmp0_other_with_cast.title)) + return false; + if (!equals(this.subTitle, tmp0_other_with_cast.subTitle)) + return false; + if (!(this.subTitleIcon === tmp0_other_with_cast.subTitleIcon)) + return false; + if (!(this.bgImage === tmp0_other_with_cast.bgImage)) + return false; + if (!equals(this.bgGradientColor, tmp0_other_with_cast.bgGradientColor)) + return false; + if (!equals(this.button, tmp0_other_with_cast.button)) + return false; + if (!equals(this.report, tmp0_other_with_cast.report)) + return false; + if (!(this.fullScreenIpIcon === tmp0_other_with_cast.fullScreenIpIcon)) + return false; + if (!equals(this.fullScreenBgGradientColor, tmp0_other_with_cast.fullScreenBgGradientColor)) + return false; + if (!(this.promptBarType === tmp0_other_with_cast.promptBarType)) + return false; + if (!(this.promptBarStyle === tmp0_other_with_cast.promptBarStyle)) + return false; + if (!equals(this.benefitInfos, tmp0_other_with_cast.benefitInfos)) + return false; + if (!this.endTime.equals(tmp0_other_with_cast.endTime)) + return false; + return true; + } + static new_com_bapis_bilibili_playershared_KPromptBar_n461g5_k$(seen1, title, subTitle, subTitleIcon, bgImage, bgGradientColor, button, report, fullScreenIpIcon, fullScreenBgGradientColor, promptBarType, promptBarStyle, benefitInfos, endTime, serializationConstructorMarker) { + Companion_getInstance_104(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_91().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = null; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.subTitle = null; + else + $this.subTitle = subTitle; + if (0 === (seen1 & 4)) + $this.subTitleIcon = ''; + else + $this.subTitleIcon = subTitleIcon; + if (0 === (seen1 & 8)) + $this.bgImage = ''; + else + $this.bgImage = bgImage; + if (0 === (seen1 & 16)) + $this.bgGradientColor = null; + else + $this.bgGradientColor = bgGradientColor; + if (0 === (seen1 & 32)) + $this.button = emptyList(); + else + $this.button = button; + if (0 === (seen1 & 64)) + $this.report = null; + else + $this.report = report; + if (0 === (seen1 & 128)) + $this.fullScreenIpIcon = ''; + else + $this.fullScreenIpIcon = fullScreenIpIcon; + if (0 === (seen1 & 256)) + $this.fullScreenBgGradientColor = null; + else + $this.fullScreenBgGradientColor = fullScreenBgGradientColor; + if (0 === (seen1 & 512)) + $this.promptBarType = 0; + else + $this.promptBarType = promptBarType; + if (0 === (seen1 & 1024)) + $this.promptBarStyle = 0; + else + $this.promptBarStyle = promptBarStyle; + if (0 === (seen1 & 2048)) + $this.benefitInfos = emptyList(); + else + $this.benefitInfos = benefitInfos; + if (0 === (seen1 & 4096)) + $this.endTime = new Long(0, 0); + else + $this.endTime = endTime; + return $this; + } + } + class Companion_105 { + constructor() { + this.targetPath = '/bilibili.playershared.BenefitInfo'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_92(); + } + } + class $serializer_92 { + constructor() { + $serializer_instance_92 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.playershared.KBenefitInfo', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('icon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KBenefitInfo.new_com_bapis_bilibili_playershared_KBenefitInfo_43yv01_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_mvgyn1_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.icon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.icon); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_mvgyn1_k$(encoder, value instanceof KBenefitInfo ? value : THROW_CCE()); + } + } + class KBenefitInfo { + constructor(title, icon) { + Companion_instance_105; + title = title === VOID ? '' : title; + icon = icon === VOID ? '' : icon; + this.title = title; + this.icon = icon; + } + get_title_iz32un_k$() { + return this.title; + } + get_icon_wont8i_k$() { + return this.icon; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.icon; + } + copy_plwnsl_k$(title, icon) { + return new KBenefitInfo(title, icon); + } + copy(title, icon, $super) { + title = title === VOID ? this.title : title; + icon = icon === VOID ? this.icon : icon; + return this.copy_plwnsl_k$(title, icon); + } + toString() { + return 'KBenefitInfo(title=' + this.title + ', icon=' + this.icon + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.icon) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KBenefitInfo)) + return false; + var tmp0_other_with_cast = other instanceof KBenefitInfo ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.icon === tmp0_other_with_cast.icon)) + return false; + return true; + } + static new_com_bapis_bilibili_playershared_KBenefitInfo_43yv01_k$(seen1, title, icon, serializationConstructorMarker) { + Companion_instance_105; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_92().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.icon = ''; + else + $this.icon = icon; + return $this; + } + } + class Companion_106 { + constructor() { + Companion_instance_106 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, null, null, new ArrayListSerializer($serializer_getInstance_108()), null, null, null, null, new ArrayListSerializer($serializer_getInstance_94()), null, null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.playershared.Dialog'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_93(); + } + } + class $serializer_93 { + constructor() { + $serializer_instance_93 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.playershared.KDialog', this, 14); + tmp0_serialDesc.addElement_5pzumi_k$('styleType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('backgroundInfo', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('subtitle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('image', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('button', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('bottomDesc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('report', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('countDownSec', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('rightBottomDesc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('bottomDisplay', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('extData', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + tmp0_serialDesc.addElement_5pzumi_k$('limitActionType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(13)); + tmp0_serialDesc.addElement_5pzumi_k$('isHideMoreBtn', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(14)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_106().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), get_nullable($serializer_getInstance_106()), get_nullable($serializer_getInstance_96()), get_nullable($serializer_getInstance_96()), get_nullable($serializer_getInstance_97()), tmp0_cached[5], get_nullable($serializer_getInstance_108()), get_nullable($serializer_getInstance_95()), IntSerializer_getInstance(), get_nullable($serializer_getInstance_96()), tmp0_cached[10], get_nullable($serializer_getInstance_98()), IntSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_local8 = 0; + var tmp13_local9 = null; + var tmp14_local10 = null; + var tmp15_local11 = null; + var tmp16_local12 = 0; + var tmp17_local13 = 0; + var tmp18_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp19_cached = Companion_getInstance_106().$childSerializers_1; + if (tmp18_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp18_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_106(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_96(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_96(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_97(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp18_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 5, tmp19_cached[5], tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_108(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_95(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp18_input.decodeIntElement_941u6a_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 9, $serializer_getInstance_96(), tmp13_local9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp18_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 10, tmp19_cached[10], tmp14_local10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 11, $serializer_getInstance_98(), tmp15_local11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + tmp16_local12 = tmp18_input.decodeIntElement_941u6a_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + tmp17_local13 = tmp18_input.decodeIntElement_941u6a_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + } else + while (tmp1_flag) { + tmp2_index = tmp18_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp18_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_106(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_96(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_96(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_97(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp18_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 5, tmp19_cached[5], tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_108(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_95(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp18_input.decodeIntElement_941u6a_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 9, $serializer_getInstance_96(), tmp13_local9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp18_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 10, tmp19_cached[10], tmp14_local10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 11, $serializer_getInstance_98(), tmp15_local11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + case 12: + tmp16_local12 = tmp18_input.decodeIntElement_941u6a_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + break; + case 13: + tmp17_local13 = tmp18_input.decodeIntElement_941u6a_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp18_input.endStructure_1xqz0n_k$(tmp0_desc); + return KDialog.new_com_bapis_bilibili_playershared_KDialog_yz8pp4_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, null); + } + serialize_hwokt2_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_106().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.styleType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.styleType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.backgroundInfo == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_106(), value.backgroundInfo); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.title == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_96(), value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.subtitle == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_96(), value.subtitle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.image == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, $serializer_getInstance_97(), value.image); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !equals(value.button, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 5, tmp2_cached[5], value.button); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.bottomDesc == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 6, $serializer_getInstance_108(), value.bottomDesc); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.report == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 7, $serializer_getInstance_95(), value.report); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.countDownSec === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 8, value.countDownSec); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.rightBottomDesc == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 9, $serializer_getInstance_96(), value.rightBottomDesc); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !equals(value.bottomDisplay, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 10, tmp2_cached[10], value.bottomDisplay); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.extData == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 11, $serializer_getInstance_98(), value.extData); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !(value.limitActionType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 12, value.limitActionType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 13) ? true : !(value.isHideMoreBtn === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 13, value.isHideMoreBtn); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_hwokt2_k$(encoder, value instanceof KDialog ? value : THROW_CCE()); + } + } + class KDialog { + constructor(styleType, backgroundInfo, title, subtitle, image, button, bottomDesc, report, countDownSec, rightBottomDesc, bottomDisplay, extData, limitActionType, isHideMoreBtn) { + Companion_getInstance_106(); + styleType = styleType === VOID ? 0 : styleType; + backgroundInfo = backgroundInfo === VOID ? null : backgroundInfo; + title = title === VOID ? null : title; + subtitle = subtitle === VOID ? null : subtitle; + image = image === VOID ? null : image; + button = button === VOID ? emptyList() : button; + bottomDesc = bottomDesc === VOID ? null : bottomDesc; + report = report === VOID ? null : report; + countDownSec = countDownSec === VOID ? 0 : countDownSec; + rightBottomDesc = rightBottomDesc === VOID ? null : rightBottomDesc; + bottomDisplay = bottomDisplay === VOID ? emptyList() : bottomDisplay; + extData = extData === VOID ? null : extData; + limitActionType = limitActionType === VOID ? 0 : limitActionType; + isHideMoreBtn = isHideMoreBtn === VOID ? 0 : isHideMoreBtn; + this.styleType = styleType; + this.backgroundInfo = backgroundInfo; + this.title = title; + this.subtitle = subtitle; + this.image = image; + this.button = button; + this.bottomDesc = bottomDesc; + this.report = report; + this.countDownSec = countDownSec; + this.rightBottomDesc = rightBottomDesc; + this.bottomDisplay = bottomDisplay; + this.extData = extData; + this.limitActionType = limitActionType; + this.isHideMoreBtn = isHideMoreBtn; + } + get_styleType_wnr50e_k$() { + return this.styleType; + } + get_backgroundInfo_e2fxff_k$() { + return this.backgroundInfo; + } + get_title_iz32un_k$() { + return this.title; + } + get_subtitle_55eoyp_k$() { + return this.subtitle; + } + get_image_it3i2a_k$() { + return this.image; + } + get_button_bmjiuz_k$() { + return this.button; + } + get_bottomDesc_n0tsyt_k$() { + return this.bottomDesc; + } + get_report_iye43h_k$() { + return this.report; + } + get_countDownSec_b7ygzb_k$() { + return this.countDownSec; + } + get_rightBottomDesc_b4iogh_k$() { + return this.rightBottomDesc; + } + get_bottomDisplay_5l13vy_k$() { + return this.bottomDisplay; + } + get_extData_kceav2_k$() { + return this.extData; + } + get_limitActionType_ctp9ky_k$() { + return this.limitActionType; + } + get_isHideMoreBtn_60rdla_k$() { + return this.isHideMoreBtn; + } + styleTypeEnum() { + return Companion_getInstance_93().fromValue(this.styleType); + } + limitActionTypeEnum() { + return Companion_getInstance_96().fromValue(this.limitActionType); + } + component1_7eebsc_k$() { + return this.styleType; + } + component2_7eebsb_k$() { + return this.backgroundInfo; + } + component3_7eebsa_k$() { + return this.title; + } + component4_7eebs9_k$() { + return this.subtitle; + } + component5_7eebs8_k$() { + return this.image; + } + component6_7eebs7_k$() { + return this.button; + } + component7_7eebs6_k$() { + return this.bottomDesc; + } + component8_7eebs5_k$() { + return this.report; + } + component9_7eebs4_k$() { + return this.countDownSec; + } + component10_gazzfo_k$() { + return this.rightBottomDesc; + } + component11_gazzfn_k$() { + return this.bottomDisplay; + } + component12_gazzfm_k$() { + return this.extData; + } + component13_gazzfl_k$() { + return this.limitActionType; + } + component14_gazzfk_k$() { + return this.isHideMoreBtn; + } + copy_a753ot_k$(styleType, backgroundInfo, title, subtitle, image, button, bottomDesc, report, countDownSec, rightBottomDesc, bottomDisplay, extData, limitActionType, isHideMoreBtn) { + return new KDialog(styleType, backgroundInfo, title, subtitle, image, button, bottomDesc, report, countDownSec, rightBottomDesc, bottomDisplay, extData, limitActionType, isHideMoreBtn); + } + copy(styleType, backgroundInfo, title, subtitle, image, button, bottomDesc, report, countDownSec, rightBottomDesc, bottomDisplay, extData, limitActionType, isHideMoreBtn, $super) { + styleType = styleType === VOID ? this.styleType : styleType; + backgroundInfo = backgroundInfo === VOID ? this.backgroundInfo : backgroundInfo; + title = title === VOID ? this.title : title; + subtitle = subtitle === VOID ? this.subtitle : subtitle; + image = image === VOID ? this.image : image; + button = button === VOID ? this.button : button; + bottomDesc = bottomDesc === VOID ? this.bottomDesc : bottomDesc; + report = report === VOID ? this.report : report; + countDownSec = countDownSec === VOID ? this.countDownSec : countDownSec; + rightBottomDesc = rightBottomDesc === VOID ? this.rightBottomDesc : rightBottomDesc; + bottomDisplay = bottomDisplay === VOID ? this.bottomDisplay : bottomDisplay; + extData = extData === VOID ? this.extData : extData; + limitActionType = limitActionType === VOID ? this.limitActionType : limitActionType; + isHideMoreBtn = isHideMoreBtn === VOID ? this.isHideMoreBtn : isHideMoreBtn; + return this.copy_a753ot_k$(styleType, backgroundInfo, title, subtitle, image, button, bottomDesc, report, countDownSec, rightBottomDesc, bottomDisplay, extData, limitActionType, isHideMoreBtn); + } + toString() { + return 'KDialog(styleType=' + this.styleType + ', backgroundInfo=' + this.backgroundInfo + ', title=' + this.title + ', subtitle=' + this.subtitle + ', image=' + this.image + ', button=' + this.button + ', bottomDesc=' + this.bottomDesc + ', report=' + this.report + ', countDownSec=' + this.countDownSec + ', rightBottomDesc=' + this.rightBottomDesc + ', bottomDisplay=' + this.bottomDisplay + ', extData=' + this.extData + ', limitActionType=' + this.limitActionType + ', isHideMoreBtn=' + this.isHideMoreBtn + ')'; + } + hashCode() { + var result = this.styleType; + result = imul(result, 31) + (this.backgroundInfo == null ? 0 : this.backgroundInfo.hashCode()) | 0; + result = imul(result, 31) + (this.title == null ? 0 : this.title.hashCode()) | 0; + result = imul(result, 31) + (this.subtitle == null ? 0 : this.subtitle.hashCode()) | 0; + result = imul(result, 31) + (this.image == null ? 0 : this.image.hashCode()) | 0; + result = imul(result, 31) + hashCode(this.button) | 0; + result = imul(result, 31) + (this.bottomDesc == null ? 0 : this.bottomDesc.hashCode()) | 0; + result = imul(result, 31) + (this.report == null ? 0 : this.report.hashCode()) | 0; + result = imul(result, 31) + this.countDownSec | 0; + result = imul(result, 31) + (this.rightBottomDesc == null ? 0 : this.rightBottomDesc.hashCode()) | 0; + result = imul(result, 31) + hashCode(this.bottomDisplay) | 0; + result = imul(result, 31) + (this.extData == null ? 0 : this.extData.hashCode()) | 0; + result = imul(result, 31) + this.limitActionType | 0; + result = imul(result, 31) + this.isHideMoreBtn | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KDialog)) + return false; + var tmp0_other_with_cast = other instanceof KDialog ? other : THROW_CCE(); + if (!(this.styleType === tmp0_other_with_cast.styleType)) + return false; + if (!equals(this.backgroundInfo, tmp0_other_with_cast.backgroundInfo)) + return false; + if (!equals(this.title, tmp0_other_with_cast.title)) + return false; + if (!equals(this.subtitle, tmp0_other_with_cast.subtitle)) + return false; + if (!equals(this.image, tmp0_other_with_cast.image)) + return false; + if (!equals(this.button, tmp0_other_with_cast.button)) + return false; + if (!equals(this.bottomDesc, tmp0_other_with_cast.bottomDesc)) + return false; + if (!equals(this.report, tmp0_other_with_cast.report)) + return false; + if (!(this.countDownSec === tmp0_other_with_cast.countDownSec)) + return false; + if (!equals(this.rightBottomDesc, tmp0_other_with_cast.rightBottomDesc)) + return false; + if (!equals(this.bottomDisplay, tmp0_other_with_cast.bottomDisplay)) + return false; + if (!equals(this.extData, tmp0_other_with_cast.extData)) + return false; + if (!(this.limitActionType === tmp0_other_with_cast.limitActionType)) + return false; + if (!(this.isHideMoreBtn === tmp0_other_with_cast.isHideMoreBtn)) + return false; + return true; + } + static new_com_bapis_bilibili_playershared_KDialog_yz8pp4_k$(seen1, styleType, backgroundInfo, title, subtitle, image, button, bottomDesc, report, countDownSec, rightBottomDesc, bottomDisplay, extData, limitActionType, isHideMoreBtn, serializationConstructorMarker) { + Companion_getInstance_106(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_93().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.styleType = 0; + else + $this.styleType = styleType; + if (0 === (seen1 & 2)) + $this.backgroundInfo = null; + else + $this.backgroundInfo = backgroundInfo; + if (0 === (seen1 & 4)) + $this.title = null; + else + $this.title = title; + if (0 === (seen1 & 8)) + $this.subtitle = null; + else + $this.subtitle = subtitle; + if (0 === (seen1 & 16)) + $this.image = null; + else + $this.image = image; + if (0 === (seen1 & 32)) + $this.button = emptyList(); + else + $this.button = button; + if (0 === (seen1 & 64)) + $this.bottomDesc = null; + else + $this.bottomDesc = bottomDesc; + if (0 === (seen1 & 128)) + $this.report = null; + else + $this.report = report; + if (0 === (seen1 & 256)) + $this.countDownSec = 0; + else + $this.countDownSec = countDownSec; + if (0 === (seen1 & 512)) + $this.rightBottomDesc = null; + else + $this.rightBottomDesc = rightBottomDesc; + if (0 === (seen1 & 1024)) + $this.bottomDisplay = emptyList(); + else + $this.bottomDisplay = bottomDisplay; + if (0 === (seen1 & 2048)) + $this.extData = null; + else + $this.extData = extData; + if (0 === (seen1 & 4096)) + $this.limitActionType = 0; + else + $this.limitActionType = limitActionType; + if (0 === (seen1 & 8192)) + $this.isHideMoreBtn = 0; + else + $this.isHideMoreBtn = isHideMoreBtn; + return $this; + } + } + class Companion_107 { + constructor() { + this.targetPath = '/bilibili.playershared.BottomDisplay'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_94(); + } + } + class $serializer_94 { + constructor() { + $serializer_instance_94 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.playershared.KBottomDisplay', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('icon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_96()), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_96(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_96(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KBottomDisplay.new_com_bapis_bilibili_playershared_KBottomDisplay_mch4lp_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_46fjld_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_96(), value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.icon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.icon); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_46fjld_k$(encoder, value instanceof KBottomDisplay ? value : THROW_CCE()); + } + } + class KBottomDisplay { + constructor(title, icon) { + Companion_instance_107; + title = title === VOID ? null : title; + icon = icon === VOID ? '' : icon; + this.title = title; + this.icon = icon; + } + get_title_iz32un_k$() { + return this.title; + } + get_icon_wont8i_k$() { + return this.icon; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.icon; + } + copy_bo2h36_k$(title, icon) { + return new KBottomDisplay(title, icon); + } + copy(title, icon, $super) { + title = title === VOID ? this.title : title; + icon = icon === VOID ? this.icon : icon; + return this.copy_bo2h36_k$(title, icon); + } + toString() { + return 'KBottomDisplay(title=' + this.title + ', icon=' + this.icon + ')'; + } + hashCode() { + var result = this.title == null ? 0 : this.title.hashCode(); + result = imul(result, 31) + getStringHashCode(this.icon) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KBottomDisplay)) + return false; + var tmp0_other_with_cast = other instanceof KBottomDisplay ? other : THROW_CCE(); + if (!equals(this.title, tmp0_other_with_cast.title)) + return false; + if (!(this.icon === tmp0_other_with_cast.icon)) + return false; + return true; + } + static new_com_bapis_bilibili_playershared_KBottomDisplay_mch4lp_k$(seen1, title, icon, serializationConstructorMarker) { + Companion_instance_107; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_94().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = null; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.icon = ''; + else + $this.icon = icon; + return $this; + } + } + class Companion_108 { + constructor() { + this.targetPath = '/bilibili.playershared.Report'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_95(); + } + } + class $serializer_95 { + constructor() { + $serializer_instance_95 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.playershared.KReport', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('showEventId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('clickEventId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('extends', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KReport.new_com_bapis_bilibili_playershared_KReport_ho53px_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_3dvc46_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.showEventId === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.showEventId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.clickEventId === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.clickEventId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.extends === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.extends); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_3dvc46_k$(encoder, value instanceof KReport ? value : THROW_CCE()); + } + } + class KReport { + constructor(showEventId, clickEventId, extends_0) { + Companion_instance_108; + showEventId = showEventId === VOID ? '' : showEventId; + clickEventId = clickEventId === VOID ? '' : clickEventId; + extends_0 = extends_0 === VOID ? '' : extends_0; + this.showEventId = showEventId; + this.clickEventId = clickEventId; + this.extends = extends_0; + } + get_showEventId_2g8dsh_k$() { + return this.showEventId; + } + get_clickEventId_91acju_k$() { + return this.clickEventId; + } + get_extends_kbsz0w_k$() { + return this.extends; + } + component1_7eebsc_k$() { + return this.showEventId; + } + component2_7eebsb_k$() { + return this.clickEventId; + } + component3_7eebsa_k$() { + return this.extends; + } + copy_nc7k0r_k$(showEventId, clickEventId, extends_0) { + return new KReport(showEventId, clickEventId, extends_0); + } + copy(showEventId, clickEventId, extends_0, $super) { + showEventId = showEventId === VOID ? this.showEventId : showEventId; + clickEventId = clickEventId === VOID ? this.clickEventId : clickEventId; + extends_0 = extends_0 === VOID ? this.extends : extends_0; + return this.copy_nc7k0r_k$(showEventId, clickEventId, extends_0); + } + toString() { + return 'KReport(showEventId=' + this.showEventId + ', clickEventId=' + this.clickEventId + ', extends=' + this.extends + ')'; + } + hashCode() { + var result = getStringHashCode(this.showEventId); + result = imul(result, 31) + getStringHashCode(this.clickEventId) | 0; + result = imul(result, 31) + getStringHashCode(this.extends) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KReport)) + return false; + var tmp0_other_with_cast = other instanceof KReport ? other : THROW_CCE(); + if (!(this.showEventId === tmp0_other_with_cast.showEventId)) + return false; + if (!(this.clickEventId === tmp0_other_with_cast.clickEventId)) + return false; + if (!(this.extends === tmp0_other_with_cast.extends)) + return false; + return true; + } + static new_com_bapis_bilibili_playershared_KReport_ho53px_k$(seen1, showEventId, clickEventId, extends_0, serializationConstructorMarker) { + Companion_instance_108; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_95().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.showEventId = ''; + else + $this.showEventId = showEventId; + if (0 === (seen1 & 2)) + $this.clickEventId = ''; + else + $this.clickEventId = clickEventId; + if (0 === (seen1 & 4)) + $this.extends = ''; + else + $this.extends = extends_0; + return $this; + } + } + class Companion_109 { + constructor() { + this.targetPath = '/bilibili.playershared.TextInfo'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_96(); + } + } + class $serializer_96 { + constructor() { + $serializer_instance_96 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.playershared.KTextInfo', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('text', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('textColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('textColorNight', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KTextInfo.new_com_bapis_bilibili_playershared_KTextInfo_wcrncs_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_vmyq2r_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.text === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.text); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.textColor === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.textColor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.textColorNight === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.textColorNight); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_vmyq2r_k$(encoder, value instanceof KTextInfo ? value : THROW_CCE()); + } + } + class KTextInfo { + constructor(text, textColor, textColorNight) { + Companion_instance_109; + text = text === VOID ? '' : text; + textColor = textColor === VOID ? '' : textColor; + textColorNight = textColorNight === VOID ? '' : textColorNight; + this.text = text; + this.textColor = textColor; + this.textColorNight = textColorNight; + } + get_text_wouvsm_k$() { + return this.text; + } + get_textColor_92p84z_k$() { + return this.textColor; + } + get_textColorNight_hqolf9_k$() { + return this.textColorNight; + } + component1_7eebsc_k$() { + return this.text; + } + component2_7eebsb_k$() { + return this.textColor; + } + component3_7eebsa_k$() { + return this.textColorNight; + } + copy_nc7k0r_k$(text, textColor, textColorNight) { + return new KTextInfo(text, textColor, textColorNight); + } + copy(text, textColor, textColorNight, $super) { + text = text === VOID ? this.text : text; + textColor = textColor === VOID ? this.textColor : textColor; + textColorNight = textColorNight === VOID ? this.textColorNight : textColorNight; + return this.copy_nc7k0r_k$(text, textColor, textColorNight); + } + toString() { + return 'KTextInfo(text=' + this.text + ', textColor=' + this.textColor + ', textColorNight=' + this.textColorNight + ')'; + } + hashCode() { + var result = getStringHashCode(this.text); + result = imul(result, 31) + getStringHashCode(this.textColor) | 0; + result = imul(result, 31) + getStringHashCode(this.textColorNight) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KTextInfo)) + return false; + var tmp0_other_with_cast = other instanceof KTextInfo ? other : THROW_CCE(); + if (!(this.text === tmp0_other_with_cast.text)) + return false; + if (!(this.textColor === tmp0_other_with_cast.textColor)) + return false; + if (!(this.textColorNight === tmp0_other_with_cast.textColorNight)) + return false; + return true; + } + static new_com_bapis_bilibili_playershared_KTextInfo_wcrncs_k$(seen1, text, textColor, textColorNight, serializationConstructorMarker) { + Companion_instance_109; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_96().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.text = ''; + else + $this.text = text; + if (0 === (seen1 & 2)) + $this.textColor = ''; + else + $this.textColor = textColor; + if (0 === (seen1 & 4)) + $this.textColorNight = ''; + else + $this.textColorNight = textColorNight; + return $this; + } + } + class Companion_110 { + constructor() { + this.targetPath = '/bilibili.playershared.ImageInfo'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_97(); + } + } + class $serializer_97 { + constructor() { + $serializer_instance_97 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.playershared.KImageInfo', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('url', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KImageInfo.new_com_bapis_bilibili_playershared_KImageInfo_rjb46s_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_tuli8v_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.url === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.url); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_tuli8v_k$(encoder, value instanceof KImageInfo ? value : THROW_CCE()); + } + } + class KImageInfo { + constructor(url) { + Companion_instance_110; + url = url === VOID ? '' : url; + this.url = url; + } + get_url_18iuii_k$() { + return this.url; + } + component1_7eebsc_k$() { + return this.url; + } + copy_a35qlh_k$(url) { + return new KImageInfo(url); + } + copy(url, $super) { + url = url === VOID ? this.url : url; + return this.copy_a35qlh_k$(url); + } + toString() { + return 'KImageInfo(url=' + this.url + ')'; + } + hashCode() { + return getStringHashCode(this.url); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KImageInfo)) + return false; + var tmp0_other_with_cast = other instanceof KImageInfo ? other : THROW_CCE(); + if (!(this.url === tmp0_other_with_cast.url)) + return false; + return true; + } + static new_com_bapis_bilibili_playershared_KImageInfo_rjb46s_k$(seen1, url, serializationConstructorMarker) { + Companion_instance_110; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_97().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.url = ''; + else + $this.url = url; + return $this; + } + } + class KData { + constructor(value) { + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + } + class KPlayListInfo extends KData { + constructor() { + KPlayListInfo_instance = null; + super(0); + KPlayListInfo_instance = this; + } + } + class KBanner extends KData { + constructor() { + KBanner_instance = null; + super(1); + KBanner_instance = this; + } + } + class KEpInlineVideoInfo extends KData { + constructor() { + KEpInlineVideoInfo_instance = null; + super(2); + KEpInlineVideoInfo_instance = this; + } + } + class Companion_111 { + constructor() { + Companion_instance_111 = this; + var tmp = this; + tmp.dataValues$delegate_1 = lazy_0(KExtData$Companion$dataValues$delegate$lambda); + this.targetPath = '/bilibili.playershared.ExtData'; + } + get_dataValues_22mgad_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.dataValues$delegate_1; + var thisRef = this; + var property = dataValues$factory(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_98(); + } + get dataValues() { + return this.get_dataValues_22mgad_k$(); + } + } + class $serializer_98 { + constructor() { + $serializer_instance_98 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.playershared.KExtData', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('playListInfo', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('banner', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('epInlineVideoInfo', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), get_nullable($serializer_getInstance_102()), get_nullable($serializer_getInstance_99()), get_nullable($serializer_getInstance_100())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_transient0 = 0; + var tmp9_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp9_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_102(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_99(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_100(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp9_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_102(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_99(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_100(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp9_input.endStructure_1xqz0n_k$(tmp0_desc); + return KExtData.new_com_bapis_bilibili_playershared_KExtData_lv4z1e_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_hbmeb_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.type === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.type); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.playListInfo_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_102(), value.playListInfo_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.banner_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_99(), value.banner_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.epInlineVideoInfo_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_100(), value.epInlineVideoInfo_1); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_hbmeb_k$(encoder, value instanceof KExtData ? value : THROW_CCE()); + } + } + class KExtData { + constructor(type, playListInfo, banner, epInlineVideoInfo) { + Companion_getInstance_111(); + type = type === VOID ? 0 : type; + playListInfo = playListInfo === VOID ? null : playListInfo; + banner = banner === VOID ? null : banner; + epInlineVideoInfo = epInlineVideoInfo === VOID ? null : epInlineVideoInfo; + this.type = type; + this.playListInfo_1 = playListInfo; + this.banner_1 = banner; + this.epInlineVideoInfo_1 = epInlineVideoInfo; + var tmp = this; + tmp.dataNumber$delegate_1 = lazy_0(KExtData$dataNumber$delegate$lambda(this)); + } + get_type_wovaf7_k$() { + return this.type; + } + dataValue() { + if (!(this.playListInfo_1 == null)) { + var tmp = this.playListInfo_1; + return (tmp == null ? true : !(tmp == null)) ? tmp : null; + } else if (!(this.banner_1 == null)) { + var tmp_0 = this.banner_1; + return (tmp_0 == null ? true : !(tmp_0 == null)) ? tmp_0 : null; + } else if (!(this.epInlineVideoInfo_1 == null)) { + var tmp_1 = this.epInlineVideoInfo_1; + return (tmp_1 == null ? true : !(tmp_1 == null)) ? tmp_1 : null; + } else { + return null; + } + } + dataTypeJs() { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = Companion_getInstance_111().dataValues; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.playershared.KExtData.dataType.' call + var it = element; + tmp$ret$0 = it.value === _get_dataNumber__hqvc14(this); + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + return tmp$ret$1; + } + typeEnum() { + return Companion_getInstance_97().fromValue(this.type); + } + component1_7eebsc_k$() { + return this.type; + } + copy_hnv7fq_k$(type, playListInfo, banner, epInlineVideoInfo) { + return new KExtData(type, playListInfo, banner, epInlineVideoInfo); + } + copy(type, playListInfo, banner, epInlineVideoInfo, $super) { + type = type === VOID ? this.type : type; + playListInfo = playListInfo === VOID ? this.playListInfo_1 : playListInfo; + banner = banner === VOID ? this.banner_1 : banner; + epInlineVideoInfo = epInlineVideoInfo === VOID ? this.epInlineVideoInfo_1 : epInlineVideoInfo; + return this.copy_hnv7fq_k$(type, playListInfo, banner, epInlineVideoInfo); + } + toString() { + return 'KExtData(type=' + this.type + ', playListInfo=' + this.playListInfo_1 + ', banner=' + this.banner_1 + ', epInlineVideoInfo=' + this.epInlineVideoInfo_1 + ')'; + } + hashCode() { + var result = this.type; + result = imul(result, 31) + (this.playListInfo_1 == null ? 0 : this.playListInfo_1.hashCode()) | 0; + result = imul(result, 31) + (this.banner_1 == null ? 0 : this.banner_1.hashCode()) | 0; + result = imul(result, 31) + (this.epInlineVideoInfo_1 == null ? 0 : this.epInlineVideoInfo_1.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KExtData)) + return false; + var tmp0_other_with_cast = other instanceof KExtData ? other : THROW_CCE(); + if (!(this.type === tmp0_other_with_cast.type)) + return false; + if (!equals(this.playListInfo_1, tmp0_other_with_cast.playListInfo_1)) + return false; + if (!equals(this.banner_1, tmp0_other_with_cast.banner_1)) + return false; + if (!equals(this.epInlineVideoInfo_1, tmp0_other_with_cast.epInlineVideoInfo_1)) + return false; + return true; + } + static new_com_bapis_bilibili_playershared_KExtData_lv4z1e_k$(seen1, type, playListInfo, banner, epInlineVideoInfo, serializationConstructorMarker) { + Companion_getInstance_111(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_98().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.type = 0; + else + $this.type = type; + if (0 === (seen1 & 2)) + $this.playListInfo_1 = null; + else + $this.playListInfo_1 = playListInfo; + if (0 === (seen1 & 4)) + $this.banner_1 = null; + else + $this.banner_1 = banner; + if (0 === (seen1 & 8)) + $this.epInlineVideoInfo_1 = null; + else + $this.epInlineVideoInfo_1 = epInlineVideoInfo; + var tmp = $this; + tmp.dataNumber$delegate_1 = lazy_0(KExtData$_init_$lambda_92vcj9($this)); + return $this; + } + } + class Companion_112 { + constructor() { + this.targetPath = '/bilibili.playershared.Banner'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_99(); + } + } + class $serializer_99 { + constructor() { + $serializer_instance_99 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.playershared.KBanner', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('jumpLink', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('imageLink', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('halfImageLink', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('report', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_95())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_95(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_95(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KBanner_0.new_com_bapis_bilibili_playershared_KBanner_ng59mb_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_d7obv2_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.jumpLink === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.jumpLink); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.imageLink === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.imageLink); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.halfImageLink === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.halfImageLink); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.report == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_95(), value.report); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_d7obv2_k$(encoder, value instanceof KBanner_0 ? value : THROW_CCE()); + } + } + class KBanner_0 { + constructor(jumpLink, imageLink, halfImageLink, report) { + Companion_instance_112; + jumpLink = jumpLink === VOID ? '' : jumpLink; + imageLink = imageLink === VOID ? '' : imageLink; + halfImageLink = halfImageLink === VOID ? '' : halfImageLink; + report = report === VOID ? null : report; + this.jumpLink = jumpLink; + this.imageLink = imageLink; + this.halfImageLink = halfImageLink; + this.report = report; + } + get_jumpLink_z00kk1_k$() { + return this.jumpLink; + } + get_imageLink_60gdro_k$() { + return this.imageLink; + } + get_halfImageLink_efcmhl_k$() { + return this.halfImageLink; + } + get_report_iye43h_k$() { + return this.report; + } + component1_7eebsc_k$() { + return this.jumpLink; + } + component2_7eebsb_k$() { + return this.imageLink; + } + component3_7eebsa_k$() { + return this.halfImageLink; + } + component4_7eebs9_k$() { + return this.report; + } + copy_x7r10l_k$(jumpLink, imageLink, halfImageLink, report) { + return new KBanner_0(jumpLink, imageLink, halfImageLink, report); + } + copy(jumpLink, imageLink, halfImageLink, report, $super) { + jumpLink = jumpLink === VOID ? this.jumpLink : jumpLink; + imageLink = imageLink === VOID ? this.imageLink : imageLink; + halfImageLink = halfImageLink === VOID ? this.halfImageLink : halfImageLink; + report = report === VOID ? this.report : report; + return this.copy_x7r10l_k$(jumpLink, imageLink, halfImageLink, report); + } + toString() { + return 'KBanner(jumpLink=' + this.jumpLink + ', imageLink=' + this.imageLink + ', halfImageLink=' + this.halfImageLink + ', report=' + this.report + ')'; + } + hashCode() { + var result = getStringHashCode(this.jumpLink); + result = imul(result, 31) + getStringHashCode(this.imageLink) | 0; + result = imul(result, 31) + getStringHashCode(this.halfImageLink) | 0; + result = imul(result, 31) + (this.report == null ? 0 : this.report.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KBanner_0)) + return false; + var tmp0_other_with_cast = other instanceof KBanner_0 ? other : THROW_CCE(); + if (!(this.jumpLink === tmp0_other_with_cast.jumpLink)) + return false; + if (!(this.imageLink === tmp0_other_with_cast.imageLink)) + return false; + if (!(this.halfImageLink === tmp0_other_with_cast.halfImageLink)) + return false; + if (!equals(this.report, tmp0_other_with_cast.report)) + return false; + return true; + } + static new_com_bapis_bilibili_playershared_KBanner_ng59mb_k$(seen1, jumpLink, imageLink, halfImageLink, report, serializationConstructorMarker) { + Companion_instance_112; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_99().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.jumpLink = ''; + else + $this.jumpLink = jumpLink; + if (0 === (seen1 & 2)) + $this.imageLink = ''; + else + $this.imageLink = imageLink; + if (0 === (seen1 & 4)) + $this.halfImageLink = ''; + else + $this.halfImageLink = halfImageLink; + if (0 === (seen1 & 8)) + $this.report = null; + else + $this.report = report; + return $this; + } + } + class Companion_113 { + constructor() { + Companion_instance_113 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer($serializer_getInstance_101())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.playershared.EpInlineVideoInfo'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_100(); + } + } + class $serializer_100 { + constructor() { + $serializer_instance_100 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.playershared.KEpInlineVideoInfo', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('epInlineVideo', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_113().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp6_cached = Companion_getInstance_113().$childSerializers_1; + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KEpInlineVideoInfo_0.new_com_bapis_bilibili_playershared_KEpInlineVideoInfo_d3aa08_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_qob5ml_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_113().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.epInlineVideo, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.epInlineVideo); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_qob5ml_k$(encoder, value instanceof KEpInlineVideoInfo_0 ? value : THROW_CCE()); + } + } + class KEpInlineVideoInfo_0 { + constructor(epInlineVideo) { + Companion_getInstance_113(); + epInlineVideo = epInlineVideo === VOID ? emptyList() : epInlineVideo; + this.epInlineVideo = epInlineVideo; + } + get_epInlineVideo_w921se_k$() { + return this.epInlineVideo; + } + component1_7eebsc_k$() { + return this.epInlineVideo; + } + copy_64q3h7_k$(epInlineVideo) { + return new KEpInlineVideoInfo_0(epInlineVideo); + } + copy(epInlineVideo, $super) { + epInlineVideo = epInlineVideo === VOID ? this.epInlineVideo : epInlineVideo; + return this.copy_64q3h7_k$(epInlineVideo); + } + toString() { + return 'KEpInlineVideoInfo(epInlineVideo=' + this.epInlineVideo + ')'; + } + hashCode() { + return hashCode(this.epInlineVideo); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KEpInlineVideoInfo_0)) + return false; + var tmp0_other_with_cast = other instanceof KEpInlineVideoInfo_0 ? other : THROW_CCE(); + if (!equals(this.epInlineVideo, tmp0_other_with_cast.epInlineVideo)) + return false; + return true; + } + static new_com_bapis_bilibili_playershared_KEpInlineVideoInfo_d3aa08_k$(seen1, epInlineVideo, serializationConstructorMarker) { + Companion_getInstance_113(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_100().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.epInlineVideo = emptyList(); + else + $this.epInlineVideo = epInlineVideo; + return $this; + } + } + class Companion_114 { + constructor() { + this.targetPath = '/bilibili.playershared.EpInlineVideo'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_101(); + } + } + class $serializer_101 { + constructor() { + $serializer_instance_101 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.playershared.KEpInlineVideo', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('materialNo', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('aid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('cid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = new Long(0, 0); + var tmp6_local2 = new Long(0, 0); + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KEpInlineVideo.new_com_bapis_bilibili_playershared_KEpInlineVideo_zgpeu1_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_q4on69_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.materialNo.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.materialNo); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.aid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.aid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.cid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.cid); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_q4on69_k$(encoder, value instanceof KEpInlineVideo ? value : THROW_CCE()); + } + } + class KEpInlineVideo { + constructor(materialNo, aid, cid) { + Companion_instance_114; + materialNo = materialNo === VOID ? new Long(0, 0) : materialNo; + aid = aid === VOID ? new Long(0, 0) : aid; + cid = cid === VOID ? new Long(0, 0) : cid; + this.materialNo = materialNo; + this.aid = aid; + this.cid = cid; + } + get_materialNo_q4fm7j_k$() { + return this.materialNo; + } + get_aid_18j9kd_k$() { + return this.aid; + } + get_cid_18j82z_k$() { + return this.cid; + } + component1_7eebsc_k$() { + return this.materialNo; + } + component2_7eebsb_k$() { + return this.aid; + } + component3_7eebsa_k$() { + return this.cid; + } + copy_kj2gr5_k$(materialNo, aid, cid) { + return new KEpInlineVideo(materialNo, aid, cid); + } + copy(materialNo, aid, cid, $super) { + materialNo = materialNo === VOID ? this.materialNo : materialNo; + aid = aid === VOID ? this.aid : aid; + cid = cid === VOID ? this.cid : cid; + return this.copy_kj2gr5_k$(materialNo, aid, cid); + } + toString() { + return 'KEpInlineVideo(materialNo=' + this.materialNo.toString() + ', aid=' + this.aid.toString() + ', cid=' + this.cid.toString() + ')'; + } + hashCode() { + var result = this.materialNo.hashCode(); + result = imul(result, 31) + this.aid.hashCode() | 0; + result = imul(result, 31) + this.cid.hashCode() | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KEpInlineVideo)) + return false; + var tmp0_other_with_cast = other instanceof KEpInlineVideo ? other : THROW_CCE(); + if (!this.materialNo.equals(tmp0_other_with_cast.materialNo)) + return false; + if (!this.aid.equals(tmp0_other_with_cast.aid)) + return false; + if (!this.cid.equals(tmp0_other_with_cast.cid)) + return false; + return true; + } + static new_com_bapis_bilibili_playershared_KEpInlineVideo_zgpeu1_k$(seen1, materialNo, aid, cid, serializationConstructorMarker) { + Companion_instance_114; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_101().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.materialNo = new Long(0, 0); + else + $this.materialNo = materialNo; + if (0 === (seen1 & 2)) + $this.aid = new Long(0, 0); + else + $this.aid = aid; + if (0 === (seen1 & 4)) + $this.cid = new Long(0, 0); + else + $this.cid = cid; + return $this; + } + } + class Companion_115 { + constructor() { + Companion_instance_115 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer($serializer_getInstance_103())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.playershared.PlayListInfo'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_102(); + } + } + class $serializer_102 { + constructor() { + $serializer_instance_102 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.playershared.KPlayListInfo', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('playList', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_115().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp6_cached = Companion_getInstance_115().$childSerializers_1; + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KPlayListInfo_0.new_com_bapis_bilibili_playershared_KPlayListInfo_ro4zm_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_55wza6_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_115().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.playList, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.playList); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_55wza6_k$(encoder, value instanceof KPlayListInfo_0 ? value : THROW_CCE()); + } + } + class KPlayListInfo_0 { + constructor(playList) { + Companion_getInstance_115(); + playList = playList === VOID ? emptyList() : playList; + this.playList = playList; + } + get_playList_qiibp_k$() { + return this.playList; + } + component1_7eebsc_k$() { + return this.playList; + } + copy_v8s0r2_k$(playList) { + return new KPlayListInfo_0(playList); + } + copy(playList, $super) { + playList = playList === VOID ? this.playList : playList; + return this.copy_v8s0r2_k$(playList); + } + toString() { + return 'KPlayListInfo(playList=' + this.playList + ')'; + } + hashCode() { + return hashCode(this.playList); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KPlayListInfo_0)) + return false; + var tmp0_other_with_cast = other instanceof KPlayListInfo_0 ? other : THROW_CCE(); + if (!equals(this.playList, tmp0_other_with_cast.playList)) + return false; + return true; + } + static new_com_bapis_bilibili_playershared_KPlayListInfo_ro4zm_k$(seen1, playList, serializationConstructorMarker) { + Companion_getInstance_115(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_102().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.playList = emptyList(); + else + $this.playList = playList; + return $this; + } + } + class Companion_116 { + constructor() { + this.targetPath = '/bilibili.playershared.PlayList'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_103(); + } + } + class $serializer_103 { + constructor() { + $serializer_instance_103 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.playershared.KPlayList', this, 5); + tmp0_serialDesc.addElement_5pzumi_k$('seasonId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('link', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('badgeInfo', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_104())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp9_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_104(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + } else + while (tmp1_flag) { + tmp2_index = tmp9_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_104(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp9_input.endStructure_1xqz0n_k$(tmp0_desc); + return KPlayList.new_com_bapis_bilibili_playershared_KPlayList_fm9e5m_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); + } + serialize_7c2xjo_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.seasonId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.seasonId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.cover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.link === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.link); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.badgeInfo == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, $serializer_getInstance_104(), value.badgeInfo); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_7c2xjo_k$(encoder, value instanceof KPlayList ? value : THROW_CCE()); + } + } + class KPlayList { + constructor(seasonId, title, cover, link, badgeInfo) { + Companion_instance_116; + seasonId = seasonId === VOID ? new Long(0, 0) : seasonId; + title = title === VOID ? '' : title; + cover = cover === VOID ? '' : cover; + link = link === VOID ? '' : link; + badgeInfo = badgeInfo === VOID ? null : badgeInfo; + this.seasonId = seasonId; + this.title = title; + this.cover = cover; + this.link = link; + this.badgeInfo = badgeInfo; + } + get_seasonId_h33f15_k$() { + return this.seasonId; + } + get_title_iz32un_k$() { + return this.title; + } + get_cover_ipug0e_k$() { + return this.cover; + } + get_link_wopumb_k$() { + return this.link; + } + get_badgeInfo_rkwtrs_k$() { + return this.badgeInfo; + } + component1_7eebsc_k$() { + return this.seasonId; + } + component2_7eebsb_k$() { + return this.title; + } + component3_7eebsa_k$() { + return this.cover; + } + component4_7eebs9_k$() { + return this.link; + } + component5_7eebs8_k$() { + return this.badgeInfo; + } + copy_hemvfq_k$(seasonId, title, cover, link, badgeInfo) { + return new KPlayList(seasonId, title, cover, link, badgeInfo); + } + copy(seasonId, title, cover, link, badgeInfo, $super) { + seasonId = seasonId === VOID ? this.seasonId : seasonId; + title = title === VOID ? this.title : title; + cover = cover === VOID ? this.cover : cover; + link = link === VOID ? this.link : link; + badgeInfo = badgeInfo === VOID ? this.badgeInfo : badgeInfo; + return this.copy_hemvfq_k$(seasonId, title, cover, link, badgeInfo); + } + toString() { + return 'KPlayList(seasonId=' + this.seasonId.toString() + ', title=' + this.title + ', cover=' + this.cover + ', link=' + this.link + ', badgeInfo=' + this.badgeInfo + ')'; + } + hashCode() { + var result = this.seasonId.hashCode(); + result = imul(result, 31) + getStringHashCode(this.title) | 0; + result = imul(result, 31) + getStringHashCode(this.cover) | 0; + result = imul(result, 31) + getStringHashCode(this.link) | 0; + result = imul(result, 31) + (this.badgeInfo == null ? 0 : this.badgeInfo.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KPlayList)) + return false; + var tmp0_other_with_cast = other instanceof KPlayList ? other : THROW_CCE(); + if (!this.seasonId.equals(tmp0_other_with_cast.seasonId)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + if (!(this.link === tmp0_other_with_cast.link)) + return false; + if (!equals(this.badgeInfo, tmp0_other_with_cast.badgeInfo)) + return false; + return true; + } + static new_com_bapis_bilibili_playershared_KPlayList_fm9e5m_k$(seen1, seasonId, title, cover, link, badgeInfo, serializationConstructorMarker) { + Companion_instance_116; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_103().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.seasonId = new Long(0, 0); + else + $this.seasonId = seasonId; + if (0 === (seen1 & 2)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 4)) + $this.cover = ''; + else + $this.cover = cover; + if (0 === (seen1 & 8)) + $this.link = ''; + else + $this.link = link; + if (0 === (seen1 & 16)) + $this.badgeInfo = null; + else + $this.badgeInfo = badgeInfo; + return $this; + } + } + class Companion_117 { + constructor() { + this.targetPath = '/bilibili.playershared.BadgeInfo'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_104(); + } + } + class $serializer_104 { + constructor() { + $serializer_instance_104 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.playershared.KBadgeInfo', this, 6); + tmp0_serialDesc.addElement_5pzumi_k$('text', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('bgColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('bgColorNight', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('textColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('bgGradientColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('img', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_105()), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp10_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_105(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + } else + while (tmp1_flag) { + tmp2_index = tmp10_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_105(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp10_input.endStructure_1xqz0n_k$(tmp0_desc); + return KBadgeInfo.new_com_bapis_bilibili_playershared_KBadgeInfo_jwnfl3_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); + } + serialize_9q900n_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.text === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.text); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.bgColor === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.bgColor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.bgColorNight === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.bgColorNight); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.textColor === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.textColor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.bgGradientColor == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, $serializer_getInstance_105(), value.bgGradientColor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.img === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.img); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_9q900n_k$(encoder, value instanceof KBadgeInfo ? value : THROW_CCE()); + } + } + class KBadgeInfo { + constructor(text, bgColor, bgColorNight, textColor, bgGradientColor, img) { + Companion_instance_117; + text = text === VOID ? '' : text; + bgColor = bgColor === VOID ? '' : bgColor; + bgColorNight = bgColorNight === VOID ? '' : bgColorNight; + textColor = textColor === VOID ? '' : textColor; + bgGradientColor = bgGradientColor === VOID ? null : bgGradientColor; + img = img === VOID ? '' : img; + this.text = text; + this.bgColor = bgColor; + this.bgColorNight = bgColorNight; + this.textColor = textColor; + this.bgGradientColor = bgGradientColor; + this.img = img; + } + get_text_wouvsm_k$() { + return this.text; + } + get_bgColor_24ewuj_k$() { + return this.bgColor; + } + get_bgColorNight_mzrajh_k$() { + return this.bgColorNight; + } + get_textColor_92p84z_k$() { + return this.textColor; + } + get_bgGradientColor_utqfbv_k$() { + return this.bgGradientColor; + } + get_img_18j3ja_k$() { + return this.img; + } + component1_7eebsc_k$() { + return this.text; + } + component2_7eebsb_k$() { + return this.bgColor; + } + component3_7eebsa_k$() { + return this.bgColorNight; + } + component4_7eebs9_k$() { + return this.textColor; + } + component5_7eebs8_k$() { + return this.bgGradientColor; + } + component6_7eebs7_k$() { + return this.img; + } + copy_4ksvr4_k$(text, bgColor, bgColorNight, textColor, bgGradientColor, img) { + return new KBadgeInfo(text, bgColor, bgColorNight, textColor, bgGradientColor, img); + } + copy(text, bgColor, bgColorNight, textColor, bgGradientColor, img, $super) { + text = text === VOID ? this.text : text; + bgColor = bgColor === VOID ? this.bgColor : bgColor; + bgColorNight = bgColorNight === VOID ? this.bgColorNight : bgColorNight; + textColor = textColor === VOID ? this.textColor : textColor; + bgGradientColor = bgGradientColor === VOID ? this.bgGradientColor : bgGradientColor; + img = img === VOID ? this.img : img; + return this.copy_4ksvr4_k$(text, bgColor, bgColorNight, textColor, bgGradientColor, img); + } + toString() { + return 'KBadgeInfo(text=' + this.text + ', bgColor=' + this.bgColor + ', bgColorNight=' + this.bgColorNight + ', textColor=' + this.textColor + ', bgGradientColor=' + this.bgGradientColor + ', img=' + this.img + ')'; + } + hashCode() { + var result = getStringHashCode(this.text); + result = imul(result, 31) + getStringHashCode(this.bgColor) | 0; + result = imul(result, 31) + getStringHashCode(this.bgColorNight) | 0; + result = imul(result, 31) + getStringHashCode(this.textColor) | 0; + result = imul(result, 31) + (this.bgGradientColor == null ? 0 : this.bgGradientColor.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.img) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KBadgeInfo)) + return false; + var tmp0_other_with_cast = other instanceof KBadgeInfo ? other : THROW_CCE(); + if (!(this.text === tmp0_other_with_cast.text)) + return false; + if (!(this.bgColor === tmp0_other_with_cast.bgColor)) + return false; + if (!(this.bgColorNight === tmp0_other_with_cast.bgColorNight)) + return false; + if (!(this.textColor === tmp0_other_with_cast.textColor)) + return false; + if (!equals(this.bgGradientColor, tmp0_other_with_cast.bgGradientColor)) + return false; + if (!(this.img === tmp0_other_with_cast.img)) + return false; + return true; + } + static new_com_bapis_bilibili_playershared_KBadgeInfo_jwnfl3_k$(seen1, text, bgColor, bgColorNight, textColor, bgGradientColor, img, serializationConstructorMarker) { + Companion_instance_117; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_104().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.text = ''; + else + $this.text = text; + if (0 === (seen1 & 2)) + $this.bgColor = ''; + else + $this.bgColor = bgColor; + if (0 === (seen1 & 4)) + $this.bgColorNight = ''; + else + $this.bgColorNight = bgColorNight; + if (0 === (seen1 & 8)) + $this.textColor = ''; + else + $this.textColor = textColor; + if (0 === (seen1 & 16)) + $this.bgGradientColor = null; + else + $this.bgGradientColor = bgGradientColor; + if (0 === (seen1 & 32)) + $this.img = ''; + else + $this.img = img; + return $this; + } + } + class Companion_118 { + constructor() { + this.targetPath = '/bilibili.playershared.GradientColor'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_105(); + } + } + class $serializer_105 { + constructor() { + $serializer_instance_105 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.playershared.KGradientColor', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('startColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('endColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KGradientColor.new_com_bapis_bilibili_playershared_KGradientColor_95t72b_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_fiyph1_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.startColor === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.startColor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.endColor === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.endColor); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_fiyph1_k$(encoder, value instanceof KGradientColor ? value : THROW_CCE()); + } + } + class KGradientColor { + constructor(startColor, endColor) { + Companion_instance_118; + startColor = startColor === VOID ? '' : startColor; + endColor = endColor === VOID ? '' : endColor; + this.startColor = startColor; + this.endColor = endColor; + } + get_startColor_oernai_k$() { + return this.startColor; + } + get_endColor_3p2ju7_k$() { + return this.endColor; + } + component1_7eebsc_k$() { + return this.startColor; + } + component2_7eebsb_k$() { + return this.endColor; + } + copy_plwnsl_k$(startColor, endColor) { + return new KGradientColor(startColor, endColor); + } + copy(startColor, endColor, $super) { + startColor = startColor === VOID ? this.startColor : startColor; + endColor = endColor === VOID ? this.endColor : endColor; + return this.copy_plwnsl_k$(startColor, endColor); + } + toString() { + return 'KGradientColor(startColor=' + this.startColor + ', endColor=' + this.endColor + ')'; + } + hashCode() { + var result = getStringHashCode(this.startColor); + result = imul(result, 31) + getStringHashCode(this.endColor) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KGradientColor)) + return false; + var tmp0_other_with_cast = other instanceof KGradientColor ? other : THROW_CCE(); + if (!(this.startColor === tmp0_other_with_cast.startColor)) + return false; + if (!(this.endColor === tmp0_other_with_cast.endColor)) + return false; + return true; + } + static new_com_bapis_bilibili_playershared_KGradientColor_95t72b_k$(seen1, startColor, endColor, serializationConstructorMarker) { + Companion_instance_118; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_105().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.startColor = ''; + else + $this.startColor = startColor; + if (0 === (seen1 & 2)) + $this.endColor = ''; + else + $this.endColor = endColor; + return $this; + } + } + class Companion_119 { + constructor() { + this.targetPath = '/bilibili.playershared.BackgroundInfo'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_106(); + } + } + class $serializer_106 { + constructor() { + $serializer_instance_106 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.playershared.KBackgroundInfo', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('drawableColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('drawableBitmapUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('effects', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = 0; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KBackgroundInfo.new_com_bapis_bilibili_playershared_KBackgroundInfo_d87etm_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_dbnm02_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.drawableColor === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.drawableColor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.drawableBitmapUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.drawableBitmapUrl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.effects === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.effects); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_dbnm02_k$(encoder, value instanceof KBackgroundInfo ? value : THROW_CCE()); + } + } + class KBackgroundInfo { + constructor(drawableColor, drawableBitmapUrl, effects) { + Companion_instance_119; + drawableColor = drawableColor === VOID ? '' : drawableColor; + drawableBitmapUrl = drawableBitmapUrl === VOID ? '' : drawableBitmapUrl; + effects = effects === VOID ? 0 : effects; + this.drawableColor = drawableColor; + this.drawableBitmapUrl = drawableBitmapUrl; + this.effects = effects; + } + get_drawableColor_zgilz8_k$() { + return this.drawableColor; + } + get_drawableBitmapUrl_omgezr_k$() { + return this.drawableBitmapUrl; + } + get_effects_t2bi7b_k$() { + return this.effects; + } + effectsEnum() { + return Companion_getInstance_98().fromValue(this.effects); + } + component1_7eebsc_k$() { + return this.drawableColor; + } + component2_7eebsb_k$() { + return this.drawableBitmapUrl; + } + component3_7eebsa_k$() { + return this.effects; + } + copy_spspqb_k$(drawableColor, drawableBitmapUrl, effects) { + return new KBackgroundInfo(drawableColor, drawableBitmapUrl, effects); + } + copy(drawableColor, drawableBitmapUrl, effects, $super) { + drawableColor = drawableColor === VOID ? this.drawableColor : drawableColor; + drawableBitmapUrl = drawableBitmapUrl === VOID ? this.drawableBitmapUrl : drawableBitmapUrl; + effects = effects === VOID ? this.effects : effects; + return this.copy_spspqb_k$(drawableColor, drawableBitmapUrl, effects); + } + toString() { + return 'KBackgroundInfo(drawableColor=' + this.drawableColor + ', drawableBitmapUrl=' + this.drawableBitmapUrl + ', effects=' + this.effects + ')'; + } + hashCode() { + var result = getStringHashCode(this.drawableColor); + result = imul(result, 31) + getStringHashCode(this.drawableBitmapUrl) | 0; + result = imul(result, 31) + this.effects | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KBackgroundInfo)) + return false; + var tmp0_other_with_cast = other instanceof KBackgroundInfo ? other : THROW_CCE(); + if (!(this.drawableColor === tmp0_other_with_cast.drawableColor)) + return false; + if (!(this.drawableBitmapUrl === tmp0_other_with_cast.drawableBitmapUrl)) + return false; + if (!(this.effects === tmp0_other_with_cast.effects)) + return false; + return true; + } + static new_com_bapis_bilibili_playershared_KBackgroundInfo_d87etm_k$(seen1, drawableColor, drawableBitmapUrl, effects, serializationConstructorMarker) { + Companion_instance_119; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_106().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.drawableColor = ''; + else + $this.drawableColor = drawableColor; + if (0 === (seen1 & 2)) + $this.drawableBitmapUrl = ''; + else + $this.drawableBitmapUrl = drawableBitmapUrl; + if (0 === (seen1 & 4)) + $this.effects = 0; + else + $this.effects = effects; + return $this; + } + } + class Companion_120 { + constructor() { + this.targetPath = '/bilibili.playershared.ButtonInfo.OrderReportParamsEntry'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_107(); + } + } + class $serializer_107 { + constructor() { + $serializer_instance_107 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.playershared.KButtonInfo.KOrderReportParamsEntry', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('key', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('value', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KOrderReportParamsEntry_0.new_com_bapis_bilibili_playershared_KButtonInfo_KOrderReportParamsEntry_l7kzio_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_y8c22x_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.key === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.key); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.value === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.value); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_y8c22x_k$(encoder, value instanceof KOrderReportParamsEntry_0 ? value : THROW_CCE()); + } + } + class KOrderReportParamsEntry_0 { + constructor(key, value) { + Companion_instance_120; + key = key === VOID ? '' : key; + value = value === VOID ? '' : value; + this.key = key; + this.value = value; + } + get_key_18j28a_k$() { + return this.key; + } + get_value_j01efc_k$() { + return this.value; + } + component1_7eebsc_k$() { + return this.key; + } + component2_7eebsb_k$() { + return this.value; + } + copy_plwnsl_k$(key, value) { + return new KOrderReportParamsEntry_0(key, value); + } + copy(key, value, $super) { + key = key === VOID ? this.key : key; + value = value === VOID ? this.value : value; + return this.copy_plwnsl_k$(key, value); + } + toString() { + return 'KOrderReportParamsEntry(key=' + this.key + ', value=' + this.value + ')'; + } + hashCode() { + var result = getStringHashCode(this.key); + result = imul(result, 31) + getStringHashCode(this.value) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KOrderReportParamsEntry_0)) + return false; + var tmp0_other_with_cast = other instanceof KOrderReportParamsEntry_0 ? other : THROW_CCE(); + if (!(this.key === tmp0_other_with_cast.key)) + return false; + if (!(this.value === tmp0_other_with_cast.value)) + return false; + return true; + } + static new_com_bapis_bilibili_playershared_KButtonInfo_KOrderReportParamsEntry_l7kzio_k$(seen1, key, value, serializationConstructorMarker) { + Companion_instance_120; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_107().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.key = ''; + else + $this.key = key; + if (0 === (seen1 & 2)) + $this.value = ''; + else + $this.value = value; + return $this; + } + } + class Companion_121 { + constructor() { + Companion_instance_121 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, null, null, null, null, null, null, null, null, null, null, null, new LinkedHashMapSerializer(StringSerializer_getInstance(), StringSerializer_getInstance()), null, null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.playershared.ButtonInfo'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_108(); + } + } + class $serializer_108 { + constructor() { + $serializer_instance_108 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.playershared.KButtonInfo', this, 18); + tmp0_serialDesc.addElement_5pzumi_k$('text', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('textColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('textColorNight', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('bgColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('bgColorNight', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('link', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('actionType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('badgeInfo', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('report', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('leftStrikethroughText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('simpleTextInfo', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('simpleBgColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + tmp0_serialDesc.addElement_5pzumi_k$('simpleBgColorNight', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(13)); + tmp0_serialDesc.addElement_5pzumi_k$('bgGradientColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(14)); + tmp0_serialDesc.addElement_5pzumi_k$('orderReportParams', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(15)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('taskParam', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(16)); + tmp0_serialDesc.addElement_5pzumi_k$('frameColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(17)); + tmp0_serialDesc.addElement_5pzumi_k$('icon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(18)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_121().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), get_nullable($serializer_getInstance_104()), get_nullable($serializer_getInstance_95()), StringSerializer_getInstance(), get_nullable($serializer_getInstance_96()), StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_105()), tmp0_cached[14], get_nullable($serializer_getInstance_109()), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = 0; + var tmp11_local7 = null; + var tmp12_local8 = null; + var tmp13_local9 = null; + var tmp14_local10 = null; + var tmp15_local11 = null; + var tmp16_local12 = null; + var tmp17_local13 = null; + var tmp18_local14 = null; + var tmp19_local15 = null; + var tmp20_local16 = null; + var tmp21_local17 = null; + var tmp22_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp23_cached = Companion_getInstance_121().$childSerializers_1; + if (tmp22_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp22_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp22_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp22_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp22_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp22_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp22_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp22_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp22_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_104(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp22_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_95(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp22_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp22_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 10, $serializer_getInstance_96(), tmp14_local10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp22_input.decodeStringElement_3oenpg_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + tmp16_local12 = tmp22_input.decodeStringElement_3oenpg_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + tmp17_local13 = tmp22_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 13, $serializer_getInstance_105(), tmp17_local13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + tmp18_local14 = tmp22_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 14, tmp23_cached[14], tmp18_local14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + tmp19_local15 = tmp22_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 15, $serializer_getInstance_109(), tmp19_local15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + tmp20_local16 = tmp22_input.decodeStringElement_3oenpg_k$(tmp0_desc, 16); + tmp3_bitMask0 = tmp3_bitMask0 | 65536; + tmp21_local17 = tmp22_input.decodeStringElement_3oenpg_k$(tmp0_desc, 17); + tmp3_bitMask0 = tmp3_bitMask0 | 131072; + } else + while (tmp1_flag) { + tmp2_index = tmp22_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp22_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp22_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp22_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp22_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp22_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp22_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp22_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp22_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_104(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp22_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_95(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp22_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp22_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 10, $serializer_getInstance_96(), tmp14_local10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp22_input.decodeStringElement_3oenpg_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + case 12: + tmp16_local12 = tmp22_input.decodeStringElement_3oenpg_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + break; + case 13: + tmp17_local13 = tmp22_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 13, $serializer_getInstance_105(), tmp17_local13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + break; + case 14: + tmp18_local14 = tmp22_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 14, tmp23_cached[14], tmp18_local14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + break; + case 15: + tmp19_local15 = tmp22_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 15, $serializer_getInstance_109(), tmp19_local15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + break; + case 16: + tmp20_local16 = tmp22_input.decodeStringElement_3oenpg_k$(tmp0_desc, 16); + tmp3_bitMask0 = tmp3_bitMask0 | 65536; + break; + case 17: + tmp21_local17 = tmp22_input.decodeStringElement_3oenpg_k$(tmp0_desc, 17); + tmp3_bitMask0 = tmp3_bitMask0 | 131072; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp22_input.endStructure_1xqz0n_k$(tmp0_desc); + return KButtonInfo.new_com_bapis_bilibili_playershared_KButtonInfo_2g6uj7_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, tmp18_local14, tmp19_local15, tmp20_local16, tmp21_local17, null); + } + serialize_bfqhnm_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_121().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.text === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.text); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.textColor === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.textColor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.textColorNight === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.textColorNight); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.bgColor === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.bgColor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.bgColorNight === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.bgColorNight); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.link === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.link); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.actionType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 6, value.actionType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.badgeInfo == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 7, $serializer_getInstance_104(), value.badgeInfo); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.report == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 8, $serializer_getInstance_95(), value.report); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.leftStrikethroughText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 9, value.leftStrikethroughText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.simpleTextInfo == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 10, $serializer_getInstance_96(), value.simpleTextInfo); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.simpleBgColor === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 11, value.simpleBgColor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !(value.simpleBgColorNight === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 12, value.simpleBgColorNight); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 13) ? true : !(value.bgGradientColor == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 13, $serializer_getInstance_105(), value.bgGradientColor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 14) ? true : !equals(value.orderReportParams, emptyMap())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 14, tmp2_cached[14], value.orderReportParams); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 15) ? true : !(value.taskParam == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 15, $serializer_getInstance_109(), value.taskParam); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 16) ? true : !(value.frameColor === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 16, value.frameColor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 17) ? true : !(value.icon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 17, value.icon); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_bfqhnm_k$(encoder, value instanceof KButtonInfo ? value : THROW_CCE()); + } + } + class KButtonInfo { + constructor(text, textColor, textColorNight, bgColor, bgColorNight, link, actionType, badgeInfo, report, leftStrikethroughText, simpleTextInfo, simpleBgColor, simpleBgColorNight, bgGradientColor, orderReportParams, taskParam, frameColor, icon) { + Companion_getInstance_121(); + text = text === VOID ? '' : text; + textColor = textColor === VOID ? '' : textColor; + textColorNight = textColorNight === VOID ? '' : textColorNight; + bgColor = bgColor === VOID ? '' : bgColor; + bgColorNight = bgColorNight === VOID ? '' : bgColorNight; + link = link === VOID ? '' : link; + actionType = actionType === VOID ? 0 : actionType; + badgeInfo = badgeInfo === VOID ? null : badgeInfo; + report = report === VOID ? null : report; + leftStrikethroughText = leftStrikethroughText === VOID ? '' : leftStrikethroughText; + simpleTextInfo = simpleTextInfo === VOID ? null : simpleTextInfo; + simpleBgColor = simpleBgColor === VOID ? '' : simpleBgColor; + simpleBgColorNight = simpleBgColorNight === VOID ? '' : simpleBgColorNight; + bgGradientColor = bgGradientColor === VOID ? null : bgGradientColor; + orderReportParams = orderReportParams === VOID ? emptyMap() : orderReportParams; + taskParam = taskParam === VOID ? null : taskParam; + frameColor = frameColor === VOID ? '' : frameColor; + icon = icon === VOID ? '' : icon; + this.text = text; + this.textColor = textColor; + this.textColorNight = textColorNight; + this.bgColor = bgColor; + this.bgColorNight = bgColorNight; + this.link = link; + this.actionType = actionType; + this.badgeInfo = badgeInfo; + this.report = report; + this.leftStrikethroughText = leftStrikethroughText; + this.simpleTextInfo = simpleTextInfo; + this.simpleBgColor = simpleBgColor; + this.simpleBgColorNight = simpleBgColorNight; + this.bgGradientColor = bgGradientColor; + this.orderReportParams = orderReportParams; + this.taskParam = taskParam; + this.frameColor = frameColor; + this.icon = icon; + } + get_text_wouvsm_k$() { + return this.text; + } + get_textColor_92p84z_k$() { + return this.textColor; + } + get_textColorNight_hqolf9_k$() { + return this.textColorNight; + } + get_bgColor_24ewuj_k$() { + return this.bgColor; + } + get_bgColorNight_mzrajh_k$() { + return this.bgColorNight; + } + get_link_wopumb_k$() { + return this.link; + } + get_actionType_agb5zt_k$() { + return this.actionType; + } + get_badgeInfo_rkwtrs_k$() { + return this.badgeInfo; + } + get_report_iye43h_k$() { + return this.report; + } + get_leftStrikethroughText_jbr6ls_k$() { + return this.leftStrikethroughText; + } + get_simpleTextInfo_ylnu0a_k$() { + return this.simpleTextInfo; + } + get_simpleBgColor_uefylf_k$() { + return this.simpleBgColor; + } + get_simpleBgColorNight_b1uinp_k$() { + return this.simpleBgColorNight; + } + get_bgGradientColor_utqfbv_k$() { + return this.bgGradientColor; + } + get_orderReportParams_spw7dt_k$() { + return this.orderReportParams; + } + get_taskParam_b9nivz_k$() { + return this.taskParam; + } + get_frameColor_p2sjup_k$() { + return this.frameColor; + } + get_icon_wont8i_k$() { + return this.icon; + } + actionTypeEnum() { + return Companion_getInstance_99().fromValue(this.actionType); + } + component1_7eebsc_k$() { + return this.text; + } + component2_7eebsb_k$() { + return this.textColor; + } + component3_7eebsa_k$() { + return this.textColorNight; + } + component4_7eebs9_k$() { + return this.bgColor; + } + component5_7eebs8_k$() { + return this.bgColorNight; + } + component6_7eebs7_k$() { + return this.link; + } + component7_7eebs6_k$() { + return this.actionType; + } + component8_7eebs5_k$() { + return this.badgeInfo; + } + component9_7eebs4_k$() { + return this.report; + } + component10_gazzfo_k$() { + return this.leftStrikethroughText; + } + component11_gazzfn_k$() { + return this.simpleTextInfo; + } + component12_gazzfm_k$() { + return this.simpleBgColor; + } + component13_gazzfl_k$() { + return this.simpleBgColorNight; + } + component14_gazzfk_k$() { + return this.bgGradientColor; + } + component15_gazzfj_k$() { + return this.orderReportParams; + } + component16_gazzfi_k$() { + return this.taskParam; + } + component17_gazzfh_k$() { + return this.frameColor; + } + component18_gazzfg_k$() { + return this.icon; + } + copy_r63pe8_k$(text, textColor, textColorNight, bgColor, bgColorNight, link, actionType, badgeInfo, report, leftStrikethroughText, simpleTextInfo, simpleBgColor, simpleBgColorNight, bgGradientColor, orderReportParams, taskParam, frameColor, icon) { + return new KButtonInfo(text, textColor, textColorNight, bgColor, bgColorNight, link, actionType, badgeInfo, report, leftStrikethroughText, simpleTextInfo, simpleBgColor, simpleBgColorNight, bgGradientColor, orderReportParams, taskParam, frameColor, icon); + } + copy(text, textColor, textColorNight, bgColor, bgColorNight, link, actionType, badgeInfo, report, leftStrikethroughText, simpleTextInfo, simpleBgColor, simpleBgColorNight, bgGradientColor, orderReportParams, taskParam, frameColor, icon, $super) { + text = text === VOID ? this.text : text; + textColor = textColor === VOID ? this.textColor : textColor; + textColorNight = textColorNight === VOID ? this.textColorNight : textColorNight; + bgColor = bgColor === VOID ? this.bgColor : bgColor; + bgColorNight = bgColorNight === VOID ? this.bgColorNight : bgColorNight; + link = link === VOID ? this.link : link; + actionType = actionType === VOID ? this.actionType : actionType; + badgeInfo = badgeInfo === VOID ? this.badgeInfo : badgeInfo; + report = report === VOID ? this.report : report; + leftStrikethroughText = leftStrikethroughText === VOID ? this.leftStrikethroughText : leftStrikethroughText; + simpleTextInfo = simpleTextInfo === VOID ? this.simpleTextInfo : simpleTextInfo; + simpleBgColor = simpleBgColor === VOID ? this.simpleBgColor : simpleBgColor; + simpleBgColorNight = simpleBgColorNight === VOID ? this.simpleBgColorNight : simpleBgColorNight; + bgGradientColor = bgGradientColor === VOID ? this.bgGradientColor : bgGradientColor; + orderReportParams = orderReportParams === VOID ? this.orderReportParams : orderReportParams; + taskParam = taskParam === VOID ? this.taskParam : taskParam; + frameColor = frameColor === VOID ? this.frameColor : frameColor; + icon = icon === VOID ? this.icon : icon; + return this.copy_r63pe8_k$(text, textColor, textColorNight, bgColor, bgColorNight, link, actionType, badgeInfo, report, leftStrikethroughText, simpleTextInfo, simpleBgColor, simpleBgColorNight, bgGradientColor, orderReportParams, taskParam, frameColor, icon); + } + toString() { + return 'KButtonInfo(text=' + this.text + ', textColor=' + this.textColor + ', textColorNight=' + this.textColorNight + ', bgColor=' + this.bgColor + ', bgColorNight=' + this.bgColorNight + ', link=' + this.link + ', actionType=' + this.actionType + ', badgeInfo=' + this.badgeInfo + ', report=' + this.report + ', leftStrikethroughText=' + this.leftStrikethroughText + ', simpleTextInfo=' + this.simpleTextInfo + ', simpleBgColor=' + this.simpleBgColor + ', simpleBgColorNight=' + this.simpleBgColorNight + ', bgGradientColor=' + this.bgGradientColor + ', orderReportParams=' + this.orderReportParams + ', taskParam=' + this.taskParam + ', frameColor=' + this.frameColor + ', icon=' + this.icon + ')'; + } + hashCode() { + var result = getStringHashCode(this.text); + result = imul(result, 31) + getStringHashCode(this.textColor) | 0; + result = imul(result, 31) + getStringHashCode(this.textColorNight) | 0; + result = imul(result, 31) + getStringHashCode(this.bgColor) | 0; + result = imul(result, 31) + getStringHashCode(this.bgColorNight) | 0; + result = imul(result, 31) + getStringHashCode(this.link) | 0; + result = imul(result, 31) + this.actionType | 0; + result = imul(result, 31) + (this.badgeInfo == null ? 0 : this.badgeInfo.hashCode()) | 0; + result = imul(result, 31) + (this.report == null ? 0 : this.report.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.leftStrikethroughText) | 0; + result = imul(result, 31) + (this.simpleTextInfo == null ? 0 : this.simpleTextInfo.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.simpleBgColor) | 0; + result = imul(result, 31) + getStringHashCode(this.simpleBgColorNight) | 0; + result = imul(result, 31) + (this.bgGradientColor == null ? 0 : this.bgGradientColor.hashCode()) | 0; + result = imul(result, 31) + hashCode(this.orderReportParams) | 0; + result = imul(result, 31) + (this.taskParam == null ? 0 : this.taskParam.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.frameColor) | 0; + result = imul(result, 31) + getStringHashCode(this.icon) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KButtonInfo)) + return false; + var tmp0_other_with_cast = other instanceof KButtonInfo ? other : THROW_CCE(); + if (!(this.text === tmp0_other_with_cast.text)) + return false; + if (!(this.textColor === tmp0_other_with_cast.textColor)) + return false; + if (!(this.textColorNight === tmp0_other_with_cast.textColorNight)) + return false; + if (!(this.bgColor === tmp0_other_with_cast.bgColor)) + return false; + if (!(this.bgColorNight === tmp0_other_with_cast.bgColorNight)) + return false; + if (!(this.link === tmp0_other_with_cast.link)) + return false; + if (!(this.actionType === tmp0_other_with_cast.actionType)) + return false; + if (!equals(this.badgeInfo, tmp0_other_with_cast.badgeInfo)) + return false; + if (!equals(this.report, tmp0_other_with_cast.report)) + return false; + if (!(this.leftStrikethroughText === tmp0_other_with_cast.leftStrikethroughText)) + return false; + if (!equals(this.simpleTextInfo, tmp0_other_with_cast.simpleTextInfo)) + return false; + if (!(this.simpleBgColor === tmp0_other_with_cast.simpleBgColor)) + return false; + if (!(this.simpleBgColorNight === tmp0_other_with_cast.simpleBgColorNight)) + return false; + if (!equals(this.bgGradientColor, tmp0_other_with_cast.bgGradientColor)) + return false; + if (!equals(this.orderReportParams, tmp0_other_with_cast.orderReportParams)) + return false; + if (!equals(this.taskParam, tmp0_other_with_cast.taskParam)) + return false; + if (!(this.frameColor === tmp0_other_with_cast.frameColor)) + return false; + if (!(this.icon === tmp0_other_with_cast.icon)) + return false; + return true; + } + static new_com_bapis_bilibili_playershared_KButtonInfo_2g6uj7_k$(seen1, text, textColor, textColorNight, bgColor, bgColorNight, link, actionType, badgeInfo, report, leftStrikethroughText, simpleTextInfo, simpleBgColor, simpleBgColorNight, bgGradientColor, orderReportParams, taskParam, frameColor, icon, serializationConstructorMarker) { + Companion_getInstance_121(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_108().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.text = ''; + else + $this.text = text; + if (0 === (seen1 & 2)) + $this.textColor = ''; + else + $this.textColor = textColor; + if (0 === (seen1 & 4)) + $this.textColorNight = ''; + else + $this.textColorNight = textColorNight; + if (0 === (seen1 & 8)) + $this.bgColor = ''; + else + $this.bgColor = bgColor; + if (0 === (seen1 & 16)) + $this.bgColorNight = ''; + else + $this.bgColorNight = bgColorNight; + if (0 === (seen1 & 32)) + $this.link = ''; + else + $this.link = link; + if (0 === (seen1 & 64)) + $this.actionType = 0; + else + $this.actionType = actionType; + if (0 === (seen1 & 128)) + $this.badgeInfo = null; + else + $this.badgeInfo = badgeInfo; + if (0 === (seen1 & 256)) + $this.report = null; + else + $this.report = report; + if (0 === (seen1 & 512)) + $this.leftStrikethroughText = ''; + else + $this.leftStrikethroughText = leftStrikethroughText; + if (0 === (seen1 & 1024)) + $this.simpleTextInfo = null; + else + $this.simpleTextInfo = simpleTextInfo; + if (0 === (seen1 & 2048)) + $this.simpleBgColor = ''; + else + $this.simpleBgColor = simpleBgColor; + if (0 === (seen1 & 4096)) + $this.simpleBgColorNight = ''; + else + $this.simpleBgColorNight = simpleBgColorNight; + if (0 === (seen1 & 8192)) + $this.bgGradientColor = null; + else + $this.bgGradientColor = bgGradientColor; + if (0 === (seen1 & 16384)) + $this.orderReportParams = emptyMap(); + else + $this.orderReportParams = orderReportParams; + if (0 === (seen1 & 32768)) + $this.taskParam = null; + else + $this.taskParam = taskParam; + if (0 === (seen1 & 65536)) + $this.frameColor = ''; + else + $this.frameColor = frameColor; + if (0 === (seen1 & 131072)) + $this.icon = ''; + else + $this.icon = icon; + return $this; + } + } + class Companion_122 { + constructor() { + this.targetPath = '/bilibili.playershared.TaskParam'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_109(); + } + } + class $serializer_109 { + constructor() { + $serializer_instance_109 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.playershared.KTaskParam', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('taskType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('activityId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('tipsId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = new Long(0, 0); + var tmp6_local2 = new Long(0, 0); + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KTaskParam.new_com_bapis_bilibili_playershared_KTaskParam_dm9629_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_26sk68_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.taskType === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.taskType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.activityId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.activityId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.tipsId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.tipsId); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_26sk68_k$(encoder, value instanceof KTaskParam ? value : THROW_CCE()); + } + } + class KTaskParam { + constructor(taskType, activityId, tipsId) { + Companion_instance_122; + taskType = taskType === VOID ? '' : taskType; + activityId = activityId === VOID ? new Long(0, 0) : activityId; + tipsId = tipsId === VOID ? new Long(0, 0) : tipsId; + this.taskType = taskType; + this.activityId = activityId; + this.tipsId = tipsId; + } + get_taskType_wfztwo_k$() { + return this.taskType; + } + get_activityId_dpfyfn_k$() { + return this.activityId; + } + get_tipsId_jyol8c_k$() { + return this.tipsId; + } + component1_7eebsc_k$() { + return this.taskType; + } + component2_7eebsb_k$() { + return this.activityId; + } + component3_7eebsa_k$() { + return this.tipsId; + } + copy_d8do81_k$(taskType, activityId, tipsId) { + return new KTaskParam(taskType, activityId, tipsId); + } + copy(taskType, activityId, tipsId, $super) { + taskType = taskType === VOID ? this.taskType : taskType; + activityId = activityId === VOID ? this.activityId : activityId; + tipsId = tipsId === VOID ? this.tipsId : tipsId; + return this.copy_d8do81_k$(taskType, activityId, tipsId); + } + toString() { + return 'KTaskParam(taskType=' + this.taskType + ', activityId=' + this.activityId.toString() + ', tipsId=' + this.tipsId.toString() + ')'; + } + hashCode() { + var result = getStringHashCode(this.taskType); + result = imul(result, 31) + this.activityId.hashCode() | 0; + result = imul(result, 31) + this.tipsId.hashCode() | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KTaskParam)) + return false; + var tmp0_other_with_cast = other instanceof KTaskParam ? other : THROW_CCE(); + if (!(this.taskType === tmp0_other_with_cast.taskType)) + return false; + if (!this.activityId.equals(tmp0_other_with_cast.activityId)) + return false; + if (!this.tipsId.equals(tmp0_other_with_cast.tipsId)) + return false; + return true; + } + static new_com_bapis_bilibili_playershared_KTaskParam_dm9629_k$(seen1, taskType, activityId, tipsId, serializationConstructorMarker) { + Companion_instance_122; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_109().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.taskType = ''; + else + $this.taskType = taskType; + if (0 === (seen1 & 2)) + $this.activityId = new Long(0, 0); + else + $this.activityId = activityId; + if (0 === (seen1 & 4)) + $this.tipsId = new Long(0, 0); + else + $this.tipsId = tipsId; + return $this; + } + } + class Companion_123 { + constructor() { + Companion_instance_123 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KCodeType$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KCodeType$Companion$_anonymous__o4y9s3); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_21(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.playershared.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KCodeType_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.playershared.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KCodeType with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_21(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_110 { + constructor() { + $serializer_instance_110 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.playershared.KCodeType', 5); + tmp0_serialDesc.addElement_5pzumi_k$('NOCODE', false); + tmp0_serialDesc.addElement_5pzumi_k$('CODE264', false); + tmp0_serialDesc.addElement_5pzumi_k$('CODE265', false); + tmp0_serialDesc.addElement_5pzumi_k$('CODEAV1', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_21()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_7qq4pq_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_7qq4pq_k$(encoder, value instanceof KCodeType ? value : THROW_CCE()); + } + } + class KCodeType extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_124 { + constructor() { + Companion_instance_124 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KPlayErr$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KPlayErr$Companion$_anonymous__132ufr); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_22(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.playershared.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KPlayErr_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.playershared.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KPlayErr with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_22(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_111 { + constructor() { + $serializer_instance_111 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.playershared.KPlayErr', 3); + tmp0_serialDesc.addElement_5pzumi_k$('NO_ERR', false); + tmp0_serialDesc.addElement_5pzumi_k$('WITH_MULTI_DEVICE_LOGIN_ERR', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_22()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_xq6wyq_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_xq6wyq_k$(encoder, value instanceof KPlayErr ? value : THROW_CCE()); + } + } + class KPlayErr extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_125 { + constructor() { + Companion_instance_125 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KFragmentType$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KFragmentType$Companion$_anonymous__qo2cdi); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_23(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.playershared.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KFragmentType_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.playershared.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KFragmentType with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_23(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_112 { + constructor() { + $serializer_instance_112 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.playershared.KFragmentType', 4); + tmp0_serialDesc.addElement_5pzumi_k$('UNKNOWN', false); + tmp0_serialDesc.addElement_5pzumi_k$('AD_FRAGMENT', false); + tmp0_serialDesc.addElement_5pzumi_k$('OGV_FRAGMENT', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_23()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_k4jj4r_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_k4jj4r_k$(encoder, value instanceof KFragmentType ? value : THROW_CCE()); + } + } + class KFragmentType extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_126 { + constructor() { + Companion_instance_126 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KFragmentPosition$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KFragmentPosition$Companion$_anonymous__dr9rh1); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_24(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.playershared.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KFragmentPosition_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.playershared.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KFragmentPosition with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_24(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_113 { + constructor() { + $serializer_instance_113 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.playershared.KFragmentPosition', 5); + tmp0_serialDesc.addElement_5pzumi_k$('INVALID', false); + tmp0_serialDesc.addElement_5pzumi_k$('PRE', false); + tmp0_serialDesc.addElement_5pzumi_k$('MIDDLE', false); + tmp0_serialDesc.addElement_5pzumi_k$('POST', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_24()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_qcufkc_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_qcufkc_k$(encoder, value instanceof KFragmentPosition ? value : THROW_CCE()); + } + } + class KFragmentPosition extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_127 { + constructor() { + Companion_instance_127 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KArcType$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KArcType$Companion$_anonymous__x4bfym); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_25(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.playershared.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KArcType_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.playershared.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KArcType with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_25(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_114 { + constructor() { + $serializer_instance_114 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.playershared.KArcType', 3); + tmp0_serialDesc.addElement_5pzumi_k$('NORMAL', false); + tmp0_serialDesc.addElement_5pzumi_k$('INTERACT', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_25()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_b3cfkt_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_b3cfkt_k$(encoder, value instanceof KArcType ? value : THROW_CCE()); + } + } + class KArcType extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_128 { + constructor() { + Companion_instance_128 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KDrmTechType$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KDrmTechType$Companion$_anonymous__ig3vzp); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_26(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.playershared.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KDrmTechType_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.playershared.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KDrmTechType with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_26(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_115 { + constructor() { + $serializer_instance_115 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.playershared.KDrmTechType', 5); + tmp0_serialDesc.addElement_5pzumi_k$('UNKNOWN_DRM', false); + tmp0_serialDesc.addElement_5pzumi_k$('FAIR_PLAY', false); + tmp0_serialDesc.addElement_5pzumi_k$('WIDE_VINE', false); + tmp0_serialDesc.addElement_5pzumi_k$('BILI_DRM', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_26()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_r6dvls_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_r6dvls_k$(encoder, value instanceof KDrmTechType ? value : THROW_CCE()); + } + } + class KDrmTechType extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_129 { + constructor() { + Companion_instance_129 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KBizType$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KBizType$Companion$_anonymous__qvpjhv); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_27(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.playershared.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KBizType_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.playershared.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KBizType with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_27(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_116 { + constructor() { + $serializer_instance_116 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.playershared.KBizType', 5); + tmp0_serialDesc.addElement_5pzumi_k$('UNKNOWN', false); + tmp0_serialDesc.addElement_5pzumi_k$('UGC', false); + tmp0_serialDesc.addElement_5pzumi_k$('PGC', false); + tmp0_serialDesc.addElement_5pzumi_k$('PUGV', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_27()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_1mpdmm_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_1mpdmm_k$(encoder, value instanceof KBizType ? value : THROW_CCE()); + } + } + class KBizType extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_130 { + constructor() { + this.targetPath = '/bilibili.playershared.VideoVod'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_117(); + } + } + class $serializer_117 { + constructor() { + $serializer_instance_117 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.playershared.KVideoVod', this, 10); + tmp0_serialDesc.addElement_5pzumi_k$('aid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('cid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('qn', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('fnver', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('fnval', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('download', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('forceHost', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('fourk', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('preferCodecType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('voiceBalance', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), BooleanSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = new Long(0, 0); + var tmp6_local2 = new Long(0, 0); + var tmp7_local3 = 0; + var tmp8_local4 = 0; + var tmp9_local5 = 0; + var tmp10_local6 = 0; + var tmp11_local7 = false; + var tmp12_local8 = 0; + var tmp13_local9 = new Long(0, 0); + var tmp14_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp14_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp14_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + } else + while (tmp1_flag) { + tmp2_index = tmp14_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp14_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp14_input.endStructure_1xqz0n_k$(tmp0_desc); + return KVideoVod.new_com_bapis_bilibili_playershared_KVideoVod_9gv429_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, null); + } + serialize_wtejxu_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.aid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.aid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.cid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.cid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.qn.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.qn); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.fnver === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 3, value.fnver); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.fnval === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 4, value.fnval); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.download === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 5, value.download); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.forceHost === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 6, value.forceHost); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.fourk === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 7, value.fourk); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.preferCodecType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 8, value.preferCodecType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !value.voiceBalance.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 9, value.voiceBalance); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_wtejxu_k$(encoder, value instanceof KVideoVod ? value : THROW_CCE()); + } + } + class KVideoVod { + constructor(aid, cid, qn, fnver, fnval, download, forceHost, fourk, preferCodecType, voiceBalance) { + Companion_instance_130; + aid = aid === VOID ? new Long(0, 0) : aid; + cid = cid === VOID ? new Long(0, 0) : cid; + qn = qn === VOID ? new Long(0, 0) : qn; + fnver = fnver === VOID ? 0 : fnver; + fnval = fnval === VOID ? 0 : fnval; + download = download === VOID ? 0 : download; + forceHost = forceHost === VOID ? 0 : forceHost; + fourk = fourk === VOID ? false : fourk; + preferCodecType = preferCodecType === VOID ? 0 : preferCodecType; + voiceBalance = voiceBalance === VOID ? new Long(0, 0) : voiceBalance; + this.aid = aid; + this.cid = cid; + this.qn = qn; + this.fnver = fnver; + this.fnval = fnval; + this.download = download; + this.forceHost = forceHost; + this.fourk = fourk; + this.preferCodecType = preferCodecType; + this.voiceBalance = voiceBalance; + } + get_aid_18j9kd_k$() { + return this.aid; + } + get_cid_18j82z_k$() { + return this.cid; + } + get_qn_kntnq2_k$() { + return this.qn; + } + get_fnver_irh6sy_k$() { + return this.fnver; + } + get_fnval_irh6pc_k$() { + return this.fnval; + } + get_download_86umr3_k$() { + return this.download; + } + get_forceHost_xs29oq_k$() { + return this.forceHost; + } + get_fourk_irhtcs_k$() { + return this.fourk; + } + get_preferCodecType_ox32on_k$() { + return this.preferCodecType; + } + get_voiceBalance_bhbot_k$() { + return this.voiceBalance; + } + preferCodecTypeEnum() { + return Companion_getInstance_123().fromValue(this.preferCodecType); + } + component1_7eebsc_k$() { + return this.aid; + } + component2_7eebsb_k$() { + return this.cid; + } + component3_7eebsa_k$() { + return this.qn; + } + component4_7eebs9_k$() { + return this.fnver; + } + component5_7eebs8_k$() { + return this.fnval; + } + component6_7eebs7_k$() { + return this.download; + } + component7_7eebs6_k$() { + return this.forceHost; + } + component8_7eebs5_k$() { + return this.fourk; + } + component9_7eebs4_k$() { + return this.preferCodecType; + } + component10_gazzfo_k$() { + return this.voiceBalance; + } + copy_1cwt34_k$(aid, cid, qn, fnver, fnval, download, forceHost, fourk, preferCodecType, voiceBalance) { + return new KVideoVod(aid, cid, qn, fnver, fnval, download, forceHost, fourk, preferCodecType, voiceBalance); + } + copy(aid, cid, qn, fnver, fnval, download, forceHost, fourk, preferCodecType, voiceBalance, $super) { + aid = aid === VOID ? this.aid : aid; + cid = cid === VOID ? this.cid : cid; + qn = qn === VOID ? this.qn : qn; + fnver = fnver === VOID ? this.fnver : fnver; + fnval = fnval === VOID ? this.fnval : fnval; + download = download === VOID ? this.download : download; + forceHost = forceHost === VOID ? this.forceHost : forceHost; + fourk = fourk === VOID ? this.fourk : fourk; + preferCodecType = preferCodecType === VOID ? this.preferCodecType : preferCodecType; + voiceBalance = voiceBalance === VOID ? this.voiceBalance : voiceBalance; + return this.copy_1cwt34_k$(aid, cid, qn, fnver, fnval, download, forceHost, fourk, preferCodecType, voiceBalance); + } + toString() { + return 'KVideoVod(aid=' + this.aid.toString() + ', cid=' + this.cid.toString() + ', qn=' + this.qn.toString() + ', fnver=' + this.fnver + ', fnval=' + this.fnval + ', download=' + this.download + ', forceHost=' + this.forceHost + ', fourk=' + this.fourk + ', preferCodecType=' + this.preferCodecType + ', voiceBalance=' + this.voiceBalance.toString() + ')'; + } + hashCode() { + var result = this.aid.hashCode(); + result = imul(result, 31) + this.cid.hashCode() | 0; + result = imul(result, 31) + this.qn.hashCode() | 0; + result = imul(result, 31) + this.fnver | 0; + result = imul(result, 31) + this.fnval | 0; + result = imul(result, 31) + this.download | 0; + result = imul(result, 31) + this.forceHost | 0; + result = imul(result, 31) + getBooleanHashCode(this.fourk) | 0; + result = imul(result, 31) + this.preferCodecType | 0; + result = imul(result, 31) + this.voiceBalance.hashCode() | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KVideoVod)) + return false; + var tmp0_other_with_cast = other instanceof KVideoVod ? other : THROW_CCE(); + if (!this.aid.equals(tmp0_other_with_cast.aid)) + return false; + if (!this.cid.equals(tmp0_other_with_cast.cid)) + return false; + if (!this.qn.equals(tmp0_other_with_cast.qn)) + return false; + if (!(this.fnver === tmp0_other_with_cast.fnver)) + return false; + if (!(this.fnval === tmp0_other_with_cast.fnval)) + return false; + if (!(this.download === tmp0_other_with_cast.download)) + return false; + if (!(this.forceHost === tmp0_other_with_cast.forceHost)) + return false; + if (!(this.fourk === tmp0_other_with_cast.fourk)) + return false; + if (!(this.preferCodecType === tmp0_other_with_cast.preferCodecType)) + return false; + if (!this.voiceBalance.equals(tmp0_other_with_cast.voiceBalance)) + return false; + return true; + } + static new_com_bapis_bilibili_playershared_KVideoVod_9gv429_k$(seen1, aid, cid, qn, fnver, fnval, download, forceHost, fourk, preferCodecType, voiceBalance, serializationConstructorMarker) { + Companion_instance_130; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_117().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.aid = new Long(0, 0); + else + $this.aid = aid; + if (0 === (seen1 & 2)) + $this.cid = new Long(0, 0); + else + $this.cid = cid; + if (0 === (seen1 & 4)) + $this.qn = new Long(0, 0); + else + $this.qn = qn; + if (0 === (seen1 & 8)) + $this.fnver = 0; + else + $this.fnver = fnver; + if (0 === (seen1 & 16)) + $this.fnval = 0; + else + $this.fnval = fnval; + if (0 === (seen1 & 32)) + $this.download = 0; + else + $this.download = download; + if (0 === (seen1 & 64)) + $this.forceHost = 0; + else + $this.forceHost = forceHost; + if (0 === (seen1 & 128)) + $this.fourk = false; + else + $this.fourk = fourk; + if (0 === (seen1 & 256)) + $this.preferCodecType = 0; + else + $this.preferCodecType = preferCodecType; + if (0 === (seen1 & 512)) + $this.voiceBalance = new Long(0, 0); + else + $this.voiceBalance = voiceBalance; + return $this; + } + } + class Companion_131 { + constructor() { + Companion_instance_131 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, null, new ArrayListSerializer($serializer_getInstance_125()), new ArrayListSerializer($serializer_getInstance_133()), null, null, null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.playershared.VodInfo'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_118(); + } + } + class $serializer_118 { + constructor() { + $serializer_instance_118 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.playershared.KVodInfo', this, 10); + tmp0_serialDesc.addElement_5pzumi_k$('quality', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('format', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('timelength', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('videoCodecid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('streamList', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('dashAudio', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('dolby', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('volume', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('lossLessItem', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('supportProject', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_131().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), tmp0_cached[4], tmp0_cached[5], get_nullable($serializer_getInstance_124()), get_nullable($serializer_getInstance_122()), get_nullable($serializer_getInstance_121()), BooleanSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = null; + var tmp6_local2 = new Long(0, 0); + var tmp7_local3 = 0; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_local8 = null; + var tmp13_local9 = false; + var tmp14_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp15_cached = Companion_getInstance_131().$childSerializers_1; + if (tmp14_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp14_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 4, tmp15_cached[4], tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp14_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 5, tmp15_cached[5], tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_124(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_122(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_121(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp14_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + } else + while (tmp1_flag) { + tmp2_index = tmp14_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp14_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 4, tmp15_cached[4], tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp14_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 5, tmp15_cached[5], tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_124(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_122(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_121(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp14_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp14_input.endStructure_1xqz0n_k$(tmp0_desc); + return KVodInfo.new_com_bapis_bilibili_playershared_KVodInfo_rmfb7s_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, null); + } + serialize_xc61kf_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_131().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.quality === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.quality); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.format === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.format); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.timelength.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.timelength); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.videoCodecid === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 3, value.videoCodecid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !equals(value.streamList, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 4, tmp2_cached[4], value.streamList); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !equals(value.dashAudio, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 5, tmp2_cached[5], value.dashAudio); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.dolby == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 6, $serializer_getInstance_124(), value.dolby); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.volume == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 7, $serializer_getInstance_122(), value.volume); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.lossLessItem == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 8, $serializer_getInstance_121(), value.lossLessItem); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.supportProject === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 9, value.supportProject); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_xc61kf_k$(encoder, value instanceof KVodInfo ? value : THROW_CCE()); + } + } + class KVodInfo { + constructor(quality, format, timelength, videoCodecid, streamList, dashAudio, dolby, volume, lossLessItem, supportProject) { + Companion_getInstance_131(); + quality = quality === VOID ? 0 : quality; + format = format === VOID ? '' : format; + timelength = timelength === VOID ? new Long(0, 0) : timelength; + videoCodecid = videoCodecid === VOID ? 0 : videoCodecid; + streamList = streamList === VOID ? emptyList() : streamList; + dashAudio = dashAudio === VOID ? emptyList() : dashAudio; + dolby = dolby === VOID ? null : dolby; + volume = volume === VOID ? null : volume; + lossLessItem = lossLessItem === VOID ? null : lossLessItem; + supportProject = supportProject === VOID ? false : supportProject; + this.quality = quality; + this.format = format; + this.timelength = timelength; + this.videoCodecid = videoCodecid; + this.streamList = streamList; + this.dashAudio = dashAudio; + this.dolby = dolby; + this.volume = volume; + this.lossLessItem = lossLessItem; + this.supportProject = supportProject; + } + get_quality_c19qty_k$() { + return this.quality; + } + get_format_dfdtds_k$() { + return this.format; + } + get_timelength_4jutmk_k$() { + return this.timelength; + } + get_videoCodecid_hop9mn_k$() { + return this.videoCodecid; + } + get_streamList_v3dxaf_k$() { + return this.streamList; + } + get_dashAudio_9bdsud_k$() { + return this.dashAudio; + } + get_dolby_iqe14f_k$() { + return this.dolby; + } + get_volume_l003z7_k$() { + return this.volume; + } + get_lossLessItem_kd51rc_k$() { + return this.lossLessItem; + } + get_supportProject_fmser1_k$() { + return this.supportProject; + } + component1_7eebsc_k$() { + return this.quality; + } + component2_7eebsb_k$() { + return this.format; + } + component3_7eebsa_k$() { + return this.timelength; + } + component4_7eebs9_k$() { + return this.videoCodecid; + } + component5_7eebs8_k$() { + return this.streamList; + } + component6_7eebs7_k$() { + return this.dashAudio; + } + component7_7eebs6_k$() { + return this.dolby; + } + component8_7eebs5_k$() { + return this.volume; + } + component9_7eebs4_k$() { + return this.lossLessItem; + } + component10_gazzfo_k$() { + return this.supportProject; + } + copy_czwr0l_k$(quality, format, timelength, videoCodecid, streamList, dashAudio, dolby, volume, lossLessItem, supportProject) { + return new KVodInfo(quality, format, timelength, videoCodecid, streamList, dashAudio, dolby, volume, lossLessItem, supportProject); + } + copy(quality, format, timelength, videoCodecid, streamList, dashAudio, dolby, volume, lossLessItem, supportProject, $super) { + quality = quality === VOID ? this.quality : quality; + format = format === VOID ? this.format : format; + timelength = timelength === VOID ? this.timelength : timelength; + videoCodecid = videoCodecid === VOID ? this.videoCodecid : videoCodecid; + streamList = streamList === VOID ? this.streamList : streamList; + dashAudio = dashAudio === VOID ? this.dashAudio : dashAudio; + dolby = dolby === VOID ? this.dolby : dolby; + volume = volume === VOID ? this.volume : volume; + lossLessItem = lossLessItem === VOID ? this.lossLessItem : lossLessItem; + supportProject = supportProject === VOID ? this.supportProject : supportProject; + return this.copy_czwr0l_k$(quality, format, timelength, videoCodecid, streamList, dashAudio, dolby, volume, lossLessItem, supportProject); + } + toString() { + return 'KVodInfo(quality=' + this.quality + ', format=' + this.format + ', timelength=' + this.timelength.toString() + ', videoCodecid=' + this.videoCodecid + ', streamList=' + this.streamList + ', dashAudio=' + this.dashAudio + ', dolby=' + this.dolby + ', volume=' + this.volume + ', lossLessItem=' + this.lossLessItem + ', supportProject=' + this.supportProject + ')'; + } + hashCode() { + var result = this.quality; + result = imul(result, 31) + getStringHashCode(this.format) | 0; + result = imul(result, 31) + this.timelength.hashCode() | 0; + result = imul(result, 31) + this.videoCodecid | 0; + result = imul(result, 31) + hashCode(this.streamList) | 0; + result = imul(result, 31) + hashCode(this.dashAudio) | 0; + result = imul(result, 31) + (this.dolby == null ? 0 : this.dolby.hashCode()) | 0; + result = imul(result, 31) + (this.volume == null ? 0 : this.volume.hashCode()) | 0; + result = imul(result, 31) + (this.lossLessItem == null ? 0 : this.lossLessItem.hashCode()) | 0; + result = imul(result, 31) + getBooleanHashCode(this.supportProject) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KVodInfo)) + return false; + var tmp0_other_with_cast = other instanceof KVodInfo ? other : THROW_CCE(); + if (!(this.quality === tmp0_other_with_cast.quality)) + return false; + if (!(this.format === tmp0_other_with_cast.format)) + return false; + if (!this.timelength.equals(tmp0_other_with_cast.timelength)) + return false; + if (!(this.videoCodecid === tmp0_other_with_cast.videoCodecid)) + return false; + if (!equals(this.streamList, tmp0_other_with_cast.streamList)) + return false; + if (!equals(this.dashAudio, tmp0_other_with_cast.dashAudio)) + return false; + if (!equals(this.dolby, tmp0_other_with_cast.dolby)) + return false; + if (!equals(this.volume, tmp0_other_with_cast.volume)) + return false; + if (!equals(this.lossLessItem, tmp0_other_with_cast.lossLessItem)) + return false; + if (!(this.supportProject === tmp0_other_with_cast.supportProject)) + return false; + return true; + } + static new_com_bapis_bilibili_playershared_KVodInfo_rmfb7s_k$(seen1, quality, format, timelength, videoCodecid, streamList, dashAudio, dolby, volume, lossLessItem, supportProject, serializationConstructorMarker) { + Companion_getInstance_131(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_118().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.quality = 0; + else + $this.quality = quality; + if (0 === (seen1 & 2)) + $this.format = ''; + else + $this.format = format; + if (0 === (seen1 & 4)) + $this.timelength = new Long(0, 0); + else + $this.timelength = timelength; + if (0 === (seen1 & 8)) + $this.videoCodecid = 0; + else + $this.videoCodecid = videoCodecid; + if (0 === (seen1 & 16)) + $this.streamList = emptyList(); + else + $this.streamList = streamList; + if (0 === (seen1 & 32)) + $this.dashAudio = emptyList(); + else + $this.dashAudio = dashAudio; + if (0 === (seen1 & 64)) + $this.dolby = null; + else + $this.dolby = dolby; + if (0 === (seen1 & 128)) + $this.volume = null; + else + $this.volume = volume; + if (0 === (seen1 & 256)) + $this.lossLessItem = null; + else + $this.lossLessItem = lossLessItem; + if (0 === (seen1 & 512)) + $this.supportProject = false; + else + $this.supportProject = supportProject; + return $this; + } + } + class Companion_132 { + constructor() { + Companion_instance_132 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer($serializer_getInstance_120())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.playershared.FragmentVideo'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_119(); + } + } + class $serializer_119 { + constructor() { + $serializer_instance_119 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.playershared.KFragmentVideo', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('videos', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_132().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp6_cached = Companion_getInstance_132().$childSerializers_1; + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KFragmentVideo.new_com_bapis_bilibili_playershared_KFragmentVideo_rydypo_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_63b8fx_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_132().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.videos, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.videos); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_63b8fx_k$(encoder, value instanceof KFragmentVideo ? value : THROW_CCE()); + } + } + class KFragmentVideo { + constructor(videos) { + Companion_getInstance_132(); + videos = videos === VOID ? emptyList() : videos; + this.videos = videos; + } + get_videos_kwjwpt_k$() { + return this.videos; + } + component1_7eebsc_k$() { + return this.videos; + } + copy_x4d5s7_k$(videos) { + return new KFragmentVideo(videos); + } + copy(videos, $super) { + videos = videos === VOID ? this.videos : videos; + return this.copy_x4d5s7_k$(videos); + } + toString() { + return 'KFragmentVideo(videos=' + this.videos + ')'; + } + hashCode() { + return hashCode(this.videos); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KFragmentVideo)) + return false; + var tmp0_other_with_cast = other instanceof KFragmentVideo ? other : THROW_CCE(); + if (!equals(this.videos, tmp0_other_with_cast.videos)) + return false; + return true; + } + static new_com_bapis_bilibili_playershared_KFragmentVideo_rydypo_k$(seen1, videos, serializationConstructorMarker) { + Companion_getInstance_132(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_119().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.videos = emptyList(); + else + $this.videos = videos; + return $this; + } + } + class Companion_133 { + constructor() { + this.targetPath = '/bilibili.playershared.FragmentVideoInfo'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_120(); + } + } + class $serializer_120 { + constructor() { + $serializer_instance_120 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.playershared.KFragmentVideoInfo', this, 7); + tmp0_serialDesc.addElement_5pzumi_k$('fragmentInfo', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('vodInfo', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('playArcConf', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('dimension', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('timelength', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('videoType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('playableStatus', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_148()), get_nullable($serializer_getInstance_118()), get_nullable($serializer_getInstance_71()), get_nullable($serializer_getInstance_136()), LongSerializer_getInstance(), IntSerializer_getInstance(), BooleanSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = new Long(0, 0); + var tmp9_local5 = 0; + var tmp10_local6 = false; + var tmp11_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp11_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_148(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_118(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_71(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_136(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp11_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + } else + while (tmp1_flag) { + tmp2_index = tmp11_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_148(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_118(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_71(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_136(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp11_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp11_input.endStructure_1xqz0n_k$(tmp0_desc); + return KFragmentVideoInfo.new_com_bapis_bilibili_playershared_KFragmentVideoInfo_jejayf_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, null); + } + serialize_qqb10v_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.fragmentInfo == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_148(), value.fragmentInfo); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.vodInfo == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_118(), value.vodInfo); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.playArcConf == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_71(), value.playArcConf); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.dimension == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_136(), value.dimension); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !value.timelength.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 4, value.timelength); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.videoType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 5, value.videoType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.playableStatus === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 6, value.playableStatus); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_qqb10v_k$(encoder, value instanceof KFragmentVideoInfo ? value : THROW_CCE()); + } + } + class KFragmentVideoInfo { + constructor(fragmentInfo, vodInfo, playArcConf, dimension, timelength, videoType, playableStatus) { + Companion_instance_133; + fragmentInfo = fragmentInfo === VOID ? null : fragmentInfo; + vodInfo = vodInfo === VOID ? null : vodInfo; + playArcConf = playArcConf === VOID ? null : playArcConf; + dimension = dimension === VOID ? null : dimension; + timelength = timelength === VOID ? new Long(0, 0) : timelength; + videoType = videoType === VOID ? 0 : videoType; + playableStatus = playableStatus === VOID ? false : playableStatus; + this.fragmentInfo = fragmentInfo; + this.vodInfo = vodInfo; + this.playArcConf = playArcConf; + this.dimension = dimension; + this.timelength = timelength; + this.videoType = videoType; + this.playableStatus = playableStatus; + } + get_fragmentInfo_yvm17d_k$() { + return this.fragmentInfo; + } + get_vodInfo_bkwi7k_k$() { + return this.vodInfo; + } + get_playArcConf_819ew7_k$() { + return this.playArcConf; + } + get_dimension_9lf48z_k$() { + return this.dimension; + } + get_timelength_4jutmk_k$() { + return this.timelength; + } + get_videoType_uk4t64_k$() { + return this.videoType; + } + get_playableStatus_epefo7_k$() { + return this.playableStatus; + } + videoTypeEnum() { + return Companion_getInstance_129().fromValue(this.videoType); + } + component1_7eebsc_k$() { + return this.fragmentInfo; + } + component2_7eebsb_k$() { + return this.vodInfo; + } + component3_7eebsa_k$() { + return this.playArcConf; + } + component4_7eebs9_k$() { + return this.dimension; + } + component5_7eebs8_k$() { + return this.timelength; + } + component6_7eebs7_k$() { + return this.videoType; + } + component7_7eebs6_k$() { + return this.playableStatus; + } + copy_fwd98b_k$(fragmentInfo, vodInfo, playArcConf, dimension, timelength, videoType, playableStatus) { + return new KFragmentVideoInfo(fragmentInfo, vodInfo, playArcConf, dimension, timelength, videoType, playableStatus); + } + copy(fragmentInfo, vodInfo, playArcConf, dimension, timelength, videoType, playableStatus, $super) { + fragmentInfo = fragmentInfo === VOID ? this.fragmentInfo : fragmentInfo; + vodInfo = vodInfo === VOID ? this.vodInfo : vodInfo; + playArcConf = playArcConf === VOID ? this.playArcConf : playArcConf; + dimension = dimension === VOID ? this.dimension : dimension; + timelength = timelength === VOID ? this.timelength : timelength; + videoType = videoType === VOID ? this.videoType : videoType; + playableStatus = playableStatus === VOID ? this.playableStatus : playableStatus; + return this.copy_fwd98b_k$(fragmentInfo, vodInfo, playArcConf, dimension, timelength, videoType, playableStatus); + } + toString() { + return 'KFragmentVideoInfo(fragmentInfo=' + this.fragmentInfo + ', vodInfo=' + this.vodInfo + ', playArcConf=' + this.playArcConf + ', dimension=' + this.dimension + ', timelength=' + this.timelength.toString() + ', videoType=' + this.videoType + ', playableStatus=' + this.playableStatus + ')'; + } + hashCode() { + var result = this.fragmentInfo == null ? 0 : this.fragmentInfo.hashCode(); + result = imul(result, 31) + (this.vodInfo == null ? 0 : this.vodInfo.hashCode()) | 0; + result = imul(result, 31) + (this.playArcConf == null ? 0 : this.playArcConf.hashCode()) | 0; + result = imul(result, 31) + (this.dimension == null ? 0 : this.dimension.hashCode()) | 0; + result = imul(result, 31) + this.timelength.hashCode() | 0; + result = imul(result, 31) + this.videoType | 0; + result = imul(result, 31) + getBooleanHashCode(this.playableStatus) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KFragmentVideoInfo)) + return false; + var tmp0_other_with_cast = other instanceof KFragmentVideoInfo ? other : THROW_CCE(); + if (!equals(this.fragmentInfo, tmp0_other_with_cast.fragmentInfo)) + return false; + if (!equals(this.vodInfo, tmp0_other_with_cast.vodInfo)) + return false; + if (!equals(this.playArcConf, tmp0_other_with_cast.playArcConf)) + return false; + if (!equals(this.dimension, tmp0_other_with_cast.dimension)) + return false; + if (!this.timelength.equals(tmp0_other_with_cast.timelength)) + return false; + if (!(this.videoType === tmp0_other_with_cast.videoType)) + return false; + if (!(this.playableStatus === tmp0_other_with_cast.playableStatus)) + return false; + return true; + } + static new_com_bapis_bilibili_playershared_KFragmentVideoInfo_jejayf_k$(seen1, fragmentInfo, vodInfo, playArcConf, dimension, timelength, videoType, playableStatus, serializationConstructorMarker) { + Companion_instance_133; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_120().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.fragmentInfo = null; + else + $this.fragmentInfo = fragmentInfo; + if (0 === (seen1 & 2)) + $this.vodInfo = null; + else + $this.vodInfo = vodInfo; + if (0 === (seen1 & 4)) + $this.playArcConf = null; + else + $this.playArcConf = playArcConf; + if (0 === (seen1 & 8)) + $this.dimension = null; + else + $this.dimension = dimension; + if (0 === (seen1 & 16)) + $this.timelength = new Long(0, 0); + else + $this.timelength = timelength; + if (0 === (seen1 & 32)) + $this.videoType = 0; + else + $this.videoType = videoType; + if (0 === (seen1 & 64)) + $this.playableStatus = false; + else + $this.playableStatus = playableStatus; + return $this; + } + } + class Companion_134 { + constructor() { + this.targetPath = '/bilibili.playershared.LossLessItem'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_121(); + } + } + class $serializer_121 { + constructor() { + $serializer_instance_121 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.playershared.KLossLessItem', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('isLosslessAudio', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('audio', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('needVip', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [BooleanSerializer_getInstance(), get_nullable($serializer_getInstance_133()), BooleanSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = false; + var tmp5_local1 = null; + var tmp6_local2 = false; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_133(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_133(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KLossLessItem.new_com_bapis_bilibili_playershared_KLossLessItem_45lzp0_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_fcdz73_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.isLosslessAudio === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 0, value.isLosslessAudio); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.audio == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_133(), value.audio); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.needVip === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 2, value.needVip); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_fcdz73_k$(encoder, value instanceof KLossLessItem ? value : THROW_CCE()); + } + } + class KLossLessItem { + constructor(isLosslessAudio, audio, needVip) { + Companion_instance_134; + isLosslessAudio = isLosslessAudio === VOID ? false : isLosslessAudio; + audio = audio === VOID ? null : audio; + needVip = needVip === VOID ? false : needVip; + this.isLosslessAudio = isLosslessAudio; + this.audio = audio; + this.needVip = needVip; + } + get_isLosslessAudio_jipa7t_k$() { + return this.isLosslessAudio; + } + get_audio_ioubhp_k$() { + return this.audio; + } + get_needVip_viiny6_k$() { + return this.needVip; + } + component1_7eebsc_k$() { + return this.isLosslessAudio; + } + component2_7eebsb_k$() { + return this.audio; + } + component3_7eebsa_k$() { + return this.needVip; + } + copy_2tgns4_k$(isLosslessAudio, audio, needVip) { + return new KLossLessItem(isLosslessAudio, audio, needVip); + } + copy(isLosslessAudio, audio, needVip, $super) { + isLosslessAudio = isLosslessAudio === VOID ? this.isLosslessAudio : isLosslessAudio; + audio = audio === VOID ? this.audio : audio; + needVip = needVip === VOID ? this.needVip : needVip; + return this.copy_2tgns4_k$(isLosslessAudio, audio, needVip); + } + toString() { + return 'KLossLessItem(isLosslessAudio=' + this.isLosslessAudio + ', audio=' + this.audio + ', needVip=' + this.needVip + ')'; + } + hashCode() { + var result = getBooleanHashCode(this.isLosslessAudio); + result = imul(result, 31) + (this.audio == null ? 0 : this.audio.hashCode()) | 0; + result = imul(result, 31) + getBooleanHashCode(this.needVip) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KLossLessItem)) + return false; + var tmp0_other_with_cast = other instanceof KLossLessItem ? other : THROW_CCE(); + if (!(this.isLosslessAudio === tmp0_other_with_cast.isLosslessAudio)) + return false; + if (!equals(this.audio, tmp0_other_with_cast.audio)) + return false; + if (!(this.needVip === tmp0_other_with_cast.needVip)) + return false; + return true; + } + static new_com_bapis_bilibili_playershared_KLossLessItem_45lzp0_k$(seen1, isLosslessAudio, audio, needVip, serializationConstructorMarker) { + Companion_instance_134; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_121().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.isLosslessAudio = false; + else + $this.isLosslessAudio = isLosslessAudio; + if (0 === (seen1 & 2)) + $this.audio = null; + else + $this.audio = audio; + if (0 === (seen1 & 4)) + $this.needVip = false; + else + $this.needVip = needVip; + return $this; + } + } + class Companion_135 { + constructor() { + this.targetPath = '/bilibili.playershared.VolumeInfo'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_122(); + } + } + class $serializer_122 { + constructor() { + $serializer_instance_122 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.playershared.KVolumeInfo', this, 7); + tmp0_serialDesc.addElement_5pzumi_k$('measuredI', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('measuredLra', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('measuredTp', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('measuredThreshold', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('targetOffset', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('targetI', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('targetTp', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [DoubleSerializer_getInstance(), DoubleSerializer_getInstance(), DoubleSerializer_getInstance(), DoubleSerializer_getInstance(), DoubleSerializer_getInstance(), DoubleSerializer_getInstance(), DoubleSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0.0; + var tmp5_local1 = 0.0; + var tmp6_local2 = 0.0; + var tmp7_local3 = 0.0; + var tmp8_local4 = 0.0; + var tmp9_local5 = 0.0; + var tmp10_local6 = 0.0; + var tmp11_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp11_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp11_input.decodeDoubleElement_isei84_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp11_input.decodeDoubleElement_isei84_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp11_input.decodeDoubleElement_isei84_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp11_input.decodeDoubleElement_isei84_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp11_input.decodeDoubleElement_isei84_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp11_input.decodeDoubleElement_isei84_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp11_input.decodeDoubleElement_isei84_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + } else + while (tmp1_flag) { + tmp2_index = tmp11_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp11_input.decodeDoubleElement_isei84_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp11_input.decodeDoubleElement_isei84_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp11_input.decodeDoubleElement_isei84_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp11_input.decodeDoubleElement_isei84_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp11_input.decodeDoubleElement_isei84_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp11_input.decodeDoubleElement_isei84_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp11_input.decodeDoubleElement_isei84_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp11_input.endStructure_1xqz0n_k$(tmp0_desc); + return KVolumeInfo.new_com_bapis_bilibili_playershared_KVolumeInfo_i78nuq_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, null); + } + serialize_6txpe2_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.measuredI, 0.0)) { + tmp1_output.encodeDoubleElement_a6rqhe_k$(tmp0_desc, 0, value.measuredI); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !equals(value.measuredLra, 0.0)) { + tmp1_output.encodeDoubleElement_a6rqhe_k$(tmp0_desc, 1, value.measuredLra); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !equals(value.measuredTp, 0.0)) { + tmp1_output.encodeDoubleElement_a6rqhe_k$(tmp0_desc, 2, value.measuredTp); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !equals(value.measuredThreshold, 0.0)) { + tmp1_output.encodeDoubleElement_a6rqhe_k$(tmp0_desc, 3, value.measuredThreshold); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !equals(value.targetOffset, 0.0)) { + tmp1_output.encodeDoubleElement_a6rqhe_k$(tmp0_desc, 4, value.targetOffset); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !equals(value.targetI, 0.0)) { + tmp1_output.encodeDoubleElement_a6rqhe_k$(tmp0_desc, 5, value.targetI); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !equals(value.targetTp, 0.0)) { + tmp1_output.encodeDoubleElement_a6rqhe_k$(tmp0_desc, 6, value.targetTp); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_6txpe2_k$(encoder, value instanceof KVolumeInfo ? value : THROW_CCE()); + } + } + class KVolumeInfo { + constructor(measuredI, measuredLra, measuredTp, measuredThreshold, targetOffset, targetI, targetTp) { + Companion_instance_135; + measuredI = measuredI === VOID ? 0.0 : measuredI; + measuredLra = measuredLra === VOID ? 0.0 : measuredLra; + measuredTp = measuredTp === VOID ? 0.0 : measuredTp; + measuredThreshold = measuredThreshold === VOID ? 0.0 : measuredThreshold; + targetOffset = targetOffset === VOID ? 0.0 : targetOffset; + targetI = targetI === VOID ? 0.0 : targetI; + targetTp = targetTp === VOID ? 0.0 : targetTp; + this.measuredI = measuredI; + this.measuredLra = measuredLra; + this.measuredTp = measuredTp; + this.measuredThreshold = measuredThreshold; + this.targetOffset = targetOffset; + this.targetI = targetI; + this.targetTp = targetTp; + } + get_measuredI_4xocyi_k$() { + return this.measuredI; + } + get_measuredLra_g39md0_k$() { + return this.measuredLra; + } + get_measuredTp_axr23v_k$() { + return this.measuredTp; + } + get_measuredThreshold_apotcs_k$() { + return this.measuredThreshold; + } + get_targetOffset_6id2k3_k$() { + return this.targetOffset; + } + get_targetI_o6ao7l_k$() { + return this.targetI; + } + get_targetTp_vx1rjq_k$() { + return this.targetTp; + } + component1_7eebsc_k$() { + return this.measuredI; + } + component2_7eebsb_k$() { + return this.measuredLra; + } + component3_7eebsa_k$() { + return this.measuredTp; + } + component4_7eebs9_k$() { + return this.measuredThreshold; + } + component5_7eebs8_k$() { + return this.targetOffset; + } + component6_7eebs7_k$() { + return this.targetI; + } + component7_7eebs6_k$() { + return this.targetTp; + } + copy_rkiwfl_k$(measuredI, measuredLra, measuredTp, measuredThreshold, targetOffset, targetI, targetTp) { + return new KVolumeInfo(measuredI, measuredLra, measuredTp, measuredThreshold, targetOffset, targetI, targetTp); + } + copy(measuredI, measuredLra, measuredTp, measuredThreshold, targetOffset, targetI, targetTp, $super) { + measuredI = measuredI === VOID ? this.measuredI : measuredI; + measuredLra = measuredLra === VOID ? this.measuredLra : measuredLra; + measuredTp = measuredTp === VOID ? this.measuredTp : measuredTp; + measuredThreshold = measuredThreshold === VOID ? this.measuredThreshold : measuredThreshold; + targetOffset = targetOffset === VOID ? this.targetOffset : targetOffset; + targetI = targetI === VOID ? this.targetI : targetI; + targetTp = targetTp === VOID ? this.targetTp : targetTp; + return this.copy_rkiwfl_k$(measuredI, measuredLra, measuredTp, measuredThreshold, targetOffset, targetI, targetTp); + } + toString() { + return 'KVolumeInfo(measuredI=' + this.measuredI + ', measuredLra=' + this.measuredLra + ', measuredTp=' + this.measuredTp + ', measuredThreshold=' + this.measuredThreshold + ', targetOffset=' + this.targetOffset + ', targetI=' + this.targetI + ', targetTp=' + this.targetTp + ')'; + } + hashCode() { + var result = getNumberHashCode(this.measuredI); + result = imul(result, 31) + getNumberHashCode(this.measuredLra) | 0; + result = imul(result, 31) + getNumberHashCode(this.measuredTp) | 0; + result = imul(result, 31) + getNumberHashCode(this.measuredThreshold) | 0; + result = imul(result, 31) + getNumberHashCode(this.targetOffset) | 0; + result = imul(result, 31) + getNumberHashCode(this.targetI) | 0; + result = imul(result, 31) + getNumberHashCode(this.targetTp) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KVolumeInfo)) + return false; + var tmp0_other_with_cast = other instanceof KVolumeInfo ? other : THROW_CCE(); + if (!equals(this.measuredI, tmp0_other_with_cast.measuredI)) + return false; + if (!equals(this.measuredLra, tmp0_other_with_cast.measuredLra)) + return false; + if (!equals(this.measuredTp, tmp0_other_with_cast.measuredTp)) + return false; + if (!equals(this.measuredThreshold, tmp0_other_with_cast.measuredThreshold)) + return false; + if (!equals(this.targetOffset, tmp0_other_with_cast.targetOffset)) + return false; + if (!equals(this.targetI, tmp0_other_with_cast.targetI)) + return false; + if (!equals(this.targetTp, tmp0_other_with_cast.targetTp)) + return false; + return true; + } + static new_com_bapis_bilibili_playershared_KVolumeInfo_i78nuq_k$(seen1, measuredI, measuredLra, measuredTp, measuredThreshold, targetOffset, targetI, targetTp, serializationConstructorMarker) { + Companion_instance_135; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_122().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.measuredI = 0.0; + else + $this.measuredI = measuredI; + if (0 === (seen1 & 2)) + $this.measuredLra = 0.0; + else + $this.measuredLra = measuredLra; + if (0 === (seen1 & 4)) + $this.measuredTp = 0.0; + else + $this.measuredTp = measuredTp; + if (0 === (seen1 & 8)) + $this.measuredThreshold = 0.0; + else + $this.measuredThreshold = measuredThreshold; + if (0 === (seen1 & 16)) + $this.targetOffset = 0.0; + else + $this.targetOffset = targetOffset; + if (0 === (seen1 & 32)) + $this.targetI = 0.0; + else + $this.targetI = targetI; + if (0 === (seen1 & 64)) + $this.targetTp = 0.0; + else + $this.targetTp = targetTp; + return $this; + } + } + class Companion_136 { + constructor() { + Companion_instance_136 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KDolbyItem$KType$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KDolbyItem$KType$Companion$_anonymous__newf3i); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_28(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.playershared.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KType_UNRECOGNIZED_getInstance_0() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.playershared.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KType with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_28(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_123 { + constructor() { + $serializer_instance_123 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.playershared.KDolbyItem.KType', 4); + tmp0_serialDesc.addElement_5pzumi_k$('NONE', false); + tmp0_serialDesc.addElement_5pzumi_k$('COMMON', false); + tmp0_serialDesc.addElement_5pzumi_k$('ATMOS', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_28()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_wwdbeb_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_wwdbeb_k$(encoder, value instanceof KType_1 ? value : THROW_CCE()); + } + } + class KType_1 extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_137 { + constructor() { + Companion_instance_137 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, new ArrayListSerializer($serializer_getInstance_133())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.playershared.DolbyItem'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_124(); + } + } + class $serializer_124 { + constructor() { + $serializer_instance_124 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.playershared.KDolbyItem', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('audio', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_137().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), tmp0_cached[1]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp7_cached = Companion_getInstance_137().$childSerializers_1; + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KDolbyItem.new_com_bapis_bilibili_playershared_KDolbyItem_fwaj9a_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_iulyf7_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_137().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.type === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.type); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !equals(value.audio, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 1, tmp2_cached[1], value.audio); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_iulyf7_k$(encoder, value instanceof KDolbyItem ? value : THROW_CCE()); + } + } + class KDolbyItem { + constructor(type, audio) { + Companion_getInstance_137(); + type = type === VOID ? 0 : type; + audio = audio === VOID ? emptyList() : audio; + this.type = type; + this.audio = audio; + } + get_type_wovaf7_k$() { + return this.type; + } + get_audio_ioubhp_k$() { + return this.audio; + } + typeEnum() { + return Companion_getInstance_136().fromValue(this.type); + } + component1_7eebsc_k$() { + return this.type; + } + component2_7eebsb_k$() { + return this.audio; + } + copy_5gw5gv_k$(type, audio) { + return new KDolbyItem(type, audio); + } + copy(type, audio, $super) { + type = type === VOID ? this.type : type; + audio = audio === VOID ? this.audio : audio; + return this.copy_5gw5gv_k$(type, audio); + } + toString() { + return 'KDolbyItem(type=' + this.type + ', audio=' + this.audio + ')'; + } + hashCode() { + var result = this.type; + result = imul(result, 31) + hashCode(this.audio) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KDolbyItem)) + return false; + var tmp0_other_with_cast = other instanceof KDolbyItem ? other : THROW_CCE(); + if (!(this.type === tmp0_other_with_cast.type)) + return false; + if (!equals(this.audio, tmp0_other_with_cast.audio)) + return false; + return true; + } + static new_com_bapis_bilibili_playershared_KDolbyItem_fwaj9a_k$(seen1, type, audio, serializationConstructorMarker) { + Companion_getInstance_137(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_124().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.type = 0; + else + $this.type = type; + if (0 === (seen1 & 2)) + $this.audio = emptyList(); + else + $this.audio = audio; + return $this; + } + } + class KContent { + constructor(value) { + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + } + class KDashVideo extends KContent { + constructor() { + KDashVideo_instance = null; + super(0); + KDashVideo_instance = this; + } + } + class KSegmentVideo extends KContent { + constructor() { + KSegmentVideo_instance = null; + super(1); + KSegmentVideo_instance = this; + } + } + class Companion_138 { + constructor() { + Companion_instance_138 = this; + var tmp = this; + tmp.contentValues$delegate_1 = lazy_0(KStream$Companion$contentValues$delegate$lambda); + this.targetPath = '/bilibili.playershared.Stream'; + } + get_contentValues_5hg7ce_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.contentValues$delegate_1; + var thisRef = this; + var property = contentValues$factory(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_125(); + } + get contentValues() { + return this.get_contentValues_5hg7ce_k$(); + } + } + class $serializer_125 { + constructor() { + $serializer_instance_125 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.playershared.KStream', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('streamInfo', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('dashVideo', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('segmentVideo', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_127()), get_nullable($serializer_getInstance_131()), get_nullable($serializer_getInstance_126())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_transient0 = 0; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_127(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_131(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_126(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_127(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_131(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_126(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KStream.new_com_bapis_bilibili_playershared_KStream_axg1w3_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_gijn6m_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.streamInfo == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_127(), value.streamInfo); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.dashVideo_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_131(), value.dashVideo_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.segmentVideo_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_126(), value.segmentVideo_1); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_gijn6m_k$(encoder, value instanceof KStream ? value : THROW_CCE()); + } + } + class KStream { + constructor(streamInfo, dashVideo, segmentVideo) { + Companion_getInstance_138(); + streamInfo = streamInfo === VOID ? null : streamInfo; + dashVideo = dashVideo === VOID ? null : dashVideo; + segmentVideo = segmentVideo === VOID ? null : segmentVideo; + this.streamInfo = streamInfo; + this.dashVideo_1 = dashVideo; + this.segmentVideo_1 = segmentVideo; + var tmp = this; + tmp.contentNumber$delegate_1 = lazy_0(KStream$contentNumber$delegate$lambda(this)); + } + get_streamInfo_v3c3pz_k$() { + return this.streamInfo; + } + contentValue() { + if (!(this.dashVideo_1 == null)) { + var tmp = this.dashVideo_1; + return (tmp == null ? true : !(tmp == null)) ? tmp : null; + } else if (!(this.segmentVideo_1 == null)) { + var tmp_0 = this.segmentVideo_1; + return (tmp_0 == null ? true : !(tmp_0 == null)) ? tmp_0 : null; + } else { + return null; + } + } + contentTypeJs() { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = Companion_getInstance_138().contentValues; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.playershared.KStream.contentType.' call + var it = element; + tmp$ret$0 = it.value === _get_contentNumber__iirtht(this); + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + return tmp$ret$1; + } + component1_7eebsc_k$() { + return this.streamInfo; + } + copy_4gwy6u_k$(streamInfo, dashVideo, segmentVideo) { + return new KStream(streamInfo, dashVideo, segmentVideo); + } + copy(streamInfo, dashVideo, segmentVideo, $super) { + streamInfo = streamInfo === VOID ? this.streamInfo : streamInfo; + dashVideo = dashVideo === VOID ? this.dashVideo_1 : dashVideo; + segmentVideo = segmentVideo === VOID ? this.segmentVideo_1 : segmentVideo; + return this.copy_4gwy6u_k$(streamInfo, dashVideo, segmentVideo); + } + toString() { + return 'KStream(streamInfo=' + this.streamInfo + ', dashVideo=' + this.dashVideo_1 + ', segmentVideo=' + this.segmentVideo_1 + ')'; + } + hashCode() { + var result = this.streamInfo == null ? 0 : this.streamInfo.hashCode(); + result = imul(result, 31) + (this.dashVideo_1 == null ? 0 : this.dashVideo_1.hashCode()) | 0; + result = imul(result, 31) + (this.segmentVideo_1 == null ? 0 : this.segmentVideo_1.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KStream)) + return false; + var tmp0_other_with_cast = other instanceof KStream ? other : THROW_CCE(); + if (!equals(this.streamInfo, tmp0_other_with_cast.streamInfo)) + return false; + if (!equals(this.dashVideo_1, tmp0_other_with_cast.dashVideo_1)) + return false; + if (!equals(this.segmentVideo_1, tmp0_other_with_cast.segmentVideo_1)) + return false; + return true; + } + static new_com_bapis_bilibili_playershared_KStream_axg1w3_k$(seen1, streamInfo, dashVideo, segmentVideo, serializationConstructorMarker) { + Companion_getInstance_138(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_125().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.streamInfo = null; + else + $this.streamInfo = streamInfo; + if (0 === (seen1 & 2)) + $this.dashVideo_1 = null; + else + $this.dashVideo_1 = dashVideo; + if (0 === (seen1 & 4)) + $this.segmentVideo_1 = null; + else + $this.segmentVideo_1 = segmentVideo; + var tmp = $this; + tmp.contentNumber$delegate_1 = lazy_0(KStream$_init_$lambda_te50cg($this)); + return $this; + } + } + class Companion_139 { + constructor() { + Companion_instance_139 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer($serializer_getInstance_134())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.playershared.SegmentVideo'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_126(); + } + } + class $serializer_126 { + constructor() { + $serializer_instance_126 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.playershared.KSegmentVideo', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('segment', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_139().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp6_cached = Companion_getInstance_139().$childSerializers_1; + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSegmentVideo_0.new_com_bapis_bilibili_playershared_KSegmentVideo_r3cc5w_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_1ueqp6_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_139().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.segment, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.segment); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_1ueqp6_k$(encoder, value instanceof KSegmentVideo_0 ? value : THROW_CCE()); + } + } + class KSegmentVideo_0 { + constructor(segment) { + Companion_getInstance_139(); + segment = segment === VOID ? emptyList() : segment; + this.segment = segment; + } + get_segment_xwnoei_k$() { + return this.segment; + } + component1_7eebsc_k$() { + return this.segment; + } + copy_nzdhpg_k$(segment) { + return new KSegmentVideo_0(segment); + } + copy(segment, $super) { + segment = segment === VOID ? this.segment : segment; + return this.copy_nzdhpg_k$(segment); + } + toString() { + return 'KSegmentVideo(segment=' + this.segment + ')'; + } + hashCode() { + return hashCode(this.segment); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSegmentVideo_0)) + return false; + var tmp0_other_with_cast = other instanceof KSegmentVideo_0 ? other : THROW_CCE(); + if (!equals(this.segment, tmp0_other_with_cast.segment)) + return false; + return true; + } + static new_com_bapis_bilibili_playershared_KSegmentVideo_r3cc5w_k$(seen1, segment, serializationConstructorMarker) { + Companion_getInstance_139(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_126().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.segment = emptyList(); + else + $this.segment = segment; + return $this; + } + } + class Companion_140 { + constructor() { + this.targetPath = '/bilibili.playershared.StreamInfo'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_127(); + } + } + class $serializer_127 { + constructor() { + $serializer_instance_127 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.playershared.KStreamInfo', this, 17); + tmp0_serialDesc.addElement_5pzumi_k$('quality', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('format', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('description', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('errCode', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('limit', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('needVip', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('needLogin', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('intact', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('noRexcode', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('attribute', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('newDescription', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('displayDesc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + tmp0_serialDesc.addElement_5pzumi_k$('superscript', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(13)); + tmp0_serialDesc.addElement_5pzumi_k$('vipFree', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(14)); + tmp0_serialDesc.addElement_5pzumi_k$('subtitle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(15)); + tmp0_serialDesc.addElement_5pzumi_k$('scheme', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(16)); + tmp0_serialDesc.addElement_5pzumi_k$('supportDrm', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(17)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), get_nullable($serializer_getInstance_130()), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), BooleanSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_129()), BooleanSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = 0; + var tmp8_local4 = null; + var tmp9_local5 = false; + var tmp10_local6 = false; + var tmp11_local7 = false; + var tmp12_local8 = false; + var tmp13_local9 = new Long(0, 0); + var tmp14_local10 = null; + var tmp15_local11 = null; + var tmp16_local12 = null; + var tmp17_local13 = false; + var tmp18_local14 = null; + var tmp19_local15 = null; + var tmp20_local16 = false; + var tmp21_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp21_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp21_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp21_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp21_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_130(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp21_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp21_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp21_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp21_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp21_input.decodeLongElement_994anb_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + tmp16_local12 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + tmp17_local13 = tmp21_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + tmp18_local14 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + tmp19_local15 = tmp21_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 15, $serializer_getInstance_129(), tmp19_local15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + tmp20_local16 = tmp21_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 16); + tmp3_bitMask0 = tmp3_bitMask0 | 65536; + } else + while (tmp1_flag) { + tmp2_index = tmp21_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp21_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp21_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp21_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_130(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp21_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp21_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp21_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp21_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp21_input.decodeLongElement_994anb_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + case 12: + tmp16_local12 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + break; + case 13: + tmp17_local13 = tmp21_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + break; + case 14: + tmp18_local14 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + break; + case 15: + tmp19_local15 = tmp21_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 15, $serializer_getInstance_129(), tmp19_local15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + break; + case 16: + tmp20_local16 = tmp21_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 16); + tmp3_bitMask0 = tmp3_bitMask0 | 65536; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp21_input.endStructure_1xqz0n_k$(tmp0_desc); + return KStreamInfo.new_com_bapis_bilibili_playershared_KStreamInfo_lm0gui_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, tmp18_local14, tmp19_local15, tmp20_local16, null); + } + serialize_7qbils_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.quality === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.quality); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.format === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.format); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.description === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.description); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.errCode === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 3, value.errCode); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.limit == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, $serializer_getInstance_130(), value.limit); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.needVip === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 5, value.needVip); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.needLogin === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 6, value.needLogin); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.intact === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 7, value.intact); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.noRexcode === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 8, value.noRexcode); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !value.attribute.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 9, value.attribute); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.newDescription === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 10, value.newDescription); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.displayDesc === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 11, value.displayDesc); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !(value.superscript === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 12, value.superscript); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 13) ? true : !(value.vipFree === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 13, value.vipFree); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 14) ? true : !(value.subtitle === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 14, value.subtitle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 15) ? true : !(value.scheme == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 15, $serializer_getInstance_129(), value.scheme); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 16) ? true : !(value.supportDrm === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 16, value.supportDrm); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_7qbils_k$(encoder, value instanceof KStreamInfo ? value : THROW_CCE()); + } + } + class KStreamInfo { + constructor(quality, format, description, errCode, limit, needVip, needLogin, intact, noRexcode, attribute, newDescription, displayDesc, superscript, vipFree, subtitle, scheme, supportDrm) { + Companion_instance_140; + quality = quality === VOID ? 0 : quality; + format = format === VOID ? '' : format; + description = description === VOID ? '' : description; + errCode = errCode === VOID ? 0 : errCode; + limit = limit === VOID ? null : limit; + needVip = needVip === VOID ? false : needVip; + needLogin = needLogin === VOID ? false : needLogin; + intact = intact === VOID ? false : intact; + noRexcode = noRexcode === VOID ? false : noRexcode; + attribute = attribute === VOID ? new Long(0, 0) : attribute; + newDescription = newDescription === VOID ? '' : newDescription; + displayDesc = displayDesc === VOID ? '' : displayDesc; + superscript = superscript === VOID ? '' : superscript; + vipFree = vipFree === VOID ? false : vipFree; + subtitle = subtitle === VOID ? '' : subtitle; + scheme = scheme === VOID ? null : scheme; + supportDrm = supportDrm === VOID ? false : supportDrm; + this.quality = quality; + this.format = format; + this.description = description; + this.errCode = errCode; + this.limit = limit; + this.needVip = needVip; + this.needLogin = needLogin; + this.intact = intact; + this.noRexcode = noRexcode; + this.attribute = attribute; + this.newDescription = newDescription; + this.displayDesc = displayDesc; + this.superscript = superscript; + this.vipFree = vipFree; + this.subtitle = subtitle; + this.scheme = scheme; + this.supportDrm = supportDrm; + } + get_quality_c19qty_k$() { + return this.quality; + } + get_format_dfdtds_k$() { + return this.format; + } + get_description_emjre5_k$() { + return this.description; + } + get_errCode_n7rzef_k$() { + return this.errCode; + } + get_limit_iuokuq_k$() { + return this.limit; + } + get_needVip_viiny6_k$() { + return this.needVip; + } + get_needLogin_q0vphm_k$() { + return this.needLogin; + } + get_intact_etzx3g_k$() { + return this.intact; + } + get_noRexcode_yihxnc_k$() { + return this.noRexcode; + } + get_attribute_8qb9wz_k$() { + return this.attribute; + } + get_newDescription_d5pphh_k$() { + return this.newDescription; + } + get_displayDesc_ssiy2e_k$() { + return this.displayDesc; + } + get_superscript_5dzvj7_k$() { + return this.superscript; + } + get_vipFree_8x6gxs_k$() { + return this.vipFree; + } + get_subtitle_55eoyp_k$() { + return this.subtitle; + } + get_scheme_je6tv2_k$() { + return this.scheme; + } + get_supportDrm_ubrkmf_k$() { + return this.supportDrm; + } + errCodeEnum() { + return Companion_getInstance_124().fromValue(this.errCode); + } + component1_7eebsc_k$() { + return this.quality; + } + component2_7eebsb_k$() { + return this.format; + } + component3_7eebsa_k$() { + return this.description; + } + component4_7eebs9_k$() { + return this.errCode; + } + component5_7eebs8_k$() { + return this.limit; + } + component6_7eebs7_k$() { + return this.needVip; + } + component7_7eebs6_k$() { + return this.needLogin; + } + component8_7eebs5_k$() { + return this.intact; + } + component9_7eebs4_k$() { + return this.noRexcode; + } + component10_gazzfo_k$() { + return this.attribute; + } + component11_gazzfn_k$() { + return this.newDescription; + } + component12_gazzfm_k$() { + return this.displayDesc; + } + component13_gazzfl_k$() { + return this.superscript; + } + component14_gazzfk_k$() { + return this.vipFree; + } + component15_gazzfj_k$() { + return this.subtitle; + } + component16_gazzfi_k$() { + return this.scheme; + } + component17_gazzfh_k$() { + return this.supportDrm; + } + copy_hxvhmt_k$(quality, format, description, errCode, limit, needVip, needLogin, intact, noRexcode, attribute, newDescription, displayDesc, superscript, vipFree, subtitle, scheme, supportDrm) { + return new KStreamInfo(quality, format, description, errCode, limit, needVip, needLogin, intact, noRexcode, attribute, newDescription, displayDesc, superscript, vipFree, subtitle, scheme, supportDrm); + } + copy(quality, format, description, errCode, limit, needVip, needLogin, intact, noRexcode, attribute, newDescription, displayDesc, superscript, vipFree, subtitle, scheme, supportDrm, $super) { + quality = quality === VOID ? this.quality : quality; + format = format === VOID ? this.format : format; + description = description === VOID ? this.description : description; + errCode = errCode === VOID ? this.errCode : errCode; + limit = limit === VOID ? this.limit : limit; + needVip = needVip === VOID ? this.needVip : needVip; + needLogin = needLogin === VOID ? this.needLogin : needLogin; + intact = intact === VOID ? this.intact : intact; + noRexcode = noRexcode === VOID ? this.noRexcode : noRexcode; + attribute = attribute === VOID ? this.attribute : attribute; + newDescription = newDescription === VOID ? this.newDescription : newDescription; + displayDesc = displayDesc === VOID ? this.displayDesc : displayDesc; + superscript = superscript === VOID ? this.superscript : superscript; + vipFree = vipFree === VOID ? this.vipFree : vipFree; + subtitle = subtitle === VOID ? this.subtitle : subtitle; + scheme = scheme === VOID ? this.scheme : scheme; + supportDrm = supportDrm === VOID ? this.supportDrm : supportDrm; + return this.copy_hxvhmt_k$(quality, format, description, errCode, limit, needVip, needLogin, intact, noRexcode, attribute, newDescription, displayDesc, superscript, vipFree, subtitle, scheme, supportDrm); + } + toString() { + return 'KStreamInfo(quality=' + this.quality + ', format=' + this.format + ', description=' + this.description + ', errCode=' + this.errCode + ', limit=' + this.limit + ', needVip=' + this.needVip + ', needLogin=' + this.needLogin + ', intact=' + this.intact + ', noRexcode=' + this.noRexcode + ', attribute=' + this.attribute.toString() + ', newDescription=' + this.newDescription + ', displayDesc=' + this.displayDesc + ', superscript=' + this.superscript + ', vipFree=' + this.vipFree + ', subtitle=' + this.subtitle + ', scheme=' + this.scheme + ', supportDrm=' + this.supportDrm + ')'; + } + hashCode() { + var result = this.quality; + result = imul(result, 31) + getStringHashCode(this.format) | 0; + result = imul(result, 31) + getStringHashCode(this.description) | 0; + result = imul(result, 31) + this.errCode | 0; + result = imul(result, 31) + (this.limit == null ? 0 : this.limit.hashCode()) | 0; + result = imul(result, 31) + getBooleanHashCode(this.needVip) | 0; + result = imul(result, 31) + getBooleanHashCode(this.needLogin) | 0; + result = imul(result, 31) + getBooleanHashCode(this.intact) | 0; + result = imul(result, 31) + getBooleanHashCode(this.noRexcode) | 0; + result = imul(result, 31) + this.attribute.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.newDescription) | 0; + result = imul(result, 31) + getStringHashCode(this.displayDesc) | 0; + result = imul(result, 31) + getStringHashCode(this.superscript) | 0; + result = imul(result, 31) + getBooleanHashCode(this.vipFree) | 0; + result = imul(result, 31) + getStringHashCode(this.subtitle) | 0; + result = imul(result, 31) + (this.scheme == null ? 0 : this.scheme.hashCode()) | 0; + result = imul(result, 31) + getBooleanHashCode(this.supportDrm) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KStreamInfo)) + return false; + var tmp0_other_with_cast = other instanceof KStreamInfo ? other : THROW_CCE(); + if (!(this.quality === tmp0_other_with_cast.quality)) + return false; + if (!(this.format === tmp0_other_with_cast.format)) + return false; + if (!(this.description === tmp0_other_with_cast.description)) + return false; + if (!(this.errCode === tmp0_other_with_cast.errCode)) + return false; + if (!equals(this.limit, tmp0_other_with_cast.limit)) + return false; + if (!(this.needVip === tmp0_other_with_cast.needVip)) + return false; + if (!(this.needLogin === tmp0_other_with_cast.needLogin)) + return false; + if (!(this.intact === tmp0_other_with_cast.intact)) + return false; + if (!(this.noRexcode === tmp0_other_with_cast.noRexcode)) + return false; + if (!this.attribute.equals(tmp0_other_with_cast.attribute)) + return false; + if (!(this.newDescription === tmp0_other_with_cast.newDescription)) + return false; + if (!(this.displayDesc === tmp0_other_with_cast.displayDesc)) + return false; + if (!(this.superscript === tmp0_other_with_cast.superscript)) + return false; + if (!(this.vipFree === tmp0_other_with_cast.vipFree)) + return false; + if (!(this.subtitle === tmp0_other_with_cast.subtitle)) + return false; + if (!equals(this.scheme, tmp0_other_with_cast.scheme)) + return false; + if (!(this.supportDrm === tmp0_other_with_cast.supportDrm)) + return false; + return true; + } + static new_com_bapis_bilibili_playershared_KStreamInfo_lm0gui_k$(seen1, quality, format, description, errCode, limit, needVip, needLogin, intact, noRexcode, attribute, newDescription, displayDesc, superscript, vipFree, subtitle, scheme, supportDrm, serializationConstructorMarker) { + Companion_instance_140; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_127().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.quality = 0; + else + $this.quality = quality; + if (0 === (seen1 & 2)) + $this.format = ''; + else + $this.format = format; + if (0 === (seen1 & 4)) + $this.description = ''; + else + $this.description = description; + if (0 === (seen1 & 8)) + $this.errCode = 0; + else + $this.errCode = errCode; + if (0 === (seen1 & 16)) + $this.limit = null; + else + $this.limit = limit; + if (0 === (seen1 & 32)) + $this.needVip = false; + else + $this.needVip = needVip; + if (0 === (seen1 & 64)) + $this.needLogin = false; + else + $this.needLogin = needLogin; + if (0 === (seen1 & 128)) + $this.intact = false; + else + $this.intact = intact; + if (0 === (seen1 & 256)) + $this.noRexcode = false; + else + $this.noRexcode = noRexcode; + if (0 === (seen1 & 512)) + $this.attribute = new Long(0, 0); + else + $this.attribute = attribute; + if (0 === (seen1 & 1024)) + $this.newDescription = ''; + else + $this.newDescription = newDescription; + if (0 === (seen1 & 2048)) + $this.displayDesc = ''; + else + $this.displayDesc = displayDesc; + if (0 === (seen1 & 4096)) + $this.superscript = ''; + else + $this.superscript = superscript; + if (0 === (seen1 & 8192)) + $this.vipFree = false; + else + $this.vipFree = vipFree; + if (0 === (seen1 & 16384)) + $this.subtitle = ''; + else + $this.subtitle = subtitle; + if (0 === (seen1 & 32768)) + $this.scheme = null; + else + $this.scheme = scheme; + if (0 === (seen1 & 65536)) + $this.supportDrm = false; + else + $this.supportDrm = supportDrm; + return $this; + } + } + class Companion_141 { + constructor() { + Companion_instance_141 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KScheme$KActionType$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KScheme$KActionType$Companion$_anonymous__sueum0); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_29(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.playershared.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KActionType_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.playershared.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KActionType with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_29(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_128 { + constructor() { + $serializer_instance_128 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.playershared.KScheme.KActionType', 3); + tmp0_serialDesc.addElement_5pzumi_k$('UNKNOWN', false); + tmp0_serialDesc.addElement_5pzumi_k$('SHOW_TOAST', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_29()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_1f8043_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_1f8043_k$(encoder, value instanceof KActionType ? value : THROW_CCE()); + } + } + class KActionType extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_142 { + constructor() { + this.targetPath = '/bilibili.playershared.Scheme'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_129(); + } + } + class $serializer_129 { + constructor() { + $serializer_instance_129 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.playershared.KScheme', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('actionType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('toast', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KScheme.new_com_bapis_bilibili_playershared_KScheme_uqyv5i_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_fezz8n_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.actionType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.actionType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.toast === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.toast); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_fezz8n_k$(encoder, value instanceof KScheme ? value : THROW_CCE()); + } + } + class KScheme { + constructor(actionType, toast) { + Companion_instance_142; + actionType = actionType === VOID ? 0 : actionType; + toast = toast === VOID ? '' : toast; + this.actionType = actionType; + this.toast = toast; + } + get_actionType_agb5zt_k$() { + return this.actionType; + } + get_toast_iz6iv2_k$() { + return this.toast; + } + actionTypeEnum() { + return Companion_getInstance_141().fromValue(this.actionType); + } + component1_7eebsc_k$() { + return this.actionType; + } + component2_7eebsb_k$() { + return this.toast; + } + copy_xhhsuv_k$(actionType, toast) { + return new KScheme(actionType, toast); + } + copy(actionType, toast, $super) { + actionType = actionType === VOID ? this.actionType : actionType; + toast = toast === VOID ? this.toast : toast; + return this.copy_xhhsuv_k$(actionType, toast); + } + toString() { + return 'KScheme(actionType=' + this.actionType + ', toast=' + this.toast + ')'; + } + hashCode() { + var result = this.actionType; + result = imul(result, 31) + getStringHashCode(this.toast) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KScheme)) + return false; + var tmp0_other_with_cast = other instanceof KScheme ? other : THROW_CCE(); + if (!(this.actionType === tmp0_other_with_cast.actionType)) + return false; + if (!(this.toast === tmp0_other_with_cast.toast)) + return false; + return true; + } + static new_com_bapis_bilibili_playershared_KScheme_uqyv5i_k$(seen1, actionType, toast, serializationConstructorMarker) { + Companion_instance_142; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_129().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.actionType = 0; + else + $this.actionType = actionType; + if (0 === (seen1 & 2)) + $this.toast = ''; + else + $this.toast = toast; + return $this; + } + } + class Companion_143 { + constructor() { + this.targetPath = '/bilibili.playershared.StreamLimit'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_130(); + } + } + class $serializer_130 { + constructor() { + $serializer_instance_130 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.playershared.KStreamLimit', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('uri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('msg', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KStreamLimit.new_com_bapis_bilibili_playershared_KStreamLimit_ksj0i4_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_sg1up9_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.uri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.uri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.msg === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.msg); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_sg1up9_k$(encoder, value instanceof KStreamLimit ? value : THROW_CCE()); + } + } + class KStreamLimit { + constructor(title, uri, msg) { + Companion_instance_143; + title = title === VOID ? '' : title; + uri = uri === VOID ? '' : uri; + msg = msg === VOID ? '' : msg; + this.title = title; + this.uri = uri; + this.msg = msg; + } + get_title_iz32un_k$() { + return this.title; + } + get_uri_18iuil_k$() { + return this.uri; + } + get_msg_18j0fc_k$() { + return this.msg; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.uri; + } + component3_7eebsa_k$() { + return this.msg; + } + copy_nc7k0r_k$(title, uri, msg) { + return new KStreamLimit(title, uri, msg); + } + copy(title, uri, msg, $super) { + title = title === VOID ? this.title : title; + uri = uri === VOID ? this.uri : uri; + msg = msg === VOID ? this.msg : msg; + return this.copy_nc7k0r_k$(title, uri, msg); + } + toString() { + return 'KStreamLimit(title=' + this.title + ', uri=' + this.uri + ', msg=' + this.msg + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.uri) | 0; + result = imul(result, 31) + getStringHashCode(this.msg) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KStreamLimit)) + return false; + var tmp0_other_with_cast = other instanceof KStreamLimit ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.uri === tmp0_other_with_cast.uri)) + return false; + if (!(this.msg === tmp0_other_with_cast.msg)) + return false; + return true; + } + static new_com_bapis_bilibili_playershared_KStreamLimit_ksj0i4_k$(seen1, title, uri, msg, serializationConstructorMarker) { + Companion_instance_143; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_130().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.uri = ''; + else + $this.uri = uri; + if (0 === (seen1 & 4)) + $this.msg = ''; + else + $this.msg = msg; + return $this; + } + } + class Companion_144 { + constructor() { + Companion_instance_144 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, new ArrayListSerializer(StringSerializer_getInstance()), null, null, null, null, null, null, null, null, null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.playershared.DashVideo'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_131(); + } + } + class $serializer_131 { + constructor() { + $serializer_instance_131 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.playershared.KDashVideo', this, 12); + tmp0_serialDesc.addElement_5pzumi_k$('baseUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('backupUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('bandwidth', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('codecid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('md5', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('size', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('audioId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('noRexcode', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('frameRate', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('width', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('height', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('widevinePssh', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_144().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), tmp0_cached[1], IntSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), BooleanSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = 0; + var tmp7_local3 = 0; + var tmp8_local4 = null; + var tmp9_local5 = new Long(0, 0); + var tmp10_local6 = 0; + var tmp11_local7 = false; + var tmp12_local8 = null; + var tmp13_local9 = 0; + var tmp14_local10 = 0; + var tmp15_local11 = null; + var tmp16_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp17_cached = Companion_getInstance_144().$childSerializers_1; + if (tmp16_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp16_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp17_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp16_input.decodeLongElement_994anb_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp16_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + } else + while (tmp1_flag) { + tmp2_index = tmp16_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp16_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp17_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp16_input.decodeLongElement_994anb_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp16_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp16_input.endStructure_1xqz0n_k$(tmp0_desc); + return KDashVideo_0.new_com_bapis_bilibili_playershared_KDashVideo_da929l_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, null); + } + serialize_uxzbgh_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_144().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.baseUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.baseUrl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !equals(value.backupUrl, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 1, tmp2_cached[1], value.backupUrl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.bandwidth === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.bandwidth); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.codecid === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 3, value.codecid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.md5 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.md5); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !value.size.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 5, value.size); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.audioId === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 6, value.audioId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.noRexcode === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 7, value.noRexcode); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.frameRate === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 8, value.frameRate); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.width === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 9, value.width); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.height === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 10, value.height); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.widevinePssh === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 11, value.widevinePssh); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_uxzbgh_k$(encoder, value instanceof KDashVideo_0 ? value : THROW_CCE()); + } + } + class KDashVideo_0 { + constructor(baseUrl, backupUrl, bandwidth, codecid, md5, size, audioId, noRexcode, frameRate, width, height, widevinePssh) { + Companion_getInstance_144(); + baseUrl = baseUrl === VOID ? '' : baseUrl; + backupUrl = backupUrl === VOID ? emptyList() : backupUrl; + bandwidth = bandwidth === VOID ? 0 : bandwidth; + codecid = codecid === VOID ? 0 : codecid; + md5 = md5 === VOID ? '' : md5; + size = size === VOID ? new Long(0, 0) : size; + audioId = audioId === VOID ? 0 : audioId; + noRexcode = noRexcode === VOID ? false : noRexcode; + frameRate = frameRate === VOID ? '' : frameRate; + width = width === VOID ? 0 : width; + height = height === VOID ? 0 : height; + widevinePssh = widevinePssh === VOID ? '' : widevinePssh; + this.baseUrl = baseUrl; + this.backupUrl = backupUrl; + this.bandwidth = bandwidth; + this.codecid = codecid; + this.md5 = md5; + this.size = size; + this.audioId = audioId; + this.noRexcode = noRexcode; + this.frameRate = frameRate; + this.width = width; + this.height = height; + this.widevinePssh = widevinePssh; + } + get_baseUrl_48hdl7_k$() { + return this.baseUrl; + } + get_backupUrl_uxgjac_k$() { + return this.backupUrl; + } + get_bandwidth_nzufi0_k$() { + return this.bandwidth; + } + get_codecid_guazew_k$() { + return this.codecid; + } + get_md5_18j0tn_k$() { + return this.md5; + } + get_size_woubt6_k$() { + return this.size; + } + get_audioId_9o52l4_k$() { + return this.audioId; + } + get_noRexcode_yihxnc_k$() { + return this.noRexcode; + } + get_frameRate_hj1ah0_k$() { + return this.frameRate; + } + get_width_j0q4yl_k$() { + return this.width; + } + get_height_e7t92o_k$() { + return this.height; + } + get_widevinePssh_2h3fr6_k$() { + return this.widevinePssh; + } + component1_7eebsc_k$() { + return this.baseUrl; + } + component2_7eebsb_k$() { + return this.backupUrl; + } + component3_7eebsa_k$() { + return this.bandwidth; + } + component4_7eebs9_k$() { + return this.codecid; + } + component5_7eebs8_k$() { + return this.md5; + } + component6_7eebs7_k$() { + return this.size; + } + component7_7eebs6_k$() { + return this.audioId; + } + component8_7eebs5_k$() { + return this.noRexcode; + } + component9_7eebs4_k$() { + return this.frameRate; + } + component10_gazzfo_k$() { + return this.width; + } + component11_gazzfn_k$() { + return this.height; + } + component12_gazzfm_k$() { + return this.widevinePssh; + } + copy_tfb26_k$(baseUrl, backupUrl, bandwidth, codecid, md5, size, audioId, noRexcode, frameRate, width, height, widevinePssh) { + return new KDashVideo_0(baseUrl, backupUrl, bandwidth, codecid, md5, size, audioId, noRexcode, frameRate, width, height, widevinePssh); + } + copy(baseUrl, backupUrl, bandwidth, codecid, md5, size, audioId, noRexcode, frameRate, width, height, widevinePssh, $super) { + baseUrl = baseUrl === VOID ? this.baseUrl : baseUrl; + backupUrl = backupUrl === VOID ? this.backupUrl : backupUrl; + bandwidth = bandwidth === VOID ? this.bandwidth : bandwidth; + codecid = codecid === VOID ? this.codecid : codecid; + md5 = md5 === VOID ? this.md5 : md5; + size = size === VOID ? this.size : size; + audioId = audioId === VOID ? this.audioId : audioId; + noRexcode = noRexcode === VOID ? this.noRexcode : noRexcode; + frameRate = frameRate === VOID ? this.frameRate : frameRate; + width = width === VOID ? this.width : width; + height = height === VOID ? this.height : height; + widevinePssh = widevinePssh === VOID ? this.widevinePssh : widevinePssh; + return this.copy_tfb26_k$(baseUrl, backupUrl, bandwidth, codecid, md5, size, audioId, noRexcode, frameRate, width, height, widevinePssh); + } + toString() { + return 'KDashVideo(baseUrl=' + this.baseUrl + ', backupUrl=' + this.backupUrl + ', bandwidth=' + this.bandwidth + ', codecid=' + this.codecid + ', md5=' + this.md5 + ', size=' + this.size.toString() + ', audioId=' + this.audioId + ', noRexcode=' + this.noRexcode + ', frameRate=' + this.frameRate + ', width=' + this.width + ', height=' + this.height + ', widevinePssh=' + this.widevinePssh + ')'; + } + hashCode() { + var result = getStringHashCode(this.baseUrl); + result = imul(result, 31) + hashCode(this.backupUrl) | 0; + result = imul(result, 31) + this.bandwidth | 0; + result = imul(result, 31) + this.codecid | 0; + result = imul(result, 31) + getStringHashCode(this.md5) | 0; + result = imul(result, 31) + this.size.hashCode() | 0; + result = imul(result, 31) + this.audioId | 0; + result = imul(result, 31) + getBooleanHashCode(this.noRexcode) | 0; + result = imul(result, 31) + getStringHashCode(this.frameRate) | 0; + result = imul(result, 31) + this.width | 0; + result = imul(result, 31) + this.height | 0; + result = imul(result, 31) + getStringHashCode(this.widevinePssh) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KDashVideo_0)) + return false; + var tmp0_other_with_cast = other instanceof KDashVideo_0 ? other : THROW_CCE(); + if (!(this.baseUrl === tmp0_other_with_cast.baseUrl)) + return false; + if (!equals(this.backupUrl, tmp0_other_with_cast.backupUrl)) + return false; + if (!(this.bandwidth === tmp0_other_with_cast.bandwidth)) + return false; + if (!(this.codecid === tmp0_other_with_cast.codecid)) + return false; + if (!(this.md5 === tmp0_other_with_cast.md5)) + return false; + if (!this.size.equals(tmp0_other_with_cast.size)) + return false; + if (!(this.audioId === tmp0_other_with_cast.audioId)) + return false; + if (!(this.noRexcode === tmp0_other_with_cast.noRexcode)) + return false; + if (!(this.frameRate === tmp0_other_with_cast.frameRate)) + return false; + if (!(this.width === tmp0_other_with_cast.width)) + return false; + if (!(this.height === tmp0_other_with_cast.height)) + return false; + if (!(this.widevinePssh === tmp0_other_with_cast.widevinePssh)) + return false; + return true; + } + static new_com_bapis_bilibili_playershared_KDashVideo_da929l_k$(seen1, baseUrl, backupUrl, bandwidth, codecid, md5, size, audioId, noRexcode, frameRate, width, height, widevinePssh, serializationConstructorMarker) { + Companion_getInstance_144(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_131().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.baseUrl = ''; + else + $this.baseUrl = baseUrl; + if (0 === (seen1 & 2)) + $this.backupUrl = emptyList(); + else + $this.backupUrl = backupUrl; + if (0 === (seen1 & 4)) + $this.bandwidth = 0; + else + $this.bandwidth = bandwidth; + if (0 === (seen1 & 8)) + $this.codecid = 0; + else + $this.codecid = codecid; + if (0 === (seen1 & 16)) + $this.md5 = ''; + else + $this.md5 = md5; + if (0 === (seen1 & 32)) + $this.size = new Long(0, 0); + else + $this.size = size; + if (0 === (seen1 & 64)) + $this.audioId = 0; + else + $this.audioId = audioId; + if (0 === (seen1 & 128)) + $this.noRexcode = false; + else + $this.noRexcode = noRexcode; + if (0 === (seen1 & 256)) + $this.frameRate = ''; + else + $this.frameRate = frameRate; + if (0 === (seen1 & 512)) + $this.width = 0; + else + $this.width = width; + if (0 === (seen1 & 1024)) + $this.height = 0; + else + $this.height = height; + if (0 === (seen1 & 2048)) + $this.widevinePssh = ''; + else + $this.widevinePssh = widevinePssh; + return $this; + } + } + class Companion_145 { + constructor() { + Companion_instance_145 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer($serializer_getInstance_133()), new ArrayListSerializer($serializer_getInstance_133())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.playershared.ResponseDash'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_132(); + } + } + class $serializer_132 { + constructor() { + $serializer_instance_132 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.playershared.KResponseDash', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('video', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('audio', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_145().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0], tmp0_cached[1]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp7_cached = Companion_getInstance_145().$childSerializers_1; + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp7_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp7_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KResponseDash.new_com_bapis_bilibili_playershared_KResponseDash_mgiim7_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_qszit1_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_145().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.video, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.video); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !equals(value.audio, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 1, tmp2_cached[1], value.audio); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_qszit1_k$(encoder, value instanceof KResponseDash ? value : THROW_CCE()); + } + } + class KResponseDash { + constructor(video, audio) { + Companion_getInstance_145(); + video = video === VOID ? emptyList() : video; + audio = audio === VOID ? emptyList() : audio; + this.video = video; + this.audio = audio; + } + get_video_j06c0i_k$() { + return this.video; + } + get_audio_ioubhp_k$() { + return this.audio; + } + component1_7eebsc_k$() { + return this.video; + } + component2_7eebsb_k$() { + return this.audio; + } + copy_lf2w1f_k$(video, audio) { + return new KResponseDash(video, audio); + } + copy(video, audio, $super) { + video = video === VOID ? this.video : video; + audio = audio === VOID ? this.audio : audio; + return this.copy_lf2w1f_k$(video, audio); + } + toString() { + return 'KResponseDash(video=' + this.video + ', audio=' + this.audio + ')'; + } + hashCode() { + var result = hashCode(this.video); + result = imul(result, 31) + hashCode(this.audio) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KResponseDash)) + return false; + var tmp0_other_with_cast = other instanceof KResponseDash ? other : THROW_CCE(); + if (!equals(this.video, tmp0_other_with_cast.video)) + return false; + if (!equals(this.audio, tmp0_other_with_cast.audio)) + return false; + return true; + } + static new_com_bapis_bilibili_playershared_KResponseDash_mgiim7_k$(seen1, video, audio, serializationConstructorMarker) { + Companion_getInstance_145(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_132().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.video = emptyList(); + else + $this.video = video; + if (0 === (seen1 & 2)) + $this.audio = emptyList(); + else + $this.audio = audio; + return $this; + } + } + class Companion_146 { + constructor() { + Companion_instance_146 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, new ArrayListSerializer(StringSerializer_getInstance()), null, null, null, null, null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.playershared.DashItem'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_133(); + } + } + class $serializer_133 { + constructor() { + $serializer_instance_133 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.playershared.KDashItem', this, 9); + tmp0_serialDesc.addElement_5pzumi_k$('id', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('baseUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('backupUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('bandwidth', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('codecid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('md5', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('size', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('frameRate', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('widevinePssh', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_146().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), StringSerializer_getInstance(), tmp0_cached[2], IntSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = 0; + var tmp8_local4 = 0; + var tmp9_local5 = null; + var tmp10_local6 = new Long(0, 0); + var tmp11_local7 = null; + var tmp12_local8 = null; + var tmp13_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp14_cached = Companion_getInstance_146().$childSerializers_1; + if (tmp13_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp13_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp13_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp14_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp13_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp13_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + } else + while (tmp1_flag) { + tmp2_index = tmp13_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp13_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp13_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp14_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp13_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp13_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp13_input.endStructure_1xqz0n_k$(tmp0_desc); + return KDashItem.new_com_bapis_bilibili_playershared_KDashItem_jxzo5y_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, null); + } + serialize_driwvt_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_146().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.id === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.id); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.baseUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.baseUrl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !equals(value.backupUrl, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 2, tmp2_cached[2], value.backupUrl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.bandwidth === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 3, value.bandwidth); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.codecid === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 4, value.codecid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.md5 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.md5); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !value.size.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 6, value.size); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.frameRate === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.frameRate); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.widevinePssh === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 8, value.widevinePssh); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_driwvt_k$(encoder, value instanceof KDashItem ? value : THROW_CCE()); + } + } + class KDashItem { + constructor(id, baseUrl, backupUrl, bandwidth, codecid, md5, size, frameRate, widevinePssh) { + Companion_getInstance_146(); + id = id === VOID ? 0 : id; + baseUrl = baseUrl === VOID ? '' : baseUrl; + backupUrl = backupUrl === VOID ? emptyList() : backupUrl; + bandwidth = bandwidth === VOID ? 0 : bandwidth; + codecid = codecid === VOID ? 0 : codecid; + md5 = md5 === VOID ? '' : md5; + size = size === VOID ? new Long(0, 0) : size; + frameRate = frameRate === VOID ? '' : frameRate; + widevinePssh = widevinePssh === VOID ? '' : widevinePssh; + this.id = id; + this.baseUrl = baseUrl; + this.backupUrl = backupUrl; + this.bandwidth = bandwidth; + this.codecid = codecid; + this.md5 = md5; + this.size = size; + this.frameRate = frameRate; + this.widevinePssh = widevinePssh; + } + get_id_kntnx8_k$() { + return this.id; + } + get_baseUrl_48hdl7_k$() { + return this.baseUrl; + } + get_backupUrl_uxgjac_k$() { + return this.backupUrl; + } + get_bandwidth_nzufi0_k$() { + return this.bandwidth; + } + get_codecid_guazew_k$() { + return this.codecid; + } + get_md5_18j0tn_k$() { + return this.md5; + } + get_size_woubt6_k$() { + return this.size; + } + get_frameRate_hj1ah0_k$() { + return this.frameRate; + } + get_widevinePssh_2h3fr6_k$() { + return this.widevinePssh; + } + component1_7eebsc_k$() { + return this.id; + } + component2_7eebsb_k$() { + return this.baseUrl; + } + component3_7eebsa_k$() { + return this.backupUrl; + } + component4_7eebs9_k$() { + return this.bandwidth; + } + component5_7eebs8_k$() { + return this.codecid; + } + component6_7eebs7_k$() { + return this.md5; + } + component7_7eebs6_k$() { + return this.size; + } + component8_7eebs5_k$() { + return this.frameRate; + } + component9_7eebs4_k$() { + return this.widevinePssh; + } + copy_gpyr99_k$(id, baseUrl, backupUrl, bandwidth, codecid, md5, size, frameRate, widevinePssh) { + return new KDashItem(id, baseUrl, backupUrl, bandwidth, codecid, md5, size, frameRate, widevinePssh); + } + copy(id, baseUrl, backupUrl, bandwidth, codecid, md5, size, frameRate, widevinePssh, $super) { + id = id === VOID ? this.id : id; + baseUrl = baseUrl === VOID ? this.baseUrl : baseUrl; + backupUrl = backupUrl === VOID ? this.backupUrl : backupUrl; + bandwidth = bandwidth === VOID ? this.bandwidth : bandwidth; + codecid = codecid === VOID ? this.codecid : codecid; + md5 = md5 === VOID ? this.md5 : md5; + size = size === VOID ? this.size : size; + frameRate = frameRate === VOID ? this.frameRate : frameRate; + widevinePssh = widevinePssh === VOID ? this.widevinePssh : widevinePssh; + return this.copy_gpyr99_k$(id, baseUrl, backupUrl, bandwidth, codecid, md5, size, frameRate, widevinePssh); + } + toString() { + return 'KDashItem(id=' + this.id + ', baseUrl=' + this.baseUrl + ', backupUrl=' + this.backupUrl + ', bandwidth=' + this.bandwidth + ', codecid=' + this.codecid + ', md5=' + this.md5 + ', size=' + this.size.toString() + ', frameRate=' + this.frameRate + ', widevinePssh=' + this.widevinePssh + ')'; + } + hashCode() { + var result = this.id; + result = imul(result, 31) + getStringHashCode(this.baseUrl) | 0; + result = imul(result, 31) + hashCode(this.backupUrl) | 0; + result = imul(result, 31) + this.bandwidth | 0; + result = imul(result, 31) + this.codecid | 0; + result = imul(result, 31) + getStringHashCode(this.md5) | 0; + result = imul(result, 31) + this.size.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.frameRate) | 0; + result = imul(result, 31) + getStringHashCode(this.widevinePssh) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KDashItem)) + return false; + var tmp0_other_with_cast = other instanceof KDashItem ? other : THROW_CCE(); + if (!(this.id === tmp0_other_with_cast.id)) + return false; + if (!(this.baseUrl === tmp0_other_with_cast.baseUrl)) + return false; + if (!equals(this.backupUrl, tmp0_other_with_cast.backupUrl)) + return false; + if (!(this.bandwidth === tmp0_other_with_cast.bandwidth)) + return false; + if (!(this.codecid === tmp0_other_with_cast.codecid)) + return false; + if (!(this.md5 === tmp0_other_with_cast.md5)) + return false; + if (!this.size.equals(tmp0_other_with_cast.size)) + return false; + if (!(this.frameRate === tmp0_other_with_cast.frameRate)) + return false; + if (!(this.widevinePssh === tmp0_other_with_cast.widevinePssh)) + return false; + return true; + } + static new_com_bapis_bilibili_playershared_KDashItem_jxzo5y_k$(seen1, id, baseUrl, backupUrl, bandwidth, codecid, md5, size, frameRate, widevinePssh, serializationConstructorMarker) { + Companion_getInstance_146(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_133().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.id = 0; + else + $this.id = id; + if (0 === (seen1 & 2)) + $this.baseUrl = ''; + else + $this.baseUrl = baseUrl; + if (0 === (seen1 & 4)) + $this.backupUrl = emptyList(); + else + $this.backupUrl = backupUrl; + if (0 === (seen1 & 8)) + $this.bandwidth = 0; + else + $this.bandwidth = bandwidth; + if (0 === (seen1 & 16)) + $this.codecid = 0; + else + $this.codecid = codecid; + if (0 === (seen1 & 32)) + $this.md5 = ''; + else + $this.md5 = md5; + if (0 === (seen1 & 64)) + $this.size = new Long(0, 0); + else + $this.size = size; + if (0 === (seen1 & 128)) + $this.frameRate = ''; + else + $this.frameRate = frameRate; + if (0 === (seen1 & 256)) + $this.widevinePssh = ''; + else + $this.widevinePssh = widevinePssh; + return $this; + } + } + class Companion_147 { + constructor() { + Companion_instance_147 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, null, new ArrayListSerializer(StringSerializer_getInstance()), null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.playershared.ResponseUrl'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_134(); + } + } + class $serializer_134 { + constructor() { + $serializer_instance_134 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.playershared.KResponseUrl', this, 6); + tmp0_serialDesc.addElement_5pzumi_k$('order', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('length', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('size', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('url', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('backupUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('md5', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_147().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), tmp0_cached[4], StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = new Long(0, 0); + var tmp6_local2 = new Long(0, 0); + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp11_cached = Companion_getInstance_147().$childSerializers_1; + if (tmp10_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp10_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 4, tmp11_cached[4], tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + } else + while (tmp1_flag) { + tmp2_index = tmp10_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp10_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 4, tmp11_cached[4], tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp10_input.endStructure_1xqz0n_k$(tmp0_desc); + return KResponseUrl.new_com_bapis_bilibili_playershared_KResponseUrl_osqdhr_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); + } + serialize_9wj1qe_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_147().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.order === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.order); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.length.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.length); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.size.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.size); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.url === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.url); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !equals(value.backupUrl, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 4, tmp2_cached[4], value.backupUrl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.md5 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.md5); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_9wj1qe_k$(encoder, value instanceof KResponseUrl ? value : THROW_CCE()); + } + } + class KResponseUrl { + constructor(order, length, size, url, backupUrl, md5) { + Companion_getInstance_147(); + order = order === VOID ? 0 : order; + length = length === VOID ? new Long(0, 0) : length; + size = size === VOID ? new Long(0, 0) : size; + url = url === VOID ? '' : url; + backupUrl = backupUrl === VOID ? emptyList() : backupUrl; + md5 = md5 === VOID ? '' : md5; + this.order = order; + this.length = length; + this.size = size; + this.url = url; + this.backupUrl = backupUrl; + this.md5 = md5; + } + get_order_iwhiqt_k$() { + return this.order; + } + get_length_g42xv3_k$() { + return this.length; + } + get_size_woubt6_k$() { + return this.size; + } + get_url_18iuii_k$() { + return this.url; + } + get_backupUrl_uxgjac_k$() { + return this.backupUrl; + } + get_md5_18j0tn_k$() { + return this.md5; + } + component1_7eebsc_k$() { + return this.order; + } + component2_7eebsb_k$() { + return this.length; + } + component3_7eebsa_k$() { + return this.size; + } + component4_7eebs9_k$() { + return this.url; + } + component5_7eebs8_k$() { + return this.backupUrl; + } + component6_7eebs7_k$() { + return this.md5; + } + copy_p19ji9_k$(order, length, size, url, backupUrl, md5) { + return new KResponseUrl(order, length, size, url, backupUrl, md5); + } + copy(order, length, size, url, backupUrl, md5, $super) { + order = order === VOID ? this.order : order; + length = length === VOID ? this.length : length; + size = size === VOID ? this.size : size; + url = url === VOID ? this.url : url; + backupUrl = backupUrl === VOID ? this.backupUrl : backupUrl; + md5 = md5 === VOID ? this.md5 : md5; + return this.copy_p19ji9_k$(order, length, size, url, backupUrl, md5); + } + toString() { + return 'KResponseUrl(order=' + this.order + ', length=' + this.length.toString() + ', size=' + this.size.toString() + ', url=' + this.url + ', backupUrl=' + this.backupUrl + ', md5=' + this.md5 + ')'; + } + hashCode() { + var result = this.order; + result = imul(result, 31) + this.length.hashCode() | 0; + result = imul(result, 31) + this.size.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.url) | 0; + result = imul(result, 31) + hashCode(this.backupUrl) | 0; + result = imul(result, 31) + getStringHashCode(this.md5) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KResponseUrl)) + return false; + var tmp0_other_with_cast = other instanceof KResponseUrl ? other : THROW_CCE(); + if (!(this.order === tmp0_other_with_cast.order)) + return false; + if (!this.length.equals(tmp0_other_with_cast.length)) + return false; + if (!this.size.equals(tmp0_other_with_cast.size)) + return false; + if (!(this.url === tmp0_other_with_cast.url)) + return false; + if (!equals(this.backupUrl, tmp0_other_with_cast.backupUrl)) + return false; + if (!(this.md5 === tmp0_other_with_cast.md5)) + return false; + return true; + } + static new_com_bapis_bilibili_playershared_KResponseUrl_osqdhr_k$(seen1, order, length, size, url, backupUrl, md5, serializationConstructorMarker) { + Companion_getInstance_147(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_134().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.order = 0; + else + $this.order = order; + if (0 === (seen1 & 2)) + $this.length = new Long(0, 0); + else + $this.length = length; + if (0 === (seen1 & 4)) + $this.size = new Long(0, 0); + else + $this.size = size; + if (0 === (seen1 & 8)) + $this.url = ''; + else + $this.url = url; + if (0 === (seen1 & 16)) + $this.backupUrl = emptyList(); + else + $this.backupUrl = backupUrl; + if (0 === (seen1 & 32)) + $this.md5 = ''; + else + $this.md5 = md5; + return $this; + } + } + class Companion_148 { + constructor() { + this.targetPath = '/bilibili.playershared.PlayArc'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_135(); + } + } + class $serializer_135 { + constructor() { + $serializer_instance_135 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.playershared.KPlayArc', this, 11); + tmp0_serialDesc.addElement_5pzumi_k$('videoType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('aid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('cid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('drmTechType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('arcType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('interaction', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('dimension', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('duration', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('isPreview', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('watchTimeLength', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('durationMs', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), get_nullable($serializer_getInstance_137()), get_nullable($serializer_getInstance_136()), LongSerializer_getInstance(), BooleanSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = new Long(0, 0); + var tmp6_local2 = new Long(0, 0); + var tmp7_local3 = 0; + var tmp8_local4 = 0; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = new Long(0, 0); + var tmp12_local8 = false; + var tmp13_local9 = new Long(0, 0); + var tmp14_local10 = new Long(0, 0); + var tmp15_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp15_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_137(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_136(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp15_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + } else + while (tmp1_flag) { + tmp2_index = tmp15_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_137(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_136(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp15_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp15_input.endStructure_1xqz0n_k$(tmp0_desc); + return KPlayArc.new_com_bapis_bilibili_playershared_KPlayArc_rmy6v3_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, null); + } + serialize_tkcooa_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.videoType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.videoType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.aid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.aid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.cid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.cid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.drmTechType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 3, value.drmTechType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.arcType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 4, value.arcType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.interaction == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 5, $serializer_getInstance_137(), value.interaction); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.dimension == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 6, $serializer_getInstance_136(), value.dimension); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !value.duration.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 7, value.duration); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.isPreview === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 8, value.isPreview); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !value.watchTimeLength.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 9, value.watchTimeLength); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !value.durationMs.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 10, value.durationMs); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_tkcooa_k$(encoder, value instanceof KPlayArc ? value : THROW_CCE()); + } + } + class KPlayArc { + constructor(videoType, aid, cid, drmTechType, arcType, interaction, dimension, duration, isPreview, watchTimeLength, durationMs) { + Companion_instance_148; + videoType = videoType === VOID ? 0 : videoType; + aid = aid === VOID ? new Long(0, 0) : aid; + cid = cid === VOID ? new Long(0, 0) : cid; + drmTechType = drmTechType === VOID ? 0 : drmTechType; + arcType = arcType === VOID ? 0 : arcType; + interaction = interaction === VOID ? null : interaction; + dimension = dimension === VOID ? null : dimension; + duration = duration === VOID ? new Long(0, 0) : duration; + isPreview = isPreview === VOID ? false : isPreview; + watchTimeLength = watchTimeLength === VOID ? new Long(0, 0) : watchTimeLength; + durationMs = durationMs === VOID ? new Long(0, 0) : durationMs; + this.videoType = videoType; + this.aid = aid; + this.cid = cid; + this.drmTechType = drmTechType; + this.arcType = arcType; + this.interaction = interaction; + this.dimension = dimension; + this.duration = duration; + this.isPreview = isPreview; + this.watchTimeLength = watchTimeLength; + this.durationMs = durationMs; + } + get_videoType_uk4t64_k$() { + return this.videoType; + } + get_aid_18j9kd_k$() { + return this.aid; + } + get_cid_18j82z_k$() { + return this.cid; + } + get_drmTechType_6ftsqi_k$() { + return this.drmTechType; + } + get_arcType_b46wql_k$() { + return this.arcType; + } + get_interaction_qmz8t3_k$() { + return this.interaction; + } + get_dimension_9lf48z_k$() { + return this.dimension; + } + get_duration_6a6kpp_k$() { + return this.duration; + } + get_isPreview_6c3nmz_k$() { + return this.isPreview; + } + get_watchTimeLength_3hagk9_k$() { + return this.watchTimeLength; + } + get_durationMs_6ybxf_k$() { + return this.durationMs; + } + videoTypeEnum() { + return Companion_getInstance_129().fromValue(this.videoType); + } + drmTechTypeEnum() { + return Companion_getInstance_128().fromValue(this.drmTechType); + } + arcTypeEnum() { + return Companion_getInstance_127().fromValue(this.arcType); + } + component1_7eebsc_k$() { + return this.videoType; + } + component2_7eebsb_k$() { + return this.aid; + } + component3_7eebsa_k$() { + return this.cid; + } + component4_7eebs9_k$() { + return this.drmTechType; + } + component5_7eebs8_k$() { + return this.arcType; + } + component6_7eebs7_k$() { + return this.interaction; + } + component7_7eebs6_k$() { + return this.dimension; + } + component8_7eebs5_k$() { + return this.duration; + } + component9_7eebs4_k$() { + return this.isPreview; + } + component10_gazzfo_k$() { + return this.watchTimeLength; + } + component11_gazzfn_k$() { + return this.durationMs; + } + copy_d1mdjk_k$(videoType, aid, cid, drmTechType, arcType, interaction, dimension, duration, isPreview, watchTimeLength, durationMs) { + return new KPlayArc(videoType, aid, cid, drmTechType, arcType, interaction, dimension, duration, isPreview, watchTimeLength, durationMs); + } + copy(videoType, aid, cid, drmTechType, arcType, interaction, dimension, duration, isPreview, watchTimeLength, durationMs, $super) { + videoType = videoType === VOID ? this.videoType : videoType; + aid = aid === VOID ? this.aid : aid; + cid = cid === VOID ? this.cid : cid; + drmTechType = drmTechType === VOID ? this.drmTechType : drmTechType; + arcType = arcType === VOID ? this.arcType : arcType; + interaction = interaction === VOID ? this.interaction : interaction; + dimension = dimension === VOID ? this.dimension : dimension; + duration = duration === VOID ? this.duration : duration; + isPreview = isPreview === VOID ? this.isPreview : isPreview; + watchTimeLength = watchTimeLength === VOID ? this.watchTimeLength : watchTimeLength; + durationMs = durationMs === VOID ? this.durationMs : durationMs; + return this.copy_d1mdjk_k$(videoType, aid, cid, drmTechType, arcType, interaction, dimension, duration, isPreview, watchTimeLength, durationMs); + } + toString() { + return 'KPlayArc(videoType=' + this.videoType + ', aid=' + this.aid.toString() + ', cid=' + this.cid.toString() + ', drmTechType=' + this.drmTechType + ', arcType=' + this.arcType + ', interaction=' + this.interaction + ', dimension=' + this.dimension + ', duration=' + this.duration.toString() + ', isPreview=' + this.isPreview + ', watchTimeLength=' + this.watchTimeLength.toString() + ', durationMs=' + this.durationMs.toString() + ')'; + } + hashCode() { + var result = this.videoType; + result = imul(result, 31) + this.aid.hashCode() | 0; + result = imul(result, 31) + this.cid.hashCode() | 0; + result = imul(result, 31) + this.drmTechType | 0; + result = imul(result, 31) + this.arcType | 0; + result = imul(result, 31) + (this.interaction == null ? 0 : this.interaction.hashCode()) | 0; + result = imul(result, 31) + (this.dimension == null ? 0 : this.dimension.hashCode()) | 0; + result = imul(result, 31) + this.duration.hashCode() | 0; + result = imul(result, 31) + getBooleanHashCode(this.isPreview) | 0; + result = imul(result, 31) + this.watchTimeLength.hashCode() | 0; + result = imul(result, 31) + this.durationMs.hashCode() | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KPlayArc)) + return false; + var tmp0_other_with_cast = other instanceof KPlayArc ? other : THROW_CCE(); + if (!(this.videoType === tmp0_other_with_cast.videoType)) + return false; + if (!this.aid.equals(tmp0_other_with_cast.aid)) + return false; + if (!this.cid.equals(tmp0_other_with_cast.cid)) + return false; + if (!(this.drmTechType === tmp0_other_with_cast.drmTechType)) + return false; + if (!(this.arcType === tmp0_other_with_cast.arcType)) + return false; + if (!equals(this.interaction, tmp0_other_with_cast.interaction)) + return false; + if (!equals(this.dimension, tmp0_other_with_cast.dimension)) + return false; + if (!this.duration.equals(tmp0_other_with_cast.duration)) + return false; + if (!(this.isPreview === tmp0_other_with_cast.isPreview)) + return false; + if (!this.watchTimeLength.equals(tmp0_other_with_cast.watchTimeLength)) + return false; + if (!this.durationMs.equals(tmp0_other_with_cast.durationMs)) + return false; + return true; + } + static new_com_bapis_bilibili_playershared_KPlayArc_rmy6v3_k$(seen1, videoType, aid, cid, drmTechType, arcType, interaction, dimension, duration, isPreview, watchTimeLength, durationMs, serializationConstructorMarker) { + Companion_instance_148; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_135().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.videoType = 0; + else + $this.videoType = videoType; + if (0 === (seen1 & 2)) + $this.aid = new Long(0, 0); + else + $this.aid = aid; + if (0 === (seen1 & 4)) + $this.cid = new Long(0, 0); + else + $this.cid = cid; + if (0 === (seen1 & 8)) + $this.drmTechType = 0; + else + $this.drmTechType = drmTechType; + if (0 === (seen1 & 16)) + $this.arcType = 0; + else + $this.arcType = arcType; + if (0 === (seen1 & 32)) + $this.interaction = null; + else + $this.interaction = interaction; + if (0 === (seen1 & 64)) + $this.dimension = null; + else + $this.dimension = dimension; + if (0 === (seen1 & 128)) + $this.duration = new Long(0, 0); + else + $this.duration = duration; + if (0 === (seen1 & 256)) + $this.isPreview = false; + else + $this.isPreview = isPreview; + if (0 === (seen1 & 512)) + $this.watchTimeLength = new Long(0, 0); + else + $this.watchTimeLength = watchTimeLength; + if (0 === (seen1 & 1024)) + $this.durationMs = new Long(0, 0); + else + $this.durationMs = durationMs; + return $this; + } + } + class Companion_149 { + constructor() { + this.targetPath = '/bilibili.playershared.Dimension'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_136(); + } + } + class $serializer_136 { + constructor() { + $serializer_instance_136 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.playershared.KDimension', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('width', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('height', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('rotate', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = new Long(0, 0); + var tmp6_local2 = new Long(0, 0); + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KDimension.new_com_bapis_bilibili_playershared_KDimension_4gdmhk_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_a2ahtu_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.width.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.width); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.height.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.height); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.rotate.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.rotate); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_a2ahtu_k$(encoder, value instanceof KDimension ? value : THROW_CCE()); + } + } + class KDimension { + constructor(width, height, rotate) { + Companion_instance_149; + width = width === VOID ? new Long(0, 0) : width; + height = height === VOID ? new Long(0, 0) : height; + rotate = rotate === VOID ? new Long(0, 0) : rotate; + this.width = width; + this.height = height; + this.rotate = rotate; + } + get_width_j0q4yl_k$() { + return this.width; + } + get_height_e7t92o_k$() { + return this.height; + } + get_rotate_j3ybms_k$() { + return this.rotate; + } + component1_7eebsc_k$() { + return this.width; + } + component2_7eebsb_k$() { + return this.height; + } + component3_7eebsa_k$() { + return this.rotate; + } + copy_kj2gr5_k$(width, height, rotate) { + return new KDimension(width, height, rotate); + } + copy(width, height, rotate, $super) { + width = width === VOID ? this.width : width; + height = height === VOID ? this.height : height; + rotate = rotate === VOID ? this.rotate : rotate; + return this.copy_kj2gr5_k$(width, height, rotate); + } + toString() { + return 'KDimension(width=' + this.width.toString() + ', height=' + this.height.toString() + ', rotate=' + this.rotate.toString() + ')'; + } + hashCode() { + var result = this.width.hashCode(); + result = imul(result, 31) + this.height.hashCode() | 0; + result = imul(result, 31) + this.rotate.hashCode() | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KDimension)) + return false; + var tmp0_other_with_cast = other instanceof KDimension ? other : THROW_CCE(); + if (!this.width.equals(tmp0_other_with_cast.width)) + return false; + if (!this.height.equals(tmp0_other_with_cast.height)) + return false; + if (!this.rotate.equals(tmp0_other_with_cast.rotate)) + return false; + return true; + } + static new_com_bapis_bilibili_playershared_KDimension_4gdmhk_k$(seen1, width, height, rotate, serializationConstructorMarker) { + Companion_instance_149; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_136().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.width = new Long(0, 0); + else + $this.width = width; + if (0 === (seen1 & 2)) + $this.height = new Long(0, 0); + else + $this.height = height; + if (0 === (seen1 & 4)) + $this.rotate = new Long(0, 0); + else + $this.rotate = rotate; + return $this; + } + } + class Companion_150 { + constructor() { + this.targetPath = '/bilibili.playershared.Interaction'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_137(); + } + } + class $serializer_137 { + constructor() { + $serializer_instance_137 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.playershared.KInteraction', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('historyNode', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('graphVersion', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('msg', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('mark', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_138()), LongSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = new Long(0, 0); + var tmp6_local2 = null; + var tmp7_local3 = new Long(0, 0); + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_138(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_138(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KInteraction.new_com_bapis_bilibili_playershared_KInteraction_ixpzn9_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_okd2ne_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.historyNode == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_138(), value.historyNode); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.graphVersion.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.graphVersion); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.msg === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.msg); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !value.mark.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 3, value.mark); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_okd2ne_k$(encoder, value instanceof KInteraction ? value : THROW_CCE()); + } + } + class KInteraction { + constructor(historyNode, graphVersion, msg, mark) { + Companion_instance_150; + historyNode = historyNode === VOID ? null : historyNode; + graphVersion = graphVersion === VOID ? new Long(0, 0) : graphVersion; + msg = msg === VOID ? '' : msg; + mark = mark === VOID ? new Long(0, 0) : mark; + this.historyNode = historyNode; + this.graphVersion = graphVersion; + this.msg = msg; + this.mark = mark; + } + get_historyNode_jpocb1_k$() { + return this.historyNode; + } + get_graphVersion_v1l53h_k$() { + return this.graphVersion; + } + get_msg_18j0fc_k$() { + return this.msg; + } + get_mark_woqbrq_k$() { + return this.mark; + } + component1_7eebsc_k$() { + return this.historyNode; + } + component2_7eebsb_k$() { + return this.graphVersion; + } + component3_7eebsa_k$() { + return this.msg; + } + component4_7eebs9_k$() { + return this.mark; + } + copy_ygdxk9_k$(historyNode, graphVersion, msg, mark) { + return new KInteraction(historyNode, graphVersion, msg, mark); + } + copy(historyNode, graphVersion, msg, mark, $super) { + historyNode = historyNode === VOID ? this.historyNode : historyNode; + graphVersion = graphVersion === VOID ? this.graphVersion : graphVersion; + msg = msg === VOID ? this.msg : msg; + mark = mark === VOID ? this.mark : mark; + return this.copy_ygdxk9_k$(historyNode, graphVersion, msg, mark); + } + toString() { + return 'KInteraction(historyNode=' + this.historyNode + ', graphVersion=' + this.graphVersion.toString() + ', msg=' + this.msg + ', mark=' + this.mark.toString() + ')'; + } + hashCode() { + var result = this.historyNode == null ? 0 : this.historyNode.hashCode(); + result = imul(result, 31) + this.graphVersion.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.msg) | 0; + result = imul(result, 31) + this.mark.hashCode() | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KInteraction)) + return false; + var tmp0_other_with_cast = other instanceof KInteraction ? other : THROW_CCE(); + if (!equals(this.historyNode, tmp0_other_with_cast.historyNode)) + return false; + if (!this.graphVersion.equals(tmp0_other_with_cast.graphVersion)) + return false; + if (!(this.msg === tmp0_other_with_cast.msg)) + return false; + if (!this.mark.equals(tmp0_other_with_cast.mark)) + return false; + return true; + } + static new_com_bapis_bilibili_playershared_KInteraction_ixpzn9_k$(seen1, historyNode, graphVersion, msg, mark, serializationConstructorMarker) { + Companion_instance_150; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_137().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.historyNode = null; + else + $this.historyNode = historyNode; + if (0 === (seen1 & 2)) + $this.graphVersion = new Long(0, 0); + else + $this.graphVersion = graphVersion; + if (0 === (seen1 & 4)) + $this.msg = ''; + else + $this.msg = msg; + if (0 === (seen1 & 8)) + $this.mark = new Long(0, 0); + else + $this.mark = mark; + return $this; + } + } + class Companion_151 { + constructor() { + this.targetPath = '/bilibili.playershared.Node'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_138(); + } + } + class $serializer_138 { + constructor() { + $serializer_instance_138 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.playershared.KNode', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('nodeId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('cid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_local2 = new Long(0, 0); + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KNode.new_com_bapis_bilibili_playershared_KNode_fnroih_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_bn8ijo_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.nodeId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.nodeId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.cid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.cid); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_bn8ijo_k$(encoder, value instanceof KNode ? value : THROW_CCE()); + } + } + class KNode { + constructor(nodeId, title, cid) { + Companion_instance_151; + nodeId = nodeId === VOID ? new Long(0, 0) : nodeId; + title = title === VOID ? '' : title; + cid = cid === VOID ? new Long(0, 0) : cid; + this.nodeId = nodeId; + this.title = title; + this.cid = cid; + } + get_nodeId_h7ho7a_k$() { + return this.nodeId; + } + get_title_iz32un_k$() { + return this.title; + } + get_cid_18j82z_k$() { + return this.cid; + } + component1_7eebsc_k$() { + return this.nodeId; + } + component2_7eebsb_k$() { + return this.title; + } + component3_7eebsa_k$() { + return this.cid; + } + copy_pz1b51_k$(nodeId, title, cid) { + return new KNode(nodeId, title, cid); + } + copy(nodeId, title, cid, $super) { + nodeId = nodeId === VOID ? this.nodeId : nodeId; + title = title === VOID ? this.title : title; + cid = cid === VOID ? this.cid : cid; + return this.copy_pz1b51_k$(nodeId, title, cid); + } + toString() { + return 'KNode(nodeId=' + this.nodeId.toString() + ', title=' + this.title + ', cid=' + this.cid.toString() + ')'; + } + hashCode() { + var result = this.nodeId.hashCode(); + result = imul(result, 31) + getStringHashCode(this.title) | 0; + result = imul(result, 31) + this.cid.hashCode() | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KNode)) + return false; + var tmp0_other_with_cast = other instanceof KNode ? other : THROW_CCE(); + if (!this.nodeId.equals(tmp0_other_with_cast.nodeId)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!this.cid.equals(tmp0_other_with_cast.cid)) + return false; + return true; + } + static new_com_bapis_bilibili_playershared_KNode_fnroih_k$(seen1, nodeId, title, cid, serializationConstructorMarker) { + Companion_instance_151; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_138().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.nodeId = new Long(0, 0); + else + $this.nodeId = nodeId; + if (0 === (seen1 & 2)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 4)) + $this.cid = new Long(0, 0); + else + $this.cid = cid; + return $this; + } + } + class Companion_152 { + constructor() { + this.targetPath = '/bilibili.playershared.Event'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_139(); + } + } + class $serializer_139 { + constructor() { + $serializer_instance_139 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.playershared.KEvent', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('shake', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_140())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_140(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_140(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KEvent.new_com_bapis_bilibili_playershared_KEvent_m2f1wg_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_lseu7m_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.shake == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_140(), value.shake); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_lseu7m_k$(encoder, value instanceof KEvent ? value : THROW_CCE()); + } + } + class KEvent { + constructor(shake) { + Companion_instance_152; + shake = shake === VOID ? null : shake; + this.shake = shake; + } + get_shake_iyi95p_k$() { + return this.shake; + } + component1_7eebsc_k$() { + return this.shake; + } + copy_7k1gk3_k$(shake) { + return new KEvent(shake); + } + copy(shake, $super) { + shake = shake === VOID ? this.shake : shake; + return this.copy_7k1gk3_k$(shake); + } + toString() { + return 'KEvent(shake=' + this.shake + ')'; + } + hashCode() { + return this.shake == null ? 0 : this.shake.hashCode(); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KEvent)) + return false; + var tmp0_other_with_cast = other instanceof KEvent ? other : THROW_CCE(); + if (!equals(this.shake, tmp0_other_with_cast.shake)) + return false; + return true; + } + static new_com_bapis_bilibili_playershared_KEvent_m2f1wg_k$(seen1, shake, serializationConstructorMarker) { + Companion_instance_152; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_139().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.shake = null; + else + $this.shake = shake; + return $this; + } + } + class Companion_153 { + constructor() { + this.targetPath = '/bilibili.playershared.Shake'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_140(); + } + } + class $serializer_140 { + constructor() { + $serializer_instance_140 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.playershared.KShake', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('file', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KShake.new_com_bapis_bilibili_playershared_KShake_v0nb93_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_rvtyn6_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.file === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.file); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_rvtyn6_k$(encoder, value instanceof KShake ? value : THROW_CCE()); + } + } + class KShake { + constructor(file) { + Companion_instance_153; + file = file === VOID ? '' : file; + this.file = file; + } + get_file_wom0n9_k$() { + return this.file; + } + component1_7eebsc_k$() { + return this.file; + } + copy_a35qlh_k$(file) { + return new KShake(file); + } + copy(file, $super) { + file = file === VOID ? this.file : file; + return this.copy_a35qlh_k$(file); + } + toString() { + return 'KShake(file=' + this.file + ')'; + } + hashCode() { + return getStringHashCode(this.file); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KShake)) + return false; + var tmp0_other_with_cast = other instanceof KShake ? other : THROW_CCE(); + if (!(this.file === tmp0_other_with_cast.file)) + return false; + return true; + } + static new_com_bapis_bilibili_playershared_KShake_v0nb93_k$(seen1, file, serializationConstructorMarker) { + Companion_instance_153; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_140().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.file = ''; + else + $this.file = file; + return $this; + } + } + class Companion_154 { + constructor() { + this.targetPath = '/bilibili.playershared.QnTrialInfo'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_141(); + } + } + class $serializer_141 { + constructor() { + $serializer_instance_141 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.playershared.KQnTrialInfo', this, 7); + tmp0_serialDesc.addElement_5pzumi_k$('trialAble', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('remainingTimes', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('start', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('timeLength', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('startToast', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('endToast', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('qualityOpenTipBtn', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [BooleanSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), get_nullable($serializer_getInstance_142()), get_nullable($serializer_getInstance_142()), get_nullable($serializer_getInstance_144())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = false; + var tmp5_local1 = 0; + var tmp6_local2 = 0; + var tmp7_local3 = 0; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp11_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp11_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_142(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_142(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_144(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + } else + while (tmp1_flag) { + tmp2_index = tmp11_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp11_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_142(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_142(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_144(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp11_input.endStructure_1xqz0n_k$(tmp0_desc); + return KQnTrialInfo.new_com_bapis_bilibili_playershared_KQnTrialInfo_iop4j6_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, null); + } + serialize_141q81_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.trialAble === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 0, value.trialAble); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.remainingTimes === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.remainingTimes); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.start === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.start); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.timeLength === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 3, value.timeLength); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.startToast == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, $serializer_getInstance_142(), value.startToast); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.endToast == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 5, $serializer_getInstance_142(), value.endToast); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.qualityOpenTipBtn == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 6, $serializer_getInstance_144(), value.qualityOpenTipBtn); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_141q81_k$(encoder, value instanceof KQnTrialInfo ? value : THROW_CCE()); + } + } + class KQnTrialInfo { + constructor(trialAble, remainingTimes, start, timeLength, startToast, endToast, qualityOpenTipBtn) { + Companion_instance_154; + trialAble = trialAble === VOID ? false : trialAble; + remainingTimes = remainingTimes === VOID ? 0 : remainingTimes; + start = start === VOID ? 0 : start; + timeLength = timeLength === VOID ? 0 : timeLength; + startToast = startToast === VOID ? null : startToast; + endToast = endToast === VOID ? null : endToast; + qualityOpenTipBtn = qualityOpenTipBtn === VOID ? null : qualityOpenTipBtn; + this.trialAble = trialAble; + this.remainingTimes = remainingTimes; + this.start = start; + this.timeLength = timeLength; + this.startToast = startToast; + this.endToast = endToast; + this.qualityOpenTipBtn = qualityOpenTipBtn; + } + get_trialAble_4zw9p5_k$() { + return this.trialAble; + } + get_remainingTimes_evmwhz_k$() { + return this.remainingTimes; + } + get_start_iypx6h_k$() { + return this.start; + } + get_timeLength_all2zo_k$() { + return this.timeLength; + } + get_startToast_oo3xbi_k$() { + return this.startToast; + } + get_endToast_3fq9t7_k$() { + return this.endToast; + } + get_qualityOpenTipBtn_9oixsv_k$() { + return this.qualityOpenTipBtn; + } + component1_7eebsc_k$() { + return this.trialAble; + } + component2_7eebsb_k$() { + return this.remainingTimes; + } + component3_7eebsa_k$() { + return this.start; + } + component4_7eebs9_k$() { + return this.timeLength; + } + component5_7eebs8_k$() { + return this.startToast; + } + component6_7eebs7_k$() { + return this.endToast; + } + component7_7eebs6_k$() { + return this.qualityOpenTipBtn; + } + copy_ru36qi_k$(trialAble, remainingTimes, start, timeLength, startToast, endToast, qualityOpenTipBtn) { + return new KQnTrialInfo(trialAble, remainingTimes, start, timeLength, startToast, endToast, qualityOpenTipBtn); + } + copy(trialAble, remainingTimes, start, timeLength, startToast, endToast, qualityOpenTipBtn, $super) { + trialAble = trialAble === VOID ? this.trialAble : trialAble; + remainingTimes = remainingTimes === VOID ? this.remainingTimes : remainingTimes; + start = start === VOID ? this.start : start; + timeLength = timeLength === VOID ? this.timeLength : timeLength; + startToast = startToast === VOID ? this.startToast : startToast; + endToast = endToast === VOID ? this.endToast : endToast; + qualityOpenTipBtn = qualityOpenTipBtn === VOID ? this.qualityOpenTipBtn : qualityOpenTipBtn; + return this.copy_ru36qi_k$(trialAble, remainingTimes, start, timeLength, startToast, endToast, qualityOpenTipBtn); + } + toString() { + return 'KQnTrialInfo(trialAble=' + this.trialAble + ', remainingTimes=' + this.remainingTimes + ', start=' + this.start + ', timeLength=' + this.timeLength + ', startToast=' + this.startToast + ', endToast=' + this.endToast + ', qualityOpenTipBtn=' + this.qualityOpenTipBtn + ')'; + } + hashCode() { + var result = getBooleanHashCode(this.trialAble); + result = imul(result, 31) + this.remainingTimes | 0; + result = imul(result, 31) + this.start | 0; + result = imul(result, 31) + this.timeLength | 0; + result = imul(result, 31) + (this.startToast == null ? 0 : this.startToast.hashCode()) | 0; + result = imul(result, 31) + (this.endToast == null ? 0 : this.endToast.hashCode()) | 0; + result = imul(result, 31) + (this.qualityOpenTipBtn == null ? 0 : this.qualityOpenTipBtn.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KQnTrialInfo)) + return false; + var tmp0_other_with_cast = other instanceof KQnTrialInfo ? other : THROW_CCE(); + if (!(this.trialAble === tmp0_other_with_cast.trialAble)) + return false; + if (!(this.remainingTimes === tmp0_other_with_cast.remainingTimes)) + return false; + if (!(this.start === tmp0_other_with_cast.start)) + return false; + if (!(this.timeLength === tmp0_other_with_cast.timeLength)) + return false; + if (!equals(this.startToast, tmp0_other_with_cast.startToast)) + return false; + if (!equals(this.endToast, tmp0_other_with_cast.endToast)) + return false; + if (!equals(this.qualityOpenTipBtn, tmp0_other_with_cast.qualityOpenTipBtn)) + return false; + return true; + } + static new_com_bapis_bilibili_playershared_KQnTrialInfo_iop4j6_k$(seen1, trialAble, remainingTimes, start, timeLength, startToast, endToast, qualityOpenTipBtn, serializationConstructorMarker) { + Companion_instance_154; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_141().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.trialAble = false; + else + $this.trialAble = trialAble; + if (0 === (seen1 & 2)) + $this.remainingTimes = 0; + else + $this.remainingTimes = remainingTimes; + if (0 === (seen1 & 4)) + $this.start = 0; + else + $this.start = start; + if (0 === (seen1 & 8)) + $this.timeLength = 0; + else + $this.timeLength = timeLength; + if (0 === (seen1 & 16)) + $this.startToast = null; + else + $this.startToast = startToast; + if (0 === (seen1 & 32)) + $this.endToast = null; + else + $this.endToast = endToast; + if (0 === (seen1 & 64)) + $this.qualityOpenTipBtn = null; + else + $this.qualityOpenTipBtn = qualityOpenTipBtn; + return $this; + } + } + class Companion_155 { + constructor() { + this.targetPath = '/bilibili.playershared.Toast'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_142(); + } + } + class $serializer_142 { + constructor() { + $serializer_instance_142 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.playershared.KToast', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('text', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('button', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), get_nullable($serializer_getInstance_144())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_144(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_144(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KToast.new_com_bapis_bilibili_playershared_KToast_56rwhg_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_79raqn_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.text === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.text); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.button == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_144(), value.button); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_79raqn_k$(encoder, value instanceof KToast ? value : THROW_CCE()); + } + } + class KToast { + constructor(text, button) { + Companion_instance_155; + text = text === VOID ? '' : text; + button = button === VOID ? null : button; + this.text = text; + this.button = button; + } + get_text_wouvsm_k$() { + return this.text; + } + get_button_bmjiuz_k$() { + return this.button; + } + component1_7eebsc_k$() { + return this.text; + } + component2_7eebsb_k$() { + return this.button; + } + copy_59on4t_k$(text, button) { + return new KToast(text, button); + } + copy(text, button, $super) { + text = text === VOID ? this.text : text; + button = button === VOID ? this.button : button; + return this.copy_59on4t_k$(text, button); + } + toString() { + return 'KToast(text=' + this.text + ', button=' + this.button + ')'; + } + hashCode() { + var result = getStringHashCode(this.text); + result = imul(result, 31) + (this.button == null ? 0 : this.button.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KToast)) + return false; + var tmp0_other_with_cast = other instanceof KToast ? other : THROW_CCE(); + if (!(this.text === tmp0_other_with_cast.text)) + return false; + if (!equals(this.button, tmp0_other_with_cast.button)) + return false; + return true; + } + static new_com_bapis_bilibili_playershared_KToast_56rwhg_k$(seen1, text, button, serializationConstructorMarker) { + Companion_instance_155; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_142().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.text = ''; + else + $this.text = text; + if (0 === (seen1 & 2)) + $this.button = null; + else + $this.button = button; + return $this; + } + } + class Companion_156 { + constructor() { + this.targetPath = '/bilibili.playershared.Button.ReportParamsEntry'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_143(); + } + } + class $serializer_143 { + constructor() { + $serializer_instance_143 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.playershared.KButton.KReportParamsEntry', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('key', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('value', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KReportParamsEntry.new_com_bapis_bilibili_playershared_KButton_KReportParamsEntry_crbjfg_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_215foh_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.key === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.key); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.value === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.value); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_215foh_k$(encoder, value instanceof KReportParamsEntry ? value : THROW_CCE()); + } + } + class KReportParamsEntry { + constructor(key, value) { + Companion_instance_156; + key = key === VOID ? '' : key; + value = value === VOID ? '' : value; + this.key = key; + this.value = value; + } + get_key_18j28a_k$() { + return this.key; + } + get_value_j01efc_k$() { + return this.value; + } + component1_7eebsc_k$() { + return this.key; + } + component2_7eebsb_k$() { + return this.value; + } + copy_plwnsl_k$(key, value) { + return new KReportParamsEntry(key, value); + } + copy(key, value, $super) { + key = key === VOID ? this.key : key; + value = value === VOID ? this.value : value; + return this.copy_plwnsl_k$(key, value); + } + toString() { + return 'KReportParamsEntry(key=' + this.key + ', value=' + this.value + ')'; + } + hashCode() { + var result = getStringHashCode(this.key); + result = imul(result, 31) + getStringHashCode(this.value) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KReportParamsEntry)) + return false; + var tmp0_other_with_cast = other instanceof KReportParamsEntry ? other : THROW_CCE(); + if (!(this.key === tmp0_other_with_cast.key)) + return false; + if (!(this.value === tmp0_other_with_cast.value)) + return false; + return true; + } + static new_com_bapis_bilibili_playershared_KButton_KReportParamsEntry_crbjfg_k$(seen1, key, value, serializationConstructorMarker) { + Companion_instance_156; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_143().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.key = ''; + else + $this.key = key; + if (0 === (seen1 & 2)) + $this.value = ''; + else + $this.value = value; + return $this; + } + } + class Companion_157 { + constructor() { + Companion_instance_157 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, new LinkedHashMapSerializer(StringSerializer_getInstance(), StringSerializer_getInstance())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.playershared.Button'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_144(); + } + } + class $serializer_144 { + constructor() { + $serializer_instance_144 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.playershared.KButton', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('text', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('link', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('reportParams', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_157().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), tmp0_cached[2]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp8_cached = Companion_getInstance_157().$childSerializers_1; + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp8_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp8_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KButton.new_com_bapis_bilibili_playershared_KButton_f8be1z_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_dge8yc_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_157().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.text === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.text); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.link === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.link); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !equals(value.reportParams, emptyMap())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 2, tmp2_cached[2], value.reportParams); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_dge8yc_k$(encoder, value instanceof KButton ? value : THROW_CCE()); + } + } + class KButton { + constructor(text, link, reportParams) { + Companion_getInstance_157(); + text = text === VOID ? '' : text; + link = link === VOID ? '' : link; + reportParams = reportParams === VOID ? emptyMap() : reportParams; + this.text = text; + this.link = link; + this.reportParams = reportParams; + } + get_text_wouvsm_k$() { + return this.text; + } + get_link_wopumb_k$() { + return this.link; + } + get_reportParams_ct7spv_k$() { + return this.reportParams; + } + component1_7eebsc_k$() { + return this.text; + } + component2_7eebsb_k$() { + return this.link; + } + component3_7eebsa_k$() { + return this.reportParams; + } + copy_cc2n1l_k$(text, link, reportParams) { + return new KButton(text, link, reportParams); + } + copy(text, link, reportParams, $super) { + text = text === VOID ? this.text : text; + link = link === VOID ? this.link : link; + reportParams = reportParams === VOID ? this.reportParams : reportParams; + return this.copy_cc2n1l_k$(text, link, reportParams); + } + toString() { + return 'KButton(text=' + this.text + ', link=' + this.link + ', reportParams=' + this.reportParams + ')'; + } + hashCode() { + var result = getStringHashCode(this.text); + result = imul(result, 31) + getStringHashCode(this.link) | 0; + result = imul(result, 31) + hashCode(this.reportParams) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KButton)) + return false; + var tmp0_other_with_cast = other instanceof KButton ? other : THROW_CCE(); + if (!(this.text === tmp0_other_with_cast.text)) + return false; + if (!(this.link === tmp0_other_with_cast.link)) + return false; + if (!equals(this.reportParams, tmp0_other_with_cast.reportParams)) + return false; + return true; + } + static new_com_bapis_bilibili_playershared_KButton_f8be1z_k$(seen1, text, link, reportParams, serializationConstructorMarker) { + Companion_getInstance_157(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_144().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.text = ''; + else + $this.text = text; + if (0 === (seen1 & 2)) + $this.link = ''; + else + $this.link = link; + if (0 === (seen1 & 4)) + $this.reportParams = emptyMap(); + else + $this.reportParams = reportParams; + return $this; + } + } + class Companion_158 { + constructor() { + this.targetPath = '/bilibili.playershared.History'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_145(); + } + } + class $serializer_145 { + constructor() { + $serializer_instance_145 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.playershared.KHistory', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('currentVideo', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('relatedVideo', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_146()), get_nullable($serializer_getInstance_146())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_146(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_146(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_146(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_146(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KHistory.new_com_bapis_bilibili_playershared_KHistory_2hksq8_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_12nw2c_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.currentVideo == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_146(), value.currentVideo); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.relatedVideo == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_146(), value.relatedVideo); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_12nw2c_k$(encoder, value instanceof KHistory ? value : THROW_CCE()); + } + } + class KHistory { + constructor(currentVideo, relatedVideo) { + Companion_instance_158; + currentVideo = currentVideo === VOID ? null : currentVideo; + relatedVideo = relatedVideo === VOID ? null : relatedVideo; + this.currentVideo = currentVideo; + this.relatedVideo = relatedVideo; + } + get_currentVideo_soywgb_k$() { + return this.currentVideo; + } + get_relatedVideo_6ybgbd_k$() { + return this.relatedVideo; + } + component1_7eebsc_k$() { + return this.currentVideo; + } + component2_7eebsb_k$() { + return this.relatedVideo; + } + copy_bbqb63_k$(currentVideo, relatedVideo) { + return new KHistory(currentVideo, relatedVideo); + } + copy(currentVideo, relatedVideo, $super) { + currentVideo = currentVideo === VOID ? this.currentVideo : currentVideo; + relatedVideo = relatedVideo === VOID ? this.relatedVideo : relatedVideo; + return this.copy_bbqb63_k$(currentVideo, relatedVideo); + } + toString() { + return 'KHistory(currentVideo=' + this.currentVideo + ', relatedVideo=' + this.relatedVideo + ')'; + } + hashCode() { + var result = this.currentVideo == null ? 0 : this.currentVideo.hashCode(); + result = imul(result, 31) + (this.relatedVideo == null ? 0 : this.relatedVideo.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KHistory)) + return false; + var tmp0_other_with_cast = other instanceof KHistory ? other : THROW_CCE(); + if (!equals(this.currentVideo, tmp0_other_with_cast.currentVideo)) + return false; + if (!equals(this.relatedVideo, tmp0_other_with_cast.relatedVideo)) + return false; + return true; + } + static new_com_bapis_bilibili_playershared_KHistory_2hksq8_k$(seen1, currentVideo, relatedVideo, serializationConstructorMarker) { + Companion_instance_158; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_145().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.currentVideo = null; + else + $this.currentVideo = currentVideo; + if (0 === (seen1 & 2)) + $this.relatedVideo = null; + else + $this.relatedVideo = relatedVideo; + return $this; + } + } + class Companion_159 { + constructor() { + this.targetPath = '/bilibili.playershared.HistoryInfo'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_146(); + } + } + class $serializer_146 { + constructor() { + $serializer_instance_146 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.playershared.KHistoryInfo', this, 5); + tmp0_serialDesc.addElement_5pzumi_k$('progress', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('lastPlayCid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('toast', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('toastWithoutTime', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('lastPlayAid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable($serializer_getInstance_142()), get_nullable($serializer_getInstance_142()), LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = new Long(0, 0); + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = new Long(0, 0); + var tmp9_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp9_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_142(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_142(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + } else + while (tmp1_flag) { + tmp2_index = tmp9_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_142(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_142(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp9_input.endStructure_1xqz0n_k$(tmp0_desc); + return KHistoryInfo.new_com_bapis_bilibili_playershared_KHistoryInfo_ahzef8_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); + } + serialize_eifw1m_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.progress.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.progress); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.lastPlayCid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.lastPlayCid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.toast == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_142(), value.toast); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.toastWithoutTime == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_142(), value.toastWithoutTime); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !value.lastPlayAid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 4, value.lastPlayAid); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_eifw1m_k$(encoder, value instanceof KHistoryInfo ? value : THROW_CCE()); + } + } + class KHistoryInfo { + constructor(progress, lastPlayCid, toast, toastWithoutTime, lastPlayAid) { + Companion_instance_159; + progress = progress === VOID ? new Long(0, 0) : progress; + lastPlayCid = lastPlayCid === VOID ? new Long(0, 0) : lastPlayCid; + toast = toast === VOID ? null : toast; + toastWithoutTime = toastWithoutTime === VOID ? null : toastWithoutTime; + lastPlayAid = lastPlayAid === VOID ? new Long(0, 0) : lastPlayAid; + this.progress = progress; + this.lastPlayCid = lastPlayCid; + this.toast = toast; + this.toastWithoutTime = toastWithoutTime; + this.lastPlayAid = lastPlayAid; + } + get_progress_mo5qeu_k$() { + return this.progress; + } + get_lastPlayCid_y507at_k$() { + return this.lastPlayCid; + } + get_toast_iz6iv2_k$() { + return this.toast; + } + get_toastWithoutTime_ouhh61_k$() { + return this.toastWithoutTime; + } + get_lastPlayAid_y508s7_k$() { + return this.lastPlayAid; + } + component1_7eebsc_k$() { + return this.progress; + } + component2_7eebsb_k$() { + return this.lastPlayCid; + } + component3_7eebsa_k$() { + return this.toast; + } + component4_7eebs9_k$() { + return this.toastWithoutTime; + } + component5_7eebs8_k$() { + return this.lastPlayAid; + } + copy_pfbswf_k$(progress, lastPlayCid, toast, toastWithoutTime, lastPlayAid) { + return new KHistoryInfo(progress, lastPlayCid, toast, toastWithoutTime, lastPlayAid); + } + copy(progress, lastPlayCid, toast, toastWithoutTime, lastPlayAid, $super) { + progress = progress === VOID ? this.progress : progress; + lastPlayCid = lastPlayCid === VOID ? this.lastPlayCid : lastPlayCid; + toast = toast === VOID ? this.toast : toast; + toastWithoutTime = toastWithoutTime === VOID ? this.toastWithoutTime : toastWithoutTime; + lastPlayAid = lastPlayAid === VOID ? this.lastPlayAid : lastPlayAid; + return this.copy_pfbswf_k$(progress, lastPlayCid, toast, toastWithoutTime, lastPlayAid); + } + toString() { + return 'KHistoryInfo(progress=' + this.progress.toString() + ', lastPlayCid=' + this.lastPlayCid.toString() + ', toast=' + this.toast + ', toastWithoutTime=' + this.toastWithoutTime + ', lastPlayAid=' + this.lastPlayAid.toString() + ')'; + } + hashCode() { + var result = this.progress.hashCode(); + result = imul(result, 31) + this.lastPlayCid.hashCode() | 0; + result = imul(result, 31) + (this.toast == null ? 0 : this.toast.hashCode()) | 0; + result = imul(result, 31) + (this.toastWithoutTime == null ? 0 : this.toastWithoutTime.hashCode()) | 0; + result = imul(result, 31) + this.lastPlayAid.hashCode() | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KHistoryInfo)) + return false; + var tmp0_other_with_cast = other instanceof KHistoryInfo ? other : THROW_CCE(); + if (!this.progress.equals(tmp0_other_with_cast.progress)) + return false; + if (!this.lastPlayCid.equals(tmp0_other_with_cast.lastPlayCid)) + return false; + if (!equals(this.toast, tmp0_other_with_cast.toast)) + return false; + if (!equals(this.toastWithoutTime, tmp0_other_with_cast.toastWithoutTime)) + return false; + if (!this.lastPlayAid.equals(tmp0_other_with_cast.lastPlayAid)) + return false; + return true; + } + static new_com_bapis_bilibili_playershared_KHistoryInfo_ahzef8_k$(seen1, progress, lastPlayCid, toast, toastWithoutTime, lastPlayAid, serializationConstructorMarker) { + Companion_instance_159; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_146().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.progress = new Long(0, 0); + else + $this.progress = progress; + if (0 === (seen1 & 2)) + $this.lastPlayCid = new Long(0, 0); + else + $this.lastPlayCid = lastPlayCid; + if (0 === (seen1 & 4)) + $this.toast = null; + else + $this.toast = toast; + if (0 === (seen1 & 8)) + $this.toastWithoutTime = null; + else + $this.toastWithoutTime = toastWithoutTime; + if (0 === (seen1 & 16)) + $this.lastPlayAid = new Long(0, 0); + else + $this.lastPlayAid = lastPlayAid; + return $this; + } + } + class Companion_160 { + constructor() { + Companion_instance_160 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer($serializer_getInstance_148())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.playershared.Fragment'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_147(); + } + } + class $serializer_147 { + constructor() { + $serializer_instance_147 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.playershared.KFragment', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('infos', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_160().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp6_cached = Companion_getInstance_160().$childSerializers_1; + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KFragment.new_com_bapis_bilibili_playershared_KFragment_julvcq_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_rexc36_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_160().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.infos, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.infos); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_rexc36_k$(encoder, value instanceof KFragment ? value : THROW_CCE()); + } + } + class KFragment { + constructor(infos) { + Companion_getInstance_160(); + infos = infos === VOID ? emptyList() : infos; + this.infos = infos; + } + get_infos_it48yk_k$() { + return this.infos; + } + component1_7eebsc_k$() { + return this.infos; + } + copy_ckwg3e_k$(infos) { + return new KFragment(infos); + } + copy(infos, $super) { + infos = infos === VOID ? this.infos : infos; + return this.copy_ckwg3e_k$(infos); + } + toString() { + return 'KFragment(infos=' + this.infos + ')'; + } + hashCode() { + return hashCode(this.infos); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KFragment)) + return false; + var tmp0_other_with_cast = other instanceof KFragment ? other : THROW_CCE(); + if (!equals(this.infos, tmp0_other_with_cast.infos)) + return false; + return true; + } + static new_com_bapis_bilibili_playershared_KFragment_julvcq_k$(seen1, infos, serializationConstructorMarker) { + Companion_getInstance_160(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_147().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.infos = emptyList(); + else + $this.infos = infos; + return $this; + } + } + class Companion_161 { + constructor() { + this.targetPath = '/bilibili.playershared.FragmentInfo'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_148(); + } + } + class $serializer_148 { + constructor() { + $serializer_instance_148 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.playershared.KFragmentInfo', this, 7); + tmp0_serialDesc.addElement_5pzumi_k$('index', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('fragmentPosition', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('fragmentType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('aid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('cid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('startTime', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('report', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable($serializer_getInstance())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = 0; + var tmp6_local2 = 0; + var tmp7_local3 = new Long(0, 0); + var tmp8_local4 = new Long(0, 0); + var tmp9_local5 = new Long(0, 0); + var tmp10_local6 = null; + var tmp11_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp11_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + } else + while (tmp1_flag) { + tmp2_index = tmp11_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp11_input.endStructure_1xqz0n_k$(tmp0_desc); + return KFragmentInfo.new_com_bapis_bilibili_playershared_KFragmentInfo_mmdcf0_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, null); + } + serialize_cagosg_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.index === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.index); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.fragmentPosition === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.fragmentPosition); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.fragmentType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.fragmentType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !value.aid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 3, value.aid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !value.cid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 4, value.cid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !value.startTime.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 5, value.startTime); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.report == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 6, $serializer_getInstance(), value.report); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_cagosg_k$(encoder, value instanceof KFragmentInfo ? value : THROW_CCE()); + } + } + class KFragmentInfo { + constructor(index, fragmentPosition, fragmentType, aid, cid, startTime, report) { + Companion_instance_161; + index = index === VOID ? 0 : index; + fragmentPosition = fragmentPosition === VOID ? 0 : fragmentPosition; + fragmentType = fragmentType === VOID ? 0 : fragmentType; + aid = aid === VOID ? new Long(0, 0) : aid; + cid = cid === VOID ? new Long(0, 0) : cid; + startTime = startTime === VOID ? new Long(0, 0) : startTime; + report = report === VOID ? null : report; + this.index = index; + this.fragmentPosition = fragmentPosition; + this.fragmentType = fragmentType; + this.aid = aid; + this.cid = cid; + this.startTime = startTime; + this.report = report; + } + get_index_it478p_k$() { + return this.index; + } + get_fragmentPosition_9or78i_k$() { + return this.fragmentPosition; + } + get_fragmentType_yveryl_k$() { + return this.fragmentType; + } + get_aid_18j9kd_k$() { + return this.aid; + } + get_cid_18j82z_k$() { + return this.cid; + } + get_startTime_qp7d5m_k$() { + return this.startTime; + } + get_report_iye43h_k$() { + return this.report; + } + fragmentPositionEnum() { + return Companion_getInstance_126().fromValue(this.fragmentPosition); + } + fragmentTypeEnum() { + return Companion_getInstance_125().fromValue(this.fragmentType); + } + component1_7eebsc_k$() { + return this.index; + } + component2_7eebsb_k$() { + return this.fragmentPosition; + } + component3_7eebsa_k$() { + return this.fragmentType; + } + component4_7eebs9_k$() { + return this.aid; + } + component5_7eebs8_k$() { + return this.cid; + } + component6_7eebs7_k$() { + return this.startTime; + } + component7_7eebs6_k$() { + return this.report; + } + copy_sus5hf_k$(index, fragmentPosition, fragmentType, aid, cid, startTime, report) { + return new KFragmentInfo(index, fragmentPosition, fragmentType, aid, cid, startTime, report); + } + copy(index, fragmentPosition, fragmentType, aid, cid, startTime, report, $super) { + index = index === VOID ? this.index : index; + fragmentPosition = fragmentPosition === VOID ? this.fragmentPosition : fragmentPosition; + fragmentType = fragmentType === VOID ? this.fragmentType : fragmentType; + aid = aid === VOID ? this.aid : aid; + cid = cid === VOID ? this.cid : cid; + startTime = startTime === VOID ? this.startTime : startTime; + report = report === VOID ? this.report : report; + return this.copy_sus5hf_k$(index, fragmentPosition, fragmentType, aid, cid, startTime, report); + } + toString() { + return 'KFragmentInfo(index=' + this.index + ', fragmentPosition=' + this.fragmentPosition + ', fragmentType=' + this.fragmentType + ', aid=' + this.aid.toString() + ', cid=' + this.cid.toString() + ', startTime=' + this.startTime.toString() + ', report=' + this.report + ')'; + } + hashCode() { + var result = this.index; + result = imul(result, 31) + this.fragmentPosition | 0; + result = imul(result, 31) + this.fragmentType | 0; + result = imul(result, 31) + this.aid.hashCode() | 0; + result = imul(result, 31) + this.cid.hashCode() | 0; + result = imul(result, 31) + this.startTime.hashCode() | 0; + result = imul(result, 31) + (this.report == null ? 0 : this.report.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KFragmentInfo)) + return false; + var tmp0_other_with_cast = other instanceof KFragmentInfo ? other : THROW_CCE(); + if (!(this.index === tmp0_other_with_cast.index)) + return false; + if (!(this.fragmentPosition === tmp0_other_with_cast.fragmentPosition)) + return false; + if (!(this.fragmentType === tmp0_other_with_cast.fragmentType)) + return false; + if (!this.aid.equals(tmp0_other_with_cast.aid)) + return false; + if (!this.cid.equals(tmp0_other_with_cast.cid)) + return false; + if (!this.startTime.equals(tmp0_other_with_cast.startTime)) + return false; + if (!equals(this.report, tmp0_other_with_cast.report)) + return false; + return true; + } + static new_com_bapis_bilibili_playershared_KFragmentInfo_mmdcf0_k$(seen1, index, fragmentPosition, fragmentType, aid, cid, startTime, report, serializationConstructorMarker) { + Companion_instance_161; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_148().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.index = 0; + else + $this.index = index; + if (0 === (seen1 & 2)) + $this.fragmentPosition = 0; + else + $this.fragmentPosition = fragmentPosition; + if (0 === (seen1 & 4)) + $this.fragmentType = 0; + else + $this.fragmentType = fragmentType; + if (0 === (seen1 & 8)) + $this.aid = new Long(0, 0); + else + $this.aid = aid; + if (0 === (seen1 & 16)) + $this.cid = new Long(0, 0); + else + $this.cid = cid; + if (0 === (seen1 & 32)) + $this.startTime = new Long(0, 0); + else + $this.startTime = startTime; + if (0 === (seen1 & 64)) + $this.report = null; + else + $this.report = report; + return $this; + } + } + class Companion_162 { + constructor() { + this.targetPath = '/bilibili.app.playerunite.v1.PlayViewUniteReq.ExtraContentEntry'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_149(); + } + } + class $serializer_149 { + constructor() { + $serializer_instance_149 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.playerunite.v1.KPlayViewUniteReq.KExtraContentEntry', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('key', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('value', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KExtraContentEntry.new_com_bapis_bilibili_app_playerunite_v1_KPlayViewUniteReq_KExtraContentEntry_xung1r_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_gn1gt8_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.key === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.key); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.value === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.value); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_gn1gt8_k$(encoder, value instanceof KExtraContentEntry ? value : THROW_CCE()); + } + } + class KExtraContentEntry { + constructor(key, value) { + Companion_instance_162; + key = key === VOID ? '' : key; + value = value === VOID ? '' : value; + this.key = key; + this.value = value; + } + get_key_18j28a_k$() { + return this.key; + } + get_value_j01efc_k$() { + return this.value; + } + component1_7eebsc_k$() { + return this.key; + } + component2_7eebsb_k$() { + return this.value; + } + copy_plwnsl_k$(key, value) { + return new KExtraContentEntry(key, value); + } + copy(key, value, $super) { + key = key === VOID ? this.key : key; + value = value === VOID ? this.value : value; + return this.copy_plwnsl_k$(key, value); + } + toString() { + return 'KExtraContentEntry(key=' + this.key + ', value=' + this.value + ')'; + } + hashCode() { + var result = getStringHashCode(this.key); + result = imul(result, 31) + getStringHashCode(this.value) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KExtraContentEntry)) + return false; + var tmp0_other_with_cast = other instanceof KExtraContentEntry ? other : THROW_CCE(); + if (!(this.key === tmp0_other_with_cast.key)) + return false; + if (!(this.value === tmp0_other_with_cast.value)) + return false; + return true; + } + static new_com_bapis_bilibili_app_playerunite_v1_KPlayViewUniteReq_KExtraContentEntry_xung1r_k$(seen1, key, value, serializationConstructorMarker) { + Companion_instance_162; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_149().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.key = ''; + else + $this.key = key; + if (0 === (seen1 & 2)) + $this.value = ''; + else + $this.value = value; + return $this; + } + } + class Companion_163 { + constructor() { + Companion_instance_163 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, new LinkedHashMapSerializer(StringSerializer_getInstance(), StringSerializer_getInstance()), null, null, null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.playerunite.v1.PlayViewUniteReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_150(); + } + } + class $serializer_150 { + constructor() { + $serializer_instance_150 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.playerunite.v1.KPlayViewUniteReq', this, 8); + tmp0_serialDesc.addElement_5pzumi_k$('vod', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('spmid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('fromSpmid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('extraContent', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('bvid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('adExtra', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('fragment', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('fromScene', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_163().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_117()), StringSerializer_getInstance(), StringSerializer_getInstance(), tmp0_cached[3], StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_147()), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp13_cached = Companion_getInstance_163().$childSerializers_1; + if (tmp12_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_117(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp12_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 3, tmp13_cached[3], tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_147(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + } else + while (tmp1_flag) { + tmp2_index = tmp12_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_117(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp12_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 3, tmp13_cached[3], tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_147(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp12_input.endStructure_1xqz0n_k$(tmp0_desc); + return KPlayViewUniteReq.new_com_bapis_bilibili_app_playerunite_v1_KPlayViewUniteReq_3wlcca_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null); + } + serialize_f2c0ly_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_163().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.vod == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_117(), value.vod); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.spmid === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.spmid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.fromSpmid === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.fromSpmid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !equals(value.extraContent, emptyMap())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 3, tmp2_cached[3], value.extraContent); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.bvid === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.bvid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.adExtra === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.adExtra); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.fragment == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 6, $serializer_getInstance_147(), value.fragment); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.fromScene === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.fromScene); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_f2c0ly_k$(encoder, value instanceof KPlayViewUniteReq ? value : THROW_CCE()); + } + } + class KPlayViewUniteReq { + constructor(vod, spmid, fromSpmid, extraContent, bvid, adExtra, fragment, fromScene) { + Companion_getInstance_163(); + vod = vod === VOID ? null : vod; + spmid = spmid === VOID ? '' : spmid; + fromSpmid = fromSpmid === VOID ? '' : fromSpmid; + extraContent = extraContent === VOID ? emptyMap() : extraContent; + bvid = bvid === VOID ? '' : bvid; + adExtra = adExtra === VOID ? '' : adExtra; + fragment = fragment === VOID ? null : fragment; + fromScene = fromScene === VOID ? '' : fromScene; + this.vod = vod; + this.spmid = spmid; + this.fromSpmid = fromSpmid; + this.extraContent = extraContent; + this.bvid = bvid; + this.adExtra = adExtra; + this.fragment = fragment; + this.fromScene = fromScene; + } + get_vod_18itum_k$() { + return this.vod; + } + get_spmid_iynlwi_k$() { + return this.spmid; + } + get_fromSpmid_9nw788_k$() { + return this.fromSpmid; + } + get_extraContent_ts1v1q_k$() { + return this.extraContent; + } + get_bvid_wojq9k_k$() { + return this.bvid; + } + get_adExtra_i6ok70_k$() { + return this.adExtra; + } + get_fragment_bxnb4p_k$() { + return this.fragment; + } + get_fromScene_9nnql5_k$() { + return this.fromScene; + } + component1_7eebsc_k$() { + return this.vod; + } + component2_7eebsb_k$() { + return this.spmid; + } + component3_7eebsa_k$() { + return this.fromSpmid; + } + component4_7eebs9_k$() { + return this.extraContent; + } + component5_7eebs8_k$() { + return this.bvid; + } + component6_7eebs7_k$() { + return this.adExtra; + } + component7_7eebs6_k$() { + return this.fragment; + } + component8_7eebs5_k$() { + return this.fromScene; + } + copy_k2bvsz_k$(vod, spmid, fromSpmid, extraContent, bvid, adExtra, fragment, fromScene) { + return new KPlayViewUniteReq(vod, spmid, fromSpmid, extraContent, bvid, adExtra, fragment, fromScene); + } + copy(vod, spmid, fromSpmid, extraContent, bvid, adExtra, fragment, fromScene, $super) { + vod = vod === VOID ? this.vod : vod; + spmid = spmid === VOID ? this.spmid : spmid; + fromSpmid = fromSpmid === VOID ? this.fromSpmid : fromSpmid; + extraContent = extraContent === VOID ? this.extraContent : extraContent; + bvid = bvid === VOID ? this.bvid : bvid; + adExtra = adExtra === VOID ? this.adExtra : adExtra; + fragment = fragment === VOID ? this.fragment : fragment; + fromScene = fromScene === VOID ? this.fromScene : fromScene; + return this.copy_k2bvsz_k$(vod, spmid, fromSpmid, extraContent, bvid, adExtra, fragment, fromScene); + } + toString() { + return 'KPlayViewUniteReq(vod=' + this.vod + ', spmid=' + this.spmid + ', fromSpmid=' + this.fromSpmid + ', extraContent=' + this.extraContent + ', bvid=' + this.bvid + ', adExtra=' + this.adExtra + ', fragment=' + this.fragment + ', fromScene=' + this.fromScene + ')'; + } + hashCode() { + var result = this.vod == null ? 0 : this.vod.hashCode(); + result = imul(result, 31) + getStringHashCode(this.spmid) | 0; + result = imul(result, 31) + getStringHashCode(this.fromSpmid) | 0; + result = imul(result, 31) + hashCode(this.extraContent) | 0; + result = imul(result, 31) + getStringHashCode(this.bvid) | 0; + result = imul(result, 31) + getStringHashCode(this.adExtra) | 0; + result = imul(result, 31) + (this.fragment == null ? 0 : this.fragment.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.fromScene) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KPlayViewUniteReq)) + return false; + var tmp0_other_with_cast = other instanceof KPlayViewUniteReq ? other : THROW_CCE(); + if (!equals(this.vod, tmp0_other_with_cast.vod)) + return false; + if (!(this.spmid === tmp0_other_with_cast.spmid)) + return false; + if (!(this.fromSpmid === tmp0_other_with_cast.fromSpmid)) + return false; + if (!equals(this.extraContent, tmp0_other_with_cast.extraContent)) + return false; + if (!(this.bvid === tmp0_other_with_cast.bvid)) + return false; + if (!(this.adExtra === tmp0_other_with_cast.adExtra)) + return false; + if (!equals(this.fragment, tmp0_other_with_cast.fragment)) + return false; + if (!(this.fromScene === tmp0_other_with_cast.fromScene)) + return false; + return true; + } + static new_com_bapis_bilibili_app_playerunite_v1_KPlayViewUniteReq_3wlcca_k$(seen1, vod, spmid, fromSpmid, extraContent, bvid, adExtra, fragment, fromScene, serializationConstructorMarker) { + Companion_getInstance_163(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_150().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.vod = null; + else + $this.vod = vod; + if (0 === (seen1 & 2)) + $this.spmid = ''; + else + $this.spmid = spmid; + if (0 === (seen1 & 4)) + $this.fromSpmid = ''; + else + $this.fromSpmid = fromSpmid; + if (0 === (seen1 & 8)) + $this.extraContent = emptyMap(); + else + $this.extraContent = extraContent; + if (0 === (seen1 & 16)) + $this.bvid = ''; + else + $this.bvid = bvid; + if (0 === (seen1 & 32)) + $this.adExtra = ''; + else + $this.adExtra = adExtra; + if (0 === (seen1 & 64)) + $this.fragment = null; + else + $this.fragment = fragment; + if (0 === (seen1 & 128)) + $this.fromScene = ''; + else + $this.fromScene = fromScene; + return $this; + } + } + class Companion_164 { + constructor() { + this.targetPath = '/bilibili.app.playerunite.v1.PlayViewUniteReply'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_151(); + } + } + class $serializer_151 { + constructor() { + $serializer_instance_151 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.playerunite.v1.KPlayViewUniteReply', this, 10); + tmp0_serialDesc.addElement_5pzumi_k$('vodInfo', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('playArcConf', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('playDeviceConf', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('event', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('supplement', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('playArc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('qnTrialInfo', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('history', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('viewInfo', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('fragmentVideo', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_118()), get_nullable($serializer_getInstance_71()), get_nullable($serializer_getInstance_75()), get_nullable($serializer_getInstance_139()), get_nullable($serializer_getInstance()), get_nullable($serializer_getInstance_135()), get_nullable($serializer_getInstance_141()), get_nullable($serializer_getInstance_145()), get_nullable($serializer_getInstance_88()), get_nullable($serializer_getInstance_119())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_local8 = null; + var tmp13_local9 = null; + var tmp14_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp14_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_118(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_71(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_75(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_139(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_135(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_141(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_145(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_88(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 9, $serializer_getInstance_119(), tmp13_local9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + } else + while (tmp1_flag) { + tmp2_index = tmp14_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_118(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_71(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_75(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_139(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_135(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_141(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_145(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_88(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 9, $serializer_getInstance_119(), tmp13_local9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp14_input.endStructure_1xqz0n_k$(tmp0_desc); + return KPlayViewUniteReply.new_com_bapis_bilibili_app_playerunite_v1_KPlayViewUniteReply_941h1u_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, null); + } + serialize_sp9dl6_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.vodInfo == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_118(), value.vodInfo); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.playArcConf == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_71(), value.playArcConf); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.playDeviceConf == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_75(), value.playDeviceConf); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.event == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_139(), value.event); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.supplement == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, $serializer_getInstance(), value.supplement); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.playArc == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 5, $serializer_getInstance_135(), value.playArc); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.qnTrialInfo == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 6, $serializer_getInstance_141(), value.qnTrialInfo); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.history == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 7, $serializer_getInstance_145(), value.history); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.viewInfo == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 8, $serializer_getInstance_88(), value.viewInfo); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.fragmentVideo == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 9, $serializer_getInstance_119(), value.fragmentVideo); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_sp9dl6_k$(encoder, value instanceof KPlayViewUniteReply ? value : THROW_CCE()); + } + } + class KPlayViewUniteReply { + constructor(vodInfo, playArcConf, playDeviceConf, event, supplement, playArc, qnTrialInfo, history, viewInfo, fragmentVideo) { + Companion_instance_164; + vodInfo = vodInfo === VOID ? null : vodInfo; + playArcConf = playArcConf === VOID ? null : playArcConf; + playDeviceConf = playDeviceConf === VOID ? null : playDeviceConf; + event = event === VOID ? null : event; + supplement = supplement === VOID ? null : supplement; + playArc = playArc === VOID ? null : playArc; + qnTrialInfo = qnTrialInfo === VOID ? null : qnTrialInfo; + history = history === VOID ? null : history; + viewInfo = viewInfo === VOID ? null : viewInfo; + fragmentVideo = fragmentVideo === VOID ? null : fragmentVideo; + this.vodInfo = vodInfo; + this.playArcConf = playArcConf; + this.playDeviceConf = playDeviceConf; + this.event = event; + this.supplement = supplement; + this.playArc = playArc; + this.qnTrialInfo = qnTrialInfo; + this.history = history; + this.viewInfo = viewInfo; + this.fragmentVideo = fragmentVideo; + } + get_vodInfo_bkwi7k_k$() { + return this.vodInfo; + } + get_playArcConf_819ew7_k$() { + return this.playArcConf; + } + get_playDeviceConf_b0k3k9_k$() { + return this.playDeviceConf; + } + get_event_ir25pt_k$() { + return this.event; + } + get_supplement_vy5k1q_k$() { + return this.supplement; + } + get_playArc_6wbnu3_k$() { + return this.playArc; + } + get_qnTrialInfo_bgzwm6_k$() { + return this.qnTrialInfo; + } + get_history_glfd0r_k$() { + return this.history; + } + get_viewInfo_c15jr8_k$() { + return this.viewInfo; + } + get_fragmentVideo_fk84ke_k$() { + return this.fragmentVideo; + } + component1_7eebsc_k$() { + return this.vodInfo; + } + component2_7eebsb_k$() { + return this.playArcConf; + } + component3_7eebsa_k$() { + return this.playDeviceConf; + } + component4_7eebs9_k$() { + return this.event; + } + component5_7eebs8_k$() { + return this.supplement; + } + component6_7eebs7_k$() { + return this.playArc; + } + component7_7eebs6_k$() { + return this.qnTrialInfo; + } + component8_7eebs5_k$() { + return this.history; + } + component9_7eebs4_k$() { + return this.viewInfo; + } + component10_gazzfo_k$() { + return this.fragmentVideo; + } + copy_3j0qe5_k$(vodInfo, playArcConf, playDeviceConf, event, supplement, playArc, qnTrialInfo, history, viewInfo, fragmentVideo) { + return new KPlayViewUniteReply(vodInfo, playArcConf, playDeviceConf, event, supplement, playArc, qnTrialInfo, history, viewInfo, fragmentVideo); + } + copy(vodInfo, playArcConf, playDeviceConf, event, supplement, playArc, qnTrialInfo, history, viewInfo, fragmentVideo, $super) { + vodInfo = vodInfo === VOID ? this.vodInfo : vodInfo; + playArcConf = playArcConf === VOID ? this.playArcConf : playArcConf; + playDeviceConf = playDeviceConf === VOID ? this.playDeviceConf : playDeviceConf; + event = event === VOID ? this.event : event; + supplement = supplement === VOID ? this.supplement : supplement; + playArc = playArc === VOID ? this.playArc : playArc; + qnTrialInfo = qnTrialInfo === VOID ? this.qnTrialInfo : qnTrialInfo; + history = history === VOID ? this.history : history; + viewInfo = viewInfo === VOID ? this.viewInfo : viewInfo; + fragmentVideo = fragmentVideo === VOID ? this.fragmentVideo : fragmentVideo; + return this.copy_3j0qe5_k$(vodInfo, playArcConf, playDeviceConf, event, supplement, playArc, qnTrialInfo, history, viewInfo, fragmentVideo); + } + toString() { + return 'KPlayViewUniteReply(vodInfo=' + this.vodInfo + ', playArcConf=' + this.playArcConf + ', playDeviceConf=' + this.playDeviceConf + ', event=' + this.event + ', supplement=' + this.supplement + ', playArc=' + this.playArc + ', qnTrialInfo=' + this.qnTrialInfo + ', history=' + this.history + ', viewInfo=' + this.viewInfo + ', fragmentVideo=' + this.fragmentVideo + ')'; + } + hashCode() { + var result = this.vodInfo == null ? 0 : this.vodInfo.hashCode(); + result = imul(result, 31) + (this.playArcConf == null ? 0 : this.playArcConf.hashCode()) | 0; + result = imul(result, 31) + (this.playDeviceConf == null ? 0 : this.playDeviceConf.hashCode()) | 0; + result = imul(result, 31) + (this.event == null ? 0 : this.event.hashCode()) | 0; + result = imul(result, 31) + (this.supplement == null ? 0 : this.supplement.hashCode()) | 0; + result = imul(result, 31) + (this.playArc == null ? 0 : this.playArc.hashCode()) | 0; + result = imul(result, 31) + (this.qnTrialInfo == null ? 0 : this.qnTrialInfo.hashCode()) | 0; + result = imul(result, 31) + (this.history == null ? 0 : this.history.hashCode()) | 0; + result = imul(result, 31) + (this.viewInfo == null ? 0 : this.viewInfo.hashCode()) | 0; + result = imul(result, 31) + (this.fragmentVideo == null ? 0 : this.fragmentVideo.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KPlayViewUniteReply)) + return false; + var tmp0_other_with_cast = other instanceof KPlayViewUniteReply ? other : THROW_CCE(); + if (!equals(this.vodInfo, tmp0_other_with_cast.vodInfo)) + return false; + if (!equals(this.playArcConf, tmp0_other_with_cast.playArcConf)) + return false; + if (!equals(this.playDeviceConf, tmp0_other_with_cast.playDeviceConf)) + return false; + if (!equals(this.event, tmp0_other_with_cast.event)) + return false; + if (!equals(this.supplement, tmp0_other_with_cast.supplement)) + return false; + if (!equals(this.playArc, tmp0_other_with_cast.playArc)) + return false; + if (!equals(this.qnTrialInfo, tmp0_other_with_cast.qnTrialInfo)) + return false; + if (!equals(this.history, tmp0_other_with_cast.history)) + return false; + if (!equals(this.viewInfo, tmp0_other_with_cast.viewInfo)) + return false; + if (!equals(this.fragmentVideo, tmp0_other_with_cast.fragmentVideo)) + return false; + return true; + } + static new_com_bapis_bilibili_app_playerunite_v1_KPlayViewUniteReply_941h1u_k$(seen1, vodInfo, playArcConf, playDeviceConf, event, supplement, playArc, qnTrialInfo, history, viewInfo, fragmentVideo, serializationConstructorMarker) { + Companion_instance_164; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_151().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.vodInfo = null; + else + $this.vodInfo = vodInfo; + if (0 === (seen1 & 2)) + $this.playArcConf = null; + else + $this.playArcConf = playArcConf; + if (0 === (seen1 & 4)) + $this.playDeviceConf = null; + else + $this.playDeviceConf = playDeviceConf; + if (0 === (seen1 & 8)) + $this.event = null; + else + $this.event = event; + if (0 === (seen1 & 16)) + $this.supplement = null; + else + $this.supplement = supplement; + if (0 === (seen1 & 32)) + $this.playArc = null; + else + $this.playArc = playArc; + if (0 === (seen1 & 64)) + $this.qnTrialInfo = null; + else + $this.qnTrialInfo = qnTrialInfo; + if (0 === (seen1 & 128)) + $this.history = null; + else + $this.history = history; + if (0 === (seen1 & 256)) + $this.viewInfo = null; + else + $this.viewInfo = viewInfo; + if (0 === (seen1 & 512)) + $this.fragmentVideo = null; + else + $this.fragmentVideo = fragmentVideo; + return $this; + } + } + class Companion_165 { + constructor() { + this.targetPath = '/bilibili.app.archive.middleware.v1.PlayerArgs'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_152(); + } + } + class $serializer_152 { + constructor() { + $serializer_instance_152 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.archive.middleware.v1.KPlayerArgs', this, 5); + tmp0_serialDesc.addElement_5pzumi_k$('qn', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('fnver', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('fnval', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('forceHost', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('voiceBalance', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = new Long(0, 0); + var tmp6_local2 = new Long(0, 0); + var tmp7_local3 = new Long(0, 0); + var tmp8_local4 = new Long(0, 0); + var tmp9_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp9_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + } else + while (tmp1_flag) { + tmp2_index = tmp9_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp9_input.endStructure_1xqz0n_k$(tmp0_desc); + return KPlayerArgs.new_com_bapis_bilibili_app_archive_middleware_v1_KPlayerArgs_cfw3bj_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); + } + serialize_40patr_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.qn.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.qn); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.fnver.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.fnver); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.fnval.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.fnval); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !value.forceHost.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 3, value.forceHost); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !value.voiceBalance.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 4, value.voiceBalance); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_40patr_k$(encoder, value instanceof KPlayerArgs ? value : THROW_CCE()); + } + } + class KPlayerArgs { + constructor(qn, fnver, fnval, forceHost, voiceBalance) { + Companion_instance_165; + qn = qn === VOID ? new Long(0, 0) : qn; + fnver = fnver === VOID ? new Long(0, 0) : fnver; + fnval = fnval === VOID ? new Long(0, 0) : fnval; + forceHost = forceHost === VOID ? new Long(0, 0) : forceHost; + voiceBalance = voiceBalance === VOID ? new Long(0, 0) : voiceBalance; + this.qn = qn; + this.fnver = fnver; + this.fnval = fnval; + this.forceHost = forceHost; + this.voiceBalance = voiceBalance; + } + get_qn_kntnq2_k$() { + return this.qn; + } + get_fnver_irh6sy_k$() { + return this.fnver; + } + get_fnval_irh6pc_k$() { + return this.fnval; + } + get_forceHost_xs29oq_k$() { + return this.forceHost; + } + get_voiceBalance_bhbot_k$() { + return this.voiceBalance; + } + component1_7eebsc_k$() { + return this.qn; + } + component2_7eebsb_k$() { + return this.fnver; + } + component3_7eebsa_k$() { + return this.fnval; + } + component4_7eebs9_k$() { + return this.forceHost; + } + component5_7eebs8_k$() { + return this.voiceBalance; + } + copy_vok3aj_k$(qn, fnver, fnval, forceHost, voiceBalance) { + return new KPlayerArgs(qn, fnver, fnval, forceHost, voiceBalance); + } + copy(qn, fnver, fnval, forceHost, voiceBalance, $super) { + qn = qn === VOID ? this.qn : qn; + fnver = fnver === VOID ? this.fnver : fnver; + fnval = fnval === VOID ? this.fnval : fnval; + forceHost = forceHost === VOID ? this.forceHost : forceHost; + voiceBalance = voiceBalance === VOID ? this.voiceBalance : voiceBalance; + return this.copy_vok3aj_k$(qn, fnver, fnval, forceHost, voiceBalance); + } + toString() { + return 'KPlayerArgs(qn=' + this.qn.toString() + ', fnver=' + this.fnver.toString() + ', fnval=' + this.fnval.toString() + ', forceHost=' + this.forceHost.toString() + ', voiceBalance=' + this.voiceBalance.toString() + ')'; + } + hashCode() { + var result = this.qn.hashCode(); + result = imul(result, 31) + this.fnver.hashCode() | 0; + result = imul(result, 31) + this.fnval.hashCode() | 0; + result = imul(result, 31) + this.forceHost.hashCode() | 0; + result = imul(result, 31) + this.voiceBalance.hashCode() | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KPlayerArgs)) + return false; + var tmp0_other_with_cast = other instanceof KPlayerArgs ? other : THROW_CCE(); + if (!this.qn.equals(tmp0_other_with_cast.qn)) + return false; + if (!this.fnver.equals(tmp0_other_with_cast.fnver)) + return false; + if (!this.fnval.equals(tmp0_other_with_cast.fnval)) + return false; + if (!this.forceHost.equals(tmp0_other_with_cast.forceHost)) + return false; + if (!this.voiceBalance.equals(tmp0_other_with_cast.voiceBalance)) + return false; + return true; + } + static new_com_bapis_bilibili_app_archive_middleware_v1_KPlayerArgs_cfw3bj_k$(seen1, qn, fnver, fnval, forceHost, voiceBalance, serializationConstructorMarker) { + Companion_instance_165; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_152().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.qn = new Long(0, 0); + else + $this.qn = qn; + if (0 === (seen1 & 2)) + $this.fnver = new Long(0, 0); + else + $this.fnver = fnver; + if (0 === (seen1 & 4)) + $this.fnval = new Long(0, 0); + else + $this.fnval = fnval; + if (0 === (seen1 & 8)) + $this.forceHost = new Long(0, 0); + else + $this.forceHost = forceHost; + if (0 === (seen1 & 16)) + $this.voiceBalance = new Long(0, 0); + else + $this.voiceBalance = voiceBalance; + return $this; + } + } + class Companion_166 { + constructor() { + this.targetPath = '/bilibili.dagw.component.avatar.common.SizeSpec'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_153(); + } + } + class $serializer_153 { + constructor() { + $serializer_instance_153 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.dagw.component.avatar.common.KSizeSpec', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('width', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('height', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [DoubleSerializer_getInstance(), DoubleSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0.0; + var tmp5_local1 = 0.0; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeDoubleElement_isei84_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeDoubleElement_isei84_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeDoubleElement_isei84_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeDoubleElement_isei84_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSizeSpec.new_com_bapis_bilibili_dagw_component_avatar_common_KSizeSpec_aj0wap_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_qjzr3v_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.width, 0.0)) { + tmp1_output.encodeDoubleElement_a6rqhe_k$(tmp0_desc, 0, value.width); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !equals(value.height, 0.0)) { + tmp1_output.encodeDoubleElement_a6rqhe_k$(tmp0_desc, 1, value.height); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_qjzr3v_k$(encoder, value instanceof KSizeSpec ? value : THROW_CCE()); + } + } + class KSizeSpec { + constructor(width, height) { + Companion_instance_166; + width = width === VOID ? 0.0 : width; + height = height === VOID ? 0.0 : height; + this.width = width; + this.height = height; + } + get_width_j0q4yl_k$() { + return this.width; + } + get_height_e7t92o_k$() { + return this.height; + } + component1_7eebsc_k$() { + return this.width; + } + component2_7eebsb_k$() { + return this.height; + } + copy_6r5gqz_k$(width, height) { + return new KSizeSpec(width, height); + } + copy(width, height, $super) { + width = width === VOID ? this.width : width; + height = height === VOID ? this.height : height; + return this.copy_6r5gqz_k$(width, height); + } + toString() { + return 'KSizeSpec(width=' + this.width + ', height=' + this.height + ')'; + } + hashCode() { + var result = getNumberHashCode(this.width); + result = imul(result, 31) + getNumberHashCode(this.height) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSizeSpec)) + return false; + var tmp0_other_with_cast = other instanceof KSizeSpec ? other : THROW_CCE(); + if (!equals(this.width, tmp0_other_with_cast.width)) + return false; + if (!equals(this.height, tmp0_other_with_cast.height)) + return false; + return true; + } + static new_com_bapis_bilibili_dagw_component_avatar_common_KSizeSpec_aj0wap_k$(seen1, width, height, serializationConstructorMarker) { + Companion_instance_166; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_153().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.width = 0.0; + else + $this.width = width; + if (0 === (seen1 & 2)) + $this.height = 0.0; + else + $this.height = height; + return $this; + } + } + class Companion_167 { + constructor() { + Companion_instance_167 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KPositionSpec$KCoordinatePos$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KPositionSpec$KCoordinatePos$Companion$_anonymous__9ejsuv); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_30(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.dagw.component.avatar.common.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KCoordinatePos_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.dagw.component.avatar.common.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KCoordinatePos with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_30(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_154 { + constructor() { + $serializer_instance_154 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.dagw.component.avatar.common.KPositionSpec.KCoordinatePos', 4); + tmp0_serialDesc.addElement_5pzumi_k$('INVALID_COORDINATE', false); + tmp0_serialDesc.addElement_5pzumi_k$('DEFAULT_COORDINATE', false); + tmp0_serialDesc.addElement_5pzumi_k$('CENTRAL_COORDINATE', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_30()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_kuwvid_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_kuwvid_k$(encoder, value instanceof KCoordinatePos ? value : THROW_CCE()); + } + } + class KCoordinatePos extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_168 { + constructor() { + this.targetPath = '/bilibili.dagw.component.avatar.common.PositionSpec'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_155(); + } + } + class $serializer_155 { + constructor() { + $serializer_instance_155 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.dagw.component.avatar.common.KPositionSpec', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('coordinatePos', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('axisX', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('axisY', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), DoubleSerializer_getInstance(), DoubleSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = 0.0; + var tmp6_local2 = 0.0; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeDoubleElement_isei84_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeDoubleElement_isei84_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeDoubleElement_isei84_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeDoubleElement_isei84_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KPositionSpec.new_com_bapis_bilibili_dagw_component_avatar_common_KPositionSpec_16gs9l_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_qcks0j_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.coordinatePos === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.coordinatePos); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !equals(value.axisX, 0.0)) { + tmp1_output.encodeDoubleElement_a6rqhe_k$(tmp0_desc, 1, value.axisX); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !equals(value.axisY, 0.0)) { + tmp1_output.encodeDoubleElement_a6rqhe_k$(tmp0_desc, 2, value.axisY); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_qcks0j_k$(encoder, value instanceof KPositionSpec ? value : THROW_CCE()); + } + } + class KPositionSpec { + constructor(coordinatePos, axisX, axisY) { + Companion_instance_168; + coordinatePos = coordinatePos === VOID ? 0 : coordinatePos; + axisX = axisX === VOID ? 0.0 : axisX; + axisY = axisY === VOID ? 0.0 : axisY; + this.coordinatePos = coordinatePos; + this.axisX = axisX; + this.axisY = axisY; + } + get_coordinatePos_cekcq5_k$() { + return this.coordinatePos; + } + get_axisX_iowcdq_k$() { + return this.axisX; + } + get_axisY_iowcdr_k$() { + return this.axisY; + } + coordinatePosEnum() { + return Companion_getInstance_167().fromValue(this.coordinatePos); + } + component1_7eebsc_k$() { + return this.coordinatePos; + } + component2_7eebsb_k$() { + return this.axisX; + } + component3_7eebsa_k$() { + return this.axisY; + } + copy_sh1u4d_k$(coordinatePos, axisX, axisY) { + return new KPositionSpec(coordinatePos, axisX, axisY); + } + copy(coordinatePos, axisX, axisY, $super) { + coordinatePos = coordinatePos === VOID ? this.coordinatePos : coordinatePos; + axisX = axisX === VOID ? this.axisX : axisX; + axisY = axisY === VOID ? this.axisY : axisY; + return this.copy_sh1u4d_k$(coordinatePos, axisX, axisY); + } + toString() { + return 'KPositionSpec(coordinatePos=' + this.coordinatePos + ', axisX=' + this.axisX + ', axisY=' + this.axisY + ')'; + } + hashCode() { + var result = this.coordinatePos; + result = imul(result, 31) + getNumberHashCode(this.axisX) | 0; + result = imul(result, 31) + getNumberHashCode(this.axisY) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KPositionSpec)) + return false; + var tmp0_other_with_cast = other instanceof KPositionSpec ? other : THROW_CCE(); + if (!(this.coordinatePos === tmp0_other_with_cast.coordinatePos)) + return false; + if (!equals(this.axisX, tmp0_other_with_cast.axisX)) + return false; + if (!equals(this.axisY, tmp0_other_with_cast.axisY)) + return false; + return true; + } + static new_com_bapis_bilibili_dagw_component_avatar_common_KPositionSpec_16gs9l_k$(seen1, coordinatePos, axisX, axisY, serializationConstructorMarker) { + Companion_instance_168; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_155().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.coordinatePos = 0; + else + $this.coordinatePos = coordinatePos; + if (0 === (seen1 & 2)) + $this.axisX = 0.0; + else + $this.axisX = axisX; + if (0 === (seen1 & 4)) + $this.axisY = 0.0; + else + $this.axisY = axisY; + return $this; + } + } + class Companion_169 { + constructor() { + this.targetPath = '/bilibili.dagw.component.avatar.common.BasicRenderSpec'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_156(); + } + } + class $serializer_156 { + constructor() { + $serializer_instance_156 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.dagw.component.avatar.common.KBasicRenderSpec', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('opacity', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [DoubleSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0.0; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeDoubleElement_isei84_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeDoubleElement_isei84_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KBasicRenderSpec.new_com_bapis_bilibili_dagw_component_avatar_common_KBasicRenderSpec_uwebta_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_bzj4hc_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.opacity, 0.0)) { + tmp1_output.encodeDoubleElement_a6rqhe_k$(tmp0_desc, 0, value.opacity); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_bzj4hc_k$(encoder, value instanceof KBasicRenderSpec ? value : THROW_CCE()); + } + } + class KBasicRenderSpec { + constructor(opacity) { + Companion_instance_169; + opacity = opacity === VOID ? 0.0 : opacity; + this.opacity = opacity; + } + get_opacity_jowogu_k$() { + return this.opacity; + } + component1_7eebsc_k$() { + return this.opacity; + } + copy_rpdqz3_k$(opacity) { + return new KBasicRenderSpec(opacity); + } + copy(opacity, $super) { + opacity = opacity === VOID ? this.opacity : opacity; + return this.copy_rpdqz3_k$(opacity); + } + toString() { + return 'KBasicRenderSpec(opacity=' + this.opacity + ')'; + } + hashCode() { + return getNumberHashCode(this.opacity); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KBasicRenderSpec)) + return false; + var tmp0_other_with_cast = other instanceof KBasicRenderSpec ? other : THROW_CCE(); + if (!equals(this.opacity, tmp0_other_with_cast.opacity)) + return false; + return true; + } + static new_com_bapis_bilibili_dagw_component_avatar_common_KBasicRenderSpec_uwebta_k$(seen1, opacity, serializationConstructorMarker) { + Companion_instance_169; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_156().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.opacity = 0.0; + else + $this.opacity = opacity; + return $this; + } + } + class Companion_170 { + constructor() { + this.targetPath = '/bilibili.dagw.component.avatar.common.LayerGeneralSpec'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_157(); + } + } + class $serializer_157 { + constructor() { + $serializer_instance_157 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.dagw.component.avatar.common.KLayerGeneralSpec', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('posSpec', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('sizeSpec', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('renderSpec', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_155()), get_nullable($serializer_getInstance_153()), get_nullable($serializer_getInstance_156())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_155(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_153(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_156(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_155(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_153(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_156(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KLayerGeneralSpec.new_com_bapis_bilibili_dagw_component_avatar_common_KLayerGeneralSpec_e2j4kr_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_lqhamz_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.posSpec == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_155(), value.posSpec); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.sizeSpec == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_153(), value.sizeSpec); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.renderSpec == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_156(), value.renderSpec); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_lqhamz_k$(encoder, value instanceof KLayerGeneralSpec ? value : THROW_CCE()); + } + } + class KLayerGeneralSpec { + constructor(posSpec, sizeSpec, renderSpec) { + Companion_instance_170; + posSpec = posSpec === VOID ? null : posSpec; + sizeSpec = sizeSpec === VOID ? null : sizeSpec; + renderSpec = renderSpec === VOID ? null : renderSpec; + this.posSpec = posSpec; + this.sizeSpec = sizeSpec; + this.renderSpec = renderSpec; + } + get_posSpec_57xsxm_k$() { + return this.posSpec; + } + get_sizeSpec_hsoq1n_k$() { + return this.sizeSpec; + } + get_renderSpec_fc64m_k$() { + return this.renderSpec; + } + component1_7eebsc_k$() { + return this.posSpec; + } + component2_7eebsb_k$() { + return this.sizeSpec; + } + component3_7eebsa_k$() { + return this.renderSpec; + } + copy_e07jix_k$(posSpec, sizeSpec, renderSpec) { + return new KLayerGeneralSpec(posSpec, sizeSpec, renderSpec); + } + copy(posSpec, sizeSpec, renderSpec, $super) { + posSpec = posSpec === VOID ? this.posSpec : posSpec; + sizeSpec = sizeSpec === VOID ? this.sizeSpec : sizeSpec; + renderSpec = renderSpec === VOID ? this.renderSpec : renderSpec; + return this.copy_e07jix_k$(posSpec, sizeSpec, renderSpec); + } + toString() { + return 'KLayerGeneralSpec(posSpec=' + this.posSpec + ', sizeSpec=' + this.sizeSpec + ', renderSpec=' + this.renderSpec + ')'; + } + hashCode() { + var result = this.posSpec == null ? 0 : this.posSpec.hashCode(); + result = imul(result, 31) + (this.sizeSpec == null ? 0 : this.sizeSpec.hashCode()) | 0; + result = imul(result, 31) + (this.renderSpec == null ? 0 : this.renderSpec.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KLayerGeneralSpec)) + return false; + var tmp0_other_with_cast = other instanceof KLayerGeneralSpec ? other : THROW_CCE(); + if (!equals(this.posSpec, tmp0_other_with_cast.posSpec)) + return false; + if (!equals(this.sizeSpec, tmp0_other_with_cast.sizeSpec)) + return false; + if (!equals(this.renderSpec, tmp0_other_with_cast.renderSpec)) + return false; + return true; + } + static new_com_bapis_bilibili_dagw_component_avatar_common_KLayerGeneralSpec_e2j4kr_k$(seen1, posSpec, sizeSpec, renderSpec, serializationConstructorMarker) { + Companion_instance_170; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_157().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.posSpec = null; + else + $this.posSpec = posSpec; + if (0 === (seen1 & 2)) + $this.sizeSpec = null; + else + $this.sizeSpec = sizeSpec; + if (0 === (seen1 & 4)) + $this.renderSpec = null; + else + $this.renderSpec = renderSpec; + return $this; + } + } + class Companion_171 { + constructor() { + Companion_instance_171 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KResourceSource$KSourceType$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KResourceSource$KSourceType$Companion$_anonymous__o31r29); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_31(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.dagw.component.avatar.common.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KSourceType_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.dagw.component.avatar.common.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KSourceType with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_31(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_158 { + constructor() { + $serializer_instance_158 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.dagw.component.avatar.common.KResourceSource.KSourceType', 5); + tmp0_serialDesc.addElement_5pzumi_k$('SRC_TYPE_INVALID', false); + tmp0_serialDesc.addElement_5pzumi_k$('SRC_TYPE_URL', false); + tmp0_serialDesc.addElement_5pzumi_k$('SRC_TYPE_LOCAL', false); + tmp0_serialDesc.addElement_5pzumi_k$('SRC_TYPE_DRAW', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_31()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_lsfdul_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_lsfdul_k$(encoder, value instanceof KSourceType ? value : THROW_CCE()); + } + } + class Companion_172 { + constructor() { + Companion_instance_172 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KResourceSource$KLocalRes$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KResourceSource$KLocalRes$Companion$_anonymous__1s0q4h); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_32(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.dagw.component.avatar.common.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KLocalRes_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.dagw.component.avatar.common.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KLocalRes with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_32(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_159 { + constructor() { + $serializer_instance_159 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.dagw.component.avatar.common.KResourceSource.KLocalRes', 8); + tmp0_serialDesc.addElement_5pzumi_k$('INVALID', false); + tmp0_serialDesc.addElement_5pzumi_k$('ICON_VIP', false); + tmp0_serialDesc.addElement_5pzumi_k$('ICON_SMALL_VIP', false); + tmp0_serialDesc.addElement_5pzumi_k$('ICON_PERSONAL_VERIFY', false); + tmp0_serialDesc.addElement_5pzumi_k$('ICON_ENTERPRISE_VERIFY', false); + tmp0_serialDesc.addElement_5pzumi_k$('ICON_NFT_MAINLAND', false); + tmp0_serialDesc.addElement_5pzumi_k$('DEFAULT_AVATAR', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_32()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_kf3zab_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_kf3zab_k$(encoder, value instanceof KLocalRes ? value : THROW_CCE()); + } + } + class KRes { + constructor(value) { + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + } + class KRemote extends KRes { + constructor() { + KRemote_instance = null; + super(0); + KRemote_instance = this; + } + } + class KLocal extends KRes { + constructor() { + KLocal_instance = null; + super(1); + KLocal_instance = this; + } + } + class KDraw extends KRes { + constructor() { + KDraw_instance = null; + super(2); + KDraw_instance = this; + } + } + class Companion_173 { + constructor() { + Companion_instance_173 = this; + var tmp = this; + tmp.resValues$delegate_1 = lazy_0(KResourceSource$Companion$resValues$delegate$lambda); + this.targetPath = '/bilibili.dagw.component.avatar.common.ResourceSource'; + } + get_resValues_ylqvqx_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.resValues$delegate_1; + var thisRef = this; + var property = resValues$factory(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_160(); + } + get resValues() { + return this.get_resValues_ylqvqx_k$(); + } + } + class KSourceType extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class KLocalRes extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class $serializer_160 { + constructor() { + $serializer_instance_160 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.dagw.component.avatar.common.KResourceSource', this, 5); + tmp0_serialDesc.addElement_5pzumi_k$('srcType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('placeholder', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('remote', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('local', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('draw', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), IntSerializer_getInstance(), get_nullable($serializer_getInstance_162()), get_nullable(IntSerializer_getInstance()), get_nullable($serializer_getInstance_165())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = 0; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_transient0 = 0; + var tmp10_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp10_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_162(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, IntSerializer_getInstance(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_165(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + } else + while (tmp1_flag) { + tmp2_index = tmp10_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_162(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, IntSerializer_getInstance(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_165(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp10_input.endStructure_1xqz0n_k$(tmp0_desc); + return KResourceSource.new_com_bapis_bilibili_dagw_component_avatar_common_KResourceSource_ci2wru_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); + } + serialize_edysnm_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.srcType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.srcType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.placeholder === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.placeholder); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.remote_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_162(), value.remote_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.local_1 === 0)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, IntSerializer_getInstance(), value.local_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.draw_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, $serializer_getInstance_165(), value.draw_1); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_edysnm_k$(encoder, value instanceof KResourceSource ? value : THROW_CCE()); + } + } + class KResourceSource { + constructor(srcType, placeholder, remote, local, draw) { + Companion_getInstance_173(); + srcType = srcType === VOID ? 0 : srcType; + placeholder = placeholder === VOID ? 0 : placeholder; + remote = remote === VOID ? null : remote; + local = local === VOID ? 0 : local; + draw = draw === VOID ? null : draw; + this.srcType = srcType; + this.placeholder = placeholder; + this.remote_1 = remote; + this.local_1 = local; + this.draw_1 = draw; + var tmp = this; + tmp.resNumber$delegate_1 = lazy_0(KResourceSource$resNumber$delegate$lambda(this)); + } + get_srcType_v1i0mj_k$() { + return this.srcType; + } + get_placeholder_nsdr0q_k$() { + return this.placeholder; + } + resValue() { + if (!(this.remote_1 == null)) { + var tmp = this.remote_1; + return (tmp == null ? true : !(tmp == null)) ? tmp : null; + } else if (!(this.local_1 == null)) { + var tmp_0 = this.local_1; + return (tmp_0 == null ? true : !(tmp_0 == null)) ? tmp_0 : null; + } else if (!(this.draw_1 == null)) { + var tmp_1 = this.draw_1; + return (tmp_1 == null ? true : !(tmp_1 == null)) ? tmp_1 : null; + } else { + return null; + } + } + resTypeJs() { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = Companion_getInstance_173().resValues; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.dagw.component.avatar.common.KResourceSource.resType.' call + var it = element; + tmp$ret$0 = it.value === _get_resNumber__v3uo48(this); + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + return tmp$ret$1; + } + srcTypeEnum() { + return Companion_getInstance_171().fromValue(this.srcType); + } + placeholderEnum() { + return Companion_getInstance_172().fromValue(this.placeholder); + } + component1_7eebsc_k$() { + return this.srcType; + } + component2_7eebsb_k$() { + return this.placeholder; + } + copy_dmkmj9_k$(srcType, placeholder, remote, local, draw) { + return new KResourceSource(srcType, placeholder, remote, local, draw); + } + copy(srcType, placeholder, remote, local, draw, $super) { + srcType = srcType === VOID ? this.srcType : srcType; + placeholder = placeholder === VOID ? this.placeholder : placeholder; + remote = remote === VOID ? this.remote_1 : remote; + local = local === VOID ? this.local_1 : local; + draw = draw === VOID ? this.draw_1 : draw; + return this.copy_dmkmj9_k$(srcType, placeholder, remote, local, draw); + } + toString() { + return 'KResourceSource(srcType=' + this.srcType + ', placeholder=' + this.placeholder + ', remote=' + this.remote_1 + ', local=' + this.local_1 + ', draw=' + this.draw_1 + ')'; + } + hashCode() { + var result = this.srcType; + result = imul(result, 31) + this.placeholder | 0; + result = imul(result, 31) + (this.remote_1 == null ? 0 : this.remote_1.hashCode()) | 0; + result = imul(result, 31) + (this.local_1 == null ? 0 : this.local_1) | 0; + result = imul(result, 31) + (this.draw_1 == null ? 0 : this.draw_1.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KResourceSource)) + return false; + var tmp0_other_with_cast = other instanceof KResourceSource ? other : THROW_CCE(); + if (!(this.srcType === tmp0_other_with_cast.srcType)) + return false; + if (!(this.placeholder === tmp0_other_with_cast.placeholder)) + return false; + if (!equals(this.remote_1, tmp0_other_with_cast.remote_1)) + return false; + if (!(this.local_1 == tmp0_other_with_cast.local_1)) + return false; + if (!equals(this.draw_1, tmp0_other_with_cast.draw_1)) + return false; + return true; + } + static new_com_bapis_bilibili_dagw_component_avatar_common_KResourceSource_ci2wru_k$(seen1, srcType, placeholder, remote, local, draw, serializationConstructorMarker) { + Companion_getInstance_173(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_160().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.srcType = 0; + else + $this.srcType = srcType; + if (0 === (seen1 & 2)) + $this.placeholder = 0; + else + $this.placeholder = placeholder; + if (0 === (seen1 & 4)) + $this.remote_1 = null; + else + $this.remote_1 = remote; + if (0 === (seen1 & 8)) + $this.local_1 = 0; + else + $this.local_1 = local; + if (0 === (seen1 & 16)) + $this.draw_1 = null; + else + $this.draw_1 = draw; + var tmp = $this; + tmp.resNumber$delegate_1 = lazy_0(KResourceSource$_init_$lambda_v5xdop($this)); + return $this; + } + } + class Companion_174 { + constructor() { + this.targetPath = '/bilibili.dagw.component.avatar.common.MaskProperty'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_161(); + } + } + class $serializer_161 { + constructor() { + $serializer_instance_161 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.dagw.component.avatar.common.KMaskProperty', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('generalSpec', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('maskSrc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_157()), get_nullable($serializer_getInstance_160())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_157(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_160(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_157(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_160(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KMaskProperty.new_com_bapis_bilibili_dagw_component_avatar_common_KMaskProperty_4bnoub_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_42ska2_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.generalSpec == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_157(), value.generalSpec); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.maskSrc == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_160(), value.maskSrc); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_42ska2_k$(encoder, value instanceof KMaskProperty ? value : THROW_CCE()); + } + } + class KMaskProperty { + constructor(generalSpec, maskSrc) { + Companion_instance_174; + generalSpec = generalSpec === VOID ? null : generalSpec; + maskSrc = maskSrc === VOID ? null : maskSrc; + this.generalSpec = generalSpec; + this.maskSrc = maskSrc; + } + get_generalSpec_sfffx6_k$() { + return this.generalSpec; + } + get_maskSrc_f5rfcf_k$() { + return this.maskSrc; + } + component1_7eebsc_k$() { + return this.generalSpec; + } + component2_7eebsb_k$() { + return this.maskSrc; + } + copy_u07vl6_k$(generalSpec, maskSrc) { + return new KMaskProperty(generalSpec, maskSrc); + } + copy(generalSpec, maskSrc, $super) { + generalSpec = generalSpec === VOID ? this.generalSpec : generalSpec; + maskSrc = maskSrc === VOID ? this.maskSrc : maskSrc; + return this.copy_u07vl6_k$(generalSpec, maskSrc); + } + toString() { + return 'KMaskProperty(generalSpec=' + this.generalSpec + ', maskSrc=' + this.maskSrc + ')'; + } + hashCode() { + var result = this.generalSpec == null ? 0 : this.generalSpec.hashCode(); + result = imul(result, 31) + (this.maskSrc == null ? 0 : this.maskSrc.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KMaskProperty)) + return false; + var tmp0_other_with_cast = other instanceof KMaskProperty ? other : THROW_CCE(); + if (!equals(this.generalSpec, tmp0_other_with_cast.generalSpec)) + return false; + if (!equals(this.maskSrc, tmp0_other_with_cast.maskSrc)) + return false; + return true; + } + static new_com_bapis_bilibili_dagw_component_avatar_common_KMaskProperty_4bnoub_k$(seen1, generalSpec, maskSrc, serializationConstructorMarker) { + Companion_instance_174; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_161().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.generalSpec = null; + else + $this.generalSpec = generalSpec; + if (0 === (seen1 & 2)) + $this.maskSrc = null; + else + $this.maskSrc = maskSrc; + return $this; + } + } + class Companion_175 { + constructor() { + this.targetPath = '/bilibili.dagw.component.avatar.common.RemoteRes'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_162(); + } + } + class $serializer_162 { + constructor() { + $serializer_instance_162 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.dagw.component.avatar.common.KRemoteRes', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('url', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('bfsStyle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KRemoteRes.new_com_bapis_bilibili_dagw_component_avatar_common_KRemoteRes_ku87nx_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_9i9wvf_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.url === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.url); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.bfsStyle === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.bfsStyle); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_9i9wvf_k$(encoder, value instanceof KRemoteRes ? value : THROW_CCE()); + } + } + class KRemoteRes { + constructor(url, bfsStyle) { + Companion_instance_175; + url = url === VOID ? '' : url; + bfsStyle = bfsStyle === VOID ? '' : bfsStyle; + this.url = url; + this.bfsStyle = bfsStyle; + } + get_url_18iuii_k$() { + return this.url; + } + get_bfsStyle_cusf0r_k$() { + return this.bfsStyle; + } + component1_7eebsc_k$() { + return this.url; + } + component2_7eebsb_k$() { + return this.bfsStyle; + } + copy_plwnsl_k$(url, bfsStyle) { + return new KRemoteRes(url, bfsStyle); + } + copy(url, bfsStyle, $super) { + url = url === VOID ? this.url : url; + bfsStyle = bfsStyle === VOID ? this.bfsStyle : bfsStyle; + return this.copy_plwnsl_k$(url, bfsStyle); + } + toString() { + return 'KRemoteRes(url=' + this.url + ', bfsStyle=' + this.bfsStyle + ')'; + } + hashCode() { + var result = getStringHashCode(this.url); + result = imul(result, 31) + getStringHashCode(this.bfsStyle) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KRemoteRes)) + return false; + var tmp0_other_with_cast = other instanceof KRemoteRes ? other : THROW_CCE(); + if (!(this.url === tmp0_other_with_cast.url)) + return false; + if (!(this.bfsStyle === tmp0_other_with_cast.bfsStyle)) + return false; + return true; + } + static new_com_bapis_bilibili_dagw_component_avatar_common_KRemoteRes_ku87nx_k$(seen1, url, bfsStyle, serializationConstructorMarker) { + Companion_instance_175; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_162().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.url = ''; + else + $this.url = url; + if (0 === (seen1 & 2)) + $this.bfsStyle = ''; + else + $this.bfsStyle = bfsStyle; + return $this; + } + } + class Companion_176 { + constructor() { + Companion_instance_176 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KNativeDrawRes$KNativeDraw$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KNativeDrawRes$KNativeDraw$Companion$_anonymous__u137u5); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_33(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.dagw.component.avatar.common.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KNativeDraw_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.dagw.component.avatar.common.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KNativeDraw with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_33(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_163 { + constructor() { + $serializer_instance_163 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.dagw.component.avatar.common.KNativeDrawRes.KNativeDraw', 4); + tmp0_serialDesc.addElement_5pzumi_k$('DRAW_INVALID', false); + tmp0_serialDesc.addElement_5pzumi_k$('DRAW_CIRCLE', false); + tmp0_serialDesc.addElement_5pzumi_k$('DRAW_RECTANGLE', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_33()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_uyne87_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_uyne87_k$(encoder, value instanceof KNativeDraw ? value : THROW_CCE()); + } + } + class Companion_177 { + constructor() { + Companion_instance_177 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KNativeDrawRes$KFillMode$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KNativeDrawRes$KFillMode$Companion$_anonymous__dawma0); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_34(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.dagw.component.avatar.common.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KFillMode_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.dagw.component.avatar.common.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KFillMode with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_34(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_164 { + constructor() { + $serializer_instance_164 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.dagw.component.avatar.common.KNativeDrawRes.KFillMode', 4); + tmp0_serialDesc.addElement_5pzumi_k$('INVALID', false); + tmp0_serialDesc.addElement_5pzumi_k$('INTERNAL', false); + tmp0_serialDesc.addElement_5pzumi_k$('EDGE', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_34()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_oyq2cy_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_oyq2cy_k$(encoder, value instanceof KFillMode ? value : THROW_CCE()); + } + } + class KNativeDraw extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class KFillMode extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_178 { + constructor() { + this.targetPath = '/bilibili.dagw.component.avatar.common.NativeDrawRes'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_165(); + } + } + class $serializer_165 { + constructor() { + $serializer_instance_165 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.dagw.component.avatar.common.KNativeDrawRes', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('drawType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('fillMode', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('colorConfig', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('edgeWeight', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), IntSerializer_getInstance(), get_nullable($serializer_getInstance_166()), DoubleSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = 0; + var tmp6_local2 = null; + var tmp7_local3 = 0.0; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_166(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeDoubleElement_isei84_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_166(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeDoubleElement_isei84_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KNativeDrawRes.new_com_bapis_bilibili_dagw_component_avatar_common_KNativeDrawRes_d4996q_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_6sr2a2_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.drawType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.drawType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.fillMode === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.fillMode); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.colorConfig == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_166(), value.colorConfig); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !equals(value.edgeWeight, 0.0)) { + tmp1_output.encodeDoubleElement_a6rqhe_k$(tmp0_desc, 3, value.edgeWeight); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_6sr2a2_k$(encoder, value instanceof KNativeDrawRes ? value : THROW_CCE()); + } + } + class KNativeDrawRes { + constructor(drawType, fillMode, colorConfig, edgeWeight) { + Companion_instance_178; + drawType = drawType === VOID ? 0 : drawType; + fillMode = fillMode === VOID ? 0 : fillMode; + colorConfig = colorConfig === VOID ? null : colorConfig; + edgeWeight = edgeWeight === VOID ? 0.0 : edgeWeight; + this.drawType = drawType; + this.fillMode = fillMode; + this.colorConfig = colorConfig; + this.edgeWeight = edgeWeight; + } + get_drawType_pjvko7_k$() { + return this.drawType; + } + get_fillMode_r5zfyn_k$() { + return this.fillMode; + } + get_colorConfig_mhflss_k$() { + return this.colorConfig; + } + get_edgeWeight_jvmbku_k$() { + return this.edgeWeight; + } + drawTypeEnum() { + return Companion_getInstance_176().fromValue(this.drawType); + } + fillModeEnum() { + return Companion_getInstance_177().fromValue(this.fillMode); + } + component1_7eebsc_k$() { + return this.drawType; + } + component2_7eebsb_k$() { + return this.fillMode; + } + component3_7eebsa_k$() { + return this.colorConfig; + } + component4_7eebs9_k$() { + return this.edgeWeight; + } + copy_uphxrz_k$(drawType, fillMode, colorConfig, edgeWeight) { + return new KNativeDrawRes(drawType, fillMode, colorConfig, edgeWeight); + } + copy(drawType, fillMode, colorConfig, edgeWeight, $super) { + drawType = drawType === VOID ? this.drawType : drawType; + fillMode = fillMode === VOID ? this.fillMode : fillMode; + colorConfig = colorConfig === VOID ? this.colorConfig : colorConfig; + edgeWeight = edgeWeight === VOID ? this.edgeWeight : edgeWeight; + return this.copy_uphxrz_k$(drawType, fillMode, colorConfig, edgeWeight); + } + toString() { + return 'KNativeDrawRes(drawType=' + this.drawType + ', fillMode=' + this.fillMode + ', colorConfig=' + this.colorConfig + ', edgeWeight=' + this.edgeWeight + ')'; + } + hashCode() { + var result = this.drawType; + result = imul(result, 31) + this.fillMode | 0; + result = imul(result, 31) + (this.colorConfig == null ? 0 : this.colorConfig.hashCode()) | 0; + result = imul(result, 31) + getNumberHashCode(this.edgeWeight) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KNativeDrawRes)) + return false; + var tmp0_other_with_cast = other instanceof KNativeDrawRes ? other : THROW_CCE(); + if (!(this.drawType === tmp0_other_with_cast.drawType)) + return false; + if (!(this.fillMode === tmp0_other_with_cast.fillMode)) + return false; + if (!equals(this.colorConfig, tmp0_other_with_cast.colorConfig)) + return false; + if (!equals(this.edgeWeight, tmp0_other_with_cast.edgeWeight)) + return false; + return true; + } + static new_com_bapis_bilibili_dagw_component_avatar_common_KNativeDrawRes_d4996q_k$(seen1, drawType, fillMode, colorConfig, edgeWeight, serializationConstructorMarker) { + Companion_instance_178; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_165().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.drawType = 0; + else + $this.drawType = drawType; + if (0 === (seen1 & 2)) + $this.fillMode = 0; + else + $this.fillMode = fillMode; + if (0 === (seen1 & 4)) + $this.colorConfig = null; + else + $this.colorConfig = colorConfig; + if (0 === (seen1 & 8)) + $this.edgeWeight = 0.0; + else + $this.edgeWeight = edgeWeight; + return $this; + } + } + class Companion_179 { + constructor() { + this.targetPath = '/bilibili.dagw.component.avatar.common.ColorConfig'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_166(); + } + } + class $serializer_166 { + constructor() { + $serializer_instance_166 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.dagw.component.avatar.common.KColorConfig', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('isDarkModeAware', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('day', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('night', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [BooleanSerializer_getInstance(), get_nullable($serializer_getInstance_167()), get_nullable($serializer_getInstance_167())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = false; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_167(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_167(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_167(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_167(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KColorConfig.new_com_bapis_bilibili_dagw_component_avatar_common_KColorConfig_e2h3k9_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_6dr52i_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.isDarkModeAware === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 0, value.isDarkModeAware); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.day == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_167(), value.day); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.night == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_167(), value.night); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_6dr52i_k$(encoder, value instanceof KColorConfig ? value : THROW_CCE()); + } + } + class KColorConfig { + constructor(isDarkModeAware, day, night) { + Companion_instance_179; + isDarkModeAware = isDarkModeAware === VOID ? false : isDarkModeAware; + day = day === VOID ? null : day; + night = night === VOID ? null : night; + this.isDarkModeAware = isDarkModeAware; + this.day = day; + this.night = night; + } + get_isDarkModeAware_w8ub7y_k$() { + return this.isDarkModeAware; + } + get_day_18j7il_k$() { + return this.day; + } + get_night_ivs1kf_k$() { + return this.night; + } + component1_7eebsc_k$() { + return this.isDarkModeAware; + } + component2_7eebsb_k$() { + return this.day; + } + component3_7eebsa_k$() { + return this.night; + } + copy_k428og_k$(isDarkModeAware, day, night) { + return new KColorConfig(isDarkModeAware, day, night); + } + copy(isDarkModeAware, day, night, $super) { + isDarkModeAware = isDarkModeAware === VOID ? this.isDarkModeAware : isDarkModeAware; + day = day === VOID ? this.day : day; + night = night === VOID ? this.night : night; + return this.copy_k428og_k$(isDarkModeAware, day, night); + } + toString() { + return 'KColorConfig(isDarkModeAware=' + this.isDarkModeAware + ', day=' + this.day + ', night=' + this.night + ')'; + } + hashCode() { + var result = getBooleanHashCode(this.isDarkModeAware); + result = imul(result, 31) + (this.day == null ? 0 : this.day.hashCode()) | 0; + result = imul(result, 31) + (this.night == null ? 0 : this.night.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KColorConfig)) + return false; + var tmp0_other_with_cast = other instanceof KColorConfig ? other : THROW_CCE(); + if (!(this.isDarkModeAware === tmp0_other_with_cast.isDarkModeAware)) + return false; + if (!equals(this.day, tmp0_other_with_cast.day)) + return false; + if (!equals(this.night, tmp0_other_with_cast.night)) + return false; + return true; + } + static new_com_bapis_bilibili_dagw_component_avatar_common_KColorConfig_e2h3k9_k$(seen1, isDarkModeAware, day, night, serializationConstructorMarker) { + Companion_instance_179; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_166().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.isDarkModeAware = false; + else + $this.isDarkModeAware = isDarkModeAware; + if (0 === (seen1 & 2)) + $this.day = null; + else + $this.day = day; + if (0 === (seen1 & 4)) + $this.night = null; + else + $this.night = night; + return $this; + } + } + class Companion_180 { + constructor() { + this.targetPath = '/bilibili.dagw.component.avatar.common.ColorSpec'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_167(); + } + } + class $serializer_167 { + constructor() { + $serializer_instance_167 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.dagw.component.avatar.common.KColorSpec', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('argb', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KColorSpec.new_com_bapis_bilibili_dagw_component_avatar_common_KColorSpec_4lv83u_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_n91cb5_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.argb === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.argb); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_n91cb5_k$(encoder, value instanceof KColorSpec ? value : THROW_CCE()); + } + } + class KColorSpec { + constructor(argb) { + Companion_instance_180; + argb = argb === VOID ? '' : argb; + this.argb = argb; + } + get_argb_woj09h_k$() { + return this.argb; + } + component1_7eebsc_k$() { + return this.argb; + } + copy_a35qlh_k$(argb) { + return new KColorSpec(argb); + } + copy(argb, $super) { + argb = argb === VOID ? this.argb : argb; + return this.copy_a35qlh_k$(argb); + } + toString() { + return 'KColorSpec(argb=' + this.argb + ')'; + } + hashCode() { + return getStringHashCode(this.argb); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KColorSpec)) + return false; + var tmp0_other_with_cast = other instanceof KColorSpec ? other : THROW_CCE(); + if (!(this.argb === tmp0_other_with_cast.argb)) + return false; + return true; + } + static new_com_bapis_bilibili_dagw_component_avatar_common_KColorSpec_4lv83u_k$(seen1, argb, serializationConstructorMarker) { + Companion_instance_180; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_167().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.argb = ''; + else + $this.argb = argb; + return $this; + } + } + class Companion_181 { + constructor() { + this.targetPath = '/bilibili.dagw.component.avatar.v1.plugin.CommentDoubleClickConfig'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_168(); + } + } + class $serializer_168 { + constructor() { + $serializer_instance_168 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.dagw.component.avatar.v1.plugin.KCommentDoubleClickConfig', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('interaction', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('animationScale', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_169()), DoubleSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = 0.0; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_169(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeDoubleElement_isei84_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_169(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeDoubleElement_isei84_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KCommentDoubleClickConfig.new_com_bapis_bilibili_dagw_component_avatar_v1_plugin_KCommentDoubleClickConfig_yentec_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_w6rm9h_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.interaction == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_169(), value.interaction); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !equals(value.animationScale, 0.0)) { + tmp1_output.encodeDoubleElement_a6rqhe_k$(tmp0_desc, 1, value.animationScale); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_w6rm9h_k$(encoder, value instanceof KCommentDoubleClickConfig ? value : THROW_CCE()); + } + } + class KCommentDoubleClickConfig { + constructor(interaction, animationScale) { + Companion_instance_181; + interaction = interaction === VOID ? null : interaction; + animationScale = animationScale === VOID ? 0.0 : animationScale; + this.interaction = interaction; + this.animationScale = animationScale; + } + get_interaction_qmz8t3_k$() { + return this.interaction; + } + get_animationScale_98h9v3_k$() { + return this.animationScale; + } + component1_7eebsc_k$() { + return this.interaction; + } + component2_7eebsb_k$() { + return this.animationScale; + } + copy_heiyty_k$(interaction, animationScale) { + return new KCommentDoubleClickConfig(interaction, animationScale); + } + copy(interaction, animationScale, $super) { + interaction = interaction === VOID ? this.interaction : interaction; + animationScale = animationScale === VOID ? this.animationScale : animationScale; + return this.copy_heiyty_k$(interaction, animationScale); + } + toString() { + return 'KCommentDoubleClickConfig(interaction=' + this.interaction + ', animationScale=' + this.animationScale + ')'; + } + hashCode() { + var result = this.interaction == null ? 0 : this.interaction.hashCode(); + result = imul(result, 31) + getNumberHashCode(this.animationScale) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KCommentDoubleClickConfig)) + return false; + var tmp0_other_with_cast = other instanceof KCommentDoubleClickConfig ? other : THROW_CCE(); + if (!equals(this.interaction, tmp0_other_with_cast.interaction)) + return false; + if (!equals(this.animationScale, tmp0_other_with_cast.animationScale)) + return false; + return true; + } + static new_com_bapis_bilibili_dagw_component_avatar_v1_plugin_KCommentDoubleClickConfig_yentec_k$(seen1, interaction, animationScale, serializationConstructorMarker) { + Companion_instance_181; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_168().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.interaction = null; + else + $this.interaction = interaction; + if (0 === (seen1 & 2)) + $this.animationScale = 0.0; + else + $this.animationScale = animationScale; + return $this; + } + } + class Companion_182 { + constructor() { + this.targetPath = '/bilibili.dagw.component.avatar.v1.plugin.Interaction'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_169(); + } + } + class $serializer_169 { + constructor() { + $serializer_instance_169 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.dagw.component.avatar.v1.plugin.KInteraction', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('nftId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('enabled', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('itype', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('metadataUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), BooleanSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = false; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KInteraction_0.new_com_bapis_bilibili_dagw_component_avatar_v1_plugin_KInteraction_wggo3j_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_hmc30v_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.nftId === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.nftId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.enabled === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 1, value.enabled); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.itype === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.itype); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.metadataUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.metadataUrl); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_hmc30v_k$(encoder, value instanceof KInteraction_0 ? value : THROW_CCE()); + } + } + class KInteraction_0 { + constructor(nftId, enabled, itype, metadataUrl) { + Companion_instance_182; + nftId = nftId === VOID ? '' : nftId; + enabled = enabled === VOID ? false : enabled; + itype = itype === VOID ? '' : itype; + metadataUrl = metadataUrl === VOID ? '' : metadataUrl; + this.nftId = nftId; + this.enabled = enabled; + this.itype = itype; + this.metadataUrl = metadataUrl; + } + get_nftId_ivqdhq_k$() { + return this.nftId; + } + get_enabled_pcr8o8_k$() { + return this.enabled; + } + get_itype_it8gze_k$() { + return this.itype; + } + get_metadataUrl_alsqsp_k$() { + return this.metadataUrl; + } + component1_7eebsc_k$() { + return this.nftId; + } + component2_7eebsb_k$() { + return this.enabled; + } + component3_7eebsa_k$() { + return this.itype; + } + component4_7eebs9_k$() { + return this.metadataUrl; + } + copy_tap3vk_k$(nftId, enabled, itype, metadataUrl) { + return new KInteraction_0(nftId, enabled, itype, metadataUrl); + } + copy(nftId, enabled, itype, metadataUrl, $super) { + nftId = nftId === VOID ? this.nftId : nftId; + enabled = enabled === VOID ? this.enabled : enabled; + itype = itype === VOID ? this.itype : itype; + metadataUrl = metadataUrl === VOID ? this.metadataUrl : metadataUrl; + return this.copy_tap3vk_k$(nftId, enabled, itype, metadataUrl); + } + toString() { + return 'KInteraction(nftId=' + this.nftId + ', enabled=' + this.enabled + ', itype=' + this.itype + ', metadataUrl=' + this.metadataUrl + ')'; + } + hashCode() { + var result = getStringHashCode(this.nftId); + result = imul(result, 31) + getBooleanHashCode(this.enabled) | 0; + result = imul(result, 31) + getStringHashCode(this.itype) | 0; + result = imul(result, 31) + getStringHashCode(this.metadataUrl) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KInteraction_0)) + return false; + var tmp0_other_with_cast = other instanceof KInteraction_0 ? other : THROW_CCE(); + if (!(this.nftId === tmp0_other_with_cast.nftId)) + return false; + if (!(this.enabled === tmp0_other_with_cast.enabled)) + return false; + if (!(this.itype === tmp0_other_with_cast.itype)) + return false; + if (!(this.metadataUrl === tmp0_other_with_cast.metadataUrl)) + return false; + return true; + } + static new_com_bapis_bilibili_dagw_component_avatar_v1_plugin_KInteraction_wggo3j_k$(seen1, nftId, enabled, itype, metadataUrl, serializationConstructorMarker) { + Companion_instance_182; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_169().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.nftId = ''; + else + $this.nftId = nftId; + if (0 === (seen1 & 2)) + $this.enabled = false; + else + $this.enabled = enabled; + if (0 === (seen1 & 4)) + $this.itype = ''; + else + $this.itype = itype; + if (0 === (seen1 & 8)) + $this.metadataUrl = ''; + else + $this.metadataUrl = metadataUrl; + return $this; + } + } + class Companion_183 { + constructor() { + this.targetPath = '/bilibili.dagw.component.avatar.v1.plugin.GyroConfig'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_170(); + } + } + class $serializer_170 { + constructor() { + $serializer_instance_170 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.dagw.component.avatar.v1.plugin.KGyroConfig', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('gyroscope', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_171())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_171(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_171(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KGyroConfig.new_com_bapis_bilibili_dagw_component_avatar_v1_plugin_KGyroConfig_nu7hce_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_f6l66s_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.gyroscope == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_171(), value.gyroscope); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_f6l66s_k$(encoder, value instanceof KGyroConfig ? value : THROW_CCE()); + } + } + class KGyroConfig { + constructor(gyroscope) { + Companion_instance_183; + gyroscope = gyroscope === VOID ? null : gyroscope; + this.gyroscope = gyroscope; + } + get_gyroscope_dwgl7g_k$() { + return this.gyroscope; + } + component1_7eebsc_k$() { + return this.gyroscope; + } + copy_br93uj_k$(gyroscope) { + return new KGyroConfig(gyroscope); + } + copy(gyroscope, $super) { + gyroscope = gyroscope === VOID ? this.gyroscope : gyroscope; + return this.copy_br93uj_k$(gyroscope); + } + toString() { + return 'KGyroConfig(gyroscope=' + this.gyroscope + ')'; + } + hashCode() { + return this.gyroscope == null ? 0 : this.gyroscope.hashCode(); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KGyroConfig)) + return false; + var tmp0_other_with_cast = other instanceof KGyroConfig ? other : THROW_CCE(); + if (!equals(this.gyroscope, tmp0_other_with_cast.gyroscope)) + return false; + return true; + } + static new_com_bapis_bilibili_dagw_component_avatar_v1_plugin_KGyroConfig_nu7hce_k$(seen1, gyroscope, serializationConstructorMarker) { + Companion_instance_183; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_170().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.gyroscope = null; + else + $this.gyroscope = gyroscope; + return $this; + } + } + class Companion_184 { + constructor() { + Companion_instance_184 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer($serializer_getInstance_172())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.dagw.component.avatar.v1.plugin.NFTImageV2'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_171(); + } + } + class $serializer_171 { + constructor() { + $serializer_instance_171 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.dagw.component.avatar.v1.plugin.KNFTImageV2', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('gyroscope', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_184().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp6_cached = Companion_getInstance_184().$childSerializers_1; + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KNFTImageV2.new_com_bapis_bilibili_dagw_component_avatar_v1_plugin_KNFTImageV2_809kkl_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_bym2q2_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_184().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.gyroscope, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.gyroscope); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_bym2q2_k$(encoder, value instanceof KNFTImageV2 ? value : THROW_CCE()); + } + } + class KNFTImageV2 { + constructor(gyroscope) { + Companion_getInstance_184(); + gyroscope = gyroscope === VOID ? emptyList() : gyroscope; + this.gyroscope = gyroscope; + } + get_gyroscope_dwgl7g_k$() { + return this.gyroscope; + } + component1_7eebsc_k$() { + return this.gyroscope; + } + copy_re39nh_k$(gyroscope) { + return new KNFTImageV2(gyroscope); + } + copy(gyroscope, $super) { + gyroscope = gyroscope === VOID ? this.gyroscope : gyroscope; + return this.copy_re39nh_k$(gyroscope); + } + toString() { + return 'KNFTImageV2(gyroscope=' + this.gyroscope + ')'; + } + hashCode() { + return hashCode(this.gyroscope); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KNFTImageV2)) + return false; + var tmp0_other_with_cast = other instanceof KNFTImageV2 ? other : THROW_CCE(); + if (!equals(this.gyroscope, tmp0_other_with_cast.gyroscope)) + return false; + return true; + } + static new_com_bapis_bilibili_dagw_component_avatar_v1_plugin_KNFTImageV2_809kkl_k$(seen1, gyroscope, serializationConstructorMarker) { + Companion_getInstance_184(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_171().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.gyroscope = emptyList(); + else + $this.gyroscope = gyroscope; + return $this; + } + } + class Companion_185 { + constructor() { + Companion_instance_185 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, new ArrayListSerializer($serializer_getInstance_173())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.dagw.component.avatar.v1.plugin.GyroscopeEntityV2'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_172(); + } + } + class $serializer_172 { + constructor() { + $serializer_instance_172 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.dagw.component.avatar.v1.plugin.KGyroscopeEntityV2', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('displayType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('contents', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_185().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), tmp0_cached[1]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp7_cached = Companion_getInstance_185().$childSerializers_1; + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KGyroscopeEntityV2.new_com_bapis_bilibili_dagw_component_avatar_v1_plugin_KGyroscopeEntityV2_3q2y9d_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_su84zn_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_185().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.displayType === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.displayType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !equals(value.contents, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 1, tmp2_cached[1], value.contents); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_su84zn_k$(encoder, value instanceof KGyroscopeEntityV2 ? value : THROW_CCE()); + } + } + class KGyroscopeEntityV2 { + constructor(displayType, contents) { + Companion_getInstance_185(); + displayType = displayType === VOID ? '' : displayType; + contents = contents === VOID ? emptyList() : contents; + this.displayType = displayType; + this.contents = contents; + } + get_displayType_ss8bil_k$() { + return this.displayType; + } + get_contents_tuemzn_k$() { + return this.contents; + } + component1_7eebsc_k$() { + return this.displayType; + } + component2_7eebsb_k$() { + return this.contents; + } + copy_cbez5_k$(displayType, contents) { + return new KGyroscopeEntityV2(displayType, contents); + } + copy(displayType, contents, $super) { + displayType = displayType === VOID ? this.displayType : displayType; + contents = contents === VOID ? this.contents : contents; + return this.copy_cbez5_k$(displayType, contents); + } + toString() { + return 'KGyroscopeEntityV2(displayType=' + this.displayType + ', contents=' + this.contents + ')'; + } + hashCode() { + var result = getStringHashCode(this.displayType); + result = imul(result, 31) + hashCode(this.contents) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KGyroscopeEntityV2)) + return false; + var tmp0_other_with_cast = other instanceof KGyroscopeEntityV2 ? other : THROW_CCE(); + if (!(this.displayType === tmp0_other_with_cast.displayType)) + return false; + if (!equals(this.contents, tmp0_other_with_cast.contents)) + return false; + return true; + } + static new_com_bapis_bilibili_dagw_component_avatar_v1_plugin_KGyroscopeEntityV2_3q2y9d_k$(seen1, displayType, contents, serializationConstructorMarker) { + Companion_getInstance_185(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_172().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.displayType = ''; + else + $this.displayType = displayType; + if (0 === (seen1 & 2)) + $this.contents = emptyList(); + else + $this.contents = contents; + return $this; + } + } + class Companion_186 { + constructor() { + Companion_instance_186 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, new ArrayListSerializer($serializer_getInstance_174())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.dagw.component.avatar.v1.plugin.GyroscopeContentV2'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_173(); + } + } + class $serializer_173 { + constructor() { + $serializer_instance_173 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.dagw.component.avatar.v1.plugin.KGyroscopeContentV2', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('fileUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('scale', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('physicalOrientation', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_186().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), FloatSerializer_getInstance(), tmp0_cached[2]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = 0.0; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp8_cached = Companion_getInstance_186().$childSerializers_1; + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeFloatElement_p2q55h_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp8_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeFloatElement_p2q55h_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp8_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KGyroscopeContentV2.new_com_bapis_bilibili_dagw_component_avatar_v1_plugin_KGyroscopeContentV2_y41jp8_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_oe4lo5_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_186().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.fileUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.fileUrl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !equals(value.scale, 0.0)) { + tmp1_output.encodeFloatElement_oe8hn_k$(tmp0_desc, 1, value.scale); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !equals(value.physicalOrientation, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 2, tmp2_cached[2], value.physicalOrientation); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_oe4lo5_k$(encoder, value instanceof KGyroscopeContentV2 ? value : THROW_CCE()); + } + } + class KGyroscopeContentV2 { + constructor(fileUrl, scale, physicalOrientation) { + Companion_getInstance_186(); + fileUrl = fileUrl === VOID ? '' : fileUrl; + scale = scale === VOID ? 0.0 : scale; + physicalOrientation = physicalOrientation === VOID ? emptyList() : physicalOrientation; + this.fileUrl = fileUrl; + this.scale = scale; + this.physicalOrientation = physicalOrientation; + } + get_fileUrl_cvhvo6_k$() { + return this.fileUrl; + } + get_scale_iyf28x_k$() { + return this.scale; + } + get_physicalOrientation_hal81c_k$() { + return this.physicalOrientation; + } + component1_7eebsc_k$() { + return this.fileUrl; + } + component2_7eebsb_k$() { + return this.scale; + } + component3_7eebsa_k$() { + return this.physicalOrientation; + } + copy_lw00ng_k$(fileUrl, scale, physicalOrientation) { + return new KGyroscopeContentV2(fileUrl, scale, physicalOrientation); + } + copy(fileUrl, scale, physicalOrientation, $super) { + fileUrl = fileUrl === VOID ? this.fileUrl : fileUrl; + scale = scale === VOID ? this.scale : scale; + physicalOrientation = physicalOrientation === VOID ? this.physicalOrientation : physicalOrientation; + return this.copy_lw00ng_k$(fileUrl, scale, physicalOrientation); + } + toString() { + return 'KGyroscopeContentV2(fileUrl=' + this.fileUrl + ', scale=' + this.scale + ', physicalOrientation=' + this.physicalOrientation + ')'; + } + hashCode() { + var result = getStringHashCode(this.fileUrl); + result = imul(result, 31) + getNumberHashCode(this.scale) | 0; + result = imul(result, 31) + hashCode(this.physicalOrientation) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KGyroscopeContentV2)) + return false; + var tmp0_other_with_cast = other instanceof KGyroscopeContentV2 ? other : THROW_CCE(); + if (!(this.fileUrl === tmp0_other_with_cast.fileUrl)) + return false; + if (!equals(this.scale, tmp0_other_with_cast.scale)) + return false; + if (!equals(this.physicalOrientation, tmp0_other_with_cast.physicalOrientation)) + return false; + return true; + } + static new_com_bapis_bilibili_dagw_component_avatar_v1_plugin_KGyroscopeContentV2_y41jp8_k$(seen1, fileUrl, scale, physicalOrientation, serializationConstructorMarker) { + Companion_getInstance_186(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_173().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.fileUrl = ''; + else + $this.fileUrl = fileUrl; + if (0 === (seen1 & 2)) + $this.scale = 0.0; + else + $this.scale = scale; + if (0 === (seen1 & 4)) + $this.physicalOrientation = emptyList(); + else + $this.physicalOrientation = physicalOrientation; + return $this; + } + } + class Companion_187 { + constructor() { + Companion_instance_187 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, new ArrayListSerializer(FloatSerializer_getInstance()), new ArrayListSerializer($serializer_getInstance_175())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.dagw.component.avatar.v1.plugin.PhysicalOrientationV2'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_174(); + } + } + class $serializer_174 { + constructor() { + $serializer_instance_174 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.dagw.component.avatar.v1.plugin.KPhysicalOrientationV2', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('angle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('animations', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_187().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), tmp0_cached[1], tmp0_cached[2]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp8_cached = Companion_getInstance_187().$childSerializers_1; + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp8_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp8_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp8_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp8_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KPhysicalOrientationV2.new_com_bapis_bilibili_dagw_component_avatar_v1_plugin_KPhysicalOrientationV2_b9qv1_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_iuejtg_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_187().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.type === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.type); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !equals(value.angle, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 1, tmp2_cached[1], value.angle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !equals(value.animations, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 2, tmp2_cached[2], value.animations); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_iuejtg_k$(encoder, value instanceof KPhysicalOrientationV2 ? value : THROW_CCE()); + } + } + class KPhysicalOrientationV2 { + constructor(type, angle, animations) { + Companion_getInstance_187(); + type = type === VOID ? '' : type; + angle = angle === VOID ? emptyList() : angle; + animations = animations === VOID ? emptyList() : animations; + this.type = type; + this.angle = angle; + this.animations = animations; + } + get_type_wovaf7_k$() { + return this.type; + } + get_angle_iopwve_k$() { + return this.angle; + } + get_animations_ez9gco_k$() { + return this.animations; + } + component1_7eebsc_k$() { + return this.type; + } + component2_7eebsb_k$() { + return this.angle; + } + component3_7eebsa_k$() { + return this.animations; + } + copy_tylrb7_k$(type, angle, animations) { + return new KPhysicalOrientationV2(type, angle, animations); + } + copy(type, angle, animations, $super) { + type = type === VOID ? this.type : type; + angle = angle === VOID ? this.angle : angle; + animations = animations === VOID ? this.animations : animations; + return this.copy_tylrb7_k$(type, angle, animations); + } + toString() { + return 'KPhysicalOrientationV2(type=' + this.type + ', angle=' + this.angle + ', animations=' + this.animations + ')'; + } + hashCode() { + var result = getStringHashCode(this.type); + result = imul(result, 31) + hashCode(this.angle) | 0; + result = imul(result, 31) + hashCode(this.animations) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KPhysicalOrientationV2)) + return false; + var tmp0_other_with_cast = other instanceof KPhysicalOrientationV2 ? other : THROW_CCE(); + if (!(this.type === tmp0_other_with_cast.type)) + return false; + if (!equals(this.angle, tmp0_other_with_cast.angle)) + return false; + if (!equals(this.animations, tmp0_other_with_cast.animations)) + return false; + return true; + } + static new_com_bapis_bilibili_dagw_component_avatar_v1_plugin_KPhysicalOrientationV2_b9qv1_k$(seen1, type, angle, animations, serializationConstructorMarker) { + Companion_getInstance_187(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_174().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.type = ''; + else + $this.type = type; + if (0 === (seen1 & 2)) + $this.angle = emptyList(); + else + $this.angle = angle; + if (0 === (seen1 & 4)) + $this.animations = emptyList(); + else + $this.animations = animations; + return $this; + } + } + class Companion_188 { + constructor() { + Companion_instance_188 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, new ArrayListSerializer(FloatSerializer_getInstance()), null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.dagw.component.avatar.v1.plugin.PhysicalOrientationAnimation'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_175(); + } + } + class $serializer_175 { + constructor() { + $serializer_instance_175 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.dagw.component.avatar.v1.plugin.KPhysicalOrientationAnimation', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('value', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('bezier', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_188().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), tmp0_cached[1], StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp8_cached = Companion_getInstance_188().$childSerializers_1; + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp8_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp8_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KPhysicalOrientationAnimation.new_com_bapis_bilibili_dagw_component_avatar_v1_plugin_KPhysicalOrientationAnimation_e7e8pc_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_tybply_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_188().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.type === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.type); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !equals(value.value, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 1, tmp2_cached[1], value.value); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.bezier === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.bezier); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_tybply_k$(encoder, value instanceof KPhysicalOrientationAnimation ? value : THROW_CCE()); + } + } + class KPhysicalOrientationAnimation { + constructor(type, value, bezier) { + Companion_getInstance_188(); + type = type === VOID ? '' : type; + value = value === VOID ? emptyList() : value; + bezier = bezier === VOID ? '' : bezier; + this.type = type; + this.value = value; + this.bezier = bezier; + } + get_type_wovaf7_k$() { + return this.type; + } + get_value_j01efc_k$() { + return this.value; + } + get_bezier_bduew8_k$() { + return this.bezier; + } + component1_7eebsc_k$() { + return this.type; + } + component2_7eebsb_k$() { + return this.value; + } + component3_7eebsa_k$() { + return this.bezier; + } + copy_j798d6_k$(type, value, bezier) { + return new KPhysicalOrientationAnimation(type, value, bezier); + } + copy(type, value, bezier, $super) { + type = type === VOID ? this.type : type; + value = value === VOID ? this.value : value; + bezier = bezier === VOID ? this.bezier : bezier; + return this.copy_j798d6_k$(type, value, bezier); + } + toString() { + return 'KPhysicalOrientationAnimation(type=' + this.type + ', value=' + this.value + ', bezier=' + this.bezier + ')'; + } + hashCode() { + var result = getStringHashCode(this.type); + result = imul(result, 31) + hashCode(this.value) | 0; + result = imul(result, 31) + getStringHashCode(this.bezier) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KPhysicalOrientationAnimation)) + return false; + var tmp0_other_with_cast = other instanceof KPhysicalOrientationAnimation ? other : THROW_CCE(); + if (!(this.type === tmp0_other_with_cast.type)) + return false; + if (!equals(this.value, tmp0_other_with_cast.value)) + return false; + if (!(this.bezier === tmp0_other_with_cast.bezier)) + return false; + return true; + } + static new_com_bapis_bilibili_dagw_component_avatar_v1_plugin_KPhysicalOrientationAnimation_e7e8pc_k$(seen1, type, value, bezier, serializationConstructorMarker) { + Companion_getInstance_188(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_175().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.type = ''; + else + $this.type = type; + if (0 === (seen1 & 2)) + $this.value = emptyList(); + else + $this.value = value; + if (0 === (seen1 & 4)) + $this.bezier = ''; + else + $this.bezier = bezier; + return $this; + } + } + class Companion_189 { + constructor() { + Companion_instance_189 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, new ArrayListSerializer($serializer_getInstance_179()), new ArrayListSerializer($serializer_getInstance_177())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.dagw.component.avatar.v1.plugin.LiveAnimeConfig'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_176(); + } + } + class $serializer_176 { + constructor() { + $serializer_instance_176 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.dagw.component.avatar.v1.plugin.KLiveAnimeConfig', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('isLive', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('config', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('items', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('borderConfig', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_189().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [BooleanSerializer_getInstance(), get_nullable($serializer_getInstance_178()), tmp0_cached[2], tmp0_cached[3]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = false; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp9_cached = Companion_getInstance_189().$childSerializers_1; + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_178(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp9_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 3, tmp9_cached[3], tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_178(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp9_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 3, tmp9_cached[3], tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KLiveAnimeConfig.new_com_bapis_bilibili_dagw_component_avatar_v1_plugin_KLiveAnimeConfig_5frrdl_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_uplnmx_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_189().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.isLive === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 0, value.isLive); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.config == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_178(), value.config); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !equals(value.items, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 2, tmp2_cached[2], value.items); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !equals(value.borderConfig, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 3, tmp2_cached[3], value.borderConfig); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_uplnmx_k$(encoder, value instanceof KLiveAnimeConfig ? value : THROW_CCE()); + } + } + class KLiveAnimeConfig { + constructor(isLive, config, items, borderConfig) { + Companion_getInstance_189(); + isLive = isLive === VOID ? false : isLive; + config = config === VOID ? null : config; + items = items === VOID ? emptyList() : items; + borderConfig = borderConfig === VOID ? emptyList() : borderConfig; + this.isLive = isLive; + this.config = config; + this.items = items; + this.borderConfig = borderConfig; + } + get_isLive_ew1iyn_k$() { + return this.isLive; + } + get_config_c0698r_k$() { + return this.config; + } + get_items_it823b_k$() { + return this.items; + } + get_borderConfig_jz1713_k$() { + return this.borderConfig; + } + component1_7eebsc_k$() { + return this.isLive; + } + component2_7eebsb_k$() { + return this.config; + } + component3_7eebsa_k$() { + return this.items; + } + component4_7eebs9_k$() { + return this.borderConfig; + } + copy_7uab5h_k$(isLive, config, items, borderConfig) { + return new KLiveAnimeConfig(isLive, config, items, borderConfig); + } + copy(isLive, config, items, borderConfig, $super) { + isLive = isLive === VOID ? this.isLive : isLive; + config = config === VOID ? this.config : config; + items = items === VOID ? this.items : items; + borderConfig = borderConfig === VOID ? this.borderConfig : borderConfig; + return this.copy_7uab5h_k$(isLive, config, items, borderConfig); + } + toString() { + return 'KLiveAnimeConfig(isLive=' + this.isLive + ', config=' + this.config + ', items=' + this.items + ', borderConfig=' + this.borderConfig + ')'; + } + hashCode() { + var result = getBooleanHashCode(this.isLive); + result = imul(result, 31) + (this.config == null ? 0 : this.config.hashCode()) | 0; + result = imul(result, 31) + hashCode(this.items) | 0; + result = imul(result, 31) + hashCode(this.borderConfig) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KLiveAnimeConfig)) + return false; + var tmp0_other_with_cast = other instanceof KLiveAnimeConfig ? other : THROW_CCE(); + if (!(this.isLive === tmp0_other_with_cast.isLive)) + return false; + if (!equals(this.config, tmp0_other_with_cast.config)) + return false; + if (!equals(this.items, tmp0_other_with_cast.items)) + return false; + if (!equals(this.borderConfig, tmp0_other_with_cast.borderConfig)) + return false; + return true; + } + static new_com_bapis_bilibili_dagw_component_avatar_v1_plugin_KLiveAnimeConfig_5frrdl_k$(seen1, isLive, config, items, borderConfig, serializationConstructorMarker) { + Companion_getInstance_189(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_176().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.isLive = false; + else + $this.isLive = isLive; + if (0 === (seen1 & 2)) + $this.config = null; + else + $this.config = config; + if (0 === (seen1 & 4)) + $this.items = emptyList(); + else + $this.items = items; + if (0 === (seen1 & 8)) + $this.borderConfig = emptyList(); + else + $this.borderConfig = borderConfig; + return $this; + } + } + class Companion_190 { + constructor() { + this.targetPath = '/bilibili.dagw.component.avatar.v1.plugin.BorderConfig'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_177(); + } + } + class $serializer_177 { + constructor() { + $serializer_instance_177 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.dagw.component.avatar.v1.plugin.KBorderConfig', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('color', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('borderWidth', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('ratio', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_166()), DoubleSerializer_getInstance(), DoubleSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = 0.0; + var tmp6_local2 = 0.0; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_166(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeDoubleElement_isei84_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeDoubleElement_isei84_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_166(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeDoubleElement_isei84_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeDoubleElement_isei84_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KBorderConfig.new_com_bapis_bilibili_dagw_component_avatar_v1_plugin_KBorderConfig_utbz2n_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_l69i5z_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.color == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_166(), value.color); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !equals(value.borderWidth, 0.0)) { + tmp1_output.encodeDoubleElement_a6rqhe_k$(tmp0_desc, 1, value.borderWidth); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !equals(value.ratio, 0.0)) { + tmp1_output.encodeDoubleElement_a6rqhe_k$(tmp0_desc, 2, value.ratio); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_l69i5z_k$(encoder, value instanceof KBorderConfig ? value : THROW_CCE()); + } + } + class KBorderConfig { + constructor(color, borderWidth, ratio) { + Companion_instance_190; + color = color === VOID ? null : color; + borderWidth = borderWidth === VOID ? 0.0 : borderWidth; + ratio = ratio === VOID ? 0.0 : ratio; + this.color = color; + this.borderWidth = borderWidth; + this.ratio = ratio; + } + get_color_ipu8u2_k$() { + return this.color; + } + get_borderWidth_q5fwy9_k$() { + return this.borderWidth; + } + get_ratio_ixudpe_k$() { + return this.ratio; + } + component1_7eebsc_k$() { + return this.color; + } + component2_7eebsb_k$() { + return this.borderWidth; + } + component3_7eebsa_k$() { + return this.ratio; + } + copy_v8z61n_k$(color, borderWidth, ratio) { + return new KBorderConfig(color, borderWidth, ratio); + } + copy(color, borderWidth, ratio, $super) { + color = color === VOID ? this.color : color; + borderWidth = borderWidth === VOID ? this.borderWidth : borderWidth; + ratio = ratio === VOID ? this.ratio : ratio; + return this.copy_v8z61n_k$(color, borderWidth, ratio); + } + toString() { + return 'KBorderConfig(color=' + this.color + ', borderWidth=' + this.borderWidth + ', ratio=' + this.ratio + ')'; + } + hashCode() { + var result = this.color == null ? 0 : this.color.hashCode(); + result = imul(result, 31) + getNumberHashCode(this.borderWidth) | 0; + result = imul(result, 31) + getNumberHashCode(this.ratio) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KBorderConfig)) + return false; + var tmp0_other_with_cast = other instanceof KBorderConfig ? other : THROW_CCE(); + if (!equals(this.color, tmp0_other_with_cast.color)) + return false; + if (!equals(this.borderWidth, tmp0_other_with_cast.borderWidth)) + return false; + if (!equals(this.ratio, tmp0_other_with_cast.ratio)) + return false; + return true; + } + static new_com_bapis_bilibili_dagw_component_avatar_v1_plugin_KBorderConfig_utbz2n_k$(seen1, color, borderWidth, ratio, serializationConstructorMarker) { + Companion_instance_190; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_177().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.color = null; + else + $this.color = color; + if (0 === (seen1 & 2)) + $this.borderWidth = 0.0; + else + $this.borderWidth = borderWidth; + if (0 === (seen1 & 4)) + $this.ratio = 0.0; + else + $this.ratio = ratio; + return $this; + } + } + class Companion_191 { + constructor() { + this.targetPath = '/bilibili.dagw.component.avatar.v1.plugin.LiveTextConfig'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_178(); + } + } + class $serializer_178 { + constructor() { + $serializer_instance_178 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.dagw.component.avatar.v1.plugin.KLiveTextConfig', this, 7); + tmp0_serialDesc.addElement_5pzumi_k$('width', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('height', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('offsetY', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('borderWidth', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('textSize', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('borderColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('background', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [DoubleSerializer_getInstance(), DoubleSerializer_getInstance(), DoubleSerializer_getInstance(), DoubleSerializer_getInstance(), DoubleSerializer_getInstance(), get_nullable($serializer_getInstance_166()), get_nullable($serializer_getInstance_166())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0.0; + var tmp5_local1 = 0.0; + var tmp6_local2 = 0.0; + var tmp7_local3 = 0.0; + var tmp8_local4 = 0.0; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp11_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp11_input.decodeDoubleElement_isei84_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp11_input.decodeDoubleElement_isei84_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp11_input.decodeDoubleElement_isei84_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp11_input.decodeDoubleElement_isei84_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp11_input.decodeDoubleElement_isei84_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_166(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_166(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + } else + while (tmp1_flag) { + tmp2_index = tmp11_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp11_input.decodeDoubleElement_isei84_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp11_input.decodeDoubleElement_isei84_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp11_input.decodeDoubleElement_isei84_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp11_input.decodeDoubleElement_isei84_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp11_input.decodeDoubleElement_isei84_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_166(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_166(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp11_input.endStructure_1xqz0n_k$(tmp0_desc); + return KLiveTextConfig.new_com_bapis_bilibili_dagw_component_avatar_v1_plugin_KLiveTextConfig_r19w60_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, null); + } + serialize_3lsr06_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.width, 0.0)) { + tmp1_output.encodeDoubleElement_a6rqhe_k$(tmp0_desc, 0, value.width); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !equals(value.height, 0.0)) { + tmp1_output.encodeDoubleElement_a6rqhe_k$(tmp0_desc, 1, value.height); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !equals(value.offsetY, 0.0)) { + tmp1_output.encodeDoubleElement_a6rqhe_k$(tmp0_desc, 2, value.offsetY); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !equals(value.borderWidth, 0.0)) { + tmp1_output.encodeDoubleElement_a6rqhe_k$(tmp0_desc, 3, value.borderWidth); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !equals(value.textSize, 0.0)) { + tmp1_output.encodeDoubleElement_a6rqhe_k$(tmp0_desc, 4, value.textSize); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.borderColor == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 5, $serializer_getInstance_166(), value.borderColor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.background == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 6, $serializer_getInstance_166(), value.background); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_3lsr06_k$(encoder, value instanceof KLiveTextConfig ? value : THROW_CCE()); + } + } + class KLiveTextConfig { + constructor(width, height, offsetY, borderWidth, textSize, borderColor, background) { + Companion_instance_191; + width = width === VOID ? 0.0 : width; + height = height === VOID ? 0.0 : height; + offsetY = offsetY === VOID ? 0.0 : offsetY; + borderWidth = borderWidth === VOID ? 0.0 : borderWidth; + textSize = textSize === VOID ? 0.0 : textSize; + borderColor = borderColor === VOID ? null : borderColor; + background = background === VOID ? null : background; + this.width = width; + this.height = height; + this.offsetY = offsetY; + this.borderWidth = borderWidth; + this.textSize = textSize; + this.borderColor = borderColor; + this.background = background; + } + get_width_j0q4yl_k$() { + return this.width; + } + get_height_e7t92o_k$() { + return this.height; + } + get_offsetY_ocbsn7_k$() { + return this.offsetY; + } + get_borderWidth_q5fwy9_k$() { + return this.borderWidth; + } + get_textSize_mmm7iv_k$() { + return this.textSize; + } + get_borderColor_puk0tq_k$() { + return this.borderColor; + } + get_background_stpfw7_k$() { + return this.background; + } + component1_7eebsc_k$() { + return this.width; + } + component2_7eebsb_k$() { + return this.height; + } + component3_7eebsa_k$() { + return this.offsetY; + } + component4_7eebs9_k$() { + return this.borderWidth; + } + component5_7eebs8_k$() { + return this.textSize; + } + component6_7eebs7_k$() { + return this.borderColor; + } + component7_7eebs6_k$() { + return this.background; + } + copy_tp9nox_k$(width, height, offsetY, borderWidth, textSize, borderColor, background) { + return new KLiveTextConfig(width, height, offsetY, borderWidth, textSize, borderColor, background); + } + copy(width, height, offsetY, borderWidth, textSize, borderColor, background, $super) { + width = width === VOID ? this.width : width; + height = height === VOID ? this.height : height; + offsetY = offsetY === VOID ? this.offsetY : offsetY; + borderWidth = borderWidth === VOID ? this.borderWidth : borderWidth; + textSize = textSize === VOID ? this.textSize : textSize; + borderColor = borderColor === VOID ? this.borderColor : borderColor; + background = background === VOID ? this.background : background; + return this.copy_tp9nox_k$(width, height, offsetY, borderWidth, textSize, borderColor, background); + } + toString() { + return 'KLiveTextConfig(width=' + this.width + ', height=' + this.height + ', offsetY=' + this.offsetY + ', borderWidth=' + this.borderWidth + ', textSize=' + this.textSize + ', borderColor=' + this.borderColor + ', background=' + this.background + ')'; + } + hashCode() { + var result = getNumberHashCode(this.width); + result = imul(result, 31) + getNumberHashCode(this.height) | 0; + result = imul(result, 31) + getNumberHashCode(this.offsetY) | 0; + result = imul(result, 31) + getNumberHashCode(this.borderWidth) | 0; + result = imul(result, 31) + getNumberHashCode(this.textSize) | 0; + result = imul(result, 31) + (this.borderColor == null ? 0 : this.borderColor.hashCode()) | 0; + result = imul(result, 31) + (this.background == null ? 0 : this.background.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KLiveTextConfig)) + return false; + var tmp0_other_with_cast = other instanceof KLiveTextConfig ? other : THROW_CCE(); + if (!equals(this.width, tmp0_other_with_cast.width)) + return false; + if (!equals(this.height, tmp0_other_with_cast.height)) + return false; + if (!equals(this.offsetY, tmp0_other_with_cast.offsetY)) + return false; + if (!equals(this.borderWidth, tmp0_other_with_cast.borderWidth)) + return false; + if (!equals(this.textSize, tmp0_other_with_cast.textSize)) + return false; + if (!equals(this.borderColor, tmp0_other_with_cast.borderColor)) + return false; + if (!equals(this.background, tmp0_other_with_cast.background)) + return false; + return true; + } + static new_com_bapis_bilibili_dagw_component_avatar_v1_plugin_KLiveTextConfig_r19w60_k$(seen1, width, height, offsetY, borderWidth, textSize, borderColor, background, serializationConstructorMarker) { + Companion_instance_191; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_178().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.width = 0.0; + else + $this.width = width; + if (0 === (seen1 & 2)) + $this.height = 0.0; + else + $this.height = height; + if (0 === (seen1 & 4)) + $this.offsetY = 0.0; + else + $this.offsetY = offsetY; + if (0 === (seen1 & 8)) + $this.borderWidth = 0.0; + else + $this.borderWidth = borderWidth; + if (0 === (seen1 & 16)) + $this.textSize = 0.0; + else + $this.textSize = textSize; + if (0 === (seen1 & 32)) + $this.borderColor = null; + else + $this.borderColor = borderColor; + if (0 === (seen1 & 64)) + $this.background = null; + else + $this.background = background; + return $this; + } + } + class Companion_192 { + constructor() { + this.targetPath = '/bilibili.dagw.component.avatar.v1.plugin.LiveAnimeItem'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_179(); + } + } + class $serializer_179 { + constructor() { + $serializer_instance_179 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.dagw.component.avatar.v1.plugin.KLiveAnimeItem', this, 6); + tmp0_serialDesc.addElement_5pzumi_k$('color', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('startRatio', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('endRatio', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('startStroke', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('startOpacity', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('phase', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_166()), DoubleSerializer_getInstance(), DoubleSerializer_getInstance(), DoubleSerializer_getInstance(), DoubleSerializer_getInstance(), LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = 0.0; + var tmp6_local2 = 0.0; + var tmp7_local3 = 0.0; + var tmp8_local4 = 0.0; + var tmp9_local5 = new Long(0, 0); + var tmp10_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp10_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_166(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp10_input.decodeDoubleElement_isei84_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp10_input.decodeDoubleElement_isei84_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp10_input.decodeDoubleElement_isei84_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp10_input.decodeDoubleElement_isei84_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + } else + while (tmp1_flag) { + tmp2_index = tmp10_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_166(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp10_input.decodeDoubleElement_isei84_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp10_input.decodeDoubleElement_isei84_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp10_input.decodeDoubleElement_isei84_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp10_input.decodeDoubleElement_isei84_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp10_input.endStructure_1xqz0n_k$(tmp0_desc); + return KLiveAnimeItem.new_com_bapis_bilibili_dagw_component_avatar_v1_plugin_KLiveAnimeItem_tle2pw_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); + } + serialize_bx604m_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.color == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_166(), value.color); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !equals(value.startRatio, 0.0)) { + tmp1_output.encodeDoubleElement_a6rqhe_k$(tmp0_desc, 1, value.startRatio); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !equals(value.endRatio, 0.0)) { + tmp1_output.encodeDoubleElement_a6rqhe_k$(tmp0_desc, 2, value.endRatio); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !equals(value.startStroke, 0.0)) { + tmp1_output.encodeDoubleElement_a6rqhe_k$(tmp0_desc, 3, value.startStroke); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !equals(value.startOpacity, 0.0)) { + tmp1_output.encodeDoubleElement_a6rqhe_k$(tmp0_desc, 4, value.startOpacity); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !value.phase.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 5, value.phase); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_bx604m_k$(encoder, value instanceof KLiveAnimeItem ? value : THROW_CCE()); + } + } + class KLiveAnimeItem { + constructor(color, startRatio, endRatio, startStroke, startOpacity, phase) { + Companion_instance_192; + color = color === VOID ? null : color; + startRatio = startRatio === VOID ? 0.0 : startRatio; + endRatio = endRatio === VOID ? 0.0 : endRatio; + startStroke = startStroke === VOID ? 0.0 : startStroke; + startOpacity = startOpacity === VOID ? 0.0 : startOpacity; + phase = phase === VOID ? new Long(0, 0) : phase; + this.color = color; + this.startRatio = startRatio; + this.endRatio = endRatio; + this.startStroke = startStroke; + this.startOpacity = startOpacity; + this.phase = phase; + } + get_color_ipu8u2_k$() { + return this.color; + } + get_startRatio_omrs5u_k$() { + return this.startRatio; + } + get_endRatio_3h2eyv_k$() { + return this.endRatio; + } + get_startStroke_gyuskv_k$() { + return this.startStroke; + } + get_startOpacity_imxzla_k$() { + return this.startOpacity; + } + get_phase_iwuvki_k$() { + return this.phase; + } + component1_7eebsc_k$() { + return this.color; + } + component2_7eebsb_k$() { + return this.startRatio; + } + component3_7eebsa_k$() { + return this.endRatio; + } + component4_7eebs9_k$() { + return this.startStroke; + } + component5_7eebs8_k$() { + return this.startOpacity; + } + component6_7eebs7_k$() { + return this.phase; + } + copy_9isk9p_k$(color, startRatio, endRatio, startStroke, startOpacity, phase) { + return new KLiveAnimeItem(color, startRatio, endRatio, startStroke, startOpacity, phase); + } + copy(color, startRatio, endRatio, startStroke, startOpacity, phase, $super) { + color = color === VOID ? this.color : color; + startRatio = startRatio === VOID ? this.startRatio : startRatio; + endRatio = endRatio === VOID ? this.endRatio : endRatio; + startStroke = startStroke === VOID ? this.startStroke : startStroke; + startOpacity = startOpacity === VOID ? this.startOpacity : startOpacity; + phase = phase === VOID ? this.phase : phase; + return this.copy_9isk9p_k$(color, startRatio, endRatio, startStroke, startOpacity, phase); + } + toString() { + return 'KLiveAnimeItem(color=' + this.color + ', startRatio=' + this.startRatio + ', endRatio=' + this.endRatio + ', startStroke=' + this.startStroke + ', startOpacity=' + this.startOpacity + ', phase=' + this.phase.toString() + ')'; + } + hashCode() { + var result = this.color == null ? 0 : this.color.hashCode(); + result = imul(result, 31) + getNumberHashCode(this.startRatio) | 0; + result = imul(result, 31) + getNumberHashCode(this.endRatio) | 0; + result = imul(result, 31) + getNumberHashCode(this.startStroke) | 0; + result = imul(result, 31) + getNumberHashCode(this.startOpacity) | 0; + result = imul(result, 31) + this.phase.hashCode() | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KLiveAnimeItem)) + return false; + var tmp0_other_with_cast = other instanceof KLiveAnimeItem ? other : THROW_CCE(); + if (!equals(this.color, tmp0_other_with_cast.color)) + return false; + if (!equals(this.startRatio, tmp0_other_with_cast.startRatio)) + return false; + if (!equals(this.endRatio, tmp0_other_with_cast.endRatio)) + return false; + if (!equals(this.startStroke, tmp0_other_with_cast.startStroke)) + return false; + if (!equals(this.startOpacity, tmp0_other_with_cast.startOpacity)) + return false; + if (!this.phase.equals(tmp0_other_with_cast.phase)) + return false; + return true; + } + static new_com_bapis_bilibili_dagw_component_avatar_v1_plugin_KLiveAnimeItem_tle2pw_k$(seen1, color, startRatio, endRatio, startStroke, startOpacity, phase, serializationConstructorMarker) { + Companion_instance_192; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_179().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.color = null; + else + $this.color = color; + if (0 === (seen1 & 2)) + $this.startRatio = 0.0; + else + $this.startRatio = startRatio; + if (0 === (seen1 & 4)) + $this.endRatio = 0.0; + else + $this.endRatio = endRatio; + if (0 === (seen1 & 8)) + $this.startStroke = 0.0; + else + $this.startStroke = startStroke; + if (0 === (seen1 & 16)) + $this.startOpacity = 0.0; + else + $this.startOpacity = startOpacity; + if (0 === (seen1 & 32)) + $this.phase = new Long(0, 0); + else + $this.phase = phase; + return $this; + } + } + class Companion_193 { + constructor() { + this.targetPath = '/bilibili.dagw.component.avatar.v1.plugin.WebLiveAnimeConfig'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_180(); + } + } + class $serializer_180 { + constructor() { + $serializer_instance_180 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.dagw.component.avatar.v1.plugin.KWebLiveAnimeConfig', this, 6); + tmp0_serialDesc.addElement_5pzumi_k$('circleGapWidth', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('pinkCircleWidth', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('liveLabelWidth', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('liveLabelHeight', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('liveLabelOffsetY', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('liveLabelBorderWidth', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [DoubleSerializer_getInstance(), DoubleSerializer_getInstance(), DoubleSerializer_getInstance(), DoubleSerializer_getInstance(), DoubleSerializer_getInstance(), DoubleSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0.0; + var tmp5_local1 = 0.0; + var tmp6_local2 = 0.0; + var tmp7_local3 = 0.0; + var tmp8_local4 = 0.0; + var tmp9_local5 = 0.0; + var tmp10_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp10_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp10_input.decodeDoubleElement_isei84_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp10_input.decodeDoubleElement_isei84_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp10_input.decodeDoubleElement_isei84_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp10_input.decodeDoubleElement_isei84_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp10_input.decodeDoubleElement_isei84_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp10_input.decodeDoubleElement_isei84_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + } else + while (tmp1_flag) { + tmp2_index = tmp10_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp10_input.decodeDoubleElement_isei84_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp10_input.decodeDoubleElement_isei84_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp10_input.decodeDoubleElement_isei84_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp10_input.decodeDoubleElement_isei84_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp10_input.decodeDoubleElement_isei84_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp10_input.decodeDoubleElement_isei84_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp10_input.endStructure_1xqz0n_k$(tmp0_desc); + return KWebLiveAnimeConfig.new_com_bapis_bilibili_dagw_component_avatar_v1_plugin_KWebLiveAnimeConfig_qghx4l_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); + } + serialize_dtwx01_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.circleGapWidth, 0.0)) { + tmp1_output.encodeDoubleElement_a6rqhe_k$(tmp0_desc, 0, value.circleGapWidth); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !equals(value.pinkCircleWidth, 0.0)) { + tmp1_output.encodeDoubleElement_a6rqhe_k$(tmp0_desc, 1, value.pinkCircleWidth); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !equals(value.liveLabelWidth, 0.0)) { + tmp1_output.encodeDoubleElement_a6rqhe_k$(tmp0_desc, 2, value.liveLabelWidth); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !equals(value.liveLabelHeight, 0.0)) { + tmp1_output.encodeDoubleElement_a6rqhe_k$(tmp0_desc, 3, value.liveLabelHeight); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !equals(value.liveLabelOffsetY, 0.0)) { + tmp1_output.encodeDoubleElement_a6rqhe_k$(tmp0_desc, 4, value.liveLabelOffsetY); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !equals(value.liveLabelBorderWidth, 0.0)) { + tmp1_output.encodeDoubleElement_a6rqhe_k$(tmp0_desc, 5, value.liveLabelBorderWidth); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_dtwx01_k$(encoder, value instanceof KWebLiveAnimeConfig ? value : THROW_CCE()); + } + } + class KWebLiveAnimeConfig { + constructor(circleGapWidth, pinkCircleWidth, liveLabelWidth, liveLabelHeight, liveLabelOffsetY, liveLabelBorderWidth) { + Companion_instance_193; + circleGapWidth = circleGapWidth === VOID ? 0.0 : circleGapWidth; + pinkCircleWidth = pinkCircleWidth === VOID ? 0.0 : pinkCircleWidth; + liveLabelWidth = liveLabelWidth === VOID ? 0.0 : liveLabelWidth; + liveLabelHeight = liveLabelHeight === VOID ? 0.0 : liveLabelHeight; + liveLabelOffsetY = liveLabelOffsetY === VOID ? 0.0 : liveLabelOffsetY; + liveLabelBorderWidth = liveLabelBorderWidth === VOID ? 0.0 : liveLabelBorderWidth; + this.circleGapWidth = circleGapWidth; + this.pinkCircleWidth = pinkCircleWidth; + this.liveLabelWidth = liveLabelWidth; + this.liveLabelHeight = liveLabelHeight; + this.liveLabelOffsetY = liveLabelOffsetY; + this.liveLabelBorderWidth = liveLabelBorderWidth; + } + get_circleGapWidth_cguqnr_k$() { + return this.circleGapWidth; + } + get_pinkCircleWidth_thokmh_k$() { + return this.pinkCircleWidth; + } + get_liveLabelWidth_3ewxbt_k$() { + return this.liveLabelWidth; + } + get_liveLabelHeight_t22tvq_k$() { + return this.liveLabelHeight; + } + get_liveLabelOffsetY_9j8siv_k$() { + return this.liveLabelOffsetY; + } + get_liveLabelBorderWidth_d6vut7_k$() { + return this.liveLabelBorderWidth; + } + component1_7eebsc_k$() { + return this.circleGapWidth; + } + component2_7eebsb_k$() { + return this.pinkCircleWidth; + } + component3_7eebsa_k$() { + return this.liveLabelWidth; + } + component4_7eebs9_k$() { + return this.liveLabelHeight; + } + component5_7eebs8_k$() { + return this.liveLabelOffsetY; + } + component6_7eebs7_k$() { + return this.liveLabelBorderWidth; + } + copy_q986iz_k$(circleGapWidth, pinkCircleWidth, liveLabelWidth, liveLabelHeight, liveLabelOffsetY, liveLabelBorderWidth) { + return new KWebLiveAnimeConfig(circleGapWidth, pinkCircleWidth, liveLabelWidth, liveLabelHeight, liveLabelOffsetY, liveLabelBorderWidth); + } + copy(circleGapWidth, pinkCircleWidth, liveLabelWidth, liveLabelHeight, liveLabelOffsetY, liveLabelBorderWidth, $super) { + circleGapWidth = circleGapWidth === VOID ? this.circleGapWidth : circleGapWidth; + pinkCircleWidth = pinkCircleWidth === VOID ? this.pinkCircleWidth : pinkCircleWidth; + liveLabelWidth = liveLabelWidth === VOID ? this.liveLabelWidth : liveLabelWidth; + liveLabelHeight = liveLabelHeight === VOID ? this.liveLabelHeight : liveLabelHeight; + liveLabelOffsetY = liveLabelOffsetY === VOID ? this.liveLabelOffsetY : liveLabelOffsetY; + liveLabelBorderWidth = liveLabelBorderWidth === VOID ? this.liveLabelBorderWidth : liveLabelBorderWidth; + return this.copy_q986iz_k$(circleGapWidth, pinkCircleWidth, liveLabelWidth, liveLabelHeight, liveLabelOffsetY, liveLabelBorderWidth); + } + toString() { + return 'KWebLiveAnimeConfig(circleGapWidth=' + this.circleGapWidth + ', pinkCircleWidth=' + this.pinkCircleWidth + ', liveLabelWidth=' + this.liveLabelWidth + ', liveLabelHeight=' + this.liveLabelHeight + ', liveLabelOffsetY=' + this.liveLabelOffsetY + ', liveLabelBorderWidth=' + this.liveLabelBorderWidth + ')'; + } + hashCode() { + var result = getNumberHashCode(this.circleGapWidth); + result = imul(result, 31) + getNumberHashCode(this.pinkCircleWidth) | 0; + result = imul(result, 31) + getNumberHashCode(this.liveLabelWidth) | 0; + result = imul(result, 31) + getNumberHashCode(this.liveLabelHeight) | 0; + result = imul(result, 31) + getNumberHashCode(this.liveLabelOffsetY) | 0; + result = imul(result, 31) + getNumberHashCode(this.liveLabelBorderWidth) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KWebLiveAnimeConfig)) + return false; + var tmp0_other_with_cast = other instanceof KWebLiveAnimeConfig ? other : THROW_CCE(); + if (!equals(this.circleGapWidth, tmp0_other_with_cast.circleGapWidth)) + return false; + if (!equals(this.pinkCircleWidth, tmp0_other_with_cast.pinkCircleWidth)) + return false; + if (!equals(this.liveLabelWidth, tmp0_other_with_cast.liveLabelWidth)) + return false; + if (!equals(this.liveLabelHeight, tmp0_other_with_cast.liveLabelHeight)) + return false; + if (!equals(this.liveLabelOffsetY, tmp0_other_with_cast.liveLabelOffsetY)) + return false; + if (!equals(this.liveLabelBorderWidth, tmp0_other_with_cast.liveLabelBorderWidth)) + return false; + return true; + } + static new_com_bapis_bilibili_dagw_component_avatar_v1_plugin_KWebLiveAnimeConfig_qghx4l_k$(seen1, circleGapWidth, pinkCircleWidth, liveLabelWidth, liveLabelHeight, liveLabelOffsetY, liveLabelBorderWidth, serializationConstructorMarker) { + Companion_instance_193; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_180().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.circleGapWidth = 0.0; + else + $this.circleGapWidth = circleGapWidth; + if (0 === (seen1 & 2)) + $this.pinkCircleWidth = 0.0; + else + $this.pinkCircleWidth = pinkCircleWidth; + if (0 === (seen1 & 4)) + $this.liveLabelWidth = 0.0; + else + $this.liveLabelWidth = liveLabelWidth; + if (0 === (seen1 & 8)) + $this.liveLabelHeight = 0.0; + else + $this.liveLabelHeight = liveLabelHeight; + if (0 === (seen1 & 16)) + $this.liveLabelOffsetY = 0.0; + else + $this.liveLabelOffsetY = liveLabelOffsetY; + if (0 === (seen1 & 32)) + $this.liveLabelBorderWidth = 0.0; + else + $this.liveLabelBorderWidth = liveLabelBorderWidth; + return $this; + } + } + class Companion_194 { + constructor() { + Companion_instance_194 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, new ArrayListSerializer($serializer_getInstance_182()), null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.dagw.component.avatar.v1.AvatarItem'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_181(); + } + } + class $serializer_181 { + constructor() { + $serializer_instance_181 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.dagw.component.avatar.v1.KAvatarItem', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('containerSize', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('layers', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('fallbackLayers', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('mid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_194().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_153()), tmp0_cached[1], get_nullable($serializer_getInstance_182()), LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = new Long(0, 0); + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp9_cached = Companion_getInstance_194().$childSerializers_1; + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_153(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp9_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_182(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_153(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp9_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_182(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KAvatarItem.new_com_bapis_bilibili_dagw_component_avatar_v1_KAvatarItem_xthmpw_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_gq7r9_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_194().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.containerSize == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_153(), value.containerSize); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !equals(value.layers, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 1, tmp2_cached[1], value.layers); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.fallbackLayers == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_182(), value.fallbackLayers); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !value.mid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 3, value.mid); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_gq7r9_k$(encoder, value instanceof KAvatarItem ? value : THROW_CCE()); + } + } + class KAvatarItem { + constructor(containerSize, layers, fallbackLayers, mid) { + Companion_getInstance_194(); + containerSize = containerSize === VOID ? null : containerSize; + layers = layers === VOID ? emptyList() : layers; + fallbackLayers = fallbackLayers === VOID ? null : fallbackLayers; + mid = mid === VOID ? new Long(0, 0) : mid; + this.containerSize = containerSize; + this.layers = layers; + this.fallbackLayers = fallbackLayers; + this.mid = mid; + } + get_containerSize_vbak1l_k$() { + return this.containerSize; + } + get_layers_g22qtn_k$() { + return this.layers; + } + get_fallbackLayers_snljv1_k$() { + return this.fallbackLayers; + } + get_mid_18j0o1_k$() { + return this.mid; + } + component1_7eebsc_k$() { + return this.containerSize; + } + component2_7eebsb_k$() { + return this.layers; + } + component3_7eebsa_k$() { + return this.fallbackLayers; + } + component4_7eebs9_k$() { + return this.mid; + } + copy_142gv_k$(containerSize, layers, fallbackLayers, mid) { + return new KAvatarItem(containerSize, layers, fallbackLayers, mid); + } + copy(containerSize, layers, fallbackLayers, mid, $super) { + containerSize = containerSize === VOID ? this.containerSize : containerSize; + layers = layers === VOID ? this.layers : layers; + fallbackLayers = fallbackLayers === VOID ? this.fallbackLayers : fallbackLayers; + mid = mid === VOID ? this.mid : mid; + return this.copy_142gv_k$(containerSize, layers, fallbackLayers, mid); + } + toString() { + return 'KAvatarItem(containerSize=' + this.containerSize + ', layers=' + this.layers + ', fallbackLayers=' + this.fallbackLayers + ', mid=' + this.mid.toString() + ')'; + } + hashCode() { + var result = this.containerSize == null ? 0 : this.containerSize.hashCode(); + result = imul(result, 31) + hashCode(this.layers) | 0; + result = imul(result, 31) + (this.fallbackLayers == null ? 0 : this.fallbackLayers.hashCode()) | 0; + result = imul(result, 31) + this.mid.hashCode() | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KAvatarItem)) + return false; + var tmp0_other_with_cast = other instanceof KAvatarItem ? other : THROW_CCE(); + if (!equals(this.containerSize, tmp0_other_with_cast.containerSize)) + return false; + if (!equals(this.layers, tmp0_other_with_cast.layers)) + return false; + if (!equals(this.fallbackLayers, tmp0_other_with_cast.fallbackLayers)) + return false; + if (!this.mid.equals(tmp0_other_with_cast.mid)) + return false; + return true; + } + static new_com_bapis_bilibili_dagw_component_avatar_v1_KAvatarItem_xthmpw_k$(seen1, containerSize, layers, fallbackLayers, mid, serializationConstructorMarker) { + Companion_getInstance_194(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_181().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.containerSize = null; + else + $this.containerSize = containerSize; + if (0 === (seen1 & 2)) + $this.layers = emptyList(); + else + $this.layers = layers; + if (0 === (seen1 & 4)) + $this.fallbackLayers = null; + else + $this.fallbackLayers = fallbackLayers; + if (0 === (seen1 & 8)) + $this.mid = new Long(0, 0); + else + $this.mid = mid; + return $this; + } + } + class Companion_195 { + constructor() { + Companion_instance_195 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, new ArrayListSerializer($serializer_getInstance_183()), null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.dagw.component.avatar.v1.LayerGroup'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_182(); + } + } + class $serializer_182 { + constructor() { + $serializer_instance_182 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.dagw.component.avatar.v1.KLayerGroup', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('groupId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('layers', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('groupMask', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('isCriticalGroup', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_195().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), tmp0_cached[1], get_nullable($serializer_getInstance_161()), BooleanSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = false; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp9_cached = Companion_getInstance_195().$childSerializers_1; + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp9_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_161(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp9_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_161(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KLayerGroup.new_com_bapis_bilibili_dagw_component_avatar_v1_KLayerGroup_r2xo97_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_tkysvb_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_195().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.groupId === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.groupId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !equals(value.layers, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 1, tmp2_cached[1], value.layers); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.groupMask == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_161(), value.groupMask); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.isCriticalGroup === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 3, value.isCriticalGroup); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_tkysvb_k$(encoder, value instanceof KLayerGroup ? value : THROW_CCE()); + } + } + class KLayerGroup { + constructor(groupId, layers, groupMask, isCriticalGroup) { + Companion_getInstance_195(); + groupId = groupId === VOID ? '' : groupId; + layers = layers === VOID ? emptyList() : layers; + groupMask = groupMask === VOID ? null : groupMask; + isCriticalGroup = isCriticalGroup === VOID ? false : isCriticalGroup; + this.groupId = groupId; + this.layers = layers; + this.groupMask = groupMask; + this.isCriticalGroup = isCriticalGroup; + } + get_groupId_6494pd_k$() { + return this.groupId; + } + get_layers_g22qtn_k$() { + return this.layers; + } + get_groupMask_g0jee6_k$() { + return this.groupMask; + } + get_isCriticalGroup_i2dcfh_k$() { + return this.isCriticalGroup; + } + component1_7eebsc_k$() { + return this.groupId; + } + component2_7eebsb_k$() { + return this.layers; + } + component3_7eebsa_k$() { + return this.groupMask; + } + component4_7eebs9_k$() { + return this.isCriticalGroup; + } + copy_9hcwfb_k$(groupId, layers, groupMask, isCriticalGroup) { + return new KLayerGroup(groupId, layers, groupMask, isCriticalGroup); + } + copy(groupId, layers, groupMask, isCriticalGroup, $super) { + groupId = groupId === VOID ? this.groupId : groupId; + layers = layers === VOID ? this.layers : layers; + groupMask = groupMask === VOID ? this.groupMask : groupMask; + isCriticalGroup = isCriticalGroup === VOID ? this.isCriticalGroup : isCriticalGroup; + return this.copy_9hcwfb_k$(groupId, layers, groupMask, isCriticalGroup); + } + toString() { + return 'KLayerGroup(groupId=' + this.groupId + ', layers=' + this.layers + ', groupMask=' + this.groupMask + ', isCriticalGroup=' + this.isCriticalGroup + ')'; + } + hashCode() { + var result = getStringHashCode(this.groupId); + result = imul(result, 31) + hashCode(this.layers) | 0; + result = imul(result, 31) + (this.groupMask == null ? 0 : this.groupMask.hashCode()) | 0; + result = imul(result, 31) + getBooleanHashCode(this.isCriticalGroup) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KLayerGroup)) + return false; + var tmp0_other_with_cast = other instanceof KLayerGroup ? other : THROW_CCE(); + if (!(this.groupId === tmp0_other_with_cast.groupId)) + return false; + if (!equals(this.layers, tmp0_other_with_cast.layers)) + return false; + if (!equals(this.groupMask, tmp0_other_with_cast.groupMask)) + return false; + if (!(this.isCriticalGroup === tmp0_other_with_cast.isCriticalGroup)) + return false; + return true; + } + static new_com_bapis_bilibili_dagw_component_avatar_v1_KLayerGroup_r2xo97_k$(seen1, groupId, layers, groupMask, isCriticalGroup, serializationConstructorMarker) { + Companion_getInstance_195(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_182().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.groupId = ''; + else + $this.groupId = groupId; + if (0 === (seen1 & 2)) + $this.layers = emptyList(); + else + $this.layers = layers; + if (0 === (seen1 & 4)) + $this.groupMask = null; + else + $this.groupMask = groupMask; + if (0 === (seen1 & 8)) + $this.isCriticalGroup = false; + else + $this.isCriticalGroup = isCriticalGroup; + return $this; + } + } + class Companion_196 { + constructor() { + this.targetPath = '/bilibili.dagw.component.avatar.v1.Layer'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_183(); + } + } + class $serializer_183 { + constructor() { + $serializer_instance_183 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.dagw.component.avatar.v1.KLayer', this, 5); + tmp0_serialDesc.addElement_5pzumi_k$('layerId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('visible', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('generalSpec', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('layerConfig', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('resource', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), BooleanSerializer_getInstance(), get_nullable($serializer_getInstance_157()), get_nullable($serializer_getInstance_187()), get_nullable($serializer_getInstance_185())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = false; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp9_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp9_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_157(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_187(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_185(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + } else + while (tmp1_flag) { + tmp2_index = tmp9_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp9_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_157(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_187(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_185(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp9_input.endStructure_1xqz0n_k$(tmp0_desc); + return KLayer.new_com_bapis_bilibili_dagw_component_avatar_v1_KLayer_k9pk2d_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); + } + serialize_t7ldm6_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.layerId === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.layerId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.visible === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 1, value.visible); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.generalSpec == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_157(), value.generalSpec); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.layerConfig == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_187(), value.layerConfig); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.resource == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, $serializer_getInstance_185(), value.resource); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_t7ldm6_k$(encoder, value instanceof KLayer ? value : THROW_CCE()); + } + } + class KLayer { + constructor(layerId, visible, generalSpec, layerConfig, resource) { + Companion_instance_196; + layerId = layerId === VOID ? '' : layerId; + visible = visible === VOID ? false : visible; + generalSpec = generalSpec === VOID ? null : generalSpec; + layerConfig = layerConfig === VOID ? null : layerConfig; + resource = resource === VOID ? null : resource; + this.layerId = layerId; + this.visible = visible; + this.generalSpec = generalSpec; + this.layerConfig = layerConfig; + this.resource = resource; + } + get_layerId_kkorn_k$() { + return this.layerId; + } + get_visible_8zfvk9_k$() { + return this.visible; + } + get_generalSpec_sfffx6_k$() { + return this.generalSpec; + } + get_layerConfig_nxnd6e_k$() { + return this.layerConfig; + } + get_resource_xl4447_k$() { + return this.resource; + } + component1_7eebsc_k$() { + return this.layerId; + } + component2_7eebsb_k$() { + return this.visible; + } + component3_7eebsa_k$() { + return this.generalSpec; + } + component4_7eebs9_k$() { + return this.layerConfig; + } + component5_7eebs8_k$() { + return this.resource; + } + copy_4ye5p5_k$(layerId, visible, generalSpec, layerConfig, resource) { + return new KLayer(layerId, visible, generalSpec, layerConfig, resource); + } + copy(layerId, visible, generalSpec, layerConfig, resource, $super) { + layerId = layerId === VOID ? this.layerId : layerId; + visible = visible === VOID ? this.visible : visible; + generalSpec = generalSpec === VOID ? this.generalSpec : generalSpec; + layerConfig = layerConfig === VOID ? this.layerConfig : layerConfig; + resource = resource === VOID ? this.resource : resource; + return this.copy_4ye5p5_k$(layerId, visible, generalSpec, layerConfig, resource); + } + toString() { + return 'KLayer(layerId=' + this.layerId + ', visible=' + this.visible + ', generalSpec=' + this.generalSpec + ', layerConfig=' + this.layerConfig + ', resource=' + this.resource + ')'; + } + hashCode() { + var result = getStringHashCode(this.layerId); + result = imul(result, 31) + getBooleanHashCode(this.visible) | 0; + result = imul(result, 31) + (this.generalSpec == null ? 0 : this.generalSpec.hashCode()) | 0; + result = imul(result, 31) + (this.layerConfig == null ? 0 : this.layerConfig.hashCode()) | 0; + result = imul(result, 31) + (this.resource == null ? 0 : this.resource.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KLayer)) + return false; + var tmp0_other_with_cast = other instanceof KLayer ? other : THROW_CCE(); + if (!(this.layerId === tmp0_other_with_cast.layerId)) + return false; + if (!(this.visible === tmp0_other_with_cast.visible)) + return false; + if (!equals(this.generalSpec, tmp0_other_with_cast.generalSpec)) + return false; + if (!equals(this.layerConfig, tmp0_other_with_cast.layerConfig)) + return false; + if (!equals(this.resource, tmp0_other_with_cast.resource)) + return false; + return true; + } + static new_com_bapis_bilibili_dagw_component_avatar_v1_KLayer_k9pk2d_k$(seen1, layerId, visible, generalSpec, layerConfig, resource, serializationConstructorMarker) { + Companion_instance_196; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_183().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.layerId = ''; + else + $this.layerId = layerId; + if (0 === (seen1 & 2)) + $this.visible = false; + else + $this.visible = visible; + if (0 === (seen1 & 4)) + $this.generalSpec = null; + else + $this.generalSpec = generalSpec; + if (0 === (seen1 & 8)) + $this.layerConfig = null; + else + $this.layerConfig = layerConfig; + if (0 === (seen1 & 16)) + $this.resource = null; + else + $this.resource = resource; + return $this; + } + } + class Companion_197 { + constructor() { + Companion_instance_197 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KBasicLayerResource$KResType$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KBasicLayerResource$KResType$Companion$_anonymous__512m60); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_35(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.dagw.component.avatar.v1.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KResType_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.dagw.component.avatar.v1.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KResType with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_35(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_184 { + constructor() { + $serializer_instance_184 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.dagw.component.avatar.v1.KBasicLayerResource.KResType', 7); + tmp0_serialDesc.addElement_5pzumi_k$('INVALID', false); + tmp0_serialDesc.addElement_5pzumi_k$('PLUGIN', false); + tmp0_serialDesc.addElement_5pzumi_k$('EMPTY', false); + tmp0_serialDesc.addElement_5pzumi_k$('IMAGE', false); + tmp0_serialDesc.addElement_5pzumi_k$('ANIMATION', false); + tmp0_serialDesc.addElement_5pzumi_k$('NATIVE_DRAW', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_35()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_7dxygq_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_7dxygq_k$(encoder, value instanceof KResType ? value : THROW_CCE()); + } + } + class KPayload { + constructor(value) { + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + } + class KResImage extends KPayload { + constructor() { + KResImage_instance = null; + super(0); + KResImage_instance = this; + } + } + class KResAnimation extends KPayload { + constructor() { + KResAnimation_instance = null; + super(1); + KResAnimation_instance = this; + } + } + class KResNativeDraw extends KPayload { + constructor() { + KResNativeDraw_instance = null; + super(2); + KResNativeDraw_instance = this; + } + } + class Companion_198 { + constructor() { + Companion_instance_198 = this; + var tmp = this; + tmp.payloadValues$delegate_1 = lazy_0(KBasicLayerResource$Companion$payloadValues$delegate$lambda); + this.targetPath = '/bilibili.dagw.component.avatar.v1.BasicLayerResource'; + } + get_payloadValues_t9aehl_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.payloadValues$delegate_1; + var thisRef = this; + var property = payloadValues$factory(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_185(); + } + get payloadValues() { + return this.get_payloadValues_t9aehl_k$(); + } + } + class KResType extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class $serializer_185 { + constructor() { + $serializer_instance_185 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.dagw.component.avatar.v1.KBasicLayerResource', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('resType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('resImage', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('resAnimation', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('resNativeDraw', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), get_nullable($serializer_getInstance_192()), get_nullable($serializer_getInstance_193()), get_nullable($serializer_getInstance_194())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_transient0 = 0; + var tmp9_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp9_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_192(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_193(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_194(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp9_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_192(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_193(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_194(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp9_input.endStructure_1xqz0n_k$(tmp0_desc); + return KBasicLayerResource.new_com_bapis_bilibili_dagw_component_avatar_v1_KBasicLayerResource_ggjk75_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_wt4n9m_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.resType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.resType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.resImage_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_192(), value.resImage_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.resAnimation_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_193(), value.resAnimation_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.resNativeDraw_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_194(), value.resNativeDraw_1); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_wt4n9m_k$(encoder, value instanceof KBasicLayerResource ? value : THROW_CCE()); + } + } + class KBasicLayerResource { + constructor(resType, resImage, resAnimation, resNativeDraw) { + Companion_getInstance_198(); + resType = resType === VOID ? 0 : resType; + resImage = resImage === VOID ? null : resImage; + resAnimation = resAnimation === VOID ? null : resAnimation; + resNativeDraw = resNativeDraw === VOID ? null : resNativeDraw; + this.resType = resType; + this.resImage_1 = resImage; + this.resAnimation_1 = resAnimation; + this.resNativeDraw_1 = resNativeDraw; + var tmp = this; + tmp.payloadNumber$delegate_1 = lazy_0(KBasicLayerResource$payloadNumber$delegate$lambda(this)); + } + get_resType_jefdht_k$() { + return this.resType; + } + payloadValue() { + if (!(this.resImage_1 == null)) { + var tmp = this.resImage_1; + return (tmp == null ? true : !(tmp == null)) ? tmp : null; + } else if (!(this.resAnimation_1 == null)) { + var tmp_0 = this.resAnimation_1; + return (tmp_0 == null ? true : !(tmp_0 == null)) ? tmp_0 : null; + } else if (!(this.resNativeDraw_1 == null)) { + var tmp_1 = this.resNativeDraw_1; + return (tmp_1 == null ? true : !(tmp_1 == null)) ? tmp_1 : null; + } else { + return null; + } + } + payloadTypeJs() { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = Companion_getInstance_198().payloadValues; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.dagw.component.avatar.v1.KBasicLayerResource.payloadType.' call + var it = element; + tmp$ret$0 = it.value === _get_payloadNumber__pugmre(this); + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + return tmp$ret$1; + } + resTypeEnum() { + return Companion_getInstance_197().fromValue(this.resType); + } + component1_7eebsc_k$() { + return this.resType; + } + copy_4e6d3c_k$(resType, resImage, resAnimation, resNativeDraw) { + return new KBasicLayerResource(resType, resImage, resAnimation, resNativeDraw); + } + copy(resType, resImage, resAnimation, resNativeDraw, $super) { + resType = resType === VOID ? this.resType : resType; + resImage = resImage === VOID ? this.resImage_1 : resImage; + resAnimation = resAnimation === VOID ? this.resAnimation_1 : resAnimation; + resNativeDraw = resNativeDraw === VOID ? this.resNativeDraw_1 : resNativeDraw; + return this.copy_4e6d3c_k$(resType, resImage, resAnimation, resNativeDraw); + } + toString() { + return 'KBasicLayerResource(resType=' + this.resType + ', resImage=' + this.resImage_1 + ', resAnimation=' + this.resAnimation_1 + ', resNativeDraw=' + this.resNativeDraw_1 + ')'; + } + hashCode() { + var result = this.resType; + result = imul(result, 31) + (this.resImage_1 == null ? 0 : this.resImage_1.hashCode()) | 0; + result = imul(result, 31) + (this.resAnimation_1 == null ? 0 : this.resAnimation_1.hashCode()) | 0; + result = imul(result, 31) + (this.resNativeDraw_1 == null ? 0 : this.resNativeDraw_1.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KBasicLayerResource)) + return false; + var tmp0_other_with_cast = other instanceof KBasicLayerResource ? other : THROW_CCE(); + if (!(this.resType === tmp0_other_with_cast.resType)) + return false; + if (!equals(this.resImage_1, tmp0_other_with_cast.resImage_1)) + return false; + if (!equals(this.resAnimation_1, tmp0_other_with_cast.resAnimation_1)) + return false; + if (!equals(this.resNativeDraw_1, tmp0_other_with_cast.resNativeDraw_1)) + return false; + return true; + } + static new_com_bapis_bilibili_dagw_component_avatar_v1_KBasicLayerResource_ggjk75_k$(seen1, resType, resImage, resAnimation, resNativeDraw, serializationConstructorMarker) { + Companion_getInstance_198(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_185().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.resType = 0; + else + $this.resType = resType; + if (0 === (seen1 & 2)) + $this.resImage_1 = null; + else + $this.resImage_1 = resImage; + if (0 === (seen1 & 4)) + $this.resAnimation_1 = null; + else + $this.resAnimation_1 = resAnimation; + if (0 === (seen1 & 8)) + $this.resNativeDraw_1 = null; + else + $this.resNativeDraw_1 = resNativeDraw; + var tmp = $this; + tmp.payloadNumber$delegate_1 = lazy_0(KBasicLayerResource$_init_$lambda_d0mskx($this)); + return $this; + } + } + class Companion_199 { + constructor() { + this.targetPath = '/bilibili.dagw.component.avatar.v1.LayerConfig.TagsEntry'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_186(); + } + } + class $serializer_186 { + constructor() { + $serializer_instance_186 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.dagw.component.avatar.v1.KLayerConfig.KTagsEntry', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('key', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('value', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), get_nullable($serializer_getInstance_189())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_189(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_189(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KTagsEntry.new_com_bapis_bilibili_dagw_component_avatar_v1_KLayerConfig_KTagsEntry_23jx9i_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_ep439e_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.key === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.key); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.value == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_189(), value.value); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_ep439e_k$(encoder, value instanceof KTagsEntry ? value : THROW_CCE()); + } + } + class KTagsEntry { + constructor(key, value) { + Companion_instance_199; + key = key === VOID ? '' : key; + value = value === VOID ? null : value; + this.key = key; + this.value = value; + } + get_key_18j28a_k$() { + return this.key; + } + get_value_j01efc_k$() { + return this.value; + } + component1_7eebsc_k$() { + return this.key; + } + component2_7eebsb_k$() { + return this.value; + } + copy_8ozlbh_k$(key, value) { + return new KTagsEntry(key, value); + } + copy(key, value, $super) { + key = key === VOID ? this.key : key; + value = value === VOID ? this.value : value; + return this.copy_8ozlbh_k$(key, value); + } + toString() { + return 'KTagsEntry(key=' + this.key + ', value=' + this.value + ')'; + } + hashCode() { + var result = getStringHashCode(this.key); + result = imul(result, 31) + (this.value == null ? 0 : this.value.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KTagsEntry)) + return false; + var tmp0_other_with_cast = other instanceof KTagsEntry ? other : THROW_CCE(); + if (!(this.key === tmp0_other_with_cast.key)) + return false; + if (!equals(this.value, tmp0_other_with_cast.value)) + return false; + return true; + } + static new_com_bapis_bilibili_dagw_component_avatar_v1_KLayerConfig_KTagsEntry_23jx9i_k$(seen1, key, value, serializationConstructorMarker) { + Companion_instance_199; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_186().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.key = ''; + else + $this.key = key; + if (0 === (seen1 & 2)) + $this.value = null; + else + $this.value = value; + return $this; + } + } + class Companion_200 { + constructor() { + Companion_instance_200 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new LinkedHashMapSerializer(StringSerializer_getInstance(), get_nullable($serializer_getInstance_189())), null, null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.dagw.component.avatar.v1.LayerConfig'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_187(); + } + } + class $serializer_187 { + constructor() { + $serializer_instance_187 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.dagw.component.avatar.v1.KLayerConfig', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('tags', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('isCritical', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('allowOverPaint', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('layerMask', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_200().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0], BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), get_nullable($serializer_getInstance_161())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = false; + var tmp6_local2 = false; + var tmp7_local3 = null; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp9_cached = Companion_getInstance_200().$childSerializers_1; + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp9_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_161(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp9_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_161(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KLayerConfig.new_com_bapis_bilibili_dagw_component_avatar_v1_KLayerConfig_80u4vx_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_tjh9kk_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_200().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.tags, emptyMap())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.tags); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.isCritical === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 1, value.isCritical); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.allowOverPaint === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 2, value.allowOverPaint); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.layerMask == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_161(), value.layerMask); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_tjh9kk_k$(encoder, value instanceof KLayerConfig ? value : THROW_CCE()); + } + } + class KLayerConfig { + constructor(tags, isCritical, allowOverPaint, layerMask) { + Companion_getInstance_200(); + tags = tags === VOID ? emptyMap() : tags; + isCritical = isCritical === VOID ? false : isCritical; + allowOverPaint = allowOverPaint === VOID ? false : allowOverPaint; + layerMask = layerMask === VOID ? null : layerMask; + this.tags = tags; + this.isCritical = isCritical; + this.allowOverPaint = allowOverPaint; + this.layerMask = layerMask; + } + get_tags_wousf6_k$() { + return this.tags; + } + get_isCritical_10a8b2_k$() { + return this.isCritical; + } + get_allowOverPaint_mnkre2_k$() { + return this.allowOverPaint; + } + get_layerMask_j0kpfw_k$() { + return this.layerMask; + } + component1_7eebsc_k$() { + return this.tags; + } + component2_7eebsb_k$() { + return this.isCritical; + } + component3_7eebsa_k$() { + return this.allowOverPaint; + } + component4_7eebs9_k$() { + return this.layerMask; + } + copy_gl701n_k$(tags, isCritical, allowOverPaint, layerMask) { + return new KLayerConfig(tags, isCritical, allowOverPaint, layerMask); + } + copy(tags, isCritical, allowOverPaint, layerMask, $super) { + tags = tags === VOID ? this.tags : tags; + isCritical = isCritical === VOID ? this.isCritical : isCritical; + allowOverPaint = allowOverPaint === VOID ? this.allowOverPaint : allowOverPaint; + layerMask = layerMask === VOID ? this.layerMask : layerMask; + return this.copy_gl701n_k$(tags, isCritical, allowOverPaint, layerMask); + } + toString() { + return 'KLayerConfig(tags=' + this.tags + ', isCritical=' + this.isCritical + ', allowOverPaint=' + this.allowOverPaint + ', layerMask=' + this.layerMask + ')'; + } + hashCode() { + var result = hashCode(this.tags); + result = imul(result, 31) + getBooleanHashCode(this.isCritical) | 0; + result = imul(result, 31) + getBooleanHashCode(this.allowOverPaint) | 0; + result = imul(result, 31) + (this.layerMask == null ? 0 : this.layerMask.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KLayerConfig)) + return false; + var tmp0_other_with_cast = other instanceof KLayerConfig ? other : THROW_CCE(); + if (!equals(this.tags, tmp0_other_with_cast.tags)) + return false; + if (!(this.isCritical === tmp0_other_with_cast.isCritical)) + return false; + if (!(this.allowOverPaint === tmp0_other_with_cast.allowOverPaint)) + return false; + if (!equals(this.layerMask, tmp0_other_with_cast.layerMask)) + return false; + return true; + } + static new_com_bapis_bilibili_dagw_component_avatar_v1_KLayerConfig_80u4vx_k$(seen1, tags, isCritical, allowOverPaint, layerMask, serializationConstructorMarker) { + Companion_getInstance_200(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_187().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.tags = emptyMap(); + else + $this.tags = tags; + if (0 === (seen1 & 2)) + $this.isCritical = false; + else + $this.isCritical = isCritical; + if (0 === (seen1 & 4)) + $this.allowOverPaint = false; + else + $this.allowOverPaint = allowOverPaint; + if (0 === (seen1 & 8)) + $this.layerMask = null; + else + $this.layerMask = layerMask; + return $this; + } + } + class Companion_201 { + constructor() { + Companion_instance_201 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KLayerTagConfig$KTagConfigType$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KLayerTagConfig$KTagConfigType$Companion$_anonymous__a5fcpi); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_36(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.dagw.component.avatar.v1.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KTagConfigType_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.dagw.component.avatar.v1.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KTagConfigType with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_36(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_188 { + constructor() { + $serializer_instance_188 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.dagw.component.avatar.v1.KLayerTagConfig.KTagConfigType', 7); + tmp0_serialDesc.addElement_5pzumi_k$('TAG_CFG_INVALID', false); + tmp0_serialDesc.addElement_5pzumi_k$('TAG_CFG_GENERAL', false); + tmp0_serialDesc.addElement_5pzumi_k$('TAG_CFG_GYRO', false); + tmp0_serialDesc.addElement_5pzumi_k$('TAG_CFG_COMMENT_DOUBLE_CLICK', false); + tmp0_serialDesc.addElement_5pzumi_k$('TAG_CFG_IN_LIVE', false); + tmp0_serialDesc.addElement_5pzumi_k$('TAG_CFG_WEB_IN_LIVE', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_36()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_rs0ync_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_rs0ync_k$(encoder, value instanceof KTagConfigType ? value : THROW_CCE()); + } + } + class KConfig { + constructor(value) { + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + } + class KGeneralConfig extends KConfig { + constructor() { + KGeneralConfig_instance = null; + super(0); + KGeneralConfig_instance = this; + } + } + class KGyroConfig_0 extends KConfig { + constructor() { + KGyroConfig_instance = null; + super(1); + KGyroConfig_instance = this; + } + } + class KCommentDoubleClickConfig_0 extends KConfig { + constructor() { + KCommentDoubleClickConfig_instance = null; + super(2); + KCommentDoubleClickConfig_instance = this; + } + } + class KLiveAnimeConfig_0 extends KConfig { + constructor() { + KLiveAnimeConfig_instance = null; + super(3); + KLiveAnimeConfig_instance = this; + } + } + class KWebLiveAnimeConfig_0 extends KConfig { + constructor() { + KWebLiveAnimeConfig_instance = null; + super(4); + KWebLiveAnimeConfig_instance = this; + } + } + class Companion_202 { + constructor() { + Companion_instance_202 = this; + var tmp = this; + tmp.configValues$delegate_1 = lazy_0(KLayerTagConfig$Companion$configValues$delegate$lambda); + this.targetPath = '/bilibili.dagw.component.avatar.v1.LayerTagConfig'; + } + get_configValues_8z19hp_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.configValues$delegate_1; + var thisRef = this; + var property = configValues$factory(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_189(); + } + get configValues() { + return this.get_configValues_8z19hp_k$(); + } + } + class KTagConfigType extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class $serializer_189 { + constructor() { + $serializer_instance_189 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.dagw.component.avatar.v1.KLayerTagConfig', this, 6); + tmp0_serialDesc.addElement_5pzumi_k$('configType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('generalConfig', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('gyroConfig', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('commentDoubleClickConfig', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('liveAnimeConfig', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('webLiveAnimeConfig', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), get_nullable($serializer_getInstance_191()), get_nullable($serializer_getInstance_170()), get_nullable($serializer_getInstance_168()), get_nullable($serializer_getInstance_176()), get_nullable($serializer_getInstance_180())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_transient0 = 0; + var tmp11_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp11_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_191(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_170(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_168(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_176(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_180(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + } else + while (tmp1_flag) { + tmp2_index = tmp11_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_191(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_170(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_168(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_176(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_180(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp11_input.endStructure_1xqz0n_k$(tmp0_desc); + return KLayerTagConfig.new_com_bapis_bilibili_dagw_component_avatar_v1_KLayerTagConfig_cjoxc8_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); + } + serialize_cbqh18_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.configType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.configType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.generalConfig_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_191(), value.generalConfig_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.gyroConfig_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_170(), value.gyroConfig_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.commentDoubleClickConfig_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_168(), value.commentDoubleClickConfig_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.liveAnimeConfig_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, $serializer_getInstance_176(), value.liveAnimeConfig_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.webLiveAnimeConfig_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 5, $serializer_getInstance_180(), value.webLiveAnimeConfig_1); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_cbqh18_k$(encoder, value instanceof KLayerTagConfig ? value : THROW_CCE()); + } + } + class KLayerTagConfig { + constructor(configType, generalConfig, gyroConfig, commentDoubleClickConfig, liveAnimeConfig, webLiveAnimeConfig) { + Companion_getInstance_202(); + configType = configType === VOID ? 0 : configType; + generalConfig = generalConfig === VOID ? null : generalConfig; + gyroConfig = gyroConfig === VOID ? null : gyroConfig; + commentDoubleClickConfig = commentDoubleClickConfig === VOID ? null : commentDoubleClickConfig; + liveAnimeConfig = liveAnimeConfig === VOID ? null : liveAnimeConfig; + webLiveAnimeConfig = webLiveAnimeConfig === VOID ? null : webLiveAnimeConfig; + this.configType = configType; + this.generalConfig_1 = generalConfig; + this.gyroConfig_1 = gyroConfig; + this.commentDoubleClickConfig_1 = commentDoubleClickConfig; + this.liveAnimeConfig_1 = liveAnimeConfig; + this.webLiveAnimeConfig_1 = webLiveAnimeConfig; + var tmp = this; + tmp.configNumber$delegate_1 = lazy_0(KLayerTagConfig$configNumber$delegate$lambda(this)); + } + get_configType_6f6kt7_k$() { + return this.configType; + } + configValue() { + if (!(this.generalConfig_1 == null)) { + var tmp = this.generalConfig_1; + return (tmp == null ? true : !(tmp == null)) ? tmp : null; + } else if (!(this.gyroConfig_1 == null)) { + var tmp_0 = this.gyroConfig_1; + return (tmp_0 == null ? true : !(tmp_0 == null)) ? tmp_0 : null; + } else if (!(this.commentDoubleClickConfig_1 == null)) { + var tmp_1 = this.commentDoubleClickConfig_1; + return (tmp_1 == null ? true : !(tmp_1 == null)) ? tmp_1 : null; + } else if (!(this.liveAnimeConfig_1 == null)) { + var tmp_2 = this.liveAnimeConfig_1; + return (tmp_2 == null ? true : !(tmp_2 == null)) ? tmp_2 : null; + } else if (!(this.webLiveAnimeConfig_1 == null)) { + var tmp_3 = this.webLiveAnimeConfig_1; + return (tmp_3 == null ? true : !(tmp_3 == null)) ? tmp_3 : null; + } else { + return null; + } + } + configTypeJs() { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = Companion_getInstance_202().configValues; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.dagw.component.avatar.v1.KLayerTagConfig.configType.' call + var it = element; + tmp$ret$0 = it.value === _get_configNumber__p2nvk0(this); + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + return tmp$ret$1; + } + configTypeEnum() { + return Companion_getInstance_201().fromValue(this.configType); + } + component1_7eebsc_k$() { + return this.configType; + } + copy_vcu7vx_k$(configType, generalConfig, gyroConfig, commentDoubleClickConfig, liveAnimeConfig, webLiveAnimeConfig) { + return new KLayerTagConfig(configType, generalConfig, gyroConfig, commentDoubleClickConfig, liveAnimeConfig, webLiveAnimeConfig); + } + copy(configType, generalConfig, gyroConfig, commentDoubleClickConfig, liveAnimeConfig, webLiveAnimeConfig, $super) { + configType = configType === VOID ? this.configType : configType; + generalConfig = generalConfig === VOID ? this.generalConfig_1 : generalConfig; + gyroConfig = gyroConfig === VOID ? this.gyroConfig_1 : gyroConfig; + commentDoubleClickConfig = commentDoubleClickConfig === VOID ? this.commentDoubleClickConfig_1 : commentDoubleClickConfig; + liveAnimeConfig = liveAnimeConfig === VOID ? this.liveAnimeConfig_1 : liveAnimeConfig; + webLiveAnimeConfig = webLiveAnimeConfig === VOID ? this.webLiveAnimeConfig_1 : webLiveAnimeConfig; + return this.copy_vcu7vx_k$(configType, generalConfig, gyroConfig, commentDoubleClickConfig, liveAnimeConfig, webLiveAnimeConfig); + } + toString() { + return 'KLayerTagConfig(configType=' + this.configType + ', generalConfig=' + this.generalConfig_1 + ', gyroConfig=' + this.gyroConfig_1 + ', commentDoubleClickConfig=' + this.commentDoubleClickConfig_1 + ', liveAnimeConfig=' + this.liveAnimeConfig_1 + ', webLiveAnimeConfig=' + this.webLiveAnimeConfig_1 + ')'; + } + hashCode() { + var result = this.configType; + result = imul(result, 31) + (this.generalConfig_1 == null ? 0 : this.generalConfig_1.hashCode()) | 0; + result = imul(result, 31) + (this.gyroConfig_1 == null ? 0 : this.gyroConfig_1.hashCode()) | 0; + result = imul(result, 31) + (this.commentDoubleClickConfig_1 == null ? 0 : this.commentDoubleClickConfig_1.hashCode()) | 0; + result = imul(result, 31) + (this.liveAnimeConfig_1 == null ? 0 : this.liveAnimeConfig_1.hashCode()) | 0; + result = imul(result, 31) + (this.webLiveAnimeConfig_1 == null ? 0 : this.webLiveAnimeConfig_1.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KLayerTagConfig)) + return false; + var tmp0_other_with_cast = other instanceof KLayerTagConfig ? other : THROW_CCE(); + if (!(this.configType === tmp0_other_with_cast.configType)) + return false; + if (!equals(this.generalConfig_1, tmp0_other_with_cast.generalConfig_1)) + return false; + if (!equals(this.gyroConfig_1, tmp0_other_with_cast.gyroConfig_1)) + return false; + if (!equals(this.commentDoubleClickConfig_1, tmp0_other_with_cast.commentDoubleClickConfig_1)) + return false; + if (!equals(this.liveAnimeConfig_1, tmp0_other_with_cast.liveAnimeConfig_1)) + return false; + if (!equals(this.webLiveAnimeConfig_1, tmp0_other_with_cast.webLiveAnimeConfig_1)) + return false; + return true; + } + static new_com_bapis_bilibili_dagw_component_avatar_v1_KLayerTagConfig_cjoxc8_k$(seen1, configType, generalConfig, gyroConfig, commentDoubleClickConfig, liveAnimeConfig, webLiveAnimeConfig, serializationConstructorMarker) { + Companion_getInstance_202(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_189().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.configType = 0; + else + $this.configType = configType; + if (0 === (seen1 & 2)) + $this.generalConfig_1 = null; + else + $this.generalConfig_1 = generalConfig; + if (0 === (seen1 & 4)) + $this.gyroConfig_1 = null; + else + $this.gyroConfig_1 = gyroConfig; + if (0 === (seen1 & 8)) + $this.commentDoubleClickConfig_1 = null; + else + $this.commentDoubleClickConfig_1 = commentDoubleClickConfig; + if (0 === (seen1 & 16)) + $this.liveAnimeConfig_1 = null; + else + $this.liveAnimeConfig_1 = liveAnimeConfig; + if (0 === (seen1 & 32)) + $this.webLiveAnimeConfig_1 = null; + else + $this.webLiveAnimeConfig_1 = webLiveAnimeConfig; + var tmp = $this; + tmp.configNumber$delegate_1 = lazy_0(KLayerTagConfig$_init_$lambda_x36s9h($this)); + return $this; + } + } + class Companion_203 { + constructor() { + this.targetPath = '/bilibili.dagw.component.avatar.v1.GeneralConfig.WebCssStyleEntry'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_190(); + } + } + class $serializer_190 { + constructor() { + $serializer_instance_190 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.dagw.component.avatar.v1.KGeneralConfig.KWebCssStyleEntry', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('key', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('value', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KWebCssStyleEntry.new_com_bapis_bilibili_dagw_component_avatar_v1_KGeneralConfig_KWebCssStyleEntry_swmw9_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_f34hmw_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.key === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.key); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.value === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.value); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_f34hmw_k$(encoder, value instanceof KWebCssStyleEntry ? value : THROW_CCE()); + } + } + class KWebCssStyleEntry { + constructor(key, value) { + Companion_instance_203; + key = key === VOID ? '' : key; + value = value === VOID ? '' : value; + this.key = key; + this.value = value; + } + get_key_18j28a_k$() { + return this.key; + } + get_value_j01efc_k$() { + return this.value; + } + component1_7eebsc_k$() { + return this.key; + } + component2_7eebsb_k$() { + return this.value; + } + copy_plwnsl_k$(key, value) { + return new KWebCssStyleEntry(key, value); + } + copy(key, value, $super) { + key = key === VOID ? this.key : key; + value = value === VOID ? this.value : value; + return this.copy_plwnsl_k$(key, value); + } + toString() { + return 'KWebCssStyleEntry(key=' + this.key + ', value=' + this.value + ')'; + } + hashCode() { + var result = getStringHashCode(this.key); + result = imul(result, 31) + getStringHashCode(this.value) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KWebCssStyleEntry)) + return false; + var tmp0_other_with_cast = other instanceof KWebCssStyleEntry ? other : THROW_CCE(); + if (!(this.key === tmp0_other_with_cast.key)) + return false; + if (!(this.value === tmp0_other_with_cast.value)) + return false; + return true; + } + static new_com_bapis_bilibili_dagw_component_avatar_v1_KGeneralConfig_KWebCssStyleEntry_swmw9_k$(seen1, key, value, serializationConstructorMarker) { + Companion_instance_203; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_190().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.key = ''; + else + $this.key = key; + if (0 === (seen1 & 2)) + $this.value = ''; + else + $this.value = value; + return $this; + } + } + class Companion_204 { + constructor() { + Companion_instance_204 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new LinkedHashMapSerializer(StringSerializer_getInstance(), StringSerializer_getInstance())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.dagw.component.avatar.v1.GeneralConfig'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_191(); + } + } + class $serializer_191 { + constructor() { + $serializer_instance_191 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.dagw.component.avatar.v1.KGeneralConfig', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('webCssStyle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_204().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp6_cached = Companion_getInstance_204().$childSerializers_1; + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KGeneralConfig_0.new_com_bapis_bilibili_dagw_component_avatar_v1_KGeneralConfig_v5tivu_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_armg7p_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_204().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.webCssStyle, emptyMap())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.webCssStyle); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_armg7p_k$(encoder, value instanceof KGeneralConfig_0 ? value : THROW_CCE()); + } + } + class KGeneralConfig_0 { + constructor(webCssStyle) { + Companion_getInstance_204(); + webCssStyle = webCssStyle === VOID ? emptyMap() : webCssStyle; + this.webCssStyle = webCssStyle; + } + get_webCssStyle_jyju61_k$() { + return this.webCssStyle; + } + component1_7eebsc_k$() { + return this.webCssStyle; + } + copy_ki6xwp_k$(webCssStyle) { + return new KGeneralConfig_0(webCssStyle); + } + copy(webCssStyle, $super) { + webCssStyle = webCssStyle === VOID ? this.webCssStyle : webCssStyle; + return this.copy_ki6xwp_k$(webCssStyle); + } + toString() { + return 'KGeneralConfig(webCssStyle=' + this.webCssStyle + ')'; + } + hashCode() { + return hashCode(this.webCssStyle); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KGeneralConfig_0)) + return false; + var tmp0_other_with_cast = other instanceof KGeneralConfig_0 ? other : THROW_CCE(); + if (!equals(this.webCssStyle, tmp0_other_with_cast.webCssStyle)) + return false; + return true; + } + static new_com_bapis_bilibili_dagw_component_avatar_v1_KGeneralConfig_v5tivu_k$(seen1, webCssStyle, serializationConstructorMarker) { + Companion_getInstance_204(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_191().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.webCssStyle = emptyMap(); + else + $this.webCssStyle = webCssStyle; + return $this; + } + } + class Companion_205 { + constructor() { + this.targetPath = '/bilibili.dagw.component.avatar.v1.ResImage'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_192(); + } + } + class $serializer_192 { + constructor() { + $serializer_instance_192 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.dagw.component.avatar.v1.KResImage', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('imageSrc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_160())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_160(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_160(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KResImage_0.new_com_bapis_bilibili_dagw_component_avatar_v1_KResImage_17m2cy_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_fkhe18_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.imageSrc == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_160(), value.imageSrc); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_fkhe18_k$(encoder, value instanceof KResImage_0 ? value : THROW_CCE()); + } + } + class KResImage_0 { + constructor(imageSrc) { + Companion_instance_205; + imageSrc = imageSrc === VOID ? null : imageSrc; + this.imageSrc = imageSrc; + } + get_imageSrc_p0du1e_k$() { + return this.imageSrc; + } + component1_7eebsc_k$() { + return this.imageSrc; + } + copy_6jqdu7_k$(imageSrc) { + return new KResImage_0(imageSrc); + } + copy(imageSrc, $super) { + imageSrc = imageSrc === VOID ? this.imageSrc : imageSrc; + return this.copy_6jqdu7_k$(imageSrc); + } + toString() { + return 'KResImage(imageSrc=' + this.imageSrc + ')'; + } + hashCode() { + return this.imageSrc == null ? 0 : this.imageSrc.hashCode(); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KResImage_0)) + return false; + var tmp0_other_with_cast = other instanceof KResImage_0 ? other : THROW_CCE(); + if (!equals(this.imageSrc, tmp0_other_with_cast.imageSrc)) + return false; + return true; + } + static new_com_bapis_bilibili_dagw_component_avatar_v1_KResImage_17m2cy_k$(seen1, imageSrc, serializationConstructorMarker) { + Companion_instance_205; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_192().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.imageSrc = null; + else + $this.imageSrc = imageSrc; + return $this; + } + } + class Companion_206 { + constructor() { + this.targetPath = '/bilibili.dagw.component.avatar.v1.ResAnimation'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_193(); + } + } + class $serializer_193 { + constructor() { + $serializer_instance_193 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.dagw.component.avatar.v1.KResAnimation', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('webpSrc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_160())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_160(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_160(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KResAnimation_0.new_com_bapis_bilibili_dagw_component_avatar_v1_KResAnimation_7ta4xn_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_u7yyrn_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.webpSrc == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_160(), value.webpSrc); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_u7yyrn_k$(encoder, value instanceof KResAnimation_0 ? value : THROW_CCE()); + } + } + class KResAnimation_0 { + constructor(webpSrc) { + Companion_instance_206; + webpSrc = webpSrc === VOID ? null : webpSrc; + this.webpSrc = webpSrc; + } + get_webpSrc_lifc1r_k$() { + return this.webpSrc; + } + component1_7eebsc_k$() { + return this.webpSrc; + } + copy_6jqdu7_k$(webpSrc) { + return new KResAnimation_0(webpSrc); + } + copy(webpSrc, $super) { + webpSrc = webpSrc === VOID ? this.webpSrc : webpSrc; + return this.copy_6jqdu7_k$(webpSrc); + } + toString() { + return 'KResAnimation(webpSrc=' + this.webpSrc + ')'; + } + hashCode() { + return this.webpSrc == null ? 0 : this.webpSrc.hashCode(); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KResAnimation_0)) + return false; + var tmp0_other_with_cast = other instanceof KResAnimation_0 ? other : THROW_CCE(); + if (!equals(this.webpSrc, tmp0_other_with_cast.webpSrc)) + return false; + return true; + } + static new_com_bapis_bilibili_dagw_component_avatar_v1_KResAnimation_7ta4xn_k$(seen1, webpSrc, serializationConstructorMarker) { + Companion_instance_206; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_193().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.webpSrc = null; + else + $this.webpSrc = webpSrc; + return $this; + } + } + class Companion_207 { + constructor() { + this.targetPath = '/bilibili.dagw.component.avatar.v1.ResNativeDraw'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_194(); + } + } + class $serializer_194 { + constructor() { + $serializer_instance_194 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.dagw.component.avatar.v1.KResNativeDraw', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('drawSrc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_160())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_160(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_160(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KResNativeDraw_0.new_com_bapis_bilibili_dagw_component_avatar_v1_KResNativeDraw_jv4310_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_o23xqc_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.drawSrc == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_160(), value.drawSrc); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_o23xqc_k$(encoder, value instanceof KResNativeDraw_0 ? value : THROW_CCE()); + } + } + class KResNativeDraw_0 { + constructor(drawSrc) { + Companion_instance_207; + drawSrc = drawSrc === VOID ? null : drawSrc; + this.drawSrc = drawSrc; + } + get_drawSrc_wwhx5j_k$() { + return this.drawSrc; + } + component1_7eebsc_k$() { + return this.drawSrc; + } + copy_6jqdu7_k$(drawSrc) { + return new KResNativeDraw_0(drawSrc); + } + copy(drawSrc, $super) { + drawSrc = drawSrc === VOID ? this.drawSrc : drawSrc; + return this.copy_6jqdu7_k$(drawSrc); + } + toString() { + return 'KResNativeDraw(drawSrc=' + this.drawSrc + ')'; + } + hashCode() { + return this.drawSrc == null ? 0 : this.drawSrc.hashCode(); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KResNativeDraw_0)) + return false; + var tmp0_other_with_cast = other instanceof KResNativeDraw_0 ? other : THROW_CCE(); + if (!equals(this.drawSrc, tmp0_other_with_cast.drawSrc)) + return false; + return true; + } + static new_com_bapis_bilibili_dagw_component_avatar_v1_KResNativeDraw_jv4310_k$(seen1, drawSrc, serializationConstructorMarker) { + Companion_instance_207; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_194().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.drawSrc = null; + else + $this.drawSrc = drawSrc; + return $this; + } + } + class Companion_208 { + constructor() { + this.targetPath = '/bilibili.pagination.Pagination'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_195(); + } + } + class $serializer_195 { + constructor() { + $serializer_instance_195 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.pagination.KPagination', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('pageSize', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('next', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KPagination.new_com_bapis_bilibili_pagination_KPagination_k54kdp_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_4mr5rk_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.pageSize === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.pageSize); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.next === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.next); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_4mr5rk_k$(encoder, value instanceof KPagination ? value : THROW_CCE()); + } + } + class KPagination { + constructor(pageSize, next) { + Companion_instance_208; + pageSize = pageSize === VOID ? 0 : pageSize; + next = next === VOID ? '' : next; + this.pageSize = pageSize; + this.next = next; + } + get_pageSize_hl979j_k$() { + return this.pageSize; + } + get_next_wor1vg_k$() { + return this.next; + } + component1_7eebsc_k$() { + return this.pageSize; + } + component2_7eebsb_k$() { + return this.next; + } + copy_xhhsuv_k$(pageSize, next) { + return new KPagination(pageSize, next); + } + copy(pageSize, next, $super) { + pageSize = pageSize === VOID ? this.pageSize : pageSize; + next = next === VOID ? this.next : next; + return this.copy_xhhsuv_k$(pageSize, next); + } + toString() { + return 'KPagination(pageSize=' + this.pageSize + ', next=' + this.next + ')'; + } + hashCode() { + var result = this.pageSize; + result = imul(result, 31) + getStringHashCode(this.next) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KPagination)) + return false; + var tmp0_other_with_cast = other instanceof KPagination ? other : THROW_CCE(); + if (!(this.pageSize === tmp0_other_with_cast.pageSize)) + return false; + if (!(this.next === tmp0_other_with_cast.next)) + return false; + return true; + } + static new_com_bapis_bilibili_pagination_KPagination_k54kdp_k$(seen1, pageSize, next, serializationConstructorMarker) { + Companion_instance_208; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_195().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.pageSize = 0; + else + $this.pageSize = pageSize; + if (0 === (seen1 & 2)) + $this.next = ''; + else + $this.next = next; + return $this; + } + } + class Companion_209 { + constructor() { + this.targetPath = '/bilibili.pagination.PaginationReply'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_196(); + } + } + class $serializer_196 { + constructor() { + $serializer_instance_196 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.pagination.KPaginationReply', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('next', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('prev', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KPaginationReply.new_com_bapis_bilibili_pagination_KPaginationReply_6310di_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_cfmjd8_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.next === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.next); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.prev === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.prev); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_cfmjd8_k$(encoder, value instanceof KPaginationReply ? value : THROW_CCE()); + } + } + class KPaginationReply { + constructor(next, prev) { + Companion_instance_209; + next = next === VOID ? '' : next; + prev = prev === VOID ? '' : prev; + this.next = next; + this.prev = prev; + } + get_next_wor1vg_k$() { + return this.next; + } + get_prev_wosl18_k$() { + return this.prev; + } + component1_7eebsc_k$() { + return this.next; + } + component2_7eebsb_k$() { + return this.prev; + } + copy_plwnsl_k$(next, prev) { + return new KPaginationReply(next, prev); + } + copy(next, prev, $super) { + next = next === VOID ? this.next : next; + prev = prev === VOID ? this.prev : prev; + return this.copy_plwnsl_k$(next, prev); + } + toString() { + return 'KPaginationReply(next=' + this.next + ', prev=' + this.prev + ')'; + } + hashCode() { + var result = getStringHashCode(this.next); + result = imul(result, 31) + getStringHashCode(this.prev) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KPaginationReply)) + return false; + var tmp0_other_with_cast = other instanceof KPaginationReply ? other : THROW_CCE(); + if (!(this.next === tmp0_other_with_cast.next)) + return false; + if (!(this.prev === tmp0_other_with_cast.prev)) + return false; + return true; + } + static new_com_bapis_bilibili_pagination_KPaginationReply_6310di_k$(seen1, next, prev, serializationConstructorMarker) { + Companion_instance_209; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_196().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.next = ''; + else + $this.next = next; + if (0 === (seen1 & 2)) + $this.prev = ''; + else + $this.prev = prev; + return $this; + } + } + class Companion_210 { + constructor() { + this.targetPath = '/bilibili.pagination.FeedPagination'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_197(); + } + } + class $serializer_197 { + constructor() { + $serializer_instance_197 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.pagination.KFeedPagination', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('pageSize', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('offset', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('isRefresh', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), StringSerializer_getInstance(), BooleanSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = null; + var tmp6_local2 = false; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KFeedPagination.new_com_bapis_bilibili_pagination_KFeedPagination_nr1qik_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_ieoj8y_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.pageSize === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.pageSize); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.offset === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.offset); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.isRefresh === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 2, value.isRefresh); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_ieoj8y_k$(encoder, value instanceof KFeedPagination ? value : THROW_CCE()); + } + } + class KFeedPagination { + constructor(pageSize, offset, isRefresh) { + Companion_instance_210; + pageSize = pageSize === VOID ? 0 : pageSize; + offset = offset === VOID ? '' : offset; + isRefresh = isRefresh === VOID ? false : isRefresh; + this.pageSize = pageSize; + this.offset = offset; + this.isRefresh = isRefresh; + } + get_pageSize_hl979j_k$() { + return this.pageSize; + } + get_offset_hjmqak_k$() { + return this.offset; + } + get_isRefresh_gvkzoo_k$() { + return this.isRefresh; + } + component1_7eebsc_k$() { + return this.pageSize; + } + component2_7eebsb_k$() { + return this.offset; + } + component3_7eebsa_k$() { + return this.isRefresh; + } + copy_70e8fi_k$(pageSize, offset, isRefresh) { + return new KFeedPagination(pageSize, offset, isRefresh); + } + copy(pageSize, offset, isRefresh, $super) { + pageSize = pageSize === VOID ? this.pageSize : pageSize; + offset = offset === VOID ? this.offset : offset; + isRefresh = isRefresh === VOID ? this.isRefresh : isRefresh; + return this.copy_70e8fi_k$(pageSize, offset, isRefresh); + } + toString() { + return 'KFeedPagination(pageSize=' + this.pageSize + ', offset=' + this.offset + ', isRefresh=' + this.isRefresh + ')'; + } + hashCode() { + var result = this.pageSize; + result = imul(result, 31) + getStringHashCode(this.offset) | 0; + result = imul(result, 31) + getBooleanHashCode(this.isRefresh) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KFeedPagination)) + return false; + var tmp0_other_with_cast = other instanceof KFeedPagination ? other : THROW_CCE(); + if (!(this.pageSize === tmp0_other_with_cast.pageSize)) + return false; + if (!(this.offset === tmp0_other_with_cast.offset)) + return false; + if (!(this.isRefresh === tmp0_other_with_cast.isRefresh)) + return false; + return true; + } + static new_com_bapis_bilibili_pagination_KFeedPagination_nr1qik_k$(seen1, pageSize, offset, isRefresh, serializationConstructorMarker) { + Companion_instance_210; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_197().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.pageSize = 0; + else + $this.pageSize = pageSize; + if (0 === (seen1 & 2)) + $this.offset = ''; + else + $this.offset = offset; + if (0 === (seen1 & 4)) + $this.isRefresh = false; + else + $this.isRefresh = isRefresh; + return $this; + } + } + class Companion_211 { + constructor() { + this.targetPath = '/bilibili.pagination.FeedPaginationReply'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_198(); + } + } + class $serializer_198 { + constructor() { + $serializer_instance_198 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.pagination.KFeedPaginationReply', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('nextOffset', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('prevOffset', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('lastReadOffset', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KFeedPaginationReply.new_com_bapis_bilibili_pagination_KFeedPaginationReply_pjjk8f_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_3khxva_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.nextOffset === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.nextOffset); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.prevOffset === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.prevOffset); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.lastReadOffset === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.lastReadOffset); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_3khxva_k$(encoder, value instanceof KFeedPaginationReply ? value : THROW_CCE()); + } + } + class KFeedPaginationReply { + constructor(nextOffset, prevOffset, lastReadOffset) { + Companion_instance_211; + nextOffset = nextOffset === VOID ? '' : nextOffset; + prevOffset = prevOffset === VOID ? '' : prevOffset; + lastReadOffset = lastReadOffset === VOID ? '' : lastReadOffset; + this.nextOffset = nextOffset; + this.prevOffset = prevOffset; + this.lastReadOffset = lastReadOffset; + } + get_nextOffset_ru7kkv_k$() { + return this.nextOffset; + } + get_prevOffset_x5yf9t_k$() { + return this.prevOffset; + } + get_lastReadOffset_qfkphk_k$() { + return this.lastReadOffset; + } + component1_7eebsc_k$() { + return this.nextOffset; + } + component2_7eebsb_k$() { + return this.prevOffset; + } + component3_7eebsa_k$() { + return this.lastReadOffset; + } + copy_nc7k0r_k$(nextOffset, prevOffset, lastReadOffset) { + return new KFeedPaginationReply(nextOffset, prevOffset, lastReadOffset); + } + copy(nextOffset, prevOffset, lastReadOffset, $super) { + nextOffset = nextOffset === VOID ? this.nextOffset : nextOffset; + prevOffset = prevOffset === VOID ? this.prevOffset : prevOffset; + lastReadOffset = lastReadOffset === VOID ? this.lastReadOffset : lastReadOffset; + return this.copy_nc7k0r_k$(nextOffset, prevOffset, lastReadOffset); + } + toString() { + return 'KFeedPaginationReply(nextOffset=' + this.nextOffset + ', prevOffset=' + this.prevOffset + ', lastReadOffset=' + this.lastReadOffset + ')'; + } + hashCode() { + var result = getStringHashCode(this.nextOffset); + result = imul(result, 31) + getStringHashCode(this.prevOffset) | 0; + result = imul(result, 31) + getStringHashCode(this.lastReadOffset) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KFeedPaginationReply)) + return false; + var tmp0_other_with_cast = other instanceof KFeedPaginationReply ? other : THROW_CCE(); + if (!(this.nextOffset === tmp0_other_with_cast.nextOffset)) + return false; + if (!(this.prevOffset === tmp0_other_with_cast.prevOffset)) + return false; + if (!(this.lastReadOffset === tmp0_other_with_cast.lastReadOffset)) + return false; + return true; + } + static new_com_bapis_bilibili_pagination_KFeedPaginationReply_pjjk8f_k$(seen1, nextOffset, prevOffset, lastReadOffset, serializationConstructorMarker) { + Companion_instance_211; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_198().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.nextOffset = ''; + else + $this.nextOffset = nextOffset; + if (0 === (seen1 & 2)) + $this.prevOffset = ''; + else + $this.prevOffset = prevOffset; + if (0 === (seen1 & 4)) + $this.lastReadOffset = ''; + else + $this.lastReadOffset = lastReadOffset; + return $this; + } + } + class Companion_212 { + constructor() { + Companion_instance_212 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KToolType$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KToolType$Companion$_anonymous__l9prse); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_37(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.viewunite.common.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KToolType_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.viewunite.common.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KToolType with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_37(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_199 { + constructor() { + $serializer_instance_199 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.viewunite.common.KToolType', 5); + tmp0_serialDesc.addElement_5pzumi_k$('INTERACTIVE_DANMAKU', false); + tmp0_serialDesc.addElement_5pzumi_k$('INTERACTIVE_SETTINGS', false); + tmp0_serialDesc.addElement_5pzumi_k$('TAKE_OFF', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNIVERSAL', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_37()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_99tv9v_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_99tv9v_k$(encoder, value instanceof KToolType ? value : THROW_CCE()); + } + } + class KToolType extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_213 { + constructor() { + Companion_instance_213 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KExtType$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KExtType$Companion$_anonymous__qbacu7); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_38(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.viewunite.common.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KExtType_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.viewunite.common.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KExtType with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_38(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_200 { + constructor() { + $serializer_instance_200 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.viewunite.common.KExtType', 4); + tmp0_serialDesc.addElement_5pzumi_k$('EXT_NONE', false); + tmp0_serialDesc.addElement_5pzumi_k$('EXT_DATA_CENTER', false); + tmp0_serialDesc.addElement_5pzumi_k$('EXT_DATA_EARNINGS', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_38()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_go3gnu_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_go3gnu_k$(encoder, value instanceof KExtType ? value : THROW_CCE()); + } + } + class KExtType extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_214 { + constructor() { + Companion_instance_214 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KRelateCardType$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KRelateCardType$Companion$_anonymous__74i6g1); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_39(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.viewunite.common.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KRelateCardType_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.viewunite.common.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KRelateCardType with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_39(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_201 { + constructor() { + $serializer_instance_201 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.viewunite.common.KRelateCardType', 13); + tmp0_serialDesc.addElement_5pzumi_k$('CARD_TYPE_UNKNOWN', false); + tmp0_serialDesc.addElement_5pzumi_k$('AV', false); + tmp0_serialDesc.addElement_5pzumi_k$('BANGUMI', false); + tmp0_serialDesc.addElement_5pzumi_k$('RESOURCE', false); + tmp0_serialDesc.addElement_5pzumi_k$('GAME', false); + tmp0_serialDesc.addElement_5pzumi_k$('CM', false); + tmp0_serialDesc.addElement_5pzumi_k$('LIVE', false); + tmp0_serialDesc.addElement_5pzumi_k$('AI_RECOMMEND', false); + tmp0_serialDesc.addElement_5pzumi_k$('BANGUMI_AV', false); + tmp0_serialDesc.addElement_5pzumi_k$('BANGUMI_UGC', false); + tmp0_serialDesc.addElement_5pzumi_k$('SPECIAL', false); + tmp0_serialDesc.addElement_5pzumi_k$('COURSE', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_39()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_mw09ss_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_mw09ss_k$(encoder, value instanceof KRelateCardType ? value : THROW_CCE()); + } + } + class KRelateCardType extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_215 { + constructor() { + Companion_instance_215 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KJumpType$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KJumpType$Companion$_anonymous__i5gcn8); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_40(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.viewunite.common.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KJumpType_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.viewunite.common.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KJumpType with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_40(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_202 { + constructor() { + $serializer_instance_202 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.viewunite.common.KJumpType', 6); + tmp0_serialDesc.addElement_5pzumi_k$('UNKNOWN', false); + tmp0_serialDesc.addElement_5pzumi_k$('OPEN_URL', false); + tmp0_serialDesc.addElement_5pzumi_k$('REFRESH', false); + tmp0_serialDesc.addElement_5pzumi_k$('HALF_SCREEN', false); + tmp0_serialDesc.addElement_5pzumi_k$('OPEN_URL_BY_OUTER_BROWSER', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_40()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_2qcdt5_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_2qcdt5_k$(encoder, value instanceof KJumpType ? value : THROW_CCE()); + } + } + class KJumpType extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_216 { + constructor() { + Companion_instance_216 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KHonorJumpType$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KHonorJumpType$Companion$_anonymous__3jfbtk); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_41(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.viewunite.common.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KHonorJumpType_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.viewunite.common.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KHonorJumpType with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_41(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_203 { + constructor() { + $serializer_instance_203 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.viewunite.common.KHonorJumpType', 5); + tmp0_serialDesc.addElement_5pzumi_k$('UNKNOWN', false); + tmp0_serialDesc.addElement_5pzumi_k$('HONOR_OPEN_URL', false); + tmp0_serialDesc.addElement_5pzumi_k$('HONOR_HALF_SCREEN', false); + tmp0_serialDesc.addElement_5pzumi_k$('HONOR_POPUP', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_41()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_13smw3_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_13smw3_k$(encoder, value instanceof KHonorJumpType ? value : THROW_CCE()); + } + } + class KHonorJumpType extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_217 { + constructor() { + Companion_instance_217 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KSerialSeasonCoverStyle$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KSerialSeasonCoverStyle$Companion$_anonymous__irhfxv); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_42(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.viewunite.common.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KSerialSeasonCoverStyle_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.viewunite.common.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KSerialSeasonCoverStyle with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_42(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_204 { + constructor() { + $serializer_instance_204 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.viewunite.common.KSerialSeasonCoverStyle', 4); + tmp0_serialDesc.addElement_5pzumi_k$('TITLE', false); + tmp0_serialDesc.addElement_5pzumi_k$('PICTURE', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNKNOWN', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_42()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_fgfutu_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_fgfutu_k$(encoder, value instanceof KSerialSeasonCoverStyle ? value : THROW_CCE()); + } + } + class KSerialSeasonCoverStyle extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_218 { + constructor() { + Companion_instance_218 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KSeasonType$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KSeasonType$Companion$_anonymous__uass3r); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_43(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.viewunite.common.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KSeasonType_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.viewunite.common.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KSeasonType with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_43(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_205 { + constructor() { + $serializer_instance_205 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.viewunite.common.KSeasonType', 4); + tmp0_serialDesc.addElement_5pzumi_k$('UNKNOWN', false); + tmp0_serialDesc.addElement_5pzumi_k$('BASE', false); + tmp0_serialDesc.addElement_5pzumi_k$('GOOD', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_43()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_m181z6_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_m181z6_k$(encoder, value instanceof KSeasonType ? value : THROW_CCE()); + } + } + class KSeasonType extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_219 { + constructor() { + Companion_instance_219 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KShowStyle$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KShowStyle$Companion$_anonymous__8ys7ju); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_44(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.viewunite.common.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KShowStyle_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.viewunite.common.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KShowStyle with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_44(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_206 { + constructor() { + $serializer_instance_206 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.viewunite.common.KShowStyle', 5); + tmp0_serialDesc.addElement_5pzumi_k$('UNKNOWN', false); + tmp0_serialDesc.addElement_5pzumi_k$('ONE_ROW_ONE_COLUMN', false); + tmp0_serialDesc.addElement_5pzumi_k$('ONE_ROW_MULTI_COLUMN', false); + tmp0_serialDesc.addElement_5pzumi_k$('ONE_COLUMN_MULTI_ROW', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_44()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_8kh5dt_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_8kh5dt_k$(encoder, value instanceof KShowStyle ? value : THROW_CCE()); + } + } + class KShowStyle extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_220 { + constructor() { + Companion_instance_220 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KOccupationType$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KOccupationType$Companion$_anonymous__eagbj3); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_45(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.viewunite.common.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KOccupationType_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.viewunite.common.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KOccupationType with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_45(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_207 { + constructor() { + $serializer_instance_207 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.viewunite.common.KOccupationType', 4); + tmp0_serialDesc.addElement_5pzumi_k$('STAFF', false); + tmp0_serialDesc.addElement_5pzumi_k$('CAST', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNKNOWN_TYPE', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_45()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_g6nqp2_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_g6nqp2_k$(encoder, value instanceof KOccupationType ? value : THROW_CCE()); + } + } + class KOccupationType extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_221 { + constructor() { + Companion_instance_221 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KAttentionRelationStatus$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KAttentionRelationStatus$Companion$_anonymous__lgwxhu); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_46(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.viewunite.common.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KAttentionRelationStatus_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.viewunite.common.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KAttentionRelationStatus with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_46(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_208 { + constructor() { + $serializer_instance_208 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.viewunite.common.KAttentionRelationStatus', 8); + tmp0_serialDesc.addElement_5pzumi_k$('ARS_NONE', false); + tmp0_serialDesc.addElement_5pzumi_k$('ARS_N0RELATION', false); + tmp0_serialDesc.addElement_5pzumi_k$('ARS_FOLLOWHIM', false); + tmp0_serialDesc.addElement_5pzumi_k$('ARS_FOLLOWME', false); + tmp0_serialDesc.addElement_5pzumi_k$('ARS_BUDDY', false); + tmp0_serialDesc.addElement_5pzumi_k$('ARS_SPECIAL', false); + tmp0_serialDesc.addElement_5pzumi_k$('ARS_CANCELBLOCK', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_46()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_1pcw15_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_1pcw15_k$(encoder, value instanceof KAttentionRelationStatus ? value : THROW_CCE()); + } + } + class KAttentionRelationStatus extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_222 { + constructor() { + Companion_instance_222 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KModuleType$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KModuleType$Companion$_anonymous__lw1d6m); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_47(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.viewunite.common.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KModuleType_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.viewunite.common.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KModuleType with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_47(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_209 { + constructor() { + $serializer_instance_209 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.viewunite.common.KModuleType', 53); + tmp0_serialDesc.addElement_5pzumi_k$('UNKNOWN', false); + tmp0_serialDesc.addElement_5pzumi_k$('OGV_INTRODUCTION', false); + tmp0_serialDesc.addElement_5pzumi_k$('OGV_TITLE', false); + tmp0_serialDesc.addElement_5pzumi_k$('UGC_HEADLINE', false); + tmp0_serialDesc.addElement_5pzumi_k$('UGC_INTRODUCTION', false); + tmp0_serialDesc.addElement_5pzumi_k$('KING_POSITION', false); + tmp0_serialDesc.addElement_5pzumi_k$('MASTER_USER_LIST', false); + tmp0_serialDesc.addElement_5pzumi_k$('STAFFS', false); + tmp0_serialDesc.addElement_5pzumi_k$('HONOR', false); + tmp0_serialDesc.addElement_5pzumi_k$('OWNER', false); + tmp0_serialDesc.addElement_5pzumi_k$('PAGE', false); + tmp0_serialDesc.addElement_5pzumi_k$('ACTIVITY_RESERVE', false); + tmp0_serialDesc.addElement_5pzumi_k$('LIVE_ORDER', false); + tmp0_serialDesc.addElement_5pzumi_k$('POSITIVE', false); + tmp0_serialDesc.addElement_5pzumi_k$('SECTION', false); + tmp0_serialDesc.addElement_5pzumi_k$('RELATE', false); + tmp0_serialDesc.addElement_5pzumi_k$('PUGV', false); + tmp0_serialDesc.addElement_5pzumi_k$('COLLECTION_CARD', false); + tmp0_serialDesc.addElement_5pzumi_k$('ACTIVITY', false); + tmp0_serialDesc.addElement_5pzumi_k$('CHARACTER', false); + tmp0_serialDesc.addElement_5pzumi_k$('FOLLOW_LAYER', false); + tmp0_serialDesc.addElement_5pzumi_k$('OGV_SEASONS', false); + tmp0_serialDesc.addElement_5pzumi_k$('UGC_SEASON', false); + tmp0_serialDesc.addElement_5pzumi_k$('OGV_LIVE_RESERVE', false); + tmp0_serialDesc.addElement_5pzumi_k$('COMBINATION_EPISODE', false); + tmp0_serialDesc.addElement_5pzumi_k$('SPONSOR', false); + tmp0_serialDesc.addElement_5pzumi_k$('ACTIVITY_ENTRANCE', false); + tmp0_serialDesc.addElement_5pzumi_k$('THEATRE_HOT_TOPIC', false); + tmp0_serialDesc.addElement_5pzumi_k$('RELATED_RECOMMEND', false); + tmp0_serialDesc.addElement_5pzumi_k$('PAY_BAR', false); + tmp0_serialDesc.addElement_5pzumi_k$('BANNER', false); + tmp0_serialDesc.addElement_5pzumi_k$('AUDIO', false); + tmp0_serialDesc.addElement_5pzumi_k$('AGG_CARD', false); + tmp0_serialDesc.addElement_5pzumi_k$('SINGLE_EP', false); + tmp0_serialDesc.addElement_5pzumi_k$('LIKE_COMMENT', false); + tmp0_serialDesc.addElement_5pzumi_k$('ATTENTION_RECOMMEND', false); + tmp0_serialDesc.addElement_5pzumi_k$('COVENANTER', false); + tmp0_serialDesc.addElement_5pzumi_k$('SPECIALTAG', false); + tmp0_serialDesc.addElement_5pzumi_k$('UPDATA', false); + tmp0_serialDesc.addElement_5pzumi_k$('PROFESSION_APPROVAL', false); + tmp0_serialDesc.addElement_5pzumi_k$('PUGV_SHOPPING_NOTICE', false); + tmp0_serialDesc.addElement_5pzumi_k$('PUGV_FAQ', false); + tmp0_serialDesc.addElement_5pzumi_k$('PUGV_SEASON_DESCRIPTION', false); + tmp0_serialDesc.addElement_5pzumi_k$('PUGV_SEASON_RECOMMEND', false); + tmp0_serialDesc.addElement_5pzumi_k$('PUGV_SEASON_PUBLISHER', false); + tmp0_serialDesc.addElement_5pzumi_k$('PUGV_SEASON_SELECTION', false); + tmp0_serialDesc.addElement_5pzumi_k$('PUGV_SEASON_PRIMARY_INFO', false); + tmp0_serialDesc.addElement_5pzumi_k$('PUGV_COOPERATION_APPLICATION', false); + tmp0_serialDesc.addElement_5pzumi_k$('UP_VIDEO_TOOL', false); + tmp0_serialDesc.addElement_5pzumi_k$('PUGV_ZONE', false); + tmp0_serialDesc.addElement_5pzumi_k$('PUGV_SERIES', false); + tmp0_serialDesc.addElement_5pzumi_k$('PUGV_PACKAGE', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_47()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_fcbqvt_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_fcbqvt_k$(encoder, value instanceof KModuleType ? value : THROW_CCE()); + } + } + class KModuleType extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_223 { + constructor() { + Companion_instance_223 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KPugvSeasonPrimarySellPointType$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KPugvSeasonPrimarySellPointType$Companion$_anonymous__582ixj); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_48(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.viewunite.common.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KPugvSeasonPrimarySellPointType_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.viewunite.common.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KPugvSeasonPrimarySellPointType with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_48(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_210 { + constructor() { + $serializer_instance_210 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.viewunite.common.KPugvSeasonPrimarySellPointType', 4); + tmp0_serialDesc.addElement_5pzumi_k$('UNSPECIFIED', false); + tmp0_serialDesc.addElement_5pzumi_k$('MANUAL', false); + tmp0_serialDesc.addElement_5pzumi_k$('AUTO', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_48()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_f4r0mm_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_f4r0mm_k$(encoder, value instanceof KPugvSeasonPrimarySellPointType ? value : THROW_CCE()); + } + } + class KPugvSeasonPrimarySellPointType extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_224 { + constructor() { + Companion_instance_224 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KPugvSeasonDescriptionType$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KPugvSeasonDescriptionType$Companion$_anonymous__dee7ff); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_49(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.viewunite.common.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KPugvSeasonDescriptionType_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.viewunite.common.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KPugvSeasonDescriptionType with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_49(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_211 { + constructor() { + $serializer_instance_211 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.viewunite.common.KPugvSeasonDescriptionType', 4); + tmp0_serialDesc.addElement_5pzumi_k$('UNSPECIFIED', false); + tmp0_serialDesc.addElement_5pzumi_k$('TEXT', false); + tmp0_serialDesc.addElement_5pzumi_k$('IMAGE', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_49()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_h4mimi_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_h4mimi_k$(encoder, value instanceof KPugvSeasonDescriptionType ? value : THROW_CCE()); + } + } + class KPugvSeasonDescriptionType extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_225 { + constructor() { + Companion_instance_225 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KPugvZoneItemType$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KPugvZoneItemType$Companion$_anonymous__3nmwcp); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_50(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.viewunite.common.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KPugvZoneItemType_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.viewunite.common.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KPugvZoneItemType with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_50(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_212 { + constructor() { + $serializer_instance_212 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.viewunite.common.KPugvZoneItemType', 4); + tmp0_serialDesc.addElement_5pzumi_k$('UNSPECIFIED', false); + tmp0_serialDesc.addElement_5pzumi_k$('SEASON', false); + tmp0_serialDesc.addElement_5pzumi_k$('POSTGRADUATE', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_50()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_1sh6k2_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_1sh6k2_k$(encoder, value instanceof KPugvZoneItemType ? value : THROW_CCE()); + } + } + class KPugvZoneItemType extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_226 { + constructor() { + Companion_instance_226 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KPugvSeriesItemState$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KPugvSeriesItemState$Companion$_anonymous__z86ybd); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_51(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.viewunite.common.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KPugvSeriesItemState_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.viewunite.common.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KPugvSeriesItemState with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_51(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_213 { + constructor() { + $serializer_instance_213 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.viewunite.common.KPugvSeriesItemState', 5); + tmp0_serialDesc.addElement_5pzumi_k$('PUGV_SERIRES_ITEM_STATE_UNSPECIAL', false); + tmp0_serialDesc.addElement_5pzumi_k$('PUGV_SERIRES_ITEM_STATE_NOT_START', false); + tmp0_serialDesc.addElement_5pzumi_k$('PUGV_SERIRES_ITEM_STATE_START', false); + tmp0_serialDesc.addElement_5pzumi_k$('PUGV_SERIRES_ITEM_STATE_END', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_51()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_mndya_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_mndya_k$(encoder, value instanceof KPugvSeriesItemState ? value : THROW_CCE()); + } + } + class KPugvSeriesItemState extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_227 { + constructor() { + Companion_instance_227 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KHonorType$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KHonorType$Companion$_anonymous__eo1wzu); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_52(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.viewunite.common.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KHonorType_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.viewunite.common.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KHonorType with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_52(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_214 { + constructor() { + $serializer_instance_214 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.viewunite.common.KHonorType', 13); + tmp0_serialDesc.addElement_5pzumi_k$('HONOR_NONE', false); + tmp0_serialDesc.addElement_5pzumi_k$('PLAYLET', false); + tmp0_serialDesc.addElement_5pzumi_k$('ARGUE', false); + tmp0_serialDesc.addElement_5pzumi_k$('NOTICE', false); + tmp0_serialDesc.addElement_5pzumi_k$('GUIDANCE', false); + tmp0_serialDesc.addElement_5pzumi_k$('HONOR_BILI_RANK', false); + tmp0_serialDesc.addElement_5pzumi_k$('HONOR_WEEKLY_RANK', false); + tmp0_serialDesc.addElement_5pzumi_k$('HONOR_DAILY_RANK', false); + tmp0_serialDesc.addElement_5pzumi_k$('HONOR_CHANNEL', false); + tmp0_serialDesc.addElement_5pzumi_k$('HONOR_MUSIC', false); + tmp0_serialDesc.addElement_5pzumi_k$('HONOR_REPLY', false); + tmp0_serialDesc.addElement_5pzumi_k$('HONOR_PROFESSION', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_52()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_4poqk1_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_4poqk1_k$(encoder, value instanceof KHonorType ? value : THROW_CCE()); + } + } + class KHonorType extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_228 { + constructor() { + Companion_instance_228 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KDescType$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KDescType$Companion$_anonymous__rshgh3); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_53(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.viewunite.common.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KDescType_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.viewunite.common.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KDescType with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_53(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_215 { + constructor() { + $serializer_instance_215 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.viewunite.common.KDescType', 4); + tmp0_serialDesc.addElement_5pzumi_k$('UNKNOWN', false); + tmp0_serialDesc.addElement_5pzumi_k$('TEXT', false); + tmp0_serialDesc.addElement_5pzumi_k$('AT', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_53()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_jiagj0_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_jiagj0_k$(encoder, value instanceof KDescType ? value : THROW_CCE()); + } + } + class KDescType extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_229 { + constructor() { + Companion_instance_229 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KKingPositionType$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KKingPositionType$Companion$_anonymous__3kofyi); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_54(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.viewunite.common.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KKingPositionType_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.viewunite.common.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KKingPositionType with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_54(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_216 { + constructor() { + $serializer_instance_216 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.viewunite.common.KKingPositionType', 9); + tmp0_serialDesc.addElement_5pzumi_k$('KING_POS_UNSPECIFIED', false); + tmp0_serialDesc.addElement_5pzumi_k$('LIKE', false); + tmp0_serialDesc.addElement_5pzumi_k$('DISLIKE', false); + tmp0_serialDesc.addElement_5pzumi_k$('COIN', false); + tmp0_serialDesc.addElement_5pzumi_k$('FAV', false); + tmp0_serialDesc.addElement_5pzumi_k$('SHARE', false); + tmp0_serialDesc.addElement_5pzumi_k$('CACHE', false); + tmp0_serialDesc.addElement_5pzumi_k$('DANMAKU', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_54()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_eas0d7_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_eas0d7_k$(encoder, value instanceof KKingPositionType ? value : THROW_CCE()); + } + } + class KKingPositionType extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_230 { + constructor() { + Companion_instance_230 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KReserveBizType$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KReserveBizType$Companion$_anonymous__szzu31); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_55(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.viewunite.common.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KReserveBizType_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.viewunite.common.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KReserveBizType with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_55(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_217 { + constructor() { + $serializer_instance_217 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.viewunite.common.KReserveBizType', 4); + tmp0_serialDesc.addElement_5pzumi_k$('BIZ_TYPE_NONE', false); + tmp0_serialDesc.addElement_5pzumi_k$('BIZ_TYPE_RESERVE_ACTIVITY', false); + tmp0_serialDesc.addElement_5pzumi_k$('BIZ_TYPE_FAV_SEASON', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_55()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_s89kuq_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_s89kuq_k$(encoder, value instanceof KReserveBizType ? value : THROW_CCE()); + } + } + class KReserveBizType extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class KData_0 { + constructor(value) { + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + } + class KOgvIntroduction extends KData_0 { + constructor() { + KOgvIntroduction_instance = null; + super(0); + KOgvIntroduction_instance = this; + } + } + class KUgcIntroduction extends KData_0 { + constructor() { + KUgcIntroduction_instance = null; + super(1); + KUgcIntroduction_instance = this; + } + } + class KKingPosition extends KData_0 { + constructor() { + KKingPosition_instance = null; + super(2); + KKingPosition_instance = this; + } + } + class KHeadLine extends KData_0 { + constructor() { + KHeadLine_instance = null; + super(3); + KHeadLine_instance = this; + } + } + class KOgvTitle extends KData_0 { + constructor() { + KOgvTitle_instance = null; + super(4); + KOgvTitle_instance = this; + } + } + class KHonor extends KData_0 { + constructor() { + KHonor_instance = null; + super(5); + KHonor_instance = this; + } + } + class KList_ extends KData_0 { + constructor() { + KList__instance = null; + super(6); + KList__instance = this; + } + } + class KStaffs extends KData_0 { + constructor() { + KStaffs_instance = null; + super(7); + KStaffs_instance = this; + } + } + class KActivityReserve extends KData_0 { + constructor() { + KActivityReserve_instance = null; + super(8); + KActivityReserve_instance = this; + } + } + class KLiveOrder extends KData_0 { + constructor() { + KLiveOrder_instance = null; + super(9); + KLiveOrder_instance = this; + } + } + class KSectionData extends KData_0 { + constructor() { + KSectionData_instance = null; + super(10); + KSectionData_instance = this; + } + } + class KDeliveryData extends KData_0 { + constructor() { + KDeliveryData_instance = null; + super(11); + KDeliveryData_instance = this; + } + } + class KFollowLayer extends KData_0 { + constructor() { + KFollowLayer_instance = null; + super(12); + KFollowLayer_instance = this; + } + } + class KOgvSeasons extends KData_0 { + constructor() { + KOgvSeasons_instance = null; + super(13); + KOgvSeasons_instance = this; + } + } + class KUgcSeason extends KData_0 { + constructor() { + KUgcSeason_instance = null; + super(14); + KUgcSeason_instance = this; + } + } + class KOgvLiveReserve extends KData_0 { + constructor() { + KOgvLiveReserve_instance = null; + super(15); + KOgvLiveReserve_instance = this; + } + } + class KCombinationEp extends KData_0 { + constructor() { + KCombinationEp_instance = null; + super(16); + KCombinationEp_instance = this; + } + } + class KSponsor extends KData_0 { + constructor() { + KSponsor_instance = null; + super(17); + KSponsor_instance = this; + } + } + class KActivityEntranceModule extends KData_0 { + constructor() { + KActivityEntranceModule_instance = null; + super(18); + KActivityEntranceModule_instance = this; + } + } + class KSerialSeason extends KData_0 { + constructor() { + KSerialSeason_instance = null; + super(19); + KSerialSeason_instance = this; + } + } + class KRelates extends KData_0 { + constructor() { + KRelates_instance = null; + super(20); + KRelates_instance = this; + } + } + class KBanner_1 extends KData_0 { + constructor() { + KBanner_instance_0 = null; + super(21); + KBanner_instance_0 = this; + } + } + class KAudio extends KData_0 { + constructor() { + KAudio_instance = null; + super(22); + KAudio_instance = this; + } + } + class KLikeComment extends KData_0 { + constructor() { + KLikeComment_instance = null; + super(23); + KLikeComment_instance = this; + } + } + class KAttentionRecommend extends KData_0 { + constructor() { + KAttentionRecommend_instance = null; + super(24); + KAttentionRecommend_instance = this; + } + } + class KCovenanter extends KData_0 { + constructor() { + KCovenanter_instance = null; + super(25); + KCovenanter_instance = this; + } + } + class KSpecialTag extends KData_0 { + constructor() { + KSpecialTag_instance = null; + super(26); + KSpecialTag_instance = this; + } + } + class KUpDataModule extends KData_0 { + constructor() { + KUpDataModule_instance = null; + super(27); + KUpDataModule_instance = this; + } + } + class KProfessionApproval extends KData_0 { + constructor() { + KProfessionApproval_instance = null; + super(28); + KProfessionApproval_instance = this; + } + } + class KPugvShoppingNotice extends KData_0 { + constructor() { + KPugvShoppingNotice_instance = null; + super(29); + KPugvShoppingNotice_instance = this; + } + } + class KPugvFaq extends KData_0 { + constructor() { + KPugvFaq_instance = null; + super(30); + KPugvFaq_instance = this; + } + } + class KPugvSeasonDescription extends KData_0 { + constructor() { + KPugvSeasonDescription_instance = null; + super(31); + KPugvSeasonDescription_instance = this; + } + } + class KPugvSeasonRecommend extends KData_0 { + constructor() { + KPugvSeasonRecommend_instance = null; + super(32); + KPugvSeasonRecommend_instance = this; + } + } + class KPugvSeasonPublisher extends KData_0 { + constructor() { + KPugvSeasonPublisher_instance = null; + super(33); + KPugvSeasonPublisher_instance = this; + } + } + class KPugvSeasonSelection extends KData_0 { + constructor() { + KPugvSeasonSelection_instance = null; + super(34); + KPugvSeasonSelection_instance = this; + } + } + class KPugvSeasonPrimaryInfo extends KData_0 { + constructor() { + KPugvSeasonPrimaryInfo_instance = null; + super(35); + KPugvSeasonPrimaryInfo_instance = this; + } + } + class KPugvCooperationApplication extends KData_0 { + constructor() { + KPugvCooperationApplication_instance = null; + super(36); + KPugvCooperationApplication_instance = this; + } + } + class KUpVideoTool extends KData_0 { + constructor() { + KUpVideoTool_instance = null; + super(37); + KUpVideoTool_instance = this; + } + } + class KPugvZone extends KData_0 { + constructor() { + KPugvZone_instance = null; + super(38); + KPugvZone_instance = this; + } + } + class KPugvSeries extends KData_0 { + constructor() { + KPugvSeries_instance = null; + super(39); + KPugvSeries_instance = this; + } + } + class KPugvPackage extends KData_0 { + constructor() { + KPugvPackage_instance = null; + super(40); + KPugvPackage_instance = this; + } + } + class Companion_231 { + constructor() { + Companion_instance_231 = this; + var tmp = this; + tmp.dataValues$delegate_1 = lazy_0(KModule$Companion$dataValues$delegate$lambda); + this.targetPath = '/bilibili.app.viewunite.common.Module'; + } + get_dataValues_22mgad_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.dataValues$delegate_1; + var thisRef = this; + var property = dataValues$factory_0(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_218(); + } + get dataValues() { + return this.get_dataValues_22mgad_k$(); + } + } + class $serializer_218 { + constructor() { + $serializer_instance_218 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KModule', this, 42); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('ogvIntroduction', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('ugcIntroduction', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('kingPosition', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('headLine', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('ogvTitle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('honor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('list', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('staffs', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('activityReserve', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('liveOrder', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('sectionData', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + tmp0_serialDesc.addElement_5pzumi_k$('deliveryData', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(13)); + tmp0_serialDesc.addElement_5pzumi_k$('followLayer', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(14)); + tmp0_serialDesc.addElement_5pzumi_k$('ogvSeasons', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(15)); + tmp0_serialDesc.addElement_5pzumi_k$('ugcSeason', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(16)); + tmp0_serialDesc.addElement_5pzumi_k$('ogvLiveReserve', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(17)); + tmp0_serialDesc.addElement_5pzumi_k$('combinationEp', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(18)); + tmp0_serialDesc.addElement_5pzumi_k$('sponsor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(19)); + tmp0_serialDesc.addElement_5pzumi_k$('activityEntranceModule', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(20)); + tmp0_serialDesc.addElement_5pzumi_k$('serialSeason', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(21)); + tmp0_serialDesc.addElement_5pzumi_k$('relates', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(22)); + tmp0_serialDesc.addElement_5pzumi_k$('banner', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(23)); + tmp0_serialDesc.addElement_5pzumi_k$('audio', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(24)); + tmp0_serialDesc.addElement_5pzumi_k$('likeComment', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(25)); + tmp0_serialDesc.addElement_5pzumi_k$('attentionRecommend', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(26)); + tmp0_serialDesc.addElement_5pzumi_k$('covenanter', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(27)); + tmp0_serialDesc.addElement_5pzumi_k$('specialTag', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(28)); + tmp0_serialDesc.addElement_5pzumi_k$('upDataModule', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(29)); + tmp0_serialDesc.addElement_5pzumi_k$('professionApproval', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(30)); + tmp0_serialDesc.addElement_5pzumi_k$('pugvShoppingNotice', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(31)); + tmp0_serialDesc.addElement_5pzumi_k$('pugvFaq', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(32)); + tmp0_serialDesc.addElement_5pzumi_k$('pugvSeasonDescription', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(33)); + tmp0_serialDesc.addElement_5pzumi_k$('pugvSeasonRecommend', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(34)); + tmp0_serialDesc.addElement_5pzumi_k$('pugvSeasonPublisher', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(35)); + tmp0_serialDesc.addElement_5pzumi_k$('pugvSeasonSelection', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(36)); + tmp0_serialDesc.addElement_5pzumi_k$('pugvSeasonPrimaryInfo', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(37)); + tmp0_serialDesc.addElement_5pzumi_k$('pugvCooperationApplication', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(38)); + tmp0_serialDesc.addElement_5pzumi_k$('upVideoTool', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(39)); + tmp0_serialDesc.addElement_5pzumi_k$('pugvZone', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(40)); + tmp0_serialDesc.addElement_5pzumi_k$('pugvSeries', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(41)); + tmp0_serialDesc.addElement_5pzumi_k$('pugvPackage', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(42)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), get_nullable($serializer_getInstance_364()), get_nullable($serializer_getInstance_365()), get_nullable($serializer_getInstance_370()), get_nullable($serializer_getInstance_373()), get_nullable($serializer_getInstance_314()), get_nullable($serializer_getInstance_361()), get_nullable($serializer_getInstance_362()), get_nullable($serializer_getInstance_325()), get_nullable($serializer_getInstance_312()), get_nullable($serializer_getInstance_311()), get_nullable($serializer_getInstance_283()), get_nullable($serializer_getInstance_287()), get_nullable($serializer_getInstance_280()), get_nullable($serializer_getInstance_268()), get_nullable($serializer_getInstance_269()), get_nullable($serializer_getInstance_267()), get_nullable($serializer_getInstance_285()), get_nullable($serializer_getInstance_237()), get_nullable($serializer_getInstance_234()), get_nullable($serializer_getInstance_277()), get_nullable($serializer_getInstance_241()), get_nullable($serializer_getInstance_230()), get_nullable($serializer_getInstance_228()), get_nullable($serializer_getInstance_310()), get_nullable($serializer_getInstance_224()), get_nullable($serializer_getInstance_225()), get_nullable($serializer_getInstance_223()), get_nullable($serializer_getInstance_221()), get_nullable($serializer_getInstance_359()), get_nullable($serializer_getInstance_338()), get_nullable($serializer_getInstance_340()), get_nullable($serializer_getInstance_349()), get_nullable($serializer_getInstance_342()), get_nullable($serializer_getInstance_345()), get_nullable($serializer_getInstance_328()), get_nullable($serializer_getInstance_335()), get_nullable($serializer_getInstance_336()), get_nullable($serializer_getInstance_219()), get_nullable($serializer_getInstance_353()), get_nullable($serializer_getInstance_355()), get_nullable($serializer_getInstance_357())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_bitMask1 = 0; + var tmp5_local0 = 0; + var tmp6_local1 = null; + var tmp7_local2 = null; + var tmp8_local3 = null; + var tmp9_local4 = null; + var tmp10_local5 = null; + var tmp11_local6 = null; + var tmp12_local7 = null; + var tmp13_local8 = null; + var tmp14_local9 = null; + var tmp15_local10 = null; + var tmp16_local11 = null; + var tmp17_local12 = null; + var tmp18_local13 = null; + var tmp19_local14 = null; + var tmp20_local15 = null; + var tmp21_local16 = null; + var tmp22_local17 = null; + var tmp23_local18 = null; + var tmp24_local19 = null; + var tmp25_local20 = null; + var tmp26_local21 = null; + var tmp27_local22 = null; + var tmp28_local23 = null; + var tmp29_local24 = null; + var tmp30_local25 = null; + var tmp31_local26 = null; + var tmp32_local27 = null; + var tmp33_local28 = null; + var tmp34_local29 = null; + var tmp35_local30 = null; + var tmp36_local31 = null; + var tmp37_local32 = null; + var tmp38_local33 = null; + var tmp39_local34 = null; + var tmp40_local35 = null; + var tmp41_local36 = null; + var tmp42_local37 = null; + var tmp43_local38 = null; + var tmp44_local39 = null; + var tmp45_local40 = null; + var tmp46_local41 = null; + var tmp47_transient0 = 0; + var tmp48_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp48_input.decodeSequentially_xlblqy_k$()) { + tmp5_local0 = tmp48_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp6_local1 = tmp48_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_364(), tmp6_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp7_local2 = tmp48_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_365(), tmp7_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp8_local3 = tmp48_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_370(), tmp8_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp9_local4 = tmp48_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_373(), tmp9_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp10_local5 = tmp48_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_314(), tmp10_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp11_local6 = tmp48_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_361(), tmp11_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp12_local7 = tmp48_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_362(), tmp12_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp13_local8 = tmp48_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_325(), tmp13_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp14_local9 = tmp48_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 9, $serializer_getInstance_312(), tmp14_local9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp15_local10 = tmp48_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 10, $serializer_getInstance_311(), tmp15_local10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp16_local11 = tmp48_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 11, $serializer_getInstance_283(), tmp16_local11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + tmp17_local12 = tmp48_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 12, $serializer_getInstance_287(), tmp17_local12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + tmp18_local13 = tmp48_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 13, $serializer_getInstance_280(), tmp18_local13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + tmp19_local14 = tmp48_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 14, $serializer_getInstance_268(), tmp19_local14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + tmp20_local15 = tmp48_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 15, $serializer_getInstance_269(), tmp20_local15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + tmp21_local16 = tmp48_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 16, $serializer_getInstance_267(), tmp21_local16); + tmp3_bitMask0 = tmp3_bitMask0 | 65536; + tmp22_local17 = tmp48_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 17, $serializer_getInstance_285(), tmp22_local17); + tmp3_bitMask0 = tmp3_bitMask0 | 131072; + tmp23_local18 = tmp48_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 18, $serializer_getInstance_237(), tmp23_local18); + tmp3_bitMask0 = tmp3_bitMask0 | 262144; + tmp24_local19 = tmp48_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 19, $serializer_getInstance_234(), tmp24_local19); + tmp3_bitMask0 = tmp3_bitMask0 | 524288; + tmp25_local20 = tmp48_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 20, $serializer_getInstance_277(), tmp25_local20); + tmp3_bitMask0 = tmp3_bitMask0 | 1048576; + tmp26_local21 = tmp48_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 21, $serializer_getInstance_241(), tmp26_local21); + tmp3_bitMask0 = tmp3_bitMask0 | 2097152; + tmp27_local22 = tmp48_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 22, $serializer_getInstance_230(), tmp27_local22); + tmp3_bitMask0 = tmp3_bitMask0 | 4194304; + tmp28_local23 = tmp48_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 23, $serializer_getInstance_228(), tmp28_local23); + tmp3_bitMask0 = tmp3_bitMask0 | 8388608; + tmp29_local24 = tmp48_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 24, $serializer_getInstance_310(), tmp29_local24); + tmp3_bitMask0 = tmp3_bitMask0 | 16777216; + tmp30_local25 = tmp48_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 25, $serializer_getInstance_224(), tmp30_local25); + tmp3_bitMask0 = tmp3_bitMask0 | 33554432; + tmp31_local26 = tmp48_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 26, $serializer_getInstance_225(), tmp31_local26); + tmp3_bitMask0 = tmp3_bitMask0 | 67108864; + tmp32_local27 = tmp48_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 27, $serializer_getInstance_223(), tmp32_local27); + tmp3_bitMask0 = tmp3_bitMask0 | 134217728; + tmp33_local28 = tmp48_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 28, $serializer_getInstance_221(), tmp33_local28); + tmp3_bitMask0 = tmp3_bitMask0 | 268435456; + tmp34_local29 = tmp48_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 29, $serializer_getInstance_359(), tmp34_local29); + tmp3_bitMask0 = tmp3_bitMask0 | 536870912; + tmp35_local30 = tmp48_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 30, $serializer_getInstance_338(), tmp35_local30); + tmp3_bitMask0 = tmp3_bitMask0 | 1073741824; + tmp36_local31 = tmp48_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 31, $serializer_getInstance_340(), tmp36_local31); + tmp3_bitMask0 = tmp3_bitMask0 | -2147483648; + tmp37_local32 = tmp48_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 32, $serializer_getInstance_349(), tmp37_local32); + tmp4_bitMask1 = tmp4_bitMask1 | 1; + tmp38_local33 = tmp48_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 33, $serializer_getInstance_342(), tmp38_local33); + tmp4_bitMask1 = tmp4_bitMask1 | 2; + tmp39_local34 = tmp48_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 34, $serializer_getInstance_345(), tmp39_local34); + tmp4_bitMask1 = tmp4_bitMask1 | 4; + tmp40_local35 = tmp48_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 35, $serializer_getInstance_328(), tmp40_local35); + tmp4_bitMask1 = tmp4_bitMask1 | 8; + tmp41_local36 = tmp48_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 36, $serializer_getInstance_335(), tmp41_local36); + tmp4_bitMask1 = tmp4_bitMask1 | 16; + tmp42_local37 = tmp48_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 37, $serializer_getInstance_336(), tmp42_local37); + tmp4_bitMask1 = tmp4_bitMask1 | 32; + tmp43_local38 = tmp48_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 38, $serializer_getInstance_219(), tmp43_local38); + tmp4_bitMask1 = tmp4_bitMask1 | 64; + tmp44_local39 = tmp48_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 39, $serializer_getInstance_353(), tmp44_local39); + tmp4_bitMask1 = tmp4_bitMask1 | 128; + tmp45_local40 = tmp48_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 40, $serializer_getInstance_355(), tmp45_local40); + tmp4_bitMask1 = tmp4_bitMask1 | 256; + tmp46_local41 = tmp48_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 41, $serializer_getInstance_357(), tmp46_local41); + tmp4_bitMask1 = tmp4_bitMask1 | 512; + } else + while (tmp1_flag) { + tmp2_index = tmp48_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp5_local0 = tmp48_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp6_local1 = tmp48_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_364(), tmp6_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp7_local2 = tmp48_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_365(), tmp7_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp8_local3 = tmp48_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_370(), tmp8_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp9_local4 = tmp48_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_373(), tmp9_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp10_local5 = tmp48_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_314(), tmp10_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp11_local6 = tmp48_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_361(), tmp11_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp12_local7 = tmp48_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_362(), tmp12_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp13_local8 = tmp48_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_325(), tmp13_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp14_local9 = tmp48_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 9, $serializer_getInstance_312(), tmp14_local9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp15_local10 = tmp48_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 10, $serializer_getInstance_311(), tmp15_local10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp16_local11 = tmp48_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 11, $serializer_getInstance_283(), tmp16_local11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + case 12: + tmp17_local12 = tmp48_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 12, $serializer_getInstance_287(), tmp17_local12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + break; + case 13: + tmp18_local13 = tmp48_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 13, $serializer_getInstance_280(), tmp18_local13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + break; + case 14: + tmp19_local14 = tmp48_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 14, $serializer_getInstance_268(), tmp19_local14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + break; + case 15: + tmp20_local15 = tmp48_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 15, $serializer_getInstance_269(), tmp20_local15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + break; + case 16: + tmp21_local16 = tmp48_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 16, $serializer_getInstance_267(), tmp21_local16); + tmp3_bitMask0 = tmp3_bitMask0 | 65536; + break; + case 17: + tmp22_local17 = tmp48_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 17, $serializer_getInstance_285(), tmp22_local17); + tmp3_bitMask0 = tmp3_bitMask0 | 131072; + break; + case 18: + tmp23_local18 = tmp48_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 18, $serializer_getInstance_237(), tmp23_local18); + tmp3_bitMask0 = tmp3_bitMask0 | 262144; + break; + case 19: + tmp24_local19 = tmp48_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 19, $serializer_getInstance_234(), tmp24_local19); + tmp3_bitMask0 = tmp3_bitMask0 | 524288; + break; + case 20: + tmp25_local20 = tmp48_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 20, $serializer_getInstance_277(), tmp25_local20); + tmp3_bitMask0 = tmp3_bitMask0 | 1048576; + break; + case 21: + tmp26_local21 = tmp48_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 21, $serializer_getInstance_241(), tmp26_local21); + tmp3_bitMask0 = tmp3_bitMask0 | 2097152; + break; + case 22: + tmp27_local22 = tmp48_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 22, $serializer_getInstance_230(), tmp27_local22); + tmp3_bitMask0 = tmp3_bitMask0 | 4194304; + break; + case 23: + tmp28_local23 = tmp48_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 23, $serializer_getInstance_228(), tmp28_local23); + tmp3_bitMask0 = tmp3_bitMask0 | 8388608; + break; + case 24: + tmp29_local24 = tmp48_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 24, $serializer_getInstance_310(), tmp29_local24); + tmp3_bitMask0 = tmp3_bitMask0 | 16777216; + break; + case 25: + tmp30_local25 = tmp48_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 25, $serializer_getInstance_224(), tmp30_local25); + tmp3_bitMask0 = tmp3_bitMask0 | 33554432; + break; + case 26: + tmp31_local26 = tmp48_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 26, $serializer_getInstance_225(), tmp31_local26); + tmp3_bitMask0 = tmp3_bitMask0 | 67108864; + break; + case 27: + tmp32_local27 = tmp48_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 27, $serializer_getInstance_223(), tmp32_local27); + tmp3_bitMask0 = tmp3_bitMask0 | 134217728; + break; + case 28: + tmp33_local28 = tmp48_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 28, $serializer_getInstance_221(), tmp33_local28); + tmp3_bitMask0 = tmp3_bitMask0 | 268435456; + break; + case 29: + tmp34_local29 = tmp48_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 29, $serializer_getInstance_359(), tmp34_local29); + tmp3_bitMask0 = tmp3_bitMask0 | 536870912; + break; + case 30: + tmp35_local30 = tmp48_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 30, $serializer_getInstance_338(), tmp35_local30); + tmp3_bitMask0 = tmp3_bitMask0 | 1073741824; + break; + case 31: + tmp36_local31 = tmp48_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 31, $serializer_getInstance_340(), tmp36_local31); + tmp3_bitMask0 = tmp3_bitMask0 | -2147483648; + break; + case 32: + tmp37_local32 = tmp48_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 32, $serializer_getInstance_349(), tmp37_local32); + tmp4_bitMask1 = tmp4_bitMask1 | 1; + break; + case 33: + tmp38_local33 = tmp48_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 33, $serializer_getInstance_342(), tmp38_local33); + tmp4_bitMask1 = tmp4_bitMask1 | 2; + break; + case 34: + tmp39_local34 = tmp48_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 34, $serializer_getInstance_345(), tmp39_local34); + tmp4_bitMask1 = tmp4_bitMask1 | 4; + break; + case 35: + tmp40_local35 = tmp48_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 35, $serializer_getInstance_328(), tmp40_local35); + tmp4_bitMask1 = tmp4_bitMask1 | 8; + break; + case 36: + tmp41_local36 = tmp48_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 36, $serializer_getInstance_335(), tmp41_local36); + tmp4_bitMask1 = tmp4_bitMask1 | 16; + break; + case 37: + tmp42_local37 = tmp48_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 37, $serializer_getInstance_336(), tmp42_local37); + tmp4_bitMask1 = tmp4_bitMask1 | 32; + break; + case 38: + tmp43_local38 = tmp48_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 38, $serializer_getInstance_219(), tmp43_local38); + tmp4_bitMask1 = tmp4_bitMask1 | 64; + break; + case 39: + tmp44_local39 = tmp48_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 39, $serializer_getInstance_353(), tmp44_local39); + tmp4_bitMask1 = tmp4_bitMask1 | 128; + break; + case 40: + tmp45_local40 = tmp48_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 40, $serializer_getInstance_355(), tmp45_local40); + tmp4_bitMask1 = tmp4_bitMask1 | 256; + break; + case 41: + tmp46_local41 = tmp48_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 41, $serializer_getInstance_357(), tmp46_local41); + tmp4_bitMask1 = tmp4_bitMask1 | 512; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp48_input.endStructure_1xqz0n_k$(tmp0_desc); + return KModule.new_com_bapis_bilibili_app_viewunite_common_KModule_y51sbp_k$(tmp3_bitMask0, tmp4_bitMask1, tmp5_local0, tmp6_local1, tmp7_local2, tmp8_local3, tmp9_local4, tmp10_local5, tmp11_local6, tmp12_local7, tmp13_local8, tmp14_local9, tmp15_local10, tmp16_local11, tmp17_local12, tmp18_local13, tmp19_local14, tmp20_local15, tmp21_local16, tmp22_local17, tmp23_local18, tmp24_local19, tmp25_local20, tmp26_local21, tmp27_local22, tmp28_local23, tmp29_local24, tmp30_local25, tmp31_local26, tmp32_local27, tmp33_local28, tmp34_local29, tmp35_local30, tmp36_local31, tmp37_local32, tmp38_local33, tmp39_local34, tmp40_local35, tmp41_local36, tmp42_local37, tmp43_local38, tmp44_local39, tmp45_local40, tmp46_local41, null); + } + serialize_779ak_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.type === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.type); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.ogvIntroduction_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_364(), value.ogvIntroduction_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.ugcIntroduction_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_365(), value.ugcIntroduction_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.kingPosition_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_370(), value.kingPosition_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.headLine_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, $serializer_getInstance_373(), value.headLine_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.ogvTitle_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 5, $serializer_getInstance_314(), value.ogvTitle_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.honor_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 6, $serializer_getInstance_361(), value.honor_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.list_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 7, $serializer_getInstance_362(), value.list_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.staffs_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 8, $serializer_getInstance_325(), value.staffs_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.activityReserve_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 9, $serializer_getInstance_312(), value.activityReserve_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.liveOrder_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 10, $serializer_getInstance_311(), value.liveOrder_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.sectionData_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 11, $serializer_getInstance_283(), value.sectionData_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !(value.deliveryData_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 12, $serializer_getInstance_287(), value.deliveryData_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 13) ? true : !(value.followLayer_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 13, $serializer_getInstance_280(), value.followLayer_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 14) ? true : !(value.ogvSeasons_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 14, $serializer_getInstance_268(), value.ogvSeasons_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 15) ? true : !(value.ugcSeason_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 15, $serializer_getInstance_269(), value.ugcSeason_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 16) ? true : !(value.ogvLiveReserve_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 16, $serializer_getInstance_267(), value.ogvLiveReserve_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 17) ? true : !(value.combinationEp_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 17, $serializer_getInstance_285(), value.combinationEp_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 18) ? true : !(value.sponsor_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 18, $serializer_getInstance_237(), value.sponsor_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 19) ? true : !(value.activityEntranceModule_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 19, $serializer_getInstance_234(), value.activityEntranceModule_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 20) ? true : !(value.serialSeason_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 20, $serializer_getInstance_277(), value.serialSeason_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 21) ? true : !(value.relates_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 21, $serializer_getInstance_241(), value.relates_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 22) ? true : !(value.banner_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 22, $serializer_getInstance_230(), value.banner_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 23) ? true : !(value.audio_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 23, $serializer_getInstance_228(), value.audio_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 24) ? true : !(value.likeComment_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 24, $serializer_getInstance_310(), value.likeComment_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 25) ? true : !(value.attentionRecommend_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 25, $serializer_getInstance_224(), value.attentionRecommend_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 26) ? true : !(value.covenanter_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 26, $serializer_getInstance_225(), value.covenanter_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 27) ? true : !(value.specialTag_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 27, $serializer_getInstance_223(), value.specialTag_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 28) ? true : !(value.upDataModule_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 28, $serializer_getInstance_221(), value.upDataModule_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 29) ? true : !(value.professionApproval_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 29, $serializer_getInstance_359(), value.professionApproval_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 30) ? true : !(value.pugvShoppingNotice_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 30, $serializer_getInstance_338(), value.pugvShoppingNotice_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 31) ? true : !(value.pugvFaq_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 31, $serializer_getInstance_340(), value.pugvFaq_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 32) ? true : !(value.pugvSeasonDescription_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 32, $serializer_getInstance_349(), value.pugvSeasonDescription_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 33) ? true : !(value.pugvSeasonRecommend_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 33, $serializer_getInstance_342(), value.pugvSeasonRecommend_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 34) ? true : !(value.pugvSeasonPublisher_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 34, $serializer_getInstance_345(), value.pugvSeasonPublisher_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 35) ? true : !(value.pugvSeasonSelection_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 35, $serializer_getInstance_328(), value.pugvSeasonSelection_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 36) ? true : !(value.pugvSeasonPrimaryInfo_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 36, $serializer_getInstance_335(), value.pugvSeasonPrimaryInfo_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 37) ? true : !(value.pugvCooperationApplication_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 37, $serializer_getInstance_336(), value.pugvCooperationApplication_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 38) ? true : !(value.upVideoTool_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 38, $serializer_getInstance_219(), value.upVideoTool_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 39) ? true : !(value.pugvZone_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 39, $serializer_getInstance_353(), value.pugvZone_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 40) ? true : !(value.pugvSeries_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 40, $serializer_getInstance_355(), value.pugvSeries_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 41) ? true : !(value.pugvPackage_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 41, $serializer_getInstance_357(), value.pugvPackage_1); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_779ak_k$(encoder, value instanceof KModule ? value : THROW_CCE()); + } + } + class KModule { + constructor(type, ogvIntroduction, ugcIntroduction, kingPosition, headLine, ogvTitle, honor, list, staffs, activityReserve, liveOrder, sectionData, deliveryData, followLayer, ogvSeasons, ugcSeason, ogvLiveReserve, combinationEp, sponsor, activityEntranceModule, serialSeason, relates, banner, audio, likeComment, attentionRecommend, covenanter, specialTag, upDataModule, professionApproval, pugvShoppingNotice, pugvFaq, pugvSeasonDescription, pugvSeasonRecommend, pugvSeasonPublisher, pugvSeasonSelection, pugvSeasonPrimaryInfo, pugvCooperationApplication, upVideoTool, pugvZone, pugvSeries, pugvPackage) { + Companion_getInstance_231(); + type = type === VOID ? 0 : type; + ogvIntroduction = ogvIntroduction === VOID ? null : ogvIntroduction; + ugcIntroduction = ugcIntroduction === VOID ? null : ugcIntroduction; + kingPosition = kingPosition === VOID ? null : kingPosition; + headLine = headLine === VOID ? null : headLine; + ogvTitle = ogvTitle === VOID ? null : ogvTitle; + honor = honor === VOID ? null : honor; + list = list === VOID ? null : list; + staffs = staffs === VOID ? null : staffs; + activityReserve = activityReserve === VOID ? null : activityReserve; + liveOrder = liveOrder === VOID ? null : liveOrder; + sectionData = sectionData === VOID ? null : sectionData; + deliveryData = deliveryData === VOID ? null : deliveryData; + followLayer = followLayer === VOID ? null : followLayer; + ogvSeasons = ogvSeasons === VOID ? null : ogvSeasons; + ugcSeason = ugcSeason === VOID ? null : ugcSeason; + ogvLiveReserve = ogvLiveReserve === VOID ? null : ogvLiveReserve; + combinationEp = combinationEp === VOID ? null : combinationEp; + sponsor = sponsor === VOID ? null : sponsor; + activityEntranceModule = activityEntranceModule === VOID ? null : activityEntranceModule; + serialSeason = serialSeason === VOID ? null : serialSeason; + relates = relates === VOID ? null : relates; + banner = banner === VOID ? null : banner; + audio = audio === VOID ? null : audio; + likeComment = likeComment === VOID ? null : likeComment; + attentionRecommend = attentionRecommend === VOID ? null : attentionRecommend; + covenanter = covenanter === VOID ? null : covenanter; + specialTag = specialTag === VOID ? null : specialTag; + upDataModule = upDataModule === VOID ? null : upDataModule; + professionApproval = professionApproval === VOID ? null : professionApproval; + pugvShoppingNotice = pugvShoppingNotice === VOID ? null : pugvShoppingNotice; + pugvFaq = pugvFaq === VOID ? null : pugvFaq; + pugvSeasonDescription = pugvSeasonDescription === VOID ? null : pugvSeasonDescription; + pugvSeasonRecommend = pugvSeasonRecommend === VOID ? null : pugvSeasonRecommend; + pugvSeasonPublisher = pugvSeasonPublisher === VOID ? null : pugvSeasonPublisher; + pugvSeasonSelection = pugvSeasonSelection === VOID ? null : pugvSeasonSelection; + pugvSeasonPrimaryInfo = pugvSeasonPrimaryInfo === VOID ? null : pugvSeasonPrimaryInfo; + pugvCooperationApplication = pugvCooperationApplication === VOID ? null : pugvCooperationApplication; + upVideoTool = upVideoTool === VOID ? null : upVideoTool; + pugvZone = pugvZone === VOID ? null : pugvZone; + pugvSeries = pugvSeries === VOID ? null : pugvSeries; + pugvPackage = pugvPackage === VOID ? null : pugvPackage; + this.type = type; + this.ogvIntroduction_1 = ogvIntroduction; + this.ugcIntroduction_1 = ugcIntroduction; + this.kingPosition_1 = kingPosition; + this.headLine_1 = headLine; + this.ogvTitle_1 = ogvTitle; + this.honor_1 = honor; + this.list_1 = list; + this.staffs_1 = staffs; + this.activityReserve_1 = activityReserve; + this.liveOrder_1 = liveOrder; + this.sectionData_1 = sectionData; + this.deliveryData_1 = deliveryData; + this.followLayer_1 = followLayer; + this.ogvSeasons_1 = ogvSeasons; + this.ugcSeason_1 = ugcSeason; + this.ogvLiveReserve_1 = ogvLiveReserve; + this.combinationEp_1 = combinationEp; + this.sponsor_1 = sponsor; + this.activityEntranceModule_1 = activityEntranceModule; + this.serialSeason_1 = serialSeason; + this.relates_1 = relates; + this.banner_1 = banner; + this.audio_1 = audio; + this.likeComment_1 = likeComment; + this.attentionRecommend_1 = attentionRecommend; + this.covenanter_1 = covenanter; + this.specialTag_1 = specialTag; + this.upDataModule_1 = upDataModule; + this.professionApproval_1 = professionApproval; + this.pugvShoppingNotice_1 = pugvShoppingNotice; + this.pugvFaq_1 = pugvFaq; + this.pugvSeasonDescription_1 = pugvSeasonDescription; + this.pugvSeasonRecommend_1 = pugvSeasonRecommend; + this.pugvSeasonPublisher_1 = pugvSeasonPublisher; + this.pugvSeasonSelection_1 = pugvSeasonSelection; + this.pugvSeasonPrimaryInfo_1 = pugvSeasonPrimaryInfo; + this.pugvCooperationApplication_1 = pugvCooperationApplication; + this.upVideoTool_1 = upVideoTool; + this.pugvZone_1 = pugvZone; + this.pugvSeries_1 = pugvSeries; + this.pugvPackage_1 = pugvPackage; + var tmp = this; + tmp.dataNumber$delegate_1 = lazy_0(KModule$dataNumber$delegate$lambda(this)); + } + get_type_wovaf7_k$() { + return this.type; + } + dataValue() { + if (!(this.ogvIntroduction_1 == null)) { + var tmp = this.ogvIntroduction_1; + return (tmp == null ? true : !(tmp == null)) ? tmp : null; + } else if (!(this.ugcIntroduction_1 == null)) { + var tmp_0 = this.ugcIntroduction_1; + return (tmp_0 == null ? true : !(tmp_0 == null)) ? tmp_0 : null; + } else if (!(this.kingPosition_1 == null)) { + var tmp_1 = this.kingPosition_1; + return (tmp_1 == null ? true : !(tmp_1 == null)) ? tmp_1 : null; + } else if (!(this.headLine_1 == null)) { + var tmp_2 = this.headLine_1; + return (tmp_2 == null ? true : !(tmp_2 == null)) ? tmp_2 : null; + } else if (!(this.ogvTitle_1 == null)) { + var tmp_3 = this.ogvTitle_1; + return (tmp_3 == null ? true : !(tmp_3 == null)) ? tmp_3 : null; + } else if (!(this.honor_1 == null)) { + var tmp_4 = this.honor_1; + return (tmp_4 == null ? true : !(tmp_4 == null)) ? tmp_4 : null; + } else if (!(this.list_1 == null)) { + var tmp_5 = this.list_1; + return (tmp_5 == null ? true : !(tmp_5 == null)) ? tmp_5 : null; + } else if (!(this.staffs_1 == null)) { + var tmp_6 = this.staffs_1; + return (tmp_6 == null ? true : !(tmp_6 == null)) ? tmp_6 : null; + } else if (!(this.activityReserve_1 == null)) { + var tmp_7 = this.activityReserve_1; + return (tmp_7 == null ? true : !(tmp_7 == null)) ? tmp_7 : null; + } else if (!(this.liveOrder_1 == null)) { + var tmp_8 = this.liveOrder_1; + return (tmp_8 == null ? true : !(tmp_8 == null)) ? tmp_8 : null; + } else if (!(this.sectionData_1 == null)) { + var tmp_9 = this.sectionData_1; + return (tmp_9 == null ? true : !(tmp_9 == null)) ? tmp_9 : null; + } else if (!(this.deliveryData_1 == null)) { + var tmp_10 = this.deliveryData_1; + return (tmp_10 == null ? true : !(tmp_10 == null)) ? tmp_10 : null; + } else if (!(this.followLayer_1 == null)) { + var tmp_11 = this.followLayer_1; + return (tmp_11 == null ? true : !(tmp_11 == null)) ? tmp_11 : null; + } else if (!(this.ogvSeasons_1 == null)) { + var tmp_12 = this.ogvSeasons_1; + return (tmp_12 == null ? true : !(tmp_12 == null)) ? tmp_12 : null; + } else if (!(this.ugcSeason_1 == null)) { + var tmp_13 = this.ugcSeason_1; + return (tmp_13 == null ? true : !(tmp_13 == null)) ? tmp_13 : null; + } else if (!(this.ogvLiveReserve_1 == null)) { + var tmp_14 = this.ogvLiveReserve_1; + return (tmp_14 == null ? true : !(tmp_14 == null)) ? tmp_14 : null; + } else if (!(this.combinationEp_1 == null)) { + var tmp_15 = this.combinationEp_1; + return (tmp_15 == null ? true : !(tmp_15 == null)) ? tmp_15 : null; + } else if (!(this.sponsor_1 == null)) { + var tmp_16 = this.sponsor_1; + return (tmp_16 == null ? true : !(tmp_16 == null)) ? tmp_16 : null; + } else if (!(this.activityEntranceModule_1 == null)) { + var tmp_17 = this.activityEntranceModule_1; + return (tmp_17 == null ? true : !(tmp_17 == null)) ? tmp_17 : null; + } else if (!(this.serialSeason_1 == null)) { + var tmp_18 = this.serialSeason_1; + return (tmp_18 == null ? true : !(tmp_18 == null)) ? tmp_18 : null; + } else if (!(this.relates_1 == null)) { + var tmp_19 = this.relates_1; + return (tmp_19 == null ? true : !(tmp_19 == null)) ? tmp_19 : null; + } else if (!(this.banner_1 == null)) { + var tmp_20 = this.banner_1; + return (tmp_20 == null ? true : !(tmp_20 == null)) ? tmp_20 : null; + } else if (!(this.audio_1 == null)) { + var tmp_21 = this.audio_1; + return (tmp_21 == null ? true : !(tmp_21 == null)) ? tmp_21 : null; + } else if (!(this.likeComment_1 == null)) { + var tmp_22 = this.likeComment_1; + return (tmp_22 == null ? true : !(tmp_22 == null)) ? tmp_22 : null; + } else if (!(this.attentionRecommend_1 == null)) { + var tmp_23 = this.attentionRecommend_1; + return (tmp_23 == null ? true : !(tmp_23 == null)) ? tmp_23 : null; + } else if (!(this.covenanter_1 == null)) { + var tmp_24 = this.covenanter_1; + return (tmp_24 == null ? true : !(tmp_24 == null)) ? tmp_24 : null; + } else if (!(this.specialTag_1 == null)) { + var tmp_25 = this.specialTag_1; + return (tmp_25 == null ? true : !(tmp_25 == null)) ? tmp_25 : null; + } else if (!(this.upDataModule_1 == null)) { + var tmp_26 = this.upDataModule_1; + return (tmp_26 == null ? true : !(tmp_26 == null)) ? tmp_26 : null; + } else if (!(this.professionApproval_1 == null)) { + var tmp_27 = this.professionApproval_1; + return (tmp_27 == null ? true : !(tmp_27 == null)) ? tmp_27 : null; + } else if (!(this.pugvShoppingNotice_1 == null)) { + var tmp_28 = this.pugvShoppingNotice_1; + return (tmp_28 == null ? true : !(tmp_28 == null)) ? tmp_28 : null; + } else if (!(this.pugvFaq_1 == null)) { + var tmp_29 = this.pugvFaq_1; + return (tmp_29 == null ? true : !(tmp_29 == null)) ? tmp_29 : null; + } else if (!(this.pugvSeasonDescription_1 == null)) { + var tmp_30 = this.pugvSeasonDescription_1; + return (tmp_30 == null ? true : !(tmp_30 == null)) ? tmp_30 : null; + } else if (!(this.pugvSeasonRecommend_1 == null)) { + var tmp_31 = this.pugvSeasonRecommend_1; + return (tmp_31 == null ? true : !(tmp_31 == null)) ? tmp_31 : null; + } else if (!(this.pugvSeasonPublisher_1 == null)) { + var tmp_32 = this.pugvSeasonPublisher_1; + return (tmp_32 == null ? true : !(tmp_32 == null)) ? tmp_32 : null; + } else if (!(this.pugvSeasonSelection_1 == null)) { + var tmp_33 = this.pugvSeasonSelection_1; + return (tmp_33 == null ? true : !(tmp_33 == null)) ? tmp_33 : null; + } else if (!(this.pugvSeasonPrimaryInfo_1 == null)) { + var tmp_34 = this.pugvSeasonPrimaryInfo_1; + return (tmp_34 == null ? true : !(tmp_34 == null)) ? tmp_34 : null; + } else if (!(this.pugvCooperationApplication_1 == null)) { + var tmp_35 = this.pugvCooperationApplication_1; + return (tmp_35 == null ? true : !(tmp_35 == null)) ? tmp_35 : null; + } else if (!(this.upVideoTool_1 == null)) { + var tmp_36 = this.upVideoTool_1; + return (tmp_36 == null ? true : !(tmp_36 == null)) ? tmp_36 : null; + } else if (!(this.pugvZone_1 == null)) { + var tmp_37 = this.pugvZone_1; + return (tmp_37 == null ? true : !(tmp_37 == null)) ? tmp_37 : null; + } else if (!(this.pugvSeries_1 == null)) { + var tmp_38 = this.pugvSeries_1; + return (tmp_38 == null ? true : !(tmp_38 == null)) ? tmp_38 : null; + } else if (!(this.pugvPackage_1 == null)) { + var tmp_39 = this.pugvPackage_1; + return (tmp_39 == null ? true : !(tmp_39 == null)) ? tmp_39 : null; + } else { + return null; + } + } + dataTypeJs() { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = Companion_getInstance_231().dataValues; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.viewunite.common.KModule.dataType.' call + var it = element; + tmp$ret$0 = it.value === _get_dataNumber__hqvc14_0(this); + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + return tmp$ret$1; + } + typeEnum() { + return Companion_getInstance_222().fromValue(this.type); + } + component1_7eebsc_k$() { + return this.type; + } + copy_wuso4c_k$(type, ogvIntroduction, ugcIntroduction, kingPosition, headLine, ogvTitle, honor, list, staffs, activityReserve, liveOrder, sectionData, deliveryData, followLayer, ogvSeasons, ugcSeason, ogvLiveReserve, combinationEp, sponsor, activityEntranceModule, serialSeason, relates, banner, audio, likeComment, attentionRecommend, covenanter, specialTag, upDataModule, professionApproval, pugvShoppingNotice, pugvFaq, pugvSeasonDescription, pugvSeasonRecommend, pugvSeasonPublisher, pugvSeasonSelection, pugvSeasonPrimaryInfo, pugvCooperationApplication, upVideoTool, pugvZone, pugvSeries, pugvPackage) { + return new KModule(type, ogvIntroduction, ugcIntroduction, kingPosition, headLine, ogvTitle, honor, list, staffs, activityReserve, liveOrder, sectionData, deliveryData, followLayer, ogvSeasons, ugcSeason, ogvLiveReserve, combinationEp, sponsor, activityEntranceModule, serialSeason, relates, banner, audio, likeComment, attentionRecommend, covenanter, specialTag, upDataModule, professionApproval, pugvShoppingNotice, pugvFaq, pugvSeasonDescription, pugvSeasonRecommend, pugvSeasonPublisher, pugvSeasonSelection, pugvSeasonPrimaryInfo, pugvCooperationApplication, upVideoTool, pugvZone, pugvSeries, pugvPackage); + } + copy(type, ogvIntroduction, ugcIntroduction, kingPosition, headLine, ogvTitle, honor, list, staffs, activityReserve, liveOrder, sectionData, deliveryData, followLayer, ogvSeasons, ugcSeason, ogvLiveReserve, combinationEp, sponsor, activityEntranceModule, serialSeason, relates, banner, audio, likeComment, attentionRecommend, covenanter, specialTag, upDataModule, professionApproval, pugvShoppingNotice, pugvFaq, pugvSeasonDescription, pugvSeasonRecommend, pugvSeasonPublisher, pugvSeasonSelection, pugvSeasonPrimaryInfo, pugvCooperationApplication, upVideoTool, pugvZone, pugvSeries, pugvPackage, $super) { + type = type === VOID ? this.type : type; + ogvIntroduction = ogvIntroduction === VOID ? this.ogvIntroduction_1 : ogvIntroduction; + ugcIntroduction = ugcIntroduction === VOID ? this.ugcIntroduction_1 : ugcIntroduction; + kingPosition = kingPosition === VOID ? this.kingPosition_1 : kingPosition; + headLine = headLine === VOID ? this.headLine_1 : headLine; + ogvTitle = ogvTitle === VOID ? this.ogvTitle_1 : ogvTitle; + honor = honor === VOID ? this.honor_1 : honor; + list = list === VOID ? this.list_1 : list; + staffs = staffs === VOID ? this.staffs_1 : staffs; + activityReserve = activityReserve === VOID ? this.activityReserve_1 : activityReserve; + liveOrder = liveOrder === VOID ? this.liveOrder_1 : liveOrder; + sectionData = sectionData === VOID ? this.sectionData_1 : sectionData; + deliveryData = deliveryData === VOID ? this.deliveryData_1 : deliveryData; + followLayer = followLayer === VOID ? this.followLayer_1 : followLayer; + ogvSeasons = ogvSeasons === VOID ? this.ogvSeasons_1 : ogvSeasons; + ugcSeason = ugcSeason === VOID ? this.ugcSeason_1 : ugcSeason; + ogvLiveReserve = ogvLiveReserve === VOID ? this.ogvLiveReserve_1 : ogvLiveReserve; + combinationEp = combinationEp === VOID ? this.combinationEp_1 : combinationEp; + sponsor = sponsor === VOID ? this.sponsor_1 : sponsor; + activityEntranceModule = activityEntranceModule === VOID ? this.activityEntranceModule_1 : activityEntranceModule; + serialSeason = serialSeason === VOID ? this.serialSeason_1 : serialSeason; + relates = relates === VOID ? this.relates_1 : relates; + banner = banner === VOID ? this.banner_1 : banner; + audio = audio === VOID ? this.audio_1 : audio; + likeComment = likeComment === VOID ? this.likeComment_1 : likeComment; + attentionRecommend = attentionRecommend === VOID ? this.attentionRecommend_1 : attentionRecommend; + covenanter = covenanter === VOID ? this.covenanter_1 : covenanter; + specialTag = specialTag === VOID ? this.specialTag_1 : specialTag; + upDataModule = upDataModule === VOID ? this.upDataModule_1 : upDataModule; + professionApproval = professionApproval === VOID ? this.professionApproval_1 : professionApproval; + pugvShoppingNotice = pugvShoppingNotice === VOID ? this.pugvShoppingNotice_1 : pugvShoppingNotice; + pugvFaq = pugvFaq === VOID ? this.pugvFaq_1 : pugvFaq; + pugvSeasonDescription = pugvSeasonDescription === VOID ? this.pugvSeasonDescription_1 : pugvSeasonDescription; + pugvSeasonRecommend = pugvSeasonRecommend === VOID ? this.pugvSeasonRecommend_1 : pugvSeasonRecommend; + pugvSeasonPublisher = pugvSeasonPublisher === VOID ? this.pugvSeasonPublisher_1 : pugvSeasonPublisher; + pugvSeasonSelection = pugvSeasonSelection === VOID ? this.pugvSeasonSelection_1 : pugvSeasonSelection; + pugvSeasonPrimaryInfo = pugvSeasonPrimaryInfo === VOID ? this.pugvSeasonPrimaryInfo_1 : pugvSeasonPrimaryInfo; + pugvCooperationApplication = pugvCooperationApplication === VOID ? this.pugvCooperationApplication_1 : pugvCooperationApplication; + upVideoTool = upVideoTool === VOID ? this.upVideoTool_1 : upVideoTool; + pugvZone = pugvZone === VOID ? this.pugvZone_1 : pugvZone; + pugvSeries = pugvSeries === VOID ? this.pugvSeries_1 : pugvSeries; + pugvPackage = pugvPackage === VOID ? this.pugvPackage_1 : pugvPackage; + return this.copy_wuso4c_k$(type, ogvIntroduction, ugcIntroduction, kingPosition, headLine, ogvTitle, honor, list, staffs, activityReserve, liveOrder, sectionData, deliveryData, followLayer, ogvSeasons, ugcSeason, ogvLiveReserve, combinationEp, sponsor, activityEntranceModule, serialSeason, relates, banner, audio, likeComment, attentionRecommend, covenanter, specialTag, upDataModule, professionApproval, pugvShoppingNotice, pugvFaq, pugvSeasonDescription, pugvSeasonRecommend, pugvSeasonPublisher, pugvSeasonSelection, pugvSeasonPrimaryInfo, pugvCooperationApplication, upVideoTool, pugvZone, pugvSeries, pugvPackage); + } + toString() { + return 'KModule(type=' + this.type + ', ogvIntroduction=' + this.ogvIntroduction_1 + ', ugcIntroduction=' + this.ugcIntroduction_1 + ', kingPosition=' + this.kingPosition_1 + ', headLine=' + this.headLine_1 + ', ogvTitle=' + this.ogvTitle_1 + ', honor=' + this.honor_1 + ', list=' + this.list_1 + ', staffs=' + this.staffs_1 + ', activityReserve=' + this.activityReserve_1 + ', liveOrder=' + this.liveOrder_1 + ', sectionData=' + this.sectionData_1 + ', deliveryData=' + this.deliveryData_1 + ', followLayer=' + this.followLayer_1 + ', ogvSeasons=' + this.ogvSeasons_1 + ', ugcSeason=' + this.ugcSeason_1 + ', ogvLiveReserve=' + this.ogvLiveReserve_1 + ', combinationEp=' + this.combinationEp_1 + ', sponsor=' + this.sponsor_1 + ', activityEntranceModule=' + this.activityEntranceModule_1 + ', serialSeason=' + this.serialSeason_1 + ', relates=' + this.relates_1 + ', banner=' + this.banner_1 + ', audio=' + this.audio_1 + ', likeComment=' + this.likeComment_1 + ', attentionRecommend=' + this.attentionRecommend_1 + ', covenanter=' + this.covenanter_1 + ', specialTag=' + this.specialTag_1 + ', upDataModule=' + this.upDataModule_1 + ', professionApproval=' + this.professionApproval_1 + ', pugvShoppingNotice=' + this.pugvShoppingNotice_1 + ', pugvFaq=' + this.pugvFaq_1 + ', pugvSeasonDescription=' + this.pugvSeasonDescription_1 + ', pugvSeasonRecommend=' + this.pugvSeasonRecommend_1 + ', pugvSeasonPublisher=' + this.pugvSeasonPublisher_1 + ', pugvSeasonSelection=' + this.pugvSeasonSelection_1 + ', pugvSeasonPrimaryInfo=' + this.pugvSeasonPrimaryInfo_1 + ', pugvCooperationApplication=' + this.pugvCooperationApplication_1 + ', upVideoTool=' + this.upVideoTool_1 + ', pugvZone=' + this.pugvZone_1 + ', pugvSeries=' + this.pugvSeries_1 + ', pugvPackage=' + this.pugvPackage_1 + ')'; + } + hashCode() { + var result = this.type; + result = imul(result, 31) + (this.ogvIntroduction_1 == null ? 0 : this.ogvIntroduction_1.hashCode()) | 0; + result = imul(result, 31) + (this.ugcIntroduction_1 == null ? 0 : this.ugcIntroduction_1.hashCode()) | 0; + result = imul(result, 31) + (this.kingPosition_1 == null ? 0 : this.kingPosition_1.hashCode()) | 0; + result = imul(result, 31) + (this.headLine_1 == null ? 0 : this.headLine_1.hashCode()) | 0; + result = imul(result, 31) + (this.ogvTitle_1 == null ? 0 : this.ogvTitle_1.hashCode()) | 0; + result = imul(result, 31) + (this.honor_1 == null ? 0 : this.honor_1.hashCode()) | 0; + result = imul(result, 31) + (this.list_1 == null ? 0 : this.list_1.hashCode()) | 0; + result = imul(result, 31) + (this.staffs_1 == null ? 0 : this.staffs_1.hashCode()) | 0; + result = imul(result, 31) + (this.activityReserve_1 == null ? 0 : this.activityReserve_1.hashCode()) | 0; + result = imul(result, 31) + (this.liveOrder_1 == null ? 0 : this.liveOrder_1.hashCode()) | 0; + result = imul(result, 31) + (this.sectionData_1 == null ? 0 : this.sectionData_1.hashCode()) | 0; + result = imul(result, 31) + (this.deliveryData_1 == null ? 0 : this.deliveryData_1.hashCode()) | 0; + result = imul(result, 31) + (this.followLayer_1 == null ? 0 : this.followLayer_1.hashCode()) | 0; + result = imul(result, 31) + (this.ogvSeasons_1 == null ? 0 : this.ogvSeasons_1.hashCode()) | 0; + result = imul(result, 31) + (this.ugcSeason_1 == null ? 0 : this.ugcSeason_1.hashCode()) | 0; + result = imul(result, 31) + (this.ogvLiveReserve_1 == null ? 0 : this.ogvLiveReserve_1.hashCode()) | 0; + result = imul(result, 31) + (this.combinationEp_1 == null ? 0 : this.combinationEp_1.hashCode()) | 0; + result = imul(result, 31) + (this.sponsor_1 == null ? 0 : this.sponsor_1.hashCode()) | 0; + result = imul(result, 31) + (this.activityEntranceModule_1 == null ? 0 : this.activityEntranceModule_1.hashCode()) | 0; + result = imul(result, 31) + (this.serialSeason_1 == null ? 0 : this.serialSeason_1.hashCode()) | 0; + result = imul(result, 31) + (this.relates_1 == null ? 0 : this.relates_1.hashCode()) | 0; + result = imul(result, 31) + (this.banner_1 == null ? 0 : this.banner_1.hashCode()) | 0; + result = imul(result, 31) + (this.audio_1 == null ? 0 : this.audio_1.hashCode()) | 0; + result = imul(result, 31) + (this.likeComment_1 == null ? 0 : this.likeComment_1.hashCode()) | 0; + result = imul(result, 31) + (this.attentionRecommend_1 == null ? 0 : hashCode(this.attentionRecommend_1)) | 0; + result = imul(result, 31) + (this.covenanter_1 == null ? 0 : this.covenanter_1.hashCode()) | 0; + result = imul(result, 31) + (this.specialTag_1 == null ? 0 : this.specialTag_1.hashCode()) | 0; + result = imul(result, 31) + (this.upDataModule_1 == null ? 0 : this.upDataModule_1.hashCode()) | 0; + result = imul(result, 31) + (this.professionApproval_1 == null ? 0 : this.professionApproval_1.hashCode()) | 0; + result = imul(result, 31) + (this.pugvShoppingNotice_1 == null ? 0 : this.pugvShoppingNotice_1.hashCode()) | 0; + result = imul(result, 31) + (this.pugvFaq_1 == null ? 0 : this.pugvFaq_1.hashCode()) | 0; + result = imul(result, 31) + (this.pugvSeasonDescription_1 == null ? 0 : this.pugvSeasonDescription_1.hashCode()) | 0; + result = imul(result, 31) + (this.pugvSeasonRecommend_1 == null ? 0 : this.pugvSeasonRecommend_1.hashCode()) | 0; + result = imul(result, 31) + (this.pugvSeasonPublisher_1 == null ? 0 : this.pugvSeasonPublisher_1.hashCode()) | 0; + result = imul(result, 31) + (this.pugvSeasonSelection_1 == null ? 0 : this.pugvSeasonSelection_1.hashCode()) | 0; + result = imul(result, 31) + (this.pugvSeasonPrimaryInfo_1 == null ? 0 : this.pugvSeasonPrimaryInfo_1.hashCode()) | 0; + result = imul(result, 31) + (this.pugvCooperationApplication_1 == null ? 0 : this.pugvCooperationApplication_1.hashCode()) | 0; + result = imul(result, 31) + (this.upVideoTool_1 == null ? 0 : this.upVideoTool_1.hashCode()) | 0; + result = imul(result, 31) + (this.pugvZone_1 == null ? 0 : this.pugvZone_1.hashCode()) | 0; + result = imul(result, 31) + (this.pugvSeries_1 == null ? 0 : this.pugvSeries_1.hashCode()) | 0; + result = imul(result, 31) + (this.pugvPackage_1 == null ? 0 : this.pugvPackage_1.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KModule)) + return false; + var tmp0_other_with_cast = other instanceof KModule ? other : THROW_CCE(); + if (!(this.type === tmp0_other_with_cast.type)) + return false; + if (!equals(this.ogvIntroduction_1, tmp0_other_with_cast.ogvIntroduction_1)) + return false; + if (!equals(this.ugcIntroduction_1, tmp0_other_with_cast.ugcIntroduction_1)) + return false; + if (!equals(this.kingPosition_1, tmp0_other_with_cast.kingPosition_1)) + return false; + if (!equals(this.headLine_1, tmp0_other_with_cast.headLine_1)) + return false; + if (!equals(this.ogvTitle_1, tmp0_other_with_cast.ogvTitle_1)) + return false; + if (!equals(this.honor_1, tmp0_other_with_cast.honor_1)) + return false; + if (!equals(this.list_1, tmp0_other_with_cast.list_1)) + return false; + if (!equals(this.staffs_1, tmp0_other_with_cast.staffs_1)) + return false; + if (!equals(this.activityReserve_1, tmp0_other_with_cast.activityReserve_1)) + return false; + if (!equals(this.liveOrder_1, tmp0_other_with_cast.liveOrder_1)) + return false; + if (!equals(this.sectionData_1, tmp0_other_with_cast.sectionData_1)) + return false; + if (!equals(this.deliveryData_1, tmp0_other_with_cast.deliveryData_1)) + return false; + if (!equals(this.followLayer_1, tmp0_other_with_cast.followLayer_1)) + return false; + if (!equals(this.ogvSeasons_1, tmp0_other_with_cast.ogvSeasons_1)) + return false; + if (!equals(this.ugcSeason_1, tmp0_other_with_cast.ugcSeason_1)) + return false; + if (!equals(this.ogvLiveReserve_1, tmp0_other_with_cast.ogvLiveReserve_1)) + return false; + if (!equals(this.combinationEp_1, tmp0_other_with_cast.combinationEp_1)) + return false; + if (!equals(this.sponsor_1, tmp0_other_with_cast.sponsor_1)) + return false; + if (!equals(this.activityEntranceModule_1, tmp0_other_with_cast.activityEntranceModule_1)) + return false; + if (!equals(this.serialSeason_1, tmp0_other_with_cast.serialSeason_1)) + return false; + if (!equals(this.relates_1, tmp0_other_with_cast.relates_1)) + return false; + if (!equals(this.banner_1, tmp0_other_with_cast.banner_1)) + return false; + if (!equals(this.audio_1, tmp0_other_with_cast.audio_1)) + return false; + if (!equals(this.likeComment_1, tmp0_other_with_cast.likeComment_1)) + return false; + if (!equals(this.attentionRecommend_1, tmp0_other_with_cast.attentionRecommend_1)) + return false; + if (!equals(this.covenanter_1, tmp0_other_with_cast.covenanter_1)) + return false; + if (!equals(this.specialTag_1, tmp0_other_with_cast.specialTag_1)) + return false; + if (!equals(this.upDataModule_1, tmp0_other_with_cast.upDataModule_1)) + return false; + if (!equals(this.professionApproval_1, tmp0_other_with_cast.professionApproval_1)) + return false; + if (!equals(this.pugvShoppingNotice_1, tmp0_other_with_cast.pugvShoppingNotice_1)) + return false; + if (!equals(this.pugvFaq_1, tmp0_other_with_cast.pugvFaq_1)) + return false; + if (!equals(this.pugvSeasonDescription_1, tmp0_other_with_cast.pugvSeasonDescription_1)) + return false; + if (!equals(this.pugvSeasonRecommend_1, tmp0_other_with_cast.pugvSeasonRecommend_1)) + return false; + if (!equals(this.pugvSeasonPublisher_1, tmp0_other_with_cast.pugvSeasonPublisher_1)) + return false; + if (!equals(this.pugvSeasonSelection_1, tmp0_other_with_cast.pugvSeasonSelection_1)) + return false; + if (!equals(this.pugvSeasonPrimaryInfo_1, tmp0_other_with_cast.pugvSeasonPrimaryInfo_1)) + return false; + if (!equals(this.pugvCooperationApplication_1, tmp0_other_with_cast.pugvCooperationApplication_1)) + return false; + if (!equals(this.upVideoTool_1, tmp0_other_with_cast.upVideoTool_1)) + return false; + if (!equals(this.pugvZone_1, tmp0_other_with_cast.pugvZone_1)) + return false; + if (!equals(this.pugvSeries_1, tmp0_other_with_cast.pugvSeries_1)) + return false; + if (!equals(this.pugvPackage_1, tmp0_other_with_cast.pugvPackage_1)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KModule_y51sbp_k$(seen1, seen2, type, ogvIntroduction, ugcIntroduction, kingPosition, headLine, ogvTitle, honor, list, staffs, activityReserve, liveOrder, sectionData, deliveryData, followLayer, ogvSeasons, ugcSeason, ogvLiveReserve, combinationEp, sponsor, activityEntranceModule, serialSeason, relates, banner, audio, likeComment, attentionRecommend, covenanter, specialTag, upDataModule, professionApproval, pugvShoppingNotice, pugvFaq, pugvSeasonDescription, pugvSeasonRecommend, pugvSeasonPublisher, pugvSeasonSelection, pugvSeasonPrimaryInfo, pugvCooperationApplication, upVideoTool, pugvZone, pugvSeries, pugvPackage, serializationConstructorMarker) { + Companion_getInstance_231(); + if (!!(!(0 === (0 & seen1)) | !(0 === (0 & seen2)))) { + var tmp$ret$0; + // Inline function 'kotlin.intArrayOf' call + var elements = new Int32Array([seen1, seen2]); + tmp$ret$0 = elements; + var tmp = tmp$ret$0; + var tmp$ret$1; + // Inline function 'kotlin.intArrayOf' call + var elements_0 = new Int32Array([0, 0]); + tmp$ret$1 = elements_0; + throwArrayMissingFieldException(tmp, tmp$ret$1, $serializer_getInstance_218().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.type = 0; + else + $this.type = type; + if (0 === (seen1 & 2)) + $this.ogvIntroduction_1 = null; + else + $this.ogvIntroduction_1 = ogvIntroduction; + if (0 === (seen1 & 4)) + $this.ugcIntroduction_1 = null; + else + $this.ugcIntroduction_1 = ugcIntroduction; + if (0 === (seen1 & 8)) + $this.kingPosition_1 = null; + else + $this.kingPosition_1 = kingPosition; + if (0 === (seen1 & 16)) + $this.headLine_1 = null; + else + $this.headLine_1 = headLine; + if (0 === (seen1 & 32)) + $this.ogvTitle_1 = null; + else + $this.ogvTitle_1 = ogvTitle; + if (0 === (seen1 & 64)) + $this.honor_1 = null; + else + $this.honor_1 = honor; + if (0 === (seen1 & 128)) + $this.list_1 = null; + else + $this.list_1 = list; + if (0 === (seen1 & 256)) + $this.staffs_1 = null; + else + $this.staffs_1 = staffs; + if (0 === (seen1 & 512)) + $this.activityReserve_1 = null; + else + $this.activityReserve_1 = activityReserve; + if (0 === (seen1 & 1024)) + $this.liveOrder_1 = null; + else + $this.liveOrder_1 = liveOrder; + if (0 === (seen1 & 2048)) + $this.sectionData_1 = null; + else + $this.sectionData_1 = sectionData; + if (0 === (seen1 & 4096)) + $this.deliveryData_1 = null; + else + $this.deliveryData_1 = deliveryData; + if (0 === (seen1 & 8192)) + $this.followLayer_1 = null; + else + $this.followLayer_1 = followLayer; + if (0 === (seen1 & 16384)) + $this.ogvSeasons_1 = null; + else + $this.ogvSeasons_1 = ogvSeasons; + if (0 === (seen1 & 32768)) + $this.ugcSeason_1 = null; + else + $this.ugcSeason_1 = ugcSeason; + if (0 === (seen1 & 65536)) + $this.ogvLiveReserve_1 = null; + else + $this.ogvLiveReserve_1 = ogvLiveReserve; + if (0 === (seen1 & 131072)) + $this.combinationEp_1 = null; + else + $this.combinationEp_1 = combinationEp; + if (0 === (seen1 & 262144)) + $this.sponsor_1 = null; + else + $this.sponsor_1 = sponsor; + if (0 === (seen1 & 524288)) + $this.activityEntranceModule_1 = null; + else + $this.activityEntranceModule_1 = activityEntranceModule; + if (0 === (seen1 & 1048576)) + $this.serialSeason_1 = null; + else + $this.serialSeason_1 = serialSeason; + if (0 === (seen1 & 2097152)) + $this.relates_1 = null; + else + $this.relates_1 = relates; + if (0 === (seen1 & 4194304)) + $this.banner_1 = null; + else + $this.banner_1 = banner; + if (0 === (seen1 & 8388608)) + $this.audio_1 = null; + else + $this.audio_1 = audio; + if (0 === (seen1 & 16777216)) + $this.likeComment_1 = null; + else + $this.likeComment_1 = likeComment; + if (0 === (seen1 & 33554432)) + $this.attentionRecommend_1 = null; + else + $this.attentionRecommend_1 = attentionRecommend; + if (0 === (seen1 & 67108864)) + $this.covenanter_1 = null; + else + $this.covenanter_1 = covenanter; + if (0 === (seen1 & 134217728)) + $this.specialTag_1 = null; + else + $this.specialTag_1 = specialTag; + if (0 === (seen1 & 268435456)) + $this.upDataModule_1 = null; + else + $this.upDataModule_1 = upDataModule; + if (0 === (seen1 & 536870912)) + $this.professionApproval_1 = null; + else + $this.professionApproval_1 = professionApproval; + if (0 === (seen1 & 1073741824)) + $this.pugvShoppingNotice_1 = null; + else + $this.pugvShoppingNotice_1 = pugvShoppingNotice; + if (0 === (seen1 & -2147483648)) + $this.pugvFaq_1 = null; + else + $this.pugvFaq_1 = pugvFaq; + if (0 === (seen2 & 1)) + $this.pugvSeasonDescription_1 = null; + else + $this.pugvSeasonDescription_1 = pugvSeasonDescription; + if (0 === (seen2 & 2)) + $this.pugvSeasonRecommend_1 = null; + else + $this.pugvSeasonRecommend_1 = pugvSeasonRecommend; + if (0 === (seen2 & 4)) + $this.pugvSeasonPublisher_1 = null; + else + $this.pugvSeasonPublisher_1 = pugvSeasonPublisher; + if (0 === (seen2 & 8)) + $this.pugvSeasonSelection_1 = null; + else + $this.pugvSeasonSelection_1 = pugvSeasonSelection; + if (0 === (seen2 & 16)) + $this.pugvSeasonPrimaryInfo_1 = null; + else + $this.pugvSeasonPrimaryInfo_1 = pugvSeasonPrimaryInfo; + if (0 === (seen2 & 32)) + $this.pugvCooperationApplication_1 = null; + else + $this.pugvCooperationApplication_1 = pugvCooperationApplication; + if (0 === (seen2 & 64)) + $this.upVideoTool_1 = null; + else + $this.upVideoTool_1 = upVideoTool; + if (0 === (seen2 & 128)) + $this.pugvZone_1 = null; + else + $this.pugvZone_1 = pugvZone; + if (0 === (seen2 & 256)) + $this.pugvSeries_1 = null; + else + $this.pugvSeries_1 = pugvSeries; + if (0 === (seen2 & 512)) + $this.pugvPackage_1 = null; + else + $this.pugvPackage_1 = pugvPackage; + var tmp_0 = $this; + tmp_0.dataNumber$delegate_1 = lazy_0(KModule$_init_$lambda_mh1hbg($this)); + return $this; + } + } + class Companion_232 { + constructor() { + Companion_instance_232 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, new ArrayListSerializer($serializer_getInstance_220())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.viewunite.common.UpVideoTool'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_219(); + } + } + class $serializer_219 { + constructor() { + $serializer_instance_219 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KUpVideoTool', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('tools', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_232().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), tmp0_cached[1]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp7_cached = Companion_getInstance_232().$childSerializers_1; + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KUpVideoTool_0.new_com_bapis_bilibili_app_viewunite_common_KUpVideoTool_yh4j3i_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_ue1s3u_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_232().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !equals(value.tools, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 1, tmp2_cached[1], value.tools); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_ue1s3u_k$(encoder, value instanceof KUpVideoTool_0 ? value : THROW_CCE()); + } + } + class KUpVideoTool_0 { + constructor(title, tools) { + Companion_getInstance_232(); + title = title === VOID ? '' : title; + tools = tools === VOID ? emptyList() : tools; + this.title = title; + this.tools = tools; + } + get_title_iz32un_k$() { + return this.title; + } + get_tools_iz6t2q_k$() { + return this.tools; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.tools; + } + copy_oe8lvf_k$(title, tools) { + return new KUpVideoTool_0(title, tools); + } + copy(title, tools, $super) { + title = title === VOID ? this.title : title; + tools = tools === VOID ? this.tools : tools; + return this.copy_oe8lvf_k$(title, tools); + } + toString() { + return 'KUpVideoTool(title=' + this.title + ', tools=' + this.tools + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + hashCode(this.tools) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KUpVideoTool_0)) + return false; + var tmp0_other_with_cast = other instanceof KUpVideoTool_0 ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!equals(this.tools, tmp0_other_with_cast.tools)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KUpVideoTool_yh4j3i_k$(seen1, title, tools, serializationConstructorMarker) { + Companion_getInstance_232(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_219().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.tools = emptyList(); + else + $this.tools = tools; + return $this; + } + } + class Companion_233 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.UpTool'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_220(); + } + } + class $serializer_220 { + constructor() { + $serializer_instance_220 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KUpTool', this, 5); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('text', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('icon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('url', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('badge', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_377())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp9_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_377(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + } else + while (tmp1_flag) { + tmp2_index = tmp9_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_377(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp9_input.endStructure_1xqz0n_k$(tmp0_desc); + return KUpTool.new_com_bapis_bilibili_app_viewunite_common_KUpTool_g9w5pb_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); + } + serialize_f6gd8l_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.type === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.type); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.text === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.text); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.icon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.icon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.url === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.url); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.badge == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, $serializer_getInstance_377(), value.badge); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_f6gd8l_k$(encoder, value instanceof KUpTool ? value : THROW_CCE()); + } + } + class KUpTool { + constructor(type, text, icon, url, badge) { + Companion_instance_233; + type = type === VOID ? 0 : type; + text = text === VOID ? '' : text; + icon = icon === VOID ? '' : icon; + url = url === VOID ? '' : url; + badge = badge === VOID ? null : badge; + this.type = type; + this.text = text; + this.icon = icon; + this.url = url; + this.badge = badge; + } + get_type_wovaf7_k$() { + return this.type; + } + get_text_wouvsm_k$() { + return this.text; + } + get_icon_wont8i_k$() { + return this.icon; + } + get_url_18iuii_k$() { + return this.url; + } + get_badge_ip1cai_k$() { + return this.badge; + } + typeEnum() { + return Companion_getInstance_212().fromValue(this.type); + } + component1_7eebsc_k$() { + return this.type; + } + component2_7eebsb_k$() { + return this.text; + } + component3_7eebsa_k$() { + return this.icon; + } + component4_7eebs9_k$() { + return this.url; + } + component5_7eebs8_k$() { + return this.badge; + } + copy_ati2eo_k$(type, text, icon, url, badge) { + return new KUpTool(type, text, icon, url, badge); + } + copy(type, text, icon, url, badge, $super) { + type = type === VOID ? this.type : type; + text = text === VOID ? this.text : text; + icon = icon === VOID ? this.icon : icon; + url = url === VOID ? this.url : url; + badge = badge === VOID ? this.badge : badge; + return this.copy_ati2eo_k$(type, text, icon, url, badge); + } + toString() { + return 'KUpTool(type=' + this.type + ', text=' + this.text + ', icon=' + this.icon + ', url=' + this.url + ', badge=' + this.badge + ')'; + } + hashCode() { + var result = this.type; + result = imul(result, 31) + getStringHashCode(this.text) | 0; + result = imul(result, 31) + getStringHashCode(this.icon) | 0; + result = imul(result, 31) + getStringHashCode(this.url) | 0; + result = imul(result, 31) + (this.badge == null ? 0 : this.badge.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KUpTool)) + return false; + var tmp0_other_with_cast = other instanceof KUpTool ? other : THROW_CCE(); + if (!(this.type === tmp0_other_with_cast.type)) + return false; + if (!(this.text === tmp0_other_with_cast.text)) + return false; + if (!(this.icon === tmp0_other_with_cast.icon)) + return false; + if (!(this.url === tmp0_other_with_cast.url)) + return false; + if (!equals(this.badge, tmp0_other_with_cast.badge)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KUpTool_g9w5pb_k$(seen1, type, text, icon, url, badge, serializationConstructorMarker) { + Companion_instance_233; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_220().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.type = 0; + else + $this.type = type; + if (0 === (seen1 & 2)) + $this.text = ''; + else + $this.text = text; + if (0 === (seen1 & 4)) + $this.icon = ''; + else + $this.icon = icon; + if (0 === (seen1 & 8)) + $this.url = ''; + else + $this.url = url; + if (0 === (seen1 & 16)) + $this.badge = null; + else + $this.badge = badge; + return $this; + } + } + class Companion_234 { + constructor() { + Companion_instance_234 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer($serializer_getInstance_222()), null, null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.viewunite.common.UpDataModule'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_221(); + } + } + class $serializer_221 { + constructor() { + $serializer_instance_221 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KUpDataModule', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('extTabs', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('idx', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('protocolUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('height', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_234().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0], IntSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = 0; + var tmp6_local2 = null; + var tmp7_local3 = 0; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp9_cached = Companion_getInstance_234().$childSerializers_1; + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp9_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp9_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KUpDataModule_0.new_com_bapis_bilibili_app_viewunite_common_KUpDataModule_ngiekk_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_rmbe07_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_234().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.extTabs, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.extTabs); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.idx === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.idx); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.protocolUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.protocolUrl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.height === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 3, value.height); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_rmbe07_k$(encoder, value instanceof KUpDataModule_0 ? value : THROW_CCE()); + } + } + class KUpDataModule_0 { + constructor(extTabs, idx, protocolUrl, height) { + Companion_getInstance_234(); + extTabs = extTabs === VOID ? emptyList() : extTabs; + idx = idx === VOID ? 0 : idx; + protocolUrl = protocolUrl === VOID ? '' : protocolUrl; + height = height === VOID ? 0 : height; + this.extTabs = extTabs; + this.idx = idx; + this.protocolUrl = protocolUrl; + this.height = height; + } + get_extTabs_kc43hm_k$() { + return this.extTabs; + } + get_idx_18j3qk_k$() { + return this.idx; + } + get_protocolUrl_73tyry_k$() { + return this.protocolUrl; + } + get_height_e7t92o_k$() { + return this.height; + } + component1_7eebsc_k$() { + return this.extTabs; + } + component2_7eebsb_k$() { + return this.idx; + } + component3_7eebsa_k$() { + return this.protocolUrl; + } + component4_7eebs9_k$() { + return this.height; + } + copy_ptbj9c_k$(extTabs, idx, protocolUrl, height) { + return new KUpDataModule_0(extTabs, idx, protocolUrl, height); + } + copy(extTabs, idx, protocolUrl, height, $super) { + extTabs = extTabs === VOID ? this.extTabs : extTabs; + idx = idx === VOID ? this.idx : idx; + protocolUrl = protocolUrl === VOID ? this.protocolUrl : protocolUrl; + height = height === VOID ? this.height : height; + return this.copy_ptbj9c_k$(extTabs, idx, protocolUrl, height); + } + toString() { + return 'KUpDataModule(extTabs=' + this.extTabs + ', idx=' + this.idx + ', protocolUrl=' + this.protocolUrl + ', height=' + this.height + ')'; + } + hashCode() { + var result = hashCode(this.extTabs); + result = imul(result, 31) + this.idx | 0; + result = imul(result, 31) + getStringHashCode(this.protocolUrl) | 0; + result = imul(result, 31) + this.height | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KUpDataModule_0)) + return false; + var tmp0_other_with_cast = other instanceof KUpDataModule_0 ? other : THROW_CCE(); + if (!equals(this.extTabs, tmp0_other_with_cast.extTabs)) + return false; + if (!(this.idx === tmp0_other_with_cast.idx)) + return false; + if (!(this.protocolUrl === tmp0_other_with_cast.protocolUrl)) + return false; + if (!(this.height === tmp0_other_with_cast.height)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KUpDataModule_ngiekk_k$(seen1, extTabs, idx, protocolUrl, height, serializationConstructorMarker) { + Companion_getInstance_234(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_221().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.extTabs = emptyList(); + else + $this.extTabs = extTabs; + if (0 === (seen1 & 2)) + $this.idx = 0; + else + $this.idx = idx; + if (0 === (seen1 & 4)) + $this.protocolUrl = ''; + else + $this.protocolUrl = protocolUrl; + if (0 === (seen1 & 8)) + $this.height = 0; + else + $this.height = height; + return $this; + } + } + class Companion_235 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.ExtTab'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_222(); + } + } + class $serializer_222 { + constructor() { + $serializer_instance_222 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KExtTab', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('extType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('data', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KExtTab.new_com_bapis_bilibili_app_viewunite_common_KExtTab_ve2ckh_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_y5g5ms_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.extType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.extType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.data === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.data); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_y5g5ms_k$(encoder, value instanceof KExtTab ? value : THROW_CCE()); + } + } + class KExtTab { + constructor(extType, data) { + Companion_instance_235; + extType = extType === VOID ? 0 : extType; + data = data === VOID ? '' : data; + this.extType = extType; + this.data = data; + } + get_extType_kc3lda_k$() { + return this.extType; + } + get_data_wokkxf_k$() { + return this.data; + } + extTypeEnum() { + return Companion_getInstance_213().fromValue(this.extType); + } + component1_7eebsc_k$() { + return this.extType; + } + component2_7eebsb_k$() { + return this.data; + } + copy_xhhsuv_k$(extType, data) { + return new KExtTab(extType, data); + } + copy(extType, data, $super) { + extType = extType === VOID ? this.extType : extType; + data = data === VOID ? this.data : data; + return this.copy_xhhsuv_k$(extType, data); + } + toString() { + return 'KExtTab(extType=' + this.extType + ', data=' + this.data + ')'; + } + hashCode() { + var result = this.extType; + result = imul(result, 31) + getStringHashCode(this.data) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KExtTab)) + return false; + var tmp0_other_with_cast = other instanceof KExtTab ? other : THROW_CCE(); + if (!(this.extType === tmp0_other_with_cast.extType)) + return false; + if (!(this.data === tmp0_other_with_cast.data)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KExtTab_ve2ckh_k$(seen1, extType, data, serializationConstructorMarker) { + Companion_instance_235; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_222().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.extType = 0; + else + $this.extType = extType; + if (0 === (seen1 & 2)) + $this.data = ''; + else + $this.data = data; + return $this; + } + } + class Companion_236 { + constructor() { + Companion_instance_236 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer($serializer_getInstance_388()), null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.viewunite.common.SpecialTag'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_223(); + } + } + class $serializer_223 { + constructor() { + $serializer_instance_223 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KSpecialTag', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('specialCell', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('refresh', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_236().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0], BooleanSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = false; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp7_cached = Companion_getInstance_236().$childSerializers_1; + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp7_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp7_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSpecialTag_0.new_com_bapis_bilibili_app_viewunite_common_KSpecialTag_l9w2xl_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_5psp6x_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_236().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.specialCell, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.specialCell); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.refresh === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 1, value.refresh); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_5psp6x_k$(encoder, value instanceof KSpecialTag_0 ? value : THROW_CCE()); + } + } + class KSpecialTag_0 { + constructor(specialCell, refresh) { + Companion_getInstance_236(); + specialCell = specialCell === VOID ? emptyList() : specialCell; + refresh = refresh === VOID ? false : refresh; + this.specialCell = specialCell; + this.refresh = refresh; + } + get_specialCell_jik6m_k$() { + return this.specialCell; + } + get_refresh_j7ssmq_k$() { + return this.refresh; + } + component1_7eebsc_k$() { + return this.specialCell; + } + component2_7eebsb_k$() { + return this.refresh; + } + copy_ums2ta_k$(specialCell, refresh) { + return new KSpecialTag_0(specialCell, refresh); + } + copy(specialCell, refresh, $super) { + specialCell = specialCell === VOID ? this.specialCell : specialCell; + refresh = refresh === VOID ? this.refresh : refresh; + return this.copy_ums2ta_k$(specialCell, refresh); + } + toString() { + return 'KSpecialTag(specialCell=' + this.specialCell + ', refresh=' + this.refresh + ')'; + } + hashCode() { + var result = hashCode(this.specialCell); + result = imul(result, 31) + getBooleanHashCode(this.refresh) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSpecialTag_0)) + return false; + var tmp0_other_with_cast = other instanceof KSpecialTag_0 ? other : THROW_CCE(); + if (!equals(this.specialCell, tmp0_other_with_cast.specialCell)) + return false; + if (!(this.refresh === tmp0_other_with_cast.refresh)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KSpecialTag_l9w2xl_k$(seen1, specialCell, refresh, serializationConstructorMarker) { + Companion_getInstance_236(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_223().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.specialCell = emptyList(); + else + $this.specialCell = specialCell; + if (0 === (seen1 & 2)) + $this.refresh = false; + else + $this.refresh = refresh; + return $this; + } + } + class Companion_237 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.AttentionRecommend'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_224(); + } + } + class $serializer_224 { + constructor() { + $serializer_instance_224 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KAttentionRecommend', this, 0); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = []; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp4_input.decodeSequentially_xlblqy_k$()) { + } else + while (tmp1_flag) { + tmp2_index = tmp4_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + if (tmp2_index === -1) + tmp1_flag = false; + else + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + tmp4_input.endStructure_1xqz0n_k$(tmp0_desc); + return KAttentionRecommend_0.new_com_bapis_bilibili_app_viewunite_common_KAttentionRecommend_qvtauo_k$(tmp3_bitMask0, null); + } + serialize_4udq9m_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_4udq9m_k$(encoder, value instanceof KAttentionRecommend_0 ? value : THROW_CCE()); + } + } + class KAttentionRecommend_0 { + constructor() { + Companion_instance_237; + } + static new_com_bapis_bilibili_app_viewunite_common_KAttentionRecommend_qvtauo_k$(seen1, serializationConstructorMarker) { + Companion_instance_237; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_224().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + return $this; + } + } + class Companion_238 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.Covenanter'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_225(); + } + } + class $serializer_225 { + constructor() { + $serializer_instance_225 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KCovenanter', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('isFollowDisplay', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('text', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('isInteractDisplay', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), get_nullable($serializer_getInstance_226()), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = null; + var tmp6_local2 = 0; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_226(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_226(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KCovenanter_0.new_com_bapis_bilibili_app_viewunite_common_KCovenanter_qqeqqs_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_h8s9lj_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.isFollowDisplay === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.isFollowDisplay); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.text == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_226(), value.text); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.isInteractDisplay === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.isInteractDisplay); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_h8s9lj_k$(encoder, value instanceof KCovenanter_0 ? value : THROW_CCE()); + } + } + class KCovenanter_0 { + constructor(isFollowDisplay, text, isInteractDisplay) { + Companion_instance_238; + isFollowDisplay = isFollowDisplay === VOID ? 0 : isFollowDisplay; + text = text === VOID ? null : text; + isInteractDisplay = isInteractDisplay === VOID ? 0 : isInteractDisplay; + this.isFollowDisplay = isFollowDisplay; + this.text = text; + this.isInteractDisplay = isInteractDisplay; + } + get_isFollowDisplay_obdqua_k$() { + return this.isFollowDisplay; + } + get_text_wouvsm_k$() { + return this.text; + } + get_isInteractDisplay_b0o29z_k$() { + return this.isInteractDisplay; + } + component1_7eebsc_k$() { + return this.isFollowDisplay; + } + component2_7eebsb_k$() { + return this.text; + } + component3_7eebsa_k$() { + return this.isInteractDisplay; + } + copy_d4c5g_k$(isFollowDisplay, text, isInteractDisplay) { + return new KCovenanter_0(isFollowDisplay, text, isInteractDisplay); + } + copy(isFollowDisplay, text, isInteractDisplay, $super) { + isFollowDisplay = isFollowDisplay === VOID ? this.isFollowDisplay : isFollowDisplay; + text = text === VOID ? this.text : text; + isInteractDisplay = isInteractDisplay === VOID ? this.isInteractDisplay : isInteractDisplay; + return this.copy_d4c5g_k$(isFollowDisplay, text, isInteractDisplay); + } + toString() { + return 'KCovenanter(isFollowDisplay=' + this.isFollowDisplay + ', text=' + this.text + ', isInteractDisplay=' + this.isInteractDisplay + ')'; + } + hashCode() { + var result = this.isFollowDisplay; + result = imul(result, 31) + (this.text == null ? 0 : this.text.hashCode()) | 0; + result = imul(result, 31) + this.isInteractDisplay | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KCovenanter_0)) + return false; + var tmp0_other_with_cast = other instanceof KCovenanter_0 ? other : THROW_CCE(); + if (!(this.isFollowDisplay === tmp0_other_with_cast.isFollowDisplay)) + return false; + if (!equals(this.text, tmp0_other_with_cast.text)) + return false; + if (!(this.isInteractDisplay === tmp0_other_with_cast.isInteractDisplay)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KCovenanter_qqeqqs_k$(seen1, isFollowDisplay, text, isInteractDisplay, serializationConstructorMarker) { + Companion_instance_238; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_225().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.isFollowDisplay = 0; + else + $this.isFollowDisplay = isFollowDisplay; + if (0 === (seen1 & 2)) + $this.text = null; + else + $this.text = text; + if (0 === (seen1 & 4)) + $this.isInteractDisplay = 0; + else + $this.isInteractDisplay = isInteractDisplay; + return $this; + } + } + class Companion_239 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.ContractText'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_226(); + } + } + class $serializer_226 { + constructor() { + $serializer_instance_226 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KContractText', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('subtitle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KContractText.new_com_bapis_bilibili_app_viewunite_common_KContractText_keq0m9_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_6vx54p_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.subtitle === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.subtitle); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_6vx54p_k$(encoder, value instanceof KContractText ? value : THROW_CCE()); + } + } + class KContractText { + constructor(title, subtitle) { + Companion_instance_239; + title = title === VOID ? '' : title; + subtitle = subtitle === VOID ? '' : subtitle; + this.title = title; + this.subtitle = subtitle; + } + get_title_iz32un_k$() { + return this.title; + } + get_subtitle_55eoyp_k$() { + return this.subtitle; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.subtitle; + } + copy_plwnsl_k$(title, subtitle) { + return new KContractText(title, subtitle); + } + copy(title, subtitle, $super) { + title = title === VOID ? this.title : title; + subtitle = subtitle === VOID ? this.subtitle : subtitle; + return this.copy_plwnsl_k$(title, subtitle); + } + toString() { + return 'KContractText(title=' + this.title + ', subtitle=' + this.subtitle + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.subtitle) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KContractText)) + return false; + var tmp0_other_with_cast = other instanceof KContractText ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.subtitle === tmp0_other_with_cast.subtitle)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KContractText_keq0m9_k$(seen1, title, subtitle, serializationConstructorMarker) { + Companion_instance_239; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_226().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.subtitle = ''; + else + $this.subtitle = subtitle; + return $this; + } + } + class Companion_240 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.Audio.AudioInfoEntry'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_227(); + } + } + class $serializer_227 { + constructor() { + $serializer_instance_227 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KAudio.KAudioInfoEntry', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('key', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('value', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), get_nullable($serializer_getInstance_229())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_229(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_229(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KAudioInfoEntry.new_com_bapis_bilibili_app_viewunite_common_KAudio_KAudioInfoEntry_3m4rva_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_tzzlcj_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.key.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.key); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.value == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_229(), value.value); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_tzzlcj_k$(encoder, value instanceof KAudioInfoEntry ? value : THROW_CCE()); + } + } + class KAudioInfoEntry { + constructor(key, value) { + Companion_instance_240; + key = key === VOID ? new Long(0, 0) : key; + value = value === VOID ? null : value; + this.key = key; + this.value = value; + } + get_key_18j28a_k$() { + return this.key; + } + get_value_j01efc_k$() { + return this.value; + } + component1_7eebsc_k$() { + return this.key; + } + component2_7eebsb_k$() { + return this.value; + } + copy_gwcf1j_k$(key, value) { + return new KAudioInfoEntry(key, value); + } + copy(key, value, $super) { + key = key === VOID ? this.key : key; + value = value === VOID ? this.value : value; + return this.copy_gwcf1j_k$(key, value); + } + toString() { + return 'KAudioInfoEntry(key=' + this.key.toString() + ', value=' + this.value + ')'; + } + hashCode() { + var result = this.key.hashCode(); + result = imul(result, 31) + (this.value == null ? 0 : this.value.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KAudioInfoEntry)) + return false; + var tmp0_other_with_cast = other instanceof KAudioInfoEntry ? other : THROW_CCE(); + if (!this.key.equals(tmp0_other_with_cast.key)) + return false; + if (!equals(this.value, tmp0_other_with_cast.value)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KAudio_KAudioInfoEntry_3m4rva_k$(seen1, key, value, serializationConstructorMarker) { + Companion_instance_240; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_227().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.key = new Long(0, 0); + else + $this.key = key; + if (0 === (seen1 & 2)) + $this.value = null; + else + $this.value = value; + return $this; + } + } + class Companion_241 { + constructor() { + Companion_instance_241 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new LinkedHashMapSerializer(LongSerializer_getInstance(), get_nullable($serializer_getInstance_229()))]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.viewunite.common.Audio'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_228(); + } + } + class $serializer_228 { + constructor() { + $serializer_instance_228 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KAudio', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('audioInfo', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_241().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp6_cached = Companion_getInstance_241().$childSerializers_1; + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KAudio_0.new_com_bapis_bilibili_app_viewunite_common_KAudio_2hd3u7_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_ogt3t4_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_241().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.audioInfo, emptyMap())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.audioInfo); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_ogt3t4_k$(encoder, value instanceof KAudio_0 ? value : THROW_CCE()); + } + } + class KAudio_0 { + constructor(audioInfo) { + Companion_getInstance_241(); + audioInfo = audioInfo === VOID ? emptyMap() : audioInfo; + this.audioInfo = audioInfo; + } + get_audioInfo_bmdf5n_k$() { + return this.audioInfo; + } + component1_7eebsc_k$() { + return this.audioInfo; + } + copy_32xl4d_k$(audioInfo) { + return new KAudio_0(audioInfo); + } + copy(audioInfo, $super) { + audioInfo = audioInfo === VOID ? this.audioInfo : audioInfo; + return this.copy_32xl4d_k$(audioInfo); + } + toString() { + return 'KAudio(audioInfo=' + this.audioInfo + ')'; + } + hashCode() { + return hashCode(this.audioInfo); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KAudio_0)) + return false; + var tmp0_other_with_cast = other instanceof KAudio_0 ? other : THROW_CCE(); + if (!equals(this.audioInfo, tmp0_other_with_cast.audioInfo)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KAudio_2hd3u7_k$(seen1, audioInfo, serializationConstructorMarker) { + Companion_getInstance_241(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_228().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.audioInfo = emptyMap(); + else + $this.audioInfo = audioInfo; + return $this; + } + } + class Companion_242 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.AudioInfo'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_229(); + } + } + class $serializer_229 { + constructor() { + $serializer_instance_229 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KAudioInfo', this, 8); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('coverUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('songId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('playCount', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('replyCount', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('upperId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('entrance', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('songAttr', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = new Long(0, 0); + var tmp7_local3 = new Long(0, 0); + var tmp8_local4 = new Long(0, 0); + var tmp9_local5 = new Long(0, 0); + var tmp10_local6 = null; + var tmp11_local7 = new Long(0, 0); + var tmp12_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp12_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + } else + while (tmp1_flag) { + tmp2_index = tmp12_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp12_input.endStructure_1xqz0n_k$(tmp0_desc); + return KAudioInfo.new_com_bapis_bilibili_app_viewunite_common_KAudioInfo_8ob9j_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null); + } + serialize_nby7vu_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.coverUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.coverUrl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.songId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.songId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !value.playCount.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 3, value.playCount); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !value.replyCount.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 4, value.replyCount); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !value.upperId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 5, value.upperId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.entrance === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.entrance); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !value.songAttr.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 7, value.songAttr); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_nby7vu_k$(encoder, value instanceof KAudioInfo ? value : THROW_CCE()); + } + } + class KAudioInfo { + constructor(title, coverUrl, songId, playCount, replyCount, upperId, entrance, songAttr) { + Companion_instance_242; + title = title === VOID ? '' : title; + coverUrl = coverUrl === VOID ? '' : coverUrl; + songId = songId === VOID ? new Long(0, 0) : songId; + playCount = playCount === VOID ? new Long(0, 0) : playCount; + replyCount = replyCount === VOID ? new Long(0, 0) : replyCount; + upperId = upperId === VOID ? new Long(0, 0) : upperId; + entrance = entrance === VOID ? '' : entrance; + songAttr = songAttr === VOID ? new Long(0, 0) : songAttr; + this.title = title; + this.coverUrl = coverUrl; + this.songId = songId; + this.playCount = playCount; + this.replyCount = replyCount; + this.upperId = upperId; + this.entrance = entrance; + this.songAttr = songAttr; + } + get_title_iz32un_k$() { + return this.title; + } + get_coverUrl_xeqhhd_k$() { + return this.coverUrl; + } + get_songId_jkw7ix_k$() { + return this.songId; + } + get_playCount_mys226_k$() { + return this.playCount; + } + get_replyCount_top0ky_k$() { + return this.replyCount; + } + get_upperId_2fcolo_k$() { + return this.upperId; + } + get_entrance_4l8tq7_k$() { + return this.entrance; + } + get_songAttr_6f6cnl_k$() { + return this.songAttr; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.coverUrl; + } + component3_7eebsa_k$() { + return this.songId; + } + component4_7eebs9_k$() { + return this.playCount; + } + component5_7eebs8_k$() { + return this.replyCount; + } + component6_7eebs7_k$() { + return this.upperId; + } + component7_7eebs6_k$() { + return this.entrance; + } + component8_7eebs5_k$() { + return this.songAttr; + } + copy_7nhbyt_k$(title, coverUrl, songId, playCount, replyCount, upperId, entrance, songAttr) { + return new KAudioInfo(title, coverUrl, songId, playCount, replyCount, upperId, entrance, songAttr); + } + copy(title, coverUrl, songId, playCount, replyCount, upperId, entrance, songAttr, $super) { + title = title === VOID ? this.title : title; + coverUrl = coverUrl === VOID ? this.coverUrl : coverUrl; + songId = songId === VOID ? this.songId : songId; + playCount = playCount === VOID ? this.playCount : playCount; + replyCount = replyCount === VOID ? this.replyCount : replyCount; + upperId = upperId === VOID ? this.upperId : upperId; + entrance = entrance === VOID ? this.entrance : entrance; + songAttr = songAttr === VOID ? this.songAttr : songAttr; + return this.copy_7nhbyt_k$(title, coverUrl, songId, playCount, replyCount, upperId, entrance, songAttr); + } + toString() { + return 'KAudioInfo(title=' + this.title + ', coverUrl=' + this.coverUrl + ', songId=' + this.songId.toString() + ', playCount=' + this.playCount.toString() + ', replyCount=' + this.replyCount.toString() + ', upperId=' + this.upperId.toString() + ', entrance=' + this.entrance + ', songAttr=' + this.songAttr.toString() + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.coverUrl) | 0; + result = imul(result, 31) + this.songId.hashCode() | 0; + result = imul(result, 31) + this.playCount.hashCode() | 0; + result = imul(result, 31) + this.replyCount.hashCode() | 0; + result = imul(result, 31) + this.upperId.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.entrance) | 0; + result = imul(result, 31) + this.songAttr.hashCode() | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KAudioInfo)) + return false; + var tmp0_other_with_cast = other instanceof KAudioInfo ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.coverUrl === tmp0_other_with_cast.coverUrl)) + return false; + if (!this.songId.equals(tmp0_other_with_cast.songId)) + return false; + if (!this.playCount.equals(tmp0_other_with_cast.playCount)) + return false; + if (!this.replyCount.equals(tmp0_other_with_cast.replyCount)) + return false; + if (!this.upperId.equals(tmp0_other_with_cast.upperId)) + return false; + if (!(this.entrance === tmp0_other_with_cast.entrance)) + return false; + if (!this.songAttr.equals(tmp0_other_with_cast.songAttr)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KAudioInfo_8ob9j_k$(seen1, title, coverUrl, songId, playCount, replyCount, upperId, entrance, songAttr, serializationConstructorMarker) { + Companion_instance_242; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_229().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.coverUrl = ''; + else + $this.coverUrl = coverUrl; + if (0 === (seen1 & 4)) + $this.songId = new Long(0, 0); + else + $this.songId = songId; + if (0 === (seen1 & 8)) + $this.playCount = new Long(0, 0); + else + $this.playCount = playCount; + if (0 === (seen1 & 16)) + $this.replyCount = new Long(0, 0); + else + $this.replyCount = replyCount; + if (0 === (seen1 & 32)) + $this.upperId = new Long(0, 0); + else + $this.upperId = upperId; + if (0 === (seen1 & 64)) + $this.entrance = ''; + else + $this.entrance = entrance; + if (0 === (seen1 & 128)) + $this.songAttr = new Long(0, 0); + else + $this.songAttr = songAttr; + return $this; + } + } + class Companion_243 { + constructor() { + Companion_instance_243 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, new ArrayListSerializer($serializer_getInstance_233())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.viewunite.common.Banner'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_230(); + } + } + class $serializer_230 { + constructor() { + $serializer_instance_230 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KBanner', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('relateItem', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_243().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), tmp0_cached[1]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp7_cached = Companion_getInstance_243().$childSerializers_1; + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KBanner_2.new_com_bapis_bilibili_app_viewunite_common_KBanner_oar50p_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_380f7w_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_243().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !equals(value.relateItem, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 1, tmp2_cached[1], value.relateItem); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_380f7w_k$(encoder, value instanceof KBanner_2 ? value : THROW_CCE()); + } + } + class KBanner_2 { + constructor(title, relateItem) { + Companion_getInstance_243(); + title = title === VOID ? '' : title; + relateItem = relateItem === VOID ? emptyList() : relateItem; + this.title = title; + this.relateItem = relateItem; + } + get_title_iz32un_k$() { + return this.title; + } + get_relateItem_o6b7mz_k$() { + return this.relateItem; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.relateItem; + } + copy_7bir0i_k$(title, relateItem) { + return new KBanner_2(title, relateItem); + } + copy(title, relateItem, $super) { + title = title === VOID ? this.title : title; + relateItem = relateItem === VOID ? this.relateItem : relateItem; + return this.copy_7bir0i_k$(title, relateItem); + } + toString() { + return 'KBanner(title=' + this.title + ', relateItem=' + this.relateItem + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + hashCode(this.relateItem) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KBanner_2)) + return false; + var tmp0_other_with_cast = other instanceof KBanner_2 ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!equals(this.relateItem, tmp0_other_with_cast.relateItem)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KBanner_oar50p_k$(seen1, title, relateItem, serializationConstructorMarker) { + Companion_getInstance_243(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_230().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.relateItem = emptyList(); + else + $this.relateItem = relateItem; + return $this; + } + } + class Companion_244 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.ActBannerItem.ReportEntry'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_231(); + } + } + class $serializer_231 { + constructor() { + $serializer_instance_231 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KActBannerItem.KReportEntry', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('key', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('value', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KReportEntry.new_com_bapis_bilibili_app_viewunite_common_KActBannerItem_KReportEntry_ld6e7z_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_58z8ew_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.key === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.key); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.value === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.value); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_58z8ew_k$(encoder, value instanceof KReportEntry ? value : THROW_CCE()); + } + } + class KReportEntry { + constructor(key, value) { + Companion_instance_244; + key = key === VOID ? '' : key; + value = value === VOID ? '' : value; + this.key = key; + this.value = value; + } + get_key_18j28a_k$() { + return this.key; + } + get_value_j01efc_k$() { + return this.value; + } + component1_7eebsc_k$() { + return this.key; + } + component2_7eebsb_k$() { + return this.value; + } + copy_plwnsl_k$(key, value) { + return new KReportEntry(key, value); + } + copy(key, value, $super) { + key = key === VOID ? this.key : key; + value = value === VOID ? this.value : value; + return this.copy_plwnsl_k$(key, value); + } + toString() { + return 'KReportEntry(key=' + this.key + ', value=' + this.value + ')'; + } + hashCode() { + var result = getStringHashCode(this.key); + result = imul(result, 31) + getStringHashCode(this.value) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KReportEntry)) + return false; + var tmp0_other_with_cast = other instanceof KReportEntry ? other : THROW_CCE(); + if (!(this.key === tmp0_other_with_cast.key)) + return false; + if (!(this.value === tmp0_other_with_cast.value)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KActBannerItem_KReportEntry_ld6e7z_k$(seen1, key, value, serializationConstructorMarker) { + Companion_instance_244; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_231().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.key = ''; + else + $this.key = key; + if (0 === (seen1 & 2)) + $this.value = ''; + else + $this.value = value; + return $this; + } + } + class Companion_245 { + constructor() { + Companion_instance_245 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, new LinkedHashMapSerializer(StringSerializer_getInstance(), StringSerializer_getInstance())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.viewunite.common.ActBannerItem'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_232(); + } + } + class $serializer_232 { + constructor() { + $serializer_instance_232 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KActBannerItem', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('url', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('jumpType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('report', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_245().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), tmp0_cached[3]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = 0; + var tmp7_local3 = null; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp9_cached = Companion_getInstance_245().$childSerializers_1; + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 3, tmp9_cached[3], tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 3, tmp9_cached[3], tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KActBannerItem.new_com_bapis_bilibili_app_viewunite_common_KActBannerItem_n7vw2u_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_kwnopp_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_245().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.url === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.url); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.cover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.jumpType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.jumpType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !equals(value.report, emptyMap())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 3, tmp2_cached[3], value.report); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_kwnopp_k$(encoder, value instanceof KActBannerItem ? value : THROW_CCE()); + } + } + class KActBannerItem { + constructor(url, cover, jumpType, report) { + Companion_getInstance_245(); + url = url === VOID ? '' : url; + cover = cover === VOID ? '' : cover; + jumpType = jumpType === VOID ? 0 : jumpType; + report = report === VOID ? emptyMap() : report; + this.url = url; + this.cover = cover; + this.jumpType = jumpType; + this.report = report; + } + get_url_18iuii_k$() { + return this.url; + } + get_cover_ipug0e_k$() { + return this.cover; + } + get_jumpType_z060cx_k$() { + return this.jumpType; + } + get_report_iye43h_k$() { + return this.report; + } + jumpTypeEnum() { + return Companion_getInstance_215().fromValue(this.jumpType); + } + component1_7eebsc_k$() { + return this.url; + } + component2_7eebsb_k$() { + return this.cover; + } + component3_7eebsa_k$() { + return this.jumpType; + } + component4_7eebs9_k$() { + return this.report; + } + copy_yu1dbr_k$(url, cover, jumpType, report) { + return new KActBannerItem(url, cover, jumpType, report); + } + copy(url, cover, jumpType, report, $super) { + url = url === VOID ? this.url : url; + cover = cover === VOID ? this.cover : cover; + jumpType = jumpType === VOID ? this.jumpType : jumpType; + report = report === VOID ? this.report : report; + return this.copy_yu1dbr_k$(url, cover, jumpType, report); + } + toString() { + return 'KActBannerItem(url=' + this.url + ', cover=' + this.cover + ', jumpType=' + this.jumpType + ', report=' + this.report + ')'; + } + hashCode() { + var result = getStringHashCode(this.url); + result = imul(result, 31) + getStringHashCode(this.cover) | 0; + result = imul(result, 31) + this.jumpType | 0; + result = imul(result, 31) + hashCode(this.report) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KActBannerItem)) + return false; + var tmp0_other_with_cast = other instanceof KActBannerItem ? other : THROW_CCE(); + if (!(this.url === tmp0_other_with_cast.url)) + return false; + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + if (!(this.jumpType === tmp0_other_with_cast.jumpType)) + return false; + if (!equals(this.report, tmp0_other_with_cast.report)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KActBannerItem_n7vw2u_k$(seen1, url, cover, jumpType, report, serializationConstructorMarker) { + Companion_getInstance_245(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_232().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.url = ''; + else + $this.url = url; + if (0 === (seen1 & 2)) + $this.cover = ''; + else + $this.cover = cover; + if (0 === (seen1 & 4)) + $this.jumpType = 0; + else + $this.jumpType = jumpType; + if (0 === (seen1 & 8)) + $this.report = emptyMap(); + else + $this.report = report; + return $this; + } + } + class Companion_246 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.RelateItem'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_233(); + } + } + class $serializer_233 { + constructor() { + $serializer_instance_233 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KRelateItem', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('url', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('useDefaultBrowser', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), BooleanSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = false; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KRelateItem.new_com_bapis_bilibili_app_viewunite_common_KRelateItem_ywxv6v_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_gjnlik_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.url === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.url); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.cover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.useDefaultBrowser === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 2, value.useDefaultBrowser); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_gjnlik_k$(encoder, value instanceof KRelateItem ? value : THROW_CCE()); + } + } + class KRelateItem { + constructor(url, cover, useDefaultBrowser) { + Companion_instance_246; + url = url === VOID ? '' : url; + cover = cover === VOID ? '' : cover; + useDefaultBrowser = useDefaultBrowser === VOID ? false : useDefaultBrowser; + this.url = url; + this.cover = cover; + this.useDefaultBrowser = useDefaultBrowser; + } + get_url_18iuii_k$() { + return this.url; + } + get_cover_ipug0e_k$() { + return this.cover; + } + get_useDefaultBrowser_ywpg2j_k$() { + return this.useDefaultBrowser; + } + component1_7eebsc_k$() { + return this.url; + } + component2_7eebsb_k$() { + return this.cover; + } + component3_7eebsa_k$() { + return this.useDefaultBrowser; + } + copy_bp1kc0_k$(url, cover, useDefaultBrowser) { + return new KRelateItem(url, cover, useDefaultBrowser); + } + copy(url, cover, useDefaultBrowser, $super) { + url = url === VOID ? this.url : url; + cover = cover === VOID ? this.cover : cover; + useDefaultBrowser = useDefaultBrowser === VOID ? this.useDefaultBrowser : useDefaultBrowser; + return this.copy_bp1kc0_k$(url, cover, useDefaultBrowser); + } + toString() { + return 'KRelateItem(url=' + this.url + ', cover=' + this.cover + ', useDefaultBrowser=' + this.useDefaultBrowser + ')'; + } + hashCode() { + var result = getStringHashCode(this.url); + result = imul(result, 31) + getStringHashCode(this.cover) | 0; + result = imul(result, 31) + getBooleanHashCode(this.useDefaultBrowser) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KRelateItem)) + return false; + var tmp0_other_with_cast = other instanceof KRelateItem ? other : THROW_CCE(); + if (!(this.url === tmp0_other_with_cast.url)) + return false; + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + if (!(this.useDefaultBrowser === tmp0_other_with_cast.useDefaultBrowser)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KRelateItem_ywxv6v_k$(seen1, url, cover, useDefaultBrowser, serializationConstructorMarker) { + Companion_instance_246; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_233().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.url = ''; + else + $this.url = url; + if (0 === (seen1 & 2)) + $this.cover = ''; + else + $this.cover = cover; + if (0 === (seen1 & 4)) + $this.useDefaultBrowser = false; + else + $this.useDefaultBrowser = useDefaultBrowser; + return $this; + } + } + class Companion_247 { + constructor() { + Companion_instance_247 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer($serializer_getInstance_236())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.viewunite.common.ActivityEntranceModule'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_234(); + } + } + class $serializer_234 { + constructor() { + $serializer_instance_234 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KActivityEntranceModule', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('activityEntrance', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_247().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp6_cached = Companion_getInstance_247().$childSerializers_1; + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KActivityEntranceModule_0.new_com_bapis_bilibili_app_viewunite_common_KActivityEntranceModule_1kvci6_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_gaxy7b_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_247().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.activityEntrance, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.activityEntrance); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_gaxy7b_k$(encoder, value instanceof KActivityEntranceModule_0 ? value : THROW_CCE()); + } + } + class KActivityEntranceModule_0 { + constructor(activityEntrance) { + Companion_getInstance_247(); + activityEntrance = activityEntrance === VOID ? emptyList() : activityEntrance; + this.activityEntrance = activityEntrance; + } + get_activityEntrance_oxce36_k$() { + return this.activityEntrance; + } + component1_7eebsc_k$() { + return this.activityEntrance; + } + copy_trv4rd_k$(activityEntrance) { + return new KActivityEntranceModule_0(activityEntrance); + } + copy(activityEntrance, $super) { + activityEntrance = activityEntrance === VOID ? this.activityEntrance : activityEntrance; + return this.copy_trv4rd_k$(activityEntrance); + } + toString() { + return 'KActivityEntranceModule(activityEntrance=' + this.activityEntrance + ')'; + } + hashCode() { + return hashCode(this.activityEntrance); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KActivityEntranceModule_0)) + return false; + var tmp0_other_with_cast = other instanceof KActivityEntranceModule_0 ? other : THROW_CCE(); + if (!equals(this.activityEntrance, tmp0_other_with_cast.activityEntrance)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KActivityEntranceModule_1kvci6_k$(seen1, activityEntrance, serializationConstructorMarker) { + Companion_getInstance_247(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_234().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.activityEntrance = emptyList(); + else + $this.activityEntrance = activityEntrance; + return $this; + } + } + class Companion_248 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.ActivityEntrance.ReportEntry'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_235(); + } + } + class $serializer_235 { + constructor() { + $serializer_instance_235 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KActivityEntrance.KReportEntry', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('key', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('value', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KReportEntry_0.new_com_bapis_bilibili_app_viewunite_common_KActivityEntrance_KReportEntry_c57trj_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_ka6fxq_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.key === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.key); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.value === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.value); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_ka6fxq_k$(encoder, value instanceof KReportEntry_0 ? value : THROW_CCE()); + } + } + class KReportEntry_0 { + constructor(key, value) { + Companion_instance_248; + key = key === VOID ? '' : key; + value = value === VOID ? '' : value; + this.key = key; + this.value = value; + } + get_key_18j28a_k$() { + return this.key; + } + get_value_j01efc_k$() { + return this.value; + } + component1_7eebsc_k$() { + return this.key; + } + component2_7eebsb_k$() { + return this.value; + } + copy_plwnsl_k$(key, value) { + return new KReportEntry_0(key, value); + } + copy(key, value, $super) { + key = key === VOID ? this.key : key; + value = value === VOID ? this.value : value; + return this.copy_plwnsl_k$(key, value); + } + toString() { + return 'KReportEntry(key=' + this.key + ', value=' + this.value + ')'; + } + hashCode() { + var result = getStringHashCode(this.key); + result = imul(result, 31) + getStringHashCode(this.value) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KReportEntry_0)) + return false; + var tmp0_other_with_cast = other instanceof KReportEntry_0 ? other : THROW_CCE(); + if (!(this.key === tmp0_other_with_cast.key)) + return false; + if (!(this.value === tmp0_other_with_cast.value)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KActivityEntrance_KReportEntry_c57trj_k$(seen1, key, value, serializationConstructorMarker) { + Companion_instance_248; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_235().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.key = ''; + else + $this.key = key; + if (0 === (seen1 & 2)) + $this.value = ''; + else + $this.value = value; + return $this; + } + } + class Companion_249 { + constructor() { + Companion_instance_249 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, null, null, null, null, null, new ArrayListSerializer($serializer_getInstance_363()), new LinkedHashMapSerializer(StringSerializer_getInstance(), StringSerializer_getInstance())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.viewunite.common.ActivityEntrance'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_236(); + } + } + class $serializer_236 { + constructor() { + $serializer_instance_236 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KActivityEntrance', this, 10); + tmp0_serialDesc.addElement_5pzumi_k$('activityCover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('activityTitle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('wordTag', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('activitySubtitle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('activityLink', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('activityType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('reserveId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('status', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('upperList', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('report', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_249().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), tmp0_cached[8], tmp0_cached[9]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = 0; + var tmp10_local6 = 0; + var tmp11_local7 = 0; + var tmp12_local8 = null; + var tmp13_local9 = null; + var tmp14_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp15_cached = Companion_getInstance_249().$childSerializers_1; + if (tmp14_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp14_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 8, tmp15_cached[8], tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp14_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 9, tmp15_cached[9], tmp13_local9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + } else + while (tmp1_flag) { + tmp2_index = tmp14_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp14_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 8, tmp15_cached[8], tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp14_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 9, tmp15_cached[9], tmp13_local9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp14_input.endStructure_1xqz0n_k$(tmp0_desc); + return KActivityEntrance.new_com_bapis_bilibili_app_viewunite_common_KActivityEntrance_cfni4_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, null); + } + serialize_69p6z1_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_249().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.activityCover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.activityCover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.activityTitle === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.activityTitle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.wordTag === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.wordTag); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.activitySubtitle === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.activitySubtitle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.activityLink === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.activityLink); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.activityType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 5, value.activityType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.reserveId === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 6, value.reserveId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.status === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 7, value.status); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !equals(value.upperList, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 8, tmp2_cached[8], value.upperList); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !equals(value.report, emptyMap())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 9, tmp2_cached[9], value.report); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_69p6z1_k$(encoder, value instanceof KActivityEntrance ? value : THROW_CCE()); + } + } + class KActivityEntrance { + constructor(activityCover, activityTitle, wordTag, activitySubtitle, activityLink, activityType, reserveId, status, upperList, report) { + Companion_getInstance_249(); + activityCover = activityCover === VOID ? '' : activityCover; + activityTitle = activityTitle === VOID ? '' : activityTitle; + wordTag = wordTag === VOID ? '' : wordTag; + activitySubtitle = activitySubtitle === VOID ? '' : activitySubtitle; + activityLink = activityLink === VOID ? '' : activityLink; + activityType = activityType === VOID ? 0 : activityType; + reserveId = reserveId === VOID ? 0 : reserveId; + status = status === VOID ? 0 : status; + upperList = upperList === VOID ? emptyList() : upperList; + report = report === VOID ? emptyMap() : report; + this.activityCover = activityCover; + this.activityTitle = activityTitle; + this.wordTag = wordTag; + this.activitySubtitle = activitySubtitle; + this.activityLink = activityLink; + this.activityType = activityType; + this.reserveId = reserveId; + this.status = status; + this.upperList = upperList; + this.report = report; + } + get_activityCover_is494x_k$() { + return this.activityCover; + } + get_activityTitle_iivmao_k$() { + return this.activityTitle; + } + get_wordTag_qhglzb_k$() { + return this.wordTag; + } + get_activitySubtitle_od6iuo_k$() { + return this.activitySubtitle; + } + get_activityLink_vh65f6_k$() { + return this.activityLink; + } + get_activityType_vhbl82_k$() { + return this.activityType; + } + get_reserveId_t26awi_k$() { + return this.reserveId; + } + get_status_jnf6d7_k$() { + return this.status; + } + get_upperList_c776bb_k$() { + return this.upperList; + } + get_report_iye43h_k$() { + return this.report; + } + component1_7eebsc_k$() { + return this.activityCover; + } + component2_7eebsb_k$() { + return this.activityTitle; + } + component3_7eebsa_k$() { + return this.wordTag; + } + component4_7eebs9_k$() { + return this.activitySubtitle; + } + component5_7eebs8_k$() { + return this.activityLink; + } + component6_7eebs7_k$() { + return this.activityType; + } + component7_7eebs6_k$() { + return this.reserveId; + } + component8_7eebs5_k$() { + return this.status; + } + component9_7eebs4_k$() { + return this.upperList; + } + component10_gazzfo_k$() { + return this.report; + } + copy_u0sbz3_k$(activityCover, activityTitle, wordTag, activitySubtitle, activityLink, activityType, reserveId, status, upperList, report) { + return new KActivityEntrance(activityCover, activityTitle, wordTag, activitySubtitle, activityLink, activityType, reserveId, status, upperList, report); + } + copy(activityCover, activityTitle, wordTag, activitySubtitle, activityLink, activityType, reserveId, status, upperList, report, $super) { + activityCover = activityCover === VOID ? this.activityCover : activityCover; + activityTitle = activityTitle === VOID ? this.activityTitle : activityTitle; + wordTag = wordTag === VOID ? this.wordTag : wordTag; + activitySubtitle = activitySubtitle === VOID ? this.activitySubtitle : activitySubtitle; + activityLink = activityLink === VOID ? this.activityLink : activityLink; + activityType = activityType === VOID ? this.activityType : activityType; + reserveId = reserveId === VOID ? this.reserveId : reserveId; + status = status === VOID ? this.status : status; + upperList = upperList === VOID ? this.upperList : upperList; + report = report === VOID ? this.report : report; + return this.copy_u0sbz3_k$(activityCover, activityTitle, wordTag, activitySubtitle, activityLink, activityType, reserveId, status, upperList, report); + } + toString() { + return 'KActivityEntrance(activityCover=' + this.activityCover + ', activityTitle=' + this.activityTitle + ', wordTag=' + this.wordTag + ', activitySubtitle=' + this.activitySubtitle + ', activityLink=' + this.activityLink + ', activityType=' + this.activityType + ', reserveId=' + this.reserveId + ', status=' + this.status + ', upperList=' + this.upperList + ', report=' + this.report + ')'; + } + hashCode() { + var result = getStringHashCode(this.activityCover); + result = imul(result, 31) + getStringHashCode(this.activityTitle) | 0; + result = imul(result, 31) + getStringHashCode(this.wordTag) | 0; + result = imul(result, 31) + getStringHashCode(this.activitySubtitle) | 0; + result = imul(result, 31) + getStringHashCode(this.activityLink) | 0; + result = imul(result, 31) + this.activityType | 0; + result = imul(result, 31) + this.reserveId | 0; + result = imul(result, 31) + this.status | 0; + result = imul(result, 31) + hashCode(this.upperList) | 0; + result = imul(result, 31) + hashCode(this.report) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KActivityEntrance)) + return false; + var tmp0_other_with_cast = other instanceof KActivityEntrance ? other : THROW_CCE(); + if (!(this.activityCover === tmp0_other_with_cast.activityCover)) + return false; + if (!(this.activityTitle === tmp0_other_with_cast.activityTitle)) + return false; + if (!(this.wordTag === tmp0_other_with_cast.wordTag)) + return false; + if (!(this.activitySubtitle === tmp0_other_with_cast.activitySubtitle)) + return false; + if (!(this.activityLink === tmp0_other_with_cast.activityLink)) + return false; + if (!(this.activityType === tmp0_other_with_cast.activityType)) + return false; + if (!(this.reserveId === tmp0_other_with_cast.reserveId)) + return false; + if (!(this.status === tmp0_other_with_cast.status)) + return false; + if (!equals(this.upperList, tmp0_other_with_cast.upperList)) + return false; + if (!equals(this.report, tmp0_other_with_cast.report)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KActivityEntrance_cfni4_k$(seen1, activityCover, activityTitle, wordTag, activitySubtitle, activityLink, activityType, reserveId, status, upperList, report, serializationConstructorMarker) { + Companion_getInstance_249(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_236().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.activityCover = ''; + else + $this.activityCover = activityCover; + if (0 === (seen1 & 2)) + $this.activityTitle = ''; + else + $this.activityTitle = activityTitle; + if (0 === (seen1 & 4)) + $this.wordTag = ''; + else + $this.wordTag = wordTag; + if (0 === (seen1 & 8)) + $this.activitySubtitle = ''; + else + $this.activitySubtitle = activitySubtitle; + if (0 === (seen1 & 16)) + $this.activityLink = ''; + else + $this.activityLink = activityLink; + if (0 === (seen1 & 32)) + $this.activityType = 0; + else + $this.activityType = activityType; + if (0 === (seen1 & 64)) + $this.reserveId = 0; + else + $this.reserveId = reserveId; + if (0 === (seen1 & 128)) + $this.status = 0; + else + $this.status = status; + if (0 === (seen1 & 256)) + $this.upperList = emptyList(); + else + $this.upperList = upperList; + if (0 === (seen1 & 512)) + $this.report = emptyMap(); + else + $this.report = report; + return $this; + } + } + class Companion_250 { + constructor() { + Companion_instance_250 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, new ArrayListSerializer($serializer_getInstance_239()), null, null, new ArrayListSerializer($serializer_getInstance_294()), new ArrayListSerializer($serializer_getInstance_295())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.viewunite.common.Sponsor'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_237(); + } + } + class $serializer_237 { + constructor() { + $serializer_instance_237 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KSponsor', this, 7); + tmp0_serialDesc.addElement_5pzumi_k$('total', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('week', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('rankList', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('mine', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('pointActivity', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('pendants', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('threshold', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_250().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), LongSerializer_getInstance(), tmp0_cached[2], get_nullable($serializer_getInstance_240()), get_nullable($serializer_getInstance_238()), tmp0_cached[5], tmp0_cached[6]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = new Long(0, 0); + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp12_cached = Companion_getInstance_250().$childSerializers_1; + if (tmp11_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp11_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp12_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_240(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_238(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp11_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 5, tmp12_cached[5], tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp11_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 6, tmp12_cached[6], tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + } else + while (tmp1_flag) { + tmp2_index = tmp11_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp11_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp12_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_240(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_238(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp11_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 5, tmp12_cached[5], tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp11_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 6, tmp12_cached[6], tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp11_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSponsor_0.new_com_bapis_bilibili_app_viewunite_common_KSponsor_zb8q7b_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, null); + } + serialize_tw1rf0_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_250().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.total.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.total); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.week.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.week); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !equals(value.rankList, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 2, tmp2_cached[2], value.rankList); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.mine == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_240(), value.mine); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.pointActivity == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, $serializer_getInstance_238(), value.pointActivity); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !equals(value.pendants, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 5, tmp2_cached[5], value.pendants); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !equals(value.threshold, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 6, tmp2_cached[6], value.threshold); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_tw1rf0_k$(encoder, value instanceof KSponsor_0 ? value : THROW_CCE()); + } + } + class KSponsor_0 { + constructor(total, week, rankList, mine, pointActivity, pendants, threshold) { + Companion_getInstance_250(); + total = total === VOID ? new Long(0, 0) : total; + week = week === VOID ? new Long(0, 0) : week; + rankList = rankList === VOID ? emptyList() : rankList; + mine = mine === VOID ? null : mine; + pointActivity = pointActivity === VOID ? null : pointActivity; + pendants = pendants === VOID ? emptyList() : pendants; + threshold = threshold === VOID ? emptyList() : threshold; + this.total = total; + this.week = week; + this.rankList = rankList; + this.mine = mine; + this.pointActivity = pointActivity; + this.pendants = pendants; + this.threshold = threshold; + } + get_total_iz6wij_k$() { + return this.total; + } + get_week_wowsal_k$() { + return this.week; + } + get_rankList_rkmnv1_k$() { + return this.rankList; + } + get_mine_woqhlo_k$() { + return this.mine; + } + get_pointActivity_y9q5pm_k$() { + return this.pointActivity; + } + get_pendants_qlrisg_k$() { + return this.pendants; + } + get_threshold_h1m4hq_k$() { + return this.threshold; + } + component1_7eebsc_k$() { + return this.total; + } + component2_7eebsb_k$() { + return this.week; + } + component3_7eebsa_k$() { + return this.rankList; + } + component4_7eebs9_k$() { + return this.mine; + } + component5_7eebs8_k$() { + return this.pointActivity; + } + component6_7eebs7_k$() { + return this.pendants; + } + component7_7eebs6_k$() { + return this.threshold; + } + copy_o837ir_k$(total, week, rankList, mine, pointActivity, pendants, threshold) { + return new KSponsor_0(total, week, rankList, mine, pointActivity, pendants, threshold); + } + copy(total, week, rankList, mine, pointActivity, pendants, threshold, $super) { + total = total === VOID ? this.total : total; + week = week === VOID ? this.week : week; + rankList = rankList === VOID ? this.rankList : rankList; + mine = mine === VOID ? this.mine : mine; + pointActivity = pointActivity === VOID ? this.pointActivity : pointActivity; + pendants = pendants === VOID ? this.pendants : pendants; + threshold = threshold === VOID ? this.threshold : threshold; + return this.copy_o837ir_k$(total, week, rankList, mine, pointActivity, pendants, threshold); + } + toString() { + return 'KSponsor(total=' + this.total.toString() + ', week=' + this.week.toString() + ', rankList=' + this.rankList + ', mine=' + this.mine + ', pointActivity=' + this.pointActivity + ', pendants=' + this.pendants + ', threshold=' + this.threshold + ')'; + } + hashCode() { + var result = this.total.hashCode(); + result = imul(result, 31) + this.week.hashCode() | 0; + result = imul(result, 31) + hashCode(this.rankList) | 0; + result = imul(result, 31) + (this.mine == null ? 0 : this.mine.hashCode()) | 0; + result = imul(result, 31) + (this.pointActivity == null ? 0 : this.pointActivity.hashCode()) | 0; + result = imul(result, 31) + hashCode(this.pendants) | 0; + result = imul(result, 31) + hashCode(this.threshold) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSponsor_0)) + return false; + var tmp0_other_with_cast = other instanceof KSponsor_0 ? other : THROW_CCE(); + if (!this.total.equals(tmp0_other_with_cast.total)) + return false; + if (!this.week.equals(tmp0_other_with_cast.week)) + return false; + if (!equals(this.rankList, tmp0_other_with_cast.rankList)) + return false; + if (!equals(this.mine, tmp0_other_with_cast.mine)) + return false; + if (!equals(this.pointActivity, tmp0_other_with_cast.pointActivity)) + return false; + if (!equals(this.pendants, tmp0_other_with_cast.pendants)) + return false; + if (!equals(this.threshold, tmp0_other_with_cast.threshold)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KSponsor_zb8q7b_k$(seen1, total, week, rankList, mine, pointActivity, pendants, threshold, serializationConstructorMarker) { + Companion_getInstance_250(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_237().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.total = new Long(0, 0); + else + $this.total = total; + if (0 === (seen1 & 2)) + $this.week = new Long(0, 0); + else + $this.week = week; + if (0 === (seen1 & 4)) + $this.rankList = emptyList(); + else + $this.rankList = rankList; + if (0 === (seen1 & 8)) + $this.mine = null; + else + $this.mine = mine; + if (0 === (seen1 & 16)) + $this.pointActivity = null; + else + $this.pointActivity = pointActivity; + if (0 === (seen1 & 32)) + $this.pendants = emptyList(); + else + $this.pendants = pendants; + if (0 === (seen1 & 64)) + $this.threshold = emptyList(); + else + $this.threshold = threshold; + return $this; + } + } + class Companion_251 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.PointActivity'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_238(); + } + } + class $serializer_238 { + constructor() { + $serializer_instance_238 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KPointActivity', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('tip', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('content', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('link', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KPointActivity.new_com_bapis_bilibili_app_viewunite_common_KPointActivity_l26t5i_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_8fp6vl_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.tip === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.tip); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.content === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.content); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.link === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.link); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_8fp6vl_k$(encoder, value instanceof KPointActivity ? value : THROW_CCE()); + } + } + class KPointActivity { + constructor(tip, content, link) { + Companion_instance_251; + tip = tip === VOID ? '' : tip; + content = content === VOID ? '' : content; + link = link === VOID ? '' : link; + this.tip = tip; + this.content = content; + this.link = link; + } + get_tip_18ivgu_k$() { + return this.tip; + } + get_content_h02jrk_k$() { + return this.content; + } + get_link_wopumb_k$() { + return this.link; + } + component1_7eebsc_k$() { + return this.tip; + } + component2_7eebsb_k$() { + return this.content; + } + component3_7eebsa_k$() { + return this.link; + } + copy_nc7k0r_k$(tip, content, link) { + return new KPointActivity(tip, content, link); + } + copy(tip, content, link, $super) { + tip = tip === VOID ? this.tip : tip; + content = content === VOID ? this.content : content; + link = link === VOID ? this.link : link; + return this.copy_nc7k0r_k$(tip, content, link); + } + toString() { + return 'KPointActivity(tip=' + this.tip + ', content=' + this.content + ', link=' + this.link + ')'; + } + hashCode() { + var result = getStringHashCode(this.tip); + result = imul(result, 31) + getStringHashCode(this.content) | 0; + result = imul(result, 31) + getStringHashCode(this.link) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KPointActivity)) + return false; + var tmp0_other_with_cast = other instanceof KPointActivity ? other : THROW_CCE(); + if (!(this.tip === tmp0_other_with_cast.tip)) + return false; + if (!(this.content === tmp0_other_with_cast.content)) + return false; + if (!(this.link === tmp0_other_with_cast.link)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KPointActivity_l26t5i_k$(seen1, tip, content, link, serializationConstructorMarker) { + Companion_instance_251; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_238().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.tip = ''; + else + $this.tip = tip; + if (0 === (seen1 & 2)) + $this.content = ''; + else + $this.content = content; + if (0 === (seen1 & 4)) + $this.link = ''; + else + $this.link = link; + return $this; + } + } + class Companion_252 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.SponsorRank'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_239(); + } + } + class $serializer_239 { + constructor() { + $serializer_instance_239 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KSponsorRank', this, 5); + tmp0_serialDesc.addElement_5pzumi_k$('uid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('msg', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('uname', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('face', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('vip', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_322())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp9_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_322(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + } else + while (tmp1_flag) { + tmp2_index = tmp9_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_322(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp9_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSponsorRank.new_com_bapis_bilibili_app_viewunite_common_KSponsorRank_q18k7i_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); + } + serialize_2kxa3c_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.uid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.uid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.msg === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.msg); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.uname === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.uname); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.face === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.face); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.vip == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, $serializer_getInstance_322(), value.vip); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_2kxa3c_k$(encoder, value instanceof KSponsorRank ? value : THROW_CCE()); + } + } + class KSponsorRank { + constructor(uid, msg, uname, face, vip) { + Companion_instance_252; + uid = uid === VOID ? new Long(0, 0) : uid; + msg = msg === VOID ? '' : msg; + uname = uname === VOID ? '' : uname; + face = face === VOID ? '' : face; + vip = vip === VOID ? null : vip; + this.uid = uid; + this.msg = msg; + this.uname = uname; + this.face = face; + this.vip = vip; + } + get_uid_18iuqh_k$() { + return this.uid; + } + get_msg_18j0fc_k$() { + return this.msg; + } + get_uname_izpobb_k$() { + return this.uname; + } + get_face_woluhy_k$() { + return this.face; + } + get_vip_18itzg_k$() { + return this.vip; + } + component1_7eebsc_k$() { + return this.uid; + } + component2_7eebsb_k$() { + return this.msg; + } + component3_7eebsa_k$() { + return this.uname; + } + component4_7eebs9_k$() { + return this.face; + } + component5_7eebs8_k$() { + return this.vip; + } + copy_8wf3u4_k$(uid, msg, uname, face, vip) { + return new KSponsorRank(uid, msg, uname, face, vip); + } + copy(uid, msg, uname, face, vip, $super) { + uid = uid === VOID ? this.uid : uid; + msg = msg === VOID ? this.msg : msg; + uname = uname === VOID ? this.uname : uname; + face = face === VOID ? this.face : face; + vip = vip === VOID ? this.vip : vip; + return this.copy_8wf3u4_k$(uid, msg, uname, face, vip); + } + toString() { + return 'KSponsorRank(uid=' + this.uid.toString() + ', msg=' + this.msg + ', uname=' + this.uname + ', face=' + this.face + ', vip=' + this.vip + ')'; + } + hashCode() { + var result = this.uid.hashCode(); + result = imul(result, 31) + getStringHashCode(this.msg) | 0; + result = imul(result, 31) + getStringHashCode(this.uname) | 0; + result = imul(result, 31) + getStringHashCode(this.face) | 0; + result = imul(result, 31) + (this.vip == null ? 0 : this.vip.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSponsorRank)) + return false; + var tmp0_other_with_cast = other instanceof KSponsorRank ? other : THROW_CCE(); + if (!this.uid.equals(tmp0_other_with_cast.uid)) + return false; + if (!(this.msg === tmp0_other_with_cast.msg)) + return false; + if (!(this.uname === tmp0_other_with_cast.uname)) + return false; + if (!(this.face === tmp0_other_with_cast.face)) + return false; + if (!equals(this.vip, tmp0_other_with_cast.vip)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KSponsorRank_q18k7i_k$(seen1, uid, msg, uname, face, vip, serializationConstructorMarker) { + Companion_instance_252; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_239().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.uid = new Long(0, 0); + else + $this.uid = uid; + if (0 === (seen1 & 2)) + $this.msg = ''; + else + $this.msg = msg; + if (0 === (seen1 & 4)) + $this.uname = ''; + else + $this.uname = uname; + if (0 === (seen1 & 8)) + $this.face = ''; + else + $this.face = face; + if (0 === (seen1 & 16)) + $this.vip = null; + else + $this.vip = vip; + return $this; + } + } + class Companion_253 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.Mine'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_240(); + } + } + class $serializer_240 { + constructor() { + $serializer_instance_240 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KMine', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('amount', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('rank', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('msg', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [DoubleSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0.0; + var tmp5_local1 = 0; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeDoubleElement_isei84_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeDoubleElement_isei84_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KMine.new_com_bapis_bilibili_app_viewunite_common_KMine_mlcxdy_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_36xauz_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.amount, 0.0)) { + tmp1_output.encodeDoubleElement_a6rqhe_k$(tmp0_desc, 0, value.amount); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.rank === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.rank); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.msg === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.msg); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_36xauz_k$(encoder, value instanceof KMine ? value : THROW_CCE()); + } + } + class KMine { + constructor(amount, rank, msg) { + Companion_instance_253; + amount = amount === VOID ? 0.0 : amount; + rank = rank === VOID ? 0 : rank; + msg = msg === VOID ? '' : msg; + this.amount = amount; + this.rank = rank; + this.msg = msg; + } + get_amount_b10di9_k$() { + return this.amount; + } + get_rank_wotilx_k$() { + return this.rank; + } + get_msg_18j0fc_k$() { + return this.msg; + } + component1_7eebsc_k$() { + return this.amount; + } + component2_7eebsb_k$() { + return this.rank; + } + component3_7eebsa_k$() { + return this.msg; + } + copy_b0yp65_k$(amount, rank, msg) { + return new KMine(amount, rank, msg); + } + copy(amount, rank, msg, $super) { + amount = amount === VOID ? this.amount : amount; + rank = rank === VOID ? this.rank : rank; + msg = msg === VOID ? this.msg : msg; + return this.copy_b0yp65_k$(amount, rank, msg); + } + toString() { + return 'KMine(amount=' + this.amount + ', rank=' + this.rank + ', msg=' + this.msg + ')'; + } + hashCode() { + var result = getNumberHashCode(this.amount); + result = imul(result, 31) + this.rank | 0; + result = imul(result, 31) + getStringHashCode(this.msg) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KMine)) + return false; + var tmp0_other_with_cast = other instanceof KMine ? other : THROW_CCE(); + if (!equals(this.amount, tmp0_other_with_cast.amount)) + return false; + if (!(this.rank === tmp0_other_with_cast.rank)) + return false; + if (!(this.msg === tmp0_other_with_cast.msg)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KMine_mlcxdy_k$(seen1, amount, rank, msg, serializationConstructorMarker) { + Companion_instance_253; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_240().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.amount = 0.0; + else + $this.amount = amount; + if (0 === (seen1 & 2)) + $this.rank = 0; + else + $this.rank = rank; + if (0 === (seen1 & 4)) + $this.msg = ''; + else + $this.msg = msg; + return $this; + } + } + class Companion_254 { + constructor() { + Companion_instance_254 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer($serializer_getInstance_243()), null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.viewunite.common.Relates'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_241(); + } + } + class $serializer_241 { + constructor() { + $serializer_instance_241 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KRelates', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('cards', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('config', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_254().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0], get_nullable($serializer_getInstance_242())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp7_cached = Companion_getInstance_254().$childSerializers_1; + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp7_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_242(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp7_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_242(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KRelates_0.new_com_bapis_bilibili_app_viewunite_common_KRelates_rvpwuk_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_s282ss_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_254().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.cards, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.cards); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.config == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_242(), value.config); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_s282ss_k$(encoder, value instanceof KRelates_0 ? value : THROW_CCE()); + } + } + class KRelates_0 { + constructor(cards, config) { + Companion_getInstance_254(); + cards = cards === VOID ? emptyList() : cards; + config = config === VOID ? null : config; + this.cards = cards; + this.config = config; + } + get_cards_iplf7e_k$() { + return this.cards; + } + get_config_c0698r_k$() { + return this.config; + } + component1_7eebsc_k$() { + return this.cards; + } + component2_7eebsb_k$() { + return this.config; + } + copy_pmg7rc_k$(cards, config) { + return new KRelates_0(cards, config); + } + copy(cards, config, $super) { + cards = cards === VOID ? this.cards : cards; + config = config === VOID ? this.config : config; + return this.copy_pmg7rc_k$(cards, config); + } + toString() { + return 'KRelates(cards=' + this.cards + ', config=' + this.config + ')'; + } + hashCode() { + var result = hashCode(this.cards); + result = imul(result, 31) + (this.config == null ? 0 : this.config.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KRelates_0)) + return false; + var tmp0_other_with_cast = other instanceof KRelates_0 ? other : THROW_CCE(); + if (!equals(this.cards, tmp0_other_with_cast.cards)) + return false; + if (!equals(this.config, tmp0_other_with_cast.config)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KRelates_rvpwuk_k$(seen1, cards, config, serializationConstructorMarker) { + Companion_getInstance_254(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_241().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.cards = emptyList(); + else + $this.cards = cards; + if (0 === (seen1 & 2)) + $this.config = null; + else + $this.config = config; + return $this; + } + } + class Companion_255 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.RelateConfig'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_242(); + } + } + class $serializer_242 { + constructor() { + $serializer_instance_242 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KRelateConfig', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('validShowM', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('validShowN', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('pagination', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('canLoadMore', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable($serializer_getInstance_195()), BooleanSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = new Long(0, 0); + var tmp6_local2 = null; + var tmp7_local3 = false; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_195(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_195(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KRelateConfig.new_com_bapis_bilibili_app_viewunite_common_KRelateConfig_r2ads4_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_9p2v4t_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.validShowM.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.validShowM); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.validShowN.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.validShowN); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.pagination == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_195(), value.pagination); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.canLoadMore === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 3, value.canLoadMore); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_9p2v4t_k$(encoder, value instanceof KRelateConfig ? value : THROW_CCE()); + } + } + class KRelateConfig { + constructor(validShowM, validShowN, pagination, canLoadMore) { + Companion_instance_255; + validShowM = validShowM === VOID ? new Long(0, 0) : validShowM; + validShowN = validShowN === VOID ? new Long(0, 0) : validShowN; + pagination = pagination === VOID ? null : pagination; + canLoadMore = canLoadMore === VOID ? false : canLoadMore; + this.validShowM = validShowM; + this.validShowN = validShowN; + this.pagination = pagination; + this.canLoadMore = canLoadMore; + } + get_validShowM_l43fhf_k$() { + return this.validShowM; + } + get_validShowN_l43fhe_k$() { + return this.validShowN; + } + get_pagination_1aczdv_k$() { + return this.pagination; + } + get_canLoadMore_yukiqq_k$() { + return this.canLoadMore; + } + component1_7eebsc_k$() { + return this.validShowM; + } + component2_7eebsb_k$() { + return this.validShowN; + } + component3_7eebsa_k$() { + return this.pagination; + } + component4_7eebs9_k$() { + return this.canLoadMore; + } + copy_plx3a2_k$(validShowM, validShowN, pagination, canLoadMore) { + return new KRelateConfig(validShowM, validShowN, pagination, canLoadMore); + } + copy(validShowM, validShowN, pagination, canLoadMore, $super) { + validShowM = validShowM === VOID ? this.validShowM : validShowM; + validShowN = validShowN === VOID ? this.validShowN : validShowN; + pagination = pagination === VOID ? this.pagination : pagination; + canLoadMore = canLoadMore === VOID ? this.canLoadMore : canLoadMore; + return this.copy_plx3a2_k$(validShowM, validShowN, pagination, canLoadMore); + } + toString() { + return 'KRelateConfig(validShowM=' + this.validShowM.toString() + ', validShowN=' + this.validShowN.toString() + ', pagination=' + this.pagination + ', canLoadMore=' + this.canLoadMore + ')'; + } + hashCode() { + var result = this.validShowM.hashCode(); + result = imul(result, 31) + this.validShowN.hashCode() | 0; + result = imul(result, 31) + (this.pagination == null ? 0 : this.pagination.hashCode()) | 0; + result = imul(result, 31) + getBooleanHashCode(this.canLoadMore) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KRelateConfig)) + return false; + var tmp0_other_with_cast = other instanceof KRelateConfig ? other : THROW_CCE(); + if (!this.validShowM.equals(tmp0_other_with_cast.validShowM)) + return false; + if (!this.validShowN.equals(tmp0_other_with_cast.validShowN)) + return false; + if (!equals(this.pagination, tmp0_other_with_cast.pagination)) + return false; + if (!(this.canLoadMore === tmp0_other_with_cast.canLoadMore)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KRelateConfig_r2ads4_k$(seen1, validShowM, validShowN, pagination, canLoadMore, serializationConstructorMarker) { + Companion_instance_255; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_242().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.validShowM = new Long(0, 0); + else + $this.validShowM = validShowM; + if (0 === (seen1 & 2)) + $this.validShowN = new Long(0, 0); + else + $this.validShowN = validShowN; + if (0 === (seen1 & 4)) + $this.pagination = null; + else + $this.pagination = pagination; + if (0 === (seen1 & 8)) + $this.canLoadMore = false; + else + $this.canLoadMore = canLoadMore; + return $this; + } + } + class KCard { + constructor(value) { + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + } + class KAv extends KCard { + constructor() { + KAv_instance = null; + super(0); + KAv_instance = this; + } + } + class KBangumi extends KCard { + constructor() { + KBangumi_instance = null; + super(1); + KBangumi_instance = this; + } + } + class KResource extends KCard { + constructor() { + KResource_instance = null; + super(2); + KResource_instance = this; + } + } + class KGame extends KCard { + constructor() { + KGame_instance = null; + super(3); + KGame_instance = this; + } + } + class KCm extends KCard { + constructor() { + KCm_instance = null; + super(4); + KCm_instance = this; + } + } + class KLive extends KCard { + constructor() { + KLive_instance = null; + super(5); + KLive_instance = this; + } + } + class KBangumiAv extends KCard { + constructor() { + KBangumiAv_instance = null; + super(6); + KBangumiAv_instance = this; + } + } + class KAiCard extends KCard { + constructor() { + KAiCard_instance = null; + super(7); + KAiCard_instance = this; + } + } + class KBangumiUgc extends KCard { + constructor() { + KBangumiUgc_instance = null; + super(8); + KBangumiUgc_instance = this; + } + } + class KSpecial extends KCard { + constructor() { + KSpecial_instance = null; + super(9); + KSpecial_instance = this; + } + } + class KCourse extends KCard { + constructor() { + KCourse_instance = null; + super(10); + KCourse_instance = this; + } + } + class Companion_256 { + constructor() { + Companion_instance_256 = this; + var tmp = this; + tmp.cardValues$delegate_1 = lazy_0(KRelateCard$Companion$cardValues$delegate$lambda); + this.targetPath = '/bilibili.app.viewunite.common.RelateCard'; + } + get_cardValues_8afodh_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.cardValues$delegate_1; + var thisRef = this; + var property = cardValues$factory(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_243(); + } + get cardValues() { + return this.get_cardValues_8afodh_k$(); + } + } + class $serializer_243 { + constructor() { + $serializer_instance_243 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KRelateCard', this, 15); + tmp0_serialDesc.addElement_5pzumi_k$('relateCardType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('threePoint', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('cmStock', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('basicInfo', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + tmp0_serialDesc.addElement_5pzumi_k$('av', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('bangumi', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('resource', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('game', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('cm', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('live', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('bangumiAv', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('aiCard', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('bangumiUgc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(13)); + tmp0_serialDesc.addElement_5pzumi_k$('special', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(14)); + tmp0_serialDesc.addElement_5pzumi_k$('course', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(15)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), get_nullable($serializer_getInstance_247()), get_nullable($serializer_getInstance()), get_nullable($serializer_getInstance_249()), get_nullable($serializer_getInstance_251()), get_nullable($serializer_getInstance_254()), get_nullable($serializer_getInstance_259()), get_nullable($serializer_getInstance_260()), get_nullable($serializer_getInstance_264()), get_nullable($serializer_getInstance_265()), get_nullable($serializer_getInstance_250()), get_nullable($serializer_getInstance_246()), get_nullable($serializer_getInstance_255()), get_nullable($serializer_getInstance_244()), get_nullable($serializer_getInstance_252())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_local8 = null; + var tmp13_local9 = null; + var tmp14_local10 = null; + var tmp15_local11 = null; + var tmp16_local12 = null; + var tmp17_local13 = null; + var tmp18_local14 = null; + var tmp19_transient0 = 0; + var tmp20_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp20_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_247(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_249(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_251(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_254(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_259(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_260(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_264(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 9, $serializer_getInstance_265(), tmp13_local9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 10, $serializer_getInstance_250(), tmp14_local10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 11, $serializer_getInstance_246(), tmp15_local11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + tmp16_local12 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 12, $serializer_getInstance_255(), tmp16_local12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + tmp17_local13 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 13, $serializer_getInstance_244(), tmp17_local13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + tmp18_local14 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 14, $serializer_getInstance_252(), tmp18_local14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + } else + while (tmp1_flag) { + tmp2_index = tmp20_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_247(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_249(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_251(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_254(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_259(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_260(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_264(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 9, $serializer_getInstance_265(), tmp13_local9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 10, $serializer_getInstance_250(), tmp14_local10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 11, $serializer_getInstance_246(), tmp15_local11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + case 12: + tmp16_local12 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 12, $serializer_getInstance_255(), tmp16_local12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + break; + case 13: + tmp17_local13 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 13, $serializer_getInstance_244(), tmp17_local13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + break; + case 14: + tmp18_local14 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 14, $serializer_getInstance_252(), tmp18_local14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp20_input.endStructure_1xqz0n_k$(tmp0_desc); + return KRelateCard.new_com_bapis_bilibili_app_viewunite_common_KRelateCard_17r3ri_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, tmp18_local14, null); + } + serialize_n1rgjz_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.relateCardType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.relateCardType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.threePoint == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_247(), value.threePoint); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.cmStock == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance(), value.cmStock); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.basicInfo == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_249(), value.basicInfo); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.av_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, $serializer_getInstance_251(), value.av_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.bangumi_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 5, $serializer_getInstance_254(), value.bangumi_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.resource_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 6, $serializer_getInstance_259(), value.resource_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.game_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 7, $serializer_getInstance_260(), value.game_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.cm_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 8, $serializer_getInstance_264(), value.cm_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.live_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 9, $serializer_getInstance_265(), value.live_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.bangumiAv_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 10, $serializer_getInstance_250(), value.bangumiAv_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.aiCard_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 11, $serializer_getInstance_246(), value.aiCard_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !(value.bangumiUgc_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 12, $serializer_getInstance_255(), value.bangumiUgc_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 13) ? true : !(value.special_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 13, $serializer_getInstance_244(), value.special_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 14) ? true : !(value.course_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 14, $serializer_getInstance_252(), value.course_1); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_n1rgjz_k$(encoder, value instanceof KRelateCard ? value : THROW_CCE()); + } + } + class KRelateCard { + constructor(relateCardType, threePoint, cmStock, basicInfo, av, bangumi, resource, game, cm, live, bangumiAv, aiCard, bangumiUgc, special, course) { + Companion_getInstance_256(); + relateCardType = relateCardType === VOID ? 0 : relateCardType; + threePoint = threePoint === VOID ? null : threePoint; + cmStock = cmStock === VOID ? null : cmStock; + basicInfo = basicInfo === VOID ? null : basicInfo; + av = av === VOID ? null : av; + bangumi = bangumi === VOID ? null : bangumi; + resource = resource === VOID ? null : resource; + game = game === VOID ? null : game; + cm = cm === VOID ? null : cm; + live = live === VOID ? null : live; + bangumiAv = bangumiAv === VOID ? null : bangumiAv; + aiCard = aiCard === VOID ? null : aiCard; + bangumiUgc = bangumiUgc === VOID ? null : bangumiUgc; + special = special === VOID ? null : special; + course = course === VOID ? null : course; + this.relateCardType = relateCardType; + this.threePoint = threePoint; + this.cmStock = cmStock; + this.basicInfo = basicInfo; + this.av_1 = av; + this.bangumi_1 = bangumi; + this.resource_1 = resource; + this.game_1 = game; + this.cm_1 = cm; + this.live_1 = live; + this.bangumiAv_1 = bangumiAv; + this.aiCard_1 = aiCard; + this.bangumiUgc_1 = bangumiUgc; + this.special_1 = special; + this.course_1 = course; + var tmp = this; + tmp.cardNumber$delegate_1 = lazy_0(KRelateCard$cardNumber$delegate$lambda(this)); + } + get_relateCardType_139hpo_k$() { + return this.relateCardType; + } + get_threePoint_wv0qvv_k$() { + return this.threePoint; + } + get_cmStock_fn523n_k$() { + return this.cmStock; + } + get_basicInfo_jlb2r1_k$() { + return this.basicInfo; + } + cardValue() { + if (!(this.av_1 == null)) { + var tmp = this.av_1; + return (tmp == null ? true : !(tmp == null)) ? tmp : null; + } else if (!(this.bangumi_1 == null)) { + var tmp_0 = this.bangumi_1; + return (tmp_0 == null ? true : !(tmp_0 == null)) ? tmp_0 : null; + } else if (!(this.resource_1 == null)) { + var tmp_1 = this.resource_1; + return (tmp_1 == null ? true : !(tmp_1 == null)) ? tmp_1 : null; + } else if (!(this.game_1 == null)) { + var tmp_2 = this.game_1; + return (tmp_2 == null ? true : !(tmp_2 == null)) ? tmp_2 : null; + } else if (!(this.cm_1 == null)) { + var tmp_3 = this.cm_1; + return (tmp_3 == null ? true : !(tmp_3 == null)) ? tmp_3 : null; + } else if (!(this.live_1 == null)) { + var tmp_4 = this.live_1; + return (tmp_4 == null ? true : !(tmp_4 == null)) ? tmp_4 : null; + } else if (!(this.bangumiAv_1 == null)) { + var tmp_5 = this.bangumiAv_1; + return (tmp_5 == null ? true : !(tmp_5 == null)) ? tmp_5 : null; + } else if (!(this.aiCard_1 == null)) { + var tmp_6 = this.aiCard_1; + return (tmp_6 == null ? true : !(tmp_6 == null)) ? tmp_6 : null; + } else if (!(this.bangumiUgc_1 == null)) { + var tmp_7 = this.bangumiUgc_1; + return (tmp_7 == null ? true : !(tmp_7 == null)) ? tmp_7 : null; + } else if (!(this.special_1 == null)) { + var tmp_8 = this.special_1; + return (tmp_8 == null ? true : !(tmp_8 == null)) ? tmp_8 : null; + } else if (!(this.course_1 == null)) { + var tmp_9 = this.course_1; + return (tmp_9 == null ? true : !(tmp_9 == null)) ? tmp_9 : null; + } else { + return null; + } + } + cardTypeJs() { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = Companion_getInstance_256().cardValues; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.viewunite.common.KRelateCard.cardType.' call + var it = element; + tmp$ret$0 = it.value === _get_cardNumber__g5uxbm(this); + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + return tmp$ret$1; + } + relateCardTypeEnum() { + return Companion_getInstance_214().fromValue(this.relateCardType); + } + component1_7eebsc_k$() { + return this.relateCardType; + } + component2_7eebsb_k$() { + return this.threePoint; + } + component3_7eebsa_k$() { + return this.cmStock; + } + component4_7eebs9_k$() { + return this.basicInfo; + } + copy_l8tkbm_k$(relateCardType, threePoint, cmStock, basicInfo, av, bangumi, resource, game, cm, live, bangumiAv, aiCard, bangumiUgc, special, course) { + return new KRelateCard(relateCardType, threePoint, cmStock, basicInfo, av, bangumi, resource, game, cm, live, bangumiAv, aiCard, bangumiUgc, special, course); + } + copy(relateCardType, threePoint, cmStock, basicInfo, av, bangumi, resource, game, cm, live, bangumiAv, aiCard, bangumiUgc, special, course, $super) { + relateCardType = relateCardType === VOID ? this.relateCardType : relateCardType; + threePoint = threePoint === VOID ? this.threePoint : threePoint; + cmStock = cmStock === VOID ? this.cmStock : cmStock; + basicInfo = basicInfo === VOID ? this.basicInfo : basicInfo; + av = av === VOID ? this.av_1 : av; + bangumi = bangumi === VOID ? this.bangumi_1 : bangumi; + resource = resource === VOID ? this.resource_1 : resource; + game = game === VOID ? this.game_1 : game; + cm = cm === VOID ? this.cm_1 : cm; + live = live === VOID ? this.live_1 : live; + bangumiAv = bangumiAv === VOID ? this.bangumiAv_1 : bangumiAv; + aiCard = aiCard === VOID ? this.aiCard_1 : aiCard; + bangumiUgc = bangumiUgc === VOID ? this.bangumiUgc_1 : bangumiUgc; + special = special === VOID ? this.special_1 : special; + course = course === VOID ? this.course_1 : course; + return this.copy_l8tkbm_k$(relateCardType, threePoint, cmStock, basicInfo, av, bangumi, resource, game, cm, live, bangumiAv, aiCard, bangumiUgc, special, course); + } + toString() { + return 'KRelateCard(relateCardType=' + this.relateCardType + ', threePoint=' + this.threePoint + ', cmStock=' + this.cmStock + ', basicInfo=' + this.basicInfo + ', av=' + this.av_1 + ', bangumi=' + this.bangumi_1 + ', resource=' + this.resource_1 + ', game=' + this.game_1 + ', cm=' + this.cm_1 + ', live=' + this.live_1 + ', bangumiAv=' + this.bangumiAv_1 + ', aiCard=' + this.aiCard_1 + ', bangumiUgc=' + this.bangumiUgc_1 + ', special=' + this.special_1 + ', course=' + this.course_1 + ')'; + } + hashCode() { + var result = this.relateCardType; + result = imul(result, 31) + (this.threePoint == null ? 0 : this.threePoint.hashCode()) | 0; + result = imul(result, 31) + (this.cmStock == null ? 0 : this.cmStock.hashCode()) | 0; + result = imul(result, 31) + (this.basicInfo == null ? 0 : this.basicInfo.hashCode()) | 0; + result = imul(result, 31) + (this.av_1 == null ? 0 : this.av_1.hashCode()) | 0; + result = imul(result, 31) + (this.bangumi_1 == null ? 0 : this.bangumi_1.hashCode()) | 0; + result = imul(result, 31) + (this.resource_1 == null ? 0 : this.resource_1.hashCode()) | 0; + result = imul(result, 31) + (this.game_1 == null ? 0 : this.game_1.hashCode()) | 0; + result = imul(result, 31) + (this.cm_1 == null ? 0 : this.cm_1.hashCode()) | 0; + result = imul(result, 31) + (this.live_1 == null ? 0 : this.live_1.hashCode()) | 0; + result = imul(result, 31) + (this.bangumiAv_1 == null ? 0 : this.bangumiAv_1.hashCode()) | 0; + result = imul(result, 31) + (this.aiCard_1 == null ? 0 : this.aiCard_1.hashCode()) | 0; + result = imul(result, 31) + (this.bangumiUgc_1 == null ? 0 : this.bangumiUgc_1.hashCode()) | 0; + result = imul(result, 31) + (this.special_1 == null ? 0 : this.special_1.hashCode()) | 0; + result = imul(result, 31) + (this.course_1 == null ? 0 : this.course_1.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KRelateCard)) + return false; + var tmp0_other_with_cast = other instanceof KRelateCard ? other : THROW_CCE(); + if (!(this.relateCardType === tmp0_other_with_cast.relateCardType)) + return false; + if (!equals(this.threePoint, tmp0_other_with_cast.threePoint)) + return false; + if (!equals(this.cmStock, tmp0_other_with_cast.cmStock)) + return false; + if (!equals(this.basicInfo, tmp0_other_with_cast.basicInfo)) + return false; + if (!equals(this.av_1, tmp0_other_with_cast.av_1)) + return false; + if (!equals(this.bangumi_1, tmp0_other_with_cast.bangumi_1)) + return false; + if (!equals(this.resource_1, tmp0_other_with_cast.resource_1)) + return false; + if (!equals(this.game_1, tmp0_other_with_cast.game_1)) + return false; + if (!equals(this.cm_1, tmp0_other_with_cast.cm_1)) + return false; + if (!equals(this.live_1, tmp0_other_with_cast.live_1)) + return false; + if (!equals(this.bangumiAv_1, tmp0_other_with_cast.bangumiAv_1)) + return false; + if (!equals(this.aiCard_1, tmp0_other_with_cast.aiCard_1)) + return false; + if (!equals(this.bangumiUgc_1, tmp0_other_with_cast.bangumiUgc_1)) + return false; + if (!equals(this.special_1, tmp0_other_with_cast.special_1)) + return false; + if (!equals(this.course_1, tmp0_other_with_cast.course_1)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KRelateCard_17r3ri_k$(seen1, relateCardType, threePoint, cmStock, basicInfo, av, bangumi, resource, game, cm, live, bangumiAv, aiCard, bangumiUgc, special, course, serializationConstructorMarker) { + Companion_getInstance_256(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_243().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.relateCardType = 0; + else + $this.relateCardType = relateCardType; + if (0 === (seen1 & 2)) + $this.threePoint = null; + else + $this.threePoint = threePoint; + if (0 === (seen1 & 4)) + $this.cmStock = null; + else + $this.cmStock = cmStock; + if (0 === (seen1 & 8)) + $this.basicInfo = null; + else + $this.basicInfo = basicInfo; + if (0 === (seen1 & 16)) + $this.av_1 = null; + else + $this.av_1 = av; + if (0 === (seen1 & 32)) + $this.bangumi_1 = null; + else + $this.bangumi_1 = bangumi; + if (0 === (seen1 & 64)) + $this.resource_1 = null; + else + $this.resource_1 = resource; + if (0 === (seen1 & 128)) + $this.game_1 = null; + else + $this.game_1 = game; + if (0 === (seen1 & 256)) + $this.cm_1 = null; + else + $this.cm_1 = cm; + if (0 === (seen1 & 512)) + $this.live_1 = null; + else + $this.live_1 = live; + if (0 === (seen1 & 1024)) + $this.bangumiAv_1 = null; + else + $this.bangumiAv_1 = bangumiAv; + if (0 === (seen1 & 2048)) + $this.aiCard_1 = null; + else + $this.aiCard_1 = aiCard; + if (0 === (seen1 & 4096)) + $this.bangumiUgc_1 = null; + else + $this.bangumiUgc_1 = bangumiUgc; + if (0 === (seen1 & 8192)) + $this.special_1 = null; + else + $this.special_1 = special; + if (0 === (seen1 & 16384)) + $this.course_1 = null; + else + $this.course_1 = course; + var tmp = $this; + tmp.cardNumber$delegate_1 = lazy_0(KRelateCard$_init_$lambda_tre349($this)); + return $this; + } + } + class Companion_257 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.RelateSpecial'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_244(); + } + } + class $serializer_244 { + constructor() { + $serializer_instance_244 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KRelateSpecial', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('badge', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('rcmdReason', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_377()), get_nullable($serializer_getInstance_377())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_377(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_377(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_377(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_377(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KRelateSpecial.new_com_bapis_bilibili_app_viewunite_common_KRelateSpecial_psaaiy_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_vouej6_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.badge == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_377(), value.badge); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.rcmdReason == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_377(), value.rcmdReason); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_vouej6_k$(encoder, value instanceof KRelateSpecial ? value : THROW_CCE()); + } + } + class KRelateSpecial { + constructor(badge, rcmdReason) { + Companion_instance_257; + badge = badge === VOID ? null : badge; + rcmdReason = rcmdReason === VOID ? null : rcmdReason; + this.badge = badge; + this.rcmdReason = rcmdReason; + } + get_badge_ip1cai_k$() { + return this.badge; + } + get_rcmdReason_lci9h1_k$() { + return this.rcmdReason; + } + component1_7eebsc_k$() { + return this.badge; + } + component2_7eebsb_k$() { + return this.rcmdReason; + } + copy_jm5oa3_k$(badge, rcmdReason) { + return new KRelateSpecial(badge, rcmdReason); + } + copy(badge, rcmdReason, $super) { + badge = badge === VOID ? this.badge : badge; + rcmdReason = rcmdReason === VOID ? this.rcmdReason : rcmdReason; + return this.copy_jm5oa3_k$(badge, rcmdReason); + } + toString() { + return 'KRelateSpecial(badge=' + this.badge + ', rcmdReason=' + this.rcmdReason + ')'; + } + hashCode() { + var result = this.badge == null ? 0 : this.badge.hashCode(); + result = imul(result, 31) + (this.rcmdReason == null ? 0 : this.rcmdReason.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KRelateSpecial)) + return false; + var tmp0_other_with_cast = other instanceof KRelateSpecial ? other : THROW_CCE(); + if (!equals(this.badge, tmp0_other_with_cast.badge)) + return false; + if (!equals(this.rcmdReason, tmp0_other_with_cast.rcmdReason)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KRelateSpecial_psaaiy_k$(seen1, badge, rcmdReason, serializationConstructorMarker) { + Companion_instance_257; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_244().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.badge = null; + else + $this.badge = badge; + if (0 === (seen1 & 2)) + $this.rcmdReason = null; + else + $this.rcmdReason = rcmdReason; + return $this; + } + } + class Companion_258 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.RelatedAICard.ReportEntry'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_245(); + } + } + class $serializer_245 { + constructor() { + $serializer_instance_245 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KRelatedAICard.KReportEntry', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('key', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('value', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KReportEntry_1.new_com_bapis_bilibili_app_viewunite_common_KRelatedAICard_KReportEntry_cy93yn_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_bkw6l6_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.key === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.key); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.value === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.value); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_bkw6l6_k$(encoder, value instanceof KReportEntry_1 ? value : THROW_CCE()); + } + } + class KReportEntry_1 { + constructor(key, value) { + Companion_instance_258; + key = key === VOID ? '' : key; + value = value === VOID ? '' : value; + this.key = key; + this.value = value; + } + get_key_18j28a_k$() { + return this.key; + } + get_value_j01efc_k$() { + return this.value; + } + component1_7eebsc_k$() { + return this.key; + } + component2_7eebsb_k$() { + return this.value; + } + copy_plwnsl_k$(key, value) { + return new KReportEntry_1(key, value); + } + copy(key, value, $super) { + key = key === VOID ? this.key : key; + value = value === VOID ? this.value : value; + return this.copy_plwnsl_k$(key, value); + } + toString() { + return 'KReportEntry(key=' + this.key + ', value=' + this.value + ')'; + } + hashCode() { + var result = getStringHashCode(this.key); + result = imul(result, 31) + getStringHashCode(this.value) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KReportEntry_1)) + return false; + var tmp0_other_with_cast = other instanceof KReportEntry_1 ? other : THROW_CCE(); + if (!(this.key === tmp0_other_with_cast.key)) + return false; + if (!(this.value === tmp0_other_with_cast.value)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KRelatedAICard_KReportEntry_cy93yn_k$(seen1, key, value, serializationConstructorMarker) { + Companion_instance_258; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_245().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.key = ''; + else + $this.key = key; + if (0 === (seen1 & 2)) + $this.value = ''; + else + $this.value = value; + return $this; + } + } + class Companion_259 { + constructor() { + Companion_instance_259 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, null, new LinkedHashMapSerializer(StringSerializer_getInstance(), StringSerializer_getInstance()), null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.viewunite.common.RelatedAICard'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_246(); + } + } + class $serializer_246 { + constructor() { + $serializer_instance_246 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KRelatedAICard', this, 6); + tmp0_serialDesc.addElement_5pzumi_k$('aid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('duration', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('upInfo', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('stat', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('report', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('gotoType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_259().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable($serializer_getInstance_321()), get_nullable($serializer_getInstance_387()), tmp0_cached[4], StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = new Long(0, 0); + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp11_cached = Companion_getInstance_259().$childSerializers_1; + if (tmp10_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_321(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_387(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp10_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 4, tmp11_cached[4], tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + } else + while (tmp1_flag) { + tmp2_index = tmp10_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_321(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_387(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp10_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 4, tmp11_cached[4], tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp10_input.endStructure_1xqz0n_k$(tmp0_desc); + return KRelatedAICard.new_com_bapis_bilibili_app_viewunite_common_KRelatedAICard_gg0ndt_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); + } + serialize_dycb1n_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_259().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.aid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.aid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.duration.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.duration); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.upInfo == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_321(), value.upInfo); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.stat == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_387(), value.stat); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !equals(value.report, emptyMap())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 4, tmp2_cached[4], value.report); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.gotoType === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.gotoType); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_dycb1n_k$(encoder, value instanceof KRelatedAICard ? value : THROW_CCE()); + } + } + class KRelatedAICard { + constructor(aid, duration, upInfo, stat, report, gotoType) { + Companion_getInstance_259(); + aid = aid === VOID ? new Long(0, 0) : aid; + duration = duration === VOID ? new Long(0, 0) : duration; + upInfo = upInfo === VOID ? null : upInfo; + stat = stat === VOID ? null : stat; + report = report === VOID ? emptyMap() : report; + gotoType = gotoType === VOID ? '' : gotoType; + this.aid = aid; + this.duration = duration; + this.upInfo = upInfo; + this.stat = stat; + this.report = report; + this.gotoType = gotoType; + } + get_aid_18j9kd_k$() { + return this.aid; + } + get_duration_6a6kpp_k$() { + return this.duration; + } + get_upInfo_kivsaa_k$() { + return this.upInfo; + } + get_stat_woujdp_k$() { + return this.stat; + } + get_report_iye43h_k$() { + return this.report; + } + get_gotoType_5twjye_k$() { + return this.gotoType; + } + component1_7eebsc_k$() { + return this.aid; + } + component2_7eebsb_k$() { + return this.duration; + } + component3_7eebsa_k$() { + return this.upInfo; + } + component4_7eebs9_k$() { + return this.stat; + } + component5_7eebs8_k$() { + return this.report; + } + component6_7eebs7_k$() { + return this.gotoType; + } + copy_c133uv_k$(aid, duration, upInfo, stat, report, gotoType) { + return new KRelatedAICard(aid, duration, upInfo, stat, report, gotoType); + } + copy(aid, duration, upInfo, stat, report, gotoType, $super) { + aid = aid === VOID ? this.aid : aid; + duration = duration === VOID ? this.duration : duration; + upInfo = upInfo === VOID ? this.upInfo : upInfo; + stat = stat === VOID ? this.stat : stat; + report = report === VOID ? this.report : report; + gotoType = gotoType === VOID ? this.gotoType : gotoType; + return this.copy_c133uv_k$(aid, duration, upInfo, stat, report, gotoType); + } + toString() { + return 'KRelatedAICard(aid=' + this.aid.toString() + ', duration=' + this.duration.toString() + ', upInfo=' + this.upInfo + ', stat=' + this.stat + ', report=' + this.report + ', gotoType=' + this.gotoType + ')'; + } + hashCode() { + var result = this.aid.hashCode(); + result = imul(result, 31) + this.duration.hashCode() | 0; + result = imul(result, 31) + (this.upInfo == null ? 0 : this.upInfo.hashCode()) | 0; + result = imul(result, 31) + (this.stat == null ? 0 : this.stat.hashCode()) | 0; + result = imul(result, 31) + hashCode(this.report) | 0; + result = imul(result, 31) + getStringHashCode(this.gotoType) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KRelatedAICard)) + return false; + var tmp0_other_with_cast = other instanceof KRelatedAICard ? other : THROW_CCE(); + if (!this.aid.equals(tmp0_other_with_cast.aid)) + return false; + if (!this.duration.equals(tmp0_other_with_cast.duration)) + return false; + if (!equals(this.upInfo, tmp0_other_with_cast.upInfo)) + return false; + if (!equals(this.stat, tmp0_other_with_cast.stat)) + return false; + if (!equals(this.report, tmp0_other_with_cast.report)) + return false; + if (!(this.gotoType === tmp0_other_with_cast.gotoType)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KRelatedAICard_gg0ndt_k$(seen1, aid, duration, upInfo, stat, report, gotoType, serializationConstructorMarker) { + Companion_getInstance_259(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_246().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.aid = new Long(0, 0); + else + $this.aid = aid; + if (0 === (seen1 & 2)) + $this.duration = new Long(0, 0); + else + $this.duration = duration; + if (0 === (seen1 & 4)) + $this.upInfo = null; + else + $this.upInfo = upInfo; + if (0 === (seen1 & 8)) + $this.stat = null; + else + $this.stat = stat; + if (0 === (seen1 & 16)) + $this.report = emptyMap(); + else + $this.report = report; + if (0 === (seen1 & 32)) + $this.gotoType = ''; + else + $this.gotoType = gotoType; + return $this; + } + } + class Companion_260 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.RelateThreePoint'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_247(); + } + } + class $serializer_247 { + constructor() { + $serializer_instance_247 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KRelateThreePoint', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('dislike', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('feedback', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('watchLater', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('dislikeReportData', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_248()), get_nullable($serializer_getInstance_248()), BooleanSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = false; + var tmp7_local3 = null; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_248(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_248(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_248(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_248(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KRelateThreePoint.new_com_bapis_bilibili_app_viewunite_common_KRelateThreePoint_7zfb1_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_ku4r0t_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.dislike == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_248(), value.dislike); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.feedback == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_248(), value.feedback); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.watchLater === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 2, value.watchLater); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.dislikeReportData === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.dislikeReportData); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_ku4r0t_k$(encoder, value instanceof KRelateThreePoint ? value : THROW_CCE()); + } + } + class KRelateThreePoint { + constructor(dislike, feedback, watchLater, dislikeReportData) { + Companion_instance_260; + dislike = dislike === VOID ? null : dislike; + feedback = feedback === VOID ? null : feedback; + watchLater = watchLater === VOID ? false : watchLater; + dislikeReportData = dislikeReportData === VOID ? '' : dislikeReportData; + this.dislike = dislike; + this.feedback = feedback; + this.watchLater = watchLater; + this.dislikeReportData = dislikeReportData; + } + get_dislike_swt1ks_k$() { + return this.dislike; + } + get_feedback_yyya42_k$() { + return this.feedback; + } + get_watchLater_m4hv96_k$() { + return this.watchLater; + } + get_dislikeReportData_1w5m06_k$() { + return this.dislikeReportData; + } + component1_7eebsc_k$() { + return this.dislike; + } + component2_7eebsb_k$() { + return this.feedback; + } + component3_7eebsa_k$() { + return this.watchLater; + } + component4_7eebs9_k$() { + return this.dislikeReportData; + } + copy_siskeu_k$(dislike, feedback, watchLater, dislikeReportData) { + return new KRelateThreePoint(dislike, feedback, watchLater, dislikeReportData); + } + copy(dislike, feedback, watchLater, dislikeReportData, $super) { + dislike = dislike === VOID ? this.dislike : dislike; + feedback = feedback === VOID ? this.feedback : feedback; + watchLater = watchLater === VOID ? this.watchLater : watchLater; + dislikeReportData = dislikeReportData === VOID ? this.dislikeReportData : dislikeReportData; + return this.copy_siskeu_k$(dislike, feedback, watchLater, dislikeReportData); + } + toString() { + return 'KRelateThreePoint(dislike=' + this.dislike + ', feedback=' + this.feedback + ', watchLater=' + this.watchLater + ', dislikeReportData=' + this.dislikeReportData + ')'; + } + hashCode() { + var result = this.dislike == null ? 0 : this.dislike.hashCode(); + result = imul(result, 31) + (this.feedback == null ? 0 : this.feedback.hashCode()) | 0; + result = imul(result, 31) + getBooleanHashCode(this.watchLater) | 0; + result = imul(result, 31) + getStringHashCode(this.dislikeReportData) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KRelateThreePoint)) + return false; + var tmp0_other_with_cast = other instanceof KRelateThreePoint ? other : THROW_CCE(); + if (!equals(this.dislike, tmp0_other_with_cast.dislike)) + return false; + if (!equals(this.feedback, tmp0_other_with_cast.feedback)) + return false; + if (!(this.watchLater === tmp0_other_with_cast.watchLater)) + return false; + if (!(this.dislikeReportData === tmp0_other_with_cast.dislikeReportData)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KRelateThreePoint_7zfb1_k$(seen1, dislike, feedback, watchLater, dislikeReportData, serializationConstructorMarker) { + Companion_instance_260; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_247().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.dislike = null; + else + $this.dislike = dislike; + if (0 === (seen1 & 2)) + $this.feedback = null; + else + $this.feedback = feedback; + if (0 === (seen1 & 4)) + $this.watchLater = false; + else + $this.watchLater = watchLater; + if (0 === (seen1 & 8)) + $this.dislikeReportData = ''; + else + $this.dislikeReportData = dislikeReportData; + return $this; + } + } + class Companion_261 { + constructor() { + Companion_instance_261 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, null, null, new ArrayListSerializer($serializer_getInstance_382()), null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.viewunite.common.RelateDislike'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_248(); + } + } + class $serializer_248 { + constructor() { + $serializer_instance_248 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KRelateDislike', this, 8); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('subTitle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('closedSubTitle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('pasteText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('closedPasteText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('dislikeReason', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('toast', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('closedToast', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_261().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), tmp0_cached[5], StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp13_cached = Companion_getInstance_261().$childSerializers_1; + if (tmp12_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp12_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 5, tmp13_cached[5], tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + } else + while (tmp1_flag) { + tmp2_index = tmp12_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp12_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 5, tmp13_cached[5], tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp12_input.endStructure_1xqz0n_k$(tmp0_desc); + return KRelateDislike.new_com_bapis_bilibili_app_viewunite_common_KRelateDislike_arhhlz_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null); + } + serialize_i8puym_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_261().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.subTitle === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.subTitle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.closedSubTitle === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.closedSubTitle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.pasteText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.pasteText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.closedPasteText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.closedPasteText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !equals(value.dislikeReason, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 5, tmp2_cached[5], value.dislikeReason); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.toast === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.toast); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.closedToast === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.closedToast); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_i8puym_k$(encoder, value instanceof KRelateDislike ? value : THROW_CCE()); + } + } + class KRelateDislike { + constructor(title, subTitle, closedSubTitle, pasteText, closedPasteText, dislikeReason, toast, closedToast) { + Companion_getInstance_261(); + title = title === VOID ? '' : title; + subTitle = subTitle === VOID ? '' : subTitle; + closedSubTitle = closedSubTitle === VOID ? '' : closedSubTitle; + pasteText = pasteText === VOID ? '' : pasteText; + closedPasteText = closedPasteText === VOID ? '' : closedPasteText; + dislikeReason = dislikeReason === VOID ? emptyList() : dislikeReason; + toast = toast === VOID ? '' : toast; + closedToast = closedToast === VOID ? '' : closedToast; + this.title = title; + this.subTitle = subTitle; + this.closedSubTitle = closedSubTitle; + this.pasteText = pasteText; + this.closedPasteText = closedPasteText; + this.dislikeReason = dislikeReason; + this.toast = toast; + this.closedToast = closedToast; + } + get_title_iz32un_k$() { + return this.title; + } + get_subTitle_4nt9z5_k$() { + return this.subTitle; + } + get_closedSubTitle_yeu2dp_k$() { + return this.closedSubTitle; + } + get_pasteText_6nert5_k$() { + return this.pasteText; + } + get_closedPasteText_7s70yd_k$() { + return this.closedPasteText; + } + get_dislikeReason_5j3hb4_k$() { + return this.dislikeReason; + } + get_toast_iz6iv2_k$() { + return this.toast; + } + get_closedToast_obbdma_k$() { + return this.closedToast; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.subTitle; + } + component3_7eebsa_k$() { + return this.closedSubTitle; + } + component4_7eebs9_k$() { + return this.pasteText; + } + component5_7eebs8_k$() { + return this.closedPasteText; + } + component6_7eebs7_k$() { + return this.dislikeReason; + } + component7_7eebs6_k$() { + return this.toast; + } + component8_7eebs5_k$() { + return this.closedToast; + } + copy_wnechw_k$(title, subTitle, closedSubTitle, pasteText, closedPasteText, dislikeReason, toast, closedToast) { + return new KRelateDislike(title, subTitle, closedSubTitle, pasteText, closedPasteText, dislikeReason, toast, closedToast); + } + copy(title, subTitle, closedSubTitle, pasteText, closedPasteText, dislikeReason, toast, closedToast, $super) { + title = title === VOID ? this.title : title; + subTitle = subTitle === VOID ? this.subTitle : subTitle; + closedSubTitle = closedSubTitle === VOID ? this.closedSubTitle : closedSubTitle; + pasteText = pasteText === VOID ? this.pasteText : pasteText; + closedPasteText = closedPasteText === VOID ? this.closedPasteText : closedPasteText; + dislikeReason = dislikeReason === VOID ? this.dislikeReason : dislikeReason; + toast = toast === VOID ? this.toast : toast; + closedToast = closedToast === VOID ? this.closedToast : closedToast; + return this.copy_wnechw_k$(title, subTitle, closedSubTitle, pasteText, closedPasteText, dislikeReason, toast, closedToast); + } + toString() { + return 'KRelateDislike(title=' + this.title + ', subTitle=' + this.subTitle + ', closedSubTitle=' + this.closedSubTitle + ', pasteText=' + this.pasteText + ', closedPasteText=' + this.closedPasteText + ', dislikeReason=' + this.dislikeReason + ', toast=' + this.toast + ', closedToast=' + this.closedToast + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.subTitle) | 0; + result = imul(result, 31) + getStringHashCode(this.closedSubTitle) | 0; + result = imul(result, 31) + getStringHashCode(this.pasteText) | 0; + result = imul(result, 31) + getStringHashCode(this.closedPasteText) | 0; + result = imul(result, 31) + hashCode(this.dislikeReason) | 0; + result = imul(result, 31) + getStringHashCode(this.toast) | 0; + result = imul(result, 31) + getStringHashCode(this.closedToast) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KRelateDislike)) + return false; + var tmp0_other_with_cast = other instanceof KRelateDislike ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.subTitle === tmp0_other_with_cast.subTitle)) + return false; + if (!(this.closedSubTitle === tmp0_other_with_cast.closedSubTitle)) + return false; + if (!(this.pasteText === tmp0_other_with_cast.pasteText)) + return false; + if (!(this.closedPasteText === tmp0_other_with_cast.closedPasteText)) + return false; + if (!equals(this.dislikeReason, tmp0_other_with_cast.dislikeReason)) + return false; + if (!(this.toast === tmp0_other_with_cast.toast)) + return false; + if (!(this.closedToast === tmp0_other_with_cast.closedToast)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KRelateDislike_arhhlz_k$(seen1, title, subTitle, closedSubTitle, pasteText, closedPasteText, dislikeReason, toast, closedToast, serializationConstructorMarker) { + Companion_getInstance_261(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_248().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.subTitle = ''; + else + $this.subTitle = subTitle; + if (0 === (seen1 & 4)) + $this.closedSubTitle = ''; + else + $this.closedSubTitle = closedSubTitle; + if (0 === (seen1 & 8)) + $this.pasteText = ''; + else + $this.pasteText = pasteText; + if (0 === (seen1 & 16)) + $this.closedPasteText = ''; + else + $this.closedPasteText = closedPasteText; + if (0 === (seen1 & 32)) + $this.dislikeReason = emptyList(); + else + $this.dislikeReason = dislikeReason; + if (0 === (seen1 & 64)) + $this.toast = ''; + else + $this.toast = toast; + if (0 === (seen1 & 128)) + $this.closedToast = ''; + else + $this.closedToast = closedToast; + return $this; + } + } + class Companion_262 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.CardBasicInfo'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_249(); + } + } + class $serializer_249 { + constructor() { + $serializer_instance_249 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KCardBasicInfo', this, 15); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('desc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('uri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('trackId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('uniqueId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('fromSourceType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('fromSourceId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('materialId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('coverGif', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('author', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('id', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + tmp0_serialDesc.addElement_5pzumi_k$('from', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(13)); + tmp0_serialDesc.addElement_5pzumi_k$('fromSpmidSuffix', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(14)); + tmp0_serialDesc.addElement_5pzumi_k$('reportFlowData', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(15)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_326()), LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = new Long(0, 0); + var tmp11_local7 = null; + var tmp12_local8 = new Long(0, 0); + var tmp13_local9 = null; + var tmp14_local10 = null; + var tmp15_local11 = new Long(0, 0); + var tmp16_local12 = null; + var tmp17_local13 = null; + var tmp18_local14 = null; + var tmp19_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp19_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp19_input.decodeLongElement_994anb_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp19_input.decodeLongElement_994anb_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp19_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 10, $serializer_getInstance_326(), tmp14_local10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp19_input.decodeLongElement_994anb_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + tmp16_local12 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + tmp17_local13 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + tmp18_local14 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + } else + while (tmp1_flag) { + tmp2_index = tmp19_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp19_input.decodeLongElement_994anb_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp19_input.decodeLongElement_994anb_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp19_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 10, $serializer_getInstance_326(), tmp14_local10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp19_input.decodeLongElement_994anb_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + case 12: + tmp16_local12 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + break; + case 13: + tmp17_local13 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + break; + case 14: + tmp18_local14 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp19_input.endStructure_1xqz0n_k$(tmp0_desc); + return KCardBasicInfo.new_com_bapis_bilibili_app_viewunite_common_KCardBasicInfo_qjpubs_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, tmp18_local14, null); + } + serialize_bjqpc2_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.desc === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.desc); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.cover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.uri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.uri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.trackId === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.trackId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.uniqueId === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.uniqueId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !value.fromSourceType.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 6, value.fromSourceType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.fromSourceId === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.fromSourceId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !value.materialId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 8, value.materialId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.coverGif === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 9, value.coverGif); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.author == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 10, $serializer_getInstance_326(), value.author); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !value.id.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 11, value.id); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !(value.from === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 12, value.from); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 13) ? true : !(value.fromSpmidSuffix === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 13, value.fromSpmidSuffix); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 14) ? true : !(value.reportFlowData === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 14, value.reportFlowData); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_bjqpc2_k$(encoder, value instanceof KCardBasicInfo ? value : THROW_CCE()); + } + } + class KCardBasicInfo { + constructor(title, desc, cover, uri, trackId, uniqueId, fromSourceType, fromSourceId, materialId, coverGif, author, id, from, fromSpmidSuffix, reportFlowData) { + Companion_instance_262; + title = title === VOID ? '' : title; + desc = desc === VOID ? '' : desc; + cover = cover === VOID ? '' : cover; + uri = uri === VOID ? '' : uri; + trackId = trackId === VOID ? '' : trackId; + uniqueId = uniqueId === VOID ? '' : uniqueId; + fromSourceType = fromSourceType === VOID ? new Long(0, 0) : fromSourceType; + fromSourceId = fromSourceId === VOID ? '' : fromSourceId; + materialId = materialId === VOID ? new Long(0, 0) : materialId; + coverGif = coverGif === VOID ? '' : coverGif; + author = author === VOID ? null : author; + id = id === VOID ? new Long(0, 0) : id; + from = from === VOID ? '' : from; + fromSpmidSuffix = fromSpmidSuffix === VOID ? '' : fromSpmidSuffix; + reportFlowData = reportFlowData === VOID ? '' : reportFlowData; + this.title = title; + this.desc = desc; + this.cover = cover; + this.uri = uri; + this.trackId = trackId; + this.uniqueId = uniqueId; + this.fromSourceType = fromSourceType; + this.fromSourceId = fromSourceId; + this.materialId = materialId; + this.coverGif = coverGif; + this.author = author; + this.id = id; + this.from = from; + this.fromSpmidSuffix = fromSpmidSuffix; + this.reportFlowData = reportFlowData; + } + get_title_iz32un_k$() { + return this.title; + } + get_desc_woknve_k$() { + return this.desc; + } + get_cover_ipug0e_k$() { + return this.cover; + } + get_uri_18iuil_k$() { + return this.uri; + } + get_trackId_gdy23n_k$() { + return this.trackId; + } + get_uniqueId_ycv0d1_k$() { + return this.uniqueId; + } + get_fromSourceType_rhnfeg_k$() { + return this.fromSourceType; + } + get_fromSourceId_6oict3_k$() { + return this.fromSourceId; + } + get_materialId_q4fmc5_k$() { + return this.materialId; + } + get_coverGif_xeq6vq_k$() { + return this.coverGif; + } + get_author_b5hnkk_k$() { + return this.author; + } + get_id_kntnx8_k$() { + return this.id; + } + get_from_wom7eb_k$() { + return this.from; + } + get_fromSpmidSuffix_gp5p13_k$() { + return this.fromSpmidSuffix; + } + get_reportFlowData_x9vanf_k$() { + return this.reportFlowData; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.desc; + } + component3_7eebsa_k$() { + return this.cover; + } + component4_7eebs9_k$() { + return this.uri; + } + component5_7eebs8_k$() { + return this.trackId; + } + component6_7eebs7_k$() { + return this.uniqueId; + } + component7_7eebs6_k$() { + return this.fromSourceType; + } + component8_7eebs5_k$() { + return this.fromSourceId; + } + component9_7eebs4_k$() { + return this.materialId; + } + component10_gazzfo_k$() { + return this.coverGif; + } + component11_gazzfn_k$() { + return this.author; + } + component12_gazzfm_k$() { + return this.id; + } + component13_gazzfl_k$() { + return this.from; + } + component14_gazzfk_k$() { + return this.fromSpmidSuffix; + } + component15_gazzfj_k$() { + return this.reportFlowData; + } + copy_z9mbnc_k$(title, desc, cover, uri, trackId, uniqueId, fromSourceType, fromSourceId, materialId, coverGif, author, id, from, fromSpmidSuffix, reportFlowData) { + return new KCardBasicInfo(title, desc, cover, uri, trackId, uniqueId, fromSourceType, fromSourceId, materialId, coverGif, author, id, from, fromSpmidSuffix, reportFlowData); + } + copy(title, desc, cover, uri, trackId, uniqueId, fromSourceType, fromSourceId, materialId, coverGif, author, id, from, fromSpmidSuffix, reportFlowData, $super) { + title = title === VOID ? this.title : title; + desc = desc === VOID ? this.desc : desc; + cover = cover === VOID ? this.cover : cover; + uri = uri === VOID ? this.uri : uri; + trackId = trackId === VOID ? this.trackId : trackId; + uniqueId = uniqueId === VOID ? this.uniqueId : uniqueId; + fromSourceType = fromSourceType === VOID ? this.fromSourceType : fromSourceType; + fromSourceId = fromSourceId === VOID ? this.fromSourceId : fromSourceId; + materialId = materialId === VOID ? this.materialId : materialId; + coverGif = coverGif === VOID ? this.coverGif : coverGif; + author = author === VOID ? this.author : author; + id = id === VOID ? this.id : id; + from = from === VOID ? this.from : from; + fromSpmidSuffix = fromSpmidSuffix === VOID ? this.fromSpmidSuffix : fromSpmidSuffix; + reportFlowData = reportFlowData === VOID ? this.reportFlowData : reportFlowData; + return this.copy_z9mbnc_k$(title, desc, cover, uri, trackId, uniqueId, fromSourceType, fromSourceId, materialId, coverGif, author, id, from, fromSpmidSuffix, reportFlowData); + } + toString() { + return 'KCardBasicInfo(title=' + this.title + ', desc=' + this.desc + ', cover=' + this.cover + ', uri=' + this.uri + ', trackId=' + this.trackId + ', uniqueId=' + this.uniqueId + ', fromSourceType=' + this.fromSourceType.toString() + ', fromSourceId=' + this.fromSourceId + ', materialId=' + this.materialId.toString() + ', coverGif=' + this.coverGif + ', author=' + this.author + ', id=' + this.id.toString() + ', from=' + this.from + ', fromSpmidSuffix=' + this.fromSpmidSuffix + ', reportFlowData=' + this.reportFlowData + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.desc) | 0; + result = imul(result, 31) + getStringHashCode(this.cover) | 0; + result = imul(result, 31) + getStringHashCode(this.uri) | 0; + result = imul(result, 31) + getStringHashCode(this.trackId) | 0; + result = imul(result, 31) + getStringHashCode(this.uniqueId) | 0; + result = imul(result, 31) + this.fromSourceType.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.fromSourceId) | 0; + result = imul(result, 31) + this.materialId.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.coverGif) | 0; + result = imul(result, 31) + (this.author == null ? 0 : this.author.hashCode()) | 0; + result = imul(result, 31) + this.id.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.from) | 0; + result = imul(result, 31) + getStringHashCode(this.fromSpmidSuffix) | 0; + result = imul(result, 31) + getStringHashCode(this.reportFlowData) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KCardBasicInfo)) + return false; + var tmp0_other_with_cast = other instanceof KCardBasicInfo ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.desc === tmp0_other_with_cast.desc)) + return false; + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + if (!(this.uri === tmp0_other_with_cast.uri)) + return false; + if (!(this.trackId === tmp0_other_with_cast.trackId)) + return false; + if (!(this.uniqueId === tmp0_other_with_cast.uniqueId)) + return false; + if (!this.fromSourceType.equals(tmp0_other_with_cast.fromSourceType)) + return false; + if (!(this.fromSourceId === tmp0_other_with_cast.fromSourceId)) + return false; + if (!this.materialId.equals(tmp0_other_with_cast.materialId)) + return false; + if (!(this.coverGif === tmp0_other_with_cast.coverGif)) + return false; + if (!equals(this.author, tmp0_other_with_cast.author)) + return false; + if (!this.id.equals(tmp0_other_with_cast.id)) + return false; + if (!(this.from === tmp0_other_with_cast.from)) + return false; + if (!(this.fromSpmidSuffix === tmp0_other_with_cast.fromSpmidSuffix)) + return false; + if (!(this.reportFlowData === tmp0_other_with_cast.reportFlowData)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KCardBasicInfo_qjpubs_k$(seen1, title, desc, cover, uri, trackId, uniqueId, fromSourceType, fromSourceId, materialId, coverGif, author, id, from, fromSpmidSuffix, reportFlowData, serializationConstructorMarker) { + Companion_instance_262; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_249().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.desc = ''; + else + $this.desc = desc; + if (0 === (seen1 & 4)) + $this.cover = ''; + else + $this.cover = cover; + if (0 === (seen1 & 8)) + $this.uri = ''; + else + $this.uri = uri; + if (0 === (seen1 & 16)) + $this.trackId = ''; + else + $this.trackId = trackId; + if (0 === (seen1 & 32)) + $this.uniqueId = ''; + else + $this.uniqueId = uniqueId; + if (0 === (seen1 & 64)) + $this.fromSourceType = new Long(0, 0); + else + $this.fromSourceType = fromSourceType; + if (0 === (seen1 & 128)) + $this.fromSourceId = ''; + else + $this.fromSourceId = fromSourceId; + if (0 === (seen1 & 256)) + $this.materialId = new Long(0, 0); + else + $this.materialId = materialId; + if (0 === (seen1 & 512)) + $this.coverGif = ''; + else + $this.coverGif = coverGif; + if (0 === (seen1 & 1024)) + $this.author = null; + else + $this.author = author; + if (0 === (seen1 & 2048)) + $this.id = new Long(0, 0); + else + $this.id = id; + if (0 === (seen1 & 4096)) + $this.from = ''; + else + $this.from = from; + if (0 === (seen1 & 8192)) + $this.fromSpmidSuffix = ''; + else + $this.fromSpmidSuffix = fromSpmidSuffix; + if (0 === (seen1 & 16384)) + $this.reportFlowData = ''; + else + $this.reportFlowData = reportFlowData; + return $this; + } + } + class Companion_263 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.RelateBangumiAvCard'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_250(); + } + } + class $serializer_250 { + constructor() { + $serializer_instance_250 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KRelateBangumiAvCard', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('badge', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('stat', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('rating', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('coverRightText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_377()), get_nullable($serializer_getInstance_387()), get_nullable($serializer_getInstance_371()), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_377(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_387(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_371(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_377(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_387(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_371(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KRelateBangumiAvCard.new_com_bapis_bilibili_app_viewunite_common_KRelateBangumiAvCard_4x4n4o_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_5m23iv_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.badge == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_377(), value.badge); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.stat == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_387(), value.stat); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.rating == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_371(), value.rating); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.coverRightText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.coverRightText); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_5m23iv_k$(encoder, value instanceof KRelateBangumiAvCard ? value : THROW_CCE()); + } + } + class KRelateBangumiAvCard { + constructor(badge, stat, rating, coverRightText) { + Companion_instance_263; + badge = badge === VOID ? null : badge; + stat = stat === VOID ? null : stat; + rating = rating === VOID ? null : rating; + coverRightText = coverRightText === VOID ? '' : coverRightText; + this.badge = badge; + this.stat = stat; + this.rating = rating; + this.coverRightText = coverRightText; + } + get_badge_ip1cai_k$() { + return this.badge; + } + get_stat_woujdp_k$() { + return this.stat; + } + get_rating_iw9d46_k$() { + return this.rating; + } + get_coverRightText_t0bat7_k$() { + return this.coverRightText; + } + component1_7eebsc_k$() { + return this.badge; + } + component2_7eebsb_k$() { + return this.stat; + } + component3_7eebsa_k$() { + return this.rating; + } + component4_7eebs9_k$() { + return this.coverRightText; + } + copy_rex0pf_k$(badge, stat, rating, coverRightText) { + return new KRelateBangumiAvCard(badge, stat, rating, coverRightText); + } + copy(badge, stat, rating, coverRightText, $super) { + badge = badge === VOID ? this.badge : badge; + stat = stat === VOID ? this.stat : stat; + rating = rating === VOID ? this.rating : rating; + coverRightText = coverRightText === VOID ? this.coverRightText : coverRightText; + return this.copy_rex0pf_k$(badge, stat, rating, coverRightText); + } + toString() { + return 'KRelateBangumiAvCard(badge=' + this.badge + ', stat=' + this.stat + ', rating=' + this.rating + ', coverRightText=' + this.coverRightText + ')'; + } + hashCode() { + var result = this.badge == null ? 0 : this.badge.hashCode(); + result = imul(result, 31) + (this.stat == null ? 0 : this.stat.hashCode()) | 0; + result = imul(result, 31) + (this.rating == null ? 0 : this.rating.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.coverRightText) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KRelateBangumiAvCard)) + return false; + var tmp0_other_with_cast = other instanceof KRelateBangumiAvCard ? other : THROW_CCE(); + if (!equals(this.badge, tmp0_other_with_cast.badge)) + return false; + if (!equals(this.stat, tmp0_other_with_cast.stat)) + return false; + if (!equals(this.rating, tmp0_other_with_cast.rating)) + return false; + if (!(this.coverRightText === tmp0_other_with_cast.coverRightText)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KRelateBangumiAvCard_4x4n4o_k$(seen1, badge, stat, rating, coverRightText, serializationConstructorMarker) { + Companion_instance_263; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_250().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.badge = null; + else + $this.badge = badge; + if (0 === (seen1 & 2)) + $this.stat = null; + else + $this.stat = stat; + if (0 === (seen1 & 4)) + $this.rating = null; + else + $this.rating = rating; + if (0 === (seen1 & 8)) + $this.coverRightText = ''; + else + $this.coverRightText = coverRightText; + return $this; + } + } + class Companion_264 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.RelateAVCard'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_251(); + } + } + class $serializer_251 { + constructor() { + $serializer_instance_251 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KRelateAVCard', this, 7); + tmp0_serialDesc.addElement_5pzumi_k$('duration', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('cid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('dimension', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('stat', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('jumpUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('showUpName', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('rcmdReason', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable($serializer_getInstance_320()), get_nullable($serializer_getInstance_387()), StringSerializer_getInstance(), BooleanSerializer_getInstance(), get_nullable($serializer_getInstance_377())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = new Long(0, 0); + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = false; + var tmp10_local6 = null; + var tmp11_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp11_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_320(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_387(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp11_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_377(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + } else + while (tmp1_flag) { + tmp2_index = tmp11_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_320(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_387(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp11_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_377(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp11_input.endStructure_1xqz0n_k$(tmp0_desc); + return KRelateAVCard.new_com_bapis_bilibili_app_viewunite_common_KRelateAVCard_kyju1l_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, null); + } + serialize_2xiipy_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.duration.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.duration); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.cid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.cid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.dimension == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_320(), value.dimension); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.stat == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_387(), value.stat); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.jumpUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.jumpUrl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.showUpName === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 5, value.showUpName); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.rcmdReason == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 6, $serializer_getInstance_377(), value.rcmdReason); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_2xiipy_k$(encoder, value instanceof KRelateAVCard ? value : THROW_CCE()); + } + } + class KRelateAVCard { + constructor(duration, cid, dimension, stat, jumpUrl, showUpName, rcmdReason) { + Companion_instance_264; + duration = duration === VOID ? new Long(0, 0) : duration; + cid = cid === VOID ? new Long(0, 0) : cid; + dimension = dimension === VOID ? null : dimension; + stat = stat === VOID ? null : stat; + jumpUrl = jumpUrl === VOID ? '' : jumpUrl; + showUpName = showUpName === VOID ? false : showUpName; + rcmdReason = rcmdReason === VOID ? null : rcmdReason; + this.duration = duration; + this.cid = cid; + this.dimension = dimension; + this.stat = stat; + this.jumpUrl = jumpUrl; + this.showUpName = showUpName; + this.rcmdReason = rcmdReason; + } + get_duration_6a6kpp_k$() { + return this.duration; + } + get_cid_18j82z_k$() { + return this.cid; + } + get_dimension_9lf48z_k$() { + return this.dimension; + } + get_stat_woujdp_k$() { + return this.stat; + } + get_jumpUrl_jhqiko_k$() { + return this.jumpUrl; + } + get_showUpName_6crj9w_k$() { + return this.showUpName; + } + get_rcmdReason_lci9h1_k$() { + return this.rcmdReason; + } + component1_7eebsc_k$() { + return this.duration; + } + component2_7eebsb_k$() { + return this.cid; + } + component3_7eebsa_k$() { + return this.dimension; + } + component4_7eebs9_k$() { + return this.stat; + } + component5_7eebs8_k$() { + return this.jumpUrl; + } + component6_7eebs7_k$() { + return this.showUpName; + } + component7_7eebs6_k$() { + return this.rcmdReason; + } + copy_f24vh1_k$(duration, cid, dimension, stat, jumpUrl, showUpName, rcmdReason) { + return new KRelateAVCard(duration, cid, dimension, stat, jumpUrl, showUpName, rcmdReason); + } + copy(duration, cid, dimension, stat, jumpUrl, showUpName, rcmdReason, $super) { + duration = duration === VOID ? this.duration : duration; + cid = cid === VOID ? this.cid : cid; + dimension = dimension === VOID ? this.dimension : dimension; + stat = stat === VOID ? this.stat : stat; + jumpUrl = jumpUrl === VOID ? this.jumpUrl : jumpUrl; + showUpName = showUpName === VOID ? this.showUpName : showUpName; + rcmdReason = rcmdReason === VOID ? this.rcmdReason : rcmdReason; + return this.copy_f24vh1_k$(duration, cid, dimension, stat, jumpUrl, showUpName, rcmdReason); + } + toString() { + return 'KRelateAVCard(duration=' + this.duration.toString() + ', cid=' + this.cid.toString() + ', dimension=' + this.dimension + ', stat=' + this.stat + ', jumpUrl=' + this.jumpUrl + ', showUpName=' + this.showUpName + ', rcmdReason=' + this.rcmdReason + ')'; + } + hashCode() { + var result = this.duration.hashCode(); + result = imul(result, 31) + this.cid.hashCode() | 0; + result = imul(result, 31) + (this.dimension == null ? 0 : this.dimension.hashCode()) | 0; + result = imul(result, 31) + (this.stat == null ? 0 : this.stat.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.jumpUrl) | 0; + result = imul(result, 31) + getBooleanHashCode(this.showUpName) | 0; + result = imul(result, 31) + (this.rcmdReason == null ? 0 : this.rcmdReason.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KRelateAVCard)) + return false; + var tmp0_other_with_cast = other instanceof KRelateAVCard ? other : THROW_CCE(); + if (!this.duration.equals(tmp0_other_with_cast.duration)) + return false; + if (!this.cid.equals(tmp0_other_with_cast.cid)) + return false; + if (!equals(this.dimension, tmp0_other_with_cast.dimension)) + return false; + if (!equals(this.stat, tmp0_other_with_cast.stat)) + return false; + if (!(this.jumpUrl === tmp0_other_with_cast.jumpUrl)) + return false; + if (!(this.showUpName === tmp0_other_with_cast.showUpName)) + return false; + if (!equals(this.rcmdReason, tmp0_other_with_cast.rcmdReason)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KRelateAVCard_kyju1l_k$(seen1, duration, cid, dimension, stat, jumpUrl, showUpName, rcmdReason, serializationConstructorMarker) { + Companion_instance_264; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_251().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.duration = new Long(0, 0); + else + $this.duration = duration; + if (0 === (seen1 & 2)) + $this.cid = new Long(0, 0); + else + $this.cid = cid; + if (0 === (seen1 & 4)) + $this.dimension = null; + else + $this.dimension = dimension; + if (0 === (seen1 & 8)) + $this.stat = null; + else + $this.stat = stat; + if (0 === (seen1 & 16)) + $this.jumpUrl = ''; + else + $this.jumpUrl = jumpUrl; + if (0 === (seen1 & 32)) + $this.showUpName = false; + else + $this.showUpName = showUpName; + if (0 === (seen1 & 64)) + $this.rcmdReason = null; + else + $this.rcmdReason = rcmdReason; + return $this; + } + } + class Companion_265 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.RelateCourseCard'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_252(); + } + } + class $serializer_252 { + constructor() { + $serializer_instance_252 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KRelateCourseCard', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('duration', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('stat', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('rcmdReason', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('badgeInfo', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), get_nullable($serializer_getInstance_387()), get_nullable($serializer_getInstance_377()), get_nullable($serializer_getInstance_377())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_387(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_377(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_377(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_387(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_377(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_377(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KRelateCourseCard.new_com_bapis_bilibili_app_viewunite_common_KRelateCourseCard_4emd82_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_yuvxu4_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.duration.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.duration); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.stat == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_387(), value.stat); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.rcmdReason == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_377(), value.rcmdReason); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.badgeInfo == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_377(), value.badgeInfo); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_yuvxu4_k$(encoder, value instanceof KRelateCourseCard ? value : THROW_CCE()); + } + } + class KRelateCourseCard { + constructor(duration, stat, rcmdReason, badgeInfo) { + Companion_instance_265; + duration = duration === VOID ? new Long(0, 0) : duration; + stat = stat === VOID ? null : stat; + rcmdReason = rcmdReason === VOID ? null : rcmdReason; + badgeInfo = badgeInfo === VOID ? null : badgeInfo; + this.duration = duration; + this.stat = stat; + this.rcmdReason = rcmdReason; + this.badgeInfo = badgeInfo; + } + get_duration_6a6kpp_k$() { + return this.duration; + } + get_stat_woujdp_k$() { + return this.stat; + } + get_rcmdReason_lci9h1_k$() { + return this.rcmdReason; + } + get_badgeInfo_rkwtrs_k$() { + return this.badgeInfo; + } + component1_7eebsc_k$() { + return this.duration; + } + component2_7eebsb_k$() { + return this.stat; + } + component3_7eebsa_k$() { + return this.rcmdReason; + } + component4_7eebs9_k$() { + return this.badgeInfo; + } + copy_9lcfx5_k$(duration, stat, rcmdReason, badgeInfo) { + return new KRelateCourseCard(duration, stat, rcmdReason, badgeInfo); + } + copy(duration, stat, rcmdReason, badgeInfo, $super) { + duration = duration === VOID ? this.duration : duration; + stat = stat === VOID ? this.stat : stat; + rcmdReason = rcmdReason === VOID ? this.rcmdReason : rcmdReason; + badgeInfo = badgeInfo === VOID ? this.badgeInfo : badgeInfo; + return this.copy_9lcfx5_k$(duration, stat, rcmdReason, badgeInfo); + } + toString() { + return 'KRelateCourseCard(duration=' + this.duration.toString() + ', stat=' + this.stat + ', rcmdReason=' + this.rcmdReason + ', badgeInfo=' + this.badgeInfo + ')'; + } + hashCode() { + var result = this.duration.hashCode(); + result = imul(result, 31) + (this.stat == null ? 0 : this.stat.hashCode()) | 0; + result = imul(result, 31) + (this.rcmdReason == null ? 0 : this.rcmdReason.hashCode()) | 0; + result = imul(result, 31) + (this.badgeInfo == null ? 0 : this.badgeInfo.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KRelateCourseCard)) + return false; + var tmp0_other_with_cast = other instanceof KRelateCourseCard ? other : THROW_CCE(); + if (!this.duration.equals(tmp0_other_with_cast.duration)) + return false; + if (!equals(this.stat, tmp0_other_with_cast.stat)) + return false; + if (!equals(this.rcmdReason, tmp0_other_with_cast.rcmdReason)) + return false; + if (!equals(this.badgeInfo, tmp0_other_with_cast.badgeInfo)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KRelateCourseCard_4emd82_k$(seen1, duration, stat, rcmdReason, badgeInfo, serializationConstructorMarker) { + Companion_instance_265; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_252().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.duration = new Long(0, 0); + else + $this.duration = duration; + if (0 === (seen1 & 2)) + $this.stat = null; + else + $this.stat = stat; + if (0 === (seen1 & 4)) + $this.rcmdReason = null; + else + $this.rcmdReason = rcmdReason; + if (0 === (seen1 & 8)) + $this.badgeInfo = null; + else + $this.badgeInfo = badgeInfo; + return $this; + } + } + class Companion_266 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.RelateBangumiCard.ReportEntry'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_253(); + } + } + class $serializer_253 { + constructor() { + $serializer_instance_253 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KRelateBangumiCard.KReportEntry', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('key', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('value', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KReportEntry_2.new_com_bapis_bilibili_app_viewunite_common_KRelateBangumiCard_KReportEntry_m55cda_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_og5cu1_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.key === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.key); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.value === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.value); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_og5cu1_k$(encoder, value instanceof KReportEntry_2 ? value : THROW_CCE()); + } + } + class KReportEntry_2 { + constructor(key, value) { + Companion_instance_266; + key = key === VOID ? '' : key; + value = value === VOID ? '' : value; + this.key = key; + this.value = value; + } + get_key_18j28a_k$() { + return this.key; + } + get_value_j01efc_k$() { + return this.value; + } + component1_7eebsc_k$() { + return this.key; + } + component2_7eebsb_k$() { + return this.value; + } + copy_plwnsl_k$(key, value) { + return new KReportEntry_2(key, value); + } + copy(key, value, $super) { + key = key === VOID ? this.key : key; + value = value === VOID ? this.value : value; + return this.copy_plwnsl_k$(key, value); + } + toString() { + return 'KReportEntry(key=' + this.key + ', value=' + this.value + ')'; + } + hashCode() { + var result = getStringHashCode(this.key); + result = imul(result, 31) + getStringHashCode(this.value) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KReportEntry_2)) + return false; + var tmp0_other_with_cast = other instanceof KReportEntry_2 ? other : THROW_CCE(); + if (!(this.key === tmp0_other_with_cast.key)) + return false; + if (!(this.value === tmp0_other_with_cast.value)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KRelateBangumiCard_KReportEntry_m55cda_k$(seen1, key, value, serializationConstructorMarker) { + Companion_instance_266; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_253().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.key = ''; + else + $this.key = key; + if (0 === (seen1 & 2)) + $this.value = ''; + else + $this.value = value; + return $this; + } + } + class Companion_267 { + constructor() { + Companion_instance_267 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, null, null, null, null, null, new LinkedHashMapSerializer(StringSerializer_getInstance(), StringSerializer_getInstance())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.viewunite.common.RelateBangumiCard'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_254(); + } + } + class $serializer_254 { + constructor() { + $serializer_instance_254 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KRelateBangumiCard', this, 9); + tmp0_serialDesc.addElement_5pzumi_k$('seasonId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('seasonType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('newEp', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('stat', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('rating', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('rcmdReason', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('badgeInfo', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('gotoType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('report', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_267().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), IntSerializer_getInstance(), get_nullable($serializer_getInstance_278()), get_nullable($serializer_getInstance_387()), get_nullable($serializer_getInstance_371()), StringSerializer_getInstance(), get_nullable($serializer_getInstance_377()), StringSerializer_getInstance(), tmp0_cached[8]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = 0; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_local8 = null; + var tmp13_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp14_cached = Companion_getInstance_267().$childSerializers_1; + if (tmp13_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp13_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp13_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_278(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_387(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_371(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_377(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp13_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 8, tmp14_cached[8], tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + } else + while (tmp1_flag) { + tmp2_index = tmp13_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp13_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp13_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_278(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_387(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_371(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_377(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp13_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 8, tmp14_cached[8], tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp13_input.endStructure_1xqz0n_k$(tmp0_desc); + return KRelateBangumiCard.new_com_bapis_bilibili_app_viewunite_common_KRelateBangumiCard_g2r5w0_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, null); + } + serialize_rqfh5u_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_267().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.seasonId === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.seasonId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.seasonType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.seasonType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.newEp == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_278(), value.newEp); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.stat == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_387(), value.stat); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.rating == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, $serializer_getInstance_371(), value.rating); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.rcmdReason === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.rcmdReason); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.badgeInfo == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 6, $serializer_getInstance_377(), value.badgeInfo); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.gotoType === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.gotoType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !equals(value.report, emptyMap())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 8, tmp2_cached[8], value.report); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_rqfh5u_k$(encoder, value instanceof KRelateBangumiCard ? value : THROW_CCE()); + } + } + class KRelateBangumiCard { + constructor(seasonId, seasonType, newEp, stat, rating, rcmdReason, badgeInfo, gotoType, report) { + Companion_getInstance_267(); + seasonId = seasonId === VOID ? 0 : seasonId; + seasonType = seasonType === VOID ? 0 : seasonType; + newEp = newEp === VOID ? null : newEp; + stat = stat === VOID ? null : stat; + rating = rating === VOID ? null : rating; + rcmdReason = rcmdReason === VOID ? '' : rcmdReason; + badgeInfo = badgeInfo === VOID ? null : badgeInfo; + gotoType = gotoType === VOID ? '' : gotoType; + report = report === VOID ? emptyMap() : report; + this.seasonId = seasonId; + this.seasonType = seasonType; + this.newEp = newEp; + this.stat = stat; + this.rating = rating; + this.rcmdReason = rcmdReason; + this.badgeInfo = badgeInfo; + this.gotoType = gotoType; + this.report = report; + } + get_seasonId_h33f15_k$() { + return this.seasonId; + } + get_seasonType_bh01x6_k$() { + return this.seasonType; + } + get_newEp_ivpsn6_k$() { + return this.newEp; + } + get_stat_woujdp_k$() { + return this.stat; + } + get_rating_iw9d46_k$() { + return this.rating; + } + get_rcmdReason_lci9h1_k$() { + return this.rcmdReason; + } + get_badgeInfo_rkwtrs_k$() { + return this.badgeInfo; + } + get_gotoType_5twjye_k$() { + return this.gotoType; + } + get_report_iye43h_k$() { + return this.report; + } + component1_7eebsc_k$() { + return this.seasonId; + } + component2_7eebsb_k$() { + return this.seasonType; + } + component3_7eebsa_k$() { + return this.newEp; + } + component4_7eebs9_k$() { + return this.stat; + } + component5_7eebs8_k$() { + return this.rating; + } + component6_7eebs7_k$() { + return this.rcmdReason; + } + component7_7eebs6_k$() { + return this.badgeInfo; + } + component8_7eebs5_k$() { + return this.gotoType; + } + component9_7eebs4_k$() { + return this.report; + } + copy_kqrk8w_k$(seasonId, seasonType, newEp, stat, rating, rcmdReason, badgeInfo, gotoType, report) { + return new KRelateBangumiCard(seasonId, seasonType, newEp, stat, rating, rcmdReason, badgeInfo, gotoType, report); + } + copy(seasonId, seasonType, newEp, stat, rating, rcmdReason, badgeInfo, gotoType, report, $super) { + seasonId = seasonId === VOID ? this.seasonId : seasonId; + seasonType = seasonType === VOID ? this.seasonType : seasonType; + newEp = newEp === VOID ? this.newEp : newEp; + stat = stat === VOID ? this.stat : stat; + rating = rating === VOID ? this.rating : rating; + rcmdReason = rcmdReason === VOID ? this.rcmdReason : rcmdReason; + badgeInfo = badgeInfo === VOID ? this.badgeInfo : badgeInfo; + gotoType = gotoType === VOID ? this.gotoType : gotoType; + report = report === VOID ? this.report : report; + return this.copy_kqrk8w_k$(seasonId, seasonType, newEp, stat, rating, rcmdReason, badgeInfo, gotoType, report); + } + toString() { + return 'KRelateBangumiCard(seasonId=' + this.seasonId + ', seasonType=' + this.seasonType + ', newEp=' + this.newEp + ', stat=' + this.stat + ', rating=' + this.rating + ', rcmdReason=' + this.rcmdReason + ', badgeInfo=' + this.badgeInfo + ', gotoType=' + this.gotoType + ', report=' + this.report + ')'; + } + hashCode() { + var result = this.seasonId; + result = imul(result, 31) + this.seasonType | 0; + result = imul(result, 31) + (this.newEp == null ? 0 : this.newEp.hashCode()) | 0; + result = imul(result, 31) + (this.stat == null ? 0 : this.stat.hashCode()) | 0; + result = imul(result, 31) + (this.rating == null ? 0 : this.rating.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.rcmdReason) | 0; + result = imul(result, 31) + (this.badgeInfo == null ? 0 : this.badgeInfo.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.gotoType) | 0; + result = imul(result, 31) + hashCode(this.report) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KRelateBangumiCard)) + return false; + var tmp0_other_with_cast = other instanceof KRelateBangumiCard ? other : THROW_CCE(); + if (!(this.seasonId === tmp0_other_with_cast.seasonId)) + return false; + if (!(this.seasonType === tmp0_other_with_cast.seasonType)) + return false; + if (!equals(this.newEp, tmp0_other_with_cast.newEp)) + return false; + if (!equals(this.stat, tmp0_other_with_cast.stat)) + return false; + if (!equals(this.rating, tmp0_other_with_cast.rating)) + return false; + if (!(this.rcmdReason === tmp0_other_with_cast.rcmdReason)) + return false; + if (!equals(this.badgeInfo, tmp0_other_with_cast.badgeInfo)) + return false; + if (!(this.gotoType === tmp0_other_with_cast.gotoType)) + return false; + if (!equals(this.report, tmp0_other_with_cast.report)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KRelateBangumiCard_g2r5w0_k$(seen1, seasonId, seasonType, newEp, stat, rating, rcmdReason, badgeInfo, gotoType, report, serializationConstructorMarker) { + Companion_getInstance_267(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_254().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.seasonId = 0; + else + $this.seasonId = seasonId; + if (0 === (seen1 & 2)) + $this.seasonType = 0; + else + $this.seasonType = seasonType; + if (0 === (seen1 & 4)) + $this.newEp = null; + else + $this.newEp = newEp; + if (0 === (seen1 & 8)) + $this.stat = null; + else + $this.stat = stat; + if (0 === (seen1 & 16)) + $this.rating = null; + else + $this.rating = rating; + if (0 === (seen1 & 32)) + $this.rcmdReason = ''; + else + $this.rcmdReason = rcmdReason; + if (0 === (seen1 & 64)) + $this.badgeInfo = null; + else + $this.badgeInfo = badgeInfo; + if (0 === (seen1 & 128)) + $this.gotoType = ''; + else + $this.gotoType = gotoType; + if (0 === (seen1 & 256)) + $this.report = emptyMap(); + else + $this.report = report; + return $this; + } + } + class Companion_268 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.RelateBangumiUGCCard'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_255(); + } + } + class $serializer_255 { + constructor() { + $serializer_instance_255 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KRelateBangumiUGCCard', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('badge', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('stat', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('rating', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_377()), get_nullable($serializer_getInstance_387()), get_nullable($serializer_getInstance_371())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_377(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_387(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_371(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_377(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_387(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_371(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KRelateBangumiUGCCard.new_com_bapis_bilibili_app_viewunite_common_KRelateBangumiUGCCard_twxgx5_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_xia5rr_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.badge == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_377(), value.badge); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.stat == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_387(), value.stat); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.rating == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_371(), value.rating); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_xia5rr_k$(encoder, value instanceof KRelateBangumiUGCCard ? value : THROW_CCE()); + } + } + class KRelateBangumiUGCCard { + constructor(badge, stat, rating) { + Companion_instance_268; + badge = badge === VOID ? null : badge; + stat = stat === VOID ? null : stat; + rating = rating === VOID ? null : rating; + this.badge = badge; + this.stat = stat; + this.rating = rating; + } + get_badge_ip1cai_k$() { + return this.badge; + } + get_stat_woujdp_k$() { + return this.stat; + } + get_rating_iw9d46_k$() { + return this.rating; + } + component1_7eebsc_k$() { + return this.badge; + } + component2_7eebsb_k$() { + return this.stat; + } + component3_7eebsa_k$() { + return this.rating; + } + copy_et7l1j_k$(badge, stat, rating) { + return new KRelateBangumiUGCCard(badge, stat, rating); + } + copy(badge, stat, rating, $super) { + badge = badge === VOID ? this.badge : badge; + stat = stat === VOID ? this.stat : stat; + rating = rating === VOID ? this.rating : rating; + return this.copy_et7l1j_k$(badge, stat, rating); + } + toString() { + return 'KRelateBangumiUGCCard(badge=' + this.badge + ', stat=' + this.stat + ', rating=' + this.rating + ')'; + } + hashCode() { + var result = this.badge == null ? 0 : this.badge.hashCode(); + result = imul(result, 31) + (this.stat == null ? 0 : this.stat.hashCode()) | 0; + result = imul(result, 31) + (this.rating == null ? 0 : this.rating.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KRelateBangumiUGCCard)) + return false; + var tmp0_other_with_cast = other instanceof KRelateBangumiUGCCard ? other : THROW_CCE(); + if (!equals(this.badge, tmp0_other_with_cast.badge)) + return false; + if (!equals(this.stat, tmp0_other_with_cast.stat)) + return false; + if (!equals(this.rating, tmp0_other_with_cast.rating)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KRelateBangumiUGCCard_twxgx5_k$(seen1, badge, stat, rating, serializationConstructorMarker) { + Companion_instance_268; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_255().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.badge = null; + else + $this.badge = badge; + if (0 === (seen1 & 2)) + $this.stat = null; + else + $this.stat = stat; + if (0 === (seen1 & 4)) + $this.rating = null; + else + $this.rating = rating; + return $this; + } + } + class Companion_269 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.IconFont'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_256(); + } + } + class $serializer_256 { + constructor() { + $serializer_instance_256 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KIconFont', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('name', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('text', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KIconFont.new_com_bapis_bilibili_app_viewunite_common_KIconFont_qihi6g_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_3ie68g_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.name === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.name); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.text === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.text); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_3ie68g_k$(encoder, value instanceof KIconFont ? value : THROW_CCE()); + } + } + class KIconFont { + constructor(name, text) { + Companion_instance_269; + name = name === VOID ? '' : name; + text = text === VOID ? '' : text; + this.name = name; + this.text = text; + } + get_name_woqyms_k$() { + return this.name; + } + get_text_wouvsm_k$() { + return this.text; + } + component1_7eebsc_k$() { + return this.name; + } + component2_7eebsb_k$() { + return this.text; + } + copy_plwnsl_k$(name, text) { + return new KIconFont(name, text); + } + copy(name, text, $super) { + name = name === VOID ? this.name : name; + text = text === VOID ? this.text : text; + return this.copy_plwnsl_k$(name, text); + } + toString() { + return 'KIconFont(name=' + this.name + ', text=' + this.text + ')'; + } + hashCode() { + var result = getStringHashCode(this.name); + result = imul(result, 31) + getStringHashCode(this.text) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KIconFont)) + return false; + var tmp0_other_with_cast = other instanceof KIconFont ? other : THROW_CCE(); + if (!(this.name === tmp0_other_with_cast.name)) + return false; + if (!(this.text === tmp0_other_with_cast.text)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KIconFont_qihi6g_k$(seen1, name, text, serializationConstructorMarker) { + Companion_instance_269; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_256().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.name = ''; + else + $this.name = name; + if (0 === (seen1 & 2)) + $this.text = ''; + else + $this.text = text; + return $this; + } + } + class Companion_270 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.UserStatus'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_257(); + } + } + class $serializer_257 { + constructor() { + $serializer_instance_257 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KUserStatus', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('show', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('follow', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = 0; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KUserStatus.new_com_bapis_bilibili_app_viewunite_common_KUserStatus_wb0b2n_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_tp20r_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.show === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.show); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.follow === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.follow); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_tp20r_k$(encoder, value instanceof KUserStatus ? value : THROW_CCE()); + } + } + class KUserStatus { + constructor(show, follow) { + Companion_instance_270; + show = show === VOID ? 0 : show; + follow = follow === VOID ? 0 : follow; + this.show = show; + this.follow = follow; + } + get_show_wouati_k$() { + return this.show; + } + get_follow_df9z22_k$() { + return this.follow; + } + component1_7eebsc_k$() { + return this.show; + } + component2_7eebsb_k$() { + return this.follow; + } + copy_fhtu3_k$(show, follow) { + return new KUserStatus(show, follow); + } + copy(show, follow, $super) { + show = show === VOID ? this.show : show; + follow = follow === VOID ? this.follow : follow; + return this.copy_fhtu3_k$(show, follow); + } + toString() { + return 'KUserStatus(show=' + this.show + ', follow=' + this.follow + ')'; + } + hashCode() { + var result = this.show; + result = imul(result, 31) + this.follow | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KUserStatus)) + return false; + var tmp0_other_with_cast = other instanceof KUserStatus ? other : THROW_CCE(); + if (!(this.show === tmp0_other_with_cast.show)) + return false; + if (!(this.follow === tmp0_other_with_cast.follow)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KUserStatus_wb0b2n_k$(seen1, show, follow, serializationConstructorMarker) { + Companion_instance_270; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_257().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.show = 0; + else + $this.show = show; + if (0 === (seen1 & 2)) + $this.follow = 0; + else + $this.follow = follow; + return $this; + } + } + class Companion_271 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.RelateBangumiResourceCard.ReportEntry'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_258(); + } + } + class $serializer_258 { + constructor() { + $serializer_instance_258 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KRelateBangumiResourceCard.KReportEntry', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('key', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('value', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KReportEntry_3.new_com_bapis_bilibili_app_viewunite_common_KRelateBangumiResourceCard_KReportEntry_30qgss_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_s58a2z_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.key === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.key); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.value === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.value); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_s58a2z_k$(encoder, value instanceof KReportEntry_3 ? value : THROW_CCE()); + } + } + class KReportEntry_3 { + constructor(key, value) { + Companion_instance_271; + key = key === VOID ? '' : key; + value = value === VOID ? '' : value; + this.key = key; + this.value = value; + } + get_key_18j28a_k$() { + return this.key; + } + get_value_j01efc_k$() { + return this.value; + } + component1_7eebsc_k$() { + return this.key; + } + component2_7eebsb_k$() { + return this.value; + } + copy_plwnsl_k$(key, value) { + return new KReportEntry_3(key, value); + } + copy(key, value, $super) { + key = key === VOID ? this.key : key; + value = value === VOID ? this.value : value; + return this.copy_plwnsl_k$(key, value); + } + toString() { + return 'KReportEntry(key=' + this.key + ', value=' + this.value + ')'; + } + hashCode() { + var result = getStringHashCode(this.key); + result = imul(result, 31) + getStringHashCode(this.value) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KReportEntry_3)) + return false; + var tmp0_other_with_cast = other instanceof KReportEntry_3 ? other : THROW_CCE(); + if (!(this.key === tmp0_other_with_cast.key)) + return false; + if (!(this.value === tmp0_other_with_cast.value)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KRelateBangumiResourceCard_KReportEntry_30qgss_k$(seen1, key, value, serializationConstructorMarker) { + Companion_instance_271; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_258().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.key = ''; + else + $this.key = key; + if (0 === (seen1 & 2)) + $this.value = ''; + else + $this.value = value; + return $this; + } + } + class Companion_272 { + constructor() { + Companion_instance_272 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, null, null, null, null, null, null, null, new LinkedHashMapSerializer(StringSerializer_getInstance(), StringSerializer_getInstance()), null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.viewunite.common.RelateBangumiResourceCard'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_259(); + } + } + class $serializer_259 { + constructor() { + $serializer_instance_259 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KRelateBangumiResourceCard', this, 12); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('scover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('reType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('reValue', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('corner', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('card', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('siz', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('position', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('rcmdReason', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('label', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('report', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('gotoType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_272().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), tmp0_cached[10], StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = null; + var tmp6_local2 = 0; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = 0; + var tmp10_local6 = null; + var tmp11_local7 = 0; + var tmp12_local8 = null; + var tmp13_local9 = null; + var tmp14_local10 = null; + var tmp15_local11 = null; + var tmp16_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp17_cached = Companion_getInstance_272().$childSerializers_1; + if (tmp16_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp16_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 10, tmp17_cached[10], tmp14_local10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + } else + while (tmp1_flag) { + tmp2_index = tmp16_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp16_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 10, tmp17_cached[10], tmp14_local10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp16_input.endStructure_1xqz0n_k$(tmp0_desc); + return KRelateBangumiResourceCard.new_com_bapis_bilibili_app_viewunite_common_KRelateBangumiResourceCard_zdlxbw_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, null); + } + serialize_mne4c0_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_272().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.type === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.type); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.scover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.scover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.reType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.reType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.reValue === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.reValue); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.corner === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.corner); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.card === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 5, value.card); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.siz === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.siz); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.position === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 7, value.position); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.rcmdReason === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 8, value.rcmdReason); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.label === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 9, value.label); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !equals(value.report, emptyMap())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 10, tmp2_cached[10], value.report); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.gotoType === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 11, value.gotoType); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_mne4c0_k$(encoder, value instanceof KRelateBangumiResourceCard ? value : THROW_CCE()); + } + } + class KRelateBangumiResourceCard { + constructor(type, scover, reType, reValue, corner, card, siz, position, rcmdReason, label, report, gotoType) { + Companion_getInstance_272(); + type = type === VOID ? 0 : type; + scover = scover === VOID ? '' : scover; + reType = reType === VOID ? 0 : reType; + reValue = reValue === VOID ? '' : reValue; + corner = corner === VOID ? '' : corner; + card = card === VOID ? 0 : card; + siz = siz === VOID ? '' : siz; + position = position === VOID ? 0 : position; + rcmdReason = rcmdReason === VOID ? '' : rcmdReason; + label = label === VOID ? '' : label; + report = report === VOID ? emptyMap() : report; + gotoType = gotoType === VOID ? '' : gotoType; + this.type = type; + this.scover = scover; + this.reType = reType; + this.reValue = reValue; + this.corner = corner; + this.card = card; + this.siz = siz; + this.position = position; + this.rcmdReason = rcmdReason; + this.label = label; + this.report = report; + this.gotoType = gotoType; + } + get_type_wovaf7_k$() { + return this.type; + } + get_scover_jebn71_k$() { + return this.scover; + } + get_reType_ixwfti_k$() { + return this.reType; + } + get_reValue_iypdlh_k$() { + return this.reValue; + } + get_corner_c08z1a_k$() { + return this.corner; + } + get_card_wojxw9_k$() { + return this.card; + } + get_siz_18iw79_k$() { + return this.siz; + } + get_position_jfponi_k$() { + return this.position; + } + get_rcmdReason_lci9h1_k$() { + return this.rcmdReason; + } + get_label_iuj8p7_k$() { + return this.label; + } + get_report_iye43h_k$() { + return this.report; + } + get_gotoType_5twjye_k$() { + return this.gotoType; + } + component1_7eebsc_k$() { + return this.type; + } + component2_7eebsb_k$() { + return this.scover; + } + component3_7eebsa_k$() { + return this.reType; + } + component4_7eebs9_k$() { + return this.reValue; + } + component5_7eebs8_k$() { + return this.corner; + } + component6_7eebs7_k$() { + return this.card; + } + component7_7eebs6_k$() { + return this.siz; + } + component8_7eebs5_k$() { + return this.position; + } + component9_7eebs4_k$() { + return this.rcmdReason; + } + component10_gazzfo_k$() { + return this.label; + } + component11_gazzfn_k$() { + return this.report; + } + component12_gazzfm_k$() { + return this.gotoType; + } + copy_44wzb7_k$(type, scover, reType, reValue, corner, card, siz, position, rcmdReason, label, report, gotoType) { + return new KRelateBangumiResourceCard(type, scover, reType, reValue, corner, card, siz, position, rcmdReason, label, report, gotoType); + } + copy(type, scover, reType, reValue, corner, card, siz, position, rcmdReason, label, report, gotoType, $super) { + type = type === VOID ? this.type : type; + scover = scover === VOID ? this.scover : scover; + reType = reType === VOID ? this.reType : reType; + reValue = reValue === VOID ? this.reValue : reValue; + corner = corner === VOID ? this.corner : corner; + card = card === VOID ? this.card : card; + siz = siz === VOID ? this.siz : siz; + position = position === VOID ? this.position : position; + rcmdReason = rcmdReason === VOID ? this.rcmdReason : rcmdReason; + label = label === VOID ? this.label : label; + report = report === VOID ? this.report : report; + gotoType = gotoType === VOID ? this.gotoType : gotoType; + return this.copy_44wzb7_k$(type, scover, reType, reValue, corner, card, siz, position, rcmdReason, label, report, gotoType); + } + toString() { + return 'KRelateBangumiResourceCard(type=' + this.type + ', scover=' + this.scover + ', reType=' + this.reType + ', reValue=' + this.reValue + ', corner=' + this.corner + ', card=' + this.card + ', siz=' + this.siz + ', position=' + this.position + ', rcmdReason=' + this.rcmdReason + ', label=' + this.label + ', report=' + this.report + ', gotoType=' + this.gotoType + ')'; + } + hashCode() { + var result = this.type; + result = imul(result, 31) + getStringHashCode(this.scover) | 0; + result = imul(result, 31) + this.reType | 0; + result = imul(result, 31) + getStringHashCode(this.reValue) | 0; + result = imul(result, 31) + getStringHashCode(this.corner) | 0; + result = imul(result, 31) + this.card | 0; + result = imul(result, 31) + getStringHashCode(this.siz) | 0; + result = imul(result, 31) + this.position | 0; + result = imul(result, 31) + getStringHashCode(this.rcmdReason) | 0; + result = imul(result, 31) + getStringHashCode(this.label) | 0; + result = imul(result, 31) + hashCode(this.report) | 0; + result = imul(result, 31) + getStringHashCode(this.gotoType) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KRelateBangumiResourceCard)) + return false; + var tmp0_other_with_cast = other instanceof KRelateBangumiResourceCard ? other : THROW_CCE(); + if (!(this.type === tmp0_other_with_cast.type)) + return false; + if (!(this.scover === tmp0_other_with_cast.scover)) + return false; + if (!(this.reType === tmp0_other_with_cast.reType)) + return false; + if (!(this.reValue === tmp0_other_with_cast.reValue)) + return false; + if (!(this.corner === tmp0_other_with_cast.corner)) + return false; + if (!(this.card === tmp0_other_with_cast.card)) + return false; + if (!(this.siz === tmp0_other_with_cast.siz)) + return false; + if (!(this.position === tmp0_other_with_cast.position)) + return false; + if (!(this.rcmdReason === tmp0_other_with_cast.rcmdReason)) + return false; + if (!(this.label === tmp0_other_with_cast.label)) + return false; + if (!equals(this.report, tmp0_other_with_cast.report)) + return false; + if (!(this.gotoType === tmp0_other_with_cast.gotoType)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KRelateBangumiResourceCard_zdlxbw_k$(seen1, type, scover, reType, reValue, corner, card, siz, position, rcmdReason, label, report, gotoType, serializationConstructorMarker) { + Companion_getInstance_272(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_259().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.type = 0; + else + $this.type = type; + if (0 === (seen1 & 2)) + $this.scover = ''; + else + $this.scover = scover; + if (0 === (seen1 & 4)) + $this.reType = 0; + else + $this.reType = reType; + if (0 === (seen1 & 8)) + $this.reValue = ''; + else + $this.reValue = reValue; + if (0 === (seen1 & 16)) + $this.corner = ''; + else + $this.corner = corner; + if (0 === (seen1 & 32)) + $this.card = 0; + else + $this.card = card; + if (0 === (seen1 & 64)) + $this.siz = ''; + else + $this.siz = siz; + if (0 === (seen1 & 128)) + $this.position = 0; + else + $this.position = position; + if (0 === (seen1 & 256)) + $this.rcmdReason = ''; + else + $this.rcmdReason = rcmdReason; + if (0 === (seen1 & 512)) + $this.label = ''; + else + $this.label = label; + if (0 === (seen1 & 1024)) + $this.report = emptyMap(); + else + $this.report = report; + if (0 === (seen1 & 2048)) + $this.gotoType = ''; + else + $this.gotoType = gotoType; + return $this; + } + } + class Companion_273 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.RelateGameCard'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_260(); + } + } + class $serializer_260 { + constructor() { + $serializer_instance_260 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KRelateGameCard', this, 12); + tmp0_serialDesc.addElement_5pzumi_k$('reserveStatus', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('reserveStatusText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('reserve', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('rating', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('tagName', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('rankInfo', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('packInfo', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('notice', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('powerIconStyle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('gameRcmdReason', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('wikiInfo', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('badge', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), FloatSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_263()), get_nullable($serializer_getInstance_284()), get_nullable($serializer_getInstance_284()), get_nullable($serializer_getInstance_262()), StringSerializer_getInstance(), get_nullable($serializer_getInstance_261()), get_nullable($serializer_getInstance_377())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = 0.0; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_local8 = null; + var tmp13_local9 = null; + var tmp14_local10 = null; + var tmp15_local11 = null; + var tmp16_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp16_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp16_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp16_input.decodeFloatElement_p2q55h_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp16_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_263(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp16_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_284(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp16_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_284(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp16_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_262(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp16_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 10, $serializer_getInstance_261(), tmp14_local10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp16_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 11, $serializer_getInstance_377(), tmp15_local11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + } else + while (tmp1_flag) { + tmp2_index = tmp16_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp16_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp16_input.decodeFloatElement_p2q55h_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp16_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_263(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp16_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_284(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp16_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_284(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp16_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_262(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp16_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 10, $serializer_getInstance_261(), tmp14_local10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp16_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 11, $serializer_getInstance_377(), tmp15_local11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp16_input.endStructure_1xqz0n_k$(tmp0_desc); + return KRelateGameCard.new_com_bapis_bilibili_app_viewunite_common_KRelateGameCard_igy8tl_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, null); + } + serialize_839gzh_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.reserveStatus.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.reserveStatus); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.reserveStatusText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.reserveStatusText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.reserve === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.reserve); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !equals(value.rating, 0.0)) { + tmp1_output.encodeFloatElement_oe8hn_k$(tmp0_desc, 3, value.rating); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.tagName === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.tagName); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.rankInfo == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 5, $serializer_getInstance_263(), value.rankInfo); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.packInfo == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 6, $serializer_getInstance_284(), value.packInfo); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.notice == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 7, $serializer_getInstance_284(), value.notice); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.powerIconStyle == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 8, $serializer_getInstance_262(), value.powerIconStyle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.gameRcmdReason === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 9, value.gameRcmdReason); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.wikiInfo == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 10, $serializer_getInstance_261(), value.wikiInfo); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.badge == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 11, $serializer_getInstance_377(), value.badge); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_839gzh_k$(encoder, value instanceof KRelateGameCard ? value : THROW_CCE()); + } + } + class KRelateGameCard { + constructor(reserveStatus, reserveStatusText, reserve, rating, tagName, rankInfo, packInfo, notice, powerIconStyle, gameRcmdReason, wikiInfo, badge) { + Companion_instance_273; + reserveStatus = reserveStatus === VOID ? new Long(0, 0) : reserveStatus; + reserveStatusText = reserveStatusText === VOID ? '' : reserveStatusText; + reserve = reserve === VOID ? '' : reserve; + rating = rating === VOID ? 0.0 : rating; + tagName = tagName === VOID ? '' : tagName; + rankInfo = rankInfo === VOID ? null : rankInfo; + packInfo = packInfo === VOID ? null : packInfo; + notice = notice === VOID ? null : notice; + powerIconStyle = powerIconStyle === VOID ? null : powerIconStyle; + gameRcmdReason = gameRcmdReason === VOID ? '' : gameRcmdReason; + wikiInfo = wikiInfo === VOID ? null : wikiInfo; + badge = badge === VOID ? null : badge; + this.reserveStatus = reserveStatus; + this.reserveStatusText = reserveStatusText; + this.reserve = reserve; + this.rating = rating; + this.tagName = tagName; + this.rankInfo = rankInfo; + this.packInfo = packInfo; + this.notice = notice; + this.powerIconStyle = powerIconStyle; + this.gameRcmdReason = gameRcmdReason; + this.wikiInfo = wikiInfo; + this.badge = badge; + } + get_reserveStatus_aixxej_k$() { + return this.reserveStatus; + } + get_reserveStatusText_kiu7m_k$() { + return this.reserveStatusText; + } + get_reserve_jeq383_k$() { + return this.reserve; + } + get_rating_iw9d46_k$() { + return this.rating; + } + get_tagName_ocsgis_k$() { + return this.tagName; + } + get_rankInfo_rkohfh_k$() { + return this.rankInfo; + } + get_packInfo_jeb7ww_k$() { + return this.packInfo; + } + get_notice_h7rzkx_k$() { + return this.notice; + } + get_powerIconStyle_3qviro_k$() { + return this.powerIconStyle; + } + get_gameRcmdReason_f4xldl_k$() { + return this.gameRcmdReason; + } + get_wikiInfo_jf1jd3_k$() { + return this.wikiInfo; + } + get_badge_ip1cai_k$() { + return this.badge; + } + component1_7eebsc_k$() { + return this.reserveStatus; + } + component2_7eebsb_k$() { + return this.reserveStatusText; + } + component3_7eebsa_k$() { + return this.reserve; + } + component4_7eebs9_k$() { + return this.rating; + } + component5_7eebs8_k$() { + return this.tagName; + } + component6_7eebs7_k$() { + return this.rankInfo; + } + component7_7eebs6_k$() { + return this.packInfo; + } + component8_7eebs5_k$() { + return this.notice; + } + component9_7eebs4_k$() { + return this.powerIconStyle; + } + component10_gazzfo_k$() { + return this.gameRcmdReason; + } + component11_gazzfn_k$() { + return this.wikiInfo; + } + component12_gazzfm_k$() { + return this.badge; + } + copy_vdpisr_k$(reserveStatus, reserveStatusText, reserve, rating, tagName, rankInfo, packInfo, notice, powerIconStyle, gameRcmdReason, wikiInfo, badge) { + return new KRelateGameCard(reserveStatus, reserveStatusText, reserve, rating, tagName, rankInfo, packInfo, notice, powerIconStyle, gameRcmdReason, wikiInfo, badge); + } + copy(reserveStatus, reserveStatusText, reserve, rating, tagName, rankInfo, packInfo, notice, powerIconStyle, gameRcmdReason, wikiInfo, badge, $super) { + reserveStatus = reserveStatus === VOID ? this.reserveStatus : reserveStatus; + reserveStatusText = reserveStatusText === VOID ? this.reserveStatusText : reserveStatusText; + reserve = reserve === VOID ? this.reserve : reserve; + rating = rating === VOID ? this.rating : rating; + tagName = tagName === VOID ? this.tagName : tagName; + rankInfo = rankInfo === VOID ? this.rankInfo : rankInfo; + packInfo = packInfo === VOID ? this.packInfo : packInfo; + notice = notice === VOID ? this.notice : notice; + powerIconStyle = powerIconStyle === VOID ? this.powerIconStyle : powerIconStyle; + gameRcmdReason = gameRcmdReason === VOID ? this.gameRcmdReason : gameRcmdReason; + wikiInfo = wikiInfo === VOID ? this.wikiInfo : wikiInfo; + badge = badge === VOID ? this.badge : badge; + return this.copy_vdpisr_k$(reserveStatus, reserveStatusText, reserve, rating, tagName, rankInfo, packInfo, notice, powerIconStyle, gameRcmdReason, wikiInfo, badge); + } + toString() { + return 'KRelateGameCard(reserveStatus=' + this.reserveStatus.toString() + ', reserveStatusText=' + this.reserveStatusText + ', reserve=' + this.reserve + ', rating=' + this.rating + ', tagName=' + this.tagName + ', rankInfo=' + this.rankInfo + ', packInfo=' + this.packInfo + ', notice=' + this.notice + ', powerIconStyle=' + this.powerIconStyle + ', gameRcmdReason=' + this.gameRcmdReason + ', wikiInfo=' + this.wikiInfo + ', badge=' + this.badge + ')'; + } + hashCode() { + var result = this.reserveStatus.hashCode(); + result = imul(result, 31) + getStringHashCode(this.reserveStatusText) | 0; + result = imul(result, 31) + getStringHashCode(this.reserve) | 0; + result = imul(result, 31) + getNumberHashCode(this.rating) | 0; + result = imul(result, 31) + getStringHashCode(this.tagName) | 0; + result = imul(result, 31) + (this.rankInfo == null ? 0 : this.rankInfo.hashCode()) | 0; + result = imul(result, 31) + (this.packInfo == null ? 0 : this.packInfo.hashCode()) | 0; + result = imul(result, 31) + (this.notice == null ? 0 : this.notice.hashCode()) | 0; + result = imul(result, 31) + (this.powerIconStyle == null ? 0 : this.powerIconStyle.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.gameRcmdReason) | 0; + result = imul(result, 31) + (this.wikiInfo == null ? 0 : this.wikiInfo.hashCode()) | 0; + result = imul(result, 31) + (this.badge == null ? 0 : this.badge.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KRelateGameCard)) + return false; + var tmp0_other_with_cast = other instanceof KRelateGameCard ? other : THROW_CCE(); + if (!this.reserveStatus.equals(tmp0_other_with_cast.reserveStatus)) + return false; + if (!(this.reserveStatusText === tmp0_other_with_cast.reserveStatusText)) + return false; + if (!(this.reserve === tmp0_other_with_cast.reserve)) + return false; + if (!equals(this.rating, tmp0_other_with_cast.rating)) + return false; + if (!(this.tagName === tmp0_other_with_cast.tagName)) + return false; + if (!equals(this.rankInfo, tmp0_other_with_cast.rankInfo)) + return false; + if (!equals(this.packInfo, tmp0_other_with_cast.packInfo)) + return false; + if (!equals(this.notice, tmp0_other_with_cast.notice)) + return false; + if (!equals(this.powerIconStyle, tmp0_other_with_cast.powerIconStyle)) + return false; + if (!(this.gameRcmdReason === tmp0_other_with_cast.gameRcmdReason)) + return false; + if (!equals(this.wikiInfo, tmp0_other_with_cast.wikiInfo)) + return false; + if (!equals(this.badge, tmp0_other_with_cast.badge)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KRelateGameCard_igy8tl_k$(seen1, reserveStatus, reserveStatusText, reserve, rating, tagName, rankInfo, packInfo, notice, powerIconStyle, gameRcmdReason, wikiInfo, badge, serializationConstructorMarker) { + Companion_instance_273; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_260().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.reserveStatus = new Long(0, 0); + else + $this.reserveStatus = reserveStatus; + if (0 === (seen1 & 2)) + $this.reserveStatusText = ''; + else + $this.reserveStatusText = reserveStatusText; + if (0 === (seen1 & 4)) + $this.reserve = ''; + else + $this.reserve = reserve; + if (0 === (seen1 & 8)) + $this.rating = 0.0; + else + $this.rating = rating; + if (0 === (seen1 & 16)) + $this.tagName = ''; + else + $this.tagName = tagName; + if (0 === (seen1 & 32)) + $this.rankInfo = null; + else + $this.rankInfo = rankInfo; + if (0 === (seen1 & 64)) + $this.packInfo = null; + else + $this.packInfo = packInfo; + if (0 === (seen1 & 128)) + $this.notice = null; + else + $this.notice = notice; + if (0 === (seen1 & 256)) + $this.powerIconStyle = null; + else + $this.powerIconStyle = powerIconStyle; + if (0 === (seen1 & 512)) + $this.gameRcmdReason = ''; + else + $this.gameRcmdReason = gameRcmdReason; + if (0 === (seen1 & 1024)) + $this.wikiInfo = null; + else + $this.wikiInfo = wikiInfo; + if (0 === (seen1 & 2048)) + $this.badge = null; + else + $this.badge = badge; + return $this; + } + } + class Companion_274 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.WikiInfo'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_261(); + } + } + class $serializer_261 { + constructor() { + $serializer_instance_261 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KWikiInfo', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('wikiLabel', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('wikiUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KWikiInfo.new_com_bapis_bilibili_app_viewunite_common_KWikiInfo_cz29i6_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_jb37pi_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.wikiLabel === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.wikiLabel); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.wikiUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.wikiUrl); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_jb37pi_k$(encoder, value instanceof KWikiInfo ? value : THROW_CCE()); + } + } + class KWikiInfo { + constructor(wikiLabel, wikiUrl) { + Companion_instance_274; + wikiLabel = wikiLabel === VOID ? '' : wikiLabel; + wikiUrl = wikiUrl === VOID ? '' : wikiUrl; + this.wikiLabel = wikiLabel; + this.wikiUrl = wikiUrl; + } + get_wikiLabel_xqu8aj_k$() { + return this.wikiLabel; + } + get_wikiUrl_njfjjq_k$() { + return this.wikiUrl; + } + component1_7eebsc_k$() { + return this.wikiLabel; + } + component2_7eebsb_k$() { + return this.wikiUrl; + } + copy_plwnsl_k$(wikiLabel, wikiUrl) { + return new KWikiInfo(wikiLabel, wikiUrl); + } + copy(wikiLabel, wikiUrl, $super) { + wikiLabel = wikiLabel === VOID ? this.wikiLabel : wikiLabel; + wikiUrl = wikiUrl === VOID ? this.wikiUrl : wikiUrl; + return this.copy_plwnsl_k$(wikiLabel, wikiUrl); + } + toString() { + return 'KWikiInfo(wikiLabel=' + this.wikiLabel + ', wikiUrl=' + this.wikiUrl + ')'; + } + hashCode() { + var result = getStringHashCode(this.wikiLabel); + result = imul(result, 31) + getStringHashCode(this.wikiUrl) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KWikiInfo)) + return false; + var tmp0_other_with_cast = other instanceof KWikiInfo ? other : THROW_CCE(); + if (!(this.wikiLabel === tmp0_other_with_cast.wikiLabel)) + return false; + if (!(this.wikiUrl === tmp0_other_with_cast.wikiUrl)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KWikiInfo_cz29i6_k$(seen1, wikiLabel, wikiUrl, serializationConstructorMarker) { + Companion_instance_274; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_261().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.wikiLabel = ''; + else + $this.wikiLabel = wikiLabel; + if (0 === (seen1 & 2)) + $this.wikiUrl = ''; + else + $this.wikiUrl = wikiUrl; + return $this; + } + } + class Companion_275 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.PowerIconStyle'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_262(); + } + } + class $serializer_262 { + constructor() { + $serializer_instance_262 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KPowerIconStyle', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('iconUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('iconNightUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('iconWidth', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('iconHeight', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = new Long(0, 0); + var tmp7_local3 = new Long(0, 0); + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KPowerIconStyle.new_com_bapis_bilibili_app_viewunite_common_KPowerIconStyle_w5uqq1_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_hyxhnp_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.iconUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.iconUrl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.iconNightUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.iconNightUrl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.iconWidth.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.iconWidth); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !value.iconHeight.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 3, value.iconHeight); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_hyxhnp_k$(encoder, value instanceof KPowerIconStyle ? value : THROW_CCE()); + } + } + class KPowerIconStyle { + constructor(iconUrl, iconNightUrl, iconWidth, iconHeight) { + Companion_instance_275; + iconUrl = iconUrl === VOID ? '' : iconUrl; + iconNightUrl = iconNightUrl === VOID ? '' : iconNightUrl; + iconWidth = iconWidth === VOID ? new Long(0, 0) : iconWidth; + iconHeight = iconHeight === VOID ? new Long(0, 0) : iconHeight; + this.iconUrl = iconUrl; + this.iconNightUrl = iconNightUrl; + this.iconWidth = iconWidth; + this.iconHeight = iconHeight; + } + get_iconUrl_sd8dal_k$() { + return this.iconUrl; + } + get_iconNightUrl_yl8yzd_k$() { + return this.iconNightUrl; + } + get_iconWidth_elwfrw_k$() { + return this.iconWidth; + } + get_iconHeight_xu1u2f_k$() { + return this.iconHeight; + } + component1_7eebsc_k$() { + return this.iconUrl; + } + component2_7eebsb_k$() { + return this.iconNightUrl; + } + component3_7eebsa_k$() { + return this.iconWidth; + } + component4_7eebs9_k$() { + return this.iconHeight; + } + copy_i44701_k$(iconUrl, iconNightUrl, iconWidth, iconHeight) { + return new KPowerIconStyle(iconUrl, iconNightUrl, iconWidth, iconHeight); + } + copy(iconUrl, iconNightUrl, iconWidth, iconHeight, $super) { + iconUrl = iconUrl === VOID ? this.iconUrl : iconUrl; + iconNightUrl = iconNightUrl === VOID ? this.iconNightUrl : iconNightUrl; + iconWidth = iconWidth === VOID ? this.iconWidth : iconWidth; + iconHeight = iconHeight === VOID ? this.iconHeight : iconHeight; + return this.copy_i44701_k$(iconUrl, iconNightUrl, iconWidth, iconHeight); + } + toString() { + return 'KPowerIconStyle(iconUrl=' + this.iconUrl + ', iconNightUrl=' + this.iconNightUrl + ', iconWidth=' + this.iconWidth.toString() + ', iconHeight=' + this.iconHeight.toString() + ')'; + } + hashCode() { + var result = getStringHashCode(this.iconUrl); + result = imul(result, 31) + getStringHashCode(this.iconNightUrl) | 0; + result = imul(result, 31) + this.iconWidth.hashCode() | 0; + result = imul(result, 31) + this.iconHeight.hashCode() | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KPowerIconStyle)) + return false; + var tmp0_other_with_cast = other instanceof KPowerIconStyle ? other : THROW_CCE(); + if (!(this.iconUrl === tmp0_other_with_cast.iconUrl)) + return false; + if (!(this.iconNightUrl === tmp0_other_with_cast.iconNightUrl)) + return false; + if (!this.iconWidth.equals(tmp0_other_with_cast.iconWidth)) + return false; + if (!this.iconHeight.equals(tmp0_other_with_cast.iconHeight)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KPowerIconStyle_w5uqq1_k$(seen1, iconUrl, iconNightUrl, iconWidth, iconHeight, serializationConstructorMarker) { + Companion_instance_275; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_262().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.iconUrl = ''; + else + $this.iconUrl = iconUrl; + if (0 === (seen1 & 2)) + $this.iconNightUrl = ''; + else + $this.iconNightUrl = iconNightUrl; + if (0 === (seen1 & 4)) + $this.iconWidth = new Long(0, 0); + else + $this.iconWidth = iconWidth; + if (0 === (seen1 & 8)) + $this.iconHeight = new Long(0, 0); + else + $this.iconHeight = iconHeight; + return $this; + } + } + class Companion_276 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.RankInfo'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_263(); + } + } + class $serializer_263 { + constructor() { + $serializer_instance_263 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KRankInfo', this, 8); + tmp0_serialDesc.addElement_5pzumi_k$('iconUrlNight', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('iconUrlDay', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('bkgNightColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('bkgDayColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('fontNightColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('fontDayColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('rankContent', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('rankLink', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp12_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + } else + while (tmp1_flag) { + tmp2_index = tmp12_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp12_input.endStructure_1xqz0n_k$(tmp0_desc); + return KRankInfo.new_com_bapis_bilibili_app_viewunite_common_KRankInfo_u4p9l0_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null); + } + serialize_opwsvy_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.iconUrlNight === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.iconUrlNight); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.iconUrlDay === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.iconUrlDay); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.bkgNightColor === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.bkgNightColor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.bkgDayColor === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.bkgDayColor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.fontNightColor === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.fontNightColor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.fontDayColor === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.fontDayColor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.rankContent === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.rankContent); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.rankLink === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.rankLink); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_opwsvy_k$(encoder, value instanceof KRankInfo ? value : THROW_CCE()); + } + } + class KRankInfo { + constructor(iconUrlNight, iconUrlDay, bkgNightColor, bkgDayColor, fontNightColor, fontDayColor, rankContent, rankLink) { + Companion_instance_276; + iconUrlNight = iconUrlNight === VOID ? '' : iconUrlNight; + iconUrlDay = iconUrlDay === VOID ? '' : iconUrlDay; + bkgNightColor = bkgNightColor === VOID ? '' : bkgNightColor; + bkgDayColor = bkgDayColor === VOID ? '' : bkgDayColor; + fontNightColor = fontNightColor === VOID ? '' : fontNightColor; + fontDayColor = fontDayColor === VOID ? '' : fontDayColor; + rankContent = rankContent === VOID ? '' : rankContent; + rankLink = rankLink === VOID ? '' : rankLink; + this.iconUrlNight = iconUrlNight; + this.iconUrlDay = iconUrlDay; + this.bkgNightColor = bkgNightColor; + this.bkgDayColor = bkgDayColor; + this.fontNightColor = fontNightColor; + this.fontDayColor = fontDayColor; + this.rankContent = rankContent; + this.rankLink = rankLink; + } + get_iconUrlNight_f9ddcb_k$() { + return this.iconUrlNight; + } + get_iconUrlDay_rha8dt_k$() { + return this.iconUrlDay; + } + get_bkgNightColor_janehs_k$() { + return this.bkgNightColor; + } + get_bkgDayColor_t7jod8_k$() { + return this.bkgDayColor; + } + get_fontNightColor_2021i5_k$() { + return this.fontNightColor; + } + get_fontDayColor_l65of3_k$() { + return this.fontDayColor; + } + get_rankContent_edddx8_k$() { + return this.rankContent; + } + get_rankLink_rkmnzl_k$() { + return this.rankLink; + } + component1_7eebsc_k$() { + return this.iconUrlNight; + } + component2_7eebsb_k$() { + return this.iconUrlDay; + } + component3_7eebsa_k$() { + return this.bkgNightColor; + } + component4_7eebs9_k$() { + return this.bkgDayColor; + } + component5_7eebs8_k$() { + return this.fontNightColor; + } + component6_7eebs7_k$() { + return this.fontDayColor; + } + component7_7eebs6_k$() { + return this.rankContent; + } + component8_7eebs5_k$() { + return this.rankLink; + } + copy_akmpvv_k$(iconUrlNight, iconUrlDay, bkgNightColor, bkgDayColor, fontNightColor, fontDayColor, rankContent, rankLink) { + return new KRankInfo(iconUrlNight, iconUrlDay, bkgNightColor, bkgDayColor, fontNightColor, fontDayColor, rankContent, rankLink); + } + copy(iconUrlNight, iconUrlDay, bkgNightColor, bkgDayColor, fontNightColor, fontDayColor, rankContent, rankLink, $super) { + iconUrlNight = iconUrlNight === VOID ? this.iconUrlNight : iconUrlNight; + iconUrlDay = iconUrlDay === VOID ? this.iconUrlDay : iconUrlDay; + bkgNightColor = bkgNightColor === VOID ? this.bkgNightColor : bkgNightColor; + bkgDayColor = bkgDayColor === VOID ? this.bkgDayColor : bkgDayColor; + fontNightColor = fontNightColor === VOID ? this.fontNightColor : fontNightColor; + fontDayColor = fontDayColor === VOID ? this.fontDayColor : fontDayColor; + rankContent = rankContent === VOID ? this.rankContent : rankContent; + rankLink = rankLink === VOID ? this.rankLink : rankLink; + return this.copy_akmpvv_k$(iconUrlNight, iconUrlDay, bkgNightColor, bkgDayColor, fontNightColor, fontDayColor, rankContent, rankLink); + } + toString() { + return 'KRankInfo(iconUrlNight=' + this.iconUrlNight + ', iconUrlDay=' + this.iconUrlDay + ', bkgNightColor=' + this.bkgNightColor + ', bkgDayColor=' + this.bkgDayColor + ', fontNightColor=' + this.fontNightColor + ', fontDayColor=' + this.fontDayColor + ', rankContent=' + this.rankContent + ', rankLink=' + this.rankLink + ')'; + } + hashCode() { + var result = getStringHashCode(this.iconUrlNight); + result = imul(result, 31) + getStringHashCode(this.iconUrlDay) | 0; + result = imul(result, 31) + getStringHashCode(this.bkgNightColor) | 0; + result = imul(result, 31) + getStringHashCode(this.bkgDayColor) | 0; + result = imul(result, 31) + getStringHashCode(this.fontNightColor) | 0; + result = imul(result, 31) + getStringHashCode(this.fontDayColor) | 0; + result = imul(result, 31) + getStringHashCode(this.rankContent) | 0; + result = imul(result, 31) + getStringHashCode(this.rankLink) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KRankInfo)) + return false; + var tmp0_other_with_cast = other instanceof KRankInfo ? other : THROW_CCE(); + if (!(this.iconUrlNight === tmp0_other_with_cast.iconUrlNight)) + return false; + if (!(this.iconUrlDay === tmp0_other_with_cast.iconUrlDay)) + return false; + if (!(this.bkgNightColor === tmp0_other_with_cast.bkgNightColor)) + return false; + if (!(this.bkgDayColor === tmp0_other_with_cast.bkgDayColor)) + return false; + if (!(this.fontNightColor === tmp0_other_with_cast.fontNightColor)) + return false; + if (!(this.fontDayColor === tmp0_other_with_cast.fontDayColor)) + return false; + if (!(this.rankContent === tmp0_other_with_cast.rankContent)) + return false; + if (!(this.rankLink === tmp0_other_with_cast.rankLink)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KRankInfo_u4p9l0_k$(seen1, iconUrlNight, iconUrlDay, bkgNightColor, bkgDayColor, fontNightColor, fontDayColor, rankContent, rankLink, serializationConstructorMarker) { + Companion_instance_276; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_263().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.iconUrlNight = ''; + else + $this.iconUrlNight = iconUrlNight; + if (0 === (seen1 & 2)) + $this.iconUrlDay = ''; + else + $this.iconUrlDay = iconUrlDay; + if (0 === (seen1 & 4)) + $this.bkgNightColor = ''; + else + $this.bkgNightColor = bkgNightColor; + if (0 === (seen1 & 8)) + $this.bkgDayColor = ''; + else + $this.bkgDayColor = bkgDayColor; + if (0 === (seen1 & 16)) + $this.fontNightColor = ''; + else + $this.fontNightColor = fontNightColor; + if (0 === (seen1 & 32)) + $this.fontDayColor = ''; + else + $this.fontDayColor = fontDayColor; + if (0 === (seen1 & 64)) + $this.rankContent = ''; + else + $this.rankContent = rankContent; + if (0 === (seen1 & 128)) + $this.rankLink = ''; + else + $this.rankLink = rankLink; + return $this; + } + } + class Companion_277 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.RelateCMCard'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_264(); + } + } + class $serializer_264 { + constructor() { + $serializer_instance_264 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KRelateCMCard', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('aid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('sourceContent', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('duration', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('stat', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), get_nullable($serializer_getInstance()), LongSerializer_getInstance(), get_nullable($serializer_getInstance_387())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_local2 = new Long(0, 0); + var tmp7_local3 = null; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_387(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_387(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KRelateCMCard.new_com_bapis_bilibili_app_viewunite_common_KRelateCMCard_uucldf_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_axta05_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.aid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.aid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.sourceContent == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance(), value.sourceContent); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.duration.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.duration); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.stat == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_387(), value.stat); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_axta05_k$(encoder, value instanceof KRelateCMCard ? value : THROW_CCE()); + } + } + class KRelateCMCard { + constructor(aid, sourceContent, duration, stat) { + Companion_instance_277; + aid = aid === VOID ? new Long(0, 0) : aid; + sourceContent = sourceContent === VOID ? null : sourceContent; + duration = duration === VOID ? new Long(0, 0) : duration; + stat = stat === VOID ? null : stat; + this.aid = aid; + this.sourceContent = sourceContent; + this.duration = duration; + this.stat = stat; + } + get_aid_18j9kd_k$() { + return this.aid; + } + get_sourceContent_g32jlh_k$() { + return this.sourceContent; + } + get_duration_6a6kpp_k$() { + return this.duration; + } + get_stat_woujdp_k$() { + return this.stat; + } + component1_7eebsc_k$() { + return this.aid; + } + component2_7eebsb_k$() { + return this.sourceContent; + } + component3_7eebsa_k$() { + return this.duration; + } + component4_7eebs9_k$() { + return this.stat; + } + copy_q6e3zj_k$(aid, sourceContent, duration, stat) { + return new KRelateCMCard(aid, sourceContent, duration, stat); + } + copy(aid, sourceContent, duration, stat, $super) { + aid = aid === VOID ? this.aid : aid; + sourceContent = sourceContent === VOID ? this.sourceContent : sourceContent; + duration = duration === VOID ? this.duration : duration; + stat = stat === VOID ? this.stat : stat; + return this.copy_q6e3zj_k$(aid, sourceContent, duration, stat); + } + toString() { + return 'KRelateCMCard(aid=' + this.aid.toString() + ', sourceContent=' + this.sourceContent + ', duration=' + this.duration.toString() + ', stat=' + this.stat + ')'; + } + hashCode() { + var result = this.aid.hashCode(); + result = imul(result, 31) + (this.sourceContent == null ? 0 : this.sourceContent.hashCode()) | 0; + result = imul(result, 31) + this.duration.hashCode() | 0; + result = imul(result, 31) + (this.stat == null ? 0 : this.stat.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KRelateCMCard)) + return false; + var tmp0_other_with_cast = other instanceof KRelateCMCard ? other : THROW_CCE(); + if (!this.aid.equals(tmp0_other_with_cast.aid)) + return false; + if (!equals(this.sourceContent, tmp0_other_with_cast.sourceContent)) + return false; + if (!this.duration.equals(tmp0_other_with_cast.duration)) + return false; + if (!equals(this.stat, tmp0_other_with_cast.stat)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KRelateCMCard_uucldf_k$(seen1, aid, sourceContent, duration, stat, serializationConstructorMarker) { + Companion_instance_277; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_264().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.aid = new Long(0, 0); + else + $this.aid = aid; + if (0 === (seen1 & 2)) + $this.sourceContent = null; + else + $this.sourceContent = sourceContent; + if (0 === (seen1 & 4)) + $this.duration = new Long(0, 0); + else + $this.duration = duration; + if (0 === (seen1 & 8)) + $this.stat = null; + else + $this.stat = stat; + return $this; + } + } + class Companion_278 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.RelateLiveCard'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_265(); + } + } + class $serializer_265 { + constructor() { + $serializer_instance_265 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KRelateLiveCard', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('iconType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('areaName', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('watchedShow', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('liveStatus', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_local2 = new Long(0, 0); + var tmp7_local3 = new Long(0, 0); + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KRelateLiveCard.new_com_bapis_bilibili_app_viewunite_common_KRelateLiveCard_cqg310_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_wgdlab_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.iconType.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.iconType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.areaName === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.areaName); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.watchedShow.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.watchedShow); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !value.liveStatus.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 3, value.liveStatus); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_wgdlab_k$(encoder, value instanceof KRelateLiveCard ? value : THROW_CCE()); + } + } + class KRelateLiveCard { + constructor(iconType, areaName, watchedShow, liveStatus) { + Companion_instance_278; + iconType = iconType === VOID ? new Long(0, 0) : iconType; + areaName = areaName === VOID ? '' : areaName; + watchedShow = watchedShow === VOID ? new Long(0, 0) : watchedShow; + liveStatus = liveStatus === VOID ? new Long(0, 0) : liveStatus; + this.iconType = iconType; + this.areaName = areaName; + this.watchedShow = watchedShow; + this.liveStatus = liveStatus; + } + get_iconType_r0uasc_k$() { + return this.iconType; + } + get_areaName_bo2w75_k$() { + return this.areaName; + } + get_watchedShow_yq6hsu_k$() { + return this.watchedShow; + } + get_liveStatus_5s32ih_k$() { + return this.liveStatus; + } + component1_7eebsc_k$() { + return this.iconType; + } + component2_7eebsb_k$() { + return this.areaName; + } + component3_7eebsa_k$() { + return this.watchedShow; + } + component4_7eebs9_k$() { + return this.liveStatus; + } + copy_hbqqxv_k$(iconType, areaName, watchedShow, liveStatus) { + return new KRelateLiveCard(iconType, areaName, watchedShow, liveStatus); + } + copy(iconType, areaName, watchedShow, liveStatus, $super) { + iconType = iconType === VOID ? this.iconType : iconType; + areaName = areaName === VOID ? this.areaName : areaName; + watchedShow = watchedShow === VOID ? this.watchedShow : watchedShow; + liveStatus = liveStatus === VOID ? this.liveStatus : liveStatus; + return this.copy_hbqqxv_k$(iconType, areaName, watchedShow, liveStatus); + } + toString() { + return 'KRelateLiveCard(iconType=' + this.iconType.toString() + ', areaName=' + this.areaName + ', watchedShow=' + this.watchedShow.toString() + ', liveStatus=' + this.liveStatus.toString() + ')'; + } + hashCode() { + var result = this.iconType.hashCode(); + result = imul(result, 31) + getStringHashCode(this.areaName) | 0; + result = imul(result, 31) + this.watchedShow.hashCode() | 0; + result = imul(result, 31) + this.liveStatus.hashCode() | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KRelateLiveCard)) + return false; + var tmp0_other_with_cast = other instanceof KRelateLiveCard ? other : THROW_CCE(); + if (!this.iconType.equals(tmp0_other_with_cast.iconType)) + return false; + if (!(this.areaName === tmp0_other_with_cast.areaName)) + return false; + if (!this.watchedShow.equals(tmp0_other_with_cast.watchedShow)) + return false; + if (!this.liveStatus.equals(tmp0_other_with_cast.liveStatus)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KRelateLiveCard_cqg310_k$(seen1, iconType, areaName, watchedShow, liveStatus, serializationConstructorMarker) { + Companion_instance_278; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_265().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.iconType = new Long(0, 0); + else + $this.iconType = iconType; + if (0 === (seen1 & 2)) + $this.areaName = ''; + else + $this.areaName = areaName; + if (0 === (seen1 & 4)) + $this.watchedShow = new Long(0, 0); + else + $this.watchedShow = watchedShow; + if (0 === (seen1 & 8)) + $this.liveStatus = new Long(0, 0); + else + $this.liveStatus = liveStatus; + return $this; + } + } + class Companion_279 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.OgvLiveReserve.ReportEntry'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_266(); + } + } + class $serializer_266 { + constructor() { + $serializer_instance_266 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KOgvLiveReserve.KReportEntry', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('key', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('value', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KReportEntry_4.new_com_bapis_bilibili_app_viewunite_common_KOgvLiveReserve_KReportEntry_hvtdrw_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_1xvc67_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.key === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.key); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.value === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.value); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_1xvc67_k$(encoder, value instanceof KReportEntry_4 ? value : THROW_CCE()); + } + } + class KReportEntry_4 { + constructor(key, value) { + Companion_instance_279; + key = key === VOID ? '' : key; + value = value === VOID ? '' : value; + this.key = key; + this.value = value; + } + get_key_18j28a_k$() { + return this.key; + } + get_value_j01efc_k$() { + return this.value; + } + component1_7eebsc_k$() { + return this.key; + } + component2_7eebsb_k$() { + return this.value; + } + copy_plwnsl_k$(key, value) { + return new KReportEntry_4(key, value); + } + copy(key, value, $super) { + key = key === VOID ? this.key : key; + value = value === VOID ? this.value : value; + return this.copy_plwnsl_k$(key, value); + } + toString() { + return 'KReportEntry(key=' + this.key + ', value=' + this.value + ')'; + } + hashCode() { + var result = getStringHashCode(this.key); + result = imul(result, 31) + getStringHashCode(this.value) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KReportEntry_4)) + return false; + var tmp0_other_with_cast = other instanceof KReportEntry_4 ? other : THROW_CCE(); + if (!(this.key === tmp0_other_with_cast.key)) + return false; + if (!(this.value === tmp0_other_with_cast.value)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KOgvLiveReserve_KReportEntry_hvtdrw_k$(seen1, key, value, serializationConstructorMarker) { + Companion_instance_279; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_266().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.key = ''; + else + $this.key = key; + if (0 === (seen1 & 2)) + $this.value = ''; + else + $this.value = value; + return $this; + } + } + class Companion_280 { + constructor() { + Companion_instance_280 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, new LinkedHashMapSerializer(StringSerializer_getInstance(), StringSerializer_getInstance())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.viewunite.common.OgvLiveReserve'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_267(); + } + } + class $serializer_267 { + constructor() { + $serializer_instance_267 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KOgvLiveReserve', this, 20); + tmp0_serialDesc.addElement_5pzumi_k$('reserveId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('icon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('nightIcon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('clickButton', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('link', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('followVideoIsReserveLive', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('bgColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('nightBgColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('textColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('nightTextColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('btBgColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + tmp0_serialDesc.addElement_5pzumi_k$('btFrameColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(13)); + tmp0_serialDesc.addElement_5pzumi_k$('nightBtBgColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(14)); + tmp0_serialDesc.addElement_5pzumi_k$('nightBtFrameColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(15)); + tmp0_serialDesc.addElement_5pzumi_k$('activeType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(16)); + tmp0_serialDesc.addElement_5pzumi_k$('reserveStatus', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(17)); + tmp0_serialDesc.addElement_5pzumi_k$('btTextColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(18)); + tmp0_serialDesc.addElement_5pzumi_k$('nightBtTextColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(19)); + tmp0_serialDesc.addElement_5pzumi_k$('report', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(20)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_280().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), tmp0_cached[19]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = 0; + var tmp11_local7 = null; + var tmp12_local8 = null; + var tmp13_local9 = null; + var tmp14_local10 = null; + var tmp15_local11 = null; + var tmp16_local12 = null; + var tmp17_local13 = null; + var tmp18_local14 = null; + var tmp19_local15 = 0; + var tmp20_local16 = 0; + var tmp21_local17 = null; + var tmp22_local18 = null; + var tmp23_local19 = null; + var tmp24_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp25_cached = Companion_getInstance_280().$childSerializers_1; + if (tmp24_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp24_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp24_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp24_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp24_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp24_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp24_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp24_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp24_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp24_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp24_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp24_input.decodeStringElement_3oenpg_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp24_input.decodeStringElement_3oenpg_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + tmp16_local12 = tmp24_input.decodeStringElement_3oenpg_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + tmp17_local13 = tmp24_input.decodeStringElement_3oenpg_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + tmp18_local14 = tmp24_input.decodeStringElement_3oenpg_k$(tmp0_desc, 14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + tmp19_local15 = tmp24_input.decodeIntElement_941u6a_k$(tmp0_desc, 15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + tmp20_local16 = tmp24_input.decodeIntElement_941u6a_k$(tmp0_desc, 16); + tmp3_bitMask0 = tmp3_bitMask0 | 65536; + tmp21_local17 = tmp24_input.decodeStringElement_3oenpg_k$(tmp0_desc, 17); + tmp3_bitMask0 = tmp3_bitMask0 | 131072; + tmp22_local18 = tmp24_input.decodeStringElement_3oenpg_k$(tmp0_desc, 18); + tmp3_bitMask0 = tmp3_bitMask0 | 262144; + tmp23_local19 = tmp24_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 19, tmp25_cached[19], tmp23_local19); + tmp3_bitMask0 = tmp3_bitMask0 | 524288; + } else + while (tmp1_flag) { + tmp2_index = tmp24_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp24_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp24_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp24_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp24_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp24_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp24_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp24_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp24_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp24_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp24_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp24_input.decodeStringElement_3oenpg_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp24_input.decodeStringElement_3oenpg_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + case 12: + tmp16_local12 = tmp24_input.decodeStringElement_3oenpg_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + break; + case 13: + tmp17_local13 = tmp24_input.decodeStringElement_3oenpg_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + break; + case 14: + tmp18_local14 = tmp24_input.decodeStringElement_3oenpg_k$(tmp0_desc, 14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + break; + case 15: + tmp19_local15 = tmp24_input.decodeIntElement_941u6a_k$(tmp0_desc, 15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + break; + case 16: + tmp20_local16 = tmp24_input.decodeIntElement_941u6a_k$(tmp0_desc, 16); + tmp3_bitMask0 = tmp3_bitMask0 | 65536; + break; + case 17: + tmp21_local17 = tmp24_input.decodeStringElement_3oenpg_k$(tmp0_desc, 17); + tmp3_bitMask0 = tmp3_bitMask0 | 131072; + break; + case 18: + tmp22_local18 = tmp24_input.decodeStringElement_3oenpg_k$(tmp0_desc, 18); + tmp3_bitMask0 = tmp3_bitMask0 | 262144; + break; + case 19: + tmp23_local19 = tmp24_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 19, tmp25_cached[19], tmp23_local19); + tmp3_bitMask0 = tmp3_bitMask0 | 524288; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp24_input.endStructure_1xqz0n_k$(tmp0_desc); + return KOgvLiveReserve_0.new_com_bapis_bilibili_app_viewunite_common_KOgvLiveReserve_pijubc_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, tmp18_local14, tmp19_local15, tmp20_local16, tmp21_local17, tmp22_local18, tmp23_local19, null); + } + serialize_k5nn46_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_280().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.reserveId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.reserveId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.icon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.icon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.nightIcon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.nightIcon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.clickButton === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.clickButton); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.link === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.link); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.followVideoIsReserveLive === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 6, value.followVideoIsReserveLive); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.bgColor === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.bgColor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.nightBgColor === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 8, value.nightBgColor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.textColor === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 9, value.textColor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.nightTextColor === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 10, value.nightTextColor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.btBgColor === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 11, value.btBgColor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !(value.btFrameColor === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 12, value.btFrameColor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 13) ? true : !(value.nightBtBgColor === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 13, value.nightBtBgColor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 14) ? true : !(value.nightBtFrameColor === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 14, value.nightBtFrameColor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 15) ? true : !(value.activeType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 15, value.activeType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 16) ? true : !(value.reserveStatus === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 16, value.reserveStatus); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 17) ? true : !(value.btTextColor === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 17, value.btTextColor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 18) ? true : !(value.nightBtTextColor === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 18, value.nightBtTextColor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 19) ? true : !equals(value.report, emptyMap())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 19, tmp2_cached[19], value.report); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_k5nn46_k$(encoder, value instanceof KOgvLiveReserve_0 ? value : THROW_CCE()); + } + } + class KOgvLiveReserve_0 { + constructor(reserveId, title, icon, nightIcon, clickButton, link, followVideoIsReserveLive, bgColor, nightBgColor, textColor, nightTextColor, btBgColor, btFrameColor, nightBtBgColor, nightBtFrameColor, activeType, reserveStatus, btTextColor, nightBtTextColor, report) { + Companion_getInstance_280(); + reserveId = reserveId === VOID ? new Long(0, 0) : reserveId; + title = title === VOID ? '' : title; + icon = icon === VOID ? '' : icon; + nightIcon = nightIcon === VOID ? '' : nightIcon; + clickButton = clickButton === VOID ? '' : clickButton; + link = link === VOID ? '' : link; + followVideoIsReserveLive = followVideoIsReserveLive === VOID ? 0 : followVideoIsReserveLive; + bgColor = bgColor === VOID ? '' : bgColor; + nightBgColor = nightBgColor === VOID ? '' : nightBgColor; + textColor = textColor === VOID ? '' : textColor; + nightTextColor = nightTextColor === VOID ? '' : nightTextColor; + btBgColor = btBgColor === VOID ? '' : btBgColor; + btFrameColor = btFrameColor === VOID ? '' : btFrameColor; + nightBtBgColor = nightBtBgColor === VOID ? '' : nightBtBgColor; + nightBtFrameColor = nightBtFrameColor === VOID ? '' : nightBtFrameColor; + activeType = activeType === VOID ? 0 : activeType; + reserveStatus = reserveStatus === VOID ? 0 : reserveStatus; + btTextColor = btTextColor === VOID ? '' : btTextColor; + nightBtTextColor = nightBtTextColor === VOID ? '' : nightBtTextColor; + report = report === VOID ? emptyMap() : report; + this.reserveId = reserveId; + this.title = title; + this.icon = icon; + this.nightIcon = nightIcon; + this.clickButton = clickButton; + this.link = link; + this.followVideoIsReserveLive = followVideoIsReserveLive; + this.bgColor = bgColor; + this.nightBgColor = nightBgColor; + this.textColor = textColor; + this.nightTextColor = nightTextColor; + this.btBgColor = btBgColor; + this.btFrameColor = btFrameColor; + this.nightBtBgColor = nightBtBgColor; + this.nightBtFrameColor = nightBtFrameColor; + this.activeType = activeType; + this.reserveStatus = reserveStatus; + this.btTextColor = btTextColor; + this.nightBtTextColor = nightBtTextColor; + this.report = report; + } + get_reserveId_t26awi_k$() { + return this.reserveId; + } + get_title_iz32un_k$() { + return this.title; + } + get_icon_wont8i_k$() { + return this.icon; + } + get_nightIcon_v3fz7s_k$() { + return this.nightIcon; + } + get_clickButton_s2ffqp_k$() { + return this.clickButton; + } + get_link_wopumb_k$() { + return this.link; + } + get_followVideoIsReserveLive_dk8sf1_k$() { + return this.followVideoIsReserveLive; + } + get_bgColor_24ewuj_k$() { + return this.bgColor; + } + get_nightBgColor_qby90v_k$() { + return this.nightBgColor; + } + get_textColor_92p84z_k$() { + return this.textColor; + } + get_nightTextColor_b3olq1_k$() { + return this.nightTextColor; + } + get_btBgColor_kifqv7_k$() { + return this.btBgColor; + } + get_btFrameColor_9430lr_k$() { + return this.btFrameColor; + } + get_nightBtBgColor_ihgda5_k$() { + return this.nightBtBgColor; + } + get_nightBtFrameColor_s238nd_k$() { + return this.nightBtFrameColor; + } + get_activeType_dmodex_k$() { + return this.activeType; + } + get_reserveStatus_aixxej_k$() { + return this.reserveStatus; + } + get_btTextColor_7h9123_k$() { + return this.btTextColor; + } + get_nightBtTextColor_mx34ob_k$() { + return this.nightBtTextColor; + } + get_report_iye43h_k$() { + return this.report; + } + component1_7eebsc_k$() { + return this.reserveId; + } + component2_7eebsb_k$() { + return this.title; + } + component3_7eebsa_k$() { + return this.icon; + } + component4_7eebs9_k$() { + return this.nightIcon; + } + component5_7eebs8_k$() { + return this.clickButton; + } + component6_7eebs7_k$() { + return this.link; + } + component7_7eebs6_k$() { + return this.followVideoIsReserveLive; + } + component8_7eebs5_k$() { + return this.bgColor; + } + component9_7eebs4_k$() { + return this.nightBgColor; + } + component10_gazzfo_k$() { + return this.textColor; + } + component11_gazzfn_k$() { + return this.nightTextColor; + } + component12_gazzfm_k$() { + return this.btBgColor; + } + component13_gazzfl_k$() { + return this.btFrameColor; + } + component14_gazzfk_k$() { + return this.nightBtBgColor; + } + component15_gazzfj_k$() { + return this.nightBtFrameColor; + } + component16_gazzfi_k$() { + return this.activeType; + } + component17_gazzfh_k$() { + return this.reserveStatus; + } + component18_gazzfg_k$() { + return this.btTextColor; + } + component19_gazzff_k$() { + return this.nightBtTextColor; + } + component20_gazzet_k$() { + return this.report; + } + copy_9vaebp_k$(reserveId, title, icon, nightIcon, clickButton, link, followVideoIsReserveLive, bgColor, nightBgColor, textColor, nightTextColor, btBgColor, btFrameColor, nightBtBgColor, nightBtFrameColor, activeType, reserveStatus, btTextColor, nightBtTextColor, report) { + return new KOgvLiveReserve_0(reserveId, title, icon, nightIcon, clickButton, link, followVideoIsReserveLive, bgColor, nightBgColor, textColor, nightTextColor, btBgColor, btFrameColor, nightBtBgColor, nightBtFrameColor, activeType, reserveStatus, btTextColor, nightBtTextColor, report); + } + copy(reserveId, title, icon, nightIcon, clickButton, link, followVideoIsReserveLive, bgColor, nightBgColor, textColor, nightTextColor, btBgColor, btFrameColor, nightBtBgColor, nightBtFrameColor, activeType, reserveStatus, btTextColor, nightBtTextColor, report, $super) { + reserveId = reserveId === VOID ? this.reserveId : reserveId; + title = title === VOID ? this.title : title; + icon = icon === VOID ? this.icon : icon; + nightIcon = nightIcon === VOID ? this.nightIcon : nightIcon; + clickButton = clickButton === VOID ? this.clickButton : clickButton; + link = link === VOID ? this.link : link; + followVideoIsReserveLive = followVideoIsReserveLive === VOID ? this.followVideoIsReserveLive : followVideoIsReserveLive; + bgColor = bgColor === VOID ? this.bgColor : bgColor; + nightBgColor = nightBgColor === VOID ? this.nightBgColor : nightBgColor; + textColor = textColor === VOID ? this.textColor : textColor; + nightTextColor = nightTextColor === VOID ? this.nightTextColor : nightTextColor; + btBgColor = btBgColor === VOID ? this.btBgColor : btBgColor; + btFrameColor = btFrameColor === VOID ? this.btFrameColor : btFrameColor; + nightBtBgColor = nightBtBgColor === VOID ? this.nightBtBgColor : nightBtBgColor; + nightBtFrameColor = nightBtFrameColor === VOID ? this.nightBtFrameColor : nightBtFrameColor; + activeType = activeType === VOID ? this.activeType : activeType; + reserveStatus = reserveStatus === VOID ? this.reserveStatus : reserveStatus; + btTextColor = btTextColor === VOID ? this.btTextColor : btTextColor; + nightBtTextColor = nightBtTextColor === VOID ? this.nightBtTextColor : nightBtTextColor; + report = report === VOID ? this.report : report; + return this.copy_9vaebp_k$(reserveId, title, icon, nightIcon, clickButton, link, followVideoIsReserveLive, bgColor, nightBgColor, textColor, nightTextColor, btBgColor, btFrameColor, nightBtBgColor, nightBtFrameColor, activeType, reserveStatus, btTextColor, nightBtTextColor, report); + } + toString() { + return 'KOgvLiveReserve(reserveId=' + this.reserveId.toString() + ', title=' + this.title + ', icon=' + this.icon + ', nightIcon=' + this.nightIcon + ', clickButton=' + this.clickButton + ', link=' + this.link + ', followVideoIsReserveLive=' + this.followVideoIsReserveLive + ', bgColor=' + this.bgColor + ', nightBgColor=' + this.nightBgColor + ', textColor=' + this.textColor + ', nightTextColor=' + this.nightTextColor + ', btBgColor=' + this.btBgColor + ', btFrameColor=' + this.btFrameColor + ', nightBtBgColor=' + this.nightBtBgColor + ', nightBtFrameColor=' + this.nightBtFrameColor + ', activeType=' + this.activeType + ', reserveStatus=' + this.reserveStatus + ', btTextColor=' + this.btTextColor + ', nightBtTextColor=' + this.nightBtTextColor + ', report=' + this.report + ')'; + } + hashCode() { + var result = this.reserveId.hashCode(); + result = imul(result, 31) + getStringHashCode(this.title) | 0; + result = imul(result, 31) + getStringHashCode(this.icon) | 0; + result = imul(result, 31) + getStringHashCode(this.nightIcon) | 0; + result = imul(result, 31) + getStringHashCode(this.clickButton) | 0; + result = imul(result, 31) + getStringHashCode(this.link) | 0; + result = imul(result, 31) + this.followVideoIsReserveLive | 0; + result = imul(result, 31) + getStringHashCode(this.bgColor) | 0; + result = imul(result, 31) + getStringHashCode(this.nightBgColor) | 0; + result = imul(result, 31) + getStringHashCode(this.textColor) | 0; + result = imul(result, 31) + getStringHashCode(this.nightTextColor) | 0; + result = imul(result, 31) + getStringHashCode(this.btBgColor) | 0; + result = imul(result, 31) + getStringHashCode(this.btFrameColor) | 0; + result = imul(result, 31) + getStringHashCode(this.nightBtBgColor) | 0; + result = imul(result, 31) + getStringHashCode(this.nightBtFrameColor) | 0; + result = imul(result, 31) + this.activeType | 0; + result = imul(result, 31) + this.reserveStatus | 0; + result = imul(result, 31) + getStringHashCode(this.btTextColor) | 0; + result = imul(result, 31) + getStringHashCode(this.nightBtTextColor) | 0; + result = imul(result, 31) + hashCode(this.report) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KOgvLiveReserve_0)) + return false; + var tmp0_other_with_cast = other instanceof KOgvLiveReserve_0 ? other : THROW_CCE(); + if (!this.reserveId.equals(tmp0_other_with_cast.reserveId)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.icon === tmp0_other_with_cast.icon)) + return false; + if (!(this.nightIcon === tmp0_other_with_cast.nightIcon)) + return false; + if (!(this.clickButton === tmp0_other_with_cast.clickButton)) + return false; + if (!(this.link === tmp0_other_with_cast.link)) + return false; + if (!(this.followVideoIsReserveLive === tmp0_other_with_cast.followVideoIsReserveLive)) + return false; + if (!(this.bgColor === tmp0_other_with_cast.bgColor)) + return false; + if (!(this.nightBgColor === tmp0_other_with_cast.nightBgColor)) + return false; + if (!(this.textColor === tmp0_other_with_cast.textColor)) + return false; + if (!(this.nightTextColor === tmp0_other_with_cast.nightTextColor)) + return false; + if (!(this.btBgColor === tmp0_other_with_cast.btBgColor)) + return false; + if (!(this.btFrameColor === tmp0_other_with_cast.btFrameColor)) + return false; + if (!(this.nightBtBgColor === tmp0_other_with_cast.nightBtBgColor)) + return false; + if (!(this.nightBtFrameColor === tmp0_other_with_cast.nightBtFrameColor)) + return false; + if (!(this.activeType === tmp0_other_with_cast.activeType)) + return false; + if (!(this.reserveStatus === tmp0_other_with_cast.reserveStatus)) + return false; + if (!(this.btTextColor === tmp0_other_with_cast.btTextColor)) + return false; + if (!(this.nightBtTextColor === tmp0_other_with_cast.nightBtTextColor)) + return false; + if (!equals(this.report, tmp0_other_with_cast.report)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KOgvLiveReserve_pijubc_k$(seen1, reserveId, title, icon, nightIcon, clickButton, link, followVideoIsReserveLive, bgColor, nightBgColor, textColor, nightTextColor, btBgColor, btFrameColor, nightBtBgColor, nightBtFrameColor, activeType, reserveStatus, btTextColor, nightBtTextColor, report, serializationConstructorMarker) { + Companion_getInstance_280(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_267().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.reserveId = new Long(0, 0); + else + $this.reserveId = reserveId; + if (0 === (seen1 & 2)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 4)) + $this.icon = ''; + else + $this.icon = icon; + if (0 === (seen1 & 8)) + $this.nightIcon = ''; + else + $this.nightIcon = nightIcon; + if (0 === (seen1 & 16)) + $this.clickButton = ''; + else + $this.clickButton = clickButton; + if (0 === (seen1 & 32)) + $this.link = ''; + else + $this.link = link; + if (0 === (seen1 & 64)) + $this.followVideoIsReserveLive = 0; + else + $this.followVideoIsReserveLive = followVideoIsReserveLive; + if (0 === (seen1 & 128)) + $this.bgColor = ''; + else + $this.bgColor = bgColor; + if (0 === (seen1 & 256)) + $this.nightBgColor = ''; + else + $this.nightBgColor = nightBgColor; + if (0 === (seen1 & 512)) + $this.textColor = ''; + else + $this.textColor = textColor; + if (0 === (seen1 & 1024)) + $this.nightTextColor = ''; + else + $this.nightTextColor = nightTextColor; + if (0 === (seen1 & 2048)) + $this.btBgColor = ''; + else + $this.btBgColor = btBgColor; + if (0 === (seen1 & 4096)) + $this.btFrameColor = ''; + else + $this.btFrameColor = btFrameColor; + if (0 === (seen1 & 8192)) + $this.nightBtBgColor = ''; + else + $this.nightBtBgColor = nightBtBgColor; + if (0 === (seen1 & 16384)) + $this.nightBtFrameColor = ''; + else + $this.nightBtFrameColor = nightBtFrameColor; + if (0 === (seen1 & 32768)) + $this.activeType = 0; + else + $this.activeType = activeType; + if (0 === (seen1 & 65536)) + $this.reserveStatus = 0; + else + $this.reserveStatus = reserveStatus; + if (0 === (seen1 & 131072)) + $this.btTextColor = ''; + else + $this.btTextColor = btTextColor; + if (0 === (seen1 & 262144)) + $this.nightBtTextColor = ''; + else + $this.nightBtTextColor = nightBtTextColor; + if (0 === (seen1 & 524288)) + $this.report = emptyMap(); + else + $this.report = report; + return $this; + } + } + class Companion_281 { + constructor() { + Companion_instance_281 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, new ArrayListSerializer($serializer_getInstance_277()), null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.viewunite.common.OgvSeasons'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_268(); + } + } + class $serializer_268 { + constructor() { + $serializer_instance_268 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KOgvSeasons', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('serialSeason', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('style', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_281().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), tmp0_cached[1], IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = 0; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp8_cached = Companion_getInstance_281().$childSerializers_1; + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp8_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp8_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KOgvSeasons_0.new_com_bapis_bilibili_app_viewunite_common_KOgvSeasons_exxjjc_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_skmkca_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_281().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !equals(value.serialSeason, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 1, tmp2_cached[1], value.serialSeason); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.style === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.style); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_skmkca_k$(encoder, value instanceof KOgvSeasons_0 ? value : THROW_CCE()); + } + } + class KOgvSeasons_0 { + constructor(title, serialSeason, style) { + Companion_getInstance_281(); + title = title === VOID ? '' : title; + serialSeason = serialSeason === VOID ? emptyList() : serialSeason; + style = style === VOID ? 0 : style; + this.title = title; + this.serialSeason = serialSeason; + this.style = style; + } + get_title_iz32un_k$() { + return this.title; + } + get_serialSeason_81o8xs_k$() { + return this.serialSeason; + } + get_style_iyqetk_k$() { + return this.style; + } + styleEnum() { + return Companion_getInstance_217().fromValue(this.style); + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.serialSeason; + } + component3_7eebsa_k$() { + return this.style; + } + copy_2x3m33_k$(title, serialSeason, style) { + return new KOgvSeasons_0(title, serialSeason, style); + } + copy(title, serialSeason, style, $super) { + title = title === VOID ? this.title : title; + serialSeason = serialSeason === VOID ? this.serialSeason : serialSeason; + style = style === VOID ? this.style : style; + return this.copy_2x3m33_k$(title, serialSeason, style); + } + toString() { + return 'KOgvSeasons(title=' + this.title + ', serialSeason=' + this.serialSeason + ', style=' + this.style + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + hashCode(this.serialSeason) | 0; + result = imul(result, 31) + this.style | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KOgvSeasons_0)) + return false; + var tmp0_other_with_cast = other instanceof KOgvSeasons_0 ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!equals(this.serialSeason, tmp0_other_with_cast.serialSeason)) + return false; + if (!(this.style === tmp0_other_with_cast.style)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KOgvSeasons_exxjjc_k$(seen1, title, serialSeason, style, serializationConstructorMarker) { + Companion_getInstance_281(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_268().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.serialSeason = emptyList(); + else + $this.serialSeason = serialSeason; + if (0 === (seen1 & 4)) + $this.style = 0; + else + $this.style = style; + return $this; + } + } + class Companion_282 { + constructor() { + Companion_instance_282 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, null, new ArrayListSerializer($serializer_getInstance_271()), null, null, null, null, null, new ArrayListSerializer(StringSerializer_getInstance()), null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.viewunite.common.UgcSeasons'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_269(); + } + } + class $serializer_269 { + constructor() { + $serializer_instance_269 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KUgcSeasons', this, 12); + tmp0_serialDesc.addElement_5pzumi_k$('id', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('supernatantTitle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('section', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('unionTitle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('head', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('epCount', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('seasonType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('activity', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('seasonAbility', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('seasonTitle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_282().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), tmp0_cached[4], StringSerializer_getInstance(), get_nullable($serializer_getInstance_270()), LongSerializer_getInstance(), IntSerializer_getInstance(), get_nullable($serializer_getInstance_273()), tmp0_cached[10], StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = new Long(0, 0); + var tmp12_local8 = 0; + var tmp13_local9 = null; + var tmp14_local10 = null; + var tmp15_local11 = null; + var tmp16_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp17_cached = Companion_getInstance_282().$childSerializers_1; + if (tmp16_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp16_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp16_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 4, tmp17_cached[4], tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp16_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_270(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp16_input.decodeLongElement_994anb_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp16_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 9, $serializer_getInstance_273(), tmp13_local9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp16_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 10, tmp17_cached[10], tmp14_local10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + } else + while (tmp1_flag) { + tmp2_index = tmp16_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp16_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp16_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 4, tmp17_cached[4], tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp16_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_270(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp16_input.decodeLongElement_994anb_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp16_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 9, $serializer_getInstance_273(), tmp13_local9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp16_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 10, tmp17_cached[10], tmp14_local10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp16_input.endStructure_1xqz0n_k$(tmp0_desc); + return KUgcSeasons.new_com_bapis_bilibili_app_viewunite_common_KUgcSeasons_j338n5_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, null); + } + serialize_u7g6rd_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_282().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.id.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.id); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.cover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.supernatantTitle === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.supernatantTitle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !equals(value.section, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 4, tmp2_cached[4], value.section); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.unionTitle === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.unionTitle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.head == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 6, $serializer_getInstance_270(), value.head); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !value.epCount.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 7, value.epCount); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.seasonType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 8, value.seasonType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.activity == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 9, $serializer_getInstance_273(), value.activity); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !equals(value.seasonAbility, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 10, tmp2_cached[10], value.seasonAbility); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.seasonTitle === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 11, value.seasonTitle); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_u7g6rd_k$(encoder, value instanceof KUgcSeasons ? value : THROW_CCE()); + } + } + class KUgcSeasons { + constructor(id, title, cover, supernatantTitle, section, unionTitle, head, epCount, seasonType, activity, seasonAbility, seasonTitle) { + Companion_getInstance_282(); + id = id === VOID ? new Long(0, 0) : id; + title = title === VOID ? '' : title; + cover = cover === VOID ? '' : cover; + supernatantTitle = supernatantTitle === VOID ? '' : supernatantTitle; + section = section === VOID ? emptyList() : section; + unionTitle = unionTitle === VOID ? '' : unionTitle; + head = head === VOID ? null : head; + epCount = epCount === VOID ? new Long(0, 0) : epCount; + seasonType = seasonType === VOID ? 0 : seasonType; + activity = activity === VOID ? null : activity; + seasonAbility = seasonAbility === VOID ? emptyList() : seasonAbility; + seasonTitle = seasonTitle === VOID ? '' : seasonTitle; + this.id = id; + this.title = title; + this.cover = cover; + this.supernatantTitle = supernatantTitle; + this.section = section; + this.unionTitle = unionTitle; + this.head = head; + this.epCount = epCount; + this.seasonType = seasonType; + this.activity = activity; + this.seasonAbility = seasonAbility; + this.seasonTitle = seasonTitle; + } + get_id_kntnx8_k$() { + return this.id; + } + get_title_iz32un_k$() { + return this.title; + } + get_cover_ipug0e_k$() { + return this.cover; + } + get_supernatantTitle_m4sibk_k$() { + return this.supernatantTitle; + } + get_section_xul1x8_k$() { + return this.section; + } + get_unionTitle_q2nm1e_k$() { + return this.unionTitle; + } + get_head_won7e1_k$() { + return this.head; + } + get_epCount_ouxbyd_k$() { + return this.epCount; + } + get_seasonType_bh01x6_k$() { + return this.seasonType; + } + get_activity_bu9714_k$() { + return this.activity; + } + get_seasonAbility_os1rxa_k$() { + return this.seasonAbility; + } + get_seasonTitle_hri9g_k$() { + return this.seasonTitle; + } + seasonTypeEnum() { + return Companion_getInstance_218().fromValue(this.seasonType); + } + component1_7eebsc_k$() { + return this.id; + } + component2_7eebsb_k$() { + return this.title; + } + component3_7eebsa_k$() { + return this.cover; + } + component4_7eebs9_k$() { + return this.supernatantTitle; + } + component5_7eebs8_k$() { + return this.section; + } + component6_7eebs7_k$() { + return this.unionTitle; + } + component7_7eebs6_k$() { + return this.head; + } + component8_7eebs5_k$() { + return this.epCount; + } + component9_7eebs4_k$() { + return this.seasonType; + } + component10_gazzfo_k$() { + return this.activity; + } + component11_gazzfn_k$() { + return this.seasonAbility; + } + component12_gazzfm_k$() { + return this.seasonTitle; + } + copy_bhc896_k$(id, title, cover, supernatantTitle, section, unionTitle, head, epCount, seasonType, activity, seasonAbility, seasonTitle) { + return new KUgcSeasons(id, title, cover, supernatantTitle, section, unionTitle, head, epCount, seasonType, activity, seasonAbility, seasonTitle); + } + copy(id, title, cover, supernatantTitle, section, unionTitle, head, epCount, seasonType, activity, seasonAbility, seasonTitle, $super) { + id = id === VOID ? this.id : id; + title = title === VOID ? this.title : title; + cover = cover === VOID ? this.cover : cover; + supernatantTitle = supernatantTitle === VOID ? this.supernatantTitle : supernatantTitle; + section = section === VOID ? this.section : section; + unionTitle = unionTitle === VOID ? this.unionTitle : unionTitle; + head = head === VOID ? this.head : head; + epCount = epCount === VOID ? this.epCount : epCount; + seasonType = seasonType === VOID ? this.seasonType : seasonType; + activity = activity === VOID ? this.activity : activity; + seasonAbility = seasonAbility === VOID ? this.seasonAbility : seasonAbility; + seasonTitle = seasonTitle === VOID ? this.seasonTitle : seasonTitle; + return this.copy_bhc896_k$(id, title, cover, supernatantTitle, section, unionTitle, head, epCount, seasonType, activity, seasonAbility, seasonTitle); + } + toString() { + return 'KUgcSeasons(id=' + this.id.toString() + ', title=' + this.title + ', cover=' + this.cover + ', supernatantTitle=' + this.supernatantTitle + ', section=' + this.section + ', unionTitle=' + this.unionTitle + ', head=' + this.head + ', epCount=' + this.epCount.toString() + ', seasonType=' + this.seasonType + ', activity=' + this.activity + ', seasonAbility=' + this.seasonAbility + ', seasonTitle=' + this.seasonTitle + ')'; + } + hashCode() { + var result = this.id.hashCode(); + result = imul(result, 31) + getStringHashCode(this.title) | 0; + result = imul(result, 31) + getStringHashCode(this.cover) | 0; + result = imul(result, 31) + getStringHashCode(this.supernatantTitle) | 0; + result = imul(result, 31) + hashCode(this.section) | 0; + result = imul(result, 31) + getStringHashCode(this.unionTitle) | 0; + result = imul(result, 31) + (this.head == null ? 0 : this.head.hashCode()) | 0; + result = imul(result, 31) + this.epCount.hashCode() | 0; + result = imul(result, 31) + this.seasonType | 0; + result = imul(result, 31) + (this.activity == null ? 0 : this.activity.hashCode()) | 0; + result = imul(result, 31) + hashCode(this.seasonAbility) | 0; + result = imul(result, 31) + getStringHashCode(this.seasonTitle) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KUgcSeasons)) + return false; + var tmp0_other_with_cast = other instanceof KUgcSeasons ? other : THROW_CCE(); + if (!this.id.equals(tmp0_other_with_cast.id)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + if (!(this.supernatantTitle === tmp0_other_with_cast.supernatantTitle)) + return false; + if (!equals(this.section, tmp0_other_with_cast.section)) + return false; + if (!(this.unionTitle === tmp0_other_with_cast.unionTitle)) + return false; + if (!equals(this.head, tmp0_other_with_cast.head)) + return false; + if (!this.epCount.equals(tmp0_other_with_cast.epCount)) + return false; + if (!(this.seasonType === tmp0_other_with_cast.seasonType)) + return false; + if (!equals(this.activity, tmp0_other_with_cast.activity)) + return false; + if (!equals(this.seasonAbility, tmp0_other_with_cast.seasonAbility)) + return false; + if (!(this.seasonTitle === tmp0_other_with_cast.seasonTitle)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KUgcSeasons_j338n5_k$(seen1, id, title, cover, supernatantTitle, section, unionTitle, head, epCount, seasonType, activity, seasonAbility, seasonTitle, serializationConstructorMarker) { + Companion_getInstance_282(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_269().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.id = new Long(0, 0); + else + $this.id = id; + if (0 === (seen1 & 2)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 4)) + $this.cover = ''; + else + $this.cover = cover; + if (0 === (seen1 & 8)) + $this.supernatantTitle = ''; + else + $this.supernatantTitle = supernatantTitle; + if (0 === (seen1 & 16)) + $this.section = emptyList(); + else + $this.section = section; + if (0 === (seen1 & 32)) + $this.unionTitle = ''; + else + $this.unionTitle = unionTitle; + if (0 === (seen1 & 64)) + $this.head = null; + else + $this.head = head; + if (0 === (seen1 & 128)) + $this.epCount = new Long(0, 0); + else + $this.epCount = epCount; + if (0 === (seen1 & 256)) + $this.seasonType = 0; + else + $this.seasonType = seasonType; + if (0 === (seen1 & 512)) + $this.activity = null; + else + $this.activity = activity; + if (0 === (seen1 & 1024)) + $this.seasonAbility = emptyList(); + else + $this.seasonAbility = seasonAbility; + if (0 === (seen1 & 2048)) + $this.seasonTitle = ''; + else + $this.seasonTitle = seasonTitle; + return $this; + } + } + class Companion_283 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.SeasonHead'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_270(); + } + } + class $serializer_270 { + constructor() { + $serializer_instance_270 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KSeasonHead', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('intro', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('vt', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('danmaku', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_367()), get_nullable($serializer_getInstance_367())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_367(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_367(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_367(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_367(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSeasonHead.new_com_bapis_bilibili_app_viewunite_common_KSeasonHead_cjqfuj_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_k9umt1_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.intro === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.intro); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.vt == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_367(), value.vt); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.danmaku == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_367(), value.danmaku); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_k9umt1_k$(encoder, value instanceof KSeasonHead ? value : THROW_CCE()); + } + } + class KSeasonHead { + constructor(title, intro, vt, danmaku) { + Companion_instance_283; + title = title === VOID ? '' : title; + intro = intro === VOID ? '' : intro; + vt = vt === VOID ? null : vt; + danmaku = danmaku === VOID ? null : danmaku; + this.title = title; + this.intro = intro; + this.vt = vt; + this.danmaku = danmaku; + } + get_title_iz32un_k$() { + return this.title; + } + get_intro_it4jer_k$() { + return this.intro; + } + get_vt_kntnll_k$() { + return this.vt; + } + get_danmaku_p1pkiu_k$() { + return this.danmaku; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.intro; + } + component3_7eebsa_k$() { + return this.vt; + } + component4_7eebs9_k$() { + return this.danmaku; + } + copy_pt4ter_k$(title, intro, vt, danmaku) { + return new KSeasonHead(title, intro, vt, danmaku); + } + copy(title, intro, vt, danmaku, $super) { + title = title === VOID ? this.title : title; + intro = intro === VOID ? this.intro : intro; + vt = vt === VOID ? this.vt : vt; + danmaku = danmaku === VOID ? this.danmaku : danmaku; + return this.copy_pt4ter_k$(title, intro, vt, danmaku); + } + toString() { + return 'KSeasonHead(title=' + this.title + ', intro=' + this.intro + ', vt=' + this.vt + ', danmaku=' + this.danmaku + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.intro) | 0; + result = imul(result, 31) + (this.vt == null ? 0 : this.vt.hashCode()) | 0; + result = imul(result, 31) + (this.danmaku == null ? 0 : this.danmaku.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSeasonHead)) + return false; + var tmp0_other_with_cast = other instanceof KSeasonHead ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.intro === tmp0_other_with_cast.intro)) + return false; + if (!equals(this.vt, tmp0_other_with_cast.vt)) + return false; + if (!equals(this.danmaku, tmp0_other_with_cast.danmaku)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KSeasonHead_cjqfuj_k$(seen1, title, intro, vt, danmaku, serializationConstructorMarker) { + Companion_instance_283; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_270().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.intro = ''; + else + $this.intro = intro; + if (0 === (seen1 & 4)) + $this.vt = null; + else + $this.vt = vt; + if (0 === (seen1 & 8)) + $this.danmaku = null; + else + $this.danmaku = danmaku; + return $this; + } + } + class Companion_284 { + constructor() { + Companion_instance_284 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, new ArrayListSerializer($serializer_getInstance_272())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.viewunite.common.UgcSection'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_271(); + } + } + class $serializer_271 { + constructor() { + $serializer_instance_271 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KUgcSection', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('id', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('episodes', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_284().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), tmp0_cached[3]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_local2 = new Long(0, 0); + var tmp7_local3 = null; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp9_cached = Companion_getInstance_284().$childSerializers_1; + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 3, tmp9_cached[3], tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 3, tmp9_cached[3], tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KUgcSection.new_com_bapis_bilibili_app_viewunite_common_KUgcSection_awk1cv_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_xbspw_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_284().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.id.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.id); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.type.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.type); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !equals(value.episodes, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 3, tmp2_cached[3], value.episodes); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_xbspw_k$(encoder, value instanceof KUgcSection ? value : THROW_CCE()); + } + } + class KUgcSection { + constructor(id, title, type, episodes) { + Companion_getInstance_284(); + id = id === VOID ? new Long(0, 0) : id; + title = title === VOID ? '' : title; + type = type === VOID ? new Long(0, 0) : type; + episodes = episodes === VOID ? emptyList() : episodes; + this.id = id; + this.title = title; + this.type = type; + this.episodes = episodes; + } + get_id_kntnx8_k$() { + return this.id; + } + get_title_iz32un_k$() { + return this.title; + } + get_type_wovaf7_k$() { + return this.type; + } + get_episodes_src2w1_k$() { + return this.episodes; + } + component1_7eebsc_k$() { + return this.id; + } + component2_7eebsb_k$() { + return this.title; + } + component3_7eebsa_k$() { + return this.type; + } + component4_7eebs9_k$() { + return this.episodes; + } + copy_aadrq4_k$(id, title, type, episodes) { + return new KUgcSection(id, title, type, episodes); + } + copy(id, title, type, episodes, $super) { + id = id === VOID ? this.id : id; + title = title === VOID ? this.title : title; + type = type === VOID ? this.type : type; + episodes = episodes === VOID ? this.episodes : episodes; + return this.copy_aadrq4_k$(id, title, type, episodes); + } + toString() { + return 'KUgcSection(id=' + this.id.toString() + ', title=' + this.title + ', type=' + this.type.toString() + ', episodes=' + this.episodes + ')'; + } + hashCode() { + var result = this.id.hashCode(); + result = imul(result, 31) + getStringHashCode(this.title) | 0; + result = imul(result, 31) + this.type.hashCode() | 0; + result = imul(result, 31) + hashCode(this.episodes) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KUgcSection)) + return false; + var tmp0_other_with_cast = other instanceof KUgcSection ? other : THROW_CCE(); + if (!this.id.equals(tmp0_other_with_cast.id)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!this.type.equals(tmp0_other_with_cast.type)) + return false; + if (!equals(this.episodes, tmp0_other_with_cast.episodes)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KUgcSection_awk1cv_k$(seen1, id, title, type, episodes, serializationConstructorMarker) { + Companion_getInstance_284(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_271().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.id = new Long(0, 0); + else + $this.id = id; + if (0 === (seen1 & 2)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 4)) + $this.type = new Long(0, 0); + else + $this.type = type; + if (0 === (seen1 & 8)) + $this.episodes = emptyList(); + else + $this.episodes = episodes; + return $this; + } + } + class Companion_285 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.UgcEpisode'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_272(); + } + } + class $serializer_272 { + constructor() { + $serializer_instance_272 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KUgcEpisode', this, 9); + tmp0_serialDesc.addElement_5pzumi_k$('id', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('aid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('cid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('coverRightText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('page', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('vt', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('danmaku', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_386()), get_nullable($serializer_getInstance_367()), get_nullable($serializer_getInstance_367())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = new Long(0, 0); + var tmp6_local2 = new Long(0, 0); + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_local8 = null; + var tmp13_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp13_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_386(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_367(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_367(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + } else + while (tmp1_flag) { + tmp2_index = tmp13_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_386(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_367(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_367(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp13_input.endStructure_1xqz0n_k$(tmp0_desc); + return KUgcEpisode.new_com_bapis_bilibili_app_viewunite_common_KUgcEpisode_385xua_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, null); + } + serialize_2obvsi_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.id.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.id); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.aid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.aid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.cid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.cid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.cover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.coverRightText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.coverRightText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.page == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 6, $serializer_getInstance_386(), value.page); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.vt == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 7, $serializer_getInstance_367(), value.vt); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.danmaku == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 8, $serializer_getInstance_367(), value.danmaku); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_2obvsi_k$(encoder, value instanceof KUgcEpisode ? value : THROW_CCE()); + } + } + class KUgcEpisode { + constructor(id, aid, cid, title, cover, coverRightText, page, vt, danmaku) { + Companion_instance_285; + id = id === VOID ? new Long(0, 0) : id; + aid = aid === VOID ? new Long(0, 0) : aid; + cid = cid === VOID ? new Long(0, 0) : cid; + title = title === VOID ? '' : title; + cover = cover === VOID ? '' : cover; + coverRightText = coverRightText === VOID ? '' : coverRightText; + page = page === VOID ? null : page; + vt = vt === VOID ? null : vt; + danmaku = danmaku === VOID ? null : danmaku; + this.id = id; + this.aid = aid; + this.cid = cid; + this.title = title; + this.cover = cover; + this.coverRightText = coverRightText; + this.page = page; + this.vt = vt; + this.danmaku = danmaku; + } + get_id_kntnx8_k$() { + return this.id; + } + get_aid_18j9kd_k$() { + return this.aid; + } + get_cid_18j82z_k$() { + return this.cid; + } + get_title_iz32un_k$() { + return this.title; + } + get_cover_ipug0e_k$() { + return this.cover; + } + get_coverRightText_t0bat7_k$() { + return this.coverRightText; + } + get_page_wos8go_k$() { + return this.page; + } + get_vt_kntnll_k$() { + return this.vt; + } + get_danmaku_p1pkiu_k$() { + return this.danmaku; + } + component1_7eebsc_k$() { + return this.id; + } + component2_7eebsb_k$() { + return this.aid; + } + component3_7eebsa_k$() { + return this.cid; + } + component4_7eebs9_k$() { + return this.title; + } + component5_7eebs8_k$() { + return this.cover; + } + component6_7eebs7_k$() { + return this.coverRightText; + } + component7_7eebs6_k$() { + return this.page; + } + component8_7eebs5_k$() { + return this.vt; + } + component9_7eebs4_k$() { + return this.danmaku; + } + copy_voael0_k$(id, aid, cid, title, cover, coverRightText, page, vt, danmaku) { + return new KUgcEpisode(id, aid, cid, title, cover, coverRightText, page, vt, danmaku); + } + copy(id, aid, cid, title, cover, coverRightText, page, vt, danmaku, $super) { + id = id === VOID ? this.id : id; + aid = aid === VOID ? this.aid : aid; + cid = cid === VOID ? this.cid : cid; + title = title === VOID ? this.title : title; + cover = cover === VOID ? this.cover : cover; + coverRightText = coverRightText === VOID ? this.coverRightText : coverRightText; + page = page === VOID ? this.page : page; + vt = vt === VOID ? this.vt : vt; + danmaku = danmaku === VOID ? this.danmaku : danmaku; + return this.copy_voael0_k$(id, aid, cid, title, cover, coverRightText, page, vt, danmaku); + } + toString() { + return 'KUgcEpisode(id=' + this.id.toString() + ', aid=' + this.aid.toString() + ', cid=' + this.cid.toString() + ', title=' + this.title + ', cover=' + this.cover + ', coverRightText=' + this.coverRightText + ', page=' + this.page + ', vt=' + this.vt + ', danmaku=' + this.danmaku + ')'; + } + hashCode() { + var result = this.id.hashCode(); + result = imul(result, 31) + this.aid.hashCode() | 0; + result = imul(result, 31) + this.cid.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.title) | 0; + result = imul(result, 31) + getStringHashCode(this.cover) | 0; + result = imul(result, 31) + getStringHashCode(this.coverRightText) | 0; + result = imul(result, 31) + (this.page == null ? 0 : this.page.hashCode()) | 0; + result = imul(result, 31) + (this.vt == null ? 0 : this.vt.hashCode()) | 0; + result = imul(result, 31) + (this.danmaku == null ? 0 : this.danmaku.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KUgcEpisode)) + return false; + var tmp0_other_with_cast = other instanceof KUgcEpisode ? other : THROW_CCE(); + if (!this.id.equals(tmp0_other_with_cast.id)) + return false; + if (!this.aid.equals(tmp0_other_with_cast.aid)) + return false; + if (!this.cid.equals(tmp0_other_with_cast.cid)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + if (!(this.coverRightText === tmp0_other_with_cast.coverRightText)) + return false; + if (!equals(this.page, tmp0_other_with_cast.page)) + return false; + if (!equals(this.vt, tmp0_other_with_cast.vt)) + return false; + if (!equals(this.danmaku, tmp0_other_with_cast.danmaku)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KUgcEpisode_385xua_k$(seen1, id, aid, cid, title, cover, coverRightText, page, vt, danmaku, serializationConstructorMarker) { + Companion_instance_285; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_272().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.id = new Long(0, 0); + else + $this.id = id; + if (0 === (seen1 & 2)) + $this.aid = new Long(0, 0); + else + $this.aid = aid; + if (0 === (seen1 & 4)) + $this.cid = new Long(0, 0); + else + $this.cid = cid; + if (0 === (seen1 & 8)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 16)) + $this.cover = ''; + else + $this.cover = cover; + if (0 === (seen1 & 32)) + $this.coverRightText = ''; + else + $this.coverRightText = coverRightText; + if (0 === (seen1 & 64)) + $this.page = null; + else + $this.page = page; + if (0 === (seen1 & 128)) + $this.vt = null; + else + $this.vt = vt; + if (0 === (seen1 & 256)) + $this.danmaku = null; + else + $this.danmaku = danmaku; + return $this; + } + } + class Companion_286 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.UgcSeasonActivity'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_273(); + } + } + class $serializer_273 { + constructor() { + $serializer_instance_273 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KUgcSeasonActivity', this, 13); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('oid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('activityId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('intro', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('dayCount', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('userCount', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('joinDeadline', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('activityDeadline', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('checkinViewTime', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('newActivity', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('userActivity', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + tmp0_serialDesc.addElement_5pzumi_k$('seasonShow', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(13)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), BooleanSerializer_getInstance(), get_nullable($serializer_getInstance_274()), get_nullable($serializer_getInstance_275())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = new Long(0, 0); + var tmp6_local2 = new Long(0, 0); + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = 0; + var tmp10_local6 = 0; + var tmp11_local7 = new Long(0, 0); + var tmp12_local8 = new Long(0, 0); + var tmp13_local9 = 0; + var tmp14_local10 = false; + var tmp15_local11 = null; + var tmp16_local12 = null; + var tmp17_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp17_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp17_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp17_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp17_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp17_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp17_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp17_input.decodeLongElement_994anb_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp17_input.decodeLongElement_994anb_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp17_input.decodeIntElement_941u6a_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp17_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp17_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 11, $serializer_getInstance_274(), tmp15_local11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + tmp16_local12 = tmp17_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 12, $serializer_getInstance_275(), tmp16_local12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + } else + while (tmp1_flag) { + tmp2_index = tmp17_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp17_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp17_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp17_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp17_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp17_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp17_input.decodeLongElement_994anb_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp17_input.decodeLongElement_994anb_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp17_input.decodeIntElement_941u6a_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp17_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp17_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 11, $serializer_getInstance_274(), tmp15_local11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + case 12: + tmp16_local12 = tmp17_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 12, $serializer_getInstance_275(), tmp16_local12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp17_input.endStructure_1xqz0n_k$(tmp0_desc); + return KUgcSeasonActivity.new_com_bapis_bilibili_app_viewunite_common_KUgcSeasonActivity_pgmxda_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, null); + } + serialize_nno1m3_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.type === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.type); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.oid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.oid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.activityId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.activityId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.intro === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.intro); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.dayCount === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 5, value.dayCount); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.userCount === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 6, value.userCount); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !value.joinDeadline.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 7, value.joinDeadline); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !value.activityDeadline.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 8, value.activityDeadline); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.checkinViewTime === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 9, value.checkinViewTime); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.newActivity === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 10, value.newActivity); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.userActivity == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 11, $serializer_getInstance_274(), value.userActivity); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !(value.seasonShow == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 12, $serializer_getInstance_275(), value.seasonShow); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_nno1m3_k$(encoder, value instanceof KUgcSeasonActivity ? value : THROW_CCE()); + } + } + class KUgcSeasonActivity { + constructor(type, oid, activityId, title, intro, dayCount, userCount, joinDeadline, activityDeadline, checkinViewTime, newActivity, userActivity, seasonShow) { + Companion_instance_286; + type = type === VOID ? 0 : type; + oid = oid === VOID ? new Long(0, 0) : oid; + activityId = activityId === VOID ? new Long(0, 0) : activityId; + title = title === VOID ? '' : title; + intro = intro === VOID ? '' : intro; + dayCount = dayCount === VOID ? 0 : dayCount; + userCount = userCount === VOID ? 0 : userCount; + joinDeadline = joinDeadline === VOID ? new Long(0, 0) : joinDeadline; + activityDeadline = activityDeadline === VOID ? new Long(0, 0) : activityDeadline; + checkinViewTime = checkinViewTime === VOID ? 0 : checkinViewTime; + newActivity = newActivity === VOID ? false : newActivity; + userActivity = userActivity === VOID ? null : userActivity; + seasonShow = seasonShow === VOID ? null : seasonShow; + this.type = type; + this.oid = oid; + this.activityId = activityId; + this.title = title; + this.intro = intro; + this.dayCount = dayCount; + this.userCount = userCount; + this.joinDeadline = joinDeadline; + this.activityDeadline = activityDeadline; + this.checkinViewTime = checkinViewTime; + this.newActivity = newActivity; + this.userActivity = userActivity; + this.seasonShow = seasonShow; + } + get_type_wovaf7_k$() { + return this.type; + } + get_oid_18iz6n_k$() { + return this.oid; + } + get_activityId_dpfyfn_k$() { + return this.activityId; + } + get_title_iz32un_k$() { + return this.title; + } + get_intro_it4jer_k$() { + return this.intro; + } + get_dayCount_akaxw_k$() { + return this.dayCount; + } + get_userCount_dp6vkr_k$() { + return this.userCount; + } + get_joinDeadline_aymdjp_k$() { + return this.joinDeadline; + } + get_activityDeadline_i1fqds_k$() { + return this.activityDeadline; + } + get_checkinViewTime_uaqwei_k$() { + return this.checkinViewTime; + } + get_newActivity_7aikbq_k$() { + return this.newActivity; + } + get_userActivity_zhjuir_k$() { + return this.userActivity; + } + get_seasonShow_bh11iv_k$() { + return this.seasonShow; + } + component1_7eebsc_k$() { + return this.type; + } + component2_7eebsb_k$() { + return this.oid; + } + component3_7eebsa_k$() { + return this.activityId; + } + component4_7eebs9_k$() { + return this.title; + } + component5_7eebs8_k$() { + return this.intro; + } + component6_7eebs7_k$() { + return this.dayCount; + } + component7_7eebs6_k$() { + return this.userCount; + } + component8_7eebs5_k$() { + return this.joinDeadline; + } + component9_7eebs4_k$() { + return this.activityDeadline; + } + component10_gazzfo_k$() { + return this.checkinViewTime; + } + component11_gazzfn_k$() { + return this.newActivity; + } + component12_gazzfm_k$() { + return this.userActivity; + } + component13_gazzfl_k$() { + return this.seasonShow; + } + copy_ce7bkq_k$(type, oid, activityId, title, intro, dayCount, userCount, joinDeadline, activityDeadline, checkinViewTime, newActivity, userActivity, seasonShow) { + return new KUgcSeasonActivity(type, oid, activityId, title, intro, dayCount, userCount, joinDeadline, activityDeadline, checkinViewTime, newActivity, userActivity, seasonShow); + } + copy(type, oid, activityId, title, intro, dayCount, userCount, joinDeadline, activityDeadline, checkinViewTime, newActivity, userActivity, seasonShow, $super) { + type = type === VOID ? this.type : type; + oid = oid === VOID ? this.oid : oid; + activityId = activityId === VOID ? this.activityId : activityId; + title = title === VOID ? this.title : title; + intro = intro === VOID ? this.intro : intro; + dayCount = dayCount === VOID ? this.dayCount : dayCount; + userCount = userCount === VOID ? this.userCount : userCount; + joinDeadline = joinDeadline === VOID ? this.joinDeadline : joinDeadline; + activityDeadline = activityDeadline === VOID ? this.activityDeadline : activityDeadline; + checkinViewTime = checkinViewTime === VOID ? this.checkinViewTime : checkinViewTime; + newActivity = newActivity === VOID ? this.newActivity : newActivity; + userActivity = userActivity === VOID ? this.userActivity : userActivity; + seasonShow = seasonShow === VOID ? this.seasonShow : seasonShow; + return this.copy_ce7bkq_k$(type, oid, activityId, title, intro, dayCount, userCount, joinDeadline, activityDeadline, checkinViewTime, newActivity, userActivity, seasonShow); + } + toString() { + return 'KUgcSeasonActivity(type=' + this.type + ', oid=' + this.oid.toString() + ', activityId=' + this.activityId.toString() + ', title=' + this.title + ', intro=' + this.intro + ', dayCount=' + this.dayCount + ', userCount=' + this.userCount + ', joinDeadline=' + this.joinDeadline.toString() + ', activityDeadline=' + this.activityDeadline.toString() + ', checkinViewTime=' + this.checkinViewTime + ', newActivity=' + this.newActivity + ', userActivity=' + this.userActivity + ', seasonShow=' + this.seasonShow + ')'; + } + hashCode() { + var result = this.type; + result = imul(result, 31) + this.oid.hashCode() | 0; + result = imul(result, 31) + this.activityId.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.title) | 0; + result = imul(result, 31) + getStringHashCode(this.intro) | 0; + result = imul(result, 31) + this.dayCount | 0; + result = imul(result, 31) + this.userCount | 0; + result = imul(result, 31) + this.joinDeadline.hashCode() | 0; + result = imul(result, 31) + this.activityDeadline.hashCode() | 0; + result = imul(result, 31) + this.checkinViewTime | 0; + result = imul(result, 31) + getBooleanHashCode(this.newActivity) | 0; + result = imul(result, 31) + (this.userActivity == null ? 0 : this.userActivity.hashCode()) | 0; + result = imul(result, 31) + (this.seasonShow == null ? 0 : this.seasonShow.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KUgcSeasonActivity)) + return false; + var tmp0_other_with_cast = other instanceof KUgcSeasonActivity ? other : THROW_CCE(); + if (!(this.type === tmp0_other_with_cast.type)) + return false; + if (!this.oid.equals(tmp0_other_with_cast.oid)) + return false; + if (!this.activityId.equals(tmp0_other_with_cast.activityId)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.intro === tmp0_other_with_cast.intro)) + return false; + if (!(this.dayCount === tmp0_other_with_cast.dayCount)) + return false; + if (!(this.userCount === tmp0_other_with_cast.userCount)) + return false; + if (!this.joinDeadline.equals(tmp0_other_with_cast.joinDeadline)) + return false; + if (!this.activityDeadline.equals(tmp0_other_with_cast.activityDeadline)) + return false; + if (!(this.checkinViewTime === tmp0_other_with_cast.checkinViewTime)) + return false; + if (!(this.newActivity === tmp0_other_with_cast.newActivity)) + return false; + if (!equals(this.userActivity, tmp0_other_with_cast.userActivity)) + return false; + if (!equals(this.seasonShow, tmp0_other_with_cast.seasonShow)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KUgcSeasonActivity_pgmxda_k$(seen1, type, oid, activityId, title, intro, dayCount, userCount, joinDeadline, activityDeadline, checkinViewTime, newActivity, userActivity, seasonShow, serializationConstructorMarker) { + Companion_instance_286; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_273().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.type = 0; + else + $this.type = type; + if (0 === (seen1 & 2)) + $this.oid = new Long(0, 0); + else + $this.oid = oid; + if (0 === (seen1 & 4)) + $this.activityId = new Long(0, 0); + else + $this.activityId = activityId; + if (0 === (seen1 & 8)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 16)) + $this.intro = ''; + else + $this.intro = intro; + if (0 === (seen1 & 32)) + $this.dayCount = 0; + else + $this.dayCount = dayCount; + if (0 === (seen1 & 64)) + $this.userCount = 0; + else + $this.userCount = userCount; + if (0 === (seen1 & 128)) + $this.joinDeadline = new Long(0, 0); + else + $this.joinDeadline = joinDeadline; + if (0 === (seen1 & 256)) + $this.activityDeadline = new Long(0, 0); + else + $this.activityDeadline = activityDeadline; + if (0 === (seen1 & 512)) + $this.checkinViewTime = 0; + else + $this.checkinViewTime = checkinViewTime; + if (0 === (seen1 & 1024)) + $this.newActivity = false; + else + $this.newActivity = newActivity; + if (0 === (seen1 & 2048)) + $this.userActivity = null; + else + $this.userActivity = userActivity; + if (0 === (seen1 & 4096)) + $this.seasonShow = null; + else + $this.seasonShow = seasonShow; + return $this; + } + } + class Companion_287 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.UserActivity'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_274(); + } + } + class $serializer_274 { + constructor() { + $serializer_instance_274 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KUserActivity', this, 6); + tmp0_serialDesc.addElement_5pzumi_k$('userState', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('lastCheckinDate', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('checkinToday', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('userDayCount', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('userViewTime', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('portrait', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = new Long(0, 0); + var tmp6_local2 = 0; + var tmp7_local3 = 0; + var tmp8_local4 = 0; + var tmp9_local5 = null; + var tmp10_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp10_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + } else + while (tmp1_flag) { + tmp2_index = tmp10_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp10_input.endStructure_1xqz0n_k$(tmp0_desc); + return KUserActivity.new_com_bapis_bilibili_app_viewunite_common_KUserActivity_nzqv73_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); + } + serialize_kvmh8e_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.userState === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.userState); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.lastCheckinDate.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.lastCheckinDate); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.checkinToday === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.checkinToday); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.userDayCount === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 3, value.userDayCount); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.userViewTime === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 4, value.userViewTime); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.portrait === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.portrait); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_kvmh8e_k$(encoder, value instanceof KUserActivity ? value : THROW_CCE()); + } + } + class KUserActivity { + constructor(userState, lastCheckinDate, checkinToday, userDayCount, userViewTime, portrait) { + Companion_instance_287; + userState = userState === VOID ? 0 : userState; + lastCheckinDate = lastCheckinDate === VOID ? new Long(0, 0) : lastCheckinDate; + checkinToday = checkinToday === VOID ? 0 : checkinToday; + userDayCount = userDayCount === VOID ? 0 : userDayCount; + userViewTime = userViewTime === VOID ? 0 : userViewTime; + portrait = portrait === VOID ? '' : portrait; + this.userState = userState; + this.lastCheckinDate = lastCheckinDate; + this.checkinToday = checkinToday; + this.userDayCount = userDayCount; + this.userViewTime = userViewTime; + this.portrait = portrait; + } + get_userState_dy2db1_k$() { + return this.userState; + } + get_lastCheckinDate_rw2z30_k$() { + return this.lastCheckinDate; + } + get_checkinToday_7wppi5_k$() { + return this.checkinToday; + } + get_userDayCount_ncqcjr_k$() { + return this.userDayCount; + } + get_userViewTime_bmc11i_k$() { + return this.userViewTime; + } + get_portrait_jqr0kc_k$() { + return this.portrait; + } + component1_7eebsc_k$() { + return this.userState; + } + component2_7eebsb_k$() { + return this.lastCheckinDate; + } + component3_7eebsa_k$() { + return this.checkinToday; + } + component4_7eebs9_k$() { + return this.userDayCount; + } + component5_7eebs8_k$() { + return this.userViewTime; + } + component6_7eebs7_k$() { + return this.portrait; + } + copy_9m5ezn_k$(userState, lastCheckinDate, checkinToday, userDayCount, userViewTime, portrait) { + return new KUserActivity(userState, lastCheckinDate, checkinToday, userDayCount, userViewTime, portrait); + } + copy(userState, lastCheckinDate, checkinToday, userDayCount, userViewTime, portrait, $super) { + userState = userState === VOID ? this.userState : userState; + lastCheckinDate = lastCheckinDate === VOID ? this.lastCheckinDate : lastCheckinDate; + checkinToday = checkinToday === VOID ? this.checkinToday : checkinToday; + userDayCount = userDayCount === VOID ? this.userDayCount : userDayCount; + userViewTime = userViewTime === VOID ? this.userViewTime : userViewTime; + portrait = portrait === VOID ? this.portrait : portrait; + return this.copy_9m5ezn_k$(userState, lastCheckinDate, checkinToday, userDayCount, userViewTime, portrait); + } + toString() { + return 'KUserActivity(userState=' + this.userState + ', lastCheckinDate=' + this.lastCheckinDate.toString() + ', checkinToday=' + this.checkinToday + ', userDayCount=' + this.userDayCount + ', userViewTime=' + this.userViewTime + ', portrait=' + this.portrait + ')'; + } + hashCode() { + var result = this.userState; + result = imul(result, 31) + this.lastCheckinDate.hashCode() | 0; + result = imul(result, 31) + this.checkinToday | 0; + result = imul(result, 31) + this.userDayCount | 0; + result = imul(result, 31) + this.userViewTime | 0; + result = imul(result, 31) + getStringHashCode(this.portrait) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KUserActivity)) + return false; + var tmp0_other_with_cast = other instanceof KUserActivity ? other : THROW_CCE(); + if (!(this.userState === tmp0_other_with_cast.userState)) + return false; + if (!this.lastCheckinDate.equals(tmp0_other_with_cast.lastCheckinDate)) + return false; + if (!(this.checkinToday === tmp0_other_with_cast.checkinToday)) + return false; + if (!(this.userDayCount === tmp0_other_with_cast.userDayCount)) + return false; + if (!(this.userViewTime === tmp0_other_with_cast.userViewTime)) + return false; + if (!(this.portrait === tmp0_other_with_cast.portrait)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KUserActivity_nzqv73_k$(seen1, userState, lastCheckinDate, checkinToday, userDayCount, userViewTime, portrait, serializationConstructorMarker) { + Companion_instance_287; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_274().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.userState = 0; + else + $this.userState = userState; + if (0 === (seen1 & 2)) + $this.lastCheckinDate = new Long(0, 0); + else + $this.lastCheckinDate = lastCheckinDate; + if (0 === (seen1 & 4)) + $this.checkinToday = 0; + else + $this.checkinToday = checkinToday; + if (0 === (seen1 & 8)) + $this.userDayCount = 0; + else + $this.userDayCount = userDayCount; + if (0 === (seen1 & 16)) + $this.userViewTime = 0; + else + $this.userViewTime = userViewTime; + if (0 === (seen1 & 32)) + $this.portrait = ''; + else + $this.portrait = portrait; + return $this; + } + } + class Companion_288 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.SeasonShow'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_275(); + } + } + class $serializer_275 { + constructor() { + $serializer_instance_275 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KSeasonShow', this, 5); + tmp0_serialDesc.addElement_5pzumi_k$('buttonText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('joinText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('ruleText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('checkinText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('checkinPrompt', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp9_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + } else + while (tmp1_flag) { + tmp2_index = tmp9_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp9_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSeasonShow.new_com_bapis_bilibili_app_viewunite_common_KSeasonShow_f2nqgl_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); + } + serialize_n0tsc8_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.buttonText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.buttonText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.joinText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.joinText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.ruleText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.ruleText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.checkinText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.checkinText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.checkinPrompt === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.checkinPrompt); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_n0tsc8_k$(encoder, value instanceof KSeasonShow ? value : THROW_CCE()); + } + } + class KSeasonShow { + constructor(buttonText, joinText, ruleText, checkinText, checkinPrompt) { + Companion_instance_288; + buttonText = buttonText === VOID ? '' : buttonText; + joinText = joinText === VOID ? '' : joinText; + ruleText = ruleText === VOID ? '' : ruleText; + checkinText = checkinText === VOID ? '' : checkinText; + checkinPrompt = checkinPrompt === VOID ? '' : checkinPrompt; + this.buttonText = buttonText; + this.joinText = joinText; + this.ruleText = ruleText; + this.checkinText = checkinText; + this.checkinPrompt = checkinPrompt; + } + get_buttonText_e8s7aw_k$() { + return this.buttonText; + } + get_joinText_g1lvls_k$() { + return this.joinText; + } + get_ruleText_j6e6lq_k$() { + return this.ruleText; + } + get_checkinText_y44t4f_k$() { + return this.checkinText; + } + get_checkinPrompt_u8gyiw_k$() { + return this.checkinPrompt; + } + component1_7eebsc_k$() { + return this.buttonText; + } + component2_7eebsb_k$() { + return this.joinText; + } + component3_7eebsa_k$() { + return this.ruleText; + } + component4_7eebs9_k$() { + return this.checkinText; + } + component5_7eebs8_k$() { + return this.checkinPrompt; + } + copy_bit9gb_k$(buttonText, joinText, ruleText, checkinText, checkinPrompt) { + return new KSeasonShow(buttonText, joinText, ruleText, checkinText, checkinPrompt); + } + copy(buttonText, joinText, ruleText, checkinText, checkinPrompt, $super) { + buttonText = buttonText === VOID ? this.buttonText : buttonText; + joinText = joinText === VOID ? this.joinText : joinText; + ruleText = ruleText === VOID ? this.ruleText : ruleText; + checkinText = checkinText === VOID ? this.checkinText : checkinText; + checkinPrompt = checkinPrompt === VOID ? this.checkinPrompt : checkinPrompt; + return this.copy_bit9gb_k$(buttonText, joinText, ruleText, checkinText, checkinPrompt); + } + toString() { + return 'KSeasonShow(buttonText=' + this.buttonText + ', joinText=' + this.joinText + ', ruleText=' + this.ruleText + ', checkinText=' + this.checkinText + ', checkinPrompt=' + this.checkinPrompt + ')'; + } + hashCode() { + var result = getStringHashCode(this.buttonText); + result = imul(result, 31) + getStringHashCode(this.joinText) | 0; + result = imul(result, 31) + getStringHashCode(this.ruleText) | 0; + result = imul(result, 31) + getStringHashCode(this.checkinText) | 0; + result = imul(result, 31) + getStringHashCode(this.checkinPrompt) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSeasonShow)) + return false; + var tmp0_other_with_cast = other instanceof KSeasonShow ? other : THROW_CCE(); + if (!(this.buttonText === tmp0_other_with_cast.buttonText)) + return false; + if (!(this.joinText === tmp0_other_with_cast.joinText)) + return false; + if (!(this.ruleText === tmp0_other_with_cast.ruleText)) + return false; + if (!(this.checkinText === tmp0_other_with_cast.checkinText)) + return false; + if (!(this.checkinPrompt === tmp0_other_with_cast.checkinPrompt)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KSeasonShow_f2nqgl_k$(seen1, buttonText, joinText, ruleText, checkinText, checkinPrompt, serializationConstructorMarker) { + Companion_instance_288; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_275().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.buttonText = ''; + else + $this.buttonText = buttonText; + if (0 === (seen1 & 2)) + $this.joinText = ''; + else + $this.joinText = joinText; + if (0 === (seen1 & 4)) + $this.ruleText = ''; + else + $this.ruleText = ruleText; + if (0 === (seen1 & 8)) + $this.checkinText = ''; + else + $this.checkinText = checkinText; + if (0 === (seen1 & 16)) + $this.checkinPrompt = ''; + else + $this.checkinPrompt = checkinPrompt; + return $this; + } + } + class Companion_289 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.SerialSeason.ReportEntry'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_276(); + } + } + class $serializer_276 { + constructor() { + $serializer_instance_276 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KSerialSeason.KReportEntry', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('key', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('value', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KReportEntry_5.new_com_bapis_bilibili_app_viewunite_common_KSerialSeason_KReportEntry_ivkutb_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_asgz30_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.key === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.key); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.value === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.value); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_asgz30_k$(encoder, value instanceof KReportEntry_5 ? value : THROW_CCE()); + } + } + class KReportEntry_5 { + constructor(key, value) { + Companion_instance_289; + key = key === VOID ? '' : key; + value = value === VOID ? '' : value; + this.key = key; + this.value = value; + } + get_key_18j28a_k$() { + return this.key; + } + get_value_j01efc_k$() { + return this.value; + } + component1_7eebsc_k$() { + return this.key; + } + component2_7eebsb_k$() { + return this.value; + } + copy_plwnsl_k$(key, value) { + return new KReportEntry_5(key, value); + } + copy(key, value, $super) { + key = key === VOID ? this.key : key; + value = value === VOID ? this.value : value; + return this.copy_plwnsl_k$(key, value); + } + toString() { + return 'KReportEntry(key=' + this.key + ', value=' + this.value + ')'; + } + hashCode() { + var result = getStringHashCode(this.key); + result = imul(result, 31) + getStringHashCode(this.value) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KReportEntry_5)) + return false; + var tmp0_other_with_cast = other instanceof KReportEntry_5 ? other : THROW_CCE(); + if (!(this.key === tmp0_other_with_cast.key)) + return false; + if (!(this.value === tmp0_other_with_cast.value)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KSerialSeason_KReportEntry_ivkutb_k$(seen1, key, value, serializationConstructorMarker) { + Companion_instance_289; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_276().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.key = ''; + else + $this.key = key; + if (0 === (seen1 & 2)) + $this.value = ''; + else + $this.value = value; + return $this; + } + } + class Companion_290 { + constructor() { + Companion_instance_290 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, null, null, null, null, null, null, null, null, new LinkedHashMapSerializer(StringSerializer_getInstance(), StringSerializer_getInstance())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.viewunite.common.SerialSeason'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_277(); + } + } + class $serializer_277 { + constructor() { + $serializer_instance_277 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KSerialSeason', this, 12); + tmp0_serialDesc.addElement_5pzumi_k$('seasonId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('seasonTitle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('isNew', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('badge', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('badgeType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('badgeInfo', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('link', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('resource', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('newEp', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('report', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_290().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), get_nullable($serializer_getInstance_377()), StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_278()), tmp0_cached[11]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = 0; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = 0; + var tmp11_local7 = null; + var tmp12_local8 = null; + var tmp13_local9 = null; + var tmp14_local10 = null; + var tmp15_local11 = null; + var tmp16_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp17_cached = Companion_getInstance_290().$childSerializers_1; + if (tmp16_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp16_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_377(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp16_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 10, $serializer_getInstance_278(), tmp14_local10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp16_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 11, tmp17_cached[11], tmp15_local11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + } else + while (tmp1_flag) { + tmp2_index = tmp16_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp16_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_377(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp16_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 10, $serializer_getInstance_278(), tmp14_local10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp16_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 11, tmp17_cached[11], tmp15_local11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp16_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSerialSeason_0.new_com_bapis_bilibili_app_viewunite_common_KSerialSeason_3p4g22_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, null); + } + serialize_8teish_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_290().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.seasonId === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.seasonId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.seasonTitle === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.seasonTitle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.isNew === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 3, value.isNew); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.cover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.badge === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.badge); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.badgeType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 6, value.badgeType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.badgeInfo == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 7, $serializer_getInstance_377(), value.badgeInfo); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.link === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 8, value.link); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.resource === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 9, value.resource); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.newEp == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 10, $serializer_getInstance_278(), value.newEp); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !equals(value.report, emptyMap())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 11, tmp2_cached[11], value.report); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_8teish_k$(encoder, value instanceof KSerialSeason_0 ? value : THROW_CCE()); + } + } + class KSerialSeason_0 { + constructor(seasonId, title, seasonTitle, isNew, cover, badge, badgeType, badgeInfo, link, resource, newEp, report) { + Companion_getInstance_290(); + seasonId = seasonId === VOID ? 0 : seasonId; + title = title === VOID ? '' : title; + seasonTitle = seasonTitle === VOID ? '' : seasonTitle; + isNew = isNew === VOID ? 0 : isNew; + cover = cover === VOID ? '' : cover; + badge = badge === VOID ? '' : badge; + badgeType = badgeType === VOID ? 0 : badgeType; + badgeInfo = badgeInfo === VOID ? null : badgeInfo; + link = link === VOID ? '' : link; + resource = resource === VOID ? '' : resource; + newEp = newEp === VOID ? null : newEp; + report = report === VOID ? emptyMap() : report; + this.seasonId = seasonId; + this.title = title; + this.seasonTitle = seasonTitle; + this.isNew = isNew; + this.cover = cover; + this.badge = badge; + this.badgeType = badgeType; + this.badgeInfo = badgeInfo; + this.link = link; + this.resource = resource; + this.newEp = newEp; + this.report = report; + } + get_seasonId_h33f15_k$() { + return this.seasonId; + } + get_title_iz32un_k$() { + return this.title; + } + get_seasonTitle_hri9g_k$() { + return this.seasonTitle; + } + get_isNew_it6xv1_k$() { + return this.isNew; + } + get_cover_ipug0e_k$() { + return this.cover; + } + get_badge_ip1cai_k$() { + return this.badge; + } + get_badgeType_rkpkj0_k$() { + return this.badgeType; + } + get_badgeInfo_rkwtrs_k$() { + return this.badgeInfo; + } + get_link_wopumb_k$() { + return this.link; + } + get_resource_xl4447_k$() { + return this.resource; + } + get_newEp_ivpsn6_k$() { + return this.newEp; + } + get_report_iye43h_k$() { + return this.report; + } + component1_7eebsc_k$() { + return this.seasonId; + } + component2_7eebsb_k$() { + return this.title; + } + component3_7eebsa_k$() { + return this.seasonTitle; + } + component4_7eebs9_k$() { + return this.isNew; + } + component5_7eebs8_k$() { + return this.cover; + } + component6_7eebs7_k$() { + return this.badge; + } + component7_7eebs6_k$() { + return this.badgeType; + } + component8_7eebs5_k$() { + return this.badgeInfo; + } + component9_7eebs4_k$() { + return this.link; + } + component10_gazzfo_k$() { + return this.resource; + } + component11_gazzfn_k$() { + return this.newEp; + } + component12_gazzfm_k$() { + return this.report; + } + copy_1gqnrl_k$(seasonId, title, seasonTitle, isNew, cover, badge, badgeType, badgeInfo, link, resource, newEp, report) { + return new KSerialSeason_0(seasonId, title, seasonTitle, isNew, cover, badge, badgeType, badgeInfo, link, resource, newEp, report); + } + copy(seasonId, title, seasonTitle, isNew, cover, badge, badgeType, badgeInfo, link, resource, newEp, report, $super) { + seasonId = seasonId === VOID ? this.seasonId : seasonId; + title = title === VOID ? this.title : title; + seasonTitle = seasonTitle === VOID ? this.seasonTitle : seasonTitle; + isNew = isNew === VOID ? this.isNew : isNew; + cover = cover === VOID ? this.cover : cover; + badge = badge === VOID ? this.badge : badge; + badgeType = badgeType === VOID ? this.badgeType : badgeType; + badgeInfo = badgeInfo === VOID ? this.badgeInfo : badgeInfo; + link = link === VOID ? this.link : link; + resource = resource === VOID ? this.resource : resource; + newEp = newEp === VOID ? this.newEp : newEp; + report = report === VOID ? this.report : report; + return this.copy_1gqnrl_k$(seasonId, title, seasonTitle, isNew, cover, badge, badgeType, badgeInfo, link, resource, newEp, report); + } + toString() { + return 'KSerialSeason(seasonId=' + this.seasonId + ', title=' + this.title + ', seasonTitle=' + this.seasonTitle + ', isNew=' + this.isNew + ', cover=' + this.cover + ', badge=' + this.badge + ', badgeType=' + this.badgeType + ', badgeInfo=' + this.badgeInfo + ', link=' + this.link + ', resource=' + this.resource + ', newEp=' + this.newEp + ', report=' + this.report + ')'; + } + hashCode() { + var result = this.seasonId; + result = imul(result, 31) + getStringHashCode(this.title) | 0; + result = imul(result, 31) + getStringHashCode(this.seasonTitle) | 0; + result = imul(result, 31) + this.isNew | 0; + result = imul(result, 31) + getStringHashCode(this.cover) | 0; + result = imul(result, 31) + getStringHashCode(this.badge) | 0; + result = imul(result, 31) + this.badgeType | 0; + result = imul(result, 31) + (this.badgeInfo == null ? 0 : this.badgeInfo.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.link) | 0; + result = imul(result, 31) + getStringHashCode(this.resource) | 0; + result = imul(result, 31) + (this.newEp == null ? 0 : this.newEp.hashCode()) | 0; + result = imul(result, 31) + hashCode(this.report) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSerialSeason_0)) + return false; + var tmp0_other_with_cast = other instanceof KSerialSeason_0 ? other : THROW_CCE(); + if (!(this.seasonId === tmp0_other_with_cast.seasonId)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.seasonTitle === tmp0_other_with_cast.seasonTitle)) + return false; + if (!(this.isNew === tmp0_other_with_cast.isNew)) + return false; + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + if (!(this.badge === tmp0_other_with_cast.badge)) + return false; + if (!(this.badgeType === tmp0_other_with_cast.badgeType)) + return false; + if (!equals(this.badgeInfo, tmp0_other_with_cast.badgeInfo)) + return false; + if (!(this.link === tmp0_other_with_cast.link)) + return false; + if (!(this.resource === tmp0_other_with_cast.resource)) + return false; + if (!equals(this.newEp, tmp0_other_with_cast.newEp)) + return false; + if (!equals(this.report, tmp0_other_with_cast.report)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KSerialSeason_3p4g22_k$(seen1, seasonId, title, seasonTitle, isNew, cover, badge, badgeType, badgeInfo, link, resource, newEp, report, serializationConstructorMarker) { + Companion_getInstance_290(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_277().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.seasonId = 0; + else + $this.seasonId = seasonId; + if (0 === (seen1 & 2)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 4)) + $this.seasonTitle = ''; + else + $this.seasonTitle = seasonTitle; + if (0 === (seen1 & 8)) + $this.isNew = 0; + else + $this.isNew = isNew; + if (0 === (seen1 & 16)) + $this.cover = ''; + else + $this.cover = cover; + if (0 === (seen1 & 32)) + $this.badge = ''; + else + $this.badge = badge; + if (0 === (seen1 & 64)) + $this.badgeType = 0; + else + $this.badgeType = badgeType; + if (0 === (seen1 & 128)) + $this.badgeInfo = null; + else + $this.badgeInfo = badgeInfo; + if (0 === (seen1 & 256)) + $this.link = ''; + else + $this.link = link; + if (0 === (seen1 & 512)) + $this.resource = ''; + else + $this.resource = resource; + if (0 === (seen1 & 1024)) + $this.newEp = null; + else + $this.newEp = newEp; + if (0 === (seen1 & 2048)) + $this.report = emptyMap(); + else + $this.report = report; + return $this; + } + } + class Companion_291 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.NewEp'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_278(); + } + } + class $serializer_278 { + constructor() { + $serializer_instance_278 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KNewEp', this, 7); + tmp0_serialDesc.addElement_5pzumi_k$('id', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('desc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('isNew', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('more', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('indexShow', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = 0; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp11_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + } else + while (tmp1_flag) { + tmp2_index = tmp11_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp11_input.endStructure_1xqz0n_k$(tmp0_desc); + return KNewEp.new_com_bapis_bilibili_app_viewunite_common_KNewEp_j3yz60_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, null); + } + serialize_vnw4w3_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.id === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.id); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.desc === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.desc); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.isNew === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 3, value.isNew); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.more === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.more); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.cover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.indexShow === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.indexShow); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_vnw4w3_k$(encoder, value instanceof KNewEp ? value : THROW_CCE()); + } + } + class KNewEp { + constructor(id, title, desc, isNew, more, cover, indexShow) { + Companion_instance_291; + id = id === VOID ? 0 : id; + title = title === VOID ? '' : title; + desc = desc === VOID ? '' : desc; + isNew = isNew === VOID ? 0 : isNew; + more = more === VOID ? '' : more; + cover = cover === VOID ? '' : cover; + indexShow = indexShow === VOID ? '' : indexShow; + this.id = id; + this.title = title; + this.desc = desc; + this.isNew = isNew; + this.more = more; + this.cover = cover; + this.indexShow = indexShow; + } + get_id_kntnx8_k$() { + return this.id; + } + get_title_iz32un_k$() { + return this.title; + } + get_desc_woknve_k$() { + return this.desc; + } + get_isNew_it6xv1_k$() { + return this.isNew; + } + get_more_woqm5a_k$() { + return this.more; + } + get_cover_ipug0e_k$() { + return this.cover; + } + get_indexShow_4u9tbu_k$() { + return this.indexShow; + } + component1_7eebsc_k$() { + return this.id; + } + component2_7eebsb_k$() { + return this.title; + } + component3_7eebsa_k$() { + return this.desc; + } + component4_7eebs9_k$() { + return this.isNew; + } + component5_7eebs8_k$() { + return this.more; + } + component6_7eebs7_k$() { + return this.cover; + } + component7_7eebs6_k$() { + return this.indexShow; + } + copy_ycueor_k$(id, title, desc, isNew, more, cover, indexShow) { + return new KNewEp(id, title, desc, isNew, more, cover, indexShow); + } + copy(id, title, desc, isNew, more, cover, indexShow, $super) { + id = id === VOID ? this.id : id; + title = title === VOID ? this.title : title; + desc = desc === VOID ? this.desc : desc; + isNew = isNew === VOID ? this.isNew : isNew; + more = more === VOID ? this.more : more; + cover = cover === VOID ? this.cover : cover; + indexShow = indexShow === VOID ? this.indexShow : indexShow; + return this.copy_ycueor_k$(id, title, desc, isNew, more, cover, indexShow); + } + toString() { + return 'KNewEp(id=' + this.id + ', title=' + this.title + ', desc=' + this.desc + ', isNew=' + this.isNew + ', more=' + this.more + ', cover=' + this.cover + ', indexShow=' + this.indexShow + ')'; + } + hashCode() { + var result = this.id; + result = imul(result, 31) + getStringHashCode(this.title) | 0; + result = imul(result, 31) + getStringHashCode(this.desc) | 0; + result = imul(result, 31) + this.isNew | 0; + result = imul(result, 31) + getStringHashCode(this.more) | 0; + result = imul(result, 31) + getStringHashCode(this.cover) | 0; + result = imul(result, 31) + getStringHashCode(this.indexShow) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KNewEp)) + return false; + var tmp0_other_with_cast = other instanceof KNewEp ? other : THROW_CCE(); + if (!(this.id === tmp0_other_with_cast.id)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.desc === tmp0_other_with_cast.desc)) + return false; + if (!(this.isNew === tmp0_other_with_cast.isNew)) + return false; + if (!(this.more === tmp0_other_with_cast.more)) + return false; + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + if (!(this.indexShow === tmp0_other_with_cast.indexShow)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KNewEp_j3yz60_k$(seen1, id, title, desc, isNew, more, cover, indexShow, serializationConstructorMarker) { + Companion_instance_291; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_278().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.id = 0; + else + $this.id = id; + if (0 === (seen1 & 2)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 4)) + $this.desc = ''; + else + $this.desc = desc; + if (0 === (seen1 & 8)) + $this.isNew = 0; + else + $this.isNew = isNew; + if (0 === (seen1 & 16)) + $this.more = ''; + else + $this.more = more; + if (0 === (seen1 & 32)) + $this.cover = ''; + else + $this.cover = cover; + if (0 === (seen1 & 64)) + $this.indexShow = ''; + else + $this.indexShow = indexShow; + return $this; + } + } + class Companion_292 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.FollowLayer.ReportEntry'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_279(); + } + } + class $serializer_279 { + constructor() { + $serializer_instance_279 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KFollowLayer.KReportEntry', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('key', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('value', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KReportEntry_6.new_com_bapis_bilibili_app_viewunite_common_KFollowLayer_KReportEntry_vm5e42_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_cvkarb_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.key === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.key); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.value === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.value); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_cvkarb_k$(encoder, value instanceof KReportEntry_6 ? value : THROW_CCE()); + } + } + class KReportEntry_6 { + constructor(key, value) { + Companion_instance_292; + key = key === VOID ? '' : key; + value = value === VOID ? '' : value; + this.key = key; + this.value = value; + } + get_key_18j28a_k$() { + return this.key; + } + get_value_j01efc_k$() { + return this.value; + } + component1_7eebsc_k$() { + return this.key; + } + component2_7eebsb_k$() { + return this.value; + } + copy_plwnsl_k$(key, value) { + return new KReportEntry_6(key, value); + } + copy(key, value, $super) { + key = key === VOID ? this.key : key; + value = value === VOID ? this.value : value; + return this.copy_plwnsl_k$(key, value); + } + toString() { + return 'KReportEntry(key=' + this.key + ', value=' + this.value + ')'; + } + hashCode() { + var result = getStringHashCode(this.key); + result = imul(result, 31) + getStringHashCode(this.value) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KReportEntry_6)) + return false; + var tmp0_other_with_cast = other instanceof KReportEntry_6 ? other : THROW_CCE(); + if (!(this.key === tmp0_other_with_cast.key)) + return false; + if (!(this.value === tmp0_other_with_cast.value)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KFollowLayer_KReportEntry_vm5e42_k$(seen1, key, value, serializationConstructorMarker) { + Companion_instance_292; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_279().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.key = ''; + else + $this.key = key; + if (0 === (seen1 & 2)) + $this.value = ''; + else + $this.value = value; + return $this; + } + } + class Companion_293 { + constructor() { + Companion_instance_293 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, new LinkedHashMapSerializer(StringSerializer_getInstance(), StringSerializer_getInstance())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.viewunite.common.FollowLayer'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_280(); + } + } + class $serializer_280 { + constructor() { + $serializer_instance_280 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KFollowLayer', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('staff', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('desc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('report', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_293().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_321()), get_nullable($serializer_getInstance_281()), tmp0_cached[2]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp8_cached = Companion_getInstance_293().$childSerializers_1; + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_321(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_281(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp8_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_321(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_281(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp8_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KFollowLayer_0.new_com_bapis_bilibili_app_viewunite_common_KFollowLayer_rzklxg_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_2plavm_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_293().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.staff == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_321(), value.staff); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.desc == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_281(), value.desc); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !equals(value.report, emptyMap())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 2, tmp2_cached[2], value.report); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_2plavm_k$(encoder, value instanceof KFollowLayer_0 ? value : THROW_CCE()); + } + } + class KFollowLayer_0 { + constructor(staff, desc, report) { + Companion_getInstance_293(); + staff = staff === VOID ? null : staff; + desc = desc === VOID ? null : desc; + report = report === VOID ? emptyMap() : report; + this.staff = staff; + this.desc = desc; + this.report = report; + } + get_staff_iypwvr_k$() { + return this.staff; + } + get_desc_woknve_k$() { + return this.desc; + } + get_report_iye43h_k$() { + return this.report; + } + component1_7eebsc_k$() { + return this.staff; + } + component2_7eebsb_k$() { + return this.desc; + } + component3_7eebsa_k$() { + return this.report; + } + copy_manzrc_k$(staff, desc, report) { + return new KFollowLayer_0(staff, desc, report); + } + copy(staff, desc, report, $super) { + staff = staff === VOID ? this.staff : staff; + desc = desc === VOID ? this.desc : desc; + report = report === VOID ? this.report : report; + return this.copy_manzrc_k$(staff, desc, report); + } + toString() { + return 'KFollowLayer(staff=' + this.staff + ', desc=' + this.desc + ', report=' + this.report + ')'; + } + hashCode() { + var result = this.staff == null ? 0 : this.staff.hashCode(); + result = imul(result, 31) + (this.desc == null ? 0 : this.desc.hashCode()) | 0; + result = imul(result, 31) + hashCode(this.report) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KFollowLayer_0)) + return false; + var tmp0_other_with_cast = other instanceof KFollowLayer_0 ? other : THROW_CCE(); + if (!equals(this.staff, tmp0_other_with_cast.staff)) + return false; + if (!equals(this.desc, tmp0_other_with_cast.desc)) + return false; + if (!equals(this.report, tmp0_other_with_cast.report)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KFollowLayer_rzklxg_k$(seen1, staff, desc, report, serializationConstructorMarker) { + Companion_getInstance_293(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_280().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.staff = null; + else + $this.staff = staff; + if (0 === (seen1 & 2)) + $this.desc = null; + else + $this.desc = desc; + if (0 === (seen1 & 4)) + $this.report = emptyMap(); + else + $this.report = report; + return $this; + } + } + class Companion_294 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.Desc'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_281(); + } + } + class $serializer_281 { + constructor() { + $serializer_instance_281 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KDesc', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('info', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KDesc.new_com_bapis_bilibili_app_viewunite_common_KDesc_n588r5_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_9l0fk7_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.info === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.info); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.title); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_9l0fk7_k$(encoder, value instanceof KDesc ? value : THROW_CCE()); + } + } + class KDesc { + constructor(info, title) { + Companion_instance_294; + info = info === VOID ? '' : info; + title = title === VOID ? '' : title; + this.info = info; + this.title = title; + } + get_info_woo16f_k$() { + return this.info; + } + get_title_iz32un_k$() { + return this.title; + } + component1_7eebsc_k$() { + return this.info; + } + component2_7eebsb_k$() { + return this.title; + } + copy_plwnsl_k$(info, title) { + return new KDesc(info, title); + } + copy(info, title, $super) { + info = info === VOID ? this.info : info; + title = title === VOID ? this.title : title; + return this.copy_plwnsl_k$(info, title); + } + toString() { + return 'KDesc(info=' + this.info + ', title=' + this.title + ')'; + } + hashCode() { + var result = getStringHashCode(this.info); + result = imul(result, 31) + getStringHashCode(this.title) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KDesc)) + return false; + var tmp0_other_with_cast = other instanceof KDesc ? other : THROW_CCE(); + if (!(this.info === tmp0_other_with_cast.info)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KDesc_n588r5_k$(seen1, info, title, serializationConstructorMarker) { + Companion_instance_294; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_281().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.info = ''; + else + $this.info = info; + if (0 === (seen1 & 2)) + $this.title = ''; + else + $this.title = title; + return $this; + } + } + class Companion_295 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.SectionData.ReportEntry'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_282(); + } + } + class $serializer_282 { + constructor() { + $serializer_instance_282 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KSectionData.KReportEntry', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('key', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('value', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KReportEntry_7.new_com_bapis_bilibili_app_viewunite_common_KSectionData_KReportEntry_nc7sv7_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_zduf0a_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.key === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.key); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.value === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.value); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_zduf0a_k$(encoder, value instanceof KReportEntry_7 ? value : THROW_CCE()); + } + } + class KReportEntry_7 { + constructor(key, value) { + Companion_instance_295; + key = key === VOID ? '' : key; + value = value === VOID ? '' : value; + this.key = key; + this.value = value; + } + get_key_18j28a_k$() { + return this.key; + } + get_value_j01efc_k$() { + return this.value; + } + component1_7eebsc_k$() { + return this.key; + } + component2_7eebsb_k$() { + return this.value; + } + copy_plwnsl_k$(key, value) { + return new KReportEntry_7(key, value); + } + copy(key, value, $super) { + key = key === VOID ? this.key : key; + value = value === VOID ? this.value : value; + return this.copy_plwnsl_k$(key, value); + } + toString() { + return 'KReportEntry(key=' + this.key + ', value=' + this.value + ')'; + } + hashCode() { + var result = getStringHashCode(this.key); + result = imul(result, 31) + getStringHashCode(this.value) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KReportEntry_7)) + return false; + var tmp0_other_with_cast = other instanceof KReportEntry_7 ? other : THROW_CCE(); + if (!(this.key === tmp0_other_with_cast.key)) + return false; + if (!(this.value === tmp0_other_with_cast.value)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KSectionData_KReportEntry_nc7sv7_k$(seen1, key, value, serializationConstructorMarker) { + Companion_instance_295; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_282().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.key = ''; + else + $this.key = key; + if (0 === (seen1 & 2)) + $this.value = ''; + else + $this.value = value; + return $this; + } + } + class Companion_296 { + constructor() { + Companion_instance_296 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, null, null, new ArrayListSerializer(IntSerializer_getInstance()), new ArrayListSerializer($serializer_getInstance_304()), null, null, null, new ArrayListSerializer($serializer_getInstance_277()), null, null, new LinkedHashMapSerializer(StringSerializer_getInstance(), StringSerializer_getInstance()), null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.viewunite.common.SectionData'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_283(); + } + } + class $serializer_283 { + constructor() { + $serializer_instance_283 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KSectionData', this, 15); + tmp0_serialDesc.addElement_5pzumi_k$('id', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('sectionId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('canOrdDesc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('more', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('episodeIds', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('episodes', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('splitText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('moduleStyle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('moreBottomDesc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('seasons', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('moreLeft', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(13)); + tmp0_serialDesc.addElement_5pzumi_k$('report', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(14)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('bgInfo', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(15)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_296().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), tmp0_cached[5], tmp0_cached[6], StringSerializer_getInstance(), get_nullable($serializer_getInstance_301()), StringSerializer_getInstance(), tmp0_cached[10], get_nullable($serializer_getInstance_284()), IntSerializer_getInstance(), tmp0_cached[13], get_nullable($serializer_getInstance_393())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = 0; + var tmp6_local2 = null; + var tmp7_local3 = 0; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_local8 = null; + var tmp13_local9 = null; + var tmp14_local10 = null; + var tmp15_local11 = null; + var tmp16_local12 = 0; + var tmp17_local13 = null; + var tmp18_local14 = null; + var tmp19_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp20_cached = Companion_getInstance_296().$childSerializers_1; + if (tmp19_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp19_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp19_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp19_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp19_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 5, tmp20_cached[5], tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp19_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 6, tmp20_cached[6], tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp19_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_301(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp19_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 10, tmp20_cached[10], tmp14_local10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp19_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 11, $serializer_getInstance_284(), tmp15_local11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + tmp16_local12 = tmp19_input.decodeIntElement_941u6a_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + tmp17_local13 = tmp19_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 13, tmp20_cached[13], tmp17_local13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + tmp18_local14 = tmp19_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 14, $serializer_getInstance_393(), tmp18_local14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + } else + while (tmp1_flag) { + tmp2_index = tmp19_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp19_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp19_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp19_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp19_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 5, tmp20_cached[5], tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp19_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 6, tmp20_cached[6], tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp19_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_301(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp19_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 10, tmp20_cached[10], tmp14_local10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp19_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 11, $serializer_getInstance_284(), tmp15_local11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + case 12: + tmp16_local12 = tmp19_input.decodeIntElement_941u6a_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + break; + case 13: + tmp17_local13 = tmp19_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 13, tmp20_cached[13], tmp17_local13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + break; + case 14: + tmp18_local14 = tmp19_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 14, $serializer_getInstance_393(), tmp18_local14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp19_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSectionData_0.new_com_bapis_bilibili_app_viewunite_common_KSectionData_ev773z_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, tmp18_local14, null); + } + serialize_183qgx_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_296().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.id === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.id); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.sectionId === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.sectionId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.canOrdDesc === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 3, value.canOrdDesc); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.more === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.more); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !equals(value.episodeIds, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 5, tmp2_cached[5], value.episodeIds); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !equals(value.episodes, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 6, tmp2_cached[6], value.episodes); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.splitText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.splitText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.moduleStyle == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 8, $serializer_getInstance_301(), value.moduleStyle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.moreBottomDesc === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 9, value.moreBottomDesc); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !equals(value.seasons, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 10, tmp2_cached[10], value.seasons); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.moreLeft == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 11, $serializer_getInstance_284(), value.moreLeft); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !(value.type === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 12, value.type); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 13) ? true : !equals(value.report, emptyMap())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 13, tmp2_cached[13], value.report); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 14) ? true : !(value.bgInfo == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 14, $serializer_getInstance_393(), value.bgInfo); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_183qgx_k$(encoder, value instanceof KSectionData_0 ? value : THROW_CCE()); + } + } + class KSectionData_0 { + constructor(id, sectionId, title, canOrdDesc, more, episodeIds, episodes, splitText, moduleStyle, moreBottomDesc, seasons, moreLeft, type, report, bgInfo) { + Companion_getInstance_296(); + id = id === VOID ? 0 : id; + sectionId = sectionId === VOID ? 0 : sectionId; + title = title === VOID ? '' : title; + canOrdDesc = canOrdDesc === VOID ? 0 : canOrdDesc; + more = more === VOID ? '' : more; + episodeIds = episodeIds === VOID ? emptyList() : episodeIds; + episodes = episodes === VOID ? emptyList() : episodes; + splitText = splitText === VOID ? '' : splitText; + moduleStyle = moduleStyle === VOID ? null : moduleStyle; + moreBottomDesc = moreBottomDesc === VOID ? '' : moreBottomDesc; + seasons = seasons === VOID ? emptyList() : seasons; + moreLeft = moreLeft === VOID ? null : moreLeft; + type = type === VOID ? 0 : type; + report = report === VOID ? emptyMap() : report; + bgInfo = bgInfo === VOID ? null : bgInfo; + this.id = id; + this.sectionId = sectionId; + this.title = title; + this.canOrdDesc = canOrdDesc; + this.more = more; + this.episodeIds = episodeIds; + this.episodes = episodes; + this.splitText = splitText; + this.moduleStyle = moduleStyle; + this.moreBottomDesc = moreBottomDesc; + this.seasons = seasons; + this.moreLeft = moreLeft; + this.type = type; + this.report = report; + this.bgInfo = bgInfo; + } + get_id_kntnx8_k$() { + return this.id; + } + get_sectionId_2pkr0p_k$() { + return this.sectionId; + } + get_title_iz32un_k$() { + return this.title; + } + get_canOrdDesc_7nlqcr_k$() { + return this.canOrdDesc; + } + get_more_woqm5a_k$() { + return this.more; + } + get_episodeIds_6omzwm_k$() { + return this.episodeIds; + } + get_episodes_src2w1_k$() { + return this.episodes; + } + get_splitText_f796ta_k$() { + return this.splitText; + } + get_moduleStyle_61r1dw_k$() { + return this.moduleStyle; + } + get_moreBottomDesc_l6b89m_k$() { + return this.moreBottomDesc; + } + get_seasons_xtgy6f_k$() { + return this.seasons; + } + get_moreLeft_zffha3_k$() { + return this.moreLeft; + } + get_type_wovaf7_k$() { + return this.type; + } + get_report_iye43h_k$() { + return this.report; + } + get_bgInfo_be2tgc_k$() { + return this.bgInfo; + } + component1_7eebsc_k$() { + return this.id; + } + component2_7eebsb_k$() { + return this.sectionId; + } + component3_7eebsa_k$() { + return this.title; + } + component4_7eebs9_k$() { + return this.canOrdDesc; + } + component5_7eebs8_k$() { + return this.more; + } + component6_7eebs7_k$() { + return this.episodeIds; + } + component7_7eebs6_k$() { + return this.episodes; + } + component8_7eebs5_k$() { + return this.splitText; + } + component9_7eebs4_k$() { + return this.moduleStyle; + } + component10_gazzfo_k$() { + return this.moreBottomDesc; + } + component11_gazzfn_k$() { + return this.seasons; + } + component12_gazzfm_k$() { + return this.moreLeft; + } + component13_gazzfl_k$() { + return this.type; + } + component14_gazzfk_k$() { + return this.report; + } + component15_gazzfj_k$() { + return this.bgInfo; + } + copy_slhrzp_k$(id, sectionId, title, canOrdDesc, more, episodeIds, episodes, splitText, moduleStyle, moreBottomDesc, seasons, moreLeft, type, report, bgInfo) { + return new KSectionData_0(id, sectionId, title, canOrdDesc, more, episodeIds, episodes, splitText, moduleStyle, moreBottomDesc, seasons, moreLeft, type, report, bgInfo); + } + copy(id, sectionId, title, canOrdDesc, more, episodeIds, episodes, splitText, moduleStyle, moreBottomDesc, seasons, moreLeft, type, report, bgInfo, $super) { + id = id === VOID ? this.id : id; + sectionId = sectionId === VOID ? this.sectionId : sectionId; + title = title === VOID ? this.title : title; + canOrdDesc = canOrdDesc === VOID ? this.canOrdDesc : canOrdDesc; + more = more === VOID ? this.more : more; + episodeIds = episodeIds === VOID ? this.episodeIds : episodeIds; + episodes = episodes === VOID ? this.episodes : episodes; + splitText = splitText === VOID ? this.splitText : splitText; + moduleStyle = moduleStyle === VOID ? this.moduleStyle : moduleStyle; + moreBottomDesc = moreBottomDesc === VOID ? this.moreBottomDesc : moreBottomDesc; + seasons = seasons === VOID ? this.seasons : seasons; + moreLeft = moreLeft === VOID ? this.moreLeft : moreLeft; + type = type === VOID ? this.type : type; + report = report === VOID ? this.report : report; + bgInfo = bgInfo === VOID ? this.bgInfo : bgInfo; + return this.copy_slhrzp_k$(id, sectionId, title, canOrdDesc, more, episodeIds, episodes, splitText, moduleStyle, moreBottomDesc, seasons, moreLeft, type, report, bgInfo); + } + toString() { + return 'KSectionData(id=' + this.id + ', sectionId=' + this.sectionId + ', title=' + this.title + ', canOrdDesc=' + this.canOrdDesc + ', more=' + this.more + ', episodeIds=' + this.episodeIds + ', episodes=' + this.episodes + ', splitText=' + this.splitText + ', moduleStyle=' + this.moduleStyle + ', moreBottomDesc=' + this.moreBottomDesc + ', seasons=' + this.seasons + ', moreLeft=' + this.moreLeft + ', type=' + this.type + ', report=' + this.report + ', bgInfo=' + this.bgInfo + ')'; + } + hashCode() { + var result = this.id; + result = imul(result, 31) + this.sectionId | 0; + result = imul(result, 31) + getStringHashCode(this.title) | 0; + result = imul(result, 31) + this.canOrdDesc | 0; + result = imul(result, 31) + getStringHashCode(this.more) | 0; + result = imul(result, 31) + hashCode(this.episodeIds) | 0; + result = imul(result, 31) + hashCode(this.episodes) | 0; + result = imul(result, 31) + getStringHashCode(this.splitText) | 0; + result = imul(result, 31) + (this.moduleStyle == null ? 0 : this.moduleStyle.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.moreBottomDesc) | 0; + result = imul(result, 31) + hashCode(this.seasons) | 0; + result = imul(result, 31) + (this.moreLeft == null ? 0 : this.moreLeft.hashCode()) | 0; + result = imul(result, 31) + this.type | 0; + result = imul(result, 31) + hashCode(this.report) | 0; + result = imul(result, 31) + (this.bgInfo == null ? 0 : this.bgInfo.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSectionData_0)) + return false; + var tmp0_other_with_cast = other instanceof KSectionData_0 ? other : THROW_CCE(); + if (!(this.id === tmp0_other_with_cast.id)) + return false; + if (!(this.sectionId === tmp0_other_with_cast.sectionId)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.canOrdDesc === tmp0_other_with_cast.canOrdDesc)) + return false; + if (!(this.more === tmp0_other_with_cast.more)) + return false; + if (!equals(this.episodeIds, tmp0_other_with_cast.episodeIds)) + return false; + if (!equals(this.episodes, tmp0_other_with_cast.episodes)) + return false; + if (!(this.splitText === tmp0_other_with_cast.splitText)) + return false; + if (!equals(this.moduleStyle, tmp0_other_with_cast.moduleStyle)) + return false; + if (!(this.moreBottomDesc === tmp0_other_with_cast.moreBottomDesc)) + return false; + if (!equals(this.seasons, tmp0_other_with_cast.seasons)) + return false; + if (!equals(this.moreLeft, tmp0_other_with_cast.moreLeft)) + return false; + if (!(this.type === tmp0_other_with_cast.type)) + return false; + if (!equals(this.report, tmp0_other_with_cast.report)) + return false; + if (!equals(this.bgInfo, tmp0_other_with_cast.bgInfo)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KSectionData_ev773z_k$(seen1, id, sectionId, title, canOrdDesc, more, episodeIds, episodes, splitText, moduleStyle, moreBottomDesc, seasons, moreLeft, type, report, bgInfo, serializationConstructorMarker) { + Companion_getInstance_296(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_283().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.id = 0; + else + $this.id = id; + if (0 === (seen1 & 2)) + $this.sectionId = 0; + else + $this.sectionId = sectionId; + if (0 === (seen1 & 4)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 8)) + $this.canOrdDesc = 0; + else + $this.canOrdDesc = canOrdDesc; + if (0 === (seen1 & 16)) + $this.more = ''; + else + $this.more = more; + if (0 === (seen1 & 32)) + $this.episodeIds = emptyList(); + else + $this.episodeIds = episodeIds; + if (0 === (seen1 & 64)) + $this.episodes = emptyList(); + else + $this.episodes = episodes; + if (0 === (seen1 & 128)) + $this.splitText = ''; + else + $this.splitText = splitText; + if (0 === (seen1 & 256)) + $this.moduleStyle = null; + else + $this.moduleStyle = moduleStyle; + if (0 === (seen1 & 512)) + $this.moreBottomDesc = ''; + else + $this.moreBottomDesc = moreBottomDesc; + if (0 === (seen1 & 1024)) + $this.seasons = emptyList(); + else + $this.seasons = seasons; + if (0 === (seen1 & 2048)) + $this.moreLeft = null; + else + $this.moreLeft = moreLeft; + if (0 === (seen1 & 4096)) + $this.type = 0; + else + $this.type = type; + if (0 === (seen1 & 8192)) + $this.report = emptyMap(); + else + $this.report = report; + if (0 === (seen1 & 16384)) + $this.bgInfo = null; + else + $this.bgInfo = bgInfo; + return $this; + } + } + class Companion_297 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.Button'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_284(); + } + } + class $serializer_284 { + constructor() { + $serializer_instance_284 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KButton', this, 6); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('leftStrikethroughText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('link', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('badgeInfo', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('subTitle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_377()), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp10_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_377(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + } else + while (tmp1_flag) { + tmp2_index = tmp10_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_377(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp10_input.endStructure_1xqz0n_k$(tmp0_desc); + return KButton_0.new_com_bapis_bilibili_app_viewunite_common_KButton_bxd10o_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); + } + serialize_2zai4m_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.leftStrikethroughText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.leftStrikethroughText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.type === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.type); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.link === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.link); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.badgeInfo == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, $serializer_getInstance_377(), value.badgeInfo); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.subTitle === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.subTitle); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_2zai4m_k$(encoder, value instanceof KButton_0 ? value : THROW_CCE()); + } + } + class KButton_0 { + constructor(title, leftStrikethroughText, type, link, badgeInfo, subTitle) { + Companion_instance_297; + title = title === VOID ? '' : title; + leftStrikethroughText = leftStrikethroughText === VOID ? '' : leftStrikethroughText; + type = type === VOID ? '' : type; + link = link === VOID ? '' : link; + badgeInfo = badgeInfo === VOID ? null : badgeInfo; + subTitle = subTitle === VOID ? '' : subTitle; + this.title = title; + this.leftStrikethroughText = leftStrikethroughText; + this.type = type; + this.link = link; + this.badgeInfo = badgeInfo; + this.subTitle = subTitle; + } + get_title_iz32un_k$() { + return this.title; + } + get_leftStrikethroughText_jbr6ls_k$() { + return this.leftStrikethroughText; + } + get_type_wovaf7_k$() { + return this.type; + } + get_link_wopumb_k$() { + return this.link; + } + get_badgeInfo_rkwtrs_k$() { + return this.badgeInfo; + } + get_subTitle_4nt9z5_k$() { + return this.subTitle; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.leftStrikethroughText; + } + component3_7eebsa_k$() { + return this.type; + } + component4_7eebs9_k$() { + return this.link; + } + component5_7eebs8_k$() { + return this.badgeInfo; + } + component6_7eebs7_k$() { + return this.subTitle; + } + copy_tnmhmg_k$(title, leftStrikethroughText, type, link, badgeInfo, subTitle) { + return new KButton_0(title, leftStrikethroughText, type, link, badgeInfo, subTitle); + } + copy(title, leftStrikethroughText, type, link, badgeInfo, subTitle, $super) { + title = title === VOID ? this.title : title; + leftStrikethroughText = leftStrikethroughText === VOID ? this.leftStrikethroughText : leftStrikethroughText; + type = type === VOID ? this.type : type; + link = link === VOID ? this.link : link; + badgeInfo = badgeInfo === VOID ? this.badgeInfo : badgeInfo; + subTitle = subTitle === VOID ? this.subTitle : subTitle; + return this.copy_tnmhmg_k$(title, leftStrikethroughText, type, link, badgeInfo, subTitle); + } + toString() { + return 'KButton(title=' + this.title + ', leftStrikethroughText=' + this.leftStrikethroughText + ', type=' + this.type + ', link=' + this.link + ', badgeInfo=' + this.badgeInfo + ', subTitle=' + this.subTitle + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.leftStrikethroughText) | 0; + result = imul(result, 31) + getStringHashCode(this.type) | 0; + result = imul(result, 31) + getStringHashCode(this.link) | 0; + result = imul(result, 31) + (this.badgeInfo == null ? 0 : this.badgeInfo.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.subTitle) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KButton_0)) + return false; + var tmp0_other_with_cast = other instanceof KButton_0 ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.leftStrikethroughText === tmp0_other_with_cast.leftStrikethroughText)) + return false; + if (!(this.type === tmp0_other_with_cast.type)) + return false; + if (!(this.link === tmp0_other_with_cast.link)) + return false; + if (!equals(this.badgeInfo, tmp0_other_with_cast.badgeInfo)) + return false; + if (!(this.subTitle === tmp0_other_with_cast.subTitle)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KButton_bxd10o_k$(seen1, title, leftStrikethroughText, type, link, badgeInfo, subTitle, serializationConstructorMarker) { + Companion_instance_297; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_284().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.leftStrikethroughText = ''; + else + $this.leftStrikethroughText = leftStrikethroughText; + if (0 === (seen1 & 4)) + $this.type = ''; + else + $this.type = type; + if (0 === (seen1 & 8)) + $this.link = ''; + else + $this.link = link; + if (0 === (seen1 & 16)) + $this.badgeInfo = null; + else + $this.badgeInfo = badgeInfo; + if (0 === (seen1 & 32)) + $this.subTitle = ''; + else + $this.subTitle = subTitle; + return $this; + } + } + class Companion_298 { + constructor() { + Companion_instance_298 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, null, null, new ArrayListSerializer(IntSerializer_getInstance()), new ArrayListSerializer($serializer_getInstance_304()), null, null, new ArrayListSerializer($serializer_getInstance_277()), null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.viewunite.common.CombinationEp'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_285(); + } + } + class $serializer_285 { + constructor() { + $serializer_instance_285 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KCombinationEp', this, 11); + tmp0_serialDesc.addElement_5pzumi_k$('id', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('sectionId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('canOrdDesc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('more', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('episodeIds', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('episodes', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('splitText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('moduleStyle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('serialSeason', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('sectionData', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_298().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), tmp0_cached[5], tmp0_cached[6], StringSerializer_getInstance(), get_nullable($serializer_getInstance_301()), tmp0_cached[9], get_nullable($serializer_getInstance_283())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = 0; + var tmp6_local2 = null; + var tmp7_local3 = 0; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_local8 = null; + var tmp13_local9 = null; + var tmp14_local10 = null; + var tmp15_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp16_cached = Companion_getInstance_298().$childSerializers_1; + if (tmp15_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp15_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 5, tmp16_cached[5], tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp15_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 6, tmp16_cached[6], tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_301(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp15_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 9, tmp16_cached[9], tmp13_local9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 10, $serializer_getInstance_283(), tmp14_local10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + } else + while (tmp1_flag) { + tmp2_index = tmp15_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp15_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 5, tmp16_cached[5], tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp15_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 6, tmp16_cached[6], tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_301(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp15_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 9, tmp16_cached[9], tmp13_local9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 10, $serializer_getInstance_283(), tmp14_local10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp15_input.endStructure_1xqz0n_k$(tmp0_desc); + return KCombinationEp_0.new_com_bapis_bilibili_app_viewunite_common_KCombinationEp_5br9eh_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, null); + } + serialize_3s3sac_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_298().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.id === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.id); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.sectionId === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.sectionId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.canOrdDesc === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 3, value.canOrdDesc); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.more === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.more); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !equals(value.episodeIds, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 5, tmp2_cached[5], value.episodeIds); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !equals(value.episodes, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 6, tmp2_cached[6], value.episodes); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.splitText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.splitText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.moduleStyle == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 8, $serializer_getInstance_301(), value.moduleStyle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !equals(value.serialSeason, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 9, tmp2_cached[9], value.serialSeason); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.sectionData == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 10, $serializer_getInstance_283(), value.sectionData); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_3s3sac_k$(encoder, value instanceof KCombinationEp_0 ? value : THROW_CCE()); + } + } + class KCombinationEp_0 { + constructor(id, sectionId, title, canOrdDesc, more, episodeIds, episodes, splitText, moduleStyle, serialSeason, sectionData) { + Companion_getInstance_298(); + id = id === VOID ? 0 : id; + sectionId = sectionId === VOID ? 0 : sectionId; + title = title === VOID ? '' : title; + canOrdDesc = canOrdDesc === VOID ? 0 : canOrdDesc; + more = more === VOID ? '' : more; + episodeIds = episodeIds === VOID ? emptyList() : episodeIds; + episodes = episodes === VOID ? emptyList() : episodes; + splitText = splitText === VOID ? '' : splitText; + moduleStyle = moduleStyle === VOID ? null : moduleStyle; + serialSeason = serialSeason === VOID ? emptyList() : serialSeason; + sectionData = sectionData === VOID ? null : sectionData; + this.id = id; + this.sectionId = sectionId; + this.title = title; + this.canOrdDesc = canOrdDesc; + this.more = more; + this.episodeIds = episodeIds; + this.episodes = episodes; + this.splitText = splitText; + this.moduleStyle = moduleStyle; + this.serialSeason = serialSeason; + this.sectionData = sectionData; + } + get_id_kntnx8_k$() { + return this.id; + } + get_sectionId_2pkr0p_k$() { + return this.sectionId; + } + get_title_iz32un_k$() { + return this.title; + } + get_canOrdDesc_7nlqcr_k$() { + return this.canOrdDesc; + } + get_more_woqm5a_k$() { + return this.more; + } + get_episodeIds_6omzwm_k$() { + return this.episodeIds; + } + get_episodes_src2w1_k$() { + return this.episodes; + } + get_splitText_f796ta_k$() { + return this.splitText; + } + get_moduleStyle_61r1dw_k$() { + return this.moduleStyle; + } + get_serialSeason_81o8xs_k$() { + return this.serialSeason; + } + get_sectionData_ne5l8m_k$() { + return this.sectionData; + } + component1_7eebsc_k$() { + return this.id; + } + component2_7eebsb_k$() { + return this.sectionId; + } + component3_7eebsa_k$() { + return this.title; + } + component4_7eebs9_k$() { + return this.canOrdDesc; + } + component5_7eebs8_k$() { + return this.more; + } + component6_7eebs7_k$() { + return this.episodeIds; + } + component7_7eebs6_k$() { + return this.episodes; + } + component8_7eebs5_k$() { + return this.splitText; + } + component9_7eebs4_k$() { + return this.moduleStyle; + } + component10_gazzfo_k$() { + return this.serialSeason; + } + component11_gazzfn_k$() { + return this.sectionData; + } + copy_37rsu2_k$(id, sectionId, title, canOrdDesc, more, episodeIds, episodes, splitText, moduleStyle, serialSeason, sectionData) { + return new KCombinationEp_0(id, sectionId, title, canOrdDesc, more, episodeIds, episodes, splitText, moduleStyle, serialSeason, sectionData); + } + copy(id, sectionId, title, canOrdDesc, more, episodeIds, episodes, splitText, moduleStyle, serialSeason, sectionData, $super) { + id = id === VOID ? this.id : id; + sectionId = sectionId === VOID ? this.sectionId : sectionId; + title = title === VOID ? this.title : title; + canOrdDesc = canOrdDesc === VOID ? this.canOrdDesc : canOrdDesc; + more = more === VOID ? this.more : more; + episodeIds = episodeIds === VOID ? this.episodeIds : episodeIds; + episodes = episodes === VOID ? this.episodes : episodes; + splitText = splitText === VOID ? this.splitText : splitText; + moduleStyle = moduleStyle === VOID ? this.moduleStyle : moduleStyle; + serialSeason = serialSeason === VOID ? this.serialSeason : serialSeason; + sectionData = sectionData === VOID ? this.sectionData : sectionData; + return this.copy_37rsu2_k$(id, sectionId, title, canOrdDesc, more, episodeIds, episodes, splitText, moduleStyle, serialSeason, sectionData); + } + toString() { + return 'KCombinationEp(id=' + this.id + ', sectionId=' + this.sectionId + ', title=' + this.title + ', canOrdDesc=' + this.canOrdDesc + ', more=' + this.more + ', episodeIds=' + this.episodeIds + ', episodes=' + this.episodes + ', splitText=' + this.splitText + ', moduleStyle=' + this.moduleStyle + ', serialSeason=' + this.serialSeason + ', sectionData=' + this.sectionData + ')'; + } + hashCode() { + var result = this.id; + result = imul(result, 31) + this.sectionId | 0; + result = imul(result, 31) + getStringHashCode(this.title) | 0; + result = imul(result, 31) + this.canOrdDesc | 0; + result = imul(result, 31) + getStringHashCode(this.more) | 0; + result = imul(result, 31) + hashCode(this.episodeIds) | 0; + result = imul(result, 31) + hashCode(this.episodes) | 0; + result = imul(result, 31) + getStringHashCode(this.splitText) | 0; + result = imul(result, 31) + (this.moduleStyle == null ? 0 : this.moduleStyle.hashCode()) | 0; + result = imul(result, 31) + hashCode(this.serialSeason) | 0; + result = imul(result, 31) + (this.sectionData == null ? 0 : this.sectionData.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KCombinationEp_0)) + return false; + var tmp0_other_with_cast = other instanceof KCombinationEp_0 ? other : THROW_CCE(); + if (!(this.id === tmp0_other_with_cast.id)) + return false; + if (!(this.sectionId === tmp0_other_with_cast.sectionId)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.canOrdDesc === tmp0_other_with_cast.canOrdDesc)) + return false; + if (!(this.more === tmp0_other_with_cast.more)) + return false; + if (!equals(this.episodeIds, tmp0_other_with_cast.episodeIds)) + return false; + if (!equals(this.episodes, tmp0_other_with_cast.episodes)) + return false; + if (!(this.splitText === tmp0_other_with_cast.splitText)) + return false; + if (!equals(this.moduleStyle, tmp0_other_with_cast.moduleStyle)) + return false; + if (!equals(this.serialSeason, tmp0_other_with_cast.serialSeason)) + return false; + if (!equals(this.sectionData, tmp0_other_with_cast.sectionData)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KCombinationEp_5br9eh_k$(seen1, id, sectionId, title, canOrdDesc, more, episodeIds, episodes, splitText, moduleStyle, serialSeason, sectionData, serializationConstructorMarker) { + Companion_getInstance_298(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_285().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.id = 0; + else + $this.id = id; + if (0 === (seen1 & 2)) + $this.sectionId = 0; + else + $this.sectionId = sectionId; + if (0 === (seen1 & 4)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 8)) + $this.canOrdDesc = 0; + else + $this.canOrdDesc = canOrdDesc; + if (0 === (seen1 & 16)) + $this.more = ''; + else + $this.more = more; + if (0 === (seen1 & 32)) + $this.episodeIds = emptyList(); + else + $this.episodeIds = episodeIds; + if (0 === (seen1 & 64)) + $this.episodes = emptyList(); + else + $this.episodes = episodes; + if (0 === (seen1 & 128)) + $this.splitText = ''; + else + $this.splitText = splitText; + if (0 === (seen1 & 256)) + $this.moduleStyle = null; + else + $this.moduleStyle = moduleStyle; + if (0 === (seen1 & 512)) + $this.serialSeason = emptyList(); + else + $this.serialSeason = serialSeason; + if (0 === (seen1 & 1024)) + $this.sectionData = null; + else + $this.sectionData = sectionData; + return $this; + } + } + class Companion_299 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.DeliveryData.ReportEntry'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_286(); + } + } + class $serializer_286 { + constructor() { + $serializer_instance_286 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KDeliveryData.KReportEntry', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('key', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('value', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KReportEntry_8.new_com_bapis_bilibili_app_viewunite_common_KDeliveryData_KReportEntry_dg74w8_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_q55fl7_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.key === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.key); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.value === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.value); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_q55fl7_k$(encoder, value instanceof KReportEntry_8 ? value : THROW_CCE()); + } + } + class KData_1 { + constructor(value) { + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + } + class KActivity extends KData_1 { + constructor() { + KActivity_instance = null; + super(0); + KActivity_instance = this; + } + } + class KCharacters extends KData_1 { + constructor() { + KCharacters_instance = null; + super(1); + KCharacters_instance = this; + } + } + class KTheatreHotTopic extends KData_1 { + constructor() { + KTheatreHotTopic_instance = null; + super(2); + KTheatreHotTopic_instance = this; + } + } + class KAggEps extends KData_1 { + constructor() { + KAggEps_instance = null; + super(3); + KAggEps_instance = this; + } + } + class KActPageItems extends KData_1 { + constructor() { + KActPageItems_instance = null; + super(4); + KActPageItems_instance = this; + } + } + class Companion_300 { + constructor() { + Companion_instance_300 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, null, new LinkedHashMapSerializer(StringSerializer_getInstance(), StringSerializer_getInstance()), null, null, null, null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + var tmp_0 = this; + tmp_0.dataValues$delegate_1 = lazy_0(KDeliveryData$Companion$dataValues$delegate$lambda); + this.targetPath = '/bilibili.app.viewunite.common.DeliveryData'; + } + get_dataValues_22mgad_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.dataValues$delegate_1; + var thisRef = this; + var property = dataValues$factory_1(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_287(); + } + get dataValues() { + return this.get_dataValues_22mgad_k$(); + } + } + class KReportEntry_8 { + constructor(key, value) { + Companion_instance_299; + key = key === VOID ? '' : key; + value = value === VOID ? '' : value; + this.key = key; + this.value = value; + } + get_key_18j28a_k$() { + return this.key; + } + get_value_j01efc_k$() { + return this.value; + } + component1_7eebsc_k$() { + return this.key; + } + component2_7eebsb_k$() { + return this.value; + } + copy_plwnsl_k$(key, value) { + return new KReportEntry_8(key, value); + } + copy(key, value, $super) { + key = key === VOID ? this.key : key; + value = value === VOID ? this.value : value; + return this.copy_plwnsl_k$(key, value); + } + toString() { + return 'KReportEntry(key=' + this.key + ', value=' + this.value + ')'; + } + hashCode() { + var result = getStringHashCode(this.key); + result = imul(result, 31) + getStringHashCode(this.value) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KReportEntry_8)) + return false; + var tmp0_other_with_cast = other instanceof KReportEntry_8 ? other : THROW_CCE(); + if (!(this.key === tmp0_other_with_cast.key)) + return false; + if (!(this.value === tmp0_other_with_cast.value)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KDeliveryData_KReportEntry_dg74w8_k$(seen1, key, value, serializationConstructorMarker) { + Companion_instance_299; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_286().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.key = ''; + else + $this.key = key; + if (0 === (seen1 & 2)) + $this.value = ''; + else + $this.value = value; + return $this; + } + } + class $serializer_287 { + constructor() { + $serializer_instance_287 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KDeliveryData', this, 10); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('moduleStyle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('more', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('id', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('report', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('activity', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('characters', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('theatreHotTopic', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('aggEps', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('actPageItems', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_300().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), get_nullable($serializer_getInstance_301()), StringSerializer_getInstance(), IntSerializer_getInstance(), tmp0_cached[4], get_nullable($serializer_getInstance_293()), get_nullable($serializer_getInstance_297()), get_nullable($serializer_getInstance_291()), get_nullable($serializer_getInstance_288()), get_nullable($serializer_getInstance_292())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = 0; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_local8 = null; + var tmp13_local9 = null; + var tmp14_transient0 = 0; + var tmp15_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp16_cached = Companion_getInstance_300().$childSerializers_1; + if (tmp15_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_301(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp15_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 4, tmp16_cached[4], tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_293(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_297(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_291(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_288(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 9, $serializer_getInstance_292(), tmp13_local9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + } else + while (tmp1_flag) { + tmp2_index = tmp15_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_301(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp15_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 4, tmp16_cached[4], tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_293(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_297(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_291(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_288(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 9, $serializer_getInstance_292(), tmp13_local9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp15_input.endStructure_1xqz0n_k$(tmp0_desc); + return KDeliveryData_0.new_com_bapis_bilibili_app_viewunite_common_KDeliveryData_gniw9q_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, null); + } + serialize_lwuhl2_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_300().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.moduleStyle == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_301(), value.moduleStyle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.more === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.more); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.id === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 3, value.id); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !equals(value.report, emptyMap())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 4, tmp2_cached[4], value.report); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.activity_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 5, $serializer_getInstance_293(), value.activity_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.characters_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 6, $serializer_getInstance_297(), value.characters_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.theatreHotTopic_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 7, $serializer_getInstance_291(), value.theatreHotTopic_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.aggEps_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 8, $serializer_getInstance_288(), value.aggEps_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.actPageItems_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 9, $serializer_getInstance_292(), value.actPageItems_1); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_lwuhl2_k$(encoder, value instanceof KDeliveryData_0 ? value : THROW_CCE()); + } + } + class KDeliveryData_0 { + constructor(title, moduleStyle, more, id, report, activity, characters, theatreHotTopic, aggEps, actPageItems) { + Companion_getInstance_300(); + title = title === VOID ? '' : title; + moduleStyle = moduleStyle === VOID ? null : moduleStyle; + more = more === VOID ? '' : more; + id = id === VOID ? 0 : id; + report = report === VOID ? emptyMap() : report; + activity = activity === VOID ? null : activity; + characters = characters === VOID ? null : characters; + theatreHotTopic = theatreHotTopic === VOID ? null : theatreHotTopic; + aggEps = aggEps === VOID ? null : aggEps; + actPageItems = actPageItems === VOID ? null : actPageItems; + this.title = title; + this.moduleStyle = moduleStyle; + this.more = more; + this.id = id; + this.report = report; + this.activity_1 = activity; + this.characters_1 = characters; + this.theatreHotTopic_1 = theatreHotTopic; + this.aggEps_1 = aggEps; + this.actPageItems_1 = actPageItems; + var tmp = this; + tmp.dataNumber$delegate_1 = lazy_0(KDeliveryData$dataNumber$delegate$lambda(this)); + } + get_title_iz32un_k$() { + return this.title; + } + get_moduleStyle_61r1dw_k$() { + return this.moduleStyle; + } + get_more_woqm5a_k$() { + return this.more; + } + get_id_kntnx8_k$() { + return this.id; + } + get_report_iye43h_k$() { + return this.report; + } + dataValue() { + if (!(this.activity_1 == null)) { + var tmp = this.activity_1; + return (tmp == null ? true : !(tmp == null)) ? tmp : null; + } else if (!(this.characters_1 == null)) { + var tmp_0 = this.characters_1; + return (tmp_0 == null ? true : !(tmp_0 == null)) ? tmp_0 : null; + } else if (!(this.theatreHotTopic_1 == null)) { + var tmp_1 = this.theatreHotTopic_1; + return (tmp_1 == null ? true : !(tmp_1 == null)) ? tmp_1 : null; + } else if (!(this.aggEps_1 == null)) { + var tmp_2 = this.aggEps_1; + return (tmp_2 == null ? true : !(tmp_2 == null)) ? tmp_2 : null; + } else if (!(this.actPageItems_1 == null)) { + var tmp_3 = this.actPageItems_1; + return (tmp_3 == null ? true : !(tmp_3 == null)) ? tmp_3 : null; + } else { + return null; + } + } + dataTypeJs() { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = Companion_getInstance_300().dataValues; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.viewunite.common.KDeliveryData.dataType.' call + var it = element; + tmp$ret$0 = it.value === _get_dataNumber__hqvc14_1(this); + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + return tmp$ret$1; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.moduleStyle; + } + component3_7eebsa_k$() { + return this.more; + } + component4_7eebs9_k$() { + return this.id; + } + component5_7eebs8_k$() { + return this.report; + } + copy_28zucw_k$(title, moduleStyle, more, id, report, activity, characters, theatreHotTopic, aggEps, actPageItems) { + return new KDeliveryData_0(title, moduleStyle, more, id, report, activity, characters, theatreHotTopic, aggEps, actPageItems); + } + copy(title, moduleStyle, more, id, report, activity, characters, theatreHotTopic, aggEps, actPageItems, $super) { + title = title === VOID ? this.title : title; + moduleStyle = moduleStyle === VOID ? this.moduleStyle : moduleStyle; + more = more === VOID ? this.more : more; + id = id === VOID ? this.id : id; + report = report === VOID ? this.report : report; + activity = activity === VOID ? this.activity_1 : activity; + characters = characters === VOID ? this.characters_1 : characters; + theatreHotTopic = theatreHotTopic === VOID ? this.theatreHotTopic_1 : theatreHotTopic; + aggEps = aggEps === VOID ? this.aggEps_1 : aggEps; + actPageItems = actPageItems === VOID ? this.actPageItems_1 : actPageItems; + return this.copy_28zucw_k$(title, moduleStyle, more, id, report, activity, characters, theatreHotTopic, aggEps, actPageItems); + } + toString() { + return 'KDeliveryData(title=' + this.title + ', moduleStyle=' + this.moduleStyle + ', more=' + this.more + ', id=' + this.id + ', report=' + this.report + ', activity=' + this.activity_1 + ', characters=' + this.characters_1 + ', theatreHotTopic=' + this.theatreHotTopic_1 + ', aggEps=' + this.aggEps_1 + ', actPageItems=' + this.actPageItems_1 + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + (this.moduleStyle == null ? 0 : this.moduleStyle.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.more) | 0; + result = imul(result, 31) + this.id | 0; + result = imul(result, 31) + hashCode(this.report) | 0; + result = imul(result, 31) + (this.activity_1 == null ? 0 : this.activity_1.hashCode()) | 0; + result = imul(result, 31) + (this.characters_1 == null ? 0 : this.characters_1.hashCode()) | 0; + result = imul(result, 31) + (this.theatreHotTopic_1 == null ? 0 : this.theatreHotTopic_1.hashCode()) | 0; + result = imul(result, 31) + (this.aggEps_1 == null ? 0 : this.aggEps_1.hashCode()) | 0; + result = imul(result, 31) + (this.actPageItems_1 == null ? 0 : this.actPageItems_1.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KDeliveryData_0)) + return false; + var tmp0_other_with_cast = other instanceof KDeliveryData_0 ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!equals(this.moduleStyle, tmp0_other_with_cast.moduleStyle)) + return false; + if (!(this.more === tmp0_other_with_cast.more)) + return false; + if (!(this.id === tmp0_other_with_cast.id)) + return false; + if (!equals(this.report, tmp0_other_with_cast.report)) + return false; + if (!equals(this.activity_1, tmp0_other_with_cast.activity_1)) + return false; + if (!equals(this.characters_1, tmp0_other_with_cast.characters_1)) + return false; + if (!equals(this.theatreHotTopic_1, tmp0_other_with_cast.theatreHotTopic_1)) + return false; + if (!equals(this.aggEps_1, tmp0_other_with_cast.aggEps_1)) + return false; + if (!equals(this.actPageItems_1, tmp0_other_with_cast.actPageItems_1)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KDeliveryData_gniw9q_k$(seen1, title, moduleStyle, more, id, report, activity, characters, theatreHotTopic, aggEps, actPageItems, serializationConstructorMarker) { + Companion_getInstance_300(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_287().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.moduleStyle = null; + else + $this.moduleStyle = moduleStyle; + if (0 === (seen1 & 4)) + $this.more = ''; + else + $this.more = more; + if (0 === (seen1 & 8)) + $this.id = 0; + else + $this.id = id; + if (0 === (seen1 & 16)) + $this.report = emptyMap(); + else + $this.report = report; + if (0 === (seen1 & 32)) + $this.activity_1 = null; + else + $this.activity_1 = activity; + if (0 === (seen1 & 64)) + $this.characters_1 = null; + else + $this.characters_1 = characters; + if (0 === (seen1 & 128)) + $this.theatreHotTopic_1 = null; + else + $this.theatreHotTopic_1 = theatreHotTopic; + if (0 === (seen1 & 256)) + $this.aggEps_1 = null; + else + $this.aggEps_1 = aggEps; + if (0 === (seen1 & 512)) + $this.actPageItems_1 = null; + else + $this.actPageItems_1 = actPageItems; + var tmp = $this; + tmp.dataNumber$delegate_1 = lazy_0(KDeliveryData$_init_$lambda_4tjlvi($this)); + return $this; + } + } + class Companion_301 { + constructor() { + Companion_instance_301 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer($serializer_getInstance_289()), null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.viewunite.common.AggEps'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_288(); + } + } + class $serializer_288 { + constructor() { + $serializer_instance_288 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KAggEps', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('aggEpCards', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('placeIndex', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_301().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0], IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = 0; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp7_cached = Companion_getInstance_301().$childSerializers_1; + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp7_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp7_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KAggEps_0.new_com_bapis_bilibili_app_viewunite_common_KAggEps_77fea7_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_fi1n2n_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_301().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.aggEpCards, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.aggEpCards); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.placeIndex === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.placeIndex); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_fi1n2n_k$(encoder, value instanceof KAggEps_0 ? value : THROW_CCE()); + } + } + class KAggEps_0 { + constructor(aggEpCards, placeIndex) { + Companion_getInstance_301(); + aggEpCards = aggEpCards === VOID ? emptyList() : aggEpCards; + placeIndex = placeIndex === VOID ? 0 : placeIndex; + this.aggEpCards = aggEpCards; + this.placeIndex = placeIndex; + } + get_aggEpCards_hybx34_k$() { + return this.aggEpCards; + } + get_placeIndex_owsyuk_k$() { + return this.placeIndex; + } + component1_7eebsc_k$() { + return this.aggEpCards; + } + component2_7eebsb_k$() { + return this.placeIndex; + } + copy_ueooa4_k$(aggEpCards, placeIndex) { + return new KAggEps_0(aggEpCards, placeIndex); + } + copy(aggEpCards, placeIndex, $super) { + aggEpCards = aggEpCards === VOID ? this.aggEpCards : aggEpCards; + placeIndex = placeIndex === VOID ? this.placeIndex : placeIndex; + return this.copy_ueooa4_k$(aggEpCards, placeIndex); + } + toString() { + return 'KAggEps(aggEpCards=' + this.aggEpCards + ', placeIndex=' + this.placeIndex + ')'; + } + hashCode() { + var result = hashCode(this.aggEpCards); + result = imul(result, 31) + this.placeIndex | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KAggEps_0)) + return false; + var tmp0_other_with_cast = other instanceof KAggEps_0 ? other : THROW_CCE(); + if (!equals(this.aggEpCards, tmp0_other_with_cast.aggEpCards)) + return false; + if (!(this.placeIndex === tmp0_other_with_cast.placeIndex)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KAggEps_77fea7_k$(seen1, aggEpCards, placeIndex, serializationConstructorMarker) { + Companion_getInstance_301(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_288().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.aggEpCards = emptyList(); + else + $this.aggEpCards = aggEpCards; + if (0 === (seen1 & 2)) + $this.placeIndex = 0; + else + $this.placeIndex = placeIndex; + return $this; + } + } + class Companion_302 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.AggEpCard'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_289(); + } + } + class $serializer_289 { + constructor() { + $serializer_instance_289 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KAggEpCard', this, 5); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('icon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('num', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('jumpUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = 0; + var tmp8_local4 = null; + var tmp9_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp9_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + } else + while (tmp1_flag) { + tmp2_index = tmp9_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp9_input.endStructure_1xqz0n_k$(tmp0_desc); + return KAggEpCard.new_com_bapis_bilibili_app_viewunite_common_KAggEpCard_bzz1a8_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); + } + serialize_mr26aa_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.cover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.icon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.icon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.num === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 3, value.num); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.jumpUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.jumpUrl); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_mr26aa_k$(encoder, value instanceof KAggEpCard ? value : THROW_CCE()); + } + } + class KAggEpCard { + constructor(title, cover, icon, num, jumpUrl) { + Companion_instance_302; + title = title === VOID ? '' : title; + cover = cover === VOID ? '' : cover; + icon = icon === VOID ? '' : icon; + num = num === VOID ? 0 : num; + jumpUrl = jumpUrl === VOID ? '' : jumpUrl; + this.title = title; + this.cover = cover; + this.icon = icon; + this.num = num; + this.jumpUrl = jumpUrl; + } + get_title_iz32un_k$() { + return this.title; + } + get_cover_ipug0e_k$() { + return this.cover; + } + get_icon_wont8i_k$() { + return this.icon; + } + get_num_18izmr_k$() { + return this.num; + } + get_jumpUrl_jhqiko_k$() { + return this.jumpUrl; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.cover; + } + component3_7eebsa_k$() { + return this.icon; + } + component4_7eebs9_k$() { + return this.num; + } + component5_7eebs8_k$() { + return this.jumpUrl; + } + copy_2jk0xz_k$(title, cover, icon, num, jumpUrl) { + return new KAggEpCard(title, cover, icon, num, jumpUrl); + } + copy(title, cover, icon, num, jumpUrl, $super) { + title = title === VOID ? this.title : title; + cover = cover === VOID ? this.cover : cover; + icon = icon === VOID ? this.icon : icon; + num = num === VOID ? this.num : num; + jumpUrl = jumpUrl === VOID ? this.jumpUrl : jumpUrl; + return this.copy_2jk0xz_k$(title, cover, icon, num, jumpUrl); + } + toString() { + return 'KAggEpCard(title=' + this.title + ', cover=' + this.cover + ', icon=' + this.icon + ', num=' + this.num + ', jumpUrl=' + this.jumpUrl + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.cover) | 0; + result = imul(result, 31) + getStringHashCode(this.icon) | 0; + result = imul(result, 31) + this.num | 0; + result = imul(result, 31) + getStringHashCode(this.jumpUrl) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KAggEpCard)) + return false; + var tmp0_other_with_cast = other instanceof KAggEpCard ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + if (!(this.icon === tmp0_other_with_cast.icon)) + return false; + if (!(this.num === tmp0_other_with_cast.num)) + return false; + if (!(this.jumpUrl === tmp0_other_with_cast.jumpUrl)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KAggEpCard_bzz1a8_k$(seen1, title, cover, icon, num, jumpUrl, serializationConstructorMarker) { + Companion_instance_302; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_289().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.cover = ''; + else + $this.cover = cover; + if (0 === (seen1 & 4)) + $this.icon = ''; + else + $this.icon = icon; + if (0 === (seen1 & 8)) + $this.num = 0; + else + $this.num = num; + if (0 === (seen1 & 16)) + $this.jumpUrl = ''; + else + $this.jumpUrl = jumpUrl; + return $this; + } + } + class Companion_303 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.TheatreHotTopic.ReportEntry'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_290(); + } + } + class $serializer_290 { + constructor() { + $serializer_instance_290 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KTheatreHotTopic.KReportEntry', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('key', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('value', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KReportEntry_9.new_com_bapis_bilibili_app_viewunite_common_KTheatreHotTopic_KReportEntry_yosrnd_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_8ez79s_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.key === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.key); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.value === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.value); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_8ez79s_k$(encoder, value instanceof KReportEntry_9 ? value : THROW_CCE()); + } + } + class KReportEntry_9 { + constructor(key, value) { + Companion_instance_303; + key = key === VOID ? '' : key; + value = value === VOID ? '' : value; + this.key = key; + this.value = value; + } + get_key_18j28a_k$() { + return this.key; + } + get_value_j01efc_k$() { + return this.value; + } + component1_7eebsc_k$() { + return this.key; + } + component2_7eebsb_k$() { + return this.value; + } + copy_plwnsl_k$(key, value) { + return new KReportEntry_9(key, value); + } + copy(key, value, $super) { + key = key === VOID ? this.key : key; + value = value === VOID ? this.value : value; + return this.copy_plwnsl_k$(key, value); + } + toString() { + return 'KReportEntry(key=' + this.key + ', value=' + this.value + ')'; + } + hashCode() { + var result = getStringHashCode(this.key); + result = imul(result, 31) + getStringHashCode(this.value) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KReportEntry_9)) + return false; + var tmp0_other_with_cast = other instanceof KReportEntry_9 ? other : THROW_CCE(); + if (!(this.key === tmp0_other_with_cast.key)) + return false; + if (!(this.value === tmp0_other_with_cast.value)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KTheatreHotTopic_KReportEntry_yosrnd_k$(seen1, key, value, serializationConstructorMarker) { + Companion_instance_303; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_290().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.key = ''; + else + $this.key = key; + if (0 === (seen1 & 2)) + $this.value = ''; + else + $this.value = value; + return $this; + } + } + class Companion_304 { + constructor() { + Companion_instance_304 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, null, null, null, null, null, null, null, new LinkedHashMapSerializer(StringSerializer_getInstance(), StringSerializer_getInstance())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.viewunite.common.TheatreHotTopic'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_291(); + } + } + class $serializer_291 { + constructor() { + $serializer_instance_291 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KTheatreHotTopic', this, 11); + tmp0_serialDesc.addElement_5pzumi_k$('theatreId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('theatreSetId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('theatreTitle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('backgroundImageUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('theatreUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('hotTopicId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('hotTopicSetId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('hotTopicTitle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('hotTopicUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('isSubscribe', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('report', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_304().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), tmp0_cached[10]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = new Long(0, 0); + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = new Long(0, 0); + var tmp10_local6 = new Long(0, 0); + var tmp11_local7 = null; + var tmp12_local8 = null; + var tmp13_local9 = 0; + var tmp14_local10 = null; + var tmp15_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp16_cached = Companion_getInstance_304().$childSerializers_1; + if (tmp15_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp15_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 10, tmp16_cached[10], tmp14_local10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + } else + while (tmp1_flag) { + tmp2_index = tmp15_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp15_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 10, tmp16_cached[10], tmp14_local10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp15_input.endStructure_1xqz0n_k$(tmp0_desc); + return KTheatreHotTopic_0.new_com_bapis_bilibili_app_viewunite_common_KTheatreHotTopic_3xvktd_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, null); + } + serialize_d09fqj_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_304().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.theatreId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.theatreId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.theatreSetId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.theatreSetId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.theatreTitle === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.theatreTitle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.backgroundImageUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.backgroundImageUrl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.theatreUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.theatreUrl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !value.hotTopicId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 5, value.hotTopicId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !value.hotTopicSetId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 6, value.hotTopicSetId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.hotTopicTitle === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.hotTopicTitle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.hotTopicUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 8, value.hotTopicUrl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.isSubscribe === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 9, value.isSubscribe); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !equals(value.report, emptyMap())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 10, tmp2_cached[10], value.report); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_d09fqj_k$(encoder, value instanceof KTheatreHotTopic_0 ? value : THROW_CCE()); + } + } + class KTheatreHotTopic_0 { + constructor(theatreId, theatreSetId, theatreTitle, backgroundImageUrl, theatreUrl, hotTopicId, hotTopicSetId, hotTopicTitle, hotTopicUrl, isSubscribe, report) { + Companion_getInstance_304(); + theatreId = theatreId === VOID ? new Long(0, 0) : theatreId; + theatreSetId = theatreSetId === VOID ? new Long(0, 0) : theatreSetId; + theatreTitle = theatreTitle === VOID ? '' : theatreTitle; + backgroundImageUrl = backgroundImageUrl === VOID ? '' : backgroundImageUrl; + theatreUrl = theatreUrl === VOID ? '' : theatreUrl; + hotTopicId = hotTopicId === VOID ? new Long(0, 0) : hotTopicId; + hotTopicSetId = hotTopicSetId === VOID ? new Long(0, 0) : hotTopicSetId; + hotTopicTitle = hotTopicTitle === VOID ? '' : hotTopicTitle; + hotTopicUrl = hotTopicUrl === VOID ? '' : hotTopicUrl; + isSubscribe = isSubscribe === VOID ? 0 : isSubscribe; + report = report === VOID ? emptyMap() : report; + this.theatreId = theatreId; + this.theatreSetId = theatreSetId; + this.theatreTitle = theatreTitle; + this.backgroundImageUrl = backgroundImageUrl; + this.theatreUrl = theatreUrl; + this.hotTopicId = hotTopicId; + this.hotTopicSetId = hotTopicSetId; + this.hotTopicTitle = hotTopicTitle; + this.hotTopicUrl = hotTopicUrl; + this.isSubscribe = isSubscribe; + this.report = report; + } + get_theatreId_3d3t61_k$() { + return this.theatreId; + } + get_theatreSetId_60aj8x_k$() { + return this.theatreSetId; + } + get_theatreTitle_5zo5va_k$() { + return this.theatreTitle; + } + get_backgroundImageUrl_akbu23_k$() { + return this.backgroundImageUrl; + } + get_theatreUrl_x96bj5_k$() { + return this.theatreUrl; + } + get_hotTopicId_v488py_k$() { + return this.hotTopicId; + } + get_hotTopicSetId_3mqh8u_k$() { + return this.hotTopicSetId; + } + get_hotTopicTitle_3m43v7_k$() { + return this.hotTopicTitle; + } + get_hotTopicUrl_tsgzzw_k$() { + return this.hotTopicUrl; + } + get_isSubscribe_t4sc2x_k$() { + return this.isSubscribe; + } + get_report_iye43h_k$() { + return this.report; + } + component1_7eebsc_k$() { + return this.theatreId; + } + component2_7eebsb_k$() { + return this.theatreSetId; + } + component3_7eebsa_k$() { + return this.theatreTitle; + } + component4_7eebs9_k$() { + return this.backgroundImageUrl; + } + component5_7eebs8_k$() { + return this.theatreUrl; + } + component6_7eebs7_k$() { + return this.hotTopicId; + } + component7_7eebs6_k$() { + return this.hotTopicSetId; + } + component8_7eebs5_k$() { + return this.hotTopicTitle; + } + component9_7eebs4_k$() { + return this.hotTopicUrl; + } + component10_gazzfo_k$() { + return this.isSubscribe; + } + component11_gazzfn_k$() { + return this.report; + } + copy_i1j5l_k$(theatreId, theatreSetId, theatreTitle, backgroundImageUrl, theatreUrl, hotTopicId, hotTopicSetId, hotTopicTitle, hotTopicUrl, isSubscribe, report) { + return new KTheatreHotTopic_0(theatreId, theatreSetId, theatreTitle, backgroundImageUrl, theatreUrl, hotTopicId, hotTopicSetId, hotTopicTitle, hotTopicUrl, isSubscribe, report); + } + copy(theatreId, theatreSetId, theatreTitle, backgroundImageUrl, theatreUrl, hotTopicId, hotTopicSetId, hotTopicTitle, hotTopicUrl, isSubscribe, report, $super) { + theatreId = theatreId === VOID ? this.theatreId : theatreId; + theatreSetId = theatreSetId === VOID ? this.theatreSetId : theatreSetId; + theatreTitle = theatreTitle === VOID ? this.theatreTitle : theatreTitle; + backgroundImageUrl = backgroundImageUrl === VOID ? this.backgroundImageUrl : backgroundImageUrl; + theatreUrl = theatreUrl === VOID ? this.theatreUrl : theatreUrl; + hotTopicId = hotTopicId === VOID ? this.hotTopicId : hotTopicId; + hotTopicSetId = hotTopicSetId === VOID ? this.hotTopicSetId : hotTopicSetId; + hotTopicTitle = hotTopicTitle === VOID ? this.hotTopicTitle : hotTopicTitle; + hotTopicUrl = hotTopicUrl === VOID ? this.hotTopicUrl : hotTopicUrl; + isSubscribe = isSubscribe === VOID ? this.isSubscribe : isSubscribe; + report = report === VOID ? this.report : report; + return this.copy_i1j5l_k$(theatreId, theatreSetId, theatreTitle, backgroundImageUrl, theatreUrl, hotTopicId, hotTopicSetId, hotTopicTitle, hotTopicUrl, isSubscribe, report); + } + toString() { + return 'KTheatreHotTopic(theatreId=' + this.theatreId.toString() + ', theatreSetId=' + this.theatreSetId.toString() + ', theatreTitle=' + this.theatreTitle + ', backgroundImageUrl=' + this.backgroundImageUrl + ', theatreUrl=' + this.theatreUrl + ', hotTopicId=' + this.hotTopicId.toString() + ', hotTopicSetId=' + this.hotTopicSetId.toString() + ', hotTopicTitle=' + this.hotTopicTitle + ', hotTopicUrl=' + this.hotTopicUrl + ', isSubscribe=' + this.isSubscribe + ', report=' + this.report + ')'; + } + hashCode() { + var result = this.theatreId.hashCode(); + result = imul(result, 31) + this.theatreSetId.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.theatreTitle) | 0; + result = imul(result, 31) + getStringHashCode(this.backgroundImageUrl) | 0; + result = imul(result, 31) + getStringHashCode(this.theatreUrl) | 0; + result = imul(result, 31) + this.hotTopicId.hashCode() | 0; + result = imul(result, 31) + this.hotTopicSetId.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.hotTopicTitle) | 0; + result = imul(result, 31) + getStringHashCode(this.hotTopicUrl) | 0; + result = imul(result, 31) + this.isSubscribe | 0; + result = imul(result, 31) + hashCode(this.report) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KTheatreHotTopic_0)) + return false; + var tmp0_other_with_cast = other instanceof KTheatreHotTopic_0 ? other : THROW_CCE(); + if (!this.theatreId.equals(tmp0_other_with_cast.theatreId)) + return false; + if (!this.theatreSetId.equals(tmp0_other_with_cast.theatreSetId)) + return false; + if (!(this.theatreTitle === tmp0_other_with_cast.theatreTitle)) + return false; + if (!(this.backgroundImageUrl === tmp0_other_with_cast.backgroundImageUrl)) + return false; + if (!(this.theatreUrl === tmp0_other_with_cast.theatreUrl)) + return false; + if (!this.hotTopicId.equals(tmp0_other_with_cast.hotTopicId)) + return false; + if (!this.hotTopicSetId.equals(tmp0_other_with_cast.hotTopicSetId)) + return false; + if (!(this.hotTopicTitle === tmp0_other_with_cast.hotTopicTitle)) + return false; + if (!(this.hotTopicUrl === tmp0_other_with_cast.hotTopicUrl)) + return false; + if (!(this.isSubscribe === tmp0_other_with_cast.isSubscribe)) + return false; + if (!equals(this.report, tmp0_other_with_cast.report)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KTheatreHotTopic_3xvktd_k$(seen1, theatreId, theatreSetId, theatreTitle, backgroundImageUrl, theatreUrl, hotTopicId, hotTopicSetId, hotTopicTitle, hotTopicUrl, isSubscribe, report, serializationConstructorMarker) { + Companion_getInstance_304(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_291().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.theatreId = new Long(0, 0); + else + $this.theatreId = theatreId; + if (0 === (seen1 & 2)) + $this.theatreSetId = new Long(0, 0); + else + $this.theatreSetId = theatreSetId; + if (0 === (seen1 & 4)) + $this.theatreTitle = ''; + else + $this.theatreTitle = theatreTitle; + if (0 === (seen1 & 8)) + $this.backgroundImageUrl = ''; + else + $this.backgroundImageUrl = backgroundImageUrl; + if (0 === (seen1 & 16)) + $this.theatreUrl = ''; + else + $this.theatreUrl = theatreUrl; + if (0 === (seen1 & 32)) + $this.hotTopicId = new Long(0, 0); + else + $this.hotTopicId = hotTopicId; + if (0 === (seen1 & 64)) + $this.hotTopicSetId = new Long(0, 0); + else + $this.hotTopicSetId = hotTopicSetId; + if (0 === (seen1 & 128)) + $this.hotTopicTitle = ''; + else + $this.hotTopicTitle = hotTopicTitle; + if (0 === (seen1 & 256)) + $this.hotTopicUrl = ''; + else + $this.hotTopicUrl = hotTopicUrl; + if (0 === (seen1 & 512)) + $this.isSubscribe = 0; + else + $this.isSubscribe = isSubscribe; + if (0 === (seen1 & 1024)) + $this.report = emptyMap(); + else + $this.report = report; + return $this; + } + } + class Companion_305 { + constructor() { + Companion_instance_305 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer($serializer_getInstance_232()), null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.viewunite.common.ActPageItems'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_292(); + } + } + class $serializer_292 { + constructor() { + $serializer_instance_292 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KActPageItems', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('item', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('showStyle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_305().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0], IntSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = 0; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp8_cached = Companion_getInstance_305().$childSerializers_1; + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp8_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp8_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KActPageItems_0.new_com_bapis_bilibili_app_viewunite_common_KActPageItems_s8k0j7_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_m9gj1j_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_305().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.item, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.item); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.showStyle === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.showStyle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.title); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_m9gj1j_k$(encoder, value instanceof KActPageItems_0 ? value : THROW_CCE()); + } + } + class KActPageItems_0 { + constructor(item, showStyle, title) { + Companion_getInstance_305(); + item = item === VOID ? emptyList() : item; + showStyle = showStyle === VOID ? 0 : showStyle; + title = title === VOID ? '' : title; + this.item = item; + this.showStyle = showStyle; + this.title = title; + } + get_item_woo5lo_k$() { + return this.item; + } + get_showStyle_n59b05_k$() { + return this.showStyle; + } + get_title_iz32un_k$() { + return this.title; + } + showStyleEnum() { + return Companion_getInstance_219().fromValue(this.showStyle); + } + component1_7eebsc_k$() { + return this.item; + } + component2_7eebsb_k$() { + return this.showStyle; + } + component3_7eebsa_k$() { + return this.title; + } + copy_95tfet_k$(item, showStyle, title) { + return new KActPageItems_0(item, showStyle, title); + } + copy(item, showStyle, title, $super) { + item = item === VOID ? this.item : item; + showStyle = showStyle === VOID ? this.showStyle : showStyle; + title = title === VOID ? this.title : title; + return this.copy_95tfet_k$(item, showStyle, title); + } + toString() { + return 'KActPageItems(item=' + this.item + ', showStyle=' + this.showStyle + ', title=' + this.title + ')'; + } + hashCode() { + var result = hashCode(this.item); + result = imul(result, 31) + this.showStyle | 0; + result = imul(result, 31) + getStringHashCode(this.title) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KActPageItems_0)) + return false; + var tmp0_other_with_cast = other instanceof KActPageItems_0 ? other : THROW_CCE(); + if (!equals(this.item, tmp0_other_with_cast.item)) + return false; + if (!(this.showStyle === tmp0_other_with_cast.showStyle)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KActPageItems_s8k0j7_k$(seen1, item, showStyle, title, serializationConstructorMarker) { + Companion_getInstance_305(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_292().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.item = emptyList(); + else + $this.item = item; + if (0 === (seen1 & 2)) + $this.showStyle = 0; + else + $this.showStyle = showStyle; + if (0 === (seen1 & 4)) + $this.title = ''; + else + $this.title = title; + return $this; + } + } + class Companion_306 { + constructor() { + Companion_instance_306 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, null, null, null, null, null, null, null, null, new ArrayListSerializer($serializer_getInstance_296())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.viewunite.common.Activity'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_293(); + } + } + class $serializer_293 { + constructor() { + $serializer_instance_293 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KActivity', this, 12); + tmp0_serialDesc.addElement_5pzumi_k$('id', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('link', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('ab', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('showName', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('picurl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('picurlSelected', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('h5Link', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('jumpMode', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('items', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_306().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), tmp0_cached[11]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = 0; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_local8 = null; + var tmp13_local9 = null; + var tmp14_local10 = null; + var tmp15_local11 = null; + var tmp16_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp17_cached = Companion_getInstance_306().$childSerializers_1; + if (tmp16_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp16_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 11, tmp17_cached[11], tmp15_local11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + } else + while (tmp1_flag) { + tmp2_index = tmp16_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp16_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 11, tmp17_cached[11], tmp15_local11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp16_input.endStructure_1xqz0n_k$(tmp0_desc); + return KActivity_0.new_com_bapis_bilibili_app_viewunite_common_KActivity_n46xrj_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, null); + } + serialize_ewgfex_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_306().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.id === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.id); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.link === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.link); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.cover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.type === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 4, value.type); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.ab === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.ab); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.showName === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.showName); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.picurl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.picurl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.picurlSelected === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 8, value.picurlSelected); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.h5Link === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 9, value.h5Link); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.jumpMode === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 10, value.jumpMode); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !equals(value.items, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 11, tmp2_cached[11], value.items); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_ewgfex_k$(encoder, value instanceof KActivity_0 ? value : THROW_CCE()); + } + } + class KActivity_0 { + constructor(id, title, link, cover, type, ab, showName, picurl, picurlSelected, h5Link, jumpMode, items) { + Companion_getInstance_306(); + id = id === VOID ? 0 : id; + title = title === VOID ? '' : title; + link = link === VOID ? '' : link; + cover = cover === VOID ? '' : cover; + type = type === VOID ? 0 : type; + ab = ab === VOID ? '' : ab; + showName = showName === VOID ? '' : showName; + picurl = picurl === VOID ? '' : picurl; + picurlSelected = picurlSelected === VOID ? '' : picurlSelected; + h5Link = h5Link === VOID ? '' : h5Link; + jumpMode = jumpMode === VOID ? '' : jumpMode; + items = items === VOID ? emptyList() : items; + this.id = id; + this.title = title; + this.link = link; + this.cover = cover; + this.type = type; + this.ab = ab; + this.showName = showName; + this.picurl = picurl; + this.picurlSelected = picurlSelected; + this.h5Link = h5Link; + this.jumpMode = jumpMode; + this.items = items; + } + get_id_kntnx8_k$() { + return this.id; + } + get_title_iz32un_k$() { + return this.title; + } + get_link_wopumb_k$() { + return this.link; + } + get_cover_ipug0e_k$() { + return this.cover; + } + get_type_wovaf7_k$() { + return this.type; + } + get_ab_knto46_k$() { + return this.ab; + } + get_showName_xmc06p_k$() { + return this.showName; + } + get_picurl_i29vam_k$() { + return this.picurl; + } + get_picurlSelected_gqjdsn_k$() { + return this.picurlSelected; + } + get_h5Link_dgwnlc_k$() { + return this.h5Link; + } + get_jumpMode_z01bqy_k$() { + return this.jumpMode; + } + get_items_it823b_k$() { + return this.items; + } + component1_7eebsc_k$() { + return this.id; + } + component2_7eebsb_k$() { + return this.title; + } + component3_7eebsa_k$() { + return this.link; + } + component4_7eebs9_k$() { + return this.cover; + } + component5_7eebs8_k$() { + return this.type; + } + component6_7eebs7_k$() { + return this.ab; + } + component7_7eebs6_k$() { + return this.showName; + } + component8_7eebs5_k$() { + return this.picurl; + } + component9_7eebs4_k$() { + return this.picurlSelected; + } + component10_gazzfo_k$() { + return this.h5Link; + } + component11_gazzfn_k$() { + return this.jumpMode; + } + component12_gazzfm_k$() { + return this.items; + } + copy_rmz14x_k$(id, title, link, cover, type, ab, showName, picurl, picurlSelected, h5Link, jumpMode, items) { + return new KActivity_0(id, title, link, cover, type, ab, showName, picurl, picurlSelected, h5Link, jumpMode, items); + } + copy(id, title, link, cover, type, ab, showName, picurl, picurlSelected, h5Link, jumpMode, items, $super) { + id = id === VOID ? this.id : id; + title = title === VOID ? this.title : title; + link = link === VOID ? this.link : link; + cover = cover === VOID ? this.cover : cover; + type = type === VOID ? this.type : type; + ab = ab === VOID ? this.ab : ab; + showName = showName === VOID ? this.showName : showName; + picurl = picurl === VOID ? this.picurl : picurl; + picurlSelected = picurlSelected === VOID ? this.picurlSelected : picurlSelected; + h5Link = h5Link === VOID ? this.h5Link : h5Link; + jumpMode = jumpMode === VOID ? this.jumpMode : jumpMode; + items = items === VOID ? this.items : items; + return this.copy_rmz14x_k$(id, title, link, cover, type, ab, showName, picurl, picurlSelected, h5Link, jumpMode, items); + } + toString() { + return 'KActivity(id=' + this.id + ', title=' + this.title + ', link=' + this.link + ', cover=' + this.cover + ', type=' + this.type + ', ab=' + this.ab + ', showName=' + this.showName + ', picurl=' + this.picurl + ', picurlSelected=' + this.picurlSelected + ', h5Link=' + this.h5Link + ', jumpMode=' + this.jumpMode + ', items=' + this.items + ')'; + } + hashCode() { + var result = this.id; + result = imul(result, 31) + getStringHashCode(this.title) | 0; + result = imul(result, 31) + getStringHashCode(this.link) | 0; + result = imul(result, 31) + getStringHashCode(this.cover) | 0; + result = imul(result, 31) + this.type | 0; + result = imul(result, 31) + getStringHashCode(this.ab) | 0; + result = imul(result, 31) + getStringHashCode(this.showName) | 0; + result = imul(result, 31) + getStringHashCode(this.picurl) | 0; + result = imul(result, 31) + getStringHashCode(this.picurlSelected) | 0; + result = imul(result, 31) + getStringHashCode(this.h5Link) | 0; + result = imul(result, 31) + getStringHashCode(this.jumpMode) | 0; + result = imul(result, 31) + hashCode(this.items) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KActivity_0)) + return false; + var tmp0_other_with_cast = other instanceof KActivity_0 ? other : THROW_CCE(); + if (!(this.id === tmp0_other_with_cast.id)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.link === tmp0_other_with_cast.link)) + return false; + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + if (!(this.type === tmp0_other_with_cast.type)) + return false; + if (!(this.ab === tmp0_other_with_cast.ab)) + return false; + if (!(this.showName === tmp0_other_with_cast.showName)) + return false; + if (!(this.picurl === tmp0_other_with_cast.picurl)) + return false; + if (!(this.picurlSelected === tmp0_other_with_cast.picurlSelected)) + return false; + if (!(this.h5Link === tmp0_other_with_cast.h5Link)) + return false; + if (!(this.jumpMode === tmp0_other_with_cast.jumpMode)) + return false; + if (!equals(this.items, tmp0_other_with_cast.items)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KActivity_n46xrj_k$(seen1, id, title, link, cover, type, ab, showName, picurl, picurlSelected, h5Link, jumpMode, items, serializationConstructorMarker) { + Companion_getInstance_306(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_293().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.id = 0; + else + $this.id = id; + if (0 === (seen1 & 2)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 4)) + $this.link = ''; + else + $this.link = link; + if (0 === (seen1 & 8)) + $this.cover = ''; + else + $this.cover = cover; + if (0 === (seen1 & 16)) + $this.type = 0; + else + $this.type = type; + if (0 === (seen1 & 32)) + $this.ab = ''; + else + $this.ab = ab; + if (0 === (seen1 & 64)) + $this.showName = ''; + else + $this.showName = showName; + if (0 === (seen1 & 128)) + $this.picurl = ''; + else + $this.picurl = picurl; + if (0 === (seen1 & 256)) + $this.picurlSelected = ''; + else + $this.picurlSelected = picurlSelected; + if (0 === (seen1 & 512)) + $this.h5Link = ''; + else + $this.h5Link = h5Link; + if (0 === (seen1 & 1024)) + $this.jumpMode = ''; + else + $this.jumpMode = jumpMode; + if (0 === (seen1 & 2048)) + $this.items = emptyList(); + else + $this.items = items; + return $this; + } + } + class Companion_307 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.Pendant'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_294(); + } + } + class $serializer_294 { + constructor() { + $serializer_instance_294 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KPendant', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('pid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('name', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('image', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KPendant.new_com_bapis_bilibili_app_viewunite_common_KPendant_ihveak_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_fo295a_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.pid === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.pid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.name === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.name); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.image === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.image); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_fo295a_k$(encoder, value instanceof KPendant ? value : THROW_CCE()); + } + } + class KPendant { + constructor(pid, name, image) { + Companion_instance_307; + pid = pid === VOID ? 0 : pid; + name = name === VOID ? '' : name; + image = image === VOID ? '' : image; + this.pid = pid; + this.name = name; + this.image = image; + } + get_pid_18iyfy_k$() { + return this.pid; + } + get_name_woqyms_k$() { + return this.name; + } + get_image_it3i2a_k$() { + return this.image; + } + component1_7eebsc_k$() { + return this.pid; + } + component2_7eebsb_k$() { + return this.name; + } + component3_7eebsa_k$() { + return this.image; + } + copy_hrd73x_k$(pid, name, image) { + return new KPendant(pid, name, image); + } + copy(pid, name, image, $super) { + pid = pid === VOID ? this.pid : pid; + name = name === VOID ? this.name : name; + image = image === VOID ? this.image : image; + return this.copy_hrd73x_k$(pid, name, image); + } + toString() { + return 'KPendant(pid=' + this.pid + ', name=' + this.name + ', image=' + this.image + ')'; + } + hashCode() { + var result = this.pid; + result = imul(result, 31) + getStringHashCode(this.name) | 0; + result = imul(result, 31) + getStringHashCode(this.image) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KPendant)) + return false; + var tmp0_other_with_cast = other instanceof KPendant ? other : THROW_CCE(); + if (!(this.pid === tmp0_other_with_cast.pid)) + return false; + if (!(this.name === tmp0_other_with_cast.name)) + return false; + if (!(this.image === tmp0_other_with_cast.image)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KPendant_ihveak_k$(seen1, pid, name, image, serializationConstructorMarker) { + Companion_instance_307; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_294().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.pid = 0; + else + $this.pid = pid; + if (0 === (seen1 & 2)) + $this.name = ''; + else + $this.name = name; + if (0 === (seen1 & 4)) + $this.image = ''; + else + $this.image = image; + return $this; + } + } + class Companion_308 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.Threshold'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_295(); + } + } + class $serializer_295 { + constructor() { + $serializer_instance_295 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KThreshold', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('bp', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('days', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('daysText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = 0; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KThreshold.new_com_bapis_bilibili_app_viewunite_common_KThreshold_4czauw_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_rxcuv7_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.bp === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.bp); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.days === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.days); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.daysText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.daysText); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_rxcuv7_k$(encoder, value instanceof KThreshold ? value : THROW_CCE()); + } + } + class KThreshold { + constructor(bp, days, daysText) { + Companion_instance_308; + bp = bp === VOID ? 0 : bp; + days = days === VOID ? 0 : days; + daysText = daysText === VOID ? '' : daysText; + this.bp = bp; + this.days = days; + this.daysText = daysText; + } + get_bp_knto2x_k$() { + return this.bp; + } + get_days_wokl28_k$() { + return this.days; + } + get_daysText_fc99p_k$() { + return this.daysText; + } + component1_7eebsc_k$() { + return this.bp; + } + component2_7eebsb_k$() { + return this.days; + } + component3_7eebsa_k$() { + return this.daysText; + } + copy_brlfhh_k$(bp, days, daysText) { + return new KThreshold(bp, days, daysText); + } + copy(bp, days, daysText, $super) { + bp = bp === VOID ? this.bp : bp; + days = days === VOID ? this.days : days; + daysText = daysText === VOID ? this.daysText : daysText; + return this.copy_brlfhh_k$(bp, days, daysText); + } + toString() { + return 'KThreshold(bp=' + this.bp + ', days=' + this.days + ', daysText=' + this.daysText + ')'; + } + hashCode() { + var result = this.bp; + result = imul(result, 31) + this.days | 0; + result = imul(result, 31) + getStringHashCode(this.daysText) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KThreshold)) + return false; + var tmp0_other_with_cast = other instanceof KThreshold ? other : THROW_CCE(); + if (!(this.bp === tmp0_other_with_cast.bp)) + return false; + if (!(this.days === tmp0_other_with_cast.days)) + return false; + if (!(this.daysText === tmp0_other_with_cast.daysText)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KThreshold_4czauw_k$(seen1, bp, days, daysText, serializationConstructorMarker) { + Companion_instance_308; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_295().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.bp = 0; + else + $this.bp = bp; + if (0 === (seen1 & 2)) + $this.days = 0; + else + $this.days = days; + if (0 === (seen1 & 4)) + $this.daysText = ''; + else + $this.daysText = daysText; + return $this; + } + } + class Companion_309 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.Item'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_296(); + } + } + class $serializer_296 { + constructor() { + $serializer_instance_296 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KItem', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('link', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KItem.new_com_bapis_bilibili_app_viewunite_common_KItem_gq7mvn_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_j57xff_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.link === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.link); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.cover); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_j57xff_k$(encoder, value instanceof KItem ? value : THROW_CCE()); + } + } + class KItem { + constructor(link, cover) { + Companion_instance_309; + link = link === VOID ? '' : link; + cover = cover === VOID ? '' : cover; + this.link = link; + this.cover = cover; + } + get_link_wopumb_k$() { + return this.link; + } + get_cover_ipug0e_k$() { + return this.cover; + } + component1_7eebsc_k$() { + return this.link; + } + component2_7eebsb_k$() { + return this.cover; + } + copy_plwnsl_k$(link, cover) { + return new KItem(link, cover); + } + copy(link, cover, $super) { + link = link === VOID ? this.link : link; + cover = cover === VOID ? this.cover : cover; + return this.copy_plwnsl_k$(link, cover); + } + toString() { + return 'KItem(link=' + this.link + ', cover=' + this.cover + ')'; + } + hashCode() { + var result = getStringHashCode(this.link); + result = imul(result, 31) + getStringHashCode(this.cover) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KItem)) + return false; + var tmp0_other_with_cast = other instanceof KItem ? other : THROW_CCE(); + if (!(this.link === tmp0_other_with_cast.link)) + return false; + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KItem_gq7mvn_k$(seen1, link, cover, serializationConstructorMarker) { + Companion_instance_309; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_296().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.link = ''; + else + $this.link = link; + if (0 === (seen1 & 2)) + $this.cover = ''; + else + $this.cover = cover; + return $this; + } + } + class Companion_310 { + constructor() { + Companion_instance_310 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer($serializer_getInstance_298())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.viewunite.common.Characters'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_297(); + } + } + class $serializer_297 { + constructor() { + $serializer_instance_297 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KCharacters', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('groups', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_310().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp6_cached = Companion_getInstance_310().$childSerializers_1; + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KCharacters_0.new_com_bapis_bilibili_app_viewunite_common_KCharacters_lr2v20_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_7itu2a_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_310().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.groups, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.groups); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_7itu2a_k$(encoder, value instanceof KCharacters_0 ? value : THROW_CCE()); + } + } + class KCharacters_0 { + constructor(groups) { + Companion_getInstance_310(); + groups = groups === VOID ? emptyList() : groups; + this.groups = groups; + } + get_groups_dy12vx_k$() { + return this.groups; + } + component1_7eebsc_k$() { + return this.groups; + } + copy_e9hkpk_k$(groups) { + return new KCharacters_0(groups); + } + copy(groups, $super) { + groups = groups === VOID ? this.groups : groups; + return this.copy_e9hkpk_k$(groups); + } + toString() { + return 'KCharacters(groups=' + this.groups + ')'; + } + hashCode() { + return hashCode(this.groups); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KCharacters_0)) + return false; + var tmp0_other_with_cast = other instanceof KCharacters_0 ? other : THROW_CCE(); + if (!equals(this.groups, tmp0_other_with_cast.groups)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KCharacters_lr2v20_k$(seen1, groups, serializationConstructorMarker) { + Companion_getInstance_310(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_297().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.groups = emptyList(); + else + $this.groups = groups; + return $this; + } + } + class Companion_311 { + constructor() { + Companion_instance_311 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, new ArrayListSerializer($serializer_getInstance_300())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.viewunite.common.CharacterGroup'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_298(); + } + } + class $serializer_298 { + constructor() { + $serializer_instance_298 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KCharacterGroup', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('characters', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_311().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), tmp0_cached[1]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp7_cached = Companion_getInstance_311().$childSerializers_1; + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KCharacterGroup.new_com_bapis_bilibili_app_viewunite_common_KCharacterGroup_6nrfc0_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_x3qw2m_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_311().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !equals(value.characters, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 1, tmp2_cached[1], value.characters); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_x3qw2m_k$(encoder, value instanceof KCharacterGroup ? value : THROW_CCE()); + } + } + class KCharacterGroup { + constructor(title, characters) { + Companion_getInstance_311(); + title = title === VOID ? '' : title; + characters = characters === VOID ? emptyList() : characters; + this.title = title; + this.characters = characters; + } + get_title_iz32un_k$() { + return this.title; + } + get_characters_f8ovn_k$() { + return this.characters; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.characters; + } + copy_98v92z_k$(title, characters) { + return new KCharacterGroup(title, characters); + } + copy(title, characters, $super) { + title = title === VOID ? this.title : title; + characters = characters === VOID ? this.characters : characters; + return this.copy_98v92z_k$(title, characters); + } + toString() { + return 'KCharacterGroup(title=' + this.title + ', characters=' + this.characters + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + hashCode(this.characters) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KCharacterGroup)) + return false; + var tmp0_other_with_cast = other instanceof KCharacterGroup ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!equals(this.characters, tmp0_other_with_cast.characters)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KCharacterGroup_6nrfc0_k$(seen1, title, characters, serializationConstructorMarker) { + Companion_getInstance_311(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_298().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.characters = emptyList(); + else + $this.characters = characters; + return $this; + } + } + class Companion_312 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.Celebrity.ReportEntry'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_299(); + } + } + class $serializer_299 { + constructor() { + $serializer_instance_299 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KCelebrity.KReportEntry', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('key', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('value', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KReportEntry_10.new_com_bapis_bilibili_app_viewunite_common_KCelebrity_KReportEntry_2sojvz_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_8oe2rq_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.key === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.key); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.value === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.value); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_8oe2rq_k$(encoder, value instanceof KReportEntry_10 ? value : THROW_CCE()); + } + } + class KReportEntry_10 { + constructor(key, value) { + Companion_instance_312; + key = key === VOID ? '' : key; + value = value === VOID ? '' : value; + this.key = key; + this.value = value; + } + get_key_18j28a_k$() { + return this.key; + } + get_value_j01efc_k$() { + return this.value; + } + component1_7eebsc_k$() { + return this.key; + } + component2_7eebsb_k$() { + return this.value; + } + copy_plwnsl_k$(key, value) { + return new KReportEntry_10(key, value); + } + copy(key, value, $super) { + key = key === VOID ? this.key : key; + value = value === VOID ? this.value : value; + return this.copy_plwnsl_k$(key, value); + } + toString() { + return 'KReportEntry(key=' + this.key + ', value=' + this.value + ')'; + } + hashCode() { + var result = getStringHashCode(this.key); + result = imul(result, 31) + getStringHashCode(this.value) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KReportEntry_10)) + return false; + var tmp0_other_with_cast = other instanceof KReportEntry_10 ? other : THROW_CCE(); + if (!(this.key === tmp0_other_with_cast.key)) + return false; + if (!(this.value === tmp0_other_with_cast.value)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KCelebrity_KReportEntry_2sojvz_k$(seen1, key, value, serializationConstructorMarker) { + Companion_instance_312; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_299().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.key = ''; + else + $this.key = key; + if (0 === (seen1 & 2)) + $this.value = ''; + else + $this.value = value; + return $this; + } + } + class Companion_313 { + constructor() { + Companion_instance_313 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, null, null, null, null, null, null, null, null, null, null, null, new LinkedHashMapSerializer(StringSerializer_getInstance(), StringSerializer_getInstance()), null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.viewunite.common.Celebrity'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_300(); + } + } + class $serializer_300 { + constructor() { + $serializer_instance_300 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KCelebrity', this, 16); + tmp0_serialDesc.addElement_5pzumi_k$('id', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('name', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('role', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('avatar', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('shortDesc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('desc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('characterAvatar', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('link', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('mid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('isFollow', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('occupationName', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('occupationType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + tmp0_serialDesc.addElement_5pzumi_k$('relateAttr', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(13)); + tmp0_serialDesc.addElement_5pzumi_k$('smallAvatar', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(14)); + tmp0_serialDesc.addElement_5pzumi_k$('report', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(15)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('official', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(16)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_313().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), tmp0_cached[14], get_nullable($serializer_getInstance_324())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_local8 = new Long(0, 0); + var tmp13_local9 = 0; + var tmp14_local10 = null; + var tmp15_local11 = 0; + var tmp16_local12 = 0; + var tmp17_local13 = null; + var tmp18_local14 = null; + var tmp19_local15 = null; + var tmp20_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp21_cached = Companion_getInstance_313().$childSerializers_1; + if (tmp20_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp20_input.decodeLongElement_994anb_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + tmp16_local12 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + tmp17_local13 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + tmp18_local14 = tmp20_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 14, tmp21_cached[14], tmp18_local14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + tmp19_local15 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 15, $serializer_getInstance_324(), tmp19_local15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + } else + while (tmp1_flag) { + tmp2_index = tmp20_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp20_input.decodeLongElement_994anb_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + case 12: + tmp16_local12 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + break; + case 13: + tmp17_local13 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + break; + case 14: + tmp18_local14 = tmp20_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 14, tmp21_cached[14], tmp18_local14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + break; + case 15: + tmp19_local15 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 15, $serializer_getInstance_324(), tmp19_local15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp20_input.endStructure_1xqz0n_k$(tmp0_desc); + return KCelebrity.new_com_bapis_bilibili_app_viewunite_common_KCelebrity_xc4odj_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, tmp18_local14, tmp19_local15, null); + } + serialize_bh0h85_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_313().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.id === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.id); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.name === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.name); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.role === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.role); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.avatar === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.avatar); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.shortDesc === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.shortDesc); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.desc === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.desc); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.characterAvatar === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.characterAvatar); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.link === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.link); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !value.mid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 8, value.mid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.isFollow === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 9, value.isFollow); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.occupationName === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 10, value.occupationName); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.occupationType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 11, value.occupationType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !(value.relateAttr === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 12, value.relateAttr); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 13) ? true : !(value.smallAvatar === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 13, value.smallAvatar); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 14) ? true : !equals(value.report, emptyMap())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 14, tmp2_cached[14], value.report); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 15) ? true : !(value.official == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 15, $serializer_getInstance_324(), value.official); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_bh0h85_k$(encoder, value instanceof KCelebrity ? value : THROW_CCE()); + } + } + class KCelebrity { + constructor(id, name, role, avatar, shortDesc, desc, characterAvatar, link, mid, isFollow, occupationName, occupationType, relateAttr, smallAvatar, report, official) { + Companion_getInstance_313(); + id = id === VOID ? 0 : id; + name = name === VOID ? '' : name; + role = role === VOID ? '' : role; + avatar = avatar === VOID ? '' : avatar; + shortDesc = shortDesc === VOID ? '' : shortDesc; + desc = desc === VOID ? '' : desc; + characterAvatar = characterAvatar === VOID ? '' : characterAvatar; + link = link === VOID ? '' : link; + mid = mid === VOID ? new Long(0, 0) : mid; + isFollow = isFollow === VOID ? 0 : isFollow; + occupationName = occupationName === VOID ? '' : occupationName; + occupationType = occupationType === VOID ? 0 : occupationType; + relateAttr = relateAttr === VOID ? 0 : relateAttr; + smallAvatar = smallAvatar === VOID ? '' : smallAvatar; + report = report === VOID ? emptyMap() : report; + official = official === VOID ? null : official; + this.id = id; + this.name = name; + this.role = role; + this.avatar = avatar; + this.shortDesc = shortDesc; + this.desc = desc; + this.characterAvatar = characterAvatar; + this.link = link; + this.mid = mid; + this.isFollow = isFollow; + this.occupationName = occupationName; + this.occupationType = occupationType; + this.relateAttr = relateAttr; + this.smallAvatar = smallAvatar; + this.report = report; + this.official = official; + } + get_id_kntnx8_k$() { + return this.id; + } + get_name_woqyms_k$() { + return this.name; + } + get_role_wotsxr_k$() { + return this.role; + } + get_avatar_b5pjz6_k$() { + return this.avatar; + } + get_shortDesc_p179fg_k$() { + return this.shortDesc; + } + get_desc_woknve_k$() { + return this.desc; + } + get_characterAvatar_4gft3b_k$() { + return this.characterAvatar; + } + get_link_wopumb_k$() { + return this.link; + } + get_mid_18j0o1_k$() { + return this.mid; + } + get_isFollow_tdz0w4_k$() { + return this.isFollow; + } + get_occupationName_hvjhj3_k$() { + return this.occupationName; + } + get_occupationType_hvntbi_k$() { + return this.occupationType; + } + get_relateAttr_o6gb65_k$() { + return this.relateAttr; + } + get_smallAvatar_8ycai1_k$() { + return this.smallAvatar; + } + get_report_iye43h_k$() { + return this.report; + } + get_official_qkjhys_k$() { + return this.official; + } + occupationTypeEnum() { + return Companion_getInstance_220().fromValue(this.occupationType); + } + component1_7eebsc_k$() { + return this.id; + } + component2_7eebsb_k$() { + return this.name; + } + component3_7eebsa_k$() { + return this.role; + } + component4_7eebs9_k$() { + return this.avatar; + } + component5_7eebs8_k$() { + return this.shortDesc; + } + component6_7eebs7_k$() { + return this.desc; + } + component7_7eebs6_k$() { + return this.characterAvatar; + } + component8_7eebs5_k$() { + return this.link; + } + component9_7eebs4_k$() { + return this.mid; + } + component10_gazzfo_k$() { + return this.isFollow; + } + component11_gazzfn_k$() { + return this.occupationName; + } + component12_gazzfm_k$() { + return this.occupationType; + } + component13_gazzfl_k$() { + return this.relateAttr; + } + component14_gazzfk_k$() { + return this.smallAvatar; + } + component15_gazzfj_k$() { + return this.report; + } + component16_gazzfi_k$() { + return this.official; + } + copy_f5ok4f_k$(id, name, role, avatar, shortDesc, desc, characterAvatar, link, mid, isFollow, occupationName, occupationType, relateAttr, smallAvatar, report, official) { + return new KCelebrity(id, name, role, avatar, shortDesc, desc, characterAvatar, link, mid, isFollow, occupationName, occupationType, relateAttr, smallAvatar, report, official); + } + copy(id, name, role, avatar, shortDesc, desc, characterAvatar, link, mid, isFollow, occupationName, occupationType, relateAttr, smallAvatar, report, official, $super) { + id = id === VOID ? this.id : id; + name = name === VOID ? this.name : name; + role = role === VOID ? this.role : role; + avatar = avatar === VOID ? this.avatar : avatar; + shortDesc = shortDesc === VOID ? this.shortDesc : shortDesc; + desc = desc === VOID ? this.desc : desc; + characterAvatar = characterAvatar === VOID ? this.characterAvatar : characterAvatar; + link = link === VOID ? this.link : link; + mid = mid === VOID ? this.mid : mid; + isFollow = isFollow === VOID ? this.isFollow : isFollow; + occupationName = occupationName === VOID ? this.occupationName : occupationName; + occupationType = occupationType === VOID ? this.occupationType : occupationType; + relateAttr = relateAttr === VOID ? this.relateAttr : relateAttr; + smallAvatar = smallAvatar === VOID ? this.smallAvatar : smallAvatar; + report = report === VOID ? this.report : report; + official = official === VOID ? this.official : official; + return this.copy_f5ok4f_k$(id, name, role, avatar, shortDesc, desc, characterAvatar, link, mid, isFollow, occupationName, occupationType, relateAttr, smallAvatar, report, official); + } + toString() { + return 'KCelebrity(id=' + this.id + ', name=' + this.name + ', role=' + this.role + ', avatar=' + this.avatar + ', shortDesc=' + this.shortDesc + ', desc=' + this.desc + ', characterAvatar=' + this.characterAvatar + ', link=' + this.link + ', mid=' + this.mid.toString() + ', isFollow=' + this.isFollow + ', occupationName=' + this.occupationName + ', occupationType=' + this.occupationType + ', relateAttr=' + this.relateAttr + ', smallAvatar=' + this.smallAvatar + ', report=' + this.report + ', official=' + this.official + ')'; + } + hashCode() { + var result = this.id; + result = imul(result, 31) + getStringHashCode(this.name) | 0; + result = imul(result, 31) + getStringHashCode(this.role) | 0; + result = imul(result, 31) + getStringHashCode(this.avatar) | 0; + result = imul(result, 31) + getStringHashCode(this.shortDesc) | 0; + result = imul(result, 31) + getStringHashCode(this.desc) | 0; + result = imul(result, 31) + getStringHashCode(this.characterAvatar) | 0; + result = imul(result, 31) + getStringHashCode(this.link) | 0; + result = imul(result, 31) + this.mid.hashCode() | 0; + result = imul(result, 31) + this.isFollow | 0; + result = imul(result, 31) + getStringHashCode(this.occupationName) | 0; + result = imul(result, 31) + this.occupationType | 0; + result = imul(result, 31) + this.relateAttr | 0; + result = imul(result, 31) + getStringHashCode(this.smallAvatar) | 0; + result = imul(result, 31) + hashCode(this.report) | 0; + result = imul(result, 31) + (this.official == null ? 0 : this.official.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KCelebrity)) + return false; + var tmp0_other_with_cast = other instanceof KCelebrity ? other : THROW_CCE(); + if (!(this.id === tmp0_other_with_cast.id)) + return false; + if (!(this.name === tmp0_other_with_cast.name)) + return false; + if (!(this.role === tmp0_other_with_cast.role)) + return false; + if (!(this.avatar === tmp0_other_with_cast.avatar)) + return false; + if (!(this.shortDesc === tmp0_other_with_cast.shortDesc)) + return false; + if (!(this.desc === tmp0_other_with_cast.desc)) + return false; + if (!(this.characterAvatar === tmp0_other_with_cast.characterAvatar)) + return false; + if (!(this.link === tmp0_other_with_cast.link)) + return false; + if (!this.mid.equals(tmp0_other_with_cast.mid)) + return false; + if (!(this.isFollow === tmp0_other_with_cast.isFollow)) + return false; + if (!(this.occupationName === tmp0_other_with_cast.occupationName)) + return false; + if (!(this.occupationType === tmp0_other_with_cast.occupationType)) + return false; + if (!(this.relateAttr === tmp0_other_with_cast.relateAttr)) + return false; + if (!(this.smallAvatar === tmp0_other_with_cast.smallAvatar)) + return false; + if (!equals(this.report, tmp0_other_with_cast.report)) + return false; + if (!equals(this.official, tmp0_other_with_cast.official)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KCelebrity_xc4odj_k$(seen1, id, name, role, avatar, shortDesc, desc, characterAvatar, link, mid, isFollow, occupationName, occupationType, relateAttr, smallAvatar, report, official, serializationConstructorMarker) { + Companion_getInstance_313(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_300().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.id = 0; + else + $this.id = id; + if (0 === (seen1 & 2)) + $this.name = ''; + else + $this.name = name; + if (0 === (seen1 & 4)) + $this.role = ''; + else + $this.role = role; + if (0 === (seen1 & 8)) + $this.avatar = ''; + else + $this.avatar = avatar; + if (0 === (seen1 & 16)) + $this.shortDesc = ''; + else + $this.shortDesc = shortDesc; + if (0 === (seen1 & 32)) + $this.desc = ''; + else + $this.desc = desc; + if (0 === (seen1 & 64)) + $this.characterAvatar = ''; + else + $this.characterAvatar = characterAvatar; + if (0 === (seen1 & 128)) + $this.link = ''; + else + $this.link = link; + if (0 === (seen1 & 256)) + $this.mid = new Long(0, 0); + else + $this.mid = mid; + if (0 === (seen1 & 512)) + $this.isFollow = 0; + else + $this.isFollow = isFollow; + if (0 === (seen1 & 1024)) + $this.occupationName = ''; + else + $this.occupationName = occupationName; + if (0 === (seen1 & 2048)) + $this.occupationType = 0; + else + $this.occupationType = occupationType; + if (0 === (seen1 & 4096)) + $this.relateAttr = 0; + else + $this.relateAttr = relateAttr; + if (0 === (seen1 & 8192)) + $this.smallAvatar = ''; + else + $this.smallAvatar = smallAvatar; + if (0 === (seen1 & 16384)) + $this.report = emptyMap(); + else + $this.report = report; + if (0 === (seen1 & 32768)) + $this.official = null; + else + $this.official = official; + return $this; + } + } + class Companion_314 { + constructor() { + Companion_instance_314 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, new ArrayListSerializer(StringSerializer_getInstance())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.viewunite.common.Style'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_301(); + } + } + class $serializer_301 { + constructor() { + $serializer_instance_301 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KStyle', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('line', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('hidden', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('showPages', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_314().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), IntSerializer_getInstance(), tmp0_cached[2]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = 0; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp8_cached = Companion_getInstance_314().$childSerializers_1; + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp8_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp8_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KStyle.new_com_bapis_bilibili_app_viewunite_common_KStyle_jpdb42_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_k1kh4t_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_314().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.line === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.line); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.hidden === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.hidden); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !equals(value.showPages, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 2, tmp2_cached[2], value.showPages); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_k1kh4t_k$(encoder, value instanceof KStyle ? value : THROW_CCE()); + } + } + class KStyle { + constructor(line, hidden, showPages) { + Companion_getInstance_314(); + line = line === VOID ? 0 : line; + hidden = hidden === VOID ? 0 : hidden; + showPages = showPages === VOID ? emptyList() : showPages; + this.line = line; + this.hidden = hidden; + this.showPages = showPages; + } + get_line_wopum5_k$() { + return this.line; + } + get_hidden_e9x67n_k$() { + return this.hidden; + } + get_showPages_n7971e_k$() { + return this.showPages; + } + component1_7eebsc_k$() { + return this.line; + } + component2_7eebsb_k$() { + return this.hidden; + } + component3_7eebsa_k$() { + return this.showPages; + } + copy_5seu2b_k$(line, hidden, showPages) { + return new KStyle(line, hidden, showPages); + } + copy(line, hidden, showPages, $super) { + line = line === VOID ? this.line : line; + hidden = hidden === VOID ? this.hidden : hidden; + showPages = showPages === VOID ? this.showPages : showPages; + return this.copy_5seu2b_k$(line, hidden, showPages); + } + toString() { + return 'KStyle(line=' + this.line + ', hidden=' + this.hidden + ', showPages=' + this.showPages + ')'; + } + hashCode() { + var result = this.line; + result = imul(result, 31) + this.hidden | 0; + result = imul(result, 31) + hashCode(this.showPages) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KStyle)) + return false; + var tmp0_other_with_cast = other instanceof KStyle ? other : THROW_CCE(); + if (!(this.line === tmp0_other_with_cast.line)) + return false; + if (!(this.hidden === tmp0_other_with_cast.hidden)) + return false; + if (!equals(this.showPages, tmp0_other_with_cast.showPages)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KStyle_jpdb42_k$(seen1, line, hidden, showPages, serializationConstructorMarker) { + Companion_getInstance_314(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_301().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.line = 0; + else + $this.line = line; + if (0 === (seen1 & 2)) + $this.hidden = 0; + else + $this.hidden = hidden; + if (0 === (seen1 & 4)) + $this.showPages = emptyList(); + else + $this.showPages = showPages; + return $this; + } + } + class Companion_315 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.CardStyle'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_302(); + } + } + class $serializer_302 { + constructor() { + $serializer_instance_302 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KCardStyle', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('id', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('name', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KCardStyle.new_com_bapis_bilibili_app_viewunite_common_KCardStyle_sjvt2o_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_kudylp_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.id === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.id); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.name === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.name); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_kudylp_k$(encoder, value instanceof KCardStyle ? value : THROW_CCE()); + } + } + class KCardStyle { + constructor(id, name) { + Companion_instance_315; + id = id === VOID ? 0 : id; + name = name === VOID ? '' : name; + this.id = id; + this.name = name; + } + get_id_kntnx8_k$() { + return this.id; + } + get_name_woqyms_k$() { + return this.name; + } + component1_7eebsc_k$() { + return this.id; + } + component2_7eebsb_k$() { + return this.name; + } + copy_xhhsuv_k$(id, name) { + return new KCardStyle(id, name); + } + copy(id, name, $super) { + id = id === VOID ? this.id : id; + name = name === VOID ? this.name : name; + return this.copy_xhhsuv_k$(id, name); + } + toString() { + return 'KCardStyle(id=' + this.id + ', name=' + this.name + ')'; + } + hashCode() { + var result = this.id; + result = imul(result, 31) + getStringHashCode(this.name) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KCardStyle)) + return false; + var tmp0_other_with_cast = other instanceof KCardStyle ? other : THROW_CCE(); + if (!(this.id === tmp0_other_with_cast.id)) + return false; + if (!(this.name === tmp0_other_with_cast.name)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KCardStyle_sjvt2o_k$(seen1, id, name, serializationConstructorMarker) { + Companion_instance_315; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_302().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.id = 0; + else + $this.id = id; + if (0 === (seen1 & 2)) + $this.name = ''; + else + $this.name = name; + return $this; + } + } + class Companion_316 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.ViewEpisode.ReportEntry'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_303(); + } + } + class $serializer_303 { + constructor() { + $serializer_instance_303 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KViewEpisode.KReportEntry', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('key', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('value', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KReportEntry_11.new_com_bapis_bilibili_app_viewunite_common_KViewEpisode_KReportEntry_r0woxw_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_yuh3n_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.key === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.key); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.value === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.value); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_yuh3n_k$(encoder, value instanceof KReportEntry_11 ? value : THROW_CCE()); + } + } + class KReportEntry_11 { + constructor(key, value) { + Companion_instance_316; + key = key === VOID ? '' : key; + value = value === VOID ? '' : value; + this.key = key; + this.value = value; + } + get_key_18j28a_k$() { + return this.key; + } + get_value_j01efc_k$() { + return this.value; + } + component1_7eebsc_k$() { + return this.key; + } + component2_7eebsb_k$() { + return this.value; + } + copy_plwnsl_k$(key, value) { + return new KReportEntry_11(key, value); + } + copy(key, value, $super) { + key = key === VOID ? this.key : key; + value = value === VOID ? this.value : value; + return this.copy_plwnsl_k$(key, value); + } + toString() { + return 'KReportEntry(key=' + this.key + ', value=' + this.value + ')'; + } + hashCode() { + var result = getStringHashCode(this.key); + result = imul(result, 31) + getStringHashCode(this.value) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KReportEntry_11)) + return false; + var tmp0_other_with_cast = other instanceof KReportEntry_11 ? other : THROW_CCE(); + if (!(this.key === tmp0_other_with_cast.key)) + return false; + if (!(this.value === tmp0_other_with_cast.value)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KViewEpisode_KReportEntry_r0woxw_k$(seen1, key, value, serializationConstructorMarker) { + Companion_instance_316; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_303().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.key = ''; + else + $this.key = key; + if (0 === (seen1 & 2)) + $this.value = ''; + else + $this.value = value; + return $this; + } + } + class Companion_317 { + constructor() { + Companion_instance_317 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, new ArrayListSerializer($serializer_getInstance_321()), null, null, null, new ArrayListSerializer($serializer_getInstance_309()), null, null, null, null, new LinkedHashMapSerializer(StringSerializer_getInstance(), StringSerializer_getInstance())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.viewunite.common.ViewEpisode'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_304(); + } + } + class $serializer_304 { + constructor() { + $serializer_instance_304 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KViewEpisode', this, 42); + tmp0_serialDesc.addElement_5pzumi_k$('epId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('badge', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('badgeType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('badgeInfo', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('duration', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('status', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('aid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('movieTitle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('subtitle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('longTitle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + tmp0_serialDesc.addElement_5pzumi_k$('toastTitle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(13)); + tmp0_serialDesc.addElement_5pzumi_k$('cid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(14)); + tmp0_serialDesc.addElement_5pzumi_k$('from', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(15)); + tmp0_serialDesc.addElement_5pzumi_k$('shareUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(16)); + tmp0_serialDesc.addElement_5pzumi_k$('shareCopy', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(17)); + tmp0_serialDesc.addElement_5pzumi_k$('shortLink', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(18)); + tmp0_serialDesc.addElement_5pzumi_k$('vid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(19)); + tmp0_serialDesc.addElement_5pzumi_k$('releaseDate', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(20)); + tmp0_serialDesc.addElement_5pzumi_k$('dimension', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(21)); + tmp0_serialDesc.addElement_5pzumi_k$('rights', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(22)); + tmp0_serialDesc.addElement_5pzumi_k$('interaction', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(23)); + tmp0_serialDesc.addElement_5pzumi_k$('bvid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(24)); + tmp0_serialDesc.addElement_5pzumi_k$('archiveAttr', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(25)); + tmp0_serialDesc.addElement_5pzumi_k$('link', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(26)); + tmp0_serialDesc.addElement_5pzumi_k$('linkType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(27)); + tmp0_serialDesc.addElement_5pzumi_k$('bmid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(28)); + tmp0_serialDesc.addElement_5pzumi_k$('pubTime', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(29)); + tmp0_serialDesc.addElement_5pzumi_k$('pv', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(30)); + tmp0_serialDesc.addElement_5pzumi_k$('epIndex', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(31)); + tmp0_serialDesc.addElement_5pzumi_k$('sectionIndex', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(32)); + tmp0_serialDesc.addElement_5pzumi_k$('upInfos', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(33)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('upInfo', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(34)); + tmp0_serialDesc.addElement_5pzumi_k$('dialogType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(35)); + tmp0_serialDesc.addElement_5pzumi_k$('toastType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(36)); + tmp0_serialDesc.addElement_5pzumi_k$('multiViewEps', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(37)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('isSubView', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(38)); + tmp0_serialDesc.addElement_5pzumi_k$('isViewHide', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(39)); + tmp0_serialDesc.addElement_5pzumi_k$('jumpLink', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(40)); + tmp0_serialDesc.addElement_5pzumi_k$('statForUnity', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(41)); + tmp0_serialDesc.addElement_5pzumi_k$('report', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(42)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_317().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), get_nullable($serializer_getInstance_377()), IntSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_320()), get_nullable($serializer_getInstance_305()), get_nullable($serializer_getInstance_306()), StringSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), tmp0_cached[32], get_nullable($serializer_getInstance_321()), StringSerializer_getInstance(), StringSerializer_getInstance(), tmp0_cached[36], BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_387()), tmp0_cached[41]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_bitMask1 = 0; + var tmp5_local0 = new Long(0, 0); + var tmp6_local1 = null; + var tmp7_local2 = 0; + var tmp8_local3 = null; + var tmp9_local4 = 0; + var tmp10_local5 = 0; + var tmp11_local6 = null; + var tmp12_local7 = new Long(0, 0); + var tmp13_local8 = null; + var tmp14_local9 = null; + var tmp15_local10 = null; + var tmp16_local11 = null; + var tmp17_local12 = null; + var tmp18_local13 = new Long(0, 0); + var tmp19_local14 = null; + var tmp20_local15 = null; + var tmp21_local16 = null; + var tmp22_local17 = null; + var tmp23_local18 = null; + var tmp24_local19 = null; + var tmp25_local20 = null; + var tmp26_local21 = null; + var tmp27_local22 = null; + var tmp28_local23 = null; + var tmp29_local24 = 0; + var tmp30_local25 = null; + var tmp31_local26 = null; + var tmp32_local27 = null; + var tmp33_local28 = new Long(0, 0); + var tmp34_local29 = 0; + var tmp35_local30 = 0; + var tmp36_local31 = 0; + var tmp37_local32 = null; + var tmp38_local33 = null; + var tmp39_local34 = null; + var tmp40_local35 = null; + var tmp41_local36 = null; + var tmp42_local37 = false; + var tmp43_local38 = false; + var tmp44_local39 = null; + var tmp45_local40 = null; + var tmp46_local41 = null; + var tmp47_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp48_cached = Companion_getInstance_317().$childSerializers_1; + if (tmp47_input.decodeSequentially_xlblqy_k$()) { + tmp5_local0 = tmp47_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp6_local1 = tmp47_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp7_local2 = tmp47_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp8_local3 = tmp47_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_377(), tmp8_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp9_local4 = tmp47_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp10_local5 = tmp47_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp11_local6 = tmp47_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp12_local7 = tmp47_input.decodeLongElement_994anb_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp13_local8 = tmp47_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp14_local9 = tmp47_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp15_local10 = tmp47_input.decodeStringElement_3oenpg_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp16_local11 = tmp47_input.decodeStringElement_3oenpg_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + tmp17_local12 = tmp47_input.decodeStringElement_3oenpg_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + tmp18_local13 = tmp47_input.decodeLongElement_994anb_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + tmp19_local14 = tmp47_input.decodeStringElement_3oenpg_k$(tmp0_desc, 14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + tmp20_local15 = tmp47_input.decodeStringElement_3oenpg_k$(tmp0_desc, 15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + tmp21_local16 = tmp47_input.decodeStringElement_3oenpg_k$(tmp0_desc, 16); + tmp3_bitMask0 = tmp3_bitMask0 | 65536; + tmp22_local17 = tmp47_input.decodeStringElement_3oenpg_k$(tmp0_desc, 17); + tmp3_bitMask0 = tmp3_bitMask0 | 131072; + tmp23_local18 = tmp47_input.decodeStringElement_3oenpg_k$(tmp0_desc, 18); + tmp3_bitMask0 = tmp3_bitMask0 | 262144; + tmp24_local19 = tmp47_input.decodeStringElement_3oenpg_k$(tmp0_desc, 19); + tmp3_bitMask0 = tmp3_bitMask0 | 524288; + tmp25_local20 = tmp47_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 20, $serializer_getInstance_320(), tmp25_local20); + tmp3_bitMask0 = tmp3_bitMask0 | 1048576; + tmp26_local21 = tmp47_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 21, $serializer_getInstance_305(), tmp26_local21); + tmp3_bitMask0 = tmp3_bitMask0 | 2097152; + tmp27_local22 = tmp47_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 22, $serializer_getInstance_306(), tmp27_local22); + tmp3_bitMask0 = tmp3_bitMask0 | 4194304; + tmp28_local23 = tmp47_input.decodeStringElement_3oenpg_k$(tmp0_desc, 23); + tmp3_bitMask0 = tmp3_bitMask0 | 8388608; + tmp29_local24 = tmp47_input.decodeIntElement_941u6a_k$(tmp0_desc, 24); + tmp3_bitMask0 = tmp3_bitMask0 | 16777216; + tmp30_local25 = tmp47_input.decodeStringElement_3oenpg_k$(tmp0_desc, 25); + tmp3_bitMask0 = tmp3_bitMask0 | 33554432; + tmp31_local26 = tmp47_input.decodeStringElement_3oenpg_k$(tmp0_desc, 26); + tmp3_bitMask0 = tmp3_bitMask0 | 67108864; + tmp32_local27 = tmp47_input.decodeStringElement_3oenpg_k$(tmp0_desc, 27); + tmp3_bitMask0 = tmp3_bitMask0 | 134217728; + tmp33_local28 = tmp47_input.decodeLongElement_994anb_k$(tmp0_desc, 28); + tmp3_bitMask0 = tmp3_bitMask0 | 268435456; + tmp34_local29 = tmp47_input.decodeIntElement_941u6a_k$(tmp0_desc, 29); + tmp3_bitMask0 = tmp3_bitMask0 | 536870912; + tmp35_local30 = tmp47_input.decodeIntElement_941u6a_k$(tmp0_desc, 30); + tmp3_bitMask0 = tmp3_bitMask0 | 1073741824; + tmp36_local31 = tmp47_input.decodeIntElement_941u6a_k$(tmp0_desc, 31); + tmp3_bitMask0 = tmp3_bitMask0 | -2147483648; + tmp37_local32 = tmp47_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 32, tmp48_cached[32], tmp37_local32); + tmp4_bitMask1 = tmp4_bitMask1 | 1; + tmp38_local33 = tmp47_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 33, $serializer_getInstance_321(), tmp38_local33); + tmp4_bitMask1 = tmp4_bitMask1 | 2; + tmp39_local34 = tmp47_input.decodeStringElement_3oenpg_k$(tmp0_desc, 34); + tmp4_bitMask1 = tmp4_bitMask1 | 4; + tmp40_local35 = tmp47_input.decodeStringElement_3oenpg_k$(tmp0_desc, 35); + tmp4_bitMask1 = tmp4_bitMask1 | 8; + tmp41_local36 = tmp47_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 36, tmp48_cached[36], tmp41_local36); + tmp4_bitMask1 = tmp4_bitMask1 | 16; + tmp42_local37 = tmp47_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 37); + tmp4_bitMask1 = tmp4_bitMask1 | 32; + tmp43_local38 = tmp47_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 38); + tmp4_bitMask1 = tmp4_bitMask1 | 64; + tmp44_local39 = tmp47_input.decodeStringElement_3oenpg_k$(tmp0_desc, 39); + tmp4_bitMask1 = tmp4_bitMask1 | 128; + tmp45_local40 = tmp47_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 40, $serializer_getInstance_387(), tmp45_local40); + tmp4_bitMask1 = tmp4_bitMask1 | 256; + tmp46_local41 = tmp47_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 41, tmp48_cached[41], tmp46_local41); + tmp4_bitMask1 = tmp4_bitMask1 | 512; + } else + while (tmp1_flag) { + tmp2_index = tmp47_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp5_local0 = tmp47_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp6_local1 = tmp47_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp7_local2 = tmp47_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp8_local3 = tmp47_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_377(), tmp8_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp9_local4 = tmp47_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp10_local5 = tmp47_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp11_local6 = tmp47_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp12_local7 = tmp47_input.decodeLongElement_994anb_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp13_local8 = tmp47_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp14_local9 = tmp47_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp15_local10 = tmp47_input.decodeStringElement_3oenpg_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp16_local11 = tmp47_input.decodeStringElement_3oenpg_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + case 12: + tmp17_local12 = tmp47_input.decodeStringElement_3oenpg_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + break; + case 13: + tmp18_local13 = tmp47_input.decodeLongElement_994anb_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + break; + case 14: + tmp19_local14 = tmp47_input.decodeStringElement_3oenpg_k$(tmp0_desc, 14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + break; + case 15: + tmp20_local15 = tmp47_input.decodeStringElement_3oenpg_k$(tmp0_desc, 15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + break; + case 16: + tmp21_local16 = tmp47_input.decodeStringElement_3oenpg_k$(tmp0_desc, 16); + tmp3_bitMask0 = tmp3_bitMask0 | 65536; + break; + case 17: + tmp22_local17 = tmp47_input.decodeStringElement_3oenpg_k$(tmp0_desc, 17); + tmp3_bitMask0 = tmp3_bitMask0 | 131072; + break; + case 18: + tmp23_local18 = tmp47_input.decodeStringElement_3oenpg_k$(tmp0_desc, 18); + tmp3_bitMask0 = tmp3_bitMask0 | 262144; + break; + case 19: + tmp24_local19 = tmp47_input.decodeStringElement_3oenpg_k$(tmp0_desc, 19); + tmp3_bitMask0 = tmp3_bitMask0 | 524288; + break; + case 20: + tmp25_local20 = tmp47_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 20, $serializer_getInstance_320(), tmp25_local20); + tmp3_bitMask0 = tmp3_bitMask0 | 1048576; + break; + case 21: + tmp26_local21 = tmp47_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 21, $serializer_getInstance_305(), tmp26_local21); + tmp3_bitMask0 = tmp3_bitMask0 | 2097152; + break; + case 22: + tmp27_local22 = tmp47_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 22, $serializer_getInstance_306(), tmp27_local22); + tmp3_bitMask0 = tmp3_bitMask0 | 4194304; + break; + case 23: + tmp28_local23 = tmp47_input.decodeStringElement_3oenpg_k$(tmp0_desc, 23); + tmp3_bitMask0 = tmp3_bitMask0 | 8388608; + break; + case 24: + tmp29_local24 = tmp47_input.decodeIntElement_941u6a_k$(tmp0_desc, 24); + tmp3_bitMask0 = tmp3_bitMask0 | 16777216; + break; + case 25: + tmp30_local25 = tmp47_input.decodeStringElement_3oenpg_k$(tmp0_desc, 25); + tmp3_bitMask0 = tmp3_bitMask0 | 33554432; + break; + case 26: + tmp31_local26 = tmp47_input.decodeStringElement_3oenpg_k$(tmp0_desc, 26); + tmp3_bitMask0 = tmp3_bitMask0 | 67108864; + break; + case 27: + tmp32_local27 = tmp47_input.decodeStringElement_3oenpg_k$(tmp0_desc, 27); + tmp3_bitMask0 = tmp3_bitMask0 | 134217728; + break; + case 28: + tmp33_local28 = tmp47_input.decodeLongElement_994anb_k$(tmp0_desc, 28); + tmp3_bitMask0 = tmp3_bitMask0 | 268435456; + break; + case 29: + tmp34_local29 = tmp47_input.decodeIntElement_941u6a_k$(tmp0_desc, 29); + tmp3_bitMask0 = tmp3_bitMask0 | 536870912; + break; + case 30: + tmp35_local30 = tmp47_input.decodeIntElement_941u6a_k$(tmp0_desc, 30); + tmp3_bitMask0 = tmp3_bitMask0 | 1073741824; + break; + case 31: + tmp36_local31 = tmp47_input.decodeIntElement_941u6a_k$(tmp0_desc, 31); + tmp3_bitMask0 = tmp3_bitMask0 | -2147483648; + break; + case 32: + tmp37_local32 = tmp47_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 32, tmp48_cached[32], tmp37_local32); + tmp4_bitMask1 = tmp4_bitMask1 | 1; + break; + case 33: + tmp38_local33 = tmp47_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 33, $serializer_getInstance_321(), tmp38_local33); + tmp4_bitMask1 = tmp4_bitMask1 | 2; + break; + case 34: + tmp39_local34 = tmp47_input.decodeStringElement_3oenpg_k$(tmp0_desc, 34); + tmp4_bitMask1 = tmp4_bitMask1 | 4; + break; + case 35: + tmp40_local35 = tmp47_input.decodeStringElement_3oenpg_k$(tmp0_desc, 35); + tmp4_bitMask1 = tmp4_bitMask1 | 8; + break; + case 36: + tmp41_local36 = tmp47_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 36, tmp48_cached[36], tmp41_local36); + tmp4_bitMask1 = tmp4_bitMask1 | 16; + break; + case 37: + tmp42_local37 = tmp47_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 37); + tmp4_bitMask1 = tmp4_bitMask1 | 32; + break; + case 38: + tmp43_local38 = tmp47_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 38); + tmp4_bitMask1 = tmp4_bitMask1 | 64; + break; + case 39: + tmp44_local39 = tmp47_input.decodeStringElement_3oenpg_k$(tmp0_desc, 39); + tmp4_bitMask1 = tmp4_bitMask1 | 128; + break; + case 40: + tmp45_local40 = tmp47_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 40, $serializer_getInstance_387(), tmp45_local40); + tmp4_bitMask1 = tmp4_bitMask1 | 256; + break; + case 41: + tmp46_local41 = tmp47_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 41, tmp48_cached[41], tmp46_local41); + tmp4_bitMask1 = tmp4_bitMask1 | 512; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp47_input.endStructure_1xqz0n_k$(tmp0_desc); + return KViewEpisode.new_com_bapis_bilibili_app_viewunite_common_KViewEpisode_xe8ib4_k$(tmp3_bitMask0, tmp4_bitMask1, tmp5_local0, tmp6_local1, tmp7_local2, tmp8_local3, tmp9_local4, tmp10_local5, tmp11_local6, tmp12_local7, tmp13_local8, tmp14_local9, tmp15_local10, tmp16_local11, tmp17_local12, tmp18_local13, tmp19_local14, tmp20_local15, tmp21_local16, tmp22_local17, tmp23_local18, tmp24_local19, tmp25_local20, tmp26_local21, tmp27_local22, tmp28_local23, tmp29_local24, tmp30_local25, tmp31_local26, tmp32_local27, tmp33_local28, tmp34_local29, tmp35_local30, tmp36_local31, tmp37_local32, tmp38_local33, tmp39_local34, tmp40_local35, tmp41_local36, tmp42_local37, tmp43_local38, tmp44_local39, tmp45_local40, tmp46_local41, null); + } + serialize_bmkoso_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_317().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.epId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.epId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.badge === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.badge); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.badgeType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.badgeType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.badgeInfo == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_377(), value.badgeInfo); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.duration === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 4, value.duration); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.status === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 5, value.status); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.cover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !value.aid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 7, value.aid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 8, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.movieTitle === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 9, value.movieTitle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.subtitle === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 10, value.subtitle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.longTitle === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 11, value.longTitle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !(value.toastTitle === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 12, value.toastTitle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 13) ? true : !value.cid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 13, value.cid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 14) ? true : !(value.from === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 14, value.from); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 15) ? true : !(value.shareUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 15, value.shareUrl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 16) ? true : !(value.shareCopy === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 16, value.shareCopy); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 17) ? true : !(value.shortLink === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 17, value.shortLink); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 18) ? true : !(value.vid === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 18, value.vid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 19) ? true : !(value.releaseDate === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 19, value.releaseDate); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 20) ? true : !(value.dimension == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 20, $serializer_getInstance_320(), value.dimension); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 21) ? true : !(value.rights == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 21, $serializer_getInstance_305(), value.rights); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 22) ? true : !(value.interaction == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 22, $serializer_getInstance_306(), value.interaction); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 23) ? true : !(value.bvid === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 23, value.bvid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 24) ? true : !(value.archiveAttr === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 24, value.archiveAttr); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 25) ? true : !(value.link === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 25, value.link); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 26) ? true : !(value.linkType === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 26, value.linkType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 27) ? true : !(value.bmid === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 27, value.bmid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 28) ? true : !value.pubTime.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 28, value.pubTime); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 29) ? true : !(value.pv === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 29, value.pv); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 30) ? true : !(value.epIndex === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 30, value.epIndex); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 31) ? true : !(value.sectionIndex === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 31, value.sectionIndex); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 32) ? true : !equals(value.upInfos, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 32, tmp2_cached[32], value.upInfos); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 33) ? true : !(value.upInfo == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 33, $serializer_getInstance_321(), value.upInfo); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 34) ? true : !(value.dialogType === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 34, value.dialogType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 35) ? true : !(value.toastType === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 35, value.toastType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 36) ? true : !equals(value.multiViewEps, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 36, tmp2_cached[36], value.multiViewEps); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 37) ? true : !(value.isSubView === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 37, value.isSubView); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 38) ? true : !(value.isViewHide === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 38, value.isViewHide); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 39) ? true : !(value.jumpLink === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 39, value.jumpLink); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 40) ? true : !(value.statForUnity == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 40, $serializer_getInstance_387(), value.statForUnity); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 41) ? true : !equals(value.report, emptyMap())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 41, tmp2_cached[41], value.report); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_bmkoso_k$(encoder, value instanceof KViewEpisode ? value : THROW_CCE()); + } + } + class KViewEpisode { + constructor(epId, badge, badgeType, badgeInfo, duration, status, cover, aid, title, movieTitle, subtitle, longTitle, toastTitle, cid, from, shareUrl, shareCopy, shortLink, vid, releaseDate, dimension, rights, interaction, bvid, archiveAttr, link, linkType, bmid, pubTime, pv, epIndex, sectionIndex, upInfos, upInfo, dialogType, toastType, multiViewEps, isSubView, isViewHide, jumpLink, statForUnity, report) { + Companion_getInstance_317(); + epId = epId === VOID ? new Long(0, 0) : epId; + badge = badge === VOID ? '' : badge; + badgeType = badgeType === VOID ? 0 : badgeType; + badgeInfo = badgeInfo === VOID ? null : badgeInfo; + duration = duration === VOID ? 0 : duration; + status = status === VOID ? 0 : status; + cover = cover === VOID ? '' : cover; + aid = aid === VOID ? new Long(0, 0) : aid; + title = title === VOID ? '' : title; + movieTitle = movieTitle === VOID ? '' : movieTitle; + subtitle = subtitle === VOID ? '' : subtitle; + longTitle = longTitle === VOID ? '' : longTitle; + toastTitle = toastTitle === VOID ? '' : toastTitle; + cid = cid === VOID ? new Long(0, 0) : cid; + from = from === VOID ? '' : from; + shareUrl = shareUrl === VOID ? '' : shareUrl; + shareCopy = shareCopy === VOID ? '' : shareCopy; + shortLink = shortLink === VOID ? '' : shortLink; + vid = vid === VOID ? '' : vid; + releaseDate = releaseDate === VOID ? '' : releaseDate; + dimension = dimension === VOID ? null : dimension; + rights = rights === VOID ? null : rights; + interaction = interaction === VOID ? null : interaction; + bvid = bvid === VOID ? '' : bvid; + archiveAttr = archiveAttr === VOID ? 0 : archiveAttr; + link = link === VOID ? '' : link; + linkType = linkType === VOID ? '' : linkType; + bmid = bmid === VOID ? '' : bmid; + pubTime = pubTime === VOID ? new Long(0, 0) : pubTime; + pv = pv === VOID ? 0 : pv; + epIndex = epIndex === VOID ? 0 : epIndex; + sectionIndex = sectionIndex === VOID ? 0 : sectionIndex; + upInfos = upInfos === VOID ? emptyList() : upInfos; + upInfo = upInfo === VOID ? null : upInfo; + dialogType = dialogType === VOID ? '' : dialogType; + toastType = toastType === VOID ? '' : toastType; + multiViewEps = multiViewEps === VOID ? emptyList() : multiViewEps; + isSubView = isSubView === VOID ? false : isSubView; + isViewHide = isViewHide === VOID ? false : isViewHide; + jumpLink = jumpLink === VOID ? '' : jumpLink; + statForUnity = statForUnity === VOID ? null : statForUnity; + report = report === VOID ? emptyMap() : report; + this.epId = epId; + this.badge = badge; + this.badgeType = badgeType; + this.badgeInfo = badgeInfo; + this.duration = duration; + this.status = status; + this.cover = cover; + this.aid = aid; + this.title = title; + this.movieTitle = movieTitle; + this.subtitle = subtitle; + this.longTitle = longTitle; + this.toastTitle = toastTitle; + this.cid = cid; + this.from = from; + this.shareUrl = shareUrl; + this.shareCopy = shareCopy; + this.shortLink = shortLink; + this.vid = vid; + this.releaseDate = releaseDate; + this.dimension = dimension; + this.rights = rights; + this.interaction = interaction; + this.bvid = bvid; + this.archiveAttr = archiveAttr; + this.link = link; + this.linkType = linkType; + this.bmid = bmid; + this.pubTime = pubTime; + this.pv = pv; + this.epIndex = epIndex; + this.sectionIndex = sectionIndex; + this.upInfos = upInfos; + this.upInfo = upInfo; + this.dialogType = dialogType; + this.toastType = toastType; + this.multiViewEps = multiViewEps; + this.isSubView = isSubView; + this.isViewHide = isViewHide; + this.jumpLink = jumpLink; + this.statForUnity = statForUnity; + this.report = report; + } + get_epId_woli0f_k$() { + return this.epId; + } + get_badge_ip1cai_k$() { + return this.badge; + } + get_badgeType_rkpkj0_k$() { + return this.badgeType; + } + get_badgeInfo_rkwtrs_k$() { + return this.badgeInfo; + } + get_duration_6a6kpp_k$() { + return this.duration; + } + get_status_jnf6d7_k$() { + return this.status; + } + get_cover_ipug0e_k$() { + return this.cover; + } + get_aid_18j9kd_k$() { + return this.aid; + } + get_title_iz32un_k$() { + return this.title; + } + get_movieTitle_kfeykx_k$() { + return this.movieTitle; + } + get_subtitle_55eoyp_k$() { + return this.subtitle; + } + get_longTitle_agkbkj_k$() { + return this.longTitle; + } + get_toastTitle_rjd98m_k$() { + return this.toastTitle; + } + get_cid_18j82z_k$() { + return this.cid; + } + get_from_wom7eb_k$() { + return this.from; + } + get_shareUrl_qxcrmh_k$() { + return this.shareUrl; + } + get_shareCopy_hnof5h_k$() { + return this.shareCopy; + } + get_shortLink_p122oj_k$() { + return this.shortLink; + } + get_vid_18itzs_k$() { + return this.vid; + } + get_releaseDate_hexuy4_k$() { + return this.releaseDate; + } + get_dimension_9lf48z_k$() { + return this.dimension; + } + get_rights_j0feg0_k$() { + return this.rights; + } + get_interaction_qmz8t3_k$() { + return this.interaction; + } + get_bvid_wojq9k_k$() { + return this.bvid; + } + get_archiveAttr_vb86lm_k$() { + return this.archiveAttr; + } + get_link_wopumb_k$() { + return this.link; + } + get_linkType_c1xqsj_k$() { + return this.linkType; + } + get_bmid_wojjlb_k$() { + return this.bmid; + } + get_pubTime_2n02nz_k$() { + return this.pubTime; + } + get_pv_kntnqp_k$() { + return this.pv; + } + get_epIndex_ornk76_k$() { + return this.epIndex; + } + get_sectionIndex_eynos6_k$() { + return this.sectionIndex; + } + get_upInfos_30n4u7_k$() { + return this.upInfos; + } + get_upInfo_kivsaa_k$() { + return this.upInfo; + } + get_dialogType_ry8yzv_k$() { + return this.dialogType; + } + get_toastType_cuyd08_k$() { + return this.toastType; + } + get_multiViewEps_j3ft9p_k$() { + return this.multiViewEps; + } + get_isSubView_vz3t4e_k$() { + return this.isSubView; + } + get_isViewHide_dis5uu_k$() { + return this.isViewHide; + } + get_jumpLink_z00kk1_k$() { + return this.jumpLink; + } + get_statForUnity_af1amv_k$() { + return this.statForUnity; + } + get_report_iye43h_k$() { + return this.report; + } + component1_7eebsc_k$() { + return this.epId; + } + component2_7eebsb_k$() { + return this.badge; + } + component3_7eebsa_k$() { + return this.badgeType; + } + component4_7eebs9_k$() { + return this.badgeInfo; + } + component5_7eebs8_k$() { + return this.duration; + } + component6_7eebs7_k$() { + return this.status; + } + component7_7eebs6_k$() { + return this.cover; + } + component8_7eebs5_k$() { + return this.aid; + } + component9_7eebs4_k$() { + return this.title; + } + component10_gazzfo_k$() { + return this.movieTitle; + } + component11_gazzfn_k$() { + return this.subtitle; + } + component12_gazzfm_k$() { + return this.longTitle; + } + component13_gazzfl_k$() { + return this.toastTitle; + } + component14_gazzfk_k$() { + return this.cid; + } + component15_gazzfj_k$() { + return this.from; + } + component16_gazzfi_k$() { + return this.shareUrl; + } + component17_gazzfh_k$() { + return this.shareCopy; + } + component18_gazzfg_k$() { + return this.shortLink; + } + component19_gazzff_k$() { + return this.vid; + } + component20_gazzet_k$() { + return this.releaseDate; + } + component21_gazzes_k$() { + return this.dimension; + } + component22_gazzer_k$() { + return this.rights; + } + component23_gazzeq_k$() { + return this.interaction; + } + component24_gazzep_k$() { + return this.bvid; + } + component25_gazzeo_k$() { + return this.archiveAttr; + } + component26_gazzen_k$() { + return this.link; + } + component27_gazzem_k$() { + return this.linkType; + } + component28_gazzel_k$() { + return this.bmid; + } + component29_gazzek_k$() { + return this.pubTime; + } + component30_gazzdy_k$() { + return this.pv; + } + component31_gazzdx_k$() { + return this.epIndex; + } + component32_gazzdw_k$() { + return this.sectionIndex; + } + component33_gazzdv_k$() { + return this.upInfos; + } + component34_gazzdu_k$() { + return this.upInfo; + } + component35_gazzdt_k$() { + return this.dialogType; + } + component36_gazzds_k$() { + return this.toastType; + } + component37_gazzdr_k$() { + return this.multiViewEps; + } + component38_gazzdq_k$() { + return this.isSubView; + } + component39_gazzdp_k$() { + return this.isViewHide; + } + component40_gazzd3_k$() { + return this.jumpLink; + } + component41_gazzd2_k$() { + return this.statForUnity; + } + component42_gazzd1_k$() { + return this.report; + } + copy_i6xy66_k$(epId, badge, badgeType, badgeInfo, duration, status, cover, aid, title, movieTitle, subtitle, longTitle, toastTitle, cid, from, shareUrl, shareCopy, shortLink, vid, releaseDate, dimension, rights, interaction, bvid, archiveAttr, link, linkType, bmid, pubTime, pv, epIndex, sectionIndex, upInfos, upInfo, dialogType, toastType, multiViewEps, isSubView, isViewHide, jumpLink, statForUnity, report) { + return new KViewEpisode(epId, badge, badgeType, badgeInfo, duration, status, cover, aid, title, movieTitle, subtitle, longTitle, toastTitle, cid, from, shareUrl, shareCopy, shortLink, vid, releaseDate, dimension, rights, interaction, bvid, archiveAttr, link, linkType, bmid, pubTime, pv, epIndex, sectionIndex, upInfos, upInfo, dialogType, toastType, multiViewEps, isSubView, isViewHide, jumpLink, statForUnity, report); + } + copy(epId, badge, badgeType, badgeInfo, duration, status, cover, aid, title, movieTitle, subtitle, longTitle, toastTitle, cid, from, shareUrl, shareCopy, shortLink, vid, releaseDate, dimension, rights, interaction, bvid, archiveAttr, link, linkType, bmid, pubTime, pv, epIndex, sectionIndex, upInfos, upInfo, dialogType, toastType, multiViewEps, isSubView, isViewHide, jumpLink, statForUnity, report, $super) { + epId = epId === VOID ? this.epId : epId; + badge = badge === VOID ? this.badge : badge; + badgeType = badgeType === VOID ? this.badgeType : badgeType; + badgeInfo = badgeInfo === VOID ? this.badgeInfo : badgeInfo; + duration = duration === VOID ? this.duration : duration; + status = status === VOID ? this.status : status; + cover = cover === VOID ? this.cover : cover; + aid = aid === VOID ? this.aid : aid; + title = title === VOID ? this.title : title; + movieTitle = movieTitle === VOID ? this.movieTitle : movieTitle; + subtitle = subtitle === VOID ? this.subtitle : subtitle; + longTitle = longTitle === VOID ? this.longTitle : longTitle; + toastTitle = toastTitle === VOID ? this.toastTitle : toastTitle; + cid = cid === VOID ? this.cid : cid; + from = from === VOID ? this.from : from; + shareUrl = shareUrl === VOID ? this.shareUrl : shareUrl; + shareCopy = shareCopy === VOID ? this.shareCopy : shareCopy; + shortLink = shortLink === VOID ? this.shortLink : shortLink; + vid = vid === VOID ? this.vid : vid; + releaseDate = releaseDate === VOID ? this.releaseDate : releaseDate; + dimension = dimension === VOID ? this.dimension : dimension; + rights = rights === VOID ? this.rights : rights; + interaction = interaction === VOID ? this.interaction : interaction; + bvid = bvid === VOID ? this.bvid : bvid; + archiveAttr = archiveAttr === VOID ? this.archiveAttr : archiveAttr; + link = link === VOID ? this.link : link; + linkType = linkType === VOID ? this.linkType : linkType; + bmid = bmid === VOID ? this.bmid : bmid; + pubTime = pubTime === VOID ? this.pubTime : pubTime; + pv = pv === VOID ? this.pv : pv; + epIndex = epIndex === VOID ? this.epIndex : epIndex; + sectionIndex = sectionIndex === VOID ? this.sectionIndex : sectionIndex; + upInfos = upInfos === VOID ? this.upInfos : upInfos; + upInfo = upInfo === VOID ? this.upInfo : upInfo; + dialogType = dialogType === VOID ? this.dialogType : dialogType; + toastType = toastType === VOID ? this.toastType : toastType; + multiViewEps = multiViewEps === VOID ? this.multiViewEps : multiViewEps; + isSubView = isSubView === VOID ? this.isSubView : isSubView; + isViewHide = isViewHide === VOID ? this.isViewHide : isViewHide; + jumpLink = jumpLink === VOID ? this.jumpLink : jumpLink; + statForUnity = statForUnity === VOID ? this.statForUnity : statForUnity; + report = report === VOID ? this.report : report; + return this.copy_i6xy66_k$(epId, badge, badgeType, badgeInfo, duration, status, cover, aid, title, movieTitle, subtitle, longTitle, toastTitle, cid, from, shareUrl, shareCopy, shortLink, vid, releaseDate, dimension, rights, interaction, bvid, archiveAttr, link, linkType, bmid, pubTime, pv, epIndex, sectionIndex, upInfos, upInfo, dialogType, toastType, multiViewEps, isSubView, isViewHide, jumpLink, statForUnity, report); + } + toString() { + return 'KViewEpisode(epId=' + this.epId.toString() + ', badge=' + this.badge + ', badgeType=' + this.badgeType + ', badgeInfo=' + this.badgeInfo + ', duration=' + this.duration + ', status=' + this.status + ', cover=' + this.cover + ', aid=' + this.aid.toString() + ', title=' + this.title + ', movieTitle=' + this.movieTitle + ', subtitle=' + this.subtitle + ', longTitle=' + this.longTitle + ', toastTitle=' + this.toastTitle + ', cid=' + this.cid.toString() + ', from=' + this.from + ', shareUrl=' + this.shareUrl + ', shareCopy=' + this.shareCopy + ', shortLink=' + this.shortLink + ', vid=' + this.vid + ', releaseDate=' + this.releaseDate + ', dimension=' + this.dimension + ', rights=' + this.rights + ', interaction=' + this.interaction + ', bvid=' + this.bvid + ', archiveAttr=' + this.archiveAttr + ', link=' + this.link + ', linkType=' + this.linkType + ', bmid=' + this.bmid + ', pubTime=' + this.pubTime.toString() + ', pv=' + this.pv + ', epIndex=' + this.epIndex + ', sectionIndex=' + this.sectionIndex + ', upInfos=' + this.upInfos + ', upInfo=' + this.upInfo + ', dialogType=' + this.dialogType + ', toastType=' + this.toastType + ', multiViewEps=' + this.multiViewEps + ', isSubView=' + this.isSubView + ', isViewHide=' + this.isViewHide + ', jumpLink=' + this.jumpLink + ', statForUnity=' + this.statForUnity + ', report=' + this.report + ')'; + } + hashCode() { + var result = this.epId.hashCode(); + result = imul(result, 31) + getStringHashCode(this.badge) | 0; + result = imul(result, 31) + this.badgeType | 0; + result = imul(result, 31) + (this.badgeInfo == null ? 0 : this.badgeInfo.hashCode()) | 0; + result = imul(result, 31) + this.duration | 0; + result = imul(result, 31) + this.status | 0; + result = imul(result, 31) + getStringHashCode(this.cover) | 0; + result = imul(result, 31) + this.aid.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.title) | 0; + result = imul(result, 31) + getStringHashCode(this.movieTitle) | 0; + result = imul(result, 31) + getStringHashCode(this.subtitle) | 0; + result = imul(result, 31) + getStringHashCode(this.longTitle) | 0; + result = imul(result, 31) + getStringHashCode(this.toastTitle) | 0; + result = imul(result, 31) + this.cid.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.from) | 0; + result = imul(result, 31) + getStringHashCode(this.shareUrl) | 0; + result = imul(result, 31) + getStringHashCode(this.shareCopy) | 0; + result = imul(result, 31) + getStringHashCode(this.shortLink) | 0; + result = imul(result, 31) + getStringHashCode(this.vid) | 0; + result = imul(result, 31) + getStringHashCode(this.releaseDate) | 0; + result = imul(result, 31) + (this.dimension == null ? 0 : this.dimension.hashCode()) | 0; + result = imul(result, 31) + (this.rights == null ? 0 : this.rights.hashCode()) | 0; + result = imul(result, 31) + (this.interaction == null ? 0 : this.interaction.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.bvid) | 0; + result = imul(result, 31) + this.archiveAttr | 0; + result = imul(result, 31) + getStringHashCode(this.link) | 0; + result = imul(result, 31) + getStringHashCode(this.linkType) | 0; + result = imul(result, 31) + getStringHashCode(this.bmid) | 0; + result = imul(result, 31) + this.pubTime.hashCode() | 0; + result = imul(result, 31) + this.pv | 0; + result = imul(result, 31) + this.epIndex | 0; + result = imul(result, 31) + this.sectionIndex | 0; + result = imul(result, 31) + hashCode(this.upInfos) | 0; + result = imul(result, 31) + (this.upInfo == null ? 0 : this.upInfo.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.dialogType) | 0; + result = imul(result, 31) + getStringHashCode(this.toastType) | 0; + result = imul(result, 31) + hashCode(this.multiViewEps) | 0; + result = imul(result, 31) + getBooleanHashCode(this.isSubView) | 0; + result = imul(result, 31) + getBooleanHashCode(this.isViewHide) | 0; + result = imul(result, 31) + getStringHashCode(this.jumpLink) | 0; + result = imul(result, 31) + (this.statForUnity == null ? 0 : this.statForUnity.hashCode()) | 0; + result = imul(result, 31) + hashCode(this.report) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KViewEpisode)) + return false; + var tmp0_other_with_cast = other instanceof KViewEpisode ? other : THROW_CCE(); + if (!this.epId.equals(tmp0_other_with_cast.epId)) + return false; + if (!(this.badge === tmp0_other_with_cast.badge)) + return false; + if (!(this.badgeType === tmp0_other_with_cast.badgeType)) + return false; + if (!equals(this.badgeInfo, tmp0_other_with_cast.badgeInfo)) + return false; + if (!(this.duration === tmp0_other_with_cast.duration)) + return false; + if (!(this.status === tmp0_other_with_cast.status)) + return false; + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + if (!this.aid.equals(tmp0_other_with_cast.aid)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.movieTitle === tmp0_other_with_cast.movieTitle)) + return false; + if (!(this.subtitle === tmp0_other_with_cast.subtitle)) + return false; + if (!(this.longTitle === tmp0_other_with_cast.longTitle)) + return false; + if (!(this.toastTitle === tmp0_other_with_cast.toastTitle)) + return false; + if (!this.cid.equals(tmp0_other_with_cast.cid)) + return false; + if (!(this.from === tmp0_other_with_cast.from)) + return false; + if (!(this.shareUrl === tmp0_other_with_cast.shareUrl)) + return false; + if (!(this.shareCopy === tmp0_other_with_cast.shareCopy)) + return false; + if (!(this.shortLink === tmp0_other_with_cast.shortLink)) + return false; + if (!(this.vid === tmp0_other_with_cast.vid)) + return false; + if (!(this.releaseDate === tmp0_other_with_cast.releaseDate)) + return false; + if (!equals(this.dimension, tmp0_other_with_cast.dimension)) + return false; + if (!equals(this.rights, tmp0_other_with_cast.rights)) + return false; + if (!equals(this.interaction, tmp0_other_with_cast.interaction)) + return false; + if (!(this.bvid === tmp0_other_with_cast.bvid)) + return false; + if (!(this.archiveAttr === tmp0_other_with_cast.archiveAttr)) + return false; + if (!(this.link === tmp0_other_with_cast.link)) + return false; + if (!(this.linkType === tmp0_other_with_cast.linkType)) + return false; + if (!(this.bmid === tmp0_other_with_cast.bmid)) + return false; + if (!this.pubTime.equals(tmp0_other_with_cast.pubTime)) + return false; + if (!(this.pv === tmp0_other_with_cast.pv)) + return false; + if (!(this.epIndex === tmp0_other_with_cast.epIndex)) + return false; + if (!(this.sectionIndex === tmp0_other_with_cast.sectionIndex)) + return false; + if (!equals(this.upInfos, tmp0_other_with_cast.upInfos)) + return false; + if (!equals(this.upInfo, tmp0_other_with_cast.upInfo)) + return false; + if (!(this.dialogType === tmp0_other_with_cast.dialogType)) + return false; + if (!(this.toastType === tmp0_other_with_cast.toastType)) + return false; + if (!equals(this.multiViewEps, tmp0_other_with_cast.multiViewEps)) + return false; + if (!(this.isSubView === tmp0_other_with_cast.isSubView)) + return false; + if (!(this.isViewHide === tmp0_other_with_cast.isViewHide)) + return false; + if (!(this.jumpLink === tmp0_other_with_cast.jumpLink)) + return false; + if (!equals(this.statForUnity, tmp0_other_with_cast.statForUnity)) + return false; + if (!equals(this.report, tmp0_other_with_cast.report)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KViewEpisode_xe8ib4_k$(seen1, seen2, epId, badge, badgeType, badgeInfo, duration, status, cover, aid, title, movieTitle, subtitle, longTitle, toastTitle, cid, from, shareUrl, shareCopy, shortLink, vid, releaseDate, dimension, rights, interaction, bvid, archiveAttr, link, linkType, bmid, pubTime, pv, epIndex, sectionIndex, upInfos, upInfo, dialogType, toastType, multiViewEps, isSubView, isViewHide, jumpLink, statForUnity, report, serializationConstructorMarker) { + Companion_getInstance_317(); + if (!!(!(0 === (0 & seen1)) | !(0 === (0 & seen2)))) { + var tmp$ret$0; + // Inline function 'kotlin.intArrayOf' call + var elements = new Int32Array([seen1, seen2]); + tmp$ret$0 = elements; + var tmp = tmp$ret$0; + var tmp$ret$1; + // Inline function 'kotlin.intArrayOf' call + var elements_0 = new Int32Array([0, 0]); + tmp$ret$1 = elements_0; + throwArrayMissingFieldException(tmp, tmp$ret$1, $serializer_getInstance_304().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.epId = new Long(0, 0); + else + $this.epId = epId; + if (0 === (seen1 & 2)) + $this.badge = ''; + else + $this.badge = badge; + if (0 === (seen1 & 4)) + $this.badgeType = 0; + else + $this.badgeType = badgeType; + if (0 === (seen1 & 8)) + $this.badgeInfo = null; + else + $this.badgeInfo = badgeInfo; + if (0 === (seen1 & 16)) + $this.duration = 0; + else + $this.duration = duration; + if (0 === (seen1 & 32)) + $this.status = 0; + else + $this.status = status; + if (0 === (seen1 & 64)) + $this.cover = ''; + else + $this.cover = cover; + if (0 === (seen1 & 128)) + $this.aid = new Long(0, 0); + else + $this.aid = aid; + if (0 === (seen1 & 256)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 512)) + $this.movieTitle = ''; + else + $this.movieTitle = movieTitle; + if (0 === (seen1 & 1024)) + $this.subtitle = ''; + else + $this.subtitle = subtitle; + if (0 === (seen1 & 2048)) + $this.longTitle = ''; + else + $this.longTitle = longTitle; + if (0 === (seen1 & 4096)) + $this.toastTitle = ''; + else + $this.toastTitle = toastTitle; + if (0 === (seen1 & 8192)) + $this.cid = new Long(0, 0); + else + $this.cid = cid; + if (0 === (seen1 & 16384)) + $this.from = ''; + else + $this.from = from; + if (0 === (seen1 & 32768)) + $this.shareUrl = ''; + else + $this.shareUrl = shareUrl; + if (0 === (seen1 & 65536)) + $this.shareCopy = ''; + else + $this.shareCopy = shareCopy; + if (0 === (seen1 & 131072)) + $this.shortLink = ''; + else + $this.shortLink = shortLink; + if (0 === (seen1 & 262144)) + $this.vid = ''; + else + $this.vid = vid; + if (0 === (seen1 & 524288)) + $this.releaseDate = ''; + else + $this.releaseDate = releaseDate; + if (0 === (seen1 & 1048576)) + $this.dimension = null; + else + $this.dimension = dimension; + if (0 === (seen1 & 2097152)) + $this.rights = null; + else + $this.rights = rights; + if (0 === (seen1 & 4194304)) + $this.interaction = null; + else + $this.interaction = interaction; + if (0 === (seen1 & 8388608)) + $this.bvid = ''; + else + $this.bvid = bvid; + if (0 === (seen1 & 16777216)) + $this.archiveAttr = 0; + else + $this.archiveAttr = archiveAttr; + if (0 === (seen1 & 33554432)) + $this.link = ''; + else + $this.link = link; + if (0 === (seen1 & 67108864)) + $this.linkType = ''; + else + $this.linkType = linkType; + if (0 === (seen1 & 134217728)) + $this.bmid = ''; + else + $this.bmid = bmid; + if (0 === (seen1 & 268435456)) + $this.pubTime = new Long(0, 0); + else + $this.pubTime = pubTime; + if (0 === (seen1 & 536870912)) + $this.pv = 0; + else + $this.pv = pv; + if (0 === (seen1 & 1073741824)) + $this.epIndex = 0; + else + $this.epIndex = epIndex; + if (0 === (seen1 & -2147483648)) + $this.sectionIndex = 0; + else + $this.sectionIndex = sectionIndex; + if (0 === (seen2 & 1)) + $this.upInfos = emptyList(); + else + $this.upInfos = upInfos; + if (0 === (seen2 & 2)) + $this.upInfo = null; + else + $this.upInfo = upInfo; + if (0 === (seen2 & 4)) + $this.dialogType = ''; + else + $this.dialogType = dialogType; + if (0 === (seen2 & 8)) + $this.toastType = ''; + else + $this.toastType = toastType; + if (0 === (seen2 & 16)) + $this.multiViewEps = emptyList(); + else + $this.multiViewEps = multiViewEps; + if (0 === (seen2 & 32)) + $this.isSubView = false; + else + $this.isSubView = isSubView; + if (0 === (seen2 & 64)) + $this.isViewHide = false; + else + $this.isViewHide = isViewHide; + if (0 === (seen2 & 128)) + $this.jumpLink = ''; + else + $this.jumpLink = jumpLink; + if (0 === (seen2 & 256)) + $this.statForUnity = null; + else + $this.statForUnity = statForUnity; + if (0 === (seen2 & 512)) + $this.report = emptyMap(); + else + $this.report = report; + return $this; + } + } + class Companion_318 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.Rights'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_305(); + } + } + class $serializer_305 { + constructor() { + $serializer_instance_305 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KRights', this, 7); + tmp0_serialDesc.addElement_5pzumi_k$('allowDownload', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('allowReview', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('canWatch', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('resource', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('allowDm', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('allowDemand', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('areaLimit', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = 0; + var tmp6_local2 = 0; + var tmp7_local3 = null; + var tmp8_local4 = 0; + var tmp9_local5 = 0; + var tmp10_local6 = 0; + var tmp11_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp11_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + } else + while (tmp1_flag) { + tmp2_index = tmp11_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp11_input.endStructure_1xqz0n_k$(tmp0_desc); + return KRights.new_com_bapis_bilibili_app_viewunite_common_KRights_4o3f1a_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, null); + } + serialize_48wznj_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.allowDownload === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.allowDownload); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.allowReview === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.allowReview); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.canWatch === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.canWatch); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.resource === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.resource); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.allowDm === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 4, value.allowDm); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.allowDemand === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 5, value.allowDemand); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.areaLimit === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 6, value.areaLimit); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_48wznj_k$(encoder, value instanceof KRights ? value : THROW_CCE()); + } + } + class KRights { + constructor(allowDownload, allowReview, canWatch, resource, allowDm, allowDemand, areaLimit) { + Companion_instance_318; + allowDownload = allowDownload === VOID ? 0 : allowDownload; + allowReview = allowReview === VOID ? 0 : allowReview; + canWatch = canWatch === VOID ? 0 : canWatch; + resource = resource === VOID ? '' : resource; + allowDm = allowDm === VOID ? 0 : allowDm; + allowDemand = allowDemand === VOID ? 0 : allowDemand; + areaLimit = areaLimit === VOID ? 0 : areaLimit; + this.allowDownload = allowDownload; + this.allowReview = allowReview; + this.canWatch = canWatch; + this.resource = resource; + this.allowDm = allowDm; + this.allowDemand = allowDemand; + this.areaLimit = areaLimit; + } + get_allowDownload_rxt0s8_k$() { + return this.allowDownload; + } + get_allowReview_ty86fs_k$() { + return this.allowReview; + } + get_canWatch_y0xpaw_k$() { + return this.canWatch; + } + get_resource_xl4447_k$() { + return this.resource; + } + get_allowDm_dt1bnb_k$() { + return this.allowDm; + } + get_allowDemand_nbfkaz_k$() { + return this.allowDemand; + } + get_areaLimit_6jyz5x_k$() { + return this.areaLimit; + } + component1_7eebsc_k$() { + return this.allowDownload; + } + component2_7eebsb_k$() { + return this.allowReview; + } + component3_7eebsa_k$() { + return this.canWatch; + } + component4_7eebs9_k$() { + return this.resource; + } + component5_7eebs8_k$() { + return this.allowDm; + } + component6_7eebs7_k$() { + return this.allowDemand; + } + component7_7eebs6_k$() { + return this.areaLimit; + } + copy_i26ty9_k$(allowDownload, allowReview, canWatch, resource, allowDm, allowDemand, areaLimit) { + return new KRights(allowDownload, allowReview, canWatch, resource, allowDm, allowDemand, areaLimit); + } + copy(allowDownload, allowReview, canWatch, resource, allowDm, allowDemand, areaLimit, $super) { + allowDownload = allowDownload === VOID ? this.allowDownload : allowDownload; + allowReview = allowReview === VOID ? this.allowReview : allowReview; + canWatch = canWatch === VOID ? this.canWatch : canWatch; + resource = resource === VOID ? this.resource : resource; + allowDm = allowDm === VOID ? this.allowDm : allowDm; + allowDemand = allowDemand === VOID ? this.allowDemand : allowDemand; + areaLimit = areaLimit === VOID ? this.areaLimit : areaLimit; + return this.copy_i26ty9_k$(allowDownload, allowReview, canWatch, resource, allowDm, allowDemand, areaLimit); + } + toString() { + return 'KRights(allowDownload=' + this.allowDownload + ', allowReview=' + this.allowReview + ', canWatch=' + this.canWatch + ', resource=' + this.resource + ', allowDm=' + this.allowDm + ', allowDemand=' + this.allowDemand + ', areaLimit=' + this.areaLimit + ')'; + } + hashCode() { + var result = this.allowDownload; + result = imul(result, 31) + this.allowReview | 0; + result = imul(result, 31) + this.canWatch | 0; + result = imul(result, 31) + getStringHashCode(this.resource) | 0; + result = imul(result, 31) + this.allowDm | 0; + result = imul(result, 31) + this.allowDemand | 0; + result = imul(result, 31) + this.areaLimit | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KRights)) + return false; + var tmp0_other_with_cast = other instanceof KRights ? other : THROW_CCE(); + if (!(this.allowDownload === tmp0_other_with_cast.allowDownload)) + return false; + if (!(this.allowReview === tmp0_other_with_cast.allowReview)) + return false; + if (!(this.canWatch === tmp0_other_with_cast.canWatch)) + return false; + if (!(this.resource === tmp0_other_with_cast.resource)) + return false; + if (!(this.allowDm === tmp0_other_with_cast.allowDm)) + return false; + if (!(this.allowDemand === tmp0_other_with_cast.allowDemand)) + return false; + if (!(this.areaLimit === tmp0_other_with_cast.areaLimit)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KRights_4o3f1a_k$(seen1, allowDownload, allowReview, canWatch, resource, allowDm, allowDemand, areaLimit, serializationConstructorMarker) { + Companion_instance_318; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_305().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.allowDownload = 0; + else + $this.allowDownload = allowDownload; + if (0 === (seen1 & 2)) + $this.allowReview = 0; + else + $this.allowReview = allowReview; + if (0 === (seen1 & 4)) + $this.canWatch = 0; + else + $this.canWatch = canWatch; + if (0 === (seen1 & 8)) + $this.resource = ''; + else + $this.resource = resource; + if (0 === (seen1 & 16)) + $this.allowDm = 0; + else + $this.allowDm = allowDm; + if (0 === (seen1 & 32)) + $this.allowDemand = 0; + else + $this.allowDemand = allowDemand; + if (0 === (seen1 & 64)) + $this.areaLimit = 0; + else + $this.areaLimit = areaLimit; + return $this; + } + } + class Companion_319 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.Interaction'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_306(); + } + } + class $serializer_306 { + constructor() { + $serializer_instance_306 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KInteraction', this, 5); + tmp0_serialDesc.addElement_5pzumi_k$('epId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('historyNode', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('graphVersion', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('msg', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('isInteraction', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), get_nullable($serializer_getInstance_307()), LongSerializer_getInstance(), StringSerializer_getInstance(), BooleanSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_local2 = new Long(0, 0); + var tmp7_local3 = null; + var tmp8_local4 = false; + var tmp9_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp9_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_307(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp9_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + } else + while (tmp1_flag) { + tmp2_index = tmp9_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_307(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp9_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp9_input.endStructure_1xqz0n_k$(tmp0_desc); + return KInteraction_1.new_com_bapis_bilibili_app_viewunite_common_KInteraction_oinbrc_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); + } + serialize_ofzn98_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.epId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.epId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.historyNode == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_307(), value.historyNode); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.graphVersion.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.graphVersion); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.msg === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.msg); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.isInteraction === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 4, value.isInteraction); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_ofzn98_k$(encoder, value instanceof KInteraction_1 ? value : THROW_CCE()); + } + } + class KInteraction_1 { + constructor(epId, historyNode, graphVersion, msg, isInteraction) { + Companion_instance_319; + epId = epId === VOID ? new Long(0, 0) : epId; + historyNode = historyNode === VOID ? null : historyNode; + graphVersion = graphVersion === VOID ? new Long(0, 0) : graphVersion; + msg = msg === VOID ? '' : msg; + isInteraction = isInteraction === VOID ? false : isInteraction; + this.epId = epId; + this.historyNode = historyNode; + this.graphVersion = graphVersion; + this.msg = msg; + this.isInteraction = isInteraction; + } + get_epId_woli0f_k$() { + return this.epId; + } + get_historyNode_jpocb1_k$() { + return this.historyNode; + } + get_graphVersion_v1l53h_k$() { + return this.graphVersion; + } + get_msg_18j0fc_k$() { + return this.msg; + } + get_isInteraction_5yospr_k$() { + return this.isInteraction; + } + component1_7eebsc_k$() { + return this.epId; + } + component2_7eebsb_k$() { + return this.historyNode; + } + component3_7eebsa_k$() { + return this.graphVersion; + } + component4_7eebs9_k$() { + return this.msg; + } + component5_7eebs8_k$() { + return this.isInteraction; + } + copy_cajfdu_k$(epId, historyNode, graphVersion, msg, isInteraction) { + return new KInteraction_1(epId, historyNode, graphVersion, msg, isInteraction); + } + copy(epId, historyNode, graphVersion, msg, isInteraction, $super) { + epId = epId === VOID ? this.epId : epId; + historyNode = historyNode === VOID ? this.historyNode : historyNode; + graphVersion = graphVersion === VOID ? this.graphVersion : graphVersion; + msg = msg === VOID ? this.msg : msg; + isInteraction = isInteraction === VOID ? this.isInteraction : isInteraction; + return this.copy_cajfdu_k$(epId, historyNode, graphVersion, msg, isInteraction); + } + toString() { + return 'KInteraction(epId=' + this.epId.toString() + ', historyNode=' + this.historyNode + ', graphVersion=' + this.graphVersion.toString() + ', msg=' + this.msg + ', isInteraction=' + this.isInteraction + ')'; + } + hashCode() { + var result = this.epId.hashCode(); + result = imul(result, 31) + (this.historyNode == null ? 0 : this.historyNode.hashCode()) | 0; + result = imul(result, 31) + this.graphVersion.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.msg) | 0; + result = imul(result, 31) + getBooleanHashCode(this.isInteraction) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KInteraction_1)) + return false; + var tmp0_other_with_cast = other instanceof KInteraction_1 ? other : THROW_CCE(); + if (!this.epId.equals(tmp0_other_with_cast.epId)) + return false; + if (!equals(this.historyNode, tmp0_other_with_cast.historyNode)) + return false; + if (!this.graphVersion.equals(tmp0_other_with_cast.graphVersion)) + return false; + if (!(this.msg === tmp0_other_with_cast.msg)) + return false; + if (!(this.isInteraction === tmp0_other_with_cast.isInteraction)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KInteraction_oinbrc_k$(seen1, epId, historyNode, graphVersion, msg, isInteraction, serializationConstructorMarker) { + Companion_instance_319; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_306().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.epId = new Long(0, 0); + else + $this.epId = epId; + if (0 === (seen1 & 2)) + $this.historyNode = null; + else + $this.historyNode = historyNode; + if (0 === (seen1 & 4)) + $this.graphVersion = new Long(0, 0); + else + $this.graphVersion = graphVersion; + if (0 === (seen1 & 8)) + $this.msg = ''; + else + $this.msg = msg; + if (0 === (seen1 & 16)) + $this.isInteraction = false; + else + $this.isInteraction = isInteraction; + return $this; + } + } + class Companion_320 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.HistoryNode'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_307(); + } + } + class $serializer_307 { + constructor() { + $serializer_instance_307 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KHistoryNode', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('nodeId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('cid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_local2 = new Long(0, 0); + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KHistoryNode.new_com_bapis_bilibili_app_viewunite_common_KHistoryNode_c7soqx_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_bv5cns_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.nodeId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.nodeId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.cid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.cid); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_bv5cns_k$(encoder, value instanceof KHistoryNode ? value : THROW_CCE()); + } + } + class KHistoryNode { + constructor(nodeId, title, cid) { + Companion_instance_320; + nodeId = nodeId === VOID ? new Long(0, 0) : nodeId; + title = title === VOID ? '' : title; + cid = cid === VOID ? new Long(0, 0) : cid; + this.nodeId = nodeId; + this.title = title; + this.cid = cid; + } + get_nodeId_h7ho7a_k$() { + return this.nodeId; + } + get_title_iz32un_k$() { + return this.title; + } + get_cid_18j82z_k$() { + return this.cid; + } + component1_7eebsc_k$() { + return this.nodeId; + } + component2_7eebsb_k$() { + return this.title; + } + component3_7eebsa_k$() { + return this.cid; + } + copy_pz1b51_k$(nodeId, title, cid) { + return new KHistoryNode(nodeId, title, cid); + } + copy(nodeId, title, cid, $super) { + nodeId = nodeId === VOID ? this.nodeId : nodeId; + title = title === VOID ? this.title : title; + cid = cid === VOID ? this.cid : cid; + return this.copy_pz1b51_k$(nodeId, title, cid); + } + toString() { + return 'KHistoryNode(nodeId=' + this.nodeId.toString() + ', title=' + this.title + ', cid=' + this.cid.toString() + ')'; + } + hashCode() { + var result = this.nodeId.hashCode(); + result = imul(result, 31) + getStringHashCode(this.title) | 0; + result = imul(result, 31) + this.cid.hashCode() | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KHistoryNode)) + return false; + var tmp0_other_with_cast = other instanceof KHistoryNode ? other : THROW_CCE(); + if (!this.nodeId.equals(tmp0_other_with_cast.nodeId)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!this.cid.equals(tmp0_other_with_cast.cid)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KHistoryNode_c7soqx_k$(seen1, nodeId, title, cid, serializationConstructorMarker) { + Companion_instance_320; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_307().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.nodeId = new Long(0, 0); + else + $this.nodeId = nodeId; + if (0 === (seen1 & 2)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 4)) + $this.cid = new Long(0, 0); + else + $this.cid = cid; + return $this; + } + } + class Companion_321 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.SkipRange'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_308(); + } + } + class $serializer_308 { + constructor() { + $serializer_instance_308 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KSkipRange', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('start', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('end', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = 0; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSkipRange.new_com_bapis_bilibili_app_viewunite_common_KSkipRange_cpjkdw_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_svqx8w_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.start === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.start); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.end === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.end); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_svqx8w_k$(encoder, value instanceof KSkipRange ? value : THROW_CCE()); + } + } + class KSkipRange { + constructor(start, end) { + Companion_instance_321; + start = start === VOID ? 0 : start; + end = end === VOID ? 0 : end; + this.start = start; + this.end = end; + } + get_start_iypx6h_k$() { + return this.start; + } + get_end_18j6ha_k$() { + return this.end; + } + component1_7eebsc_k$() { + return this.start; + } + component2_7eebsb_k$() { + return this.end; + } + copy_fhtu3_k$(start, end) { + return new KSkipRange(start, end); + } + copy(start, end, $super) { + start = start === VOID ? this.start : start; + end = end === VOID ? this.end : end; + return this.copy_fhtu3_k$(start, end); + } + toString() { + return 'KSkipRange(start=' + this.start + ', end=' + this.end + ')'; + } + hashCode() { + var result = this.start; + result = imul(result, 31) + this.end | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSkipRange)) + return false; + var tmp0_other_with_cast = other instanceof KSkipRange ? other : THROW_CCE(); + if (!(this.start === tmp0_other_with_cast.start)) + return false; + if (!(this.end === tmp0_other_with_cast.end)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KSkipRange_cpjkdw_k$(seen1, start, end, serializationConstructorMarker) { + Companion_instance_321; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_308().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.start = 0; + else + $this.start = start; + if (0 === (seen1 & 2)) + $this.end = 0; + else + $this.end = end; + return $this; + } + } + class Companion_322 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.MultiViewEp'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_309(); + } + } + class $serializer_309 { + constructor() { + $serializer_instance_309 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KMultiViewEp', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('epId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KMultiViewEp.new_com_bapis_bilibili_app_viewunite_common_KMultiViewEp_pd17hd_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_omra79_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.epId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.epId); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_omra79_k$(encoder, value instanceof KMultiViewEp ? value : THROW_CCE()); + } + } + class KMultiViewEp { + constructor(epId) { + Companion_instance_322; + epId = epId === VOID ? new Long(0, 0) : epId; + this.epId = epId; + } + get_epId_woli0f_k$() { + return this.epId; + } + component1_7eebsc_k$() { + return this.epId; + } + copy_5ymysz_k$(epId) { + return new KMultiViewEp(epId); + } + copy(epId, $super) { + epId = epId === VOID ? this.epId : epId; + return this.copy_5ymysz_k$(epId); + } + toString() { + return 'KMultiViewEp(epId=' + this.epId.toString() + ')'; + } + hashCode() { + return this.epId.hashCode(); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KMultiViewEp)) + return false; + var tmp0_other_with_cast = other instanceof KMultiViewEp ? other : THROW_CCE(); + if (!this.epId.equals(tmp0_other_with_cast.epId)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KMultiViewEp_pd17hd_k$(seen1, epId, serializationConstructorMarker) { + Companion_instance_322; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_309().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.epId = new Long(0, 0); + else + $this.epId = epId; + return $this; + } + } + class Companion_323 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.LikeComment'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_310(); + } + } + class $serializer_310 { + constructor() { + $serializer_instance_310 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KLikeComment', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('reply', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KLikeComment_0.new_com_bapis_bilibili_app_viewunite_common_KLikeComment_l5vzsk_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_7iadx6_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.reply === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.reply); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.title); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_7iadx6_k$(encoder, value instanceof KLikeComment_0 ? value : THROW_CCE()); + } + } + class KLikeComment_0 { + constructor(reply, title) { + Companion_instance_323; + reply = reply === VOID ? '' : reply; + title = title === VOID ? '' : title; + this.reply = reply; + this.title = title; + } + get_reply_ixwurl_k$() { + return this.reply; + } + get_title_iz32un_k$() { + return this.title; + } + component1_7eebsc_k$() { + return this.reply; + } + component2_7eebsb_k$() { + return this.title; + } + copy_plwnsl_k$(reply, title) { + return new KLikeComment_0(reply, title); + } + copy(reply, title, $super) { + reply = reply === VOID ? this.reply : reply; + title = title === VOID ? this.title : title; + return this.copy_plwnsl_k$(reply, title); + } + toString() { + return 'KLikeComment(reply=' + this.reply + ', title=' + this.title + ')'; + } + hashCode() { + var result = getStringHashCode(this.reply); + result = imul(result, 31) + getStringHashCode(this.title) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KLikeComment_0)) + return false; + var tmp0_other_with_cast = other instanceof KLikeComment_0 ? other : THROW_CCE(); + if (!(this.reply === tmp0_other_with_cast.reply)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KLikeComment_l5vzsk_k$(seen1, reply, title, serializationConstructorMarker) { + Companion_instance_323; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_310().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.reply = ''; + else + $this.reply = reply; + if (0 === (seen1 & 2)) + $this.title = ''; + else + $this.title = title; + return $this; + } + } + class Companion_324 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.LiveOrder'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_311(); + } + } + class $serializer_311 { + constructor() { + $serializer_instance_311 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KLiveOrder', this, 6); + tmp0_serialDesc.addElement_5pzumi_k$('sid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('text', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('livePlanStartTime', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('isFollow', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('followCount', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('reserveCalendarInfo', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), BooleanSerializer_getInstance(), LongSerializer_getInstance(), get_nullable($serializer_getInstance_392())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_local2 = new Long(0, 0); + var tmp7_local3 = false; + var tmp8_local4 = new Long(0, 0); + var tmp9_local5 = null; + var tmp10_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp10_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp10_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_392(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + } else + while (tmp1_flag) { + tmp2_index = tmp10_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp10_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_392(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp10_input.endStructure_1xqz0n_k$(tmp0_desc); + return KLiveOrder_0.new_com_bapis_bilibili_app_viewunite_common_KLiveOrder_nz74oo_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); + } + serialize_envvck_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.sid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.sid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.text === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.text); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.livePlanStartTime.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.livePlanStartTime); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.isFollow === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 3, value.isFollow); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !value.followCount.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 4, value.followCount); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.reserveCalendarInfo == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 5, $serializer_getInstance_392(), value.reserveCalendarInfo); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_envvck_k$(encoder, value instanceof KLiveOrder_0 ? value : THROW_CCE()); + } + } + class KLiveOrder_0 { + constructor(sid, text, livePlanStartTime, isFollow, followCount, reserveCalendarInfo) { + Companion_instance_324; + sid = sid === VOID ? new Long(0, 0) : sid; + text = text === VOID ? '' : text; + livePlanStartTime = livePlanStartTime === VOID ? new Long(0, 0) : livePlanStartTime; + isFollow = isFollow === VOID ? false : isFollow; + followCount = followCount === VOID ? new Long(0, 0) : followCount; + reserveCalendarInfo = reserveCalendarInfo === VOID ? null : reserveCalendarInfo; + this.sid = sid; + this.text = text; + this.livePlanStartTime = livePlanStartTime; + this.isFollow = isFollow; + this.followCount = followCount; + this.reserveCalendarInfo = reserveCalendarInfo; + } + get_sid_18iw7v_k$() { + return this.sid; + } + get_text_wouvsm_k$() { + return this.text; + } + get_livePlanStartTime_dqhy4v_k$() { + return this.livePlanStartTime; + } + get_isFollow_tdz0w4_k$() { + return this.isFollow; + } + get_followCount_v5sx3f_k$() { + return this.followCount; + } + get_reserveCalendarInfo_9x58xr_k$() { + return this.reserveCalendarInfo; + } + component1_7eebsc_k$() { + return this.sid; + } + component2_7eebsb_k$() { + return this.text; + } + component3_7eebsa_k$() { + return this.livePlanStartTime; + } + component4_7eebs9_k$() { + return this.isFollow; + } + component5_7eebs8_k$() { + return this.followCount; + } + component6_7eebs7_k$() { + return this.reserveCalendarInfo; + } + copy_9u061s_k$(sid, text, livePlanStartTime, isFollow, followCount, reserveCalendarInfo) { + return new KLiveOrder_0(sid, text, livePlanStartTime, isFollow, followCount, reserveCalendarInfo); + } + copy(sid, text, livePlanStartTime, isFollow, followCount, reserveCalendarInfo, $super) { + sid = sid === VOID ? this.sid : sid; + text = text === VOID ? this.text : text; + livePlanStartTime = livePlanStartTime === VOID ? this.livePlanStartTime : livePlanStartTime; + isFollow = isFollow === VOID ? this.isFollow : isFollow; + followCount = followCount === VOID ? this.followCount : followCount; + reserveCalendarInfo = reserveCalendarInfo === VOID ? this.reserveCalendarInfo : reserveCalendarInfo; + return this.copy_9u061s_k$(sid, text, livePlanStartTime, isFollow, followCount, reserveCalendarInfo); + } + toString() { + return 'KLiveOrder(sid=' + this.sid.toString() + ', text=' + this.text + ', livePlanStartTime=' + this.livePlanStartTime.toString() + ', isFollow=' + this.isFollow + ', followCount=' + this.followCount.toString() + ', reserveCalendarInfo=' + this.reserveCalendarInfo + ')'; + } + hashCode() { + var result = this.sid.hashCode(); + result = imul(result, 31) + getStringHashCode(this.text) | 0; + result = imul(result, 31) + this.livePlanStartTime.hashCode() | 0; + result = imul(result, 31) + getBooleanHashCode(this.isFollow) | 0; + result = imul(result, 31) + this.followCount.hashCode() | 0; + result = imul(result, 31) + (this.reserveCalendarInfo == null ? 0 : this.reserveCalendarInfo.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KLiveOrder_0)) + return false; + var tmp0_other_with_cast = other instanceof KLiveOrder_0 ? other : THROW_CCE(); + if (!this.sid.equals(tmp0_other_with_cast.sid)) + return false; + if (!(this.text === tmp0_other_with_cast.text)) + return false; + if (!this.livePlanStartTime.equals(tmp0_other_with_cast.livePlanStartTime)) + return false; + if (!(this.isFollow === tmp0_other_with_cast.isFollow)) + return false; + if (!this.followCount.equals(tmp0_other_with_cast.followCount)) + return false; + if (!equals(this.reserveCalendarInfo, tmp0_other_with_cast.reserveCalendarInfo)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KLiveOrder_nz74oo_k$(seen1, sid, text, livePlanStartTime, isFollow, followCount, reserveCalendarInfo, serializationConstructorMarker) { + Companion_instance_324; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_311().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.sid = new Long(0, 0); + else + $this.sid = sid; + if (0 === (seen1 & 2)) + $this.text = ''; + else + $this.text = text; + if (0 === (seen1 & 4)) + $this.livePlanStartTime = new Long(0, 0); + else + $this.livePlanStartTime = livePlanStartTime; + if (0 === (seen1 & 8)) + $this.isFollow = false; + else + $this.isFollow = isFollow; + if (0 === (seen1 & 16)) + $this.followCount = new Long(0, 0); + else + $this.followCount = followCount; + if (0 === (seen1 & 32)) + $this.reserveCalendarInfo = null; + else + $this.reserveCalendarInfo = reserveCalendarInfo; + return $this; + } + } + class Companion_325 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.ActivityReserve'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_312(); + } + } + class $serializer_312 { + constructor() { + $serializer_instance_312 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KActivityReserve', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('vt', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('danmaku', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('button', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), get_nullable($serializer_getInstance_367()), get_nullable($serializer_getInstance_367()), get_nullable($serializer_getInstance_313())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_367(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_367(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_313(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_367(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_367(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_313(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KActivityReserve_0.new_com_bapis_bilibili_app_viewunite_common_KActivityReserve_jeggj6_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_bq05tr_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.vt == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_367(), value.vt); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.danmaku == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_367(), value.danmaku); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.button == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_313(), value.button); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_bq05tr_k$(encoder, value instanceof KActivityReserve_0 ? value : THROW_CCE()); + } + } + class KActivityReserve_0 { + constructor(title, vt, danmaku, button) { + Companion_instance_325; + title = title === VOID ? '' : title; + vt = vt === VOID ? null : vt; + danmaku = danmaku === VOID ? null : danmaku; + button = button === VOID ? null : button; + this.title = title; + this.vt = vt; + this.danmaku = danmaku; + this.button = button; + } + get_title_iz32un_k$() { + return this.title; + } + get_vt_kntnll_k$() { + return this.vt; + } + get_danmaku_p1pkiu_k$() { + return this.danmaku; + } + get_button_bmjiuz_k$() { + return this.button; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.vt; + } + component3_7eebsa_k$() { + return this.danmaku; + } + component4_7eebs9_k$() { + return this.button; + } + copy_cxgv7b_k$(title, vt, danmaku, button) { + return new KActivityReserve_0(title, vt, danmaku, button); + } + copy(title, vt, danmaku, button, $super) { + title = title === VOID ? this.title : title; + vt = vt === VOID ? this.vt : vt; + danmaku = danmaku === VOID ? this.danmaku : danmaku; + button = button === VOID ? this.button : button; + return this.copy_cxgv7b_k$(title, vt, danmaku, button); + } + toString() { + return 'KActivityReserve(title=' + this.title + ', vt=' + this.vt + ', danmaku=' + this.danmaku + ', button=' + this.button + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + (this.vt == null ? 0 : this.vt.hashCode()) | 0; + result = imul(result, 31) + (this.danmaku == null ? 0 : this.danmaku.hashCode()) | 0; + result = imul(result, 31) + (this.button == null ? 0 : this.button.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KActivityReserve_0)) + return false; + var tmp0_other_with_cast = other instanceof KActivityReserve_0 ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!equals(this.vt, tmp0_other_with_cast.vt)) + return false; + if (!equals(this.danmaku, tmp0_other_with_cast.danmaku)) + return false; + if (!equals(this.button, tmp0_other_with_cast.button)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KActivityReserve_jeggj6_k$(seen1, title, vt, danmaku, button, serializationConstructorMarker) { + Companion_instance_325; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_312().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.vt = null; + else + $this.vt = vt; + if (0 === (seen1 & 4)) + $this.danmaku = null; + else + $this.danmaku = danmaku; + if (0 === (seen1 & 8)) + $this.button = null; + else + $this.button = button; + return $this; + } + } + class KOrderParam { + constructor(value) { + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + } + class KReserve extends KOrderParam { + constructor() { + KReserve_instance = null; + super(0); + KReserve_instance = this; + } + } + class KFav extends KOrderParam { + constructor() { + KFav_instance = null; + super(1); + KFav_instance = this; + } + } + class Companion_326 { + constructor() { + Companion_instance_326 = this; + var tmp = this; + tmp.orderParamValues$delegate_1 = lazy_0(KReserveButton$Companion$orderParamValues$delegate$lambda); + this.targetPath = '/bilibili.app.viewunite.common.ReserveButton'; + } + get_orderParamValues_yltf12_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.orderParamValues$delegate_1; + var thisRef = this; + var property = orderParamValues$factory(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_313(); + } + get orderParamValues() { + return this.get_orderParamValues_yltf12_k$(); + } + } + class $serializer_313 { + constructor() { + $serializer_instance_313 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KReserveButton', this, 6); + tmp0_serialDesc.addElement_5pzumi_k$('status', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('text', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('selectedText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('orderType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('reserve', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('fav', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [BooleanSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), get_nullable($serializer_getInstance_384()), get_nullable($serializer_getInstance_385())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = false; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = 0; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_transient0 = 0; + var tmp11_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp11_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp11_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_384(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_385(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + } else + while (tmp1_flag) { + tmp2_index = tmp11_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp11_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_384(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_385(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp11_input.endStructure_1xqz0n_k$(tmp0_desc); + return KReserveButton.new_com_bapis_bilibili_app_viewunite_common_KReserveButton_8qsd1p_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); + } + serialize_e4qq0w_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.status === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 0, value.status); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.text === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.text); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.selectedText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.selectedText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.orderType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 3, value.orderType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.reserve_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, $serializer_getInstance_384(), value.reserve_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.fav_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 5, $serializer_getInstance_385(), value.fav_1); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_e4qq0w_k$(encoder, value instanceof KReserveButton ? value : THROW_CCE()); + } + } + class KReserveButton { + constructor(status, text, selectedText, orderType, reserve, fav) { + Companion_getInstance_326(); + status = status === VOID ? false : status; + text = text === VOID ? '' : text; + selectedText = selectedText === VOID ? '' : selectedText; + orderType = orderType === VOID ? 0 : orderType; + reserve = reserve === VOID ? null : reserve; + fav = fav === VOID ? null : fav; + this.status = status; + this.text = text; + this.selectedText = selectedText; + this.orderType = orderType; + this.reserve_1 = reserve; + this.fav_1 = fav; + var tmp = this; + tmp.orderParamNumber$delegate_1 = lazy_0(KReserveButton$orderParamNumber$delegate$lambda(this)); + } + get_status_jnf6d7_k$() { + return this.status; + } + get_text_wouvsm_k$() { + return this.text; + } + get_selectedText_oh03m7_k$() { + return this.selectedText; + } + get_orderType_21e873_k$() { + return this.orderType; + } + orderParamValue() { + if (!(this.reserve_1 == null)) { + var tmp = this.reserve_1; + return (tmp == null ? true : !(tmp == null)) ? tmp : null; + } else if (!(this.fav_1 == null)) { + var tmp_0 = this.fav_1; + return (tmp_0 == null ? true : !(tmp_0 == null)) ? tmp_0 : null; + } else { + return null; + } + } + orderParamTypeJs() { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = Companion_getInstance_326().orderParamValues; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.viewunite.common.KReserveButton.orderParamType.' call + var it = element; + tmp$ret$0 = it.value === _get_orderParamNumber__ykhf0d(this); + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + return tmp$ret$1; + } + orderTypeEnum() { + return Companion_getInstance_230().fromValue(this.orderType); + } + component1_7eebsc_k$() { + return this.status; + } + component2_7eebsb_k$() { + return this.text; + } + component3_7eebsa_k$() { + return this.selectedText; + } + component4_7eebs9_k$() { + return this.orderType; + } + copy_4kniig_k$(status, text, selectedText, orderType, reserve, fav) { + return new KReserveButton(status, text, selectedText, orderType, reserve, fav); + } + copy(status, text, selectedText, orderType, reserve, fav, $super) { + status = status === VOID ? this.status : status; + text = text === VOID ? this.text : text; + selectedText = selectedText === VOID ? this.selectedText : selectedText; + orderType = orderType === VOID ? this.orderType : orderType; + reserve = reserve === VOID ? this.reserve_1 : reserve; + fav = fav === VOID ? this.fav_1 : fav; + return this.copy_4kniig_k$(status, text, selectedText, orderType, reserve, fav); + } + toString() { + return 'KReserveButton(status=' + this.status + ', text=' + this.text + ', selectedText=' + this.selectedText + ', orderType=' + this.orderType + ', reserve=' + this.reserve_1 + ', fav=' + this.fav_1 + ')'; + } + hashCode() { + var result = getBooleanHashCode(this.status); + result = imul(result, 31) + getStringHashCode(this.text) | 0; + result = imul(result, 31) + getStringHashCode(this.selectedText) | 0; + result = imul(result, 31) + this.orderType | 0; + result = imul(result, 31) + (this.reserve_1 == null ? 0 : this.reserve_1.hashCode()) | 0; + result = imul(result, 31) + (this.fav_1 == null ? 0 : this.fav_1.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KReserveButton)) + return false; + var tmp0_other_with_cast = other instanceof KReserveButton ? other : THROW_CCE(); + if (!(this.status === tmp0_other_with_cast.status)) + return false; + if (!(this.text === tmp0_other_with_cast.text)) + return false; + if (!(this.selectedText === tmp0_other_with_cast.selectedText)) + return false; + if (!(this.orderType === tmp0_other_with_cast.orderType)) + return false; + if (!equals(this.reserve_1, tmp0_other_with_cast.reserve_1)) + return false; + if (!equals(this.fav_1, tmp0_other_with_cast.fav_1)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KReserveButton_8qsd1p_k$(seen1, status, text, selectedText, orderType, reserve, fav, serializationConstructorMarker) { + Companion_getInstance_326(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_313().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.status = false; + else + $this.status = status; + if (0 === (seen1 & 2)) + $this.text = ''; + else + $this.text = text; + if (0 === (seen1 & 4)) + $this.selectedText = ''; + else + $this.selectedText = selectedText; + if (0 === (seen1 & 8)) + $this.orderType = 0; + else + $this.orderType = orderType; + if (0 === (seen1 & 16)) + $this.reserve_1 = null; + else + $this.reserve_1 = reserve; + if (0 === (seen1 & 32)) + $this.fav_1 = null; + else + $this.fav_1 = fav; + var tmp = $this; + tmp.orderParamNumber$delegate_1 = lazy_0(KReserveButton$_init_$lambda_javns8($this)); + return $this; + } + } + class Companion_327 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.OgvTitle'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_314(); + } + } + class $serializer_314 { + constructor() { + $serializer_instance_314 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KOgvTitle', this, 6); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('badgeInfo', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('isShowBtnAnimation', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('followVideoIsReserveLive', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('reserveId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('titleDeliveryButton', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), get_nullable($serializer_getInstance_377()), IntSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), get_nullable($serializer_getInstance_316())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = 0; + var tmp7_local3 = 0; + var tmp8_local4 = new Long(0, 0); + var tmp9_local5 = null; + var tmp10_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp10_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_377(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_316(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + } else + while (tmp1_flag) { + tmp2_index = tmp10_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_377(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_316(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp10_input.endStructure_1xqz0n_k$(tmp0_desc); + return KOgvTitle_0.new_com_bapis_bilibili_app_viewunite_common_KOgvTitle_wg64ck_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); + } + serialize_ww7mqm_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.badgeInfo == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_377(), value.badgeInfo); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.isShowBtnAnimation === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.isShowBtnAnimation); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.followVideoIsReserveLive === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 3, value.followVideoIsReserveLive); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !value.reserveId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 4, value.reserveId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.titleDeliveryButton == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 5, $serializer_getInstance_316(), value.titleDeliveryButton); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_ww7mqm_k$(encoder, value instanceof KOgvTitle_0 ? value : THROW_CCE()); + } + } + class KOgvTitle_0 { + constructor(title, badgeInfo, isShowBtnAnimation, followVideoIsReserveLive, reserveId, titleDeliveryButton) { + Companion_instance_327; + title = title === VOID ? '' : title; + badgeInfo = badgeInfo === VOID ? null : badgeInfo; + isShowBtnAnimation = isShowBtnAnimation === VOID ? 0 : isShowBtnAnimation; + followVideoIsReserveLive = followVideoIsReserveLive === VOID ? 0 : followVideoIsReserveLive; + reserveId = reserveId === VOID ? new Long(0, 0) : reserveId; + titleDeliveryButton = titleDeliveryButton === VOID ? null : titleDeliveryButton; + this.title = title; + this.badgeInfo = badgeInfo; + this.isShowBtnAnimation = isShowBtnAnimation; + this.followVideoIsReserveLive = followVideoIsReserveLive; + this.reserveId = reserveId; + this.titleDeliveryButton = titleDeliveryButton; + } + get_title_iz32un_k$() { + return this.title; + } + get_badgeInfo_rkwtrs_k$() { + return this.badgeInfo; + } + get_isShowBtnAnimation_cmx6vc_k$() { + return this.isShowBtnAnimation; + } + get_followVideoIsReserveLive_dk8sf1_k$() { + return this.followVideoIsReserveLive; + } + get_reserveId_t26awi_k$() { + return this.reserveId; + } + get_titleDeliveryButton_dnqcob_k$() { + return this.titleDeliveryButton; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.badgeInfo; + } + component3_7eebsa_k$() { + return this.isShowBtnAnimation; + } + component4_7eebs9_k$() { + return this.followVideoIsReserveLive; + } + component5_7eebs8_k$() { + return this.reserveId; + } + component6_7eebs7_k$() { + return this.titleDeliveryButton; + } + copy_urul9o_k$(title, badgeInfo, isShowBtnAnimation, followVideoIsReserveLive, reserveId, titleDeliveryButton) { + return new KOgvTitle_0(title, badgeInfo, isShowBtnAnimation, followVideoIsReserveLive, reserveId, titleDeliveryButton); + } + copy(title, badgeInfo, isShowBtnAnimation, followVideoIsReserveLive, reserveId, titleDeliveryButton, $super) { + title = title === VOID ? this.title : title; + badgeInfo = badgeInfo === VOID ? this.badgeInfo : badgeInfo; + isShowBtnAnimation = isShowBtnAnimation === VOID ? this.isShowBtnAnimation : isShowBtnAnimation; + followVideoIsReserveLive = followVideoIsReserveLive === VOID ? this.followVideoIsReserveLive : followVideoIsReserveLive; + reserveId = reserveId === VOID ? this.reserveId : reserveId; + titleDeliveryButton = titleDeliveryButton === VOID ? this.titleDeliveryButton : titleDeliveryButton; + return this.copy_urul9o_k$(title, badgeInfo, isShowBtnAnimation, followVideoIsReserveLive, reserveId, titleDeliveryButton); + } + toString() { + return 'KOgvTitle(title=' + this.title + ', badgeInfo=' + this.badgeInfo + ', isShowBtnAnimation=' + this.isShowBtnAnimation + ', followVideoIsReserveLive=' + this.followVideoIsReserveLive + ', reserveId=' + this.reserveId.toString() + ', titleDeliveryButton=' + this.titleDeliveryButton + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + (this.badgeInfo == null ? 0 : this.badgeInfo.hashCode()) | 0; + result = imul(result, 31) + this.isShowBtnAnimation | 0; + result = imul(result, 31) + this.followVideoIsReserveLive | 0; + result = imul(result, 31) + this.reserveId.hashCode() | 0; + result = imul(result, 31) + (this.titleDeliveryButton == null ? 0 : this.titleDeliveryButton.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KOgvTitle_0)) + return false; + var tmp0_other_with_cast = other instanceof KOgvTitle_0 ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!equals(this.badgeInfo, tmp0_other_with_cast.badgeInfo)) + return false; + if (!(this.isShowBtnAnimation === tmp0_other_with_cast.isShowBtnAnimation)) + return false; + if (!(this.followVideoIsReserveLive === tmp0_other_with_cast.followVideoIsReserveLive)) + return false; + if (!this.reserveId.equals(tmp0_other_with_cast.reserveId)) + return false; + if (!equals(this.titleDeliveryButton, tmp0_other_with_cast.titleDeliveryButton)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KOgvTitle_wg64ck_k$(seen1, title, badgeInfo, isShowBtnAnimation, followVideoIsReserveLive, reserveId, titleDeliveryButton, serializationConstructorMarker) { + Companion_instance_327; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_314().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.badgeInfo = null; + else + $this.badgeInfo = badgeInfo; + if (0 === (seen1 & 4)) + $this.isShowBtnAnimation = 0; + else + $this.isShowBtnAnimation = isShowBtnAnimation; + if (0 === (seen1 & 8)) + $this.followVideoIsReserveLive = 0; + else + $this.followVideoIsReserveLive = followVideoIsReserveLive; + if (0 === (seen1 & 16)) + $this.reserveId = new Long(0, 0); + else + $this.reserveId = reserveId; + if (0 === (seen1 & 32)) + $this.titleDeliveryButton = null; + else + $this.titleDeliveryButton = titleDeliveryButton; + return $this; + } + } + class Companion_328 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.TitleDeliveryButton.ReportEntry'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_315(); + } + } + class $serializer_315 { + constructor() { + $serializer_instance_315 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KTitleDeliveryButton.KReportEntry', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('key', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('value', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KReportEntry_12.new_com_bapis_bilibili_app_viewunite_common_KTitleDeliveryButton_KReportEntry_fdoeb0_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_5x0yl1_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.key === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.key); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.value === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.value); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_5x0yl1_k$(encoder, value instanceof KReportEntry_12 ? value : THROW_CCE()); + } + } + class KReportEntry_12 { + constructor(key, value) { + Companion_instance_328; + key = key === VOID ? '' : key; + value = value === VOID ? '' : value; + this.key = key; + this.value = value; + } + get_key_18j28a_k$() { + return this.key; + } + get_value_j01efc_k$() { + return this.value; + } + component1_7eebsc_k$() { + return this.key; + } + component2_7eebsb_k$() { + return this.value; + } + copy_plwnsl_k$(key, value) { + return new KReportEntry_12(key, value); + } + copy(key, value, $super) { + key = key === VOID ? this.key : key; + value = value === VOID ? this.value : value; + return this.copy_plwnsl_k$(key, value); + } + toString() { + return 'KReportEntry(key=' + this.key + ', value=' + this.value + ')'; + } + hashCode() { + var result = getStringHashCode(this.key); + result = imul(result, 31) + getStringHashCode(this.value) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KReportEntry_12)) + return false; + var tmp0_other_with_cast = other instanceof KReportEntry_12 ? other : THROW_CCE(); + if (!(this.key === tmp0_other_with_cast.key)) + return false; + if (!(this.value === tmp0_other_with_cast.value)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KTitleDeliveryButton_KReportEntry_fdoeb0_k$(seen1, key, value, serializationConstructorMarker) { + Companion_instance_328; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_315().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.key = ''; + else + $this.key = key; + if (0 === (seen1 & 2)) + $this.value = ''; + else + $this.value = value; + return $this; + } + } + class Companion_329 { + constructor() { + Companion_instance_329 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, new LinkedHashMapSerializer(StringSerializer_getInstance(), StringSerializer_getInstance())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.viewunite.common.TitleDeliveryButton'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_316(); + } + } + class $serializer_316 { + constructor() { + $serializer_instance_316 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KTitleDeliveryButton', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('icon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('link', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('report', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_329().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), tmp0_cached[3]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp9_cached = Companion_getInstance_329().$childSerializers_1; + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 3, tmp9_cached[3], tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 3, tmp9_cached[3], tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KTitleDeliveryButton.new_com_bapis_bilibili_app_viewunite_common_KTitleDeliveryButton_iv79es_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_wxtweo_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_329().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.icon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.icon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.link === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.link); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !equals(value.report, emptyMap())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 3, tmp2_cached[3], value.report); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_wxtweo_k$(encoder, value instanceof KTitleDeliveryButton ? value : THROW_CCE()); + } + } + class KTitleDeliveryButton { + constructor(icon, title, link, report) { + Companion_getInstance_329(); + icon = icon === VOID ? '' : icon; + title = title === VOID ? '' : title; + link = link === VOID ? '' : link; + report = report === VOID ? emptyMap() : report; + this.icon = icon; + this.title = title; + this.link = link; + this.report = report; + } + get_icon_wont8i_k$() { + return this.icon; + } + get_title_iz32un_k$() { + return this.title; + } + get_link_wopumb_k$() { + return this.link; + } + get_report_iye43h_k$() { + return this.report; + } + component1_7eebsc_k$() { + return this.icon; + } + component2_7eebsb_k$() { + return this.title; + } + component3_7eebsa_k$() { + return this.link; + } + component4_7eebs9_k$() { + return this.report; + } + copy_3bxt3t_k$(icon, title, link, report) { + return new KTitleDeliveryButton(icon, title, link, report); + } + copy(icon, title, link, report, $super) { + icon = icon === VOID ? this.icon : icon; + title = title === VOID ? this.title : title; + link = link === VOID ? this.link : link; + report = report === VOID ? this.report : report; + return this.copy_3bxt3t_k$(icon, title, link, report); + } + toString() { + return 'KTitleDeliveryButton(icon=' + this.icon + ', title=' + this.title + ', link=' + this.link + ', report=' + this.report + ')'; + } + hashCode() { + var result = getStringHashCode(this.icon); + result = imul(result, 31) + getStringHashCode(this.title) | 0; + result = imul(result, 31) + getStringHashCode(this.link) | 0; + result = imul(result, 31) + hashCode(this.report) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KTitleDeliveryButton)) + return false; + var tmp0_other_with_cast = other instanceof KTitleDeliveryButton ? other : THROW_CCE(); + if (!(this.icon === tmp0_other_with_cast.icon)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.link === tmp0_other_with_cast.link)) + return false; + if (!equals(this.report, tmp0_other_with_cast.report)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KTitleDeliveryButton_iv79es_k$(seen1, icon, title, link, report, serializationConstructorMarker) { + Companion_getInstance_329(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_316().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.icon = ''; + else + $this.icon = icon; + if (0 === (seen1 & 2)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 4)) + $this.link = ''; + else + $this.link = link; + if (0 === (seen1 & 8)) + $this.report = emptyMap(); + else + $this.report = report; + return $this; + } + } + class Companion_330 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.CatalogTab'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_317(); + } + } + class $serializer_317 { + constructor() { + $serializer_instance_317 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KCatalogTab', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KCatalogTab.new_com_bapis_bilibili_app_viewunite_common_KCatalogTab_qb4zvv_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_gz8poc_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_gz8poc_k$(encoder, value instanceof KCatalogTab ? value : THROW_CCE()); + } + } + class KCatalogTab { + constructor(title) { + Companion_instance_330; + title = title === VOID ? '' : title; + this.title = title; + } + get_title_iz32un_k$() { + return this.title; + } + component1_7eebsc_k$() { + return this.title; + } + copy_a35qlh_k$(title) { + return new KCatalogTab(title); + } + copy(title, $super) { + title = title === VOID ? this.title : title; + return this.copy_a35qlh_k$(title); + } + toString() { + return 'KCatalogTab(title=' + this.title + ')'; + } + hashCode() { + return getStringHashCode(this.title); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KCatalogTab)) + return false; + var tmp0_other_with_cast = other instanceof KCatalogTab ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KCatalogTab_qb4zvv_k$(seen1, title, serializationConstructorMarker) { + Companion_instance_330; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_317().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + return $this; + } + } + class Companion_331 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.ActivityTab.ReportEntry'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_318(); + } + } + class $serializer_318 { + constructor() { + $serializer_instance_318 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KActivityTab.KReportEntry', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('key', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('value', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KReportEntry_13.new_com_bapis_bilibili_app_viewunite_common_KActivityTab_KReportEntry_hrrq9g_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_lu4319_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.key === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.key); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.value === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.value); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_lu4319_k$(encoder, value instanceof KReportEntry_13 ? value : THROW_CCE()); + } + } + class KReportEntry_13 { + constructor(key, value) { + Companion_instance_331; + key = key === VOID ? '' : key; + value = value === VOID ? '' : value; + this.key = key; + this.value = value; + } + get_key_18j28a_k$() { + return this.key; + } + get_value_j01efc_k$() { + return this.value; + } + component1_7eebsc_k$() { + return this.key; + } + component2_7eebsb_k$() { + return this.value; + } + copy_plwnsl_k$(key, value) { + return new KReportEntry_13(key, value); + } + copy(key, value, $super) { + key = key === VOID ? this.key : key; + value = value === VOID ? this.value : value; + return this.copy_plwnsl_k$(key, value); + } + toString() { + return 'KReportEntry(key=' + this.key + ', value=' + this.value + ')'; + } + hashCode() { + var result = getStringHashCode(this.key); + result = imul(result, 31) + getStringHashCode(this.value) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KReportEntry_13)) + return false; + var tmp0_other_with_cast = other instanceof KReportEntry_13 ? other : THROW_CCE(); + if (!(this.key === tmp0_other_with_cast.key)) + return false; + if (!(this.value === tmp0_other_with_cast.value)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KActivityTab_KReportEntry_hrrq9g_k$(seen1, key, value, serializationConstructorMarker) { + Companion_instance_331; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_318().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.key = ''; + else + $this.key = key; + if (0 === (seen1 & 2)) + $this.value = ''; + else + $this.value = value; + return $this; + } + } + class Companion_332 { + constructor() { + Companion_instance_332 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, null, null, null, null, null, null, null, null, null, new LinkedHashMapSerializer(StringSerializer_getInstance(), StringSerializer_getInstance())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.viewunite.common.ActivityTab'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_319(); + } + } + class $serializer_319 { + constructor() { + $serializer_instance_319 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KActivityTab', this, 13); + tmp0_serialDesc.addElement_5pzumi_k$('id', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('showName', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('picurl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('picurlSelected', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('h5Link', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('link', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('linkType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('bizKey', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('desc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('actExt', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + tmp0_serialDesc.addElement_5pzumi_k$('report', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(13)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_332().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), tmp0_cached[12]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = null; + var tmp6_local2 = 0; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_local8 = 0; + var tmp13_local9 = new Long(0, 0); + var tmp14_local10 = null; + var tmp15_local11 = null; + var tmp16_local12 = null; + var tmp17_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp18_cached = Companion_getInstance_332().$childSerializers_1; + if (tmp17_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp17_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp17_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp17_input.decodeIntElement_941u6a_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp17_input.decodeLongElement_994anb_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + tmp16_local12 = tmp17_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 12, tmp18_cached[12], tmp16_local12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + } else + while (tmp1_flag) { + tmp2_index = tmp17_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp17_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp17_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp17_input.decodeIntElement_941u6a_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp17_input.decodeLongElement_994anb_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + case 12: + tmp16_local12 = tmp17_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 12, tmp18_cached[12], tmp16_local12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp17_input.endStructure_1xqz0n_k$(tmp0_desc); + return KActivityTab.new_com_bapis_bilibili_app_viewunite_common_KActivityTab_wxotzn_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, null); + } + serialize_e1xr7c_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_332().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.id === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.id); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.type === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.type); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.showName === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.showName); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.picurl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.picurl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.picurlSelected === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.picurlSelected); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.h5Link === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.h5Link); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.link === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.link); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.linkType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 8, value.linkType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !value.bizKey.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 9, value.bizKey); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.desc === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 10, value.desc); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.actExt === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 11, value.actExt); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !equals(value.report, emptyMap())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 12, tmp2_cached[12], value.report); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_e1xr7c_k$(encoder, value instanceof KActivityTab ? value : THROW_CCE()); + } + } + class KActivityTab { + constructor(id, title, type, showName, picurl, picurlSelected, h5Link, link, linkType, bizKey, desc, actExt, report) { + Companion_getInstance_332(); + id = id === VOID ? 0 : id; + title = title === VOID ? '' : title; + type = type === VOID ? 0 : type; + showName = showName === VOID ? '' : showName; + picurl = picurl === VOID ? '' : picurl; + picurlSelected = picurlSelected === VOID ? '' : picurlSelected; + h5Link = h5Link === VOID ? '' : h5Link; + link = link === VOID ? '' : link; + linkType = linkType === VOID ? 0 : linkType; + bizKey = bizKey === VOID ? new Long(0, 0) : bizKey; + desc = desc === VOID ? '' : desc; + actExt = actExt === VOID ? '' : actExt; + report = report === VOID ? emptyMap() : report; + this.id = id; + this.title = title; + this.type = type; + this.showName = showName; + this.picurl = picurl; + this.picurlSelected = picurlSelected; + this.h5Link = h5Link; + this.link = link; + this.linkType = linkType; + this.bizKey = bizKey; + this.desc = desc; + this.actExt = actExt; + this.report = report; + } + get_id_kntnx8_k$() { + return this.id; + } + get_title_iz32un_k$() { + return this.title; + } + get_type_wovaf7_k$() { + return this.type; + } + get_showName_xmc06p_k$() { + return this.showName; + } + get_picurl_i29vam_k$() { + return this.picurl; + } + get_picurlSelected_gqjdsn_k$() { + return this.picurlSelected; + } + get_h5Link_dgwnlc_k$() { + return this.h5Link; + } + get_link_wopumb_k$() { + return this.link; + } + get_linkType_c1xqsj_k$() { + return this.linkType; + } + get_bizKey_bg0z11_k$() { + return this.bizKey; + } + get_desc_woknve_k$() { + return this.desc; + } + get_actExt_avkn5k_k$() { + return this.actExt; + } + get_report_iye43h_k$() { + return this.report; + } + component1_7eebsc_k$() { + return this.id; + } + component2_7eebsb_k$() { + return this.title; + } + component3_7eebsa_k$() { + return this.type; + } + component4_7eebs9_k$() { + return this.showName; + } + component5_7eebs8_k$() { + return this.picurl; + } + component6_7eebs7_k$() { + return this.picurlSelected; + } + component7_7eebs6_k$() { + return this.h5Link; + } + component8_7eebs5_k$() { + return this.link; + } + component9_7eebs4_k$() { + return this.linkType; + } + component10_gazzfo_k$() { + return this.bizKey; + } + component11_gazzfn_k$() { + return this.desc; + } + component12_gazzfm_k$() { + return this.actExt; + } + component13_gazzfl_k$() { + return this.report; + } + copy_o16byn_k$(id, title, type, showName, picurl, picurlSelected, h5Link, link, linkType, bizKey, desc, actExt, report) { + return new KActivityTab(id, title, type, showName, picurl, picurlSelected, h5Link, link, linkType, bizKey, desc, actExt, report); + } + copy(id, title, type, showName, picurl, picurlSelected, h5Link, link, linkType, bizKey, desc, actExt, report, $super) { + id = id === VOID ? this.id : id; + title = title === VOID ? this.title : title; + type = type === VOID ? this.type : type; + showName = showName === VOID ? this.showName : showName; + picurl = picurl === VOID ? this.picurl : picurl; + picurlSelected = picurlSelected === VOID ? this.picurlSelected : picurlSelected; + h5Link = h5Link === VOID ? this.h5Link : h5Link; + link = link === VOID ? this.link : link; + linkType = linkType === VOID ? this.linkType : linkType; + bizKey = bizKey === VOID ? this.bizKey : bizKey; + desc = desc === VOID ? this.desc : desc; + actExt = actExt === VOID ? this.actExt : actExt; + report = report === VOID ? this.report : report; + return this.copy_o16byn_k$(id, title, type, showName, picurl, picurlSelected, h5Link, link, linkType, bizKey, desc, actExt, report); + } + toString() { + return 'KActivityTab(id=' + this.id + ', title=' + this.title + ', type=' + this.type + ', showName=' + this.showName + ', picurl=' + this.picurl + ', picurlSelected=' + this.picurlSelected + ', h5Link=' + this.h5Link + ', link=' + this.link + ', linkType=' + this.linkType + ', bizKey=' + this.bizKey.toString() + ', desc=' + this.desc + ', actExt=' + this.actExt + ', report=' + this.report + ')'; + } + hashCode() { + var result = this.id; + result = imul(result, 31) + getStringHashCode(this.title) | 0; + result = imul(result, 31) + this.type | 0; + result = imul(result, 31) + getStringHashCode(this.showName) | 0; + result = imul(result, 31) + getStringHashCode(this.picurl) | 0; + result = imul(result, 31) + getStringHashCode(this.picurlSelected) | 0; + result = imul(result, 31) + getStringHashCode(this.h5Link) | 0; + result = imul(result, 31) + getStringHashCode(this.link) | 0; + result = imul(result, 31) + this.linkType | 0; + result = imul(result, 31) + this.bizKey.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.desc) | 0; + result = imul(result, 31) + getStringHashCode(this.actExt) | 0; + result = imul(result, 31) + hashCode(this.report) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KActivityTab)) + return false; + var tmp0_other_with_cast = other instanceof KActivityTab ? other : THROW_CCE(); + if (!(this.id === tmp0_other_with_cast.id)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.type === tmp0_other_with_cast.type)) + return false; + if (!(this.showName === tmp0_other_with_cast.showName)) + return false; + if (!(this.picurl === tmp0_other_with_cast.picurl)) + return false; + if (!(this.picurlSelected === tmp0_other_with_cast.picurlSelected)) + return false; + if (!(this.h5Link === tmp0_other_with_cast.h5Link)) + return false; + if (!(this.link === tmp0_other_with_cast.link)) + return false; + if (!(this.linkType === tmp0_other_with_cast.linkType)) + return false; + if (!this.bizKey.equals(tmp0_other_with_cast.bizKey)) + return false; + if (!(this.desc === tmp0_other_with_cast.desc)) + return false; + if (!(this.actExt === tmp0_other_with_cast.actExt)) + return false; + if (!equals(this.report, tmp0_other_with_cast.report)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KActivityTab_wxotzn_k$(seen1, id, title, type, showName, picurl, picurlSelected, h5Link, link, linkType, bizKey, desc, actExt, report, serializationConstructorMarker) { + Companion_getInstance_332(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_319().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.id = 0; + else + $this.id = id; + if (0 === (seen1 & 2)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 4)) + $this.type = 0; + else + $this.type = type; + if (0 === (seen1 & 8)) + $this.showName = ''; + else + $this.showName = showName; + if (0 === (seen1 & 16)) + $this.picurl = ''; + else + $this.picurl = picurl; + if (0 === (seen1 & 32)) + $this.picurlSelected = ''; + else + $this.picurlSelected = picurlSelected; + if (0 === (seen1 & 64)) + $this.h5Link = ''; + else + $this.h5Link = h5Link; + if (0 === (seen1 & 128)) + $this.link = ''; + else + $this.link = link; + if (0 === (seen1 & 256)) + $this.linkType = 0; + else + $this.linkType = linkType; + if (0 === (seen1 & 512)) + $this.bizKey = new Long(0, 0); + else + $this.bizKey = bizKey; + if (0 === (seen1 & 1024)) + $this.desc = ''; + else + $this.desc = desc; + if (0 === (seen1 & 2048)) + $this.actExt = ''; + else + $this.actExt = actExt; + if (0 === (seen1 & 4096)) + $this.report = emptyMap(); + else + $this.report = report; + return $this; + } + } + class Companion_333 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.Dimension'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_320(); + } + } + class $serializer_320 { + constructor() { + $serializer_instance_320 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KDimension', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('width', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('height', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('rotate', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = new Long(0, 0); + var tmp6_local2 = new Long(0, 0); + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KDimension_0.new_com_bapis_bilibili_app_viewunite_common_KDimension_jytexu_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_vx37mw_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.width.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.width); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.height.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.height); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.rotate.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.rotate); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_vx37mw_k$(encoder, value instanceof KDimension_0 ? value : THROW_CCE()); + } + } + class KDimension_0 { + constructor(width, height, rotate) { + Companion_instance_333; + width = width === VOID ? new Long(0, 0) : width; + height = height === VOID ? new Long(0, 0) : height; + rotate = rotate === VOID ? new Long(0, 0) : rotate; + this.width = width; + this.height = height; + this.rotate = rotate; + } + get_width_j0q4yl_k$() { + return this.width; + } + get_height_e7t92o_k$() { + return this.height; + } + get_rotate_j3ybms_k$() { + return this.rotate; + } + component1_7eebsc_k$() { + return this.width; + } + component2_7eebsb_k$() { + return this.height; + } + component3_7eebsa_k$() { + return this.rotate; + } + copy_kj2gr5_k$(width, height, rotate) { + return new KDimension_0(width, height, rotate); + } + copy(width, height, rotate, $super) { + width = width === VOID ? this.width : width; + height = height === VOID ? this.height : height; + rotate = rotate === VOID ? this.rotate : rotate; + return this.copy_kj2gr5_k$(width, height, rotate); + } + toString() { + return 'KDimension(width=' + this.width.toString() + ', height=' + this.height.toString() + ', rotate=' + this.rotate.toString() + ')'; + } + hashCode() { + var result = this.width.hashCode(); + result = imul(result, 31) + this.height.hashCode() | 0; + result = imul(result, 31) + this.rotate.hashCode() | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KDimension_0)) + return false; + var tmp0_other_with_cast = other instanceof KDimension_0 ? other : THROW_CCE(); + if (!this.width.equals(tmp0_other_with_cast.width)) + return false; + if (!this.height.equals(tmp0_other_with_cast.height)) + return false; + if (!this.rotate.equals(tmp0_other_with_cast.rotate)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KDimension_jytexu_k$(seen1, width, height, rotate, serializationConstructorMarker) { + Companion_instance_333; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_320().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.width = new Long(0, 0); + else + $this.width = width; + if (0 === (seen1 & 2)) + $this.height = new Long(0, 0); + else + $this.height = height; + if (0 === (seen1 & 4)) + $this.rotate = new Long(0, 0); + else + $this.rotate = rotate; + return $this; + } + } + class Companion_334 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.Staff'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_321(); + } + } + class $serializer_321 { + constructor() { + $serializer_instance_321 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KStaff', this, 9); + tmp0_serialDesc.addElement_5pzumi_k$('mid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('attention', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('name', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('face', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('official', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('vip', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('labelStyle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('fans', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_324()), get_nullable($serializer_getInstance_322()), IntSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = 0; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = 0; + var tmp12_local8 = null; + var tmp13_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp13_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp13_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_324(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_322(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp13_input.decodeIntElement_941u6a_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + } else + while (tmp1_flag) { + tmp2_index = tmp13_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp13_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_324(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_322(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp13_input.decodeIntElement_941u6a_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp13_input.endStructure_1xqz0n_k$(tmp0_desc); + return KStaff.new_com_bapis_bilibili_app_viewunite_common_KStaff_4wb63b_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, null); + } + serialize_dle52m_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.mid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.mid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.attention === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.attention); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.name === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.name); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.face === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.face); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.official == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 5, $serializer_getInstance_324(), value.official); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.vip == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 6, $serializer_getInstance_322(), value.vip); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.labelStyle === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 7, value.labelStyle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.fans === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 8, value.fans); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_dle52m_k$(encoder, value instanceof KStaff ? value : THROW_CCE()); + } + } + class KStaff { + constructor(mid, attention, title, name, face, official, vip, labelStyle, fans) { + Companion_instance_334; + mid = mid === VOID ? new Long(0, 0) : mid; + attention = attention === VOID ? 0 : attention; + title = title === VOID ? '' : title; + name = name === VOID ? '' : name; + face = face === VOID ? '' : face; + official = official === VOID ? null : official; + vip = vip === VOID ? null : vip; + labelStyle = labelStyle === VOID ? 0 : labelStyle; + fans = fans === VOID ? '' : fans; + this.mid = mid; + this.attention = attention; + this.title = title; + this.name = name; + this.face = face; + this.official = official; + this.vip = vip; + this.labelStyle = labelStyle; + this.fans = fans; + } + get_mid_18j0o1_k$() { + return this.mid; + } + get_attention_2nseid_k$() { + return this.attention; + } + get_title_iz32un_k$() { + return this.title; + } + get_name_woqyms_k$() { + return this.name; + } + get_face_woluhy_k$() { + return this.face; + } + get_official_qkjhys_k$() { + return this.official; + } + get_vip_18itzg_k$() { + return this.vip; + } + get_labelStyle_ne7gyu_k$() { + return this.labelStyle; + } + get_fans_wolurt_k$() { + return this.fans; + } + component1_7eebsc_k$() { + return this.mid; + } + component2_7eebsb_k$() { + return this.attention; + } + component3_7eebsa_k$() { + return this.title; + } + component4_7eebs9_k$() { + return this.name; + } + component5_7eebs8_k$() { + return this.face; + } + component6_7eebs7_k$() { + return this.official; + } + component7_7eebs6_k$() { + return this.vip; + } + component8_7eebs5_k$() { + return this.labelStyle; + } + component9_7eebs4_k$() { + return this.fans; + } + copy_sv39ii_k$(mid, attention, title, name, face, official, vip, labelStyle, fans) { + return new KStaff(mid, attention, title, name, face, official, vip, labelStyle, fans); + } + copy(mid, attention, title, name, face, official, vip, labelStyle, fans, $super) { + mid = mid === VOID ? this.mid : mid; + attention = attention === VOID ? this.attention : attention; + title = title === VOID ? this.title : title; + name = name === VOID ? this.name : name; + face = face === VOID ? this.face : face; + official = official === VOID ? this.official : official; + vip = vip === VOID ? this.vip : vip; + labelStyle = labelStyle === VOID ? this.labelStyle : labelStyle; + fans = fans === VOID ? this.fans : fans; + return this.copy_sv39ii_k$(mid, attention, title, name, face, official, vip, labelStyle, fans); + } + toString() { + return 'KStaff(mid=' + this.mid.toString() + ', attention=' + this.attention + ', title=' + this.title + ', name=' + this.name + ', face=' + this.face + ', official=' + this.official + ', vip=' + this.vip + ', labelStyle=' + this.labelStyle + ', fans=' + this.fans + ')'; + } + hashCode() { + var result = this.mid.hashCode(); + result = imul(result, 31) + this.attention | 0; + result = imul(result, 31) + getStringHashCode(this.title) | 0; + result = imul(result, 31) + getStringHashCode(this.name) | 0; + result = imul(result, 31) + getStringHashCode(this.face) | 0; + result = imul(result, 31) + (this.official == null ? 0 : this.official.hashCode()) | 0; + result = imul(result, 31) + (this.vip == null ? 0 : this.vip.hashCode()) | 0; + result = imul(result, 31) + this.labelStyle | 0; + result = imul(result, 31) + getStringHashCode(this.fans) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KStaff)) + return false; + var tmp0_other_with_cast = other instanceof KStaff ? other : THROW_CCE(); + if (!this.mid.equals(tmp0_other_with_cast.mid)) + return false; + if (!(this.attention === tmp0_other_with_cast.attention)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.name === tmp0_other_with_cast.name)) + return false; + if (!(this.face === tmp0_other_with_cast.face)) + return false; + if (!equals(this.official, tmp0_other_with_cast.official)) + return false; + if (!equals(this.vip, tmp0_other_with_cast.vip)) + return false; + if (!(this.labelStyle === tmp0_other_with_cast.labelStyle)) + return false; + if (!(this.fans === tmp0_other_with_cast.fans)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KStaff_4wb63b_k$(seen1, mid, attention, title, name, face, official, vip, labelStyle, fans, serializationConstructorMarker) { + Companion_instance_334; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_321().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.mid = new Long(0, 0); + else + $this.mid = mid; + if (0 === (seen1 & 2)) + $this.attention = 0; + else + $this.attention = attention; + if (0 === (seen1 & 4)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 8)) + $this.name = ''; + else + $this.name = name; + if (0 === (seen1 & 16)) + $this.face = ''; + else + $this.face = face; + if (0 === (seen1 & 32)) + $this.official = null; + else + $this.official = official; + if (0 === (seen1 & 64)) + $this.vip = null; + else + $this.vip = vip; + if (0 === (seen1 & 128)) + $this.labelStyle = 0; + else + $this.labelStyle = labelStyle; + if (0 === (seen1 & 256)) + $this.fans = ''; + else + $this.fans = fans; + return $this; + } + } + class Companion_335 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.Vip'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_322(); + } + } + class $serializer_322 { + constructor() { + $serializer_instance_322 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KVip', this, 5); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('vipStatus', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('themeType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('label', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('isVip', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), get_nullable($serializer_getInstance_323()), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = 0; + var tmp6_local2 = 0; + var tmp7_local3 = null; + var tmp8_local4 = 0; + var tmp9_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp9_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_323(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + } else + while (tmp1_flag) { + tmp2_index = tmp9_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_323(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp9_input.endStructure_1xqz0n_k$(tmp0_desc); + return KVip.new_com_bapis_bilibili_app_viewunite_common_KVip_8jfbx8_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); + } + serialize_su83gx_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.type === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.type); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.vipStatus === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.vipStatus); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.themeType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.themeType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.label == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_323(), value.label); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.isVip === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 4, value.isVip); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_su83gx_k$(encoder, value instanceof KVip ? value : THROW_CCE()); + } + } + class KVip { + constructor(type, vipStatus, themeType, label, isVip) { + Companion_instance_335; + type = type === VOID ? 0 : type; + vipStatus = vipStatus === VOID ? 0 : vipStatus; + themeType = themeType === VOID ? 0 : themeType; + label = label === VOID ? null : label; + isVip = isVip === VOID ? 0 : isVip; + this.type = type; + this.vipStatus = vipStatus; + this.themeType = themeType; + this.label = label; + this.isVip = isVip; + } + get_type_wovaf7_k$() { + return this.type; + } + get_vipStatus_eu9yyi_k$() { + return this.vipStatus; + } + get_themeType_8svn5m_k$() { + return this.themeType; + } + get_label_iuj8p7_k$() { + return this.label; + } + get_isVip_it73vu_k$() { + return this.isVip; + } + component1_7eebsc_k$() { + return this.type; + } + component2_7eebsb_k$() { + return this.vipStatus; + } + component3_7eebsa_k$() { + return this.themeType; + } + component4_7eebs9_k$() { + return this.label; + } + component5_7eebs8_k$() { + return this.isVip; + } + copy_q4xzqs_k$(type, vipStatus, themeType, label, isVip) { + return new KVip(type, vipStatus, themeType, label, isVip); + } + copy(type, vipStatus, themeType, label, isVip, $super) { + type = type === VOID ? this.type : type; + vipStatus = vipStatus === VOID ? this.vipStatus : vipStatus; + themeType = themeType === VOID ? this.themeType : themeType; + label = label === VOID ? this.label : label; + isVip = isVip === VOID ? this.isVip : isVip; + return this.copy_q4xzqs_k$(type, vipStatus, themeType, label, isVip); + } + toString() { + return 'KVip(type=' + this.type + ', vipStatus=' + this.vipStatus + ', themeType=' + this.themeType + ', label=' + this.label + ', isVip=' + this.isVip + ')'; + } + hashCode() { + var result = this.type; + result = imul(result, 31) + this.vipStatus | 0; + result = imul(result, 31) + this.themeType | 0; + result = imul(result, 31) + (this.label == null ? 0 : this.label.hashCode()) | 0; + result = imul(result, 31) + this.isVip | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KVip)) + return false; + var tmp0_other_with_cast = other instanceof KVip ? other : THROW_CCE(); + if (!(this.type === tmp0_other_with_cast.type)) + return false; + if (!(this.vipStatus === tmp0_other_with_cast.vipStatus)) + return false; + if (!(this.themeType === tmp0_other_with_cast.themeType)) + return false; + if (!equals(this.label, tmp0_other_with_cast.label)) + return false; + if (!(this.isVip === tmp0_other_with_cast.isVip)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KVip_8jfbx8_k$(seen1, type, vipStatus, themeType, label, isVip, serializationConstructorMarker) { + Companion_instance_335; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_322().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.type = 0; + else + $this.type = type; + if (0 === (seen1 & 2)) + $this.vipStatus = 0; + else + $this.vipStatus = vipStatus; + if (0 === (seen1 & 4)) + $this.themeType = 0; + else + $this.themeType = themeType; + if (0 === (seen1 & 8)) + $this.label = null; + else + $this.label = label; + if (0 === (seen1 & 16)) + $this.isVip = 0; + else + $this.isVip = isVip; + return $this; + } + } + class Companion_336 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.VipLabel'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_323(); + } + } + class $serializer_323 { + constructor() { + $serializer_instance_323 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KVipLabel', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('path', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('text', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('labelTheme', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KVipLabel.new_com_bapis_bilibili_app_viewunite_common_KVipLabel_cpl5b2_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_lfxydd_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.path === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.path); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.text === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.text); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.labelTheme === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.labelTheme); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_lfxydd_k$(encoder, value instanceof KVipLabel ? value : THROW_CCE()); + } + } + class KVipLabel { + constructor(path, text, labelTheme) { + Companion_instance_336; + path = path === VOID ? '' : path; + text = text === VOID ? '' : text; + labelTheme = labelTheme === VOID ? '' : labelTheme; + this.path = path; + this.text = text; + this.labelTheme = labelTheme; + } + get_path_wos8ry_k$() { + return this.path; + } + get_text_wouvsm_k$() { + return this.text; + } + get_labelTheme_nej6wu_k$() { + return this.labelTheme; + } + component1_7eebsc_k$() { + return this.path; + } + component2_7eebsb_k$() { + return this.text; + } + component3_7eebsa_k$() { + return this.labelTheme; + } + copy_nc7k0r_k$(path, text, labelTheme) { + return new KVipLabel(path, text, labelTheme); + } + copy(path, text, labelTheme, $super) { + path = path === VOID ? this.path : path; + text = text === VOID ? this.text : text; + labelTheme = labelTheme === VOID ? this.labelTheme : labelTheme; + return this.copy_nc7k0r_k$(path, text, labelTheme); + } + toString() { + return 'KVipLabel(path=' + this.path + ', text=' + this.text + ', labelTheme=' + this.labelTheme + ')'; + } + hashCode() { + var result = getStringHashCode(this.path); + result = imul(result, 31) + getStringHashCode(this.text) | 0; + result = imul(result, 31) + getStringHashCode(this.labelTheme) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KVipLabel)) + return false; + var tmp0_other_with_cast = other instanceof KVipLabel ? other : THROW_CCE(); + if (!(this.path === tmp0_other_with_cast.path)) + return false; + if (!(this.text === tmp0_other_with_cast.text)) + return false; + if (!(this.labelTheme === tmp0_other_with_cast.labelTheme)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KVipLabel_cpl5b2_k$(seen1, path, text, labelTheme, serializationConstructorMarker) { + Companion_instance_336; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_323().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.path = ''; + else + $this.path = path; + if (0 === (seen1 & 2)) + $this.text = ''; + else + $this.text = text; + if (0 === (seen1 & 4)) + $this.labelTheme = ''; + else + $this.labelTheme = labelTheme; + return $this; + } + } + class Companion_337 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.OfficialVerify'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_324(); + } + } + class $serializer_324 { + constructor() { + $serializer_instance_324 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KOfficialVerify', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('desc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KOfficialVerify.new_com_bapis_bilibili_app_viewunite_common_KOfficialVerify_narki9_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_6h2a5w_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.type === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.type); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.desc === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.desc); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_6h2a5w_k$(encoder, value instanceof KOfficialVerify ? value : THROW_CCE()); + } + } + class KOfficialVerify { + constructor(type, desc) { + Companion_instance_337; + type = type === VOID ? 0 : type; + desc = desc === VOID ? '' : desc; + this.type = type; + this.desc = desc; + } + get_type_wovaf7_k$() { + return this.type; + } + get_desc_woknve_k$() { + return this.desc; + } + component1_7eebsc_k$() { + return this.type; + } + component2_7eebsb_k$() { + return this.desc; + } + copy_xhhsuv_k$(type, desc) { + return new KOfficialVerify(type, desc); + } + copy(type, desc, $super) { + type = type === VOID ? this.type : type; + desc = desc === VOID ? this.desc : desc; + return this.copy_xhhsuv_k$(type, desc); + } + toString() { + return 'KOfficialVerify(type=' + this.type + ', desc=' + this.desc + ')'; + } + hashCode() { + var result = this.type; + result = imul(result, 31) + getStringHashCode(this.desc) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KOfficialVerify)) + return false; + var tmp0_other_with_cast = other instanceof KOfficialVerify ? other : THROW_CCE(); + if (!(this.type === tmp0_other_with_cast.type)) + return false; + if (!(this.desc === tmp0_other_with_cast.desc)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KOfficialVerify_narki9_k$(seen1, type, desc, serializationConstructorMarker) { + Companion_instance_337; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_324().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.type = 0; + else + $this.type = type; + if (0 === (seen1 & 2)) + $this.desc = ''; + else + $this.desc = desc; + return $this; + } + } + class Companion_338 { + constructor() { + Companion_instance_338 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer($serializer_getInstance_321()), null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.viewunite.common.Staffs'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_325(); + } + } + class $serializer_325 { + constructor() { + $serializer_instance_325 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KStaffs', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('staff', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_338().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0], StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp7_cached = Companion_getInstance_338().$childSerializers_1; + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp7_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp7_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KStaffs_0.new_com_bapis_bilibili_app_viewunite_common_KStaffs_4tfveo_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_xgb4xn_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_338().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.staff, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.staff); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.title); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_xgb4xn_k$(encoder, value instanceof KStaffs_0 ? value : THROW_CCE()); + } + } + class KStaffs_0 { + constructor(staff, title) { + Companion_getInstance_338(); + staff = staff === VOID ? emptyList() : staff; + title = title === VOID ? '' : title; + this.staff = staff; + this.title = title; + } + get_staff_iypwvr_k$() { + return this.staff; + } + get_title_iz32un_k$() { + return this.title; + } + component1_7eebsc_k$() { + return this.staff; + } + component2_7eebsb_k$() { + return this.title; + } + copy_jpt8gi_k$(staff, title) { + return new KStaffs_0(staff, title); + } + copy(staff, title, $super) { + staff = staff === VOID ? this.staff : staff; + title = title === VOID ? this.title : title; + return this.copy_jpt8gi_k$(staff, title); + } + toString() { + return 'KStaffs(staff=' + this.staff + ', title=' + this.title + ')'; + } + hashCode() { + var result = hashCode(this.staff); + result = imul(result, 31) + getStringHashCode(this.title) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KStaffs_0)) + return false; + var tmp0_other_with_cast = other instanceof KStaffs_0 ? other : THROW_CCE(); + if (!equals(this.staff, tmp0_other_with_cast.staff)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KStaffs_4tfveo_k$(seen1, staff, title, serializationConstructorMarker) { + Companion_getInstance_338(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_325().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.staff = emptyList(); + else + $this.staff = staff; + if (0 === (seen1 & 2)) + $this.title = ''; + else + $this.title = title; + return $this; + } + } + class Companion_339 { + constructor() { + Companion_instance_339 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, new ArrayListSerializer(LongSerializer_getInstance()), null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.viewunite.common.Owner'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_326(); + } + } + class $serializer_326 { + constructor() { + $serializer_instance_326 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KOwner', this, 17); + tmp0_serialDesc.addElement_5pzumi_k$('avatar', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('url', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('fans', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('arcCount', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('attention', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('attentionRelation', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('pubLocation', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('vip', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('titleUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('face', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('mid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + tmp0_serialDesc.addElement_5pzumi_k$('officialVerify', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(13)); + tmp0_serialDesc.addElement_5pzumi_k$('live', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(14)); + tmp0_serialDesc.addElement_5pzumi_k$('fansNum', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(15)); + tmp0_serialDesc.addElement_5pzumi_k$('assists', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(16)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('seasonCount', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(17)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_339().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_181()), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_322()), StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), get_nullable($serializer_getInstance_324()), get_nullable($serializer_getInstance_327()), LongSerializer_getInstance(), tmp0_cached[15], StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = 0; + var tmp10_local6 = 0; + var tmp11_local7 = null; + var tmp12_local8 = null; + var tmp13_local9 = null; + var tmp14_local10 = null; + var tmp15_local11 = new Long(0, 0); + var tmp16_local12 = null; + var tmp17_local13 = null; + var tmp18_local14 = new Long(0, 0); + var tmp19_local15 = null; + var tmp20_local16 = null; + var tmp21_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp22_cached = Companion_getInstance_339().$childSerializers_1; + if (tmp21_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp21_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_181(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp21_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp21_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp21_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_322(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp21_input.decodeLongElement_994anb_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + tmp16_local12 = tmp21_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 12, $serializer_getInstance_324(), tmp16_local12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + tmp17_local13 = tmp21_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 13, $serializer_getInstance_327(), tmp17_local13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + tmp18_local14 = tmp21_input.decodeLongElement_994anb_k$(tmp0_desc, 14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + tmp19_local15 = tmp21_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 15, tmp22_cached[15], tmp19_local15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + tmp20_local16 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 16); + tmp3_bitMask0 = tmp3_bitMask0 | 65536; + } else + while (tmp1_flag) { + tmp2_index = tmp21_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp21_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_181(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp21_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp21_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp21_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_322(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp21_input.decodeLongElement_994anb_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + case 12: + tmp16_local12 = tmp21_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 12, $serializer_getInstance_324(), tmp16_local12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + break; + case 13: + tmp17_local13 = tmp21_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 13, $serializer_getInstance_327(), tmp17_local13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + break; + case 14: + tmp18_local14 = tmp21_input.decodeLongElement_994anb_k$(tmp0_desc, 14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + break; + case 15: + tmp19_local15 = tmp21_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 15, tmp22_cached[15], tmp19_local15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + break; + case 16: + tmp20_local16 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 16); + tmp3_bitMask0 = tmp3_bitMask0 | 65536; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp21_input.endStructure_1xqz0n_k$(tmp0_desc); + return KOwner.new_com_bapis_bilibili_app_viewunite_common_KOwner_zdlzjy_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, tmp18_local14, tmp19_local15, tmp20_local16, null); + } + serialize_xcvibf_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_339().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.avatar == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_181(), value.avatar); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.url === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.url); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.fans === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.fans); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.arcCount === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.arcCount); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.attention === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 5, value.attention); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.attentionRelation === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 6, value.attentionRelation); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.pubLocation === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.pubLocation); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.vip == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 8, $serializer_getInstance_322(), value.vip); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.titleUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 9, value.titleUrl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.face === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 10, value.face); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !value.mid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 11, value.mid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !(value.officialVerify == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 12, $serializer_getInstance_324(), value.officialVerify); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 13) ? true : !(value.live == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 13, $serializer_getInstance_327(), value.live); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 14) ? true : !value.fansNum.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 14, value.fansNum); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 15) ? true : !equals(value.assists, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 15, tmp2_cached[15], value.assists); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 16) ? true : !(value.seasonCount === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 16, value.seasonCount); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_xcvibf_k$(encoder, value instanceof KOwner ? value : THROW_CCE()); + } + } + class KOwner { + constructor(avatar, url, title, fans, arcCount, attention, attentionRelation, pubLocation, vip, titleUrl, face, mid, officialVerify, live, fansNum, assists, seasonCount) { + Companion_getInstance_339(); + avatar = avatar === VOID ? null : avatar; + url = url === VOID ? '' : url; + title = title === VOID ? '' : title; + fans = fans === VOID ? '' : fans; + arcCount = arcCount === VOID ? '' : arcCount; + attention = attention === VOID ? 0 : attention; + attentionRelation = attentionRelation === VOID ? 0 : attentionRelation; + pubLocation = pubLocation === VOID ? '' : pubLocation; + vip = vip === VOID ? null : vip; + titleUrl = titleUrl === VOID ? '' : titleUrl; + face = face === VOID ? '' : face; + mid = mid === VOID ? new Long(0, 0) : mid; + officialVerify = officialVerify === VOID ? null : officialVerify; + live = live === VOID ? null : live; + fansNum = fansNum === VOID ? new Long(0, 0) : fansNum; + assists = assists === VOID ? emptyList() : assists; + seasonCount = seasonCount === VOID ? '' : seasonCount; + this.avatar = avatar; + this.url = url; + this.title = title; + this.fans = fans; + this.arcCount = arcCount; + this.attention = attention; + this.attentionRelation = attentionRelation; + this.pubLocation = pubLocation; + this.vip = vip; + this.titleUrl = titleUrl; + this.face = face; + this.mid = mid; + this.officialVerify = officialVerify; + this.live = live; + this.fansNum = fansNum; + this.assists = assists; + this.seasonCount = seasonCount; + } + get_avatar_b5pjz6_k$() { + return this.avatar; + } + get_url_18iuii_k$() { + return this.url; + } + get_title_iz32un_k$() { + return this.title; + } + get_fans_wolurt_k$() { + return this.fans; + } + get_arcCount_aa3b1i_k$() { + return this.arcCount; + } + get_attention_2nseid_k$() { + return this.attention; + } + get_attentionRelation_hjl7cf_k$() { + return this.attentionRelation; + } + get_pubLocation_e60eax_k$() { + return this.pubLocation; + } + get_vip_18itzg_k$() { + return this.vip; + } + get_titleUrl_8ativ4_k$() { + return this.titleUrl; + } + get_face_woluhy_k$() { + return this.face; + } + get_mid_18j0o1_k$() { + return this.mid; + } + get_officialVerify_91wfgt_k$() { + return this.officialVerify; + } + get_live_woput1_k$() { + return this.live; + } + get_fansNum_gmigxv_k$() { + return this.fansNum; + } + get_assists_adzagv_k$() { + return this.assists; + } + get_seasonCount_r05ml_k$() { + return this.seasonCount; + } + attentionRelationEnum() { + return Companion_getInstance_221().fromValue(this.attentionRelation); + } + component1_7eebsc_k$() { + return this.avatar; + } + component2_7eebsb_k$() { + return this.url; + } + component3_7eebsa_k$() { + return this.title; + } + component4_7eebs9_k$() { + return this.fans; + } + component5_7eebs8_k$() { + return this.arcCount; + } + component6_7eebs7_k$() { + return this.attention; + } + component7_7eebs6_k$() { + return this.attentionRelation; + } + component8_7eebs5_k$() { + return this.pubLocation; + } + component9_7eebs4_k$() { + return this.vip; + } + component10_gazzfo_k$() { + return this.titleUrl; + } + component11_gazzfn_k$() { + return this.face; + } + component12_gazzfm_k$() { + return this.mid; + } + component13_gazzfl_k$() { + return this.officialVerify; + } + component14_gazzfk_k$() { + return this.live; + } + component15_gazzfj_k$() { + return this.fansNum; + } + component16_gazzfi_k$() { + return this.assists; + } + component17_gazzfh_k$() { + return this.seasonCount; + } + copy_cx7ti5_k$(avatar, url, title, fans, arcCount, attention, attentionRelation, pubLocation, vip, titleUrl, face, mid, officialVerify, live, fansNum, assists, seasonCount) { + return new KOwner(avatar, url, title, fans, arcCount, attention, attentionRelation, pubLocation, vip, titleUrl, face, mid, officialVerify, live, fansNum, assists, seasonCount); + } + copy(avatar, url, title, fans, arcCount, attention, attentionRelation, pubLocation, vip, titleUrl, face, mid, officialVerify, live, fansNum, assists, seasonCount, $super) { + avatar = avatar === VOID ? this.avatar : avatar; + url = url === VOID ? this.url : url; + title = title === VOID ? this.title : title; + fans = fans === VOID ? this.fans : fans; + arcCount = arcCount === VOID ? this.arcCount : arcCount; + attention = attention === VOID ? this.attention : attention; + attentionRelation = attentionRelation === VOID ? this.attentionRelation : attentionRelation; + pubLocation = pubLocation === VOID ? this.pubLocation : pubLocation; + vip = vip === VOID ? this.vip : vip; + titleUrl = titleUrl === VOID ? this.titleUrl : titleUrl; + face = face === VOID ? this.face : face; + mid = mid === VOID ? this.mid : mid; + officialVerify = officialVerify === VOID ? this.officialVerify : officialVerify; + live = live === VOID ? this.live : live; + fansNum = fansNum === VOID ? this.fansNum : fansNum; + assists = assists === VOID ? this.assists : assists; + seasonCount = seasonCount === VOID ? this.seasonCount : seasonCount; + return this.copy_cx7ti5_k$(avatar, url, title, fans, arcCount, attention, attentionRelation, pubLocation, vip, titleUrl, face, mid, officialVerify, live, fansNum, assists, seasonCount); + } + toString() { + return 'KOwner(avatar=' + this.avatar + ', url=' + this.url + ', title=' + this.title + ', fans=' + this.fans + ', arcCount=' + this.arcCount + ', attention=' + this.attention + ', attentionRelation=' + this.attentionRelation + ', pubLocation=' + this.pubLocation + ', vip=' + this.vip + ', titleUrl=' + this.titleUrl + ', face=' + this.face + ', mid=' + this.mid.toString() + ', officialVerify=' + this.officialVerify + ', live=' + this.live + ', fansNum=' + this.fansNum.toString() + ', assists=' + this.assists + ', seasonCount=' + this.seasonCount + ')'; + } + hashCode() { + var result = this.avatar == null ? 0 : this.avatar.hashCode(); + result = imul(result, 31) + getStringHashCode(this.url) | 0; + result = imul(result, 31) + getStringHashCode(this.title) | 0; + result = imul(result, 31) + getStringHashCode(this.fans) | 0; + result = imul(result, 31) + getStringHashCode(this.arcCount) | 0; + result = imul(result, 31) + this.attention | 0; + result = imul(result, 31) + this.attentionRelation | 0; + result = imul(result, 31) + getStringHashCode(this.pubLocation) | 0; + result = imul(result, 31) + (this.vip == null ? 0 : this.vip.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.titleUrl) | 0; + result = imul(result, 31) + getStringHashCode(this.face) | 0; + result = imul(result, 31) + this.mid.hashCode() | 0; + result = imul(result, 31) + (this.officialVerify == null ? 0 : this.officialVerify.hashCode()) | 0; + result = imul(result, 31) + (this.live == null ? 0 : this.live.hashCode()) | 0; + result = imul(result, 31) + this.fansNum.hashCode() | 0; + result = imul(result, 31) + hashCode(this.assists) | 0; + result = imul(result, 31) + getStringHashCode(this.seasonCount) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KOwner)) + return false; + var tmp0_other_with_cast = other instanceof KOwner ? other : THROW_CCE(); + if (!equals(this.avatar, tmp0_other_with_cast.avatar)) + return false; + if (!(this.url === tmp0_other_with_cast.url)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.fans === tmp0_other_with_cast.fans)) + return false; + if (!(this.arcCount === tmp0_other_with_cast.arcCount)) + return false; + if (!(this.attention === tmp0_other_with_cast.attention)) + return false; + if (!(this.attentionRelation === tmp0_other_with_cast.attentionRelation)) + return false; + if (!(this.pubLocation === tmp0_other_with_cast.pubLocation)) + return false; + if (!equals(this.vip, tmp0_other_with_cast.vip)) + return false; + if (!(this.titleUrl === tmp0_other_with_cast.titleUrl)) + return false; + if (!(this.face === tmp0_other_with_cast.face)) + return false; + if (!this.mid.equals(tmp0_other_with_cast.mid)) + return false; + if (!equals(this.officialVerify, tmp0_other_with_cast.officialVerify)) + return false; + if (!equals(this.live, tmp0_other_with_cast.live)) + return false; + if (!this.fansNum.equals(tmp0_other_with_cast.fansNum)) + return false; + if (!equals(this.assists, tmp0_other_with_cast.assists)) + return false; + if (!(this.seasonCount === tmp0_other_with_cast.seasonCount)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KOwner_zdlzjy_k$(seen1, avatar, url, title, fans, arcCount, attention, attentionRelation, pubLocation, vip, titleUrl, face, mid, officialVerify, live, fansNum, assists, seasonCount, serializationConstructorMarker) { + Companion_getInstance_339(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_326().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.avatar = null; + else + $this.avatar = avatar; + if (0 === (seen1 & 2)) + $this.url = ''; + else + $this.url = url; + if (0 === (seen1 & 4)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 8)) + $this.fans = ''; + else + $this.fans = fans; + if (0 === (seen1 & 16)) + $this.arcCount = ''; + else + $this.arcCount = arcCount; + if (0 === (seen1 & 32)) + $this.attention = 0; + else + $this.attention = attention; + if (0 === (seen1 & 64)) + $this.attentionRelation = 0; + else + $this.attentionRelation = attentionRelation; + if (0 === (seen1 & 128)) + $this.pubLocation = ''; + else + $this.pubLocation = pubLocation; + if (0 === (seen1 & 256)) + $this.vip = null; + else + $this.vip = vip; + if (0 === (seen1 & 512)) + $this.titleUrl = ''; + else + $this.titleUrl = titleUrl; + if (0 === (seen1 & 1024)) + $this.face = ''; + else + $this.face = face; + if (0 === (seen1 & 2048)) + $this.mid = new Long(0, 0); + else + $this.mid = mid; + if (0 === (seen1 & 4096)) + $this.officialVerify = null; + else + $this.officialVerify = officialVerify; + if (0 === (seen1 & 8192)) + $this.live = null; + else + $this.live = live; + if (0 === (seen1 & 16384)) + $this.fansNum = new Long(0, 0); + else + $this.fansNum = fansNum; + if (0 === (seen1 & 32768)) + $this.assists = emptyList(); + else + $this.assists = assists; + if (0 === (seen1 & 65536)) + $this.seasonCount = ''; + else + $this.seasonCount = seasonCount; + return $this; + } + } + class Companion_340 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.Live'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_327(); + } + } + class $serializer_327 { + constructor() { + $serializer_instance_327 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KLive', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('mid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('roomId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('uri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('endpageUri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = new Long(0, 0); + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KLive_0.new_com_bapis_bilibili_app_viewunite_common_KLive_qz9psg_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_bocdqk_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.mid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.mid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.roomId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.roomId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.uri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.uri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.endpageUri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.endpageUri); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_bocdqk_k$(encoder, value instanceof KLive_0 ? value : THROW_CCE()); + } + } + class KLive_0 { + constructor(mid, roomId, uri, endpageUri) { + Companion_instance_340; + mid = mid === VOID ? new Long(0, 0) : mid; + roomId = roomId === VOID ? new Long(0, 0) : roomId; + uri = uri === VOID ? '' : uri; + endpageUri = endpageUri === VOID ? '' : endpageUri; + this.mid = mid; + this.roomId = roomId; + this.uri = uri; + this.endpageUri = endpageUri; + } + get_mid_18j0o1_k$() { + return this.mid; + } + get_roomId_j3vckf_k$() { + return this.roomId; + } + get_uri_18iuil_k$() { + return this.uri; + } + get_endpageUri_dssuy3_k$() { + return this.endpageUri; + } + component1_7eebsc_k$() { + return this.mid; + } + component2_7eebsb_k$() { + return this.roomId; + } + component3_7eebsa_k$() { + return this.uri; + } + component4_7eebs9_k$() { + return this.endpageUri; + } + copy_vvj0jz_k$(mid, roomId, uri, endpageUri) { + return new KLive_0(mid, roomId, uri, endpageUri); + } + copy(mid, roomId, uri, endpageUri, $super) { + mid = mid === VOID ? this.mid : mid; + roomId = roomId === VOID ? this.roomId : roomId; + uri = uri === VOID ? this.uri : uri; + endpageUri = endpageUri === VOID ? this.endpageUri : endpageUri; + return this.copy_vvj0jz_k$(mid, roomId, uri, endpageUri); + } + toString() { + return 'KLive(mid=' + this.mid.toString() + ', roomId=' + this.roomId.toString() + ', uri=' + this.uri + ', endpageUri=' + this.endpageUri + ')'; + } + hashCode() { + var result = this.mid.hashCode(); + result = imul(result, 31) + this.roomId.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.uri) | 0; + result = imul(result, 31) + getStringHashCode(this.endpageUri) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KLive_0)) + return false; + var tmp0_other_with_cast = other instanceof KLive_0 ? other : THROW_CCE(); + if (!this.mid.equals(tmp0_other_with_cast.mid)) + return false; + if (!this.roomId.equals(tmp0_other_with_cast.roomId)) + return false; + if (!(this.uri === tmp0_other_with_cast.uri)) + return false; + if (!(this.endpageUri === tmp0_other_with_cast.endpageUri)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KLive_qz9psg_k$(seen1, mid, roomId, uri, endpageUri, serializationConstructorMarker) { + Companion_instance_340; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_327().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.mid = new Long(0, 0); + else + $this.mid = mid; + if (0 === (seen1 & 2)) + $this.roomId = new Long(0, 0); + else + $this.roomId = roomId; + if (0 === (seen1 & 4)) + $this.uri = ''; + else + $this.uri = uri; + if (0 === (seen1 & 8)) + $this.endpageUri = ''; + else + $this.endpageUri = endpageUri; + return $this; + } + } + class Companion_341 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.PugvSeasonSelection'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_328(); + } + } + class $serializer_328 { + constructor() { + $serializer_instance_328 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KPugvSeasonSelection', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('nav', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_337())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_337(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_337(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KPugvSeasonSelection_0.new_com_bapis_bilibili_app_viewunite_common_KPugvSeasonSelection_3md53p_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_r08nx5_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.nav == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_337(), value.nav); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_r08nx5_k$(encoder, value instanceof KPugvSeasonSelection_0 ? value : THROW_CCE()); + } + } + class KPugvSeasonSelection_0 { + constructor(nav) { + Companion_instance_341; + nav = nav === VOID ? null : nav; + this.nav = nav; + } + get_nav_18j03q_k$() { + return this.nav; + } + component1_7eebsc_k$() { + return this.nav; + } + copy_xzfxm5_k$(nav) { + return new KPugvSeasonSelection_0(nav); + } + copy(nav, $super) { + nav = nav === VOID ? this.nav : nav; + return this.copy_xzfxm5_k$(nav); + } + toString() { + return 'KPugvSeasonSelection(nav=' + this.nav + ')'; + } + hashCode() { + return this.nav == null ? 0 : this.nav.hashCode(); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KPugvSeasonSelection_0)) + return false; + var tmp0_other_with_cast = other instanceof KPugvSeasonSelection_0 ? other : THROW_CCE(); + if (!equals(this.nav, tmp0_other_with_cast.nav)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KPugvSeasonSelection_3md53p_k$(seen1, nav, serializationConstructorMarker) { + Companion_instance_341; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_328().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.nav = null; + else + $this.nav = nav; + return $this; + } + } + class Companion_342 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.PugvSeasonPrimaryHotRank'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_329(); + } + } + class $serializer_329 { + constructor() { + $serializer_instance_329 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KPugvSeasonPrimaryHotRank', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('text', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('link', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KPugvSeasonPrimaryHotRank.new_com_bapis_bilibili_app_viewunite_common_KPugvSeasonPrimaryHotRank_emxjma_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_cnbtzq_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.text === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.text); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.link === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.link); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_cnbtzq_k$(encoder, value instanceof KPugvSeasonPrimaryHotRank ? value : THROW_CCE()); + } + } + class KPugvSeasonPrimaryHotRank { + constructor(text, link) { + Companion_instance_342; + text = text === VOID ? '' : text; + link = link === VOID ? '' : link; + this.text = text; + this.link = link; + } + get_text_wouvsm_k$() { + return this.text; + } + get_link_wopumb_k$() { + return this.link; + } + component1_7eebsc_k$() { + return this.text; + } + component2_7eebsb_k$() { + return this.link; + } + copy_plwnsl_k$(text, link) { + return new KPugvSeasonPrimaryHotRank(text, link); + } + copy(text, link, $super) { + text = text === VOID ? this.text : text; + link = link === VOID ? this.link : link; + return this.copy_plwnsl_k$(text, link); + } + toString() { + return 'KPugvSeasonPrimaryHotRank(text=' + this.text + ', link=' + this.link + ')'; + } + hashCode() { + var result = getStringHashCode(this.text); + result = imul(result, 31) + getStringHashCode(this.link) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KPugvSeasonPrimaryHotRank)) + return false; + var tmp0_other_with_cast = other instanceof KPugvSeasonPrimaryHotRank ? other : THROW_CCE(); + if (!(this.text === tmp0_other_with_cast.text)) + return false; + if (!(this.link === tmp0_other_with_cast.link)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KPugvSeasonPrimaryHotRank_emxjma_k$(seen1, text, link, serializationConstructorMarker) { + Companion_instance_342; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_329().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.text = ''; + else + $this.text = text; + if (0 === (seen1 & 2)) + $this.link = ''; + else + $this.link = link; + return $this; + } + } + class Companion_343 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.PugvSeasonPrimaryBadge'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_330(); + } + } + class $serializer_330 { + constructor() { + $serializer_instance_330 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KPugvSeasonPrimaryBadge', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('icon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('link', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KPugvSeasonPrimaryBadge.new_com_bapis_bilibili_app_viewunite_common_KPugvSeasonPrimaryBadge_6f3drs_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_eetcww_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.icon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.icon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.link === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.link); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_eetcww_k$(encoder, value instanceof KPugvSeasonPrimaryBadge ? value : THROW_CCE()); + } + } + class KPugvSeasonPrimaryBadge { + constructor(icon, link) { + Companion_instance_343; + icon = icon === VOID ? '' : icon; + link = link === VOID ? '' : link; + this.icon = icon; + this.link = link; + } + get_icon_wont8i_k$() { + return this.icon; + } + get_link_wopumb_k$() { + return this.link; + } + component1_7eebsc_k$() { + return this.icon; + } + component2_7eebsb_k$() { + return this.link; + } + copy_plwnsl_k$(icon, link) { + return new KPugvSeasonPrimaryBadge(icon, link); + } + copy(icon, link, $super) { + icon = icon === VOID ? this.icon : icon; + link = link === VOID ? this.link : link; + return this.copy_plwnsl_k$(icon, link); + } + toString() { + return 'KPugvSeasonPrimaryBadge(icon=' + this.icon + ', link=' + this.link + ')'; + } + hashCode() { + var result = getStringHashCode(this.icon); + result = imul(result, 31) + getStringHashCode(this.link) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KPugvSeasonPrimaryBadge)) + return false; + var tmp0_other_with_cast = other instanceof KPugvSeasonPrimaryBadge ? other : THROW_CCE(); + if (!(this.icon === tmp0_other_with_cast.icon)) + return false; + if (!(this.link === tmp0_other_with_cast.link)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KPugvSeasonPrimaryBadge_6f3drs_k$(seen1, icon, link, serializationConstructorMarker) { + Companion_instance_343; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_330().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.icon = ''; + else + $this.icon = icon; + if (0 === (seen1 & 2)) + $this.link = ''; + else + $this.link = link; + return $this; + } + } + class Companion_344 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.PugvSeasonPrimaryRankInfo'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_331(); + } + } + class $serializer_331 { + constructor() { + $serializer_instance_331 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KPugvSeasonPrimaryRankInfo', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('hotRank', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_329())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_329(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_329(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KPugvSeasonPrimaryRankInfo.new_com_bapis_bilibili_app_viewunite_common_KPugvSeasonPrimaryRankInfo_9b35yz_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_ugigvr_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.hotRank == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_329(), value.hotRank); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_ugigvr_k$(encoder, value instanceof KPugvSeasonPrimaryRankInfo ? value : THROW_CCE()); + } + } + class KPugvSeasonPrimaryRankInfo { + constructor(hotRank) { + Companion_instance_344; + hotRank = hotRank === VOID ? null : hotRank; + this.hotRank = hotRank; + } + get_hotRank_jfmvxs_k$() { + return this.hotRank; + } + component1_7eebsc_k$() { + return this.hotRank; + } + copy_mk2eph_k$(hotRank) { + return new KPugvSeasonPrimaryRankInfo(hotRank); + } + copy(hotRank, $super) { + hotRank = hotRank === VOID ? this.hotRank : hotRank; + return this.copy_mk2eph_k$(hotRank); + } + toString() { + return 'KPugvSeasonPrimaryRankInfo(hotRank=' + this.hotRank + ')'; + } + hashCode() { + return this.hotRank == null ? 0 : this.hotRank.hashCode(); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KPugvSeasonPrimaryRankInfo)) + return false; + var tmp0_other_with_cast = other instanceof KPugvSeasonPrimaryRankInfo ? other : THROW_CCE(); + if (!equals(this.hotRank, tmp0_other_with_cast.hotRank)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KPugvSeasonPrimaryRankInfo_9b35yz_k$(seen1, hotRank, serializationConstructorMarker) { + Companion_instance_344; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_331().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.hotRank = null; + else + $this.hotRank = hotRank; + return $this; + } + } + class Companion_345 { + constructor() { + Companion_instance_345 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, new ArrayListSerializer($serializer_getInstance_333())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.viewunite.common.PugvSeasonPrimarySellPointInfo'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_332(); + } + } + class $serializer_332 { + constructor() { + $serializer_instance_332 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KPugvSeasonPrimarySellPointInfo', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('sellPoints', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_345().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), tmp0_cached[1]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp7_cached = Companion_getInstance_345().$childSerializers_1; + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KPugvSeasonPrimarySellPointInfo.new_com_bapis_bilibili_app_viewunite_common_KPugvSeasonPrimarySellPointInfo_3ny8g6_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_7fl215_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_345().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.type === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.type); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !equals(value.sellPoints, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 1, tmp2_cached[1], value.sellPoints); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_7fl215_k$(encoder, value instanceof KPugvSeasonPrimarySellPointInfo ? value : THROW_CCE()); + } + } + class KPugvSeasonPrimarySellPointInfo { + constructor(type, sellPoints) { + Companion_getInstance_345(); + type = type === VOID ? 0 : type; + sellPoints = sellPoints === VOID ? emptyList() : sellPoints; + this.type = type; + this.sellPoints = sellPoints; + } + get_type_wovaf7_k$() { + return this.type; + } + get_sellPoints_owqaoy_k$() { + return this.sellPoints; + } + typeEnum() { + return Companion_getInstance_223().fromValue(this.type); + } + component1_7eebsc_k$() { + return this.type; + } + component2_7eebsb_k$() { + return this.sellPoints; + } + copy_ha5q71_k$(type, sellPoints) { + return new KPugvSeasonPrimarySellPointInfo(type, sellPoints); + } + copy(type, sellPoints, $super) { + type = type === VOID ? this.type : type; + sellPoints = sellPoints === VOID ? this.sellPoints : sellPoints; + return this.copy_ha5q71_k$(type, sellPoints); + } + toString() { + return 'KPugvSeasonPrimarySellPointInfo(type=' + this.type + ', sellPoints=' + this.sellPoints + ')'; + } + hashCode() { + var result = this.type; + result = imul(result, 31) + hashCode(this.sellPoints) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KPugvSeasonPrimarySellPointInfo)) + return false; + var tmp0_other_with_cast = other instanceof KPugvSeasonPrimarySellPointInfo ? other : THROW_CCE(); + if (!(this.type === tmp0_other_with_cast.type)) + return false; + if (!equals(this.sellPoints, tmp0_other_with_cast.sellPoints)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KPugvSeasonPrimarySellPointInfo_3ny8g6_k$(seen1, type, sellPoints, serializationConstructorMarker) { + Companion_getInstance_345(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_332().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.type = 0; + else + $this.type = type; + if (0 === (seen1 & 2)) + $this.sellPoints = emptyList(); + else + $this.sellPoints = sellPoints; + return $this; + } + } + class Companion_346 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.PugvSeasonPrimarySellPoint'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_333(); + } + } + class $serializer_333 { + constructor() { + $serializer_instance_333 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KPugvSeasonPrimarySellPoint', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('detail', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KPugvSeasonPrimarySellPoint.new_com_bapis_bilibili_app_viewunite_common_KPugvSeasonPrimarySellPoint_5aoifn_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_22bx17_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.detail === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.detail); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_22bx17_k$(encoder, value instanceof KPugvSeasonPrimarySellPoint ? value : THROW_CCE()); + } + } + class KPugvSeasonPrimarySellPoint { + constructor(title, detail) { + Companion_instance_346; + title = title === VOID ? '' : title; + detail = detail === VOID ? '' : detail; + this.title = title; + this.detail = detail; + } + get_title_iz32un_k$() { + return this.title; + } + get_detail_cbtnx6_k$() { + return this.detail; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.detail; + } + copy_plwnsl_k$(title, detail) { + return new KPugvSeasonPrimarySellPoint(title, detail); + } + copy(title, detail, $super) { + title = title === VOID ? this.title : title; + detail = detail === VOID ? this.detail : detail; + return this.copy_plwnsl_k$(title, detail); + } + toString() { + return 'KPugvSeasonPrimarySellPoint(title=' + this.title + ', detail=' + this.detail + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.detail) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KPugvSeasonPrimarySellPoint)) + return false; + var tmp0_other_with_cast = other instanceof KPugvSeasonPrimarySellPoint ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.detail === tmp0_other_with_cast.detail)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KPugvSeasonPrimarySellPoint_5aoifn_k$(seen1, title, detail, serializationConstructorMarker) { + Companion_instance_346; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_333().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.detail = ''; + else + $this.detail = detail; + return $this; + } + } + class Companion_347 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.PugvSeasonPrimaryCustomInfo'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_334(); + } + } + class $serializer_334 { + constructor() { + $serializer_instance_334 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KPugvSeasonPrimaryCustomInfo', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('expiryInfo', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KPugvSeasonPrimaryCustomInfo.new_com_bapis_bilibili_app_viewunite_common_KPugvSeasonPrimaryCustomInfo_qqn9i1_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_gv4rg_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.expiryInfo === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.expiryInfo); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_gv4rg_k$(encoder, value instanceof KPugvSeasonPrimaryCustomInfo ? value : THROW_CCE()); + } + } + class KPugvSeasonPrimaryCustomInfo { + constructor(expiryInfo) { + Companion_instance_347; + expiryInfo = expiryInfo === VOID ? '' : expiryInfo; + this.expiryInfo = expiryInfo; + } + get_expiryInfo_xof5rq_k$() { + return this.expiryInfo; + } + component1_7eebsc_k$() { + return this.expiryInfo; + } + copy_a35qlh_k$(expiryInfo) { + return new KPugvSeasonPrimaryCustomInfo(expiryInfo); + } + copy(expiryInfo, $super) { + expiryInfo = expiryInfo === VOID ? this.expiryInfo : expiryInfo; + return this.copy_a35qlh_k$(expiryInfo); + } + toString() { + return 'KPugvSeasonPrimaryCustomInfo(expiryInfo=' + this.expiryInfo + ')'; + } + hashCode() { + return getStringHashCode(this.expiryInfo); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KPugvSeasonPrimaryCustomInfo)) + return false; + var tmp0_other_with_cast = other instanceof KPugvSeasonPrimaryCustomInfo ? other : THROW_CCE(); + if (!(this.expiryInfo === tmp0_other_with_cast.expiryInfo)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KPugvSeasonPrimaryCustomInfo_qqn9i1_k$(seen1, expiryInfo, serializationConstructorMarker) { + Companion_instance_347; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_334().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.expiryInfo = ''; + else + $this.expiryInfo = expiryInfo; + return $this; + } + } + class Companion_348 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.PugvSeasonPrimaryInfo'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_335(); + } + } + class $serializer_335 { + constructor() { + $serializer_instance_335 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KPugvSeasonPrimaryInfo', this, 8); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('subtitle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('statInfo', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('rankInfo', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('sellPointInfo', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('customInfo', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('showPayment', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('badge', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_367()), get_nullable($serializer_getInstance_331()), get_nullable($serializer_getInstance_332()), get_nullable($serializer_getInstance_334()), BooleanSerializer_getInstance(), get_nullable($serializer_getInstance_330())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = false; + var tmp11_local7 = null; + var tmp12_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp12_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_367(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_331(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_332(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_334(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp12_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_330(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + } else + while (tmp1_flag) { + tmp2_index = tmp12_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_367(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_331(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_332(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_334(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp12_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_330(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp12_input.endStructure_1xqz0n_k$(tmp0_desc); + return KPugvSeasonPrimaryInfo_0.new_com_bapis_bilibili_app_viewunite_common_KPugvSeasonPrimaryInfo_9bai0i_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null); + } + serialize_i07ys5_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.subtitle === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.subtitle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.statInfo == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_367(), value.statInfo); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.rankInfo == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_331(), value.rankInfo); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.sellPointInfo == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, $serializer_getInstance_332(), value.sellPointInfo); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.customInfo == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 5, $serializer_getInstance_334(), value.customInfo); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.showPayment === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 6, value.showPayment); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.badge == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 7, $serializer_getInstance_330(), value.badge); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_i07ys5_k$(encoder, value instanceof KPugvSeasonPrimaryInfo_0 ? value : THROW_CCE()); + } + } + class KPugvSeasonPrimaryInfo_0 { + constructor(title, subtitle, statInfo, rankInfo, sellPointInfo, customInfo, showPayment, badge) { + Companion_instance_348; + title = title === VOID ? '' : title; + subtitle = subtitle === VOID ? '' : subtitle; + statInfo = statInfo === VOID ? null : statInfo; + rankInfo = rankInfo === VOID ? null : rankInfo; + sellPointInfo = sellPointInfo === VOID ? null : sellPointInfo; + customInfo = customInfo === VOID ? null : customInfo; + showPayment = showPayment === VOID ? false : showPayment; + badge = badge === VOID ? null : badge; + this.title = title; + this.subtitle = subtitle; + this.statInfo = statInfo; + this.rankInfo = rankInfo; + this.sellPointInfo = sellPointInfo; + this.customInfo = customInfo; + this.showPayment = showPayment; + this.badge = badge; + } + get_title_iz32un_k$() { + return this.title; + } + get_subtitle_55eoyp_k$() { + return this.subtitle; + } + get_statInfo_a0lrth_k$() { + return this.statInfo; + } + get_rankInfo_rkohfh_k$() { + return this.rankInfo; + } + get_sellPointInfo_9ihxj1_k$() { + return this.sellPointInfo; + } + get_customInfo_ooyrm0_k$() { + return this.customInfo; + } + get_showPayment_7axj34_k$() { + return this.showPayment; + } + get_badge_ip1cai_k$() { + return this.badge; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.subtitle; + } + component3_7eebsa_k$() { + return this.statInfo; + } + component4_7eebs9_k$() { + return this.rankInfo; + } + component5_7eebs8_k$() { + return this.sellPointInfo; + } + component6_7eebs7_k$() { + return this.customInfo; + } + component7_7eebs6_k$() { + return this.showPayment; + } + component8_7eebs5_k$() { + return this.badge; + } + copy_e14ot0_k$(title, subtitle, statInfo, rankInfo, sellPointInfo, customInfo, showPayment, badge) { + return new KPugvSeasonPrimaryInfo_0(title, subtitle, statInfo, rankInfo, sellPointInfo, customInfo, showPayment, badge); + } + copy(title, subtitle, statInfo, rankInfo, sellPointInfo, customInfo, showPayment, badge, $super) { + title = title === VOID ? this.title : title; + subtitle = subtitle === VOID ? this.subtitle : subtitle; + statInfo = statInfo === VOID ? this.statInfo : statInfo; + rankInfo = rankInfo === VOID ? this.rankInfo : rankInfo; + sellPointInfo = sellPointInfo === VOID ? this.sellPointInfo : sellPointInfo; + customInfo = customInfo === VOID ? this.customInfo : customInfo; + showPayment = showPayment === VOID ? this.showPayment : showPayment; + badge = badge === VOID ? this.badge : badge; + return this.copy_e14ot0_k$(title, subtitle, statInfo, rankInfo, sellPointInfo, customInfo, showPayment, badge); + } + toString() { + return 'KPugvSeasonPrimaryInfo(title=' + this.title + ', subtitle=' + this.subtitle + ', statInfo=' + this.statInfo + ', rankInfo=' + this.rankInfo + ', sellPointInfo=' + this.sellPointInfo + ', customInfo=' + this.customInfo + ', showPayment=' + this.showPayment + ', badge=' + this.badge + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.subtitle) | 0; + result = imul(result, 31) + (this.statInfo == null ? 0 : this.statInfo.hashCode()) | 0; + result = imul(result, 31) + (this.rankInfo == null ? 0 : this.rankInfo.hashCode()) | 0; + result = imul(result, 31) + (this.sellPointInfo == null ? 0 : this.sellPointInfo.hashCode()) | 0; + result = imul(result, 31) + (this.customInfo == null ? 0 : this.customInfo.hashCode()) | 0; + result = imul(result, 31) + getBooleanHashCode(this.showPayment) | 0; + result = imul(result, 31) + (this.badge == null ? 0 : this.badge.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KPugvSeasonPrimaryInfo_0)) + return false; + var tmp0_other_with_cast = other instanceof KPugvSeasonPrimaryInfo_0 ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.subtitle === tmp0_other_with_cast.subtitle)) + return false; + if (!equals(this.statInfo, tmp0_other_with_cast.statInfo)) + return false; + if (!equals(this.rankInfo, tmp0_other_with_cast.rankInfo)) + return false; + if (!equals(this.sellPointInfo, tmp0_other_with_cast.sellPointInfo)) + return false; + if (!equals(this.customInfo, tmp0_other_with_cast.customInfo)) + return false; + if (!(this.showPayment === tmp0_other_with_cast.showPayment)) + return false; + if (!equals(this.badge, tmp0_other_with_cast.badge)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KPugvSeasonPrimaryInfo_9bai0i_k$(seen1, title, subtitle, statInfo, rankInfo, sellPointInfo, customInfo, showPayment, badge, serializationConstructorMarker) { + Companion_instance_348; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_335().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.subtitle = ''; + else + $this.subtitle = subtitle; + if (0 === (seen1 & 4)) + $this.statInfo = null; + else + $this.statInfo = statInfo; + if (0 === (seen1 & 8)) + $this.rankInfo = null; + else + $this.rankInfo = rankInfo; + if (0 === (seen1 & 16)) + $this.sellPointInfo = null; + else + $this.sellPointInfo = sellPointInfo; + if (0 === (seen1 & 32)) + $this.customInfo = null; + else + $this.customInfo = customInfo; + if (0 === (seen1 & 64)) + $this.showPayment = false; + else + $this.showPayment = showPayment; + if (0 === (seen1 & 128)) + $this.badge = null; + else + $this.badge = badge; + return $this; + } + } + class Companion_349 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.PugvCooperationApplication'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_336(); + } + } + class $serializer_336 { + constructor() { + $serializer_instance_336 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KPugvCooperationApplication', this, 5); + tmp0_serialDesc.addElement_5pzumi_k$('link', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('subtitle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('buttonText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('icon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp9_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + } else + while (tmp1_flag) { + tmp2_index = tmp9_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp9_input.endStructure_1xqz0n_k$(tmp0_desc); + return KPugvCooperationApplication_0.new_com_bapis_bilibili_app_viewunite_common_KPugvCooperationApplication_25zmiq_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); + } + serialize_cd6kmn_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.link === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.link); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.subtitle === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.subtitle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.buttonText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.buttonText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.icon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.icon); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_cd6kmn_k$(encoder, value instanceof KPugvCooperationApplication_0 ? value : THROW_CCE()); + } + } + class KPugvCooperationApplication_0 { + constructor(link, title, subtitle, buttonText, icon) { + Companion_instance_349; + link = link === VOID ? '' : link; + title = title === VOID ? '' : title; + subtitle = subtitle === VOID ? '' : subtitle; + buttonText = buttonText === VOID ? '' : buttonText; + icon = icon === VOID ? '' : icon; + this.link = link; + this.title = title; + this.subtitle = subtitle; + this.buttonText = buttonText; + this.icon = icon; + } + get_link_wopumb_k$() { + return this.link; + } + get_title_iz32un_k$() { + return this.title; + } + get_subtitle_55eoyp_k$() { + return this.subtitle; + } + get_buttonText_e8s7aw_k$() { + return this.buttonText; + } + get_icon_wont8i_k$() { + return this.icon; + } + component1_7eebsc_k$() { + return this.link; + } + component2_7eebsb_k$() { + return this.title; + } + component3_7eebsa_k$() { + return this.subtitle; + } + component4_7eebs9_k$() { + return this.buttonText; + } + component5_7eebs8_k$() { + return this.icon; + } + copy_bit9gb_k$(link, title, subtitle, buttonText, icon) { + return new KPugvCooperationApplication_0(link, title, subtitle, buttonText, icon); + } + copy(link, title, subtitle, buttonText, icon, $super) { + link = link === VOID ? this.link : link; + title = title === VOID ? this.title : title; + subtitle = subtitle === VOID ? this.subtitle : subtitle; + buttonText = buttonText === VOID ? this.buttonText : buttonText; + icon = icon === VOID ? this.icon : icon; + return this.copy_bit9gb_k$(link, title, subtitle, buttonText, icon); + } + toString() { + return 'KPugvCooperationApplication(link=' + this.link + ', title=' + this.title + ', subtitle=' + this.subtitle + ', buttonText=' + this.buttonText + ', icon=' + this.icon + ')'; + } + hashCode() { + var result = getStringHashCode(this.link); + result = imul(result, 31) + getStringHashCode(this.title) | 0; + result = imul(result, 31) + getStringHashCode(this.subtitle) | 0; + result = imul(result, 31) + getStringHashCode(this.buttonText) | 0; + result = imul(result, 31) + getStringHashCode(this.icon) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KPugvCooperationApplication_0)) + return false; + var tmp0_other_with_cast = other instanceof KPugvCooperationApplication_0 ? other : THROW_CCE(); + if (!(this.link === tmp0_other_with_cast.link)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.subtitle === tmp0_other_with_cast.subtitle)) + return false; + if (!(this.buttonText === tmp0_other_with_cast.buttonText)) + return false; + if (!(this.icon === tmp0_other_with_cast.icon)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KPugvCooperationApplication_25zmiq_k$(seen1, link, title, subtitle, buttonText, icon, serializationConstructorMarker) { + Companion_instance_349; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_336().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.link = ''; + else + $this.link = link; + if (0 === (seen1 & 2)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 4)) + $this.subtitle = ''; + else + $this.subtitle = subtitle; + if (0 === (seen1 & 8)) + $this.buttonText = ''; + else + $this.buttonText = buttonText; + if (0 === (seen1 & 16)) + $this.icon = ''; + else + $this.icon = icon; + return $this; + } + } + class Companion_350 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.PugvSeasonNav'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_337(); + } + } + class $serializer_337 { + constructor() { + $serializer_instance_337 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KPugvSeasonNav', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('moreText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('desc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KPugvSeasonNav.new_com_bapis_bilibili_app_viewunite_common_KPugvSeasonNav_3g1uyf_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_x3f42m_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.moreText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.moreText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.desc === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.desc); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_x3f42m_k$(encoder, value instanceof KPugvSeasonNav ? value : THROW_CCE()); + } + } + class KPugvSeasonNav { + constructor(title, moreText, desc) { + Companion_instance_350; + title = title === VOID ? '' : title; + moreText = moreText === VOID ? '' : moreText; + desc = desc === VOID ? '' : desc; + this.title = title; + this.moreText = moreText; + this.desc = desc; + } + get_title_iz32un_k$() { + return this.title; + } + get_moreText_zfacyd_k$() { + return this.moreText; + } + get_desc_woknve_k$() { + return this.desc; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.moreText; + } + component3_7eebsa_k$() { + return this.desc; + } + copy_nc7k0r_k$(title, moreText, desc) { + return new KPugvSeasonNav(title, moreText, desc); + } + copy(title, moreText, desc, $super) { + title = title === VOID ? this.title : title; + moreText = moreText === VOID ? this.moreText : moreText; + desc = desc === VOID ? this.desc : desc; + return this.copy_nc7k0r_k$(title, moreText, desc); + } + toString() { + return 'KPugvSeasonNav(title=' + this.title + ', moreText=' + this.moreText + ', desc=' + this.desc + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.moreText) | 0; + result = imul(result, 31) + getStringHashCode(this.desc) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KPugvSeasonNav)) + return false; + var tmp0_other_with_cast = other instanceof KPugvSeasonNav ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.moreText === tmp0_other_with_cast.moreText)) + return false; + if (!(this.desc === tmp0_other_with_cast.desc)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KPugvSeasonNav_3g1uyf_k$(seen1, title, moreText, desc, serializationConstructorMarker) { + Companion_instance_350; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_337().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.moreText = ''; + else + $this.moreText = moreText; + if (0 === (seen1 & 4)) + $this.desc = ''; + else + $this.desc = desc; + return $this; + } + } + class Companion_351 { + constructor() { + Companion_instance_351 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, new ArrayListSerializer($serializer_getInstance_339()), null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.viewunite.common.PugvShoppingNotice'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_338(); + } + } + class $serializer_338 { + constructor() { + $serializer_instance_338 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KPugvShoppingNotice', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('nav', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('contents', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('link', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_351().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_337()), tmp0_cached[1], StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp8_cached = Companion_getInstance_351().$childSerializers_1; + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_337(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp8_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_337(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp8_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KPugvShoppingNotice_0.new_com_bapis_bilibili_app_viewunite_common_KPugvShoppingNotice_midap2_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_n7cxvg_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_351().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.nav == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_337(), value.nav); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !equals(value.contents, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 1, tmp2_cached[1], value.contents); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.link === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.link); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_n7cxvg_k$(encoder, value instanceof KPugvShoppingNotice_0 ? value : THROW_CCE()); + } + } + class KPugvShoppingNotice_0 { + constructor(nav, contents, link) { + Companion_getInstance_351(); + nav = nav === VOID ? null : nav; + contents = contents === VOID ? emptyList() : contents; + link = link === VOID ? '' : link; + this.nav = nav; + this.contents = contents; + this.link = link; + } + get_nav_18j03q_k$() { + return this.nav; + } + get_contents_tuemzn_k$() { + return this.contents; + } + get_link_wopumb_k$() { + return this.link; + } + component1_7eebsc_k$() { + return this.nav; + } + component2_7eebsb_k$() { + return this.contents; + } + component3_7eebsa_k$() { + return this.link; + } + copy_t2n3bv_k$(nav, contents, link) { + return new KPugvShoppingNotice_0(nav, contents, link); + } + copy(nav, contents, link, $super) { + nav = nav === VOID ? this.nav : nav; + contents = contents === VOID ? this.contents : contents; + link = link === VOID ? this.link : link; + return this.copy_t2n3bv_k$(nav, contents, link); + } + toString() { + return 'KPugvShoppingNotice(nav=' + this.nav + ', contents=' + this.contents + ', link=' + this.link + ')'; + } + hashCode() { + var result = this.nav == null ? 0 : this.nav.hashCode(); + result = imul(result, 31) + hashCode(this.contents) | 0; + result = imul(result, 31) + getStringHashCode(this.link) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KPugvShoppingNotice_0)) + return false; + var tmp0_other_with_cast = other instanceof KPugvShoppingNotice_0 ? other : THROW_CCE(); + if (!equals(this.nav, tmp0_other_with_cast.nav)) + return false; + if (!equals(this.contents, tmp0_other_with_cast.contents)) + return false; + if (!(this.link === tmp0_other_with_cast.link)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KPugvShoppingNotice_midap2_k$(seen1, nav, contents, link, serializationConstructorMarker) { + Companion_getInstance_351(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_338().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.nav = null; + else + $this.nav = nav; + if (0 === (seen1 & 2)) + $this.contents = emptyList(); + else + $this.contents = contents; + if (0 === (seen1 & 4)) + $this.link = ''; + else + $this.link = link; + return $this; + } + } + class Companion_352 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.PugvShoppingNoticeContent'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_339(); + } + } + class $serializer_339 { + constructor() { + $serializer_instance_339 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KPugvShoppingNoticeContent', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('number', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('content', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('isBold', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), BooleanSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = false; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KPugvShoppingNoticeContent.new_com_bapis_bilibili_app_viewunite_common_KPugvShoppingNoticeContent_941a8m_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_oym955_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.number === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.number); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.content === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.content); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.isBold === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 2, value.isBold); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_oym955_k$(encoder, value instanceof KPugvShoppingNoticeContent ? value : THROW_CCE()); + } + } + class KPugvShoppingNoticeContent { + constructor(number, content, isBold) { + Companion_instance_352; + number = number === VOID ? '' : number; + content = content === VOID ? '' : content; + isBold = isBold === VOID ? false : isBold; + this.number = number; + this.content = content; + this.isBold = isBold; + } + get_number_hay53m_k$() { + return this.number; + } + get_content_h02jrk_k$() { + return this.content; + } + get_isBold_evv9aw_k$() { + return this.isBold; + } + component1_7eebsc_k$() { + return this.number; + } + component2_7eebsb_k$() { + return this.content; + } + component3_7eebsa_k$() { + return this.isBold; + } + copy_bp1kc0_k$(number, content, isBold) { + return new KPugvShoppingNoticeContent(number, content, isBold); + } + copy(number, content, isBold, $super) { + number = number === VOID ? this.number : number; + content = content === VOID ? this.content : content; + isBold = isBold === VOID ? this.isBold : isBold; + return this.copy_bp1kc0_k$(number, content, isBold); + } + toString() { + return 'KPugvShoppingNoticeContent(number=' + this.number + ', content=' + this.content + ', isBold=' + this.isBold + ')'; + } + hashCode() { + var result = getStringHashCode(this.number); + result = imul(result, 31) + getStringHashCode(this.content) | 0; + result = imul(result, 31) + getBooleanHashCode(this.isBold) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KPugvShoppingNoticeContent)) + return false; + var tmp0_other_with_cast = other instanceof KPugvShoppingNoticeContent ? other : THROW_CCE(); + if (!(this.number === tmp0_other_with_cast.number)) + return false; + if (!(this.content === tmp0_other_with_cast.content)) + return false; + if (!(this.isBold === tmp0_other_with_cast.isBold)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KPugvShoppingNoticeContent_941a8m_k$(seen1, number, content, isBold, serializationConstructorMarker) { + Companion_instance_352; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_339().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.number = ''; + else + $this.number = number; + if (0 === (seen1 & 2)) + $this.content = ''; + else + $this.content = content; + if (0 === (seen1 & 4)) + $this.isBold = false; + else + $this.isBold = isBold; + return $this; + } + } + class Companion_353 { + constructor() { + Companion_instance_353 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, new ArrayListSerializer($serializer_getInstance_341())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.viewunite.common.PugvFaq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_340(); + } + } + class $serializer_340 { + constructor() { + $serializer_instance_340 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KPugvFaq', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('nav', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('contents', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_353().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_337()), tmp0_cached[1]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp7_cached = Companion_getInstance_353().$childSerializers_1; + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_337(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_337(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KPugvFaq_0.new_com_bapis_bilibili_app_viewunite_common_KPugvFaq_r00i85_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_sea6a4_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_353().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.nav == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_337(), value.nav); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !equals(value.contents, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 1, tmp2_cached[1], value.contents); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_sea6a4_k$(encoder, value instanceof KPugvFaq_0 ? value : THROW_CCE()); + } + } + class KPugvFaq_0 { + constructor(nav, contents) { + Companion_getInstance_353(); + nav = nav === VOID ? null : nav; + contents = contents === VOID ? emptyList() : contents; + this.nav = nav; + this.contents = contents; + } + get_nav_18j03q_k$() { + return this.nav; + } + get_contents_tuemzn_k$() { + return this.contents; + } + component1_7eebsc_k$() { + return this.nav; + } + component2_7eebsb_k$() { + return this.contents; + } + copy_7lagbz_k$(nav, contents) { + return new KPugvFaq_0(nav, contents); + } + copy(nav, contents, $super) { + nav = nav === VOID ? this.nav : nav; + contents = contents === VOID ? this.contents : contents; + return this.copy_7lagbz_k$(nav, contents); + } + toString() { + return 'KPugvFaq(nav=' + this.nav + ', contents=' + this.contents + ')'; + } + hashCode() { + var result = this.nav == null ? 0 : this.nav.hashCode(); + result = imul(result, 31) + hashCode(this.contents) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KPugvFaq_0)) + return false; + var tmp0_other_with_cast = other instanceof KPugvFaq_0 ? other : THROW_CCE(); + if (!equals(this.nav, tmp0_other_with_cast.nav)) + return false; + if (!equals(this.contents, tmp0_other_with_cast.contents)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KPugvFaq_r00i85_k$(seen1, nav, contents, serializationConstructorMarker) { + Companion_getInstance_353(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_340().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.nav = null; + else + $this.nav = nav; + if (0 === (seen1 & 2)) + $this.contents = emptyList(); + else + $this.contents = contents; + return $this; + } + } + class Companion_354 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.PugvFaqContent'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_341(); + } + } + class $serializer_341 { + constructor() { + $serializer_instance_341 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KPugvFaqContent', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('question', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('answer', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('link', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KPugvFaqContent.new_com_bapis_bilibili_app_viewunite_common_KPugvFaqContent_c6yaci_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_4wmhoh_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.question === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.question); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.answer === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.answer); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.link === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.link); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_4wmhoh_k$(encoder, value instanceof KPugvFaqContent ? value : THROW_CCE()); + } + } + class KPugvFaqContent { + constructor(question, answer, link) { + Companion_instance_354; + question = question === VOID ? '' : question; + answer = answer === VOID ? '' : answer; + link = link === VOID ? '' : link; + this.question = question; + this.answer = answer; + this.link = link; + } + get_question_jy1o6n_k$() { + return this.question; + } + get_answer_b1mrbb_k$() { + return this.answer; + } + get_link_wopumb_k$() { + return this.link; + } + component1_7eebsc_k$() { + return this.question; + } + component2_7eebsb_k$() { + return this.answer; + } + component3_7eebsa_k$() { + return this.link; + } + copy_nc7k0r_k$(question, answer, link) { + return new KPugvFaqContent(question, answer, link); + } + copy(question, answer, link, $super) { + question = question === VOID ? this.question : question; + answer = answer === VOID ? this.answer : answer; + link = link === VOID ? this.link : link; + return this.copy_nc7k0r_k$(question, answer, link); + } + toString() { + return 'KPugvFaqContent(question=' + this.question + ', answer=' + this.answer + ', link=' + this.link + ')'; + } + hashCode() { + var result = getStringHashCode(this.question); + result = imul(result, 31) + getStringHashCode(this.answer) | 0; + result = imul(result, 31) + getStringHashCode(this.link) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KPugvFaqContent)) + return false; + var tmp0_other_with_cast = other instanceof KPugvFaqContent ? other : THROW_CCE(); + if (!(this.question === tmp0_other_with_cast.question)) + return false; + if (!(this.answer === tmp0_other_with_cast.answer)) + return false; + if (!(this.link === tmp0_other_with_cast.link)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KPugvFaqContent_c6yaci_k$(seen1, question, answer, link, serializationConstructorMarker) { + Companion_instance_354; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_341().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.question = ''; + else + $this.question = question; + if (0 === (seen1 & 2)) + $this.answer = ''; + else + $this.answer = answer; + if (0 === (seen1 & 4)) + $this.link = ''; + else + $this.link = link; + return $this; + } + } + class Companion_355 { + constructor() { + Companion_instance_355 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, new ArrayListSerializer($serializer_getInstance_343()), null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.viewunite.common.PugvSeasonRecommend'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_342(); + } + } + class $serializer_342 { + constructor() { + $serializer_instance_342 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KPugvSeasonRecommend', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('nav', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('contents', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('moreInfo', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_355().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_337()), tmp0_cached[1], get_nullable($serializer_getInstance_344())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp8_cached = Companion_getInstance_355().$childSerializers_1; + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_337(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp8_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_344(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_337(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp8_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_344(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KPugvSeasonRecommend_0.new_com_bapis_bilibili_app_viewunite_common_KPugvSeasonRecommend_hi26wz_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_9s6pef_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_355().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.nav == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_337(), value.nav); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !equals(value.contents, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 1, tmp2_cached[1], value.contents); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.moreInfo == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_344(), value.moreInfo); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_9s6pef_k$(encoder, value instanceof KPugvSeasonRecommend_0 ? value : THROW_CCE()); + } + } + class KPugvSeasonRecommend_0 { + constructor(nav, contents, moreInfo) { + Companion_getInstance_355(); + nav = nav === VOID ? null : nav; + contents = contents === VOID ? emptyList() : contents; + moreInfo = moreInfo === VOID ? null : moreInfo; + this.nav = nav; + this.contents = contents; + this.moreInfo = moreInfo; + } + get_nav_18j03q_k$() { + return this.nav; + } + get_contents_tuemzn_k$() { + return this.contents; + } + get_moreInfo_zfh7kk_k$() { + return this.moreInfo; + } + component1_7eebsc_k$() { + return this.nav; + } + component2_7eebsb_k$() { + return this.contents; + } + component3_7eebsa_k$() { + return this.moreInfo; + } + copy_uxyj32_k$(nav, contents, moreInfo) { + return new KPugvSeasonRecommend_0(nav, contents, moreInfo); + } + copy(nav, contents, moreInfo, $super) { + nav = nav === VOID ? this.nav : nav; + contents = contents === VOID ? this.contents : contents; + moreInfo = moreInfo === VOID ? this.moreInfo : moreInfo; + return this.copy_uxyj32_k$(nav, contents, moreInfo); + } + toString() { + return 'KPugvSeasonRecommend(nav=' + this.nav + ', contents=' + this.contents + ', moreInfo=' + this.moreInfo + ')'; + } + hashCode() { + var result = this.nav == null ? 0 : this.nav.hashCode(); + result = imul(result, 31) + hashCode(this.contents) | 0; + result = imul(result, 31) + (this.moreInfo == null ? 0 : this.moreInfo.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KPugvSeasonRecommend_0)) + return false; + var tmp0_other_with_cast = other instanceof KPugvSeasonRecommend_0 ? other : THROW_CCE(); + if (!equals(this.nav, tmp0_other_with_cast.nav)) + return false; + if (!equals(this.contents, tmp0_other_with_cast.contents)) + return false; + if (!equals(this.moreInfo, tmp0_other_with_cast.moreInfo)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KPugvSeasonRecommend_hi26wz_k$(seen1, nav, contents, moreInfo, serializationConstructorMarker) { + Companion_getInstance_355(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_342().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.nav = null; + else + $this.nav = nav; + if (0 === (seen1 & 2)) + $this.contents = emptyList(); + else + $this.contents = contents; + if (0 === (seen1 & 4)) + $this.moreInfo = null; + else + $this.moreInfo = moreInfo; + return $this; + } + } + class Companion_356 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.PugvSeasonRecommendContent'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_343(); + } + } + class $serializer_343 { + constructor() { + $serializer_instance_343 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KPugvSeasonRecommendContent', this, 6); + tmp0_serialDesc.addElement_5pzumi_k$('coverUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('subtitle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('link', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('desc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('seasonId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = new Long(0, 0); + var tmp10_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp10_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + } else + while (tmp1_flag) { + tmp2_index = tmp10_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp10_input.endStructure_1xqz0n_k$(tmp0_desc); + return KPugvSeasonRecommendContent.new_com_bapis_bilibili_app_viewunite_common_KPugvSeasonRecommendContent_uvy92j_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); + } + serialize_oa298c_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.coverUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.coverUrl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.subtitle === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.subtitle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.link === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.link); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.desc === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.desc); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !value.seasonId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 5, value.seasonId); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_oa298c_k$(encoder, value instanceof KPugvSeasonRecommendContent ? value : THROW_CCE()); + } + } + class KPugvSeasonRecommendContent { + constructor(coverUrl, title, subtitle, link, desc, seasonId) { + Companion_instance_356; + coverUrl = coverUrl === VOID ? '' : coverUrl; + title = title === VOID ? '' : title; + subtitle = subtitle === VOID ? '' : subtitle; + link = link === VOID ? '' : link; + desc = desc === VOID ? '' : desc; + seasonId = seasonId === VOID ? new Long(0, 0) : seasonId; + this.coverUrl = coverUrl; + this.title = title; + this.subtitle = subtitle; + this.link = link; + this.desc = desc; + this.seasonId = seasonId; + } + get_coverUrl_xeqhhd_k$() { + return this.coverUrl; + } + get_title_iz32un_k$() { + return this.title; + } + get_subtitle_55eoyp_k$() { + return this.subtitle; + } + get_link_wopumb_k$() { + return this.link; + } + get_desc_woknve_k$() { + return this.desc; + } + get_seasonId_h33f15_k$() { + return this.seasonId; + } + component1_7eebsc_k$() { + return this.coverUrl; + } + component2_7eebsb_k$() { + return this.title; + } + component3_7eebsa_k$() { + return this.subtitle; + } + component4_7eebs9_k$() { + return this.link; + } + component5_7eebs8_k$() { + return this.desc; + } + component6_7eebs7_k$() { + return this.seasonId; + } + copy_xy7ie5_k$(coverUrl, title, subtitle, link, desc, seasonId) { + return new KPugvSeasonRecommendContent(coverUrl, title, subtitle, link, desc, seasonId); + } + copy(coverUrl, title, subtitle, link, desc, seasonId, $super) { + coverUrl = coverUrl === VOID ? this.coverUrl : coverUrl; + title = title === VOID ? this.title : title; + subtitle = subtitle === VOID ? this.subtitle : subtitle; + link = link === VOID ? this.link : link; + desc = desc === VOID ? this.desc : desc; + seasonId = seasonId === VOID ? this.seasonId : seasonId; + return this.copy_xy7ie5_k$(coverUrl, title, subtitle, link, desc, seasonId); + } + toString() { + return 'KPugvSeasonRecommendContent(coverUrl=' + this.coverUrl + ', title=' + this.title + ', subtitle=' + this.subtitle + ', link=' + this.link + ', desc=' + this.desc + ', seasonId=' + this.seasonId.toString() + ')'; + } + hashCode() { + var result = getStringHashCode(this.coverUrl); + result = imul(result, 31) + getStringHashCode(this.title) | 0; + result = imul(result, 31) + getStringHashCode(this.subtitle) | 0; + result = imul(result, 31) + getStringHashCode(this.link) | 0; + result = imul(result, 31) + getStringHashCode(this.desc) | 0; + result = imul(result, 31) + this.seasonId.hashCode() | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KPugvSeasonRecommendContent)) + return false; + var tmp0_other_with_cast = other instanceof KPugvSeasonRecommendContent ? other : THROW_CCE(); + if (!(this.coverUrl === tmp0_other_with_cast.coverUrl)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.subtitle === tmp0_other_with_cast.subtitle)) + return false; + if (!(this.link === tmp0_other_with_cast.link)) + return false; + if (!(this.desc === tmp0_other_with_cast.desc)) + return false; + if (!this.seasonId.equals(tmp0_other_with_cast.seasonId)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KPugvSeasonRecommendContent_uvy92j_k$(seen1, coverUrl, title, subtitle, link, desc, seasonId, serializationConstructorMarker) { + Companion_instance_356; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_343().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.coverUrl = ''; + else + $this.coverUrl = coverUrl; + if (0 === (seen1 & 2)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 4)) + $this.subtitle = ''; + else + $this.subtitle = subtitle; + if (0 === (seen1 & 8)) + $this.link = ''; + else + $this.link = link; + if (0 === (seen1 & 16)) + $this.desc = ''; + else + $this.desc = desc; + if (0 === (seen1 & 32)) + $this.seasonId = new Long(0, 0); + else + $this.seasonId = seasonId; + return $this; + } + } + class Companion_357 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.PugvSeasonRecommendMore'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_344(); + } + } + class $serializer_344 { + constructor() { + $serializer_instance_344 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KPugvSeasonRecommendMore', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('link', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('linkText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KPugvSeasonRecommendMore.new_com_bapis_bilibili_app_viewunite_common_KPugvSeasonRecommendMore_ktqv0b_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_doijbo_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.link === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.link); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.linkText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.linkText); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_doijbo_k$(encoder, value instanceof KPugvSeasonRecommendMore ? value : THROW_CCE()); + } + } + class KPugvSeasonRecommendMore { + constructor(title, link, linkText) { + Companion_instance_357; + title = title === VOID ? '' : title; + link = link === VOID ? '' : link; + linkText = linkText === VOID ? '' : linkText; + this.title = title; + this.link = link; + this.linkText = linkText; + } + get_title_iz32un_k$() { + return this.title; + } + get_link_wopumb_k$() { + return this.link; + } + get_linkText_c1y5f4_k$() { + return this.linkText; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.link; + } + component3_7eebsa_k$() { + return this.linkText; + } + copy_nc7k0r_k$(title, link, linkText) { + return new KPugvSeasonRecommendMore(title, link, linkText); + } + copy(title, link, linkText, $super) { + title = title === VOID ? this.title : title; + link = link === VOID ? this.link : link; + linkText = linkText === VOID ? this.linkText : linkText; + return this.copy_nc7k0r_k$(title, link, linkText); + } + toString() { + return 'KPugvSeasonRecommendMore(title=' + this.title + ', link=' + this.link + ', linkText=' + this.linkText + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.link) | 0; + result = imul(result, 31) + getStringHashCode(this.linkText) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KPugvSeasonRecommendMore)) + return false; + var tmp0_other_with_cast = other instanceof KPugvSeasonRecommendMore ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.link === tmp0_other_with_cast.link)) + return false; + if (!(this.linkText === tmp0_other_with_cast.linkText)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KPugvSeasonRecommendMore_ktqv0b_k$(seen1, title, link, linkText, serializationConstructorMarker) { + Companion_instance_357; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_344().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.link = ''; + else + $this.link = link; + if (0 === (seen1 & 4)) + $this.linkText = ''; + else + $this.linkText = linkText; + return $this; + } + } + class Companion_358 { + constructor() { + Companion_instance_358 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, new ArrayListSerializer($serializer_getInstance_346()), null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.viewunite.common.PugvSeasonPublisher'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_345(); + } + } + class $serializer_345 { + constructor() { + $serializer_instance_345 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KPugvSeasonPublisher', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('nav', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('publisherDesc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('cooperators', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('skuContent', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_358().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_337()), StringSerializer_getInstance(), tmp0_cached[2], get_nullable($serializer_getInstance_347())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp9_cached = Companion_getInstance_358().$childSerializers_1; + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_337(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp9_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_347(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_337(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp9_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_347(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KPugvSeasonPublisher_0.new_com_bapis_bilibili_app_viewunite_common_KPugvSeasonPublisher_3trk8g_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_hce4pj_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_358().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.nav == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_337(), value.nav); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.publisherDesc === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.publisherDesc); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !equals(value.cooperators, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 2, tmp2_cached[2], value.cooperators); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.skuContent == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_347(), value.skuContent); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_hce4pj_k$(encoder, value instanceof KPugvSeasonPublisher_0 ? value : THROW_CCE()); + } + } + class KPugvSeasonPublisher_0 { + constructor(nav, publisherDesc, cooperators, skuContent) { + Companion_getInstance_358(); + nav = nav === VOID ? null : nav; + publisherDesc = publisherDesc === VOID ? '' : publisherDesc; + cooperators = cooperators === VOID ? emptyList() : cooperators; + skuContent = skuContent === VOID ? null : skuContent; + this.nav = nav; + this.publisherDesc = publisherDesc; + this.cooperators = cooperators; + this.skuContent = skuContent; + } + get_nav_18j03q_k$() { + return this.nav; + } + get_publisherDesc_uh26ik_k$() { + return this.publisherDesc; + } + get_cooperators_5yfmka_k$() { + return this.cooperators; + } + get_skuContent_yr83iz_k$() { + return this.skuContent; + } + component1_7eebsc_k$() { + return this.nav; + } + component2_7eebsb_k$() { + return this.publisherDesc; + } + component3_7eebsa_k$() { + return this.cooperators; + } + component4_7eebs9_k$() { + return this.skuContent; + } + copy_rhqgly_k$(nav, publisherDesc, cooperators, skuContent) { + return new KPugvSeasonPublisher_0(nav, publisherDesc, cooperators, skuContent); + } + copy(nav, publisherDesc, cooperators, skuContent, $super) { + nav = nav === VOID ? this.nav : nav; + publisherDesc = publisherDesc === VOID ? this.publisherDesc : publisherDesc; + cooperators = cooperators === VOID ? this.cooperators : cooperators; + skuContent = skuContent === VOID ? this.skuContent : skuContent; + return this.copy_rhqgly_k$(nav, publisherDesc, cooperators, skuContent); + } + toString() { + return 'KPugvSeasonPublisher(nav=' + this.nav + ', publisherDesc=' + this.publisherDesc + ', cooperators=' + this.cooperators + ', skuContent=' + this.skuContent + ')'; + } + hashCode() { + var result = this.nav == null ? 0 : this.nav.hashCode(); + result = imul(result, 31) + getStringHashCode(this.publisherDesc) | 0; + result = imul(result, 31) + hashCode(this.cooperators) | 0; + result = imul(result, 31) + (this.skuContent == null ? 0 : this.skuContent.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KPugvSeasonPublisher_0)) + return false; + var tmp0_other_with_cast = other instanceof KPugvSeasonPublisher_0 ? other : THROW_CCE(); + if (!equals(this.nav, tmp0_other_with_cast.nav)) + return false; + if (!(this.publisherDesc === tmp0_other_with_cast.publisherDesc)) + return false; + if (!equals(this.cooperators, tmp0_other_with_cast.cooperators)) + return false; + if (!equals(this.skuContent, tmp0_other_with_cast.skuContent)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KPugvSeasonPublisher_3trk8g_k$(seen1, nav, publisherDesc, cooperators, skuContent, serializationConstructorMarker) { + Companion_getInstance_358(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_345().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.nav = null; + else + $this.nav = nav; + if (0 === (seen1 & 2)) + $this.publisherDesc = ''; + else + $this.publisherDesc = publisherDesc; + if (0 === (seen1 & 4)) + $this.cooperators = emptyList(); + else + $this.cooperators = cooperators; + if (0 === (seen1 & 8)) + $this.skuContent = null; + else + $this.skuContent = skuContent; + return $this; + } + } + class Companion_359 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.PugvSeasonCooperator'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_346(); + } + } + class $serializer_346 { + constructor() { + $serializer_instance_346 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KPugvSeasonCooperator', this, 7); + tmp0_serialDesc.addElement_5pzumi_k$('mid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('avatar', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('nickname', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('isOwner', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('role', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('userLink', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('followed', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), BooleanSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), BooleanSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = false; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = false; + var tmp11_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp11_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp11_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp11_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + } else + while (tmp1_flag) { + tmp2_index = tmp11_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp11_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp11_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp11_input.endStructure_1xqz0n_k$(tmp0_desc); + return KPugvSeasonCooperator.new_com_bapis_bilibili_app_viewunite_common_KPugvSeasonCooperator_48dtiz_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, null); + } + serialize_1vbbzl_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.mid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.mid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.avatar === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.avatar); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.nickname === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.nickname); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.isOwner === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 3, value.isOwner); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.role === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.role); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.userLink === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.userLink); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.followed === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 6, value.followed); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_1vbbzl_k$(encoder, value instanceof KPugvSeasonCooperator ? value : THROW_CCE()); + } + } + class KPugvSeasonCooperator { + constructor(mid, avatar, nickname, isOwner, role, userLink, followed) { + Companion_instance_359; + mid = mid === VOID ? new Long(0, 0) : mid; + avatar = avatar === VOID ? '' : avatar; + nickname = nickname === VOID ? '' : nickname; + isOwner = isOwner === VOID ? false : isOwner; + role = role === VOID ? '' : role; + userLink = userLink === VOID ? '' : userLink; + followed = followed === VOID ? false : followed; + this.mid = mid; + this.avatar = avatar; + this.nickname = nickname; + this.isOwner = isOwner; + this.role = role; + this.userLink = userLink; + this.followed = followed; + } + get_mid_18j0o1_k$() { + return this.mid; + } + get_avatar_b5pjz6_k$() { + return this.avatar; + } + get_nickname_umul6x_k$() { + return this.nickname; + } + get_isOwner_zgj5q8_k$() { + return this.isOwner; + } + get_role_wotsxr_k$() { + return this.role; + } + get_userLink_ytdlwu_k$() { + return this.userLink; + } + get_followed_qt9353_k$() { + return this.followed; + } + component1_7eebsc_k$() { + return this.mid; + } + component2_7eebsb_k$() { + return this.avatar; + } + component3_7eebsa_k$() { + return this.nickname; + } + component4_7eebs9_k$() { + return this.isOwner; + } + component5_7eebs8_k$() { + return this.role; + } + component6_7eebs7_k$() { + return this.userLink; + } + component7_7eebs6_k$() { + return this.followed; + } + copy_7lldjn_k$(mid, avatar, nickname, isOwner, role, userLink, followed) { + return new KPugvSeasonCooperator(mid, avatar, nickname, isOwner, role, userLink, followed); + } + copy(mid, avatar, nickname, isOwner, role, userLink, followed, $super) { + mid = mid === VOID ? this.mid : mid; + avatar = avatar === VOID ? this.avatar : avatar; + nickname = nickname === VOID ? this.nickname : nickname; + isOwner = isOwner === VOID ? this.isOwner : isOwner; + role = role === VOID ? this.role : role; + userLink = userLink === VOID ? this.userLink : userLink; + followed = followed === VOID ? this.followed : followed; + return this.copy_7lldjn_k$(mid, avatar, nickname, isOwner, role, userLink, followed); + } + toString() { + return 'KPugvSeasonCooperator(mid=' + this.mid.toString() + ', avatar=' + this.avatar + ', nickname=' + this.nickname + ', isOwner=' + this.isOwner + ', role=' + this.role + ', userLink=' + this.userLink + ', followed=' + this.followed + ')'; + } + hashCode() { + var result = this.mid.hashCode(); + result = imul(result, 31) + getStringHashCode(this.avatar) | 0; + result = imul(result, 31) + getStringHashCode(this.nickname) | 0; + result = imul(result, 31) + getBooleanHashCode(this.isOwner) | 0; + result = imul(result, 31) + getStringHashCode(this.role) | 0; + result = imul(result, 31) + getStringHashCode(this.userLink) | 0; + result = imul(result, 31) + getBooleanHashCode(this.followed) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KPugvSeasonCooperator)) + return false; + var tmp0_other_with_cast = other instanceof KPugvSeasonCooperator ? other : THROW_CCE(); + if (!this.mid.equals(tmp0_other_with_cast.mid)) + return false; + if (!(this.avatar === tmp0_other_with_cast.avatar)) + return false; + if (!(this.nickname === tmp0_other_with_cast.nickname)) + return false; + if (!(this.isOwner === tmp0_other_with_cast.isOwner)) + return false; + if (!(this.role === tmp0_other_with_cast.role)) + return false; + if (!(this.userLink === tmp0_other_with_cast.userLink)) + return false; + if (!(this.followed === tmp0_other_with_cast.followed)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KPugvSeasonCooperator_48dtiz_k$(seen1, mid, avatar, nickname, isOwner, role, userLink, followed, serializationConstructorMarker) { + Companion_instance_359; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_346().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.mid = new Long(0, 0); + else + $this.mid = mid; + if (0 === (seen1 & 2)) + $this.avatar = ''; + else + $this.avatar = avatar; + if (0 === (seen1 & 4)) + $this.nickname = ''; + else + $this.nickname = nickname; + if (0 === (seen1 & 8)) + $this.isOwner = false; + else + $this.isOwner = isOwner; + if (0 === (seen1 & 16)) + $this.role = ''; + else + $this.role = role; + if (0 === (seen1 & 32)) + $this.userLink = ''; + else + $this.userLink = userLink; + if (0 === (seen1 & 64)) + $this.followed = false; + else + $this.followed = followed; + return $this; + } + } + class Companion_360 { + constructor() { + Companion_instance_360 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, new ArrayListSerializer($serializer_getInstance_348())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.viewunite.common.PugvSeasonPublisherSkuContent'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_347(); + } + } + class $serializer_347 { + constructor() { + $serializer_instance_347 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KPugvSeasonPublisherSkuContent', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('items', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_360().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), tmp0_cached[1]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp7_cached = Companion_getInstance_360().$childSerializers_1; + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KPugvSeasonPublisherSkuContent.new_com_bapis_bilibili_app_viewunite_common_KPugvSeasonPublisherSkuContent_4qn5mq_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_pb0poz_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_360().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !equals(value.items, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 1, tmp2_cached[1], value.items); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_pb0poz_k$(encoder, value instanceof KPugvSeasonPublisherSkuContent ? value : THROW_CCE()); + } + } + class KPugvSeasonPublisherSkuContent { + constructor(title, items) { + Companion_getInstance_360(); + title = title === VOID ? '' : title; + items = items === VOID ? emptyList() : items; + this.title = title; + this.items = items; + } + get_title_iz32un_k$() { + return this.title; + } + get_items_it823b_k$() { + return this.items; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.items; + } + copy_d5az0_k$(title, items) { + return new KPugvSeasonPublisherSkuContent(title, items); + } + copy(title, items, $super) { + title = title === VOID ? this.title : title; + items = items === VOID ? this.items : items; + return this.copy_d5az0_k$(title, items); + } + toString() { + return 'KPugvSeasonPublisherSkuContent(title=' + this.title + ', items=' + this.items + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + hashCode(this.items) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KPugvSeasonPublisherSkuContent)) + return false; + var tmp0_other_with_cast = other instanceof KPugvSeasonPublisherSkuContent ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!equals(this.items, tmp0_other_with_cast.items)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KPugvSeasonPublisherSkuContent_4qn5mq_k$(seen1, title, items, serializationConstructorMarker) { + Companion_getInstance_360(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_347().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.items = emptyList(); + else + $this.items = items; + return $this; + } + } + class Companion_361 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.PugvSeasonPublisherSkuContentItem'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_348(); + } + } + class $serializer_348 { + constructor() { + $serializer_instance_348 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KPugvSeasonPublisherSkuContentItem', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('seasonId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('selected', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), LongSerializer_getInstance(), BooleanSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = new Long(0, 0); + var tmp6_local2 = false; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KPugvSeasonPublisherSkuContentItem.new_com_bapis_bilibili_app_viewunite_common_KPugvSeasonPublisherSkuContentItem_dvyp6o_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_hgcrmi_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.seasonId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.seasonId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.selected === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 2, value.selected); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_hgcrmi_k$(encoder, value instanceof KPugvSeasonPublisherSkuContentItem ? value : THROW_CCE()); + } + } + class KPugvSeasonPublisherSkuContentItem { + constructor(title, seasonId, selected) { + Companion_instance_361; + title = title === VOID ? '' : title; + seasonId = seasonId === VOID ? new Long(0, 0) : seasonId; + selected = selected === VOID ? false : selected; + this.title = title; + this.seasonId = seasonId; + this.selected = selected; + } + get_title_iz32un_k$() { + return this.title; + } + get_seasonId_h33f15_k$() { + return this.seasonId; + } + get_selected_c3i7q4_k$() { + return this.selected; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.seasonId; + } + component3_7eebsa_k$() { + return this.selected; + } + copy_a6t066_k$(title, seasonId, selected) { + return new KPugvSeasonPublisherSkuContentItem(title, seasonId, selected); + } + copy(title, seasonId, selected, $super) { + title = title === VOID ? this.title : title; + seasonId = seasonId === VOID ? this.seasonId : seasonId; + selected = selected === VOID ? this.selected : selected; + return this.copy_a6t066_k$(title, seasonId, selected); + } + toString() { + return 'KPugvSeasonPublisherSkuContentItem(title=' + this.title + ', seasonId=' + this.seasonId.toString() + ', selected=' + this.selected + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + this.seasonId.hashCode() | 0; + result = imul(result, 31) + getBooleanHashCode(this.selected) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KPugvSeasonPublisherSkuContentItem)) + return false; + var tmp0_other_with_cast = other instanceof KPugvSeasonPublisherSkuContentItem ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!this.seasonId.equals(tmp0_other_with_cast.seasonId)) + return false; + if (!(this.selected === tmp0_other_with_cast.selected)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KPugvSeasonPublisherSkuContentItem_dvyp6o_k$(seen1, title, seasonId, selected, serializationConstructorMarker) { + Companion_instance_361; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_348().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.seasonId = new Long(0, 0); + else + $this.seasonId = seasonId; + if (0 === (seen1 & 4)) + $this.selected = false; + else + $this.selected = selected; + return $this; + } + } + class KContent_0 { + constructor(value) { + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + } + class KText extends KContent_0 { + constructor() { + KText_instance = null; + super(0); + KText_instance = this; + } + } + class KImage extends KContent_0 { + constructor() { + KImage_instance = null; + super(1); + KImage_instance = this; + } + } + class Companion_362 { + constructor() { + Companion_instance_362 = this; + var tmp = this; + tmp.contentValues$delegate_1 = lazy_0(KPugvSeasonDescription$Companion$contentValues$delegate$lambda); + this.targetPath = '/bilibili.app.viewunite.common.PugvSeasonDescription'; + } + get_contentValues_5hg7ce_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.contentValues$delegate_1; + var thisRef = this; + var property = contentValues$factory_0(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_349(); + } + get contentValues() { + return this.get_contentValues_5hg7ce_k$(); + } + } + class $serializer_349 { + constructor() { + $serializer_instance_349 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KPugvSeasonDescription', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('nav', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('text', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('image', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_337()), IntSerializer_getInstance(), get_nullable($serializer_getInstance_350()), get_nullable($serializer_getInstance_351())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = 0; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_transient0 = 0; + var tmp9_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp9_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_337(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_350(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_351(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp9_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_337(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_350(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_351(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp9_input.endStructure_1xqz0n_k$(tmp0_desc); + return KPugvSeasonDescription_0.new_com_bapis_bilibili_app_viewunite_common_KPugvSeasonDescription_ap9yot_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_5aayax_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.nav == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_337(), value.nav); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.type === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.type); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.text_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_350(), value.text_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.image_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_351(), value.image_1); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_5aayax_k$(encoder, value instanceof KPugvSeasonDescription_0 ? value : THROW_CCE()); + } + } + class KPugvSeasonDescription_0 { + constructor(nav, type, text, image) { + Companion_getInstance_362(); + nav = nav === VOID ? null : nav; + type = type === VOID ? 0 : type; + text = text === VOID ? null : text; + image = image === VOID ? null : image; + this.nav = nav; + this.type = type; + this.text_1 = text; + this.image_1 = image; + var tmp = this; + tmp.contentNumber$delegate_1 = lazy_0(KPugvSeasonDescription$contentNumber$delegate$lambda(this)); + } + get_nav_18j03q_k$() { + return this.nav; + } + get_type_wovaf7_k$() { + return this.type; + } + contentValue() { + if (!(this.text_1 == null)) { + var tmp = this.text_1; + return (tmp == null ? true : !(tmp == null)) ? tmp : null; + } else if (!(this.image_1 == null)) { + var tmp_0 = this.image_1; + return (tmp_0 == null ? true : !(tmp_0 == null)) ? tmp_0 : null; + } else { + return null; + } + } + contentTypeJs() { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = Companion_getInstance_362().contentValues; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.viewunite.common.KPugvSeasonDescription.contentType.' call + var it = element; + tmp$ret$0 = it.value === _get_contentNumber__iirtht_0(this); + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + return tmp$ret$1; + } + typeEnum() { + return Companion_getInstance_224().fromValue(this.type); + } + component1_7eebsc_k$() { + return this.nav; + } + component2_7eebsb_k$() { + return this.type; + } + copy_4uuk91_k$(nav, type, text, image) { + return new KPugvSeasonDescription_0(nav, type, text, image); + } + copy(nav, type, text, image, $super) { + nav = nav === VOID ? this.nav : nav; + type = type === VOID ? this.type : type; + text = text === VOID ? this.text_1 : text; + image = image === VOID ? this.image_1 : image; + return this.copy_4uuk91_k$(nav, type, text, image); + } + toString() { + return 'KPugvSeasonDescription(nav=' + this.nav + ', type=' + this.type + ', text=' + this.text_1 + ', image=' + this.image_1 + ')'; + } + hashCode() { + var result = this.nav == null ? 0 : this.nav.hashCode(); + result = imul(result, 31) + this.type | 0; + result = imul(result, 31) + (this.text_1 == null ? 0 : this.text_1.hashCode()) | 0; + result = imul(result, 31) + (this.image_1 == null ? 0 : this.image_1.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KPugvSeasonDescription_0)) + return false; + var tmp0_other_with_cast = other instanceof KPugvSeasonDescription_0 ? other : THROW_CCE(); + if (!equals(this.nav, tmp0_other_with_cast.nav)) + return false; + if (!(this.type === tmp0_other_with_cast.type)) + return false; + if (!equals(this.text_1, tmp0_other_with_cast.text_1)) + return false; + if (!equals(this.image_1, tmp0_other_with_cast.image_1)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KPugvSeasonDescription_ap9yot_k$(seen1, nav, type, text, image, serializationConstructorMarker) { + Companion_getInstance_362(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_349().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.nav = null; + else + $this.nav = nav; + if (0 === (seen1 & 2)) + $this.type = 0; + else + $this.type = type; + if (0 === (seen1 & 4)) + $this.text_1 = null; + else + $this.text_1 = text; + if (0 === (seen1 & 8)) + $this.image_1 = null; + else + $this.image_1 = image; + var tmp = $this; + tmp.contentNumber$delegate_1 = lazy_0(KPugvSeasonDescription$_init_$lambda_q4ze7l($this)); + return $this; + } + } + class Companion_363 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.PugvSeasonDescriptionText'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_350(); + } + } + class $serializer_350 { + constructor() { + $serializer_instance_350 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KPugvSeasonDescriptionText', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('text', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KPugvSeasonDescriptionText.new_com_bapis_bilibili_app_viewunite_common_KPugvSeasonDescriptionText_ll5f01_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_wnakl8_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.text === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.text); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_wnakl8_k$(encoder, value instanceof KPugvSeasonDescriptionText ? value : THROW_CCE()); + } + } + class KPugvSeasonDescriptionText { + constructor(text) { + Companion_instance_363; + text = text === VOID ? '' : text; + this.text = text; + } + get_text_wouvsm_k$() { + return this.text; + } + component1_7eebsc_k$() { + return this.text; + } + copy_a35qlh_k$(text) { + return new KPugvSeasonDescriptionText(text); + } + copy(text, $super) { + text = text === VOID ? this.text : text; + return this.copy_a35qlh_k$(text); + } + toString() { + return 'KPugvSeasonDescriptionText(text=' + this.text + ')'; + } + hashCode() { + return getStringHashCode(this.text); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KPugvSeasonDescriptionText)) + return false; + var tmp0_other_with_cast = other instanceof KPugvSeasonDescriptionText ? other : THROW_CCE(); + if (!(this.text === tmp0_other_with_cast.text)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KPugvSeasonDescriptionText_ll5f01_k$(seen1, text, serializationConstructorMarker) { + Companion_instance_363; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_350().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.text = ''; + else + $this.text = text; + return $this; + } + } + class Companion_364 { + constructor() { + Companion_instance_364 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer($serializer_getInstance_352())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.viewunite.common.PugvSeasonDescriptionImage'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_351(); + } + } + class $serializer_351 { + constructor() { + $serializer_instance_351 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KPugvSeasonDescriptionImage', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('images', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_364().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp6_cached = Companion_getInstance_364().$childSerializers_1; + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KPugvSeasonDescriptionImage.new_com_bapis_bilibili_app_viewunite_common_KPugvSeasonDescriptionImage_d9d8kp_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_mkcezm_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_364().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.images, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.images); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_mkcezm_k$(encoder, value instanceof KPugvSeasonDescriptionImage ? value : THROW_CCE()); + } + } + class KPugvSeasonDescriptionImage { + constructor(images) { + Companion_getInstance_364(); + images = images === VOID ? emptyList() : images; + this.images = images; + } + get_images_et448x_k$() { + return this.images; + } + component1_7eebsc_k$() { + return this.images; + } + copy_x61whh_k$(images) { + return new KPugvSeasonDescriptionImage(images); + } + copy(images, $super) { + images = images === VOID ? this.images : images; + return this.copy_x61whh_k$(images); + } + toString() { + return 'KPugvSeasonDescriptionImage(images=' + this.images + ')'; + } + hashCode() { + return hashCode(this.images); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KPugvSeasonDescriptionImage)) + return false; + var tmp0_other_with_cast = other instanceof KPugvSeasonDescriptionImage ? other : THROW_CCE(); + if (!equals(this.images, tmp0_other_with_cast.images)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KPugvSeasonDescriptionImage_d9d8kp_k$(seen1, images, serializationConstructorMarker) { + Companion_getInstance_364(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_351().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.images = emptyList(); + else + $this.images = images; + return $this; + } + } + class Companion_365 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.PugvSeasonDescriptionImageItem'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_352(); + } + } + class $serializer_352 { + constructor() { + $serializer_instance_352 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KPugvSeasonDescriptionImageItem', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('imageUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('aspectRatio', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), DoubleSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = 0.0; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeDoubleElement_isei84_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeDoubleElement_isei84_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KPugvSeasonDescriptionImageItem.new_com_bapis_bilibili_app_viewunite_common_KPugvSeasonDescriptionImageItem_j37kg_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_idy569_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.imageUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.imageUrl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !equals(value.aspectRatio, 0.0)) { + tmp1_output.encodeDoubleElement_a6rqhe_k$(tmp0_desc, 1, value.aspectRatio); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_idy569_k$(encoder, value instanceof KPugvSeasonDescriptionImageItem ? value : THROW_CCE()); + } + } + class KPugvSeasonDescriptionImageItem { + constructor(imageUrl, aspectRatio) { + Companion_instance_365; + imageUrl = imageUrl === VOID ? '' : imageUrl; + aspectRatio = aspectRatio === VOID ? 0.0 : aspectRatio; + this.imageUrl = imageUrl; + this.aspectRatio = aspectRatio; + } + get_imageUrl_p0dvj1_k$() { + return this.imageUrl; + } + get_aspectRatio_vygc2y_k$() { + return this.aspectRatio; + } + component1_7eebsc_k$() { + return this.imageUrl; + } + component2_7eebsb_k$() { + return this.aspectRatio; + } + copy_cr611d_k$(imageUrl, aspectRatio) { + return new KPugvSeasonDescriptionImageItem(imageUrl, aspectRatio); + } + copy(imageUrl, aspectRatio, $super) { + imageUrl = imageUrl === VOID ? this.imageUrl : imageUrl; + aspectRatio = aspectRatio === VOID ? this.aspectRatio : aspectRatio; + return this.copy_cr611d_k$(imageUrl, aspectRatio); + } + toString() { + return 'KPugvSeasonDescriptionImageItem(imageUrl=' + this.imageUrl + ', aspectRatio=' + this.aspectRatio + ')'; + } + hashCode() { + var result = getStringHashCode(this.imageUrl); + result = imul(result, 31) + getNumberHashCode(this.aspectRatio) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KPugvSeasonDescriptionImageItem)) + return false; + var tmp0_other_with_cast = other instanceof KPugvSeasonDescriptionImageItem ? other : THROW_CCE(); + if (!(this.imageUrl === tmp0_other_with_cast.imageUrl)) + return false; + if (!equals(this.aspectRatio, tmp0_other_with_cast.aspectRatio)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KPugvSeasonDescriptionImageItem_j37kg_k$(seen1, imageUrl, aspectRatio, serializationConstructorMarker) { + Companion_instance_365; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_352().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.imageUrl = ''; + else + $this.imageUrl = imageUrl; + if (0 === (seen1 & 2)) + $this.aspectRatio = 0.0; + else + $this.aspectRatio = aspectRatio; + return $this; + } + } + class Companion_366 { + constructor() { + Companion_instance_366 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer($serializer_getInstance_354())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.viewunite.common.PugvZone'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_353(); + } + } + class $serializer_353 { + constructor() { + $serializer_instance_353 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KPugvZone', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('contents', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_366().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp6_cached = Companion_getInstance_366().$childSerializers_1; + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KPugvZone_0.new_com_bapis_bilibili_app_viewunite_common_KPugvZone_tpq00l_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_f5zp4_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_366().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.contents, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.contents); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_f5zp4_k$(encoder, value instanceof KPugvZone_0 ? value : THROW_CCE()); + } + } + class KPugvZone_0 { + constructor(contents) { + Companion_getInstance_366(); + contents = contents === VOID ? emptyList() : contents; + this.contents = contents; + } + get_contents_tuemzn_k$() { + return this.contents; + } + component1_7eebsc_k$() { + return this.contents; + } + copy_wn48ad_k$(contents) { + return new KPugvZone_0(contents); + } + copy(contents, $super) { + contents = contents === VOID ? this.contents : contents; + return this.copy_wn48ad_k$(contents); + } + toString() { + return 'KPugvZone(contents=' + this.contents + ')'; + } + hashCode() { + return hashCode(this.contents); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KPugvZone_0)) + return false; + var tmp0_other_with_cast = other instanceof KPugvZone_0 ? other : THROW_CCE(); + if (!equals(this.contents, tmp0_other_with_cast.contents)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KPugvZone_tpq00l_k$(seen1, contents, serializationConstructorMarker) { + Companion_getInstance_366(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_353().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.contents = emptyList(); + else + $this.contents = contents; + return $this; + } + } + class Companion_367 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.PugvZoneItem'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_354(); + } + } + class $serializer_354 { + constructor() { + $serializer_instance_354 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KPugvZoneItem', this, 5); + tmp0_serialDesc.addElement_5pzumi_k$('icon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('link', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('subtitle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = 0; + var tmp9_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp9_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + } else + while (tmp1_flag) { + tmp2_index = tmp9_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp9_input.endStructure_1xqz0n_k$(tmp0_desc); + return KPugvZoneItem.new_com_bapis_bilibili_app_viewunite_common_KPugvZoneItem_uy3bjz_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); + } + serialize_u8dfa3_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.icon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.icon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.link === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.link); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.subtitle === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.subtitle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.type === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 4, value.type); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_u8dfa3_k$(encoder, value instanceof KPugvZoneItem ? value : THROW_CCE()); + } + } + class KPugvZoneItem { + constructor(icon, link, title, subtitle, type) { + Companion_instance_367; + icon = icon === VOID ? '' : icon; + link = link === VOID ? '' : link; + title = title === VOID ? '' : title; + subtitle = subtitle === VOID ? '' : subtitle; + type = type === VOID ? 0 : type; + this.icon = icon; + this.link = link; + this.title = title; + this.subtitle = subtitle; + this.type = type; + } + get_icon_wont8i_k$() { + return this.icon; + } + get_link_wopumb_k$() { + return this.link; + } + get_title_iz32un_k$() { + return this.title; + } + get_subtitle_55eoyp_k$() { + return this.subtitle; + } + get_type_wovaf7_k$() { + return this.type; + } + typeEnum() { + return Companion_getInstance_225().fromValue(this.type); + } + component1_7eebsc_k$() { + return this.icon; + } + component2_7eebsb_k$() { + return this.link; + } + component3_7eebsa_k$() { + return this.title; + } + component4_7eebs9_k$() { + return this.subtitle; + } + component5_7eebs8_k$() { + return this.type; + } + copy_syxvi5_k$(icon, link, title, subtitle, type) { + return new KPugvZoneItem(icon, link, title, subtitle, type); + } + copy(icon, link, title, subtitle, type, $super) { + icon = icon === VOID ? this.icon : icon; + link = link === VOID ? this.link : link; + title = title === VOID ? this.title : title; + subtitle = subtitle === VOID ? this.subtitle : subtitle; + type = type === VOID ? this.type : type; + return this.copy_syxvi5_k$(icon, link, title, subtitle, type); + } + toString() { + return 'KPugvZoneItem(icon=' + this.icon + ', link=' + this.link + ', title=' + this.title + ', subtitle=' + this.subtitle + ', type=' + this.type + ')'; + } + hashCode() { + var result = getStringHashCode(this.icon); + result = imul(result, 31) + getStringHashCode(this.link) | 0; + result = imul(result, 31) + getStringHashCode(this.title) | 0; + result = imul(result, 31) + getStringHashCode(this.subtitle) | 0; + result = imul(result, 31) + this.type | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KPugvZoneItem)) + return false; + var tmp0_other_with_cast = other instanceof KPugvZoneItem ? other : THROW_CCE(); + if (!(this.icon === tmp0_other_with_cast.icon)) + return false; + if (!(this.link === tmp0_other_with_cast.link)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.subtitle === tmp0_other_with_cast.subtitle)) + return false; + if (!(this.type === tmp0_other_with_cast.type)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KPugvZoneItem_uy3bjz_k$(seen1, icon, link, title, subtitle, type, serializationConstructorMarker) { + Companion_instance_367; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_354().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.icon = ''; + else + $this.icon = icon; + if (0 === (seen1 & 2)) + $this.link = ''; + else + $this.link = link; + if (0 === (seen1 & 4)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 8)) + $this.subtitle = ''; + else + $this.subtitle = subtitle; + if (0 === (seen1 & 16)) + $this.type = 0; + else + $this.type = type; + return $this; + } + } + class Companion_368 { + constructor() { + Companion_instance_368 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, new ArrayListSerializer($serializer_getInstance_356())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.viewunite.common.PugvSeries'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_355(); + } + } + class $serializer_355 { + constructor() { + $serializer_instance_355 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KPugvSeries', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('nav', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('contents', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_368().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_337()), tmp0_cached[1]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp7_cached = Companion_getInstance_368().$childSerializers_1; + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_337(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_337(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KPugvSeries_0.new_com_bapis_bilibili_app_viewunite_common_KPugvSeries_9nh7tv_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_6jpczx_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_368().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.nav == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_337(), value.nav); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !equals(value.contents, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 1, tmp2_cached[1], value.contents); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_6jpczx_k$(encoder, value instanceof KPugvSeries_0 ? value : THROW_CCE()); + } + } + class KPugvSeries_0 { + constructor(nav, contents) { + Companion_getInstance_368(); + nav = nav === VOID ? null : nav; + contents = contents === VOID ? emptyList() : contents; + this.nav = nav; + this.contents = contents; + } + get_nav_18j03q_k$() { + return this.nav; + } + get_contents_tuemzn_k$() { + return this.contents; + } + component1_7eebsc_k$() { + return this.nav; + } + component2_7eebsb_k$() { + return this.contents; + } + copy_ky703s_k$(nav, contents) { + return new KPugvSeries_0(nav, contents); + } + copy(nav, contents, $super) { + nav = nav === VOID ? this.nav : nav; + contents = contents === VOID ? this.contents : contents; + return this.copy_ky703s_k$(nav, contents); + } + toString() { + return 'KPugvSeries(nav=' + this.nav + ', contents=' + this.contents + ')'; + } + hashCode() { + var result = this.nav == null ? 0 : this.nav.hashCode(); + result = imul(result, 31) + hashCode(this.contents) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KPugvSeries_0)) + return false; + var tmp0_other_with_cast = other instanceof KPugvSeries_0 ? other : THROW_CCE(); + if (!equals(this.nav, tmp0_other_with_cast.nav)) + return false; + if (!equals(this.contents, tmp0_other_with_cast.contents)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KPugvSeries_9nh7tv_k$(seen1, nav, contents, serializationConstructorMarker) { + Companion_getInstance_368(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_355().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.nav = null; + else + $this.nav = nav; + if (0 === (seen1 & 2)) + $this.contents = emptyList(); + else + $this.contents = contents; + return $this; + } + } + class Companion_369 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.PugvSeriesItem'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_356(); + } + } + class $serializer_356 { + constructor() { + $serializer_instance_356 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KPugvSeriesItem', this, 6); + tmp0_serialDesc.addElement_5pzumi_k$('seasonId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('selected', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('gray', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('content', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('label', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('state', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = false; + var tmp6_local2 = false; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = 0; + var tmp10_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp10_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp10_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp10_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + } else + while (tmp1_flag) { + tmp2_index = tmp10_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp10_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp10_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp10_input.endStructure_1xqz0n_k$(tmp0_desc); + return KPugvSeriesItem.new_com_bapis_bilibili_app_viewunite_common_KPugvSeriesItem_tkmdpc_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); + } + serialize_sx72ti_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.seasonId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.seasonId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.selected === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 1, value.selected); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.gray === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 2, value.gray); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.content === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.content); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.label === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.label); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.state === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 5, value.state); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_sx72ti_k$(encoder, value instanceof KPugvSeriesItem ? value : THROW_CCE()); + } + } + class KPugvSeriesItem { + constructor(seasonId, selected, gray, content, label, state) { + Companion_instance_369; + seasonId = seasonId === VOID ? new Long(0, 0) : seasonId; + selected = selected === VOID ? false : selected; + gray = gray === VOID ? false : gray; + content = content === VOID ? '' : content; + label = label === VOID ? '' : label; + state = state === VOID ? 0 : state; + this.seasonId = seasonId; + this.selected = selected; + this.gray = gray; + this.content = content; + this.label = label; + this.state = state; + } + get_seasonId_h33f15_k$() { + return this.seasonId; + } + get_selected_c3i7q4_k$() { + return this.selected; + } + get_gray_womu24_k$() { + return this.gray; + } + get_content_h02jrk_k$() { + return this.content; + } + get_label_iuj8p7_k$() { + return this.label; + } + get_state_iypx7s_k$() { + return this.state; + } + stateEnum() { + return Companion_getInstance_226().fromValue(this.state); + } + component1_7eebsc_k$() { + return this.seasonId; + } + component2_7eebsb_k$() { + return this.selected; + } + component3_7eebsa_k$() { + return this.gray; + } + component4_7eebs9_k$() { + return this.content; + } + component5_7eebs8_k$() { + return this.label; + } + component6_7eebs7_k$() { + return this.state; + } + copy_yifbad_k$(seasonId, selected, gray, content, label, state) { + return new KPugvSeriesItem(seasonId, selected, gray, content, label, state); + } + copy(seasonId, selected, gray, content, label, state, $super) { + seasonId = seasonId === VOID ? this.seasonId : seasonId; + selected = selected === VOID ? this.selected : selected; + gray = gray === VOID ? this.gray : gray; + content = content === VOID ? this.content : content; + label = label === VOID ? this.label : label; + state = state === VOID ? this.state : state; + return this.copy_yifbad_k$(seasonId, selected, gray, content, label, state); + } + toString() { + return 'KPugvSeriesItem(seasonId=' + this.seasonId.toString() + ', selected=' + this.selected + ', gray=' + this.gray + ', content=' + this.content + ', label=' + this.label + ', state=' + this.state + ')'; + } + hashCode() { + var result = this.seasonId.hashCode(); + result = imul(result, 31) + getBooleanHashCode(this.selected) | 0; + result = imul(result, 31) + getBooleanHashCode(this.gray) | 0; + result = imul(result, 31) + getStringHashCode(this.content) | 0; + result = imul(result, 31) + getStringHashCode(this.label) | 0; + result = imul(result, 31) + this.state | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KPugvSeriesItem)) + return false; + var tmp0_other_with_cast = other instanceof KPugvSeriesItem ? other : THROW_CCE(); + if (!this.seasonId.equals(tmp0_other_with_cast.seasonId)) + return false; + if (!(this.selected === tmp0_other_with_cast.selected)) + return false; + if (!(this.gray === tmp0_other_with_cast.gray)) + return false; + if (!(this.content === tmp0_other_with_cast.content)) + return false; + if (!(this.label === tmp0_other_with_cast.label)) + return false; + if (!(this.state === tmp0_other_with_cast.state)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KPugvSeriesItem_tkmdpc_k$(seen1, seasonId, selected, gray, content, label, state, serializationConstructorMarker) { + Companion_instance_369; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_356().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.seasonId = new Long(0, 0); + else + $this.seasonId = seasonId; + if (0 === (seen1 & 2)) + $this.selected = false; + else + $this.selected = selected; + if (0 === (seen1 & 4)) + $this.gray = false; + else + $this.gray = gray; + if (0 === (seen1 & 8)) + $this.content = ''; + else + $this.content = content; + if (0 === (seen1 & 16)) + $this.label = ''; + else + $this.label = label; + if (0 === (seen1 & 32)) + $this.state = 0; + else + $this.state = state; + return $this; + } + } + class Companion_370 { + constructor() { + Companion_instance_370 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, new ArrayListSerializer($serializer_getInstance_358())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.viewunite.common.PugvPackage'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_357(); + } + } + class $serializer_357 { + constructor() { + $serializer_instance_357 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KPugvPackage', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('nav', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('contents', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_370().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_337()), tmp0_cached[1]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp7_cached = Companion_getInstance_370().$childSerializers_1; + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_337(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_337(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KPugvPackage_0.new_com_bapis_bilibili_app_viewunite_common_KPugvPackage_p2wc3n_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_biodwk_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_370().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.nav == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_337(), value.nav); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !equals(value.contents, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 1, tmp2_cached[1], value.contents); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_biodwk_k$(encoder, value instanceof KPugvPackage_0 ? value : THROW_CCE()); + } + } + class KPugvPackage_0 { + constructor(nav, contents) { + Companion_getInstance_370(); + nav = nav === VOID ? null : nav; + contents = contents === VOID ? emptyList() : contents; + this.nav = nav; + this.contents = contents; + } + get_nav_18j03q_k$() { + return this.nav; + } + get_contents_tuemzn_k$() { + return this.contents; + } + component1_7eebsc_k$() { + return this.nav; + } + component2_7eebsb_k$() { + return this.contents; + } + copy_x41i5x_k$(nav, contents) { + return new KPugvPackage_0(nav, contents); + } + copy(nav, contents, $super) { + nav = nav === VOID ? this.nav : nav; + contents = contents === VOID ? this.contents : contents; + return this.copy_x41i5x_k$(nav, contents); + } + toString() { + return 'KPugvPackage(nav=' + this.nav + ', contents=' + this.contents + ')'; + } + hashCode() { + var result = this.nav == null ? 0 : this.nav.hashCode(); + result = imul(result, 31) + hashCode(this.contents) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KPugvPackage_0)) + return false; + var tmp0_other_with_cast = other instanceof KPugvPackage_0 ? other : THROW_CCE(); + if (!equals(this.nav, tmp0_other_with_cast.nav)) + return false; + if (!equals(this.contents, tmp0_other_with_cast.contents)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KPugvPackage_p2wc3n_k$(seen1, nav, contents, serializationConstructorMarker) { + Companion_getInstance_370(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_357().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.nav = null; + else + $this.nav = nav; + if (0 === (seen1 & 2)) + $this.contents = emptyList(); + else + $this.contents = contents; + return $this; + } + } + class Companion_371 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.PugvPackageItem'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_358(); + } + } + class $serializer_358 { + constructor() { + $serializer_instance_358 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KPugvPackageItem', this, 7); + tmp0_serialDesc.addElement_5pzumi_k$('productId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('discountPriceDesc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('originalPriceDesc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('desc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('link', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp11_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + } else + while (tmp1_flag) { + tmp2_index = tmp11_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp11_input.endStructure_1xqz0n_k$(tmp0_desc); + return KPugvPackageItem.new_com_bapis_bilibili_app_viewunite_common_KPugvPackageItem_be7v89_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, null); + } + serialize_asxfrd_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.productId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.productId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.cover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.discountPriceDesc === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.discountPriceDesc); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.originalPriceDesc === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.originalPriceDesc); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.desc === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.desc); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.link === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.link); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_asxfrd_k$(encoder, value instanceof KPugvPackageItem ? value : THROW_CCE()); + } + } + class KPugvPackageItem { + constructor(productId, cover, title, discountPriceDesc, originalPriceDesc, desc, link) { + Companion_instance_371; + productId = productId === VOID ? new Long(0, 0) : productId; + cover = cover === VOID ? '' : cover; + title = title === VOID ? '' : title; + discountPriceDesc = discountPriceDesc === VOID ? '' : discountPriceDesc; + originalPriceDesc = originalPriceDesc === VOID ? '' : originalPriceDesc; + desc = desc === VOID ? '' : desc; + link = link === VOID ? '' : link; + this.productId = productId; + this.cover = cover; + this.title = title; + this.discountPriceDesc = discountPriceDesc; + this.originalPriceDesc = originalPriceDesc; + this.desc = desc; + this.link = link; + } + get_productId_8vpkjj_k$() { + return this.productId; + } + get_cover_ipug0e_k$() { + return this.cover; + } + get_title_iz32un_k$() { + return this.title; + } + get_discountPriceDesc_6imd0w_k$() { + return this.discountPriceDesc; + } + get_originalPriceDesc_nb0g00_k$() { + return this.originalPriceDesc; + } + get_desc_woknve_k$() { + return this.desc; + } + get_link_wopumb_k$() { + return this.link; + } + component1_7eebsc_k$() { + return this.productId; + } + component2_7eebsb_k$() { + return this.cover; + } + component3_7eebsa_k$() { + return this.title; + } + component4_7eebs9_k$() { + return this.discountPriceDesc; + } + component5_7eebs8_k$() { + return this.originalPriceDesc; + } + component6_7eebs7_k$() { + return this.desc; + } + component7_7eebs6_k$() { + return this.link; + } + copy_9gfwel_k$(productId, cover, title, discountPriceDesc, originalPriceDesc, desc, link) { + return new KPugvPackageItem(productId, cover, title, discountPriceDesc, originalPriceDesc, desc, link); + } + copy(productId, cover, title, discountPriceDesc, originalPriceDesc, desc, link, $super) { + productId = productId === VOID ? this.productId : productId; + cover = cover === VOID ? this.cover : cover; + title = title === VOID ? this.title : title; + discountPriceDesc = discountPriceDesc === VOID ? this.discountPriceDesc : discountPriceDesc; + originalPriceDesc = originalPriceDesc === VOID ? this.originalPriceDesc : originalPriceDesc; + desc = desc === VOID ? this.desc : desc; + link = link === VOID ? this.link : link; + return this.copy_9gfwel_k$(productId, cover, title, discountPriceDesc, originalPriceDesc, desc, link); + } + toString() { + return 'KPugvPackageItem(productId=' + this.productId.toString() + ', cover=' + this.cover + ', title=' + this.title + ', discountPriceDesc=' + this.discountPriceDesc + ', originalPriceDesc=' + this.originalPriceDesc + ', desc=' + this.desc + ', link=' + this.link + ')'; + } + hashCode() { + var result = this.productId.hashCode(); + result = imul(result, 31) + getStringHashCode(this.cover) | 0; + result = imul(result, 31) + getStringHashCode(this.title) | 0; + result = imul(result, 31) + getStringHashCode(this.discountPriceDesc) | 0; + result = imul(result, 31) + getStringHashCode(this.originalPriceDesc) | 0; + result = imul(result, 31) + getStringHashCode(this.desc) | 0; + result = imul(result, 31) + getStringHashCode(this.link) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KPugvPackageItem)) + return false; + var tmp0_other_with_cast = other instanceof KPugvPackageItem ? other : THROW_CCE(); + if (!this.productId.equals(tmp0_other_with_cast.productId)) + return false; + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.discountPriceDesc === tmp0_other_with_cast.discountPriceDesc)) + return false; + if (!(this.originalPriceDesc === tmp0_other_with_cast.originalPriceDesc)) + return false; + if (!(this.desc === tmp0_other_with_cast.desc)) + return false; + if (!(this.link === tmp0_other_with_cast.link)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KPugvPackageItem_be7v89_k$(seen1, productId, cover, title, discountPriceDesc, originalPriceDesc, desc, link, serializationConstructorMarker) { + Companion_instance_371; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_358().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.productId = new Long(0, 0); + else + $this.productId = productId; + if (0 === (seen1 & 2)) + $this.cover = ''; + else + $this.cover = cover; + if (0 === (seen1 & 4)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 8)) + $this.discountPriceDesc = ''; + else + $this.discountPriceDesc = discountPriceDesc; + if (0 === (seen1 & 16)) + $this.originalPriceDesc = ''; + else + $this.originalPriceDesc = originalPriceDesc; + if (0 === (seen1 & 32)) + $this.desc = ''; + else + $this.desc = desc; + if (0 === (seen1 & 64)) + $this.link = ''; + else + $this.link = link; + return $this; + } + } + class Companion_372 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.ProfessionApproval'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_359(); + } + } + class $serializer_359 { + constructor() { + $serializer_instance_359 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KProfessionApproval', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('subtitle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = 0; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KProfessionApproval_0.new_com_bapis_bilibili_app_viewunite_common_KProfessionApproval_ugcr1d_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_nxj3pj_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.subtitle === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.subtitle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.type === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.type); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_nxj3pj_k$(encoder, value instanceof KProfessionApproval_0 ? value : THROW_CCE()); + } + } + class KProfessionApproval_0 { + constructor(title, subtitle, type) { + Companion_instance_372; + title = title === VOID ? '' : title; + subtitle = subtitle === VOID ? '' : subtitle; + type = type === VOID ? 0 : type; + this.title = title; + this.subtitle = subtitle; + this.type = type; + } + get_title_iz32un_k$() { + return this.title; + } + get_subtitle_55eoyp_k$() { + return this.subtitle; + } + get_type_wovaf7_k$() { + return this.type; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.subtitle; + } + component3_7eebsa_k$() { + return this.type; + } + copy_spspqb_k$(title, subtitle, type) { + return new KProfessionApproval_0(title, subtitle, type); + } + copy(title, subtitle, type, $super) { + title = title === VOID ? this.title : title; + subtitle = subtitle === VOID ? this.subtitle : subtitle; + type = type === VOID ? this.type : type; + return this.copy_spspqb_k$(title, subtitle, type); + } + toString() { + return 'KProfessionApproval(title=' + this.title + ', subtitle=' + this.subtitle + ', type=' + this.type + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.subtitle) | 0; + result = imul(result, 31) + this.type | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KProfessionApproval_0)) + return false; + var tmp0_other_with_cast = other instanceof KProfessionApproval_0 ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.subtitle === tmp0_other_with_cast.subtitle)) + return false; + if (!(this.type === tmp0_other_with_cast.type)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KProfessionApproval_ugcr1d_k$(seen1, title, subtitle, type, serializationConstructorMarker) { + Companion_instance_372; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_359().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.subtitle = ''; + else + $this.subtitle = subtitle; + if (0 === (seen1 & 4)) + $this.type = 0; + else + $this.type = type; + return $this; + } + } + class Companion_373 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.Honor.ReportEntry'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_360(); + } + } + class $serializer_360 { + constructor() { + $serializer_instance_360 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KHonor.KReportEntry', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('key', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('value', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KReportEntry_14.new_com_bapis_bilibili_app_viewunite_common_KHonor_KReportEntry_ci3qeg_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_un33pd_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.key === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.key); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.value === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.value); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_un33pd_k$(encoder, value instanceof KReportEntry_14 ? value : THROW_CCE()); + } + } + class KExtend { + constructor(value) { + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + } + class KProfessionExt extends KExtend { + constructor() { + KProfessionExt_instance = null; + super(0); + KProfessionExt_instance = this; + } + } + class Companion_374 { + constructor() { + Companion_instance_374 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, null, null, null, null, null, null, null, null, null, new LinkedHashMapSerializer(StringSerializer_getInstance(), StringSerializer_getInstance()), null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + var tmp_0 = this; + tmp_0.extendValues$delegate_1 = lazy_0(KHonor$Companion$extendValues$delegate$lambda); + this.targetPath = '/bilibili.app.viewunite.common.Honor'; + } + get_extendValues_1opn17_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.extendValues$delegate_1; + var thisRef = this; + var property = extendValues$factory(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_361(); + } + get extendValues() { + return this.get_extendValues_1opn17_k$(); + } + } + class KReportEntry_14 { + constructor(key, value) { + Companion_instance_373; + key = key === VOID ? '' : key; + value = value === VOID ? '' : value; + this.key = key; + this.value = value; + } + get_key_18j28a_k$() { + return this.key; + } + get_value_j01efc_k$() { + return this.value; + } + component1_7eebsc_k$() { + return this.key; + } + component2_7eebsb_k$() { + return this.value; + } + copy_plwnsl_k$(key, value) { + return new KReportEntry_14(key, value); + } + copy(key, value, $super) { + key = key === VOID ? this.key : key; + value = value === VOID ? this.value : value; + return this.copy_plwnsl_k$(key, value); + } + toString() { + return 'KReportEntry(key=' + this.key + ', value=' + this.value + ')'; + } + hashCode() { + var result = getStringHashCode(this.key); + result = imul(result, 31) + getStringHashCode(this.value) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KReportEntry_14)) + return false; + var tmp0_other_with_cast = other instanceof KReportEntry_14 ? other : THROW_CCE(); + if (!(this.key === tmp0_other_with_cast.key)) + return false; + if (!(this.value === tmp0_other_with_cast.value)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KHonor_KReportEntry_ci3qeg_k$(seen1, key, value, serializationConstructorMarker) { + Companion_instance_373; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_360().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.key = ''; + else + $this.key = key; + if (0 === (seen1 & 2)) + $this.value = ''; + else + $this.value = value; + return $this; + } + } + class $serializer_361 { + constructor() { + $serializer_instance_361 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KHonor', this, 15); + tmp0_serialDesc.addElement_5pzumi_k$('icon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('iconNight', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('text', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('textExtra', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('textColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('textColorNight', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('bgColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('bgColorNight', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('url', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('urlText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('honorJumpType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + tmp0_serialDesc.addElement_5pzumi_k$('report', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(13)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('endIcon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(14)); + tmp0_serialDesc.addElement_5pzumi_k$('professionExt', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(15)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_374().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), tmp0_cached[12], StringSerializer_getInstance(), get_nullable($serializer_getInstance_390())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_local8 = null; + var tmp13_local9 = null; + var tmp14_local10 = 0; + var tmp15_local11 = 0; + var tmp16_local12 = null; + var tmp17_local13 = null; + var tmp18_local14 = null; + var tmp19_transient0 = 0; + var tmp20_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp21_cached = Companion_getInstance_374().$childSerializers_1; + if (tmp20_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + tmp16_local12 = tmp20_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 12, tmp21_cached[12], tmp16_local12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + tmp17_local13 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + tmp18_local14 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 14, $serializer_getInstance_390(), tmp18_local14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + } else + while (tmp1_flag) { + tmp2_index = tmp20_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + case 12: + tmp16_local12 = tmp20_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 12, tmp21_cached[12], tmp16_local12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + break; + case 13: + tmp17_local13 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + break; + case 14: + tmp18_local14 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 14, $serializer_getInstance_390(), tmp18_local14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp20_input.endStructure_1xqz0n_k$(tmp0_desc); + return KHonor_0.new_com_bapis_bilibili_app_viewunite_common_KHonor_au5atu_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, tmp18_local14, null); + } + serialize_kvndzw_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_374().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.icon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.icon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.iconNight === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.iconNight); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.text === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.text); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.textExtra === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.textExtra); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.textColor === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.textColor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.textColorNight === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.textColorNight); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.bgColor === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.bgColor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.bgColorNight === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.bgColorNight); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.url === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 8, value.url); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.urlText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 9, value.urlText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.type === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 10, value.type); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.honorJumpType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 11, value.honorJumpType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !equals(value.report, emptyMap())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 12, tmp2_cached[12], value.report); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 13) ? true : !(value.endIcon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 13, value.endIcon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 14) ? true : !(value.professionExt_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 14, $serializer_getInstance_390(), value.professionExt_1); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_kvndzw_k$(encoder, value instanceof KHonor_0 ? value : THROW_CCE()); + } + } + class KHonor_0 { + constructor(icon, iconNight, text, textExtra, textColor, textColorNight, bgColor, bgColorNight, url, urlText, type, honorJumpType, report, endIcon, professionExt) { + Companion_getInstance_374(); + icon = icon === VOID ? '' : icon; + iconNight = iconNight === VOID ? '' : iconNight; + text = text === VOID ? '' : text; + textExtra = textExtra === VOID ? '' : textExtra; + textColor = textColor === VOID ? '' : textColor; + textColorNight = textColorNight === VOID ? '' : textColorNight; + bgColor = bgColor === VOID ? '' : bgColor; + bgColorNight = bgColorNight === VOID ? '' : bgColorNight; + url = url === VOID ? '' : url; + urlText = urlText === VOID ? '' : urlText; + type = type === VOID ? 0 : type; + honorJumpType = honorJumpType === VOID ? 0 : honorJumpType; + report = report === VOID ? emptyMap() : report; + endIcon = endIcon === VOID ? '' : endIcon; + professionExt = professionExt === VOID ? null : professionExt; + this.icon = icon; + this.iconNight = iconNight; + this.text = text; + this.textExtra = textExtra; + this.textColor = textColor; + this.textColorNight = textColorNight; + this.bgColor = bgColor; + this.bgColorNight = bgColorNight; + this.url = url; + this.urlText = urlText; + this.type = type; + this.honorJumpType = honorJumpType; + this.report = report; + this.endIcon = endIcon; + this.professionExt_1 = professionExt; + var tmp = this; + tmp.extendNumber$delegate_1 = lazy_0(KHonor$extendNumber$delegate$lambda(this)); + } + get_icon_wont8i_k$() { + return this.icon; + } + get_iconNight_equj62_k$() { + return this.iconNight; + } + get_text_wouvsm_k$() { + return this.text; + } + get_textExtra_91fq2u_k$() { + return this.textExtra; + } + get_textColor_92p84z_k$() { + return this.textColor; + } + get_textColorNight_hqolf9_k$() { + return this.textColorNight; + } + get_bgColor_24ewuj_k$() { + return this.bgColor; + } + get_bgColorNight_mzrajh_k$() { + return this.bgColorNight; + } + get_url_18iuii_k$() { + return this.url; + } + get_urlText_1jrpgt_k$() { + return this.urlText; + } + get_type_wovaf7_k$() { + return this.type; + } + get_honorJumpType_6opfc9_k$() { + return this.honorJumpType; + } + get_report_iye43h_k$() { + return this.report; + } + get_endIcon_pbjzzp_k$() { + return this.endIcon; + } + extendValue() { + if (!(this.professionExt_1 == null)) { + var tmp = this.professionExt_1; + return (tmp == null ? true : !(tmp == null)) ? tmp : null; + } else { + return null; + } + } + extendTypeJs() { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = Companion_getInstance_374().extendValues; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.viewunite.common.KHonor.extendType.' call + var it = element; + tmp$ret$0 = it.value === _get_extendNumber__l91wt4(this); + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + return tmp$ret$1; + } + typeEnum() { + return Companion_getInstance_227().fromValue(this.type); + } + honorJumpTypeEnum() { + return Companion_getInstance_216().fromValue(this.honorJumpType); + } + component1_7eebsc_k$() { + return this.icon; + } + component2_7eebsb_k$() { + return this.iconNight; + } + component3_7eebsa_k$() { + return this.text; + } + component4_7eebs9_k$() { + return this.textExtra; + } + component5_7eebs8_k$() { + return this.textColor; + } + component6_7eebs7_k$() { + return this.textColorNight; + } + component7_7eebs6_k$() { + return this.bgColor; + } + component8_7eebs5_k$() { + return this.bgColorNight; + } + component9_7eebs4_k$() { + return this.url; + } + component10_gazzfo_k$() { + return this.urlText; + } + component11_gazzfn_k$() { + return this.type; + } + component12_gazzfm_k$() { + return this.honorJumpType; + } + component13_gazzfl_k$() { + return this.report; + } + component14_gazzfk_k$() { + return this.endIcon; + } + copy_jws0jf_k$(icon, iconNight, text, textExtra, textColor, textColorNight, bgColor, bgColorNight, url, urlText, type, honorJumpType, report, endIcon, professionExt) { + return new KHonor_0(icon, iconNight, text, textExtra, textColor, textColorNight, bgColor, bgColorNight, url, urlText, type, honorJumpType, report, endIcon, professionExt); + } + copy(icon, iconNight, text, textExtra, textColor, textColorNight, bgColor, bgColorNight, url, urlText, type, honorJumpType, report, endIcon, professionExt, $super) { + icon = icon === VOID ? this.icon : icon; + iconNight = iconNight === VOID ? this.iconNight : iconNight; + text = text === VOID ? this.text : text; + textExtra = textExtra === VOID ? this.textExtra : textExtra; + textColor = textColor === VOID ? this.textColor : textColor; + textColorNight = textColorNight === VOID ? this.textColorNight : textColorNight; + bgColor = bgColor === VOID ? this.bgColor : bgColor; + bgColorNight = bgColorNight === VOID ? this.bgColorNight : bgColorNight; + url = url === VOID ? this.url : url; + urlText = urlText === VOID ? this.urlText : urlText; + type = type === VOID ? this.type : type; + honorJumpType = honorJumpType === VOID ? this.honorJumpType : honorJumpType; + report = report === VOID ? this.report : report; + endIcon = endIcon === VOID ? this.endIcon : endIcon; + professionExt = professionExt === VOID ? this.professionExt_1 : professionExt; + return this.copy_jws0jf_k$(icon, iconNight, text, textExtra, textColor, textColorNight, bgColor, bgColorNight, url, urlText, type, honorJumpType, report, endIcon, professionExt); + } + toString() { + return 'KHonor(icon=' + this.icon + ', iconNight=' + this.iconNight + ', text=' + this.text + ', textExtra=' + this.textExtra + ', textColor=' + this.textColor + ', textColorNight=' + this.textColorNight + ', bgColor=' + this.bgColor + ', bgColorNight=' + this.bgColorNight + ', url=' + this.url + ', urlText=' + this.urlText + ', type=' + this.type + ', honorJumpType=' + this.honorJumpType + ', report=' + this.report + ', endIcon=' + this.endIcon + ', professionExt=' + this.professionExt_1 + ')'; + } + hashCode() { + var result = getStringHashCode(this.icon); + result = imul(result, 31) + getStringHashCode(this.iconNight) | 0; + result = imul(result, 31) + getStringHashCode(this.text) | 0; + result = imul(result, 31) + getStringHashCode(this.textExtra) | 0; + result = imul(result, 31) + getStringHashCode(this.textColor) | 0; + result = imul(result, 31) + getStringHashCode(this.textColorNight) | 0; + result = imul(result, 31) + getStringHashCode(this.bgColor) | 0; + result = imul(result, 31) + getStringHashCode(this.bgColorNight) | 0; + result = imul(result, 31) + getStringHashCode(this.url) | 0; + result = imul(result, 31) + getStringHashCode(this.urlText) | 0; + result = imul(result, 31) + this.type | 0; + result = imul(result, 31) + this.honorJumpType | 0; + result = imul(result, 31) + hashCode(this.report) | 0; + result = imul(result, 31) + getStringHashCode(this.endIcon) | 0; + result = imul(result, 31) + (this.professionExt_1 == null ? 0 : this.professionExt_1.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KHonor_0)) + return false; + var tmp0_other_with_cast = other instanceof KHonor_0 ? other : THROW_CCE(); + if (!(this.icon === tmp0_other_with_cast.icon)) + return false; + if (!(this.iconNight === tmp0_other_with_cast.iconNight)) + return false; + if (!(this.text === tmp0_other_with_cast.text)) + return false; + if (!(this.textExtra === tmp0_other_with_cast.textExtra)) + return false; + if (!(this.textColor === tmp0_other_with_cast.textColor)) + return false; + if (!(this.textColorNight === tmp0_other_with_cast.textColorNight)) + return false; + if (!(this.bgColor === tmp0_other_with_cast.bgColor)) + return false; + if (!(this.bgColorNight === tmp0_other_with_cast.bgColorNight)) + return false; + if (!(this.url === tmp0_other_with_cast.url)) + return false; + if (!(this.urlText === tmp0_other_with_cast.urlText)) + return false; + if (!(this.type === tmp0_other_with_cast.type)) + return false; + if (!(this.honorJumpType === tmp0_other_with_cast.honorJumpType)) + return false; + if (!equals(this.report, tmp0_other_with_cast.report)) + return false; + if (!(this.endIcon === tmp0_other_with_cast.endIcon)) + return false; + if (!equals(this.professionExt_1, tmp0_other_with_cast.professionExt_1)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KHonor_au5atu_k$(seen1, icon, iconNight, text, textExtra, textColor, textColorNight, bgColor, bgColorNight, url, urlText, type, honorJumpType, report, endIcon, professionExt, serializationConstructorMarker) { + Companion_getInstance_374(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_361().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.icon = ''; + else + $this.icon = icon; + if (0 === (seen1 & 2)) + $this.iconNight = ''; + else + $this.iconNight = iconNight; + if (0 === (seen1 & 4)) + $this.text = ''; + else + $this.text = text; + if (0 === (seen1 & 8)) + $this.textExtra = ''; + else + $this.textExtra = textExtra; + if (0 === (seen1 & 16)) + $this.textColor = ''; + else + $this.textColor = textColor; + if (0 === (seen1 & 32)) + $this.textColorNight = ''; + else + $this.textColorNight = textColorNight; + if (0 === (seen1 & 64)) + $this.bgColor = ''; + else + $this.bgColor = bgColor; + if (0 === (seen1 & 128)) + $this.bgColorNight = ''; + else + $this.bgColorNight = bgColorNight; + if (0 === (seen1 & 256)) + $this.url = ''; + else + $this.url = url; + if (0 === (seen1 & 512)) + $this.urlText = ''; + else + $this.urlText = urlText; + if (0 === (seen1 & 1024)) + $this.type = 0; + else + $this.type = type; + if (0 === (seen1 & 2048)) + $this.honorJumpType = 0; + else + $this.honorJumpType = honorJumpType; + if (0 === (seen1 & 4096)) + $this.report = emptyMap(); + else + $this.report = report; + if (0 === (seen1 & 8192)) + $this.endIcon = ''; + else + $this.endIcon = endIcon; + if (0 === (seen1 & 16384)) + $this.professionExt_1 = null; + else + $this.professionExt_1 = professionExt; + var tmp = $this; + tmp.extendNumber$delegate_1 = lazy_0(KHonor$_init_$lambda_4vfdu4($this)); + return $this; + } + } + class Companion_375 { + constructor() { + Companion_instance_375 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer($serializer_getInstance_363()), null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.viewunite.common.UserList'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_362(); + } + } + class $serializer_362 { + constructor() { + $serializer_instance_362 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KUserList', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('list', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_375().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0], StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp7_cached = Companion_getInstance_375().$childSerializers_1; + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp7_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp7_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KUserList.new_com_bapis_bilibili_app_viewunite_common_KUserList_ghhb7p_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_d2f55b_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_375().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.list, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.list); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.title); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_d2f55b_k$(encoder, value instanceof KUserList ? value : THROW_CCE()); + } + } + class KUserList { + constructor(list, title) { + Companion_getInstance_375(); + list = list === VOID ? emptyList() : list; + title = title === VOID ? '' : title; + this.list = list; + this.title = title; + } + get_list_wopuqv_k$() { + return this.list; + } + get_title_iz32un_k$() { + return this.title; + } + component1_7eebsc_k$() { + return this.list; + } + component2_7eebsb_k$() { + return this.title; + } + copy_iqoyml_k$(list, title) { + return new KUserList(list, title); + } + copy(list, title, $super) { + list = list === VOID ? this.list : list; + title = title === VOID ? this.title : title; + return this.copy_iqoyml_k$(list, title); + } + toString() { + return 'KUserList(list=' + this.list + ', title=' + this.title + ')'; + } + hashCode() { + var result = hashCode(this.list); + result = imul(result, 31) + getStringHashCode(this.title) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KUserList)) + return false; + var tmp0_other_with_cast = other instanceof KUserList ? other : THROW_CCE(); + if (!equals(this.list, tmp0_other_with_cast.list)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KUserList_ghhb7p_k$(seen1, list, title, serializationConstructorMarker) { + Companion_getInstance_375(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_362().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.list = emptyList(); + else + $this.list = list; + if (0 === (seen1 & 2)) + $this.title = ''; + else + $this.title = title; + return $this; + } + } + class Companion_376 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.User'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_363(); + } + } + class $serializer_363 { + constructor() { + $serializer_instance_363 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KUser', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('mid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('name', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('face', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('follower', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = new Long(0, 0); + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KUser.new_com_bapis_bilibili_app_viewunite_common_KUser_xxe0j5_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_t80eod_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.mid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.mid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.name === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.name); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.face === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.face); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !value.follower.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 3, value.follower); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_t80eod_k$(encoder, value instanceof KUser ? value : THROW_CCE()); + } + } + class KUser { + constructor(mid, name, face, follower) { + Companion_instance_376; + mid = mid === VOID ? new Long(0, 0) : mid; + name = name === VOID ? '' : name; + face = face === VOID ? '' : face; + follower = follower === VOID ? new Long(0, 0) : follower; + this.mid = mid; + this.name = name; + this.face = face; + this.follower = follower; + } + get_mid_18j0o1_k$() { + return this.mid; + } + get_name_woqyms_k$() { + return this.name; + } + get_face_woluhy_k$() { + return this.face; + } + get_follower_qt934p_k$() { + return this.follower; + } + component1_7eebsc_k$() { + return this.mid; + } + component2_7eebsb_k$() { + return this.name; + } + component3_7eebsa_k$() { + return this.face; + } + component4_7eebs9_k$() { + return this.follower; + } + copy_x9icr3_k$(mid, name, face, follower) { + return new KUser(mid, name, face, follower); + } + copy(mid, name, face, follower, $super) { + mid = mid === VOID ? this.mid : mid; + name = name === VOID ? this.name : name; + face = face === VOID ? this.face : face; + follower = follower === VOID ? this.follower : follower; + return this.copy_x9icr3_k$(mid, name, face, follower); + } + toString() { + return 'KUser(mid=' + this.mid.toString() + ', name=' + this.name + ', face=' + this.face + ', follower=' + this.follower.toString() + ')'; + } + hashCode() { + var result = this.mid.hashCode(); + result = imul(result, 31) + getStringHashCode(this.name) | 0; + result = imul(result, 31) + getStringHashCode(this.face) | 0; + result = imul(result, 31) + this.follower.hashCode() | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KUser)) + return false; + var tmp0_other_with_cast = other instanceof KUser ? other : THROW_CCE(); + if (!this.mid.equals(tmp0_other_with_cast.mid)) + return false; + if (!(this.name === tmp0_other_with_cast.name)) + return false; + if (!(this.face === tmp0_other_with_cast.face)) + return false; + if (!this.follower.equals(tmp0_other_with_cast.follower)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KUser_xxe0j5_k$(seen1, mid, name, face, follower, serializationConstructorMarker) { + Companion_instance_376; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_363().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.mid = new Long(0, 0); + else + $this.mid = mid; + if (0 === (seen1 & 2)) + $this.name = ''; + else + $this.name = name; + if (0 === (seen1 & 4)) + $this.face = ''; + else + $this.face = face; + if (0 === (seen1 & 8)) + $this.follower = new Long(0, 0); + else + $this.follower = follower; + return $this; + } + } + class Companion_377 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.OgvIntroduction'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_364(); + } + } + class $serializer_364 { + constructor() { + $serializer_instance_364 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KOgvIntroduction', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('followers', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('score', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('playData', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_367())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_367(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_367(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KOgvIntroduction_0.new_com_bapis_bilibili_app_viewunite_common_KOgvIntroduction_g3hqm0_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_45w3na_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.followers === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.followers); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.score === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.score); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.playData == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_367(), value.playData); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_45w3na_k$(encoder, value instanceof KOgvIntroduction_0 ? value : THROW_CCE()); + } + } + class KOgvIntroduction_0 { + constructor(followers, score, playData) { + Companion_instance_377; + followers = followers === VOID ? '' : followers; + score = score === VOID ? '' : score; + playData = playData === VOID ? null : playData; + this.followers = followers; + this.score = score; + this.playData = playData; + } + get_followers_l6iyr0_k$() { + return this.followers; + } + get_score_iyfcrt_k$() { + return this.score; + } + get_playData_qns55_k$() { + return this.playData; + } + component1_7eebsc_k$() { + return this.followers; + } + component2_7eebsb_k$() { + return this.score; + } + component3_7eebsa_k$() { + return this.playData; + } + copy_1bcgfr_k$(followers, score, playData) { + return new KOgvIntroduction_0(followers, score, playData); + } + copy(followers, score, playData, $super) { + followers = followers === VOID ? this.followers : followers; + score = score === VOID ? this.score : score; + playData = playData === VOID ? this.playData : playData; + return this.copy_1bcgfr_k$(followers, score, playData); + } + toString() { + return 'KOgvIntroduction(followers=' + this.followers + ', score=' + this.score + ', playData=' + this.playData + ')'; + } + hashCode() { + var result = getStringHashCode(this.followers); + result = imul(result, 31) + getStringHashCode(this.score) | 0; + result = imul(result, 31) + (this.playData == null ? 0 : this.playData.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KOgvIntroduction_0)) + return false; + var tmp0_other_with_cast = other instanceof KOgvIntroduction_0 ? other : THROW_CCE(); + if (!(this.followers === tmp0_other_with_cast.followers)) + return false; + if (!(this.score === tmp0_other_with_cast.score)) + return false; + if (!equals(this.playData, tmp0_other_with_cast.playData)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KOgvIntroduction_g3hqm0_k$(seen1, followers, score, playData, serializationConstructorMarker) { + Companion_instance_377; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_364().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.followers = ''; + else + $this.followers = followers; + if (0 === (seen1 & 2)) + $this.score = ''; + else + $this.score = score; + if (0 === (seen1 & 4)) + $this.playData = null; + else + $this.playData = playData; + return $this; + } + } + class Companion_378 { + constructor() { + Companion_instance_378 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer($serializer_getInstance_375()), null, null, new ArrayListSerializer($serializer_getInstance_372()), new ArrayListSerializer($serializer_getInstance_372()), new ArrayListSerializer($serializer_getInstance_372()), null, new ArrayListSerializer($serializer_getInstance_368()), null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.viewunite.common.UgcIntroduction'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_365(); + } + } + class $serializer_365 { + constructor() { + $serializer_instance_365 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KUgcIntroduction', this, 9); + tmp0_serialDesc.addElement_5pzumi_k$('tags', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('rating', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('rank', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('bgm', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('sticker', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('videoSource', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('pubdate', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('desc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('neutral', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_378().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0], get_nullable($serializer_getInstance_371()), get_nullable($serializer_getInstance_369()), tmp0_cached[3], tmp0_cached[4], tmp0_cached[5], LongSerializer_getInstance(), tmp0_cached[7], get_nullable($serializer_getInstance_366())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = new Long(0, 0); + var tmp11_local7 = null; + var tmp12_local8 = null; + var tmp13_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp14_cached = Companion_getInstance_378().$childSerializers_1; + if (tmp13_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp13_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp14_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_371(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_369(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp13_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 3, tmp14_cached[3], tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp13_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 4, tmp14_cached[4], tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp13_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 5, tmp14_cached[5], tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp13_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 7, tmp14_cached[7], tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_366(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + } else + while (tmp1_flag) { + tmp2_index = tmp13_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp13_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp14_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_371(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_369(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp13_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 3, tmp14_cached[3], tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp13_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 4, tmp14_cached[4], tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp13_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 5, tmp14_cached[5], tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp13_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 7, tmp14_cached[7], tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_366(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp13_input.endStructure_1xqz0n_k$(tmp0_desc); + return KUgcIntroduction_0.new_com_bapis_bilibili_app_viewunite_common_KUgcIntroduction_o2ml00_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, null); + } + serialize_glrjvh_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_378().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.tags, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.tags); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.rating == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_371(), value.rating); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.rank == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_369(), value.rank); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !equals(value.bgm, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 3, tmp2_cached[3], value.bgm); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !equals(value.sticker, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 4, tmp2_cached[4], value.sticker); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !equals(value.videoSource, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 5, tmp2_cached[5], value.videoSource); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !value.pubdate.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 6, value.pubdate); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !equals(value.desc, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 7, tmp2_cached[7], value.desc); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.neutral == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 8, $serializer_getInstance_366(), value.neutral); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_glrjvh_k$(encoder, value instanceof KUgcIntroduction_0 ? value : THROW_CCE()); + } + } + class KUgcIntroduction_0 { + constructor(tags, rating, rank, bgm, sticker, videoSource, pubdate, desc, neutral) { + Companion_getInstance_378(); + tags = tags === VOID ? emptyList() : tags; + rating = rating === VOID ? null : rating; + rank = rank === VOID ? null : rank; + bgm = bgm === VOID ? emptyList() : bgm; + sticker = sticker === VOID ? emptyList() : sticker; + videoSource = videoSource === VOID ? emptyList() : videoSource; + pubdate = pubdate === VOID ? new Long(0, 0) : pubdate; + desc = desc === VOID ? emptyList() : desc; + neutral = neutral === VOID ? null : neutral; + this.tags = tags; + this.rating = rating; + this.rank = rank; + this.bgm = bgm; + this.sticker = sticker; + this.videoSource = videoSource; + this.pubdate = pubdate; + this.desc = desc; + this.neutral = neutral; + } + get_tags_wousf6_k$() { + return this.tags; + } + get_rating_iw9d46_k$() { + return this.rating; + } + get_rank_wotilx_k$() { + return this.rank; + } + get_bgm_18j8v5_k$() { + return this.bgm; + } + get_sticker_tzuq3w_k$() { + return this.sticker; + } + get_videoSource_v2fz0t_k$() { + return this.videoSource; + } + get_pubdate_2mq0n2_k$() { + return this.pubdate; + } + get_desc_woknve_k$() { + return this.desc; + } + get_neutral_vrm5su_k$() { + return this.neutral; + } + component1_7eebsc_k$() { + return this.tags; + } + component2_7eebsb_k$() { + return this.rating; + } + component3_7eebsa_k$() { + return this.rank; + } + component4_7eebs9_k$() { + return this.bgm; + } + component5_7eebs8_k$() { + return this.sticker; + } + component6_7eebs7_k$() { + return this.videoSource; + } + component7_7eebs6_k$() { + return this.pubdate; + } + component8_7eebs5_k$() { + return this.desc; + } + component9_7eebs4_k$() { + return this.neutral; + } + copy_a6mrzf_k$(tags, rating, rank, bgm, sticker, videoSource, pubdate, desc, neutral) { + return new KUgcIntroduction_0(tags, rating, rank, bgm, sticker, videoSource, pubdate, desc, neutral); + } + copy(tags, rating, rank, bgm, sticker, videoSource, pubdate, desc, neutral, $super) { + tags = tags === VOID ? this.tags : tags; + rating = rating === VOID ? this.rating : rating; + rank = rank === VOID ? this.rank : rank; + bgm = bgm === VOID ? this.bgm : bgm; + sticker = sticker === VOID ? this.sticker : sticker; + videoSource = videoSource === VOID ? this.videoSource : videoSource; + pubdate = pubdate === VOID ? this.pubdate : pubdate; + desc = desc === VOID ? this.desc : desc; + neutral = neutral === VOID ? this.neutral : neutral; + return this.copy_a6mrzf_k$(tags, rating, rank, bgm, sticker, videoSource, pubdate, desc, neutral); + } + toString() { + return 'KUgcIntroduction(tags=' + this.tags + ', rating=' + this.rating + ', rank=' + this.rank + ', bgm=' + this.bgm + ', sticker=' + this.sticker + ', videoSource=' + this.videoSource + ', pubdate=' + this.pubdate.toString() + ', desc=' + this.desc + ', neutral=' + this.neutral + ')'; + } + hashCode() { + var result = hashCode(this.tags); + result = imul(result, 31) + (this.rating == null ? 0 : this.rating.hashCode()) | 0; + result = imul(result, 31) + (this.rank == null ? 0 : this.rank.hashCode()) | 0; + result = imul(result, 31) + hashCode(this.bgm) | 0; + result = imul(result, 31) + hashCode(this.sticker) | 0; + result = imul(result, 31) + hashCode(this.videoSource) | 0; + result = imul(result, 31) + this.pubdate.hashCode() | 0; + result = imul(result, 31) + hashCode(this.desc) | 0; + result = imul(result, 31) + (this.neutral == null ? 0 : this.neutral.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KUgcIntroduction_0)) + return false; + var tmp0_other_with_cast = other instanceof KUgcIntroduction_0 ? other : THROW_CCE(); + if (!equals(this.tags, tmp0_other_with_cast.tags)) + return false; + if (!equals(this.rating, tmp0_other_with_cast.rating)) + return false; + if (!equals(this.rank, tmp0_other_with_cast.rank)) + return false; + if (!equals(this.bgm, tmp0_other_with_cast.bgm)) + return false; + if (!equals(this.sticker, tmp0_other_with_cast.sticker)) + return false; + if (!equals(this.videoSource, tmp0_other_with_cast.videoSource)) + return false; + if (!this.pubdate.equals(tmp0_other_with_cast.pubdate)) + return false; + if (!equals(this.desc, tmp0_other_with_cast.desc)) + return false; + if (!equals(this.neutral, tmp0_other_with_cast.neutral)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KUgcIntroduction_o2ml00_k$(seen1, tags, rating, rank, bgm, sticker, videoSource, pubdate, desc, neutral, serializationConstructorMarker) { + Companion_getInstance_378(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_365().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.tags = emptyList(); + else + $this.tags = tags; + if (0 === (seen1 & 2)) + $this.rating = null; + else + $this.rating = rating; + if (0 === (seen1 & 4)) + $this.rank = null; + else + $this.rank = rank; + if (0 === (seen1 & 8)) + $this.bgm = emptyList(); + else + $this.bgm = bgm; + if (0 === (seen1 & 16)) + $this.sticker = emptyList(); + else + $this.sticker = sticker; + if (0 === (seen1 & 32)) + $this.videoSource = emptyList(); + else + $this.videoSource = videoSource; + if (0 === (seen1 & 64)) + $this.pubdate = new Long(0, 0); + else + $this.pubdate = pubdate; + if (0 === (seen1 & 128)) + $this.desc = emptyList(); + else + $this.desc = desc; + if (0 === (seen1 & 256)) + $this.neutral = null; + else + $this.neutral = neutral; + return $this; + } + } + class Companion_379 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.Neutral'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_366(); + } + } + class $serializer_366 { + constructor() { + $serializer_instance_366 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KNeutral', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('icon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KNeutral.new_com_bapis_bilibili_app_viewunite_common_KNeutral_e44757_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_hh0lw9_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.icon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.icon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.title); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_hh0lw9_k$(encoder, value instanceof KNeutral ? value : THROW_CCE()); + } + } + class KNeutral { + constructor(icon, title) { + Companion_instance_379; + icon = icon === VOID ? '' : icon; + title = title === VOID ? '' : title; + this.icon = icon; + this.title = title; + } + get_icon_wont8i_k$() { + return this.icon; + } + get_title_iz32un_k$() { + return this.title; + } + component1_7eebsc_k$() { + return this.icon; + } + component2_7eebsb_k$() { + return this.title; + } + copy_plwnsl_k$(icon, title) { + return new KNeutral(icon, title); + } + copy(icon, title, $super) { + icon = icon === VOID ? this.icon : icon; + title = title === VOID ? this.title : title; + return this.copy_plwnsl_k$(icon, title); + } + toString() { + return 'KNeutral(icon=' + this.icon + ', title=' + this.title + ')'; + } + hashCode() { + var result = getStringHashCode(this.icon); + result = imul(result, 31) + getStringHashCode(this.title) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KNeutral)) + return false; + var tmp0_other_with_cast = other instanceof KNeutral ? other : THROW_CCE(); + if (!(this.icon === tmp0_other_with_cast.icon)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KNeutral_e44757_k$(seen1, icon, title, serializationConstructorMarker) { + Companion_instance_379; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_366().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.icon = ''; + else + $this.icon = icon; + if (0 === (seen1 & 2)) + $this.title = ''; + else + $this.title = title; + return $this; + } + } + class Companion_380 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.StatInfo'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_367(); + } + } + class $serializer_367 { + constructor() { + $serializer_instance_367 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KStatInfo', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('value', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('text', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('pureText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('icon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KStatInfo.new_com_bapis_bilibili_app_viewunite_common_KStatInfo_kl47t7_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_mgptyi_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.value.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.value); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.text === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.text); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.pureText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.pureText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.icon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.icon); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_mgptyi_k$(encoder, value instanceof KStatInfo ? value : THROW_CCE()); + } + } + class KStatInfo { + constructor(value, text, pureText, icon) { + Companion_instance_380; + value = value === VOID ? new Long(0, 0) : value; + text = text === VOID ? '' : text; + pureText = pureText === VOID ? '' : pureText; + icon = icon === VOID ? '' : icon; + this.value = value; + this.text = text; + this.pureText = pureText; + this.icon = icon; + } + get_value_j01efc_k$() { + return this.value; + } + get_text_wouvsm_k$() { + return this.text; + } + get_pureText_2y9cdu_k$() { + return this.pureText; + } + get_icon_wont8i_k$() { + return this.icon; + } + component1_7eebsc_k$() { + return this.value; + } + component2_7eebsb_k$() { + return this.text; + } + component3_7eebsa_k$() { + return this.pureText; + } + component4_7eebs9_k$() { + return this.icon; + } + copy_kwys9l_k$(value, text, pureText, icon) { + return new KStatInfo(value, text, pureText, icon); + } + copy(value, text, pureText, icon, $super) { + value = value === VOID ? this.value : value; + text = text === VOID ? this.text : text; + pureText = pureText === VOID ? this.pureText : pureText; + icon = icon === VOID ? this.icon : icon; + return this.copy_kwys9l_k$(value, text, pureText, icon); + } + toString() { + return 'KStatInfo(value=' + this.value.toString() + ', text=' + this.text + ', pureText=' + this.pureText + ', icon=' + this.icon + ')'; + } + hashCode() { + var result = this.value.hashCode(); + result = imul(result, 31) + getStringHashCode(this.text) | 0; + result = imul(result, 31) + getStringHashCode(this.pureText) | 0; + result = imul(result, 31) + getStringHashCode(this.icon) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KStatInfo)) + return false; + var tmp0_other_with_cast = other instanceof KStatInfo ? other : THROW_CCE(); + if (!this.value.equals(tmp0_other_with_cast.value)) + return false; + if (!(this.text === tmp0_other_with_cast.text)) + return false; + if (!(this.pureText === tmp0_other_with_cast.pureText)) + return false; + if (!(this.icon === tmp0_other_with_cast.icon)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KStatInfo_kl47t7_k$(seen1, value, text, pureText, icon, serializationConstructorMarker) { + Companion_instance_380; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_367().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.value = new Long(0, 0); + else + $this.value = value; + if (0 === (seen1 & 2)) + $this.text = ''; + else + $this.text = text; + if (0 === (seen1 & 4)) + $this.pureText = ''; + else + $this.pureText = pureText; + if (0 === (seen1 & 8)) + $this.icon = ''; + else + $this.icon = icon; + return $this; + } + } + class Companion_381 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.DescV2'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_368(); + } + } + class $serializer_368 { + constructor() { + $serializer_instance_368 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KDescV2', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('text', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('uri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('rid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = 0; + var tmp6_local2 = null; + var tmp7_local3 = new Long(0, 0); + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KDescV2.new_com_bapis_bilibili_app_viewunite_common_KDescV2_5eghoj_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_6bbj9x_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.text === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.text); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.type === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.type); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.uri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.uri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !value.rid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 3, value.rid); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_6bbj9x_k$(encoder, value instanceof KDescV2 ? value : THROW_CCE()); + } + } + class KDescV2 { + constructor(text, type, uri, rid) { + Companion_instance_381; + text = text === VOID ? '' : text; + type = type === VOID ? 0 : type; + uri = uri === VOID ? '' : uri; + rid = rid === VOID ? new Long(0, 0) : rid; + this.text = text; + this.type = type; + this.uri = uri; + this.rid = rid; + } + get_text_wouvsm_k$() { + return this.text; + } + get_type_wovaf7_k$() { + return this.type; + } + get_uri_18iuil_k$() { + return this.uri; + } + get_rid_18iwyk_k$() { + return this.rid; + } + typeEnum() { + return Companion_getInstance_228().fromValue(this.type); + } + component1_7eebsc_k$() { + return this.text; + } + component2_7eebsb_k$() { + return this.type; + } + component3_7eebsa_k$() { + return this.uri; + } + component4_7eebs9_k$() { + return this.rid; + } + copy_h6wxh7_k$(text, type, uri, rid) { + return new KDescV2(text, type, uri, rid); + } + copy(text, type, uri, rid, $super) { + text = text === VOID ? this.text : text; + type = type === VOID ? this.type : type; + uri = uri === VOID ? this.uri : uri; + rid = rid === VOID ? this.rid : rid; + return this.copy_h6wxh7_k$(text, type, uri, rid); + } + toString() { + return 'KDescV2(text=' + this.text + ', type=' + this.type + ', uri=' + this.uri + ', rid=' + this.rid.toString() + ')'; + } + hashCode() { + var result = getStringHashCode(this.text); + result = imul(result, 31) + this.type | 0; + result = imul(result, 31) + getStringHashCode(this.uri) | 0; + result = imul(result, 31) + this.rid.hashCode() | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KDescV2)) + return false; + var tmp0_other_with_cast = other instanceof KDescV2 ? other : THROW_CCE(); + if (!(this.text === tmp0_other_with_cast.text)) + return false; + if (!(this.type === tmp0_other_with_cast.type)) + return false; + if (!(this.uri === tmp0_other_with_cast.uri)) + return false; + if (!this.rid.equals(tmp0_other_with_cast.rid)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KDescV2_5eghoj_k$(seen1, text, type, uri, rid, serializationConstructorMarker) { + Companion_instance_381; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_368().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.text = ''; + else + $this.text = text; + if (0 === (seen1 & 2)) + $this.type = 0; + else + $this.type = type; + if (0 === (seen1 & 4)) + $this.uri = ''; + else + $this.uri = uri; + if (0 === (seen1 & 8)) + $this.rid = new Long(0, 0); + else + $this.rid = rid; + return $this; + } + } + class Companion_382 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.Rank'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_369(); + } + } + class $serializer_369 { + constructor() { + $serializer_instance_369 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KRank', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('icon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('iconNight', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('text', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KRank.new_com_bapis_bilibili_app_viewunite_common_KRank_722h0t_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_yioj8_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.icon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.icon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.iconNight === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.iconNight); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.text === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.text); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_yioj8_k$(encoder, value instanceof KRank ? value : THROW_CCE()); + } + } + class KRank { + constructor(icon, iconNight, text) { + Companion_instance_382; + icon = icon === VOID ? '' : icon; + iconNight = iconNight === VOID ? '' : iconNight; + text = text === VOID ? '' : text; + this.icon = icon; + this.iconNight = iconNight; + this.text = text; + } + get_icon_wont8i_k$() { + return this.icon; + } + get_iconNight_equj62_k$() { + return this.iconNight; + } + get_text_wouvsm_k$() { + return this.text; + } + component1_7eebsc_k$() { + return this.icon; + } + component2_7eebsb_k$() { + return this.iconNight; + } + component3_7eebsa_k$() { + return this.text; + } + copy_nc7k0r_k$(icon, iconNight, text) { + return new KRank(icon, iconNight, text); + } + copy(icon, iconNight, text, $super) { + icon = icon === VOID ? this.icon : icon; + iconNight = iconNight === VOID ? this.iconNight : iconNight; + text = text === VOID ? this.text : text; + return this.copy_nc7k0r_k$(icon, iconNight, text); + } + toString() { + return 'KRank(icon=' + this.icon + ', iconNight=' + this.iconNight + ', text=' + this.text + ')'; + } + hashCode() { + var result = getStringHashCode(this.icon); + result = imul(result, 31) + getStringHashCode(this.iconNight) | 0; + result = imul(result, 31) + getStringHashCode(this.text) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KRank)) + return false; + var tmp0_other_with_cast = other instanceof KRank ? other : THROW_CCE(); + if (!(this.icon === tmp0_other_with_cast.icon)) + return false; + if (!(this.iconNight === tmp0_other_with_cast.iconNight)) + return false; + if (!(this.text === tmp0_other_with_cast.text)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KRank_722h0t_k$(seen1, icon, iconNight, text, serializationConstructorMarker) { + Companion_instance_382; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_369().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.icon = ''; + else + $this.icon = icon; + if (0 === (seen1 & 2)) + $this.iconNight = ''; + else + $this.iconNight = iconNight; + if (0 === (seen1 & 4)) + $this.text = ''; + else + $this.text = text; + return $this; + } + } + class Companion_383 { + constructor() { + Companion_instance_383 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer($serializer_getInstance_376()), new ArrayListSerializer($serializer_getInstance_376())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.viewunite.common.KingPosition'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_370(); + } + } + class $serializer_370 { + constructor() { + $serializer_instance_370 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KKingPosition', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('kingPos', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('extend', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_383().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0], tmp0_cached[1]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp7_cached = Companion_getInstance_383().$childSerializers_1; + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp7_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp7_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KKingPosition_0.new_com_bapis_bilibili_app_viewunite_common_KKingPosition_q4g2ao_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_tqb6zc_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_383().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.kingPos, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.kingPos); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !equals(value.extend, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 1, tmp2_cached[1], value.extend); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_tqb6zc_k$(encoder, value instanceof KKingPosition_0 ? value : THROW_CCE()); + } + } + class KKingPosition_0 { + constructor(kingPos, extend) { + Companion_getInstance_383(); + kingPos = kingPos === VOID ? emptyList() : kingPos; + extend = extend === VOID ? emptyList() : extend; + this.kingPos = kingPos; + this.extend = extend; + } + get_kingPos_ahhr58_k$() { + return this.kingPos; + } + get_extend_d3bgo3_k$() { + return this.extend; + } + component1_7eebsc_k$() { + return this.kingPos; + } + component2_7eebsb_k$() { + return this.extend; + } + copy_bdn897_k$(kingPos, extend) { + return new KKingPosition_0(kingPos, extend); + } + copy(kingPos, extend, $super) { + kingPos = kingPos === VOID ? this.kingPos : kingPos; + extend = extend === VOID ? this.extend : extend; + return this.copy_bdn897_k$(kingPos, extend); + } + toString() { + return 'KKingPosition(kingPos=' + this.kingPos + ', extend=' + this.extend + ')'; + } + hashCode() { + var result = hashCode(this.kingPos); + result = imul(result, 31) + hashCode(this.extend) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KKingPosition_0)) + return false; + var tmp0_other_with_cast = other instanceof KKingPosition_0 ? other : THROW_CCE(); + if (!equals(this.kingPos, tmp0_other_with_cast.kingPos)) + return false; + if (!equals(this.extend, tmp0_other_with_cast.extend)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KKingPosition_q4g2ao_k$(seen1, kingPos, extend, serializationConstructorMarker) { + Companion_getInstance_383(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_370().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.kingPos = emptyList(); + else + $this.kingPos = kingPos; + if (0 === (seen1 & 2)) + $this.extend = emptyList(); + else + $this.extend = extend; + return $this; + } + } + class Companion_384 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.Rating'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_371(); + } + } + class $serializer_371 { + constructor() { + $serializer_instance_371 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KRating', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('score', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('count', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = 0; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KRating.new_com_bapis_bilibili_app_viewunite_common_KRating_65bbg6_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_yynqij_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.score === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.score); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.count === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.count); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_yynqij_k$(encoder, value instanceof KRating ? value : THROW_CCE()); + } + } + class KRating { + constructor(score, count) { + Companion_instance_384; + score = score === VOID ? '' : score; + count = count === VOID ? 0 : count; + this.score = score; + this.count = count; + } + get_score_iyfcrt_k$() { + return this.score; + } + get_count_ipufhi_k$() { + return this.count; + } + component1_7eebsc_k$() { + return this.score; + } + component2_7eebsb_k$() { + return this.count; + } + copy_1yzwer_k$(score, count) { + return new KRating(score, count); + } + copy(score, count, $super) { + score = score === VOID ? this.score : score; + count = count === VOID ? this.count : count; + return this.copy_1yzwer_k$(score, count); + } + toString() { + return 'KRating(score=' + this.score + ', count=' + this.count + ')'; + } + hashCode() { + var result = getStringHashCode(this.score); + result = imul(result, 31) + this.count | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KRating)) + return false; + var tmp0_other_with_cast = other instanceof KRating ? other : THROW_CCE(); + if (!(this.score === tmp0_other_with_cast.score)) + return false; + if (!(this.count === tmp0_other_with_cast.count)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KRating_65bbg6_k$(seen1, score, count, serializationConstructorMarker) { + Companion_instance_384; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_371().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.score = ''; + else + $this.score = score; + if (0 === (seen1 & 2)) + $this.count = 0; + else + $this.count = count; + return $this; + } + } + class Companion_385 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.ViewMaterial'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_372(); + } + } + class $serializer_372 { + constructor() { + $serializer_instance_372 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KViewMaterial', this, 5); + tmp0_serialDesc.addElement_5pzumi_k$('oid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('mid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('author', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('jumpUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = new Long(0, 0); + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp9_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + } else + while (tmp1_flag) { + tmp2_index = tmp9_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp9_input.endStructure_1xqz0n_k$(tmp0_desc); + return KViewMaterial.new_com_bapis_bilibili_app_viewunite_common_KViewMaterial_a7vxpl_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); + } + serialize_a1y0ss_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.oid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.oid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.mid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.mid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.author === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.author); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.jumpUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.jumpUrl); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_a1y0ss_k$(encoder, value instanceof KViewMaterial ? value : THROW_CCE()); + } + } + class KViewMaterial { + constructor(oid, mid, title, author, jumpUrl) { + Companion_instance_385; + oid = oid === VOID ? new Long(0, 0) : oid; + mid = mid === VOID ? new Long(0, 0) : mid; + title = title === VOID ? '' : title; + author = author === VOID ? '' : author; + jumpUrl = jumpUrl === VOID ? '' : jumpUrl; + this.oid = oid; + this.mid = mid; + this.title = title; + this.author = author; + this.jumpUrl = jumpUrl; + } + get_oid_18iz6n_k$() { + return this.oid; + } + get_mid_18j0o1_k$() { + return this.mid; + } + get_title_iz32un_k$() { + return this.title; + } + get_author_b5hnkk_k$() { + return this.author; + } + get_jumpUrl_jhqiko_k$() { + return this.jumpUrl; + } + component1_7eebsc_k$() { + return this.oid; + } + component2_7eebsb_k$() { + return this.mid; + } + component3_7eebsa_k$() { + return this.title; + } + component4_7eebs9_k$() { + return this.author; + } + component5_7eebs8_k$() { + return this.jumpUrl; + } + copy_nx1ehj_k$(oid, mid, title, author, jumpUrl) { + return new KViewMaterial(oid, mid, title, author, jumpUrl); + } + copy(oid, mid, title, author, jumpUrl, $super) { + oid = oid === VOID ? this.oid : oid; + mid = mid === VOID ? this.mid : mid; + title = title === VOID ? this.title : title; + author = author === VOID ? this.author : author; + jumpUrl = jumpUrl === VOID ? this.jumpUrl : jumpUrl; + return this.copy_nx1ehj_k$(oid, mid, title, author, jumpUrl); + } + toString() { + return 'KViewMaterial(oid=' + this.oid.toString() + ', mid=' + this.mid.toString() + ', title=' + this.title + ', author=' + this.author + ', jumpUrl=' + this.jumpUrl + ')'; + } + hashCode() { + var result = this.oid.hashCode(); + result = imul(result, 31) + this.mid.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.title) | 0; + result = imul(result, 31) + getStringHashCode(this.author) | 0; + result = imul(result, 31) + getStringHashCode(this.jumpUrl) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KViewMaterial)) + return false; + var tmp0_other_with_cast = other instanceof KViewMaterial ? other : THROW_CCE(); + if (!this.oid.equals(tmp0_other_with_cast.oid)) + return false; + if (!this.mid.equals(tmp0_other_with_cast.mid)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.author === tmp0_other_with_cast.author)) + return false; + if (!(this.jumpUrl === tmp0_other_with_cast.jumpUrl)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KViewMaterial_a7vxpl_k$(seen1, oid, mid, title, author, jumpUrl, serializationConstructorMarker) { + Companion_instance_385; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_372().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.oid = new Long(0, 0); + else + $this.oid = oid; + if (0 === (seen1 & 2)) + $this.mid = new Long(0, 0); + else + $this.mid = mid; + if (0 === (seen1 & 4)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 8)) + $this.author = ''; + else + $this.author = author; + if (0 === (seen1 & 16)) + $this.jumpUrl = ''; + else + $this.jumpUrl = jumpUrl; + return $this; + } + } + class Companion_386 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.Headline'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_373(); + } + } + class $serializer_373 { + constructor() { + $serializer_instance_373 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KHeadline', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('label', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('content', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_374()), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_374(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_374(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KHeadline.new_com_bapis_bilibili_app_viewunite_common_KHeadline_rn8q8f_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_71efoc_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.label == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_374(), value.label); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.content === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.content); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_71efoc_k$(encoder, value instanceof KHeadline ? value : THROW_CCE()); + } + } + class KHeadline { + constructor(label, content) { + Companion_instance_386; + label = label === VOID ? null : label; + content = content === VOID ? '' : content; + this.label = label; + this.content = content; + } + get_label_iuj8p7_k$() { + return this.label; + } + get_content_h02jrk_k$() { + return this.content; + } + component1_7eebsc_k$() { + return this.label; + } + component2_7eebsb_k$() { + return this.content; + } + copy_2utvh7_k$(label, content) { + return new KHeadline(label, content); + } + copy(label, content, $super) { + label = label === VOID ? this.label : label; + content = content === VOID ? this.content : content; + return this.copy_2utvh7_k$(label, content); + } + toString() { + return 'KHeadline(label=' + this.label + ', content=' + this.content + ')'; + } + hashCode() { + var result = this.label == null ? 0 : this.label.hashCode(); + result = imul(result, 31) + getStringHashCode(this.content) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KHeadline)) + return false; + var tmp0_other_with_cast = other instanceof KHeadline ? other : THROW_CCE(); + if (!equals(this.label, tmp0_other_with_cast.label)) + return false; + if (!(this.content === tmp0_other_with_cast.content)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KHeadline_rn8q8f_k$(seen1, label, content, serializationConstructorMarker) { + Companion_instance_386; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_373().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.label = null; + else + $this.label = label; + if (0 === (seen1 & 2)) + $this.content = ''; + else + $this.content = content; + return $this; + } + } + class Companion_387 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.Label'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_374(); + } + } + class $serializer_374 { + constructor() { + $serializer_instance_374 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KLabel', this, 8); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('uri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('icon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('iconNight', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('iconWidth', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('iconHeight', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('lottie', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('lottieNight', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = new Long(0, 0); + var tmp9_local5 = new Long(0, 0); + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp12_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + } else + while (tmp1_flag) { + tmp2_index = tmp12_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp12_input.endStructure_1xqz0n_k$(tmp0_desc); + return KLabel_0.new_com_bapis_bilibili_app_viewunite_common_KLabel_4zkzrx_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null); + } + serialize_shfw62_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.type === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.type); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.uri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.uri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.icon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.icon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.iconNight === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.iconNight); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !value.iconWidth.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 4, value.iconWidth); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !value.iconHeight.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 5, value.iconHeight); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.lottie === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.lottie); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.lottieNight === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.lottieNight); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_shfw62_k$(encoder, value instanceof KLabel_0 ? value : THROW_CCE()); + } + } + class KLabel_0 { + constructor(type, uri, icon, iconNight, iconWidth, iconHeight, lottie, lottieNight) { + Companion_instance_387; + type = type === VOID ? 0 : type; + uri = uri === VOID ? '' : uri; + icon = icon === VOID ? '' : icon; + iconNight = iconNight === VOID ? '' : iconNight; + iconWidth = iconWidth === VOID ? new Long(0, 0) : iconWidth; + iconHeight = iconHeight === VOID ? new Long(0, 0) : iconHeight; + lottie = lottie === VOID ? '' : lottie; + lottieNight = lottieNight === VOID ? '' : lottieNight; + this.type = type; + this.uri = uri; + this.icon = icon; + this.iconNight = iconNight; + this.iconWidth = iconWidth; + this.iconHeight = iconHeight; + this.lottie = lottie; + this.lottieNight = lottieNight; + } + get_type_wovaf7_k$() { + return this.type; + } + get_uri_18iuil_k$() { + return this.uri; + } + get_icon_wont8i_k$() { + return this.icon; + } + get_iconNight_equj62_k$() { + return this.iconNight; + } + get_iconWidth_elwfrw_k$() { + return this.iconWidth; + } + get_iconHeight_xu1u2f_k$() { + return this.iconHeight; + } + get_lottie_g9oz3c_k$() { + return this.lottie; + } + get_lottieNight_ubnsmo_k$() { + return this.lottieNight; + } + component1_7eebsc_k$() { + return this.type; + } + component2_7eebsb_k$() { + return this.uri; + } + component3_7eebsa_k$() { + return this.icon; + } + component4_7eebs9_k$() { + return this.iconNight; + } + component5_7eebs8_k$() { + return this.iconWidth; + } + component6_7eebs7_k$() { + return this.iconHeight; + } + component7_7eebs6_k$() { + return this.lottie; + } + component8_7eebs5_k$() { + return this.lottieNight; + } + copy_ggnkq5_k$(type, uri, icon, iconNight, iconWidth, iconHeight, lottie, lottieNight) { + return new KLabel_0(type, uri, icon, iconNight, iconWidth, iconHeight, lottie, lottieNight); + } + copy(type, uri, icon, iconNight, iconWidth, iconHeight, lottie, lottieNight, $super) { + type = type === VOID ? this.type : type; + uri = uri === VOID ? this.uri : uri; + icon = icon === VOID ? this.icon : icon; + iconNight = iconNight === VOID ? this.iconNight : iconNight; + iconWidth = iconWidth === VOID ? this.iconWidth : iconWidth; + iconHeight = iconHeight === VOID ? this.iconHeight : iconHeight; + lottie = lottie === VOID ? this.lottie : lottie; + lottieNight = lottieNight === VOID ? this.lottieNight : lottieNight; + return this.copy_ggnkq5_k$(type, uri, icon, iconNight, iconWidth, iconHeight, lottie, lottieNight); + } + toString() { + return 'KLabel(type=' + this.type + ', uri=' + this.uri + ', icon=' + this.icon + ', iconNight=' + this.iconNight + ', iconWidth=' + this.iconWidth.toString() + ', iconHeight=' + this.iconHeight.toString() + ', lottie=' + this.lottie + ', lottieNight=' + this.lottieNight + ')'; + } + hashCode() { + var result = this.type; + result = imul(result, 31) + getStringHashCode(this.uri) | 0; + result = imul(result, 31) + getStringHashCode(this.icon) | 0; + result = imul(result, 31) + getStringHashCode(this.iconNight) | 0; + result = imul(result, 31) + this.iconWidth.hashCode() | 0; + result = imul(result, 31) + this.iconHeight.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.lottie) | 0; + result = imul(result, 31) + getStringHashCode(this.lottieNight) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KLabel_0)) + return false; + var tmp0_other_with_cast = other instanceof KLabel_0 ? other : THROW_CCE(); + if (!(this.type === tmp0_other_with_cast.type)) + return false; + if (!(this.uri === tmp0_other_with_cast.uri)) + return false; + if (!(this.icon === tmp0_other_with_cast.icon)) + return false; + if (!(this.iconNight === tmp0_other_with_cast.iconNight)) + return false; + if (!this.iconWidth.equals(tmp0_other_with_cast.iconWidth)) + return false; + if (!this.iconHeight.equals(tmp0_other_with_cast.iconHeight)) + return false; + if (!(this.lottie === tmp0_other_with_cast.lottie)) + return false; + if (!(this.lottieNight === tmp0_other_with_cast.lottieNight)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KLabel_4zkzrx_k$(seen1, type, uri, icon, iconNight, iconWidth, iconHeight, lottie, lottieNight, serializationConstructorMarker) { + Companion_instance_387; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_374().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.type = 0; + else + $this.type = type; + if (0 === (seen1 & 2)) + $this.uri = ''; + else + $this.uri = uri; + if (0 === (seen1 & 4)) + $this.icon = ''; + else + $this.icon = icon; + if (0 === (seen1 & 8)) + $this.iconNight = ''; + else + $this.iconNight = iconNight; + if (0 === (seen1 & 16)) + $this.iconWidth = new Long(0, 0); + else + $this.iconWidth = iconWidth; + if (0 === (seen1 & 32)) + $this.iconHeight = new Long(0, 0); + else + $this.iconHeight = iconHeight; + if (0 === (seen1 & 64)) + $this.lottie = ''; + else + $this.lottie = lottie; + if (0 === (seen1 & 128)) + $this.lottieNight = ''; + else + $this.lottieNight = lottieNight; + return $this; + } + } + class Companion_388 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.Tag'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_375(); + } + } + class $serializer_375 { + constructor() { + $serializer_instance_375 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KTag', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('tagId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('name', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('uri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('tagType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KTag.new_com_bapis_bilibili_app_viewunite_common_KTag_50q6hz_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_pbilfw_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.tagId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.tagId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.name === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.name); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.uri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.uri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.tagType === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.tagType); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_pbilfw_k$(encoder, value instanceof KTag ? value : THROW_CCE()); + } + } + class KTag { + constructor(tagId, name, uri, tagType) { + Companion_instance_388; + tagId = tagId === VOID ? new Long(0, 0) : tagId; + name = name === VOID ? '' : name; + uri = uri === VOID ? '' : uri; + tagType = tagType === VOID ? '' : tagType; + this.tagId = tagId; + this.name = name; + this.uri = uri; + this.tagType = tagType; + } + get_tagId_iyxoh8_k$() { + return this.tagId; + } + get_name_woqyms_k$() { + return this.name; + } + get_uri_18iuil_k$() { + return this.uri; + } + get_tagType_oco4qd_k$() { + return this.tagType; + } + component1_7eebsc_k$() { + return this.tagId; + } + component2_7eebsb_k$() { + return this.name; + } + component3_7eebsa_k$() { + return this.uri; + } + component4_7eebs9_k$() { + return this.tagType; + } + copy_kwys9l_k$(tagId, name, uri, tagType) { + return new KTag(tagId, name, uri, tagType); + } + copy(tagId, name, uri, tagType, $super) { + tagId = tagId === VOID ? this.tagId : tagId; + name = name === VOID ? this.name : name; + uri = uri === VOID ? this.uri : uri; + tagType = tagType === VOID ? this.tagType : tagType; + return this.copy_kwys9l_k$(tagId, name, uri, tagType); + } + toString() { + return 'KTag(tagId=' + this.tagId.toString() + ', name=' + this.name + ', uri=' + this.uri + ', tagType=' + this.tagType + ')'; + } + hashCode() { + var result = this.tagId.hashCode(); + result = imul(result, 31) + getStringHashCode(this.name) | 0; + result = imul(result, 31) + getStringHashCode(this.uri) | 0; + result = imul(result, 31) + getStringHashCode(this.tagType) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KTag)) + return false; + var tmp0_other_with_cast = other instanceof KTag ? other : THROW_CCE(); + if (!this.tagId.equals(tmp0_other_with_cast.tagId)) + return false; + if (!(this.name === tmp0_other_with_cast.name)) + return false; + if (!(this.uri === tmp0_other_with_cast.uri)) + return false; + if (!(this.tagType === tmp0_other_with_cast.tagType)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KTag_50q6hz_k$(seen1, tagId, name, uri, tagType, serializationConstructorMarker) { + Companion_instance_388; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_375().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.tagId = new Long(0, 0); + else + $this.tagId = tagId; + if (0 === (seen1 & 2)) + $this.name = ''; + else + $this.name = name; + if (0 === (seen1 & 4)) + $this.uri = ''; + else + $this.uri = uri; + if (0 === (seen1 & 8)) + $this.tagType = ''; + else + $this.tagType = tagType; + return $this; + } + } + class KExtend_0 { + constructor(value) { + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + } + class KLike extends KExtend_0 { + constructor() { + KLike_instance = null; + super(0); + KLike_instance = this; + } + } + class KCoin extends KExtend_0 { + constructor() { + KCoin_instance = null; + super(1); + KCoin_instance = this; + } + } + class Companion_389 { + constructor() { + Companion_instance_389 = this; + var tmp = this; + tmp.extendValues$delegate_1 = lazy_0(KKingPos$Companion$extendValues$delegate$lambda); + this.targetPath = '/bilibili.app.viewunite.common.KingPos'; + } + get_extendValues_1opn17_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.extendValues$delegate_1; + var thisRef = this; + var property = extendValues$factory_0(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_376(); + } + get extendValues() { + return this.get_extendValues_1opn17_k$(); + } + } + class $serializer_376 { + constructor() { + $serializer_instance_376 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KKingPos', this, 7); + tmp0_serialDesc.addElement_5pzumi_k$('disable', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('icon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('disableToast', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('checkedToast', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('like', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('coin', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [BooleanSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), get_nullable($serializer_getInstance_379()), get_nullable($serializer_getInstance_378())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = false; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = 0; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_transient0 = 0; + var tmp12_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp12_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp12_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_379(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_378(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + } else + while (tmp1_flag) { + tmp2_index = tmp12_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp12_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_379(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_378(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp12_input.endStructure_1xqz0n_k$(tmp0_desc); + return KKingPos.new_com_bapis_bilibili_app_viewunite_common_KKingPos_7c1x85_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, null); + } + serialize_1xjnkf_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.disable === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 0, value.disable); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.icon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.icon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.disableToast === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.disableToast); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.checkedToast === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.checkedToast); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.type === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 4, value.type); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.like_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 5, $serializer_getInstance_379(), value.like_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.coin_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 6, $serializer_getInstance_378(), value.coin_1); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_1xjnkf_k$(encoder, value instanceof KKingPos ? value : THROW_CCE()); + } + } + class KKingPos { + constructor(disable, icon, disableToast, checkedToast, type, like, coin) { + Companion_getInstance_389(); + disable = disable === VOID ? false : disable; + icon = icon === VOID ? '' : icon; + disableToast = disableToast === VOID ? '' : disableToast; + checkedToast = checkedToast === VOID ? '' : checkedToast; + type = type === VOID ? 0 : type; + like = like === VOID ? null : like; + coin = coin === VOID ? null : coin; + this.disable = disable; + this.icon = icon; + this.disableToast = disableToast; + this.checkedToast = checkedToast; + this.type = type; + this.like_1 = like; + this.coin_1 = coin; + var tmp = this; + tmp.extendNumber$delegate_1 = lazy_0(KKingPos$extendNumber$delegate$lambda(this)); + } + get_disable_swlvjz_k$() { + return this.disable; + } + get_icon_wont8i_k$() { + return this.icon; + } + get_disableToast_bxjvyw_k$() { + return this.disableToast; + } + get_checkedToast_fhscuh_k$() { + return this.checkedToast; + } + get_type_wovaf7_k$() { + return this.type; + } + extendValue() { + if (!(this.like_1 == null)) { + var tmp = this.like_1; + return (tmp == null ? true : !(tmp == null)) ? tmp : null; + } else if (!(this.coin_1 == null)) { + var tmp_0 = this.coin_1; + return (tmp_0 == null ? true : !(tmp_0 == null)) ? tmp_0 : null; + } else { + return null; + } + } + extendTypeJs() { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = Companion_getInstance_389().extendValues; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.viewunite.common.KKingPos.extendType.' call + var it = element; + tmp$ret$0 = it.value === _get_extendNumber__l91wt4_0(this); + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + return tmp$ret$1; + } + typeEnum() { + return Companion_getInstance_229().fromValue(this.type); + } + component1_7eebsc_k$() { + return this.disable; + } + component2_7eebsb_k$() { + return this.icon; + } + component3_7eebsa_k$() { + return this.disableToast; + } + component4_7eebs9_k$() { + return this.checkedToast; + } + component5_7eebs8_k$() { + return this.type; + } + copy_4m8x1u_k$(disable, icon, disableToast, checkedToast, type, like, coin) { + return new KKingPos(disable, icon, disableToast, checkedToast, type, like, coin); + } + copy(disable, icon, disableToast, checkedToast, type, like, coin, $super) { + disable = disable === VOID ? this.disable : disable; + icon = icon === VOID ? this.icon : icon; + disableToast = disableToast === VOID ? this.disableToast : disableToast; + checkedToast = checkedToast === VOID ? this.checkedToast : checkedToast; + type = type === VOID ? this.type : type; + like = like === VOID ? this.like_1 : like; + coin = coin === VOID ? this.coin_1 : coin; + return this.copy_4m8x1u_k$(disable, icon, disableToast, checkedToast, type, like, coin); + } + toString() { + return 'KKingPos(disable=' + this.disable + ', icon=' + this.icon + ', disableToast=' + this.disableToast + ', checkedToast=' + this.checkedToast + ', type=' + this.type + ', like=' + this.like_1 + ', coin=' + this.coin_1 + ')'; + } + hashCode() { + var result = getBooleanHashCode(this.disable); + result = imul(result, 31) + getStringHashCode(this.icon) | 0; + result = imul(result, 31) + getStringHashCode(this.disableToast) | 0; + result = imul(result, 31) + getStringHashCode(this.checkedToast) | 0; + result = imul(result, 31) + this.type | 0; + result = imul(result, 31) + (this.like_1 == null ? 0 : this.like_1.hashCode()) | 0; + result = imul(result, 31) + (this.coin_1 == null ? 0 : this.coin_1.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KKingPos)) + return false; + var tmp0_other_with_cast = other instanceof KKingPos ? other : THROW_CCE(); + if (!(this.disable === tmp0_other_with_cast.disable)) + return false; + if (!(this.icon === tmp0_other_with_cast.icon)) + return false; + if (!(this.disableToast === tmp0_other_with_cast.disableToast)) + return false; + if (!(this.checkedToast === tmp0_other_with_cast.checkedToast)) + return false; + if (!(this.type === tmp0_other_with_cast.type)) + return false; + if (!equals(this.like_1, tmp0_other_with_cast.like_1)) + return false; + if (!equals(this.coin_1, tmp0_other_with_cast.coin_1)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KKingPos_7c1x85_k$(seen1, disable, icon, disableToast, checkedToast, type, like, coin, serializationConstructorMarker) { + Companion_getInstance_389(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_376().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.disable = false; + else + $this.disable = disable; + if (0 === (seen1 & 2)) + $this.icon = ''; + else + $this.icon = icon; + if (0 === (seen1 & 4)) + $this.disableToast = ''; + else + $this.disableToast = disableToast; + if (0 === (seen1 & 8)) + $this.checkedToast = ''; + else + $this.checkedToast = checkedToast; + if (0 === (seen1 & 16)) + $this.type = 0; + else + $this.type = type; + if (0 === (seen1 & 32)) + $this.like_1 = null; + else + $this.like_1 = like; + if (0 === (seen1 & 64)) + $this.coin_1 = null; + else + $this.coin_1 = coin; + var tmp = $this; + tmp.extendNumber$delegate_1 = lazy_0(KKingPos$_init_$lambda_wrfjwn($this)); + return $this; + } + } + class Companion_390 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.BadgeInfo'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_377(); + } + } + class $serializer_377 { + constructor() { + $serializer_instance_377 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KBadgeInfo', this, 10); + tmp0_serialDesc.addElement_5pzumi_k$('text', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('textColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('textColorNight', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('bgColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('bgColorNight', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('borderColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('borderColorNight', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('bgStyle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('img', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = 0; + var tmp12_local8 = null; + var tmp13_local9 = 0; + var tmp14_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp14_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + } else + while (tmp1_flag) { + tmp2_index = tmp14_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp14_input.endStructure_1xqz0n_k$(tmp0_desc); + return KBadgeInfo_0.new_com_bapis_bilibili_app_viewunite_common_KBadgeInfo_v7vpzl_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, null); + } + serialize_vl1ptp_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.text === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.text); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.textColor === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.textColor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.textColorNight === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.textColorNight); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.bgColor === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.bgColor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.bgColorNight === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.bgColorNight); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.borderColor === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.borderColor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.borderColorNight === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.borderColorNight); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.bgStyle === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 7, value.bgStyle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.img === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 8, value.img); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.type === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 9, value.type); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_vl1ptp_k$(encoder, value instanceof KBadgeInfo_0 ? value : THROW_CCE()); + } + } + class KBadgeInfo_0 { + constructor(text, textColor, textColorNight, bgColor, bgColorNight, borderColor, borderColorNight, bgStyle, img, type) { + Companion_instance_390; + text = text === VOID ? '' : text; + textColor = textColor === VOID ? '' : textColor; + textColorNight = textColorNight === VOID ? '' : textColorNight; + bgColor = bgColor === VOID ? '' : bgColor; + bgColorNight = bgColorNight === VOID ? '' : bgColorNight; + borderColor = borderColor === VOID ? '' : borderColor; + borderColorNight = borderColorNight === VOID ? '' : borderColorNight; + bgStyle = bgStyle === VOID ? 0 : bgStyle; + img = img === VOID ? '' : img; + type = type === VOID ? 0 : type; + this.text = text; + this.textColor = textColor; + this.textColorNight = textColorNight; + this.bgColor = bgColor; + this.bgColorNight = bgColorNight; + this.borderColor = borderColor; + this.borderColorNight = borderColorNight; + this.bgStyle = bgStyle; + this.img = img; + this.type = type; + } + get_text_wouvsm_k$() { + return this.text; + } + get_textColor_92p84z_k$() { + return this.textColor; + } + get_textColorNight_hqolf9_k$() { + return this.textColorNight; + } + get_bgColor_24ewuj_k$() { + return this.bgColor; + } + get_bgColorNight_mzrajh_k$() { + return this.bgColorNight; + } + get_borderColor_puk0tq_k$() { + return this.borderColor; + } + get_borderColorNight_z7xsom_k$() { + return this.borderColorNight; + } + get_bgStyle_1viqv1_k$() { + return this.bgStyle; + } + get_img_18j3ja_k$() { + return this.img; + } + get_type_wovaf7_k$() { + return this.type; + } + component1_7eebsc_k$() { + return this.text; + } + component2_7eebsb_k$() { + return this.textColor; + } + component3_7eebsa_k$() { + return this.textColorNight; + } + component4_7eebs9_k$() { + return this.bgColor; + } + component5_7eebs8_k$() { + return this.bgColorNight; + } + component6_7eebs7_k$() { + return this.borderColor; + } + component7_7eebs6_k$() { + return this.borderColorNight; + } + component8_7eebs5_k$() { + return this.bgStyle; + } + component9_7eebs4_k$() { + return this.img; + } + component10_gazzfo_k$() { + return this.type; + } + copy_yg5d1r_k$(text, textColor, textColorNight, bgColor, bgColorNight, borderColor, borderColorNight, bgStyle, img, type) { + return new KBadgeInfo_0(text, textColor, textColorNight, bgColor, bgColorNight, borderColor, borderColorNight, bgStyle, img, type); + } + copy(text, textColor, textColorNight, bgColor, bgColorNight, borderColor, borderColorNight, bgStyle, img, type, $super) { + text = text === VOID ? this.text : text; + textColor = textColor === VOID ? this.textColor : textColor; + textColorNight = textColorNight === VOID ? this.textColorNight : textColorNight; + bgColor = bgColor === VOID ? this.bgColor : bgColor; + bgColorNight = bgColorNight === VOID ? this.bgColorNight : bgColorNight; + borderColor = borderColor === VOID ? this.borderColor : borderColor; + borderColorNight = borderColorNight === VOID ? this.borderColorNight : borderColorNight; + bgStyle = bgStyle === VOID ? this.bgStyle : bgStyle; + img = img === VOID ? this.img : img; + type = type === VOID ? this.type : type; + return this.copy_yg5d1r_k$(text, textColor, textColorNight, bgColor, bgColorNight, borderColor, borderColorNight, bgStyle, img, type); + } + toString() { + return 'KBadgeInfo(text=' + this.text + ', textColor=' + this.textColor + ', textColorNight=' + this.textColorNight + ', bgColor=' + this.bgColor + ', bgColorNight=' + this.bgColorNight + ', borderColor=' + this.borderColor + ', borderColorNight=' + this.borderColorNight + ', bgStyle=' + this.bgStyle + ', img=' + this.img + ', type=' + this.type + ')'; + } + hashCode() { + var result = getStringHashCode(this.text); + result = imul(result, 31) + getStringHashCode(this.textColor) | 0; + result = imul(result, 31) + getStringHashCode(this.textColorNight) | 0; + result = imul(result, 31) + getStringHashCode(this.bgColor) | 0; + result = imul(result, 31) + getStringHashCode(this.bgColorNight) | 0; + result = imul(result, 31) + getStringHashCode(this.borderColor) | 0; + result = imul(result, 31) + getStringHashCode(this.borderColorNight) | 0; + result = imul(result, 31) + this.bgStyle | 0; + result = imul(result, 31) + getStringHashCode(this.img) | 0; + result = imul(result, 31) + this.type | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KBadgeInfo_0)) + return false; + var tmp0_other_with_cast = other instanceof KBadgeInfo_0 ? other : THROW_CCE(); + if (!(this.text === tmp0_other_with_cast.text)) + return false; + if (!(this.textColor === tmp0_other_with_cast.textColor)) + return false; + if (!(this.textColorNight === tmp0_other_with_cast.textColorNight)) + return false; + if (!(this.bgColor === tmp0_other_with_cast.bgColor)) + return false; + if (!(this.bgColorNight === tmp0_other_with_cast.bgColorNight)) + return false; + if (!(this.borderColor === tmp0_other_with_cast.borderColor)) + return false; + if (!(this.borderColorNight === tmp0_other_with_cast.borderColorNight)) + return false; + if (!(this.bgStyle === tmp0_other_with_cast.bgStyle)) + return false; + if (!(this.img === tmp0_other_with_cast.img)) + return false; + if (!(this.type === tmp0_other_with_cast.type)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KBadgeInfo_v7vpzl_k$(seen1, text, textColor, textColorNight, bgColor, bgColorNight, borderColor, borderColorNight, bgStyle, img, type, serializationConstructorMarker) { + Companion_instance_390; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_377().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.text = ''; + else + $this.text = text; + if (0 === (seen1 & 2)) + $this.textColor = ''; + else + $this.textColor = textColor; + if (0 === (seen1 & 4)) + $this.textColorNight = ''; + else + $this.textColorNight = textColorNight; + if (0 === (seen1 & 8)) + $this.bgColor = ''; + else + $this.bgColor = bgColor; + if (0 === (seen1 & 16)) + $this.bgColorNight = ''; + else + $this.bgColorNight = bgColorNight; + if (0 === (seen1 & 32)) + $this.borderColor = ''; + else + $this.borderColor = borderColor; + if (0 === (seen1 & 64)) + $this.borderColorNight = ''; + else + $this.borderColorNight = borderColorNight; + if (0 === (seen1 & 128)) + $this.bgStyle = 0; + else + $this.bgStyle = bgStyle; + if (0 === (seen1 & 256)) + $this.img = ''; + else + $this.img = img; + if (0 === (seen1 & 512)) + $this.type = 0; + else + $this.type = type; + return $this; + } + } + class Companion_391 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.CoinExtend'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_378(); + } + } + class $serializer_378 { + constructor() { + $serializer_instance_378 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KCoinExtend', this, 5); + tmp0_serialDesc.addElement_5pzumi_k$('coinAppZipIcon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('coinAppIcon1', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('coinAppIcon2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('coinAppIcon3', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('coinAppIcon4', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp9_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + } else + while (tmp1_flag) { + tmp2_index = tmp9_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp9_input.endStructure_1xqz0n_k$(tmp0_desc); + return KCoinExtend.new_com_bapis_bilibili_app_viewunite_common_KCoinExtend_6uqkkg_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); + } + serialize_16dbqr_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.coinAppZipIcon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.coinAppZipIcon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.coinAppIcon1 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.coinAppIcon1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.coinAppIcon2 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.coinAppIcon2); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.coinAppIcon3 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.coinAppIcon3); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.coinAppIcon4 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.coinAppIcon4); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_16dbqr_k$(encoder, value instanceof KCoinExtend ? value : THROW_CCE()); + } + } + class KCoinExtend { + constructor(coinAppZipIcon, coinAppIcon1, coinAppIcon2, coinAppIcon3, coinAppIcon4) { + Companion_instance_391; + coinAppZipIcon = coinAppZipIcon === VOID ? '' : coinAppZipIcon; + coinAppIcon1 = coinAppIcon1 === VOID ? '' : coinAppIcon1; + coinAppIcon2 = coinAppIcon2 === VOID ? '' : coinAppIcon2; + coinAppIcon3 = coinAppIcon3 === VOID ? '' : coinAppIcon3; + coinAppIcon4 = coinAppIcon4 === VOID ? '' : coinAppIcon4; + this.coinAppZipIcon = coinAppZipIcon; + this.coinAppIcon1 = coinAppIcon1; + this.coinAppIcon2 = coinAppIcon2; + this.coinAppIcon3 = coinAppIcon3; + this.coinAppIcon4 = coinAppIcon4; + } + get_coinAppZipIcon_22jnf7_k$() { + return this.coinAppZipIcon; + } + get_coinAppIcon1_f9javj_k$() { + return this.coinAppIcon1; + } + get_coinAppIcon2_f9javi_k$() { + return this.coinAppIcon2; + } + get_coinAppIcon3_f9javh_k$() { + return this.coinAppIcon3; + } + get_coinAppIcon4_f9javg_k$() { + return this.coinAppIcon4; + } + component1_7eebsc_k$() { + return this.coinAppZipIcon; + } + component2_7eebsb_k$() { + return this.coinAppIcon1; + } + component3_7eebsa_k$() { + return this.coinAppIcon2; + } + component4_7eebs9_k$() { + return this.coinAppIcon3; + } + component5_7eebs8_k$() { + return this.coinAppIcon4; + } + copy_bit9gb_k$(coinAppZipIcon, coinAppIcon1, coinAppIcon2, coinAppIcon3, coinAppIcon4) { + return new KCoinExtend(coinAppZipIcon, coinAppIcon1, coinAppIcon2, coinAppIcon3, coinAppIcon4); + } + copy(coinAppZipIcon, coinAppIcon1, coinAppIcon2, coinAppIcon3, coinAppIcon4, $super) { + coinAppZipIcon = coinAppZipIcon === VOID ? this.coinAppZipIcon : coinAppZipIcon; + coinAppIcon1 = coinAppIcon1 === VOID ? this.coinAppIcon1 : coinAppIcon1; + coinAppIcon2 = coinAppIcon2 === VOID ? this.coinAppIcon2 : coinAppIcon2; + coinAppIcon3 = coinAppIcon3 === VOID ? this.coinAppIcon3 : coinAppIcon3; + coinAppIcon4 = coinAppIcon4 === VOID ? this.coinAppIcon4 : coinAppIcon4; + return this.copy_bit9gb_k$(coinAppZipIcon, coinAppIcon1, coinAppIcon2, coinAppIcon3, coinAppIcon4); + } + toString() { + return 'KCoinExtend(coinAppZipIcon=' + this.coinAppZipIcon + ', coinAppIcon1=' + this.coinAppIcon1 + ', coinAppIcon2=' + this.coinAppIcon2 + ', coinAppIcon3=' + this.coinAppIcon3 + ', coinAppIcon4=' + this.coinAppIcon4 + ')'; + } + hashCode() { + var result = getStringHashCode(this.coinAppZipIcon); + result = imul(result, 31) + getStringHashCode(this.coinAppIcon1) | 0; + result = imul(result, 31) + getStringHashCode(this.coinAppIcon2) | 0; + result = imul(result, 31) + getStringHashCode(this.coinAppIcon3) | 0; + result = imul(result, 31) + getStringHashCode(this.coinAppIcon4) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KCoinExtend)) + return false; + var tmp0_other_with_cast = other instanceof KCoinExtend ? other : THROW_CCE(); + if (!(this.coinAppZipIcon === tmp0_other_with_cast.coinAppZipIcon)) + return false; + if (!(this.coinAppIcon1 === tmp0_other_with_cast.coinAppIcon1)) + return false; + if (!(this.coinAppIcon2 === tmp0_other_with_cast.coinAppIcon2)) + return false; + if (!(this.coinAppIcon3 === tmp0_other_with_cast.coinAppIcon3)) + return false; + if (!(this.coinAppIcon4 === tmp0_other_with_cast.coinAppIcon4)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KCoinExtend_6uqkkg_k$(seen1, coinAppZipIcon, coinAppIcon1, coinAppIcon2, coinAppIcon3, coinAppIcon4, serializationConstructorMarker) { + Companion_instance_391; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_378().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.coinAppZipIcon = ''; + else + $this.coinAppZipIcon = coinAppZipIcon; + if (0 === (seen1 & 2)) + $this.coinAppIcon1 = ''; + else + $this.coinAppIcon1 = coinAppIcon1; + if (0 === (seen1 & 4)) + $this.coinAppIcon2 = ''; + else + $this.coinAppIcon2 = coinAppIcon2; + if (0 === (seen1 & 8)) + $this.coinAppIcon3 = ''; + else + $this.coinAppIcon3 = coinAppIcon3; + if (0 === (seen1 & 16)) + $this.coinAppIcon4 = ''; + else + $this.coinAppIcon4 = coinAppIcon4; + return $this; + } + } + class Companion_392 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.LikeExtend'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_379(); + } + } + class $serializer_379 { + constructor() { + $serializer_instance_379 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KLikeExtend', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('tripleLike', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('likeAnimation', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('playerAnimation', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('resource', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_383()), StringSerializer_getInstance(), get_nullable($serializer_getInstance_381()), get_nullable($serializer_getInstance_380())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_383(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_381(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_380(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_383(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_381(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_380(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KLikeExtend.new_com_bapis_bilibili_app_viewunite_common_KLikeExtend_lvwhl1_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_s3bqpl_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.tripleLike == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_383(), value.tripleLike); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.likeAnimation === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.likeAnimation); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.playerAnimation == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_381(), value.playerAnimation); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.resource == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_380(), value.resource); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_s3bqpl_k$(encoder, value instanceof KLikeExtend ? value : THROW_CCE()); + } + } + class KLikeExtend { + constructor(tripleLike, likeAnimation, playerAnimation, resource) { + Companion_instance_392; + tripleLike = tripleLike === VOID ? null : tripleLike; + likeAnimation = likeAnimation === VOID ? '' : likeAnimation; + playerAnimation = playerAnimation === VOID ? null : playerAnimation; + resource = resource === VOID ? null : resource; + this.tripleLike = tripleLike; + this.likeAnimation = likeAnimation; + this.playerAnimation = playerAnimation; + this.resource = resource; + } + get_tripleLike_58jnmq_k$() { + return this.tripleLike; + } + get_likeAnimation_7234p0_k$() { + return this.likeAnimation; + } + get_playerAnimation_u32chm_k$() { + return this.playerAnimation; + } + get_resource_xl4447_k$() { + return this.resource; + } + component1_7eebsc_k$() { + return this.tripleLike; + } + component2_7eebsb_k$() { + return this.likeAnimation; + } + component3_7eebsa_k$() { + return this.playerAnimation; + } + component4_7eebs9_k$() { + return this.resource; + } + copy_cngups_k$(tripleLike, likeAnimation, playerAnimation, resource) { + return new KLikeExtend(tripleLike, likeAnimation, playerAnimation, resource); + } + copy(tripleLike, likeAnimation, playerAnimation, resource, $super) { + tripleLike = tripleLike === VOID ? this.tripleLike : tripleLike; + likeAnimation = likeAnimation === VOID ? this.likeAnimation : likeAnimation; + playerAnimation = playerAnimation === VOID ? this.playerAnimation : playerAnimation; + resource = resource === VOID ? this.resource : resource; + return this.copy_cngups_k$(tripleLike, likeAnimation, playerAnimation, resource); + } + toString() { + return 'KLikeExtend(tripleLike=' + this.tripleLike + ', likeAnimation=' + this.likeAnimation + ', playerAnimation=' + this.playerAnimation + ', resource=' + this.resource + ')'; + } + hashCode() { + var result = this.tripleLike == null ? 0 : this.tripleLike.hashCode(); + result = imul(result, 31) + getStringHashCode(this.likeAnimation) | 0; + result = imul(result, 31) + (this.playerAnimation == null ? 0 : this.playerAnimation.hashCode()) | 0; + result = imul(result, 31) + (this.resource == null ? 0 : this.resource.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KLikeExtend)) + return false; + var tmp0_other_with_cast = other instanceof KLikeExtend ? other : THROW_CCE(); + if (!equals(this.tripleLike, tmp0_other_with_cast.tripleLike)) + return false; + if (!(this.likeAnimation === tmp0_other_with_cast.likeAnimation)) + return false; + if (!equals(this.playerAnimation, tmp0_other_with_cast.playerAnimation)) + return false; + if (!equals(this.resource, tmp0_other_with_cast.resource)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KLikeExtend_lvwhl1_k$(seen1, tripleLike, likeAnimation, playerAnimation, resource, serializationConstructorMarker) { + Companion_instance_392; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_379().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.tripleLike = null; + else + $this.tripleLike = tripleLike; + if (0 === (seen1 & 2)) + $this.likeAnimation = ''; + else + $this.likeAnimation = likeAnimation; + if (0 === (seen1 & 4)) + $this.playerAnimation = null; + else + $this.playerAnimation = playerAnimation; + if (0 === (seen1 & 8)) + $this.resource = null; + else + $this.resource = resource; + return $this; + } + } + class Companion_393 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.ActivityResource'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_380(); + } + } + class $serializer_380 { + constructor() { + $serializer_instance_380 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KActivityResource', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('modPoolName', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('modResourceName', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KActivityResource.new_com_bapis_bilibili_app_viewunite_common_KActivityResource_yb9v9f_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_wiz0th_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.modPoolName === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.modPoolName); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.modResourceName === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.modResourceName); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_wiz0th_k$(encoder, value instanceof KActivityResource ? value : THROW_CCE()); + } + } + class KActivityResource { + constructor(modPoolName, modResourceName) { + Companion_instance_393; + modPoolName = modPoolName === VOID ? '' : modPoolName; + modResourceName = modResourceName === VOID ? '' : modResourceName; + this.modPoolName = modPoolName; + this.modResourceName = modResourceName; + } + get_modPoolName_sxkmtc_k$() { + return this.modPoolName; + } + get_modResourceName_973zta_k$() { + return this.modResourceName; + } + component1_7eebsc_k$() { + return this.modPoolName; + } + component2_7eebsb_k$() { + return this.modResourceName; + } + copy_plwnsl_k$(modPoolName, modResourceName) { + return new KActivityResource(modPoolName, modResourceName); + } + copy(modPoolName, modResourceName, $super) { + modPoolName = modPoolName === VOID ? this.modPoolName : modPoolName; + modResourceName = modResourceName === VOID ? this.modResourceName : modResourceName; + return this.copy_plwnsl_k$(modPoolName, modResourceName); + } + toString() { + return 'KActivityResource(modPoolName=' + this.modPoolName + ', modResourceName=' + this.modResourceName + ')'; + } + hashCode() { + var result = getStringHashCode(this.modPoolName); + result = imul(result, 31) + getStringHashCode(this.modResourceName) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KActivityResource)) + return false; + var tmp0_other_with_cast = other instanceof KActivityResource ? other : THROW_CCE(); + if (!(this.modPoolName === tmp0_other_with_cast.modPoolName)) + return false; + if (!(this.modResourceName === tmp0_other_with_cast.modResourceName)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KActivityResource_yb9v9f_k$(seen1, modPoolName, modResourceName, serializationConstructorMarker) { + Companion_instance_393; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_380().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.modPoolName = ''; + else + $this.modPoolName = modPoolName; + if (0 === (seen1 & 2)) + $this.modResourceName = ''; + else + $this.modResourceName = modResourceName; + return $this; + } + } + class Companion_394 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.PlayerAnimation'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_381(); + } + } + class $serializer_381 { + constructor() { + $serializer_instance_381 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KPlayerAnimation', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('playerIcon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('playerTripleIcon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KPlayerAnimation.new_com_bapis_bilibili_app_viewunite_common_KPlayerAnimation_giqrgn_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_okxqdn_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.playerIcon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.playerIcon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.playerTripleIcon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.playerTripleIcon); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_okxqdn_k$(encoder, value instanceof KPlayerAnimation ? value : THROW_CCE()); + } + } + class KPlayerAnimation { + constructor(playerIcon, playerTripleIcon) { + Companion_instance_394; + playerIcon = playerIcon === VOID ? '' : playerIcon; + playerTripleIcon = playerTripleIcon === VOID ? '' : playerTripleIcon; + this.playerIcon = playerIcon; + this.playerTripleIcon = playerTripleIcon; + } + get_playerIcon_ehczgj_k$() { + return this.playerIcon; + } + get_playerTripleIcon_iz7szl_k$() { + return this.playerTripleIcon; + } + component1_7eebsc_k$() { + return this.playerIcon; + } + component2_7eebsb_k$() { + return this.playerTripleIcon; + } + copy_plwnsl_k$(playerIcon, playerTripleIcon) { + return new KPlayerAnimation(playerIcon, playerTripleIcon); + } + copy(playerIcon, playerTripleIcon, $super) { + playerIcon = playerIcon === VOID ? this.playerIcon : playerIcon; + playerTripleIcon = playerTripleIcon === VOID ? this.playerTripleIcon : playerTripleIcon; + return this.copy_plwnsl_k$(playerIcon, playerTripleIcon); + } + toString() { + return 'KPlayerAnimation(playerIcon=' + this.playerIcon + ', playerTripleIcon=' + this.playerTripleIcon + ')'; + } + hashCode() { + var result = getStringHashCode(this.playerIcon); + result = imul(result, 31) + getStringHashCode(this.playerTripleIcon) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KPlayerAnimation)) + return false; + var tmp0_other_with_cast = other instanceof KPlayerAnimation ? other : THROW_CCE(); + if (!(this.playerIcon === tmp0_other_with_cast.playerIcon)) + return false; + if (!(this.playerTripleIcon === tmp0_other_with_cast.playerTripleIcon)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KPlayerAnimation_giqrgn_k$(seen1, playerIcon, playerTripleIcon, serializationConstructorMarker) { + Companion_instance_394; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_381().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.playerIcon = ''; + else + $this.playerIcon = playerIcon; + if (0 === (seen1 & 2)) + $this.playerTripleIcon = ''; + else + $this.playerTripleIcon = playerTripleIcon; + return $this; + } + } + class Companion_395 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.DislikeReasons'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_382(); + } + } + class $serializer_382 { + constructor() { + $serializer_instance_382 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KDislikeReasons', this, 5); + tmp0_serialDesc.addElement_5pzumi_k$('id', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('mid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('rid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('tagId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('name', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = new Long(0, 0); + var tmp6_local2 = 0; + var tmp7_local3 = new Long(0, 0); + var tmp8_local4 = null; + var tmp9_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp9_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + } else + while (tmp1_flag) { + tmp2_index = tmp9_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp9_input.endStructure_1xqz0n_k$(tmp0_desc); + return KDislikeReasons.new_com_bapis_bilibili_app_viewunite_common_KDislikeReasons_qdgsnd_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); + } + serialize_cfynji_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.id.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.id); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.mid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.mid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.rid === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.rid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !value.tagId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 3, value.tagId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.name === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.name); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_cfynji_k$(encoder, value instanceof KDislikeReasons ? value : THROW_CCE()); + } + } + class KDislikeReasons { + constructor(id, mid, rid, tagId, name) { + Companion_instance_395; + id = id === VOID ? new Long(0, 0) : id; + mid = mid === VOID ? new Long(0, 0) : mid; + rid = rid === VOID ? 0 : rid; + tagId = tagId === VOID ? new Long(0, 0) : tagId; + name = name === VOID ? '' : name; + this.id = id; + this.mid = mid; + this.rid = rid; + this.tagId = tagId; + this.name = name; + } + get_id_kntnx8_k$() { + return this.id; + } + get_mid_18j0o1_k$() { + return this.mid; + } + get_rid_18iwyk_k$() { + return this.rid; + } + get_tagId_iyxoh8_k$() { + return this.tagId; + } + get_name_woqyms_k$() { + return this.name; + } + component1_7eebsc_k$() { + return this.id; + } + component2_7eebsb_k$() { + return this.mid; + } + component3_7eebsa_k$() { + return this.rid; + } + component4_7eebs9_k$() { + return this.tagId; + } + component5_7eebs8_k$() { + return this.name; + } + copy_ylfwet_k$(id, mid, rid, tagId, name) { + return new KDislikeReasons(id, mid, rid, tagId, name); + } + copy(id, mid, rid, tagId, name, $super) { + id = id === VOID ? this.id : id; + mid = mid === VOID ? this.mid : mid; + rid = rid === VOID ? this.rid : rid; + tagId = tagId === VOID ? this.tagId : tagId; + name = name === VOID ? this.name : name; + return this.copy_ylfwet_k$(id, mid, rid, tagId, name); + } + toString() { + return 'KDislikeReasons(id=' + this.id.toString() + ', mid=' + this.mid.toString() + ', rid=' + this.rid + ', tagId=' + this.tagId.toString() + ', name=' + this.name + ')'; + } + hashCode() { + var result = this.id.hashCode(); + result = imul(result, 31) + this.mid.hashCode() | 0; + result = imul(result, 31) + this.rid | 0; + result = imul(result, 31) + this.tagId.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.name) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KDislikeReasons)) + return false; + var tmp0_other_with_cast = other instanceof KDislikeReasons ? other : THROW_CCE(); + if (!this.id.equals(tmp0_other_with_cast.id)) + return false; + if (!this.mid.equals(tmp0_other_with_cast.mid)) + return false; + if (!(this.rid === tmp0_other_with_cast.rid)) + return false; + if (!this.tagId.equals(tmp0_other_with_cast.tagId)) + return false; + if (!(this.name === tmp0_other_with_cast.name)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KDislikeReasons_qdgsnd_k$(seen1, id, mid, rid, tagId, name, serializationConstructorMarker) { + Companion_instance_395; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_382().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.id = new Long(0, 0); + else + $this.id = id; + if (0 === (seen1 & 2)) + $this.mid = new Long(0, 0); + else + $this.mid = mid; + if (0 === (seen1 & 4)) + $this.rid = 0; + else + $this.rid = rid; + if (0 === (seen1 & 8)) + $this.tagId = new Long(0, 0); + else + $this.tagId = tagId; + if (0 === (seen1 & 16)) + $this.name = ''; + else + $this.name = name; + return $this; + } + } + class Companion_396 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.UpLikeImg'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_383(); + } + } + class $serializer_383 { + constructor() { + $serializer_instance_383 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KUpLikeImg', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('preImg', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('sucImg', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('content', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = new Long(0, 0); + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KUpLikeImg.new_com_bapis_bilibili_app_viewunite_common_KUpLikeImg_h3h37m_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_nx8b4t_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.preImg === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.preImg); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.sucImg === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.sucImg); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.content === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.content); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !value.type.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 3, value.type); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_nx8b4t_k$(encoder, value instanceof KUpLikeImg ? value : THROW_CCE()); + } + } + class KUpLikeImg { + constructor(preImg, sucImg, content, type) { + Companion_instance_396; + preImg = preImg === VOID ? '' : preImg; + sucImg = sucImg === VOID ? '' : sucImg; + content = content === VOID ? '' : content; + type = type === VOID ? new Long(0, 0) : type; + this.preImg = preImg; + this.sucImg = sucImg; + this.content = content; + this.type = type; + } + get_preImg_i78dux_k$() { + return this.preImg; + } + get_sucImg_jnzcuj_k$() { + return this.sucImg; + } + get_content_h02jrk_k$() { + return this.content; + } + get_type_wovaf7_k$() { + return this.type; + } + component1_7eebsc_k$() { + return this.preImg; + } + component2_7eebsb_k$() { + return this.sucImg; + } + component3_7eebsa_k$() { + return this.content; + } + component4_7eebs9_k$() { + return this.type; + } + copy_n2qgnx_k$(preImg, sucImg, content, type) { + return new KUpLikeImg(preImg, sucImg, content, type); + } + copy(preImg, sucImg, content, type, $super) { + preImg = preImg === VOID ? this.preImg : preImg; + sucImg = sucImg === VOID ? this.sucImg : sucImg; + content = content === VOID ? this.content : content; + type = type === VOID ? this.type : type; + return this.copy_n2qgnx_k$(preImg, sucImg, content, type); + } + toString() { + return 'KUpLikeImg(preImg=' + this.preImg + ', sucImg=' + this.sucImg + ', content=' + this.content + ', type=' + this.type.toString() + ')'; + } + hashCode() { + var result = getStringHashCode(this.preImg); + result = imul(result, 31) + getStringHashCode(this.sucImg) | 0; + result = imul(result, 31) + getStringHashCode(this.content) | 0; + result = imul(result, 31) + this.type.hashCode() | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KUpLikeImg)) + return false; + var tmp0_other_with_cast = other instanceof KUpLikeImg ? other : THROW_CCE(); + if (!(this.preImg === tmp0_other_with_cast.preImg)) + return false; + if (!(this.sucImg === tmp0_other_with_cast.sucImg)) + return false; + if (!(this.content === tmp0_other_with_cast.content)) + return false; + if (!this.type.equals(tmp0_other_with_cast.type)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KUpLikeImg_h3h37m_k$(seen1, preImg, sucImg, content, type, serializationConstructorMarker) { + Companion_instance_396; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_383().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.preImg = ''; + else + $this.preImg = preImg; + if (0 === (seen1 & 2)) + $this.sucImg = ''; + else + $this.sucImg = sucImg; + if (0 === (seen1 & 4)) + $this.content = ''; + else + $this.content = content; + if (0 === (seen1 & 8)) + $this.type = new Long(0, 0); + else + $this.type = type; + return $this; + } + } + class Companion_397 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.BizReserveActivityParam'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_384(); + } + } + class $serializer_384 { + constructor() { + $serializer_instance_384 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KBizReserveActivityParam', this, 5); + tmp0_serialDesc.addElement_5pzumi_k$('activityId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('from', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('oid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('reserveId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = new Long(0, 0); + var tmp8_local4 = new Long(0, 0); + var tmp9_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp9_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + } else + while (tmp1_flag) { + tmp2_index = tmp9_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp9_input.endStructure_1xqz0n_k$(tmp0_desc); + return KBizReserveActivityParam.new_com_bapis_bilibili_app_viewunite_common_KBizReserveActivityParam_l5mfwh_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); + } + serialize_uepyp3_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.activityId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.activityId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.from === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.from); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.type === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.type); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !value.oid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 3, value.oid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !value.reserveId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 4, value.reserveId); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_uepyp3_k$(encoder, value instanceof KBizReserveActivityParam ? value : THROW_CCE()); + } + } + class KBizReserveActivityParam { + constructor(activityId, from, type, oid, reserveId) { + Companion_instance_397; + activityId = activityId === VOID ? new Long(0, 0) : activityId; + from = from === VOID ? '' : from; + type = type === VOID ? '' : type; + oid = oid === VOID ? new Long(0, 0) : oid; + reserveId = reserveId === VOID ? new Long(0, 0) : reserveId; + this.activityId = activityId; + this.from = from; + this.type = type; + this.oid = oid; + this.reserveId = reserveId; + } + get_activityId_dpfyfn_k$() { + return this.activityId; + } + get_from_wom7eb_k$() { + return this.from; + } + get_type_wovaf7_k$() { + return this.type; + } + get_oid_18iz6n_k$() { + return this.oid; + } + get_reserveId_t26awi_k$() { + return this.reserveId; + } + component1_7eebsc_k$() { + return this.activityId; + } + component2_7eebsb_k$() { + return this.from; + } + component3_7eebsa_k$() { + return this.type; + } + component4_7eebs9_k$() { + return this.oid; + } + component5_7eebs8_k$() { + return this.reserveId; + } + copy_l9kwmn_k$(activityId, from, type, oid, reserveId) { + return new KBizReserveActivityParam(activityId, from, type, oid, reserveId); + } + copy(activityId, from, type, oid, reserveId, $super) { + activityId = activityId === VOID ? this.activityId : activityId; + from = from === VOID ? this.from : from; + type = type === VOID ? this.type : type; + oid = oid === VOID ? this.oid : oid; + reserveId = reserveId === VOID ? this.reserveId : reserveId; + return this.copy_l9kwmn_k$(activityId, from, type, oid, reserveId); + } + toString() { + return 'KBizReserveActivityParam(activityId=' + this.activityId.toString() + ', from=' + this.from + ', type=' + this.type + ', oid=' + this.oid.toString() + ', reserveId=' + this.reserveId.toString() + ')'; + } + hashCode() { + var result = this.activityId.hashCode(); + result = imul(result, 31) + getStringHashCode(this.from) | 0; + result = imul(result, 31) + getStringHashCode(this.type) | 0; + result = imul(result, 31) + this.oid.hashCode() | 0; + result = imul(result, 31) + this.reserveId.hashCode() | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KBizReserveActivityParam)) + return false; + var tmp0_other_with_cast = other instanceof KBizReserveActivityParam ? other : THROW_CCE(); + if (!this.activityId.equals(tmp0_other_with_cast.activityId)) + return false; + if (!(this.from === tmp0_other_with_cast.from)) + return false; + if (!(this.type === tmp0_other_with_cast.type)) + return false; + if (!this.oid.equals(tmp0_other_with_cast.oid)) + return false; + if (!this.reserveId.equals(tmp0_other_with_cast.reserveId)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KBizReserveActivityParam_l5mfwh_k$(seen1, activityId, from, type, oid, reserveId, serializationConstructorMarker) { + Companion_instance_397; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_384().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.activityId = new Long(0, 0); + else + $this.activityId = activityId; + if (0 === (seen1 & 2)) + $this.from = ''; + else + $this.from = from; + if (0 === (seen1 & 4)) + $this.type = ''; + else + $this.type = type; + if (0 === (seen1 & 8)) + $this.oid = new Long(0, 0); + else + $this.oid = oid; + if (0 === (seen1 & 16)) + $this.reserveId = new Long(0, 0); + else + $this.reserveId = reserveId; + return $this; + } + } + class Companion_398 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.BizFavParam'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_385(); + } + } + class $serializer_385 { + constructor() { + $serializer_instance_385 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KBizFavParam', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('seasonId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KBizFavParam.new_com_bapis_bilibili_app_viewunite_common_KBizFavParam_4t8da5_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_5vut3_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.seasonId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.seasonId); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_5vut3_k$(encoder, value instanceof KBizFavParam ? value : THROW_CCE()); + } + } + class KBizFavParam { + constructor(seasonId) { + Companion_instance_398; + seasonId = seasonId === VOID ? new Long(0, 0) : seasonId; + this.seasonId = seasonId; + } + get_seasonId_h33f15_k$() { + return this.seasonId; + } + component1_7eebsc_k$() { + return this.seasonId; + } + copy_5ymysz_k$(seasonId) { + return new KBizFavParam(seasonId); + } + copy(seasonId, $super) { + seasonId = seasonId === VOID ? this.seasonId : seasonId; + return this.copy_5ymysz_k$(seasonId); + } + toString() { + return 'KBizFavParam(seasonId=' + this.seasonId.toString() + ')'; + } + hashCode() { + return this.seasonId.hashCode(); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KBizFavParam)) + return false; + var tmp0_other_with_cast = other instanceof KBizFavParam ? other : THROW_CCE(); + if (!this.seasonId.equals(tmp0_other_with_cast.seasonId)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KBizFavParam_4t8da5_k$(seen1, seasonId, serializationConstructorMarker) { + Companion_instance_398; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_385().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.seasonId = new Long(0, 0); + else + $this.seasonId = seasonId; + return $this; + } + } + class Companion_399 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.Page'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_386(); + } + } + class $serializer_386 { + constructor() { + $serializer_instance_386 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KPage', this, 7); + tmp0_serialDesc.addElement_5pzumi_k$('cid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('part', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('duration', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('desc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('dimension', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('dlTitle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('dlSubtitle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_320()), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_local2 = new Long(0, 0); + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp11_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_320(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + } else + while (tmp1_flag) { + tmp2_index = tmp11_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_320(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp11_input.endStructure_1xqz0n_k$(tmp0_desc); + return KPage.new_com_bapis_bilibili_app_viewunite_common_KPage_pvgc7r_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, null); + } + serialize_3i9yix_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.cid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.cid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.part === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.part); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.duration.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.duration); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.desc === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.desc); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.dimension == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, $serializer_getInstance_320(), value.dimension); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.dlTitle === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.dlTitle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.dlSubtitle === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.dlSubtitle); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_3i9yix_k$(encoder, value instanceof KPage ? value : THROW_CCE()); + } + } + class KPage { + constructor(cid, part, duration, desc, dimension, dlTitle, dlSubtitle) { + Companion_instance_399; + cid = cid === VOID ? new Long(0, 0) : cid; + part = part === VOID ? '' : part; + duration = duration === VOID ? new Long(0, 0) : duration; + desc = desc === VOID ? '' : desc; + dimension = dimension === VOID ? null : dimension; + dlTitle = dlTitle === VOID ? '' : dlTitle; + dlSubtitle = dlSubtitle === VOID ? '' : dlSubtitle; + this.cid = cid; + this.part = part; + this.duration = duration; + this.desc = desc; + this.dimension = dimension; + this.dlTitle = dlTitle; + this.dlSubtitle = dlSubtitle; + } + get_cid_18j82z_k$() { + return this.cid; + } + get_part_wos8qk_k$() { + return this.part; + } + get_duration_6a6kpp_k$() { + return this.duration; + } + get_desc_woknve_k$() { + return this.desc; + } + get_dimension_9lf48z_k$() { + return this.dimension; + } + get_dlTitle_tuull3_k$() { + return this.dlTitle; + } + get_dlSubtitle_g28n61_k$() { + return this.dlSubtitle; + } + component1_7eebsc_k$() { + return this.cid; + } + component2_7eebsb_k$() { + return this.part; + } + component3_7eebsa_k$() { + return this.duration; + } + component4_7eebs9_k$() { + return this.desc; + } + component5_7eebs8_k$() { + return this.dimension; + } + component6_7eebs7_k$() { + return this.dlTitle; + } + component7_7eebs6_k$() { + return this.dlSubtitle; + } + copy_x4oj6v_k$(cid, part, duration, desc, dimension, dlTitle, dlSubtitle) { + return new KPage(cid, part, duration, desc, dimension, dlTitle, dlSubtitle); + } + copy(cid, part, duration, desc, dimension, dlTitle, dlSubtitle, $super) { + cid = cid === VOID ? this.cid : cid; + part = part === VOID ? this.part : part; + duration = duration === VOID ? this.duration : duration; + desc = desc === VOID ? this.desc : desc; + dimension = dimension === VOID ? this.dimension : dimension; + dlTitle = dlTitle === VOID ? this.dlTitle : dlTitle; + dlSubtitle = dlSubtitle === VOID ? this.dlSubtitle : dlSubtitle; + return this.copy_x4oj6v_k$(cid, part, duration, desc, dimension, dlTitle, dlSubtitle); + } + toString() { + return 'KPage(cid=' + this.cid.toString() + ', part=' + this.part + ', duration=' + this.duration.toString() + ', desc=' + this.desc + ', dimension=' + this.dimension + ', dlTitle=' + this.dlTitle + ', dlSubtitle=' + this.dlSubtitle + ')'; + } + hashCode() { + var result = this.cid.hashCode(); + result = imul(result, 31) + getStringHashCode(this.part) | 0; + result = imul(result, 31) + this.duration.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.desc) | 0; + result = imul(result, 31) + (this.dimension == null ? 0 : this.dimension.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.dlTitle) | 0; + result = imul(result, 31) + getStringHashCode(this.dlSubtitle) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KPage)) + return false; + var tmp0_other_with_cast = other instanceof KPage ? other : THROW_CCE(); + if (!this.cid.equals(tmp0_other_with_cast.cid)) + return false; + if (!(this.part === tmp0_other_with_cast.part)) + return false; + if (!this.duration.equals(tmp0_other_with_cast.duration)) + return false; + if (!(this.desc === tmp0_other_with_cast.desc)) + return false; + if (!equals(this.dimension, tmp0_other_with_cast.dimension)) + return false; + if (!(this.dlTitle === tmp0_other_with_cast.dlTitle)) + return false; + if (!(this.dlSubtitle === tmp0_other_with_cast.dlSubtitle)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KPage_pvgc7r_k$(seen1, cid, part, duration, desc, dimension, dlTitle, dlSubtitle, serializationConstructorMarker) { + Companion_instance_399; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_386().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.cid = new Long(0, 0); + else + $this.cid = cid; + if (0 === (seen1 & 2)) + $this.part = ''; + else + $this.part = part; + if (0 === (seen1 & 4)) + $this.duration = new Long(0, 0); + else + $this.duration = duration; + if (0 === (seen1 & 8)) + $this.desc = ''; + else + $this.desc = desc; + if (0 === (seen1 & 16)) + $this.dimension = null; + else + $this.dimension = dimension; + if (0 === (seen1 & 32)) + $this.dlTitle = ''; + else + $this.dlTitle = dlTitle; + if (0 === (seen1 & 64)) + $this.dlSubtitle = ''; + else + $this.dlSubtitle = dlSubtitle; + return $this; + } + } + class Companion_400 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.Stat'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_387(); + } + } + class $serializer_387 { + constructor() { + $serializer_instance_387 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KStat', this, 8); + tmp0_serialDesc.addElement_5pzumi_k$('vt', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('danmaku', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('reply', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('fav', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('coin', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('share', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('like', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('follow', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_367()), get_nullable($serializer_getInstance_367()), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = new Long(0, 0); + var tmp7_local3 = new Long(0, 0); + var tmp8_local4 = new Long(0, 0); + var tmp9_local5 = new Long(0, 0); + var tmp10_local6 = new Long(0, 0); + var tmp11_local7 = new Long(0, 0); + var tmp12_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp12_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_367(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_367(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + } else + while (tmp1_flag) { + tmp2_index = tmp12_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_367(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_367(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp12_input.endStructure_1xqz0n_k$(tmp0_desc); + return KStat.new_com_bapis_bilibili_app_viewunite_common_KStat_s0nxfa_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null); + } + serialize_yk77l0_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.vt == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_367(), value.vt); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.danmaku == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_367(), value.danmaku); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.reply.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.reply); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !value.fav.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 3, value.fav); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !value.coin.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 4, value.coin); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !value.share.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 5, value.share); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !value.like.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 6, value.like); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !value.follow.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 7, value.follow); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_yk77l0_k$(encoder, value instanceof KStat ? value : THROW_CCE()); + } + } + class KStat { + constructor(vt, danmaku, reply, fav, coin, share, like, follow) { + Companion_instance_400; + vt = vt === VOID ? null : vt; + danmaku = danmaku === VOID ? null : danmaku; + reply = reply === VOID ? new Long(0, 0) : reply; + fav = fav === VOID ? new Long(0, 0) : fav; + coin = coin === VOID ? new Long(0, 0) : coin; + share = share === VOID ? new Long(0, 0) : share; + like = like === VOID ? new Long(0, 0) : like; + follow = follow === VOID ? new Long(0, 0) : follow; + this.vt = vt; + this.danmaku = danmaku; + this.reply = reply; + this.fav = fav; + this.coin = coin; + this.share = share; + this.like = like; + this.follow = follow; + } + get_vt_kntnll_k$() { + return this.vt; + } + get_danmaku_p1pkiu_k$() { + return this.danmaku; + } + get_reply_ixwurl_k$() { + return this.reply; + } + get_fav_18j61a_k$() { + return this.fav; + } + get_coin_wok82i_k$() { + return this.coin; + } + get_share_iyi9bq_k$() { + return this.share; + } + get_like_wopujk_k$() { + return this.like; + } + get_follow_df9z22_k$() { + return this.follow; + } + component1_7eebsc_k$() { + return this.vt; + } + component2_7eebsb_k$() { + return this.danmaku; + } + component3_7eebsa_k$() { + return this.reply; + } + component4_7eebs9_k$() { + return this.fav; + } + component5_7eebs8_k$() { + return this.coin; + } + component6_7eebs7_k$() { + return this.share; + } + component7_7eebs6_k$() { + return this.like; + } + component8_7eebs5_k$() { + return this.follow; + } + copy_ae1kwh_k$(vt, danmaku, reply, fav, coin, share, like, follow) { + return new KStat(vt, danmaku, reply, fav, coin, share, like, follow); + } + copy(vt, danmaku, reply, fav, coin, share, like, follow, $super) { + vt = vt === VOID ? this.vt : vt; + danmaku = danmaku === VOID ? this.danmaku : danmaku; + reply = reply === VOID ? this.reply : reply; + fav = fav === VOID ? this.fav : fav; + coin = coin === VOID ? this.coin : coin; + share = share === VOID ? this.share : share; + like = like === VOID ? this.like : like; + follow = follow === VOID ? this.follow : follow; + return this.copy_ae1kwh_k$(vt, danmaku, reply, fav, coin, share, like, follow); + } + toString() { + return 'KStat(vt=' + this.vt + ', danmaku=' + this.danmaku + ', reply=' + this.reply.toString() + ', fav=' + this.fav.toString() + ', coin=' + this.coin.toString() + ', share=' + this.share.toString() + ', like=' + this.like.toString() + ', follow=' + this.follow.toString() + ')'; + } + hashCode() { + var result = this.vt == null ? 0 : this.vt.hashCode(); + result = imul(result, 31) + (this.danmaku == null ? 0 : this.danmaku.hashCode()) | 0; + result = imul(result, 31) + this.reply.hashCode() | 0; + result = imul(result, 31) + this.fav.hashCode() | 0; + result = imul(result, 31) + this.coin.hashCode() | 0; + result = imul(result, 31) + this.share.hashCode() | 0; + result = imul(result, 31) + this.like.hashCode() | 0; + result = imul(result, 31) + this.follow.hashCode() | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KStat)) + return false; + var tmp0_other_with_cast = other instanceof KStat ? other : THROW_CCE(); + if (!equals(this.vt, tmp0_other_with_cast.vt)) + return false; + if (!equals(this.danmaku, tmp0_other_with_cast.danmaku)) + return false; + if (!this.reply.equals(tmp0_other_with_cast.reply)) + return false; + if (!this.fav.equals(tmp0_other_with_cast.fav)) + return false; + if (!this.coin.equals(tmp0_other_with_cast.coin)) + return false; + if (!this.share.equals(tmp0_other_with_cast.share)) + return false; + if (!this.like.equals(tmp0_other_with_cast.like)) + return false; + if (!this.follow.equals(tmp0_other_with_cast.follow)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KStat_s0nxfa_k$(seen1, vt, danmaku, reply, fav, coin, share, like, follow, serializationConstructorMarker) { + Companion_instance_400; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_387().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.vt = null; + else + $this.vt = vt; + if (0 === (seen1 & 2)) + $this.danmaku = null; + else + $this.danmaku = danmaku; + if (0 === (seen1 & 4)) + $this.reply = new Long(0, 0); + else + $this.reply = reply; + if (0 === (seen1 & 8)) + $this.fav = new Long(0, 0); + else + $this.fav = fav; + if (0 === (seen1 & 16)) + $this.coin = new Long(0, 0); + else + $this.coin = coin; + if (0 === (seen1 & 32)) + $this.share = new Long(0, 0); + else + $this.share = share; + if (0 === (seen1 & 64)) + $this.like = new Long(0, 0); + else + $this.like = like; + if (0 === (seen1 & 128)) + $this.follow = new Long(0, 0); + else + $this.follow = follow; + return $this; + } + } + class Companion_401 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.SpecialCell'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_388(); + } + } + class $serializer_388 { + constructor() { + $serializer_instance_388 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KSpecialCell', this, 15); + tmp0_serialDesc.addElement_5pzumi_k$('icon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('iconNight', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('text', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('textColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('textColorNight', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('jumpUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('cellType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('cellBgcolor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('cellBgcolorNight', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('param', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('pageTitle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('jumpType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + tmp0_serialDesc.addElement_5pzumi_k$('endIcon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(13)); + tmp0_serialDesc.addElement_5pzumi_k$('endIconNight', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(14)); + tmp0_serialDesc.addElement_5pzumi_k$('cellFluid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(15)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_389())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_local8 = null; + var tmp13_local9 = null; + var tmp14_local10 = null; + var tmp15_local11 = null; + var tmp16_local12 = null; + var tmp17_local13 = null; + var tmp18_local14 = null; + var tmp19_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp19_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + tmp16_local12 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + tmp17_local13 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + tmp18_local14 = tmp19_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 14, $serializer_getInstance_389(), tmp18_local14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + } else + while (tmp1_flag) { + tmp2_index = tmp19_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + case 12: + tmp16_local12 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + break; + case 13: + tmp17_local13 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + break; + case 14: + tmp18_local14 = tmp19_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 14, $serializer_getInstance_389(), tmp18_local14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp19_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSpecialCell.new_com_bapis_bilibili_app_viewunite_common_KSpecialCell_kq3nyf_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, tmp18_local14, null); + } + serialize_3vw24t_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.icon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.icon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.iconNight === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.iconNight); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.text === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.text); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.textColor === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.textColor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.textColorNight === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.textColorNight); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.jumpUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.jumpUrl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.cellType === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.cellType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.cellBgcolor === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.cellBgcolor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.cellBgcolorNight === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 8, value.cellBgcolorNight); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.param === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 9, value.param); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.pageTitle === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 10, value.pageTitle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.jumpType === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 11, value.jumpType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !(value.endIcon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 12, value.endIcon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 13) ? true : !(value.endIconNight === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 13, value.endIconNight); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 14) ? true : !(value.cellFluid == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 14, $serializer_getInstance_389(), value.cellFluid); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_3vw24t_k$(encoder, value instanceof KSpecialCell ? value : THROW_CCE()); + } + } + class KSpecialCell { + constructor(icon, iconNight, text, textColor, textColorNight, jumpUrl, cellType, cellBgcolor, cellBgcolorNight, param, pageTitle, jumpType, endIcon, endIconNight, cellFluid) { + Companion_instance_401; + icon = icon === VOID ? '' : icon; + iconNight = iconNight === VOID ? '' : iconNight; + text = text === VOID ? '' : text; + textColor = textColor === VOID ? '' : textColor; + textColorNight = textColorNight === VOID ? '' : textColorNight; + jumpUrl = jumpUrl === VOID ? '' : jumpUrl; + cellType = cellType === VOID ? '' : cellType; + cellBgcolor = cellBgcolor === VOID ? '' : cellBgcolor; + cellBgcolorNight = cellBgcolorNight === VOID ? '' : cellBgcolorNight; + param = param === VOID ? '' : param; + pageTitle = pageTitle === VOID ? '' : pageTitle; + jumpType = jumpType === VOID ? '' : jumpType; + endIcon = endIcon === VOID ? '' : endIcon; + endIconNight = endIconNight === VOID ? '' : endIconNight; + cellFluid = cellFluid === VOID ? null : cellFluid; + this.icon = icon; + this.iconNight = iconNight; + this.text = text; + this.textColor = textColor; + this.textColorNight = textColorNight; + this.jumpUrl = jumpUrl; + this.cellType = cellType; + this.cellBgcolor = cellBgcolor; + this.cellBgcolorNight = cellBgcolorNight; + this.param = param; + this.pageTitle = pageTitle; + this.jumpType = jumpType; + this.endIcon = endIcon; + this.endIconNight = endIconNight; + this.cellFluid = cellFluid; + } + get_icon_wont8i_k$() { + return this.icon; + } + get_iconNight_equj62_k$() { + return this.iconNight; + } + get_text_wouvsm_k$() { + return this.text; + } + get_textColor_92p84z_k$() { + return this.textColor; + } + get_textColorNight_hqolf9_k$() { + return this.textColorNight; + } + get_jumpUrl_jhqiko_k$() { + return this.jumpUrl; + } + get_cellType_o1vog5_k$() { + return this.cellType; + } + get_cellBgcolor_8ublrh_k$() { + return this.cellBgcolor; + } + get_cellBgcolorNight_8lw2bp_k$() { + return this.cellBgcolorNight; + } + get_param_iwqquc_k$() { + return this.param; + } + get_pageTitle_myiuzk_k$() { + return this.pageTitle; + } + get_jumpType_z060cx_k$() { + return this.jumpType; + } + get_endIcon_pbjzzp_k$() { + return this.endIcon; + } + get_endIconNight_pimss3_k$() { + return this.endIconNight; + } + get_cellFluid_z386vz_k$() { + return this.cellFluid; + } + component1_7eebsc_k$() { + return this.icon; + } + component2_7eebsb_k$() { + return this.iconNight; + } + component3_7eebsa_k$() { + return this.text; + } + component4_7eebs9_k$() { + return this.textColor; + } + component5_7eebs8_k$() { + return this.textColorNight; + } + component6_7eebs7_k$() { + return this.jumpUrl; + } + component7_7eebs6_k$() { + return this.cellType; + } + component8_7eebs5_k$() { + return this.cellBgcolor; + } + component9_7eebs4_k$() { + return this.cellBgcolorNight; + } + component10_gazzfo_k$() { + return this.param; + } + component11_gazzfn_k$() { + return this.pageTitle; + } + component12_gazzfm_k$() { + return this.jumpType; + } + component13_gazzfl_k$() { + return this.endIcon; + } + component14_gazzfk_k$() { + return this.endIconNight; + } + component15_gazzfj_k$() { + return this.cellFluid; + } + copy_ngtfd5_k$(icon, iconNight, text, textColor, textColorNight, jumpUrl, cellType, cellBgcolor, cellBgcolorNight, param, pageTitle, jumpType, endIcon, endIconNight, cellFluid) { + return new KSpecialCell(icon, iconNight, text, textColor, textColorNight, jumpUrl, cellType, cellBgcolor, cellBgcolorNight, param, pageTitle, jumpType, endIcon, endIconNight, cellFluid); + } + copy(icon, iconNight, text, textColor, textColorNight, jumpUrl, cellType, cellBgcolor, cellBgcolorNight, param, pageTitle, jumpType, endIcon, endIconNight, cellFluid, $super) { + icon = icon === VOID ? this.icon : icon; + iconNight = iconNight === VOID ? this.iconNight : iconNight; + text = text === VOID ? this.text : text; + textColor = textColor === VOID ? this.textColor : textColor; + textColorNight = textColorNight === VOID ? this.textColorNight : textColorNight; + jumpUrl = jumpUrl === VOID ? this.jumpUrl : jumpUrl; + cellType = cellType === VOID ? this.cellType : cellType; + cellBgcolor = cellBgcolor === VOID ? this.cellBgcolor : cellBgcolor; + cellBgcolorNight = cellBgcolorNight === VOID ? this.cellBgcolorNight : cellBgcolorNight; + param = param === VOID ? this.param : param; + pageTitle = pageTitle === VOID ? this.pageTitle : pageTitle; + jumpType = jumpType === VOID ? this.jumpType : jumpType; + endIcon = endIcon === VOID ? this.endIcon : endIcon; + endIconNight = endIconNight === VOID ? this.endIconNight : endIconNight; + cellFluid = cellFluid === VOID ? this.cellFluid : cellFluid; + return this.copy_ngtfd5_k$(icon, iconNight, text, textColor, textColorNight, jumpUrl, cellType, cellBgcolor, cellBgcolorNight, param, pageTitle, jumpType, endIcon, endIconNight, cellFluid); + } + toString() { + return 'KSpecialCell(icon=' + this.icon + ', iconNight=' + this.iconNight + ', text=' + this.text + ', textColor=' + this.textColor + ', textColorNight=' + this.textColorNight + ', jumpUrl=' + this.jumpUrl + ', cellType=' + this.cellType + ', cellBgcolor=' + this.cellBgcolor + ', cellBgcolorNight=' + this.cellBgcolorNight + ', param=' + this.param + ', pageTitle=' + this.pageTitle + ', jumpType=' + this.jumpType + ', endIcon=' + this.endIcon + ', endIconNight=' + this.endIconNight + ', cellFluid=' + this.cellFluid + ')'; + } + hashCode() { + var result = getStringHashCode(this.icon); + result = imul(result, 31) + getStringHashCode(this.iconNight) | 0; + result = imul(result, 31) + getStringHashCode(this.text) | 0; + result = imul(result, 31) + getStringHashCode(this.textColor) | 0; + result = imul(result, 31) + getStringHashCode(this.textColorNight) | 0; + result = imul(result, 31) + getStringHashCode(this.jumpUrl) | 0; + result = imul(result, 31) + getStringHashCode(this.cellType) | 0; + result = imul(result, 31) + getStringHashCode(this.cellBgcolor) | 0; + result = imul(result, 31) + getStringHashCode(this.cellBgcolorNight) | 0; + result = imul(result, 31) + getStringHashCode(this.param) | 0; + result = imul(result, 31) + getStringHashCode(this.pageTitle) | 0; + result = imul(result, 31) + getStringHashCode(this.jumpType) | 0; + result = imul(result, 31) + getStringHashCode(this.endIcon) | 0; + result = imul(result, 31) + getStringHashCode(this.endIconNight) | 0; + result = imul(result, 31) + (this.cellFluid == null ? 0 : this.cellFluid.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSpecialCell)) + return false; + var tmp0_other_with_cast = other instanceof KSpecialCell ? other : THROW_CCE(); + if (!(this.icon === tmp0_other_with_cast.icon)) + return false; + if (!(this.iconNight === tmp0_other_with_cast.iconNight)) + return false; + if (!(this.text === tmp0_other_with_cast.text)) + return false; + if (!(this.textColor === tmp0_other_with_cast.textColor)) + return false; + if (!(this.textColorNight === tmp0_other_with_cast.textColorNight)) + return false; + if (!(this.jumpUrl === tmp0_other_with_cast.jumpUrl)) + return false; + if (!(this.cellType === tmp0_other_with_cast.cellType)) + return false; + if (!(this.cellBgcolor === tmp0_other_with_cast.cellBgcolor)) + return false; + if (!(this.cellBgcolorNight === tmp0_other_with_cast.cellBgcolorNight)) + return false; + if (!(this.param === tmp0_other_with_cast.param)) + return false; + if (!(this.pageTitle === tmp0_other_with_cast.pageTitle)) + return false; + if (!(this.jumpType === tmp0_other_with_cast.jumpType)) + return false; + if (!(this.endIcon === tmp0_other_with_cast.endIcon)) + return false; + if (!(this.endIconNight === tmp0_other_with_cast.endIconNight)) + return false; + if (!equals(this.cellFluid, tmp0_other_with_cast.cellFluid)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KSpecialCell_kq3nyf_k$(seen1, icon, iconNight, text, textColor, textColorNight, jumpUrl, cellType, cellBgcolor, cellBgcolorNight, param, pageTitle, jumpType, endIcon, endIconNight, cellFluid, serializationConstructorMarker) { + Companion_instance_401; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_388().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.icon = ''; + else + $this.icon = icon; + if (0 === (seen1 & 2)) + $this.iconNight = ''; + else + $this.iconNight = iconNight; + if (0 === (seen1 & 4)) + $this.text = ''; + else + $this.text = text; + if (0 === (seen1 & 8)) + $this.textColor = ''; + else + $this.textColor = textColor; + if (0 === (seen1 & 16)) + $this.textColorNight = ''; + else + $this.textColorNight = textColorNight; + if (0 === (seen1 & 32)) + $this.jumpUrl = ''; + else + $this.jumpUrl = jumpUrl; + if (0 === (seen1 & 64)) + $this.cellType = ''; + else + $this.cellType = cellType; + if (0 === (seen1 & 128)) + $this.cellBgcolor = ''; + else + $this.cellBgcolor = cellBgcolor; + if (0 === (seen1 & 256)) + $this.cellBgcolorNight = ''; + else + $this.cellBgcolorNight = cellBgcolorNight; + if (0 === (seen1 & 512)) + $this.param = ''; + else + $this.param = param; + if (0 === (seen1 & 1024)) + $this.pageTitle = ''; + else + $this.pageTitle = pageTitle; + if (0 === (seen1 & 2048)) + $this.jumpType = ''; + else + $this.jumpType = jumpType; + if (0 === (seen1 & 4096)) + $this.endIcon = ''; + else + $this.endIcon = endIcon; + if (0 === (seen1 & 8192)) + $this.endIconNight = ''; + else + $this.endIconNight = endIconNight; + if (0 === (seen1 & 16384)) + $this.cellFluid = null; + else + $this.cellFluid = cellFluid; + return $this; + } + } + class Companion_402 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.CellFluid'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_389(); + } + } + class $serializer_389 { + constructor() { + $serializer_instance_389 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KCellFluid', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('topBaseColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('topSplitColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('topTextColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KCellFluid.new_com_bapis_bilibili_app_viewunite_common_KCellFluid_q84gdp_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_s46e4m_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.topBaseColor === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.topBaseColor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.topSplitColor === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.topSplitColor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.topTextColor === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.topTextColor); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_s46e4m_k$(encoder, value instanceof KCellFluid ? value : THROW_CCE()); + } + } + class KCellFluid { + constructor(topBaseColor, topSplitColor, topTextColor) { + Companion_instance_402; + topBaseColor = topBaseColor === VOID ? '' : topBaseColor; + topSplitColor = topSplitColor === VOID ? '' : topSplitColor; + topTextColor = topTextColor === VOID ? '' : topTextColor; + this.topBaseColor = topBaseColor; + this.topSplitColor = topSplitColor; + this.topTextColor = topTextColor; + } + get_topBaseColor_1luw7a_k$() { + return this.topBaseColor; + } + get_topSplitColor_62vdsb_k$() { + return this.topSplitColor; + } + get_topTextColor_ehkf56_k$() { + return this.topTextColor; + } + component1_7eebsc_k$() { + return this.topBaseColor; + } + component2_7eebsb_k$() { + return this.topSplitColor; + } + component3_7eebsa_k$() { + return this.topTextColor; + } + copy_nc7k0r_k$(topBaseColor, topSplitColor, topTextColor) { + return new KCellFluid(topBaseColor, topSplitColor, topTextColor); + } + copy(topBaseColor, topSplitColor, topTextColor, $super) { + topBaseColor = topBaseColor === VOID ? this.topBaseColor : topBaseColor; + topSplitColor = topSplitColor === VOID ? this.topSplitColor : topSplitColor; + topTextColor = topTextColor === VOID ? this.topTextColor : topTextColor; + return this.copy_nc7k0r_k$(topBaseColor, topSplitColor, topTextColor); + } + toString() { + return 'KCellFluid(topBaseColor=' + this.topBaseColor + ', topSplitColor=' + this.topSplitColor + ', topTextColor=' + this.topTextColor + ')'; + } + hashCode() { + var result = getStringHashCode(this.topBaseColor); + result = imul(result, 31) + getStringHashCode(this.topSplitColor) | 0; + result = imul(result, 31) + getStringHashCode(this.topTextColor) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KCellFluid)) + return false; + var tmp0_other_with_cast = other instanceof KCellFluid ? other : THROW_CCE(); + if (!(this.topBaseColor === tmp0_other_with_cast.topBaseColor)) + return false; + if (!(this.topSplitColor === tmp0_other_with_cast.topSplitColor)) + return false; + if (!(this.topTextColor === tmp0_other_with_cast.topTextColor)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KCellFluid_q84gdp_k$(seen1, topBaseColor, topSplitColor, topTextColor, serializationConstructorMarker) { + Companion_instance_402; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_389().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.topBaseColor = ''; + else + $this.topBaseColor = topBaseColor; + if (0 === (seen1 & 2)) + $this.topSplitColor = ''; + else + $this.topSplitColor = topSplitColor; + if (0 === (seen1 & 4)) + $this.topTextColor = ''; + else + $this.topTextColor = topTextColor; + return $this; + } + } + class Companion_403 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.ProfessionHonorExtend'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_390(); + } + } + class $serializer_390 { + constructor() { + $serializer_instance_390 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KProfessionHonorExtend', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('count', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('selfGrant', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('popup', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), BooleanSerializer_getInstance(), get_nullable($serializer_getInstance_391())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = false; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_391(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_391(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KProfessionHonorExtend.new_com_bapis_bilibili_app_viewunite_common_KProfessionHonorExtend_yl9ufz_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_5sef0a_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.count.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.count); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.selfGrant === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 1, value.selfGrant); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.popup == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_391(), value.popup); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_5sef0a_k$(encoder, value instanceof KProfessionHonorExtend ? value : THROW_CCE()); + } + } + class KProfessionHonorExtend { + constructor(count, selfGrant, popup) { + Companion_instance_403; + count = count === VOID ? new Long(0, 0) : count; + selfGrant = selfGrant === VOID ? false : selfGrant; + popup = popup === VOID ? null : popup; + this.count = count; + this.selfGrant = selfGrant; + this.popup = popup; + } + get_count_ipufhi_k$() { + return this.count; + } + get_selfGrant_jticft_k$() { + return this.selfGrant; + } + get_popup_iwznnn_k$() { + return this.popup; + } + component1_7eebsc_k$() { + return this.count; + } + component2_7eebsb_k$() { + return this.selfGrant; + } + component3_7eebsa_k$() { + return this.popup; + } + copy_ptq1gs_k$(count, selfGrant, popup) { + return new KProfessionHonorExtend(count, selfGrant, popup); + } + copy(count, selfGrant, popup, $super) { + count = count === VOID ? this.count : count; + selfGrant = selfGrant === VOID ? this.selfGrant : selfGrant; + popup = popup === VOID ? this.popup : popup; + return this.copy_ptq1gs_k$(count, selfGrant, popup); + } + toString() { + return 'KProfessionHonorExtend(count=' + this.count.toString() + ', selfGrant=' + this.selfGrant + ', popup=' + this.popup + ')'; + } + hashCode() { + var result = this.count.hashCode(); + result = imul(result, 31) + getBooleanHashCode(this.selfGrant) | 0; + result = imul(result, 31) + (this.popup == null ? 0 : this.popup.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KProfessionHonorExtend)) + return false; + var tmp0_other_with_cast = other instanceof KProfessionHonorExtend ? other : THROW_CCE(); + if (!this.count.equals(tmp0_other_with_cast.count)) + return false; + if (!(this.selfGrant === tmp0_other_with_cast.selfGrant)) + return false; + if (!equals(this.popup, tmp0_other_with_cast.popup)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KProfessionHonorExtend_yl9ufz_k$(seen1, count, selfGrant, popup, serializationConstructorMarker) { + Companion_instance_403; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_390().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.count = new Long(0, 0); + else + $this.count = count; + if (0 === (seen1 & 2)) + $this.selfGrant = false; + else + $this.selfGrant = selfGrant; + if (0 === (seen1 & 4)) + $this.popup = null; + else + $this.popup = popup; + return $this; + } + } + class Companion_404 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.ProfessionPopup'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_391(); + } + } + class $serializer_391 { + constructor() { + $serializer_instance_391 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KProfessionPopup', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('subtitle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KProfessionPopup.new_com_bapis_bilibili_app_viewunite_common_KProfessionPopup_d0ih7w_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_sddn7m_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.subtitle === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.subtitle); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_sddn7m_k$(encoder, value instanceof KProfessionPopup ? value : THROW_CCE()); + } + } + class KProfessionPopup { + constructor(title, subtitle) { + Companion_instance_404; + title = title === VOID ? '' : title; + subtitle = subtitle === VOID ? '' : subtitle; + this.title = title; + this.subtitle = subtitle; + } + get_title_iz32un_k$() { + return this.title; + } + get_subtitle_55eoyp_k$() { + return this.subtitle; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.subtitle; + } + copy_plwnsl_k$(title, subtitle) { + return new KProfessionPopup(title, subtitle); + } + copy(title, subtitle, $super) { + title = title === VOID ? this.title : title; + subtitle = subtitle === VOID ? this.subtitle : subtitle; + return this.copy_plwnsl_k$(title, subtitle); + } + toString() { + return 'KProfessionPopup(title=' + this.title + ', subtitle=' + this.subtitle + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.subtitle) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KProfessionPopup)) + return false; + var tmp0_other_with_cast = other instanceof KProfessionPopup ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.subtitle === tmp0_other_with_cast.subtitle)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KProfessionPopup_d0ih7w_k$(seen1, title, subtitle, serializationConstructorMarker) { + Companion_instance_404; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_391().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.subtitle = ''; + else + $this.subtitle = subtitle; + return $this; + } + } + class Companion_405 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.ReserveCalendarInfo'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_392(); + } + } + class $serializer_392 { + constructor() { + $serializer_instance_392 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KReserveCalendarInfo', this, 5); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('startTs', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('endTs', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('description', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('businessId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = new Long(0, 0); + var tmp6_local2 = new Long(0, 0); + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp9_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + } else + while (tmp1_flag) { + tmp2_index = tmp9_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp9_input.endStructure_1xqz0n_k$(tmp0_desc); + return KReserveCalendarInfo.new_com_bapis_bilibili_app_viewunite_common_KReserveCalendarInfo_e2boxj_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); + } + serialize_rs0xd2_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.startTs.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.startTs); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.endTs.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.endTs); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.description === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.description); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.businessId === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.businessId); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_rs0xd2_k$(encoder, value instanceof KReserveCalendarInfo ? value : THROW_CCE()); + } + } + class KReserveCalendarInfo { + constructor(title, startTs, endTs, description, businessId) { + Companion_instance_405; + title = title === VOID ? '' : title; + startTs = startTs === VOID ? new Long(0, 0) : startTs; + endTs = endTs === VOID ? new Long(0, 0) : endTs; + description = description === VOID ? '' : description; + businessId = businessId === VOID ? '' : businessId; + this.title = title; + this.startTs = startTs; + this.endTs = endTs; + this.description = description; + this.businessId = businessId; + } + get_title_iz32un_k$() { + return this.title; + } + get_startTs_u3zbs8_k$() { + return this.startTs; + } + get_endTs_iqx0gh_k$() { + return this.endTs; + } + get_description_emjre5_k$() { + return this.description; + } + get_businessId_7z4n7o_k$() { + return this.businessId; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.startTs; + } + component3_7eebsa_k$() { + return this.endTs; + } + component4_7eebs9_k$() { + return this.description; + } + component5_7eebs8_k$() { + return this.businessId; + } + copy_clb7dr_k$(title, startTs, endTs, description, businessId) { + return new KReserveCalendarInfo(title, startTs, endTs, description, businessId); + } + copy(title, startTs, endTs, description, businessId, $super) { + title = title === VOID ? this.title : title; + startTs = startTs === VOID ? this.startTs : startTs; + endTs = endTs === VOID ? this.endTs : endTs; + description = description === VOID ? this.description : description; + businessId = businessId === VOID ? this.businessId : businessId; + return this.copy_clb7dr_k$(title, startTs, endTs, description, businessId); + } + toString() { + return 'KReserveCalendarInfo(title=' + this.title + ', startTs=' + this.startTs.toString() + ', endTs=' + this.endTs.toString() + ', description=' + this.description + ', businessId=' + this.businessId + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + this.startTs.hashCode() | 0; + result = imul(result, 31) + this.endTs.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.description) | 0; + result = imul(result, 31) + getStringHashCode(this.businessId) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KReserveCalendarInfo)) + return false; + var tmp0_other_with_cast = other instanceof KReserveCalendarInfo ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!this.startTs.equals(tmp0_other_with_cast.startTs)) + return false; + if (!this.endTs.equals(tmp0_other_with_cast.endTs)) + return false; + if (!(this.description === tmp0_other_with_cast.description)) + return false; + if (!(this.businessId === tmp0_other_with_cast.businessId)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KReserveCalendarInfo_e2boxj_k$(seen1, title, startTs, endTs, description, businessId, serializationConstructorMarker) { + Companion_instance_405; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_392().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.startTs = new Long(0, 0); + else + $this.startTs = startTs; + if (0 === (seen1 & 4)) + $this.endTs = new Long(0, 0); + else + $this.endTs = endTs; + if (0 === (seen1 & 8)) + $this.description = ''; + else + $this.description = description; + if (0 === (seen1 & 16)) + $this.businessId = ''; + else + $this.businessId = businessId; + return $this; + } + } + class Companion_406 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.EpBgInfo'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_393(); + } + } + class $serializer_393 { + constructor() { + $serializer_instance_393 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KEpBgInfo', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('floatLayer', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('noFloatLayer', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_394()), get_nullable($serializer_getInstance_394())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_394(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_394(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_394(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_394(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KEpBgInfo.new_com_bapis_bilibili_app_viewunite_common_KEpBgInfo_z94gd6_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_3kq4x2_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.floatLayer == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_394(), value.floatLayer); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.noFloatLayer == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_394(), value.noFloatLayer); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_3kq4x2_k$(encoder, value instanceof KEpBgInfo ? value : THROW_CCE()); + } + } + class KEpBgInfo { + constructor(floatLayer, noFloatLayer) { + Companion_instance_406; + floatLayer = floatLayer === VOID ? null : floatLayer; + noFloatLayer = noFloatLayer === VOID ? null : noFloatLayer; + this.floatLayer = floatLayer; + this.noFloatLayer = noFloatLayer; + } + get_floatLayer_xqoc0u_k$() { + return this.floatLayer; + } + get_noFloatLayer_atkif3_k$() { + return this.noFloatLayer; + } + component1_7eebsc_k$() { + return this.floatLayer; + } + component2_7eebsb_k$() { + return this.noFloatLayer; + } + copy_bs4ef5_k$(floatLayer, noFloatLayer) { + return new KEpBgInfo(floatLayer, noFloatLayer); + } + copy(floatLayer, noFloatLayer, $super) { + floatLayer = floatLayer === VOID ? this.floatLayer : floatLayer; + noFloatLayer = noFloatLayer === VOID ? this.noFloatLayer : noFloatLayer; + return this.copy_bs4ef5_k$(floatLayer, noFloatLayer); + } + toString() { + return 'KEpBgInfo(floatLayer=' + this.floatLayer + ', noFloatLayer=' + this.noFloatLayer + ')'; + } + hashCode() { + var result = this.floatLayer == null ? 0 : this.floatLayer.hashCode(); + result = imul(result, 31) + (this.noFloatLayer == null ? 0 : this.noFloatLayer.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KEpBgInfo)) + return false; + var tmp0_other_with_cast = other instanceof KEpBgInfo ? other : THROW_CCE(); + if (!equals(this.floatLayer, tmp0_other_with_cast.floatLayer)) + return false; + if (!equals(this.noFloatLayer, tmp0_other_with_cast.noFloatLayer)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KEpBgInfo_z94gd6_k$(seen1, floatLayer, noFloatLayer, serializationConstructorMarker) { + Companion_instance_406; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_393().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.floatLayer = null; + else + $this.floatLayer = floatLayer; + if (0 === (seen1 & 2)) + $this.noFloatLayer = null; + else + $this.noFloatLayer = noFloatLayer; + return $this; + } + } + class Companion_407 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.common.BgInfo'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_394(); + } + } + class $serializer_394 { + constructor() { + $serializer_instance_394 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.common.KBgInfo', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('lightShortBg', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('darkShortBg', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('lightLongBg', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('darkLongBg', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KBgInfo.new_com_bapis_bilibili_app_viewunite_common_KBgInfo_q7040v_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_vn2w8r_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.lightShortBg === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.lightShortBg); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.darkShortBg === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.darkShortBg); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.lightLongBg === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.lightLongBg); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.darkLongBg === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.darkLongBg); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_vn2w8r_k$(encoder, value instanceof KBgInfo ? value : THROW_CCE()); + } + } + class KBgInfo { + constructor(lightShortBg, darkShortBg, lightLongBg, darkLongBg) { + Companion_instance_407; + lightShortBg = lightShortBg === VOID ? '' : lightShortBg; + darkShortBg = darkShortBg === VOID ? '' : darkShortBg; + lightLongBg = lightLongBg === VOID ? '' : lightLongBg; + darkLongBg = darkLongBg === VOID ? '' : darkLongBg; + this.lightShortBg = lightShortBg; + this.darkShortBg = darkShortBg; + this.lightLongBg = lightLongBg; + this.darkLongBg = darkLongBg; + } + get_lightShortBg_be5wi4_k$() { + return this.lightShortBg; + } + get_darkShortBg_gfys6a_k$() { + return this.darkShortBg; + } + get_lightLongBg_v2km36_k$() { + return this.lightLongBg; + } + get_darkLongBg_fni5j4_k$() { + return this.darkLongBg; + } + component1_7eebsc_k$() { + return this.lightShortBg; + } + component2_7eebsb_k$() { + return this.darkShortBg; + } + component3_7eebsa_k$() { + return this.lightLongBg; + } + component4_7eebs9_k$() { + return this.darkLongBg; + } + copy_hmmiyd_k$(lightShortBg, darkShortBg, lightLongBg, darkLongBg) { + return new KBgInfo(lightShortBg, darkShortBg, lightLongBg, darkLongBg); + } + copy(lightShortBg, darkShortBg, lightLongBg, darkLongBg, $super) { + lightShortBg = lightShortBg === VOID ? this.lightShortBg : lightShortBg; + darkShortBg = darkShortBg === VOID ? this.darkShortBg : darkShortBg; + lightLongBg = lightLongBg === VOID ? this.lightLongBg : lightLongBg; + darkLongBg = darkLongBg === VOID ? this.darkLongBg : darkLongBg; + return this.copy_hmmiyd_k$(lightShortBg, darkShortBg, lightLongBg, darkLongBg); + } + toString() { + return 'KBgInfo(lightShortBg=' + this.lightShortBg + ', darkShortBg=' + this.darkShortBg + ', lightLongBg=' + this.lightLongBg + ', darkLongBg=' + this.darkLongBg + ')'; + } + hashCode() { + var result = getStringHashCode(this.lightShortBg); + result = imul(result, 31) + getStringHashCode(this.darkShortBg) | 0; + result = imul(result, 31) + getStringHashCode(this.lightLongBg) | 0; + result = imul(result, 31) + getStringHashCode(this.darkLongBg) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KBgInfo)) + return false; + var tmp0_other_with_cast = other instanceof KBgInfo ? other : THROW_CCE(); + if (!(this.lightShortBg === tmp0_other_with_cast.lightShortBg)) + return false; + if (!(this.darkShortBg === tmp0_other_with_cast.darkShortBg)) + return false; + if (!(this.lightLongBg === tmp0_other_with_cast.lightLongBg)) + return false; + if (!(this.darkLongBg === tmp0_other_with_cast.darkLongBg)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_common_KBgInfo_q7040v_k$(seen1, lightShortBg, darkShortBg, lightLongBg, darkLongBg, serializationConstructorMarker) { + Companion_instance_407; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_394().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.lightShortBg = ''; + else + $this.lightShortBg = lightShortBg; + if (0 === (seen1 & 2)) + $this.darkShortBg = ''; + else + $this.darkShortBg = darkShortBg; + if (0 === (seen1 & 4)) + $this.lightLongBg = ''; + else + $this.lightLongBg = lightLongBg; + if (0 === (seen1 & 8)) + $this.darkLongBg = ''; + else + $this.darkLongBg = darkLongBg; + return $this; + } + } + class Companion_408 { + constructor() { + Companion_instance_408 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KECode$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KECode$Companion$_anonymous__of9it4); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_56(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.viewunite.v1.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KECode_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.viewunite.v1.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KECode with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_56(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_395 { + constructor() { + $serializer_instance_395 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.viewunite.v1.KECode', 4); + tmp0_serialDesc.addElement_5pzumi_k$('CODE_DEFAULT', false); + tmp0_serialDesc.addElement_5pzumi_k$('CODE_404', false); + tmp0_serialDesc.addElement_5pzumi_k$('CODE_TEENAGER', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_56()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_2z7lv1_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_2z7lv1_k$(encoder, value instanceof KECode ? value : THROW_CCE()); + } + } + class KECode extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_409 { + constructor() { + Companion_instance_409 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KPlayToastEnum$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KPlayToastEnum$Companion$_anonymous__7x2txi); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_57(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.viewunite.v1.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KPlayToastEnum_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.viewunite.v1.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KPlayToastEnum with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_57(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_396 { + constructor() { + $serializer_instance_396 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.viewunite.v1.KPlayToastEnum', 3); + tmp0_serialDesc.addElement_5pzumi_k$('PLAYTOAST_UNKNOWN', false); + tmp0_serialDesc.addElement_5pzumi_k$('PLAYTOAST_CHARGINGPLUS', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_57()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_d6qno1_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_d6qno1_k$(encoder, value instanceof KPlayToastEnum ? value : THROW_CCE()); + } + } + class KPlayToastEnum extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_410 { + constructor() { + Companion_instance_410 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KJumpShowType$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KJumpShowType$Companion$_anonymous__3ecr6n); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_58(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.viewunite.v1.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KJumpShowType_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.viewunite.v1.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KJumpShowType with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_58(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_397 { + constructor() { + $serializer_instance_397 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.viewunite.v1.KJumpShowType', 4); + tmp0_serialDesc.addElement_5pzumi_k$('JST_DEFAULT', false); + tmp0_serialDesc.addElement_5pzumi_k$('JST_FULLSCREEN', false); + tmp0_serialDesc.addElement_5pzumi_k$('JST_HALFSCREEN', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_58()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_sifnli_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_sifnli_k$(encoder, value instanceof KJumpShowType ? value : THROW_CCE()); + } + } + class KJumpShowType extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_411 { + constructor() { + Companion_instance_411 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KTabType$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KTabType$Companion$_anonymous__rajoqd); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_59(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.viewunite.v1.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KTabType_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.viewunite.v1.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KTabType with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_59(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_398 { + constructor() { + $serializer_instance_398 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.viewunite.v1.KTabType', 6); + tmp0_serialDesc.addElement_5pzumi_k$('TAB_NONE', false); + tmp0_serialDesc.addElement_5pzumi_k$('TAB_INTRODUCTION', false); + tmp0_serialDesc.addElement_5pzumi_k$('TAB_REPLY', false); + tmp0_serialDesc.addElement_5pzumi_k$('TAB_OGV_ACTIVITY', false); + tmp0_serialDesc.addElement_5pzumi_k$('TAB_CATALOG', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_59()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_rzyb7u_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_rzyb7u_k$(encoder, value instanceof KTabType ? value : THROW_CCE()); + } + } + class KTabType extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_412 { + constructor() { + Companion_instance_412 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KPageCategory$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KPageCategory$Companion$_anonymous__l2pclz); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_60(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.viewunite.v1.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KPageCategory_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.viewunite.v1.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KPageCategory with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_60(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_399 { + constructor() { + $serializer_instance_399 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.viewunite.v1.KPageCategory', 3); + tmp0_serialDesc.addElement_5pzumi_k$('COMMON_PAGE', false); + tmp0_serialDesc.addElement_5pzumi_k$('ACTIVITY_PAGE', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_60()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_evt1s2_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_evt1s2_k$(encoder, value instanceof KPageCategory ? value : THROW_CCE()); + } + } + class KPageCategory extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_413 { + constructor() { + Companion_instance_413 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KBizType$Companion$values$delegate$lambda_0); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KBizType$Companion$_anonymous__qvpjhv_0); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_61(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.viewunite.v1.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KBizType_UNRECOGNIZED_getInstance_0() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.viewunite.v1.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KBizType with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_61(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_400 { + constructor() { + $serializer_instance_400 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.viewunite.v1.KBizType', 7); + tmp0_serialDesc.addElement_5pzumi_k$('NONE', false); + tmp0_serialDesc.addElement_5pzumi_k$('FOLLOW_VIDEO', false); + tmp0_serialDesc.addElement_5pzumi_k$('RESERVE_ACTIVITY', false); + tmp0_serialDesc.addElement_5pzumi_k$('JUMP_LINK', false); + tmp0_serialDesc.addElement_5pzumi_k$('FAV_SEASON', false); + tmp0_serialDesc.addElement_5pzumi_k$('RESERVE_GAME', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_61()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_jjqq2g_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_jjqq2g_k$(encoder, value instanceof KBizType_0 ? value : THROW_CCE()); + } + } + class KBizType_0 extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_414 { + constructor() { + Companion_instance_414 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KPageType$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KPageType$Companion$_anonymous__4he9cr); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_62(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.viewunite.v1.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KPageType_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.viewunite.v1.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KPageType with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_62(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_401 { + constructor() { + $serializer_instance_401 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.viewunite.v1.KPageType', 3); + tmp0_serialDesc.addElement_5pzumi_k$('H5', false); + tmp0_serialDesc.addElement_5pzumi_k$('NA', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_62()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_x783gm_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_x783gm_k$(encoder, value instanceof KPageType ? value : THROW_CCE()); + } + } + class KPageType extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_415 { + constructor() { + Companion_instance_415 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KUnionType$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KUnionType$Companion$_anonymous__v0w80h); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_63(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.viewunite.v1.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KUnionType_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.viewunite.v1.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KUnionType with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_63(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_402 { + constructor() { + $serializer_instance_402 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.viewunite.v1.KUnionType', 4); + tmp0_serialDesc.addElement_5pzumi_k$('UGC', false); + tmp0_serialDesc.addElement_5pzumi_k$('OGV', false); + tmp0_serialDesc.addElement_5pzumi_k$('PUGV', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_63()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_wgu7wc_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_wgu7wc_k$(encoder, value instanceof KUnionType ? value : THROW_CCE()); + } + } + class KUnionType extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_416 { + constructor() { + Companion_instance_416 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KMaterialSource$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KMaterialSource$Companion$_anonymous__a7cl3y); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_64(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.viewunite.v1.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KMaterialSource_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.viewunite.v1.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KMaterialSource with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_64(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_403 { + constructor() { + $serializer_instance_403 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.viewunite.v1.KMaterialSource', 3); + tmp0_serialDesc.addElement_5pzumi_k$('DEFAULT', false); + tmp0_serialDesc.addElement_5pzumi_k$('BIJIAN', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_64()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_x827f7_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_x827f7_k$(encoder, value instanceof KMaterialSource ? value : THROW_CCE()); + } + } + class KMaterialSource extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_417 { + constructor() { + Companion_instance_417 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KMaterialBizType$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KMaterialBizType$Companion$_anonymous__xqgp3g); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_65(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.viewunite.v1.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KMaterialBizType_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.viewunite.v1.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KMaterialBizType with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_65(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_404 { + constructor() { + $serializer_instance_404 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.viewunite.v1.KMaterialBizType', 10); + tmp0_serialDesc.addElement_5pzumi_k$('NONE', false); + tmp0_serialDesc.addElement_5pzumi_k$('ACTIVITY', false); + tmp0_serialDesc.addElement_5pzumi_k$('BGM', false); + tmp0_serialDesc.addElement_5pzumi_k$('EFFECT', false); + tmp0_serialDesc.addElement_5pzumi_k$('SHOOT_SAME', false); + tmp0_serialDesc.addElement_5pzumi_k$('SHOOT_TOGETHER', false); + tmp0_serialDesc.addElement_5pzumi_k$('ACTIVITY_ICON', false); + tmp0_serialDesc.addElement_5pzumi_k$('NEW_BGM', false); + tmp0_serialDesc.addElement_5pzumi_k$('GENERAL_TYPE', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_65()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_ym66wv_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_ym66wv_k$(encoder, value instanceof KMaterialBizType ? value : THROW_CCE()); + } + } + class KMaterialBizType extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_418 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.v1.RelatesFeedReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_405(); + } + } + class $serializer_405 { + constructor() { + $serializer_instance_405 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.v1.KRelatesFeedReq', this, 10); + tmp0_serialDesc.addElement_5pzumi_k$('aid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('bvid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('from', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('spmid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('fromSpmid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('playerArgs', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('pagination', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('sessionId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('autoPlay', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('fromTrackId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_152()), get_nullable($serializer_getInstance_195()), StringSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_local8 = new Long(0, 0); + var tmp13_local9 = null; + var tmp14_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp14_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_152(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_195(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + } else + while (tmp1_flag) { + tmp2_index = tmp14_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_152(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_195(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp14_input.endStructure_1xqz0n_k$(tmp0_desc); + return KRelatesFeedReq.new_com_bapis_bilibili_app_viewunite_v1_KRelatesFeedReq_stttrh_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, null); + } + serialize_i8mvq6_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.aid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.aid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.bvid === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.bvid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.from === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.from); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.spmid === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.spmid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.fromSpmid === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.fromSpmid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.playerArgs == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 5, $serializer_getInstance_152(), value.playerArgs); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.pagination == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 6, $serializer_getInstance_195(), value.pagination); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.sessionId === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.sessionId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !value.autoPlay.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 8, value.autoPlay); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.fromTrackId === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 9, value.fromTrackId); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_i8mvq6_k$(encoder, value instanceof KRelatesFeedReq ? value : THROW_CCE()); + } + } + class KRelatesFeedReq { + constructor(aid, bvid, from, spmid, fromSpmid, playerArgs, pagination, sessionId, autoPlay, fromTrackId) { + Companion_instance_418; + aid = aid === VOID ? new Long(0, 0) : aid; + bvid = bvid === VOID ? '' : bvid; + from = from === VOID ? '' : from; + spmid = spmid === VOID ? '' : spmid; + fromSpmid = fromSpmid === VOID ? '' : fromSpmid; + playerArgs = playerArgs === VOID ? null : playerArgs; + pagination = pagination === VOID ? null : pagination; + sessionId = sessionId === VOID ? '' : sessionId; + autoPlay = autoPlay === VOID ? new Long(0, 0) : autoPlay; + fromTrackId = fromTrackId === VOID ? '' : fromTrackId; + this.aid = aid; + this.bvid = bvid; + this.from = from; + this.spmid = spmid; + this.fromSpmid = fromSpmid; + this.playerArgs = playerArgs; + this.pagination = pagination; + this.sessionId = sessionId; + this.autoPlay = autoPlay; + this.fromTrackId = fromTrackId; + } + get_aid_18j9kd_k$() { + return this.aid; + } + get_bvid_wojq9k_k$() { + return this.bvid; + } + get_from_wom7eb_k$() { + return this.from; + } + get_spmid_iynlwi_k$() { + return this.spmid; + } + get_fromSpmid_9nw788_k$() { + return this.fromSpmid; + } + get_playerArgs_eh86hz_k$() { + return this.playerArgs; + } + get_pagination_1aczdv_k$() { + return this.pagination; + } + get_sessionId_ike088_k$() { + return this.sessionId; + } + get_autoPlay_80fd10_k$() { + return this.autoPlay; + } + get_fromTrackId_2rdval_k$() { + return this.fromTrackId; + } + component1_7eebsc_k$() { + return this.aid; + } + component2_7eebsb_k$() { + return this.bvid; + } + component3_7eebsa_k$() { + return this.from; + } + component4_7eebs9_k$() { + return this.spmid; + } + component5_7eebs8_k$() { + return this.fromSpmid; + } + component6_7eebs7_k$() { + return this.playerArgs; + } + component7_7eebs6_k$() { + return this.pagination; + } + component8_7eebs5_k$() { + return this.sessionId; + } + component9_7eebs4_k$() { + return this.autoPlay; + } + component10_gazzfo_k$() { + return this.fromTrackId; + } + copy_dywnmm_k$(aid, bvid, from, spmid, fromSpmid, playerArgs, pagination, sessionId, autoPlay, fromTrackId) { + return new KRelatesFeedReq(aid, bvid, from, spmid, fromSpmid, playerArgs, pagination, sessionId, autoPlay, fromTrackId); + } + copy(aid, bvid, from, spmid, fromSpmid, playerArgs, pagination, sessionId, autoPlay, fromTrackId, $super) { + aid = aid === VOID ? this.aid : aid; + bvid = bvid === VOID ? this.bvid : bvid; + from = from === VOID ? this.from : from; + spmid = spmid === VOID ? this.spmid : spmid; + fromSpmid = fromSpmid === VOID ? this.fromSpmid : fromSpmid; + playerArgs = playerArgs === VOID ? this.playerArgs : playerArgs; + pagination = pagination === VOID ? this.pagination : pagination; + sessionId = sessionId === VOID ? this.sessionId : sessionId; + autoPlay = autoPlay === VOID ? this.autoPlay : autoPlay; + fromTrackId = fromTrackId === VOID ? this.fromTrackId : fromTrackId; + return this.copy_dywnmm_k$(aid, bvid, from, spmid, fromSpmid, playerArgs, pagination, sessionId, autoPlay, fromTrackId); + } + toString() { + return 'KRelatesFeedReq(aid=' + this.aid.toString() + ', bvid=' + this.bvid + ', from=' + this.from + ', spmid=' + this.spmid + ', fromSpmid=' + this.fromSpmid + ', playerArgs=' + this.playerArgs + ', pagination=' + this.pagination + ', sessionId=' + this.sessionId + ', autoPlay=' + this.autoPlay.toString() + ', fromTrackId=' + this.fromTrackId + ')'; + } + hashCode() { + var result = this.aid.hashCode(); + result = imul(result, 31) + getStringHashCode(this.bvid) | 0; + result = imul(result, 31) + getStringHashCode(this.from) | 0; + result = imul(result, 31) + getStringHashCode(this.spmid) | 0; + result = imul(result, 31) + getStringHashCode(this.fromSpmid) | 0; + result = imul(result, 31) + (this.playerArgs == null ? 0 : this.playerArgs.hashCode()) | 0; + result = imul(result, 31) + (this.pagination == null ? 0 : this.pagination.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.sessionId) | 0; + result = imul(result, 31) + this.autoPlay.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.fromTrackId) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KRelatesFeedReq)) + return false; + var tmp0_other_with_cast = other instanceof KRelatesFeedReq ? other : THROW_CCE(); + if (!this.aid.equals(tmp0_other_with_cast.aid)) + return false; + if (!(this.bvid === tmp0_other_with_cast.bvid)) + return false; + if (!(this.from === tmp0_other_with_cast.from)) + return false; + if (!(this.spmid === tmp0_other_with_cast.spmid)) + return false; + if (!(this.fromSpmid === tmp0_other_with_cast.fromSpmid)) + return false; + if (!equals(this.playerArgs, tmp0_other_with_cast.playerArgs)) + return false; + if (!equals(this.pagination, tmp0_other_with_cast.pagination)) + return false; + if (!(this.sessionId === tmp0_other_with_cast.sessionId)) + return false; + if (!this.autoPlay.equals(tmp0_other_with_cast.autoPlay)) + return false; + if (!(this.fromTrackId === tmp0_other_with_cast.fromTrackId)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_v1_KRelatesFeedReq_stttrh_k$(seen1, aid, bvid, from, spmid, fromSpmid, playerArgs, pagination, sessionId, autoPlay, fromTrackId, serializationConstructorMarker) { + Companion_instance_418; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_405().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.aid = new Long(0, 0); + else + $this.aid = aid; + if (0 === (seen1 & 2)) + $this.bvid = ''; + else + $this.bvid = bvid; + if (0 === (seen1 & 4)) + $this.from = ''; + else + $this.from = from; + if (0 === (seen1 & 8)) + $this.spmid = ''; + else + $this.spmid = spmid; + if (0 === (seen1 & 16)) + $this.fromSpmid = ''; + else + $this.fromSpmid = fromSpmid; + if (0 === (seen1 & 32)) + $this.playerArgs = null; + else + $this.playerArgs = playerArgs; + if (0 === (seen1 & 64)) + $this.pagination = null; + else + $this.pagination = pagination; + if (0 === (seen1 & 128)) + $this.sessionId = ''; + else + $this.sessionId = sessionId; + if (0 === (seen1 & 256)) + $this.autoPlay = new Long(0, 0); + else + $this.autoPlay = autoPlay; + if (0 === (seen1 & 512)) + $this.fromTrackId = ''; + else + $this.fromTrackId = fromTrackId; + return $this; + } + } + class Companion_419 { + constructor() { + Companion_instance_419 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer($serializer_getInstance_243()), null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.viewunite.v1.RelatesFeedReply'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_406(); + } + } + class $serializer_406 { + constructor() { + $serializer_instance_406 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.v1.KRelatesFeedReply', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('relates', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('pagination', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_419().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0], get_nullable($serializer_getInstance_195())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp7_cached = Companion_getInstance_419().$childSerializers_1; + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp7_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_195(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp7_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_195(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KRelatesFeedReply.new_com_bapis_bilibili_app_viewunite_v1_KRelatesFeedReply_as5lv_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_d7n4tm_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_419().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.relates, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.relates); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.pagination == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_195(), value.pagination); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_d7n4tm_k$(encoder, value instanceof KRelatesFeedReply ? value : THROW_CCE()); + } + } + class KRelatesFeedReply { + constructor(relates, pagination) { + Companion_getInstance_419(); + relates = relates === VOID ? emptyList() : relates; + pagination = pagination === VOID ? null : pagination; + this.relates = relates; + this.pagination = pagination; + } + get_relates_jat07l_k$() { + return this.relates; + } + get_pagination_1aczdv_k$() { + return this.pagination; + } + component1_7eebsc_k$() { + return this.relates; + } + component2_7eebsb_k$() { + return this.pagination; + } + copy_ap54jp_k$(relates, pagination) { + return new KRelatesFeedReply(relates, pagination); + } + copy(relates, pagination, $super) { + relates = relates === VOID ? this.relates : relates; + pagination = pagination === VOID ? this.pagination : pagination; + return this.copy_ap54jp_k$(relates, pagination); + } + toString() { + return 'KRelatesFeedReply(relates=' + this.relates + ', pagination=' + this.pagination + ')'; + } + hashCode() { + var result = hashCode(this.relates); + result = imul(result, 31) + (this.pagination == null ? 0 : this.pagination.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KRelatesFeedReply)) + return false; + var tmp0_other_with_cast = other instanceof KRelatesFeedReply ? other : THROW_CCE(); + if (!equals(this.relates, tmp0_other_with_cast.relates)) + return false; + if (!equals(this.pagination, tmp0_other_with_cast.pagination)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_v1_KRelatesFeedReply_as5lv_k$(seen1, relates, pagination, serializationConstructorMarker) { + Companion_getInstance_419(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_406().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.relates = emptyList(); + else + $this.relates = relates; + if (0 === (seen1 & 2)) + $this.pagination = null; + else + $this.pagination = pagination; + return $this; + } + } + class Companion_420 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.v1.ArcRefreshReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_407(); + } + } + class $serializer_407 { + constructor() { + $serializer_instance_407 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.v1.KArcRefreshReq', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('aid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('bvid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_local2 = 0; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KArcRefreshReq.new_com_bapis_bilibili_app_viewunite_v1_KArcRefreshReq_bmbwv8_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_sbemgn_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.aid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.aid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.bvid === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.bvid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.type === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.type); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_sbemgn_k$(encoder, value instanceof KArcRefreshReq ? value : THROW_CCE()); + } + } + class KArcRefreshReq { + constructor(aid, bvid, type) { + Companion_instance_420; + aid = aid === VOID ? new Long(0, 0) : aid; + bvid = bvid === VOID ? '' : bvid; + type = type === VOID ? 0 : type; + this.aid = aid; + this.bvid = bvid; + this.type = type; + } + get_aid_18j9kd_k$() { + return this.aid; + } + get_bvid_wojq9k_k$() { + return this.bvid; + } + get_type_wovaf7_k$() { + return this.type; + } + typeEnum() { + return Companion_getInstance_415().fromValue(this.type); + } + component1_7eebsc_k$() { + return this.aid; + } + component2_7eebsb_k$() { + return this.bvid; + } + component3_7eebsa_k$() { + return this.type; + } + copy_ay2fe7_k$(aid, bvid, type) { + return new KArcRefreshReq(aid, bvid, type); + } + copy(aid, bvid, type, $super) { + aid = aid === VOID ? this.aid : aid; + bvid = bvid === VOID ? this.bvid : bvid; + type = type === VOID ? this.type : type; + return this.copy_ay2fe7_k$(aid, bvid, type); + } + toString() { + return 'KArcRefreshReq(aid=' + this.aid.toString() + ', bvid=' + this.bvid + ', type=' + this.type + ')'; + } + hashCode() { + var result = this.aid.hashCode(); + result = imul(result, 31) + getStringHashCode(this.bvid) | 0; + result = imul(result, 31) + this.type | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KArcRefreshReq)) + return false; + var tmp0_other_with_cast = other instanceof KArcRefreshReq ? other : THROW_CCE(); + if (!this.aid.equals(tmp0_other_with_cast.aid)) + return false; + if (!(this.bvid === tmp0_other_with_cast.bvid)) + return false; + if (!(this.type === tmp0_other_with_cast.type)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_v1_KArcRefreshReq_bmbwv8_k$(seen1, aid, bvid, type, serializationConstructorMarker) { + Companion_instance_420; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_407().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.aid = new Long(0, 0); + else + $this.aid = aid; + if (0 === (seen1 & 2)) + $this.bvid = ''; + else + $this.bvid = bvid; + if (0 === (seen1 & 4)) + $this.type = 0; + else + $this.type = type; + return $this; + } + } + class Companion_421 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.v1.ArcRefreshReply'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_408(); + } + } + class $serializer_408 { + constructor() { + $serializer_instance_408 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.v1.KArcRefreshReply', this, 6); + tmp0_serialDesc.addElement_5pzumi_k$('stat', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('reqUser', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('arc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('online', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('likeConfig', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('owner', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_387()), get_nullable($serializer_getInstance_412()), get_nullable($serializer_getInstance_411()), get_nullable($serializer_getInstance_437()), get_nullable($serializer_getInstance_410()), get_nullable($serializer_getInstance_409())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp10_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_387(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_412(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_411(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_437(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_410(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_409(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + } else + while (tmp1_flag) { + tmp2_index = tmp10_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_387(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_412(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_411(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_437(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_410(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_409(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp10_input.endStructure_1xqz0n_k$(tmp0_desc); + return KArcRefreshReply.new_com_bapis_bilibili_app_viewunite_v1_KArcRefreshReply_armzgp_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); + } + serialize_y27p4t_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.stat == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_387(), value.stat); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.reqUser == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_412(), value.reqUser); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.arc == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_411(), value.arc); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.online == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_437(), value.online); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.likeConfig == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, $serializer_getInstance_410(), value.likeConfig); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.owner == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 5, $serializer_getInstance_409(), value.owner); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_y27p4t_k$(encoder, value instanceof KArcRefreshReply ? value : THROW_CCE()); + } + } + class KArcRefreshReply { + constructor(stat, reqUser, arc, online, likeConfig, owner) { + Companion_instance_421; + stat = stat === VOID ? null : stat; + reqUser = reqUser === VOID ? null : reqUser; + arc = arc === VOID ? null : arc; + online = online === VOID ? null : online; + likeConfig = likeConfig === VOID ? null : likeConfig; + owner = owner === VOID ? null : owner; + this.stat = stat; + this.reqUser = reqUser; + this.arc = arc; + this.online = online; + this.likeConfig = likeConfig; + this.owner = owner; + } + get_stat_woujdp_k$() { + return this.stat; + } + get_reqUser_jdcalc_k$() { + return this.reqUser; + } + get_arc_18j9cn_k$() { + return this.arc; + } + get_online_ho4pr0_k$() { + return this.online; + } + get_likeConfig_ood2ki_k$() { + return this.likeConfig; + } + get_owner_iwkx3e_k$() { + return this.owner; + } + component1_7eebsc_k$() { + return this.stat; + } + component2_7eebsb_k$() { + return this.reqUser; + } + component3_7eebsa_k$() { + return this.arc; + } + component4_7eebs9_k$() { + return this.online; + } + component5_7eebs8_k$() { + return this.likeConfig; + } + component6_7eebs7_k$() { + return this.owner; + } + copy_p7x5ql_k$(stat, reqUser, arc, online, likeConfig, owner) { + return new KArcRefreshReply(stat, reqUser, arc, online, likeConfig, owner); + } + copy(stat, reqUser, arc, online, likeConfig, owner, $super) { + stat = stat === VOID ? this.stat : stat; + reqUser = reqUser === VOID ? this.reqUser : reqUser; + arc = arc === VOID ? this.arc : arc; + online = online === VOID ? this.online : online; + likeConfig = likeConfig === VOID ? this.likeConfig : likeConfig; + owner = owner === VOID ? this.owner : owner; + return this.copy_p7x5ql_k$(stat, reqUser, arc, online, likeConfig, owner); + } + toString() { + return 'KArcRefreshReply(stat=' + this.stat + ', reqUser=' + this.reqUser + ', arc=' + this.arc + ', online=' + this.online + ', likeConfig=' + this.likeConfig + ', owner=' + this.owner + ')'; + } + hashCode() { + var result = this.stat == null ? 0 : this.stat.hashCode(); + result = imul(result, 31) + (this.reqUser == null ? 0 : this.reqUser.hashCode()) | 0; + result = imul(result, 31) + (this.arc == null ? 0 : this.arc.hashCode()) | 0; + result = imul(result, 31) + (this.online == null ? 0 : this.online.hashCode()) | 0; + result = imul(result, 31) + (this.likeConfig == null ? 0 : this.likeConfig.hashCode()) | 0; + result = imul(result, 31) + (this.owner == null ? 0 : this.owner.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KArcRefreshReply)) + return false; + var tmp0_other_with_cast = other instanceof KArcRefreshReply ? other : THROW_CCE(); + if (!equals(this.stat, tmp0_other_with_cast.stat)) + return false; + if (!equals(this.reqUser, tmp0_other_with_cast.reqUser)) + return false; + if (!equals(this.arc, tmp0_other_with_cast.arc)) + return false; + if (!equals(this.online, tmp0_other_with_cast.online)) + return false; + if (!equals(this.likeConfig, tmp0_other_with_cast.likeConfig)) + return false; + if (!equals(this.owner, tmp0_other_with_cast.owner)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_v1_KArcRefreshReply_armzgp_k$(seen1, stat, reqUser, arc, online, likeConfig, owner, serializationConstructorMarker) { + Companion_instance_421; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_408().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.stat = null; + else + $this.stat = stat; + if (0 === (seen1 & 2)) + $this.reqUser = null; + else + $this.reqUser = reqUser; + if (0 === (seen1 & 4)) + $this.arc = null; + else + $this.arc = arc; + if (0 === (seen1 & 8)) + $this.online = null; + else + $this.online = online; + if (0 === (seen1 & 16)) + $this.likeConfig = null; + else + $this.likeConfig = likeConfig; + if (0 === (seen1 & 32)) + $this.owner = null; + else + $this.owner = owner; + return $this; + } + } + class Companion_422 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.v1.SimpleOwner'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_409(); + } + } + class $serializer_409 { + constructor() { + $serializer_instance_409 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.v1.KSimpleOwner', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('attentionRelation', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSimpleOwner.new_com_bapis_bilibili_app_viewunite_v1_KSimpleOwner_i5ivfd_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_69fnfn_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.attentionRelation === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.attentionRelation); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_69fnfn_k$(encoder, value instanceof KSimpleOwner ? value : THROW_CCE()); + } + } + class KSimpleOwner { + constructor(attentionRelation) { + Companion_instance_422; + attentionRelation = attentionRelation === VOID ? 0 : attentionRelation; + this.attentionRelation = attentionRelation; + } + get_attentionRelation_hjl7cf_k$() { + return this.attentionRelation; + } + attentionRelationEnum() { + return Companion_getInstance_221().fromValue(this.attentionRelation); + } + component1_7eebsc_k$() { + return this.attentionRelation; + } + copy_ns6qmb_k$(attentionRelation) { + return new KSimpleOwner(attentionRelation); + } + copy(attentionRelation, $super) { + attentionRelation = attentionRelation === VOID ? this.attentionRelation : attentionRelation; + return this.copy_ns6qmb_k$(attentionRelation); + } + toString() { + return 'KSimpleOwner(attentionRelation=' + this.attentionRelation + ')'; + } + hashCode() { + return this.attentionRelation; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSimpleOwner)) + return false; + var tmp0_other_with_cast = other instanceof KSimpleOwner ? other : THROW_CCE(); + if (!(this.attentionRelation === tmp0_other_with_cast.attentionRelation)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_v1_KSimpleOwner_i5ivfd_k$(seen1, attentionRelation, serializationConstructorMarker) { + Companion_instance_422; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_409().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.attentionRelation = 0; + else + $this.attentionRelation = attentionRelation; + return $this; + } + } + class Companion_423 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.v1.LikeConfig'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_410(); + } + } + class $serializer_410 { + constructor() { + $serializer_instance_410 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.v1.KLikeConfig', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('tripleLike', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('likeAnimation', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_383()), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_383(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_383(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KLikeConfig.new_com_bapis_bilibili_app_viewunite_v1_KLikeConfig_lg54e5_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_orfhvz_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.tripleLike == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_383(), value.tripleLike); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.likeAnimation === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.likeAnimation); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_orfhvz_k$(encoder, value instanceof KLikeConfig ? value : THROW_CCE()); + } + } + class KLikeConfig { + constructor(tripleLike, likeAnimation) { + Companion_instance_423; + tripleLike = tripleLike === VOID ? null : tripleLike; + likeAnimation = likeAnimation === VOID ? '' : likeAnimation; + this.tripleLike = tripleLike; + this.likeAnimation = likeAnimation; + } + get_tripleLike_58jnmq_k$() { + return this.tripleLike; + } + get_likeAnimation_7234p0_k$() { + return this.likeAnimation; + } + component1_7eebsc_k$() { + return this.tripleLike; + } + component2_7eebsb_k$() { + return this.likeAnimation; + } + copy_lpdv3c_k$(tripleLike, likeAnimation) { + return new KLikeConfig(tripleLike, likeAnimation); + } + copy(tripleLike, likeAnimation, $super) { + tripleLike = tripleLike === VOID ? this.tripleLike : tripleLike; + likeAnimation = likeAnimation === VOID ? this.likeAnimation : likeAnimation; + return this.copy_lpdv3c_k$(tripleLike, likeAnimation); + } + toString() { + return 'KLikeConfig(tripleLike=' + this.tripleLike + ', likeAnimation=' + this.likeAnimation + ')'; + } + hashCode() { + var result = this.tripleLike == null ? 0 : this.tripleLike.hashCode(); + result = imul(result, 31) + getStringHashCode(this.likeAnimation) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KLikeConfig)) + return false; + var tmp0_other_with_cast = other instanceof KLikeConfig ? other : THROW_CCE(); + if (!equals(this.tripleLike, tmp0_other_with_cast.tripleLike)) + return false; + if (!(this.likeAnimation === tmp0_other_with_cast.likeAnimation)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_v1_KLikeConfig_lg54e5_k$(seen1, tripleLike, likeAnimation, serializationConstructorMarker) { + Companion_instance_423; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_410().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.tripleLike = null; + else + $this.tripleLike = tripleLike; + if (0 === (seen1 & 2)) + $this.likeAnimation = ''; + else + $this.likeAnimation = likeAnimation; + return $this; + } + } + class Companion_424 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.v1.SimpleArc'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_411(); + } + } + class $serializer_411 { + constructor() { + $serializer_instance_411 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.v1.KSimpleArc', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('copyright', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSimpleArc.new_com_bapis_bilibili_app_viewunite_v1_KSimpleArc_13zpbu_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_bzgsf2_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.copyright === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.copyright); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_bzgsf2_k$(encoder, value instanceof KSimpleArc ? value : THROW_CCE()); + } + } + class KSimpleArc { + constructor(copyright) { + Companion_instance_424; + copyright = copyright === VOID ? 0 : copyright; + this.copyright = copyright; + } + get_copyright_xp7me6_k$() { + return this.copyright; + } + component1_7eebsc_k$() { + return this.copyright; + } + copy_ns6qmb_k$(copyright) { + return new KSimpleArc(copyright); + } + copy(copyright, $super) { + copyright = copyright === VOID ? this.copyright : copyright; + return this.copy_ns6qmb_k$(copyright); + } + toString() { + return 'KSimpleArc(copyright=' + this.copyright + ')'; + } + hashCode() { + return this.copyright; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSimpleArc)) + return false; + var tmp0_other_with_cast = other instanceof KSimpleArc ? other : THROW_CCE(); + if (!(this.copyright === tmp0_other_with_cast.copyright)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_v1_KSimpleArc_13zpbu_k$(seen1, copyright, serializationConstructorMarker) { + Companion_instance_424; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_411().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.copyright = 0; + else + $this.copyright = copyright; + return $this; + } + } + class Companion_425 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.v1.SimpleReqUser'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_412(); + } + } + class $serializer_412 { + constructor() { + $serializer_instance_412 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.v1.KSimpleReqUser', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('favorite', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('like', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('coin', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = 0; + var tmp6_local2 = 0; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSimpleReqUser.new_com_bapis_bilibili_app_viewunite_v1_KSimpleReqUser_r7pim5_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_m9ij7r_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.favorite === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.favorite); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.like === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.like); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.coin === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.coin); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_m9ij7r_k$(encoder, value instanceof KSimpleReqUser ? value : THROW_CCE()); + } + } + class KSimpleReqUser { + constructor(favorite, like, coin) { + Companion_instance_425; + favorite = favorite === VOID ? 0 : favorite; + like = like === VOID ? 0 : like; + coin = coin === VOID ? 0 : coin; + this.favorite = favorite; + this.like = like; + this.coin = coin; + } + get_favorite_efbnob_k$() { + return this.favorite; + } + get_like_wopujk_k$() { + return this.like; + } + get_coin_wok82i_k$() { + return this.coin; + } + component1_7eebsc_k$() { + return this.favorite; + } + component2_7eebsb_k$() { + return this.like; + } + component3_7eebsa_k$() { + return this.coin; + } + copy_6of2tf_k$(favorite, like, coin) { + return new KSimpleReqUser(favorite, like, coin); + } + copy(favorite, like, coin, $super) { + favorite = favorite === VOID ? this.favorite : favorite; + like = like === VOID ? this.like : like; + coin = coin === VOID ? this.coin : coin; + return this.copy_6of2tf_k$(favorite, like, coin); + } + toString() { + return 'KSimpleReqUser(favorite=' + this.favorite + ', like=' + this.like + ', coin=' + this.coin + ')'; + } + hashCode() { + var result = this.favorite; + result = imul(result, 31) + this.like | 0; + result = imul(result, 31) + this.coin | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSimpleReqUser)) + return false; + var tmp0_other_with_cast = other instanceof KSimpleReqUser ? other : THROW_CCE(); + if (!(this.favorite === tmp0_other_with_cast.favorite)) + return false; + if (!(this.like === tmp0_other_with_cast.like)) + return false; + if (!(this.coin === tmp0_other_with_cast.coin)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_v1_KSimpleReqUser_r7pim5_k$(seen1, favorite, like, coin, serializationConstructorMarker) { + Companion_instance_425; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_412().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.favorite = 0; + else + $this.favorite = favorite; + if (0 === (seen1 & 2)) + $this.like = 0; + else + $this.like = like; + if (0 === (seen1 & 4)) + $this.coin = 0; + else + $this.coin = coin; + return $this; + } + } + class Companion_426 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.v1.ViewReq.ExtraContentEntry'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_413(); + } + } + class $serializer_413 { + constructor() { + $serializer_instance_413 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.v1.KViewReq.KExtraContentEntry', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('key', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('value', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KExtraContentEntry_0.new_com_bapis_bilibili_app_viewunite_v1_KViewReq_KExtraContentEntry_718uz8_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_xz6itx_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.key === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.key); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.value === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.value); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_xz6itx_k$(encoder, value instanceof KExtraContentEntry_0 ? value : THROW_CCE()); + } + } + class KExtraContentEntry_0 { + constructor(key, value) { + Companion_instance_426; + key = key === VOID ? '' : key; + value = value === VOID ? '' : value; + this.key = key; + this.value = value; + } + get_key_18j28a_k$() { + return this.key; + } + get_value_j01efc_k$() { + return this.value; + } + component1_7eebsc_k$() { + return this.key; + } + component2_7eebsb_k$() { + return this.value; + } + copy_plwnsl_k$(key, value) { + return new KExtraContentEntry_0(key, value); + } + copy(key, value, $super) { + key = key === VOID ? this.key : key; + value = value === VOID ? this.value : value; + return this.copy_plwnsl_k$(key, value); + } + toString() { + return 'KExtraContentEntry(key=' + this.key + ', value=' + this.value + ')'; + } + hashCode() { + var result = getStringHashCode(this.key); + result = imul(result, 31) + getStringHashCode(this.value) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KExtraContentEntry_0)) + return false; + var tmp0_other_with_cast = other instanceof KExtraContentEntry_0 ? other : THROW_CCE(); + if (!(this.key === tmp0_other_with_cast.key)) + return false; + if (!(this.value === tmp0_other_with_cast.value)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_v1_KViewReq_KExtraContentEntry_718uz8_k$(seen1, key, value, serializationConstructorMarker) { + Companion_instance_426; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_413().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.key = ''; + else + $this.key = key; + if (0 === (seen1 & 2)) + $this.value = ''; + else + $this.value = value; + return $this; + } + } + class Companion_427 { + constructor() { + Companion_instance_427 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, null, null, null, null, null, new LinkedHashMapSerializer(StringSerializer_getInstance(), StringSerializer_getInstance()), null, null, null, null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.viewunite.v1.ViewReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_414(); + } + } + class $serializer_414 { + constructor() { + $serializer_instance_414 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.v1.KViewReq', this, 14); + tmp0_serialDesc.addElement_5pzumi_k$('aid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('bvid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('from', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('spmid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('fromSpmid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('sessionId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('playerArgs', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('trackId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('extraContent', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('playMode', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('relate', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('bizExtra', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + tmp0_serialDesc.addElement_5pzumi_k$('adExtra', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(13)); + tmp0_serialDesc.addElement_5pzumi_k$('fromScene', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(14)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_427().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_152()), StringSerializer_getInstance(), tmp0_cached[8], StringSerializer_getInstance(), get_nullable($serializer_getInstance_415()), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_local8 = null; + var tmp13_local9 = null; + var tmp14_local10 = null; + var tmp15_local11 = null; + var tmp16_local12 = null; + var tmp17_local13 = null; + var tmp18_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp19_cached = Companion_getInstance_427().$childSerializers_1; + if (tmp18_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_152(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp18_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 8, tmp19_cached[8], tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 10, $serializer_getInstance_415(), tmp14_local10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + tmp16_local12 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + tmp17_local13 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + } else + while (tmp1_flag) { + tmp2_index = tmp18_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_152(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp18_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 8, tmp19_cached[8], tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 10, $serializer_getInstance_415(), tmp14_local10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + case 12: + tmp16_local12 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + break; + case 13: + tmp17_local13 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp18_input.endStructure_1xqz0n_k$(tmp0_desc); + return KViewReq.new_com_bapis_bilibili_app_viewunite_v1_KViewReq_9ynwji_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, null); + } + serialize_go0hol_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_427().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.aid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.aid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.bvid === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.bvid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.from === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.from); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.spmid === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.spmid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.fromSpmid === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.fromSpmid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.sessionId === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.sessionId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.playerArgs == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 6, $serializer_getInstance_152(), value.playerArgs); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.trackId === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.trackId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !equals(value.extraContent, emptyMap())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 8, tmp2_cached[8], value.extraContent); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.playMode === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 9, value.playMode); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.relate == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 10, $serializer_getInstance_415(), value.relate); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.bizExtra === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 11, value.bizExtra); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !(value.adExtra === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 12, value.adExtra); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 13) ? true : !(value.fromScene === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 13, value.fromScene); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_go0hol_k$(encoder, value instanceof KViewReq ? value : THROW_CCE()); + } + } + class KViewReq { + constructor(aid, bvid, from, spmid, fromSpmid, sessionId, playerArgs, trackId, extraContent, playMode, relate, bizExtra, adExtra, fromScene) { + Companion_getInstance_427(); + aid = aid === VOID ? new Long(0, 0) : aid; + bvid = bvid === VOID ? '' : bvid; + from = from === VOID ? '' : from; + spmid = spmid === VOID ? '' : spmid; + fromSpmid = fromSpmid === VOID ? '' : fromSpmid; + sessionId = sessionId === VOID ? '' : sessionId; + playerArgs = playerArgs === VOID ? null : playerArgs; + trackId = trackId === VOID ? '' : trackId; + extraContent = extraContent === VOID ? emptyMap() : extraContent; + playMode = playMode === VOID ? '' : playMode; + relate = relate === VOID ? null : relate; + bizExtra = bizExtra === VOID ? '' : bizExtra; + adExtra = adExtra === VOID ? '' : adExtra; + fromScene = fromScene === VOID ? '' : fromScene; + this.aid = aid; + this.bvid = bvid; + this.from = from; + this.spmid = spmid; + this.fromSpmid = fromSpmid; + this.sessionId = sessionId; + this.playerArgs = playerArgs; + this.trackId = trackId; + this.extraContent = extraContent; + this.playMode = playMode; + this.relate = relate; + this.bizExtra = bizExtra; + this.adExtra = adExtra; + this.fromScene = fromScene; + } + get_aid_18j9kd_k$() { + return this.aid; + } + get_bvid_wojq9k_k$() { + return this.bvid; + } + get_from_wom7eb_k$() { + return this.from; + } + get_spmid_iynlwi_k$() { + return this.spmid; + } + get_fromSpmid_9nw788_k$() { + return this.fromSpmid; + } + get_sessionId_ike088_k$() { + return this.sessionId; + } + get_playerArgs_eh86hz_k$() { + return this.playerArgs; + } + get_trackId_gdy23n_k$() { + return this.trackId; + } + get_extraContent_ts1v1q_k$() { + return this.extraContent; + } + get_playMode_qhr9c_k$() { + return this.playMode; + } + get_relate_iyb9sy_k$() { + return this.relate; + } + get_bizExtra_b1g3ga_k$() { + return this.bizExtra; + } + get_adExtra_i6ok70_k$() { + return this.adExtra; + } + get_fromScene_9nnql5_k$() { + return this.fromScene; + } + component1_7eebsc_k$() { + return this.aid; + } + component2_7eebsb_k$() { + return this.bvid; + } + component3_7eebsa_k$() { + return this.from; + } + component4_7eebs9_k$() { + return this.spmid; + } + component5_7eebs8_k$() { + return this.fromSpmid; + } + component6_7eebs7_k$() { + return this.sessionId; + } + component7_7eebs6_k$() { + return this.playerArgs; + } + component8_7eebs5_k$() { + return this.trackId; + } + component9_7eebs4_k$() { + return this.extraContent; + } + component10_gazzfo_k$() { + return this.playMode; + } + component11_gazzfn_k$() { + return this.relate; + } + component12_gazzfm_k$() { + return this.bizExtra; + } + component13_gazzfl_k$() { + return this.adExtra; + } + component14_gazzfk_k$() { + return this.fromScene; + } + copy_82dgdh_k$(aid, bvid, from, spmid, fromSpmid, sessionId, playerArgs, trackId, extraContent, playMode, relate, bizExtra, adExtra, fromScene) { + return new KViewReq(aid, bvid, from, spmid, fromSpmid, sessionId, playerArgs, trackId, extraContent, playMode, relate, bizExtra, adExtra, fromScene); + } + copy(aid, bvid, from, spmid, fromSpmid, sessionId, playerArgs, trackId, extraContent, playMode, relate, bizExtra, adExtra, fromScene, $super) { + aid = aid === VOID ? this.aid : aid; + bvid = bvid === VOID ? this.bvid : bvid; + from = from === VOID ? this.from : from; + spmid = spmid === VOID ? this.spmid : spmid; + fromSpmid = fromSpmid === VOID ? this.fromSpmid : fromSpmid; + sessionId = sessionId === VOID ? this.sessionId : sessionId; + playerArgs = playerArgs === VOID ? this.playerArgs : playerArgs; + trackId = trackId === VOID ? this.trackId : trackId; + extraContent = extraContent === VOID ? this.extraContent : extraContent; + playMode = playMode === VOID ? this.playMode : playMode; + relate = relate === VOID ? this.relate : relate; + bizExtra = bizExtra === VOID ? this.bizExtra : bizExtra; + adExtra = adExtra === VOID ? this.adExtra : adExtra; + fromScene = fromScene === VOID ? this.fromScene : fromScene; + return this.copy_82dgdh_k$(aid, bvid, from, spmid, fromSpmid, sessionId, playerArgs, trackId, extraContent, playMode, relate, bizExtra, adExtra, fromScene); + } + toString() { + return 'KViewReq(aid=' + this.aid.toString() + ', bvid=' + this.bvid + ', from=' + this.from + ', spmid=' + this.spmid + ', fromSpmid=' + this.fromSpmid + ', sessionId=' + this.sessionId + ', playerArgs=' + this.playerArgs + ', trackId=' + this.trackId + ', extraContent=' + this.extraContent + ', playMode=' + this.playMode + ', relate=' + this.relate + ', bizExtra=' + this.bizExtra + ', adExtra=' + this.adExtra + ', fromScene=' + this.fromScene + ')'; + } + hashCode() { + var result = this.aid.hashCode(); + result = imul(result, 31) + getStringHashCode(this.bvid) | 0; + result = imul(result, 31) + getStringHashCode(this.from) | 0; + result = imul(result, 31) + getStringHashCode(this.spmid) | 0; + result = imul(result, 31) + getStringHashCode(this.fromSpmid) | 0; + result = imul(result, 31) + getStringHashCode(this.sessionId) | 0; + result = imul(result, 31) + (this.playerArgs == null ? 0 : this.playerArgs.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.trackId) | 0; + result = imul(result, 31) + hashCode(this.extraContent) | 0; + result = imul(result, 31) + getStringHashCode(this.playMode) | 0; + result = imul(result, 31) + (this.relate == null ? 0 : this.relate.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.bizExtra) | 0; + result = imul(result, 31) + getStringHashCode(this.adExtra) | 0; + result = imul(result, 31) + getStringHashCode(this.fromScene) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KViewReq)) + return false; + var tmp0_other_with_cast = other instanceof KViewReq ? other : THROW_CCE(); + if (!this.aid.equals(tmp0_other_with_cast.aid)) + return false; + if (!(this.bvid === tmp0_other_with_cast.bvid)) + return false; + if (!(this.from === tmp0_other_with_cast.from)) + return false; + if (!(this.spmid === tmp0_other_with_cast.spmid)) + return false; + if (!(this.fromSpmid === tmp0_other_with_cast.fromSpmid)) + return false; + if (!(this.sessionId === tmp0_other_with_cast.sessionId)) + return false; + if (!equals(this.playerArgs, tmp0_other_with_cast.playerArgs)) + return false; + if (!(this.trackId === tmp0_other_with_cast.trackId)) + return false; + if (!equals(this.extraContent, tmp0_other_with_cast.extraContent)) + return false; + if (!(this.playMode === tmp0_other_with_cast.playMode)) + return false; + if (!equals(this.relate, tmp0_other_with_cast.relate)) + return false; + if (!(this.bizExtra === tmp0_other_with_cast.bizExtra)) + return false; + if (!(this.adExtra === tmp0_other_with_cast.adExtra)) + return false; + if (!(this.fromScene === tmp0_other_with_cast.fromScene)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_v1_KViewReq_9ynwji_k$(seen1, aid, bvid, from, spmid, fromSpmid, sessionId, playerArgs, trackId, extraContent, playMode, relate, bizExtra, adExtra, fromScene, serializationConstructorMarker) { + Companion_getInstance_427(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_414().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.aid = new Long(0, 0); + else + $this.aid = aid; + if (0 === (seen1 & 2)) + $this.bvid = ''; + else + $this.bvid = bvid; + if (0 === (seen1 & 4)) + $this.from = ''; + else + $this.from = from; + if (0 === (seen1 & 8)) + $this.spmid = ''; + else + $this.spmid = spmid; + if (0 === (seen1 & 16)) + $this.fromSpmid = ''; + else + $this.fromSpmid = fromSpmid; + if (0 === (seen1 & 32)) + $this.sessionId = ''; + else + $this.sessionId = sessionId; + if (0 === (seen1 & 64)) + $this.playerArgs = null; + else + $this.playerArgs = playerArgs; + if (0 === (seen1 & 128)) + $this.trackId = ''; + else + $this.trackId = trackId; + if (0 === (seen1 & 256)) + $this.extraContent = emptyMap(); + else + $this.extraContent = extraContent; + if (0 === (seen1 & 512)) + $this.playMode = ''; + else + $this.playMode = playMode; + if (0 === (seen1 & 1024)) + $this.relate = null; + else + $this.relate = relate; + if (0 === (seen1 & 2048)) + $this.bizExtra = ''; + else + $this.bizExtra = bizExtra; + if (0 === (seen1 & 4096)) + $this.adExtra = ''; + else + $this.adExtra = adExtra; + if (0 === (seen1 & 8192)) + $this.fromScene = ''; + else + $this.fromScene = fromScene; + return $this; + } + } + class Companion_428 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.v1.Relate'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_415(); + } + } + class $serializer_415 { + constructor() { + $serializer_instance_415 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.v1.KRelate', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('deviceType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('pagination', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), get_nullable($serializer_getInstance_195())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_195(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_195(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KRelate.new_com_bapis_bilibili_app_viewunite_v1_KRelate_aebbod_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_sdlexd_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.deviceType.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.deviceType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.pagination == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_195(), value.pagination); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_sdlexd_k$(encoder, value instanceof KRelate ? value : THROW_CCE()); + } + } + class KRelate { + constructor(deviceType, pagination) { + Companion_instance_428; + deviceType = deviceType === VOID ? new Long(0, 0) : deviceType; + pagination = pagination === VOID ? null : pagination; + this.deviceType = deviceType; + this.pagination = pagination; + } + get_deviceType_795fwn_k$() { + return this.deviceType; + } + get_pagination_1aczdv_k$() { + return this.pagination; + } + component1_7eebsc_k$() { + return this.deviceType; + } + component2_7eebsb_k$() { + return this.pagination; + } + copy_h93o5v_k$(deviceType, pagination) { + return new KRelate(deviceType, pagination); + } + copy(deviceType, pagination, $super) { + deviceType = deviceType === VOID ? this.deviceType : deviceType; + pagination = pagination === VOID ? this.pagination : pagination; + return this.copy_h93o5v_k$(deviceType, pagination); + } + toString() { + return 'KRelate(deviceType=' + this.deviceType.toString() + ', pagination=' + this.pagination + ')'; + } + hashCode() { + var result = this.deviceType.hashCode(); + result = imul(result, 31) + (this.pagination == null ? 0 : this.pagination.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KRelate)) + return false; + var tmp0_other_with_cast = other instanceof KRelate ? other : THROW_CCE(); + if (!this.deviceType.equals(tmp0_other_with_cast.deviceType)) + return false; + if (!equals(this.pagination, tmp0_other_with_cast.pagination)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_v1_KRelate_aebbod_k$(seen1, deviceType, pagination, serializationConstructorMarker) { + Companion_instance_428; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_415().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.deviceType = new Long(0, 0); + else + $this.deviceType = deviceType; + if (0 === (seen1 & 2)) + $this.pagination = null; + else + $this.pagination = pagination; + return $this; + } + } + class Companion_429 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.v1.ViewReply.ReportEntry'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_416(); + } + } + class $serializer_416 { + constructor() { + $serializer_instance_416 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.v1.KViewReply.KReportEntry', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('key', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('value', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KReportEntry_15.new_com_bapis_bilibili_app_viewunite_v1_KViewReply_KReportEntry_dm3qvx_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_6pyzsk_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.key === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.key); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.value === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.value); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_6pyzsk_k$(encoder, value instanceof KReportEntry_15 ? value : THROW_CCE()); + } + } + class KReportEntry_15 { + constructor(key, value) { + Companion_instance_429; + key = key === VOID ? '' : key; + value = value === VOID ? '' : value; + this.key = key; + this.value = value; + } + get_key_18j28a_k$() { + return this.key; + } + get_value_j01efc_k$() { + return this.value; + } + component1_7eebsc_k$() { + return this.key; + } + component2_7eebsb_k$() { + return this.value; + } + copy_plwnsl_k$(key, value) { + return new KReportEntry_15(key, value); + } + copy(key, value, $super) { + key = key === VOID ? this.key : key; + value = value === VOID ? this.value : value; + return this.copy_plwnsl_k$(key, value); + } + toString() { + return 'KReportEntry(key=' + this.key + ', value=' + this.value + ')'; + } + hashCode() { + var result = getStringHashCode(this.key); + result = imul(result, 31) + getStringHashCode(this.value) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KReportEntry_15)) + return false; + var tmp0_other_with_cast = other instanceof KReportEntry_15 ? other : THROW_CCE(); + if (!(this.key === tmp0_other_with_cast.key)) + return false; + if (!(this.value === tmp0_other_with_cast.value)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_v1_KViewReply_KReportEntry_dm3qvx_k$(seen1, key, value, serializationConstructorMarker) { + Companion_instance_429; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_416().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.key = ''; + else + $this.key = key; + if (0 === (seen1 & 2)) + $this.value = ''; + else + $this.value = value; + return $this; + } + } + class Companion_430 { + constructor() { + Companion_instance_430 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, null, null, null, null, null, null, new LinkedHashMapSerializer(StringSerializer_getInstance(), StringSerializer_getInstance())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.viewunite.v1.ViewReply'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_417(); + } + } + class $serializer_417 { + constructor() { + $serializer_instance_417 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.v1.KViewReply', this, 10); + tmp0_serialDesc.addElement_5pzumi_k$('viewBase', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('arc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('reqUser', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('owner', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('tab', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('supplement', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('cm', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('ecode', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('ecodeConfig', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('report', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_430().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_431()), get_nullable($serializer_getInstance_441()), get_nullable($serializer_getInstance_422()), get_nullable($serializer_getInstance_326()), get_nullable($serializer_getInstance_420()), get_nullable($serializer_getInstance()), get_nullable($serializer_getInstance_419()), IntSerializer_getInstance(), get_nullable($serializer_getInstance_418()), tmp0_cached[9]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = 0; + var tmp12_local8 = null; + var tmp13_local9 = null; + var tmp14_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp15_cached = Companion_getInstance_430().$childSerializers_1; + if (tmp14_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_431(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_441(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_422(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_326(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_420(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_419(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_418(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp14_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 9, tmp15_cached[9], tmp13_local9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + } else + while (tmp1_flag) { + tmp2_index = tmp14_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_431(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_441(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_422(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_326(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_420(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_419(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_418(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp14_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 9, tmp15_cached[9], tmp13_local9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp14_input.endStructure_1xqz0n_k$(tmp0_desc); + return KViewReply.new_com_bapis_bilibili_app_viewunite_v1_KViewReply_so3syt_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, null); + } + serialize_5r3xkp_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_430().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.viewBase == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_431(), value.viewBase); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.arc == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_441(), value.arc); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.reqUser == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_422(), value.reqUser); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.owner == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_326(), value.owner); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.tab == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, $serializer_getInstance_420(), value.tab); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.supplement == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 5, $serializer_getInstance(), value.supplement); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.cm == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 6, $serializer_getInstance_419(), value.cm); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.ecode === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 7, value.ecode); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.ecodeConfig == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 8, $serializer_getInstance_418(), value.ecodeConfig); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !equals(value.report, emptyMap())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 9, tmp2_cached[9], value.report); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_5r3xkp_k$(encoder, value instanceof KViewReply ? value : THROW_CCE()); + } + } + class KViewReply { + constructor(viewBase, arc, reqUser, owner, tab, supplement, cm, ecode, ecodeConfig, report) { + Companion_getInstance_430(); + viewBase = viewBase === VOID ? null : viewBase; + arc = arc === VOID ? null : arc; + reqUser = reqUser === VOID ? null : reqUser; + owner = owner === VOID ? null : owner; + tab = tab === VOID ? null : tab; + supplement = supplement === VOID ? null : supplement; + cm = cm === VOID ? null : cm; + ecode = ecode === VOID ? 0 : ecode; + ecodeConfig = ecodeConfig === VOID ? null : ecodeConfig; + report = report === VOID ? emptyMap() : report; + this.viewBase = viewBase; + this.arc = arc; + this.reqUser = reqUser; + this.owner = owner; + this.tab = tab; + this.supplement = supplement; + this.cm = cm; + this.ecode = ecode; + this.ecodeConfig = ecodeConfig; + this.report = report; + } + get_viewBase_c1aa01_k$() { + return this.viewBase; + } + get_arc_18j9cn_k$() { + return this.arc; + } + get_reqUser_jdcalc_k$() { + return this.reqUser; + } + get_owner_iwkx3e_k$() { + return this.owner; + } + get_tab_18ivo4_k$() { + return this.tab; + } + get_supplement_vy5k1q_k$() { + return this.supplement; + } + get_cm_knto25_k$() { + return this.cm; + } + get_ecode_iqq84p_k$() { + return this.ecode; + } + get_ecodeConfig_r8r4xh_k$() { + return this.ecodeConfig; + } + get_report_iye43h_k$() { + return this.report; + } + ecodeEnum() { + return Companion_getInstance_408().fromValue(this.ecode); + } + component1_7eebsc_k$() { + return this.viewBase; + } + component2_7eebsb_k$() { + return this.arc; + } + component3_7eebsa_k$() { + return this.reqUser; + } + component4_7eebs9_k$() { + return this.owner; + } + component5_7eebs8_k$() { + return this.tab; + } + component6_7eebs7_k$() { + return this.supplement; + } + component7_7eebs6_k$() { + return this.cm; + } + component8_7eebs5_k$() { + return this.ecode; + } + component9_7eebs4_k$() { + return this.ecodeConfig; + } + component10_gazzfo_k$() { + return this.report; + } + copy_tzbo0c_k$(viewBase, arc, reqUser, owner, tab, supplement, cm, ecode, ecodeConfig, report) { + return new KViewReply(viewBase, arc, reqUser, owner, tab, supplement, cm, ecode, ecodeConfig, report); + } + copy(viewBase, arc, reqUser, owner, tab, supplement, cm, ecode, ecodeConfig, report, $super) { + viewBase = viewBase === VOID ? this.viewBase : viewBase; + arc = arc === VOID ? this.arc : arc; + reqUser = reqUser === VOID ? this.reqUser : reqUser; + owner = owner === VOID ? this.owner : owner; + tab = tab === VOID ? this.tab : tab; + supplement = supplement === VOID ? this.supplement : supplement; + cm = cm === VOID ? this.cm : cm; + ecode = ecode === VOID ? this.ecode : ecode; + ecodeConfig = ecodeConfig === VOID ? this.ecodeConfig : ecodeConfig; + report = report === VOID ? this.report : report; + return this.copy_tzbo0c_k$(viewBase, arc, reqUser, owner, tab, supplement, cm, ecode, ecodeConfig, report); + } + toString() { + return 'KViewReply(viewBase=' + this.viewBase + ', arc=' + this.arc + ', reqUser=' + this.reqUser + ', owner=' + this.owner + ', tab=' + this.tab + ', supplement=' + this.supplement + ', cm=' + this.cm + ', ecode=' + this.ecode + ', ecodeConfig=' + this.ecodeConfig + ', report=' + this.report + ')'; + } + hashCode() { + var result = this.viewBase == null ? 0 : this.viewBase.hashCode(); + result = imul(result, 31) + (this.arc == null ? 0 : this.arc.hashCode()) | 0; + result = imul(result, 31) + (this.reqUser == null ? 0 : this.reqUser.hashCode()) | 0; + result = imul(result, 31) + (this.owner == null ? 0 : this.owner.hashCode()) | 0; + result = imul(result, 31) + (this.tab == null ? 0 : this.tab.hashCode()) | 0; + result = imul(result, 31) + (this.supplement == null ? 0 : this.supplement.hashCode()) | 0; + result = imul(result, 31) + (this.cm == null ? 0 : this.cm.hashCode()) | 0; + result = imul(result, 31) + this.ecode | 0; + result = imul(result, 31) + (this.ecodeConfig == null ? 0 : this.ecodeConfig.hashCode()) | 0; + result = imul(result, 31) + hashCode(this.report) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KViewReply)) + return false; + var tmp0_other_with_cast = other instanceof KViewReply ? other : THROW_CCE(); + if (!equals(this.viewBase, tmp0_other_with_cast.viewBase)) + return false; + if (!equals(this.arc, tmp0_other_with_cast.arc)) + return false; + if (!equals(this.reqUser, tmp0_other_with_cast.reqUser)) + return false; + if (!equals(this.owner, tmp0_other_with_cast.owner)) + return false; + if (!equals(this.tab, tmp0_other_with_cast.tab)) + return false; + if (!equals(this.supplement, tmp0_other_with_cast.supplement)) + return false; + if (!equals(this.cm, tmp0_other_with_cast.cm)) + return false; + if (!(this.ecode === tmp0_other_with_cast.ecode)) + return false; + if (!equals(this.ecodeConfig, tmp0_other_with_cast.ecodeConfig)) + return false; + if (!equals(this.report, tmp0_other_with_cast.report)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_v1_KViewReply_so3syt_k$(seen1, viewBase, arc, reqUser, owner, tab, supplement, cm, ecode, ecodeConfig, report, serializationConstructorMarker) { + Companion_getInstance_430(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_417().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.viewBase = null; + else + $this.viewBase = viewBase; + if (0 === (seen1 & 2)) + $this.arc = null; + else + $this.arc = arc; + if (0 === (seen1 & 4)) + $this.reqUser = null; + else + $this.reqUser = reqUser; + if (0 === (seen1 & 8)) + $this.owner = null; + else + $this.owner = owner; + if (0 === (seen1 & 16)) + $this.tab = null; + else + $this.tab = tab; + if (0 === (seen1 & 32)) + $this.supplement = null; + else + $this.supplement = supplement; + if (0 === (seen1 & 64)) + $this.cm = null; + else + $this.cm = cm; + if (0 === (seen1 & 128)) + $this.ecode = 0; + else + $this.ecode = ecode; + if (0 === (seen1 & 256)) + $this.ecodeConfig = null; + else + $this.ecodeConfig = ecodeConfig; + if (0 === (seen1 & 512)) + $this.report = emptyMap(); + else + $this.report = report; + return $this; + } + } + class Companion_431 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.v1.ECodeConfig'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_418(); + } + } + class $serializer_418 { + constructor() { + $serializer_instance_418 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.v1.KECodeConfig', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('redirectUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KECodeConfig.new_com_bapis_bilibili_app_viewunite_v1_KECodeConfig_eepmm7_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_4ahzau_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.redirectUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.redirectUrl); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_4ahzau_k$(encoder, value instanceof KECodeConfig ? value : THROW_CCE()); + } + } + class KECodeConfig { + constructor(redirectUrl) { + Companion_instance_431; + redirectUrl = redirectUrl === VOID ? '' : redirectUrl; + this.redirectUrl = redirectUrl; + } + get_redirectUrl_ojtmra_k$() { + return this.redirectUrl; + } + component1_7eebsc_k$() { + return this.redirectUrl; + } + copy_a35qlh_k$(redirectUrl) { + return new KECodeConfig(redirectUrl); + } + copy(redirectUrl, $super) { + redirectUrl = redirectUrl === VOID ? this.redirectUrl : redirectUrl; + return this.copy_a35qlh_k$(redirectUrl); + } + toString() { + return 'KECodeConfig(redirectUrl=' + this.redirectUrl + ')'; + } + hashCode() { + return getStringHashCode(this.redirectUrl); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KECodeConfig)) + return false; + var tmp0_other_with_cast = other instanceof KECodeConfig ? other : THROW_CCE(); + if (!(this.redirectUrl === tmp0_other_with_cast.redirectUrl)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_v1_KECodeConfig_eepmm7_k$(seen1, redirectUrl, serializationConstructorMarker) { + Companion_instance_431; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_418().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.redirectUrl = ''; + else + $this.redirectUrl = redirectUrl; + return $this; + } + } + class Companion_432 { + constructor() { + Companion_instance_432 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, new ArrayListSerializer($serializer_getInstance())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.viewunite.v1.CM'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_419(); + } + } + class $serializer_419 { + constructor() { + $serializer_instance_419 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.v1.KCM', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('cmUnderPlayer', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('adsControl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('sourceContent', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_432().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance()), get_nullable($serializer_getInstance()), tmp0_cached[2]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp8_cached = Companion_getInstance_432().$childSerializers_1; + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp8_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp8_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KCM.new_com_bapis_bilibili_app_viewunite_v1_KCM_xbv91m_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_cxn21q_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_432().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.cmUnderPlayer == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance(), value.cmUnderPlayer); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.adsControl == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance(), value.adsControl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !equals(value.sourceContent, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 2, tmp2_cached[2], value.sourceContent); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_cxn21q_k$(encoder, value instanceof KCM ? value : THROW_CCE()); + } + } + class KCM { + constructor(cmUnderPlayer, adsControl, sourceContent) { + Companion_getInstance_432(); + cmUnderPlayer = cmUnderPlayer === VOID ? null : cmUnderPlayer; + adsControl = adsControl === VOID ? null : adsControl; + sourceContent = sourceContent === VOID ? emptyList() : sourceContent; + this.cmUnderPlayer = cmUnderPlayer; + this.adsControl = adsControl; + this.sourceContent = sourceContent; + } + get_cmUnderPlayer_627biy_k$() { + return this.cmUnderPlayer; + } + get_adsControl_xa2nti_k$() { + return this.adsControl; + } + get_sourceContent_g32jlh_k$() { + return this.sourceContent; + } + component1_7eebsc_k$() { + return this.cmUnderPlayer; + } + component2_7eebsb_k$() { + return this.adsControl; + } + component3_7eebsa_k$() { + return this.sourceContent; + } + copy_ac6jam_k$(cmUnderPlayer, adsControl, sourceContent) { + return new KCM(cmUnderPlayer, adsControl, sourceContent); + } + copy(cmUnderPlayer, adsControl, sourceContent, $super) { + cmUnderPlayer = cmUnderPlayer === VOID ? this.cmUnderPlayer : cmUnderPlayer; + adsControl = adsControl === VOID ? this.adsControl : adsControl; + sourceContent = sourceContent === VOID ? this.sourceContent : sourceContent; + return this.copy_ac6jam_k$(cmUnderPlayer, adsControl, sourceContent); + } + toString() { + return 'KCM(cmUnderPlayer=' + this.cmUnderPlayer + ', adsControl=' + this.adsControl + ', sourceContent=' + this.sourceContent + ')'; + } + hashCode() { + var result = this.cmUnderPlayer == null ? 0 : this.cmUnderPlayer.hashCode(); + result = imul(result, 31) + (this.adsControl == null ? 0 : this.adsControl.hashCode()) | 0; + result = imul(result, 31) + hashCode(this.sourceContent) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KCM)) + return false; + var tmp0_other_with_cast = other instanceof KCM ? other : THROW_CCE(); + if (!equals(this.cmUnderPlayer, tmp0_other_with_cast.cmUnderPlayer)) + return false; + if (!equals(this.adsControl, tmp0_other_with_cast.adsControl)) + return false; + if (!equals(this.sourceContent, tmp0_other_with_cast.sourceContent)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_v1_KCM_xbv91m_k$(seen1, cmUnderPlayer, adsControl, sourceContent, serializationConstructorMarker) { + Companion_getInstance_432(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_419().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.cmUnderPlayer = null; + else + $this.cmUnderPlayer = cmUnderPlayer; + if (0 === (seen1 & 2)) + $this.adsControl = null; + else + $this.adsControl = adsControl; + if (0 === (seen1 & 4)) + $this.sourceContent = emptyList(); + else + $this.sourceContent = sourceContent; + return $this; + } + } + class Companion_433 { + constructor() { + Companion_instance_433 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer($serializer_getInstance_427()), null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.viewunite.v1.Tab'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_420(); + } + } + class $serializer_420 { + constructor() { + $serializer_instance_420 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.v1.KTab', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('tabModule', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('tabBg', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('danmakuEntrance', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_433().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0], StringSerializer_getInstance(), get_nullable($serializer_getInstance_421())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp8_cached = Companion_getInstance_433().$childSerializers_1; + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp8_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_421(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp8_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_421(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KTab.new_com_bapis_bilibili_app_viewunite_v1_KTab_yr4asl_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_xz64bb_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_433().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.tabModule, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.tabModule); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.tabBg === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.tabBg); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.danmakuEntrance == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_421(), value.danmakuEntrance); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_xz64bb_k$(encoder, value instanceof KTab ? value : THROW_CCE()); + } + } + class KTab { + constructor(tabModule, tabBg, danmakuEntrance) { + Companion_getInstance_433(); + tabModule = tabModule === VOID ? emptyList() : tabModule; + tabBg = tabBg === VOID ? '' : tabBg; + danmakuEntrance = danmakuEntrance === VOID ? null : danmakuEntrance; + this.tabModule = tabModule; + this.tabBg = tabBg; + this.danmakuEntrance = danmakuEntrance; + } + get_tabModule_w53v08_k$() { + return this.tabModule; + } + get_tabBg_iyxklt_k$() { + return this.tabBg; + } + get_danmakuEntrance_d62ays_k$() { + return this.danmakuEntrance; + } + component1_7eebsc_k$() { + return this.tabModule; + } + component2_7eebsb_k$() { + return this.tabBg; + } + component3_7eebsa_k$() { + return this.danmakuEntrance; + } + copy_3gs7rf_k$(tabModule, tabBg, danmakuEntrance) { + return new KTab(tabModule, tabBg, danmakuEntrance); + } + copy(tabModule, tabBg, danmakuEntrance, $super) { + tabModule = tabModule === VOID ? this.tabModule : tabModule; + tabBg = tabBg === VOID ? this.tabBg : tabBg; + danmakuEntrance = danmakuEntrance === VOID ? this.danmakuEntrance : danmakuEntrance; + return this.copy_3gs7rf_k$(tabModule, tabBg, danmakuEntrance); + } + toString() { + return 'KTab(tabModule=' + this.tabModule + ', tabBg=' + this.tabBg + ', danmakuEntrance=' + this.danmakuEntrance + ')'; + } + hashCode() { + var result = hashCode(this.tabModule); + result = imul(result, 31) + getStringHashCode(this.tabBg) | 0; + result = imul(result, 31) + (this.danmakuEntrance == null ? 0 : this.danmakuEntrance.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KTab)) + return false; + var tmp0_other_with_cast = other instanceof KTab ? other : THROW_CCE(); + if (!equals(this.tabModule, tmp0_other_with_cast.tabModule)) + return false; + if (!(this.tabBg === tmp0_other_with_cast.tabBg)) + return false; + if (!equals(this.danmakuEntrance, tmp0_other_with_cast.danmakuEntrance)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_v1_KTab_yr4asl_k$(seen1, tabModule, tabBg, danmakuEntrance, serializationConstructorMarker) { + Companion_getInstance_433(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_420().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.tabModule = emptyList(); + else + $this.tabModule = tabModule; + if (0 === (seen1 & 2)) + $this.tabBg = ''; + else + $this.tabBg = tabBg; + if (0 === (seen1 & 4)) + $this.danmakuEntrance = null; + else + $this.danmakuEntrance = danmakuEntrance; + return $this; + } + } + class Companion_434 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.v1.TabControl'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_421(); + } + } + class $serializer_421 { + constructor() { + $serializer_instance_421 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.v1.KTabControl', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('limit', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('disable', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('disableClickTip', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = false; + var tmp5_local1 = false; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KTabControl.new_com_bapis_bilibili_app_viewunite_v1_KTabControl_hxstm7_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_80zalc_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.limit === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 0, value.limit); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.disable === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 1, value.disable); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.disableClickTip === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.disableClickTip); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_80zalc_k$(encoder, value instanceof KTabControl ? value : THROW_CCE()); + } + } + class KTabControl { + constructor(limit, disable, disableClickTip) { + Companion_instance_434; + limit = limit === VOID ? false : limit; + disable = disable === VOID ? false : disable; + disableClickTip = disableClickTip === VOID ? '' : disableClickTip; + this.limit = limit; + this.disable = disable; + this.disableClickTip = disableClickTip; + } + get_limit_iuokuq_k$() { + return this.limit; + } + get_disable_swlvjz_k$() { + return this.disable; + } + get_disableClickTip_9ua2oi_k$() { + return this.disableClickTip; + } + component1_7eebsc_k$() { + return this.limit; + } + component2_7eebsb_k$() { + return this.disable; + } + component3_7eebsa_k$() { + return this.disableClickTip; + } + copy_sa52th_k$(limit, disable, disableClickTip) { + return new KTabControl(limit, disable, disableClickTip); + } + copy(limit, disable, disableClickTip, $super) { + limit = limit === VOID ? this.limit : limit; + disable = disable === VOID ? this.disable : disable; + disableClickTip = disableClickTip === VOID ? this.disableClickTip : disableClickTip; + return this.copy_sa52th_k$(limit, disable, disableClickTip); + } + toString() { + return 'KTabControl(limit=' + this.limit + ', disable=' + this.disable + ', disableClickTip=' + this.disableClickTip + ')'; + } + hashCode() { + var result = getBooleanHashCode(this.limit); + result = imul(result, 31) + getBooleanHashCode(this.disable) | 0; + result = imul(result, 31) + getStringHashCode(this.disableClickTip) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KTabControl)) + return false; + var tmp0_other_with_cast = other instanceof KTabControl ? other : THROW_CCE(); + if (!(this.limit === tmp0_other_with_cast.limit)) + return false; + if (!(this.disable === tmp0_other_with_cast.disable)) + return false; + if (!(this.disableClickTip === tmp0_other_with_cast.disableClickTip)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_v1_KTabControl_hxstm7_k$(seen1, limit, disable, disableClickTip, serializationConstructorMarker) { + Companion_instance_434; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_421().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.limit = false; + else + $this.limit = limit; + if (0 === (seen1 & 2)) + $this.disable = false; + else + $this.disable = disable; + if (0 === (seen1 & 4)) + $this.disableClickTip = ''; + else + $this.disableClickTip = disableClickTip; + return $this; + } + } + class Companion_435 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.v1.ReqUser'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_422(); + } + } + class $serializer_422 { + constructor() { + $serializer_instance_422 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.v1.KReqUser', this, 10); + tmp0_serialDesc.addElement_5pzumi_k$('favorite', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('like', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('coin', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('favSeason', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('follow', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('dislike', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('elecPlusBtn', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('chargingPlus', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('extra', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('paid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), get_nullable($serializer_getInstance_426()), get_nullable($serializer_getInstance_424()), get_nullable($serializer_getInstance_423()), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = 0; + var tmp6_local2 = 0; + var tmp7_local3 = 0; + var tmp8_local4 = 0; + var tmp9_local5 = 0; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_local8 = null; + var tmp13_local9 = 0; + var tmp14_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp14_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_426(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_424(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_423(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + } else + while (tmp1_flag) { + tmp2_index = tmp14_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_426(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_424(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_423(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp14_input.endStructure_1xqz0n_k$(tmp0_desc); + return KReqUser.new_com_bapis_bilibili_app_viewunite_v1_KReqUser_eqw7ob_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, null); + } + serialize_3pmmvf_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.favorite === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.favorite); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.like === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.like); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.coin === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.coin); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.favSeason === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 3, value.favSeason); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.follow === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 4, value.follow); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.dislike === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 5, value.dislike); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.elecPlusBtn == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 6, $serializer_getInstance_426(), value.elecPlusBtn); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.chargingPlus == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 7, $serializer_getInstance_424(), value.chargingPlus); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.extra == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 8, $serializer_getInstance_423(), value.extra); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.paid === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 9, value.paid); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_3pmmvf_k$(encoder, value instanceof KReqUser ? value : THROW_CCE()); + } + } + class KReqUser { + constructor(favorite, like, coin, favSeason, follow, dislike, elecPlusBtn, chargingPlus, extra, paid) { + Companion_instance_435; + favorite = favorite === VOID ? 0 : favorite; + like = like === VOID ? 0 : like; + coin = coin === VOID ? 0 : coin; + favSeason = favSeason === VOID ? 0 : favSeason; + follow = follow === VOID ? 0 : follow; + dislike = dislike === VOID ? 0 : dislike; + elecPlusBtn = elecPlusBtn === VOID ? null : elecPlusBtn; + chargingPlus = chargingPlus === VOID ? null : chargingPlus; + extra = extra === VOID ? null : extra; + paid = paid === VOID ? 0 : paid; + this.favorite = favorite; + this.like = like; + this.coin = coin; + this.favSeason = favSeason; + this.follow = follow; + this.dislike = dislike; + this.elecPlusBtn = elecPlusBtn; + this.chargingPlus = chargingPlus; + this.extra = extra; + this.paid = paid; + } + get_favorite_efbnob_k$() { + return this.favorite; + } + get_like_wopujk_k$() { + return this.like; + } + get_coin_wok82i_k$() { + return this.coin; + } + get_favSeason_ygwx57_k$() { + return this.favSeason; + } + get_follow_df9z22_k$() { + return this.follow; + } + get_dislike_swt1ks_k$() { + return this.dislike; + } + get_elecPlusBtn_4399os_k$() { + return this.elecPlusBtn; + } + get_chargingPlus_prc9h0_k$() { + return this.chargingPlus; + } + get_extra_ir3qw7_k$() { + return this.extra; + } + get_paid_wos8id_k$() { + return this.paid; + } + component1_7eebsc_k$() { + return this.favorite; + } + component2_7eebsb_k$() { + return this.like; + } + component3_7eebsa_k$() { + return this.coin; + } + component4_7eebs9_k$() { + return this.favSeason; + } + component5_7eebs8_k$() { + return this.follow; + } + component6_7eebs7_k$() { + return this.dislike; + } + component7_7eebs6_k$() { + return this.elecPlusBtn; + } + component8_7eebs5_k$() { + return this.chargingPlus; + } + component9_7eebs4_k$() { + return this.extra; + } + component10_gazzfo_k$() { + return this.paid; + } + copy_ha6exl_k$(favorite, like, coin, favSeason, follow, dislike, elecPlusBtn, chargingPlus, extra, paid) { + return new KReqUser(favorite, like, coin, favSeason, follow, dislike, elecPlusBtn, chargingPlus, extra, paid); + } + copy(favorite, like, coin, favSeason, follow, dislike, elecPlusBtn, chargingPlus, extra, paid, $super) { + favorite = favorite === VOID ? this.favorite : favorite; + like = like === VOID ? this.like : like; + coin = coin === VOID ? this.coin : coin; + favSeason = favSeason === VOID ? this.favSeason : favSeason; + follow = follow === VOID ? this.follow : follow; + dislike = dislike === VOID ? this.dislike : dislike; + elecPlusBtn = elecPlusBtn === VOID ? this.elecPlusBtn : elecPlusBtn; + chargingPlus = chargingPlus === VOID ? this.chargingPlus : chargingPlus; + extra = extra === VOID ? this.extra : extra; + paid = paid === VOID ? this.paid : paid; + return this.copy_ha6exl_k$(favorite, like, coin, favSeason, follow, dislike, elecPlusBtn, chargingPlus, extra, paid); + } + toString() { + return 'KReqUser(favorite=' + this.favorite + ', like=' + this.like + ', coin=' + this.coin + ', favSeason=' + this.favSeason + ', follow=' + this.follow + ', dislike=' + this.dislike + ', elecPlusBtn=' + this.elecPlusBtn + ', chargingPlus=' + this.chargingPlus + ', extra=' + this.extra + ', paid=' + this.paid + ')'; + } + hashCode() { + var result = this.favorite; + result = imul(result, 31) + this.like | 0; + result = imul(result, 31) + this.coin | 0; + result = imul(result, 31) + this.favSeason | 0; + result = imul(result, 31) + this.follow | 0; + result = imul(result, 31) + this.dislike | 0; + result = imul(result, 31) + (this.elecPlusBtn == null ? 0 : this.elecPlusBtn.hashCode()) | 0; + result = imul(result, 31) + (this.chargingPlus == null ? 0 : this.chargingPlus.hashCode()) | 0; + result = imul(result, 31) + (this.extra == null ? 0 : this.extra.hashCode()) | 0; + result = imul(result, 31) + this.paid | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KReqUser)) + return false; + var tmp0_other_with_cast = other instanceof KReqUser ? other : THROW_CCE(); + if (!(this.favorite === tmp0_other_with_cast.favorite)) + return false; + if (!(this.like === tmp0_other_with_cast.like)) + return false; + if (!(this.coin === tmp0_other_with_cast.coin)) + return false; + if (!(this.favSeason === tmp0_other_with_cast.favSeason)) + return false; + if (!(this.follow === tmp0_other_with_cast.follow)) + return false; + if (!(this.dislike === tmp0_other_with_cast.dislike)) + return false; + if (!equals(this.elecPlusBtn, tmp0_other_with_cast.elecPlusBtn)) + return false; + if (!equals(this.chargingPlus, tmp0_other_with_cast.chargingPlus)) + return false; + if (!equals(this.extra, tmp0_other_with_cast.extra)) + return false; + if (!(this.paid === tmp0_other_with_cast.paid)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_v1_KReqUser_eqw7ob_k$(seen1, favorite, like, coin, favSeason, follow, dislike, elecPlusBtn, chargingPlus, extra, paid, serializationConstructorMarker) { + Companion_instance_435; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_422().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.favorite = 0; + else + $this.favorite = favorite; + if (0 === (seen1 & 2)) + $this.like = 0; + else + $this.like = like; + if (0 === (seen1 & 4)) + $this.coin = 0; + else + $this.coin = coin; + if (0 === (seen1 & 8)) + $this.favSeason = 0; + else + $this.favSeason = favSeason; + if (0 === (seen1 & 16)) + $this.follow = 0; + else + $this.follow = follow; + if (0 === (seen1 & 32)) + $this.dislike = 0; + else + $this.dislike = dislike; + if (0 === (seen1 & 64)) + $this.elecPlusBtn = null; + else + $this.elecPlusBtn = elecPlusBtn; + if (0 === (seen1 & 128)) + $this.chargingPlus = null; + else + $this.chargingPlus = chargingPlus; + if (0 === (seen1 & 256)) + $this.extra = null; + else + $this.extra = extra; + if (0 === (seen1 & 512)) + $this.paid = 0; + else + $this.paid = paid; + return $this; + } + } + class Companion_436 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.v1.ReqUserExtra'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_423(); + } + } + class $serializer_423 { + constructor() { + $serializer_instance_423 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.v1.KReqUserExtra', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('userFlagNew', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [BooleanSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = false; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KReqUserExtra.new_com_bapis_bilibili_app_viewunite_v1_KReqUserExtra_d2y1qu_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_3uh81r_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.userFlagNew === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 0, value.userFlagNew); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_3uh81r_k$(encoder, value instanceof KReqUserExtra ? value : THROW_CCE()); + } + } + class KReqUserExtra { + constructor(userFlagNew) { + Companion_instance_436; + userFlagNew = userFlagNew === VOID ? false : userFlagNew; + this.userFlagNew = userFlagNew; + } + get_userFlagNew_3zgdgg_k$() { + return this.userFlagNew; + } + component1_7eebsc_k$() { + return this.userFlagNew; + } + copy_o18wmo_k$(userFlagNew) { + return new KReqUserExtra(userFlagNew); + } + copy(userFlagNew, $super) { + userFlagNew = userFlagNew === VOID ? this.userFlagNew : userFlagNew; + return this.copy_o18wmo_k$(userFlagNew); + } + toString() { + return 'KReqUserExtra(userFlagNew=' + this.userFlagNew + ')'; + } + hashCode() { + return getBooleanHashCode(this.userFlagNew); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KReqUserExtra)) + return false; + var tmp0_other_with_cast = other instanceof KReqUserExtra ? other : THROW_CCE(); + if (!(this.userFlagNew === tmp0_other_with_cast.userFlagNew)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_v1_KReqUserExtra_d2y1qu_k$(seen1, userFlagNew, serializationConstructorMarker) { + Companion_instance_436; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_423().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.userFlagNew = false; + else + $this.userFlagNew = userFlagNew; + return $this; + } + } + class Companion_437 { + constructor() { + Companion_instance_437 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, new ArrayListSerializer($serializer_getInstance_425())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.viewunite.v1.ChargingPlus'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_424(); + } + } + class $serializer_424 { + constructor() { + $serializer_instance_424 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.v1.KChargingPlus', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('pass', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('playToast', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_437().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [BooleanSerializer_getInstance(), tmp0_cached[1]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = false; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp7_cached = Companion_getInstance_437().$childSerializers_1; + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KChargingPlus.new_com_bapis_bilibili_app_viewunite_v1_KChargingPlus_f58ifr_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_q3ceg3_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_437().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.pass === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 0, value.pass); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !equals(value.playToast, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 1, tmp2_cached[1], value.playToast); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_q3ceg3_k$(encoder, value instanceof KChargingPlus ? value : THROW_CCE()); + } + } + class KChargingPlus { + constructor(pass, playToast) { + Companion_getInstance_437(); + pass = pass === VOID ? false : pass; + playToast = playToast === VOID ? emptyList() : playToast; + this.pass = pass; + this.playToast = playToast; + } + get_pass_wos8re_k$() { + return this.pass; + } + get_playToast_mpfyom_k$() { + return this.playToast; + } + component1_7eebsc_k$() { + return this.pass; + } + component2_7eebsb_k$() { + return this.playToast; + } + copy_1ddkb4_k$(pass, playToast) { + return new KChargingPlus(pass, playToast); + } + copy(pass, playToast, $super) { + pass = pass === VOID ? this.pass : pass; + playToast = playToast === VOID ? this.playToast : playToast; + return this.copy_1ddkb4_k$(pass, playToast); + } + toString() { + return 'KChargingPlus(pass=' + this.pass + ', playToast=' + this.playToast + ')'; + } + hashCode() { + var result = getBooleanHashCode(this.pass); + result = imul(result, 31) + hashCode(this.playToast) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KChargingPlus)) + return false; + var tmp0_other_with_cast = other instanceof KChargingPlus ? other : THROW_CCE(); + if (!(this.pass === tmp0_other_with_cast.pass)) + return false; + if (!equals(this.playToast, tmp0_other_with_cast.playToast)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_v1_KChargingPlus_f58ifr_k$(seen1, pass, playToast, serializationConstructorMarker) { + Companion_getInstance_437(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_424().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.pass = false; + else + $this.pass = pass; + if (0 === (seen1 & 2)) + $this.playToast = emptyList(); + else + $this.playToast = playToast; + return $this; + } + } + class Companion_438 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.v1.PlayToast'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_425(); + } + } + class $serializer_425 { + constructor() { + $serializer_instance_425 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.v1.KPlayToast', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('business', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('iconUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('text', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KPlayToast.new_com_bapis_bilibili_app_viewunite_v1_KPlayToast_mj1n2j_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_a583kl_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.business === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.business); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.iconUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.iconUrl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.text === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.text); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_a583kl_k$(encoder, value instanceof KPlayToast ? value : THROW_CCE()); + } + } + class KPlayToast { + constructor(business, iconUrl, text) { + Companion_instance_438; + business = business === VOID ? 0 : business; + iconUrl = iconUrl === VOID ? '' : iconUrl; + text = text === VOID ? '' : text; + this.business = business; + this.iconUrl = iconUrl; + this.text = text; + } + get_business_k9dqx5_k$() { + return this.business; + } + get_iconUrl_sd8dal_k$() { + return this.iconUrl; + } + get_text_wouvsm_k$() { + return this.text; + } + businessEnum() { + return Companion_getInstance_409().fromValue(this.business); + } + component1_7eebsc_k$() { + return this.business; + } + component2_7eebsb_k$() { + return this.iconUrl; + } + component3_7eebsa_k$() { + return this.text; + } + copy_hrd73x_k$(business, iconUrl, text) { + return new KPlayToast(business, iconUrl, text); + } + copy(business, iconUrl, text, $super) { + business = business === VOID ? this.business : business; + iconUrl = iconUrl === VOID ? this.iconUrl : iconUrl; + text = text === VOID ? this.text : text; + return this.copy_hrd73x_k$(business, iconUrl, text); + } + toString() { + return 'KPlayToast(business=' + this.business + ', iconUrl=' + this.iconUrl + ', text=' + this.text + ')'; + } + hashCode() { + var result = this.business; + result = imul(result, 31) + getStringHashCode(this.iconUrl) | 0; + result = imul(result, 31) + getStringHashCode(this.text) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KPlayToast)) + return false; + var tmp0_other_with_cast = other instanceof KPlayToast ? other : THROW_CCE(); + if (!(this.business === tmp0_other_with_cast.business)) + return false; + if (!(this.iconUrl === tmp0_other_with_cast.iconUrl)) + return false; + if (!(this.text === tmp0_other_with_cast.text)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_v1_KPlayToast_mj1n2j_k$(seen1, business, iconUrl, text, serializationConstructorMarker) { + Companion_instance_438; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_425().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.business = 0; + else + $this.business = business; + if (0 === (seen1 & 2)) + $this.iconUrl = ''; + else + $this.iconUrl = iconUrl; + if (0 === (seen1 & 4)) + $this.text = ''; + else + $this.text = text; + return $this; + } + } + class Companion_439 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.v1.Button'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_426(); + } + } + class $serializer_426 { + constructor() { + $serializer_instance_426 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.v1.KButton', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('uri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('icon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('jumpShowType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = 0; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KButton_1.new_com_bapis_bilibili_app_viewunite_v1_KButton_jm9xsn_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_rpioui_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.uri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.uri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.icon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.icon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.jumpShowType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 3, value.jumpShowType); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_rpioui_k$(encoder, value instanceof KButton_1 ? value : THROW_CCE()); + } + } + class KButton_1 { + constructor(title, uri, icon, jumpShowType) { + Companion_instance_439; + title = title === VOID ? '' : title; + uri = uri === VOID ? '' : uri; + icon = icon === VOID ? '' : icon; + jumpShowType = jumpShowType === VOID ? 0 : jumpShowType; + this.title = title; + this.uri = uri; + this.icon = icon; + this.jumpShowType = jumpShowType; + } + get_title_iz32un_k$() { + return this.title; + } + get_uri_18iuil_k$() { + return this.uri; + } + get_icon_wont8i_k$() { + return this.icon; + } + get_jumpShowType_84vw4u_k$() { + return this.jumpShowType; + } + jumpShowTypeEnum() { + return Companion_getInstance_410().fromValue(this.jumpShowType); + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.uri; + } + component3_7eebsa_k$() { + return this.icon; + } + component4_7eebs9_k$() { + return this.jumpShowType; + } + copy_ek39hv_k$(title, uri, icon, jumpShowType) { + return new KButton_1(title, uri, icon, jumpShowType); + } + copy(title, uri, icon, jumpShowType, $super) { + title = title === VOID ? this.title : title; + uri = uri === VOID ? this.uri : uri; + icon = icon === VOID ? this.icon : icon; + jumpShowType = jumpShowType === VOID ? this.jumpShowType : jumpShowType; + return this.copy_ek39hv_k$(title, uri, icon, jumpShowType); + } + toString() { + return 'KButton(title=' + this.title + ', uri=' + this.uri + ', icon=' + this.icon + ', jumpShowType=' + this.jumpShowType + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.uri) | 0; + result = imul(result, 31) + getStringHashCode(this.icon) | 0; + result = imul(result, 31) + this.jumpShowType | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KButton_1)) + return false; + var tmp0_other_with_cast = other instanceof KButton_1 ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.uri === tmp0_other_with_cast.uri)) + return false; + if (!(this.icon === tmp0_other_with_cast.icon)) + return false; + if (!(this.jumpShowType === tmp0_other_with_cast.jumpShowType)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_v1_KButton_jm9xsn_k$(seen1, title, uri, icon, jumpShowType, serializationConstructorMarker) { + Companion_instance_439; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_426().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.uri = ''; + else + $this.uri = uri; + if (0 === (seen1 & 4)) + $this.icon = ''; + else + $this.icon = icon; + if (0 === (seen1 & 8)) + $this.jumpShowType = 0; + else + $this.jumpShowType = jumpShowType; + return $this; + } + } + class KTab_0 { + constructor(value) { + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + } + class KIntroduction extends KTab_0 { + constructor() { + KIntroduction_instance = null; + super(0); + KIntroduction_instance = this; + } + } + class KReply extends KTab_0 { + constructor() { + KReply_instance = null; + super(1); + KReply_instance = this; + } + } + class KActivityTab_0 extends KTab_0 { + constructor() { + KActivityTab_instance = null; + super(2); + KActivityTab_instance = this; + } + } + class KCatalog extends KTab_0 { + constructor() { + KCatalog_instance = null; + super(3); + KCatalog_instance = this; + } + } + class Companion_440 { + constructor() { + Companion_instance_440 = this; + var tmp = this; + tmp.tabValues$delegate_1 = lazy_0(KTabModule$Companion$tabValues$delegate$lambda); + this.targetPath = '/bilibili.app.viewunite.v1.TabModule'; + } + get_tabValues_yu5lzm_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.tabValues$delegate_1; + var thisRef = this; + var property = tabValues$factory(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_427(); + } + get tabValues() { + return this.get_tabValues_yu5lzm_k$(); + } + } + class $serializer_427 { + constructor() { + $serializer_instance_427 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.v1.KTabModule', this, 5); + tmp0_serialDesc.addElement_5pzumi_k$('tabType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('introduction', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('reply', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('activityTab', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('catalog', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), get_nullable($serializer_getInstance_428()), get_nullable($serializer_getInstance_429()), get_nullable($serializer_getInstance_319()), get_nullable($serializer_getInstance_317())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_transient0 = 0; + var tmp10_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp10_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_428(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_429(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_319(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_317(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + } else + while (tmp1_flag) { + tmp2_index = tmp10_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_428(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_429(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_319(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_317(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp10_input.endStructure_1xqz0n_k$(tmp0_desc); + return KTabModule.new_com_bapis_bilibili_app_viewunite_v1_KTabModule_sc8akd_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); + } + serialize_a2l15p_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.tabType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.tabType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.introduction_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_428(), value.introduction_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.reply_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_429(), value.reply_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.activityTab_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_319(), value.activityTab_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.catalog_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, $serializer_getInstance_317(), value.catalog_1); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_a2l15p_k$(encoder, value instanceof KTabModule ? value : THROW_CCE()); + } + } + class KTabModule { + constructor(tabType, introduction, reply, activityTab, catalog) { + Companion_getInstance_440(); + tabType = tabType === VOID ? 0 : tabType; + introduction = introduction === VOID ? null : introduction; + reply = reply === VOID ? null : reply; + activityTab = activityTab === VOID ? null : activityTab; + catalog = catalog === VOID ? null : catalog; + this.tabType = tabType; + this.introduction_1 = introduction; + this.reply_1 = reply; + this.activityTab_1 = activityTab; + this.catalog_1 = catalog; + var tmp = this; + tmp.tabNumber$delegate_1 = lazy_0(KTabModule$tabNumber$delegate$lambda(this)); + } + get_tabType_off3p6_k$() { + return this.tabType; + } + tabValue() { + if (!(this.introduction_1 == null)) { + var tmp = this.introduction_1; + return (tmp == null ? true : !(tmp == null)) ? tmp : null; + } else if (!(this.reply_1 == null)) { + var tmp_0 = this.reply_1; + return (tmp_0 == null ? true : !(tmp_0 == null)) ? tmp_0 : null; + } else if (!(this.activityTab_1 == null)) { + var tmp_1 = this.activityTab_1; + return (tmp_1 == null ? true : !(tmp_1 == null)) ? tmp_1 : null; + } else if (!(this.catalog_1 == null)) { + var tmp_2 = this.catalog_1; + return (tmp_2 == null ? true : !(tmp_2 == null)) ? tmp_2 : null; + } else { + return null; + } + } + tabTypeJs() { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = Companion_getInstance_440().tabValues; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.viewunite.v1.KTabModule.tabType.' call + var it = element; + tmp$ret$0 = it.value === _get_tabNumber__i5nr9v(this); + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + return tmp$ret$1; + } + tabTypeEnum() { + return Companion_getInstance_411().fromValue(this.tabType); + } + component1_7eebsc_k$() { + return this.tabType; + } + copy_nnmc2n_k$(tabType, introduction, reply, activityTab, catalog) { + return new KTabModule(tabType, introduction, reply, activityTab, catalog); + } + copy(tabType, introduction, reply, activityTab, catalog, $super) { + tabType = tabType === VOID ? this.tabType : tabType; + introduction = introduction === VOID ? this.introduction_1 : introduction; + reply = reply === VOID ? this.reply_1 : reply; + activityTab = activityTab === VOID ? this.activityTab_1 : activityTab; + catalog = catalog === VOID ? this.catalog_1 : catalog; + return this.copy_nnmc2n_k$(tabType, introduction, reply, activityTab, catalog); + } + toString() { + return 'KTabModule(tabType=' + this.tabType + ', introduction=' + this.introduction_1 + ', reply=' + this.reply_1 + ', activityTab=' + this.activityTab_1 + ', catalog=' + this.catalog_1 + ')'; + } + hashCode() { + var result = this.tabType; + result = imul(result, 31) + (this.introduction_1 == null ? 0 : this.introduction_1.hashCode()) | 0; + result = imul(result, 31) + (this.reply_1 == null ? 0 : this.reply_1.hashCode()) | 0; + result = imul(result, 31) + (this.activityTab_1 == null ? 0 : this.activityTab_1.hashCode()) | 0; + result = imul(result, 31) + (this.catalog_1 == null ? 0 : this.catalog_1.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KTabModule)) + return false; + var tmp0_other_with_cast = other instanceof KTabModule ? other : THROW_CCE(); + if (!(this.tabType === tmp0_other_with_cast.tabType)) + return false; + if (!equals(this.introduction_1, tmp0_other_with_cast.introduction_1)) + return false; + if (!equals(this.reply_1, tmp0_other_with_cast.reply_1)) + return false; + if (!equals(this.activityTab_1, tmp0_other_with_cast.activityTab_1)) + return false; + if (!equals(this.catalog_1, tmp0_other_with_cast.catalog_1)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_v1_KTabModule_sc8akd_k$(seen1, tabType, introduction, reply, activityTab, catalog, serializationConstructorMarker) { + Companion_getInstance_440(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_427().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.tabType = 0; + else + $this.tabType = tabType; + if (0 === (seen1 & 2)) + $this.introduction_1 = null; + else + $this.introduction_1 = introduction; + if (0 === (seen1 & 4)) + $this.reply_1 = null; + else + $this.reply_1 = reply; + if (0 === (seen1 & 8)) + $this.activityTab_1 = null; + else + $this.activityTab_1 = activityTab; + if (0 === (seen1 & 16)) + $this.catalog_1 = null; + else + $this.catalog_1 = catalog; + var tmp = $this; + tmp.tabNumber$delegate_1 = lazy_0(KTabModule$_init_$lambda_stfjx1($this)); + return $this; + } + } + class Companion_441 { + constructor() { + Companion_instance_441 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, new ArrayListSerializer($serializer_getInstance_218())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.viewunite.v1.IntroductionTab'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_428(); + } + } + class $serializer_428 { + constructor() { + $serializer_instance_428 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.v1.KIntroductionTab', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('modules', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_441().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), tmp0_cached[1]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp7_cached = Companion_getInstance_441().$childSerializers_1; + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KIntroductionTab.new_com_bapis_bilibili_app_viewunite_v1_KIntroductionTab_u25px6_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_2rzjdv_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_441().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !equals(value.modules, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 1, tmp2_cached[1], value.modules); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_2rzjdv_k$(encoder, value instanceof KIntroductionTab ? value : THROW_CCE()); + } + } + class KIntroductionTab { + constructor(title, modules) { + Companion_getInstance_441(); + title = title === VOID ? '' : title; + modules = modules === VOID ? emptyList() : modules; + this.title = title; + this.modules = modules; + } + get_title_iz32un_k$() { + return this.title; + } + get_modules_lkc42m_k$() { + return this.modules; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.modules; + } + copy_y8xx0i_k$(title, modules) { + return new KIntroductionTab(title, modules); + } + copy(title, modules, $super) { + title = title === VOID ? this.title : title; + modules = modules === VOID ? this.modules : modules; + return this.copy_y8xx0i_k$(title, modules); + } + toString() { + return 'KIntroductionTab(title=' + this.title + ', modules=' + this.modules + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + hashCode(this.modules) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KIntroductionTab)) + return false; + var tmp0_other_with_cast = other instanceof KIntroductionTab ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!equals(this.modules, tmp0_other_with_cast.modules)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_v1_KIntroductionTab_u25px6_k$(seen1, title, modules, serializationConstructorMarker) { + Companion_getInstance_441(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_428().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.modules = emptyList(); + else + $this.modules = modules; + return $this; + } + } + class Companion_442 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.v1.ReplyTab'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_429(); + } + } + class $serializer_429 { + constructor() { + $serializer_instance_429 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.v1.KReplyTab', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('replyStyle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('control', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_430()), StringSerializer_getInstance(), get_nullable($serializer_getInstance_421())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_430(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_421(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_430(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_421(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KReplyTab.new_com_bapis_bilibili_app_viewunite_v1_KReplyTab_gj9kgx_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_ukkdrx_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.replyStyle == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_430(), value.replyStyle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.control == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_421(), value.control); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_ukkdrx_k$(encoder, value instanceof KReplyTab ? value : THROW_CCE()); + } + } + class KReplyTab { + constructor(replyStyle, title, control) { + Companion_instance_442; + replyStyle = replyStyle === VOID ? null : replyStyle; + title = title === VOID ? '' : title; + control = control === VOID ? null : control; + this.replyStyle = replyStyle; + this.title = title; + this.control = control; + } + get_replyStyle_tft18w_k$() { + return this.replyStyle; + } + get_title_iz32un_k$() { + return this.title; + } + get_control_h02tf8_k$() { + return this.control; + } + component1_7eebsc_k$() { + return this.replyStyle; + } + component2_7eebsb_k$() { + return this.title; + } + component3_7eebsa_k$() { + return this.control; + } + copy_ycncey_k$(replyStyle, title, control) { + return new KReplyTab(replyStyle, title, control); + } + copy(replyStyle, title, control, $super) { + replyStyle = replyStyle === VOID ? this.replyStyle : replyStyle; + title = title === VOID ? this.title : title; + control = control === VOID ? this.control : control; + return this.copy_ycncey_k$(replyStyle, title, control); + } + toString() { + return 'KReplyTab(replyStyle=' + this.replyStyle + ', title=' + this.title + ', control=' + this.control + ')'; + } + hashCode() { + var result = this.replyStyle == null ? 0 : this.replyStyle.hashCode(); + result = imul(result, 31) + getStringHashCode(this.title) | 0; + result = imul(result, 31) + (this.control == null ? 0 : this.control.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KReplyTab)) + return false; + var tmp0_other_with_cast = other instanceof KReplyTab ? other : THROW_CCE(); + if (!equals(this.replyStyle, tmp0_other_with_cast.replyStyle)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!equals(this.control, tmp0_other_with_cast.control)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_v1_KReplyTab_gj9kgx_k$(seen1, replyStyle, title, control, serializationConstructorMarker) { + Companion_instance_442; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_429().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.replyStyle = null; + else + $this.replyStyle = replyStyle; + if (0 === (seen1 & 2)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 4)) + $this.control = null; + else + $this.control = control; + return $this; + } + } + class Companion_443 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.v1.ReplyStyle'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_430(); + } + } + class $serializer_430 { + constructor() { + $serializer_instance_430 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.v1.KReplyStyle', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('badgeUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('badgeText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('badgeType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = new Long(0, 0); + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KReplyStyle.new_com_bapis_bilibili_app_viewunite_v1_KReplyStyle_8sgr7d_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_x1lt29_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.badgeUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.badgeUrl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.badgeText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.badgeText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.badgeType.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.badgeType); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_x1lt29_k$(encoder, value instanceof KReplyStyle ? value : THROW_CCE()); + } + } + class KReplyStyle { + constructor(badgeUrl, badgeText, badgeType) { + Companion_instance_443; + badgeUrl = badgeUrl === VOID ? '' : badgeUrl; + badgeText = badgeText === VOID ? '' : badgeText; + badgeType = badgeType === VOID ? new Long(0, 0) : badgeType; + this.badgeUrl = badgeUrl; + this.badgeText = badgeText; + this.badgeType = badgeType; + } + get_badgeUrl_3oyahh_k$() { + return this.badgeUrl; + } + get_badgeText_rkpz5l_k$() { + return this.badgeText; + } + get_badgeType_rkpkj0_k$() { + return this.badgeType; + } + component1_7eebsc_k$() { + return this.badgeUrl; + } + component2_7eebsb_k$() { + return this.badgeText; + } + component3_7eebsa_k$() { + return this.badgeType; + } + copy_h5h4fn_k$(badgeUrl, badgeText, badgeType) { + return new KReplyStyle(badgeUrl, badgeText, badgeType); + } + copy(badgeUrl, badgeText, badgeType, $super) { + badgeUrl = badgeUrl === VOID ? this.badgeUrl : badgeUrl; + badgeText = badgeText === VOID ? this.badgeText : badgeText; + badgeType = badgeType === VOID ? this.badgeType : badgeType; + return this.copy_h5h4fn_k$(badgeUrl, badgeText, badgeType); + } + toString() { + return 'KReplyStyle(badgeUrl=' + this.badgeUrl + ', badgeText=' + this.badgeText + ', badgeType=' + this.badgeType.toString() + ')'; + } + hashCode() { + var result = getStringHashCode(this.badgeUrl); + result = imul(result, 31) + getStringHashCode(this.badgeText) | 0; + result = imul(result, 31) + this.badgeType.hashCode() | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KReplyStyle)) + return false; + var tmp0_other_with_cast = other instanceof KReplyStyle ? other : THROW_CCE(); + if (!(this.badgeUrl === tmp0_other_with_cast.badgeUrl)) + return false; + if (!(this.badgeText === tmp0_other_with_cast.badgeText)) + return false; + if (!this.badgeType.equals(tmp0_other_with_cast.badgeType)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_v1_KReplyStyle_8sgr7d_k$(seen1, badgeUrl, badgeText, badgeType, serializationConstructorMarker) { + Companion_instance_443; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_430().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.badgeUrl = ''; + else + $this.badgeUrl = badgeUrl; + if (0 === (seen1 & 2)) + $this.badgeText = ''; + else + $this.badgeText = badgeText; + if (0 === (seen1 & 4)) + $this.badgeType = new Long(0, 0); + else + $this.badgeType = badgeType; + return $this; + } + } + class Companion_444 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.v1.ViewBase'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_431(); + } + } + class $serializer_431 { + constructor() { + $serializer_instance_431 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.v1.KViewBase', this, 5); + tmp0_serialDesc.addElement_5pzumi_k$('bizType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('pageType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('control', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('activityResource', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('config', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), IntSerializer_getInstance(), get_nullable($serializer_getInstance_438()), get_nullable($serializer_getInstance_440()), get_nullable($serializer_getInstance_432())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = 0; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp9_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_438(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_440(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_432(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + } else + while (tmp1_flag) { + tmp2_index = tmp9_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_438(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_440(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_432(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp9_input.endStructure_1xqz0n_k$(tmp0_desc); + return KViewBase.new_com_bapis_bilibili_app_viewunite_v1_KViewBase_5cgh0p_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); + } + serialize_kw8ooe_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.bizType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.bizType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.pageType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.pageType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.control == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_438(), value.control); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.activityResource == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_440(), value.activityResource); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.config == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, $serializer_getInstance_432(), value.config); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_kw8ooe_k$(encoder, value instanceof KViewBase ? value : THROW_CCE()); + } + } + class KViewBase { + constructor(bizType, pageType, control, activityResource, config) { + Companion_instance_444; + bizType = bizType === VOID ? 0 : bizType; + pageType = pageType === VOID ? 0 : pageType; + control = control === VOID ? null : control; + activityResource = activityResource === VOID ? null : activityResource; + config = config === VOID ? null : config; + this.bizType = bizType; + this.pageType = pageType; + this.control = control; + this.activityResource = activityResource; + this.config = config; + } + get_bizType_cjyf0_k$() { + return this.bizType; + } + get_pageType_hl88ni_k$() { + return this.pageType; + } + get_control_h02tf8_k$() { + return this.control; + } + get_activityResource_42iwau_k$() { + return this.activityResource; + } + get_config_c0698r_k$() { + return this.config; + } + bizTypeEnum() { + return Companion_getInstance_129().fromValue(this.bizType); + } + pageTypeEnum() { + return Companion_getInstance_412().fromValue(this.pageType); + } + component1_7eebsc_k$() { + return this.bizType; + } + component2_7eebsb_k$() { + return this.pageType; + } + component3_7eebsa_k$() { + return this.control; + } + component4_7eebs9_k$() { + return this.activityResource; + } + component5_7eebs8_k$() { + return this.config; + } + copy_85fojm_k$(bizType, pageType, control, activityResource, config) { + return new KViewBase(bizType, pageType, control, activityResource, config); + } + copy(bizType, pageType, control, activityResource, config, $super) { + bizType = bizType === VOID ? this.bizType : bizType; + pageType = pageType === VOID ? this.pageType : pageType; + control = control === VOID ? this.control : control; + activityResource = activityResource === VOID ? this.activityResource : activityResource; + config = config === VOID ? this.config : config; + return this.copy_85fojm_k$(bizType, pageType, control, activityResource, config); + } + toString() { + return 'KViewBase(bizType=' + this.bizType + ', pageType=' + this.pageType + ', control=' + this.control + ', activityResource=' + this.activityResource + ', config=' + this.config + ')'; + } + hashCode() { + var result = this.bizType; + result = imul(result, 31) + this.pageType | 0; + result = imul(result, 31) + (this.control == null ? 0 : this.control.hashCode()) | 0; + result = imul(result, 31) + (this.activityResource == null ? 0 : this.activityResource.hashCode()) | 0; + result = imul(result, 31) + (this.config == null ? 0 : this.config.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KViewBase)) + return false; + var tmp0_other_with_cast = other instanceof KViewBase ? other : THROW_CCE(); + if (!(this.bizType === tmp0_other_with_cast.bizType)) + return false; + if (!(this.pageType === tmp0_other_with_cast.pageType)) + return false; + if (!equals(this.control, tmp0_other_with_cast.control)) + return false; + if (!equals(this.activityResource, tmp0_other_with_cast.activityResource)) + return false; + if (!equals(this.config, tmp0_other_with_cast.config)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_v1_KViewBase_5cgh0p_k$(seen1, bizType, pageType, control, activityResource, config, serializationConstructorMarker) { + Companion_instance_444; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_431().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.bizType = 0; + else + $this.bizType = bizType; + if (0 === (seen1 & 2)) + $this.pageType = 0; + else + $this.pageType = pageType; + if (0 === (seen1 & 4)) + $this.control = null; + else + $this.control = control; + if (0 === (seen1 & 8)) + $this.activityResource = null; + else + $this.activityResource = activityResource; + if (0 === (seen1 & 16)) + $this.config = null; + else + $this.config = config; + return $this; + } + } + class Companion_445 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.v1.Config'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_432(); + } + } + class $serializer_432 { + constructor() { + $serializer_instance_432 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.v1.KConfig', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('online', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('playerIcon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('storyEntrance', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('bgPlayNotice', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_437()), get_nullable($serializer_getInstance_435()), get_nullable($serializer_getInstance_434()), get_nullable($serializer_getInstance_433())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_437(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_435(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_434(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_433(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_437(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_435(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_434(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_433(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KConfig_0.new_com_bapis_bilibili_app_viewunite_v1_KConfig_7hc23l_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_c3wimy_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.online == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_437(), value.online); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.playerIcon == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_435(), value.playerIcon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.storyEntrance == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_434(), value.storyEntrance); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.bgPlayNotice == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_433(), value.bgPlayNotice); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_c3wimy_k$(encoder, value instanceof KConfig_0 ? value : THROW_CCE()); + } + } + class KConfig_0 { + constructor(online, playerIcon, storyEntrance, bgPlayNotice) { + Companion_instance_445; + online = online === VOID ? null : online; + playerIcon = playerIcon === VOID ? null : playerIcon; + storyEntrance = storyEntrance === VOID ? null : storyEntrance; + bgPlayNotice = bgPlayNotice === VOID ? null : bgPlayNotice; + this.online = online; + this.playerIcon = playerIcon; + this.storyEntrance = storyEntrance; + this.bgPlayNotice = bgPlayNotice; + } + get_online_ho4pr0_k$() { + return this.online; + } + get_playerIcon_ehczgj_k$() { + return this.playerIcon; + } + get_storyEntrance_v0o4ta_k$() { + return this.storyEntrance; + } + get_bgPlayNotice_kbd6cm_k$() { + return this.bgPlayNotice; + } + component1_7eebsc_k$() { + return this.online; + } + component2_7eebsb_k$() { + return this.playerIcon; + } + component3_7eebsa_k$() { + return this.storyEntrance; + } + component4_7eebs9_k$() { + return this.bgPlayNotice; + } + copy_8akfoe_k$(online, playerIcon, storyEntrance, bgPlayNotice) { + return new KConfig_0(online, playerIcon, storyEntrance, bgPlayNotice); + } + copy(online, playerIcon, storyEntrance, bgPlayNotice, $super) { + online = online === VOID ? this.online : online; + playerIcon = playerIcon === VOID ? this.playerIcon : playerIcon; + storyEntrance = storyEntrance === VOID ? this.storyEntrance : storyEntrance; + bgPlayNotice = bgPlayNotice === VOID ? this.bgPlayNotice : bgPlayNotice; + return this.copy_8akfoe_k$(online, playerIcon, storyEntrance, bgPlayNotice); + } + toString() { + return 'KConfig(online=' + this.online + ', playerIcon=' + this.playerIcon + ', storyEntrance=' + this.storyEntrance + ', bgPlayNotice=' + this.bgPlayNotice + ')'; + } + hashCode() { + var result = this.online == null ? 0 : this.online.hashCode(); + result = imul(result, 31) + (this.playerIcon == null ? 0 : this.playerIcon.hashCode()) | 0; + result = imul(result, 31) + (this.storyEntrance == null ? 0 : this.storyEntrance.hashCode()) | 0; + result = imul(result, 31) + (this.bgPlayNotice == null ? 0 : this.bgPlayNotice.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KConfig_0)) + return false; + var tmp0_other_with_cast = other instanceof KConfig_0 ? other : THROW_CCE(); + if (!equals(this.online, tmp0_other_with_cast.online)) + return false; + if (!equals(this.playerIcon, tmp0_other_with_cast.playerIcon)) + return false; + if (!equals(this.storyEntrance, tmp0_other_with_cast.storyEntrance)) + return false; + if (!equals(this.bgPlayNotice, tmp0_other_with_cast.bgPlayNotice)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_v1_KConfig_7hc23l_k$(seen1, online, playerIcon, storyEntrance, bgPlayNotice, serializationConstructorMarker) { + Companion_instance_445; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_432().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.online = null; + else + $this.online = online; + if (0 === (seen1 & 2)) + $this.playerIcon = null; + else + $this.playerIcon = playerIcon; + if (0 === (seen1 & 4)) + $this.storyEntrance = null; + else + $this.storyEntrance = storyEntrance; + if (0 === (seen1 & 8)) + $this.bgPlayNotice = null; + else + $this.bgPlayNotice = bgPlayNotice; + return $this; + } + } + class Companion_446 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.v1.BgPlayNotice'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_433(); + } + } + class $serializer_433 { + constructor() { + $serializer_instance_433 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.v1.KBgPlayNotice', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('allowShow', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('text', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('btnText1', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('btnText2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [BooleanSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = false; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KBgPlayNotice.new_com_bapis_bilibili_app_viewunite_v1_KBgPlayNotice_1m9ak5_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_gehnjr_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.allowShow === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 0, value.allowShow); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.text === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.text); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.btnText1 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.btnText1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.btnText2 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.btnText2); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_gehnjr_k$(encoder, value instanceof KBgPlayNotice ? value : THROW_CCE()); + } + } + class KBgPlayNotice { + constructor(allowShow, text, btnText1, btnText2) { + Companion_instance_446; + allowShow = allowShow === VOID ? false : allowShow; + text = text === VOID ? '' : text; + btnText1 = btnText1 === VOID ? '' : btnText1; + btnText2 = btnText2 === VOID ? '' : btnText2; + this.allowShow = allowShow; + this.text = text; + this.btnText1 = btnText1; + this.btnText2 = btnText2; + } + get_allowShow_enzw3h_k$() { + return this.allowShow; + } + get_text_wouvsm_k$() { + return this.text; + } + get_btnText1_2w2bg1_k$() { + return this.btnText1; + } + get_btnText2_2w2bg2_k$() { + return this.btnText2; + } + component1_7eebsc_k$() { + return this.allowShow; + } + component2_7eebsb_k$() { + return this.text; + } + component3_7eebsa_k$() { + return this.btnText1; + } + component4_7eebs9_k$() { + return this.btnText2; + } + copy_ce5sdm_k$(allowShow, text, btnText1, btnText2) { + return new KBgPlayNotice(allowShow, text, btnText1, btnText2); + } + copy(allowShow, text, btnText1, btnText2, $super) { + allowShow = allowShow === VOID ? this.allowShow : allowShow; + text = text === VOID ? this.text : text; + btnText1 = btnText1 === VOID ? this.btnText1 : btnText1; + btnText2 = btnText2 === VOID ? this.btnText2 : btnText2; + return this.copy_ce5sdm_k$(allowShow, text, btnText1, btnText2); + } + toString() { + return 'KBgPlayNotice(allowShow=' + this.allowShow + ', text=' + this.text + ', btnText1=' + this.btnText1 + ', btnText2=' + this.btnText2 + ')'; + } + hashCode() { + var result = getBooleanHashCode(this.allowShow); + result = imul(result, 31) + getStringHashCode(this.text) | 0; + result = imul(result, 31) + getStringHashCode(this.btnText1) | 0; + result = imul(result, 31) + getStringHashCode(this.btnText2) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KBgPlayNotice)) + return false; + var tmp0_other_with_cast = other instanceof KBgPlayNotice ? other : THROW_CCE(); + if (!(this.allowShow === tmp0_other_with_cast.allowShow)) + return false; + if (!(this.text === tmp0_other_with_cast.text)) + return false; + if (!(this.btnText1 === tmp0_other_with_cast.btnText1)) + return false; + if (!(this.btnText2 === tmp0_other_with_cast.btnText2)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_v1_KBgPlayNotice_1m9ak5_k$(seen1, allowShow, text, btnText1, btnText2, serializationConstructorMarker) { + Companion_instance_446; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_433().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.allowShow = false; + else + $this.allowShow = allowShow; + if (0 === (seen1 & 2)) + $this.text = ''; + else + $this.text = text; + if (0 === (seen1 & 4)) + $this.btnText1 = ''; + else + $this.btnText1 = btnText1; + if (0 === (seen1 & 8)) + $this.btnText2 = ''; + else + $this.btnText2 = btnText2; + return $this; + } + } + class Companion_447 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.v1.StoryEntrance'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_434(); + } + } + class $serializer_434 { + constructor() { + $serializer_instance_434 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.v1.KStoryEntrance', this, 5); + tmp0_serialDesc.addElement_5pzumi_k$('arcPlayStory', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('storyIcon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('arcLandscapeStory', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('landscapeIcon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('playStory', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [BooleanSerializer_getInstance(), StringSerializer_getInstance(), BooleanSerializer_getInstance(), StringSerializer_getInstance(), BooleanSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = false; + var tmp5_local1 = null; + var tmp6_local2 = false; + var tmp7_local3 = null; + var tmp8_local4 = false; + var tmp9_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp9_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp9_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp9_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp9_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + } else + while (tmp1_flag) { + tmp2_index = tmp9_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp9_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp9_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp9_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp9_input.endStructure_1xqz0n_k$(tmp0_desc); + return KStoryEntrance.new_com_bapis_bilibili_app_viewunite_v1_KStoryEntrance_ihj90e_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); + } + serialize_5u5m31_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.arcPlayStory === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 0, value.arcPlayStory); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.storyIcon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.storyIcon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.arcLandscapeStory === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 2, value.arcLandscapeStory); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.landscapeIcon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.landscapeIcon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.playStory === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 4, value.playStory); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_5u5m31_k$(encoder, value instanceof KStoryEntrance ? value : THROW_CCE()); + } + } + class KStoryEntrance { + constructor(arcPlayStory, storyIcon, arcLandscapeStory, landscapeIcon, playStory) { + Companion_instance_447; + arcPlayStory = arcPlayStory === VOID ? false : arcPlayStory; + storyIcon = storyIcon === VOID ? '' : storyIcon; + arcLandscapeStory = arcLandscapeStory === VOID ? false : arcLandscapeStory; + landscapeIcon = landscapeIcon === VOID ? '' : landscapeIcon; + playStory = playStory === VOID ? false : playStory; + this.arcPlayStory = arcPlayStory; + this.storyIcon = storyIcon; + this.arcLandscapeStory = arcLandscapeStory; + this.landscapeIcon = landscapeIcon; + this.playStory = playStory; + } + get_arcPlayStory_flauh4_k$() { + return this.arcPlayStory; + } + get_storyIcon_y8fq8r_k$() { + return this.storyIcon; + } + get_arcLandscapeStory_xxo3wd_k$() { + return this.arcLandscapeStory; + } + get_landscapeIcon_yo7pzp_k$() { + return this.landscapeIcon; + } + get_playStory_mpw9zc_k$() { + return this.playStory; + } + component1_7eebsc_k$() { + return this.arcPlayStory; + } + component2_7eebsb_k$() { + return this.storyIcon; + } + component3_7eebsa_k$() { + return this.arcLandscapeStory; + } + component4_7eebs9_k$() { + return this.landscapeIcon; + } + component5_7eebs8_k$() { + return this.playStory; + } + copy_sw4d2e_k$(arcPlayStory, storyIcon, arcLandscapeStory, landscapeIcon, playStory) { + return new KStoryEntrance(arcPlayStory, storyIcon, arcLandscapeStory, landscapeIcon, playStory); + } + copy(arcPlayStory, storyIcon, arcLandscapeStory, landscapeIcon, playStory, $super) { + arcPlayStory = arcPlayStory === VOID ? this.arcPlayStory : arcPlayStory; + storyIcon = storyIcon === VOID ? this.storyIcon : storyIcon; + arcLandscapeStory = arcLandscapeStory === VOID ? this.arcLandscapeStory : arcLandscapeStory; + landscapeIcon = landscapeIcon === VOID ? this.landscapeIcon : landscapeIcon; + playStory = playStory === VOID ? this.playStory : playStory; + return this.copy_sw4d2e_k$(arcPlayStory, storyIcon, arcLandscapeStory, landscapeIcon, playStory); + } + toString() { + return 'KStoryEntrance(arcPlayStory=' + this.arcPlayStory + ', storyIcon=' + this.storyIcon + ', arcLandscapeStory=' + this.arcLandscapeStory + ', landscapeIcon=' + this.landscapeIcon + ', playStory=' + this.playStory + ')'; + } + hashCode() { + var result = getBooleanHashCode(this.arcPlayStory); + result = imul(result, 31) + getStringHashCode(this.storyIcon) | 0; + result = imul(result, 31) + getBooleanHashCode(this.arcLandscapeStory) | 0; + result = imul(result, 31) + getStringHashCode(this.landscapeIcon) | 0; + result = imul(result, 31) + getBooleanHashCode(this.playStory) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KStoryEntrance)) + return false; + var tmp0_other_with_cast = other instanceof KStoryEntrance ? other : THROW_CCE(); + if (!(this.arcPlayStory === tmp0_other_with_cast.arcPlayStory)) + return false; + if (!(this.storyIcon === tmp0_other_with_cast.storyIcon)) + return false; + if (!(this.arcLandscapeStory === tmp0_other_with_cast.arcLandscapeStory)) + return false; + if (!(this.landscapeIcon === tmp0_other_with_cast.landscapeIcon)) + return false; + if (!(this.playStory === tmp0_other_with_cast.playStory)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_v1_KStoryEntrance_ihj90e_k$(seen1, arcPlayStory, storyIcon, arcLandscapeStory, landscapeIcon, playStory, serializationConstructorMarker) { + Companion_instance_447; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_434().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.arcPlayStory = false; + else + $this.arcPlayStory = arcPlayStory; + if (0 === (seen1 & 2)) + $this.storyIcon = ''; + else + $this.storyIcon = storyIcon; + if (0 === (seen1 & 4)) + $this.arcLandscapeStory = false; + else + $this.arcLandscapeStory = arcLandscapeStory; + if (0 === (seen1 & 8)) + $this.landscapeIcon = ''; + else + $this.landscapeIcon = landscapeIcon; + if (0 === (seen1 & 16)) + $this.playStory = false; + else + $this.playStory = playStory; + return $this; + } + } + class Companion_448 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.v1.PlayerIcon'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_435(); + } + } + class $serializer_435 { + constructor() { + $serializer_instance_435 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.v1.KPlayerIcon', this, 9); + tmp0_serialDesc.addElement_5pzumi_k$('url1', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('hash1', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('url2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('hash2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('dragLeftPng', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('middlePng', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('dragRightPng', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('dragData', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('nodragData', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_436()), get_nullable($serializer_getInstance_436())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_local8 = null; + var tmp13_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp13_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_436(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_436(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + } else + while (tmp1_flag) { + tmp2_index = tmp13_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_436(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_436(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp13_input.endStructure_1xqz0n_k$(tmp0_desc); + return KPlayerIcon.new_com_bapis_bilibili_app_viewunite_v1_KPlayerIcon_x7npab_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, null); + } + serialize_rt9rwy_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.url1 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.url1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.hash1 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.hash1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.url2 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.url2); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.hash2 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.hash2); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.dragLeftPng === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.dragLeftPng); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.middlePng === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.middlePng); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.dragRightPng === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.dragRightPng); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.dragData == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 7, $serializer_getInstance_436(), value.dragData); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.nodragData == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 8, $serializer_getInstance_436(), value.nodragData); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_rt9rwy_k$(encoder, value instanceof KPlayerIcon ? value : THROW_CCE()); + } + } + class KPlayerIcon { + constructor(url1, hash1, url2, hash2, dragLeftPng, middlePng, dragRightPng, dragData, nodragData) { + Companion_instance_448; + url1 = url1 === VOID ? '' : url1; + hash1 = hash1 === VOID ? '' : hash1; + url2 = url2 === VOID ? '' : url2; + hash2 = hash2 === VOID ? '' : hash2; + dragLeftPng = dragLeftPng === VOID ? '' : dragLeftPng; + middlePng = middlePng === VOID ? '' : middlePng; + dragRightPng = dragRightPng === VOID ? '' : dragRightPng; + dragData = dragData === VOID ? null : dragData; + nodragData = nodragData === VOID ? null : nodragData; + this.url1 = url1; + this.hash1 = hash1; + this.url2 = url2; + this.hash2 = hash2; + this.dragLeftPng = dragLeftPng; + this.middlePng = middlePng; + this.dragRightPng = dragRightPng; + this.dragData = dragData; + this.nodragData = nodragData; + } + get_url1_wovs2z_k$() { + return this.url1; + } + get_hash1_isceyi_k$() { + return this.hash1; + } + get_url2_wovs30_k$() { + return this.url2; + } + get_hash2_isceyj_k$() { + return this.hash2; + } + get_dragLeftPng_ycwtqz_k$() { + return this.dragLeftPng; + } + get_middlePng_ey9siz_k$() { + return this.middlePng; + } + get_dragRightPng_j7hhje_k$() { + return this.dragRightPng; + } + get_dragData_pas5on_k$() { + return this.dragData; + } + get_nodragData_g03454_k$() { + return this.nodragData; + } + component1_7eebsc_k$() { + return this.url1; + } + component2_7eebsb_k$() { + return this.hash1; + } + component3_7eebsa_k$() { + return this.url2; + } + component4_7eebs9_k$() { + return this.hash2; + } + component5_7eebs8_k$() { + return this.dragLeftPng; + } + component6_7eebs7_k$() { + return this.middlePng; + } + component7_7eebs6_k$() { + return this.dragRightPng; + } + component8_7eebs5_k$() { + return this.dragData; + } + component9_7eebs4_k$() { + return this.nodragData; + } + copy_s3utnz_k$(url1, hash1, url2, hash2, dragLeftPng, middlePng, dragRightPng, dragData, nodragData) { + return new KPlayerIcon(url1, hash1, url2, hash2, dragLeftPng, middlePng, dragRightPng, dragData, nodragData); + } + copy(url1, hash1, url2, hash2, dragLeftPng, middlePng, dragRightPng, dragData, nodragData, $super) { + url1 = url1 === VOID ? this.url1 : url1; + hash1 = hash1 === VOID ? this.hash1 : hash1; + url2 = url2 === VOID ? this.url2 : url2; + hash2 = hash2 === VOID ? this.hash2 : hash2; + dragLeftPng = dragLeftPng === VOID ? this.dragLeftPng : dragLeftPng; + middlePng = middlePng === VOID ? this.middlePng : middlePng; + dragRightPng = dragRightPng === VOID ? this.dragRightPng : dragRightPng; + dragData = dragData === VOID ? this.dragData : dragData; + nodragData = nodragData === VOID ? this.nodragData : nodragData; + return this.copy_s3utnz_k$(url1, hash1, url2, hash2, dragLeftPng, middlePng, dragRightPng, dragData, nodragData); + } + toString() { + return 'KPlayerIcon(url1=' + this.url1 + ', hash1=' + this.hash1 + ', url2=' + this.url2 + ', hash2=' + this.hash2 + ', dragLeftPng=' + this.dragLeftPng + ', middlePng=' + this.middlePng + ', dragRightPng=' + this.dragRightPng + ', dragData=' + this.dragData + ', nodragData=' + this.nodragData + ')'; + } + hashCode() { + var result = getStringHashCode(this.url1); + result = imul(result, 31) + getStringHashCode(this.hash1) | 0; + result = imul(result, 31) + getStringHashCode(this.url2) | 0; + result = imul(result, 31) + getStringHashCode(this.hash2) | 0; + result = imul(result, 31) + getStringHashCode(this.dragLeftPng) | 0; + result = imul(result, 31) + getStringHashCode(this.middlePng) | 0; + result = imul(result, 31) + getStringHashCode(this.dragRightPng) | 0; + result = imul(result, 31) + (this.dragData == null ? 0 : this.dragData.hashCode()) | 0; + result = imul(result, 31) + (this.nodragData == null ? 0 : this.nodragData.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KPlayerIcon)) + return false; + var tmp0_other_with_cast = other instanceof KPlayerIcon ? other : THROW_CCE(); + if (!(this.url1 === tmp0_other_with_cast.url1)) + return false; + if (!(this.hash1 === tmp0_other_with_cast.hash1)) + return false; + if (!(this.url2 === tmp0_other_with_cast.url2)) + return false; + if (!(this.hash2 === tmp0_other_with_cast.hash2)) + return false; + if (!(this.dragLeftPng === tmp0_other_with_cast.dragLeftPng)) + return false; + if (!(this.middlePng === tmp0_other_with_cast.middlePng)) + return false; + if (!(this.dragRightPng === tmp0_other_with_cast.dragRightPng)) + return false; + if (!equals(this.dragData, tmp0_other_with_cast.dragData)) + return false; + if (!equals(this.nodragData, tmp0_other_with_cast.nodragData)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_v1_KPlayerIcon_x7npab_k$(seen1, url1, hash1, url2, hash2, dragLeftPng, middlePng, dragRightPng, dragData, nodragData, serializationConstructorMarker) { + Companion_instance_448; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_435().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.url1 = ''; + else + $this.url1 = url1; + if (0 === (seen1 & 2)) + $this.hash1 = ''; + else + $this.hash1 = hash1; + if (0 === (seen1 & 4)) + $this.url2 = ''; + else + $this.url2 = url2; + if (0 === (seen1 & 8)) + $this.hash2 = ''; + else + $this.hash2 = hash2; + if (0 === (seen1 & 16)) + $this.dragLeftPng = ''; + else + $this.dragLeftPng = dragLeftPng; + if (0 === (seen1 & 32)) + $this.middlePng = ''; + else + $this.middlePng = middlePng; + if (0 === (seen1 & 64)) + $this.dragRightPng = ''; + else + $this.dragRightPng = dragRightPng; + if (0 === (seen1 & 128)) + $this.dragData = null; + else + $this.dragData = dragData; + if (0 === (seen1 & 256)) + $this.nodragData = null; + else + $this.nodragData = nodragData; + return $this; + } + } + class Companion_449 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.v1.IconData'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_436(); + } + } + class $serializer_436 { + constructor() { + $serializer_instance_436 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.v1.KIconData', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('metaJson', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('spritsImg', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KIconData.new_com_bapis_bilibili_app_viewunite_v1_KIconData_scnrn_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_ifwdkr_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.metaJson === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.metaJson); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.spritsImg === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.spritsImg); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_ifwdkr_k$(encoder, value instanceof KIconData ? value : THROW_CCE()); + } + } + class KIconData { + constructor(metaJson, spritsImg) { + Companion_instance_449; + metaJson = metaJson === VOID ? '' : metaJson; + spritsImg = spritsImg === VOID ? '' : spritsImg; + this.metaJson = metaJson; + this.spritsImg = spritsImg; + } + get_metaJson_vrsxg6_k$() { + return this.metaJson; + } + get_spritsImg_w921qf_k$() { + return this.spritsImg; + } + component1_7eebsc_k$() { + return this.metaJson; + } + component2_7eebsb_k$() { + return this.spritsImg; + } + copy_plwnsl_k$(metaJson, spritsImg) { + return new KIconData(metaJson, spritsImg); + } + copy(metaJson, spritsImg, $super) { + metaJson = metaJson === VOID ? this.metaJson : metaJson; + spritsImg = spritsImg === VOID ? this.spritsImg : spritsImg; + return this.copy_plwnsl_k$(metaJson, spritsImg); + } + toString() { + return 'KIconData(metaJson=' + this.metaJson + ', spritsImg=' + this.spritsImg + ')'; + } + hashCode() { + var result = getStringHashCode(this.metaJson); + result = imul(result, 31) + getStringHashCode(this.spritsImg) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KIconData)) + return false; + var tmp0_other_with_cast = other instanceof KIconData ? other : THROW_CCE(); + if (!(this.metaJson === tmp0_other_with_cast.metaJson)) + return false; + if (!(this.spritsImg === tmp0_other_with_cast.spritsImg)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_v1_KIconData_scnrn_k$(seen1, metaJson, spritsImg, serializationConstructorMarker) { + Companion_instance_449; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_436().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.metaJson = ''; + else + $this.metaJson = metaJson; + if (0 === (seen1 & 2)) + $this.spritsImg = ''; + else + $this.spritsImg = spritsImg; + return $this; + } + } + class Companion_450 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.v1.Online'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_437(); + } + } + class $serializer_437 { + constructor() { + $serializer_instance_437 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.v1.KOnline', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('onlineShow', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [BooleanSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = false; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KOnline.new_com_bapis_bilibili_app_viewunite_v1_KOnline_9paz36_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_2dqhaj_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.onlineShow === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 0, value.onlineShow); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_2dqhaj_k$(encoder, value instanceof KOnline ? value : THROW_CCE()); + } + } + class KOnline { + constructor(onlineShow) { + Companion_instance_450; + onlineShow = onlineShow === VOID ? false : onlineShow; + this.onlineShow = onlineShow; + } + get_onlineShow_qt0ps7_k$() { + return this.onlineShow; + } + component1_7eebsc_k$() { + return this.onlineShow; + } + copy_o18wmo_k$(onlineShow) { + return new KOnline(onlineShow); + } + copy(onlineShow, $super) { + onlineShow = onlineShow === VOID ? this.onlineShow : onlineShow; + return this.copy_o18wmo_k$(onlineShow); + } + toString() { + return 'KOnline(onlineShow=' + this.onlineShow + ')'; + } + hashCode() { + return getBooleanHashCode(this.onlineShow); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KOnline)) + return false; + var tmp0_other_with_cast = other instanceof KOnline ? other : THROW_CCE(); + if (!(this.onlineShow === tmp0_other_with_cast.onlineShow)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_v1_KOnline_9paz36_k$(seen1, onlineShow, serializationConstructorMarker) { + Companion_instance_450; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_437().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.onlineShow = false; + else + $this.onlineShow = onlineShow; + return $this; + } + } + class Companion_451 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.v1.PageControl'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_438(); + } + } + class $serializer_438 { + constructor() { + $serializer_instance_438 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.v1.KPageControl', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('toastShow', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('materialShow', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('upShow', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_439()), get_nullable($serializer_getInstance_439()), get_nullable($serializer_getInstance_439())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_439(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_439(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_439(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_439(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_439(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_439(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KPageControl.new_com_bapis_bilibili_app_viewunite_v1_KPageControl_661ke7_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_q0wxqo_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.toastShow == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_439(), value.toastShow); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.materialShow == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_439(), value.materialShow); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.upShow == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_439(), value.upShow); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_q0wxqo_k$(encoder, value instanceof KPageControl ? value : THROW_CCE()); + } + } + class KPageControl { + constructor(toastShow, materialShow, upShow) { + Companion_instance_451; + toastShow = toastShow === VOID ? null : toastShow; + materialShow = materialShow === VOID ? null : materialShow; + upShow = upShow === VOID ? null : upShow; + this.toastShow = toastShow; + this.materialShow = materialShow; + this.upShow = upShow; + } + get_toastShow_cuxdej_k$() { + return this.toastShow; + } + get_materialShow_ug1d6b_k$() { + return this.materialShow; + } + get_upShow_kj21xd_k$() { + return this.upShow; + } + component1_7eebsc_k$() { + return this.toastShow; + } + component2_7eebsb_k$() { + return this.materialShow; + } + component3_7eebsa_k$() { + return this.upShow; + } + copy_tjs32_k$(toastShow, materialShow, upShow) { + return new KPageControl(toastShow, materialShow, upShow); + } + copy(toastShow, materialShow, upShow, $super) { + toastShow = toastShow === VOID ? this.toastShow : toastShow; + materialShow = materialShow === VOID ? this.materialShow : materialShow; + upShow = upShow === VOID ? this.upShow : upShow; + return this.copy_tjs32_k$(toastShow, materialShow, upShow); + } + toString() { + return 'KPageControl(toastShow=' + this.toastShow + ', materialShow=' + this.materialShow + ', upShow=' + this.upShow + ')'; + } + hashCode() { + var result = this.toastShow == null ? 0 : this.toastShow.hashCode(); + result = imul(result, 31) + (this.materialShow == null ? 0 : this.materialShow.hashCode()) | 0; + result = imul(result, 31) + (this.upShow == null ? 0 : this.upShow.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KPageControl)) + return false; + var tmp0_other_with_cast = other instanceof KPageControl ? other : THROW_CCE(); + if (!equals(this.toastShow, tmp0_other_with_cast.toastShow)) + return false; + if (!equals(this.materialShow, tmp0_other_with_cast.materialShow)) + return false; + if (!equals(this.upShow, tmp0_other_with_cast.upShow)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_v1_KPageControl_661ke7_k$(seen1, toastShow, materialShow, upShow, serializationConstructorMarker) { + Companion_instance_451; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_438().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.toastShow = null; + else + $this.toastShow = toastShow; + if (0 === (seen1 & 2)) + $this.materialShow = null; + else + $this.materialShow = materialShow; + if (0 === (seen1 & 4)) + $this.upShow = null; + else + $this.upShow = upShow; + return $this; + } + } + class Companion_452 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.v1.Control'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_439(); + } + } + class $serializer_439 { + constructor() { + $serializer_instance_439 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.v1.KControl', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('limit', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [BooleanSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = false; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KControl.new_com_bapis_bilibili_app_viewunite_v1_KControl_n4d81c_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_d51owx_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.limit === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 0, value.limit); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_d51owx_k$(encoder, value instanceof KControl ? value : THROW_CCE()); + } + } + class KControl { + constructor(limit) { + Companion_instance_452; + limit = limit === VOID ? false : limit; + this.limit = limit; + } + get_limit_iuokuq_k$() { + return this.limit; + } + component1_7eebsc_k$() { + return this.limit; + } + copy_o18wmo_k$(limit) { + return new KControl(limit); + } + copy(limit, $super) { + limit = limit === VOID ? this.limit : limit; + return this.copy_o18wmo_k$(limit); + } + toString() { + return 'KControl(limit=' + this.limit + ')'; + } + hashCode() { + return getBooleanHashCode(this.limit); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KControl)) + return false; + var tmp0_other_with_cast = other instanceof KControl ? other : THROW_CCE(); + if (!(this.limit === tmp0_other_with_cast.limit)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_v1_KControl_n4d81c_k$(seen1, limit, serializationConstructorMarker) { + Companion_instance_452; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_439().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.limit = false; + else + $this.limit = limit; + return $this; + } + } + class Companion_453 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.v1.ActivityResource'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_440(); + } + } + class $serializer_440 { + constructor() { + $serializer_instance_440 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.v1.KActivityResource', this, 6); + tmp0_serialDesc.addElement_5pzumi_k$('darkTextColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('dividerColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('bgColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('selectedBgColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('textColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('lightTextColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp10_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + } else + while (tmp1_flag) { + tmp2_index = tmp10_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp10_input.endStructure_1xqz0n_k$(tmp0_desc); + return KActivityResource_0.new_com_bapis_bilibili_app_viewunite_v1_KActivityResource_zdig5z_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); + } + serialize_dgldaj_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.darkTextColor === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.darkTextColor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.dividerColor === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.dividerColor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.bgColor === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.bgColor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.selectedBgColor === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.selectedBgColor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.textColor === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.textColor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.lightTextColor === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.lightTextColor); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_dgldaj_k$(encoder, value instanceof KActivityResource_0 ? value : THROW_CCE()); + } + } + class KActivityResource_0 { + constructor(darkTextColor, dividerColor, bgColor, selectedBgColor, textColor, lightTextColor) { + Companion_instance_453; + darkTextColor = darkTextColor === VOID ? '' : darkTextColor; + dividerColor = dividerColor === VOID ? '' : dividerColor; + bgColor = bgColor === VOID ? '' : bgColor; + selectedBgColor = selectedBgColor === VOID ? '' : selectedBgColor; + textColor = textColor === VOID ? '' : textColor; + lightTextColor = lightTextColor === VOID ? '' : lightTextColor; + this.darkTextColor = darkTextColor; + this.dividerColor = dividerColor; + this.bgColor = bgColor; + this.selectedBgColor = selectedBgColor; + this.textColor = textColor; + this.lightTextColor = lightTextColor; + } + get_darkTextColor_lq2sax_k$() { + return this.darkTextColor; + } + get_dividerColor_fw9z3h_k$() { + return this.dividerColor; + } + get_bgColor_24ewuj_k$() { + return this.bgColor; + } + get_selectedBgColor_r06s62_k$() { + return this.selectedBgColor; + } + get_textColor_92p84z_k$() { + return this.textColor; + } + get_lightTextColor_5mb5c9_k$() { + return this.lightTextColor; + } + component1_7eebsc_k$() { + return this.darkTextColor; + } + component2_7eebsb_k$() { + return this.dividerColor; + } + component3_7eebsa_k$() { + return this.bgColor; + } + component4_7eebs9_k$() { + return this.selectedBgColor; + } + component5_7eebs8_k$() { + return this.textColor; + } + component6_7eebs7_k$() { + return this.lightTextColor; + } + copy_sq36gl_k$(darkTextColor, dividerColor, bgColor, selectedBgColor, textColor, lightTextColor) { + return new KActivityResource_0(darkTextColor, dividerColor, bgColor, selectedBgColor, textColor, lightTextColor); + } + copy(darkTextColor, dividerColor, bgColor, selectedBgColor, textColor, lightTextColor, $super) { + darkTextColor = darkTextColor === VOID ? this.darkTextColor : darkTextColor; + dividerColor = dividerColor === VOID ? this.dividerColor : dividerColor; + bgColor = bgColor === VOID ? this.bgColor : bgColor; + selectedBgColor = selectedBgColor === VOID ? this.selectedBgColor : selectedBgColor; + textColor = textColor === VOID ? this.textColor : textColor; + lightTextColor = lightTextColor === VOID ? this.lightTextColor : lightTextColor; + return this.copy_sq36gl_k$(darkTextColor, dividerColor, bgColor, selectedBgColor, textColor, lightTextColor); + } + toString() { + return 'KActivityResource(darkTextColor=' + this.darkTextColor + ', dividerColor=' + this.dividerColor + ', bgColor=' + this.bgColor + ', selectedBgColor=' + this.selectedBgColor + ', textColor=' + this.textColor + ', lightTextColor=' + this.lightTextColor + ')'; + } + hashCode() { + var result = getStringHashCode(this.darkTextColor); + result = imul(result, 31) + getStringHashCode(this.dividerColor) | 0; + result = imul(result, 31) + getStringHashCode(this.bgColor) | 0; + result = imul(result, 31) + getStringHashCode(this.selectedBgColor) | 0; + result = imul(result, 31) + getStringHashCode(this.textColor) | 0; + result = imul(result, 31) + getStringHashCode(this.lightTextColor) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KActivityResource_0)) + return false; + var tmp0_other_with_cast = other instanceof KActivityResource_0 ? other : THROW_CCE(); + if (!(this.darkTextColor === tmp0_other_with_cast.darkTextColor)) + return false; + if (!(this.dividerColor === tmp0_other_with_cast.dividerColor)) + return false; + if (!(this.bgColor === tmp0_other_with_cast.bgColor)) + return false; + if (!(this.selectedBgColor === tmp0_other_with_cast.selectedBgColor)) + return false; + if (!(this.textColor === tmp0_other_with_cast.textColor)) + return false; + if (!(this.lightTextColor === tmp0_other_with_cast.lightTextColor)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_v1_KActivityResource_zdig5z_k$(seen1, darkTextColor, dividerColor, bgColor, selectedBgColor, textColor, lightTextColor, serializationConstructorMarker) { + Companion_instance_453; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_440().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.darkTextColor = ''; + else + $this.darkTextColor = darkTextColor; + if (0 === (seen1 & 2)) + $this.dividerColor = ''; + else + $this.dividerColor = dividerColor; + if (0 === (seen1 & 4)) + $this.bgColor = ''; + else + $this.bgColor = bgColor; + if (0 === (seen1 & 8)) + $this.selectedBgColor = ''; + else + $this.selectedBgColor = selectedBgColor; + if (0 === (seen1 & 16)) + $this.textColor = ''; + else + $this.textColor = textColor; + if (0 === (seen1 & 32)) + $this.lightTextColor = ''; + else + $this.lightTextColor = lightTextColor; + return $this; + } + } + class Companion_454 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.v1.Arc'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_441(); + } + } + class $serializer_441 { + constructor() { + $serializer_instance_441 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.v1.KArc', this, 10); + tmp0_serialDesc.addElement_5pzumi_k$('aid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('cid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('duration', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('stat', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('bvid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('copyright', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('right', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('typeId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable($serializer_getInstance_387()), StringSerializer_getInstance(), IntSerializer_getInstance(), get_nullable($serializer_getInstance_442()), StringSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = new Long(0, 0); + var tmp6_local2 = new Long(0, 0); + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = 0; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_local8 = new Long(0, 0); + var tmp13_local9 = null; + var tmp14_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp14_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_387(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_442(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + } else + while (tmp1_flag) { + tmp2_index = tmp14_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_387(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_442(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp14_input.endStructure_1xqz0n_k$(tmp0_desc); + return KArc.new_com_bapis_bilibili_app_viewunite_v1_KArc_smaud4_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, null); + } + serialize_b22bik_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.aid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.aid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.cid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.cid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.duration.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.duration); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.stat == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_387(), value.stat); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.bvid === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.bvid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.copyright === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 5, value.copyright); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.right == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 6, $serializer_getInstance_442(), value.right); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.cover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !value.typeId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 8, value.typeId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 9, value.title); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_b22bik_k$(encoder, value instanceof KArc ? value : THROW_CCE()); + } + } + class KArc { + constructor(aid, cid, duration, stat, bvid, copyright, right, cover, typeId, title) { + Companion_instance_454; + aid = aid === VOID ? new Long(0, 0) : aid; + cid = cid === VOID ? new Long(0, 0) : cid; + duration = duration === VOID ? new Long(0, 0) : duration; + stat = stat === VOID ? null : stat; + bvid = bvid === VOID ? '' : bvid; + copyright = copyright === VOID ? 0 : copyright; + right = right === VOID ? null : right; + cover = cover === VOID ? '' : cover; + typeId = typeId === VOID ? new Long(0, 0) : typeId; + title = title === VOID ? '' : title; + this.aid = aid; + this.cid = cid; + this.duration = duration; + this.stat = stat; + this.bvid = bvid; + this.copyright = copyright; + this.right = right; + this.cover = cover; + this.typeId = typeId; + this.title = title; + } + get_aid_18j9kd_k$() { + return this.aid; + } + get_cid_18j82z_k$() { + return this.cid; + } + get_duration_6a6kpp_k$() { + return this.duration; + } + get_stat_woujdp_k$() { + return this.stat; + } + get_bvid_wojq9k_k$() { + return this.bvid; + } + get_copyright_xp7me6_k$() { + return this.copyright; + } + get_right_ixz7xv_k$() { + return this.right; + } + get_cover_ipug0e_k$() { + return this.cover; + } + get_typeId_k7h0ce_k$() { + return this.typeId; + } + get_title_iz32un_k$() { + return this.title; + } + component1_7eebsc_k$() { + return this.aid; + } + component2_7eebsb_k$() { + return this.cid; + } + component3_7eebsa_k$() { + return this.duration; + } + component4_7eebs9_k$() { + return this.stat; + } + component5_7eebs8_k$() { + return this.bvid; + } + component6_7eebs7_k$() { + return this.copyright; + } + component7_7eebs6_k$() { + return this.right; + } + component8_7eebs5_k$() { + return this.cover; + } + component9_7eebs4_k$() { + return this.typeId; + } + component10_gazzfo_k$() { + return this.title; + } + copy_kulbwy_k$(aid, cid, duration, stat, bvid, copyright, right, cover, typeId, title) { + return new KArc(aid, cid, duration, stat, bvid, copyright, right, cover, typeId, title); + } + copy(aid, cid, duration, stat, bvid, copyright, right, cover, typeId, title, $super) { + aid = aid === VOID ? this.aid : aid; + cid = cid === VOID ? this.cid : cid; + duration = duration === VOID ? this.duration : duration; + stat = stat === VOID ? this.stat : stat; + bvid = bvid === VOID ? this.bvid : bvid; + copyright = copyright === VOID ? this.copyright : copyright; + right = right === VOID ? this.right : right; + cover = cover === VOID ? this.cover : cover; + typeId = typeId === VOID ? this.typeId : typeId; + title = title === VOID ? this.title : title; + return this.copy_kulbwy_k$(aid, cid, duration, stat, bvid, copyright, right, cover, typeId, title); + } + toString() { + return 'KArc(aid=' + this.aid.toString() + ', cid=' + this.cid.toString() + ', duration=' + this.duration.toString() + ', stat=' + this.stat + ', bvid=' + this.bvid + ', copyright=' + this.copyright + ', right=' + this.right + ', cover=' + this.cover + ', typeId=' + this.typeId.toString() + ', title=' + this.title + ')'; + } + hashCode() { + var result = this.aid.hashCode(); + result = imul(result, 31) + this.cid.hashCode() | 0; + result = imul(result, 31) + this.duration.hashCode() | 0; + result = imul(result, 31) + (this.stat == null ? 0 : this.stat.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.bvid) | 0; + result = imul(result, 31) + this.copyright | 0; + result = imul(result, 31) + (this.right == null ? 0 : this.right.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.cover) | 0; + result = imul(result, 31) + this.typeId.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.title) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KArc)) + return false; + var tmp0_other_with_cast = other instanceof KArc ? other : THROW_CCE(); + if (!this.aid.equals(tmp0_other_with_cast.aid)) + return false; + if (!this.cid.equals(tmp0_other_with_cast.cid)) + return false; + if (!this.duration.equals(tmp0_other_with_cast.duration)) + return false; + if (!equals(this.stat, tmp0_other_with_cast.stat)) + return false; + if (!(this.bvid === tmp0_other_with_cast.bvid)) + return false; + if (!(this.copyright === tmp0_other_with_cast.copyright)) + return false; + if (!equals(this.right, tmp0_other_with_cast.right)) + return false; + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + if (!this.typeId.equals(tmp0_other_with_cast.typeId)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_v1_KArc_smaud4_k$(seen1, aid, cid, duration, stat, bvid, copyright, right, cover, typeId, title, serializationConstructorMarker) { + Companion_instance_454; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_441().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.aid = new Long(0, 0); + else + $this.aid = aid; + if (0 === (seen1 & 2)) + $this.cid = new Long(0, 0); + else + $this.cid = cid; + if (0 === (seen1 & 4)) + $this.duration = new Long(0, 0); + else + $this.duration = duration; + if (0 === (seen1 & 8)) + $this.stat = null; + else + $this.stat = stat; + if (0 === (seen1 & 16)) + $this.bvid = ''; + else + $this.bvid = bvid; + if (0 === (seen1 & 32)) + $this.copyright = 0; + else + $this.copyright = copyright; + if (0 === (seen1 & 64)) + $this.right = null; + else + $this.right = right; + if (0 === (seen1 & 128)) + $this.cover = ''; + else + $this.cover = cover; + if (0 === (seen1 & 256)) + $this.typeId = new Long(0, 0); + else + $this.typeId = typeId; + if (0 === (seen1 & 512)) + $this.title = ''; + else + $this.title = title; + return $this; + } + } + class Companion_455 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.v1.Rights'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_442(); + } + } + class $serializer_442 { + constructor() { + $serializer_instance_442 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.v1.KRights', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('onlyVipDownload', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('noReprint', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('download', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = false; + var tmp5_local1 = false; + var tmp6_local2 = false; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KRights_0.new_com_bapis_bilibili_app_viewunite_v1_KRights_616fqy_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_yxq6mn_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.onlyVipDownload === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 0, value.onlyVipDownload); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.noReprint === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 1, value.noReprint); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.download === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 2, value.download); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_yxq6mn_k$(encoder, value instanceof KRights_0 ? value : THROW_CCE()); + } + } + class KRights_0 { + constructor(onlyVipDownload, noReprint, download) { + Companion_instance_455; + onlyVipDownload = onlyVipDownload === VOID ? false : onlyVipDownload; + noReprint = noReprint === VOID ? false : noReprint; + download = download === VOID ? false : download; + this.onlyVipDownload = onlyVipDownload; + this.noReprint = noReprint; + this.download = download; + } + get_onlyVipDownload_iilnrk_k$() { + return this.onlyVipDownload; + } + get_noReprint_ymmtsg_k$() { + return this.noReprint; + } + get_download_86umr3_k$() { + return this.download; + } + component1_7eebsc_k$() { + return this.onlyVipDownload; + } + component2_7eebsb_k$() { + return this.noReprint; + } + component3_7eebsa_k$() { + return this.download; + } + copy_u1udn4_k$(onlyVipDownload, noReprint, download) { + return new KRights_0(onlyVipDownload, noReprint, download); + } + copy(onlyVipDownload, noReprint, download, $super) { + onlyVipDownload = onlyVipDownload === VOID ? this.onlyVipDownload : onlyVipDownload; + noReprint = noReprint === VOID ? this.noReprint : noReprint; + download = download === VOID ? this.download : download; + return this.copy_u1udn4_k$(onlyVipDownload, noReprint, download); + } + toString() { + return 'KRights(onlyVipDownload=' + this.onlyVipDownload + ', noReprint=' + this.noReprint + ', download=' + this.download + ')'; + } + hashCode() { + var result = getBooleanHashCode(this.onlyVipDownload); + result = imul(result, 31) + getBooleanHashCode(this.noReprint) | 0; + result = imul(result, 31) + getBooleanHashCode(this.download) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KRights_0)) + return false; + var tmp0_other_with_cast = other instanceof KRights_0 ? other : THROW_CCE(); + if (!(this.onlyVipDownload === tmp0_other_with_cast.onlyVipDownload)) + return false; + if (!(this.noReprint === tmp0_other_with_cast.noReprint)) + return false; + if (!(this.download === tmp0_other_with_cast.download)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_v1_KRights_616fqy_k$(seen1, onlyVipDownload, noReprint, download, serializationConstructorMarker) { + Companion_instance_455; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_442().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.onlyVipDownload = false; + else + $this.onlyVipDownload = onlyVipDownload; + if (0 === (seen1 & 2)) + $this.noReprint = false; + else + $this.noReprint = noReprint; + if (0 === (seen1 & 4)) + $this.download = false; + else + $this.download = download; + return $this; + } + } + class Companion_456 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.v1.ViewProgressReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_443(); + } + } + class $serializer_443 { + constructor() { + $serializer_instance_443 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.v1.KViewProgressReq', this, 6); + tmp0_serialDesc.addElement_5pzumi_k$('aid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('cid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('upMid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('chronosParam', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('fragmentParam', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable($serializer_getInstance_446()), IntSerializer_getInstance(), get_nullable($serializer_getInstance_444())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = new Long(0, 0); + var tmp6_local2 = new Long(0, 0); + var tmp7_local3 = null; + var tmp8_local4 = 0; + var tmp9_local5 = null; + var tmp10_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp10_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_446(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_444(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + } else + while (tmp1_flag) { + tmp2_index = tmp10_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_446(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_444(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp10_input.endStructure_1xqz0n_k$(tmp0_desc); + return KViewProgressReq.new_com_bapis_bilibili_app_viewunite_v1_KViewProgressReq_5uwpua_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); + } + serialize_z6mvvy_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.aid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.aid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.cid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.cid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.upMid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.upMid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.chronosParam == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_446(), value.chronosParam); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.type === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 4, value.type); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.fragmentParam == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 5, $serializer_getInstance_444(), value.fragmentParam); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_z6mvvy_k$(encoder, value instanceof KViewProgressReq ? value : THROW_CCE()); + } + } + class KViewProgressReq { + constructor(aid, cid, upMid, chronosParam, type, fragmentParam) { + Companion_instance_456; + aid = aid === VOID ? new Long(0, 0) : aid; + cid = cid === VOID ? new Long(0, 0) : cid; + upMid = upMid === VOID ? new Long(0, 0) : upMid; + chronosParam = chronosParam === VOID ? null : chronosParam; + type = type === VOID ? 0 : type; + fragmentParam = fragmentParam === VOID ? null : fragmentParam; + this.aid = aid; + this.cid = cid; + this.upMid = upMid; + this.chronosParam = chronosParam; + this.type = type; + this.fragmentParam = fragmentParam; + } + get_aid_18j9kd_k$() { + return this.aid; + } + get_cid_18j82z_k$() { + return this.cid; + } + get_upMid_izqjd0_k$() { + return this.upMid; + } + get_chronosParam_348jne_k$() { + return this.chronosParam; + } + get_type_wovaf7_k$() { + return this.type; + } + get_fragmentParam_fnnpqk_k$() { + return this.fragmentParam; + } + typeEnum() { + return Companion_getInstance_415().fromValue(this.type); + } + component1_7eebsc_k$() { + return this.aid; + } + component2_7eebsb_k$() { + return this.cid; + } + component3_7eebsa_k$() { + return this.upMid; + } + component4_7eebs9_k$() { + return this.chronosParam; + } + component5_7eebs8_k$() { + return this.type; + } + component6_7eebs7_k$() { + return this.fragmentParam; + } + copy_5bli87_k$(aid, cid, upMid, chronosParam, type, fragmentParam) { + return new KViewProgressReq(aid, cid, upMid, chronosParam, type, fragmentParam); + } + copy(aid, cid, upMid, chronosParam, type, fragmentParam, $super) { + aid = aid === VOID ? this.aid : aid; + cid = cid === VOID ? this.cid : cid; + upMid = upMid === VOID ? this.upMid : upMid; + chronosParam = chronosParam === VOID ? this.chronosParam : chronosParam; + type = type === VOID ? this.type : type; + fragmentParam = fragmentParam === VOID ? this.fragmentParam : fragmentParam; + return this.copy_5bli87_k$(aid, cid, upMid, chronosParam, type, fragmentParam); + } + toString() { + return 'KViewProgressReq(aid=' + this.aid.toString() + ', cid=' + this.cid.toString() + ', upMid=' + this.upMid.toString() + ', chronosParam=' + this.chronosParam + ', type=' + this.type + ', fragmentParam=' + this.fragmentParam + ')'; + } + hashCode() { + var result = this.aid.hashCode(); + result = imul(result, 31) + this.cid.hashCode() | 0; + result = imul(result, 31) + this.upMid.hashCode() | 0; + result = imul(result, 31) + (this.chronosParam == null ? 0 : this.chronosParam.hashCode()) | 0; + result = imul(result, 31) + this.type | 0; + result = imul(result, 31) + (this.fragmentParam == null ? 0 : this.fragmentParam.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KViewProgressReq)) + return false; + var tmp0_other_with_cast = other instanceof KViewProgressReq ? other : THROW_CCE(); + if (!this.aid.equals(tmp0_other_with_cast.aid)) + return false; + if (!this.cid.equals(tmp0_other_with_cast.cid)) + return false; + if (!this.upMid.equals(tmp0_other_with_cast.upMid)) + return false; + if (!equals(this.chronosParam, tmp0_other_with_cast.chronosParam)) + return false; + if (!(this.type === tmp0_other_with_cast.type)) + return false; + if (!equals(this.fragmentParam, tmp0_other_with_cast.fragmentParam)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_v1_KViewProgressReq_5uwpua_k$(seen1, aid, cid, upMid, chronosParam, type, fragmentParam, serializationConstructorMarker) { + Companion_instance_456; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_443().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.aid = new Long(0, 0); + else + $this.aid = aid; + if (0 === (seen1 & 2)) + $this.cid = new Long(0, 0); + else + $this.cid = cid; + if (0 === (seen1 & 4)) + $this.upMid = new Long(0, 0); + else + $this.upMid = upMid; + if (0 === (seen1 & 8)) + $this.chronosParam = null; + else + $this.chronosParam = chronosParam; + if (0 === (seen1 & 16)) + $this.type = 0; + else + $this.type = type; + if (0 === (seen1 & 32)) + $this.fragmentParam = null; + else + $this.fragmentParam = fragmentParam; + return $this; + } + } + class Companion_457 { + constructor() { + Companion_instance_457 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer($serializer_getInstance_445())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.viewunite.v1.FragmentParam'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_444(); + } + } + class $serializer_444 { + constructor() { + $serializer_instance_444 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.v1.KFragmentParam', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('fragmentArcs', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_457().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp6_cached = Companion_getInstance_457().$childSerializers_1; + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KFragmentParam.new_com_bapis_bilibili_app_viewunite_v1_KFragmentParam_os33fp_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_kjhba9_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_457().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.fragmentArcs, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.fragmentArcs); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_kjhba9_k$(encoder, value instanceof KFragmentParam ? value : THROW_CCE()); + } + } + class KFragmentParam { + constructor(fragmentArcs) { + Companion_getInstance_457(); + fragmentArcs = fragmentArcs === VOID ? emptyList() : fragmentArcs; + this.fragmentArcs = fragmentArcs; + } + get_fragmentArcs_yvr27a_k$() { + return this.fragmentArcs; + } + component1_7eebsc_k$() { + return this.fragmentArcs; + } + copy_p44pay_k$(fragmentArcs) { + return new KFragmentParam(fragmentArcs); + } + copy(fragmentArcs, $super) { + fragmentArcs = fragmentArcs === VOID ? this.fragmentArcs : fragmentArcs; + return this.copy_p44pay_k$(fragmentArcs); + } + toString() { + return 'KFragmentParam(fragmentArcs=' + this.fragmentArcs + ')'; + } + hashCode() { + return hashCode(this.fragmentArcs); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KFragmentParam)) + return false; + var tmp0_other_with_cast = other instanceof KFragmentParam ? other : THROW_CCE(); + if (!equals(this.fragmentArcs, tmp0_other_with_cast.fragmentArcs)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_v1_KFragmentParam_os33fp_k$(seen1, fragmentArcs, serializationConstructorMarker) { + Companion_getInstance_457(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_444().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.fragmentArcs = emptyList(); + else + $this.fragmentArcs = fragmentArcs; + return $this; + } + } + class Companion_458 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.v1.FragmentArc'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_445(); + } + } + class $serializer_445 { + constructor() { + $serializer_instance_445 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.v1.KFragmentArc', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('aid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('cid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = new Long(0, 0); + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KFragmentArc.new_com_bapis_bilibili_app_viewunite_v1_KFragmentArc_at9j90_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_3jddc4_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.aid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.aid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.cid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.cid); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_3jddc4_k$(encoder, value instanceof KFragmentArc ? value : THROW_CCE()); + } + } + class KFragmentArc { + constructor(aid, cid) { + Companion_instance_458; + aid = aid === VOID ? new Long(0, 0) : aid; + cid = cid === VOID ? new Long(0, 0) : cid; + this.aid = aid; + this.cid = cid; + } + get_aid_18j9kd_k$() { + return this.aid; + } + get_cid_18j82z_k$() { + return this.cid; + } + component1_7eebsc_k$() { + return this.aid; + } + component2_7eebsb_k$() { + return this.cid; + } + copy_bynm9d_k$(aid, cid) { + return new KFragmentArc(aid, cid); + } + copy(aid, cid, $super) { + aid = aid === VOID ? this.aid : aid; + cid = cid === VOID ? this.cid : cid; + return this.copy_bynm9d_k$(aid, cid); + } + toString() { + return 'KFragmentArc(aid=' + this.aid.toString() + ', cid=' + this.cid.toString() + ')'; + } + hashCode() { + var result = this.aid.hashCode(); + result = imul(result, 31) + this.cid.hashCode() | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KFragmentArc)) + return false; + var tmp0_other_with_cast = other instanceof KFragmentArc ? other : THROW_CCE(); + if (!this.aid.equals(tmp0_other_with_cast.aid)) + return false; + if (!this.cid.equals(tmp0_other_with_cast.cid)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_v1_KFragmentArc_at9j90_k$(seen1, aid, cid, serializationConstructorMarker) { + Companion_instance_458; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_445().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.aid = new Long(0, 0); + else + $this.aid = aid; + if (0 === (seen1 & 2)) + $this.cid = new Long(0, 0); + else + $this.cid = cid; + return $this; + } + } + class Companion_459 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.v1.ChronosParam'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_446(); + } + } + class $serializer_446 { + constructor() { + $serializer_instance_446 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.v1.KChronosParam', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('engineVersion', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('messageProtocol', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('serviceKey', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KChronosParam.new_com_bapis_bilibili_app_viewunite_v1_KChronosParam_q2fhgs_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_u5zw8l_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.engineVersion === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.engineVersion); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.messageProtocol === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.messageProtocol); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.serviceKey === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.serviceKey); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_u5zw8l_k$(encoder, value instanceof KChronosParam ? value : THROW_CCE()); + } + } + class KChronosParam { + constructor(engineVersion, messageProtocol, serviceKey) { + Companion_instance_459; + engineVersion = engineVersion === VOID ? '' : engineVersion; + messageProtocol = messageProtocol === VOID ? '' : messageProtocol; + serviceKey = serviceKey === VOID ? '' : serviceKey; + this.engineVersion = engineVersion; + this.messageProtocol = messageProtocol; + this.serviceKey = serviceKey; + } + get_engineVersion_omxlgz_k$() { + return this.engineVersion; + } + get_messageProtocol_yfoca2_k$() { + return this.messageProtocol; + } + get_serviceKey_mbywhf_k$() { + return this.serviceKey; + } + component1_7eebsc_k$() { + return this.engineVersion; + } + component2_7eebsb_k$() { + return this.messageProtocol; + } + component3_7eebsa_k$() { + return this.serviceKey; + } + copy_nc7k0r_k$(engineVersion, messageProtocol, serviceKey) { + return new KChronosParam(engineVersion, messageProtocol, serviceKey); + } + copy(engineVersion, messageProtocol, serviceKey, $super) { + engineVersion = engineVersion === VOID ? this.engineVersion : engineVersion; + messageProtocol = messageProtocol === VOID ? this.messageProtocol : messageProtocol; + serviceKey = serviceKey === VOID ? this.serviceKey : serviceKey; + return this.copy_nc7k0r_k$(engineVersion, messageProtocol, serviceKey); + } + toString() { + return 'KChronosParam(engineVersion=' + this.engineVersion + ', messageProtocol=' + this.messageProtocol + ', serviceKey=' + this.serviceKey + ')'; + } + hashCode() { + var result = getStringHashCode(this.engineVersion); + result = imul(result, 31) + getStringHashCode(this.messageProtocol) | 0; + result = imul(result, 31) + getStringHashCode(this.serviceKey) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KChronosParam)) + return false; + var tmp0_other_with_cast = other instanceof KChronosParam ? other : THROW_CCE(); + if (!(this.engineVersion === tmp0_other_with_cast.engineVersion)) + return false; + if (!(this.messageProtocol === tmp0_other_with_cast.messageProtocol)) + return false; + if (!(this.serviceKey === tmp0_other_with_cast.serviceKey)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_v1_KChronosParam_q2fhgs_k$(seen1, engineVersion, messageProtocol, serviceKey, serializationConstructorMarker) { + Companion_instance_459; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_446().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.engineVersion = ''; + else + $this.engineVersion = engineVersion; + if (0 === (seen1 & 2)) + $this.messageProtocol = ''; + else + $this.messageProtocol = messageProtocol; + if (0 === (seen1 & 4)) + $this.serviceKey = ''; + else + $this.serviceKey = serviceKey; + return $this; + } + } + class Companion_460 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.v1.ViewProgressReply'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_447(); + } + } + class $serializer_447 { + constructor() { + $serializer_instance_447 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.v1.KViewProgressReply', this, 5); + tmp0_serialDesc.addElement_5pzumi_k$('videoGuide', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('chronos', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('arcShot', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('dm', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('fragmentRes', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_461()), get_nullable($serializer_getInstance_460()), get_nullable($serializer_getInstance_458()), get_nullable($serializer_getInstance_450()), get_nullable($serializer_getInstance_449())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp9_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_461(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_460(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_458(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_450(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_449(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + } else + while (tmp1_flag) { + tmp2_index = tmp9_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_461(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_460(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_458(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_450(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_449(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp9_input.endStructure_1xqz0n_k$(tmp0_desc); + return KViewProgressReply.new_com_bapis_bilibili_app_viewunite_v1_KViewProgressReply_dugrgl_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); + } + serialize_uqyupm_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.videoGuide == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_461(), value.videoGuide); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.chronos == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_460(), value.chronos); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.arcShot == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_458(), value.arcShot); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.dm == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_450(), value.dm); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.fragmentRes == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, $serializer_getInstance_449(), value.fragmentRes); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_uqyupm_k$(encoder, value instanceof KViewProgressReply ? value : THROW_CCE()); + } + } + class KViewProgressReply { + constructor(videoGuide, chronos, arcShot, dm, fragmentRes) { + Companion_instance_460; + videoGuide = videoGuide === VOID ? null : videoGuide; + chronos = chronos === VOID ? null : chronos; + arcShot = arcShot === VOID ? null : arcShot; + dm = dm === VOID ? null : dm; + fragmentRes = fragmentRes === VOID ? null : fragmentRes; + this.videoGuide = videoGuide; + this.chronos = chronos; + this.arcShot = arcShot; + this.dm = dm; + this.fragmentRes = fragmentRes; + } + get_videoGuide_nqgdsa_k$() { + return this.videoGuide; + } + get_chronos_dqvd53_k$() { + return this.chronos; + } + get_arcShot_b47wcd_k$() { + return this.arcShot; + } + get_dm_knto1a_k$() { + return this.dm; + } + get_fragmentRes_zht7ax_k$() { + return this.fragmentRes; + } + component1_7eebsc_k$() { + return this.videoGuide; + } + component2_7eebsb_k$() { + return this.chronos; + } + component3_7eebsa_k$() { + return this.arcShot; + } + component4_7eebs9_k$() { + return this.dm; + } + component5_7eebs8_k$() { + return this.fragmentRes; + } + copy_o3h6sg_k$(videoGuide, chronos, arcShot, dm, fragmentRes) { + return new KViewProgressReply(videoGuide, chronos, arcShot, dm, fragmentRes); + } + copy(videoGuide, chronos, arcShot, dm, fragmentRes, $super) { + videoGuide = videoGuide === VOID ? this.videoGuide : videoGuide; + chronos = chronos === VOID ? this.chronos : chronos; + arcShot = arcShot === VOID ? this.arcShot : arcShot; + dm = dm === VOID ? this.dm : dm; + fragmentRes = fragmentRes === VOID ? this.fragmentRes : fragmentRes; + return this.copy_o3h6sg_k$(videoGuide, chronos, arcShot, dm, fragmentRes); + } + toString() { + return 'KViewProgressReply(videoGuide=' + this.videoGuide + ', chronos=' + this.chronos + ', arcShot=' + this.arcShot + ', dm=' + this.dm + ', fragmentRes=' + this.fragmentRes + ')'; + } + hashCode() { + var result = this.videoGuide == null ? 0 : this.videoGuide.hashCode(); + result = imul(result, 31) + (this.chronos == null ? 0 : this.chronos.hashCode()) | 0; + result = imul(result, 31) + (this.arcShot == null ? 0 : this.arcShot.hashCode()) | 0; + result = imul(result, 31) + (this.dm == null ? 0 : this.dm.hashCode()) | 0; + result = imul(result, 31) + (this.fragmentRes == null ? 0 : this.fragmentRes.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KViewProgressReply)) + return false; + var tmp0_other_with_cast = other instanceof KViewProgressReply ? other : THROW_CCE(); + if (!equals(this.videoGuide, tmp0_other_with_cast.videoGuide)) + return false; + if (!equals(this.chronos, tmp0_other_with_cast.chronos)) + return false; + if (!equals(this.arcShot, tmp0_other_with_cast.arcShot)) + return false; + if (!equals(this.dm, tmp0_other_with_cast.dm)) + return false; + if (!equals(this.fragmentRes, tmp0_other_with_cast.fragmentRes)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_v1_KViewProgressReply_dugrgl_k$(seen1, videoGuide, chronos, arcShot, dm, fragmentRes, serializationConstructorMarker) { + Companion_instance_460; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_447().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.videoGuide = null; + else + $this.videoGuide = videoGuide; + if (0 === (seen1 & 2)) + $this.chronos = null; + else + $this.chronos = chronos; + if (0 === (seen1 & 4)) + $this.arcShot = null; + else + $this.arcShot = arcShot; + if (0 === (seen1 & 8)) + $this.dm = null; + else + $this.dm = dm; + if (0 === (seen1 & 16)) + $this.fragmentRes = null; + else + $this.fragmentRes = fragmentRes; + return $this; + } + } + class Companion_461 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.v1.FragmentRes.VideoShotEntry'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_448(); + } + } + class $serializer_448 { + constructor() { + $serializer_instance_448 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.v1.KFragmentRes.KVideoShotEntry', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('key', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('value', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), get_nullable($serializer_getInstance_458())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_458(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_458(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KVideoShotEntry.new_com_bapis_bilibili_app_viewunite_v1_KFragmentRes_KVideoShotEntry_ndvbcs_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_xu5mlo_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.key.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.key); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.value == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_458(), value.value); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_xu5mlo_k$(encoder, value instanceof KVideoShotEntry ? value : THROW_CCE()); + } + } + class KVideoShotEntry { + constructor(key, value) { + Companion_instance_461; + key = key === VOID ? new Long(0, 0) : key; + value = value === VOID ? null : value; + this.key = key; + this.value = value; + } + get_key_18j28a_k$() { + return this.key; + } + get_value_j01efc_k$() { + return this.value; + } + component1_7eebsc_k$() { + return this.key; + } + component2_7eebsb_k$() { + return this.value; + } + copy_uu8j94_k$(key, value) { + return new KVideoShotEntry(key, value); + } + copy(key, value, $super) { + key = key === VOID ? this.key : key; + value = value === VOID ? this.value : value; + return this.copy_uu8j94_k$(key, value); + } + toString() { + return 'KVideoShotEntry(key=' + this.key.toString() + ', value=' + this.value + ')'; + } + hashCode() { + var result = this.key.hashCode(); + result = imul(result, 31) + (this.value == null ? 0 : this.value.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KVideoShotEntry)) + return false; + var tmp0_other_with_cast = other instanceof KVideoShotEntry ? other : THROW_CCE(); + if (!this.key.equals(tmp0_other_with_cast.key)) + return false; + if (!equals(this.value, tmp0_other_with_cast.value)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_v1_KFragmentRes_KVideoShotEntry_ndvbcs_k$(seen1, key, value, serializationConstructorMarker) { + Companion_instance_461; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_448().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.key = new Long(0, 0); + else + $this.key = key; + if (0 === (seen1 & 2)) + $this.value = null; + else + $this.value = value; + return $this; + } + } + class Companion_462 { + constructor() { + Companion_instance_462 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new LinkedHashMapSerializer(LongSerializer_getInstance(), get_nullable($serializer_getInstance_458()))]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.viewunite.v1.FragmentRes'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_449(); + } + } + class $serializer_449 { + constructor() { + $serializer_instance_449 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.v1.KFragmentRes', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('videoShot', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_462().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp6_cached = Companion_getInstance_462().$childSerializers_1; + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KFragmentRes.new_com_bapis_bilibili_app_viewunite_v1_KFragmentRes_5u6sro_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_3omn6a_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_462().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.videoShot, emptyMap())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.videoShot); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_3omn6a_k$(encoder, value instanceof KFragmentRes ? value : THROW_CCE()); + } + } + class KFragmentRes { + constructor(videoShot) { + Companion_getInstance_462(); + videoShot = videoShot === VOID ? emptyMap() : videoShot; + this.videoShot = videoShot; + } + get_videoShot_uk3tkc_k$() { + return this.videoShot; + } + component1_7eebsc_k$() { + return this.videoShot; + } + copy_wqi8lw_k$(videoShot) { + return new KFragmentRes(videoShot); + } + copy(videoShot, $super) { + videoShot = videoShot === VOID ? this.videoShot : videoShot; + return this.copy_wqi8lw_k$(videoShot); + } + toString() { + return 'KFragmentRes(videoShot=' + this.videoShot + ')'; + } + hashCode() { + return hashCode(this.videoShot); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KFragmentRes)) + return false; + var tmp0_other_with_cast = other instanceof KFragmentRes ? other : THROW_CCE(); + if (!equals(this.videoShot, tmp0_other_with_cast.videoShot)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_v1_KFragmentRes_5u6sro_k$(seen1, videoShot, serializationConstructorMarker) { + Companion_getInstance_462(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_449().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.videoShot = emptyMap(); + else + $this.videoShot = videoShot; + return $this; + } + } + class Companion_463 { + constructor() { + Companion_instance_463 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer($serializer_getInstance_466()), null, new ArrayListSerializer($serializer_getInstance_451())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.viewunite.v1.DmResource'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_450(); + } + } + class $serializer_450 { + constructor() { + $serializer_instance_450 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.v1.KDmResource', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('commandDms', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('attention', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('cards', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_463().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0], get_nullable($serializer_getInstance_462()), tmp0_cached[2]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp8_cached = Companion_getInstance_463().$childSerializers_1; + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp8_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_462(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp8_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp8_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_462(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp8_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KDmResource.new_com_bapis_bilibili_app_viewunite_v1_KDmResource_9o9fyw_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_a7ci27_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_463().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.commandDms, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.commandDms); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.attention == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_462(), value.attention); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !equals(value.cards, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 2, tmp2_cached[2], value.cards); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_a7ci27_k$(encoder, value instanceof KDmResource ? value : THROW_CCE()); + } + } + class KDmResource { + constructor(commandDms, attention, cards) { + Companion_getInstance_463(); + commandDms = commandDms === VOID ? emptyList() : commandDms; + attention = attention === VOID ? null : attention; + cards = cards === VOID ? emptyList() : cards; + this.commandDms = commandDms; + this.attention = attention; + this.cards = cards; + } + get_commandDms_77eeuw_k$() { + return this.commandDms; + } + get_attention_2nseid_k$() { + return this.attention; + } + get_cards_iplf7e_k$() { + return this.cards; + } + component1_7eebsc_k$() { + return this.commandDms; + } + component2_7eebsb_k$() { + return this.attention; + } + component3_7eebsa_k$() { + return this.cards; + } + copy_vgdp18_k$(commandDms, attention, cards) { + return new KDmResource(commandDms, attention, cards); + } + copy(commandDms, attention, cards, $super) { + commandDms = commandDms === VOID ? this.commandDms : commandDms; + attention = attention === VOID ? this.attention : attention; + cards = cards === VOID ? this.cards : cards; + return this.copy_vgdp18_k$(commandDms, attention, cards); + } + toString() { + return 'KDmResource(commandDms=' + this.commandDms + ', attention=' + this.attention + ', cards=' + this.cards + ')'; + } + hashCode() { + var result = hashCode(this.commandDms); + result = imul(result, 31) + (this.attention == null ? 0 : this.attention.hashCode()) | 0; + result = imul(result, 31) + hashCode(this.cards) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KDmResource)) + return false; + var tmp0_other_with_cast = other instanceof KDmResource ? other : THROW_CCE(); + if (!equals(this.commandDms, tmp0_other_with_cast.commandDms)) + return false; + if (!equals(this.attention, tmp0_other_with_cast.attention)) + return false; + if (!equals(this.cards, tmp0_other_with_cast.cards)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_v1_KDmResource_9o9fyw_k$(seen1, commandDms, attention, cards, serializationConstructorMarker) { + Companion_getInstance_463(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_450().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.commandDms = emptyList(); + else + $this.commandDms = commandDms; + if (0 === (seen1 & 2)) + $this.attention = null; + else + $this.attention = attention; + if (0 === (seen1 & 4)) + $this.cards = emptyList(); + else + $this.cards = cards; + return $this; + } + } + class KParam { + constructor(value) { + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + } + class KFollow extends KParam { + constructor() { + KFollow_instance = null; + super(0); + KFollow_instance = this; + } + } + class KReserve_0 extends KParam { + constructor() { + KReserve_instance_0 = null; + super(1); + KReserve_instance_0 = this; + } + } + class KJump extends KParam { + constructor() { + KJump_instance = null; + super(2); + KJump_instance = this; + } + } + class KGame_0 extends KParam { + constructor() { + KGame_instance_0 = null; + super(3); + KGame_instance_0 = this; + } + } + class Companion_464 { + constructor() { + Companion_instance_464 = this; + var tmp = this; + tmp.paramValues$delegate_1 = lazy_0(KOperationCard$Companion$paramValues$delegate$lambda); + this.targetPath = '/bilibili.app.viewunite.v1.OperationCard'; + } + get_paramValues_slkp0m_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.paramValues$delegate_1; + var thisRef = this; + var property = paramValues$factory(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_451(); + } + get paramValues() { + return this.get_paramValues_slkp0m_k$(); + } + } + class $serializer_451 { + constructor() { + $serializer_instance_451 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.v1.KOperationCard', this, 10); + tmp0_serialDesc.addElement_5pzumi_k$('id', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('from', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('to', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('status', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('bizType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('content', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('follow', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('reserve', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('jump', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('game', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), BooleanSerializer_getInstance(), IntSerializer_getInstance(), get_nullable($serializer_getInstance_456()), get_nullable($serializer_getInstance_452()), get_nullable($serializer_getInstance_453()), get_nullable($serializer_getInstance_454()), get_nullable($serializer_getInstance_455())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = 0; + var tmp6_local2 = 0; + var tmp7_local3 = false; + var tmp8_local4 = 0; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_local8 = null; + var tmp13_local9 = null; + var tmp14_transient0 = 0; + var tmp15_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp15_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp15_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_456(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_452(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_453(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_454(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 9, $serializer_getInstance_455(), tmp13_local9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + } else + while (tmp1_flag) { + tmp2_index = tmp15_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp15_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_456(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_452(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_453(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_454(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 9, $serializer_getInstance_455(), tmp13_local9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp15_input.endStructure_1xqz0n_k$(tmp0_desc); + return KOperationCard.new_com_bapis_bilibili_app_viewunite_v1_KOperationCard_lmdv11_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, null); + } + serialize_d7zsnt_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.id.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.id); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.from === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.from); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.to === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.to); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.status === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 3, value.status); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.bizType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 4, value.bizType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.content == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 5, $serializer_getInstance_456(), value.content); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.follow_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 6, $serializer_getInstance_452(), value.follow_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.reserve_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 7, $serializer_getInstance_453(), value.reserve_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.jump_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 8, $serializer_getInstance_454(), value.jump_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.game_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 9, $serializer_getInstance_455(), value.game_1); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_d7zsnt_k$(encoder, value instanceof KOperationCard ? value : THROW_CCE()); + } + } + class KOperationCard { + constructor(id, from, to, status, bizType, content, follow, reserve, jump, game) { + Companion_getInstance_464(); + id = id === VOID ? new Long(0, 0) : id; + from = from === VOID ? 0 : from; + to = to === VOID ? 0 : to; + status = status === VOID ? false : status; + bizType = bizType === VOID ? 0 : bizType; + content = content === VOID ? null : content; + follow = follow === VOID ? null : follow; + reserve = reserve === VOID ? null : reserve; + jump = jump === VOID ? null : jump; + game = game === VOID ? null : game; + this.id = id; + this.from = from; + this.to = to; + this.status = status; + this.bizType = bizType; + this.content = content; + this.follow_1 = follow; + this.reserve_1 = reserve; + this.jump_1 = jump; + this.game_1 = game; + var tmp = this; + tmp.paramNumber$delegate_1 = lazy_0(KOperationCard$paramNumber$delegate$lambda(this)); + } + get_id_kntnx8_k$() { + return this.id; + } + get_from_wom7eb_k$() { + return this.from; + } + get_to_kntnng_k$() { + return this.to; + } + get_status_jnf6d7_k$() { + return this.status; + } + get_bizType_cjyf0_k$() { + return this.bizType; + } + get_content_h02jrk_k$() { + return this.content; + } + paramValue() { + if (!(this.follow_1 == null)) { + var tmp = this.follow_1; + return (tmp == null ? true : !(tmp == null)) ? tmp : null; + } else if (!(this.reserve_1 == null)) { + var tmp_0 = this.reserve_1; + return (tmp_0 == null ? true : !(tmp_0 == null)) ? tmp_0 : null; + } else if (!(this.jump_1 == null)) { + var tmp_1 = this.jump_1; + return (tmp_1 == null ? true : !(tmp_1 == null)) ? tmp_1 : null; + } else if (!(this.game_1 == null)) { + var tmp_2 = this.game_1; + return (tmp_2 == null ? true : !(tmp_2 == null)) ? tmp_2 : null; + } else { + return null; + } + } + paramTypeJs() { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = Companion_getInstance_464().paramValues; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.viewunite.v1.KOperationCard.paramType.' call + var it = element; + tmp$ret$0 = it.value === _get_paramNumber__k3t7h7(this); + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + return tmp$ret$1; + } + bizTypeEnum() { + return Companion_getInstance_413().fromValue(this.bizType); + } + component1_7eebsc_k$() { + return this.id; + } + component2_7eebsb_k$() { + return this.from; + } + component3_7eebsa_k$() { + return this.to; + } + component4_7eebs9_k$() { + return this.status; + } + component5_7eebs8_k$() { + return this.bizType; + } + component6_7eebs7_k$() { + return this.content; + } + copy_8f5z5x_k$(id, from, to, status, bizType, content, follow, reserve, jump, game) { + return new KOperationCard(id, from, to, status, bizType, content, follow, reserve, jump, game); + } + copy(id, from, to, status, bizType, content, follow, reserve, jump, game, $super) { + id = id === VOID ? this.id : id; + from = from === VOID ? this.from : from; + to = to === VOID ? this.to : to; + status = status === VOID ? this.status : status; + bizType = bizType === VOID ? this.bizType : bizType; + content = content === VOID ? this.content : content; + follow = follow === VOID ? this.follow_1 : follow; + reserve = reserve === VOID ? this.reserve_1 : reserve; + jump = jump === VOID ? this.jump_1 : jump; + game = game === VOID ? this.game_1 : game; + return this.copy_8f5z5x_k$(id, from, to, status, bizType, content, follow, reserve, jump, game); + } + toString() { + return 'KOperationCard(id=' + this.id.toString() + ', from=' + this.from + ', to=' + this.to + ', status=' + this.status + ', bizType=' + this.bizType + ', content=' + this.content + ', follow=' + this.follow_1 + ', reserve=' + this.reserve_1 + ', jump=' + this.jump_1 + ', game=' + this.game_1 + ')'; + } + hashCode() { + var result = this.id.hashCode(); + result = imul(result, 31) + this.from | 0; + result = imul(result, 31) + this.to | 0; + result = imul(result, 31) + getBooleanHashCode(this.status) | 0; + result = imul(result, 31) + this.bizType | 0; + result = imul(result, 31) + (this.content == null ? 0 : this.content.hashCode()) | 0; + result = imul(result, 31) + (this.follow_1 == null ? 0 : this.follow_1.hashCode()) | 0; + result = imul(result, 31) + (this.reserve_1 == null ? 0 : this.reserve_1.hashCode()) | 0; + result = imul(result, 31) + (this.jump_1 == null ? 0 : this.jump_1.hashCode()) | 0; + result = imul(result, 31) + (this.game_1 == null ? 0 : this.game_1.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KOperationCard)) + return false; + var tmp0_other_with_cast = other instanceof KOperationCard ? other : THROW_CCE(); + if (!this.id.equals(tmp0_other_with_cast.id)) + return false; + if (!(this.from === tmp0_other_with_cast.from)) + return false; + if (!(this.to === tmp0_other_with_cast.to)) + return false; + if (!(this.status === tmp0_other_with_cast.status)) + return false; + if (!(this.bizType === tmp0_other_with_cast.bizType)) + return false; + if (!equals(this.content, tmp0_other_with_cast.content)) + return false; + if (!equals(this.follow_1, tmp0_other_with_cast.follow_1)) + return false; + if (!equals(this.reserve_1, tmp0_other_with_cast.reserve_1)) + return false; + if (!equals(this.jump_1, tmp0_other_with_cast.jump_1)) + return false; + if (!equals(this.game_1, tmp0_other_with_cast.game_1)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_v1_KOperationCard_lmdv11_k$(seen1, id, from, to, status, bizType, content, follow, reserve, jump, game, serializationConstructorMarker) { + Companion_getInstance_464(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_451().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.id = new Long(0, 0); + else + $this.id = id; + if (0 === (seen1 & 2)) + $this.from = 0; + else + $this.from = from; + if (0 === (seen1 & 4)) + $this.to = 0; + else + $this.to = to; + if (0 === (seen1 & 8)) + $this.status = false; + else + $this.status = status; + if (0 === (seen1 & 16)) + $this.bizType = 0; + else + $this.bizType = bizType; + if (0 === (seen1 & 32)) + $this.content = null; + else + $this.content = content; + if (0 === (seen1 & 64)) + $this.follow_1 = null; + else + $this.follow_1 = follow; + if (0 === (seen1 & 128)) + $this.reserve_1 = null; + else + $this.reserve_1 = reserve; + if (0 === (seen1 & 256)) + $this.jump_1 = null; + else + $this.jump_1 = jump; + if (0 === (seen1 & 512)) + $this.game_1 = null; + else + $this.game_1 = game; + var tmp = $this; + tmp.paramNumber$delegate_1 = lazy_0(KOperationCard$_init_$lambda_wtkzj3($this)); + return $this; + } + } + class Companion_465 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.v1.BizFollowVideoParam'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_452(); + } + } + class $serializer_452 { + constructor() { + $serializer_instance_452 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.v1.KBizFollowVideoParam', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('seasonId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KBizFollowVideoParam.new_com_bapis_bilibili_app_viewunite_v1_KBizFollowVideoParam_eb1t6m_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_mdkvzs_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.seasonId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.seasonId); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_mdkvzs_k$(encoder, value instanceof KBizFollowVideoParam ? value : THROW_CCE()); + } + } + class KBizFollowVideoParam { + constructor(seasonId) { + Companion_instance_465; + seasonId = seasonId === VOID ? new Long(0, 0) : seasonId; + this.seasonId = seasonId; + } + get_seasonId_h33f15_k$() { + return this.seasonId; + } + component1_7eebsc_k$() { + return this.seasonId; + } + copy_5ymysz_k$(seasonId) { + return new KBizFollowVideoParam(seasonId); + } + copy(seasonId, $super) { + seasonId = seasonId === VOID ? this.seasonId : seasonId; + return this.copy_5ymysz_k$(seasonId); + } + toString() { + return 'KBizFollowVideoParam(seasonId=' + this.seasonId.toString() + ')'; + } + hashCode() { + return this.seasonId.hashCode(); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KBizFollowVideoParam)) + return false; + var tmp0_other_with_cast = other instanceof KBizFollowVideoParam ? other : THROW_CCE(); + if (!this.seasonId.equals(tmp0_other_with_cast.seasonId)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_v1_KBizFollowVideoParam_eb1t6m_k$(seen1, seasonId, serializationConstructorMarker) { + Companion_instance_465; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_452().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.seasonId = new Long(0, 0); + else + $this.seasonId = seasonId; + return $this; + } + } + class Companion_466 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.v1.BizReserveActivityParam'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_453(); + } + } + class $serializer_453 { + constructor() { + $serializer_instance_453 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.v1.KBizReserveActivityParam', this, 5); + tmp0_serialDesc.addElement_5pzumi_k$('activityId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('from', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('oid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('reserveId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = new Long(0, 0); + var tmp8_local4 = new Long(0, 0); + var tmp9_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp9_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + } else + while (tmp1_flag) { + tmp2_index = tmp9_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp9_input.endStructure_1xqz0n_k$(tmp0_desc); + return KBizReserveActivityParam_0.new_com_bapis_bilibili_app_viewunite_v1_KBizReserveActivityParam_xm9d67_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); + } + serialize_6rhnl5_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.activityId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.activityId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.from === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.from); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.type === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.type); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !value.oid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 3, value.oid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !value.reserveId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 4, value.reserveId); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_6rhnl5_k$(encoder, value instanceof KBizReserveActivityParam_0 ? value : THROW_CCE()); + } + } + class KBizReserveActivityParam_0 { + constructor(activityId, from, type, oid, reserveId) { + Companion_instance_466; + activityId = activityId === VOID ? new Long(0, 0) : activityId; + from = from === VOID ? '' : from; + type = type === VOID ? '' : type; + oid = oid === VOID ? new Long(0, 0) : oid; + reserveId = reserveId === VOID ? new Long(0, 0) : reserveId; + this.activityId = activityId; + this.from = from; + this.type = type; + this.oid = oid; + this.reserveId = reserveId; + } + get_activityId_dpfyfn_k$() { + return this.activityId; + } + get_from_wom7eb_k$() { + return this.from; + } + get_type_wovaf7_k$() { + return this.type; + } + get_oid_18iz6n_k$() { + return this.oid; + } + get_reserveId_t26awi_k$() { + return this.reserveId; + } + component1_7eebsc_k$() { + return this.activityId; + } + component2_7eebsb_k$() { + return this.from; + } + component3_7eebsa_k$() { + return this.type; + } + component4_7eebs9_k$() { + return this.oid; + } + component5_7eebs8_k$() { + return this.reserveId; + } + copy_l9kwmn_k$(activityId, from, type, oid, reserveId) { + return new KBizReserveActivityParam_0(activityId, from, type, oid, reserveId); + } + copy(activityId, from, type, oid, reserveId, $super) { + activityId = activityId === VOID ? this.activityId : activityId; + from = from === VOID ? this.from : from; + type = type === VOID ? this.type : type; + oid = oid === VOID ? this.oid : oid; + reserveId = reserveId === VOID ? this.reserveId : reserveId; + return this.copy_l9kwmn_k$(activityId, from, type, oid, reserveId); + } + toString() { + return 'KBizReserveActivityParam(activityId=' + this.activityId.toString() + ', from=' + this.from + ', type=' + this.type + ', oid=' + this.oid.toString() + ', reserveId=' + this.reserveId.toString() + ')'; + } + hashCode() { + var result = this.activityId.hashCode(); + result = imul(result, 31) + getStringHashCode(this.from) | 0; + result = imul(result, 31) + getStringHashCode(this.type) | 0; + result = imul(result, 31) + this.oid.hashCode() | 0; + result = imul(result, 31) + this.reserveId.hashCode() | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KBizReserveActivityParam_0)) + return false; + var tmp0_other_with_cast = other instanceof KBizReserveActivityParam_0 ? other : THROW_CCE(); + if (!this.activityId.equals(tmp0_other_with_cast.activityId)) + return false; + if (!(this.from === tmp0_other_with_cast.from)) + return false; + if (!(this.type === tmp0_other_with_cast.type)) + return false; + if (!this.oid.equals(tmp0_other_with_cast.oid)) + return false; + if (!this.reserveId.equals(tmp0_other_with_cast.reserveId)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_v1_KBizReserveActivityParam_xm9d67_k$(seen1, activityId, from, type, oid, reserveId, serializationConstructorMarker) { + Companion_instance_466; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_453().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.activityId = new Long(0, 0); + else + $this.activityId = activityId; + if (0 === (seen1 & 2)) + $this.from = ''; + else + $this.from = from; + if (0 === (seen1 & 4)) + $this.type = ''; + else + $this.type = type; + if (0 === (seen1 & 8)) + $this.oid = new Long(0, 0); + else + $this.oid = oid; + if (0 === (seen1 & 16)) + $this.reserveId = new Long(0, 0); + else + $this.reserveId = reserveId; + return $this; + } + } + class Companion_467 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.v1.BizJumpLinkParam'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_454(); + } + } + class $serializer_454 { + constructor() { + $serializer_instance_454 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.v1.KBizJumpLinkParam', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('url', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KBizJumpLinkParam.new_com_bapis_bilibili_app_viewunite_v1_KBizJumpLinkParam_lqkrlx_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_x55mwa_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.url === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.url); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_x55mwa_k$(encoder, value instanceof KBizJumpLinkParam ? value : THROW_CCE()); + } + } + class KBizJumpLinkParam { + constructor(url) { + Companion_instance_467; + url = url === VOID ? '' : url; + this.url = url; + } + get_url_18iuii_k$() { + return this.url; + } + component1_7eebsc_k$() { + return this.url; + } + copy_a35qlh_k$(url) { + return new KBizJumpLinkParam(url); + } + copy(url, $super) { + url = url === VOID ? this.url : url; + return this.copy_a35qlh_k$(url); + } + toString() { + return 'KBizJumpLinkParam(url=' + this.url + ')'; + } + hashCode() { + return getStringHashCode(this.url); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KBizJumpLinkParam)) + return false; + var tmp0_other_with_cast = other instanceof KBizJumpLinkParam ? other : THROW_CCE(); + if (!(this.url === tmp0_other_with_cast.url)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_v1_KBizJumpLinkParam_lqkrlx_k$(seen1, url, serializationConstructorMarker) { + Companion_instance_467; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_454().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.url = ''; + else + $this.url = url; + return $this; + } + } + class Companion_468 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.v1.BizReserveGameParam'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_455(); + } + } + class $serializer_455 { + constructor() { + $serializer_instance_455 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.v1.KBizReserveGameParam', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('gameId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KBizReserveGameParam.new_com_bapis_bilibili_app_viewunite_v1_KBizReserveGameParam_gb3zpi_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_5vj3ik_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.gameId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.gameId); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_5vj3ik_k$(encoder, value instanceof KBizReserveGameParam ? value : THROW_CCE()); + } + } + class KBizReserveGameParam { + constructor(gameId) { + Companion_instance_468; + gameId = gameId === VOID ? new Long(0, 0) : gameId; + this.gameId = gameId; + } + get_gameId_domy0m_k$() { + return this.gameId; + } + component1_7eebsc_k$() { + return this.gameId; + } + copy_5ymysz_k$(gameId) { + return new KBizReserveGameParam(gameId); + } + copy(gameId, $super) { + gameId = gameId === VOID ? this.gameId : gameId; + return this.copy_5ymysz_k$(gameId); + } + toString() { + return 'KBizReserveGameParam(gameId=' + this.gameId.toString() + ')'; + } + hashCode() { + return this.gameId.hashCode(); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KBizReserveGameParam)) + return false; + var tmp0_other_with_cast = other instanceof KBizReserveGameParam ? other : THROW_CCE(); + if (!this.gameId.equals(tmp0_other_with_cast.gameId)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_v1_KBizReserveGameParam_gb3zpi_k$(seen1, gameId, serializationConstructorMarker) { + Companion_instance_468; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_455().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.gameId = new Long(0, 0); + else + $this.gameId = gameId; + return $this; + } + } + class Companion_469 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.v1.OperationCardContent'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_456(); + } + } + class $serializer_456 { + constructor() { + $serializer_instance_456 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.v1.KOperationCardContent', this, 6); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('subtitle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('icon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('buttonTitle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('buttonSelectedTitle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('showSelected', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), BooleanSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = false; + var tmp10_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp10_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp10_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + } else + while (tmp1_flag) { + tmp2_index = tmp10_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp10_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp10_input.endStructure_1xqz0n_k$(tmp0_desc); + return KOperationCardContent.new_com_bapis_bilibili_app_viewunite_v1_KOperationCardContent_zhpwgc_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); + } + serialize_ksgk6y_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.subtitle === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.subtitle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.icon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.icon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.buttonTitle === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.buttonTitle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.buttonSelectedTitle === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.buttonSelectedTitle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.showSelected === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 5, value.showSelected); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_ksgk6y_k$(encoder, value instanceof KOperationCardContent ? value : THROW_CCE()); + } + } + class KOperationCardContent { + constructor(title, subtitle, icon, buttonTitle, buttonSelectedTitle, showSelected) { + Companion_instance_469; + title = title === VOID ? '' : title; + subtitle = subtitle === VOID ? '' : subtitle; + icon = icon === VOID ? '' : icon; + buttonTitle = buttonTitle === VOID ? '' : buttonTitle; + buttonSelectedTitle = buttonSelectedTitle === VOID ? '' : buttonSelectedTitle; + showSelected = showSelected === VOID ? false : showSelected; + this.title = title; + this.subtitle = subtitle; + this.icon = icon; + this.buttonTitle = buttonTitle; + this.buttonSelectedTitle = buttonSelectedTitle; + this.showSelected = showSelected; + } + get_title_iz32un_k$() { + return this.title; + } + get_subtitle_55eoyp_k$() { + return this.subtitle; + } + get_icon_wont8i_k$() { + return this.icon; + } + get_buttonTitle_fdjhnn_k$() { + return this.buttonTitle; + } + get_buttonSelectedTitle_wjnzsy_k$() { + return this.buttonSelectedTitle; + } + get_showSelected_a5r475_k$() { + return this.showSelected; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.subtitle; + } + component3_7eebsa_k$() { + return this.icon; + } + component4_7eebs9_k$() { + return this.buttonTitle; + } + component5_7eebs8_k$() { + return this.buttonSelectedTitle; + } + component6_7eebs7_k$() { + return this.showSelected; + } + copy_wmw1wg_k$(title, subtitle, icon, buttonTitle, buttonSelectedTitle, showSelected) { + return new KOperationCardContent(title, subtitle, icon, buttonTitle, buttonSelectedTitle, showSelected); + } + copy(title, subtitle, icon, buttonTitle, buttonSelectedTitle, showSelected, $super) { + title = title === VOID ? this.title : title; + subtitle = subtitle === VOID ? this.subtitle : subtitle; + icon = icon === VOID ? this.icon : icon; + buttonTitle = buttonTitle === VOID ? this.buttonTitle : buttonTitle; + buttonSelectedTitle = buttonSelectedTitle === VOID ? this.buttonSelectedTitle : buttonSelectedTitle; + showSelected = showSelected === VOID ? this.showSelected : showSelected; + return this.copy_wmw1wg_k$(title, subtitle, icon, buttonTitle, buttonSelectedTitle, showSelected); + } + toString() { + return 'KOperationCardContent(title=' + this.title + ', subtitle=' + this.subtitle + ', icon=' + this.icon + ', buttonTitle=' + this.buttonTitle + ', buttonSelectedTitle=' + this.buttonSelectedTitle + ', showSelected=' + this.showSelected + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.subtitle) | 0; + result = imul(result, 31) + getStringHashCode(this.icon) | 0; + result = imul(result, 31) + getStringHashCode(this.buttonTitle) | 0; + result = imul(result, 31) + getStringHashCode(this.buttonSelectedTitle) | 0; + result = imul(result, 31) + getBooleanHashCode(this.showSelected) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KOperationCardContent)) + return false; + var tmp0_other_with_cast = other instanceof KOperationCardContent ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.subtitle === tmp0_other_with_cast.subtitle)) + return false; + if (!(this.icon === tmp0_other_with_cast.icon)) + return false; + if (!(this.buttonTitle === tmp0_other_with_cast.buttonTitle)) + return false; + if (!(this.buttonSelectedTitle === tmp0_other_with_cast.buttonSelectedTitle)) + return false; + if (!(this.showSelected === tmp0_other_with_cast.showSelected)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_v1_KOperationCardContent_zhpwgc_k$(seen1, title, subtitle, icon, buttonTitle, buttonSelectedTitle, showSelected, serializationConstructorMarker) { + Companion_instance_469; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_456().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.subtitle = ''; + else + $this.subtitle = subtitle; + if (0 === (seen1 & 4)) + $this.icon = ''; + else + $this.icon = icon; + if (0 === (seen1 & 8)) + $this.buttonTitle = ''; + else + $this.buttonTitle = buttonTitle; + if (0 === (seen1 & 16)) + $this.buttonSelectedTitle = ''; + else + $this.buttonSelectedTitle = buttonSelectedTitle; + if (0 === (seen1 & 32)) + $this.showSelected = false; + else + $this.showSelected = showSelected; + return $this; + } + } + class Companion_470 { + constructor() { + Companion_instance_470 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer($serializer_getInstance_459()), null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.viewunite.v1.VideoViewPoint'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_457(); + } + } + class $serializer_457 { + constructor() { + $serializer_instance_457 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.v1.KVideoViewPoint', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('points', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('pointMaterial', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('pointPermanent', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_470().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0], get_nullable($serializer_getInstance_468()), BooleanSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = false; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp8_cached = Companion_getInstance_470().$childSerializers_1; + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp8_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_468(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp8_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_468(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KVideoViewPoint.new_com_bapis_bilibili_app_viewunite_v1_KVideoViewPoint_izd345_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_pk78nc_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_470().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.points, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.points); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.pointMaterial == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_468(), value.pointMaterial); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.pointPermanent === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 2, value.pointPermanent); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_pk78nc_k$(encoder, value instanceof KVideoViewPoint ? value : THROW_CCE()); + } + } + class KVideoViewPoint { + constructor(points, pointMaterial, pointPermanent) { + Companion_getInstance_470(); + points = points === VOID ? emptyList() : points; + pointMaterial = pointMaterial === VOID ? null : pointMaterial; + pointPermanent = pointPermanent === VOID ? false : pointPermanent; + this.points = points; + this.pointMaterial = pointMaterial; + this.pointPermanent = pointPermanent; + } + get_points_i5obn0_k$() { + return this.points; + } + get_pointMaterial_1xr042_k$() { + return this.pointMaterial; + } + get_pointPermanent_arbz0n_k$() { + return this.pointPermanent; + } + component1_7eebsc_k$() { + return this.points; + } + component2_7eebsb_k$() { + return this.pointMaterial; + } + component3_7eebsa_k$() { + return this.pointPermanent; + } + copy_qgh6wh_k$(points, pointMaterial, pointPermanent) { + return new KVideoViewPoint(points, pointMaterial, pointPermanent); + } + copy(points, pointMaterial, pointPermanent, $super) { + points = points === VOID ? this.points : points; + pointMaterial = pointMaterial === VOID ? this.pointMaterial : pointMaterial; + pointPermanent = pointPermanent === VOID ? this.pointPermanent : pointPermanent; + return this.copy_qgh6wh_k$(points, pointMaterial, pointPermanent); + } + toString() { + return 'KVideoViewPoint(points=' + this.points + ', pointMaterial=' + this.pointMaterial + ', pointPermanent=' + this.pointPermanent + ')'; + } + hashCode() { + var result = hashCode(this.points); + result = imul(result, 31) + (this.pointMaterial == null ? 0 : this.pointMaterial.hashCode()) | 0; + result = imul(result, 31) + getBooleanHashCode(this.pointPermanent) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KVideoViewPoint)) + return false; + var tmp0_other_with_cast = other instanceof KVideoViewPoint ? other : THROW_CCE(); + if (!equals(this.points, tmp0_other_with_cast.points)) + return false; + if (!equals(this.pointMaterial, tmp0_other_with_cast.pointMaterial)) + return false; + if (!(this.pointPermanent === tmp0_other_with_cast.pointPermanent)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_v1_KVideoViewPoint_izd345_k$(seen1, points, pointMaterial, pointPermanent, serializationConstructorMarker) { + Companion_getInstance_470(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_457().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.points = emptyList(); + else + $this.points = points; + if (0 === (seen1 & 2)) + $this.pointMaterial = null; + else + $this.pointMaterial = pointMaterial; + if (0 === (seen1 & 4)) + $this.pointPermanent = false; + else + $this.pointPermanent = pointPermanent; + return $this; + } + } + class Companion_471 { + constructor() { + Companion_instance_471 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, null, null, new ArrayListSerializer(StringSerializer_getInstance())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.viewunite.v1.VideoShot'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_458(); + } + } + class $serializer_458 { + constructor() { + $serializer_instance_458 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.v1.KVideoShot', this, 6); + tmp0_serialDesc.addElement_5pzumi_k$('pvData', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('imgXLen', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('imgYLen', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('imgXSize', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('imgYSize', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('image', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_471().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), tmp0_cached[5]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = 0; + var tmp6_local2 = 0; + var tmp7_local3 = 0; + var tmp8_local4 = 0; + var tmp9_local5 = null; + var tmp10_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp11_cached = Companion_getInstance_471().$childSerializers_1; + if (tmp10_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp10_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 5, tmp11_cached[5], tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + } else + while (tmp1_flag) { + tmp2_index = tmp10_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp10_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 5, tmp11_cached[5], tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp10_input.endStructure_1xqz0n_k$(tmp0_desc); + return KVideoShot.new_com_bapis_bilibili_app_viewunite_v1_KVideoShot_n7szuv_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); + } + serialize_kj6wif_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_471().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.pvData === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.pvData); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.imgXLen === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.imgXLen); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.imgYLen === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.imgYLen); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.imgXSize === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 3, value.imgXSize); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.imgYSize === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 4, value.imgYSize); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !equals(value.image, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 5, tmp2_cached[5], value.image); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_kj6wif_k$(encoder, value instanceof KVideoShot ? value : THROW_CCE()); + } + } + class KVideoShot { + constructor(pvData, imgXLen, imgYLen, imgXSize, imgYSize, image) { + Companion_getInstance_471(); + pvData = pvData === VOID ? '' : pvData; + imgXLen = imgXLen === VOID ? 0 : imgXLen; + imgYLen = imgYLen === VOID ? 0 : imgYLen; + imgXSize = imgXSize === VOID ? 0 : imgXSize; + imgYSize = imgYSize === VOID ? 0 : imgYSize; + image = image === VOID ? emptyList() : image; + this.pvData = pvData; + this.imgXLen = imgXLen; + this.imgYLen = imgYLen; + this.imgXSize = imgXSize; + this.imgYSize = imgYSize; + this.image = image; + } + get_pvData_i8uzmh_k$() { + return this.pvData; + } + get_imgXLen_wyvzsn_k$() { + return this.imgXLen; + } + get_imgYLen_wywms6_k$() { + return this.imgYLen; + } + get_imgXSize_rm3m8v_k$() { + return this.imgXSize; + } + get_imgYSize_rmneu8_k$() { + return this.imgYSize; + } + get_image_it3i2a_k$() { + return this.image; + } + component1_7eebsc_k$() { + return this.pvData; + } + component2_7eebsb_k$() { + return this.imgXLen; + } + component3_7eebsa_k$() { + return this.imgYLen; + } + component4_7eebs9_k$() { + return this.imgXSize; + } + component5_7eebs8_k$() { + return this.imgYSize; + } + component6_7eebs7_k$() { + return this.image; + } + copy_gq8599_k$(pvData, imgXLen, imgYLen, imgXSize, imgYSize, image) { + return new KVideoShot(pvData, imgXLen, imgYLen, imgXSize, imgYSize, image); + } + copy(pvData, imgXLen, imgYLen, imgXSize, imgYSize, image, $super) { + pvData = pvData === VOID ? this.pvData : pvData; + imgXLen = imgXLen === VOID ? this.imgXLen : imgXLen; + imgYLen = imgYLen === VOID ? this.imgYLen : imgYLen; + imgXSize = imgXSize === VOID ? this.imgXSize : imgXSize; + imgYSize = imgYSize === VOID ? this.imgYSize : imgYSize; + image = image === VOID ? this.image : image; + return this.copy_gq8599_k$(pvData, imgXLen, imgYLen, imgXSize, imgYSize, image); + } + toString() { + return 'KVideoShot(pvData=' + this.pvData + ', imgXLen=' + this.imgXLen + ', imgYLen=' + this.imgYLen + ', imgXSize=' + this.imgXSize + ', imgYSize=' + this.imgYSize + ', image=' + this.image + ')'; + } + hashCode() { + var result = getStringHashCode(this.pvData); + result = imul(result, 31) + this.imgXLen | 0; + result = imul(result, 31) + this.imgYLen | 0; + result = imul(result, 31) + this.imgXSize | 0; + result = imul(result, 31) + this.imgYSize | 0; + result = imul(result, 31) + hashCode(this.image) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KVideoShot)) + return false; + var tmp0_other_with_cast = other instanceof KVideoShot ? other : THROW_CCE(); + if (!(this.pvData === tmp0_other_with_cast.pvData)) + return false; + if (!(this.imgXLen === tmp0_other_with_cast.imgXLen)) + return false; + if (!(this.imgYLen === tmp0_other_with_cast.imgYLen)) + return false; + if (!(this.imgXSize === tmp0_other_with_cast.imgXSize)) + return false; + if (!(this.imgYSize === tmp0_other_with_cast.imgYSize)) + return false; + if (!equals(this.image, tmp0_other_with_cast.image)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_v1_KVideoShot_n7szuv_k$(seen1, pvData, imgXLen, imgYLen, imgXSize, imgYSize, image, serializationConstructorMarker) { + Companion_getInstance_471(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_458().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.pvData = ''; + else + $this.pvData = pvData; + if (0 === (seen1 & 2)) + $this.imgXLen = 0; + else + $this.imgXLen = imgXLen; + if (0 === (seen1 & 4)) + $this.imgYLen = 0; + else + $this.imgYLen = imgYLen; + if (0 === (seen1 & 8)) + $this.imgXSize = 0; + else + $this.imgXSize = imgXSize; + if (0 === (seen1 & 16)) + $this.imgYSize = 0; + else + $this.imgYSize = imgYSize; + if (0 === (seen1 & 32)) + $this.image = emptyList(); + else + $this.image = image; + return $this; + } + } + class Companion_472 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.v1.VideoPoint'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_459(); + } + } + class $serializer_459 { + constructor() { + $serializer_instance_459 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.v1.KVideoPoint', this, 6); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('from', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('to', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('content', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('logoUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = new Long(0, 0); + var tmp6_local2 = new Long(0, 0); + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp10_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + } else + while (tmp1_flag) { + tmp2_index = tmp10_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp10_input.endStructure_1xqz0n_k$(tmp0_desc); + return KVideoPoint.new_com_bapis_bilibili_app_viewunite_v1_KVideoPoint_xt877m_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); + } + serialize_uqkt3h_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.type === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.type); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.from.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.from); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.to.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.to); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.content === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.content); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.cover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.logoUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.logoUrl); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_uqkt3h_k$(encoder, value instanceof KVideoPoint ? value : THROW_CCE()); + } + } + class KVideoPoint { + constructor(type, from, to, content, cover, logoUrl) { + Companion_instance_472; + type = type === VOID ? 0 : type; + from = from === VOID ? new Long(0, 0) : from; + to = to === VOID ? new Long(0, 0) : to; + content = content === VOID ? '' : content; + cover = cover === VOID ? '' : cover; + logoUrl = logoUrl === VOID ? '' : logoUrl; + this.type = type; + this.from = from; + this.to = to; + this.content = content; + this.cover = cover; + this.logoUrl = logoUrl; + } + get_type_wovaf7_k$() { + return this.type; + } + get_from_wom7eb_k$() { + return this.from; + } + get_to_kntnng_k$() { + return this.to; + } + get_content_h02jrk_k$() { + return this.content; + } + get_cover_ipug0e_k$() { + return this.cover; + } + get_logoUrl_6xgwyj_k$() { + return this.logoUrl; + } + component1_7eebsc_k$() { + return this.type; + } + component2_7eebsb_k$() { + return this.from; + } + component3_7eebsa_k$() { + return this.to; + } + component4_7eebs9_k$() { + return this.content; + } + component5_7eebs8_k$() { + return this.cover; + } + component6_7eebs7_k$() { + return this.logoUrl; + } + copy_3m7a3_k$(type, from, to, content, cover, logoUrl) { + return new KVideoPoint(type, from, to, content, cover, logoUrl); + } + copy(type, from, to, content, cover, logoUrl, $super) { + type = type === VOID ? this.type : type; + from = from === VOID ? this.from : from; + to = to === VOID ? this.to : to; + content = content === VOID ? this.content : content; + cover = cover === VOID ? this.cover : cover; + logoUrl = logoUrl === VOID ? this.logoUrl : logoUrl; + return this.copy_3m7a3_k$(type, from, to, content, cover, logoUrl); + } + toString() { + return 'KVideoPoint(type=' + this.type + ', from=' + this.from.toString() + ', to=' + this.to.toString() + ', content=' + this.content + ', cover=' + this.cover + ', logoUrl=' + this.logoUrl + ')'; + } + hashCode() { + var result = this.type; + result = imul(result, 31) + this.from.hashCode() | 0; + result = imul(result, 31) + this.to.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.content) | 0; + result = imul(result, 31) + getStringHashCode(this.cover) | 0; + result = imul(result, 31) + getStringHashCode(this.logoUrl) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KVideoPoint)) + return false; + var tmp0_other_with_cast = other instanceof KVideoPoint ? other : THROW_CCE(); + if (!(this.type === tmp0_other_with_cast.type)) + return false; + if (!this.from.equals(tmp0_other_with_cast.from)) + return false; + if (!this.to.equals(tmp0_other_with_cast.to)) + return false; + if (!(this.content === tmp0_other_with_cast.content)) + return false; + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + if (!(this.logoUrl === tmp0_other_with_cast.logoUrl)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_v1_KVideoPoint_xt877m_k$(seen1, type, from, to, content, cover, logoUrl, serializationConstructorMarker) { + Companion_instance_472; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_459().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.type = 0; + else + $this.type = type; + if (0 === (seen1 & 2)) + $this.from = new Long(0, 0); + else + $this.from = from; + if (0 === (seen1 & 4)) + $this.to = new Long(0, 0); + else + $this.to = to; + if (0 === (seen1 & 8)) + $this.content = ''; + else + $this.content = content; + if (0 === (seen1 & 16)) + $this.cover = ''; + else + $this.cover = cover; + if (0 === (seen1 & 32)) + $this.logoUrl = ''; + else + $this.logoUrl = logoUrl; + return $this; + } + } + class Companion_473 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.v1.Chronos'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_460(); + } + } + class $serializer_460 { + constructor() { + $serializer_instance_460 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.v1.KChronos', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('md5', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('file', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('sign', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KChronos.new_com_bapis_bilibili_app_viewunite_v1_KChronos_cidwid_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_2oqd2m_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.md5 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.md5); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.file === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.file); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.sign === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.sign); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_2oqd2m_k$(encoder, value instanceof KChronos ? value : THROW_CCE()); + } + } + class KChronos { + constructor(md5, file, sign) { + Companion_instance_473; + md5 = md5 === VOID ? '' : md5; + file = file === VOID ? '' : file; + sign = sign === VOID ? '' : sign; + this.md5 = md5; + this.file = file; + this.sign = sign; + } + get_md5_18j0tn_k$() { + return this.md5; + } + get_file_wom0n9_k$() { + return this.file; + } + get_sign_woubd2_k$() { + return this.sign; + } + component1_7eebsc_k$() { + return this.md5; + } + component2_7eebsb_k$() { + return this.file; + } + component3_7eebsa_k$() { + return this.sign; + } + copy_nc7k0r_k$(md5, file, sign) { + return new KChronos(md5, file, sign); + } + copy(md5, file, sign, $super) { + md5 = md5 === VOID ? this.md5 : md5; + file = file === VOID ? this.file : file; + sign = sign === VOID ? this.sign : sign; + return this.copy_nc7k0r_k$(md5, file, sign); + } + toString() { + return 'KChronos(md5=' + this.md5 + ', file=' + this.file + ', sign=' + this.sign + ')'; + } + hashCode() { + var result = getStringHashCode(this.md5); + result = imul(result, 31) + getStringHashCode(this.file) | 0; + result = imul(result, 31) + getStringHashCode(this.sign) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KChronos)) + return false; + var tmp0_other_with_cast = other instanceof KChronos ? other : THROW_CCE(); + if (!(this.md5 === tmp0_other_with_cast.md5)) + return false; + if (!(this.file === tmp0_other_with_cast.file)) + return false; + if (!(this.sign === tmp0_other_with_cast.sign)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_v1_KChronos_cidwid_k$(seen1, md5, file, sign, serializationConstructorMarker) { + Companion_instance_473; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_460().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.md5 = ''; + else + $this.md5 = md5; + if (0 === (seen1 & 2)) + $this.file = ''; + else + $this.file = file; + if (0 === (seen1 & 4)) + $this.sign = ''; + else + $this.sign = sign; + return $this; + } + } + class Companion_474 { + constructor() { + Companion_instance_474 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer($serializer_getInstance_470()), null, null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.viewunite.v1.VideoGuide'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_461(); + } + } + class $serializer_461 { + constructor() { + $serializer_instance_461 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.v1.KVideoGuide', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('material', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('videoPoint', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('contractCard', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('rightMaterial', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_474().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0], get_nullable($serializer_getInstance_457()), get_nullable($serializer_getInstance_463()), get_nullable($serializer_getInstance_470())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp9_cached = Companion_getInstance_474().$childSerializers_1; + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp9_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_457(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_463(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_470(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp9_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_457(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_463(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_470(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KVideoGuide.new_com_bapis_bilibili_app_viewunite_v1_KVideoGuide_cemt29_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_wals1l_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_474().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.material, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.material); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.videoPoint == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_457(), value.videoPoint); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.contractCard == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_463(), value.contractCard); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.rightMaterial == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_470(), value.rightMaterial); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_wals1l_k$(encoder, value instanceof KVideoGuide ? value : THROW_CCE()); + } + } + class KVideoGuide { + constructor(material, videoPoint, contractCard, rightMaterial) { + Companion_getInstance_474(); + material = material === VOID ? emptyList() : material; + videoPoint = videoPoint === VOID ? null : videoPoint; + contractCard = contractCard === VOID ? null : contractCard; + rightMaterial = rightMaterial === VOID ? null : rightMaterial; + this.material = material; + this.videoPoint = videoPoint; + this.contractCard = contractCard; + this.rightMaterial = rightMaterial; + } + get_material_quvpcg_k$() { + return this.material; + } + get_videoPoint_nvapge_k$() { + return this.videoPoint; + } + get_contractCard_innq0l_k$() { + return this.contractCard; + } + get_rightMaterial_gjmvuu_k$() { + return this.rightMaterial; + } + component1_7eebsc_k$() { + return this.material; + } + component2_7eebsb_k$() { + return this.videoPoint; + } + component3_7eebsa_k$() { + return this.contractCard; + } + component4_7eebs9_k$() { + return this.rightMaterial; + } + copy_t6dht4_k$(material, videoPoint, contractCard, rightMaterial) { + return new KVideoGuide(material, videoPoint, contractCard, rightMaterial); + } + copy(material, videoPoint, contractCard, rightMaterial, $super) { + material = material === VOID ? this.material : material; + videoPoint = videoPoint === VOID ? this.videoPoint : videoPoint; + contractCard = contractCard === VOID ? this.contractCard : contractCard; + rightMaterial = rightMaterial === VOID ? this.rightMaterial : rightMaterial; + return this.copy_t6dht4_k$(material, videoPoint, contractCard, rightMaterial); + } + toString() { + return 'KVideoGuide(material=' + this.material + ', videoPoint=' + this.videoPoint + ', contractCard=' + this.contractCard + ', rightMaterial=' + this.rightMaterial + ')'; + } + hashCode() { + var result = hashCode(this.material); + result = imul(result, 31) + (this.videoPoint == null ? 0 : this.videoPoint.hashCode()) | 0; + result = imul(result, 31) + (this.contractCard == null ? 0 : this.contractCard.hashCode()) | 0; + result = imul(result, 31) + (this.rightMaterial == null ? 0 : this.rightMaterial.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KVideoGuide)) + return false; + var tmp0_other_with_cast = other instanceof KVideoGuide ? other : THROW_CCE(); + if (!equals(this.material, tmp0_other_with_cast.material)) + return false; + if (!equals(this.videoPoint, tmp0_other_with_cast.videoPoint)) + return false; + if (!equals(this.contractCard, tmp0_other_with_cast.contractCard)) + return false; + if (!equals(this.rightMaterial, tmp0_other_with_cast.rightMaterial)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_v1_KVideoGuide_cemt29_k$(seen1, material, videoPoint, contractCard, rightMaterial, serializationConstructorMarker) { + Companion_getInstance_474(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_461().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.material = emptyList(); + else + $this.material = material; + if (0 === (seen1 & 2)) + $this.videoPoint = null; + else + $this.videoPoint = videoPoint; + if (0 === (seen1 & 4)) + $this.contractCard = null; + else + $this.contractCard = contractCard; + if (0 === (seen1 & 8)) + $this.rightMaterial = null; + else + $this.rightMaterial = rightMaterial; + return $this; + } + } + class Companion_475 { + constructor() { + Companion_instance_475 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer($serializer_getInstance_467())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.viewunite.v1.AttentionCard'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_462(); + } + } + class $serializer_462 { + constructor() { + $serializer_instance_462 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.v1.KAttentionCard', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('showTime', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_475().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp6_cached = Companion_getInstance_475().$childSerializers_1; + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KAttentionCard.new_com_bapis_bilibili_app_viewunite_v1_KAttentionCard_9xwy1g_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_ecvwc0_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_475().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.showTime, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.showTime); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_ecvwc0_k$(encoder, value instanceof KAttentionCard ? value : THROW_CCE()); + } + } + class KAttentionCard { + constructor(showTime) { + Companion_getInstance_475(); + showTime = showTime === VOID ? emptyList() : showTime; + this.showTime = showTime; + } + get_showTime_xmg01f_k$() { + return this.showTime; + } + component1_7eebsc_k$() { + return this.showTime; + } + copy_yu27zw_k$(showTime) { + return new KAttentionCard(showTime); + } + copy(showTime, $super) { + showTime = showTime === VOID ? this.showTime : showTime; + return this.copy_yu27zw_k$(showTime); + } + toString() { + return 'KAttentionCard(showTime=' + this.showTime + ')'; + } + hashCode() { + return hashCode(this.showTime); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KAttentionCard)) + return false; + var tmp0_other_with_cast = other instanceof KAttentionCard ? other : THROW_CCE(); + if (!equals(this.showTime, tmp0_other_with_cast.showTime)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_v1_KAttentionCard_9xwy1g_k$(seen1, showTime, serializationConstructorMarker) { + Companion_getInstance_475(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_462().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.showTime = emptyList(); + else + $this.showTime = showTime; + return $this; + } + } + class Companion_476 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.v1.ContractCard'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_463(); + } + } + class $serializer_463 { + constructor() { + $serializer_instance_463 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.v1.KContractCard', this, 12); + tmp0_serialDesc.addElement_5pzumi_k$('displayProgress', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('displayAccuracy', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('displayDuration', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('showMode', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('pageType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('upper', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('isFollowDisplay', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('text', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('followDisplayEndDuration', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('isPlayDisplay', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('isInteractDisplay', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('playDisplaySwitch', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [FloatSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), get_nullable($serializer_getInstance_465()), IntSerializer_getInstance(), get_nullable($serializer_getInstance_464()), LongSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), BooleanSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0.0; + var tmp5_local1 = new Long(0, 0); + var tmp6_local2 = new Long(0, 0); + var tmp7_local3 = 0; + var tmp8_local4 = 0; + var tmp9_local5 = null; + var tmp10_local6 = 0; + var tmp11_local7 = null; + var tmp12_local8 = new Long(0, 0); + var tmp13_local9 = 0; + var tmp14_local10 = 0; + var tmp15_local11 = false; + var tmp16_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp16_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp16_input.decodeFloatElement_p2q55h_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp16_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp16_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp16_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_465(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp16_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_464(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp16_input.decodeLongElement_994anb_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp16_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + } else + while (tmp1_flag) { + tmp2_index = tmp16_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp16_input.decodeFloatElement_p2q55h_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp16_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp16_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp16_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_465(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp16_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_464(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp16_input.decodeLongElement_994anb_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp16_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp16_input.endStructure_1xqz0n_k$(tmp0_desc); + return KContractCard.new_com_bapis_bilibili_app_viewunite_v1_KContractCard_xs3msz_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, null); + } + serialize_x7jaxm_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.displayProgress, 0.0)) { + tmp1_output.encodeFloatElement_oe8hn_k$(tmp0_desc, 0, value.displayProgress); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.displayAccuracy.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.displayAccuracy); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.displayDuration.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.displayDuration); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.showMode === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 3, value.showMode); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.pageType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 4, value.pageType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.upper == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 5, $serializer_getInstance_465(), value.upper); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.isFollowDisplay === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 6, value.isFollowDisplay); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.text == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 7, $serializer_getInstance_464(), value.text); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !value.followDisplayEndDuration.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 8, value.followDisplayEndDuration); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.isPlayDisplay === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 9, value.isPlayDisplay); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.isInteractDisplay === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 10, value.isInteractDisplay); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.playDisplaySwitch === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 11, value.playDisplaySwitch); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_x7jaxm_k$(encoder, value instanceof KContractCard ? value : THROW_CCE()); + } + } + class KContractCard { + constructor(displayProgress, displayAccuracy, displayDuration, showMode, pageType, upper, isFollowDisplay, text, followDisplayEndDuration, isPlayDisplay, isInteractDisplay, playDisplaySwitch) { + Companion_instance_476; + displayProgress = displayProgress === VOID ? 0.0 : displayProgress; + displayAccuracy = displayAccuracy === VOID ? new Long(0, 0) : displayAccuracy; + displayDuration = displayDuration === VOID ? new Long(0, 0) : displayDuration; + showMode = showMode === VOID ? 0 : showMode; + pageType = pageType === VOID ? 0 : pageType; + upper = upper === VOID ? null : upper; + isFollowDisplay = isFollowDisplay === VOID ? 0 : isFollowDisplay; + text = text === VOID ? null : text; + followDisplayEndDuration = followDisplayEndDuration === VOID ? new Long(0, 0) : followDisplayEndDuration; + isPlayDisplay = isPlayDisplay === VOID ? 0 : isPlayDisplay; + isInteractDisplay = isInteractDisplay === VOID ? 0 : isInteractDisplay; + playDisplaySwitch = playDisplaySwitch === VOID ? false : playDisplaySwitch; + this.displayProgress = displayProgress; + this.displayAccuracy = displayAccuracy; + this.displayDuration = displayDuration; + this.showMode = showMode; + this.pageType = pageType; + this.upper = upper; + this.isFollowDisplay = isFollowDisplay; + this.text = text; + this.followDisplayEndDuration = followDisplayEndDuration; + this.isPlayDisplay = isPlayDisplay; + this.isInteractDisplay = isInteractDisplay; + this.playDisplaySwitch = playDisplaySwitch; + } + get_displayProgress_3ewgme_k$() { + return this.displayProgress; + } + get_displayAccuracy_fa8umm_k$() { + return this.displayAccuracy; + } + get_displayDuration_cz2p2r_k$() { + return this.displayDuration; + } + get_showMode_xmbnd5_k$() { + return this.showMode; + } + get_pageType_hl88ni_k$() { + return this.pageType; + } + get_upper_izr989_k$() { + return this.upper; + } + get_isFollowDisplay_obdqua_k$() { + return this.isFollowDisplay; + } + get_text_wouvsm_k$() { + return this.text; + } + get_followDisplayEndDuration_8anqk9_k$() { + return this.followDisplayEndDuration; + } + get_isPlayDisplay_6fbsud_k$() { + return this.isPlayDisplay; + } + get_isInteractDisplay_b0o29z_k$() { + return this.isInteractDisplay; + } + get_playDisplaySwitch_rc4wdj_k$() { + return this.playDisplaySwitch; + } + component1_7eebsc_k$() { + return this.displayProgress; + } + component2_7eebsb_k$() { + return this.displayAccuracy; + } + component3_7eebsa_k$() { + return this.displayDuration; + } + component4_7eebs9_k$() { + return this.showMode; + } + component5_7eebs8_k$() { + return this.pageType; + } + component6_7eebs7_k$() { + return this.upper; + } + component7_7eebs6_k$() { + return this.isFollowDisplay; + } + component8_7eebs5_k$() { + return this.text; + } + component9_7eebs4_k$() { + return this.followDisplayEndDuration; + } + component10_gazzfo_k$() { + return this.isPlayDisplay; + } + component11_gazzfn_k$() { + return this.isInteractDisplay; + } + component12_gazzfm_k$() { + return this.playDisplaySwitch; + } + copy_cdhxn2_k$(displayProgress, displayAccuracy, displayDuration, showMode, pageType, upper, isFollowDisplay, text, followDisplayEndDuration, isPlayDisplay, isInteractDisplay, playDisplaySwitch) { + return new KContractCard(displayProgress, displayAccuracy, displayDuration, showMode, pageType, upper, isFollowDisplay, text, followDisplayEndDuration, isPlayDisplay, isInteractDisplay, playDisplaySwitch); + } + copy(displayProgress, displayAccuracy, displayDuration, showMode, pageType, upper, isFollowDisplay, text, followDisplayEndDuration, isPlayDisplay, isInteractDisplay, playDisplaySwitch, $super) { + displayProgress = displayProgress === VOID ? this.displayProgress : displayProgress; + displayAccuracy = displayAccuracy === VOID ? this.displayAccuracy : displayAccuracy; + displayDuration = displayDuration === VOID ? this.displayDuration : displayDuration; + showMode = showMode === VOID ? this.showMode : showMode; + pageType = pageType === VOID ? this.pageType : pageType; + upper = upper === VOID ? this.upper : upper; + isFollowDisplay = isFollowDisplay === VOID ? this.isFollowDisplay : isFollowDisplay; + text = text === VOID ? this.text : text; + followDisplayEndDuration = followDisplayEndDuration === VOID ? this.followDisplayEndDuration : followDisplayEndDuration; + isPlayDisplay = isPlayDisplay === VOID ? this.isPlayDisplay : isPlayDisplay; + isInteractDisplay = isInteractDisplay === VOID ? this.isInteractDisplay : isInteractDisplay; + playDisplaySwitch = playDisplaySwitch === VOID ? this.playDisplaySwitch : playDisplaySwitch; + return this.copy_cdhxn2_k$(displayProgress, displayAccuracy, displayDuration, showMode, pageType, upper, isFollowDisplay, text, followDisplayEndDuration, isPlayDisplay, isInteractDisplay, playDisplaySwitch); + } + toString() { + return 'KContractCard(displayProgress=' + this.displayProgress + ', displayAccuracy=' + this.displayAccuracy.toString() + ', displayDuration=' + this.displayDuration.toString() + ', showMode=' + this.showMode + ', pageType=' + this.pageType + ', upper=' + this.upper + ', isFollowDisplay=' + this.isFollowDisplay + ', text=' + this.text + ', followDisplayEndDuration=' + this.followDisplayEndDuration.toString() + ', isPlayDisplay=' + this.isPlayDisplay + ', isInteractDisplay=' + this.isInteractDisplay + ', playDisplaySwitch=' + this.playDisplaySwitch + ')'; + } + hashCode() { + var result = getNumberHashCode(this.displayProgress); + result = imul(result, 31) + this.displayAccuracy.hashCode() | 0; + result = imul(result, 31) + this.displayDuration.hashCode() | 0; + result = imul(result, 31) + this.showMode | 0; + result = imul(result, 31) + this.pageType | 0; + result = imul(result, 31) + (this.upper == null ? 0 : this.upper.hashCode()) | 0; + result = imul(result, 31) + this.isFollowDisplay | 0; + result = imul(result, 31) + (this.text == null ? 0 : this.text.hashCode()) | 0; + result = imul(result, 31) + this.followDisplayEndDuration.hashCode() | 0; + result = imul(result, 31) + this.isPlayDisplay | 0; + result = imul(result, 31) + this.isInteractDisplay | 0; + result = imul(result, 31) + getBooleanHashCode(this.playDisplaySwitch) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KContractCard)) + return false; + var tmp0_other_with_cast = other instanceof KContractCard ? other : THROW_CCE(); + if (!equals(this.displayProgress, tmp0_other_with_cast.displayProgress)) + return false; + if (!this.displayAccuracy.equals(tmp0_other_with_cast.displayAccuracy)) + return false; + if (!this.displayDuration.equals(tmp0_other_with_cast.displayDuration)) + return false; + if (!(this.showMode === tmp0_other_with_cast.showMode)) + return false; + if (!(this.pageType === tmp0_other_with_cast.pageType)) + return false; + if (!equals(this.upper, tmp0_other_with_cast.upper)) + return false; + if (!(this.isFollowDisplay === tmp0_other_with_cast.isFollowDisplay)) + return false; + if (!equals(this.text, tmp0_other_with_cast.text)) + return false; + if (!this.followDisplayEndDuration.equals(tmp0_other_with_cast.followDisplayEndDuration)) + return false; + if (!(this.isPlayDisplay === tmp0_other_with_cast.isPlayDisplay)) + return false; + if (!(this.isInteractDisplay === tmp0_other_with_cast.isInteractDisplay)) + return false; + if (!(this.playDisplaySwitch === tmp0_other_with_cast.playDisplaySwitch)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_v1_KContractCard_xs3msz_k$(seen1, displayProgress, displayAccuracy, displayDuration, showMode, pageType, upper, isFollowDisplay, text, followDisplayEndDuration, isPlayDisplay, isInteractDisplay, playDisplaySwitch, serializationConstructorMarker) { + Companion_instance_476; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_463().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.displayProgress = 0.0; + else + $this.displayProgress = displayProgress; + if (0 === (seen1 & 2)) + $this.displayAccuracy = new Long(0, 0); + else + $this.displayAccuracy = displayAccuracy; + if (0 === (seen1 & 4)) + $this.displayDuration = new Long(0, 0); + else + $this.displayDuration = displayDuration; + if (0 === (seen1 & 8)) + $this.showMode = 0; + else + $this.showMode = showMode; + if (0 === (seen1 & 16)) + $this.pageType = 0; + else + $this.pageType = pageType; + if (0 === (seen1 & 32)) + $this.upper = null; + else + $this.upper = upper; + if (0 === (seen1 & 64)) + $this.isFollowDisplay = 0; + else + $this.isFollowDisplay = isFollowDisplay; + if (0 === (seen1 & 128)) + $this.text = null; + else + $this.text = text; + if (0 === (seen1 & 256)) + $this.followDisplayEndDuration = new Long(0, 0); + else + $this.followDisplayEndDuration = followDisplayEndDuration; + if (0 === (seen1 & 512)) + $this.isPlayDisplay = 0; + else + $this.isPlayDisplay = isPlayDisplay; + if (0 === (seen1 & 1024)) + $this.isInteractDisplay = 0; + else + $this.isInteractDisplay = isInteractDisplay; + if (0 === (seen1 & 2048)) + $this.playDisplaySwitch = false; + else + $this.playDisplaySwitch = playDisplaySwitch; + return $this; + } + } + class Companion_477 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.v1.ContractText'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_464(); + } + } + class $serializer_464 { + constructor() { + $serializer_instance_464 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.v1.KContractText', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('subtitle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('inlineTitle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KContractText_0.new_com_bapis_bilibili_app_viewunite_v1_KContractText_rztg3a_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_3htbo7_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.subtitle === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.subtitle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.inlineTitle === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.inlineTitle); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_3htbo7_k$(encoder, value instanceof KContractText_0 ? value : THROW_CCE()); + } + } + class KContractText_0 { + constructor(title, subtitle, inlineTitle) { + Companion_instance_477; + title = title === VOID ? '' : title; + subtitle = subtitle === VOID ? '' : subtitle; + inlineTitle = inlineTitle === VOID ? '' : inlineTitle; + this.title = title; + this.subtitle = subtitle; + this.inlineTitle = inlineTitle; + } + get_title_iz32un_k$() { + return this.title; + } + get_subtitle_55eoyp_k$() { + return this.subtitle; + } + get_inlineTitle_ddvr56_k$() { + return this.inlineTitle; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.subtitle; + } + component3_7eebsa_k$() { + return this.inlineTitle; + } + copy_nc7k0r_k$(title, subtitle, inlineTitle) { + return new KContractText_0(title, subtitle, inlineTitle); + } + copy(title, subtitle, inlineTitle, $super) { + title = title === VOID ? this.title : title; + subtitle = subtitle === VOID ? this.subtitle : subtitle; + inlineTitle = inlineTitle === VOID ? this.inlineTitle : inlineTitle; + return this.copy_nc7k0r_k$(title, subtitle, inlineTitle); + } + toString() { + return 'KContractText(title=' + this.title + ', subtitle=' + this.subtitle + ', inlineTitle=' + this.inlineTitle + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.subtitle) | 0; + result = imul(result, 31) + getStringHashCode(this.inlineTitle) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KContractText_0)) + return false; + var tmp0_other_with_cast = other instanceof KContractText_0 ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.subtitle === tmp0_other_with_cast.subtitle)) + return false; + if (!(this.inlineTitle === tmp0_other_with_cast.inlineTitle)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_v1_KContractText_rztg3a_k$(seen1, title, subtitle, inlineTitle, serializationConstructorMarker) { + Companion_instance_477; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_464().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.subtitle = ''; + else + $this.subtitle = subtitle; + if (0 === (seen1 & 4)) + $this.inlineTitle = ''; + else + $this.inlineTitle = inlineTitle; + return $this; + } + } + class Companion_478 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.v1.UpperInfos'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_465(); + } + } + class $serializer_465 { + constructor() { + $serializer_instance_465 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.v1.KUpperInfos', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('fansCount', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('arcCountLastHalfYear', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('firstUpDates', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('totalPlayCount', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = new Long(0, 0); + var tmp6_local2 = new Long(0, 0); + var tmp7_local3 = new Long(0, 0); + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KUpperInfos.new_com_bapis_bilibili_app_viewunite_v1_KUpperInfos_9t5blf_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_qf59z9_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.fansCount.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.fansCount); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.arcCountLastHalfYear.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.arcCountLastHalfYear); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.firstUpDates.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.firstUpDates); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !value.totalPlayCount.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 3, value.totalPlayCount); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_qf59z9_k$(encoder, value instanceof KUpperInfos ? value : THROW_CCE()); + } + } + class KUpperInfos { + constructor(fansCount, arcCountLastHalfYear, firstUpDates, totalPlayCount) { + Companion_instance_478; + fansCount = fansCount === VOID ? new Long(0, 0) : fansCount; + arcCountLastHalfYear = arcCountLastHalfYear === VOID ? new Long(0, 0) : arcCountLastHalfYear; + firstUpDates = firstUpDates === VOID ? new Long(0, 0) : firstUpDates; + totalPlayCount = totalPlayCount === VOID ? new Long(0, 0) : totalPlayCount; + this.fansCount = fansCount; + this.arcCountLastHalfYear = arcCountLastHalfYear; + this.firstUpDates = firstUpDates; + this.totalPlayCount = totalPlayCount; + } + get_fansCount_4t4squ_k$() { + return this.fansCount; + } + get_arcCountLastHalfYear_sjctjg_k$() { + return this.arcCountLastHalfYear; + } + get_firstUpDates_14q319_k$() { + return this.firstUpDates; + } + get_totalPlayCount_fg0db4_k$() { + return this.totalPlayCount; + } + component1_7eebsc_k$() { + return this.fansCount; + } + component2_7eebsb_k$() { + return this.arcCountLastHalfYear; + } + component3_7eebsa_k$() { + return this.firstUpDates; + } + component4_7eebs9_k$() { + return this.totalPlayCount; + } + copy_4n0mfn_k$(fansCount, arcCountLastHalfYear, firstUpDates, totalPlayCount) { + return new KUpperInfos(fansCount, arcCountLastHalfYear, firstUpDates, totalPlayCount); + } + copy(fansCount, arcCountLastHalfYear, firstUpDates, totalPlayCount, $super) { + fansCount = fansCount === VOID ? this.fansCount : fansCount; + arcCountLastHalfYear = arcCountLastHalfYear === VOID ? this.arcCountLastHalfYear : arcCountLastHalfYear; + firstUpDates = firstUpDates === VOID ? this.firstUpDates : firstUpDates; + totalPlayCount = totalPlayCount === VOID ? this.totalPlayCount : totalPlayCount; + return this.copy_4n0mfn_k$(fansCount, arcCountLastHalfYear, firstUpDates, totalPlayCount); + } + toString() { + return 'KUpperInfos(fansCount=' + this.fansCount.toString() + ', arcCountLastHalfYear=' + this.arcCountLastHalfYear.toString() + ', firstUpDates=' + this.firstUpDates.toString() + ', totalPlayCount=' + this.totalPlayCount.toString() + ')'; + } + hashCode() { + var result = this.fansCount.hashCode(); + result = imul(result, 31) + this.arcCountLastHalfYear.hashCode() | 0; + result = imul(result, 31) + this.firstUpDates.hashCode() | 0; + result = imul(result, 31) + this.totalPlayCount.hashCode() | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KUpperInfos)) + return false; + var tmp0_other_with_cast = other instanceof KUpperInfos ? other : THROW_CCE(); + if (!this.fansCount.equals(tmp0_other_with_cast.fansCount)) + return false; + if (!this.arcCountLastHalfYear.equals(tmp0_other_with_cast.arcCountLastHalfYear)) + return false; + if (!this.firstUpDates.equals(tmp0_other_with_cast.firstUpDates)) + return false; + if (!this.totalPlayCount.equals(tmp0_other_with_cast.totalPlayCount)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_v1_KUpperInfos_9t5blf_k$(seen1, fansCount, arcCountLastHalfYear, firstUpDates, totalPlayCount, serializationConstructorMarker) { + Companion_instance_478; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_465().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.fansCount = new Long(0, 0); + else + $this.fansCount = fansCount; + if (0 === (seen1 & 2)) + $this.arcCountLastHalfYear = new Long(0, 0); + else + $this.arcCountLastHalfYear = arcCountLastHalfYear; + if (0 === (seen1 & 4)) + $this.firstUpDates = new Long(0, 0); + else + $this.firstUpDates = firstUpDates; + if (0 === (seen1 & 8)) + $this.totalPlayCount = new Long(0, 0); + else + $this.totalPlayCount = totalPlayCount; + return $this; + } + } + class Companion_479 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.v1.CommandDm'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_466(); + } + } + class $serializer_466 { + constructor() { + $serializer_instance_466 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.v1.KCommandDm', this, 10); + tmp0_serialDesc.addElement_5pzumi_k$('id', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('oid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('mid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('command', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('content', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('progress', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('ctime', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('mtime', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('extra', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('idStr', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = new Long(0, 0); + var tmp6_local2 = new Long(0, 0); + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = 0; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_local8 = null; + var tmp13_local9 = null; + var tmp14_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp14_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + } else + while (tmp1_flag) { + tmp2_index = tmp14_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp14_input.endStructure_1xqz0n_k$(tmp0_desc); + return KCommandDm.new_com_bapis_bilibili_app_viewunite_v1_KCommandDm_83k7ea_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, null); + } + serialize_ec6mja_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.id.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.id); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.oid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.oid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.mid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.mid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.command === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.command); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.content === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.content); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.progress === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 5, value.progress); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.ctime === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.ctime); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.mtime === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.mtime); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.extra === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 8, value.extra); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.idStr === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 9, value.idStr); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_ec6mja_k$(encoder, value instanceof KCommandDm ? value : THROW_CCE()); + } + } + class KCommandDm { + constructor(id, oid, mid, command, content, progress, ctime, mtime, extra, idStr) { + Companion_instance_479; + id = id === VOID ? new Long(0, 0) : id; + oid = oid === VOID ? new Long(0, 0) : oid; + mid = mid === VOID ? new Long(0, 0) : mid; + command = command === VOID ? '' : command; + content = content === VOID ? '' : content; + progress = progress === VOID ? 0 : progress; + ctime = ctime === VOID ? '' : ctime; + mtime = mtime === VOID ? '' : mtime; + extra = extra === VOID ? '' : extra; + idStr = idStr === VOID ? '' : idStr; + this.id = id; + this.oid = oid; + this.mid = mid; + this.command = command; + this.content = content; + this.progress = progress; + this.ctime = ctime; + this.mtime = mtime; + this.extra = extra; + this.idStr = idStr; + } + get_id_kntnx8_k$() { + return this.id; + } + get_oid_18iz6n_k$() { + return this.oid; + } + get_mid_18j0o1_k$() { + return this.mid; + } + get_command_gze7aa_k$() { + return this.command; + } + get_content_h02jrk_k$() { + return this.content; + } + get_progress_mo5qeu_k$() { + return this.progress; + } + get_ctime_ipxdhj_k$() { + return this.ctime; + } + get_mtime_ivfbf5_k$() { + return this.mtime; + } + get_extra_ir3qw7_k$() { + return this.extra; + } + get_idStr_isxh4d_k$() { + return this.idStr; + } + component1_7eebsc_k$() { + return this.id; + } + component2_7eebsb_k$() { + return this.oid; + } + component3_7eebsa_k$() { + return this.mid; + } + component4_7eebs9_k$() { + return this.command; + } + component5_7eebs8_k$() { + return this.content; + } + component6_7eebs7_k$() { + return this.progress; + } + component7_7eebs6_k$() { + return this.ctime; + } + component8_7eebs5_k$() { + return this.mtime; + } + component9_7eebs4_k$() { + return this.extra; + } + component10_gazzfo_k$() { + return this.idStr; + } + copy_6bnrk9_k$(id, oid, mid, command, content, progress, ctime, mtime, extra, idStr) { + return new KCommandDm(id, oid, mid, command, content, progress, ctime, mtime, extra, idStr); + } + copy(id, oid, mid, command, content, progress, ctime, mtime, extra, idStr, $super) { + id = id === VOID ? this.id : id; + oid = oid === VOID ? this.oid : oid; + mid = mid === VOID ? this.mid : mid; + command = command === VOID ? this.command : command; + content = content === VOID ? this.content : content; + progress = progress === VOID ? this.progress : progress; + ctime = ctime === VOID ? this.ctime : ctime; + mtime = mtime === VOID ? this.mtime : mtime; + extra = extra === VOID ? this.extra : extra; + idStr = idStr === VOID ? this.idStr : idStr; + return this.copy_6bnrk9_k$(id, oid, mid, command, content, progress, ctime, mtime, extra, idStr); + } + toString() { + return 'KCommandDm(id=' + this.id.toString() + ', oid=' + this.oid.toString() + ', mid=' + this.mid.toString() + ', command=' + this.command + ', content=' + this.content + ', progress=' + this.progress + ', ctime=' + this.ctime + ', mtime=' + this.mtime + ', extra=' + this.extra + ', idStr=' + this.idStr + ')'; + } + hashCode() { + var result = this.id.hashCode(); + result = imul(result, 31) + this.oid.hashCode() | 0; + result = imul(result, 31) + this.mid.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.command) | 0; + result = imul(result, 31) + getStringHashCode(this.content) | 0; + result = imul(result, 31) + this.progress | 0; + result = imul(result, 31) + getStringHashCode(this.ctime) | 0; + result = imul(result, 31) + getStringHashCode(this.mtime) | 0; + result = imul(result, 31) + getStringHashCode(this.extra) | 0; + result = imul(result, 31) + getStringHashCode(this.idStr) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KCommandDm)) + return false; + var tmp0_other_with_cast = other instanceof KCommandDm ? other : THROW_CCE(); + if (!this.id.equals(tmp0_other_with_cast.id)) + return false; + if (!this.oid.equals(tmp0_other_with_cast.oid)) + return false; + if (!this.mid.equals(tmp0_other_with_cast.mid)) + return false; + if (!(this.command === tmp0_other_with_cast.command)) + return false; + if (!(this.content === tmp0_other_with_cast.content)) + return false; + if (!(this.progress === tmp0_other_with_cast.progress)) + return false; + if (!(this.ctime === tmp0_other_with_cast.ctime)) + return false; + if (!(this.mtime === tmp0_other_with_cast.mtime)) + return false; + if (!(this.extra === tmp0_other_with_cast.extra)) + return false; + if (!(this.idStr === tmp0_other_with_cast.idStr)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_v1_KCommandDm_83k7ea_k$(seen1, id, oid, mid, command, content, progress, ctime, mtime, extra, idStr, serializationConstructorMarker) { + Companion_instance_479; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_466().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.id = new Long(0, 0); + else + $this.id = id; + if (0 === (seen1 & 2)) + $this.oid = new Long(0, 0); + else + $this.oid = oid; + if (0 === (seen1 & 4)) + $this.mid = new Long(0, 0); + else + $this.mid = mid; + if (0 === (seen1 & 8)) + $this.command = ''; + else + $this.command = command; + if (0 === (seen1 & 16)) + $this.content = ''; + else + $this.content = content; + if (0 === (seen1 & 32)) + $this.progress = 0; + else + $this.progress = progress; + if (0 === (seen1 & 64)) + $this.ctime = ''; + else + $this.ctime = ctime; + if (0 === (seen1 & 128)) + $this.mtime = ''; + else + $this.mtime = mtime; + if (0 === (seen1 & 256)) + $this.extra = ''; + else + $this.extra = extra; + if (0 === (seen1 & 512)) + $this.idStr = ''; + else + $this.idStr = idStr; + return $this; + } + } + class Companion_480 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.v1.ShowTime'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_467(); + } + } + class $serializer_467 { + constructor() { + $serializer_instance_467 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.v1.KShowTime', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('startTime', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('endTime', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('posX', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('posY', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), IntSerializer_getInstance(), DoubleSerializer_getInstance(), DoubleSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = 0; + var tmp6_local2 = 0.0; + var tmp7_local3 = 0.0; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeDoubleElement_isei84_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeDoubleElement_isei84_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeDoubleElement_isei84_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeDoubleElement_isei84_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KShowTime.new_com_bapis_bilibili_app_viewunite_v1_KShowTime_t05avg_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_l9opfm_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.startTime === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.startTime); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.endTime === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.endTime); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !equals(value.posX, 0.0)) { + tmp1_output.encodeDoubleElement_a6rqhe_k$(tmp0_desc, 2, value.posX); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !equals(value.posY, 0.0)) { + tmp1_output.encodeDoubleElement_a6rqhe_k$(tmp0_desc, 3, value.posY); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_l9opfm_k$(encoder, value instanceof KShowTime ? value : THROW_CCE()); + } + } + class KShowTime { + constructor(startTime, endTime, posX, posY) { + Companion_instance_480; + startTime = startTime === VOID ? 0 : startTime; + endTime = endTime === VOID ? 0 : endTime; + posX = posX === VOID ? 0.0 : posX; + posY = posY === VOID ? 0.0 : posY; + this.startTime = startTime; + this.endTime = endTime; + this.posX = posX; + this.posY = posY; + } + get_startTime_qp7d5m_k$() { + return this.startTime; + } + get_endTime_pbcuqp_k$() { + return this.endTime; + } + get_posX_wosj4d_k$() { + return this.posX; + } + get_posY_wosj4e_k$() { + return this.posY; + } + component1_7eebsc_k$() { + return this.startTime; + } + component2_7eebsb_k$() { + return this.endTime; + } + component3_7eebsa_k$() { + return this.posX; + } + component4_7eebs9_k$() { + return this.posY; + } + copy_3zitvv_k$(startTime, endTime, posX, posY) { + return new KShowTime(startTime, endTime, posX, posY); + } + copy(startTime, endTime, posX, posY, $super) { + startTime = startTime === VOID ? this.startTime : startTime; + endTime = endTime === VOID ? this.endTime : endTime; + posX = posX === VOID ? this.posX : posX; + posY = posY === VOID ? this.posY : posY; + return this.copy_3zitvv_k$(startTime, endTime, posX, posY); + } + toString() { + return 'KShowTime(startTime=' + this.startTime + ', endTime=' + this.endTime + ', posX=' + this.posX + ', posY=' + this.posY + ')'; + } + hashCode() { + var result = this.startTime; + result = imul(result, 31) + this.endTime | 0; + result = imul(result, 31) + getNumberHashCode(this.posX) | 0; + result = imul(result, 31) + getNumberHashCode(this.posY) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KShowTime)) + return false; + var tmp0_other_with_cast = other instanceof KShowTime ? other : THROW_CCE(); + if (!(this.startTime === tmp0_other_with_cast.startTime)) + return false; + if (!(this.endTime === tmp0_other_with_cast.endTime)) + return false; + if (!equals(this.posX, tmp0_other_with_cast.posX)) + return false; + if (!equals(this.posY, tmp0_other_with_cast.posY)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_v1_KShowTime_t05avg_k$(seen1, startTime, endTime, posX, posY, serializationConstructorMarker) { + Companion_instance_480; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_467().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.startTime = 0; + else + $this.startTime = startTime; + if (0 === (seen1 & 2)) + $this.endTime = 0; + else + $this.endTime = endTime; + if (0 === (seen1 & 4)) + $this.posX = 0.0; + else + $this.posX = posX; + if (0 === (seen1 & 8)) + $this.posY = 0.0; + else + $this.posY = posY; + return $this; + } + } + class Companion_481 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.v1.PointMaterial'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_468(); + } + } + class $serializer_468 { + constructor() { + $serializer_instance_468 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.v1.KPointMaterial', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('url', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('materialSource', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = 0; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KPointMaterial.new_com_bapis_bilibili_app_viewunite_v1_KPointMaterial_3bgbb0_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_3yzlax_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.url === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.url); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.materialSource === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.materialSource); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_3yzlax_k$(encoder, value instanceof KPointMaterial ? value : THROW_CCE()); + } + } + class KPointMaterial { + constructor(url, materialSource) { + Companion_instance_481; + url = url === VOID ? '' : url; + materialSource = materialSource === VOID ? 0 : materialSource; + this.url = url; + this.materialSource = materialSource; + } + get_url_18iuii_k$() { + return this.url; + } + get_materialSource_6pw9bf_k$() { + return this.materialSource; + } + materialSourceEnum() { + return Companion_getInstance_416().fromValue(this.materialSource); + } + component1_7eebsc_k$() { + return this.url; + } + component2_7eebsb_k$() { + return this.materialSource; + } + copy_1yzwer_k$(url, materialSource) { + return new KPointMaterial(url, materialSource); + } + copy(url, materialSource, $super) { + url = url === VOID ? this.url : url; + materialSource = materialSource === VOID ? this.materialSource : materialSource; + return this.copy_1yzwer_k$(url, materialSource); + } + toString() { + return 'KPointMaterial(url=' + this.url + ', materialSource=' + this.materialSource + ')'; + } + hashCode() { + var result = getStringHashCode(this.url); + result = imul(result, 31) + this.materialSource | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KPointMaterial)) + return false; + var tmp0_other_with_cast = other instanceof KPointMaterial ? other : THROW_CCE(); + if (!(this.url === tmp0_other_with_cast.url)) + return false; + if (!(this.materialSource === tmp0_other_with_cast.materialSource)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_v1_KPointMaterial_3bgbb0_k$(seen1, url, materialSource, serializationConstructorMarker) { + Companion_instance_481; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_468().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.url = ''; + else + $this.url = url; + if (0 === (seen1 & 2)) + $this.materialSource = 0; + else + $this.materialSource = materialSource; + return $this; + } + } + class Companion_482 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.v1.Material.ReportEntry'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_469(); + } + } + class $serializer_469 { + constructor() { + $serializer_instance_469 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.v1.KMaterial.KReportEntry', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('key', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('value', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KReportEntry_16.new_com_bapis_bilibili_app_viewunite_v1_KMaterial_KReportEntry_ketirl_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_5lktyc_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.key === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.key); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.value === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.value); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_5lktyc_k$(encoder, value instanceof KReportEntry_16 ? value : THROW_CCE()); + } + } + class KReportEntry_16 { + constructor(key, value) { + Companion_instance_482; + key = key === VOID ? '' : key; + value = value === VOID ? '' : value; + this.key = key; + this.value = value; + } + get_key_18j28a_k$() { + return this.key; + } + get_value_j01efc_k$() { + return this.value; + } + component1_7eebsc_k$() { + return this.key; + } + component2_7eebsb_k$() { + return this.value; + } + copy_plwnsl_k$(key, value) { + return new KReportEntry_16(key, value); + } + copy(key, value, $super) { + key = key === VOID ? this.key : key; + value = value === VOID ? this.value : value; + return this.copy_plwnsl_k$(key, value); + } + toString() { + return 'KReportEntry(key=' + this.key + ', value=' + this.value + ')'; + } + hashCode() { + var result = getStringHashCode(this.key); + result = imul(result, 31) + getStringHashCode(this.value) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KReportEntry_16)) + return false; + var tmp0_other_with_cast = other instanceof KReportEntry_16 ? other : THROW_CCE(); + if (!(this.key === tmp0_other_with_cast.key)) + return false; + if (!(this.value === tmp0_other_with_cast.value)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_v1_KMaterial_KReportEntry_ketirl_k$(seen1, key, value, serializationConstructorMarker) { + Companion_instance_482; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_469().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.key = ''; + else + $this.key = key; + if (0 === (seen1 & 2)) + $this.value = ''; + else + $this.value = value; + return $this; + } + } + class Companion_483 { + constructor() { + Companion_instance_483 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, null, null, null, null, null, null, null, null, new LinkedHashMapSerializer(StringSerializer_getInstance(), StringSerializer_getInstance())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.viewunite.v1.Material'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_470(); + } + } + class $serializer_470 { + constructor() { + $serializer_instance_470 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.v1.KMaterial', this, 12); + tmp0_serialDesc.addElement_5pzumi_k$('icon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('text', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('url', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('param', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('staticIcon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('bgColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('bgPic', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('jumpType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('pageType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('needLogin', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('report', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_483().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), BooleanSerializer_getInstance(), tmp0_cached[11]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = 0; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_local8 = 0; + var tmp13_local9 = 0; + var tmp14_local10 = false; + var tmp15_local11 = null; + var tmp16_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp17_cached = Companion_getInstance_483().$childSerializers_1; + if (tmp16_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp16_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp16_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 11, tmp17_cached[11], tmp15_local11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + } else + while (tmp1_flag) { + tmp2_index = tmp16_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp16_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp16_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 11, tmp17_cached[11], tmp15_local11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp16_input.endStructure_1xqz0n_k$(tmp0_desc); + return KMaterial.new_com_bapis_bilibili_app_viewunite_v1_KMaterial_4txhsg_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, null); + } + serialize_sg67j3_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_483().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.icon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.icon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.text === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.text); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.url === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.url); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.type === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 3, value.type); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.param === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.param); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.staticIcon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.staticIcon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.bgColor === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.bgColor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.bgPic === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.bgPic); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.jumpType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 8, value.jumpType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.pageType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 9, value.pageType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.needLogin === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 10, value.needLogin); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !equals(value.report, emptyMap())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 11, tmp2_cached[11], value.report); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_sg67j3_k$(encoder, value instanceof KMaterial ? value : THROW_CCE()); + } + } + class KMaterial { + constructor(icon, text, url, type, param, staticIcon, bgColor, bgPic, jumpType, pageType, needLogin, report) { + Companion_getInstance_483(); + icon = icon === VOID ? '' : icon; + text = text === VOID ? '' : text; + url = url === VOID ? '' : url; + type = type === VOID ? 0 : type; + param = param === VOID ? '' : param; + staticIcon = staticIcon === VOID ? '' : staticIcon; + bgColor = bgColor === VOID ? '' : bgColor; + bgPic = bgPic === VOID ? '' : bgPic; + jumpType = jumpType === VOID ? 0 : jumpType; + pageType = pageType === VOID ? 0 : pageType; + needLogin = needLogin === VOID ? false : needLogin; + report = report === VOID ? emptyMap() : report; + this.icon = icon; + this.text = text; + this.url = url; + this.type = type; + this.param = param; + this.staticIcon = staticIcon; + this.bgColor = bgColor; + this.bgPic = bgPic; + this.jumpType = jumpType; + this.pageType = pageType; + this.needLogin = needLogin; + this.report = report; + } + get_icon_wont8i_k$() { + return this.icon; + } + get_text_wouvsm_k$() { + return this.text; + } + get_url_18iuii_k$() { + return this.url; + } + get_type_wovaf7_k$() { + return this.type; + } + get_param_iwqquc_k$() { + return this.param; + } + get_staticIcon_m04prk_k$() { + return this.staticIcon; + } + get_bgColor_24ewuj_k$() { + return this.bgColor; + } + get_bgPic_ip4rfg_k$() { + return this.bgPic; + } + get_jumpType_z060cx_k$() { + return this.jumpType; + } + get_pageType_hl88ni_k$() { + return this.pageType; + } + get_needLogin_q0vphm_k$() { + return this.needLogin; + } + get_report_iye43h_k$() { + return this.report; + } + typeEnum() { + return Companion_getInstance_417().fromValue(this.type); + } + pageTypeEnum() { + return Companion_getInstance_414().fromValue(this.pageType); + } + component1_7eebsc_k$() { + return this.icon; + } + component2_7eebsb_k$() { + return this.text; + } + component3_7eebsa_k$() { + return this.url; + } + component4_7eebs9_k$() { + return this.type; + } + component5_7eebs8_k$() { + return this.param; + } + component6_7eebs7_k$() { + return this.staticIcon; + } + component7_7eebs6_k$() { + return this.bgColor; + } + component8_7eebs5_k$() { + return this.bgPic; + } + component9_7eebs4_k$() { + return this.jumpType; + } + component10_gazzfo_k$() { + return this.pageType; + } + component11_gazzfn_k$() { + return this.needLogin; + } + component12_gazzfm_k$() { + return this.report; + } + copy_d8y3p6_k$(icon, text, url, type, param, staticIcon, bgColor, bgPic, jumpType, pageType, needLogin, report) { + return new KMaterial(icon, text, url, type, param, staticIcon, bgColor, bgPic, jumpType, pageType, needLogin, report); + } + copy(icon, text, url, type, param, staticIcon, bgColor, bgPic, jumpType, pageType, needLogin, report, $super) { + icon = icon === VOID ? this.icon : icon; + text = text === VOID ? this.text : text; + url = url === VOID ? this.url : url; + type = type === VOID ? this.type : type; + param = param === VOID ? this.param : param; + staticIcon = staticIcon === VOID ? this.staticIcon : staticIcon; + bgColor = bgColor === VOID ? this.bgColor : bgColor; + bgPic = bgPic === VOID ? this.bgPic : bgPic; + jumpType = jumpType === VOID ? this.jumpType : jumpType; + pageType = pageType === VOID ? this.pageType : pageType; + needLogin = needLogin === VOID ? this.needLogin : needLogin; + report = report === VOID ? this.report : report; + return this.copy_d8y3p6_k$(icon, text, url, type, param, staticIcon, bgColor, bgPic, jumpType, pageType, needLogin, report); + } + toString() { + return 'KMaterial(icon=' + this.icon + ', text=' + this.text + ', url=' + this.url + ', type=' + this.type + ', param=' + this.param + ', staticIcon=' + this.staticIcon + ', bgColor=' + this.bgColor + ', bgPic=' + this.bgPic + ', jumpType=' + this.jumpType + ', pageType=' + this.pageType + ', needLogin=' + this.needLogin + ', report=' + this.report + ')'; + } + hashCode() { + var result = getStringHashCode(this.icon); + result = imul(result, 31) + getStringHashCode(this.text) | 0; + result = imul(result, 31) + getStringHashCode(this.url) | 0; + result = imul(result, 31) + this.type | 0; + result = imul(result, 31) + getStringHashCode(this.param) | 0; + result = imul(result, 31) + getStringHashCode(this.staticIcon) | 0; + result = imul(result, 31) + getStringHashCode(this.bgColor) | 0; + result = imul(result, 31) + getStringHashCode(this.bgPic) | 0; + result = imul(result, 31) + this.jumpType | 0; + result = imul(result, 31) + this.pageType | 0; + result = imul(result, 31) + getBooleanHashCode(this.needLogin) | 0; + result = imul(result, 31) + hashCode(this.report) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KMaterial)) + return false; + var tmp0_other_with_cast = other instanceof KMaterial ? other : THROW_CCE(); + if (!(this.icon === tmp0_other_with_cast.icon)) + return false; + if (!(this.text === tmp0_other_with_cast.text)) + return false; + if (!(this.url === tmp0_other_with_cast.url)) + return false; + if (!(this.type === tmp0_other_with_cast.type)) + return false; + if (!(this.param === tmp0_other_with_cast.param)) + return false; + if (!(this.staticIcon === tmp0_other_with_cast.staticIcon)) + return false; + if (!(this.bgColor === tmp0_other_with_cast.bgColor)) + return false; + if (!(this.bgPic === tmp0_other_with_cast.bgPic)) + return false; + if (!(this.jumpType === tmp0_other_with_cast.jumpType)) + return false; + if (!(this.pageType === tmp0_other_with_cast.pageType)) + return false; + if (!(this.needLogin === tmp0_other_with_cast.needLogin)) + return false; + if (!equals(this.report, tmp0_other_with_cast.report)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_v1_KMaterial_4txhsg_k$(seen1, icon, text, url, type, param, staticIcon, bgColor, bgPic, jumpType, pageType, needLogin, report, serializationConstructorMarker) { + Companion_getInstance_483(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_470().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.icon = ''; + else + $this.icon = icon; + if (0 === (seen1 & 2)) + $this.text = ''; + else + $this.text = text; + if (0 === (seen1 & 4)) + $this.url = ''; + else + $this.url = url; + if (0 === (seen1 & 8)) + $this.type = 0; + else + $this.type = type; + if (0 === (seen1 & 16)) + $this.param = ''; + else + $this.param = param; + if (0 === (seen1 & 32)) + $this.staticIcon = ''; + else + $this.staticIcon = staticIcon; + if (0 === (seen1 & 64)) + $this.bgColor = ''; + else + $this.bgColor = bgColor; + if (0 === (seen1 & 128)) + $this.bgPic = ''; + else + $this.bgPic = bgPic; + if (0 === (seen1 & 256)) + $this.jumpType = 0; + else + $this.jumpType = jumpType; + if (0 === (seen1 & 512)) + $this.pageType = 0; + else + $this.pageType = pageType; + if (0 === (seen1 & 1024)) + $this.needLogin = false; + else + $this.needLogin = needLogin; + if (0 === (seen1 & 2048)) + $this.report = emptyMap(); + else + $this.report = report; + return $this; + } + } + class Companion_484 { + constructor() { + Companion_instance_484 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KSort$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KSort$Companion$_anonymous__qzigii); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_66(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.polymer.app.search.v1.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KSort_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.polymer.app.search.v1.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KSort with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_66(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_471 { + constructor() { + $serializer_instance_471 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.polymer.app.search.v1.KSort', 5); + tmp0_serialDesc.addElement_5pzumi_k$('DEFAULT', false); + tmp0_serialDesc.addElement_5pzumi_k$('VIEW_COUNT', false); + tmp0_serialDesc.addElement_5pzumi_k$('PUBLISH_TIME', false); + tmp0_serialDesc.addElement_5pzumi_k$('DANMAKU_COUNT', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_66()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_u8swjk_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_u8swjk_k$(encoder, value instanceof KSort ? value : THROW_CCE()); + } + } + class KSort extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_485 { + constructor() { + Companion_instance_485 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KCategorySort$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KCategorySort$Companion$_anonymous__92s66g); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_67(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.polymer.app.search.v1.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KCategorySort_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.polymer.app.search.v1.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KCategorySort with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_67(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_472 { + constructor() { + $serializer_instance_472 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.polymer.app.search.v1.KCategorySort', 6); + tmp0_serialDesc.addElement_5pzumi_k$('DEFAULT', false); + tmp0_serialDesc.addElement_5pzumi_k$('PUBLISH_TIME', false); + tmp0_serialDesc.addElement_5pzumi_k$('CLICK_COUNT', false); + tmp0_serialDesc.addElement_5pzumi_k$('COMMENT_COUNT', false); + tmp0_serialDesc.addElement_5pzumi_k$('LIKE_COUNT', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_67()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_2mpzfi_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_2mpzfi_k$(encoder, value instanceof KCategorySort ? value : THROW_CCE()); + } + } + class KCategorySort extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_486 { + constructor() { + Companion_instance_486 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KUserType$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KUserType$Companion$_anonymous__88iba7); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_68(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.polymer.app.search.v1.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KUserType_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.polymer.app.search.v1.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KUserType with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_68(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_473 { + constructor() { + $serializer_instance_473 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.polymer.app.search.v1.KUserType', 5); + tmp0_serialDesc.addElement_5pzumi_k$('ALL', false); + tmp0_serialDesc.addElement_5pzumi_k$('UP', false); + tmp0_serialDesc.addElement_5pzumi_k$('NORMAL_USER', false); + tmp0_serialDesc.addElement_5pzumi_k$('AUTHENTICATED_USER', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_68()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_s7ld95_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_s7ld95_k$(encoder, value instanceof KUserType ? value : THROW_CCE()); + } + } + class KUserType extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_487 { + constructor() { + Companion_instance_487 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KUserSort$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KUserSort$Companion$_anonymous__22wclh); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_69(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.polymer.app.search.v1.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KUserSort_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.polymer.app.search.v1.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KUserSort with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_69(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_474 { + constructor() { + $serializer_instance_474 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.polymer.app.search.v1.KUserSort', 6); + tmp0_serialDesc.addElement_5pzumi_k$('DEFAULT', false); + tmp0_serialDesc.addElement_5pzumi_k$('FANS_DESCEND', false); + tmp0_serialDesc.addElement_5pzumi_k$('FANS_ASCEND', false); + tmp0_serialDesc.addElement_5pzumi_k$('LEVEL_DESCEND', false); + tmp0_serialDesc.addElement_5pzumi_k$('LEVEL_ASCEND', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_69()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_uhrq17_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_uhrq17_k$(encoder, value instanceof KUserSort ? value : THROW_CCE()); + } + } + class KUserSort extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_488 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.SearchAllRequest.FromExtraEntry'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_475(); + } + } + class $serializer_475 { + constructor() { + $serializer_instance_475 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KSearchAllRequest.KFromExtraEntry', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('key', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('value', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KFromExtraEntry.new_com_bapis_bilibili_polymer_app_search_v1_KSearchAllRequest_KFromExtraEntry_lchgiv_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_xbtrc8_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.key === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.key); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.value === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.value); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_xbtrc8_k$(encoder, value instanceof KFromExtraEntry ? value : THROW_CCE()); + } + } + class KFromExtraEntry { + constructor(key, value) { + Companion_instance_488; + key = key === VOID ? '' : key; + value = value === VOID ? '' : value; + this.key = key; + this.value = value; + } + get_key_18j28a_k$() { + return this.key; + } + get_value_j01efc_k$() { + return this.value; + } + component1_7eebsc_k$() { + return this.key; + } + component2_7eebsb_k$() { + return this.value; + } + copy_plwnsl_k$(key, value) { + return new KFromExtraEntry(key, value); + } + copy(key, value, $super) { + key = key === VOID ? this.key : key; + value = value === VOID ? this.value : value; + return this.copy_plwnsl_k$(key, value); + } + toString() { + return 'KFromExtraEntry(key=' + this.key + ', value=' + this.value + ')'; + } + hashCode() { + var result = getStringHashCode(this.key); + result = imul(result, 31) + getStringHashCode(this.value) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KFromExtraEntry)) + return false; + var tmp0_other_with_cast = other instanceof KFromExtraEntry ? other : THROW_CCE(); + if (!(this.key === tmp0_other_with_cast.key)) + return false; + if (!(this.value === tmp0_other_with_cast.value)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KSearchAllRequest_KFromExtraEntry_lchgiv_k$(seen1, key, value, serializationConstructorMarker) { + Companion_instance_488; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_475().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.key = ''; + else + $this.key = key; + if (0 === (seen1 & 2)) + $this.value = ''; + else + $this.value = value; + return $this; + } + } + class Companion_489 { + constructor() { + Companion_instance_489 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, null, null, null, null, null, null, null, null, new LinkedHashMapSerializer(StringSerializer_getInstance(), StringSerializer_getInstance()), null, null, null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.polymer.app.search.v1.SearchAllRequest'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_476(); + } + } + class $serializer_476 { + constructor() { + $serializer_instance_476 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KSearchAllRequest', this, 16); + tmp0_serialDesc.addElement_5pzumi_k$('keyword', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('order', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('tidList', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('durationList', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('extraWord', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('fromSource', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('isOrgQuery', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('localTime', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('adExtra', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('pagination', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('playerArgs', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('fromExtra', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('forcedDisplayChatCard', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(13)); + tmp0_serialDesc.addElement_5pzumi_k$('isRefresh', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(14)); + tmp0_serialDesc.addElement_5pzumi_k$('refreshTimes', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(15)); + tmp0_serialDesc.addElement_5pzumi_k$('since', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(16)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_489().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_195()), get_nullable($serializer_getInstance_152()), tmp0_cached[11], IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = 0; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = 0; + var tmp11_local7 = 0; + var tmp12_local8 = null; + var tmp13_local9 = null; + var tmp14_local10 = null; + var tmp15_local11 = null; + var tmp16_local12 = 0; + var tmp17_local13 = 0; + var tmp18_local14 = 0; + var tmp19_local15 = null; + var tmp20_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp21_cached = Companion_getInstance_489().$childSerializers_1; + if (tmp20_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 9, $serializer_getInstance_195(), tmp13_local9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 10, $serializer_getInstance_152(), tmp14_local10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp20_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 11, tmp21_cached[11], tmp15_local11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + tmp16_local12 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + tmp17_local13 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + tmp18_local14 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + tmp19_local15 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + } else + while (tmp1_flag) { + tmp2_index = tmp20_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 9, $serializer_getInstance_195(), tmp13_local9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 10, $serializer_getInstance_152(), tmp14_local10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp20_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 11, tmp21_cached[11], tmp15_local11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + case 12: + tmp16_local12 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + break; + case 13: + tmp17_local13 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + break; + case 14: + tmp18_local14 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + break; + case 15: + tmp19_local15 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp20_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSearchAllRequest.new_com_bapis_bilibili_polymer_app_search_v1_KSearchAllRequest_wb30o_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, tmp18_local14, tmp19_local15, null); + } + serialize_3ztp6p_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_489().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.keyword === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.keyword); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.order === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.order); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.tidList === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.tidList); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.durationList === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.durationList); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.extraWord === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.extraWord); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.fromSource === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.fromSource); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.isOrgQuery === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 6, value.isOrgQuery); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.localTime === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 7, value.localTime); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.adExtra === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 8, value.adExtra); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.pagination == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 9, $serializer_getInstance_195(), value.pagination); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.playerArgs == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 10, $serializer_getInstance_152(), value.playerArgs); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !equals(value.fromExtra, emptyMap())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 11, tmp2_cached[11], value.fromExtra); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !(value.forcedDisplayChatCard === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 12, value.forcedDisplayChatCard); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 13) ? true : !(value.isRefresh === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 13, value.isRefresh); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 14) ? true : !(value.refreshTimes === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 14, value.refreshTimes); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 15) ? true : !(value.since === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 15, value.since); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_3ztp6p_k$(encoder, value instanceof KSearchAllRequest ? value : THROW_CCE()); + } + } + class KSearchAllRequest { + constructor(keyword, order, tidList, durationList, extraWord, fromSource, isOrgQuery, localTime, adExtra, pagination, playerArgs, fromExtra, forcedDisplayChatCard, isRefresh, refreshTimes, since) { + Companion_getInstance_489(); + keyword = keyword === VOID ? '' : keyword; + order = order === VOID ? 0 : order; + tidList = tidList === VOID ? '' : tidList; + durationList = durationList === VOID ? '' : durationList; + extraWord = extraWord === VOID ? '' : extraWord; + fromSource = fromSource === VOID ? '' : fromSource; + isOrgQuery = isOrgQuery === VOID ? 0 : isOrgQuery; + localTime = localTime === VOID ? 0 : localTime; + adExtra = adExtra === VOID ? '' : adExtra; + pagination = pagination === VOID ? null : pagination; + playerArgs = playerArgs === VOID ? null : playerArgs; + fromExtra = fromExtra === VOID ? emptyMap() : fromExtra; + forcedDisplayChatCard = forcedDisplayChatCard === VOID ? 0 : forcedDisplayChatCard; + isRefresh = isRefresh === VOID ? 0 : isRefresh; + refreshTimes = refreshTimes === VOID ? 0 : refreshTimes; + since = since === VOID ? '' : since; + this.keyword = keyword; + this.order = order; + this.tidList = tidList; + this.durationList = durationList; + this.extraWord = extraWord; + this.fromSource = fromSource; + this.isOrgQuery = isOrgQuery; + this.localTime = localTime; + this.adExtra = adExtra; + this.pagination = pagination; + this.playerArgs = playerArgs; + this.fromExtra = fromExtra; + this.forcedDisplayChatCard = forcedDisplayChatCard; + this.isRefresh = isRefresh; + this.refreshTimes = refreshTimes; + this.since = since; + } + get_keyword_c7bncw_k$() { + return this.keyword; + } + get_order_iwhiqt_k$() { + return this.order; + } + get_tidList_km3z18_k$() { + return this.tidList; + } + get_durationList_rgwig5_k$() { + return this.durationList; + } + get_extraWord_4brkwh_k$() { + return this.extraWord; + } + get_fromSource_ffvi7i_k$() { + return this.fromSource; + } + get_isOrgQuery_brh59l_k$() { + return this.isOrgQuery; + } + get_localTime_bf0zwx_k$() { + return this.localTime; + } + get_adExtra_i6ok70_k$() { + return this.adExtra; + } + get_pagination_1aczdv_k$() { + return this.pagination; + } + get_playerArgs_eh86hz_k$() { + return this.playerArgs; + } + get_fromExtra_9gcc7x_k$() { + return this.fromExtra; + } + get_forcedDisplayChatCard_2cko2g_k$() { + return this.forcedDisplayChatCard; + } + get_isRefresh_gvkzoo_k$() { + return this.isRefresh; + } + get_refreshTimes_3ltdo4_k$() { + return this.refreshTimes; + } + get_since_iyj5ld_k$() { + return this.since; + } + orderEnum() { + return Companion_getInstance_484().fromValue(this.order); + } + component1_7eebsc_k$() { + return this.keyword; + } + component2_7eebsb_k$() { + return this.order; + } + component3_7eebsa_k$() { + return this.tidList; + } + component4_7eebs9_k$() { + return this.durationList; + } + component5_7eebs8_k$() { + return this.extraWord; + } + component6_7eebs7_k$() { + return this.fromSource; + } + component7_7eebs6_k$() { + return this.isOrgQuery; + } + component8_7eebs5_k$() { + return this.localTime; + } + component9_7eebs4_k$() { + return this.adExtra; + } + component10_gazzfo_k$() { + return this.pagination; + } + component11_gazzfn_k$() { + return this.playerArgs; + } + component12_gazzfm_k$() { + return this.fromExtra; + } + component13_gazzfl_k$() { + return this.forcedDisplayChatCard; + } + component14_gazzfk_k$() { + return this.isRefresh; + } + component15_gazzfj_k$() { + return this.refreshTimes; + } + component16_gazzfi_k$() { + return this.since; + } + copy_8ze0cm_k$(keyword, order, tidList, durationList, extraWord, fromSource, isOrgQuery, localTime, adExtra, pagination, playerArgs, fromExtra, forcedDisplayChatCard, isRefresh, refreshTimes, since) { + return new KSearchAllRequest(keyword, order, tidList, durationList, extraWord, fromSource, isOrgQuery, localTime, adExtra, pagination, playerArgs, fromExtra, forcedDisplayChatCard, isRefresh, refreshTimes, since); + } + copy(keyword, order, tidList, durationList, extraWord, fromSource, isOrgQuery, localTime, adExtra, pagination, playerArgs, fromExtra, forcedDisplayChatCard, isRefresh, refreshTimes, since, $super) { + keyword = keyword === VOID ? this.keyword : keyword; + order = order === VOID ? this.order : order; + tidList = tidList === VOID ? this.tidList : tidList; + durationList = durationList === VOID ? this.durationList : durationList; + extraWord = extraWord === VOID ? this.extraWord : extraWord; + fromSource = fromSource === VOID ? this.fromSource : fromSource; + isOrgQuery = isOrgQuery === VOID ? this.isOrgQuery : isOrgQuery; + localTime = localTime === VOID ? this.localTime : localTime; + adExtra = adExtra === VOID ? this.adExtra : adExtra; + pagination = pagination === VOID ? this.pagination : pagination; + playerArgs = playerArgs === VOID ? this.playerArgs : playerArgs; + fromExtra = fromExtra === VOID ? this.fromExtra : fromExtra; + forcedDisplayChatCard = forcedDisplayChatCard === VOID ? this.forcedDisplayChatCard : forcedDisplayChatCard; + isRefresh = isRefresh === VOID ? this.isRefresh : isRefresh; + refreshTimes = refreshTimes === VOID ? this.refreshTimes : refreshTimes; + since = since === VOID ? this.since : since; + return this.copy_8ze0cm_k$(keyword, order, tidList, durationList, extraWord, fromSource, isOrgQuery, localTime, adExtra, pagination, playerArgs, fromExtra, forcedDisplayChatCard, isRefresh, refreshTimes, since); + } + toString() { + return 'KSearchAllRequest(keyword=' + this.keyword + ', order=' + this.order + ', tidList=' + this.tidList + ', durationList=' + this.durationList + ', extraWord=' + this.extraWord + ', fromSource=' + this.fromSource + ', isOrgQuery=' + this.isOrgQuery + ', localTime=' + this.localTime + ', adExtra=' + this.adExtra + ', pagination=' + this.pagination + ', playerArgs=' + this.playerArgs + ', fromExtra=' + this.fromExtra + ', forcedDisplayChatCard=' + this.forcedDisplayChatCard + ', isRefresh=' + this.isRefresh + ', refreshTimes=' + this.refreshTimes + ', since=' + this.since + ')'; + } + hashCode() { + var result = getStringHashCode(this.keyword); + result = imul(result, 31) + this.order | 0; + result = imul(result, 31) + getStringHashCode(this.tidList) | 0; + result = imul(result, 31) + getStringHashCode(this.durationList) | 0; + result = imul(result, 31) + getStringHashCode(this.extraWord) | 0; + result = imul(result, 31) + getStringHashCode(this.fromSource) | 0; + result = imul(result, 31) + this.isOrgQuery | 0; + result = imul(result, 31) + this.localTime | 0; + result = imul(result, 31) + getStringHashCode(this.adExtra) | 0; + result = imul(result, 31) + (this.pagination == null ? 0 : this.pagination.hashCode()) | 0; + result = imul(result, 31) + (this.playerArgs == null ? 0 : this.playerArgs.hashCode()) | 0; + result = imul(result, 31) + hashCode(this.fromExtra) | 0; + result = imul(result, 31) + this.forcedDisplayChatCard | 0; + result = imul(result, 31) + this.isRefresh | 0; + result = imul(result, 31) + this.refreshTimes | 0; + result = imul(result, 31) + getStringHashCode(this.since) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSearchAllRequest)) + return false; + var tmp0_other_with_cast = other instanceof KSearchAllRequest ? other : THROW_CCE(); + if (!(this.keyword === tmp0_other_with_cast.keyword)) + return false; + if (!(this.order === tmp0_other_with_cast.order)) + return false; + if (!(this.tidList === tmp0_other_with_cast.tidList)) + return false; + if (!(this.durationList === tmp0_other_with_cast.durationList)) + return false; + if (!(this.extraWord === tmp0_other_with_cast.extraWord)) + return false; + if (!(this.fromSource === tmp0_other_with_cast.fromSource)) + return false; + if (!(this.isOrgQuery === tmp0_other_with_cast.isOrgQuery)) + return false; + if (!(this.localTime === tmp0_other_with_cast.localTime)) + return false; + if (!(this.adExtra === tmp0_other_with_cast.adExtra)) + return false; + if (!equals(this.pagination, tmp0_other_with_cast.pagination)) + return false; + if (!equals(this.playerArgs, tmp0_other_with_cast.playerArgs)) + return false; + if (!equals(this.fromExtra, tmp0_other_with_cast.fromExtra)) + return false; + if (!(this.forcedDisplayChatCard === tmp0_other_with_cast.forcedDisplayChatCard)) + return false; + if (!(this.isRefresh === tmp0_other_with_cast.isRefresh)) + return false; + if (!(this.refreshTimes === tmp0_other_with_cast.refreshTimes)) + return false; + if (!(this.since === tmp0_other_with_cast.since)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KSearchAllRequest_wb30o_k$(seen1, keyword, order, tidList, durationList, extraWord, fromSource, isOrgQuery, localTime, adExtra, pagination, playerArgs, fromExtra, forcedDisplayChatCard, isRefresh, refreshTimes, since, serializationConstructorMarker) { + Companion_getInstance_489(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_476().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.keyword = ''; + else + $this.keyword = keyword; + if (0 === (seen1 & 2)) + $this.order = 0; + else + $this.order = order; + if (0 === (seen1 & 4)) + $this.tidList = ''; + else + $this.tidList = tidList; + if (0 === (seen1 & 8)) + $this.durationList = ''; + else + $this.durationList = durationList; + if (0 === (seen1 & 16)) + $this.extraWord = ''; + else + $this.extraWord = extraWord; + if (0 === (seen1 & 32)) + $this.fromSource = ''; + else + $this.fromSource = fromSource; + if (0 === (seen1 & 64)) + $this.isOrgQuery = 0; + else + $this.isOrgQuery = isOrgQuery; + if (0 === (seen1 & 128)) + $this.localTime = 0; + else + $this.localTime = localTime; + if (0 === (seen1 & 256)) + $this.adExtra = ''; + else + $this.adExtra = adExtra; + if (0 === (seen1 & 512)) + $this.pagination = null; + else + $this.pagination = pagination; + if (0 === (seen1 & 1024)) + $this.playerArgs = null; + else + $this.playerArgs = playerArgs; + if (0 === (seen1 & 2048)) + $this.fromExtra = emptyMap(); + else + $this.fromExtra = fromExtra; + if (0 === (seen1 & 4096)) + $this.forcedDisplayChatCard = 0; + else + $this.forcedDisplayChatCard = forcedDisplayChatCard; + if (0 === (seen1 & 8192)) + $this.isRefresh = 0; + else + $this.isRefresh = isRefresh; + if (0 === (seen1 & 16384)) + $this.refreshTimes = 0; + else + $this.refreshTimes = refreshTimes; + if (0 === (seen1 & 32768)) + $this.since = ''; + else + $this.since = since; + return $this; + } + } + class Companion_490 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.SearchComicRequest'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_477(); + } + } + class $serializer_477 { + constructor() { + $serializer_instance_477 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KSearchComicRequest', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('idList', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSearchComicRequest.new_com_bapis_bilibili_polymer_app_search_v1_KSearchComicRequest_wkb9k0_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_ipxssl_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.idList === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.idList); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_ipxssl_k$(encoder, value instanceof KSearchComicRequest ? value : THROW_CCE()); + } + } + class KSearchComicRequest { + constructor(idList) { + Companion_instance_490; + idList = idList === VOID ? '' : idList; + this.idList = idList; + } + get_idList_ensm02_k$() { + return this.idList; + } + component1_7eebsc_k$() { + return this.idList; + } + copy_a35qlh_k$(idList) { + return new KSearchComicRequest(idList); + } + copy(idList, $super) { + idList = idList === VOID ? this.idList : idList; + return this.copy_a35qlh_k$(idList); + } + toString() { + return 'KSearchComicRequest(idList=' + this.idList + ')'; + } + hashCode() { + return getStringHashCode(this.idList); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSearchComicRequest)) + return false; + var tmp0_other_with_cast = other instanceof KSearchComicRequest ? other : THROW_CCE(); + if (!(this.idList === tmp0_other_with_cast.idList)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KSearchComicRequest_wkb9k0_k$(seen1, idList, serializationConstructorMarker) { + Companion_instance_490; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_477().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.idList = ''; + else + $this.idList = idList; + return $this; + } + } + class Companion_491 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.SearchByTypeRequest'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_478(); + } + } + class $serializer_478 { + constructor() { + $serializer_instance_478 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KSearchByTypeRequest', this, 8); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('keyword', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('categorySort', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('categoryId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('userType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('userSort', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('pagination', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('playerArgs', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), get_nullable($serializer_getInstance_195()), get_nullable($serializer_getInstance_152())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = null; + var tmp6_local2 = 0; + var tmp7_local3 = new Long(0, 0); + var tmp8_local4 = 0; + var tmp9_local5 = 0; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp12_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_195(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_152(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + } else + while (tmp1_flag) { + tmp2_index = tmp12_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_195(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_152(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp12_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSearchByTypeRequest.new_com_bapis_bilibili_polymer_app_search_v1_KSearchByTypeRequest_ay3gjl_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null); + } + serialize_mgi0br_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.type === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.type); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.keyword === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.keyword); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.categorySort === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.categorySort); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !value.categoryId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 3, value.categoryId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.userType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 4, value.userType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.userSort === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 5, value.userSort); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.pagination == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 6, $serializer_getInstance_195(), value.pagination); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.playerArgs == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 7, $serializer_getInstance_152(), value.playerArgs); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_mgi0br_k$(encoder, value instanceof KSearchByTypeRequest ? value : THROW_CCE()); + } + } + class KSearchByTypeRequest { + constructor(type, keyword, categorySort, categoryId, userType, userSort, pagination, playerArgs) { + Companion_instance_491; + type = type === VOID ? 0 : type; + keyword = keyword === VOID ? '' : keyword; + categorySort = categorySort === VOID ? 0 : categorySort; + categoryId = categoryId === VOID ? new Long(0, 0) : categoryId; + userType = userType === VOID ? 0 : userType; + userSort = userSort === VOID ? 0 : userSort; + pagination = pagination === VOID ? null : pagination; + playerArgs = playerArgs === VOID ? null : playerArgs; + this.type = type; + this.keyword = keyword; + this.categorySort = categorySort; + this.categoryId = categoryId; + this.userType = userType; + this.userSort = userSort; + this.pagination = pagination; + this.playerArgs = playerArgs; + } + get_type_wovaf7_k$() { + return this.type; + } + get_keyword_c7bncw_k$() { + return this.keyword; + } + get_categorySort_blbhfp_k$() { + return this.categorySort; + } + get_categoryId_19o37m_k$() { + return this.categoryId; + } + get_userType_ytj1pq_k$() { + return this.userType; + } + get_userSort_yti7de_k$() { + return this.userSort; + } + get_pagination_1aczdv_k$() { + return this.pagination; + } + get_playerArgs_eh86hz_k$() { + return this.playerArgs; + } + categorySortEnum() { + return Companion_getInstance_485().fromValue(this.categorySort); + } + userTypeEnum() { + return Companion_getInstance_486().fromValue(this.userType); + } + userSortEnum() { + return Companion_getInstance_487().fromValue(this.userSort); + } + component1_7eebsc_k$() { + return this.type; + } + component2_7eebsb_k$() { + return this.keyword; + } + component3_7eebsa_k$() { + return this.categorySort; + } + component4_7eebs9_k$() { + return this.categoryId; + } + component5_7eebs8_k$() { + return this.userType; + } + component6_7eebs7_k$() { + return this.userSort; + } + component7_7eebs6_k$() { + return this.pagination; + } + component8_7eebs5_k$() { + return this.playerArgs; + } + copy_4sep8k_k$(type, keyword, categorySort, categoryId, userType, userSort, pagination, playerArgs) { + return new KSearchByTypeRequest(type, keyword, categorySort, categoryId, userType, userSort, pagination, playerArgs); + } + copy(type, keyword, categorySort, categoryId, userType, userSort, pagination, playerArgs, $super) { + type = type === VOID ? this.type : type; + keyword = keyword === VOID ? this.keyword : keyword; + categorySort = categorySort === VOID ? this.categorySort : categorySort; + categoryId = categoryId === VOID ? this.categoryId : categoryId; + userType = userType === VOID ? this.userType : userType; + userSort = userSort === VOID ? this.userSort : userSort; + pagination = pagination === VOID ? this.pagination : pagination; + playerArgs = playerArgs === VOID ? this.playerArgs : playerArgs; + return this.copy_4sep8k_k$(type, keyword, categorySort, categoryId, userType, userSort, pagination, playerArgs); + } + toString() { + return 'KSearchByTypeRequest(type=' + this.type + ', keyword=' + this.keyword + ', categorySort=' + this.categorySort + ', categoryId=' + this.categoryId.toString() + ', userType=' + this.userType + ', userSort=' + this.userSort + ', pagination=' + this.pagination + ', playerArgs=' + this.playerArgs + ')'; + } + hashCode() { + var result = this.type; + result = imul(result, 31) + getStringHashCode(this.keyword) | 0; + result = imul(result, 31) + this.categorySort | 0; + result = imul(result, 31) + this.categoryId.hashCode() | 0; + result = imul(result, 31) + this.userType | 0; + result = imul(result, 31) + this.userSort | 0; + result = imul(result, 31) + (this.pagination == null ? 0 : this.pagination.hashCode()) | 0; + result = imul(result, 31) + (this.playerArgs == null ? 0 : this.playerArgs.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSearchByTypeRequest)) + return false; + var tmp0_other_with_cast = other instanceof KSearchByTypeRequest ? other : THROW_CCE(); + if (!(this.type === tmp0_other_with_cast.type)) + return false; + if (!(this.keyword === tmp0_other_with_cast.keyword)) + return false; + if (!(this.categorySort === tmp0_other_with_cast.categorySort)) + return false; + if (!this.categoryId.equals(tmp0_other_with_cast.categoryId)) + return false; + if (!(this.userType === tmp0_other_with_cast.userType)) + return false; + if (!(this.userSort === tmp0_other_with_cast.userSort)) + return false; + if (!equals(this.pagination, tmp0_other_with_cast.pagination)) + return false; + if (!equals(this.playerArgs, tmp0_other_with_cast.playerArgs)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KSearchByTypeRequest_ay3gjl_k$(seen1, type, keyword, categorySort, categoryId, userType, userSort, pagination, playerArgs, serializationConstructorMarker) { + Companion_instance_491; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_478().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.type = 0; + else + $this.type = type; + if (0 === (seen1 & 2)) + $this.keyword = ''; + else + $this.keyword = keyword; + if (0 === (seen1 & 4)) + $this.categorySort = 0; + else + $this.categorySort = categorySort; + if (0 === (seen1 & 8)) + $this.categoryId = new Long(0, 0); + else + $this.categoryId = categoryId; + if (0 === (seen1 & 16)) + $this.userType = 0; + else + $this.userType = userType; + if (0 === (seen1 & 32)) + $this.userSort = 0; + else + $this.userSort = userSort; + if (0 === (seen1 & 64)) + $this.pagination = null; + else + $this.pagination = pagination; + if (0 === (seen1 & 128)) + $this.playerArgs = null; + else + $this.playerArgs = playerArgs; + return $this; + } + } + class Companion_492 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.PageOffset'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_479(); + } + } + class $serializer_479 { + constructor() { + $serializer_instance_479 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KPageOffset', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('page', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('qvId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KPageOffset.new_com_bapis_bilibili_polymer_app_search_v1_KPageOffset_r4a8t4_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_xd6ibv_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.page.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.page); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.qvId === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.qvId); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_xd6ibv_k$(encoder, value instanceof KPageOffset ? value : THROW_CCE()); + } + } + class KPageOffset { + constructor(page, qvId) { + Companion_instance_492; + page = page === VOID ? new Long(0, 0) : page; + qvId = qvId === VOID ? '' : qvId; + this.page = page; + this.qvId = qvId; + } + get_page_wos8go_k$() { + return this.page; + } + get_qvId_wotaax_k$() { + return this.qvId; + } + component1_7eebsc_k$() { + return this.page; + } + component2_7eebsb_k$() { + return this.qvId; + } + copy_ezpntz_k$(page, qvId) { + return new KPageOffset(page, qvId); + } + copy(page, qvId, $super) { + page = page === VOID ? this.page : page; + qvId = qvId === VOID ? this.qvId : qvId; + return this.copy_ezpntz_k$(page, qvId); + } + toString() { + return 'KPageOffset(page=' + this.page.toString() + ', qvId=' + this.qvId + ')'; + } + hashCode() { + var result = this.page.hashCode(); + result = imul(result, 31) + getStringHashCode(this.qvId) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KPageOffset)) + return false; + var tmp0_other_with_cast = other instanceof KPageOffset ? other : THROW_CCE(); + if (!this.page.equals(tmp0_other_with_cast.page)) + return false; + if (!(this.qvId === tmp0_other_with_cast.qvId)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KPageOffset_r4a8t4_k$(seen1, page, qvId, serializationConstructorMarker) { + Companion_instance_492; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_479().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.page = new Long(0, 0); + else + $this.page = page; + if (0 === (seen1 & 2)) + $this.qvId = ''; + else + $this.qvId = qvId; + return $this; + } + } + class Companion_493 { + constructor() { + Companion_instance_493 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer($serializer_getInstance_481())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.polymer.app.search.v1.SearchComicResponse'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_480(); + } + } + class $serializer_480 { + constructor() { + $serializer_instance_480 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KSearchComicResponse', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('items', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_493().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp6_cached = Companion_getInstance_493().$childSerializers_1; + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSearchComicResponse.new_com_bapis_bilibili_polymer_app_search_v1_KSearchComicResponse_6ovodt_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_fqw22j_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_493().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.items, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.items); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_fqw22j_k$(encoder, value instanceof KSearchComicResponse ? value : THROW_CCE()); + } + } + class KSearchComicResponse { + constructor(items) { + Companion_getInstance_493(); + items = items === VOID ? emptyList() : items; + this.items = items; + } + get_items_it823b_k$() { + return this.items; + } + component1_7eebsc_k$() { + return this.items; + } + copy_s8rg38_k$(items) { + return new KSearchComicResponse(items); + } + copy(items, $super) { + items = items === VOID ? this.items : items; + return this.copy_s8rg38_k$(items); + } + toString() { + return 'KSearchComicResponse(items=' + this.items + ')'; + } + hashCode() { + return hashCode(this.items); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSearchComicResponse)) + return false; + var tmp0_other_with_cast = other instanceof KSearchComicResponse ? other : THROW_CCE(); + if (!equals(this.items, tmp0_other_with_cast.items)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KSearchComicResponse_6ovodt_k$(seen1, items, serializationConstructorMarker) { + Companion_getInstance_493(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_480().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.items = emptyList(); + else + $this.items = items; + return $this; + } + } + class Companion_494 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.SearchComicInfo'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_481(); + } + } + class $serializer_481 { + constructor() { + $serializer_instance_481 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KSearchComicInfo', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('uri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('param', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('comic', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_502())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_502(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_502(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSearchComicInfo.new_com_bapis_bilibili_polymer_app_search_v1_KSearchComicInfo_kbnam4_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_zejtym_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.uri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.uri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.param === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.param); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.comic == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_502(), value.comic); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_zejtym_k$(encoder, value instanceof KSearchComicInfo ? value : THROW_CCE()); + } + } + class KSearchComicInfo { + constructor(uri, param, comic) { + Companion_instance_494; + uri = uri === VOID ? '' : uri; + param = param === VOID ? '' : param; + comic = comic === VOID ? null : comic; + this.uri = uri; + this.param = param; + this.comic = comic; + } + get_uri_18iuil_k$() { + return this.uri; + } + get_param_iwqquc_k$() { + return this.param; + } + get_comic_ipu9f6_k$() { + return this.comic; + } + component1_7eebsc_k$() { + return this.uri; + } + component2_7eebsb_k$() { + return this.param; + } + component3_7eebsa_k$() { + return this.comic; + } + copy_kpqxg3_k$(uri, param, comic) { + return new KSearchComicInfo(uri, param, comic); + } + copy(uri, param, comic, $super) { + uri = uri === VOID ? this.uri : uri; + param = param === VOID ? this.param : param; + comic = comic === VOID ? this.comic : comic; + return this.copy_kpqxg3_k$(uri, param, comic); + } + toString() { + return 'KSearchComicInfo(uri=' + this.uri + ', param=' + this.param + ', comic=' + this.comic + ')'; + } + hashCode() { + var result = getStringHashCode(this.uri); + result = imul(result, 31) + getStringHashCode(this.param) | 0; + result = imul(result, 31) + (this.comic == null ? 0 : this.comic.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSearchComicInfo)) + return false; + var tmp0_other_with_cast = other instanceof KSearchComicInfo ? other : THROW_CCE(); + if (!(this.uri === tmp0_other_with_cast.uri)) + return false; + if (!(this.param === tmp0_other_with_cast.param)) + return false; + if (!equals(this.comic, tmp0_other_with_cast.comic)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KSearchComicInfo_kbnam4_k$(seen1, uri, param, comic, serializationConstructorMarker) { + Companion_instance_494; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_481().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.uri = ''; + else + $this.uri = uri; + if (0 === (seen1 & 2)) + $this.param = ''; + else + $this.param = param; + if (0 === (seen1 & 4)) + $this.comic = null; + else + $this.comic = comic; + return $this; + } + } + class Companion_495 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.SearchAllResponse.AnnotationEntry'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_482(); + } + } + class $serializer_482 { + constructor() { + $serializer_instance_482 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KSearchAllResponse.KAnnotationEntry', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('key', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('value', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KAnnotationEntry.new_com_bapis_bilibili_polymer_app_search_v1_KSearchAllResponse_KAnnotationEntry_af5wko_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_twqved_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.key === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.key); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.value === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.value); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_twqved_k$(encoder, value instanceof KAnnotationEntry ? value : THROW_CCE()); + } + } + class KAnnotationEntry { + constructor(key, value) { + Companion_instance_495; + key = key === VOID ? '' : key; + value = value === VOID ? '' : value; + this.key = key; + this.value = value; + } + get_key_18j28a_k$() { + return this.key; + } + get_value_j01efc_k$() { + return this.value; + } + component1_7eebsc_k$() { + return this.key; + } + component2_7eebsb_k$() { + return this.value; + } + copy_plwnsl_k$(key, value) { + return new KAnnotationEntry(key, value); + } + copy(key, value, $super) { + key = key === VOID ? this.key : key; + value = value === VOID ? this.value : value; + return this.copy_plwnsl_k$(key, value); + } + toString() { + return 'KAnnotationEntry(key=' + this.key + ', value=' + this.value + ')'; + } + hashCode() { + var result = getStringHashCode(this.key); + result = imul(result, 31) + getStringHashCode(this.value) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KAnnotationEntry)) + return false; + var tmp0_other_with_cast = other instanceof KAnnotationEntry ? other : THROW_CCE(); + if (!(this.key === tmp0_other_with_cast.key)) + return false; + if (!(this.value === tmp0_other_with_cast.value)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KSearchAllResponse_KAnnotationEntry_af5wko_k$(seen1, key, value, serializationConstructorMarker) { + Companion_instance_495; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_482().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.key = ''; + else + $this.key = key; + if (0 === (seen1 & 2)) + $this.value = ''; + else + $this.value = value; + return $this; + } + } + class Companion_496 { + constructor() { + Companion_instance_496 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, new ArrayListSerializer($serializer_getInstance_543()), new ArrayListSerializer($serializer_getInstance_486()), null, null, new ArrayListSerializer(StringSerializer_getInstance()), null, null, null, null, null, new LinkedHashMapSerializer(StringSerializer_getInstance(), StringSerializer_getInstance()), null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.polymer.app.search.v1.SearchAllResponse'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_483(); + } + } + class $serializer_483 { + constructor() { + $serializer_instance_483 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KSearchAllResponse', this, 15); + tmp0_serialDesc.addElement_5pzumi_k$('keyword', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('trackid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('nav', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('item', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('easterEgg', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('expStr', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('extraWordList', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('orgExtraWord', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('selectBarType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('newSearchExpNum', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('pagination', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('appDisplayOption', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + tmp0_serialDesc.addElement_5pzumi_k$('annotation', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(13)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('page', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(14)); + tmp0_serialDesc.addElement_5pzumi_k$('realExposureRatio', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(15)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_496().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), tmp0_cached[2], tmp0_cached[3], get_nullable($serializer_getInstance_542()), StringSerializer_getInstance(), tmp0_cached[6], StringSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable($serializer_getInstance_196()), get_nullable($serializer_getInstance_609()), tmp0_cached[12], LongSerializer_getInstance(), DoubleSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_local8 = new Long(0, 0); + var tmp13_local9 = new Long(0, 0); + var tmp14_local10 = null; + var tmp15_local11 = null; + var tmp16_local12 = null; + var tmp17_local13 = new Long(0, 0); + var tmp18_local14 = 0.0; + var tmp19_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp20_cached = Companion_getInstance_496().$childSerializers_1; + if (tmp19_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp19_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp20_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp19_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 3, tmp20_cached[3], tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp19_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_542(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp19_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 6, tmp20_cached[6], tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp19_input.decodeLongElement_994anb_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp19_input.decodeLongElement_994anb_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp19_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 10, $serializer_getInstance_196(), tmp14_local10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp19_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 11, $serializer_getInstance_609(), tmp15_local11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + tmp16_local12 = tmp19_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 12, tmp20_cached[12], tmp16_local12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + tmp17_local13 = tmp19_input.decodeLongElement_994anb_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + tmp18_local14 = tmp19_input.decodeDoubleElement_isei84_k$(tmp0_desc, 14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + } else + while (tmp1_flag) { + tmp2_index = tmp19_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp19_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp20_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp19_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 3, tmp20_cached[3], tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp19_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_542(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp19_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 6, tmp20_cached[6], tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp19_input.decodeLongElement_994anb_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp19_input.decodeLongElement_994anb_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp19_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 10, $serializer_getInstance_196(), tmp14_local10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp19_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 11, $serializer_getInstance_609(), tmp15_local11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + case 12: + tmp16_local12 = tmp19_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 12, tmp20_cached[12], tmp16_local12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + break; + case 13: + tmp17_local13 = tmp19_input.decodeLongElement_994anb_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + break; + case 14: + tmp18_local14 = tmp19_input.decodeDoubleElement_isei84_k$(tmp0_desc, 14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp19_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSearchAllResponse.new_com_bapis_bilibili_polymer_app_search_v1_KSearchAllResponse_pqftb9_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, tmp18_local14, null); + } + serialize_9mfzp1_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_496().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.keyword === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.keyword); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.trackid === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.trackid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !equals(value.nav, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 2, tmp2_cached[2], value.nav); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !equals(value.item, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 3, tmp2_cached[3], value.item); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.easterEgg == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, $serializer_getInstance_542(), value.easterEgg); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.expStr === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.expStr); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !equals(value.extraWordList, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 6, tmp2_cached[6], value.extraWordList); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.orgExtraWord === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.orgExtraWord); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !value.selectBarType.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 8, value.selectBarType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !value.newSearchExpNum.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 9, value.newSearchExpNum); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.pagination == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 10, $serializer_getInstance_196(), value.pagination); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.appDisplayOption == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 11, $serializer_getInstance_609(), value.appDisplayOption); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !equals(value.annotation, emptyMap())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 12, tmp2_cached[12], value.annotation); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 13) ? true : !value.page.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 13, value.page); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 14) ? true : !equals(value.realExposureRatio, 0.0)) { + tmp1_output.encodeDoubleElement_a6rqhe_k$(tmp0_desc, 14, value.realExposureRatio); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_9mfzp1_k$(encoder, value instanceof KSearchAllResponse ? value : THROW_CCE()); + } + } + class KSearchAllResponse { + constructor(keyword, trackid, nav, item, easterEgg, expStr, extraWordList, orgExtraWord, selectBarType, newSearchExpNum, pagination, appDisplayOption, annotation, page, realExposureRatio) { + Companion_getInstance_496(); + keyword = keyword === VOID ? '' : keyword; + trackid = trackid === VOID ? '' : trackid; + nav = nav === VOID ? emptyList() : nav; + item = item === VOID ? emptyList() : item; + easterEgg = easterEgg === VOID ? null : easterEgg; + expStr = expStr === VOID ? '' : expStr; + extraWordList = extraWordList === VOID ? emptyList() : extraWordList; + orgExtraWord = orgExtraWord === VOID ? '' : orgExtraWord; + selectBarType = selectBarType === VOID ? new Long(0, 0) : selectBarType; + newSearchExpNum = newSearchExpNum === VOID ? new Long(0, 0) : newSearchExpNum; + pagination = pagination === VOID ? null : pagination; + appDisplayOption = appDisplayOption === VOID ? null : appDisplayOption; + annotation = annotation === VOID ? emptyMap() : annotation; + page = page === VOID ? new Long(0, 0) : page; + realExposureRatio = realExposureRatio === VOID ? 0.0 : realExposureRatio; + this.keyword = keyword; + this.trackid = trackid; + this.nav = nav; + this.item = item; + this.easterEgg = easterEgg; + this.expStr = expStr; + this.extraWordList = extraWordList; + this.orgExtraWord = orgExtraWord; + this.selectBarType = selectBarType; + this.newSearchExpNum = newSearchExpNum; + this.pagination = pagination; + this.appDisplayOption = appDisplayOption; + this.annotation = annotation; + this.page = page; + this.realExposureRatio = realExposureRatio; + } + get_keyword_c7bncw_k$() { + return this.keyword; + } + get_trackid_gdy1c3_k$() { + return this.trackid; + } + get_nav_18j03q_k$() { + return this.nav; + } + get_item_woo5lo_k$() { + return this.item; + } + get_easterEgg_wz8bji_k$() { + return this.easterEgg; + } + get_expStr_d38jj1_k$() { + return this.expStr; + } + get_extraWordList_a3dqdr_k$() { + return this.extraWordList; + } + get_orgExtraWord_scatbz_k$() { + return this.orgExtraWord; + } + get_selectBarType_58427c_k$() { + return this.selectBarType; + } + get_newSearchExpNum_8xij7s_k$() { + return this.newSearchExpNum; + } + get_pagination_1aczdv_k$() { + return this.pagination; + } + get_appDisplayOption_mw2ept_k$() { + return this.appDisplayOption; + } + get_annotation_p5103c_k$() { + return this.annotation; + } + get_page_wos8go_k$() { + return this.page; + } + get_realExposureRatio_8z0d5p_k$() { + return this.realExposureRatio; + } + component1_7eebsc_k$() { + return this.keyword; + } + component2_7eebsb_k$() { + return this.trackid; + } + component3_7eebsa_k$() { + return this.nav; + } + component4_7eebs9_k$() { + return this.item; + } + component5_7eebs8_k$() { + return this.easterEgg; + } + component6_7eebs7_k$() { + return this.expStr; + } + component7_7eebs6_k$() { + return this.extraWordList; + } + component8_7eebs5_k$() { + return this.orgExtraWord; + } + component9_7eebs4_k$() { + return this.selectBarType; + } + component10_gazzfo_k$() { + return this.newSearchExpNum; + } + component11_gazzfn_k$() { + return this.pagination; + } + component12_gazzfm_k$() { + return this.appDisplayOption; + } + component13_gazzfl_k$() { + return this.annotation; + } + component14_gazzfk_k$() { + return this.page; + } + component15_gazzfj_k$() { + return this.realExposureRatio; + } + copy_1qds9l_k$(keyword, trackid, nav, item, easterEgg, expStr, extraWordList, orgExtraWord, selectBarType, newSearchExpNum, pagination, appDisplayOption, annotation, page, realExposureRatio) { + return new KSearchAllResponse(keyword, trackid, nav, item, easterEgg, expStr, extraWordList, orgExtraWord, selectBarType, newSearchExpNum, pagination, appDisplayOption, annotation, page, realExposureRatio); + } + copy(keyword, trackid, nav, item, easterEgg, expStr, extraWordList, orgExtraWord, selectBarType, newSearchExpNum, pagination, appDisplayOption, annotation, page, realExposureRatio, $super) { + keyword = keyword === VOID ? this.keyword : keyword; + trackid = trackid === VOID ? this.trackid : trackid; + nav = nav === VOID ? this.nav : nav; + item = item === VOID ? this.item : item; + easterEgg = easterEgg === VOID ? this.easterEgg : easterEgg; + expStr = expStr === VOID ? this.expStr : expStr; + extraWordList = extraWordList === VOID ? this.extraWordList : extraWordList; + orgExtraWord = orgExtraWord === VOID ? this.orgExtraWord : orgExtraWord; + selectBarType = selectBarType === VOID ? this.selectBarType : selectBarType; + newSearchExpNum = newSearchExpNum === VOID ? this.newSearchExpNum : newSearchExpNum; + pagination = pagination === VOID ? this.pagination : pagination; + appDisplayOption = appDisplayOption === VOID ? this.appDisplayOption : appDisplayOption; + annotation = annotation === VOID ? this.annotation : annotation; + page = page === VOID ? this.page : page; + realExposureRatio = realExposureRatio === VOID ? this.realExposureRatio : realExposureRatio; + return this.copy_1qds9l_k$(keyword, trackid, nav, item, easterEgg, expStr, extraWordList, orgExtraWord, selectBarType, newSearchExpNum, pagination, appDisplayOption, annotation, page, realExposureRatio); + } + toString() { + return 'KSearchAllResponse(keyword=' + this.keyword + ', trackid=' + this.trackid + ', nav=' + this.nav + ', item=' + this.item + ', easterEgg=' + this.easterEgg + ', expStr=' + this.expStr + ', extraWordList=' + this.extraWordList + ', orgExtraWord=' + this.orgExtraWord + ', selectBarType=' + this.selectBarType.toString() + ', newSearchExpNum=' + this.newSearchExpNum.toString() + ', pagination=' + this.pagination + ', appDisplayOption=' + this.appDisplayOption + ', annotation=' + this.annotation + ', page=' + this.page.toString() + ', realExposureRatio=' + this.realExposureRatio + ')'; + } + hashCode() { + var result = getStringHashCode(this.keyword); + result = imul(result, 31) + getStringHashCode(this.trackid) | 0; + result = imul(result, 31) + hashCode(this.nav) | 0; + result = imul(result, 31) + hashCode(this.item) | 0; + result = imul(result, 31) + (this.easterEgg == null ? 0 : this.easterEgg.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.expStr) | 0; + result = imul(result, 31) + hashCode(this.extraWordList) | 0; + result = imul(result, 31) + getStringHashCode(this.orgExtraWord) | 0; + result = imul(result, 31) + this.selectBarType.hashCode() | 0; + result = imul(result, 31) + this.newSearchExpNum.hashCode() | 0; + result = imul(result, 31) + (this.pagination == null ? 0 : this.pagination.hashCode()) | 0; + result = imul(result, 31) + (this.appDisplayOption == null ? 0 : this.appDisplayOption.hashCode()) | 0; + result = imul(result, 31) + hashCode(this.annotation) | 0; + result = imul(result, 31) + this.page.hashCode() | 0; + result = imul(result, 31) + getNumberHashCode(this.realExposureRatio) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSearchAllResponse)) + return false; + var tmp0_other_with_cast = other instanceof KSearchAllResponse ? other : THROW_CCE(); + if (!(this.keyword === tmp0_other_with_cast.keyword)) + return false; + if (!(this.trackid === tmp0_other_with_cast.trackid)) + return false; + if (!equals(this.nav, tmp0_other_with_cast.nav)) + return false; + if (!equals(this.item, tmp0_other_with_cast.item)) + return false; + if (!equals(this.easterEgg, tmp0_other_with_cast.easterEgg)) + return false; + if (!(this.expStr === tmp0_other_with_cast.expStr)) + return false; + if (!equals(this.extraWordList, tmp0_other_with_cast.extraWordList)) + return false; + if (!(this.orgExtraWord === tmp0_other_with_cast.orgExtraWord)) + return false; + if (!this.selectBarType.equals(tmp0_other_with_cast.selectBarType)) + return false; + if (!this.newSearchExpNum.equals(tmp0_other_with_cast.newSearchExpNum)) + return false; + if (!equals(this.pagination, tmp0_other_with_cast.pagination)) + return false; + if (!equals(this.appDisplayOption, tmp0_other_with_cast.appDisplayOption)) + return false; + if (!equals(this.annotation, tmp0_other_with_cast.annotation)) + return false; + if (!this.page.equals(tmp0_other_with_cast.page)) + return false; + if (!equals(this.realExposureRatio, tmp0_other_with_cast.realExposureRatio)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KSearchAllResponse_pqftb9_k$(seen1, keyword, trackid, nav, item, easterEgg, expStr, extraWordList, orgExtraWord, selectBarType, newSearchExpNum, pagination, appDisplayOption, annotation, page, realExposureRatio, serializationConstructorMarker) { + Companion_getInstance_496(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_483().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.keyword = ''; + else + $this.keyword = keyword; + if (0 === (seen1 & 2)) + $this.trackid = ''; + else + $this.trackid = trackid; + if (0 === (seen1 & 4)) + $this.nav = emptyList(); + else + $this.nav = nav; + if (0 === (seen1 & 8)) + $this.item = emptyList(); + else + $this.item = item; + if (0 === (seen1 & 16)) + $this.easterEgg = null; + else + $this.easterEgg = easterEgg; + if (0 === (seen1 & 32)) + $this.expStr = ''; + else + $this.expStr = expStr; + if (0 === (seen1 & 64)) + $this.extraWordList = emptyList(); + else + $this.extraWordList = extraWordList; + if (0 === (seen1 & 128)) + $this.orgExtraWord = ''; + else + $this.orgExtraWord = orgExtraWord; + if (0 === (seen1 & 256)) + $this.selectBarType = new Long(0, 0); + else + $this.selectBarType = selectBarType; + if (0 === (seen1 & 512)) + $this.newSearchExpNum = new Long(0, 0); + else + $this.newSearchExpNum = newSearchExpNum; + if (0 === (seen1 & 1024)) + $this.pagination = null; + else + $this.pagination = pagination; + if (0 === (seen1 & 2048)) + $this.appDisplayOption = null; + else + $this.appDisplayOption = appDisplayOption; + if (0 === (seen1 & 4096)) + $this.annotation = emptyMap(); + else + $this.annotation = annotation; + if (0 === (seen1 & 8192)) + $this.page = new Long(0, 0); + else + $this.page = page; + if (0 === (seen1 & 16384)) + $this.realExposureRatio = 0.0; + else + $this.realExposureRatio = realExposureRatio; + return $this; + } + } + class Companion_497 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.SearchByTypeResponse.AnnotationEntry'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_484(); + } + } + class $serializer_484 { + constructor() { + $serializer_instance_484 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KSearchByTypeResponse.KAnnotationEntry', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('key', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('value', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KAnnotationEntry_0.new_com_bapis_bilibili_polymer_app_search_v1_KSearchByTypeResponse_KAnnotationEntry_uzemtm_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_lapyl9_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.key === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.key); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.value === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.value); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_lapyl9_k$(encoder, value instanceof KAnnotationEntry_0 ? value : THROW_CCE()); + } + } + class KAnnotationEntry_0 { + constructor(key, value) { + Companion_instance_497; + key = key === VOID ? '' : key; + value = value === VOID ? '' : value; + this.key = key; + this.value = value; + } + get_key_18j28a_k$() { + return this.key; + } + get_value_j01efc_k$() { + return this.value; + } + component1_7eebsc_k$() { + return this.key; + } + component2_7eebsb_k$() { + return this.value; + } + copy_plwnsl_k$(key, value) { + return new KAnnotationEntry_0(key, value); + } + copy(key, value, $super) { + key = key === VOID ? this.key : key; + value = value === VOID ? this.value : value; + return this.copy_plwnsl_k$(key, value); + } + toString() { + return 'KAnnotationEntry(key=' + this.key + ', value=' + this.value + ')'; + } + hashCode() { + var result = getStringHashCode(this.key); + result = imul(result, 31) + getStringHashCode(this.value) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KAnnotationEntry_0)) + return false; + var tmp0_other_with_cast = other instanceof KAnnotationEntry_0 ? other : THROW_CCE(); + if (!(this.key === tmp0_other_with_cast.key)) + return false; + if (!(this.value === tmp0_other_with_cast.value)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KSearchByTypeResponse_KAnnotationEntry_uzemtm_k$(seen1, key, value, serializationConstructorMarker) { + Companion_instance_497; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_484().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.key = ''; + else + $this.key = key; + if (0 === (seen1 & 2)) + $this.value = ''; + else + $this.value = value; + return $this; + } + } + class Companion_498 { + constructor() { + Companion_instance_498 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, null, null, new ArrayListSerializer($serializer_getInstance_486()), null, new LinkedHashMapSerializer(StringSerializer_getInstance(), StringSerializer_getInstance()), null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.polymer.app.search.v1.SearchByTypeResponse'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_485(); + } + } + class $serializer_485 { + constructor() { + $serializer_instance_485 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KSearchByTypeResponse', this, 9); + tmp0_serialDesc.addElement_5pzumi_k$('trackid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('pages', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('expStr', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('keyword', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('resultIsRecommend', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('items', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('pagination', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('annotation', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('realExposureRatio', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_498().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), tmp0_cached[5], get_nullable($serializer_getInstance_196()), tmp0_cached[7], DoubleSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = 0; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = 0; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_local8 = 0.0; + var tmp13_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp14_cached = Companion_getInstance_498().$childSerializers_1; + if (tmp13_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp13_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp13_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp13_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 5, tmp14_cached[5], tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_196(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp13_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 7, tmp14_cached[7], tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp13_input.decodeDoubleElement_isei84_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + } else + while (tmp1_flag) { + tmp2_index = tmp13_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp13_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp13_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp13_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 5, tmp14_cached[5], tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_196(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp13_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 7, tmp14_cached[7], tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp13_input.decodeDoubleElement_isei84_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp13_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSearchByTypeResponse.new_com_bapis_bilibili_polymer_app_search_v1_KSearchByTypeResponse_tkx21d_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, null); + } + serialize_t3edgj_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_498().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.trackid === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.trackid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.pages === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.pages); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.expStr === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.expStr); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.keyword === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.keyword); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.resultIsRecommend === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 4, value.resultIsRecommend); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !equals(value.items, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 5, tmp2_cached[5], value.items); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.pagination == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 6, $serializer_getInstance_196(), value.pagination); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !equals(value.annotation, emptyMap())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 7, tmp2_cached[7], value.annotation); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !equals(value.realExposureRatio, 0.0)) { + tmp1_output.encodeDoubleElement_a6rqhe_k$(tmp0_desc, 8, value.realExposureRatio); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_t3edgj_k$(encoder, value instanceof KSearchByTypeResponse ? value : THROW_CCE()); + } + } + class KSearchByTypeResponse { + constructor(trackid, pages, expStr, keyword, resultIsRecommend, items, pagination, annotation, realExposureRatio) { + Companion_getInstance_498(); + trackid = trackid === VOID ? '' : trackid; + pages = pages === VOID ? 0 : pages; + expStr = expStr === VOID ? '' : expStr; + keyword = keyword === VOID ? '' : keyword; + resultIsRecommend = resultIsRecommend === VOID ? 0 : resultIsRecommend; + items = items === VOID ? emptyList() : items; + pagination = pagination === VOID ? null : pagination; + annotation = annotation === VOID ? emptyMap() : annotation; + realExposureRatio = realExposureRatio === VOID ? 0.0 : realExposureRatio; + this.trackid = trackid; + this.pages = pages; + this.expStr = expStr; + this.keyword = keyword; + this.resultIsRecommend = resultIsRecommend; + this.items = items; + this.pagination = pagination; + this.annotation = annotation; + this.realExposureRatio = realExposureRatio; + } + get_trackid_gdy1c3_k$() { + return this.trackid; + } + get_pages_iwqisb_k$() { + return this.pages; + } + get_expStr_d38jj1_k$() { + return this.expStr; + } + get_keyword_c7bncw_k$() { + return this.keyword; + } + get_resultIsRecommend_7a3tf0_k$() { + return this.resultIsRecommend; + } + get_items_it823b_k$() { + return this.items; + } + get_pagination_1aczdv_k$() { + return this.pagination; + } + get_annotation_p5103c_k$() { + return this.annotation; + } + get_realExposureRatio_8z0d5p_k$() { + return this.realExposureRatio; + } + component1_7eebsc_k$() { + return this.trackid; + } + component2_7eebsb_k$() { + return this.pages; + } + component3_7eebsa_k$() { + return this.expStr; + } + component4_7eebs9_k$() { + return this.keyword; + } + component5_7eebs8_k$() { + return this.resultIsRecommend; + } + component6_7eebs7_k$() { + return this.items; + } + component7_7eebs6_k$() { + return this.pagination; + } + component8_7eebs5_k$() { + return this.annotation; + } + component9_7eebs4_k$() { + return this.realExposureRatio; + } + copy_svdo1c_k$(trackid, pages, expStr, keyword, resultIsRecommend, items, pagination, annotation, realExposureRatio) { + return new KSearchByTypeResponse(trackid, pages, expStr, keyword, resultIsRecommend, items, pagination, annotation, realExposureRatio); + } + copy(trackid, pages, expStr, keyword, resultIsRecommend, items, pagination, annotation, realExposureRatio, $super) { + trackid = trackid === VOID ? this.trackid : trackid; + pages = pages === VOID ? this.pages : pages; + expStr = expStr === VOID ? this.expStr : expStr; + keyword = keyword === VOID ? this.keyword : keyword; + resultIsRecommend = resultIsRecommend === VOID ? this.resultIsRecommend : resultIsRecommend; + items = items === VOID ? this.items : items; + pagination = pagination === VOID ? this.pagination : pagination; + annotation = annotation === VOID ? this.annotation : annotation; + realExposureRatio = realExposureRatio === VOID ? this.realExposureRatio : realExposureRatio; + return this.copy_svdo1c_k$(trackid, pages, expStr, keyword, resultIsRecommend, items, pagination, annotation, realExposureRatio); + } + toString() { + return 'KSearchByTypeResponse(trackid=' + this.trackid + ', pages=' + this.pages + ', expStr=' + this.expStr + ', keyword=' + this.keyword + ', resultIsRecommend=' + this.resultIsRecommend + ', items=' + this.items + ', pagination=' + this.pagination + ', annotation=' + this.annotation + ', realExposureRatio=' + this.realExposureRatio + ')'; + } + hashCode() { + var result = getStringHashCode(this.trackid); + result = imul(result, 31) + this.pages | 0; + result = imul(result, 31) + getStringHashCode(this.expStr) | 0; + result = imul(result, 31) + getStringHashCode(this.keyword) | 0; + result = imul(result, 31) + this.resultIsRecommend | 0; + result = imul(result, 31) + hashCode(this.items) | 0; + result = imul(result, 31) + (this.pagination == null ? 0 : this.pagination.hashCode()) | 0; + result = imul(result, 31) + hashCode(this.annotation) | 0; + result = imul(result, 31) + getNumberHashCode(this.realExposureRatio) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSearchByTypeResponse)) + return false; + var tmp0_other_with_cast = other instanceof KSearchByTypeResponse ? other : THROW_CCE(); + if (!(this.trackid === tmp0_other_with_cast.trackid)) + return false; + if (!(this.pages === tmp0_other_with_cast.pages)) + return false; + if (!(this.expStr === tmp0_other_with_cast.expStr)) + return false; + if (!(this.keyword === tmp0_other_with_cast.keyword)) + return false; + if (!(this.resultIsRecommend === tmp0_other_with_cast.resultIsRecommend)) + return false; + if (!equals(this.items, tmp0_other_with_cast.items)) + return false; + if (!equals(this.pagination, tmp0_other_with_cast.pagination)) + return false; + if (!equals(this.annotation, tmp0_other_with_cast.annotation)) + return false; + if (!equals(this.realExposureRatio, tmp0_other_with_cast.realExposureRatio)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KSearchByTypeResponse_tkx21d_k$(seen1, trackid, pages, expStr, keyword, resultIsRecommend, items, pagination, annotation, realExposureRatio, serializationConstructorMarker) { + Companion_getInstance_498(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_485().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.trackid = ''; + else + $this.trackid = trackid; + if (0 === (seen1 & 2)) + $this.pages = 0; + else + $this.pages = pages; + if (0 === (seen1 & 4)) + $this.expStr = ''; + else + $this.expStr = expStr; + if (0 === (seen1 & 8)) + $this.keyword = ''; + else + $this.keyword = keyword; + if (0 === (seen1 & 16)) + $this.resultIsRecommend = 0; + else + $this.resultIsRecommend = resultIsRecommend; + if (0 === (seen1 & 32)) + $this.items = emptyList(); + else + $this.items = items; + if (0 === (seen1 & 64)) + $this.pagination = null; + else + $this.pagination = pagination; + if (0 === (seen1 & 128)) + $this.annotation = emptyMap(); + else + $this.annotation = annotation; + if (0 === (seen1 & 256)) + $this.realExposureRatio = 0.0; + else + $this.realExposureRatio = realExposureRatio; + return $this; + } + } + class KCardItem { + constructor(value) { + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + } + class KSpecial_0 extends KCardItem { + constructor() { + KSpecial_instance_0 = null; + super(0); + KSpecial_instance_0 = this; + } + } + class KArticle extends KCardItem { + constructor() { + KArticle_instance = null; + super(1); + KArticle_instance = this; + } + } + class KBanner_3 extends KCardItem { + constructor() { + KBanner_instance_1 = null; + super(2); + KBanner_instance_1 = this; + } + } + class KLive_1 extends KCardItem { + constructor() { + KLive_instance_0 = null; + super(3); + KLive_instance_0 = this; + } + } + class KGame_1 extends KCardItem { + constructor() { + KGame_instance_1 = null; + super(4); + KGame_instance_1 = this; + } + } + class KPurchase extends KCardItem { + constructor() { + KPurchase_instance = null; + super(5); + KPurchase_instance = this; + } + } + class KRecommendWord extends KCardItem { + constructor() { + KRecommendWord_instance = null; + super(6); + KRecommendWord_instance = this; + } + } + class KDynamic extends KCardItem { + constructor() { + KDynamic_instance = null; + super(7); + KDynamic_instance = this; + } + } + class KSuggestKeyword extends KCardItem { + constructor() { + KSuggestKeyword_instance = null; + super(8); + KSuggestKeyword_instance = this; + } + } + class KSpecialGuide extends KCardItem { + constructor() { + KSpecialGuide_instance = null; + super(9); + KSpecialGuide_instance = this; + } + } + class KComic extends KCardItem { + constructor() { + KComic_instance = null; + super(10); + KComic_instance = this; + } + } + class KChannelNew extends KCardItem { + constructor() { + KChannelNew_instance = null; + super(11); + KChannelNew_instance = this; + } + } + class KOgvCard extends KCardItem { + constructor() { + KOgvCard_instance = null; + super(12); + KOgvCard_instance = this; + } + } + class KBangumiRelates extends KCardItem { + constructor() { + KBangumiRelates_instance = null; + super(13); + KBangumiRelates_instance = this; + } + } + class KFindMore extends KCardItem { + constructor() { + KFindMore_instance = null; + super(14); + KFindMore_instance = this; + } + } + class KEsport extends KCardItem { + constructor() { + KEsport_instance = null; + super(15); + KEsport_instance = this; + } + } + class KAuthorNew extends KCardItem { + constructor() { + KAuthorNew_instance = null; + super(16); + KAuthorNew_instance = this; + } + } + class KTips extends KCardItem { + constructor() { + KTips_instance = null; + super(17); + KTips_instance = this; + } + } + class KCm_0 extends KCardItem { + constructor() { + KCm_instance_0 = null; + super(18); + KCm_instance_0 = this; + } + } + class KPediaCard extends KCardItem { + constructor() { + KPediaCard_instance = null; + super(19); + KPediaCard_instance = this; + } + } + class KUgcInline extends KCardItem { + constructor() { + KUgcInline_instance = null; + super(20); + KUgcInline_instance = this; + } + } + class KLiveInline extends KCardItem { + constructor() { + KLiveInline_instance = null; + super(21); + KLiveInline_instance = this; + } + } + class KTopGame extends KCardItem { + constructor() { + KTopGame_instance = null; + super(22); + KTopGame_instance = this; + } + } + class KSports extends KCardItem { + constructor() { + KSports_instance = null; + super(23); + KSports_instance = this; + } + } + class KPediaCardInline extends KCardItem { + constructor() { + KPediaCardInline_instance = null; + super(24); + KPediaCardInline_instance = this; + } + } + class KRecommendTips extends KCardItem { + constructor() { + KRecommendTips_instance = null; + super(25); + KRecommendTips_instance = this; + } + } + class KCollectionCard extends KCardItem { + constructor() { + KCollectionCard_instance = null; + super(26); + KCollectionCard_instance = this; + } + } + class KOgvChannel extends KCardItem { + constructor() { + KOgvChannel_instance = null; + super(27); + KOgvChannel_instance = this; + } + } + class KOgvInline extends KCardItem { + constructor() { + KOgvInline_instance = null; + super(28); + KOgvInline_instance = this; + } + } + class KAuthor extends KCardItem { + constructor() { + KAuthor_instance = null; + super(29); + KAuthor_instance = this; + } + } + class KAv_0 extends KCardItem { + constructor() { + KAv_instance_0 = null; + super(30); + KAv_instance_0 = this; + } + } + class KBangumi_0 extends KCardItem { + constructor() { + KBangumi_instance_0 = null; + super(31); + KBangumi_instance_0 = this; + } + } + class KEsportsInline extends KCardItem { + constructor() { + KEsportsInline_instance = null; + super(32); + KEsportsInline_instance = this; + } + } + class KHotBanner extends KCardItem { + constructor() { + KHotBanner_instance = null; + super(33); + KHotBanner_instance = this; + } + } + class KSubject extends KCardItem { + constructor() { + KSubject_instance = null; + super(34); + KSubject_instance = this; + } + } + class KDynamicNew extends KCardItem { + constructor() { + KDynamicNew_instance = null; + super(35); + KDynamicNew_instance = this; + } + } + class KArticleNew extends KCardItem { + constructor() { + KArticleNew_instance = null; + super(36); + KArticleNew_instance = this; + } + } + class KPediaCardPic extends KCardItem { + constructor() { + KPediaCardPic_instance = null; + super(37); + KPediaCardPic_instance = this; + } + } + class KNpsCard extends KCardItem { + constructor() { + KNpsCard_instance = null; + super(38); + KNpsCard_instance = this; + } + } + class KChatGpt extends KCardItem { + constructor() { + KChatGpt_instance = null; + super(39); + KChatGpt_instance = this; + } + } + class KHotRecommend extends KCardItem { + constructor() { + KHotRecommend_instance = null; + super(40); + KHotRecommend_instance = this; + } + } + class KLiveMaster extends KCardItem { + constructor() { + KLiveMaster_instance = null; + super(41); + KLiveMaster_instance = this; + } + } + class KLiveRoomTitle extends KCardItem { + constructor() { + KLiveRoomTitle_instance = null; + super(42); + KLiveRoomTitle_instance = this; + } + } + class KLiveRoom extends KCardItem { + constructor() { + KLiveRoom_instance = null; + super(43); + KLiveRoom_instance = this; + } + } + class KCheese extends KCardItem { + constructor() { + KCheese_instance = null; + super(44); + KCheese_instance = this; + } + } + class KRelatedSearch extends KCardItem { + constructor() { + KRelatedSearch_instance = null; + super(45); + KRelatedSearch_instance = this; + } + } + class Companion_499 { + constructor() { + Companion_instance_499 = this; + var tmp = this; + tmp.cardItemValues$delegate_1 = lazy_0(KItem$Companion$cardItemValues$delegate$lambda); + this.targetPath = '/bilibili.polymer.app.search.v1.Item'; + } + get_cardItemValues_jn6w1e_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.cardItemValues$delegate_1; + var thisRef = this; + var property = cardItemValues$factory(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_486(); + } + get cardItemValues() { + return this.get_cardItemValues_jn6w1e_k$(); + } + } + class $serializer_486 { + constructor() { + $serializer_instance_486 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KItem', this, 52); + tmp0_serialDesc.addElement_5pzumi_k$('uri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('param', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('goto', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('linktype', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('position', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('trackid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('special', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('article', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('banner', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('live', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('game', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('purchase', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + tmp0_serialDesc.addElement_5pzumi_k$('recommendWord', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(13)); + tmp0_serialDesc.addElement_5pzumi_k$('dynamic', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(14)); + tmp0_serialDesc.addElement_5pzumi_k$('suggestKeyword', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(15)); + tmp0_serialDesc.addElement_5pzumi_k$('specialGuide', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(16)); + tmp0_serialDesc.addElement_5pzumi_k$('comic', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(17)); + tmp0_serialDesc.addElement_5pzumi_k$('channelNew', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(18)); + tmp0_serialDesc.addElement_5pzumi_k$('ogvCard', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(19)); + tmp0_serialDesc.addElement_5pzumi_k$('bangumiRelates', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(20)); + tmp0_serialDesc.addElement_5pzumi_k$('findMore', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(21)); + tmp0_serialDesc.addElement_5pzumi_k$('esport', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(22)); + tmp0_serialDesc.addElement_5pzumi_k$('authorNew', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(23)); + tmp0_serialDesc.addElement_5pzumi_k$('tips', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(24)); + tmp0_serialDesc.addElement_5pzumi_k$('cm', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(25)); + tmp0_serialDesc.addElement_5pzumi_k$('pediaCard', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(26)); + tmp0_serialDesc.addElement_5pzumi_k$('ugcInline', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(27)); + tmp0_serialDesc.addElement_5pzumi_k$('liveInline', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(28)); + tmp0_serialDesc.addElement_5pzumi_k$('topGame', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(29)); + tmp0_serialDesc.addElement_5pzumi_k$('sports', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(30)); + tmp0_serialDesc.addElement_5pzumi_k$('pediaCardInline', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(31)); + tmp0_serialDesc.addElement_5pzumi_k$('recommendTips', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(32)); + tmp0_serialDesc.addElement_5pzumi_k$('collectionCard', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(33)); + tmp0_serialDesc.addElement_5pzumi_k$('ogvChannel', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(34)); + tmp0_serialDesc.addElement_5pzumi_k$('ogvInline', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(35)); + tmp0_serialDesc.addElement_5pzumi_k$('author', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(36)); + tmp0_serialDesc.addElement_5pzumi_k$('av', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(37)); + tmp0_serialDesc.addElement_5pzumi_k$('bangumi', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(38)); + tmp0_serialDesc.addElement_5pzumi_k$('esportsInline', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(39)); + tmp0_serialDesc.addElement_5pzumi_k$('hotBanner', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(40)); + tmp0_serialDesc.addElement_5pzumi_k$('subject', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(41)); + tmp0_serialDesc.addElement_5pzumi_k$('dynamicNew', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(42)); + tmp0_serialDesc.addElement_5pzumi_k$('articleNew', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(43)); + tmp0_serialDesc.addElement_5pzumi_k$('pediaCardPic', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(44)); + tmp0_serialDesc.addElement_5pzumi_k$('npsCard', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(45)); + tmp0_serialDesc.addElement_5pzumi_k$('chatGpt', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(46)); + tmp0_serialDesc.addElement_5pzumi_k$('hotRecommend', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(47)); + tmp0_serialDesc.addElement_5pzumi_k$('liveMaster', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(48)); + tmp0_serialDesc.addElement_5pzumi_k$('liveRoomTitle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(49)); + tmp0_serialDesc.addElement_5pzumi_k$('liveRoom', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(50)); + tmp0_serialDesc.addElement_5pzumi_k$('cheese', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(51)); + tmp0_serialDesc.addElement_5pzumi_k$('relatedSearch', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(52)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_492()), get_nullable($serializer_getInstance_493()), get_nullable($serializer_getInstance_494()), get_nullable($serializer_getInstance_495()), get_nullable($serializer_getInstance_496()), get_nullable($serializer_getInstance_497()), get_nullable($serializer_getInstance_498()), get_nullable($serializer_getInstance_499()), get_nullable($serializer_getInstance_500()), get_nullable($serializer_getInstance_501()), get_nullable($serializer_getInstance_502()), get_nullable($serializer_getInstance_503()), get_nullable($serializer_getInstance_540()), get_nullable($serializer_getInstance_504()), get_nullable($serializer_getInstance_507()), get_nullable($serializer_getInstance_509()), get_nullable($serializer_getInstance_516()), get_nullable($serializer_getInstance_526()), get_nullable($serializer_getInstance_527()), get_nullable($serializer_getInstance_528()), get_nullable($serializer_getInstance_529()), get_nullable($serializer_getInstance_531()), get_nullable($serializer_getInstance_534()), get_nullable($serializer_getInstance_535()), get_nullable($serializer_getInstance_536()), get_nullable($serializer_getInstance_537()), get_nullable($serializer_getInstance_538()), get_nullable($serializer_getInstance_539()), get_nullable($serializer_getInstance_533()), get_nullable($serializer_getInstance_487()), get_nullable($serializer_getInstance_488()), get_nullable($serializer_getInstance_491()), get_nullable($serializer_getInstance_510()), get_nullable($serializer_getInstance_511()), get_nullable($serializer_getInstance_512()), get_nullable($serializer_getInstance_499()), get_nullable($serializer_getInstance_493()), get_nullable($serializer_getInstance_513()), get_nullable($serializer_getInstance_618()), get_nullable($serializer_getInstance_620()), get_nullable($serializer_getInstance_623()), get_nullable($serializer_getInstance_626()), get_nullable($serializer_getInstance_627()), get_nullable($serializer_getInstance_628()), get_nullable($serializer_getInstance_630()), get_nullable($serializer_getInstance_632())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_bitMask1 = 0; + var tmp5_local0 = null; + var tmp6_local1 = null; + var tmp7_local2 = null; + var tmp8_local3 = null; + var tmp9_local4 = 0; + var tmp10_local5 = null; + var tmp11_local6 = null; + var tmp12_local7 = null; + var tmp13_local8 = null; + var tmp14_local9 = null; + var tmp15_local10 = null; + var tmp16_local11 = null; + var tmp17_local12 = null; + var tmp18_local13 = null; + var tmp19_local14 = null; + var tmp20_local15 = null; + var tmp21_local16 = null; + var tmp22_local17 = null; + var tmp23_local18 = null; + var tmp24_local19 = null; + var tmp25_local20 = null; + var tmp26_local21 = null; + var tmp27_local22 = null; + var tmp28_local23 = null; + var tmp29_local24 = null; + var tmp30_local25 = null; + var tmp31_local26 = null; + var tmp32_local27 = null; + var tmp33_local28 = null; + var tmp34_local29 = null; + var tmp35_local30 = null; + var tmp36_local31 = null; + var tmp37_local32 = null; + var tmp38_local33 = null; + var tmp39_local34 = null; + var tmp40_local35 = null; + var tmp41_local36 = null; + var tmp42_local37 = null; + var tmp43_local38 = null; + var tmp44_local39 = null; + var tmp45_local40 = null; + var tmp46_local41 = null; + var tmp47_local42 = null; + var tmp48_local43 = null; + var tmp49_local44 = null; + var tmp50_local45 = null; + var tmp51_local46 = null; + var tmp52_local47 = null; + var tmp53_local48 = null; + var tmp54_local49 = null; + var tmp55_local50 = null; + var tmp56_local51 = null; + var tmp57_transient0 = 0; + var tmp58_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp58_input.decodeSequentially_xlblqy_k$()) { + tmp5_local0 = tmp58_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp6_local1 = tmp58_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp7_local2 = tmp58_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp8_local3 = tmp58_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp9_local4 = tmp58_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp10_local5 = tmp58_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp11_local6 = tmp58_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_492(), tmp11_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp12_local7 = tmp58_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_493(), tmp12_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp13_local8 = tmp58_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_494(), tmp13_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp14_local9 = tmp58_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 9, $serializer_getInstance_495(), tmp14_local9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp15_local10 = tmp58_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 10, $serializer_getInstance_496(), tmp15_local10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp16_local11 = tmp58_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 11, $serializer_getInstance_497(), tmp16_local11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + tmp17_local12 = tmp58_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 12, $serializer_getInstance_498(), tmp17_local12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + tmp18_local13 = tmp58_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 13, $serializer_getInstance_499(), tmp18_local13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + tmp19_local14 = tmp58_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 14, $serializer_getInstance_500(), tmp19_local14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + tmp20_local15 = tmp58_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 15, $serializer_getInstance_501(), tmp20_local15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + tmp21_local16 = tmp58_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 16, $serializer_getInstance_502(), tmp21_local16); + tmp3_bitMask0 = tmp3_bitMask0 | 65536; + tmp22_local17 = tmp58_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 17, $serializer_getInstance_503(), tmp22_local17); + tmp3_bitMask0 = tmp3_bitMask0 | 131072; + tmp23_local18 = tmp58_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 18, $serializer_getInstance_540(), tmp23_local18); + tmp3_bitMask0 = tmp3_bitMask0 | 262144; + tmp24_local19 = tmp58_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 19, $serializer_getInstance_504(), tmp24_local19); + tmp3_bitMask0 = tmp3_bitMask0 | 524288; + tmp25_local20 = tmp58_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 20, $serializer_getInstance_507(), tmp25_local20); + tmp3_bitMask0 = tmp3_bitMask0 | 1048576; + tmp26_local21 = tmp58_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 21, $serializer_getInstance_509(), tmp26_local21); + tmp3_bitMask0 = tmp3_bitMask0 | 2097152; + tmp27_local22 = tmp58_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 22, $serializer_getInstance_516(), tmp27_local22); + tmp3_bitMask0 = tmp3_bitMask0 | 4194304; + tmp28_local23 = tmp58_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 23, $serializer_getInstance_526(), tmp28_local23); + tmp3_bitMask0 = tmp3_bitMask0 | 8388608; + tmp29_local24 = tmp58_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 24, $serializer_getInstance_527(), tmp29_local24); + tmp3_bitMask0 = tmp3_bitMask0 | 16777216; + tmp30_local25 = tmp58_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 25, $serializer_getInstance_528(), tmp30_local25); + tmp3_bitMask0 = tmp3_bitMask0 | 33554432; + tmp31_local26 = tmp58_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 26, $serializer_getInstance_529(), tmp31_local26); + tmp3_bitMask0 = tmp3_bitMask0 | 67108864; + tmp32_local27 = tmp58_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 27, $serializer_getInstance_531(), tmp32_local27); + tmp3_bitMask0 = tmp3_bitMask0 | 134217728; + tmp33_local28 = tmp58_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 28, $serializer_getInstance_534(), tmp33_local28); + tmp3_bitMask0 = tmp3_bitMask0 | 268435456; + tmp34_local29 = tmp58_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 29, $serializer_getInstance_535(), tmp34_local29); + tmp3_bitMask0 = tmp3_bitMask0 | 536870912; + tmp35_local30 = tmp58_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 30, $serializer_getInstance_536(), tmp35_local30); + tmp3_bitMask0 = tmp3_bitMask0 | 1073741824; + tmp36_local31 = tmp58_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 31, $serializer_getInstance_537(), tmp36_local31); + tmp3_bitMask0 = tmp3_bitMask0 | -2147483648; + tmp37_local32 = tmp58_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 32, $serializer_getInstance_538(), tmp37_local32); + tmp4_bitMask1 = tmp4_bitMask1 | 1; + tmp38_local33 = tmp58_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 33, $serializer_getInstance_539(), tmp38_local33); + tmp4_bitMask1 = tmp4_bitMask1 | 2; + tmp39_local34 = tmp58_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 34, $serializer_getInstance_533(), tmp39_local34); + tmp4_bitMask1 = tmp4_bitMask1 | 4; + tmp40_local35 = tmp58_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 35, $serializer_getInstance_487(), tmp40_local35); + tmp4_bitMask1 = tmp4_bitMask1 | 8; + tmp41_local36 = tmp58_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 36, $serializer_getInstance_488(), tmp41_local36); + tmp4_bitMask1 = tmp4_bitMask1 | 16; + tmp42_local37 = tmp58_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 37, $serializer_getInstance_491(), tmp42_local37); + tmp4_bitMask1 = tmp4_bitMask1 | 32; + tmp43_local38 = tmp58_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 38, $serializer_getInstance_510(), tmp43_local38); + tmp4_bitMask1 = tmp4_bitMask1 | 64; + tmp44_local39 = tmp58_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 39, $serializer_getInstance_511(), tmp44_local39); + tmp4_bitMask1 = tmp4_bitMask1 | 128; + tmp45_local40 = tmp58_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 40, $serializer_getInstance_512(), tmp45_local40); + tmp4_bitMask1 = tmp4_bitMask1 | 256; + tmp46_local41 = tmp58_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 41, $serializer_getInstance_499(), tmp46_local41); + tmp4_bitMask1 = tmp4_bitMask1 | 512; + tmp47_local42 = tmp58_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 42, $serializer_getInstance_493(), tmp47_local42); + tmp4_bitMask1 = tmp4_bitMask1 | 1024; + tmp48_local43 = tmp58_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 43, $serializer_getInstance_513(), tmp48_local43); + tmp4_bitMask1 = tmp4_bitMask1 | 2048; + tmp49_local44 = tmp58_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 44, $serializer_getInstance_618(), tmp49_local44); + tmp4_bitMask1 = tmp4_bitMask1 | 4096; + tmp50_local45 = tmp58_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 45, $serializer_getInstance_620(), tmp50_local45); + tmp4_bitMask1 = tmp4_bitMask1 | 8192; + tmp51_local46 = tmp58_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 46, $serializer_getInstance_623(), tmp51_local46); + tmp4_bitMask1 = tmp4_bitMask1 | 16384; + tmp52_local47 = tmp58_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 47, $serializer_getInstance_626(), tmp52_local47); + tmp4_bitMask1 = tmp4_bitMask1 | 32768; + tmp53_local48 = tmp58_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 48, $serializer_getInstance_627(), tmp53_local48); + tmp4_bitMask1 = tmp4_bitMask1 | 65536; + tmp54_local49 = tmp58_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 49, $serializer_getInstance_628(), tmp54_local49); + tmp4_bitMask1 = tmp4_bitMask1 | 131072; + tmp55_local50 = tmp58_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 50, $serializer_getInstance_630(), tmp55_local50); + tmp4_bitMask1 = tmp4_bitMask1 | 262144; + tmp56_local51 = tmp58_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 51, $serializer_getInstance_632(), tmp56_local51); + tmp4_bitMask1 = tmp4_bitMask1 | 524288; + } else + while (tmp1_flag) { + tmp2_index = tmp58_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp5_local0 = tmp58_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp6_local1 = tmp58_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp7_local2 = tmp58_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp8_local3 = tmp58_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp9_local4 = tmp58_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp10_local5 = tmp58_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp11_local6 = tmp58_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_492(), tmp11_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp12_local7 = tmp58_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_493(), tmp12_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp13_local8 = tmp58_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_494(), tmp13_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp14_local9 = tmp58_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 9, $serializer_getInstance_495(), tmp14_local9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp15_local10 = tmp58_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 10, $serializer_getInstance_496(), tmp15_local10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp16_local11 = tmp58_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 11, $serializer_getInstance_497(), tmp16_local11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + case 12: + tmp17_local12 = tmp58_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 12, $serializer_getInstance_498(), tmp17_local12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + break; + case 13: + tmp18_local13 = tmp58_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 13, $serializer_getInstance_499(), tmp18_local13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + break; + case 14: + tmp19_local14 = tmp58_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 14, $serializer_getInstance_500(), tmp19_local14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + break; + case 15: + tmp20_local15 = tmp58_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 15, $serializer_getInstance_501(), tmp20_local15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + break; + case 16: + tmp21_local16 = tmp58_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 16, $serializer_getInstance_502(), tmp21_local16); + tmp3_bitMask0 = tmp3_bitMask0 | 65536; + break; + case 17: + tmp22_local17 = tmp58_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 17, $serializer_getInstance_503(), tmp22_local17); + tmp3_bitMask0 = tmp3_bitMask0 | 131072; + break; + case 18: + tmp23_local18 = tmp58_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 18, $serializer_getInstance_540(), tmp23_local18); + tmp3_bitMask0 = tmp3_bitMask0 | 262144; + break; + case 19: + tmp24_local19 = tmp58_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 19, $serializer_getInstance_504(), tmp24_local19); + tmp3_bitMask0 = tmp3_bitMask0 | 524288; + break; + case 20: + tmp25_local20 = tmp58_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 20, $serializer_getInstance_507(), tmp25_local20); + tmp3_bitMask0 = tmp3_bitMask0 | 1048576; + break; + case 21: + tmp26_local21 = tmp58_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 21, $serializer_getInstance_509(), tmp26_local21); + tmp3_bitMask0 = tmp3_bitMask0 | 2097152; + break; + case 22: + tmp27_local22 = tmp58_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 22, $serializer_getInstance_516(), tmp27_local22); + tmp3_bitMask0 = tmp3_bitMask0 | 4194304; + break; + case 23: + tmp28_local23 = tmp58_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 23, $serializer_getInstance_526(), tmp28_local23); + tmp3_bitMask0 = tmp3_bitMask0 | 8388608; + break; + case 24: + tmp29_local24 = tmp58_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 24, $serializer_getInstance_527(), tmp29_local24); + tmp3_bitMask0 = tmp3_bitMask0 | 16777216; + break; + case 25: + tmp30_local25 = tmp58_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 25, $serializer_getInstance_528(), tmp30_local25); + tmp3_bitMask0 = tmp3_bitMask0 | 33554432; + break; + case 26: + tmp31_local26 = tmp58_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 26, $serializer_getInstance_529(), tmp31_local26); + tmp3_bitMask0 = tmp3_bitMask0 | 67108864; + break; + case 27: + tmp32_local27 = tmp58_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 27, $serializer_getInstance_531(), tmp32_local27); + tmp3_bitMask0 = tmp3_bitMask0 | 134217728; + break; + case 28: + tmp33_local28 = tmp58_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 28, $serializer_getInstance_534(), tmp33_local28); + tmp3_bitMask0 = tmp3_bitMask0 | 268435456; + break; + case 29: + tmp34_local29 = tmp58_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 29, $serializer_getInstance_535(), tmp34_local29); + tmp3_bitMask0 = tmp3_bitMask0 | 536870912; + break; + case 30: + tmp35_local30 = tmp58_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 30, $serializer_getInstance_536(), tmp35_local30); + tmp3_bitMask0 = tmp3_bitMask0 | 1073741824; + break; + case 31: + tmp36_local31 = tmp58_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 31, $serializer_getInstance_537(), tmp36_local31); + tmp3_bitMask0 = tmp3_bitMask0 | -2147483648; + break; + case 32: + tmp37_local32 = tmp58_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 32, $serializer_getInstance_538(), tmp37_local32); + tmp4_bitMask1 = tmp4_bitMask1 | 1; + break; + case 33: + tmp38_local33 = tmp58_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 33, $serializer_getInstance_539(), tmp38_local33); + tmp4_bitMask1 = tmp4_bitMask1 | 2; + break; + case 34: + tmp39_local34 = tmp58_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 34, $serializer_getInstance_533(), tmp39_local34); + tmp4_bitMask1 = tmp4_bitMask1 | 4; + break; + case 35: + tmp40_local35 = tmp58_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 35, $serializer_getInstance_487(), tmp40_local35); + tmp4_bitMask1 = tmp4_bitMask1 | 8; + break; + case 36: + tmp41_local36 = tmp58_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 36, $serializer_getInstance_488(), tmp41_local36); + tmp4_bitMask1 = tmp4_bitMask1 | 16; + break; + case 37: + tmp42_local37 = tmp58_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 37, $serializer_getInstance_491(), tmp42_local37); + tmp4_bitMask1 = tmp4_bitMask1 | 32; + break; + case 38: + tmp43_local38 = tmp58_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 38, $serializer_getInstance_510(), tmp43_local38); + tmp4_bitMask1 = tmp4_bitMask1 | 64; + break; + case 39: + tmp44_local39 = tmp58_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 39, $serializer_getInstance_511(), tmp44_local39); + tmp4_bitMask1 = tmp4_bitMask1 | 128; + break; + case 40: + tmp45_local40 = tmp58_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 40, $serializer_getInstance_512(), tmp45_local40); + tmp4_bitMask1 = tmp4_bitMask1 | 256; + break; + case 41: + tmp46_local41 = tmp58_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 41, $serializer_getInstance_499(), tmp46_local41); + tmp4_bitMask1 = tmp4_bitMask1 | 512; + break; + case 42: + tmp47_local42 = tmp58_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 42, $serializer_getInstance_493(), tmp47_local42); + tmp4_bitMask1 = tmp4_bitMask1 | 1024; + break; + case 43: + tmp48_local43 = tmp58_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 43, $serializer_getInstance_513(), tmp48_local43); + tmp4_bitMask1 = tmp4_bitMask1 | 2048; + break; + case 44: + tmp49_local44 = tmp58_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 44, $serializer_getInstance_618(), tmp49_local44); + tmp4_bitMask1 = tmp4_bitMask1 | 4096; + break; + case 45: + tmp50_local45 = tmp58_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 45, $serializer_getInstance_620(), tmp50_local45); + tmp4_bitMask1 = tmp4_bitMask1 | 8192; + break; + case 46: + tmp51_local46 = tmp58_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 46, $serializer_getInstance_623(), tmp51_local46); + tmp4_bitMask1 = tmp4_bitMask1 | 16384; + break; + case 47: + tmp52_local47 = tmp58_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 47, $serializer_getInstance_626(), tmp52_local47); + tmp4_bitMask1 = tmp4_bitMask1 | 32768; + break; + case 48: + tmp53_local48 = tmp58_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 48, $serializer_getInstance_627(), tmp53_local48); + tmp4_bitMask1 = tmp4_bitMask1 | 65536; + break; + case 49: + tmp54_local49 = tmp58_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 49, $serializer_getInstance_628(), tmp54_local49); + tmp4_bitMask1 = tmp4_bitMask1 | 131072; + break; + case 50: + tmp55_local50 = tmp58_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 50, $serializer_getInstance_630(), tmp55_local50); + tmp4_bitMask1 = tmp4_bitMask1 | 262144; + break; + case 51: + tmp56_local51 = tmp58_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 51, $serializer_getInstance_632(), tmp56_local51); + tmp4_bitMask1 = tmp4_bitMask1 | 524288; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp58_input.endStructure_1xqz0n_k$(tmp0_desc); + return KItem_0.new_com_bapis_bilibili_polymer_app_search_v1_KItem_gxg85u_k$(tmp3_bitMask0, tmp4_bitMask1, tmp5_local0, tmp6_local1, tmp7_local2, tmp8_local3, tmp9_local4, tmp10_local5, tmp11_local6, tmp12_local7, tmp13_local8, tmp14_local9, tmp15_local10, tmp16_local11, tmp17_local12, tmp18_local13, tmp19_local14, tmp20_local15, tmp21_local16, tmp22_local17, tmp23_local18, tmp24_local19, tmp25_local20, tmp26_local21, tmp27_local22, tmp28_local23, tmp29_local24, tmp30_local25, tmp31_local26, tmp32_local27, tmp33_local28, tmp34_local29, tmp35_local30, tmp36_local31, tmp37_local32, tmp38_local33, tmp39_local34, tmp40_local35, tmp41_local36, tmp42_local37, tmp43_local38, tmp44_local39, tmp45_local40, tmp46_local41, tmp47_local42, tmp48_local43, tmp49_local44, tmp50_local45, tmp51_local46, tmp52_local47, tmp53_local48, tmp54_local49, tmp55_local50, tmp56_local51, null); + } + serialize_ghdse4_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.uri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.uri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.param === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.param); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.goto === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.goto); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.linktype === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.linktype); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.position === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 4, value.position); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.trackid === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.trackid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.special_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 6, $serializer_getInstance_492(), value.special_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.article_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 7, $serializer_getInstance_493(), value.article_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.banner_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 8, $serializer_getInstance_494(), value.banner_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.live_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 9, $serializer_getInstance_495(), value.live_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.game_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 10, $serializer_getInstance_496(), value.game_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.purchase_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 11, $serializer_getInstance_497(), value.purchase_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !(value.recommendWord_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 12, $serializer_getInstance_498(), value.recommendWord_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 13) ? true : !(value.dynamic_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 13, $serializer_getInstance_499(), value.dynamic_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 14) ? true : !(value.suggestKeyword_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 14, $serializer_getInstance_500(), value.suggestKeyword_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 15) ? true : !(value.specialGuide_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 15, $serializer_getInstance_501(), value.specialGuide_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 16) ? true : !(value.comic_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 16, $serializer_getInstance_502(), value.comic_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 17) ? true : !(value.channelNew_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 17, $serializer_getInstance_503(), value.channelNew_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 18) ? true : !(value.ogvCard_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 18, $serializer_getInstance_540(), value.ogvCard_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 19) ? true : !(value.bangumiRelates_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 19, $serializer_getInstance_504(), value.bangumiRelates_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 20) ? true : !(value.findMore_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 20, $serializer_getInstance_507(), value.findMore_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 21) ? true : !(value.esport_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 21, $serializer_getInstance_509(), value.esport_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 22) ? true : !(value.authorNew_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 22, $serializer_getInstance_516(), value.authorNew_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 23) ? true : !(value.tips_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 23, $serializer_getInstance_526(), value.tips_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 24) ? true : !(value.cm_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 24, $serializer_getInstance_527(), value.cm_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 25) ? true : !(value.pediaCard_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 25, $serializer_getInstance_528(), value.pediaCard_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 26) ? true : !(value.ugcInline_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 26, $serializer_getInstance_529(), value.ugcInline_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 27) ? true : !(value.liveInline_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 27, $serializer_getInstance_531(), value.liveInline_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 28) ? true : !(value.topGame_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 28, $serializer_getInstance_534(), value.topGame_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 29) ? true : !(value.sports_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 29, $serializer_getInstance_535(), value.sports_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 30) ? true : !(value.pediaCardInline_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 30, $serializer_getInstance_536(), value.pediaCardInline_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 31) ? true : !(value.recommendTips_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 31, $serializer_getInstance_537(), value.recommendTips_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 32) ? true : !(value.collectionCard_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 32, $serializer_getInstance_538(), value.collectionCard_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 33) ? true : !(value.ogvChannel_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 33, $serializer_getInstance_539(), value.ogvChannel_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 34) ? true : !(value.ogvInline_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 34, $serializer_getInstance_533(), value.ogvInline_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 35) ? true : !(value.author_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 35, $serializer_getInstance_487(), value.author_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 36) ? true : !(value.av_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 36, $serializer_getInstance_488(), value.av_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 37) ? true : !(value.bangumi_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 37, $serializer_getInstance_491(), value.bangumi_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 38) ? true : !(value.esportsInline_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 38, $serializer_getInstance_510(), value.esportsInline_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 39) ? true : !(value.hotBanner_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 39, $serializer_getInstance_511(), value.hotBanner_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 40) ? true : !(value.subject_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 40, $serializer_getInstance_512(), value.subject_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 41) ? true : !(value.dynamicNew_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 41, $serializer_getInstance_499(), value.dynamicNew_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 42) ? true : !(value.articleNew_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 42, $serializer_getInstance_493(), value.articleNew_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 43) ? true : !(value.pediaCardPic_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 43, $serializer_getInstance_513(), value.pediaCardPic_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 44) ? true : !(value.npsCard_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 44, $serializer_getInstance_618(), value.npsCard_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 45) ? true : !(value.chatGpt_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 45, $serializer_getInstance_620(), value.chatGpt_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 46) ? true : !(value.hotRecommend_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 46, $serializer_getInstance_623(), value.hotRecommend_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 47) ? true : !(value.liveMaster_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 47, $serializer_getInstance_626(), value.liveMaster_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 48) ? true : !(value.liveRoomTitle_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 48, $serializer_getInstance_627(), value.liveRoomTitle_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 49) ? true : !(value.liveRoom_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 49, $serializer_getInstance_628(), value.liveRoom_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 50) ? true : !(value.cheese_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 50, $serializer_getInstance_630(), value.cheese_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 51) ? true : !(value.relatedSearch_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 51, $serializer_getInstance_632(), value.relatedSearch_1); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_ghdse4_k$(encoder, value instanceof KItem_0 ? value : THROW_CCE()); + } + } + class KItem_0 { + constructor(uri, param, goto, linktype, position, trackid, special, article, banner, live, game, purchase, recommendWord, dynamic, suggestKeyword, specialGuide, comic, channelNew, ogvCard, bangumiRelates, findMore, esport, authorNew, tips, cm, pediaCard, ugcInline, liveInline, topGame, sports, pediaCardInline, recommendTips, collectionCard, ogvChannel, ogvInline, author, av, bangumi, esportsInline, hotBanner, subject, dynamicNew, articleNew, pediaCardPic, npsCard, chatGpt, hotRecommend, liveMaster, liveRoomTitle, liveRoom, cheese, relatedSearch) { + Companion_getInstance_499(); + uri = uri === VOID ? '' : uri; + param = param === VOID ? '' : param; + goto = goto === VOID ? '' : goto; + linktype = linktype === VOID ? '' : linktype; + position = position === VOID ? 0 : position; + trackid = trackid === VOID ? '' : trackid; + special = special === VOID ? null : special; + article = article === VOID ? null : article; + banner = banner === VOID ? null : banner; + live = live === VOID ? null : live; + game = game === VOID ? null : game; + purchase = purchase === VOID ? null : purchase; + recommendWord = recommendWord === VOID ? null : recommendWord; + dynamic = dynamic === VOID ? null : dynamic; + suggestKeyword = suggestKeyword === VOID ? null : suggestKeyword; + specialGuide = specialGuide === VOID ? null : specialGuide; + comic = comic === VOID ? null : comic; + channelNew = channelNew === VOID ? null : channelNew; + ogvCard = ogvCard === VOID ? null : ogvCard; + bangumiRelates = bangumiRelates === VOID ? null : bangumiRelates; + findMore = findMore === VOID ? null : findMore; + esport = esport === VOID ? null : esport; + authorNew = authorNew === VOID ? null : authorNew; + tips = tips === VOID ? null : tips; + cm = cm === VOID ? null : cm; + pediaCard = pediaCard === VOID ? null : pediaCard; + ugcInline = ugcInline === VOID ? null : ugcInline; + liveInline = liveInline === VOID ? null : liveInline; + topGame = topGame === VOID ? null : topGame; + sports = sports === VOID ? null : sports; + pediaCardInline = pediaCardInline === VOID ? null : pediaCardInline; + recommendTips = recommendTips === VOID ? null : recommendTips; + collectionCard = collectionCard === VOID ? null : collectionCard; + ogvChannel = ogvChannel === VOID ? null : ogvChannel; + ogvInline = ogvInline === VOID ? null : ogvInline; + author = author === VOID ? null : author; + av = av === VOID ? null : av; + bangumi = bangumi === VOID ? null : bangumi; + esportsInline = esportsInline === VOID ? null : esportsInline; + hotBanner = hotBanner === VOID ? null : hotBanner; + subject = subject === VOID ? null : subject; + dynamicNew = dynamicNew === VOID ? null : dynamicNew; + articleNew = articleNew === VOID ? null : articleNew; + pediaCardPic = pediaCardPic === VOID ? null : pediaCardPic; + npsCard = npsCard === VOID ? null : npsCard; + chatGpt = chatGpt === VOID ? null : chatGpt; + hotRecommend = hotRecommend === VOID ? null : hotRecommend; + liveMaster = liveMaster === VOID ? null : liveMaster; + liveRoomTitle = liveRoomTitle === VOID ? null : liveRoomTitle; + liveRoom = liveRoom === VOID ? null : liveRoom; + cheese = cheese === VOID ? null : cheese; + relatedSearch = relatedSearch === VOID ? null : relatedSearch; + this.uri = uri; + this.param = param; + this.goto = goto; + this.linktype = linktype; + this.position = position; + this.trackid = trackid; + this.special_1 = special; + this.article_1 = article; + this.banner_1 = banner; + this.live_1 = live; + this.game_1 = game; + this.purchase_1 = purchase; + this.recommendWord_1 = recommendWord; + this.dynamic_1 = dynamic; + this.suggestKeyword_1 = suggestKeyword; + this.specialGuide_1 = specialGuide; + this.comic_1 = comic; + this.channelNew_1 = channelNew; + this.ogvCard_1 = ogvCard; + this.bangumiRelates_1 = bangumiRelates; + this.findMore_1 = findMore; + this.esport_1 = esport; + this.authorNew_1 = authorNew; + this.tips_1 = tips; + this.cm_1 = cm; + this.pediaCard_1 = pediaCard; + this.ugcInline_1 = ugcInline; + this.liveInline_1 = liveInline; + this.topGame_1 = topGame; + this.sports_1 = sports; + this.pediaCardInline_1 = pediaCardInline; + this.recommendTips_1 = recommendTips; + this.collectionCard_1 = collectionCard; + this.ogvChannel_1 = ogvChannel; + this.ogvInline_1 = ogvInline; + this.author_1 = author; + this.av_1 = av; + this.bangumi_1 = bangumi; + this.esportsInline_1 = esportsInline; + this.hotBanner_1 = hotBanner; + this.subject_1 = subject; + this.dynamicNew_1 = dynamicNew; + this.articleNew_1 = articleNew; + this.pediaCardPic_1 = pediaCardPic; + this.npsCard_1 = npsCard; + this.chatGpt_1 = chatGpt; + this.hotRecommend_1 = hotRecommend; + this.liveMaster_1 = liveMaster; + this.liveRoomTitle_1 = liveRoomTitle; + this.liveRoom_1 = liveRoom; + this.cheese_1 = cheese; + this.relatedSearch_1 = relatedSearch; + var tmp = this; + tmp.cardItemNumber$delegate_1 = lazy_0(KItem$cardItemNumber$delegate$lambda(this)); + } + get_uri_18iuil_k$() { + return this.uri; + } + get_param_iwqquc_k$() { + return this.param; + } + get_goto_womsa4_k$() { + return this.goto; + } + get_linktype_c1db7n_k$() { + return this.linktype; + } + get_position_jfponi_k$() { + return this.position; + } + get_trackid_gdy1c3_k$() { + return this.trackid; + } + cardItemValue() { + if (!(this.special_1 == null)) { + var tmp = this.special_1; + return (tmp == null ? true : !(tmp == null)) ? tmp : null; + } else if (!(this.article_1 == null)) { + var tmp_0 = this.article_1; + return (tmp_0 == null ? true : !(tmp_0 == null)) ? tmp_0 : null; + } else if (!(this.banner_1 == null)) { + var tmp_1 = this.banner_1; + return (tmp_1 == null ? true : !(tmp_1 == null)) ? tmp_1 : null; + } else if (!(this.live_1 == null)) { + var tmp_2 = this.live_1; + return (tmp_2 == null ? true : !(tmp_2 == null)) ? tmp_2 : null; + } else if (!(this.game_1 == null)) { + var tmp_3 = this.game_1; + return (tmp_3 == null ? true : !(tmp_3 == null)) ? tmp_3 : null; + } else if (!(this.purchase_1 == null)) { + var tmp_4 = this.purchase_1; + return (tmp_4 == null ? true : !(tmp_4 == null)) ? tmp_4 : null; + } else if (!(this.recommendWord_1 == null)) { + var tmp_5 = this.recommendWord_1; + return (tmp_5 == null ? true : !(tmp_5 == null)) ? tmp_5 : null; + } else if (!(this.dynamic_1 == null)) { + var tmp_6 = this.dynamic_1; + return (tmp_6 == null ? true : !(tmp_6 == null)) ? tmp_6 : null; + } else if (!(this.suggestKeyword_1 == null)) { + var tmp_7 = this.suggestKeyword_1; + return (tmp_7 == null ? true : !(tmp_7 == null)) ? tmp_7 : null; + } else if (!(this.specialGuide_1 == null)) { + var tmp_8 = this.specialGuide_1; + return (tmp_8 == null ? true : !(tmp_8 == null)) ? tmp_8 : null; + } else if (!(this.comic_1 == null)) { + var tmp_9 = this.comic_1; + return (tmp_9 == null ? true : !(tmp_9 == null)) ? tmp_9 : null; + } else if (!(this.channelNew_1 == null)) { + var tmp_10 = this.channelNew_1; + return (tmp_10 == null ? true : !(tmp_10 == null)) ? tmp_10 : null; + } else if (!(this.ogvCard_1 == null)) { + var tmp_11 = this.ogvCard_1; + return (tmp_11 == null ? true : !(tmp_11 == null)) ? tmp_11 : null; + } else if (!(this.bangumiRelates_1 == null)) { + var tmp_12 = this.bangumiRelates_1; + return (tmp_12 == null ? true : !(tmp_12 == null)) ? tmp_12 : null; + } else if (!(this.findMore_1 == null)) { + var tmp_13 = this.findMore_1; + return (tmp_13 == null ? true : !(tmp_13 == null)) ? tmp_13 : null; + } else if (!(this.esport_1 == null)) { + var tmp_14 = this.esport_1; + return (tmp_14 == null ? true : !(tmp_14 == null)) ? tmp_14 : null; + } else if (!(this.authorNew_1 == null)) { + var tmp_15 = this.authorNew_1; + return (tmp_15 == null ? true : !(tmp_15 == null)) ? tmp_15 : null; + } else if (!(this.tips_1 == null)) { + var tmp_16 = this.tips_1; + return (tmp_16 == null ? true : !(tmp_16 == null)) ? tmp_16 : null; + } else if (!(this.cm_1 == null)) { + var tmp_17 = this.cm_1; + return (tmp_17 == null ? true : !(tmp_17 == null)) ? tmp_17 : null; + } else if (!(this.pediaCard_1 == null)) { + var tmp_18 = this.pediaCard_1; + return (tmp_18 == null ? true : !(tmp_18 == null)) ? tmp_18 : null; + } else if (!(this.ugcInline_1 == null)) { + var tmp_19 = this.ugcInline_1; + return (tmp_19 == null ? true : !(tmp_19 == null)) ? tmp_19 : null; + } else if (!(this.liveInline_1 == null)) { + var tmp_20 = this.liveInline_1; + return (tmp_20 == null ? true : !(tmp_20 == null)) ? tmp_20 : null; + } else if (!(this.topGame_1 == null)) { + var tmp_21 = this.topGame_1; + return (tmp_21 == null ? true : !(tmp_21 == null)) ? tmp_21 : null; + } else if (!(this.sports_1 == null)) { + var tmp_22 = this.sports_1; + return (tmp_22 == null ? true : !(tmp_22 == null)) ? tmp_22 : null; + } else if (!(this.pediaCardInline_1 == null)) { + var tmp_23 = this.pediaCardInline_1; + return (tmp_23 == null ? true : !(tmp_23 == null)) ? tmp_23 : null; + } else if (!(this.recommendTips_1 == null)) { + var tmp_24 = this.recommendTips_1; + return (tmp_24 == null ? true : !(tmp_24 == null)) ? tmp_24 : null; + } else if (!(this.collectionCard_1 == null)) { + var tmp_25 = this.collectionCard_1; + return (tmp_25 == null ? true : !(tmp_25 == null)) ? tmp_25 : null; + } else if (!(this.ogvChannel_1 == null)) { + var tmp_26 = this.ogvChannel_1; + return (tmp_26 == null ? true : !(tmp_26 == null)) ? tmp_26 : null; + } else if (!(this.ogvInline_1 == null)) { + var tmp_27 = this.ogvInline_1; + return (tmp_27 == null ? true : !(tmp_27 == null)) ? tmp_27 : null; + } else if (!(this.author_1 == null)) { + var tmp_28 = this.author_1; + return (tmp_28 == null ? true : !(tmp_28 == null)) ? tmp_28 : null; + } else if (!(this.av_1 == null)) { + var tmp_29 = this.av_1; + return (tmp_29 == null ? true : !(tmp_29 == null)) ? tmp_29 : null; + } else if (!(this.bangumi_1 == null)) { + var tmp_30 = this.bangumi_1; + return (tmp_30 == null ? true : !(tmp_30 == null)) ? tmp_30 : null; + } else if (!(this.esportsInline_1 == null)) { + var tmp_31 = this.esportsInline_1; + return (tmp_31 == null ? true : !(tmp_31 == null)) ? tmp_31 : null; + } else if (!(this.hotBanner_1 == null)) { + var tmp_32 = this.hotBanner_1; + return (tmp_32 == null ? true : !(tmp_32 == null)) ? tmp_32 : null; + } else if (!(this.subject_1 == null)) { + var tmp_33 = this.subject_1; + return (tmp_33 == null ? true : !(tmp_33 == null)) ? tmp_33 : null; + } else if (!(this.dynamicNew_1 == null)) { + var tmp_34 = this.dynamicNew_1; + return (tmp_34 == null ? true : !(tmp_34 == null)) ? tmp_34 : null; + } else if (!(this.articleNew_1 == null)) { + var tmp_35 = this.articleNew_1; + return (tmp_35 == null ? true : !(tmp_35 == null)) ? tmp_35 : null; + } else if (!(this.pediaCardPic_1 == null)) { + var tmp_36 = this.pediaCardPic_1; + return (tmp_36 == null ? true : !(tmp_36 == null)) ? tmp_36 : null; + } else if (!(this.npsCard_1 == null)) { + var tmp_37 = this.npsCard_1; + return (tmp_37 == null ? true : !(tmp_37 == null)) ? tmp_37 : null; + } else if (!(this.chatGpt_1 == null)) { + var tmp_38 = this.chatGpt_1; + return (tmp_38 == null ? true : !(tmp_38 == null)) ? tmp_38 : null; + } else if (!(this.hotRecommend_1 == null)) { + var tmp_39 = this.hotRecommend_1; + return (tmp_39 == null ? true : !(tmp_39 == null)) ? tmp_39 : null; + } else if (!(this.liveMaster_1 == null)) { + var tmp_40 = this.liveMaster_1; + return (tmp_40 == null ? true : !(tmp_40 == null)) ? tmp_40 : null; + } else if (!(this.liveRoomTitle_1 == null)) { + var tmp_41 = this.liveRoomTitle_1; + return (tmp_41 == null ? true : !(tmp_41 == null)) ? tmp_41 : null; + } else if (!(this.liveRoom_1 == null)) { + var tmp_42 = this.liveRoom_1; + return (tmp_42 == null ? true : !(tmp_42 == null)) ? tmp_42 : null; + } else if (!(this.cheese_1 == null)) { + var tmp_43 = this.cheese_1; + return (tmp_43 == null ? true : !(tmp_43 == null)) ? tmp_43 : null; + } else if (!(this.relatedSearch_1 == null)) { + var tmp_44 = this.relatedSearch_1; + return (tmp_44 == null ? true : !(tmp_44 == null)) ? tmp_44 : null; + } else { + return null; + } + } + cardItemTypeJs() { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = Companion_getInstance_499().cardItemValues; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.polymer.app.search.v1.KItem.cardItemType.' call + var it = element; + tmp$ret$0 = it.value === _get_cardItemNumber__9vvfof(this); + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + return tmp$ret$1; + } + component1_7eebsc_k$() { + return this.uri; + } + component2_7eebsb_k$() { + return this.param; + } + component3_7eebsa_k$() { + return this.goto; + } + component4_7eebs9_k$() { + return this.linktype; + } + component5_7eebs8_k$() { + return this.position; + } + component6_7eebs7_k$() { + return this.trackid; + } + copy_9jyv1g_k$(uri, param, goto, linktype, position, trackid, special, article, banner, live, game, purchase, recommendWord, dynamic, suggestKeyword, specialGuide, comic, channelNew, ogvCard, bangumiRelates, findMore, esport, authorNew, tips, cm, pediaCard, ugcInline, liveInline, topGame, sports, pediaCardInline, recommendTips, collectionCard, ogvChannel, ogvInline, author, av, bangumi, esportsInline, hotBanner, subject, dynamicNew, articleNew, pediaCardPic, npsCard, chatGpt, hotRecommend, liveMaster, liveRoomTitle, liveRoom, cheese, relatedSearch) { + return new KItem_0(uri, param, goto, linktype, position, trackid, special, article, banner, live, game, purchase, recommendWord, dynamic, suggestKeyword, specialGuide, comic, channelNew, ogvCard, bangumiRelates, findMore, esport, authorNew, tips, cm, pediaCard, ugcInline, liveInline, topGame, sports, pediaCardInline, recommendTips, collectionCard, ogvChannel, ogvInline, author, av, bangumi, esportsInline, hotBanner, subject, dynamicNew, articleNew, pediaCardPic, npsCard, chatGpt, hotRecommend, liveMaster, liveRoomTitle, liveRoom, cheese, relatedSearch); + } + copy(uri, param, goto, linktype, position, trackid, special, article, banner, live, game, purchase, recommendWord, dynamic, suggestKeyword, specialGuide, comic, channelNew, ogvCard, bangumiRelates, findMore, esport, authorNew, tips, cm, pediaCard, ugcInline, liveInline, topGame, sports, pediaCardInline, recommendTips, collectionCard, ogvChannel, ogvInline, author, av, bangumi, esportsInline, hotBanner, subject, dynamicNew, articleNew, pediaCardPic, npsCard, chatGpt, hotRecommend, liveMaster, liveRoomTitle, liveRoom, cheese, relatedSearch, $super) { + uri = uri === VOID ? this.uri : uri; + param = param === VOID ? this.param : param; + goto = goto === VOID ? this.goto : goto; + linktype = linktype === VOID ? this.linktype : linktype; + position = position === VOID ? this.position : position; + trackid = trackid === VOID ? this.trackid : trackid; + special = special === VOID ? this.special_1 : special; + article = article === VOID ? this.article_1 : article; + banner = banner === VOID ? this.banner_1 : banner; + live = live === VOID ? this.live_1 : live; + game = game === VOID ? this.game_1 : game; + purchase = purchase === VOID ? this.purchase_1 : purchase; + recommendWord = recommendWord === VOID ? this.recommendWord_1 : recommendWord; + dynamic = dynamic === VOID ? this.dynamic_1 : dynamic; + suggestKeyword = suggestKeyword === VOID ? this.suggestKeyword_1 : suggestKeyword; + specialGuide = specialGuide === VOID ? this.specialGuide_1 : specialGuide; + comic = comic === VOID ? this.comic_1 : comic; + channelNew = channelNew === VOID ? this.channelNew_1 : channelNew; + ogvCard = ogvCard === VOID ? this.ogvCard_1 : ogvCard; + bangumiRelates = bangumiRelates === VOID ? this.bangumiRelates_1 : bangumiRelates; + findMore = findMore === VOID ? this.findMore_1 : findMore; + esport = esport === VOID ? this.esport_1 : esport; + authorNew = authorNew === VOID ? this.authorNew_1 : authorNew; + tips = tips === VOID ? this.tips_1 : tips; + cm = cm === VOID ? this.cm_1 : cm; + pediaCard = pediaCard === VOID ? this.pediaCard_1 : pediaCard; + ugcInline = ugcInline === VOID ? this.ugcInline_1 : ugcInline; + liveInline = liveInline === VOID ? this.liveInline_1 : liveInline; + topGame = topGame === VOID ? this.topGame_1 : topGame; + sports = sports === VOID ? this.sports_1 : sports; + pediaCardInline = pediaCardInline === VOID ? this.pediaCardInline_1 : pediaCardInline; + recommendTips = recommendTips === VOID ? this.recommendTips_1 : recommendTips; + collectionCard = collectionCard === VOID ? this.collectionCard_1 : collectionCard; + ogvChannel = ogvChannel === VOID ? this.ogvChannel_1 : ogvChannel; + ogvInline = ogvInline === VOID ? this.ogvInline_1 : ogvInline; + author = author === VOID ? this.author_1 : author; + av = av === VOID ? this.av_1 : av; + bangumi = bangumi === VOID ? this.bangumi_1 : bangumi; + esportsInline = esportsInline === VOID ? this.esportsInline_1 : esportsInline; + hotBanner = hotBanner === VOID ? this.hotBanner_1 : hotBanner; + subject = subject === VOID ? this.subject_1 : subject; + dynamicNew = dynamicNew === VOID ? this.dynamicNew_1 : dynamicNew; + articleNew = articleNew === VOID ? this.articleNew_1 : articleNew; + pediaCardPic = pediaCardPic === VOID ? this.pediaCardPic_1 : pediaCardPic; + npsCard = npsCard === VOID ? this.npsCard_1 : npsCard; + chatGpt = chatGpt === VOID ? this.chatGpt_1 : chatGpt; + hotRecommend = hotRecommend === VOID ? this.hotRecommend_1 : hotRecommend; + liveMaster = liveMaster === VOID ? this.liveMaster_1 : liveMaster; + liveRoomTitle = liveRoomTitle === VOID ? this.liveRoomTitle_1 : liveRoomTitle; + liveRoom = liveRoom === VOID ? this.liveRoom_1 : liveRoom; + cheese = cheese === VOID ? this.cheese_1 : cheese; + relatedSearch = relatedSearch === VOID ? this.relatedSearch_1 : relatedSearch; + return this.copy_9jyv1g_k$(uri, param, goto, linktype, position, trackid, special, article, banner, live, game, purchase, recommendWord, dynamic, suggestKeyword, specialGuide, comic, channelNew, ogvCard, bangumiRelates, findMore, esport, authorNew, tips, cm, pediaCard, ugcInline, liveInline, topGame, sports, pediaCardInline, recommendTips, collectionCard, ogvChannel, ogvInline, author, av, bangumi, esportsInline, hotBanner, subject, dynamicNew, articleNew, pediaCardPic, npsCard, chatGpt, hotRecommend, liveMaster, liveRoomTitle, liveRoom, cheese, relatedSearch); + } + toString() { + return 'KItem(uri=' + this.uri + ', param=' + this.param + ', goto=' + this.goto + ', linktype=' + this.linktype + ', position=' + this.position + ', trackid=' + this.trackid + ', special=' + this.special_1 + ', article=' + this.article_1 + ', banner=' + this.banner_1 + ', live=' + this.live_1 + ', game=' + this.game_1 + ', purchase=' + this.purchase_1 + ', recommendWord=' + this.recommendWord_1 + ', dynamic=' + this.dynamic_1 + ', suggestKeyword=' + this.suggestKeyword_1 + ', specialGuide=' + this.specialGuide_1 + ', comic=' + this.comic_1 + ', channelNew=' + this.channelNew_1 + ', ogvCard=' + this.ogvCard_1 + ', bangumiRelates=' + this.bangumiRelates_1 + ', findMore=' + this.findMore_1 + ', esport=' + this.esport_1 + ', authorNew=' + this.authorNew_1 + ', tips=' + this.tips_1 + ', cm=' + this.cm_1 + ', pediaCard=' + this.pediaCard_1 + ', ugcInline=' + this.ugcInline_1 + ', liveInline=' + this.liveInline_1 + ', topGame=' + this.topGame_1 + ', sports=' + this.sports_1 + ', pediaCardInline=' + this.pediaCardInline_1 + ', recommendTips=' + this.recommendTips_1 + ', collectionCard=' + this.collectionCard_1 + ', ogvChannel=' + this.ogvChannel_1 + ', ogvInline=' + this.ogvInline_1 + ', author=' + this.author_1 + ', av=' + this.av_1 + ', bangumi=' + this.bangumi_1 + ', esportsInline=' + this.esportsInline_1 + ', hotBanner=' + this.hotBanner_1 + ', subject=' + this.subject_1 + ', dynamicNew=' + this.dynamicNew_1 + ', articleNew=' + this.articleNew_1 + ', pediaCardPic=' + this.pediaCardPic_1 + ', npsCard=' + this.npsCard_1 + ', chatGpt=' + this.chatGpt_1 + ', hotRecommend=' + this.hotRecommend_1 + ', liveMaster=' + this.liveMaster_1 + ', liveRoomTitle=' + this.liveRoomTitle_1 + ', liveRoom=' + this.liveRoom_1 + ', cheese=' + this.cheese_1 + ', relatedSearch=' + this.relatedSearch_1 + ')'; + } + hashCode() { + var result = getStringHashCode(this.uri); + result = imul(result, 31) + getStringHashCode(this.param) | 0; + result = imul(result, 31) + getStringHashCode(this.goto) | 0; + result = imul(result, 31) + getStringHashCode(this.linktype) | 0; + result = imul(result, 31) + this.position | 0; + result = imul(result, 31) + getStringHashCode(this.trackid) | 0; + result = imul(result, 31) + (this.special_1 == null ? 0 : this.special_1.hashCode()) | 0; + result = imul(result, 31) + (this.article_1 == null ? 0 : this.article_1.hashCode()) | 0; + result = imul(result, 31) + (this.banner_1 == null ? 0 : this.banner_1.hashCode()) | 0; + result = imul(result, 31) + (this.live_1 == null ? 0 : this.live_1.hashCode()) | 0; + result = imul(result, 31) + (this.game_1 == null ? 0 : this.game_1.hashCode()) | 0; + result = imul(result, 31) + (this.purchase_1 == null ? 0 : this.purchase_1.hashCode()) | 0; + result = imul(result, 31) + (this.recommendWord_1 == null ? 0 : this.recommendWord_1.hashCode()) | 0; + result = imul(result, 31) + (this.dynamic_1 == null ? 0 : this.dynamic_1.hashCode()) | 0; + result = imul(result, 31) + (this.suggestKeyword_1 == null ? 0 : this.suggestKeyword_1.hashCode()) | 0; + result = imul(result, 31) + (this.specialGuide_1 == null ? 0 : this.specialGuide_1.hashCode()) | 0; + result = imul(result, 31) + (this.comic_1 == null ? 0 : this.comic_1.hashCode()) | 0; + result = imul(result, 31) + (this.channelNew_1 == null ? 0 : this.channelNew_1.hashCode()) | 0; + result = imul(result, 31) + (this.ogvCard_1 == null ? 0 : this.ogvCard_1.hashCode()) | 0; + result = imul(result, 31) + (this.bangumiRelates_1 == null ? 0 : this.bangumiRelates_1.hashCode()) | 0; + result = imul(result, 31) + (this.findMore_1 == null ? 0 : this.findMore_1.hashCode()) | 0; + result = imul(result, 31) + (this.esport_1 == null ? 0 : this.esport_1.hashCode()) | 0; + result = imul(result, 31) + (this.authorNew_1 == null ? 0 : this.authorNew_1.hashCode()) | 0; + result = imul(result, 31) + (this.tips_1 == null ? 0 : this.tips_1.hashCode()) | 0; + result = imul(result, 31) + (this.cm_1 == null ? 0 : this.cm_1.hashCode()) | 0; + result = imul(result, 31) + (this.pediaCard_1 == null ? 0 : this.pediaCard_1.hashCode()) | 0; + result = imul(result, 31) + (this.ugcInline_1 == null ? 0 : this.ugcInline_1.hashCode()) | 0; + result = imul(result, 31) + (this.liveInline_1 == null ? 0 : this.liveInline_1.hashCode()) | 0; + result = imul(result, 31) + (this.topGame_1 == null ? 0 : this.topGame_1.hashCode()) | 0; + result = imul(result, 31) + (this.sports_1 == null ? 0 : this.sports_1.hashCode()) | 0; + result = imul(result, 31) + (this.pediaCardInline_1 == null ? 0 : this.pediaCardInline_1.hashCode()) | 0; + result = imul(result, 31) + (this.recommendTips_1 == null ? 0 : this.recommendTips_1.hashCode()) | 0; + result = imul(result, 31) + (this.collectionCard_1 == null ? 0 : this.collectionCard_1.hashCode()) | 0; + result = imul(result, 31) + (this.ogvChannel_1 == null ? 0 : this.ogvChannel_1.hashCode()) | 0; + result = imul(result, 31) + (this.ogvInline_1 == null ? 0 : this.ogvInline_1.hashCode()) | 0; + result = imul(result, 31) + (this.author_1 == null ? 0 : this.author_1.hashCode()) | 0; + result = imul(result, 31) + (this.av_1 == null ? 0 : this.av_1.hashCode()) | 0; + result = imul(result, 31) + (this.bangumi_1 == null ? 0 : this.bangumi_1.hashCode()) | 0; + result = imul(result, 31) + (this.esportsInline_1 == null ? 0 : this.esportsInline_1.hashCode()) | 0; + result = imul(result, 31) + (this.hotBanner_1 == null ? 0 : this.hotBanner_1.hashCode()) | 0; + result = imul(result, 31) + (this.subject_1 == null ? 0 : this.subject_1.hashCode()) | 0; + result = imul(result, 31) + (this.dynamicNew_1 == null ? 0 : this.dynamicNew_1.hashCode()) | 0; + result = imul(result, 31) + (this.articleNew_1 == null ? 0 : this.articleNew_1.hashCode()) | 0; + result = imul(result, 31) + (this.pediaCardPic_1 == null ? 0 : this.pediaCardPic_1.hashCode()) | 0; + result = imul(result, 31) + (this.npsCard_1 == null ? 0 : this.npsCard_1.hashCode()) | 0; + result = imul(result, 31) + (this.chatGpt_1 == null ? 0 : this.chatGpt_1.hashCode()) | 0; + result = imul(result, 31) + (this.hotRecommend_1 == null ? 0 : this.hotRecommend_1.hashCode()) | 0; + result = imul(result, 31) + (this.liveMaster_1 == null ? 0 : this.liveMaster_1.hashCode()) | 0; + result = imul(result, 31) + (this.liveRoomTitle_1 == null ? 0 : this.liveRoomTitle_1.hashCode()) | 0; + result = imul(result, 31) + (this.liveRoom_1 == null ? 0 : this.liveRoom_1.hashCode()) | 0; + result = imul(result, 31) + (this.cheese_1 == null ? 0 : this.cheese_1.hashCode()) | 0; + result = imul(result, 31) + (this.relatedSearch_1 == null ? 0 : this.relatedSearch_1.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KItem_0)) + return false; + var tmp0_other_with_cast = other instanceof KItem_0 ? other : THROW_CCE(); + if (!(this.uri === tmp0_other_with_cast.uri)) + return false; + if (!(this.param === tmp0_other_with_cast.param)) + return false; + if (!(this.goto === tmp0_other_with_cast.goto)) + return false; + if (!(this.linktype === tmp0_other_with_cast.linktype)) + return false; + if (!(this.position === tmp0_other_with_cast.position)) + return false; + if (!(this.trackid === tmp0_other_with_cast.trackid)) + return false; + if (!equals(this.special_1, tmp0_other_with_cast.special_1)) + return false; + if (!equals(this.article_1, tmp0_other_with_cast.article_1)) + return false; + if (!equals(this.banner_1, tmp0_other_with_cast.banner_1)) + return false; + if (!equals(this.live_1, tmp0_other_with_cast.live_1)) + return false; + if (!equals(this.game_1, tmp0_other_with_cast.game_1)) + return false; + if (!equals(this.purchase_1, tmp0_other_with_cast.purchase_1)) + return false; + if (!equals(this.recommendWord_1, tmp0_other_with_cast.recommendWord_1)) + return false; + if (!equals(this.dynamic_1, tmp0_other_with_cast.dynamic_1)) + return false; + if (!equals(this.suggestKeyword_1, tmp0_other_with_cast.suggestKeyword_1)) + return false; + if (!equals(this.specialGuide_1, tmp0_other_with_cast.specialGuide_1)) + return false; + if (!equals(this.comic_1, tmp0_other_with_cast.comic_1)) + return false; + if (!equals(this.channelNew_1, tmp0_other_with_cast.channelNew_1)) + return false; + if (!equals(this.ogvCard_1, tmp0_other_with_cast.ogvCard_1)) + return false; + if (!equals(this.bangumiRelates_1, tmp0_other_with_cast.bangumiRelates_1)) + return false; + if (!equals(this.findMore_1, tmp0_other_with_cast.findMore_1)) + return false; + if (!equals(this.esport_1, tmp0_other_with_cast.esport_1)) + return false; + if (!equals(this.authorNew_1, tmp0_other_with_cast.authorNew_1)) + return false; + if (!equals(this.tips_1, tmp0_other_with_cast.tips_1)) + return false; + if (!equals(this.cm_1, tmp0_other_with_cast.cm_1)) + return false; + if (!equals(this.pediaCard_1, tmp0_other_with_cast.pediaCard_1)) + return false; + if (!equals(this.ugcInline_1, tmp0_other_with_cast.ugcInline_1)) + return false; + if (!equals(this.liveInline_1, tmp0_other_with_cast.liveInline_1)) + return false; + if (!equals(this.topGame_1, tmp0_other_with_cast.topGame_1)) + return false; + if (!equals(this.sports_1, tmp0_other_with_cast.sports_1)) + return false; + if (!equals(this.pediaCardInline_1, tmp0_other_with_cast.pediaCardInline_1)) + return false; + if (!equals(this.recommendTips_1, tmp0_other_with_cast.recommendTips_1)) + return false; + if (!equals(this.collectionCard_1, tmp0_other_with_cast.collectionCard_1)) + return false; + if (!equals(this.ogvChannel_1, tmp0_other_with_cast.ogvChannel_1)) + return false; + if (!equals(this.ogvInline_1, tmp0_other_with_cast.ogvInline_1)) + return false; + if (!equals(this.author_1, tmp0_other_with_cast.author_1)) + return false; + if (!equals(this.av_1, tmp0_other_with_cast.av_1)) + return false; + if (!equals(this.bangumi_1, tmp0_other_with_cast.bangumi_1)) + return false; + if (!equals(this.esportsInline_1, tmp0_other_with_cast.esportsInline_1)) + return false; + if (!equals(this.hotBanner_1, tmp0_other_with_cast.hotBanner_1)) + return false; + if (!equals(this.subject_1, tmp0_other_with_cast.subject_1)) + return false; + if (!equals(this.dynamicNew_1, tmp0_other_with_cast.dynamicNew_1)) + return false; + if (!equals(this.articleNew_1, tmp0_other_with_cast.articleNew_1)) + return false; + if (!equals(this.pediaCardPic_1, tmp0_other_with_cast.pediaCardPic_1)) + return false; + if (!equals(this.npsCard_1, tmp0_other_with_cast.npsCard_1)) + return false; + if (!equals(this.chatGpt_1, tmp0_other_with_cast.chatGpt_1)) + return false; + if (!equals(this.hotRecommend_1, tmp0_other_with_cast.hotRecommend_1)) + return false; + if (!equals(this.liveMaster_1, tmp0_other_with_cast.liveMaster_1)) + return false; + if (!equals(this.liveRoomTitle_1, tmp0_other_with_cast.liveRoomTitle_1)) + return false; + if (!equals(this.liveRoom_1, tmp0_other_with_cast.liveRoom_1)) + return false; + if (!equals(this.cheese_1, tmp0_other_with_cast.cheese_1)) + return false; + if (!equals(this.relatedSearch_1, tmp0_other_with_cast.relatedSearch_1)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KItem_gxg85u_k$(seen1, seen2, uri, param, goto, linktype, position, trackid, special, article, banner, live, game, purchase, recommendWord, dynamic, suggestKeyword, specialGuide, comic, channelNew, ogvCard, bangumiRelates, findMore, esport, authorNew, tips, cm, pediaCard, ugcInline, liveInline, topGame, sports, pediaCardInline, recommendTips, collectionCard, ogvChannel, ogvInline, author, av, bangumi, esportsInline, hotBanner, subject, dynamicNew, articleNew, pediaCardPic, npsCard, chatGpt, hotRecommend, liveMaster, liveRoomTitle, liveRoom, cheese, relatedSearch, serializationConstructorMarker) { + Companion_getInstance_499(); + if (!!(!(0 === (0 & seen1)) | !(0 === (0 & seen2)))) { + var tmp$ret$0; + // Inline function 'kotlin.intArrayOf' call + var elements = new Int32Array([seen1, seen2]); + tmp$ret$0 = elements; + var tmp = tmp$ret$0; + var tmp$ret$1; + // Inline function 'kotlin.intArrayOf' call + var elements_0 = new Int32Array([0, 0]); + tmp$ret$1 = elements_0; + throwArrayMissingFieldException(tmp, tmp$ret$1, $serializer_getInstance_486().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.uri = ''; + else + $this.uri = uri; + if (0 === (seen1 & 2)) + $this.param = ''; + else + $this.param = param; + if (0 === (seen1 & 4)) + $this.goto = ''; + else + $this.goto = goto; + if (0 === (seen1 & 8)) + $this.linktype = ''; + else + $this.linktype = linktype; + if (0 === (seen1 & 16)) + $this.position = 0; + else + $this.position = position; + if (0 === (seen1 & 32)) + $this.trackid = ''; + else + $this.trackid = trackid; + if (0 === (seen1 & 64)) + $this.special_1 = null; + else + $this.special_1 = special; + if (0 === (seen1 & 128)) + $this.article_1 = null; + else + $this.article_1 = article; + if (0 === (seen1 & 256)) + $this.banner_1 = null; + else + $this.banner_1 = banner; + if (0 === (seen1 & 512)) + $this.live_1 = null; + else + $this.live_1 = live; + if (0 === (seen1 & 1024)) + $this.game_1 = null; + else + $this.game_1 = game; + if (0 === (seen1 & 2048)) + $this.purchase_1 = null; + else + $this.purchase_1 = purchase; + if (0 === (seen1 & 4096)) + $this.recommendWord_1 = null; + else + $this.recommendWord_1 = recommendWord; + if (0 === (seen1 & 8192)) + $this.dynamic_1 = null; + else + $this.dynamic_1 = dynamic; + if (0 === (seen1 & 16384)) + $this.suggestKeyword_1 = null; + else + $this.suggestKeyword_1 = suggestKeyword; + if (0 === (seen1 & 32768)) + $this.specialGuide_1 = null; + else + $this.specialGuide_1 = specialGuide; + if (0 === (seen1 & 65536)) + $this.comic_1 = null; + else + $this.comic_1 = comic; + if (0 === (seen1 & 131072)) + $this.channelNew_1 = null; + else + $this.channelNew_1 = channelNew; + if (0 === (seen1 & 262144)) + $this.ogvCard_1 = null; + else + $this.ogvCard_1 = ogvCard; + if (0 === (seen1 & 524288)) + $this.bangumiRelates_1 = null; + else + $this.bangumiRelates_1 = bangumiRelates; + if (0 === (seen1 & 1048576)) + $this.findMore_1 = null; + else + $this.findMore_1 = findMore; + if (0 === (seen1 & 2097152)) + $this.esport_1 = null; + else + $this.esport_1 = esport; + if (0 === (seen1 & 4194304)) + $this.authorNew_1 = null; + else + $this.authorNew_1 = authorNew; + if (0 === (seen1 & 8388608)) + $this.tips_1 = null; + else + $this.tips_1 = tips; + if (0 === (seen1 & 16777216)) + $this.cm_1 = null; + else + $this.cm_1 = cm; + if (0 === (seen1 & 33554432)) + $this.pediaCard_1 = null; + else + $this.pediaCard_1 = pediaCard; + if (0 === (seen1 & 67108864)) + $this.ugcInline_1 = null; + else + $this.ugcInline_1 = ugcInline; + if (0 === (seen1 & 134217728)) + $this.liveInline_1 = null; + else + $this.liveInline_1 = liveInline; + if (0 === (seen1 & 268435456)) + $this.topGame_1 = null; + else + $this.topGame_1 = topGame; + if (0 === (seen1 & 536870912)) + $this.sports_1 = null; + else + $this.sports_1 = sports; + if (0 === (seen1 & 1073741824)) + $this.pediaCardInline_1 = null; + else + $this.pediaCardInline_1 = pediaCardInline; + if (0 === (seen1 & -2147483648)) + $this.recommendTips_1 = null; + else + $this.recommendTips_1 = recommendTips; + if (0 === (seen2 & 1)) + $this.collectionCard_1 = null; + else + $this.collectionCard_1 = collectionCard; + if (0 === (seen2 & 2)) + $this.ogvChannel_1 = null; + else + $this.ogvChannel_1 = ogvChannel; + if (0 === (seen2 & 4)) + $this.ogvInline_1 = null; + else + $this.ogvInline_1 = ogvInline; + if (0 === (seen2 & 8)) + $this.author_1 = null; + else + $this.author_1 = author; + if (0 === (seen2 & 16)) + $this.av_1 = null; + else + $this.av_1 = av; + if (0 === (seen2 & 32)) + $this.bangumi_1 = null; + else + $this.bangumi_1 = bangumi; + if (0 === (seen2 & 64)) + $this.esportsInline_1 = null; + else + $this.esportsInline_1 = esportsInline; + if (0 === (seen2 & 128)) + $this.hotBanner_1 = null; + else + $this.hotBanner_1 = hotBanner; + if (0 === (seen2 & 256)) + $this.subject_1 = null; + else + $this.subject_1 = subject; + if (0 === (seen2 & 512)) + $this.dynamicNew_1 = null; + else + $this.dynamicNew_1 = dynamicNew; + if (0 === (seen2 & 1024)) + $this.articleNew_1 = null; + else + $this.articleNew_1 = articleNew; + if (0 === (seen2 & 2048)) + $this.pediaCardPic_1 = null; + else + $this.pediaCardPic_1 = pediaCardPic; + if (0 === (seen2 & 4096)) + $this.npsCard_1 = null; + else + $this.npsCard_1 = npsCard; + if (0 === (seen2 & 8192)) + $this.chatGpt_1 = null; + else + $this.chatGpt_1 = chatGpt; + if (0 === (seen2 & 16384)) + $this.hotRecommend_1 = null; + else + $this.hotRecommend_1 = hotRecommend; + if (0 === (seen2 & 32768)) + $this.liveMaster_1 = null; + else + $this.liveMaster_1 = liveMaster; + if (0 === (seen2 & 65536)) + $this.liveRoomTitle_1 = null; + else + $this.liveRoomTitle_1 = liveRoomTitle; + if (0 === (seen2 & 131072)) + $this.liveRoom_1 = null; + else + $this.liveRoom_1 = liveRoom; + if (0 === (seen2 & 262144)) + $this.cheese_1 = null; + else + $this.cheese_1 = cheese; + if (0 === (seen2 & 524288)) + $this.relatedSearch_1 = null; + else + $this.relatedSearch_1 = relatedSearch; + var tmp_0 = $this; + tmp_0.cardItemNumber$delegate_1 = lazy_0(KItem$_init_$lambda_qja2gd($this)); + return $this; + } + } + class Companion_500 { + constructor() { + Companion_instance_500 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, null, null, null, null, null, null, null, new ArrayListSerializer($serializer_getInstance_525()), null, null, null, null, null, null, null, null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.polymer.app.search.v1.SearchUpperCard'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_487(); + } + } + class $serializer_487 { + constructor() { + $serializer_instance_487 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KSearchUpperCard', this, 20); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('sign', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('fans', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('archives', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('liveStatus', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('roomid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('officialVerify', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('faceNftNew', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('nftFaceIcon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('avItems', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('isUp', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + tmp0_serialDesc.addElement_5pzumi_k$('attentions', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(13)); + tmp0_serialDesc.addElement_5pzumi_k$('level', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(14)); + tmp0_serialDesc.addElement_5pzumi_k$('isSeniorMember', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(15)); + tmp0_serialDesc.addElement_5pzumi_k$('vip', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(16)); + tmp0_serialDesc.addElement_5pzumi_k$('relation', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(17)); + tmp0_serialDesc.addElement_5pzumi_k$('liveLink', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(18)); + tmp0_serialDesc.addElement_5pzumi_k$('notice', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(19)); + tmp0_serialDesc.addElement_5pzumi_k$('avatarInfo', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(20)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_500().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), get_nullable($serializer_getInstance_604()), IntSerializer_getInstance(), get_nullable($serializer_getInstance_601()), tmp0_cached[10], BooleanSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), get_nullable($serializer_getInstance_602()), get_nullable($serializer_getInstance_567()), StringSerializer_getInstance(), get_nullable($serializer_getInstance_599()), get_nullable($serializer_getInstance_181())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = 0; + var tmp8_local4 = 0; + var tmp9_local5 = 0; + var tmp10_local6 = 0; + var tmp11_local7 = null; + var tmp12_local8 = 0; + var tmp13_local9 = null; + var tmp14_local10 = null; + var tmp15_local11 = false; + var tmp16_local12 = 0; + var tmp17_local13 = 0; + var tmp18_local14 = 0; + var tmp19_local15 = null; + var tmp20_local16 = null; + var tmp21_local17 = null; + var tmp22_local18 = null; + var tmp23_local19 = null; + var tmp24_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp25_cached = Companion_getInstance_500().$childSerializers_1; + if (tmp24_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp24_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp24_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp24_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp24_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp24_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp24_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp24_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp24_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_604(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp24_input.decodeIntElement_941u6a_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp24_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 9, $serializer_getInstance_601(), tmp13_local9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp24_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 10, tmp25_cached[10], tmp14_local10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp24_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + tmp16_local12 = tmp24_input.decodeIntElement_941u6a_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + tmp17_local13 = tmp24_input.decodeIntElement_941u6a_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + tmp18_local14 = tmp24_input.decodeIntElement_941u6a_k$(tmp0_desc, 14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + tmp19_local15 = tmp24_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 15, $serializer_getInstance_602(), tmp19_local15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + tmp20_local16 = tmp24_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 16, $serializer_getInstance_567(), tmp20_local16); + tmp3_bitMask0 = tmp3_bitMask0 | 65536; + tmp21_local17 = tmp24_input.decodeStringElement_3oenpg_k$(tmp0_desc, 17); + tmp3_bitMask0 = tmp3_bitMask0 | 131072; + tmp22_local18 = tmp24_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 18, $serializer_getInstance_599(), tmp22_local18); + tmp3_bitMask0 = tmp3_bitMask0 | 262144; + tmp23_local19 = tmp24_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 19, $serializer_getInstance_181(), tmp23_local19); + tmp3_bitMask0 = tmp3_bitMask0 | 524288; + } else + while (tmp1_flag) { + tmp2_index = tmp24_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp24_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp24_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp24_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp24_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp24_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp24_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp24_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp24_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_604(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp24_input.decodeIntElement_941u6a_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp24_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 9, $serializer_getInstance_601(), tmp13_local9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp24_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 10, tmp25_cached[10], tmp14_local10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp24_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + case 12: + tmp16_local12 = tmp24_input.decodeIntElement_941u6a_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + break; + case 13: + tmp17_local13 = tmp24_input.decodeIntElement_941u6a_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + break; + case 14: + tmp18_local14 = tmp24_input.decodeIntElement_941u6a_k$(tmp0_desc, 14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + break; + case 15: + tmp19_local15 = tmp24_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 15, $serializer_getInstance_602(), tmp19_local15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + break; + case 16: + tmp20_local16 = tmp24_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 16, $serializer_getInstance_567(), tmp20_local16); + tmp3_bitMask0 = tmp3_bitMask0 | 65536; + break; + case 17: + tmp21_local17 = tmp24_input.decodeStringElement_3oenpg_k$(tmp0_desc, 17); + tmp3_bitMask0 = tmp3_bitMask0 | 131072; + break; + case 18: + tmp22_local18 = tmp24_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 18, $serializer_getInstance_599(), tmp22_local18); + tmp3_bitMask0 = tmp3_bitMask0 | 262144; + break; + case 19: + tmp23_local19 = tmp24_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 19, $serializer_getInstance_181(), tmp23_local19); + tmp3_bitMask0 = tmp3_bitMask0 | 524288; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp24_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSearchUpperCard.new_com_bapis_bilibili_polymer_app_search_v1_KSearchUpperCard_gf8gjk_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, tmp18_local14, tmp19_local15, tmp20_local16, tmp21_local17, tmp22_local18, tmp23_local19, null); + } + serialize_9d1a3f_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_500().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.cover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.sign === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.sign); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.fans === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 3, value.fans); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.archives === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 4, value.archives); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.liveStatus === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 5, value.liveStatus); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.roomid === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 6, value.roomid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.officialVerify == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 7, $serializer_getInstance_604(), value.officialVerify); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.faceNftNew === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 8, value.faceNftNew); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.nftFaceIcon == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 9, $serializer_getInstance_601(), value.nftFaceIcon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !equals(value.avItems, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 10, tmp2_cached[10], value.avItems); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.isUp === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 11, value.isUp); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !(value.attentions === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 12, value.attentions); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 13) ? true : !(value.level === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 13, value.level); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 14) ? true : !(value.isSeniorMember === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 14, value.isSeniorMember); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 15) ? true : !(value.vip == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 15, $serializer_getInstance_602(), value.vip); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 16) ? true : !(value.relation == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 16, $serializer_getInstance_567(), value.relation); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 17) ? true : !(value.liveLink === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 17, value.liveLink); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 18) ? true : !(value.notice == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 18, $serializer_getInstance_599(), value.notice); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 19) ? true : !(value.avatarInfo == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 19, $serializer_getInstance_181(), value.avatarInfo); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_9d1a3f_k$(encoder, value instanceof KSearchUpperCard ? value : THROW_CCE()); + } + } + class KSearchUpperCard { + constructor(title, cover, sign, fans, archives, liveStatus, roomid, officialVerify, faceNftNew, nftFaceIcon, avItems, isUp, attentions, level, isSeniorMember, vip, relation, liveLink, notice, avatarInfo) { + Companion_getInstance_500(); + title = title === VOID ? '' : title; + cover = cover === VOID ? '' : cover; + sign = sign === VOID ? '' : sign; + fans = fans === VOID ? 0 : fans; + archives = archives === VOID ? 0 : archives; + liveStatus = liveStatus === VOID ? 0 : liveStatus; + roomid = roomid === VOID ? 0 : roomid; + officialVerify = officialVerify === VOID ? null : officialVerify; + faceNftNew = faceNftNew === VOID ? 0 : faceNftNew; + nftFaceIcon = nftFaceIcon === VOID ? null : nftFaceIcon; + avItems = avItems === VOID ? emptyList() : avItems; + isUp = isUp === VOID ? false : isUp; + attentions = attentions === VOID ? 0 : attentions; + level = level === VOID ? 0 : level; + isSeniorMember = isSeniorMember === VOID ? 0 : isSeniorMember; + vip = vip === VOID ? null : vip; + relation = relation === VOID ? null : relation; + liveLink = liveLink === VOID ? '' : liveLink; + notice = notice === VOID ? null : notice; + avatarInfo = avatarInfo === VOID ? null : avatarInfo; + this.title = title; + this.cover = cover; + this.sign = sign; + this.fans = fans; + this.archives = archives; + this.liveStatus = liveStatus; + this.roomid = roomid; + this.officialVerify = officialVerify; + this.faceNftNew = faceNftNew; + this.nftFaceIcon = nftFaceIcon; + this.avItems = avItems; + this.isUp = isUp; + this.attentions = attentions; + this.level = level; + this.isSeniorMember = isSeniorMember; + this.vip = vip; + this.relation = relation; + this.liveLink = liveLink; + this.notice = notice; + this.avatarInfo = avatarInfo; + } + get_title_iz32un_k$() { + return this.title; + } + get_cover_ipug0e_k$() { + return this.cover; + } + get_sign_woubd2_k$() { + return this.sign; + } + get_fans_wolurt_k$() { + return this.fans; + } + get_archives_aubvlm_k$() { + return this.archives; + } + get_liveStatus_5s32ih_k$() { + return this.liveStatus; + } + get_roomid_j3vdbz_k$() { + return this.roomid; + } + get_officialVerify_91wfgt_k$() { + return this.officialVerify; + } + get_faceNftNew_d87rsm_k$() { + return this.faceNftNew; + } + get_nftFaceIcon_cqxb87_k$() { + return this.nftFaceIcon; + } + get_avItems_9lr1we_k$() { + return this.avItems; + } + get_isUp_woo4ha_k$() { + return this.isUp; + } + get_attentions_bgcfxa_k$() { + return this.attentions; + } + get_level_ium7h7_k$() { + return this.level; + } + get_isSeniorMember_st26nx_k$() { + return this.isSeniorMember; + } + get_vip_18itzg_k$() { + return this.vip; + } + get_relation_u22tol_k$() { + return this.relation; + } + get_liveLink_8d0z01_k$() { + return this.liveLink; + } + get_notice_h7rzkx_k$() { + return this.notice; + } + get_avatarInfo_quh7f4_k$() { + return this.avatarInfo; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.cover; + } + component3_7eebsa_k$() { + return this.sign; + } + component4_7eebs9_k$() { + return this.fans; + } + component5_7eebs8_k$() { + return this.archives; + } + component6_7eebs7_k$() { + return this.liveStatus; + } + component7_7eebs6_k$() { + return this.roomid; + } + component8_7eebs5_k$() { + return this.officialVerify; + } + component9_7eebs4_k$() { + return this.faceNftNew; + } + component10_gazzfo_k$() { + return this.nftFaceIcon; + } + component11_gazzfn_k$() { + return this.avItems; + } + component12_gazzfm_k$() { + return this.isUp; + } + component13_gazzfl_k$() { + return this.attentions; + } + component14_gazzfk_k$() { + return this.level; + } + component15_gazzfj_k$() { + return this.isSeniorMember; + } + component16_gazzfi_k$() { + return this.vip; + } + component17_gazzfh_k$() { + return this.relation; + } + component18_gazzfg_k$() { + return this.liveLink; + } + component19_gazzff_k$() { + return this.notice; + } + component20_gazzet_k$() { + return this.avatarInfo; + } + copy_votrax_k$(title, cover, sign, fans, archives, liveStatus, roomid, officialVerify, faceNftNew, nftFaceIcon, avItems, isUp, attentions, level, isSeniorMember, vip, relation, liveLink, notice, avatarInfo) { + return new KSearchUpperCard(title, cover, sign, fans, archives, liveStatus, roomid, officialVerify, faceNftNew, nftFaceIcon, avItems, isUp, attentions, level, isSeniorMember, vip, relation, liveLink, notice, avatarInfo); + } + copy(title, cover, sign, fans, archives, liveStatus, roomid, officialVerify, faceNftNew, nftFaceIcon, avItems, isUp, attentions, level, isSeniorMember, vip, relation, liveLink, notice, avatarInfo, $super) { + title = title === VOID ? this.title : title; + cover = cover === VOID ? this.cover : cover; + sign = sign === VOID ? this.sign : sign; + fans = fans === VOID ? this.fans : fans; + archives = archives === VOID ? this.archives : archives; + liveStatus = liveStatus === VOID ? this.liveStatus : liveStatus; + roomid = roomid === VOID ? this.roomid : roomid; + officialVerify = officialVerify === VOID ? this.officialVerify : officialVerify; + faceNftNew = faceNftNew === VOID ? this.faceNftNew : faceNftNew; + nftFaceIcon = nftFaceIcon === VOID ? this.nftFaceIcon : nftFaceIcon; + avItems = avItems === VOID ? this.avItems : avItems; + isUp = isUp === VOID ? this.isUp : isUp; + attentions = attentions === VOID ? this.attentions : attentions; + level = level === VOID ? this.level : level; + isSeniorMember = isSeniorMember === VOID ? this.isSeniorMember : isSeniorMember; + vip = vip === VOID ? this.vip : vip; + relation = relation === VOID ? this.relation : relation; + liveLink = liveLink === VOID ? this.liveLink : liveLink; + notice = notice === VOID ? this.notice : notice; + avatarInfo = avatarInfo === VOID ? this.avatarInfo : avatarInfo; + return this.copy_votrax_k$(title, cover, sign, fans, archives, liveStatus, roomid, officialVerify, faceNftNew, nftFaceIcon, avItems, isUp, attentions, level, isSeniorMember, vip, relation, liveLink, notice, avatarInfo); + } + toString() { + return 'KSearchUpperCard(title=' + this.title + ', cover=' + this.cover + ', sign=' + this.sign + ', fans=' + this.fans + ', archives=' + this.archives + ', liveStatus=' + this.liveStatus + ', roomid=' + this.roomid + ', officialVerify=' + this.officialVerify + ', faceNftNew=' + this.faceNftNew + ', nftFaceIcon=' + this.nftFaceIcon + ', avItems=' + this.avItems + ', isUp=' + this.isUp + ', attentions=' + this.attentions + ', level=' + this.level + ', isSeniorMember=' + this.isSeniorMember + ', vip=' + this.vip + ', relation=' + this.relation + ', liveLink=' + this.liveLink + ', notice=' + this.notice + ', avatarInfo=' + this.avatarInfo + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.cover) | 0; + result = imul(result, 31) + getStringHashCode(this.sign) | 0; + result = imul(result, 31) + this.fans | 0; + result = imul(result, 31) + this.archives | 0; + result = imul(result, 31) + this.liveStatus | 0; + result = imul(result, 31) + this.roomid | 0; + result = imul(result, 31) + (this.officialVerify == null ? 0 : this.officialVerify.hashCode()) | 0; + result = imul(result, 31) + this.faceNftNew | 0; + result = imul(result, 31) + (this.nftFaceIcon == null ? 0 : this.nftFaceIcon.hashCode()) | 0; + result = imul(result, 31) + hashCode(this.avItems) | 0; + result = imul(result, 31) + getBooleanHashCode(this.isUp) | 0; + result = imul(result, 31) + this.attentions | 0; + result = imul(result, 31) + this.level | 0; + result = imul(result, 31) + this.isSeniorMember | 0; + result = imul(result, 31) + (this.vip == null ? 0 : this.vip.hashCode()) | 0; + result = imul(result, 31) + (this.relation == null ? 0 : this.relation.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.liveLink) | 0; + result = imul(result, 31) + (this.notice == null ? 0 : this.notice.hashCode()) | 0; + result = imul(result, 31) + (this.avatarInfo == null ? 0 : this.avatarInfo.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSearchUpperCard)) + return false; + var tmp0_other_with_cast = other instanceof KSearchUpperCard ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + if (!(this.sign === tmp0_other_with_cast.sign)) + return false; + if (!(this.fans === tmp0_other_with_cast.fans)) + return false; + if (!(this.archives === tmp0_other_with_cast.archives)) + return false; + if (!(this.liveStatus === tmp0_other_with_cast.liveStatus)) + return false; + if (!(this.roomid === tmp0_other_with_cast.roomid)) + return false; + if (!equals(this.officialVerify, tmp0_other_with_cast.officialVerify)) + return false; + if (!(this.faceNftNew === tmp0_other_with_cast.faceNftNew)) + return false; + if (!equals(this.nftFaceIcon, tmp0_other_with_cast.nftFaceIcon)) + return false; + if (!equals(this.avItems, tmp0_other_with_cast.avItems)) + return false; + if (!(this.isUp === tmp0_other_with_cast.isUp)) + return false; + if (!(this.attentions === tmp0_other_with_cast.attentions)) + return false; + if (!(this.level === tmp0_other_with_cast.level)) + return false; + if (!(this.isSeniorMember === tmp0_other_with_cast.isSeniorMember)) + return false; + if (!equals(this.vip, tmp0_other_with_cast.vip)) + return false; + if (!equals(this.relation, tmp0_other_with_cast.relation)) + return false; + if (!(this.liveLink === tmp0_other_with_cast.liveLink)) + return false; + if (!equals(this.notice, tmp0_other_with_cast.notice)) + return false; + if (!equals(this.avatarInfo, tmp0_other_with_cast.avatarInfo)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KSearchUpperCard_gf8gjk_k$(seen1, title, cover, sign, fans, archives, liveStatus, roomid, officialVerify, faceNftNew, nftFaceIcon, avItems, isUp, attentions, level, isSeniorMember, vip, relation, liveLink, notice, avatarInfo, serializationConstructorMarker) { + Companion_getInstance_500(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_487().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.cover = ''; + else + $this.cover = cover; + if (0 === (seen1 & 4)) + $this.sign = ''; + else + $this.sign = sign; + if (0 === (seen1 & 8)) + $this.fans = 0; + else + $this.fans = fans; + if (0 === (seen1 & 16)) + $this.archives = 0; + else + $this.archives = archives; + if (0 === (seen1 & 32)) + $this.liveStatus = 0; + else + $this.liveStatus = liveStatus; + if (0 === (seen1 & 64)) + $this.roomid = 0; + else + $this.roomid = roomid; + if (0 === (seen1 & 128)) + $this.officialVerify = null; + else + $this.officialVerify = officialVerify; + if (0 === (seen1 & 256)) + $this.faceNftNew = 0; + else + $this.faceNftNew = faceNftNew; + if (0 === (seen1 & 512)) + $this.nftFaceIcon = null; + else + $this.nftFaceIcon = nftFaceIcon; + if (0 === (seen1 & 1024)) + $this.avItems = emptyList(); + else + $this.avItems = avItems; + if (0 === (seen1 & 2048)) + $this.isUp = false; + else + $this.isUp = isUp; + if (0 === (seen1 & 4096)) + $this.attentions = 0; + else + $this.attentions = attentions; + if (0 === (seen1 & 8192)) + $this.level = 0; + else + $this.level = level; + if (0 === (seen1 & 16384)) + $this.isSeniorMember = 0; + else + $this.isSeniorMember = isSeniorMember; + if (0 === (seen1 & 32768)) + $this.vip = null; + else + $this.vip = vip; + if (0 === (seen1 & 65536)) + $this.relation = null; + else + $this.relation = relation; + if (0 === (seen1 & 131072)) + $this.liveLink = ''; + else + $this.liveLink = liveLink; + if (0 === (seen1 & 262144)) + $this.notice = null; + else + $this.notice = notice; + if (0 === (seen1 & 524288)) + $this.avatarInfo = null; + else + $this.avatarInfo = avatarInfo; + return $this; + } + } + class Companion_501 { + constructor() { + Companion_instance_501 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, new ArrayListSerializer($serializer_getInstance_606()), new ArrayListSerializer($serializer_getInstance_566()), null, null, null, null, null, null, null, new ArrayListSerializer($serializer_getInstance_606()), null, null, null, null, new ArrayListSerializer($serializer_getInstance_606()), new ArrayListSerializer($serializer_getInstance_606()), null, null, null, null, null, null, null, null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.polymer.app.search.v1.SearchVideoCard'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_488(); + } + } + class $serializer_488 { + constructor() { + $serializer_instance_488 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KSearchVideoCard', this, 28); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('rcmdReason', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('newRecTags', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('threePoint', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('share', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('cardBusinessBadge', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('play', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('danmaku', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('author', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('desc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('duration', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + tmp0_serialDesc.addElement_5pzumi_k$('badges', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(13)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('mid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(14)); + tmp0_serialDesc.addElement_5pzumi_k$('showCardDesc1', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(15)); + tmp0_serialDesc.addElement_5pzumi_k$('showCardDesc2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(16)); + tmp0_serialDesc.addElement_5pzumi_k$('fullText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(17)); + tmp0_serialDesc.addElement_5pzumi_k$('newRecTagsV2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(18)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('badgesV2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(19)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('feedback', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(20)); + tmp0_serialDesc.addElement_5pzumi_k$('timeLine', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(21)); + tmp0_serialDesc.addElement_5pzumi_k$('face', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(22)); + tmp0_serialDesc.addElement_5pzumi_k$('ptime', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(23)); + tmp0_serialDesc.addElement_5pzumi_k$('viewContent', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(24)); + tmp0_serialDesc.addElement_5pzumi_k$('iconType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(25)); + tmp0_serialDesc.addElement_5pzumi_k$('foldingTimeLine', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(26)); + tmp0_serialDesc.addElement_5pzumi_k$('chargingLabel', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(27)); + tmp0_serialDesc.addElement_5pzumi_k$('cardLayout', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(28)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_501().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_597()), tmp0_cached[3], tmp0_cached[4], get_nullable($serializer_getInstance_555()), get_nullable($serializer_getInstance_550()), IntSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), tmp0_cached[12], LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_605()), tmp0_cached[17], tmp0_cached[18], get_nullable($serializer_getInstance_610()), get_nullable($serializer_getInstance_489()), StringSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), get_nullable($serializer_getInstance_619()), get_nullable($serializer_getInstance_629()), get_nullable($serializer_getInstance_633())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = 0; + var tmp12_local8 = 0; + var tmp13_local9 = null; + var tmp14_local10 = null; + var tmp15_local11 = null; + var tmp16_local12 = null; + var tmp17_local13 = new Long(0, 0); + var tmp18_local14 = null; + var tmp19_local15 = null; + var tmp20_local16 = null; + var tmp21_local17 = null; + var tmp22_local18 = null; + var tmp23_local19 = null; + var tmp24_local20 = null; + var tmp25_local21 = null; + var tmp26_local22 = new Long(0, 0); + var tmp27_local23 = null; + var tmp28_local24 = 0; + var tmp29_local25 = null; + var tmp30_local26 = null; + var tmp31_local27 = null; + var tmp32_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp33_cached = Companion_getInstance_501().$childSerializers_1; + if (tmp32_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp32_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp32_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp32_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_597(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp32_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 3, tmp33_cached[3], tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp32_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 4, tmp33_cached[4], tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp32_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_555(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp32_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_550(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp32_input.decodeIntElement_941u6a_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp32_input.decodeIntElement_941u6a_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp32_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp32_input.decodeStringElement_3oenpg_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp32_input.decodeStringElement_3oenpg_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + tmp16_local12 = tmp32_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 12, tmp33_cached[12], tmp16_local12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + tmp17_local13 = tmp32_input.decodeLongElement_994anb_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + tmp18_local14 = tmp32_input.decodeStringElement_3oenpg_k$(tmp0_desc, 14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + tmp19_local15 = tmp32_input.decodeStringElement_3oenpg_k$(tmp0_desc, 15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + tmp20_local16 = tmp32_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 16, $serializer_getInstance_605(), tmp20_local16); + tmp3_bitMask0 = tmp3_bitMask0 | 65536; + tmp21_local17 = tmp32_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 17, tmp33_cached[17], tmp21_local17); + tmp3_bitMask0 = tmp3_bitMask0 | 131072; + tmp22_local18 = tmp32_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 18, tmp33_cached[18], tmp22_local18); + tmp3_bitMask0 = tmp3_bitMask0 | 262144; + tmp23_local19 = tmp32_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 19, $serializer_getInstance_610(), tmp23_local19); + tmp3_bitMask0 = tmp3_bitMask0 | 524288; + tmp24_local20 = tmp32_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 20, $serializer_getInstance_489(), tmp24_local20); + tmp3_bitMask0 = tmp3_bitMask0 | 1048576; + tmp25_local21 = tmp32_input.decodeStringElement_3oenpg_k$(tmp0_desc, 21); + tmp3_bitMask0 = tmp3_bitMask0 | 2097152; + tmp26_local22 = tmp32_input.decodeLongElement_994anb_k$(tmp0_desc, 22); + tmp3_bitMask0 = tmp3_bitMask0 | 4194304; + tmp27_local23 = tmp32_input.decodeStringElement_3oenpg_k$(tmp0_desc, 23); + tmp3_bitMask0 = tmp3_bitMask0 | 8388608; + tmp28_local24 = tmp32_input.decodeIntElement_941u6a_k$(tmp0_desc, 24); + tmp3_bitMask0 = tmp3_bitMask0 | 16777216; + tmp29_local25 = tmp32_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 25, $serializer_getInstance_619(), tmp29_local25); + tmp3_bitMask0 = tmp3_bitMask0 | 33554432; + tmp30_local26 = tmp32_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 26, $serializer_getInstance_629(), tmp30_local26); + tmp3_bitMask0 = tmp3_bitMask0 | 67108864; + tmp31_local27 = tmp32_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 27, $serializer_getInstance_633(), tmp31_local27); + tmp3_bitMask0 = tmp3_bitMask0 | 134217728; + } else + while (tmp1_flag) { + tmp2_index = tmp32_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp32_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp32_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp32_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_597(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp32_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 3, tmp33_cached[3], tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp32_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 4, tmp33_cached[4], tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp32_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_555(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp32_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_550(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp32_input.decodeIntElement_941u6a_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp32_input.decodeIntElement_941u6a_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp32_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp32_input.decodeStringElement_3oenpg_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp32_input.decodeStringElement_3oenpg_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + case 12: + tmp16_local12 = tmp32_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 12, tmp33_cached[12], tmp16_local12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + break; + case 13: + tmp17_local13 = tmp32_input.decodeLongElement_994anb_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + break; + case 14: + tmp18_local14 = tmp32_input.decodeStringElement_3oenpg_k$(tmp0_desc, 14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + break; + case 15: + tmp19_local15 = tmp32_input.decodeStringElement_3oenpg_k$(tmp0_desc, 15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + break; + case 16: + tmp20_local16 = tmp32_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 16, $serializer_getInstance_605(), tmp20_local16); + tmp3_bitMask0 = tmp3_bitMask0 | 65536; + break; + case 17: + tmp21_local17 = tmp32_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 17, tmp33_cached[17], tmp21_local17); + tmp3_bitMask0 = tmp3_bitMask0 | 131072; + break; + case 18: + tmp22_local18 = tmp32_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 18, tmp33_cached[18], tmp22_local18); + tmp3_bitMask0 = tmp3_bitMask0 | 262144; + break; + case 19: + tmp23_local19 = tmp32_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 19, $serializer_getInstance_610(), tmp23_local19); + tmp3_bitMask0 = tmp3_bitMask0 | 524288; + break; + case 20: + tmp24_local20 = tmp32_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 20, $serializer_getInstance_489(), tmp24_local20); + tmp3_bitMask0 = tmp3_bitMask0 | 1048576; + break; + case 21: + tmp25_local21 = tmp32_input.decodeStringElement_3oenpg_k$(tmp0_desc, 21); + tmp3_bitMask0 = tmp3_bitMask0 | 2097152; + break; + case 22: + tmp26_local22 = tmp32_input.decodeLongElement_994anb_k$(tmp0_desc, 22); + tmp3_bitMask0 = tmp3_bitMask0 | 4194304; + break; + case 23: + tmp27_local23 = tmp32_input.decodeStringElement_3oenpg_k$(tmp0_desc, 23); + tmp3_bitMask0 = tmp3_bitMask0 | 8388608; + break; + case 24: + tmp28_local24 = tmp32_input.decodeIntElement_941u6a_k$(tmp0_desc, 24); + tmp3_bitMask0 = tmp3_bitMask0 | 16777216; + break; + case 25: + tmp29_local25 = tmp32_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 25, $serializer_getInstance_619(), tmp29_local25); + tmp3_bitMask0 = tmp3_bitMask0 | 33554432; + break; + case 26: + tmp30_local26 = tmp32_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 26, $serializer_getInstance_629(), tmp30_local26); + tmp3_bitMask0 = tmp3_bitMask0 | 67108864; + break; + case 27: + tmp31_local27 = tmp32_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 27, $serializer_getInstance_633(), tmp31_local27); + tmp3_bitMask0 = tmp3_bitMask0 | 134217728; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp32_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSearchVideoCard.new_com_bapis_bilibili_polymer_app_search_v1_KSearchVideoCard_p7tsxn_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, tmp18_local14, tmp19_local15, tmp20_local16, tmp21_local17, tmp22_local18, tmp23_local19, tmp24_local20, tmp25_local21, tmp26_local22, tmp27_local23, tmp28_local24, tmp29_local25, tmp30_local26, tmp31_local27, null); + } + serialize_3h3lws_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_501().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.cover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.rcmdReason == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_597(), value.rcmdReason); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !equals(value.newRecTags, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 3, tmp2_cached[3], value.newRecTags); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !equals(value.threePoint, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 4, tmp2_cached[4], value.threePoint); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.share == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 5, $serializer_getInstance_555(), value.share); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.cardBusinessBadge == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 6, $serializer_getInstance_550(), value.cardBusinessBadge); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.play === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 7, value.play); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.danmaku === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 8, value.danmaku); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.author === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 9, value.author); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.desc === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 10, value.desc); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.duration === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 11, value.duration); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !equals(value.badges, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 12, tmp2_cached[12], value.badges); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 13) ? true : !value.mid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 13, value.mid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 14) ? true : !(value.showCardDesc1 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 14, value.showCardDesc1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 15) ? true : !(value.showCardDesc2 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 15, value.showCardDesc2); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 16) ? true : !(value.fullText == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 16, $serializer_getInstance_605(), value.fullText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 17) ? true : !equals(value.newRecTagsV2, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 17, tmp2_cached[17], value.newRecTagsV2); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 18) ? true : !equals(value.badgesV2, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 18, tmp2_cached[18], value.badgesV2); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 19) ? true : !(value.feedback == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 19, $serializer_getInstance_610(), value.feedback); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 20) ? true : !(value.timeLine == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 20, $serializer_getInstance_489(), value.timeLine); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 21) ? true : !(value.face === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 21, value.face); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 22) ? true : !value.ptime.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 22, value.ptime); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 23) ? true : !(value.viewContent === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 23, value.viewContent); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 24) ? true : !(value.iconType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 24, value.iconType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 25) ? true : !(value.foldingTimeLine == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 25, $serializer_getInstance_619(), value.foldingTimeLine); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 26) ? true : !(value.chargingLabel == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 26, $serializer_getInstance_629(), value.chargingLabel); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 27) ? true : !(value.cardLayout == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 27, $serializer_getInstance_633(), value.cardLayout); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_3h3lws_k$(encoder, value instanceof KSearchVideoCard ? value : THROW_CCE()); + } + } + class KSearchVideoCard { + constructor(title, cover, rcmdReason, newRecTags, threePoint, share, cardBusinessBadge, play, danmaku, author, desc, duration, badges, mid, showCardDesc1, showCardDesc2, fullText, newRecTagsV2, badgesV2, feedback, timeLine, face, ptime, viewContent, iconType, foldingTimeLine, chargingLabel, cardLayout) { + Companion_getInstance_501(); + title = title === VOID ? '' : title; + cover = cover === VOID ? '' : cover; + rcmdReason = rcmdReason === VOID ? null : rcmdReason; + newRecTags = newRecTags === VOID ? emptyList() : newRecTags; + threePoint = threePoint === VOID ? emptyList() : threePoint; + share = share === VOID ? null : share; + cardBusinessBadge = cardBusinessBadge === VOID ? null : cardBusinessBadge; + play = play === VOID ? 0 : play; + danmaku = danmaku === VOID ? 0 : danmaku; + author = author === VOID ? '' : author; + desc = desc === VOID ? '' : desc; + duration = duration === VOID ? '' : duration; + badges = badges === VOID ? emptyList() : badges; + mid = mid === VOID ? new Long(0, 0) : mid; + showCardDesc1 = showCardDesc1 === VOID ? '' : showCardDesc1; + showCardDesc2 = showCardDesc2 === VOID ? '' : showCardDesc2; + fullText = fullText === VOID ? null : fullText; + newRecTagsV2 = newRecTagsV2 === VOID ? emptyList() : newRecTagsV2; + badgesV2 = badgesV2 === VOID ? emptyList() : badgesV2; + feedback = feedback === VOID ? null : feedback; + timeLine = timeLine === VOID ? null : timeLine; + face = face === VOID ? '' : face; + ptime = ptime === VOID ? new Long(0, 0) : ptime; + viewContent = viewContent === VOID ? '' : viewContent; + iconType = iconType === VOID ? 0 : iconType; + foldingTimeLine = foldingTimeLine === VOID ? null : foldingTimeLine; + chargingLabel = chargingLabel === VOID ? null : chargingLabel; + cardLayout = cardLayout === VOID ? null : cardLayout; + this.title = title; + this.cover = cover; + this.rcmdReason = rcmdReason; + this.newRecTags = newRecTags; + this.threePoint = threePoint; + this.share = share; + this.cardBusinessBadge = cardBusinessBadge; + this.play = play; + this.danmaku = danmaku; + this.author = author; + this.desc = desc; + this.duration = duration; + this.badges = badges; + this.mid = mid; + this.showCardDesc1 = showCardDesc1; + this.showCardDesc2 = showCardDesc2; + this.fullText = fullText; + this.newRecTagsV2 = newRecTagsV2; + this.badgesV2 = badgesV2; + this.feedback = feedback; + this.timeLine = timeLine; + this.face = face; + this.ptime = ptime; + this.viewContent = viewContent; + this.iconType = iconType; + this.foldingTimeLine = foldingTimeLine; + this.chargingLabel = chargingLabel; + this.cardLayout = cardLayout; + } + get_title_iz32un_k$() { + return this.title; + } + get_cover_ipug0e_k$() { + return this.cover; + } + get_rcmdReason_lci9h1_k$() { + return this.rcmdReason; + } + get_newRecTags_7jw9le_k$() { + return this.newRecTags; + } + get_threePoint_wv0qvv_k$() { + return this.threePoint; + } + get_share_iyi9bq_k$() { + return this.share; + } + get_cardBusinessBadge_cbnpxy_k$() { + return this.cardBusinessBadge; + } + get_play_wosghp_k$() { + return this.play; + } + get_danmaku_p1pkiu_k$() { + return this.danmaku; + } + get_author_b5hnkk_k$() { + return this.author; + } + get_desc_woknve_k$() { + return this.desc; + } + get_duration_6a6kpp_k$() { + return this.duration; + } + get_badges_bb95bt_k$() { + return this.badges; + } + get_mid_18j0o1_k$() { + return this.mid; + } + get_showCardDesc1_gakd1y_k$() { + return this.showCardDesc1; + } + get_showCardDesc2_gakd1x_k$() { + return this.showCardDesc2; + } + get_fullText_9sh1az_k$() { + return this.fullText; + } + get_newRecTagsV2_cyukku_k$() { + return this.newRecTagsV2; + } + get_badgesV2_3oyw0l_k$() { + return this.badgesV2; + } + get_feedback_yyya42_k$() { + return this.feedback; + } + get_timeLine_4v820a_k$() { + return this.timeLine; + } + get_face_woluhy_k$() { + return this.face; + } + get_ptime_ix2p78_k$() { + return this.ptime; + } + get_viewContent_th0tkb_k$() { + return this.viewContent; + } + get_iconType_r0uasc_k$() { + return this.iconType; + } + get_foldingTimeLine_adczq1_k$() { + return this.foldingTimeLine; + } + get_chargingLabel_h4wyca_k$() { + return this.chargingLabel; + } + get_cardLayout_d0npjx_k$() { + return this.cardLayout; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.cover; + } + component3_7eebsa_k$() { + return this.rcmdReason; + } + component4_7eebs9_k$() { + return this.newRecTags; + } + component5_7eebs8_k$() { + return this.threePoint; + } + component6_7eebs7_k$() { + return this.share; + } + component7_7eebs6_k$() { + return this.cardBusinessBadge; + } + component8_7eebs5_k$() { + return this.play; + } + component9_7eebs4_k$() { + return this.danmaku; + } + component10_gazzfo_k$() { + return this.author; + } + component11_gazzfn_k$() { + return this.desc; + } + component12_gazzfm_k$() { + return this.duration; + } + component13_gazzfl_k$() { + return this.badges; + } + component14_gazzfk_k$() { + return this.mid; + } + component15_gazzfj_k$() { + return this.showCardDesc1; + } + component16_gazzfi_k$() { + return this.showCardDesc2; + } + component17_gazzfh_k$() { + return this.fullText; + } + component18_gazzfg_k$() { + return this.newRecTagsV2; + } + component19_gazzff_k$() { + return this.badgesV2; + } + component20_gazzet_k$() { + return this.feedback; + } + component21_gazzes_k$() { + return this.timeLine; + } + component22_gazzer_k$() { + return this.face; + } + component23_gazzeq_k$() { + return this.ptime; + } + component24_gazzep_k$() { + return this.viewContent; + } + component25_gazzeo_k$() { + return this.iconType; + } + component26_gazzen_k$() { + return this.foldingTimeLine; + } + component27_gazzem_k$() { + return this.chargingLabel; + } + component28_gazzel_k$() { + return this.cardLayout; + } + copy_cj3edg_k$(title, cover, rcmdReason, newRecTags, threePoint, share, cardBusinessBadge, play, danmaku, author, desc, duration, badges, mid, showCardDesc1, showCardDesc2, fullText, newRecTagsV2, badgesV2, feedback, timeLine, face, ptime, viewContent, iconType, foldingTimeLine, chargingLabel, cardLayout) { + return new KSearchVideoCard(title, cover, rcmdReason, newRecTags, threePoint, share, cardBusinessBadge, play, danmaku, author, desc, duration, badges, mid, showCardDesc1, showCardDesc2, fullText, newRecTagsV2, badgesV2, feedback, timeLine, face, ptime, viewContent, iconType, foldingTimeLine, chargingLabel, cardLayout); + } + copy(title, cover, rcmdReason, newRecTags, threePoint, share, cardBusinessBadge, play, danmaku, author, desc, duration, badges, mid, showCardDesc1, showCardDesc2, fullText, newRecTagsV2, badgesV2, feedback, timeLine, face, ptime, viewContent, iconType, foldingTimeLine, chargingLabel, cardLayout, $super) { + title = title === VOID ? this.title : title; + cover = cover === VOID ? this.cover : cover; + rcmdReason = rcmdReason === VOID ? this.rcmdReason : rcmdReason; + newRecTags = newRecTags === VOID ? this.newRecTags : newRecTags; + threePoint = threePoint === VOID ? this.threePoint : threePoint; + share = share === VOID ? this.share : share; + cardBusinessBadge = cardBusinessBadge === VOID ? this.cardBusinessBadge : cardBusinessBadge; + play = play === VOID ? this.play : play; + danmaku = danmaku === VOID ? this.danmaku : danmaku; + author = author === VOID ? this.author : author; + desc = desc === VOID ? this.desc : desc; + duration = duration === VOID ? this.duration : duration; + badges = badges === VOID ? this.badges : badges; + mid = mid === VOID ? this.mid : mid; + showCardDesc1 = showCardDesc1 === VOID ? this.showCardDesc1 : showCardDesc1; + showCardDesc2 = showCardDesc2 === VOID ? this.showCardDesc2 : showCardDesc2; + fullText = fullText === VOID ? this.fullText : fullText; + newRecTagsV2 = newRecTagsV2 === VOID ? this.newRecTagsV2 : newRecTagsV2; + badgesV2 = badgesV2 === VOID ? this.badgesV2 : badgesV2; + feedback = feedback === VOID ? this.feedback : feedback; + timeLine = timeLine === VOID ? this.timeLine : timeLine; + face = face === VOID ? this.face : face; + ptime = ptime === VOID ? this.ptime : ptime; + viewContent = viewContent === VOID ? this.viewContent : viewContent; + iconType = iconType === VOID ? this.iconType : iconType; + foldingTimeLine = foldingTimeLine === VOID ? this.foldingTimeLine : foldingTimeLine; + chargingLabel = chargingLabel === VOID ? this.chargingLabel : chargingLabel; + cardLayout = cardLayout === VOID ? this.cardLayout : cardLayout; + return this.copy_cj3edg_k$(title, cover, rcmdReason, newRecTags, threePoint, share, cardBusinessBadge, play, danmaku, author, desc, duration, badges, mid, showCardDesc1, showCardDesc2, fullText, newRecTagsV2, badgesV2, feedback, timeLine, face, ptime, viewContent, iconType, foldingTimeLine, chargingLabel, cardLayout); + } + toString() { + return 'KSearchVideoCard(title=' + this.title + ', cover=' + this.cover + ', rcmdReason=' + this.rcmdReason + ', newRecTags=' + this.newRecTags + ', threePoint=' + this.threePoint + ', share=' + this.share + ', cardBusinessBadge=' + this.cardBusinessBadge + ', play=' + this.play + ', danmaku=' + this.danmaku + ', author=' + this.author + ', desc=' + this.desc + ', duration=' + this.duration + ', badges=' + this.badges + ', mid=' + this.mid.toString() + ', showCardDesc1=' + this.showCardDesc1 + ', showCardDesc2=' + this.showCardDesc2 + ', fullText=' + this.fullText + ', newRecTagsV2=' + this.newRecTagsV2 + ', badgesV2=' + this.badgesV2 + ', feedback=' + this.feedback + ', timeLine=' + this.timeLine + ', face=' + this.face + ', ptime=' + this.ptime.toString() + ', viewContent=' + this.viewContent + ', iconType=' + this.iconType + ', foldingTimeLine=' + this.foldingTimeLine + ', chargingLabel=' + this.chargingLabel + ', cardLayout=' + this.cardLayout + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.cover) | 0; + result = imul(result, 31) + (this.rcmdReason == null ? 0 : this.rcmdReason.hashCode()) | 0; + result = imul(result, 31) + hashCode(this.newRecTags) | 0; + result = imul(result, 31) + hashCode(this.threePoint) | 0; + result = imul(result, 31) + (this.share == null ? 0 : this.share.hashCode()) | 0; + result = imul(result, 31) + (this.cardBusinessBadge == null ? 0 : this.cardBusinessBadge.hashCode()) | 0; + result = imul(result, 31) + this.play | 0; + result = imul(result, 31) + this.danmaku | 0; + result = imul(result, 31) + getStringHashCode(this.author) | 0; + result = imul(result, 31) + getStringHashCode(this.desc) | 0; + result = imul(result, 31) + getStringHashCode(this.duration) | 0; + result = imul(result, 31) + hashCode(this.badges) | 0; + result = imul(result, 31) + this.mid.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.showCardDesc1) | 0; + result = imul(result, 31) + getStringHashCode(this.showCardDesc2) | 0; + result = imul(result, 31) + (this.fullText == null ? 0 : this.fullText.hashCode()) | 0; + result = imul(result, 31) + hashCode(this.newRecTagsV2) | 0; + result = imul(result, 31) + hashCode(this.badgesV2) | 0; + result = imul(result, 31) + (this.feedback == null ? 0 : this.feedback.hashCode()) | 0; + result = imul(result, 31) + (this.timeLine == null ? 0 : this.timeLine.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.face) | 0; + result = imul(result, 31) + this.ptime.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.viewContent) | 0; + result = imul(result, 31) + this.iconType | 0; + result = imul(result, 31) + (this.foldingTimeLine == null ? 0 : this.foldingTimeLine.hashCode()) | 0; + result = imul(result, 31) + (this.chargingLabel == null ? 0 : this.chargingLabel.hashCode()) | 0; + result = imul(result, 31) + (this.cardLayout == null ? 0 : this.cardLayout.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSearchVideoCard)) + return false; + var tmp0_other_with_cast = other instanceof KSearchVideoCard ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + if (!equals(this.rcmdReason, tmp0_other_with_cast.rcmdReason)) + return false; + if (!equals(this.newRecTags, tmp0_other_with_cast.newRecTags)) + return false; + if (!equals(this.threePoint, tmp0_other_with_cast.threePoint)) + return false; + if (!equals(this.share, tmp0_other_with_cast.share)) + return false; + if (!equals(this.cardBusinessBadge, tmp0_other_with_cast.cardBusinessBadge)) + return false; + if (!(this.play === tmp0_other_with_cast.play)) + return false; + if (!(this.danmaku === tmp0_other_with_cast.danmaku)) + return false; + if (!(this.author === tmp0_other_with_cast.author)) + return false; + if (!(this.desc === tmp0_other_with_cast.desc)) + return false; + if (!(this.duration === tmp0_other_with_cast.duration)) + return false; + if (!equals(this.badges, tmp0_other_with_cast.badges)) + return false; + if (!this.mid.equals(tmp0_other_with_cast.mid)) + return false; + if (!(this.showCardDesc1 === tmp0_other_with_cast.showCardDesc1)) + return false; + if (!(this.showCardDesc2 === tmp0_other_with_cast.showCardDesc2)) + return false; + if (!equals(this.fullText, tmp0_other_with_cast.fullText)) + return false; + if (!equals(this.newRecTagsV2, tmp0_other_with_cast.newRecTagsV2)) + return false; + if (!equals(this.badgesV2, tmp0_other_with_cast.badgesV2)) + return false; + if (!equals(this.feedback, tmp0_other_with_cast.feedback)) + return false; + if (!equals(this.timeLine, tmp0_other_with_cast.timeLine)) + return false; + if (!(this.face === tmp0_other_with_cast.face)) + return false; + if (!this.ptime.equals(tmp0_other_with_cast.ptime)) + return false; + if (!(this.viewContent === tmp0_other_with_cast.viewContent)) + return false; + if (!(this.iconType === tmp0_other_with_cast.iconType)) + return false; + if (!equals(this.foldingTimeLine, tmp0_other_with_cast.foldingTimeLine)) + return false; + if (!equals(this.chargingLabel, tmp0_other_with_cast.chargingLabel)) + return false; + if (!equals(this.cardLayout, tmp0_other_with_cast.cardLayout)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KSearchVideoCard_p7tsxn_k$(seen1, title, cover, rcmdReason, newRecTags, threePoint, share, cardBusinessBadge, play, danmaku, author, desc, duration, badges, mid, showCardDesc1, showCardDesc2, fullText, newRecTagsV2, badgesV2, feedback, timeLine, face, ptime, viewContent, iconType, foldingTimeLine, chargingLabel, cardLayout, serializationConstructorMarker) { + Companion_getInstance_501(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_488().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.cover = ''; + else + $this.cover = cover; + if (0 === (seen1 & 4)) + $this.rcmdReason = null; + else + $this.rcmdReason = rcmdReason; + if (0 === (seen1 & 8)) + $this.newRecTags = emptyList(); + else + $this.newRecTags = newRecTags; + if (0 === (seen1 & 16)) + $this.threePoint = emptyList(); + else + $this.threePoint = threePoint; + if (0 === (seen1 & 32)) + $this.share = null; + else + $this.share = share; + if (0 === (seen1 & 64)) + $this.cardBusinessBadge = null; + else + $this.cardBusinessBadge = cardBusinessBadge; + if (0 === (seen1 & 128)) + $this.play = 0; + else + $this.play = play; + if (0 === (seen1 & 256)) + $this.danmaku = 0; + else + $this.danmaku = danmaku; + if (0 === (seen1 & 512)) + $this.author = ''; + else + $this.author = author; + if (0 === (seen1 & 1024)) + $this.desc = ''; + else + $this.desc = desc; + if (0 === (seen1 & 2048)) + $this.duration = ''; + else + $this.duration = duration; + if (0 === (seen1 & 4096)) + $this.badges = emptyList(); + else + $this.badges = badges; + if (0 === (seen1 & 8192)) + $this.mid = new Long(0, 0); + else + $this.mid = mid; + if (0 === (seen1 & 16384)) + $this.showCardDesc1 = ''; + else + $this.showCardDesc1 = showCardDesc1; + if (0 === (seen1 & 32768)) + $this.showCardDesc2 = ''; + else + $this.showCardDesc2 = showCardDesc2; + if (0 === (seen1 & 65536)) + $this.fullText = null; + else + $this.fullText = fullText; + if (0 === (seen1 & 131072)) + $this.newRecTagsV2 = emptyList(); + else + $this.newRecTagsV2 = newRecTagsV2; + if (0 === (seen1 & 262144)) + $this.badgesV2 = emptyList(); + else + $this.badgesV2 = badgesV2; + if (0 === (seen1 & 524288)) + $this.feedback = null; + else + $this.feedback = feedback; + if (0 === (seen1 & 1048576)) + $this.timeLine = null; + else + $this.timeLine = timeLine; + if (0 === (seen1 & 2097152)) + $this.face = ''; + else + $this.face = face; + if (0 === (seen1 & 4194304)) + $this.ptime = new Long(0, 0); + else + $this.ptime = ptime; + if (0 === (seen1 & 8388608)) + $this.viewContent = ''; + else + $this.viewContent = viewContent; + if (0 === (seen1 & 16777216)) + $this.iconType = 0; + else + $this.iconType = iconType; + if (0 === (seen1 & 33554432)) + $this.foldingTimeLine = null; + else + $this.foldingTimeLine = foldingTimeLine; + if (0 === (seen1 & 67108864)) + $this.chargingLabel = null; + else + $this.chargingLabel = chargingLabel; + if (0 === (seen1 & 134217728)) + $this.cardLayout = null; + else + $this.cardLayout = cardLayout; + return $this; + } + } + class Companion_502 { + constructor() { + Companion_instance_502 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, null, null, null, null, null, new ArrayListSerializer($serializer_getInstance_490())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.polymer.app.search.v1.TimeLine'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_489(); + } + } + class $serializer_489 { + constructor() { + $serializer_instance_489 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KTimeLine', this, 9); + tmp0_serialDesc.addElement_5pzumi_k$('icon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('color', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('segment', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('startSecond', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('endSecond', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('initPosition', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('items', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_502().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), tmp0_cached[8]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = 0; + var tmp7_local3 = 0; + var tmp8_local4 = new Long(0, 0); + var tmp9_local5 = new Long(0, 0); + var tmp10_local6 = 0; + var tmp11_local7 = 0; + var tmp12_local8 = null; + var tmp13_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp14_cached = Companion_getInstance_502().$childSerializers_1; + if (tmp13_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp13_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp13_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp13_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp13_input.decodeIntElement_941u6a_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp13_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 8, tmp14_cached[8], tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + } else + while (tmp1_flag) { + tmp2_index = tmp13_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp13_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp13_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp13_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp13_input.decodeIntElement_941u6a_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp13_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 8, tmp14_cached[8], tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp13_input.endStructure_1xqz0n_k$(tmp0_desc); + return KTimeLine.new_com_bapis_bilibili_polymer_app_search_v1_KTimeLine_8ieeh2_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, null); + } + serialize_avio7e_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_502().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.icon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.icon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.color === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.color); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.segment === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 3, value.segment); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !value.startSecond.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 4, value.startSecond); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !value.endSecond.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 5, value.endSecond); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.initPosition === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 6, value.initPosition); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.type === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 7, value.type); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !equals(value.items, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 8, tmp2_cached[8], value.items); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_avio7e_k$(encoder, value instanceof KTimeLine ? value : THROW_CCE()); + } + } + class KTimeLine { + constructor(icon, title, color, segment, startSecond, endSecond, initPosition, type, items) { + Companion_getInstance_502(); + icon = icon === VOID ? '' : icon; + title = title === VOID ? '' : title; + color = color === VOID ? 0 : color; + segment = segment === VOID ? 0 : segment; + startSecond = startSecond === VOID ? new Long(0, 0) : startSecond; + endSecond = endSecond === VOID ? new Long(0, 0) : endSecond; + initPosition = initPosition === VOID ? 0 : initPosition; + type = type === VOID ? 0 : type; + items = items === VOID ? emptyList() : items; + this.icon = icon; + this.title = title; + this.color = color; + this.segment = segment; + this.startSecond = startSecond; + this.endSecond = endSecond; + this.initPosition = initPosition; + this.type = type; + this.items = items; + } + get_icon_wont8i_k$() { + return this.icon; + } + get_title_iz32un_k$() { + return this.title; + } + get_color_ipu8u2_k$() { + return this.color; + } + get_segment_xwnoei_k$() { + return this.segment; + } + get_startSecond_h7da7n_k$() { + return this.startSecond; + } + get_endSecond_yw3afa_k$() { + return this.endSecond; + } + get_initPosition_gmorj2_k$() { + return this.initPosition; + } + get_type_wovaf7_k$() { + return this.type; + } + get_items_it823b_k$() { + return this.items; + } + component1_7eebsc_k$() { + return this.icon; + } + component2_7eebsb_k$() { + return this.title; + } + component3_7eebsa_k$() { + return this.color; + } + component4_7eebs9_k$() { + return this.segment; + } + component5_7eebs8_k$() { + return this.startSecond; + } + component6_7eebs7_k$() { + return this.endSecond; + } + component7_7eebs6_k$() { + return this.initPosition; + } + component8_7eebs5_k$() { + return this.type; + } + component9_7eebs4_k$() { + return this.items; + } + copy_vglzj2_k$(icon, title, color, segment, startSecond, endSecond, initPosition, type, items) { + return new KTimeLine(icon, title, color, segment, startSecond, endSecond, initPosition, type, items); + } + copy(icon, title, color, segment, startSecond, endSecond, initPosition, type, items, $super) { + icon = icon === VOID ? this.icon : icon; + title = title === VOID ? this.title : title; + color = color === VOID ? this.color : color; + segment = segment === VOID ? this.segment : segment; + startSecond = startSecond === VOID ? this.startSecond : startSecond; + endSecond = endSecond === VOID ? this.endSecond : endSecond; + initPosition = initPosition === VOID ? this.initPosition : initPosition; + type = type === VOID ? this.type : type; + items = items === VOID ? this.items : items; + return this.copy_vglzj2_k$(icon, title, color, segment, startSecond, endSecond, initPosition, type, items); + } + toString() { + return 'KTimeLine(icon=' + this.icon + ', title=' + this.title + ', color=' + this.color + ', segment=' + this.segment + ', startSecond=' + this.startSecond.toString() + ', endSecond=' + this.endSecond.toString() + ', initPosition=' + this.initPosition + ', type=' + this.type + ', items=' + this.items + ')'; + } + hashCode() { + var result = getStringHashCode(this.icon); + result = imul(result, 31) + getStringHashCode(this.title) | 0; + result = imul(result, 31) + this.color | 0; + result = imul(result, 31) + this.segment | 0; + result = imul(result, 31) + this.startSecond.hashCode() | 0; + result = imul(result, 31) + this.endSecond.hashCode() | 0; + result = imul(result, 31) + this.initPosition | 0; + result = imul(result, 31) + this.type | 0; + result = imul(result, 31) + hashCode(this.items) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KTimeLine)) + return false; + var tmp0_other_with_cast = other instanceof KTimeLine ? other : THROW_CCE(); + if (!(this.icon === tmp0_other_with_cast.icon)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.color === tmp0_other_with_cast.color)) + return false; + if (!(this.segment === tmp0_other_with_cast.segment)) + return false; + if (!this.startSecond.equals(tmp0_other_with_cast.startSecond)) + return false; + if (!this.endSecond.equals(tmp0_other_with_cast.endSecond)) + return false; + if (!(this.initPosition === tmp0_other_with_cast.initPosition)) + return false; + if (!(this.type === tmp0_other_with_cast.type)) + return false; + if (!equals(this.items, tmp0_other_with_cast.items)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KTimeLine_8ieeh2_k$(seen1, icon, title, color, segment, startSecond, endSecond, initPosition, type, items, serializationConstructorMarker) { + Companion_getInstance_502(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_489().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.icon = ''; + else + $this.icon = icon; + if (0 === (seen1 & 2)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 4)) + $this.color = 0; + else + $this.color = color; + if (0 === (seen1 & 8)) + $this.segment = 0; + else + $this.segment = segment; + if (0 === (seen1 & 16)) + $this.startSecond = new Long(0, 0); + else + $this.startSecond = startSecond; + if (0 === (seen1 & 32)) + $this.endSecond = new Long(0, 0); + else + $this.endSecond = endSecond; + if (0 === (seen1 & 64)) + $this.initPosition = 0; + else + $this.initPosition = initPosition; + if (0 === (seen1 & 128)) + $this.type = 0; + else + $this.type = type; + if (0 === (seen1 & 256)) + $this.items = emptyList(); + else + $this.items = items; + return $this; + } + } + class Companion_503 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.VideoTextItem'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_490(); + } + } + class $serializer_490 { + constructor() { + $serializer_instance_490 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KVideoTextItem', this, 6); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('text', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('startSecond', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('jumpUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('imgUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('videoTime', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = null; + var tmp6_local2 = new Long(0, 0); + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp10_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + } else + while (tmp1_flag) { + tmp2_index = tmp10_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp10_input.endStructure_1xqz0n_k$(tmp0_desc); + return KVideoTextItem.new_com_bapis_bilibili_polymer_app_search_v1_KVideoTextItem_iyn3l4_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); + } + serialize_a3tsic_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.type === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.type); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.text === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.text); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.startSecond.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.startSecond); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.jumpUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.jumpUrl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.imgUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.imgUrl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.videoTime === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.videoTime); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_a3tsic_k$(encoder, value instanceof KVideoTextItem ? value : THROW_CCE()); + } + } + class KVideoTextItem { + constructor(type, text, startSecond, jumpUrl, imgUrl, videoTime) { + Companion_instance_503; + type = type === VOID ? 0 : type; + text = text === VOID ? '' : text; + startSecond = startSecond === VOID ? new Long(0, 0) : startSecond; + jumpUrl = jumpUrl === VOID ? '' : jumpUrl; + imgUrl = imgUrl === VOID ? '' : imgUrl; + videoTime = videoTime === VOID ? '' : videoTime; + this.type = type; + this.text = text; + this.startSecond = startSecond; + this.jumpUrl = jumpUrl; + this.imgUrl = imgUrl; + this.videoTime = videoTime; + } + get_type_wovaf7_k$() { + return this.type; + } + get_text_wouvsm_k$() { + return this.text; + } + get_startSecond_h7da7n_k$() { + return this.startSecond; + } + get_jumpUrl_jhqiko_k$() { + return this.jumpUrl; + } + get_imgUrl_et7l4l_k$() { + return this.imgUrl; + } + get_videoTime_uk4h8f_k$() { + return this.videoTime; + } + component1_7eebsc_k$() { + return this.type; + } + component2_7eebsb_k$() { + return this.text; + } + component3_7eebsa_k$() { + return this.startSecond; + } + component4_7eebs9_k$() { + return this.jumpUrl; + } + component5_7eebs8_k$() { + return this.imgUrl; + } + component6_7eebs7_k$() { + return this.videoTime; + } + copy_6ex2gr_k$(type, text, startSecond, jumpUrl, imgUrl, videoTime) { + return new KVideoTextItem(type, text, startSecond, jumpUrl, imgUrl, videoTime); + } + copy(type, text, startSecond, jumpUrl, imgUrl, videoTime, $super) { + type = type === VOID ? this.type : type; + text = text === VOID ? this.text : text; + startSecond = startSecond === VOID ? this.startSecond : startSecond; + jumpUrl = jumpUrl === VOID ? this.jumpUrl : jumpUrl; + imgUrl = imgUrl === VOID ? this.imgUrl : imgUrl; + videoTime = videoTime === VOID ? this.videoTime : videoTime; + return this.copy_6ex2gr_k$(type, text, startSecond, jumpUrl, imgUrl, videoTime); + } + toString() { + return 'KVideoTextItem(type=' + this.type + ', text=' + this.text + ', startSecond=' + this.startSecond.toString() + ', jumpUrl=' + this.jumpUrl + ', imgUrl=' + this.imgUrl + ', videoTime=' + this.videoTime + ')'; + } + hashCode() { + var result = this.type; + result = imul(result, 31) + getStringHashCode(this.text) | 0; + result = imul(result, 31) + this.startSecond.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.jumpUrl) | 0; + result = imul(result, 31) + getStringHashCode(this.imgUrl) | 0; + result = imul(result, 31) + getStringHashCode(this.videoTime) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KVideoTextItem)) + return false; + var tmp0_other_with_cast = other instanceof KVideoTextItem ? other : THROW_CCE(); + if (!(this.type === tmp0_other_with_cast.type)) + return false; + if (!(this.text === tmp0_other_with_cast.text)) + return false; + if (!this.startSecond.equals(tmp0_other_with_cast.startSecond)) + return false; + if (!(this.jumpUrl === tmp0_other_with_cast.jumpUrl)) + return false; + if (!(this.imgUrl === tmp0_other_with_cast.imgUrl)) + return false; + if (!(this.videoTime === tmp0_other_with_cast.videoTime)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KVideoTextItem_iyn3l4_k$(seen1, type, text, startSecond, jumpUrl, imgUrl, videoTime, serializationConstructorMarker) { + Companion_instance_503; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_490().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.type = 0; + else + $this.type = type; + if (0 === (seen1 & 2)) + $this.text = ''; + else + $this.text = text; + if (0 === (seen1 & 4)) + $this.startSecond = new Long(0, 0); + else + $this.startSecond = startSecond; + if (0 === (seen1 & 8)) + $this.jumpUrl = ''; + else + $this.jumpUrl = jumpUrl; + if (0 === (seen1 & 16)) + $this.imgUrl = ''; + else + $this.imgUrl = imgUrl; + if (0 === (seen1 & 32)) + $this.videoTime = ''; + else + $this.videoTime = videoTime; + return $this; + } + } + class Companion_504 { + constructor() { + Companion_instance_504 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, new ArrayListSerializer($serializer_getInstance_556()), null, null, null, null, null, null, null, new ArrayListSerializer($serializer_getInstance_606()), null, new ArrayListSerializer($serializer_getInstance_591()), null, null, null, null, null, new ArrayListSerializer($serializer_getInstance_606()), null, null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.polymer.app.search.v1.SearchBangumiCard'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_491(); + } + } + class $serializer_491 { + constructor() { + $serializer_instance_491 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KSearchBangumiCard', this, 35); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('mediaType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('playState', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('area', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('style', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('styles', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('cv', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('rating', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('vote', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('target', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('staff', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + tmp0_serialDesc.addElement_5pzumi_k$('prompt', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(13)); + tmp0_serialDesc.addElement_5pzumi_k$('ptime', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(14)); + tmp0_serialDesc.addElement_5pzumi_k$('seasonTypeName', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(15)); + tmp0_serialDesc.addElement_5pzumi_k$('episodes', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(16)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('isSelection', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(17)); + tmp0_serialDesc.addElement_5pzumi_k$('isAtten', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(18)); + tmp0_serialDesc.addElement_5pzumi_k$('label', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(19)); + tmp0_serialDesc.addElement_5pzumi_k$('seasonId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(20)); + tmp0_serialDesc.addElement_5pzumi_k$('outName', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(21)); + tmp0_serialDesc.addElement_5pzumi_k$('outIcon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(22)); + tmp0_serialDesc.addElement_5pzumi_k$('outUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(23)); + tmp0_serialDesc.addElement_5pzumi_k$('badges', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(24)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('isOut', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(25)); + tmp0_serialDesc.addElement_5pzumi_k$('episodesNew', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(26)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('watchButton', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(27)); + tmp0_serialDesc.addElement_5pzumi_k$('selectionStyle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(28)); + tmp0_serialDesc.addElement_5pzumi_k$('checkMore', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(29)); + tmp0_serialDesc.addElement_5pzumi_k$('followButton', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(30)); + tmp0_serialDesc.addElement_5pzumi_k$('styleLabel', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(31)); + tmp0_serialDesc.addElement_5pzumi_k$('badgesV2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(32)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('stylesV2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(33)); + tmp0_serialDesc.addElement_5pzumi_k$('cardLayout', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(34)); + tmp0_serialDesc.addElement_5pzumi_k$('saleInfo', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(35)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_504().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), DoubleSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), tmp0_cached[15], IntSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), tmp0_cached[23], IntSerializer_getInstance(), tmp0_cached[25], get_nullable($serializer_getInstance_596()), StringSerializer_getInstance(), get_nullable($serializer_getInstance_592()), get_nullable($serializer_getInstance_594()), get_nullable($serializer_getInstance_606()), tmp0_cached[31], StringSerializer_getInstance(), get_nullable($serializer_getInstance_633()), get_nullable($serializer_getInstance_634())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_bitMask1 = 0; + var tmp5_local0 = null; + var tmp6_local1 = null; + var tmp7_local2 = 0; + var tmp8_local3 = 0; + var tmp9_local4 = null; + var tmp10_local5 = null; + var tmp11_local6 = null; + var tmp12_local7 = null; + var tmp13_local8 = 0.0; + var tmp14_local9 = 0; + var tmp15_local10 = null; + var tmp16_local11 = null; + var tmp17_local12 = null; + var tmp18_local13 = new Long(0, 0); + var tmp19_local14 = null; + var tmp20_local15 = null; + var tmp21_local16 = 0; + var tmp22_local17 = 0; + var tmp23_local18 = null; + var tmp24_local19 = new Long(0, 0); + var tmp25_local20 = null; + var tmp26_local21 = null; + var tmp27_local22 = null; + var tmp28_local23 = null; + var tmp29_local24 = 0; + var tmp30_local25 = null; + var tmp31_local26 = null; + var tmp32_local27 = null; + var tmp33_local28 = null; + var tmp34_local29 = null; + var tmp35_local30 = null; + var tmp36_local31 = null; + var tmp37_local32 = null; + var tmp38_local33 = null; + var tmp39_local34 = null; + var tmp40_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp41_cached = Companion_getInstance_504().$childSerializers_1; + if (tmp40_input.decodeSequentially_xlblqy_k$()) { + tmp5_local0 = tmp40_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp6_local1 = tmp40_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp7_local2 = tmp40_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp8_local3 = tmp40_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp9_local4 = tmp40_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp10_local5 = tmp40_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp11_local6 = tmp40_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp12_local7 = tmp40_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp13_local8 = tmp40_input.decodeDoubleElement_isei84_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp14_local9 = tmp40_input.decodeIntElement_941u6a_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp15_local10 = tmp40_input.decodeStringElement_3oenpg_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp16_local11 = tmp40_input.decodeStringElement_3oenpg_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + tmp17_local12 = tmp40_input.decodeStringElement_3oenpg_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + tmp18_local13 = tmp40_input.decodeLongElement_994anb_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + tmp19_local14 = tmp40_input.decodeStringElement_3oenpg_k$(tmp0_desc, 14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + tmp20_local15 = tmp40_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 15, tmp41_cached[15], tmp20_local15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + tmp21_local16 = tmp40_input.decodeIntElement_941u6a_k$(tmp0_desc, 16); + tmp3_bitMask0 = tmp3_bitMask0 | 65536; + tmp22_local17 = tmp40_input.decodeIntElement_941u6a_k$(tmp0_desc, 17); + tmp3_bitMask0 = tmp3_bitMask0 | 131072; + tmp23_local18 = tmp40_input.decodeStringElement_3oenpg_k$(tmp0_desc, 18); + tmp3_bitMask0 = tmp3_bitMask0 | 262144; + tmp24_local19 = tmp40_input.decodeLongElement_994anb_k$(tmp0_desc, 19); + tmp3_bitMask0 = tmp3_bitMask0 | 524288; + tmp25_local20 = tmp40_input.decodeStringElement_3oenpg_k$(tmp0_desc, 20); + tmp3_bitMask0 = tmp3_bitMask0 | 1048576; + tmp26_local21 = tmp40_input.decodeStringElement_3oenpg_k$(tmp0_desc, 21); + tmp3_bitMask0 = tmp3_bitMask0 | 2097152; + tmp27_local22 = tmp40_input.decodeStringElement_3oenpg_k$(tmp0_desc, 22); + tmp3_bitMask0 = tmp3_bitMask0 | 4194304; + tmp28_local23 = tmp40_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 23, tmp41_cached[23], tmp28_local23); + tmp3_bitMask0 = tmp3_bitMask0 | 8388608; + tmp29_local24 = tmp40_input.decodeIntElement_941u6a_k$(tmp0_desc, 24); + tmp3_bitMask0 = tmp3_bitMask0 | 16777216; + tmp30_local25 = tmp40_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 25, tmp41_cached[25], tmp30_local25); + tmp3_bitMask0 = tmp3_bitMask0 | 33554432; + tmp31_local26 = tmp40_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 26, $serializer_getInstance_596(), tmp31_local26); + tmp3_bitMask0 = tmp3_bitMask0 | 67108864; + tmp32_local27 = tmp40_input.decodeStringElement_3oenpg_k$(tmp0_desc, 27); + tmp3_bitMask0 = tmp3_bitMask0 | 134217728; + tmp33_local28 = tmp40_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 28, $serializer_getInstance_592(), tmp33_local28); + tmp3_bitMask0 = tmp3_bitMask0 | 268435456; + tmp34_local29 = tmp40_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 29, $serializer_getInstance_594(), tmp34_local29); + tmp3_bitMask0 = tmp3_bitMask0 | 536870912; + tmp35_local30 = tmp40_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 30, $serializer_getInstance_606(), tmp35_local30); + tmp3_bitMask0 = tmp3_bitMask0 | 1073741824; + tmp36_local31 = tmp40_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 31, tmp41_cached[31], tmp36_local31); + tmp3_bitMask0 = tmp3_bitMask0 | -2147483648; + tmp37_local32 = tmp40_input.decodeStringElement_3oenpg_k$(tmp0_desc, 32); + tmp4_bitMask1 = tmp4_bitMask1 | 1; + tmp38_local33 = tmp40_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 33, $serializer_getInstance_633(), tmp38_local33); + tmp4_bitMask1 = tmp4_bitMask1 | 2; + tmp39_local34 = tmp40_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 34, $serializer_getInstance_634(), tmp39_local34); + tmp4_bitMask1 = tmp4_bitMask1 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp40_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp5_local0 = tmp40_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp6_local1 = tmp40_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp7_local2 = tmp40_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp8_local3 = tmp40_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp9_local4 = tmp40_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp10_local5 = tmp40_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp11_local6 = tmp40_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp12_local7 = tmp40_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp13_local8 = tmp40_input.decodeDoubleElement_isei84_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp14_local9 = tmp40_input.decodeIntElement_941u6a_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp15_local10 = tmp40_input.decodeStringElement_3oenpg_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp16_local11 = tmp40_input.decodeStringElement_3oenpg_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + case 12: + tmp17_local12 = tmp40_input.decodeStringElement_3oenpg_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + break; + case 13: + tmp18_local13 = tmp40_input.decodeLongElement_994anb_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + break; + case 14: + tmp19_local14 = tmp40_input.decodeStringElement_3oenpg_k$(tmp0_desc, 14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + break; + case 15: + tmp20_local15 = tmp40_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 15, tmp41_cached[15], tmp20_local15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + break; + case 16: + tmp21_local16 = tmp40_input.decodeIntElement_941u6a_k$(tmp0_desc, 16); + tmp3_bitMask0 = tmp3_bitMask0 | 65536; + break; + case 17: + tmp22_local17 = tmp40_input.decodeIntElement_941u6a_k$(tmp0_desc, 17); + tmp3_bitMask0 = tmp3_bitMask0 | 131072; + break; + case 18: + tmp23_local18 = tmp40_input.decodeStringElement_3oenpg_k$(tmp0_desc, 18); + tmp3_bitMask0 = tmp3_bitMask0 | 262144; + break; + case 19: + tmp24_local19 = tmp40_input.decodeLongElement_994anb_k$(tmp0_desc, 19); + tmp3_bitMask0 = tmp3_bitMask0 | 524288; + break; + case 20: + tmp25_local20 = tmp40_input.decodeStringElement_3oenpg_k$(tmp0_desc, 20); + tmp3_bitMask0 = tmp3_bitMask0 | 1048576; + break; + case 21: + tmp26_local21 = tmp40_input.decodeStringElement_3oenpg_k$(tmp0_desc, 21); + tmp3_bitMask0 = tmp3_bitMask0 | 2097152; + break; + case 22: + tmp27_local22 = tmp40_input.decodeStringElement_3oenpg_k$(tmp0_desc, 22); + tmp3_bitMask0 = tmp3_bitMask0 | 4194304; + break; + case 23: + tmp28_local23 = tmp40_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 23, tmp41_cached[23], tmp28_local23); + tmp3_bitMask0 = tmp3_bitMask0 | 8388608; + break; + case 24: + tmp29_local24 = tmp40_input.decodeIntElement_941u6a_k$(tmp0_desc, 24); + tmp3_bitMask0 = tmp3_bitMask0 | 16777216; + break; + case 25: + tmp30_local25 = tmp40_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 25, tmp41_cached[25], tmp30_local25); + tmp3_bitMask0 = tmp3_bitMask0 | 33554432; + break; + case 26: + tmp31_local26 = tmp40_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 26, $serializer_getInstance_596(), tmp31_local26); + tmp3_bitMask0 = tmp3_bitMask0 | 67108864; + break; + case 27: + tmp32_local27 = tmp40_input.decodeStringElement_3oenpg_k$(tmp0_desc, 27); + tmp3_bitMask0 = tmp3_bitMask0 | 134217728; + break; + case 28: + tmp33_local28 = tmp40_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 28, $serializer_getInstance_592(), tmp33_local28); + tmp3_bitMask0 = tmp3_bitMask0 | 268435456; + break; + case 29: + tmp34_local29 = tmp40_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 29, $serializer_getInstance_594(), tmp34_local29); + tmp3_bitMask0 = tmp3_bitMask0 | 536870912; + break; + case 30: + tmp35_local30 = tmp40_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 30, $serializer_getInstance_606(), tmp35_local30); + tmp3_bitMask0 = tmp3_bitMask0 | 1073741824; + break; + case 31: + tmp36_local31 = tmp40_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 31, tmp41_cached[31], tmp36_local31); + tmp3_bitMask0 = tmp3_bitMask0 | -2147483648; + break; + case 32: + tmp37_local32 = tmp40_input.decodeStringElement_3oenpg_k$(tmp0_desc, 32); + tmp4_bitMask1 = tmp4_bitMask1 | 1; + break; + case 33: + tmp38_local33 = tmp40_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 33, $serializer_getInstance_633(), tmp38_local33); + tmp4_bitMask1 = tmp4_bitMask1 | 2; + break; + case 34: + tmp39_local34 = tmp40_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 34, $serializer_getInstance_634(), tmp39_local34); + tmp4_bitMask1 = tmp4_bitMask1 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp40_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSearchBangumiCard.new_com_bapis_bilibili_polymer_app_search_v1_KSearchBangumiCard_b29ie7_k$(tmp3_bitMask0, tmp4_bitMask1, tmp5_local0, tmp6_local1, tmp7_local2, tmp8_local3, tmp9_local4, tmp10_local5, tmp11_local6, tmp12_local7, tmp13_local8, tmp14_local9, tmp15_local10, tmp16_local11, tmp17_local12, tmp18_local13, tmp19_local14, tmp20_local15, tmp21_local16, tmp22_local17, tmp23_local18, tmp24_local19, tmp25_local20, tmp26_local21, tmp27_local22, tmp28_local23, tmp29_local24, tmp30_local25, tmp31_local26, tmp32_local27, tmp33_local28, tmp34_local29, tmp35_local30, tmp36_local31, tmp37_local32, tmp38_local33, tmp39_local34, null); + } + serialize_uqh2vi_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_504().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.cover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.mediaType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.mediaType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.playState === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 3, value.playState); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.area === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.area); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.style === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.style); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.styles === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.styles); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.cv === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.cv); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !equals(value.rating, 0.0)) { + tmp1_output.encodeDoubleElement_a6rqhe_k$(tmp0_desc, 8, value.rating); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.vote === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 9, value.vote); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.target === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 10, value.target); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.staff === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 11, value.staff); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !(value.prompt === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 12, value.prompt); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 13) ? true : !value.ptime.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 13, value.ptime); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 14) ? true : !(value.seasonTypeName === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 14, value.seasonTypeName); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 15) ? true : !equals(value.episodes, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 15, tmp2_cached[15], value.episodes); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 16) ? true : !(value.isSelection === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 16, value.isSelection); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 17) ? true : !(value.isAtten === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 17, value.isAtten); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 18) ? true : !(value.label === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 18, value.label); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 19) ? true : !value.seasonId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 19, value.seasonId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 20) ? true : !(value.outName === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 20, value.outName); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 21) ? true : !(value.outIcon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 21, value.outIcon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 22) ? true : !(value.outUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 22, value.outUrl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 23) ? true : !equals(value.badges, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 23, tmp2_cached[23], value.badges); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 24) ? true : !(value.isOut === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 24, value.isOut); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 25) ? true : !equals(value.episodesNew, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 25, tmp2_cached[25], value.episodesNew); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 26) ? true : !(value.watchButton == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 26, $serializer_getInstance_596(), value.watchButton); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 27) ? true : !(value.selectionStyle === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 27, value.selectionStyle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 28) ? true : !(value.checkMore == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 28, $serializer_getInstance_592(), value.checkMore); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 29) ? true : !(value.followButton == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 29, $serializer_getInstance_594(), value.followButton); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 30) ? true : !(value.styleLabel == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 30, $serializer_getInstance_606(), value.styleLabel); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 31) ? true : !equals(value.badgesV2, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 31, tmp2_cached[31], value.badgesV2); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 32) ? true : !(value.stylesV2 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 32, value.stylesV2); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 33) ? true : !(value.cardLayout == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 33, $serializer_getInstance_633(), value.cardLayout); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 34) ? true : !(value.saleInfo == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 34, $serializer_getInstance_634(), value.saleInfo); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_uqh2vi_k$(encoder, value instanceof KSearchBangumiCard ? value : THROW_CCE()); + } + } + class KSearchBangumiCard { + constructor(title, cover, mediaType, playState, area, style, styles, cv, rating, vote, target, staff, prompt, ptime, seasonTypeName, episodes, isSelection, isAtten, label, seasonId, outName, outIcon, outUrl, badges, isOut, episodesNew, watchButton, selectionStyle, checkMore, followButton, styleLabel, badgesV2, stylesV2, cardLayout, saleInfo) { + Companion_getInstance_504(); + title = title === VOID ? '' : title; + cover = cover === VOID ? '' : cover; + mediaType = mediaType === VOID ? 0 : mediaType; + playState = playState === VOID ? 0 : playState; + area = area === VOID ? '' : area; + style = style === VOID ? '' : style; + styles = styles === VOID ? '' : styles; + cv = cv === VOID ? '' : cv; + rating = rating === VOID ? 0.0 : rating; + vote = vote === VOID ? 0 : vote; + target = target === VOID ? '' : target; + staff = staff === VOID ? '' : staff; + prompt = prompt === VOID ? '' : prompt; + ptime = ptime === VOID ? new Long(0, 0) : ptime; + seasonTypeName = seasonTypeName === VOID ? '' : seasonTypeName; + episodes = episodes === VOID ? emptyList() : episodes; + isSelection = isSelection === VOID ? 0 : isSelection; + isAtten = isAtten === VOID ? 0 : isAtten; + label = label === VOID ? '' : label; + seasonId = seasonId === VOID ? new Long(0, 0) : seasonId; + outName = outName === VOID ? '' : outName; + outIcon = outIcon === VOID ? '' : outIcon; + outUrl = outUrl === VOID ? '' : outUrl; + badges = badges === VOID ? emptyList() : badges; + isOut = isOut === VOID ? 0 : isOut; + episodesNew = episodesNew === VOID ? emptyList() : episodesNew; + watchButton = watchButton === VOID ? null : watchButton; + selectionStyle = selectionStyle === VOID ? '' : selectionStyle; + checkMore = checkMore === VOID ? null : checkMore; + followButton = followButton === VOID ? null : followButton; + styleLabel = styleLabel === VOID ? null : styleLabel; + badgesV2 = badgesV2 === VOID ? emptyList() : badgesV2; + stylesV2 = stylesV2 === VOID ? '' : stylesV2; + cardLayout = cardLayout === VOID ? null : cardLayout; + saleInfo = saleInfo === VOID ? null : saleInfo; + this.title = title; + this.cover = cover; + this.mediaType = mediaType; + this.playState = playState; + this.area = area; + this.style = style; + this.styles = styles; + this.cv = cv; + this.rating = rating; + this.vote = vote; + this.target = target; + this.staff = staff; + this.prompt = prompt; + this.ptime = ptime; + this.seasonTypeName = seasonTypeName; + this.episodes = episodes; + this.isSelection = isSelection; + this.isAtten = isAtten; + this.label = label; + this.seasonId = seasonId; + this.outName = outName; + this.outIcon = outIcon; + this.outUrl = outUrl; + this.badges = badges; + this.isOut = isOut; + this.episodesNew = episodesNew; + this.watchButton = watchButton; + this.selectionStyle = selectionStyle; + this.checkMore = checkMore; + this.followButton = followButton; + this.styleLabel = styleLabel; + this.badgesV2 = badgesV2; + this.stylesV2 = stylesV2; + this.cardLayout = cardLayout; + this.saleInfo = saleInfo; + } + get_title_iz32un_k$() { + return this.title; + } + get_cover_ipug0e_k$() { + return this.cover; + } + get_mediaType_r47omj_k$() { + return this.mediaType; + } + get_playState_mpwkbw_k$() { + return this.playState; + } + get_area_woj07q_k$() { + return this.area; + } + get_style_iyqetk_k$() { + return this.style; + } + get_styles_jnubqj_k$() { + return this.styles; + } + get_cv_knto1w_k$() { + return this.cv; + } + get_rating_iw9d46_k$() { + return this.rating; + } + get_vote_wowd2r_k$() { + return this.vote; + } + get_target_juba8q_k$() { + return this.target; + } + get_staff_iypwvr_k$() { + return this.staff; + } + get_prompt_i7fii5_k$() { + return this.prompt; + } + get_ptime_ix2p78_k$() { + return this.ptime; + } + get_seasonTypeName_muwh69_k$() { + return this.seasonTypeName; + } + get_episodes_src2w1_k$() { + return this.episodes; + } + get_isSelection_505rtl_k$() { + return this.isSelection; + } + get_isAtten_z8s8wn_k$() { + return this.isAtten; + } + get_label_iuj8p7_k$() { + return this.label; + } + get_seasonId_h33f15_k$() { + return this.seasonId; + } + get_outName_h1m228_k$() { + return this.outName; + } + get_outIcon_h1p7gi_k$() { + return this.outIcon; + } + get_outUrl_hs3z2i_k$() { + return this.outUrl; + } + get_badges_bb95bt_k$() { + return this.badges; + } + get_isOut_it6yzf_k$() { + return this.isOut; + } + get_episodesNew_5usvy9_k$() { + return this.episodesNew; + } + get_watchButton_k0alx4_k$() { + return this.watchButton; + } + get_selectionStyle_1zs2uq_k$() { + return this.selectionStyle; + } + get_checkMore_f3pi38_k$() { + return this.checkMore; + } + get_followButton_s1wwb0_k$() { + return this.followButton; + } + get_styleLabel_i5mies_k$() { + return this.styleLabel; + } + get_badgesV2_3oyw0l_k$() { + return this.badgesV2; + } + get_stylesV2_18krt3_k$() { + return this.stylesV2; + } + get_cardLayout_d0npjx_k$() { + return this.cardLayout; + } + get_saleInfo_7jza6_k$() { + return this.saleInfo; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.cover; + } + component3_7eebsa_k$() { + return this.mediaType; + } + component4_7eebs9_k$() { + return this.playState; + } + component5_7eebs8_k$() { + return this.area; + } + component6_7eebs7_k$() { + return this.style; + } + component7_7eebs6_k$() { + return this.styles; + } + component8_7eebs5_k$() { + return this.cv; + } + component9_7eebs4_k$() { + return this.rating; + } + component10_gazzfo_k$() { + return this.vote; + } + component11_gazzfn_k$() { + return this.target; + } + component12_gazzfm_k$() { + return this.staff; + } + component13_gazzfl_k$() { + return this.prompt; + } + component14_gazzfk_k$() { + return this.ptime; + } + component15_gazzfj_k$() { + return this.seasonTypeName; + } + component16_gazzfi_k$() { + return this.episodes; + } + component17_gazzfh_k$() { + return this.isSelection; + } + component18_gazzfg_k$() { + return this.isAtten; + } + component19_gazzff_k$() { + return this.label; + } + component20_gazzet_k$() { + return this.seasonId; + } + component21_gazzes_k$() { + return this.outName; + } + component22_gazzer_k$() { + return this.outIcon; + } + component23_gazzeq_k$() { + return this.outUrl; + } + component24_gazzep_k$() { + return this.badges; + } + component25_gazzeo_k$() { + return this.isOut; + } + component26_gazzen_k$() { + return this.episodesNew; + } + component27_gazzem_k$() { + return this.watchButton; + } + component28_gazzel_k$() { + return this.selectionStyle; + } + component29_gazzek_k$() { + return this.checkMore; + } + component30_gazzdy_k$() { + return this.followButton; + } + component31_gazzdx_k$() { + return this.styleLabel; + } + component32_gazzdw_k$() { + return this.badgesV2; + } + component33_gazzdv_k$() { + return this.stylesV2; + } + component34_gazzdu_k$() { + return this.cardLayout; + } + component35_gazzdt_k$() { + return this.saleInfo; + } + copy_7br0ts_k$(title, cover, mediaType, playState, area, style, styles, cv, rating, vote, target, staff, prompt, ptime, seasonTypeName, episodes, isSelection, isAtten, label, seasonId, outName, outIcon, outUrl, badges, isOut, episodesNew, watchButton, selectionStyle, checkMore, followButton, styleLabel, badgesV2, stylesV2, cardLayout, saleInfo) { + return new KSearchBangumiCard(title, cover, mediaType, playState, area, style, styles, cv, rating, vote, target, staff, prompt, ptime, seasonTypeName, episodes, isSelection, isAtten, label, seasonId, outName, outIcon, outUrl, badges, isOut, episodesNew, watchButton, selectionStyle, checkMore, followButton, styleLabel, badgesV2, stylesV2, cardLayout, saleInfo); + } + copy(title, cover, mediaType, playState, area, style, styles, cv, rating, vote, target, staff, prompt, ptime, seasonTypeName, episodes, isSelection, isAtten, label, seasonId, outName, outIcon, outUrl, badges, isOut, episodesNew, watchButton, selectionStyle, checkMore, followButton, styleLabel, badgesV2, stylesV2, cardLayout, saleInfo, $super) { + title = title === VOID ? this.title : title; + cover = cover === VOID ? this.cover : cover; + mediaType = mediaType === VOID ? this.mediaType : mediaType; + playState = playState === VOID ? this.playState : playState; + area = area === VOID ? this.area : area; + style = style === VOID ? this.style : style; + styles = styles === VOID ? this.styles : styles; + cv = cv === VOID ? this.cv : cv; + rating = rating === VOID ? this.rating : rating; + vote = vote === VOID ? this.vote : vote; + target = target === VOID ? this.target : target; + staff = staff === VOID ? this.staff : staff; + prompt = prompt === VOID ? this.prompt : prompt; + ptime = ptime === VOID ? this.ptime : ptime; + seasonTypeName = seasonTypeName === VOID ? this.seasonTypeName : seasonTypeName; + episodes = episodes === VOID ? this.episodes : episodes; + isSelection = isSelection === VOID ? this.isSelection : isSelection; + isAtten = isAtten === VOID ? this.isAtten : isAtten; + label = label === VOID ? this.label : label; + seasonId = seasonId === VOID ? this.seasonId : seasonId; + outName = outName === VOID ? this.outName : outName; + outIcon = outIcon === VOID ? this.outIcon : outIcon; + outUrl = outUrl === VOID ? this.outUrl : outUrl; + badges = badges === VOID ? this.badges : badges; + isOut = isOut === VOID ? this.isOut : isOut; + episodesNew = episodesNew === VOID ? this.episodesNew : episodesNew; + watchButton = watchButton === VOID ? this.watchButton : watchButton; + selectionStyle = selectionStyle === VOID ? this.selectionStyle : selectionStyle; + checkMore = checkMore === VOID ? this.checkMore : checkMore; + followButton = followButton === VOID ? this.followButton : followButton; + styleLabel = styleLabel === VOID ? this.styleLabel : styleLabel; + badgesV2 = badgesV2 === VOID ? this.badgesV2 : badgesV2; + stylesV2 = stylesV2 === VOID ? this.stylesV2 : stylesV2; + cardLayout = cardLayout === VOID ? this.cardLayout : cardLayout; + saleInfo = saleInfo === VOID ? this.saleInfo : saleInfo; + return this.copy_7br0ts_k$(title, cover, mediaType, playState, area, style, styles, cv, rating, vote, target, staff, prompt, ptime, seasonTypeName, episodes, isSelection, isAtten, label, seasonId, outName, outIcon, outUrl, badges, isOut, episodesNew, watchButton, selectionStyle, checkMore, followButton, styleLabel, badgesV2, stylesV2, cardLayout, saleInfo); + } + toString() { + return 'KSearchBangumiCard(title=' + this.title + ', cover=' + this.cover + ', mediaType=' + this.mediaType + ', playState=' + this.playState + ', area=' + this.area + ', style=' + this.style + ', styles=' + this.styles + ', cv=' + this.cv + ', rating=' + this.rating + ', vote=' + this.vote + ', target=' + this.target + ', staff=' + this.staff + ', prompt=' + this.prompt + ', ptime=' + this.ptime.toString() + ', seasonTypeName=' + this.seasonTypeName + ', episodes=' + this.episodes + ', isSelection=' + this.isSelection + ', isAtten=' + this.isAtten + ', label=' + this.label + ', seasonId=' + this.seasonId.toString() + ', outName=' + this.outName + ', outIcon=' + this.outIcon + ', outUrl=' + this.outUrl + ', badges=' + this.badges + ', isOut=' + this.isOut + ', episodesNew=' + this.episodesNew + ', watchButton=' + this.watchButton + ', selectionStyle=' + this.selectionStyle + ', checkMore=' + this.checkMore + ', followButton=' + this.followButton + ', styleLabel=' + this.styleLabel + ', badgesV2=' + this.badgesV2 + ', stylesV2=' + this.stylesV2 + ', cardLayout=' + this.cardLayout + ', saleInfo=' + this.saleInfo + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.cover) | 0; + result = imul(result, 31) + this.mediaType | 0; + result = imul(result, 31) + this.playState | 0; + result = imul(result, 31) + getStringHashCode(this.area) | 0; + result = imul(result, 31) + getStringHashCode(this.style) | 0; + result = imul(result, 31) + getStringHashCode(this.styles) | 0; + result = imul(result, 31) + getStringHashCode(this.cv) | 0; + result = imul(result, 31) + getNumberHashCode(this.rating) | 0; + result = imul(result, 31) + this.vote | 0; + result = imul(result, 31) + getStringHashCode(this.target) | 0; + result = imul(result, 31) + getStringHashCode(this.staff) | 0; + result = imul(result, 31) + getStringHashCode(this.prompt) | 0; + result = imul(result, 31) + this.ptime.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.seasonTypeName) | 0; + result = imul(result, 31) + hashCode(this.episodes) | 0; + result = imul(result, 31) + this.isSelection | 0; + result = imul(result, 31) + this.isAtten | 0; + result = imul(result, 31) + getStringHashCode(this.label) | 0; + result = imul(result, 31) + this.seasonId.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.outName) | 0; + result = imul(result, 31) + getStringHashCode(this.outIcon) | 0; + result = imul(result, 31) + getStringHashCode(this.outUrl) | 0; + result = imul(result, 31) + hashCode(this.badges) | 0; + result = imul(result, 31) + this.isOut | 0; + result = imul(result, 31) + hashCode(this.episodesNew) | 0; + result = imul(result, 31) + (this.watchButton == null ? 0 : this.watchButton.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.selectionStyle) | 0; + result = imul(result, 31) + (this.checkMore == null ? 0 : this.checkMore.hashCode()) | 0; + result = imul(result, 31) + (this.followButton == null ? 0 : this.followButton.hashCode()) | 0; + result = imul(result, 31) + (this.styleLabel == null ? 0 : this.styleLabel.hashCode()) | 0; + result = imul(result, 31) + hashCode(this.badgesV2) | 0; + result = imul(result, 31) + getStringHashCode(this.stylesV2) | 0; + result = imul(result, 31) + (this.cardLayout == null ? 0 : this.cardLayout.hashCode()) | 0; + result = imul(result, 31) + (this.saleInfo == null ? 0 : this.saleInfo.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSearchBangumiCard)) + return false; + var tmp0_other_with_cast = other instanceof KSearchBangumiCard ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + if (!(this.mediaType === tmp0_other_with_cast.mediaType)) + return false; + if (!(this.playState === tmp0_other_with_cast.playState)) + return false; + if (!(this.area === tmp0_other_with_cast.area)) + return false; + if (!(this.style === tmp0_other_with_cast.style)) + return false; + if (!(this.styles === tmp0_other_with_cast.styles)) + return false; + if (!(this.cv === tmp0_other_with_cast.cv)) + return false; + if (!equals(this.rating, tmp0_other_with_cast.rating)) + return false; + if (!(this.vote === tmp0_other_with_cast.vote)) + return false; + if (!(this.target === tmp0_other_with_cast.target)) + return false; + if (!(this.staff === tmp0_other_with_cast.staff)) + return false; + if (!(this.prompt === tmp0_other_with_cast.prompt)) + return false; + if (!this.ptime.equals(tmp0_other_with_cast.ptime)) + return false; + if (!(this.seasonTypeName === tmp0_other_with_cast.seasonTypeName)) + return false; + if (!equals(this.episodes, tmp0_other_with_cast.episodes)) + return false; + if (!(this.isSelection === tmp0_other_with_cast.isSelection)) + return false; + if (!(this.isAtten === tmp0_other_with_cast.isAtten)) + return false; + if (!(this.label === tmp0_other_with_cast.label)) + return false; + if (!this.seasonId.equals(tmp0_other_with_cast.seasonId)) + return false; + if (!(this.outName === tmp0_other_with_cast.outName)) + return false; + if (!(this.outIcon === tmp0_other_with_cast.outIcon)) + return false; + if (!(this.outUrl === tmp0_other_with_cast.outUrl)) + return false; + if (!equals(this.badges, tmp0_other_with_cast.badges)) + return false; + if (!(this.isOut === tmp0_other_with_cast.isOut)) + return false; + if (!equals(this.episodesNew, tmp0_other_with_cast.episodesNew)) + return false; + if (!equals(this.watchButton, tmp0_other_with_cast.watchButton)) + return false; + if (!(this.selectionStyle === tmp0_other_with_cast.selectionStyle)) + return false; + if (!equals(this.checkMore, tmp0_other_with_cast.checkMore)) + return false; + if (!equals(this.followButton, tmp0_other_with_cast.followButton)) + return false; + if (!equals(this.styleLabel, tmp0_other_with_cast.styleLabel)) + return false; + if (!equals(this.badgesV2, tmp0_other_with_cast.badgesV2)) + return false; + if (!(this.stylesV2 === tmp0_other_with_cast.stylesV2)) + return false; + if (!equals(this.cardLayout, tmp0_other_with_cast.cardLayout)) + return false; + if (!equals(this.saleInfo, tmp0_other_with_cast.saleInfo)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KSearchBangumiCard_b29ie7_k$(seen1, seen2, title, cover, mediaType, playState, area, style, styles, cv, rating, vote, target, staff, prompt, ptime, seasonTypeName, episodes, isSelection, isAtten, label, seasonId, outName, outIcon, outUrl, badges, isOut, episodesNew, watchButton, selectionStyle, checkMore, followButton, styleLabel, badgesV2, stylesV2, cardLayout, saleInfo, serializationConstructorMarker) { + Companion_getInstance_504(); + if (!!(!(0 === (0 & seen1)) | !(0 === (0 & seen2)))) { + var tmp$ret$0; + // Inline function 'kotlin.intArrayOf' call + var elements = new Int32Array([seen1, seen2]); + tmp$ret$0 = elements; + var tmp = tmp$ret$0; + var tmp$ret$1; + // Inline function 'kotlin.intArrayOf' call + var elements_0 = new Int32Array([0, 0]); + tmp$ret$1 = elements_0; + throwArrayMissingFieldException(tmp, tmp$ret$1, $serializer_getInstance_491().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.cover = ''; + else + $this.cover = cover; + if (0 === (seen1 & 4)) + $this.mediaType = 0; + else + $this.mediaType = mediaType; + if (0 === (seen1 & 8)) + $this.playState = 0; + else + $this.playState = playState; + if (0 === (seen1 & 16)) + $this.area = ''; + else + $this.area = area; + if (0 === (seen1 & 32)) + $this.style = ''; + else + $this.style = style; + if (0 === (seen1 & 64)) + $this.styles = ''; + else + $this.styles = styles; + if (0 === (seen1 & 128)) + $this.cv = ''; + else + $this.cv = cv; + if (0 === (seen1 & 256)) + $this.rating = 0.0; + else + $this.rating = rating; + if (0 === (seen1 & 512)) + $this.vote = 0; + else + $this.vote = vote; + if (0 === (seen1 & 1024)) + $this.target = ''; + else + $this.target = target; + if (0 === (seen1 & 2048)) + $this.staff = ''; + else + $this.staff = staff; + if (0 === (seen1 & 4096)) + $this.prompt = ''; + else + $this.prompt = prompt; + if (0 === (seen1 & 8192)) + $this.ptime = new Long(0, 0); + else + $this.ptime = ptime; + if (0 === (seen1 & 16384)) + $this.seasonTypeName = ''; + else + $this.seasonTypeName = seasonTypeName; + if (0 === (seen1 & 32768)) + $this.episodes = emptyList(); + else + $this.episodes = episodes; + if (0 === (seen1 & 65536)) + $this.isSelection = 0; + else + $this.isSelection = isSelection; + if (0 === (seen1 & 131072)) + $this.isAtten = 0; + else + $this.isAtten = isAtten; + if (0 === (seen1 & 262144)) + $this.label = ''; + else + $this.label = label; + if (0 === (seen1 & 524288)) + $this.seasonId = new Long(0, 0); + else + $this.seasonId = seasonId; + if (0 === (seen1 & 1048576)) + $this.outName = ''; + else + $this.outName = outName; + if (0 === (seen1 & 2097152)) + $this.outIcon = ''; + else + $this.outIcon = outIcon; + if (0 === (seen1 & 4194304)) + $this.outUrl = ''; + else + $this.outUrl = outUrl; + if (0 === (seen1 & 8388608)) + $this.badges = emptyList(); + else + $this.badges = badges; + if (0 === (seen1 & 16777216)) + $this.isOut = 0; + else + $this.isOut = isOut; + if (0 === (seen1 & 33554432)) + $this.episodesNew = emptyList(); + else + $this.episodesNew = episodesNew; + if (0 === (seen1 & 67108864)) + $this.watchButton = null; + else + $this.watchButton = watchButton; + if (0 === (seen1 & 134217728)) + $this.selectionStyle = ''; + else + $this.selectionStyle = selectionStyle; + if (0 === (seen1 & 268435456)) + $this.checkMore = null; + else + $this.checkMore = checkMore; + if (0 === (seen1 & 536870912)) + $this.followButton = null; + else + $this.followButton = followButton; + if (0 === (seen1 & 1073741824)) + $this.styleLabel = null; + else + $this.styleLabel = styleLabel; + if (0 === (seen1 & -2147483648)) + $this.badgesV2 = emptyList(); + else + $this.badgesV2 = badgesV2; + if (0 === (seen2 & 1)) + $this.stylesV2 = ''; + else + $this.stylesV2 = stylesV2; + if (0 === (seen2 & 2)) + $this.cardLayout = null; + else + $this.cardLayout = cardLayout; + if (0 === (seen2 & 4)) + $this.saleInfo = null; + else + $this.saleInfo = saleInfo; + return $this; + } + } + class Companion_505 { + constructor() { + Companion_instance_505 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, new ArrayListSerializer($serializer_getInstance_606()), null, null, null, new ArrayListSerializer($serializer_getInstance_606()), null, null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.polymer.app.search.v1.SearchSpecialCard'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_492(); + } + } + class $serializer_492 { + constructor() { + $serializer_instance_492 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KSearchSpecialCard', this, 10); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('newRecTags', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('cardBusinessBadge', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('badge', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('desc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('newRecTagsV2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('rcmdReason', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('reserveInfo', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('cardLayout', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_505().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), tmp0_cached[2], get_nullable($serializer_getInstance_550()), StringSerializer_getInstance(), StringSerializer_getInstance(), tmp0_cached[6], get_nullable($serializer_getInstance_597()), get_nullable($serializer_getInstance_614()), get_nullable($serializer_getInstance_633())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_local8 = null; + var tmp13_local9 = null; + var tmp14_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp15_cached = Companion_getInstance_505().$childSerializers_1; + if (tmp14_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp14_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp15_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_550(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp14_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 6, tmp15_cached[6], tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_597(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_614(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 9, $serializer_getInstance_633(), tmp13_local9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + } else + while (tmp1_flag) { + tmp2_index = tmp14_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp14_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp15_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_550(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp14_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 6, tmp15_cached[6], tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_597(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_614(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 9, $serializer_getInstance_633(), tmp13_local9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp14_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSearchSpecialCard.new_com_bapis_bilibili_polymer_app_search_v1_KSearchSpecialCard_n5kpv5_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, null); + } + serialize_d5xga6_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_505().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.cover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !equals(value.newRecTags, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 2, tmp2_cached[2], value.newRecTags); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.cardBusinessBadge == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_550(), value.cardBusinessBadge); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.badge === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.badge); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.desc === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.desc); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !equals(value.newRecTagsV2, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 6, tmp2_cached[6], value.newRecTagsV2); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.rcmdReason == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 7, $serializer_getInstance_597(), value.rcmdReason); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.reserveInfo == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 8, $serializer_getInstance_614(), value.reserveInfo); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.cardLayout == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 9, $serializer_getInstance_633(), value.cardLayout); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_d5xga6_k$(encoder, value instanceof KSearchSpecialCard ? value : THROW_CCE()); + } + } + class KSearchSpecialCard { + constructor(title, cover, newRecTags, cardBusinessBadge, badge, desc, newRecTagsV2, rcmdReason, reserveInfo, cardLayout) { + Companion_getInstance_505(); + title = title === VOID ? '' : title; + cover = cover === VOID ? '' : cover; + newRecTags = newRecTags === VOID ? emptyList() : newRecTags; + cardBusinessBadge = cardBusinessBadge === VOID ? null : cardBusinessBadge; + badge = badge === VOID ? '' : badge; + desc = desc === VOID ? '' : desc; + newRecTagsV2 = newRecTagsV2 === VOID ? emptyList() : newRecTagsV2; + rcmdReason = rcmdReason === VOID ? null : rcmdReason; + reserveInfo = reserveInfo === VOID ? null : reserveInfo; + cardLayout = cardLayout === VOID ? null : cardLayout; + this.title = title; + this.cover = cover; + this.newRecTags = newRecTags; + this.cardBusinessBadge = cardBusinessBadge; + this.badge = badge; + this.desc = desc; + this.newRecTagsV2 = newRecTagsV2; + this.rcmdReason = rcmdReason; + this.reserveInfo = reserveInfo; + this.cardLayout = cardLayout; + } + get_title_iz32un_k$() { + return this.title; + } + get_cover_ipug0e_k$() { + return this.cover; + } + get_newRecTags_7jw9le_k$() { + return this.newRecTags; + } + get_cardBusinessBadge_cbnpxy_k$() { + return this.cardBusinessBadge; + } + get_badge_ip1cai_k$() { + return this.badge; + } + get_desc_woknve_k$() { + return this.desc; + } + get_newRecTagsV2_cyukku_k$() { + return this.newRecTagsV2; + } + get_rcmdReason_lci9h1_k$() { + return this.rcmdReason; + } + get_reserveInfo_bwz7bz_k$() { + return this.reserveInfo; + } + get_cardLayout_d0npjx_k$() { + return this.cardLayout; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.cover; + } + component3_7eebsa_k$() { + return this.newRecTags; + } + component4_7eebs9_k$() { + return this.cardBusinessBadge; + } + component5_7eebs8_k$() { + return this.badge; + } + component6_7eebs7_k$() { + return this.desc; + } + component7_7eebs6_k$() { + return this.newRecTagsV2; + } + component8_7eebs5_k$() { + return this.rcmdReason; + } + component9_7eebs4_k$() { + return this.reserveInfo; + } + component10_gazzfo_k$() { + return this.cardLayout; + } + copy_sw46lu_k$(title, cover, newRecTags, cardBusinessBadge, badge, desc, newRecTagsV2, rcmdReason, reserveInfo, cardLayout) { + return new KSearchSpecialCard(title, cover, newRecTags, cardBusinessBadge, badge, desc, newRecTagsV2, rcmdReason, reserveInfo, cardLayout); + } + copy(title, cover, newRecTags, cardBusinessBadge, badge, desc, newRecTagsV2, rcmdReason, reserveInfo, cardLayout, $super) { + title = title === VOID ? this.title : title; + cover = cover === VOID ? this.cover : cover; + newRecTags = newRecTags === VOID ? this.newRecTags : newRecTags; + cardBusinessBadge = cardBusinessBadge === VOID ? this.cardBusinessBadge : cardBusinessBadge; + badge = badge === VOID ? this.badge : badge; + desc = desc === VOID ? this.desc : desc; + newRecTagsV2 = newRecTagsV2 === VOID ? this.newRecTagsV2 : newRecTagsV2; + rcmdReason = rcmdReason === VOID ? this.rcmdReason : rcmdReason; + reserveInfo = reserveInfo === VOID ? this.reserveInfo : reserveInfo; + cardLayout = cardLayout === VOID ? this.cardLayout : cardLayout; + return this.copy_sw46lu_k$(title, cover, newRecTags, cardBusinessBadge, badge, desc, newRecTagsV2, rcmdReason, reserveInfo, cardLayout); + } + toString() { + return 'KSearchSpecialCard(title=' + this.title + ', cover=' + this.cover + ', newRecTags=' + this.newRecTags + ', cardBusinessBadge=' + this.cardBusinessBadge + ', badge=' + this.badge + ', desc=' + this.desc + ', newRecTagsV2=' + this.newRecTagsV2 + ', rcmdReason=' + this.rcmdReason + ', reserveInfo=' + this.reserveInfo + ', cardLayout=' + this.cardLayout + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.cover) | 0; + result = imul(result, 31) + hashCode(this.newRecTags) | 0; + result = imul(result, 31) + (this.cardBusinessBadge == null ? 0 : this.cardBusinessBadge.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.badge) | 0; + result = imul(result, 31) + getStringHashCode(this.desc) | 0; + result = imul(result, 31) + hashCode(this.newRecTagsV2) | 0; + result = imul(result, 31) + (this.rcmdReason == null ? 0 : this.rcmdReason.hashCode()) | 0; + result = imul(result, 31) + (this.reserveInfo == null ? 0 : this.reserveInfo.hashCode()) | 0; + result = imul(result, 31) + (this.cardLayout == null ? 0 : this.cardLayout.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSearchSpecialCard)) + return false; + var tmp0_other_with_cast = other instanceof KSearchSpecialCard ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + if (!equals(this.newRecTags, tmp0_other_with_cast.newRecTags)) + return false; + if (!equals(this.cardBusinessBadge, tmp0_other_with_cast.cardBusinessBadge)) + return false; + if (!(this.badge === tmp0_other_with_cast.badge)) + return false; + if (!(this.desc === tmp0_other_with_cast.desc)) + return false; + if (!equals(this.newRecTagsV2, tmp0_other_with_cast.newRecTagsV2)) + return false; + if (!equals(this.rcmdReason, tmp0_other_with_cast.rcmdReason)) + return false; + if (!equals(this.reserveInfo, tmp0_other_with_cast.reserveInfo)) + return false; + if (!equals(this.cardLayout, tmp0_other_with_cast.cardLayout)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KSearchSpecialCard_n5kpv5_k$(seen1, title, cover, newRecTags, cardBusinessBadge, badge, desc, newRecTagsV2, rcmdReason, reserveInfo, cardLayout, serializationConstructorMarker) { + Companion_getInstance_505(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_492().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.cover = ''; + else + $this.cover = cover; + if (0 === (seen1 & 4)) + $this.newRecTags = emptyList(); + else + $this.newRecTags = newRecTags; + if (0 === (seen1 & 8)) + $this.cardBusinessBadge = null; + else + $this.cardBusinessBadge = cardBusinessBadge; + if (0 === (seen1 & 16)) + $this.badge = ''; + else + $this.badge = badge; + if (0 === (seen1 & 32)) + $this.desc = ''; + else + $this.desc = desc; + if (0 === (seen1 & 64)) + $this.newRecTagsV2 = emptyList(); + else + $this.newRecTagsV2 = newRecTagsV2; + if (0 === (seen1 & 128)) + $this.rcmdReason = null; + else + $this.rcmdReason = rcmdReason; + if (0 === (seen1 & 256)) + $this.reserveInfo = null; + else + $this.reserveInfo = reserveInfo; + if (0 === (seen1 & 512)) + $this.cardLayout = null; + else + $this.cardLayout = cardLayout; + return $this; + } + } + class Companion_506 { + constructor() { + Companion_instance_506 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, null, null, new ArrayListSerializer(StringSerializer_getInstance()), null, null, null, null, null, null, null, null, null, null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.polymer.app.search.v1.SearchArticleCard'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_493(); + } + } + class $serializer_493 { + constructor() { + $serializer_instance_493 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KSearchArticleCard', this, 17); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('play', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('like', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('reply', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('imageUrls', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('author', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('templateId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('id', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('mid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('name', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('desc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + tmp0_serialDesc.addElement_5pzumi_k$('view', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(13)); + tmp0_serialDesc.addElement_5pzumi_k$('pubTime', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(14)); + tmp0_serialDesc.addElement_5pzumi_k$('badge', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(15)); + tmp0_serialDesc.addElement_5pzumi_k$('feedback', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(16)); + tmp0_serialDesc.addElement_5pzumi_k$('cardLayout', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(17)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_506().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), tmp0_cached[5], StringSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_610()), get_nullable($serializer_getInstance_633())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = 0; + var tmp7_local3 = 0; + var tmp8_local4 = 0; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = 0; + var tmp12_local8 = new Long(0, 0); + var tmp13_local9 = new Long(0, 0); + var tmp14_local10 = null; + var tmp15_local11 = null; + var tmp16_local12 = 0; + var tmp17_local13 = null; + var tmp18_local14 = null; + var tmp19_local15 = null; + var tmp20_local16 = null; + var tmp21_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp22_cached = Companion_getInstance_506().$childSerializers_1; + if (tmp21_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp21_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp21_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp21_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp21_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 5, tmp22_cached[5], tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp21_input.decodeIntElement_941u6a_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp21_input.decodeLongElement_994anb_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp21_input.decodeLongElement_994anb_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + tmp16_local12 = tmp21_input.decodeIntElement_941u6a_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + tmp17_local13 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + tmp18_local14 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + tmp19_local15 = tmp21_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 15, $serializer_getInstance_610(), tmp19_local15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + tmp20_local16 = tmp21_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 16, $serializer_getInstance_633(), tmp20_local16); + tmp3_bitMask0 = tmp3_bitMask0 | 65536; + } else + while (tmp1_flag) { + tmp2_index = tmp21_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp21_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp21_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp21_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp21_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 5, tmp22_cached[5], tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp21_input.decodeIntElement_941u6a_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp21_input.decodeLongElement_994anb_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp21_input.decodeLongElement_994anb_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + case 12: + tmp16_local12 = tmp21_input.decodeIntElement_941u6a_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + break; + case 13: + tmp17_local13 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + break; + case 14: + tmp18_local14 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + break; + case 15: + tmp19_local15 = tmp21_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 15, $serializer_getInstance_610(), tmp19_local15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + break; + case 16: + tmp20_local16 = tmp21_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 16, $serializer_getInstance_633(), tmp20_local16); + tmp3_bitMask0 = tmp3_bitMask0 | 65536; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp21_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSearchArticleCard.new_com_bapis_bilibili_polymer_app_search_v1_KSearchArticleCard_vsdym_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, tmp18_local14, tmp19_local15, tmp20_local16, null); + } + serialize_28ikvj_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_506().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.cover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.play === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.play); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.like === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 3, value.like); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.reply === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 4, value.reply); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !equals(value.imageUrls, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 5, tmp2_cached[5], value.imageUrls); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.author === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.author); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.templateId === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 7, value.templateId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !value.id.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 8, value.id); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !value.mid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 9, value.mid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.name === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 10, value.name); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.desc === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 11, value.desc); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !(value.view === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 12, value.view); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 13) ? true : !(value.pubTime === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 13, value.pubTime); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 14) ? true : !(value.badge === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 14, value.badge); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 15) ? true : !(value.feedback == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 15, $serializer_getInstance_610(), value.feedback); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 16) ? true : !(value.cardLayout == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 16, $serializer_getInstance_633(), value.cardLayout); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_28ikvj_k$(encoder, value instanceof KSearchArticleCard ? value : THROW_CCE()); + } + } + class KSearchArticleCard { + constructor(title, cover, play, like, reply, imageUrls, author, templateId, id, mid, name, desc, view, pubTime, badge, feedback, cardLayout) { + Companion_getInstance_506(); + title = title === VOID ? '' : title; + cover = cover === VOID ? '' : cover; + play = play === VOID ? 0 : play; + like = like === VOID ? 0 : like; + reply = reply === VOID ? 0 : reply; + imageUrls = imageUrls === VOID ? emptyList() : imageUrls; + author = author === VOID ? '' : author; + templateId = templateId === VOID ? 0 : templateId; + id = id === VOID ? new Long(0, 0) : id; + mid = mid === VOID ? new Long(0, 0) : mid; + name = name === VOID ? '' : name; + desc = desc === VOID ? '' : desc; + view = view === VOID ? 0 : view; + pubTime = pubTime === VOID ? '' : pubTime; + badge = badge === VOID ? '' : badge; + feedback = feedback === VOID ? null : feedback; + cardLayout = cardLayout === VOID ? null : cardLayout; + this.title = title; + this.cover = cover; + this.play = play; + this.like = like; + this.reply = reply; + this.imageUrls = imageUrls; + this.author = author; + this.templateId = templateId; + this.id = id; + this.mid = mid; + this.name = name; + this.desc = desc; + this.view = view; + this.pubTime = pubTime; + this.badge = badge; + this.feedback = feedback; + this.cardLayout = cardLayout; + } + get_title_iz32un_k$() { + return this.title; + } + get_cover_ipug0e_k$() { + return this.cover; + } + get_play_wosghp_k$() { + return this.play; + } + get_like_wopujk_k$() { + return this.like; + } + get_reply_ixwurl_k$() { + return this.reply; + } + get_imageUrls_60ag96_k$() { + return this.imageUrls; + } + get_author_b5hnkk_k$() { + return this.author; + } + get_templateId_1e4eda_k$() { + return this.templateId; + } + get_id_kntnx8_k$() { + return this.id; + } + get_mid_18j0o1_k$() { + return this.mid; + } + get_name_woqyms_k$() { + return this.name; + } + get_desc_woknve_k$() { + return this.desc; + } + get_view_wow8a6_k$() { + return this.view; + } + get_pubTime_2n02nz_k$() { + return this.pubTime; + } + get_badge_ip1cai_k$() { + return this.badge; + } + get_feedback_yyya42_k$() { + return this.feedback; + } + get_cardLayout_d0npjx_k$() { + return this.cardLayout; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.cover; + } + component3_7eebsa_k$() { + return this.play; + } + component4_7eebs9_k$() { + return this.like; + } + component5_7eebs8_k$() { + return this.reply; + } + component6_7eebs7_k$() { + return this.imageUrls; + } + component7_7eebs6_k$() { + return this.author; + } + component8_7eebs5_k$() { + return this.templateId; + } + component9_7eebs4_k$() { + return this.id; + } + component10_gazzfo_k$() { + return this.mid; + } + component11_gazzfn_k$() { + return this.name; + } + component12_gazzfm_k$() { + return this.desc; + } + component13_gazzfl_k$() { + return this.view; + } + component14_gazzfk_k$() { + return this.pubTime; + } + component15_gazzfj_k$() { + return this.badge; + } + component16_gazzfi_k$() { + return this.feedback; + } + component17_gazzfh_k$() { + return this.cardLayout; + } + copy_e2hgum_k$(title, cover, play, like, reply, imageUrls, author, templateId, id, mid, name, desc, view, pubTime, badge, feedback, cardLayout) { + return new KSearchArticleCard(title, cover, play, like, reply, imageUrls, author, templateId, id, mid, name, desc, view, pubTime, badge, feedback, cardLayout); + } + copy(title, cover, play, like, reply, imageUrls, author, templateId, id, mid, name, desc, view, pubTime, badge, feedback, cardLayout, $super) { + title = title === VOID ? this.title : title; + cover = cover === VOID ? this.cover : cover; + play = play === VOID ? this.play : play; + like = like === VOID ? this.like : like; + reply = reply === VOID ? this.reply : reply; + imageUrls = imageUrls === VOID ? this.imageUrls : imageUrls; + author = author === VOID ? this.author : author; + templateId = templateId === VOID ? this.templateId : templateId; + id = id === VOID ? this.id : id; + mid = mid === VOID ? this.mid : mid; + name = name === VOID ? this.name : name; + desc = desc === VOID ? this.desc : desc; + view = view === VOID ? this.view : view; + pubTime = pubTime === VOID ? this.pubTime : pubTime; + badge = badge === VOID ? this.badge : badge; + feedback = feedback === VOID ? this.feedback : feedback; + cardLayout = cardLayout === VOID ? this.cardLayout : cardLayout; + return this.copy_e2hgum_k$(title, cover, play, like, reply, imageUrls, author, templateId, id, mid, name, desc, view, pubTime, badge, feedback, cardLayout); + } + toString() { + return 'KSearchArticleCard(title=' + this.title + ', cover=' + this.cover + ', play=' + this.play + ', like=' + this.like + ', reply=' + this.reply + ', imageUrls=' + this.imageUrls + ', author=' + this.author + ', templateId=' + this.templateId + ', id=' + this.id.toString() + ', mid=' + this.mid.toString() + ', name=' + this.name + ', desc=' + this.desc + ', view=' + this.view + ', pubTime=' + this.pubTime + ', badge=' + this.badge + ', feedback=' + this.feedback + ', cardLayout=' + this.cardLayout + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.cover) | 0; + result = imul(result, 31) + this.play | 0; + result = imul(result, 31) + this.like | 0; + result = imul(result, 31) + this.reply | 0; + result = imul(result, 31) + hashCode(this.imageUrls) | 0; + result = imul(result, 31) + getStringHashCode(this.author) | 0; + result = imul(result, 31) + this.templateId | 0; + result = imul(result, 31) + this.id.hashCode() | 0; + result = imul(result, 31) + this.mid.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.name) | 0; + result = imul(result, 31) + getStringHashCode(this.desc) | 0; + result = imul(result, 31) + this.view | 0; + result = imul(result, 31) + getStringHashCode(this.pubTime) | 0; + result = imul(result, 31) + getStringHashCode(this.badge) | 0; + result = imul(result, 31) + (this.feedback == null ? 0 : this.feedback.hashCode()) | 0; + result = imul(result, 31) + (this.cardLayout == null ? 0 : this.cardLayout.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSearchArticleCard)) + return false; + var tmp0_other_with_cast = other instanceof KSearchArticleCard ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + if (!(this.play === tmp0_other_with_cast.play)) + return false; + if (!(this.like === tmp0_other_with_cast.like)) + return false; + if (!(this.reply === tmp0_other_with_cast.reply)) + return false; + if (!equals(this.imageUrls, tmp0_other_with_cast.imageUrls)) + return false; + if (!(this.author === tmp0_other_with_cast.author)) + return false; + if (!(this.templateId === tmp0_other_with_cast.templateId)) + return false; + if (!this.id.equals(tmp0_other_with_cast.id)) + return false; + if (!this.mid.equals(tmp0_other_with_cast.mid)) + return false; + if (!(this.name === tmp0_other_with_cast.name)) + return false; + if (!(this.desc === tmp0_other_with_cast.desc)) + return false; + if (!(this.view === tmp0_other_with_cast.view)) + return false; + if (!(this.pubTime === tmp0_other_with_cast.pubTime)) + return false; + if (!(this.badge === tmp0_other_with_cast.badge)) + return false; + if (!equals(this.feedback, tmp0_other_with_cast.feedback)) + return false; + if (!equals(this.cardLayout, tmp0_other_with_cast.cardLayout)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KSearchArticleCard_vsdym_k$(seen1, title, cover, play, like, reply, imageUrls, author, templateId, id, mid, name, desc, view, pubTime, badge, feedback, cardLayout, serializationConstructorMarker) { + Companion_getInstance_506(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_493().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.cover = ''; + else + $this.cover = cover; + if (0 === (seen1 & 4)) + $this.play = 0; + else + $this.play = play; + if (0 === (seen1 & 8)) + $this.like = 0; + else + $this.like = like; + if (0 === (seen1 & 16)) + $this.reply = 0; + else + $this.reply = reply; + if (0 === (seen1 & 32)) + $this.imageUrls = emptyList(); + else + $this.imageUrls = imageUrls; + if (0 === (seen1 & 64)) + $this.author = ''; + else + $this.author = author; + if (0 === (seen1 & 128)) + $this.templateId = 0; + else + $this.templateId = templateId; + if (0 === (seen1 & 256)) + $this.id = new Long(0, 0); + else + $this.id = id; + if (0 === (seen1 & 512)) + $this.mid = new Long(0, 0); + else + $this.mid = mid; + if (0 === (seen1 & 1024)) + $this.name = ''; + else + $this.name = name; + if (0 === (seen1 & 2048)) + $this.desc = ''; + else + $this.desc = desc; + if (0 === (seen1 & 4096)) + $this.view = 0; + else + $this.view = view; + if (0 === (seen1 & 8192)) + $this.pubTime = ''; + else + $this.pubTime = pubTime; + if (0 === (seen1 & 16384)) + $this.badge = ''; + else + $this.badge = badge; + if (0 === (seen1 & 32768)) + $this.feedback = null; + else + $this.feedback = feedback; + if (0 === (seen1 & 65536)) + $this.cardLayout = null; + else + $this.cardLayout = cardLayout; + return $this; + } + } + class Companion_507 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.SearchBannerCard'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_494(); + } + } + class $serializer_494 { + constructor() { + $serializer_instance_494 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KSearchBannerCard', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSearchBannerCard.new_com_bapis_bilibili_polymer_app_search_v1_KSearchBannerCard_bgsl81_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_ai11gt_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.cover); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_ai11gt_k$(encoder, value instanceof KSearchBannerCard ? value : THROW_CCE()); + } + } + class KSearchBannerCard { + constructor(title, cover) { + Companion_instance_507; + title = title === VOID ? '' : title; + cover = cover === VOID ? '' : cover; + this.title = title; + this.cover = cover; + } + get_title_iz32un_k$() { + return this.title; + } + get_cover_ipug0e_k$() { + return this.cover; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.cover; + } + copy_plwnsl_k$(title, cover) { + return new KSearchBannerCard(title, cover); + } + copy(title, cover, $super) { + title = title === VOID ? this.title : title; + cover = cover === VOID ? this.cover : cover; + return this.copy_plwnsl_k$(title, cover); + } + toString() { + return 'KSearchBannerCard(title=' + this.title + ', cover=' + this.cover + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.cover) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSearchBannerCard)) + return false; + var tmp0_other_with_cast = other instanceof KSearchBannerCard ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KSearchBannerCard_bgsl81_k$(seen1, title, cover, serializationConstructorMarker) { + Companion_instance_507; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_494().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.cover = ''; + else + $this.cover = cover; + return $this; + } + } + class Companion_508 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.SearchLiveCard'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_495(); + } + } + class $serializer_495 { + constructor() { + $serializer_instance_495 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KSearchLiveCard', this, 13); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('rcmdReason', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('name', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('online', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('badge', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('liveLink', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('cardLeftText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('cardLeftIcon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('showCardDesc2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('rightTopLiveBadge', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('feedback', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + tmp0_serialDesc.addElement_5pzumi_k$('cardLayout', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(13)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_597()), StringSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_584()), get_nullable($serializer_getInstance_610()), get_nullable($serializer_getInstance_633())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = 0; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_local8 = 0; + var tmp13_local9 = null; + var tmp14_local10 = null; + var tmp15_local11 = null; + var tmp16_local12 = null; + var tmp17_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp17_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp17_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_597(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp17_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp17_input.decodeIntElement_941u6a_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp17_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 10, $serializer_getInstance_584(), tmp14_local10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp17_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 11, $serializer_getInstance_610(), tmp15_local11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + tmp16_local12 = tmp17_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 12, $serializer_getInstance_633(), tmp16_local12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + } else + while (tmp1_flag) { + tmp2_index = tmp17_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp17_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_597(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp17_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp17_input.decodeIntElement_941u6a_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp17_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 10, $serializer_getInstance_584(), tmp14_local10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp17_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 11, $serializer_getInstance_610(), tmp15_local11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + case 12: + tmp16_local12 = tmp17_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 12, $serializer_getInstance_633(), tmp16_local12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp17_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSearchLiveCard.new_com_bapis_bilibili_polymer_app_search_v1_KSearchLiveCard_5gv6yj_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, null); + } + serialize_mkmict_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.cover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.rcmdReason == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_597(), value.rcmdReason); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.name === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.name); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.online === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 4, value.online); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.badge === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.badge); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.liveLink === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.liveLink); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.cardLeftText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.cardLeftText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.cardLeftIcon === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 8, value.cardLeftIcon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.showCardDesc2 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 9, value.showCardDesc2); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.rightTopLiveBadge == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 10, $serializer_getInstance_584(), value.rightTopLiveBadge); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.feedback == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 11, $serializer_getInstance_610(), value.feedback); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !(value.cardLayout == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 12, $serializer_getInstance_633(), value.cardLayout); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_mkmict_k$(encoder, value instanceof KSearchLiveCard ? value : THROW_CCE()); + } + } + class KSearchLiveCard { + constructor(title, cover, rcmdReason, name, online, badge, liveLink, cardLeftText, cardLeftIcon, showCardDesc2, rightTopLiveBadge, feedback, cardLayout) { + Companion_instance_508; + title = title === VOID ? '' : title; + cover = cover === VOID ? '' : cover; + rcmdReason = rcmdReason === VOID ? null : rcmdReason; + name = name === VOID ? '' : name; + online = online === VOID ? 0 : online; + badge = badge === VOID ? '' : badge; + liveLink = liveLink === VOID ? '' : liveLink; + cardLeftText = cardLeftText === VOID ? '' : cardLeftText; + cardLeftIcon = cardLeftIcon === VOID ? 0 : cardLeftIcon; + showCardDesc2 = showCardDesc2 === VOID ? '' : showCardDesc2; + rightTopLiveBadge = rightTopLiveBadge === VOID ? null : rightTopLiveBadge; + feedback = feedback === VOID ? null : feedback; + cardLayout = cardLayout === VOID ? null : cardLayout; + this.title = title; + this.cover = cover; + this.rcmdReason = rcmdReason; + this.name = name; + this.online = online; + this.badge = badge; + this.liveLink = liveLink; + this.cardLeftText = cardLeftText; + this.cardLeftIcon = cardLeftIcon; + this.showCardDesc2 = showCardDesc2; + this.rightTopLiveBadge = rightTopLiveBadge; + this.feedback = feedback; + this.cardLayout = cardLayout; + } + get_title_iz32un_k$() { + return this.title; + } + get_cover_ipug0e_k$() { + return this.cover; + } + get_rcmdReason_lci9h1_k$() { + return this.rcmdReason; + } + get_name_woqyms_k$() { + return this.name; + } + get_online_ho4pr0_k$() { + return this.online; + } + get_badge_ip1cai_k$() { + return this.badge; + } + get_liveLink_8d0z01_k$() { + return this.liveLink; + } + get_cardLeftText_uebjcj_k$() { + return this.cardLeftText; + } + get_cardLeftIcon_ueilwn_k$() { + return this.cardLeftIcon; + } + get_showCardDesc2_gakd1x_k$() { + return this.showCardDesc2; + } + get_rightTopLiveBadge_n63dbf_k$() { + return this.rightTopLiveBadge; + } + get_feedback_yyya42_k$() { + return this.feedback; + } + get_cardLayout_d0npjx_k$() { + return this.cardLayout; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.cover; + } + component3_7eebsa_k$() { + return this.rcmdReason; + } + component4_7eebs9_k$() { + return this.name; + } + component5_7eebs8_k$() { + return this.online; + } + component6_7eebs7_k$() { + return this.badge; + } + component7_7eebs6_k$() { + return this.liveLink; + } + component8_7eebs5_k$() { + return this.cardLeftText; + } + component9_7eebs4_k$() { + return this.cardLeftIcon; + } + component10_gazzfo_k$() { + return this.showCardDesc2; + } + component11_gazzfn_k$() { + return this.rightTopLiveBadge; + } + component12_gazzfm_k$() { + return this.feedback; + } + component13_gazzfl_k$() { + return this.cardLayout; + } + copy_aknqk8_k$(title, cover, rcmdReason, name, online, badge, liveLink, cardLeftText, cardLeftIcon, showCardDesc2, rightTopLiveBadge, feedback, cardLayout) { + return new KSearchLiveCard(title, cover, rcmdReason, name, online, badge, liveLink, cardLeftText, cardLeftIcon, showCardDesc2, rightTopLiveBadge, feedback, cardLayout); + } + copy(title, cover, rcmdReason, name, online, badge, liveLink, cardLeftText, cardLeftIcon, showCardDesc2, rightTopLiveBadge, feedback, cardLayout, $super) { + title = title === VOID ? this.title : title; + cover = cover === VOID ? this.cover : cover; + rcmdReason = rcmdReason === VOID ? this.rcmdReason : rcmdReason; + name = name === VOID ? this.name : name; + online = online === VOID ? this.online : online; + badge = badge === VOID ? this.badge : badge; + liveLink = liveLink === VOID ? this.liveLink : liveLink; + cardLeftText = cardLeftText === VOID ? this.cardLeftText : cardLeftText; + cardLeftIcon = cardLeftIcon === VOID ? this.cardLeftIcon : cardLeftIcon; + showCardDesc2 = showCardDesc2 === VOID ? this.showCardDesc2 : showCardDesc2; + rightTopLiveBadge = rightTopLiveBadge === VOID ? this.rightTopLiveBadge : rightTopLiveBadge; + feedback = feedback === VOID ? this.feedback : feedback; + cardLayout = cardLayout === VOID ? this.cardLayout : cardLayout; + return this.copy_aknqk8_k$(title, cover, rcmdReason, name, online, badge, liveLink, cardLeftText, cardLeftIcon, showCardDesc2, rightTopLiveBadge, feedback, cardLayout); + } + toString() { + return 'KSearchLiveCard(title=' + this.title + ', cover=' + this.cover + ', rcmdReason=' + this.rcmdReason + ', name=' + this.name + ', online=' + this.online + ', badge=' + this.badge + ', liveLink=' + this.liveLink + ', cardLeftText=' + this.cardLeftText + ', cardLeftIcon=' + this.cardLeftIcon + ', showCardDesc2=' + this.showCardDesc2 + ', rightTopLiveBadge=' + this.rightTopLiveBadge + ', feedback=' + this.feedback + ', cardLayout=' + this.cardLayout + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.cover) | 0; + result = imul(result, 31) + (this.rcmdReason == null ? 0 : this.rcmdReason.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.name) | 0; + result = imul(result, 31) + this.online | 0; + result = imul(result, 31) + getStringHashCode(this.badge) | 0; + result = imul(result, 31) + getStringHashCode(this.liveLink) | 0; + result = imul(result, 31) + getStringHashCode(this.cardLeftText) | 0; + result = imul(result, 31) + this.cardLeftIcon | 0; + result = imul(result, 31) + getStringHashCode(this.showCardDesc2) | 0; + result = imul(result, 31) + (this.rightTopLiveBadge == null ? 0 : this.rightTopLiveBadge.hashCode()) | 0; + result = imul(result, 31) + (this.feedback == null ? 0 : this.feedback.hashCode()) | 0; + result = imul(result, 31) + (this.cardLayout == null ? 0 : this.cardLayout.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSearchLiveCard)) + return false; + var tmp0_other_with_cast = other instanceof KSearchLiveCard ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + if (!equals(this.rcmdReason, tmp0_other_with_cast.rcmdReason)) + return false; + if (!(this.name === tmp0_other_with_cast.name)) + return false; + if (!(this.online === tmp0_other_with_cast.online)) + return false; + if (!(this.badge === tmp0_other_with_cast.badge)) + return false; + if (!(this.liveLink === tmp0_other_with_cast.liveLink)) + return false; + if (!(this.cardLeftText === tmp0_other_with_cast.cardLeftText)) + return false; + if (!(this.cardLeftIcon === tmp0_other_with_cast.cardLeftIcon)) + return false; + if (!(this.showCardDesc2 === tmp0_other_with_cast.showCardDesc2)) + return false; + if (!equals(this.rightTopLiveBadge, tmp0_other_with_cast.rightTopLiveBadge)) + return false; + if (!equals(this.feedback, tmp0_other_with_cast.feedback)) + return false; + if (!equals(this.cardLayout, tmp0_other_with_cast.cardLayout)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KSearchLiveCard_5gv6yj_k$(seen1, title, cover, rcmdReason, name, online, badge, liveLink, cardLeftText, cardLeftIcon, showCardDesc2, rightTopLiveBadge, feedback, cardLayout, serializationConstructorMarker) { + Companion_instance_508; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_495().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.cover = ''; + else + $this.cover = cover; + if (0 === (seen1 & 4)) + $this.rcmdReason = null; + else + $this.rcmdReason = rcmdReason; + if (0 === (seen1 & 8)) + $this.name = ''; + else + $this.name = name; + if (0 === (seen1 & 16)) + $this.online = 0; + else + $this.online = online; + if (0 === (seen1 & 32)) + $this.badge = ''; + else + $this.badge = badge; + if (0 === (seen1 & 64)) + $this.liveLink = ''; + else + $this.liveLink = liveLink; + if (0 === (seen1 & 128)) + $this.cardLeftText = ''; + else + $this.cardLeftText = cardLeftText; + if (0 === (seen1 & 256)) + $this.cardLeftIcon = 0; + else + $this.cardLeftIcon = cardLeftIcon; + if (0 === (seen1 & 512)) + $this.showCardDesc2 = ''; + else + $this.showCardDesc2 = showCardDesc2; + if (0 === (seen1 & 1024)) + $this.rightTopLiveBadge = null; + else + $this.rightTopLiveBadge = rightTopLiveBadge; + if (0 === (seen1 & 2048)) + $this.feedback = null; + else + $this.feedback = feedback; + if (0 === (seen1 & 4096)) + $this.cardLayout = null; + else + $this.cardLayout = cardLayout; + return $this; + } + } + class Companion_509 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.SearchGameCard'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_496(); + } + } + class $serializer_496 { + constructor() { + $serializer_instance_496 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KSearchGameCard', this, 17); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('reserve', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('rating', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('tags', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('noticeName', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('noticeContent', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('giftContent', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('giftUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('reserveStatus', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('rankInfo', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('specialBgColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + tmp0_serialDesc.addElement_5pzumi_k$('cloudGameParams', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(13)); + tmp0_serialDesc.addElement_5pzumi_k$('showCloudGameEntry', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(14)); + tmp0_serialDesc.addElement_5pzumi_k$('newRecTag', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(15)); + tmp0_serialDesc.addElement_5pzumi_k$('noticeContentName', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(16)); + tmp0_serialDesc.addElement_5pzumi_k$('cardLayout', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(17)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), FloatSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), get_nullable($serializer_getInstance_590()), StringSerializer_getInstance(), get_nullable($serializer_getInstance_589()), BooleanSerializer_getInstance(), get_nullable($serializer_getInstance_606()), StringSerializer_getInstance(), get_nullable($serializer_getInstance_633())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = 0.0; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_local8 = null; + var tmp13_local9 = 0; + var tmp14_local10 = null; + var tmp15_local11 = null; + var tmp16_local12 = null; + var tmp17_local13 = false; + var tmp18_local14 = null; + var tmp19_local15 = null; + var tmp20_local16 = null; + var tmp21_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp21_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp21_input.decodeFloatElement_p2q55h_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp21_input.decodeIntElement_941u6a_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp21_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 10, $serializer_getInstance_590(), tmp14_local10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + tmp16_local12 = tmp21_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 12, $serializer_getInstance_589(), tmp16_local12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + tmp17_local13 = tmp21_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + tmp18_local14 = tmp21_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 14, $serializer_getInstance_606(), tmp18_local14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + tmp19_local15 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + tmp20_local16 = tmp21_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 16, $serializer_getInstance_633(), tmp20_local16); + tmp3_bitMask0 = tmp3_bitMask0 | 65536; + } else + while (tmp1_flag) { + tmp2_index = tmp21_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp21_input.decodeFloatElement_p2q55h_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp21_input.decodeIntElement_941u6a_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp21_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 10, $serializer_getInstance_590(), tmp14_local10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + case 12: + tmp16_local12 = tmp21_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 12, $serializer_getInstance_589(), tmp16_local12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + break; + case 13: + tmp17_local13 = tmp21_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + break; + case 14: + tmp18_local14 = tmp21_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 14, $serializer_getInstance_606(), tmp18_local14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + break; + case 15: + tmp19_local15 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + break; + case 16: + tmp20_local16 = tmp21_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 16, $serializer_getInstance_633(), tmp20_local16); + tmp3_bitMask0 = tmp3_bitMask0 | 65536; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp21_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSearchGameCard.new_com_bapis_bilibili_polymer_app_search_v1_KSearchGameCard_lht6d2_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, tmp18_local14, tmp19_local15, tmp20_local16, null); + } + serialize_o3dfbh_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.cover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.reserve === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.reserve); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !equals(value.rating, 0.0)) { + tmp1_output.encodeFloatElement_oe8hn_k$(tmp0_desc, 3, value.rating); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.tags === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.tags); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.noticeName === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.noticeName); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.noticeContent === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.noticeContent); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.giftContent === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.giftContent); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.giftUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 8, value.giftUrl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.reserveStatus === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 9, value.reserveStatus); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.rankInfo == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 10, $serializer_getInstance_590(), value.rankInfo); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.specialBgColor === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 11, value.specialBgColor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !(value.cloudGameParams == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 12, $serializer_getInstance_589(), value.cloudGameParams); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 13) ? true : !(value.showCloudGameEntry === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 13, value.showCloudGameEntry); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 14) ? true : !(value.newRecTag == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 14, $serializer_getInstance_606(), value.newRecTag); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 15) ? true : !(value.noticeContentName === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 15, value.noticeContentName); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 16) ? true : !(value.cardLayout == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 16, $serializer_getInstance_633(), value.cardLayout); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_o3dfbh_k$(encoder, value instanceof KSearchGameCard ? value : THROW_CCE()); + } + } + class KSearchGameCard { + constructor(title, cover, reserve, rating, tags, noticeName, noticeContent, giftContent, giftUrl, reserveStatus, rankInfo, specialBgColor, cloudGameParams, showCloudGameEntry, newRecTag, noticeContentName, cardLayout) { + Companion_instance_509; + title = title === VOID ? '' : title; + cover = cover === VOID ? '' : cover; + reserve = reserve === VOID ? '' : reserve; + rating = rating === VOID ? 0.0 : rating; + tags = tags === VOID ? '' : tags; + noticeName = noticeName === VOID ? '' : noticeName; + noticeContent = noticeContent === VOID ? '' : noticeContent; + giftContent = giftContent === VOID ? '' : giftContent; + giftUrl = giftUrl === VOID ? '' : giftUrl; + reserveStatus = reserveStatus === VOID ? 0 : reserveStatus; + rankInfo = rankInfo === VOID ? null : rankInfo; + specialBgColor = specialBgColor === VOID ? '' : specialBgColor; + cloudGameParams = cloudGameParams === VOID ? null : cloudGameParams; + showCloudGameEntry = showCloudGameEntry === VOID ? false : showCloudGameEntry; + newRecTag = newRecTag === VOID ? null : newRecTag; + noticeContentName = noticeContentName === VOID ? '' : noticeContentName; + cardLayout = cardLayout === VOID ? null : cardLayout; + this.title = title; + this.cover = cover; + this.reserve = reserve; + this.rating = rating; + this.tags = tags; + this.noticeName = noticeName; + this.noticeContent = noticeContent; + this.giftContent = giftContent; + this.giftUrl = giftUrl; + this.reserveStatus = reserveStatus; + this.rankInfo = rankInfo; + this.specialBgColor = specialBgColor; + this.cloudGameParams = cloudGameParams; + this.showCloudGameEntry = showCloudGameEntry; + this.newRecTag = newRecTag; + this.noticeContentName = noticeContentName; + this.cardLayout = cardLayout; + } + get_title_iz32un_k$() { + return this.title; + } + get_cover_ipug0e_k$() { + return this.cover; + } + get_reserve_jeq383_k$() { + return this.reserve; + } + get_rating_iw9d46_k$() { + return this.rating; + } + get_tags_wousf6_k$() { + return this.tags; + } + get_noticeName_tv1q8c_k$() { + return this.noticeName; + } + get_noticeContent_sa8bbs_k$() { + return this.noticeContent; + } + get_giftContent_3qcnuo_k$() { + return this.giftContent; + } + get_giftUrl_1pv7sm_k$() { + return this.giftUrl; + } + get_reserveStatus_aixxej_k$() { + return this.reserveStatus; + } + get_rankInfo_rkohfh_k$() { + return this.rankInfo; + } + get_specialBgColor_v0hlim_k$() { + return this.specialBgColor; + } + get_cloudGameParams_jpjc5g_k$() { + return this.cloudGameParams; + } + get_showCloudGameEntry_iikfdd_k$() { + return this.showCloudGameEntry; + } + get_newRecTag_21pssf_k$() { + return this.newRecTag; + } + get_noticeContentName_10q9rx_k$() { + return this.noticeContentName; + } + get_cardLayout_d0npjx_k$() { + return this.cardLayout; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.cover; + } + component3_7eebsa_k$() { + return this.reserve; + } + component4_7eebs9_k$() { + return this.rating; + } + component5_7eebs8_k$() { + return this.tags; + } + component6_7eebs7_k$() { + return this.noticeName; + } + component7_7eebs6_k$() { + return this.noticeContent; + } + component8_7eebs5_k$() { + return this.giftContent; + } + component9_7eebs4_k$() { + return this.giftUrl; + } + component10_gazzfo_k$() { + return this.reserveStatus; + } + component11_gazzfn_k$() { + return this.rankInfo; + } + component12_gazzfm_k$() { + return this.specialBgColor; + } + component13_gazzfl_k$() { + return this.cloudGameParams; + } + component14_gazzfk_k$() { + return this.showCloudGameEntry; + } + component15_gazzfj_k$() { + return this.newRecTag; + } + component16_gazzfi_k$() { + return this.noticeContentName; + } + component17_gazzfh_k$() { + return this.cardLayout; + } + copy_krk8i_k$(title, cover, reserve, rating, tags, noticeName, noticeContent, giftContent, giftUrl, reserveStatus, rankInfo, specialBgColor, cloudGameParams, showCloudGameEntry, newRecTag, noticeContentName, cardLayout) { + return new KSearchGameCard(title, cover, reserve, rating, tags, noticeName, noticeContent, giftContent, giftUrl, reserveStatus, rankInfo, specialBgColor, cloudGameParams, showCloudGameEntry, newRecTag, noticeContentName, cardLayout); + } + copy(title, cover, reserve, rating, tags, noticeName, noticeContent, giftContent, giftUrl, reserveStatus, rankInfo, specialBgColor, cloudGameParams, showCloudGameEntry, newRecTag, noticeContentName, cardLayout, $super) { + title = title === VOID ? this.title : title; + cover = cover === VOID ? this.cover : cover; + reserve = reserve === VOID ? this.reserve : reserve; + rating = rating === VOID ? this.rating : rating; + tags = tags === VOID ? this.tags : tags; + noticeName = noticeName === VOID ? this.noticeName : noticeName; + noticeContent = noticeContent === VOID ? this.noticeContent : noticeContent; + giftContent = giftContent === VOID ? this.giftContent : giftContent; + giftUrl = giftUrl === VOID ? this.giftUrl : giftUrl; + reserveStatus = reserveStatus === VOID ? this.reserveStatus : reserveStatus; + rankInfo = rankInfo === VOID ? this.rankInfo : rankInfo; + specialBgColor = specialBgColor === VOID ? this.specialBgColor : specialBgColor; + cloudGameParams = cloudGameParams === VOID ? this.cloudGameParams : cloudGameParams; + showCloudGameEntry = showCloudGameEntry === VOID ? this.showCloudGameEntry : showCloudGameEntry; + newRecTag = newRecTag === VOID ? this.newRecTag : newRecTag; + noticeContentName = noticeContentName === VOID ? this.noticeContentName : noticeContentName; + cardLayout = cardLayout === VOID ? this.cardLayout : cardLayout; + return this.copy_krk8i_k$(title, cover, reserve, rating, tags, noticeName, noticeContent, giftContent, giftUrl, reserveStatus, rankInfo, specialBgColor, cloudGameParams, showCloudGameEntry, newRecTag, noticeContentName, cardLayout); + } + toString() { + return 'KSearchGameCard(title=' + this.title + ', cover=' + this.cover + ', reserve=' + this.reserve + ', rating=' + this.rating + ', tags=' + this.tags + ', noticeName=' + this.noticeName + ', noticeContent=' + this.noticeContent + ', giftContent=' + this.giftContent + ', giftUrl=' + this.giftUrl + ', reserveStatus=' + this.reserveStatus + ', rankInfo=' + this.rankInfo + ', specialBgColor=' + this.specialBgColor + ', cloudGameParams=' + this.cloudGameParams + ', showCloudGameEntry=' + this.showCloudGameEntry + ', newRecTag=' + this.newRecTag + ', noticeContentName=' + this.noticeContentName + ', cardLayout=' + this.cardLayout + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.cover) | 0; + result = imul(result, 31) + getStringHashCode(this.reserve) | 0; + result = imul(result, 31) + getNumberHashCode(this.rating) | 0; + result = imul(result, 31) + getStringHashCode(this.tags) | 0; + result = imul(result, 31) + getStringHashCode(this.noticeName) | 0; + result = imul(result, 31) + getStringHashCode(this.noticeContent) | 0; + result = imul(result, 31) + getStringHashCode(this.giftContent) | 0; + result = imul(result, 31) + getStringHashCode(this.giftUrl) | 0; + result = imul(result, 31) + this.reserveStatus | 0; + result = imul(result, 31) + (this.rankInfo == null ? 0 : this.rankInfo.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.specialBgColor) | 0; + result = imul(result, 31) + (this.cloudGameParams == null ? 0 : this.cloudGameParams.hashCode()) | 0; + result = imul(result, 31) + getBooleanHashCode(this.showCloudGameEntry) | 0; + result = imul(result, 31) + (this.newRecTag == null ? 0 : this.newRecTag.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.noticeContentName) | 0; + result = imul(result, 31) + (this.cardLayout == null ? 0 : this.cardLayout.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSearchGameCard)) + return false; + var tmp0_other_with_cast = other instanceof KSearchGameCard ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + if (!(this.reserve === tmp0_other_with_cast.reserve)) + return false; + if (!equals(this.rating, tmp0_other_with_cast.rating)) + return false; + if (!(this.tags === tmp0_other_with_cast.tags)) + return false; + if (!(this.noticeName === tmp0_other_with_cast.noticeName)) + return false; + if (!(this.noticeContent === tmp0_other_with_cast.noticeContent)) + return false; + if (!(this.giftContent === tmp0_other_with_cast.giftContent)) + return false; + if (!(this.giftUrl === tmp0_other_with_cast.giftUrl)) + return false; + if (!(this.reserveStatus === tmp0_other_with_cast.reserveStatus)) + return false; + if (!equals(this.rankInfo, tmp0_other_with_cast.rankInfo)) + return false; + if (!(this.specialBgColor === tmp0_other_with_cast.specialBgColor)) + return false; + if (!equals(this.cloudGameParams, tmp0_other_with_cast.cloudGameParams)) + return false; + if (!(this.showCloudGameEntry === tmp0_other_with_cast.showCloudGameEntry)) + return false; + if (!equals(this.newRecTag, tmp0_other_with_cast.newRecTag)) + return false; + if (!(this.noticeContentName === tmp0_other_with_cast.noticeContentName)) + return false; + if (!equals(this.cardLayout, tmp0_other_with_cast.cardLayout)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KSearchGameCard_lht6d2_k$(seen1, title, cover, reserve, rating, tags, noticeName, noticeContent, giftContent, giftUrl, reserveStatus, rankInfo, specialBgColor, cloudGameParams, showCloudGameEntry, newRecTag, noticeContentName, cardLayout, serializationConstructorMarker) { + Companion_instance_509; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_496().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.cover = ''; + else + $this.cover = cover; + if (0 === (seen1 & 4)) + $this.reserve = ''; + else + $this.reserve = reserve; + if (0 === (seen1 & 8)) + $this.rating = 0.0; + else + $this.rating = rating; + if (0 === (seen1 & 16)) + $this.tags = ''; + else + $this.tags = tags; + if (0 === (seen1 & 32)) + $this.noticeName = ''; + else + $this.noticeName = noticeName; + if (0 === (seen1 & 64)) + $this.noticeContent = ''; + else + $this.noticeContent = noticeContent; + if (0 === (seen1 & 128)) + $this.giftContent = ''; + else + $this.giftContent = giftContent; + if (0 === (seen1 & 256)) + $this.giftUrl = ''; + else + $this.giftUrl = giftUrl; + if (0 === (seen1 & 512)) + $this.reserveStatus = 0; + else + $this.reserveStatus = reserveStatus; + if (0 === (seen1 & 1024)) + $this.rankInfo = null; + else + $this.rankInfo = rankInfo; + if (0 === (seen1 & 2048)) + $this.specialBgColor = ''; + else + $this.specialBgColor = specialBgColor; + if (0 === (seen1 & 4096)) + $this.cloudGameParams = null; + else + $this.cloudGameParams = cloudGameParams; + if (0 === (seen1 & 8192)) + $this.showCloudGameEntry = false; + else + $this.showCloudGameEntry = showCloudGameEntry; + if (0 === (seen1 & 16384)) + $this.newRecTag = null; + else + $this.newRecTag = newRecTag; + if (0 === (seen1 & 32768)) + $this.noticeContentName = ''; + else + $this.noticeContentName = noticeContentName; + if (0 === (seen1 & 65536)) + $this.cardLayout = null; + else + $this.cardLayout = cardLayout; + return $this; + } + } + class Companion_510 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.SearchPurchaseCard'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_497(); + } + } + class $serializer_497 { + constructor() { + $serializer_instance_497 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KSearchPurchaseCard', this, 13); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('badge', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('venue', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('price', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('priceComplete', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('priceType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('requiredNumber', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('city', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('showTime', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('id', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('shopName', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + tmp0_serialDesc.addElement_5pzumi_k$('cardLayout', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(13)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_633())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = 0; + var tmp9_local5 = null; + var tmp10_local6 = 0; + var tmp11_local7 = 0; + var tmp12_local8 = null; + var tmp13_local9 = null; + var tmp14_local10 = new Long(0, 0); + var tmp15_local11 = null; + var tmp16_local12 = null; + var tmp17_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp17_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp17_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp17_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp17_input.decodeIntElement_941u6a_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp17_input.decodeLongElement_994anb_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + tmp16_local12 = tmp17_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 12, $serializer_getInstance_633(), tmp16_local12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + } else + while (tmp1_flag) { + tmp2_index = tmp17_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp17_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp17_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp17_input.decodeIntElement_941u6a_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp17_input.decodeLongElement_994anb_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + case 12: + tmp16_local12 = tmp17_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 12, $serializer_getInstance_633(), tmp16_local12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp17_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSearchPurchaseCard.new_com_bapis_bilibili_polymer_app_search_v1_KSearchPurchaseCard_7plq8r_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, null); + } + serialize_nr09ia_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.cover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.badge === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.badge); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.venue === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.venue); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.price === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 4, value.price); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.priceComplete === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.priceComplete); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.priceType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 6, value.priceType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.requiredNumber === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 7, value.requiredNumber); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.city === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 8, value.city); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.showTime === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 9, value.showTime); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !value.id.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 10, value.id); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.shopName === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 11, value.shopName); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !(value.cardLayout == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 12, $serializer_getInstance_633(), value.cardLayout); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_nr09ia_k$(encoder, value instanceof KSearchPurchaseCard ? value : THROW_CCE()); + } + } + class KSearchPurchaseCard { + constructor(title, cover, badge, venue, price, priceComplete, priceType, requiredNumber, city, showTime, id, shopName, cardLayout) { + Companion_instance_510; + title = title === VOID ? '' : title; + cover = cover === VOID ? '' : cover; + badge = badge === VOID ? '' : badge; + venue = venue === VOID ? '' : venue; + price = price === VOID ? 0 : price; + priceComplete = priceComplete === VOID ? '' : priceComplete; + priceType = priceType === VOID ? 0 : priceType; + requiredNumber = requiredNumber === VOID ? 0 : requiredNumber; + city = city === VOID ? '' : city; + showTime = showTime === VOID ? '' : showTime; + id = id === VOID ? new Long(0, 0) : id; + shopName = shopName === VOID ? '' : shopName; + cardLayout = cardLayout === VOID ? null : cardLayout; + this.title = title; + this.cover = cover; + this.badge = badge; + this.venue = venue; + this.price = price; + this.priceComplete = priceComplete; + this.priceType = priceType; + this.requiredNumber = requiredNumber; + this.city = city; + this.showTime = showTime; + this.id = id; + this.shopName = shopName; + this.cardLayout = cardLayout; + } + get_title_iz32un_k$() { + return this.title; + } + get_cover_ipug0e_k$() { + return this.cover; + } + get_badge_ip1cai_k$() { + return this.badge; + } + get_venue_j03zuu_k$() { + return this.venue; + } + get_price_ix1ezk_k$() { + return this.price; + } + get_priceComplete_nh9kzr_k$() { + return this.priceComplete; + } + get_priceType_qn2zye_k$() { + return this.priceType; + } + get_requiredNumber_rcpn5_k$() { + return this.requiredNumber; + } + get_city_wok3w4_k$() { + return this.city; + } + get_showTime_xmg01f_k$() { + return this.showTime; + } + get_id_kntnx8_k$() { + return this.id; + } + get_shopName_xihg16_k$() { + return this.shopName; + } + get_cardLayout_d0npjx_k$() { + return this.cardLayout; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.cover; + } + component3_7eebsa_k$() { + return this.badge; + } + component4_7eebs9_k$() { + return this.venue; + } + component5_7eebs8_k$() { + return this.price; + } + component6_7eebs7_k$() { + return this.priceComplete; + } + component7_7eebs6_k$() { + return this.priceType; + } + component8_7eebs5_k$() { + return this.requiredNumber; + } + component9_7eebs4_k$() { + return this.city; + } + component10_gazzfo_k$() { + return this.showTime; + } + component11_gazzfn_k$() { + return this.id; + } + component12_gazzfm_k$() { + return this.shopName; + } + component13_gazzfl_k$() { + return this.cardLayout; + } + copy_b5muim_k$(title, cover, badge, venue, price, priceComplete, priceType, requiredNumber, city, showTime, id, shopName, cardLayout) { + return new KSearchPurchaseCard(title, cover, badge, venue, price, priceComplete, priceType, requiredNumber, city, showTime, id, shopName, cardLayout); + } + copy(title, cover, badge, venue, price, priceComplete, priceType, requiredNumber, city, showTime, id, shopName, cardLayout, $super) { + title = title === VOID ? this.title : title; + cover = cover === VOID ? this.cover : cover; + badge = badge === VOID ? this.badge : badge; + venue = venue === VOID ? this.venue : venue; + price = price === VOID ? this.price : price; + priceComplete = priceComplete === VOID ? this.priceComplete : priceComplete; + priceType = priceType === VOID ? this.priceType : priceType; + requiredNumber = requiredNumber === VOID ? this.requiredNumber : requiredNumber; + city = city === VOID ? this.city : city; + showTime = showTime === VOID ? this.showTime : showTime; + id = id === VOID ? this.id : id; + shopName = shopName === VOID ? this.shopName : shopName; + cardLayout = cardLayout === VOID ? this.cardLayout : cardLayout; + return this.copy_b5muim_k$(title, cover, badge, venue, price, priceComplete, priceType, requiredNumber, city, showTime, id, shopName, cardLayout); + } + toString() { + return 'KSearchPurchaseCard(title=' + this.title + ', cover=' + this.cover + ', badge=' + this.badge + ', venue=' + this.venue + ', price=' + this.price + ', priceComplete=' + this.priceComplete + ', priceType=' + this.priceType + ', requiredNumber=' + this.requiredNumber + ', city=' + this.city + ', showTime=' + this.showTime + ', id=' + this.id.toString() + ', shopName=' + this.shopName + ', cardLayout=' + this.cardLayout + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.cover) | 0; + result = imul(result, 31) + getStringHashCode(this.badge) | 0; + result = imul(result, 31) + getStringHashCode(this.venue) | 0; + result = imul(result, 31) + this.price | 0; + result = imul(result, 31) + getStringHashCode(this.priceComplete) | 0; + result = imul(result, 31) + this.priceType | 0; + result = imul(result, 31) + this.requiredNumber | 0; + result = imul(result, 31) + getStringHashCode(this.city) | 0; + result = imul(result, 31) + getStringHashCode(this.showTime) | 0; + result = imul(result, 31) + this.id.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.shopName) | 0; + result = imul(result, 31) + (this.cardLayout == null ? 0 : this.cardLayout.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSearchPurchaseCard)) + return false; + var tmp0_other_with_cast = other instanceof KSearchPurchaseCard ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + if (!(this.badge === tmp0_other_with_cast.badge)) + return false; + if (!(this.venue === tmp0_other_with_cast.venue)) + return false; + if (!(this.price === tmp0_other_with_cast.price)) + return false; + if (!(this.priceComplete === tmp0_other_with_cast.priceComplete)) + return false; + if (!(this.priceType === tmp0_other_with_cast.priceType)) + return false; + if (!(this.requiredNumber === tmp0_other_with_cast.requiredNumber)) + return false; + if (!(this.city === tmp0_other_with_cast.city)) + return false; + if (!(this.showTime === tmp0_other_with_cast.showTime)) + return false; + if (!this.id.equals(tmp0_other_with_cast.id)) + return false; + if (!(this.shopName === tmp0_other_with_cast.shopName)) + return false; + if (!equals(this.cardLayout, tmp0_other_with_cast.cardLayout)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KSearchPurchaseCard_7plq8r_k$(seen1, title, cover, badge, venue, price, priceComplete, priceType, requiredNumber, city, showTime, id, shopName, cardLayout, serializationConstructorMarker) { + Companion_instance_510; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_497().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.cover = ''; + else + $this.cover = cover; + if (0 === (seen1 & 4)) + $this.badge = ''; + else + $this.badge = badge; + if (0 === (seen1 & 8)) + $this.venue = ''; + else + $this.venue = venue; + if (0 === (seen1 & 16)) + $this.price = 0; + else + $this.price = price; + if (0 === (seen1 & 32)) + $this.priceComplete = ''; + else + $this.priceComplete = priceComplete; + if (0 === (seen1 & 64)) + $this.priceType = 0; + else + $this.priceType = priceType; + if (0 === (seen1 & 128)) + $this.requiredNumber = 0; + else + $this.requiredNumber = requiredNumber; + if (0 === (seen1 & 256)) + $this.city = ''; + else + $this.city = city; + if (0 === (seen1 & 512)) + $this.showTime = ''; + else + $this.showTime = showTime; + if (0 === (seen1 & 1024)) + $this.id = new Long(0, 0); + else + $this.id = id; + if (0 === (seen1 & 2048)) + $this.shopName = ''; + else + $this.shopName = shopName; + if (0 === (seen1 & 4096)) + $this.cardLayout = null; + else + $this.cardLayout = cardLayout; + return $this; + } + } + class Companion_511 { + constructor() { + Companion_instance_511 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, new ArrayListSerializer($serializer_getInstance_541())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.polymer.app.search.v1.SearchRecommendWordCard'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_498(); + } + } + class $serializer_498 { + constructor() { + $serializer_instance_498 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KSearchRecommendWordCard', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('list', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_511().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), tmp0_cached[2]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp8_cached = Companion_getInstance_511().$childSerializers_1; + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp8_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp8_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSearchRecommendWordCard.new_com_bapis_bilibili_polymer_app_search_v1_KSearchRecommendWordCard_9uw08s_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_7u6ian_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_511().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.cover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !equals(value.list, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 2, tmp2_cached[2], value.list); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_7u6ian_k$(encoder, value instanceof KSearchRecommendWordCard ? value : THROW_CCE()); + } + } + class KSearchRecommendWordCard { + constructor(title, cover, list) { + Companion_getInstance_511(); + title = title === VOID ? '' : title; + cover = cover === VOID ? '' : cover; + list = list === VOID ? emptyList() : list; + this.title = title; + this.cover = cover; + this.list = list; + } + get_title_iz32un_k$() { + return this.title; + } + get_cover_ipug0e_k$() { + return this.cover; + } + get_list_wopuqv_k$() { + return this.list; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.cover; + } + component3_7eebsa_k$() { + return this.list; + } + copy_43tzpt_k$(title, cover, list) { + return new KSearchRecommendWordCard(title, cover, list); + } + copy(title, cover, list, $super) { + title = title === VOID ? this.title : title; + cover = cover === VOID ? this.cover : cover; + list = list === VOID ? this.list : list; + return this.copy_43tzpt_k$(title, cover, list); + } + toString() { + return 'KSearchRecommendWordCard(title=' + this.title + ', cover=' + this.cover + ', list=' + this.list + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.cover) | 0; + result = imul(result, 31) + hashCode(this.list) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSearchRecommendWordCard)) + return false; + var tmp0_other_with_cast = other instanceof KSearchRecommendWordCard ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + if (!equals(this.list, tmp0_other_with_cast.list)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KSearchRecommendWordCard_9uw08s_k$(seen1, title, cover, list, serializationConstructorMarker) { + Companion_getInstance_511(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_498().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.cover = ''; + else + $this.cover = cover; + if (0 === (seen1 & 4)) + $this.list = emptyList(); + else + $this.list = list; + return $this; + } + } + class Companion_512 { + constructor() { + Companion_instance_512 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, new ArrayListSerializer(StringSerializer_getInstance()), null, null, new ArrayListSerializer($serializer_getInstance_559()), null, null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.polymer.app.search.v1.SearchDynamicCard'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_499(); + } + } + class $serializer_499 { + constructor() { + $serializer_instance_499 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KSearchDynamicCard', this, 10); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('coverCount', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('covers', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('upper', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('stat', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('dyTopic', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('badge', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('feedback', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('cardLayout', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_512().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), tmp0_cached[3], get_nullable($serializer_getInstance_557()), get_nullable($serializer_getInstance_558()), tmp0_cached[6], StringSerializer_getInstance(), get_nullable($serializer_getInstance_610()), get_nullable($serializer_getInstance_633())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = 0; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_local8 = null; + var tmp13_local9 = null; + var tmp14_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp15_cached = Companion_getInstance_512().$childSerializers_1; + if (tmp14_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp14_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 3, tmp15_cached[3], tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_557(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_558(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp14_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 6, tmp15_cached[6], tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_610(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 9, $serializer_getInstance_633(), tmp13_local9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + } else + while (tmp1_flag) { + tmp2_index = tmp14_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp14_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 3, tmp15_cached[3], tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_557(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_558(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp14_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 6, tmp15_cached[6], tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_610(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 9, $serializer_getInstance_633(), tmp13_local9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp14_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSearchDynamicCard.new_com_bapis_bilibili_polymer_app_search_v1_KSearchDynamicCard_o7smde_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, null); + } + serialize_vgy7iw_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_512().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.cover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.coverCount === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.coverCount); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !equals(value.covers, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 3, tmp2_cached[3], value.covers); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.upper == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, $serializer_getInstance_557(), value.upper); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.stat == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 5, $serializer_getInstance_558(), value.stat); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !equals(value.dyTopic, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 6, tmp2_cached[6], value.dyTopic); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.badge === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.badge); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.feedback == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 8, $serializer_getInstance_610(), value.feedback); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.cardLayout == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 9, $serializer_getInstance_633(), value.cardLayout); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_vgy7iw_k$(encoder, value instanceof KSearchDynamicCard ? value : THROW_CCE()); + } + } + class KSearchDynamicCard { + constructor(title, cover, coverCount, covers, upper, stat, dyTopic, badge, feedback, cardLayout) { + Companion_getInstance_512(); + title = title === VOID ? '' : title; + cover = cover === VOID ? '' : cover; + coverCount = coverCount === VOID ? 0 : coverCount; + covers = covers === VOID ? emptyList() : covers; + upper = upper === VOID ? null : upper; + stat = stat === VOID ? null : stat; + dyTopic = dyTopic === VOID ? emptyList() : dyTopic; + badge = badge === VOID ? '' : badge; + feedback = feedback === VOID ? null : feedback; + cardLayout = cardLayout === VOID ? null : cardLayout; + this.title = title; + this.cover = cover; + this.coverCount = coverCount; + this.covers = covers; + this.upper = upper; + this.stat = stat; + this.dyTopic = dyTopic; + this.badge = badge; + this.feedback = feedback; + this.cardLayout = cardLayout; + } + get_title_iz32un_k$() { + return this.title; + } + get_cover_ipug0e_k$() { + return this.cover; + } + get_coverCount_45xcx_k$() { + return this.coverCount; + } + get_covers_c0bcmd_k$() { + return this.covers; + } + get_upper_izr989_k$() { + return this.upper; + } + get_stat_woujdp_k$() { + return this.stat; + } + get_dyTopic_z0kmdr_k$() { + return this.dyTopic; + } + get_badge_ip1cai_k$() { + return this.badge; + } + get_feedback_yyya42_k$() { + return this.feedback; + } + get_cardLayout_d0npjx_k$() { + return this.cardLayout; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.cover; + } + component3_7eebsa_k$() { + return this.coverCount; + } + component4_7eebs9_k$() { + return this.covers; + } + component5_7eebs8_k$() { + return this.upper; + } + component6_7eebs7_k$() { + return this.stat; + } + component7_7eebs6_k$() { + return this.dyTopic; + } + component8_7eebs5_k$() { + return this.badge; + } + component9_7eebs4_k$() { + return this.feedback; + } + component10_gazzfo_k$() { + return this.cardLayout; + } + copy_ns2798_k$(title, cover, coverCount, covers, upper, stat, dyTopic, badge, feedback, cardLayout) { + return new KSearchDynamicCard(title, cover, coverCount, covers, upper, stat, dyTopic, badge, feedback, cardLayout); + } + copy(title, cover, coverCount, covers, upper, stat, dyTopic, badge, feedback, cardLayout, $super) { + title = title === VOID ? this.title : title; + cover = cover === VOID ? this.cover : cover; + coverCount = coverCount === VOID ? this.coverCount : coverCount; + covers = covers === VOID ? this.covers : covers; + upper = upper === VOID ? this.upper : upper; + stat = stat === VOID ? this.stat : stat; + dyTopic = dyTopic === VOID ? this.dyTopic : dyTopic; + badge = badge === VOID ? this.badge : badge; + feedback = feedback === VOID ? this.feedback : feedback; + cardLayout = cardLayout === VOID ? this.cardLayout : cardLayout; + return this.copy_ns2798_k$(title, cover, coverCount, covers, upper, stat, dyTopic, badge, feedback, cardLayout); + } + toString() { + return 'KSearchDynamicCard(title=' + this.title + ', cover=' + this.cover + ', coverCount=' + this.coverCount + ', covers=' + this.covers + ', upper=' + this.upper + ', stat=' + this.stat + ', dyTopic=' + this.dyTopic + ', badge=' + this.badge + ', feedback=' + this.feedback + ', cardLayout=' + this.cardLayout + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.cover) | 0; + result = imul(result, 31) + this.coverCount | 0; + result = imul(result, 31) + hashCode(this.covers) | 0; + result = imul(result, 31) + (this.upper == null ? 0 : this.upper.hashCode()) | 0; + result = imul(result, 31) + (this.stat == null ? 0 : this.stat.hashCode()) | 0; + result = imul(result, 31) + hashCode(this.dyTopic) | 0; + result = imul(result, 31) + getStringHashCode(this.badge) | 0; + result = imul(result, 31) + (this.feedback == null ? 0 : this.feedback.hashCode()) | 0; + result = imul(result, 31) + (this.cardLayout == null ? 0 : this.cardLayout.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSearchDynamicCard)) + return false; + var tmp0_other_with_cast = other instanceof KSearchDynamicCard ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + if (!(this.coverCount === tmp0_other_with_cast.coverCount)) + return false; + if (!equals(this.covers, tmp0_other_with_cast.covers)) + return false; + if (!equals(this.upper, tmp0_other_with_cast.upper)) + return false; + if (!equals(this.stat, tmp0_other_with_cast.stat)) + return false; + if (!equals(this.dyTopic, tmp0_other_with_cast.dyTopic)) + return false; + if (!(this.badge === tmp0_other_with_cast.badge)) + return false; + if (!equals(this.feedback, tmp0_other_with_cast.feedback)) + return false; + if (!equals(this.cardLayout, tmp0_other_with_cast.cardLayout)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KSearchDynamicCard_o7smde_k$(seen1, title, cover, coverCount, covers, upper, stat, dyTopic, badge, feedback, cardLayout, serializationConstructorMarker) { + Companion_getInstance_512(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_499().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.cover = ''; + else + $this.cover = cover; + if (0 === (seen1 & 4)) + $this.coverCount = 0; + else + $this.coverCount = coverCount; + if (0 === (seen1 & 8)) + $this.covers = emptyList(); + else + $this.covers = covers; + if (0 === (seen1 & 16)) + $this.upper = null; + else + $this.upper = upper; + if (0 === (seen1 & 32)) + $this.stat = null; + else + $this.stat = stat; + if (0 === (seen1 & 64)) + $this.dyTopic = emptyList(); + else + $this.dyTopic = dyTopic; + if (0 === (seen1 & 128)) + $this.badge = ''; + else + $this.badge = badge; + if (0 === (seen1 & 256)) + $this.feedback = null; + else + $this.feedback = feedback; + if (0 === (seen1 & 512)) + $this.cardLayout = null; + else + $this.cardLayout = cardLayout; + return $this; + } + } + class Companion_513 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.SearchNoResultSuggestWordCard'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_500(); + } + } + class $serializer_500 { + constructor() { + $serializer_instance_500 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KSearchNoResultSuggestWordCard', this, 7); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('sugKeyWordType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('cardLayout', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('prefix', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('content', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('suffix', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), get_nullable($serializer_getInstance_633()), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = 0; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp11_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_633(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + } else + while (tmp1_flag) { + tmp2_index = tmp11_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_633(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp11_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSearchNoResultSuggestWordCard.new_com_bapis_bilibili_polymer_app_search_v1_KSearchNoResultSuggestWordCard_y3g0dl_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, null); + } + serialize_yzb7rd_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.cover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.sugKeyWordType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.sugKeyWordType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.cardLayout == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_633(), value.cardLayout); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.prefix === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.prefix); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.content === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.content); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.suffix === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.suffix); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_yzb7rd_k$(encoder, value instanceof KSearchNoResultSuggestWordCard ? value : THROW_CCE()); + } + } + class KSearchNoResultSuggestWordCard { + constructor(title, cover, sugKeyWordType, cardLayout, prefix, content, suffix) { + Companion_instance_513; + title = title === VOID ? '' : title; + cover = cover === VOID ? '' : cover; + sugKeyWordType = sugKeyWordType === VOID ? 0 : sugKeyWordType; + cardLayout = cardLayout === VOID ? null : cardLayout; + prefix = prefix === VOID ? '' : prefix; + content = content === VOID ? '' : content; + suffix = suffix === VOID ? '' : suffix; + this.title = title; + this.cover = cover; + this.sugKeyWordType = sugKeyWordType; + this.cardLayout = cardLayout; + this.prefix = prefix; + this.content = content; + this.suffix = suffix; + } + get_title_iz32un_k$() { + return this.title; + } + get_cover_ipug0e_k$() { + return this.cover; + } + get_sugKeyWordType_9qhn53_k$() { + return this.sugKeyWordType; + } + get_cardLayout_d0npjx_k$() { + return this.cardLayout; + } + get_prefix_i78za3_k$() { + return this.prefix; + } + get_content_h02jrk_k$() { + return this.content; + } + get_suffix_jo1v8a_k$() { + return this.suffix; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.cover; + } + component3_7eebsa_k$() { + return this.sugKeyWordType; + } + component4_7eebs9_k$() { + return this.cardLayout; + } + component5_7eebs8_k$() { + return this.prefix; + } + component6_7eebs7_k$() { + return this.content; + } + component7_7eebs6_k$() { + return this.suffix; + } + copy_k3etsa_k$(title, cover, sugKeyWordType, cardLayout, prefix, content, suffix) { + return new KSearchNoResultSuggestWordCard(title, cover, sugKeyWordType, cardLayout, prefix, content, suffix); + } + copy(title, cover, sugKeyWordType, cardLayout, prefix, content, suffix, $super) { + title = title === VOID ? this.title : title; + cover = cover === VOID ? this.cover : cover; + sugKeyWordType = sugKeyWordType === VOID ? this.sugKeyWordType : sugKeyWordType; + cardLayout = cardLayout === VOID ? this.cardLayout : cardLayout; + prefix = prefix === VOID ? this.prefix : prefix; + content = content === VOID ? this.content : content; + suffix = suffix === VOID ? this.suffix : suffix; + return this.copy_k3etsa_k$(title, cover, sugKeyWordType, cardLayout, prefix, content, suffix); + } + toString() { + return 'KSearchNoResultSuggestWordCard(title=' + this.title + ', cover=' + this.cover + ', sugKeyWordType=' + this.sugKeyWordType + ', cardLayout=' + this.cardLayout + ', prefix=' + this.prefix + ', content=' + this.content + ', suffix=' + this.suffix + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.cover) | 0; + result = imul(result, 31) + this.sugKeyWordType | 0; + result = imul(result, 31) + (this.cardLayout == null ? 0 : this.cardLayout.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.prefix) | 0; + result = imul(result, 31) + getStringHashCode(this.content) | 0; + result = imul(result, 31) + getStringHashCode(this.suffix) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSearchNoResultSuggestWordCard)) + return false; + var tmp0_other_with_cast = other instanceof KSearchNoResultSuggestWordCard ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + if (!(this.sugKeyWordType === tmp0_other_with_cast.sugKeyWordType)) + return false; + if (!equals(this.cardLayout, tmp0_other_with_cast.cardLayout)) + return false; + if (!(this.prefix === tmp0_other_with_cast.prefix)) + return false; + if (!(this.content === tmp0_other_with_cast.content)) + return false; + if (!(this.suffix === tmp0_other_with_cast.suffix)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KSearchNoResultSuggestWordCard_y3g0dl_k$(seen1, title, cover, sugKeyWordType, cardLayout, prefix, content, suffix, serializationConstructorMarker) { + Companion_instance_513; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_500().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.cover = ''; + else + $this.cover = cover; + if (0 === (seen1 & 4)) + $this.sugKeyWordType = 0; + else + $this.sugKeyWordType = sugKeyWordType; + if (0 === (seen1 & 8)) + $this.cardLayout = null; + else + $this.cardLayout = cardLayout; + if (0 === (seen1 & 16)) + $this.prefix = ''; + else + $this.prefix = prefix; + if (0 === (seen1 & 32)) + $this.content = ''; + else + $this.content = content; + if (0 === (seen1 & 64)) + $this.suffix = ''; + else + $this.suffix = suffix; + return $this; + } + } + class Companion_514 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.SearchSpecialGuideCard'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_501(); + } + } + class $serializer_501 { + constructor() { + $serializer_instance_501 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KSearchSpecialGuideCard', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('phone', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('desc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSearchSpecialGuideCard.new_com_bapis_bilibili_polymer_app_search_v1_KSearchSpecialGuideCard_ddv66s_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_p5piak_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.cover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.phone === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.phone); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.desc === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.desc); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_p5piak_k$(encoder, value instanceof KSearchSpecialGuideCard ? value : THROW_CCE()); + } + } + class KSearchSpecialGuideCard { + constructor(title, cover, phone, desc) { + Companion_instance_514; + title = title === VOID ? '' : title; + cover = cover === VOID ? '' : cover; + phone = phone === VOID ? '' : phone; + desc = desc === VOID ? '' : desc; + this.title = title; + this.cover = cover; + this.phone = phone; + this.desc = desc; + } + get_title_iz32un_k$() { + return this.title; + } + get_cover_ipug0e_k$() { + return this.cover; + } + get_phone_iwv5tx_k$() { + return this.phone; + } + get_desc_woknve_k$() { + return this.desc; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.cover; + } + component3_7eebsa_k$() { + return this.phone; + } + component4_7eebs9_k$() { + return this.desc; + } + copy_hmmiyd_k$(title, cover, phone, desc) { + return new KSearchSpecialGuideCard(title, cover, phone, desc); + } + copy(title, cover, phone, desc, $super) { + title = title === VOID ? this.title : title; + cover = cover === VOID ? this.cover : cover; + phone = phone === VOID ? this.phone : phone; + desc = desc === VOID ? this.desc : desc; + return this.copy_hmmiyd_k$(title, cover, phone, desc); + } + toString() { + return 'KSearchSpecialGuideCard(title=' + this.title + ', cover=' + this.cover + ', phone=' + this.phone + ', desc=' + this.desc + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.cover) | 0; + result = imul(result, 31) + getStringHashCode(this.phone) | 0; + result = imul(result, 31) + getStringHashCode(this.desc) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSearchSpecialGuideCard)) + return false; + var tmp0_other_with_cast = other instanceof KSearchSpecialGuideCard ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + if (!(this.phone === tmp0_other_with_cast.phone)) + return false; + if (!(this.desc === tmp0_other_with_cast.desc)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KSearchSpecialGuideCard_ddv66s_k$(seen1, title, cover, phone, desc, serializationConstructorMarker) { + Companion_instance_514; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_501().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.cover = ''; + else + $this.cover = cover; + if (0 === (seen1 & 4)) + $this.phone = ''; + else + $this.phone = phone; + if (0 === (seen1 & 8)) + $this.desc = ''; + else + $this.desc = desc; + return $this; + } + } + class Companion_515 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.SearchComicCard'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_502(); + } + } + class $serializer_502 { + constructor() { + $serializer_instance_502 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KSearchComicCard', this, 7); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('name', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('style', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('comicUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('badge', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('cardLayout', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_633())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp11_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_633(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + } else + while (tmp1_flag) { + tmp2_index = tmp11_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_633(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp11_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSearchComicCard.new_com_bapis_bilibili_polymer_app_search_v1_KSearchComicCard_fm4bd3_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, null); + } + serialize_v1cw8k_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.cover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.name === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.name); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.style === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.style); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.comicUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.comicUrl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.badge === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.badge); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.cardLayout == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 6, $serializer_getInstance_633(), value.cardLayout); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_v1cw8k_k$(encoder, value instanceof KSearchComicCard ? value : THROW_CCE()); + } + } + class KSearchComicCard { + constructor(title, cover, name, style, comicUrl, badge, cardLayout) { + Companion_instance_515; + title = title === VOID ? '' : title; + cover = cover === VOID ? '' : cover; + name = name === VOID ? '' : name; + style = style === VOID ? '' : style; + comicUrl = comicUrl === VOID ? '' : comicUrl; + badge = badge === VOID ? '' : badge; + cardLayout = cardLayout === VOID ? null : cardLayout; + this.title = title; + this.cover = cover; + this.name = name; + this.style = style; + this.comicUrl = comicUrl; + this.badge = badge; + this.cardLayout = cardLayout; + } + get_title_iz32un_k$() { + return this.title; + } + get_cover_ipug0e_k$() { + return this.cover; + } + get_name_woqyms_k$() { + return this.name; + } + get_style_iyqetk_k$() { + return this.style; + } + get_comicUrl_t79hi5_k$() { + return this.comicUrl; + } + get_badge_ip1cai_k$() { + return this.badge; + } + get_cardLayout_d0npjx_k$() { + return this.cardLayout; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.cover; + } + component3_7eebsa_k$() { + return this.name; + } + component4_7eebs9_k$() { + return this.style; + } + component5_7eebs8_k$() { + return this.comicUrl; + } + component6_7eebs7_k$() { + return this.badge; + } + component7_7eebs6_k$() { + return this.cardLayout; + } + copy_30zzvy_k$(title, cover, name, style, comicUrl, badge, cardLayout) { + return new KSearchComicCard(title, cover, name, style, comicUrl, badge, cardLayout); + } + copy(title, cover, name, style, comicUrl, badge, cardLayout, $super) { + title = title === VOID ? this.title : title; + cover = cover === VOID ? this.cover : cover; + name = name === VOID ? this.name : name; + style = style === VOID ? this.style : style; + comicUrl = comicUrl === VOID ? this.comicUrl : comicUrl; + badge = badge === VOID ? this.badge : badge; + cardLayout = cardLayout === VOID ? this.cardLayout : cardLayout; + return this.copy_30zzvy_k$(title, cover, name, style, comicUrl, badge, cardLayout); + } + toString() { + return 'KSearchComicCard(title=' + this.title + ', cover=' + this.cover + ', name=' + this.name + ', style=' + this.style + ', comicUrl=' + this.comicUrl + ', badge=' + this.badge + ', cardLayout=' + this.cardLayout + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.cover) | 0; + result = imul(result, 31) + getStringHashCode(this.name) | 0; + result = imul(result, 31) + getStringHashCode(this.style) | 0; + result = imul(result, 31) + getStringHashCode(this.comicUrl) | 0; + result = imul(result, 31) + getStringHashCode(this.badge) | 0; + result = imul(result, 31) + (this.cardLayout == null ? 0 : this.cardLayout.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSearchComicCard)) + return false; + var tmp0_other_with_cast = other instanceof KSearchComicCard ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + if (!(this.name === tmp0_other_with_cast.name)) + return false; + if (!(this.style === tmp0_other_with_cast.style)) + return false; + if (!(this.comicUrl === tmp0_other_with_cast.comicUrl)) + return false; + if (!(this.badge === tmp0_other_with_cast.badge)) + return false; + if (!equals(this.cardLayout, tmp0_other_with_cast.cardLayout)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KSearchComicCard_fm4bd3_k$(seen1, title, cover, name, style, comicUrl, badge, cardLayout, serializationConstructorMarker) { + Companion_instance_515; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_502().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.cover = ''; + else + $this.cover = cover; + if (0 === (seen1 & 4)) + $this.name = ''; + else + $this.name = name; + if (0 === (seen1 & 8)) + $this.style = ''; + else + $this.style = style; + if (0 === (seen1 & 16)) + $this.comicUrl = ''; + else + $this.comicUrl = comicUrl; + if (0 === (seen1 & 32)) + $this.badge = ''; + else + $this.badge = badge; + if (0 === (seen1 & 64)) + $this.cardLayout = null; + else + $this.cardLayout = cardLayout; + return $this; + } + } + class Companion_516 { + constructor() { + Companion_instance_516 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, null, null, null, null, null, new ArrayListSerializer($serializer_getInstance_562()), null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.polymer.app.search.v1.SearchNewChannelCard'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_503(); + } + } + class $serializer_503 { + constructor() { + $serializer_instance_503 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KSearchNewChannelCard', this, 10); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('id', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('typeIcon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('channelLabel1', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('channelLabel2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('channelButton', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('designType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('items', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('cardLayout', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_516().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_569()), get_nullable($serializer_getInstance_569()), get_nullable($serializer_getInstance_569()), StringSerializer_getInstance(), tmp0_cached[8], get_nullable($serializer_getInstance_633())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = new Long(0, 0); + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_local8 = null; + var tmp13_local9 = null; + var tmp14_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp15_cached = Companion_getInstance_516().$childSerializers_1; + if (tmp14_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_569(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_569(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_569(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp14_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 8, tmp15_cached[8], tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 9, $serializer_getInstance_633(), tmp13_local9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + } else + while (tmp1_flag) { + tmp2_index = tmp14_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_569(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_569(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_569(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp14_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 8, tmp15_cached[8], tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 9, $serializer_getInstance_633(), tmp13_local9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp14_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSearchNewChannelCard.new_com_bapis_bilibili_polymer_app_search_v1_KSearchNewChannelCard_4jkvar_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, null); + } + serialize_vl7wdg_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_516().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.cover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.id.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.id); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.typeIcon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.typeIcon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.channelLabel1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, $serializer_getInstance_569(), value.channelLabel1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.channelLabel2 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 5, $serializer_getInstance_569(), value.channelLabel2); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.channelButton == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 6, $serializer_getInstance_569(), value.channelButton); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.designType === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.designType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !equals(value.items, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 8, tmp2_cached[8], value.items); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.cardLayout == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 9, $serializer_getInstance_633(), value.cardLayout); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_vl7wdg_k$(encoder, value instanceof KSearchNewChannelCard ? value : THROW_CCE()); + } + } + class KSearchNewChannelCard { + constructor(title, cover, id, typeIcon, channelLabel1, channelLabel2, channelButton, designType, items, cardLayout) { + Companion_getInstance_516(); + title = title === VOID ? '' : title; + cover = cover === VOID ? '' : cover; + id = id === VOID ? new Long(0, 0) : id; + typeIcon = typeIcon === VOID ? '' : typeIcon; + channelLabel1 = channelLabel1 === VOID ? null : channelLabel1; + channelLabel2 = channelLabel2 === VOID ? null : channelLabel2; + channelButton = channelButton === VOID ? null : channelButton; + designType = designType === VOID ? '' : designType; + items = items === VOID ? emptyList() : items; + cardLayout = cardLayout === VOID ? null : cardLayout; + this.title = title; + this.cover = cover; + this.id = id; + this.typeIcon = typeIcon; + this.channelLabel1 = channelLabel1; + this.channelLabel2 = channelLabel2; + this.channelButton = channelButton; + this.designType = designType; + this.items = items; + this.cardLayout = cardLayout; + } + get_title_iz32un_k$() { + return this.title; + } + get_cover_ipug0e_k$() { + return this.cover; + } + get_id_kntnx8_k$() { + return this.id; + } + get_typeIcon_s1b9gc_k$() { + return this.typeIcon; + } + get_channelLabel1_ixr2bb_k$() { + return this.channelLabel1; + } + get_channelLabel2_ixr2bc_k$() { + return this.channelLabel2; + } + get_channelButton_eimj8s_k$() { + return this.channelButton; + } + get_designType_kns673_k$() { + return this.designType; + } + get_items_it823b_k$() { + return this.items; + } + get_cardLayout_d0npjx_k$() { + return this.cardLayout; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.cover; + } + component3_7eebsa_k$() { + return this.id; + } + component4_7eebs9_k$() { + return this.typeIcon; + } + component5_7eebs8_k$() { + return this.channelLabel1; + } + component6_7eebs7_k$() { + return this.channelLabel2; + } + component7_7eebs6_k$() { + return this.channelButton; + } + component8_7eebs5_k$() { + return this.designType; + } + component9_7eebs4_k$() { + return this.items; + } + component10_gazzfo_k$() { + return this.cardLayout; + } + copy_fgcj1n_k$(title, cover, id, typeIcon, channelLabel1, channelLabel2, channelButton, designType, items, cardLayout) { + return new KSearchNewChannelCard(title, cover, id, typeIcon, channelLabel1, channelLabel2, channelButton, designType, items, cardLayout); + } + copy(title, cover, id, typeIcon, channelLabel1, channelLabel2, channelButton, designType, items, cardLayout, $super) { + title = title === VOID ? this.title : title; + cover = cover === VOID ? this.cover : cover; + id = id === VOID ? this.id : id; + typeIcon = typeIcon === VOID ? this.typeIcon : typeIcon; + channelLabel1 = channelLabel1 === VOID ? this.channelLabel1 : channelLabel1; + channelLabel2 = channelLabel2 === VOID ? this.channelLabel2 : channelLabel2; + channelButton = channelButton === VOID ? this.channelButton : channelButton; + designType = designType === VOID ? this.designType : designType; + items = items === VOID ? this.items : items; + cardLayout = cardLayout === VOID ? this.cardLayout : cardLayout; + return this.copy_fgcj1n_k$(title, cover, id, typeIcon, channelLabel1, channelLabel2, channelButton, designType, items, cardLayout); + } + toString() { + return 'KSearchNewChannelCard(title=' + this.title + ', cover=' + this.cover + ', id=' + this.id.toString() + ', typeIcon=' + this.typeIcon + ', channelLabel1=' + this.channelLabel1 + ', channelLabel2=' + this.channelLabel2 + ', channelButton=' + this.channelButton + ', designType=' + this.designType + ', items=' + this.items + ', cardLayout=' + this.cardLayout + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.cover) | 0; + result = imul(result, 31) + this.id.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.typeIcon) | 0; + result = imul(result, 31) + (this.channelLabel1 == null ? 0 : this.channelLabel1.hashCode()) | 0; + result = imul(result, 31) + (this.channelLabel2 == null ? 0 : this.channelLabel2.hashCode()) | 0; + result = imul(result, 31) + (this.channelButton == null ? 0 : this.channelButton.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.designType) | 0; + result = imul(result, 31) + hashCode(this.items) | 0; + result = imul(result, 31) + (this.cardLayout == null ? 0 : this.cardLayout.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSearchNewChannelCard)) + return false; + var tmp0_other_with_cast = other instanceof KSearchNewChannelCard ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + if (!this.id.equals(tmp0_other_with_cast.id)) + return false; + if (!(this.typeIcon === tmp0_other_with_cast.typeIcon)) + return false; + if (!equals(this.channelLabel1, tmp0_other_with_cast.channelLabel1)) + return false; + if (!equals(this.channelLabel2, tmp0_other_with_cast.channelLabel2)) + return false; + if (!equals(this.channelButton, tmp0_other_with_cast.channelButton)) + return false; + if (!(this.designType === tmp0_other_with_cast.designType)) + return false; + if (!equals(this.items, tmp0_other_with_cast.items)) + return false; + if (!equals(this.cardLayout, tmp0_other_with_cast.cardLayout)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KSearchNewChannelCard_4jkvar_k$(seen1, title, cover, id, typeIcon, channelLabel1, channelLabel2, channelButton, designType, items, cardLayout, serializationConstructorMarker) { + Companion_getInstance_516(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_503().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.cover = ''; + else + $this.cover = cover; + if (0 === (seen1 & 4)) + $this.id = new Long(0, 0); + else + $this.id = id; + if (0 === (seen1 & 8)) + $this.typeIcon = ''; + else + $this.typeIcon = typeIcon; + if (0 === (seen1 & 16)) + $this.channelLabel1 = null; + else + $this.channelLabel1 = channelLabel1; + if (0 === (seen1 & 32)) + $this.channelLabel2 = null; + else + $this.channelLabel2 = channelLabel2; + if (0 === (seen1 & 64)) + $this.channelButton = null; + else + $this.channelButton = channelButton; + if (0 === (seen1 & 128)) + $this.designType = ''; + else + $this.designType = designType; + if (0 === (seen1 & 256)) + $this.items = emptyList(); + else + $this.items = items; + if (0 === (seen1 & 512)) + $this.cardLayout = null; + else + $this.cardLayout = cardLayout; + return $this; + } + } + class Companion_517 { + constructor() { + Companion_instance_517 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, null, null, new ArrayListSerializer($serializer_getInstance_506()), null, null, null, null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.polymer.app.search.v1.SearchOgvRelationCard'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_504(); + } + } + class $serializer_504 { + constructor() { + $serializer_instance_504 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KSearchOgvRelationCard', this, 11); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('specialBgColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('moreText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('moreUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('items', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('isNewStyle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('ogvCardUi', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('moreSearchType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('cardLayout', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('saleInfo', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_517().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), tmp0_cached[5], IntSerializer_getInstance(), get_nullable($serializer_getInstance_505()), IntSerializer_getInstance(), get_nullable($serializer_getInstance_633()), get_nullable($serializer_getInstance_634())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = 0; + var tmp11_local7 = null; + var tmp12_local8 = 0; + var tmp13_local9 = null; + var tmp14_local10 = null; + var tmp15_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp16_cached = Companion_getInstance_517().$childSerializers_1; + if (tmp15_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp15_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 5, tmp16_cached[5], tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_505(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 9, $serializer_getInstance_633(), tmp13_local9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 10, $serializer_getInstance_634(), tmp14_local10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + } else + while (tmp1_flag) { + tmp2_index = tmp15_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp15_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 5, tmp16_cached[5], tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_505(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 9, $serializer_getInstance_633(), tmp13_local9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 10, $serializer_getInstance_634(), tmp14_local10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp15_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSearchOgvRelationCard.new_com_bapis_bilibili_polymer_app_search_v1_KSearchOgvRelationCard_ytitta_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, null); + } + serialize_wc8e43_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_517().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.cover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.specialBgColor === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.specialBgColor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.moreText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.moreText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.moreUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.moreUrl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !equals(value.items, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 5, tmp2_cached[5], value.items); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.isNewStyle === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 6, value.isNewStyle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.ogvCardUi == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 7, $serializer_getInstance_505(), value.ogvCardUi); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.moreSearchType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 8, value.moreSearchType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.cardLayout == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 9, $serializer_getInstance_633(), value.cardLayout); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.saleInfo == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 10, $serializer_getInstance_634(), value.saleInfo); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_wc8e43_k$(encoder, value instanceof KSearchOgvRelationCard ? value : THROW_CCE()); + } + } + class KSearchOgvRelationCard { + constructor(title, cover, specialBgColor, moreText, moreUrl, items, isNewStyle, ogvCardUi, moreSearchType, cardLayout, saleInfo) { + Companion_getInstance_517(); + title = title === VOID ? '' : title; + cover = cover === VOID ? '' : cover; + specialBgColor = specialBgColor === VOID ? '' : specialBgColor; + moreText = moreText === VOID ? '' : moreText; + moreUrl = moreUrl === VOID ? '' : moreUrl; + items = items === VOID ? emptyList() : items; + isNewStyle = isNewStyle === VOID ? 0 : isNewStyle; + ogvCardUi = ogvCardUi === VOID ? null : ogvCardUi; + moreSearchType = moreSearchType === VOID ? 0 : moreSearchType; + cardLayout = cardLayout === VOID ? null : cardLayout; + saleInfo = saleInfo === VOID ? null : saleInfo; + this.title = title; + this.cover = cover; + this.specialBgColor = specialBgColor; + this.moreText = moreText; + this.moreUrl = moreUrl; + this.items = items; + this.isNewStyle = isNewStyle; + this.ogvCardUi = ogvCardUi; + this.moreSearchType = moreSearchType; + this.cardLayout = cardLayout; + this.saleInfo = saleInfo; + } + get_title_iz32un_k$() { + return this.title; + } + get_cover_ipug0e_k$() { + return this.cover; + } + get_specialBgColor_v0hlim_k$() { + return this.specialBgColor; + } + get_moreText_zfacyd_k$() { + return this.moreText; + } + get_moreUrl_lrqju9_k$() { + return this.moreUrl; + } + get_items_it823b_k$() { + return this.items; + } + get_isNewStyle_ap3u4c_k$() { + return this.isNewStyle; + } + get_ogvCardUi_3vf8ex_k$() { + return this.ogvCardUi; + } + get_moreSearchType_xrr54w_k$() { + return this.moreSearchType; + } + get_cardLayout_d0npjx_k$() { + return this.cardLayout; + } + get_saleInfo_7jza6_k$() { + return this.saleInfo; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.cover; + } + component3_7eebsa_k$() { + return this.specialBgColor; + } + component4_7eebs9_k$() { + return this.moreText; + } + component5_7eebs8_k$() { + return this.moreUrl; + } + component6_7eebs7_k$() { + return this.items; + } + component7_7eebs6_k$() { + return this.isNewStyle; + } + component8_7eebs5_k$() { + return this.ogvCardUi; + } + component9_7eebs4_k$() { + return this.moreSearchType; + } + component10_gazzfo_k$() { + return this.cardLayout; + } + component11_gazzfn_k$() { + return this.saleInfo; + } + copy_5ari0a_k$(title, cover, specialBgColor, moreText, moreUrl, items, isNewStyle, ogvCardUi, moreSearchType, cardLayout, saleInfo) { + return new KSearchOgvRelationCard(title, cover, specialBgColor, moreText, moreUrl, items, isNewStyle, ogvCardUi, moreSearchType, cardLayout, saleInfo); + } + copy(title, cover, specialBgColor, moreText, moreUrl, items, isNewStyle, ogvCardUi, moreSearchType, cardLayout, saleInfo, $super) { + title = title === VOID ? this.title : title; + cover = cover === VOID ? this.cover : cover; + specialBgColor = specialBgColor === VOID ? this.specialBgColor : specialBgColor; + moreText = moreText === VOID ? this.moreText : moreText; + moreUrl = moreUrl === VOID ? this.moreUrl : moreUrl; + items = items === VOID ? this.items : items; + isNewStyle = isNewStyle === VOID ? this.isNewStyle : isNewStyle; + ogvCardUi = ogvCardUi === VOID ? this.ogvCardUi : ogvCardUi; + moreSearchType = moreSearchType === VOID ? this.moreSearchType : moreSearchType; + cardLayout = cardLayout === VOID ? this.cardLayout : cardLayout; + saleInfo = saleInfo === VOID ? this.saleInfo : saleInfo; + return this.copy_5ari0a_k$(title, cover, specialBgColor, moreText, moreUrl, items, isNewStyle, ogvCardUi, moreSearchType, cardLayout, saleInfo); + } + toString() { + return 'KSearchOgvRelationCard(title=' + this.title + ', cover=' + this.cover + ', specialBgColor=' + this.specialBgColor + ', moreText=' + this.moreText + ', moreUrl=' + this.moreUrl + ', items=' + this.items + ', isNewStyle=' + this.isNewStyle + ', ogvCardUi=' + this.ogvCardUi + ', moreSearchType=' + this.moreSearchType + ', cardLayout=' + this.cardLayout + ', saleInfo=' + this.saleInfo + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.cover) | 0; + result = imul(result, 31) + getStringHashCode(this.specialBgColor) | 0; + result = imul(result, 31) + getStringHashCode(this.moreText) | 0; + result = imul(result, 31) + getStringHashCode(this.moreUrl) | 0; + result = imul(result, 31) + hashCode(this.items) | 0; + result = imul(result, 31) + this.isNewStyle | 0; + result = imul(result, 31) + (this.ogvCardUi == null ? 0 : this.ogvCardUi.hashCode()) | 0; + result = imul(result, 31) + this.moreSearchType | 0; + result = imul(result, 31) + (this.cardLayout == null ? 0 : this.cardLayout.hashCode()) | 0; + result = imul(result, 31) + (this.saleInfo == null ? 0 : this.saleInfo.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSearchOgvRelationCard)) + return false; + var tmp0_other_with_cast = other instanceof KSearchOgvRelationCard ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + if (!(this.specialBgColor === tmp0_other_with_cast.specialBgColor)) + return false; + if (!(this.moreText === tmp0_other_with_cast.moreText)) + return false; + if (!(this.moreUrl === tmp0_other_with_cast.moreUrl)) + return false; + if (!equals(this.items, tmp0_other_with_cast.items)) + return false; + if (!(this.isNewStyle === tmp0_other_with_cast.isNewStyle)) + return false; + if (!equals(this.ogvCardUi, tmp0_other_with_cast.ogvCardUi)) + return false; + if (!(this.moreSearchType === tmp0_other_with_cast.moreSearchType)) + return false; + if (!equals(this.cardLayout, tmp0_other_with_cast.cardLayout)) + return false; + if (!equals(this.saleInfo, tmp0_other_with_cast.saleInfo)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KSearchOgvRelationCard_ytitta_k$(seen1, title, cover, specialBgColor, moreText, moreUrl, items, isNewStyle, ogvCardUi, moreSearchType, cardLayout, saleInfo, serializationConstructorMarker) { + Companion_getInstance_517(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_504().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.cover = ''; + else + $this.cover = cover; + if (0 === (seen1 & 4)) + $this.specialBgColor = ''; + else + $this.specialBgColor = specialBgColor; + if (0 === (seen1 & 8)) + $this.moreText = ''; + else + $this.moreText = moreText; + if (0 === (seen1 & 16)) + $this.moreUrl = ''; + else + $this.moreUrl = moreUrl; + if (0 === (seen1 & 32)) + $this.items = emptyList(); + else + $this.items = items; + if (0 === (seen1 & 64)) + $this.isNewStyle = 0; + else + $this.isNewStyle = isNewStyle; + if (0 === (seen1 & 128)) + $this.ogvCardUi = null; + else + $this.ogvCardUi = ogvCardUi; + if (0 === (seen1 & 256)) + $this.moreSearchType = 0; + else + $this.moreSearchType = moreSearchType; + if (0 === (seen1 & 512)) + $this.cardLayout = null; + else + $this.cardLayout = cardLayout; + if (0 === (seen1 & 1024)) + $this.saleInfo = null; + else + $this.saleInfo = saleInfo; + return $this; + } + } + class Companion_518 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.OgvCardUI'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_505(); + } + } + class $serializer_505 { + constructor() { + $serializer_instance_505 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KOgvCardUI', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('backgroundImage', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('gaussianBlurValue', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('moduleColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('maskOpacity', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KOgvCardUI.new_com_bapis_bilibili_polymer_app_search_v1_KOgvCardUI_wztsfr_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_1p68d_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.backgroundImage === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.backgroundImage); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.gaussianBlurValue === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.gaussianBlurValue); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.moduleColor === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.moduleColor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.maskOpacity === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.maskOpacity); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_1p68d_k$(encoder, value instanceof KOgvCardUI ? value : THROW_CCE()); + } + } + class KOgvCardUI { + constructor(backgroundImage, gaussianBlurValue, moduleColor, maskOpacity) { + Companion_instance_518; + backgroundImage = backgroundImage === VOID ? '' : backgroundImage; + gaussianBlurValue = gaussianBlurValue === VOID ? '' : gaussianBlurValue; + moduleColor = moduleColor === VOID ? '' : moduleColor; + maskOpacity = maskOpacity === VOID ? '' : maskOpacity; + this.backgroundImage = backgroundImage; + this.gaussianBlurValue = gaussianBlurValue; + this.moduleColor = moduleColor; + this.maskOpacity = maskOpacity; + } + get_backgroundImage_9x278c_k$() { + return this.backgroundImage; + } + get_gaussianBlurValue_iq8qoq_k$() { + return this.gaussianBlurValue; + } + get_moduleColor_6an7de_k$() { + return this.moduleColor; + } + get_maskOpacity_j3hul2_k$() { + return this.maskOpacity; + } + component1_7eebsc_k$() { + return this.backgroundImage; + } + component2_7eebsb_k$() { + return this.gaussianBlurValue; + } + component3_7eebsa_k$() { + return this.moduleColor; + } + component4_7eebs9_k$() { + return this.maskOpacity; + } + copy_hmmiyd_k$(backgroundImage, gaussianBlurValue, moduleColor, maskOpacity) { + return new KOgvCardUI(backgroundImage, gaussianBlurValue, moduleColor, maskOpacity); + } + copy(backgroundImage, gaussianBlurValue, moduleColor, maskOpacity, $super) { + backgroundImage = backgroundImage === VOID ? this.backgroundImage : backgroundImage; + gaussianBlurValue = gaussianBlurValue === VOID ? this.gaussianBlurValue : gaussianBlurValue; + moduleColor = moduleColor === VOID ? this.moduleColor : moduleColor; + maskOpacity = maskOpacity === VOID ? this.maskOpacity : maskOpacity; + return this.copy_hmmiyd_k$(backgroundImage, gaussianBlurValue, moduleColor, maskOpacity); + } + toString() { + return 'KOgvCardUI(backgroundImage=' + this.backgroundImage + ', gaussianBlurValue=' + this.gaussianBlurValue + ', moduleColor=' + this.moduleColor + ', maskOpacity=' + this.maskOpacity + ')'; + } + hashCode() { + var result = getStringHashCode(this.backgroundImage); + result = imul(result, 31) + getStringHashCode(this.gaussianBlurValue) | 0; + result = imul(result, 31) + getStringHashCode(this.moduleColor) | 0; + result = imul(result, 31) + getStringHashCode(this.maskOpacity) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KOgvCardUI)) + return false; + var tmp0_other_with_cast = other instanceof KOgvCardUI ? other : THROW_CCE(); + if (!(this.backgroundImage === tmp0_other_with_cast.backgroundImage)) + return false; + if (!(this.gaussianBlurValue === tmp0_other_with_cast.gaussianBlurValue)) + return false; + if (!(this.moduleColor === tmp0_other_with_cast.moduleColor)) + return false; + if (!(this.maskOpacity === tmp0_other_with_cast.maskOpacity)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KOgvCardUI_wztsfr_k$(seen1, backgroundImage, gaussianBlurValue, moduleColor, maskOpacity, serializationConstructorMarker) { + Companion_instance_518; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_505().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.backgroundImage = ''; + else + $this.backgroundImage = backgroundImage; + if (0 === (seen1 & 2)) + $this.gaussianBlurValue = ''; + else + $this.gaussianBlurValue = gaussianBlurValue; + if (0 === (seen1 & 4)) + $this.moduleColor = ''; + else + $this.moduleColor = moduleColor; + if (0 === (seen1 & 8)) + $this.maskOpacity = ''; + else + $this.maskOpacity = maskOpacity; + return $this; + } + } + class Companion_519 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.DetailsRelationItem'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_506(); + } + } + class $serializer_506 { + constructor() { + $serializer_instance_506 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KDetailsRelationItem', this, 13); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('coverLeftText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('coverBadgeStyle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('modulePos', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('goto', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('param', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('uri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('position', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('coverLeftTextV2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('coverBadgeStyleV2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('viewContent', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + tmp0_serialDesc.addElement_5pzumi_k$('iconType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(13)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_606()), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_606()), StringSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_local8 = 0; + var tmp13_local9 = null; + var tmp14_local10 = null; + var tmp15_local11 = null; + var tmp16_local12 = 0; + var tmp17_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp17_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp17_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_606(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp17_input.decodeIntElement_941u6a_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp17_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 10, $serializer_getInstance_606(), tmp14_local10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + tmp16_local12 = tmp17_input.decodeIntElement_941u6a_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + } else + while (tmp1_flag) { + tmp2_index = tmp17_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp17_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_606(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp17_input.decodeIntElement_941u6a_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp17_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 10, $serializer_getInstance_606(), tmp14_local10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + case 12: + tmp16_local12 = tmp17_input.decodeIntElement_941u6a_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp17_input.endStructure_1xqz0n_k$(tmp0_desc); + return KDetailsRelationItem.new_com_bapis_bilibili_polymer_app_search_v1_KDetailsRelationItem_hgdin5_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, null); + } + serialize_u4nubm_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.cover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.coverLeftText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.coverLeftText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.coverBadgeStyle == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_606(), value.coverBadgeStyle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.modulePos === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.modulePos); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.goto === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.goto); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.param === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.param); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.uri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.uri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.position === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 8, value.position); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.coverLeftTextV2 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 9, value.coverLeftTextV2); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.coverBadgeStyleV2 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 10, $serializer_getInstance_606(), value.coverBadgeStyleV2); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.viewContent === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 11, value.viewContent); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !(value.iconType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 12, value.iconType); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_u4nubm_k$(encoder, value instanceof KDetailsRelationItem ? value : THROW_CCE()); + } + } + class KDetailsRelationItem { + constructor(title, cover, coverLeftText, coverBadgeStyle, modulePos, goto, param, uri, position, coverLeftTextV2, coverBadgeStyleV2, viewContent, iconType) { + Companion_instance_519; + title = title === VOID ? '' : title; + cover = cover === VOID ? '' : cover; + coverLeftText = coverLeftText === VOID ? '' : coverLeftText; + coverBadgeStyle = coverBadgeStyle === VOID ? null : coverBadgeStyle; + modulePos = modulePos === VOID ? '' : modulePos; + goto = goto === VOID ? '' : goto; + param = param === VOID ? '' : param; + uri = uri === VOID ? '' : uri; + position = position === VOID ? 0 : position; + coverLeftTextV2 = coverLeftTextV2 === VOID ? '' : coverLeftTextV2; + coverBadgeStyleV2 = coverBadgeStyleV2 === VOID ? null : coverBadgeStyleV2; + viewContent = viewContent === VOID ? '' : viewContent; + iconType = iconType === VOID ? 0 : iconType; + this.title = title; + this.cover = cover; + this.coverLeftText = coverLeftText; + this.coverBadgeStyle = coverBadgeStyle; + this.modulePos = modulePos; + this.goto = goto; + this.param = param; + this.uri = uri; + this.position = position; + this.coverLeftTextV2 = coverLeftTextV2; + this.coverBadgeStyleV2 = coverBadgeStyleV2; + this.viewContent = viewContent; + this.iconType = iconType; + } + get_title_iz32un_k$() { + return this.title; + } + get_cover_ipug0e_k$() { + return this.cover; + } + get_coverLeftText_el6de_k$() { + return this.coverLeftText; + } + get_coverBadgeStyle_goovzw_k$() { + return this.coverBadgeStyle; + } + get_modulePos_h5jyap_k$() { + return this.modulePos; + } + get_goto_womsa4_k$() { + return this.goto; + } + get_param_iwqquc_k$() { + return this.param; + } + get_uri_18iuil_k$() { + return this.uri; + } + get_position_jfponi_k$() { + return this.position; + } + get_coverLeftTextV2_y9qvmm_k$() { + return this.coverLeftTextV2; + } + get_coverBadgeStyleV2_hv27ag_k$() { + return this.coverBadgeStyleV2; + } + get_viewContent_th0tkb_k$() { + return this.viewContent; + } + get_iconType_r0uasc_k$() { + return this.iconType; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.cover; + } + component3_7eebsa_k$() { + return this.coverLeftText; + } + component4_7eebs9_k$() { + return this.coverBadgeStyle; + } + component5_7eebs8_k$() { + return this.modulePos; + } + component6_7eebs7_k$() { + return this.goto; + } + component7_7eebs6_k$() { + return this.param; + } + component8_7eebs5_k$() { + return this.uri; + } + component9_7eebs4_k$() { + return this.position; + } + component10_gazzfo_k$() { + return this.coverLeftTextV2; + } + component11_gazzfn_k$() { + return this.coverBadgeStyleV2; + } + component12_gazzfm_k$() { + return this.viewContent; + } + component13_gazzfl_k$() { + return this.iconType; + } + copy_bt0c97_k$(title, cover, coverLeftText, coverBadgeStyle, modulePos, goto, param, uri, position, coverLeftTextV2, coverBadgeStyleV2, viewContent, iconType) { + return new KDetailsRelationItem(title, cover, coverLeftText, coverBadgeStyle, modulePos, goto, param, uri, position, coverLeftTextV2, coverBadgeStyleV2, viewContent, iconType); + } + copy(title, cover, coverLeftText, coverBadgeStyle, modulePos, goto, param, uri, position, coverLeftTextV2, coverBadgeStyleV2, viewContent, iconType, $super) { + title = title === VOID ? this.title : title; + cover = cover === VOID ? this.cover : cover; + coverLeftText = coverLeftText === VOID ? this.coverLeftText : coverLeftText; + coverBadgeStyle = coverBadgeStyle === VOID ? this.coverBadgeStyle : coverBadgeStyle; + modulePos = modulePos === VOID ? this.modulePos : modulePos; + goto = goto === VOID ? this.goto : goto; + param = param === VOID ? this.param : param; + uri = uri === VOID ? this.uri : uri; + position = position === VOID ? this.position : position; + coverLeftTextV2 = coverLeftTextV2 === VOID ? this.coverLeftTextV2 : coverLeftTextV2; + coverBadgeStyleV2 = coverBadgeStyleV2 === VOID ? this.coverBadgeStyleV2 : coverBadgeStyleV2; + viewContent = viewContent === VOID ? this.viewContent : viewContent; + iconType = iconType === VOID ? this.iconType : iconType; + return this.copy_bt0c97_k$(title, cover, coverLeftText, coverBadgeStyle, modulePos, goto, param, uri, position, coverLeftTextV2, coverBadgeStyleV2, viewContent, iconType); + } + toString() { + return 'KDetailsRelationItem(title=' + this.title + ', cover=' + this.cover + ', coverLeftText=' + this.coverLeftText + ', coverBadgeStyle=' + this.coverBadgeStyle + ', modulePos=' + this.modulePos + ', goto=' + this.goto + ', param=' + this.param + ', uri=' + this.uri + ', position=' + this.position + ', coverLeftTextV2=' + this.coverLeftTextV2 + ', coverBadgeStyleV2=' + this.coverBadgeStyleV2 + ', viewContent=' + this.viewContent + ', iconType=' + this.iconType + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.cover) | 0; + result = imul(result, 31) + getStringHashCode(this.coverLeftText) | 0; + result = imul(result, 31) + (this.coverBadgeStyle == null ? 0 : this.coverBadgeStyle.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.modulePos) | 0; + result = imul(result, 31) + getStringHashCode(this.goto) | 0; + result = imul(result, 31) + getStringHashCode(this.param) | 0; + result = imul(result, 31) + getStringHashCode(this.uri) | 0; + result = imul(result, 31) + this.position | 0; + result = imul(result, 31) + getStringHashCode(this.coverLeftTextV2) | 0; + result = imul(result, 31) + (this.coverBadgeStyleV2 == null ? 0 : this.coverBadgeStyleV2.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.viewContent) | 0; + result = imul(result, 31) + this.iconType | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KDetailsRelationItem)) + return false; + var tmp0_other_with_cast = other instanceof KDetailsRelationItem ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + if (!(this.coverLeftText === tmp0_other_with_cast.coverLeftText)) + return false; + if (!equals(this.coverBadgeStyle, tmp0_other_with_cast.coverBadgeStyle)) + return false; + if (!(this.modulePos === tmp0_other_with_cast.modulePos)) + return false; + if (!(this.goto === tmp0_other_with_cast.goto)) + return false; + if (!(this.param === tmp0_other_with_cast.param)) + return false; + if (!(this.uri === tmp0_other_with_cast.uri)) + return false; + if (!(this.position === tmp0_other_with_cast.position)) + return false; + if (!(this.coverLeftTextV2 === tmp0_other_with_cast.coverLeftTextV2)) + return false; + if (!equals(this.coverBadgeStyleV2, tmp0_other_with_cast.coverBadgeStyleV2)) + return false; + if (!(this.viewContent === tmp0_other_with_cast.viewContent)) + return false; + if (!(this.iconType === tmp0_other_with_cast.iconType)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KDetailsRelationItem_hgdin5_k$(seen1, title, cover, coverLeftText, coverBadgeStyle, modulePos, goto, param, uri, position, coverLeftTextV2, coverBadgeStyleV2, viewContent, iconType, serializationConstructorMarker) { + Companion_instance_519; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_506().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.cover = ''; + else + $this.cover = cover; + if (0 === (seen1 & 4)) + $this.coverLeftText = ''; + else + $this.coverLeftText = coverLeftText; + if (0 === (seen1 & 8)) + $this.coverBadgeStyle = null; + else + $this.coverBadgeStyle = coverBadgeStyle; + if (0 === (seen1 & 16)) + $this.modulePos = ''; + else + $this.modulePos = modulePos; + if (0 === (seen1 & 32)) + $this.goto = ''; + else + $this.goto = goto; + if (0 === (seen1 & 64)) + $this.param = ''; + else + $this.param = param; + if (0 === (seen1 & 128)) + $this.uri = ''; + else + $this.uri = uri; + if (0 === (seen1 & 256)) + $this.position = 0; + else + $this.position = position; + if (0 === (seen1 & 512)) + $this.coverLeftTextV2 = ''; + else + $this.coverLeftTextV2 = coverLeftTextV2; + if (0 === (seen1 & 1024)) + $this.coverBadgeStyleV2 = null; + else + $this.coverBadgeStyleV2 = coverBadgeStyleV2; + if (0 === (seen1 & 2048)) + $this.viewContent = ''; + else + $this.viewContent = viewContent; + if (0 === (seen1 & 4096)) + $this.iconType = 0; + else + $this.iconType = iconType; + return $this; + } + } + class Companion_520 { + constructor() { + Companion_instance_520 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, new ArrayListSerializer($serializer_getInstance_508()), null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.polymer.app.search.v1.SearchOgvRecommendCard'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_507(); + } + } + class $serializer_507 { + constructor() { + $serializer_instance_507 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KSearchOgvRecommendCard', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('items', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('specialBgColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_520().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), tmp0_cached[2], StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp9_cached = Companion_getInstance_520().$childSerializers_1; + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp9_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp9_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSearchOgvRecommendCard.new_com_bapis_bilibili_polymer_app_search_v1_KSearchOgvRecommendCard_aw5tnn_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_rdsl8h_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_520().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.cover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !equals(value.items, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 2, tmp2_cached[2], value.items); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.specialBgColor === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.specialBgColor); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_rdsl8h_k$(encoder, value instanceof KSearchOgvRecommendCard ? value : THROW_CCE()); + } + } + class KSearchOgvRecommendCard { + constructor(title, cover, items, specialBgColor) { + Companion_getInstance_520(); + title = title === VOID ? '' : title; + cover = cover === VOID ? '' : cover; + items = items === VOID ? emptyList() : items; + specialBgColor = specialBgColor === VOID ? '' : specialBgColor; + this.title = title; + this.cover = cover; + this.items = items; + this.specialBgColor = specialBgColor; + } + get_title_iz32un_k$() { + return this.title; + } + get_cover_ipug0e_k$() { + return this.cover; + } + get_items_it823b_k$() { + return this.items; + } + get_specialBgColor_v0hlim_k$() { + return this.specialBgColor; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.cover; + } + component3_7eebsa_k$() { + return this.items; + } + component4_7eebs9_k$() { + return this.specialBgColor; + } + copy_vflmsz_k$(title, cover, items, specialBgColor) { + return new KSearchOgvRecommendCard(title, cover, items, specialBgColor); + } + copy(title, cover, items, specialBgColor, $super) { + title = title === VOID ? this.title : title; + cover = cover === VOID ? this.cover : cover; + items = items === VOID ? this.items : items; + specialBgColor = specialBgColor === VOID ? this.specialBgColor : specialBgColor; + return this.copy_vflmsz_k$(title, cover, items, specialBgColor); + } + toString() { + return 'KSearchOgvRecommendCard(title=' + this.title + ', cover=' + this.cover + ', items=' + this.items + ', specialBgColor=' + this.specialBgColor + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.cover) | 0; + result = imul(result, 31) + hashCode(this.items) | 0; + result = imul(result, 31) + getStringHashCode(this.specialBgColor) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSearchOgvRecommendCard)) + return false; + var tmp0_other_with_cast = other instanceof KSearchOgvRecommendCard ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + if (!equals(this.items, tmp0_other_with_cast.items)) + return false; + if (!(this.specialBgColor === tmp0_other_with_cast.specialBgColor)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KSearchOgvRecommendCard_aw5tnn_k$(seen1, title, cover, items, specialBgColor, serializationConstructorMarker) { + Companion_getInstance_520(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_507().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.cover = ''; + else + $this.cover = cover; + if (0 === (seen1 & 4)) + $this.items = emptyList(); + else + $this.items = items; + if (0 === (seen1 & 8)) + $this.specialBgColor = ''; + else + $this.specialBgColor = specialBgColor; + return $this; + } + } + class Companion_521 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.OgvRecommendWord'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_508(); + } + } + class $serializer_508 { + constructor() { + $serializer_instance_508 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KOgvRecommendWord', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('goto', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('param', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('uri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KOgvRecommendWord.new_com_bapis_bilibili_polymer_app_search_v1_KOgvRecommendWord_lr1fdr_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_pb34z5_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.goto === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.goto); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.param === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.param); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.uri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.uri); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_pb34z5_k$(encoder, value instanceof KOgvRecommendWord ? value : THROW_CCE()); + } + } + class KOgvRecommendWord { + constructor(title, goto, param, uri) { + Companion_instance_521; + title = title === VOID ? '' : title; + goto = goto === VOID ? '' : goto; + param = param === VOID ? '' : param; + uri = uri === VOID ? '' : uri; + this.title = title; + this.goto = goto; + this.param = param; + this.uri = uri; + } + get_title_iz32un_k$() { + return this.title; + } + get_goto_womsa4_k$() { + return this.goto; + } + get_param_iwqquc_k$() { + return this.param; + } + get_uri_18iuil_k$() { + return this.uri; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.goto; + } + component3_7eebsa_k$() { + return this.param; + } + component4_7eebs9_k$() { + return this.uri; + } + copy_hmmiyd_k$(title, goto, param, uri) { + return new KOgvRecommendWord(title, goto, param, uri); + } + copy(title, goto, param, uri, $super) { + title = title === VOID ? this.title : title; + goto = goto === VOID ? this.goto : goto; + param = param === VOID ? this.param : param; + uri = uri === VOID ? this.uri : uri; + return this.copy_hmmiyd_k$(title, goto, param, uri); + } + toString() { + return 'KOgvRecommendWord(title=' + this.title + ', goto=' + this.goto + ', param=' + this.param + ', uri=' + this.uri + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.goto) | 0; + result = imul(result, 31) + getStringHashCode(this.param) | 0; + result = imul(result, 31) + getStringHashCode(this.uri) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KOgvRecommendWord)) + return false; + var tmp0_other_with_cast = other instanceof KOgvRecommendWord ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.goto === tmp0_other_with_cast.goto)) + return false; + if (!(this.param === tmp0_other_with_cast.param)) + return false; + if (!(this.uri === tmp0_other_with_cast.uri)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KOgvRecommendWord_lr1fdr_k$(seen1, title, goto, param, uri, serializationConstructorMarker) { + Companion_instance_521; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_508().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.goto = ''; + else + $this.goto = goto; + if (0 === (seen1 & 4)) + $this.param = ''; + else + $this.param = param; + if (0 === (seen1 & 8)) + $this.uri = ''; + else + $this.uri = uri; + return $this; + } + } + class Companion_522 { + constructor() { + Companion_instance_522 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, null, null, new ArrayListSerializer($serializer_getInstance_570()), new ArrayListSerializer($serializer_getInstance_515()), null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.polymer.app.search.v1.SearchSportCard'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_509(); + } + } + class $serializer_509 { + constructor() { + $serializer_instance_509 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KSearchSportCard', this, 9); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('bgCover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('matchTop', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('matchBottom', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('extraLink', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('items', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('id', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('cardLayout', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_522().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_572()), get_nullable($serializer_getInstance_572()), tmp0_cached[5], tmp0_cached[6], LongSerializer_getInstance(), get_nullable($serializer_getInstance_633())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = new Long(0, 0); + var tmp12_local8 = null; + var tmp13_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp14_cached = Companion_getInstance_522().$childSerializers_1; + if (tmp13_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_572(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_572(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp13_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 5, tmp14_cached[5], tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp13_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 6, tmp14_cached[6], tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_633(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + } else + while (tmp1_flag) { + tmp2_index = tmp13_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_572(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_572(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp13_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 5, tmp14_cached[5], tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp13_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 6, tmp14_cached[6], tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_633(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp13_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSearchSportCard.new_com_bapis_bilibili_polymer_app_search_v1_KSearchSportCard_r7z5wb_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, null); + } + serialize_ch7vkj_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_522().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.cover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.bgCover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.bgCover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.matchTop == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_572(), value.matchTop); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.matchBottom == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, $serializer_getInstance_572(), value.matchBottom); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !equals(value.extraLink, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 5, tmp2_cached[5], value.extraLink); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !equals(value.items, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 6, tmp2_cached[6], value.items); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !value.id.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 7, value.id); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.cardLayout == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 8, $serializer_getInstance_633(), value.cardLayout); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_ch7vkj_k$(encoder, value instanceof KSearchSportCard ? value : THROW_CCE()); + } + } + class KSearchSportCard { + constructor(title, cover, bgCover, matchTop, matchBottom, extraLink, items, id, cardLayout) { + Companion_getInstance_522(); + title = title === VOID ? '' : title; + cover = cover === VOID ? '' : cover; + bgCover = bgCover === VOID ? '' : bgCover; + matchTop = matchTop === VOID ? null : matchTop; + matchBottom = matchBottom === VOID ? null : matchBottom; + extraLink = extraLink === VOID ? emptyList() : extraLink; + items = items === VOID ? emptyList() : items; + id = id === VOID ? new Long(0, 0) : id; + cardLayout = cardLayout === VOID ? null : cardLayout; + this.title = title; + this.cover = cover; + this.bgCover = bgCover; + this.matchTop = matchTop; + this.matchBottom = matchBottom; + this.extraLink = extraLink; + this.items = items; + this.id = id; + this.cardLayout = cardLayout; + } + get_title_iz32un_k$() { + return this.title; + } + get_cover_ipug0e_k$() { + return this.cover; + } + get_bgCover_24epo7_k$() { + return this.bgCover; + } + get_matchTop_qw63mv_k$() { + return this.matchTop; + } + get_matchBottom_wz4nvr_k$() { + return this.matchBottom; + } + get_extraLink_4bkfi9_k$() { + return this.extraLink; + } + get_items_it823b_k$() { + return this.items; + } + get_id_kntnx8_k$() { + return this.id; + } + get_cardLayout_d0npjx_k$() { + return this.cardLayout; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.cover; + } + component3_7eebsa_k$() { + return this.bgCover; + } + component4_7eebs9_k$() { + return this.matchTop; + } + component5_7eebs8_k$() { + return this.matchBottom; + } + component6_7eebs7_k$() { + return this.extraLink; + } + component7_7eebs6_k$() { + return this.items; + } + component8_7eebs5_k$() { + return this.id; + } + component9_7eebs4_k$() { + return this.cardLayout; + } + copy_818b4s_k$(title, cover, bgCover, matchTop, matchBottom, extraLink, items, id, cardLayout) { + return new KSearchSportCard(title, cover, bgCover, matchTop, matchBottom, extraLink, items, id, cardLayout); + } + copy(title, cover, bgCover, matchTop, matchBottom, extraLink, items, id, cardLayout, $super) { + title = title === VOID ? this.title : title; + cover = cover === VOID ? this.cover : cover; + bgCover = bgCover === VOID ? this.bgCover : bgCover; + matchTop = matchTop === VOID ? this.matchTop : matchTop; + matchBottom = matchBottom === VOID ? this.matchBottom : matchBottom; + extraLink = extraLink === VOID ? this.extraLink : extraLink; + items = items === VOID ? this.items : items; + id = id === VOID ? this.id : id; + cardLayout = cardLayout === VOID ? this.cardLayout : cardLayout; + return this.copy_818b4s_k$(title, cover, bgCover, matchTop, matchBottom, extraLink, items, id, cardLayout); + } + toString() { + return 'KSearchSportCard(title=' + this.title + ', cover=' + this.cover + ', bgCover=' + this.bgCover + ', matchTop=' + this.matchTop + ', matchBottom=' + this.matchBottom + ', extraLink=' + this.extraLink + ', items=' + this.items + ', id=' + this.id.toString() + ', cardLayout=' + this.cardLayout + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.cover) | 0; + result = imul(result, 31) + getStringHashCode(this.bgCover) | 0; + result = imul(result, 31) + (this.matchTop == null ? 0 : this.matchTop.hashCode()) | 0; + result = imul(result, 31) + (this.matchBottom == null ? 0 : this.matchBottom.hashCode()) | 0; + result = imul(result, 31) + hashCode(this.extraLink) | 0; + result = imul(result, 31) + hashCode(this.items) | 0; + result = imul(result, 31) + this.id.hashCode() | 0; + result = imul(result, 31) + (this.cardLayout == null ? 0 : this.cardLayout.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSearchSportCard)) + return false; + var tmp0_other_with_cast = other instanceof KSearchSportCard ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + if (!(this.bgCover === tmp0_other_with_cast.bgCover)) + return false; + if (!equals(this.matchTop, tmp0_other_with_cast.matchTop)) + return false; + if (!equals(this.matchBottom, tmp0_other_with_cast.matchBottom)) + return false; + if (!equals(this.extraLink, tmp0_other_with_cast.extraLink)) + return false; + if (!equals(this.items, tmp0_other_with_cast.items)) + return false; + if (!this.id.equals(tmp0_other_with_cast.id)) + return false; + if (!equals(this.cardLayout, tmp0_other_with_cast.cardLayout)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KSearchSportCard_r7z5wb_k$(seen1, title, cover, bgCover, matchTop, matchBottom, extraLink, items, id, cardLayout, serializationConstructorMarker) { + Companion_getInstance_522(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_509().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.cover = ''; + else + $this.cover = cover; + if (0 === (seen1 & 4)) + $this.bgCover = ''; + else + $this.bgCover = bgCover; + if (0 === (seen1 & 8)) + $this.matchTop = null; + else + $this.matchTop = matchTop; + if (0 === (seen1 & 16)) + $this.matchBottom = null; + else + $this.matchBottom = matchBottom; + if (0 === (seen1 & 32)) + $this.extraLink = emptyList(); + else + $this.extraLink = extraLink; + if (0 === (seen1 & 64)) + $this.items = emptyList(); + else + $this.items = items; + if (0 === (seen1 & 128)) + $this.id = new Long(0, 0); + else + $this.id = id; + if (0 === (seen1 & 256)) + $this.cardLayout = null; + else + $this.cardLayout = cardLayout; + return $this; + } + } + class Companion_523 { + constructor() { + Companion_instance_523 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, null, null, new ArrayListSerializer($serializer_getInstance_570()), new ArrayListSerializer($serializer_getInstance_515()), null, null, null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.polymer.app.search.v1.SearchSportInlineCard'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_510(); + } + } + class $serializer_510 { + constructor() { + $serializer_instance_510 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KSearchSportInlineCard', this, 11); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('bgCover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('matchTop', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('matchBottom', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('extraLink', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('items', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('id', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('esportsInline', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('inlineType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('cardLayout', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_523().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_572()), get_nullable($serializer_getInstance_572()), tmp0_cached[5], tmp0_cached[6], LongSerializer_getInstance(), get_nullable($serializer_getInstance_530()), StringSerializer_getInstance(), get_nullable($serializer_getInstance_633())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = new Long(0, 0); + var tmp12_local8 = null; + var tmp13_local9 = null; + var tmp14_local10 = null; + var tmp15_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp16_cached = Companion_getInstance_523().$childSerializers_1; + if (tmp15_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_572(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_572(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp15_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 5, tmp16_cached[5], tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp15_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 6, tmp16_cached[6], tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_530(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 10, $serializer_getInstance_633(), tmp14_local10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + } else + while (tmp1_flag) { + tmp2_index = tmp15_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_572(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_572(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp15_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 5, tmp16_cached[5], tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp15_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 6, tmp16_cached[6], tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_530(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 10, $serializer_getInstance_633(), tmp14_local10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp15_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSearchSportInlineCard.new_com_bapis_bilibili_polymer_app_search_v1_KSearchSportInlineCard_1pcue5_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, null); + } + serialize_g5t8hy_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_523().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.cover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.bgCover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.bgCover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.matchTop == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_572(), value.matchTop); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.matchBottom == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, $serializer_getInstance_572(), value.matchBottom); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !equals(value.extraLink, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 5, tmp2_cached[5], value.extraLink); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !equals(value.items, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 6, tmp2_cached[6], value.items); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !value.id.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 7, value.id); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.esportsInline == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 8, $serializer_getInstance_530(), value.esportsInline); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.inlineType === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 9, value.inlineType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.cardLayout == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 10, $serializer_getInstance_633(), value.cardLayout); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_g5t8hy_k$(encoder, value instanceof KSearchSportInlineCard ? value : THROW_CCE()); + } + } + class KSearchSportInlineCard { + constructor(title, cover, bgCover, matchTop, matchBottom, extraLink, items, id, esportsInline, inlineType, cardLayout) { + Companion_getInstance_523(); + title = title === VOID ? '' : title; + cover = cover === VOID ? '' : cover; + bgCover = bgCover === VOID ? '' : bgCover; + matchTop = matchTop === VOID ? null : matchTop; + matchBottom = matchBottom === VOID ? null : matchBottom; + extraLink = extraLink === VOID ? emptyList() : extraLink; + items = items === VOID ? emptyList() : items; + id = id === VOID ? new Long(0, 0) : id; + esportsInline = esportsInline === VOID ? null : esportsInline; + inlineType = inlineType === VOID ? '' : inlineType; + cardLayout = cardLayout === VOID ? null : cardLayout; + this.title = title; + this.cover = cover; + this.bgCover = bgCover; + this.matchTop = matchTop; + this.matchBottom = matchBottom; + this.extraLink = extraLink; + this.items = items; + this.id = id; + this.esportsInline = esportsInline; + this.inlineType = inlineType; + this.cardLayout = cardLayout; + } + get_title_iz32un_k$() { + return this.title; + } + get_cover_ipug0e_k$() { + return this.cover; + } + get_bgCover_24epo7_k$() { + return this.bgCover; + } + get_matchTop_qw63mv_k$() { + return this.matchTop; + } + get_matchBottom_wz4nvr_k$() { + return this.matchBottom; + } + get_extraLink_4bkfi9_k$() { + return this.extraLink; + } + get_items_it823b_k$() { + return this.items; + } + get_id_kntnx8_k$() { + return this.id; + } + get_esportsInline_2087rg_k$() { + return this.esportsInline; + } + get_inlineType_7azxfo_k$() { + return this.inlineType; + } + get_cardLayout_d0npjx_k$() { + return this.cardLayout; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.cover; + } + component3_7eebsa_k$() { + return this.bgCover; + } + component4_7eebs9_k$() { + return this.matchTop; + } + component5_7eebs8_k$() { + return this.matchBottom; + } + component6_7eebs7_k$() { + return this.extraLink; + } + component7_7eebs6_k$() { + return this.items; + } + component8_7eebs5_k$() { + return this.id; + } + component9_7eebs4_k$() { + return this.esportsInline; + } + component10_gazzfo_k$() { + return this.inlineType; + } + component11_gazzfn_k$() { + return this.cardLayout; + } + copy_602afu_k$(title, cover, bgCover, matchTop, matchBottom, extraLink, items, id, esportsInline, inlineType, cardLayout) { + return new KSearchSportInlineCard(title, cover, bgCover, matchTop, matchBottom, extraLink, items, id, esportsInline, inlineType, cardLayout); + } + copy(title, cover, bgCover, matchTop, matchBottom, extraLink, items, id, esportsInline, inlineType, cardLayout, $super) { + title = title === VOID ? this.title : title; + cover = cover === VOID ? this.cover : cover; + bgCover = bgCover === VOID ? this.bgCover : bgCover; + matchTop = matchTop === VOID ? this.matchTop : matchTop; + matchBottom = matchBottom === VOID ? this.matchBottom : matchBottom; + extraLink = extraLink === VOID ? this.extraLink : extraLink; + items = items === VOID ? this.items : items; + id = id === VOID ? this.id : id; + esportsInline = esportsInline === VOID ? this.esportsInline : esportsInline; + inlineType = inlineType === VOID ? this.inlineType : inlineType; + cardLayout = cardLayout === VOID ? this.cardLayout : cardLayout; + return this.copy_602afu_k$(title, cover, bgCover, matchTop, matchBottom, extraLink, items, id, esportsInline, inlineType, cardLayout); + } + toString() { + return 'KSearchSportInlineCard(title=' + this.title + ', cover=' + this.cover + ', bgCover=' + this.bgCover + ', matchTop=' + this.matchTop + ', matchBottom=' + this.matchBottom + ', extraLink=' + this.extraLink + ', items=' + this.items + ', id=' + this.id.toString() + ', esportsInline=' + this.esportsInline + ', inlineType=' + this.inlineType + ', cardLayout=' + this.cardLayout + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.cover) | 0; + result = imul(result, 31) + getStringHashCode(this.bgCover) | 0; + result = imul(result, 31) + (this.matchTop == null ? 0 : this.matchTop.hashCode()) | 0; + result = imul(result, 31) + (this.matchBottom == null ? 0 : this.matchBottom.hashCode()) | 0; + result = imul(result, 31) + hashCode(this.extraLink) | 0; + result = imul(result, 31) + hashCode(this.items) | 0; + result = imul(result, 31) + this.id.hashCode() | 0; + result = imul(result, 31) + (this.esportsInline == null ? 0 : this.esportsInline.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.inlineType) | 0; + result = imul(result, 31) + (this.cardLayout == null ? 0 : this.cardLayout.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSearchSportInlineCard)) + return false; + var tmp0_other_with_cast = other instanceof KSearchSportInlineCard ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + if (!(this.bgCover === tmp0_other_with_cast.bgCover)) + return false; + if (!equals(this.matchTop, tmp0_other_with_cast.matchTop)) + return false; + if (!equals(this.matchBottom, tmp0_other_with_cast.matchBottom)) + return false; + if (!equals(this.extraLink, tmp0_other_with_cast.extraLink)) + return false; + if (!equals(this.items, tmp0_other_with_cast.items)) + return false; + if (!this.id.equals(tmp0_other_with_cast.id)) + return false; + if (!equals(this.esportsInline, tmp0_other_with_cast.esportsInline)) + return false; + if (!(this.inlineType === tmp0_other_with_cast.inlineType)) + return false; + if (!equals(this.cardLayout, tmp0_other_with_cast.cardLayout)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KSearchSportInlineCard_1pcue5_k$(seen1, title, cover, bgCover, matchTop, matchBottom, extraLink, items, id, esportsInline, inlineType, cardLayout, serializationConstructorMarker) { + Companion_getInstance_523(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_510().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.cover = ''; + else + $this.cover = cover; + if (0 === (seen1 & 4)) + $this.bgCover = ''; + else + $this.bgCover = bgCover; + if (0 === (seen1 & 8)) + $this.matchTop = null; + else + $this.matchTop = matchTop; + if (0 === (seen1 & 16)) + $this.matchBottom = null; + else + $this.matchBottom = matchBottom; + if (0 === (seen1 & 32)) + $this.extraLink = emptyList(); + else + $this.extraLink = extraLink; + if (0 === (seen1 & 64)) + $this.items = emptyList(); + else + $this.items = items; + if (0 === (seen1 & 128)) + $this.id = new Long(0, 0); + else + $this.id = id; + if (0 === (seen1 & 256)) + $this.esportsInline = null; + else + $this.esportsInline = esportsInline; + if (0 === (seen1 & 512)) + $this.inlineType = ''; + else + $this.inlineType = inlineType; + if (0 === (seen1 & 1024)) + $this.cardLayout = null; + else + $this.cardLayout = cardLayout; + return $this; + } + } + class Companion_524 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.SearchHotBannerCard'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_511(); + } + } + class $serializer_511 { + constructor() { + $serializer_instance_511 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KSearchHotBannerCard', this, 5); + tmp0_serialDesc.addElement_5pzumi_k$('icon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('iconNight', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('moreText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('moreUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp9_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + } else + while (tmp1_flag) { + tmp2_index = tmp9_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp9_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSearchHotBannerCard.new_com_bapis_bilibili_polymer_app_search_v1_KSearchHotBannerCard_v71vld_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); + } + serialize_xabucy_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.icon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.icon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.iconNight === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.iconNight); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.moreText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.moreText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.moreUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.moreUrl); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_xabucy_k$(encoder, value instanceof KSearchHotBannerCard ? value : THROW_CCE()); + } + } + class KSearchHotBannerCard { + constructor(icon, iconNight, title, moreText, moreUrl) { + Companion_instance_524; + icon = icon === VOID ? '' : icon; + iconNight = iconNight === VOID ? '' : iconNight; + title = title === VOID ? '' : title; + moreText = moreText === VOID ? '' : moreText; + moreUrl = moreUrl === VOID ? '' : moreUrl; + this.icon = icon; + this.iconNight = iconNight; + this.title = title; + this.moreText = moreText; + this.moreUrl = moreUrl; + } + get_icon_wont8i_k$() { + return this.icon; + } + get_iconNight_equj62_k$() { + return this.iconNight; + } + get_title_iz32un_k$() { + return this.title; + } + get_moreText_zfacyd_k$() { + return this.moreText; + } + get_moreUrl_lrqju9_k$() { + return this.moreUrl; + } + component1_7eebsc_k$() { + return this.icon; + } + component2_7eebsb_k$() { + return this.iconNight; + } + component3_7eebsa_k$() { + return this.title; + } + component4_7eebs9_k$() { + return this.moreText; + } + component5_7eebs8_k$() { + return this.moreUrl; + } + copy_bit9gb_k$(icon, iconNight, title, moreText, moreUrl) { + return new KSearchHotBannerCard(icon, iconNight, title, moreText, moreUrl); + } + copy(icon, iconNight, title, moreText, moreUrl, $super) { + icon = icon === VOID ? this.icon : icon; + iconNight = iconNight === VOID ? this.iconNight : iconNight; + title = title === VOID ? this.title : title; + moreText = moreText === VOID ? this.moreText : moreText; + moreUrl = moreUrl === VOID ? this.moreUrl : moreUrl; + return this.copy_bit9gb_k$(icon, iconNight, title, moreText, moreUrl); + } + toString() { + return 'KSearchHotBannerCard(icon=' + this.icon + ', iconNight=' + this.iconNight + ', title=' + this.title + ', moreText=' + this.moreText + ', moreUrl=' + this.moreUrl + ')'; + } + hashCode() { + var result = getStringHashCode(this.icon); + result = imul(result, 31) + getStringHashCode(this.iconNight) | 0; + result = imul(result, 31) + getStringHashCode(this.title) | 0; + result = imul(result, 31) + getStringHashCode(this.moreText) | 0; + result = imul(result, 31) + getStringHashCode(this.moreUrl) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSearchHotBannerCard)) + return false; + var tmp0_other_with_cast = other instanceof KSearchHotBannerCard ? other : THROW_CCE(); + if (!(this.icon === tmp0_other_with_cast.icon)) + return false; + if (!(this.iconNight === tmp0_other_with_cast.iconNight)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.moreText === tmp0_other_with_cast.moreText)) + return false; + if (!(this.moreUrl === tmp0_other_with_cast.moreUrl)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KSearchHotBannerCard_v71vld_k$(seen1, icon, iconNight, title, moreText, moreUrl, serializationConstructorMarker) { + Companion_instance_524; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_511().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.icon = ''; + else + $this.icon = icon; + if (0 === (seen1 & 2)) + $this.iconNight = ''; + else + $this.iconNight = iconNight; + if (0 === (seen1 & 4)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 8)) + $this.moreText = ''; + else + $this.moreText = moreText; + if (0 === (seen1 & 16)) + $this.moreUrl = ''; + else + $this.moreUrl = moreUrl; + return $this; + } + } + class Companion_525 { + constructor() { + Companion_instance_525 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, null, null, null, null, null, new ArrayListSerializer($serializer_getInstance_606()), new ArrayListSerializer($serializer_getInstance_514()), null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.polymer.app.search.v1.SearchSubjectCard'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_512(); + } + } + class $serializer_512 { + constructor() { + $serializer_instance_512 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KSearchSubjectCard', this, 12); + tmp0_serialDesc.addElement_5pzumi_k$('id', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('desc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('hotText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('moreText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('moreUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('topicType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('badges', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('items', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('feedback', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('cardLayout', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_525().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), tmp0_cached[8], tmp0_cached[9], get_nullable($serializer_getInstance_610()), get_nullable($serializer_getInstance_633())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_local8 = null; + var tmp13_local9 = null; + var tmp14_local10 = null; + var tmp15_local11 = null; + var tmp16_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp17_cached = Companion_getInstance_525().$childSerializers_1; + if (tmp16_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp16_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp16_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 8, tmp17_cached[8], tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp16_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 9, tmp17_cached[9], tmp13_local9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp16_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 10, $serializer_getInstance_610(), tmp14_local10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp16_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 11, $serializer_getInstance_633(), tmp15_local11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + } else + while (tmp1_flag) { + tmp2_index = tmp16_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp16_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp16_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 8, tmp17_cached[8], tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp16_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 9, tmp17_cached[9], tmp13_local9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp16_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 10, $serializer_getInstance_610(), tmp14_local10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp16_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 11, $serializer_getInstance_633(), tmp15_local11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp16_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSearchSubjectCard.new_com_bapis_bilibili_polymer_app_search_v1_KSearchSubjectCard_g8fzyw_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, null); + } + serialize_lj70t7_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_525().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.id.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.id); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.cover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.desc === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.desc); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.hotText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.hotText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.moreText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.moreText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.moreUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.moreUrl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.topicType === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.topicType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !equals(value.badges, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 8, tmp2_cached[8], value.badges); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !equals(value.items, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 9, tmp2_cached[9], value.items); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.feedback == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 10, $serializer_getInstance_610(), value.feedback); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.cardLayout == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 11, $serializer_getInstance_633(), value.cardLayout); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_lj70t7_k$(encoder, value instanceof KSearchSubjectCard ? value : THROW_CCE()); + } + } + class KSearchSubjectCard { + constructor(id, title, cover, desc, hotText, moreText, moreUrl, topicType, badges, items, feedback, cardLayout) { + Companion_getInstance_525(); + id = id === VOID ? new Long(0, 0) : id; + title = title === VOID ? '' : title; + cover = cover === VOID ? '' : cover; + desc = desc === VOID ? '' : desc; + hotText = hotText === VOID ? '' : hotText; + moreText = moreText === VOID ? '' : moreText; + moreUrl = moreUrl === VOID ? '' : moreUrl; + topicType = topicType === VOID ? '' : topicType; + badges = badges === VOID ? emptyList() : badges; + items = items === VOID ? emptyList() : items; + feedback = feedback === VOID ? null : feedback; + cardLayout = cardLayout === VOID ? null : cardLayout; + this.id = id; + this.title = title; + this.cover = cover; + this.desc = desc; + this.hotText = hotText; + this.moreText = moreText; + this.moreUrl = moreUrl; + this.topicType = topicType; + this.badges = badges; + this.items = items; + this.feedback = feedback; + this.cardLayout = cardLayout; + } + get_id_kntnx8_k$() { + return this.id; + } + get_title_iz32un_k$() { + return this.title; + } + get_cover_ipug0e_k$() { + return this.cover; + } + get_desc_woknve_k$() { + return this.desc; + } + get_hotText_jfo94h_k$() { + return this.hotText; + } + get_moreText_zfacyd_k$() { + return this.moreText; + } + get_moreUrl_lrqju9_k$() { + return this.moreUrl; + } + get_topicType_exrqe8_k$() { + return this.topicType; + } + get_badges_bb95bt_k$() { + return this.badges; + } + get_items_it823b_k$() { + return this.items; + } + get_feedback_yyya42_k$() { + return this.feedback; + } + get_cardLayout_d0npjx_k$() { + return this.cardLayout; + } + component1_7eebsc_k$() { + return this.id; + } + component2_7eebsb_k$() { + return this.title; + } + component3_7eebsa_k$() { + return this.cover; + } + component4_7eebs9_k$() { + return this.desc; + } + component5_7eebs8_k$() { + return this.hotText; + } + component6_7eebs7_k$() { + return this.moreText; + } + component7_7eebs6_k$() { + return this.moreUrl; + } + component8_7eebs5_k$() { + return this.topicType; + } + component9_7eebs4_k$() { + return this.badges; + } + component10_gazzfo_k$() { + return this.items; + } + component11_gazzfn_k$() { + return this.feedback; + } + component12_gazzfm_k$() { + return this.cardLayout; + } + copy_ligp93_k$(id, title, cover, desc, hotText, moreText, moreUrl, topicType, badges, items, feedback, cardLayout) { + return new KSearchSubjectCard(id, title, cover, desc, hotText, moreText, moreUrl, topicType, badges, items, feedback, cardLayout); + } + copy(id, title, cover, desc, hotText, moreText, moreUrl, topicType, badges, items, feedback, cardLayout, $super) { + id = id === VOID ? this.id : id; + title = title === VOID ? this.title : title; + cover = cover === VOID ? this.cover : cover; + desc = desc === VOID ? this.desc : desc; + hotText = hotText === VOID ? this.hotText : hotText; + moreText = moreText === VOID ? this.moreText : moreText; + moreUrl = moreUrl === VOID ? this.moreUrl : moreUrl; + topicType = topicType === VOID ? this.topicType : topicType; + badges = badges === VOID ? this.badges : badges; + items = items === VOID ? this.items : items; + feedback = feedback === VOID ? this.feedback : feedback; + cardLayout = cardLayout === VOID ? this.cardLayout : cardLayout; + return this.copy_ligp93_k$(id, title, cover, desc, hotText, moreText, moreUrl, topicType, badges, items, feedback, cardLayout); + } + toString() { + return 'KSearchSubjectCard(id=' + this.id.toString() + ', title=' + this.title + ', cover=' + this.cover + ', desc=' + this.desc + ', hotText=' + this.hotText + ', moreText=' + this.moreText + ', moreUrl=' + this.moreUrl + ', topicType=' + this.topicType + ', badges=' + this.badges + ', items=' + this.items + ', feedback=' + this.feedback + ', cardLayout=' + this.cardLayout + ')'; + } + hashCode() { + var result = this.id.hashCode(); + result = imul(result, 31) + getStringHashCode(this.title) | 0; + result = imul(result, 31) + getStringHashCode(this.cover) | 0; + result = imul(result, 31) + getStringHashCode(this.desc) | 0; + result = imul(result, 31) + getStringHashCode(this.hotText) | 0; + result = imul(result, 31) + getStringHashCode(this.moreText) | 0; + result = imul(result, 31) + getStringHashCode(this.moreUrl) | 0; + result = imul(result, 31) + getStringHashCode(this.topicType) | 0; + result = imul(result, 31) + hashCode(this.badges) | 0; + result = imul(result, 31) + hashCode(this.items) | 0; + result = imul(result, 31) + (this.feedback == null ? 0 : this.feedback.hashCode()) | 0; + result = imul(result, 31) + (this.cardLayout == null ? 0 : this.cardLayout.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSearchSubjectCard)) + return false; + var tmp0_other_with_cast = other instanceof KSearchSubjectCard ? other : THROW_CCE(); + if (!this.id.equals(tmp0_other_with_cast.id)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + if (!(this.desc === tmp0_other_with_cast.desc)) + return false; + if (!(this.hotText === tmp0_other_with_cast.hotText)) + return false; + if (!(this.moreText === tmp0_other_with_cast.moreText)) + return false; + if (!(this.moreUrl === tmp0_other_with_cast.moreUrl)) + return false; + if (!(this.topicType === tmp0_other_with_cast.topicType)) + return false; + if (!equals(this.badges, tmp0_other_with_cast.badges)) + return false; + if (!equals(this.items, tmp0_other_with_cast.items)) + return false; + if (!equals(this.feedback, tmp0_other_with_cast.feedback)) + return false; + if (!equals(this.cardLayout, tmp0_other_with_cast.cardLayout)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KSearchSubjectCard_g8fzyw_k$(seen1, id, title, cover, desc, hotText, moreText, moreUrl, topicType, badges, items, feedback, cardLayout, serializationConstructorMarker) { + Companion_getInstance_525(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_512().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.id = new Long(0, 0); + else + $this.id = id; + if (0 === (seen1 & 2)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 4)) + $this.cover = ''; + else + $this.cover = cover; + if (0 === (seen1 & 8)) + $this.desc = ''; + else + $this.desc = desc; + if (0 === (seen1 & 16)) + $this.hotText = ''; + else + $this.hotText = hotText; + if (0 === (seen1 & 32)) + $this.moreText = ''; + else + $this.moreText = moreText; + if (0 === (seen1 & 64)) + $this.moreUrl = ''; + else + $this.moreUrl = moreUrl; + if (0 === (seen1 & 128)) + $this.topicType = ''; + else + $this.topicType = topicType; + if (0 === (seen1 & 256)) + $this.badges = emptyList(); + else + $this.badges = badges; + if (0 === (seen1 & 512)) + $this.items = emptyList(); + else + $this.items = items; + if (0 === (seen1 & 1024)) + $this.feedback = null; + else + $this.feedback = feedback; + if (0 === (seen1 & 2048)) + $this.cardLayout = null; + else + $this.cardLayout = cardLayout; + return $this; + } + } + class Companion_526 { + constructor() { + Companion_instance_526 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, new ArrayListSerializer($serializer_getInstance_613()), null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.polymer.app.search.v1.SearchPediaPicCard'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_513(); + } + } + class $serializer_513 { + constructor() { + $serializer_instance_513 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KSearchPediaPicCard', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('picNavigation', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('cardLayout', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_526().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), tmp0_cached[1], get_nullable($serializer_getInstance_633())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp8_cached = Companion_getInstance_526().$childSerializers_1; + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp8_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_633(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp8_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_633(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSearchPediaPicCard.new_com_bapis_bilibili_polymer_app_search_v1_KSearchPediaPicCard_6f1sf1_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_r3xdz0_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_526().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.cover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !equals(value.picNavigation, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 1, tmp2_cached[1], value.picNavigation); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.cardLayout == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_633(), value.cardLayout); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_r3xdz0_k$(encoder, value instanceof KSearchPediaPicCard ? value : THROW_CCE()); + } + } + class KSearchPediaPicCard { + constructor(cover, picNavigation, cardLayout) { + Companion_getInstance_526(); + cover = cover === VOID ? '' : cover; + picNavigation = picNavigation === VOID ? emptyList() : picNavigation; + cardLayout = cardLayout === VOID ? null : cardLayout; + this.cover = cover; + this.picNavigation = picNavigation; + this.cardLayout = cardLayout; + } + get_cover_ipug0e_k$() { + return this.cover; + } + get_picNavigation_2gzawb_k$() { + return this.picNavigation; + } + get_cardLayout_d0npjx_k$() { + return this.cardLayout; + } + component1_7eebsc_k$() { + return this.cover; + } + component2_7eebsb_k$() { + return this.picNavigation; + } + component3_7eebsa_k$() { + return this.cardLayout; + } + copy_j13ani_k$(cover, picNavigation, cardLayout) { + return new KSearchPediaPicCard(cover, picNavigation, cardLayout); + } + copy(cover, picNavigation, cardLayout, $super) { + cover = cover === VOID ? this.cover : cover; + picNavigation = picNavigation === VOID ? this.picNavigation : picNavigation; + cardLayout = cardLayout === VOID ? this.cardLayout : cardLayout; + return this.copy_j13ani_k$(cover, picNavigation, cardLayout); + } + toString() { + return 'KSearchPediaPicCard(cover=' + this.cover + ', picNavigation=' + this.picNavigation + ', cardLayout=' + this.cardLayout + ')'; + } + hashCode() { + var result = getStringHashCode(this.cover); + result = imul(result, 31) + hashCode(this.picNavigation) | 0; + result = imul(result, 31) + (this.cardLayout == null ? 0 : this.cardLayout.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSearchPediaPicCard)) + return false; + var tmp0_other_with_cast = other instanceof KSearchPediaPicCard ? other : THROW_CCE(); + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + if (!equals(this.picNavigation, tmp0_other_with_cast.picNavigation)) + return false; + if (!equals(this.cardLayout, tmp0_other_with_cast.cardLayout)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KSearchPediaPicCard_6f1sf1_k$(seen1, cover, picNavigation, cardLayout, serializationConstructorMarker) { + Companion_getInstance_526(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_513().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.cover = ''; + else + $this.cover = cover; + if (0 === (seen1 & 2)) + $this.picNavigation = emptyList(); + else + $this.picNavigation = picNavigation; + if (0 === (seen1 & 4)) + $this.cardLayout = null; + else + $this.cardLayout = cardLayout; + return $this; + } + } + class Companion_527 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.TopicItem'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_514(); + } + } + class $serializer_514 { + constructor() { + $serializer_instance_514 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KTopicItem', this, 11); + tmp0_serialDesc.addElement_5pzumi_k$('uri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('param', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('goto', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('linktype', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('position', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('trackid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('id', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('contentType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('upName', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('publishText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = 0; + var tmp9_local5 = null; + var tmp10_local6 = new Long(0, 0); + var tmp11_local7 = null; + var tmp12_local8 = 0; + var tmp13_local9 = null; + var tmp14_local10 = null; + var tmp15_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp15_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + } else + while (tmp1_flag) { + tmp2_index = tmp15_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp15_input.endStructure_1xqz0n_k$(tmp0_desc); + return KTopicItem.new_com_bapis_bilibili_polymer_app_search_v1_KTopicItem_ip1xtz_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, null); + } + serialize_4ihttf_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.uri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.uri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.param === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.param); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.goto === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.goto); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.linktype === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.linktype); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.position === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 4, value.position); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.trackid === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.trackid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !value.id.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 6, value.id); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.contentType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 8, value.contentType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.upName === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 9, value.upName); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.publishText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 10, value.publishText); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_4ihttf_k$(encoder, value instanceof KTopicItem ? value : THROW_CCE()); + } + } + class KTopicItem { + constructor(uri, param, goto, linktype, position, trackid, id, title, contentType, upName, publishText) { + Companion_instance_527; + uri = uri === VOID ? '' : uri; + param = param === VOID ? '' : param; + goto = goto === VOID ? '' : goto; + linktype = linktype === VOID ? '' : linktype; + position = position === VOID ? 0 : position; + trackid = trackid === VOID ? '' : trackid; + id = id === VOID ? new Long(0, 0) : id; + title = title === VOID ? '' : title; + contentType = contentType === VOID ? 0 : contentType; + upName = upName === VOID ? '' : upName; + publishText = publishText === VOID ? '' : publishText; + this.uri = uri; + this.param = param; + this.goto = goto; + this.linktype = linktype; + this.position = position; + this.trackid = trackid; + this.id = id; + this.title = title; + this.contentType = contentType; + this.upName = upName; + this.publishText = publishText; + } + get_uri_18iuil_k$() { + return this.uri; + } + get_param_iwqquc_k$() { + return this.param; + } + get_goto_womsa4_k$() { + return this.goto; + } + get_linktype_c1db7n_k$() { + return this.linktype; + } + get_position_jfponi_k$() { + return this.position; + } + get_trackid_gdy1c3_k$() { + return this.trackid; + } + get_id_kntnx8_k$() { + return this.id; + } + get_title_iz32un_k$() { + return this.title; + } + get_contentType_7git4a_k$() { + return this.contentType; + } + get_upName_kiypqn_k$() { + return this.upName; + } + get_publishText_3q97cj_k$() { + return this.publishText; + } + component1_7eebsc_k$() { + return this.uri; + } + component2_7eebsb_k$() { + return this.param; + } + component3_7eebsa_k$() { + return this.goto; + } + component4_7eebs9_k$() { + return this.linktype; + } + component5_7eebs8_k$() { + return this.position; + } + component6_7eebs7_k$() { + return this.trackid; + } + component7_7eebs6_k$() { + return this.id; + } + component8_7eebs5_k$() { + return this.title; + } + component9_7eebs4_k$() { + return this.contentType; + } + component10_gazzfo_k$() { + return this.upName; + } + component11_gazzfn_k$() { + return this.publishText; + } + copy_wpriml_k$(uri, param, goto, linktype, position, trackid, id, title, contentType, upName, publishText) { + return new KTopicItem(uri, param, goto, linktype, position, trackid, id, title, contentType, upName, publishText); + } + copy(uri, param, goto, linktype, position, trackid, id, title, contentType, upName, publishText, $super) { + uri = uri === VOID ? this.uri : uri; + param = param === VOID ? this.param : param; + goto = goto === VOID ? this.goto : goto; + linktype = linktype === VOID ? this.linktype : linktype; + position = position === VOID ? this.position : position; + trackid = trackid === VOID ? this.trackid : trackid; + id = id === VOID ? this.id : id; + title = title === VOID ? this.title : title; + contentType = contentType === VOID ? this.contentType : contentType; + upName = upName === VOID ? this.upName : upName; + publishText = publishText === VOID ? this.publishText : publishText; + return this.copy_wpriml_k$(uri, param, goto, linktype, position, trackid, id, title, contentType, upName, publishText); + } + toString() { + return 'KTopicItem(uri=' + this.uri + ', param=' + this.param + ', goto=' + this.goto + ', linktype=' + this.linktype + ', position=' + this.position + ', trackid=' + this.trackid + ', id=' + this.id.toString() + ', title=' + this.title + ', contentType=' + this.contentType + ', upName=' + this.upName + ', publishText=' + this.publishText + ')'; + } + hashCode() { + var result = getStringHashCode(this.uri); + result = imul(result, 31) + getStringHashCode(this.param) | 0; + result = imul(result, 31) + getStringHashCode(this.goto) | 0; + result = imul(result, 31) + getStringHashCode(this.linktype) | 0; + result = imul(result, 31) + this.position | 0; + result = imul(result, 31) + getStringHashCode(this.trackid) | 0; + result = imul(result, 31) + this.id.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.title) | 0; + result = imul(result, 31) + this.contentType | 0; + result = imul(result, 31) + getStringHashCode(this.upName) | 0; + result = imul(result, 31) + getStringHashCode(this.publishText) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KTopicItem)) + return false; + var tmp0_other_with_cast = other instanceof KTopicItem ? other : THROW_CCE(); + if (!(this.uri === tmp0_other_with_cast.uri)) + return false; + if (!(this.param === tmp0_other_with_cast.param)) + return false; + if (!(this.goto === tmp0_other_with_cast.goto)) + return false; + if (!(this.linktype === tmp0_other_with_cast.linktype)) + return false; + if (!(this.position === tmp0_other_with_cast.position)) + return false; + if (!(this.trackid === tmp0_other_with_cast.trackid)) + return false; + if (!this.id.equals(tmp0_other_with_cast.id)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.contentType === tmp0_other_with_cast.contentType)) + return false; + if (!(this.upName === tmp0_other_with_cast.upName)) + return false; + if (!(this.publishText === tmp0_other_with_cast.publishText)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KTopicItem_ip1xtz_k$(seen1, uri, param, goto, linktype, position, trackid, id, title, contentType, upName, publishText, serializationConstructorMarker) { + Companion_instance_527; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_514().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.uri = ''; + else + $this.uri = uri; + if (0 === (seen1 & 2)) + $this.param = ''; + else + $this.param = param; + if (0 === (seen1 & 4)) + $this.goto = ''; + else + $this.goto = goto; + if (0 === (seen1 & 8)) + $this.linktype = ''; + else + $this.linktype = linktype; + if (0 === (seen1 & 16)) + $this.position = 0; + else + $this.position = position; + if (0 === (seen1 & 32)) + $this.trackid = ''; + else + $this.trackid = trackid; + if (0 === (seen1 & 64)) + $this.id = new Long(0, 0); + else + $this.id = id; + if (0 === (seen1 & 128)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 256)) + $this.contentType = 0; + else + $this.contentType = contentType; + if (0 === (seen1 & 512)) + $this.upName = ''; + else + $this.upName = upName; + if (0 === (seen1 & 1024)) + $this.publishText = ''; + else + $this.publishText = publishText; + return $this; + } + } + class Companion_528 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.MatchInfoObj'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_515(); + } + } + class $serializer_515 { + constructor() { + $serializer_instance_515 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KMatchInfoObj', this, 8); + tmp0_serialDesc.addElement_5pzumi_k$('id', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('status', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('matchStage', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('team1', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('team2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('matchLabel', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('matchTime', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('matchButton', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_571()), get_nullable($serializer_getInstance_571()), get_nullable($serializer_getInstance_572()), get_nullable($serializer_getInstance_572()), get_nullable($serializer_getInstance_572())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = 0; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp12_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_571(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_571(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_572(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_572(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_572(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + } else + while (tmp1_flag) { + tmp2_index = tmp12_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_571(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_571(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_572(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_572(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_572(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp12_input.endStructure_1xqz0n_k$(tmp0_desc); + return KMatchInfoObj.new_com_bapis_bilibili_polymer_app_search_v1_KMatchInfoObj_gf1vzj_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null); + } + serialize_2g2k5v_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.id.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.id); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.status === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.status); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.matchStage === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.matchStage); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.team1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_571(), value.team1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.team2 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, $serializer_getInstance_571(), value.team2); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.matchLabel == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 5, $serializer_getInstance_572(), value.matchLabel); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.matchTime == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 6, $serializer_getInstance_572(), value.matchTime); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.matchButton == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 7, $serializer_getInstance_572(), value.matchButton); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_2g2k5v_k$(encoder, value instanceof KMatchInfoObj ? value : THROW_CCE()); + } + } + class KMatchInfoObj { + constructor(id, status, matchStage, team1, team2, matchLabel, matchTime, matchButton) { + Companion_instance_528; + id = id === VOID ? new Long(0, 0) : id; + status = status === VOID ? 0 : status; + matchStage = matchStage === VOID ? '' : matchStage; + team1 = team1 === VOID ? null : team1; + team2 = team2 === VOID ? null : team2; + matchLabel = matchLabel === VOID ? null : matchLabel; + matchTime = matchTime === VOID ? null : matchTime; + matchButton = matchButton === VOID ? null : matchButton; + this.id = id; + this.status = status; + this.matchStage = matchStage; + this.team1 = team1; + this.team2 = team2; + this.matchLabel = matchLabel; + this.matchTime = matchTime; + this.matchButton = matchButton; + } + get_id_kntnx8_k$() { + return this.id; + } + get_status_jnf6d7_k$() { + return this.status; + } + get_matchStage_aho3ia_k$() { + return this.matchStage; + } + get_team1_iz04sr_k$() { + return this.team1; + } + get_team2_iz04ss_k$() { + return this.team2; + } + get_matchLabel_adhfaw_k$() { + return this.matchLabel; + } + get_matchTime_io3ekp_k$() { + return this.matchTime; + } + get_matchButton_x2fffy_k$() { + return this.matchButton; + } + component1_7eebsc_k$() { + return this.id; + } + component2_7eebsb_k$() { + return this.status; + } + component3_7eebsa_k$() { + return this.matchStage; + } + component4_7eebs9_k$() { + return this.team1; + } + component5_7eebs8_k$() { + return this.team2; + } + component6_7eebs7_k$() { + return this.matchLabel; + } + component7_7eebs6_k$() { + return this.matchTime; + } + component8_7eebs5_k$() { + return this.matchButton; + } + copy_j8nn60_k$(id, status, matchStage, team1, team2, matchLabel, matchTime, matchButton) { + return new KMatchInfoObj(id, status, matchStage, team1, team2, matchLabel, matchTime, matchButton); + } + copy(id, status, matchStage, team1, team2, matchLabel, matchTime, matchButton, $super) { + id = id === VOID ? this.id : id; + status = status === VOID ? this.status : status; + matchStage = matchStage === VOID ? this.matchStage : matchStage; + team1 = team1 === VOID ? this.team1 : team1; + team2 = team2 === VOID ? this.team2 : team2; + matchLabel = matchLabel === VOID ? this.matchLabel : matchLabel; + matchTime = matchTime === VOID ? this.matchTime : matchTime; + matchButton = matchButton === VOID ? this.matchButton : matchButton; + return this.copy_j8nn60_k$(id, status, matchStage, team1, team2, matchLabel, matchTime, matchButton); + } + toString() { + return 'KMatchInfoObj(id=' + this.id.toString() + ', status=' + this.status + ', matchStage=' + this.matchStage + ', team1=' + this.team1 + ', team2=' + this.team2 + ', matchLabel=' + this.matchLabel + ', matchTime=' + this.matchTime + ', matchButton=' + this.matchButton + ')'; + } + hashCode() { + var result = this.id.hashCode(); + result = imul(result, 31) + this.status | 0; + result = imul(result, 31) + getStringHashCode(this.matchStage) | 0; + result = imul(result, 31) + (this.team1 == null ? 0 : this.team1.hashCode()) | 0; + result = imul(result, 31) + (this.team2 == null ? 0 : this.team2.hashCode()) | 0; + result = imul(result, 31) + (this.matchLabel == null ? 0 : this.matchLabel.hashCode()) | 0; + result = imul(result, 31) + (this.matchTime == null ? 0 : this.matchTime.hashCode()) | 0; + result = imul(result, 31) + (this.matchButton == null ? 0 : this.matchButton.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KMatchInfoObj)) + return false; + var tmp0_other_with_cast = other instanceof KMatchInfoObj ? other : THROW_CCE(); + if (!this.id.equals(tmp0_other_with_cast.id)) + return false; + if (!(this.status === tmp0_other_with_cast.status)) + return false; + if (!(this.matchStage === tmp0_other_with_cast.matchStage)) + return false; + if (!equals(this.team1, tmp0_other_with_cast.team1)) + return false; + if (!equals(this.team2, tmp0_other_with_cast.team2)) + return false; + if (!equals(this.matchLabel, tmp0_other_with_cast.matchLabel)) + return false; + if (!equals(this.matchTime, tmp0_other_with_cast.matchTime)) + return false; + if (!equals(this.matchButton, tmp0_other_with_cast.matchButton)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KMatchInfoObj_gf1vzj_k$(seen1, id, status, matchStage, team1, team2, matchLabel, matchTime, matchButton, serializationConstructorMarker) { + Companion_instance_528; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_515().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.id = new Long(0, 0); + else + $this.id = id; + if (0 === (seen1 & 2)) + $this.status = 0; + else + $this.status = status; + if (0 === (seen1 & 4)) + $this.matchStage = ''; + else + $this.matchStage = matchStage; + if (0 === (seen1 & 8)) + $this.team1 = null; + else + $this.team1 = team1; + if (0 === (seen1 & 16)) + $this.team2 = null; + else + $this.team2 = team2; + if (0 === (seen1 & 32)) + $this.matchLabel = null; + else + $this.matchLabel = matchLabel; + if (0 === (seen1 & 64)) + $this.matchTime = null; + else + $this.matchTime = matchTime; + if (0 === (seen1 & 128)) + $this.matchButton = null; + else + $this.matchButton = matchButton; + return $this; + } + } + class Companion_529 { + constructor() { + Companion_instance_529 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, new ArrayListSerializer($serializer_getInstance_525()), null, null, null, null, null, new ArrayListSerializer($serializer_getInstance_566()), null, null, null, null, new ArrayListSerializer(StringSerializer_getInstance()), null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.polymer.app.search.v1.SearchAuthorNewCard'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_516(); + } + } + class $serializer_516 { + constructor() { + $serializer_instance_516 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KSearchAuthorNewCard', this, 34); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('liveFace', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('liveUri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('liveLink', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('fans', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('level', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('sign', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('isUp', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('archives', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('mid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('roomid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + tmp0_serialDesc.addElement_5pzumi_k$('relation', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(13)); + tmp0_serialDesc.addElement_5pzumi_k$('officialVerify', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(14)); + tmp0_serialDesc.addElement_5pzumi_k$('faceNftNew', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(15)); + tmp0_serialDesc.addElement_5pzumi_k$('nftFaceIcon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(16)); + tmp0_serialDesc.addElement_5pzumi_k$('isSeniorMember', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(17)); + tmp0_serialDesc.addElement_5pzumi_k$('background', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(18)); + tmp0_serialDesc.addElement_5pzumi_k$('avStyle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(19)); + tmp0_serialDesc.addElement_5pzumi_k$('space', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(20)); + tmp0_serialDesc.addElement_5pzumi_k$('avItems', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(21)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('notice', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(22)); + tmp0_serialDesc.addElement_5pzumi_k$('sharePlane', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(23)); + tmp0_serialDesc.addElement_5pzumi_k$('inlineType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(24)); + tmp0_serialDesc.addElement_5pzumi_k$('inlineLive', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(25)); + tmp0_serialDesc.addElement_5pzumi_k$('isInlineLive', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(26)); + tmp0_serialDesc.addElement_5pzumi_k$('threePoint', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(27)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('liveStatus', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(28)); + tmp0_serialDesc.addElement_5pzumi_k$('vip', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(29)); + tmp0_serialDesc.addElement_5pzumi_k$('attentions', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(30)); + tmp0_serialDesc.addElement_5pzumi_k$('feedback', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(31)); + tmp0_serialDesc.addElement_5pzumi_k$('userCardInfo', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(32)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('cardLayout', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(33)); + tmp0_serialDesc.addElement_5pzumi_k$('avatarInfo', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(34)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_529().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), BooleanSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable($serializer_getInstance_567()), get_nullable($serializer_getInstance_604()), IntSerializer_getInstance(), get_nullable($serializer_getInstance_601()), IntSerializer_getInstance(), get_nullable($serializer_getInstance_600()), IntSerializer_getInstance(), get_nullable($serializer_getInstance_524()), tmp0_cached[20], get_nullable($serializer_getInstance_599()), get_nullable($serializer_getInstance_607()), StringSerializer_getInstance(), get_nullable($serializer_getInstance_530()), IntSerializer_getInstance(), tmp0_cached[26], IntSerializer_getInstance(), get_nullable($serializer_getInstance_602()), IntSerializer_getInstance(), get_nullable($serializer_getInstance_610()), tmp0_cached[31], get_nullable($serializer_getInstance_633()), get_nullable($serializer_getInstance_181())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_bitMask1 = 0; + var tmp5_local0 = null; + var tmp6_local1 = null; + var tmp7_local2 = 0; + var tmp8_local3 = null; + var tmp9_local4 = null; + var tmp10_local5 = 0; + var tmp11_local6 = 0; + var tmp12_local7 = null; + var tmp13_local8 = false; + var tmp14_local9 = 0; + var tmp15_local10 = new Long(0, 0); + var tmp16_local11 = new Long(0, 0); + var tmp17_local12 = null; + var tmp18_local13 = null; + var tmp19_local14 = 0; + var tmp20_local15 = null; + var tmp21_local16 = 0; + var tmp22_local17 = null; + var tmp23_local18 = 0; + var tmp24_local19 = null; + var tmp25_local20 = null; + var tmp26_local21 = null; + var tmp27_local22 = null; + var tmp28_local23 = null; + var tmp29_local24 = null; + var tmp30_local25 = 0; + var tmp31_local26 = null; + var tmp32_local27 = 0; + var tmp33_local28 = null; + var tmp34_local29 = 0; + var tmp35_local30 = null; + var tmp36_local31 = null; + var tmp37_local32 = null; + var tmp38_local33 = null; + var tmp39_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp40_cached = Companion_getInstance_529().$childSerializers_1; + if (tmp39_input.decodeSequentially_xlblqy_k$()) { + tmp5_local0 = tmp39_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp6_local1 = tmp39_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp7_local2 = tmp39_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp8_local3 = tmp39_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp9_local4 = tmp39_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp10_local5 = tmp39_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp11_local6 = tmp39_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp12_local7 = tmp39_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp13_local8 = tmp39_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp14_local9 = tmp39_input.decodeIntElement_941u6a_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp15_local10 = tmp39_input.decodeLongElement_994anb_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp16_local11 = tmp39_input.decodeLongElement_994anb_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + tmp17_local12 = tmp39_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 12, $serializer_getInstance_567(), tmp17_local12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + tmp18_local13 = tmp39_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 13, $serializer_getInstance_604(), tmp18_local13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + tmp19_local14 = tmp39_input.decodeIntElement_941u6a_k$(tmp0_desc, 14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + tmp20_local15 = tmp39_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 15, $serializer_getInstance_601(), tmp20_local15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + tmp21_local16 = tmp39_input.decodeIntElement_941u6a_k$(tmp0_desc, 16); + tmp3_bitMask0 = tmp3_bitMask0 | 65536; + tmp22_local17 = tmp39_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 17, $serializer_getInstance_600(), tmp22_local17); + tmp3_bitMask0 = tmp3_bitMask0 | 131072; + tmp23_local18 = tmp39_input.decodeIntElement_941u6a_k$(tmp0_desc, 18); + tmp3_bitMask0 = tmp3_bitMask0 | 262144; + tmp24_local19 = tmp39_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 19, $serializer_getInstance_524(), tmp24_local19); + tmp3_bitMask0 = tmp3_bitMask0 | 524288; + tmp25_local20 = tmp39_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 20, tmp40_cached[20], tmp25_local20); + tmp3_bitMask0 = tmp3_bitMask0 | 1048576; + tmp26_local21 = tmp39_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 21, $serializer_getInstance_599(), tmp26_local21); + tmp3_bitMask0 = tmp3_bitMask0 | 2097152; + tmp27_local22 = tmp39_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 22, $serializer_getInstance_607(), tmp27_local22); + tmp3_bitMask0 = tmp3_bitMask0 | 4194304; + tmp28_local23 = tmp39_input.decodeStringElement_3oenpg_k$(tmp0_desc, 23); + tmp3_bitMask0 = tmp3_bitMask0 | 8388608; + tmp29_local24 = tmp39_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 24, $serializer_getInstance_530(), tmp29_local24); + tmp3_bitMask0 = tmp3_bitMask0 | 16777216; + tmp30_local25 = tmp39_input.decodeIntElement_941u6a_k$(tmp0_desc, 25); + tmp3_bitMask0 = tmp3_bitMask0 | 33554432; + tmp31_local26 = tmp39_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 26, tmp40_cached[26], tmp31_local26); + tmp3_bitMask0 = tmp3_bitMask0 | 67108864; + tmp32_local27 = tmp39_input.decodeIntElement_941u6a_k$(tmp0_desc, 27); + tmp3_bitMask0 = tmp3_bitMask0 | 134217728; + tmp33_local28 = tmp39_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 28, $serializer_getInstance_602(), tmp33_local28); + tmp3_bitMask0 = tmp3_bitMask0 | 268435456; + tmp34_local29 = tmp39_input.decodeIntElement_941u6a_k$(tmp0_desc, 29); + tmp3_bitMask0 = tmp3_bitMask0 | 536870912; + tmp35_local30 = tmp39_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 30, $serializer_getInstance_610(), tmp35_local30); + tmp3_bitMask0 = tmp3_bitMask0 | 1073741824; + tmp36_local31 = tmp39_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 31, tmp40_cached[31], tmp36_local31); + tmp3_bitMask0 = tmp3_bitMask0 | -2147483648; + tmp37_local32 = tmp39_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 32, $serializer_getInstance_633(), tmp37_local32); + tmp4_bitMask1 = tmp4_bitMask1 | 1; + tmp38_local33 = tmp39_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 33, $serializer_getInstance_181(), tmp38_local33); + tmp4_bitMask1 = tmp4_bitMask1 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp39_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp5_local0 = tmp39_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp6_local1 = tmp39_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp7_local2 = tmp39_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp8_local3 = tmp39_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp9_local4 = tmp39_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp10_local5 = tmp39_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp11_local6 = tmp39_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp12_local7 = tmp39_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp13_local8 = tmp39_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp14_local9 = tmp39_input.decodeIntElement_941u6a_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp15_local10 = tmp39_input.decodeLongElement_994anb_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp16_local11 = tmp39_input.decodeLongElement_994anb_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + case 12: + tmp17_local12 = tmp39_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 12, $serializer_getInstance_567(), tmp17_local12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + break; + case 13: + tmp18_local13 = tmp39_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 13, $serializer_getInstance_604(), tmp18_local13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + break; + case 14: + tmp19_local14 = tmp39_input.decodeIntElement_941u6a_k$(tmp0_desc, 14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + break; + case 15: + tmp20_local15 = tmp39_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 15, $serializer_getInstance_601(), tmp20_local15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + break; + case 16: + tmp21_local16 = tmp39_input.decodeIntElement_941u6a_k$(tmp0_desc, 16); + tmp3_bitMask0 = tmp3_bitMask0 | 65536; + break; + case 17: + tmp22_local17 = tmp39_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 17, $serializer_getInstance_600(), tmp22_local17); + tmp3_bitMask0 = tmp3_bitMask0 | 131072; + break; + case 18: + tmp23_local18 = tmp39_input.decodeIntElement_941u6a_k$(tmp0_desc, 18); + tmp3_bitMask0 = tmp3_bitMask0 | 262144; + break; + case 19: + tmp24_local19 = tmp39_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 19, $serializer_getInstance_524(), tmp24_local19); + tmp3_bitMask0 = tmp3_bitMask0 | 524288; + break; + case 20: + tmp25_local20 = tmp39_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 20, tmp40_cached[20], tmp25_local20); + tmp3_bitMask0 = tmp3_bitMask0 | 1048576; + break; + case 21: + tmp26_local21 = tmp39_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 21, $serializer_getInstance_599(), tmp26_local21); + tmp3_bitMask0 = tmp3_bitMask0 | 2097152; + break; + case 22: + tmp27_local22 = tmp39_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 22, $serializer_getInstance_607(), tmp27_local22); + tmp3_bitMask0 = tmp3_bitMask0 | 4194304; + break; + case 23: + tmp28_local23 = tmp39_input.decodeStringElement_3oenpg_k$(tmp0_desc, 23); + tmp3_bitMask0 = tmp3_bitMask0 | 8388608; + break; + case 24: + tmp29_local24 = tmp39_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 24, $serializer_getInstance_530(), tmp29_local24); + tmp3_bitMask0 = tmp3_bitMask0 | 16777216; + break; + case 25: + tmp30_local25 = tmp39_input.decodeIntElement_941u6a_k$(tmp0_desc, 25); + tmp3_bitMask0 = tmp3_bitMask0 | 33554432; + break; + case 26: + tmp31_local26 = tmp39_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 26, tmp40_cached[26], tmp31_local26); + tmp3_bitMask0 = tmp3_bitMask0 | 67108864; + break; + case 27: + tmp32_local27 = tmp39_input.decodeIntElement_941u6a_k$(tmp0_desc, 27); + tmp3_bitMask0 = tmp3_bitMask0 | 134217728; + break; + case 28: + tmp33_local28 = tmp39_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 28, $serializer_getInstance_602(), tmp33_local28); + tmp3_bitMask0 = tmp3_bitMask0 | 268435456; + break; + case 29: + tmp34_local29 = tmp39_input.decodeIntElement_941u6a_k$(tmp0_desc, 29); + tmp3_bitMask0 = tmp3_bitMask0 | 536870912; + break; + case 30: + tmp35_local30 = tmp39_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 30, $serializer_getInstance_610(), tmp35_local30); + tmp3_bitMask0 = tmp3_bitMask0 | 1073741824; + break; + case 31: + tmp36_local31 = tmp39_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 31, tmp40_cached[31], tmp36_local31); + tmp3_bitMask0 = tmp3_bitMask0 | -2147483648; + break; + case 32: + tmp37_local32 = tmp39_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 32, $serializer_getInstance_633(), tmp37_local32); + tmp4_bitMask1 = tmp4_bitMask1 | 1; + break; + case 33: + tmp38_local33 = tmp39_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 33, $serializer_getInstance_181(), tmp38_local33); + tmp4_bitMask1 = tmp4_bitMask1 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp39_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSearchAuthorNewCard.new_com_bapis_bilibili_polymer_app_search_v1_KSearchAuthorNewCard_r6x2pc_k$(tmp3_bitMask0, tmp4_bitMask1, tmp5_local0, tmp6_local1, tmp7_local2, tmp8_local3, tmp9_local4, tmp10_local5, tmp11_local6, tmp12_local7, tmp13_local8, tmp14_local9, tmp15_local10, tmp16_local11, tmp17_local12, tmp18_local13, tmp19_local14, tmp20_local15, tmp21_local16, tmp22_local17, tmp23_local18, tmp24_local19, tmp25_local20, tmp26_local21, tmp27_local22, tmp28_local23, tmp29_local24, tmp30_local25, tmp31_local26, tmp32_local27, tmp33_local28, tmp34_local29, tmp35_local30, tmp36_local31, tmp37_local32, tmp38_local33, null); + } + serialize_gxoi0e_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_529().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.cover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.liveFace === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.liveFace); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.liveUri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.liveUri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.liveLink === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.liveLink); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.fans === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 5, value.fans); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.level === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 6, value.level); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.sign === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.sign); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.isUp === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 8, value.isUp); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.archives === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 9, value.archives); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !value.mid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 10, value.mid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !value.roomid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 11, value.roomid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !(value.relation == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 12, $serializer_getInstance_567(), value.relation); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 13) ? true : !(value.officialVerify == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 13, $serializer_getInstance_604(), value.officialVerify); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 14) ? true : !(value.faceNftNew === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 14, value.faceNftNew); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 15) ? true : !(value.nftFaceIcon == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 15, $serializer_getInstance_601(), value.nftFaceIcon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 16) ? true : !(value.isSeniorMember === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 16, value.isSeniorMember); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 17) ? true : !(value.background == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 17, $serializer_getInstance_600(), value.background); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 18) ? true : !(value.avStyle === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 18, value.avStyle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 19) ? true : !(value.space == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 19, $serializer_getInstance_524(), value.space); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 20) ? true : !equals(value.avItems, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 20, tmp2_cached[20], value.avItems); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 21) ? true : !(value.notice == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 21, $serializer_getInstance_599(), value.notice); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 22) ? true : !(value.sharePlane == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 22, $serializer_getInstance_607(), value.sharePlane); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 23) ? true : !(value.inlineType === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 23, value.inlineType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 24) ? true : !(value.inlineLive == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 24, $serializer_getInstance_530(), value.inlineLive); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 25) ? true : !(value.isInlineLive === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 25, value.isInlineLive); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 26) ? true : !equals(value.threePoint, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 26, tmp2_cached[26], value.threePoint); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 27) ? true : !(value.liveStatus === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 27, value.liveStatus); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 28) ? true : !(value.vip == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 28, $serializer_getInstance_602(), value.vip); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 29) ? true : !(value.attentions === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 29, value.attentions); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 30) ? true : !(value.feedback == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 30, $serializer_getInstance_610(), value.feedback); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 31) ? true : !equals(value.userCardInfo, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 31, tmp2_cached[31], value.userCardInfo); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 32) ? true : !(value.cardLayout == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 32, $serializer_getInstance_633(), value.cardLayout); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 33) ? true : !(value.avatarInfo == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 33, $serializer_getInstance_181(), value.avatarInfo); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_gxoi0e_k$(encoder, value instanceof KSearchAuthorNewCard ? value : THROW_CCE()); + } + } + class KSearchAuthorNewCard { + constructor(title, cover, liveFace, liveUri, liveLink, fans, level, sign, isUp, archives, mid, roomid, relation, officialVerify, faceNftNew, nftFaceIcon, isSeniorMember, background, avStyle, space, avItems, notice, sharePlane, inlineType, inlineLive, isInlineLive, threePoint, liveStatus, vip, attentions, feedback, userCardInfo, cardLayout, avatarInfo) { + Companion_getInstance_529(); + title = title === VOID ? '' : title; + cover = cover === VOID ? '' : cover; + liveFace = liveFace === VOID ? 0 : liveFace; + liveUri = liveUri === VOID ? '' : liveUri; + liveLink = liveLink === VOID ? '' : liveLink; + fans = fans === VOID ? 0 : fans; + level = level === VOID ? 0 : level; + sign = sign === VOID ? '' : sign; + isUp = isUp === VOID ? false : isUp; + archives = archives === VOID ? 0 : archives; + mid = mid === VOID ? new Long(0, 0) : mid; + roomid = roomid === VOID ? new Long(0, 0) : roomid; + relation = relation === VOID ? null : relation; + officialVerify = officialVerify === VOID ? null : officialVerify; + faceNftNew = faceNftNew === VOID ? 0 : faceNftNew; + nftFaceIcon = nftFaceIcon === VOID ? null : nftFaceIcon; + isSeniorMember = isSeniorMember === VOID ? 0 : isSeniorMember; + background = background === VOID ? null : background; + avStyle = avStyle === VOID ? 0 : avStyle; + space = space === VOID ? null : space; + avItems = avItems === VOID ? emptyList() : avItems; + notice = notice === VOID ? null : notice; + sharePlane = sharePlane === VOID ? null : sharePlane; + inlineType = inlineType === VOID ? '' : inlineType; + inlineLive = inlineLive === VOID ? null : inlineLive; + isInlineLive = isInlineLive === VOID ? 0 : isInlineLive; + threePoint = threePoint === VOID ? emptyList() : threePoint; + liveStatus = liveStatus === VOID ? 0 : liveStatus; + vip = vip === VOID ? null : vip; + attentions = attentions === VOID ? 0 : attentions; + feedback = feedback === VOID ? null : feedback; + userCardInfo = userCardInfo === VOID ? emptyList() : userCardInfo; + cardLayout = cardLayout === VOID ? null : cardLayout; + avatarInfo = avatarInfo === VOID ? null : avatarInfo; + this.title = title; + this.cover = cover; + this.liveFace = liveFace; + this.liveUri = liveUri; + this.liveLink = liveLink; + this.fans = fans; + this.level = level; + this.sign = sign; + this.isUp = isUp; + this.archives = archives; + this.mid = mid; + this.roomid = roomid; + this.relation = relation; + this.officialVerify = officialVerify; + this.faceNftNew = faceNftNew; + this.nftFaceIcon = nftFaceIcon; + this.isSeniorMember = isSeniorMember; + this.background = background; + this.avStyle = avStyle; + this.space = space; + this.avItems = avItems; + this.notice = notice; + this.sharePlane = sharePlane; + this.inlineType = inlineType; + this.inlineLive = inlineLive; + this.isInlineLive = isInlineLive; + this.threePoint = threePoint; + this.liveStatus = liveStatus; + this.vip = vip; + this.attentions = attentions; + this.feedback = feedback; + this.userCardInfo = userCardInfo; + this.cardLayout = cardLayout; + this.avatarInfo = avatarInfo; + } + get_title_iz32un_k$() { + return this.title; + } + get_cover_ipug0e_k$() { + return this.cover; + } + get_liveFace_8d4z4e_k$() { + return this.liveFace; + } + get_liveUri_4b9pmf_k$() { + return this.liveUri; + } + get_liveLink_8d0z01_k$() { + return this.liveLink; + } + get_fans_wolurt_k$() { + return this.fans; + } + get_level_ium7h7_k$() { + return this.level; + } + get_sign_woubd2_k$() { + return this.sign; + } + get_isUp_woo4ha_k$() { + return this.isUp; + } + get_archives_aubvlm_k$() { + return this.archives; + } + get_mid_18j0o1_k$() { + return this.mid; + } + get_roomid_j3vdbz_k$() { + return this.roomid; + } + get_relation_u22tol_k$() { + return this.relation; + } + get_officialVerify_91wfgt_k$() { + return this.officialVerify; + } + get_faceNftNew_d87rsm_k$() { + return this.faceNftNew; + } + get_nftFaceIcon_cqxb87_k$() { + return this.nftFaceIcon; + } + get_isSeniorMember_st26nx_k$() { + return this.isSeniorMember; + } + get_background_stpfw7_k$() { + return this.background; + } + get_avStyle_9g8p65_k$() { + return this.avStyle; + } + get_space_iyncv1_k$() { + return this.space; + } + get_avItems_9lr1we_k$() { + return this.avItems; + } + get_notice_h7rzkx_k$() { + return this.notice; + } + get_sharePlane_l1yhja_k$() { + return this.sharePlane; + } + get_inlineType_7azxfo_k$() { + return this.inlineType; + } + get_inlineLive_7b5d1u_k$() { + return this.inlineLive; + } + get_isInlineLive_hpq56w_k$() { + return this.isInlineLive; + } + get_threePoint_wv0qvv_k$() { + return this.threePoint; + } + get_liveStatus_5s32ih_k$() { + return this.liveStatus; + } + get_vip_18itzg_k$() { + return this.vip; + } + get_attentions_bgcfxa_k$() { + return this.attentions; + } + get_feedback_yyya42_k$() { + return this.feedback; + } + get_userCardInfo_8aqoku_k$() { + return this.userCardInfo; + } + get_cardLayout_d0npjx_k$() { + return this.cardLayout; + } + get_avatarInfo_quh7f4_k$() { + return this.avatarInfo; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.cover; + } + component3_7eebsa_k$() { + return this.liveFace; + } + component4_7eebs9_k$() { + return this.liveUri; + } + component5_7eebs8_k$() { + return this.liveLink; + } + component6_7eebs7_k$() { + return this.fans; + } + component7_7eebs6_k$() { + return this.level; + } + component8_7eebs5_k$() { + return this.sign; + } + component9_7eebs4_k$() { + return this.isUp; + } + component10_gazzfo_k$() { + return this.archives; + } + component11_gazzfn_k$() { + return this.mid; + } + component12_gazzfm_k$() { + return this.roomid; + } + component13_gazzfl_k$() { + return this.relation; + } + component14_gazzfk_k$() { + return this.officialVerify; + } + component15_gazzfj_k$() { + return this.faceNftNew; + } + component16_gazzfi_k$() { + return this.nftFaceIcon; + } + component17_gazzfh_k$() { + return this.isSeniorMember; + } + component18_gazzfg_k$() { + return this.background; + } + component19_gazzff_k$() { + return this.avStyle; + } + component20_gazzet_k$() { + return this.space; + } + component21_gazzes_k$() { + return this.avItems; + } + component22_gazzer_k$() { + return this.notice; + } + component23_gazzeq_k$() { + return this.sharePlane; + } + component24_gazzep_k$() { + return this.inlineType; + } + component25_gazzeo_k$() { + return this.inlineLive; + } + component26_gazzen_k$() { + return this.isInlineLive; + } + component27_gazzem_k$() { + return this.threePoint; + } + component28_gazzel_k$() { + return this.liveStatus; + } + component29_gazzek_k$() { + return this.vip; + } + component30_gazzdy_k$() { + return this.attentions; + } + component31_gazzdx_k$() { + return this.feedback; + } + component32_gazzdw_k$() { + return this.userCardInfo; + } + component33_gazzdv_k$() { + return this.cardLayout; + } + component34_gazzdu_k$() { + return this.avatarInfo; + } + copy_lfps7m_k$(title, cover, liveFace, liveUri, liveLink, fans, level, sign, isUp, archives, mid, roomid, relation, officialVerify, faceNftNew, nftFaceIcon, isSeniorMember, background, avStyle, space, avItems, notice, sharePlane, inlineType, inlineLive, isInlineLive, threePoint, liveStatus, vip, attentions, feedback, userCardInfo, cardLayout, avatarInfo) { + return new KSearchAuthorNewCard(title, cover, liveFace, liveUri, liveLink, fans, level, sign, isUp, archives, mid, roomid, relation, officialVerify, faceNftNew, nftFaceIcon, isSeniorMember, background, avStyle, space, avItems, notice, sharePlane, inlineType, inlineLive, isInlineLive, threePoint, liveStatus, vip, attentions, feedback, userCardInfo, cardLayout, avatarInfo); + } + copy(title, cover, liveFace, liveUri, liveLink, fans, level, sign, isUp, archives, mid, roomid, relation, officialVerify, faceNftNew, nftFaceIcon, isSeniorMember, background, avStyle, space, avItems, notice, sharePlane, inlineType, inlineLive, isInlineLive, threePoint, liveStatus, vip, attentions, feedback, userCardInfo, cardLayout, avatarInfo, $super) { + title = title === VOID ? this.title : title; + cover = cover === VOID ? this.cover : cover; + liveFace = liveFace === VOID ? this.liveFace : liveFace; + liveUri = liveUri === VOID ? this.liveUri : liveUri; + liveLink = liveLink === VOID ? this.liveLink : liveLink; + fans = fans === VOID ? this.fans : fans; + level = level === VOID ? this.level : level; + sign = sign === VOID ? this.sign : sign; + isUp = isUp === VOID ? this.isUp : isUp; + archives = archives === VOID ? this.archives : archives; + mid = mid === VOID ? this.mid : mid; + roomid = roomid === VOID ? this.roomid : roomid; + relation = relation === VOID ? this.relation : relation; + officialVerify = officialVerify === VOID ? this.officialVerify : officialVerify; + faceNftNew = faceNftNew === VOID ? this.faceNftNew : faceNftNew; + nftFaceIcon = nftFaceIcon === VOID ? this.nftFaceIcon : nftFaceIcon; + isSeniorMember = isSeniorMember === VOID ? this.isSeniorMember : isSeniorMember; + background = background === VOID ? this.background : background; + avStyle = avStyle === VOID ? this.avStyle : avStyle; + space = space === VOID ? this.space : space; + avItems = avItems === VOID ? this.avItems : avItems; + notice = notice === VOID ? this.notice : notice; + sharePlane = sharePlane === VOID ? this.sharePlane : sharePlane; + inlineType = inlineType === VOID ? this.inlineType : inlineType; + inlineLive = inlineLive === VOID ? this.inlineLive : inlineLive; + isInlineLive = isInlineLive === VOID ? this.isInlineLive : isInlineLive; + threePoint = threePoint === VOID ? this.threePoint : threePoint; + liveStatus = liveStatus === VOID ? this.liveStatus : liveStatus; + vip = vip === VOID ? this.vip : vip; + attentions = attentions === VOID ? this.attentions : attentions; + feedback = feedback === VOID ? this.feedback : feedback; + userCardInfo = userCardInfo === VOID ? this.userCardInfo : userCardInfo; + cardLayout = cardLayout === VOID ? this.cardLayout : cardLayout; + avatarInfo = avatarInfo === VOID ? this.avatarInfo : avatarInfo; + return this.copy_lfps7m_k$(title, cover, liveFace, liveUri, liveLink, fans, level, sign, isUp, archives, mid, roomid, relation, officialVerify, faceNftNew, nftFaceIcon, isSeniorMember, background, avStyle, space, avItems, notice, sharePlane, inlineType, inlineLive, isInlineLive, threePoint, liveStatus, vip, attentions, feedback, userCardInfo, cardLayout, avatarInfo); + } + toString() { + return 'KSearchAuthorNewCard(title=' + this.title + ', cover=' + this.cover + ', liveFace=' + this.liveFace + ', liveUri=' + this.liveUri + ', liveLink=' + this.liveLink + ', fans=' + this.fans + ', level=' + this.level + ', sign=' + this.sign + ', isUp=' + this.isUp + ', archives=' + this.archives + ', mid=' + this.mid.toString() + ', roomid=' + this.roomid.toString() + ', relation=' + this.relation + ', officialVerify=' + this.officialVerify + ', faceNftNew=' + this.faceNftNew + ', nftFaceIcon=' + this.nftFaceIcon + ', isSeniorMember=' + this.isSeniorMember + ', background=' + this.background + ', avStyle=' + this.avStyle + ', space=' + this.space + ', avItems=' + this.avItems + ', notice=' + this.notice + ', sharePlane=' + this.sharePlane + ', inlineType=' + this.inlineType + ', inlineLive=' + this.inlineLive + ', isInlineLive=' + this.isInlineLive + ', threePoint=' + this.threePoint + ', liveStatus=' + this.liveStatus + ', vip=' + this.vip + ', attentions=' + this.attentions + ', feedback=' + this.feedback + ', userCardInfo=' + this.userCardInfo + ', cardLayout=' + this.cardLayout + ', avatarInfo=' + this.avatarInfo + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.cover) | 0; + result = imul(result, 31) + this.liveFace | 0; + result = imul(result, 31) + getStringHashCode(this.liveUri) | 0; + result = imul(result, 31) + getStringHashCode(this.liveLink) | 0; + result = imul(result, 31) + this.fans | 0; + result = imul(result, 31) + this.level | 0; + result = imul(result, 31) + getStringHashCode(this.sign) | 0; + result = imul(result, 31) + getBooleanHashCode(this.isUp) | 0; + result = imul(result, 31) + this.archives | 0; + result = imul(result, 31) + this.mid.hashCode() | 0; + result = imul(result, 31) + this.roomid.hashCode() | 0; + result = imul(result, 31) + (this.relation == null ? 0 : this.relation.hashCode()) | 0; + result = imul(result, 31) + (this.officialVerify == null ? 0 : this.officialVerify.hashCode()) | 0; + result = imul(result, 31) + this.faceNftNew | 0; + result = imul(result, 31) + (this.nftFaceIcon == null ? 0 : this.nftFaceIcon.hashCode()) | 0; + result = imul(result, 31) + this.isSeniorMember | 0; + result = imul(result, 31) + (this.background == null ? 0 : this.background.hashCode()) | 0; + result = imul(result, 31) + this.avStyle | 0; + result = imul(result, 31) + (this.space == null ? 0 : this.space.hashCode()) | 0; + result = imul(result, 31) + hashCode(this.avItems) | 0; + result = imul(result, 31) + (this.notice == null ? 0 : this.notice.hashCode()) | 0; + result = imul(result, 31) + (this.sharePlane == null ? 0 : this.sharePlane.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.inlineType) | 0; + result = imul(result, 31) + (this.inlineLive == null ? 0 : this.inlineLive.hashCode()) | 0; + result = imul(result, 31) + this.isInlineLive | 0; + result = imul(result, 31) + hashCode(this.threePoint) | 0; + result = imul(result, 31) + this.liveStatus | 0; + result = imul(result, 31) + (this.vip == null ? 0 : this.vip.hashCode()) | 0; + result = imul(result, 31) + this.attentions | 0; + result = imul(result, 31) + (this.feedback == null ? 0 : this.feedback.hashCode()) | 0; + result = imul(result, 31) + hashCode(this.userCardInfo) | 0; + result = imul(result, 31) + (this.cardLayout == null ? 0 : this.cardLayout.hashCode()) | 0; + result = imul(result, 31) + (this.avatarInfo == null ? 0 : this.avatarInfo.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSearchAuthorNewCard)) + return false; + var tmp0_other_with_cast = other instanceof KSearchAuthorNewCard ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + if (!(this.liveFace === tmp0_other_with_cast.liveFace)) + return false; + if (!(this.liveUri === tmp0_other_with_cast.liveUri)) + return false; + if (!(this.liveLink === tmp0_other_with_cast.liveLink)) + return false; + if (!(this.fans === tmp0_other_with_cast.fans)) + return false; + if (!(this.level === tmp0_other_with_cast.level)) + return false; + if (!(this.sign === tmp0_other_with_cast.sign)) + return false; + if (!(this.isUp === tmp0_other_with_cast.isUp)) + return false; + if (!(this.archives === tmp0_other_with_cast.archives)) + return false; + if (!this.mid.equals(tmp0_other_with_cast.mid)) + return false; + if (!this.roomid.equals(tmp0_other_with_cast.roomid)) + return false; + if (!equals(this.relation, tmp0_other_with_cast.relation)) + return false; + if (!equals(this.officialVerify, tmp0_other_with_cast.officialVerify)) + return false; + if (!(this.faceNftNew === tmp0_other_with_cast.faceNftNew)) + return false; + if (!equals(this.nftFaceIcon, tmp0_other_with_cast.nftFaceIcon)) + return false; + if (!(this.isSeniorMember === tmp0_other_with_cast.isSeniorMember)) + return false; + if (!equals(this.background, tmp0_other_with_cast.background)) + return false; + if (!(this.avStyle === tmp0_other_with_cast.avStyle)) + return false; + if (!equals(this.space, tmp0_other_with_cast.space)) + return false; + if (!equals(this.avItems, tmp0_other_with_cast.avItems)) + return false; + if (!equals(this.notice, tmp0_other_with_cast.notice)) + return false; + if (!equals(this.sharePlane, tmp0_other_with_cast.sharePlane)) + return false; + if (!(this.inlineType === tmp0_other_with_cast.inlineType)) + return false; + if (!equals(this.inlineLive, tmp0_other_with_cast.inlineLive)) + return false; + if (!(this.isInlineLive === tmp0_other_with_cast.isInlineLive)) + return false; + if (!equals(this.threePoint, tmp0_other_with_cast.threePoint)) + return false; + if (!(this.liveStatus === tmp0_other_with_cast.liveStatus)) + return false; + if (!equals(this.vip, tmp0_other_with_cast.vip)) + return false; + if (!(this.attentions === tmp0_other_with_cast.attentions)) + return false; + if (!equals(this.feedback, tmp0_other_with_cast.feedback)) + return false; + if (!equals(this.userCardInfo, tmp0_other_with_cast.userCardInfo)) + return false; + if (!equals(this.cardLayout, tmp0_other_with_cast.cardLayout)) + return false; + if (!equals(this.avatarInfo, tmp0_other_with_cast.avatarInfo)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KSearchAuthorNewCard_r6x2pc_k$(seen1, seen2, title, cover, liveFace, liveUri, liveLink, fans, level, sign, isUp, archives, mid, roomid, relation, officialVerify, faceNftNew, nftFaceIcon, isSeniorMember, background, avStyle, space, avItems, notice, sharePlane, inlineType, inlineLive, isInlineLive, threePoint, liveStatus, vip, attentions, feedback, userCardInfo, cardLayout, avatarInfo, serializationConstructorMarker) { + Companion_getInstance_529(); + if (!!(!(0 === (0 & seen1)) | !(0 === (0 & seen2)))) { + var tmp$ret$0; + // Inline function 'kotlin.intArrayOf' call + var elements = new Int32Array([seen1, seen2]); + tmp$ret$0 = elements; + var tmp = tmp$ret$0; + var tmp$ret$1; + // Inline function 'kotlin.intArrayOf' call + var elements_0 = new Int32Array([0, 0]); + tmp$ret$1 = elements_0; + throwArrayMissingFieldException(tmp, tmp$ret$1, $serializer_getInstance_516().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.cover = ''; + else + $this.cover = cover; + if (0 === (seen1 & 4)) + $this.liveFace = 0; + else + $this.liveFace = liveFace; + if (0 === (seen1 & 8)) + $this.liveUri = ''; + else + $this.liveUri = liveUri; + if (0 === (seen1 & 16)) + $this.liveLink = ''; + else + $this.liveLink = liveLink; + if (0 === (seen1 & 32)) + $this.fans = 0; + else + $this.fans = fans; + if (0 === (seen1 & 64)) + $this.level = 0; + else + $this.level = level; + if (0 === (seen1 & 128)) + $this.sign = ''; + else + $this.sign = sign; + if (0 === (seen1 & 256)) + $this.isUp = false; + else + $this.isUp = isUp; + if (0 === (seen1 & 512)) + $this.archives = 0; + else + $this.archives = archives; + if (0 === (seen1 & 1024)) + $this.mid = new Long(0, 0); + else + $this.mid = mid; + if (0 === (seen1 & 2048)) + $this.roomid = new Long(0, 0); + else + $this.roomid = roomid; + if (0 === (seen1 & 4096)) + $this.relation = null; + else + $this.relation = relation; + if (0 === (seen1 & 8192)) + $this.officialVerify = null; + else + $this.officialVerify = officialVerify; + if (0 === (seen1 & 16384)) + $this.faceNftNew = 0; + else + $this.faceNftNew = faceNftNew; + if (0 === (seen1 & 32768)) + $this.nftFaceIcon = null; + else + $this.nftFaceIcon = nftFaceIcon; + if (0 === (seen1 & 65536)) + $this.isSeniorMember = 0; + else + $this.isSeniorMember = isSeniorMember; + if (0 === (seen1 & 131072)) + $this.background = null; + else + $this.background = background; + if (0 === (seen1 & 262144)) + $this.avStyle = 0; + else + $this.avStyle = avStyle; + if (0 === (seen1 & 524288)) + $this.space = null; + else + $this.space = space; + if (0 === (seen1 & 1048576)) + $this.avItems = emptyList(); + else + $this.avItems = avItems; + if (0 === (seen1 & 2097152)) + $this.notice = null; + else + $this.notice = notice; + if (0 === (seen1 & 4194304)) + $this.sharePlane = null; + else + $this.sharePlane = sharePlane; + if (0 === (seen1 & 8388608)) + $this.inlineType = ''; + else + $this.inlineType = inlineType; + if (0 === (seen1 & 16777216)) + $this.inlineLive = null; + else + $this.inlineLive = inlineLive; + if (0 === (seen1 & 33554432)) + $this.isInlineLive = 0; + else + $this.isInlineLive = isInlineLive; + if (0 === (seen1 & 67108864)) + $this.threePoint = emptyList(); + else + $this.threePoint = threePoint; + if (0 === (seen1 & 134217728)) + $this.liveStatus = 0; + else + $this.liveStatus = liveStatus; + if (0 === (seen1 & 268435456)) + $this.vip = null; + else + $this.vip = vip; + if (0 === (seen1 & 536870912)) + $this.attentions = 0; + else + $this.attentions = attentions; + if (0 === (seen1 & 1073741824)) + $this.feedback = null; + else + $this.feedback = feedback; + if (0 === (seen1 & -2147483648)) + $this.userCardInfo = emptyList(); + else + $this.userCardInfo = userCardInfo; + if (0 === (seen2 & 1)) + $this.cardLayout = null; + else + $this.cardLayout = cardLayout; + if (0 === (seen2 & 2)) + $this.avatarInfo = null; + else + $this.avatarInfo = avatarInfo; + return $this; + } + } + class Companion_530 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.Avatar'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_517(); + } + } + class $serializer_517 { + constructor() { + $serializer_instance_517 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KAvatar', this, 8); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('event', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('eventV2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('text', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('upId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('uri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('faceNftNew', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('nftFaceIcon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), get_nullable($serializer_getInstance_601())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = new Long(0, 0); + var tmp9_local5 = null; + var tmp10_local6 = 0; + var tmp11_local7 = null; + var tmp12_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp12_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_601(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + } else + while (tmp1_flag) { + tmp2_index = tmp12_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_601(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp12_input.endStructure_1xqz0n_k$(tmp0_desc); + return KAvatar.new_com_bapis_bilibili_polymer_app_search_v1_KAvatar_xvru54_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null); + } + serialize_3mhipq_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.cover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.event === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.event); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.eventV2 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.eventV2); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.text === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.text); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !value.upId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 4, value.upId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.uri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.uri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.faceNftNew === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 6, value.faceNftNew); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.nftFaceIcon == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 7, $serializer_getInstance_601(), value.nftFaceIcon); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_3mhipq_k$(encoder, value instanceof KAvatar ? value : THROW_CCE()); + } + } + class KAvatar { + constructor(cover, event, eventV2, text, upId, uri, faceNftNew, nftFaceIcon) { + Companion_instance_530; + cover = cover === VOID ? '' : cover; + event = event === VOID ? '' : event; + eventV2 = eventV2 === VOID ? '' : eventV2; + text = text === VOID ? '' : text; + upId = upId === VOID ? new Long(0, 0) : upId; + uri = uri === VOID ? '' : uri; + faceNftNew = faceNftNew === VOID ? 0 : faceNftNew; + nftFaceIcon = nftFaceIcon === VOID ? null : nftFaceIcon; + this.cover = cover; + this.event = event; + this.eventV2 = eventV2; + this.text = text; + this.upId = upId; + this.uri = uri; + this.faceNftNew = faceNftNew; + this.nftFaceIcon = nftFaceIcon; + } + get_cover_ipug0e_k$() { + return this.cover; + } + get_event_ir25pt_k$() { + return this.event; + } + get_eventV2_lhz9rn_k$() { + return this.eventV2; + } + get_text_wouvsm_k$() { + return this.text; + } + get_upId_wovpsv_k$() { + return this.upId; + } + get_uri_18iuil_k$() { + return this.uri; + } + get_faceNftNew_d87rsm_k$() { + return this.faceNftNew; + } + get_nftFaceIcon_cqxb87_k$() { + return this.nftFaceIcon; + } + component1_7eebsc_k$() { + return this.cover; + } + component2_7eebsb_k$() { + return this.event; + } + component3_7eebsa_k$() { + return this.eventV2; + } + component4_7eebs9_k$() { + return this.text; + } + component5_7eebs8_k$() { + return this.upId; + } + component6_7eebs7_k$() { + return this.uri; + } + component7_7eebs6_k$() { + return this.faceNftNew; + } + component8_7eebs5_k$() { + return this.nftFaceIcon; + } + copy_p2pa4i_k$(cover, event, eventV2, text, upId, uri, faceNftNew, nftFaceIcon) { + return new KAvatar(cover, event, eventV2, text, upId, uri, faceNftNew, nftFaceIcon); + } + copy(cover, event, eventV2, text, upId, uri, faceNftNew, nftFaceIcon, $super) { + cover = cover === VOID ? this.cover : cover; + event = event === VOID ? this.event : event; + eventV2 = eventV2 === VOID ? this.eventV2 : eventV2; + text = text === VOID ? this.text : text; + upId = upId === VOID ? this.upId : upId; + uri = uri === VOID ? this.uri : uri; + faceNftNew = faceNftNew === VOID ? this.faceNftNew : faceNftNew; + nftFaceIcon = nftFaceIcon === VOID ? this.nftFaceIcon : nftFaceIcon; + return this.copy_p2pa4i_k$(cover, event, eventV2, text, upId, uri, faceNftNew, nftFaceIcon); + } + toString() { + return 'KAvatar(cover=' + this.cover + ', event=' + this.event + ', eventV2=' + this.eventV2 + ', text=' + this.text + ', upId=' + this.upId.toString() + ', uri=' + this.uri + ', faceNftNew=' + this.faceNftNew + ', nftFaceIcon=' + this.nftFaceIcon + ')'; + } + hashCode() { + var result = getStringHashCode(this.cover); + result = imul(result, 31) + getStringHashCode(this.event) | 0; + result = imul(result, 31) + getStringHashCode(this.eventV2) | 0; + result = imul(result, 31) + getStringHashCode(this.text) | 0; + result = imul(result, 31) + this.upId.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.uri) | 0; + result = imul(result, 31) + this.faceNftNew | 0; + result = imul(result, 31) + (this.nftFaceIcon == null ? 0 : this.nftFaceIcon.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KAvatar)) + return false; + var tmp0_other_with_cast = other instanceof KAvatar ? other : THROW_CCE(); + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + if (!(this.event === tmp0_other_with_cast.event)) + return false; + if (!(this.eventV2 === tmp0_other_with_cast.eventV2)) + return false; + if (!(this.text === tmp0_other_with_cast.text)) + return false; + if (!this.upId.equals(tmp0_other_with_cast.upId)) + return false; + if (!(this.uri === tmp0_other_with_cast.uri)) + return false; + if (!(this.faceNftNew === tmp0_other_with_cast.faceNftNew)) + return false; + if (!equals(this.nftFaceIcon, tmp0_other_with_cast.nftFaceIcon)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KAvatar_xvru54_k$(seen1, cover, event, eventV2, text, upId, uri, faceNftNew, nftFaceIcon, serializationConstructorMarker) { + Companion_instance_530; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_517().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.cover = ''; + else + $this.cover = cover; + if (0 === (seen1 & 2)) + $this.event = ''; + else + $this.event = event; + if (0 === (seen1 & 4)) + $this.eventV2 = ''; + else + $this.eventV2 = eventV2; + if (0 === (seen1 & 8)) + $this.text = ''; + else + $this.text = text; + if (0 === (seen1 & 16)) + $this.upId = new Long(0, 0); + else + $this.upId = upId; + if (0 === (seen1 & 32)) + $this.uri = ''; + else + $this.uri = uri; + if (0 === (seen1 & 64)) + $this.faceNftNew = 0; + else + $this.faceNftNew = faceNftNew; + if (0 === (seen1 & 128)) + $this.nftFaceIcon = null; + else + $this.nftFaceIcon = nftFaceIcon; + return $this; + } + } + class Companion_531 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.Args'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_518(); + } + } + class $serializer_518 { + constructor() { + $serializer_instance_518 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KArgs', this, 9); + tmp0_serialDesc.addElement_5pzumi_k$('online', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('rname', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('roomId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('tname', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('upId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('upName', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('rid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('tid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('aid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = null; + var tmp6_local2 = new Long(0, 0); + var tmp7_local3 = null; + var tmp8_local4 = new Long(0, 0); + var tmp9_local5 = null; + var tmp10_local6 = new Long(0, 0); + var tmp11_local7 = new Long(0, 0); + var tmp12_local8 = new Long(0, 0); + var tmp13_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp13_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp13_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + } else + while (tmp1_flag) { + tmp2_index = tmp13_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp13_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp13_input.endStructure_1xqz0n_k$(tmp0_desc); + return KArgs.new_com_bapis_bilibili_polymer_app_search_v1_KArgs_xp9w6d_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, null); + } + serialize_5eq48q_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.online === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.online); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.rname === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.rname); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.roomId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.roomId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.tname === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.tname); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !value.upId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 4, value.upId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.upName === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.upName); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !value.rid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 6, value.rid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !value.tid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 7, value.tid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !value.aid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 8, value.aid); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_5eq48q_k$(encoder, value instanceof KArgs ? value : THROW_CCE()); + } + } + class KArgs { + constructor(online, rname, roomId, tname, upId, upName, rid, tid, aid) { + Companion_instance_531; + online = online === VOID ? 0 : online; + rname = rname === VOID ? '' : rname; + roomId = roomId === VOID ? new Long(0, 0) : roomId; + tname = tname === VOID ? '' : tname; + upId = upId === VOID ? new Long(0, 0) : upId; + upName = upName === VOID ? '' : upName; + rid = rid === VOID ? new Long(0, 0) : rid; + tid = tid === VOID ? new Long(0, 0) : tid; + aid = aid === VOID ? new Long(0, 0) : aid; + this.online = online; + this.rname = rname; + this.roomId = roomId; + this.tname = tname; + this.upId = upId; + this.upName = upName; + this.rid = rid; + this.tid = tid; + this.aid = aid; + } + get_online_ho4pr0_k$() { + return this.online; + } + get_rname_iy2aj8_k$() { + return this.rname; + } + get_roomId_j3vckf_k$() { + return this.roomId; + } + get_tname_iz5vpy_k$() { + return this.tname; + } + get_upId_wovpsv_k$() { + return this.upId; + } + get_upName_kiypqn_k$() { + return this.upName; + } + get_rid_18iwyk_k$() { + return this.rid; + } + get_tid_18ivh6_k$() { + return this.tid; + } + get_aid_18j9kd_k$() { + return this.aid; + } + component1_7eebsc_k$() { + return this.online; + } + component2_7eebsb_k$() { + return this.rname; + } + component3_7eebsa_k$() { + return this.roomId; + } + component4_7eebs9_k$() { + return this.tname; + } + component5_7eebs8_k$() { + return this.upId; + } + component6_7eebs7_k$() { + return this.upName; + } + component7_7eebs6_k$() { + return this.rid; + } + component8_7eebs5_k$() { + return this.tid; + } + component9_7eebs4_k$() { + return this.aid; + } + copy_q1n9ht_k$(online, rname, roomId, tname, upId, upName, rid, tid, aid) { + return new KArgs(online, rname, roomId, tname, upId, upName, rid, tid, aid); + } + copy(online, rname, roomId, tname, upId, upName, rid, tid, aid, $super) { + online = online === VOID ? this.online : online; + rname = rname === VOID ? this.rname : rname; + roomId = roomId === VOID ? this.roomId : roomId; + tname = tname === VOID ? this.tname : tname; + upId = upId === VOID ? this.upId : upId; + upName = upName === VOID ? this.upName : upName; + rid = rid === VOID ? this.rid : rid; + tid = tid === VOID ? this.tid : tid; + aid = aid === VOID ? this.aid : aid; + return this.copy_q1n9ht_k$(online, rname, roomId, tname, upId, upName, rid, tid, aid); + } + toString() { + return 'KArgs(online=' + this.online + ', rname=' + this.rname + ', roomId=' + this.roomId.toString() + ', tname=' + this.tname + ', upId=' + this.upId.toString() + ', upName=' + this.upName + ', rid=' + this.rid.toString() + ', tid=' + this.tid.toString() + ', aid=' + this.aid.toString() + ')'; + } + hashCode() { + var result = this.online; + result = imul(result, 31) + getStringHashCode(this.rname) | 0; + result = imul(result, 31) + this.roomId.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.tname) | 0; + result = imul(result, 31) + this.upId.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.upName) | 0; + result = imul(result, 31) + this.rid.hashCode() | 0; + result = imul(result, 31) + this.tid.hashCode() | 0; + result = imul(result, 31) + this.aid.hashCode() | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KArgs)) + return false; + var tmp0_other_with_cast = other instanceof KArgs ? other : THROW_CCE(); + if (!(this.online === tmp0_other_with_cast.online)) + return false; + if (!(this.rname === tmp0_other_with_cast.rname)) + return false; + if (!this.roomId.equals(tmp0_other_with_cast.roomId)) + return false; + if (!(this.tname === tmp0_other_with_cast.tname)) + return false; + if (!this.upId.equals(tmp0_other_with_cast.upId)) + return false; + if (!(this.upName === tmp0_other_with_cast.upName)) + return false; + if (!this.rid.equals(tmp0_other_with_cast.rid)) + return false; + if (!this.tid.equals(tmp0_other_with_cast.tid)) + return false; + if (!this.aid.equals(tmp0_other_with_cast.aid)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KArgs_xp9w6d_k$(seen1, online, rname, roomId, tname, upId, upName, rid, tid, aid, serializationConstructorMarker) { + Companion_instance_531; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_518().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.online = 0; + else + $this.online = online; + if (0 === (seen1 & 2)) + $this.rname = ''; + else + $this.rname = rname; + if (0 === (seen1 & 4)) + $this.roomId = new Long(0, 0); + else + $this.roomId = roomId; + if (0 === (seen1 & 8)) + $this.tname = ''; + else + $this.tname = tname; + if (0 === (seen1 & 16)) + $this.upId = new Long(0, 0); + else + $this.upId = upId; + if (0 === (seen1 & 32)) + $this.upName = ''; + else + $this.upName = upName; + if (0 === (seen1 & 64)) + $this.rid = new Long(0, 0); + else + $this.rid = rid; + if (0 === (seen1 & 128)) + $this.tid = new Long(0, 0); + else + $this.tid = tid; + if (0 === (seen1 & 256)) + $this.aid = new Long(0, 0); + else + $this.aid = aid; + return $this; + } + } + class Companion_532 { + constructor() { + Companion_instance_532 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, new ArrayListSerializer($serializer_getInstance_520())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.polymer.app.search.v1.InlineThreePointPanel'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_519(); + } + } + class $serializer_519 { + constructor() { + $serializer_instance_519 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KInlineThreePointPanel', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('panelType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('shareId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('shareOrigin', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('functionalButtons', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_532().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), tmp0_cached[3]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp9_cached = Companion_getInstance_532().$childSerializers_1; + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 3, tmp9_cached[3], tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 3, tmp9_cached[3], tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KInlineThreePointPanel.new_com_bapis_bilibili_polymer_app_search_v1_KInlineThreePointPanel_cmlgfx_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_k35rpy_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_532().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.panelType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.panelType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.shareId === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.shareId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.shareOrigin === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.shareOrigin); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !equals(value.functionalButtons, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 3, tmp2_cached[3], value.functionalButtons); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_k35rpy_k$(encoder, value instanceof KInlineThreePointPanel ? value : THROW_CCE()); + } + } + class KInlineThreePointPanel { + constructor(panelType, shareId, shareOrigin, functionalButtons) { + Companion_getInstance_532(); + panelType = panelType === VOID ? 0 : panelType; + shareId = shareId === VOID ? '' : shareId; + shareOrigin = shareOrigin === VOID ? '' : shareOrigin; + functionalButtons = functionalButtons === VOID ? emptyList() : functionalButtons; + this.panelType = panelType; + this.shareId = shareId; + this.shareOrigin = shareOrigin; + this.functionalButtons = functionalButtons; + } + get_panelType_g03i2z_k$() { + return this.panelType; + } + get_shareId_z8ky29_k$() { + return this.shareId; + } + get_shareOrigin_d12pvg_k$() { + return this.shareOrigin; + } + get_functionalButtons_xth2j_k$() { + return this.functionalButtons; + } + component1_7eebsc_k$() { + return this.panelType; + } + component2_7eebsb_k$() { + return this.shareId; + } + component3_7eebsa_k$() { + return this.shareOrigin; + } + component4_7eebs9_k$() { + return this.functionalButtons; + } + copy_x19psz_k$(panelType, shareId, shareOrigin, functionalButtons) { + return new KInlineThreePointPanel(panelType, shareId, shareOrigin, functionalButtons); + } + copy(panelType, shareId, shareOrigin, functionalButtons, $super) { + panelType = panelType === VOID ? this.panelType : panelType; + shareId = shareId === VOID ? this.shareId : shareId; + shareOrigin = shareOrigin === VOID ? this.shareOrigin : shareOrigin; + functionalButtons = functionalButtons === VOID ? this.functionalButtons : functionalButtons; + return this.copy_x19psz_k$(panelType, shareId, shareOrigin, functionalButtons); + } + toString() { + return 'KInlineThreePointPanel(panelType=' + this.panelType + ', shareId=' + this.shareId + ', shareOrigin=' + this.shareOrigin + ', functionalButtons=' + this.functionalButtons + ')'; + } + hashCode() { + var result = this.panelType; + result = imul(result, 31) + getStringHashCode(this.shareId) | 0; + result = imul(result, 31) + getStringHashCode(this.shareOrigin) | 0; + result = imul(result, 31) + hashCode(this.functionalButtons) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KInlineThreePointPanel)) + return false; + var tmp0_other_with_cast = other instanceof KInlineThreePointPanel ? other : THROW_CCE(); + if (!(this.panelType === tmp0_other_with_cast.panelType)) + return false; + if (!(this.shareId === tmp0_other_with_cast.shareId)) + return false; + if (!(this.shareOrigin === tmp0_other_with_cast.shareOrigin)) + return false; + if (!equals(this.functionalButtons, tmp0_other_with_cast.functionalButtons)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KInlineThreePointPanel_cmlgfx_k$(seen1, panelType, shareId, shareOrigin, functionalButtons, serializationConstructorMarker) { + Companion_getInstance_532(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_519().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.panelType = 0; + else + $this.panelType = panelType; + if (0 === (seen1 & 2)) + $this.shareId = ''; + else + $this.shareId = shareId; + if (0 === (seen1 & 4)) + $this.shareOrigin = ''; + else + $this.shareOrigin = shareOrigin; + if (0 === (seen1 & 8)) + $this.functionalButtons = emptyList(); + else + $this.functionalButtons = functionalButtons; + return $this; + } + } + class Companion_533 { + constructor() { + Companion_instance_533 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, new ArrayListSerializer($serializer_getInstance_521())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.polymer.app.search.v1.ShareButtonItem'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_520(); + } + } + class $serializer_520 { + constructor() { + $serializer_instance_520 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KShareButtonItem', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('buttonMetas', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_533().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), tmp0_cached[1]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp7_cached = Companion_getInstance_533().$childSerializers_1; + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KShareButtonItem.new_com_bapis_bilibili_polymer_app_search_v1_KShareButtonItem_ufqs47_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_aih9l7_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_533().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.type === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.type); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !equals(value.buttonMetas, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 1, tmp2_cached[1], value.buttonMetas); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_aih9l7_k$(encoder, value instanceof KShareButtonItem ? value : THROW_CCE()); + } + } + class KShareButtonItem { + constructor(type, buttonMetas) { + Companion_getInstance_533(); + type = type === VOID ? 0 : type; + buttonMetas = buttonMetas === VOID ? emptyList() : buttonMetas; + this.type = type; + this.buttonMetas = buttonMetas; + } + get_type_wovaf7_k$() { + return this.type; + } + get_buttonMetas_fhgm0d_k$() { + return this.buttonMetas; + } + component1_7eebsc_k$() { + return this.type; + } + component2_7eebsb_k$() { + return this.buttonMetas; + } + copy_3eu614_k$(type, buttonMetas) { + return new KShareButtonItem(type, buttonMetas); + } + copy(type, buttonMetas, $super) { + type = type === VOID ? this.type : type; + buttonMetas = buttonMetas === VOID ? this.buttonMetas : buttonMetas; + return this.copy_3eu614_k$(type, buttonMetas); + } + toString() { + return 'KShareButtonItem(type=' + this.type + ', buttonMetas=' + this.buttonMetas + ')'; + } + hashCode() { + var result = this.type; + result = imul(result, 31) + hashCode(this.buttonMetas) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KShareButtonItem)) + return false; + var tmp0_other_with_cast = other instanceof KShareButtonItem ? other : THROW_CCE(); + if (!(this.type === tmp0_other_with_cast.type)) + return false; + if (!equals(this.buttonMetas, tmp0_other_with_cast.buttonMetas)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KShareButtonItem_ufqs47_k$(seen1, type, buttonMetas, serializationConstructorMarker) { + Companion_getInstance_533(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_520().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.type = 0; + else + $this.type = type; + if (0 === (seen1 & 2)) + $this.buttonMetas = emptyList(); + else + $this.buttonMetas = buttonMetas; + return $this; + } + } + class Companion_534 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.ButtonMeta'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_521(); + } + } + class $serializer_521 { + constructor() { + $serializer_instance_521 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KButtonMeta', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('icon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('text', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('buttonStatus', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('toast', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KButtonMeta.new_com_bapis_bilibili_polymer_app_search_v1_KButtonMeta_4i4ldc_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_egzr9c_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.icon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.icon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.text === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.text); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.buttonStatus === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.buttonStatus); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.toast === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.toast); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_egzr9c_k$(encoder, value instanceof KButtonMeta ? value : THROW_CCE()); + } + } + class KButtonMeta { + constructor(icon, text, buttonStatus, toast) { + Companion_instance_534; + icon = icon === VOID ? '' : icon; + text = text === VOID ? '' : text; + buttonStatus = buttonStatus === VOID ? '' : buttonStatus; + toast = toast === VOID ? '' : toast; + this.icon = icon; + this.text = text; + this.buttonStatus = buttonStatus; + this.toast = toast; + } + get_icon_wont8i_k$() { + return this.icon; + } + get_text_wouvsm_k$() { + return this.text; + } + get_buttonStatus_k8oc99_k$() { + return this.buttonStatus; + } + get_toast_iz6iv2_k$() { + return this.toast; + } + component1_7eebsc_k$() { + return this.icon; + } + component2_7eebsb_k$() { + return this.text; + } + component3_7eebsa_k$() { + return this.buttonStatus; + } + component4_7eebs9_k$() { + return this.toast; + } + copy_hmmiyd_k$(icon, text, buttonStatus, toast) { + return new KButtonMeta(icon, text, buttonStatus, toast); + } + copy(icon, text, buttonStatus, toast, $super) { + icon = icon === VOID ? this.icon : icon; + text = text === VOID ? this.text : text; + buttonStatus = buttonStatus === VOID ? this.buttonStatus : buttonStatus; + toast = toast === VOID ? this.toast : toast; + return this.copy_hmmiyd_k$(icon, text, buttonStatus, toast); + } + toString() { + return 'KButtonMeta(icon=' + this.icon + ', text=' + this.text + ', buttonStatus=' + this.buttonStatus + ', toast=' + this.toast + ')'; + } + hashCode() { + var result = getStringHashCode(this.icon); + result = imul(result, 31) + getStringHashCode(this.text) | 0; + result = imul(result, 31) + getStringHashCode(this.buttonStatus) | 0; + result = imul(result, 31) + getStringHashCode(this.toast) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KButtonMeta)) + return false; + var tmp0_other_with_cast = other instanceof KButtonMeta ? other : THROW_CCE(); + if (!(this.icon === tmp0_other_with_cast.icon)) + return false; + if (!(this.text === tmp0_other_with_cast.text)) + return false; + if (!(this.buttonStatus === tmp0_other_with_cast.buttonStatus)) + return false; + if (!(this.toast === tmp0_other_with_cast.toast)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KButtonMeta_4i4ldc_k$(seen1, icon, text, buttonStatus, toast, serializationConstructorMarker) { + Companion_instance_534; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_521().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.icon = ''; + else + $this.icon = icon; + if (0 === (seen1 & 2)) + $this.text = ''; + else + $this.text = text; + if (0 === (seen1 & 4)) + $this.buttonStatus = ''; + else + $this.buttonStatus = buttonStatus; + if (0 === (seen1 & 8)) + $this.toast = ''; + else + $this.toast = toast; + return $this; + } + } + class Companion_535 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.SearchLikeButtonItem'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_522(); + } + } + class $serializer_522 { + constructor() { + $serializer_instance_522 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KSearchLikeButtonItem', this, 8); + tmp0_serialDesc.addElement_5pzumi_k$('aid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('count', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('selected', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('showCount', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('likeResource', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('likeNightResource', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('dislikeResource', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('dislikeNightResource', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), BooleanSerializer_getInstance(), get_nullable($serializer_getInstance_523()), get_nullable($serializer_getInstance_523()), get_nullable($serializer_getInstance_523()), get_nullable($serializer_getInstance_523())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = new Long(0, 0); + var tmp6_local2 = 0; + var tmp7_local3 = false; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp12_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp12_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_523(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_523(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_523(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_523(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + } else + while (tmp1_flag) { + tmp2_index = tmp12_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp12_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_523(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_523(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_523(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_523(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp12_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSearchLikeButtonItem.new_com_bapis_bilibili_polymer_app_search_v1_KSearchLikeButtonItem_mhg6tk_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null); + } + serialize_fehnbn_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.aid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.aid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.count.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.count); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.selected === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.selected); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.showCount === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 3, value.showCount); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.likeResource == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, $serializer_getInstance_523(), value.likeResource); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.likeNightResource == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 5, $serializer_getInstance_523(), value.likeNightResource); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.dislikeResource == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 6, $serializer_getInstance_523(), value.dislikeResource); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.dislikeNightResource == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 7, $serializer_getInstance_523(), value.dislikeNightResource); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_fehnbn_k$(encoder, value instanceof KSearchLikeButtonItem ? value : THROW_CCE()); + } + } + class KSearchLikeButtonItem { + constructor(aid, count, selected, showCount, likeResource, likeNightResource, dislikeResource, dislikeNightResource) { + Companion_instance_535; + aid = aid === VOID ? new Long(0, 0) : aid; + count = count === VOID ? new Long(0, 0) : count; + selected = selected === VOID ? 0 : selected; + showCount = showCount === VOID ? false : showCount; + likeResource = likeResource === VOID ? null : likeResource; + likeNightResource = likeNightResource === VOID ? null : likeNightResource; + dislikeResource = dislikeResource === VOID ? null : dislikeResource; + dislikeNightResource = dislikeNightResource === VOID ? null : dislikeNightResource; + this.aid = aid; + this.count = count; + this.selected = selected; + this.showCount = showCount; + this.likeResource = likeResource; + this.likeNightResource = likeNightResource; + this.dislikeResource = dislikeResource; + this.dislikeNightResource = dislikeNightResource; + } + get_aid_18j9kd_k$() { + return this.aid; + } + get_count_ipufhi_k$() { + return this.count; + } + get_selected_c3i7q4_k$() { + return this.selected; + } + get_showCount_ne5ac7_k$() { + return this.showCount; + } + get_likeResource_60cgz6_k$() { + return this.likeResource; + } + get_likeNightResource_6rp322_k$() { + return this.likeNightResource; + } + get_dislikeResource_l092lm_k$() { + return this.dislikeResource; + } + get_dislikeNightResource_i0ouc6_k$() { + return this.dislikeNightResource; + } + component1_7eebsc_k$() { + return this.aid; + } + component2_7eebsb_k$() { + return this.count; + } + component3_7eebsa_k$() { + return this.selected; + } + component4_7eebs9_k$() { + return this.showCount; + } + component5_7eebs8_k$() { + return this.likeResource; + } + component6_7eebs7_k$() { + return this.likeNightResource; + } + component7_7eebs6_k$() { + return this.dislikeResource; + } + component8_7eebs5_k$() { + return this.dislikeNightResource; + } + copy_dzhxoi_k$(aid, count, selected, showCount, likeResource, likeNightResource, dislikeResource, dislikeNightResource) { + return new KSearchLikeButtonItem(aid, count, selected, showCount, likeResource, likeNightResource, dislikeResource, dislikeNightResource); + } + copy(aid, count, selected, showCount, likeResource, likeNightResource, dislikeResource, dislikeNightResource, $super) { + aid = aid === VOID ? this.aid : aid; + count = count === VOID ? this.count : count; + selected = selected === VOID ? this.selected : selected; + showCount = showCount === VOID ? this.showCount : showCount; + likeResource = likeResource === VOID ? this.likeResource : likeResource; + likeNightResource = likeNightResource === VOID ? this.likeNightResource : likeNightResource; + dislikeResource = dislikeResource === VOID ? this.dislikeResource : dislikeResource; + dislikeNightResource = dislikeNightResource === VOID ? this.dislikeNightResource : dislikeNightResource; + return this.copy_dzhxoi_k$(aid, count, selected, showCount, likeResource, likeNightResource, dislikeResource, dislikeNightResource); + } + toString() { + return 'KSearchLikeButtonItem(aid=' + this.aid.toString() + ', count=' + this.count.toString() + ', selected=' + this.selected + ', showCount=' + this.showCount + ', likeResource=' + this.likeResource + ', likeNightResource=' + this.likeNightResource + ', dislikeResource=' + this.dislikeResource + ', dislikeNightResource=' + this.dislikeNightResource + ')'; + } + hashCode() { + var result = this.aid.hashCode(); + result = imul(result, 31) + this.count.hashCode() | 0; + result = imul(result, 31) + this.selected | 0; + result = imul(result, 31) + getBooleanHashCode(this.showCount) | 0; + result = imul(result, 31) + (this.likeResource == null ? 0 : this.likeResource.hashCode()) | 0; + result = imul(result, 31) + (this.likeNightResource == null ? 0 : this.likeNightResource.hashCode()) | 0; + result = imul(result, 31) + (this.dislikeResource == null ? 0 : this.dislikeResource.hashCode()) | 0; + result = imul(result, 31) + (this.dislikeNightResource == null ? 0 : this.dislikeNightResource.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSearchLikeButtonItem)) + return false; + var tmp0_other_with_cast = other instanceof KSearchLikeButtonItem ? other : THROW_CCE(); + if (!this.aid.equals(tmp0_other_with_cast.aid)) + return false; + if (!this.count.equals(tmp0_other_with_cast.count)) + return false; + if (!(this.selected === tmp0_other_with_cast.selected)) + return false; + if (!(this.showCount === tmp0_other_with_cast.showCount)) + return false; + if (!equals(this.likeResource, tmp0_other_with_cast.likeResource)) + return false; + if (!equals(this.likeNightResource, tmp0_other_with_cast.likeNightResource)) + return false; + if (!equals(this.dislikeResource, tmp0_other_with_cast.dislikeResource)) + return false; + if (!equals(this.dislikeNightResource, tmp0_other_with_cast.dislikeNightResource)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KSearchLikeButtonItem_mhg6tk_k$(seen1, aid, count, selected, showCount, likeResource, likeNightResource, dislikeResource, dislikeNightResource, serializationConstructorMarker) { + Companion_instance_535; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_522().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.aid = new Long(0, 0); + else + $this.aid = aid; + if (0 === (seen1 & 2)) + $this.count = new Long(0, 0); + else + $this.count = count; + if (0 === (seen1 & 4)) + $this.selected = 0; + else + $this.selected = selected; + if (0 === (seen1 & 8)) + $this.showCount = false; + else + $this.showCount = showCount; + if (0 === (seen1 & 16)) + $this.likeResource = null; + else + $this.likeResource = likeResource; + if (0 === (seen1 & 32)) + $this.likeNightResource = null; + else + $this.likeNightResource = likeNightResource; + if (0 === (seen1 & 64)) + $this.dislikeResource = null; + else + $this.dislikeResource = dislikeResource; + if (0 === (seen1 & 128)) + $this.dislikeNightResource = null; + else + $this.dislikeNightResource = dislikeNightResource; + return $this; + } + } + class Companion_536 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.LikeResource'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_523(); + } + } + class $serializer_523 { + constructor() { + $serializer_instance_523 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KLikeResource', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('url', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('contentHash', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KLikeResource.new_com_bapis_bilibili_polymer_app_search_v1_KLikeResource_29ek4w_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_pikqum_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.url === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.url); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.contentHash === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.contentHash); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_pikqum_k$(encoder, value instanceof KLikeResource ? value : THROW_CCE()); + } + } + class KLikeResource { + constructor(url, contentHash) { + Companion_instance_536; + url = url === VOID ? '' : url; + contentHash = contentHash === VOID ? '' : contentHash; + this.url = url; + this.contentHash = contentHash; + } + get_url_18iuii_k$() { + return this.url; + } + get_contentHash_7ganjy_k$() { + return this.contentHash; + } + component1_7eebsc_k$() { + return this.url; + } + component2_7eebsb_k$() { + return this.contentHash; + } + copy_plwnsl_k$(url, contentHash) { + return new KLikeResource(url, contentHash); + } + copy(url, contentHash, $super) { + url = url === VOID ? this.url : url; + contentHash = contentHash === VOID ? this.contentHash : contentHash; + return this.copy_plwnsl_k$(url, contentHash); + } + toString() { + return 'KLikeResource(url=' + this.url + ', contentHash=' + this.contentHash + ')'; + } + hashCode() { + var result = getStringHashCode(this.url); + result = imul(result, 31) + getStringHashCode(this.contentHash) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KLikeResource)) + return false; + var tmp0_other_with_cast = other instanceof KLikeResource ? other : THROW_CCE(); + if (!(this.url === tmp0_other_with_cast.url)) + return false; + if (!(this.contentHash === tmp0_other_with_cast.contentHash)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KLikeResource_29ek4w_k$(seen1, url, contentHash, serializationConstructorMarker) { + Companion_instance_536; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_523().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.url = ''; + else + $this.url = url; + if (0 === (seen1 & 2)) + $this.contentHash = ''; + else + $this.contentHash = contentHash; + return $this; + } + } + class Companion_537 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.Space'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_524(); + } + } + class $serializer_524 { + constructor() { + $serializer_instance_524 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KSpace', this, 5); + tmp0_serialDesc.addElement_5pzumi_k$('show', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('textColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('textColorNight', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('text', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('spaceUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp9_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + } else + while (tmp1_flag) { + tmp2_index = tmp9_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp9_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSpace.new_com_bapis_bilibili_polymer_app_search_v1_KSpace_lowx11_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); + } + serialize_sahuqf_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.show === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.show); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.textColor === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.textColor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.textColorNight === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.textColorNight); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.text === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.text); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.spaceUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.spaceUrl); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_sahuqf_k$(encoder, value instanceof KSpace ? value : THROW_CCE()); + } + } + class KSpace { + constructor(show, textColor, textColorNight, text, spaceUrl) { + Companion_instance_537; + show = show === VOID ? 0 : show; + textColor = textColor === VOID ? '' : textColor; + textColorNight = textColorNight === VOID ? '' : textColorNight; + text = text === VOID ? '' : text; + spaceUrl = spaceUrl === VOID ? '' : spaceUrl; + this.show = show; + this.textColor = textColor; + this.textColorNight = textColorNight; + this.text = text; + this.spaceUrl = spaceUrl; + } + get_show_wouati_k$() { + return this.show; + } + get_textColor_92p84z_k$() { + return this.textColor; + } + get_textColorNight_hqolf9_k$() { + return this.textColorNight; + } + get_text_wouvsm_k$() { + return this.text; + } + get_spaceUrl_2220k2_k$() { + return this.spaceUrl; + } + component1_7eebsc_k$() { + return this.show; + } + component2_7eebsb_k$() { + return this.textColor; + } + component3_7eebsa_k$() { + return this.textColorNight; + } + component4_7eebs9_k$() { + return this.text; + } + component5_7eebs8_k$() { + return this.spaceUrl; + } + copy_bewxq5_k$(show, textColor, textColorNight, text, spaceUrl) { + return new KSpace(show, textColor, textColorNight, text, spaceUrl); + } + copy(show, textColor, textColorNight, text, spaceUrl, $super) { + show = show === VOID ? this.show : show; + textColor = textColor === VOID ? this.textColor : textColor; + textColorNight = textColorNight === VOID ? this.textColorNight : textColorNight; + text = text === VOID ? this.text : text; + spaceUrl = spaceUrl === VOID ? this.spaceUrl : spaceUrl; + return this.copy_bewxq5_k$(show, textColor, textColorNight, text, spaceUrl); + } + toString() { + return 'KSpace(show=' + this.show + ', textColor=' + this.textColor + ', textColorNight=' + this.textColorNight + ', text=' + this.text + ', spaceUrl=' + this.spaceUrl + ')'; + } + hashCode() { + var result = this.show; + result = imul(result, 31) + getStringHashCode(this.textColor) | 0; + result = imul(result, 31) + getStringHashCode(this.textColorNight) | 0; + result = imul(result, 31) + getStringHashCode(this.text) | 0; + result = imul(result, 31) + getStringHashCode(this.spaceUrl) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSpace)) + return false; + var tmp0_other_with_cast = other instanceof KSpace ? other : THROW_CCE(); + if (!(this.show === tmp0_other_with_cast.show)) + return false; + if (!(this.textColor === tmp0_other_with_cast.textColor)) + return false; + if (!(this.textColorNight === tmp0_other_with_cast.textColorNight)) + return false; + if (!(this.text === tmp0_other_with_cast.text)) + return false; + if (!(this.spaceUrl === tmp0_other_with_cast.spaceUrl)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KSpace_lowx11_k$(seen1, show, textColor, textColorNight, text, spaceUrl, serializationConstructorMarker) { + Companion_instance_537; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_524().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.show = 0; + else + $this.show = show; + if (0 === (seen1 & 2)) + $this.textColor = ''; + else + $this.textColor = textColor; + if (0 === (seen1 & 4)) + $this.textColorNight = ''; + else + $this.textColorNight = textColorNight; + if (0 === (seen1 & 8)) + $this.text = ''; + else + $this.text = text; + if (0 === (seen1 & 16)) + $this.spaceUrl = ''; + else + $this.spaceUrl = spaceUrl; + return $this; + } + } + class Companion_538 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.AvItem'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_525(); + } + } + class $serializer_525 { + constructor() { + $serializer_instance_525 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KAvItem', this, 15); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('uri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('ctimeLabel', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('duration', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('play', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('danmaku', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('ctime', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('goto', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('param', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('position', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('ctimeLabelV2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + tmp0_serialDesc.addElement_5pzumi_k$('viewContent', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(13)); + tmp0_serialDesc.addElement_5pzumi_k$('iconType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(14)); + tmp0_serialDesc.addElement_5pzumi_k$('chargingLabel', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(15)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), get_nullable($serializer_getInstance_629())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = 0; + var tmp10_local6 = new Long(0, 0); + var tmp11_local7 = 0; + var tmp12_local8 = null; + var tmp13_local9 = null; + var tmp14_local10 = 0; + var tmp15_local11 = null; + var tmp16_local12 = null; + var tmp17_local13 = 0; + var tmp18_local14 = null; + var tmp19_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp19_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp19_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp19_input.decodeLongElement_994anb_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp19_input.decodeIntElement_941u6a_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp19_input.decodeIntElement_941u6a_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + tmp16_local12 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + tmp17_local13 = tmp19_input.decodeIntElement_941u6a_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + tmp18_local14 = tmp19_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 14, $serializer_getInstance_629(), tmp18_local14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + } else + while (tmp1_flag) { + tmp2_index = tmp19_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp19_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp19_input.decodeLongElement_994anb_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp19_input.decodeIntElement_941u6a_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp19_input.decodeIntElement_941u6a_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + case 12: + tmp16_local12 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + break; + case 13: + tmp17_local13 = tmp19_input.decodeIntElement_941u6a_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + break; + case 14: + tmp18_local14 = tmp19_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 14, $serializer_getInstance_629(), tmp18_local14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp19_input.endStructure_1xqz0n_k$(tmp0_desc); + return KAvItem.new_com_bapis_bilibili_polymer_app_search_v1_KAvItem_rpedaw_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, tmp18_local14, null); + } + serialize_2byo7j_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.cover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.uri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.uri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.ctimeLabel === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.ctimeLabel); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.duration === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.duration); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.play === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 5, value.play); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !value.danmaku.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 6, value.danmaku); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.ctime === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 7, value.ctime); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.goto === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 8, value.goto); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.param === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 9, value.param); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.position === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 10, value.position); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.ctimeLabelV2 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 11, value.ctimeLabelV2); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !(value.viewContent === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 12, value.viewContent); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 13) ? true : !(value.iconType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 13, value.iconType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 14) ? true : !(value.chargingLabel == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 14, $serializer_getInstance_629(), value.chargingLabel); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_2byo7j_k$(encoder, value instanceof KAvItem ? value : THROW_CCE()); + } + } + class KAvItem { + constructor(title, cover, uri, ctimeLabel, duration, play, danmaku, ctime, goto, param, position, ctimeLabelV2, viewContent, iconType, chargingLabel) { + Companion_instance_538; + title = title === VOID ? '' : title; + cover = cover === VOID ? '' : cover; + uri = uri === VOID ? '' : uri; + ctimeLabel = ctimeLabel === VOID ? '' : ctimeLabel; + duration = duration === VOID ? '' : duration; + play = play === VOID ? 0 : play; + danmaku = danmaku === VOID ? new Long(0, 0) : danmaku; + ctime = ctime === VOID ? 0 : ctime; + goto = goto === VOID ? '' : goto; + param = param === VOID ? '' : param; + position = position === VOID ? 0 : position; + ctimeLabelV2 = ctimeLabelV2 === VOID ? '' : ctimeLabelV2; + viewContent = viewContent === VOID ? '' : viewContent; + iconType = iconType === VOID ? 0 : iconType; + chargingLabel = chargingLabel === VOID ? null : chargingLabel; + this.title = title; + this.cover = cover; + this.uri = uri; + this.ctimeLabel = ctimeLabel; + this.duration = duration; + this.play = play; + this.danmaku = danmaku; + this.ctime = ctime; + this.goto = goto; + this.param = param; + this.position = position; + this.ctimeLabelV2 = ctimeLabelV2; + this.viewContent = viewContent; + this.iconType = iconType; + this.chargingLabel = chargingLabel; + } + get_title_iz32un_k$() { + return this.title; + } + get_cover_ipug0e_k$() { + return this.cover; + } + get_uri_18iuil_k$() { + return this.uri; + } + get_ctimeLabel_djfzcd_k$() { + return this.ctimeLabel; + } + get_duration_6a6kpp_k$() { + return this.duration; + } + get_play_wosghp_k$() { + return this.play; + } + get_danmaku_p1pkiu_k$() { + return this.danmaku; + } + get_ctime_ipxdhj_k$() { + return this.ctime; + } + get_goto_womsa4_k$() { + return this.goto; + } + get_param_iwqquc_k$() { + return this.param; + } + get_position_jfponi_k$() { + return this.position; + } + get_ctimeLabelV2_de0hl5_k$() { + return this.ctimeLabelV2; + } + get_viewContent_th0tkb_k$() { + return this.viewContent; + } + get_iconType_r0uasc_k$() { + return this.iconType; + } + get_chargingLabel_h4wyca_k$() { + return this.chargingLabel; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.cover; + } + component3_7eebsa_k$() { + return this.uri; + } + component4_7eebs9_k$() { + return this.ctimeLabel; + } + component5_7eebs8_k$() { + return this.duration; + } + component6_7eebs7_k$() { + return this.play; + } + component7_7eebs6_k$() { + return this.danmaku; + } + component8_7eebs5_k$() { + return this.ctime; + } + component9_7eebs4_k$() { + return this.goto; + } + component10_gazzfo_k$() { + return this.param; + } + component11_gazzfn_k$() { + return this.position; + } + component12_gazzfm_k$() { + return this.ctimeLabelV2; + } + component13_gazzfl_k$() { + return this.viewContent; + } + component14_gazzfk_k$() { + return this.iconType; + } + component15_gazzfj_k$() { + return this.chargingLabel; + } + copy_s16ul9_k$(title, cover, uri, ctimeLabel, duration, play, danmaku, ctime, goto, param, position, ctimeLabelV2, viewContent, iconType, chargingLabel) { + return new KAvItem(title, cover, uri, ctimeLabel, duration, play, danmaku, ctime, goto, param, position, ctimeLabelV2, viewContent, iconType, chargingLabel); + } + copy(title, cover, uri, ctimeLabel, duration, play, danmaku, ctime, goto, param, position, ctimeLabelV2, viewContent, iconType, chargingLabel, $super) { + title = title === VOID ? this.title : title; + cover = cover === VOID ? this.cover : cover; + uri = uri === VOID ? this.uri : uri; + ctimeLabel = ctimeLabel === VOID ? this.ctimeLabel : ctimeLabel; + duration = duration === VOID ? this.duration : duration; + play = play === VOID ? this.play : play; + danmaku = danmaku === VOID ? this.danmaku : danmaku; + ctime = ctime === VOID ? this.ctime : ctime; + goto = goto === VOID ? this.goto : goto; + param = param === VOID ? this.param : param; + position = position === VOID ? this.position : position; + ctimeLabelV2 = ctimeLabelV2 === VOID ? this.ctimeLabelV2 : ctimeLabelV2; + viewContent = viewContent === VOID ? this.viewContent : viewContent; + iconType = iconType === VOID ? this.iconType : iconType; + chargingLabel = chargingLabel === VOID ? this.chargingLabel : chargingLabel; + return this.copy_s16ul9_k$(title, cover, uri, ctimeLabel, duration, play, danmaku, ctime, goto, param, position, ctimeLabelV2, viewContent, iconType, chargingLabel); + } + toString() { + return 'KAvItem(title=' + this.title + ', cover=' + this.cover + ', uri=' + this.uri + ', ctimeLabel=' + this.ctimeLabel + ', duration=' + this.duration + ', play=' + this.play + ', danmaku=' + this.danmaku.toString() + ', ctime=' + this.ctime + ', goto=' + this.goto + ', param=' + this.param + ', position=' + this.position + ', ctimeLabelV2=' + this.ctimeLabelV2 + ', viewContent=' + this.viewContent + ', iconType=' + this.iconType + ', chargingLabel=' + this.chargingLabel + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.cover) | 0; + result = imul(result, 31) + getStringHashCode(this.uri) | 0; + result = imul(result, 31) + getStringHashCode(this.ctimeLabel) | 0; + result = imul(result, 31) + getStringHashCode(this.duration) | 0; + result = imul(result, 31) + this.play | 0; + result = imul(result, 31) + this.danmaku.hashCode() | 0; + result = imul(result, 31) + this.ctime | 0; + result = imul(result, 31) + getStringHashCode(this.goto) | 0; + result = imul(result, 31) + getStringHashCode(this.param) | 0; + result = imul(result, 31) + this.position | 0; + result = imul(result, 31) + getStringHashCode(this.ctimeLabelV2) | 0; + result = imul(result, 31) + getStringHashCode(this.viewContent) | 0; + result = imul(result, 31) + this.iconType | 0; + result = imul(result, 31) + (this.chargingLabel == null ? 0 : this.chargingLabel.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KAvItem)) + return false; + var tmp0_other_with_cast = other instanceof KAvItem ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + if (!(this.uri === tmp0_other_with_cast.uri)) + return false; + if (!(this.ctimeLabel === tmp0_other_with_cast.ctimeLabel)) + return false; + if (!(this.duration === tmp0_other_with_cast.duration)) + return false; + if (!(this.play === tmp0_other_with_cast.play)) + return false; + if (!this.danmaku.equals(tmp0_other_with_cast.danmaku)) + return false; + if (!(this.ctime === tmp0_other_with_cast.ctime)) + return false; + if (!(this.goto === tmp0_other_with_cast.goto)) + return false; + if (!(this.param === tmp0_other_with_cast.param)) + return false; + if (!(this.position === tmp0_other_with_cast.position)) + return false; + if (!(this.ctimeLabelV2 === tmp0_other_with_cast.ctimeLabelV2)) + return false; + if (!(this.viewContent === tmp0_other_with_cast.viewContent)) + return false; + if (!(this.iconType === tmp0_other_with_cast.iconType)) + return false; + if (!equals(this.chargingLabel, tmp0_other_with_cast.chargingLabel)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KAvItem_rpedaw_k$(seen1, title, cover, uri, ctimeLabel, duration, play, danmaku, ctime, goto, param, position, ctimeLabelV2, viewContent, iconType, chargingLabel, serializationConstructorMarker) { + Companion_instance_538; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_525().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.cover = ''; + else + $this.cover = cover; + if (0 === (seen1 & 4)) + $this.uri = ''; + else + $this.uri = uri; + if (0 === (seen1 & 8)) + $this.ctimeLabel = ''; + else + $this.ctimeLabel = ctimeLabel; + if (0 === (seen1 & 16)) + $this.duration = ''; + else + $this.duration = duration; + if (0 === (seen1 & 32)) + $this.play = 0; + else + $this.play = play; + if (0 === (seen1 & 64)) + $this.danmaku = new Long(0, 0); + else + $this.danmaku = danmaku; + if (0 === (seen1 & 128)) + $this.ctime = 0; + else + $this.ctime = ctime; + if (0 === (seen1 & 256)) + $this.goto = ''; + else + $this.goto = goto; + if (0 === (seen1 & 512)) + $this.param = ''; + else + $this.param = param; + if (0 === (seen1 & 1024)) + $this.position = 0; + else + $this.position = position; + if (0 === (seen1 & 2048)) + $this.ctimeLabelV2 = ''; + else + $this.ctimeLabelV2 = ctimeLabelV2; + if (0 === (seen1 & 4096)) + $this.viewContent = ''; + else + $this.viewContent = viewContent; + if (0 === (seen1 & 8192)) + $this.iconType = 0; + else + $this.iconType = iconType; + if (0 === (seen1 & 16384)) + $this.chargingLabel = null; + else + $this.chargingLabel = chargingLabel; + return $this; + } + } + class Companion_539 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.SearchTipsCard'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_526(); + } + } + class $serializer_526 { + constructor() { + $serializer_instance_526 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KSearchTipsCard', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('coverNight', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(134)); + tmp0_serialDesc.addElement_5pzumi_k$('subTitle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSearchTipsCard.new_com_bapis_bilibili_polymer_app_search_v1_KSearchTipsCard_jearu1_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_s0viyv_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.cover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.coverNight === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.coverNight); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.subTitle === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.subTitle); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_s0viyv_k$(encoder, value instanceof KSearchTipsCard ? value : THROW_CCE()); + } + } + class KSearchTipsCard { + constructor(title, cover, coverNight, subTitle) { + Companion_instance_539; + title = title === VOID ? '' : title; + cover = cover === VOID ? '' : cover; + coverNight = coverNight === VOID ? '' : coverNight; + subTitle = subTitle === VOID ? '' : subTitle; + this.title = title; + this.cover = cover; + this.coverNight = coverNight; + this.subTitle = subTitle; + } + get_title_iz32un_k$() { + return this.title; + } + get_cover_ipug0e_k$() { + return this.cover; + } + get_coverNight_a3jfu_k$() { + return this.coverNight; + } + get_subTitle_4nt9z5_k$() { + return this.subTitle; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.cover; + } + component3_7eebsa_k$() { + return this.coverNight; + } + component4_7eebs9_k$() { + return this.subTitle; + } + copy_hmmiyd_k$(title, cover, coverNight, subTitle) { + return new KSearchTipsCard(title, cover, coverNight, subTitle); + } + copy(title, cover, coverNight, subTitle, $super) { + title = title === VOID ? this.title : title; + cover = cover === VOID ? this.cover : cover; + coverNight = coverNight === VOID ? this.coverNight : coverNight; + subTitle = subTitle === VOID ? this.subTitle : subTitle; + return this.copy_hmmiyd_k$(title, cover, coverNight, subTitle); + } + toString() { + return 'KSearchTipsCard(title=' + this.title + ', cover=' + this.cover + ', coverNight=' + this.coverNight + ', subTitle=' + this.subTitle + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.cover) | 0; + result = imul(result, 31) + getStringHashCode(this.coverNight) | 0; + result = imul(result, 31) + getStringHashCode(this.subTitle) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSearchTipsCard)) + return false; + var tmp0_other_with_cast = other instanceof KSearchTipsCard ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + if (!(this.coverNight === tmp0_other_with_cast.coverNight)) + return false; + if (!(this.subTitle === tmp0_other_with_cast.subTitle)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KSearchTipsCard_jearu1_k$(seen1, title, cover, coverNight, subTitle, serializationConstructorMarker) { + Companion_instance_539; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_526().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.cover = ''; + else + $this.cover = cover; + if (0 === (seen1 & 4)) + $this.coverNight = ''; + else + $this.coverNight = coverNight; + if (0 === (seen1 & 8)) + $this.subTitle = ''; + else + $this.subTitle = subTitle; + return $this; + } + } + class Companion_540 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.SearchAdCard'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_527(); + } + } + class $serializer_527 { + constructor() { + $serializer_instance_527 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KSearchAdCard', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('jsonStr', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSearchAdCard.new_com_bapis_bilibili_polymer_app_search_v1_KSearchAdCard_gsdj6n_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_fik324_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.jsonStr === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.jsonStr); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_fik324_k$(encoder, value instanceof KSearchAdCard ? value : THROW_CCE()); + } + } + class KSearchAdCard { + constructor(jsonStr) { + Companion_instance_540; + jsonStr = jsonStr === VOID ? '' : jsonStr; + this.jsonStr = jsonStr; + } + get_jsonStr_kerhkw_k$() { + return this.jsonStr; + } + component1_7eebsc_k$() { + return this.jsonStr; + } + copy_a35qlh_k$(jsonStr) { + return new KSearchAdCard(jsonStr); + } + copy(jsonStr, $super) { + jsonStr = jsonStr === VOID ? this.jsonStr : jsonStr; + return this.copy_a35qlh_k$(jsonStr); + } + toString() { + return 'KSearchAdCard(jsonStr=' + this.jsonStr + ')'; + } + hashCode() { + return getStringHashCode(this.jsonStr); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSearchAdCard)) + return false; + var tmp0_other_with_cast = other instanceof KSearchAdCard ? other : THROW_CCE(); + if (!(this.jsonStr === tmp0_other_with_cast.jsonStr)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KSearchAdCard_gsdj6n_k$(seen1, jsonStr, serializationConstructorMarker) { + Companion_instance_540; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_527().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.jsonStr = ''; + else + $this.jsonStr = jsonStr; + return $this; + } + } + class Companion_541 { + constructor() { + Companion_instance_541 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, new ArrayListSerializer($serializer_getInstance_545()), null, null, null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.polymer.app.search.v1.SearchPediaCard'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_528(); + } + } + class $serializer_528 { + constructor() { + $serializer_instance_528 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KSearchPediaCard', this, 7); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('navigation', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('readMore', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('navigationModuleCount', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('pediaCover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('cardBusinessBadge', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_541().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), tmp0_cached[2], get_nullable($serializer_getInstance_546()), IntSerializer_getInstance(), get_nullable($serializer_getInstance_547()), get_nullable($serializer_getInstance_550())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = 0; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp12_cached = Companion_getInstance_541().$childSerializers_1; + if (tmp11_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp11_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp12_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_546(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_547(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_550(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + } else + while (tmp1_flag) { + tmp2_index = tmp11_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp11_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp12_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_546(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_547(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_550(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp11_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSearchPediaCard.new_com_bapis_bilibili_polymer_app_search_v1_KSearchPediaCard_e68z8f_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, null); + } + serialize_gr74u8_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_541().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.cover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !equals(value.navigation, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 2, tmp2_cached[2], value.navigation); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.readMore == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_546(), value.readMore); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.navigationModuleCount === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 4, value.navigationModuleCount); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.pediaCover == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 5, $serializer_getInstance_547(), value.pediaCover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.cardBusinessBadge == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 6, $serializer_getInstance_550(), value.cardBusinessBadge); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_gr74u8_k$(encoder, value instanceof KSearchPediaCard ? value : THROW_CCE()); + } + } + class KSearchPediaCard { + constructor(title, cover, navigation, readMore, navigationModuleCount, pediaCover, cardBusinessBadge) { + Companion_getInstance_541(); + title = title === VOID ? '' : title; + cover = cover === VOID ? '' : cover; + navigation = navigation === VOID ? emptyList() : navigation; + readMore = readMore === VOID ? null : readMore; + navigationModuleCount = navigationModuleCount === VOID ? 0 : navigationModuleCount; + pediaCover = pediaCover === VOID ? null : pediaCover; + cardBusinessBadge = cardBusinessBadge === VOID ? null : cardBusinessBadge; + this.title = title; + this.cover = cover; + this.navigation = navigation; + this.readMore = readMore; + this.navigationModuleCount = navigationModuleCount; + this.pediaCover = pediaCover; + this.cardBusinessBadge = cardBusinessBadge; + } + get_title_iz32un_k$() { + return this.title; + } + get_cover_ipug0e_k$() { + return this.cover; + } + get_navigation_amqc9p_k$() { + return this.navigation; + } + get_readMore_ovjl5g_k$() { + return this.readMore; + } + get_navigationModuleCount_9vzvfe_k$() { + return this.navigationModuleCount; + } + get_pediaCover_1q7sih_k$() { + return this.pediaCover; + } + get_cardBusinessBadge_cbnpxy_k$() { + return this.cardBusinessBadge; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.cover; + } + component3_7eebsa_k$() { + return this.navigation; + } + component4_7eebs9_k$() { + return this.readMore; + } + component5_7eebs8_k$() { + return this.navigationModuleCount; + } + component6_7eebs7_k$() { + return this.pediaCover; + } + component7_7eebs6_k$() { + return this.cardBusinessBadge; + } + copy_79h0s3_k$(title, cover, navigation, readMore, navigationModuleCount, pediaCover, cardBusinessBadge) { + return new KSearchPediaCard(title, cover, navigation, readMore, navigationModuleCount, pediaCover, cardBusinessBadge); + } + copy(title, cover, navigation, readMore, navigationModuleCount, pediaCover, cardBusinessBadge, $super) { + title = title === VOID ? this.title : title; + cover = cover === VOID ? this.cover : cover; + navigation = navigation === VOID ? this.navigation : navigation; + readMore = readMore === VOID ? this.readMore : readMore; + navigationModuleCount = navigationModuleCount === VOID ? this.navigationModuleCount : navigationModuleCount; + pediaCover = pediaCover === VOID ? this.pediaCover : pediaCover; + cardBusinessBadge = cardBusinessBadge === VOID ? this.cardBusinessBadge : cardBusinessBadge; + return this.copy_79h0s3_k$(title, cover, navigation, readMore, navigationModuleCount, pediaCover, cardBusinessBadge); + } + toString() { + return 'KSearchPediaCard(title=' + this.title + ', cover=' + this.cover + ', navigation=' + this.navigation + ', readMore=' + this.readMore + ', navigationModuleCount=' + this.navigationModuleCount + ', pediaCover=' + this.pediaCover + ', cardBusinessBadge=' + this.cardBusinessBadge + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.cover) | 0; + result = imul(result, 31) + hashCode(this.navigation) | 0; + result = imul(result, 31) + (this.readMore == null ? 0 : this.readMore.hashCode()) | 0; + result = imul(result, 31) + this.navigationModuleCount | 0; + result = imul(result, 31) + (this.pediaCover == null ? 0 : this.pediaCover.hashCode()) | 0; + result = imul(result, 31) + (this.cardBusinessBadge == null ? 0 : this.cardBusinessBadge.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSearchPediaCard)) + return false; + var tmp0_other_with_cast = other instanceof KSearchPediaCard ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + if (!equals(this.navigation, tmp0_other_with_cast.navigation)) + return false; + if (!equals(this.readMore, tmp0_other_with_cast.readMore)) + return false; + if (!(this.navigationModuleCount === tmp0_other_with_cast.navigationModuleCount)) + return false; + if (!equals(this.pediaCover, tmp0_other_with_cast.pediaCover)) + return false; + if (!equals(this.cardBusinessBadge, tmp0_other_with_cast.cardBusinessBadge)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KSearchPediaCard_e68z8f_k$(seen1, title, cover, navigation, readMore, navigationModuleCount, pediaCover, cardBusinessBadge, serializationConstructorMarker) { + Companion_getInstance_541(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_528().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.cover = ''; + else + $this.cover = cover; + if (0 === (seen1 & 4)) + $this.navigation = emptyList(); + else + $this.navigation = navigation; + if (0 === (seen1 & 8)) + $this.readMore = null; + else + $this.readMore = readMore; + if (0 === (seen1 & 16)) + $this.navigationModuleCount = 0; + else + $this.navigationModuleCount = navigationModuleCount; + if (0 === (seen1 & 32)) + $this.pediaCover = null; + else + $this.pediaCover = pediaCover; + if (0 === (seen1 & 64)) + $this.cardBusinessBadge = null; + else + $this.cardBusinessBadge = cardBusinessBadge; + return $this; + } + } + class Companion_542 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.SearchUgcInlineCard'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_529(); + } + } + class $serializer_529 { + constructor() { + $serializer_instance_529 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KSearchUgcInlineCard', this, 13); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('author', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('danmaku', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('desc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('inlineType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('mid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('play', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('ugcInline', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('fullText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('feedback', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('cardLayout', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + tmp0_serialDesc.addElement_5pzumi_k$('avatarInfo', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(13)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable($serializer_getInstance_530()), get_nullable($serializer_getInstance_605()), get_nullable($serializer_getInstance_610()), get_nullable($serializer_getInstance_633()), get_nullable($serializer_getInstance_181())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = 0; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = new Long(0, 0); + var tmp11_local7 = new Long(0, 0); + var tmp12_local8 = null; + var tmp13_local9 = null; + var tmp14_local10 = null; + var tmp15_local11 = null; + var tmp16_local12 = null; + var tmp17_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp17_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp17_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp17_input.decodeLongElement_994anb_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp17_input.decodeLongElement_994anb_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp17_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_530(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp17_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 9, $serializer_getInstance_605(), tmp13_local9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp17_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 10, $serializer_getInstance_610(), tmp14_local10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp17_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 11, $serializer_getInstance_633(), tmp15_local11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + tmp16_local12 = tmp17_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 12, $serializer_getInstance_181(), tmp16_local12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + } else + while (tmp1_flag) { + tmp2_index = tmp17_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp17_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp17_input.decodeLongElement_994anb_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp17_input.decodeLongElement_994anb_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp17_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_530(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp17_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 9, $serializer_getInstance_605(), tmp13_local9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp17_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 10, $serializer_getInstance_610(), tmp14_local10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp17_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 11, $serializer_getInstance_633(), tmp15_local11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + case 12: + tmp16_local12 = tmp17_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 12, $serializer_getInstance_181(), tmp16_local12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp17_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSearchUgcInlineCard.new_com_bapis_bilibili_polymer_app_search_v1_KSearchUgcInlineCard_gc9he6_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, null); + } + serialize_bk38e5_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.cover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.author === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.author); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.danmaku === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 3, value.danmaku); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.desc === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.desc); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.inlineType === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.inlineType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !value.mid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 6, value.mid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !value.play.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 7, value.play); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.ugcInline == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 8, $serializer_getInstance_530(), value.ugcInline); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.fullText == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 9, $serializer_getInstance_605(), value.fullText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.feedback == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 10, $serializer_getInstance_610(), value.feedback); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.cardLayout == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 11, $serializer_getInstance_633(), value.cardLayout); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !(value.avatarInfo == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 12, $serializer_getInstance_181(), value.avatarInfo); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_bk38e5_k$(encoder, value instanceof KSearchUgcInlineCard ? value : THROW_CCE()); + } + } + class KSearchUgcInlineCard { + constructor(title, cover, author, danmaku, desc, inlineType, mid, play, ugcInline, fullText, feedback, cardLayout, avatarInfo) { + Companion_instance_542; + title = title === VOID ? '' : title; + cover = cover === VOID ? '' : cover; + author = author === VOID ? '' : author; + danmaku = danmaku === VOID ? 0 : danmaku; + desc = desc === VOID ? '' : desc; + inlineType = inlineType === VOID ? '' : inlineType; + mid = mid === VOID ? new Long(0, 0) : mid; + play = play === VOID ? new Long(0, 0) : play; + ugcInline = ugcInline === VOID ? null : ugcInline; + fullText = fullText === VOID ? null : fullText; + feedback = feedback === VOID ? null : feedback; + cardLayout = cardLayout === VOID ? null : cardLayout; + avatarInfo = avatarInfo === VOID ? null : avatarInfo; + this.title = title; + this.cover = cover; + this.author = author; + this.danmaku = danmaku; + this.desc = desc; + this.inlineType = inlineType; + this.mid = mid; + this.play = play; + this.ugcInline = ugcInline; + this.fullText = fullText; + this.feedback = feedback; + this.cardLayout = cardLayout; + this.avatarInfo = avatarInfo; + } + get_title_iz32un_k$() { + return this.title; + } + get_cover_ipug0e_k$() { + return this.cover; + } + get_author_b5hnkk_k$() { + return this.author; + } + get_danmaku_p1pkiu_k$() { + return this.danmaku; + } + get_desc_woknve_k$() { + return this.desc; + } + get_inlineType_7azxfo_k$() { + return this.inlineType; + } + get_mid_18j0o1_k$() { + return this.mid; + } + get_play_wosghp_k$() { + return this.play; + } + get_ugcInline_p4sm8v_k$() { + return this.ugcInline; + } + get_fullText_9sh1az_k$() { + return this.fullText; + } + get_feedback_yyya42_k$() { + return this.feedback; + } + get_cardLayout_d0npjx_k$() { + return this.cardLayout; + } + get_avatarInfo_quh7f4_k$() { + return this.avatarInfo; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.cover; + } + component3_7eebsa_k$() { + return this.author; + } + component4_7eebs9_k$() { + return this.danmaku; + } + component5_7eebs8_k$() { + return this.desc; + } + component6_7eebs7_k$() { + return this.inlineType; + } + component7_7eebs6_k$() { + return this.mid; + } + component8_7eebs5_k$() { + return this.play; + } + component9_7eebs4_k$() { + return this.ugcInline; + } + component10_gazzfo_k$() { + return this.fullText; + } + component11_gazzfn_k$() { + return this.feedback; + } + component12_gazzfm_k$() { + return this.cardLayout; + } + component13_gazzfl_k$() { + return this.avatarInfo; + } + copy_8nxpb3_k$(title, cover, author, danmaku, desc, inlineType, mid, play, ugcInline, fullText, feedback, cardLayout, avatarInfo) { + return new KSearchUgcInlineCard(title, cover, author, danmaku, desc, inlineType, mid, play, ugcInline, fullText, feedback, cardLayout, avatarInfo); + } + copy(title, cover, author, danmaku, desc, inlineType, mid, play, ugcInline, fullText, feedback, cardLayout, avatarInfo, $super) { + title = title === VOID ? this.title : title; + cover = cover === VOID ? this.cover : cover; + author = author === VOID ? this.author : author; + danmaku = danmaku === VOID ? this.danmaku : danmaku; + desc = desc === VOID ? this.desc : desc; + inlineType = inlineType === VOID ? this.inlineType : inlineType; + mid = mid === VOID ? this.mid : mid; + play = play === VOID ? this.play : play; + ugcInline = ugcInline === VOID ? this.ugcInline : ugcInline; + fullText = fullText === VOID ? this.fullText : fullText; + feedback = feedback === VOID ? this.feedback : feedback; + cardLayout = cardLayout === VOID ? this.cardLayout : cardLayout; + avatarInfo = avatarInfo === VOID ? this.avatarInfo : avatarInfo; + return this.copy_8nxpb3_k$(title, cover, author, danmaku, desc, inlineType, mid, play, ugcInline, fullText, feedback, cardLayout, avatarInfo); + } + toString() { + return 'KSearchUgcInlineCard(title=' + this.title + ', cover=' + this.cover + ', author=' + this.author + ', danmaku=' + this.danmaku + ', desc=' + this.desc + ', inlineType=' + this.inlineType + ', mid=' + this.mid.toString() + ', play=' + this.play.toString() + ', ugcInline=' + this.ugcInline + ', fullText=' + this.fullText + ', feedback=' + this.feedback + ', cardLayout=' + this.cardLayout + ', avatarInfo=' + this.avatarInfo + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.cover) | 0; + result = imul(result, 31) + getStringHashCode(this.author) | 0; + result = imul(result, 31) + this.danmaku | 0; + result = imul(result, 31) + getStringHashCode(this.desc) | 0; + result = imul(result, 31) + getStringHashCode(this.inlineType) | 0; + result = imul(result, 31) + this.mid.hashCode() | 0; + result = imul(result, 31) + this.play.hashCode() | 0; + result = imul(result, 31) + (this.ugcInline == null ? 0 : this.ugcInline.hashCode()) | 0; + result = imul(result, 31) + (this.fullText == null ? 0 : this.fullText.hashCode()) | 0; + result = imul(result, 31) + (this.feedback == null ? 0 : this.feedback.hashCode()) | 0; + result = imul(result, 31) + (this.cardLayout == null ? 0 : this.cardLayout.hashCode()) | 0; + result = imul(result, 31) + (this.avatarInfo == null ? 0 : this.avatarInfo.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSearchUgcInlineCard)) + return false; + var tmp0_other_with_cast = other instanceof KSearchUgcInlineCard ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + if (!(this.author === tmp0_other_with_cast.author)) + return false; + if (!(this.danmaku === tmp0_other_with_cast.danmaku)) + return false; + if (!(this.desc === tmp0_other_with_cast.desc)) + return false; + if (!(this.inlineType === tmp0_other_with_cast.inlineType)) + return false; + if (!this.mid.equals(tmp0_other_with_cast.mid)) + return false; + if (!this.play.equals(tmp0_other_with_cast.play)) + return false; + if (!equals(this.ugcInline, tmp0_other_with_cast.ugcInline)) + return false; + if (!equals(this.fullText, tmp0_other_with_cast.fullText)) + return false; + if (!equals(this.feedback, tmp0_other_with_cast.feedback)) + return false; + if (!equals(this.cardLayout, tmp0_other_with_cast.cardLayout)) + return false; + if (!equals(this.avatarInfo, tmp0_other_with_cast.avatarInfo)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KSearchUgcInlineCard_gc9he6_k$(seen1, title, cover, author, danmaku, desc, inlineType, mid, play, ugcInline, fullText, feedback, cardLayout, avatarInfo, serializationConstructorMarker) { + Companion_instance_542; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_529().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.cover = ''; + else + $this.cover = cover; + if (0 === (seen1 & 4)) + $this.author = ''; + else + $this.author = author; + if (0 === (seen1 & 8)) + $this.danmaku = 0; + else + $this.danmaku = danmaku; + if (0 === (seen1 & 16)) + $this.desc = ''; + else + $this.desc = desc; + if (0 === (seen1 & 32)) + $this.inlineType = ''; + else + $this.inlineType = inlineType; + if (0 === (seen1 & 64)) + $this.mid = new Long(0, 0); + else + $this.mid = mid; + if (0 === (seen1 & 128)) + $this.play = new Long(0, 0); + else + $this.play = play; + if (0 === (seen1 & 256)) + $this.ugcInline = null; + else + $this.ugcInline = ugcInline; + if (0 === (seen1 & 512)) + $this.fullText = null; + else + $this.fullText = fullText; + if (0 === (seen1 & 1024)) + $this.feedback = null; + else + $this.feedback = feedback; + if (0 === (seen1 & 2048)) + $this.cardLayout = null; + else + $this.cardLayout = cardLayout; + if (0 === (seen1 & 4096)) + $this.avatarInfo = null; + else + $this.avatarInfo = avatarInfo; + return $this; + } + } + class Companion_543 { + constructor() { + Companion_instance_543 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, new ArrayListSerializer($serializer_getInstance_578()), null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.polymer.app.search.v1.SearchInlineData'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_530(); + } + } + class $serializer_530 { + constructor() { + $serializer_instance_530 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KSearchInlineData', this, 40); + tmp0_serialDesc.addElement_5pzumi_k$('uri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('playerArgs', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('canPlay', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('args', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('cardGoto', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('cardType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('coverLeftIcon1', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('coverLeftIcon2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('coverLeftText1', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('coverLeftText2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + tmp0_serialDesc.addElement_5pzumi_k$('upArgs', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(13)); + tmp0_serialDesc.addElement_5pzumi_k$('extraUri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(14)); + tmp0_serialDesc.addElement_5pzumi_k$('isFav', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(15)); + tmp0_serialDesc.addElement_5pzumi_k$('isCoin', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(16)); + tmp0_serialDesc.addElement_5pzumi_k$('goto', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(17)); + tmp0_serialDesc.addElement_5pzumi_k$('share', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(18)); + tmp0_serialDesc.addElement_5pzumi_k$('threePoint', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(19)); + tmp0_serialDesc.addElement_5pzumi_k$('threePointV2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(20)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('sharePlane', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(21)); + tmp0_serialDesc.addElement_5pzumi_k$('threePointMeta', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(22)); + tmp0_serialDesc.addElement_5pzumi_k$('avatar', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(23)); + tmp0_serialDesc.addElement_5pzumi_k$('coverRightText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(24)); + tmp0_serialDesc.addElement_5pzumi_k$('desc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(25)); + tmp0_serialDesc.addElement_5pzumi_k$('inlineProgressBar', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(26)); + tmp0_serialDesc.addElement_5pzumi_k$('likeButton', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(27)); + tmp0_serialDesc.addElement_5pzumi_k$('officialIcon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(28)); + tmp0_serialDesc.addElement_5pzumi_k$('officialIconV2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(29)); + tmp0_serialDesc.addElement_5pzumi_k$('param', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(30)); + tmp0_serialDesc.addElement_5pzumi_k$('trafficConfig', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(31)); + tmp0_serialDesc.addElement_5pzumi_k$('isAtten', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(32)); + tmp0_serialDesc.addElement_5pzumi_k$('gotoIcon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(33)); + tmp0_serialDesc.addElement_5pzumi_k$('disableDanmaku', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(34)); + tmp0_serialDesc.addElement_5pzumi_k$('hideDanmakuSwitch', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(35)); + tmp0_serialDesc.addElement_5pzumi_k$('badgeStyle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(36)); + tmp0_serialDesc.addElement_5pzumi_k$('playerWidget', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(37)); + tmp0_serialDesc.addElement_5pzumi_k$('coverBadgeStyle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(38)); + tmp0_serialDesc.addElement_5pzumi_k$('rightTopLiveBadge', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(39)); + tmp0_serialDesc.addElement_5pzumi_k$('reportFlowData', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(40)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_543().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_583()), IntSerializer_getInstance(), get_nullable($serializer_getInstance_518()), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_574()), StringSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_555()), get_nullable($serializer_getInstance_581()), tmp0_cached[19], get_nullable($serializer_getInstance_607()), get_nullable($serializer_getInstance_519()), get_nullable($serializer_getInstance_517()), StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_585()), get_nullable($serializer_getInstance_522()), IntSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_587()), BooleanSerializer_getInstance(), get_nullable($serializer_getInstance_551()), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), get_nullable($serializer_getInstance_606()), get_nullable($serializer_getInstance_532()), get_nullable($serializer_getInstance_606()), get_nullable($serializer_getInstance_584()), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_bitMask1 = 0; + var tmp5_local0 = null; + var tmp6_local1 = null; + var tmp7_local2 = null; + var tmp8_local3 = 0; + var tmp9_local4 = null; + var tmp10_local5 = null; + var tmp11_local6 = null; + var tmp12_local7 = null; + var tmp13_local8 = 0; + var tmp14_local9 = 0; + var tmp15_local10 = null; + var tmp16_local11 = null; + var tmp17_local12 = null; + var tmp18_local13 = null; + var tmp19_local14 = false; + var tmp20_local15 = false; + var tmp21_local16 = null; + var tmp22_local17 = null; + var tmp23_local18 = null; + var tmp24_local19 = null; + var tmp25_local20 = null; + var tmp26_local21 = null; + var tmp27_local22 = null; + var tmp28_local23 = null; + var tmp29_local24 = null; + var tmp30_local25 = null; + var tmp31_local26 = null; + var tmp32_local27 = 0; + var tmp33_local28 = 0; + var tmp34_local29 = null; + var tmp35_local30 = null; + var tmp36_local31 = false; + var tmp37_local32 = null; + var tmp38_local33 = false; + var tmp39_local34 = false; + var tmp40_local35 = null; + var tmp41_local36 = null; + var tmp42_local37 = null; + var tmp43_local38 = null; + var tmp44_local39 = null; + var tmp45_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp46_cached = Companion_getInstance_543().$childSerializers_1; + if (tmp45_input.decodeSequentially_xlblqy_k$()) { + tmp5_local0 = tmp45_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp6_local1 = tmp45_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp7_local2 = tmp45_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_583(), tmp7_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp8_local3 = tmp45_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp9_local4 = tmp45_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_518(), tmp9_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp10_local5 = tmp45_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp11_local6 = tmp45_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp12_local7 = tmp45_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp13_local8 = tmp45_input.decodeIntElement_941u6a_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp14_local9 = tmp45_input.decodeIntElement_941u6a_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp15_local10 = tmp45_input.decodeStringElement_3oenpg_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp16_local11 = tmp45_input.decodeStringElement_3oenpg_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + tmp17_local12 = tmp45_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 12, $serializer_getInstance_574(), tmp17_local12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + tmp18_local13 = tmp45_input.decodeStringElement_3oenpg_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + tmp19_local14 = tmp45_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + tmp20_local15 = tmp45_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + tmp21_local16 = tmp45_input.decodeStringElement_3oenpg_k$(tmp0_desc, 16); + tmp3_bitMask0 = tmp3_bitMask0 | 65536; + tmp22_local17 = tmp45_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 17, $serializer_getInstance_555(), tmp22_local17); + tmp3_bitMask0 = tmp3_bitMask0 | 131072; + tmp23_local18 = tmp45_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 18, $serializer_getInstance_581(), tmp23_local18); + tmp3_bitMask0 = tmp3_bitMask0 | 262144; + tmp24_local19 = tmp45_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 19, tmp46_cached[19], tmp24_local19); + tmp3_bitMask0 = tmp3_bitMask0 | 524288; + tmp25_local20 = tmp45_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 20, $serializer_getInstance_607(), tmp25_local20); + tmp3_bitMask0 = tmp3_bitMask0 | 1048576; + tmp26_local21 = tmp45_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 21, $serializer_getInstance_519(), tmp26_local21); + tmp3_bitMask0 = tmp3_bitMask0 | 2097152; + tmp27_local22 = tmp45_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 22, $serializer_getInstance_517(), tmp27_local22); + tmp3_bitMask0 = tmp3_bitMask0 | 4194304; + tmp28_local23 = tmp45_input.decodeStringElement_3oenpg_k$(tmp0_desc, 23); + tmp3_bitMask0 = tmp3_bitMask0 | 8388608; + tmp29_local24 = tmp45_input.decodeStringElement_3oenpg_k$(tmp0_desc, 24); + tmp3_bitMask0 = tmp3_bitMask0 | 16777216; + tmp30_local25 = tmp45_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 25, $serializer_getInstance_585(), tmp30_local25); + tmp3_bitMask0 = tmp3_bitMask0 | 33554432; + tmp31_local26 = tmp45_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 26, $serializer_getInstance_522(), tmp31_local26); + tmp3_bitMask0 = tmp3_bitMask0 | 67108864; + tmp32_local27 = tmp45_input.decodeIntElement_941u6a_k$(tmp0_desc, 27); + tmp3_bitMask0 = tmp3_bitMask0 | 134217728; + tmp33_local28 = tmp45_input.decodeIntElement_941u6a_k$(tmp0_desc, 28); + tmp3_bitMask0 = tmp3_bitMask0 | 268435456; + tmp34_local29 = tmp45_input.decodeStringElement_3oenpg_k$(tmp0_desc, 29); + tmp3_bitMask0 = tmp3_bitMask0 | 536870912; + tmp35_local30 = tmp45_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 30, $serializer_getInstance_587(), tmp35_local30); + tmp3_bitMask0 = tmp3_bitMask0 | 1073741824; + tmp36_local31 = tmp45_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 31); + tmp3_bitMask0 = tmp3_bitMask0 | -2147483648; + tmp37_local32 = tmp45_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 32, $serializer_getInstance_551(), tmp37_local32); + tmp4_bitMask1 = tmp4_bitMask1 | 1; + tmp38_local33 = tmp45_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 33); + tmp4_bitMask1 = tmp4_bitMask1 | 2; + tmp39_local34 = tmp45_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 34); + tmp4_bitMask1 = tmp4_bitMask1 | 4; + tmp40_local35 = tmp45_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 35, $serializer_getInstance_606(), tmp40_local35); + tmp4_bitMask1 = tmp4_bitMask1 | 8; + tmp41_local36 = tmp45_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 36, $serializer_getInstance_532(), tmp41_local36); + tmp4_bitMask1 = tmp4_bitMask1 | 16; + tmp42_local37 = tmp45_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 37, $serializer_getInstance_606(), tmp42_local37); + tmp4_bitMask1 = tmp4_bitMask1 | 32; + tmp43_local38 = tmp45_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 38, $serializer_getInstance_584(), tmp43_local38); + tmp4_bitMask1 = tmp4_bitMask1 | 64; + tmp44_local39 = tmp45_input.decodeStringElement_3oenpg_k$(tmp0_desc, 39); + tmp4_bitMask1 = tmp4_bitMask1 | 128; + } else + while (tmp1_flag) { + tmp2_index = tmp45_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp5_local0 = tmp45_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp6_local1 = tmp45_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp7_local2 = tmp45_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_583(), tmp7_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp8_local3 = tmp45_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp9_local4 = tmp45_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_518(), tmp9_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp10_local5 = tmp45_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp11_local6 = tmp45_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp12_local7 = tmp45_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp13_local8 = tmp45_input.decodeIntElement_941u6a_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp14_local9 = tmp45_input.decodeIntElement_941u6a_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp15_local10 = tmp45_input.decodeStringElement_3oenpg_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp16_local11 = tmp45_input.decodeStringElement_3oenpg_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + case 12: + tmp17_local12 = tmp45_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 12, $serializer_getInstance_574(), tmp17_local12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + break; + case 13: + tmp18_local13 = tmp45_input.decodeStringElement_3oenpg_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + break; + case 14: + tmp19_local14 = tmp45_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + break; + case 15: + tmp20_local15 = tmp45_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + break; + case 16: + tmp21_local16 = tmp45_input.decodeStringElement_3oenpg_k$(tmp0_desc, 16); + tmp3_bitMask0 = tmp3_bitMask0 | 65536; + break; + case 17: + tmp22_local17 = tmp45_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 17, $serializer_getInstance_555(), tmp22_local17); + tmp3_bitMask0 = tmp3_bitMask0 | 131072; + break; + case 18: + tmp23_local18 = tmp45_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 18, $serializer_getInstance_581(), tmp23_local18); + tmp3_bitMask0 = tmp3_bitMask0 | 262144; + break; + case 19: + tmp24_local19 = tmp45_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 19, tmp46_cached[19], tmp24_local19); + tmp3_bitMask0 = tmp3_bitMask0 | 524288; + break; + case 20: + tmp25_local20 = tmp45_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 20, $serializer_getInstance_607(), tmp25_local20); + tmp3_bitMask0 = tmp3_bitMask0 | 1048576; + break; + case 21: + tmp26_local21 = tmp45_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 21, $serializer_getInstance_519(), tmp26_local21); + tmp3_bitMask0 = tmp3_bitMask0 | 2097152; + break; + case 22: + tmp27_local22 = tmp45_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 22, $serializer_getInstance_517(), tmp27_local22); + tmp3_bitMask0 = tmp3_bitMask0 | 4194304; + break; + case 23: + tmp28_local23 = tmp45_input.decodeStringElement_3oenpg_k$(tmp0_desc, 23); + tmp3_bitMask0 = tmp3_bitMask0 | 8388608; + break; + case 24: + tmp29_local24 = tmp45_input.decodeStringElement_3oenpg_k$(tmp0_desc, 24); + tmp3_bitMask0 = tmp3_bitMask0 | 16777216; + break; + case 25: + tmp30_local25 = tmp45_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 25, $serializer_getInstance_585(), tmp30_local25); + tmp3_bitMask0 = tmp3_bitMask0 | 33554432; + break; + case 26: + tmp31_local26 = tmp45_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 26, $serializer_getInstance_522(), tmp31_local26); + tmp3_bitMask0 = tmp3_bitMask0 | 67108864; + break; + case 27: + tmp32_local27 = tmp45_input.decodeIntElement_941u6a_k$(tmp0_desc, 27); + tmp3_bitMask0 = tmp3_bitMask0 | 134217728; + break; + case 28: + tmp33_local28 = tmp45_input.decodeIntElement_941u6a_k$(tmp0_desc, 28); + tmp3_bitMask0 = tmp3_bitMask0 | 268435456; + break; + case 29: + tmp34_local29 = tmp45_input.decodeStringElement_3oenpg_k$(tmp0_desc, 29); + tmp3_bitMask0 = tmp3_bitMask0 | 536870912; + break; + case 30: + tmp35_local30 = tmp45_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 30, $serializer_getInstance_587(), tmp35_local30); + tmp3_bitMask0 = tmp3_bitMask0 | 1073741824; + break; + case 31: + tmp36_local31 = tmp45_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 31); + tmp3_bitMask0 = tmp3_bitMask0 | -2147483648; + break; + case 32: + tmp37_local32 = tmp45_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 32, $serializer_getInstance_551(), tmp37_local32); + tmp4_bitMask1 = tmp4_bitMask1 | 1; + break; + case 33: + tmp38_local33 = tmp45_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 33); + tmp4_bitMask1 = tmp4_bitMask1 | 2; + break; + case 34: + tmp39_local34 = tmp45_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 34); + tmp4_bitMask1 = tmp4_bitMask1 | 4; + break; + case 35: + tmp40_local35 = tmp45_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 35, $serializer_getInstance_606(), tmp40_local35); + tmp4_bitMask1 = tmp4_bitMask1 | 8; + break; + case 36: + tmp41_local36 = tmp45_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 36, $serializer_getInstance_532(), tmp41_local36); + tmp4_bitMask1 = tmp4_bitMask1 | 16; + break; + case 37: + tmp42_local37 = tmp45_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 37, $serializer_getInstance_606(), tmp42_local37); + tmp4_bitMask1 = tmp4_bitMask1 | 32; + break; + case 38: + tmp43_local38 = tmp45_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 38, $serializer_getInstance_584(), tmp43_local38); + tmp4_bitMask1 = tmp4_bitMask1 | 64; + break; + case 39: + tmp44_local39 = tmp45_input.decodeStringElement_3oenpg_k$(tmp0_desc, 39); + tmp4_bitMask1 = tmp4_bitMask1 | 128; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp45_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSearchInlineData.new_com_bapis_bilibili_polymer_app_search_v1_KSearchInlineData_sq96jp_k$(tmp3_bitMask0, tmp4_bitMask1, tmp5_local0, tmp6_local1, tmp7_local2, tmp8_local3, tmp9_local4, tmp10_local5, tmp11_local6, tmp12_local7, tmp13_local8, tmp14_local9, tmp15_local10, tmp16_local11, tmp17_local12, tmp18_local13, tmp19_local14, tmp20_local15, tmp21_local16, tmp22_local17, tmp23_local18, tmp24_local19, tmp25_local20, tmp26_local21, tmp27_local22, tmp28_local23, tmp29_local24, tmp30_local25, tmp31_local26, tmp32_local27, tmp33_local28, tmp34_local29, tmp35_local30, tmp36_local31, tmp37_local32, tmp38_local33, tmp39_local34, tmp40_local35, tmp41_local36, tmp42_local37, tmp43_local38, tmp44_local39, null); + } + serialize_rfgt4c_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_543().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.uri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.uri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.playerArgs == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_583(), value.playerArgs); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.canPlay === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 3, value.canPlay); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.args == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, $serializer_getInstance_518(), value.args); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.cardGoto === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.cardGoto); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.cardType === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.cardType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.cover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.coverLeftIcon1 === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 8, value.coverLeftIcon1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.coverLeftIcon2 === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 9, value.coverLeftIcon2); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.coverLeftText1 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 10, value.coverLeftText1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.coverLeftText2 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 11, value.coverLeftText2); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !(value.upArgs == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 12, $serializer_getInstance_574(), value.upArgs); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 13) ? true : !(value.extraUri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 13, value.extraUri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 14) ? true : !(value.isFav === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 14, value.isFav); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 15) ? true : !(value.isCoin === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 15, value.isCoin); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 16) ? true : !(value.goto === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 16, value.goto); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 17) ? true : !(value.share == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 17, $serializer_getInstance_555(), value.share); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 18) ? true : !(value.threePoint == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 18, $serializer_getInstance_581(), value.threePoint); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 19) ? true : !equals(value.threePointV2, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 19, tmp2_cached[19], value.threePointV2); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 20) ? true : !(value.sharePlane == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 20, $serializer_getInstance_607(), value.sharePlane); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 21) ? true : !(value.threePointMeta == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 21, $serializer_getInstance_519(), value.threePointMeta); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 22) ? true : !(value.avatar == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 22, $serializer_getInstance_517(), value.avatar); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 23) ? true : !(value.coverRightText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 23, value.coverRightText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 24) ? true : !(value.desc === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 24, value.desc); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 25) ? true : !(value.inlineProgressBar == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 25, $serializer_getInstance_585(), value.inlineProgressBar); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 26) ? true : !(value.likeButton == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 26, $serializer_getInstance_522(), value.likeButton); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 27) ? true : !(value.officialIcon === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 27, value.officialIcon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 28) ? true : !(value.officialIconV2 === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 28, value.officialIconV2); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 29) ? true : !(value.param === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 29, value.param); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 30) ? true : !(value.trafficConfig == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 30, $serializer_getInstance_587(), value.trafficConfig); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 31) ? true : !(value.isAtten === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 31, value.isAtten); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 32) ? true : !(value.gotoIcon == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 32, $serializer_getInstance_551(), value.gotoIcon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 33) ? true : !(value.disableDanmaku === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 33, value.disableDanmaku); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 34) ? true : !(value.hideDanmakuSwitch === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 34, value.hideDanmakuSwitch); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 35) ? true : !(value.badgeStyle == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 35, $serializer_getInstance_606(), value.badgeStyle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 36) ? true : !(value.playerWidget == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 36, $serializer_getInstance_532(), value.playerWidget); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 37) ? true : !(value.coverBadgeStyle == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 37, $serializer_getInstance_606(), value.coverBadgeStyle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 38) ? true : !(value.rightTopLiveBadge == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 38, $serializer_getInstance_584(), value.rightTopLiveBadge); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 39) ? true : !(value.reportFlowData === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 39, value.reportFlowData); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_rfgt4c_k$(encoder, value instanceof KSearchInlineData ? value : THROW_CCE()); + } + } + class KSearchInlineData { + constructor(uri, title, playerArgs, canPlay, args, cardGoto, cardType, cover, coverLeftIcon1, coverLeftIcon2, coverLeftText1, coverLeftText2, upArgs, extraUri, isFav, isCoin, goto, share, threePoint, threePointV2, sharePlane, threePointMeta, avatar, coverRightText, desc, inlineProgressBar, likeButton, officialIcon, officialIconV2, param, trafficConfig, isAtten, gotoIcon, disableDanmaku, hideDanmakuSwitch, badgeStyle, playerWidget, coverBadgeStyle, rightTopLiveBadge, reportFlowData) { + Companion_getInstance_543(); + uri = uri === VOID ? '' : uri; + title = title === VOID ? '' : title; + playerArgs = playerArgs === VOID ? null : playerArgs; + canPlay = canPlay === VOID ? 0 : canPlay; + args = args === VOID ? null : args; + cardGoto = cardGoto === VOID ? '' : cardGoto; + cardType = cardType === VOID ? '' : cardType; + cover = cover === VOID ? '' : cover; + coverLeftIcon1 = coverLeftIcon1 === VOID ? 0 : coverLeftIcon1; + coverLeftIcon2 = coverLeftIcon2 === VOID ? 0 : coverLeftIcon2; + coverLeftText1 = coverLeftText1 === VOID ? '' : coverLeftText1; + coverLeftText2 = coverLeftText2 === VOID ? '' : coverLeftText2; + upArgs = upArgs === VOID ? null : upArgs; + extraUri = extraUri === VOID ? '' : extraUri; + isFav = isFav === VOID ? false : isFav; + isCoin = isCoin === VOID ? false : isCoin; + goto = goto === VOID ? '' : goto; + share = share === VOID ? null : share; + threePoint = threePoint === VOID ? null : threePoint; + threePointV2 = threePointV2 === VOID ? emptyList() : threePointV2; + sharePlane = sharePlane === VOID ? null : sharePlane; + threePointMeta = threePointMeta === VOID ? null : threePointMeta; + avatar = avatar === VOID ? null : avatar; + coverRightText = coverRightText === VOID ? '' : coverRightText; + desc = desc === VOID ? '' : desc; + inlineProgressBar = inlineProgressBar === VOID ? null : inlineProgressBar; + likeButton = likeButton === VOID ? null : likeButton; + officialIcon = officialIcon === VOID ? 0 : officialIcon; + officialIconV2 = officialIconV2 === VOID ? 0 : officialIconV2; + param = param === VOID ? '' : param; + trafficConfig = trafficConfig === VOID ? null : trafficConfig; + isAtten = isAtten === VOID ? false : isAtten; + gotoIcon = gotoIcon === VOID ? null : gotoIcon; + disableDanmaku = disableDanmaku === VOID ? false : disableDanmaku; + hideDanmakuSwitch = hideDanmakuSwitch === VOID ? false : hideDanmakuSwitch; + badgeStyle = badgeStyle === VOID ? null : badgeStyle; + playerWidget = playerWidget === VOID ? null : playerWidget; + coverBadgeStyle = coverBadgeStyle === VOID ? null : coverBadgeStyle; + rightTopLiveBadge = rightTopLiveBadge === VOID ? null : rightTopLiveBadge; + reportFlowData = reportFlowData === VOID ? '' : reportFlowData; + this.uri = uri; + this.title = title; + this.playerArgs = playerArgs; + this.canPlay = canPlay; + this.args = args; + this.cardGoto = cardGoto; + this.cardType = cardType; + this.cover = cover; + this.coverLeftIcon1 = coverLeftIcon1; + this.coverLeftIcon2 = coverLeftIcon2; + this.coverLeftText1 = coverLeftText1; + this.coverLeftText2 = coverLeftText2; + this.upArgs = upArgs; + this.extraUri = extraUri; + this.isFav = isFav; + this.isCoin = isCoin; + this.goto = goto; + this.share = share; + this.threePoint = threePoint; + this.threePointV2 = threePointV2; + this.sharePlane = sharePlane; + this.threePointMeta = threePointMeta; + this.avatar = avatar; + this.coverRightText = coverRightText; + this.desc = desc; + this.inlineProgressBar = inlineProgressBar; + this.likeButton = likeButton; + this.officialIcon = officialIcon; + this.officialIconV2 = officialIconV2; + this.param = param; + this.trafficConfig = trafficConfig; + this.isAtten = isAtten; + this.gotoIcon = gotoIcon; + this.disableDanmaku = disableDanmaku; + this.hideDanmakuSwitch = hideDanmakuSwitch; + this.badgeStyle = badgeStyle; + this.playerWidget = playerWidget; + this.coverBadgeStyle = coverBadgeStyle; + this.rightTopLiveBadge = rightTopLiveBadge; + this.reportFlowData = reportFlowData; + } + get_uri_18iuil_k$() { + return this.uri; + } + get_title_iz32un_k$() { + return this.title; + } + get_playerArgs_eh86hz_k$() { + return this.playerArgs; + } + get_canPlay_acszln_k$() { + return this.canPlay; + } + get_args_woj09y_k$() { + return this.args; + } + get_cardGoto_vy2kys_k$() { + return this.cardGoto; + } + get_cardType_vxu2tp_k$() { + return this.cardType; + } + get_cover_ipug0e_k$() { + return this.cover; + } + get_coverLeftIcon1_ce5a8z_k$() { + return this.coverLeftIcon1; + } + get_coverLeftIcon2_ce5a90_k$() { + return this.coverLeftIcon2; + } + get_coverLeftText1_ck8hkf_k$() { + return this.coverLeftText1; + } + get_coverLeftText2_ck8hkg_k$() { + return this.coverLeftText2; + } + get_upArgs_kiqrdt_k$() { + return this.upArgs; + } + get_extraUri_9az1tx_k$() { + return this.extraUri; + } + get_isFav_it6ru0_k$() { + return this.isFav; + } + get_isCoin_evvw84_k$() { + return this.isCoin; + } + get_goto_womsa4_k$() { + return this.goto; + } + get_share_iyi9bq_k$() { + return this.share; + } + get_threePoint_wv0qvv_k$() { + return this.threePoint; + } + get_threePointV2_so6oeh_k$() { + return this.threePointV2; + } + get_sharePlane_l1yhja_k$() { + return this.sharePlane; + } + get_threePointMeta_6db9vk_k$() { + return this.threePointMeta; + } + get_avatar_b5pjz6_k$() { + return this.avatar; + } + get_coverRightText_t0bat7_k$() { + return this.coverRightText; + } + get_desc_woknve_k$() { + return this.desc; + } + get_inlineProgressBar_mzn7ok_k$() { + return this.inlineProgressBar; + } + get_likeButton_oaqc6q_k$() { + return this.likeButton; + } + get_officialIcon_t4hw0d_k$() { + return this.officialIcon; + } + get_officialIconV2_2v5xgp_k$() { + return this.officialIconV2; + } + get_param_iwqquc_k$() { + return this.param; + } + get_trafficConfig_b0dpca_k$() { + return this.trafficConfig; + } + get_isAtten_z8s8wn_k$() { + return this.isAtten; + } + get_gotoIcon_5tp2rp_k$() { + return this.gotoIcon; + } + get_disableDanmaku_c5qkuo_k$() { + return this.disableDanmaku; + } + get_hideDanmakuSwitch_ksch48_k$() { + return this.hideDanmakuSwitch; + } + get_badgeStyle_2hat9l_k$() { + return this.badgeStyle; + } + get_playerWidget_23a6ku_k$() { + return this.playerWidget; + } + get_coverBadgeStyle_goovzw_k$() { + return this.coverBadgeStyle; + } + get_rightTopLiveBadge_n63dbf_k$() { + return this.rightTopLiveBadge; + } + get_reportFlowData_x9vanf_k$() { + return this.reportFlowData; + } + component1_7eebsc_k$() { + return this.uri; + } + component2_7eebsb_k$() { + return this.title; + } + component3_7eebsa_k$() { + return this.playerArgs; + } + component4_7eebs9_k$() { + return this.canPlay; + } + component5_7eebs8_k$() { + return this.args; + } + component6_7eebs7_k$() { + return this.cardGoto; + } + component7_7eebs6_k$() { + return this.cardType; + } + component8_7eebs5_k$() { + return this.cover; + } + component9_7eebs4_k$() { + return this.coverLeftIcon1; + } + component10_gazzfo_k$() { + return this.coverLeftIcon2; + } + component11_gazzfn_k$() { + return this.coverLeftText1; + } + component12_gazzfm_k$() { + return this.coverLeftText2; + } + component13_gazzfl_k$() { + return this.upArgs; + } + component14_gazzfk_k$() { + return this.extraUri; + } + component15_gazzfj_k$() { + return this.isFav; + } + component16_gazzfi_k$() { + return this.isCoin; + } + component17_gazzfh_k$() { + return this.goto; + } + component18_gazzfg_k$() { + return this.share; + } + component19_gazzff_k$() { + return this.threePoint; + } + component20_gazzet_k$() { + return this.threePointV2; + } + component21_gazzes_k$() { + return this.sharePlane; + } + component22_gazzer_k$() { + return this.threePointMeta; + } + component23_gazzeq_k$() { + return this.avatar; + } + component24_gazzep_k$() { + return this.coverRightText; + } + component25_gazzeo_k$() { + return this.desc; + } + component26_gazzen_k$() { + return this.inlineProgressBar; + } + component27_gazzem_k$() { + return this.likeButton; + } + component28_gazzel_k$() { + return this.officialIcon; + } + component29_gazzek_k$() { + return this.officialIconV2; + } + component30_gazzdy_k$() { + return this.param; + } + component31_gazzdx_k$() { + return this.trafficConfig; + } + component32_gazzdw_k$() { + return this.isAtten; + } + component33_gazzdv_k$() { + return this.gotoIcon; + } + component34_gazzdu_k$() { + return this.disableDanmaku; + } + component35_gazzdt_k$() { + return this.hideDanmakuSwitch; + } + component36_gazzds_k$() { + return this.badgeStyle; + } + component37_gazzdr_k$() { + return this.playerWidget; + } + component38_gazzdq_k$() { + return this.coverBadgeStyle; + } + component39_gazzdp_k$() { + return this.rightTopLiveBadge; + } + component40_gazzd3_k$() { + return this.reportFlowData; + } + copy_e3dzwg_k$(uri, title, playerArgs, canPlay, args, cardGoto, cardType, cover, coverLeftIcon1, coverLeftIcon2, coverLeftText1, coverLeftText2, upArgs, extraUri, isFav, isCoin, goto, share, threePoint, threePointV2, sharePlane, threePointMeta, avatar, coverRightText, desc, inlineProgressBar, likeButton, officialIcon, officialIconV2, param, trafficConfig, isAtten, gotoIcon, disableDanmaku, hideDanmakuSwitch, badgeStyle, playerWidget, coverBadgeStyle, rightTopLiveBadge, reportFlowData) { + return new KSearchInlineData(uri, title, playerArgs, canPlay, args, cardGoto, cardType, cover, coverLeftIcon1, coverLeftIcon2, coverLeftText1, coverLeftText2, upArgs, extraUri, isFav, isCoin, goto, share, threePoint, threePointV2, sharePlane, threePointMeta, avatar, coverRightText, desc, inlineProgressBar, likeButton, officialIcon, officialIconV2, param, trafficConfig, isAtten, gotoIcon, disableDanmaku, hideDanmakuSwitch, badgeStyle, playerWidget, coverBadgeStyle, rightTopLiveBadge, reportFlowData); + } + copy(uri, title, playerArgs, canPlay, args, cardGoto, cardType, cover, coverLeftIcon1, coverLeftIcon2, coverLeftText1, coverLeftText2, upArgs, extraUri, isFav, isCoin, goto, share, threePoint, threePointV2, sharePlane, threePointMeta, avatar, coverRightText, desc, inlineProgressBar, likeButton, officialIcon, officialIconV2, param, trafficConfig, isAtten, gotoIcon, disableDanmaku, hideDanmakuSwitch, badgeStyle, playerWidget, coverBadgeStyle, rightTopLiveBadge, reportFlowData, $super) { + uri = uri === VOID ? this.uri : uri; + title = title === VOID ? this.title : title; + playerArgs = playerArgs === VOID ? this.playerArgs : playerArgs; + canPlay = canPlay === VOID ? this.canPlay : canPlay; + args = args === VOID ? this.args : args; + cardGoto = cardGoto === VOID ? this.cardGoto : cardGoto; + cardType = cardType === VOID ? this.cardType : cardType; + cover = cover === VOID ? this.cover : cover; + coverLeftIcon1 = coverLeftIcon1 === VOID ? this.coverLeftIcon1 : coverLeftIcon1; + coverLeftIcon2 = coverLeftIcon2 === VOID ? this.coverLeftIcon2 : coverLeftIcon2; + coverLeftText1 = coverLeftText1 === VOID ? this.coverLeftText1 : coverLeftText1; + coverLeftText2 = coverLeftText2 === VOID ? this.coverLeftText2 : coverLeftText2; + upArgs = upArgs === VOID ? this.upArgs : upArgs; + extraUri = extraUri === VOID ? this.extraUri : extraUri; + isFav = isFav === VOID ? this.isFav : isFav; + isCoin = isCoin === VOID ? this.isCoin : isCoin; + goto = goto === VOID ? this.goto : goto; + share = share === VOID ? this.share : share; + threePoint = threePoint === VOID ? this.threePoint : threePoint; + threePointV2 = threePointV2 === VOID ? this.threePointV2 : threePointV2; + sharePlane = sharePlane === VOID ? this.sharePlane : sharePlane; + threePointMeta = threePointMeta === VOID ? this.threePointMeta : threePointMeta; + avatar = avatar === VOID ? this.avatar : avatar; + coverRightText = coverRightText === VOID ? this.coverRightText : coverRightText; + desc = desc === VOID ? this.desc : desc; + inlineProgressBar = inlineProgressBar === VOID ? this.inlineProgressBar : inlineProgressBar; + likeButton = likeButton === VOID ? this.likeButton : likeButton; + officialIcon = officialIcon === VOID ? this.officialIcon : officialIcon; + officialIconV2 = officialIconV2 === VOID ? this.officialIconV2 : officialIconV2; + param = param === VOID ? this.param : param; + trafficConfig = trafficConfig === VOID ? this.trafficConfig : trafficConfig; + isAtten = isAtten === VOID ? this.isAtten : isAtten; + gotoIcon = gotoIcon === VOID ? this.gotoIcon : gotoIcon; + disableDanmaku = disableDanmaku === VOID ? this.disableDanmaku : disableDanmaku; + hideDanmakuSwitch = hideDanmakuSwitch === VOID ? this.hideDanmakuSwitch : hideDanmakuSwitch; + badgeStyle = badgeStyle === VOID ? this.badgeStyle : badgeStyle; + playerWidget = playerWidget === VOID ? this.playerWidget : playerWidget; + coverBadgeStyle = coverBadgeStyle === VOID ? this.coverBadgeStyle : coverBadgeStyle; + rightTopLiveBadge = rightTopLiveBadge === VOID ? this.rightTopLiveBadge : rightTopLiveBadge; + reportFlowData = reportFlowData === VOID ? this.reportFlowData : reportFlowData; + return this.copy_e3dzwg_k$(uri, title, playerArgs, canPlay, args, cardGoto, cardType, cover, coverLeftIcon1, coverLeftIcon2, coverLeftText1, coverLeftText2, upArgs, extraUri, isFav, isCoin, goto, share, threePoint, threePointV2, sharePlane, threePointMeta, avatar, coverRightText, desc, inlineProgressBar, likeButton, officialIcon, officialIconV2, param, trafficConfig, isAtten, gotoIcon, disableDanmaku, hideDanmakuSwitch, badgeStyle, playerWidget, coverBadgeStyle, rightTopLiveBadge, reportFlowData); + } + toString() { + return 'KSearchInlineData(uri=' + this.uri + ', title=' + this.title + ', playerArgs=' + this.playerArgs + ', canPlay=' + this.canPlay + ', args=' + this.args + ', cardGoto=' + this.cardGoto + ', cardType=' + this.cardType + ', cover=' + this.cover + ', coverLeftIcon1=' + this.coverLeftIcon1 + ', coverLeftIcon2=' + this.coverLeftIcon2 + ', coverLeftText1=' + this.coverLeftText1 + ', coverLeftText2=' + this.coverLeftText2 + ', upArgs=' + this.upArgs + ', extraUri=' + this.extraUri + ', isFav=' + this.isFav + ', isCoin=' + this.isCoin + ', goto=' + this.goto + ', share=' + this.share + ', threePoint=' + this.threePoint + ', threePointV2=' + this.threePointV2 + ', sharePlane=' + this.sharePlane + ', threePointMeta=' + this.threePointMeta + ', avatar=' + this.avatar + ', coverRightText=' + this.coverRightText + ', desc=' + this.desc + ', inlineProgressBar=' + this.inlineProgressBar + ', likeButton=' + this.likeButton + ', officialIcon=' + this.officialIcon + ', officialIconV2=' + this.officialIconV2 + ', param=' + this.param + ', trafficConfig=' + this.trafficConfig + ', isAtten=' + this.isAtten + ', gotoIcon=' + this.gotoIcon + ', disableDanmaku=' + this.disableDanmaku + ', hideDanmakuSwitch=' + this.hideDanmakuSwitch + ', badgeStyle=' + this.badgeStyle + ', playerWidget=' + this.playerWidget + ', coverBadgeStyle=' + this.coverBadgeStyle + ', rightTopLiveBadge=' + this.rightTopLiveBadge + ', reportFlowData=' + this.reportFlowData + ')'; + } + hashCode() { + var result = getStringHashCode(this.uri); + result = imul(result, 31) + getStringHashCode(this.title) | 0; + result = imul(result, 31) + (this.playerArgs == null ? 0 : this.playerArgs.hashCode()) | 0; + result = imul(result, 31) + this.canPlay | 0; + result = imul(result, 31) + (this.args == null ? 0 : this.args.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.cardGoto) | 0; + result = imul(result, 31) + getStringHashCode(this.cardType) | 0; + result = imul(result, 31) + getStringHashCode(this.cover) | 0; + result = imul(result, 31) + this.coverLeftIcon1 | 0; + result = imul(result, 31) + this.coverLeftIcon2 | 0; + result = imul(result, 31) + getStringHashCode(this.coverLeftText1) | 0; + result = imul(result, 31) + getStringHashCode(this.coverLeftText2) | 0; + result = imul(result, 31) + (this.upArgs == null ? 0 : this.upArgs.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.extraUri) | 0; + result = imul(result, 31) + getBooleanHashCode(this.isFav) | 0; + result = imul(result, 31) + getBooleanHashCode(this.isCoin) | 0; + result = imul(result, 31) + getStringHashCode(this.goto) | 0; + result = imul(result, 31) + (this.share == null ? 0 : this.share.hashCode()) | 0; + result = imul(result, 31) + (this.threePoint == null ? 0 : this.threePoint.hashCode()) | 0; + result = imul(result, 31) + hashCode(this.threePointV2) | 0; + result = imul(result, 31) + (this.sharePlane == null ? 0 : this.sharePlane.hashCode()) | 0; + result = imul(result, 31) + (this.threePointMeta == null ? 0 : this.threePointMeta.hashCode()) | 0; + result = imul(result, 31) + (this.avatar == null ? 0 : this.avatar.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.coverRightText) | 0; + result = imul(result, 31) + getStringHashCode(this.desc) | 0; + result = imul(result, 31) + (this.inlineProgressBar == null ? 0 : this.inlineProgressBar.hashCode()) | 0; + result = imul(result, 31) + (this.likeButton == null ? 0 : this.likeButton.hashCode()) | 0; + result = imul(result, 31) + this.officialIcon | 0; + result = imul(result, 31) + this.officialIconV2 | 0; + result = imul(result, 31) + getStringHashCode(this.param) | 0; + result = imul(result, 31) + (this.trafficConfig == null ? 0 : this.trafficConfig.hashCode()) | 0; + result = imul(result, 31) + getBooleanHashCode(this.isAtten) | 0; + result = imul(result, 31) + (this.gotoIcon == null ? 0 : this.gotoIcon.hashCode()) | 0; + result = imul(result, 31) + getBooleanHashCode(this.disableDanmaku) | 0; + result = imul(result, 31) + getBooleanHashCode(this.hideDanmakuSwitch) | 0; + result = imul(result, 31) + (this.badgeStyle == null ? 0 : this.badgeStyle.hashCode()) | 0; + result = imul(result, 31) + (this.playerWidget == null ? 0 : this.playerWidget.hashCode()) | 0; + result = imul(result, 31) + (this.coverBadgeStyle == null ? 0 : this.coverBadgeStyle.hashCode()) | 0; + result = imul(result, 31) + (this.rightTopLiveBadge == null ? 0 : this.rightTopLiveBadge.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.reportFlowData) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSearchInlineData)) + return false; + var tmp0_other_with_cast = other instanceof KSearchInlineData ? other : THROW_CCE(); + if (!(this.uri === tmp0_other_with_cast.uri)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!equals(this.playerArgs, tmp0_other_with_cast.playerArgs)) + return false; + if (!(this.canPlay === tmp0_other_with_cast.canPlay)) + return false; + if (!equals(this.args, tmp0_other_with_cast.args)) + return false; + if (!(this.cardGoto === tmp0_other_with_cast.cardGoto)) + return false; + if (!(this.cardType === tmp0_other_with_cast.cardType)) + return false; + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + if (!(this.coverLeftIcon1 === tmp0_other_with_cast.coverLeftIcon1)) + return false; + if (!(this.coverLeftIcon2 === tmp0_other_with_cast.coverLeftIcon2)) + return false; + if (!(this.coverLeftText1 === tmp0_other_with_cast.coverLeftText1)) + return false; + if (!(this.coverLeftText2 === tmp0_other_with_cast.coverLeftText2)) + return false; + if (!equals(this.upArgs, tmp0_other_with_cast.upArgs)) + return false; + if (!(this.extraUri === tmp0_other_with_cast.extraUri)) + return false; + if (!(this.isFav === tmp0_other_with_cast.isFav)) + return false; + if (!(this.isCoin === tmp0_other_with_cast.isCoin)) + return false; + if (!(this.goto === tmp0_other_with_cast.goto)) + return false; + if (!equals(this.share, tmp0_other_with_cast.share)) + return false; + if (!equals(this.threePoint, tmp0_other_with_cast.threePoint)) + return false; + if (!equals(this.threePointV2, tmp0_other_with_cast.threePointV2)) + return false; + if (!equals(this.sharePlane, tmp0_other_with_cast.sharePlane)) + return false; + if (!equals(this.threePointMeta, tmp0_other_with_cast.threePointMeta)) + return false; + if (!equals(this.avatar, tmp0_other_with_cast.avatar)) + return false; + if (!(this.coverRightText === tmp0_other_with_cast.coverRightText)) + return false; + if (!(this.desc === tmp0_other_with_cast.desc)) + return false; + if (!equals(this.inlineProgressBar, tmp0_other_with_cast.inlineProgressBar)) + return false; + if (!equals(this.likeButton, tmp0_other_with_cast.likeButton)) + return false; + if (!(this.officialIcon === tmp0_other_with_cast.officialIcon)) + return false; + if (!(this.officialIconV2 === tmp0_other_with_cast.officialIconV2)) + return false; + if (!(this.param === tmp0_other_with_cast.param)) + return false; + if (!equals(this.trafficConfig, tmp0_other_with_cast.trafficConfig)) + return false; + if (!(this.isAtten === tmp0_other_with_cast.isAtten)) + return false; + if (!equals(this.gotoIcon, tmp0_other_with_cast.gotoIcon)) + return false; + if (!(this.disableDanmaku === tmp0_other_with_cast.disableDanmaku)) + return false; + if (!(this.hideDanmakuSwitch === tmp0_other_with_cast.hideDanmakuSwitch)) + return false; + if (!equals(this.badgeStyle, tmp0_other_with_cast.badgeStyle)) + return false; + if (!equals(this.playerWidget, tmp0_other_with_cast.playerWidget)) + return false; + if (!equals(this.coverBadgeStyle, tmp0_other_with_cast.coverBadgeStyle)) + return false; + if (!equals(this.rightTopLiveBadge, tmp0_other_with_cast.rightTopLiveBadge)) + return false; + if (!(this.reportFlowData === tmp0_other_with_cast.reportFlowData)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KSearchInlineData_sq96jp_k$(seen1, seen2, uri, title, playerArgs, canPlay, args, cardGoto, cardType, cover, coverLeftIcon1, coverLeftIcon2, coverLeftText1, coverLeftText2, upArgs, extraUri, isFav, isCoin, goto, share, threePoint, threePointV2, sharePlane, threePointMeta, avatar, coverRightText, desc, inlineProgressBar, likeButton, officialIcon, officialIconV2, param, trafficConfig, isAtten, gotoIcon, disableDanmaku, hideDanmakuSwitch, badgeStyle, playerWidget, coverBadgeStyle, rightTopLiveBadge, reportFlowData, serializationConstructorMarker) { + Companion_getInstance_543(); + if (!!(!(0 === (0 & seen1)) | !(0 === (0 & seen2)))) { + var tmp$ret$0; + // Inline function 'kotlin.intArrayOf' call + var elements = new Int32Array([seen1, seen2]); + tmp$ret$0 = elements; + var tmp = tmp$ret$0; + var tmp$ret$1; + // Inline function 'kotlin.intArrayOf' call + var elements_0 = new Int32Array([0, 0]); + tmp$ret$1 = elements_0; + throwArrayMissingFieldException(tmp, tmp$ret$1, $serializer_getInstance_530().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.uri = ''; + else + $this.uri = uri; + if (0 === (seen1 & 2)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 4)) + $this.playerArgs = null; + else + $this.playerArgs = playerArgs; + if (0 === (seen1 & 8)) + $this.canPlay = 0; + else + $this.canPlay = canPlay; + if (0 === (seen1 & 16)) + $this.args = null; + else + $this.args = args; + if (0 === (seen1 & 32)) + $this.cardGoto = ''; + else + $this.cardGoto = cardGoto; + if (0 === (seen1 & 64)) + $this.cardType = ''; + else + $this.cardType = cardType; + if (0 === (seen1 & 128)) + $this.cover = ''; + else + $this.cover = cover; + if (0 === (seen1 & 256)) + $this.coverLeftIcon1 = 0; + else + $this.coverLeftIcon1 = coverLeftIcon1; + if (0 === (seen1 & 512)) + $this.coverLeftIcon2 = 0; + else + $this.coverLeftIcon2 = coverLeftIcon2; + if (0 === (seen1 & 1024)) + $this.coverLeftText1 = ''; + else + $this.coverLeftText1 = coverLeftText1; + if (0 === (seen1 & 2048)) + $this.coverLeftText2 = ''; + else + $this.coverLeftText2 = coverLeftText2; + if (0 === (seen1 & 4096)) + $this.upArgs = null; + else + $this.upArgs = upArgs; + if (0 === (seen1 & 8192)) + $this.extraUri = ''; + else + $this.extraUri = extraUri; + if (0 === (seen1 & 16384)) + $this.isFav = false; + else + $this.isFav = isFav; + if (0 === (seen1 & 32768)) + $this.isCoin = false; + else + $this.isCoin = isCoin; + if (0 === (seen1 & 65536)) + $this.goto = ''; + else + $this.goto = goto; + if (0 === (seen1 & 131072)) + $this.share = null; + else + $this.share = share; + if (0 === (seen1 & 262144)) + $this.threePoint = null; + else + $this.threePoint = threePoint; + if (0 === (seen1 & 524288)) + $this.threePointV2 = emptyList(); + else + $this.threePointV2 = threePointV2; + if (0 === (seen1 & 1048576)) + $this.sharePlane = null; + else + $this.sharePlane = sharePlane; + if (0 === (seen1 & 2097152)) + $this.threePointMeta = null; + else + $this.threePointMeta = threePointMeta; + if (0 === (seen1 & 4194304)) + $this.avatar = null; + else + $this.avatar = avatar; + if (0 === (seen1 & 8388608)) + $this.coverRightText = ''; + else + $this.coverRightText = coverRightText; + if (0 === (seen1 & 16777216)) + $this.desc = ''; + else + $this.desc = desc; + if (0 === (seen1 & 33554432)) + $this.inlineProgressBar = null; + else + $this.inlineProgressBar = inlineProgressBar; + if (0 === (seen1 & 67108864)) + $this.likeButton = null; + else + $this.likeButton = likeButton; + if (0 === (seen1 & 134217728)) + $this.officialIcon = 0; + else + $this.officialIcon = officialIcon; + if (0 === (seen1 & 268435456)) + $this.officialIconV2 = 0; + else + $this.officialIconV2 = officialIconV2; + if (0 === (seen1 & 536870912)) + $this.param = ''; + else + $this.param = param; + if (0 === (seen1 & 1073741824)) + $this.trafficConfig = null; + else + $this.trafficConfig = trafficConfig; + if (0 === (seen1 & -2147483648)) + $this.isAtten = false; + else + $this.isAtten = isAtten; + if (0 === (seen2 & 1)) + $this.gotoIcon = null; + else + $this.gotoIcon = gotoIcon; + if (0 === (seen2 & 2)) + $this.disableDanmaku = false; + else + $this.disableDanmaku = disableDanmaku; + if (0 === (seen2 & 4)) + $this.hideDanmakuSwitch = false; + else + $this.hideDanmakuSwitch = hideDanmakuSwitch; + if (0 === (seen2 & 8)) + $this.badgeStyle = null; + else + $this.badgeStyle = badgeStyle; + if (0 === (seen2 & 16)) + $this.playerWidget = null; + else + $this.playerWidget = playerWidget; + if (0 === (seen2 & 32)) + $this.coverBadgeStyle = null; + else + $this.coverBadgeStyle = coverBadgeStyle; + if (0 === (seen2 & 64)) + $this.rightTopLiveBadge = null; + else + $this.rightTopLiveBadge = rightTopLiveBadge; + if (0 === (seen2 & 128)) + $this.reportFlowData = ''; + else + $this.reportFlowData = reportFlowData; + return $this; + } + } + class Companion_544 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.SearchLiveInlineCard'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_531(); + } + } + class $serializer_531 { + constructor() { + $serializer_instance_531 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KSearchLiveInlineCard', this, 11); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('mid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('rcmdReasonStyle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('roomid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('liveLink', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('liveRoomInline', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('inlineType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('feedback', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('cardLayout', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('avatarInfo', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), get_nullable($serializer_getInstance_606()), LongSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_530()), StringSerializer_getInstance(), get_nullable($serializer_getInstance_610()), get_nullable($serializer_getInstance_633()), get_nullable($serializer_getInstance_181())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = new Long(0, 0); + var tmp7_local3 = null; + var tmp8_local4 = new Long(0, 0); + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_local8 = null; + var tmp13_local9 = null; + var tmp14_local10 = null; + var tmp15_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp15_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_606(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_530(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_610(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 9, $serializer_getInstance_633(), tmp13_local9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 10, $serializer_getInstance_181(), tmp14_local10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + } else + while (tmp1_flag) { + tmp2_index = tmp15_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_606(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_530(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_610(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 9, $serializer_getInstance_633(), tmp13_local9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 10, $serializer_getInstance_181(), tmp14_local10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp15_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSearchLiveInlineCard.new_com_bapis_bilibili_polymer_app_search_v1_KSearchLiveInlineCard_9bpwhk_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, null); + } + serialize_d3783e_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.cover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.mid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.mid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.rcmdReasonStyle == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_606(), value.rcmdReasonStyle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !value.roomid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 4, value.roomid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.liveLink === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.liveLink); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.liveRoomInline == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 6, $serializer_getInstance_530(), value.liveRoomInline); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.inlineType === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.inlineType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.feedback == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 8, $serializer_getInstance_610(), value.feedback); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.cardLayout == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 9, $serializer_getInstance_633(), value.cardLayout); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.avatarInfo == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 10, $serializer_getInstance_181(), value.avatarInfo); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_d3783e_k$(encoder, value instanceof KSearchLiveInlineCard ? value : THROW_CCE()); + } + } + class KSearchLiveInlineCard { + constructor(title, cover, mid, rcmdReasonStyle, roomid, liveLink, liveRoomInline, inlineType, feedback, cardLayout, avatarInfo) { + Companion_instance_544; + title = title === VOID ? '' : title; + cover = cover === VOID ? '' : cover; + mid = mid === VOID ? new Long(0, 0) : mid; + rcmdReasonStyle = rcmdReasonStyle === VOID ? null : rcmdReasonStyle; + roomid = roomid === VOID ? new Long(0, 0) : roomid; + liveLink = liveLink === VOID ? '' : liveLink; + liveRoomInline = liveRoomInline === VOID ? null : liveRoomInline; + inlineType = inlineType === VOID ? '' : inlineType; + feedback = feedback === VOID ? null : feedback; + cardLayout = cardLayout === VOID ? null : cardLayout; + avatarInfo = avatarInfo === VOID ? null : avatarInfo; + this.title = title; + this.cover = cover; + this.mid = mid; + this.rcmdReasonStyle = rcmdReasonStyle; + this.roomid = roomid; + this.liveLink = liveLink; + this.liveRoomInline = liveRoomInline; + this.inlineType = inlineType; + this.feedback = feedback; + this.cardLayout = cardLayout; + this.avatarInfo = avatarInfo; + } + get_title_iz32un_k$() { + return this.title; + } + get_cover_ipug0e_k$() { + return this.cover; + } + get_mid_18j0o1_k$() { + return this.mid; + } + get_rcmdReasonStyle_5yq4ak_k$() { + return this.rcmdReasonStyle; + } + get_roomid_j3vdbz_k$() { + return this.roomid; + } + get_liveLink_8d0z01_k$() { + return this.liveLink; + } + get_liveRoomInline_yhxwtl_k$() { + return this.liveRoomInline; + } + get_inlineType_7azxfo_k$() { + return this.inlineType; + } + get_feedback_yyya42_k$() { + return this.feedback; + } + get_cardLayout_d0npjx_k$() { + return this.cardLayout; + } + get_avatarInfo_quh7f4_k$() { + return this.avatarInfo; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.cover; + } + component3_7eebsa_k$() { + return this.mid; + } + component4_7eebs9_k$() { + return this.rcmdReasonStyle; + } + component5_7eebs8_k$() { + return this.roomid; + } + component6_7eebs7_k$() { + return this.liveLink; + } + component7_7eebs6_k$() { + return this.liveRoomInline; + } + component8_7eebs5_k$() { + return this.inlineType; + } + component9_7eebs4_k$() { + return this.feedback; + } + component10_gazzfo_k$() { + return this.cardLayout; + } + component11_gazzfn_k$() { + return this.avatarInfo; + } + copy_axfbs7_k$(title, cover, mid, rcmdReasonStyle, roomid, liveLink, liveRoomInline, inlineType, feedback, cardLayout, avatarInfo) { + return new KSearchLiveInlineCard(title, cover, mid, rcmdReasonStyle, roomid, liveLink, liveRoomInline, inlineType, feedback, cardLayout, avatarInfo); + } + copy(title, cover, mid, rcmdReasonStyle, roomid, liveLink, liveRoomInline, inlineType, feedback, cardLayout, avatarInfo, $super) { + title = title === VOID ? this.title : title; + cover = cover === VOID ? this.cover : cover; + mid = mid === VOID ? this.mid : mid; + rcmdReasonStyle = rcmdReasonStyle === VOID ? this.rcmdReasonStyle : rcmdReasonStyle; + roomid = roomid === VOID ? this.roomid : roomid; + liveLink = liveLink === VOID ? this.liveLink : liveLink; + liveRoomInline = liveRoomInline === VOID ? this.liveRoomInline : liveRoomInline; + inlineType = inlineType === VOID ? this.inlineType : inlineType; + feedback = feedback === VOID ? this.feedback : feedback; + cardLayout = cardLayout === VOID ? this.cardLayout : cardLayout; + avatarInfo = avatarInfo === VOID ? this.avatarInfo : avatarInfo; + return this.copy_axfbs7_k$(title, cover, mid, rcmdReasonStyle, roomid, liveLink, liveRoomInline, inlineType, feedback, cardLayout, avatarInfo); + } + toString() { + return 'KSearchLiveInlineCard(title=' + this.title + ', cover=' + this.cover + ', mid=' + this.mid.toString() + ', rcmdReasonStyle=' + this.rcmdReasonStyle + ', roomid=' + this.roomid.toString() + ', liveLink=' + this.liveLink + ', liveRoomInline=' + this.liveRoomInline + ', inlineType=' + this.inlineType + ', feedback=' + this.feedback + ', cardLayout=' + this.cardLayout + ', avatarInfo=' + this.avatarInfo + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.cover) | 0; + result = imul(result, 31) + this.mid.hashCode() | 0; + result = imul(result, 31) + (this.rcmdReasonStyle == null ? 0 : this.rcmdReasonStyle.hashCode()) | 0; + result = imul(result, 31) + this.roomid.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.liveLink) | 0; + result = imul(result, 31) + (this.liveRoomInline == null ? 0 : this.liveRoomInline.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.inlineType) | 0; + result = imul(result, 31) + (this.feedback == null ? 0 : this.feedback.hashCode()) | 0; + result = imul(result, 31) + (this.cardLayout == null ? 0 : this.cardLayout.hashCode()) | 0; + result = imul(result, 31) + (this.avatarInfo == null ? 0 : this.avatarInfo.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSearchLiveInlineCard)) + return false; + var tmp0_other_with_cast = other instanceof KSearchLiveInlineCard ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + if (!this.mid.equals(tmp0_other_with_cast.mid)) + return false; + if (!equals(this.rcmdReasonStyle, tmp0_other_with_cast.rcmdReasonStyle)) + return false; + if (!this.roomid.equals(tmp0_other_with_cast.roomid)) + return false; + if (!(this.liveLink === tmp0_other_with_cast.liveLink)) + return false; + if (!equals(this.liveRoomInline, tmp0_other_with_cast.liveRoomInline)) + return false; + if (!(this.inlineType === tmp0_other_with_cast.inlineType)) + return false; + if (!equals(this.feedback, tmp0_other_with_cast.feedback)) + return false; + if (!equals(this.cardLayout, tmp0_other_with_cast.cardLayout)) + return false; + if (!equals(this.avatarInfo, tmp0_other_with_cast.avatarInfo)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KSearchLiveInlineCard_9bpwhk_k$(seen1, title, cover, mid, rcmdReasonStyle, roomid, liveLink, liveRoomInline, inlineType, feedback, cardLayout, avatarInfo, serializationConstructorMarker) { + Companion_instance_544; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_531().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.cover = ''; + else + $this.cover = cover; + if (0 === (seen1 & 4)) + $this.mid = new Long(0, 0); + else + $this.mid = mid; + if (0 === (seen1 & 8)) + $this.rcmdReasonStyle = null; + else + $this.rcmdReasonStyle = rcmdReasonStyle; + if (0 === (seen1 & 16)) + $this.roomid = new Long(0, 0); + else + $this.roomid = roomid; + if (0 === (seen1 & 32)) + $this.liveLink = ''; + else + $this.liveLink = liveLink; + if (0 === (seen1 & 64)) + $this.liveRoomInline = null; + else + $this.liveRoomInline = liveRoomInline; + if (0 === (seen1 & 128)) + $this.inlineType = ''; + else + $this.inlineType = inlineType; + if (0 === (seen1 & 256)) + $this.feedback = null; + else + $this.feedback = feedback; + if (0 === (seen1 & 512)) + $this.cardLayout = null; + else + $this.cardLayout = cardLayout; + if (0 === (seen1 & 1024)) + $this.avatarInfo = null; + else + $this.avatarInfo = avatarInfo; + return $this; + } + } + class Companion_545 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.PlayerWidget'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_532(); + } + } + class $serializer_532 { + constructor() { + $serializer_instance_532 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KPlayerWidget', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('desc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KPlayerWidget.new_com_bapis_bilibili_polymer_app_search_v1_KPlayerWidget_sdn6fk_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_2bmrte_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.desc === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.desc); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_2bmrte_k$(encoder, value instanceof KPlayerWidget ? value : THROW_CCE()); + } + } + class KPlayerWidget { + constructor(title, desc) { + Companion_instance_545; + title = title === VOID ? '' : title; + desc = desc === VOID ? '' : desc; + this.title = title; + this.desc = desc; + } + get_title_iz32un_k$() { + return this.title; + } + get_desc_woknve_k$() { + return this.desc; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.desc; + } + copy_plwnsl_k$(title, desc) { + return new KPlayerWidget(title, desc); + } + copy(title, desc, $super) { + title = title === VOID ? this.title : title; + desc = desc === VOID ? this.desc : desc; + return this.copy_plwnsl_k$(title, desc); + } + toString() { + return 'KPlayerWidget(title=' + this.title + ', desc=' + this.desc + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.desc) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KPlayerWidget)) + return false; + var tmp0_other_with_cast = other instanceof KPlayerWidget ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.desc === tmp0_other_with_cast.desc)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KPlayerWidget_sdn6fk_k$(seen1, title, desc, serializationConstructorMarker) { + Companion_instance_545; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_532().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.desc = ''; + else + $this.desc = desc; + return $this; + } + } + class Companion_546 { + constructor() { + Companion_instance_546 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, null, null, null, null, null, null, null, null, null, null, null, new ArrayListSerializer($serializer_getInstance_606()), null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.polymer.app.search.v1.SearchOgvInlineCard'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_533(); + } + } + class $serializer_533 { + constructor() { + $serializer_instance_533 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KSearchOgvInlineCard', this, 17); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('author', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('danmaku', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('desc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('face', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('inlineType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('mid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('play', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('ogvInline', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('ogvClipInfo', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('watchButton', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + tmp0_serialDesc.addElement_5pzumi_k$('score', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(13)); + tmp0_serialDesc.addElement_5pzumi_k$('ogvInlineExp', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(14)); + tmp0_serialDesc.addElement_5pzumi_k$('badgesV2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(15)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('cardLayout', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(16)); + tmp0_serialDesc.addElement_5pzumi_k$('saleInfo', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(17)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_546().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable($serializer_getInstance_530()), get_nullable($serializer_getInstance_565()), get_nullable($serializer_getInstance_596()), StringSerializer_getInstance(), IntSerializer_getInstance(), tmp0_cached[14], get_nullable($serializer_getInstance_633()), get_nullable($serializer_getInstance_634())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = 0; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = new Long(0, 0); + var tmp12_local8 = new Long(0, 0); + var tmp13_local9 = null; + var tmp14_local10 = null; + var tmp15_local11 = null; + var tmp16_local12 = null; + var tmp17_local13 = 0; + var tmp18_local14 = null; + var tmp19_local15 = null; + var tmp20_local16 = null; + var tmp21_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp22_cached = Companion_getInstance_546().$childSerializers_1; + if (tmp21_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp21_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp21_input.decodeLongElement_994anb_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp21_input.decodeLongElement_994anb_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp21_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 9, $serializer_getInstance_530(), tmp13_local9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp21_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 10, $serializer_getInstance_565(), tmp14_local10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp21_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 11, $serializer_getInstance_596(), tmp15_local11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + tmp16_local12 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + tmp17_local13 = tmp21_input.decodeIntElement_941u6a_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + tmp18_local14 = tmp21_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 14, tmp22_cached[14], tmp18_local14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + tmp19_local15 = tmp21_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 15, $serializer_getInstance_633(), tmp19_local15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + tmp20_local16 = tmp21_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 16, $serializer_getInstance_634(), tmp20_local16); + tmp3_bitMask0 = tmp3_bitMask0 | 65536; + } else + while (tmp1_flag) { + tmp2_index = tmp21_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp21_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp21_input.decodeLongElement_994anb_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp21_input.decodeLongElement_994anb_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp21_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 9, $serializer_getInstance_530(), tmp13_local9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp21_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 10, $serializer_getInstance_565(), tmp14_local10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp21_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 11, $serializer_getInstance_596(), tmp15_local11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + case 12: + tmp16_local12 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + break; + case 13: + tmp17_local13 = tmp21_input.decodeIntElement_941u6a_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + break; + case 14: + tmp18_local14 = tmp21_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 14, tmp22_cached[14], tmp18_local14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + break; + case 15: + tmp19_local15 = tmp21_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 15, $serializer_getInstance_633(), tmp19_local15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + break; + case 16: + tmp20_local16 = tmp21_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 16, $serializer_getInstance_634(), tmp20_local16); + tmp3_bitMask0 = tmp3_bitMask0 | 65536; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp21_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSearchOgvInlineCard.new_com_bapis_bilibili_polymer_app_search_v1_KSearchOgvInlineCard_ngm5st_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, tmp18_local14, tmp19_local15, tmp20_local16, null); + } + serialize_ofv1e8_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_546().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.cover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.author === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.author); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.danmaku === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 3, value.danmaku); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.desc === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.desc); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.face === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.face); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.inlineType === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.inlineType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !value.mid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 7, value.mid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !value.play.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 8, value.play); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.ogvInline == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 9, $serializer_getInstance_530(), value.ogvInline); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.ogvClipInfo == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 10, $serializer_getInstance_565(), value.ogvClipInfo); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.watchButton == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 11, $serializer_getInstance_596(), value.watchButton); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !(value.score === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 12, value.score); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 13) ? true : !(value.ogvInlineExp === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 13, value.ogvInlineExp); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 14) ? true : !equals(value.badgesV2, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 14, tmp2_cached[14], value.badgesV2); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 15) ? true : !(value.cardLayout == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 15, $serializer_getInstance_633(), value.cardLayout); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 16) ? true : !(value.saleInfo == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 16, $serializer_getInstance_634(), value.saleInfo); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_ofv1e8_k$(encoder, value instanceof KSearchOgvInlineCard ? value : THROW_CCE()); + } + } + class KSearchOgvInlineCard { + constructor(title, cover, author, danmaku, desc, face, inlineType, mid, play, ogvInline, ogvClipInfo, watchButton, score, ogvInlineExp, badgesV2, cardLayout, saleInfo) { + Companion_getInstance_546(); + title = title === VOID ? '' : title; + cover = cover === VOID ? '' : cover; + author = author === VOID ? '' : author; + danmaku = danmaku === VOID ? 0 : danmaku; + desc = desc === VOID ? '' : desc; + face = face === VOID ? '' : face; + inlineType = inlineType === VOID ? '' : inlineType; + mid = mid === VOID ? new Long(0, 0) : mid; + play = play === VOID ? new Long(0, 0) : play; + ogvInline = ogvInline === VOID ? null : ogvInline; + ogvClipInfo = ogvClipInfo === VOID ? null : ogvClipInfo; + watchButton = watchButton === VOID ? null : watchButton; + score = score === VOID ? '' : score; + ogvInlineExp = ogvInlineExp === VOID ? 0 : ogvInlineExp; + badgesV2 = badgesV2 === VOID ? emptyList() : badgesV2; + cardLayout = cardLayout === VOID ? null : cardLayout; + saleInfo = saleInfo === VOID ? null : saleInfo; + this.title = title; + this.cover = cover; + this.author = author; + this.danmaku = danmaku; + this.desc = desc; + this.face = face; + this.inlineType = inlineType; + this.mid = mid; + this.play = play; + this.ogvInline = ogvInline; + this.ogvClipInfo = ogvClipInfo; + this.watchButton = watchButton; + this.score = score; + this.ogvInlineExp = ogvInlineExp; + this.badgesV2 = badgesV2; + this.cardLayout = cardLayout; + this.saleInfo = saleInfo; + } + get_title_iz32un_k$() { + return this.title; + } + get_cover_ipug0e_k$() { + return this.cover; + } + get_author_b5hnkk_k$() { + return this.author; + } + get_danmaku_p1pkiu_k$() { + return this.danmaku; + } + get_desc_woknve_k$() { + return this.desc; + } + get_face_woluhy_k$() { + return this.face; + } + get_inlineType_7azxfo_k$() { + return this.inlineType; + } + get_mid_18j0o1_k$() { + return this.mid; + } + get_play_wosghp_k$() { + return this.play; + } + get_ogvInline_6wqkvi_k$() { + return this.ogvInline; + } + get_ogvClipInfo_ri6u19_k$() { + return this.ogvClipInfo; + } + get_watchButton_k0alx4_k$() { + return this.watchButton; + } + get_score_iyfcrt_k$() { + return this.score; + } + get_ogvInlineExp_9osv75_k$() { + return this.ogvInlineExp; + } + get_badgesV2_3oyw0l_k$() { + return this.badgesV2; + } + get_cardLayout_d0npjx_k$() { + return this.cardLayout; + } + get_saleInfo_7jza6_k$() { + return this.saleInfo; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.cover; + } + component3_7eebsa_k$() { + return this.author; + } + component4_7eebs9_k$() { + return this.danmaku; + } + component5_7eebs8_k$() { + return this.desc; + } + component6_7eebs7_k$() { + return this.face; + } + component7_7eebs6_k$() { + return this.inlineType; + } + component8_7eebs5_k$() { + return this.mid; + } + component9_7eebs4_k$() { + return this.play; + } + component10_gazzfo_k$() { + return this.ogvInline; + } + component11_gazzfn_k$() { + return this.ogvClipInfo; + } + component12_gazzfm_k$() { + return this.watchButton; + } + component13_gazzfl_k$() { + return this.score; + } + component14_gazzfk_k$() { + return this.ogvInlineExp; + } + component15_gazzfj_k$() { + return this.badgesV2; + } + component16_gazzfi_k$() { + return this.cardLayout; + } + component17_gazzfh_k$() { + return this.saleInfo; + } + copy_bwxhfo_k$(title, cover, author, danmaku, desc, face, inlineType, mid, play, ogvInline, ogvClipInfo, watchButton, score, ogvInlineExp, badgesV2, cardLayout, saleInfo) { + return new KSearchOgvInlineCard(title, cover, author, danmaku, desc, face, inlineType, mid, play, ogvInline, ogvClipInfo, watchButton, score, ogvInlineExp, badgesV2, cardLayout, saleInfo); + } + copy(title, cover, author, danmaku, desc, face, inlineType, mid, play, ogvInline, ogvClipInfo, watchButton, score, ogvInlineExp, badgesV2, cardLayout, saleInfo, $super) { + title = title === VOID ? this.title : title; + cover = cover === VOID ? this.cover : cover; + author = author === VOID ? this.author : author; + danmaku = danmaku === VOID ? this.danmaku : danmaku; + desc = desc === VOID ? this.desc : desc; + face = face === VOID ? this.face : face; + inlineType = inlineType === VOID ? this.inlineType : inlineType; + mid = mid === VOID ? this.mid : mid; + play = play === VOID ? this.play : play; + ogvInline = ogvInline === VOID ? this.ogvInline : ogvInline; + ogvClipInfo = ogvClipInfo === VOID ? this.ogvClipInfo : ogvClipInfo; + watchButton = watchButton === VOID ? this.watchButton : watchButton; + score = score === VOID ? this.score : score; + ogvInlineExp = ogvInlineExp === VOID ? this.ogvInlineExp : ogvInlineExp; + badgesV2 = badgesV2 === VOID ? this.badgesV2 : badgesV2; + cardLayout = cardLayout === VOID ? this.cardLayout : cardLayout; + saleInfo = saleInfo === VOID ? this.saleInfo : saleInfo; + return this.copy_bwxhfo_k$(title, cover, author, danmaku, desc, face, inlineType, mid, play, ogvInline, ogvClipInfo, watchButton, score, ogvInlineExp, badgesV2, cardLayout, saleInfo); + } + toString() { + return 'KSearchOgvInlineCard(title=' + this.title + ', cover=' + this.cover + ', author=' + this.author + ', danmaku=' + this.danmaku + ', desc=' + this.desc + ', face=' + this.face + ', inlineType=' + this.inlineType + ', mid=' + this.mid.toString() + ', play=' + this.play.toString() + ', ogvInline=' + this.ogvInline + ', ogvClipInfo=' + this.ogvClipInfo + ', watchButton=' + this.watchButton + ', score=' + this.score + ', ogvInlineExp=' + this.ogvInlineExp + ', badgesV2=' + this.badgesV2 + ', cardLayout=' + this.cardLayout + ', saleInfo=' + this.saleInfo + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.cover) | 0; + result = imul(result, 31) + getStringHashCode(this.author) | 0; + result = imul(result, 31) + this.danmaku | 0; + result = imul(result, 31) + getStringHashCode(this.desc) | 0; + result = imul(result, 31) + getStringHashCode(this.face) | 0; + result = imul(result, 31) + getStringHashCode(this.inlineType) | 0; + result = imul(result, 31) + this.mid.hashCode() | 0; + result = imul(result, 31) + this.play.hashCode() | 0; + result = imul(result, 31) + (this.ogvInline == null ? 0 : this.ogvInline.hashCode()) | 0; + result = imul(result, 31) + (this.ogvClipInfo == null ? 0 : this.ogvClipInfo.hashCode()) | 0; + result = imul(result, 31) + (this.watchButton == null ? 0 : this.watchButton.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.score) | 0; + result = imul(result, 31) + this.ogvInlineExp | 0; + result = imul(result, 31) + hashCode(this.badgesV2) | 0; + result = imul(result, 31) + (this.cardLayout == null ? 0 : this.cardLayout.hashCode()) | 0; + result = imul(result, 31) + (this.saleInfo == null ? 0 : this.saleInfo.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSearchOgvInlineCard)) + return false; + var tmp0_other_with_cast = other instanceof KSearchOgvInlineCard ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + if (!(this.author === tmp0_other_with_cast.author)) + return false; + if (!(this.danmaku === tmp0_other_with_cast.danmaku)) + return false; + if (!(this.desc === tmp0_other_with_cast.desc)) + return false; + if (!(this.face === tmp0_other_with_cast.face)) + return false; + if (!(this.inlineType === tmp0_other_with_cast.inlineType)) + return false; + if (!this.mid.equals(tmp0_other_with_cast.mid)) + return false; + if (!this.play.equals(tmp0_other_with_cast.play)) + return false; + if (!equals(this.ogvInline, tmp0_other_with_cast.ogvInline)) + return false; + if (!equals(this.ogvClipInfo, tmp0_other_with_cast.ogvClipInfo)) + return false; + if (!equals(this.watchButton, tmp0_other_with_cast.watchButton)) + return false; + if (!(this.score === tmp0_other_with_cast.score)) + return false; + if (!(this.ogvInlineExp === tmp0_other_with_cast.ogvInlineExp)) + return false; + if (!equals(this.badgesV2, tmp0_other_with_cast.badgesV2)) + return false; + if (!equals(this.cardLayout, tmp0_other_with_cast.cardLayout)) + return false; + if (!equals(this.saleInfo, tmp0_other_with_cast.saleInfo)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KSearchOgvInlineCard_ngm5st_k$(seen1, title, cover, author, danmaku, desc, face, inlineType, mid, play, ogvInline, ogvClipInfo, watchButton, score, ogvInlineExp, badgesV2, cardLayout, saleInfo, serializationConstructorMarker) { + Companion_getInstance_546(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_533().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.cover = ''; + else + $this.cover = cover; + if (0 === (seen1 & 4)) + $this.author = ''; + else + $this.author = author; + if (0 === (seen1 & 8)) + $this.danmaku = 0; + else + $this.danmaku = danmaku; + if (0 === (seen1 & 16)) + $this.desc = ''; + else + $this.desc = desc; + if (0 === (seen1 & 32)) + $this.face = ''; + else + $this.face = face; + if (0 === (seen1 & 64)) + $this.inlineType = ''; + else + $this.inlineType = inlineType; + if (0 === (seen1 & 128)) + $this.mid = new Long(0, 0); + else + $this.mid = mid; + if (0 === (seen1 & 256)) + $this.play = new Long(0, 0); + else + $this.play = play; + if (0 === (seen1 & 512)) + $this.ogvInline = null; + else + $this.ogvInline = ogvInline; + if (0 === (seen1 & 1024)) + $this.ogvClipInfo = null; + else + $this.ogvClipInfo = ogvClipInfo; + if (0 === (seen1 & 2048)) + $this.watchButton = null; + else + $this.watchButton = watchButton; + if (0 === (seen1 & 4096)) + $this.score = ''; + else + $this.score = score; + if (0 === (seen1 & 8192)) + $this.ogvInlineExp = 0; + else + $this.ogvInlineExp = ogvInlineExp; + if (0 === (seen1 & 16384)) + $this.badgesV2 = emptyList(); + else + $this.badgesV2 = badgesV2; + if (0 === (seen1 & 32768)) + $this.cardLayout = null; + else + $this.cardLayout = cardLayout; + if (0 === (seen1 & 65536)) + $this.saleInfo = null; + else + $this.saleInfo = saleInfo; + return $this; + } + } + class Companion_547 { + constructor() { + Companion_instance_547 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, null, null, null, null, null, null, null, null, null, null, null, new ArrayListSerializer($serializer_getInstance_548()), null, null, null, null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.polymer.app.search.v1.SearchTopGameCard'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_534(); + } + } + class $serializer_534 { + constructor() { + $serializer_instance_534 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KSearchTopGameCard', this, 20); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('array', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('backgroundImage', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('buttonType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('gameIcon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('gameBaseId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('gameStatus', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('inlineType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('topGameUi', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('noticeContent', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('noticeName', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + tmp0_serialDesc.addElement_5pzumi_k$('rating', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(13)); + tmp0_serialDesc.addElement_5pzumi_k$('score', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(14)); + tmp0_serialDesc.addElement_5pzumi_k$('tabInfo', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(15)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('tags', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(16)); + tmp0_serialDesc.addElement_5pzumi_k$('ugcInline', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(17)); + tmp0_serialDesc.addElement_5pzumi_k$('videoCoverImage', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(18)); + tmp0_serialDesc.addElement_5pzumi_k$('inlineLive', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(19)); + tmp0_serialDesc.addElement_5pzumi_k$('cardLayout', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(20)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_547().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_549()), StringSerializer_getInstance(), StringSerializer_getInstance(), FloatSerializer_getInstance(), StringSerializer_getInstance(), tmp0_cached[14], StringSerializer_getInstance(), get_nullable($serializer_getInstance_530()), StringSerializer_getInstance(), get_nullable($serializer_getInstance_530()), get_nullable($serializer_getInstance_633())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = 0; + var tmp7_local3 = null; + var tmp8_local4 = 0; + var tmp9_local5 = null; + var tmp10_local6 = new Long(0, 0); + var tmp11_local7 = 0; + var tmp12_local8 = null; + var tmp13_local9 = null; + var tmp14_local10 = null; + var tmp15_local11 = null; + var tmp16_local12 = 0.0; + var tmp17_local13 = null; + var tmp18_local14 = null; + var tmp19_local15 = null; + var tmp20_local16 = null; + var tmp21_local17 = null; + var tmp22_local18 = null; + var tmp23_local19 = null; + var tmp24_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp25_cached = Companion_getInstance_547().$childSerializers_1; + if (tmp24_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp24_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp24_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp24_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp24_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp24_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp24_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp24_input.decodeLongElement_994anb_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp24_input.decodeIntElement_941u6a_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp24_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp24_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 9, $serializer_getInstance_549(), tmp13_local9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp24_input.decodeStringElement_3oenpg_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp24_input.decodeStringElement_3oenpg_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + tmp16_local12 = tmp24_input.decodeFloatElement_p2q55h_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + tmp17_local13 = tmp24_input.decodeStringElement_3oenpg_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + tmp18_local14 = tmp24_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 14, tmp25_cached[14], tmp18_local14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + tmp19_local15 = tmp24_input.decodeStringElement_3oenpg_k$(tmp0_desc, 15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + tmp20_local16 = tmp24_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 16, $serializer_getInstance_530(), tmp20_local16); + tmp3_bitMask0 = tmp3_bitMask0 | 65536; + tmp21_local17 = tmp24_input.decodeStringElement_3oenpg_k$(tmp0_desc, 17); + tmp3_bitMask0 = tmp3_bitMask0 | 131072; + tmp22_local18 = tmp24_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 18, $serializer_getInstance_530(), tmp22_local18); + tmp3_bitMask0 = tmp3_bitMask0 | 262144; + tmp23_local19 = tmp24_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 19, $serializer_getInstance_633(), tmp23_local19); + tmp3_bitMask0 = tmp3_bitMask0 | 524288; + } else + while (tmp1_flag) { + tmp2_index = tmp24_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp24_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp24_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp24_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp24_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp24_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp24_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp24_input.decodeLongElement_994anb_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp24_input.decodeIntElement_941u6a_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp24_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp24_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 9, $serializer_getInstance_549(), tmp13_local9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp24_input.decodeStringElement_3oenpg_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp24_input.decodeStringElement_3oenpg_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + case 12: + tmp16_local12 = tmp24_input.decodeFloatElement_p2q55h_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + break; + case 13: + tmp17_local13 = tmp24_input.decodeStringElement_3oenpg_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + break; + case 14: + tmp18_local14 = tmp24_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 14, tmp25_cached[14], tmp18_local14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + break; + case 15: + tmp19_local15 = tmp24_input.decodeStringElement_3oenpg_k$(tmp0_desc, 15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + break; + case 16: + tmp20_local16 = tmp24_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 16, $serializer_getInstance_530(), tmp20_local16); + tmp3_bitMask0 = tmp3_bitMask0 | 65536; + break; + case 17: + tmp21_local17 = tmp24_input.decodeStringElement_3oenpg_k$(tmp0_desc, 17); + tmp3_bitMask0 = tmp3_bitMask0 | 131072; + break; + case 18: + tmp22_local18 = tmp24_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 18, $serializer_getInstance_530(), tmp22_local18); + tmp3_bitMask0 = tmp3_bitMask0 | 262144; + break; + case 19: + tmp23_local19 = tmp24_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 19, $serializer_getInstance_633(), tmp23_local19); + tmp3_bitMask0 = tmp3_bitMask0 | 524288; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp24_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSearchTopGameCard.new_com_bapis_bilibili_polymer_app_search_v1_KSearchTopGameCard_4c5cyz_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, tmp18_local14, tmp19_local15, tmp20_local16, tmp21_local17, tmp22_local18, tmp23_local19, null); + } + serialize_zhskw0_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_547().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.cover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.array === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.array); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.backgroundImage === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.backgroundImage); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.buttonType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 4, value.buttonType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.gameIcon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.gameIcon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !value.gameBaseId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 6, value.gameBaseId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.gameStatus === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 7, value.gameStatus); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.inlineType === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 8, value.inlineType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.topGameUi == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 9, $serializer_getInstance_549(), value.topGameUi); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.noticeContent === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 10, value.noticeContent); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.noticeName === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 11, value.noticeName); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !equals(value.rating, 0.0)) { + tmp1_output.encodeFloatElement_oe8hn_k$(tmp0_desc, 12, value.rating); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 13) ? true : !(value.score === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 13, value.score); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 14) ? true : !equals(value.tabInfo, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 14, tmp2_cached[14], value.tabInfo); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 15) ? true : !(value.tags === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 15, value.tags); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 16) ? true : !(value.ugcInline == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 16, $serializer_getInstance_530(), value.ugcInline); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 17) ? true : !(value.videoCoverImage === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 17, value.videoCoverImage); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 18) ? true : !(value.inlineLive == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 18, $serializer_getInstance_530(), value.inlineLive); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 19) ? true : !(value.cardLayout == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 19, $serializer_getInstance_633(), value.cardLayout); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_zhskw0_k$(encoder, value instanceof KSearchTopGameCard ? value : THROW_CCE()); + } + } + class KSearchTopGameCard { + constructor(title, cover, array, backgroundImage, buttonType, gameIcon, gameBaseId, gameStatus, inlineType, topGameUi, noticeContent, noticeName, rating, score, tabInfo, tags, ugcInline, videoCoverImage, inlineLive, cardLayout) { + Companion_getInstance_547(); + title = title === VOID ? '' : title; + cover = cover === VOID ? '' : cover; + array = array === VOID ? 0 : array; + backgroundImage = backgroundImage === VOID ? '' : backgroundImage; + buttonType = buttonType === VOID ? 0 : buttonType; + gameIcon = gameIcon === VOID ? '' : gameIcon; + gameBaseId = gameBaseId === VOID ? new Long(0, 0) : gameBaseId; + gameStatus = gameStatus === VOID ? 0 : gameStatus; + inlineType = inlineType === VOID ? '' : inlineType; + topGameUi = topGameUi === VOID ? null : topGameUi; + noticeContent = noticeContent === VOID ? '' : noticeContent; + noticeName = noticeName === VOID ? '' : noticeName; + rating = rating === VOID ? 0.0 : rating; + score = score === VOID ? '' : score; + tabInfo = tabInfo === VOID ? emptyList() : tabInfo; + tags = tags === VOID ? '' : tags; + ugcInline = ugcInline === VOID ? null : ugcInline; + videoCoverImage = videoCoverImage === VOID ? '' : videoCoverImage; + inlineLive = inlineLive === VOID ? null : inlineLive; + cardLayout = cardLayout === VOID ? null : cardLayout; + this.title = title; + this.cover = cover; + this.array = array; + this.backgroundImage = backgroundImage; + this.buttonType = buttonType; + this.gameIcon = gameIcon; + this.gameBaseId = gameBaseId; + this.gameStatus = gameStatus; + this.inlineType = inlineType; + this.topGameUi = topGameUi; + this.noticeContent = noticeContent; + this.noticeName = noticeName; + this.rating = rating; + this.score = score; + this.tabInfo = tabInfo; + this.tags = tags; + this.ugcInline = ugcInline; + this.videoCoverImage = videoCoverImage; + this.inlineLive = inlineLive; + this.cardLayout = cardLayout; + } + get_title_iz32un_k$() { + return this.title; + } + get_cover_ipug0e_k$() { + return this.cover; + } + get_array_iosoq8_k$() { + return this.array; + } + get_backgroundImage_9x278c_k$() { + return this.backgroundImage; + } + get_buttonType_e8rsob_k$() { + return this.buttonType; + } + get_gameIcon_9ynyvo_k$() { + return this.gameIcon; + } + get_gameBaseId_i4pu6x_k$() { + return this.gameBaseId; + } + get_gameStatus_9stbsj_k$() { + return this.gameStatus; + } + get_inlineType_7azxfo_k$() { + return this.inlineType; + } + get_topGameUi_16fgzy_k$() { + return this.topGameUi; + } + get_noticeContent_sa8bbs_k$() { + return this.noticeContent; + } + get_noticeName_tv1q8c_k$() { + return this.noticeName; + } + get_rating_iw9d46_k$() { + return this.rating; + } + get_score_iyfcrt_k$() { + return this.score; + } + get_tabInfo_ofmcxy_k$() { + return this.tabInfo; + } + get_tags_wousf6_k$() { + return this.tags; + } + get_ugcInline_p4sm8v_k$() { + return this.ugcInline; + } + get_videoCoverImage_9fr00m_k$() { + return this.videoCoverImage; + } + get_inlineLive_7b5d1u_k$() { + return this.inlineLive; + } + get_cardLayout_d0npjx_k$() { + return this.cardLayout; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.cover; + } + component3_7eebsa_k$() { + return this.array; + } + component4_7eebs9_k$() { + return this.backgroundImage; + } + component5_7eebs8_k$() { + return this.buttonType; + } + component6_7eebs7_k$() { + return this.gameIcon; + } + component7_7eebs6_k$() { + return this.gameBaseId; + } + component8_7eebs5_k$() { + return this.gameStatus; + } + component9_7eebs4_k$() { + return this.inlineType; + } + component10_gazzfo_k$() { + return this.topGameUi; + } + component11_gazzfn_k$() { + return this.noticeContent; + } + component12_gazzfm_k$() { + return this.noticeName; + } + component13_gazzfl_k$() { + return this.rating; + } + component14_gazzfk_k$() { + return this.score; + } + component15_gazzfj_k$() { + return this.tabInfo; + } + component16_gazzfi_k$() { + return this.tags; + } + component17_gazzfh_k$() { + return this.ugcInline; + } + component18_gazzfg_k$() { + return this.videoCoverImage; + } + component19_gazzff_k$() { + return this.inlineLive; + } + component20_gazzet_k$() { + return this.cardLayout; + } + copy_x8yhwf_k$(title, cover, array, backgroundImage, buttonType, gameIcon, gameBaseId, gameStatus, inlineType, topGameUi, noticeContent, noticeName, rating, score, tabInfo, tags, ugcInline, videoCoverImage, inlineLive, cardLayout) { + return new KSearchTopGameCard(title, cover, array, backgroundImage, buttonType, gameIcon, gameBaseId, gameStatus, inlineType, topGameUi, noticeContent, noticeName, rating, score, tabInfo, tags, ugcInline, videoCoverImage, inlineLive, cardLayout); + } + copy(title, cover, array, backgroundImage, buttonType, gameIcon, gameBaseId, gameStatus, inlineType, topGameUi, noticeContent, noticeName, rating, score, tabInfo, tags, ugcInline, videoCoverImage, inlineLive, cardLayout, $super) { + title = title === VOID ? this.title : title; + cover = cover === VOID ? this.cover : cover; + array = array === VOID ? this.array : array; + backgroundImage = backgroundImage === VOID ? this.backgroundImage : backgroundImage; + buttonType = buttonType === VOID ? this.buttonType : buttonType; + gameIcon = gameIcon === VOID ? this.gameIcon : gameIcon; + gameBaseId = gameBaseId === VOID ? this.gameBaseId : gameBaseId; + gameStatus = gameStatus === VOID ? this.gameStatus : gameStatus; + inlineType = inlineType === VOID ? this.inlineType : inlineType; + topGameUi = topGameUi === VOID ? this.topGameUi : topGameUi; + noticeContent = noticeContent === VOID ? this.noticeContent : noticeContent; + noticeName = noticeName === VOID ? this.noticeName : noticeName; + rating = rating === VOID ? this.rating : rating; + score = score === VOID ? this.score : score; + tabInfo = tabInfo === VOID ? this.tabInfo : tabInfo; + tags = tags === VOID ? this.tags : tags; + ugcInline = ugcInline === VOID ? this.ugcInline : ugcInline; + videoCoverImage = videoCoverImage === VOID ? this.videoCoverImage : videoCoverImage; + inlineLive = inlineLive === VOID ? this.inlineLive : inlineLive; + cardLayout = cardLayout === VOID ? this.cardLayout : cardLayout; + return this.copy_x8yhwf_k$(title, cover, array, backgroundImage, buttonType, gameIcon, gameBaseId, gameStatus, inlineType, topGameUi, noticeContent, noticeName, rating, score, tabInfo, tags, ugcInline, videoCoverImage, inlineLive, cardLayout); + } + toString() { + return 'KSearchTopGameCard(title=' + this.title + ', cover=' + this.cover + ', array=' + this.array + ', backgroundImage=' + this.backgroundImage + ', buttonType=' + this.buttonType + ', gameIcon=' + this.gameIcon + ', gameBaseId=' + this.gameBaseId.toString() + ', gameStatus=' + this.gameStatus + ', inlineType=' + this.inlineType + ', topGameUi=' + this.topGameUi + ', noticeContent=' + this.noticeContent + ', noticeName=' + this.noticeName + ', rating=' + this.rating + ', score=' + this.score + ', tabInfo=' + this.tabInfo + ', tags=' + this.tags + ', ugcInline=' + this.ugcInline + ', videoCoverImage=' + this.videoCoverImage + ', inlineLive=' + this.inlineLive + ', cardLayout=' + this.cardLayout + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.cover) | 0; + result = imul(result, 31) + this.array | 0; + result = imul(result, 31) + getStringHashCode(this.backgroundImage) | 0; + result = imul(result, 31) + this.buttonType | 0; + result = imul(result, 31) + getStringHashCode(this.gameIcon) | 0; + result = imul(result, 31) + this.gameBaseId.hashCode() | 0; + result = imul(result, 31) + this.gameStatus | 0; + result = imul(result, 31) + getStringHashCode(this.inlineType) | 0; + result = imul(result, 31) + (this.topGameUi == null ? 0 : this.topGameUi.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.noticeContent) | 0; + result = imul(result, 31) + getStringHashCode(this.noticeName) | 0; + result = imul(result, 31) + getNumberHashCode(this.rating) | 0; + result = imul(result, 31) + getStringHashCode(this.score) | 0; + result = imul(result, 31) + hashCode(this.tabInfo) | 0; + result = imul(result, 31) + getStringHashCode(this.tags) | 0; + result = imul(result, 31) + (this.ugcInline == null ? 0 : this.ugcInline.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.videoCoverImage) | 0; + result = imul(result, 31) + (this.inlineLive == null ? 0 : this.inlineLive.hashCode()) | 0; + result = imul(result, 31) + (this.cardLayout == null ? 0 : this.cardLayout.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSearchTopGameCard)) + return false; + var tmp0_other_with_cast = other instanceof KSearchTopGameCard ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + if (!(this.array === tmp0_other_with_cast.array)) + return false; + if (!(this.backgroundImage === tmp0_other_with_cast.backgroundImage)) + return false; + if (!(this.buttonType === tmp0_other_with_cast.buttonType)) + return false; + if (!(this.gameIcon === tmp0_other_with_cast.gameIcon)) + return false; + if (!this.gameBaseId.equals(tmp0_other_with_cast.gameBaseId)) + return false; + if (!(this.gameStatus === tmp0_other_with_cast.gameStatus)) + return false; + if (!(this.inlineType === tmp0_other_with_cast.inlineType)) + return false; + if (!equals(this.topGameUi, tmp0_other_with_cast.topGameUi)) + return false; + if (!(this.noticeContent === tmp0_other_with_cast.noticeContent)) + return false; + if (!(this.noticeName === tmp0_other_with_cast.noticeName)) + return false; + if (!equals(this.rating, tmp0_other_with_cast.rating)) + return false; + if (!(this.score === tmp0_other_with_cast.score)) + return false; + if (!equals(this.tabInfo, tmp0_other_with_cast.tabInfo)) + return false; + if (!(this.tags === tmp0_other_with_cast.tags)) + return false; + if (!equals(this.ugcInline, tmp0_other_with_cast.ugcInline)) + return false; + if (!(this.videoCoverImage === tmp0_other_with_cast.videoCoverImage)) + return false; + if (!equals(this.inlineLive, tmp0_other_with_cast.inlineLive)) + return false; + if (!equals(this.cardLayout, tmp0_other_with_cast.cardLayout)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KSearchTopGameCard_4c5cyz_k$(seen1, title, cover, array, backgroundImage, buttonType, gameIcon, gameBaseId, gameStatus, inlineType, topGameUi, noticeContent, noticeName, rating, score, tabInfo, tags, ugcInline, videoCoverImage, inlineLive, cardLayout, serializationConstructorMarker) { + Companion_getInstance_547(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_534().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.cover = ''; + else + $this.cover = cover; + if (0 === (seen1 & 4)) + $this.array = 0; + else + $this.array = array; + if (0 === (seen1 & 8)) + $this.backgroundImage = ''; + else + $this.backgroundImage = backgroundImage; + if (0 === (seen1 & 16)) + $this.buttonType = 0; + else + $this.buttonType = buttonType; + if (0 === (seen1 & 32)) + $this.gameIcon = ''; + else + $this.gameIcon = gameIcon; + if (0 === (seen1 & 64)) + $this.gameBaseId = new Long(0, 0); + else + $this.gameBaseId = gameBaseId; + if (0 === (seen1 & 128)) + $this.gameStatus = 0; + else + $this.gameStatus = gameStatus; + if (0 === (seen1 & 256)) + $this.inlineType = ''; + else + $this.inlineType = inlineType; + if (0 === (seen1 & 512)) + $this.topGameUi = null; + else + $this.topGameUi = topGameUi; + if (0 === (seen1 & 1024)) + $this.noticeContent = ''; + else + $this.noticeContent = noticeContent; + if (0 === (seen1 & 2048)) + $this.noticeName = ''; + else + $this.noticeName = noticeName; + if (0 === (seen1 & 4096)) + $this.rating = 0.0; + else + $this.rating = rating; + if (0 === (seen1 & 8192)) + $this.score = ''; + else + $this.score = score; + if (0 === (seen1 & 16384)) + $this.tabInfo = emptyList(); + else + $this.tabInfo = tabInfo; + if (0 === (seen1 & 32768)) + $this.tags = ''; + else + $this.tags = tags; + if (0 === (seen1 & 65536)) + $this.ugcInline = null; + else + $this.ugcInline = ugcInline; + if (0 === (seen1 & 131072)) + $this.videoCoverImage = ''; + else + $this.videoCoverImage = videoCoverImage; + if (0 === (seen1 & 262144)) + $this.inlineLive = null; + else + $this.inlineLive = inlineLive; + if (0 === (seen1 & 524288)) + $this.cardLayout = null; + else + $this.cardLayout = cardLayout; + return $this; + } + } + class Companion_548 { + constructor() { + Companion_instance_548 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, null, null, new ArrayListSerializer($serializer_getInstance_570()), null, null, null, null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.polymer.app.search.v1.SearchOlympicGameCard'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_535(); + } + } + class $serializer_535 { + constructor() { + $serializer_instance_535 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KSearchOlympicGameCard', this, 11); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('sportsMatchItem', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('matchTop', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('bgCover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('extraLink', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('inlineType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('ugcInline', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('liveRoomInline', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('matchBottom', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('cardLayout', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_548().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_554()), get_nullable($serializer_getInstance_572()), StringSerializer_getInstance(), tmp0_cached[5], StringSerializer_getInstance(), get_nullable($serializer_getInstance_530()), get_nullable($serializer_getInstance_530()), get_nullable($serializer_getInstance_572()), get_nullable($serializer_getInstance_633())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_local8 = null; + var tmp13_local9 = null; + var tmp14_local10 = null; + var tmp15_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp16_cached = Companion_getInstance_548().$childSerializers_1; + if (tmp15_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_554(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_572(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp15_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 5, tmp16_cached[5], tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_530(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_530(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 9, $serializer_getInstance_572(), tmp13_local9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 10, $serializer_getInstance_633(), tmp14_local10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + } else + while (tmp1_flag) { + tmp2_index = tmp15_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_554(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_572(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp15_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 5, tmp16_cached[5], tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_530(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_530(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 9, $serializer_getInstance_572(), tmp13_local9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 10, $serializer_getInstance_633(), tmp14_local10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp15_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSearchOlympicGameCard.new_com_bapis_bilibili_polymer_app_search_v1_KSearchOlympicGameCard_9kdd8i_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, null); + } + serialize_rklfvo_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_548().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.cover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.sportsMatchItem == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_554(), value.sportsMatchItem); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.matchTop == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_572(), value.matchTop); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.bgCover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.bgCover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !equals(value.extraLink, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 5, tmp2_cached[5], value.extraLink); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.inlineType === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.inlineType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.ugcInline == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 7, $serializer_getInstance_530(), value.ugcInline); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.liveRoomInline == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 8, $serializer_getInstance_530(), value.liveRoomInline); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.matchBottom == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 9, $serializer_getInstance_572(), value.matchBottom); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.cardLayout == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 10, $serializer_getInstance_633(), value.cardLayout); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_rklfvo_k$(encoder, value instanceof KSearchOlympicGameCard ? value : THROW_CCE()); + } + } + class KSearchOlympicGameCard { + constructor(title, cover, sportsMatchItem, matchTop, bgCover, extraLink, inlineType, ugcInline, liveRoomInline, matchBottom, cardLayout) { + Companion_getInstance_548(); + title = title === VOID ? '' : title; + cover = cover === VOID ? '' : cover; + sportsMatchItem = sportsMatchItem === VOID ? null : sportsMatchItem; + matchTop = matchTop === VOID ? null : matchTop; + bgCover = bgCover === VOID ? '' : bgCover; + extraLink = extraLink === VOID ? emptyList() : extraLink; + inlineType = inlineType === VOID ? '' : inlineType; + ugcInline = ugcInline === VOID ? null : ugcInline; + liveRoomInline = liveRoomInline === VOID ? null : liveRoomInline; + matchBottom = matchBottom === VOID ? null : matchBottom; + cardLayout = cardLayout === VOID ? null : cardLayout; + this.title = title; + this.cover = cover; + this.sportsMatchItem = sportsMatchItem; + this.matchTop = matchTop; + this.bgCover = bgCover; + this.extraLink = extraLink; + this.inlineType = inlineType; + this.ugcInline = ugcInline; + this.liveRoomInline = liveRoomInline; + this.matchBottom = matchBottom; + this.cardLayout = cardLayout; + } + get_title_iz32un_k$() { + return this.title; + } + get_cover_ipug0e_k$() { + return this.cover; + } + get_sportsMatchItem_seka8g_k$() { + return this.sportsMatchItem; + } + get_matchTop_qw63mv_k$() { + return this.matchTop; + } + get_bgCover_24epo7_k$() { + return this.bgCover; + } + get_extraLink_4bkfi9_k$() { + return this.extraLink; + } + get_inlineType_7azxfo_k$() { + return this.inlineType; + } + get_ugcInline_p4sm8v_k$() { + return this.ugcInline; + } + get_liveRoomInline_yhxwtl_k$() { + return this.liveRoomInline; + } + get_matchBottom_wz4nvr_k$() { + return this.matchBottom; + } + get_cardLayout_d0npjx_k$() { + return this.cardLayout; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.cover; + } + component3_7eebsa_k$() { + return this.sportsMatchItem; + } + component4_7eebs9_k$() { + return this.matchTop; + } + component5_7eebs8_k$() { + return this.bgCover; + } + component6_7eebs7_k$() { + return this.extraLink; + } + component7_7eebs6_k$() { + return this.inlineType; + } + component8_7eebs5_k$() { + return this.ugcInline; + } + component9_7eebs4_k$() { + return this.liveRoomInline; + } + component10_gazzfo_k$() { + return this.matchBottom; + } + component11_gazzfn_k$() { + return this.cardLayout; + } + copy_xyvtu0_k$(title, cover, sportsMatchItem, matchTop, bgCover, extraLink, inlineType, ugcInline, liveRoomInline, matchBottom, cardLayout) { + return new KSearchOlympicGameCard(title, cover, sportsMatchItem, matchTop, bgCover, extraLink, inlineType, ugcInline, liveRoomInline, matchBottom, cardLayout); + } + copy(title, cover, sportsMatchItem, matchTop, bgCover, extraLink, inlineType, ugcInline, liveRoomInline, matchBottom, cardLayout, $super) { + title = title === VOID ? this.title : title; + cover = cover === VOID ? this.cover : cover; + sportsMatchItem = sportsMatchItem === VOID ? this.sportsMatchItem : sportsMatchItem; + matchTop = matchTop === VOID ? this.matchTop : matchTop; + bgCover = bgCover === VOID ? this.bgCover : bgCover; + extraLink = extraLink === VOID ? this.extraLink : extraLink; + inlineType = inlineType === VOID ? this.inlineType : inlineType; + ugcInline = ugcInline === VOID ? this.ugcInline : ugcInline; + liveRoomInline = liveRoomInline === VOID ? this.liveRoomInline : liveRoomInline; + matchBottom = matchBottom === VOID ? this.matchBottom : matchBottom; + cardLayout = cardLayout === VOID ? this.cardLayout : cardLayout; + return this.copy_xyvtu0_k$(title, cover, sportsMatchItem, matchTop, bgCover, extraLink, inlineType, ugcInline, liveRoomInline, matchBottom, cardLayout); + } + toString() { + return 'KSearchOlympicGameCard(title=' + this.title + ', cover=' + this.cover + ', sportsMatchItem=' + this.sportsMatchItem + ', matchTop=' + this.matchTop + ', bgCover=' + this.bgCover + ', extraLink=' + this.extraLink + ', inlineType=' + this.inlineType + ', ugcInline=' + this.ugcInline + ', liveRoomInline=' + this.liveRoomInline + ', matchBottom=' + this.matchBottom + ', cardLayout=' + this.cardLayout + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.cover) | 0; + result = imul(result, 31) + (this.sportsMatchItem == null ? 0 : this.sportsMatchItem.hashCode()) | 0; + result = imul(result, 31) + (this.matchTop == null ? 0 : this.matchTop.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.bgCover) | 0; + result = imul(result, 31) + hashCode(this.extraLink) | 0; + result = imul(result, 31) + getStringHashCode(this.inlineType) | 0; + result = imul(result, 31) + (this.ugcInline == null ? 0 : this.ugcInline.hashCode()) | 0; + result = imul(result, 31) + (this.liveRoomInline == null ? 0 : this.liveRoomInline.hashCode()) | 0; + result = imul(result, 31) + (this.matchBottom == null ? 0 : this.matchBottom.hashCode()) | 0; + result = imul(result, 31) + (this.cardLayout == null ? 0 : this.cardLayout.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSearchOlympicGameCard)) + return false; + var tmp0_other_with_cast = other instanceof KSearchOlympicGameCard ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + if (!equals(this.sportsMatchItem, tmp0_other_with_cast.sportsMatchItem)) + return false; + if (!equals(this.matchTop, tmp0_other_with_cast.matchTop)) + return false; + if (!(this.bgCover === tmp0_other_with_cast.bgCover)) + return false; + if (!equals(this.extraLink, tmp0_other_with_cast.extraLink)) + return false; + if (!(this.inlineType === tmp0_other_with_cast.inlineType)) + return false; + if (!equals(this.ugcInline, tmp0_other_with_cast.ugcInline)) + return false; + if (!equals(this.liveRoomInline, tmp0_other_with_cast.liveRoomInline)) + return false; + if (!equals(this.matchBottom, tmp0_other_with_cast.matchBottom)) + return false; + if (!equals(this.cardLayout, tmp0_other_with_cast.cardLayout)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KSearchOlympicGameCard_9kdd8i_k$(seen1, title, cover, sportsMatchItem, matchTop, bgCover, extraLink, inlineType, ugcInline, liveRoomInline, matchBottom, cardLayout, serializationConstructorMarker) { + Companion_getInstance_548(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_535().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.cover = ''; + else + $this.cover = cover; + if (0 === (seen1 & 4)) + $this.sportsMatchItem = null; + else + $this.sportsMatchItem = sportsMatchItem; + if (0 === (seen1 & 8)) + $this.matchTop = null; + else + $this.matchTop = matchTop; + if (0 === (seen1 & 16)) + $this.bgCover = ''; + else + $this.bgCover = bgCover; + if (0 === (seen1 & 32)) + $this.extraLink = emptyList(); + else + $this.extraLink = extraLink; + if (0 === (seen1 & 64)) + $this.inlineType = ''; + else + $this.inlineType = inlineType; + if (0 === (seen1 & 128)) + $this.ugcInline = null; + else + $this.ugcInline = ugcInline; + if (0 === (seen1 & 256)) + $this.liveRoomInline = null; + else + $this.liveRoomInline = liveRoomInline; + if (0 === (seen1 & 512)) + $this.matchBottom = null; + else + $this.matchBottom = matchBottom; + if (0 === (seen1 & 1024)) + $this.cardLayout = null; + else + $this.cardLayout = cardLayout; + return $this; + } + } + class Companion_549 { + constructor() { + Companion_instance_549 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, null, null, null, null, null, new ArrayListSerializer($serializer_getInstance_545())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.polymer.app.search.v1.SearchOlympicWikiCard'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_536(); + } + } + class $serializer_536 { + constructor() { + $serializer_instance_536 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KSearchOlympicWikiCard', this, 9); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('cardBusinessBadge', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('readMore', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('inlineType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('ugcInline', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('liveRoomInline', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('pediaCover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('navigation', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_549().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_550()), get_nullable($serializer_getInstance_546()), StringSerializer_getInstance(), get_nullable($serializer_getInstance_530()), get_nullable($serializer_getInstance_530()), get_nullable($serializer_getInstance_547()), tmp0_cached[8]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_local8 = null; + var tmp13_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp14_cached = Companion_getInstance_549().$childSerializers_1; + if (tmp13_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_550(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_546(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_530(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_530(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_547(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp13_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 8, tmp14_cached[8], tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + } else + while (tmp1_flag) { + tmp2_index = tmp13_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_550(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_546(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_530(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_530(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_547(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp13_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 8, tmp14_cached[8], tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp13_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSearchOlympicWikiCard.new_com_bapis_bilibili_polymer_app_search_v1_KSearchOlympicWikiCard_pkiyzw_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, null); + } + serialize_6q38pq_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_549().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.cover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.cardBusinessBadge == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_550(), value.cardBusinessBadge); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.readMore == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_546(), value.readMore); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.inlineType === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.inlineType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.ugcInline == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 5, $serializer_getInstance_530(), value.ugcInline); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.liveRoomInline == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 6, $serializer_getInstance_530(), value.liveRoomInline); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.pediaCover == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 7, $serializer_getInstance_547(), value.pediaCover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !equals(value.navigation, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 8, tmp2_cached[8], value.navigation); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_6q38pq_k$(encoder, value instanceof KSearchOlympicWikiCard ? value : THROW_CCE()); + } + } + class KSearchOlympicWikiCard { + constructor(title, cover, cardBusinessBadge, readMore, inlineType, ugcInline, liveRoomInline, pediaCover, navigation) { + Companion_getInstance_549(); + title = title === VOID ? '' : title; + cover = cover === VOID ? '' : cover; + cardBusinessBadge = cardBusinessBadge === VOID ? null : cardBusinessBadge; + readMore = readMore === VOID ? null : readMore; + inlineType = inlineType === VOID ? '' : inlineType; + ugcInline = ugcInline === VOID ? null : ugcInline; + liveRoomInline = liveRoomInline === VOID ? null : liveRoomInline; + pediaCover = pediaCover === VOID ? null : pediaCover; + navigation = navigation === VOID ? emptyList() : navigation; + this.title = title; + this.cover = cover; + this.cardBusinessBadge = cardBusinessBadge; + this.readMore = readMore; + this.inlineType = inlineType; + this.ugcInline = ugcInline; + this.liveRoomInline = liveRoomInline; + this.pediaCover = pediaCover; + this.navigation = navigation; + } + get_title_iz32un_k$() { + return this.title; + } + get_cover_ipug0e_k$() { + return this.cover; + } + get_cardBusinessBadge_cbnpxy_k$() { + return this.cardBusinessBadge; + } + get_readMore_ovjl5g_k$() { + return this.readMore; + } + get_inlineType_7azxfo_k$() { + return this.inlineType; + } + get_ugcInline_p4sm8v_k$() { + return this.ugcInline; + } + get_liveRoomInline_yhxwtl_k$() { + return this.liveRoomInline; + } + get_pediaCover_1q7sih_k$() { + return this.pediaCover; + } + get_navigation_amqc9p_k$() { + return this.navigation; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.cover; + } + component3_7eebsa_k$() { + return this.cardBusinessBadge; + } + component4_7eebs9_k$() { + return this.readMore; + } + component5_7eebs8_k$() { + return this.inlineType; + } + component6_7eebs7_k$() { + return this.ugcInline; + } + component7_7eebs6_k$() { + return this.liveRoomInline; + } + component8_7eebs5_k$() { + return this.pediaCover; + } + component9_7eebs4_k$() { + return this.navigation; + } + copy_u3t3g5_k$(title, cover, cardBusinessBadge, readMore, inlineType, ugcInline, liveRoomInline, pediaCover, navigation) { + return new KSearchOlympicWikiCard(title, cover, cardBusinessBadge, readMore, inlineType, ugcInline, liveRoomInline, pediaCover, navigation); + } + copy(title, cover, cardBusinessBadge, readMore, inlineType, ugcInline, liveRoomInline, pediaCover, navigation, $super) { + title = title === VOID ? this.title : title; + cover = cover === VOID ? this.cover : cover; + cardBusinessBadge = cardBusinessBadge === VOID ? this.cardBusinessBadge : cardBusinessBadge; + readMore = readMore === VOID ? this.readMore : readMore; + inlineType = inlineType === VOID ? this.inlineType : inlineType; + ugcInline = ugcInline === VOID ? this.ugcInline : ugcInline; + liveRoomInline = liveRoomInline === VOID ? this.liveRoomInline : liveRoomInline; + pediaCover = pediaCover === VOID ? this.pediaCover : pediaCover; + navigation = navigation === VOID ? this.navigation : navigation; + return this.copy_u3t3g5_k$(title, cover, cardBusinessBadge, readMore, inlineType, ugcInline, liveRoomInline, pediaCover, navigation); + } + toString() { + return 'KSearchOlympicWikiCard(title=' + this.title + ', cover=' + this.cover + ', cardBusinessBadge=' + this.cardBusinessBadge + ', readMore=' + this.readMore + ', inlineType=' + this.inlineType + ', ugcInline=' + this.ugcInline + ', liveRoomInline=' + this.liveRoomInline + ', pediaCover=' + this.pediaCover + ', navigation=' + this.navigation + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.cover) | 0; + result = imul(result, 31) + (this.cardBusinessBadge == null ? 0 : this.cardBusinessBadge.hashCode()) | 0; + result = imul(result, 31) + (this.readMore == null ? 0 : this.readMore.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.inlineType) | 0; + result = imul(result, 31) + (this.ugcInline == null ? 0 : this.ugcInline.hashCode()) | 0; + result = imul(result, 31) + (this.liveRoomInline == null ? 0 : this.liveRoomInline.hashCode()) | 0; + result = imul(result, 31) + (this.pediaCover == null ? 0 : this.pediaCover.hashCode()) | 0; + result = imul(result, 31) + hashCode(this.navigation) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSearchOlympicWikiCard)) + return false; + var tmp0_other_with_cast = other instanceof KSearchOlympicWikiCard ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + if (!equals(this.cardBusinessBadge, tmp0_other_with_cast.cardBusinessBadge)) + return false; + if (!equals(this.readMore, tmp0_other_with_cast.readMore)) + return false; + if (!(this.inlineType === tmp0_other_with_cast.inlineType)) + return false; + if (!equals(this.ugcInline, tmp0_other_with_cast.ugcInline)) + return false; + if (!equals(this.liveRoomInline, tmp0_other_with_cast.liveRoomInline)) + return false; + if (!equals(this.pediaCover, tmp0_other_with_cast.pediaCover)) + return false; + if (!equals(this.navigation, tmp0_other_with_cast.navigation)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KSearchOlympicWikiCard_pkiyzw_k$(seen1, title, cover, cardBusinessBadge, readMore, inlineType, ugcInline, liveRoomInline, pediaCover, navigation, serializationConstructorMarker) { + Companion_getInstance_549(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_536().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.cover = ''; + else + $this.cover = cover; + if (0 === (seen1 & 4)) + $this.cardBusinessBadge = null; + else + $this.cardBusinessBadge = cardBusinessBadge; + if (0 === (seen1 & 8)) + $this.readMore = null; + else + $this.readMore = readMore; + if (0 === (seen1 & 16)) + $this.inlineType = ''; + else + $this.inlineType = inlineType; + if (0 === (seen1 & 32)) + $this.ugcInline = null; + else + $this.ugcInline = ugcInline; + if (0 === (seen1 & 64)) + $this.liveRoomInline = null; + else + $this.liveRoomInline = liveRoomInline; + if (0 === (seen1 & 128)) + $this.pediaCover = null; + else + $this.pediaCover = pediaCover; + if (0 === (seen1 & 256)) + $this.navigation = emptyList(); + else + $this.navigation = navigation; + return $this; + } + } + class Companion_550 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.SearchRecommendTipCard'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_537(); + } + } + class $serializer_537 { + constructor() { + $serializer_instance_537 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KSearchRecommendTipCard', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSearchRecommendTipCard.new_com_bapis_bilibili_polymer_app_search_v1_KSearchRecommendTipCard_al3gfy_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_x518f4_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.cover); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_x518f4_k$(encoder, value instanceof KSearchRecommendTipCard ? value : THROW_CCE()); + } + } + class KSearchRecommendTipCard { + constructor(title, cover) { + Companion_instance_550; + title = title === VOID ? '' : title; + cover = cover === VOID ? '' : cover; + this.title = title; + this.cover = cover; + } + get_title_iz32un_k$() { + return this.title; + } + get_cover_ipug0e_k$() { + return this.cover; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.cover; + } + copy_plwnsl_k$(title, cover) { + return new KSearchRecommendTipCard(title, cover); + } + copy(title, cover, $super) { + title = title === VOID ? this.title : title; + cover = cover === VOID ? this.cover : cover; + return this.copy_plwnsl_k$(title, cover); + } + toString() { + return 'KSearchRecommendTipCard(title=' + this.title + ', cover=' + this.cover + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.cover) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSearchRecommendTipCard)) + return false; + var tmp0_other_with_cast = other instanceof KSearchRecommendTipCard ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KSearchRecommendTipCard_al3gfy_k$(seen1, title, cover, serializationConstructorMarker) { + Companion_instance_550; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_537().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.cover = ''; + else + $this.cover = cover; + return $this; + } + } + class Companion_551 { + constructor() { + Companion_instance_551 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, new ArrayListSerializer($serializer_getInstance_525()), null, null, null, null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.polymer.app.search.v1.SearchCollectionCard'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_538(); + } + } + class $serializer_538 { + constructor() { + $serializer_instance_538 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KSearchCollectionCard', this, 9); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('author', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('avItems', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('bottomButton', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('collectionIcon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('showCardDesc1', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('showCardDesc2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('cardLayout', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_551().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), tmp0_cached[3], get_nullable($serializer_getInstance_564()), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_633())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_local8 = null; + var tmp13_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp14_cached = Companion_getInstance_551().$childSerializers_1; + if (tmp13_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp13_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 3, tmp14_cached[3], tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_564(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_633(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + } else + while (tmp1_flag) { + tmp2_index = tmp13_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp13_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 3, tmp14_cached[3], tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_564(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_633(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp13_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSearchCollectionCard.new_com_bapis_bilibili_polymer_app_search_v1_KSearchCollectionCard_yrf0yd_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, null); + } + serialize_ih2s0v_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_551().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.cover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.author === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.author); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !equals(value.avItems, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 3, tmp2_cached[3], value.avItems); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.bottomButton == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, $serializer_getInstance_564(), value.bottomButton); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.collectionIcon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.collectionIcon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.showCardDesc1 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.showCardDesc1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.showCardDesc2 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.showCardDesc2); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.cardLayout == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 8, $serializer_getInstance_633(), value.cardLayout); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_ih2s0v_k$(encoder, value instanceof KSearchCollectionCard ? value : THROW_CCE()); + } + } + class KSearchCollectionCard { + constructor(title, cover, author, avItems, bottomButton, collectionIcon, showCardDesc1, showCardDesc2, cardLayout) { + Companion_getInstance_551(); + title = title === VOID ? '' : title; + cover = cover === VOID ? '' : cover; + author = author === VOID ? '' : author; + avItems = avItems === VOID ? emptyList() : avItems; + bottomButton = bottomButton === VOID ? null : bottomButton; + collectionIcon = collectionIcon === VOID ? '' : collectionIcon; + showCardDesc1 = showCardDesc1 === VOID ? '' : showCardDesc1; + showCardDesc2 = showCardDesc2 === VOID ? '' : showCardDesc2; + cardLayout = cardLayout === VOID ? null : cardLayout; + this.title = title; + this.cover = cover; + this.author = author; + this.avItems = avItems; + this.bottomButton = bottomButton; + this.collectionIcon = collectionIcon; + this.showCardDesc1 = showCardDesc1; + this.showCardDesc2 = showCardDesc2; + this.cardLayout = cardLayout; + } + get_title_iz32un_k$() { + return this.title; + } + get_cover_ipug0e_k$() { + return this.cover; + } + get_author_b5hnkk_k$() { + return this.author; + } + get_avItems_9lr1we_k$() { + return this.avItems; + } + get_bottomButton_xsbpty_k$() { + return this.bottomButton; + } + get_collectionIcon_wj783k_k$() { + return this.collectionIcon; + } + get_showCardDesc1_gakd1y_k$() { + return this.showCardDesc1; + } + get_showCardDesc2_gakd1x_k$() { + return this.showCardDesc2; + } + get_cardLayout_d0npjx_k$() { + return this.cardLayout; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.cover; + } + component3_7eebsa_k$() { + return this.author; + } + component4_7eebs9_k$() { + return this.avItems; + } + component5_7eebs8_k$() { + return this.bottomButton; + } + component6_7eebs7_k$() { + return this.collectionIcon; + } + component7_7eebs6_k$() { + return this.showCardDesc1; + } + component8_7eebs5_k$() { + return this.showCardDesc2; + } + component9_7eebs4_k$() { + return this.cardLayout; + } + copy_52hbs0_k$(title, cover, author, avItems, bottomButton, collectionIcon, showCardDesc1, showCardDesc2, cardLayout) { + return new KSearchCollectionCard(title, cover, author, avItems, bottomButton, collectionIcon, showCardDesc1, showCardDesc2, cardLayout); + } + copy(title, cover, author, avItems, bottomButton, collectionIcon, showCardDesc1, showCardDesc2, cardLayout, $super) { + title = title === VOID ? this.title : title; + cover = cover === VOID ? this.cover : cover; + author = author === VOID ? this.author : author; + avItems = avItems === VOID ? this.avItems : avItems; + bottomButton = bottomButton === VOID ? this.bottomButton : bottomButton; + collectionIcon = collectionIcon === VOID ? this.collectionIcon : collectionIcon; + showCardDesc1 = showCardDesc1 === VOID ? this.showCardDesc1 : showCardDesc1; + showCardDesc2 = showCardDesc2 === VOID ? this.showCardDesc2 : showCardDesc2; + cardLayout = cardLayout === VOID ? this.cardLayout : cardLayout; + return this.copy_52hbs0_k$(title, cover, author, avItems, bottomButton, collectionIcon, showCardDesc1, showCardDesc2, cardLayout); + } + toString() { + return 'KSearchCollectionCard(title=' + this.title + ', cover=' + this.cover + ', author=' + this.author + ', avItems=' + this.avItems + ', bottomButton=' + this.bottomButton + ', collectionIcon=' + this.collectionIcon + ', showCardDesc1=' + this.showCardDesc1 + ', showCardDesc2=' + this.showCardDesc2 + ', cardLayout=' + this.cardLayout + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.cover) | 0; + result = imul(result, 31) + getStringHashCode(this.author) | 0; + result = imul(result, 31) + hashCode(this.avItems) | 0; + result = imul(result, 31) + (this.bottomButton == null ? 0 : this.bottomButton.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.collectionIcon) | 0; + result = imul(result, 31) + getStringHashCode(this.showCardDesc1) | 0; + result = imul(result, 31) + getStringHashCode(this.showCardDesc2) | 0; + result = imul(result, 31) + (this.cardLayout == null ? 0 : this.cardLayout.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSearchCollectionCard)) + return false; + var tmp0_other_with_cast = other instanceof KSearchCollectionCard ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + if (!(this.author === tmp0_other_with_cast.author)) + return false; + if (!equals(this.avItems, tmp0_other_with_cast.avItems)) + return false; + if (!equals(this.bottomButton, tmp0_other_with_cast.bottomButton)) + return false; + if (!(this.collectionIcon === tmp0_other_with_cast.collectionIcon)) + return false; + if (!(this.showCardDesc1 === tmp0_other_with_cast.showCardDesc1)) + return false; + if (!(this.showCardDesc2 === tmp0_other_with_cast.showCardDesc2)) + return false; + if (!equals(this.cardLayout, tmp0_other_with_cast.cardLayout)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KSearchCollectionCard_yrf0yd_k$(seen1, title, cover, author, avItems, bottomButton, collectionIcon, showCardDesc1, showCardDesc2, cardLayout, serializationConstructorMarker) { + Companion_getInstance_551(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_538().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.cover = ''; + else + $this.cover = cover; + if (0 === (seen1 & 4)) + $this.author = ''; + else + $this.author = author; + if (0 === (seen1 & 8)) + $this.avItems = emptyList(); + else + $this.avItems = avItems; + if (0 === (seen1 & 16)) + $this.bottomButton = null; + else + $this.bottomButton = bottomButton; + if (0 === (seen1 & 32)) + $this.collectionIcon = ''; + else + $this.collectionIcon = collectionIcon; + if (0 === (seen1 & 64)) + $this.showCardDesc1 = ''; + else + $this.showCardDesc1 = showCardDesc1; + if (0 === (seen1 & 128)) + $this.showCardDesc2 = ''; + else + $this.showCardDesc2 = showCardDesc2; + if (0 === (seen1 & 256)) + $this.cardLayout = null; + else + $this.cardLayout = cardLayout; + return $this; + } + } + class Companion_552 { + constructor() { + Companion_instance_552 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, null, null, null, null, null, null, null, new ArrayListSerializer($serializer_getInstance_606()), null, null, null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.polymer.app.search.v1.SearchOgvChannelCard'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_539(); + } + } + class $serializer_539 { + constructor() { + $serializer_instance_539 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KSearchOgvChannelCard', this, 15); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('mediaId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('styles', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('area', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('staff', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('badge', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('watchButton', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('rating', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('desc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('badgesV2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('stylesV2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + tmp0_serialDesc.addElement_5pzumi_k$('purchaseButton', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(13)); + tmp0_serialDesc.addElement_5pzumi_k$('styleLabel', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(14)); + tmp0_serialDesc.addElement_5pzumi_k$('cardLayout', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(15)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_552().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_596()), DoubleSerializer_getInstance(), StringSerializer_getInstance(), tmp0_cached[10], StringSerializer_getInstance(), get_nullable($serializer_getInstance_595()), get_nullable($serializer_getInstance_606()), get_nullable($serializer_getInstance_633())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = new Long(0, 0); + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_local8 = 0.0; + var tmp13_local9 = null; + var tmp14_local10 = null; + var tmp15_local11 = null; + var tmp16_local12 = null; + var tmp17_local13 = null; + var tmp18_local14 = null; + var tmp19_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp20_cached = Companion_getInstance_552().$childSerializers_1; + if (tmp19_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp19_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp19_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_596(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp19_input.decodeDoubleElement_isei84_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp19_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 10, tmp20_cached[10], tmp14_local10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + tmp16_local12 = tmp19_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 12, $serializer_getInstance_595(), tmp16_local12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + tmp17_local13 = tmp19_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 13, $serializer_getInstance_606(), tmp17_local13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + tmp18_local14 = tmp19_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 14, $serializer_getInstance_633(), tmp18_local14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + } else + while (tmp1_flag) { + tmp2_index = tmp19_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp19_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp19_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_596(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp19_input.decodeDoubleElement_isei84_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp19_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 10, tmp20_cached[10], tmp14_local10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + case 12: + tmp16_local12 = tmp19_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 12, $serializer_getInstance_595(), tmp16_local12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + break; + case 13: + tmp17_local13 = tmp19_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 13, $serializer_getInstance_606(), tmp17_local13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + break; + case 14: + tmp18_local14 = tmp19_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 14, $serializer_getInstance_633(), tmp18_local14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp19_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSearchOgvChannelCard.new_com_bapis_bilibili_polymer_app_search_v1_KSearchOgvChannelCard_f14j6l_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, tmp18_local14, null); + } + serialize_1yhm_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_552().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.cover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.mediaId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.mediaId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.styles === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.styles); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.area === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.area); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.staff === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.staff); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.badge === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.badge); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.watchButton == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 7, $serializer_getInstance_596(), value.watchButton); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !equals(value.rating, 0.0)) { + tmp1_output.encodeDoubleElement_a6rqhe_k$(tmp0_desc, 8, value.rating); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.desc === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 9, value.desc); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !equals(value.badgesV2, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 10, tmp2_cached[10], value.badgesV2); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.stylesV2 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 11, value.stylesV2); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !(value.purchaseButton == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 12, $serializer_getInstance_595(), value.purchaseButton); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 13) ? true : !(value.styleLabel == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 13, $serializer_getInstance_606(), value.styleLabel); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 14) ? true : !(value.cardLayout == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 14, $serializer_getInstance_633(), value.cardLayout); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_1yhm_k$(encoder, value instanceof KSearchOgvChannelCard ? value : THROW_CCE()); + } + } + class KSearchOgvChannelCard { + constructor(title, cover, mediaId, styles, area, staff, badge, watchButton, rating, desc, badgesV2, stylesV2, purchaseButton, styleLabel, cardLayout) { + Companion_getInstance_552(); + title = title === VOID ? '' : title; + cover = cover === VOID ? '' : cover; + mediaId = mediaId === VOID ? new Long(0, 0) : mediaId; + styles = styles === VOID ? '' : styles; + area = area === VOID ? '' : area; + staff = staff === VOID ? '' : staff; + badge = badge === VOID ? '' : badge; + watchButton = watchButton === VOID ? null : watchButton; + rating = rating === VOID ? 0.0 : rating; + desc = desc === VOID ? '' : desc; + badgesV2 = badgesV2 === VOID ? emptyList() : badgesV2; + stylesV2 = stylesV2 === VOID ? '' : stylesV2; + purchaseButton = purchaseButton === VOID ? null : purchaseButton; + styleLabel = styleLabel === VOID ? null : styleLabel; + cardLayout = cardLayout === VOID ? null : cardLayout; + this.title = title; + this.cover = cover; + this.mediaId = mediaId; + this.styles = styles; + this.area = area; + this.staff = staff; + this.badge = badge; + this.watchButton = watchButton; + this.rating = rating; + this.desc = desc; + this.badgesV2 = badgesV2; + this.stylesV2 = stylesV2; + this.purchaseButton = purchaseButton; + this.styleLabel = styleLabel; + this.cardLayout = cardLayout; + } + get_title_iz32un_k$() { + return this.title; + } + get_cover_ipug0e_k$() { + return this.cover; + } + get_mediaId_gtnzg6_k$() { + return this.mediaId; + } + get_styles_jnubqj_k$() { + return this.styles; + } + get_area_woj07q_k$() { + return this.area; + } + get_staff_iypwvr_k$() { + return this.staff; + } + get_badge_ip1cai_k$() { + return this.badge; + } + get_watchButton_k0alx4_k$() { + return this.watchButton; + } + get_rating_iw9d46_k$() { + return this.rating; + } + get_desc_woknve_k$() { + return this.desc; + } + get_badgesV2_3oyw0l_k$() { + return this.badgesV2; + } + get_stylesV2_18krt3_k$() { + return this.stylesV2; + } + get_purchaseButton_jrxch0_k$() { + return this.purchaseButton; + } + get_styleLabel_i5mies_k$() { + return this.styleLabel; + } + get_cardLayout_d0npjx_k$() { + return this.cardLayout; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.cover; + } + component3_7eebsa_k$() { + return this.mediaId; + } + component4_7eebs9_k$() { + return this.styles; + } + component5_7eebs8_k$() { + return this.area; + } + component6_7eebs7_k$() { + return this.staff; + } + component7_7eebs6_k$() { + return this.badge; + } + component8_7eebs5_k$() { + return this.watchButton; + } + component9_7eebs4_k$() { + return this.rating; + } + component10_gazzfo_k$() { + return this.desc; + } + component11_gazzfn_k$() { + return this.badgesV2; + } + component12_gazzfm_k$() { + return this.stylesV2; + } + component13_gazzfl_k$() { + return this.purchaseButton; + } + component14_gazzfk_k$() { + return this.styleLabel; + } + component15_gazzfj_k$() { + return this.cardLayout; + } + copy_3awq4t_k$(title, cover, mediaId, styles, area, staff, badge, watchButton, rating, desc, badgesV2, stylesV2, purchaseButton, styleLabel, cardLayout) { + return new KSearchOgvChannelCard(title, cover, mediaId, styles, area, staff, badge, watchButton, rating, desc, badgesV2, stylesV2, purchaseButton, styleLabel, cardLayout); + } + copy(title, cover, mediaId, styles, area, staff, badge, watchButton, rating, desc, badgesV2, stylesV2, purchaseButton, styleLabel, cardLayout, $super) { + title = title === VOID ? this.title : title; + cover = cover === VOID ? this.cover : cover; + mediaId = mediaId === VOID ? this.mediaId : mediaId; + styles = styles === VOID ? this.styles : styles; + area = area === VOID ? this.area : area; + staff = staff === VOID ? this.staff : staff; + badge = badge === VOID ? this.badge : badge; + watchButton = watchButton === VOID ? this.watchButton : watchButton; + rating = rating === VOID ? this.rating : rating; + desc = desc === VOID ? this.desc : desc; + badgesV2 = badgesV2 === VOID ? this.badgesV2 : badgesV2; + stylesV2 = stylesV2 === VOID ? this.stylesV2 : stylesV2; + purchaseButton = purchaseButton === VOID ? this.purchaseButton : purchaseButton; + styleLabel = styleLabel === VOID ? this.styleLabel : styleLabel; + cardLayout = cardLayout === VOID ? this.cardLayout : cardLayout; + return this.copy_3awq4t_k$(title, cover, mediaId, styles, area, staff, badge, watchButton, rating, desc, badgesV2, stylesV2, purchaseButton, styleLabel, cardLayout); + } + toString() { + return 'KSearchOgvChannelCard(title=' + this.title + ', cover=' + this.cover + ', mediaId=' + this.mediaId.toString() + ', styles=' + this.styles + ', area=' + this.area + ', staff=' + this.staff + ', badge=' + this.badge + ', watchButton=' + this.watchButton + ', rating=' + this.rating + ', desc=' + this.desc + ', badgesV2=' + this.badgesV2 + ', stylesV2=' + this.stylesV2 + ', purchaseButton=' + this.purchaseButton + ', styleLabel=' + this.styleLabel + ', cardLayout=' + this.cardLayout + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.cover) | 0; + result = imul(result, 31) + this.mediaId.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.styles) | 0; + result = imul(result, 31) + getStringHashCode(this.area) | 0; + result = imul(result, 31) + getStringHashCode(this.staff) | 0; + result = imul(result, 31) + getStringHashCode(this.badge) | 0; + result = imul(result, 31) + (this.watchButton == null ? 0 : this.watchButton.hashCode()) | 0; + result = imul(result, 31) + getNumberHashCode(this.rating) | 0; + result = imul(result, 31) + getStringHashCode(this.desc) | 0; + result = imul(result, 31) + hashCode(this.badgesV2) | 0; + result = imul(result, 31) + getStringHashCode(this.stylesV2) | 0; + result = imul(result, 31) + (this.purchaseButton == null ? 0 : this.purchaseButton.hashCode()) | 0; + result = imul(result, 31) + (this.styleLabel == null ? 0 : this.styleLabel.hashCode()) | 0; + result = imul(result, 31) + (this.cardLayout == null ? 0 : this.cardLayout.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSearchOgvChannelCard)) + return false; + var tmp0_other_with_cast = other instanceof KSearchOgvChannelCard ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + if (!this.mediaId.equals(tmp0_other_with_cast.mediaId)) + return false; + if (!(this.styles === tmp0_other_with_cast.styles)) + return false; + if (!(this.area === tmp0_other_with_cast.area)) + return false; + if (!(this.staff === tmp0_other_with_cast.staff)) + return false; + if (!(this.badge === tmp0_other_with_cast.badge)) + return false; + if (!equals(this.watchButton, tmp0_other_with_cast.watchButton)) + return false; + if (!equals(this.rating, tmp0_other_with_cast.rating)) + return false; + if (!(this.desc === tmp0_other_with_cast.desc)) + return false; + if (!equals(this.badgesV2, tmp0_other_with_cast.badgesV2)) + return false; + if (!(this.stylesV2 === tmp0_other_with_cast.stylesV2)) + return false; + if (!equals(this.purchaseButton, tmp0_other_with_cast.purchaseButton)) + return false; + if (!equals(this.styleLabel, tmp0_other_with_cast.styleLabel)) + return false; + if (!equals(this.cardLayout, tmp0_other_with_cast.cardLayout)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KSearchOgvChannelCard_f14j6l_k$(seen1, title, cover, mediaId, styles, area, staff, badge, watchButton, rating, desc, badgesV2, stylesV2, purchaseButton, styleLabel, cardLayout, serializationConstructorMarker) { + Companion_getInstance_552(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_539().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.cover = ''; + else + $this.cover = cover; + if (0 === (seen1 & 4)) + $this.mediaId = new Long(0, 0); + else + $this.mediaId = mediaId; + if (0 === (seen1 & 8)) + $this.styles = ''; + else + $this.styles = styles; + if (0 === (seen1 & 16)) + $this.area = ''; + else + $this.area = area; + if (0 === (seen1 & 32)) + $this.staff = ''; + else + $this.staff = staff; + if (0 === (seen1 & 64)) + $this.badge = ''; + else + $this.badge = badge; + if (0 === (seen1 & 128)) + $this.watchButton = null; + else + $this.watchButton = watchButton; + if (0 === (seen1 & 256)) + $this.rating = 0.0; + else + $this.rating = rating; + if (0 === (seen1 & 512)) + $this.desc = ''; + else + $this.desc = desc; + if (0 === (seen1 & 1024)) + $this.badgesV2 = emptyList(); + else + $this.badgesV2 = badgesV2; + if (0 === (seen1 & 2048)) + $this.stylesV2 = ''; + else + $this.stylesV2 = stylesV2; + if (0 === (seen1 & 4096)) + $this.purchaseButton = null; + else + $this.purchaseButton = purchaseButton; + if (0 === (seen1 & 8192)) + $this.styleLabel = null; + else + $this.styleLabel = styleLabel; + if (0 === (seen1 & 16384)) + $this.cardLayout = null; + else + $this.cardLayout = cardLayout; + return $this; + } + } + class Companion_553 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.SearchOgvCard'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_540(); + } + } + class $serializer_540 { + constructor() { + $serializer_instance_540 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KSearchOgvCard', this, 7); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('subTitle1', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('subTitle2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('bgCover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('specialBgColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('coverUri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp11_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + } else + while (tmp1_flag) { + tmp2_index = tmp11_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp11_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSearchOgvCard.new_com_bapis_bilibili_polymer_app_search_v1_KSearchOgvCard_n9k0ce_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, null); + } + serialize_24icwn_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.subTitle1 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.subTitle1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.subTitle2 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.subTitle2); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.cover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.bgCover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.bgCover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.specialBgColor === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.specialBgColor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.coverUri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.coverUri); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_24icwn_k$(encoder, value instanceof KSearchOgvCard ? value : THROW_CCE()); + } + } + class KSearchOgvCard { + constructor(title, subTitle1, subTitle2, cover, bgCover, specialBgColor, coverUri) { + Companion_instance_553; + title = title === VOID ? '' : title; + subTitle1 = subTitle1 === VOID ? '' : subTitle1; + subTitle2 = subTitle2 === VOID ? '' : subTitle2; + cover = cover === VOID ? '' : cover; + bgCover = bgCover === VOID ? '' : bgCover; + specialBgColor = specialBgColor === VOID ? '' : specialBgColor; + coverUri = coverUri === VOID ? '' : coverUri; + this.title = title; + this.subTitle1 = subTitle1; + this.subTitle2 = subTitle2; + this.cover = cover; + this.bgCover = bgCover; + this.specialBgColor = specialBgColor; + this.coverUri = coverUri; + } + get_title_iz32un_k$() { + return this.title; + } + get_subTitle1_2fzhcg_k$() { + return this.subTitle1; + } + get_subTitle2_2fzhch_k$() { + return this.subTitle2; + } + get_cover_ipug0e_k$() { + return this.cover; + } + get_bgCover_24epo7_k$() { + return this.bgCover; + } + get_specialBgColor_v0hlim_k$() { + return this.specialBgColor; + } + get_coverUri_xeqhha_k$() { + return this.coverUri; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.subTitle1; + } + component3_7eebsa_k$() { + return this.subTitle2; + } + component4_7eebs9_k$() { + return this.cover; + } + component5_7eebs8_k$() { + return this.bgCover; + } + component6_7eebs7_k$() { + return this.specialBgColor; + } + component7_7eebs6_k$() { + return this.coverUri; + } + copy_ytms63_k$(title, subTitle1, subTitle2, cover, bgCover, specialBgColor, coverUri) { + return new KSearchOgvCard(title, subTitle1, subTitle2, cover, bgCover, specialBgColor, coverUri); + } + copy(title, subTitle1, subTitle2, cover, bgCover, specialBgColor, coverUri, $super) { + title = title === VOID ? this.title : title; + subTitle1 = subTitle1 === VOID ? this.subTitle1 : subTitle1; + subTitle2 = subTitle2 === VOID ? this.subTitle2 : subTitle2; + cover = cover === VOID ? this.cover : cover; + bgCover = bgCover === VOID ? this.bgCover : bgCover; + specialBgColor = specialBgColor === VOID ? this.specialBgColor : specialBgColor; + coverUri = coverUri === VOID ? this.coverUri : coverUri; + return this.copy_ytms63_k$(title, subTitle1, subTitle2, cover, bgCover, specialBgColor, coverUri); + } + toString() { + return 'KSearchOgvCard(title=' + this.title + ', subTitle1=' + this.subTitle1 + ', subTitle2=' + this.subTitle2 + ', cover=' + this.cover + ', bgCover=' + this.bgCover + ', specialBgColor=' + this.specialBgColor + ', coverUri=' + this.coverUri + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.subTitle1) | 0; + result = imul(result, 31) + getStringHashCode(this.subTitle2) | 0; + result = imul(result, 31) + getStringHashCode(this.cover) | 0; + result = imul(result, 31) + getStringHashCode(this.bgCover) | 0; + result = imul(result, 31) + getStringHashCode(this.specialBgColor) | 0; + result = imul(result, 31) + getStringHashCode(this.coverUri) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSearchOgvCard)) + return false; + var tmp0_other_with_cast = other instanceof KSearchOgvCard ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.subTitle1 === tmp0_other_with_cast.subTitle1)) + return false; + if (!(this.subTitle2 === tmp0_other_with_cast.subTitle2)) + return false; + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + if (!(this.bgCover === tmp0_other_with_cast.bgCover)) + return false; + if (!(this.specialBgColor === tmp0_other_with_cast.specialBgColor)) + return false; + if (!(this.coverUri === tmp0_other_with_cast.coverUri)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KSearchOgvCard_n9k0ce_k$(seen1, title, subTitle1, subTitle2, cover, bgCover, specialBgColor, coverUri, serializationConstructorMarker) { + Companion_instance_553; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_540().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.subTitle1 = ''; + else + $this.subTitle1 = subTitle1; + if (0 === (seen1 & 4)) + $this.subTitle2 = ''; + else + $this.subTitle2 = subTitle2; + if (0 === (seen1 & 8)) + $this.cover = ''; + else + $this.cover = cover; + if (0 === (seen1 & 16)) + $this.bgCover = ''; + else + $this.bgCover = bgCover; + if (0 === (seen1 & 32)) + $this.specialBgColor = ''; + else + $this.specialBgColor = specialBgColor; + if (0 === (seen1 & 64)) + $this.coverUri = ''; + else + $this.coverUri = coverUri; + return $this; + } + } + class Companion_554 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.RecommendWord'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_541(); + } + } + class $serializer_541 { + constructor() { + $serializer_instance_541 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KRecommendWord', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('param', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('fromSource', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KRecommendWord_0.new_com_bapis_bilibili_polymer_app_search_v1_KRecommendWord_lzp7w3_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_zd9ky1_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.param === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.param); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.type === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.type); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.fromSource === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.fromSource); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_zd9ky1_k$(encoder, value instanceof KRecommendWord_0 ? value : THROW_CCE()); + } + } + class KRecommendWord_0 { + constructor(param, type, title, fromSource) { + Companion_instance_554; + param = param === VOID ? '' : param; + type = type === VOID ? '' : type; + title = title === VOID ? '' : title; + fromSource = fromSource === VOID ? '' : fromSource; + this.param = param; + this.type = type; + this.title = title; + this.fromSource = fromSource; + } + get_param_iwqquc_k$() { + return this.param; + } + get_type_wovaf7_k$() { + return this.type; + } + get_title_iz32un_k$() { + return this.title; + } + get_fromSource_ffvi7i_k$() { + return this.fromSource; + } + component1_7eebsc_k$() { + return this.param; + } + component2_7eebsb_k$() { + return this.type; + } + component3_7eebsa_k$() { + return this.title; + } + component4_7eebs9_k$() { + return this.fromSource; + } + copy_hmmiyd_k$(param, type, title, fromSource) { + return new KRecommendWord_0(param, type, title, fromSource); + } + copy(param, type, title, fromSource, $super) { + param = param === VOID ? this.param : param; + type = type === VOID ? this.type : type; + title = title === VOID ? this.title : title; + fromSource = fromSource === VOID ? this.fromSource : fromSource; + return this.copy_hmmiyd_k$(param, type, title, fromSource); + } + toString() { + return 'KRecommendWord(param=' + this.param + ', type=' + this.type + ', title=' + this.title + ', fromSource=' + this.fromSource + ')'; + } + hashCode() { + var result = getStringHashCode(this.param); + result = imul(result, 31) + getStringHashCode(this.type) | 0; + result = imul(result, 31) + getStringHashCode(this.title) | 0; + result = imul(result, 31) + getStringHashCode(this.fromSource) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KRecommendWord_0)) + return false; + var tmp0_other_with_cast = other instanceof KRecommendWord_0 ? other : THROW_CCE(); + if (!(this.param === tmp0_other_with_cast.param)) + return false; + if (!(this.type === tmp0_other_with_cast.type)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.fromSource === tmp0_other_with_cast.fromSource)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KRecommendWord_lzp7w3_k$(seen1, param, type, title, fromSource, serializationConstructorMarker) { + Companion_instance_554; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_541().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.param = ''; + else + $this.param = param; + if (0 === (seen1 & 2)) + $this.type = ''; + else + $this.type = type; + if (0 === (seen1 & 4)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 8)) + $this.fromSource = ''; + else + $this.fromSource = fromSource; + return $this; + } + } + class Companion_555 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.EasterEgg'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_542(); + } + } + class $serializer_542 { + constructor() { + $serializer_instance_542 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KEasterEgg', this, 12); + tmp0_serialDesc.addElement_5pzumi_k$('id', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('showCount', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('url', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('closeCount', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('maskTransparency', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('maskColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('picType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('showTime', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('sourceUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('sourceMd5', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('sourceSize', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = 0; + var tmp6_local2 = 0; + var tmp7_local3 = null; + var tmp8_local4 = 0; + var tmp9_local5 = 0; + var tmp10_local6 = null; + var tmp11_local7 = 0; + var tmp12_local8 = 0; + var tmp13_local9 = null; + var tmp14_local10 = null; + var tmp15_local11 = 0; + var tmp16_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp16_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + } else + while (tmp1_flag) { + tmp2_index = tmp16_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp16_input.endStructure_1xqz0n_k$(tmp0_desc); + return KEasterEgg.new_com_bapis_bilibili_polymer_app_search_v1_KEasterEgg_u8liie_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, null); + } + serialize_szu0bw_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.id === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.id); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.showCount === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.showCount); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.type === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.type); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.url === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.url); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.closeCount === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 4, value.closeCount); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.maskTransparency === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 5, value.maskTransparency); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.maskColor === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.maskColor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.picType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 7, value.picType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.showTime === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 8, value.showTime); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.sourceUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 9, value.sourceUrl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.sourceMd5 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 10, value.sourceMd5); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.sourceSize === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 11, value.sourceSize); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_szu0bw_k$(encoder, value instanceof KEasterEgg ? value : THROW_CCE()); + } + } + class KEasterEgg { + constructor(id, showCount, type, url, closeCount, maskTransparency, maskColor, picType, showTime, sourceUrl, sourceMd5, sourceSize) { + Companion_instance_555; + id = id === VOID ? 0 : id; + showCount = showCount === VOID ? 0 : showCount; + type = type === VOID ? 0 : type; + url = url === VOID ? '' : url; + closeCount = closeCount === VOID ? 0 : closeCount; + maskTransparency = maskTransparency === VOID ? 0 : maskTransparency; + maskColor = maskColor === VOID ? '' : maskColor; + picType = picType === VOID ? 0 : picType; + showTime = showTime === VOID ? 0 : showTime; + sourceUrl = sourceUrl === VOID ? '' : sourceUrl; + sourceMd5 = sourceMd5 === VOID ? '' : sourceMd5; + sourceSize = sourceSize === VOID ? 0 : sourceSize; + this.id = id; + this.showCount = showCount; + this.type = type; + this.url = url; + this.closeCount = closeCount; + this.maskTransparency = maskTransparency; + this.maskColor = maskColor; + this.picType = picType; + this.showTime = showTime; + this.sourceUrl = sourceUrl; + this.sourceMd5 = sourceMd5; + this.sourceSize = sourceSize; + } + get_id_kntnx8_k$() { + return this.id; + } + get_showCount_ne5ac7_k$() { + return this.showCount; + } + get_type_wovaf7_k$() { + return this.type; + } + get_url_18iuii_k$() { + return this.url; + } + get_closeCount_gbzibk_k$() { + return this.closeCount; + } + get_maskTransparency_bqyzhp_k$() { + return this.maskTransparency; + } + get_maskColor_7870ha_k$() { + return this.maskColor; + } + get_picType_8azev9_k$() { + return this.picType; + } + get_showTime_xmg01f_k$() { + return this.showTime; + } + get_sourceUrl_jko7yt_k$() { + return this.sourceUrl; + } + get_sourceMd5_jkoe9y_k$() { + return this.sourceMd5; + } + get_sourceSize_wh46kl_k$() { + return this.sourceSize; + } + component1_7eebsc_k$() { + return this.id; + } + component2_7eebsb_k$() { + return this.showCount; + } + component3_7eebsa_k$() { + return this.type; + } + component4_7eebs9_k$() { + return this.url; + } + component5_7eebs8_k$() { + return this.closeCount; + } + component6_7eebs7_k$() { + return this.maskTransparency; + } + component7_7eebs6_k$() { + return this.maskColor; + } + component8_7eebs5_k$() { + return this.picType; + } + component9_7eebs4_k$() { + return this.showTime; + } + component10_gazzfo_k$() { + return this.sourceUrl; + } + component11_gazzfn_k$() { + return this.sourceMd5; + } + component12_gazzfm_k$() { + return this.sourceSize; + } + copy_2r3763_k$(id, showCount, type, url, closeCount, maskTransparency, maskColor, picType, showTime, sourceUrl, sourceMd5, sourceSize) { + return new KEasterEgg(id, showCount, type, url, closeCount, maskTransparency, maskColor, picType, showTime, sourceUrl, sourceMd5, sourceSize); + } + copy(id, showCount, type, url, closeCount, maskTransparency, maskColor, picType, showTime, sourceUrl, sourceMd5, sourceSize, $super) { + id = id === VOID ? this.id : id; + showCount = showCount === VOID ? this.showCount : showCount; + type = type === VOID ? this.type : type; + url = url === VOID ? this.url : url; + closeCount = closeCount === VOID ? this.closeCount : closeCount; + maskTransparency = maskTransparency === VOID ? this.maskTransparency : maskTransparency; + maskColor = maskColor === VOID ? this.maskColor : maskColor; + picType = picType === VOID ? this.picType : picType; + showTime = showTime === VOID ? this.showTime : showTime; + sourceUrl = sourceUrl === VOID ? this.sourceUrl : sourceUrl; + sourceMd5 = sourceMd5 === VOID ? this.sourceMd5 : sourceMd5; + sourceSize = sourceSize === VOID ? this.sourceSize : sourceSize; + return this.copy_2r3763_k$(id, showCount, type, url, closeCount, maskTransparency, maskColor, picType, showTime, sourceUrl, sourceMd5, sourceSize); + } + toString() { + return 'KEasterEgg(id=' + this.id + ', showCount=' + this.showCount + ', type=' + this.type + ', url=' + this.url + ', closeCount=' + this.closeCount + ', maskTransparency=' + this.maskTransparency + ', maskColor=' + this.maskColor + ', picType=' + this.picType + ', showTime=' + this.showTime + ', sourceUrl=' + this.sourceUrl + ', sourceMd5=' + this.sourceMd5 + ', sourceSize=' + this.sourceSize + ')'; + } + hashCode() { + var result = this.id; + result = imul(result, 31) + this.showCount | 0; + result = imul(result, 31) + this.type | 0; + result = imul(result, 31) + getStringHashCode(this.url) | 0; + result = imul(result, 31) + this.closeCount | 0; + result = imul(result, 31) + this.maskTransparency | 0; + result = imul(result, 31) + getStringHashCode(this.maskColor) | 0; + result = imul(result, 31) + this.picType | 0; + result = imul(result, 31) + this.showTime | 0; + result = imul(result, 31) + getStringHashCode(this.sourceUrl) | 0; + result = imul(result, 31) + getStringHashCode(this.sourceMd5) | 0; + result = imul(result, 31) + this.sourceSize | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KEasterEgg)) + return false; + var tmp0_other_with_cast = other instanceof KEasterEgg ? other : THROW_CCE(); + if (!(this.id === tmp0_other_with_cast.id)) + return false; + if (!(this.showCount === tmp0_other_with_cast.showCount)) + return false; + if (!(this.type === tmp0_other_with_cast.type)) + return false; + if (!(this.url === tmp0_other_with_cast.url)) + return false; + if (!(this.closeCount === tmp0_other_with_cast.closeCount)) + return false; + if (!(this.maskTransparency === tmp0_other_with_cast.maskTransparency)) + return false; + if (!(this.maskColor === tmp0_other_with_cast.maskColor)) + return false; + if (!(this.picType === tmp0_other_with_cast.picType)) + return false; + if (!(this.showTime === tmp0_other_with_cast.showTime)) + return false; + if (!(this.sourceUrl === tmp0_other_with_cast.sourceUrl)) + return false; + if (!(this.sourceMd5 === tmp0_other_with_cast.sourceMd5)) + return false; + if (!(this.sourceSize === tmp0_other_with_cast.sourceSize)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KEasterEgg_u8liie_k$(seen1, id, showCount, type, url, closeCount, maskTransparency, maskColor, picType, showTime, sourceUrl, sourceMd5, sourceSize, serializationConstructorMarker) { + Companion_instance_555; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_542().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.id = 0; + else + $this.id = id; + if (0 === (seen1 & 2)) + $this.showCount = 0; + else + $this.showCount = showCount; + if (0 === (seen1 & 4)) + $this.type = 0; + else + $this.type = type; + if (0 === (seen1 & 8)) + $this.url = ''; + else + $this.url = url; + if (0 === (seen1 & 16)) + $this.closeCount = 0; + else + $this.closeCount = closeCount; + if (0 === (seen1 & 32)) + $this.maskTransparency = 0; + else + $this.maskTransparency = maskTransparency; + if (0 === (seen1 & 64)) + $this.maskColor = ''; + else + $this.maskColor = maskColor; + if (0 === (seen1 & 128)) + $this.picType = 0; + else + $this.picType = picType; + if (0 === (seen1 & 256)) + $this.showTime = 0; + else + $this.showTime = showTime; + if (0 === (seen1 & 512)) + $this.sourceUrl = ''; + else + $this.sourceUrl = sourceUrl; + if (0 === (seen1 & 1024)) + $this.sourceMd5 = ''; + else + $this.sourceMd5 = sourceMd5; + if (0 === (seen1 & 2048)) + $this.sourceSize = 0; + else + $this.sourceSize = sourceSize; + return $this; + } + } + class Companion_556 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.Nav'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_543(); + } + } + class $serializer_543 { + constructor() { + $serializer_instance_543 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KNav', this, 5); + tmp0_serialDesc.addElement_5pzumi_k$('name', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('total', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('pages', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('showMore', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = 0; + var tmp6_local2 = 0; + var tmp7_local3 = 0; + var tmp8_local4 = 0; + var tmp9_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp9_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + } else + while (tmp1_flag) { + tmp2_index = tmp9_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp9_input.endStructure_1xqz0n_k$(tmp0_desc); + return KNav.new_com_bapis_bilibili_polymer_app_search_v1_KNav_b3rpgr_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); + } + serialize_23p4a4_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.name === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.name); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.total === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.total); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.pages === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.pages); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.type === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 3, value.type); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.showMore === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 4, value.showMore); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_23p4a4_k$(encoder, value instanceof KNav ? value : THROW_CCE()); + } + } + class KNav { + constructor(name, total, pages, type, showMore) { + Companion_instance_556; + name = name === VOID ? '' : name; + total = total === VOID ? 0 : total; + pages = pages === VOID ? 0 : pages; + type = type === VOID ? 0 : type; + showMore = showMore === VOID ? 0 : showMore; + this.name = name; + this.total = total; + this.pages = pages; + this.type = type; + this.showMore = showMore; + } + get_name_woqyms_k$() { + return this.name; + } + get_total_iz6wij_k$() { + return this.total; + } + get_pages_iwqisb_k$() { + return this.pages; + } + get_type_wovaf7_k$() { + return this.type; + } + get_showMore_xmbnp7_k$() { + return this.showMore; + } + component1_7eebsc_k$() { + return this.name; + } + component2_7eebsb_k$() { + return this.total; + } + component3_7eebsa_k$() { + return this.pages; + } + component4_7eebs9_k$() { + return this.type; + } + component5_7eebs8_k$() { + return this.showMore; + } + copy_e1s97f_k$(name, total, pages, type, showMore) { + return new KNav(name, total, pages, type, showMore); + } + copy(name, total, pages, type, showMore, $super) { + name = name === VOID ? this.name : name; + total = total === VOID ? this.total : total; + pages = pages === VOID ? this.pages : pages; + type = type === VOID ? this.type : type; + showMore = showMore === VOID ? this.showMore : showMore; + return this.copy_e1s97f_k$(name, total, pages, type, showMore); + } + toString() { + return 'KNav(name=' + this.name + ', total=' + this.total + ', pages=' + this.pages + ', type=' + this.type + ', showMore=' + this.showMore + ')'; + } + hashCode() { + var result = getStringHashCode(this.name); + result = imul(result, 31) + this.total | 0; + result = imul(result, 31) + this.pages | 0; + result = imul(result, 31) + this.type | 0; + result = imul(result, 31) + this.showMore | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KNav)) + return false; + var tmp0_other_with_cast = other instanceof KNav ? other : THROW_CCE(); + if (!(this.name === tmp0_other_with_cast.name)) + return false; + if (!(this.total === tmp0_other_with_cast.total)) + return false; + if (!(this.pages === tmp0_other_with_cast.pages)) + return false; + if (!(this.type === tmp0_other_with_cast.type)) + return false; + if (!(this.showMore === tmp0_other_with_cast.showMore)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KNav_b3rpgr_k$(seen1, name, total, pages, type, showMore, serializationConstructorMarker) { + Companion_instance_556; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_543().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.name = ''; + else + $this.name = name; + if (0 === (seen1 & 2)) + $this.total = 0; + else + $this.total = total; + if (0 === (seen1 & 4)) + $this.pages = 0; + else + $this.pages = pages; + if (0 === (seen1 & 8)) + $this.type = 0; + else + $this.type = type; + if (0 === (seen1 & 16)) + $this.showMore = 0; + else + $this.showMore = showMore; + return $this; + } + } + class Companion_557 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.Video'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_544(); + } + } + class $serializer_544 { + constructor() { + $serializer_instance_544 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KVideo', this, 7); + tmp0_serialDesc.addElement_5pzumi_k$('bvid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('cid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('shareSubtitle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('isHotLabel', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('page', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('pageCount', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('shortLink', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), BooleanSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = new Long(0, 0); + var tmp6_local2 = null; + var tmp7_local3 = false; + var tmp8_local4 = 0; + var tmp9_local5 = 0; + var tmp10_local6 = null; + var tmp11_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp11_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp11_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + } else + while (tmp1_flag) { + tmp2_index = tmp11_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp11_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp11_input.endStructure_1xqz0n_k$(tmp0_desc); + return KVideo.new_com_bapis_bilibili_polymer_app_search_v1_KVideo_78lmck_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, null); + } + serialize_ptfono_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.bvid === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.bvid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.cid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.cid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.shareSubtitle === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.shareSubtitle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.isHotLabel === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 3, value.isHotLabel); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.page === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 4, value.page); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.pageCount === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 5, value.pageCount); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.shortLink === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.shortLink); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_ptfono_k$(encoder, value instanceof KVideo ? value : THROW_CCE()); + } + } + class KVideo { + constructor(bvid, cid, shareSubtitle, isHotLabel, page, pageCount, shortLink) { + Companion_instance_557; + bvid = bvid === VOID ? '' : bvid; + cid = cid === VOID ? new Long(0, 0) : cid; + shareSubtitle = shareSubtitle === VOID ? '' : shareSubtitle; + isHotLabel = isHotLabel === VOID ? false : isHotLabel; + page = page === VOID ? 0 : page; + pageCount = pageCount === VOID ? 0 : pageCount; + shortLink = shortLink === VOID ? '' : shortLink; + this.bvid = bvid; + this.cid = cid; + this.shareSubtitle = shareSubtitle; + this.isHotLabel = isHotLabel; + this.page = page; + this.pageCount = pageCount; + this.shortLink = shortLink; + } + get_bvid_wojq9k_k$() { + return this.bvid; + } + get_cid_18j82z_k$() { + return this.cid; + } + get_shareSubtitle_yf1tri_k$() { + return this.shareSubtitle; + } + get_isHotLabel_wmw6ey_k$() { + return this.isHotLabel; + } + get_page_wos8go_k$() { + return this.page; + } + get_pageCount_mpa7mf_k$() { + return this.pageCount; + } + get_shortLink_p122oj_k$() { + return this.shortLink; + } + component1_7eebsc_k$() { + return this.bvid; + } + component2_7eebsb_k$() { + return this.cid; + } + component3_7eebsa_k$() { + return this.shareSubtitle; + } + component4_7eebs9_k$() { + return this.isHotLabel; + } + component5_7eebs8_k$() { + return this.page; + } + component6_7eebs7_k$() { + return this.pageCount; + } + component7_7eebs6_k$() { + return this.shortLink; + } + copy_d72wus_k$(bvid, cid, shareSubtitle, isHotLabel, page, pageCount, shortLink) { + return new KVideo(bvid, cid, shareSubtitle, isHotLabel, page, pageCount, shortLink); + } + copy(bvid, cid, shareSubtitle, isHotLabel, page, pageCount, shortLink, $super) { + bvid = bvid === VOID ? this.bvid : bvid; + cid = cid === VOID ? this.cid : cid; + shareSubtitle = shareSubtitle === VOID ? this.shareSubtitle : shareSubtitle; + isHotLabel = isHotLabel === VOID ? this.isHotLabel : isHotLabel; + page = page === VOID ? this.page : page; + pageCount = pageCount === VOID ? this.pageCount : pageCount; + shortLink = shortLink === VOID ? this.shortLink : shortLink; + return this.copy_d72wus_k$(bvid, cid, shareSubtitle, isHotLabel, page, pageCount, shortLink); + } + toString() { + return 'KVideo(bvid=' + this.bvid + ', cid=' + this.cid.toString() + ', shareSubtitle=' + this.shareSubtitle + ', isHotLabel=' + this.isHotLabel + ', page=' + this.page + ', pageCount=' + this.pageCount + ', shortLink=' + this.shortLink + ')'; + } + hashCode() { + var result = getStringHashCode(this.bvid); + result = imul(result, 31) + this.cid.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.shareSubtitle) | 0; + result = imul(result, 31) + getBooleanHashCode(this.isHotLabel) | 0; + result = imul(result, 31) + this.page | 0; + result = imul(result, 31) + this.pageCount | 0; + result = imul(result, 31) + getStringHashCode(this.shortLink) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KVideo)) + return false; + var tmp0_other_with_cast = other instanceof KVideo ? other : THROW_CCE(); + if (!(this.bvid === tmp0_other_with_cast.bvid)) + return false; + if (!this.cid.equals(tmp0_other_with_cast.cid)) + return false; + if (!(this.shareSubtitle === tmp0_other_with_cast.shareSubtitle)) + return false; + if (!(this.isHotLabel === tmp0_other_with_cast.isHotLabel)) + return false; + if (!(this.page === tmp0_other_with_cast.page)) + return false; + if (!(this.pageCount === tmp0_other_with_cast.pageCount)) + return false; + if (!(this.shortLink === tmp0_other_with_cast.shortLink)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KVideo_78lmck_k$(seen1, bvid, cid, shareSubtitle, isHotLabel, page, pageCount, shortLink, serializationConstructorMarker) { + Companion_instance_557; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_544().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.bvid = ''; + else + $this.bvid = bvid; + if (0 === (seen1 & 2)) + $this.cid = new Long(0, 0); + else + $this.cid = cid; + if (0 === (seen1 & 4)) + $this.shareSubtitle = ''; + else + $this.shareSubtitle = shareSubtitle; + if (0 === (seen1 & 8)) + $this.isHotLabel = false; + else + $this.isHotLabel = isHotLabel; + if (0 === (seen1 & 16)) + $this.page = 0; + else + $this.page = page; + if (0 === (seen1 & 32)) + $this.pageCount = 0; + else + $this.pageCount = pageCount; + if (0 === (seen1 & 64)) + $this.shortLink = ''; + else + $this.shortLink = shortLink; + return $this; + } + } + class Companion_558 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.Navigation'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_545(); + } + } + class $serializer_545 { + constructor() { + $serializer_instance_545 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KNavigation', this, 6); + tmp0_serialDesc.addElement_5pzumi_k$('id', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('children', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('inlineChildren', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('uri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('button', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), new ArrayListSerializer($serializer_getInstance_545()), new ArrayListSerializer($serializer_getInstance_545()), StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_546())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp10_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp10_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, new ArrayListSerializer($serializer_getInstance_545()), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp10_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, new ArrayListSerializer($serializer_getInstance_545()), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_546(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + } else + while (tmp1_flag) { + tmp2_index = tmp10_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp10_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, new ArrayListSerializer($serializer_getInstance_545()), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp10_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, new ArrayListSerializer($serializer_getInstance_545()), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_546(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp10_input.endStructure_1xqz0n_k$(tmp0_desc); + return KNavigation.new_com_bapis_bilibili_polymer_app_search_v1_KNavigation_qtsp9q_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); + } + serialize_tnkwil_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.id.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.id); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !equals(value.children, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 1, new ArrayListSerializer($serializer_getInstance_545()), value.children); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !equals(value.inlineChildren, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 2, new ArrayListSerializer($serializer_getInstance_545()), value.inlineChildren); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.uri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.uri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.button == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 5, $serializer_getInstance_546(), value.button); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_tnkwil_k$(encoder, value instanceof KNavigation ? value : THROW_CCE()); + } + } + class KNavigation { + constructor(id, children, inlineChildren, title, uri, button) { + Companion_instance_558; + id = id === VOID ? new Long(0, 0) : id; + children = children === VOID ? emptyList() : children; + inlineChildren = inlineChildren === VOID ? emptyList() : inlineChildren; + title = title === VOID ? '' : title; + uri = uri === VOID ? '' : uri; + button = button === VOID ? null : button; + this.id = id; + this.children = children; + this.inlineChildren = inlineChildren; + this.title = title; + this.uri = uri; + this.button = button; + } + get_id_kntnx8_k$() { + return this.id; + } + get_children_4cwbp4_k$() { + return this.children; + } + get_inlineChildren_fxmzwf_k$() { + return this.inlineChildren; + } + get_title_iz32un_k$() { + return this.title; + } + get_uri_18iuil_k$() { + return this.uri; + } + get_button_bmjiuz_k$() { + return this.button; + } + component1_7eebsc_k$() { + return this.id; + } + component2_7eebsb_k$() { + return this.children; + } + component3_7eebsa_k$() { + return this.inlineChildren; + } + component4_7eebs9_k$() { + return this.title; + } + component5_7eebs8_k$() { + return this.uri; + } + component6_7eebs7_k$() { + return this.button; + } + copy_q2q36o_k$(id, children, inlineChildren, title, uri, button) { + return new KNavigation(id, children, inlineChildren, title, uri, button); + } + copy(id, children, inlineChildren, title, uri, button, $super) { + id = id === VOID ? this.id : id; + children = children === VOID ? this.children : children; + inlineChildren = inlineChildren === VOID ? this.inlineChildren : inlineChildren; + title = title === VOID ? this.title : title; + uri = uri === VOID ? this.uri : uri; + button = button === VOID ? this.button : button; + return this.copy_q2q36o_k$(id, children, inlineChildren, title, uri, button); + } + toString() { + return 'KNavigation(id=' + this.id.toString() + ', children=' + this.children + ', inlineChildren=' + this.inlineChildren + ', title=' + this.title + ', uri=' + this.uri + ', button=' + this.button + ')'; + } + hashCode() { + var result = this.id.hashCode(); + result = imul(result, 31) + hashCode(this.children) | 0; + result = imul(result, 31) + hashCode(this.inlineChildren) | 0; + result = imul(result, 31) + getStringHashCode(this.title) | 0; + result = imul(result, 31) + getStringHashCode(this.uri) | 0; + result = imul(result, 31) + (this.button == null ? 0 : this.button.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KNavigation)) + return false; + var tmp0_other_with_cast = other instanceof KNavigation ? other : THROW_CCE(); + if (!this.id.equals(tmp0_other_with_cast.id)) + return false; + if (!equals(this.children, tmp0_other_with_cast.children)) + return false; + if (!equals(this.inlineChildren, tmp0_other_with_cast.inlineChildren)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.uri === tmp0_other_with_cast.uri)) + return false; + if (!equals(this.button, tmp0_other_with_cast.button)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KNavigation_qtsp9q_k$(seen1, id, children, inlineChildren, title, uri, button, serializationConstructorMarker) { + Companion_instance_558; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_545().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.id = new Long(0, 0); + else + $this.id = id; + if (0 === (seen1 & 2)) + $this.children = emptyList(); + else + $this.children = children; + if (0 === (seen1 & 4)) + $this.inlineChildren = emptyList(); + else + $this.inlineChildren = inlineChildren; + if (0 === (seen1 & 8)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 16)) + $this.uri = ''; + else + $this.uri = uri; + if (0 === (seen1 & 32)) + $this.button = null; + else + $this.button = button; + return $this; + } + } + class Companion_559 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.NavigationButton'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_546(); + } + } + class $serializer_546 { + constructor() { + $serializer_instance_546 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KNavigationButton', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('text', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('uri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KNavigationButton.new_com_bapis_bilibili_polymer_app_search_v1_KNavigationButton_bwhwdp_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_w0sekx_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.type.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.type); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.text === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.text); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.uri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.uri); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_w0sekx_k$(encoder, value instanceof KNavigationButton ? value : THROW_CCE()); + } + } + class KNavigationButton { + constructor(type, text, uri) { + Companion_instance_559; + type = type === VOID ? new Long(0, 0) : type; + text = text === VOID ? '' : text; + uri = uri === VOID ? '' : uri; + this.type = type; + this.text = text; + this.uri = uri; + } + get_type_wovaf7_k$() { + return this.type; + } + get_text_wouvsm_k$() { + return this.text; + } + get_uri_18iuil_k$() { + return this.uri; + } + component1_7eebsc_k$() { + return this.type; + } + component2_7eebsb_k$() { + return this.text; + } + component3_7eebsa_k$() { + return this.uri; + } + copy_ijggmr_k$(type, text, uri) { + return new KNavigationButton(type, text, uri); + } + copy(type, text, uri, $super) { + type = type === VOID ? this.type : type; + text = text === VOID ? this.text : text; + uri = uri === VOID ? this.uri : uri; + return this.copy_ijggmr_k$(type, text, uri); + } + toString() { + return 'KNavigationButton(type=' + this.type.toString() + ', text=' + this.text + ', uri=' + this.uri + ')'; + } + hashCode() { + var result = this.type.hashCode(); + result = imul(result, 31) + getStringHashCode(this.text) | 0; + result = imul(result, 31) + getStringHashCode(this.uri) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KNavigationButton)) + return false; + var tmp0_other_with_cast = other instanceof KNavigationButton ? other : THROW_CCE(); + if (!this.type.equals(tmp0_other_with_cast.type)) + return false; + if (!(this.text === tmp0_other_with_cast.text)) + return false; + if (!(this.uri === tmp0_other_with_cast.uri)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KNavigationButton_bwhwdp_k$(seen1, type, text, uri, serializationConstructorMarker) { + Companion_instance_559; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_546().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.type = new Long(0, 0); + else + $this.type = type; + if (0 === (seen1 & 2)) + $this.text = ''; + else + $this.text = text; + if (0 === (seen1 & 4)) + $this.uri = ''; + else + $this.uri = uri; + return $this; + } + } + class Companion_560 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.PediaCover'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_547(); + } + } + class $serializer_547 { + constructor() { + $serializer_instance_547 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KPediaCover', this, 5); + tmp0_serialDesc.addElement_5pzumi_k$('coverType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('coverSunUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('coverNightUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('coverWidth', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('coverHeight', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = 0; + var tmp8_local4 = 0; + var tmp9_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp9_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + } else + while (tmp1_flag) { + tmp2_index = tmp9_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp9_input.endStructure_1xqz0n_k$(tmp0_desc); + return KPediaCover.new_com_bapis_bilibili_polymer_app_search_v1_KPediaCover_nsdjr1_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); + } + serialize_d9tu1z_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.coverType.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.coverType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.coverSunUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.coverSunUrl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.coverNightUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.coverNightUrl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.coverWidth === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 3, value.coverWidth); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.coverHeight === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 4, value.coverHeight); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_d9tu1z_k$(encoder, value instanceof KPediaCover ? value : THROW_CCE()); + } + } + class KPediaCover { + constructor(coverType, coverSunUrl, coverNightUrl, coverWidth, coverHeight) { + Companion_instance_560; + coverType = coverType === VOID ? new Long(0, 0) : coverType; + coverSunUrl = coverSunUrl === VOID ? '' : coverSunUrl; + coverNightUrl = coverNightUrl === VOID ? '' : coverNightUrl; + coverWidth = coverWidth === VOID ? 0 : coverWidth; + coverHeight = coverHeight === VOID ? 0 : coverHeight; + this.coverType = coverType; + this.coverSunUrl = coverSunUrl; + this.coverNightUrl = coverNightUrl; + this.coverWidth = coverWidth; + this.coverHeight = coverHeight; + } + get_coverType_trw9aw_k$() { + return this.coverType; + } + get_coverSunUrl_b8zgkx_k$() { + return this.coverSunUrl; + } + get_coverNightUrl_ozsnq3_k$() { + return this.coverNightUrl; + } + get_coverWidth_f1mu0_k$() { + return this.coverWidth; + } + get_coverHeight_5sm2xh_k$() { + return this.coverHeight; + } + component1_7eebsc_k$() { + return this.coverType; + } + component2_7eebsb_k$() { + return this.coverSunUrl; + } + component3_7eebsa_k$() { + return this.coverNightUrl; + } + component4_7eebs9_k$() { + return this.coverWidth; + } + component5_7eebs8_k$() { + return this.coverHeight; + } + copy_sdmw3x_k$(coverType, coverSunUrl, coverNightUrl, coverWidth, coverHeight) { + return new KPediaCover(coverType, coverSunUrl, coverNightUrl, coverWidth, coverHeight); + } + copy(coverType, coverSunUrl, coverNightUrl, coverWidth, coverHeight, $super) { + coverType = coverType === VOID ? this.coverType : coverType; + coverSunUrl = coverSunUrl === VOID ? this.coverSunUrl : coverSunUrl; + coverNightUrl = coverNightUrl === VOID ? this.coverNightUrl : coverNightUrl; + coverWidth = coverWidth === VOID ? this.coverWidth : coverWidth; + coverHeight = coverHeight === VOID ? this.coverHeight : coverHeight; + return this.copy_sdmw3x_k$(coverType, coverSunUrl, coverNightUrl, coverWidth, coverHeight); + } + toString() { + return 'KPediaCover(coverType=' + this.coverType.toString() + ', coverSunUrl=' + this.coverSunUrl + ', coverNightUrl=' + this.coverNightUrl + ', coverWidth=' + this.coverWidth + ', coverHeight=' + this.coverHeight + ')'; + } + hashCode() { + var result = this.coverType.hashCode(); + result = imul(result, 31) + getStringHashCode(this.coverSunUrl) | 0; + result = imul(result, 31) + getStringHashCode(this.coverNightUrl) | 0; + result = imul(result, 31) + this.coverWidth | 0; + result = imul(result, 31) + this.coverHeight | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KPediaCover)) + return false; + var tmp0_other_with_cast = other instanceof KPediaCover ? other : THROW_CCE(); + if (!this.coverType.equals(tmp0_other_with_cast.coverType)) + return false; + if (!(this.coverSunUrl === tmp0_other_with_cast.coverSunUrl)) + return false; + if (!(this.coverNightUrl === tmp0_other_with_cast.coverNightUrl)) + return false; + if (!(this.coverWidth === tmp0_other_with_cast.coverWidth)) + return false; + if (!(this.coverHeight === tmp0_other_with_cast.coverHeight)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KPediaCover_nsdjr1_k$(seen1, coverType, coverSunUrl, coverNightUrl, coverWidth, coverHeight, serializationConstructorMarker) { + Companion_instance_560; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_547().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.coverType = new Long(0, 0); + else + $this.coverType = coverType; + if (0 === (seen1 & 2)) + $this.coverSunUrl = ''; + else + $this.coverSunUrl = coverSunUrl; + if (0 === (seen1 & 4)) + $this.coverNightUrl = ''; + else + $this.coverNightUrl = coverNightUrl; + if (0 === (seen1 & 8)) + $this.coverWidth = 0; + else + $this.coverWidth = coverWidth; + if (0 === (seen1 & 16)) + $this.coverHeight = 0; + else + $this.coverHeight = coverHeight; + return $this; + } + } + class Companion_561 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.TabInfo'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_548(); + } + } + class $serializer_548 { + constructor() { + $serializer_instance_548 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KTabInfo', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('tabName', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('tabUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('sort', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = 0; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KTabInfo.new_com_bapis_bilibili_polymer_app_search_v1_KTabInfo_xv7nb8_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_i0iy8k_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.tabName === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.tabName); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.tabUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.tabUrl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.sort === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.sort); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_i0iy8k_k$(encoder, value instanceof KTabInfo ? value : THROW_CCE()); + } + } + class KTabInfo { + constructor(tabName, tabUrl, sort) { + Companion_instance_561; + tabName = tabName === VOID ? '' : tabName; + tabUrl = tabUrl === VOID ? '' : tabUrl; + sort = sort === VOID ? 0 : sort; + this.tabName = tabName; + this.tabUrl = tabUrl; + this.sort = sort; + } + get_tabName_ofjfhl_k$() { + return this.tabName; + } + get_tabUrl_ju0per_k$() { + return this.tabUrl; + } + get_sort_woug2v_k$() { + return this.sort; + } + component1_7eebsc_k$() { + return this.tabName; + } + component2_7eebsb_k$() { + return this.tabUrl; + } + component3_7eebsa_k$() { + return this.sort; + } + copy_spspqb_k$(tabName, tabUrl, sort) { + return new KTabInfo(tabName, tabUrl, sort); + } + copy(tabName, tabUrl, sort, $super) { + tabName = tabName === VOID ? this.tabName : tabName; + tabUrl = tabUrl === VOID ? this.tabUrl : tabUrl; + sort = sort === VOID ? this.sort : sort; + return this.copy_spspqb_k$(tabName, tabUrl, sort); + } + toString() { + return 'KTabInfo(tabName=' + this.tabName + ', tabUrl=' + this.tabUrl + ', sort=' + this.sort + ')'; + } + hashCode() { + var result = getStringHashCode(this.tabName); + result = imul(result, 31) + getStringHashCode(this.tabUrl) | 0; + result = imul(result, 31) + this.sort | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KTabInfo)) + return false; + var tmp0_other_with_cast = other instanceof KTabInfo ? other : THROW_CCE(); + if (!(this.tabName === tmp0_other_with_cast.tabName)) + return false; + if (!(this.tabUrl === tmp0_other_with_cast.tabUrl)) + return false; + if (!(this.sort === tmp0_other_with_cast.sort)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KTabInfo_xv7nb8_k$(seen1, tabName, tabUrl, sort, serializationConstructorMarker) { + Companion_instance_561; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_548().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.tabName = ''; + else + $this.tabName = tabName; + if (0 === (seen1 & 2)) + $this.tabUrl = ''; + else + $this.tabUrl = tabUrl; + if (0 === (seen1 & 4)) + $this.sort = 0; + else + $this.sort = sort; + return $this; + } + } + class Companion_562 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.TopGameUI'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_549(); + } + } + class $serializer_549 { + constructor() { + $serializer_instance_549 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KTopGameUI', this, 6); + tmp0_serialDesc.addElement_5pzumi_k$('backgroundImage', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('coverDefaultColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('gaussianBlurValue', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('maskColorValue', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('maskOpacity', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('moduleColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp10_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + } else + while (tmp1_flag) { + tmp2_index = tmp10_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp10_input.endStructure_1xqz0n_k$(tmp0_desc); + return KTopGameUI.new_com_bapis_bilibili_polymer_app_search_v1_KTopGameUI_az1380_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); + } + serialize_rhk1ik_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.backgroundImage === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.backgroundImage); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.coverDefaultColor === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.coverDefaultColor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.gaussianBlurValue === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.gaussianBlurValue); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.maskColorValue === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.maskColorValue); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.maskOpacity === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.maskOpacity); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.moduleColor === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.moduleColor); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_rhk1ik_k$(encoder, value instanceof KTopGameUI ? value : THROW_CCE()); + } + } + class KTopGameUI { + constructor(backgroundImage, coverDefaultColor, gaussianBlurValue, maskColorValue, maskOpacity, moduleColor) { + Companion_instance_562; + backgroundImage = backgroundImage === VOID ? '' : backgroundImage; + coverDefaultColor = coverDefaultColor === VOID ? '' : coverDefaultColor; + gaussianBlurValue = gaussianBlurValue === VOID ? '' : gaussianBlurValue; + maskColorValue = maskColorValue === VOID ? '' : maskColorValue; + maskOpacity = maskOpacity === VOID ? '' : maskOpacity; + moduleColor = moduleColor === VOID ? '' : moduleColor; + this.backgroundImage = backgroundImage; + this.coverDefaultColor = coverDefaultColor; + this.gaussianBlurValue = gaussianBlurValue; + this.maskColorValue = maskColorValue; + this.maskOpacity = maskOpacity; + this.moduleColor = moduleColor; + } + get_backgroundImage_9x278c_k$() { + return this.backgroundImage; + } + get_coverDefaultColor_fasz0w_k$() { + return this.coverDefaultColor; + } + get_gaussianBlurValue_iq8qoq_k$() { + return this.gaussianBlurValue; + } + get_maskColorValue_wzaxnn_k$() { + return this.maskColorValue; + } + get_maskOpacity_j3hul2_k$() { + return this.maskOpacity; + } + get_moduleColor_6an7de_k$() { + return this.moduleColor; + } + component1_7eebsc_k$() { + return this.backgroundImage; + } + component2_7eebsb_k$() { + return this.coverDefaultColor; + } + component3_7eebsa_k$() { + return this.gaussianBlurValue; + } + component4_7eebs9_k$() { + return this.maskColorValue; + } + component5_7eebs8_k$() { + return this.maskOpacity; + } + component6_7eebs7_k$() { + return this.moduleColor; + } + copy_sq36gl_k$(backgroundImage, coverDefaultColor, gaussianBlurValue, maskColorValue, maskOpacity, moduleColor) { + return new KTopGameUI(backgroundImage, coverDefaultColor, gaussianBlurValue, maskColorValue, maskOpacity, moduleColor); + } + copy(backgroundImage, coverDefaultColor, gaussianBlurValue, maskColorValue, maskOpacity, moduleColor, $super) { + backgroundImage = backgroundImage === VOID ? this.backgroundImage : backgroundImage; + coverDefaultColor = coverDefaultColor === VOID ? this.coverDefaultColor : coverDefaultColor; + gaussianBlurValue = gaussianBlurValue === VOID ? this.gaussianBlurValue : gaussianBlurValue; + maskColorValue = maskColorValue === VOID ? this.maskColorValue : maskColorValue; + maskOpacity = maskOpacity === VOID ? this.maskOpacity : maskOpacity; + moduleColor = moduleColor === VOID ? this.moduleColor : moduleColor; + return this.copy_sq36gl_k$(backgroundImage, coverDefaultColor, gaussianBlurValue, maskColorValue, maskOpacity, moduleColor); + } + toString() { + return 'KTopGameUI(backgroundImage=' + this.backgroundImage + ', coverDefaultColor=' + this.coverDefaultColor + ', gaussianBlurValue=' + this.gaussianBlurValue + ', maskColorValue=' + this.maskColorValue + ', maskOpacity=' + this.maskOpacity + ', moduleColor=' + this.moduleColor + ')'; + } + hashCode() { + var result = getStringHashCode(this.backgroundImage); + result = imul(result, 31) + getStringHashCode(this.coverDefaultColor) | 0; + result = imul(result, 31) + getStringHashCode(this.gaussianBlurValue) | 0; + result = imul(result, 31) + getStringHashCode(this.maskColorValue) | 0; + result = imul(result, 31) + getStringHashCode(this.maskOpacity) | 0; + result = imul(result, 31) + getStringHashCode(this.moduleColor) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KTopGameUI)) + return false; + var tmp0_other_with_cast = other instanceof KTopGameUI ? other : THROW_CCE(); + if (!(this.backgroundImage === tmp0_other_with_cast.backgroundImage)) + return false; + if (!(this.coverDefaultColor === tmp0_other_with_cast.coverDefaultColor)) + return false; + if (!(this.gaussianBlurValue === tmp0_other_with_cast.gaussianBlurValue)) + return false; + if (!(this.maskColorValue === tmp0_other_with_cast.maskColorValue)) + return false; + if (!(this.maskOpacity === tmp0_other_with_cast.maskOpacity)) + return false; + if (!(this.moduleColor === tmp0_other_with_cast.moduleColor)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KTopGameUI_az1380_k$(seen1, backgroundImage, coverDefaultColor, gaussianBlurValue, maskColorValue, maskOpacity, moduleColor, serializationConstructorMarker) { + Companion_instance_562; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_549().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.backgroundImage = ''; + else + $this.backgroundImage = backgroundImage; + if (0 === (seen1 & 2)) + $this.coverDefaultColor = ''; + else + $this.coverDefaultColor = coverDefaultColor; + if (0 === (seen1 & 4)) + $this.gaussianBlurValue = ''; + else + $this.gaussianBlurValue = gaussianBlurValue; + if (0 === (seen1 & 8)) + $this.maskColorValue = ''; + else + $this.maskColorValue = maskColorValue; + if (0 === (seen1 & 16)) + $this.maskOpacity = ''; + else + $this.maskOpacity = maskOpacity; + if (0 === (seen1 & 32)) + $this.moduleColor = ''; + else + $this.moduleColor = moduleColor; + return $this; + } + } + class Companion_563 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.CardBusinessBadge'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_550(); + } + } + class $serializer_550 { + constructor() { + $serializer_instance_550 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KCardBusinessBadge', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('gotoIcon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('badgeStyle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_551()), get_nullable($serializer_getInstance_606())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_551(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_606(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_551(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_606(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KCardBusinessBadge.new_com_bapis_bilibili_polymer_app_search_v1_KCardBusinessBadge_9tv6yf_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_gjnmgs_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.gotoIcon == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_551(), value.gotoIcon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.badgeStyle == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_606(), value.badgeStyle); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_gjnmgs_k$(encoder, value instanceof KCardBusinessBadge ? value : THROW_CCE()); + } + } + class KCardBusinessBadge { + constructor(gotoIcon, badgeStyle) { + Companion_instance_563; + gotoIcon = gotoIcon === VOID ? null : gotoIcon; + badgeStyle = badgeStyle === VOID ? null : badgeStyle; + this.gotoIcon = gotoIcon; + this.badgeStyle = badgeStyle; + } + get_gotoIcon_5tp2rp_k$() { + return this.gotoIcon; + } + get_badgeStyle_2hat9l_k$() { + return this.badgeStyle; + } + component1_7eebsc_k$() { + return this.gotoIcon; + } + component2_7eebsb_k$() { + return this.badgeStyle; + } + copy_x1ucro_k$(gotoIcon, badgeStyle) { + return new KCardBusinessBadge(gotoIcon, badgeStyle); + } + copy(gotoIcon, badgeStyle, $super) { + gotoIcon = gotoIcon === VOID ? this.gotoIcon : gotoIcon; + badgeStyle = badgeStyle === VOID ? this.badgeStyle : badgeStyle; + return this.copy_x1ucro_k$(gotoIcon, badgeStyle); + } + toString() { + return 'KCardBusinessBadge(gotoIcon=' + this.gotoIcon + ', badgeStyle=' + this.badgeStyle + ')'; + } + hashCode() { + var result = this.gotoIcon == null ? 0 : this.gotoIcon.hashCode(); + result = imul(result, 31) + (this.badgeStyle == null ? 0 : this.badgeStyle.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KCardBusinessBadge)) + return false; + var tmp0_other_with_cast = other instanceof KCardBusinessBadge ? other : THROW_CCE(); + if (!equals(this.gotoIcon, tmp0_other_with_cast.gotoIcon)) + return false; + if (!equals(this.badgeStyle, tmp0_other_with_cast.badgeStyle)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KCardBusinessBadge_9tv6yf_k$(seen1, gotoIcon, badgeStyle, serializationConstructorMarker) { + Companion_instance_563; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_550().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.gotoIcon = null; + else + $this.gotoIcon = gotoIcon; + if (0 === (seen1 & 2)) + $this.badgeStyle = null; + else + $this.badgeStyle = badgeStyle; + return $this; + } + } + class Companion_564 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.GotoIcon'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_551(); + } + } + class $serializer_551 { + constructor() { + $serializer_instance_551 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KGotoIcon', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('iconUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('iconNightUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('iconWidth', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('iconHeight', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = 0; + var tmp7_local3 = 0; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KGotoIcon.new_com_bapis_bilibili_polymer_app_search_v1_KGotoIcon_xx15qx_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_d3kvsr_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.iconUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.iconUrl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.iconNightUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.iconNightUrl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.iconWidth === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.iconWidth); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.iconHeight === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 3, value.iconHeight); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_d3kvsr_k$(encoder, value instanceof KGotoIcon ? value : THROW_CCE()); + } + } + class KGotoIcon { + constructor(iconUrl, iconNightUrl, iconWidth, iconHeight) { + Companion_instance_564; + iconUrl = iconUrl === VOID ? '' : iconUrl; + iconNightUrl = iconNightUrl === VOID ? '' : iconNightUrl; + iconWidth = iconWidth === VOID ? 0 : iconWidth; + iconHeight = iconHeight === VOID ? 0 : iconHeight; + this.iconUrl = iconUrl; + this.iconNightUrl = iconNightUrl; + this.iconWidth = iconWidth; + this.iconHeight = iconHeight; + } + get_iconUrl_sd8dal_k$() { + return this.iconUrl; + } + get_iconNightUrl_yl8yzd_k$() { + return this.iconNightUrl; + } + get_iconWidth_elwfrw_k$() { + return this.iconWidth; + } + get_iconHeight_xu1u2f_k$() { + return this.iconHeight; + } + component1_7eebsc_k$() { + return this.iconUrl; + } + component2_7eebsb_k$() { + return this.iconNightUrl; + } + component3_7eebsa_k$() { + return this.iconWidth; + } + component4_7eebs9_k$() { + return this.iconHeight; + } + copy_u32w1h_k$(iconUrl, iconNightUrl, iconWidth, iconHeight) { + return new KGotoIcon(iconUrl, iconNightUrl, iconWidth, iconHeight); + } + copy(iconUrl, iconNightUrl, iconWidth, iconHeight, $super) { + iconUrl = iconUrl === VOID ? this.iconUrl : iconUrl; + iconNightUrl = iconNightUrl === VOID ? this.iconNightUrl : iconNightUrl; + iconWidth = iconWidth === VOID ? this.iconWidth : iconWidth; + iconHeight = iconHeight === VOID ? this.iconHeight : iconHeight; + return this.copy_u32w1h_k$(iconUrl, iconNightUrl, iconWidth, iconHeight); + } + toString() { + return 'KGotoIcon(iconUrl=' + this.iconUrl + ', iconNightUrl=' + this.iconNightUrl + ', iconWidth=' + this.iconWidth + ', iconHeight=' + this.iconHeight + ')'; + } + hashCode() { + var result = getStringHashCode(this.iconUrl); + result = imul(result, 31) + getStringHashCode(this.iconNightUrl) | 0; + result = imul(result, 31) + this.iconWidth | 0; + result = imul(result, 31) + this.iconHeight | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KGotoIcon)) + return false; + var tmp0_other_with_cast = other instanceof KGotoIcon ? other : THROW_CCE(); + if (!(this.iconUrl === tmp0_other_with_cast.iconUrl)) + return false; + if (!(this.iconNightUrl === tmp0_other_with_cast.iconNightUrl)) + return false; + if (!(this.iconWidth === tmp0_other_with_cast.iconWidth)) + return false; + if (!(this.iconHeight === tmp0_other_with_cast.iconHeight)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KGotoIcon_xx15qx_k$(seen1, iconUrl, iconNightUrl, iconWidth, iconHeight, serializationConstructorMarker) { + Companion_instance_564; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_551().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.iconUrl = ''; + else + $this.iconUrl = iconUrl; + if (0 === (seen1 & 2)) + $this.iconNightUrl = ''; + else + $this.iconNightUrl = iconNightUrl; + if (0 === (seen1 & 4)) + $this.iconWidth = 0; + else + $this.iconWidth = iconWidth; + if (0 === (seen1 & 8)) + $this.iconHeight = 0; + else + $this.iconHeight = iconHeight; + return $this; + } + } + class Companion_565 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.BrandADAccount'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_552(); + } + } + class $serializer_552 { + constructor() { + $serializer_instance_552 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KBrandADAccount', this, 14); + tmp0_serialDesc.addElement_5pzumi_k$('param', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('goto', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('mid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('name', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('face', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('sign', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('relation', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('roomid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('liveStatus', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('liveLink', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('officialVerify', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('vip', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + tmp0_serialDesc.addElement_5pzumi_k$('uri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(13)); + tmp0_serialDesc.addElement_5pzumi_k$('faceNftNew', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(14)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_567()), LongSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_604()), get_nullable($serializer_getInstance_602()), StringSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = new Long(0, 0); + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = new Long(0, 0); + var tmp12_local8 = new Long(0, 0); + var tmp13_local9 = null; + var tmp14_local10 = null; + var tmp15_local11 = null; + var tmp16_local12 = null; + var tmp17_local13 = 0; + var tmp18_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp18_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_567(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 10, $serializer_getInstance_604(), tmp14_local10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 11, $serializer_getInstance_602(), tmp15_local11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + tmp16_local12 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + tmp17_local13 = tmp18_input.decodeIntElement_941u6a_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + } else + while (tmp1_flag) { + tmp2_index = tmp18_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_567(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 10, $serializer_getInstance_604(), tmp14_local10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 11, $serializer_getInstance_602(), tmp15_local11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + case 12: + tmp16_local12 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + break; + case 13: + tmp17_local13 = tmp18_input.decodeIntElement_941u6a_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp18_input.endStructure_1xqz0n_k$(tmp0_desc); + return KBrandADAccount.new_com_bapis_bilibili_polymer_app_search_v1_KBrandADAccount_th5xdf_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, null); + } + serialize_zd3igk_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.param === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.param); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.goto === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.goto); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.mid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.mid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.name === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.name); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.face === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.face); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.sign === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.sign); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.relation == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 6, $serializer_getInstance_567(), value.relation); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !value.roomid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 7, value.roomid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !value.liveStatus.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 8, value.liveStatus); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.liveLink === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 9, value.liveLink); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.officialVerify == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 10, $serializer_getInstance_604(), value.officialVerify); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.vip == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 11, $serializer_getInstance_602(), value.vip); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !(value.uri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 12, value.uri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 13) ? true : !(value.faceNftNew === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 13, value.faceNftNew); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_zd3igk_k$(encoder, value instanceof KBrandADAccount ? value : THROW_CCE()); + } + } + class KBrandADAccount { + constructor(param, goto, mid, name, face, sign, relation, roomid, liveStatus, liveLink, officialVerify, vip, uri, faceNftNew) { + Companion_instance_565; + param = param === VOID ? '' : param; + goto = goto === VOID ? '' : goto; + mid = mid === VOID ? new Long(0, 0) : mid; + name = name === VOID ? '' : name; + face = face === VOID ? '' : face; + sign = sign === VOID ? '' : sign; + relation = relation === VOID ? null : relation; + roomid = roomid === VOID ? new Long(0, 0) : roomid; + liveStatus = liveStatus === VOID ? new Long(0, 0) : liveStatus; + liveLink = liveLink === VOID ? '' : liveLink; + officialVerify = officialVerify === VOID ? null : officialVerify; + vip = vip === VOID ? null : vip; + uri = uri === VOID ? '' : uri; + faceNftNew = faceNftNew === VOID ? 0 : faceNftNew; + this.param = param; + this.goto = goto; + this.mid = mid; + this.name = name; + this.face = face; + this.sign = sign; + this.relation = relation; + this.roomid = roomid; + this.liveStatus = liveStatus; + this.liveLink = liveLink; + this.officialVerify = officialVerify; + this.vip = vip; + this.uri = uri; + this.faceNftNew = faceNftNew; + } + get_param_iwqquc_k$() { + return this.param; + } + get_goto_womsa4_k$() { + return this.goto; + } + get_mid_18j0o1_k$() { + return this.mid; + } + get_name_woqyms_k$() { + return this.name; + } + get_face_woluhy_k$() { + return this.face; + } + get_sign_woubd2_k$() { + return this.sign; + } + get_relation_u22tol_k$() { + return this.relation; + } + get_roomid_j3vdbz_k$() { + return this.roomid; + } + get_liveStatus_5s32ih_k$() { + return this.liveStatus; + } + get_liveLink_8d0z01_k$() { + return this.liveLink; + } + get_officialVerify_91wfgt_k$() { + return this.officialVerify; + } + get_vip_18itzg_k$() { + return this.vip; + } + get_uri_18iuil_k$() { + return this.uri; + } + get_faceNftNew_d87rsm_k$() { + return this.faceNftNew; + } + component1_7eebsc_k$() { + return this.param; + } + component2_7eebsb_k$() { + return this.goto; + } + component3_7eebsa_k$() { + return this.mid; + } + component4_7eebs9_k$() { + return this.name; + } + component5_7eebs8_k$() { + return this.face; + } + component6_7eebs7_k$() { + return this.sign; + } + component7_7eebs6_k$() { + return this.relation; + } + component8_7eebs5_k$() { + return this.roomid; + } + component9_7eebs4_k$() { + return this.liveStatus; + } + component10_gazzfo_k$() { + return this.liveLink; + } + component11_gazzfn_k$() { + return this.officialVerify; + } + component12_gazzfm_k$() { + return this.vip; + } + component13_gazzfl_k$() { + return this.uri; + } + component14_gazzfk_k$() { + return this.faceNftNew; + } + copy_7nkwvt_k$(param, goto, mid, name, face, sign, relation, roomid, liveStatus, liveLink, officialVerify, vip, uri, faceNftNew) { + return new KBrandADAccount(param, goto, mid, name, face, sign, relation, roomid, liveStatus, liveLink, officialVerify, vip, uri, faceNftNew); + } + copy(param, goto, mid, name, face, sign, relation, roomid, liveStatus, liveLink, officialVerify, vip, uri, faceNftNew, $super) { + param = param === VOID ? this.param : param; + goto = goto === VOID ? this.goto : goto; + mid = mid === VOID ? this.mid : mid; + name = name === VOID ? this.name : name; + face = face === VOID ? this.face : face; + sign = sign === VOID ? this.sign : sign; + relation = relation === VOID ? this.relation : relation; + roomid = roomid === VOID ? this.roomid : roomid; + liveStatus = liveStatus === VOID ? this.liveStatus : liveStatus; + liveLink = liveLink === VOID ? this.liveLink : liveLink; + officialVerify = officialVerify === VOID ? this.officialVerify : officialVerify; + vip = vip === VOID ? this.vip : vip; + uri = uri === VOID ? this.uri : uri; + faceNftNew = faceNftNew === VOID ? this.faceNftNew : faceNftNew; + return this.copy_7nkwvt_k$(param, goto, mid, name, face, sign, relation, roomid, liveStatus, liveLink, officialVerify, vip, uri, faceNftNew); + } + toString() { + return 'KBrandADAccount(param=' + this.param + ', goto=' + this.goto + ', mid=' + this.mid.toString() + ', name=' + this.name + ', face=' + this.face + ', sign=' + this.sign + ', relation=' + this.relation + ', roomid=' + this.roomid.toString() + ', liveStatus=' + this.liveStatus.toString() + ', liveLink=' + this.liveLink + ', officialVerify=' + this.officialVerify + ', vip=' + this.vip + ', uri=' + this.uri + ', faceNftNew=' + this.faceNftNew + ')'; + } + hashCode() { + var result = getStringHashCode(this.param); + result = imul(result, 31) + getStringHashCode(this.goto) | 0; + result = imul(result, 31) + this.mid.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.name) | 0; + result = imul(result, 31) + getStringHashCode(this.face) | 0; + result = imul(result, 31) + getStringHashCode(this.sign) | 0; + result = imul(result, 31) + (this.relation == null ? 0 : this.relation.hashCode()) | 0; + result = imul(result, 31) + this.roomid.hashCode() | 0; + result = imul(result, 31) + this.liveStatus.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.liveLink) | 0; + result = imul(result, 31) + (this.officialVerify == null ? 0 : this.officialVerify.hashCode()) | 0; + result = imul(result, 31) + (this.vip == null ? 0 : this.vip.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.uri) | 0; + result = imul(result, 31) + this.faceNftNew | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KBrandADAccount)) + return false; + var tmp0_other_with_cast = other instanceof KBrandADAccount ? other : THROW_CCE(); + if (!(this.param === tmp0_other_with_cast.param)) + return false; + if (!(this.goto === tmp0_other_with_cast.goto)) + return false; + if (!this.mid.equals(tmp0_other_with_cast.mid)) + return false; + if (!(this.name === tmp0_other_with_cast.name)) + return false; + if (!(this.face === tmp0_other_with_cast.face)) + return false; + if (!(this.sign === tmp0_other_with_cast.sign)) + return false; + if (!equals(this.relation, tmp0_other_with_cast.relation)) + return false; + if (!this.roomid.equals(tmp0_other_with_cast.roomid)) + return false; + if (!this.liveStatus.equals(tmp0_other_with_cast.liveStatus)) + return false; + if (!(this.liveLink === tmp0_other_with_cast.liveLink)) + return false; + if (!equals(this.officialVerify, tmp0_other_with_cast.officialVerify)) + return false; + if (!equals(this.vip, tmp0_other_with_cast.vip)) + return false; + if (!(this.uri === tmp0_other_with_cast.uri)) + return false; + if (!(this.faceNftNew === tmp0_other_with_cast.faceNftNew)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KBrandADAccount_th5xdf_k$(seen1, param, goto, mid, name, face, sign, relation, roomid, liveStatus, liveLink, officialVerify, vip, uri, faceNftNew, serializationConstructorMarker) { + Companion_instance_565; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_552().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.param = ''; + else + $this.param = param; + if (0 === (seen1 & 2)) + $this.goto = ''; + else + $this.goto = goto; + if (0 === (seen1 & 4)) + $this.mid = new Long(0, 0); + else + $this.mid = mid; + if (0 === (seen1 & 8)) + $this.name = ''; + else + $this.name = name; + if (0 === (seen1 & 16)) + $this.face = ''; + else + $this.face = face; + if (0 === (seen1 & 32)) + $this.sign = ''; + else + $this.sign = sign; + if (0 === (seen1 & 64)) + $this.relation = null; + else + $this.relation = relation; + if (0 === (seen1 & 128)) + $this.roomid = new Long(0, 0); + else + $this.roomid = roomid; + if (0 === (seen1 & 256)) + $this.liveStatus = new Long(0, 0); + else + $this.liveStatus = liveStatus; + if (0 === (seen1 & 512)) + $this.liveLink = ''; + else + $this.liveLink = liveLink; + if (0 === (seen1 & 1024)) + $this.officialVerify = null; + else + $this.officialVerify = officialVerify; + if (0 === (seen1 & 2048)) + $this.vip = null; + else + $this.vip = vip; + if (0 === (seen1 & 4096)) + $this.uri = ''; + else + $this.uri = uri; + if (0 === (seen1 & 8192)) + $this.faceNftNew = 0; + else + $this.faceNftNew = faceNftNew; + return $this; + } + } + class Companion_566 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.BrandADArc'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_553(); + } + } + class $serializer_553 { + constructor() { + $serializer_instance_553 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KBrandADArc', this, 10); + tmp0_serialDesc.addElement_5pzumi_k$('param', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('goto', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('aid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('play', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('reply', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('duration', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('author', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('uri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = new Long(0, 0); + var tmp7_local3 = new Long(0, 0); + var tmp8_local4 = new Long(0, 0); + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_local8 = null; + var tmp13_local9 = null; + var tmp14_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp14_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + } else + while (tmp1_flag) { + tmp2_index = tmp14_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp14_input.endStructure_1xqz0n_k$(tmp0_desc); + return KBrandADArc.new_com_bapis_bilibili_polymer_app_search_v1_KBrandADArc_me7524_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, null); + } + serialize_hqnspd_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.param === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.param); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.goto === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.goto); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.aid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.aid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !value.play.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 3, value.play); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !value.reply.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 4, value.reply); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.duration === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.duration); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.author === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.author); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.uri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 8, value.uri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 9, value.cover); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_hqnspd_k$(encoder, value instanceof KBrandADArc ? value : THROW_CCE()); + } + } + class KBrandADArc { + constructor(param, goto, aid, play, reply, duration, author, title, uri, cover) { + Companion_instance_566; + param = param === VOID ? '' : param; + goto = goto === VOID ? '' : goto; + aid = aid === VOID ? new Long(0, 0) : aid; + play = play === VOID ? new Long(0, 0) : play; + reply = reply === VOID ? new Long(0, 0) : reply; + duration = duration === VOID ? '' : duration; + author = author === VOID ? '' : author; + title = title === VOID ? '' : title; + uri = uri === VOID ? '' : uri; + cover = cover === VOID ? '' : cover; + this.param = param; + this.goto = goto; + this.aid = aid; + this.play = play; + this.reply = reply; + this.duration = duration; + this.author = author; + this.title = title; + this.uri = uri; + this.cover = cover; + } + get_param_iwqquc_k$() { + return this.param; + } + get_goto_womsa4_k$() { + return this.goto; + } + get_aid_18j9kd_k$() { + return this.aid; + } + get_play_wosghp_k$() { + return this.play; + } + get_reply_ixwurl_k$() { + return this.reply; + } + get_duration_6a6kpp_k$() { + return this.duration; + } + get_author_b5hnkk_k$() { + return this.author; + } + get_title_iz32un_k$() { + return this.title; + } + get_uri_18iuil_k$() { + return this.uri; + } + get_cover_ipug0e_k$() { + return this.cover; + } + component1_7eebsc_k$() { + return this.param; + } + component2_7eebsb_k$() { + return this.goto; + } + component3_7eebsa_k$() { + return this.aid; + } + component4_7eebs9_k$() { + return this.play; + } + component5_7eebs8_k$() { + return this.reply; + } + component6_7eebs7_k$() { + return this.duration; + } + component7_7eebs6_k$() { + return this.author; + } + component8_7eebs5_k$() { + return this.title; + } + component9_7eebs4_k$() { + return this.uri; + } + component10_gazzfo_k$() { + return this.cover; + } + copy_hsytt7_k$(param, goto, aid, play, reply, duration, author, title, uri, cover) { + return new KBrandADArc(param, goto, aid, play, reply, duration, author, title, uri, cover); + } + copy(param, goto, aid, play, reply, duration, author, title, uri, cover, $super) { + param = param === VOID ? this.param : param; + goto = goto === VOID ? this.goto : goto; + aid = aid === VOID ? this.aid : aid; + play = play === VOID ? this.play : play; + reply = reply === VOID ? this.reply : reply; + duration = duration === VOID ? this.duration : duration; + author = author === VOID ? this.author : author; + title = title === VOID ? this.title : title; + uri = uri === VOID ? this.uri : uri; + cover = cover === VOID ? this.cover : cover; + return this.copy_hsytt7_k$(param, goto, aid, play, reply, duration, author, title, uri, cover); + } + toString() { + return 'KBrandADArc(param=' + this.param + ', goto=' + this.goto + ', aid=' + this.aid.toString() + ', play=' + this.play.toString() + ', reply=' + this.reply.toString() + ', duration=' + this.duration + ', author=' + this.author + ', title=' + this.title + ', uri=' + this.uri + ', cover=' + this.cover + ')'; + } + hashCode() { + var result = getStringHashCode(this.param); + result = imul(result, 31) + getStringHashCode(this.goto) | 0; + result = imul(result, 31) + this.aid.hashCode() | 0; + result = imul(result, 31) + this.play.hashCode() | 0; + result = imul(result, 31) + this.reply.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.duration) | 0; + result = imul(result, 31) + getStringHashCode(this.author) | 0; + result = imul(result, 31) + getStringHashCode(this.title) | 0; + result = imul(result, 31) + getStringHashCode(this.uri) | 0; + result = imul(result, 31) + getStringHashCode(this.cover) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KBrandADArc)) + return false; + var tmp0_other_with_cast = other instanceof KBrandADArc ? other : THROW_CCE(); + if (!(this.param === tmp0_other_with_cast.param)) + return false; + if (!(this.goto === tmp0_other_with_cast.goto)) + return false; + if (!this.aid.equals(tmp0_other_with_cast.aid)) + return false; + if (!this.play.equals(tmp0_other_with_cast.play)) + return false; + if (!this.reply.equals(tmp0_other_with_cast.reply)) + return false; + if (!(this.duration === tmp0_other_with_cast.duration)) + return false; + if (!(this.author === tmp0_other_with_cast.author)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.uri === tmp0_other_with_cast.uri)) + return false; + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KBrandADArc_me7524_k$(seen1, param, goto, aid, play, reply, duration, author, title, uri, cover, serializationConstructorMarker) { + Companion_instance_566; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_553().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.param = ''; + else + $this.param = param; + if (0 === (seen1 & 2)) + $this.goto = ''; + else + $this.goto = goto; + if (0 === (seen1 & 4)) + $this.aid = new Long(0, 0); + else + $this.aid = aid; + if (0 === (seen1 & 8)) + $this.play = new Long(0, 0); + else + $this.play = play; + if (0 === (seen1 & 16)) + $this.reply = new Long(0, 0); + else + $this.reply = reply; + if (0 === (seen1 & 32)) + $this.duration = ''; + else + $this.duration = duration; + if (0 === (seen1 & 64)) + $this.author = ''; + else + $this.author = author; + if (0 === (seen1 & 128)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 256)) + $this.uri = ''; + else + $this.uri = uri; + if (0 === (seen1 & 512)) + $this.cover = ''; + else + $this.cover = cover; + return $this; + } + } + class Companion_567 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.SportsMatchItem'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_554(); + } + } + class $serializer_554 { + constructor() { + $serializer_instance_554 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KSportsMatchItem', this, 8); + tmp0_serialDesc.addElement_5pzumi_k$('matchId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('seasonId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('matchName', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('img', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('beginTimeDesc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('matchStatusDesc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('subContent', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('subExtraIcon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = new Long(0, 0); + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp12_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + } else + while (tmp1_flag) { + tmp2_index = tmp12_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp12_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSportsMatchItem.new_com_bapis_bilibili_polymer_app_search_v1_KSportsMatchItem_2rq4fi_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null); + } + serialize_88s38q_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.matchId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.matchId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.seasonId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.seasonId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.matchName === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.matchName); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.img === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.img); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.beginTimeDesc === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.beginTimeDesc); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.matchStatusDesc === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.matchStatusDesc); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.subContent === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.subContent); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.subExtraIcon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.subExtraIcon); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_88s38q_k$(encoder, value instanceof KSportsMatchItem ? value : THROW_CCE()); + } + } + class KSportsMatchItem { + constructor(matchId, seasonId, matchName, img, beginTimeDesc, matchStatusDesc, subContent, subExtraIcon) { + Companion_instance_567; + matchId = matchId === VOID ? new Long(0, 0) : matchId; + seasonId = seasonId === VOID ? new Long(0, 0) : seasonId; + matchName = matchName === VOID ? '' : matchName; + img = img === VOID ? '' : img; + beginTimeDesc = beginTimeDesc === VOID ? '' : beginTimeDesc; + matchStatusDesc = matchStatusDesc === VOID ? '' : matchStatusDesc; + subContent = subContent === VOID ? '' : subContent; + subExtraIcon = subExtraIcon === VOID ? '' : subExtraIcon; + this.matchId = matchId; + this.seasonId = seasonId; + this.matchName = matchName; + this.img = img; + this.beginTimeDesc = beginTimeDesc; + this.matchStatusDesc = matchStatusDesc; + this.subContent = subContent; + this.subExtraIcon = subExtraIcon; + } + get_matchId_f66imv_k$() { + return this.matchId; + } + get_seasonId_h33f15_k$() { + return this.seasonId; + } + get_matchName_inzepz_k$() { + return this.matchName; + } + get_img_18j3ja_k$() { + return this.img; + } + get_beginTimeDesc_nqwtb6_k$() { + return this.beginTimeDesc; + } + get_matchStatusDesc_wsvecf_k$() { + return this.matchStatusDesc; + } + get_subContent_sxunvi_k$() { + return this.subContent; + } + get_subExtraIcon_yzzkb6_k$() { + return this.subExtraIcon; + } + component1_7eebsc_k$() { + return this.matchId; + } + component2_7eebsb_k$() { + return this.seasonId; + } + component3_7eebsa_k$() { + return this.matchName; + } + component4_7eebs9_k$() { + return this.img; + } + component5_7eebs8_k$() { + return this.beginTimeDesc; + } + component6_7eebs7_k$() { + return this.matchStatusDesc; + } + component7_7eebs6_k$() { + return this.subContent; + } + component8_7eebs5_k$() { + return this.subExtraIcon; + } + copy_1jgm1b_k$(matchId, seasonId, matchName, img, beginTimeDesc, matchStatusDesc, subContent, subExtraIcon) { + return new KSportsMatchItem(matchId, seasonId, matchName, img, beginTimeDesc, matchStatusDesc, subContent, subExtraIcon); + } + copy(matchId, seasonId, matchName, img, beginTimeDesc, matchStatusDesc, subContent, subExtraIcon, $super) { + matchId = matchId === VOID ? this.matchId : matchId; + seasonId = seasonId === VOID ? this.seasonId : seasonId; + matchName = matchName === VOID ? this.matchName : matchName; + img = img === VOID ? this.img : img; + beginTimeDesc = beginTimeDesc === VOID ? this.beginTimeDesc : beginTimeDesc; + matchStatusDesc = matchStatusDesc === VOID ? this.matchStatusDesc : matchStatusDesc; + subContent = subContent === VOID ? this.subContent : subContent; + subExtraIcon = subExtraIcon === VOID ? this.subExtraIcon : subExtraIcon; + return this.copy_1jgm1b_k$(matchId, seasonId, matchName, img, beginTimeDesc, matchStatusDesc, subContent, subExtraIcon); + } + toString() { + return 'KSportsMatchItem(matchId=' + this.matchId.toString() + ', seasonId=' + this.seasonId.toString() + ', matchName=' + this.matchName + ', img=' + this.img + ', beginTimeDesc=' + this.beginTimeDesc + ', matchStatusDesc=' + this.matchStatusDesc + ', subContent=' + this.subContent + ', subExtraIcon=' + this.subExtraIcon + ')'; + } + hashCode() { + var result = this.matchId.hashCode(); + result = imul(result, 31) + this.seasonId.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.matchName) | 0; + result = imul(result, 31) + getStringHashCode(this.img) | 0; + result = imul(result, 31) + getStringHashCode(this.beginTimeDesc) | 0; + result = imul(result, 31) + getStringHashCode(this.matchStatusDesc) | 0; + result = imul(result, 31) + getStringHashCode(this.subContent) | 0; + result = imul(result, 31) + getStringHashCode(this.subExtraIcon) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSportsMatchItem)) + return false; + var tmp0_other_with_cast = other instanceof KSportsMatchItem ? other : THROW_CCE(); + if (!this.matchId.equals(tmp0_other_with_cast.matchId)) + return false; + if (!this.seasonId.equals(tmp0_other_with_cast.seasonId)) + return false; + if (!(this.matchName === tmp0_other_with_cast.matchName)) + return false; + if (!(this.img === tmp0_other_with_cast.img)) + return false; + if (!(this.beginTimeDesc === tmp0_other_with_cast.beginTimeDesc)) + return false; + if (!(this.matchStatusDesc === tmp0_other_with_cast.matchStatusDesc)) + return false; + if (!(this.subContent === tmp0_other_with_cast.subContent)) + return false; + if (!(this.subExtraIcon === tmp0_other_with_cast.subExtraIcon)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KSportsMatchItem_2rq4fi_k$(seen1, matchId, seasonId, matchName, img, beginTimeDesc, matchStatusDesc, subContent, subExtraIcon, serializationConstructorMarker) { + Companion_instance_567; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_554().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.matchId = new Long(0, 0); + else + $this.matchId = matchId; + if (0 === (seen1 & 2)) + $this.seasonId = new Long(0, 0); + else + $this.seasonId = seasonId; + if (0 === (seen1 & 4)) + $this.matchName = ''; + else + $this.matchName = matchName; + if (0 === (seen1 & 8)) + $this.img = ''; + else + $this.img = img; + if (0 === (seen1 & 16)) + $this.beginTimeDesc = ''; + else + $this.beginTimeDesc = beginTimeDesc; + if (0 === (seen1 & 32)) + $this.matchStatusDesc = ''; + else + $this.matchStatusDesc = matchStatusDesc; + if (0 === (seen1 & 64)) + $this.subContent = ''; + else + $this.subContent = subContent; + if (0 === (seen1 & 128)) + $this.subExtraIcon = ''; + else + $this.subExtraIcon = subExtraIcon; + return $this; + } + } + class Companion_568 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.Share'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_555(); + } + } + class $serializer_555 { + constructor() { + $serializer_instance_555 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KShare', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('video', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), get_nullable($serializer_getInstance_544())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_544(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_544(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KShare.new_com_bapis_bilibili_polymer_app_search_v1_KShare_4sbtbv_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_q7ctyo_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.type === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.type); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.video == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_544(), value.video); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_q7ctyo_k$(encoder, value instanceof KShare ? value : THROW_CCE()); + } + } + class KShare { + constructor(type, video) { + Companion_instance_568; + type = type === VOID ? '' : type; + video = video === VOID ? null : video; + this.type = type; + this.video = video; + } + get_type_wovaf7_k$() { + return this.type; + } + get_video_j06c0i_k$() { + return this.video; + } + component1_7eebsc_k$() { + return this.type; + } + component2_7eebsb_k$() { + return this.video; + } + copy_q76a9n_k$(type, video) { + return new KShare(type, video); + } + copy(type, video, $super) { + type = type === VOID ? this.type : type; + video = video === VOID ? this.video : video; + return this.copy_q76a9n_k$(type, video); + } + toString() { + return 'KShare(type=' + this.type + ', video=' + this.video + ')'; + } + hashCode() { + var result = getStringHashCode(this.type); + result = imul(result, 31) + (this.video == null ? 0 : this.video.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KShare)) + return false; + var tmp0_other_with_cast = other instanceof KShare ? other : THROW_CCE(); + if (!(this.type === tmp0_other_with_cast.type)) + return false; + if (!equals(this.video, tmp0_other_with_cast.video)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KShare_4sbtbv_k$(seen1, type, video, serializationConstructorMarker) { + Companion_instance_568; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_555().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.type = ''; + else + $this.type = type; + if (0 === (seen1 & 2)) + $this.video = null; + else + $this.video = video; + return $this; + } + } + class Companion_569 { + constructor() { + Companion_instance_569 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, new ArrayListSerializer($serializer_getInstance_606()), null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.polymer.app.search.v1.Episode'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_556(); + } + } + class $serializer_556 { + constructor() { + $serializer_instance_556 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KEpisode', this, 5); + tmp0_serialDesc.addElement_5pzumi_k$('uri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('param', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('index', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('badges', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('position', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_569().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), tmp0_cached[3], IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = 0; + var tmp9_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp10_cached = Companion_getInstance_569().$childSerializers_1; + if (tmp9_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp9_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 3, tmp10_cached[3], tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + } else + while (tmp1_flag) { + tmp2_index = tmp9_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp9_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 3, tmp10_cached[3], tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp9_input.endStructure_1xqz0n_k$(tmp0_desc); + return KEpisode.new_com_bapis_bilibili_polymer_app_search_v1_KEpisode_litxvb_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); + } + serialize_2fevak_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_569().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.uri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.uri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.param === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.param); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.index === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.index); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !equals(value.badges, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 3, tmp2_cached[3], value.badges); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.position === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 4, value.position); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_2fevak_k$(encoder, value instanceof KEpisode ? value : THROW_CCE()); + } + } + class KEpisode { + constructor(uri, param, index, badges, position) { + Companion_getInstance_569(); + uri = uri === VOID ? '' : uri; + param = param === VOID ? '' : param; + index = index === VOID ? '' : index; + badges = badges === VOID ? emptyList() : badges; + position = position === VOID ? 0 : position; + this.uri = uri; + this.param = param; + this.index = index; + this.badges = badges; + this.position = position; + } + get_uri_18iuil_k$() { + return this.uri; + } + get_param_iwqquc_k$() { + return this.param; + } + get_index_it478p_k$() { + return this.index; + } + get_badges_bb95bt_k$() { + return this.badges; + } + get_position_jfponi_k$() { + return this.position; + } + component1_7eebsc_k$() { + return this.uri; + } + component2_7eebsb_k$() { + return this.param; + } + component3_7eebsa_k$() { + return this.index; + } + component4_7eebs9_k$() { + return this.badges; + } + component5_7eebs8_k$() { + return this.position; + } + copy_f724vk_k$(uri, param, index, badges, position) { + return new KEpisode(uri, param, index, badges, position); + } + copy(uri, param, index, badges, position, $super) { + uri = uri === VOID ? this.uri : uri; + param = param === VOID ? this.param : param; + index = index === VOID ? this.index : index; + badges = badges === VOID ? this.badges : badges; + position = position === VOID ? this.position : position; + return this.copy_f724vk_k$(uri, param, index, badges, position); + } + toString() { + return 'KEpisode(uri=' + this.uri + ', param=' + this.param + ', index=' + this.index + ', badges=' + this.badges + ', position=' + this.position + ')'; + } + hashCode() { + var result = getStringHashCode(this.uri); + result = imul(result, 31) + getStringHashCode(this.param) | 0; + result = imul(result, 31) + getStringHashCode(this.index) | 0; + result = imul(result, 31) + hashCode(this.badges) | 0; + result = imul(result, 31) + this.position | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KEpisode)) + return false; + var tmp0_other_with_cast = other instanceof KEpisode ? other : THROW_CCE(); + if (!(this.uri === tmp0_other_with_cast.uri)) + return false; + if (!(this.param === tmp0_other_with_cast.param)) + return false; + if (!(this.index === tmp0_other_with_cast.index)) + return false; + if (!equals(this.badges, tmp0_other_with_cast.badges)) + return false; + if (!(this.position === tmp0_other_with_cast.position)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KEpisode_litxvb_k$(seen1, uri, param, index, badges, position, serializationConstructorMarker) { + Companion_getInstance_569(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_556().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.uri = ''; + else + $this.uri = uri; + if (0 === (seen1 & 2)) + $this.param = ''; + else + $this.param = param; + if (0 === (seen1 & 4)) + $this.index = ''; + else + $this.index = index; + if (0 === (seen1 & 8)) + $this.badges = emptyList(); + else + $this.badges = badges; + if (0 === (seen1 & 16)) + $this.position = 0; + else + $this.position = position; + return $this; + } + } + class Companion_570 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.Upper'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_557(); + } + } + class $serializer_557 { + constructor() { + $serializer_instance_557 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KUpper', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('mid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('ptimeText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KUpper.new_com_bapis_bilibili_polymer_app_search_v1_KUpper_r0unss_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_i8y0i5_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.mid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.mid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.cover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.ptimeText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.ptimeText); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_i8y0i5_k$(encoder, value instanceof KUpper ? value : THROW_CCE()); + } + } + class KUpper { + constructor(mid, title, cover, ptimeText) { + Companion_instance_570; + mid = mid === VOID ? new Long(0, 0) : mid; + title = title === VOID ? '' : title; + cover = cover === VOID ? '' : cover; + ptimeText = ptimeText === VOID ? '' : ptimeText; + this.mid = mid; + this.title = title; + this.cover = cover; + this.ptimeText = ptimeText; + } + get_mid_18j0o1_k$() { + return this.mid; + } + get_title_iz32un_k$() { + return this.title; + } + get_cover_ipug0e_k$() { + return this.cover; + } + get_ptimeText_zaiahr_k$() { + return this.ptimeText; + } + component1_7eebsc_k$() { + return this.mid; + } + component2_7eebsb_k$() { + return this.title; + } + component3_7eebsa_k$() { + return this.cover; + } + component4_7eebs9_k$() { + return this.ptimeText; + } + copy_kwys9l_k$(mid, title, cover, ptimeText) { + return new KUpper(mid, title, cover, ptimeText); + } + copy(mid, title, cover, ptimeText, $super) { + mid = mid === VOID ? this.mid : mid; + title = title === VOID ? this.title : title; + cover = cover === VOID ? this.cover : cover; + ptimeText = ptimeText === VOID ? this.ptimeText : ptimeText; + return this.copy_kwys9l_k$(mid, title, cover, ptimeText); + } + toString() { + return 'KUpper(mid=' + this.mid.toString() + ', title=' + this.title + ', cover=' + this.cover + ', ptimeText=' + this.ptimeText + ')'; + } + hashCode() { + var result = this.mid.hashCode(); + result = imul(result, 31) + getStringHashCode(this.title) | 0; + result = imul(result, 31) + getStringHashCode(this.cover) | 0; + result = imul(result, 31) + getStringHashCode(this.ptimeText) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KUpper)) + return false; + var tmp0_other_with_cast = other instanceof KUpper ? other : THROW_CCE(); + if (!this.mid.equals(tmp0_other_with_cast.mid)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + if (!(this.ptimeText === tmp0_other_with_cast.ptimeText)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KUpper_r0unss_k$(seen1, mid, title, cover, ptimeText, serializationConstructorMarker) { + Companion_instance_570; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_557().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.mid = new Long(0, 0); + else + $this.mid = mid; + if (0 === (seen1 & 2)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 4)) + $this.cover = ''; + else + $this.cover = cover; + if (0 === (seen1 & 8)) + $this.ptimeText = ''; + else + $this.ptimeText = ptimeText; + return $this; + } + } + class Companion_571 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.Stat'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_558(); + } + } + class $serializer_558 { + constructor() { + $serializer_instance_558 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KStat', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('play', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('like', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('reply', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = 0; + var tmp6_local2 = 0; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KStat_0.new_com_bapis_bilibili_polymer_app_search_v1_KStat_7b3t2p_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_xt2pct_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.play === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.play); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.like === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.like); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.reply === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.reply); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_xt2pct_k$(encoder, value instanceof KStat_0 ? value : THROW_CCE()); + } + } + class KStat_0 { + constructor(play, like, reply) { + Companion_instance_571; + play = play === VOID ? 0 : play; + like = like === VOID ? 0 : like; + reply = reply === VOID ? 0 : reply; + this.play = play; + this.like = like; + this.reply = reply; + } + get_play_wosghp_k$() { + return this.play; + } + get_like_wopujk_k$() { + return this.like; + } + get_reply_ixwurl_k$() { + return this.reply; + } + component1_7eebsc_k$() { + return this.play; + } + component2_7eebsb_k$() { + return this.like; + } + component3_7eebsa_k$() { + return this.reply; + } + copy_6of2tf_k$(play, like, reply) { + return new KStat_0(play, like, reply); + } + copy(play, like, reply, $super) { + play = play === VOID ? this.play : play; + like = like === VOID ? this.like : like; + reply = reply === VOID ? this.reply : reply; + return this.copy_6of2tf_k$(play, like, reply); + } + toString() { + return 'KStat(play=' + this.play + ', like=' + this.like + ', reply=' + this.reply + ')'; + } + hashCode() { + var result = this.play; + result = imul(result, 31) + this.like | 0; + result = imul(result, 31) + this.reply | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KStat_0)) + return false; + var tmp0_other_with_cast = other instanceof KStat_0 ? other : THROW_CCE(); + if (!(this.play === tmp0_other_with_cast.play)) + return false; + if (!(this.like === tmp0_other_with_cast.like)) + return false; + if (!(this.reply === tmp0_other_with_cast.reply)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KStat_7b3t2p_k$(seen1, play, like, reply, serializationConstructorMarker) { + Companion_instance_571; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_558().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.play = 0; + else + $this.play = play; + if (0 === (seen1 & 2)) + $this.like = 0; + else + $this.like = like; + if (0 === (seen1 & 4)) + $this.reply = 0; + else + $this.reply = reply; + return $this; + } + } + class Companion_572 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.DyTopic'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_559(); + } + } + class $serializer_559 { + constructor() { + $serializer_instance_559 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KDyTopic', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('uri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KDyTopic.new_com_bapis_bilibili_polymer_app_search_v1_KDyTopic_r4hk25_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_trmqqz_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.uri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.uri); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_trmqqz_k$(encoder, value instanceof KDyTopic ? value : THROW_CCE()); + } + } + class KDyTopic { + constructor(title, uri) { + Companion_instance_572; + title = title === VOID ? '' : title; + uri = uri === VOID ? '' : uri; + this.title = title; + this.uri = uri; + } + get_title_iz32un_k$() { + return this.title; + } + get_uri_18iuil_k$() { + return this.uri; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.uri; + } + copy_plwnsl_k$(title, uri) { + return new KDyTopic(title, uri); + } + copy(title, uri, $super) { + title = title === VOID ? this.title : title; + uri = uri === VOID ? this.uri : uri; + return this.copy_plwnsl_k$(title, uri); + } + toString() { + return 'KDyTopic(title=' + this.title + ', uri=' + this.uri + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.uri) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KDyTopic)) + return false; + var tmp0_other_with_cast = other instanceof KDyTopic ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.uri === tmp0_other_with_cast.uri)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KDyTopic_r4hk25_k$(seen1, title, uri, serializationConstructorMarker) { + Companion_instance_572; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_559().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.uri = ''; + else + $this.uri = uri; + return $this; + } + } + class Companion_573 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.TextLabel'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_560(); + } + } + class $serializer_560 { + constructor() { + $serializer_instance_560 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KTextLabel', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('text', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('uri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KTextLabel.new_com_bapis_bilibili_polymer_app_search_v1_KTextLabel_tujym8_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_1xbz20_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.text === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.text); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.uri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.uri); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_1xbz20_k$(encoder, value instanceof KTextLabel ? value : THROW_CCE()); + } + } + class KTextLabel { + constructor(text, uri) { + Companion_instance_573; + text = text === VOID ? '' : text; + uri = uri === VOID ? '' : uri; + this.text = text; + this.uri = uri; + } + get_text_wouvsm_k$() { + return this.text; + } + get_uri_18iuil_k$() { + return this.uri; + } + component1_7eebsc_k$() { + return this.text; + } + component2_7eebsb_k$() { + return this.uri; + } + copy_plwnsl_k$(text, uri) { + return new KTextLabel(text, uri); + } + copy(text, uri, $super) { + text = text === VOID ? this.text : text; + uri = uri === VOID ? this.uri : uri; + return this.copy_plwnsl_k$(text, uri); + } + toString() { + return 'KTextLabel(text=' + this.text + ', uri=' + this.uri + ')'; + } + hashCode() { + var result = getStringHashCode(this.text); + result = imul(result, 31) + getStringHashCode(this.uri) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KTextLabel)) + return false; + var tmp0_other_with_cast = other instanceof KTextLabel ? other : THROW_CCE(); + if (!(this.text === tmp0_other_with_cast.text)) + return false; + if (!(this.uri === tmp0_other_with_cast.uri)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KTextLabel_tujym8_k$(seen1, text, uri, serializationConstructorMarker) { + Companion_instance_573; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_560().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.text = ''; + else + $this.text = text; + if (0 === (seen1 & 2)) + $this.uri = ''; + else + $this.uri = uri; + return $this; + } + } + class Companion_574 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.TextButton'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_561(); + } + } + class $serializer_561 { + constructor() { + $serializer_instance_561 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KTextButton', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('text', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('uri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KTextButton.new_com_bapis_bilibili_polymer_app_search_v1_KTextButton_bfgc6_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_gc8o4o_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.text === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.text); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.uri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.uri); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_gc8o4o_k$(encoder, value instanceof KTextButton ? value : THROW_CCE()); + } + } + class KTextButton { + constructor(text, uri) { + Companion_instance_574; + text = text === VOID ? '' : text; + uri = uri === VOID ? '' : uri; + this.text = text; + this.uri = uri; + } + get_text_wouvsm_k$() { + return this.text; + } + get_uri_18iuil_k$() { + return this.uri; + } + component1_7eebsc_k$() { + return this.text; + } + component2_7eebsb_k$() { + return this.uri; + } + copy_plwnsl_k$(text, uri) { + return new KTextButton(text, uri); + } + copy(text, uri, $super) { + text = text === VOID ? this.text : text; + uri = uri === VOID ? this.uri : uri; + return this.copy_plwnsl_k$(text, uri); + } + toString() { + return 'KTextButton(text=' + this.text + ', uri=' + this.uri + ')'; + } + hashCode() { + var result = getStringHashCode(this.text); + result = imul(result, 31) + getStringHashCode(this.uri) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KTextButton)) + return false; + var tmp0_other_with_cast = other instanceof KTextButton ? other : THROW_CCE(); + if (!(this.text === tmp0_other_with_cast.text)) + return false; + if (!(this.uri === tmp0_other_with_cast.uri)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KTextButton_bfgc6_k$(seen1, text, uri, serializationConstructorMarker) { + Companion_instance_574; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_561().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.text = ''; + else + $this.text = text; + if (0 === (seen1 & 2)) + $this.uri = ''; + else + $this.uri = uri; + return $this; + } + } + class Companion_575 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.ChannelMixedItem'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_562(); + } + } + class $serializer_562 { + constructor() { + $serializer_instance_562 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KChannelMixedItem', this, 9); + tmp0_serialDesc.addElement_5pzumi_k$('id', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('coverLeftIcon1', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('coverLeftText1', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('goto', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('param', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('uri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('badge', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_563())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = 0; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_local8 = null; + var tmp13_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp13_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp13_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_563(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + } else + while (tmp1_flag) { + tmp2_index = tmp13_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp13_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_563(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp13_input.endStructure_1xqz0n_k$(tmp0_desc); + return KChannelMixedItem.new_com_bapis_bilibili_polymer_app_search_v1_KChannelMixedItem_5nw3dw_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, null); + } + serialize_jbdtxw_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.id.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.id); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.coverLeftIcon1 === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.coverLeftIcon1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.coverLeftText1 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.coverLeftText1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.cover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.goto === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.goto); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.param === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.param); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.uri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.uri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.badge == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 8, $serializer_getInstance_563(), value.badge); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_jbdtxw_k$(encoder, value instanceof KChannelMixedItem ? value : THROW_CCE()); + } + } + class KChannelMixedItem { + constructor(id, coverLeftIcon1, coverLeftText1, cover, goto, param, uri, title, badge) { + Companion_instance_575; + id = id === VOID ? new Long(0, 0) : id; + coverLeftIcon1 = coverLeftIcon1 === VOID ? 0 : coverLeftIcon1; + coverLeftText1 = coverLeftText1 === VOID ? '' : coverLeftText1; + cover = cover === VOID ? '' : cover; + goto = goto === VOID ? '' : goto; + param = param === VOID ? '' : param; + uri = uri === VOID ? '' : uri; + title = title === VOID ? '' : title; + badge = badge === VOID ? null : badge; + this.id = id; + this.coverLeftIcon1 = coverLeftIcon1; + this.coverLeftText1 = coverLeftText1; + this.cover = cover; + this.goto = goto; + this.param = param; + this.uri = uri; + this.title = title; + this.badge = badge; + } + get_id_kntnx8_k$() { + return this.id; + } + get_coverLeftIcon1_ce5a8z_k$() { + return this.coverLeftIcon1; + } + get_coverLeftText1_ck8hkf_k$() { + return this.coverLeftText1; + } + get_cover_ipug0e_k$() { + return this.cover; + } + get_goto_womsa4_k$() { + return this.goto; + } + get_param_iwqquc_k$() { + return this.param; + } + get_uri_18iuil_k$() { + return this.uri; + } + get_title_iz32un_k$() { + return this.title; + } + get_badge_ip1cai_k$() { + return this.badge; + } + component1_7eebsc_k$() { + return this.id; + } + component2_7eebsb_k$() { + return this.coverLeftIcon1; + } + component3_7eebsa_k$() { + return this.coverLeftText1; + } + component4_7eebs9_k$() { + return this.cover; + } + component5_7eebs8_k$() { + return this.goto; + } + component6_7eebs7_k$() { + return this.param; + } + component7_7eebs6_k$() { + return this.uri; + } + component8_7eebs5_k$() { + return this.title; + } + component9_7eebs4_k$() { + return this.badge; + } + copy_8216ax_k$(id, coverLeftIcon1, coverLeftText1, cover, goto, param, uri, title, badge) { + return new KChannelMixedItem(id, coverLeftIcon1, coverLeftText1, cover, goto, param, uri, title, badge); + } + copy(id, coverLeftIcon1, coverLeftText1, cover, goto, param, uri, title, badge, $super) { + id = id === VOID ? this.id : id; + coverLeftIcon1 = coverLeftIcon1 === VOID ? this.coverLeftIcon1 : coverLeftIcon1; + coverLeftText1 = coverLeftText1 === VOID ? this.coverLeftText1 : coverLeftText1; + cover = cover === VOID ? this.cover : cover; + goto = goto === VOID ? this.goto : goto; + param = param === VOID ? this.param : param; + uri = uri === VOID ? this.uri : uri; + title = title === VOID ? this.title : title; + badge = badge === VOID ? this.badge : badge; + return this.copy_8216ax_k$(id, coverLeftIcon1, coverLeftText1, cover, goto, param, uri, title, badge); + } + toString() { + return 'KChannelMixedItem(id=' + this.id.toString() + ', coverLeftIcon1=' + this.coverLeftIcon1 + ', coverLeftText1=' + this.coverLeftText1 + ', cover=' + this.cover + ', goto=' + this.goto + ', param=' + this.param + ', uri=' + this.uri + ', title=' + this.title + ', badge=' + this.badge + ')'; + } + hashCode() { + var result = this.id.hashCode(); + result = imul(result, 31) + this.coverLeftIcon1 | 0; + result = imul(result, 31) + getStringHashCode(this.coverLeftText1) | 0; + result = imul(result, 31) + getStringHashCode(this.cover) | 0; + result = imul(result, 31) + getStringHashCode(this.goto) | 0; + result = imul(result, 31) + getStringHashCode(this.param) | 0; + result = imul(result, 31) + getStringHashCode(this.uri) | 0; + result = imul(result, 31) + getStringHashCode(this.title) | 0; + result = imul(result, 31) + (this.badge == null ? 0 : this.badge.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KChannelMixedItem)) + return false; + var tmp0_other_with_cast = other instanceof KChannelMixedItem ? other : THROW_CCE(); + if (!this.id.equals(tmp0_other_with_cast.id)) + return false; + if (!(this.coverLeftIcon1 === tmp0_other_with_cast.coverLeftIcon1)) + return false; + if (!(this.coverLeftText1 === tmp0_other_with_cast.coverLeftText1)) + return false; + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + if (!(this.goto === tmp0_other_with_cast.goto)) + return false; + if (!(this.param === tmp0_other_with_cast.param)) + return false; + if (!(this.uri === tmp0_other_with_cast.uri)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!equals(this.badge, tmp0_other_with_cast.badge)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KChannelMixedItem_5nw3dw_k$(seen1, id, coverLeftIcon1, coverLeftText1, cover, goto, param, uri, title, badge, serializationConstructorMarker) { + Companion_instance_575; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_562().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.id = new Long(0, 0); + else + $this.id = id; + if (0 === (seen1 & 2)) + $this.coverLeftIcon1 = 0; + else + $this.coverLeftIcon1 = coverLeftIcon1; + if (0 === (seen1 & 4)) + $this.coverLeftText1 = ''; + else + $this.coverLeftText1 = coverLeftText1; + if (0 === (seen1 & 8)) + $this.cover = ''; + else + $this.cover = cover; + if (0 === (seen1 & 16)) + $this.goto = ''; + else + $this.goto = goto; + if (0 === (seen1 & 32)) + $this.param = ''; + else + $this.param = param; + if (0 === (seen1 & 64)) + $this.uri = ''; + else + $this.uri = uri; + if (0 === (seen1 & 128)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 256)) + $this.badge = null; + else + $this.badge = badge; + return $this; + } + } + class Companion_576 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.Badge2'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_563(); + } + } + class $serializer_563 { + constructor() { + $serializer_instance_563 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KBadge2', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('bgCover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('text', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KBadge2.new_com_bapis_bilibili_polymer_app_search_v1_KBadge2_gn2tkq_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_1mx5t4_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.bgCover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.bgCover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.text === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.text); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_1mx5t4_k$(encoder, value instanceof KBadge2 ? value : THROW_CCE()); + } + } + class KBadge2 { + constructor(bgCover, text) { + Companion_instance_576; + bgCover = bgCover === VOID ? '' : bgCover; + text = text === VOID ? '' : text; + this.bgCover = bgCover; + this.text = text; + } + get_bgCover_24epo7_k$() { + return this.bgCover; + } + get_text_wouvsm_k$() { + return this.text; + } + component1_7eebsc_k$() { + return this.bgCover; + } + component2_7eebsb_k$() { + return this.text; + } + copy_plwnsl_k$(bgCover, text) { + return new KBadge2(bgCover, text); + } + copy(bgCover, text, $super) { + bgCover = bgCover === VOID ? this.bgCover : bgCover; + text = text === VOID ? this.text : text; + return this.copy_plwnsl_k$(bgCover, text); + } + toString() { + return 'KBadge2(bgCover=' + this.bgCover + ', text=' + this.text + ')'; + } + hashCode() { + var result = getStringHashCode(this.bgCover); + result = imul(result, 31) + getStringHashCode(this.text) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KBadge2)) + return false; + var tmp0_other_with_cast = other instanceof KBadge2 ? other : THROW_CCE(); + if (!(this.bgCover === tmp0_other_with_cast.bgCover)) + return false; + if (!(this.text === tmp0_other_with_cast.text)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KBadge2_gn2tkq_k$(seen1, bgCover, text, serializationConstructorMarker) { + Companion_instance_576; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_563().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.bgCover = ''; + else + $this.bgCover = bgCover; + if (0 === (seen1 & 2)) + $this.text = ''; + else + $this.text = text; + return $this; + } + } + class Companion_577 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.BottomButton'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_564(); + } + } + class $serializer_564 { + constructor() { + $serializer_instance_564 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KBottomButton', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('desc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('link', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KBottomButton.new_com_bapis_bilibili_polymer_app_search_v1_KBottomButton_q4vc3s_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_uy5f8m_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.desc === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.desc); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.link === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.link); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_uy5f8m_k$(encoder, value instanceof KBottomButton ? value : THROW_CCE()); + } + } + class KBottomButton { + constructor(desc, link) { + Companion_instance_577; + desc = desc === VOID ? '' : desc; + link = link === VOID ? '' : link; + this.desc = desc; + this.link = link; + } + get_desc_woknve_k$() { + return this.desc; + } + get_link_wopumb_k$() { + return this.link; + } + component1_7eebsc_k$() { + return this.desc; + } + component2_7eebsb_k$() { + return this.link; + } + copy_plwnsl_k$(desc, link) { + return new KBottomButton(desc, link); + } + copy(desc, link, $super) { + desc = desc === VOID ? this.desc : desc; + link = link === VOID ? this.link : link; + return this.copy_plwnsl_k$(desc, link); + } + toString() { + return 'KBottomButton(desc=' + this.desc + ', link=' + this.link + ')'; + } + hashCode() { + var result = getStringHashCode(this.desc); + result = imul(result, 31) + getStringHashCode(this.link) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KBottomButton)) + return false; + var tmp0_other_with_cast = other instanceof KBottomButton ? other : THROW_CCE(); + if (!(this.desc === tmp0_other_with_cast.desc)) + return false; + if (!(this.link === tmp0_other_with_cast.link)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KBottomButton_q4vc3s_k$(seen1, desc, link, serializationConstructorMarker) { + Companion_instance_577; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_564().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.desc = ''; + else + $this.desc = desc; + if (0 === (seen1 & 2)) + $this.link = ''; + else + $this.link = link; + return $this; + } + } + class Companion_578 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.OgvClipInfo'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_565(); + } + } + class $serializer_565 { + constructor() { + $serializer_instance_565 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KOgvClipInfo', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('playStartTime', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('playEndTime', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = new Long(0, 0); + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KOgvClipInfo.new_com_bapis_bilibili_polymer_app_search_v1_KOgvClipInfo_y5mp4b_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_vhibu5_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.playStartTime.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.playStartTime); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.playEndTime.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.playEndTime); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_vhibu5_k$(encoder, value instanceof KOgvClipInfo ? value : THROW_CCE()); + } + } + class KOgvClipInfo { + constructor(playStartTime, playEndTime) { + Companion_instance_578; + playStartTime = playStartTime === VOID ? new Long(0, 0) : playStartTime; + playEndTime = playEndTime === VOID ? new Long(0, 0) : playEndTime; + this.playStartTime = playStartTime; + this.playEndTime = playEndTime; + } + get_playStartTime_ugmhxu_k$() { + return this.playStartTime; + } + get_playEndTime_m84anp_k$() { + return this.playEndTime; + } + component1_7eebsc_k$() { + return this.playStartTime; + } + component2_7eebsb_k$() { + return this.playEndTime; + } + copy_bynm9d_k$(playStartTime, playEndTime) { + return new KOgvClipInfo(playStartTime, playEndTime); + } + copy(playStartTime, playEndTime, $super) { + playStartTime = playStartTime === VOID ? this.playStartTime : playStartTime; + playEndTime = playEndTime === VOID ? this.playEndTime : playEndTime; + return this.copy_bynm9d_k$(playStartTime, playEndTime); + } + toString() { + return 'KOgvClipInfo(playStartTime=' + this.playStartTime.toString() + ', playEndTime=' + this.playEndTime.toString() + ')'; + } + hashCode() { + var result = this.playStartTime.hashCode(); + result = imul(result, 31) + this.playEndTime.hashCode() | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KOgvClipInfo)) + return false; + var tmp0_other_with_cast = other instanceof KOgvClipInfo ? other : THROW_CCE(); + if (!this.playStartTime.equals(tmp0_other_with_cast.playStartTime)) + return false; + if (!this.playEndTime.equals(tmp0_other_with_cast.playEndTime)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KOgvClipInfo_y5mp4b_k$(seen1, playStartTime, playEndTime, serializationConstructorMarker) { + Companion_instance_578; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_565().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.playStartTime = new Long(0, 0); + else + $this.playStartTime = playStartTime; + if (0 === (seen1 & 2)) + $this.playEndTime = new Long(0, 0); + else + $this.playEndTime = playEndTime; + return $this; + } + } + class Companion_579 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.ThreePoint'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_566(); + } + } + class $serializer_566 { + constructor() { + $serializer_instance_566 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KThreePoint', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('icon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KThreePoint.new_com_bapis_bilibili_polymer_app_search_v1_KThreePoint_levc1o_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_ksn1ln_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.type === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.type); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.icon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.icon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.title); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_ksn1ln_k$(encoder, value instanceof KThreePoint ? value : THROW_CCE()); + } + } + class KThreePoint { + constructor(type, icon, title) { + Companion_instance_579; + type = type === VOID ? '' : type; + icon = icon === VOID ? '' : icon; + title = title === VOID ? '' : title; + this.type = type; + this.icon = icon; + this.title = title; + } + get_type_wovaf7_k$() { + return this.type; + } + get_icon_wont8i_k$() { + return this.icon; + } + get_title_iz32un_k$() { + return this.title; + } + component1_7eebsc_k$() { + return this.type; + } + component2_7eebsb_k$() { + return this.icon; + } + component3_7eebsa_k$() { + return this.title; + } + copy_nc7k0r_k$(type, icon, title) { + return new KThreePoint(type, icon, title); + } + copy(type, icon, title, $super) { + type = type === VOID ? this.type : type; + icon = icon === VOID ? this.icon : icon; + title = title === VOID ? this.title : title; + return this.copy_nc7k0r_k$(type, icon, title); + } + toString() { + return 'KThreePoint(type=' + this.type + ', icon=' + this.icon + ', title=' + this.title + ')'; + } + hashCode() { + var result = getStringHashCode(this.type); + result = imul(result, 31) + getStringHashCode(this.icon) | 0; + result = imul(result, 31) + getStringHashCode(this.title) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KThreePoint)) + return false; + var tmp0_other_with_cast = other instanceof KThreePoint ? other : THROW_CCE(); + if (!(this.type === tmp0_other_with_cast.type)) + return false; + if (!(this.icon === tmp0_other_with_cast.icon)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KThreePoint_levc1o_k$(seen1, type, icon, title, serializationConstructorMarker) { + Companion_instance_579; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_566().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.type = ''; + else + $this.type = type; + if (0 === (seen1 & 2)) + $this.icon = ''; + else + $this.icon = icon; + if (0 === (seen1 & 4)) + $this.title = ''; + else + $this.title = title; + return $this; + } + } + class Companion_580 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.Relation'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_567(); + } + } + class $serializer_567 { + constructor() { + $serializer_instance_567 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KRelation', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('status', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KRelation.new_com_bapis_bilibili_polymer_app_search_v1_KRelation_ucopbb_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_ptgfi3_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.status === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.status); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_ptgfi3_k$(encoder, value instanceof KRelation ? value : THROW_CCE()); + } + } + class KRelation { + constructor(status) { + Companion_instance_580; + status = status === VOID ? 0 : status; + this.status = status; + } + get_status_jnf6d7_k$() { + return this.status; + } + component1_7eebsc_k$() { + return this.status; + } + copy_ns6qmb_k$(status) { + return new KRelation(status); + } + copy(status, $super) { + status = status === VOID ? this.status : status; + return this.copy_ns6qmb_k$(status); + } + toString() { + return 'KRelation(status=' + this.status + ')'; + } + hashCode() { + return this.status; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KRelation)) + return false; + var tmp0_other_with_cast = other instanceof KRelation ? other : THROW_CCE(); + if (!(this.status === tmp0_other_with_cast.status)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KRelation_ucopbb_k$(seen1, status, serializationConstructorMarker) { + Companion_instance_580; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_567().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.status = 0; + else + $this.status = status; + return $this; + } + } + class Companion_581 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.Badge'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_568(); + } + } + class $serializer_568 { + constructor() { + $serializer_instance_568 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KBadge', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('text', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('bgCover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KBadge.new_com_bapis_bilibili_polymer_app_search_v1_KBadge_mnx2ho_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_zbono_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.text === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.text); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.bgCover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.bgCover); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_zbono_k$(encoder, value instanceof KBadge ? value : THROW_CCE()); + } + } + class KBadge { + constructor(text, bgCover) { + Companion_instance_581; + text = text === VOID ? '' : text; + bgCover = bgCover === VOID ? '' : bgCover; + this.text = text; + this.bgCover = bgCover; + } + get_text_wouvsm_k$() { + return this.text; + } + get_bgCover_24epo7_k$() { + return this.bgCover; + } + component1_7eebsc_k$() { + return this.text; + } + component2_7eebsb_k$() { + return this.bgCover; + } + copy_plwnsl_k$(text, bgCover) { + return new KBadge(text, bgCover); + } + copy(text, bgCover, $super) { + text = text === VOID ? this.text : text; + bgCover = bgCover === VOID ? this.bgCover : bgCover; + return this.copy_plwnsl_k$(text, bgCover); + } + toString() { + return 'KBadge(text=' + this.text + ', bgCover=' + this.bgCover + ')'; + } + hashCode() { + var result = getStringHashCode(this.text); + result = imul(result, 31) + getStringHashCode(this.bgCover) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KBadge)) + return false; + var tmp0_other_with_cast = other instanceof KBadge ? other : THROW_CCE(); + if (!(this.text === tmp0_other_with_cast.text)) + return false; + if (!(this.bgCover === tmp0_other_with_cast.bgCover)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KBadge_mnx2ho_k$(seen1, text, bgCover, serializationConstructorMarker) { + Companion_instance_581; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_568().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.text = ''; + else + $this.text = text; + if (0 === (seen1 & 2)) + $this.bgCover = ''; + else + $this.bgCover = bgCover; + return $this; + } + } + class Companion_582 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.ChannelLabel'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_569(); + } + } + class $serializer_569 { + constructor() { + $serializer_instance_569 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KChannelLabel', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('text', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('uri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('iconType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = 0; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KChannelLabel.new_com_bapis_bilibili_polymer_app_search_v1_KChannelLabel_36k44c_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_4ql5ju_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.text === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.text); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.uri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.uri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.iconType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.iconType); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_4ql5ju_k$(encoder, value instanceof KChannelLabel ? value : THROW_CCE()); + } + } + class KChannelLabel { + constructor(text, uri, iconType) { + Companion_instance_582; + text = text === VOID ? '' : text; + uri = uri === VOID ? '' : uri; + iconType = iconType === VOID ? 0 : iconType; + this.text = text; + this.uri = uri; + this.iconType = iconType; + } + get_text_wouvsm_k$() { + return this.text; + } + get_uri_18iuil_k$() { + return this.uri; + } + get_iconType_r0uasc_k$() { + return this.iconType; + } + component1_7eebsc_k$() { + return this.text; + } + component2_7eebsb_k$() { + return this.uri; + } + component3_7eebsa_k$() { + return this.iconType; + } + copy_spspqb_k$(text, uri, iconType) { + return new KChannelLabel(text, uri, iconType); + } + copy(text, uri, iconType, $super) { + text = text === VOID ? this.text : text; + uri = uri === VOID ? this.uri : uri; + iconType = iconType === VOID ? this.iconType : iconType; + return this.copy_spspqb_k$(text, uri, iconType); + } + toString() { + return 'KChannelLabel(text=' + this.text + ', uri=' + this.uri + ', iconType=' + this.iconType + ')'; + } + hashCode() { + var result = getStringHashCode(this.text); + result = imul(result, 31) + getStringHashCode(this.uri) | 0; + result = imul(result, 31) + this.iconType | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KChannelLabel)) + return false; + var tmp0_other_with_cast = other instanceof KChannelLabel ? other : THROW_CCE(); + if (!(this.text === tmp0_other_with_cast.text)) + return false; + if (!(this.uri === tmp0_other_with_cast.uri)) + return false; + if (!(this.iconType === tmp0_other_with_cast.iconType)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KChannelLabel_36k44c_k$(seen1, text, uri, iconType, serializationConstructorMarker) { + Companion_instance_582; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_569().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.text = ''; + else + $this.text = text; + if (0 === (seen1 & 2)) + $this.uri = ''; + else + $this.uri = uri; + if (0 === (seen1 & 4)) + $this.iconType = 0; + else + $this.iconType = iconType; + return $this; + } + } + class Companion_583 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.ExtraLink'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_570(); + } + } + class $serializer_570 { + constructor() { + $serializer_instance_570 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KExtraLink', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('text', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('uri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KExtraLink.new_com_bapis_bilibili_polymer_app_search_v1_KExtraLink_ww7itf_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_b56ruj_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.text === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.text); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.uri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.uri); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_b56ruj_k$(encoder, value instanceof KExtraLink ? value : THROW_CCE()); + } + } + class KExtraLink { + constructor(text, uri) { + Companion_instance_583; + text = text === VOID ? '' : text; + uri = uri === VOID ? '' : uri; + this.text = text; + this.uri = uri; + } + get_text_wouvsm_k$() { + return this.text; + } + get_uri_18iuil_k$() { + return this.uri; + } + component1_7eebsc_k$() { + return this.text; + } + component2_7eebsb_k$() { + return this.uri; + } + copy_plwnsl_k$(text, uri) { + return new KExtraLink(text, uri); + } + copy(text, uri, $super) { + text = text === VOID ? this.text : text; + uri = uri === VOID ? this.uri : uri; + return this.copy_plwnsl_k$(text, uri); + } + toString() { + return 'KExtraLink(text=' + this.text + ', uri=' + this.uri + ')'; + } + hashCode() { + var result = getStringHashCode(this.text); + result = imul(result, 31) + getStringHashCode(this.uri) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KExtraLink)) + return false; + var tmp0_other_with_cast = other instanceof KExtraLink ? other : THROW_CCE(); + if (!(this.text === tmp0_other_with_cast.text)) + return false; + if (!(this.uri === tmp0_other_with_cast.uri)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KExtraLink_ww7itf_k$(seen1, text, uri, serializationConstructorMarker) { + Companion_instance_583; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_570().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.text = ''; + else + $this.text = text; + if (0 === (seen1 & 2)) + $this.uri = ''; + else + $this.uri = uri; + return $this; + } + } + class Companion_584 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.MatchTeam'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_571(); + } + } + class $serializer_571 { + constructor() { + $serializer_instance_571 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KMatchTeam', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('id', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('score', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = 0; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KMatchTeam.new_com_bapis_bilibili_polymer_app_search_v1_KMatchTeam_tkyf1f_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_vnkrx_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.id.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.id); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.cover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.score === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 3, value.score); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_vnkrx_k$(encoder, value instanceof KMatchTeam ? value : THROW_CCE()); + } + } + class KMatchTeam { + constructor(id, title, cover, score) { + Companion_instance_584; + id = id === VOID ? new Long(0, 0) : id; + title = title === VOID ? '' : title; + cover = cover === VOID ? '' : cover; + score = score === VOID ? 0 : score; + this.id = id; + this.title = title; + this.cover = cover; + this.score = score; + } + get_id_kntnx8_k$() { + return this.id; + } + get_title_iz32un_k$() { + return this.title; + } + get_cover_ipug0e_k$() { + return this.cover; + } + get_score_iyfcrt_k$() { + return this.score; + } + component1_7eebsc_k$() { + return this.id; + } + component2_7eebsb_k$() { + return this.title; + } + component3_7eebsa_k$() { + return this.cover; + } + component4_7eebs9_k$() { + return this.score; + } + copy_kng4p1_k$(id, title, cover, score) { + return new KMatchTeam(id, title, cover, score); + } + copy(id, title, cover, score, $super) { + id = id === VOID ? this.id : id; + title = title === VOID ? this.title : title; + cover = cover === VOID ? this.cover : cover; + score = score === VOID ? this.score : score; + return this.copy_kng4p1_k$(id, title, cover, score); + } + toString() { + return 'KMatchTeam(id=' + this.id.toString() + ', title=' + this.title + ', cover=' + this.cover + ', score=' + this.score + ')'; + } + hashCode() { + var result = this.id.hashCode(); + result = imul(result, 31) + getStringHashCode(this.title) | 0; + result = imul(result, 31) + getStringHashCode(this.cover) | 0; + result = imul(result, 31) + this.score | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KMatchTeam)) + return false; + var tmp0_other_with_cast = other instanceof KMatchTeam ? other : THROW_CCE(); + if (!this.id.equals(tmp0_other_with_cast.id)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + if (!(this.score === tmp0_other_with_cast.score)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KMatchTeam_tkyf1f_k$(seen1, id, title, cover, score, serializationConstructorMarker) { + Companion_instance_584; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_571().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.id = new Long(0, 0); + else + $this.id = id; + if (0 === (seen1 & 2)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 4)) + $this.cover = ''; + else + $this.cover = cover; + if (0 === (seen1 & 8)) + $this.score = 0; + else + $this.score = score; + return $this; + } + } + class Companion_585 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.MatchItem'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_572(); + } + } + class $serializer_572 { + constructor() { + $serializer_instance_572 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KMatchItem', this, 7); + tmp0_serialDesc.addElement_5pzumi_k$('state', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('text', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('textColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('textColorNight', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('uri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('liveLink', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('texts', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_573())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp11_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_573(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + } else + while (tmp1_flag) { + tmp2_index = tmp11_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_573(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp11_input.endStructure_1xqz0n_k$(tmp0_desc); + return KMatchItem.new_com_bapis_bilibili_polymer_app_search_v1_KMatchItem_fey63j_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, null); + } + serialize_ea3fd5_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.state === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.state); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.text === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.text); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.textColor === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.textColor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.textColorNight === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.textColorNight); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.uri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.uri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.liveLink === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.liveLink); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.texts == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 6, $serializer_getInstance_573(), value.texts); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_ea3fd5_k$(encoder, value instanceof KMatchItem ? value : THROW_CCE()); + } + } + class KMatchItem { + constructor(state, text, textColor, textColorNight, uri, liveLink, texts) { + Companion_instance_585; + state = state === VOID ? 0 : state; + text = text === VOID ? '' : text; + textColor = textColor === VOID ? '' : textColor; + textColorNight = textColorNight === VOID ? '' : textColorNight; + uri = uri === VOID ? '' : uri; + liveLink = liveLink === VOID ? '' : liveLink; + texts = texts === VOID ? null : texts; + this.state = state; + this.text = text; + this.textColor = textColor; + this.textColorNight = textColorNight; + this.uri = uri; + this.liveLink = liveLink; + this.texts = texts; + } + get_state_iypx7s_k$() { + return this.state; + } + get_text_wouvsm_k$() { + return this.text; + } + get_textColor_92p84z_k$() { + return this.textColor; + } + get_textColorNight_hqolf9_k$() { + return this.textColorNight; + } + get_uri_18iuil_k$() { + return this.uri; + } + get_liveLink_8d0z01_k$() { + return this.liveLink; + } + get_texts_iz0m2l_k$() { + return this.texts; + } + component1_7eebsc_k$() { + return this.state; + } + component2_7eebsb_k$() { + return this.text; + } + component3_7eebsa_k$() { + return this.textColor; + } + component4_7eebs9_k$() { + return this.textColorNight; + } + component5_7eebs8_k$() { + return this.uri; + } + component6_7eebs7_k$() { + return this.liveLink; + } + component7_7eebs6_k$() { + return this.texts; + } + copy_qea6s8_k$(state, text, textColor, textColorNight, uri, liveLink, texts) { + return new KMatchItem(state, text, textColor, textColorNight, uri, liveLink, texts); + } + copy(state, text, textColor, textColorNight, uri, liveLink, texts, $super) { + state = state === VOID ? this.state : state; + text = text === VOID ? this.text : text; + textColor = textColor === VOID ? this.textColor : textColor; + textColorNight = textColorNight === VOID ? this.textColorNight : textColorNight; + uri = uri === VOID ? this.uri : uri; + liveLink = liveLink === VOID ? this.liveLink : liveLink; + texts = texts === VOID ? this.texts : texts; + return this.copy_qea6s8_k$(state, text, textColor, textColorNight, uri, liveLink, texts); + } + toString() { + return 'KMatchItem(state=' + this.state + ', text=' + this.text + ', textColor=' + this.textColor + ', textColorNight=' + this.textColorNight + ', uri=' + this.uri + ', liveLink=' + this.liveLink + ', texts=' + this.texts + ')'; + } + hashCode() { + var result = this.state; + result = imul(result, 31) + getStringHashCode(this.text) | 0; + result = imul(result, 31) + getStringHashCode(this.textColor) | 0; + result = imul(result, 31) + getStringHashCode(this.textColorNight) | 0; + result = imul(result, 31) + getStringHashCode(this.uri) | 0; + result = imul(result, 31) + getStringHashCode(this.liveLink) | 0; + result = imul(result, 31) + (this.texts == null ? 0 : this.texts.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KMatchItem)) + return false; + var tmp0_other_with_cast = other instanceof KMatchItem ? other : THROW_CCE(); + if (!(this.state === tmp0_other_with_cast.state)) + return false; + if (!(this.text === tmp0_other_with_cast.text)) + return false; + if (!(this.textColor === tmp0_other_with_cast.textColor)) + return false; + if (!(this.textColorNight === tmp0_other_with_cast.textColorNight)) + return false; + if (!(this.uri === tmp0_other_with_cast.uri)) + return false; + if (!(this.liveLink === tmp0_other_with_cast.liveLink)) + return false; + if (!equals(this.texts, tmp0_other_with_cast.texts)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KMatchItem_fey63j_k$(seen1, state, text, textColor, textColorNight, uri, liveLink, texts, serializationConstructorMarker) { + Companion_instance_585; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_572().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.state = 0; + else + $this.state = state; + if (0 === (seen1 & 2)) + $this.text = ''; + else + $this.text = text; + if (0 === (seen1 & 4)) + $this.textColor = ''; + else + $this.textColor = textColor; + if (0 === (seen1 & 8)) + $this.textColorNight = ''; + else + $this.textColorNight = textColorNight; + if (0 === (seen1 & 16)) + $this.uri = ''; + else + $this.uri = uri; + if (0 === (seen1 & 32)) + $this.liveLink = ''; + else + $this.liveLink = liveLink; + if (0 === (seen1 & 64)) + $this.texts = null; + else + $this.texts = texts; + return $this; + } + } + class Companion_586 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.Texts'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_573(); + } + } + class $serializer_573 { + constructor() { + $serializer_instance_573 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KTexts', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('bookingText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('unbookingText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KTexts.new_com_bapis_bilibili_polymer_app_search_v1_KTexts_tojr5t_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_eu411l_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.bookingText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.bookingText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.unbookingText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.unbookingText); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_eu411l_k$(encoder, value instanceof KTexts ? value : THROW_CCE()); + } + } + class KTexts { + constructor(bookingText, unbookingText) { + Companion_instance_586; + bookingText = bookingText === VOID ? '' : bookingText; + unbookingText = unbookingText === VOID ? '' : unbookingText; + this.bookingText = bookingText; + this.unbookingText = unbookingText; + } + get_bookingText_jhezst_k$() { + return this.bookingText; + } + get_unbookingText_qmposk_k$() { + return this.unbookingText; + } + component1_7eebsc_k$() { + return this.bookingText; + } + component2_7eebsb_k$() { + return this.unbookingText; + } + copy_plwnsl_k$(bookingText, unbookingText) { + return new KTexts(bookingText, unbookingText); + } + copy(bookingText, unbookingText, $super) { + bookingText = bookingText === VOID ? this.bookingText : bookingText; + unbookingText = unbookingText === VOID ? this.unbookingText : unbookingText; + return this.copy_plwnsl_k$(bookingText, unbookingText); + } + toString() { + return 'KTexts(bookingText=' + this.bookingText + ', unbookingText=' + this.unbookingText + ')'; + } + hashCode() { + var result = getStringHashCode(this.bookingText); + result = imul(result, 31) + getStringHashCode(this.unbookingText) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KTexts)) + return false; + var tmp0_other_with_cast = other instanceof KTexts ? other : THROW_CCE(); + if (!(this.bookingText === tmp0_other_with_cast.bookingText)) + return false; + if (!(this.unbookingText === tmp0_other_with_cast.unbookingText)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KTexts_tojr5t_k$(seen1, bookingText, unbookingText, serializationConstructorMarker) { + Companion_instance_586; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_573().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.bookingText = ''; + else + $this.bookingText = bookingText; + if (0 === (seen1 & 2)) + $this.unbookingText = ''; + else + $this.unbookingText = unbookingText; + return $this; + } + } + class Companion_587 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.UpArgs'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_574(); + } + } + class $serializer_574 { + constructor() { + $serializer_instance_574 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KUpArgs', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('upId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('upName', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('upFace', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('selected', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = 0; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KUpArgs.new_com_bapis_bilibili_polymer_app_search_v1_KUpArgs_vkhu63_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_1dnj1d_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.upId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.upId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.upName === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.upName); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.upFace === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.upFace); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.selected === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 3, value.selected); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_1dnj1d_k$(encoder, value instanceof KUpArgs ? value : THROW_CCE()); + } + } + class KUpArgs { + constructor(upId, upName, upFace, selected) { + Companion_instance_587; + upId = upId === VOID ? new Long(0, 0) : upId; + upName = upName === VOID ? '' : upName; + upFace = upFace === VOID ? '' : upFace; + selected = selected === VOID ? 0 : selected; + this.upId = upId; + this.upName = upName; + this.upFace = upFace; + this.selected = selected; + } + get_upId_wovpsv_k$() { + return this.upId; + } + get_upName_kiypqn_k$() { + return this.upName; + } + get_upFace_kitllt_k$() { + return this.upFace; + } + get_selected_c3i7q4_k$() { + return this.selected; + } + component1_7eebsc_k$() { + return this.upId; + } + component2_7eebsb_k$() { + return this.upName; + } + component3_7eebsa_k$() { + return this.upFace; + } + component4_7eebs9_k$() { + return this.selected; + } + copy_kng4p1_k$(upId, upName, upFace, selected) { + return new KUpArgs(upId, upName, upFace, selected); + } + copy(upId, upName, upFace, selected, $super) { + upId = upId === VOID ? this.upId : upId; + upName = upName === VOID ? this.upName : upName; + upFace = upFace === VOID ? this.upFace : upFace; + selected = selected === VOID ? this.selected : selected; + return this.copy_kng4p1_k$(upId, upName, upFace, selected); + } + toString() { + return 'KUpArgs(upId=' + this.upId.toString() + ', upName=' + this.upName + ', upFace=' + this.upFace + ', selected=' + this.selected + ')'; + } + hashCode() { + var result = this.upId.hashCode(); + result = imul(result, 31) + getStringHashCode(this.upName) | 0; + result = imul(result, 31) + getStringHashCode(this.upFace) | 0; + result = imul(result, 31) + this.selected | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KUpArgs)) + return false; + var tmp0_other_with_cast = other instanceof KUpArgs ? other : THROW_CCE(); + if (!this.upId.equals(tmp0_other_with_cast.upId)) + return false; + if (!(this.upName === tmp0_other_with_cast.upName)) + return false; + if (!(this.upFace === tmp0_other_with_cast.upFace)) + return false; + if (!(this.selected === tmp0_other_with_cast.selected)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KUpArgs_vkhu63_k$(seen1, upId, upName, upFace, selected, serializationConstructorMarker) { + Companion_instance_587; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_574().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.upId = new Long(0, 0); + else + $this.upId = upId; + if (0 === (seen1 & 2)) + $this.upName = ''; + else + $this.upName = upName; + if (0 === (seen1 & 4)) + $this.upFace = ''; + else + $this.upFace = upFace; + if (0 === (seen1 & 8)) + $this.selected = 0; + else + $this.selected = selected; + return $this; + } + } + class Companion_588 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.ThreePointV4'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_575(); + } + } + class $serializer_575 { + constructor() { + $serializer_instance_575 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KThreePointV4', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('sharePlane', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('watchLater', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_607()), get_nullable($serializer_getInstance_576())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_607(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_576(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_607(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_576(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KThreePointV4.new_com_bapis_bilibili_polymer_app_search_v1_KThreePointV4_yib4qb_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_fh1w3d_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.sharePlane == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_607(), value.sharePlane); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.watchLater == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_576(), value.watchLater); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_fh1w3d_k$(encoder, value instanceof KThreePointV4 ? value : THROW_CCE()); + } + } + class KThreePointV4 { + constructor(sharePlane, watchLater) { + Companion_instance_588; + sharePlane = sharePlane === VOID ? null : sharePlane; + watchLater = watchLater === VOID ? null : watchLater; + this.sharePlane = sharePlane; + this.watchLater = watchLater; + } + get_sharePlane_l1yhja_k$() { + return this.sharePlane; + } + get_watchLater_m4hv96_k$() { + return this.watchLater; + } + component1_7eebsc_k$() { + return this.sharePlane; + } + component2_7eebsb_k$() { + return this.watchLater; + } + copy_98xc23_k$(sharePlane, watchLater) { + return new KThreePointV4(sharePlane, watchLater); + } + copy(sharePlane, watchLater, $super) { + sharePlane = sharePlane === VOID ? this.sharePlane : sharePlane; + watchLater = watchLater === VOID ? this.watchLater : watchLater; + return this.copy_98xc23_k$(sharePlane, watchLater); + } + toString() { + return 'KThreePointV4(sharePlane=' + this.sharePlane + ', watchLater=' + this.watchLater + ')'; + } + hashCode() { + var result = this.sharePlane == null ? 0 : this.sharePlane.hashCode(); + result = imul(result, 31) + (this.watchLater == null ? 0 : this.watchLater.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KThreePointV4)) + return false; + var tmp0_other_with_cast = other instanceof KThreePointV4 ? other : THROW_CCE(); + if (!equals(this.sharePlane, tmp0_other_with_cast.sharePlane)) + return false; + if (!equals(this.watchLater, tmp0_other_with_cast.watchLater)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KThreePointV4_yib4qb_k$(seen1, sharePlane, watchLater, serializationConstructorMarker) { + Companion_instance_588; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_575().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.sharePlane = null; + else + $this.sharePlane = sharePlane; + if (0 === (seen1 & 2)) + $this.watchLater = null; + else + $this.watchLater = watchLater; + return $this; + } + } + class Companion_589 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.WatchLater'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_576(); + } + } + class $serializer_576 { + constructor() { + $serializer_instance_576 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KWatchLater', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('aid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('bvid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KWatchLater.new_com_bapis_bilibili_polymer_app_search_v1_KWatchLater_mlzyo3_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_16e0bq_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.aid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.aid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.bvid === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.bvid); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_16e0bq_k$(encoder, value instanceof KWatchLater ? value : THROW_CCE()); + } + } + class KWatchLater { + constructor(aid, bvid) { + Companion_instance_589; + aid = aid === VOID ? new Long(0, 0) : aid; + bvid = bvid === VOID ? '' : bvid; + this.aid = aid; + this.bvid = bvid; + } + get_aid_18j9kd_k$() { + return this.aid; + } + get_bvid_wojq9k_k$() { + return this.bvid; + } + component1_7eebsc_k$() { + return this.aid; + } + component2_7eebsb_k$() { + return this.bvid; + } + copy_ezpntz_k$(aid, bvid) { + return new KWatchLater(aid, bvid); + } + copy(aid, bvid, $super) { + aid = aid === VOID ? this.aid : aid; + bvid = bvid === VOID ? this.bvid : bvid; + return this.copy_ezpntz_k$(aid, bvid); + } + toString() { + return 'KWatchLater(aid=' + this.aid.toString() + ', bvid=' + this.bvid + ')'; + } + hashCode() { + var result = this.aid.hashCode(); + result = imul(result, 31) + getStringHashCode(this.bvid) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KWatchLater)) + return false; + var tmp0_other_with_cast = other instanceof KWatchLater ? other : THROW_CCE(); + if (!this.aid.equals(tmp0_other_with_cast.aid)) + return false; + if (!(this.bvid === tmp0_other_with_cast.bvid)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KWatchLater_mlzyo3_k$(seen1, aid, bvid, serializationConstructorMarker) { + Companion_instance_589; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_576().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.aid = new Long(0, 0); + else + $this.aid = aid; + if (0 === (seen1 & 2)) + $this.bvid = ''; + else + $this.bvid = bvid; + return $this; + } + } + class Companion_590 { + constructor() { + Companion_instance_590 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, new ArrayListSerializer($serializer_getInstance_582()), null, null, null, null, null, null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.polymer.app.search.v1.ThreePointV3'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_577(); + } + } + class $serializer_577 { + constructor() { + $serializer_instance_577 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KThreePointV3', this, 11); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('selectedTitle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('subtitle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('reasons', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('id', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('selected', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('icon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('selectedIcon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('url', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('defaultId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_590().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), tmp0_cached[3], StringSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = new Long(0, 0); + var tmp10_local6 = 0; + var tmp11_local7 = null; + var tmp12_local8 = null; + var tmp13_local9 = null; + var tmp14_local10 = 0; + var tmp15_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp16_cached = Companion_getInstance_590().$childSerializers_1; + if (tmp15_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp15_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 3, tmp16_cached[3], tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + } else + while (tmp1_flag) { + tmp2_index = tmp15_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp15_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 3, tmp16_cached[3], tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp15_input.endStructure_1xqz0n_k$(tmp0_desc); + return KThreePointV3.new_com_bapis_bilibili_polymer_app_search_v1_KThreePointV3_vpx5x_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, null); + } + serialize_b9e048_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_590().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.selectedTitle === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.selectedTitle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.subtitle === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.subtitle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !equals(value.reasons, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 3, tmp2_cached[3], value.reasons); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.type === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.type); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !value.id.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 5, value.id); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.selected === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 6, value.selected); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.icon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.icon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.selectedIcon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 8, value.selectedIcon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.url === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 9, value.url); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.defaultId === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 10, value.defaultId); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_b9e048_k$(encoder, value instanceof KThreePointV3 ? value : THROW_CCE()); + } + } + class KThreePointV3 { + constructor(title, selectedTitle, subtitle, reasons, type, id, selected, icon, selectedIcon, url, defaultId) { + Companion_getInstance_590(); + title = title === VOID ? '' : title; + selectedTitle = selectedTitle === VOID ? '' : selectedTitle; + subtitle = subtitle === VOID ? '' : subtitle; + reasons = reasons === VOID ? emptyList() : reasons; + type = type === VOID ? '' : type; + id = id === VOID ? new Long(0, 0) : id; + selected = selected === VOID ? 0 : selected; + icon = icon === VOID ? '' : icon; + selectedIcon = selectedIcon === VOID ? '' : selectedIcon; + url = url === VOID ? '' : url; + defaultId = defaultId === VOID ? 0 : defaultId; + this.title = title; + this.selectedTitle = selectedTitle; + this.subtitle = subtitle; + this.reasons = reasons; + this.type = type; + this.id = id; + this.selected = selected; + this.icon = icon; + this.selectedIcon = selectedIcon; + this.url = url; + this.defaultId = defaultId; + } + get_title_iz32un_k$() { + return this.title; + } + get_selectedTitle_mp7yhg_k$() { + return this.selectedTitle; + } + get_subtitle_55eoyp_k$() { + return this.subtitle; + } + get_reasons_j52nye_k$() { + return this.reasons; + } + get_type_wovaf7_k$() { + return this.type; + } + get_id_kntnx8_k$() { + return this.id; + } + get_selected_c3i7q4_k$() { + return this.selected; + } + get_icon_wont8i_k$() { + return this.icon; + } + get_selectedIcon_oh766b_k$() { + return this.selectedIcon; + } + get_url_18iuii_k$() { + return this.url; + } + get_defaultId_gbt17x_k$() { + return this.defaultId; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.selectedTitle; + } + component3_7eebsa_k$() { + return this.subtitle; + } + component4_7eebs9_k$() { + return this.reasons; + } + component5_7eebs8_k$() { + return this.type; + } + component6_7eebs7_k$() { + return this.id; + } + component7_7eebs6_k$() { + return this.selected; + } + component8_7eebs5_k$() { + return this.icon; + } + component9_7eebs4_k$() { + return this.selectedIcon; + } + component10_gazzfo_k$() { + return this.url; + } + component11_gazzfn_k$() { + return this.defaultId; + } + copy_ronqaq_k$(title, selectedTitle, subtitle, reasons, type, id, selected, icon, selectedIcon, url, defaultId) { + return new KThreePointV3(title, selectedTitle, subtitle, reasons, type, id, selected, icon, selectedIcon, url, defaultId); + } + copy(title, selectedTitle, subtitle, reasons, type, id, selected, icon, selectedIcon, url, defaultId, $super) { + title = title === VOID ? this.title : title; + selectedTitle = selectedTitle === VOID ? this.selectedTitle : selectedTitle; + subtitle = subtitle === VOID ? this.subtitle : subtitle; + reasons = reasons === VOID ? this.reasons : reasons; + type = type === VOID ? this.type : type; + id = id === VOID ? this.id : id; + selected = selected === VOID ? this.selected : selected; + icon = icon === VOID ? this.icon : icon; + selectedIcon = selectedIcon === VOID ? this.selectedIcon : selectedIcon; + url = url === VOID ? this.url : url; + defaultId = defaultId === VOID ? this.defaultId : defaultId; + return this.copy_ronqaq_k$(title, selectedTitle, subtitle, reasons, type, id, selected, icon, selectedIcon, url, defaultId); + } + toString() { + return 'KThreePointV3(title=' + this.title + ', selectedTitle=' + this.selectedTitle + ', subtitle=' + this.subtitle + ', reasons=' + this.reasons + ', type=' + this.type + ', id=' + this.id.toString() + ', selected=' + this.selected + ', icon=' + this.icon + ', selectedIcon=' + this.selectedIcon + ', url=' + this.url + ', defaultId=' + this.defaultId + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.selectedTitle) | 0; + result = imul(result, 31) + getStringHashCode(this.subtitle) | 0; + result = imul(result, 31) + hashCode(this.reasons) | 0; + result = imul(result, 31) + getStringHashCode(this.type) | 0; + result = imul(result, 31) + this.id.hashCode() | 0; + result = imul(result, 31) + this.selected | 0; + result = imul(result, 31) + getStringHashCode(this.icon) | 0; + result = imul(result, 31) + getStringHashCode(this.selectedIcon) | 0; + result = imul(result, 31) + getStringHashCode(this.url) | 0; + result = imul(result, 31) + this.defaultId | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KThreePointV3)) + return false; + var tmp0_other_with_cast = other instanceof KThreePointV3 ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.selectedTitle === tmp0_other_with_cast.selectedTitle)) + return false; + if (!(this.subtitle === tmp0_other_with_cast.subtitle)) + return false; + if (!equals(this.reasons, tmp0_other_with_cast.reasons)) + return false; + if (!(this.type === tmp0_other_with_cast.type)) + return false; + if (!this.id.equals(tmp0_other_with_cast.id)) + return false; + if (!(this.selected === tmp0_other_with_cast.selected)) + return false; + if (!(this.icon === tmp0_other_with_cast.icon)) + return false; + if (!(this.selectedIcon === tmp0_other_with_cast.selectedIcon)) + return false; + if (!(this.url === tmp0_other_with_cast.url)) + return false; + if (!(this.defaultId === tmp0_other_with_cast.defaultId)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KThreePointV3_vpx5x_k$(seen1, title, selectedTitle, subtitle, reasons, type, id, selected, icon, selectedIcon, url, defaultId, serializationConstructorMarker) { + Companion_getInstance_590(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_577().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.selectedTitle = ''; + else + $this.selectedTitle = selectedTitle; + if (0 === (seen1 & 4)) + $this.subtitle = ''; + else + $this.subtitle = subtitle; + if (0 === (seen1 & 8)) + $this.reasons = emptyList(); + else + $this.reasons = reasons; + if (0 === (seen1 & 16)) + $this.type = ''; + else + $this.type = type; + if (0 === (seen1 & 32)) + $this.id = new Long(0, 0); + else + $this.id = id; + if (0 === (seen1 & 64)) + $this.selected = 0; + else + $this.selected = selected; + if (0 === (seen1 & 128)) + $this.icon = ''; + else + $this.icon = icon; + if (0 === (seen1 & 256)) + $this.selectedIcon = ''; + else + $this.selectedIcon = selectedIcon; + if (0 === (seen1 & 512)) + $this.url = ''; + else + $this.url = url; + if (0 === (seen1 & 1024)) + $this.defaultId = 0; + else + $this.defaultId = defaultId; + return $this; + } + } + class Companion_591 { + constructor() { + Companion_instance_591 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, new ArrayListSerializer($serializer_getInstance_582()), null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.polymer.app.search.v1.ThreePointV2'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_578(); + } + } + class $serializer_578 { + constructor() { + $serializer_instance_578 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KThreePointV2', this, 5); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('subtitle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('reasons', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('id', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_591().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), tmp0_cached[2], StringSerializer_getInstance(), LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = new Long(0, 0); + var tmp9_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp10_cached = Companion_getInstance_591().$childSerializers_1; + if (tmp9_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp9_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp10_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + } else + while (tmp1_flag) { + tmp2_index = tmp9_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp9_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp10_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp9_input.endStructure_1xqz0n_k$(tmp0_desc); + return KThreePointV2.new_com_bapis_bilibili_polymer_app_search_v1_KThreePointV2_r1n08o_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); + } + serialize_71q453_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_591().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.subtitle === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.subtitle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !equals(value.reasons, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 2, tmp2_cached[2], value.reasons); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.type === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.type); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !value.id.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 4, value.id); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_71q453_k$(encoder, value instanceof KThreePointV2 ? value : THROW_CCE()); + } + } + class KThreePointV2 { + constructor(title, subtitle, reasons, type, id) { + Companion_getInstance_591(); + title = title === VOID ? '' : title; + subtitle = subtitle === VOID ? '' : subtitle; + reasons = reasons === VOID ? emptyList() : reasons; + type = type === VOID ? '' : type; + id = id === VOID ? new Long(0, 0) : id; + this.title = title; + this.subtitle = subtitle; + this.reasons = reasons; + this.type = type; + this.id = id; + } + get_title_iz32un_k$() { + return this.title; + } + get_subtitle_55eoyp_k$() { + return this.subtitle; + } + get_reasons_j52nye_k$() { + return this.reasons; + } + get_type_wovaf7_k$() { + return this.type; + } + get_id_kntnx8_k$() { + return this.id; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.subtitle; + } + component3_7eebsa_k$() { + return this.reasons; + } + component4_7eebs9_k$() { + return this.type; + } + component5_7eebs8_k$() { + return this.id; + } + copy_m0pz9g_k$(title, subtitle, reasons, type, id) { + return new KThreePointV2(title, subtitle, reasons, type, id); + } + copy(title, subtitle, reasons, type, id, $super) { + title = title === VOID ? this.title : title; + subtitle = subtitle === VOID ? this.subtitle : subtitle; + reasons = reasons === VOID ? this.reasons : reasons; + type = type === VOID ? this.type : type; + id = id === VOID ? this.id : id; + return this.copy_m0pz9g_k$(title, subtitle, reasons, type, id); + } + toString() { + return 'KThreePointV2(title=' + this.title + ', subtitle=' + this.subtitle + ', reasons=' + this.reasons + ', type=' + this.type + ', id=' + this.id.toString() + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.subtitle) | 0; + result = imul(result, 31) + hashCode(this.reasons) | 0; + result = imul(result, 31) + getStringHashCode(this.type) | 0; + result = imul(result, 31) + this.id.hashCode() | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KThreePointV2)) + return false; + var tmp0_other_with_cast = other instanceof KThreePointV2 ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.subtitle === tmp0_other_with_cast.subtitle)) + return false; + if (!equals(this.reasons, tmp0_other_with_cast.reasons)) + return false; + if (!(this.type === tmp0_other_with_cast.type)) + return false; + if (!this.id.equals(tmp0_other_with_cast.id)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KThreePointV2_r1n08o_k$(seen1, title, subtitle, reasons, type, id, serializationConstructorMarker) { + Companion_getInstance_591(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_578().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.subtitle = ''; + else + $this.subtitle = subtitle; + if (0 === (seen1 & 4)) + $this.reasons = emptyList(); + else + $this.reasons = reasons; + if (0 === (seen1 & 8)) + $this.type = ''; + else + $this.type = type; + if (0 === (seen1 & 16)) + $this.id = new Long(0, 0); + else + $this.id = id; + return $this; + } + } + class Companion_592 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.Mask'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_579(); + } + } + class $serializer_579 { + constructor() { + $serializer_instance_579 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KMask', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('avatar', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('button', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_517()), get_nullable($serializer_getInstance_580())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_517(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_580(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_517(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_580(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KMask.new_com_bapis_bilibili_polymer_app_search_v1_KMask_tgfoeo_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_u0b157_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.avatar == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_517(), value.avatar); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.button == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_580(), value.button); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_u0b157_k$(encoder, value instanceof KMask ? value : THROW_CCE()); + } + } + class KMask { + constructor(avatar, button) { + Companion_instance_592; + avatar = avatar === VOID ? null : avatar; + button = button === VOID ? null : button; + this.avatar = avatar; + this.button = button; + } + get_avatar_b5pjz6_k$() { + return this.avatar; + } + get_button_bmjiuz_k$() { + return this.button; + } + component1_7eebsc_k$() { + return this.avatar; + } + component2_7eebsb_k$() { + return this.button; + } + copy_tkuisy_k$(avatar, button) { + return new KMask(avatar, button); + } + copy(avatar, button, $super) { + avatar = avatar === VOID ? this.avatar : avatar; + button = button === VOID ? this.button : button; + return this.copy_tkuisy_k$(avatar, button); + } + toString() { + return 'KMask(avatar=' + this.avatar + ', button=' + this.button + ')'; + } + hashCode() { + var result = this.avatar == null ? 0 : this.avatar.hashCode(); + result = imul(result, 31) + (this.button == null ? 0 : this.button.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KMask)) + return false; + var tmp0_other_with_cast = other instanceof KMask ? other : THROW_CCE(); + if (!equals(this.avatar, tmp0_other_with_cast.avatar)) + return false; + if (!equals(this.button, tmp0_other_with_cast.button)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KMask_tgfoeo_k$(seen1, avatar, button, serializationConstructorMarker) { + Companion_instance_592; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_579().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.avatar = null; + else + $this.avatar = avatar; + if (0 === (seen1 & 2)) + $this.button = null; + else + $this.button = button; + return $this; + } + } + class Companion_593 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.Button'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_580(); + } + } + class $serializer_580 { + constructor() { + $serializer_instance_580 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KButton', this, 8); + tmp0_serialDesc.addElement_5pzumi_k$('text', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('param', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('uri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('event', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('selected', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('eventV2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('relation', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_567())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = 0; + var tmp9_local5 = 0; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp12_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_567(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + } else + while (tmp1_flag) { + tmp2_index = tmp12_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_567(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp12_input.endStructure_1xqz0n_k$(tmp0_desc); + return KButton_2.new_com_bapis_bilibili_polymer_app_search_v1_KButton_m7mfst_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null); + } + serialize_46syv9_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.text === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.text); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.param === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.param); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.uri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.uri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.event === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.event); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.selected === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 4, value.selected); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.type === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 5, value.type); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.eventV2 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.eventV2); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.relation == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 7, $serializer_getInstance_567(), value.relation); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_46syv9_k$(encoder, value instanceof KButton_2 ? value : THROW_CCE()); + } + } + class KButton_2 { + constructor(text, param, uri, event, selected, type, eventV2, relation) { + Companion_instance_593; + text = text === VOID ? '' : text; + param = param === VOID ? '' : param; + uri = uri === VOID ? '' : uri; + event = event === VOID ? '' : event; + selected = selected === VOID ? 0 : selected; + type = type === VOID ? 0 : type; + eventV2 = eventV2 === VOID ? '' : eventV2; + relation = relation === VOID ? null : relation; + this.text = text; + this.param = param; + this.uri = uri; + this.event = event; + this.selected = selected; + this.type = type; + this.eventV2 = eventV2; + this.relation = relation; + } + get_text_wouvsm_k$() { + return this.text; + } + get_param_iwqquc_k$() { + return this.param; + } + get_uri_18iuil_k$() { + return this.uri; + } + get_event_ir25pt_k$() { + return this.event; + } + get_selected_c3i7q4_k$() { + return this.selected; + } + get_type_wovaf7_k$() { + return this.type; + } + get_eventV2_lhz9rn_k$() { + return this.eventV2; + } + get_relation_u22tol_k$() { + return this.relation; + } + component1_7eebsc_k$() { + return this.text; + } + component2_7eebsb_k$() { + return this.param; + } + component3_7eebsa_k$() { + return this.uri; + } + component4_7eebs9_k$() { + return this.event; + } + component5_7eebs8_k$() { + return this.selected; + } + component6_7eebs7_k$() { + return this.type; + } + component7_7eebs6_k$() { + return this.eventV2; + } + component8_7eebs5_k$() { + return this.relation; + } + copy_b3v9g_k$(text, param, uri, event, selected, type, eventV2, relation) { + return new KButton_2(text, param, uri, event, selected, type, eventV2, relation); + } + copy(text, param, uri, event, selected, type, eventV2, relation, $super) { + text = text === VOID ? this.text : text; + param = param === VOID ? this.param : param; + uri = uri === VOID ? this.uri : uri; + event = event === VOID ? this.event : event; + selected = selected === VOID ? this.selected : selected; + type = type === VOID ? this.type : type; + eventV2 = eventV2 === VOID ? this.eventV2 : eventV2; + relation = relation === VOID ? this.relation : relation; + return this.copy_b3v9g_k$(text, param, uri, event, selected, type, eventV2, relation); + } + toString() { + return 'KButton(text=' + this.text + ', param=' + this.param + ', uri=' + this.uri + ', event=' + this.event + ', selected=' + this.selected + ', type=' + this.type + ', eventV2=' + this.eventV2 + ', relation=' + this.relation + ')'; + } + hashCode() { + var result = getStringHashCode(this.text); + result = imul(result, 31) + getStringHashCode(this.param) | 0; + result = imul(result, 31) + getStringHashCode(this.uri) | 0; + result = imul(result, 31) + getStringHashCode(this.event) | 0; + result = imul(result, 31) + this.selected | 0; + result = imul(result, 31) + this.type | 0; + result = imul(result, 31) + getStringHashCode(this.eventV2) | 0; + result = imul(result, 31) + (this.relation == null ? 0 : this.relation.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KButton_2)) + return false; + var tmp0_other_with_cast = other instanceof KButton_2 ? other : THROW_CCE(); + if (!(this.text === tmp0_other_with_cast.text)) + return false; + if (!(this.param === tmp0_other_with_cast.param)) + return false; + if (!(this.uri === tmp0_other_with_cast.uri)) + return false; + if (!(this.event === tmp0_other_with_cast.event)) + return false; + if (!(this.selected === tmp0_other_with_cast.selected)) + return false; + if (!(this.type === tmp0_other_with_cast.type)) + return false; + if (!(this.eventV2 === tmp0_other_with_cast.eventV2)) + return false; + if (!equals(this.relation, tmp0_other_with_cast.relation)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KButton_m7mfst_k$(seen1, text, param, uri, event, selected, type, eventV2, relation, serializationConstructorMarker) { + Companion_instance_593; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_580().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.text = ''; + else + $this.text = text; + if (0 === (seen1 & 2)) + $this.param = ''; + else + $this.param = param; + if (0 === (seen1 & 4)) + $this.uri = ''; + else + $this.uri = uri; + if (0 === (seen1 & 8)) + $this.event = ''; + else + $this.event = event; + if (0 === (seen1 & 16)) + $this.selected = 0; + else + $this.selected = selected; + if (0 === (seen1 & 32)) + $this.type = 0; + else + $this.type = type; + if (0 === (seen1 & 64)) + $this.eventV2 = ''; + else + $this.eventV2 = eventV2; + if (0 === (seen1 & 128)) + $this.relation = null; + else + $this.relation = relation; + return $this; + } + } + class Companion_594 { + constructor() { + Companion_instance_594 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer($serializer_getInstance_582()), new ArrayListSerializer($serializer_getInstance_582()), null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.polymer.app.search.v1.ThreePoint2'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_581(); + } + } + class $serializer_581 { + constructor() { + $serializer_instance_581 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KThreePoint2', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('dislikeReasons', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('feedbacks', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('watchLater', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_594().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0], tmp0_cached[1], IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = 0; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp8_cached = Companion_getInstance_594().$childSerializers_1; + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp8_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp8_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp8_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp8_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KThreePoint2.new_com_bapis_bilibili_polymer_app_search_v1_KThreePoint2_rz4xij_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_qo5ibz_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_594().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.dislikeReasons, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.dislikeReasons); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !equals(value.feedbacks, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 1, tmp2_cached[1], value.feedbacks); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.watchLater === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.watchLater); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_qo5ibz_k$(encoder, value instanceof KThreePoint2 ? value : THROW_CCE()); + } + } + class KThreePoint2 { + constructor(dislikeReasons, feedbacks, watchLater) { + Companion_getInstance_594(); + dislikeReasons = dislikeReasons === VOID ? emptyList() : dislikeReasons; + feedbacks = feedbacks === VOID ? emptyList() : feedbacks; + watchLater = watchLater === VOID ? 0 : watchLater; + this.dislikeReasons = dislikeReasons; + this.feedbacks = feedbacks; + this.watchLater = watchLater; + } + get_dislikeReasons_tdrsj1_k$() { + return this.dislikeReasons; + } + get_feedbacks_imtvrv_k$() { + return this.feedbacks; + } + get_watchLater_m4hv96_k$() { + return this.watchLater; + } + component1_7eebsc_k$() { + return this.dislikeReasons; + } + component2_7eebsb_k$() { + return this.feedbacks; + } + component3_7eebsa_k$() { + return this.watchLater; + } + copy_ima81n_k$(dislikeReasons, feedbacks, watchLater) { + return new KThreePoint2(dislikeReasons, feedbacks, watchLater); + } + copy(dislikeReasons, feedbacks, watchLater, $super) { + dislikeReasons = dislikeReasons === VOID ? this.dislikeReasons : dislikeReasons; + feedbacks = feedbacks === VOID ? this.feedbacks : feedbacks; + watchLater = watchLater === VOID ? this.watchLater : watchLater; + return this.copy_ima81n_k$(dislikeReasons, feedbacks, watchLater); + } + toString() { + return 'KThreePoint2(dislikeReasons=' + this.dislikeReasons + ', feedbacks=' + this.feedbacks + ', watchLater=' + this.watchLater + ')'; + } + hashCode() { + var result = hashCode(this.dislikeReasons); + result = imul(result, 31) + hashCode(this.feedbacks) | 0; + result = imul(result, 31) + this.watchLater | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KThreePoint2)) + return false; + var tmp0_other_with_cast = other instanceof KThreePoint2 ? other : THROW_CCE(); + if (!equals(this.dislikeReasons, tmp0_other_with_cast.dislikeReasons)) + return false; + if (!equals(this.feedbacks, tmp0_other_with_cast.feedbacks)) + return false; + if (!(this.watchLater === tmp0_other_with_cast.watchLater)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KThreePoint2_rz4xij_k$(seen1, dislikeReasons, feedbacks, watchLater, serializationConstructorMarker) { + Companion_getInstance_594(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_581().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.dislikeReasons = emptyList(); + else + $this.dislikeReasons = dislikeReasons; + if (0 === (seen1 & 2)) + $this.feedbacks = emptyList(); + else + $this.feedbacks = feedbacks; + if (0 === (seen1 & 4)) + $this.watchLater = 0; + else + $this.watchLater = watchLater; + return $this; + } + } + class Companion_595 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.DislikeReason'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_582(); + } + } + class $serializer_582 { + constructor() { + $serializer_instance_582 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KDislikeReason', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('id', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('name', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KDislikeReason.new_com_bapis_bilibili_polymer_app_search_v1_KDislikeReason_ah6a19_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_qn5o56_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.id === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.id); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.name === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.name); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_qn5o56_k$(encoder, value instanceof KDislikeReason ? value : THROW_CCE()); + } + } + class KDislikeReason { + constructor(id, name) { + Companion_instance_595; + id = id === VOID ? 0 : id; + name = name === VOID ? '' : name; + this.id = id; + this.name = name; + } + get_id_kntnx8_k$() { + return this.id; + } + get_name_woqyms_k$() { + return this.name; + } + component1_7eebsc_k$() { + return this.id; + } + component2_7eebsb_k$() { + return this.name; + } + copy_xhhsuv_k$(id, name) { + return new KDislikeReason(id, name); + } + copy(id, name, $super) { + id = id === VOID ? this.id : id; + name = name === VOID ? this.name : name; + return this.copy_xhhsuv_k$(id, name); + } + toString() { + return 'KDislikeReason(id=' + this.id + ', name=' + this.name + ')'; + } + hashCode() { + var result = this.id; + result = imul(result, 31) + getStringHashCode(this.name) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KDislikeReason)) + return false; + var tmp0_other_with_cast = other instanceof KDislikeReason ? other : THROW_CCE(); + if (!(this.id === tmp0_other_with_cast.id)) + return false; + if (!(this.name === tmp0_other_with_cast.name)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KDislikeReason_ah6a19_k$(seen1, id, name, serializationConstructorMarker) { + Companion_instance_595; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_582().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.id = 0; + else + $this.id = id; + if (0 === (seen1 & 2)) + $this.name = ''; + else + $this.name = name; + return $this; + } + } + class Companion_596 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.PlayerArgs'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_583(); + } + } + class $serializer_583 { + constructor() { + $serializer_instance_583 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KPlayerArgs', this, 16); + tmp0_serialDesc.addElement_5pzumi_k$('isLive', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('aid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('cid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('subType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('roomId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('epId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('isPreview', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('duration', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('seasonId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('reportRequiredPlayDuration', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + tmp0_serialDesc.addElement_5pzumi_k$('reportRequiredTime', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(13)); + tmp0_serialDesc.addElement_5pzumi_k$('manualPlay', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(14)); + tmp0_serialDesc.addElement_5pzumi_k$('hidePlayButton', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(15)); + tmp0_serialDesc.addElement_5pzumi_k$('contentMode', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(16)); + tmp0_serialDesc.addElement_5pzumi_k$('reportHistory', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(17)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), BooleanSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = new Long(0, 0); + var tmp6_local2 = new Long(0, 0); + var tmp7_local3 = 0; + var tmp8_local4 = new Long(0, 0); + var tmp9_local5 = new Long(0, 0); + var tmp10_local6 = 0; + var tmp11_local7 = null; + var tmp12_local8 = 0; + var tmp13_local9 = new Long(0, 0); + var tmp14_local10 = 0; + var tmp15_local11 = 0; + var tmp16_local12 = 0; + var tmp17_local13 = false; + var tmp18_local14 = 0; + var tmp19_local15 = 0; + var tmp20_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp20_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp20_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp20_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp20_input.decodeLongElement_994anb_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp20_input.decodeLongElement_994anb_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp20_input.decodeLongElement_994anb_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + tmp16_local12 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + tmp17_local13 = tmp20_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + tmp18_local14 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + tmp19_local15 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + } else + while (tmp1_flag) { + tmp2_index = tmp20_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp20_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp20_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp20_input.decodeLongElement_994anb_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp20_input.decodeLongElement_994anb_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp20_input.decodeLongElement_994anb_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + case 12: + tmp16_local12 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + break; + case 13: + tmp17_local13 = tmp20_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + break; + case 14: + tmp18_local14 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + break; + case 15: + tmp19_local15 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp20_input.endStructure_1xqz0n_k$(tmp0_desc); + return KPlayerArgs_0.new_com_bapis_bilibili_polymer_app_search_v1_KPlayerArgs_ttosp_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, tmp18_local14, tmp19_local15, null); + } + serialize_vo9brt_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.isLive === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.isLive); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.aid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.aid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.cid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.cid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.subType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 3, value.subType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !value.roomId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 4, value.roomId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !value.epId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 5, value.epId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.isPreview === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 6, value.isPreview); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.type === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.type); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.duration === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 8, value.duration); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !value.seasonId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 9, value.seasonId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.reportRequiredPlayDuration === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 10, value.reportRequiredPlayDuration); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.reportRequiredTime === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 11, value.reportRequiredTime); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !(value.manualPlay === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 12, value.manualPlay); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 13) ? true : !(value.hidePlayButton === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 13, value.hidePlayButton); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 14) ? true : !(value.contentMode === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 14, value.contentMode); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 15) ? true : !(value.reportHistory === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 15, value.reportHistory); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_vo9brt_k$(encoder, value instanceof KPlayerArgs_0 ? value : THROW_CCE()); + } + } + class KPlayerArgs_0 { + constructor(isLive, aid, cid, subType, roomId, epId, isPreview, type, duration, seasonId, reportRequiredPlayDuration, reportRequiredTime, manualPlay, hidePlayButton, contentMode, reportHistory) { + Companion_instance_596; + isLive = isLive === VOID ? 0 : isLive; + aid = aid === VOID ? new Long(0, 0) : aid; + cid = cid === VOID ? new Long(0, 0) : cid; + subType = subType === VOID ? 0 : subType; + roomId = roomId === VOID ? new Long(0, 0) : roomId; + epId = epId === VOID ? new Long(0, 0) : epId; + isPreview = isPreview === VOID ? 0 : isPreview; + type = type === VOID ? '' : type; + duration = duration === VOID ? 0 : duration; + seasonId = seasonId === VOID ? new Long(0, 0) : seasonId; + reportRequiredPlayDuration = reportRequiredPlayDuration === VOID ? 0 : reportRequiredPlayDuration; + reportRequiredTime = reportRequiredTime === VOID ? 0 : reportRequiredTime; + manualPlay = manualPlay === VOID ? 0 : manualPlay; + hidePlayButton = hidePlayButton === VOID ? false : hidePlayButton; + contentMode = contentMode === VOID ? 0 : contentMode; + reportHistory = reportHistory === VOID ? 0 : reportHistory; + this.isLive = isLive; + this.aid = aid; + this.cid = cid; + this.subType = subType; + this.roomId = roomId; + this.epId = epId; + this.isPreview = isPreview; + this.type = type; + this.duration = duration; + this.seasonId = seasonId; + this.reportRequiredPlayDuration = reportRequiredPlayDuration; + this.reportRequiredTime = reportRequiredTime; + this.manualPlay = manualPlay; + this.hidePlayButton = hidePlayButton; + this.contentMode = contentMode; + this.reportHistory = reportHistory; + } + get_isLive_ew1iyn_k$() { + return this.isLive; + } + get_aid_18j9kd_k$() { + return this.aid; + } + get_cid_18j82z_k$() { + return this.cid; + } + get_subType_tmwy1b_k$() { + return this.subType; + } + get_roomId_j3vckf_k$() { + return this.roomId; + } + get_epId_woli0f_k$() { + return this.epId; + } + get_isPreview_6c3nmz_k$() { + return this.isPreview; + } + get_type_wovaf7_k$() { + return this.type; + } + get_duration_6a6kpp_k$() { + return this.duration; + } + get_seasonId_h33f15_k$() { + return this.seasonId; + } + get_reportRequiredPlayDuration_bq8jr8_k$() { + return this.reportRequiredPlayDuration; + } + get_reportRequiredTime_li4p3r_k$() { + return this.reportRequiredTime; + } + get_manualPlay_rrr1r7_k$() { + return this.manualPlay; + } + get_hidePlayButton_xv9ndb_k$() { + return this.hidePlayButton; + } + get_contentMode_7ge4ib_k$() { + return this.contentMode; + } + get_reportHistory_kntd5_k$() { + return this.reportHistory; + } + component1_7eebsc_k$() { + return this.isLive; + } + component2_7eebsb_k$() { + return this.aid; + } + component3_7eebsa_k$() { + return this.cid; + } + component4_7eebs9_k$() { + return this.subType; + } + component5_7eebs8_k$() { + return this.roomId; + } + component6_7eebs7_k$() { + return this.epId; + } + component7_7eebs6_k$() { + return this.isPreview; + } + component8_7eebs5_k$() { + return this.type; + } + component9_7eebs4_k$() { + return this.duration; + } + component10_gazzfo_k$() { + return this.seasonId; + } + component11_gazzfn_k$() { + return this.reportRequiredPlayDuration; + } + component12_gazzfm_k$() { + return this.reportRequiredTime; + } + component13_gazzfl_k$() { + return this.manualPlay; + } + component14_gazzfk_k$() { + return this.hidePlayButton; + } + component15_gazzfj_k$() { + return this.contentMode; + } + component16_gazzfi_k$() { + return this.reportHistory; + } + copy_g7h418_k$(isLive, aid, cid, subType, roomId, epId, isPreview, type, duration, seasonId, reportRequiredPlayDuration, reportRequiredTime, manualPlay, hidePlayButton, contentMode, reportHistory) { + return new KPlayerArgs_0(isLive, aid, cid, subType, roomId, epId, isPreview, type, duration, seasonId, reportRequiredPlayDuration, reportRequiredTime, manualPlay, hidePlayButton, contentMode, reportHistory); + } + copy(isLive, aid, cid, subType, roomId, epId, isPreview, type, duration, seasonId, reportRequiredPlayDuration, reportRequiredTime, manualPlay, hidePlayButton, contentMode, reportHistory, $super) { + isLive = isLive === VOID ? this.isLive : isLive; + aid = aid === VOID ? this.aid : aid; + cid = cid === VOID ? this.cid : cid; + subType = subType === VOID ? this.subType : subType; + roomId = roomId === VOID ? this.roomId : roomId; + epId = epId === VOID ? this.epId : epId; + isPreview = isPreview === VOID ? this.isPreview : isPreview; + type = type === VOID ? this.type : type; + duration = duration === VOID ? this.duration : duration; + seasonId = seasonId === VOID ? this.seasonId : seasonId; + reportRequiredPlayDuration = reportRequiredPlayDuration === VOID ? this.reportRequiredPlayDuration : reportRequiredPlayDuration; + reportRequiredTime = reportRequiredTime === VOID ? this.reportRequiredTime : reportRequiredTime; + manualPlay = manualPlay === VOID ? this.manualPlay : manualPlay; + hidePlayButton = hidePlayButton === VOID ? this.hidePlayButton : hidePlayButton; + contentMode = contentMode === VOID ? this.contentMode : contentMode; + reportHistory = reportHistory === VOID ? this.reportHistory : reportHistory; + return this.copy_g7h418_k$(isLive, aid, cid, subType, roomId, epId, isPreview, type, duration, seasonId, reportRequiredPlayDuration, reportRequiredTime, manualPlay, hidePlayButton, contentMode, reportHistory); + } + toString() { + return 'KPlayerArgs(isLive=' + this.isLive + ', aid=' + this.aid.toString() + ', cid=' + this.cid.toString() + ', subType=' + this.subType + ', roomId=' + this.roomId.toString() + ', epId=' + this.epId.toString() + ', isPreview=' + this.isPreview + ', type=' + this.type + ', duration=' + this.duration + ', seasonId=' + this.seasonId.toString() + ', reportRequiredPlayDuration=' + this.reportRequiredPlayDuration + ', reportRequiredTime=' + this.reportRequiredTime + ', manualPlay=' + this.manualPlay + ', hidePlayButton=' + this.hidePlayButton + ', contentMode=' + this.contentMode + ', reportHistory=' + this.reportHistory + ')'; + } + hashCode() { + var result = this.isLive; + result = imul(result, 31) + this.aid.hashCode() | 0; + result = imul(result, 31) + this.cid.hashCode() | 0; + result = imul(result, 31) + this.subType | 0; + result = imul(result, 31) + this.roomId.hashCode() | 0; + result = imul(result, 31) + this.epId.hashCode() | 0; + result = imul(result, 31) + this.isPreview | 0; + result = imul(result, 31) + getStringHashCode(this.type) | 0; + result = imul(result, 31) + this.duration | 0; + result = imul(result, 31) + this.seasonId.hashCode() | 0; + result = imul(result, 31) + this.reportRequiredPlayDuration | 0; + result = imul(result, 31) + this.reportRequiredTime | 0; + result = imul(result, 31) + this.manualPlay | 0; + result = imul(result, 31) + getBooleanHashCode(this.hidePlayButton) | 0; + result = imul(result, 31) + this.contentMode | 0; + result = imul(result, 31) + this.reportHistory | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KPlayerArgs_0)) + return false; + var tmp0_other_with_cast = other instanceof KPlayerArgs_0 ? other : THROW_CCE(); + if (!(this.isLive === tmp0_other_with_cast.isLive)) + return false; + if (!this.aid.equals(tmp0_other_with_cast.aid)) + return false; + if (!this.cid.equals(tmp0_other_with_cast.cid)) + return false; + if (!(this.subType === tmp0_other_with_cast.subType)) + return false; + if (!this.roomId.equals(tmp0_other_with_cast.roomId)) + return false; + if (!this.epId.equals(tmp0_other_with_cast.epId)) + return false; + if (!(this.isPreview === tmp0_other_with_cast.isPreview)) + return false; + if (!(this.type === tmp0_other_with_cast.type)) + return false; + if (!(this.duration === tmp0_other_with_cast.duration)) + return false; + if (!this.seasonId.equals(tmp0_other_with_cast.seasonId)) + return false; + if (!(this.reportRequiredPlayDuration === tmp0_other_with_cast.reportRequiredPlayDuration)) + return false; + if (!(this.reportRequiredTime === tmp0_other_with_cast.reportRequiredTime)) + return false; + if (!(this.manualPlay === tmp0_other_with_cast.manualPlay)) + return false; + if (!(this.hidePlayButton === tmp0_other_with_cast.hidePlayButton)) + return false; + if (!(this.contentMode === tmp0_other_with_cast.contentMode)) + return false; + if (!(this.reportHistory === tmp0_other_with_cast.reportHistory)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KPlayerArgs_ttosp_k$(seen1, isLive, aid, cid, subType, roomId, epId, isPreview, type, duration, seasonId, reportRequiredPlayDuration, reportRequiredTime, manualPlay, hidePlayButton, contentMode, reportHistory, serializationConstructorMarker) { + Companion_instance_596; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_583().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.isLive = 0; + else + $this.isLive = isLive; + if (0 === (seen1 & 2)) + $this.aid = new Long(0, 0); + else + $this.aid = aid; + if (0 === (seen1 & 4)) + $this.cid = new Long(0, 0); + else + $this.cid = cid; + if (0 === (seen1 & 8)) + $this.subType = 0; + else + $this.subType = subType; + if (0 === (seen1 & 16)) + $this.roomId = new Long(0, 0); + else + $this.roomId = roomId; + if (0 === (seen1 & 32)) + $this.epId = new Long(0, 0); + else + $this.epId = epId; + if (0 === (seen1 & 64)) + $this.isPreview = 0; + else + $this.isPreview = isPreview; + if (0 === (seen1 & 128)) + $this.type = ''; + else + $this.type = type; + if (0 === (seen1 & 256)) + $this.duration = 0; + else + $this.duration = duration; + if (0 === (seen1 & 512)) + $this.seasonId = new Long(0, 0); + else + $this.seasonId = seasonId; + if (0 === (seen1 & 1024)) + $this.reportRequiredPlayDuration = 0; + else + $this.reportRequiredPlayDuration = reportRequiredPlayDuration; + if (0 === (seen1 & 2048)) + $this.reportRequiredTime = 0; + else + $this.reportRequiredTime = reportRequiredTime; + if (0 === (seen1 & 4096)) + $this.manualPlay = 0; + else + $this.manualPlay = manualPlay; + if (0 === (seen1 & 8192)) + $this.hidePlayButton = false; + else + $this.hidePlayButton = hidePlayButton; + if (0 === (seen1 & 16384)) + $this.contentMode = 0; + else + $this.contentMode = contentMode; + if (0 === (seen1 & 32768)) + $this.reportHistory = 0; + else + $this.reportHistory = reportHistory; + return $this; + } + } + class Companion_597 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.RightTopLiveBadge'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_584(); + } + } + class $serializer_584 { + constructor() { + $serializer_instance_584 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KRightTopLiveBadge', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('liveStatus', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('inLive', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('liveStatsDesc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), get_nullable($serializer_getInstance_586()), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_586(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_586(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KRightTopLiveBadge.new_com_bapis_bilibili_polymer_app_search_v1_KRightTopLiveBadge_4t28v6_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_cosaj3_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.liveStatus === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.liveStatus); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.inLive == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_586(), value.inLive); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.liveStatsDesc === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.liveStatsDesc); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_cosaj3_k$(encoder, value instanceof KRightTopLiveBadge ? value : THROW_CCE()); + } + } + class KRightTopLiveBadge { + constructor(liveStatus, inLive, liveStatsDesc) { + Companion_instance_597; + liveStatus = liveStatus === VOID ? 0 : liveStatus; + inLive = inLive === VOID ? null : inLive; + liveStatsDesc = liveStatsDesc === VOID ? '' : liveStatsDesc; + this.liveStatus = liveStatus; + this.inLive = inLive; + this.liveStatsDesc = liveStatsDesc; + } + get_liveStatus_5s32ih_k$() { + return this.liveStatus; + } + get_inLive_etajzu_k$() { + return this.inLive; + } + get_liveStatsDesc_hh73z9_k$() { + return this.liveStatsDesc; + } + component1_7eebsc_k$() { + return this.liveStatus; + } + component2_7eebsb_k$() { + return this.inLive; + } + component3_7eebsa_k$() { + return this.liveStatsDesc; + } + copy_gqen0p_k$(liveStatus, inLive, liveStatsDesc) { + return new KRightTopLiveBadge(liveStatus, inLive, liveStatsDesc); + } + copy(liveStatus, inLive, liveStatsDesc, $super) { + liveStatus = liveStatus === VOID ? this.liveStatus : liveStatus; + inLive = inLive === VOID ? this.inLive : inLive; + liveStatsDesc = liveStatsDesc === VOID ? this.liveStatsDesc : liveStatsDesc; + return this.copy_gqen0p_k$(liveStatus, inLive, liveStatsDesc); + } + toString() { + return 'KRightTopLiveBadge(liveStatus=' + this.liveStatus + ', inLive=' + this.inLive + ', liveStatsDesc=' + this.liveStatsDesc + ')'; + } + hashCode() { + var result = this.liveStatus; + result = imul(result, 31) + (this.inLive == null ? 0 : this.inLive.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.liveStatsDesc) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KRightTopLiveBadge)) + return false; + var tmp0_other_with_cast = other instanceof KRightTopLiveBadge ? other : THROW_CCE(); + if (!(this.liveStatus === tmp0_other_with_cast.liveStatus)) + return false; + if (!equals(this.inLive, tmp0_other_with_cast.inLive)) + return false; + if (!(this.liveStatsDesc === tmp0_other_with_cast.liveStatsDesc)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KRightTopLiveBadge_4t28v6_k$(seen1, liveStatus, inLive, liveStatsDesc, serializationConstructorMarker) { + Companion_instance_597; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_584().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.liveStatus = 0; + else + $this.liveStatus = liveStatus; + if (0 === (seen1 & 2)) + $this.inLive = null; + else + $this.inLive = inLive; + if (0 === (seen1 & 4)) + $this.liveStatsDesc = ''; + else + $this.liveStatsDesc = liveStatsDesc; + return $this; + } + } + class Companion_598 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.InlineProgressBar'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_585(); + } + } + class $serializer_585 { + constructor() { + $serializer_instance_585 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KInlineProgressBar', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('iconDrag', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('iconDragHash', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('iconStop', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('iconStopHash', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KInlineProgressBar.new_com_bapis_bilibili_polymer_app_search_v1_KInlineProgressBar_myyyi4_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_ob9ldq_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.iconDrag === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.iconDrag); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.iconDragHash === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.iconDragHash); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.iconStop === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.iconStop); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.iconStopHash === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.iconStopHash); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_ob9ldq_k$(encoder, value instanceof KInlineProgressBar ? value : THROW_CCE()); + } + } + class KInlineProgressBar { + constructor(iconDrag, iconDragHash, iconStop, iconStopHash) { + Companion_instance_598; + iconDrag = iconDrag === VOID ? '' : iconDrag; + iconDragHash = iconDragHash === VOID ? '' : iconDragHash; + iconStop = iconStop === VOID ? '' : iconStop; + iconStopHash = iconStopHash === VOID ? '' : iconStopHash; + this.iconDrag = iconDrag; + this.iconDragHash = iconDragHash; + this.iconStop = iconStop; + this.iconStopHash = iconStopHash; + } + get_iconDrag_r0jxg6_k$() { + return this.iconDrag; + } + get_iconDragHash_hn7iv8_k$() { + return this.iconDragHash; + } + get_iconStop_r0tk2s_k$() { + return this.iconStop; + } + get_iconStopHash_b3ubqm_k$() { + return this.iconStopHash; + } + component1_7eebsc_k$() { + return this.iconDrag; + } + component2_7eebsb_k$() { + return this.iconDragHash; + } + component3_7eebsa_k$() { + return this.iconStop; + } + component4_7eebs9_k$() { + return this.iconStopHash; + } + copy_hmmiyd_k$(iconDrag, iconDragHash, iconStop, iconStopHash) { + return new KInlineProgressBar(iconDrag, iconDragHash, iconStop, iconStopHash); + } + copy(iconDrag, iconDragHash, iconStop, iconStopHash, $super) { + iconDrag = iconDrag === VOID ? this.iconDrag : iconDrag; + iconDragHash = iconDragHash === VOID ? this.iconDragHash : iconDragHash; + iconStop = iconStop === VOID ? this.iconStop : iconStop; + iconStopHash = iconStopHash === VOID ? this.iconStopHash : iconStopHash; + return this.copy_hmmiyd_k$(iconDrag, iconDragHash, iconStop, iconStopHash); + } + toString() { + return 'KInlineProgressBar(iconDrag=' + this.iconDrag + ', iconDragHash=' + this.iconDragHash + ', iconStop=' + this.iconStop + ', iconStopHash=' + this.iconStopHash + ')'; + } + hashCode() { + var result = getStringHashCode(this.iconDrag); + result = imul(result, 31) + getStringHashCode(this.iconDragHash) | 0; + result = imul(result, 31) + getStringHashCode(this.iconStop) | 0; + result = imul(result, 31) + getStringHashCode(this.iconStopHash) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KInlineProgressBar)) + return false; + var tmp0_other_with_cast = other instanceof KInlineProgressBar ? other : THROW_CCE(); + if (!(this.iconDrag === tmp0_other_with_cast.iconDrag)) + return false; + if (!(this.iconDragHash === tmp0_other_with_cast.iconDragHash)) + return false; + if (!(this.iconStop === tmp0_other_with_cast.iconStop)) + return false; + if (!(this.iconStopHash === tmp0_other_with_cast.iconStopHash)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KInlineProgressBar_myyyi4_k$(seen1, iconDrag, iconDragHash, iconStop, iconStopHash, serializationConstructorMarker) { + Companion_instance_598; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_585().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.iconDrag = ''; + else + $this.iconDrag = iconDrag; + if (0 === (seen1 & 2)) + $this.iconDragHash = ''; + else + $this.iconDragHash = iconDragHash; + if (0 === (seen1 & 4)) + $this.iconStop = ''; + else + $this.iconStop = iconStop; + if (0 === (seen1 & 8)) + $this.iconStopHash = ''; + else + $this.iconStopHash = iconStopHash; + return $this; + } + } + class Companion_599 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.LiveBadgeResource'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_586(); + } + } + class $serializer_586 { + constructor() { + $serializer_instance_586 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KLiveBadgeResource', this, 8); + tmp0_serialDesc.addElement_5pzumi_k$('text', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('animationUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('animationUrlHash', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('backgroundColorLight', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('backgroundColorNight', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('alphaLight', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('alphaNight', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('fontColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = new Long(0, 0); + var tmp10_local6 = new Long(0, 0); + var tmp11_local7 = null; + var tmp12_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp12_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + } else + while (tmp1_flag) { + tmp2_index = tmp12_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp12_input.endStructure_1xqz0n_k$(tmp0_desc); + return KLiveBadgeResource.new_com_bapis_bilibili_polymer_app_search_v1_KLiveBadgeResource_fbxfs2_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null); + } + serialize_i93n2i_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.text === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.text); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.animationUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.animationUrl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.animationUrlHash === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.animationUrlHash); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.backgroundColorLight === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.backgroundColorLight); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.backgroundColorNight === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.backgroundColorNight); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !value.alphaLight.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 5, value.alphaLight); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !value.alphaNight.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 6, value.alphaNight); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.fontColor === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.fontColor); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_i93n2i_k$(encoder, value instanceof KLiveBadgeResource ? value : THROW_CCE()); + } + } + class KLiveBadgeResource { + constructor(text, animationUrl, animationUrlHash, backgroundColorLight, backgroundColorNight, alphaLight, alphaNight, fontColor) { + Companion_instance_599; + text = text === VOID ? '' : text; + animationUrl = animationUrl === VOID ? '' : animationUrl; + animationUrlHash = animationUrlHash === VOID ? '' : animationUrlHash; + backgroundColorLight = backgroundColorLight === VOID ? '' : backgroundColorLight; + backgroundColorNight = backgroundColorNight === VOID ? '' : backgroundColorNight; + alphaLight = alphaLight === VOID ? new Long(0, 0) : alphaLight; + alphaNight = alphaNight === VOID ? new Long(0, 0) : alphaNight; + fontColor = fontColor === VOID ? '' : fontColor; + this.text = text; + this.animationUrl = animationUrl; + this.animationUrlHash = animationUrlHash; + this.backgroundColorLight = backgroundColorLight; + this.backgroundColorNight = backgroundColorNight; + this.alphaLight = alphaLight; + this.alphaNight = alphaNight; + this.fontColor = fontColor; + } + get_text_wouvsm_k$() { + return this.text; + } + get_animationUrl_nyh3f8_k$() { + return this.animationUrl; + } + get_animationUrlHash_x3x32a_k$() { + return this.animationUrlHash; + } + get_backgroundColorLight_uqkeba_k$() { + return this.backgroundColorLight; + } + get_backgroundColorNight_upgt4k_k$() { + return this.backgroundColorNight; + } + get_alphaLight_ui4fs1_k$() { + return this.alphaLight; + } + get_alphaNight_uj80yr_k$() { + return this.alphaNight; + } + get_fontColor_hdrgid_k$() { + return this.fontColor; + } + component1_7eebsc_k$() { + return this.text; + } + component2_7eebsb_k$() { + return this.animationUrl; + } + component3_7eebsa_k$() { + return this.animationUrlHash; + } + component4_7eebs9_k$() { + return this.backgroundColorLight; + } + component5_7eebs8_k$() { + return this.backgroundColorNight; + } + component6_7eebs7_k$() { + return this.alphaLight; + } + component7_7eebs6_k$() { + return this.alphaNight; + } + component8_7eebs5_k$() { + return this.fontColor; + } + copy_w7x69l_k$(text, animationUrl, animationUrlHash, backgroundColorLight, backgroundColorNight, alphaLight, alphaNight, fontColor) { + return new KLiveBadgeResource(text, animationUrl, animationUrlHash, backgroundColorLight, backgroundColorNight, alphaLight, alphaNight, fontColor); + } + copy(text, animationUrl, animationUrlHash, backgroundColorLight, backgroundColorNight, alphaLight, alphaNight, fontColor, $super) { + text = text === VOID ? this.text : text; + animationUrl = animationUrl === VOID ? this.animationUrl : animationUrl; + animationUrlHash = animationUrlHash === VOID ? this.animationUrlHash : animationUrlHash; + backgroundColorLight = backgroundColorLight === VOID ? this.backgroundColorLight : backgroundColorLight; + backgroundColorNight = backgroundColorNight === VOID ? this.backgroundColorNight : backgroundColorNight; + alphaLight = alphaLight === VOID ? this.alphaLight : alphaLight; + alphaNight = alphaNight === VOID ? this.alphaNight : alphaNight; + fontColor = fontColor === VOID ? this.fontColor : fontColor; + return this.copy_w7x69l_k$(text, animationUrl, animationUrlHash, backgroundColorLight, backgroundColorNight, alphaLight, alphaNight, fontColor); + } + toString() { + return 'KLiveBadgeResource(text=' + this.text + ', animationUrl=' + this.animationUrl + ', animationUrlHash=' + this.animationUrlHash + ', backgroundColorLight=' + this.backgroundColorLight + ', backgroundColorNight=' + this.backgroundColorNight + ', alphaLight=' + this.alphaLight.toString() + ', alphaNight=' + this.alphaNight.toString() + ', fontColor=' + this.fontColor + ')'; + } + hashCode() { + var result = getStringHashCode(this.text); + result = imul(result, 31) + getStringHashCode(this.animationUrl) | 0; + result = imul(result, 31) + getStringHashCode(this.animationUrlHash) | 0; + result = imul(result, 31) + getStringHashCode(this.backgroundColorLight) | 0; + result = imul(result, 31) + getStringHashCode(this.backgroundColorNight) | 0; + result = imul(result, 31) + this.alphaLight.hashCode() | 0; + result = imul(result, 31) + this.alphaNight.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.fontColor) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KLiveBadgeResource)) + return false; + var tmp0_other_with_cast = other instanceof KLiveBadgeResource ? other : THROW_CCE(); + if (!(this.text === tmp0_other_with_cast.text)) + return false; + if (!(this.animationUrl === tmp0_other_with_cast.animationUrl)) + return false; + if (!(this.animationUrlHash === tmp0_other_with_cast.animationUrlHash)) + return false; + if (!(this.backgroundColorLight === tmp0_other_with_cast.backgroundColorLight)) + return false; + if (!(this.backgroundColorNight === tmp0_other_with_cast.backgroundColorNight)) + return false; + if (!this.alphaLight.equals(tmp0_other_with_cast.alphaLight)) + return false; + if (!this.alphaNight.equals(tmp0_other_with_cast.alphaNight)) + return false; + if (!(this.fontColor === tmp0_other_with_cast.fontColor)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KLiveBadgeResource_fbxfs2_k$(seen1, text, animationUrl, animationUrlHash, backgroundColorLight, backgroundColorNight, alphaLight, alphaNight, fontColor, serializationConstructorMarker) { + Companion_instance_599; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_586().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.text = ''; + else + $this.text = text; + if (0 === (seen1 & 2)) + $this.animationUrl = ''; + else + $this.animationUrl = animationUrl; + if (0 === (seen1 & 4)) + $this.animationUrlHash = ''; + else + $this.animationUrlHash = animationUrlHash; + if (0 === (seen1 & 8)) + $this.backgroundColorLight = ''; + else + $this.backgroundColorLight = backgroundColorLight; + if (0 === (seen1 & 16)) + $this.backgroundColorNight = ''; + else + $this.backgroundColorNight = backgroundColorNight; + if (0 === (seen1 & 32)) + $this.alphaLight = new Long(0, 0); + else + $this.alphaLight = alphaLight; + if (0 === (seen1 & 64)) + $this.alphaNight = new Long(0, 0); + else + $this.alphaNight = alphaNight; + if (0 === (seen1 & 128)) + $this.fontColor = ''; + else + $this.fontColor = fontColor; + return $this; + } + } + class Companion_600 { + constructor() { + Companion_instance_600 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, new ArrayListSerializer($serializer_getInstance_588()), null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.polymer.app.search.v1.TrafficConfig'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_587(); + } + } + class $serializer_587 { + constructor() { + $serializer_instance_587 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KTrafficConfig', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('options', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('defaultOptionId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_600().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), tmp0_cached[1], LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = new Long(0, 0); + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp8_cached = Companion_getInstance_600().$childSerializers_1; + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp8_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp8_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KTrafficConfig.new_com_bapis_bilibili_polymer_app_search_v1_KTrafficConfig_cdummm_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_rp7z0w_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_600().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !equals(value.options, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 1, tmp2_cached[1], value.options); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.defaultOptionId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.defaultOptionId); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_rp7z0w_k$(encoder, value instanceof KTrafficConfig ? value : THROW_CCE()); + } + } + class KTrafficConfig { + constructor(title, options, defaultOptionId) { + Companion_getInstance_600(); + title = title === VOID ? '' : title; + options = options === VOID ? emptyList() : options; + defaultOptionId = defaultOptionId === VOID ? new Long(0, 0) : defaultOptionId; + this.title = title; + this.options = options; + this.defaultOptionId = defaultOptionId; + } + get_title_iz32un_k$() { + return this.title; + } + get_options_jecmyz_k$() { + return this.options; + } + get_defaultOptionId_fxc6g_k$() { + return this.defaultOptionId; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.options; + } + component3_7eebsa_k$() { + return this.defaultOptionId; + } + copy_4a3usz_k$(title, options, defaultOptionId) { + return new KTrafficConfig(title, options, defaultOptionId); + } + copy(title, options, defaultOptionId, $super) { + title = title === VOID ? this.title : title; + options = options === VOID ? this.options : options; + defaultOptionId = defaultOptionId === VOID ? this.defaultOptionId : defaultOptionId; + return this.copy_4a3usz_k$(title, options, defaultOptionId); + } + toString() { + return 'KTrafficConfig(title=' + this.title + ', options=' + this.options + ', defaultOptionId=' + this.defaultOptionId.toString() + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + hashCode(this.options) | 0; + result = imul(result, 31) + this.defaultOptionId.hashCode() | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KTrafficConfig)) + return false; + var tmp0_other_with_cast = other instanceof KTrafficConfig ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!equals(this.options, tmp0_other_with_cast.options)) + return false; + if (!this.defaultOptionId.equals(tmp0_other_with_cast.defaultOptionId)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KTrafficConfig_cdummm_k$(seen1, title, options, defaultOptionId, serializationConstructorMarker) { + Companion_getInstance_600(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_587().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.options = emptyList(); + else + $this.options = options; + if (0 === (seen1 & 4)) + $this.defaultOptionId = new Long(0, 0); + else + $this.defaultOptionId = defaultOptionId; + return $this; + } + } + class Companion_601 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.TrafficConfigOption'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_588(); + } + } + class $serializer_588 { + constructor() { + $serializer_instance_588 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KTrafficConfigOption', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('id', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('text', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KTrafficConfigOption.new_com_bapis_bilibili_polymer_app_search_v1_KTrafficConfigOption_e1yp8o_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_g32lqd_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.id === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.id); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.text === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.text); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_g32lqd_k$(encoder, value instanceof KTrafficConfigOption ? value : THROW_CCE()); + } + } + class KTrafficConfigOption { + constructor(id, text) { + Companion_instance_601; + id = id === VOID ? 0 : id; + text = text === VOID ? '' : text; + this.id = id; + this.text = text; + } + get_id_kntnx8_k$() { + return this.id; + } + get_text_wouvsm_k$() { + return this.text; + } + component1_7eebsc_k$() { + return this.id; + } + component2_7eebsb_k$() { + return this.text; + } + copy_xhhsuv_k$(id, text) { + return new KTrafficConfigOption(id, text); + } + copy(id, text, $super) { + id = id === VOID ? this.id : id; + text = text === VOID ? this.text : text; + return this.copy_xhhsuv_k$(id, text); + } + toString() { + return 'KTrafficConfigOption(id=' + this.id + ', text=' + this.text + ')'; + } + hashCode() { + var result = this.id; + result = imul(result, 31) + getStringHashCode(this.text) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KTrafficConfigOption)) + return false; + var tmp0_other_with_cast = other instanceof KTrafficConfigOption ? other : THROW_CCE(); + if (!(this.id === tmp0_other_with_cast.id)) + return false; + if (!(this.text === tmp0_other_with_cast.text)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KTrafficConfigOption_e1yp8o_k$(seen1, id, text, serializationConstructorMarker) { + Companion_instance_601; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_588().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.id = 0; + else + $this.id = id; + if (0 === (seen1 & 2)) + $this.text = ''; + else + $this.text = text; + return $this; + } + } + class Companion_602 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.CloudGameParams'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_589(); + } + } + class $serializer_589 { + constructor() { + $serializer_instance_589 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KCloudGameParams', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('sourceFrom', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('scene', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KCloudGameParams.new_com_bapis_bilibili_polymer_app_search_v1_KCloudGameParams_s9eazl_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_rojvj2_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.sourceFrom.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.sourceFrom); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.scene === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.scene); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_rojvj2_k$(encoder, value instanceof KCloudGameParams ? value : THROW_CCE()); + } + } + class KCloudGameParams { + constructor(sourceFrom, scene) { + Companion_instance_602; + sourceFrom = sourceFrom === VOID ? new Long(0, 0) : sourceFrom; + scene = scene === VOID ? '' : scene; + this.sourceFrom = sourceFrom; + this.scene = scene; + } + get_sourceFrom_wgw25q_k$() { + return this.sourceFrom; + } + get_scene_iyf59f_k$() { + return this.scene; + } + component1_7eebsc_k$() { + return this.sourceFrom; + } + component2_7eebsb_k$() { + return this.scene; + } + copy_ezpntz_k$(sourceFrom, scene) { + return new KCloudGameParams(sourceFrom, scene); + } + copy(sourceFrom, scene, $super) { + sourceFrom = sourceFrom === VOID ? this.sourceFrom : sourceFrom; + scene = scene === VOID ? this.scene : scene; + return this.copy_ezpntz_k$(sourceFrom, scene); + } + toString() { + return 'KCloudGameParams(sourceFrom=' + this.sourceFrom.toString() + ', scene=' + this.scene + ')'; + } + hashCode() { + var result = this.sourceFrom.hashCode(); + result = imul(result, 31) + getStringHashCode(this.scene) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KCloudGameParams)) + return false; + var tmp0_other_with_cast = other instanceof KCloudGameParams ? other : THROW_CCE(); + if (!this.sourceFrom.equals(tmp0_other_with_cast.sourceFrom)) + return false; + if (!(this.scene === tmp0_other_with_cast.scene)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KCloudGameParams_s9eazl_k$(seen1, sourceFrom, scene, serializationConstructorMarker) { + Companion_instance_602; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_589().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.sourceFrom = new Long(0, 0); + else + $this.sourceFrom = sourceFrom; + if (0 === (seen1 & 2)) + $this.scene = ''; + else + $this.scene = scene; + return $this; + } + } + class Companion_603 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.RankInfo'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_590(); + } + } + class $serializer_590 { + constructor() { + $serializer_instance_590 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KRankInfo', this, 10); + tmp0_serialDesc.addElement_5pzumi_k$('searchNightIconUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('searchDayIconUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('searchBkgNightColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('searchBkgDayColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('searchFontNightColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('searchFontDayColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('rankContent', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('rankLink', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('gameRank', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('rankType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_local8 = new Long(0, 0); + var tmp13_local9 = new Long(0, 0); + var tmp14_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp14_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + } else + while (tmp1_flag) { + tmp2_index = tmp14_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp14_input.endStructure_1xqz0n_k$(tmp0_desc); + return KRankInfo_0.new_com_bapis_bilibili_polymer_app_search_v1_KRankInfo_9woizx_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, null); + } + serialize_l939kz_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.searchNightIconUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.searchNightIconUrl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.searchDayIconUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.searchDayIconUrl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.searchBkgNightColor === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.searchBkgNightColor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.searchBkgDayColor === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.searchBkgDayColor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.searchFontNightColor === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.searchFontNightColor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.searchFontDayColor === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.searchFontDayColor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.rankContent === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.rankContent); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.rankLink === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.rankLink); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !value.gameRank.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 8, value.gameRank); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !value.rankType.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 9, value.rankType); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_l939kz_k$(encoder, value instanceof KRankInfo_0 ? value : THROW_CCE()); + } + } + class KRankInfo_0 { + constructor(searchNightIconUrl, searchDayIconUrl, searchBkgNightColor, searchBkgDayColor, searchFontNightColor, searchFontDayColor, rankContent, rankLink, gameRank, rankType) { + Companion_instance_603; + searchNightIconUrl = searchNightIconUrl === VOID ? '' : searchNightIconUrl; + searchDayIconUrl = searchDayIconUrl === VOID ? '' : searchDayIconUrl; + searchBkgNightColor = searchBkgNightColor === VOID ? '' : searchBkgNightColor; + searchBkgDayColor = searchBkgDayColor === VOID ? '' : searchBkgDayColor; + searchFontNightColor = searchFontNightColor === VOID ? '' : searchFontNightColor; + searchFontDayColor = searchFontDayColor === VOID ? '' : searchFontDayColor; + rankContent = rankContent === VOID ? '' : rankContent; + rankLink = rankLink === VOID ? '' : rankLink; + gameRank = gameRank === VOID ? new Long(0, 0) : gameRank; + rankType = rankType === VOID ? new Long(0, 0) : rankType; + this.searchNightIconUrl = searchNightIconUrl; + this.searchDayIconUrl = searchDayIconUrl; + this.searchBkgNightColor = searchBkgNightColor; + this.searchBkgDayColor = searchBkgDayColor; + this.searchFontNightColor = searchFontNightColor; + this.searchFontDayColor = searchFontDayColor; + this.rankContent = rankContent; + this.rankLink = rankLink; + this.gameRank = gameRank; + this.rankType = rankType; + } + get_searchNightIconUrl_4hzyn_k$() { + return this.searchNightIconUrl; + } + get_searchDayIconUrl_mkcj9n_k$() { + return this.searchDayIconUrl; + } + get_searchBkgNightColor_14vkfc_k$() { + return this.searchBkgNightColor; + } + get_searchBkgDayColor_to6x3o_k$() { + return this.searchBkgDayColor; + } + get_searchFontNightColor_79zl79_k$() { + return this.searchFontNightColor; + } + get_searchFontDayColor_zi676v_k$() { + return this.searchFontDayColor; + } + get_rankContent_edddx8_k$() { + return this.rankContent; + } + get_rankLink_rkmnzl_k$() { + return this.rankLink; + } + get_gameRank_9yto93_k$() { + return this.gameRank; + } + get_rankType_rkh86p_k$() { + return this.rankType; + } + component1_7eebsc_k$() { + return this.searchNightIconUrl; + } + component2_7eebsb_k$() { + return this.searchDayIconUrl; + } + component3_7eebsa_k$() { + return this.searchBkgNightColor; + } + component4_7eebs9_k$() { + return this.searchBkgDayColor; + } + component5_7eebs8_k$() { + return this.searchFontNightColor; + } + component6_7eebs7_k$() { + return this.searchFontDayColor; + } + component7_7eebs6_k$() { + return this.rankContent; + } + component8_7eebs5_k$() { + return this.rankLink; + } + component9_7eebs4_k$() { + return this.gameRank; + } + component10_gazzfo_k$() { + return this.rankType; + } + copy_8g1zf3_k$(searchNightIconUrl, searchDayIconUrl, searchBkgNightColor, searchBkgDayColor, searchFontNightColor, searchFontDayColor, rankContent, rankLink, gameRank, rankType) { + return new KRankInfo_0(searchNightIconUrl, searchDayIconUrl, searchBkgNightColor, searchBkgDayColor, searchFontNightColor, searchFontDayColor, rankContent, rankLink, gameRank, rankType); + } + copy(searchNightIconUrl, searchDayIconUrl, searchBkgNightColor, searchBkgDayColor, searchFontNightColor, searchFontDayColor, rankContent, rankLink, gameRank, rankType, $super) { + searchNightIconUrl = searchNightIconUrl === VOID ? this.searchNightIconUrl : searchNightIconUrl; + searchDayIconUrl = searchDayIconUrl === VOID ? this.searchDayIconUrl : searchDayIconUrl; + searchBkgNightColor = searchBkgNightColor === VOID ? this.searchBkgNightColor : searchBkgNightColor; + searchBkgDayColor = searchBkgDayColor === VOID ? this.searchBkgDayColor : searchBkgDayColor; + searchFontNightColor = searchFontNightColor === VOID ? this.searchFontNightColor : searchFontNightColor; + searchFontDayColor = searchFontDayColor === VOID ? this.searchFontDayColor : searchFontDayColor; + rankContent = rankContent === VOID ? this.rankContent : rankContent; + rankLink = rankLink === VOID ? this.rankLink : rankLink; + gameRank = gameRank === VOID ? this.gameRank : gameRank; + rankType = rankType === VOID ? this.rankType : rankType; + return this.copy_8g1zf3_k$(searchNightIconUrl, searchDayIconUrl, searchBkgNightColor, searchBkgDayColor, searchFontNightColor, searchFontDayColor, rankContent, rankLink, gameRank, rankType); + } + toString() { + return 'KRankInfo(searchNightIconUrl=' + this.searchNightIconUrl + ', searchDayIconUrl=' + this.searchDayIconUrl + ', searchBkgNightColor=' + this.searchBkgNightColor + ', searchBkgDayColor=' + this.searchBkgDayColor + ', searchFontNightColor=' + this.searchFontNightColor + ', searchFontDayColor=' + this.searchFontDayColor + ', rankContent=' + this.rankContent + ', rankLink=' + this.rankLink + ', gameRank=' + this.gameRank.toString() + ', rankType=' + this.rankType.toString() + ')'; + } + hashCode() { + var result = getStringHashCode(this.searchNightIconUrl); + result = imul(result, 31) + getStringHashCode(this.searchDayIconUrl) | 0; + result = imul(result, 31) + getStringHashCode(this.searchBkgNightColor) | 0; + result = imul(result, 31) + getStringHashCode(this.searchBkgDayColor) | 0; + result = imul(result, 31) + getStringHashCode(this.searchFontNightColor) | 0; + result = imul(result, 31) + getStringHashCode(this.searchFontDayColor) | 0; + result = imul(result, 31) + getStringHashCode(this.rankContent) | 0; + result = imul(result, 31) + getStringHashCode(this.rankLink) | 0; + result = imul(result, 31) + this.gameRank.hashCode() | 0; + result = imul(result, 31) + this.rankType.hashCode() | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KRankInfo_0)) + return false; + var tmp0_other_with_cast = other instanceof KRankInfo_0 ? other : THROW_CCE(); + if (!(this.searchNightIconUrl === tmp0_other_with_cast.searchNightIconUrl)) + return false; + if (!(this.searchDayIconUrl === tmp0_other_with_cast.searchDayIconUrl)) + return false; + if (!(this.searchBkgNightColor === tmp0_other_with_cast.searchBkgNightColor)) + return false; + if (!(this.searchBkgDayColor === tmp0_other_with_cast.searchBkgDayColor)) + return false; + if (!(this.searchFontNightColor === tmp0_other_with_cast.searchFontNightColor)) + return false; + if (!(this.searchFontDayColor === tmp0_other_with_cast.searchFontDayColor)) + return false; + if (!(this.rankContent === tmp0_other_with_cast.rankContent)) + return false; + if (!(this.rankLink === tmp0_other_with_cast.rankLink)) + return false; + if (!this.gameRank.equals(tmp0_other_with_cast.gameRank)) + return false; + if (!this.rankType.equals(tmp0_other_with_cast.rankType)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KRankInfo_9woizx_k$(seen1, searchNightIconUrl, searchDayIconUrl, searchBkgNightColor, searchBkgDayColor, searchFontNightColor, searchFontDayColor, rankContent, rankLink, gameRank, rankType, serializationConstructorMarker) { + Companion_instance_603; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_590().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.searchNightIconUrl = ''; + else + $this.searchNightIconUrl = searchNightIconUrl; + if (0 === (seen1 & 2)) + $this.searchDayIconUrl = ''; + else + $this.searchDayIconUrl = searchDayIconUrl; + if (0 === (seen1 & 4)) + $this.searchBkgNightColor = ''; + else + $this.searchBkgNightColor = searchBkgNightColor; + if (0 === (seen1 & 8)) + $this.searchBkgDayColor = ''; + else + $this.searchBkgDayColor = searchBkgDayColor; + if (0 === (seen1 & 16)) + $this.searchFontNightColor = ''; + else + $this.searchFontNightColor = searchFontNightColor; + if (0 === (seen1 & 32)) + $this.searchFontDayColor = ''; + else + $this.searchFontDayColor = searchFontDayColor; + if (0 === (seen1 & 64)) + $this.rankContent = ''; + else + $this.rankContent = rankContent; + if (0 === (seen1 & 128)) + $this.rankLink = ''; + else + $this.rankLink = rankLink; + if (0 === (seen1 & 256)) + $this.gameRank = new Long(0, 0); + else + $this.gameRank = gameRank; + if (0 === (seen1 & 512)) + $this.rankType = new Long(0, 0); + else + $this.rankType = rankType; + return $this; + } + } + class Companion_604 { + constructor() { + Companion_instance_604 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, null, new ArrayListSerializer($serializer_getInstance_606()), null, null, null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.polymer.app.search.v1.EpisodeNew'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_591(); + } + } + class $serializer_591 { + constructor() { + $serializer_instance_591 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KEpisodeNew', this, 9); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('uri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('param', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('isNew', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('badges', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('position', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('label', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_604().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), tmp0_cached[4], IntSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = 0; + var tmp8_local4 = null; + var tmp9_local5 = 0; + var tmp10_local6 = 0; + var tmp11_local7 = null; + var tmp12_local8 = null; + var tmp13_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp14_cached = Companion_getInstance_604().$childSerializers_1; + if (tmp13_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp13_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp13_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 4, tmp14_cached[4], tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp13_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp13_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + } else + while (tmp1_flag) { + tmp2_index = tmp13_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp13_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp13_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 4, tmp14_cached[4], tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp13_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp13_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp13_input.endStructure_1xqz0n_k$(tmp0_desc); + return KEpisodeNew.new_com_bapis_bilibili_polymer_app_search_v1_KEpisodeNew_6xfrk9_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, null); + } + serialize_3dfbv2_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_604().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.uri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.uri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.param === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.param); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.isNew === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 3, value.isNew); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !equals(value.badges, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 4, tmp2_cached[4], value.badges); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.type === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 5, value.type); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.position === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 6, value.position); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.cover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.label === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 8, value.label); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_3dfbv2_k$(encoder, value instanceof KEpisodeNew ? value : THROW_CCE()); + } + } + class KEpisodeNew { + constructor(title, uri, param, isNew, badges, type, position, cover, label) { + Companion_getInstance_604(); + title = title === VOID ? '' : title; + uri = uri === VOID ? '' : uri; + param = param === VOID ? '' : param; + isNew = isNew === VOID ? 0 : isNew; + badges = badges === VOID ? emptyList() : badges; + type = type === VOID ? 0 : type; + position = position === VOID ? 0 : position; + cover = cover === VOID ? '' : cover; + label = label === VOID ? '' : label; + this.title = title; + this.uri = uri; + this.param = param; + this.isNew = isNew; + this.badges = badges; + this.type = type; + this.position = position; + this.cover = cover; + this.label = label; + } + get_title_iz32un_k$() { + return this.title; + } + get_uri_18iuil_k$() { + return this.uri; + } + get_param_iwqquc_k$() { + return this.param; + } + get_isNew_it6xv1_k$() { + return this.isNew; + } + get_badges_bb95bt_k$() { + return this.badges; + } + get_type_wovaf7_k$() { + return this.type; + } + get_position_jfponi_k$() { + return this.position; + } + get_cover_ipug0e_k$() { + return this.cover; + } + get_label_iuj8p7_k$() { + return this.label; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.uri; + } + component3_7eebsa_k$() { + return this.param; + } + component4_7eebs9_k$() { + return this.isNew; + } + component5_7eebs8_k$() { + return this.badges; + } + component6_7eebs7_k$() { + return this.type; + } + component7_7eebs6_k$() { + return this.position; + } + component8_7eebs5_k$() { + return this.cover; + } + component9_7eebs4_k$() { + return this.label; + } + copy_3on9w6_k$(title, uri, param, isNew, badges, type, position, cover, label) { + return new KEpisodeNew(title, uri, param, isNew, badges, type, position, cover, label); + } + copy(title, uri, param, isNew, badges, type, position, cover, label, $super) { + title = title === VOID ? this.title : title; + uri = uri === VOID ? this.uri : uri; + param = param === VOID ? this.param : param; + isNew = isNew === VOID ? this.isNew : isNew; + badges = badges === VOID ? this.badges : badges; + type = type === VOID ? this.type : type; + position = position === VOID ? this.position : position; + cover = cover === VOID ? this.cover : cover; + label = label === VOID ? this.label : label; + return this.copy_3on9w6_k$(title, uri, param, isNew, badges, type, position, cover, label); + } + toString() { + return 'KEpisodeNew(title=' + this.title + ', uri=' + this.uri + ', param=' + this.param + ', isNew=' + this.isNew + ', badges=' + this.badges + ', type=' + this.type + ', position=' + this.position + ', cover=' + this.cover + ', label=' + this.label + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.uri) | 0; + result = imul(result, 31) + getStringHashCode(this.param) | 0; + result = imul(result, 31) + this.isNew | 0; + result = imul(result, 31) + hashCode(this.badges) | 0; + result = imul(result, 31) + this.type | 0; + result = imul(result, 31) + this.position | 0; + result = imul(result, 31) + getStringHashCode(this.cover) | 0; + result = imul(result, 31) + getStringHashCode(this.label) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KEpisodeNew)) + return false; + var tmp0_other_with_cast = other instanceof KEpisodeNew ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.uri === tmp0_other_with_cast.uri)) + return false; + if (!(this.param === tmp0_other_with_cast.param)) + return false; + if (!(this.isNew === tmp0_other_with_cast.isNew)) + return false; + if (!equals(this.badges, tmp0_other_with_cast.badges)) + return false; + if (!(this.type === tmp0_other_with_cast.type)) + return false; + if (!(this.position === tmp0_other_with_cast.position)) + return false; + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + if (!(this.label === tmp0_other_with_cast.label)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KEpisodeNew_6xfrk9_k$(seen1, title, uri, param, isNew, badges, type, position, cover, label, serializationConstructorMarker) { + Companion_getInstance_604(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_591().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.uri = ''; + else + $this.uri = uri; + if (0 === (seen1 & 4)) + $this.param = ''; + else + $this.param = param; + if (0 === (seen1 & 8)) + $this.isNew = 0; + else + $this.isNew = isNew; + if (0 === (seen1 & 16)) + $this.badges = emptyList(); + else + $this.badges = badges; + if (0 === (seen1 & 32)) + $this.type = 0; + else + $this.type = type; + if (0 === (seen1 & 64)) + $this.position = 0; + else + $this.position = position; + if (0 === (seen1 & 128)) + $this.cover = ''; + else + $this.cover = cover; + if (0 === (seen1 & 256)) + $this.label = ''; + else + $this.label = label; + return $this; + } + } + class Companion_605 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.CheckMore'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_592(); + } + } + class $serializer_592 { + constructor() { + $serializer_instance_592 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KCheckMore', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('content', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('uri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KCheckMore.new_com_bapis_bilibili_polymer_app_search_v1_KCheckMore_f1tsei_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_232x7y_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.content === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.content); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.uri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.uri); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_232x7y_k$(encoder, value instanceof KCheckMore ? value : THROW_CCE()); + } + } + class KCheckMore { + constructor(content, uri) { + Companion_instance_605; + content = content === VOID ? '' : content; + uri = uri === VOID ? '' : uri; + this.content = content; + this.uri = uri; + } + get_content_h02jrk_k$() { + return this.content; + } + get_uri_18iuil_k$() { + return this.uri; + } + component1_7eebsc_k$() { + return this.content; + } + component2_7eebsb_k$() { + return this.uri; + } + copy_plwnsl_k$(content, uri) { + return new KCheckMore(content, uri); + } + copy(content, uri, $super) { + content = content === VOID ? this.content : content; + uri = uri === VOID ? this.uri : uri; + return this.copy_plwnsl_k$(content, uri); + } + toString() { + return 'KCheckMore(content=' + this.content + ', uri=' + this.uri + ')'; + } + hashCode() { + var result = getStringHashCode(this.content); + result = imul(result, 31) + getStringHashCode(this.uri) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KCheckMore)) + return false; + var tmp0_other_with_cast = other instanceof KCheckMore ? other : THROW_CCE(); + if (!(this.content === tmp0_other_with_cast.content)) + return false; + if (!(this.uri === tmp0_other_with_cast.uri)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KCheckMore_f1tsei_k$(seen1, content, uri, serializationConstructorMarker) { + Companion_instance_605; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_592().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.content = ''; + else + $this.content = content; + if (0 === (seen1 & 2)) + $this.uri = ''; + else + $this.uri = uri; + return $this; + } + } + class Companion_606 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.FollowButton.TextsEntry'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_593(); + } + } + class $serializer_593 { + constructor() { + $serializer_instance_593 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KFollowButton.KTextsEntry', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('key', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('value', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KTextsEntry.new_com_bapis_bilibili_polymer_app_search_v1_KFollowButton_KTextsEntry_li8rqe_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_otsp4l_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.key === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.key); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.value === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.value); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_otsp4l_k$(encoder, value instanceof KTextsEntry ? value : THROW_CCE()); + } + } + class KTextsEntry { + constructor(key, value) { + Companion_instance_606; + key = key === VOID ? '' : key; + value = value === VOID ? '' : value; + this.key = key; + this.value = value; + } + get_key_18j28a_k$() { + return this.key; + } + get_value_j01efc_k$() { + return this.value; + } + component1_7eebsc_k$() { + return this.key; + } + component2_7eebsb_k$() { + return this.value; + } + copy_plwnsl_k$(key, value) { + return new KTextsEntry(key, value); + } + copy(key, value, $super) { + key = key === VOID ? this.key : key; + value = value === VOID ? this.value : value; + return this.copy_plwnsl_k$(key, value); + } + toString() { + return 'KTextsEntry(key=' + this.key + ', value=' + this.value + ')'; + } + hashCode() { + var result = getStringHashCode(this.key); + result = imul(result, 31) + getStringHashCode(this.value) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KTextsEntry)) + return false; + var tmp0_other_with_cast = other instanceof KTextsEntry ? other : THROW_CCE(); + if (!(this.key === tmp0_other_with_cast.key)) + return false; + if (!(this.value === tmp0_other_with_cast.value)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KFollowButton_KTextsEntry_li8rqe_k$(seen1, key, value, serializationConstructorMarker) { + Companion_instance_606; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_593().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.key = ''; + else + $this.key = key; + if (0 === (seen1 & 2)) + $this.value = ''; + else + $this.value = value; + return $this; + } + } + class Companion_607 { + constructor() { + Companion_instance_607 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, new LinkedHashMapSerializer(StringSerializer_getInstance(), StringSerializer_getInstance()), null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.polymer.app.search.v1.FollowButton'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_594(); + } + } + class $serializer_594 { + constructor() { + $serializer_instance_594 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KFollowButton', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('icon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('texts', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('statusReport', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_607().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), tmp0_cached[1], StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp8_cached = Companion_getInstance_607().$childSerializers_1; + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp8_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp8_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KFollowButton.new_com_bapis_bilibili_polymer_app_search_v1_KFollowButton_3jeeqx_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_aylsto_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_607().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.icon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.icon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !equals(value.texts, emptyMap())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 1, tmp2_cached[1], value.texts); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.statusReport === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.statusReport); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_aylsto_k$(encoder, value instanceof KFollowButton ? value : THROW_CCE()); + } + } + class KFollowButton { + constructor(icon, texts, statusReport) { + Companion_getInstance_607(); + icon = icon === VOID ? '' : icon; + texts = texts === VOID ? emptyMap() : texts; + statusReport = statusReport === VOID ? '' : statusReport; + this.icon = icon; + this.texts = texts; + this.statusReport = statusReport; + } + get_icon_wont8i_k$() { + return this.icon; + } + get_texts_iz0m2l_k$() { + return this.texts; + } + get_statusReport_wjys4x_k$() { + return this.statusReport; + } + component1_7eebsc_k$() { + return this.icon; + } + component2_7eebsb_k$() { + return this.texts; + } + component3_7eebsa_k$() { + return this.statusReport; + } + copy_dr5lcd_k$(icon, texts, statusReport) { + return new KFollowButton(icon, texts, statusReport); + } + copy(icon, texts, statusReport, $super) { + icon = icon === VOID ? this.icon : icon; + texts = texts === VOID ? this.texts : texts; + statusReport = statusReport === VOID ? this.statusReport : statusReport; + return this.copy_dr5lcd_k$(icon, texts, statusReport); + } + toString() { + return 'KFollowButton(icon=' + this.icon + ', texts=' + this.texts + ', statusReport=' + this.statusReport + ')'; + } + hashCode() { + var result = getStringHashCode(this.icon); + result = imul(result, 31) + hashCode(this.texts) | 0; + result = imul(result, 31) + getStringHashCode(this.statusReport) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KFollowButton)) + return false; + var tmp0_other_with_cast = other instanceof KFollowButton ? other : THROW_CCE(); + if (!(this.icon === tmp0_other_with_cast.icon)) + return false; + if (!equals(this.texts, tmp0_other_with_cast.texts)) + return false; + if (!(this.statusReport === tmp0_other_with_cast.statusReport)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KFollowButton_3jeeqx_k$(seen1, icon, texts, statusReport, serializationConstructorMarker) { + Companion_getInstance_607(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_594().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.icon = ''; + else + $this.icon = icon; + if (0 === (seen1 & 2)) + $this.texts = emptyMap(); + else + $this.texts = texts; + if (0 === (seen1 & 4)) + $this.statusReport = ''; + else + $this.statusReport = statusReport; + return $this; + } + } + class Companion_608 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.PurchaseButton'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_595(); + } + } + class $serializer_595 { + constructor() { + $serializer_instance_595 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KPurchaseButton', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('jumpUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('text', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KPurchaseButton.new_com_bapis_bilibili_polymer_app_search_v1_KPurchaseButton_i988f6_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_2al8cc_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.jumpUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.jumpUrl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.text === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.text); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_2al8cc_k$(encoder, value instanceof KPurchaseButton ? value : THROW_CCE()); + } + } + class KPurchaseButton { + constructor(jumpUrl, text) { + Companion_instance_608; + jumpUrl = jumpUrl === VOID ? '' : jumpUrl; + text = text === VOID ? '' : text; + this.jumpUrl = jumpUrl; + this.text = text; + } + get_jumpUrl_jhqiko_k$() { + return this.jumpUrl; + } + get_text_wouvsm_k$() { + return this.text; + } + component1_7eebsc_k$() { + return this.jumpUrl; + } + component2_7eebsb_k$() { + return this.text; + } + copy_plwnsl_k$(jumpUrl, text) { + return new KPurchaseButton(jumpUrl, text); + } + copy(jumpUrl, text, $super) { + jumpUrl = jumpUrl === VOID ? this.jumpUrl : jumpUrl; + text = text === VOID ? this.text : text; + return this.copy_plwnsl_k$(jumpUrl, text); + } + toString() { + return 'KPurchaseButton(jumpUrl=' + this.jumpUrl + ', text=' + this.text + ')'; + } + hashCode() { + var result = getStringHashCode(this.jumpUrl); + result = imul(result, 31) + getStringHashCode(this.text) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KPurchaseButton)) + return false; + var tmp0_other_with_cast = other instanceof KPurchaseButton ? other : THROW_CCE(); + if (!(this.jumpUrl === tmp0_other_with_cast.jumpUrl)) + return false; + if (!(this.text === tmp0_other_with_cast.text)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KPurchaseButton_i988f6_k$(seen1, jumpUrl, text, serializationConstructorMarker) { + Companion_instance_608; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_595().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.jumpUrl = ''; + else + $this.jumpUrl = jumpUrl; + if (0 === (seen1 & 2)) + $this.text = ''; + else + $this.text = text; + return $this; + } + } + class Companion_609 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.WatchButton'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_596(); + } + } + class $serializer_596 { + constructor() { + $serializer_instance_596 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KWatchButton', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('link', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KWatchButton.new_com_bapis_bilibili_polymer_app_search_v1_KWatchButton_yd0l46_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_oa4l1u_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.link === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.link); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_oa4l1u_k$(encoder, value instanceof KWatchButton ? value : THROW_CCE()); + } + } + class KWatchButton { + constructor(title, link) { + Companion_instance_609; + title = title === VOID ? '' : title; + link = link === VOID ? '' : link; + this.title = title; + this.link = link; + } + get_title_iz32un_k$() { + return this.title; + } + get_link_wopumb_k$() { + return this.link; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.link; + } + copy_plwnsl_k$(title, link) { + return new KWatchButton(title, link); + } + copy(title, link, $super) { + title = title === VOID ? this.title : title; + link = link === VOID ? this.link : link; + return this.copy_plwnsl_k$(title, link); + } + toString() { + return 'KWatchButton(title=' + this.title + ', link=' + this.link + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.link) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KWatchButton)) + return false; + var tmp0_other_with_cast = other instanceof KWatchButton ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.link === tmp0_other_with_cast.link)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KWatchButton_yd0l46_k$(seen1, title, link, serializationConstructorMarker) { + Companion_instance_609; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_596().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.link = ''; + else + $this.link = link; + return $this; + } + } + class Companion_610 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.RcmdReason'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_597(); + } + } + class $serializer_597 { + constructor() { + $serializer_instance_597 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KRcmdReason', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('content', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KRcmdReason.new_com_bapis_bilibili_polymer_app_search_v1_KRcmdReason_qjzwwg_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_j0g58r_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.content === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.content); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_j0g58r_k$(encoder, value instanceof KRcmdReason ? value : THROW_CCE()); + } + } + class KRcmdReason { + constructor(content) { + Companion_instance_610; + content = content === VOID ? '' : content; + this.content = content; + } + get_content_h02jrk_k$() { + return this.content; + } + component1_7eebsc_k$() { + return this.content; + } + copy_a35qlh_k$(content) { + return new KRcmdReason(content); + } + copy(content, $super) { + content = content === VOID ? this.content : content; + return this.copy_a35qlh_k$(content); + } + toString() { + return 'KRcmdReason(content=' + this.content + ')'; + } + hashCode() { + return getStringHashCode(this.content); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KRcmdReason)) + return false; + var tmp0_other_with_cast = other instanceof KRcmdReason ? other : THROW_CCE(); + if (!(this.content === tmp0_other_with_cast.content)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KRcmdReason_qjzwwg_k$(seen1, content, serializationConstructorMarker) { + Companion_instance_610; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_597().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.content = ''; + else + $this.content = content; + return $this; + } + } + class Companion_611 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.WatchedShow'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_598(); + } + } + class $serializer_598 { + constructor() { + $serializer_instance_598 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KWatchedShow', this, 7); + tmp0_serialDesc.addElement_5pzumi_k$('switch', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('num', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('textSmall', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('textLarge', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('icon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('iconLocation', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('iconWeb', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [BooleanSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = false; + var tmp5_local1 = new Long(0, 0); + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp11_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp11_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + } else + while (tmp1_flag) { + tmp2_index = tmp11_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp11_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp11_input.endStructure_1xqz0n_k$(tmp0_desc); + return KWatchedShow.new_com_bapis_bilibili_polymer_app_search_v1_KWatchedShow_n40fya_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, null); + } + serialize_vcgdks_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.switch === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 0, value.switch); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.num.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.num); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.textSmall === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.textSmall); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.textLarge === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.textLarge); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.icon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.icon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.iconLocation === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.iconLocation); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.iconWeb === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.iconWeb); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_vcgdks_k$(encoder, value instanceof KWatchedShow ? value : THROW_CCE()); + } + } + class KWatchedShow { + constructor(switch_0, num, textSmall, textLarge, icon, iconLocation, iconWeb) { + Companion_instance_611; + switch_0 = switch_0 === VOID ? false : switch_0; + num = num === VOID ? new Long(0, 0) : num; + textSmall = textSmall === VOID ? '' : textSmall; + textLarge = textLarge === VOID ? '' : textLarge; + icon = icon === VOID ? '' : icon; + iconLocation = iconLocation === VOID ? '' : iconLocation; + iconWeb = iconWeb === VOID ? '' : iconWeb; + this.switch = switch_0; + this.num = num; + this.textSmall = textSmall; + this.textLarge = textLarge; + this.icon = icon; + this.iconLocation = iconLocation; + this.iconWeb = iconWeb; + } + get_switch_jp7nlp_k$() { + return this.switch; + } + get_num_18izmr_k$() { + return this.num; + } + get_textSmall_8ty0un_k$() { + return this.textSmall; + } + get_textLarge_8xzwd7_k$() { + return this.textLarge; + } + get_icon_wont8i_k$() { + return this.icon; + } + get_iconLocation_80qyqx_k$() { + return this.iconLocation; + } + get_iconWeb_sd8egi_k$() { + return this.iconWeb; + } + component1_7eebsc_k$() { + return this.switch; + } + component2_7eebsb_k$() { + return this.num; + } + component3_7eebsa_k$() { + return this.textSmall; + } + component4_7eebs9_k$() { + return this.textLarge; + } + component5_7eebs8_k$() { + return this.icon; + } + component6_7eebs7_k$() { + return this.iconLocation; + } + component7_7eebs6_k$() { + return this.iconWeb; + } + copy_tbkxec_k$(switch_0, num, textSmall, textLarge, icon, iconLocation, iconWeb) { + return new KWatchedShow(switch_0, num, textSmall, textLarge, icon, iconLocation, iconWeb); + } + copy(switch_0, num, textSmall, textLarge, icon, iconLocation, iconWeb, $super) { + switch_0 = switch_0 === VOID ? this.switch : switch_0; + num = num === VOID ? this.num : num; + textSmall = textSmall === VOID ? this.textSmall : textSmall; + textLarge = textLarge === VOID ? this.textLarge : textLarge; + icon = icon === VOID ? this.icon : icon; + iconLocation = iconLocation === VOID ? this.iconLocation : iconLocation; + iconWeb = iconWeb === VOID ? this.iconWeb : iconWeb; + return this.copy_tbkxec_k$(switch_0, num, textSmall, textLarge, icon, iconLocation, iconWeb); + } + toString() { + return 'KWatchedShow(switch=' + this.switch + ', num=' + this.num.toString() + ', textSmall=' + this.textSmall + ', textLarge=' + this.textLarge + ', icon=' + this.icon + ', iconLocation=' + this.iconLocation + ', iconWeb=' + this.iconWeb + ')'; + } + hashCode() { + var result = getBooleanHashCode(this.switch); + result = imul(result, 31) + this.num.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.textSmall) | 0; + result = imul(result, 31) + getStringHashCode(this.textLarge) | 0; + result = imul(result, 31) + getStringHashCode(this.icon) | 0; + result = imul(result, 31) + getStringHashCode(this.iconLocation) | 0; + result = imul(result, 31) + getStringHashCode(this.iconWeb) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KWatchedShow)) + return false; + var tmp0_other_with_cast = other instanceof KWatchedShow ? other : THROW_CCE(); + if (!(this.switch === tmp0_other_with_cast.switch)) + return false; + if (!this.num.equals(tmp0_other_with_cast.num)) + return false; + if (!(this.textSmall === tmp0_other_with_cast.textSmall)) + return false; + if (!(this.textLarge === tmp0_other_with_cast.textLarge)) + return false; + if (!(this.icon === tmp0_other_with_cast.icon)) + return false; + if (!(this.iconLocation === tmp0_other_with_cast.iconLocation)) + return false; + if (!(this.iconWeb === tmp0_other_with_cast.iconWeb)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KWatchedShow_n40fya_k$(seen1, switch_0, num, textSmall, textLarge, icon, iconLocation, iconWeb, serializationConstructorMarker) { + Companion_instance_611; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_598().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.switch = false; + else + $this.switch = switch_0; + if (0 === (seen1 & 2)) + $this.num = new Long(0, 0); + else + $this.num = num; + if (0 === (seen1 & 4)) + $this.textSmall = ''; + else + $this.textSmall = textSmall; + if (0 === (seen1 & 8)) + $this.textLarge = ''; + else + $this.textLarge = textLarge; + if (0 === (seen1 & 16)) + $this.icon = ''; + else + $this.icon = icon; + if (0 === (seen1 & 32)) + $this.iconLocation = ''; + else + $this.iconLocation = iconLocation; + if (0 === (seen1 & 64)) + $this.iconWeb = ''; + else + $this.iconWeb = iconWeb; + return $this; + } + } + class Companion_612 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.Notice'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_599(); + } + } + class $serializer_599 { + constructor() { + $serializer_instance_599 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KNotice', this, 11); + tmp0_serialDesc.addElement_5pzumi_k$('mid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('noticeId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('content', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('url', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('noticeType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('icon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('iconNight', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('textColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('textColorNight', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('bgColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('bgColorNight', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = new Long(0, 0); + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = new Long(0, 0); + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_local8 = null; + var tmp13_local9 = null; + var tmp14_local10 = null; + var tmp15_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp15_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + } else + while (tmp1_flag) { + tmp2_index = tmp15_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp15_input.endStructure_1xqz0n_k$(tmp0_desc); + return KNotice.new_com_bapis_bilibili_polymer_app_search_v1_KNotice_y9o12r_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, null); + } + serialize_nqp2cf_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.mid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.mid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.noticeId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.noticeId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.content === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.content); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.url === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.url); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !value.noticeType.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 4, value.noticeType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.icon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.icon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.iconNight === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.iconNight); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.textColor === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.textColor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.textColorNight === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 8, value.textColorNight); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.bgColor === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 9, value.bgColor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.bgColorNight === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 10, value.bgColorNight); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_nqp2cf_k$(encoder, value instanceof KNotice ? value : THROW_CCE()); + } + } + class KNotice { + constructor(mid, noticeId, content, url, noticeType, icon, iconNight, textColor, textColorNight, bgColor, bgColorNight) { + Companion_instance_612; + mid = mid === VOID ? new Long(0, 0) : mid; + noticeId = noticeId === VOID ? new Long(0, 0) : noticeId; + content = content === VOID ? '' : content; + url = url === VOID ? '' : url; + noticeType = noticeType === VOID ? new Long(0, 0) : noticeType; + icon = icon === VOID ? '' : icon; + iconNight = iconNight === VOID ? '' : iconNight; + textColor = textColor === VOID ? '' : textColor; + textColorNight = textColorNight === VOID ? '' : textColorNight; + bgColor = bgColor === VOID ? '' : bgColor; + bgColorNight = bgColorNight === VOID ? '' : bgColorNight; + this.mid = mid; + this.noticeId = noticeId; + this.content = content; + this.url = url; + this.noticeType = noticeType; + this.icon = icon; + this.iconNight = iconNight; + this.textColor = textColor; + this.textColorNight = textColorNight; + this.bgColor = bgColor; + this.bgColorNight = bgColorNight; + } + get_mid_18j0o1_k$() { + return this.mid; + } + get_noticeId_5l3x2c_k$() { + return this.noticeId; + } + get_content_h02jrk_k$() { + return this.content; + } + get_url_18iuii_k$() { + return this.url; + } + get_noticeType_tv620r_k$() { + return this.noticeType; + } + get_icon_wont8i_k$() { + return this.icon; + } + get_iconNight_equj62_k$() { + return this.iconNight; + } + get_textColor_92p84z_k$() { + return this.textColor; + } + get_textColorNight_hqolf9_k$() { + return this.textColorNight; + } + get_bgColor_24ewuj_k$() { + return this.bgColor; + } + get_bgColorNight_mzrajh_k$() { + return this.bgColorNight; + } + component1_7eebsc_k$() { + return this.mid; + } + component2_7eebsb_k$() { + return this.noticeId; + } + component3_7eebsa_k$() { + return this.content; + } + component4_7eebs9_k$() { + return this.url; + } + component5_7eebs8_k$() { + return this.noticeType; + } + component6_7eebs7_k$() { + return this.icon; + } + component7_7eebs6_k$() { + return this.iconNight; + } + component8_7eebs5_k$() { + return this.textColor; + } + component9_7eebs4_k$() { + return this.textColorNight; + } + component10_gazzfo_k$() { + return this.bgColor; + } + component11_gazzfn_k$() { + return this.bgColorNight; + } + copy_t93wep_k$(mid, noticeId, content, url, noticeType, icon, iconNight, textColor, textColorNight, bgColor, bgColorNight) { + return new KNotice(mid, noticeId, content, url, noticeType, icon, iconNight, textColor, textColorNight, bgColor, bgColorNight); + } + copy(mid, noticeId, content, url, noticeType, icon, iconNight, textColor, textColorNight, bgColor, bgColorNight, $super) { + mid = mid === VOID ? this.mid : mid; + noticeId = noticeId === VOID ? this.noticeId : noticeId; + content = content === VOID ? this.content : content; + url = url === VOID ? this.url : url; + noticeType = noticeType === VOID ? this.noticeType : noticeType; + icon = icon === VOID ? this.icon : icon; + iconNight = iconNight === VOID ? this.iconNight : iconNight; + textColor = textColor === VOID ? this.textColor : textColor; + textColorNight = textColorNight === VOID ? this.textColorNight : textColorNight; + bgColor = bgColor === VOID ? this.bgColor : bgColor; + bgColorNight = bgColorNight === VOID ? this.bgColorNight : bgColorNight; + return this.copy_t93wep_k$(mid, noticeId, content, url, noticeType, icon, iconNight, textColor, textColorNight, bgColor, bgColorNight); + } + toString() { + return 'KNotice(mid=' + this.mid.toString() + ', noticeId=' + this.noticeId.toString() + ', content=' + this.content + ', url=' + this.url + ', noticeType=' + this.noticeType.toString() + ', icon=' + this.icon + ', iconNight=' + this.iconNight + ', textColor=' + this.textColor + ', textColorNight=' + this.textColorNight + ', bgColor=' + this.bgColor + ', bgColorNight=' + this.bgColorNight + ')'; + } + hashCode() { + var result = this.mid.hashCode(); + result = imul(result, 31) + this.noticeId.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.content) | 0; + result = imul(result, 31) + getStringHashCode(this.url) | 0; + result = imul(result, 31) + this.noticeType.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.icon) | 0; + result = imul(result, 31) + getStringHashCode(this.iconNight) | 0; + result = imul(result, 31) + getStringHashCode(this.textColor) | 0; + result = imul(result, 31) + getStringHashCode(this.textColorNight) | 0; + result = imul(result, 31) + getStringHashCode(this.bgColor) | 0; + result = imul(result, 31) + getStringHashCode(this.bgColorNight) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KNotice)) + return false; + var tmp0_other_with_cast = other instanceof KNotice ? other : THROW_CCE(); + if (!this.mid.equals(tmp0_other_with_cast.mid)) + return false; + if (!this.noticeId.equals(tmp0_other_with_cast.noticeId)) + return false; + if (!(this.content === tmp0_other_with_cast.content)) + return false; + if (!(this.url === tmp0_other_with_cast.url)) + return false; + if (!this.noticeType.equals(tmp0_other_with_cast.noticeType)) + return false; + if (!(this.icon === tmp0_other_with_cast.icon)) + return false; + if (!(this.iconNight === tmp0_other_with_cast.iconNight)) + return false; + if (!(this.textColor === tmp0_other_with_cast.textColor)) + return false; + if (!(this.textColorNight === tmp0_other_with_cast.textColorNight)) + return false; + if (!(this.bgColor === tmp0_other_with_cast.bgColor)) + return false; + if (!(this.bgColorNight === tmp0_other_with_cast.bgColorNight)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KNotice_y9o12r_k$(seen1, mid, noticeId, content, url, noticeType, icon, iconNight, textColor, textColorNight, bgColor, bgColorNight, serializationConstructorMarker) { + Companion_instance_612; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_599().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.mid = new Long(0, 0); + else + $this.mid = mid; + if (0 === (seen1 & 2)) + $this.noticeId = new Long(0, 0); + else + $this.noticeId = noticeId; + if (0 === (seen1 & 4)) + $this.content = ''; + else + $this.content = content; + if (0 === (seen1 & 8)) + $this.url = ''; + else + $this.url = url; + if (0 === (seen1 & 16)) + $this.noticeType = new Long(0, 0); + else + $this.noticeType = noticeType; + if (0 === (seen1 & 32)) + $this.icon = ''; + else + $this.icon = icon; + if (0 === (seen1 & 64)) + $this.iconNight = ''; + else + $this.iconNight = iconNight; + if (0 === (seen1 & 128)) + $this.textColor = ''; + else + $this.textColor = textColor; + if (0 === (seen1 & 256)) + $this.textColorNight = ''; + else + $this.textColorNight = textColorNight; + if (0 === (seen1 & 512)) + $this.bgColor = ''; + else + $this.bgColor = bgColor; + if (0 === (seen1 & 1024)) + $this.bgColorNight = ''; + else + $this.bgColorNight = bgColorNight; + return $this; + } + } + class Companion_613 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.Background'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_600(); + } + } + class $serializer_600 { + constructor() { + $serializer_instance_600 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KBackground', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('show', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('bgPicUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('fgPicUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KBackground.new_com_bapis_bilibili_polymer_app_search_v1_KBackground_9v1w3h_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_s3yfw7_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.show === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.show); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.bgPicUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.bgPicUrl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.fgPicUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.fgPicUrl); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_s3yfw7_k$(encoder, value instanceof KBackground ? value : THROW_CCE()); + } + } + class KBackground { + constructor(show, bgPicUrl, fgPicUrl) { + Companion_instance_613; + show = show === VOID ? 0 : show; + bgPicUrl = bgPicUrl === VOID ? '' : bgPicUrl; + fgPicUrl = fgPicUrl === VOID ? '' : fgPicUrl; + this.show = show; + this.bgPicUrl = bgPicUrl; + this.fgPicUrl = fgPicUrl; + } + get_show_wouati_k$() { + return this.show; + } + get_bgPicUrl_badt6b_k$() { + return this.bgPicUrl; + } + get_fgPicUrl_fhcej5_k$() { + return this.fgPicUrl; + } + component1_7eebsc_k$() { + return this.show; + } + component2_7eebsb_k$() { + return this.bgPicUrl; + } + component3_7eebsa_k$() { + return this.fgPicUrl; + } + copy_hrd73x_k$(show, bgPicUrl, fgPicUrl) { + return new KBackground(show, bgPicUrl, fgPicUrl); + } + copy(show, bgPicUrl, fgPicUrl, $super) { + show = show === VOID ? this.show : show; + bgPicUrl = bgPicUrl === VOID ? this.bgPicUrl : bgPicUrl; + fgPicUrl = fgPicUrl === VOID ? this.fgPicUrl : fgPicUrl; + return this.copy_hrd73x_k$(show, bgPicUrl, fgPicUrl); + } + toString() { + return 'KBackground(show=' + this.show + ', bgPicUrl=' + this.bgPicUrl + ', fgPicUrl=' + this.fgPicUrl + ')'; + } + hashCode() { + var result = this.show; + result = imul(result, 31) + getStringHashCode(this.bgPicUrl) | 0; + result = imul(result, 31) + getStringHashCode(this.fgPicUrl) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KBackground)) + return false; + var tmp0_other_with_cast = other instanceof KBackground ? other : THROW_CCE(); + if (!(this.show === tmp0_other_with_cast.show)) + return false; + if (!(this.bgPicUrl === tmp0_other_with_cast.bgPicUrl)) + return false; + if (!(this.fgPicUrl === tmp0_other_with_cast.fgPicUrl)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KBackground_9v1w3h_k$(seen1, show, bgPicUrl, fgPicUrl, serializationConstructorMarker) { + Companion_instance_613; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_600().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.show = 0; + else + $this.show = show; + if (0 === (seen1 & 2)) + $this.bgPicUrl = ''; + else + $this.bgPicUrl = bgPicUrl; + if (0 === (seen1 & 4)) + $this.fgPicUrl = ''; + else + $this.fgPicUrl = fgPicUrl; + return $this; + } + } + class Companion_614 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.NftFaceIcon'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_601(); + } + } + class $serializer_601 { + constructor() { + $serializer_instance_601 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KNftFaceIcon', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('regionType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('icon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('showStatus', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = null; + var tmp6_local2 = 0; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KNftFaceIcon.new_com_bapis_bilibili_polymer_app_search_v1_KNftFaceIcon_qvp9x2_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_w3d93x_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.regionType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.regionType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.icon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.icon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.showStatus === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.showStatus); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_w3d93x_k$(encoder, value instanceof KNftFaceIcon ? value : THROW_CCE()); + } + } + class KNftFaceIcon { + constructor(regionType, icon, showStatus) { + Companion_instance_614; + regionType = regionType === VOID ? 0 : regionType; + icon = icon === VOID ? '' : icon; + showStatus = showStatus === VOID ? 0 : showStatus; + this.regionType = regionType; + this.icon = icon; + this.showStatus = showStatus; + } + get_regionType_hxrx07_k$() { + return this.regionType; + } + get_icon_wont8i_k$() { + return this.icon; + } + get_showStatus_78b2nc_k$() { + return this.showStatus; + } + component1_7eebsc_k$() { + return this.regionType; + } + component2_7eebsb_k$() { + return this.icon; + } + component3_7eebsa_k$() { + return this.showStatus; + } + copy_jqwgyn_k$(regionType, icon, showStatus) { + return new KNftFaceIcon(regionType, icon, showStatus); + } + copy(regionType, icon, showStatus, $super) { + regionType = regionType === VOID ? this.regionType : regionType; + icon = icon === VOID ? this.icon : icon; + showStatus = showStatus === VOID ? this.showStatus : showStatus; + return this.copy_jqwgyn_k$(regionType, icon, showStatus); + } + toString() { + return 'KNftFaceIcon(regionType=' + this.regionType + ', icon=' + this.icon + ', showStatus=' + this.showStatus + ')'; + } + hashCode() { + var result = this.regionType; + result = imul(result, 31) + getStringHashCode(this.icon) | 0; + result = imul(result, 31) + this.showStatus | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KNftFaceIcon)) + return false; + var tmp0_other_with_cast = other instanceof KNftFaceIcon ? other : THROW_CCE(); + if (!(this.regionType === tmp0_other_with_cast.regionType)) + return false; + if (!(this.icon === tmp0_other_with_cast.icon)) + return false; + if (!(this.showStatus === tmp0_other_with_cast.showStatus)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KNftFaceIcon_qvp9x2_k$(seen1, regionType, icon, showStatus, serializationConstructorMarker) { + Companion_instance_614; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_601().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.regionType = 0; + else + $this.regionType = regionType; + if (0 === (seen1 & 2)) + $this.icon = ''; + else + $this.icon = icon; + if (0 === (seen1 & 4)) + $this.showStatus = 0; + else + $this.showStatus = showStatus; + return $this; + } + } + class Companion_615 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.VipInfo'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_602(); + } + } + class $serializer_602 { + constructor() { + $serializer_instance_602 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KVipInfo', this, 12); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('status', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('dueDate', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('vipPayType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('themeType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('label', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('avatarSubscript', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('nicknameColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('role', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('avatarSubscriptUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('tvVipStatus', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('tvVipPayType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), get_nullable($serializer_getInstance_603()), IntSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = 0; + var tmp6_local2 = new Long(0, 0); + var tmp7_local3 = 0; + var tmp8_local4 = 0; + var tmp9_local5 = null; + var tmp10_local6 = 0; + var tmp11_local7 = null; + var tmp12_local8 = new Long(0, 0); + var tmp13_local9 = null; + var tmp14_local10 = 0; + var tmp15_local11 = 0; + var tmp16_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp16_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp16_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp16_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_603(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp16_input.decodeLongElement_994anb_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + } else + while (tmp1_flag) { + tmp2_index = tmp16_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp16_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp16_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_603(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp16_input.decodeLongElement_994anb_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp16_input.endStructure_1xqz0n_k$(tmp0_desc); + return KVipInfo.new_com_bapis_bilibili_polymer_app_search_v1_KVipInfo_6gaygk_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, null); + } + serialize_s3tx0c_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.type === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.type); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.status === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.status); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.dueDate.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.dueDate); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.vipPayType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 3, value.vipPayType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.themeType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 4, value.themeType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.label == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 5, $serializer_getInstance_603(), value.label); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.avatarSubscript === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 6, value.avatarSubscript); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.nicknameColor === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.nicknameColor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !value.role.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 8, value.role); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.avatarSubscriptUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 9, value.avatarSubscriptUrl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.tvVipStatus === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 10, value.tvVipStatus); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.tvVipPayType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 11, value.tvVipPayType); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_s3tx0c_k$(encoder, value instanceof KVipInfo ? value : THROW_CCE()); + } + } + class KVipInfo { + constructor(type, status, dueDate, vipPayType, themeType, label, avatarSubscript, nicknameColor, role, avatarSubscriptUrl, tvVipStatus, tvVipPayType) { + Companion_instance_615; + type = type === VOID ? 0 : type; + status = status === VOID ? 0 : status; + dueDate = dueDate === VOID ? new Long(0, 0) : dueDate; + vipPayType = vipPayType === VOID ? 0 : vipPayType; + themeType = themeType === VOID ? 0 : themeType; + label = label === VOID ? null : label; + avatarSubscript = avatarSubscript === VOID ? 0 : avatarSubscript; + nicknameColor = nicknameColor === VOID ? '' : nicknameColor; + role = role === VOID ? new Long(0, 0) : role; + avatarSubscriptUrl = avatarSubscriptUrl === VOID ? '' : avatarSubscriptUrl; + tvVipStatus = tvVipStatus === VOID ? 0 : tvVipStatus; + tvVipPayType = tvVipPayType === VOID ? 0 : tvVipPayType; + this.type = type; + this.status = status; + this.dueDate = dueDate; + this.vipPayType = vipPayType; + this.themeType = themeType; + this.label = label; + this.avatarSubscript = avatarSubscript; + this.nicknameColor = nicknameColor; + this.role = role; + this.avatarSubscriptUrl = avatarSubscriptUrl; + this.tvVipStatus = tvVipStatus; + this.tvVipPayType = tvVipPayType; + } + get_type_wovaf7_k$() { + return this.type; + } + get_status_jnf6d7_k$() { + return this.status; + } + get_dueDate_ycxot5_k$() { + return this.dueDate; + } + get_vipPayType_fj7oeq_k$() { + return this.vipPayType; + } + get_themeType_8svn5m_k$() { + return this.themeType; + } + get_label_iuj8p7_k$() { + return this.label; + } + get_avatarSubscript_pv2bpl_k$() { + return this.avatarSubscript; + } + get_nicknameColor_t5nkpg_k$() { + return this.nicknameColor; + } + get_role_wotsxr_k$() { + return this.role; + } + get_avatarSubscriptUrl_9kjjl2_k$() { + return this.avatarSubscriptUrl; + } + get_tvVipStatus_sj4ip0_k$() { + return this.tvVipStatus; + } + get_tvVipPayType_kkvipc_k$() { + return this.tvVipPayType; + } + component1_7eebsc_k$() { + return this.type; + } + component2_7eebsb_k$() { + return this.status; + } + component3_7eebsa_k$() { + return this.dueDate; + } + component4_7eebs9_k$() { + return this.vipPayType; + } + component5_7eebs8_k$() { + return this.themeType; + } + component6_7eebs7_k$() { + return this.label; + } + component7_7eebs6_k$() { + return this.avatarSubscript; + } + component8_7eebs5_k$() { + return this.nicknameColor; + } + component9_7eebs4_k$() { + return this.role; + } + component10_gazzfo_k$() { + return this.avatarSubscriptUrl; + } + component11_gazzfn_k$() { + return this.tvVipStatus; + } + component12_gazzfm_k$() { + return this.tvVipPayType; + } + copy_6q0bmx_k$(type, status, dueDate, vipPayType, themeType, label, avatarSubscript, nicknameColor, role, avatarSubscriptUrl, tvVipStatus, tvVipPayType) { + return new KVipInfo(type, status, dueDate, vipPayType, themeType, label, avatarSubscript, nicknameColor, role, avatarSubscriptUrl, tvVipStatus, tvVipPayType); + } + copy(type, status, dueDate, vipPayType, themeType, label, avatarSubscript, nicknameColor, role, avatarSubscriptUrl, tvVipStatus, tvVipPayType, $super) { + type = type === VOID ? this.type : type; + status = status === VOID ? this.status : status; + dueDate = dueDate === VOID ? this.dueDate : dueDate; + vipPayType = vipPayType === VOID ? this.vipPayType : vipPayType; + themeType = themeType === VOID ? this.themeType : themeType; + label = label === VOID ? this.label : label; + avatarSubscript = avatarSubscript === VOID ? this.avatarSubscript : avatarSubscript; + nicknameColor = nicknameColor === VOID ? this.nicknameColor : nicknameColor; + role = role === VOID ? this.role : role; + avatarSubscriptUrl = avatarSubscriptUrl === VOID ? this.avatarSubscriptUrl : avatarSubscriptUrl; + tvVipStatus = tvVipStatus === VOID ? this.tvVipStatus : tvVipStatus; + tvVipPayType = tvVipPayType === VOID ? this.tvVipPayType : tvVipPayType; + return this.copy_6q0bmx_k$(type, status, dueDate, vipPayType, themeType, label, avatarSubscript, nicknameColor, role, avatarSubscriptUrl, tvVipStatus, tvVipPayType); + } + toString() { + return 'KVipInfo(type=' + this.type + ', status=' + this.status + ', dueDate=' + this.dueDate.toString() + ', vipPayType=' + this.vipPayType + ', themeType=' + this.themeType + ', label=' + this.label + ', avatarSubscript=' + this.avatarSubscript + ', nicknameColor=' + this.nicknameColor + ', role=' + this.role.toString() + ', avatarSubscriptUrl=' + this.avatarSubscriptUrl + ', tvVipStatus=' + this.tvVipStatus + ', tvVipPayType=' + this.tvVipPayType + ')'; + } + hashCode() { + var result = this.type; + result = imul(result, 31) + this.status | 0; + result = imul(result, 31) + this.dueDate.hashCode() | 0; + result = imul(result, 31) + this.vipPayType | 0; + result = imul(result, 31) + this.themeType | 0; + result = imul(result, 31) + (this.label == null ? 0 : this.label.hashCode()) | 0; + result = imul(result, 31) + this.avatarSubscript | 0; + result = imul(result, 31) + getStringHashCode(this.nicknameColor) | 0; + result = imul(result, 31) + this.role.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.avatarSubscriptUrl) | 0; + result = imul(result, 31) + this.tvVipStatus | 0; + result = imul(result, 31) + this.tvVipPayType | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KVipInfo)) + return false; + var tmp0_other_with_cast = other instanceof KVipInfo ? other : THROW_CCE(); + if (!(this.type === tmp0_other_with_cast.type)) + return false; + if (!(this.status === tmp0_other_with_cast.status)) + return false; + if (!this.dueDate.equals(tmp0_other_with_cast.dueDate)) + return false; + if (!(this.vipPayType === tmp0_other_with_cast.vipPayType)) + return false; + if (!(this.themeType === tmp0_other_with_cast.themeType)) + return false; + if (!equals(this.label, tmp0_other_with_cast.label)) + return false; + if (!(this.avatarSubscript === tmp0_other_with_cast.avatarSubscript)) + return false; + if (!(this.nicknameColor === tmp0_other_with_cast.nicknameColor)) + return false; + if (!this.role.equals(tmp0_other_with_cast.role)) + return false; + if (!(this.avatarSubscriptUrl === tmp0_other_with_cast.avatarSubscriptUrl)) + return false; + if (!(this.tvVipStatus === tmp0_other_with_cast.tvVipStatus)) + return false; + if (!(this.tvVipPayType === tmp0_other_with_cast.tvVipPayType)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KVipInfo_6gaygk_k$(seen1, type, status, dueDate, vipPayType, themeType, label, avatarSubscript, nicknameColor, role, avatarSubscriptUrl, tvVipStatus, tvVipPayType, serializationConstructorMarker) { + Companion_instance_615; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_602().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.type = 0; + else + $this.type = type; + if (0 === (seen1 & 2)) + $this.status = 0; + else + $this.status = status; + if (0 === (seen1 & 4)) + $this.dueDate = new Long(0, 0); + else + $this.dueDate = dueDate; + if (0 === (seen1 & 8)) + $this.vipPayType = 0; + else + $this.vipPayType = vipPayType; + if (0 === (seen1 & 16)) + $this.themeType = 0; + else + $this.themeType = themeType; + if (0 === (seen1 & 32)) + $this.label = null; + else + $this.label = label; + if (0 === (seen1 & 64)) + $this.avatarSubscript = 0; + else + $this.avatarSubscript = avatarSubscript; + if (0 === (seen1 & 128)) + $this.nicknameColor = ''; + else + $this.nicknameColor = nicknameColor; + if (0 === (seen1 & 256)) + $this.role = new Long(0, 0); + else + $this.role = role; + if (0 === (seen1 & 512)) + $this.avatarSubscriptUrl = ''; + else + $this.avatarSubscriptUrl = avatarSubscriptUrl; + if (0 === (seen1 & 1024)) + $this.tvVipStatus = 0; + else + $this.tvVipStatus = tvVipStatus; + if (0 === (seen1 & 2048)) + $this.tvVipPayType = 0; + else + $this.tvVipPayType = tvVipPayType; + return $this; + } + } + class Companion_616 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.VipLabel'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_603(); + } + } + class $serializer_603 { + constructor() { + $serializer_instance_603 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KVipLabel', this, 12); + tmp0_serialDesc.addElement_5pzumi_k$('path', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('text', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('labelTheme', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('textColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('bgStyle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('bgColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('borderColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('useImgLabel', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('imgLabelUriHans', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('imgLabelUriHant', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('imgLabelUriHansStatic', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('imgLabelUriHantStatic', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), BooleanSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = 0; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = false; + var tmp12_local8 = null; + var tmp13_local9 = null; + var tmp14_local10 = null; + var tmp15_local11 = null; + var tmp16_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp16_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp16_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + } else + while (tmp1_flag) { + tmp2_index = tmp16_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp16_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp16_input.endStructure_1xqz0n_k$(tmp0_desc); + return KVipLabel_0.new_com_bapis_bilibili_polymer_app_search_v1_KVipLabel_lcbi33_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, null); + } + serialize_oj243k_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.path === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.path); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.text === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.text); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.labelTheme === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.labelTheme); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.textColor === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.textColor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.bgStyle === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 4, value.bgStyle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.bgColor === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.bgColor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.borderColor === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.borderColor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.useImgLabel === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 7, value.useImgLabel); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.imgLabelUriHans === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 8, value.imgLabelUriHans); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.imgLabelUriHant === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 9, value.imgLabelUriHant); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.imgLabelUriHansStatic === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 10, value.imgLabelUriHansStatic); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.imgLabelUriHantStatic === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 11, value.imgLabelUriHantStatic); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_oj243k_k$(encoder, value instanceof KVipLabel_0 ? value : THROW_CCE()); + } + } + class KVipLabel_0 { + constructor(path, text, labelTheme, textColor, bgStyle, bgColor, borderColor, useImgLabel, imgLabelUriHans, imgLabelUriHant, imgLabelUriHansStatic, imgLabelUriHantStatic) { + Companion_instance_616; + path = path === VOID ? '' : path; + text = text === VOID ? '' : text; + labelTheme = labelTheme === VOID ? '' : labelTheme; + textColor = textColor === VOID ? '' : textColor; + bgStyle = bgStyle === VOID ? 0 : bgStyle; + bgColor = bgColor === VOID ? '' : bgColor; + borderColor = borderColor === VOID ? '' : borderColor; + useImgLabel = useImgLabel === VOID ? false : useImgLabel; + imgLabelUriHans = imgLabelUriHans === VOID ? '' : imgLabelUriHans; + imgLabelUriHant = imgLabelUriHant === VOID ? '' : imgLabelUriHant; + imgLabelUriHansStatic = imgLabelUriHansStatic === VOID ? '' : imgLabelUriHansStatic; + imgLabelUriHantStatic = imgLabelUriHantStatic === VOID ? '' : imgLabelUriHantStatic; + this.path = path; + this.text = text; + this.labelTheme = labelTheme; + this.textColor = textColor; + this.bgStyle = bgStyle; + this.bgColor = bgColor; + this.borderColor = borderColor; + this.useImgLabel = useImgLabel; + this.imgLabelUriHans = imgLabelUriHans; + this.imgLabelUriHant = imgLabelUriHant; + this.imgLabelUriHansStatic = imgLabelUriHansStatic; + this.imgLabelUriHantStatic = imgLabelUriHantStatic; + } + get_path_wos8ry_k$() { + return this.path; + } + get_text_wouvsm_k$() { + return this.text; + } + get_labelTheme_nej6wu_k$() { + return this.labelTheme; + } + get_textColor_92p84z_k$() { + return this.textColor; + } + get_bgStyle_1viqv1_k$() { + return this.bgStyle; + } + get_bgColor_24ewuj_k$() { + return this.bgColor; + } + get_borderColor_puk0tq_k$() { + return this.borderColor; + } + get_useImgLabel_nakjzj_k$() { + return this.useImgLabel; + } + get_imgLabelUriHans_uq84j4_k$() { + return this.imgLabelUriHans; + } + get_imgLabelUriHant_uq84j5_k$() { + return this.imgLabelUriHant; + } + get_imgLabelUriHansStatic_huy8hq_k$() { + return this.imgLabelUriHansStatic; + } + get_imgLabelUriHantStatic_wjcipr_k$() { + return this.imgLabelUriHantStatic; + } + component1_7eebsc_k$() { + return this.path; + } + component2_7eebsb_k$() { + return this.text; + } + component3_7eebsa_k$() { + return this.labelTheme; + } + component4_7eebs9_k$() { + return this.textColor; + } + component5_7eebs8_k$() { + return this.bgStyle; + } + component6_7eebs7_k$() { + return this.bgColor; + } + component7_7eebs6_k$() { + return this.borderColor; + } + component8_7eebs5_k$() { + return this.useImgLabel; + } + component9_7eebs4_k$() { + return this.imgLabelUriHans; + } + component10_gazzfo_k$() { + return this.imgLabelUriHant; + } + component11_gazzfn_k$() { + return this.imgLabelUriHansStatic; + } + component12_gazzfm_k$() { + return this.imgLabelUriHantStatic; + } + copy_hw722m_k$(path, text, labelTheme, textColor, bgStyle, bgColor, borderColor, useImgLabel, imgLabelUriHans, imgLabelUriHant, imgLabelUriHansStatic, imgLabelUriHantStatic) { + return new KVipLabel_0(path, text, labelTheme, textColor, bgStyle, bgColor, borderColor, useImgLabel, imgLabelUriHans, imgLabelUriHant, imgLabelUriHansStatic, imgLabelUriHantStatic); + } + copy(path, text, labelTheme, textColor, bgStyle, bgColor, borderColor, useImgLabel, imgLabelUriHans, imgLabelUriHant, imgLabelUriHansStatic, imgLabelUriHantStatic, $super) { + path = path === VOID ? this.path : path; + text = text === VOID ? this.text : text; + labelTheme = labelTheme === VOID ? this.labelTheme : labelTheme; + textColor = textColor === VOID ? this.textColor : textColor; + bgStyle = bgStyle === VOID ? this.bgStyle : bgStyle; + bgColor = bgColor === VOID ? this.bgColor : bgColor; + borderColor = borderColor === VOID ? this.borderColor : borderColor; + useImgLabel = useImgLabel === VOID ? this.useImgLabel : useImgLabel; + imgLabelUriHans = imgLabelUriHans === VOID ? this.imgLabelUriHans : imgLabelUriHans; + imgLabelUriHant = imgLabelUriHant === VOID ? this.imgLabelUriHant : imgLabelUriHant; + imgLabelUriHansStatic = imgLabelUriHansStatic === VOID ? this.imgLabelUriHansStatic : imgLabelUriHansStatic; + imgLabelUriHantStatic = imgLabelUriHantStatic === VOID ? this.imgLabelUriHantStatic : imgLabelUriHantStatic; + return this.copy_hw722m_k$(path, text, labelTheme, textColor, bgStyle, bgColor, borderColor, useImgLabel, imgLabelUriHans, imgLabelUriHant, imgLabelUriHansStatic, imgLabelUriHantStatic); + } + toString() { + return 'KVipLabel(path=' + this.path + ', text=' + this.text + ', labelTheme=' + this.labelTheme + ', textColor=' + this.textColor + ', bgStyle=' + this.bgStyle + ', bgColor=' + this.bgColor + ', borderColor=' + this.borderColor + ', useImgLabel=' + this.useImgLabel + ', imgLabelUriHans=' + this.imgLabelUriHans + ', imgLabelUriHant=' + this.imgLabelUriHant + ', imgLabelUriHansStatic=' + this.imgLabelUriHansStatic + ', imgLabelUriHantStatic=' + this.imgLabelUriHantStatic + ')'; + } + hashCode() { + var result = getStringHashCode(this.path); + result = imul(result, 31) + getStringHashCode(this.text) | 0; + result = imul(result, 31) + getStringHashCode(this.labelTheme) | 0; + result = imul(result, 31) + getStringHashCode(this.textColor) | 0; + result = imul(result, 31) + this.bgStyle | 0; + result = imul(result, 31) + getStringHashCode(this.bgColor) | 0; + result = imul(result, 31) + getStringHashCode(this.borderColor) | 0; + result = imul(result, 31) + getBooleanHashCode(this.useImgLabel) | 0; + result = imul(result, 31) + getStringHashCode(this.imgLabelUriHans) | 0; + result = imul(result, 31) + getStringHashCode(this.imgLabelUriHant) | 0; + result = imul(result, 31) + getStringHashCode(this.imgLabelUriHansStatic) | 0; + result = imul(result, 31) + getStringHashCode(this.imgLabelUriHantStatic) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KVipLabel_0)) + return false; + var tmp0_other_with_cast = other instanceof KVipLabel_0 ? other : THROW_CCE(); + if (!(this.path === tmp0_other_with_cast.path)) + return false; + if (!(this.text === tmp0_other_with_cast.text)) + return false; + if (!(this.labelTheme === tmp0_other_with_cast.labelTheme)) + return false; + if (!(this.textColor === tmp0_other_with_cast.textColor)) + return false; + if (!(this.bgStyle === tmp0_other_with_cast.bgStyle)) + return false; + if (!(this.bgColor === tmp0_other_with_cast.bgColor)) + return false; + if (!(this.borderColor === tmp0_other_with_cast.borderColor)) + return false; + if (!(this.useImgLabel === tmp0_other_with_cast.useImgLabel)) + return false; + if (!(this.imgLabelUriHans === tmp0_other_with_cast.imgLabelUriHans)) + return false; + if (!(this.imgLabelUriHant === tmp0_other_with_cast.imgLabelUriHant)) + return false; + if (!(this.imgLabelUriHansStatic === tmp0_other_with_cast.imgLabelUriHansStatic)) + return false; + if (!(this.imgLabelUriHantStatic === tmp0_other_with_cast.imgLabelUriHantStatic)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KVipLabel_lcbi33_k$(seen1, path, text, labelTheme, textColor, bgStyle, bgColor, borderColor, useImgLabel, imgLabelUriHans, imgLabelUriHant, imgLabelUriHansStatic, imgLabelUriHantStatic, serializationConstructorMarker) { + Companion_instance_616; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_603().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.path = ''; + else + $this.path = path; + if (0 === (seen1 & 2)) + $this.text = ''; + else + $this.text = text; + if (0 === (seen1 & 4)) + $this.labelTheme = ''; + else + $this.labelTheme = labelTheme; + if (0 === (seen1 & 8)) + $this.textColor = ''; + else + $this.textColor = textColor; + if (0 === (seen1 & 16)) + $this.bgStyle = 0; + else + $this.bgStyle = bgStyle; + if (0 === (seen1 & 32)) + $this.bgColor = ''; + else + $this.bgColor = bgColor; + if (0 === (seen1 & 64)) + $this.borderColor = ''; + else + $this.borderColor = borderColor; + if (0 === (seen1 & 128)) + $this.useImgLabel = false; + else + $this.useImgLabel = useImgLabel; + if (0 === (seen1 & 256)) + $this.imgLabelUriHans = ''; + else + $this.imgLabelUriHans = imgLabelUriHans; + if (0 === (seen1 & 512)) + $this.imgLabelUriHant = ''; + else + $this.imgLabelUriHant = imgLabelUriHant; + if (0 === (seen1 & 1024)) + $this.imgLabelUriHansStatic = ''; + else + $this.imgLabelUriHansStatic = imgLabelUriHansStatic; + if (0 === (seen1 & 2048)) + $this.imgLabelUriHantStatic = ''; + else + $this.imgLabelUriHantStatic = imgLabelUriHantStatic; + return $this; + } + } + class Companion_617 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.OfficialVerify'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_604(); + } + } + class $serializer_604 { + constructor() { + $serializer_instance_604 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KOfficialVerify', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('desc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KOfficialVerify_0.new_com_bapis_bilibili_polymer_app_search_v1_KOfficialVerify_immiue_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_888ogd_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.type === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.type); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.desc === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.desc); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_888ogd_k$(encoder, value instanceof KOfficialVerify_0 ? value : THROW_CCE()); + } + } + class KOfficialVerify_0 { + constructor(type, desc) { + Companion_instance_617; + type = type === VOID ? 0 : type; + desc = desc === VOID ? '' : desc; + this.type = type; + this.desc = desc; + } + get_type_wovaf7_k$() { + return this.type; + } + get_desc_woknve_k$() { + return this.desc; + } + component1_7eebsc_k$() { + return this.type; + } + component2_7eebsb_k$() { + return this.desc; + } + copy_xhhsuv_k$(type, desc) { + return new KOfficialVerify_0(type, desc); + } + copy(type, desc, $super) { + type = type === VOID ? this.type : type; + desc = desc === VOID ? this.desc : desc; + return this.copy_xhhsuv_k$(type, desc); + } + toString() { + return 'KOfficialVerify(type=' + this.type + ', desc=' + this.desc + ')'; + } + hashCode() { + var result = this.type; + result = imul(result, 31) + getStringHashCode(this.desc) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KOfficialVerify_0)) + return false; + var tmp0_other_with_cast = other instanceof KOfficialVerify_0 ? other : THROW_CCE(); + if (!(this.type === tmp0_other_with_cast.type)) + return false; + if (!(this.desc === tmp0_other_with_cast.desc)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KOfficialVerify_immiue_k$(seen1, type, desc, serializationConstructorMarker) { + Companion_instance_617; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_604().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.type = 0; + else + $this.type = type; + if (0 === (seen1 & 2)) + $this.desc = ''; + else + $this.desc = desc; + return $this; + } + } + class Companion_618 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.FullTextResult'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_605(); + } + } + class $serializer_605 { + constructor() { + $serializer_instance_605 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KFullTextResult', this, 9); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('showText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('jumpStartProgress', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('jumpUri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('icon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('iconForNight', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('id', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('prefix', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('text', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = null; + var tmp6_local2 = new Long(0, 0); + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = new Long(0, 0); + var tmp11_local7 = null; + var tmp12_local8 = null; + var tmp13_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp13_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp13_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + } else + while (tmp1_flag) { + tmp2_index = tmp13_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp13_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp13_input.endStructure_1xqz0n_k$(tmp0_desc); + return KFullTextResult.new_com_bapis_bilibili_polymer_app_search_v1_KFullTextResult_c50chk_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, null); + } + serialize_yttl1a_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.type === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.type); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.showText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.showText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.jumpStartProgress.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.jumpStartProgress); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.jumpUri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.jumpUri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.icon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.icon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.iconForNight === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.iconForNight); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !value.id.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 6, value.id); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.prefix === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.prefix); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.text === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 8, value.text); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_yttl1a_k$(encoder, value instanceof KFullTextResult ? value : THROW_CCE()); + } + } + class KFullTextResult { + constructor(type, showText, jumpStartProgress, jumpUri, icon, iconForNight, id, prefix, text) { + Companion_instance_618; + type = type === VOID ? 0 : type; + showText = showText === VOID ? '' : showText; + jumpStartProgress = jumpStartProgress === VOID ? new Long(0, 0) : jumpStartProgress; + jumpUri = jumpUri === VOID ? '' : jumpUri; + icon = icon === VOID ? '' : icon; + iconForNight = iconForNight === VOID ? '' : iconForNight; + id = id === VOID ? new Long(0, 0) : id; + prefix = prefix === VOID ? '' : prefix; + text = text === VOID ? '' : text; + this.type = type; + this.showText = showText; + this.jumpStartProgress = jumpStartProgress; + this.jumpUri = jumpUri; + this.icon = icon; + this.iconForNight = iconForNight; + this.id = id; + this.prefix = prefix; + this.text = text; + } + get_type_wovaf7_k$() { + return this.type; + } + get_showText_xmfxcj_k$() { + return this.showText; + } + get_jumpStartProgress_a6rqt4_k$() { + return this.jumpStartProgress; + } + get_jumpUri_jhqikr_k$() { + return this.jumpUri; + } + get_icon_wont8i_k$() { + return this.icon; + } + get_iconForNight_w38j0v_k$() { + return this.iconForNight; + } + get_id_kntnx8_k$() { + return this.id; + } + get_prefix_i78za3_k$() { + return this.prefix; + } + get_text_wouvsm_k$() { + return this.text; + } + component1_7eebsc_k$() { + return this.type; + } + component2_7eebsb_k$() { + return this.showText; + } + component3_7eebsa_k$() { + return this.jumpStartProgress; + } + component4_7eebs9_k$() { + return this.jumpUri; + } + component5_7eebs8_k$() { + return this.icon; + } + component6_7eebs7_k$() { + return this.iconForNight; + } + component7_7eebs6_k$() { + return this.id; + } + component8_7eebs5_k$() { + return this.prefix; + } + component9_7eebs4_k$() { + return this.text; + } + copy_u6gyyr_k$(type, showText, jumpStartProgress, jumpUri, icon, iconForNight, id, prefix, text) { + return new KFullTextResult(type, showText, jumpStartProgress, jumpUri, icon, iconForNight, id, prefix, text); + } + copy(type, showText, jumpStartProgress, jumpUri, icon, iconForNight, id, prefix, text, $super) { + type = type === VOID ? this.type : type; + showText = showText === VOID ? this.showText : showText; + jumpStartProgress = jumpStartProgress === VOID ? this.jumpStartProgress : jumpStartProgress; + jumpUri = jumpUri === VOID ? this.jumpUri : jumpUri; + icon = icon === VOID ? this.icon : icon; + iconForNight = iconForNight === VOID ? this.iconForNight : iconForNight; + id = id === VOID ? this.id : id; + prefix = prefix === VOID ? this.prefix : prefix; + text = text === VOID ? this.text : text; + return this.copy_u6gyyr_k$(type, showText, jumpStartProgress, jumpUri, icon, iconForNight, id, prefix, text); + } + toString() { + return 'KFullTextResult(type=' + this.type + ', showText=' + this.showText + ', jumpStartProgress=' + this.jumpStartProgress.toString() + ', jumpUri=' + this.jumpUri + ', icon=' + this.icon + ', iconForNight=' + this.iconForNight + ', id=' + this.id.toString() + ', prefix=' + this.prefix + ', text=' + this.text + ')'; + } + hashCode() { + var result = this.type; + result = imul(result, 31) + getStringHashCode(this.showText) | 0; + result = imul(result, 31) + this.jumpStartProgress.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.jumpUri) | 0; + result = imul(result, 31) + getStringHashCode(this.icon) | 0; + result = imul(result, 31) + getStringHashCode(this.iconForNight) | 0; + result = imul(result, 31) + this.id.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.prefix) | 0; + result = imul(result, 31) + getStringHashCode(this.text) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KFullTextResult)) + return false; + var tmp0_other_with_cast = other instanceof KFullTextResult ? other : THROW_CCE(); + if (!(this.type === tmp0_other_with_cast.type)) + return false; + if (!(this.showText === tmp0_other_with_cast.showText)) + return false; + if (!this.jumpStartProgress.equals(tmp0_other_with_cast.jumpStartProgress)) + return false; + if (!(this.jumpUri === tmp0_other_with_cast.jumpUri)) + return false; + if (!(this.icon === tmp0_other_with_cast.icon)) + return false; + if (!(this.iconForNight === tmp0_other_with_cast.iconForNight)) + return false; + if (!this.id.equals(tmp0_other_with_cast.id)) + return false; + if (!(this.prefix === tmp0_other_with_cast.prefix)) + return false; + if (!(this.text === tmp0_other_with_cast.text)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KFullTextResult_c50chk_k$(seen1, type, showText, jumpStartProgress, jumpUri, icon, iconForNight, id, prefix, text, serializationConstructorMarker) { + Companion_instance_618; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_605().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.type = 0; + else + $this.type = type; + if (0 === (seen1 & 2)) + $this.showText = ''; + else + $this.showText = showText; + if (0 === (seen1 & 4)) + $this.jumpStartProgress = new Long(0, 0); + else + $this.jumpStartProgress = jumpStartProgress; + if (0 === (seen1 & 8)) + $this.jumpUri = ''; + else + $this.jumpUri = jumpUri; + if (0 === (seen1 & 16)) + $this.icon = ''; + else + $this.icon = icon; + if (0 === (seen1 & 32)) + $this.iconForNight = ''; + else + $this.iconForNight = iconForNight; + if (0 === (seen1 & 64)) + $this.id = new Long(0, 0); + else + $this.id = id; + if (0 === (seen1 & 128)) + $this.prefix = ''; + else + $this.prefix = prefix; + if (0 === (seen1 & 256)) + $this.text = ''; + else + $this.text = text; + return $this; + } + } + class Companion_619 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.ReasonStyle'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_606(); + } + } + class $serializer_606 { + constructor() { + $serializer_instance_606 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KReasonStyle', this, 8); + tmp0_serialDesc.addElement_5pzumi_k$('text', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('textColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('textColorNight', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('bgColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('bgColorNight', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('borderColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('borderColorNight', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('bgStyle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = 0; + var tmp12_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp12_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + } else + while (tmp1_flag) { + tmp2_index = tmp12_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp12_input.endStructure_1xqz0n_k$(tmp0_desc); + return KReasonStyle.new_com_bapis_bilibili_polymer_app_search_v1_KReasonStyle_5fd4wn_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null); + } + serialize_9zdz42_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.text === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.text); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.textColor === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.textColor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.textColorNight === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.textColorNight); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.bgColor === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.bgColor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.bgColorNight === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.bgColorNight); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.borderColor === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.borderColor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.borderColorNight === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.borderColorNight); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.bgStyle === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 7, value.bgStyle); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_9zdz42_k$(encoder, value instanceof KReasonStyle ? value : THROW_CCE()); + } + } + class KReasonStyle { + constructor(text, textColor, textColorNight, bgColor, bgColorNight, borderColor, borderColorNight, bgStyle) { + Companion_instance_619; + text = text === VOID ? '' : text; + textColor = textColor === VOID ? '' : textColor; + textColorNight = textColorNight === VOID ? '' : textColorNight; + bgColor = bgColor === VOID ? '' : bgColor; + bgColorNight = bgColorNight === VOID ? '' : bgColorNight; + borderColor = borderColor === VOID ? '' : borderColor; + borderColorNight = borderColorNight === VOID ? '' : borderColorNight; + bgStyle = bgStyle === VOID ? 0 : bgStyle; + this.text = text; + this.textColor = textColor; + this.textColorNight = textColorNight; + this.bgColor = bgColor; + this.bgColorNight = bgColorNight; + this.borderColor = borderColor; + this.borderColorNight = borderColorNight; + this.bgStyle = bgStyle; + } + get_text_wouvsm_k$() { + return this.text; + } + get_textColor_92p84z_k$() { + return this.textColor; + } + get_textColorNight_hqolf9_k$() { + return this.textColorNight; + } + get_bgColor_24ewuj_k$() { + return this.bgColor; + } + get_bgColorNight_mzrajh_k$() { + return this.bgColorNight; + } + get_borderColor_puk0tq_k$() { + return this.borderColor; + } + get_borderColorNight_z7xsom_k$() { + return this.borderColorNight; + } + get_bgStyle_1viqv1_k$() { + return this.bgStyle; + } + component1_7eebsc_k$() { + return this.text; + } + component2_7eebsb_k$() { + return this.textColor; + } + component3_7eebsa_k$() { + return this.textColorNight; + } + component4_7eebs9_k$() { + return this.bgColor; + } + component5_7eebs8_k$() { + return this.bgColorNight; + } + component6_7eebs7_k$() { + return this.borderColor; + } + component7_7eebs6_k$() { + return this.borderColorNight; + } + component8_7eebs5_k$() { + return this.bgStyle; + } + copy_2l3ger_k$(text, textColor, textColorNight, bgColor, bgColorNight, borderColor, borderColorNight, bgStyle) { + return new KReasonStyle(text, textColor, textColorNight, bgColor, bgColorNight, borderColor, borderColorNight, bgStyle); + } + copy(text, textColor, textColorNight, bgColor, bgColorNight, borderColor, borderColorNight, bgStyle, $super) { + text = text === VOID ? this.text : text; + textColor = textColor === VOID ? this.textColor : textColor; + textColorNight = textColorNight === VOID ? this.textColorNight : textColorNight; + bgColor = bgColor === VOID ? this.bgColor : bgColor; + bgColorNight = bgColorNight === VOID ? this.bgColorNight : bgColorNight; + borderColor = borderColor === VOID ? this.borderColor : borderColor; + borderColorNight = borderColorNight === VOID ? this.borderColorNight : borderColorNight; + bgStyle = bgStyle === VOID ? this.bgStyle : bgStyle; + return this.copy_2l3ger_k$(text, textColor, textColorNight, bgColor, bgColorNight, borderColor, borderColorNight, bgStyle); + } + toString() { + return 'KReasonStyle(text=' + this.text + ', textColor=' + this.textColor + ', textColorNight=' + this.textColorNight + ', bgColor=' + this.bgColor + ', bgColorNight=' + this.bgColorNight + ', borderColor=' + this.borderColor + ', borderColorNight=' + this.borderColorNight + ', bgStyle=' + this.bgStyle + ')'; + } + hashCode() { + var result = getStringHashCode(this.text); + result = imul(result, 31) + getStringHashCode(this.textColor) | 0; + result = imul(result, 31) + getStringHashCode(this.textColorNight) | 0; + result = imul(result, 31) + getStringHashCode(this.bgColor) | 0; + result = imul(result, 31) + getStringHashCode(this.bgColorNight) | 0; + result = imul(result, 31) + getStringHashCode(this.borderColor) | 0; + result = imul(result, 31) + getStringHashCode(this.borderColorNight) | 0; + result = imul(result, 31) + this.bgStyle | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KReasonStyle)) + return false; + var tmp0_other_with_cast = other instanceof KReasonStyle ? other : THROW_CCE(); + if (!(this.text === tmp0_other_with_cast.text)) + return false; + if (!(this.textColor === tmp0_other_with_cast.textColor)) + return false; + if (!(this.textColorNight === tmp0_other_with_cast.textColorNight)) + return false; + if (!(this.bgColor === tmp0_other_with_cast.bgColor)) + return false; + if (!(this.bgColorNight === tmp0_other_with_cast.bgColorNight)) + return false; + if (!(this.borderColor === tmp0_other_with_cast.borderColor)) + return false; + if (!(this.borderColorNight === tmp0_other_with_cast.borderColorNight)) + return false; + if (!(this.bgStyle === tmp0_other_with_cast.bgStyle)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KReasonStyle_5fd4wn_k$(seen1, text, textColor, textColorNight, bgColor, bgColorNight, borderColor, borderColorNight, bgStyle, serializationConstructorMarker) { + Companion_instance_619; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_606().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.text = ''; + else + $this.text = text; + if (0 === (seen1 & 2)) + $this.textColor = ''; + else + $this.textColor = textColor; + if (0 === (seen1 & 4)) + $this.textColorNight = ''; + else + $this.textColorNight = textColorNight; + if (0 === (seen1 & 8)) + $this.bgColor = ''; + else + $this.bgColor = bgColor; + if (0 === (seen1 & 16)) + $this.bgColorNight = ''; + else + $this.bgColorNight = bgColorNight; + if (0 === (seen1 & 32)) + $this.borderColor = ''; + else + $this.borderColor = borderColor; + if (0 === (seen1 & 64)) + $this.borderColorNight = ''; + else + $this.borderColorNight = borderColorNight; + if (0 === (seen1 & 128)) + $this.bgStyle = 0; + else + $this.bgStyle = bgStyle; + return $this; + } + } + class Companion_620 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.SharePlane'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_607(); + } + } + class $serializer_607 { + constructor() { + $serializer_instance_607 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KSharePlane', this, 19); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('shareSubtitle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('desc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('aid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('bvid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('shareTo', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('author', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('authorId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('shortLink', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('playNumber', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('roomId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + tmp0_serialDesc.addElement_5pzumi_k$('epId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(13)); + tmp0_serialDesc.addElement_5pzumi_k$('areaName', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(14)); + tmp0_serialDesc.addElement_5pzumi_k$('authorFace', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(15)); + tmp0_serialDesc.addElement_5pzumi_k$('seasonId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(16)); + tmp0_serialDesc.addElement_5pzumi_k$('shareFrom', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(17)); + tmp0_serialDesc.addElement_5pzumi_k$('seasonTitle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(18)); + tmp0_serialDesc.addElement_5pzumi_k$('from', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(19)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_608()), StringSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = new Long(0, 0); + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_local8 = new Long(0, 0); + var tmp13_local9 = null; + var tmp14_local10 = null; + var tmp15_local11 = new Long(0, 0); + var tmp16_local12 = 0; + var tmp17_local13 = null; + var tmp18_local14 = null; + var tmp19_local15 = 0; + var tmp20_local16 = null; + var tmp21_local17 = null; + var tmp22_local18 = null; + var tmp23_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp23_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp23_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp23_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp23_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp23_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp23_input.decodeLongElement_994anb_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp23_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp23_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_608(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp23_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp23_input.decodeLongElement_994anb_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp23_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp23_input.decodeStringElement_3oenpg_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp23_input.decodeLongElement_994anb_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + tmp16_local12 = tmp23_input.decodeIntElement_941u6a_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + tmp17_local13 = tmp23_input.decodeStringElement_3oenpg_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + tmp18_local14 = tmp23_input.decodeStringElement_3oenpg_k$(tmp0_desc, 14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + tmp19_local15 = tmp23_input.decodeIntElement_941u6a_k$(tmp0_desc, 15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + tmp20_local16 = tmp23_input.decodeStringElement_3oenpg_k$(tmp0_desc, 16); + tmp3_bitMask0 = tmp3_bitMask0 | 65536; + tmp21_local17 = tmp23_input.decodeStringElement_3oenpg_k$(tmp0_desc, 17); + tmp3_bitMask0 = tmp3_bitMask0 | 131072; + tmp22_local18 = tmp23_input.decodeStringElement_3oenpg_k$(tmp0_desc, 18); + tmp3_bitMask0 = tmp3_bitMask0 | 262144; + } else + while (tmp1_flag) { + tmp2_index = tmp23_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp23_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp23_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp23_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp23_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp23_input.decodeLongElement_994anb_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp23_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp23_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_608(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp23_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp23_input.decodeLongElement_994anb_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp23_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp23_input.decodeStringElement_3oenpg_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp23_input.decodeLongElement_994anb_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + case 12: + tmp16_local12 = tmp23_input.decodeIntElement_941u6a_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + break; + case 13: + tmp17_local13 = tmp23_input.decodeStringElement_3oenpg_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + break; + case 14: + tmp18_local14 = tmp23_input.decodeStringElement_3oenpg_k$(tmp0_desc, 14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + break; + case 15: + tmp19_local15 = tmp23_input.decodeIntElement_941u6a_k$(tmp0_desc, 15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + break; + case 16: + tmp20_local16 = tmp23_input.decodeStringElement_3oenpg_k$(tmp0_desc, 16); + tmp3_bitMask0 = tmp3_bitMask0 | 65536; + break; + case 17: + tmp21_local17 = tmp23_input.decodeStringElement_3oenpg_k$(tmp0_desc, 17); + tmp3_bitMask0 = tmp3_bitMask0 | 131072; + break; + case 18: + tmp22_local18 = tmp23_input.decodeStringElement_3oenpg_k$(tmp0_desc, 18); + tmp3_bitMask0 = tmp3_bitMask0 | 262144; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp23_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSharePlane.new_com_bapis_bilibili_polymer_app_search_v1_KSharePlane_fvv49i_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, tmp18_local14, tmp19_local15, tmp20_local16, tmp21_local17, tmp22_local18, null); + } + serialize_xi76cm_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.shareSubtitle === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.shareSubtitle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.desc === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.desc); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.cover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !value.aid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 4, value.aid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.bvid === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.bvid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.shareTo == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 6, $serializer_getInstance_608(), value.shareTo); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.author === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.author); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !value.authorId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 8, value.authorId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.shortLink === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 9, value.shortLink); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.playNumber === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 10, value.playNumber); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !value.roomId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 11, value.roomId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !(value.epId === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 12, value.epId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 13) ? true : !(value.areaName === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 13, value.areaName); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 14) ? true : !(value.authorFace === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 14, value.authorFace); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 15) ? true : !(value.seasonId === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 15, value.seasonId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 16) ? true : !(value.shareFrom === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 16, value.shareFrom); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 17) ? true : !(value.seasonTitle === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 17, value.seasonTitle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 18) ? true : !(value.from === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 18, value.from); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_xi76cm_k$(encoder, value instanceof KSharePlane ? value : THROW_CCE()); + } + } + class KSharePlane { + constructor(title, shareSubtitle, desc, cover, aid, bvid, shareTo, author, authorId, shortLink, playNumber, roomId, epId, areaName, authorFace, seasonId, shareFrom, seasonTitle, from) { + Companion_instance_620; + title = title === VOID ? '' : title; + shareSubtitle = shareSubtitle === VOID ? '' : shareSubtitle; + desc = desc === VOID ? '' : desc; + cover = cover === VOID ? '' : cover; + aid = aid === VOID ? new Long(0, 0) : aid; + bvid = bvid === VOID ? '' : bvid; + shareTo = shareTo === VOID ? null : shareTo; + author = author === VOID ? '' : author; + authorId = authorId === VOID ? new Long(0, 0) : authorId; + shortLink = shortLink === VOID ? '' : shortLink; + playNumber = playNumber === VOID ? '' : playNumber; + roomId = roomId === VOID ? new Long(0, 0) : roomId; + epId = epId === VOID ? 0 : epId; + areaName = areaName === VOID ? '' : areaName; + authorFace = authorFace === VOID ? '' : authorFace; + seasonId = seasonId === VOID ? 0 : seasonId; + shareFrom = shareFrom === VOID ? '' : shareFrom; + seasonTitle = seasonTitle === VOID ? '' : seasonTitle; + from = from === VOID ? '' : from; + this.title = title; + this.shareSubtitle = shareSubtitle; + this.desc = desc; + this.cover = cover; + this.aid = aid; + this.bvid = bvid; + this.shareTo = shareTo; + this.author = author; + this.authorId = authorId; + this.shortLink = shortLink; + this.playNumber = playNumber; + this.roomId = roomId; + this.epId = epId; + this.areaName = areaName; + this.authorFace = authorFace; + this.seasonId = seasonId; + this.shareFrom = shareFrom; + this.seasonTitle = seasonTitle; + this.from = from; + } + get_title_iz32un_k$() { + return this.title; + } + get_shareSubtitle_yf1tri_k$() { + return this.shareSubtitle; + } + get_desc_woknve_k$() { + return this.desc; + } + get_cover_ipug0e_k$() { + return this.cover; + } + get_aid_18j9kd_k$() { + return this.aid; + } + get_bvid_wojq9k_k$() { + return this.bvid; + } + get_shareTo_z8kyc1_k$() { + return this.shareTo; + } + get_author_b5hnkk_k$() { + return this.author; + } + get_authorId_83q0q9_k$() { + return this.authorId; + } + get_shortLink_p122oj_k$() { + return this.shortLink; + } + get_playNumber_3nm0py_k$() { + return this.playNumber; + } + get_roomId_j3vckf_k$() { + return this.roomId; + } + get_epId_woli0f_k$() { + return this.epId; + } + get_areaName_bo2w75_k$() { + return this.areaName; + } + get_authorFace_q0qntd_k$() { + return this.authorFace; + } + get_seasonId_h33f15_k$() { + return this.seasonId; + } + get_shareFrom_hnmg00_k$() { + return this.shareFrom; + } + get_seasonTitle_hri9g_k$() { + return this.seasonTitle; + } + get_from_wom7eb_k$() { + return this.from; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.shareSubtitle; + } + component3_7eebsa_k$() { + return this.desc; + } + component4_7eebs9_k$() { + return this.cover; + } + component5_7eebs8_k$() { + return this.aid; + } + component6_7eebs7_k$() { + return this.bvid; + } + component7_7eebs6_k$() { + return this.shareTo; + } + component8_7eebs5_k$() { + return this.author; + } + component9_7eebs4_k$() { + return this.authorId; + } + component10_gazzfo_k$() { + return this.shortLink; + } + component11_gazzfn_k$() { + return this.playNumber; + } + component12_gazzfm_k$() { + return this.roomId; + } + component13_gazzfl_k$() { + return this.epId; + } + component14_gazzfk_k$() { + return this.areaName; + } + component15_gazzfj_k$() { + return this.authorFace; + } + component16_gazzfi_k$() { + return this.seasonId; + } + component17_gazzfh_k$() { + return this.shareFrom; + } + component18_gazzfg_k$() { + return this.seasonTitle; + } + component19_gazzff_k$() { + return this.from; + } + copy_77u1xc_k$(title, shareSubtitle, desc, cover, aid, bvid, shareTo, author, authorId, shortLink, playNumber, roomId, epId, areaName, authorFace, seasonId, shareFrom, seasonTitle, from) { + return new KSharePlane(title, shareSubtitle, desc, cover, aid, bvid, shareTo, author, authorId, shortLink, playNumber, roomId, epId, areaName, authorFace, seasonId, shareFrom, seasonTitle, from); + } + copy(title, shareSubtitle, desc, cover, aid, bvid, shareTo, author, authorId, shortLink, playNumber, roomId, epId, areaName, authorFace, seasonId, shareFrom, seasonTitle, from, $super) { + title = title === VOID ? this.title : title; + shareSubtitle = shareSubtitle === VOID ? this.shareSubtitle : shareSubtitle; + desc = desc === VOID ? this.desc : desc; + cover = cover === VOID ? this.cover : cover; + aid = aid === VOID ? this.aid : aid; + bvid = bvid === VOID ? this.bvid : bvid; + shareTo = shareTo === VOID ? this.shareTo : shareTo; + author = author === VOID ? this.author : author; + authorId = authorId === VOID ? this.authorId : authorId; + shortLink = shortLink === VOID ? this.shortLink : shortLink; + playNumber = playNumber === VOID ? this.playNumber : playNumber; + roomId = roomId === VOID ? this.roomId : roomId; + epId = epId === VOID ? this.epId : epId; + areaName = areaName === VOID ? this.areaName : areaName; + authorFace = authorFace === VOID ? this.authorFace : authorFace; + seasonId = seasonId === VOID ? this.seasonId : seasonId; + shareFrom = shareFrom === VOID ? this.shareFrom : shareFrom; + seasonTitle = seasonTitle === VOID ? this.seasonTitle : seasonTitle; + from = from === VOID ? this.from : from; + return this.copy_77u1xc_k$(title, shareSubtitle, desc, cover, aid, bvid, shareTo, author, authorId, shortLink, playNumber, roomId, epId, areaName, authorFace, seasonId, shareFrom, seasonTitle, from); + } + toString() { + return 'KSharePlane(title=' + this.title + ', shareSubtitle=' + this.shareSubtitle + ', desc=' + this.desc + ', cover=' + this.cover + ', aid=' + this.aid.toString() + ', bvid=' + this.bvid + ', shareTo=' + this.shareTo + ', author=' + this.author + ', authorId=' + this.authorId.toString() + ', shortLink=' + this.shortLink + ', playNumber=' + this.playNumber + ', roomId=' + this.roomId.toString() + ', epId=' + this.epId + ', areaName=' + this.areaName + ', authorFace=' + this.authorFace + ', seasonId=' + this.seasonId + ', shareFrom=' + this.shareFrom + ', seasonTitle=' + this.seasonTitle + ', from=' + this.from + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.shareSubtitle) | 0; + result = imul(result, 31) + getStringHashCode(this.desc) | 0; + result = imul(result, 31) + getStringHashCode(this.cover) | 0; + result = imul(result, 31) + this.aid.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.bvid) | 0; + result = imul(result, 31) + (this.shareTo == null ? 0 : this.shareTo.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.author) | 0; + result = imul(result, 31) + this.authorId.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.shortLink) | 0; + result = imul(result, 31) + getStringHashCode(this.playNumber) | 0; + result = imul(result, 31) + this.roomId.hashCode() | 0; + result = imul(result, 31) + this.epId | 0; + result = imul(result, 31) + getStringHashCode(this.areaName) | 0; + result = imul(result, 31) + getStringHashCode(this.authorFace) | 0; + result = imul(result, 31) + this.seasonId | 0; + result = imul(result, 31) + getStringHashCode(this.shareFrom) | 0; + result = imul(result, 31) + getStringHashCode(this.seasonTitle) | 0; + result = imul(result, 31) + getStringHashCode(this.from) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSharePlane)) + return false; + var tmp0_other_with_cast = other instanceof KSharePlane ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.shareSubtitle === tmp0_other_with_cast.shareSubtitle)) + return false; + if (!(this.desc === tmp0_other_with_cast.desc)) + return false; + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + if (!this.aid.equals(tmp0_other_with_cast.aid)) + return false; + if (!(this.bvid === tmp0_other_with_cast.bvid)) + return false; + if (!equals(this.shareTo, tmp0_other_with_cast.shareTo)) + return false; + if (!(this.author === tmp0_other_with_cast.author)) + return false; + if (!this.authorId.equals(tmp0_other_with_cast.authorId)) + return false; + if (!(this.shortLink === tmp0_other_with_cast.shortLink)) + return false; + if (!(this.playNumber === tmp0_other_with_cast.playNumber)) + return false; + if (!this.roomId.equals(tmp0_other_with_cast.roomId)) + return false; + if (!(this.epId === tmp0_other_with_cast.epId)) + return false; + if (!(this.areaName === tmp0_other_with_cast.areaName)) + return false; + if (!(this.authorFace === tmp0_other_with_cast.authorFace)) + return false; + if (!(this.seasonId === tmp0_other_with_cast.seasonId)) + return false; + if (!(this.shareFrom === tmp0_other_with_cast.shareFrom)) + return false; + if (!(this.seasonTitle === tmp0_other_with_cast.seasonTitle)) + return false; + if (!(this.from === tmp0_other_with_cast.from)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KSharePlane_fvv49i_k$(seen1, title, shareSubtitle, desc, cover, aid, bvid, shareTo, author, authorId, shortLink, playNumber, roomId, epId, areaName, authorFace, seasonId, shareFrom, seasonTitle, from, serializationConstructorMarker) { + Companion_instance_620; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_607().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.shareSubtitle = ''; + else + $this.shareSubtitle = shareSubtitle; + if (0 === (seen1 & 4)) + $this.desc = ''; + else + $this.desc = desc; + if (0 === (seen1 & 8)) + $this.cover = ''; + else + $this.cover = cover; + if (0 === (seen1 & 16)) + $this.aid = new Long(0, 0); + else + $this.aid = aid; + if (0 === (seen1 & 32)) + $this.bvid = ''; + else + $this.bvid = bvid; + if (0 === (seen1 & 64)) + $this.shareTo = null; + else + $this.shareTo = shareTo; + if (0 === (seen1 & 128)) + $this.author = ''; + else + $this.author = author; + if (0 === (seen1 & 256)) + $this.authorId = new Long(0, 0); + else + $this.authorId = authorId; + if (0 === (seen1 & 512)) + $this.shortLink = ''; + else + $this.shortLink = shortLink; + if (0 === (seen1 & 1024)) + $this.playNumber = ''; + else + $this.playNumber = playNumber; + if (0 === (seen1 & 2048)) + $this.roomId = new Long(0, 0); + else + $this.roomId = roomId; + if (0 === (seen1 & 4096)) + $this.epId = 0; + else + $this.epId = epId; + if (0 === (seen1 & 8192)) + $this.areaName = ''; + else + $this.areaName = areaName; + if (0 === (seen1 & 16384)) + $this.authorFace = ''; + else + $this.authorFace = authorFace; + if (0 === (seen1 & 32768)) + $this.seasonId = 0; + else + $this.seasonId = seasonId; + if (0 === (seen1 & 65536)) + $this.shareFrom = ''; + else + $this.shareFrom = shareFrom; + if (0 === (seen1 & 131072)) + $this.seasonTitle = ''; + else + $this.seasonTitle = seasonTitle; + if (0 === (seen1 & 262144)) + $this.from = ''; + else + $this.from = from; + return $this; + } + } + class Companion_621 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.ShareTo'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_608(); + } + } + class $serializer_608 { + constructor() { + $serializer_instance_608 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KShareTo', this, 14); + tmp0_serialDesc.addElement_5pzumi_k$('dynamic', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('im', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('copy', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('more', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('wechat', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('weibo', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('wechatMonment', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('qq', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('qzone', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('facebook', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('line', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('messenger', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + tmp0_serialDesc.addElement_5pzumi_k$('whatsApp', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(13)); + tmp0_serialDesc.addElement_5pzumi_k$('twitter', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(14)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = false; + var tmp5_local1 = false; + var tmp6_local2 = false; + var tmp7_local3 = false; + var tmp8_local4 = false; + var tmp9_local5 = false; + var tmp10_local6 = false; + var tmp11_local7 = false; + var tmp12_local8 = false; + var tmp13_local9 = false; + var tmp14_local10 = false; + var tmp15_local11 = false; + var tmp16_local12 = false; + var tmp17_local13 = false; + var tmp18_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp18_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp18_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp18_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp18_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp18_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp18_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp18_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp18_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp18_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp18_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp18_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp18_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp18_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + tmp16_local12 = tmp18_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + tmp17_local13 = tmp18_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + } else + while (tmp1_flag) { + tmp2_index = tmp18_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp18_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp18_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp18_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp18_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp18_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp18_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp18_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp18_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp18_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp18_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp18_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp18_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + case 12: + tmp16_local12 = tmp18_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + break; + case 13: + tmp17_local13 = tmp18_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp18_input.endStructure_1xqz0n_k$(tmp0_desc); + return KShareTo.new_com_bapis_bilibili_polymer_app_search_v1_KShareTo_xgntnf_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, null); + } + serialize_bkzjez_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.dynamic === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 0, value.dynamic); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.im === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 1, value.im); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.copyJs === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 2, value.copyJs); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.more === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 3, value.more); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.wechat === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 4, value.wechat); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.weibo === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 5, value.weibo); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.wechatMonment === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 6, value.wechatMonment); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.qq === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 7, value.qq); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.qzone === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 8, value.qzone); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.facebook === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 9, value.facebook); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.line === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 10, value.line); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.messenger === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 11, value.messenger); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !(value.whatsApp === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 12, value.whatsApp); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 13) ? true : !(value.twitter === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 13, value.twitter); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_bkzjez_k$(encoder, value instanceof KShareTo ? value : THROW_CCE()); + } + } + class KShareTo { + constructor(dynamic, im, copy, more, wechat, weibo, wechatMonment, qq, qzone, facebook, line, messenger, whatsApp, twitter) { + Companion_instance_621; + dynamic = dynamic === VOID ? false : dynamic; + im = im === VOID ? false : im; + copy = copy === VOID ? false : copy; + more = more === VOID ? false : more; + wechat = wechat === VOID ? false : wechat; + weibo = weibo === VOID ? false : weibo; + wechatMonment = wechatMonment === VOID ? false : wechatMonment; + qq = qq === VOID ? false : qq; + qzone = qzone === VOID ? false : qzone; + facebook = facebook === VOID ? false : facebook; + line = line === VOID ? false : line; + messenger = messenger === VOID ? false : messenger; + whatsApp = whatsApp === VOID ? false : whatsApp; + twitter = twitter === VOID ? false : twitter; + this.dynamic = dynamic; + this.im = im; + this.copyJs = copy; + this.more = more; + this.wechat = wechat; + this.weibo = weibo; + this.wechatMonment = wechatMonment; + this.qq = qq; + this.qzone = qzone; + this.facebook = facebook; + this.line = line; + this.messenger = messenger; + this.whatsApp = whatsApp; + this.twitter = twitter; + } + get_dynamic_ymiyzu_k$() { + return this.dynamic; + } + get_im_kntnwz_k$() { + return this.im; + } + get_copyJs_c07wkn_k$() { + return this.copyJs; + } + get_more_woqm5a_k$() { + return this.more; + } + get_wechat_lbdrn3_k$() { + return this.wechat; + } + get_weibo_j0noan_k$() { + return this.weibo; + } + get_wechatMonment_pv8eyt_k$() { + return this.wechatMonment; + } + get_qq_kntnpz_k$() { + return this.qq; + } + get_qzone_ixqg6s_k$() { + return this.qzone; + } + get_facebook_nkyik1_k$() { + return this.facebook; + } + get_line_wopum5_k$() { + return this.line; + } + get_messenger_f8hyty_k$() { + return this.messenger; + } + get_whatsApp_6yo1n_k$() { + return this.whatsApp; + } + get_twitter_dw0j92_k$() { + return this.twitter; + } + component1_7eebsc_k$() { + return this.dynamic; + } + component2_7eebsb_k$() { + return this.im; + } + component3_7eebsa_k$() { + return this.copyJs; + } + component4_7eebs9_k$() { + return this.more; + } + component5_7eebs8_k$() { + return this.wechat; + } + component6_7eebs7_k$() { + return this.weibo; + } + component7_7eebs6_k$() { + return this.wechatMonment; + } + component8_7eebs5_k$() { + return this.qq; + } + component9_7eebs4_k$() { + return this.qzone; + } + component10_gazzfo_k$() { + return this.facebook; + } + component11_gazzfn_k$() { + return this.line; + } + component12_gazzfm_k$() { + return this.messenger; + } + component13_gazzfl_k$() { + return this.whatsApp; + } + component14_gazzfk_k$() { + return this.twitter; + } + copy_ffw0et_k$(dynamic, im, copy, more, wechat, weibo, wechatMonment, qq, qzone, facebook, line, messenger, whatsApp, twitter) { + return new KShareTo(dynamic, im, copy, more, wechat, weibo, wechatMonment, qq, qzone, facebook, line, messenger, whatsApp, twitter); + } + copy(dynamic, im, copy, more, wechat, weibo, wechatMonment, qq, qzone, facebook, line, messenger, whatsApp, twitter, $super) { + dynamic = dynamic === VOID ? this.dynamic : dynamic; + im = im === VOID ? this.im : im; + copy = copy === VOID ? this.copyJs : copy; + more = more === VOID ? this.more : more; + wechat = wechat === VOID ? this.wechat : wechat; + weibo = weibo === VOID ? this.weibo : weibo; + wechatMonment = wechatMonment === VOID ? this.wechatMonment : wechatMonment; + qq = qq === VOID ? this.qq : qq; + qzone = qzone === VOID ? this.qzone : qzone; + facebook = facebook === VOID ? this.facebook : facebook; + line = line === VOID ? this.line : line; + messenger = messenger === VOID ? this.messenger : messenger; + whatsApp = whatsApp === VOID ? this.whatsApp : whatsApp; + twitter = twitter === VOID ? this.twitter : twitter; + return this.copy_ffw0et_k$(dynamic, im, copy, more, wechat, weibo, wechatMonment, qq, qzone, facebook, line, messenger, whatsApp, twitter); + } + toString() { + return 'KShareTo(dynamic=' + this.dynamic + ', im=' + this.im + ', copy=' + this.copyJs + ', more=' + this.more + ', wechat=' + this.wechat + ', weibo=' + this.weibo + ', wechatMonment=' + this.wechatMonment + ', qq=' + this.qq + ', qzone=' + this.qzone + ', facebook=' + this.facebook + ', line=' + this.line + ', messenger=' + this.messenger + ', whatsApp=' + this.whatsApp + ', twitter=' + this.twitter + ')'; + } + hashCode() { + var result = getBooleanHashCode(this.dynamic); + result = imul(result, 31) + getBooleanHashCode(this.im) | 0; + result = imul(result, 31) + getBooleanHashCode(this.copyJs) | 0; + result = imul(result, 31) + getBooleanHashCode(this.more) | 0; + result = imul(result, 31) + getBooleanHashCode(this.wechat) | 0; + result = imul(result, 31) + getBooleanHashCode(this.weibo) | 0; + result = imul(result, 31) + getBooleanHashCode(this.wechatMonment) | 0; + result = imul(result, 31) + getBooleanHashCode(this.qq) | 0; + result = imul(result, 31) + getBooleanHashCode(this.qzone) | 0; + result = imul(result, 31) + getBooleanHashCode(this.facebook) | 0; + result = imul(result, 31) + getBooleanHashCode(this.line) | 0; + result = imul(result, 31) + getBooleanHashCode(this.messenger) | 0; + result = imul(result, 31) + getBooleanHashCode(this.whatsApp) | 0; + result = imul(result, 31) + getBooleanHashCode(this.twitter) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KShareTo)) + return false; + var tmp0_other_with_cast = other instanceof KShareTo ? other : THROW_CCE(); + if (!(this.dynamic === tmp0_other_with_cast.dynamic)) + return false; + if (!(this.im === tmp0_other_with_cast.im)) + return false; + if (!(this.copyJs === tmp0_other_with_cast.copyJs)) + return false; + if (!(this.more === tmp0_other_with_cast.more)) + return false; + if (!(this.wechat === tmp0_other_with_cast.wechat)) + return false; + if (!(this.weibo === tmp0_other_with_cast.weibo)) + return false; + if (!(this.wechatMonment === tmp0_other_with_cast.wechatMonment)) + return false; + if (!(this.qq === tmp0_other_with_cast.qq)) + return false; + if (!(this.qzone === tmp0_other_with_cast.qzone)) + return false; + if (!(this.facebook === tmp0_other_with_cast.facebook)) + return false; + if (!(this.line === tmp0_other_with_cast.line)) + return false; + if (!(this.messenger === tmp0_other_with_cast.messenger)) + return false; + if (!(this.whatsApp === tmp0_other_with_cast.whatsApp)) + return false; + if (!(this.twitter === tmp0_other_with_cast.twitter)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KShareTo_xgntnf_k$(seen1, dynamic, im, copy, more, wechat, weibo, wechatMonment, qq, qzone, facebook, line, messenger, whatsApp, twitter, serializationConstructorMarker) { + Companion_instance_621; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_608().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.dynamic = false; + else + $this.dynamic = dynamic; + if (0 === (seen1 & 2)) + $this.im = false; + else + $this.im = im; + if (0 === (seen1 & 4)) + $this.copyJs = false; + else + $this.copyJs = copy; + if (0 === (seen1 & 8)) + $this.more = false; + else + $this.more = more; + if (0 === (seen1 & 16)) + $this.wechat = false; + else + $this.wechat = wechat; + if (0 === (seen1 & 32)) + $this.weibo = false; + else + $this.weibo = weibo; + if (0 === (seen1 & 64)) + $this.wechatMonment = false; + else + $this.wechatMonment = wechatMonment; + if (0 === (seen1 & 128)) + $this.qq = false; + else + $this.qq = qq; + if (0 === (seen1 & 256)) + $this.qzone = false; + else + $this.qzone = qzone; + if (0 === (seen1 & 512)) + $this.facebook = false; + else + $this.facebook = facebook; + if (0 === (seen1 & 1024)) + $this.line = false; + else + $this.line = line; + if (0 === (seen1 & 2048)) + $this.messenger = false; + else + $this.messenger = messenger; + if (0 === (seen1 & 4096)) + $this.whatsApp = false; + else + $this.whatsApp = whatsApp; + if (0 === (seen1 & 8192)) + $this.twitter = false; + else + $this.twitter = twitter; + return $this; + } + } + class Companion_622 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.DisplayOption'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_609(); + } + } + class $serializer_609 { + constructor() { + $serializer_instance_609 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KDisplayOption', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('videoTitleRow', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('searchPageVisualOpti', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('refreshOpti', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = 0; + var tmp6_local2 = 0; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KDisplayOption.new_com_bapis_bilibili_polymer_app_search_v1_KDisplayOption_2zwde_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_37k4zs_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.videoTitleRow === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.videoTitleRow); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.searchPageVisualOpti === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.searchPageVisualOpti); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.refreshOpti === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.refreshOpti); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_37k4zs_k$(encoder, value instanceof KDisplayOption ? value : THROW_CCE()); + } + } + class KDisplayOption { + constructor(videoTitleRow, searchPageVisualOpti, refreshOpti) { + Companion_instance_622; + videoTitleRow = videoTitleRow === VOID ? 0 : videoTitleRow; + searchPageVisualOpti = searchPageVisualOpti === VOID ? 0 : searchPageVisualOpti; + refreshOpti = refreshOpti === VOID ? 0 : refreshOpti; + this.videoTitleRow = videoTitleRow; + this.searchPageVisualOpti = searchPageVisualOpti; + this.refreshOpti = refreshOpti; + } + get_videoTitleRow_yh4990_k$() { + return this.videoTitleRow; + } + get_searchPageVisualOpti_d859je_k$() { + return this.searchPageVisualOpti; + } + get_refreshOpti_91uhnc_k$() { + return this.refreshOpti; + } + component1_7eebsc_k$() { + return this.videoTitleRow; + } + component2_7eebsb_k$() { + return this.searchPageVisualOpti; + } + component3_7eebsa_k$() { + return this.refreshOpti; + } + copy_6of2tf_k$(videoTitleRow, searchPageVisualOpti, refreshOpti) { + return new KDisplayOption(videoTitleRow, searchPageVisualOpti, refreshOpti); + } + copy(videoTitleRow, searchPageVisualOpti, refreshOpti, $super) { + videoTitleRow = videoTitleRow === VOID ? this.videoTitleRow : videoTitleRow; + searchPageVisualOpti = searchPageVisualOpti === VOID ? this.searchPageVisualOpti : searchPageVisualOpti; + refreshOpti = refreshOpti === VOID ? this.refreshOpti : refreshOpti; + return this.copy_6of2tf_k$(videoTitleRow, searchPageVisualOpti, refreshOpti); + } + toString() { + return 'KDisplayOption(videoTitleRow=' + this.videoTitleRow + ', searchPageVisualOpti=' + this.searchPageVisualOpti + ', refreshOpti=' + this.refreshOpti + ')'; + } + hashCode() { + var result = this.videoTitleRow; + result = imul(result, 31) + this.searchPageVisualOpti | 0; + result = imul(result, 31) + this.refreshOpti | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KDisplayOption)) + return false; + var tmp0_other_with_cast = other instanceof KDisplayOption ? other : THROW_CCE(); + if (!(this.videoTitleRow === tmp0_other_with_cast.videoTitleRow)) + return false; + if (!(this.searchPageVisualOpti === tmp0_other_with_cast.searchPageVisualOpti)) + return false; + if (!(this.refreshOpti === tmp0_other_with_cast.refreshOpti)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KDisplayOption_2zwde_k$(seen1, videoTitleRow, searchPageVisualOpti, refreshOpti, serializationConstructorMarker) { + Companion_instance_622; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_609().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.videoTitleRow = 0; + else + $this.videoTitleRow = videoTitleRow; + if (0 === (seen1 & 2)) + $this.searchPageVisualOpti = 0; + else + $this.searchPageVisualOpti = searchPageVisualOpti; + if (0 === (seen1 & 4)) + $this.refreshOpti = 0; + else + $this.refreshOpti = refreshOpti; + return $this; + } + } + class Companion_623 { + constructor() { + Companion_instance_623 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer($serializer_getInstance_611())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.polymer.app.search.v1.Feedback'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_610(); + } + } + class $serializer_610 { + constructor() { + $serializer_instance_610 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KFeedback', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('sections', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_623().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp6_cached = Companion_getInstance_623().$childSerializers_1; + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KFeedback.new_com_bapis_bilibili_polymer_app_search_v1_KFeedback_hp2e5t_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_vsp36a_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_623().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.sections, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.sections); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_vsp36a_k$(encoder, value instanceof KFeedback ? value : THROW_CCE()); + } + } + class KFeedback { + constructor(sections) { + Companion_getInstance_623(); + sections = sections === VOID ? emptyList() : sections; + this.sections = sections; + } + get_sections_g4k5xl_k$() { + return this.sections; + } + component1_7eebsc_k$() { + return this.sections; + } + copy_4wfn79_k$(sections) { + return new KFeedback(sections); + } + copy(sections, $super) { + sections = sections === VOID ? this.sections : sections; + return this.copy_4wfn79_k$(sections); + } + toString() { + return 'KFeedback(sections=' + this.sections + ')'; + } + hashCode() { + return hashCode(this.sections); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KFeedback)) + return false; + var tmp0_other_with_cast = other instanceof KFeedback ? other : THROW_CCE(); + if (!equals(this.sections, tmp0_other_with_cast.sections)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KFeedback_hp2e5t_k$(seen1, sections, serializationConstructorMarker) { + Companion_getInstance_623(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_610().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.sections = emptyList(); + else + $this.sections = sections; + return $this; + } + } + class Companion_624 { + constructor() { + Companion_instance_624 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, new ArrayListSerializer($serializer_getInstance_612())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.polymer.app.search.v1.FeedbackSection'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_611(); + } + } + class $serializer_611 { + constructor() { + $serializer_instance_611 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KFeedbackSection', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('items', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_624().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), tmp0_cached[2]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp8_cached = Companion_getInstance_624().$childSerializers_1; + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp8_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp8_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KFeedbackSection.new_com_bapis_bilibili_polymer_app_search_v1_KFeedbackSection_aptpk2_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_nr1rv3_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_624().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.type === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.type); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !equals(value.items, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 2, tmp2_cached[2], value.items); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_nr1rv3_k$(encoder, value instanceof KFeedbackSection ? value : THROW_CCE()); + } + } + class KFeedbackSection { + constructor(title, type, items) { + Companion_getInstance_624(); + title = title === VOID ? '' : title; + type = type === VOID ? '' : type; + items = items === VOID ? emptyList() : items; + this.title = title; + this.type = type; + this.items = items; + } + get_title_iz32un_k$() { + return this.title; + } + get_type_wovaf7_k$() { + return this.type; + } + get_items_it823b_k$() { + return this.items; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.type; + } + component3_7eebsa_k$() { + return this.items; + } + copy_3figcp_k$(title, type, items) { + return new KFeedbackSection(title, type, items); + } + copy(title, type, items, $super) { + title = title === VOID ? this.title : title; + type = type === VOID ? this.type : type; + items = items === VOID ? this.items : items; + return this.copy_3figcp_k$(title, type, items); + } + toString() { + return 'KFeedbackSection(title=' + this.title + ', type=' + this.type + ', items=' + this.items + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.type) | 0; + result = imul(result, 31) + hashCode(this.items) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KFeedbackSection)) + return false; + var tmp0_other_with_cast = other instanceof KFeedbackSection ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.type === tmp0_other_with_cast.type)) + return false; + if (!equals(this.items, tmp0_other_with_cast.items)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KFeedbackSection_aptpk2_k$(seen1, title, type, items, serializationConstructorMarker) { + Companion_getInstance_624(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_611().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.type = ''; + else + $this.type = type; + if (0 === (seen1 & 4)) + $this.items = emptyList(); + else + $this.items = items; + return $this; + } + } + class Companion_625 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.FeedbackItem'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_612(); + } + } + class $serializer_612 { + constructor() { + $serializer_instance_612 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KFeedbackItem', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('text', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('id', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = 0; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KFeedbackItem.new_com_bapis_bilibili_polymer_app_search_v1_KFeedbackItem_9yavgc_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_glv2yn_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.text === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.text); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.id === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.id); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_glv2yn_k$(encoder, value instanceof KFeedbackItem ? value : THROW_CCE()); + } + } + class KFeedbackItem { + constructor(text, id) { + Companion_instance_625; + text = text === VOID ? '' : text; + id = id === VOID ? 0 : id; + this.text = text; + this.id = id; + } + get_text_wouvsm_k$() { + return this.text; + } + get_id_kntnx8_k$() { + return this.id; + } + component1_7eebsc_k$() { + return this.text; + } + component2_7eebsb_k$() { + return this.id; + } + copy_1yzwer_k$(text, id) { + return new KFeedbackItem(text, id); + } + copy(text, id, $super) { + text = text === VOID ? this.text : text; + id = id === VOID ? this.id : id; + return this.copy_1yzwer_k$(text, id); + } + toString() { + return 'KFeedbackItem(text=' + this.text + ', id=' + this.id + ')'; + } + hashCode() { + var result = getStringHashCode(this.text); + result = imul(result, 31) + this.id | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KFeedbackItem)) + return false; + var tmp0_other_with_cast = other instanceof KFeedbackItem ? other : THROW_CCE(); + if (!(this.text === tmp0_other_with_cast.text)) + return false; + if (!(this.id === tmp0_other_with_cast.id)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KFeedbackItem_9yavgc_k$(seen1, text, id, serializationConstructorMarker) { + Companion_instance_625; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_612().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.text = ''; + else + $this.text = text; + if (0 === (seen1 & 2)) + $this.id = 0; + else + $this.id = id; + return $this; + } + } + class Companion_626 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.PicNavigation'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_613(); + } + } + class $serializer_613 { + constructor() { + $serializer_instance_613 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KPicNavigation', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('uri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KPicNavigation.new_com_bapis_bilibili_polymer_app_search_v1_KPicNavigation_31r4ev_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_fasoi7_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.uri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.uri); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_fasoi7_k$(encoder, value instanceof KPicNavigation ? value : THROW_CCE()); + } + } + class KPicNavigation { + constructor(title, uri) { + Companion_instance_626; + title = title === VOID ? '' : title; + uri = uri === VOID ? '' : uri; + this.title = title; + this.uri = uri; + } + get_title_iz32un_k$() { + return this.title; + } + get_uri_18iuil_k$() { + return this.uri; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.uri; + } + copy_plwnsl_k$(title, uri) { + return new KPicNavigation(title, uri); + } + copy(title, uri, $super) { + title = title === VOID ? this.title : title; + uri = uri === VOID ? this.uri : uri; + return this.copy_plwnsl_k$(title, uri); + } + toString() { + return 'KPicNavigation(title=' + this.title + ', uri=' + this.uri + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.uri) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KPicNavigation)) + return false; + var tmp0_other_with_cast = other instanceof KPicNavigation ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.uri === tmp0_other_with_cast.uri)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KPicNavigation_31r4ev_k$(seen1, title, uri, serializationConstructorMarker) { + Companion_instance_626; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_613().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.uri = ''; + else + $this.uri = uri; + return $this; + } + } + class Companion_627 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.ReserveInfo'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_614(); + } + } + class $serializer_614 { + constructor() { + $serializer_instance_614 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KReserveInfo', this, 8); + tmp0_serialDesc.addElement_5pzumi_k$('sid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('isFollow', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('oid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('icon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('iconNight', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('state', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('bgColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_local2 = new Long(0, 0); + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = new Long(0, 0); + var tmp11_local7 = new Long(0, 0); + var tmp12_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp12_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + } else + while (tmp1_flag) { + tmp2_index = tmp12_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp12_input.endStructure_1xqz0n_k$(tmp0_desc); + return KReserveInfo.new_com_bapis_bilibili_polymer_app_search_v1_KReserveInfo_6js7if_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null); + } + serialize_dcy6l7_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.sid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.sid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.isFollow.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.isFollow); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.oid === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.oid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.icon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.icon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.iconNight === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.iconNight); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !value.state.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 6, value.state); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !value.bgColor.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 7, value.bgColor); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_dcy6l7_k$(encoder, value instanceof KReserveInfo ? value : THROW_CCE()); + } + } + class KReserveInfo { + constructor(sid, title, isFollow, oid, icon, iconNight, state, bgColor) { + Companion_instance_627; + sid = sid === VOID ? new Long(0, 0) : sid; + title = title === VOID ? '' : title; + isFollow = isFollow === VOID ? new Long(0, 0) : isFollow; + oid = oid === VOID ? '' : oid; + icon = icon === VOID ? '' : icon; + iconNight = iconNight === VOID ? '' : iconNight; + state = state === VOID ? new Long(0, 0) : state; + bgColor = bgColor === VOID ? new Long(0, 0) : bgColor; + this.sid = sid; + this.title = title; + this.isFollow = isFollow; + this.oid = oid; + this.icon = icon; + this.iconNight = iconNight; + this.state = state; + this.bgColor = bgColor; + } + get_sid_18iw7v_k$() { + return this.sid; + } + get_title_iz32un_k$() { + return this.title; + } + get_isFollow_tdz0w4_k$() { + return this.isFollow; + } + get_oid_18iz6n_k$() { + return this.oid; + } + get_icon_wont8i_k$() { + return this.icon; + } + get_iconNight_equj62_k$() { + return this.iconNight; + } + get_state_iypx7s_k$() { + return this.state; + } + get_bgColor_24ewuj_k$() { + return this.bgColor; + } + component1_7eebsc_k$() { + return this.sid; + } + component2_7eebsb_k$() { + return this.title; + } + component3_7eebsa_k$() { + return this.isFollow; + } + component4_7eebs9_k$() { + return this.oid; + } + component5_7eebs8_k$() { + return this.icon; + } + component6_7eebs7_k$() { + return this.iconNight; + } + component7_7eebs6_k$() { + return this.state; + } + component8_7eebs5_k$() { + return this.bgColor; + } + copy_437uq7_k$(sid, title, isFollow, oid, icon, iconNight, state, bgColor) { + return new KReserveInfo(sid, title, isFollow, oid, icon, iconNight, state, bgColor); + } + copy(sid, title, isFollow, oid, icon, iconNight, state, bgColor, $super) { + sid = sid === VOID ? this.sid : sid; + title = title === VOID ? this.title : title; + isFollow = isFollow === VOID ? this.isFollow : isFollow; + oid = oid === VOID ? this.oid : oid; + icon = icon === VOID ? this.icon : icon; + iconNight = iconNight === VOID ? this.iconNight : iconNight; + state = state === VOID ? this.state : state; + bgColor = bgColor === VOID ? this.bgColor : bgColor; + return this.copy_437uq7_k$(sid, title, isFollow, oid, icon, iconNight, state, bgColor); + } + toString() { + return 'KReserveInfo(sid=' + this.sid.toString() + ', title=' + this.title + ', isFollow=' + this.isFollow.toString() + ', oid=' + this.oid + ', icon=' + this.icon + ', iconNight=' + this.iconNight + ', state=' + this.state.toString() + ', bgColor=' + this.bgColor.toString() + ')'; + } + hashCode() { + var result = this.sid.hashCode(); + result = imul(result, 31) + getStringHashCode(this.title) | 0; + result = imul(result, 31) + this.isFollow.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.oid) | 0; + result = imul(result, 31) + getStringHashCode(this.icon) | 0; + result = imul(result, 31) + getStringHashCode(this.iconNight) | 0; + result = imul(result, 31) + this.state.hashCode() | 0; + result = imul(result, 31) + this.bgColor.hashCode() | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KReserveInfo)) + return false; + var tmp0_other_with_cast = other instanceof KReserveInfo ? other : THROW_CCE(); + if (!this.sid.equals(tmp0_other_with_cast.sid)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!this.isFollow.equals(tmp0_other_with_cast.isFollow)) + return false; + if (!(this.oid === tmp0_other_with_cast.oid)) + return false; + if (!(this.icon === tmp0_other_with_cast.icon)) + return false; + if (!(this.iconNight === tmp0_other_with_cast.iconNight)) + return false; + if (!this.state.equals(tmp0_other_with_cast.state)) + return false; + if (!this.bgColor.equals(tmp0_other_with_cast.bgColor)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KReserveInfo_6js7if_k$(seen1, sid, title, isFollow, oid, icon, iconNight, state, bgColor, serializationConstructorMarker) { + Companion_instance_627; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_614().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.sid = new Long(0, 0); + else + $this.sid = sid; + if (0 === (seen1 & 2)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 4)) + $this.isFollow = new Long(0, 0); + else + $this.isFollow = isFollow; + if (0 === (seen1 & 8)) + $this.oid = ''; + else + $this.oid = oid; + if (0 === (seen1 & 16)) + $this.icon = ''; + else + $this.icon = icon; + if (0 === (seen1 & 32)) + $this.iconNight = ''; + else + $this.iconNight = iconNight; + if (0 === (seen1 & 64)) + $this.state = new Long(0, 0); + else + $this.state = state; + if (0 === (seen1 & 128)) + $this.bgColor = new Long(0, 0); + else + $this.bgColor = bgColor; + return $this; + } + } + class Companion_628 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.SearchReserveRequest'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_615(); + } + } + class $serializer_615 { + constructor() { + $serializer_instance_615 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KSearchReserveRequest', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('sid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('oid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSearchReserveRequest.new_com_bapis_bilibili_polymer_app_search_v1_KSearchReserveRequest_hkmu9t_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_z16xus_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.sid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.sid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.oid === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.oid); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_z16xus_k$(encoder, value instanceof KSearchReserveRequest ? value : THROW_CCE()); + } + } + class KSearchReserveRequest { + constructor(sid, oid) { + Companion_instance_628; + sid = sid === VOID ? new Long(0, 0) : sid; + oid = oid === VOID ? '' : oid; + this.sid = sid; + this.oid = oid; + } + get_sid_18iw7v_k$() { + return this.sid; + } + get_oid_18iz6n_k$() { + return this.oid; + } + component1_7eebsc_k$() { + return this.sid; + } + component2_7eebsb_k$() { + return this.oid; + } + copy_ezpntz_k$(sid, oid) { + return new KSearchReserveRequest(sid, oid); + } + copy(sid, oid, $super) { + sid = sid === VOID ? this.sid : sid; + oid = oid === VOID ? this.oid : oid; + return this.copy_ezpntz_k$(sid, oid); + } + toString() { + return 'KSearchReserveRequest(sid=' + this.sid.toString() + ', oid=' + this.oid + ')'; + } + hashCode() { + var result = this.sid.hashCode(); + result = imul(result, 31) + getStringHashCode(this.oid) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSearchReserveRequest)) + return false; + var tmp0_other_with_cast = other instanceof KSearchReserveRequest ? other : THROW_CCE(); + if (!this.sid.equals(tmp0_other_with_cast.sid)) + return false; + if (!(this.oid === tmp0_other_with_cast.oid)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KSearchReserveRequest_hkmu9t_k$(seen1, sid, oid, serializationConstructorMarker) { + Companion_instance_628; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_615().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.sid = new Long(0, 0); + else + $this.sid = sid; + if (0 === (seen1 & 2)) + $this.oid = ''; + else + $this.oid = oid; + return $this; + } + } + class Companion_629 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.SearchReserveResponse'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_616(); + } + } + class $serializer_616 { + constructor() { + $serializer_instance_616 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KSearchReserveResponse', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('reserveInfo', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_614())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_614(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_614(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSearchReserveResponse.new_com_bapis_bilibili_polymer_app_search_v1_KSearchReserveResponse_gb3daz_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_79t30a_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.reserveInfo == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_614(), value.reserveInfo); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_79t30a_k$(encoder, value instanceof KSearchReserveResponse ? value : THROW_CCE()); + } + } + class KSearchReserveResponse { + constructor(reserveInfo) { + Companion_instance_629; + reserveInfo = reserveInfo === VOID ? null : reserveInfo; + this.reserveInfo = reserveInfo; + } + get_reserveInfo_bwz7bz_k$() { + return this.reserveInfo; + } + component1_7eebsc_k$() { + return this.reserveInfo; + } + copy_176mje_k$(reserveInfo) { + return new KSearchReserveResponse(reserveInfo); + } + copy(reserveInfo, $super) { + reserveInfo = reserveInfo === VOID ? this.reserveInfo : reserveInfo; + return this.copy_176mje_k$(reserveInfo); + } + toString() { + return 'KSearchReserveResponse(reserveInfo=' + this.reserveInfo + ')'; + } + hashCode() { + return this.reserveInfo == null ? 0 : this.reserveInfo.hashCode(); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSearchReserveResponse)) + return false; + var tmp0_other_with_cast = other instanceof KSearchReserveResponse ? other : THROW_CCE(); + if (!equals(this.reserveInfo, tmp0_other_with_cast.reserveInfo)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KSearchReserveResponse_gb3daz_k$(seen1, reserveInfo, serializationConstructorMarker) { + Companion_instance_629; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_616().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.reserveInfo = null; + else + $this.reserveInfo = reserveInfo; + return $this; + } + } + class Companion_630 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.SearchNPSCard.Option'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_617(); + } + } + class $serializer_617 { + constructor() { + $serializer_instance_617 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KSearchNPSCard.KOption', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('text', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KOption_0.new_com_bapis_bilibili_polymer_app_search_v1_KSearchNPSCard_KOption_iclkxg_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_ytizyc_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.text === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.text); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_ytizyc_k$(encoder, value instanceof KOption_0 ? value : THROW_CCE()); + } + } + class KOption_0 { + constructor(text) { + Companion_instance_630; + text = text === VOID ? '' : text; + this.text = text; + } + get_text_wouvsm_k$() { + return this.text; + } + component1_7eebsc_k$() { + return this.text; + } + copy_a35qlh_k$(text) { + return new KOption_0(text); + } + copy(text, $super) { + text = text === VOID ? this.text : text; + return this.copy_a35qlh_k$(text); + } + toString() { + return 'KOption(text=' + this.text + ')'; + } + hashCode() { + return getStringHashCode(this.text); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KOption_0)) + return false; + var tmp0_other_with_cast = other instanceof KOption_0 ? other : THROW_CCE(); + if (!(this.text === tmp0_other_with_cast.text)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KSearchNPSCard_KOption_iclkxg_k$(seen1, text, serializationConstructorMarker) { + Companion_instance_630; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_617().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.text = ''; + else + $this.text = text; + return $this; + } + } + class Companion_631 { + constructor() { + Companion_instance_631 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, new ArrayListSerializer($serializer_getInstance_617()), null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.polymer.app.search.v1.SearchNPSCard'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_618(); + } + } + class $serializer_618 { + constructor() { + $serializer_instance_618 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KSearchNPSCard', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('options', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('cardLayout', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_631().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), tmp0_cached[1], get_nullable($serializer_getInstance_633())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp8_cached = Companion_getInstance_631().$childSerializers_1; + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp8_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_633(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp8_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_633(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSearchNPSCard.new_com_bapis_bilibili_polymer_app_search_v1_KSearchNPSCard_u9ktva_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_dt2dfu_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_631().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !equals(value.options, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 1, tmp2_cached[1], value.options); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.cardLayout == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_633(), value.cardLayout); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_dt2dfu_k$(encoder, value instanceof KSearchNPSCard ? value : THROW_CCE()); + } + } + class KSearchNPSCard { + constructor(title, options, cardLayout) { + Companion_getInstance_631(); + title = title === VOID ? '' : title; + options = options === VOID ? emptyList() : options; + cardLayout = cardLayout === VOID ? null : cardLayout; + this.title = title; + this.options = options; + this.cardLayout = cardLayout; + } + get_title_iz32un_k$() { + return this.title; + } + get_options_jecmyz_k$() { + return this.options; + } + get_cardLayout_d0npjx_k$() { + return this.cardLayout; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.options; + } + component3_7eebsa_k$() { + return this.cardLayout; + } + copy_yicdhd_k$(title, options, cardLayout) { + return new KSearchNPSCard(title, options, cardLayout); + } + copy(title, options, cardLayout, $super) { + title = title === VOID ? this.title : title; + options = options === VOID ? this.options : options; + cardLayout = cardLayout === VOID ? this.cardLayout : cardLayout; + return this.copy_yicdhd_k$(title, options, cardLayout); + } + toString() { + return 'KSearchNPSCard(title=' + this.title + ', options=' + this.options + ', cardLayout=' + this.cardLayout + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + hashCode(this.options) | 0; + result = imul(result, 31) + (this.cardLayout == null ? 0 : this.cardLayout.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSearchNPSCard)) + return false; + var tmp0_other_with_cast = other instanceof KSearchNPSCard ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!equals(this.options, tmp0_other_with_cast.options)) + return false; + if (!equals(this.cardLayout, tmp0_other_with_cast.cardLayout)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KSearchNPSCard_u9ktva_k$(seen1, title, options, cardLayout, serializationConstructorMarker) { + Companion_getInstance_631(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_618().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.options = emptyList(); + else + $this.options = options; + if (0 === (seen1 & 4)) + $this.cardLayout = null; + else + $this.cardLayout = cardLayout; + return $this; + } + } + class Companion_632 { + constructor() { + Companion_instance_632 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, null, null, null, null, null, null, null, null, new ArrayListSerializer($serializer_getInstance_490()), null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.polymer.app.search.v1.FoldingTimeLine'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_619(); + } + } + class $serializer_619 { + constructor() { + $serializer_instance_619 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KFoldingTimeLine', this, 13); + tmp0_serialDesc.addElement_5pzumi_k$('icon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('leftTitle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('rightTitle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('color', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('segment', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('startSecond', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('endSecond', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('initPosition', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('hangStyleSinal', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('hasImgUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('items', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('iconNight', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(13)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_632().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), tmp0_cached[11], StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = 0; + var tmp8_local4 = 0; + var tmp9_local5 = new Long(0, 0); + var tmp10_local6 = new Long(0, 0); + var tmp11_local7 = 0; + var tmp12_local8 = 0; + var tmp13_local9 = 0; + var tmp14_local10 = 0; + var tmp15_local11 = null; + var tmp16_local12 = null; + var tmp17_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp18_cached = Companion_getInstance_632().$childSerializers_1; + if (tmp17_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp17_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp17_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp17_input.decodeLongElement_994anb_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp17_input.decodeLongElement_994anb_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp17_input.decodeIntElement_941u6a_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp17_input.decodeIntElement_941u6a_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp17_input.decodeIntElement_941u6a_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp17_input.decodeIntElement_941u6a_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp17_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 11, tmp18_cached[11], tmp15_local11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + tmp16_local12 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + } else + while (tmp1_flag) { + tmp2_index = tmp17_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp17_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp17_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp17_input.decodeLongElement_994anb_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp17_input.decodeLongElement_994anb_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp17_input.decodeIntElement_941u6a_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp17_input.decodeIntElement_941u6a_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp17_input.decodeIntElement_941u6a_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp17_input.decodeIntElement_941u6a_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp17_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 11, tmp18_cached[11], tmp15_local11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + case 12: + tmp16_local12 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp17_input.endStructure_1xqz0n_k$(tmp0_desc); + return KFoldingTimeLine.new_com_bapis_bilibili_polymer_app_search_v1_KFoldingTimeLine_wqzf3d_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, null); + } + serialize_e7jk0j_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_632().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.icon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.icon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.leftTitle === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.leftTitle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.rightTitle === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.rightTitle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.color === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 3, value.color); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.segment === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 4, value.segment); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !value.startSecond.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 5, value.startSecond); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !value.endSecond.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 6, value.endSecond); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.initPosition === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 7, value.initPosition); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.type === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 8, value.type); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.hangStyleSinal === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 9, value.hangStyleSinal); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.hasImgUrl === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 10, value.hasImgUrl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !equals(value.items, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 11, tmp2_cached[11], value.items); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !(value.iconNight === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 12, value.iconNight); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_e7jk0j_k$(encoder, value instanceof KFoldingTimeLine ? value : THROW_CCE()); + } + } + class KFoldingTimeLine { + constructor(icon, leftTitle, rightTitle, color, segment, startSecond, endSecond, initPosition, type, hangStyleSinal, hasImgUrl, items, iconNight) { + Companion_getInstance_632(); + icon = icon === VOID ? '' : icon; + leftTitle = leftTitle === VOID ? '' : leftTitle; + rightTitle = rightTitle === VOID ? '' : rightTitle; + color = color === VOID ? 0 : color; + segment = segment === VOID ? 0 : segment; + startSecond = startSecond === VOID ? new Long(0, 0) : startSecond; + endSecond = endSecond === VOID ? new Long(0, 0) : endSecond; + initPosition = initPosition === VOID ? 0 : initPosition; + type = type === VOID ? 0 : type; + hangStyleSinal = hangStyleSinal === VOID ? 0 : hangStyleSinal; + hasImgUrl = hasImgUrl === VOID ? 0 : hasImgUrl; + items = items === VOID ? emptyList() : items; + iconNight = iconNight === VOID ? '' : iconNight; + this.icon = icon; + this.leftTitle = leftTitle; + this.rightTitle = rightTitle; + this.color = color; + this.segment = segment; + this.startSecond = startSecond; + this.endSecond = endSecond; + this.initPosition = initPosition; + this.type = type; + this.hangStyleSinal = hangStyleSinal; + this.hasImgUrl = hasImgUrl; + this.items = items; + this.iconNight = iconNight; + } + get_icon_wont8i_k$() { + return this.icon; + } + get_leftTitle_xvpbtk_k$() { + return this.leftTitle; + } + get_rightTitle_rqgf1h_k$() { + return this.rightTitle; + } + get_color_ipu8u2_k$() { + return this.color; + } + get_segment_xwnoei_k$() { + return this.segment; + } + get_startSecond_h7da7n_k$() { + return this.startSecond; + } + get_endSecond_yw3afa_k$() { + return this.endSecond; + } + get_initPosition_gmorj2_k$() { + return this.initPosition; + } + get_type_wovaf7_k$() { + return this.type; + } + get_hangStyleSinal_lvansd_k$() { + return this.hangStyleSinal; + } + get_hasImgUrl_u2cw3_k$() { + return this.hasImgUrl; + } + get_items_it823b_k$() { + return this.items; + } + get_iconNight_equj62_k$() { + return this.iconNight; + } + component1_7eebsc_k$() { + return this.icon; + } + component2_7eebsb_k$() { + return this.leftTitle; + } + component3_7eebsa_k$() { + return this.rightTitle; + } + component4_7eebs9_k$() { + return this.color; + } + component5_7eebs8_k$() { + return this.segment; + } + component6_7eebs7_k$() { + return this.startSecond; + } + component7_7eebs6_k$() { + return this.endSecond; + } + component8_7eebs5_k$() { + return this.initPosition; + } + component9_7eebs4_k$() { + return this.type; + } + component10_gazzfo_k$() { + return this.hangStyleSinal; + } + component11_gazzfn_k$() { + return this.hasImgUrl; + } + component12_gazzfm_k$() { + return this.items; + } + component13_gazzfl_k$() { + return this.iconNight; + } + copy_ffpmqg_k$(icon, leftTitle, rightTitle, color, segment, startSecond, endSecond, initPosition, type, hangStyleSinal, hasImgUrl, items, iconNight) { + return new KFoldingTimeLine(icon, leftTitle, rightTitle, color, segment, startSecond, endSecond, initPosition, type, hangStyleSinal, hasImgUrl, items, iconNight); + } + copy(icon, leftTitle, rightTitle, color, segment, startSecond, endSecond, initPosition, type, hangStyleSinal, hasImgUrl, items, iconNight, $super) { + icon = icon === VOID ? this.icon : icon; + leftTitle = leftTitle === VOID ? this.leftTitle : leftTitle; + rightTitle = rightTitle === VOID ? this.rightTitle : rightTitle; + color = color === VOID ? this.color : color; + segment = segment === VOID ? this.segment : segment; + startSecond = startSecond === VOID ? this.startSecond : startSecond; + endSecond = endSecond === VOID ? this.endSecond : endSecond; + initPosition = initPosition === VOID ? this.initPosition : initPosition; + type = type === VOID ? this.type : type; + hangStyleSinal = hangStyleSinal === VOID ? this.hangStyleSinal : hangStyleSinal; + hasImgUrl = hasImgUrl === VOID ? this.hasImgUrl : hasImgUrl; + items = items === VOID ? this.items : items; + iconNight = iconNight === VOID ? this.iconNight : iconNight; + return this.copy_ffpmqg_k$(icon, leftTitle, rightTitle, color, segment, startSecond, endSecond, initPosition, type, hangStyleSinal, hasImgUrl, items, iconNight); + } + toString() { + return 'KFoldingTimeLine(icon=' + this.icon + ', leftTitle=' + this.leftTitle + ', rightTitle=' + this.rightTitle + ', color=' + this.color + ', segment=' + this.segment + ', startSecond=' + this.startSecond.toString() + ', endSecond=' + this.endSecond.toString() + ', initPosition=' + this.initPosition + ', type=' + this.type + ', hangStyleSinal=' + this.hangStyleSinal + ', hasImgUrl=' + this.hasImgUrl + ', items=' + this.items + ', iconNight=' + this.iconNight + ')'; + } + hashCode() { + var result = getStringHashCode(this.icon); + result = imul(result, 31) + getStringHashCode(this.leftTitle) | 0; + result = imul(result, 31) + getStringHashCode(this.rightTitle) | 0; + result = imul(result, 31) + this.color | 0; + result = imul(result, 31) + this.segment | 0; + result = imul(result, 31) + this.startSecond.hashCode() | 0; + result = imul(result, 31) + this.endSecond.hashCode() | 0; + result = imul(result, 31) + this.initPosition | 0; + result = imul(result, 31) + this.type | 0; + result = imul(result, 31) + this.hangStyleSinal | 0; + result = imul(result, 31) + this.hasImgUrl | 0; + result = imul(result, 31) + hashCode(this.items) | 0; + result = imul(result, 31) + getStringHashCode(this.iconNight) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KFoldingTimeLine)) + return false; + var tmp0_other_with_cast = other instanceof KFoldingTimeLine ? other : THROW_CCE(); + if (!(this.icon === tmp0_other_with_cast.icon)) + return false; + if (!(this.leftTitle === tmp0_other_with_cast.leftTitle)) + return false; + if (!(this.rightTitle === tmp0_other_with_cast.rightTitle)) + return false; + if (!(this.color === tmp0_other_with_cast.color)) + return false; + if (!(this.segment === tmp0_other_with_cast.segment)) + return false; + if (!this.startSecond.equals(tmp0_other_with_cast.startSecond)) + return false; + if (!this.endSecond.equals(tmp0_other_with_cast.endSecond)) + return false; + if (!(this.initPosition === tmp0_other_with_cast.initPosition)) + return false; + if (!(this.type === tmp0_other_with_cast.type)) + return false; + if (!(this.hangStyleSinal === tmp0_other_with_cast.hangStyleSinal)) + return false; + if (!(this.hasImgUrl === tmp0_other_with_cast.hasImgUrl)) + return false; + if (!equals(this.items, tmp0_other_with_cast.items)) + return false; + if (!(this.iconNight === tmp0_other_with_cast.iconNight)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KFoldingTimeLine_wqzf3d_k$(seen1, icon, leftTitle, rightTitle, color, segment, startSecond, endSecond, initPosition, type, hangStyleSinal, hasImgUrl, items, iconNight, serializationConstructorMarker) { + Companion_getInstance_632(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_619().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.icon = ''; + else + $this.icon = icon; + if (0 === (seen1 & 2)) + $this.leftTitle = ''; + else + $this.leftTitle = leftTitle; + if (0 === (seen1 & 4)) + $this.rightTitle = ''; + else + $this.rightTitle = rightTitle; + if (0 === (seen1 & 8)) + $this.color = 0; + else + $this.color = color; + if (0 === (seen1 & 16)) + $this.segment = 0; + else + $this.segment = segment; + if (0 === (seen1 & 32)) + $this.startSecond = new Long(0, 0); + else + $this.startSecond = startSecond; + if (0 === (seen1 & 64)) + $this.endSecond = new Long(0, 0); + else + $this.endSecond = endSecond; + if (0 === (seen1 & 128)) + $this.initPosition = 0; + else + $this.initPosition = initPosition; + if (0 === (seen1 & 256)) + $this.type = 0; + else + $this.type = type; + if (0 === (seen1 & 512)) + $this.hangStyleSinal = 0; + else + $this.hangStyleSinal = hangStyleSinal; + if (0 === (seen1 & 1024)) + $this.hasImgUrl = 0; + else + $this.hasImgUrl = hasImgUrl; + if (0 === (seen1 & 2048)) + $this.items = emptyList(); + else + $this.items = items; + if (0 === (seen1 & 4096)) + $this.iconNight = ''; + else + $this.iconNight = iconNight; + return $this; + } + } + class Companion_633 { + constructor() { + Companion_instance_633 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, new ArrayListSerializer(StringSerializer_getInstance()), new ArrayListSerializer(StringSerializer_getInstance()), null, null, null, null, null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.polymer.app.search.v1.SearchChatGPTCard'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_620(); + } + } + class $serializer_620 { + constructor() { + $serializer_instance_620 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KSearchChatGPTCard', this, 9); + tmp0_serialDesc.addElement_5pzumi_k$('sessionId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('loadingIconLight', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('loadingIconNight', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('backgroundLight', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('backgroundNight', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('betaText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('disclaimer', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('autoExpand', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_633().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), tmp0_cached[1], tmp0_cached[2], StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_622()), StringSerializer_getInstance(), BooleanSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_local8 = false; + var tmp13_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp14_cached = Companion_getInstance_633().$childSerializers_1; + if (tmp13_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp13_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp14_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp13_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp14_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_622(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp13_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + } else + while (tmp1_flag) { + tmp2_index = tmp13_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp13_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp14_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp13_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp14_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_622(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp13_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp13_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSearchChatGPTCard.new_com_bapis_bilibili_polymer_app_search_v1_KSearchChatGPTCard_tt7l0e_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, null); + } + serialize_if0d10_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_633().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.sessionId === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.sessionId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !equals(value.loadingIconLight, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 1, tmp2_cached[1], value.loadingIconLight); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !equals(value.loadingIconNight, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 2, tmp2_cached[2], value.loadingIconNight); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.backgroundLight === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.backgroundLight); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.backgroundNight === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.backgroundNight); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.betaText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.betaText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.disclaimer == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 6, $serializer_getInstance_622(), value.disclaimer); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.autoExpand === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 8, value.autoExpand); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_if0d10_k$(encoder, value instanceof KSearchChatGPTCard ? value : THROW_CCE()); + } + } + class KSearchChatGPTCard { + constructor(sessionId, loadingIconLight, loadingIconNight, backgroundLight, backgroundNight, betaText, disclaimer, title, autoExpand) { + Companion_getInstance_633(); + sessionId = sessionId === VOID ? '' : sessionId; + loadingIconLight = loadingIconLight === VOID ? emptyList() : loadingIconLight; + loadingIconNight = loadingIconNight === VOID ? emptyList() : loadingIconNight; + backgroundLight = backgroundLight === VOID ? '' : backgroundLight; + backgroundNight = backgroundNight === VOID ? '' : backgroundNight; + betaText = betaText === VOID ? '' : betaText; + disclaimer = disclaimer === VOID ? null : disclaimer; + title = title === VOID ? '' : title; + autoExpand = autoExpand === VOID ? false : autoExpand; + this.sessionId = sessionId; + this.loadingIconLight = loadingIconLight; + this.loadingIconNight = loadingIconNight; + this.backgroundLight = backgroundLight; + this.backgroundNight = backgroundNight; + this.betaText = betaText; + this.disclaimer = disclaimer; + this.title = title; + this.autoExpand = autoExpand; + } + get_sessionId_ike088_k$() { + return this.sessionId; + } + get_loadingIconLight_fxtqeu_k$() { + return this.loadingIconLight; + } + get_loadingIconNight_fwq584_k$() { + return this.loadingIconNight; + } + get_backgroundLight_9vh8wx_k$() { + return this.backgroundLight; + } + get_backgroundNight_9udnq7_k$() { + return this.backgroundNight; + } + get_betaText_15fym2_k$() { + return this.betaText; + } + get_disclaimer_d0tuxo_k$() { + return this.disclaimer; + } + get_title_iz32un_k$() { + return this.title; + } + get_autoExpand_x2jzv2_k$() { + return this.autoExpand; + } + component1_7eebsc_k$() { + return this.sessionId; + } + component2_7eebsb_k$() { + return this.loadingIconLight; + } + component3_7eebsa_k$() { + return this.loadingIconNight; + } + component4_7eebs9_k$() { + return this.backgroundLight; + } + component5_7eebs8_k$() { + return this.backgroundNight; + } + component6_7eebs7_k$() { + return this.betaText; + } + component7_7eebs6_k$() { + return this.disclaimer; + } + component8_7eebs5_k$() { + return this.title; + } + component9_7eebs4_k$() { + return this.autoExpand; + } + copy_f0kiey_k$(sessionId, loadingIconLight, loadingIconNight, backgroundLight, backgroundNight, betaText, disclaimer, title, autoExpand) { + return new KSearchChatGPTCard(sessionId, loadingIconLight, loadingIconNight, backgroundLight, backgroundNight, betaText, disclaimer, title, autoExpand); + } + copy(sessionId, loadingIconLight, loadingIconNight, backgroundLight, backgroundNight, betaText, disclaimer, title, autoExpand, $super) { + sessionId = sessionId === VOID ? this.sessionId : sessionId; + loadingIconLight = loadingIconLight === VOID ? this.loadingIconLight : loadingIconLight; + loadingIconNight = loadingIconNight === VOID ? this.loadingIconNight : loadingIconNight; + backgroundLight = backgroundLight === VOID ? this.backgroundLight : backgroundLight; + backgroundNight = backgroundNight === VOID ? this.backgroundNight : backgroundNight; + betaText = betaText === VOID ? this.betaText : betaText; + disclaimer = disclaimer === VOID ? this.disclaimer : disclaimer; + title = title === VOID ? this.title : title; + autoExpand = autoExpand === VOID ? this.autoExpand : autoExpand; + return this.copy_f0kiey_k$(sessionId, loadingIconLight, loadingIconNight, backgroundLight, backgroundNight, betaText, disclaimer, title, autoExpand); + } + toString() { + return 'KSearchChatGPTCard(sessionId=' + this.sessionId + ', loadingIconLight=' + this.loadingIconLight + ', loadingIconNight=' + this.loadingIconNight + ', backgroundLight=' + this.backgroundLight + ', backgroundNight=' + this.backgroundNight + ', betaText=' + this.betaText + ', disclaimer=' + this.disclaimer + ', title=' + this.title + ', autoExpand=' + this.autoExpand + ')'; + } + hashCode() { + var result = getStringHashCode(this.sessionId); + result = imul(result, 31) + hashCode(this.loadingIconLight) | 0; + result = imul(result, 31) + hashCode(this.loadingIconNight) | 0; + result = imul(result, 31) + getStringHashCode(this.backgroundLight) | 0; + result = imul(result, 31) + getStringHashCode(this.backgroundNight) | 0; + result = imul(result, 31) + getStringHashCode(this.betaText) | 0; + result = imul(result, 31) + (this.disclaimer == null ? 0 : this.disclaimer.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.title) | 0; + result = imul(result, 31) + getBooleanHashCode(this.autoExpand) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSearchChatGPTCard)) + return false; + var tmp0_other_with_cast = other instanceof KSearchChatGPTCard ? other : THROW_CCE(); + if (!(this.sessionId === tmp0_other_with_cast.sessionId)) + return false; + if (!equals(this.loadingIconLight, tmp0_other_with_cast.loadingIconLight)) + return false; + if (!equals(this.loadingIconNight, tmp0_other_with_cast.loadingIconNight)) + return false; + if (!(this.backgroundLight === tmp0_other_with_cast.backgroundLight)) + return false; + if (!(this.backgroundNight === tmp0_other_with_cast.backgroundNight)) + return false; + if (!(this.betaText === tmp0_other_with_cast.betaText)) + return false; + if (!equals(this.disclaimer, tmp0_other_with_cast.disclaimer)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.autoExpand === tmp0_other_with_cast.autoExpand)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KSearchChatGPTCard_tt7l0e_k$(seen1, sessionId, loadingIconLight, loadingIconNight, backgroundLight, backgroundNight, betaText, disclaimer, title, autoExpand, serializationConstructorMarker) { + Companion_getInstance_633(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_620().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.sessionId = ''; + else + $this.sessionId = sessionId; + if (0 === (seen1 & 2)) + $this.loadingIconLight = emptyList(); + else + $this.loadingIconLight = loadingIconLight; + if (0 === (seen1 & 4)) + $this.loadingIconNight = emptyList(); + else + $this.loadingIconNight = loadingIconNight; + if (0 === (seen1 & 8)) + $this.backgroundLight = ''; + else + $this.backgroundLight = backgroundLight; + if (0 === (seen1 & 16)) + $this.backgroundNight = ''; + else + $this.backgroundNight = backgroundNight; + if (0 === (seen1 & 32)) + $this.betaText = ''; + else + $this.betaText = betaText; + if (0 === (seen1 & 64)) + $this.disclaimer = null; + else + $this.disclaimer = disclaimer; + if (0 === (seen1 & 128)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 256)) + $this.autoExpand = false; + else + $this.autoExpand = autoExpand; + return $this; + } + } + class Companion_634 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.Disclaimer.Item'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_621(); + } + } + class $serializer_621 { + constructor() { + $serializer_instance_621 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KDisclaimer.KItem', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('icon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('text', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KItem_1.new_com_bapis_bilibili_polymer_app_search_v1_KDisclaimer_KItem_qboqh1_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_q8e02c_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.icon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.icon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.text === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.text); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_q8e02c_k$(encoder, value instanceof KItem_1 ? value : THROW_CCE()); + } + } + class KItem_1 { + constructor(icon, text) { + Companion_instance_634; + icon = icon === VOID ? '' : icon; + text = text === VOID ? '' : text; + this.icon = icon; + this.text = text; + } + get_icon_wont8i_k$() { + return this.icon; + } + get_text_wouvsm_k$() { + return this.text; + } + component1_7eebsc_k$() { + return this.icon; + } + component2_7eebsb_k$() { + return this.text; + } + copy_plwnsl_k$(icon, text) { + return new KItem_1(icon, text); + } + copy(icon, text, $super) { + icon = icon === VOID ? this.icon : icon; + text = text === VOID ? this.text : text; + return this.copy_plwnsl_k$(icon, text); + } + toString() { + return 'KItem(icon=' + this.icon + ', text=' + this.text + ')'; + } + hashCode() { + var result = getStringHashCode(this.icon); + result = imul(result, 31) + getStringHashCode(this.text) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KItem_1)) + return false; + var tmp0_other_with_cast = other instanceof KItem_1 ? other : THROW_CCE(); + if (!(this.icon === tmp0_other_with_cast.icon)) + return false; + if (!(this.text === tmp0_other_with_cast.text)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KDisclaimer_KItem_qboqh1_k$(seen1, icon, text, serializationConstructorMarker) { + Companion_instance_634; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_621().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.icon = ''; + else + $this.icon = icon; + if (0 === (seen1 & 2)) + $this.text = ''; + else + $this.text = text; + return $this; + } + } + class Companion_635 { + constructor() { + Companion_instance_635 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, new ArrayListSerializer($serializer_getInstance_621())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.polymer.app.search.v1.Disclaimer'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_622(); + } + } + class $serializer_622 { + constructor() { + $serializer_instance_622 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KDisclaimer', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('list', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_635().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), tmp0_cached[1]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp7_cached = Companion_getInstance_635().$childSerializers_1; + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KDisclaimer.new_com_bapis_bilibili_polymer_app_search_v1_KDisclaimer_tfvzxr_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_xhiykk_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_635().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !equals(value.list, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 1, tmp2_cached[1], value.list); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_xhiykk_k$(encoder, value instanceof KDisclaimer ? value : THROW_CCE()); + } + } + class KDisclaimer { + constructor(title, list) { + Companion_getInstance_635(); + title = title === VOID ? '' : title; + list = list === VOID ? emptyList() : list; + this.title = title; + this.list = list; + } + get_title_iz32un_k$() { + return this.title; + } + get_list_wopuqv_k$() { + return this.list; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.list; + } + copy_e1k2ey_k$(title, list) { + return new KDisclaimer(title, list); + } + copy(title, list, $super) { + title = title === VOID ? this.title : title; + list = list === VOID ? this.list : list; + return this.copy_e1k2ey_k$(title, list); + } + toString() { + return 'KDisclaimer(title=' + this.title + ', list=' + this.list + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + hashCode(this.list) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KDisclaimer)) + return false; + var tmp0_other_with_cast = other instanceof KDisclaimer ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!equals(this.list, tmp0_other_with_cast.list)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KDisclaimer_tfvzxr_k$(seen1, title, list, serializationConstructorMarker) { + Companion_getInstance_635(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_622().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.list = emptyList(); + else + $this.list = list; + return $this; + } + } + class Companion_636 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.SearchHotRecommend'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_623(); + } + } + class $serializer_623 { + constructor() { + $serializer_instance_623 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KSearchHotRecommend', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSearchHotRecommend.new_com_bapis_bilibili_polymer_app_search_v1_KSearchHotRecommend_8wyc8y_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_7hcie8_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.cover); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_7hcie8_k$(encoder, value instanceof KSearchHotRecommend ? value : THROW_CCE()); + } + } + class KSearchHotRecommend { + constructor(title, cover) { + Companion_instance_636; + title = title === VOID ? '' : title; + cover = cover === VOID ? '' : cover; + this.title = title; + this.cover = cover; + } + get_title_iz32un_k$() { + return this.title; + } + get_cover_ipug0e_k$() { + return this.cover; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.cover; + } + copy_plwnsl_k$(title, cover) { + return new KSearchHotRecommend(title, cover); + } + copy(title, cover, $super) { + title = title === VOID ? this.title : title; + cover = cover === VOID ? this.cover : cover; + return this.copy_plwnsl_k$(title, cover); + } + toString() { + return 'KSearchHotRecommend(title=' + this.title + ', cover=' + this.cover + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.cover) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSearchHotRecommend)) + return false; + var tmp0_other_with_cast = other instanceof KSearchHotRecommend ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KSearchHotRecommend_8wyc8y_k$(seen1, title, cover, serializationConstructorMarker) { + Companion_instance_636; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_623().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.cover = ''; + else + $this.cover = cover; + return $this; + } + } + class Companion_637 { + constructor() { + Companion_instance_637 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, new ArrayListSerializer($serializer_getInstance_625())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.polymer.app.search.v1.GloryInfo'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_624(); + } + } + class $serializer_624 { + constructor() { + $serializer_instance_624 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KGloryInfo', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('total', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('items', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_637().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), IntSerializer_getInstance(), tmp0_cached[2]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = 0; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp8_cached = Companion_getInstance_637().$childSerializers_1; + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp8_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp8_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KGloryInfo.new_com_bapis_bilibili_polymer_app_search_v1_KGloryInfo_cedo4i_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_i6e7qo_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_637().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.total === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.total); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !equals(value.items, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 2, tmp2_cached[2], value.items); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_i6e7qo_k$(encoder, value instanceof KGloryInfo ? value : THROW_CCE()); + } + } + class KGloryInfo { + constructor(title, total, items) { + Companion_getInstance_637(); + title = title === VOID ? '' : title; + total = total === VOID ? 0 : total; + items = items === VOID ? emptyList() : items; + this.title = title; + this.total = total; + this.items = items; + } + get_title_iz32un_k$() { + return this.title; + } + get_total_iz6wij_k$() { + return this.total; + } + get_items_it823b_k$() { + return this.items; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.total; + } + component3_7eebsa_k$() { + return this.items; + } + copy_1wjhlf_k$(title, total, items) { + return new KGloryInfo(title, total, items); + } + copy(title, total, items, $super) { + title = title === VOID ? this.title : title; + total = total === VOID ? this.total : total; + items = items === VOID ? this.items : items; + return this.copy_1wjhlf_k$(title, total, items); + } + toString() { + return 'KGloryInfo(title=' + this.title + ', total=' + this.total + ', items=' + this.items + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + this.total | 0; + result = imul(result, 31) + hashCode(this.items) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KGloryInfo)) + return false; + var tmp0_other_with_cast = other instanceof KGloryInfo ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.total === tmp0_other_with_cast.total)) + return false; + if (!equals(this.items, tmp0_other_with_cast.items)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KGloryInfo_cedo4i_k$(seen1, title, total, items, serializationConstructorMarker) { + Companion_getInstance_637(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_624().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.total = 0; + else + $this.total = total; + if (0 === (seen1 & 4)) + $this.items = emptyList(); + else + $this.items = items; + return $this; + } + } + class Companion_638 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.GloryItem'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_625(); + } + } + class $serializer_625 { + constructor() { + $serializer_instance_625 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KGloryItem', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KGloryItem.new_com_bapis_bilibili_polymer_app_search_v1_KGloryItem_6fp4xp_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_k3ar05_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.cover); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_k3ar05_k$(encoder, value instanceof KGloryItem ? value : THROW_CCE()); + } + } + class KGloryItem { + constructor(title, cover) { + Companion_instance_638; + title = title === VOID ? '' : title; + cover = cover === VOID ? '' : cover; + this.title = title; + this.cover = cover; + } + get_title_iz32un_k$() { + return this.title; + } + get_cover_ipug0e_k$() { + return this.cover; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.cover; + } + copy_plwnsl_k$(title, cover) { + return new KGloryItem(title, cover); + } + copy(title, cover, $super) { + title = title === VOID ? this.title : title; + cover = cover === VOID ? this.cover : cover; + return this.copy_plwnsl_k$(title, cover); + } + toString() { + return 'KGloryItem(title=' + this.title + ', cover=' + this.cover + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.cover) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KGloryItem)) + return false; + var tmp0_other_with_cast = other instanceof KGloryItem ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KGloryItem_6fp4xp_k$(seen1, title, cover, serializationConstructorMarker) { + Companion_instance_638; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_625().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.cover = ''; + else + $this.cover = cover; + return $this; + } + } + class Companion_639 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.SearchLiveMaster'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_626(); + } + } + class $serializer_626 { + constructor() { + $serializer_instance_626 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KSearchLiveMaster', this, 23); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('name', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('uri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('watchedShow', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('ucover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('attentions', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('verifyType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('faceNftNew', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('nftDamrk', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('verifyDesc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('level', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + tmp0_serialDesc.addElement_5pzumi_k$('levelColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(13)); + tmp0_serialDesc.addElement_5pzumi_k$('isAtten', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(14)); + tmp0_serialDesc.addElement_5pzumi_k$('gloryInfo', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(15)); + tmp0_serialDesc.addElement_5pzumi_k$('roomid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(16)); + tmp0_serialDesc.addElement_5pzumi_k$('mid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(17)); + tmp0_serialDesc.addElement_5pzumi_k$('online', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(18)); + tmp0_serialDesc.addElement_5pzumi_k$('liveStatus', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(19)); + tmp0_serialDesc.addElement_5pzumi_k$('cateParentName', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(20)); + tmp0_serialDesc.addElement_5pzumi_k$('cateName', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(21)); + tmp0_serialDesc.addElement_5pzumi_k$('liveLink', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(22)); + tmp0_serialDesc.addElement_5pzumi_k$('avatarInfo', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(23)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_598()), StringSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), BooleanSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), get_nullable($serializer_getInstance_624()), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_181())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = new Long(0, 0); + var tmp11_local7 = 0; + var tmp12_local8 = false; + var tmp13_local9 = null; + var tmp14_local10 = null; + var tmp15_local11 = 0; + var tmp16_local12 = 0; + var tmp17_local13 = 0; + var tmp18_local14 = null; + var tmp19_local15 = new Long(0, 0); + var tmp20_local16 = new Long(0, 0); + var tmp21_local17 = 0; + var tmp22_local18 = 0; + var tmp23_local19 = null; + var tmp24_local20 = null; + var tmp25_local21 = null; + var tmp26_local22 = null; + var tmp27_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp27_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp27_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp27_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp27_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp27_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp27_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_598(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp27_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp27_input.decodeLongElement_994anb_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp27_input.decodeIntElement_941u6a_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp27_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp27_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp27_input.decodeStringElement_3oenpg_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp27_input.decodeIntElement_941u6a_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + tmp16_local12 = tmp27_input.decodeIntElement_941u6a_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + tmp17_local13 = tmp27_input.decodeIntElement_941u6a_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + tmp18_local14 = tmp27_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 14, $serializer_getInstance_624(), tmp18_local14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + tmp19_local15 = tmp27_input.decodeLongElement_994anb_k$(tmp0_desc, 15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + tmp20_local16 = tmp27_input.decodeLongElement_994anb_k$(tmp0_desc, 16); + tmp3_bitMask0 = tmp3_bitMask0 | 65536; + tmp21_local17 = tmp27_input.decodeIntElement_941u6a_k$(tmp0_desc, 17); + tmp3_bitMask0 = tmp3_bitMask0 | 131072; + tmp22_local18 = tmp27_input.decodeIntElement_941u6a_k$(tmp0_desc, 18); + tmp3_bitMask0 = tmp3_bitMask0 | 262144; + tmp23_local19 = tmp27_input.decodeStringElement_3oenpg_k$(tmp0_desc, 19); + tmp3_bitMask0 = tmp3_bitMask0 | 524288; + tmp24_local20 = tmp27_input.decodeStringElement_3oenpg_k$(tmp0_desc, 20); + tmp3_bitMask0 = tmp3_bitMask0 | 1048576; + tmp25_local21 = tmp27_input.decodeStringElement_3oenpg_k$(tmp0_desc, 21); + tmp3_bitMask0 = tmp3_bitMask0 | 2097152; + tmp26_local22 = tmp27_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 22, $serializer_getInstance_181(), tmp26_local22); + tmp3_bitMask0 = tmp3_bitMask0 | 4194304; + } else + while (tmp1_flag) { + tmp2_index = tmp27_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp27_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp27_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp27_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp27_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp27_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_598(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp27_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp27_input.decodeLongElement_994anb_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp27_input.decodeIntElement_941u6a_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp27_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp27_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp27_input.decodeStringElement_3oenpg_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp27_input.decodeIntElement_941u6a_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + case 12: + tmp16_local12 = tmp27_input.decodeIntElement_941u6a_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + break; + case 13: + tmp17_local13 = tmp27_input.decodeIntElement_941u6a_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + break; + case 14: + tmp18_local14 = tmp27_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 14, $serializer_getInstance_624(), tmp18_local14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + break; + case 15: + tmp19_local15 = tmp27_input.decodeLongElement_994anb_k$(tmp0_desc, 15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + break; + case 16: + tmp20_local16 = tmp27_input.decodeLongElement_994anb_k$(tmp0_desc, 16); + tmp3_bitMask0 = tmp3_bitMask0 | 65536; + break; + case 17: + tmp21_local17 = tmp27_input.decodeIntElement_941u6a_k$(tmp0_desc, 17); + tmp3_bitMask0 = tmp3_bitMask0 | 131072; + break; + case 18: + tmp22_local18 = tmp27_input.decodeIntElement_941u6a_k$(tmp0_desc, 18); + tmp3_bitMask0 = tmp3_bitMask0 | 262144; + break; + case 19: + tmp23_local19 = tmp27_input.decodeStringElement_3oenpg_k$(tmp0_desc, 19); + tmp3_bitMask0 = tmp3_bitMask0 | 524288; + break; + case 20: + tmp24_local20 = tmp27_input.decodeStringElement_3oenpg_k$(tmp0_desc, 20); + tmp3_bitMask0 = tmp3_bitMask0 | 1048576; + break; + case 21: + tmp25_local21 = tmp27_input.decodeStringElement_3oenpg_k$(tmp0_desc, 21); + tmp3_bitMask0 = tmp3_bitMask0 | 2097152; + break; + case 22: + tmp26_local22 = tmp27_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 22, $serializer_getInstance_181(), tmp26_local22); + tmp3_bitMask0 = tmp3_bitMask0 | 4194304; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp27_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSearchLiveMaster.new_com_bapis_bilibili_polymer_app_search_v1_KSearchLiveMaster_uel4ir_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, tmp18_local14, tmp19_local15, tmp20_local16, tmp21_local17, tmp22_local18, tmp23_local19, tmp24_local20, tmp25_local21, tmp26_local22, null); + } + serialize_y744xr_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.name === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.name); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.cover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.uri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.uri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.watchedShow == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, $serializer_getInstance_598(), value.watchedShow); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.ucover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.ucover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !value.attentions.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 6, value.attentions); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.verifyType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 7, value.verifyType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.faceNftNew === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 8, value.faceNftNew); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.nftDamrk === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 9, value.nftDamrk); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.verifyDesc === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 10, value.verifyDesc); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.level === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 11, value.level); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !(value.levelColor === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 12, value.levelColor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 13) ? true : !(value.isAtten === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 13, value.isAtten); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 14) ? true : !(value.gloryInfo == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 14, $serializer_getInstance_624(), value.gloryInfo); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 15) ? true : !value.roomid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 15, value.roomid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 16) ? true : !value.mid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 16, value.mid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 17) ? true : !(value.online === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 17, value.online); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 18) ? true : !(value.liveStatus === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 18, value.liveStatus); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 19) ? true : !(value.cateParentName === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 19, value.cateParentName); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 20) ? true : !(value.cateName === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 20, value.cateName); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 21) ? true : !(value.liveLink === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 21, value.liveLink); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 22) ? true : !(value.avatarInfo == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 22, $serializer_getInstance_181(), value.avatarInfo); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_y744xr_k$(encoder, value instanceof KSearchLiveMaster ? value : THROW_CCE()); + } + } + class KSearchLiveMaster { + constructor(title, name, cover, uri, watchedShow, ucover, attentions, verifyType, faceNftNew, nftDamrk, verifyDesc, level, levelColor, isAtten, gloryInfo, roomid, mid, online, liveStatus, cateParentName, cateName, liveLink, avatarInfo) { + Companion_instance_639; + title = title === VOID ? '' : title; + name = name === VOID ? '' : name; + cover = cover === VOID ? '' : cover; + uri = uri === VOID ? '' : uri; + watchedShow = watchedShow === VOID ? null : watchedShow; + ucover = ucover === VOID ? '' : ucover; + attentions = attentions === VOID ? new Long(0, 0) : attentions; + verifyType = verifyType === VOID ? 0 : verifyType; + faceNftNew = faceNftNew === VOID ? false : faceNftNew; + nftDamrk = nftDamrk === VOID ? '' : nftDamrk; + verifyDesc = verifyDesc === VOID ? '' : verifyDesc; + level = level === VOID ? 0 : level; + levelColor = levelColor === VOID ? 0 : levelColor; + isAtten = isAtten === VOID ? 0 : isAtten; + gloryInfo = gloryInfo === VOID ? null : gloryInfo; + roomid = roomid === VOID ? new Long(0, 0) : roomid; + mid = mid === VOID ? new Long(0, 0) : mid; + online = online === VOID ? 0 : online; + liveStatus = liveStatus === VOID ? 0 : liveStatus; + cateParentName = cateParentName === VOID ? '' : cateParentName; + cateName = cateName === VOID ? '' : cateName; + liveLink = liveLink === VOID ? '' : liveLink; + avatarInfo = avatarInfo === VOID ? null : avatarInfo; + this.title = title; + this.name = name; + this.cover = cover; + this.uri = uri; + this.watchedShow = watchedShow; + this.ucover = ucover; + this.attentions = attentions; + this.verifyType = verifyType; + this.faceNftNew = faceNftNew; + this.nftDamrk = nftDamrk; + this.verifyDesc = verifyDesc; + this.level = level; + this.levelColor = levelColor; + this.isAtten = isAtten; + this.gloryInfo = gloryInfo; + this.roomid = roomid; + this.mid = mid; + this.online = online; + this.liveStatus = liveStatus; + this.cateParentName = cateParentName; + this.cateName = cateName; + this.liveLink = liveLink; + this.avatarInfo = avatarInfo; + } + get_title_iz32un_k$() { + return this.title; + } + get_name_woqyms_k$() { + return this.name; + } + get_cover_ipug0e_k$() { + return this.cover; + } + get_uri_18iuil_k$() { + return this.uri; + } + get_watchedShow_yq6hsu_k$() { + return this.watchedShow; + } + get_ucover_kcevzf_k$() { + return this.ucover; + } + get_attentions_bgcfxa_k$() { + return this.attentions; + } + get_verifyType_xru6l8_k$() { + return this.verifyType; + } + get_faceNftNew_d87rsm_k$() { + return this.faceNftNew; + } + get_nftDamrk_3t65va_k$() { + return this.nftDamrk; + } + get_verifyDesc_xrjk1f_k$() { + return this.verifyDesc; + } + get_level_ium7h7_k$() { + return this.level; + } + get_levelColor_h6fos8_k$() { + return this.levelColor; + } + get_isAtten_z8s8wn_k$() { + return this.isAtten; + } + get_gloryInfo_muswpi_k$() { + return this.gloryInfo; + } + get_roomid_j3vdbz_k$() { + return this.roomid; + } + get_mid_18j0o1_k$() { + return this.mid; + } + get_online_ho4pr0_k$() { + return this.online; + } + get_liveStatus_5s32ih_k$() { + return this.liveStatus; + } + get_cateParentName_cbj0mr_k$() { + return this.cateParentName; + } + get_cateName_uzbd8d_k$() { + return this.cateName; + } + get_liveLink_8d0z01_k$() { + return this.liveLink; + } + get_avatarInfo_quh7f4_k$() { + return this.avatarInfo; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.name; + } + component3_7eebsa_k$() { + return this.cover; + } + component4_7eebs9_k$() { + return this.uri; + } + component5_7eebs8_k$() { + return this.watchedShow; + } + component6_7eebs7_k$() { + return this.ucover; + } + component7_7eebs6_k$() { + return this.attentions; + } + component8_7eebs5_k$() { + return this.verifyType; + } + component9_7eebs4_k$() { + return this.faceNftNew; + } + component10_gazzfo_k$() { + return this.nftDamrk; + } + component11_gazzfn_k$() { + return this.verifyDesc; + } + component12_gazzfm_k$() { + return this.level; + } + component13_gazzfl_k$() { + return this.levelColor; + } + component14_gazzfk_k$() { + return this.isAtten; + } + component15_gazzfj_k$() { + return this.gloryInfo; + } + component16_gazzfi_k$() { + return this.roomid; + } + component17_gazzfh_k$() { + return this.mid; + } + component18_gazzfg_k$() { + return this.online; + } + component19_gazzff_k$() { + return this.liveStatus; + } + component20_gazzet_k$() { + return this.cateParentName; + } + component21_gazzes_k$() { + return this.cateName; + } + component22_gazzer_k$() { + return this.liveLink; + } + component23_gazzeq_k$() { + return this.avatarInfo; + } + copy_aoixy3_k$(title, name, cover, uri, watchedShow, ucover, attentions, verifyType, faceNftNew, nftDamrk, verifyDesc, level, levelColor, isAtten, gloryInfo, roomid, mid, online, liveStatus, cateParentName, cateName, liveLink, avatarInfo) { + return new KSearchLiveMaster(title, name, cover, uri, watchedShow, ucover, attentions, verifyType, faceNftNew, nftDamrk, verifyDesc, level, levelColor, isAtten, gloryInfo, roomid, mid, online, liveStatus, cateParentName, cateName, liveLink, avatarInfo); + } + copy(title, name, cover, uri, watchedShow, ucover, attentions, verifyType, faceNftNew, nftDamrk, verifyDesc, level, levelColor, isAtten, gloryInfo, roomid, mid, online, liveStatus, cateParentName, cateName, liveLink, avatarInfo, $super) { + title = title === VOID ? this.title : title; + name = name === VOID ? this.name : name; + cover = cover === VOID ? this.cover : cover; + uri = uri === VOID ? this.uri : uri; + watchedShow = watchedShow === VOID ? this.watchedShow : watchedShow; + ucover = ucover === VOID ? this.ucover : ucover; + attentions = attentions === VOID ? this.attentions : attentions; + verifyType = verifyType === VOID ? this.verifyType : verifyType; + faceNftNew = faceNftNew === VOID ? this.faceNftNew : faceNftNew; + nftDamrk = nftDamrk === VOID ? this.nftDamrk : nftDamrk; + verifyDesc = verifyDesc === VOID ? this.verifyDesc : verifyDesc; + level = level === VOID ? this.level : level; + levelColor = levelColor === VOID ? this.levelColor : levelColor; + isAtten = isAtten === VOID ? this.isAtten : isAtten; + gloryInfo = gloryInfo === VOID ? this.gloryInfo : gloryInfo; + roomid = roomid === VOID ? this.roomid : roomid; + mid = mid === VOID ? this.mid : mid; + online = online === VOID ? this.online : online; + liveStatus = liveStatus === VOID ? this.liveStatus : liveStatus; + cateParentName = cateParentName === VOID ? this.cateParentName : cateParentName; + cateName = cateName === VOID ? this.cateName : cateName; + liveLink = liveLink === VOID ? this.liveLink : liveLink; + avatarInfo = avatarInfo === VOID ? this.avatarInfo : avatarInfo; + return this.copy_aoixy3_k$(title, name, cover, uri, watchedShow, ucover, attentions, verifyType, faceNftNew, nftDamrk, verifyDesc, level, levelColor, isAtten, gloryInfo, roomid, mid, online, liveStatus, cateParentName, cateName, liveLink, avatarInfo); + } + toString() { + return 'KSearchLiveMaster(title=' + this.title + ', name=' + this.name + ', cover=' + this.cover + ', uri=' + this.uri + ', watchedShow=' + this.watchedShow + ', ucover=' + this.ucover + ', attentions=' + this.attentions.toString() + ', verifyType=' + this.verifyType + ', faceNftNew=' + this.faceNftNew + ', nftDamrk=' + this.nftDamrk + ', verifyDesc=' + this.verifyDesc + ', level=' + this.level + ', levelColor=' + this.levelColor + ', isAtten=' + this.isAtten + ', gloryInfo=' + this.gloryInfo + ', roomid=' + this.roomid.toString() + ', mid=' + this.mid.toString() + ', online=' + this.online + ', liveStatus=' + this.liveStatus + ', cateParentName=' + this.cateParentName + ', cateName=' + this.cateName + ', liveLink=' + this.liveLink + ', avatarInfo=' + this.avatarInfo + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.name) | 0; + result = imul(result, 31) + getStringHashCode(this.cover) | 0; + result = imul(result, 31) + getStringHashCode(this.uri) | 0; + result = imul(result, 31) + (this.watchedShow == null ? 0 : this.watchedShow.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.ucover) | 0; + result = imul(result, 31) + this.attentions.hashCode() | 0; + result = imul(result, 31) + this.verifyType | 0; + result = imul(result, 31) + getBooleanHashCode(this.faceNftNew) | 0; + result = imul(result, 31) + getStringHashCode(this.nftDamrk) | 0; + result = imul(result, 31) + getStringHashCode(this.verifyDesc) | 0; + result = imul(result, 31) + this.level | 0; + result = imul(result, 31) + this.levelColor | 0; + result = imul(result, 31) + this.isAtten | 0; + result = imul(result, 31) + (this.gloryInfo == null ? 0 : this.gloryInfo.hashCode()) | 0; + result = imul(result, 31) + this.roomid.hashCode() | 0; + result = imul(result, 31) + this.mid.hashCode() | 0; + result = imul(result, 31) + this.online | 0; + result = imul(result, 31) + this.liveStatus | 0; + result = imul(result, 31) + getStringHashCode(this.cateParentName) | 0; + result = imul(result, 31) + getStringHashCode(this.cateName) | 0; + result = imul(result, 31) + getStringHashCode(this.liveLink) | 0; + result = imul(result, 31) + (this.avatarInfo == null ? 0 : this.avatarInfo.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSearchLiveMaster)) + return false; + var tmp0_other_with_cast = other instanceof KSearchLiveMaster ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.name === tmp0_other_with_cast.name)) + return false; + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + if (!(this.uri === tmp0_other_with_cast.uri)) + return false; + if (!equals(this.watchedShow, tmp0_other_with_cast.watchedShow)) + return false; + if (!(this.ucover === tmp0_other_with_cast.ucover)) + return false; + if (!this.attentions.equals(tmp0_other_with_cast.attentions)) + return false; + if (!(this.verifyType === tmp0_other_with_cast.verifyType)) + return false; + if (!(this.faceNftNew === tmp0_other_with_cast.faceNftNew)) + return false; + if (!(this.nftDamrk === tmp0_other_with_cast.nftDamrk)) + return false; + if (!(this.verifyDesc === tmp0_other_with_cast.verifyDesc)) + return false; + if (!(this.level === tmp0_other_with_cast.level)) + return false; + if (!(this.levelColor === tmp0_other_with_cast.levelColor)) + return false; + if (!(this.isAtten === tmp0_other_with_cast.isAtten)) + return false; + if (!equals(this.gloryInfo, tmp0_other_with_cast.gloryInfo)) + return false; + if (!this.roomid.equals(tmp0_other_with_cast.roomid)) + return false; + if (!this.mid.equals(tmp0_other_with_cast.mid)) + return false; + if (!(this.online === tmp0_other_with_cast.online)) + return false; + if (!(this.liveStatus === tmp0_other_with_cast.liveStatus)) + return false; + if (!(this.cateParentName === tmp0_other_with_cast.cateParentName)) + return false; + if (!(this.cateName === tmp0_other_with_cast.cateName)) + return false; + if (!(this.liveLink === tmp0_other_with_cast.liveLink)) + return false; + if (!equals(this.avatarInfo, tmp0_other_with_cast.avatarInfo)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KSearchLiveMaster_uel4ir_k$(seen1, title, name, cover, uri, watchedShow, ucover, attentions, verifyType, faceNftNew, nftDamrk, verifyDesc, level, levelColor, isAtten, gloryInfo, roomid, mid, online, liveStatus, cateParentName, cateName, liveLink, avatarInfo, serializationConstructorMarker) { + Companion_instance_639; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_626().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.name = ''; + else + $this.name = name; + if (0 === (seen1 & 4)) + $this.cover = ''; + else + $this.cover = cover; + if (0 === (seen1 & 8)) + $this.uri = ''; + else + $this.uri = uri; + if (0 === (seen1 & 16)) + $this.watchedShow = null; + else + $this.watchedShow = watchedShow; + if (0 === (seen1 & 32)) + $this.ucover = ''; + else + $this.ucover = ucover; + if (0 === (seen1 & 64)) + $this.attentions = new Long(0, 0); + else + $this.attentions = attentions; + if (0 === (seen1 & 128)) + $this.verifyType = 0; + else + $this.verifyType = verifyType; + if (0 === (seen1 & 256)) + $this.faceNftNew = false; + else + $this.faceNftNew = faceNftNew; + if (0 === (seen1 & 512)) + $this.nftDamrk = ''; + else + $this.nftDamrk = nftDamrk; + if (0 === (seen1 & 1024)) + $this.verifyDesc = ''; + else + $this.verifyDesc = verifyDesc; + if (0 === (seen1 & 2048)) + $this.level = 0; + else + $this.level = level; + if (0 === (seen1 & 4096)) + $this.levelColor = 0; + else + $this.levelColor = levelColor; + if (0 === (seen1 & 8192)) + $this.isAtten = 0; + else + $this.isAtten = isAtten; + if (0 === (seen1 & 16384)) + $this.gloryInfo = null; + else + $this.gloryInfo = gloryInfo; + if (0 === (seen1 & 32768)) + $this.roomid = new Long(0, 0); + else + $this.roomid = roomid; + if (0 === (seen1 & 65536)) + $this.mid = new Long(0, 0); + else + $this.mid = mid; + if (0 === (seen1 & 131072)) + $this.online = 0; + else + $this.online = online; + if (0 === (seen1 & 262144)) + $this.liveStatus = 0; + else + $this.liveStatus = liveStatus; + if (0 === (seen1 & 524288)) + $this.cateParentName = ''; + else + $this.cateParentName = cateParentName; + if (0 === (seen1 & 1048576)) + $this.cateName = ''; + else + $this.cateName = cateName; + if (0 === (seen1 & 2097152)) + $this.liveLink = ''; + else + $this.liveLink = liveLink; + if (0 === (seen1 & 4194304)) + $this.avatarInfo = null; + else + $this.avatarInfo = avatarInfo; + return $this; + } + } + class Companion_640 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.SearchLiveRoomTitle'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_627(); + } + } + class $serializer_627 { + constructor() { + $serializer_instance_627 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KSearchLiveRoomTitle', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('totalCount', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSearchLiveRoomTitle.new_com_bapis_bilibili_polymer_app_search_v1_KSearchLiveRoomTitle_k0mvw4_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_vfdnkq_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.totalCount === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.totalCount); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_vfdnkq_k$(encoder, value instanceof KSearchLiveRoomTitle ? value : THROW_CCE()); + } + } + class KSearchLiveRoomTitle { + constructor(totalCount) { + Companion_instance_640; + totalCount = totalCount === VOID ? 0 : totalCount; + this.totalCount = totalCount; + } + get_totalCount_w9p7ik_k$() { + return this.totalCount; + } + component1_7eebsc_k$() { + return this.totalCount; + } + copy_ns6qmb_k$(totalCount) { + return new KSearchLiveRoomTitle(totalCount); + } + copy(totalCount, $super) { + totalCount = totalCount === VOID ? this.totalCount : totalCount; + return this.copy_ns6qmb_k$(totalCount); + } + toString() { + return 'KSearchLiveRoomTitle(totalCount=' + this.totalCount + ')'; + } + hashCode() { + return this.totalCount; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSearchLiveRoomTitle)) + return false; + var tmp0_other_with_cast = other instanceof KSearchLiveRoomTitle ? other : THROW_CCE(); + if (!(this.totalCount === tmp0_other_with_cast.totalCount)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KSearchLiveRoomTitle_k0mvw4_k$(seen1, totalCount, serializationConstructorMarker) { + Companion_instance_640; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_627().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.totalCount = 0; + else + $this.totalCount = totalCount; + return $this; + } + } + class Companion_641 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.SearchLiveRoom'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_628(); + } + } + class $serializer_628 { + constructor() { + $serializer_instance_628 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KSearchLiveRoom', this, 14); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('name', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('uri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('param', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('watchedShow', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('roomid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('shortId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('goto', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('areaV2Name', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('online', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('mid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + tmp0_serialDesc.addElement_5pzumi_k$('liveStatus', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(13)); + tmp0_serialDesc.addElement_5pzumi_k$('liveLink', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(14)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_598()), LongSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = new Long(0, 0); + var tmp11_local7 = new Long(0, 0); + var tmp12_local8 = null; + var tmp13_local9 = null; + var tmp14_local10 = 0; + var tmp15_local11 = new Long(0, 0); + var tmp16_local12 = 0; + var tmp17_local13 = null; + var tmp18_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp18_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_598(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp18_input.decodeIntElement_941u6a_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + tmp16_local12 = tmp18_input.decodeIntElement_941u6a_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + tmp17_local13 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + } else + while (tmp1_flag) { + tmp2_index = tmp18_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_598(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp18_input.decodeIntElement_941u6a_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + case 12: + tmp16_local12 = tmp18_input.decodeIntElement_941u6a_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + break; + case 13: + tmp17_local13 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp18_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSearchLiveRoom.new_com_bapis_bilibili_polymer_app_search_v1_KSearchLiveRoom_swu1z4_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, null); + } + serialize_58dpnc_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.name === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.name); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.cover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.uri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.uri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.param === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.param); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.watchedShow == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 5, $serializer_getInstance_598(), value.watchedShow); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !value.roomid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 6, value.roomid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !value.shortId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 7, value.shortId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.goto === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 8, value.goto); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.areaV2Name === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 9, value.areaV2Name); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.online === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 10, value.online); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !value.mid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 11, value.mid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !(value.liveStatus === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 12, value.liveStatus); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 13) ? true : !(value.liveLink === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 13, value.liveLink); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_58dpnc_k$(encoder, value instanceof KSearchLiveRoom ? value : THROW_CCE()); + } + } + class KSearchLiveRoom { + constructor(title, name, cover, uri, param, watchedShow, roomid, shortId, goto, areaV2Name, online, mid, liveStatus, liveLink) { + Companion_instance_641; + title = title === VOID ? '' : title; + name = name === VOID ? '' : name; + cover = cover === VOID ? '' : cover; + uri = uri === VOID ? '' : uri; + param = param === VOID ? '' : param; + watchedShow = watchedShow === VOID ? null : watchedShow; + roomid = roomid === VOID ? new Long(0, 0) : roomid; + shortId = shortId === VOID ? new Long(0, 0) : shortId; + goto = goto === VOID ? '' : goto; + areaV2Name = areaV2Name === VOID ? '' : areaV2Name; + online = online === VOID ? 0 : online; + mid = mid === VOID ? new Long(0, 0) : mid; + liveStatus = liveStatus === VOID ? 0 : liveStatus; + liveLink = liveLink === VOID ? '' : liveLink; + this.title = title; + this.name = name; + this.cover = cover; + this.uri = uri; + this.param = param; + this.watchedShow = watchedShow; + this.roomid = roomid; + this.shortId = shortId; + this.goto = goto; + this.areaV2Name = areaV2Name; + this.online = online; + this.mid = mid; + this.liveStatus = liveStatus; + this.liveLink = liveLink; + } + get_title_iz32un_k$() { + return this.title; + } + get_name_woqyms_k$() { + return this.name; + } + get_cover_ipug0e_k$() { + return this.cover; + } + get_uri_18iuil_k$() { + return this.uri; + } + get_param_iwqquc_k$() { + return this.param; + } + get_watchedShow_yq6hsu_k$() { + return this.watchedShow; + } + get_roomid_j3vdbz_k$() { + return this.roomid; + } + get_shortId_zgadhq_k$() { + return this.shortId; + } + get_goto_womsa4_k$() { + return this.goto; + } + get_areaV2Name_60kb4z_k$() { + return this.areaV2Name; + } + get_online_ho4pr0_k$() { + return this.online; + } + get_mid_18j0o1_k$() { + return this.mid; + } + get_liveStatus_5s32ih_k$() { + return this.liveStatus; + } + get_liveLink_8d0z01_k$() { + return this.liveLink; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.name; + } + component3_7eebsa_k$() { + return this.cover; + } + component4_7eebs9_k$() { + return this.uri; + } + component5_7eebs8_k$() { + return this.param; + } + component6_7eebs7_k$() { + return this.watchedShow; + } + component7_7eebs6_k$() { + return this.roomid; + } + component8_7eebs5_k$() { + return this.shortId; + } + component9_7eebs4_k$() { + return this.goto; + } + component10_gazzfo_k$() { + return this.areaV2Name; + } + component11_gazzfn_k$() { + return this.online; + } + component12_gazzfm_k$() { + return this.mid; + } + component13_gazzfl_k$() { + return this.liveStatus; + } + component14_gazzfk_k$() { + return this.liveLink; + } + copy_4r9qdt_k$(title, name, cover, uri, param, watchedShow, roomid, shortId, goto, areaV2Name, online, mid, liveStatus, liveLink) { + return new KSearchLiveRoom(title, name, cover, uri, param, watchedShow, roomid, shortId, goto, areaV2Name, online, mid, liveStatus, liveLink); + } + copy(title, name, cover, uri, param, watchedShow, roomid, shortId, goto, areaV2Name, online, mid, liveStatus, liveLink, $super) { + title = title === VOID ? this.title : title; + name = name === VOID ? this.name : name; + cover = cover === VOID ? this.cover : cover; + uri = uri === VOID ? this.uri : uri; + param = param === VOID ? this.param : param; + watchedShow = watchedShow === VOID ? this.watchedShow : watchedShow; + roomid = roomid === VOID ? this.roomid : roomid; + shortId = shortId === VOID ? this.shortId : shortId; + goto = goto === VOID ? this.goto : goto; + areaV2Name = areaV2Name === VOID ? this.areaV2Name : areaV2Name; + online = online === VOID ? this.online : online; + mid = mid === VOID ? this.mid : mid; + liveStatus = liveStatus === VOID ? this.liveStatus : liveStatus; + liveLink = liveLink === VOID ? this.liveLink : liveLink; + return this.copy_4r9qdt_k$(title, name, cover, uri, param, watchedShow, roomid, shortId, goto, areaV2Name, online, mid, liveStatus, liveLink); + } + toString() { + return 'KSearchLiveRoom(title=' + this.title + ', name=' + this.name + ', cover=' + this.cover + ', uri=' + this.uri + ', param=' + this.param + ', watchedShow=' + this.watchedShow + ', roomid=' + this.roomid.toString() + ', shortId=' + this.shortId.toString() + ', goto=' + this.goto + ', areaV2Name=' + this.areaV2Name + ', online=' + this.online + ', mid=' + this.mid.toString() + ', liveStatus=' + this.liveStatus + ', liveLink=' + this.liveLink + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.name) | 0; + result = imul(result, 31) + getStringHashCode(this.cover) | 0; + result = imul(result, 31) + getStringHashCode(this.uri) | 0; + result = imul(result, 31) + getStringHashCode(this.param) | 0; + result = imul(result, 31) + (this.watchedShow == null ? 0 : this.watchedShow.hashCode()) | 0; + result = imul(result, 31) + this.roomid.hashCode() | 0; + result = imul(result, 31) + this.shortId.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.goto) | 0; + result = imul(result, 31) + getStringHashCode(this.areaV2Name) | 0; + result = imul(result, 31) + this.online | 0; + result = imul(result, 31) + this.mid.hashCode() | 0; + result = imul(result, 31) + this.liveStatus | 0; + result = imul(result, 31) + getStringHashCode(this.liveLink) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSearchLiveRoom)) + return false; + var tmp0_other_with_cast = other instanceof KSearchLiveRoom ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.name === tmp0_other_with_cast.name)) + return false; + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + if (!(this.uri === tmp0_other_with_cast.uri)) + return false; + if (!(this.param === tmp0_other_with_cast.param)) + return false; + if (!equals(this.watchedShow, tmp0_other_with_cast.watchedShow)) + return false; + if (!this.roomid.equals(tmp0_other_with_cast.roomid)) + return false; + if (!this.shortId.equals(tmp0_other_with_cast.shortId)) + return false; + if (!(this.goto === tmp0_other_with_cast.goto)) + return false; + if (!(this.areaV2Name === tmp0_other_with_cast.areaV2Name)) + return false; + if (!(this.online === tmp0_other_with_cast.online)) + return false; + if (!this.mid.equals(tmp0_other_with_cast.mid)) + return false; + if (!(this.liveStatus === tmp0_other_with_cast.liveStatus)) + return false; + if (!(this.liveLink === tmp0_other_with_cast.liveLink)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KSearchLiveRoom_swu1z4_k$(seen1, title, name, cover, uri, param, watchedShow, roomid, shortId, goto, areaV2Name, online, mid, liveStatus, liveLink, serializationConstructorMarker) { + Companion_instance_641; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_628().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.name = ''; + else + $this.name = name; + if (0 === (seen1 & 4)) + $this.cover = ''; + else + $this.cover = cover; + if (0 === (seen1 & 8)) + $this.uri = ''; + else + $this.uri = uri; + if (0 === (seen1 & 16)) + $this.param = ''; + else + $this.param = param; + if (0 === (seen1 & 32)) + $this.watchedShow = null; + else + $this.watchedShow = watchedShow; + if (0 === (seen1 & 64)) + $this.roomid = new Long(0, 0); + else + $this.roomid = roomid; + if (0 === (seen1 & 128)) + $this.shortId = new Long(0, 0); + else + $this.shortId = shortId; + if (0 === (seen1 & 256)) + $this.goto = ''; + else + $this.goto = goto; + if (0 === (seen1 & 512)) + $this.areaV2Name = ''; + else + $this.areaV2Name = areaV2Name; + if (0 === (seen1 & 1024)) + $this.online = 0; + else + $this.online = online; + if (0 === (seen1 & 2048)) + $this.mid = new Long(0, 0); + else + $this.mid = mid; + if (0 === (seen1 & 4096)) + $this.liveStatus = 0; + else + $this.liveStatus = liveStatus; + if (0 === (seen1 & 8192)) + $this.liveLink = ''; + else + $this.liveLink = liveLink; + return $this; + } + } + class Companion_642 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.LabelStyle'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_629(); + } + } + class $serializer_629 { + constructor() { + $serializer_instance_629 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KLabelStyle', this, 9); + tmp0_serialDesc.addElement_5pzumi_k$('text', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('textColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('textColorNight', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('bgColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('bgColorNight', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('borderColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('borderColorNight', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('icon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('iconNight', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_local8 = null; + var tmp13_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp13_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + } else + while (tmp1_flag) { + tmp2_index = tmp13_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp13_input.endStructure_1xqz0n_k$(tmp0_desc); + return KLabelStyle.new_com_bapis_bilibili_polymer_app_search_v1_KLabelStyle_jf9wrd_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, null); + } + serialize_wm1ume_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.text === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.text); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.textColor === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.textColor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.textColorNight === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.textColorNight); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.bgColor === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.bgColor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.bgColorNight === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.bgColorNight); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.borderColor === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.borderColor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.borderColorNight === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.borderColorNight); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.icon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.icon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.iconNight === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 8, value.iconNight); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_wm1ume_k$(encoder, value instanceof KLabelStyle ? value : THROW_CCE()); + } + } + class KLabelStyle { + constructor(text, textColor, textColorNight, bgColor, bgColorNight, borderColor, borderColorNight, icon, iconNight) { + Companion_instance_642; + text = text === VOID ? '' : text; + textColor = textColor === VOID ? '' : textColor; + textColorNight = textColorNight === VOID ? '' : textColorNight; + bgColor = bgColor === VOID ? '' : bgColor; + bgColorNight = bgColorNight === VOID ? '' : bgColorNight; + borderColor = borderColor === VOID ? '' : borderColor; + borderColorNight = borderColorNight === VOID ? '' : borderColorNight; + icon = icon === VOID ? '' : icon; + iconNight = iconNight === VOID ? '' : iconNight; + this.text = text; + this.textColor = textColor; + this.textColorNight = textColorNight; + this.bgColor = bgColor; + this.bgColorNight = bgColorNight; + this.borderColor = borderColor; + this.borderColorNight = borderColorNight; + this.icon = icon; + this.iconNight = iconNight; + } + get_text_wouvsm_k$() { + return this.text; + } + get_textColor_92p84z_k$() { + return this.textColor; + } + get_textColorNight_hqolf9_k$() { + return this.textColorNight; + } + get_bgColor_24ewuj_k$() { + return this.bgColor; + } + get_bgColorNight_mzrajh_k$() { + return this.bgColorNight; + } + get_borderColor_puk0tq_k$() { + return this.borderColor; + } + get_borderColorNight_z7xsom_k$() { + return this.borderColorNight; + } + get_icon_wont8i_k$() { + return this.icon; + } + get_iconNight_equj62_k$() { + return this.iconNight; + } + component1_7eebsc_k$() { + return this.text; + } + component2_7eebsb_k$() { + return this.textColor; + } + component3_7eebsa_k$() { + return this.textColorNight; + } + component4_7eebs9_k$() { + return this.bgColor; + } + component5_7eebs8_k$() { + return this.bgColorNight; + } + component6_7eebs7_k$() { + return this.borderColor; + } + component7_7eebs6_k$() { + return this.borderColorNight; + } + component8_7eebs5_k$() { + return this.icon; + } + component9_7eebs4_k$() { + return this.iconNight; + } + copy_jihvqd_k$(text, textColor, textColorNight, bgColor, bgColorNight, borderColor, borderColorNight, icon, iconNight) { + return new KLabelStyle(text, textColor, textColorNight, bgColor, bgColorNight, borderColor, borderColorNight, icon, iconNight); + } + copy(text, textColor, textColorNight, bgColor, bgColorNight, borderColor, borderColorNight, icon, iconNight, $super) { + text = text === VOID ? this.text : text; + textColor = textColor === VOID ? this.textColor : textColor; + textColorNight = textColorNight === VOID ? this.textColorNight : textColorNight; + bgColor = bgColor === VOID ? this.bgColor : bgColor; + bgColorNight = bgColorNight === VOID ? this.bgColorNight : bgColorNight; + borderColor = borderColor === VOID ? this.borderColor : borderColor; + borderColorNight = borderColorNight === VOID ? this.borderColorNight : borderColorNight; + icon = icon === VOID ? this.icon : icon; + iconNight = iconNight === VOID ? this.iconNight : iconNight; + return this.copy_jihvqd_k$(text, textColor, textColorNight, bgColor, bgColorNight, borderColor, borderColorNight, icon, iconNight); + } + toString() { + return 'KLabelStyle(text=' + this.text + ', textColor=' + this.textColor + ', textColorNight=' + this.textColorNight + ', bgColor=' + this.bgColor + ', bgColorNight=' + this.bgColorNight + ', borderColor=' + this.borderColor + ', borderColorNight=' + this.borderColorNight + ', icon=' + this.icon + ', iconNight=' + this.iconNight + ')'; + } + hashCode() { + var result = getStringHashCode(this.text); + result = imul(result, 31) + getStringHashCode(this.textColor) | 0; + result = imul(result, 31) + getStringHashCode(this.textColorNight) | 0; + result = imul(result, 31) + getStringHashCode(this.bgColor) | 0; + result = imul(result, 31) + getStringHashCode(this.bgColorNight) | 0; + result = imul(result, 31) + getStringHashCode(this.borderColor) | 0; + result = imul(result, 31) + getStringHashCode(this.borderColorNight) | 0; + result = imul(result, 31) + getStringHashCode(this.icon) | 0; + result = imul(result, 31) + getStringHashCode(this.iconNight) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KLabelStyle)) + return false; + var tmp0_other_with_cast = other instanceof KLabelStyle ? other : THROW_CCE(); + if (!(this.text === tmp0_other_with_cast.text)) + return false; + if (!(this.textColor === tmp0_other_with_cast.textColor)) + return false; + if (!(this.textColorNight === tmp0_other_with_cast.textColorNight)) + return false; + if (!(this.bgColor === tmp0_other_with_cast.bgColor)) + return false; + if (!(this.bgColorNight === tmp0_other_with_cast.bgColorNight)) + return false; + if (!(this.borderColor === tmp0_other_with_cast.borderColor)) + return false; + if (!(this.borderColorNight === tmp0_other_with_cast.borderColorNight)) + return false; + if (!(this.icon === tmp0_other_with_cast.icon)) + return false; + if (!(this.iconNight === tmp0_other_with_cast.iconNight)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KLabelStyle_jf9wrd_k$(seen1, text, textColor, textColorNight, bgColor, bgColorNight, borderColor, borderColorNight, icon, iconNight, serializationConstructorMarker) { + Companion_instance_642; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_629().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.text = ''; + else + $this.text = text; + if (0 === (seen1 & 2)) + $this.textColor = ''; + else + $this.textColor = textColor; + if (0 === (seen1 & 4)) + $this.textColorNight = ''; + else + $this.textColorNight = textColorNight; + if (0 === (seen1 & 8)) + $this.bgColor = ''; + else + $this.bgColor = bgColor; + if (0 === (seen1 & 16)) + $this.bgColorNight = ''; + else + $this.bgColorNight = bgColorNight; + if (0 === (seen1 & 32)) + $this.borderColor = ''; + else + $this.borderColor = borderColor; + if (0 === (seen1 & 64)) + $this.borderColorNight = ''; + else + $this.borderColorNight = borderColorNight; + if (0 === (seen1 & 128)) + $this.icon = ''; + else + $this.icon = icon; + if (0 === (seen1 & 256)) + $this.iconNight = ''; + else + $this.iconNight = iconNight; + return $this; + } + } + class Companion_643 { + constructor() { + Companion_instance_643 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, null, null, null, null, null, null, new ArrayListSerializer($serializer_getInstance_606()), new ArrayListSerializer($serializer_getInstance_566()), null, null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.polymer.app.search.v1.SearchCheese'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_630(); + } + } + class $serializer_630 { + constructor() { + $serializer_instance_630 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KSearchCheese', this, 14); + tmp0_serialDesc.addElement_5pzumi_k$('seasonId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('name', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('uri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('showCardDesc1', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('showCardDesc2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('viewContent', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('iconType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('badges', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('threePoint', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('feedback', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + tmp0_serialDesc.addElement_5pzumi_k$('shareFrom', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(13)); + tmp0_serialDesc.addElement_5pzumi_k$('cardLayout', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(14)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_643().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), tmp0_cached[9], tmp0_cached[10], get_nullable($serializer_getInstance_610()), StringSerializer_getInstance(), get_nullable($serializer_getInstance_633())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_local8 = 0; + var tmp13_local9 = null; + var tmp14_local10 = null; + var tmp15_local11 = null; + var tmp16_local12 = null; + var tmp17_local13 = null; + var tmp18_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp19_cached = Companion_getInstance_643().$childSerializers_1; + if (tmp18_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp18_input.decodeIntElement_941u6a_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp18_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 9, tmp19_cached[9], tmp13_local9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp18_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 10, tmp19_cached[10], tmp14_local10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 11, $serializer_getInstance_610(), tmp15_local11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + tmp16_local12 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + tmp17_local13 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 13, $serializer_getInstance_633(), tmp17_local13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + } else + while (tmp1_flag) { + tmp2_index = tmp18_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp18_input.decodeIntElement_941u6a_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp18_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 9, tmp19_cached[9], tmp13_local9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp18_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 10, tmp19_cached[10], tmp14_local10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 11, $serializer_getInstance_610(), tmp15_local11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + case 12: + tmp16_local12 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + break; + case 13: + tmp17_local13 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 13, $serializer_getInstance_633(), tmp17_local13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp18_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSearchCheese.new_com_bapis_bilibili_polymer_app_search_v1_KSearchCheese_n2hh9a_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, null); + } + serialize_fkdmuw_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_643().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.seasonId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.seasonId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.cover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.name === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.name); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.uri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.uri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.showCardDesc1 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.showCardDesc1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.showCardDesc2 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.showCardDesc2); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.viewContent === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.viewContent); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.iconType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 8, value.iconType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !equals(value.badges, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 9, tmp2_cached[9], value.badges); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !equals(value.threePoint, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 10, tmp2_cached[10], value.threePoint); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.feedback == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 11, $serializer_getInstance_610(), value.feedback); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !(value.shareFrom === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 12, value.shareFrom); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 13) ? true : !(value.cardLayout == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 13, $serializer_getInstance_633(), value.cardLayout); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_fkdmuw_k$(encoder, value instanceof KSearchCheese ? value : THROW_CCE()); + } + } + class KSearchCheese { + constructor(seasonId, title, cover, name, uri, showCardDesc1, showCardDesc2, viewContent, iconType, badges, threePoint, feedback, shareFrom, cardLayout) { + Companion_getInstance_643(); + seasonId = seasonId === VOID ? new Long(0, 0) : seasonId; + title = title === VOID ? '' : title; + cover = cover === VOID ? '' : cover; + name = name === VOID ? '' : name; + uri = uri === VOID ? '' : uri; + showCardDesc1 = showCardDesc1 === VOID ? '' : showCardDesc1; + showCardDesc2 = showCardDesc2 === VOID ? '' : showCardDesc2; + viewContent = viewContent === VOID ? '' : viewContent; + iconType = iconType === VOID ? 0 : iconType; + badges = badges === VOID ? emptyList() : badges; + threePoint = threePoint === VOID ? emptyList() : threePoint; + feedback = feedback === VOID ? null : feedback; + shareFrom = shareFrom === VOID ? '' : shareFrom; + cardLayout = cardLayout === VOID ? null : cardLayout; + this.seasonId = seasonId; + this.title = title; + this.cover = cover; + this.name = name; + this.uri = uri; + this.showCardDesc1 = showCardDesc1; + this.showCardDesc2 = showCardDesc2; + this.viewContent = viewContent; + this.iconType = iconType; + this.badges = badges; + this.threePoint = threePoint; + this.feedback = feedback; + this.shareFrom = shareFrom; + this.cardLayout = cardLayout; + } + get_seasonId_h33f15_k$() { + return this.seasonId; + } + get_title_iz32un_k$() { + return this.title; + } + get_cover_ipug0e_k$() { + return this.cover; + } + get_name_woqyms_k$() { + return this.name; + } + get_uri_18iuil_k$() { + return this.uri; + } + get_showCardDesc1_gakd1y_k$() { + return this.showCardDesc1; + } + get_showCardDesc2_gakd1x_k$() { + return this.showCardDesc2; + } + get_viewContent_th0tkb_k$() { + return this.viewContent; + } + get_iconType_r0uasc_k$() { + return this.iconType; + } + get_badges_bb95bt_k$() { + return this.badges; + } + get_threePoint_wv0qvv_k$() { + return this.threePoint; + } + get_feedback_yyya42_k$() { + return this.feedback; + } + get_shareFrom_hnmg00_k$() { + return this.shareFrom; + } + get_cardLayout_d0npjx_k$() { + return this.cardLayout; + } + component1_7eebsc_k$() { + return this.seasonId; + } + component2_7eebsb_k$() { + return this.title; + } + component3_7eebsa_k$() { + return this.cover; + } + component4_7eebs9_k$() { + return this.name; + } + component5_7eebs8_k$() { + return this.uri; + } + component6_7eebs7_k$() { + return this.showCardDesc1; + } + component7_7eebs6_k$() { + return this.showCardDesc2; + } + component8_7eebs5_k$() { + return this.viewContent; + } + component9_7eebs4_k$() { + return this.iconType; + } + component10_gazzfo_k$() { + return this.badges; + } + component11_gazzfn_k$() { + return this.threePoint; + } + component12_gazzfm_k$() { + return this.feedback; + } + component13_gazzfl_k$() { + return this.shareFrom; + } + component14_gazzfk_k$() { + return this.cardLayout; + } + copy_1hqs4t_k$(seasonId, title, cover, name, uri, showCardDesc1, showCardDesc2, viewContent, iconType, badges, threePoint, feedback, shareFrom, cardLayout) { + return new KSearchCheese(seasonId, title, cover, name, uri, showCardDesc1, showCardDesc2, viewContent, iconType, badges, threePoint, feedback, shareFrom, cardLayout); + } + copy(seasonId, title, cover, name, uri, showCardDesc1, showCardDesc2, viewContent, iconType, badges, threePoint, feedback, shareFrom, cardLayout, $super) { + seasonId = seasonId === VOID ? this.seasonId : seasonId; + title = title === VOID ? this.title : title; + cover = cover === VOID ? this.cover : cover; + name = name === VOID ? this.name : name; + uri = uri === VOID ? this.uri : uri; + showCardDesc1 = showCardDesc1 === VOID ? this.showCardDesc1 : showCardDesc1; + showCardDesc2 = showCardDesc2 === VOID ? this.showCardDesc2 : showCardDesc2; + viewContent = viewContent === VOID ? this.viewContent : viewContent; + iconType = iconType === VOID ? this.iconType : iconType; + badges = badges === VOID ? this.badges : badges; + threePoint = threePoint === VOID ? this.threePoint : threePoint; + feedback = feedback === VOID ? this.feedback : feedback; + shareFrom = shareFrom === VOID ? this.shareFrom : shareFrom; + cardLayout = cardLayout === VOID ? this.cardLayout : cardLayout; + return this.copy_1hqs4t_k$(seasonId, title, cover, name, uri, showCardDesc1, showCardDesc2, viewContent, iconType, badges, threePoint, feedback, shareFrom, cardLayout); + } + toString() { + return 'KSearchCheese(seasonId=' + this.seasonId.toString() + ', title=' + this.title + ', cover=' + this.cover + ', name=' + this.name + ', uri=' + this.uri + ', showCardDesc1=' + this.showCardDesc1 + ', showCardDesc2=' + this.showCardDesc2 + ', viewContent=' + this.viewContent + ', iconType=' + this.iconType + ', badges=' + this.badges + ', threePoint=' + this.threePoint + ', feedback=' + this.feedback + ', shareFrom=' + this.shareFrom + ', cardLayout=' + this.cardLayout + ')'; + } + hashCode() { + var result = this.seasonId.hashCode(); + result = imul(result, 31) + getStringHashCode(this.title) | 0; + result = imul(result, 31) + getStringHashCode(this.cover) | 0; + result = imul(result, 31) + getStringHashCode(this.name) | 0; + result = imul(result, 31) + getStringHashCode(this.uri) | 0; + result = imul(result, 31) + getStringHashCode(this.showCardDesc1) | 0; + result = imul(result, 31) + getStringHashCode(this.showCardDesc2) | 0; + result = imul(result, 31) + getStringHashCode(this.viewContent) | 0; + result = imul(result, 31) + this.iconType | 0; + result = imul(result, 31) + hashCode(this.badges) | 0; + result = imul(result, 31) + hashCode(this.threePoint) | 0; + result = imul(result, 31) + (this.feedback == null ? 0 : this.feedback.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.shareFrom) | 0; + result = imul(result, 31) + (this.cardLayout == null ? 0 : this.cardLayout.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSearchCheese)) + return false; + var tmp0_other_with_cast = other instanceof KSearchCheese ? other : THROW_CCE(); + if (!this.seasonId.equals(tmp0_other_with_cast.seasonId)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + if (!(this.name === tmp0_other_with_cast.name)) + return false; + if (!(this.uri === tmp0_other_with_cast.uri)) + return false; + if (!(this.showCardDesc1 === tmp0_other_with_cast.showCardDesc1)) + return false; + if (!(this.showCardDesc2 === tmp0_other_with_cast.showCardDesc2)) + return false; + if (!(this.viewContent === tmp0_other_with_cast.viewContent)) + return false; + if (!(this.iconType === tmp0_other_with_cast.iconType)) + return false; + if (!equals(this.badges, tmp0_other_with_cast.badges)) + return false; + if (!equals(this.threePoint, tmp0_other_with_cast.threePoint)) + return false; + if (!equals(this.feedback, tmp0_other_with_cast.feedback)) + return false; + if (!(this.shareFrom === tmp0_other_with_cast.shareFrom)) + return false; + if (!equals(this.cardLayout, tmp0_other_with_cast.cardLayout)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KSearchCheese_n2hh9a_k$(seen1, seasonId, title, cover, name, uri, showCardDesc1, showCardDesc2, viewContent, iconType, badges, threePoint, feedback, shareFrom, cardLayout, serializationConstructorMarker) { + Companion_getInstance_643(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_630().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.seasonId = new Long(0, 0); + else + $this.seasonId = seasonId; + if (0 === (seen1 & 2)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 4)) + $this.cover = ''; + else + $this.cover = cover; + if (0 === (seen1 & 8)) + $this.name = ''; + else + $this.name = name; + if (0 === (seen1 & 16)) + $this.uri = ''; + else + $this.uri = uri; + if (0 === (seen1 & 32)) + $this.showCardDesc1 = ''; + else + $this.showCardDesc1 = showCardDesc1; + if (0 === (seen1 & 64)) + $this.showCardDesc2 = ''; + else + $this.showCardDesc2 = showCardDesc2; + if (0 === (seen1 & 128)) + $this.viewContent = ''; + else + $this.viewContent = viewContent; + if (0 === (seen1 & 256)) + $this.iconType = 0; + else + $this.iconType = iconType; + if (0 === (seen1 & 512)) + $this.badges = emptyList(); + else + $this.badges = badges; + if (0 === (seen1 & 1024)) + $this.threePoint = emptyList(); + else + $this.threePoint = threePoint; + if (0 === (seen1 & 2048)) + $this.feedback = null; + else + $this.feedback = feedback; + if (0 === (seen1 & 4096)) + $this.shareFrom = ''; + else + $this.shareFrom = shareFrom; + if (0 === (seen1 & 8192)) + $this.cardLayout = null; + else + $this.cardLayout = cardLayout; + return $this; + } + } + class Companion_644 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.RelatedQuery'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_631(); + } + } + class $serializer_631 { + constructor() { + $serializer_instance_631 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KRelatedQuery', this, 6); + tmp0_serialDesc.addElement_5pzumi_k$('query', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('url', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('recommendReason', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('iconType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('icon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('iconNight', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = new Long(0, 0); + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp10_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + } else + while (tmp1_flag) { + tmp2_index = tmp10_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp10_input.endStructure_1xqz0n_k$(tmp0_desc); + return KRelatedQuery.new_com_bapis_bilibili_polymer_app_search_v1_KRelatedQuery_fk3z27_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); + } + serialize_r55u2u_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.query === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.query); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.url === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.url); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.recommendReason === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.recommendReason); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !value.iconType.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 3, value.iconType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.icon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.icon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.iconNight === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.iconNight); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_r55u2u_k$(encoder, value instanceof KRelatedQuery ? value : THROW_CCE()); + } + } + class KRelatedQuery { + constructor(query, url, recommendReason, iconType, icon, iconNight) { + Companion_instance_644; + query = query === VOID ? '' : query; + url = url === VOID ? '' : url; + recommendReason = recommendReason === VOID ? '' : recommendReason; + iconType = iconType === VOID ? new Long(0, 0) : iconType; + icon = icon === VOID ? '' : icon; + iconNight = iconNight === VOID ? '' : iconNight; + this.query = query; + this.url = url; + this.recommendReason = recommendReason; + this.iconType = iconType; + this.icon = icon; + this.iconNight = iconNight; + } + get_query_ixn1y7_k$() { + return this.query; + } + get_url_18iuii_k$() { + return this.url; + } + get_recommendReason_292913_k$() { + return this.recommendReason; + } + get_iconType_r0uasc_k$() { + return this.iconType; + } + get_icon_wont8i_k$() { + return this.icon; + } + get_iconNight_equj62_k$() { + return this.iconNight; + } + component1_7eebsc_k$() { + return this.query; + } + component2_7eebsb_k$() { + return this.url; + } + component3_7eebsa_k$() { + return this.recommendReason; + } + component4_7eebs9_k$() { + return this.iconType; + } + component5_7eebs8_k$() { + return this.icon; + } + component6_7eebs7_k$() { + return this.iconNight; + } + copy_wk8671_k$(query, url, recommendReason, iconType, icon, iconNight) { + return new KRelatedQuery(query, url, recommendReason, iconType, icon, iconNight); + } + copy(query, url, recommendReason, iconType, icon, iconNight, $super) { + query = query === VOID ? this.query : query; + url = url === VOID ? this.url : url; + recommendReason = recommendReason === VOID ? this.recommendReason : recommendReason; + iconType = iconType === VOID ? this.iconType : iconType; + icon = icon === VOID ? this.icon : icon; + iconNight = iconNight === VOID ? this.iconNight : iconNight; + return this.copy_wk8671_k$(query, url, recommendReason, iconType, icon, iconNight); + } + toString() { + return 'KRelatedQuery(query=' + this.query + ', url=' + this.url + ', recommendReason=' + this.recommendReason + ', iconType=' + this.iconType.toString() + ', icon=' + this.icon + ', iconNight=' + this.iconNight + ')'; + } + hashCode() { + var result = getStringHashCode(this.query); + result = imul(result, 31) + getStringHashCode(this.url) | 0; + result = imul(result, 31) + getStringHashCode(this.recommendReason) | 0; + result = imul(result, 31) + this.iconType.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.icon) | 0; + result = imul(result, 31) + getStringHashCode(this.iconNight) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KRelatedQuery)) + return false; + var tmp0_other_with_cast = other instanceof KRelatedQuery ? other : THROW_CCE(); + if (!(this.query === tmp0_other_with_cast.query)) + return false; + if (!(this.url === tmp0_other_with_cast.url)) + return false; + if (!(this.recommendReason === tmp0_other_with_cast.recommendReason)) + return false; + if (!this.iconType.equals(tmp0_other_with_cast.iconType)) + return false; + if (!(this.icon === tmp0_other_with_cast.icon)) + return false; + if (!(this.iconNight === tmp0_other_with_cast.iconNight)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KRelatedQuery_fk3z27_k$(seen1, query, url, recommendReason, iconType, icon, iconNight, serializationConstructorMarker) { + Companion_instance_644; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_631().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.query = ''; + else + $this.query = query; + if (0 === (seen1 & 2)) + $this.url = ''; + else + $this.url = url; + if (0 === (seen1 & 4)) + $this.recommendReason = ''; + else + $this.recommendReason = recommendReason; + if (0 === (seen1 & 8)) + $this.iconType = new Long(0, 0); + else + $this.iconType = iconType; + if (0 === (seen1 & 16)) + $this.icon = ''; + else + $this.icon = icon; + if (0 === (seen1 & 32)) + $this.iconNight = ''; + else + $this.iconNight = iconNight; + return $this; + } + } + class Companion_645 { + constructor() { + Companion_instance_645 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, new ArrayListSerializer($serializer_getInstance_631()), null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.polymer.app.search.v1.SearchRelatedSearch'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_632(); + } + } + class $serializer_632 { + constructor() { + $serializer_instance_632 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KSearchRelatedSearch', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('relatedQueryList', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('cardLayout', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_645().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), tmp0_cached[1], get_nullable($serializer_getInstance_633())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp8_cached = Companion_getInstance_645().$childSerializers_1; + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp8_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_633(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp8_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_633(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSearchRelatedSearch.new_com_bapis_bilibili_polymer_app_search_v1_KSearchRelatedSearch_i2fxm4_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_8g4obo_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_645().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !equals(value.relatedQueryList, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 1, tmp2_cached[1], value.relatedQueryList); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.cardLayout == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_633(), value.cardLayout); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_8g4obo_k$(encoder, value instanceof KSearchRelatedSearch ? value : THROW_CCE()); + } + } + class KSearchRelatedSearch { + constructor(title, relatedQueryList, cardLayout) { + Companion_getInstance_645(); + title = title === VOID ? '' : title; + relatedQueryList = relatedQueryList === VOID ? emptyList() : relatedQueryList; + cardLayout = cardLayout === VOID ? null : cardLayout; + this.title = title; + this.relatedQueryList = relatedQueryList; + this.cardLayout = cardLayout; + } + get_title_iz32un_k$() { + return this.title; + } + get_relatedQueryList_s7ad98_k$() { + return this.relatedQueryList; + } + get_cardLayout_d0npjx_k$() { + return this.cardLayout; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.relatedQueryList; + } + component3_7eebsa_k$() { + return this.cardLayout; + } + copy_wsfjut_k$(title, relatedQueryList, cardLayout) { + return new KSearchRelatedSearch(title, relatedQueryList, cardLayout); + } + copy(title, relatedQueryList, cardLayout, $super) { + title = title === VOID ? this.title : title; + relatedQueryList = relatedQueryList === VOID ? this.relatedQueryList : relatedQueryList; + cardLayout = cardLayout === VOID ? this.cardLayout : cardLayout; + return this.copy_wsfjut_k$(title, relatedQueryList, cardLayout); + } + toString() { + return 'KSearchRelatedSearch(title=' + this.title + ', relatedQueryList=' + this.relatedQueryList + ', cardLayout=' + this.cardLayout + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + hashCode(this.relatedQueryList) | 0; + result = imul(result, 31) + (this.cardLayout == null ? 0 : this.cardLayout.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSearchRelatedSearch)) + return false; + var tmp0_other_with_cast = other instanceof KSearchRelatedSearch ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!equals(this.relatedQueryList, tmp0_other_with_cast.relatedQueryList)) + return false; + if (!equals(this.cardLayout, tmp0_other_with_cast.cardLayout)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KSearchRelatedSearch_i2fxm4_k$(seen1, title, relatedQueryList, cardLayout, serializationConstructorMarker) { + Companion_getInstance_645(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_632().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.relatedQueryList = emptyList(); + else + $this.relatedQueryList = relatedQueryList; + if (0 === (seen1 & 4)) + $this.cardLayout = null; + else + $this.cardLayout = cardLayout; + return $this; + } + } + class Companion_646 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.CardLayout'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_633(); + } + } + class $serializer_633 { + constructor() { + $serializer_instance_633 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KCardLayout', this, 8); + tmp0_serialDesc.addElement_5pzumi_k$('compactCoverWidth', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('compactCoverHeight', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('verticalPadding', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('moduleSpacing', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('isLargeAvatar', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('backgroundCoverHeight', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('buttonTopEqualCover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('column', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [FloatSerializer_getInstance(), FloatSerializer_getInstance(), FloatSerializer_getInstance(), FloatSerializer_getInstance(), BooleanSerializer_getInstance(), FloatSerializer_getInstance(), BooleanSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0.0; + var tmp5_local1 = 0.0; + var tmp6_local2 = 0.0; + var tmp7_local3 = 0.0; + var tmp8_local4 = false; + var tmp9_local5 = 0.0; + var tmp10_local6 = false; + var tmp11_local7 = 0; + var tmp12_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp12_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp12_input.decodeFloatElement_p2q55h_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp12_input.decodeFloatElement_p2q55h_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp12_input.decodeFloatElement_p2q55h_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp12_input.decodeFloatElement_p2q55h_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp12_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp12_input.decodeFloatElement_p2q55h_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp12_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + } else + while (tmp1_flag) { + tmp2_index = tmp12_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp12_input.decodeFloatElement_p2q55h_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp12_input.decodeFloatElement_p2q55h_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp12_input.decodeFloatElement_p2q55h_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp12_input.decodeFloatElement_p2q55h_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp12_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp12_input.decodeFloatElement_p2q55h_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp12_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp12_input.endStructure_1xqz0n_k$(tmp0_desc); + return KCardLayout.new_com_bapis_bilibili_polymer_app_search_v1_KCardLayout_6v2d81_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null); + } + serialize_l7zlwj_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.compactCoverWidth, 0.0)) { + tmp1_output.encodeFloatElement_oe8hn_k$(tmp0_desc, 0, value.compactCoverWidth); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !equals(value.compactCoverHeight, 0.0)) { + tmp1_output.encodeFloatElement_oe8hn_k$(tmp0_desc, 1, value.compactCoverHeight); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !equals(value.verticalPadding, 0.0)) { + tmp1_output.encodeFloatElement_oe8hn_k$(tmp0_desc, 2, value.verticalPadding); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !equals(value.moduleSpacing, 0.0)) { + tmp1_output.encodeFloatElement_oe8hn_k$(tmp0_desc, 3, value.moduleSpacing); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.isLargeAvatar === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 4, value.isLargeAvatar); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !equals(value.backgroundCoverHeight, 0.0)) { + tmp1_output.encodeFloatElement_oe8hn_k$(tmp0_desc, 5, value.backgroundCoverHeight); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.buttonTopEqualCover === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 6, value.buttonTopEqualCover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.column === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 7, value.column); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_l7zlwj_k$(encoder, value instanceof KCardLayout ? value : THROW_CCE()); + } + } + class KCardLayout { + constructor(compactCoverWidth, compactCoverHeight, verticalPadding, moduleSpacing, isLargeAvatar, backgroundCoverHeight, buttonTopEqualCover, column) { + Companion_instance_646; + compactCoverWidth = compactCoverWidth === VOID ? 0.0 : compactCoverWidth; + compactCoverHeight = compactCoverHeight === VOID ? 0.0 : compactCoverHeight; + verticalPadding = verticalPadding === VOID ? 0.0 : verticalPadding; + moduleSpacing = moduleSpacing === VOID ? 0.0 : moduleSpacing; + isLargeAvatar = isLargeAvatar === VOID ? false : isLargeAvatar; + backgroundCoverHeight = backgroundCoverHeight === VOID ? 0.0 : backgroundCoverHeight; + buttonTopEqualCover = buttonTopEqualCover === VOID ? false : buttonTopEqualCover; + column = column === VOID ? 0 : column; + this.compactCoverWidth = compactCoverWidth; + this.compactCoverHeight = compactCoverHeight; + this.verticalPadding = verticalPadding; + this.moduleSpacing = moduleSpacing; + this.isLargeAvatar = isLargeAvatar; + this.backgroundCoverHeight = backgroundCoverHeight; + this.buttonTopEqualCover = buttonTopEqualCover; + this.column = column; + } + get_compactCoverWidth_gymyp5_k$() { + return this.compactCoverWidth; + } + get_compactCoverHeight_lg6wx0_k$() { + return this.compactCoverHeight; + } + get_verticalPadding_xaupm6_k$() { + return this.verticalPadding; + } + get_moduleSpacing_9ixd72_k$() { + return this.moduleSpacing; + } + get_isLargeAvatar_cvbbup_k$() { + return this.isLargeAvatar; + } + get_backgroundCoverHeight_kp7ibr_k$() { + return this.backgroundCoverHeight; + } + get_buttonTopEqualCover_fib9nh_k$() { + return this.buttonTopEqualCover; + } + get_column_c05ahr_k$() { + return this.column; + } + component1_7eebsc_k$() { + return this.compactCoverWidth; + } + component2_7eebsb_k$() { + return this.compactCoverHeight; + } + component3_7eebsa_k$() { + return this.verticalPadding; + } + component4_7eebs9_k$() { + return this.moduleSpacing; + } + component5_7eebs8_k$() { + return this.isLargeAvatar; + } + component6_7eebs7_k$() { + return this.backgroundCoverHeight; + } + component7_7eebs6_k$() { + return this.buttonTopEqualCover; + } + component8_7eebs5_k$() { + return this.column; + } + copy_ulgfgb_k$(compactCoverWidth, compactCoverHeight, verticalPadding, moduleSpacing, isLargeAvatar, backgroundCoverHeight, buttonTopEqualCover, column) { + return new KCardLayout(compactCoverWidth, compactCoverHeight, verticalPadding, moduleSpacing, isLargeAvatar, backgroundCoverHeight, buttonTopEqualCover, column); + } + copy(compactCoverWidth, compactCoverHeight, verticalPadding, moduleSpacing, isLargeAvatar, backgroundCoverHeight, buttonTopEqualCover, column, $super) { + compactCoverWidth = compactCoverWidth === VOID ? this.compactCoverWidth : compactCoverWidth; + compactCoverHeight = compactCoverHeight === VOID ? this.compactCoverHeight : compactCoverHeight; + verticalPadding = verticalPadding === VOID ? this.verticalPadding : verticalPadding; + moduleSpacing = moduleSpacing === VOID ? this.moduleSpacing : moduleSpacing; + isLargeAvatar = isLargeAvatar === VOID ? this.isLargeAvatar : isLargeAvatar; + backgroundCoverHeight = backgroundCoverHeight === VOID ? this.backgroundCoverHeight : backgroundCoverHeight; + buttonTopEqualCover = buttonTopEqualCover === VOID ? this.buttonTopEqualCover : buttonTopEqualCover; + column = column === VOID ? this.column : column; + return this.copy_ulgfgb_k$(compactCoverWidth, compactCoverHeight, verticalPadding, moduleSpacing, isLargeAvatar, backgroundCoverHeight, buttonTopEqualCover, column); + } + toString() { + return 'KCardLayout(compactCoverWidth=' + this.compactCoverWidth + ', compactCoverHeight=' + this.compactCoverHeight + ', verticalPadding=' + this.verticalPadding + ', moduleSpacing=' + this.moduleSpacing + ', isLargeAvatar=' + this.isLargeAvatar + ', backgroundCoverHeight=' + this.backgroundCoverHeight + ', buttonTopEqualCover=' + this.buttonTopEqualCover + ', column=' + this.column + ')'; + } + hashCode() { + var result = getNumberHashCode(this.compactCoverWidth); + result = imul(result, 31) + getNumberHashCode(this.compactCoverHeight) | 0; + result = imul(result, 31) + getNumberHashCode(this.verticalPadding) | 0; + result = imul(result, 31) + getNumberHashCode(this.moduleSpacing) | 0; + result = imul(result, 31) + getBooleanHashCode(this.isLargeAvatar) | 0; + result = imul(result, 31) + getNumberHashCode(this.backgroundCoverHeight) | 0; + result = imul(result, 31) + getBooleanHashCode(this.buttonTopEqualCover) | 0; + result = imul(result, 31) + this.column | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KCardLayout)) + return false; + var tmp0_other_with_cast = other instanceof KCardLayout ? other : THROW_CCE(); + if (!equals(this.compactCoverWidth, tmp0_other_with_cast.compactCoverWidth)) + return false; + if (!equals(this.compactCoverHeight, tmp0_other_with_cast.compactCoverHeight)) + return false; + if (!equals(this.verticalPadding, tmp0_other_with_cast.verticalPadding)) + return false; + if (!equals(this.moduleSpacing, tmp0_other_with_cast.moduleSpacing)) + return false; + if (!(this.isLargeAvatar === tmp0_other_with_cast.isLargeAvatar)) + return false; + if (!equals(this.backgroundCoverHeight, tmp0_other_with_cast.backgroundCoverHeight)) + return false; + if (!(this.buttonTopEqualCover === tmp0_other_with_cast.buttonTopEqualCover)) + return false; + if (!(this.column === tmp0_other_with_cast.column)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KCardLayout_6v2d81_k$(seen1, compactCoverWidth, compactCoverHeight, verticalPadding, moduleSpacing, isLargeAvatar, backgroundCoverHeight, buttonTopEqualCover, column, serializationConstructorMarker) { + Companion_instance_646; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_633().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.compactCoverWidth = 0.0; + else + $this.compactCoverWidth = compactCoverWidth; + if (0 === (seen1 & 2)) + $this.compactCoverHeight = 0.0; + else + $this.compactCoverHeight = compactCoverHeight; + if (0 === (seen1 & 4)) + $this.verticalPadding = 0.0; + else + $this.verticalPadding = verticalPadding; + if (0 === (seen1 & 8)) + $this.moduleSpacing = 0.0; + else + $this.moduleSpacing = moduleSpacing; + if (0 === (seen1 & 16)) + $this.isLargeAvatar = false; + else + $this.isLargeAvatar = isLargeAvatar; + if (0 === (seen1 & 32)) + $this.backgroundCoverHeight = 0.0; + else + $this.backgroundCoverHeight = backgroundCoverHeight; + if (0 === (seen1 & 64)) + $this.buttonTopEqualCover = false; + else + $this.buttonTopEqualCover = buttonTopEqualCover; + if (0 === (seen1 & 128)) + $this.column = 0; + else + $this.column = column; + return $this; + } + } + class Companion_647 { + constructor() { + this.targetPath = '/bilibili.polymer.app.search.v1.SaleInfo'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_634(); + } + } + class $serializer_634 { + constructor() { + $serializer_instance_634 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.polymer.app.search.v1.KSaleInfo', this, 9); + tmp0_serialDesc.addElement_5pzumi_k$('icon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('iconNight', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('label', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('desc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('button', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('vipStatus', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('vipType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('tipsId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_606()), StringSerializer_getInstance(), get_nullable($serializer_getInstance_595()), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_local8 = null; + var tmp13_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp13_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_606(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_595(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + } else + while (tmp1_flag) { + tmp2_index = tmp13_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_606(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_595(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp13_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSaleInfo.new_com_bapis_bilibili_polymer_app_search_v1_KSaleInfo_c8ag2v_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, null); + } + serialize_55fvsu_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.icon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.icon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.iconNight === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.iconNight); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.label == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_606(), value.label); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.desc === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.desc); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.button == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 5, $serializer_getInstance_595(), value.button); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.vipStatus === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.vipStatus); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.vipType === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.vipType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.tipsId === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 8, value.tipsId); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_55fvsu_k$(encoder, value instanceof KSaleInfo ? value : THROW_CCE()); + } + } + class KSaleInfo { + constructor(icon, iconNight, title, label, desc, button, vipStatus, vipType, tipsId) { + Companion_instance_647; + icon = icon === VOID ? '' : icon; + iconNight = iconNight === VOID ? '' : iconNight; + title = title === VOID ? '' : title; + label = label === VOID ? null : label; + desc = desc === VOID ? '' : desc; + button = button === VOID ? null : button; + vipStatus = vipStatus === VOID ? '' : vipStatus; + vipType = vipType === VOID ? '' : vipType; + tipsId = tipsId === VOID ? '' : tipsId; + this.icon = icon; + this.iconNight = iconNight; + this.title = title; + this.label = label; + this.desc = desc; + this.button = button; + this.vipStatus = vipStatus; + this.vipType = vipType; + this.tipsId = tipsId; + } + get_icon_wont8i_k$() { + return this.icon; + } + get_iconNight_equj62_k$() { + return this.iconNight; + } + get_title_iz32un_k$() { + return this.title; + } + get_label_iuj8p7_k$() { + return this.label; + } + get_desc_woknve_k$() { + return this.desc; + } + get_button_bmjiuz_k$() { + return this.button; + } + get_vipStatus_eu9yyi_k$() { + return this.vipStatus; + } + get_vipType_8xfk7i_k$() { + return this.vipType; + } + get_tipsId_jyol8c_k$() { + return this.tipsId; + } + component1_7eebsc_k$() { + return this.icon; + } + component2_7eebsb_k$() { + return this.iconNight; + } + component3_7eebsa_k$() { + return this.title; + } + component4_7eebs9_k$() { + return this.label; + } + component5_7eebs8_k$() { + return this.desc; + } + component6_7eebs7_k$() { + return this.button; + } + component7_7eebs6_k$() { + return this.vipStatus; + } + component8_7eebs5_k$() { + return this.vipType; + } + component9_7eebs4_k$() { + return this.tipsId; + } + copy_t8g4rd_k$(icon, iconNight, title, label, desc, button, vipStatus, vipType, tipsId) { + return new KSaleInfo(icon, iconNight, title, label, desc, button, vipStatus, vipType, tipsId); + } + copy(icon, iconNight, title, label, desc, button, vipStatus, vipType, tipsId, $super) { + icon = icon === VOID ? this.icon : icon; + iconNight = iconNight === VOID ? this.iconNight : iconNight; + title = title === VOID ? this.title : title; + label = label === VOID ? this.label : label; + desc = desc === VOID ? this.desc : desc; + button = button === VOID ? this.button : button; + vipStatus = vipStatus === VOID ? this.vipStatus : vipStatus; + vipType = vipType === VOID ? this.vipType : vipType; + tipsId = tipsId === VOID ? this.tipsId : tipsId; + return this.copy_t8g4rd_k$(icon, iconNight, title, label, desc, button, vipStatus, vipType, tipsId); + } + toString() { + return 'KSaleInfo(icon=' + this.icon + ', iconNight=' + this.iconNight + ', title=' + this.title + ', label=' + this.label + ', desc=' + this.desc + ', button=' + this.button + ', vipStatus=' + this.vipStatus + ', vipType=' + this.vipType + ', tipsId=' + this.tipsId + ')'; + } + hashCode() { + var result = getStringHashCode(this.icon); + result = imul(result, 31) + getStringHashCode(this.iconNight) | 0; + result = imul(result, 31) + getStringHashCode(this.title) | 0; + result = imul(result, 31) + (this.label == null ? 0 : this.label.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.desc) | 0; + result = imul(result, 31) + (this.button == null ? 0 : this.button.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.vipStatus) | 0; + result = imul(result, 31) + getStringHashCode(this.vipType) | 0; + result = imul(result, 31) + getStringHashCode(this.tipsId) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSaleInfo)) + return false; + var tmp0_other_with_cast = other instanceof KSaleInfo ? other : THROW_CCE(); + if (!(this.icon === tmp0_other_with_cast.icon)) + return false; + if (!(this.iconNight === tmp0_other_with_cast.iconNight)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!equals(this.label, tmp0_other_with_cast.label)) + return false; + if (!(this.desc === tmp0_other_with_cast.desc)) + return false; + if (!equals(this.button, tmp0_other_with_cast.button)) + return false; + if (!(this.vipStatus === tmp0_other_with_cast.vipStatus)) + return false; + if (!(this.vipType === tmp0_other_with_cast.vipType)) + return false; + if (!(this.tipsId === tmp0_other_with_cast.tipsId)) + return false; + return true; + } + static new_com_bapis_bilibili_polymer_app_search_v1_KSaleInfo_c8ag2v_k$(seen1, icon, iconNight, title, label, desc, button, vipStatus, vipType, tipsId, serializationConstructorMarker) { + Companion_instance_647; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_634().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.icon = ''; + else + $this.icon = icon; + if (0 === (seen1 & 2)) + $this.iconNight = ''; + else + $this.iconNight = iconNight; + if (0 === (seen1 & 4)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 8)) + $this.label = null; + else + $this.label = label; + if (0 === (seen1 & 16)) + $this.desc = ''; + else + $this.desc = desc; + if (0 === (seen1 & 32)) + $this.button = null; + else + $this.button = button; + if (0 === (seen1 & 64)) + $this.vipStatus = ''; + else + $this.vipStatus = vipStatus; + if (0 === (seen1 & 128)) + $this.vipType = ''; + else + $this.vipType = vipType; + if (0 === (seen1 & 256)) + $this.tipsId = ''; + else + $this.tipsId = tipsId; + return $this; + } + } + class Companion_648 { + constructor() { + Companion_instance_648 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, null, null, null, null, null, null, null, null, null, null, null, new ArrayListSerializer(StringSerializer_getInstance()), null, null, null, null, null, null, null, null, null, null, null, null, new ArrayListSerializer($serializer_getInstance_637()), null, null, null, null, null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/archive.service.v1.Arc'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_635(); + } + } + class $serializer_635 { + constructor() { + $serializer_instance_635 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.archive.v1.KArc', this, 34); + tmp0_serialDesc.addElement_5pzumi_k$('aid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('videos', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('typeId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('typeName', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('copyright', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('pic', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('pubdate', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('ctime', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('desc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('state', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('access', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + tmp0_serialDesc.addElement_5pzumi_k$('attribute', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(13)); + tmp0_serialDesc.addElement_5pzumi_k$('tag', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(14)); + tmp0_serialDesc.addElement_5pzumi_k$('tags', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(15)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('duration', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(16)); + tmp0_serialDesc.addElement_5pzumi_k$('missionId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(17)); + tmp0_serialDesc.addElement_5pzumi_k$('orderId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(18)); + tmp0_serialDesc.addElement_5pzumi_k$('redirectUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(19)); + tmp0_serialDesc.addElement_5pzumi_k$('forward', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(20)); + tmp0_serialDesc.addElement_5pzumi_k$('rights', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(21)); + tmp0_serialDesc.addElement_5pzumi_k$('author', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(22)); + tmp0_serialDesc.addElement_5pzumi_k$('stat', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(23)); + tmp0_serialDesc.addElement_5pzumi_k$('reportResult', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(24)); + tmp0_serialDesc.addElement_5pzumi_k$('dynamic', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(25)); + tmp0_serialDesc.addElement_5pzumi_k$('firstCid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(26)); + tmp0_serialDesc.addElement_5pzumi_k$('dimension', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(27)); + tmp0_serialDesc.addElement_5pzumi_k$('staffInfo', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(28)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('seasonId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(29)); + tmp0_serialDesc.addElement_5pzumi_k$('attributeV2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(30)); + tmp0_serialDesc.addElement_5pzumi_k$('seasonTheme', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(31)); + tmp0_serialDesc.addElement_5pzumi_k$('shortLinkV2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(40)); + tmp0_serialDesc.addElement_5pzumi_k$('upFromV2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(41)); + tmp0_serialDesc.addElement_5pzumi_k$('firstFrame', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(42)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_648().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), tmp0_cached[14], LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), get_nullable($serializer_getInstance_639()), get_nullable($serializer_getInstance_640()), get_nullable($serializer_getInstance_641()), StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), get_nullable($serializer_getInstance_638()), tmp0_cached[27], LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable($serializer_getInstance_636()), StringSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_bitMask1 = 0; + var tmp5_local0 = new Long(0, 0); + var tmp6_local1 = new Long(0, 0); + var tmp7_local2 = 0; + var tmp8_local3 = null; + var tmp9_local4 = 0; + var tmp10_local5 = null; + var tmp11_local6 = null; + var tmp12_local7 = new Long(0, 0); + var tmp13_local8 = new Long(0, 0); + var tmp14_local9 = null; + var tmp15_local10 = 0; + var tmp16_local11 = 0; + var tmp17_local12 = 0; + var tmp18_local13 = null; + var tmp19_local14 = null; + var tmp20_local15 = new Long(0, 0); + var tmp21_local16 = new Long(0, 0); + var tmp22_local17 = new Long(0, 0); + var tmp23_local18 = null; + var tmp24_local19 = new Long(0, 0); + var tmp25_local20 = null; + var tmp26_local21 = null; + var tmp27_local22 = null; + var tmp28_local23 = null; + var tmp29_local24 = null; + var tmp30_local25 = new Long(0, 0); + var tmp31_local26 = null; + var tmp32_local27 = null; + var tmp33_local28 = new Long(0, 0); + var tmp34_local29 = new Long(0, 0); + var tmp35_local30 = null; + var tmp36_local31 = null; + var tmp37_local32 = 0; + var tmp38_local33 = null; + var tmp39_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp40_cached = Companion_getInstance_648().$childSerializers_1; + if (tmp39_input.decodeSequentially_xlblqy_k$()) { + tmp5_local0 = tmp39_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp6_local1 = tmp39_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp7_local2 = tmp39_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp8_local3 = tmp39_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp9_local4 = tmp39_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp10_local5 = tmp39_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp11_local6 = tmp39_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp12_local7 = tmp39_input.decodeLongElement_994anb_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp13_local8 = tmp39_input.decodeLongElement_994anb_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp14_local9 = tmp39_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp15_local10 = tmp39_input.decodeIntElement_941u6a_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp16_local11 = tmp39_input.decodeIntElement_941u6a_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + tmp17_local12 = tmp39_input.decodeIntElement_941u6a_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + tmp18_local13 = tmp39_input.decodeStringElement_3oenpg_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + tmp19_local14 = tmp39_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 14, tmp40_cached[14], tmp19_local14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + tmp20_local15 = tmp39_input.decodeLongElement_994anb_k$(tmp0_desc, 15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + tmp21_local16 = tmp39_input.decodeLongElement_994anb_k$(tmp0_desc, 16); + tmp3_bitMask0 = tmp3_bitMask0 | 65536; + tmp22_local17 = tmp39_input.decodeLongElement_994anb_k$(tmp0_desc, 17); + tmp3_bitMask0 = tmp3_bitMask0 | 131072; + tmp23_local18 = tmp39_input.decodeStringElement_3oenpg_k$(tmp0_desc, 18); + tmp3_bitMask0 = tmp3_bitMask0 | 262144; + tmp24_local19 = tmp39_input.decodeLongElement_994anb_k$(tmp0_desc, 19); + tmp3_bitMask0 = tmp3_bitMask0 | 524288; + tmp25_local20 = tmp39_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 20, $serializer_getInstance_639(), tmp25_local20); + tmp3_bitMask0 = tmp3_bitMask0 | 1048576; + tmp26_local21 = tmp39_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 21, $serializer_getInstance_640(), tmp26_local21); + tmp3_bitMask0 = tmp3_bitMask0 | 2097152; + tmp27_local22 = tmp39_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 22, $serializer_getInstance_641(), tmp27_local22); + tmp3_bitMask0 = tmp3_bitMask0 | 4194304; + tmp28_local23 = tmp39_input.decodeStringElement_3oenpg_k$(tmp0_desc, 23); + tmp3_bitMask0 = tmp3_bitMask0 | 8388608; + tmp29_local24 = tmp39_input.decodeStringElement_3oenpg_k$(tmp0_desc, 24); + tmp3_bitMask0 = tmp3_bitMask0 | 16777216; + tmp30_local25 = tmp39_input.decodeLongElement_994anb_k$(tmp0_desc, 25); + tmp3_bitMask0 = tmp3_bitMask0 | 33554432; + tmp31_local26 = tmp39_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 26, $serializer_getInstance_638(), tmp31_local26); + tmp3_bitMask0 = tmp3_bitMask0 | 67108864; + tmp32_local27 = tmp39_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 27, tmp40_cached[27], tmp32_local27); + tmp3_bitMask0 = tmp3_bitMask0 | 134217728; + tmp33_local28 = tmp39_input.decodeLongElement_994anb_k$(tmp0_desc, 28); + tmp3_bitMask0 = tmp3_bitMask0 | 268435456; + tmp34_local29 = tmp39_input.decodeLongElement_994anb_k$(tmp0_desc, 29); + tmp3_bitMask0 = tmp3_bitMask0 | 536870912; + tmp35_local30 = tmp39_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 30, $serializer_getInstance_636(), tmp35_local30); + tmp3_bitMask0 = tmp3_bitMask0 | 1073741824; + tmp36_local31 = tmp39_input.decodeStringElement_3oenpg_k$(tmp0_desc, 31); + tmp3_bitMask0 = tmp3_bitMask0 | -2147483648; + tmp37_local32 = tmp39_input.decodeIntElement_941u6a_k$(tmp0_desc, 32); + tmp4_bitMask1 = tmp4_bitMask1 | 1; + tmp38_local33 = tmp39_input.decodeStringElement_3oenpg_k$(tmp0_desc, 33); + tmp4_bitMask1 = tmp4_bitMask1 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp39_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp5_local0 = tmp39_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp6_local1 = tmp39_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp7_local2 = tmp39_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp8_local3 = tmp39_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp9_local4 = tmp39_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp10_local5 = tmp39_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp11_local6 = tmp39_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp12_local7 = tmp39_input.decodeLongElement_994anb_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp13_local8 = tmp39_input.decodeLongElement_994anb_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp14_local9 = tmp39_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp15_local10 = tmp39_input.decodeIntElement_941u6a_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp16_local11 = tmp39_input.decodeIntElement_941u6a_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + case 12: + tmp17_local12 = tmp39_input.decodeIntElement_941u6a_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + break; + case 13: + tmp18_local13 = tmp39_input.decodeStringElement_3oenpg_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + break; + case 14: + tmp19_local14 = tmp39_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 14, tmp40_cached[14], tmp19_local14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + break; + case 15: + tmp20_local15 = tmp39_input.decodeLongElement_994anb_k$(tmp0_desc, 15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + break; + case 16: + tmp21_local16 = tmp39_input.decodeLongElement_994anb_k$(tmp0_desc, 16); + tmp3_bitMask0 = tmp3_bitMask0 | 65536; + break; + case 17: + tmp22_local17 = tmp39_input.decodeLongElement_994anb_k$(tmp0_desc, 17); + tmp3_bitMask0 = tmp3_bitMask0 | 131072; + break; + case 18: + tmp23_local18 = tmp39_input.decodeStringElement_3oenpg_k$(tmp0_desc, 18); + tmp3_bitMask0 = tmp3_bitMask0 | 262144; + break; + case 19: + tmp24_local19 = tmp39_input.decodeLongElement_994anb_k$(tmp0_desc, 19); + tmp3_bitMask0 = tmp3_bitMask0 | 524288; + break; + case 20: + tmp25_local20 = tmp39_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 20, $serializer_getInstance_639(), tmp25_local20); + tmp3_bitMask0 = tmp3_bitMask0 | 1048576; + break; + case 21: + tmp26_local21 = tmp39_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 21, $serializer_getInstance_640(), tmp26_local21); + tmp3_bitMask0 = tmp3_bitMask0 | 2097152; + break; + case 22: + tmp27_local22 = tmp39_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 22, $serializer_getInstance_641(), tmp27_local22); + tmp3_bitMask0 = tmp3_bitMask0 | 4194304; + break; + case 23: + tmp28_local23 = tmp39_input.decodeStringElement_3oenpg_k$(tmp0_desc, 23); + tmp3_bitMask0 = tmp3_bitMask0 | 8388608; + break; + case 24: + tmp29_local24 = tmp39_input.decodeStringElement_3oenpg_k$(tmp0_desc, 24); + tmp3_bitMask0 = tmp3_bitMask0 | 16777216; + break; + case 25: + tmp30_local25 = tmp39_input.decodeLongElement_994anb_k$(tmp0_desc, 25); + tmp3_bitMask0 = tmp3_bitMask0 | 33554432; + break; + case 26: + tmp31_local26 = tmp39_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 26, $serializer_getInstance_638(), tmp31_local26); + tmp3_bitMask0 = tmp3_bitMask0 | 67108864; + break; + case 27: + tmp32_local27 = tmp39_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 27, tmp40_cached[27], tmp32_local27); + tmp3_bitMask0 = tmp3_bitMask0 | 134217728; + break; + case 28: + tmp33_local28 = tmp39_input.decodeLongElement_994anb_k$(tmp0_desc, 28); + tmp3_bitMask0 = tmp3_bitMask0 | 268435456; + break; + case 29: + tmp34_local29 = tmp39_input.decodeLongElement_994anb_k$(tmp0_desc, 29); + tmp3_bitMask0 = tmp3_bitMask0 | 536870912; + break; + case 30: + tmp35_local30 = tmp39_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 30, $serializer_getInstance_636(), tmp35_local30); + tmp3_bitMask0 = tmp3_bitMask0 | 1073741824; + break; + case 31: + tmp36_local31 = tmp39_input.decodeStringElement_3oenpg_k$(tmp0_desc, 31); + tmp3_bitMask0 = tmp3_bitMask0 | -2147483648; + break; + case 32: + tmp37_local32 = tmp39_input.decodeIntElement_941u6a_k$(tmp0_desc, 32); + tmp4_bitMask1 = tmp4_bitMask1 | 1; + break; + case 33: + tmp38_local33 = tmp39_input.decodeStringElement_3oenpg_k$(tmp0_desc, 33); + tmp4_bitMask1 = tmp4_bitMask1 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp39_input.endStructure_1xqz0n_k$(tmp0_desc); + return KArc_0.new_com_bapis_bilibili_app_archive_v1_KArc_bw9zlx_k$(tmp3_bitMask0, tmp4_bitMask1, tmp5_local0, tmp6_local1, tmp7_local2, tmp8_local3, tmp9_local4, tmp10_local5, tmp11_local6, tmp12_local7, tmp13_local8, tmp14_local9, tmp15_local10, tmp16_local11, tmp17_local12, tmp18_local13, tmp19_local14, tmp20_local15, tmp21_local16, tmp22_local17, tmp23_local18, tmp24_local19, tmp25_local20, tmp26_local21, tmp27_local22, tmp28_local23, tmp29_local24, tmp30_local25, tmp31_local26, tmp32_local27, tmp33_local28, tmp34_local29, tmp35_local30, tmp36_local31, tmp37_local32, tmp38_local33, null); + } + serialize_sq584m_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_648().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.aid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.aid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.videos.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.videos); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.typeId === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.typeId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.typeName === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.typeName); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.copyright === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 4, value.copyright); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.pic === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.pic); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !value.pubdate.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 7, value.pubdate); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !value.ctime.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 8, value.ctime); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.desc === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 9, value.desc); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.state === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 10, value.state); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.access === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 11, value.access); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !(value.attribute === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 12, value.attribute); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 13) ? true : !(value.tag === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 13, value.tag); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 14) ? true : !equals(value.tags, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 14, tmp2_cached[14], value.tags); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 15) ? true : !value.duration.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 15, value.duration); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 16) ? true : !value.missionId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 16, value.missionId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 17) ? true : !value.orderId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 17, value.orderId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 18) ? true : !(value.redirectUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 18, value.redirectUrl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 19) ? true : !value.forward.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 19, value.forward); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 20) ? true : !(value.rights == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 20, $serializer_getInstance_639(), value.rights); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 21) ? true : !(value.author == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 21, $serializer_getInstance_640(), value.author); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 22) ? true : !(value.stat == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 22, $serializer_getInstance_641(), value.stat); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 23) ? true : !(value.reportResult === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 23, value.reportResult); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 24) ? true : !(value.dynamic === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 24, value.dynamic); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 25) ? true : !value.firstCid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 25, value.firstCid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 26) ? true : !(value.dimension == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 26, $serializer_getInstance_638(), value.dimension); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 27) ? true : !equals(value.staffInfo, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 27, tmp2_cached[27], value.staffInfo); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 28) ? true : !value.seasonId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 28, value.seasonId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 29) ? true : !value.attributeV2.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 29, value.attributeV2); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 30) ? true : !(value.seasonTheme == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 30, $serializer_getInstance_636(), value.seasonTheme); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 31) ? true : !(value.shortLinkV2 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 31, value.shortLinkV2); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 32) ? true : !(value.upFromV2 === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 32, value.upFromV2); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 33) ? true : !(value.firstFrame === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 33, value.firstFrame); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_sq584m_k$(encoder, value instanceof KArc_0 ? value : THROW_CCE()); + } + } + class KArc_0 { + constructor(aid, videos, typeId, typeName, copyright, pic, title, pubdate, ctime, desc, state, access, attribute, tag, tags, duration, missionId, orderId, redirectUrl, forward, rights, author, stat, reportResult, dynamic, firstCid, dimension, staffInfo, seasonId, attributeV2, seasonTheme, shortLinkV2, upFromV2, firstFrame) { + Companion_getInstance_648(); + aid = aid === VOID ? new Long(0, 0) : aid; + videos = videos === VOID ? new Long(0, 0) : videos; + typeId = typeId === VOID ? 0 : typeId; + typeName = typeName === VOID ? '' : typeName; + copyright = copyright === VOID ? 0 : copyright; + pic = pic === VOID ? '' : pic; + title = title === VOID ? '' : title; + pubdate = pubdate === VOID ? new Long(0, 0) : pubdate; + ctime = ctime === VOID ? new Long(0, 0) : ctime; + desc = desc === VOID ? '' : desc; + state = state === VOID ? 0 : state; + access = access === VOID ? 0 : access; + attribute = attribute === VOID ? 0 : attribute; + tag = tag === VOID ? '' : tag; + tags = tags === VOID ? emptyList() : tags; + duration = duration === VOID ? new Long(0, 0) : duration; + missionId = missionId === VOID ? new Long(0, 0) : missionId; + orderId = orderId === VOID ? new Long(0, 0) : orderId; + redirectUrl = redirectUrl === VOID ? '' : redirectUrl; + forward = forward === VOID ? new Long(0, 0) : forward; + rights = rights === VOID ? null : rights; + author = author === VOID ? null : author; + stat = stat === VOID ? null : stat; + reportResult = reportResult === VOID ? '' : reportResult; + dynamic = dynamic === VOID ? '' : dynamic; + firstCid = firstCid === VOID ? new Long(0, 0) : firstCid; + dimension = dimension === VOID ? null : dimension; + staffInfo = staffInfo === VOID ? emptyList() : staffInfo; + seasonId = seasonId === VOID ? new Long(0, 0) : seasonId; + attributeV2 = attributeV2 === VOID ? new Long(0, 0) : attributeV2; + seasonTheme = seasonTheme === VOID ? null : seasonTheme; + shortLinkV2 = shortLinkV2 === VOID ? '' : shortLinkV2; + upFromV2 = upFromV2 === VOID ? 0 : upFromV2; + firstFrame = firstFrame === VOID ? '' : firstFrame; + this.aid = aid; + this.videos = videos; + this.typeId = typeId; + this.typeName = typeName; + this.copyright = copyright; + this.pic = pic; + this.title = title; + this.pubdate = pubdate; + this.ctime = ctime; + this.desc = desc; + this.state = state; + this.access = access; + this.attribute = attribute; + this.tag = tag; + this.tags = tags; + this.duration = duration; + this.missionId = missionId; + this.orderId = orderId; + this.redirectUrl = redirectUrl; + this.forward = forward; + this.rights = rights; + this.author = author; + this.stat = stat; + this.reportResult = reportResult; + this.dynamic = dynamic; + this.firstCid = firstCid; + this.dimension = dimension; + this.staffInfo = staffInfo; + this.seasonId = seasonId; + this.attributeV2 = attributeV2; + this.seasonTheme = seasonTheme; + this.shortLinkV2 = shortLinkV2; + this.upFromV2 = upFromV2; + this.firstFrame = firstFrame; + } + get_aid_18j9kd_k$() { + return this.aid; + } + get_videos_kwjwpt_k$() { + return this.videos; + } + get_typeId_k7h0ce_k$() { + return this.typeId; + } + get_typeName_s1eeum_k$() { + return this.typeName; + } + get_copyright_xp7me6_k$() { + return this.copyright; + } + get_pic_18iyfz_k$() { + return this.pic; + } + get_title_iz32un_k$() { + return this.title; + } + get_pubdate_2mq0n2_k$() { + return this.pubdate; + } + get_ctime_ipxdhj_k$() { + return this.ctime; + } + get_desc_woknve_k$() { + return this.desc; + } + get_state_iypx7s_k$() { + return this.state; + } + get_access_avafzh_k$() { + return this.access; + } + get_attribute_8qb9wz_k$() { + return this.attribute; + } + get_tag_18ivnz_k$() { + return this.tag; + } + get_tags_wousf6_k$() { + return this.tags; + } + get_duration_6a6kpp_k$() { + return this.duration; + } + get_missionId_t33tb2_k$() { + return this.missionId; + } + get_orderId_ip4mao_k$() { + return this.orderId; + } + get_redirectUrl_ojtmra_k$() { + return this.redirectUrl; + } + get_forward_9xln38_k$() { + return this.forward; + } + get_rights_j0feg0_k$() { + return this.rights; + } + get_author_b5hnkk_k$() { + return this.author; + } + get_stat_woujdp_k$() { + return this.stat; + } + get_reportResult_dtj9oa_k$() { + return this.reportResult; + } + get_dynamic_ymiyzu_k$() { + return this.dynamic; + } + get_firstCid_u4rqgn_k$() { + return this.firstCid; + } + get_dimension_9lf48z_k$() { + return this.dimension; + } + get_staffInfo_wlmvi3_k$() { + return this.staffInfo; + } + get_seasonId_h33f15_k$() { + return this.seasonId; + } + get_attributeV2_8rpa6n_k$() { + return this.attributeV2; + } + get_seasonTheme_hsgcj_k$() { + return this.seasonTheme; + } + get_shortLinkV2_q8t2yx_k$() { + return this.shortLinkV2; + } + get_upFromV2_nvl43a_k$() { + return this.upFromV2; + } + get_firstFrame_n7rumy_k$() { + return this.firstFrame; + } + component1_7eebsc_k$() { + return this.aid; + } + component2_7eebsb_k$() { + return this.videos; + } + component3_7eebsa_k$() { + return this.typeId; + } + component4_7eebs9_k$() { + return this.typeName; + } + component5_7eebs8_k$() { + return this.copyright; + } + component6_7eebs7_k$() { + return this.pic; + } + component7_7eebs6_k$() { + return this.title; + } + component8_7eebs5_k$() { + return this.pubdate; + } + component9_7eebs4_k$() { + return this.ctime; + } + component10_gazzfo_k$() { + return this.desc; + } + component11_gazzfn_k$() { + return this.state; + } + component12_gazzfm_k$() { + return this.access; + } + component13_gazzfl_k$() { + return this.attribute; + } + component14_gazzfk_k$() { + return this.tag; + } + component15_gazzfj_k$() { + return this.tags; + } + component16_gazzfi_k$() { + return this.duration; + } + component17_gazzfh_k$() { + return this.missionId; + } + component18_gazzfg_k$() { + return this.orderId; + } + component19_gazzff_k$() { + return this.redirectUrl; + } + component20_gazzet_k$() { + return this.forward; + } + component21_gazzes_k$() { + return this.rights; + } + component22_gazzer_k$() { + return this.author; + } + component23_gazzeq_k$() { + return this.stat; + } + component24_gazzep_k$() { + return this.reportResult; + } + component25_gazzeo_k$() { + return this.dynamic; + } + component26_gazzen_k$() { + return this.firstCid; + } + component27_gazzem_k$() { + return this.dimension; + } + component28_gazzel_k$() { + return this.staffInfo; + } + component29_gazzek_k$() { + return this.seasonId; + } + component30_gazzdy_k$() { + return this.attributeV2; + } + component31_gazzdx_k$() { + return this.seasonTheme; + } + component32_gazzdw_k$() { + return this.shortLinkV2; + } + component33_gazzdv_k$() { + return this.upFromV2; + } + component34_gazzdu_k$() { + return this.firstFrame; + } + copy_jxutlq_k$(aid, videos, typeId, typeName, copyright, pic, title, pubdate, ctime, desc, state, access, attribute, tag, tags, duration, missionId, orderId, redirectUrl, forward, rights, author, stat, reportResult, dynamic, firstCid, dimension, staffInfo, seasonId, attributeV2, seasonTheme, shortLinkV2, upFromV2, firstFrame) { + return new KArc_0(aid, videos, typeId, typeName, copyright, pic, title, pubdate, ctime, desc, state, access, attribute, tag, tags, duration, missionId, orderId, redirectUrl, forward, rights, author, stat, reportResult, dynamic, firstCid, dimension, staffInfo, seasonId, attributeV2, seasonTheme, shortLinkV2, upFromV2, firstFrame); + } + copy(aid, videos, typeId, typeName, copyright, pic, title, pubdate, ctime, desc, state, access, attribute, tag, tags, duration, missionId, orderId, redirectUrl, forward, rights, author, stat, reportResult, dynamic, firstCid, dimension, staffInfo, seasonId, attributeV2, seasonTheme, shortLinkV2, upFromV2, firstFrame, $super) { + aid = aid === VOID ? this.aid : aid; + videos = videos === VOID ? this.videos : videos; + typeId = typeId === VOID ? this.typeId : typeId; + typeName = typeName === VOID ? this.typeName : typeName; + copyright = copyright === VOID ? this.copyright : copyright; + pic = pic === VOID ? this.pic : pic; + title = title === VOID ? this.title : title; + pubdate = pubdate === VOID ? this.pubdate : pubdate; + ctime = ctime === VOID ? this.ctime : ctime; + desc = desc === VOID ? this.desc : desc; + state = state === VOID ? this.state : state; + access = access === VOID ? this.access : access; + attribute = attribute === VOID ? this.attribute : attribute; + tag = tag === VOID ? this.tag : tag; + tags = tags === VOID ? this.tags : tags; + duration = duration === VOID ? this.duration : duration; + missionId = missionId === VOID ? this.missionId : missionId; + orderId = orderId === VOID ? this.orderId : orderId; + redirectUrl = redirectUrl === VOID ? this.redirectUrl : redirectUrl; + forward = forward === VOID ? this.forward : forward; + rights = rights === VOID ? this.rights : rights; + author = author === VOID ? this.author : author; + stat = stat === VOID ? this.stat : stat; + reportResult = reportResult === VOID ? this.reportResult : reportResult; + dynamic = dynamic === VOID ? this.dynamic : dynamic; + firstCid = firstCid === VOID ? this.firstCid : firstCid; + dimension = dimension === VOID ? this.dimension : dimension; + staffInfo = staffInfo === VOID ? this.staffInfo : staffInfo; + seasonId = seasonId === VOID ? this.seasonId : seasonId; + attributeV2 = attributeV2 === VOID ? this.attributeV2 : attributeV2; + seasonTheme = seasonTheme === VOID ? this.seasonTheme : seasonTheme; + shortLinkV2 = shortLinkV2 === VOID ? this.shortLinkV2 : shortLinkV2; + upFromV2 = upFromV2 === VOID ? this.upFromV2 : upFromV2; + firstFrame = firstFrame === VOID ? this.firstFrame : firstFrame; + return this.copy_jxutlq_k$(aid, videos, typeId, typeName, copyright, pic, title, pubdate, ctime, desc, state, access, attribute, tag, tags, duration, missionId, orderId, redirectUrl, forward, rights, author, stat, reportResult, dynamic, firstCid, dimension, staffInfo, seasonId, attributeV2, seasonTheme, shortLinkV2, upFromV2, firstFrame); + } + toString() { + return 'KArc(aid=' + this.aid.toString() + ', videos=' + this.videos.toString() + ', typeId=' + this.typeId + ', typeName=' + this.typeName + ', copyright=' + this.copyright + ', pic=' + this.pic + ', title=' + this.title + ', pubdate=' + this.pubdate.toString() + ', ctime=' + this.ctime.toString() + ', desc=' + this.desc + ', state=' + this.state + ', access=' + this.access + ', attribute=' + this.attribute + ', tag=' + this.tag + ', tags=' + this.tags + ', duration=' + this.duration.toString() + ', missionId=' + this.missionId.toString() + ', orderId=' + this.orderId.toString() + ', redirectUrl=' + this.redirectUrl + ', forward=' + this.forward.toString() + ', rights=' + this.rights + ', author=' + this.author + ', stat=' + this.stat + ', reportResult=' + this.reportResult + ', dynamic=' + this.dynamic + ', firstCid=' + this.firstCid.toString() + ', dimension=' + this.dimension + ', staffInfo=' + this.staffInfo + ', seasonId=' + this.seasonId.toString() + ', attributeV2=' + this.attributeV2.toString() + ', seasonTheme=' + this.seasonTheme + ', shortLinkV2=' + this.shortLinkV2 + ', upFromV2=' + this.upFromV2 + ', firstFrame=' + this.firstFrame + ')'; + } + hashCode() { + var result = this.aid.hashCode(); + result = imul(result, 31) + this.videos.hashCode() | 0; + result = imul(result, 31) + this.typeId | 0; + result = imul(result, 31) + getStringHashCode(this.typeName) | 0; + result = imul(result, 31) + this.copyright | 0; + result = imul(result, 31) + getStringHashCode(this.pic) | 0; + result = imul(result, 31) + getStringHashCode(this.title) | 0; + result = imul(result, 31) + this.pubdate.hashCode() | 0; + result = imul(result, 31) + this.ctime.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.desc) | 0; + result = imul(result, 31) + this.state | 0; + result = imul(result, 31) + this.access | 0; + result = imul(result, 31) + this.attribute | 0; + result = imul(result, 31) + getStringHashCode(this.tag) | 0; + result = imul(result, 31) + hashCode(this.tags) | 0; + result = imul(result, 31) + this.duration.hashCode() | 0; + result = imul(result, 31) + this.missionId.hashCode() | 0; + result = imul(result, 31) + this.orderId.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.redirectUrl) | 0; + result = imul(result, 31) + this.forward.hashCode() | 0; + result = imul(result, 31) + (this.rights == null ? 0 : this.rights.hashCode()) | 0; + result = imul(result, 31) + (this.author == null ? 0 : this.author.hashCode()) | 0; + result = imul(result, 31) + (this.stat == null ? 0 : this.stat.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.reportResult) | 0; + result = imul(result, 31) + getStringHashCode(this.dynamic) | 0; + result = imul(result, 31) + this.firstCid.hashCode() | 0; + result = imul(result, 31) + (this.dimension == null ? 0 : this.dimension.hashCode()) | 0; + result = imul(result, 31) + hashCode(this.staffInfo) | 0; + result = imul(result, 31) + this.seasonId.hashCode() | 0; + result = imul(result, 31) + this.attributeV2.hashCode() | 0; + result = imul(result, 31) + (this.seasonTheme == null ? 0 : this.seasonTheme.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.shortLinkV2) | 0; + result = imul(result, 31) + this.upFromV2 | 0; + result = imul(result, 31) + getStringHashCode(this.firstFrame) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KArc_0)) + return false; + var tmp0_other_with_cast = other instanceof KArc_0 ? other : THROW_CCE(); + if (!this.aid.equals(tmp0_other_with_cast.aid)) + return false; + if (!this.videos.equals(tmp0_other_with_cast.videos)) + return false; + if (!(this.typeId === tmp0_other_with_cast.typeId)) + return false; + if (!(this.typeName === tmp0_other_with_cast.typeName)) + return false; + if (!(this.copyright === tmp0_other_with_cast.copyright)) + return false; + if (!(this.pic === tmp0_other_with_cast.pic)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!this.pubdate.equals(tmp0_other_with_cast.pubdate)) + return false; + if (!this.ctime.equals(tmp0_other_with_cast.ctime)) + return false; + if (!(this.desc === tmp0_other_with_cast.desc)) + return false; + if (!(this.state === tmp0_other_with_cast.state)) + return false; + if (!(this.access === tmp0_other_with_cast.access)) + return false; + if (!(this.attribute === tmp0_other_with_cast.attribute)) + return false; + if (!(this.tag === tmp0_other_with_cast.tag)) + return false; + if (!equals(this.tags, tmp0_other_with_cast.tags)) + return false; + if (!this.duration.equals(tmp0_other_with_cast.duration)) + return false; + if (!this.missionId.equals(tmp0_other_with_cast.missionId)) + return false; + if (!this.orderId.equals(tmp0_other_with_cast.orderId)) + return false; + if (!(this.redirectUrl === tmp0_other_with_cast.redirectUrl)) + return false; + if (!this.forward.equals(tmp0_other_with_cast.forward)) + return false; + if (!equals(this.rights, tmp0_other_with_cast.rights)) + return false; + if (!equals(this.author, tmp0_other_with_cast.author)) + return false; + if (!equals(this.stat, tmp0_other_with_cast.stat)) + return false; + if (!(this.reportResult === tmp0_other_with_cast.reportResult)) + return false; + if (!(this.dynamic === tmp0_other_with_cast.dynamic)) + return false; + if (!this.firstCid.equals(tmp0_other_with_cast.firstCid)) + return false; + if (!equals(this.dimension, tmp0_other_with_cast.dimension)) + return false; + if (!equals(this.staffInfo, tmp0_other_with_cast.staffInfo)) + return false; + if (!this.seasonId.equals(tmp0_other_with_cast.seasonId)) + return false; + if (!this.attributeV2.equals(tmp0_other_with_cast.attributeV2)) + return false; + if (!equals(this.seasonTheme, tmp0_other_with_cast.seasonTheme)) + return false; + if (!(this.shortLinkV2 === tmp0_other_with_cast.shortLinkV2)) + return false; + if (!(this.upFromV2 === tmp0_other_with_cast.upFromV2)) + return false; + if (!(this.firstFrame === tmp0_other_with_cast.firstFrame)) + return false; + return true; + } + static new_com_bapis_bilibili_app_archive_v1_KArc_bw9zlx_k$(seen1, seen2, aid, videos, typeId, typeName, copyright, pic, title, pubdate, ctime, desc, state, access, attribute, tag, tags, duration, missionId, orderId, redirectUrl, forward, rights, author, stat, reportResult, dynamic, firstCid, dimension, staffInfo, seasonId, attributeV2, seasonTheme, shortLinkV2, upFromV2, firstFrame, serializationConstructorMarker) { + Companion_getInstance_648(); + if (!!(!(0 === (0 & seen1)) | !(0 === (0 & seen2)))) { + var tmp$ret$0; + // Inline function 'kotlin.intArrayOf' call + var elements = new Int32Array([seen1, seen2]); + tmp$ret$0 = elements; + var tmp = tmp$ret$0; + var tmp$ret$1; + // Inline function 'kotlin.intArrayOf' call + var elements_0 = new Int32Array([0, 0]); + tmp$ret$1 = elements_0; + throwArrayMissingFieldException(tmp, tmp$ret$1, $serializer_getInstance_635().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.aid = new Long(0, 0); + else + $this.aid = aid; + if (0 === (seen1 & 2)) + $this.videos = new Long(0, 0); + else + $this.videos = videos; + if (0 === (seen1 & 4)) + $this.typeId = 0; + else + $this.typeId = typeId; + if (0 === (seen1 & 8)) + $this.typeName = ''; + else + $this.typeName = typeName; + if (0 === (seen1 & 16)) + $this.copyright = 0; + else + $this.copyright = copyright; + if (0 === (seen1 & 32)) + $this.pic = ''; + else + $this.pic = pic; + if (0 === (seen1 & 64)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 128)) + $this.pubdate = new Long(0, 0); + else + $this.pubdate = pubdate; + if (0 === (seen1 & 256)) + $this.ctime = new Long(0, 0); + else + $this.ctime = ctime; + if (0 === (seen1 & 512)) + $this.desc = ''; + else + $this.desc = desc; + if (0 === (seen1 & 1024)) + $this.state = 0; + else + $this.state = state; + if (0 === (seen1 & 2048)) + $this.access = 0; + else + $this.access = access; + if (0 === (seen1 & 4096)) + $this.attribute = 0; + else + $this.attribute = attribute; + if (0 === (seen1 & 8192)) + $this.tag = ''; + else + $this.tag = tag; + if (0 === (seen1 & 16384)) + $this.tags = emptyList(); + else + $this.tags = tags; + if (0 === (seen1 & 32768)) + $this.duration = new Long(0, 0); + else + $this.duration = duration; + if (0 === (seen1 & 65536)) + $this.missionId = new Long(0, 0); + else + $this.missionId = missionId; + if (0 === (seen1 & 131072)) + $this.orderId = new Long(0, 0); + else + $this.orderId = orderId; + if (0 === (seen1 & 262144)) + $this.redirectUrl = ''; + else + $this.redirectUrl = redirectUrl; + if (0 === (seen1 & 524288)) + $this.forward = new Long(0, 0); + else + $this.forward = forward; + if (0 === (seen1 & 1048576)) + $this.rights = null; + else + $this.rights = rights; + if (0 === (seen1 & 2097152)) + $this.author = null; + else + $this.author = author; + if (0 === (seen1 & 4194304)) + $this.stat = null; + else + $this.stat = stat; + if (0 === (seen1 & 8388608)) + $this.reportResult = ''; + else + $this.reportResult = reportResult; + if (0 === (seen1 & 16777216)) + $this.dynamic = ''; + else + $this.dynamic = dynamic; + if (0 === (seen1 & 33554432)) + $this.firstCid = new Long(0, 0); + else + $this.firstCid = firstCid; + if (0 === (seen1 & 67108864)) + $this.dimension = null; + else + $this.dimension = dimension; + if (0 === (seen1 & 134217728)) + $this.staffInfo = emptyList(); + else + $this.staffInfo = staffInfo; + if (0 === (seen1 & 268435456)) + $this.seasonId = new Long(0, 0); + else + $this.seasonId = seasonId; + if (0 === (seen1 & 536870912)) + $this.attributeV2 = new Long(0, 0); + else + $this.attributeV2 = attributeV2; + if (0 === (seen1 & 1073741824)) + $this.seasonTheme = null; + else + $this.seasonTheme = seasonTheme; + if (0 === (seen1 & -2147483648)) + $this.shortLinkV2 = ''; + else + $this.shortLinkV2 = shortLinkV2; + if (0 === (seen2 & 1)) + $this.upFromV2 = 0; + else + $this.upFromV2 = upFromV2; + if (0 === (seen2 & 2)) + $this.firstFrame = ''; + else + $this.firstFrame = firstFrame; + return $this; + } + } + class Companion_649 { + constructor() { + this.targetPath = '/archive.service.v1.SeasonTheme'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_636(); + } + } + class $serializer_636 { + constructor() { + $serializer_instance_636 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.archive.v1.KSeasonTheme', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('bgColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('selectedBgColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('textColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSeasonTheme.new_com_bapis_bilibili_app_archive_v1_KSeasonTheme_qx337d_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_nufhxu_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.bgColor === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.bgColor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.selectedBgColor === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.selectedBgColor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.textColor === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.textColor); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_nufhxu_k$(encoder, value instanceof KSeasonTheme ? value : THROW_CCE()); + } + } + class KSeasonTheme { + constructor(bgColor, selectedBgColor, textColor) { + Companion_instance_649; + bgColor = bgColor === VOID ? '' : bgColor; + selectedBgColor = selectedBgColor === VOID ? '' : selectedBgColor; + textColor = textColor === VOID ? '' : textColor; + this.bgColor = bgColor; + this.selectedBgColor = selectedBgColor; + this.textColor = textColor; + } + get_bgColor_24ewuj_k$() { + return this.bgColor; + } + get_selectedBgColor_r06s62_k$() { + return this.selectedBgColor; + } + get_textColor_92p84z_k$() { + return this.textColor; + } + component1_7eebsc_k$() { + return this.bgColor; + } + component2_7eebsb_k$() { + return this.selectedBgColor; + } + component3_7eebsa_k$() { + return this.textColor; + } + copy_nc7k0r_k$(bgColor, selectedBgColor, textColor) { + return new KSeasonTheme(bgColor, selectedBgColor, textColor); + } + copy(bgColor, selectedBgColor, textColor, $super) { + bgColor = bgColor === VOID ? this.bgColor : bgColor; + selectedBgColor = selectedBgColor === VOID ? this.selectedBgColor : selectedBgColor; + textColor = textColor === VOID ? this.textColor : textColor; + return this.copy_nc7k0r_k$(bgColor, selectedBgColor, textColor); + } + toString() { + return 'KSeasonTheme(bgColor=' + this.bgColor + ', selectedBgColor=' + this.selectedBgColor + ', textColor=' + this.textColor + ')'; + } + hashCode() { + var result = getStringHashCode(this.bgColor); + result = imul(result, 31) + getStringHashCode(this.selectedBgColor) | 0; + result = imul(result, 31) + getStringHashCode(this.textColor) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSeasonTheme)) + return false; + var tmp0_other_with_cast = other instanceof KSeasonTheme ? other : THROW_CCE(); + if (!(this.bgColor === tmp0_other_with_cast.bgColor)) + return false; + if (!(this.selectedBgColor === tmp0_other_with_cast.selectedBgColor)) + return false; + if (!(this.textColor === tmp0_other_with_cast.textColor)) + return false; + return true; + } + static new_com_bapis_bilibili_app_archive_v1_KSeasonTheme_qx337d_k$(seen1, bgColor, selectedBgColor, textColor, serializationConstructorMarker) { + Companion_instance_649; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_636().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.bgColor = ''; + else + $this.bgColor = bgColor; + if (0 === (seen1 & 2)) + $this.selectedBgColor = ''; + else + $this.selectedBgColor = selectedBgColor; + if (0 === (seen1 & 4)) + $this.textColor = ''; + else + $this.textColor = textColor; + return $this; + } + } + class Companion_650 { + constructor() { + this.targetPath = '/archive.service.v1.StaffInfo'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_637(); + } + } + class $serializer_637 { + constructor() { + $serializer_instance_637 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.archive.v1.KStaffInfo', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('mid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('attribute', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_local2 = new Long(0, 0); + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KStaffInfo.new_com_bapis_bilibili_app_archive_v1_KStaffInfo_9dj4u3_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_tnur7a_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.mid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.mid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.attribute.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.attribute); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_tnur7a_k$(encoder, value instanceof KStaffInfo ? value : THROW_CCE()); + } + } + class KStaffInfo { + constructor(mid, title, attribute) { + Companion_instance_650; + mid = mid === VOID ? new Long(0, 0) : mid; + title = title === VOID ? '' : title; + attribute = attribute === VOID ? new Long(0, 0) : attribute; + this.mid = mid; + this.title = title; + this.attribute = attribute; + } + get_mid_18j0o1_k$() { + return this.mid; + } + get_title_iz32un_k$() { + return this.title; + } + get_attribute_8qb9wz_k$() { + return this.attribute; + } + component1_7eebsc_k$() { + return this.mid; + } + component2_7eebsb_k$() { + return this.title; + } + component3_7eebsa_k$() { + return this.attribute; + } + copy_pz1b51_k$(mid, title, attribute) { + return new KStaffInfo(mid, title, attribute); + } + copy(mid, title, attribute, $super) { + mid = mid === VOID ? this.mid : mid; + title = title === VOID ? this.title : title; + attribute = attribute === VOID ? this.attribute : attribute; + return this.copy_pz1b51_k$(mid, title, attribute); + } + toString() { + return 'KStaffInfo(mid=' + this.mid.toString() + ', title=' + this.title + ', attribute=' + this.attribute.toString() + ')'; + } + hashCode() { + var result = this.mid.hashCode(); + result = imul(result, 31) + getStringHashCode(this.title) | 0; + result = imul(result, 31) + this.attribute.hashCode() | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KStaffInfo)) + return false; + var tmp0_other_with_cast = other instanceof KStaffInfo ? other : THROW_CCE(); + if (!this.mid.equals(tmp0_other_with_cast.mid)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!this.attribute.equals(tmp0_other_with_cast.attribute)) + return false; + return true; + } + static new_com_bapis_bilibili_app_archive_v1_KStaffInfo_9dj4u3_k$(seen1, mid, title, attribute, serializationConstructorMarker) { + Companion_instance_650; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_637().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.mid = new Long(0, 0); + else + $this.mid = mid; + if (0 === (seen1 & 2)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 4)) + $this.attribute = new Long(0, 0); + else + $this.attribute = attribute; + return $this; + } + } + class Companion_651 { + constructor() { + this.targetPath = '/archive.service.v1.Dimension'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_638(); + } + } + class $serializer_638 { + constructor() { + $serializer_instance_638 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.archive.v1.KDimension', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('width', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('height', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('rotate', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = new Long(0, 0); + var tmp6_local2 = new Long(0, 0); + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KDimension_1.new_com_bapis_bilibili_app_archive_v1_KDimension_heurjs_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_6dbxta_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.width.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.width); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.height.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.height); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.rotate.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.rotate); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_6dbxta_k$(encoder, value instanceof KDimension_1 ? value : THROW_CCE()); + } + } + class KDimension_1 { + constructor(width, height, rotate) { + Companion_instance_651; + width = width === VOID ? new Long(0, 0) : width; + height = height === VOID ? new Long(0, 0) : height; + rotate = rotate === VOID ? new Long(0, 0) : rotate; + this.width = width; + this.height = height; + this.rotate = rotate; + } + get_width_j0q4yl_k$() { + return this.width; + } + get_height_e7t92o_k$() { + return this.height; + } + get_rotate_j3ybms_k$() { + return this.rotate; + } + component1_7eebsc_k$() { + return this.width; + } + component2_7eebsb_k$() { + return this.height; + } + component3_7eebsa_k$() { + return this.rotate; + } + copy_kj2gr5_k$(width, height, rotate) { + return new KDimension_1(width, height, rotate); + } + copy(width, height, rotate, $super) { + width = width === VOID ? this.width : width; + height = height === VOID ? this.height : height; + rotate = rotate === VOID ? this.rotate : rotate; + return this.copy_kj2gr5_k$(width, height, rotate); + } + toString() { + return 'KDimension(width=' + this.width.toString() + ', height=' + this.height.toString() + ', rotate=' + this.rotate.toString() + ')'; + } + hashCode() { + var result = this.width.hashCode(); + result = imul(result, 31) + this.height.hashCode() | 0; + result = imul(result, 31) + this.rotate.hashCode() | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KDimension_1)) + return false; + var tmp0_other_with_cast = other instanceof KDimension_1 ? other : THROW_CCE(); + if (!this.width.equals(tmp0_other_with_cast.width)) + return false; + if (!this.height.equals(tmp0_other_with_cast.height)) + return false; + if (!this.rotate.equals(tmp0_other_with_cast.rotate)) + return false; + return true; + } + static new_com_bapis_bilibili_app_archive_v1_KDimension_heurjs_k$(seen1, width, height, rotate, serializationConstructorMarker) { + Companion_instance_651; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_638().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.width = new Long(0, 0); + else + $this.width = width; + if (0 === (seen1 & 2)) + $this.height = new Long(0, 0); + else + $this.height = height; + if (0 === (seen1 & 4)) + $this.rotate = new Long(0, 0); + else + $this.rotate = rotate; + return $this; + } + } + class Companion_652 { + constructor() { + this.targetPath = '/archive.service.v1.Rights'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_639(); + } + } + class $serializer_639 { + constructor() { + $serializer_instance_639 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.archive.v1.KRights', this, 14); + tmp0_serialDesc.addElement_5pzumi_k$('bp', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('elec', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('download', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('movie', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('pay', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('hd5', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('noReprint', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('autoplay', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('ugcPay', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('isCooperation', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('ugcPayPreview', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('noBackground', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + tmp0_serialDesc.addElement_5pzumi_k$('arcPay', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(13)); + tmp0_serialDesc.addElement_5pzumi_k$('payFreeWatch', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(14)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = 0; + var tmp6_local2 = 0; + var tmp7_local3 = 0; + var tmp8_local4 = 0; + var tmp9_local5 = 0; + var tmp10_local6 = 0; + var tmp11_local7 = 0; + var tmp12_local8 = 0; + var tmp13_local9 = 0; + var tmp14_local10 = 0; + var tmp15_local11 = 0; + var tmp16_local12 = 0; + var tmp17_local13 = 0; + var tmp18_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp18_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp18_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp18_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp18_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp18_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp18_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp18_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp18_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp18_input.decodeIntElement_941u6a_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp18_input.decodeIntElement_941u6a_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp18_input.decodeIntElement_941u6a_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp18_input.decodeIntElement_941u6a_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp18_input.decodeIntElement_941u6a_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + tmp16_local12 = tmp18_input.decodeIntElement_941u6a_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + tmp17_local13 = tmp18_input.decodeIntElement_941u6a_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + } else + while (tmp1_flag) { + tmp2_index = tmp18_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp18_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp18_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp18_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp18_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp18_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp18_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp18_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp18_input.decodeIntElement_941u6a_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp18_input.decodeIntElement_941u6a_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp18_input.decodeIntElement_941u6a_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp18_input.decodeIntElement_941u6a_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp18_input.decodeIntElement_941u6a_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + case 12: + tmp16_local12 = tmp18_input.decodeIntElement_941u6a_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + break; + case 13: + tmp17_local13 = tmp18_input.decodeIntElement_941u6a_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp18_input.endStructure_1xqz0n_k$(tmp0_desc); + return KRights_1.new_com_bapis_bilibili_app_archive_v1_KRights_fp5far_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, null); + } + serialize_id3x3_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.bp === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.bp); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.elec === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.elec); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.download === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.download); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.movie === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 3, value.movie); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.pay === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 4, value.pay); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.hd5 === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 5, value.hd5); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.noReprint === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 6, value.noReprint); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.autoplay === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 7, value.autoplay); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.ugcPay === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 8, value.ugcPay); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.isCooperation === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 9, value.isCooperation); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.ugcPayPreview === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 10, value.ugcPayPreview); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.noBackground === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 11, value.noBackground); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !(value.arcPay === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 12, value.arcPay); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 13) ? true : !(value.payFreeWatch === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 13, value.payFreeWatch); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_id3x3_k$(encoder, value instanceof KRights_1 ? value : THROW_CCE()); + } + } + class KRights_1 { + constructor(bp, elec, download, movie, pay, hd5, noReprint, autoplay, ugcPay, isCooperation, ugcPayPreview, noBackground, arcPay, payFreeWatch) { + Companion_instance_652; + bp = bp === VOID ? 0 : bp; + elec = elec === VOID ? 0 : elec; + download = download === VOID ? 0 : download; + movie = movie === VOID ? 0 : movie; + pay = pay === VOID ? 0 : pay; + hd5 = hd5 === VOID ? 0 : hd5; + noReprint = noReprint === VOID ? 0 : noReprint; + autoplay = autoplay === VOID ? 0 : autoplay; + ugcPay = ugcPay === VOID ? 0 : ugcPay; + isCooperation = isCooperation === VOID ? 0 : isCooperation; + ugcPayPreview = ugcPayPreview === VOID ? 0 : ugcPayPreview; + noBackground = noBackground === VOID ? 0 : noBackground; + arcPay = arcPay === VOID ? 0 : arcPay; + payFreeWatch = payFreeWatch === VOID ? 0 : payFreeWatch; + this.bp = bp; + this.elec = elec; + this.download = download; + this.movie = movie; + this.pay = pay; + this.hd5 = hd5; + this.noReprint = noReprint; + this.autoplay = autoplay; + this.ugcPay = ugcPay; + this.isCooperation = isCooperation; + this.ugcPayPreview = ugcPayPreview; + this.noBackground = noBackground; + this.arcPay = arcPay; + this.payFreeWatch = payFreeWatch; + } + get_bp_knto2x_k$() { + return this.bp; + } + get_elec_wolfpq_k$() { + return this.elec; + } + get_download_86umr3_k$() { + return this.download; + } + get_movie_ivce13_k$() { + return this.movie; + } + get_pay_18iym9_k$() { + return this.pay; + } + get_hd5_18j4j4_k$() { + return this.hd5; + } + get_noReprint_ymmtsg_k$() { + return this.noReprint; + } + get_autoplay_7zuxg4_k$() { + return this.autoplay; + } + get_ugcPay_kedm8w_k$() { + return this.ugcPay; + } + get_isCooperation_wh0iew_k$() { + return this.isCooperation; + } + get_ugcPayPreview_skz0ag_k$() { + return this.ugcPayPreview; + } + get_noBackground_5wlmag_k$() { + return this.noBackground; + } + get_arcPay_b3iwvz_k$() { + return this.arcPay; + } + get_payFreeWatch_n5294s_k$() { + return this.payFreeWatch; + } + component1_7eebsc_k$() { + return this.bp; + } + component2_7eebsb_k$() { + return this.elec; + } + component3_7eebsa_k$() { + return this.download; + } + component4_7eebs9_k$() { + return this.movie; + } + component5_7eebs8_k$() { + return this.pay; + } + component6_7eebs7_k$() { + return this.hd5; + } + component7_7eebs6_k$() { + return this.noReprint; + } + component8_7eebs5_k$() { + return this.autoplay; + } + component9_7eebs4_k$() { + return this.ugcPay; + } + component10_gazzfo_k$() { + return this.isCooperation; + } + component11_gazzfn_k$() { + return this.ugcPayPreview; + } + component12_gazzfm_k$() { + return this.noBackground; + } + component13_gazzfl_k$() { + return this.arcPay; + } + component14_gazzfk_k$() { + return this.payFreeWatch; + } + copy_1eghjf_k$(bp, elec, download, movie, pay, hd5, noReprint, autoplay, ugcPay, isCooperation, ugcPayPreview, noBackground, arcPay, payFreeWatch) { + return new KRights_1(bp, elec, download, movie, pay, hd5, noReprint, autoplay, ugcPay, isCooperation, ugcPayPreview, noBackground, arcPay, payFreeWatch); + } + copy(bp, elec, download, movie, pay, hd5, noReprint, autoplay, ugcPay, isCooperation, ugcPayPreview, noBackground, arcPay, payFreeWatch, $super) { + bp = bp === VOID ? this.bp : bp; + elec = elec === VOID ? this.elec : elec; + download = download === VOID ? this.download : download; + movie = movie === VOID ? this.movie : movie; + pay = pay === VOID ? this.pay : pay; + hd5 = hd5 === VOID ? this.hd5 : hd5; + noReprint = noReprint === VOID ? this.noReprint : noReprint; + autoplay = autoplay === VOID ? this.autoplay : autoplay; + ugcPay = ugcPay === VOID ? this.ugcPay : ugcPay; + isCooperation = isCooperation === VOID ? this.isCooperation : isCooperation; + ugcPayPreview = ugcPayPreview === VOID ? this.ugcPayPreview : ugcPayPreview; + noBackground = noBackground === VOID ? this.noBackground : noBackground; + arcPay = arcPay === VOID ? this.arcPay : arcPay; + payFreeWatch = payFreeWatch === VOID ? this.payFreeWatch : payFreeWatch; + return this.copy_1eghjf_k$(bp, elec, download, movie, pay, hd5, noReprint, autoplay, ugcPay, isCooperation, ugcPayPreview, noBackground, arcPay, payFreeWatch); + } + toString() { + return 'KRights(bp=' + this.bp + ', elec=' + this.elec + ', download=' + this.download + ', movie=' + this.movie + ', pay=' + this.pay + ', hd5=' + this.hd5 + ', noReprint=' + this.noReprint + ', autoplay=' + this.autoplay + ', ugcPay=' + this.ugcPay + ', isCooperation=' + this.isCooperation + ', ugcPayPreview=' + this.ugcPayPreview + ', noBackground=' + this.noBackground + ', arcPay=' + this.arcPay + ', payFreeWatch=' + this.payFreeWatch + ')'; + } + hashCode() { + var result = this.bp; + result = imul(result, 31) + this.elec | 0; + result = imul(result, 31) + this.download | 0; + result = imul(result, 31) + this.movie | 0; + result = imul(result, 31) + this.pay | 0; + result = imul(result, 31) + this.hd5 | 0; + result = imul(result, 31) + this.noReprint | 0; + result = imul(result, 31) + this.autoplay | 0; + result = imul(result, 31) + this.ugcPay | 0; + result = imul(result, 31) + this.isCooperation | 0; + result = imul(result, 31) + this.ugcPayPreview | 0; + result = imul(result, 31) + this.noBackground | 0; + result = imul(result, 31) + this.arcPay | 0; + result = imul(result, 31) + this.payFreeWatch | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KRights_1)) + return false; + var tmp0_other_with_cast = other instanceof KRights_1 ? other : THROW_CCE(); + if (!(this.bp === tmp0_other_with_cast.bp)) + return false; + if (!(this.elec === tmp0_other_with_cast.elec)) + return false; + if (!(this.download === tmp0_other_with_cast.download)) + return false; + if (!(this.movie === tmp0_other_with_cast.movie)) + return false; + if (!(this.pay === tmp0_other_with_cast.pay)) + return false; + if (!(this.hd5 === tmp0_other_with_cast.hd5)) + return false; + if (!(this.noReprint === tmp0_other_with_cast.noReprint)) + return false; + if (!(this.autoplay === tmp0_other_with_cast.autoplay)) + return false; + if (!(this.ugcPay === tmp0_other_with_cast.ugcPay)) + return false; + if (!(this.isCooperation === tmp0_other_with_cast.isCooperation)) + return false; + if (!(this.ugcPayPreview === tmp0_other_with_cast.ugcPayPreview)) + return false; + if (!(this.noBackground === tmp0_other_with_cast.noBackground)) + return false; + if (!(this.arcPay === tmp0_other_with_cast.arcPay)) + return false; + if (!(this.payFreeWatch === tmp0_other_with_cast.payFreeWatch)) + return false; + return true; + } + static new_com_bapis_bilibili_app_archive_v1_KRights_fp5far_k$(seen1, bp, elec, download, movie, pay, hd5, noReprint, autoplay, ugcPay, isCooperation, ugcPayPreview, noBackground, arcPay, payFreeWatch, serializationConstructorMarker) { + Companion_instance_652; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_639().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.bp = 0; + else + $this.bp = bp; + if (0 === (seen1 & 2)) + $this.elec = 0; + else + $this.elec = elec; + if (0 === (seen1 & 4)) + $this.download = 0; + else + $this.download = download; + if (0 === (seen1 & 8)) + $this.movie = 0; + else + $this.movie = movie; + if (0 === (seen1 & 16)) + $this.pay = 0; + else + $this.pay = pay; + if (0 === (seen1 & 32)) + $this.hd5 = 0; + else + $this.hd5 = hd5; + if (0 === (seen1 & 64)) + $this.noReprint = 0; + else + $this.noReprint = noReprint; + if (0 === (seen1 & 128)) + $this.autoplay = 0; + else + $this.autoplay = autoplay; + if (0 === (seen1 & 256)) + $this.ugcPay = 0; + else + $this.ugcPay = ugcPay; + if (0 === (seen1 & 512)) + $this.isCooperation = 0; + else + $this.isCooperation = isCooperation; + if (0 === (seen1 & 1024)) + $this.ugcPayPreview = 0; + else + $this.ugcPayPreview = ugcPayPreview; + if (0 === (seen1 & 2048)) + $this.noBackground = 0; + else + $this.noBackground = noBackground; + if (0 === (seen1 & 4096)) + $this.arcPay = 0; + else + $this.arcPay = arcPay; + if (0 === (seen1 & 8192)) + $this.payFreeWatch = 0; + else + $this.payFreeWatch = payFreeWatch; + return $this; + } + } + class Companion_653 { + constructor() { + this.targetPath = '/archive.service.v1.Author'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_640(); + } + } + class $serializer_640 { + constructor() { + $serializer_instance_640 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.archive.v1.KAuthor', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('mid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('name', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('face', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KAuthor_0.new_com_bapis_bilibili_app_archive_v1_KAuthor_ok48w9_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_or6aqr_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.mid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.mid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.name === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.name); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.face === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.face); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_or6aqr_k$(encoder, value instanceof KAuthor_0 ? value : THROW_CCE()); + } + } + class KAuthor_0 { + constructor(mid, name, face) { + Companion_instance_653; + mid = mid === VOID ? new Long(0, 0) : mid; + name = name === VOID ? '' : name; + face = face === VOID ? '' : face; + this.mid = mid; + this.name = name; + this.face = face; + } + get_mid_18j0o1_k$() { + return this.mid; + } + get_name_woqyms_k$() { + return this.name; + } + get_face_woluhy_k$() { + return this.face; + } + component1_7eebsc_k$() { + return this.mid; + } + component2_7eebsb_k$() { + return this.name; + } + component3_7eebsa_k$() { + return this.face; + } + copy_ijggmr_k$(mid, name, face) { + return new KAuthor_0(mid, name, face); + } + copy(mid, name, face, $super) { + mid = mid === VOID ? this.mid : mid; + name = name === VOID ? this.name : name; + face = face === VOID ? this.face : face; + return this.copy_ijggmr_k$(mid, name, face); + } + toString() { + return 'KAuthor(mid=' + this.mid.toString() + ', name=' + this.name + ', face=' + this.face + ')'; + } + hashCode() { + var result = this.mid.hashCode(); + result = imul(result, 31) + getStringHashCode(this.name) | 0; + result = imul(result, 31) + getStringHashCode(this.face) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KAuthor_0)) + return false; + var tmp0_other_with_cast = other instanceof KAuthor_0 ? other : THROW_CCE(); + if (!this.mid.equals(tmp0_other_with_cast.mid)) + return false; + if (!(this.name === tmp0_other_with_cast.name)) + return false; + if (!(this.face === tmp0_other_with_cast.face)) + return false; + return true; + } + static new_com_bapis_bilibili_app_archive_v1_KAuthor_ok48w9_k$(seen1, mid, name, face, serializationConstructorMarker) { + Companion_instance_653; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_640().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.mid = new Long(0, 0); + else + $this.mid = mid; + if (0 === (seen1 & 2)) + $this.name = ''; + else + $this.name = name; + if (0 === (seen1 & 4)) + $this.face = ''; + else + $this.face = face; + return $this; + } + } + class Companion_654 { + constructor() { + this.targetPath = '/archive.service.v1.Stat'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_641(); + } + } + class $serializer_641 { + constructor() { + $serializer_instance_641 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.archive.v1.KStat', this, 11); + tmp0_serialDesc.addElement_5pzumi_k$('aid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('view', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('danmaku', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('reply', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('fav', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('coin', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('share', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('nowRank', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('hisRank', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('like', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('dislike', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = 0; + var tmp6_local2 = 0; + var tmp7_local3 = 0; + var tmp8_local4 = 0; + var tmp9_local5 = 0; + var tmp10_local6 = 0; + var tmp11_local7 = 0; + var tmp12_local8 = 0; + var tmp13_local9 = 0; + var tmp14_local10 = 0; + var tmp15_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp15_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + } else + while (tmp1_flag) { + tmp2_index = tmp15_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp15_input.endStructure_1xqz0n_k$(tmp0_desc); + return KStat_1.new_com_bapis_bilibili_app_archive_v1_KStat_hv4ysu_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, null); + } + serialize_g35n3u_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.aid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.aid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.view === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.view); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.danmaku === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.danmaku); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.reply === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 3, value.reply); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.fav === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 4, value.fav); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.coin === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 5, value.coin); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.share === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 6, value.share); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.nowRank === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 7, value.nowRank); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.hisRank === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 8, value.hisRank); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.like === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 9, value.like); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.dislike === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 10, value.dislike); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_g35n3u_k$(encoder, value instanceof KStat_1 ? value : THROW_CCE()); + } + } + class KStat_1 { + constructor(aid, view, danmaku, reply, fav, coin, share, nowRank, hisRank, like, dislike) { + Companion_instance_654; + aid = aid === VOID ? new Long(0, 0) : aid; + view = view === VOID ? 0 : view; + danmaku = danmaku === VOID ? 0 : danmaku; + reply = reply === VOID ? 0 : reply; + fav = fav === VOID ? 0 : fav; + coin = coin === VOID ? 0 : coin; + share = share === VOID ? 0 : share; + nowRank = nowRank === VOID ? 0 : nowRank; + hisRank = hisRank === VOID ? 0 : hisRank; + like = like === VOID ? 0 : like; + dislike = dislike === VOID ? 0 : dislike; + this.aid = aid; + this.view = view; + this.danmaku = danmaku; + this.reply = reply; + this.fav = fav; + this.coin = coin; + this.share = share; + this.nowRank = nowRank; + this.hisRank = hisRank; + this.like = like; + this.dislike = dislike; + } + get_aid_18j9kd_k$() { + return this.aid; + } + get_view_wow8a6_k$() { + return this.view; + } + get_danmaku_p1pkiu_k$() { + return this.danmaku; + } + get_reply_ixwurl_k$() { + return this.reply; + } + get_fav_18j61a_k$() { + return this.fav; + } + get_coin_wok82i_k$() { + return this.coin; + } + get_share_iyi9bq_k$() { + return this.share; + } + get_nowRank_yik4w7_k$() { + return this.nowRank; + } + get_hisRank_gktcz9_k$() { + return this.hisRank; + } + get_like_wopujk_k$() { + return this.like; + } + get_dislike_swt1ks_k$() { + return this.dislike; + } + component1_7eebsc_k$() { + return this.aid; + } + component2_7eebsb_k$() { + return this.view; + } + component3_7eebsa_k$() { + return this.danmaku; + } + component4_7eebs9_k$() { + return this.reply; + } + component5_7eebs8_k$() { + return this.fav; + } + component6_7eebs7_k$() { + return this.coin; + } + component7_7eebs6_k$() { + return this.share; + } + component8_7eebs5_k$() { + return this.nowRank; + } + component9_7eebs4_k$() { + return this.hisRank; + } + component10_gazzfo_k$() { + return this.like; + } + component11_gazzfn_k$() { + return this.dislike; + } + copy_btp1n1_k$(aid, view, danmaku, reply, fav, coin, share, nowRank, hisRank, like, dislike) { + return new KStat_1(aid, view, danmaku, reply, fav, coin, share, nowRank, hisRank, like, dislike); + } + copy(aid, view, danmaku, reply, fav, coin, share, nowRank, hisRank, like, dislike, $super) { + aid = aid === VOID ? this.aid : aid; + view = view === VOID ? this.view : view; + danmaku = danmaku === VOID ? this.danmaku : danmaku; + reply = reply === VOID ? this.reply : reply; + fav = fav === VOID ? this.fav : fav; + coin = coin === VOID ? this.coin : coin; + share = share === VOID ? this.share : share; + nowRank = nowRank === VOID ? this.nowRank : nowRank; + hisRank = hisRank === VOID ? this.hisRank : hisRank; + like = like === VOID ? this.like : like; + dislike = dislike === VOID ? this.dislike : dislike; + return this.copy_btp1n1_k$(aid, view, danmaku, reply, fav, coin, share, nowRank, hisRank, like, dislike); + } + toString() { + return 'KStat(aid=' + this.aid.toString() + ', view=' + this.view + ', danmaku=' + this.danmaku + ', reply=' + this.reply + ', fav=' + this.fav + ', coin=' + this.coin + ', share=' + this.share + ', nowRank=' + this.nowRank + ', hisRank=' + this.hisRank + ', like=' + this.like + ', dislike=' + this.dislike + ')'; + } + hashCode() { + var result = this.aid.hashCode(); + result = imul(result, 31) + this.view | 0; + result = imul(result, 31) + this.danmaku | 0; + result = imul(result, 31) + this.reply | 0; + result = imul(result, 31) + this.fav | 0; + result = imul(result, 31) + this.coin | 0; + result = imul(result, 31) + this.share | 0; + result = imul(result, 31) + this.nowRank | 0; + result = imul(result, 31) + this.hisRank | 0; + result = imul(result, 31) + this.like | 0; + result = imul(result, 31) + this.dislike | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KStat_1)) + return false; + var tmp0_other_with_cast = other instanceof KStat_1 ? other : THROW_CCE(); + if (!this.aid.equals(tmp0_other_with_cast.aid)) + return false; + if (!(this.view === tmp0_other_with_cast.view)) + return false; + if (!(this.danmaku === tmp0_other_with_cast.danmaku)) + return false; + if (!(this.reply === tmp0_other_with_cast.reply)) + return false; + if (!(this.fav === tmp0_other_with_cast.fav)) + return false; + if (!(this.coin === tmp0_other_with_cast.coin)) + return false; + if (!(this.share === tmp0_other_with_cast.share)) + return false; + if (!(this.nowRank === tmp0_other_with_cast.nowRank)) + return false; + if (!(this.hisRank === tmp0_other_with_cast.hisRank)) + return false; + if (!(this.like === tmp0_other_with_cast.like)) + return false; + if (!(this.dislike === tmp0_other_with_cast.dislike)) + return false; + return true; + } + static new_com_bapis_bilibili_app_archive_v1_KStat_hv4ysu_k$(seen1, aid, view, danmaku, reply, fav, coin, share, nowRank, hisRank, like, dislike, serializationConstructorMarker) { + Companion_instance_654; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_641().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.aid = new Long(0, 0); + else + $this.aid = aid; + if (0 === (seen1 & 2)) + $this.view = 0; + else + $this.view = view; + if (0 === (seen1 & 4)) + $this.danmaku = 0; + else + $this.danmaku = danmaku; + if (0 === (seen1 & 8)) + $this.reply = 0; + else + $this.reply = reply; + if (0 === (seen1 & 16)) + $this.fav = 0; + else + $this.fav = fav; + if (0 === (seen1 & 32)) + $this.coin = 0; + else + $this.coin = coin; + if (0 === (seen1 & 64)) + $this.share = 0; + else + $this.share = share; + if (0 === (seen1 & 128)) + $this.nowRank = 0; + else + $this.nowRank = nowRank; + if (0 === (seen1 & 256)) + $this.hisRank = 0; + else + $this.hisRank = hisRank; + if (0 === (seen1 & 512)) + $this.like = 0; + else + $this.like = like; + if (0 === (seen1 & 1024)) + $this.dislike = 0; + else + $this.dislike = dislike; + return $this; + } + } + class Companion_655 { + constructor() { + this.targetPath = '/archive.service.v1.Page'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_642(); + } + } + class $serializer_642 { + constructor() { + $serializer_instance_642 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.archive.v1.KPage', this, 10); + tmp0_serialDesc.addElement_5pzumi_k$('cid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('page', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('from', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('part', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('duration', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('vid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('desc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('webLink', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('dimension', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('firstFrame', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_638()), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = 0; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = new Long(0, 0); + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_local8 = null; + var tmp13_local9 = null; + var tmp14_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp14_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_638(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + } else + while (tmp1_flag) { + tmp2_index = tmp14_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_638(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp14_input.endStructure_1xqz0n_k$(tmp0_desc); + return KPage_0.new_com_bapis_bilibili_app_archive_v1_KPage_jtvdit_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, null); + } + serialize_eyrly9_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.cid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.cid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.page === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.page); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.from === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.from); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.part === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.part); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !value.duration.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 4, value.duration); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.vid === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.vid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.desc === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.desc); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.webLink === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.webLink); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.dimension == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 8, $serializer_getInstance_638(), value.dimension); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.firstFrame === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 9, value.firstFrame); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_eyrly9_k$(encoder, value instanceof KPage_0 ? value : THROW_CCE()); + } + } + class KPage_0 { + constructor(cid, page, from, part, duration, vid, desc, webLink, dimension, firstFrame) { + Companion_instance_655; + cid = cid === VOID ? new Long(0, 0) : cid; + page = page === VOID ? 0 : page; + from = from === VOID ? '' : from; + part = part === VOID ? '' : part; + duration = duration === VOID ? new Long(0, 0) : duration; + vid = vid === VOID ? '' : vid; + desc = desc === VOID ? '' : desc; + webLink = webLink === VOID ? '' : webLink; + dimension = dimension === VOID ? null : dimension; + firstFrame = firstFrame === VOID ? '' : firstFrame; + this.cid = cid; + this.page = page; + this.from = from; + this.part = part; + this.duration = duration; + this.vid = vid; + this.desc = desc; + this.webLink = webLink; + this.dimension = dimension; + this.firstFrame = firstFrame; + } + get_cid_18j82z_k$() { + return this.cid; + } + get_page_wos8go_k$() { + return this.page; + } + get_from_wom7eb_k$() { + return this.from; + } + get_part_wos8qk_k$() { + return this.part; + } + get_duration_6a6kpp_k$() { + return this.duration; + } + get_vid_18itzs_k$() { + return this.vid; + } + get_desc_woknve_k$() { + return this.desc; + } + get_webLink_lhssqt_k$() { + return this.webLink; + } + get_dimension_9lf48z_k$() { + return this.dimension; + } + get_firstFrame_n7rumy_k$() { + return this.firstFrame; + } + component1_7eebsc_k$() { + return this.cid; + } + component2_7eebsb_k$() { + return this.page; + } + component3_7eebsa_k$() { + return this.from; + } + component4_7eebs9_k$() { + return this.part; + } + component5_7eebs8_k$() { + return this.duration; + } + component6_7eebs7_k$() { + return this.vid; + } + component7_7eebs6_k$() { + return this.desc; + } + component8_7eebs5_k$() { + return this.webLink; + } + component9_7eebs4_k$() { + return this.dimension; + } + component10_gazzfo_k$() { + return this.firstFrame; + } + copy_fzpnun_k$(cid, page, from, part, duration, vid, desc, webLink, dimension, firstFrame) { + return new KPage_0(cid, page, from, part, duration, vid, desc, webLink, dimension, firstFrame); + } + copy(cid, page, from, part, duration, vid, desc, webLink, dimension, firstFrame, $super) { + cid = cid === VOID ? this.cid : cid; + page = page === VOID ? this.page : page; + from = from === VOID ? this.from : from; + part = part === VOID ? this.part : part; + duration = duration === VOID ? this.duration : duration; + vid = vid === VOID ? this.vid : vid; + desc = desc === VOID ? this.desc : desc; + webLink = webLink === VOID ? this.webLink : webLink; + dimension = dimension === VOID ? this.dimension : dimension; + firstFrame = firstFrame === VOID ? this.firstFrame : firstFrame; + return this.copy_fzpnun_k$(cid, page, from, part, duration, vid, desc, webLink, dimension, firstFrame); + } + toString() { + return 'KPage(cid=' + this.cid.toString() + ', page=' + this.page + ', from=' + this.from + ', part=' + this.part + ', duration=' + this.duration.toString() + ', vid=' + this.vid + ', desc=' + this.desc + ', webLink=' + this.webLink + ', dimension=' + this.dimension + ', firstFrame=' + this.firstFrame + ')'; + } + hashCode() { + var result = this.cid.hashCode(); + result = imul(result, 31) + this.page | 0; + result = imul(result, 31) + getStringHashCode(this.from) | 0; + result = imul(result, 31) + getStringHashCode(this.part) | 0; + result = imul(result, 31) + this.duration.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.vid) | 0; + result = imul(result, 31) + getStringHashCode(this.desc) | 0; + result = imul(result, 31) + getStringHashCode(this.webLink) | 0; + result = imul(result, 31) + (this.dimension == null ? 0 : this.dimension.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.firstFrame) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KPage_0)) + return false; + var tmp0_other_with_cast = other instanceof KPage_0 ? other : THROW_CCE(); + if (!this.cid.equals(tmp0_other_with_cast.cid)) + return false; + if (!(this.page === tmp0_other_with_cast.page)) + return false; + if (!(this.from === tmp0_other_with_cast.from)) + return false; + if (!(this.part === tmp0_other_with_cast.part)) + return false; + if (!this.duration.equals(tmp0_other_with_cast.duration)) + return false; + if (!(this.vid === tmp0_other_with_cast.vid)) + return false; + if (!(this.desc === tmp0_other_with_cast.desc)) + return false; + if (!(this.webLink === tmp0_other_with_cast.webLink)) + return false; + if (!equals(this.dimension, tmp0_other_with_cast.dimension)) + return false; + if (!(this.firstFrame === tmp0_other_with_cast.firstFrame)) + return false; + return true; + } + static new_com_bapis_bilibili_app_archive_v1_KPage_jtvdit_k$(seen1, cid, page, from, part, duration, vid, desc, webLink, dimension, firstFrame, serializationConstructorMarker) { + Companion_instance_655; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_642().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.cid = new Long(0, 0); + else + $this.cid = cid; + if (0 === (seen1 & 2)) + $this.page = 0; + else + $this.page = page; + if (0 === (seen1 & 4)) + $this.from = ''; + else + $this.from = from; + if (0 === (seen1 & 8)) + $this.part = ''; + else + $this.part = part; + if (0 === (seen1 & 16)) + $this.duration = new Long(0, 0); + else + $this.duration = duration; + if (0 === (seen1 & 32)) + $this.vid = ''; + else + $this.vid = vid; + if (0 === (seen1 & 64)) + $this.desc = ''; + else + $this.desc = desc; + if (0 === (seen1 & 128)) + $this.webLink = ''; + else + $this.webLink = webLink; + if (0 === (seen1 & 256)) + $this.dimension = null; + else + $this.dimension = dimension; + if (0 === (seen1 & 512)) + $this.firstFrame = ''; + else + $this.firstFrame = firstFrame; + return $this; + } + } + class Companion_656 { + constructor() { + this.targetPath = '/bilibili.app.card.v1.AdInfo'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_643(); + } + } + class $serializer_643 { + constructor() { + $serializer_instance_643 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.card.v1.KAdInfo', this, 16); + tmp0_serialDesc.addElement_5pzumi_k$('creativeId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('creativeType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('cardType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('creativeContent', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('adCb', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('resource', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('source', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('requestId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('isAd', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('cmMark', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('index', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('isAdLoc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + tmp0_serialDesc.addElement_5pzumi_k$('cardIndex', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(13)); + tmp0_serialDesc.addElement_5pzumi_k$('clientIp', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(14)); + tmp0_serialDesc.addElement_5pzumi_k$('extra', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(15)); + tmp0_serialDesc.addElement_5pzumi_k$('creativeStyle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(16)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), get_nullable($serializer_getInstance_644()), StringSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), BooleanSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), BooleanSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), ByteArraySerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = 0; + var tmp6_local2 = 0; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = new Long(0, 0); + var tmp10_local6 = 0; + var tmp11_local7 = null; + var tmp12_local8 = false; + var tmp13_local9 = new Long(0, 0); + var tmp14_local10 = 0; + var tmp15_local11 = false; + var tmp16_local12 = 0; + var tmp17_local13 = null; + var tmp18_local14 = null; + var tmp19_local15 = 0; + var tmp20_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp20_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp20_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_644(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp20_input.decodeLongElement_994anb_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp20_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp20_input.decodeLongElement_994anb_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp20_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + tmp16_local12 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + tmp17_local13 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + tmp18_local14 = tmp20_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 14, ByteArraySerializer_getInstance(), tmp18_local14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + tmp19_local15 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + } else + while (tmp1_flag) { + tmp2_index = tmp20_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp20_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_644(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp20_input.decodeLongElement_994anb_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp20_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp20_input.decodeLongElement_994anb_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp20_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + case 12: + tmp16_local12 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + break; + case 13: + tmp17_local13 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + break; + case 14: + tmp18_local14 = tmp20_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 14, ByteArraySerializer_getInstance(), tmp18_local14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + break; + case 15: + tmp19_local15 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp20_input.endStructure_1xqz0n_k$(tmp0_desc); + return KAdInfo.new_com_bapis_bilibili_app_card_v1_KAdInfo_odnen_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, tmp18_local14, tmp19_local15, null); + } + serialize_xoq577_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.creativeId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.creativeId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.creativeType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.creativeType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.cardType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.cardType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.creativeContent == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_644(), value.creativeContent); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.adCb === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.adCb); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !value.resource.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 5, value.resource); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.source === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 6, value.source); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.requestId === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.requestId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.isAd === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 8, value.isAd); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !value.cmMark.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 9, value.cmMark); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.index === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 10, value.index); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.isAdLoc === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 11, value.isAdLoc); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !(value.cardIndex === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 12, value.cardIndex); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 13) ? true : !(value.clientIp === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 13, value.clientIp); + Unit_instance; + } + var tmp; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 14)) { + tmp = true; + } else { + var tmp$ret$0; + // Inline function 'kotlin.byteArrayOf' call + var elements = new Int8Array([]); + tmp$ret$0 = elements; + tmp = !equals(value.extra, tmp$ret$0); + } + if (tmp) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 14, ByteArraySerializer_getInstance(), value.extra); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 15) ? true : !(value.creativeStyle === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 15, value.creativeStyle); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_xoq577_k$(encoder, value instanceof KAdInfo ? value : THROW_CCE()); + } + } + class KAdInfo { + constructor(creativeId, creativeType, cardType, creativeContent, adCb, resource, source, requestId, isAd, cmMark, index, isAdLoc, cardIndex, clientIp, extra, creativeStyle) { + Companion_instance_656; + creativeId = creativeId === VOID ? new Long(0, 0) : creativeId; + creativeType = creativeType === VOID ? 0 : creativeType; + cardType = cardType === VOID ? 0 : cardType; + creativeContent = creativeContent === VOID ? null : creativeContent; + adCb = adCb === VOID ? '' : adCb; + resource = resource === VOID ? new Long(0, 0) : resource; + source = source === VOID ? 0 : source; + requestId = requestId === VOID ? '' : requestId; + isAd = isAd === VOID ? false : isAd; + cmMark = cmMark === VOID ? new Long(0, 0) : cmMark; + index = index === VOID ? 0 : index; + isAdLoc = isAdLoc === VOID ? false : isAdLoc; + cardIndex = cardIndex === VOID ? 0 : cardIndex; + clientIp = clientIp === VOID ? '' : clientIp; + var tmp; + if (extra === VOID) { + var tmp$ret$0; + var tmp$ret$0_0; + // Inline function 'kotlin.byteArrayOf' call + var elements = new Int8Array([]); + tmp$ret$0 = elements; + tmp$ret$0_0 = Unit_instance; + tmp = tmp$ret$0; + } else { + tmp = extra; + } + extra = tmp; + creativeStyle = creativeStyle === VOID ? 0 : creativeStyle; + this.creativeId = creativeId; + this.creativeType = creativeType; + this.cardType = cardType; + this.creativeContent = creativeContent; + this.adCb = adCb; + this.resource = resource; + this.source = source; + this.requestId = requestId; + this.isAd = isAd; + this.cmMark = cmMark; + this.index = index; + this.isAdLoc = isAdLoc; + this.cardIndex = cardIndex; + this.clientIp = clientIp; + this.extra = extra; + this.creativeStyle = creativeStyle; + } + get_creativeId_2jqpbn_k$() { + return this.creativeId; + } + get_creativeType_xy7npu_k$() { + return this.creativeType; + } + get_cardType_vxu2tp_k$() { + return this.cardType; + } + get_creativeContent_z9k273_k$() { + return this.creativeContent; + } + get_adCb_woip0r_k$() { + return this.adCb; + } + get_resource_xl4447_k$() { + return this.resource; + } + get_source_jl0x7o_k$() { + return this.source; + } + get_requestId_jzo7dt_k$() { + return this.requestId; + } + get_isAd_woo3zq_k$() { + return this.isAd; + } + get_cmMark_byhi00_k$() { + return this.cmMark; + } + get_index_it478p_k$() { + return this.index; + } + get_isAdLoc_z8h7oq_k$() { + return this.isAdLoc; + } + get_cardIndex_44fbw9_k$() { + return this.cardIndex; + } + get_clientIp_gs3e91_k$() { + return this.clientIp; + } + get_extra_ir3qw7_k$() { + return this.extra; + } + get_creativeStyle_d0q6zr_k$() { + return this.creativeStyle; + } + component1_7eebsc_k$() { + return this.creativeId; + } + component2_7eebsb_k$() { + return this.creativeType; + } + component3_7eebsa_k$() { + return this.cardType; + } + component4_7eebs9_k$() { + return this.creativeContent; + } + component5_7eebs8_k$() { + return this.adCb; + } + component6_7eebs7_k$() { + return this.resource; + } + component7_7eebs6_k$() { + return this.source; + } + component8_7eebs5_k$() { + return this.requestId; + } + component9_7eebs4_k$() { + return this.isAd; + } + component10_gazzfo_k$() { + return this.cmMark; + } + component11_gazzfn_k$() { + return this.index; + } + component12_gazzfm_k$() { + return this.isAdLoc; + } + component13_gazzfl_k$() { + return this.cardIndex; + } + component14_gazzfk_k$() { + return this.clientIp; + } + component15_gazzfj_k$() { + return this.extra; + } + component16_gazzfi_k$() { + return this.creativeStyle; + } + copy_rrtjcx_k$(creativeId, creativeType, cardType, creativeContent, adCb, resource, source, requestId, isAd, cmMark, index, isAdLoc, cardIndex, clientIp, extra, creativeStyle) { + return new KAdInfo(creativeId, creativeType, cardType, creativeContent, adCb, resource, source, requestId, isAd, cmMark, index, isAdLoc, cardIndex, clientIp, extra, creativeStyle); + } + copy(creativeId, creativeType, cardType, creativeContent, adCb, resource, source, requestId, isAd, cmMark, index, isAdLoc, cardIndex, clientIp, extra, creativeStyle, $super) { + creativeId = creativeId === VOID ? this.creativeId : creativeId; + creativeType = creativeType === VOID ? this.creativeType : creativeType; + cardType = cardType === VOID ? this.cardType : cardType; + creativeContent = creativeContent === VOID ? this.creativeContent : creativeContent; + adCb = adCb === VOID ? this.adCb : adCb; + resource = resource === VOID ? this.resource : resource; + source = source === VOID ? this.source : source; + requestId = requestId === VOID ? this.requestId : requestId; + isAd = isAd === VOID ? this.isAd : isAd; + cmMark = cmMark === VOID ? this.cmMark : cmMark; + index = index === VOID ? this.index : index; + isAdLoc = isAdLoc === VOID ? this.isAdLoc : isAdLoc; + cardIndex = cardIndex === VOID ? this.cardIndex : cardIndex; + clientIp = clientIp === VOID ? this.clientIp : clientIp; + extra = extra === VOID ? this.extra : extra; + creativeStyle = creativeStyle === VOID ? this.creativeStyle : creativeStyle; + return this.copy_rrtjcx_k$(creativeId, creativeType, cardType, creativeContent, adCb, resource, source, requestId, isAd, cmMark, index, isAdLoc, cardIndex, clientIp, extra, creativeStyle); + } + toString() { + return 'KAdInfo(creativeId=' + this.creativeId.toString() + ', creativeType=' + this.creativeType + ', cardType=' + this.cardType + ', creativeContent=' + this.creativeContent + ', adCb=' + this.adCb + ', resource=' + this.resource.toString() + ', source=' + this.source + ', requestId=' + this.requestId + ', isAd=' + this.isAd + ', cmMark=' + this.cmMark.toString() + ', index=' + this.index + ', isAdLoc=' + this.isAdLoc + ', cardIndex=' + this.cardIndex + ', clientIp=' + this.clientIp + ', extra=' + toString_1(this.extra) + ', creativeStyle=' + this.creativeStyle + ')'; + } + hashCode() { + var result = this.creativeId.hashCode(); + result = imul(result, 31) + this.creativeType | 0; + result = imul(result, 31) + this.cardType | 0; + result = imul(result, 31) + (this.creativeContent == null ? 0 : this.creativeContent.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.adCb) | 0; + result = imul(result, 31) + this.resource.hashCode() | 0; + result = imul(result, 31) + this.source | 0; + result = imul(result, 31) + getStringHashCode(this.requestId) | 0; + result = imul(result, 31) + getBooleanHashCode(this.isAd) | 0; + result = imul(result, 31) + this.cmMark.hashCode() | 0; + result = imul(result, 31) + this.index | 0; + result = imul(result, 31) + getBooleanHashCode(this.isAdLoc) | 0; + result = imul(result, 31) + this.cardIndex | 0; + result = imul(result, 31) + getStringHashCode(this.clientIp) | 0; + result = imul(result, 31) + hashCode(this.extra) | 0; + result = imul(result, 31) + this.creativeStyle | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KAdInfo)) + return false; + var tmp0_other_with_cast = other instanceof KAdInfo ? other : THROW_CCE(); + if (!this.creativeId.equals(tmp0_other_with_cast.creativeId)) + return false; + if (!(this.creativeType === tmp0_other_with_cast.creativeType)) + return false; + if (!(this.cardType === tmp0_other_with_cast.cardType)) + return false; + if (!equals(this.creativeContent, tmp0_other_with_cast.creativeContent)) + return false; + if (!(this.adCb === tmp0_other_with_cast.adCb)) + return false; + if (!this.resource.equals(tmp0_other_with_cast.resource)) + return false; + if (!(this.source === tmp0_other_with_cast.source)) + return false; + if (!(this.requestId === tmp0_other_with_cast.requestId)) + return false; + if (!(this.isAd === tmp0_other_with_cast.isAd)) + return false; + if (!this.cmMark.equals(tmp0_other_with_cast.cmMark)) + return false; + if (!(this.index === tmp0_other_with_cast.index)) + return false; + if (!(this.isAdLoc === tmp0_other_with_cast.isAdLoc)) + return false; + if (!(this.cardIndex === tmp0_other_with_cast.cardIndex)) + return false; + if (!(this.clientIp === tmp0_other_with_cast.clientIp)) + return false; + if (!equals(this.extra, tmp0_other_with_cast.extra)) + return false; + if (!(this.creativeStyle === tmp0_other_with_cast.creativeStyle)) + return false; + return true; + } + static new_com_bapis_bilibili_app_card_v1_KAdInfo_odnen_k$(seen1, creativeId, creativeType, cardType, creativeContent, adCb, resource, source, requestId, isAd, cmMark, index, isAdLoc, cardIndex, clientIp, extra, creativeStyle, serializationConstructorMarker) { + Companion_instance_656; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_643().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.creativeId = new Long(0, 0); + else + $this.creativeId = creativeId; + if (0 === (seen1 & 2)) + $this.creativeType = 0; + else + $this.creativeType = creativeType; + if (0 === (seen1 & 4)) + $this.cardType = 0; + else + $this.cardType = cardType; + if (0 === (seen1 & 8)) + $this.creativeContent = null; + else + $this.creativeContent = creativeContent; + if (0 === (seen1 & 16)) + $this.adCb = ''; + else + $this.adCb = adCb; + if (0 === (seen1 & 32)) + $this.resource = new Long(0, 0); + else + $this.resource = resource; + if (0 === (seen1 & 64)) + $this.source = 0; + else + $this.source = source; + if (0 === (seen1 & 128)) + $this.requestId = ''; + else + $this.requestId = requestId; + if (0 === (seen1 & 256)) + $this.isAd = false; + else + $this.isAd = isAd; + if (0 === (seen1 & 512)) + $this.cmMark = new Long(0, 0); + else + $this.cmMark = cmMark; + if (0 === (seen1 & 1024)) + $this.index = 0; + else + $this.index = index; + if (0 === (seen1 & 2048)) + $this.isAdLoc = false; + else + $this.isAdLoc = isAdLoc; + if (0 === (seen1 & 4096)) + $this.cardIndex = 0; + else + $this.cardIndex = cardIndex; + if (0 === (seen1 & 8192)) + $this.clientIp = ''; + else + $this.clientIp = clientIp; + if (0 === (seen1 & 16384)) { + var tmp = $this; + var tmp$ret$0; + // Inline function 'kotlin.byteArrayOf' call + var elements = new Int8Array([]); + tmp$ret$0 = elements; + tmp.extra = tmp$ret$0; + } else + $this.extra = extra; + if (0 === (seen1 & 32768)) + $this.creativeStyle = 0; + else + $this.creativeStyle = creativeStyle; + return $this; + } + } + class Companion_657 { + constructor() { + this.targetPath = '/bilibili.app.card.v1.CreativeContent'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_644(); + } + } + class $serializer_644 { + constructor() { + $serializer_instance_644 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.card.v1.KCreativeContent', this, 11); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('description', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('videoId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('username', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('imageUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('imageMd5', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('logUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('logMd5', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('url', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('clickUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('showUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = new Long(0, 0); + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_local8 = null; + var tmp13_local9 = null; + var tmp14_local10 = null; + var tmp15_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp15_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + } else + while (tmp1_flag) { + tmp2_index = tmp15_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp15_input.endStructure_1xqz0n_k$(tmp0_desc); + return KCreativeContent.new_com_bapis_bilibili_app_card_v1_KCreativeContent_x50afo_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, null); + } + serialize_piif7m_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.description === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.description); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.videoId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.videoId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.username === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.username); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.imageUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.imageUrl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.imageMd5 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.imageMd5); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.logUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.logUrl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.logMd5 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.logMd5); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.url === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 8, value.url); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.clickUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 9, value.clickUrl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.showUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 10, value.showUrl); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_piif7m_k$(encoder, value instanceof KCreativeContent ? value : THROW_CCE()); + } + } + class KCreativeContent { + constructor(title, description, videoId, username, imageUrl, imageMd5, logUrl, logMd5, url, clickUrl, showUrl) { + Companion_instance_657; + title = title === VOID ? '' : title; + description = description === VOID ? '' : description; + videoId = videoId === VOID ? new Long(0, 0) : videoId; + username = username === VOID ? '' : username; + imageUrl = imageUrl === VOID ? '' : imageUrl; + imageMd5 = imageMd5 === VOID ? '' : imageMd5; + logUrl = logUrl === VOID ? '' : logUrl; + logMd5 = logMd5 === VOID ? '' : logMd5; + url = url === VOID ? '' : url; + clickUrl = clickUrl === VOID ? '' : clickUrl; + showUrl = showUrl === VOID ? '' : showUrl; + this.title = title; + this.description = description; + this.videoId = videoId; + this.username = username; + this.imageUrl = imageUrl; + this.imageMd5 = imageMd5; + this.logUrl = logUrl; + this.logMd5 = logMd5; + this.url = url; + this.clickUrl = clickUrl; + this.showUrl = showUrl; + } + get_title_iz32un_k$() { + return this.title; + } + get_description_emjre5_k$() { + return this.description; + } + get_videoId_8r4nil_k$() { + return this.videoId; + } + get_username_ytz5i7_k$() { + return this.username; + } + get_imageUrl_p0dvj1_k$() { + return this.imageUrl; + } + get_imageMd5_p0dp7w_k$() { + return this.imageMd5; + } + get_logUrl_g9g1hw_k$() { + return this.logUrl; + } + get_logMd5_g9fv6r_k$() { + return this.logMd5; + } + get_url_18iuii_k$() { + return this.url; + } + get_clickUrl_gt9ieo_k$() { + return this.clickUrl; + } + get_showUrl_zgcyfd_k$() { + return this.showUrl; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.description; + } + component3_7eebsa_k$() { + return this.videoId; + } + component4_7eebs9_k$() { + return this.username; + } + component5_7eebs8_k$() { + return this.imageUrl; + } + component6_7eebs7_k$() { + return this.imageMd5; + } + component7_7eebs6_k$() { + return this.logUrl; + } + component8_7eebs5_k$() { + return this.logMd5; + } + component9_7eebs4_k$() { + return this.url; + } + component10_gazzfo_k$() { + return this.clickUrl; + } + component11_gazzfn_k$() { + return this.showUrl; + } + copy_6qo9jh_k$(title, description, videoId, username, imageUrl, imageMd5, logUrl, logMd5, url, clickUrl, showUrl) { + return new KCreativeContent(title, description, videoId, username, imageUrl, imageMd5, logUrl, logMd5, url, clickUrl, showUrl); + } + copy(title, description, videoId, username, imageUrl, imageMd5, logUrl, logMd5, url, clickUrl, showUrl, $super) { + title = title === VOID ? this.title : title; + description = description === VOID ? this.description : description; + videoId = videoId === VOID ? this.videoId : videoId; + username = username === VOID ? this.username : username; + imageUrl = imageUrl === VOID ? this.imageUrl : imageUrl; + imageMd5 = imageMd5 === VOID ? this.imageMd5 : imageMd5; + logUrl = logUrl === VOID ? this.logUrl : logUrl; + logMd5 = logMd5 === VOID ? this.logMd5 : logMd5; + url = url === VOID ? this.url : url; + clickUrl = clickUrl === VOID ? this.clickUrl : clickUrl; + showUrl = showUrl === VOID ? this.showUrl : showUrl; + return this.copy_6qo9jh_k$(title, description, videoId, username, imageUrl, imageMd5, logUrl, logMd5, url, clickUrl, showUrl); + } + toString() { + return 'KCreativeContent(title=' + this.title + ', description=' + this.description + ', videoId=' + this.videoId.toString() + ', username=' + this.username + ', imageUrl=' + this.imageUrl + ', imageMd5=' + this.imageMd5 + ', logUrl=' + this.logUrl + ', logMd5=' + this.logMd5 + ', url=' + this.url + ', clickUrl=' + this.clickUrl + ', showUrl=' + this.showUrl + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.description) | 0; + result = imul(result, 31) + this.videoId.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.username) | 0; + result = imul(result, 31) + getStringHashCode(this.imageUrl) | 0; + result = imul(result, 31) + getStringHashCode(this.imageMd5) | 0; + result = imul(result, 31) + getStringHashCode(this.logUrl) | 0; + result = imul(result, 31) + getStringHashCode(this.logMd5) | 0; + result = imul(result, 31) + getStringHashCode(this.url) | 0; + result = imul(result, 31) + getStringHashCode(this.clickUrl) | 0; + result = imul(result, 31) + getStringHashCode(this.showUrl) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KCreativeContent)) + return false; + var tmp0_other_with_cast = other instanceof KCreativeContent ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.description === tmp0_other_with_cast.description)) + return false; + if (!this.videoId.equals(tmp0_other_with_cast.videoId)) + return false; + if (!(this.username === tmp0_other_with_cast.username)) + return false; + if (!(this.imageUrl === tmp0_other_with_cast.imageUrl)) + return false; + if (!(this.imageMd5 === tmp0_other_with_cast.imageMd5)) + return false; + if (!(this.logUrl === tmp0_other_with_cast.logUrl)) + return false; + if (!(this.logMd5 === tmp0_other_with_cast.logMd5)) + return false; + if (!(this.url === tmp0_other_with_cast.url)) + return false; + if (!(this.clickUrl === tmp0_other_with_cast.clickUrl)) + return false; + if (!(this.showUrl === tmp0_other_with_cast.showUrl)) + return false; + return true; + } + static new_com_bapis_bilibili_app_card_v1_KCreativeContent_x50afo_k$(seen1, title, description, videoId, username, imageUrl, imageMd5, logUrl, logMd5, url, clickUrl, showUrl, serializationConstructorMarker) { + Companion_instance_657; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_644().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.description = ''; + else + $this.description = description; + if (0 === (seen1 & 4)) + $this.videoId = new Long(0, 0); + else + $this.videoId = videoId; + if (0 === (seen1 & 8)) + $this.username = ''; + else + $this.username = username; + if (0 === (seen1 & 16)) + $this.imageUrl = ''; + else + $this.imageUrl = imageUrl; + if (0 === (seen1 & 32)) + $this.imageMd5 = ''; + else + $this.imageMd5 = imageMd5; + if (0 === (seen1 & 64)) + $this.logUrl = ''; + else + $this.logUrl = logUrl; + if (0 === (seen1 & 128)) + $this.logMd5 = ''; + else + $this.logMd5 = logMd5; + if (0 === (seen1 & 256)) + $this.url = ''; + else + $this.url = url; + if (0 === (seen1 & 512)) + $this.clickUrl = ''; + else + $this.clickUrl = clickUrl; + if (0 === (seen1 & 1024)) + $this.showUrl = ''; + else + $this.showUrl = showUrl; + return $this; + } + } + class KItem_2 { + constructor(value) { + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + } + class KSmallCoverV5 extends KItem_2 { + constructor() { + KSmallCoverV5_instance = null; + super(0); + KSmallCoverV5_instance = this; + } + } + class KLargeCoverV1 extends KItem_2 { + constructor() { + KLargeCoverV1_instance = null; + super(1); + KLargeCoverV1_instance = this; + } + } + class KThreeItemAllV2 extends KItem_2 { + constructor() { + KThreeItemAllV2_instance = null; + super(2); + KThreeItemAllV2_instance = this; + } + } + class KThreeItemV1 extends KItem_2 { + constructor() { + KThreeItemV1_instance = null; + super(3); + KThreeItemV1_instance = this; + } + } + class KHotTopic extends KItem_2 { + constructor() { + KHotTopic_instance = null; + super(4); + KHotTopic_instance = this; + } + } + class KThreeItemHV5 extends KItem_2 { + constructor() { + KThreeItemHV5_instance = null; + super(5); + KThreeItemHV5_instance = this; + } + } + class KMiddleCoverV3 extends KItem_2 { + constructor() { + KMiddleCoverV3_instance = null; + super(6); + KMiddleCoverV3_instance = this; + } + } + class KLargeCoverV4 extends KItem_2 { + constructor() { + KLargeCoverV4_instance = null; + super(7); + KLargeCoverV4_instance = this; + } + } + class KPopularTopEntrance extends KItem_2 { + constructor() { + KPopularTopEntrance_instance = null; + super(8); + KPopularTopEntrance_instance = this; + } + } + class KRcmdOneItem extends KItem_2 { + constructor() { + KRcmdOneItem_instance = null; + super(9); + KRcmdOneItem_instance = this; + } + } + class KSmallCoverV5Ad extends KItem_2 { + constructor() { + KSmallCoverV5Ad_instance = null; + super(10); + KSmallCoverV5Ad_instance = this; + } + } + class KTopicList extends KItem_2 { + constructor() { + KTopicList_instance = null; + super(11); + KTopicList_instance = this; + } + } + class Companion_658 { + constructor() { + Companion_instance_658 = this; + var tmp = this; + tmp.itemValues$delegate_1 = lazy_0(KCard$Companion$itemValues$delegate$lambda); + this.targetPath = '/bilibili.app.card.v1.Card'; + } + get_itemValues_e195su_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.itemValues$delegate_1; + var thisRef = this; + var property = itemValues$factory(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_645(); + } + get itemValues() { + return this.get_itemValues_e195su_k$(); + } + } + class $serializer_645 { + constructor() { + $serializer_instance_645 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.card.v1.KCard', this, 12); + tmp0_serialDesc.addElement_5pzumi_k$('smallCoverV5', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('largeCoverV1', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('threeItemAllV2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('threeItemV1', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('hotTopic', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('threeItemHV5', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('middleCoverV3', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('largeCoverV4', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('popularTopEntrance', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('rcmdOneItem', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('smallCoverV5Ad', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('topicList', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_690()), get_nullable($serializer_getInstance_692()), get_nullable($serializer_getInstance_693()), get_nullable($serializer_getInstance_697()), get_nullable($serializer_getInstance_699()), get_nullable($serializer_getInstance_701()), get_nullable($serializer_getInstance_702()), get_nullable($serializer_getInstance_703()), get_nullable($serializer_getInstance_704()), get_nullable($serializer_getInstance_695()), get_nullable($serializer_getInstance_689()), get_nullable($serializer_getInstance_707())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_local8 = null; + var tmp13_local9 = null; + var tmp14_local10 = null; + var tmp15_local11 = null; + var tmp16_transient0 = 0; + var tmp17_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp17_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp17_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_690(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp17_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_692(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp17_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_693(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp17_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_697(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp17_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_699(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp17_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_701(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp17_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_702(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp17_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_703(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp17_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_704(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp17_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 9, $serializer_getInstance_695(), tmp13_local9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp17_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 10, $serializer_getInstance_689(), tmp14_local10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp17_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 11, $serializer_getInstance_707(), tmp15_local11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + } else + while (tmp1_flag) { + tmp2_index = tmp17_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp17_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_690(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp17_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_692(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp17_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_693(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp17_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_697(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp17_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_699(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp17_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_701(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp17_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_702(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp17_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_703(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp17_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_704(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp17_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 9, $serializer_getInstance_695(), tmp13_local9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp17_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 10, $serializer_getInstance_689(), tmp14_local10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp17_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 11, $serializer_getInstance_707(), tmp15_local11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp17_input.endStructure_1xqz0n_k$(tmp0_desc); + return KCard_0.new_com_bapis_bilibili_app_card_v1_KCard_m84f35_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, null); + } + serialize_rhsmc2_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.smallCoverV5__1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_690(), value.smallCoverV5__1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.largeCoverV1__1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_692(), value.largeCoverV1__1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.threeItemAllV2__1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_693(), value.threeItemAllV2__1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.threeItemV1__1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_697(), value.threeItemV1__1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.hotTopic_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, $serializer_getInstance_699(), value.hotTopic_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.threeItemHV5__1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 5, $serializer_getInstance_701(), value.threeItemHV5__1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.middleCoverV3__1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 6, $serializer_getInstance_702(), value.middleCoverV3__1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.largeCoverV4__1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 7, $serializer_getInstance_703(), value.largeCoverV4__1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.popularTopEntrance_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 8, $serializer_getInstance_704(), value.popularTopEntrance_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.rcmdOneItem_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 9, $serializer_getInstance_695(), value.rcmdOneItem_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.smallCoverV5Ad_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 10, $serializer_getInstance_689(), value.smallCoverV5Ad_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.topicList_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 11, $serializer_getInstance_707(), value.topicList_1); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_rhsmc2_k$(encoder, value instanceof KCard_0 ? value : THROW_CCE()); + } + } + class KCard_0 { + constructor(smallCoverV5, largeCoverV1, threeItemAllV2, threeItemV1, hotTopic, threeItemHV5, middleCoverV3, largeCoverV4, popularTopEntrance, rcmdOneItem, smallCoverV5Ad, topicList) { + Companion_getInstance_658(); + smallCoverV5 = smallCoverV5 === VOID ? null : smallCoverV5; + largeCoverV1 = largeCoverV1 === VOID ? null : largeCoverV1; + threeItemAllV2 = threeItemAllV2 === VOID ? null : threeItemAllV2; + threeItemV1 = threeItemV1 === VOID ? null : threeItemV1; + hotTopic = hotTopic === VOID ? null : hotTopic; + threeItemHV5 = threeItemHV5 === VOID ? null : threeItemHV5; + middleCoverV3 = middleCoverV3 === VOID ? null : middleCoverV3; + largeCoverV4 = largeCoverV4 === VOID ? null : largeCoverV4; + popularTopEntrance = popularTopEntrance === VOID ? null : popularTopEntrance; + rcmdOneItem = rcmdOneItem === VOID ? null : rcmdOneItem; + smallCoverV5Ad = smallCoverV5Ad === VOID ? null : smallCoverV5Ad; + topicList = topicList === VOID ? null : topicList; + this.smallCoverV5__1 = smallCoverV5; + this.largeCoverV1__1 = largeCoverV1; + this.threeItemAllV2__1 = threeItemAllV2; + this.threeItemV1__1 = threeItemV1; + this.hotTopic_1 = hotTopic; + this.threeItemHV5__1 = threeItemHV5; + this.middleCoverV3__1 = middleCoverV3; + this.largeCoverV4__1 = largeCoverV4; + this.popularTopEntrance_1 = popularTopEntrance; + this.rcmdOneItem_1 = rcmdOneItem; + this.smallCoverV5Ad_1 = smallCoverV5Ad; + this.topicList_1 = topicList; + var tmp = this; + tmp.itemNumber$delegate_1 = lazy_0(KCard$itemNumber$delegate$lambda(this)); + } + itemValue() { + if (!(this.smallCoverV5__1 == null)) { + var tmp = this.smallCoverV5__1; + return (tmp == null ? true : !(tmp == null)) ? tmp : null; + } else if (!(this.largeCoverV1__1 == null)) { + var tmp_0 = this.largeCoverV1__1; + return (tmp_0 == null ? true : !(tmp_0 == null)) ? tmp_0 : null; + } else if (!(this.threeItemAllV2__1 == null)) { + var tmp_1 = this.threeItemAllV2__1; + return (tmp_1 == null ? true : !(tmp_1 == null)) ? tmp_1 : null; + } else if (!(this.threeItemV1__1 == null)) { + var tmp_2 = this.threeItemV1__1; + return (tmp_2 == null ? true : !(tmp_2 == null)) ? tmp_2 : null; + } else if (!(this.hotTopic_1 == null)) { + var tmp_3 = this.hotTopic_1; + return (tmp_3 == null ? true : !(tmp_3 == null)) ? tmp_3 : null; + } else if (!(this.threeItemHV5__1 == null)) { + var tmp_4 = this.threeItemHV5__1; + return (tmp_4 == null ? true : !(tmp_4 == null)) ? tmp_4 : null; + } else if (!(this.middleCoverV3__1 == null)) { + var tmp_5 = this.middleCoverV3__1; + return (tmp_5 == null ? true : !(tmp_5 == null)) ? tmp_5 : null; + } else if (!(this.largeCoverV4__1 == null)) { + var tmp_6 = this.largeCoverV4__1; + return (tmp_6 == null ? true : !(tmp_6 == null)) ? tmp_6 : null; + } else if (!(this.popularTopEntrance_1 == null)) { + var tmp_7 = this.popularTopEntrance_1; + return (tmp_7 == null ? true : !(tmp_7 == null)) ? tmp_7 : null; + } else if (!(this.rcmdOneItem_1 == null)) { + var tmp_8 = this.rcmdOneItem_1; + return (tmp_8 == null ? true : !(tmp_8 == null)) ? tmp_8 : null; + } else if (!(this.smallCoverV5Ad_1 == null)) { + var tmp_9 = this.smallCoverV5Ad_1; + return (tmp_9 == null ? true : !(tmp_9 == null)) ? tmp_9 : null; + } else if (!(this.topicList_1 == null)) { + var tmp_10 = this.topicList_1; + return (tmp_10 == null ? true : !(tmp_10 == null)) ? tmp_10 : null; + } else { + return null; + } + } + itemTypeJs() { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = Companion_getInstance_658().itemValues; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.card.v1.KCard.itemType.' call + var it = element; + tmp$ret$0 = it.value === _get_itemNumber__22vn01(this); + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + return tmp$ret$1; + } + copy_ebvj1o_k$(smallCoverV5, largeCoverV1, threeItemAllV2, threeItemV1, hotTopic, threeItemHV5, middleCoverV3, largeCoverV4, popularTopEntrance, rcmdOneItem, smallCoverV5Ad, topicList) { + return new KCard_0(smallCoverV5, largeCoverV1, threeItemAllV2, threeItemV1, hotTopic, threeItemHV5, middleCoverV3, largeCoverV4, popularTopEntrance, rcmdOneItem, smallCoverV5Ad, topicList); + } + copy(smallCoverV5, largeCoverV1, threeItemAllV2, threeItemV1, hotTopic, threeItemHV5, middleCoverV3, largeCoverV4, popularTopEntrance, rcmdOneItem, smallCoverV5Ad, topicList, $super) { + smallCoverV5 = smallCoverV5 === VOID ? this.smallCoverV5__1 : smallCoverV5; + largeCoverV1 = largeCoverV1 === VOID ? this.largeCoverV1__1 : largeCoverV1; + threeItemAllV2 = threeItemAllV2 === VOID ? this.threeItemAllV2__1 : threeItemAllV2; + threeItemV1 = threeItemV1 === VOID ? this.threeItemV1__1 : threeItemV1; + hotTopic = hotTopic === VOID ? this.hotTopic_1 : hotTopic; + threeItemHV5 = threeItemHV5 === VOID ? this.threeItemHV5__1 : threeItemHV5; + middleCoverV3 = middleCoverV3 === VOID ? this.middleCoverV3__1 : middleCoverV3; + largeCoverV4 = largeCoverV4 === VOID ? this.largeCoverV4__1 : largeCoverV4; + popularTopEntrance = popularTopEntrance === VOID ? this.popularTopEntrance_1 : popularTopEntrance; + rcmdOneItem = rcmdOneItem === VOID ? this.rcmdOneItem_1 : rcmdOneItem; + smallCoverV5Ad = smallCoverV5Ad === VOID ? this.smallCoverV5Ad_1 : smallCoverV5Ad; + topicList = topicList === VOID ? this.topicList_1 : topicList; + return this.copy_ebvj1o_k$(smallCoverV5, largeCoverV1, threeItemAllV2, threeItemV1, hotTopic, threeItemHV5, middleCoverV3, largeCoverV4, popularTopEntrance, rcmdOneItem, smallCoverV5Ad, topicList); + } + toString() { + return 'KCard(smallCoverV5=' + this.smallCoverV5__1 + ', largeCoverV1=' + this.largeCoverV1__1 + ', threeItemAllV2=' + this.threeItemAllV2__1 + ', threeItemV1=' + this.threeItemV1__1 + ', hotTopic=' + this.hotTopic_1 + ', threeItemHV5=' + this.threeItemHV5__1 + ', middleCoverV3=' + this.middleCoverV3__1 + ', largeCoverV4=' + this.largeCoverV4__1 + ', popularTopEntrance=' + this.popularTopEntrance_1 + ', rcmdOneItem=' + this.rcmdOneItem_1 + ', smallCoverV5Ad=' + this.smallCoverV5Ad_1 + ', topicList=' + this.topicList_1 + ')'; + } + hashCode() { + var result = this.smallCoverV5__1 == null ? 0 : this.smallCoverV5__1.hashCode(); + result = imul(result, 31) + (this.largeCoverV1__1 == null ? 0 : this.largeCoverV1__1.hashCode()) | 0; + result = imul(result, 31) + (this.threeItemAllV2__1 == null ? 0 : this.threeItemAllV2__1.hashCode()) | 0; + result = imul(result, 31) + (this.threeItemV1__1 == null ? 0 : this.threeItemV1__1.hashCode()) | 0; + result = imul(result, 31) + (this.hotTopic_1 == null ? 0 : this.hotTopic_1.hashCode()) | 0; + result = imul(result, 31) + (this.threeItemHV5__1 == null ? 0 : this.threeItemHV5__1.hashCode()) | 0; + result = imul(result, 31) + (this.middleCoverV3__1 == null ? 0 : this.middleCoverV3__1.hashCode()) | 0; + result = imul(result, 31) + (this.largeCoverV4__1 == null ? 0 : this.largeCoverV4__1.hashCode()) | 0; + result = imul(result, 31) + (this.popularTopEntrance_1 == null ? 0 : this.popularTopEntrance_1.hashCode()) | 0; + result = imul(result, 31) + (this.rcmdOneItem_1 == null ? 0 : this.rcmdOneItem_1.hashCode()) | 0; + result = imul(result, 31) + (this.smallCoverV5Ad_1 == null ? 0 : this.smallCoverV5Ad_1.hashCode()) | 0; + result = imul(result, 31) + (this.topicList_1 == null ? 0 : this.topicList_1.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KCard_0)) + return false; + var tmp0_other_with_cast = other instanceof KCard_0 ? other : THROW_CCE(); + if (!equals(this.smallCoverV5__1, tmp0_other_with_cast.smallCoverV5__1)) + return false; + if (!equals(this.largeCoverV1__1, tmp0_other_with_cast.largeCoverV1__1)) + return false; + if (!equals(this.threeItemAllV2__1, tmp0_other_with_cast.threeItemAllV2__1)) + return false; + if (!equals(this.threeItemV1__1, tmp0_other_with_cast.threeItemV1__1)) + return false; + if (!equals(this.hotTopic_1, tmp0_other_with_cast.hotTopic_1)) + return false; + if (!equals(this.threeItemHV5__1, tmp0_other_with_cast.threeItemHV5__1)) + return false; + if (!equals(this.middleCoverV3__1, tmp0_other_with_cast.middleCoverV3__1)) + return false; + if (!equals(this.largeCoverV4__1, tmp0_other_with_cast.largeCoverV4__1)) + return false; + if (!equals(this.popularTopEntrance_1, tmp0_other_with_cast.popularTopEntrance_1)) + return false; + if (!equals(this.rcmdOneItem_1, tmp0_other_with_cast.rcmdOneItem_1)) + return false; + if (!equals(this.smallCoverV5Ad_1, tmp0_other_with_cast.smallCoverV5Ad_1)) + return false; + if (!equals(this.topicList_1, tmp0_other_with_cast.topicList_1)) + return false; + return true; + } + static new_com_bapis_bilibili_app_card_v1_KCard_m84f35_k$(seen1, smallCoverV5, largeCoverV1, threeItemAllV2, threeItemV1, hotTopic, threeItemHV5, middleCoverV3, largeCoverV4, popularTopEntrance, rcmdOneItem, smallCoverV5Ad, topicList, serializationConstructorMarker) { + Companion_getInstance_658(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_645().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.smallCoverV5__1 = null; + else + $this.smallCoverV5__1 = smallCoverV5; + if (0 === (seen1 & 2)) + $this.largeCoverV1__1 = null; + else + $this.largeCoverV1__1 = largeCoverV1; + if (0 === (seen1 & 4)) + $this.threeItemAllV2__1 = null; + else + $this.threeItemAllV2__1 = threeItemAllV2; + if (0 === (seen1 & 8)) + $this.threeItemV1__1 = null; + else + $this.threeItemV1__1 = threeItemV1; + if (0 === (seen1 & 16)) + $this.hotTopic_1 = null; + else + $this.hotTopic_1 = hotTopic; + if (0 === (seen1 & 32)) + $this.threeItemHV5__1 = null; + else + $this.threeItemHV5__1 = threeItemHV5; + if (0 === (seen1 & 64)) + $this.middleCoverV3__1 = null; + else + $this.middleCoverV3__1 = middleCoverV3; + if (0 === (seen1 & 128)) + $this.largeCoverV4__1 = null; + else + $this.largeCoverV4__1 = largeCoverV4; + if (0 === (seen1 & 256)) + $this.popularTopEntrance_1 = null; + else + $this.popularTopEntrance_1 = popularTopEntrance; + if (0 === (seen1 & 512)) + $this.rcmdOneItem_1 = null; + else + $this.rcmdOneItem_1 = rcmdOneItem; + if (0 === (seen1 & 1024)) + $this.smallCoverV5Ad_1 = null; + else + $this.smallCoverV5Ad_1 = smallCoverV5Ad; + if (0 === (seen1 & 2048)) + $this.topicList_1 = null; + else + $this.topicList_1 = topicList; + var tmp = $this; + tmp.itemNumber$delegate_1 = lazy_0(KCard$_init_$lambda_nbd3rk($this)); + return $this; + } + } + class Companion_659 { + constructor() { + Companion_instance_659 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, null, null, null, null, null, null, null, null, null, null, null, new ArrayListSerializer($serializer_getInstance_655()), new ArrayListSerializer($serializer_getInstance_656()), null, null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.card.v1.Base'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_646(); + } + } + class $serializer_646 { + constructor() { + $serializer_instance_646 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.card.v1.KBase', this, 19); + tmp0_serialDesc.addElement_5pzumi_k$('cardType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('cardGoto', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('goto', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('param', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('uri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('threePoint', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('args', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('playerArgs', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('idx', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('adInfo', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + tmp0_serialDesc.addElement_5pzumi_k$('mask', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(13)); + tmp0_serialDesc.addElement_5pzumi_k$('fromType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(14)); + tmp0_serialDesc.addElement_5pzumi_k$('threePointV2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(15)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('threePointV3', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(16)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('descButton', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(17)); + tmp0_serialDesc.addElement_5pzumi_k$('threePointV4', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(18)); + tmp0_serialDesc.addElement_5pzumi_k$('upArgs', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(19)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_659().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_649()), get_nullable($serializer_getInstance_651()), get_nullable($serializer_getInstance_652()), LongSerializer_getInstance(), get_nullable($serializer_getInstance_643()), get_nullable($serializer_getInstance_653()), StringSerializer_getInstance(), tmp0_cached[14], tmp0_cached[15], get_nullable($serializer_getInstance_648()), get_nullable($serializer_getInstance_657()), get_nullable($serializer_getInstance_647())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_local8 = null; + var tmp13_local9 = null; + var tmp14_local10 = new Long(0, 0); + var tmp15_local11 = null; + var tmp16_local12 = null; + var tmp17_local13 = null; + var tmp18_local14 = null; + var tmp19_local15 = null; + var tmp20_local16 = null; + var tmp21_local17 = null; + var tmp22_local18 = null; + var tmp23_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp24_cached = Companion_getInstance_659().$childSerializers_1; + if (tmp23_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp23_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp23_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp23_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp23_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp23_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp23_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp23_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp23_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_649(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp23_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_651(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp23_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 9, $serializer_getInstance_652(), tmp13_local9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp23_input.decodeLongElement_994anb_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp23_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 11, $serializer_getInstance_643(), tmp15_local11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + tmp16_local12 = tmp23_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 12, $serializer_getInstance_653(), tmp16_local12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + tmp17_local13 = tmp23_input.decodeStringElement_3oenpg_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + tmp18_local14 = tmp23_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 14, tmp24_cached[14], tmp18_local14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + tmp19_local15 = tmp23_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 15, tmp24_cached[15], tmp19_local15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + tmp20_local16 = tmp23_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 16, $serializer_getInstance_648(), tmp20_local16); + tmp3_bitMask0 = tmp3_bitMask0 | 65536; + tmp21_local17 = tmp23_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 17, $serializer_getInstance_657(), tmp21_local17); + tmp3_bitMask0 = tmp3_bitMask0 | 131072; + tmp22_local18 = tmp23_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 18, $serializer_getInstance_647(), tmp22_local18); + tmp3_bitMask0 = tmp3_bitMask0 | 262144; + } else + while (tmp1_flag) { + tmp2_index = tmp23_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp23_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp23_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp23_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp23_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp23_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp23_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp23_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp23_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_649(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp23_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_651(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp23_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 9, $serializer_getInstance_652(), tmp13_local9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp23_input.decodeLongElement_994anb_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp23_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 11, $serializer_getInstance_643(), tmp15_local11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + case 12: + tmp16_local12 = tmp23_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 12, $serializer_getInstance_653(), tmp16_local12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + break; + case 13: + tmp17_local13 = tmp23_input.decodeStringElement_3oenpg_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + break; + case 14: + tmp18_local14 = tmp23_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 14, tmp24_cached[14], tmp18_local14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + break; + case 15: + tmp19_local15 = tmp23_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 15, tmp24_cached[15], tmp19_local15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + break; + case 16: + tmp20_local16 = tmp23_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 16, $serializer_getInstance_648(), tmp20_local16); + tmp3_bitMask0 = tmp3_bitMask0 | 65536; + break; + case 17: + tmp21_local17 = tmp23_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 17, $serializer_getInstance_657(), tmp21_local17); + tmp3_bitMask0 = tmp3_bitMask0 | 131072; + break; + case 18: + tmp22_local18 = tmp23_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 18, $serializer_getInstance_647(), tmp22_local18); + tmp3_bitMask0 = tmp3_bitMask0 | 262144; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp23_input.endStructure_1xqz0n_k$(tmp0_desc); + return KBase.new_com_bapis_bilibili_app_card_v1_KBase_i8lkq0_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, tmp18_local14, tmp19_local15, tmp20_local16, tmp21_local17, tmp22_local18, null); + } + serialize_q1nskz_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_659().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.cardType === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.cardType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.cardGoto === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.cardGoto); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.goto === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.goto); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.param === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.param); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.cover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.uri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.uri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.threePoint == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 7, $serializer_getInstance_649(), value.threePoint); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.args == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 8, $serializer_getInstance_651(), value.args); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.playerArgs == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 9, $serializer_getInstance_652(), value.playerArgs); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !value.idx.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 10, value.idx); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.adInfo == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 11, $serializer_getInstance_643(), value.adInfo); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !(value.mask == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 12, $serializer_getInstance_653(), value.mask); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 13) ? true : !(value.fromType === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 13, value.fromType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 14) ? true : !equals(value.threePointV2, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 14, tmp2_cached[14], value.threePointV2); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 15) ? true : !equals(value.threePointV3, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 15, tmp2_cached[15], value.threePointV3); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 16) ? true : !(value.descButton == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 16, $serializer_getInstance_648(), value.descButton); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 17) ? true : !(value.threePointV4 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 17, $serializer_getInstance_657(), value.threePointV4); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 18) ? true : !(value.upArgs == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 18, $serializer_getInstance_647(), value.upArgs); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_q1nskz_k$(encoder, value instanceof KBase ? value : THROW_CCE()); + } + } + class KBase { + constructor(cardType, cardGoto, goto, param, cover, title, uri, threePoint, args, playerArgs, idx, adInfo, mask, fromType, threePointV2, threePointV3, descButton, threePointV4, upArgs) { + Companion_getInstance_659(); + cardType = cardType === VOID ? '' : cardType; + cardGoto = cardGoto === VOID ? '' : cardGoto; + goto = goto === VOID ? '' : goto; + param = param === VOID ? '' : param; + cover = cover === VOID ? '' : cover; + title = title === VOID ? '' : title; + uri = uri === VOID ? '' : uri; + threePoint = threePoint === VOID ? null : threePoint; + args = args === VOID ? null : args; + playerArgs = playerArgs === VOID ? null : playerArgs; + idx = idx === VOID ? new Long(0, 0) : idx; + adInfo = adInfo === VOID ? null : adInfo; + mask = mask === VOID ? null : mask; + fromType = fromType === VOID ? '' : fromType; + threePointV2 = threePointV2 === VOID ? emptyList() : threePointV2; + threePointV3 = threePointV3 === VOID ? emptyList() : threePointV3; + descButton = descButton === VOID ? null : descButton; + threePointV4 = threePointV4 === VOID ? null : threePointV4; + upArgs = upArgs === VOID ? null : upArgs; + this.cardType = cardType; + this.cardGoto = cardGoto; + this.goto = goto; + this.param = param; + this.cover = cover; + this.title = title; + this.uri = uri; + this.threePoint = threePoint; + this.args = args; + this.playerArgs = playerArgs; + this.idx = idx; + this.adInfo = adInfo; + this.mask = mask; + this.fromType = fromType; + this.threePointV2 = threePointV2; + this.threePointV3 = threePointV3; + this.descButton = descButton; + this.threePointV4 = threePointV4; + this.upArgs = upArgs; + } + get_cardType_vxu2tp_k$() { + return this.cardType; + } + get_cardGoto_vy2kys_k$() { + return this.cardGoto; + } + get_goto_womsa4_k$() { + return this.goto; + } + get_param_iwqquc_k$() { + return this.param; + } + get_cover_ipug0e_k$() { + return this.cover; + } + get_title_iz32un_k$() { + return this.title; + } + get_uri_18iuil_k$() { + return this.uri; + } + get_threePoint_wv0qvv_k$() { + return this.threePoint; + } + get_args_woj09y_k$() { + return this.args; + } + get_playerArgs_eh86hz_k$() { + return this.playerArgs; + } + get_idx_18j3qk_k$() { + return this.idx; + } + get_adInfo_avdta2_k$() { + return this.adInfo; + } + get_mask_woqbsl_k$() { + return this.mask; + } + get_fromType_in58el_k$() { + return this.fromType; + } + get_threePointV2_so6oeh_k$() { + return this.threePointV2; + } + get_threePointV3_so6oeg_k$() { + return this.threePointV3; + } + get_descButton_fxt3u4_k$() { + return this.descButton; + } + get_threePointV4_so6oef_k$() { + return this.threePointV4; + } + get_upArgs_kiqrdt_k$() { + return this.upArgs; + } + component1_7eebsc_k$() { + return this.cardType; + } + component2_7eebsb_k$() { + return this.cardGoto; + } + component3_7eebsa_k$() { + return this.goto; + } + component4_7eebs9_k$() { + return this.param; + } + component5_7eebs8_k$() { + return this.cover; + } + component6_7eebs7_k$() { + return this.title; + } + component7_7eebs6_k$() { + return this.uri; + } + component8_7eebs5_k$() { + return this.threePoint; + } + component9_7eebs4_k$() { + return this.args; + } + component10_gazzfo_k$() { + return this.playerArgs; + } + component11_gazzfn_k$() { + return this.idx; + } + component12_gazzfm_k$() { + return this.adInfo; + } + component13_gazzfl_k$() { + return this.mask; + } + component14_gazzfk_k$() { + return this.fromType; + } + component15_gazzfj_k$() { + return this.threePointV2; + } + component16_gazzfi_k$() { + return this.threePointV3; + } + component17_gazzfh_k$() { + return this.descButton; + } + component18_gazzfg_k$() { + return this.threePointV4; + } + component19_gazzff_k$() { + return this.upArgs; + } + copy_kvy5ji_k$(cardType, cardGoto, goto, param, cover, title, uri, threePoint, args, playerArgs, idx, adInfo, mask, fromType, threePointV2, threePointV3, descButton, threePointV4, upArgs) { + return new KBase(cardType, cardGoto, goto, param, cover, title, uri, threePoint, args, playerArgs, idx, adInfo, mask, fromType, threePointV2, threePointV3, descButton, threePointV4, upArgs); + } + copy(cardType, cardGoto, goto, param, cover, title, uri, threePoint, args, playerArgs, idx, adInfo, mask, fromType, threePointV2, threePointV3, descButton, threePointV4, upArgs, $super) { + cardType = cardType === VOID ? this.cardType : cardType; + cardGoto = cardGoto === VOID ? this.cardGoto : cardGoto; + goto = goto === VOID ? this.goto : goto; + param = param === VOID ? this.param : param; + cover = cover === VOID ? this.cover : cover; + title = title === VOID ? this.title : title; + uri = uri === VOID ? this.uri : uri; + threePoint = threePoint === VOID ? this.threePoint : threePoint; + args = args === VOID ? this.args : args; + playerArgs = playerArgs === VOID ? this.playerArgs : playerArgs; + idx = idx === VOID ? this.idx : idx; + adInfo = adInfo === VOID ? this.adInfo : adInfo; + mask = mask === VOID ? this.mask : mask; + fromType = fromType === VOID ? this.fromType : fromType; + threePointV2 = threePointV2 === VOID ? this.threePointV2 : threePointV2; + threePointV3 = threePointV3 === VOID ? this.threePointV3 : threePointV3; + descButton = descButton === VOID ? this.descButton : descButton; + threePointV4 = threePointV4 === VOID ? this.threePointV4 : threePointV4; + upArgs = upArgs === VOID ? this.upArgs : upArgs; + return this.copy_kvy5ji_k$(cardType, cardGoto, goto, param, cover, title, uri, threePoint, args, playerArgs, idx, adInfo, mask, fromType, threePointV2, threePointV3, descButton, threePointV4, upArgs); + } + toString() { + return 'KBase(cardType=' + this.cardType + ', cardGoto=' + this.cardGoto + ', goto=' + this.goto + ', param=' + this.param + ', cover=' + this.cover + ', title=' + this.title + ', uri=' + this.uri + ', threePoint=' + this.threePoint + ', args=' + this.args + ', playerArgs=' + this.playerArgs + ', idx=' + this.idx.toString() + ', adInfo=' + this.adInfo + ', mask=' + this.mask + ', fromType=' + this.fromType + ', threePointV2=' + this.threePointV2 + ', threePointV3=' + this.threePointV3 + ', descButton=' + this.descButton + ', threePointV4=' + this.threePointV4 + ', upArgs=' + this.upArgs + ')'; + } + hashCode() { + var result = getStringHashCode(this.cardType); + result = imul(result, 31) + getStringHashCode(this.cardGoto) | 0; + result = imul(result, 31) + getStringHashCode(this.goto) | 0; + result = imul(result, 31) + getStringHashCode(this.param) | 0; + result = imul(result, 31) + getStringHashCode(this.cover) | 0; + result = imul(result, 31) + getStringHashCode(this.title) | 0; + result = imul(result, 31) + getStringHashCode(this.uri) | 0; + result = imul(result, 31) + (this.threePoint == null ? 0 : this.threePoint.hashCode()) | 0; + result = imul(result, 31) + (this.args == null ? 0 : this.args.hashCode()) | 0; + result = imul(result, 31) + (this.playerArgs == null ? 0 : this.playerArgs.hashCode()) | 0; + result = imul(result, 31) + this.idx.hashCode() | 0; + result = imul(result, 31) + (this.adInfo == null ? 0 : this.adInfo.hashCode()) | 0; + result = imul(result, 31) + (this.mask == null ? 0 : this.mask.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.fromType) | 0; + result = imul(result, 31) + hashCode(this.threePointV2) | 0; + result = imul(result, 31) + hashCode(this.threePointV3) | 0; + result = imul(result, 31) + (this.descButton == null ? 0 : this.descButton.hashCode()) | 0; + result = imul(result, 31) + (this.threePointV4 == null ? 0 : this.threePointV4.hashCode()) | 0; + result = imul(result, 31) + (this.upArgs == null ? 0 : this.upArgs.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KBase)) + return false; + var tmp0_other_with_cast = other instanceof KBase ? other : THROW_CCE(); + if (!(this.cardType === tmp0_other_with_cast.cardType)) + return false; + if (!(this.cardGoto === tmp0_other_with_cast.cardGoto)) + return false; + if (!(this.goto === tmp0_other_with_cast.goto)) + return false; + if (!(this.param === tmp0_other_with_cast.param)) + return false; + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.uri === tmp0_other_with_cast.uri)) + return false; + if (!equals(this.threePoint, tmp0_other_with_cast.threePoint)) + return false; + if (!equals(this.args, tmp0_other_with_cast.args)) + return false; + if (!equals(this.playerArgs, tmp0_other_with_cast.playerArgs)) + return false; + if (!this.idx.equals(tmp0_other_with_cast.idx)) + return false; + if (!equals(this.adInfo, tmp0_other_with_cast.adInfo)) + return false; + if (!equals(this.mask, tmp0_other_with_cast.mask)) + return false; + if (!(this.fromType === tmp0_other_with_cast.fromType)) + return false; + if (!equals(this.threePointV2, tmp0_other_with_cast.threePointV2)) + return false; + if (!equals(this.threePointV3, tmp0_other_with_cast.threePointV3)) + return false; + if (!equals(this.descButton, tmp0_other_with_cast.descButton)) + return false; + if (!equals(this.threePointV4, tmp0_other_with_cast.threePointV4)) + return false; + if (!equals(this.upArgs, tmp0_other_with_cast.upArgs)) + return false; + return true; + } + static new_com_bapis_bilibili_app_card_v1_KBase_i8lkq0_k$(seen1, cardType, cardGoto, goto, param, cover, title, uri, threePoint, args, playerArgs, idx, adInfo, mask, fromType, threePointV2, threePointV3, descButton, threePointV4, upArgs, serializationConstructorMarker) { + Companion_getInstance_659(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_646().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.cardType = ''; + else + $this.cardType = cardType; + if (0 === (seen1 & 2)) + $this.cardGoto = ''; + else + $this.cardGoto = cardGoto; + if (0 === (seen1 & 4)) + $this.goto = ''; + else + $this.goto = goto; + if (0 === (seen1 & 8)) + $this.param = ''; + else + $this.param = param; + if (0 === (seen1 & 16)) + $this.cover = ''; + else + $this.cover = cover; + if (0 === (seen1 & 32)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 64)) + $this.uri = ''; + else + $this.uri = uri; + if (0 === (seen1 & 128)) + $this.threePoint = null; + else + $this.threePoint = threePoint; + if (0 === (seen1 & 256)) + $this.args = null; + else + $this.args = args; + if (0 === (seen1 & 512)) + $this.playerArgs = null; + else + $this.playerArgs = playerArgs; + if (0 === (seen1 & 1024)) + $this.idx = new Long(0, 0); + else + $this.idx = idx; + if (0 === (seen1 & 2048)) + $this.adInfo = null; + else + $this.adInfo = adInfo; + if (0 === (seen1 & 4096)) + $this.mask = null; + else + $this.mask = mask; + if (0 === (seen1 & 8192)) + $this.fromType = ''; + else + $this.fromType = fromType; + if (0 === (seen1 & 16384)) + $this.threePointV2 = emptyList(); + else + $this.threePointV2 = threePointV2; + if (0 === (seen1 & 32768)) + $this.threePointV3 = emptyList(); + else + $this.threePointV3 = threePointV3; + if (0 === (seen1 & 65536)) + $this.descButton = null; + else + $this.descButton = descButton; + if (0 === (seen1 & 131072)) + $this.threePointV4 = null; + else + $this.threePointV4 = threePointV4; + if (0 === (seen1 & 262144)) + $this.upArgs = null; + else + $this.upArgs = upArgs; + return $this; + } + } + class Companion_660 { + constructor() { + this.targetPath = '/bilibili.app.card.v1.UpArgs'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_647(); + } + } + class $serializer_647 { + constructor() { + $serializer_instance_647 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.card.v1.KUpArgs', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('upId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('upName', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('upFace', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('selected', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = new Long(0, 0); + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KUpArgs_0.new_com_bapis_bilibili_app_card_v1_KUpArgs_53r99s_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_1l0l5y_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.upId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.upId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.upName === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.upName); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.upFace === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.upFace); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !value.selected.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 3, value.selected); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_1l0l5y_k$(encoder, value instanceof KUpArgs_0 ? value : THROW_CCE()); + } + } + class KUpArgs_0 { + constructor(upId, upName, upFace, selected) { + Companion_instance_660; + upId = upId === VOID ? new Long(0, 0) : upId; + upName = upName === VOID ? '' : upName; + upFace = upFace === VOID ? '' : upFace; + selected = selected === VOID ? new Long(0, 0) : selected; + this.upId = upId; + this.upName = upName; + this.upFace = upFace; + this.selected = selected; + } + get_upId_wovpsv_k$() { + return this.upId; + } + get_upName_kiypqn_k$() { + return this.upName; + } + get_upFace_kitllt_k$() { + return this.upFace; + } + get_selected_c3i7q4_k$() { + return this.selected; + } + component1_7eebsc_k$() { + return this.upId; + } + component2_7eebsb_k$() { + return this.upName; + } + component3_7eebsa_k$() { + return this.upFace; + } + component4_7eebs9_k$() { + return this.selected; + } + copy_x9icr3_k$(upId, upName, upFace, selected) { + return new KUpArgs_0(upId, upName, upFace, selected); + } + copy(upId, upName, upFace, selected, $super) { + upId = upId === VOID ? this.upId : upId; + upName = upName === VOID ? this.upName : upName; + upFace = upFace === VOID ? this.upFace : upFace; + selected = selected === VOID ? this.selected : selected; + return this.copy_x9icr3_k$(upId, upName, upFace, selected); + } + toString() { + return 'KUpArgs(upId=' + this.upId.toString() + ', upName=' + this.upName + ', upFace=' + this.upFace + ', selected=' + this.selected.toString() + ')'; + } + hashCode() { + var result = this.upId.hashCode(); + result = imul(result, 31) + getStringHashCode(this.upName) | 0; + result = imul(result, 31) + getStringHashCode(this.upFace) | 0; + result = imul(result, 31) + this.selected.hashCode() | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KUpArgs_0)) + return false; + var tmp0_other_with_cast = other instanceof KUpArgs_0 ? other : THROW_CCE(); + if (!this.upId.equals(tmp0_other_with_cast.upId)) + return false; + if (!(this.upName === tmp0_other_with_cast.upName)) + return false; + if (!(this.upFace === tmp0_other_with_cast.upFace)) + return false; + if (!this.selected.equals(tmp0_other_with_cast.selected)) + return false; + return true; + } + static new_com_bapis_bilibili_app_card_v1_KUpArgs_53r99s_k$(seen1, upId, upName, upFace, selected, serializationConstructorMarker) { + Companion_instance_660; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_647().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.upId = new Long(0, 0); + else + $this.upId = upId; + if (0 === (seen1 & 2)) + $this.upName = ''; + else + $this.upName = upName; + if (0 === (seen1 & 4)) + $this.upFace = ''; + else + $this.upFace = upFace; + if (0 === (seen1 & 8)) + $this.selected = new Long(0, 0); + else + $this.selected = selected; + return $this; + } + } + class Companion_661 { + constructor() { + this.targetPath = '/bilibili.app.card.v1.Button'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_648(); + } + } + class $serializer_648 { + constructor() { + $serializer_instance_648 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.card.v1.KButton', this, 8); + tmp0_serialDesc.addElement_5pzumi_k$('text', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('param', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('uri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('event', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('selected', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('eventV2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('relation', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_665())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = 0; + var tmp9_local5 = 0; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp12_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_665(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + } else + while (tmp1_flag) { + tmp2_index = tmp12_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_665(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp12_input.endStructure_1xqz0n_k$(tmp0_desc); + return KButton_3.new_com_bapis_bilibili_app_card_v1_KButton_2pebc5_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null); + } + serialize_75h32k_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.text === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.text); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.param === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.param); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.uri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.uri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.event === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.event); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.selected === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 4, value.selected); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.type === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 5, value.type); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.eventV2 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.eventV2); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.relation == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 7, $serializer_getInstance_665(), value.relation); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_75h32k_k$(encoder, value instanceof KButton_3 ? value : THROW_CCE()); + } + } + class KButton_3 { + constructor(text, param, uri, event, selected, type, eventV2, relation) { + Companion_instance_661; + text = text === VOID ? '' : text; + param = param === VOID ? '' : param; + uri = uri === VOID ? '' : uri; + event = event === VOID ? '' : event; + selected = selected === VOID ? 0 : selected; + type = type === VOID ? 0 : type; + eventV2 = eventV2 === VOID ? '' : eventV2; + relation = relation === VOID ? null : relation; + this.text = text; + this.param = param; + this.uri = uri; + this.event = event; + this.selected = selected; + this.type = type; + this.eventV2 = eventV2; + this.relation = relation; + } + get_text_wouvsm_k$() { + return this.text; + } + get_param_iwqquc_k$() { + return this.param; + } + get_uri_18iuil_k$() { + return this.uri; + } + get_event_ir25pt_k$() { + return this.event; + } + get_selected_c3i7q4_k$() { + return this.selected; + } + get_type_wovaf7_k$() { + return this.type; + } + get_eventV2_lhz9rn_k$() { + return this.eventV2; + } + get_relation_u22tol_k$() { + return this.relation; + } + component1_7eebsc_k$() { + return this.text; + } + component2_7eebsb_k$() { + return this.param; + } + component3_7eebsa_k$() { + return this.uri; + } + component4_7eebs9_k$() { + return this.event; + } + component5_7eebs8_k$() { + return this.selected; + } + component6_7eebs7_k$() { + return this.type; + } + component7_7eebs6_k$() { + return this.eventV2; + } + component8_7eebs5_k$() { + return this.relation; + } + copy_ob1y8z_k$(text, param, uri, event, selected, type, eventV2, relation) { + return new KButton_3(text, param, uri, event, selected, type, eventV2, relation); + } + copy(text, param, uri, event, selected, type, eventV2, relation, $super) { + text = text === VOID ? this.text : text; + param = param === VOID ? this.param : param; + uri = uri === VOID ? this.uri : uri; + event = event === VOID ? this.event : event; + selected = selected === VOID ? this.selected : selected; + type = type === VOID ? this.type : type; + eventV2 = eventV2 === VOID ? this.eventV2 : eventV2; + relation = relation === VOID ? this.relation : relation; + return this.copy_ob1y8z_k$(text, param, uri, event, selected, type, eventV2, relation); + } + toString() { + return 'KButton(text=' + this.text + ', param=' + this.param + ', uri=' + this.uri + ', event=' + this.event + ', selected=' + this.selected + ', type=' + this.type + ', eventV2=' + this.eventV2 + ', relation=' + this.relation + ')'; + } + hashCode() { + var result = getStringHashCode(this.text); + result = imul(result, 31) + getStringHashCode(this.param) | 0; + result = imul(result, 31) + getStringHashCode(this.uri) | 0; + result = imul(result, 31) + getStringHashCode(this.event) | 0; + result = imul(result, 31) + this.selected | 0; + result = imul(result, 31) + this.type | 0; + result = imul(result, 31) + getStringHashCode(this.eventV2) | 0; + result = imul(result, 31) + (this.relation == null ? 0 : this.relation.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KButton_3)) + return false; + var tmp0_other_with_cast = other instanceof KButton_3 ? other : THROW_CCE(); + if (!(this.text === tmp0_other_with_cast.text)) + return false; + if (!(this.param === tmp0_other_with_cast.param)) + return false; + if (!(this.uri === tmp0_other_with_cast.uri)) + return false; + if (!(this.event === tmp0_other_with_cast.event)) + return false; + if (!(this.selected === tmp0_other_with_cast.selected)) + return false; + if (!(this.type === tmp0_other_with_cast.type)) + return false; + if (!(this.eventV2 === tmp0_other_with_cast.eventV2)) + return false; + if (!equals(this.relation, tmp0_other_with_cast.relation)) + return false; + return true; + } + static new_com_bapis_bilibili_app_card_v1_KButton_2pebc5_k$(seen1, text, param, uri, event, selected, type, eventV2, relation, serializationConstructorMarker) { + Companion_instance_661; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_648().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.text = ''; + else + $this.text = text; + if (0 === (seen1 & 2)) + $this.param = ''; + else + $this.param = param; + if (0 === (seen1 & 4)) + $this.uri = ''; + else + $this.uri = uri; + if (0 === (seen1 & 8)) + $this.event = ''; + else + $this.event = event; + if (0 === (seen1 & 16)) + $this.selected = 0; + else + $this.selected = selected; + if (0 === (seen1 & 32)) + $this.type = 0; + else + $this.type = type; + if (0 === (seen1 & 64)) + $this.eventV2 = ''; + else + $this.eventV2 = eventV2; + if (0 === (seen1 & 128)) + $this.relation = null; + else + $this.relation = relation; + return $this; + } + } + class Companion_662 { + constructor() { + Companion_instance_662 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer($serializer_getInstance_650()), new ArrayListSerializer($serializer_getInstance_650()), null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.card.v1.ThreePoint'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_649(); + } + } + class $serializer_649 { + constructor() { + $serializer_instance_649 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.card.v1.KThreePoint', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('dislikeReasons', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('feedbacks', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('watchLater', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_662().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0], tmp0_cached[1], IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = 0; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp8_cached = Companion_getInstance_662().$childSerializers_1; + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp8_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp8_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp8_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp8_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KThreePoint_0.new_com_bapis_bilibili_app_card_v1_KThreePoint_l74y3s_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_q9uhnw_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_662().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.dislikeReasons, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.dislikeReasons); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !equals(value.feedbacks, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 1, tmp2_cached[1], value.feedbacks); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.watchLater === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.watchLater); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_q9uhnw_k$(encoder, value instanceof KThreePoint_0 ? value : THROW_CCE()); + } + } + class KThreePoint_0 { + constructor(dislikeReasons, feedbacks, watchLater) { + Companion_getInstance_662(); + dislikeReasons = dislikeReasons === VOID ? emptyList() : dislikeReasons; + feedbacks = feedbacks === VOID ? emptyList() : feedbacks; + watchLater = watchLater === VOID ? 0 : watchLater; + this.dislikeReasons = dislikeReasons; + this.feedbacks = feedbacks; + this.watchLater = watchLater; + } + get_dislikeReasons_tdrsj1_k$() { + return this.dislikeReasons; + } + get_feedbacks_imtvrv_k$() { + return this.feedbacks; + } + get_watchLater_m4hv96_k$() { + return this.watchLater; + } + component1_7eebsc_k$() { + return this.dislikeReasons; + } + component2_7eebsb_k$() { + return this.feedbacks; + } + component3_7eebsa_k$() { + return this.watchLater; + } + copy_xnpwl3_k$(dislikeReasons, feedbacks, watchLater) { + return new KThreePoint_0(dislikeReasons, feedbacks, watchLater); + } + copy(dislikeReasons, feedbacks, watchLater, $super) { + dislikeReasons = dislikeReasons === VOID ? this.dislikeReasons : dislikeReasons; + feedbacks = feedbacks === VOID ? this.feedbacks : feedbacks; + watchLater = watchLater === VOID ? this.watchLater : watchLater; + return this.copy_xnpwl3_k$(dislikeReasons, feedbacks, watchLater); + } + toString() { + return 'KThreePoint(dislikeReasons=' + this.dislikeReasons + ', feedbacks=' + this.feedbacks + ', watchLater=' + this.watchLater + ')'; + } + hashCode() { + var result = hashCode(this.dislikeReasons); + result = imul(result, 31) + hashCode(this.feedbacks) | 0; + result = imul(result, 31) + this.watchLater | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KThreePoint_0)) + return false; + var tmp0_other_with_cast = other instanceof KThreePoint_0 ? other : THROW_CCE(); + if (!equals(this.dislikeReasons, tmp0_other_with_cast.dislikeReasons)) + return false; + if (!equals(this.feedbacks, tmp0_other_with_cast.feedbacks)) + return false; + if (!(this.watchLater === tmp0_other_with_cast.watchLater)) + return false; + return true; + } + static new_com_bapis_bilibili_app_card_v1_KThreePoint_l74y3s_k$(seen1, dislikeReasons, feedbacks, watchLater, serializationConstructorMarker) { + Companion_getInstance_662(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_649().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.dislikeReasons = emptyList(); + else + $this.dislikeReasons = dislikeReasons; + if (0 === (seen1 & 2)) + $this.feedbacks = emptyList(); + else + $this.feedbacks = feedbacks; + if (0 === (seen1 & 4)) + $this.watchLater = 0; + else + $this.watchLater = watchLater; + return $this; + } + } + class Companion_663 { + constructor() { + this.targetPath = '/bilibili.app.card.v1.DislikeReason'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_650(); + } + } + class $serializer_650 { + constructor() { + $serializer_instance_650 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.card.v1.KDislikeReason', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('id', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('name', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KDislikeReason_0.new_com_bapis_bilibili_app_card_v1_KDislikeReason_1jigc4_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_cmvt7l_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.id.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.id); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.name === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.name); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_cmvt7l_k$(encoder, value instanceof KDislikeReason_0 ? value : THROW_CCE()); + } + } + class KDislikeReason_0 { + constructor(id, name) { + Companion_instance_663; + id = id === VOID ? new Long(0, 0) : id; + name = name === VOID ? '' : name; + this.id = id; + this.name = name; + } + get_id_kntnx8_k$() { + return this.id; + } + get_name_woqyms_k$() { + return this.name; + } + component1_7eebsc_k$() { + return this.id; + } + component2_7eebsb_k$() { + return this.name; + } + copy_ezpntz_k$(id, name) { + return new KDislikeReason_0(id, name); + } + copy(id, name, $super) { + id = id === VOID ? this.id : id; + name = name === VOID ? this.name : name; + return this.copy_ezpntz_k$(id, name); + } + toString() { + return 'KDislikeReason(id=' + this.id.toString() + ', name=' + this.name + ')'; + } + hashCode() { + var result = this.id.hashCode(); + result = imul(result, 31) + getStringHashCode(this.name) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KDislikeReason_0)) + return false; + var tmp0_other_with_cast = other instanceof KDislikeReason_0 ? other : THROW_CCE(); + if (!this.id.equals(tmp0_other_with_cast.id)) + return false; + if (!(this.name === tmp0_other_with_cast.name)) + return false; + return true; + } + static new_com_bapis_bilibili_app_card_v1_KDislikeReason_1jigc4_k$(seen1, id, name, serializationConstructorMarker) { + Companion_instance_663; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_650().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.id = new Long(0, 0); + else + $this.id = id; + if (0 === (seen1 & 2)) + $this.name = ''; + else + $this.name = name; + return $this; + } + } + class Companion_664 { + constructor() { + this.targetPath = '/bilibili.app.card.v1.Args'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_651(); + } + } + class $serializer_651 { + constructor() { + $serializer_instance_651 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.card.v1.KArgs', this, 11); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('upId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('upName', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('rid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('rname', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('tid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('tname', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('trackId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('state', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('convergeType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('aid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = new Long(0, 0); + var tmp6_local2 = null; + var tmp7_local3 = 0; + var tmp8_local4 = null; + var tmp9_local5 = new Long(0, 0); + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_local8 = null; + var tmp13_local9 = 0; + var tmp14_local10 = new Long(0, 0); + var tmp15_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp15_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + } else + while (tmp1_flag) { + tmp2_index = tmp15_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp15_input.endStructure_1xqz0n_k$(tmp0_desc); + return KArgs_0.new_com_bapis_bilibili_app_card_v1_KArgs_6kg356_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, null); + } + serialize_c3skqn_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.type === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.type); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.upId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.upId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.upName === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.upName); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.rid === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 3, value.rid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.rname === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.rname); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !value.tid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 5, value.tid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.tname === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.tname); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.trackId === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.trackId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.state === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 8, value.state); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.convergeType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 9, value.convergeType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !value.aid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 10, value.aid); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_c3skqn_k$(encoder, value instanceof KArgs_0 ? value : THROW_CCE()); + } + } + class KArgs_0 { + constructor(type, upId, upName, rid, rname, tid, tname, trackId, state, convergeType, aid) { + Companion_instance_664; + type = type === VOID ? 0 : type; + upId = upId === VOID ? new Long(0, 0) : upId; + upName = upName === VOID ? '' : upName; + rid = rid === VOID ? 0 : rid; + rname = rname === VOID ? '' : rname; + tid = tid === VOID ? new Long(0, 0) : tid; + tname = tname === VOID ? '' : tname; + trackId = trackId === VOID ? '' : trackId; + state = state === VOID ? '' : state; + convergeType = convergeType === VOID ? 0 : convergeType; + aid = aid === VOID ? new Long(0, 0) : aid; + this.type = type; + this.upId = upId; + this.upName = upName; + this.rid = rid; + this.rname = rname; + this.tid = tid; + this.tname = tname; + this.trackId = trackId; + this.state = state; + this.convergeType = convergeType; + this.aid = aid; + } + get_type_wovaf7_k$() { + return this.type; + } + get_upId_wovpsv_k$() { + return this.upId; + } + get_upName_kiypqn_k$() { + return this.upName; + } + get_rid_18iwyk_k$() { + return this.rid; + } + get_rname_iy2aj8_k$() { + return this.rname; + } + get_tid_18ivh6_k$() { + return this.tid; + } + get_tname_iz5vpy_k$() { + return this.tname; + } + get_trackId_gdy23n_k$() { + return this.trackId; + } + get_state_iypx7s_k$() { + return this.state; + } + get_convergeType_b5bzj6_k$() { + return this.convergeType; + } + get_aid_18j9kd_k$() { + return this.aid; + } + component1_7eebsc_k$() { + return this.type; + } + component2_7eebsb_k$() { + return this.upId; + } + component3_7eebsa_k$() { + return this.upName; + } + component4_7eebs9_k$() { + return this.rid; + } + component5_7eebs8_k$() { + return this.rname; + } + component6_7eebs7_k$() { + return this.tid; + } + component7_7eebs6_k$() { + return this.tname; + } + component8_7eebs5_k$() { + return this.trackId; + } + component9_7eebs4_k$() { + return this.state; + } + component10_gazzfo_k$() { + return this.convergeType; + } + component11_gazzfn_k$() { + return this.aid; + } + copy_nqa5bf_k$(type, upId, upName, rid, rname, tid, tname, trackId, state, convergeType, aid) { + return new KArgs_0(type, upId, upName, rid, rname, tid, tname, trackId, state, convergeType, aid); + } + copy(type, upId, upName, rid, rname, tid, tname, trackId, state, convergeType, aid, $super) { + type = type === VOID ? this.type : type; + upId = upId === VOID ? this.upId : upId; + upName = upName === VOID ? this.upName : upName; + rid = rid === VOID ? this.rid : rid; + rname = rname === VOID ? this.rname : rname; + tid = tid === VOID ? this.tid : tid; + tname = tname === VOID ? this.tname : tname; + trackId = trackId === VOID ? this.trackId : trackId; + state = state === VOID ? this.state : state; + convergeType = convergeType === VOID ? this.convergeType : convergeType; + aid = aid === VOID ? this.aid : aid; + return this.copy_nqa5bf_k$(type, upId, upName, rid, rname, tid, tname, trackId, state, convergeType, aid); + } + toString() { + return 'KArgs(type=' + this.type + ', upId=' + this.upId.toString() + ', upName=' + this.upName + ', rid=' + this.rid + ', rname=' + this.rname + ', tid=' + this.tid.toString() + ', tname=' + this.tname + ', trackId=' + this.trackId + ', state=' + this.state + ', convergeType=' + this.convergeType + ', aid=' + this.aid.toString() + ')'; + } + hashCode() { + var result = this.type; + result = imul(result, 31) + this.upId.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.upName) | 0; + result = imul(result, 31) + this.rid | 0; + result = imul(result, 31) + getStringHashCode(this.rname) | 0; + result = imul(result, 31) + this.tid.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.tname) | 0; + result = imul(result, 31) + getStringHashCode(this.trackId) | 0; + result = imul(result, 31) + getStringHashCode(this.state) | 0; + result = imul(result, 31) + this.convergeType | 0; + result = imul(result, 31) + this.aid.hashCode() | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KArgs_0)) + return false; + var tmp0_other_with_cast = other instanceof KArgs_0 ? other : THROW_CCE(); + if (!(this.type === tmp0_other_with_cast.type)) + return false; + if (!this.upId.equals(tmp0_other_with_cast.upId)) + return false; + if (!(this.upName === tmp0_other_with_cast.upName)) + return false; + if (!(this.rid === tmp0_other_with_cast.rid)) + return false; + if (!(this.rname === tmp0_other_with_cast.rname)) + return false; + if (!this.tid.equals(tmp0_other_with_cast.tid)) + return false; + if (!(this.tname === tmp0_other_with_cast.tname)) + return false; + if (!(this.trackId === tmp0_other_with_cast.trackId)) + return false; + if (!(this.state === tmp0_other_with_cast.state)) + return false; + if (!(this.convergeType === tmp0_other_with_cast.convergeType)) + return false; + if (!this.aid.equals(tmp0_other_with_cast.aid)) + return false; + return true; + } + static new_com_bapis_bilibili_app_card_v1_KArgs_6kg356_k$(seen1, type, upId, upName, rid, rname, tid, tname, trackId, state, convergeType, aid, serializationConstructorMarker) { + Companion_instance_664; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_651().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.type = 0; + else + $this.type = type; + if (0 === (seen1 & 2)) + $this.upId = new Long(0, 0); + else + $this.upId = upId; + if (0 === (seen1 & 4)) + $this.upName = ''; + else + $this.upName = upName; + if (0 === (seen1 & 8)) + $this.rid = 0; + else + $this.rid = rid; + if (0 === (seen1 & 16)) + $this.rname = ''; + else + $this.rname = rname; + if (0 === (seen1 & 32)) + $this.tid = new Long(0, 0); + else + $this.tid = tid; + if (0 === (seen1 & 64)) + $this.tname = ''; + else + $this.tname = tname; + if (0 === (seen1 & 128)) + $this.trackId = ''; + else + $this.trackId = trackId; + if (0 === (seen1 & 256)) + $this.state = ''; + else + $this.state = state; + if (0 === (seen1 & 512)) + $this.convergeType = 0; + else + $this.convergeType = convergeType; + if (0 === (seen1 & 1024)) + $this.aid = new Long(0, 0); + else + $this.aid = aid; + return $this; + } + } + class Companion_665 { + constructor() { + this.targetPath = '/bilibili.app.card.v1.PlayerArgs'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_652(); + } + } + class $serializer_652 { + constructor() { + $serializer_instance_652 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.card.v1.KPlayerArgs', this, 10); + tmp0_serialDesc.addElement_5pzumi_k$('isLive', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('aid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('cid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('subType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('roomId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('epId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('isPreview', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('duration', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('seasonId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = new Long(0, 0); + var tmp6_local2 = new Long(0, 0); + var tmp7_local3 = 0; + var tmp8_local4 = new Long(0, 0); + var tmp9_local5 = new Long(0, 0); + var tmp10_local6 = 0; + var tmp11_local7 = null; + var tmp12_local8 = new Long(0, 0); + var tmp13_local9 = new Long(0, 0); + var tmp14_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp14_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + } else + while (tmp1_flag) { + tmp2_index = tmp14_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp14_input.endStructure_1xqz0n_k$(tmp0_desc); + return KPlayerArgs_1.new_com_bapis_bilibili_app_card_v1_KPlayerArgs_uivv09_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, null); + } + serialize_7pmt28_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.isLive === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.isLive); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.aid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.aid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.cid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.cid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.subType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 3, value.subType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !value.roomId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 4, value.roomId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !value.epId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 5, value.epId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.isPreview === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 6, value.isPreview); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.type === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.type); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !value.duration.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 8, value.duration); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !value.seasonId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 9, value.seasonId); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_7pmt28_k$(encoder, value instanceof KPlayerArgs_1 ? value : THROW_CCE()); + } + } + class KPlayerArgs_1 { + constructor(isLive, aid, cid, subType, roomId, epId, isPreview, type, duration, seasonId) { + Companion_instance_665; + isLive = isLive === VOID ? 0 : isLive; + aid = aid === VOID ? new Long(0, 0) : aid; + cid = cid === VOID ? new Long(0, 0) : cid; + subType = subType === VOID ? 0 : subType; + roomId = roomId === VOID ? new Long(0, 0) : roomId; + epId = epId === VOID ? new Long(0, 0) : epId; + isPreview = isPreview === VOID ? 0 : isPreview; + type = type === VOID ? '' : type; + duration = duration === VOID ? new Long(0, 0) : duration; + seasonId = seasonId === VOID ? new Long(0, 0) : seasonId; + this.isLive = isLive; + this.aid = aid; + this.cid = cid; + this.subType = subType; + this.roomId = roomId; + this.epId = epId; + this.isPreview = isPreview; + this.type = type; + this.duration = duration; + this.seasonId = seasonId; + } + get_isLive_ew1iyn_k$() { + return this.isLive; + } + get_aid_18j9kd_k$() { + return this.aid; + } + get_cid_18j82z_k$() { + return this.cid; + } + get_subType_tmwy1b_k$() { + return this.subType; + } + get_roomId_j3vckf_k$() { + return this.roomId; + } + get_epId_woli0f_k$() { + return this.epId; + } + get_isPreview_6c3nmz_k$() { + return this.isPreview; + } + get_type_wovaf7_k$() { + return this.type; + } + get_duration_6a6kpp_k$() { + return this.duration; + } + get_seasonId_h33f15_k$() { + return this.seasonId; + } + component1_7eebsc_k$() { + return this.isLive; + } + component2_7eebsb_k$() { + return this.aid; + } + component3_7eebsa_k$() { + return this.cid; + } + component4_7eebs9_k$() { + return this.subType; + } + component5_7eebs8_k$() { + return this.roomId; + } + component6_7eebs7_k$() { + return this.epId; + } + component7_7eebs6_k$() { + return this.isPreview; + } + component8_7eebs5_k$() { + return this.type; + } + component9_7eebs4_k$() { + return this.duration; + } + component10_gazzfo_k$() { + return this.seasonId; + } + copy_t7j7rn_k$(isLive, aid, cid, subType, roomId, epId, isPreview, type, duration, seasonId) { + return new KPlayerArgs_1(isLive, aid, cid, subType, roomId, epId, isPreview, type, duration, seasonId); + } + copy(isLive, aid, cid, subType, roomId, epId, isPreview, type, duration, seasonId, $super) { + isLive = isLive === VOID ? this.isLive : isLive; + aid = aid === VOID ? this.aid : aid; + cid = cid === VOID ? this.cid : cid; + subType = subType === VOID ? this.subType : subType; + roomId = roomId === VOID ? this.roomId : roomId; + epId = epId === VOID ? this.epId : epId; + isPreview = isPreview === VOID ? this.isPreview : isPreview; + type = type === VOID ? this.type : type; + duration = duration === VOID ? this.duration : duration; + seasonId = seasonId === VOID ? this.seasonId : seasonId; + return this.copy_t7j7rn_k$(isLive, aid, cid, subType, roomId, epId, isPreview, type, duration, seasonId); + } + toString() { + return 'KPlayerArgs(isLive=' + this.isLive + ', aid=' + this.aid.toString() + ', cid=' + this.cid.toString() + ', subType=' + this.subType + ', roomId=' + this.roomId.toString() + ', epId=' + this.epId.toString() + ', isPreview=' + this.isPreview + ', type=' + this.type + ', duration=' + this.duration.toString() + ', seasonId=' + this.seasonId.toString() + ')'; + } + hashCode() { + var result = this.isLive; + result = imul(result, 31) + this.aid.hashCode() | 0; + result = imul(result, 31) + this.cid.hashCode() | 0; + result = imul(result, 31) + this.subType | 0; + result = imul(result, 31) + this.roomId.hashCode() | 0; + result = imul(result, 31) + this.epId.hashCode() | 0; + result = imul(result, 31) + this.isPreview | 0; + result = imul(result, 31) + getStringHashCode(this.type) | 0; + result = imul(result, 31) + this.duration.hashCode() | 0; + result = imul(result, 31) + this.seasonId.hashCode() | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KPlayerArgs_1)) + return false; + var tmp0_other_with_cast = other instanceof KPlayerArgs_1 ? other : THROW_CCE(); + if (!(this.isLive === tmp0_other_with_cast.isLive)) + return false; + if (!this.aid.equals(tmp0_other_with_cast.aid)) + return false; + if (!this.cid.equals(tmp0_other_with_cast.cid)) + return false; + if (!(this.subType === tmp0_other_with_cast.subType)) + return false; + if (!this.roomId.equals(tmp0_other_with_cast.roomId)) + return false; + if (!this.epId.equals(tmp0_other_with_cast.epId)) + return false; + if (!(this.isPreview === tmp0_other_with_cast.isPreview)) + return false; + if (!(this.type === tmp0_other_with_cast.type)) + return false; + if (!this.duration.equals(tmp0_other_with_cast.duration)) + return false; + if (!this.seasonId.equals(tmp0_other_with_cast.seasonId)) + return false; + return true; + } + static new_com_bapis_bilibili_app_card_v1_KPlayerArgs_uivv09_k$(seen1, isLive, aid, cid, subType, roomId, epId, isPreview, type, duration, seasonId, serializationConstructorMarker) { + Companion_instance_665; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_652().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.isLive = 0; + else + $this.isLive = isLive; + if (0 === (seen1 & 2)) + $this.aid = new Long(0, 0); + else + $this.aid = aid; + if (0 === (seen1 & 4)) + $this.cid = new Long(0, 0); + else + $this.cid = cid; + if (0 === (seen1 & 8)) + $this.subType = 0; + else + $this.subType = subType; + if (0 === (seen1 & 16)) + $this.roomId = new Long(0, 0); + else + $this.roomId = roomId; + if (0 === (seen1 & 32)) + $this.epId = new Long(0, 0); + else + $this.epId = epId; + if (0 === (seen1 & 64)) + $this.isPreview = 0; + else + $this.isPreview = isPreview; + if (0 === (seen1 & 128)) + $this.type = ''; + else + $this.type = type; + if (0 === (seen1 & 256)) + $this.duration = new Long(0, 0); + else + $this.duration = duration; + if (0 === (seen1 & 512)) + $this.seasonId = new Long(0, 0); + else + $this.seasonId = seasonId; + return $this; + } + } + class Companion_666 { + constructor() { + this.targetPath = '/bilibili.app.card.v1.Mask'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_653(); + } + } + class $serializer_653 { + constructor() { + $serializer_instance_653 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.card.v1.KMask', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('avatar', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('button', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_654()), get_nullable($serializer_getInstance_648())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_654(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_648(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_654(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_648(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KMask_0.new_com_bapis_bilibili_app_card_v1_KMask_pb4slj_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_chsc5u_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.avatar == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_654(), value.avatar); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.button == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_648(), value.button); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_chsc5u_k$(encoder, value instanceof KMask_0 ? value : THROW_CCE()); + } + } + class KMask_0 { + constructor(avatar, button) { + Companion_instance_666; + avatar = avatar === VOID ? null : avatar; + button = button === VOID ? null : button; + this.avatar = avatar; + this.button = button; + } + get_avatar_b5pjz6_k$() { + return this.avatar; + } + get_button_bmjiuz_k$() { + return this.button; + } + component1_7eebsc_k$() { + return this.avatar; + } + component2_7eebsb_k$() { + return this.button; + } + copy_534pqq_k$(avatar, button) { + return new KMask_0(avatar, button); + } + copy(avatar, button, $super) { + avatar = avatar === VOID ? this.avatar : avatar; + button = button === VOID ? this.button : button; + return this.copy_534pqq_k$(avatar, button); + } + toString() { + return 'KMask(avatar=' + this.avatar + ', button=' + this.button + ')'; + } + hashCode() { + var result = this.avatar == null ? 0 : this.avatar.hashCode(); + result = imul(result, 31) + (this.button == null ? 0 : this.button.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KMask_0)) + return false; + var tmp0_other_with_cast = other instanceof KMask_0 ? other : THROW_CCE(); + if (!equals(this.avatar, tmp0_other_with_cast.avatar)) + return false; + if (!equals(this.button, tmp0_other_with_cast.button)) + return false; + return true; + } + static new_com_bapis_bilibili_app_card_v1_KMask_pb4slj_k$(seen1, avatar, button, serializationConstructorMarker) { + Companion_instance_666; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_653().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.avatar = null; + else + $this.avatar = avatar; + if (0 === (seen1 & 2)) + $this.button = null; + else + $this.button = button; + return $this; + } + } + class Companion_667 { + constructor() { + this.targetPath = '/bilibili.app.card.v1.Avatar'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_654(); + } + } + class $serializer_654 { + constructor() { + $serializer_instance_654 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.card.v1.KAvatar', this, 7); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('text', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('uri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('event', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('eventV2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('defalutCover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = 0; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = 0; + var tmp11_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp11_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + } else + while (tmp1_flag) { + tmp2_index = tmp11_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp11_input.endStructure_1xqz0n_k$(tmp0_desc); + return KAvatar_0.new_com_bapis_bilibili_app_card_v1_KAvatar_h352yu_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, null); + } + serialize_6l5mx1_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.cover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.text === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.text); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.uri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.uri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.type === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 3, value.type); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.event === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.event); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.eventV2 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.eventV2); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.defalutCover === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 6, value.defalutCover); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_6l5mx1_k$(encoder, value instanceof KAvatar_0 ? value : THROW_CCE()); + } + } + class KAvatar_0 { + constructor(cover, text, uri, type, event, eventV2, defalutCover) { + Companion_instance_667; + cover = cover === VOID ? '' : cover; + text = text === VOID ? '' : text; + uri = uri === VOID ? '' : uri; + type = type === VOID ? 0 : type; + event = event === VOID ? '' : event; + eventV2 = eventV2 === VOID ? '' : eventV2; + defalutCover = defalutCover === VOID ? 0 : defalutCover; + this.cover = cover; + this.text = text; + this.uri = uri; + this.type = type; + this.event = event; + this.eventV2 = eventV2; + this.defalutCover = defalutCover; + } + get_cover_ipug0e_k$() { + return this.cover; + } + get_text_wouvsm_k$() { + return this.text; + } + get_uri_18iuil_k$() { + return this.uri; + } + get_type_wovaf7_k$() { + return this.type; + } + get_event_ir25pt_k$() { + return this.event; + } + get_eventV2_lhz9rn_k$() { + return this.eventV2; + } + get_defalutCover_844ecx_k$() { + return this.defalutCover; + } + component1_7eebsc_k$() { + return this.cover; + } + component2_7eebsb_k$() { + return this.text; + } + component3_7eebsa_k$() { + return this.uri; + } + component4_7eebs9_k$() { + return this.type; + } + component5_7eebs8_k$() { + return this.event; + } + component6_7eebs7_k$() { + return this.eventV2; + } + component7_7eebs6_k$() { + return this.defalutCover; + } + copy_3h7s85_k$(cover, text, uri, type, event, eventV2, defalutCover) { + return new KAvatar_0(cover, text, uri, type, event, eventV2, defalutCover); + } + copy(cover, text, uri, type, event, eventV2, defalutCover, $super) { + cover = cover === VOID ? this.cover : cover; + text = text === VOID ? this.text : text; + uri = uri === VOID ? this.uri : uri; + type = type === VOID ? this.type : type; + event = event === VOID ? this.event : event; + eventV2 = eventV2 === VOID ? this.eventV2 : eventV2; + defalutCover = defalutCover === VOID ? this.defalutCover : defalutCover; + return this.copy_3h7s85_k$(cover, text, uri, type, event, eventV2, defalutCover); + } + toString() { + return 'KAvatar(cover=' + this.cover + ', text=' + this.text + ', uri=' + this.uri + ', type=' + this.type + ', event=' + this.event + ', eventV2=' + this.eventV2 + ', defalutCover=' + this.defalutCover + ')'; + } + hashCode() { + var result = getStringHashCode(this.cover); + result = imul(result, 31) + getStringHashCode(this.text) | 0; + result = imul(result, 31) + getStringHashCode(this.uri) | 0; + result = imul(result, 31) + this.type | 0; + result = imul(result, 31) + getStringHashCode(this.event) | 0; + result = imul(result, 31) + getStringHashCode(this.eventV2) | 0; + result = imul(result, 31) + this.defalutCover | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KAvatar_0)) + return false; + var tmp0_other_with_cast = other instanceof KAvatar_0 ? other : THROW_CCE(); + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + if (!(this.text === tmp0_other_with_cast.text)) + return false; + if (!(this.uri === tmp0_other_with_cast.uri)) + return false; + if (!(this.type === tmp0_other_with_cast.type)) + return false; + if (!(this.event === tmp0_other_with_cast.event)) + return false; + if (!(this.eventV2 === tmp0_other_with_cast.eventV2)) + return false; + if (!(this.defalutCover === tmp0_other_with_cast.defalutCover)) + return false; + return true; + } + static new_com_bapis_bilibili_app_card_v1_KAvatar_h352yu_k$(seen1, cover, text, uri, type, event, eventV2, defalutCover, serializationConstructorMarker) { + Companion_instance_667; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_654().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.cover = ''; + else + $this.cover = cover; + if (0 === (seen1 & 2)) + $this.text = ''; + else + $this.text = text; + if (0 === (seen1 & 4)) + $this.uri = ''; + else + $this.uri = uri; + if (0 === (seen1 & 8)) + $this.type = 0; + else + $this.type = type; + if (0 === (seen1 & 16)) + $this.event = ''; + else + $this.event = event; + if (0 === (seen1 & 32)) + $this.eventV2 = ''; + else + $this.eventV2 = eventV2; + if (0 === (seen1 & 64)) + $this.defalutCover = 0; + else + $this.defalutCover = defalutCover; + return $this; + } + } + class Companion_668 { + constructor() { + Companion_instance_668 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, new ArrayListSerializer($serializer_getInstance_650()), null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.card.v1.ThreePointV2'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_655(); + } + } + class $serializer_655 { + constructor() { + $serializer_instance_655 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.card.v1.KThreePointV2', this, 5); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('subtitle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('reasons', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('id', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_668().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), tmp0_cached[2], StringSerializer_getInstance(), LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = new Long(0, 0); + var tmp9_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp10_cached = Companion_getInstance_668().$childSerializers_1; + if (tmp9_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp9_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp10_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + } else + while (tmp1_flag) { + tmp2_index = tmp9_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp9_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp10_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp9_input.endStructure_1xqz0n_k$(tmp0_desc); + return KThreePointV2_0.new_com_bapis_bilibili_app_card_v1_KThreePointV2_wvhz14_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); + } + serialize_kcdt2o_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_668().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.subtitle === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.subtitle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !equals(value.reasons, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 2, tmp2_cached[2], value.reasons); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.type === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.type); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !value.id.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 4, value.id); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_kcdt2o_k$(encoder, value instanceof KThreePointV2_0 ? value : THROW_CCE()); + } + } + class KThreePointV2_0 { + constructor(title, subtitle, reasons, type, id) { + Companion_getInstance_668(); + title = title === VOID ? '' : title; + subtitle = subtitle === VOID ? '' : subtitle; + reasons = reasons === VOID ? emptyList() : reasons; + type = type === VOID ? '' : type; + id = id === VOID ? new Long(0, 0) : id; + this.title = title; + this.subtitle = subtitle; + this.reasons = reasons; + this.type = type; + this.id = id; + } + get_title_iz32un_k$() { + return this.title; + } + get_subtitle_55eoyp_k$() { + return this.subtitle; + } + get_reasons_j52nye_k$() { + return this.reasons; + } + get_type_wovaf7_k$() { + return this.type; + } + get_id_kntnx8_k$() { + return this.id; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.subtitle; + } + component3_7eebsa_k$() { + return this.reasons; + } + component4_7eebs9_k$() { + return this.type; + } + component5_7eebs8_k$() { + return this.id; + } + copy_7orasj_k$(title, subtitle, reasons, type, id) { + return new KThreePointV2_0(title, subtitle, reasons, type, id); + } + copy(title, subtitle, reasons, type, id, $super) { + title = title === VOID ? this.title : title; + subtitle = subtitle === VOID ? this.subtitle : subtitle; + reasons = reasons === VOID ? this.reasons : reasons; + type = type === VOID ? this.type : type; + id = id === VOID ? this.id : id; + return this.copy_7orasj_k$(title, subtitle, reasons, type, id); + } + toString() { + return 'KThreePointV2(title=' + this.title + ', subtitle=' + this.subtitle + ', reasons=' + this.reasons + ', type=' + this.type + ', id=' + this.id.toString() + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.subtitle) | 0; + result = imul(result, 31) + hashCode(this.reasons) | 0; + result = imul(result, 31) + getStringHashCode(this.type) | 0; + result = imul(result, 31) + this.id.hashCode() | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KThreePointV2_0)) + return false; + var tmp0_other_with_cast = other instanceof KThreePointV2_0 ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.subtitle === tmp0_other_with_cast.subtitle)) + return false; + if (!equals(this.reasons, tmp0_other_with_cast.reasons)) + return false; + if (!(this.type === tmp0_other_with_cast.type)) + return false; + if (!this.id.equals(tmp0_other_with_cast.id)) + return false; + return true; + } + static new_com_bapis_bilibili_app_card_v1_KThreePointV2_wvhz14_k$(seen1, title, subtitle, reasons, type, id, serializationConstructorMarker) { + Companion_getInstance_668(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_655().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.subtitle = ''; + else + $this.subtitle = subtitle; + if (0 === (seen1 & 4)) + $this.reasons = emptyList(); + else + $this.reasons = reasons; + if (0 === (seen1 & 8)) + $this.type = ''; + else + $this.type = type; + if (0 === (seen1 & 16)) + $this.id = new Long(0, 0); + else + $this.id = id; + return $this; + } + } + class Companion_669 { + constructor() { + Companion_instance_669 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, new ArrayListSerializer($serializer_getInstance_650()), null, null, null, null, null, null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.card.v1.ThreePointV3'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_656(); + } + } + class $serializer_656 { + constructor() { + $serializer_instance_656 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.card.v1.KThreePointV3', this, 11); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('selectedTitle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('subtitle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('reasons', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('id', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('selected', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('icon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('selectedIcon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('url', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('defaultId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_669().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), tmp0_cached[3], StringSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = new Long(0, 0); + var tmp10_local6 = 0; + var tmp11_local7 = null; + var tmp12_local8 = null; + var tmp13_local9 = null; + var tmp14_local10 = 0; + var tmp15_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp16_cached = Companion_getInstance_669().$childSerializers_1; + if (tmp15_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp15_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 3, tmp16_cached[3], tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + } else + while (tmp1_flag) { + tmp2_index = tmp15_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp15_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 3, tmp16_cached[3], tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp15_input.endStructure_1xqz0n_k$(tmp0_desc); + return KThreePointV3_0.new_com_bapis_bilibili_app_card_v1_KThreePointV3_isi051_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, null); + } + serialize_ok1p1t_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_669().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.selectedTitle === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.selectedTitle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.subtitle === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.subtitle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !equals(value.reasons, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 3, tmp2_cached[3], value.reasons); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.type === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.type); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !value.id.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 5, value.id); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.selected === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 6, value.selected); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.icon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.icon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.selectedIcon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 8, value.selectedIcon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.url === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 9, value.url); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.defaultId === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 10, value.defaultId); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_ok1p1t_k$(encoder, value instanceof KThreePointV3_0 ? value : THROW_CCE()); + } + } + class KThreePointV3_0 { + constructor(title, selectedTitle, subtitle, reasons, type, id, selected, icon, selectedIcon, url, defaultId) { + Companion_getInstance_669(); + title = title === VOID ? '' : title; + selectedTitle = selectedTitle === VOID ? '' : selectedTitle; + subtitle = subtitle === VOID ? '' : subtitle; + reasons = reasons === VOID ? emptyList() : reasons; + type = type === VOID ? '' : type; + id = id === VOID ? new Long(0, 0) : id; + selected = selected === VOID ? 0 : selected; + icon = icon === VOID ? '' : icon; + selectedIcon = selectedIcon === VOID ? '' : selectedIcon; + url = url === VOID ? '' : url; + defaultId = defaultId === VOID ? 0 : defaultId; + this.title = title; + this.selectedTitle = selectedTitle; + this.subtitle = subtitle; + this.reasons = reasons; + this.type = type; + this.id = id; + this.selected = selected; + this.icon = icon; + this.selectedIcon = selectedIcon; + this.url = url; + this.defaultId = defaultId; + } + get_title_iz32un_k$() { + return this.title; + } + get_selectedTitle_mp7yhg_k$() { + return this.selectedTitle; + } + get_subtitle_55eoyp_k$() { + return this.subtitle; + } + get_reasons_j52nye_k$() { + return this.reasons; + } + get_type_wovaf7_k$() { + return this.type; + } + get_id_kntnx8_k$() { + return this.id; + } + get_selected_c3i7q4_k$() { + return this.selected; + } + get_icon_wont8i_k$() { + return this.icon; + } + get_selectedIcon_oh766b_k$() { + return this.selectedIcon; + } + get_url_18iuii_k$() { + return this.url; + } + get_defaultId_gbt17x_k$() { + return this.defaultId; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.selectedTitle; + } + component3_7eebsa_k$() { + return this.subtitle; + } + component4_7eebs9_k$() { + return this.reasons; + } + component5_7eebs8_k$() { + return this.type; + } + component6_7eebs7_k$() { + return this.id; + } + component7_7eebs6_k$() { + return this.selected; + } + component8_7eebs5_k$() { + return this.icon; + } + component9_7eebs4_k$() { + return this.selectedIcon; + } + component10_gazzfo_k$() { + return this.url; + } + component11_gazzfn_k$() { + return this.defaultId; + } + copy_wq0niv_k$(title, selectedTitle, subtitle, reasons, type, id, selected, icon, selectedIcon, url, defaultId) { + return new KThreePointV3_0(title, selectedTitle, subtitle, reasons, type, id, selected, icon, selectedIcon, url, defaultId); + } + copy(title, selectedTitle, subtitle, reasons, type, id, selected, icon, selectedIcon, url, defaultId, $super) { + title = title === VOID ? this.title : title; + selectedTitle = selectedTitle === VOID ? this.selectedTitle : selectedTitle; + subtitle = subtitle === VOID ? this.subtitle : subtitle; + reasons = reasons === VOID ? this.reasons : reasons; + type = type === VOID ? this.type : type; + id = id === VOID ? this.id : id; + selected = selected === VOID ? this.selected : selected; + icon = icon === VOID ? this.icon : icon; + selectedIcon = selectedIcon === VOID ? this.selectedIcon : selectedIcon; + url = url === VOID ? this.url : url; + defaultId = defaultId === VOID ? this.defaultId : defaultId; + return this.copy_wq0niv_k$(title, selectedTitle, subtitle, reasons, type, id, selected, icon, selectedIcon, url, defaultId); + } + toString() { + return 'KThreePointV3(title=' + this.title + ', selectedTitle=' + this.selectedTitle + ', subtitle=' + this.subtitle + ', reasons=' + this.reasons + ', type=' + this.type + ', id=' + this.id.toString() + ', selected=' + this.selected + ', icon=' + this.icon + ', selectedIcon=' + this.selectedIcon + ', url=' + this.url + ', defaultId=' + this.defaultId + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.selectedTitle) | 0; + result = imul(result, 31) + getStringHashCode(this.subtitle) | 0; + result = imul(result, 31) + hashCode(this.reasons) | 0; + result = imul(result, 31) + getStringHashCode(this.type) | 0; + result = imul(result, 31) + this.id.hashCode() | 0; + result = imul(result, 31) + this.selected | 0; + result = imul(result, 31) + getStringHashCode(this.icon) | 0; + result = imul(result, 31) + getStringHashCode(this.selectedIcon) | 0; + result = imul(result, 31) + getStringHashCode(this.url) | 0; + result = imul(result, 31) + this.defaultId | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KThreePointV3_0)) + return false; + var tmp0_other_with_cast = other instanceof KThreePointV3_0 ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.selectedTitle === tmp0_other_with_cast.selectedTitle)) + return false; + if (!(this.subtitle === tmp0_other_with_cast.subtitle)) + return false; + if (!equals(this.reasons, tmp0_other_with_cast.reasons)) + return false; + if (!(this.type === tmp0_other_with_cast.type)) + return false; + if (!this.id.equals(tmp0_other_with_cast.id)) + return false; + if (!(this.selected === tmp0_other_with_cast.selected)) + return false; + if (!(this.icon === tmp0_other_with_cast.icon)) + return false; + if (!(this.selectedIcon === tmp0_other_with_cast.selectedIcon)) + return false; + if (!(this.url === tmp0_other_with_cast.url)) + return false; + if (!(this.defaultId === tmp0_other_with_cast.defaultId)) + return false; + return true; + } + static new_com_bapis_bilibili_app_card_v1_KThreePointV3_isi051_k$(seen1, title, selectedTitle, subtitle, reasons, type, id, selected, icon, selectedIcon, url, defaultId, serializationConstructorMarker) { + Companion_getInstance_669(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_656().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.selectedTitle = ''; + else + $this.selectedTitle = selectedTitle; + if (0 === (seen1 & 4)) + $this.subtitle = ''; + else + $this.subtitle = subtitle; + if (0 === (seen1 & 8)) + $this.reasons = emptyList(); + else + $this.reasons = reasons; + if (0 === (seen1 & 16)) + $this.type = ''; + else + $this.type = type; + if (0 === (seen1 & 32)) + $this.id = new Long(0, 0); + else + $this.id = id; + if (0 === (seen1 & 64)) + $this.selected = 0; + else + $this.selected = selected; + if (0 === (seen1 & 128)) + $this.icon = ''; + else + $this.icon = icon; + if (0 === (seen1 & 256)) + $this.selectedIcon = ''; + else + $this.selectedIcon = selectedIcon; + if (0 === (seen1 & 512)) + $this.url = ''; + else + $this.url = url; + if (0 === (seen1 & 1024)) + $this.defaultId = 0; + else + $this.defaultId = defaultId; + return $this; + } + } + class Companion_670 { + constructor() { + this.targetPath = '/bilibili.app.card.v1.ThreePointV4'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_657(); + } + } + class $serializer_657 { + constructor() { + $serializer_instance_657 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.card.v1.KThreePointV4', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('sharePlane', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('watchLater', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_659()), get_nullable($serializer_getInstance_661())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_659(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_661(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_659(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_661(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KThreePointV4_0.new_com_bapis_bilibili_app_card_v1_KThreePointV4_co876e_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_srpl0y_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.sharePlane == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_659(), value.sharePlane); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.watchLater == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_661(), value.watchLater); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_srpl0y_k$(encoder, value instanceof KThreePointV4_0 ? value : THROW_CCE()); + } + } + class KThreePointV4_0 { + constructor(sharePlane, watchLater) { + Companion_instance_670; + sharePlane = sharePlane === VOID ? null : sharePlane; + watchLater = watchLater === VOID ? null : watchLater; + this.sharePlane = sharePlane; + this.watchLater = watchLater; + } + get_sharePlane_l1yhja_k$() { + return this.sharePlane; + } + get_watchLater_m4hv96_k$() { + return this.watchLater; + } + component1_7eebsc_k$() { + return this.sharePlane; + } + component2_7eebsb_k$() { + return this.watchLater; + } + copy_ixefl7_k$(sharePlane, watchLater) { + return new KThreePointV4_0(sharePlane, watchLater); + } + copy(sharePlane, watchLater, $super) { + sharePlane = sharePlane === VOID ? this.sharePlane : sharePlane; + watchLater = watchLater === VOID ? this.watchLater : watchLater; + return this.copy_ixefl7_k$(sharePlane, watchLater); + } + toString() { + return 'KThreePointV4(sharePlane=' + this.sharePlane + ', watchLater=' + this.watchLater + ')'; + } + hashCode() { + var result = this.sharePlane == null ? 0 : this.sharePlane.hashCode(); + result = imul(result, 31) + (this.watchLater == null ? 0 : this.watchLater.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KThreePointV4_0)) + return false; + var tmp0_other_with_cast = other instanceof KThreePointV4_0 ? other : THROW_CCE(); + if (!equals(this.sharePlane, tmp0_other_with_cast.sharePlane)) + return false; + if (!equals(this.watchLater, tmp0_other_with_cast.watchLater)) + return false; + return true; + } + static new_com_bapis_bilibili_app_card_v1_KThreePointV4_co876e_k$(seen1, sharePlane, watchLater, serializationConstructorMarker) { + Companion_instance_670; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_657().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.sharePlane = null; + else + $this.sharePlane = sharePlane; + if (0 === (seen1 & 2)) + $this.watchLater = null; + else + $this.watchLater = watchLater; + return $this; + } + } + class Companion_671 { + constructor() { + this.targetPath = '/bilibili.app.card.v1.SharePlane.ShareToEntry'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_658(); + } + } + class $serializer_658 { + constructor() { + $serializer_instance_658 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.card.v1.KSharePlane.KShareToEntry', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('key', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('value', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), BooleanSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = false; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KShareToEntry.new_com_bapis_bilibili_app_card_v1_KSharePlane_KShareToEntry_igzplx_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_9wnoyc_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.key === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.key); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.value === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 1, value.value); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_9wnoyc_k$(encoder, value instanceof KShareToEntry ? value : THROW_CCE()); + } + } + class KShareToEntry { + constructor(key, value) { + Companion_instance_671; + key = key === VOID ? '' : key; + value = value === VOID ? false : value; + this.key = key; + this.value = value; + } + get_key_18j28a_k$() { + return this.key; + } + get_value_j01efc_k$() { + return this.value; + } + component1_7eebsc_k$() { + return this.key; + } + component2_7eebsb_k$() { + return this.value; + } + copy_smzrfk_k$(key, value) { + return new KShareToEntry(key, value); + } + copy(key, value, $super) { + key = key === VOID ? this.key : key; + value = value === VOID ? this.value : value; + return this.copy_smzrfk_k$(key, value); + } + toString() { + return 'KShareToEntry(key=' + this.key + ', value=' + this.value + ')'; + } + hashCode() { + var result = getStringHashCode(this.key); + result = imul(result, 31) + getBooleanHashCode(this.value) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KShareToEntry)) + return false; + var tmp0_other_with_cast = other instanceof KShareToEntry ? other : THROW_CCE(); + if (!(this.key === tmp0_other_with_cast.key)) + return false; + if (!(this.value === tmp0_other_with_cast.value)) + return false; + return true; + } + static new_com_bapis_bilibili_app_card_v1_KSharePlane_KShareToEntry_igzplx_k$(seen1, key, value, serializationConstructorMarker) { + Companion_instance_671; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_658().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.key = ''; + else + $this.key = key; + if (0 === (seen1 & 2)) + $this.value = false; + else + $this.value = value; + return $this; + } + } + class Companion_672 { + constructor() { + Companion_instance_672 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, null, null, null, new LinkedHashMapSerializer(StringSerializer_getInstance(), BooleanSerializer_getInstance()), null, null, null, null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.card.v1.SharePlane'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_659(); + } + } + class $serializer_659 { + constructor() { + $serializer_instance_659 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.card.v1.KSharePlane', this, 12); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('shareSubtitle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('desc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('aid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('bvid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('shareTo', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('author', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('authorId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('shortLink', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('playNumber', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('firstCid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_672().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), tmp0_cached[6], StringSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = new Long(0, 0); + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_local8 = new Long(0, 0); + var tmp13_local9 = null; + var tmp14_local10 = null; + var tmp15_local11 = new Long(0, 0); + var tmp16_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp17_cached = Companion_getInstance_672().$childSerializers_1; + if (tmp16_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp16_input.decodeLongElement_994anb_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp16_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 6, tmp17_cached[6], tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp16_input.decodeLongElement_994anb_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp16_input.decodeLongElement_994anb_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + } else + while (tmp1_flag) { + tmp2_index = tmp16_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp16_input.decodeLongElement_994anb_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp16_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 6, tmp17_cached[6], tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp16_input.decodeLongElement_994anb_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp16_input.decodeLongElement_994anb_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp16_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSharePlane_0.new_com_bapis_bilibili_app_card_v1_KSharePlane_7spayz_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, null); + } + serialize_dkacwx_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_672().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.shareSubtitle === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.shareSubtitle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.desc === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.desc); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.cover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !value.aid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 4, value.aid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.bvid === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.bvid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !equals(value.shareTo, emptyMap())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 6, tmp2_cached[6], value.shareTo); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.author === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.author); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !value.authorId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 8, value.authorId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.shortLink === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 9, value.shortLink); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.playNumber === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 10, value.playNumber); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !value.firstCid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 11, value.firstCid); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_dkacwx_k$(encoder, value instanceof KSharePlane_0 ? value : THROW_CCE()); + } + } + class KSharePlane_0 { + constructor(title, shareSubtitle, desc, cover, aid, bvid, shareTo, author, authorId, shortLink, playNumber, firstCid) { + Companion_getInstance_672(); + title = title === VOID ? '' : title; + shareSubtitle = shareSubtitle === VOID ? '' : shareSubtitle; + desc = desc === VOID ? '' : desc; + cover = cover === VOID ? '' : cover; + aid = aid === VOID ? new Long(0, 0) : aid; + bvid = bvid === VOID ? '' : bvid; + shareTo = shareTo === VOID ? emptyMap() : shareTo; + author = author === VOID ? '' : author; + authorId = authorId === VOID ? new Long(0, 0) : authorId; + shortLink = shortLink === VOID ? '' : shortLink; + playNumber = playNumber === VOID ? '' : playNumber; + firstCid = firstCid === VOID ? new Long(0, 0) : firstCid; + this.title = title; + this.shareSubtitle = shareSubtitle; + this.desc = desc; + this.cover = cover; + this.aid = aid; + this.bvid = bvid; + this.shareTo = shareTo; + this.author = author; + this.authorId = authorId; + this.shortLink = shortLink; + this.playNumber = playNumber; + this.firstCid = firstCid; + } + get_title_iz32un_k$() { + return this.title; + } + get_shareSubtitle_yf1tri_k$() { + return this.shareSubtitle; + } + get_desc_woknve_k$() { + return this.desc; + } + get_cover_ipug0e_k$() { + return this.cover; + } + get_aid_18j9kd_k$() { + return this.aid; + } + get_bvid_wojq9k_k$() { + return this.bvid; + } + get_shareTo_z8kyc1_k$() { + return this.shareTo; + } + get_author_b5hnkk_k$() { + return this.author; + } + get_authorId_83q0q9_k$() { + return this.authorId; + } + get_shortLink_p122oj_k$() { + return this.shortLink; + } + get_playNumber_3nm0py_k$() { + return this.playNumber; + } + get_firstCid_u4rqgn_k$() { + return this.firstCid; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.shareSubtitle; + } + component3_7eebsa_k$() { + return this.desc; + } + component4_7eebs9_k$() { + return this.cover; + } + component5_7eebs8_k$() { + return this.aid; + } + component6_7eebs7_k$() { + return this.bvid; + } + component7_7eebs6_k$() { + return this.shareTo; + } + component8_7eebs5_k$() { + return this.author; + } + component9_7eebs4_k$() { + return this.authorId; + } + component10_gazzfo_k$() { + return this.shortLink; + } + component11_gazzfn_k$() { + return this.playNumber; + } + component12_gazzfm_k$() { + return this.firstCid; + } + copy_ck8b20_k$(title, shareSubtitle, desc, cover, aid, bvid, shareTo, author, authorId, shortLink, playNumber, firstCid) { + return new KSharePlane_0(title, shareSubtitle, desc, cover, aid, bvid, shareTo, author, authorId, shortLink, playNumber, firstCid); + } + copy(title, shareSubtitle, desc, cover, aid, bvid, shareTo, author, authorId, shortLink, playNumber, firstCid, $super) { + title = title === VOID ? this.title : title; + shareSubtitle = shareSubtitle === VOID ? this.shareSubtitle : shareSubtitle; + desc = desc === VOID ? this.desc : desc; + cover = cover === VOID ? this.cover : cover; + aid = aid === VOID ? this.aid : aid; + bvid = bvid === VOID ? this.bvid : bvid; + shareTo = shareTo === VOID ? this.shareTo : shareTo; + author = author === VOID ? this.author : author; + authorId = authorId === VOID ? this.authorId : authorId; + shortLink = shortLink === VOID ? this.shortLink : shortLink; + playNumber = playNumber === VOID ? this.playNumber : playNumber; + firstCid = firstCid === VOID ? this.firstCid : firstCid; + return this.copy_ck8b20_k$(title, shareSubtitle, desc, cover, aid, bvid, shareTo, author, authorId, shortLink, playNumber, firstCid); + } + toString() { + return 'KSharePlane(title=' + this.title + ', shareSubtitle=' + this.shareSubtitle + ', desc=' + this.desc + ', cover=' + this.cover + ', aid=' + this.aid.toString() + ', bvid=' + this.bvid + ', shareTo=' + this.shareTo + ', author=' + this.author + ', authorId=' + this.authorId.toString() + ', shortLink=' + this.shortLink + ', playNumber=' + this.playNumber + ', firstCid=' + this.firstCid.toString() + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.shareSubtitle) | 0; + result = imul(result, 31) + getStringHashCode(this.desc) | 0; + result = imul(result, 31) + getStringHashCode(this.cover) | 0; + result = imul(result, 31) + this.aid.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.bvid) | 0; + result = imul(result, 31) + hashCode(this.shareTo) | 0; + result = imul(result, 31) + getStringHashCode(this.author) | 0; + result = imul(result, 31) + this.authorId.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.shortLink) | 0; + result = imul(result, 31) + getStringHashCode(this.playNumber) | 0; + result = imul(result, 31) + this.firstCid.hashCode() | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSharePlane_0)) + return false; + var tmp0_other_with_cast = other instanceof KSharePlane_0 ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.shareSubtitle === tmp0_other_with_cast.shareSubtitle)) + return false; + if (!(this.desc === tmp0_other_with_cast.desc)) + return false; + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + if (!this.aid.equals(tmp0_other_with_cast.aid)) + return false; + if (!(this.bvid === tmp0_other_with_cast.bvid)) + return false; + if (!equals(this.shareTo, tmp0_other_with_cast.shareTo)) + return false; + if (!(this.author === tmp0_other_with_cast.author)) + return false; + if (!this.authorId.equals(tmp0_other_with_cast.authorId)) + return false; + if (!(this.shortLink === tmp0_other_with_cast.shortLink)) + return false; + if (!(this.playNumber === tmp0_other_with_cast.playNumber)) + return false; + if (!this.firstCid.equals(tmp0_other_with_cast.firstCid)) + return false; + return true; + } + static new_com_bapis_bilibili_app_card_v1_KSharePlane_7spayz_k$(seen1, title, shareSubtitle, desc, cover, aid, bvid, shareTo, author, authorId, shortLink, playNumber, firstCid, serializationConstructorMarker) { + Companion_getInstance_672(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_659().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.shareSubtitle = ''; + else + $this.shareSubtitle = shareSubtitle; + if (0 === (seen1 & 4)) + $this.desc = ''; + else + $this.desc = desc; + if (0 === (seen1 & 8)) + $this.cover = ''; + else + $this.cover = cover; + if (0 === (seen1 & 16)) + $this.aid = new Long(0, 0); + else + $this.aid = aid; + if (0 === (seen1 & 32)) + $this.bvid = ''; + else + $this.bvid = bvid; + if (0 === (seen1 & 64)) + $this.shareTo = emptyMap(); + else + $this.shareTo = shareTo; + if (0 === (seen1 & 128)) + $this.author = ''; + else + $this.author = author; + if (0 === (seen1 & 256)) + $this.authorId = new Long(0, 0); + else + $this.authorId = authorId; + if (0 === (seen1 & 512)) + $this.shortLink = ''; + else + $this.shortLink = shortLink; + if (0 === (seen1 & 1024)) + $this.playNumber = ''; + else + $this.playNumber = playNumber; + if (0 === (seen1 & 2048)) + $this.firstCid = new Long(0, 0); + else + $this.firstCid = firstCid; + return $this; + } + } + class Companion_673 { + constructor() { + this.targetPath = '/bilibili.app.card.v1.InlineProgressBar'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_660(); + } + } + class $serializer_660 { + constructor() { + $serializer_instance_660 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.card.v1.KInlineProgressBar', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('iconDrag', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('iconDragHash', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('iconStop', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('iconStopHash', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KInlineProgressBar_0.new_com_bapis_bilibili_app_card_v1_KInlineProgressBar_hff1l7_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_4k6iu3_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.iconDrag === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.iconDrag); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.iconDragHash === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.iconDragHash); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.iconStop === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.iconStop); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.iconStopHash === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.iconStopHash); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_4k6iu3_k$(encoder, value instanceof KInlineProgressBar_0 ? value : THROW_CCE()); + } + } + class KInlineProgressBar_0 { + constructor(iconDrag, iconDragHash, iconStop, iconStopHash) { + Companion_instance_673; + iconDrag = iconDrag === VOID ? '' : iconDrag; + iconDragHash = iconDragHash === VOID ? '' : iconDragHash; + iconStop = iconStop === VOID ? '' : iconStop; + iconStopHash = iconStopHash === VOID ? '' : iconStopHash; + this.iconDrag = iconDrag; + this.iconDragHash = iconDragHash; + this.iconStop = iconStop; + this.iconStopHash = iconStopHash; + } + get_iconDrag_r0jxg6_k$() { + return this.iconDrag; + } + get_iconDragHash_hn7iv8_k$() { + return this.iconDragHash; + } + get_iconStop_r0tk2s_k$() { + return this.iconStop; + } + get_iconStopHash_b3ubqm_k$() { + return this.iconStopHash; + } + component1_7eebsc_k$() { + return this.iconDrag; + } + component2_7eebsb_k$() { + return this.iconDragHash; + } + component3_7eebsa_k$() { + return this.iconStop; + } + component4_7eebs9_k$() { + return this.iconStopHash; + } + copy_hmmiyd_k$(iconDrag, iconDragHash, iconStop, iconStopHash) { + return new KInlineProgressBar_0(iconDrag, iconDragHash, iconStop, iconStopHash); + } + copy(iconDrag, iconDragHash, iconStop, iconStopHash, $super) { + iconDrag = iconDrag === VOID ? this.iconDrag : iconDrag; + iconDragHash = iconDragHash === VOID ? this.iconDragHash : iconDragHash; + iconStop = iconStop === VOID ? this.iconStop : iconStop; + iconStopHash = iconStopHash === VOID ? this.iconStopHash : iconStopHash; + return this.copy_hmmiyd_k$(iconDrag, iconDragHash, iconStop, iconStopHash); + } + toString() { + return 'KInlineProgressBar(iconDrag=' + this.iconDrag + ', iconDragHash=' + this.iconDragHash + ', iconStop=' + this.iconStop + ', iconStopHash=' + this.iconStopHash + ')'; + } + hashCode() { + var result = getStringHashCode(this.iconDrag); + result = imul(result, 31) + getStringHashCode(this.iconDragHash) | 0; + result = imul(result, 31) + getStringHashCode(this.iconStop) | 0; + result = imul(result, 31) + getStringHashCode(this.iconStopHash) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KInlineProgressBar_0)) + return false; + var tmp0_other_with_cast = other instanceof KInlineProgressBar_0 ? other : THROW_CCE(); + if (!(this.iconDrag === tmp0_other_with_cast.iconDrag)) + return false; + if (!(this.iconDragHash === tmp0_other_with_cast.iconDragHash)) + return false; + if (!(this.iconStop === tmp0_other_with_cast.iconStop)) + return false; + if (!(this.iconStopHash === tmp0_other_with_cast.iconStopHash)) + return false; + return true; + } + static new_com_bapis_bilibili_app_card_v1_KInlineProgressBar_hff1l7_k$(seen1, iconDrag, iconDragHash, iconStop, iconStopHash, serializationConstructorMarker) { + Companion_instance_673; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_660().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.iconDrag = ''; + else + $this.iconDrag = iconDrag; + if (0 === (seen1 & 2)) + $this.iconDragHash = ''; + else + $this.iconDragHash = iconDragHash; + if (0 === (seen1 & 4)) + $this.iconStop = ''; + else + $this.iconStop = iconStop; + if (0 === (seen1 & 8)) + $this.iconStopHash = ''; + else + $this.iconStopHash = iconStopHash; + return $this; + } + } + class Companion_674 { + constructor() { + this.targetPath = '/bilibili.app.card.v1.WatchLater'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_661(); + } + } + class $serializer_661 { + constructor() { + $serializer_instance_661 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.card.v1.KWatchLater', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('aid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('bvid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KWatchLater_0.new_com_bapis_bilibili_app_card_v1_KWatchLater_mns1gs_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_p50j1b_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.aid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.aid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.bvid === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.bvid); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_p50j1b_k$(encoder, value instanceof KWatchLater_0 ? value : THROW_CCE()); + } + } + class KWatchLater_0 { + constructor(aid, bvid) { + Companion_instance_674; + aid = aid === VOID ? new Long(0, 0) : aid; + bvid = bvid === VOID ? '' : bvid; + this.aid = aid; + this.bvid = bvid; + } + get_aid_18j9kd_k$() { + return this.aid; + } + get_bvid_wojq9k_k$() { + return this.bvid; + } + component1_7eebsc_k$() { + return this.aid; + } + component2_7eebsb_k$() { + return this.bvid; + } + copy_ezpntz_k$(aid, bvid) { + return new KWatchLater_0(aid, bvid); + } + copy(aid, bvid, $super) { + aid = aid === VOID ? this.aid : aid; + bvid = bvid === VOID ? this.bvid : bvid; + return this.copy_ezpntz_k$(aid, bvid); + } + toString() { + return 'KWatchLater(aid=' + this.aid.toString() + ', bvid=' + this.bvid + ')'; + } + hashCode() { + var result = this.aid.hashCode(); + result = imul(result, 31) + getStringHashCode(this.bvid) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KWatchLater_0)) + return false; + var tmp0_other_with_cast = other instanceof KWatchLater_0 ? other : THROW_CCE(); + if (!this.aid.equals(tmp0_other_with_cast.aid)) + return false; + if (!(this.bvid === tmp0_other_with_cast.bvid)) + return false; + return true; + } + static new_com_bapis_bilibili_app_card_v1_KWatchLater_mns1gs_k$(seen1, aid, bvid, serializationConstructorMarker) { + Companion_instance_674; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_661().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.aid = new Long(0, 0); + else + $this.aid = aid; + if (0 === (seen1 & 2)) + $this.bvid = ''; + else + $this.bvid = bvid; + return $this; + } + } + class Companion_675 { + constructor() { + this.targetPath = '/bilibili.app.card.v1.ReasonStyle'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_662(); + } + } + class $serializer_662 { + constructor() { + $serializer_instance_662 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.card.v1.KReasonStyle', this, 16); + tmp0_serialDesc.addElement_5pzumi_k$('text', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('textColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('bgColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('borderColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('iconUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('textColorNight', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('bgColorNight', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('borderColorNight', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('iconNightUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('bgStyle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('uri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('iconBgUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + tmp0_serialDesc.addElement_5pzumi_k$('event', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(13)); + tmp0_serialDesc.addElement_5pzumi_k$('eventV2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(14)); + tmp0_serialDesc.addElement_5pzumi_k$('rightIconType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(15)); + tmp0_serialDesc.addElement_5pzumi_k$('leftIconType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(16)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_local8 = null; + var tmp13_local9 = 0; + var tmp14_local10 = null; + var tmp15_local11 = null; + var tmp16_local12 = null; + var tmp17_local13 = null; + var tmp18_local14 = 0; + var tmp19_local15 = null; + var tmp20_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp20_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + tmp16_local12 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + tmp17_local13 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + tmp18_local14 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + tmp19_local15 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + } else + while (tmp1_flag) { + tmp2_index = tmp20_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + case 12: + tmp16_local12 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + break; + case 13: + tmp17_local13 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + break; + case 14: + tmp18_local14 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + break; + case 15: + tmp19_local15 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp20_input.endStructure_1xqz0n_k$(tmp0_desc); + return KReasonStyle_0.new_com_bapis_bilibili_app_card_v1_KReasonStyle_wo1btz_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, tmp18_local14, tmp19_local15, null); + } + serialize_mivl5x_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.text === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.text); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.textColor === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.textColor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.bgColor === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.bgColor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.borderColor === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.borderColor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.iconUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.iconUrl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.textColorNight === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.textColorNight); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.bgColorNight === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.bgColorNight); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.borderColorNight === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.borderColorNight); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.iconNightUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 8, value.iconNightUrl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.bgStyle === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 9, value.bgStyle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.uri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 10, value.uri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.iconBgUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 11, value.iconBgUrl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !(value.event === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 12, value.event); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 13) ? true : !(value.eventV2 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 13, value.eventV2); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 14) ? true : !(value.rightIconType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 14, value.rightIconType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 15) ? true : !(value.leftIconType === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 15, value.leftIconType); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_mivl5x_k$(encoder, value instanceof KReasonStyle_0 ? value : THROW_CCE()); + } + } + class KReasonStyle_0 { + constructor(text, textColor, bgColor, borderColor, iconUrl, textColorNight, bgColorNight, borderColorNight, iconNightUrl, bgStyle, uri, iconBgUrl, event, eventV2, rightIconType, leftIconType) { + Companion_instance_675; + text = text === VOID ? '' : text; + textColor = textColor === VOID ? '' : textColor; + bgColor = bgColor === VOID ? '' : bgColor; + borderColor = borderColor === VOID ? '' : borderColor; + iconUrl = iconUrl === VOID ? '' : iconUrl; + textColorNight = textColorNight === VOID ? '' : textColorNight; + bgColorNight = bgColorNight === VOID ? '' : bgColorNight; + borderColorNight = borderColorNight === VOID ? '' : borderColorNight; + iconNightUrl = iconNightUrl === VOID ? '' : iconNightUrl; + bgStyle = bgStyle === VOID ? 0 : bgStyle; + uri = uri === VOID ? '' : uri; + iconBgUrl = iconBgUrl === VOID ? '' : iconBgUrl; + event = event === VOID ? '' : event; + eventV2 = eventV2 === VOID ? '' : eventV2; + rightIconType = rightIconType === VOID ? 0 : rightIconType; + leftIconType = leftIconType === VOID ? '' : leftIconType; + this.text = text; + this.textColor = textColor; + this.bgColor = bgColor; + this.borderColor = borderColor; + this.iconUrl = iconUrl; + this.textColorNight = textColorNight; + this.bgColorNight = bgColorNight; + this.borderColorNight = borderColorNight; + this.iconNightUrl = iconNightUrl; + this.bgStyle = bgStyle; + this.uri = uri; + this.iconBgUrl = iconBgUrl; + this.event = event; + this.eventV2 = eventV2; + this.rightIconType = rightIconType; + this.leftIconType = leftIconType; + } + get_text_wouvsm_k$() { + return this.text; + } + get_textColor_92p84z_k$() { + return this.textColor; + } + get_bgColor_24ewuj_k$() { + return this.bgColor; + } + get_borderColor_puk0tq_k$() { + return this.borderColor; + } + get_iconUrl_sd8dal_k$() { + return this.iconUrl; + } + get_textColorNight_hqolf9_k$() { + return this.textColorNight; + } + get_bgColorNight_mzrajh_k$() { + return this.bgColorNight; + } + get_borderColorNight_z7xsom_k$() { + return this.borderColorNight; + } + get_iconNightUrl_yl8yzd_k$() { + return this.iconNightUrl; + } + get_bgStyle_1viqv1_k$() { + return this.bgStyle; + } + get_uri_18iuil_k$() { + return this.uri; + } + get_iconBgUrl_exhpdk_k$() { + return this.iconBgUrl; + } + get_event_ir25pt_k$() { + return this.event; + } + get_eventV2_lhz9rn_k$() { + return this.eventV2; + } + get_rightIconType_xp0xp6_k$() { + return this.rightIconType; + } + get_leftIconType_tbp3ur_k$() { + return this.leftIconType; + } + component1_7eebsc_k$() { + return this.text; + } + component2_7eebsb_k$() { + return this.textColor; + } + component3_7eebsa_k$() { + return this.bgColor; + } + component4_7eebs9_k$() { + return this.borderColor; + } + component5_7eebs8_k$() { + return this.iconUrl; + } + component6_7eebs7_k$() { + return this.textColorNight; + } + component7_7eebs6_k$() { + return this.bgColorNight; + } + component8_7eebs5_k$() { + return this.borderColorNight; + } + component9_7eebs4_k$() { + return this.iconNightUrl; + } + component10_gazzfo_k$() { + return this.bgStyle; + } + component11_gazzfn_k$() { + return this.uri; + } + component12_gazzfm_k$() { + return this.iconBgUrl; + } + component13_gazzfl_k$() { + return this.event; + } + component14_gazzfk_k$() { + return this.eventV2; + } + component15_gazzfj_k$() { + return this.rightIconType; + } + component16_gazzfi_k$() { + return this.leftIconType; + } + copy_7aqzez_k$(text, textColor, bgColor, borderColor, iconUrl, textColorNight, bgColorNight, borderColorNight, iconNightUrl, bgStyle, uri, iconBgUrl, event, eventV2, rightIconType, leftIconType) { + return new KReasonStyle_0(text, textColor, bgColor, borderColor, iconUrl, textColorNight, bgColorNight, borderColorNight, iconNightUrl, bgStyle, uri, iconBgUrl, event, eventV2, rightIconType, leftIconType); + } + copy(text, textColor, bgColor, borderColor, iconUrl, textColorNight, bgColorNight, borderColorNight, iconNightUrl, bgStyle, uri, iconBgUrl, event, eventV2, rightIconType, leftIconType, $super) { + text = text === VOID ? this.text : text; + textColor = textColor === VOID ? this.textColor : textColor; + bgColor = bgColor === VOID ? this.bgColor : bgColor; + borderColor = borderColor === VOID ? this.borderColor : borderColor; + iconUrl = iconUrl === VOID ? this.iconUrl : iconUrl; + textColorNight = textColorNight === VOID ? this.textColorNight : textColorNight; + bgColorNight = bgColorNight === VOID ? this.bgColorNight : bgColorNight; + borderColorNight = borderColorNight === VOID ? this.borderColorNight : borderColorNight; + iconNightUrl = iconNightUrl === VOID ? this.iconNightUrl : iconNightUrl; + bgStyle = bgStyle === VOID ? this.bgStyle : bgStyle; + uri = uri === VOID ? this.uri : uri; + iconBgUrl = iconBgUrl === VOID ? this.iconBgUrl : iconBgUrl; + event = event === VOID ? this.event : event; + eventV2 = eventV2 === VOID ? this.eventV2 : eventV2; + rightIconType = rightIconType === VOID ? this.rightIconType : rightIconType; + leftIconType = leftIconType === VOID ? this.leftIconType : leftIconType; + return this.copy_7aqzez_k$(text, textColor, bgColor, borderColor, iconUrl, textColorNight, bgColorNight, borderColorNight, iconNightUrl, bgStyle, uri, iconBgUrl, event, eventV2, rightIconType, leftIconType); + } + toString() { + return 'KReasonStyle(text=' + this.text + ', textColor=' + this.textColor + ', bgColor=' + this.bgColor + ', borderColor=' + this.borderColor + ', iconUrl=' + this.iconUrl + ', textColorNight=' + this.textColorNight + ', bgColorNight=' + this.bgColorNight + ', borderColorNight=' + this.borderColorNight + ', iconNightUrl=' + this.iconNightUrl + ', bgStyle=' + this.bgStyle + ', uri=' + this.uri + ', iconBgUrl=' + this.iconBgUrl + ', event=' + this.event + ', eventV2=' + this.eventV2 + ', rightIconType=' + this.rightIconType + ', leftIconType=' + this.leftIconType + ')'; + } + hashCode() { + var result = getStringHashCode(this.text); + result = imul(result, 31) + getStringHashCode(this.textColor) | 0; + result = imul(result, 31) + getStringHashCode(this.bgColor) | 0; + result = imul(result, 31) + getStringHashCode(this.borderColor) | 0; + result = imul(result, 31) + getStringHashCode(this.iconUrl) | 0; + result = imul(result, 31) + getStringHashCode(this.textColorNight) | 0; + result = imul(result, 31) + getStringHashCode(this.bgColorNight) | 0; + result = imul(result, 31) + getStringHashCode(this.borderColorNight) | 0; + result = imul(result, 31) + getStringHashCode(this.iconNightUrl) | 0; + result = imul(result, 31) + this.bgStyle | 0; + result = imul(result, 31) + getStringHashCode(this.uri) | 0; + result = imul(result, 31) + getStringHashCode(this.iconBgUrl) | 0; + result = imul(result, 31) + getStringHashCode(this.event) | 0; + result = imul(result, 31) + getStringHashCode(this.eventV2) | 0; + result = imul(result, 31) + this.rightIconType | 0; + result = imul(result, 31) + getStringHashCode(this.leftIconType) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KReasonStyle_0)) + return false; + var tmp0_other_with_cast = other instanceof KReasonStyle_0 ? other : THROW_CCE(); + if (!(this.text === tmp0_other_with_cast.text)) + return false; + if (!(this.textColor === tmp0_other_with_cast.textColor)) + return false; + if (!(this.bgColor === tmp0_other_with_cast.bgColor)) + return false; + if (!(this.borderColor === tmp0_other_with_cast.borderColor)) + return false; + if (!(this.iconUrl === tmp0_other_with_cast.iconUrl)) + return false; + if (!(this.textColorNight === tmp0_other_with_cast.textColorNight)) + return false; + if (!(this.bgColorNight === tmp0_other_with_cast.bgColorNight)) + return false; + if (!(this.borderColorNight === tmp0_other_with_cast.borderColorNight)) + return false; + if (!(this.iconNightUrl === tmp0_other_with_cast.iconNightUrl)) + return false; + if (!(this.bgStyle === tmp0_other_with_cast.bgStyle)) + return false; + if (!(this.uri === tmp0_other_with_cast.uri)) + return false; + if (!(this.iconBgUrl === tmp0_other_with_cast.iconBgUrl)) + return false; + if (!(this.event === tmp0_other_with_cast.event)) + return false; + if (!(this.eventV2 === tmp0_other_with_cast.eventV2)) + return false; + if (!(this.rightIconType === tmp0_other_with_cast.rightIconType)) + return false; + if (!(this.leftIconType === tmp0_other_with_cast.leftIconType)) + return false; + return true; + } + static new_com_bapis_bilibili_app_card_v1_KReasonStyle_wo1btz_k$(seen1, text, textColor, bgColor, borderColor, iconUrl, textColorNight, bgColorNight, borderColorNight, iconNightUrl, bgStyle, uri, iconBgUrl, event, eventV2, rightIconType, leftIconType, serializationConstructorMarker) { + Companion_instance_675; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_662().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.text = ''; + else + $this.text = text; + if (0 === (seen1 & 2)) + $this.textColor = ''; + else + $this.textColor = textColor; + if (0 === (seen1 & 4)) + $this.bgColor = ''; + else + $this.bgColor = bgColor; + if (0 === (seen1 & 8)) + $this.borderColor = ''; + else + $this.borderColor = borderColor; + if (0 === (seen1 & 16)) + $this.iconUrl = ''; + else + $this.iconUrl = iconUrl; + if (0 === (seen1 & 32)) + $this.textColorNight = ''; + else + $this.textColorNight = textColorNight; + if (0 === (seen1 & 64)) + $this.bgColorNight = ''; + else + $this.bgColorNight = bgColorNight; + if (0 === (seen1 & 128)) + $this.borderColorNight = ''; + else + $this.borderColorNight = borderColorNight; + if (0 === (seen1 & 256)) + $this.iconNightUrl = ''; + else + $this.iconNightUrl = iconNightUrl; + if (0 === (seen1 & 512)) + $this.bgStyle = 0; + else + $this.bgStyle = bgStyle; + if (0 === (seen1 & 1024)) + $this.uri = ''; + else + $this.uri = uri; + if (0 === (seen1 & 2048)) + $this.iconBgUrl = ''; + else + $this.iconBgUrl = iconBgUrl; + if (0 === (seen1 & 4096)) + $this.event = ''; + else + $this.event = event; + if (0 === (seen1 & 8192)) + $this.eventV2 = ''; + else + $this.eventV2 = eventV2; + if (0 === (seen1 & 16384)) + $this.rightIconType = 0; + else + $this.rightIconType = rightIconType; + if (0 === (seen1 & 32768)) + $this.leftIconType = ''; + else + $this.leftIconType = leftIconType; + return $this; + } + } + class Companion_676 { + constructor() { + this.targetPath = '/bilibili.app.card.v1.LikeButton'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_663(); + } + } + class $serializer_663 { + constructor() { + $serializer_instance_663 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.card.v1.KLikeButton', this, 6); + tmp0_serialDesc.addElement_5pzumi_k$('aid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('count', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('showCount', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('event', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('selected', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('eventV2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), IntSerializer_getInstance(), BooleanSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = 0; + var tmp6_local2 = false; + var tmp7_local3 = null; + var tmp8_local4 = 0; + var tmp9_local5 = null; + var tmp10_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp10_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp10_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + } else + while (tmp1_flag) { + tmp2_index = tmp10_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp10_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp10_input.endStructure_1xqz0n_k$(tmp0_desc); + return KLikeButton.new_com_bapis_bilibili_app_card_v1_KLikeButton_c9yv0k_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); + } + serialize_c19hu3_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.aid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.aid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.count === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.count); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.showCount === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 2, value.showCount); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.event === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.event); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.selected === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 4, value.selected); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.eventV2 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.eventV2); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_c19hu3_k$(encoder, value instanceof KLikeButton ? value : THROW_CCE()); + } + } + class KLikeButton { + constructor(aid, count, showCount, event, selected, eventV2) { + Companion_instance_676; + aid = aid === VOID ? new Long(0, 0) : aid; + count = count === VOID ? 0 : count; + showCount = showCount === VOID ? false : showCount; + event = event === VOID ? '' : event; + selected = selected === VOID ? 0 : selected; + eventV2 = eventV2 === VOID ? '' : eventV2; + this.aid = aid; + this.count = count; + this.showCount = showCount; + this.event = event; + this.selected = selected; + this.eventV2 = eventV2; + } + get_aid_18j9kd_k$() { + return this.aid; + } + get_count_ipufhi_k$() { + return this.count; + } + get_showCount_ne5ac7_k$() { + return this.showCount; + } + get_event_ir25pt_k$() { + return this.event; + } + get_selected_c3i7q4_k$() { + return this.selected; + } + get_eventV2_lhz9rn_k$() { + return this.eventV2; + } + component1_7eebsc_k$() { + return this.aid; + } + component2_7eebsb_k$() { + return this.count; + } + component3_7eebsa_k$() { + return this.showCount; + } + component4_7eebs9_k$() { + return this.event; + } + component5_7eebs8_k$() { + return this.selected; + } + component6_7eebs7_k$() { + return this.eventV2; + } + copy_vr8yqs_k$(aid, count, showCount, event, selected, eventV2) { + return new KLikeButton(aid, count, showCount, event, selected, eventV2); + } + copy(aid, count, showCount, event, selected, eventV2, $super) { + aid = aid === VOID ? this.aid : aid; + count = count === VOID ? this.count : count; + showCount = showCount === VOID ? this.showCount : showCount; + event = event === VOID ? this.event : event; + selected = selected === VOID ? this.selected : selected; + eventV2 = eventV2 === VOID ? this.eventV2 : eventV2; + return this.copy_vr8yqs_k$(aid, count, showCount, event, selected, eventV2); + } + toString() { + return 'KLikeButton(aid=' + this.aid.toString() + ', count=' + this.count + ', showCount=' + this.showCount + ', event=' + this.event + ', selected=' + this.selected + ', eventV2=' + this.eventV2 + ')'; + } + hashCode() { + var result = this.aid.hashCode(); + result = imul(result, 31) + this.count | 0; + result = imul(result, 31) + getBooleanHashCode(this.showCount) | 0; + result = imul(result, 31) + getStringHashCode(this.event) | 0; + result = imul(result, 31) + this.selected | 0; + result = imul(result, 31) + getStringHashCode(this.eventV2) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KLikeButton)) + return false; + var tmp0_other_with_cast = other instanceof KLikeButton ? other : THROW_CCE(); + if (!this.aid.equals(tmp0_other_with_cast.aid)) + return false; + if (!(this.count === tmp0_other_with_cast.count)) + return false; + if (!(this.showCount === tmp0_other_with_cast.showCount)) + return false; + if (!(this.event === tmp0_other_with_cast.event)) + return false; + if (!(this.selected === tmp0_other_with_cast.selected)) + return false; + if (!(this.eventV2 === tmp0_other_with_cast.eventV2)) + return false; + return true; + } + static new_com_bapis_bilibili_app_card_v1_KLikeButton_c9yv0k_k$(seen1, aid, count, showCount, event, selected, eventV2, serializationConstructorMarker) { + Companion_instance_676; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_663().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.aid = new Long(0, 0); + else + $this.aid = aid; + if (0 === (seen1 & 2)) + $this.count = 0; + else + $this.count = count; + if (0 === (seen1 & 4)) + $this.showCount = false; + else + $this.showCount = showCount; + if (0 === (seen1 & 8)) + $this.event = ''; + else + $this.event = event; + if (0 === (seen1 & 16)) + $this.selected = 0; + else + $this.selected = selected; + if (0 === (seen1 & 32)) + $this.eventV2 = ''; + else + $this.eventV2 = eventV2; + return $this; + } + } + class Companion_677 { + constructor() { + this.targetPath = '/bilibili.app.card.v1.Up'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_664(); + } + } + class $serializer_664 { + constructor() { + $serializer_instance_664 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.card.v1.KUp', this, 7); + tmp0_serialDesc.addElement_5pzumi_k$('id', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('name', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('desc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('avatar', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('officialIcon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('descButton', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('cooperation', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_654()), IntSerializer_getInstance(), get_nullable($serializer_getInstance_648()), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = 0; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp11_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_654(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_648(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + } else + while (tmp1_flag) { + tmp2_index = tmp11_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_654(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_648(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp11_input.endStructure_1xqz0n_k$(tmp0_desc); + return KUp.new_com_bapis_bilibili_app_card_v1_KUp_fb91ov_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, null); + } + serialize_twt67x_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.id.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.id); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.name === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.name); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.desc === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.desc); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.avatar == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_654(), value.avatar); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.officialIcon === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 4, value.officialIcon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.descButton == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 5, $serializer_getInstance_648(), value.descButton); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.cooperation === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.cooperation); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_twt67x_k$(encoder, value instanceof KUp ? value : THROW_CCE()); + } + } + class KUp { + constructor(id, name, desc, avatar, officialIcon, descButton, cooperation) { + Companion_instance_677; + id = id === VOID ? new Long(0, 0) : id; + name = name === VOID ? '' : name; + desc = desc === VOID ? '' : desc; + avatar = avatar === VOID ? null : avatar; + officialIcon = officialIcon === VOID ? 0 : officialIcon; + descButton = descButton === VOID ? null : descButton; + cooperation = cooperation === VOID ? '' : cooperation; + this.id = id; + this.name = name; + this.desc = desc; + this.avatar = avatar; + this.officialIcon = officialIcon; + this.descButton = descButton; + this.cooperation = cooperation; + } + get_id_kntnx8_k$() { + return this.id; + } + get_name_woqyms_k$() { + return this.name; + } + get_desc_woknve_k$() { + return this.desc; + } + get_avatar_b5pjz6_k$() { + return this.avatar; + } + get_officialIcon_t4hw0d_k$() { + return this.officialIcon; + } + get_descButton_fxt3u4_k$() { + return this.descButton; + } + get_cooperation_5yfi1e_k$() { + return this.cooperation; + } + component1_7eebsc_k$() { + return this.id; + } + component2_7eebsb_k$() { + return this.name; + } + component3_7eebsa_k$() { + return this.desc; + } + component4_7eebs9_k$() { + return this.avatar; + } + component5_7eebs8_k$() { + return this.officialIcon; + } + component6_7eebs7_k$() { + return this.descButton; + } + component7_7eebs6_k$() { + return this.cooperation; + } + copy_c9h4em_k$(id, name, desc, avatar, officialIcon, descButton, cooperation) { + return new KUp(id, name, desc, avatar, officialIcon, descButton, cooperation); + } + copy(id, name, desc, avatar, officialIcon, descButton, cooperation, $super) { + id = id === VOID ? this.id : id; + name = name === VOID ? this.name : name; + desc = desc === VOID ? this.desc : desc; + avatar = avatar === VOID ? this.avatar : avatar; + officialIcon = officialIcon === VOID ? this.officialIcon : officialIcon; + descButton = descButton === VOID ? this.descButton : descButton; + cooperation = cooperation === VOID ? this.cooperation : cooperation; + return this.copy_c9h4em_k$(id, name, desc, avatar, officialIcon, descButton, cooperation); + } + toString() { + return 'KUp(id=' + this.id.toString() + ', name=' + this.name + ', desc=' + this.desc + ', avatar=' + this.avatar + ', officialIcon=' + this.officialIcon + ', descButton=' + this.descButton + ', cooperation=' + this.cooperation + ')'; + } + hashCode() { + var result = this.id.hashCode(); + result = imul(result, 31) + getStringHashCode(this.name) | 0; + result = imul(result, 31) + getStringHashCode(this.desc) | 0; + result = imul(result, 31) + (this.avatar == null ? 0 : this.avatar.hashCode()) | 0; + result = imul(result, 31) + this.officialIcon | 0; + result = imul(result, 31) + (this.descButton == null ? 0 : this.descButton.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.cooperation) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KUp)) + return false; + var tmp0_other_with_cast = other instanceof KUp ? other : THROW_CCE(); + if (!this.id.equals(tmp0_other_with_cast.id)) + return false; + if (!(this.name === tmp0_other_with_cast.name)) + return false; + if (!(this.desc === tmp0_other_with_cast.desc)) + return false; + if (!equals(this.avatar, tmp0_other_with_cast.avatar)) + return false; + if (!(this.officialIcon === tmp0_other_with_cast.officialIcon)) + return false; + if (!equals(this.descButton, tmp0_other_with_cast.descButton)) + return false; + if (!(this.cooperation === tmp0_other_with_cast.cooperation)) + return false; + return true; + } + static new_com_bapis_bilibili_app_card_v1_KUp_fb91ov_k$(seen1, id, name, desc, avatar, officialIcon, descButton, cooperation, serializationConstructorMarker) { + Companion_instance_677; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_664().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.id = new Long(0, 0); + else + $this.id = id; + if (0 === (seen1 & 2)) + $this.name = ''; + else + $this.name = name; + if (0 === (seen1 & 4)) + $this.desc = ''; + else + $this.desc = desc; + if (0 === (seen1 & 8)) + $this.avatar = null; + else + $this.avatar = avatar; + if (0 === (seen1 & 16)) + $this.officialIcon = 0; + else + $this.officialIcon = officialIcon; + if (0 === (seen1 & 32)) + $this.descButton = null; + else + $this.descButton = descButton; + if (0 === (seen1 & 64)) + $this.cooperation = ''; + else + $this.cooperation = cooperation; + return $this; + } + } + class Companion_678 { + constructor() { + this.targetPath = '/bilibili.app.card.v1.Relation'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_665(); + } + } + class $serializer_665 { + constructor() { + $serializer_instance_665 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.card.v1.KRelation', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('status', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('isFollow', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('isFollowed', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = 0; + var tmp6_local2 = 0; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KRelation_0.new_com_bapis_bilibili_app_card_v1_KRelation_sc4rz6_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_w2qfia_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.status === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.status); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.isFollow === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.isFollow); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.isFollowed === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.isFollowed); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_w2qfia_k$(encoder, value instanceof KRelation_0 ? value : THROW_CCE()); + } + } + class KRelation_0 { + constructor(status, isFollow, isFollowed) { + Companion_instance_678; + status = status === VOID ? 0 : status; + isFollow = isFollow === VOID ? 0 : isFollow; + isFollowed = isFollowed === VOID ? 0 : isFollowed; + this.status = status; + this.isFollow = isFollow; + this.isFollowed = isFollowed; + } + get_status_jnf6d7_k$() { + return this.status; + } + get_isFollow_tdz0w4_k$() { + return this.isFollow; + } + get_isFollowed_sauyhp_k$() { + return this.isFollowed; + } + component1_7eebsc_k$() { + return this.status; + } + component2_7eebsb_k$() { + return this.isFollow; + } + component3_7eebsa_k$() { + return this.isFollowed; + } + copy_6of2tf_k$(status, isFollow, isFollowed) { + return new KRelation_0(status, isFollow, isFollowed); + } + copy(status, isFollow, isFollowed, $super) { + status = status === VOID ? this.status : status; + isFollow = isFollow === VOID ? this.isFollow : isFollow; + isFollowed = isFollowed === VOID ? this.isFollowed : isFollowed; + return this.copy_6of2tf_k$(status, isFollow, isFollowed); + } + toString() { + return 'KRelation(status=' + this.status + ', isFollow=' + this.isFollow + ', isFollowed=' + this.isFollowed + ')'; + } + hashCode() { + var result = this.status; + result = imul(result, 31) + this.isFollow | 0; + result = imul(result, 31) + this.isFollowed | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KRelation_0)) + return false; + var tmp0_other_with_cast = other instanceof KRelation_0 ? other : THROW_CCE(); + if (!(this.status === tmp0_other_with_cast.status)) + return false; + if (!(this.isFollow === tmp0_other_with_cast.isFollow)) + return false; + if (!(this.isFollowed === tmp0_other_with_cast.isFollowed)) + return false; + return true; + } + static new_com_bapis_bilibili_app_card_v1_KRelation_sc4rz6_k$(seen1, status, isFollow, isFollowed, serializationConstructorMarker) { + Companion_instance_678; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_665().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.status = 0; + else + $this.status = status; + if (0 === (seen1 & 2)) + $this.isFollow = 0; + else + $this.isFollow = isFollow; + if (0 === (seen1 & 4)) + $this.isFollowed = 0; + else + $this.isFollowed = isFollowed; + return $this; + } + } + class Companion_679 { + constructor() { + Companion_instance_679 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, new ArrayListSerializer($serializer_getInstance_667())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.card.v1.PanelMeta'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_666(); + } + } + class $serializer_666 { + constructor() { + $serializer_instance_666 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.card.v1.KPanelMeta', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('panelType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('shareOrigin', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('shareId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('functionalButtons', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_679().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), tmp0_cached[3]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp9_cached = Companion_getInstance_679().$childSerializers_1; + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 3, tmp9_cached[3], tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 3, tmp9_cached[3], tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KPanelMeta.new_com_bapis_bilibili_app_card_v1_KPanelMeta_v26qia_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_orl35_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_679().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.panelType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.panelType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.shareOrigin === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.shareOrigin); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.shareId === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.shareId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !equals(value.functionalButtons, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 3, tmp2_cached[3], value.functionalButtons); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_orl35_k$(encoder, value instanceof KPanelMeta ? value : THROW_CCE()); + } + } + class KPanelMeta { + constructor(panelType, shareOrigin, shareId, functionalButtons) { + Companion_getInstance_679(); + panelType = panelType === VOID ? 0 : panelType; + shareOrigin = shareOrigin === VOID ? '' : shareOrigin; + shareId = shareId === VOID ? '' : shareId; + functionalButtons = functionalButtons === VOID ? emptyList() : functionalButtons; + this.panelType = panelType; + this.shareOrigin = shareOrigin; + this.shareId = shareId; + this.functionalButtons = functionalButtons; + } + get_panelType_g03i2z_k$() { + return this.panelType; + } + get_shareOrigin_d12pvg_k$() { + return this.shareOrigin; + } + get_shareId_z8ky29_k$() { + return this.shareId; + } + get_functionalButtons_xth2j_k$() { + return this.functionalButtons; + } + component1_7eebsc_k$() { + return this.panelType; + } + component2_7eebsb_k$() { + return this.shareOrigin; + } + component3_7eebsa_k$() { + return this.shareId; + } + component4_7eebs9_k$() { + return this.functionalButtons; + } + copy_ew8fc1_k$(panelType, shareOrigin, shareId, functionalButtons) { + return new KPanelMeta(panelType, shareOrigin, shareId, functionalButtons); + } + copy(panelType, shareOrigin, shareId, functionalButtons, $super) { + panelType = panelType === VOID ? this.panelType : panelType; + shareOrigin = shareOrigin === VOID ? this.shareOrigin : shareOrigin; + shareId = shareId === VOID ? this.shareId : shareId; + functionalButtons = functionalButtons === VOID ? this.functionalButtons : functionalButtons; + return this.copy_ew8fc1_k$(panelType, shareOrigin, shareId, functionalButtons); + } + toString() { + return 'KPanelMeta(panelType=' + this.panelType + ', shareOrigin=' + this.shareOrigin + ', shareId=' + this.shareId + ', functionalButtons=' + this.functionalButtons + ')'; + } + hashCode() { + var result = this.panelType; + result = imul(result, 31) + getStringHashCode(this.shareOrigin) | 0; + result = imul(result, 31) + getStringHashCode(this.shareId) | 0; + result = imul(result, 31) + hashCode(this.functionalButtons) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KPanelMeta)) + return false; + var tmp0_other_with_cast = other instanceof KPanelMeta ? other : THROW_CCE(); + if (!(this.panelType === tmp0_other_with_cast.panelType)) + return false; + if (!(this.shareOrigin === tmp0_other_with_cast.shareOrigin)) + return false; + if (!(this.shareId === tmp0_other_with_cast.shareId)) + return false; + if (!equals(this.functionalButtons, tmp0_other_with_cast.functionalButtons)) + return false; + return true; + } + static new_com_bapis_bilibili_app_card_v1_KPanelMeta_v26qia_k$(seen1, panelType, shareOrigin, shareId, functionalButtons, serializationConstructorMarker) { + Companion_getInstance_679(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_666().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.panelType = 0; + else + $this.panelType = panelType; + if (0 === (seen1 & 2)) + $this.shareOrigin = ''; + else + $this.shareOrigin = shareOrigin; + if (0 === (seen1 & 4)) + $this.shareId = ''; + else + $this.shareId = shareId; + if (0 === (seen1 & 8)) + $this.functionalButtons = emptyList(); + else + $this.functionalButtons = functionalButtons; + return $this; + } + } + class Companion_680 { + constructor() { + Companion_instance_680 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, new ArrayListSerializer($serializer_getInstance_668())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.card.v1.FunctionalButton'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_667(); + } + } + class $serializer_667 { + constructor() { + $serializer_instance_667 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.card.v1.KFunctionalButton', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('buttonMetas', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_680().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), tmp0_cached[1]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp7_cached = Companion_getInstance_680().$childSerializers_1; + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KFunctionalButton.new_com_bapis_bilibili_app_card_v1_KFunctionalButton_58hslr_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_qt8jt5_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_680().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.type === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.type); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !equals(value.buttonMetas, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 1, tmp2_cached[1], value.buttonMetas); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_qt8jt5_k$(encoder, value instanceof KFunctionalButton ? value : THROW_CCE()); + } + } + class KFunctionalButton { + constructor(type, buttonMetas) { + Companion_getInstance_680(); + type = type === VOID ? 0 : type; + buttonMetas = buttonMetas === VOID ? emptyList() : buttonMetas; + this.type = type; + this.buttonMetas = buttonMetas; + } + get_type_wovaf7_k$() { + return this.type; + } + get_buttonMetas_fhgm0d_k$() { + return this.buttonMetas; + } + component1_7eebsc_k$() { + return this.type; + } + component2_7eebsb_k$() { + return this.buttonMetas; + } + copy_2e4jzw_k$(type, buttonMetas) { + return new KFunctionalButton(type, buttonMetas); + } + copy(type, buttonMetas, $super) { + type = type === VOID ? this.type : type; + buttonMetas = buttonMetas === VOID ? this.buttonMetas : buttonMetas; + return this.copy_2e4jzw_k$(type, buttonMetas); + } + toString() { + return 'KFunctionalButton(type=' + this.type + ', buttonMetas=' + this.buttonMetas + ')'; + } + hashCode() { + var result = this.type; + result = imul(result, 31) + hashCode(this.buttonMetas) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KFunctionalButton)) + return false; + var tmp0_other_with_cast = other instanceof KFunctionalButton ? other : THROW_CCE(); + if (!(this.type === tmp0_other_with_cast.type)) + return false; + if (!equals(this.buttonMetas, tmp0_other_with_cast.buttonMetas)) + return false; + return true; + } + static new_com_bapis_bilibili_app_card_v1_KFunctionalButton_58hslr_k$(seen1, type, buttonMetas, serializationConstructorMarker) { + Companion_getInstance_680(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_667().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.type = 0; + else + $this.type = type; + if (0 === (seen1 & 2)) + $this.buttonMetas = emptyList(); + else + $this.buttonMetas = buttonMetas; + return $this; + } + } + class Companion_681 { + constructor() { + this.targetPath = '/bilibili.app.card.v1.FunctionalButtonMeta'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_668(); + } + } + class $serializer_668 { + constructor() { + $serializer_instance_668 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.card.v1.KFunctionalButtonMeta', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('icon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('text', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('buttonStatus', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('toast', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KFunctionalButtonMeta.new_com_bapis_bilibili_app_card_v1_KFunctionalButtonMeta_lo78gs_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_yxbunw_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.icon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.icon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.text === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.text); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.buttonStatus === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.buttonStatus); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.toast === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.toast); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_yxbunw_k$(encoder, value instanceof KFunctionalButtonMeta ? value : THROW_CCE()); + } + } + class KFunctionalButtonMeta { + constructor(icon, text, buttonStatus, toast) { + Companion_instance_681; + icon = icon === VOID ? '' : icon; + text = text === VOID ? '' : text; + buttonStatus = buttonStatus === VOID ? '' : buttonStatus; + toast = toast === VOID ? '' : toast; + this.icon = icon; + this.text = text; + this.buttonStatus = buttonStatus; + this.toast = toast; + } + get_icon_wont8i_k$() { + return this.icon; + } + get_text_wouvsm_k$() { + return this.text; + } + get_buttonStatus_k8oc99_k$() { + return this.buttonStatus; + } + get_toast_iz6iv2_k$() { + return this.toast; + } + component1_7eebsc_k$() { + return this.icon; + } + component2_7eebsb_k$() { + return this.text; + } + component3_7eebsa_k$() { + return this.buttonStatus; + } + component4_7eebs9_k$() { + return this.toast; + } + copy_hmmiyd_k$(icon, text, buttonStatus, toast) { + return new KFunctionalButtonMeta(icon, text, buttonStatus, toast); + } + copy(icon, text, buttonStatus, toast, $super) { + icon = icon === VOID ? this.icon : icon; + text = text === VOID ? this.text : text; + buttonStatus = buttonStatus === VOID ? this.buttonStatus : buttonStatus; + toast = toast === VOID ? this.toast : toast; + return this.copy_hmmiyd_k$(icon, text, buttonStatus, toast); + } + toString() { + return 'KFunctionalButtonMeta(icon=' + this.icon + ', text=' + this.text + ', buttonStatus=' + this.buttonStatus + ', toast=' + this.toast + ')'; + } + hashCode() { + var result = getStringHashCode(this.icon); + result = imul(result, 31) + getStringHashCode(this.text) | 0; + result = imul(result, 31) + getStringHashCode(this.buttonStatus) | 0; + result = imul(result, 31) + getStringHashCode(this.toast) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KFunctionalButtonMeta)) + return false; + var tmp0_other_with_cast = other instanceof KFunctionalButtonMeta ? other : THROW_CCE(); + if (!(this.icon === tmp0_other_with_cast.icon)) + return false; + if (!(this.text === tmp0_other_with_cast.text)) + return false; + if (!(this.buttonStatus === tmp0_other_with_cast.buttonStatus)) + return false; + if (!(this.toast === tmp0_other_with_cast.toast)) + return false; + return true; + } + static new_com_bapis_bilibili_app_card_v1_KFunctionalButtonMeta_lo78gs_k$(seen1, icon, text, buttonStatus, toast, serializationConstructorMarker) { + Companion_instance_681; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_668().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.icon = ''; + else + $this.icon = icon; + if (0 === (seen1 & 2)) + $this.text = ''; + else + $this.text = text; + if (0 === (seen1 & 4)) + $this.buttonStatus = ''; + else + $this.buttonStatus = buttonStatus; + if (0 === (seen1 & 8)) + $this.toast = ''; + else + $this.toast = toast; + return $this; + } + } + class KCard_1 { + constructor(value) { + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + } + class KSmallCoverV2 extends KCard_1 { + constructor() { + KSmallCoverV2_instance = null; + super(0); + KSmallCoverV2_instance = this; + } + } + class KOnePicV2 extends KCard_1 { + constructor() { + KOnePicV2_instance = null; + super(1); + KOnePicV2_instance = this; + } + } + class KThreePicV2 extends KCard_1 { + constructor() { + KThreePicV2_instance = null; + super(2); + KThreePicV2_instance = this; + } + } + class Companion_682 { + constructor() { + Companion_instance_682 = this; + var tmp = this; + tmp.cardValues$delegate_1 = lazy_0(KDoubleCards$Companion$cardValues$delegate$lambda); + this.targetPath = '/bilibili.app.card.v1.DoubleCards'; + } + get_cardValues_8afodh_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.cardValues$delegate_1; + var thisRef = this; + var property = cardValues$factory_0(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_669(); + } + get cardValues() { + return this.get_cardValues_8afodh_k$(); + } + } + class $serializer_669 { + constructor() { + $serializer_instance_669 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.card.v1.KDoubleCards', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('smallCoverV2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('onePicV2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('threePicV2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_670()), get_nullable($serializer_getInstance_681()), get_nullable($serializer_getInstance_680())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_transient0 = 0; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_670(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_681(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_680(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_670(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_681(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_680(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KDoubleCards.new_com_bapis_bilibili_app_card_v1_KDoubleCards_m7jdqu_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_2lkrli_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.smallCoverV2__1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_670(), value.smallCoverV2__1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.onePicV2__1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_681(), value.onePicV2__1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.threePicV2__1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_680(), value.threePicV2__1); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_2lkrli_k$(encoder, value instanceof KDoubleCards ? value : THROW_CCE()); + } + } + class KDoubleCards { + constructor(smallCoverV2, onePicV2, threePicV2) { + Companion_getInstance_682(); + smallCoverV2 = smallCoverV2 === VOID ? null : smallCoverV2; + onePicV2 = onePicV2 === VOID ? null : onePicV2; + threePicV2 = threePicV2 === VOID ? null : threePicV2; + this.smallCoverV2__1 = smallCoverV2; + this.onePicV2__1 = onePicV2; + this.threePicV2__1 = threePicV2; + var tmp = this; + tmp.cardNumber$delegate_1 = lazy_0(KDoubleCards$cardNumber$delegate$lambda(this)); + } + cardValue() { + if (!(this.smallCoverV2__1 == null)) { + var tmp = this.smallCoverV2__1; + return (tmp == null ? true : !(tmp == null)) ? tmp : null; + } else if (!(this.onePicV2__1 == null)) { + var tmp_0 = this.onePicV2__1; + return (tmp_0 == null ? true : !(tmp_0 == null)) ? tmp_0 : null; + } else if (!(this.threePicV2__1 == null)) { + var tmp_1 = this.threePicV2__1; + return (tmp_1 == null ? true : !(tmp_1 == null)) ? tmp_1 : null; + } else { + return null; + } + } + cardTypeJs() { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = Companion_getInstance_682().cardValues; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.card.v1.KDoubleCards.cardType.' call + var it = element; + tmp$ret$0 = it.value === _get_cardNumber__g5uxbm_0(this); + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + return tmp$ret$1; + } + copy_tvixjv_k$(smallCoverV2, onePicV2, threePicV2) { + return new KDoubleCards(smallCoverV2, onePicV2, threePicV2); + } + copy(smallCoverV2, onePicV2, threePicV2, $super) { + smallCoverV2 = smallCoverV2 === VOID ? this.smallCoverV2__1 : smallCoverV2; + onePicV2 = onePicV2 === VOID ? this.onePicV2__1 : onePicV2; + threePicV2 = threePicV2 === VOID ? this.threePicV2__1 : threePicV2; + return this.copy_tvixjv_k$(smallCoverV2, onePicV2, threePicV2); + } + toString() { + return 'KDoubleCards(smallCoverV2=' + this.smallCoverV2__1 + ', onePicV2=' + this.onePicV2__1 + ', threePicV2=' + this.threePicV2__1 + ')'; + } + hashCode() { + var result = this.smallCoverV2__1 == null ? 0 : this.smallCoverV2__1.hashCode(); + result = imul(result, 31) + (this.onePicV2__1 == null ? 0 : this.onePicV2__1.hashCode()) | 0; + result = imul(result, 31) + (this.threePicV2__1 == null ? 0 : this.threePicV2__1.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KDoubleCards)) + return false; + var tmp0_other_with_cast = other instanceof KDoubleCards ? other : THROW_CCE(); + if (!equals(this.smallCoverV2__1, tmp0_other_with_cast.smallCoverV2__1)) + return false; + if (!equals(this.onePicV2__1, tmp0_other_with_cast.onePicV2__1)) + return false; + if (!equals(this.threePicV2__1, tmp0_other_with_cast.threePicV2__1)) + return false; + return true; + } + static new_com_bapis_bilibili_app_card_v1_KDoubleCards_m7jdqu_k$(seen1, smallCoverV2, onePicV2, threePicV2, serializationConstructorMarker) { + Companion_getInstance_682(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_669().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.smallCoverV2__1 = null; + else + $this.smallCoverV2__1 = smallCoverV2; + if (0 === (seen1 & 2)) + $this.onePicV2__1 = null; + else + $this.onePicV2__1 = onePicV2; + if (0 === (seen1 & 4)) + $this.threePicV2__1 = null; + else + $this.threePicV2__1 = threePicV2; + var tmp = $this; + tmp.cardNumber$delegate_1 = lazy_0(KDoubleCards$_init_$lambda_hv1rmk($this)); + return $this; + } + } + class Companion_683 { + constructor() { + this.targetPath = '/bilibili.app.card.v1.SmallCoverV2'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_670(); + } + } + class $serializer_670 { + constructor() { + $serializer_instance_670 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.card.v1.KSmallCoverV2', this, 20); + tmp0_serialDesc.addElement_5pzumi_k$('base', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('coverGif', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('coverBlur', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('coverLeftText1', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('coverLeftIcon1', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('coverLeftText2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('coverLeftIcon2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('coverRightText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('coverRightIcon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('coverRightBackgroundColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('subtitle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('badge', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + tmp0_serialDesc.addElement_5pzumi_k$('rcmdReason', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(13)); + tmp0_serialDesc.addElement_5pzumi_k$('desc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(14)); + tmp0_serialDesc.addElement_5pzumi_k$('avatar', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(15)); + tmp0_serialDesc.addElement_5pzumi_k$('officialIcon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(16)); + tmp0_serialDesc.addElement_5pzumi_k$('canPlay', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(17)); + tmp0_serialDesc.addElement_5pzumi_k$('rcmdReasonStyle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(18)); + tmp0_serialDesc.addElement_5pzumi_k$('rcmdReasonStyleV2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(19)); + tmp0_serialDesc.addElement_5pzumi_k$('likeButton', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(20)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_646()), StringSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_654()), IntSerializer_getInstance(), IntSerializer_getInstance(), get_nullable($serializer_getInstance_662()), get_nullable($serializer_getInstance_662()), get_nullable($serializer_getInstance_663())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = 0; + var tmp7_local3 = null; + var tmp8_local4 = 0; + var tmp9_local5 = null; + var tmp10_local6 = 0; + var tmp11_local7 = null; + var tmp12_local8 = 0; + var tmp13_local9 = null; + var tmp14_local10 = null; + var tmp15_local11 = null; + var tmp16_local12 = null; + var tmp17_local13 = null; + var tmp18_local14 = null; + var tmp19_local15 = 0; + var tmp20_local16 = 0; + var tmp21_local17 = null; + var tmp22_local18 = null; + var tmp23_local19 = null; + var tmp24_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp24_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp24_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_646(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp24_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp24_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp24_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp24_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp24_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp24_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp24_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp24_input.decodeIntElement_941u6a_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp24_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp24_input.decodeStringElement_3oenpg_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp24_input.decodeStringElement_3oenpg_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + tmp16_local12 = tmp24_input.decodeStringElement_3oenpg_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + tmp17_local13 = tmp24_input.decodeStringElement_3oenpg_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + tmp18_local14 = tmp24_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 14, $serializer_getInstance_654(), tmp18_local14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + tmp19_local15 = tmp24_input.decodeIntElement_941u6a_k$(tmp0_desc, 15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + tmp20_local16 = tmp24_input.decodeIntElement_941u6a_k$(tmp0_desc, 16); + tmp3_bitMask0 = tmp3_bitMask0 | 65536; + tmp21_local17 = tmp24_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 17, $serializer_getInstance_662(), tmp21_local17); + tmp3_bitMask0 = tmp3_bitMask0 | 131072; + tmp22_local18 = tmp24_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 18, $serializer_getInstance_662(), tmp22_local18); + tmp3_bitMask0 = tmp3_bitMask0 | 262144; + tmp23_local19 = tmp24_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 19, $serializer_getInstance_663(), tmp23_local19); + tmp3_bitMask0 = tmp3_bitMask0 | 524288; + } else + while (tmp1_flag) { + tmp2_index = tmp24_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp24_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_646(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp24_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp24_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp24_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp24_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp24_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp24_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp24_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp24_input.decodeIntElement_941u6a_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp24_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp24_input.decodeStringElement_3oenpg_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp24_input.decodeStringElement_3oenpg_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + case 12: + tmp16_local12 = tmp24_input.decodeStringElement_3oenpg_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + break; + case 13: + tmp17_local13 = tmp24_input.decodeStringElement_3oenpg_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + break; + case 14: + tmp18_local14 = tmp24_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 14, $serializer_getInstance_654(), tmp18_local14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + break; + case 15: + tmp19_local15 = tmp24_input.decodeIntElement_941u6a_k$(tmp0_desc, 15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + break; + case 16: + tmp20_local16 = tmp24_input.decodeIntElement_941u6a_k$(tmp0_desc, 16); + tmp3_bitMask0 = tmp3_bitMask0 | 65536; + break; + case 17: + tmp21_local17 = tmp24_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 17, $serializer_getInstance_662(), tmp21_local17); + tmp3_bitMask0 = tmp3_bitMask0 | 131072; + break; + case 18: + tmp22_local18 = tmp24_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 18, $serializer_getInstance_662(), tmp22_local18); + tmp3_bitMask0 = tmp3_bitMask0 | 262144; + break; + case 19: + tmp23_local19 = tmp24_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 19, $serializer_getInstance_663(), tmp23_local19); + tmp3_bitMask0 = tmp3_bitMask0 | 524288; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp24_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSmallCoverV2_0.new_com_bapis_bilibili_app_card_v1_KSmallCoverV2_iyo3pc_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, tmp18_local14, tmp19_local15, tmp20_local16, tmp21_local17, tmp22_local18, tmp23_local19, null); + } + serialize_tdro5q_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.base == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_646(), value.base); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.coverGif === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.coverGif); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.coverBlur === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.coverBlur); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.coverLeftText1 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.coverLeftText1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.coverLeftIcon1 === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 4, value.coverLeftIcon1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.coverLeftText2 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.coverLeftText2); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.coverLeftIcon2 === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 6, value.coverLeftIcon2); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.coverRightText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.coverRightText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.coverRightIcon === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 8, value.coverRightIcon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.coverRightBackgroundColor === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 9, value.coverRightBackgroundColor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.subtitle === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 10, value.subtitle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.badge === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 11, value.badge); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !(value.rcmdReason === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 12, value.rcmdReason); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 13) ? true : !(value.desc === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 13, value.desc); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 14) ? true : !(value.avatar == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 14, $serializer_getInstance_654(), value.avatar); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 15) ? true : !(value.officialIcon === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 15, value.officialIcon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 16) ? true : !(value.canPlay === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 16, value.canPlay); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 17) ? true : !(value.rcmdReasonStyle == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 17, $serializer_getInstance_662(), value.rcmdReasonStyle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 18) ? true : !(value.rcmdReasonStyleV2 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 18, $serializer_getInstance_662(), value.rcmdReasonStyleV2); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 19) ? true : !(value.likeButton == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 19, $serializer_getInstance_663(), value.likeButton); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_tdro5q_k$(encoder, value instanceof KSmallCoverV2_0 ? value : THROW_CCE()); + } + } + class KSmallCoverV2_0 { + constructor(base, coverGif, coverBlur, coverLeftText1, coverLeftIcon1, coverLeftText2, coverLeftIcon2, coverRightText, coverRightIcon, coverRightBackgroundColor, subtitle, badge, rcmdReason, desc, avatar, officialIcon, canPlay, rcmdReasonStyle, rcmdReasonStyleV2, likeButton) { + Companion_instance_683; + base = base === VOID ? null : base; + coverGif = coverGif === VOID ? '' : coverGif; + coverBlur = coverBlur === VOID ? 0 : coverBlur; + coverLeftText1 = coverLeftText1 === VOID ? '' : coverLeftText1; + coverLeftIcon1 = coverLeftIcon1 === VOID ? 0 : coverLeftIcon1; + coverLeftText2 = coverLeftText2 === VOID ? '' : coverLeftText2; + coverLeftIcon2 = coverLeftIcon2 === VOID ? 0 : coverLeftIcon2; + coverRightText = coverRightText === VOID ? '' : coverRightText; + coverRightIcon = coverRightIcon === VOID ? 0 : coverRightIcon; + coverRightBackgroundColor = coverRightBackgroundColor === VOID ? '' : coverRightBackgroundColor; + subtitle = subtitle === VOID ? '' : subtitle; + badge = badge === VOID ? '' : badge; + rcmdReason = rcmdReason === VOID ? '' : rcmdReason; + desc = desc === VOID ? '' : desc; + avatar = avatar === VOID ? null : avatar; + officialIcon = officialIcon === VOID ? 0 : officialIcon; + canPlay = canPlay === VOID ? 0 : canPlay; + rcmdReasonStyle = rcmdReasonStyle === VOID ? null : rcmdReasonStyle; + rcmdReasonStyleV2 = rcmdReasonStyleV2 === VOID ? null : rcmdReasonStyleV2; + likeButton = likeButton === VOID ? null : likeButton; + this.base = base; + this.coverGif = coverGif; + this.coverBlur = coverBlur; + this.coverLeftText1 = coverLeftText1; + this.coverLeftIcon1 = coverLeftIcon1; + this.coverLeftText2 = coverLeftText2; + this.coverLeftIcon2 = coverLeftIcon2; + this.coverRightText = coverRightText; + this.coverRightIcon = coverRightIcon; + this.coverRightBackgroundColor = coverRightBackgroundColor; + this.subtitle = subtitle; + this.badge = badge; + this.rcmdReason = rcmdReason; + this.desc = desc; + this.avatar = avatar; + this.officialIcon = officialIcon; + this.canPlay = canPlay; + this.rcmdReasonStyle = rcmdReasonStyle; + this.rcmdReasonStyleV2 = rcmdReasonStyleV2; + this.likeButton = likeButton; + } + get_base_wojaxm_k$() { + return this.base; + } + get_coverGif_xeq6vq_k$() { + return this.coverGif; + } + get_coverBlur_ts80kr_k$() { + return this.coverBlur; + } + get_coverLeftText1_ck8hkf_k$() { + return this.coverLeftText1; + } + get_coverLeftIcon1_ce5a8z_k$() { + return this.coverLeftIcon1; + } + get_coverLeftText2_ck8hkg_k$() { + return this.coverLeftText2; + } + get_coverLeftIcon2_ce5a90_k$() { + return this.coverLeftIcon2; + } + get_coverRightText_t0bat7_k$() { + return this.coverRightText; + } + get_coverRightIcon_t04893_k$() { + return this.coverRightIcon; + } + get_coverRightBackgroundColor_hg9jnr_k$() { + return this.coverRightBackgroundColor; + } + get_subtitle_55eoyp_k$() { + return this.subtitle; + } + get_badge_ip1cai_k$() { + return this.badge; + } + get_rcmdReason_lci9h1_k$() { + return this.rcmdReason; + } + get_desc_woknve_k$() { + return this.desc; + } + get_avatar_b5pjz6_k$() { + return this.avatar; + } + get_officialIcon_t4hw0d_k$() { + return this.officialIcon; + } + get_canPlay_acszln_k$() { + return this.canPlay; + } + get_rcmdReasonStyle_5yq4ak_k$() { + return this.rcmdReasonStyle; + } + get_rcmdReasonStyleV2_livs4o_k$() { + return this.rcmdReasonStyleV2; + } + get_likeButton_oaqc6q_k$() { + return this.likeButton; + } + component1_7eebsc_k$() { + return this.base; + } + component2_7eebsb_k$() { + return this.coverGif; + } + component3_7eebsa_k$() { + return this.coverBlur; + } + component4_7eebs9_k$() { + return this.coverLeftText1; + } + component5_7eebs8_k$() { + return this.coverLeftIcon1; + } + component6_7eebs7_k$() { + return this.coverLeftText2; + } + component7_7eebs6_k$() { + return this.coverLeftIcon2; + } + component8_7eebs5_k$() { + return this.coverRightText; + } + component9_7eebs4_k$() { + return this.coverRightIcon; + } + component10_gazzfo_k$() { + return this.coverRightBackgroundColor; + } + component11_gazzfn_k$() { + return this.subtitle; + } + component12_gazzfm_k$() { + return this.badge; + } + component13_gazzfl_k$() { + return this.rcmdReason; + } + component14_gazzfk_k$() { + return this.desc; + } + component15_gazzfj_k$() { + return this.avatar; + } + component16_gazzfi_k$() { + return this.officialIcon; + } + component17_gazzfh_k$() { + return this.canPlay; + } + component18_gazzfg_k$() { + return this.rcmdReasonStyle; + } + component19_gazzff_k$() { + return this.rcmdReasonStyleV2; + } + component20_gazzet_k$() { + return this.likeButton; + } + copy_mgnp5a_k$(base, coverGif, coverBlur, coverLeftText1, coverLeftIcon1, coverLeftText2, coverLeftIcon2, coverRightText, coverRightIcon, coverRightBackgroundColor, subtitle, badge, rcmdReason, desc, avatar, officialIcon, canPlay, rcmdReasonStyle, rcmdReasonStyleV2, likeButton) { + return new KSmallCoverV2_0(base, coverGif, coverBlur, coverLeftText1, coverLeftIcon1, coverLeftText2, coverLeftIcon2, coverRightText, coverRightIcon, coverRightBackgroundColor, subtitle, badge, rcmdReason, desc, avatar, officialIcon, canPlay, rcmdReasonStyle, rcmdReasonStyleV2, likeButton); + } + copy(base, coverGif, coverBlur, coverLeftText1, coverLeftIcon1, coverLeftText2, coverLeftIcon2, coverRightText, coverRightIcon, coverRightBackgroundColor, subtitle, badge, rcmdReason, desc, avatar, officialIcon, canPlay, rcmdReasonStyle, rcmdReasonStyleV2, likeButton, $super) { + base = base === VOID ? this.base : base; + coverGif = coverGif === VOID ? this.coverGif : coverGif; + coverBlur = coverBlur === VOID ? this.coverBlur : coverBlur; + coverLeftText1 = coverLeftText1 === VOID ? this.coverLeftText1 : coverLeftText1; + coverLeftIcon1 = coverLeftIcon1 === VOID ? this.coverLeftIcon1 : coverLeftIcon1; + coverLeftText2 = coverLeftText2 === VOID ? this.coverLeftText2 : coverLeftText2; + coverLeftIcon2 = coverLeftIcon2 === VOID ? this.coverLeftIcon2 : coverLeftIcon2; + coverRightText = coverRightText === VOID ? this.coverRightText : coverRightText; + coverRightIcon = coverRightIcon === VOID ? this.coverRightIcon : coverRightIcon; + coverRightBackgroundColor = coverRightBackgroundColor === VOID ? this.coverRightBackgroundColor : coverRightBackgroundColor; + subtitle = subtitle === VOID ? this.subtitle : subtitle; + badge = badge === VOID ? this.badge : badge; + rcmdReason = rcmdReason === VOID ? this.rcmdReason : rcmdReason; + desc = desc === VOID ? this.desc : desc; + avatar = avatar === VOID ? this.avatar : avatar; + officialIcon = officialIcon === VOID ? this.officialIcon : officialIcon; + canPlay = canPlay === VOID ? this.canPlay : canPlay; + rcmdReasonStyle = rcmdReasonStyle === VOID ? this.rcmdReasonStyle : rcmdReasonStyle; + rcmdReasonStyleV2 = rcmdReasonStyleV2 === VOID ? this.rcmdReasonStyleV2 : rcmdReasonStyleV2; + likeButton = likeButton === VOID ? this.likeButton : likeButton; + return this.copy_mgnp5a_k$(base, coverGif, coverBlur, coverLeftText1, coverLeftIcon1, coverLeftText2, coverLeftIcon2, coverRightText, coverRightIcon, coverRightBackgroundColor, subtitle, badge, rcmdReason, desc, avatar, officialIcon, canPlay, rcmdReasonStyle, rcmdReasonStyleV2, likeButton); + } + toString() { + return 'KSmallCoverV2(base=' + this.base + ', coverGif=' + this.coverGif + ', coverBlur=' + this.coverBlur + ', coverLeftText1=' + this.coverLeftText1 + ', coverLeftIcon1=' + this.coverLeftIcon1 + ', coverLeftText2=' + this.coverLeftText2 + ', coverLeftIcon2=' + this.coverLeftIcon2 + ', coverRightText=' + this.coverRightText + ', coverRightIcon=' + this.coverRightIcon + ', coverRightBackgroundColor=' + this.coverRightBackgroundColor + ', subtitle=' + this.subtitle + ', badge=' + this.badge + ', rcmdReason=' + this.rcmdReason + ', desc=' + this.desc + ', avatar=' + this.avatar + ', officialIcon=' + this.officialIcon + ', canPlay=' + this.canPlay + ', rcmdReasonStyle=' + this.rcmdReasonStyle + ', rcmdReasonStyleV2=' + this.rcmdReasonStyleV2 + ', likeButton=' + this.likeButton + ')'; + } + hashCode() { + var result = this.base == null ? 0 : this.base.hashCode(); + result = imul(result, 31) + getStringHashCode(this.coverGif) | 0; + result = imul(result, 31) + this.coverBlur | 0; + result = imul(result, 31) + getStringHashCode(this.coverLeftText1) | 0; + result = imul(result, 31) + this.coverLeftIcon1 | 0; + result = imul(result, 31) + getStringHashCode(this.coverLeftText2) | 0; + result = imul(result, 31) + this.coverLeftIcon2 | 0; + result = imul(result, 31) + getStringHashCode(this.coverRightText) | 0; + result = imul(result, 31) + this.coverRightIcon | 0; + result = imul(result, 31) + getStringHashCode(this.coverRightBackgroundColor) | 0; + result = imul(result, 31) + getStringHashCode(this.subtitle) | 0; + result = imul(result, 31) + getStringHashCode(this.badge) | 0; + result = imul(result, 31) + getStringHashCode(this.rcmdReason) | 0; + result = imul(result, 31) + getStringHashCode(this.desc) | 0; + result = imul(result, 31) + (this.avatar == null ? 0 : this.avatar.hashCode()) | 0; + result = imul(result, 31) + this.officialIcon | 0; + result = imul(result, 31) + this.canPlay | 0; + result = imul(result, 31) + (this.rcmdReasonStyle == null ? 0 : this.rcmdReasonStyle.hashCode()) | 0; + result = imul(result, 31) + (this.rcmdReasonStyleV2 == null ? 0 : this.rcmdReasonStyleV2.hashCode()) | 0; + result = imul(result, 31) + (this.likeButton == null ? 0 : this.likeButton.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSmallCoverV2_0)) + return false; + var tmp0_other_with_cast = other instanceof KSmallCoverV2_0 ? other : THROW_CCE(); + if (!equals(this.base, tmp0_other_with_cast.base)) + return false; + if (!(this.coverGif === tmp0_other_with_cast.coverGif)) + return false; + if (!(this.coverBlur === tmp0_other_with_cast.coverBlur)) + return false; + if (!(this.coverLeftText1 === tmp0_other_with_cast.coverLeftText1)) + return false; + if (!(this.coverLeftIcon1 === tmp0_other_with_cast.coverLeftIcon1)) + return false; + if (!(this.coverLeftText2 === tmp0_other_with_cast.coverLeftText2)) + return false; + if (!(this.coverLeftIcon2 === tmp0_other_with_cast.coverLeftIcon2)) + return false; + if (!(this.coverRightText === tmp0_other_with_cast.coverRightText)) + return false; + if (!(this.coverRightIcon === tmp0_other_with_cast.coverRightIcon)) + return false; + if (!(this.coverRightBackgroundColor === tmp0_other_with_cast.coverRightBackgroundColor)) + return false; + if (!(this.subtitle === tmp0_other_with_cast.subtitle)) + return false; + if (!(this.badge === tmp0_other_with_cast.badge)) + return false; + if (!(this.rcmdReason === tmp0_other_with_cast.rcmdReason)) + return false; + if (!(this.desc === tmp0_other_with_cast.desc)) + return false; + if (!equals(this.avatar, tmp0_other_with_cast.avatar)) + return false; + if (!(this.officialIcon === tmp0_other_with_cast.officialIcon)) + return false; + if (!(this.canPlay === tmp0_other_with_cast.canPlay)) + return false; + if (!equals(this.rcmdReasonStyle, tmp0_other_with_cast.rcmdReasonStyle)) + return false; + if (!equals(this.rcmdReasonStyleV2, tmp0_other_with_cast.rcmdReasonStyleV2)) + return false; + if (!equals(this.likeButton, tmp0_other_with_cast.likeButton)) + return false; + return true; + } + static new_com_bapis_bilibili_app_card_v1_KSmallCoverV2_iyo3pc_k$(seen1, base, coverGif, coverBlur, coverLeftText1, coverLeftIcon1, coverLeftText2, coverLeftIcon2, coverRightText, coverRightIcon, coverRightBackgroundColor, subtitle, badge, rcmdReason, desc, avatar, officialIcon, canPlay, rcmdReasonStyle, rcmdReasonStyleV2, likeButton, serializationConstructorMarker) { + Companion_instance_683; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_670().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.base = null; + else + $this.base = base; + if (0 === (seen1 & 2)) + $this.coverGif = ''; + else + $this.coverGif = coverGif; + if (0 === (seen1 & 4)) + $this.coverBlur = 0; + else + $this.coverBlur = coverBlur; + if (0 === (seen1 & 8)) + $this.coverLeftText1 = ''; + else + $this.coverLeftText1 = coverLeftText1; + if (0 === (seen1 & 16)) + $this.coverLeftIcon1 = 0; + else + $this.coverLeftIcon1 = coverLeftIcon1; + if (0 === (seen1 & 32)) + $this.coverLeftText2 = ''; + else + $this.coverLeftText2 = coverLeftText2; + if (0 === (seen1 & 64)) + $this.coverLeftIcon2 = 0; + else + $this.coverLeftIcon2 = coverLeftIcon2; + if (0 === (seen1 & 128)) + $this.coverRightText = ''; + else + $this.coverRightText = coverRightText; + if (0 === (seen1 & 256)) + $this.coverRightIcon = 0; + else + $this.coverRightIcon = coverRightIcon; + if (0 === (seen1 & 512)) + $this.coverRightBackgroundColor = ''; + else + $this.coverRightBackgroundColor = coverRightBackgroundColor; + if (0 === (seen1 & 1024)) + $this.subtitle = ''; + else + $this.subtitle = subtitle; + if (0 === (seen1 & 2048)) + $this.badge = ''; + else + $this.badge = badge; + if (0 === (seen1 & 4096)) + $this.rcmdReason = ''; + else + $this.rcmdReason = rcmdReason; + if (0 === (seen1 & 8192)) + $this.desc = ''; + else + $this.desc = desc; + if (0 === (seen1 & 16384)) + $this.avatar = null; + else + $this.avatar = avatar; + if (0 === (seen1 & 32768)) + $this.officialIcon = 0; + else + $this.officialIcon = officialIcon; + if (0 === (seen1 & 65536)) + $this.canPlay = 0; + else + $this.canPlay = canPlay; + if (0 === (seen1 & 131072)) + $this.rcmdReasonStyle = null; + else + $this.rcmdReasonStyle = rcmdReasonStyle; + if (0 === (seen1 & 262144)) + $this.rcmdReasonStyleV2 = null; + else + $this.rcmdReasonStyleV2 = rcmdReasonStyleV2; + if (0 === (seen1 & 524288)) + $this.likeButton = null; + else + $this.likeButton = likeButton; + return $this; + } + } + class Companion_684 { + constructor() { + this.targetPath = '/bilibili.app.card.v1.SmallCoverV3'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_671(); + } + } + class $serializer_671 { + constructor() { + $serializer_instance_671 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.card.v1.KSmallCoverV3', this, 9); + tmp0_serialDesc.addElement_5pzumi_k$('base', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('avatar', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('coverLeftText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('coverRightButton', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('rcmdReason', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('desc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('officialIcon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('canPlay', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('rcmdReasonStyle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_646()), get_nullable($serializer_getInstance_654()), StringSerializer_getInstance(), get_nullable($serializer_getInstance_648()), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), get_nullable($serializer_getInstance_662())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = 0; + var tmp11_local7 = 0; + var tmp12_local8 = null; + var tmp13_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp13_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_646(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_654(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_648(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp13_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp13_input.decodeIntElement_941u6a_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_662(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + } else + while (tmp1_flag) { + tmp2_index = tmp13_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_646(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_654(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_648(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp13_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp13_input.decodeIntElement_941u6a_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_662(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp13_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSmallCoverV3.new_com_bapis_bilibili_app_card_v1_KSmallCoverV3_94x3ot_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, null); + } + serialize_xlfk4v_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.base == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_646(), value.base); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.avatar == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_654(), value.avatar); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.coverLeftText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.coverLeftText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.coverRightButton == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_648(), value.coverRightButton); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.rcmdReason === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.rcmdReason); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.desc === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.desc); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.officialIcon === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 6, value.officialIcon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.canPlay === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 7, value.canPlay); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.rcmdReasonStyle == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 8, $serializer_getInstance_662(), value.rcmdReasonStyle); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_xlfk4v_k$(encoder, value instanceof KSmallCoverV3 ? value : THROW_CCE()); + } + } + class KSmallCoverV3 { + constructor(base, avatar, coverLeftText, coverRightButton, rcmdReason, desc, officialIcon, canPlay, rcmdReasonStyle) { + Companion_instance_684; + base = base === VOID ? null : base; + avatar = avatar === VOID ? null : avatar; + coverLeftText = coverLeftText === VOID ? '' : coverLeftText; + coverRightButton = coverRightButton === VOID ? null : coverRightButton; + rcmdReason = rcmdReason === VOID ? '' : rcmdReason; + desc = desc === VOID ? '' : desc; + officialIcon = officialIcon === VOID ? 0 : officialIcon; + canPlay = canPlay === VOID ? 0 : canPlay; + rcmdReasonStyle = rcmdReasonStyle === VOID ? null : rcmdReasonStyle; + this.base = base; + this.avatar = avatar; + this.coverLeftText = coverLeftText; + this.coverRightButton = coverRightButton; + this.rcmdReason = rcmdReason; + this.desc = desc; + this.officialIcon = officialIcon; + this.canPlay = canPlay; + this.rcmdReasonStyle = rcmdReasonStyle; + } + get_base_wojaxm_k$() { + return this.base; + } + get_avatar_b5pjz6_k$() { + return this.avatar; + } + get_coverLeftText_el6de_k$() { + return this.coverLeftText; + } + get_coverRightButton_ozf474_k$() { + return this.coverRightButton; + } + get_rcmdReason_lci9h1_k$() { + return this.rcmdReason; + } + get_desc_woknve_k$() { + return this.desc; + } + get_officialIcon_t4hw0d_k$() { + return this.officialIcon; + } + get_canPlay_acszln_k$() { + return this.canPlay; + } + get_rcmdReasonStyle_5yq4ak_k$() { + return this.rcmdReasonStyle; + } + component1_7eebsc_k$() { + return this.base; + } + component2_7eebsb_k$() { + return this.avatar; + } + component3_7eebsa_k$() { + return this.coverLeftText; + } + component4_7eebs9_k$() { + return this.coverRightButton; + } + component5_7eebs8_k$() { + return this.rcmdReason; + } + component6_7eebs7_k$() { + return this.desc; + } + component7_7eebs6_k$() { + return this.officialIcon; + } + component8_7eebs5_k$() { + return this.canPlay; + } + component9_7eebs4_k$() { + return this.rcmdReasonStyle; + } + copy_elg8a2_k$(base, avatar, coverLeftText, coverRightButton, rcmdReason, desc, officialIcon, canPlay, rcmdReasonStyle) { + return new KSmallCoverV3(base, avatar, coverLeftText, coverRightButton, rcmdReason, desc, officialIcon, canPlay, rcmdReasonStyle); + } + copy(base, avatar, coverLeftText, coverRightButton, rcmdReason, desc, officialIcon, canPlay, rcmdReasonStyle, $super) { + base = base === VOID ? this.base : base; + avatar = avatar === VOID ? this.avatar : avatar; + coverLeftText = coverLeftText === VOID ? this.coverLeftText : coverLeftText; + coverRightButton = coverRightButton === VOID ? this.coverRightButton : coverRightButton; + rcmdReason = rcmdReason === VOID ? this.rcmdReason : rcmdReason; + desc = desc === VOID ? this.desc : desc; + officialIcon = officialIcon === VOID ? this.officialIcon : officialIcon; + canPlay = canPlay === VOID ? this.canPlay : canPlay; + rcmdReasonStyle = rcmdReasonStyle === VOID ? this.rcmdReasonStyle : rcmdReasonStyle; + return this.copy_elg8a2_k$(base, avatar, coverLeftText, coverRightButton, rcmdReason, desc, officialIcon, canPlay, rcmdReasonStyle); + } + toString() { + return 'KSmallCoverV3(base=' + this.base + ', avatar=' + this.avatar + ', coverLeftText=' + this.coverLeftText + ', coverRightButton=' + this.coverRightButton + ', rcmdReason=' + this.rcmdReason + ', desc=' + this.desc + ', officialIcon=' + this.officialIcon + ', canPlay=' + this.canPlay + ', rcmdReasonStyle=' + this.rcmdReasonStyle + ')'; + } + hashCode() { + var result = this.base == null ? 0 : this.base.hashCode(); + result = imul(result, 31) + (this.avatar == null ? 0 : this.avatar.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.coverLeftText) | 0; + result = imul(result, 31) + (this.coverRightButton == null ? 0 : this.coverRightButton.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.rcmdReason) | 0; + result = imul(result, 31) + getStringHashCode(this.desc) | 0; + result = imul(result, 31) + this.officialIcon | 0; + result = imul(result, 31) + this.canPlay | 0; + result = imul(result, 31) + (this.rcmdReasonStyle == null ? 0 : this.rcmdReasonStyle.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSmallCoverV3)) + return false; + var tmp0_other_with_cast = other instanceof KSmallCoverV3 ? other : THROW_CCE(); + if (!equals(this.base, tmp0_other_with_cast.base)) + return false; + if (!equals(this.avatar, tmp0_other_with_cast.avatar)) + return false; + if (!(this.coverLeftText === tmp0_other_with_cast.coverLeftText)) + return false; + if (!equals(this.coverRightButton, tmp0_other_with_cast.coverRightButton)) + return false; + if (!(this.rcmdReason === tmp0_other_with_cast.rcmdReason)) + return false; + if (!(this.desc === tmp0_other_with_cast.desc)) + return false; + if (!(this.officialIcon === tmp0_other_with_cast.officialIcon)) + return false; + if (!(this.canPlay === tmp0_other_with_cast.canPlay)) + return false; + if (!equals(this.rcmdReasonStyle, tmp0_other_with_cast.rcmdReasonStyle)) + return false; + return true; + } + static new_com_bapis_bilibili_app_card_v1_KSmallCoverV3_94x3ot_k$(seen1, base, avatar, coverLeftText, coverRightButton, rcmdReason, desc, officialIcon, canPlay, rcmdReasonStyle, serializationConstructorMarker) { + Companion_instance_684; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_671().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.base = null; + else + $this.base = base; + if (0 === (seen1 & 2)) + $this.avatar = null; + else + $this.avatar = avatar; + if (0 === (seen1 & 4)) + $this.coverLeftText = ''; + else + $this.coverLeftText = coverLeftText; + if (0 === (seen1 & 8)) + $this.coverRightButton = null; + else + $this.coverRightButton = coverRightButton; + if (0 === (seen1 & 16)) + $this.rcmdReason = ''; + else + $this.rcmdReason = rcmdReason; + if (0 === (seen1 & 32)) + $this.desc = ''; + else + $this.desc = desc; + if (0 === (seen1 & 64)) + $this.officialIcon = 0; + else + $this.officialIcon = officialIcon; + if (0 === (seen1 & 128)) + $this.canPlay = 0; + else + $this.canPlay = canPlay; + if (0 === (seen1 & 256)) + $this.rcmdReasonStyle = null; + else + $this.rcmdReasonStyle = rcmdReasonStyle; + return $this; + } + } + class Companion_685 { + constructor() { + this.targetPath = '/bilibili.app.card.v1.MiddleCoverV2'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_672(); + } + } + class $serializer_672 { + constructor() { + $serializer_instance_672 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.card.v1.KMiddleCoverV2', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('base', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('ratio', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('desc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('badge', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_646()), IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = 0; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_646(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_646(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KMiddleCoverV2.new_com_bapis_bilibili_app_card_v1_KMiddleCoverV2_sstsp9_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_vzvnzq_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.base == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_646(), value.base); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.ratio === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.ratio); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.desc === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.desc); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.badge === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.badge); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_vzvnzq_k$(encoder, value instanceof KMiddleCoverV2 ? value : THROW_CCE()); + } + } + class KMiddleCoverV2 { + constructor(base, ratio, desc, badge) { + Companion_instance_685; + base = base === VOID ? null : base; + ratio = ratio === VOID ? 0 : ratio; + desc = desc === VOID ? '' : desc; + badge = badge === VOID ? '' : badge; + this.base = base; + this.ratio = ratio; + this.desc = desc; + this.badge = badge; + } + get_base_wojaxm_k$() { + return this.base; + } + get_ratio_ixudpe_k$() { + return this.ratio; + } + get_desc_woknve_k$() { + return this.desc; + } + get_badge_ip1cai_k$() { + return this.badge; + } + component1_7eebsc_k$() { + return this.base; + } + component2_7eebsb_k$() { + return this.ratio; + } + component3_7eebsa_k$() { + return this.desc; + } + component4_7eebs9_k$() { + return this.badge; + } + copy_8bks6_k$(base, ratio, desc, badge) { + return new KMiddleCoverV2(base, ratio, desc, badge); + } + copy(base, ratio, desc, badge, $super) { + base = base === VOID ? this.base : base; + ratio = ratio === VOID ? this.ratio : ratio; + desc = desc === VOID ? this.desc : desc; + badge = badge === VOID ? this.badge : badge; + return this.copy_8bks6_k$(base, ratio, desc, badge); + } + toString() { + return 'KMiddleCoverV2(base=' + this.base + ', ratio=' + this.ratio + ', desc=' + this.desc + ', badge=' + this.badge + ')'; + } + hashCode() { + var result = this.base == null ? 0 : this.base.hashCode(); + result = imul(result, 31) + this.ratio | 0; + result = imul(result, 31) + getStringHashCode(this.desc) | 0; + result = imul(result, 31) + getStringHashCode(this.badge) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KMiddleCoverV2)) + return false; + var tmp0_other_with_cast = other instanceof KMiddleCoverV2 ? other : THROW_CCE(); + if (!equals(this.base, tmp0_other_with_cast.base)) + return false; + if (!(this.ratio === tmp0_other_with_cast.ratio)) + return false; + if (!(this.desc === tmp0_other_with_cast.desc)) + return false; + if (!(this.badge === tmp0_other_with_cast.badge)) + return false; + return true; + } + static new_com_bapis_bilibili_app_card_v1_KMiddleCoverV2_sstsp9_k$(seen1, base, ratio, desc, badge, serializationConstructorMarker) { + Companion_instance_685; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_672().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.base = null; + else + $this.base = base; + if (0 === (seen1 & 2)) + $this.ratio = 0; + else + $this.ratio = ratio; + if (0 === (seen1 & 4)) + $this.desc = ''; + else + $this.desc = desc; + if (0 === (seen1 & 8)) + $this.badge = ''; + else + $this.badge = badge; + return $this; + } + } + class Companion_686 { + constructor() { + this.targetPath = '/bilibili.app.card.v1.LargeCoverV2'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_673(); + } + } + class $serializer_673 { + constructor() { + $serializer_instance_673 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.card.v1.KLargeCoverV2', this, 14); + tmp0_serialDesc.addElement_5pzumi_k$('base', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('avatar', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('badge', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('coverRightButton', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('coverLeftText1', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('coverLeftIcon1', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('coverLeftText2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('coverLeftIcon2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('rcmdReason', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('officialIcon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('canPlay', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('rcmdReasonStyle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + tmp0_serialDesc.addElement_5pzumi_k$('showTop', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(13)); + tmp0_serialDesc.addElement_5pzumi_k$('showBottom', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(14)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_646()), get_nullable($serializer_getInstance_654()), StringSerializer_getInstance(), get_nullable($serializer_getInstance_648()), StringSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), get_nullable($serializer_getInstance_662()), IntSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = 0; + var tmp10_local6 = null; + var tmp11_local7 = 0; + var tmp12_local8 = null; + var tmp13_local9 = 0; + var tmp14_local10 = 0; + var tmp15_local11 = null; + var tmp16_local12 = 0; + var tmp17_local13 = 0; + var tmp18_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp18_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_646(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_654(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_648(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp18_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp18_input.decodeIntElement_941u6a_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp18_input.decodeIntElement_941u6a_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp18_input.decodeIntElement_941u6a_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 11, $serializer_getInstance_662(), tmp15_local11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + tmp16_local12 = tmp18_input.decodeIntElement_941u6a_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + tmp17_local13 = tmp18_input.decodeIntElement_941u6a_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + } else + while (tmp1_flag) { + tmp2_index = tmp18_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_646(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_654(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_648(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp18_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp18_input.decodeIntElement_941u6a_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp18_input.decodeIntElement_941u6a_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp18_input.decodeIntElement_941u6a_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 11, $serializer_getInstance_662(), tmp15_local11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + case 12: + tmp16_local12 = tmp18_input.decodeIntElement_941u6a_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + break; + case 13: + tmp17_local13 = tmp18_input.decodeIntElement_941u6a_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp18_input.endStructure_1xqz0n_k$(tmp0_desc); + return KLargeCoverV2.new_com_bapis_bilibili_app_card_v1_KLargeCoverV2_iylav9_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, null); + } + serialize_hpedwa_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.base == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_646(), value.base); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.avatar == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_654(), value.avatar); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.badge === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.badge); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.coverRightButton == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_648(), value.coverRightButton); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.coverLeftText1 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.coverLeftText1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.coverLeftIcon1 === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 5, value.coverLeftIcon1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.coverLeftText2 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.coverLeftText2); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.coverLeftIcon2 === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 7, value.coverLeftIcon2); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.rcmdReason === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 8, value.rcmdReason); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.officialIcon === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 9, value.officialIcon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.canPlay === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 10, value.canPlay); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.rcmdReasonStyle == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 11, $serializer_getInstance_662(), value.rcmdReasonStyle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !(value.showTop === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 12, value.showTop); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 13) ? true : !(value.showBottom === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 13, value.showBottom); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_hpedwa_k$(encoder, value instanceof KLargeCoverV2 ? value : THROW_CCE()); + } + } + class KLargeCoverV2 { + constructor(base, avatar, badge, coverRightButton, coverLeftText1, coverLeftIcon1, coverLeftText2, coverLeftIcon2, rcmdReason, officialIcon, canPlay, rcmdReasonStyle, showTop, showBottom) { + Companion_instance_686; + base = base === VOID ? null : base; + avatar = avatar === VOID ? null : avatar; + badge = badge === VOID ? '' : badge; + coverRightButton = coverRightButton === VOID ? null : coverRightButton; + coverLeftText1 = coverLeftText1 === VOID ? '' : coverLeftText1; + coverLeftIcon1 = coverLeftIcon1 === VOID ? 0 : coverLeftIcon1; + coverLeftText2 = coverLeftText2 === VOID ? '' : coverLeftText2; + coverLeftIcon2 = coverLeftIcon2 === VOID ? 0 : coverLeftIcon2; + rcmdReason = rcmdReason === VOID ? '' : rcmdReason; + officialIcon = officialIcon === VOID ? 0 : officialIcon; + canPlay = canPlay === VOID ? 0 : canPlay; + rcmdReasonStyle = rcmdReasonStyle === VOID ? null : rcmdReasonStyle; + showTop = showTop === VOID ? 0 : showTop; + showBottom = showBottom === VOID ? 0 : showBottom; + this.base = base; + this.avatar = avatar; + this.badge = badge; + this.coverRightButton = coverRightButton; + this.coverLeftText1 = coverLeftText1; + this.coverLeftIcon1 = coverLeftIcon1; + this.coverLeftText2 = coverLeftText2; + this.coverLeftIcon2 = coverLeftIcon2; + this.rcmdReason = rcmdReason; + this.officialIcon = officialIcon; + this.canPlay = canPlay; + this.rcmdReasonStyle = rcmdReasonStyle; + this.showTop = showTop; + this.showBottom = showBottom; + } + get_base_wojaxm_k$() { + return this.base; + } + get_avatar_b5pjz6_k$() { + return this.avatar; + } + get_badge_ip1cai_k$() { + return this.badge; + } + get_coverRightButton_ozf474_k$() { + return this.coverRightButton; + } + get_coverLeftText1_ck8hkf_k$() { + return this.coverLeftText1; + } + get_coverLeftIcon1_ce5a8z_k$() { + return this.coverLeftIcon1; + } + get_coverLeftText2_ck8hkg_k$() { + return this.coverLeftText2; + } + get_coverLeftIcon2_ce5a90_k$() { + return this.coverLeftIcon2; + } + get_rcmdReason_lci9h1_k$() { + return this.rcmdReason; + } + get_officialIcon_t4hw0d_k$() { + return this.officialIcon; + } + get_canPlay_acszln_k$() { + return this.canPlay; + } + get_rcmdReasonStyle_5yq4ak_k$() { + return this.rcmdReasonStyle; + } + get_showTop_zgcxm7_k$() { + return this.showTop; + } + get_showBottom_fchhpr_k$() { + return this.showBottom; + } + component1_7eebsc_k$() { + return this.base; + } + component2_7eebsb_k$() { + return this.avatar; + } + component3_7eebsa_k$() { + return this.badge; + } + component4_7eebs9_k$() { + return this.coverRightButton; + } + component5_7eebs8_k$() { + return this.coverLeftText1; + } + component6_7eebs7_k$() { + return this.coverLeftIcon1; + } + component7_7eebs6_k$() { + return this.coverLeftText2; + } + component8_7eebs5_k$() { + return this.coverLeftIcon2; + } + component9_7eebs4_k$() { + return this.rcmdReason; + } + component10_gazzfo_k$() { + return this.officialIcon; + } + component11_gazzfn_k$() { + return this.canPlay; + } + component12_gazzfm_k$() { + return this.rcmdReasonStyle; + } + component13_gazzfl_k$() { + return this.showTop; + } + component14_gazzfk_k$() { + return this.showBottom; + } + copy_95gywe_k$(base, avatar, badge, coverRightButton, coverLeftText1, coverLeftIcon1, coverLeftText2, coverLeftIcon2, rcmdReason, officialIcon, canPlay, rcmdReasonStyle, showTop, showBottom) { + return new KLargeCoverV2(base, avatar, badge, coverRightButton, coverLeftText1, coverLeftIcon1, coverLeftText2, coverLeftIcon2, rcmdReason, officialIcon, canPlay, rcmdReasonStyle, showTop, showBottom); + } + copy(base, avatar, badge, coverRightButton, coverLeftText1, coverLeftIcon1, coverLeftText2, coverLeftIcon2, rcmdReason, officialIcon, canPlay, rcmdReasonStyle, showTop, showBottom, $super) { + base = base === VOID ? this.base : base; + avatar = avatar === VOID ? this.avatar : avatar; + badge = badge === VOID ? this.badge : badge; + coverRightButton = coverRightButton === VOID ? this.coverRightButton : coverRightButton; + coverLeftText1 = coverLeftText1 === VOID ? this.coverLeftText1 : coverLeftText1; + coverLeftIcon1 = coverLeftIcon1 === VOID ? this.coverLeftIcon1 : coverLeftIcon1; + coverLeftText2 = coverLeftText2 === VOID ? this.coverLeftText2 : coverLeftText2; + coverLeftIcon2 = coverLeftIcon2 === VOID ? this.coverLeftIcon2 : coverLeftIcon2; + rcmdReason = rcmdReason === VOID ? this.rcmdReason : rcmdReason; + officialIcon = officialIcon === VOID ? this.officialIcon : officialIcon; + canPlay = canPlay === VOID ? this.canPlay : canPlay; + rcmdReasonStyle = rcmdReasonStyle === VOID ? this.rcmdReasonStyle : rcmdReasonStyle; + showTop = showTop === VOID ? this.showTop : showTop; + showBottom = showBottom === VOID ? this.showBottom : showBottom; + return this.copy_95gywe_k$(base, avatar, badge, coverRightButton, coverLeftText1, coverLeftIcon1, coverLeftText2, coverLeftIcon2, rcmdReason, officialIcon, canPlay, rcmdReasonStyle, showTop, showBottom); + } + toString() { + return 'KLargeCoverV2(base=' + this.base + ', avatar=' + this.avatar + ', badge=' + this.badge + ', coverRightButton=' + this.coverRightButton + ', coverLeftText1=' + this.coverLeftText1 + ', coverLeftIcon1=' + this.coverLeftIcon1 + ', coverLeftText2=' + this.coverLeftText2 + ', coverLeftIcon2=' + this.coverLeftIcon2 + ', rcmdReason=' + this.rcmdReason + ', officialIcon=' + this.officialIcon + ', canPlay=' + this.canPlay + ', rcmdReasonStyle=' + this.rcmdReasonStyle + ', showTop=' + this.showTop + ', showBottom=' + this.showBottom + ')'; + } + hashCode() { + var result = this.base == null ? 0 : this.base.hashCode(); + result = imul(result, 31) + (this.avatar == null ? 0 : this.avatar.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.badge) | 0; + result = imul(result, 31) + (this.coverRightButton == null ? 0 : this.coverRightButton.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.coverLeftText1) | 0; + result = imul(result, 31) + this.coverLeftIcon1 | 0; + result = imul(result, 31) + getStringHashCode(this.coverLeftText2) | 0; + result = imul(result, 31) + this.coverLeftIcon2 | 0; + result = imul(result, 31) + getStringHashCode(this.rcmdReason) | 0; + result = imul(result, 31) + this.officialIcon | 0; + result = imul(result, 31) + this.canPlay | 0; + result = imul(result, 31) + (this.rcmdReasonStyle == null ? 0 : this.rcmdReasonStyle.hashCode()) | 0; + result = imul(result, 31) + this.showTop | 0; + result = imul(result, 31) + this.showBottom | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KLargeCoverV2)) + return false; + var tmp0_other_with_cast = other instanceof KLargeCoverV2 ? other : THROW_CCE(); + if (!equals(this.base, tmp0_other_with_cast.base)) + return false; + if (!equals(this.avatar, tmp0_other_with_cast.avatar)) + return false; + if (!(this.badge === tmp0_other_with_cast.badge)) + return false; + if (!equals(this.coverRightButton, tmp0_other_with_cast.coverRightButton)) + return false; + if (!(this.coverLeftText1 === tmp0_other_with_cast.coverLeftText1)) + return false; + if (!(this.coverLeftIcon1 === tmp0_other_with_cast.coverLeftIcon1)) + return false; + if (!(this.coverLeftText2 === tmp0_other_with_cast.coverLeftText2)) + return false; + if (!(this.coverLeftIcon2 === tmp0_other_with_cast.coverLeftIcon2)) + return false; + if (!(this.rcmdReason === tmp0_other_with_cast.rcmdReason)) + return false; + if (!(this.officialIcon === tmp0_other_with_cast.officialIcon)) + return false; + if (!(this.canPlay === tmp0_other_with_cast.canPlay)) + return false; + if (!equals(this.rcmdReasonStyle, tmp0_other_with_cast.rcmdReasonStyle)) + return false; + if (!(this.showTop === tmp0_other_with_cast.showTop)) + return false; + if (!(this.showBottom === tmp0_other_with_cast.showBottom)) + return false; + return true; + } + static new_com_bapis_bilibili_app_card_v1_KLargeCoverV2_iylav9_k$(seen1, base, avatar, badge, coverRightButton, coverLeftText1, coverLeftIcon1, coverLeftText2, coverLeftIcon2, rcmdReason, officialIcon, canPlay, rcmdReasonStyle, showTop, showBottom, serializationConstructorMarker) { + Companion_instance_686; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_673().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.base = null; + else + $this.base = base; + if (0 === (seen1 & 2)) + $this.avatar = null; + else + $this.avatar = avatar; + if (0 === (seen1 & 4)) + $this.badge = ''; + else + $this.badge = badge; + if (0 === (seen1 & 8)) + $this.coverRightButton = null; + else + $this.coverRightButton = coverRightButton; + if (0 === (seen1 & 16)) + $this.coverLeftText1 = ''; + else + $this.coverLeftText1 = coverLeftText1; + if (0 === (seen1 & 32)) + $this.coverLeftIcon1 = 0; + else + $this.coverLeftIcon1 = coverLeftIcon1; + if (0 === (seen1 & 64)) + $this.coverLeftText2 = ''; + else + $this.coverLeftText2 = coverLeftText2; + if (0 === (seen1 & 128)) + $this.coverLeftIcon2 = 0; + else + $this.coverLeftIcon2 = coverLeftIcon2; + if (0 === (seen1 & 256)) + $this.rcmdReason = ''; + else + $this.rcmdReason = rcmdReason; + if (0 === (seen1 & 512)) + $this.officialIcon = 0; + else + $this.officialIcon = officialIcon; + if (0 === (seen1 & 1024)) + $this.canPlay = 0; + else + $this.canPlay = canPlay; + if (0 === (seen1 & 2048)) + $this.rcmdReasonStyle = null; + else + $this.rcmdReasonStyle = rcmdReasonStyle; + if (0 === (seen1 & 4096)) + $this.showTop = 0; + else + $this.showTop = showTop; + if (0 === (seen1 & 8192)) + $this.showBottom = 0; + else + $this.showBottom = showBottom; + return $this; + } + } + class Companion_687 { + constructor() { + Companion_instance_687 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, null, new ArrayListSerializer($serializer_getInstance_675())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.card.v1.ThreeItemV2'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_674(); + } + } + class $serializer_674 { + constructor() { + $serializer_instance_674 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.card.v1.KThreeItemV2', this, 5); + tmp0_serialDesc.addElement_5pzumi_k$('base', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('titleIcon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('moreUri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('moreText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('items', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_687().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_646()), IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), tmp0_cached[4]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = 0; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp10_cached = Companion_getInstance_687().$childSerializers_1; + if (tmp9_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_646(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp9_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 4, tmp10_cached[4], tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + } else + while (tmp1_flag) { + tmp2_index = tmp9_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_646(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp9_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 4, tmp10_cached[4], tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp9_input.endStructure_1xqz0n_k$(tmp0_desc); + return KThreeItemV2.new_com_bapis_bilibili_app_card_v1_KThreeItemV2_x2pylq_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); + } + serialize_2ek56t_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_687().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.base == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_646(), value.base); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.titleIcon === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.titleIcon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.moreUri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.moreUri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.moreText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.moreText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !equals(value.items, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 4, tmp2_cached[4], value.items); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_2ek56t_k$(encoder, value instanceof KThreeItemV2 ? value : THROW_CCE()); + } + } + class KThreeItemV2 { + constructor(base, titleIcon, moreUri, moreText, items) { + Companion_getInstance_687(); + base = base === VOID ? null : base; + titleIcon = titleIcon === VOID ? 0 : titleIcon; + moreUri = moreUri === VOID ? '' : moreUri; + moreText = moreText === VOID ? '' : moreText; + items = items === VOID ? emptyList() : items; + this.base = base; + this.titleIcon = titleIcon; + this.moreUri = moreUri; + this.moreText = moreText; + this.items = items; + } + get_base_wojaxm_k$() { + return this.base; + } + get_titleIcon_qt8xx4_k$() { + return this.titleIcon; + } + get_moreUri_lrqju6_k$() { + return this.moreUri; + } + get_moreText_zfacyd_k$() { + return this.moreText; + } + get_items_it823b_k$() { + return this.items; + } + component1_7eebsc_k$() { + return this.base; + } + component2_7eebsb_k$() { + return this.titleIcon; + } + component3_7eebsa_k$() { + return this.moreUri; + } + component4_7eebs9_k$() { + return this.moreText; + } + component5_7eebs8_k$() { + return this.items; + } + copy_kfcd8z_k$(base, titleIcon, moreUri, moreText, items) { + return new KThreeItemV2(base, titleIcon, moreUri, moreText, items); + } + copy(base, titleIcon, moreUri, moreText, items, $super) { + base = base === VOID ? this.base : base; + titleIcon = titleIcon === VOID ? this.titleIcon : titleIcon; + moreUri = moreUri === VOID ? this.moreUri : moreUri; + moreText = moreText === VOID ? this.moreText : moreText; + items = items === VOID ? this.items : items; + return this.copy_kfcd8z_k$(base, titleIcon, moreUri, moreText, items); + } + toString() { + return 'KThreeItemV2(base=' + this.base + ', titleIcon=' + this.titleIcon + ', moreUri=' + this.moreUri + ', moreText=' + this.moreText + ', items=' + this.items + ')'; + } + hashCode() { + var result = this.base == null ? 0 : this.base.hashCode(); + result = imul(result, 31) + this.titleIcon | 0; + result = imul(result, 31) + getStringHashCode(this.moreUri) | 0; + result = imul(result, 31) + getStringHashCode(this.moreText) | 0; + result = imul(result, 31) + hashCode(this.items) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KThreeItemV2)) + return false; + var tmp0_other_with_cast = other instanceof KThreeItemV2 ? other : THROW_CCE(); + if (!equals(this.base, tmp0_other_with_cast.base)) + return false; + if (!(this.titleIcon === tmp0_other_with_cast.titleIcon)) + return false; + if (!(this.moreUri === tmp0_other_with_cast.moreUri)) + return false; + if (!(this.moreText === tmp0_other_with_cast.moreText)) + return false; + if (!equals(this.items, tmp0_other_with_cast.items)) + return false; + return true; + } + static new_com_bapis_bilibili_app_card_v1_KThreeItemV2_x2pylq_k$(seen1, base, titleIcon, moreUri, moreText, items, serializationConstructorMarker) { + Companion_getInstance_687(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_674().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.base = null; + else + $this.base = base; + if (0 === (seen1 & 2)) + $this.titleIcon = 0; + else + $this.titleIcon = titleIcon; + if (0 === (seen1 & 4)) + $this.moreUri = ''; + else + $this.moreUri = moreUri; + if (0 === (seen1 & 8)) + $this.moreText = ''; + else + $this.moreText = moreText; + if (0 === (seen1 & 16)) + $this.items = emptyList(); + else + $this.items = items; + return $this; + } + } + class Companion_688 { + constructor() { + this.targetPath = '/bilibili.app.card.v1.ThreeItemV2Item'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_675(); + } + } + class $serializer_675 { + constructor() { + $serializer_instance_675 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.card.v1.KThreeItemV2Item', this, 7); + tmp0_serialDesc.addElement_5pzumi_k$('base', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('coverLeftIcon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('descText1', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('descIcon1', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('descText2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('descIcon2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('badge', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_646()), IntSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = 0; + var tmp6_local2 = null; + var tmp7_local3 = 0; + var tmp8_local4 = null; + var tmp9_local5 = 0; + var tmp10_local6 = null; + var tmp11_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp11_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_646(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + } else + while (tmp1_flag) { + tmp2_index = tmp11_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_646(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp11_input.endStructure_1xqz0n_k$(tmp0_desc); + return KThreeItemV2Item.new_com_bapis_bilibili_app_card_v1_KThreeItemV2Item_1hk0nc_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, null); + } + serialize_vnbfs8_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.base == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_646(), value.base); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.coverLeftIcon === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.coverLeftIcon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.descText1 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.descText1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.descIcon1 === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 3, value.descIcon1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.descText2 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.descText2); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.descIcon2 === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 5, value.descIcon2); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.badge === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.badge); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_vnbfs8_k$(encoder, value instanceof KThreeItemV2Item ? value : THROW_CCE()); + } + } + class KThreeItemV2Item { + constructor(base, coverLeftIcon, descText1, descIcon1, descText2, descIcon2, badge) { + Companion_instance_688; + base = base === VOID ? null : base; + coverLeftIcon = coverLeftIcon === VOID ? 0 : coverLeftIcon; + descText1 = descText1 === VOID ? '' : descText1; + descIcon1 = descIcon1 === VOID ? 0 : descIcon1; + descText2 = descText2 === VOID ? '' : descText2; + descIcon2 = descIcon2 === VOID ? 0 : descIcon2; + badge = badge === VOID ? '' : badge; + this.base = base; + this.coverLeftIcon = coverLeftIcon; + this.descText1 = descText1; + this.descIcon1 = descIcon1; + this.descText2 = descText2; + this.descIcon2 = descIcon2; + this.badge = badge; + } + get_base_wojaxm_k$() { + return this.base; + } + get_coverLeftIcon_ee3ta_k$() { + return this.coverLeftIcon; + } + get_descText1_wuy7ze_k$() { + return this.descText1; + } + get_descIcon1_wov0ny_k$() { + return this.descIcon1; + } + get_descText2_wuy7zf_k$() { + return this.descText2; + } + get_descIcon2_wov0nz_k$() { + return this.descIcon2; + } + get_badge_ip1cai_k$() { + return this.badge; + } + component1_7eebsc_k$() { + return this.base; + } + component2_7eebsb_k$() { + return this.coverLeftIcon; + } + component3_7eebsa_k$() { + return this.descText1; + } + component4_7eebs9_k$() { + return this.descIcon1; + } + component5_7eebs8_k$() { + return this.descText2; + } + component6_7eebs7_k$() { + return this.descIcon2; + } + component7_7eebs6_k$() { + return this.badge; + } + copy_tt51ko_k$(base, coverLeftIcon, descText1, descIcon1, descText2, descIcon2, badge) { + return new KThreeItemV2Item(base, coverLeftIcon, descText1, descIcon1, descText2, descIcon2, badge); + } + copy(base, coverLeftIcon, descText1, descIcon1, descText2, descIcon2, badge, $super) { + base = base === VOID ? this.base : base; + coverLeftIcon = coverLeftIcon === VOID ? this.coverLeftIcon : coverLeftIcon; + descText1 = descText1 === VOID ? this.descText1 : descText1; + descIcon1 = descIcon1 === VOID ? this.descIcon1 : descIcon1; + descText2 = descText2 === VOID ? this.descText2 : descText2; + descIcon2 = descIcon2 === VOID ? this.descIcon2 : descIcon2; + badge = badge === VOID ? this.badge : badge; + return this.copy_tt51ko_k$(base, coverLeftIcon, descText1, descIcon1, descText2, descIcon2, badge); + } + toString() { + return 'KThreeItemV2Item(base=' + this.base + ', coverLeftIcon=' + this.coverLeftIcon + ', descText1=' + this.descText1 + ', descIcon1=' + this.descIcon1 + ', descText2=' + this.descText2 + ', descIcon2=' + this.descIcon2 + ', badge=' + this.badge + ')'; + } + hashCode() { + var result = this.base == null ? 0 : this.base.hashCode(); + result = imul(result, 31) + this.coverLeftIcon | 0; + result = imul(result, 31) + getStringHashCode(this.descText1) | 0; + result = imul(result, 31) + this.descIcon1 | 0; + result = imul(result, 31) + getStringHashCode(this.descText2) | 0; + result = imul(result, 31) + this.descIcon2 | 0; + result = imul(result, 31) + getStringHashCode(this.badge) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KThreeItemV2Item)) + return false; + var tmp0_other_with_cast = other instanceof KThreeItemV2Item ? other : THROW_CCE(); + if (!equals(this.base, tmp0_other_with_cast.base)) + return false; + if (!(this.coverLeftIcon === tmp0_other_with_cast.coverLeftIcon)) + return false; + if (!(this.descText1 === tmp0_other_with_cast.descText1)) + return false; + if (!(this.descIcon1 === tmp0_other_with_cast.descIcon1)) + return false; + if (!(this.descText2 === tmp0_other_with_cast.descText2)) + return false; + if (!(this.descIcon2 === tmp0_other_with_cast.descIcon2)) + return false; + if (!(this.badge === tmp0_other_with_cast.badge)) + return false; + return true; + } + static new_com_bapis_bilibili_app_card_v1_KThreeItemV2Item_1hk0nc_k$(seen1, base, coverLeftIcon, descText1, descIcon1, descText2, descIcon2, badge, serializationConstructorMarker) { + Companion_instance_688; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_675().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.base = null; + else + $this.base = base; + if (0 === (seen1 & 2)) + $this.coverLeftIcon = 0; + else + $this.coverLeftIcon = coverLeftIcon; + if (0 === (seen1 & 4)) + $this.descText1 = ''; + else + $this.descText1 = descText1; + if (0 === (seen1 & 8)) + $this.descIcon1 = 0; + else + $this.descIcon1 = descIcon1; + if (0 === (seen1 & 16)) + $this.descText2 = ''; + else + $this.descText2 = descText2; + if (0 === (seen1 & 32)) + $this.descIcon2 = 0; + else + $this.descIcon2 = descIcon2; + if (0 === (seen1 & 64)) + $this.badge = ''; + else + $this.badge = badge; + return $this; + } + } + class Companion_689 { + constructor() { + this.targetPath = '/bilibili.app.card.v1.SmallCoverV4'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_676(); + } + } + class $serializer_676 { + constructor() { + $serializer_instance_676 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.card.v1.KSmallCoverV4', this, 5); + tmp0_serialDesc.addElement_5pzumi_k$('base', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('coverBadge', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('desc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('titleRightText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('titleRightPic', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_646()), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = 0; + var tmp9_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp9_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_646(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + } else + while (tmp1_flag) { + tmp2_index = tmp9_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_646(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp9_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSmallCoverV4.new_com_bapis_bilibili_app_card_v1_KSmallCoverV4_7wq0bm_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); + } + serialize_x80lv4_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.base == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_646(), value.base); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.coverBadge === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.coverBadge); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.desc === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.desc); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.titleRightText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.titleRightText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.titleRightPic === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 4, value.titleRightPic); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_x80lv4_k$(encoder, value instanceof KSmallCoverV4 ? value : THROW_CCE()); + } + } + class KSmallCoverV4 { + constructor(base, coverBadge, desc, titleRightText, titleRightPic) { + Companion_instance_689; + base = base === VOID ? null : base; + coverBadge = coverBadge === VOID ? '' : coverBadge; + desc = desc === VOID ? '' : desc; + titleRightText = titleRightText === VOID ? '' : titleRightText; + titleRightPic = titleRightPic === VOID ? 0 : titleRightPic; + this.base = base; + this.coverBadge = coverBadge; + this.desc = desc; + this.titleRightText = titleRightText; + this.titleRightPic = titleRightPic; + } + get_base_wojaxm_k$() { + return this.base; + } + get_coverBadge_3cu5x_k$() { + return this.coverBadge; + } + get_desc_woknve_k$() { + return this.desc; + } + get_titleRightText_u27coq_k$() { + return this.titleRightText; + } + get_titleRightPic_5wjz6r_k$() { + return this.titleRightPic; + } + component1_7eebsc_k$() { + return this.base; + } + component2_7eebsb_k$() { + return this.coverBadge; + } + component3_7eebsa_k$() { + return this.desc; + } + component4_7eebs9_k$() { + return this.titleRightText; + } + component5_7eebs8_k$() { + return this.titleRightPic; + } + copy_pl1lfk_k$(base, coverBadge, desc, titleRightText, titleRightPic) { + return new KSmallCoverV4(base, coverBadge, desc, titleRightText, titleRightPic); + } + copy(base, coverBadge, desc, titleRightText, titleRightPic, $super) { + base = base === VOID ? this.base : base; + coverBadge = coverBadge === VOID ? this.coverBadge : coverBadge; + desc = desc === VOID ? this.desc : desc; + titleRightText = titleRightText === VOID ? this.titleRightText : titleRightText; + titleRightPic = titleRightPic === VOID ? this.titleRightPic : titleRightPic; + return this.copy_pl1lfk_k$(base, coverBadge, desc, titleRightText, titleRightPic); + } + toString() { + return 'KSmallCoverV4(base=' + this.base + ', coverBadge=' + this.coverBadge + ', desc=' + this.desc + ', titleRightText=' + this.titleRightText + ', titleRightPic=' + this.titleRightPic + ')'; + } + hashCode() { + var result = this.base == null ? 0 : this.base.hashCode(); + result = imul(result, 31) + getStringHashCode(this.coverBadge) | 0; + result = imul(result, 31) + getStringHashCode(this.desc) | 0; + result = imul(result, 31) + getStringHashCode(this.titleRightText) | 0; + result = imul(result, 31) + this.titleRightPic | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSmallCoverV4)) + return false; + var tmp0_other_with_cast = other instanceof KSmallCoverV4 ? other : THROW_CCE(); + if (!equals(this.base, tmp0_other_with_cast.base)) + return false; + if (!(this.coverBadge === tmp0_other_with_cast.coverBadge)) + return false; + if (!(this.desc === tmp0_other_with_cast.desc)) + return false; + if (!(this.titleRightText === tmp0_other_with_cast.titleRightText)) + return false; + if (!(this.titleRightPic === tmp0_other_with_cast.titleRightPic)) + return false; + return true; + } + static new_com_bapis_bilibili_app_card_v1_KSmallCoverV4_7wq0bm_k$(seen1, base, coverBadge, desc, titleRightText, titleRightPic, serializationConstructorMarker) { + Companion_instance_689; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_676().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.base = null; + else + $this.base = base; + if (0 === (seen1 & 2)) + $this.coverBadge = ''; + else + $this.coverBadge = coverBadge; + if (0 === (seen1 & 4)) + $this.desc = ''; + else + $this.desc = desc; + if (0 === (seen1 & 8)) + $this.titleRightText = ''; + else + $this.titleRightText = titleRightText; + if (0 === (seen1 & 16)) + $this.titleRightPic = 0; + else + $this.titleRightPic = titleRightPic; + return $this; + } + } + class Companion_690 { + constructor() { + Companion_instance_690 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, new ArrayListSerializer($serializer_getInstance_678())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.card.v1.TwoItemV2'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_677(); + } + } + class $serializer_677 { + constructor() { + $serializer_instance_677 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.card.v1.KTwoItemV2', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('base', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('items', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_690().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_646()), tmp0_cached[1]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp7_cached = Companion_getInstance_690().$childSerializers_1; + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_646(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_646(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KTwoItemV2.new_com_bapis_bilibili_app_card_v1_KTwoItemV2_xt7lyw_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_ljn2tp_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_690().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.base == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_646(), value.base); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !equals(value.items, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 1, tmp2_cached[1], value.items); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_ljn2tp_k$(encoder, value instanceof KTwoItemV2 ? value : THROW_CCE()); + } + } + class KTwoItemV2 { + constructor(base, items) { + Companion_getInstance_690(); + base = base === VOID ? null : base; + items = items === VOID ? emptyList() : items; + this.base = base; + this.items = items; + } + get_base_wojaxm_k$() { + return this.base; + } + get_items_it823b_k$() { + return this.items; + } + component1_7eebsc_k$() { + return this.base; + } + component2_7eebsb_k$() { + return this.items; + } + copy_wwc4er_k$(base, items) { + return new KTwoItemV2(base, items); + } + copy(base, items, $super) { + base = base === VOID ? this.base : base; + items = items === VOID ? this.items : items; + return this.copy_wwc4er_k$(base, items); + } + toString() { + return 'KTwoItemV2(base=' + this.base + ', items=' + this.items + ')'; + } + hashCode() { + var result = this.base == null ? 0 : this.base.hashCode(); + result = imul(result, 31) + hashCode(this.items) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KTwoItemV2)) + return false; + var tmp0_other_with_cast = other instanceof KTwoItemV2 ? other : THROW_CCE(); + if (!equals(this.base, tmp0_other_with_cast.base)) + return false; + if (!equals(this.items, tmp0_other_with_cast.items)) + return false; + return true; + } + static new_com_bapis_bilibili_app_card_v1_KTwoItemV2_xt7lyw_k$(seen1, base, items, serializationConstructorMarker) { + Companion_getInstance_690(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_677().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.base = null; + else + $this.base = base; + if (0 === (seen1 & 2)) + $this.items = emptyList(); + else + $this.items = items; + return $this; + } + } + class Companion_691 { + constructor() { + this.targetPath = '/bilibili.app.card.v1.TwoItemV2Item'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_678(); + } + } + class $serializer_678 { + constructor() { + $serializer_instance_678 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.card.v1.KTwoItemV2Item', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('base', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('badge', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('coverLeftText1', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('coverLeftIcon1', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_646()), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = 0; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_646(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_646(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KTwoItemV2Item.new_com_bapis_bilibili_app_card_v1_KTwoItemV2Item_5d5669_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_9b4ava_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.base == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_646(), value.base); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.badge === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.badge); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.coverLeftText1 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.coverLeftText1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.coverLeftIcon1 === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 3, value.coverLeftIcon1); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_9b4ava_k$(encoder, value instanceof KTwoItemV2Item ? value : THROW_CCE()); + } + } + class KTwoItemV2Item { + constructor(base, badge, coverLeftText1, coverLeftIcon1) { + Companion_instance_691; + base = base === VOID ? null : base; + badge = badge === VOID ? '' : badge; + coverLeftText1 = coverLeftText1 === VOID ? '' : coverLeftText1; + coverLeftIcon1 = coverLeftIcon1 === VOID ? 0 : coverLeftIcon1; + this.base = base; + this.badge = badge; + this.coverLeftText1 = coverLeftText1; + this.coverLeftIcon1 = coverLeftIcon1; + } + get_base_wojaxm_k$() { + return this.base; + } + get_badge_ip1cai_k$() { + return this.badge; + } + get_coverLeftText1_ck8hkf_k$() { + return this.coverLeftText1; + } + get_coverLeftIcon1_ce5a8z_k$() { + return this.coverLeftIcon1; + } + component1_7eebsc_k$() { + return this.base; + } + component2_7eebsb_k$() { + return this.badge; + } + component3_7eebsa_k$() { + return this.coverLeftText1; + } + component4_7eebs9_k$() { + return this.coverLeftIcon1; + } + copy_obmkcq_k$(base, badge, coverLeftText1, coverLeftIcon1) { + return new KTwoItemV2Item(base, badge, coverLeftText1, coverLeftIcon1); + } + copy(base, badge, coverLeftText1, coverLeftIcon1, $super) { + base = base === VOID ? this.base : base; + badge = badge === VOID ? this.badge : badge; + coverLeftText1 = coverLeftText1 === VOID ? this.coverLeftText1 : coverLeftText1; + coverLeftIcon1 = coverLeftIcon1 === VOID ? this.coverLeftIcon1 : coverLeftIcon1; + return this.copy_obmkcq_k$(base, badge, coverLeftText1, coverLeftIcon1); + } + toString() { + return 'KTwoItemV2Item(base=' + this.base + ', badge=' + this.badge + ', coverLeftText1=' + this.coverLeftText1 + ', coverLeftIcon1=' + this.coverLeftIcon1 + ')'; + } + hashCode() { + var result = this.base == null ? 0 : this.base.hashCode(); + result = imul(result, 31) + getStringHashCode(this.badge) | 0; + result = imul(result, 31) + getStringHashCode(this.coverLeftText1) | 0; + result = imul(result, 31) + this.coverLeftIcon1 | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KTwoItemV2Item)) + return false; + var tmp0_other_with_cast = other instanceof KTwoItemV2Item ? other : THROW_CCE(); + if (!equals(this.base, tmp0_other_with_cast.base)) + return false; + if (!(this.badge === tmp0_other_with_cast.badge)) + return false; + if (!(this.coverLeftText1 === tmp0_other_with_cast.coverLeftText1)) + return false; + if (!(this.coverLeftIcon1 === tmp0_other_with_cast.coverLeftIcon1)) + return false; + return true; + } + static new_com_bapis_bilibili_app_card_v1_KTwoItemV2Item_5d5669_k$(seen1, base, badge, coverLeftText1, coverLeftIcon1, serializationConstructorMarker) { + Companion_instance_691; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_678().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.base = null; + else + $this.base = base; + if (0 === (seen1 & 2)) + $this.badge = ''; + else + $this.badge = badge; + if (0 === (seen1 & 4)) + $this.coverLeftText1 = ''; + else + $this.coverLeftText1 = coverLeftText1; + if (0 === (seen1 & 8)) + $this.coverLeftIcon1 = 0; + else + $this.coverLeftIcon1 = coverLeftIcon1; + return $this; + } + } + class Companion_692 { + constructor() { + Companion_instance_692 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, new ArrayListSerializer($serializer_getInstance_669())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.card.v1.MultiItem'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_679(); + } + } + class $serializer_679 { + constructor() { + $serializer_instance_679 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.card.v1.KMultiItem', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('base', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('moreUri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('moreText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('items', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_692().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_646()), StringSerializer_getInstance(), StringSerializer_getInstance(), tmp0_cached[3]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp9_cached = Companion_getInstance_692().$childSerializers_1; + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_646(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 3, tmp9_cached[3], tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_646(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 3, tmp9_cached[3], tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KMultiItem.new_com_bapis_bilibili_app_card_v1_KMultiItem_qxj1d5_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_wfb1gk_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_692().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.base == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_646(), value.base); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.moreUri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.moreUri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.moreText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.moreText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !equals(value.items, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 3, tmp2_cached[3], value.items); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_wfb1gk_k$(encoder, value instanceof KMultiItem ? value : THROW_CCE()); + } + } + class KMultiItem { + constructor(base, moreUri, moreText, items) { + Companion_getInstance_692(); + base = base === VOID ? null : base; + moreUri = moreUri === VOID ? '' : moreUri; + moreText = moreText === VOID ? '' : moreText; + items = items === VOID ? emptyList() : items; + this.base = base; + this.moreUri = moreUri; + this.moreText = moreText; + this.items = items; + } + get_base_wojaxm_k$() { + return this.base; + } + get_moreUri_lrqju6_k$() { + return this.moreUri; + } + get_moreText_zfacyd_k$() { + return this.moreText; + } + get_items_it823b_k$() { + return this.items; + } + component1_7eebsc_k$() { + return this.base; + } + component2_7eebsb_k$() { + return this.moreUri; + } + component3_7eebsa_k$() { + return this.moreText; + } + component4_7eebs9_k$() { + return this.items; + } + copy_t0tjzl_k$(base, moreUri, moreText, items) { + return new KMultiItem(base, moreUri, moreText, items); + } + copy(base, moreUri, moreText, items, $super) { + base = base === VOID ? this.base : base; + moreUri = moreUri === VOID ? this.moreUri : moreUri; + moreText = moreText === VOID ? this.moreText : moreText; + items = items === VOID ? this.items : items; + return this.copy_t0tjzl_k$(base, moreUri, moreText, items); + } + toString() { + return 'KMultiItem(base=' + this.base + ', moreUri=' + this.moreUri + ', moreText=' + this.moreText + ', items=' + this.items + ')'; + } + hashCode() { + var result = this.base == null ? 0 : this.base.hashCode(); + result = imul(result, 31) + getStringHashCode(this.moreUri) | 0; + result = imul(result, 31) + getStringHashCode(this.moreText) | 0; + result = imul(result, 31) + hashCode(this.items) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KMultiItem)) + return false; + var tmp0_other_with_cast = other instanceof KMultiItem ? other : THROW_CCE(); + if (!equals(this.base, tmp0_other_with_cast.base)) + return false; + if (!(this.moreUri === tmp0_other_with_cast.moreUri)) + return false; + if (!(this.moreText === tmp0_other_with_cast.moreText)) + return false; + if (!equals(this.items, tmp0_other_with_cast.items)) + return false; + return true; + } + static new_com_bapis_bilibili_app_card_v1_KMultiItem_qxj1d5_k$(seen1, base, moreUri, moreText, items, serializationConstructorMarker) { + Companion_getInstance_692(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_679().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.base = null; + else + $this.base = base; + if (0 === (seen1 & 2)) + $this.moreUri = ''; + else + $this.moreUri = moreUri; + if (0 === (seen1 & 4)) + $this.moreText = ''; + else + $this.moreText = moreText; + if (0 === (seen1 & 8)) + $this.items = emptyList(); + else + $this.items = items; + return $this; + } + } + class Companion_693 { + constructor() { + this.targetPath = '/bilibili.app.card.v1.ThreePicV2'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_680(); + } + } + class $serializer_680 { + constructor() { + $serializer_instance_680 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.card.v1.KThreePicV2', this, 16); + tmp0_serialDesc.addElement_5pzumi_k$('base', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('leftCover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('rightCover1', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('rightCover2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('coverLeftText1', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('coverLeftIcon1', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('coverLeftText2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('coverLeftIcon2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('coverRightText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('coverRightIcon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('coverRightBackgroundColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('badge', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + tmp0_serialDesc.addElement_5pzumi_k$('rcmdReason', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(13)); + tmp0_serialDesc.addElement_5pzumi_k$('desc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(14)); + tmp0_serialDesc.addElement_5pzumi_k$('avatar', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(15)); + tmp0_serialDesc.addElement_5pzumi_k$('rcmdReasonStyle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(16)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_646()), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_654()), get_nullable($serializer_getInstance_662())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = 0; + var tmp10_local6 = null; + var tmp11_local7 = 0; + var tmp12_local8 = null; + var tmp13_local9 = 0; + var tmp14_local10 = null; + var tmp15_local11 = null; + var tmp16_local12 = null; + var tmp17_local13 = null; + var tmp18_local14 = null; + var tmp19_local15 = null; + var tmp20_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp20_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_646(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + tmp16_local12 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + tmp17_local13 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + tmp18_local14 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 14, $serializer_getInstance_654(), tmp18_local14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + tmp19_local15 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 15, $serializer_getInstance_662(), tmp19_local15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + } else + while (tmp1_flag) { + tmp2_index = tmp20_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_646(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + case 12: + tmp16_local12 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + break; + case 13: + tmp17_local13 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + break; + case 14: + tmp18_local14 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 14, $serializer_getInstance_654(), tmp18_local14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + break; + case 15: + tmp19_local15 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 15, $serializer_getInstance_662(), tmp19_local15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp20_input.endStructure_1xqz0n_k$(tmp0_desc); + return KThreePicV2_0.new_com_bapis_bilibili_app_card_v1_KThreePicV2_r4q9lv_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, tmp18_local14, tmp19_local15, null); + } + serialize_6pn3sa_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.base == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_646(), value.base); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.leftCover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.leftCover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.rightCover1 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.rightCover1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.rightCover2 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.rightCover2); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.coverLeftText1 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.coverLeftText1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.coverLeftIcon1 === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 5, value.coverLeftIcon1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.coverLeftText2 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.coverLeftText2); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.coverLeftIcon2 === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 7, value.coverLeftIcon2); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.coverRightText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 8, value.coverRightText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.coverRightIcon === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 9, value.coverRightIcon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.coverRightBackgroundColor === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 10, value.coverRightBackgroundColor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.badge === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 11, value.badge); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !(value.rcmdReason === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 12, value.rcmdReason); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 13) ? true : !(value.desc === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 13, value.desc); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 14) ? true : !(value.avatar == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 14, $serializer_getInstance_654(), value.avatar); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 15) ? true : !(value.rcmdReasonStyle == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 15, $serializer_getInstance_662(), value.rcmdReasonStyle); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_6pn3sa_k$(encoder, value instanceof KThreePicV2_0 ? value : THROW_CCE()); + } + } + class KThreePicV2_0 { + constructor(base, leftCover, rightCover1, rightCover2, coverLeftText1, coverLeftIcon1, coverLeftText2, coverLeftIcon2, coverRightText, coverRightIcon, coverRightBackgroundColor, badge, rcmdReason, desc, avatar, rcmdReasonStyle) { + Companion_instance_693; + base = base === VOID ? null : base; + leftCover = leftCover === VOID ? '' : leftCover; + rightCover1 = rightCover1 === VOID ? '' : rightCover1; + rightCover2 = rightCover2 === VOID ? '' : rightCover2; + coverLeftText1 = coverLeftText1 === VOID ? '' : coverLeftText1; + coverLeftIcon1 = coverLeftIcon1 === VOID ? 0 : coverLeftIcon1; + coverLeftText2 = coverLeftText2 === VOID ? '' : coverLeftText2; + coverLeftIcon2 = coverLeftIcon2 === VOID ? 0 : coverLeftIcon2; + coverRightText = coverRightText === VOID ? '' : coverRightText; + coverRightIcon = coverRightIcon === VOID ? 0 : coverRightIcon; + coverRightBackgroundColor = coverRightBackgroundColor === VOID ? '' : coverRightBackgroundColor; + badge = badge === VOID ? '' : badge; + rcmdReason = rcmdReason === VOID ? '' : rcmdReason; + desc = desc === VOID ? '' : desc; + avatar = avatar === VOID ? null : avatar; + rcmdReasonStyle = rcmdReasonStyle === VOID ? null : rcmdReasonStyle; + this.base = base; + this.leftCover = leftCover; + this.rightCover1 = rightCover1; + this.rightCover2 = rightCover2; + this.coverLeftText1 = coverLeftText1; + this.coverLeftIcon1 = coverLeftIcon1; + this.coverLeftText2 = coverLeftText2; + this.coverLeftIcon2 = coverLeftIcon2; + this.coverRightText = coverRightText; + this.coverRightIcon = coverRightIcon; + this.coverRightBackgroundColor = coverRightBackgroundColor; + this.badge = badge; + this.rcmdReason = rcmdReason; + this.desc = desc; + this.avatar = avatar; + this.rcmdReasonStyle = rcmdReasonStyle; + } + get_base_wojaxm_k$() { + return this.base; + } + get_leftCover_y4xynt_k$() { + return this.leftCover; + } + get_rightCover1_jndg3_k$() { + return this.rightCover1; + } + get_rightCover2_jndg2_k$() { + return this.rightCover2; + } + get_coverLeftText1_ck8hkf_k$() { + return this.coverLeftText1; + } + get_coverLeftIcon1_ce5a8z_k$() { + return this.coverLeftIcon1; + } + get_coverLeftText2_ck8hkg_k$() { + return this.coverLeftText2; + } + get_coverLeftIcon2_ce5a90_k$() { + return this.coverLeftIcon2; + } + get_coverRightText_t0bat7_k$() { + return this.coverRightText; + } + get_coverRightIcon_t04893_k$() { + return this.coverRightIcon; + } + get_coverRightBackgroundColor_hg9jnr_k$() { + return this.coverRightBackgroundColor; + } + get_badge_ip1cai_k$() { + return this.badge; + } + get_rcmdReason_lci9h1_k$() { + return this.rcmdReason; + } + get_desc_woknve_k$() { + return this.desc; + } + get_avatar_b5pjz6_k$() { + return this.avatar; + } + get_rcmdReasonStyle_5yq4ak_k$() { + return this.rcmdReasonStyle; + } + component1_7eebsc_k$() { + return this.base; + } + component2_7eebsb_k$() { + return this.leftCover; + } + component3_7eebsa_k$() { + return this.rightCover1; + } + component4_7eebs9_k$() { + return this.rightCover2; + } + component5_7eebs8_k$() { + return this.coverLeftText1; + } + component6_7eebs7_k$() { + return this.coverLeftIcon1; + } + component7_7eebs6_k$() { + return this.coverLeftText2; + } + component8_7eebs5_k$() { + return this.coverLeftIcon2; + } + component9_7eebs4_k$() { + return this.coverRightText; + } + component10_gazzfo_k$() { + return this.coverRightIcon; + } + component11_gazzfn_k$() { + return this.coverRightBackgroundColor; + } + component12_gazzfm_k$() { + return this.badge; + } + component13_gazzfl_k$() { + return this.rcmdReason; + } + component14_gazzfk_k$() { + return this.desc; + } + component15_gazzfj_k$() { + return this.avatar; + } + component16_gazzfi_k$() { + return this.rcmdReasonStyle; + } + copy_f5pldo_k$(base, leftCover, rightCover1, rightCover2, coverLeftText1, coverLeftIcon1, coverLeftText2, coverLeftIcon2, coverRightText, coverRightIcon, coverRightBackgroundColor, badge, rcmdReason, desc, avatar, rcmdReasonStyle) { + return new KThreePicV2_0(base, leftCover, rightCover1, rightCover2, coverLeftText1, coverLeftIcon1, coverLeftText2, coverLeftIcon2, coverRightText, coverRightIcon, coverRightBackgroundColor, badge, rcmdReason, desc, avatar, rcmdReasonStyle); + } + copy(base, leftCover, rightCover1, rightCover2, coverLeftText1, coverLeftIcon1, coverLeftText2, coverLeftIcon2, coverRightText, coverRightIcon, coverRightBackgroundColor, badge, rcmdReason, desc, avatar, rcmdReasonStyle, $super) { + base = base === VOID ? this.base : base; + leftCover = leftCover === VOID ? this.leftCover : leftCover; + rightCover1 = rightCover1 === VOID ? this.rightCover1 : rightCover1; + rightCover2 = rightCover2 === VOID ? this.rightCover2 : rightCover2; + coverLeftText1 = coverLeftText1 === VOID ? this.coverLeftText1 : coverLeftText1; + coverLeftIcon1 = coverLeftIcon1 === VOID ? this.coverLeftIcon1 : coverLeftIcon1; + coverLeftText2 = coverLeftText2 === VOID ? this.coverLeftText2 : coverLeftText2; + coverLeftIcon2 = coverLeftIcon2 === VOID ? this.coverLeftIcon2 : coverLeftIcon2; + coverRightText = coverRightText === VOID ? this.coverRightText : coverRightText; + coverRightIcon = coverRightIcon === VOID ? this.coverRightIcon : coverRightIcon; + coverRightBackgroundColor = coverRightBackgroundColor === VOID ? this.coverRightBackgroundColor : coverRightBackgroundColor; + badge = badge === VOID ? this.badge : badge; + rcmdReason = rcmdReason === VOID ? this.rcmdReason : rcmdReason; + desc = desc === VOID ? this.desc : desc; + avatar = avatar === VOID ? this.avatar : avatar; + rcmdReasonStyle = rcmdReasonStyle === VOID ? this.rcmdReasonStyle : rcmdReasonStyle; + return this.copy_f5pldo_k$(base, leftCover, rightCover1, rightCover2, coverLeftText1, coverLeftIcon1, coverLeftText2, coverLeftIcon2, coverRightText, coverRightIcon, coverRightBackgroundColor, badge, rcmdReason, desc, avatar, rcmdReasonStyle); + } + toString() { + return 'KThreePicV2(base=' + this.base + ', leftCover=' + this.leftCover + ', rightCover1=' + this.rightCover1 + ', rightCover2=' + this.rightCover2 + ', coverLeftText1=' + this.coverLeftText1 + ', coverLeftIcon1=' + this.coverLeftIcon1 + ', coverLeftText2=' + this.coverLeftText2 + ', coverLeftIcon2=' + this.coverLeftIcon2 + ', coverRightText=' + this.coverRightText + ', coverRightIcon=' + this.coverRightIcon + ', coverRightBackgroundColor=' + this.coverRightBackgroundColor + ', badge=' + this.badge + ', rcmdReason=' + this.rcmdReason + ', desc=' + this.desc + ', avatar=' + this.avatar + ', rcmdReasonStyle=' + this.rcmdReasonStyle + ')'; + } + hashCode() { + var result = this.base == null ? 0 : this.base.hashCode(); + result = imul(result, 31) + getStringHashCode(this.leftCover) | 0; + result = imul(result, 31) + getStringHashCode(this.rightCover1) | 0; + result = imul(result, 31) + getStringHashCode(this.rightCover2) | 0; + result = imul(result, 31) + getStringHashCode(this.coverLeftText1) | 0; + result = imul(result, 31) + this.coverLeftIcon1 | 0; + result = imul(result, 31) + getStringHashCode(this.coverLeftText2) | 0; + result = imul(result, 31) + this.coverLeftIcon2 | 0; + result = imul(result, 31) + getStringHashCode(this.coverRightText) | 0; + result = imul(result, 31) + this.coverRightIcon | 0; + result = imul(result, 31) + getStringHashCode(this.coverRightBackgroundColor) | 0; + result = imul(result, 31) + getStringHashCode(this.badge) | 0; + result = imul(result, 31) + getStringHashCode(this.rcmdReason) | 0; + result = imul(result, 31) + getStringHashCode(this.desc) | 0; + result = imul(result, 31) + (this.avatar == null ? 0 : this.avatar.hashCode()) | 0; + result = imul(result, 31) + (this.rcmdReasonStyle == null ? 0 : this.rcmdReasonStyle.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KThreePicV2_0)) + return false; + var tmp0_other_with_cast = other instanceof KThreePicV2_0 ? other : THROW_CCE(); + if (!equals(this.base, tmp0_other_with_cast.base)) + return false; + if (!(this.leftCover === tmp0_other_with_cast.leftCover)) + return false; + if (!(this.rightCover1 === tmp0_other_with_cast.rightCover1)) + return false; + if (!(this.rightCover2 === tmp0_other_with_cast.rightCover2)) + return false; + if (!(this.coverLeftText1 === tmp0_other_with_cast.coverLeftText1)) + return false; + if (!(this.coverLeftIcon1 === tmp0_other_with_cast.coverLeftIcon1)) + return false; + if (!(this.coverLeftText2 === tmp0_other_with_cast.coverLeftText2)) + return false; + if (!(this.coverLeftIcon2 === tmp0_other_with_cast.coverLeftIcon2)) + return false; + if (!(this.coverRightText === tmp0_other_with_cast.coverRightText)) + return false; + if (!(this.coverRightIcon === tmp0_other_with_cast.coverRightIcon)) + return false; + if (!(this.coverRightBackgroundColor === tmp0_other_with_cast.coverRightBackgroundColor)) + return false; + if (!(this.badge === tmp0_other_with_cast.badge)) + return false; + if (!(this.rcmdReason === tmp0_other_with_cast.rcmdReason)) + return false; + if (!(this.desc === tmp0_other_with_cast.desc)) + return false; + if (!equals(this.avatar, tmp0_other_with_cast.avatar)) + return false; + if (!equals(this.rcmdReasonStyle, tmp0_other_with_cast.rcmdReasonStyle)) + return false; + return true; + } + static new_com_bapis_bilibili_app_card_v1_KThreePicV2_r4q9lv_k$(seen1, base, leftCover, rightCover1, rightCover2, coverLeftText1, coverLeftIcon1, coverLeftText2, coverLeftIcon2, coverRightText, coverRightIcon, coverRightBackgroundColor, badge, rcmdReason, desc, avatar, rcmdReasonStyle, serializationConstructorMarker) { + Companion_instance_693; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_680().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.base = null; + else + $this.base = base; + if (0 === (seen1 & 2)) + $this.leftCover = ''; + else + $this.leftCover = leftCover; + if (0 === (seen1 & 4)) + $this.rightCover1 = ''; + else + $this.rightCover1 = rightCover1; + if (0 === (seen1 & 8)) + $this.rightCover2 = ''; + else + $this.rightCover2 = rightCover2; + if (0 === (seen1 & 16)) + $this.coverLeftText1 = ''; + else + $this.coverLeftText1 = coverLeftText1; + if (0 === (seen1 & 32)) + $this.coverLeftIcon1 = 0; + else + $this.coverLeftIcon1 = coverLeftIcon1; + if (0 === (seen1 & 64)) + $this.coverLeftText2 = ''; + else + $this.coverLeftText2 = coverLeftText2; + if (0 === (seen1 & 128)) + $this.coverLeftIcon2 = 0; + else + $this.coverLeftIcon2 = coverLeftIcon2; + if (0 === (seen1 & 256)) + $this.coverRightText = ''; + else + $this.coverRightText = coverRightText; + if (0 === (seen1 & 512)) + $this.coverRightIcon = 0; + else + $this.coverRightIcon = coverRightIcon; + if (0 === (seen1 & 1024)) + $this.coverRightBackgroundColor = ''; + else + $this.coverRightBackgroundColor = coverRightBackgroundColor; + if (0 === (seen1 & 2048)) + $this.badge = ''; + else + $this.badge = badge; + if (0 === (seen1 & 4096)) + $this.rcmdReason = ''; + else + $this.rcmdReason = rcmdReason; + if (0 === (seen1 & 8192)) + $this.desc = ''; + else + $this.desc = desc; + if (0 === (seen1 & 16384)) + $this.avatar = null; + else + $this.avatar = avatar; + if (0 === (seen1 & 32768)) + $this.rcmdReasonStyle = null; + else + $this.rcmdReasonStyle = rcmdReasonStyle; + return $this; + } + } + class Companion_694 { + constructor() { + this.targetPath = '/bilibili.app.card.v1.OnePicV2'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_681(); + } + } + class $serializer_681 { + constructor() { + $serializer_instance_681 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.card.v1.KOnePicV2', this, 10); + tmp0_serialDesc.addElement_5pzumi_k$('base', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('coverLeftIcon1', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('coverLeftText2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('coverRightText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('coverRightIcon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('coverRightBackgroundColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('badge', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('rcmdReason', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('avatar', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('rcmdReasonStyle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_646()), IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_654()), get_nullable($serializer_getInstance_662())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = 0; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = 0; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_local8 = null; + var tmp13_local9 = null; + var tmp14_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp14_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_646(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_654(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 9, $serializer_getInstance_662(), tmp13_local9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + } else + while (tmp1_flag) { + tmp2_index = tmp14_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_646(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_654(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 9, $serializer_getInstance_662(), tmp13_local9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp14_input.endStructure_1xqz0n_k$(tmp0_desc); + return KOnePicV2_0.new_com_bapis_bilibili_app_card_v1_KOnePicV2_spjli0_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, null); + } + serialize_y29jdu_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.base == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_646(), value.base); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.coverLeftIcon1 === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.coverLeftIcon1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.coverLeftText2 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.coverLeftText2); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.coverRightText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.coverRightText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.coverRightIcon === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 4, value.coverRightIcon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.coverRightBackgroundColor === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.coverRightBackgroundColor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.badge === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.badge); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.rcmdReason === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.rcmdReason); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.avatar == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 8, $serializer_getInstance_654(), value.avatar); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.rcmdReasonStyle == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 9, $serializer_getInstance_662(), value.rcmdReasonStyle); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_y29jdu_k$(encoder, value instanceof KOnePicV2_0 ? value : THROW_CCE()); + } + } + class KOnePicV2_0 { + constructor(base, coverLeftIcon1, coverLeftText2, coverRightText, coverRightIcon, coverRightBackgroundColor, badge, rcmdReason, avatar, rcmdReasonStyle) { + Companion_instance_694; + base = base === VOID ? null : base; + coverLeftIcon1 = coverLeftIcon1 === VOID ? 0 : coverLeftIcon1; + coverLeftText2 = coverLeftText2 === VOID ? '' : coverLeftText2; + coverRightText = coverRightText === VOID ? '' : coverRightText; + coverRightIcon = coverRightIcon === VOID ? 0 : coverRightIcon; + coverRightBackgroundColor = coverRightBackgroundColor === VOID ? '' : coverRightBackgroundColor; + badge = badge === VOID ? '' : badge; + rcmdReason = rcmdReason === VOID ? '' : rcmdReason; + avatar = avatar === VOID ? null : avatar; + rcmdReasonStyle = rcmdReasonStyle === VOID ? null : rcmdReasonStyle; + this.base = base; + this.coverLeftIcon1 = coverLeftIcon1; + this.coverLeftText2 = coverLeftText2; + this.coverRightText = coverRightText; + this.coverRightIcon = coverRightIcon; + this.coverRightBackgroundColor = coverRightBackgroundColor; + this.badge = badge; + this.rcmdReason = rcmdReason; + this.avatar = avatar; + this.rcmdReasonStyle = rcmdReasonStyle; + } + get_base_wojaxm_k$() { + return this.base; + } + get_coverLeftIcon1_ce5a8z_k$() { + return this.coverLeftIcon1; + } + get_coverLeftText2_ck8hkg_k$() { + return this.coverLeftText2; + } + get_coverRightText_t0bat7_k$() { + return this.coverRightText; + } + get_coverRightIcon_t04893_k$() { + return this.coverRightIcon; + } + get_coverRightBackgroundColor_hg9jnr_k$() { + return this.coverRightBackgroundColor; + } + get_badge_ip1cai_k$() { + return this.badge; + } + get_rcmdReason_lci9h1_k$() { + return this.rcmdReason; + } + get_avatar_b5pjz6_k$() { + return this.avatar; + } + get_rcmdReasonStyle_5yq4ak_k$() { + return this.rcmdReasonStyle; + } + component1_7eebsc_k$() { + return this.base; + } + component2_7eebsb_k$() { + return this.coverLeftIcon1; + } + component3_7eebsa_k$() { + return this.coverLeftText2; + } + component4_7eebs9_k$() { + return this.coverRightText; + } + component5_7eebs8_k$() { + return this.coverRightIcon; + } + component6_7eebs7_k$() { + return this.coverRightBackgroundColor; + } + component7_7eebs6_k$() { + return this.badge; + } + component8_7eebs5_k$() { + return this.rcmdReason; + } + component9_7eebs4_k$() { + return this.avatar; + } + component10_gazzfo_k$() { + return this.rcmdReasonStyle; + } + copy_7dw2sq_k$(base, coverLeftIcon1, coverLeftText2, coverRightText, coverRightIcon, coverRightBackgroundColor, badge, rcmdReason, avatar, rcmdReasonStyle) { + return new KOnePicV2_0(base, coverLeftIcon1, coverLeftText2, coverRightText, coverRightIcon, coverRightBackgroundColor, badge, rcmdReason, avatar, rcmdReasonStyle); + } + copy(base, coverLeftIcon1, coverLeftText2, coverRightText, coverRightIcon, coverRightBackgroundColor, badge, rcmdReason, avatar, rcmdReasonStyle, $super) { + base = base === VOID ? this.base : base; + coverLeftIcon1 = coverLeftIcon1 === VOID ? this.coverLeftIcon1 : coverLeftIcon1; + coverLeftText2 = coverLeftText2 === VOID ? this.coverLeftText2 : coverLeftText2; + coverRightText = coverRightText === VOID ? this.coverRightText : coverRightText; + coverRightIcon = coverRightIcon === VOID ? this.coverRightIcon : coverRightIcon; + coverRightBackgroundColor = coverRightBackgroundColor === VOID ? this.coverRightBackgroundColor : coverRightBackgroundColor; + badge = badge === VOID ? this.badge : badge; + rcmdReason = rcmdReason === VOID ? this.rcmdReason : rcmdReason; + avatar = avatar === VOID ? this.avatar : avatar; + rcmdReasonStyle = rcmdReasonStyle === VOID ? this.rcmdReasonStyle : rcmdReasonStyle; + return this.copy_7dw2sq_k$(base, coverLeftIcon1, coverLeftText2, coverRightText, coverRightIcon, coverRightBackgroundColor, badge, rcmdReason, avatar, rcmdReasonStyle); + } + toString() { + return 'KOnePicV2(base=' + this.base + ', coverLeftIcon1=' + this.coverLeftIcon1 + ', coverLeftText2=' + this.coverLeftText2 + ', coverRightText=' + this.coverRightText + ', coverRightIcon=' + this.coverRightIcon + ', coverRightBackgroundColor=' + this.coverRightBackgroundColor + ', badge=' + this.badge + ', rcmdReason=' + this.rcmdReason + ', avatar=' + this.avatar + ', rcmdReasonStyle=' + this.rcmdReasonStyle + ')'; + } + hashCode() { + var result = this.base == null ? 0 : this.base.hashCode(); + result = imul(result, 31) + this.coverLeftIcon1 | 0; + result = imul(result, 31) + getStringHashCode(this.coverLeftText2) | 0; + result = imul(result, 31) + getStringHashCode(this.coverRightText) | 0; + result = imul(result, 31) + this.coverRightIcon | 0; + result = imul(result, 31) + getStringHashCode(this.coverRightBackgroundColor) | 0; + result = imul(result, 31) + getStringHashCode(this.badge) | 0; + result = imul(result, 31) + getStringHashCode(this.rcmdReason) | 0; + result = imul(result, 31) + (this.avatar == null ? 0 : this.avatar.hashCode()) | 0; + result = imul(result, 31) + (this.rcmdReasonStyle == null ? 0 : this.rcmdReasonStyle.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KOnePicV2_0)) + return false; + var tmp0_other_with_cast = other instanceof KOnePicV2_0 ? other : THROW_CCE(); + if (!equals(this.base, tmp0_other_with_cast.base)) + return false; + if (!(this.coverLeftIcon1 === tmp0_other_with_cast.coverLeftIcon1)) + return false; + if (!(this.coverLeftText2 === tmp0_other_with_cast.coverLeftText2)) + return false; + if (!(this.coverRightText === tmp0_other_with_cast.coverRightText)) + return false; + if (!(this.coverRightIcon === tmp0_other_with_cast.coverRightIcon)) + return false; + if (!(this.coverRightBackgroundColor === tmp0_other_with_cast.coverRightBackgroundColor)) + return false; + if (!(this.badge === tmp0_other_with_cast.badge)) + return false; + if (!(this.rcmdReason === tmp0_other_with_cast.rcmdReason)) + return false; + if (!equals(this.avatar, tmp0_other_with_cast.avatar)) + return false; + if (!equals(this.rcmdReasonStyle, tmp0_other_with_cast.rcmdReasonStyle)) + return false; + return true; + } + static new_com_bapis_bilibili_app_card_v1_KOnePicV2_spjli0_k$(seen1, base, coverLeftIcon1, coverLeftText2, coverRightText, coverRightIcon, coverRightBackgroundColor, badge, rcmdReason, avatar, rcmdReasonStyle, serializationConstructorMarker) { + Companion_instance_694; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_681().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.base = null; + else + $this.base = base; + if (0 === (seen1 & 2)) + $this.coverLeftIcon1 = 0; + else + $this.coverLeftIcon1 = coverLeftIcon1; + if (0 === (seen1 & 4)) + $this.coverLeftText2 = ''; + else + $this.coverLeftText2 = coverLeftText2; + if (0 === (seen1 & 8)) + $this.coverRightText = ''; + else + $this.coverRightText = coverRightText; + if (0 === (seen1 & 16)) + $this.coverRightIcon = 0; + else + $this.coverRightIcon = coverRightIcon; + if (0 === (seen1 & 32)) + $this.coverRightBackgroundColor = ''; + else + $this.coverRightBackgroundColor = coverRightBackgroundColor; + if (0 === (seen1 & 64)) + $this.badge = ''; + else + $this.badge = badge; + if (0 === (seen1 & 128)) + $this.rcmdReason = ''; + else + $this.rcmdReason = rcmdReason; + if (0 === (seen1 & 256)) + $this.avatar = null; + else + $this.avatar = avatar; + if (0 === (seen1 & 512)) + $this.rcmdReasonStyle = null; + else + $this.rcmdReasonStyle = rcmdReasonStyle; + return $this; + } + } + class Companion_695 { + constructor() { + this.targetPath = '/bilibili.app.card.v1.LargeCoverV3'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_682(); + } + } + class $serializer_682 { + constructor() { + $serializer_instance_682 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.card.v1.KLargeCoverV3', this, 12); + tmp0_serialDesc.addElement_5pzumi_k$('base', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('coverGif', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('avatar', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('topRcmdReasonStyle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('bottomRcmdReasonStyle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('coverLeftText1', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('coverLeftIcon1', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('coverLeftText2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('coverLeftIcon2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('coverRightText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('desc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('officialIcon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_646()), StringSerializer_getInstance(), get_nullable($serializer_getInstance_654()), get_nullable($serializer_getInstance_662()), get_nullable($serializer_getInstance_662()), StringSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = 0; + var tmp11_local7 = null; + var tmp12_local8 = 0; + var tmp13_local9 = null; + var tmp14_local10 = null; + var tmp15_local11 = 0; + var tmp16_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp16_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp16_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_646(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp16_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_654(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp16_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_662(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp16_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_662(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + } else + while (tmp1_flag) { + tmp2_index = tmp16_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp16_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_646(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp16_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_654(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp16_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_662(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp16_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_662(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp16_input.endStructure_1xqz0n_k$(tmp0_desc); + return KLargeCoverV3.new_com_bapis_bilibili_app_card_v1_KLargeCoverV3_uizbds_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, null); + } + serialize_lx29vf_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.base == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_646(), value.base); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.coverGif === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.coverGif); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.avatar == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_654(), value.avatar); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.topRcmdReasonStyle == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_662(), value.topRcmdReasonStyle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.bottomRcmdReasonStyle == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, $serializer_getInstance_662(), value.bottomRcmdReasonStyle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.coverLeftText1 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.coverLeftText1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.coverLeftIcon1 === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 6, value.coverLeftIcon1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.coverLeftText2 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.coverLeftText2); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.coverLeftIcon2 === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 8, value.coverLeftIcon2); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.coverRightText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 9, value.coverRightText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.desc === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 10, value.desc); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.officialIcon === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 11, value.officialIcon); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_lx29vf_k$(encoder, value instanceof KLargeCoverV3 ? value : THROW_CCE()); + } + } + class KLargeCoverV3 { + constructor(base, coverGif, avatar, topRcmdReasonStyle, bottomRcmdReasonStyle, coverLeftText1, coverLeftIcon1, coverLeftText2, coverLeftIcon2, coverRightText, desc, officialIcon) { + Companion_instance_695; + base = base === VOID ? null : base; + coverGif = coverGif === VOID ? '' : coverGif; + avatar = avatar === VOID ? null : avatar; + topRcmdReasonStyle = topRcmdReasonStyle === VOID ? null : topRcmdReasonStyle; + bottomRcmdReasonStyle = bottomRcmdReasonStyle === VOID ? null : bottomRcmdReasonStyle; + coverLeftText1 = coverLeftText1 === VOID ? '' : coverLeftText1; + coverLeftIcon1 = coverLeftIcon1 === VOID ? 0 : coverLeftIcon1; + coverLeftText2 = coverLeftText2 === VOID ? '' : coverLeftText2; + coverLeftIcon2 = coverLeftIcon2 === VOID ? 0 : coverLeftIcon2; + coverRightText = coverRightText === VOID ? '' : coverRightText; + desc = desc === VOID ? '' : desc; + officialIcon = officialIcon === VOID ? 0 : officialIcon; + this.base = base; + this.coverGif = coverGif; + this.avatar = avatar; + this.topRcmdReasonStyle = topRcmdReasonStyle; + this.bottomRcmdReasonStyle = bottomRcmdReasonStyle; + this.coverLeftText1 = coverLeftText1; + this.coverLeftIcon1 = coverLeftIcon1; + this.coverLeftText2 = coverLeftText2; + this.coverLeftIcon2 = coverLeftIcon2; + this.coverRightText = coverRightText; + this.desc = desc; + this.officialIcon = officialIcon; + } + get_base_wojaxm_k$() { + return this.base; + } + get_coverGif_xeq6vq_k$() { + return this.coverGif; + } + get_avatar_b5pjz6_k$() { + return this.avatar; + } + get_topRcmdReasonStyle_scbd09_k$() { + return this.topRcmdReasonStyle; + } + get_bottomRcmdReasonStyle_1fwcz3_k$() { + return this.bottomRcmdReasonStyle; + } + get_coverLeftText1_ck8hkf_k$() { + return this.coverLeftText1; + } + get_coverLeftIcon1_ce5a8z_k$() { + return this.coverLeftIcon1; + } + get_coverLeftText2_ck8hkg_k$() { + return this.coverLeftText2; + } + get_coverLeftIcon2_ce5a90_k$() { + return this.coverLeftIcon2; + } + get_coverRightText_t0bat7_k$() { + return this.coverRightText; + } + get_desc_woknve_k$() { + return this.desc; + } + get_officialIcon_t4hw0d_k$() { + return this.officialIcon; + } + component1_7eebsc_k$() { + return this.base; + } + component2_7eebsb_k$() { + return this.coverGif; + } + component3_7eebsa_k$() { + return this.avatar; + } + component4_7eebs9_k$() { + return this.topRcmdReasonStyle; + } + component5_7eebs8_k$() { + return this.bottomRcmdReasonStyle; + } + component6_7eebs7_k$() { + return this.coverLeftText1; + } + component7_7eebs6_k$() { + return this.coverLeftIcon1; + } + component8_7eebs5_k$() { + return this.coverLeftText2; + } + component9_7eebs4_k$() { + return this.coverLeftIcon2; + } + component10_gazzfo_k$() { + return this.coverRightText; + } + component11_gazzfn_k$() { + return this.desc; + } + component12_gazzfm_k$() { + return this.officialIcon; + } + copy_ynuog9_k$(base, coverGif, avatar, topRcmdReasonStyle, bottomRcmdReasonStyle, coverLeftText1, coverLeftIcon1, coverLeftText2, coverLeftIcon2, coverRightText, desc, officialIcon) { + return new KLargeCoverV3(base, coverGif, avatar, topRcmdReasonStyle, bottomRcmdReasonStyle, coverLeftText1, coverLeftIcon1, coverLeftText2, coverLeftIcon2, coverRightText, desc, officialIcon); + } + copy(base, coverGif, avatar, topRcmdReasonStyle, bottomRcmdReasonStyle, coverLeftText1, coverLeftIcon1, coverLeftText2, coverLeftIcon2, coverRightText, desc, officialIcon, $super) { + base = base === VOID ? this.base : base; + coverGif = coverGif === VOID ? this.coverGif : coverGif; + avatar = avatar === VOID ? this.avatar : avatar; + topRcmdReasonStyle = topRcmdReasonStyle === VOID ? this.topRcmdReasonStyle : topRcmdReasonStyle; + bottomRcmdReasonStyle = bottomRcmdReasonStyle === VOID ? this.bottomRcmdReasonStyle : bottomRcmdReasonStyle; + coverLeftText1 = coverLeftText1 === VOID ? this.coverLeftText1 : coverLeftText1; + coverLeftIcon1 = coverLeftIcon1 === VOID ? this.coverLeftIcon1 : coverLeftIcon1; + coverLeftText2 = coverLeftText2 === VOID ? this.coverLeftText2 : coverLeftText2; + coverLeftIcon2 = coverLeftIcon2 === VOID ? this.coverLeftIcon2 : coverLeftIcon2; + coverRightText = coverRightText === VOID ? this.coverRightText : coverRightText; + desc = desc === VOID ? this.desc : desc; + officialIcon = officialIcon === VOID ? this.officialIcon : officialIcon; + return this.copy_ynuog9_k$(base, coverGif, avatar, topRcmdReasonStyle, bottomRcmdReasonStyle, coverLeftText1, coverLeftIcon1, coverLeftText2, coverLeftIcon2, coverRightText, desc, officialIcon); + } + toString() { + return 'KLargeCoverV3(base=' + this.base + ', coverGif=' + this.coverGif + ', avatar=' + this.avatar + ', topRcmdReasonStyle=' + this.topRcmdReasonStyle + ', bottomRcmdReasonStyle=' + this.bottomRcmdReasonStyle + ', coverLeftText1=' + this.coverLeftText1 + ', coverLeftIcon1=' + this.coverLeftIcon1 + ', coverLeftText2=' + this.coverLeftText2 + ', coverLeftIcon2=' + this.coverLeftIcon2 + ', coverRightText=' + this.coverRightText + ', desc=' + this.desc + ', officialIcon=' + this.officialIcon + ')'; + } + hashCode() { + var result = this.base == null ? 0 : this.base.hashCode(); + result = imul(result, 31) + getStringHashCode(this.coverGif) | 0; + result = imul(result, 31) + (this.avatar == null ? 0 : this.avatar.hashCode()) | 0; + result = imul(result, 31) + (this.topRcmdReasonStyle == null ? 0 : this.topRcmdReasonStyle.hashCode()) | 0; + result = imul(result, 31) + (this.bottomRcmdReasonStyle == null ? 0 : this.bottomRcmdReasonStyle.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.coverLeftText1) | 0; + result = imul(result, 31) + this.coverLeftIcon1 | 0; + result = imul(result, 31) + getStringHashCode(this.coverLeftText2) | 0; + result = imul(result, 31) + this.coverLeftIcon2 | 0; + result = imul(result, 31) + getStringHashCode(this.coverRightText) | 0; + result = imul(result, 31) + getStringHashCode(this.desc) | 0; + result = imul(result, 31) + this.officialIcon | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KLargeCoverV3)) + return false; + var tmp0_other_with_cast = other instanceof KLargeCoverV3 ? other : THROW_CCE(); + if (!equals(this.base, tmp0_other_with_cast.base)) + return false; + if (!(this.coverGif === tmp0_other_with_cast.coverGif)) + return false; + if (!equals(this.avatar, tmp0_other_with_cast.avatar)) + return false; + if (!equals(this.topRcmdReasonStyle, tmp0_other_with_cast.topRcmdReasonStyle)) + return false; + if (!equals(this.bottomRcmdReasonStyle, tmp0_other_with_cast.bottomRcmdReasonStyle)) + return false; + if (!(this.coverLeftText1 === tmp0_other_with_cast.coverLeftText1)) + return false; + if (!(this.coverLeftIcon1 === tmp0_other_with_cast.coverLeftIcon1)) + return false; + if (!(this.coverLeftText2 === tmp0_other_with_cast.coverLeftText2)) + return false; + if (!(this.coverLeftIcon2 === tmp0_other_with_cast.coverLeftIcon2)) + return false; + if (!(this.coverRightText === tmp0_other_with_cast.coverRightText)) + return false; + if (!(this.desc === tmp0_other_with_cast.desc)) + return false; + if (!(this.officialIcon === tmp0_other_with_cast.officialIcon)) + return false; + return true; + } + static new_com_bapis_bilibili_app_card_v1_KLargeCoverV3_uizbds_k$(seen1, base, coverGif, avatar, topRcmdReasonStyle, bottomRcmdReasonStyle, coverLeftText1, coverLeftIcon1, coverLeftText2, coverLeftIcon2, coverRightText, desc, officialIcon, serializationConstructorMarker) { + Companion_instance_695; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_682().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.base = null; + else + $this.base = base; + if (0 === (seen1 & 2)) + $this.coverGif = ''; + else + $this.coverGif = coverGif; + if (0 === (seen1 & 4)) + $this.avatar = null; + else + $this.avatar = avatar; + if (0 === (seen1 & 8)) + $this.topRcmdReasonStyle = null; + else + $this.topRcmdReasonStyle = topRcmdReasonStyle; + if (0 === (seen1 & 16)) + $this.bottomRcmdReasonStyle = null; + else + $this.bottomRcmdReasonStyle = bottomRcmdReasonStyle; + if (0 === (seen1 & 32)) + $this.coverLeftText1 = ''; + else + $this.coverLeftText1 = coverLeftText1; + if (0 === (seen1 & 64)) + $this.coverLeftIcon1 = 0; + else + $this.coverLeftIcon1 = coverLeftIcon1; + if (0 === (seen1 & 128)) + $this.coverLeftText2 = ''; + else + $this.coverLeftText2 = coverLeftText2; + if (0 === (seen1 & 256)) + $this.coverLeftIcon2 = 0; + else + $this.coverLeftIcon2 = coverLeftIcon2; + if (0 === (seen1 & 512)) + $this.coverRightText = ''; + else + $this.coverRightText = coverRightText; + if (0 === (seen1 & 1024)) + $this.desc = ''; + else + $this.desc = desc; + if (0 === (seen1 & 2048)) + $this.officialIcon = 0; + else + $this.officialIcon = officialIcon; + return $this; + } + } + class Companion_696 { + constructor() { + this.targetPath = '/bilibili.app.card.v1.ThreePicV3'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_683(); + } + } + class $serializer_683 { + constructor() { + $serializer_instance_683 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.card.v1.KThreePicV3', this, 13); + tmp0_serialDesc.addElement_5pzumi_k$('base', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('leftCover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('rightCover1', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('rightCover2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('coverLeftText1', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('coverLeftIcon1', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('coverLeftText2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('coverLeftIcon2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('coverRightText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('coverRightIcon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('coverRightBackgroundColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('badge', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + tmp0_serialDesc.addElement_5pzumi_k$('rcmdReasonStyle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(13)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_646()), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_662())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = 0; + var tmp10_local6 = null; + var tmp11_local7 = 0; + var tmp12_local8 = null; + var tmp13_local9 = 0; + var tmp14_local10 = null; + var tmp15_local11 = null; + var tmp16_local12 = null; + var tmp17_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp17_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp17_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_646(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp17_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp17_input.decodeIntElement_941u6a_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp17_input.decodeIntElement_941u6a_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + tmp16_local12 = tmp17_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 12, $serializer_getInstance_662(), tmp16_local12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + } else + while (tmp1_flag) { + tmp2_index = tmp17_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp17_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_646(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp17_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp17_input.decodeIntElement_941u6a_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp17_input.decodeIntElement_941u6a_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + case 12: + tmp16_local12 = tmp17_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 12, $serializer_getInstance_662(), tmp16_local12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp17_input.endStructure_1xqz0n_k$(tmp0_desc); + return KThreePicV3.new_com_bapis_bilibili_app_card_v1_KThreePicV3_plthyp_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, null); + } + serialize_axazrf_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.base == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_646(), value.base); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.leftCover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.leftCover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.rightCover1 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.rightCover1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.rightCover2 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.rightCover2); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.coverLeftText1 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.coverLeftText1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.coverLeftIcon1 === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 5, value.coverLeftIcon1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.coverLeftText2 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.coverLeftText2); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.coverLeftIcon2 === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 7, value.coverLeftIcon2); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.coverRightText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 8, value.coverRightText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.coverRightIcon === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 9, value.coverRightIcon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.coverRightBackgroundColor === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 10, value.coverRightBackgroundColor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.badge === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 11, value.badge); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !(value.rcmdReasonStyle == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 12, $serializer_getInstance_662(), value.rcmdReasonStyle); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_axazrf_k$(encoder, value instanceof KThreePicV3 ? value : THROW_CCE()); + } + } + class KThreePicV3 { + constructor(base, leftCover, rightCover1, rightCover2, coverLeftText1, coverLeftIcon1, coverLeftText2, coverLeftIcon2, coverRightText, coverRightIcon, coverRightBackgroundColor, badge, rcmdReasonStyle) { + Companion_instance_696; + base = base === VOID ? null : base; + leftCover = leftCover === VOID ? '' : leftCover; + rightCover1 = rightCover1 === VOID ? '' : rightCover1; + rightCover2 = rightCover2 === VOID ? '' : rightCover2; + coverLeftText1 = coverLeftText1 === VOID ? '' : coverLeftText1; + coverLeftIcon1 = coverLeftIcon1 === VOID ? 0 : coverLeftIcon1; + coverLeftText2 = coverLeftText2 === VOID ? '' : coverLeftText2; + coverLeftIcon2 = coverLeftIcon2 === VOID ? 0 : coverLeftIcon2; + coverRightText = coverRightText === VOID ? '' : coverRightText; + coverRightIcon = coverRightIcon === VOID ? 0 : coverRightIcon; + coverRightBackgroundColor = coverRightBackgroundColor === VOID ? '' : coverRightBackgroundColor; + badge = badge === VOID ? '' : badge; + rcmdReasonStyle = rcmdReasonStyle === VOID ? null : rcmdReasonStyle; + this.base = base; + this.leftCover = leftCover; + this.rightCover1 = rightCover1; + this.rightCover2 = rightCover2; + this.coverLeftText1 = coverLeftText1; + this.coverLeftIcon1 = coverLeftIcon1; + this.coverLeftText2 = coverLeftText2; + this.coverLeftIcon2 = coverLeftIcon2; + this.coverRightText = coverRightText; + this.coverRightIcon = coverRightIcon; + this.coverRightBackgroundColor = coverRightBackgroundColor; + this.badge = badge; + this.rcmdReasonStyle = rcmdReasonStyle; + } + get_base_wojaxm_k$() { + return this.base; + } + get_leftCover_y4xynt_k$() { + return this.leftCover; + } + get_rightCover1_jndg3_k$() { + return this.rightCover1; + } + get_rightCover2_jndg2_k$() { + return this.rightCover2; + } + get_coverLeftText1_ck8hkf_k$() { + return this.coverLeftText1; + } + get_coverLeftIcon1_ce5a8z_k$() { + return this.coverLeftIcon1; + } + get_coverLeftText2_ck8hkg_k$() { + return this.coverLeftText2; + } + get_coverLeftIcon2_ce5a90_k$() { + return this.coverLeftIcon2; + } + get_coverRightText_t0bat7_k$() { + return this.coverRightText; + } + get_coverRightIcon_t04893_k$() { + return this.coverRightIcon; + } + get_coverRightBackgroundColor_hg9jnr_k$() { + return this.coverRightBackgroundColor; + } + get_badge_ip1cai_k$() { + return this.badge; + } + get_rcmdReasonStyle_5yq4ak_k$() { + return this.rcmdReasonStyle; + } + component1_7eebsc_k$() { + return this.base; + } + component2_7eebsb_k$() { + return this.leftCover; + } + component3_7eebsa_k$() { + return this.rightCover1; + } + component4_7eebs9_k$() { + return this.rightCover2; + } + component5_7eebs8_k$() { + return this.coverLeftText1; + } + component6_7eebs7_k$() { + return this.coverLeftIcon1; + } + component7_7eebs6_k$() { + return this.coverLeftText2; + } + component8_7eebs5_k$() { + return this.coverLeftIcon2; + } + component9_7eebs4_k$() { + return this.coverRightText; + } + component10_gazzfo_k$() { + return this.coverRightIcon; + } + component11_gazzfn_k$() { + return this.coverRightBackgroundColor; + } + component12_gazzfm_k$() { + return this.badge; + } + component13_gazzfl_k$() { + return this.rcmdReasonStyle; + } + copy_11r0o1_k$(base, leftCover, rightCover1, rightCover2, coverLeftText1, coverLeftIcon1, coverLeftText2, coverLeftIcon2, coverRightText, coverRightIcon, coverRightBackgroundColor, badge, rcmdReasonStyle) { + return new KThreePicV3(base, leftCover, rightCover1, rightCover2, coverLeftText1, coverLeftIcon1, coverLeftText2, coverLeftIcon2, coverRightText, coverRightIcon, coverRightBackgroundColor, badge, rcmdReasonStyle); + } + copy(base, leftCover, rightCover1, rightCover2, coverLeftText1, coverLeftIcon1, coverLeftText2, coverLeftIcon2, coverRightText, coverRightIcon, coverRightBackgroundColor, badge, rcmdReasonStyle, $super) { + base = base === VOID ? this.base : base; + leftCover = leftCover === VOID ? this.leftCover : leftCover; + rightCover1 = rightCover1 === VOID ? this.rightCover1 : rightCover1; + rightCover2 = rightCover2 === VOID ? this.rightCover2 : rightCover2; + coverLeftText1 = coverLeftText1 === VOID ? this.coverLeftText1 : coverLeftText1; + coverLeftIcon1 = coverLeftIcon1 === VOID ? this.coverLeftIcon1 : coverLeftIcon1; + coverLeftText2 = coverLeftText2 === VOID ? this.coverLeftText2 : coverLeftText2; + coverLeftIcon2 = coverLeftIcon2 === VOID ? this.coverLeftIcon2 : coverLeftIcon2; + coverRightText = coverRightText === VOID ? this.coverRightText : coverRightText; + coverRightIcon = coverRightIcon === VOID ? this.coverRightIcon : coverRightIcon; + coverRightBackgroundColor = coverRightBackgroundColor === VOID ? this.coverRightBackgroundColor : coverRightBackgroundColor; + badge = badge === VOID ? this.badge : badge; + rcmdReasonStyle = rcmdReasonStyle === VOID ? this.rcmdReasonStyle : rcmdReasonStyle; + return this.copy_11r0o1_k$(base, leftCover, rightCover1, rightCover2, coverLeftText1, coverLeftIcon1, coverLeftText2, coverLeftIcon2, coverRightText, coverRightIcon, coverRightBackgroundColor, badge, rcmdReasonStyle); + } + toString() { + return 'KThreePicV3(base=' + this.base + ', leftCover=' + this.leftCover + ', rightCover1=' + this.rightCover1 + ', rightCover2=' + this.rightCover2 + ', coverLeftText1=' + this.coverLeftText1 + ', coverLeftIcon1=' + this.coverLeftIcon1 + ', coverLeftText2=' + this.coverLeftText2 + ', coverLeftIcon2=' + this.coverLeftIcon2 + ', coverRightText=' + this.coverRightText + ', coverRightIcon=' + this.coverRightIcon + ', coverRightBackgroundColor=' + this.coverRightBackgroundColor + ', badge=' + this.badge + ', rcmdReasonStyle=' + this.rcmdReasonStyle + ')'; + } + hashCode() { + var result = this.base == null ? 0 : this.base.hashCode(); + result = imul(result, 31) + getStringHashCode(this.leftCover) | 0; + result = imul(result, 31) + getStringHashCode(this.rightCover1) | 0; + result = imul(result, 31) + getStringHashCode(this.rightCover2) | 0; + result = imul(result, 31) + getStringHashCode(this.coverLeftText1) | 0; + result = imul(result, 31) + this.coverLeftIcon1 | 0; + result = imul(result, 31) + getStringHashCode(this.coverLeftText2) | 0; + result = imul(result, 31) + this.coverLeftIcon2 | 0; + result = imul(result, 31) + getStringHashCode(this.coverRightText) | 0; + result = imul(result, 31) + this.coverRightIcon | 0; + result = imul(result, 31) + getStringHashCode(this.coverRightBackgroundColor) | 0; + result = imul(result, 31) + getStringHashCode(this.badge) | 0; + result = imul(result, 31) + (this.rcmdReasonStyle == null ? 0 : this.rcmdReasonStyle.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KThreePicV3)) + return false; + var tmp0_other_with_cast = other instanceof KThreePicV3 ? other : THROW_CCE(); + if (!equals(this.base, tmp0_other_with_cast.base)) + return false; + if (!(this.leftCover === tmp0_other_with_cast.leftCover)) + return false; + if (!(this.rightCover1 === tmp0_other_with_cast.rightCover1)) + return false; + if (!(this.rightCover2 === tmp0_other_with_cast.rightCover2)) + return false; + if (!(this.coverLeftText1 === tmp0_other_with_cast.coverLeftText1)) + return false; + if (!(this.coverLeftIcon1 === tmp0_other_with_cast.coverLeftIcon1)) + return false; + if (!(this.coverLeftText2 === tmp0_other_with_cast.coverLeftText2)) + return false; + if (!(this.coverLeftIcon2 === tmp0_other_with_cast.coverLeftIcon2)) + return false; + if (!(this.coverRightText === tmp0_other_with_cast.coverRightText)) + return false; + if (!(this.coverRightIcon === tmp0_other_with_cast.coverRightIcon)) + return false; + if (!(this.coverRightBackgroundColor === tmp0_other_with_cast.coverRightBackgroundColor)) + return false; + if (!(this.badge === tmp0_other_with_cast.badge)) + return false; + if (!equals(this.rcmdReasonStyle, tmp0_other_with_cast.rcmdReasonStyle)) + return false; + return true; + } + static new_com_bapis_bilibili_app_card_v1_KThreePicV3_plthyp_k$(seen1, base, leftCover, rightCover1, rightCover2, coverLeftText1, coverLeftIcon1, coverLeftText2, coverLeftIcon2, coverRightText, coverRightIcon, coverRightBackgroundColor, badge, rcmdReasonStyle, serializationConstructorMarker) { + Companion_instance_696; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_683().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.base = null; + else + $this.base = base; + if (0 === (seen1 & 2)) + $this.leftCover = ''; + else + $this.leftCover = leftCover; + if (0 === (seen1 & 4)) + $this.rightCover1 = ''; + else + $this.rightCover1 = rightCover1; + if (0 === (seen1 & 8)) + $this.rightCover2 = ''; + else + $this.rightCover2 = rightCover2; + if (0 === (seen1 & 16)) + $this.coverLeftText1 = ''; + else + $this.coverLeftText1 = coverLeftText1; + if (0 === (seen1 & 32)) + $this.coverLeftIcon1 = 0; + else + $this.coverLeftIcon1 = coverLeftIcon1; + if (0 === (seen1 & 64)) + $this.coverLeftText2 = ''; + else + $this.coverLeftText2 = coverLeftText2; + if (0 === (seen1 & 128)) + $this.coverLeftIcon2 = 0; + else + $this.coverLeftIcon2 = coverLeftIcon2; + if (0 === (seen1 & 256)) + $this.coverRightText = ''; + else + $this.coverRightText = coverRightText; + if (0 === (seen1 & 512)) + $this.coverRightIcon = 0; + else + $this.coverRightIcon = coverRightIcon; + if (0 === (seen1 & 1024)) + $this.coverRightBackgroundColor = ''; + else + $this.coverRightBackgroundColor = coverRightBackgroundColor; + if (0 === (seen1 & 2048)) + $this.badge = ''; + else + $this.badge = badge; + if (0 === (seen1 & 4096)) + $this.rcmdReasonStyle = null; + else + $this.rcmdReasonStyle = rcmdReasonStyle; + return $this; + } + } + class Companion_697 { + constructor() { + this.targetPath = '/bilibili.app.card.v1.OnePicV3'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_684(); + } + } + class $serializer_684 { + constructor() { + $serializer_instance_684 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.card.v1.KOnePicV3', this, 8); + tmp0_serialDesc.addElement_5pzumi_k$('base', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('coverLeftText1', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('coverLeftIcon1', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('coverRightText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('coverRightIcon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('coverRightBackgroundColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('badge', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('rcmdReasonStyle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_646()), StringSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_662())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = 0; + var tmp7_local3 = null; + var tmp8_local4 = 0; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp12_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_646(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_662(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + } else + while (tmp1_flag) { + tmp2_index = tmp12_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_646(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_662(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp12_input.endStructure_1xqz0n_k$(tmp0_desc); + return KOnePicV3.new_com_bapis_bilibili_app_card_v1_KOnePicV3_cfpjfr_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null); + } + serialize_wr6mm5_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.base == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_646(), value.base); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.coverLeftText1 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.coverLeftText1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.coverLeftIcon1 === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.coverLeftIcon1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.coverRightText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.coverRightText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.coverRightIcon === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 4, value.coverRightIcon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.coverRightBackgroundColor === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.coverRightBackgroundColor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.badge === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.badge); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.rcmdReasonStyle == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 7, $serializer_getInstance_662(), value.rcmdReasonStyle); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_wr6mm5_k$(encoder, value instanceof KOnePicV3 ? value : THROW_CCE()); + } + } + class KOnePicV3 { + constructor(base, coverLeftText1, coverLeftIcon1, coverRightText, coverRightIcon, coverRightBackgroundColor, badge, rcmdReasonStyle) { + Companion_instance_697; + base = base === VOID ? null : base; + coverLeftText1 = coverLeftText1 === VOID ? '' : coverLeftText1; + coverLeftIcon1 = coverLeftIcon1 === VOID ? 0 : coverLeftIcon1; + coverRightText = coverRightText === VOID ? '' : coverRightText; + coverRightIcon = coverRightIcon === VOID ? 0 : coverRightIcon; + coverRightBackgroundColor = coverRightBackgroundColor === VOID ? '' : coverRightBackgroundColor; + badge = badge === VOID ? '' : badge; + rcmdReasonStyle = rcmdReasonStyle === VOID ? null : rcmdReasonStyle; + this.base = base; + this.coverLeftText1 = coverLeftText1; + this.coverLeftIcon1 = coverLeftIcon1; + this.coverRightText = coverRightText; + this.coverRightIcon = coverRightIcon; + this.coverRightBackgroundColor = coverRightBackgroundColor; + this.badge = badge; + this.rcmdReasonStyle = rcmdReasonStyle; + } + get_base_wojaxm_k$() { + return this.base; + } + get_coverLeftText1_ck8hkf_k$() { + return this.coverLeftText1; + } + get_coverLeftIcon1_ce5a8z_k$() { + return this.coverLeftIcon1; + } + get_coverRightText_t0bat7_k$() { + return this.coverRightText; + } + get_coverRightIcon_t04893_k$() { + return this.coverRightIcon; + } + get_coverRightBackgroundColor_hg9jnr_k$() { + return this.coverRightBackgroundColor; + } + get_badge_ip1cai_k$() { + return this.badge; + } + get_rcmdReasonStyle_5yq4ak_k$() { + return this.rcmdReasonStyle; + } + component1_7eebsc_k$() { + return this.base; + } + component2_7eebsb_k$() { + return this.coverLeftText1; + } + component3_7eebsa_k$() { + return this.coverLeftIcon1; + } + component4_7eebs9_k$() { + return this.coverRightText; + } + component5_7eebs8_k$() { + return this.coverRightIcon; + } + component6_7eebs7_k$() { + return this.coverRightBackgroundColor; + } + component7_7eebs6_k$() { + return this.badge; + } + component8_7eebs5_k$() { + return this.rcmdReasonStyle; + } + copy_dlerw3_k$(base, coverLeftText1, coverLeftIcon1, coverRightText, coverRightIcon, coverRightBackgroundColor, badge, rcmdReasonStyle) { + return new KOnePicV3(base, coverLeftText1, coverLeftIcon1, coverRightText, coverRightIcon, coverRightBackgroundColor, badge, rcmdReasonStyle); + } + copy(base, coverLeftText1, coverLeftIcon1, coverRightText, coverRightIcon, coverRightBackgroundColor, badge, rcmdReasonStyle, $super) { + base = base === VOID ? this.base : base; + coverLeftText1 = coverLeftText1 === VOID ? this.coverLeftText1 : coverLeftText1; + coverLeftIcon1 = coverLeftIcon1 === VOID ? this.coverLeftIcon1 : coverLeftIcon1; + coverRightText = coverRightText === VOID ? this.coverRightText : coverRightText; + coverRightIcon = coverRightIcon === VOID ? this.coverRightIcon : coverRightIcon; + coverRightBackgroundColor = coverRightBackgroundColor === VOID ? this.coverRightBackgroundColor : coverRightBackgroundColor; + badge = badge === VOID ? this.badge : badge; + rcmdReasonStyle = rcmdReasonStyle === VOID ? this.rcmdReasonStyle : rcmdReasonStyle; + return this.copy_dlerw3_k$(base, coverLeftText1, coverLeftIcon1, coverRightText, coverRightIcon, coverRightBackgroundColor, badge, rcmdReasonStyle); + } + toString() { + return 'KOnePicV3(base=' + this.base + ', coverLeftText1=' + this.coverLeftText1 + ', coverLeftIcon1=' + this.coverLeftIcon1 + ', coverRightText=' + this.coverRightText + ', coverRightIcon=' + this.coverRightIcon + ', coverRightBackgroundColor=' + this.coverRightBackgroundColor + ', badge=' + this.badge + ', rcmdReasonStyle=' + this.rcmdReasonStyle + ')'; + } + hashCode() { + var result = this.base == null ? 0 : this.base.hashCode(); + result = imul(result, 31) + getStringHashCode(this.coverLeftText1) | 0; + result = imul(result, 31) + this.coverLeftIcon1 | 0; + result = imul(result, 31) + getStringHashCode(this.coverRightText) | 0; + result = imul(result, 31) + this.coverRightIcon | 0; + result = imul(result, 31) + getStringHashCode(this.coverRightBackgroundColor) | 0; + result = imul(result, 31) + getStringHashCode(this.badge) | 0; + result = imul(result, 31) + (this.rcmdReasonStyle == null ? 0 : this.rcmdReasonStyle.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KOnePicV3)) + return false; + var tmp0_other_with_cast = other instanceof KOnePicV3 ? other : THROW_CCE(); + if (!equals(this.base, tmp0_other_with_cast.base)) + return false; + if (!(this.coverLeftText1 === tmp0_other_with_cast.coverLeftText1)) + return false; + if (!(this.coverLeftIcon1 === tmp0_other_with_cast.coverLeftIcon1)) + return false; + if (!(this.coverRightText === tmp0_other_with_cast.coverRightText)) + return false; + if (!(this.coverRightIcon === tmp0_other_with_cast.coverRightIcon)) + return false; + if (!(this.coverRightBackgroundColor === tmp0_other_with_cast.coverRightBackgroundColor)) + return false; + if (!(this.badge === tmp0_other_with_cast.badge)) + return false; + if (!equals(this.rcmdReasonStyle, tmp0_other_with_cast.rcmdReasonStyle)) + return false; + return true; + } + static new_com_bapis_bilibili_app_card_v1_KOnePicV3_cfpjfr_k$(seen1, base, coverLeftText1, coverLeftIcon1, coverRightText, coverRightIcon, coverRightBackgroundColor, badge, rcmdReasonStyle, serializationConstructorMarker) { + Companion_instance_697; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_684().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.base = null; + else + $this.base = base; + if (0 === (seen1 & 2)) + $this.coverLeftText1 = ''; + else + $this.coverLeftText1 = coverLeftText1; + if (0 === (seen1 & 4)) + $this.coverLeftIcon1 = 0; + else + $this.coverLeftIcon1 = coverLeftIcon1; + if (0 === (seen1 & 8)) + $this.coverRightText = ''; + else + $this.coverRightText = coverRightText; + if (0 === (seen1 & 16)) + $this.coverRightIcon = 0; + else + $this.coverRightIcon = coverRightIcon; + if (0 === (seen1 & 32)) + $this.coverRightBackgroundColor = ''; + else + $this.coverRightBackgroundColor = coverRightBackgroundColor; + if (0 === (seen1 & 64)) + $this.badge = ''; + else + $this.badge = badge; + if (0 === (seen1 & 128)) + $this.rcmdReasonStyle = null; + else + $this.rcmdReasonStyle = rcmdReasonStyle; + return $this; + } + } + class Companion_698 { + constructor() { + this.targetPath = '/bilibili.app.card.v1.SmallCoverV7'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_685(); + } + } + class $serializer_685 { + constructor() { + $serializer_instance_685 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.card.v1.KSmallCoverV7', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('base', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('desc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_646()), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_646(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_646(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSmallCoverV7.new_com_bapis_bilibili_app_card_v1_KSmallCoverV7_ceknn5_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_kl0xxp_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.base == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_646(), value.base); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.desc === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.desc); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_kl0xxp_k$(encoder, value instanceof KSmallCoverV7 ? value : THROW_CCE()); + } + } + class KSmallCoverV7 { + constructor(base, desc) { + Companion_instance_698; + base = base === VOID ? null : base; + desc = desc === VOID ? '' : desc; + this.base = base; + this.desc = desc; + } + get_base_wojaxm_k$() { + return this.base; + } + get_desc_woknve_k$() { + return this.desc; + } + component1_7eebsc_k$() { + return this.base; + } + component2_7eebsb_k$() { + return this.desc; + } + copy_6y7j8o_k$(base, desc) { + return new KSmallCoverV7(base, desc); + } + copy(base, desc, $super) { + base = base === VOID ? this.base : base; + desc = desc === VOID ? this.desc : desc; + return this.copy_6y7j8o_k$(base, desc); + } + toString() { + return 'KSmallCoverV7(base=' + this.base + ', desc=' + this.desc + ')'; + } + hashCode() { + var result = this.base == null ? 0 : this.base.hashCode(); + result = imul(result, 31) + getStringHashCode(this.desc) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSmallCoverV7)) + return false; + var tmp0_other_with_cast = other instanceof KSmallCoverV7 ? other : THROW_CCE(); + if (!equals(this.base, tmp0_other_with_cast.base)) + return false; + if (!(this.desc === tmp0_other_with_cast.desc)) + return false; + return true; + } + static new_com_bapis_bilibili_app_card_v1_KSmallCoverV7_ceknn5_k$(seen1, base, desc, serializationConstructorMarker) { + Companion_instance_698; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_685().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.base = null; + else + $this.base = base; + if (0 === (seen1 & 2)) + $this.desc = ''; + else + $this.desc = desc; + return $this; + } + } + class Companion_699 { + constructor() { + this.targetPath = '/bilibili.app.card.v1.SmallCoverV9'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_686(); + } + } + class $serializer_686 { + constructor() { + $serializer_instance_686 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.card.v1.KSmallCoverV9', this, 12); + tmp0_serialDesc.addElement_5pzumi_k$('base', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('coverLeftText1', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('coverLeftIcon1', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('coverLeftText2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('coverLeftIcon2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('coverRightText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('coverRightIcon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('canPlay', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('rcmdReasonStyle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('up', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('leftCoverBadgeStyle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('leftBottomRcmdReasonStyle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_646()), StringSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), get_nullable($serializer_getInstance_662()), get_nullable($serializer_getInstance_664()), get_nullable($serializer_getInstance_662()), get_nullable($serializer_getInstance_662())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = 0; + var tmp7_local3 = null; + var tmp8_local4 = 0; + var tmp9_local5 = null; + var tmp10_local6 = 0; + var tmp11_local7 = 0; + var tmp12_local8 = null; + var tmp13_local9 = null; + var tmp14_local10 = null; + var tmp15_local11 = null; + var tmp16_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp16_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp16_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_646(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp16_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_662(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp16_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 9, $serializer_getInstance_664(), tmp13_local9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp16_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 10, $serializer_getInstance_662(), tmp14_local10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp16_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 11, $serializer_getInstance_662(), tmp15_local11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + } else + while (tmp1_flag) { + tmp2_index = tmp16_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp16_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_646(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp16_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_662(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp16_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 9, $serializer_getInstance_664(), tmp13_local9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp16_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 10, $serializer_getInstance_662(), tmp14_local10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp16_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 11, $serializer_getInstance_662(), tmp15_local11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp16_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSmallCoverV9.new_com_bapis_bilibili_app_card_v1_KSmallCoverV9_mtvsjd_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, null); + } + serialize_c5p5zf_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.base == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_646(), value.base); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.coverLeftText1 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.coverLeftText1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.coverLeftIcon1 === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.coverLeftIcon1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.coverLeftText2 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.coverLeftText2); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.coverLeftIcon2 === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 4, value.coverLeftIcon2); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.coverRightText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.coverRightText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.coverRightIcon === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 6, value.coverRightIcon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.canPlay === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 7, value.canPlay); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.rcmdReasonStyle == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 8, $serializer_getInstance_662(), value.rcmdReasonStyle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.up == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 9, $serializer_getInstance_664(), value.up); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.leftCoverBadgeStyle == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 10, $serializer_getInstance_662(), value.leftCoverBadgeStyle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.leftBottomRcmdReasonStyle == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 11, $serializer_getInstance_662(), value.leftBottomRcmdReasonStyle); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_c5p5zf_k$(encoder, value instanceof KSmallCoverV9 ? value : THROW_CCE()); + } + } + class KSmallCoverV9 { + constructor(base, coverLeftText1, coverLeftIcon1, coverLeftText2, coverLeftIcon2, coverRightText, coverRightIcon, canPlay, rcmdReasonStyle, up, leftCoverBadgeStyle, leftBottomRcmdReasonStyle) { + Companion_instance_699; + base = base === VOID ? null : base; + coverLeftText1 = coverLeftText1 === VOID ? '' : coverLeftText1; + coverLeftIcon1 = coverLeftIcon1 === VOID ? 0 : coverLeftIcon1; + coverLeftText2 = coverLeftText2 === VOID ? '' : coverLeftText2; + coverLeftIcon2 = coverLeftIcon2 === VOID ? 0 : coverLeftIcon2; + coverRightText = coverRightText === VOID ? '' : coverRightText; + coverRightIcon = coverRightIcon === VOID ? 0 : coverRightIcon; + canPlay = canPlay === VOID ? 0 : canPlay; + rcmdReasonStyle = rcmdReasonStyle === VOID ? null : rcmdReasonStyle; + up = up === VOID ? null : up; + leftCoverBadgeStyle = leftCoverBadgeStyle === VOID ? null : leftCoverBadgeStyle; + leftBottomRcmdReasonStyle = leftBottomRcmdReasonStyle === VOID ? null : leftBottomRcmdReasonStyle; + this.base = base; + this.coverLeftText1 = coverLeftText1; + this.coverLeftIcon1 = coverLeftIcon1; + this.coverLeftText2 = coverLeftText2; + this.coverLeftIcon2 = coverLeftIcon2; + this.coverRightText = coverRightText; + this.coverRightIcon = coverRightIcon; + this.canPlay = canPlay; + this.rcmdReasonStyle = rcmdReasonStyle; + this.up = up; + this.leftCoverBadgeStyle = leftCoverBadgeStyle; + this.leftBottomRcmdReasonStyle = leftBottomRcmdReasonStyle; + } + get_base_wojaxm_k$() { + return this.base; + } + get_coverLeftText1_ck8hkf_k$() { + return this.coverLeftText1; + } + get_coverLeftIcon1_ce5a8z_k$() { + return this.coverLeftIcon1; + } + get_coverLeftText2_ck8hkg_k$() { + return this.coverLeftText2; + } + get_coverLeftIcon2_ce5a90_k$() { + return this.coverLeftIcon2; + } + get_coverRightText_t0bat7_k$() { + return this.coverRightText; + } + get_coverRightIcon_t04893_k$() { + return this.coverRightIcon; + } + get_canPlay_acszln_k$() { + return this.canPlay; + } + get_rcmdReasonStyle_5yq4ak_k$() { + return this.rcmdReasonStyle; + } + get_up_kntnmk_k$() { + return this.up; + } + get_leftCoverBadgeStyle_l56f0r_k$() { + return this.leftCoverBadgeStyle; + } + get_leftBottomRcmdReasonStyle_i01xxm_k$() { + return this.leftBottomRcmdReasonStyle; + } + component1_7eebsc_k$() { + return this.base; + } + component2_7eebsb_k$() { + return this.coverLeftText1; + } + component3_7eebsa_k$() { + return this.coverLeftIcon1; + } + component4_7eebs9_k$() { + return this.coverLeftText2; + } + component5_7eebs8_k$() { + return this.coverLeftIcon2; + } + component6_7eebs7_k$() { + return this.coverRightText; + } + component7_7eebs6_k$() { + return this.coverRightIcon; + } + component8_7eebs5_k$() { + return this.canPlay; + } + component9_7eebs4_k$() { + return this.rcmdReasonStyle; + } + component10_gazzfo_k$() { + return this.up; + } + component11_gazzfn_k$() { + return this.leftCoverBadgeStyle; + } + component12_gazzfm_k$() { + return this.leftBottomRcmdReasonStyle; + } + copy_iw9yfg_k$(base, coverLeftText1, coverLeftIcon1, coverLeftText2, coverLeftIcon2, coverRightText, coverRightIcon, canPlay, rcmdReasonStyle, up, leftCoverBadgeStyle, leftBottomRcmdReasonStyle) { + return new KSmallCoverV9(base, coverLeftText1, coverLeftIcon1, coverLeftText2, coverLeftIcon2, coverRightText, coverRightIcon, canPlay, rcmdReasonStyle, up, leftCoverBadgeStyle, leftBottomRcmdReasonStyle); + } + copy(base, coverLeftText1, coverLeftIcon1, coverLeftText2, coverLeftIcon2, coverRightText, coverRightIcon, canPlay, rcmdReasonStyle, up, leftCoverBadgeStyle, leftBottomRcmdReasonStyle, $super) { + base = base === VOID ? this.base : base; + coverLeftText1 = coverLeftText1 === VOID ? this.coverLeftText1 : coverLeftText1; + coverLeftIcon1 = coverLeftIcon1 === VOID ? this.coverLeftIcon1 : coverLeftIcon1; + coverLeftText2 = coverLeftText2 === VOID ? this.coverLeftText2 : coverLeftText2; + coverLeftIcon2 = coverLeftIcon2 === VOID ? this.coverLeftIcon2 : coverLeftIcon2; + coverRightText = coverRightText === VOID ? this.coverRightText : coverRightText; + coverRightIcon = coverRightIcon === VOID ? this.coverRightIcon : coverRightIcon; + canPlay = canPlay === VOID ? this.canPlay : canPlay; + rcmdReasonStyle = rcmdReasonStyle === VOID ? this.rcmdReasonStyle : rcmdReasonStyle; + up = up === VOID ? this.up : up; + leftCoverBadgeStyle = leftCoverBadgeStyle === VOID ? this.leftCoverBadgeStyle : leftCoverBadgeStyle; + leftBottomRcmdReasonStyle = leftBottomRcmdReasonStyle === VOID ? this.leftBottomRcmdReasonStyle : leftBottomRcmdReasonStyle; + return this.copy_iw9yfg_k$(base, coverLeftText1, coverLeftIcon1, coverLeftText2, coverLeftIcon2, coverRightText, coverRightIcon, canPlay, rcmdReasonStyle, up, leftCoverBadgeStyle, leftBottomRcmdReasonStyle); + } + toString() { + return 'KSmallCoverV9(base=' + this.base + ', coverLeftText1=' + this.coverLeftText1 + ', coverLeftIcon1=' + this.coverLeftIcon1 + ', coverLeftText2=' + this.coverLeftText2 + ', coverLeftIcon2=' + this.coverLeftIcon2 + ', coverRightText=' + this.coverRightText + ', coverRightIcon=' + this.coverRightIcon + ', canPlay=' + this.canPlay + ', rcmdReasonStyle=' + this.rcmdReasonStyle + ', up=' + this.up + ', leftCoverBadgeStyle=' + this.leftCoverBadgeStyle + ', leftBottomRcmdReasonStyle=' + this.leftBottomRcmdReasonStyle + ')'; + } + hashCode() { + var result = this.base == null ? 0 : this.base.hashCode(); + result = imul(result, 31) + getStringHashCode(this.coverLeftText1) | 0; + result = imul(result, 31) + this.coverLeftIcon1 | 0; + result = imul(result, 31) + getStringHashCode(this.coverLeftText2) | 0; + result = imul(result, 31) + this.coverLeftIcon2 | 0; + result = imul(result, 31) + getStringHashCode(this.coverRightText) | 0; + result = imul(result, 31) + this.coverRightIcon | 0; + result = imul(result, 31) + this.canPlay | 0; + result = imul(result, 31) + (this.rcmdReasonStyle == null ? 0 : this.rcmdReasonStyle.hashCode()) | 0; + result = imul(result, 31) + (this.up == null ? 0 : this.up.hashCode()) | 0; + result = imul(result, 31) + (this.leftCoverBadgeStyle == null ? 0 : this.leftCoverBadgeStyle.hashCode()) | 0; + result = imul(result, 31) + (this.leftBottomRcmdReasonStyle == null ? 0 : this.leftBottomRcmdReasonStyle.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSmallCoverV9)) + return false; + var tmp0_other_with_cast = other instanceof KSmallCoverV9 ? other : THROW_CCE(); + if (!equals(this.base, tmp0_other_with_cast.base)) + return false; + if (!(this.coverLeftText1 === tmp0_other_with_cast.coverLeftText1)) + return false; + if (!(this.coverLeftIcon1 === tmp0_other_with_cast.coverLeftIcon1)) + return false; + if (!(this.coverLeftText2 === tmp0_other_with_cast.coverLeftText2)) + return false; + if (!(this.coverLeftIcon2 === tmp0_other_with_cast.coverLeftIcon2)) + return false; + if (!(this.coverRightText === tmp0_other_with_cast.coverRightText)) + return false; + if (!(this.coverRightIcon === tmp0_other_with_cast.coverRightIcon)) + return false; + if (!(this.canPlay === tmp0_other_with_cast.canPlay)) + return false; + if (!equals(this.rcmdReasonStyle, tmp0_other_with_cast.rcmdReasonStyle)) + return false; + if (!equals(this.up, tmp0_other_with_cast.up)) + return false; + if (!equals(this.leftCoverBadgeStyle, tmp0_other_with_cast.leftCoverBadgeStyle)) + return false; + if (!equals(this.leftBottomRcmdReasonStyle, tmp0_other_with_cast.leftBottomRcmdReasonStyle)) + return false; + return true; + } + static new_com_bapis_bilibili_app_card_v1_KSmallCoverV9_mtvsjd_k$(seen1, base, coverLeftText1, coverLeftIcon1, coverLeftText2, coverLeftIcon2, coverRightText, coverRightIcon, canPlay, rcmdReasonStyle, up, leftCoverBadgeStyle, leftBottomRcmdReasonStyle, serializationConstructorMarker) { + Companion_instance_699; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_686().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.base = null; + else + $this.base = base; + if (0 === (seen1 & 2)) + $this.coverLeftText1 = ''; + else + $this.coverLeftText1 = coverLeftText1; + if (0 === (seen1 & 4)) + $this.coverLeftIcon1 = 0; + else + $this.coverLeftIcon1 = coverLeftIcon1; + if (0 === (seen1 & 8)) + $this.coverLeftText2 = ''; + else + $this.coverLeftText2 = coverLeftText2; + if (0 === (seen1 & 16)) + $this.coverLeftIcon2 = 0; + else + $this.coverLeftIcon2 = coverLeftIcon2; + if (0 === (seen1 & 32)) + $this.coverRightText = ''; + else + $this.coverRightText = coverRightText; + if (0 === (seen1 & 64)) + $this.coverRightIcon = 0; + else + $this.coverRightIcon = coverRightIcon; + if (0 === (seen1 & 128)) + $this.canPlay = 0; + else + $this.canPlay = canPlay; + if (0 === (seen1 & 256)) + $this.rcmdReasonStyle = null; + else + $this.rcmdReasonStyle = rcmdReasonStyle; + if (0 === (seen1 & 512)) + $this.up = null; + else + $this.up = up; + if (0 === (seen1 & 1024)) + $this.leftCoverBadgeStyle = null; + else + $this.leftCoverBadgeStyle = leftCoverBadgeStyle; + if (0 === (seen1 & 2048)) + $this.leftBottomRcmdReasonStyle = null; + else + $this.leftBottomRcmdReasonStyle = leftBottomRcmdReasonStyle; + return $this; + } + } + class Companion_700 { + constructor() { + this.targetPath = '/bilibili.app.card.v1.SmallCoverConvergeV2'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_687(); + } + } + class $serializer_687 { + constructor() { + $serializer_instance_687 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.card.v1.KSmallCoverConvergeV2', this, 9); + tmp0_serialDesc.addElement_5pzumi_k$('base', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('coverLeftText1', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('coverLeftIcon1', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('coverLeftText2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('coverLeftIcon2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('coverRightText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('coverRightTopText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('rcmdReasonStyle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('rcmdReasonStyleV2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_646()), StringSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_662()), get_nullable($serializer_getInstance_662())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = 0; + var tmp7_local3 = null; + var tmp8_local4 = 0; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_local8 = null; + var tmp13_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp13_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_646(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp13_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp13_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_662(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_662(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + } else + while (tmp1_flag) { + tmp2_index = tmp13_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_646(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp13_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp13_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_662(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_662(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp13_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSmallCoverConvergeV2.new_com_bapis_bilibili_app_card_v1_KSmallCoverConvergeV2_fzh8yo_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, null); + } + serialize_imju7n_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.base == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_646(), value.base); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.coverLeftText1 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.coverLeftText1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.coverLeftIcon1 === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.coverLeftIcon1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.coverLeftText2 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.coverLeftText2); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.coverLeftIcon2 === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 4, value.coverLeftIcon2); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.coverRightText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.coverRightText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.coverRightTopText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.coverRightTopText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.rcmdReasonStyle == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 7, $serializer_getInstance_662(), value.rcmdReasonStyle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.rcmdReasonStyleV2 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 8, $serializer_getInstance_662(), value.rcmdReasonStyleV2); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_imju7n_k$(encoder, value instanceof KSmallCoverConvergeV2 ? value : THROW_CCE()); + } + } + class KSmallCoverConvergeV2 { + constructor(base, coverLeftText1, coverLeftIcon1, coverLeftText2, coverLeftIcon2, coverRightText, coverRightTopText, rcmdReasonStyle, rcmdReasonStyleV2) { + Companion_instance_700; + base = base === VOID ? null : base; + coverLeftText1 = coverLeftText1 === VOID ? '' : coverLeftText1; + coverLeftIcon1 = coverLeftIcon1 === VOID ? 0 : coverLeftIcon1; + coverLeftText2 = coverLeftText2 === VOID ? '' : coverLeftText2; + coverLeftIcon2 = coverLeftIcon2 === VOID ? 0 : coverLeftIcon2; + coverRightText = coverRightText === VOID ? '' : coverRightText; + coverRightTopText = coverRightTopText === VOID ? '' : coverRightTopText; + rcmdReasonStyle = rcmdReasonStyle === VOID ? null : rcmdReasonStyle; + rcmdReasonStyleV2 = rcmdReasonStyleV2 === VOID ? null : rcmdReasonStyleV2; + this.base = base; + this.coverLeftText1 = coverLeftText1; + this.coverLeftIcon1 = coverLeftIcon1; + this.coverLeftText2 = coverLeftText2; + this.coverLeftIcon2 = coverLeftIcon2; + this.coverRightText = coverRightText; + this.coverRightTopText = coverRightTopText; + this.rcmdReasonStyle = rcmdReasonStyle; + this.rcmdReasonStyleV2 = rcmdReasonStyleV2; + } + get_base_wojaxm_k$() { + return this.base; + } + get_coverLeftText1_ck8hkf_k$() { + return this.coverLeftText1; + } + get_coverLeftIcon1_ce5a8z_k$() { + return this.coverLeftIcon1; + } + get_coverLeftText2_ck8hkg_k$() { + return this.coverLeftText2; + } + get_coverLeftIcon2_ce5a90_k$() { + return this.coverLeftIcon2; + } + get_coverRightText_t0bat7_k$() { + return this.coverRightText; + } + get_coverRightTopText_tokmwc_k$() { + return this.coverRightTopText; + } + get_rcmdReasonStyle_5yq4ak_k$() { + return this.rcmdReasonStyle; + } + get_rcmdReasonStyleV2_livs4o_k$() { + return this.rcmdReasonStyleV2; + } + component1_7eebsc_k$() { + return this.base; + } + component2_7eebsb_k$() { + return this.coverLeftText1; + } + component3_7eebsa_k$() { + return this.coverLeftIcon1; + } + component4_7eebs9_k$() { + return this.coverLeftText2; + } + component5_7eebs8_k$() { + return this.coverLeftIcon2; + } + component6_7eebs7_k$() { + return this.coverRightText; + } + component7_7eebs6_k$() { + return this.coverRightTopText; + } + component8_7eebs5_k$() { + return this.rcmdReasonStyle; + } + component9_7eebs4_k$() { + return this.rcmdReasonStyleV2; + } + copy_i02qx0_k$(base, coverLeftText1, coverLeftIcon1, coverLeftText2, coverLeftIcon2, coverRightText, coverRightTopText, rcmdReasonStyle, rcmdReasonStyleV2) { + return new KSmallCoverConvergeV2(base, coverLeftText1, coverLeftIcon1, coverLeftText2, coverLeftIcon2, coverRightText, coverRightTopText, rcmdReasonStyle, rcmdReasonStyleV2); + } + copy(base, coverLeftText1, coverLeftIcon1, coverLeftText2, coverLeftIcon2, coverRightText, coverRightTopText, rcmdReasonStyle, rcmdReasonStyleV2, $super) { + base = base === VOID ? this.base : base; + coverLeftText1 = coverLeftText1 === VOID ? this.coverLeftText1 : coverLeftText1; + coverLeftIcon1 = coverLeftIcon1 === VOID ? this.coverLeftIcon1 : coverLeftIcon1; + coverLeftText2 = coverLeftText2 === VOID ? this.coverLeftText2 : coverLeftText2; + coverLeftIcon2 = coverLeftIcon2 === VOID ? this.coverLeftIcon2 : coverLeftIcon2; + coverRightText = coverRightText === VOID ? this.coverRightText : coverRightText; + coverRightTopText = coverRightTopText === VOID ? this.coverRightTopText : coverRightTopText; + rcmdReasonStyle = rcmdReasonStyle === VOID ? this.rcmdReasonStyle : rcmdReasonStyle; + rcmdReasonStyleV2 = rcmdReasonStyleV2 === VOID ? this.rcmdReasonStyleV2 : rcmdReasonStyleV2; + return this.copy_i02qx0_k$(base, coverLeftText1, coverLeftIcon1, coverLeftText2, coverLeftIcon2, coverRightText, coverRightTopText, rcmdReasonStyle, rcmdReasonStyleV2); + } + toString() { + return 'KSmallCoverConvergeV2(base=' + this.base + ', coverLeftText1=' + this.coverLeftText1 + ', coverLeftIcon1=' + this.coverLeftIcon1 + ', coverLeftText2=' + this.coverLeftText2 + ', coverLeftIcon2=' + this.coverLeftIcon2 + ', coverRightText=' + this.coverRightText + ', coverRightTopText=' + this.coverRightTopText + ', rcmdReasonStyle=' + this.rcmdReasonStyle + ', rcmdReasonStyleV2=' + this.rcmdReasonStyleV2 + ')'; + } + hashCode() { + var result = this.base == null ? 0 : this.base.hashCode(); + result = imul(result, 31) + getStringHashCode(this.coverLeftText1) | 0; + result = imul(result, 31) + this.coverLeftIcon1 | 0; + result = imul(result, 31) + getStringHashCode(this.coverLeftText2) | 0; + result = imul(result, 31) + this.coverLeftIcon2 | 0; + result = imul(result, 31) + getStringHashCode(this.coverRightText) | 0; + result = imul(result, 31) + getStringHashCode(this.coverRightTopText) | 0; + result = imul(result, 31) + (this.rcmdReasonStyle == null ? 0 : this.rcmdReasonStyle.hashCode()) | 0; + result = imul(result, 31) + (this.rcmdReasonStyleV2 == null ? 0 : this.rcmdReasonStyleV2.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSmallCoverConvergeV2)) + return false; + var tmp0_other_with_cast = other instanceof KSmallCoverConvergeV2 ? other : THROW_CCE(); + if (!equals(this.base, tmp0_other_with_cast.base)) + return false; + if (!(this.coverLeftText1 === tmp0_other_with_cast.coverLeftText1)) + return false; + if (!(this.coverLeftIcon1 === tmp0_other_with_cast.coverLeftIcon1)) + return false; + if (!(this.coverLeftText2 === tmp0_other_with_cast.coverLeftText2)) + return false; + if (!(this.coverLeftIcon2 === tmp0_other_with_cast.coverLeftIcon2)) + return false; + if (!(this.coverRightText === tmp0_other_with_cast.coverRightText)) + return false; + if (!(this.coverRightTopText === tmp0_other_with_cast.coverRightTopText)) + return false; + if (!equals(this.rcmdReasonStyle, tmp0_other_with_cast.rcmdReasonStyle)) + return false; + if (!equals(this.rcmdReasonStyleV2, tmp0_other_with_cast.rcmdReasonStyleV2)) + return false; + return true; + } + static new_com_bapis_bilibili_app_card_v1_KSmallCoverConvergeV2_fzh8yo_k$(seen1, base, coverLeftText1, coverLeftIcon1, coverLeftText2, coverLeftIcon2, coverRightText, coverRightTopText, rcmdReasonStyle, rcmdReasonStyleV2, serializationConstructorMarker) { + Companion_instance_700; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_687().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.base = null; + else + $this.base = base; + if (0 === (seen1 & 2)) + $this.coverLeftText1 = ''; + else + $this.coverLeftText1 = coverLeftText1; + if (0 === (seen1 & 4)) + $this.coverLeftIcon1 = 0; + else + $this.coverLeftIcon1 = coverLeftIcon1; + if (0 === (seen1 & 8)) + $this.coverLeftText2 = ''; + else + $this.coverLeftText2 = coverLeftText2; + if (0 === (seen1 & 16)) + $this.coverLeftIcon2 = 0; + else + $this.coverLeftIcon2 = coverLeftIcon2; + if (0 === (seen1 & 32)) + $this.coverRightText = ''; + else + $this.coverRightText = coverRightText; + if (0 === (seen1 & 64)) + $this.coverRightTopText = ''; + else + $this.coverRightTopText = coverRightTopText; + if (0 === (seen1 & 128)) + $this.rcmdReasonStyle = null; + else + $this.rcmdReasonStyle = rcmdReasonStyle; + if (0 === (seen1 & 256)) + $this.rcmdReasonStyleV2 = null; + else + $this.rcmdReasonStyleV2 = rcmdReasonStyleV2; + return $this; + } + } + class Companion_701 { + constructor() { + this.targetPath = '/bilibili.app.card.v1.SmallChannelSpecial'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_688(); + } + } + class $serializer_688 { + constructor() { + $serializer_instance_688 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.card.v1.KSmallChannelSpecial', this, 6); + tmp0_serialDesc.addElement_5pzumi_k$('base', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('bgCover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('desc1', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('desc2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('badge', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('rcmdReasonStyle2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_646()), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_662())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp10_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_646(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_662(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + } else + while (tmp1_flag) { + tmp2_index = tmp10_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_646(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_662(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp10_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSmallChannelSpecial.new_com_bapis_bilibili_app_card_v1_KSmallChannelSpecial_79sgq9_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); + } + serialize_2f71zf_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.base == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_646(), value.base); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.bgCover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.bgCover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.desc1 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.desc1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.desc2 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.desc2); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.badge === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.badge); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.rcmdReasonStyle2 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 5, $serializer_getInstance_662(), value.rcmdReasonStyle2); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_2f71zf_k$(encoder, value instanceof KSmallChannelSpecial ? value : THROW_CCE()); + } + } + class KSmallChannelSpecial { + constructor(base, bgCover, desc1, desc2, badge, rcmdReasonStyle2) { + Companion_instance_701; + base = base === VOID ? null : base; + bgCover = bgCover === VOID ? '' : bgCover; + desc1 = desc1 === VOID ? '' : desc1; + desc2 = desc2 === VOID ? '' : desc2; + badge = badge === VOID ? '' : badge; + rcmdReasonStyle2 = rcmdReasonStyle2 === VOID ? null : rcmdReasonStyle2; + this.base = base; + this.bgCover = bgCover; + this.desc1 = desc1; + this.desc2 = desc2; + this.badge = badge; + this.rcmdReasonStyle2 = rcmdReasonStyle2; + } + get_base_wojaxm_k$() { + return this.base; + } + get_bgCover_24epo7_k$() { + return this.bgCover; + } + get_desc1_iq7sev_k$() { + return this.desc1; + } + get_desc2_iq7sew_k$() { + return this.desc2; + } + get_badge_ip1cai_k$() { + return this.badge; + } + get_rcmdReasonStyle2_s6ugsq_k$() { + return this.rcmdReasonStyle2; + } + component1_7eebsc_k$() { + return this.base; + } + component2_7eebsb_k$() { + return this.bgCover; + } + component3_7eebsa_k$() { + return this.desc1; + } + component4_7eebs9_k$() { + return this.desc2; + } + component5_7eebs8_k$() { + return this.badge; + } + component6_7eebs7_k$() { + return this.rcmdReasonStyle2; + } + copy_cbbw7l_k$(base, bgCover, desc1, desc2, badge, rcmdReasonStyle2) { + return new KSmallChannelSpecial(base, bgCover, desc1, desc2, badge, rcmdReasonStyle2); + } + copy(base, bgCover, desc1, desc2, badge, rcmdReasonStyle2, $super) { + base = base === VOID ? this.base : base; + bgCover = bgCover === VOID ? this.bgCover : bgCover; + desc1 = desc1 === VOID ? this.desc1 : desc1; + desc2 = desc2 === VOID ? this.desc2 : desc2; + badge = badge === VOID ? this.badge : badge; + rcmdReasonStyle2 = rcmdReasonStyle2 === VOID ? this.rcmdReasonStyle2 : rcmdReasonStyle2; + return this.copy_cbbw7l_k$(base, bgCover, desc1, desc2, badge, rcmdReasonStyle2); + } + toString() { + return 'KSmallChannelSpecial(base=' + this.base + ', bgCover=' + this.bgCover + ', desc1=' + this.desc1 + ', desc2=' + this.desc2 + ', badge=' + this.badge + ', rcmdReasonStyle2=' + this.rcmdReasonStyle2 + ')'; + } + hashCode() { + var result = this.base == null ? 0 : this.base.hashCode(); + result = imul(result, 31) + getStringHashCode(this.bgCover) | 0; + result = imul(result, 31) + getStringHashCode(this.desc1) | 0; + result = imul(result, 31) + getStringHashCode(this.desc2) | 0; + result = imul(result, 31) + getStringHashCode(this.badge) | 0; + result = imul(result, 31) + (this.rcmdReasonStyle2 == null ? 0 : this.rcmdReasonStyle2.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSmallChannelSpecial)) + return false; + var tmp0_other_with_cast = other instanceof KSmallChannelSpecial ? other : THROW_CCE(); + if (!equals(this.base, tmp0_other_with_cast.base)) + return false; + if (!(this.bgCover === tmp0_other_with_cast.bgCover)) + return false; + if (!(this.desc1 === tmp0_other_with_cast.desc1)) + return false; + if (!(this.desc2 === tmp0_other_with_cast.desc2)) + return false; + if (!(this.badge === tmp0_other_with_cast.badge)) + return false; + if (!equals(this.rcmdReasonStyle2, tmp0_other_with_cast.rcmdReasonStyle2)) + return false; + return true; + } + static new_com_bapis_bilibili_app_card_v1_KSmallChannelSpecial_79sgq9_k$(seen1, base, bgCover, desc1, desc2, badge, rcmdReasonStyle2, serializationConstructorMarker) { + Companion_instance_701; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_688().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.base = null; + else + $this.base = base; + if (0 === (seen1 & 2)) + $this.bgCover = ''; + else + $this.bgCover = bgCover; + if (0 === (seen1 & 4)) + $this.desc1 = ''; + else + $this.desc1 = desc1; + if (0 === (seen1 & 8)) + $this.desc2 = ''; + else + $this.desc2 = desc2; + if (0 === (seen1 & 16)) + $this.badge = ''; + else + $this.badge = badge; + if (0 === (seen1 & 32)) + $this.rcmdReasonStyle2 = null; + else + $this.rcmdReasonStyle2 = rcmdReasonStyle2; + return $this; + } + } + class Companion_702 { + constructor() { + this.targetPath = '/bilibili.app.card.v1.SmallCoverV5Ad'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_689(); + } + } + class $serializer_689 { + constructor() { + $serializer_instance_689 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.card.v1.KSmallCoverV5Ad', this, 14); + tmp0_serialDesc.addElement_5pzumi_k$('base', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('coverGif', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('up', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('coverRightText1', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('rightDesc1', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('rightDesc2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('rcmdReasonStyle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('hotwordEntrance', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('cornerMarkStyle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('rightIcon1', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('rightIcon2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('leftCornerMarkStyle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + tmp0_serialDesc.addElement_5pzumi_k$('coverRightTextContentDescription', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(13)); + tmp0_serialDesc.addElement_5pzumi_k$('rightDesc1ContentDescription', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(14)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_646()), StringSerializer_getInstance(), get_nullable($serializer_getInstance_664()), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_662()), get_nullable($serializer_getInstance_691()), get_nullable($serializer_getInstance_662()), IntSerializer_getInstance(), IntSerializer_getInstance(), get_nullable($serializer_getInstance_662()), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_local8 = null; + var tmp13_local9 = 0; + var tmp14_local10 = 0; + var tmp15_local11 = null; + var tmp16_local12 = null; + var tmp17_local13 = null; + var tmp18_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp18_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_646(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_664(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_662(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_691(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_662(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp18_input.decodeIntElement_941u6a_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp18_input.decodeIntElement_941u6a_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 11, $serializer_getInstance_662(), tmp15_local11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + tmp16_local12 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + tmp17_local13 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + } else + while (tmp1_flag) { + tmp2_index = tmp18_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_646(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_664(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_662(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_691(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_662(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp18_input.decodeIntElement_941u6a_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp18_input.decodeIntElement_941u6a_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 11, $serializer_getInstance_662(), tmp15_local11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + case 12: + tmp16_local12 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + break; + case 13: + tmp17_local13 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp18_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSmallCoverV5Ad_0.new_com_bapis_bilibili_app_card_v1_KSmallCoverV5Ad_i681bm_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, null); + } + serialize_qxwm3w_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.base == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_646(), value.base); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.coverGif === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.coverGif); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.up == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_664(), value.up); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.coverRightText1 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.coverRightText1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.rightDesc1 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.rightDesc1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.rightDesc2 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.rightDesc2); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.rcmdReasonStyle == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 6, $serializer_getInstance_662(), value.rcmdReasonStyle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.hotwordEntrance == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 7, $serializer_getInstance_691(), value.hotwordEntrance); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.cornerMarkStyle == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 8, $serializer_getInstance_662(), value.cornerMarkStyle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.rightIcon1 === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 9, value.rightIcon1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.rightIcon2 === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 10, value.rightIcon2); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.leftCornerMarkStyle == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 11, $serializer_getInstance_662(), value.leftCornerMarkStyle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !(value.coverRightTextContentDescription === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 12, value.coverRightTextContentDescription); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 13) ? true : !(value.rightDesc1ContentDescription === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 13, value.rightDesc1ContentDescription); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_qxwm3w_k$(encoder, value instanceof KSmallCoverV5Ad_0 ? value : THROW_CCE()); + } + } + class KSmallCoverV5Ad_0 { + constructor(base, coverGif, up, coverRightText1, rightDesc1, rightDesc2, rcmdReasonStyle, hotwordEntrance, cornerMarkStyle, rightIcon1, rightIcon2, leftCornerMarkStyle, coverRightTextContentDescription, rightDesc1ContentDescription) { + Companion_instance_702; + base = base === VOID ? null : base; + coverGif = coverGif === VOID ? '' : coverGif; + up = up === VOID ? null : up; + coverRightText1 = coverRightText1 === VOID ? '' : coverRightText1; + rightDesc1 = rightDesc1 === VOID ? '' : rightDesc1; + rightDesc2 = rightDesc2 === VOID ? '' : rightDesc2; + rcmdReasonStyle = rcmdReasonStyle === VOID ? null : rcmdReasonStyle; + hotwordEntrance = hotwordEntrance === VOID ? null : hotwordEntrance; + cornerMarkStyle = cornerMarkStyle === VOID ? null : cornerMarkStyle; + rightIcon1 = rightIcon1 === VOID ? 0 : rightIcon1; + rightIcon2 = rightIcon2 === VOID ? 0 : rightIcon2; + leftCornerMarkStyle = leftCornerMarkStyle === VOID ? null : leftCornerMarkStyle; + coverRightTextContentDescription = coverRightTextContentDescription === VOID ? '' : coverRightTextContentDescription; + rightDesc1ContentDescription = rightDesc1ContentDescription === VOID ? '' : rightDesc1ContentDescription; + this.base = base; + this.coverGif = coverGif; + this.up = up; + this.coverRightText1 = coverRightText1; + this.rightDesc1 = rightDesc1; + this.rightDesc2 = rightDesc2; + this.rcmdReasonStyle = rcmdReasonStyle; + this.hotwordEntrance = hotwordEntrance; + this.cornerMarkStyle = cornerMarkStyle; + this.rightIcon1 = rightIcon1; + this.rightIcon2 = rightIcon2; + this.leftCornerMarkStyle = leftCornerMarkStyle; + this.coverRightTextContentDescription = coverRightTextContentDescription; + this.rightDesc1ContentDescription = rightDesc1ContentDescription; + } + get_base_wojaxm_k$() { + return this.base; + } + get_coverGif_xeq6vq_k$() { + return this.coverGif; + } + get_up_kntnmk_k$() { + return this.up; + } + get_coverRightText1_o4qei2_k$() { + return this.coverRightText1; + } + get_rightDesc1_rhl4lp_k$() { + return this.rightDesc1; + } + get_rightDesc2_rhl4lq_k$() { + return this.rightDesc2; + } + get_rcmdReasonStyle_5yq4ak_k$() { + return this.rcmdReasonStyle; + } + get_hotwordEntrance_v3ioxw_k$() { + return this.hotwordEntrance; + } + get_cornerMarkStyle_x49uje_k$() { + return this.cornerMarkStyle; + } + get_rightIcon1_rkaqw5_k$() { + return this.rightIcon1; + } + get_rightIcon2_rkaqw6_k$() { + return this.rightIcon2; + } + get_leftCornerMarkStyle_2ywf3_k$() { + return this.leftCornerMarkStyle; + } + get_coverRightTextContentDescription_pt6dlu_k$() { + return this.coverRightTextContentDescription; + } + get_rightDesc1ContentDescription_tzdxw0_k$() { + return this.rightDesc1ContentDescription; + } + component1_7eebsc_k$() { + return this.base; + } + component2_7eebsb_k$() { + return this.coverGif; + } + component3_7eebsa_k$() { + return this.up; + } + component4_7eebs9_k$() { + return this.coverRightText1; + } + component5_7eebs8_k$() { + return this.rightDesc1; + } + component6_7eebs7_k$() { + return this.rightDesc2; + } + component7_7eebs6_k$() { + return this.rcmdReasonStyle; + } + component8_7eebs5_k$() { + return this.hotwordEntrance; + } + component9_7eebs4_k$() { + return this.cornerMarkStyle; + } + component10_gazzfo_k$() { + return this.rightIcon1; + } + component11_gazzfn_k$() { + return this.rightIcon2; + } + component12_gazzfm_k$() { + return this.leftCornerMarkStyle; + } + component13_gazzfl_k$() { + return this.coverRightTextContentDescription; + } + component14_gazzfk_k$() { + return this.rightDesc1ContentDescription; + } + copy_tjldbn_k$(base, coverGif, up, coverRightText1, rightDesc1, rightDesc2, rcmdReasonStyle, hotwordEntrance, cornerMarkStyle, rightIcon1, rightIcon2, leftCornerMarkStyle, coverRightTextContentDescription, rightDesc1ContentDescription) { + return new KSmallCoverV5Ad_0(base, coverGif, up, coverRightText1, rightDesc1, rightDesc2, rcmdReasonStyle, hotwordEntrance, cornerMarkStyle, rightIcon1, rightIcon2, leftCornerMarkStyle, coverRightTextContentDescription, rightDesc1ContentDescription); + } + copy(base, coverGif, up, coverRightText1, rightDesc1, rightDesc2, rcmdReasonStyle, hotwordEntrance, cornerMarkStyle, rightIcon1, rightIcon2, leftCornerMarkStyle, coverRightTextContentDescription, rightDesc1ContentDescription, $super) { + base = base === VOID ? this.base : base; + coverGif = coverGif === VOID ? this.coverGif : coverGif; + up = up === VOID ? this.up : up; + coverRightText1 = coverRightText1 === VOID ? this.coverRightText1 : coverRightText1; + rightDesc1 = rightDesc1 === VOID ? this.rightDesc1 : rightDesc1; + rightDesc2 = rightDesc2 === VOID ? this.rightDesc2 : rightDesc2; + rcmdReasonStyle = rcmdReasonStyle === VOID ? this.rcmdReasonStyle : rcmdReasonStyle; + hotwordEntrance = hotwordEntrance === VOID ? this.hotwordEntrance : hotwordEntrance; + cornerMarkStyle = cornerMarkStyle === VOID ? this.cornerMarkStyle : cornerMarkStyle; + rightIcon1 = rightIcon1 === VOID ? this.rightIcon1 : rightIcon1; + rightIcon2 = rightIcon2 === VOID ? this.rightIcon2 : rightIcon2; + leftCornerMarkStyle = leftCornerMarkStyle === VOID ? this.leftCornerMarkStyle : leftCornerMarkStyle; + coverRightTextContentDescription = coverRightTextContentDescription === VOID ? this.coverRightTextContentDescription : coverRightTextContentDescription; + rightDesc1ContentDescription = rightDesc1ContentDescription === VOID ? this.rightDesc1ContentDescription : rightDesc1ContentDescription; + return this.copy_tjldbn_k$(base, coverGif, up, coverRightText1, rightDesc1, rightDesc2, rcmdReasonStyle, hotwordEntrance, cornerMarkStyle, rightIcon1, rightIcon2, leftCornerMarkStyle, coverRightTextContentDescription, rightDesc1ContentDescription); + } + toString() { + return 'KSmallCoverV5Ad(base=' + this.base + ', coverGif=' + this.coverGif + ', up=' + this.up + ', coverRightText1=' + this.coverRightText1 + ', rightDesc1=' + this.rightDesc1 + ', rightDesc2=' + this.rightDesc2 + ', rcmdReasonStyle=' + this.rcmdReasonStyle + ', hotwordEntrance=' + this.hotwordEntrance + ', cornerMarkStyle=' + this.cornerMarkStyle + ', rightIcon1=' + this.rightIcon1 + ', rightIcon2=' + this.rightIcon2 + ', leftCornerMarkStyle=' + this.leftCornerMarkStyle + ', coverRightTextContentDescription=' + this.coverRightTextContentDescription + ', rightDesc1ContentDescription=' + this.rightDesc1ContentDescription + ')'; + } + hashCode() { + var result = this.base == null ? 0 : this.base.hashCode(); + result = imul(result, 31) + getStringHashCode(this.coverGif) | 0; + result = imul(result, 31) + (this.up == null ? 0 : this.up.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.coverRightText1) | 0; + result = imul(result, 31) + getStringHashCode(this.rightDesc1) | 0; + result = imul(result, 31) + getStringHashCode(this.rightDesc2) | 0; + result = imul(result, 31) + (this.rcmdReasonStyle == null ? 0 : this.rcmdReasonStyle.hashCode()) | 0; + result = imul(result, 31) + (this.hotwordEntrance == null ? 0 : this.hotwordEntrance.hashCode()) | 0; + result = imul(result, 31) + (this.cornerMarkStyle == null ? 0 : this.cornerMarkStyle.hashCode()) | 0; + result = imul(result, 31) + this.rightIcon1 | 0; + result = imul(result, 31) + this.rightIcon2 | 0; + result = imul(result, 31) + (this.leftCornerMarkStyle == null ? 0 : this.leftCornerMarkStyle.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.coverRightTextContentDescription) | 0; + result = imul(result, 31) + getStringHashCode(this.rightDesc1ContentDescription) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSmallCoverV5Ad_0)) + return false; + var tmp0_other_with_cast = other instanceof KSmallCoverV5Ad_0 ? other : THROW_CCE(); + if (!equals(this.base, tmp0_other_with_cast.base)) + return false; + if (!(this.coverGif === tmp0_other_with_cast.coverGif)) + return false; + if (!equals(this.up, tmp0_other_with_cast.up)) + return false; + if (!(this.coverRightText1 === tmp0_other_with_cast.coverRightText1)) + return false; + if (!(this.rightDesc1 === tmp0_other_with_cast.rightDesc1)) + return false; + if (!(this.rightDesc2 === tmp0_other_with_cast.rightDesc2)) + return false; + if (!equals(this.rcmdReasonStyle, tmp0_other_with_cast.rcmdReasonStyle)) + return false; + if (!equals(this.hotwordEntrance, tmp0_other_with_cast.hotwordEntrance)) + return false; + if (!equals(this.cornerMarkStyle, tmp0_other_with_cast.cornerMarkStyle)) + return false; + if (!(this.rightIcon1 === tmp0_other_with_cast.rightIcon1)) + return false; + if (!(this.rightIcon2 === tmp0_other_with_cast.rightIcon2)) + return false; + if (!equals(this.leftCornerMarkStyle, tmp0_other_with_cast.leftCornerMarkStyle)) + return false; + if (!(this.coverRightTextContentDescription === tmp0_other_with_cast.coverRightTextContentDescription)) + return false; + if (!(this.rightDesc1ContentDescription === tmp0_other_with_cast.rightDesc1ContentDescription)) + return false; + return true; + } + static new_com_bapis_bilibili_app_card_v1_KSmallCoverV5Ad_i681bm_k$(seen1, base, coverGif, up, coverRightText1, rightDesc1, rightDesc2, rcmdReasonStyle, hotwordEntrance, cornerMarkStyle, rightIcon1, rightIcon2, leftCornerMarkStyle, coverRightTextContentDescription, rightDesc1ContentDescription, serializationConstructorMarker) { + Companion_instance_702; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_689().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.base = null; + else + $this.base = base; + if (0 === (seen1 & 2)) + $this.coverGif = ''; + else + $this.coverGif = coverGif; + if (0 === (seen1 & 4)) + $this.up = null; + else + $this.up = up; + if (0 === (seen1 & 8)) + $this.coverRightText1 = ''; + else + $this.coverRightText1 = coverRightText1; + if (0 === (seen1 & 16)) + $this.rightDesc1 = ''; + else + $this.rightDesc1 = rightDesc1; + if (0 === (seen1 & 32)) + $this.rightDesc2 = ''; + else + $this.rightDesc2 = rightDesc2; + if (0 === (seen1 & 64)) + $this.rcmdReasonStyle = null; + else + $this.rcmdReasonStyle = rcmdReasonStyle; + if (0 === (seen1 & 128)) + $this.hotwordEntrance = null; + else + $this.hotwordEntrance = hotwordEntrance; + if (0 === (seen1 & 256)) + $this.cornerMarkStyle = null; + else + $this.cornerMarkStyle = cornerMarkStyle; + if (0 === (seen1 & 512)) + $this.rightIcon1 = 0; + else + $this.rightIcon1 = rightIcon1; + if (0 === (seen1 & 1024)) + $this.rightIcon2 = 0; + else + $this.rightIcon2 = rightIcon2; + if (0 === (seen1 & 2048)) + $this.leftCornerMarkStyle = null; + else + $this.leftCornerMarkStyle = leftCornerMarkStyle; + if (0 === (seen1 & 4096)) + $this.coverRightTextContentDescription = ''; + else + $this.coverRightTextContentDescription = coverRightTextContentDescription; + if (0 === (seen1 & 8192)) + $this.rightDesc1ContentDescription = ''; + else + $this.rightDesc1ContentDescription = rightDesc1ContentDescription; + return $this; + } + } + class Companion_703 { + constructor() { + this.targetPath = '/bilibili.app.card.v1.SmallCoverV5'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_690(); + } + } + class $serializer_690 { + constructor() { + $serializer_instance_690 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.card.v1.KSmallCoverV5', this, 14); + tmp0_serialDesc.addElement_5pzumi_k$('base', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('coverGif', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('up', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('coverRightText1', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('rightDesc1', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('rightDesc2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('rcmdReasonStyle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('hotwordEntrance', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('cornerMarkStyle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('rightIcon1', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('rightIcon2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('leftCornerMarkStyle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + tmp0_serialDesc.addElement_5pzumi_k$('coverRightTextContentDescription', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(13)); + tmp0_serialDesc.addElement_5pzumi_k$('rightDesc1ContentDescription', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(14)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_646()), StringSerializer_getInstance(), get_nullable($serializer_getInstance_664()), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_662()), get_nullable($serializer_getInstance_691()), get_nullable($serializer_getInstance_662()), IntSerializer_getInstance(), IntSerializer_getInstance(), get_nullable($serializer_getInstance_662()), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_local8 = null; + var tmp13_local9 = 0; + var tmp14_local10 = 0; + var tmp15_local11 = null; + var tmp16_local12 = null; + var tmp17_local13 = null; + var tmp18_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp18_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_646(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_664(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_662(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_691(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_662(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp18_input.decodeIntElement_941u6a_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp18_input.decodeIntElement_941u6a_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 11, $serializer_getInstance_662(), tmp15_local11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + tmp16_local12 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + tmp17_local13 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + } else + while (tmp1_flag) { + tmp2_index = tmp18_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_646(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_664(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_662(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_691(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_662(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp18_input.decodeIntElement_941u6a_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp18_input.decodeIntElement_941u6a_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 11, $serializer_getInstance_662(), tmp15_local11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + case 12: + tmp16_local12 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + break; + case 13: + tmp17_local13 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp18_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSmallCoverV5_0.new_com_bapis_bilibili_app_card_v1_KSmallCoverV5_xxcsq3_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, null); + } + serialize_t0cpvz_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.base == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_646(), value.base); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.coverGif === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.coverGif); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.up == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_664(), value.up); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.coverRightText1 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.coverRightText1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.rightDesc1 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.rightDesc1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.rightDesc2 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.rightDesc2); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.rcmdReasonStyle == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 6, $serializer_getInstance_662(), value.rcmdReasonStyle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.hotwordEntrance == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 7, $serializer_getInstance_691(), value.hotwordEntrance); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.cornerMarkStyle == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 8, $serializer_getInstance_662(), value.cornerMarkStyle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.rightIcon1 === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 9, value.rightIcon1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.rightIcon2 === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 10, value.rightIcon2); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.leftCornerMarkStyle == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 11, $serializer_getInstance_662(), value.leftCornerMarkStyle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !(value.coverRightTextContentDescription === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 12, value.coverRightTextContentDescription); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 13) ? true : !(value.rightDesc1ContentDescription === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 13, value.rightDesc1ContentDescription); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_t0cpvz_k$(encoder, value instanceof KSmallCoverV5_0 ? value : THROW_CCE()); + } + } + class KSmallCoverV5_0 { + constructor(base, coverGif, up, coverRightText1, rightDesc1, rightDesc2, rcmdReasonStyle, hotwordEntrance, cornerMarkStyle, rightIcon1, rightIcon2, leftCornerMarkStyle, coverRightTextContentDescription, rightDesc1ContentDescription) { + Companion_instance_703; + base = base === VOID ? null : base; + coverGif = coverGif === VOID ? '' : coverGif; + up = up === VOID ? null : up; + coverRightText1 = coverRightText1 === VOID ? '' : coverRightText1; + rightDesc1 = rightDesc1 === VOID ? '' : rightDesc1; + rightDesc2 = rightDesc2 === VOID ? '' : rightDesc2; + rcmdReasonStyle = rcmdReasonStyle === VOID ? null : rcmdReasonStyle; + hotwordEntrance = hotwordEntrance === VOID ? null : hotwordEntrance; + cornerMarkStyle = cornerMarkStyle === VOID ? null : cornerMarkStyle; + rightIcon1 = rightIcon1 === VOID ? 0 : rightIcon1; + rightIcon2 = rightIcon2 === VOID ? 0 : rightIcon2; + leftCornerMarkStyle = leftCornerMarkStyle === VOID ? null : leftCornerMarkStyle; + coverRightTextContentDescription = coverRightTextContentDescription === VOID ? '' : coverRightTextContentDescription; + rightDesc1ContentDescription = rightDesc1ContentDescription === VOID ? '' : rightDesc1ContentDescription; + this.base = base; + this.coverGif = coverGif; + this.up = up; + this.coverRightText1 = coverRightText1; + this.rightDesc1 = rightDesc1; + this.rightDesc2 = rightDesc2; + this.rcmdReasonStyle = rcmdReasonStyle; + this.hotwordEntrance = hotwordEntrance; + this.cornerMarkStyle = cornerMarkStyle; + this.rightIcon1 = rightIcon1; + this.rightIcon2 = rightIcon2; + this.leftCornerMarkStyle = leftCornerMarkStyle; + this.coverRightTextContentDescription = coverRightTextContentDescription; + this.rightDesc1ContentDescription = rightDesc1ContentDescription; + } + get_base_wojaxm_k$() { + return this.base; + } + get_coverGif_xeq6vq_k$() { + return this.coverGif; + } + get_up_kntnmk_k$() { + return this.up; + } + get_coverRightText1_o4qei2_k$() { + return this.coverRightText1; + } + get_rightDesc1_rhl4lp_k$() { + return this.rightDesc1; + } + get_rightDesc2_rhl4lq_k$() { + return this.rightDesc2; + } + get_rcmdReasonStyle_5yq4ak_k$() { + return this.rcmdReasonStyle; + } + get_hotwordEntrance_v3ioxw_k$() { + return this.hotwordEntrance; + } + get_cornerMarkStyle_x49uje_k$() { + return this.cornerMarkStyle; + } + get_rightIcon1_rkaqw5_k$() { + return this.rightIcon1; + } + get_rightIcon2_rkaqw6_k$() { + return this.rightIcon2; + } + get_leftCornerMarkStyle_2ywf3_k$() { + return this.leftCornerMarkStyle; + } + get_coverRightTextContentDescription_pt6dlu_k$() { + return this.coverRightTextContentDescription; + } + get_rightDesc1ContentDescription_tzdxw0_k$() { + return this.rightDesc1ContentDescription; + } + component1_7eebsc_k$() { + return this.base; + } + component2_7eebsb_k$() { + return this.coverGif; + } + component3_7eebsa_k$() { + return this.up; + } + component4_7eebs9_k$() { + return this.coverRightText1; + } + component5_7eebs8_k$() { + return this.rightDesc1; + } + component6_7eebs7_k$() { + return this.rightDesc2; + } + component7_7eebs6_k$() { + return this.rcmdReasonStyle; + } + component8_7eebs5_k$() { + return this.hotwordEntrance; + } + component9_7eebs4_k$() { + return this.cornerMarkStyle; + } + component10_gazzfo_k$() { + return this.rightIcon1; + } + component11_gazzfn_k$() { + return this.rightIcon2; + } + component12_gazzfm_k$() { + return this.leftCornerMarkStyle; + } + component13_gazzfl_k$() { + return this.coverRightTextContentDescription; + } + component14_gazzfk_k$() { + return this.rightDesc1ContentDescription; + } + copy_tjldbn_k$(base, coverGif, up, coverRightText1, rightDesc1, rightDesc2, rcmdReasonStyle, hotwordEntrance, cornerMarkStyle, rightIcon1, rightIcon2, leftCornerMarkStyle, coverRightTextContentDescription, rightDesc1ContentDescription) { + return new KSmallCoverV5_0(base, coverGif, up, coverRightText1, rightDesc1, rightDesc2, rcmdReasonStyle, hotwordEntrance, cornerMarkStyle, rightIcon1, rightIcon2, leftCornerMarkStyle, coverRightTextContentDescription, rightDesc1ContentDescription); + } + copy(base, coverGif, up, coverRightText1, rightDesc1, rightDesc2, rcmdReasonStyle, hotwordEntrance, cornerMarkStyle, rightIcon1, rightIcon2, leftCornerMarkStyle, coverRightTextContentDescription, rightDesc1ContentDescription, $super) { + base = base === VOID ? this.base : base; + coverGif = coverGif === VOID ? this.coverGif : coverGif; + up = up === VOID ? this.up : up; + coverRightText1 = coverRightText1 === VOID ? this.coverRightText1 : coverRightText1; + rightDesc1 = rightDesc1 === VOID ? this.rightDesc1 : rightDesc1; + rightDesc2 = rightDesc2 === VOID ? this.rightDesc2 : rightDesc2; + rcmdReasonStyle = rcmdReasonStyle === VOID ? this.rcmdReasonStyle : rcmdReasonStyle; + hotwordEntrance = hotwordEntrance === VOID ? this.hotwordEntrance : hotwordEntrance; + cornerMarkStyle = cornerMarkStyle === VOID ? this.cornerMarkStyle : cornerMarkStyle; + rightIcon1 = rightIcon1 === VOID ? this.rightIcon1 : rightIcon1; + rightIcon2 = rightIcon2 === VOID ? this.rightIcon2 : rightIcon2; + leftCornerMarkStyle = leftCornerMarkStyle === VOID ? this.leftCornerMarkStyle : leftCornerMarkStyle; + coverRightTextContentDescription = coverRightTextContentDescription === VOID ? this.coverRightTextContentDescription : coverRightTextContentDescription; + rightDesc1ContentDescription = rightDesc1ContentDescription === VOID ? this.rightDesc1ContentDescription : rightDesc1ContentDescription; + return this.copy_tjldbn_k$(base, coverGif, up, coverRightText1, rightDesc1, rightDesc2, rcmdReasonStyle, hotwordEntrance, cornerMarkStyle, rightIcon1, rightIcon2, leftCornerMarkStyle, coverRightTextContentDescription, rightDesc1ContentDescription); + } + toString() { + return 'KSmallCoverV5(base=' + this.base + ', coverGif=' + this.coverGif + ', up=' + this.up + ', coverRightText1=' + this.coverRightText1 + ', rightDesc1=' + this.rightDesc1 + ', rightDesc2=' + this.rightDesc2 + ', rcmdReasonStyle=' + this.rcmdReasonStyle + ', hotwordEntrance=' + this.hotwordEntrance + ', cornerMarkStyle=' + this.cornerMarkStyle + ', rightIcon1=' + this.rightIcon1 + ', rightIcon2=' + this.rightIcon2 + ', leftCornerMarkStyle=' + this.leftCornerMarkStyle + ', coverRightTextContentDescription=' + this.coverRightTextContentDescription + ', rightDesc1ContentDescription=' + this.rightDesc1ContentDescription + ')'; + } + hashCode() { + var result = this.base == null ? 0 : this.base.hashCode(); + result = imul(result, 31) + getStringHashCode(this.coverGif) | 0; + result = imul(result, 31) + (this.up == null ? 0 : this.up.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.coverRightText1) | 0; + result = imul(result, 31) + getStringHashCode(this.rightDesc1) | 0; + result = imul(result, 31) + getStringHashCode(this.rightDesc2) | 0; + result = imul(result, 31) + (this.rcmdReasonStyle == null ? 0 : this.rcmdReasonStyle.hashCode()) | 0; + result = imul(result, 31) + (this.hotwordEntrance == null ? 0 : this.hotwordEntrance.hashCode()) | 0; + result = imul(result, 31) + (this.cornerMarkStyle == null ? 0 : this.cornerMarkStyle.hashCode()) | 0; + result = imul(result, 31) + this.rightIcon1 | 0; + result = imul(result, 31) + this.rightIcon2 | 0; + result = imul(result, 31) + (this.leftCornerMarkStyle == null ? 0 : this.leftCornerMarkStyle.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.coverRightTextContentDescription) | 0; + result = imul(result, 31) + getStringHashCode(this.rightDesc1ContentDescription) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSmallCoverV5_0)) + return false; + var tmp0_other_with_cast = other instanceof KSmallCoverV5_0 ? other : THROW_CCE(); + if (!equals(this.base, tmp0_other_with_cast.base)) + return false; + if (!(this.coverGif === tmp0_other_with_cast.coverGif)) + return false; + if (!equals(this.up, tmp0_other_with_cast.up)) + return false; + if (!(this.coverRightText1 === tmp0_other_with_cast.coverRightText1)) + return false; + if (!(this.rightDesc1 === tmp0_other_with_cast.rightDesc1)) + return false; + if (!(this.rightDesc2 === tmp0_other_with_cast.rightDesc2)) + return false; + if (!equals(this.rcmdReasonStyle, tmp0_other_with_cast.rcmdReasonStyle)) + return false; + if (!equals(this.hotwordEntrance, tmp0_other_with_cast.hotwordEntrance)) + return false; + if (!equals(this.cornerMarkStyle, tmp0_other_with_cast.cornerMarkStyle)) + return false; + if (!(this.rightIcon1 === tmp0_other_with_cast.rightIcon1)) + return false; + if (!(this.rightIcon2 === tmp0_other_with_cast.rightIcon2)) + return false; + if (!equals(this.leftCornerMarkStyle, tmp0_other_with_cast.leftCornerMarkStyle)) + return false; + if (!(this.coverRightTextContentDescription === tmp0_other_with_cast.coverRightTextContentDescription)) + return false; + if (!(this.rightDesc1ContentDescription === tmp0_other_with_cast.rightDesc1ContentDescription)) + return false; + return true; + } + static new_com_bapis_bilibili_app_card_v1_KSmallCoverV5_xxcsq3_k$(seen1, base, coverGif, up, coverRightText1, rightDesc1, rightDesc2, rcmdReasonStyle, hotwordEntrance, cornerMarkStyle, rightIcon1, rightIcon2, leftCornerMarkStyle, coverRightTextContentDescription, rightDesc1ContentDescription, serializationConstructorMarker) { + Companion_instance_703; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_690().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.base = null; + else + $this.base = base; + if (0 === (seen1 & 2)) + $this.coverGif = ''; + else + $this.coverGif = coverGif; + if (0 === (seen1 & 4)) + $this.up = null; + else + $this.up = up; + if (0 === (seen1 & 8)) + $this.coverRightText1 = ''; + else + $this.coverRightText1 = coverRightText1; + if (0 === (seen1 & 16)) + $this.rightDesc1 = ''; + else + $this.rightDesc1 = rightDesc1; + if (0 === (seen1 & 32)) + $this.rightDesc2 = ''; + else + $this.rightDesc2 = rightDesc2; + if (0 === (seen1 & 64)) + $this.rcmdReasonStyle = null; + else + $this.rcmdReasonStyle = rcmdReasonStyle; + if (0 === (seen1 & 128)) + $this.hotwordEntrance = null; + else + $this.hotwordEntrance = hotwordEntrance; + if (0 === (seen1 & 256)) + $this.cornerMarkStyle = null; + else + $this.cornerMarkStyle = cornerMarkStyle; + if (0 === (seen1 & 512)) + $this.rightIcon1 = 0; + else + $this.rightIcon1 = rightIcon1; + if (0 === (seen1 & 1024)) + $this.rightIcon2 = 0; + else + $this.rightIcon2 = rightIcon2; + if (0 === (seen1 & 2048)) + $this.leftCornerMarkStyle = null; + else + $this.leftCornerMarkStyle = leftCornerMarkStyle; + if (0 === (seen1 & 4096)) + $this.coverRightTextContentDescription = ''; + else + $this.coverRightTextContentDescription = coverRightTextContentDescription; + if (0 === (seen1 & 8192)) + $this.rightDesc1ContentDescription = ''; + else + $this.rightDesc1ContentDescription = rightDesc1ContentDescription; + return $this; + } + } + class Companion_704 { + constructor() { + this.targetPath = '/bilibili.app.card.v1.HotwordEntrance'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_691(); + } + } + class $serializer_691 { + constructor() { + $serializer_instance_691 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.card.v1.KHotwordEntrance', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('hotwordId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('hotText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('h5Url', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('icon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KHotwordEntrance.new_com_bapis_bilibili_app_card_v1_KHotwordEntrance_li7f16_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_k7psn9_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.hotwordId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.hotwordId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.hotText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.hotText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.h5Url === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.h5Url); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.icon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.icon); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_k7psn9_k$(encoder, value instanceof KHotwordEntrance ? value : THROW_CCE()); + } + } + class KHotwordEntrance { + constructor(hotwordId, hotText, h5Url, icon) { + Companion_instance_704; + hotwordId = hotwordId === VOID ? new Long(0, 0) : hotwordId; + hotText = hotText === VOID ? '' : hotText; + h5Url = h5Url === VOID ? '' : h5Url; + icon = icon === VOID ? '' : icon; + this.hotwordId = hotwordId; + this.hotText = hotText; + this.h5Url = h5Url; + this.icon = icon; + } + get_hotwordId_czrqnd_k$() { + return this.hotwordId; + } + get_hotText_jfo94h_k$() { + return this.hotText; + } + get_h5Url_irjpkp_k$() { + return this.h5Url; + } + get_icon_wont8i_k$() { + return this.icon; + } + component1_7eebsc_k$() { + return this.hotwordId; + } + component2_7eebsb_k$() { + return this.hotText; + } + component3_7eebsa_k$() { + return this.h5Url; + } + component4_7eebs9_k$() { + return this.icon; + } + copy_kwys9l_k$(hotwordId, hotText, h5Url, icon) { + return new KHotwordEntrance(hotwordId, hotText, h5Url, icon); + } + copy(hotwordId, hotText, h5Url, icon, $super) { + hotwordId = hotwordId === VOID ? this.hotwordId : hotwordId; + hotText = hotText === VOID ? this.hotText : hotText; + h5Url = h5Url === VOID ? this.h5Url : h5Url; + icon = icon === VOID ? this.icon : icon; + return this.copy_kwys9l_k$(hotwordId, hotText, h5Url, icon); + } + toString() { + return 'KHotwordEntrance(hotwordId=' + this.hotwordId.toString() + ', hotText=' + this.hotText + ', h5Url=' + this.h5Url + ', icon=' + this.icon + ')'; + } + hashCode() { + var result = this.hotwordId.hashCode(); + result = imul(result, 31) + getStringHashCode(this.hotText) | 0; + result = imul(result, 31) + getStringHashCode(this.h5Url) | 0; + result = imul(result, 31) + getStringHashCode(this.icon) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KHotwordEntrance)) + return false; + var tmp0_other_with_cast = other instanceof KHotwordEntrance ? other : THROW_CCE(); + if (!this.hotwordId.equals(tmp0_other_with_cast.hotwordId)) + return false; + if (!(this.hotText === tmp0_other_with_cast.hotText)) + return false; + if (!(this.h5Url === tmp0_other_with_cast.h5Url)) + return false; + if (!(this.icon === tmp0_other_with_cast.icon)) + return false; + return true; + } + static new_com_bapis_bilibili_app_card_v1_KHotwordEntrance_li7f16_k$(seen1, hotwordId, hotText, h5Url, icon, serializationConstructorMarker) { + Companion_instance_704; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_691().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.hotwordId = new Long(0, 0); + else + $this.hotwordId = hotwordId; + if (0 === (seen1 & 2)) + $this.hotText = ''; + else + $this.hotText = hotText; + if (0 === (seen1 & 4)) + $this.h5Url = ''; + else + $this.h5Url = h5Url; + if (0 === (seen1 & 8)) + $this.icon = ''; + else + $this.icon = icon; + return $this; + } + } + class Companion_705 { + constructor() { + this.targetPath = '/bilibili.app.card.v1.LargeCoverV1'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_692(); + } + } + class $serializer_692 { + constructor() { + $serializer_instance_692 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.card.v1.KLargeCoverV1', this, 21); + tmp0_serialDesc.addElement_5pzumi_k$('base', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('coverGif', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('avatar', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('coverLeftText1', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('coverLeftText2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('coverLeftText3', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('coverBadge', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('topRcmdReason', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('bottomRcmdReason', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('desc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('officialIcon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('canPlay', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + tmp0_serialDesc.addElement_5pzumi_k$('topRcmdReasonStyle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(13)); + tmp0_serialDesc.addElement_5pzumi_k$('bottomRcmdReasonStyle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(14)); + tmp0_serialDesc.addElement_5pzumi_k$('rcmdReasonStyleV2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(15)); + tmp0_serialDesc.addElement_5pzumi_k$('leftCoverBadgeStyle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(16)); + tmp0_serialDesc.addElement_5pzumi_k$('rightCoverBadgeStyle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(17)); + tmp0_serialDesc.addElement_5pzumi_k$('coverBadge2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(18)); + tmp0_serialDesc.addElement_5pzumi_k$('likeButton', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(19)); + tmp0_serialDesc.addElement_5pzumi_k$('titleSingleLine', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(20)); + tmp0_serialDesc.addElement_5pzumi_k$('coverRightText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(21)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_646()), StringSerializer_getInstance(), get_nullable($serializer_getInstance_654()), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), get_nullable($serializer_getInstance_662()), get_nullable($serializer_getInstance_662()), get_nullable($serializer_getInstance_662()), get_nullable($serializer_getInstance_662()), get_nullable($serializer_getInstance_662()), StringSerializer_getInstance(), get_nullable($serializer_getInstance_663()), IntSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_local8 = null; + var tmp13_local9 = null; + var tmp14_local10 = 0; + var tmp15_local11 = 0; + var tmp16_local12 = null; + var tmp17_local13 = null; + var tmp18_local14 = null; + var tmp19_local15 = null; + var tmp20_local16 = null; + var tmp21_local17 = null; + var tmp22_local18 = null; + var tmp23_local19 = 0; + var tmp24_local20 = null; + var tmp25_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp25_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp25_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_646(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp25_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp25_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_654(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp25_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp25_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp25_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp25_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp25_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp25_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp25_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp25_input.decodeIntElement_941u6a_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp25_input.decodeIntElement_941u6a_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + tmp16_local12 = tmp25_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 12, $serializer_getInstance_662(), tmp16_local12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + tmp17_local13 = tmp25_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 13, $serializer_getInstance_662(), tmp17_local13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + tmp18_local14 = tmp25_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 14, $serializer_getInstance_662(), tmp18_local14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + tmp19_local15 = tmp25_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 15, $serializer_getInstance_662(), tmp19_local15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + tmp20_local16 = tmp25_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 16, $serializer_getInstance_662(), tmp20_local16); + tmp3_bitMask0 = tmp3_bitMask0 | 65536; + tmp21_local17 = tmp25_input.decodeStringElement_3oenpg_k$(tmp0_desc, 17); + tmp3_bitMask0 = tmp3_bitMask0 | 131072; + tmp22_local18 = tmp25_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 18, $serializer_getInstance_663(), tmp22_local18); + tmp3_bitMask0 = tmp3_bitMask0 | 262144; + tmp23_local19 = tmp25_input.decodeIntElement_941u6a_k$(tmp0_desc, 19); + tmp3_bitMask0 = tmp3_bitMask0 | 524288; + tmp24_local20 = tmp25_input.decodeStringElement_3oenpg_k$(tmp0_desc, 20); + tmp3_bitMask0 = tmp3_bitMask0 | 1048576; + } else + while (tmp1_flag) { + tmp2_index = tmp25_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp25_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_646(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp25_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp25_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_654(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp25_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp25_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp25_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp25_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp25_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp25_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp25_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp25_input.decodeIntElement_941u6a_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp25_input.decodeIntElement_941u6a_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + case 12: + tmp16_local12 = tmp25_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 12, $serializer_getInstance_662(), tmp16_local12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + break; + case 13: + tmp17_local13 = tmp25_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 13, $serializer_getInstance_662(), tmp17_local13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + break; + case 14: + tmp18_local14 = tmp25_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 14, $serializer_getInstance_662(), tmp18_local14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + break; + case 15: + tmp19_local15 = tmp25_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 15, $serializer_getInstance_662(), tmp19_local15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + break; + case 16: + tmp20_local16 = tmp25_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 16, $serializer_getInstance_662(), tmp20_local16); + tmp3_bitMask0 = tmp3_bitMask0 | 65536; + break; + case 17: + tmp21_local17 = tmp25_input.decodeStringElement_3oenpg_k$(tmp0_desc, 17); + tmp3_bitMask0 = tmp3_bitMask0 | 131072; + break; + case 18: + tmp22_local18 = tmp25_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 18, $serializer_getInstance_663(), tmp22_local18); + tmp3_bitMask0 = tmp3_bitMask0 | 262144; + break; + case 19: + tmp23_local19 = tmp25_input.decodeIntElement_941u6a_k$(tmp0_desc, 19); + tmp3_bitMask0 = tmp3_bitMask0 | 524288; + break; + case 20: + tmp24_local20 = tmp25_input.decodeStringElement_3oenpg_k$(tmp0_desc, 20); + tmp3_bitMask0 = tmp3_bitMask0 | 1048576; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp25_input.endStructure_1xqz0n_k$(tmp0_desc); + return KLargeCoverV1_0.new_com_bapis_bilibili_app_card_v1_KLargeCoverV1_axb7rt_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, tmp18_local14, tmp19_local15, tmp20_local16, tmp21_local17, tmp22_local18, tmp23_local19, tmp24_local20, null); + } + serialize_dhqhx5_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.base == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_646(), value.base); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.coverGif === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.coverGif); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.avatar == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_654(), value.avatar); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.coverLeftText1 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.coverLeftText1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.coverLeftText2 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.coverLeftText2); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.coverLeftText3 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.coverLeftText3); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.coverBadge === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.coverBadge); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.topRcmdReason === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.topRcmdReason); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.bottomRcmdReason === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 8, value.bottomRcmdReason); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.desc === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 9, value.desc); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.officialIcon === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 10, value.officialIcon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.canPlay === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 11, value.canPlay); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !(value.topRcmdReasonStyle == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 12, $serializer_getInstance_662(), value.topRcmdReasonStyle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 13) ? true : !(value.bottomRcmdReasonStyle == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 13, $serializer_getInstance_662(), value.bottomRcmdReasonStyle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 14) ? true : !(value.rcmdReasonStyleV2 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 14, $serializer_getInstance_662(), value.rcmdReasonStyleV2); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 15) ? true : !(value.leftCoverBadgeStyle == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 15, $serializer_getInstance_662(), value.leftCoverBadgeStyle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 16) ? true : !(value.rightCoverBadgeStyle == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 16, $serializer_getInstance_662(), value.rightCoverBadgeStyle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 17) ? true : !(value.coverBadge2 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 17, value.coverBadge2); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 18) ? true : !(value.likeButton == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 18, $serializer_getInstance_663(), value.likeButton); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 19) ? true : !(value.titleSingleLine === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 19, value.titleSingleLine); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 20) ? true : !(value.coverRightText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 20, value.coverRightText); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_dhqhx5_k$(encoder, value instanceof KLargeCoverV1_0 ? value : THROW_CCE()); + } + } + class KLargeCoverV1_0 { + constructor(base, coverGif, avatar, coverLeftText1, coverLeftText2, coverLeftText3, coverBadge, topRcmdReason, bottomRcmdReason, desc, officialIcon, canPlay, topRcmdReasonStyle, bottomRcmdReasonStyle, rcmdReasonStyleV2, leftCoverBadgeStyle, rightCoverBadgeStyle, coverBadge2, likeButton, titleSingleLine, coverRightText) { + Companion_instance_705; + base = base === VOID ? null : base; + coverGif = coverGif === VOID ? '' : coverGif; + avatar = avatar === VOID ? null : avatar; + coverLeftText1 = coverLeftText1 === VOID ? '' : coverLeftText1; + coverLeftText2 = coverLeftText2 === VOID ? '' : coverLeftText2; + coverLeftText3 = coverLeftText3 === VOID ? '' : coverLeftText3; + coverBadge = coverBadge === VOID ? '' : coverBadge; + topRcmdReason = topRcmdReason === VOID ? '' : topRcmdReason; + bottomRcmdReason = bottomRcmdReason === VOID ? '' : bottomRcmdReason; + desc = desc === VOID ? '' : desc; + officialIcon = officialIcon === VOID ? 0 : officialIcon; + canPlay = canPlay === VOID ? 0 : canPlay; + topRcmdReasonStyle = topRcmdReasonStyle === VOID ? null : topRcmdReasonStyle; + bottomRcmdReasonStyle = bottomRcmdReasonStyle === VOID ? null : bottomRcmdReasonStyle; + rcmdReasonStyleV2 = rcmdReasonStyleV2 === VOID ? null : rcmdReasonStyleV2; + leftCoverBadgeStyle = leftCoverBadgeStyle === VOID ? null : leftCoverBadgeStyle; + rightCoverBadgeStyle = rightCoverBadgeStyle === VOID ? null : rightCoverBadgeStyle; + coverBadge2 = coverBadge2 === VOID ? '' : coverBadge2; + likeButton = likeButton === VOID ? null : likeButton; + titleSingleLine = titleSingleLine === VOID ? 0 : titleSingleLine; + coverRightText = coverRightText === VOID ? '' : coverRightText; + this.base = base; + this.coverGif = coverGif; + this.avatar = avatar; + this.coverLeftText1 = coverLeftText1; + this.coverLeftText2 = coverLeftText2; + this.coverLeftText3 = coverLeftText3; + this.coverBadge = coverBadge; + this.topRcmdReason = topRcmdReason; + this.bottomRcmdReason = bottomRcmdReason; + this.desc = desc; + this.officialIcon = officialIcon; + this.canPlay = canPlay; + this.topRcmdReasonStyle = topRcmdReasonStyle; + this.bottomRcmdReasonStyle = bottomRcmdReasonStyle; + this.rcmdReasonStyleV2 = rcmdReasonStyleV2; + this.leftCoverBadgeStyle = leftCoverBadgeStyle; + this.rightCoverBadgeStyle = rightCoverBadgeStyle; + this.coverBadge2 = coverBadge2; + this.likeButton = likeButton; + this.titleSingleLine = titleSingleLine; + this.coverRightText = coverRightText; + } + get_base_wojaxm_k$() { + return this.base; + } + get_coverGif_xeq6vq_k$() { + return this.coverGif; + } + get_avatar_b5pjz6_k$() { + return this.avatar; + } + get_coverLeftText1_ck8hkf_k$() { + return this.coverLeftText1; + } + get_coverLeftText2_ck8hkg_k$() { + return this.coverLeftText2; + } + get_coverLeftText3_ck8hkh_k$() { + return this.coverLeftText3; + } + get_coverBadge_3cu5x_k$() { + return this.coverBadge; + } + get_topRcmdReason_tjfaiw_k$() { + return this.topRcmdReason; + } + get_bottomRcmdReason_a7pz9c_k$() { + return this.bottomRcmdReason; + } + get_desc_woknve_k$() { + return this.desc; + } + get_officialIcon_t4hw0d_k$() { + return this.officialIcon; + } + get_canPlay_acszln_k$() { + return this.canPlay; + } + get_topRcmdReasonStyle_scbd09_k$() { + return this.topRcmdReasonStyle; + } + get_bottomRcmdReasonStyle_1fwcz3_k$() { + return this.bottomRcmdReasonStyle; + } + get_rcmdReasonStyleV2_livs4o_k$() { + return this.rcmdReasonStyleV2; + } + get_leftCoverBadgeStyle_l56f0r_k$() { + return this.leftCoverBadgeStyle; + } + get_rightCoverBadgeStyle_m55jea_k$() { + return this.rightCoverBadgeStyle; + } + get_coverBadge2_2w1z4t_k$() { + return this.coverBadge2; + } + get_likeButton_oaqc6q_k$() { + return this.likeButton; + } + get_titleSingleLine_oaymtx_k$() { + return this.titleSingleLine; + } + get_coverRightText_t0bat7_k$() { + return this.coverRightText; + } + component1_7eebsc_k$() { + return this.base; + } + component2_7eebsb_k$() { + return this.coverGif; + } + component3_7eebsa_k$() { + return this.avatar; + } + component4_7eebs9_k$() { + return this.coverLeftText1; + } + component5_7eebs8_k$() { + return this.coverLeftText2; + } + component6_7eebs7_k$() { + return this.coverLeftText3; + } + component7_7eebs6_k$() { + return this.coverBadge; + } + component8_7eebs5_k$() { + return this.topRcmdReason; + } + component9_7eebs4_k$() { + return this.bottomRcmdReason; + } + component10_gazzfo_k$() { + return this.desc; + } + component11_gazzfn_k$() { + return this.officialIcon; + } + component12_gazzfm_k$() { + return this.canPlay; + } + component13_gazzfl_k$() { + return this.topRcmdReasonStyle; + } + component14_gazzfk_k$() { + return this.bottomRcmdReasonStyle; + } + component15_gazzfj_k$() { + return this.rcmdReasonStyleV2; + } + component16_gazzfi_k$() { + return this.leftCoverBadgeStyle; + } + component17_gazzfh_k$() { + return this.rightCoverBadgeStyle; + } + component18_gazzfg_k$() { + return this.coverBadge2; + } + component19_gazzff_k$() { + return this.likeButton; + } + component20_gazzet_k$() { + return this.titleSingleLine; + } + component21_gazzes_k$() { + return this.coverRightText; + } + copy_vb3ped_k$(base, coverGif, avatar, coverLeftText1, coverLeftText2, coverLeftText3, coverBadge, topRcmdReason, bottomRcmdReason, desc, officialIcon, canPlay, topRcmdReasonStyle, bottomRcmdReasonStyle, rcmdReasonStyleV2, leftCoverBadgeStyle, rightCoverBadgeStyle, coverBadge2, likeButton, titleSingleLine, coverRightText) { + return new KLargeCoverV1_0(base, coverGif, avatar, coverLeftText1, coverLeftText2, coverLeftText3, coverBadge, topRcmdReason, bottomRcmdReason, desc, officialIcon, canPlay, topRcmdReasonStyle, bottomRcmdReasonStyle, rcmdReasonStyleV2, leftCoverBadgeStyle, rightCoverBadgeStyle, coverBadge2, likeButton, titleSingleLine, coverRightText); + } + copy(base, coverGif, avatar, coverLeftText1, coverLeftText2, coverLeftText3, coverBadge, topRcmdReason, bottomRcmdReason, desc, officialIcon, canPlay, topRcmdReasonStyle, bottomRcmdReasonStyle, rcmdReasonStyleV2, leftCoverBadgeStyle, rightCoverBadgeStyle, coverBadge2, likeButton, titleSingleLine, coverRightText, $super) { + base = base === VOID ? this.base : base; + coverGif = coverGif === VOID ? this.coverGif : coverGif; + avatar = avatar === VOID ? this.avatar : avatar; + coverLeftText1 = coverLeftText1 === VOID ? this.coverLeftText1 : coverLeftText1; + coverLeftText2 = coverLeftText2 === VOID ? this.coverLeftText2 : coverLeftText2; + coverLeftText3 = coverLeftText3 === VOID ? this.coverLeftText3 : coverLeftText3; + coverBadge = coverBadge === VOID ? this.coverBadge : coverBadge; + topRcmdReason = topRcmdReason === VOID ? this.topRcmdReason : topRcmdReason; + bottomRcmdReason = bottomRcmdReason === VOID ? this.bottomRcmdReason : bottomRcmdReason; + desc = desc === VOID ? this.desc : desc; + officialIcon = officialIcon === VOID ? this.officialIcon : officialIcon; + canPlay = canPlay === VOID ? this.canPlay : canPlay; + topRcmdReasonStyle = topRcmdReasonStyle === VOID ? this.topRcmdReasonStyle : topRcmdReasonStyle; + bottomRcmdReasonStyle = bottomRcmdReasonStyle === VOID ? this.bottomRcmdReasonStyle : bottomRcmdReasonStyle; + rcmdReasonStyleV2 = rcmdReasonStyleV2 === VOID ? this.rcmdReasonStyleV2 : rcmdReasonStyleV2; + leftCoverBadgeStyle = leftCoverBadgeStyle === VOID ? this.leftCoverBadgeStyle : leftCoverBadgeStyle; + rightCoverBadgeStyle = rightCoverBadgeStyle === VOID ? this.rightCoverBadgeStyle : rightCoverBadgeStyle; + coverBadge2 = coverBadge2 === VOID ? this.coverBadge2 : coverBadge2; + likeButton = likeButton === VOID ? this.likeButton : likeButton; + titleSingleLine = titleSingleLine === VOID ? this.titleSingleLine : titleSingleLine; + coverRightText = coverRightText === VOID ? this.coverRightText : coverRightText; + return this.copy_vb3ped_k$(base, coverGif, avatar, coverLeftText1, coverLeftText2, coverLeftText3, coverBadge, topRcmdReason, bottomRcmdReason, desc, officialIcon, canPlay, topRcmdReasonStyle, bottomRcmdReasonStyle, rcmdReasonStyleV2, leftCoverBadgeStyle, rightCoverBadgeStyle, coverBadge2, likeButton, titleSingleLine, coverRightText); + } + toString() { + return 'KLargeCoverV1(base=' + this.base + ', coverGif=' + this.coverGif + ', avatar=' + this.avatar + ', coverLeftText1=' + this.coverLeftText1 + ', coverLeftText2=' + this.coverLeftText2 + ', coverLeftText3=' + this.coverLeftText3 + ', coverBadge=' + this.coverBadge + ', topRcmdReason=' + this.topRcmdReason + ', bottomRcmdReason=' + this.bottomRcmdReason + ', desc=' + this.desc + ', officialIcon=' + this.officialIcon + ', canPlay=' + this.canPlay + ', topRcmdReasonStyle=' + this.topRcmdReasonStyle + ', bottomRcmdReasonStyle=' + this.bottomRcmdReasonStyle + ', rcmdReasonStyleV2=' + this.rcmdReasonStyleV2 + ', leftCoverBadgeStyle=' + this.leftCoverBadgeStyle + ', rightCoverBadgeStyle=' + this.rightCoverBadgeStyle + ', coverBadge2=' + this.coverBadge2 + ', likeButton=' + this.likeButton + ', titleSingleLine=' + this.titleSingleLine + ', coverRightText=' + this.coverRightText + ')'; + } + hashCode() { + var result = this.base == null ? 0 : this.base.hashCode(); + result = imul(result, 31) + getStringHashCode(this.coverGif) | 0; + result = imul(result, 31) + (this.avatar == null ? 0 : this.avatar.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.coverLeftText1) | 0; + result = imul(result, 31) + getStringHashCode(this.coverLeftText2) | 0; + result = imul(result, 31) + getStringHashCode(this.coverLeftText3) | 0; + result = imul(result, 31) + getStringHashCode(this.coverBadge) | 0; + result = imul(result, 31) + getStringHashCode(this.topRcmdReason) | 0; + result = imul(result, 31) + getStringHashCode(this.bottomRcmdReason) | 0; + result = imul(result, 31) + getStringHashCode(this.desc) | 0; + result = imul(result, 31) + this.officialIcon | 0; + result = imul(result, 31) + this.canPlay | 0; + result = imul(result, 31) + (this.topRcmdReasonStyle == null ? 0 : this.topRcmdReasonStyle.hashCode()) | 0; + result = imul(result, 31) + (this.bottomRcmdReasonStyle == null ? 0 : this.bottomRcmdReasonStyle.hashCode()) | 0; + result = imul(result, 31) + (this.rcmdReasonStyleV2 == null ? 0 : this.rcmdReasonStyleV2.hashCode()) | 0; + result = imul(result, 31) + (this.leftCoverBadgeStyle == null ? 0 : this.leftCoverBadgeStyle.hashCode()) | 0; + result = imul(result, 31) + (this.rightCoverBadgeStyle == null ? 0 : this.rightCoverBadgeStyle.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.coverBadge2) | 0; + result = imul(result, 31) + (this.likeButton == null ? 0 : this.likeButton.hashCode()) | 0; + result = imul(result, 31) + this.titleSingleLine | 0; + result = imul(result, 31) + getStringHashCode(this.coverRightText) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KLargeCoverV1_0)) + return false; + var tmp0_other_with_cast = other instanceof KLargeCoverV1_0 ? other : THROW_CCE(); + if (!equals(this.base, tmp0_other_with_cast.base)) + return false; + if (!(this.coverGif === tmp0_other_with_cast.coverGif)) + return false; + if (!equals(this.avatar, tmp0_other_with_cast.avatar)) + return false; + if (!(this.coverLeftText1 === tmp0_other_with_cast.coverLeftText1)) + return false; + if (!(this.coverLeftText2 === tmp0_other_with_cast.coverLeftText2)) + return false; + if (!(this.coverLeftText3 === tmp0_other_with_cast.coverLeftText3)) + return false; + if (!(this.coverBadge === tmp0_other_with_cast.coverBadge)) + return false; + if (!(this.topRcmdReason === tmp0_other_with_cast.topRcmdReason)) + return false; + if (!(this.bottomRcmdReason === tmp0_other_with_cast.bottomRcmdReason)) + return false; + if (!(this.desc === tmp0_other_with_cast.desc)) + return false; + if (!(this.officialIcon === tmp0_other_with_cast.officialIcon)) + return false; + if (!(this.canPlay === tmp0_other_with_cast.canPlay)) + return false; + if (!equals(this.topRcmdReasonStyle, tmp0_other_with_cast.topRcmdReasonStyle)) + return false; + if (!equals(this.bottomRcmdReasonStyle, tmp0_other_with_cast.bottomRcmdReasonStyle)) + return false; + if (!equals(this.rcmdReasonStyleV2, tmp0_other_with_cast.rcmdReasonStyleV2)) + return false; + if (!equals(this.leftCoverBadgeStyle, tmp0_other_with_cast.leftCoverBadgeStyle)) + return false; + if (!equals(this.rightCoverBadgeStyle, tmp0_other_with_cast.rightCoverBadgeStyle)) + return false; + if (!(this.coverBadge2 === tmp0_other_with_cast.coverBadge2)) + return false; + if (!equals(this.likeButton, tmp0_other_with_cast.likeButton)) + return false; + if (!(this.titleSingleLine === tmp0_other_with_cast.titleSingleLine)) + return false; + if (!(this.coverRightText === tmp0_other_with_cast.coverRightText)) + return false; + return true; + } + static new_com_bapis_bilibili_app_card_v1_KLargeCoverV1_axb7rt_k$(seen1, base, coverGif, avatar, coverLeftText1, coverLeftText2, coverLeftText3, coverBadge, topRcmdReason, bottomRcmdReason, desc, officialIcon, canPlay, topRcmdReasonStyle, bottomRcmdReasonStyle, rcmdReasonStyleV2, leftCoverBadgeStyle, rightCoverBadgeStyle, coverBadge2, likeButton, titleSingleLine, coverRightText, serializationConstructorMarker) { + Companion_instance_705; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_692().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.base = null; + else + $this.base = base; + if (0 === (seen1 & 2)) + $this.coverGif = ''; + else + $this.coverGif = coverGif; + if (0 === (seen1 & 4)) + $this.avatar = null; + else + $this.avatar = avatar; + if (0 === (seen1 & 8)) + $this.coverLeftText1 = ''; + else + $this.coverLeftText1 = coverLeftText1; + if (0 === (seen1 & 16)) + $this.coverLeftText2 = ''; + else + $this.coverLeftText2 = coverLeftText2; + if (0 === (seen1 & 32)) + $this.coverLeftText3 = ''; + else + $this.coverLeftText3 = coverLeftText3; + if (0 === (seen1 & 64)) + $this.coverBadge = ''; + else + $this.coverBadge = coverBadge; + if (0 === (seen1 & 128)) + $this.topRcmdReason = ''; + else + $this.topRcmdReason = topRcmdReason; + if (0 === (seen1 & 256)) + $this.bottomRcmdReason = ''; + else + $this.bottomRcmdReason = bottomRcmdReason; + if (0 === (seen1 & 512)) + $this.desc = ''; + else + $this.desc = desc; + if (0 === (seen1 & 1024)) + $this.officialIcon = 0; + else + $this.officialIcon = officialIcon; + if (0 === (seen1 & 2048)) + $this.canPlay = 0; + else + $this.canPlay = canPlay; + if (0 === (seen1 & 4096)) + $this.topRcmdReasonStyle = null; + else + $this.topRcmdReasonStyle = topRcmdReasonStyle; + if (0 === (seen1 & 8192)) + $this.bottomRcmdReasonStyle = null; + else + $this.bottomRcmdReasonStyle = bottomRcmdReasonStyle; + if (0 === (seen1 & 16384)) + $this.rcmdReasonStyleV2 = null; + else + $this.rcmdReasonStyleV2 = rcmdReasonStyleV2; + if (0 === (seen1 & 32768)) + $this.leftCoverBadgeStyle = null; + else + $this.leftCoverBadgeStyle = leftCoverBadgeStyle; + if (0 === (seen1 & 65536)) + $this.rightCoverBadgeStyle = null; + else + $this.rightCoverBadgeStyle = rightCoverBadgeStyle; + if (0 === (seen1 & 131072)) + $this.coverBadge2 = ''; + else + $this.coverBadge2 = coverBadge2; + if (0 === (seen1 & 262144)) + $this.likeButton = null; + else + $this.likeButton = likeButton; + if (0 === (seen1 & 524288)) + $this.titleSingleLine = 0; + else + $this.titleSingleLine = titleSingleLine; + if (0 === (seen1 & 1048576)) + $this.coverRightText = ''; + else + $this.coverRightText = coverRightText; + return $this; + } + } + class Companion_706 { + constructor() { + Companion_instance_706 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, new ArrayListSerializer($serializer_getInstance_694())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.card.v1.ThreeItemAllV2'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_693(); + } + } + class $serializer_693 { + constructor() { + $serializer_instance_693 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.card.v1.KThreeItemAllV2', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('base', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('topRcmdReasonStyle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('item', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_706().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_646()), get_nullable($serializer_getInstance_662()), tmp0_cached[2]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp8_cached = Companion_getInstance_706().$childSerializers_1; + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_646(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_662(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp8_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_646(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_662(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp8_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KThreeItemAllV2_0.new_com_bapis_bilibili_app_card_v1_KThreeItemAllV2_xi9zir_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_f2dkb6_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_706().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.base == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_646(), value.base); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.topRcmdReasonStyle == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_662(), value.topRcmdReasonStyle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !equals(value.item, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 2, tmp2_cached[2], value.item); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_f2dkb6_k$(encoder, value instanceof KThreeItemAllV2_0 ? value : THROW_CCE()); + } + } + class KThreeItemAllV2_0 { + constructor(base, topRcmdReasonStyle, item) { + Companion_getInstance_706(); + base = base === VOID ? null : base; + topRcmdReasonStyle = topRcmdReasonStyle === VOID ? null : topRcmdReasonStyle; + item = item === VOID ? emptyList() : item; + this.base = base; + this.topRcmdReasonStyle = topRcmdReasonStyle; + this.item = item; + } + get_base_wojaxm_k$() { + return this.base; + } + get_topRcmdReasonStyle_scbd09_k$() { + return this.topRcmdReasonStyle; + } + get_item_woo5lo_k$() { + return this.item; + } + component1_7eebsc_k$() { + return this.base; + } + component2_7eebsb_k$() { + return this.topRcmdReasonStyle; + } + component3_7eebsa_k$() { + return this.item; + } + copy_uuaicz_k$(base, topRcmdReasonStyle, item) { + return new KThreeItemAllV2_0(base, topRcmdReasonStyle, item); + } + copy(base, topRcmdReasonStyle, item, $super) { + base = base === VOID ? this.base : base; + topRcmdReasonStyle = topRcmdReasonStyle === VOID ? this.topRcmdReasonStyle : topRcmdReasonStyle; + item = item === VOID ? this.item : item; + return this.copy_uuaicz_k$(base, topRcmdReasonStyle, item); + } + toString() { + return 'KThreeItemAllV2(base=' + this.base + ', topRcmdReasonStyle=' + this.topRcmdReasonStyle + ', item=' + this.item + ')'; + } + hashCode() { + var result = this.base == null ? 0 : this.base.hashCode(); + result = imul(result, 31) + (this.topRcmdReasonStyle == null ? 0 : this.topRcmdReasonStyle.hashCode()) | 0; + result = imul(result, 31) + hashCode(this.item) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KThreeItemAllV2_0)) + return false; + var tmp0_other_with_cast = other instanceof KThreeItemAllV2_0 ? other : THROW_CCE(); + if (!equals(this.base, tmp0_other_with_cast.base)) + return false; + if (!equals(this.topRcmdReasonStyle, tmp0_other_with_cast.topRcmdReasonStyle)) + return false; + if (!equals(this.item, tmp0_other_with_cast.item)) + return false; + return true; + } + static new_com_bapis_bilibili_app_card_v1_KThreeItemAllV2_xi9zir_k$(seen1, base, topRcmdReasonStyle, item, serializationConstructorMarker) { + Companion_getInstance_706(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_693().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.base = null; + else + $this.base = base; + if (0 === (seen1 & 2)) + $this.topRcmdReasonStyle = null; + else + $this.topRcmdReasonStyle = topRcmdReasonStyle; + if (0 === (seen1 & 4)) + $this.item = emptyList(); + else + $this.item = item; + return $this; + } + } + class Companion_707 { + constructor() { + this.targetPath = '/bilibili.app.card.v1.TwoItemHV1Item'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_694(); + } + } + class $serializer_694 { + constructor() { + $serializer_instance_694 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.card.v1.KTwoItemHV1Item', this, 9); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('uri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('param', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('args', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('goto', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('coverLeftText1', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('coverLeftIcon1', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('coverRightText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_651()), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = 0; + var tmp12_local8 = null; + var tmp13_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp13_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_651(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp13_input.decodeIntElement_941u6a_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + } else + while (tmp1_flag) { + tmp2_index = tmp13_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_651(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp13_input.decodeIntElement_941u6a_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp13_input.endStructure_1xqz0n_k$(tmp0_desc); + return KTwoItemHV1Item.new_com_bapis_bilibili_app_card_v1_KTwoItemHV1Item_istqpp_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, null); + } + serialize_kgle1l_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.cover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.uri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.uri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.param === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.param); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.args == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, $serializer_getInstance_651(), value.args); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.goto === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.goto); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.coverLeftText1 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.coverLeftText1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.coverLeftIcon1 === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 7, value.coverLeftIcon1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.coverRightText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 8, value.coverRightText); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_kgle1l_k$(encoder, value instanceof KTwoItemHV1Item ? value : THROW_CCE()); + } + } + class KTwoItemHV1Item { + constructor(title, cover, uri, param, args, goto, coverLeftText1, coverLeftIcon1, coverRightText) { + Companion_instance_707; + title = title === VOID ? '' : title; + cover = cover === VOID ? '' : cover; + uri = uri === VOID ? '' : uri; + param = param === VOID ? '' : param; + args = args === VOID ? null : args; + goto = goto === VOID ? '' : goto; + coverLeftText1 = coverLeftText1 === VOID ? '' : coverLeftText1; + coverLeftIcon1 = coverLeftIcon1 === VOID ? 0 : coverLeftIcon1; + coverRightText = coverRightText === VOID ? '' : coverRightText; + this.title = title; + this.cover = cover; + this.uri = uri; + this.param = param; + this.args = args; + this.goto = goto; + this.coverLeftText1 = coverLeftText1; + this.coverLeftIcon1 = coverLeftIcon1; + this.coverRightText = coverRightText; + } + get_title_iz32un_k$() { + return this.title; + } + get_cover_ipug0e_k$() { + return this.cover; + } + get_uri_18iuil_k$() { + return this.uri; + } + get_param_iwqquc_k$() { + return this.param; + } + get_args_woj09y_k$() { + return this.args; + } + get_goto_womsa4_k$() { + return this.goto; + } + get_coverLeftText1_ck8hkf_k$() { + return this.coverLeftText1; + } + get_coverLeftIcon1_ce5a8z_k$() { + return this.coverLeftIcon1; + } + get_coverRightText_t0bat7_k$() { + return this.coverRightText; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.cover; + } + component3_7eebsa_k$() { + return this.uri; + } + component4_7eebs9_k$() { + return this.param; + } + component5_7eebs8_k$() { + return this.args; + } + component6_7eebs7_k$() { + return this.goto; + } + component7_7eebs6_k$() { + return this.coverLeftText1; + } + component8_7eebs5_k$() { + return this.coverLeftIcon1; + } + component9_7eebs4_k$() { + return this.coverRightText; + } + copy_dn433k_k$(title, cover, uri, param, args, goto, coverLeftText1, coverLeftIcon1, coverRightText) { + return new KTwoItemHV1Item(title, cover, uri, param, args, goto, coverLeftText1, coverLeftIcon1, coverRightText); + } + copy(title, cover, uri, param, args, goto, coverLeftText1, coverLeftIcon1, coverRightText, $super) { + title = title === VOID ? this.title : title; + cover = cover === VOID ? this.cover : cover; + uri = uri === VOID ? this.uri : uri; + param = param === VOID ? this.param : param; + args = args === VOID ? this.args : args; + goto = goto === VOID ? this.goto : goto; + coverLeftText1 = coverLeftText1 === VOID ? this.coverLeftText1 : coverLeftText1; + coverLeftIcon1 = coverLeftIcon1 === VOID ? this.coverLeftIcon1 : coverLeftIcon1; + coverRightText = coverRightText === VOID ? this.coverRightText : coverRightText; + return this.copy_dn433k_k$(title, cover, uri, param, args, goto, coverLeftText1, coverLeftIcon1, coverRightText); + } + toString() { + return 'KTwoItemHV1Item(title=' + this.title + ', cover=' + this.cover + ', uri=' + this.uri + ', param=' + this.param + ', args=' + this.args + ', goto=' + this.goto + ', coverLeftText1=' + this.coverLeftText1 + ', coverLeftIcon1=' + this.coverLeftIcon1 + ', coverRightText=' + this.coverRightText + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.cover) | 0; + result = imul(result, 31) + getStringHashCode(this.uri) | 0; + result = imul(result, 31) + getStringHashCode(this.param) | 0; + result = imul(result, 31) + (this.args == null ? 0 : this.args.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.goto) | 0; + result = imul(result, 31) + getStringHashCode(this.coverLeftText1) | 0; + result = imul(result, 31) + this.coverLeftIcon1 | 0; + result = imul(result, 31) + getStringHashCode(this.coverRightText) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KTwoItemHV1Item)) + return false; + var tmp0_other_with_cast = other instanceof KTwoItemHV1Item ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + if (!(this.uri === tmp0_other_with_cast.uri)) + return false; + if (!(this.param === tmp0_other_with_cast.param)) + return false; + if (!equals(this.args, tmp0_other_with_cast.args)) + return false; + if (!(this.goto === tmp0_other_with_cast.goto)) + return false; + if (!(this.coverLeftText1 === tmp0_other_with_cast.coverLeftText1)) + return false; + if (!(this.coverLeftIcon1 === tmp0_other_with_cast.coverLeftIcon1)) + return false; + if (!(this.coverRightText === tmp0_other_with_cast.coverRightText)) + return false; + return true; + } + static new_com_bapis_bilibili_app_card_v1_KTwoItemHV1Item_istqpp_k$(seen1, title, cover, uri, param, args, goto, coverLeftText1, coverLeftIcon1, coverRightText, serializationConstructorMarker) { + Companion_instance_707; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_694().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.cover = ''; + else + $this.cover = cover; + if (0 === (seen1 & 4)) + $this.uri = ''; + else + $this.uri = uri; + if (0 === (seen1 & 8)) + $this.param = ''; + else + $this.param = param; + if (0 === (seen1 & 16)) + $this.args = null; + else + $this.args = args; + if (0 === (seen1 & 32)) + $this.goto = ''; + else + $this.goto = goto; + if (0 === (seen1 & 64)) + $this.coverLeftText1 = ''; + else + $this.coverLeftText1 = coverLeftText1; + if (0 === (seen1 & 128)) + $this.coverLeftIcon1 = 0; + else + $this.coverLeftIcon1 = coverLeftIcon1; + if (0 === (seen1 & 256)) + $this.coverRightText = ''; + else + $this.coverRightText = coverRightText; + return $this; + } + } + class Companion_708 { + constructor() { + this.targetPath = '/bilibili.app.card.v1.RcmdOneItem'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_695(); + } + } + class $serializer_695 { + constructor() { + $serializer_instance_695 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.card.v1.KRcmdOneItem', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('base', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('topRcmdReasonStyle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('item', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_646()), get_nullable($serializer_getInstance_662()), get_nullable($serializer_getInstance_696())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_646(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_662(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_696(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_646(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_662(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_696(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KRcmdOneItem_0.new_com_bapis_bilibili_app_card_v1_KRcmdOneItem_8d96t4_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_h6lsi1_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.base == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_646(), value.base); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.topRcmdReasonStyle == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_662(), value.topRcmdReasonStyle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.item == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_696(), value.item); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_h6lsi1_k$(encoder, value instanceof KRcmdOneItem_0 ? value : THROW_CCE()); + } + } + class KRcmdOneItem_0 { + constructor(base, topRcmdReasonStyle, item) { + Companion_instance_708; + base = base === VOID ? null : base; + topRcmdReasonStyle = topRcmdReasonStyle === VOID ? null : topRcmdReasonStyle; + item = item === VOID ? null : item; + this.base = base; + this.topRcmdReasonStyle = topRcmdReasonStyle; + this.item = item; + } + get_base_wojaxm_k$() { + return this.base; + } + get_topRcmdReasonStyle_scbd09_k$() { + return this.topRcmdReasonStyle; + } + get_item_woo5lo_k$() { + return this.item; + } + component1_7eebsc_k$() { + return this.base; + } + component2_7eebsb_k$() { + return this.topRcmdReasonStyle; + } + component3_7eebsa_k$() { + return this.item; + } + copy_hkqr0g_k$(base, topRcmdReasonStyle, item) { + return new KRcmdOneItem_0(base, topRcmdReasonStyle, item); + } + copy(base, topRcmdReasonStyle, item, $super) { + base = base === VOID ? this.base : base; + topRcmdReasonStyle = topRcmdReasonStyle === VOID ? this.topRcmdReasonStyle : topRcmdReasonStyle; + item = item === VOID ? this.item : item; + return this.copy_hkqr0g_k$(base, topRcmdReasonStyle, item); + } + toString() { + return 'KRcmdOneItem(base=' + this.base + ', topRcmdReasonStyle=' + this.topRcmdReasonStyle + ', item=' + this.item + ')'; + } + hashCode() { + var result = this.base == null ? 0 : this.base.hashCode(); + result = imul(result, 31) + (this.topRcmdReasonStyle == null ? 0 : this.topRcmdReasonStyle.hashCode()) | 0; + result = imul(result, 31) + (this.item == null ? 0 : this.item.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KRcmdOneItem_0)) + return false; + var tmp0_other_with_cast = other instanceof KRcmdOneItem_0 ? other : THROW_CCE(); + if (!equals(this.base, tmp0_other_with_cast.base)) + return false; + if (!equals(this.topRcmdReasonStyle, tmp0_other_with_cast.topRcmdReasonStyle)) + return false; + if (!equals(this.item, tmp0_other_with_cast.item)) + return false; + return true; + } + static new_com_bapis_bilibili_app_card_v1_KRcmdOneItem_8d96t4_k$(seen1, base, topRcmdReasonStyle, item, serializationConstructorMarker) { + Companion_instance_708; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_695().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.base = null; + else + $this.base = base; + if (0 === (seen1 & 2)) + $this.topRcmdReasonStyle = null; + else + $this.topRcmdReasonStyle = topRcmdReasonStyle; + if (0 === (seen1 & 4)) + $this.item = null; + else + $this.item = item; + return $this; + } + } + class Companion_709 { + constructor() { + this.targetPath = '/bilibili.app.card.v1.SmallCoverRcmdItem'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_696(); + } + } + class $serializer_696 { + constructor() { + $serializer_instance_696 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.card.v1.KSmallCoverRcmdItem', this, 13); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('uri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('param', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('goto', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('coverRightText1', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('rightDesc1', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('rightDesc2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('coverGif', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('rightIcon1', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('rightIcon2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('coverRightTextContentDescription', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + tmp0_serialDesc.addElement_5pzumi_k$('rightDesc1ContentDescription', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(13)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_local8 = null; + var tmp13_local9 = 0; + var tmp14_local10 = 0; + var tmp15_local11 = null; + var tmp16_local12 = null; + var tmp17_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp17_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp17_input.decodeIntElement_941u6a_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp17_input.decodeIntElement_941u6a_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + tmp16_local12 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + } else + while (tmp1_flag) { + tmp2_index = tmp17_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp17_input.decodeIntElement_941u6a_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp17_input.decodeIntElement_941u6a_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + case 12: + tmp16_local12 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp17_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSmallCoverRcmdItem.new_com_bapis_bilibili_app_card_v1_KSmallCoverRcmdItem_7k7xq6_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, null); + } + serialize_9rp1qr_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.cover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.uri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.uri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.param === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.param); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.goto === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.goto); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.coverRightText1 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.coverRightText1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.rightDesc1 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.rightDesc1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.rightDesc2 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.rightDesc2); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.coverGif === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 8, value.coverGif); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.rightIcon1 === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 9, value.rightIcon1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.rightIcon2 === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 10, value.rightIcon2); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.coverRightTextContentDescription === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 11, value.coverRightTextContentDescription); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !(value.rightDesc1ContentDescription === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 12, value.rightDesc1ContentDescription); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_9rp1qr_k$(encoder, value instanceof KSmallCoverRcmdItem ? value : THROW_CCE()); + } + } + class KSmallCoverRcmdItem { + constructor(title, cover, uri, param, goto, coverRightText1, rightDesc1, rightDesc2, coverGif, rightIcon1, rightIcon2, coverRightTextContentDescription, rightDesc1ContentDescription) { + Companion_instance_709; + title = title === VOID ? '' : title; + cover = cover === VOID ? '' : cover; + uri = uri === VOID ? '' : uri; + param = param === VOID ? '' : param; + goto = goto === VOID ? '' : goto; + coverRightText1 = coverRightText1 === VOID ? '' : coverRightText1; + rightDesc1 = rightDesc1 === VOID ? '' : rightDesc1; + rightDesc2 = rightDesc2 === VOID ? '' : rightDesc2; + coverGif = coverGif === VOID ? '' : coverGif; + rightIcon1 = rightIcon1 === VOID ? 0 : rightIcon1; + rightIcon2 = rightIcon2 === VOID ? 0 : rightIcon2; + coverRightTextContentDescription = coverRightTextContentDescription === VOID ? '' : coverRightTextContentDescription; + rightDesc1ContentDescription = rightDesc1ContentDescription === VOID ? '' : rightDesc1ContentDescription; + this.title = title; + this.cover = cover; + this.uri = uri; + this.param = param; + this.goto = goto; + this.coverRightText1 = coverRightText1; + this.rightDesc1 = rightDesc1; + this.rightDesc2 = rightDesc2; + this.coverGif = coverGif; + this.rightIcon1 = rightIcon1; + this.rightIcon2 = rightIcon2; + this.coverRightTextContentDescription = coverRightTextContentDescription; + this.rightDesc1ContentDescription = rightDesc1ContentDescription; + } + get_title_iz32un_k$() { + return this.title; + } + get_cover_ipug0e_k$() { + return this.cover; + } + get_uri_18iuil_k$() { + return this.uri; + } + get_param_iwqquc_k$() { + return this.param; + } + get_goto_womsa4_k$() { + return this.goto; + } + get_coverRightText1_o4qei2_k$() { + return this.coverRightText1; + } + get_rightDesc1_rhl4lp_k$() { + return this.rightDesc1; + } + get_rightDesc2_rhl4lq_k$() { + return this.rightDesc2; + } + get_coverGif_xeq6vq_k$() { + return this.coverGif; + } + get_rightIcon1_rkaqw5_k$() { + return this.rightIcon1; + } + get_rightIcon2_rkaqw6_k$() { + return this.rightIcon2; + } + get_coverRightTextContentDescription_pt6dlu_k$() { + return this.coverRightTextContentDescription; + } + get_rightDesc1ContentDescription_tzdxw0_k$() { + return this.rightDesc1ContentDescription; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.cover; + } + component3_7eebsa_k$() { + return this.uri; + } + component4_7eebs9_k$() { + return this.param; + } + component5_7eebs8_k$() { + return this.goto; + } + component6_7eebs7_k$() { + return this.coverRightText1; + } + component7_7eebs6_k$() { + return this.rightDesc1; + } + component8_7eebs5_k$() { + return this.rightDesc2; + } + component9_7eebs4_k$() { + return this.coverGif; + } + component10_gazzfo_k$() { + return this.rightIcon1; + } + component11_gazzfn_k$() { + return this.rightIcon2; + } + component12_gazzfm_k$() { + return this.coverRightTextContentDescription; + } + component13_gazzfl_k$() { + return this.rightDesc1ContentDescription; + } + copy_r1rqcl_k$(title, cover, uri, param, goto, coverRightText1, rightDesc1, rightDesc2, coverGif, rightIcon1, rightIcon2, coverRightTextContentDescription, rightDesc1ContentDescription) { + return new KSmallCoverRcmdItem(title, cover, uri, param, goto, coverRightText1, rightDesc1, rightDesc2, coverGif, rightIcon1, rightIcon2, coverRightTextContentDescription, rightDesc1ContentDescription); + } + copy(title, cover, uri, param, goto, coverRightText1, rightDesc1, rightDesc2, coverGif, rightIcon1, rightIcon2, coverRightTextContentDescription, rightDesc1ContentDescription, $super) { + title = title === VOID ? this.title : title; + cover = cover === VOID ? this.cover : cover; + uri = uri === VOID ? this.uri : uri; + param = param === VOID ? this.param : param; + goto = goto === VOID ? this.goto : goto; + coverRightText1 = coverRightText1 === VOID ? this.coverRightText1 : coverRightText1; + rightDesc1 = rightDesc1 === VOID ? this.rightDesc1 : rightDesc1; + rightDesc2 = rightDesc2 === VOID ? this.rightDesc2 : rightDesc2; + coverGif = coverGif === VOID ? this.coverGif : coverGif; + rightIcon1 = rightIcon1 === VOID ? this.rightIcon1 : rightIcon1; + rightIcon2 = rightIcon2 === VOID ? this.rightIcon2 : rightIcon2; + coverRightTextContentDescription = coverRightTextContentDescription === VOID ? this.coverRightTextContentDescription : coverRightTextContentDescription; + rightDesc1ContentDescription = rightDesc1ContentDescription === VOID ? this.rightDesc1ContentDescription : rightDesc1ContentDescription; + return this.copy_r1rqcl_k$(title, cover, uri, param, goto, coverRightText1, rightDesc1, rightDesc2, coverGif, rightIcon1, rightIcon2, coverRightTextContentDescription, rightDesc1ContentDescription); + } + toString() { + return 'KSmallCoverRcmdItem(title=' + this.title + ', cover=' + this.cover + ', uri=' + this.uri + ', param=' + this.param + ', goto=' + this.goto + ', coverRightText1=' + this.coverRightText1 + ', rightDesc1=' + this.rightDesc1 + ', rightDesc2=' + this.rightDesc2 + ', coverGif=' + this.coverGif + ', rightIcon1=' + this.rightIcon1 + ', rightIcon2=' + this.rightIcon2 + ', coverRightTextContentDescription=' + this.coverRightTextContentDescription + ', rightDesc1ContentDescription=' + this.rightDesc1ContentDescription + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.cover) | 0; + result = imul(result, 31) + getStringHashCode(this.uri) | 0; + result = imul(result, 31) + getStringHashCode(this.param) | 0; + result = imul(result, 31) + getStringHashCode(this.goto) | 0; + result = imul(result, 31) + getStringHashCode(this.coverRightText1) | 0; + result = imul(result, 31) + getStringHashCode(this.rightDesc1) | 0; + result = imul(result, 31) + getStringHashCode(this.rightDesc2) | 0; + result = imul(result, 31) + getStringHashCode(this.coverGif) | 0; + result = imul(result, 31) + this.rightIcon1 | 0; + result = imul(result, 31) + this.rightIcon2 | 0; + result = imul(result, 31) + getStringHashCode(this.coverRightTextContentDescription) | 0; + result = imul(result, 31) + getStringHashCode(this.rightDesc1ContentDescription) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSmallCoverRcmdItem)) + return false; + var tmp0_other_with_cast = other instanceof KSmallCoverRcmdItem ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + if (!(this.uri === tmp0_other_with_cast.uri)) + return false; + if (!(this.param === tmp0_other_with_cast.param)) + return false; + if (!(this.goto === tmp0_other_with_cast.goto)) + return false; + if (!(this.coverRightText1 === tmp0_other_with_cast.coverRightText1)) + return false; + if (!(this.rightDesc1 === tmp0_other_with_cast.rightDesc1)) + return false; + if (!(this.rightDesc2 === tmp0_other_with_cast.rightDesc2)) + return false; + if (!(this.coverGif === tmp0_other_with_cast.coverGif)) + return false; + if (!(this.rightIcon1 === tmp0_other_with_cast.rightIcon1)) + return false; + if (!(this.rightIcon2 === tmp0_other_with_cast.rightIcon2)) + return false; + if (!(this.coverRightTextContentDescription === tmp0_other_with_cast.coverRightTextContentDescription)) + return false; + if (!(this.rightDesc1ContentDescription === tmp0_other_with_cast.rightDesc1ContentDescription)) + return false; + return true; + } + static new_com_bapis_bilibili_app_card_v1_KSmallCoverRcmdItem_7k7xq6_k$(seen1, title, cover, uri, param, goto, coverRightText1, rightDesc1, rightDesc2, coverGif, rightIcon1, rightIcon2, coverRightTextContentDescription, rightDesc1ContentDescription, serializationConstructorMarker) { + Companion_instance_709; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_696().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.cover = ''; + else + $this.cover = cover; + if (0 === (seen1 & 4)) + $this.uri = ''; + else + $this.uri = uri; + if (0 === (seen1 & 8)) + $this.param = ''; + else + $this.param = param; + if (0 === (seen1 & 16)) + $this.goto = ''; + else + $this.goto = goto; + if (0 === (seen1 & 32)) + $this.coverRightText1 = ''; + else + $this.coverRightText1 = coverRightText1; + if (0 === (seen1 & 64)) + $this.rightDesc1 = ''; + else + $this.rightDesc1 = rightDesc1; + if (0 === (seen1 & 128)) + $this.rightDesc2 = ''; + else + $this.rightDesc2 = rightDesc2; + if (0 === (seen1 & 256)) + $this.coverGif = ''; + else + $this.coverGif = coverGif; + if (0 === (seen1 & 512)) + $this.rightIcon1 = 0; + else + $this.rightIcon1 = rightIcon1; + if (0 === (seen1 & 1024)) + $this.rightIcon2 = 0; + else + $this.rightIcon2 = rightIcon2; + if (0 === (seen1 & 2048)) + $this.coverRightTextContentDescription = ''; + else + $this.coverRightTextContentDescription = coverRightTextContentDescription; + if (0 === (seen1 & 4096)) + $this.rightDesc1ContentDescription = ''; + else + $this.rightDesc1ContentDescription = rightDesc1ContentDescription; + return $this; + } + } + class Companion_710 { + constructor() { + Companion_instance_710 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, null, new ArrayListSerializer($serializer_getInstance_698())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.card.v1.ThreeItemV1'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_697(); + } + } + class $serializer_697 { + constructor() { + $serializer_instance_697 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.card.v1.KThreeItemV1', this, 5); + tmp0_serialDesc.addElement_5pzumi_k$('base', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('titleIcon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('moreUri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('moreText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('items', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_710().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_646()), IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), tmp0_cached[4]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = 0; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp10_cached = Companion_getInstance_710().$childSerializers_1; + if (tmp9_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_646(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp9_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 4, tmp10_cached[4], tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + } else + while (tmp1_flag) { + tmp2_index = tmp9_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_646(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp9_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 4, tmp10_cached[4], tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp9_input.endStructure_1xqz0n_k$(tmp0_desc); + return KThreeItemV1_0.new_com_bapis_bilibili_app_card_v1_KThreeItemV1_25c7w0_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); + } + serialize_1t3qsc_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_710().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.base == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_646(), value.base); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.titleIcon === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.titleIcon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.moreUri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.moreUri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.moreText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.moreText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !equals(value.items, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 4, tmp2_cached[4], value.items); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_1t3qsc_k$(encoder, value instanceof KThreeItemV1_0 ? value : THROW_CCE()); + } + } + class KThreeItemV1_0 { + constructor(base, titleIcon, moreUri, moreText, items) { + Companion_getInstance_710(); + base = base === VOID ? null : base; + titleIcon = titleIcon === VOID ? 0 : titleIcon; + moreUri = moreUri === VOID ? '' : moreUri; + moreText = moreText === VOID ? '' : moreText; + items = items === VOID ? emptyList() : items; + this.base = base; + this.titleIcon = titleIcon; + this.moreUri = moreUri; + this.moreText = moreText; + this.items = items; + } + get_base_wojaxm_k$() { + return this.base; + } + get_titleIcon_qt8xx4_k$() { + return this.titleIcon; + } + get_moreUri_lrqju6_k$() { + return this.moreUri; + } + get_moreText_zfacyd_k$() { + return this.moreText; + } + get_items_it823b_k$() { + return this.items; + } + component1_7eebsc_k$() { + return this.base; + } + component2_7eebsb_k$() { + return this.titleIcon; + } + component3_7eebsa_k$() { + return this.moreUri; + } + component4_7eebs9_k$() { + return this.moreText; + } + component5_7eebs8_k$() { + return this.items; + } + copy_zcfdim_k$(base, titleIcon, moreUri, moreText, items) { + return new KThreeItemV1_0(base, titleIcon, moreUri, moreText, items); + } + copy(base, titleIcon, moreUri, moreText, items, $super) { + base = base === VOID ? this.base : base; + titleIcon = titleIcon === VOID ? this.titleIcon : titleIcon; + moreUri = moreUri === VOID ? this.moreUri : moreUri; + moreText = moreText === VOID ? this.moreText : moreText; + items = items === VOID ? this.items : items; + return this.copy_zcfdim_k$(base, titleIcon, moreUri, moreText, items); + } + toString() { + return 'KThreeItemV1(base=' + this.base + ', titleIcon=' + this.titleIcon + ', moreUri=' + this.moreUri + ', moreText=' + this.moreText + ', items=' + this.items + ')'; + } + hashCode() { + var result = this.base == null ? 0 : this.base.hashCode(); + result = imul(result, 31) + this.titleIcon | 0; + result = imul(result, 31) + getStringHashCode(this.moreUri) | 0; + result = imul(result, 31) + getStringHashCode(this.moreText) | 0; + result = imul(result, 31) + hashCode(this.items) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KThreeItemV1_0)) + return false; + var tmp0_other_with_cast = other instanceof KThreeItemV1_0 ? other : THROW_CCE(); + if (!equals(this.base, tmp0_other_with_cast.base)) + return false; + if (!(this.titleIcon === tmp0_other_with_cast.titleIcon)) + return false; + if (!(this.moreUri === tmp0_other_with_cast.moreUri)) + return false; + if (!(this.moreText === tmp0_other_with_cast.moreText)) + return false; + if (!equals(this.items, tmp0_other_with_cast.items)) + return false; + return true; + } + static new_com_bapis_bilibili_app_card_v1_KThreeItemV1_25c7w0_k$(seen1, base, titleIcon, moreUri, moreText, items, serializationConstructorMarker) { + Companion_getInstance_710(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_697().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.base = null; + else + $this.base = base; + if (0 === (seen1 & 2)) + $this.titleIcon = 0; + else + $this.titleIcon = titleIcon; + if (0 === (seen1 & 4)) + $this.moreUri = ''; + else + $this.moreUri = moreUri; + if (0 === (seen1 & 8)) + $this.moreText = ''; + else + $this.moreText = moreText; + if (0 === (seen1 & 16)) + $this.items = emptyList(); + else + $this.items = items; + return $this; + } + } + class Companion_711 { + constructor() { + this.targetPath = '/bilibili.app.card.v1.ThreeItemV1Item'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_698(); + } + } + class $serializer_698 { + constructor() { + $serializer_instance_698 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.card.v1.KThreeItemV1Item', this, 6); + tmp0_serialDesc.addElement_5pzumi_k$('base', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('coverLeftText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('coverLeftIcon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('desc1', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('desc2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('badge', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_646()), StringSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = 0; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp10_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_646(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + } else + while (tmp1_flag) { + tmp2_index = tmp10_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_646(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp10_input.endStructure_1xqz0n_k$(tmp0_desc); + return KThreeItemV1Item.new_com_bapis_bilibili_app_card_v1_KThreeItemV1Item_93z99q_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); + } + serialize_651453_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.base == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_646(), value.base); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.coverLeftText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.coverLeftText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.coverLeftIcon === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.coverLeftIcon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.desc1 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.desc1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.desc2 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.desc2); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.badge === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.badge); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_651453_k$(encoder, value instanceof KThreeItemV1Item ? value : THROW_CCE()); + } + } + class KThreeItemV1Item { + constructor(base, coverLeftText, coverLeftIcon, desc1, desc2, badge) { + Companion_instance_711; + base = base === VOID ? null : base; + coverLeftText = coverLeftText === VOID ? '' : coverLeftText; + coverLeftIcon = coverLeftIcon === VOID ? 0 : coverLeftIcon; + desc1 = desc1 === VOID ? '' : desc1; + desc2 = desc2 === VOID ? '' : desc2; + badge = badge === VOID ? '' : badge; + this.base = base; + this.coverLeftText = coverLeftText; + this.coverLeftIcon = coverLeftIcon; + this.desc1 = desc1; + this.desc2 = desc2; + this.badge = badge; + } + get_base_wojaxm_k$() { + return this.base; + } + get_coverLeftText_el6de_k$() { + return this.coverLeftText; + } + get_coverLeftIcon_ee3ta_k$() { + return this.coverLeftIcon; + } + get_desc1_iq7sev_k$() { + return this.desc1; + } + get_desc2_iq7sew_k$() { + return this.desc2; + } + get_badge_ip1cai_k$() { + return this.badge; + } + component1_7eebsc_k$() { + return this.base; + } + component2_7eebsb_k$() { + return this.coverLeftText; + } + component3_7eebsa_k$() { + return this.coverLeftIcon; + } + component4_7eebs9_k$() { + return this.desc1; + } + component5_7eebs8_k$() { + return this.desc2; + } + component6_7eebs7_k$() { + return this.badge; + } + copy_cpufju_k$(base, coverLeftText, coverLeftIcon, desc1, desc2, badge) { + return new KThreeItemV1Item(base, coverLeftText, coverLeftIcon, desc1, desc2, badge); + } + copy(base, coverLeftText, coverLeftIcon, desc1, desc2, badge, $super) { + base = base === VOID ? this.base : base; + coverLeftText = coverLeftText === VOID ? this.coverLeftText : coverLeftText; + coverLeftIcon = coverLeftIcon === VOID ? this.coverLeftIcon : coverLeftIcon; + desc1 = desc1 === VOID ? this.desc1 : desc1; + desc2 = desc2 === VOID ? this.desc2 : desc2; + badge = badge === VOID ? this.badge : badge; + return this.copy_cpufju_k$(base, coverLeftText, coverLeftIcon, desc1, desc2, badge); + } + toString() { + return 'KThreeItemV1Item(base=' + this.base + ', coverLeftText=' + this.coverLeftText + ', coverLeftIcon=' + this.coverLeftIcon + ', desc1=' + this.desc1 + ', desc2=' + this.desc2 + ', badge=' + this.badge + ')'; + } + hashCode() { + var result = this.base == null ? 0 : this.base.hashCode(); + result = imul(result, 31) + getStringHashCode(this.coverLeftText) | 0; + result = imul(result, 31) + this.coverLeftIcon | 0; + result = imul(result, 31) + getStringHashCode(this.desc1) | 0; + result = imul(result, 31) + getStringHashCode(this.desc2) | 0; + result = imul(result, 31) + getStringHashCode(this.badge) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KThreeItemV1Item)) + return false; + var tmp0_other_with_cast = other instanceof KThreeItemV1Item ? other : THROW_CCE(); + if (!equals(this.base, tmp0_other_with_cast.base)) + return false; + if (!(this.coverLeftText === tmp0_other_with_cast.coverLeftText)) + return false; + if (!(this.coverLeftIcon === tmp0_other_with_cast.coverLeftIcon)) + return false; + if (!(this.desc1 === tmp0_other_with_cast.desc1)) + return false; + if (!(this.desc2 === tmp0_other_with_cast.desc2)) + return false; + if (!(this.badge === tmp0_other_with_cast.badge)) + return false; + return true; + } + static new_com_bapis_bilibili_app_card_v1_KThreeItemV1Item_93z99q_k$(seen1, base, coverLeftText, coverLeftIcon, desc1, desc2, badge, serializationConstructorMarker) { + Companion_instance_711; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_698().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.base = null; + else + $this.base = base; + if (0 === (seen1 & 2)) + $this.coverLeftText = ''; + else + $this.coverLeftText = coverLeftText; + if (0 === (seen1 & 4)) + $this.coverLeftIcon = 0; + else + $this.coverLeftIcon = coverLeftIcon; + if (0 === (seen1 & 8)) + $this.desc1 = ''; + else + $this.desc1 = desc1; + if (0 === (seen1 & 16)) + $this.desc2 = ''; + else + $this.desc2 = desc2; + if (0 === (seen1 & 32)) + $this.badge = ''; + else + $this.badge = badge; + return $this; + } + } + class Companion_712 { + constructor() { + Companion_instance_712 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, new ArrayListSerializer($serializer_getInstance_700())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.card.v1.HotTopic'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_699(); + } + } + class $serializer_699 { + constructor() { + $serializer_instance_699 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.card.v1.KHotTopic', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('base', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('desc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('items', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_712().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_646()), StringSerializer_getInstance(), tmp0_cached[2]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp8_cached = Companion_getInstance_712().$childSerializers_1; + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_646(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp8_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_646(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp8_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KHotTopic_0.new_com_bapis_bilibili_app_card_v1_KHotTopic_oh59wx_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_9finvg_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_712().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.base == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_646(), value.base); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.desc === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.desc); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !equals(value.items, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 2, tmp2_cached[2], value.items); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_9finvg_k$(encoder, value instanceof KHotTopic_0 ? value : THROW_CCE()); + } + } + class KHotTopic_0 { + constructor(base, desc, items) { + Companion_getInstance_712(); + base = base === VOID ? null : base; + desc = desc === VOID ? '' : desc; + items = items === VOID ? emptyList() : items; + this.base = base; + this.desc = desc; + this.items = items; + } + get_base_wojaxm_k$() { + return this.base; + } + get_desc_woknve_k$() { + return this.desc; + } + get_items_it823b_k$() { + return this.items; + } + component1_7eebsc_k$() { + return this.base; + } + component2_7eebsb_k$() { + return this.desc; + } + component3_7eebsa_k$() { + return this.items; + } + copy_ahaskq_k$(base, desc, items) { + return new KHotTopic_0(base, desc, items); + } + copy(base, desc, items, $super) { + base = base === VOID ? this.base : base; + desc = desc === VOID ? this.desc : desc; + items = items === VOID ? this.items : items; + return this.copy_ahaskq_k$(base, desc, items); + } + toString() { + return 'KHotTopic(base=' + this.base + ', desc=' + this.desc + ', items=' + this.items + ')'; + } + hashCode() { + var result = this.base == null ? 0 : this.base.hashCode(); + result = imul(result, 31) + getStringHashCode(this.desc) | 0; + result = imul(result, 31) + hashCode(this.items) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KHotTopic_0)) + return false; + var tmp0_other_with_cast = other instanceof KHotTopic_0 ? other : THROW_CCE(); + if (!equals(this.base, tmp0_other_with_cast.base)) + return false; + if (!(this.desc === tmp0_other_with_cast.desc)) + return false; + if (!equals(this.items, tmp0_other_with_cast.items)) + return false; + return true; + } + static new_com_bapis_bilibili_app_card_v1_KHotTopic_oh59wx_k$(seen1, base, desc, items, serializationConstructorMarker) { + Companion_getInstance_712(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_699().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.base = null; + else + $this.base = base; + if (0 === (seen1 & 2)) + $this.desc = ''; + else + $this.desc = desc; + if (0 === (seen1 & 4)) + $this.items = emptyList(); + else + $this.items = items; + return $this; + } + } + class Companion_713 { + constructor() { + this.targetPath = '/bilibili.app.card.v1.HotTopicItem'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_700(); + } + } + class $serializer_700 { + constructor() { + $serializer_instance_700 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.card.v1.KHotTopicItem', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('uri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('param', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('name', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KHotTopicItem.new_com_bapis_bilibili_app_card_v1_KHotTopicItem_wlshav_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_e0r7lj_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.cover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.uri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.uri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.param === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.param); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.name === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.name); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_e0r7lj_k$(encoder, value instanceof KHotTopicItem ? value : THROW_CCE()); + } + } + class KHotTopicItem { + constructor(cover, uri, param, name) { + Companion_instance_713; + cover = cover === VOID ? '' : cover; + uri = uri === VOID ? '' : uri; + param = param === VOID ? '' : param; + name = name === VOID ? '' : name; + this.cover = cover; + this.uri = uri; + this.param = param; + this.name = name; + } + get_cover_ipug0e_k$() { + return this.cover; + } + get_uri_18iuil_k$() { + return this.uri; + } + get_param_iwqquc_k$() { + return this.param; + } + get_name_woqyms_k$() { + return this.name; + } + component1_7eebsc_k$() { + return this.cover; + } + component2_7eebsb_k$() { + return this.uri; + } + component3_7eebsa_k$() { + return this.param; + } + component4_7eebs9_k$() { + return this.name; + } + copy_hmmiyd_k$(cover, uri, param, name) { + return new KHotTopicItem(cover, uri, param, name); + } + copy(cover, uri, param, name, $super) { + cover = cover === VOID ? this.cover : cover; + uri = uri === VOID ? this.uri : uri; + param = param === VOID ? this.param : param; + name = name === VOID ? this.name : name; + return this.copy_hmmiyd_k$(cover, uri, param, name); + } + toString() { + return 'KHotTopicItem(cover=' + this.cover + ', uri=' + this.uri + ', param=' + this.param + ', name=' + this.name + ')'; + } + hashCode() { + var result = getStringHashCode(this.cover); + result = imul(result, 31) + getStringHashCode(this.uri) | 0; + result = imul(result, 31) + getStringHashCode(this.param) | 0; + result = imul(result, 31) + getStringHashCode(this.name) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KHotTopicItem)) + return false; + var tmp0_other_with_cast = other instanceof KHotTopicItem ? other : THROW_CCE(); + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + if (!(this.uri === tmp0_other_with_cast.uri)) + return false; + if (!(this.param === tmp0_other_with_cast.param)) + return false; + if (!(this.name === tmp0_other_with_cast.name)) + return false; + return true; + } + static new_com_bapis_bilibili_app_card_v1_KHotTopicItem_wlshav_k$(seen1, cover, uri, param, name, serializationConstructorMarker) { + Companion_instance_713; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_700().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.cover = ''; + else + $this.cover = cover; + if (0 === (seen1 & 2)) + $this.uri = ''; + else + $this.uri = uri; + if (0 === (seen1 & 4)) + $this.param = ''; + else + $this.param = param; + if (0 === (seen1 & 8)) + $this.name = ''; + else + $this.name = name; + return $this; + } + } + class Companion_714 { + constructor() { + Companion_instance_714 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, null, null, null, new ArrayListSerializer(StringSerializer_getInstance()), null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.card.v1.DynamicHot'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_701(); + } + } + class $serializer_701 { + constructor() { + $serializer_instance_701 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.card.v1.KDynamicHot', this, 9); + tmp0_serialDesc.addElement_5pzumi_k$('base', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('topLeftTitle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('desc1', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('desc2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('moreUri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('moreText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('covers', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('coverRightText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('topRcmdReasonStyle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_714().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_646()), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), tmp0_cached[6], StringSerializer_getInstance(), get_nullable($serializer_getInstance_662())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_local8 = null; + var tmp13_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp14_cached = Companion_getInstance_714().$childSerializers_1; + if (tmp13_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_646(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp13_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 6, tmp14_cached[6], tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_662(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + } else + while (tmp1_flag) { + tmp2_index = tmp13_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_646(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp13_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 6, tmp14_cached[6], tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_662(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp13_input.endStructure_1xqz0n_k$(tmp0_desc); + return KDynamicHot.new_com_bapis_bilibili_app_card_v1_KDynamicHot_m0crbj_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, null); + } + serialize_qlsb68_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_714().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.base == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_646(), value.base); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.topLeftTitle === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.topLeftTitle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.desc1 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.desc1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.desc2 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.desc2); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.moreUri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.moreUri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.moreText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.moreText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !equals(value.covers, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 6, tmp2_cached[6], value.covers); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.coverRightText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.coverRightText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.topRcmdReasonStyle == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 8, $serializer_getInstance_662(), value.topRcmdReasonStyle); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_qlsb68_k$(encoder, value instanceof KDynamicHot ? value : THROW_CCE()); + } + } + class KDynamicHot { + constructor(base, topLeftTitle, desc1, desc2, moreUri, moreText, covers, coverRightText, topRcmdReasonStyle) { + Companion_getInstance_714(); + base = base === VOID ? null : base; + topLeftTitle = topLeftTitle === VOID ? '' : topLeftTitle; + desc1 = desc1 === VOID ? '' : desc1; + desc2 = desc2 === VOID ? '' : desc2; + moreUri = moreUri === VOID ? '' : moreUri; + moreText = moreText === VOID ? '' : moreText; + covers = covers === VOID ? emptyList() : covers; + coverRightText = coverRightText === VOID ? '' : coverRightText; + topRcmdReasonStyle = topRcmdReasonStyle === VOID ? null : topRcmdReasonStyle; + this.base = base; + this.topLeftTitle = topLeftTitle; + this.desc1 = desc1; + this.desc2 = desc2; + this.moreUri = moreUri; + this.moreText = moreText; + this.covers = covers; + this.coverRightText = coverRightText; + this.topRcmdReasonStyle = topRcmdReasonStyle; + } + get_base_wojaxm_k$() { + return this.base; + } + get_topLeftTitle_abfojf_k$() { + return this.topLeftTitle; + } + get_desc1_iq7sev_k$() { + return this.desc1; + } + get_desc2_iq7sew_k$() { + return this.desc2; + } + get_moreUri_lrqju6_k$() { + return this.moreUri; + } + get_moreText_zfacyd_k$() { + return this.moreText; + } + get_covers_c0bcmd_k$() { + return this.covers; + } + get_coverRightText_t0bat7_k$() { + return this.coverRightText; + } + get_topRcmdReasonStyle_scbd09_k$() { + return this.topRcmdReasonStyle; + } + component1_7eebsc_k$() { + return this.base; + } + component2_7eebsb_k$() { + return this.topLeftTitle; + } + component3_7eebsa_k$() { + return this.desc1; + } + component4_7eebs9_k$() { + return this.desc2; + } + component5_7eebs8_k$() { + return this.moreUri; + } + component6_7eebs7_k$() { + return this.moreText; + } + component7_7eebs6_k$() { + return this.covers; + } + component8_7eebs5_k$() { + return this.coverRightText; + } + component9_7eebs4_k$() { + return this.topRcmdReasonStyle; + } + copy_sxkor7_k$(base, topLeftTitle, desc1, desc2, moreUri, moreText, covers, coverRightText, topRcmdReasonStyle) { + return new KDynamicHot(base, topLeftTitle, desc1, desc2, moreUri, moreText, covers, coverRightText, topRcmdReasonStyle); + } + copy(base, topLeftTitle, desc1, desc2, moreUri, moreText, covers, coverRightText, topRcmdReasonStyle, $super) { + base = base === VOID ? this.base : base; + topLeftTitle = topLeftTitle === VOID ? this.topLeftTitle : topLeftTitle; + desc1 = desc1 === VOID ? this.desc1 : desc1; + desc2 = desc2 === VOID ? this.desc2 : desc2; + moreUri = moreUri === VOID ? this.moreUri : moreUri; + moreText = moreText === VOID ? this.moreText : moreText; + covers = covers === VOID ? this.covers : covers; + coverRightText = coverRightText === VOID ? this.coverRightText : coverRightText; + topRcmdReasonStyle = topRcmdReasonStyle === VOID ? this.topRcmdReasonStyle : topRcmdReasonStyle; + return this.copy_sxkor7_k$(base, topLeftTitle, desc1, desc2, moreUri, moreText, covers, coverRightText, topRcmdReasonStyle); + } + toString() { + return 'KDynamicHot(base=' + this.base + ', topLeftTitle=' + this.topLeftTitle + ', desc1=' + this.desc1 + ', desc2=' + this.desc2 + ', moreUri=' + this.moreUri + ', moreText=' + this.moreText + ', covers=' + this.covers + ', coverRightText=' + this.coverRightText + ', topRcmdReasonStyle=' + this.topRcmdReasonStyle + ')'; + } + hashCode() { + var result = this.base == null ? 0 : this.base.hashCode(); + result = imul(result, 31) + getStringHashCode(this.topLeftTitle) | 0; + result = imul(result, 31) + getStringHashCode(this.desc1) | 0; + result = imul(result, 31) + getStringHashCode(this.desc2) | 0; + result = imul(result, 31) + getStringHashCode(this.moreUri) | 0; + result = imul(result, 31) + getStringHashCode(this.moreText) | 0; + result = imul(result, 31) + hashCode(this.covers) | 0; + result = imul(result, 31) + getStringHashCode(this.coverRightText) | 0; + result = imul(result, 31) + (this.topRcmdReasonStyle == null ? 0 : this.topRcmdReasonStyle.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KDynamicHot)) + return false; + var tmp0_other_with_cast = other instanceof KDynamicHot ? other : THROW_CCE(); + if (!equals(this.base, tmp0_other_with_cast.base)) + return false; + if (!(this.topLeftTitle === tmp0_other_with_cast.topLeftTitle)) + return false; + if (!(this.desc1 === tmp0_other_with_cast.desc1)) + return false; + if (!(this.desc2 === tmp0_other_with_cast.desc2)) + return false; + if (!(this.moreUri === tmp0_other_with_cast.moreUri)) + return false; + if (!(this.moreText === tmp0_other_with_cast.moreText)) + return false; + if (!equals(this.covers, tmp0_other_with_cast.covers)) + return false; + if (!(this.coverRightText === tmp0_other_with_cast.coverRightText)) + return false; + if (!equals(this.topRcmdReasonStyle, tmp0_other_with_cast.topRcmdReasonStyle)) + return false; + return true; + } + static new_com_bapis_bilibili_app_card_v1_KDynamicHot_m0crbj_k$(seen1, base, topLeftTitle, desc1, desc2, moreUri, moreText, covers, coverRightText, topRcmdReasonStyle, serializationConstructorMarker) { + Companion_getInstance_714(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_701().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.base = null; + else + $this.base = base; + if (0 === (seen1 & 2)) + $this.topLeftTitle = ''; + else + $this.topLeftTitle = topLeftTitle; + if (0 === (seen1 & 4)) + $this.desc1 = ''; + else + $this.desc1 = desc1; + if (0 === (seen1 & 8)) + $this.desc2 = ''; + else + $this.desc2 = desc2; + if (0 === (seen1 & 16)) + $this.moreUri = ''; + else + $this.moreUri = moreUri; + if (0 === (seen1 & 32)) + $this.moreText = ''; + else + $this.moreText = moreText; + if (0 === (seen1 & 64)) + $this.covers = emptyList(); + else + $this.covers = covers; + if (0 === (seen1 & 128)) + $this.coverRightText = ''; + else + $this.coverRightText = coverRightText; + if (0 === (seen1 & 256)) + $this.topRcmdReasonStyle = null; + else + $this.topRcmdReasonStyle = topRcmdReasonStyle; + return $this; + } + } + class Companion_715 { + constructor() { + this.targetPath = '/bilibili.app.card.v1.MiddleCoverV3'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_702(); + } + } + class $serializer_702 { + constructor() { + $serializer_instance_702 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.card.v1.KMiddleCoverV3', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('base', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('desc1', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('desc2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('coverBadgeStyle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_646()), StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_662())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_646(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_662(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_646(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_662(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KMiddleCoverV3_0.new_com_bapis_bilibili_app_card_v1_KMiddleCoverV3_n1zx27_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_ytki09_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.base == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_646(), value.base); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.desc1 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.desc1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.desc2 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.desc2); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.coverBadgeStyle == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_662(), value.coverBadgeStyle); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_ytki09_k$(encoder, value instanceof KMiddleCoverV3_0 ? value : THROW_CCE()); + } + } + class KMiddleCoverV3_0 { + constructor(base, desc1, desc2, coverBadgeStyle) { + Companion_instance_715; + base = base === VOID ? null : base; + desc1 = desc1 === VOID ? '' : desc1; + desc2 = desc2 === VOID ? '' : desc2; + coverBadgeStyle = coverBadgeStyle === VOID ? null : coverBadgeStyle; + this.base = base; + this.desc1 = desc1; + this.desc2 = desc2; + this.coverBadgeStyle = coverBadgeStyle; + } + get_base_wojaxm_k$() { + return this.base; + } + get_desc1_iq7sev_k$() { + return this.desc1; + } + get_desc2_iq7sew_k$() { + return this.desc2; + } + get_coverBadgeStyle_goovzw_k$() { + return this.coverBadgeStyle; + } + component1_7eebsc_k$() { + return this.base; + } + component2_7eebsb_k$() { + return this.desc1; + } + component3_7eebsa_k$() { + return this.desc2; + } + component4_7eebs9_k$() { + return this.coverBadgeStyle; + } + copy_m38773_k$(base, desc1, desc2, coverBadgeStyle) { + return new KMiddleCoverV3_0(base, desc1, desc2, coverBadgeStyle); + } + copy(base, desc1, desc2, coverBadgeStyle, $super) { + base = base === VOID ? this.base : base; + desc1 = desc1 === VOID ? this.desc1 : desc1; + desc2 = desc2 === VOID ? this.desc2 : desc2; + coverBadgeStyle = coverBadgeStyle === VOID ? this.coverBadgeStyle : coverBadgeStyle; + return this.copy_m38773_k$(base, desc1, desc2, coverBadgeStyle); + } + toString() { + return 'KMiddleCoverV3(base=' + this.base + ', desc1=' + this.desc1 + ', desc2=' + this.desc2 + ', coverBadgeStyle=' + this.coverBadgeStyle + ')'; + } + hashCode() { + var result = this.base == null ? 0 : this.base.hashCode(); + result = imul(result, 31) + getStringHashCode(this.desc1) | 0; + result = imul(result, 31) + getStringHashCode(this.desc2) | 0; + result = imul(result, 31) + (this.coverBadgeStyle == null ? 0 : this.coverBadgeStyle.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KMiddleCoverV3_0)) + return false; + var tmp0_other_with_cast = other instanceof KMiddleCoverV3_0 ? other : THROW_CCE(); + if (!equals(this.base, tmp0_other_with_cast.base)) + return false; + if (!(this.desc1 === tmp0_other_with_cast.desc1)) + return false; + if (!(this.desc2 === tmp0_other_with_cast.desc2)) + return false; + if (!equals(this.coverBadgeStyle, tmp0_other_with_cast.coverBadgeStyle)) + return false; + return true; + } + static new_com_bapis_bilibili_app_card_v1_KMiddleCoverV3_n1zx27_k$(seen1, base, desc1, desc2, coverBadgeStyle, serializationConstructorMarker) { + Companion_instance_715; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_702().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.base = null; + else + $this.base = base; + if (0 === (seen1 & 2)) + $this.desc1 = ''; + else + $this.desc1 = desc1; + if (0 === (seen1 & 4)) + $this.desc2 = ''; + else + $this.desc2 = desc2; + if (0 === (seen1 & 8)) + $this.coverBadgeStyle = null; + else + $this.coverBadgeStyle = coverBadgeStyle; + return $this; + } + } + class Companion_716 { + constructor() { + this.targetPath = '/bilibili.app.card.v1.LargeCoverV4'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_703(); + } + } + class $serializer_703 { + constructor() { + $serializer_instance_703 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.card.v1.KLargeCoverV4', this, 12); + tmp0_serialDesc.addElement_5pzumi_k$('base', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('coverLeftText1', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('coverLeftText2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('coverLeftText3', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('coverBadge', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('canPlay', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('up', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('shortLink', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('shareSubtitle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('playNumber', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('bvid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('subParam', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_646()), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), get_nullable($serializer_getInstance_664()), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = 0; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_local8 = null; + var tmp13_local9 = null; + var tmp14_local10 = null; + var tmp15_local11 = null; + var tmp16_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp16_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp16_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_646(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp16_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_664(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + } else + while (tmp1_flag) { + tmp2_index = tmp16_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp16_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_646(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp16_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_664(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp16_input.endStructure_1xqz0n_k$(tmp0_desc); + return KLargeCoverV4_0.new_com_bapis_bilibili_app_card_v1_KLargeCoverV4_f99689_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, null); + } + serialize_q4q5uk_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.base == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_646(), value.base); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.coverLeftText1 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.coverLeftText1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.coverLeftText2 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.coverLeftText2); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.coverLeftText3 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.coverLeftText3); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.coverBadge === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.coverBadge); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.canPlay === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 5, value.canPlay); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.up == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 6, $serializer_getInstance_664(), value.up); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.shortLink === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.shortLink); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.shareSubtitle === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 8, value.shareSubtitle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.playNumber === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 9, value.playNumber); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.bvid === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 10, value.bvid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.subParam === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 11, value.subParam); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_q4q5uk_k$(encoder, value instanceof KLargeCoverV4_0 ? value : THROW_CCE()); + } + } + class KLargeCoverV4_0 { + constructor(base, coverLeftText1, coverLeftText2, coverLeftText3, coverBadge, canPlay, up, shortLink, shareSubtitle, playNumber, bvid, subParam) { + Companion_instance_716; + base = base === VOID ? null : base; + coverLeftText1 = coverLeftText1 === VOID ? '' : coverLeftText1; + coverLeftText2 = coverLeftText2 === VOID ? '' : coverLeftText2; + coverLeftText3 = coverLeftText3 === VOID ? '' : coverLeftText3; + coverBadge = coverBadge === VOID ? '' : coverBadge; + canPlay = canPlay === VOID ? 0 : canPlay; + up = up === VOID ? null : up; + shortLink = shortLink === VOID ? '' : shortLink; + shareSubtitle = shareSubtitle === VOID ? '' : shareSubtitle; + playNumber = playNumber === VOID ? '' : playNumber; + bvid = bvid === VOID ? '' : bvid; + subParam = subParam === VOID ? '' : subParam; + this.base = base; + this.coverLeftText1 = coverLeftText1; + this.coverLeftText2 = coverLeftText2; + this.coverLeftText3 = coverLeftText3; + this.coverBadge = coverBadge; + this.canPlay = canPlay; + this.up = up; + this.shortLink = shortLink; + this.shareSubtitle = shareSubtitle; + this.playNumber = playNumber; + this.bvid = bvid; + this.subParam = subParam; + } + get_base_wojaxm_k$() { + return this.base; + } + get_coverLeftText1_ck8hkf_k$() { + return this.coverLeftText1; + } + get_coverLeftText2_ck8hkg_k$() { + return this.coverLeftText2; + } + get_coverLeftText3_ck8hkh_k$() { + return this.coverLeftText3; + } + get_coverBadge_3cu5x_k$() { + return this.coverBadge; + } + get_canPlay_acszln_k$() { + return this.canPlay; + } + get_up_kntnmk_k$() { + return this.up; + } + get_shortLink_p122oj_k$() { + return this.shortLink; + } + get_shareSubtitle_yf1tri_k$() { + return this.shareSubtitle; + } + get_playNumber_3nm0py_k$() { + return this.playNumber; + } + get_bvid_wojq9k_k$() { + return this.bvid; + } + get_subParam_4lgxyu_k$() { + return this.subParam; + } + component1_7eebsc_k$() { + return this.base; + } + component2_7eebsb_k$() { + return this.coverLeftText1; + } + component3_7eebsa_k$() { + return this.coverLeftText2; + } + component4_7eebs9_k$() { + return this.coverLeftText3; + } + component5_7eebs8_k$() { + return this.coverBadge; + } + component6_7eebs7_k$() { + return this.canPlay; + } + component7_7eebs6_k$() { + return this.up; + } + component8_7eebs5_k$() { + return this.shortLink; + } + component9_7eebs4_k$() { + return this.shareSubtitle; + } + component10_gazzfo_k$() { + return this.playNumber; + } + component11_gazzfn_k$() { + return this.bvid; + } + component12_gazzfm_k$() { + return this.subParam; + } + copy_8c45cf_k$(base, coverLeftText1, coverLeftText2, coverLeftText3, coverBadge, canPlay, up, shortLink, shareSubtitle, playNumber, bvid, subParam) { + return new KLargeCoverV4_0(base, coverLeftText1, coverLeftText2, coverLeftText3, coverBadge, canPlay, up, shortLink, shareSubtitle, playNumber, bvid, subParam); + } + copy(base, coverLeftText1, coverLeftText2, coverLeftText3, coverBadge, canPlay, up, shortLink, shareSubtitle, playNumber, bvid, subParam, $super) { + base = base === VOID ? this.base : base; + coverLeftText1 = coverLeftText1 === VOID ? this.coverLeftText1 : coverLeftText1; + coverLeftText2 = coverLeftText2 === VOID ? this.coverLeftText2 : coverLeftText2; + coverLeftText3 = coverLeftText3 === VOID ? this.coverLeftText3 : coverLeftText3; + coverBadge = coverBadge === VOID ? this.coverBadge : coverBadge; + canPlay = canPlay === VOID ? this.canPlay : canPlay; + up = up === VOID ? this.up : up; + shortLink = shortLink === VOID ? this.shortLink : shortLink; + shareSubtitle = shareSubtitle === VOID ? this.shareSubtitle : shareSubtitle; + playNumber = playNumber === VOID ? this.playNumber : playNumber; + bvid = bvid === VOID ? this.bvid : bvid; + subParam = subParam === VOID ? this.subParam : subParam; + return this.copy_8c45cf_k$(base, coverLeftText1, coverLeftText2, coverLeftText3, coverBadge, canPlay, up, shortLink, shareSubtitle, playNumber, bvid, subParam); + } + toString() { + return 'KLargeCoverV4(base=' + this.base + ', coverLeftText1=' + this.coverLeftText1 + ', coverLeftText2=' + this.coverLeftText2 + ', coverLeftText3=' + this.coverLeftText3 + ', coverBadge=' + this.coverBadge + ', canPlay=' + this.canPlay + ', up=' + this.up + ', shortLink=' + this.shortLink + ', shareSubtitle=' + this.shareSubtitle + ', playNumber=' + this.playNumber + ', bvid=' + this.bvid + ', subParam=' + this.subParam + ')'; + } + hashCode() { + var result = this.base == null ? 0 : this.base.hashCode(); + result = imul(result, 31) + getStringHashCode(this.coverLeftText1) | 0; + result = imul(result, 31) + getStringHashCode(this.coverLeftText2) | 0; + result = imul(result, 31) + getStringHashCode(this.coverLeftText3) | 0; + result = imul(result, 31) + getStringHashCode(this.coverBadge) | 0; + result = imul(result, 31) + this.canPlay | 0; + result = imul(result, 31) + (this.up == null ? 0 : this.up.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.shortLink) | 0; + result = imul(result, 31) + getStringHashCode(this.shareSubtitle) | 0; + result = imul(result, 31) + getStringHashCode(this.playNumber) | 0; + result = imul(result, 31) + getStringHashCode(this.bvid) | 0; + result = imul(result, 31) + getStringHashCode(this.subParam) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KLargeCoverV4_0)) + return false; + var tmp0_other_with_cast = other instanceof KLargeCoverV4_0 ? other : THROW_CCE(); + if (!equals(this.base, tmp0_other_with_cast.base)) + return false; + if (!(this.coverLeftText1 === tmp0_other_with_cast.coverLeftText1)) + return false; + if (!(this.coverLeftText2 === tmp0_other_with_cast.coverLeftText2)) + return false; + if (!(this.coverLeftText3 === tmp0_other_with_cast.coverLeftText3)) + return false; + if (!(this.coverBadge === tmp0_other_with_cast.coverBadge)) + return false; + if (!(this.canPlay === tmp0_other_with_cast.canPlay)) + return false; + if (!equals(this.up, tmp0_other_with_cast.up)) + return false; + if (!(this.shortLink === tmp0_other_with_cast.shortLink)) + return false; + if (!(this.shareSubtitle === tmp0_other_with_cast.shareSubtitle)) + return false; + if (!(this.playNumber === tmp0_other_with_cast.playNumber)) + return false; + if (!(this.bvid === tmp0_other_with_cast.bvid)) + return false; + if (!(this.subParam === tmp0_other_with_cast.subParam)) + return false; + return true; + } + static new_com_bapis_bilibili_app_card_v1_KLargeCoverV4_f99689_k$(seen1, base, coverLeftText1, coverLeftText2, coverLeftText3, coverBadge, canPlay, up, shortLink, shareSubtitle, playNumber, bvid, subParam, serializationConstructorMarker) { + Companion_instance_716; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_703().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.base = null; + else + $this.base = base; + if (0 === (seen1 & 2)) + $this.coverLeftText1 = ''; + else + $this.coverLeftText1 = coverLeftText1; + if (0 === (seen1 & 4)) + $this.coverLeftText2 = ''; + else + $this.coverLeftText2 = coverLeftText2; + if (0 === (seen1 & 8)) + $this.coverLeftText3 = ''; + else + $this.coverLeftText3 = coverLeftText3; + if (0 === (seen1 & 16)) + $this.coverBadge = ''; + else + $this.coverBadge = coverBadge; + if (0 === (seen1 & 32)) + $this.canPlay = 0; + else + $this.canPlay = canPlay; + if (0 === (seen1 & 64)) + $this.up = null; + else + $this.up = up; + if (0 === (seen1 & 128)) + $this.shortLink = ''; + else + $this.shortLink = shortLink; + if (0 === (seen1 & 256)) + $this.shareSubtitle = ''; + else + $this.shareSubtitle = shareSubtitle; + if (0 === (seen1 & 512)) + $this.playNumber = ''; + else + $this.playNumber = playNumber; + if (0 === (seen1 & 1024)) + $this.bvid = ''; + else + $this.bvid = bvid; + if (0 === (seen1 & 2048)) + $this.subParam = ''; + else + $this.subParam = subParam; + return $this; + } + } + class Companion_717 { + constructor() { + Companion_instance_717 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, new ArrayListSerializer($serializer_getInstance_705())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.card.v1.PopularTopEntrance'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_704(); + } + } + class $serializer_704 { + constructor() { + $serializer_instance_704 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.card.v1.KPopularTopEntrance', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('base', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('items', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_717().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_646()), tmp0_cached[1]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp7_cached = Companion_getInstance_717().$childSerializers_1; + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_646(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_646(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KPopularTopEntrance_0.new_com_bapis_bilibili_app_card_v1_KPopularTopEntrance_vjy1xg_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_ufnx7w_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_717().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.base == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_646(), value.base); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !equals(value.items, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 1, tmp2_cached[1], value.items); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_ufnx7w_k$(encoder, value instanceof KPopularTopEntrance_0 ? value : THROW_CCE()); + } + } + class KPopularTopEntrance_0 { + constructor(base, items) { + Companion_getInstance_717(); + base = base === VOID ? null : base; + items = items === VOID ? emptyList() : items; + this.base = base; + this.items = items; + } + get_base_wojaxm_k$() { + return this.base; + } + get_items_it823b_k$() { + return this.items; + } + component1_7eebsc_k$() { + return this.base; + } + component2_7eebsb_k$() { + return this.items; + } + copy_bso20k_k$(base, items) { + return new KPopularTopEntrance_0(base, items); + } + copy(base, items, $super) { + base = base === VOID ? this.base : base; + items = items === VOID ? this.items : items; + return this.copy_bso20k_k$(base, items); + } + toString() { + return 'KPopularTopEntrance(base=' + this.base + ', items=' + this.items + ')'; + } + hashCode() { + var result = this.base == null ? 0 : this.base.hashCode(); + result = imul(result, 31) + hashCode(this.items) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KPopularTopEntrance_0)) + return false; + var tmp0_other_with_cast = other instanceof KPopularTopEntrance_0 ? other : THROW_CCE(); + if (!equals(this.base, tmp0_other_with_cast.base)) + return false; + if (!equals(this.items, tmp0_other_with_cast.items)) + return false; + return true; + } + static new_com_bapis_bilibili_app_card_v1_KPopularTopEntrance_vjy1xg_k$(seen1, base, items, serializationConstructorMarker) { + Companion_getInstance_717(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_704().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.base = null; + else + $this.base = base; + if (0 === (seen1 & 2)) + $this.items = emptyList(); + else + $this.items = items; + return $this; + } + } + class Companion_718 { + constructor() { + this.targetPath = '/bilibili.app.card.v1.EntranceItem'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_705(); + } + } + class $serializer_705 { + constructor() { + $serializer_instance_705 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.card.v1.KEntranceItem', this, 8); + tmp0_serialDesc.addElement_5pzumi_k$('goto', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('icon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('moduleId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('uri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('entranceId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('bubble', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('entranceType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), get_nullable($serializer_getInstance_706()), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = new Long(0, 0); + var tmp10_local6 = null; + var tmp11_local7 = 0; + var tmp12_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp12_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_706(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + } else + while (tmp1_flag) { + tmp2_index = tmp12_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_706(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp12_input.endStructure_1xqz0n_k$(tmp0_desc); + return KEntranceItem.new_com_bapis_bilibili_app_card_v1_KEntranceItem_yifoxe_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null); + } + serialize_l5j2bv_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.goto === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.goto); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.icon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.icon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.moduleId === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.moduleId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.uri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.uri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !value.entranceId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 5, value.entranceId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.bubble == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 6, $serializer_getInstance_706(), value.bubble); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.entranceType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 7, value.entranceType); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_l5j2bv_k$(encoder, value instanceof KEntranceItem ? value : THROW_CCE()); + } + } + class KEntranceItem { + constructor(goto, icon, title, moduleId, uri, entranceId, bubble, entranceType) { + Companion_instance_718; + goto = goto === VOID ? '' : goto; + icon = icon === VOID ? '' : icon; + title = title === VOID ? '' : title; + moduleId = moduleId === VOID ? '' : moduleId; + uri = uri === VOID ? '' : uri; + entranceId = entranceId === VOID ? new Long(0, 0) : entranceId; + bubble = bubble === VOID ? null : bubble; + entranceType = entranceType === VOID ? 0 : entranceType; + this.goto = goto; + this.icon = icon; + this.title = title; + this.moduleId = moduleId; + this.uri = uri; + this.entranceId = entranceId; + this.bubble = bubble; + this.entranceType = entranceType; + } + get_goto_womsa4_k$() { + return this.goto; + } + get_icon_wont8i_k$() { + return this.icon; + } + get_title_iz32un_k$() { + return this.title; + } + get_moduleId_t8ezjk_k$() { + return this.moduleId; + } + get_uri_18iuil_k$() { + return this.uri; + } + get_entranceId_77m7lm_k$() { + return this.entranceId; + } + get_bubble_bm7no5_k$() { + return this.bubble; + } + get_entranceType_uowyhz_k$() { + return this.entranceType; + } + component1_7eebsc_k$() { + return this.goto; + } + component2_7eebsb_k$() { + return this.icon; + } + component3_7eebsa_k$() { + return this.title; + } + component4_7eebs9_k$() { + return this.moduleId; + } + component5_7eebs8_k$() { + return this.uri; + } + component6_7eebs7_k$() { + return this.entranceId; + } + component7_7eebs6_k$() { + return this.bubble; + } + component8_7eebs5_k$() { + return this.entranceType; + } + copy_8it3zr_k$(goto, icon, title, moduleId, uri, entranceId, bubble, entranceType) { + return new KEntranceItem(goto, icon, title, moduleId, uri, entranceId, bubble, entranceType); + } + copy(goto, icon, title, moduleId, uri, entranceId, bubble, entranceType, $super) { + goto = goto === VOID ? this.goto : goto; + icon = icon === VOID ? this.icon : icon; + title = title === VOID ? this.title : title; + moduleId = moduleId === VOID ? this.moduleId : moduleId; + uri = uri === VOID ? this.uri : uri; + entranceId = entranceId === VOID ? this.entranceId : entranceId; + bubble = bubble === VOID ? this.bubble : bubble; + entranceType = entranceType === VOID ? this.entranceType : entranceType; + return this.copy_8it3zr_k$(goto, icon, title, moduleId, uri, entranceId, bubble, entranceType); + } + toString() { + return 'KEntranceItem(goto=' + this.goto + ', icon=' + this.icon + ', title=' + this.title + ', moduleId=' + this.moduleId + ', uri=' + this.uri + ', entranceId=' + this.entranceId.toString() + ', bubble=' + this.bubble + ', entranceType=' + this.entranceType + ')'; + } + hashCode() { + var result = getStringHashCode(this.goto); + result = imul(result, 31) + getStringHashCode(this.icon) | 0; + result = imul(result, 31) + getStringHashCode(this.title) | 0; + result = imul(result, 31) + getStringHashCode(this.moduleId) | 0; + result = imul(result, 31) + getStringHashCode(this.uri) | 0; + result = imul(result, 31) + this.entranceId.hashCode() | 0; + result = imul(result, 31) + (this.bubble == null ? 0 : this.bubble.hashCode()) | 0; + result = imul(result, 31) + this.entranceType | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KEntranceItem)) + return false; + var tmp0_other_with_cast = other instanceof KEntranceItem ? other : THROW_CCE(); + if (!(this.goto === tmp0_other_with_cast.goto)) + return false; + if (!(this.icon === tmp0_other_with_cast.icon)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.moduleId === tmp0_other_with_cast.moduleId)) + return false; + if (!(this.uri === tmp0_other_with_cast.uri)) + return false; + if (!this.entranceId.equals(tmp0_other_with_cast.entranceId)) + return false; + if (!equals(this.bubble, tmp0_other_with_cast.bubble)) + return false; + if (!(this.entranceType === tmp0_other_with_cast.entranceType)) + return false; + return true; + } + static new_com_bapis_bilibili_app_card_v1_KEntranceItem_yifoxe_k$(seen1, goto, icon, title, moduleId, uri, entranceId, bubble, entranceType, serializationConstructorMarker) { + Companion_instance_718; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_705().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.goto = ''; + else + $this.goto = goto; + if (0 === (seen1 & 2)) + $this.icon = ''; + else + $this.icon = icon; + if (0 === (seen1 & 4)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 8)) + $this.moduleId = ''; + else + $this.moduleId = moduleId; + if (0 === (seen1 & 16)) + $this.uri = ''; + else + $this.uri = uri; + if (0 === (seen1 & 32)) + $this.entranceId = new Long(0, 0); + else + $this.entranceId = entranceId; + if (0 === (seen1 & 64)) + $this.bubble = null; + else + $this.bubble = bubble; + if (0 === (seen1 & 128)) + $this.entranceType = 0; + else + $this.entranceType = entranceType; + return $this; + } + } + class Companion_719 { + constructor() { + this.targetPath = '/bilibili.app.card.v1.Bubble'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_706(); + } + } + class $serializer_706 { + constructor() { + $serializer_instance_706 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.card.v1.KBubble', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('bubbleContent', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('version', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('stime', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = 0; + var tmp6_local2 = new Long(0, 0); + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KBubble.new_com_bapis_bilibili_app_card_v1_KBubble_syrvdj_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_q33v0u_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.bubbleContent === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.bubbleContent); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.version === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.version); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.stime.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.stime); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_q33v0u_k$(encoder, value instanceof KBubble ? value : THROW_CCE()); + } + } + class KBubble { + constructor(bubbleContent, version, stime) { + Companion_instance_719; + bubbleContent = bubbleContent === VOID ? '' : bubbleContent; + version = version === VOID ? 0 : version; + stime = stime === VOID ? new Long(0, 0) : stime; + this.bubbleContent = bubbleContent; + this.version = version; + this.stime = stime; + } + get_bubbleContent_wtfrc4_k$() { + return this.bubbleContent; + } + get_version_72w4j3_k$() { + return this.version; + } + get_stime_iyq2zb_k$() { + return this.stime; + } + component1_7eebsc_k$() { + return this.bubbleContent; + } + component2_7eebsb_k$() { + return this.version; + } + component3_7eebsa_k$() { + return this.stime; + } + copy_rf96jz_k$(bubbleContent, version, stime) { + return new KBubble(bubbleContent, version, stime); + } + copy(bubbleContent, version, stime, $super) { + bubbleContent = bubbleContent === VOID ? this.bubbleContent : bubbleContent; + version = version === VOID ? this.version : version; + stime = stime === VOID ? this.stime : stime; + return this.copy_rf96jz_k$(bubbleContent, version, stime); + } + toString() { + return 'KBubble(bubbleContent=' + this.bubbleContent + ', version=' + this.version + ', stime=' + this.stime.toString() + ')'; + } + hashCode() { + var result = getStringHashCode(this.bubbleContent); + result = imul(result, 31) + this.version | 0; + result = imul(result, 31) + this.stime.hashCode() | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KBubble)) + return false; + var tmp0_other_with_cast = other instanceof KBubble ? other : THROW_CCE(); + if (!(this.bubbleContent === tmp0_other_with_cast.bubbleContent)) + return false; + if (!(this.version === tmp0_other_with_cast.version)) + return false; + if (!this.stime.equals(tmp0_other_with_cast.stime)) + return false; + return true; + } + static new_com_bapis_bilibili_app_card_v1_KBubble_syrvdj_k$(seen1, bubbleContent, version, stime, serializationConstructorMarker) { + Companion_instance_719; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_706().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.bubbleContent = ''; + else + $this.bubbleContent = bubbleContent; + if (0 === (seen1 & 2)) + $this.version = 0; + else + $this.version = version; + if (0 === (seen1 & 4)) + $this.stime = new Long(0, 0); + else + $this.stime = stime; + return $this; + } + } + class Companion_720 { + constructor() { + Companion_instance_720 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, null, new ArrayListSerializer($serializer_getInstance_708())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.card.v1.TopicList'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_707(); + } + } + class $serializer_707 { + constructor() { + $serializer_instance_707 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.card.v1.KTopicList', this, 5); + tmp0_serialDesc.addElement_5pzumi_k$('base', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('titleIcon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('moreButton', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('topicListItem', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_720().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_646()), StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_709()), tmp0_cached[4]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp10_cached = Companion_getInstance_720().$childSerializers_1; + if (tmp9_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_646(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_709(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp9_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 4, tmp10_cached[4], tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + } else + while (tmp1_flag) { + tmp2_index = tmp9_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_646(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_709(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp9_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 4, tmp10_cached[4], tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp9_input.endStructure_1xqz0n_k$(tmp0_desc); + return KTopicList_0.new_com_bapis_bilibili_app_card_v1_KTopicList_7dv9hv_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); + } + serialize_jcgo5h_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_720().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.base == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_646(), value.base); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.titleIcon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.titleIcon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.moreButton == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_709(), value.moreButton); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !equals(value.topicListItem, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 4, tmp2_cached[4], value.topicListItem); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_jcgo5h_k$(encoder, value instanceof KTopicList_0 ? value : THROW_CCE()); + } + } + class KTopicList_0 { + constructor(base, title, titleIcon, moreButton, topicListItem) { + Companion_getInstance_720(); + base = base === VOID ? null : base; + title = title === VOID ? '' : title; + titleIcon = titleIcon === VOID ? '' : titleIcon; + moreButton = moreButton === VOID ? null : moreButton; + topicListItem = topicListItem === VOID ? emptyList() : topicListItem; + this.base = base; + this.title = title; + this.titleIcon = titleIcon; + this.moreButton = moreButton; + this.topicListItem = topicListItem; + } + get_base_wojaxm_k$() { + return this.base; + } + get_title_iz32un_k$() { + return this.title; + } + get_titleIcon_qt8xx4_k$() { + return this.titleIcon; + } + get_moreButton_rkohw0_k$() { + return this.moreButton; + } + get_topicListItem_s7v5rr_k$() { + return this.topicListItem; + } + component1_7eebsc_k$() { + return this.base; + } + component2_7eebsb_k$() { + return this.title; + } + component3_7eebsa_k$() { + return this.titleIcon; + } + component4_7eebs9_k$() { + return this.moreButton; + } + component5_7eebs8_k$() { + return this.topicListItem; + } + copy_ln6qe6_k$(base, title, titleIcon, moreButton, topicListItem) { + return new KTopicList_0(base, title, titleIcon, moreButton, topicListItem); + } + copy(base, title, titleIcon, moreButton, topicListItem, $super) { + base = base === VOID ? this.base : base; + title = title === VOID ? this.title : title; + titleIcon = titleIcon === VOID ? this.titleIcon : titleIcon; + moreButton = moreButton === VOID ? this.moreButton : moreButton; + topicListItem = topicListItem === VOID ? this.topicListItem : topicListItem; + return this.copy_ln6qe6_k$(base, title, titleIcon, moreButton, topicListItem); + } + toString() { + return 'KTopicList(base=' + this.base + ', title=' + this.title + ', titleIcon=' + this.titleIcon + ', moreButton=' + this.moreButton + ', topicListItem=' + this.topicListItem + ')'; + } + hashCode() { + var result = this.base == null ? 0 : this.base.hashCode(); + result = imul(result, 31) + getStringHashCode(this.title) | 0; + result = imul(result, 31) + getStringHashCode(this.titleIcon) | 0; + result = imul(result, 31) + (this.moreButton == null ? 0 : this.moreButton.hashCode()) | 0; + result = imul(result, 31) + hashCode(this.topicListItem) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KTopicList_0)) + return false; + var tmp0_other_with_cast = other instanceof KTopicList_0 ? other : THROW_CCE(); + if (!equals(this.base, tmp0_other_with_cast.base)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.titleIcon === tmp0_other_with_cast.titleIcon)) + return false; + if (!equals(this.moreButton, tmp0_other_with_cast.moreButton)) + return false; + if (!equals(this.topicListItem, tmp0_other_with_cast.topicListItem)) + return false; + return true; + } + static new_com_bapis_bilibili_app_card_v1_KTopicList_7dv9hv_k$(seen1, base, title, titleIcon, moreButton, topicListItem, serializationConstructorMarker) { + Companion_getInstance_720(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_707().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.base = null; + else + $this.base = base; + if (0 === (seen1 & 2)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 4)) + $this.titleIcon = ''; + else + $this.titleIcon = titleIcon; + if (0 === (seen1 & 8)) + $this.moreButton = null; + else + $this.moreButton = moreButton; + if (0 === (seen1 & 16)) + $this.topicListItem = emptyList(); + else + $this.topicListItem = topicListItem; + return $this; + } + } + class Companion_721 { + constructor() { + this.targetPath = '/bilibili.app.card.v1.TopicListItem'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_708(); + } + } + class $serializer_708 { + constructor() { + $serializer_instance_708 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.card.v1.KTopicListItem', this, 7); + tmp0_serialDesc.addElement_5pzumi_k$('icon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('iconTitle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('topicId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('topicName', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('url', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('upMid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('position', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = new Long(0, 0); + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = new Long(0, 0); + var tmp10_local6 = new Long(0, 0); + var tmp11_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp11_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + } else + while (tmp1_flag) { + tmp2_index = tmp11_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp11_input.endStructure_1xqz0n_k$(tmp0_desc); + return KTopicListItem.new_com_bapis_bilibili_app_card_v1_KTopicListItem_f5yvcs_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, null); + } + serialize_575wh4_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.icon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.icon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.iconTitle === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.iconTitle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.topicId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.topicId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.topicName === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.topicName); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.url === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.url); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !value.upMid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 5, value.upMid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !value.position.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 6, value.position); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_575wh4_k$(encoder, value instanceof KTopicListItem ? value : THROW_CCE()); + } + } + class KTopicListItem { + constructor(icon, iconTitle, topicId, topicName, url, upMid, position) { + Companion_instance_721; + icon = icon === VOID ? '' : icon; + iconTitle = iconTitle === VOID ? '' : iconTitle; + topicId = topicId === VOID ? new Long(0, 0) : topicId; + topicName = topicName === VOID ? '' : topicName; + url = url === VOID ? '' : url; + upMid = upMid === VOID ? new Long(0, 0) : upMid; + position = position === VOID ? new Long(0, 0) : position; + this.icon = icon; + this.iconTitle = iconTitle; + this.topicId = topicId; + this.topicName = topicName; + this.url = url; + this.upMid = upMid; + this.position = position; + } + get_icon_wont8i_k$() { + return this.icon; + } + get_iconTitle_enjhvu_k$() { + return this.iconTitle; + } + get_topicId_hkqce7_k$() { + return this.topicId; + } + get_topicName_exnelt_k$() { + return this.topicName; + } + get_url_18iuii_k$() { + return this.url; + } + get_upMid_izqjd0_k$() { + return this.upMid; + } + get_position_jfponi_k$() { + return this.position; + } + component1_7eebsc_k$() { + return this.icon; + } + component2_7eebsb_k$() { + return this.iconTitle; + } + component3_7eebsa_k$() { + return this.topicId; + } + component4_7eebs9_k$() { + return this.topicName; + } + component5_7eebs8_k$() { + return this.url; + } + component6_7eebs7_k$() { + return this.upMid; + } + component7_7eebs6_k$() { + return this.position; + } + copy_npoxxt_k$(icon, iconTitle, topicId, topicName, url, upMid, position) { + return new KTopicListItem(icon, iconTitle, topicId, topicName, url, upMid, position); + } + copy(icon, iconTitle, topicId, topicName, url, upMid, position, $super) { + icon = icon === VOID ? this.icon : icon; + iconTitle = iconTitle === VOID ? this.iconTitle : iconTitle; + topicId = topicId === VOID ? this.topicId : topicId; + topicName = topicName === VOID ? this.topicName : topicName; + url = url === VOID ? this.url : url; + upMid = upMid === VOID ? this.upMid : upMid; + position = position === VOID ? this.position : position; + return this.copy_npoxxt_k$(icon, iconTitle, topicId, topicName, url, upMid, position); + } + toString() { + return 'KTopicListItem(icon=' + this.icon + ', iconTitle=' + this.iconTitle + ', topicId=' + this.topicId.toString() + ', topicName=' + this.topicName + ', url=' + this.url + ', upMid=' + this.upMid.toString() + ', position=' + this.position.toString() + ')'; + } + hashCode() { + var result = getStringHashCode(this.icon); + result = imul(result, 31) + getStringHashCode(this.iconTitle) | 0; + result = imul(result, 31) + this.topicId.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.topicName) | 0; + result = imul(result, 31) + getStringHashCode(this.url) | 0; + result = imul(result, 31) + this.upMid.hashCode() | 0; + result = imul(result, 31) + this.position.hashCode() | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KTopicListItem)) + return false; + var tmp0_other_with_cast = other instanceof KTopicListItem ? other : THROW_CCE(); + if (!(this.icon === tmp0_other_with_cast.icon)) + return false; + if (!(this.iconTitle === tmp0_other_with_cast.iconTitle)) + return false; + if (!this.topicId.equals(tmp0_other_with_cast.topicId)) + return false; + if (!(this.topicName === tmp0_other_with_cast.topicName)) + return false; + if (!(this.url === tmp0_other_with_cast.url)) + return false; + if (!this.upMid.equals(tmp0_other_with_cast.upMid)) + return false; + if (!this.position.equals(tmp0_other_with_cast.position)) + return false; + return true; + } + static new_com_bapis_bilibili_app_card_v1_KTopicListItem_f5yvcs_k$(seen1, icon, iconTitle, topicId, topicName, url, upMid, position, serializationConstructorMarker) { + Companion_instance_721; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_708().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.icon = ''; + else + $this.icon = icon; + if (0 === (seen1 & 2)) + $this.iconTitle = ''; + else + $this.iconTitle = iconTitle; + if (0 === (seen1 & 4)) + $this.topicId = new Long(0, 0); + else + $this.topicId = topicId; + if (0 === (seen1 & 8)) + $this.topicName = ''; + else + $this.topicName = topicName; + if (0 === (seen1 & 16)) + $this.url = ''; + else + $this.url = url; + if (0 === (seen1 & 32)) + $this.upMid = new Long(0, 0); + else + $this.upMid = upMid; + if (0 === (seen1 & 64)) + $this.position = new Long(0, 0); + else + $this.position = position; + return $this; + } + } + class Companion_722 { + constructor() { + this.targetPath = '/bilibili.app.card.v1.TopicButton'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_709(); + } + } + class $serializer_709 { + constructor() { + $serializer_instance_709 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.card.v1.KTopicButton', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('jumpUri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('redDot', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), BooleanSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = false; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KTopicButton.new_com_bapis_bilibili_app_card_v1_KTopicButton_gy42yq_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_x0jizd_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.jumpUri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.jumpUri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.redDot === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 2, value.redDot); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_x0jizd_k$(encoder, value instanceof KTopicButton ? value : THROW_CCE()); + } + } + class KTopicButton { + constructor(title, jumpUri, redDot) { + Companion_instance_722; + title = title === VOID ? '' : title; + jumpUri = jumpUri === VOID ? '' : jumpUri; + redDot = redDot === VOID ? false : redDot; + this.title = title; + this.jumpUri = jumpUri; + this.redDot = redDot; + } + get_title_iz32un_k$() { + return this.title; + } + get_jumpUri_jhqikr_k$() { + return this.jumpUri; + } + get_redDot_iy5kap_k$() { + return this.redDot; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.jumpUri; + } + component3_7eebsa_k$() { + return this.redDot; + } + copy_bp1kc0_k$(title, jumpUri, redDot) { + return new KTopicButton(title, jumpUri, redDot); + } + copy(title, jumpUri, redDot, $super) { + title = title === VOID ? this.title : title; + jumpUri = jumpUri === VOID ? this.jumpUri : jumpUri; + redDot = redDot === VOID ? this.redDot : redDot; + return this.copy_bp1kc0_k$(title, jumpUri, redDot); + } + toString() { + return 'KTopicButton(title=' + this.title + ', jumpUri=' + this.jumpUri + ', redDot=' + this.redDot + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.jumpUri) | 0; + result = imul(result, 31) + getBooleanHashCode(this.redDot) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KTopicButton)) + return false; + var tmp0_other_with_cast = other instanceof KTopicButton ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.jumpUri === tmp0_other_with_cast.jumpUri)) + return false; + if (!(this.redDot === tmp0_other_with_cast.redDot)) + return false; + return true; + } + static new_com_bapis_bilibili_app_card_v1_KTopicButton_gy42yq_k$(seen1, title, jumpUri, redDot, serializationConstructorMarker) { + Companion_instance_722; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_709().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.jumpUri = ''; + else + $this.jumpUri = jumpUri; + if (0 === (seen1 & 4)) + $this.redDot = false; + else + $this.redDot = redDot; + return $this; + } + } + class Companion_723 { + constructor() { + Companion_instance_723 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KWHRatio$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KWHRatio$Companion$_anonymous__kh9k4g); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_70(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.common.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KWHRatio_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.common.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KWHRatio with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_70(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_710 { + constructor() { + $serializer_instance_710 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.dynamic.common.KWHRatio', 5); + tmp0_serialDesc.addElement_5pzumi_k$('W_H_RATIO_1_1', false); + tmp0_serialDesc.addElement_5pzumi_k$('W_H_RATIO_16_9', false); + tmp0_serialDesc.addElement_5pzumi_k$('W_H_RATIO_3_4', false); + tmp0_serialDesc.addElement_5pzumi_k$('W_H_RATIO_CUSTOM', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_70()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_e82pm0_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_e82pm0_k$(encoder, value instanceof KWHRatio ? value : THROW_CCE()); + } + } + class KWHRatio extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_724 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.common.ItemWHRatio'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_711(); + } + } + class $serializer_711 { + constructor() { + $serializer_instance_711 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.common.KItemWHRatio', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('ratio', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('width', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('height', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = 0; + var tmp6_local2 = 0; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KItemWHRatio.new_com_bapis_bilibili_app_dynamic_common_KItemWHRatio_4xdv9c_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_d2etlo_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.ratio === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.ratio); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.width === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.width); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.height === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.height); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_d2etlo_k$(encoder, value instanceof KItemWHRatio ? value : THROW_CCE()); + } + } + class KItemWHRatio { + constructor(ratio, width, height) { + Companion_instance_724; + ratio = ratio === VOID ? 0 : ratio; + width = width === VOID ? 0 : width; + height = height === VOID ? 0 : height; + this.ratio = ratio; + this.width = width; + this.height = height; + } + get_ratio_ixudpe_k$() { + return this.ratio; + } + get_width_j0q4yl_k$() { + return this.width; + } + get_height_e7t92o_k$() { + return this.height; + } + ratioEnum() { + return Companion_getInstance_723().fromValue(this.ratio); + } + component1_7eebsc_k$() { + return this.ratio; + } + component2_7eebsb_k$() { + return this.width; + } + component3_7eebsa_k$() { + return this.height; + } + copy_6of2tf_k$(ratio, width, height) { + return new KItemWHRatio(ratio, width, height); + } + copy(ratio, width, height, $super) { + ratio = ratio === VOID ? this.ratio : ratio; + width = width === VOID ? this.width : width; + height = height === VOID ? this.height : height; + return this.copy_6of2tf_k$(ratio, width, height); + } + toString() { + return 'KItemWHRatio(ratio=' + this.ratio + ', width=' + this.width + ', height=' + this.height + ')'; + } + hashCode() { + var result = this.ratio; + result = imul(result, 31) + this.width | 0; + result = imul(result, 31) + this.height | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KItemWHRatio)) + return false; + var tmp0_other_with_cast = other instanceof KItemWHRatio ? other : THROW_CCE(); + if (!(this.ratio === tmp0_other_with_cast.ratio)) + return false; + if (!(this.width === tmp0_other_with_cast.width)) + return false; + if (!(this.height === tmp0_other_with_cast.height)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_common_KItemWHRatio_4xdv9c_k$(seen1, ratio, width, height, serializationConstructorMarker) { + Companion_instance_724; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_711().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.ratio = 0; + else + $this.ratio = ratio; + if (0 === (seen1 & 2)) + $this.width = 0; + else + $this.width = width; + if (0 === (seen1 & 4)) + $this.height = 0; + else + $this.height = height; + return $this; + } + } + class Companion_725 { + constructor() { + Companion_instance_725 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KWFItemType$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KWFItemType$Companion$_anonymous__pswjuw); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_71(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KWFItemType_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KWFItemType with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_71(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_712 { + constructor() { + $serializer_instance_712 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.dynamic.v2.KWFItemType', 4); + tmp0_serialDesc.addElement_5pzumi_k$('WATER_FLOW_TYPE_NONE', false); + tmp0_serialDesc.addElement_5pzumi_k$('WATER_FLOW_TYPE_ARCHIVE', false); + tmp0_serialDesc.addElement_5pzumi_k$('WATER_FLOW_TYPE_DYNAMIC', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_71()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_ox89ud_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_ox89ud_k$(encoder, value instanceof KWFItemType ? value : THROW_CCE()); + } + } + class KWFItemType extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_726 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.WFItemDefault.AnnotationsEntry'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_713(); + } + } + class $serializer_713 { + constructor() { + $serializer_instance_713 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KWFItemDefault.KAnnotationsEntry', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('key', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('value', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KAnnotationsEntry.new_com_bapis_bilibili_app_dynamic_v2_KWFItemDefault_KAnnotationsEntry_4rwrvz_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_2t06ha_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.key === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.key); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.value === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.value); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_2t06ha_k$(encoder, value instanceof KAnnotationsEntry ? value : THROW_CCE()); + } + } + class KAnnotationsEntry { + constructor(key, value) { + Companion_instance_726; + key = key === VOID ? '' : key; + value = value === VOID ? '' : value; + this.key = key; + this.value = value; + } + get_key_18j28a_k$() { + return this.key; + } + get_value_j01efc_k$() { + return this.value; + } + component1_7eebsc_k$() { + return this.key; + } + component2_7eebsb_k$() { + return this.value; + } + copy_plwnsl_k$(key, value) { + return new KAnnotationsEntry(key, value); + } + copy(key, value, $super) { + key = key === VOID ? this.key : key; + value = value === VOID ? this.value : value; + return this.copy_plwnsl_k$(key, value); + } + toString() { + return 'KAnnotationsEntry(key=' + this.key + ', value=' + this.value + ')'; + } + hashCode() { + var result = getStringHashCode(this.key); + result = imul(result, 31) + getStringHashCode(this.value) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KAnnotationsEntry)) + return false; + var tmp0_other_with_cast = other instanceof KAnnotationsEntry ? other : THROW_CCE(); + if (!(this.key === tmp0_other_with_cast.key)) + return false; + if (!(this.value === tmp0_other_with_cast.value)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KWFItemDefault_KAnnotationsEntry_4rwrvz_k$(seen1, key, value, serializationConstructorMarker) { + Companion_instance_726; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_713().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.key = ''; + else + $this.key = key; + if (0 === (seen1 & 2)) + $this.value = ''; + else + $this.value = value; + return $this; + } + } + class Companion_727 { + constructor() { + Companion_instance_727 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, null, null, null, null, new LinkedHashMapSerializer(StringSerializer_getInstance(), StringSerializer_getInstance())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.WFItemDefault'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_714(); + } + } + class $serializer_714 { + constructor() { + $serializer_instance_714 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KWFItemDefault', this, 8); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('bottomLeft1', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('bottomLeft2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('bottomRight1', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('uri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('rcmdReason', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('annotations', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_727().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_1120()), get_nullable($serializer_getInstance_1120()), get_nullable($serializer_getInstance_1120()), StringSerializer_getInstance(), get_nullable($serializer_getInstance_812()), tmp0_cached[7]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp13_cached = Companion_getInstance_727().$childSerializers_1; + if (tmp12_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_1120(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_1120(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_1120(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_812(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp12_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 7, tmp13_cached[7], tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + } else + while (tmp1_flag) { + tmp2_index = tmp12_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_1120(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_1120(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_1120(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_812(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp12_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 7, tmp13_cached[7], tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp12_input.endStructure_1xqz0n_k$(tmp0_desc); + return KWFItemDefault.new_com_bapis_bilibili_app_dynamic_v2_KWFItemDefault_tvv85q_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null); + } + serialize_l5byb_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_727().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.cover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.bottomLeft1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_1120(), value.bottomLeft1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.bottomLeft2 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_1120(), value.bottomLeft2); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.bottomRight1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, $serializer_getInstance_1120(), value.bottomRight1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.uri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.uri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.rcmdReason == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 6, $serializer_getInstance_812(), value.rcmdReason); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !equals(value.annotations, emptyMap())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 7, tmp2_cached[7], value.annotations); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_l5byb_k$(encoder, value instanceof KWFItemDefault ? value : THROW_CCE()); + } + } + class KWFItemDefault { + constructor(title, cover, bottomLeft1, bottomLeft2, bottomRight1, uri, rcmdReason, annotations) { + Companion_getInstance_727(); + title = title === VOID ? '' : title; + cover = cover === VOID ? '' : cover; + bottomLeft1 = bottomLeft1 === VOID ? null : bottomLeft1; + bottomLeft2 = bottomLeft2 === VOID ? null : bottomLeft2; + bottomRight1 = bottomRight1 === VOID ? null : bottomRight1; + uri = uri === VOID ? '' : uri; + rcmdReason = rcmdReason === VOID ? null : rcmdReason; + annotations = annotations === VOID ? emptyMap() : annotations; + this.title = title; + this.cover = cover; + this.bottomLeft1 = bottomLeft1; + this.bottomLeft2 = bottomLeft2; + this.bottomRight1 = bottomRight1; + this.uri = uri; + this.rcmdReason = rcmdReason; + this.annotations = annotations; + } + get_title_iz32un_k$() { + return this.title; + } + get_cover_ipug0e_k$() { + return this.cover; + } + get_bottomLeft1_3ixhrq_k$() { + return this.bottomLeft1; + } + get_bottomLeft2_3ixhrr_k$() { + return this.bottomLeft2; + } + get_bottomRight1_tuwglz_k$() { + return this.bottomRight1; + } + get_uri_18iuil_k$() { + return this.uri; + } + get_rcmdReason_lci9h1_k$() { + return this.rcmdReason; + } + get_annotations_20dirp_k$() { + return this.annotations; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.cover; + } + component3_7eebsa_k$() { + return this.bottomLeft1; + } + component4_7eebs9_k$() { + return this.bottomLeft2; + } + component5_7eebs8_k$() { + return this.bottomRight1; + } + component6_7eebs7_k$() { + return this.uri; + } + component7_7eebs6_k$() { + return this.rcmdReason; + } + component8_7eebs5_k$() { + return this.annotations; + } + copy_iw7xjw_k$(title, cover, bottomLeft1, bottomLeft2, bottomRight1, uri, rcmdReason, annotations) { + return new KWFItemDefault(title, cover, bottomLeft1, bottomLeft2, bottomRight1, uri, rcmdReason, annotations); + } + copy(title, cover, bottomLeft1, bottomLeft2, bottomRight1, uri, rcmdReason, annotations, $super) { + title = title === VOID ? this.title : title; + cover = cover === VOID ? this.cover : cover; + bottomLeft1 = bottomLeft1 === VOID ? this.bottomLeft1 : bottomLeft1; + bottomLeft2 = bottomLeft2 === VOID ? this.bottomLeft2 : bottomLeft2; + bottomRight1 = bottomRight1 === VOID ? this.bottomRight1 : bottomRight1; + uri = uri === VOID ? this.uri : uri; + rcmdReason = rcmdReason === VOID ? this.rcmdReason : rcmdReason; + annotations = annotations === VOID ? this.annotations : annotations; + return this.copy_iw7xjw_k$(title, cover, bottomLeft1, bottomLeft2, bottomRight1, uri, rcmdReason, annotations); + } + toString() { + return 'KWFItemDefault(title=' + this.title + ', cover=' + this.cover + ', bottomLeft1=' + this.bottomLeft1 + ', bottomLeft2=' + this.bottomLeft2 + ', bottomRight1=' + this.bottomRight1 + ', uri=' + this.uri + ', rcmdReason=' + this.rcmdReason + ', annotations=' + this.annotations + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.cover) | 0; + result = imul(result, 31) + (this.bottomLeft1 == null ? 0 : this.bottomLeft1.hashCode()) | 0; + result = imul(result, 31) + (this.bottomLeft2 == null ? 0 : this.bottomLeft2.hashCode()) | 0; + result = imul(result, 31) + (this.bottomRight1 == null ? 0 : this.bottomRight1.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.uri) | 0; + result = imul(result, 31) + (this.rcmdReason == null ? 0 : this.rcmdReason.hashCode()) | 0; + result = imul(result, 31) + hashCode(this.annotations) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KWFItemDefault)) + return false; + var tmp0_other_with_cast = other instanceof KWFItemDefault ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + if (!equals(this.bottomLeft1, tmp0_other_with_cast.bottomLeft1)) + return false; + if (!equals(this.bottomLeft2, tmp0_other_with_cast.bottomLeft2)) + return false; + if (!equals(this.bottomRight1, tmp0_other_with_cast.bottomRight1)) + return false; + if (!(this.uri === tmp0_other_with_cast.uri)) + return false; + if (!equals(this.rcmdReason, tmp0_other_with_cast.rcmdReason)) + return false; + if (!equals(this.annotations, tmp0_other_with_cast.annotations)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KWFItemDefault_tvv85q_k$(seen1, title, cover, bottomLeft1, bottomLeft2, bottomRight1, uri, rcmdReason, annotations, serializationConstructorMarker) { + Companion_getInstance_727(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_714().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.cover = ''; + else + $this.cover = cover; + if (0 === (seen1 & 4)) + $this.bottomLeft1 = null; + else + $this.bottomLeft1 = bottomLeft1; + if (0 === (seen1 & 8)) + $this.bottomLeft2 = null; + else + $this.bottomLeft2 = bottomLeft2; + if (0 === (seen1 & 16)) + $this.bottomRight1 = null; + else + $this.bottomRight1 = bottomRight1; + if (0 === (seen1 & 32)) + $this.uri = ''; + else + $this.uri = uri; + if (0 === (seen1 & 64)) + $this.rcmdReason = null; + else + $this.rcmdReason = rcmdReason; + if (0 === (seen1 & 128)) + $this.annotations = emptyMap(); + else + $this.annotations = annotations; + return $this; + } + } + class KFlowItem { + constructor(value) { + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + } + class KItemDefault extends KFlowItem { + constructor() { + KItemDefault_instance = null; + super(0); + KItemDefault_instance = this; + } + } + class Companion_728 { + constructor() { + Companion_instance_728 = this; + var tmp = this; + tmp.flowItemValues$delegate_1 = lazy_0(KCampusWaterFlowItem$Companion$flowItemValues$delegate$lambda); + this.targetPath = '/bilibili.app.dynamic.v2.CampusWaterFlowItem'; + } + get_flowItemValues_tvkd1w_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.flowItemValues$delegate_1; + var thisRef = this; + var property = flowItemValues$factory(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_715(); + } + get flowItemValues() { + return this.get_flowItemValues_tvkd1w_k$(); + } + } + class $serializer_715 { + constructor() { + $serializer_instance_715 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KCampusWaterFlowItem', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('itemType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('whRatio', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('itemDefault', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), get_nullable($serializer_getInstance_711()), get_nullable($serializer_getInstance_714())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_transient0 = 0; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_711(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_714(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_711(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_714(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KCampusWaterFlowItem.new_com_bapis_bilibili_app_dynamic_v2_KCampusWaterFlowItem_g8up88_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_6l35qb_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.itemType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.itemType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.whRatio == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_711(), value.whRatio); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.itemDefault_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_714(), value.itemDefault_1); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_6l35qb_k$(encoder, value instanceof KCampusWaterFlowItem ? value : THROW_CCE()); + } + } + class KCampusWaterFlowItem { + constructor(itemType, whRatio, itemDefault) { + Companion_getInstance_728(); + itemType = itemType === VOID ? 0 : itemType; + whRatio = whRatio === VOID ? null : whRatio; + itemDefault = itemDefault === VOID ? null : itemDefault; + this.itemType = itemType; + this.whRatio = whRatio; + this.itemDefault_1 = itemDefault; + var tmp = this; + tmp.flowItemNumber$delegate_1 = lazy_0(KCampusWaterFlowItem$flowItemNumber$delegate$lambda(this)); + } + get_itemType_cbv3uy_k$() { + return this.itemType; + } + get_whRatio_moil75_k$() { + return this.whRatio; + } + flowItemValue() { + if (!(this.itemDefault_1 == null)) { + var tmp = this.itemDefault_1; + return (tmp == null ? true : !(tmp == null)) ? tmp : null; + } else { + return null; + } + } + flowItemTypeJs() { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = Companion_getInstance_728().flowItemValues; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.KCampusWaterFlowItem.flowItemType.' call + var it = element; + tmp$ret$0 = it.value === _get_flowItemNumber__n79zun(this); + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + return tmp$ret$1; + } + itemTypeEnum() { + return Companion_getInstance_725().fromValue(this.itemType); + } + component1_7eebsc_k$() { + return this.itemType; + } + component2_7eebsb_k$() { + return this.whRatio; + } + copy_gjf0qe_k$(itemType, whRatio, itemDefault) { + return new KCampusWaterFlowItem(itemType, whRatio, itemDefault); + } + copy(itemType, whRatio, itemDefault, $super) { + itemType = itemType === VOID ? this.itemType : itemType; + whRatio = whRatio === VOID ? this.whRatio : whRatio; + itemDefault = itemDefault === VOID ? this.itemDefault_1 : itemDefault; + return this.copy_gjf0qe_k$(itemType, whRatio, itemDefault); + } + toString() { + return 'KCampusWaterFlowItem(itemType=' + this.itemType + ', whRatio=' + this.whRatio + ', itemDefault=' + this.itemDefault_1 + ')'; + } + hashCode() { + var result = this.itemType; + result = imul(result, 31) + (this.whRatio == null ? 0 : this.whRatio.hashCode()) | 0; + result = imul(result, 31) + (this.itemDefault_1 == null ? 0 : this.itemDefault_1.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KCampusWaterFlowItem)) + return false; + var tmp0_other_with_cast = other instanceof KCampusWaterFlowItem ? other : THROW_CCE(); + if (!(this.itemType === tmp0_other_with_cast.itemType)) + return false; + if (!equals(this.whRatio, tmp0_other_with_cast.whRatio)) + return false; + if (!equals(this.itemDefault_1, tmp0_other_with_cast.itemDefault_1)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KCampusWaterFlowItem_g8up88_k$(seen1, itemType, whRatio, itemDefault, serializationConstructorMarker) { + Companion_getInstance_728(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_715().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.itemType = 0; + else + $this.itemType = itemType; + if (0 === (seen1 & 2)) + $this.whRatio = null; + else + $this.whRatio = whRatio; + if (0 === (seen1 & 4)) + $this.itemDefault_1 = null; + else + $this.itemDefault_1 = itemDefault; + var tmp = $this; + tmp.flowItemNumber$delegate_1 = lazy_0(KCampusWaterFlowItem$_init_$lambda_hm2vct($this)); + return $this; + } + } + class Companion_729 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.WaterFlowRcmdReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_716(); + } + } + class $serializer_716 { + constructor() { + $serializer_instance_716 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KWaterFlowRcmdReq', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('campusId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('page', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('playerArgs', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('from', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), get_nullable($serializer_getInstance_197()), get_nullable($serializer_getInstance_152()), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = 0; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_197(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_152(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_197(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_152(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KWaterFlowRcmdReq.new_com_bapis_bilibili_app_dynamic_v2_KWaterFlowRcmdReq_wfbmso_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_gqxxa1_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.campusId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.campusId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.page == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_197(), value.page); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.playerArgs == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_152(), value.playerArgs); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.from === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 3, value.from); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_gqxxa1_k$(encoder, value instanceof KWaterFlowRcmdReq ? value : THROW_CCE()); + } + } + class KWaterFlowRcmdReq { + constructor(campusId, page, playerArgs, from) { + Companion_instance_729; + campusId = campusId === VOID ? new Long(0, 0) : campusId; + page = page === VOID ? null : page; + playerArgs = playerArgs === VOID ? null : playerArgs; + from = from === VOID ? 0 : from; + this.campusId = campusId; + this.page = page; + this.playerArgs = playerArgs; + this.from = from; + } + get_campusId_y3vqhp_k$() { + return this.campusId; + } + get_page_wos8go_k$() { + return this.page; + } + get_playerArgs_eh86hz_k$() { + return this.playerArgs; + } + get_from_wom7eb_k$() { + return this.from; + } + fromEnum() { + return Companion_getInstance_747().fromValue(this.from); + } + component1_7eebsc_k$() { + return this.campusId; + } + component2_7eebsb_k$() { + return this.page; + } + component3_7eebsa_k$() { + return this.playerArgs; + } + component4_7eebs9_k$() { + return this.from; + } + copy_lbgqcu_k$(campusId, page, playerArgs, from) { + return new KWaterFlowRcmdReq(campusId, page, playerArgs, from); + } + copy(campusId, page, playerArgs, from, $super) { + campusId = campusId === VOID ? this.campusId : campusId; + page = page === VOID ? this.page : page; + playerArgs = playerArgs === VOID ? this.playerArgs : playerArgs; + from = from === VOID ? this.from : from; + return this.copy_lbgqcu_k$(campusId, page, playerArgs, from); + } + toString() { + return 'KWaterFlowRcmdReq(campusId=' + this.campusId.toString() + ', page=' + this.page + ', playerArgs=' + this.playerArgs + ', from=' + this.from + ')'; + } + hashCode() { + var result = this.campusId.hashCode(); + result = imul(result, 31) + (this.page == null ? 0 : this.page.hashCode()) | 0; + result = imul(result, 31) + (this.playerArgs == null ? 0 : this.playerArgs.hashCode()) | 0; + result = imul(result, 31) + this.from | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KWaterFlowRcmdReq)) + return false; + var tmp0_other_with_cast = other instanceof KWaterFlowRcmdReq ? other : THROW_CCE(); + if (!this.campusId.equals(tmp0_other_with_cast.campusId)) + return false; + if (!equals(this.page, tmp0_other_with_cast.page)) + return false; + if (!equals(this.playerArgs, tmp0_other_with_cast.playerArgs)) + return false; + if (!(this.from === tmp0_other_with_cast.from)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KWaterFlowRcmdReq_wfbmso_k$(seen1, campusId, page, playerArgs, from, serializationConstructorMarker) { + Companion_instance_729; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_716().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.campusId = new Long(0, 0); + else + $this.campusId = campusId; + if (0 === (seen1 & 2)) + $this.page = null; + else + $this.page = page; + if (0 === (seen1 & 4)) + $this.playerArgs = null; + else + $this.playerArgs = playerArgs; + if (0 === (seen1 & 8)) + $this.from = 0; + else + $this.from = from; + return $this; + } + } + class Companion_730 { + constructor() { + Companion_instance_730 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer($serializer_getInstance_715()), null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.WaterFlowRcmdResp'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_717(); + } + } + class $serializer_717 { + constructor() { + $serializer_instance_717 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KWaterFlowRcmdResp', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('items', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('offset', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_730().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0], get_nullable($serializer_getInstance_198())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp7_cached = Companion_getInstance_730().$childSerializers_1; + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp7_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_198(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp7_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_198(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KWaterFlowRcmdResp.new_com_bapis_bilibili_app_dynamic_v2_KWaterFlowRcmdResp_t4sapc_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_suwwsf_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_730().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.items, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.items); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.offset == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_198(), value.offset); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_suwwsf_k$(encoder, value instanceof KWaterFlowRcmdResp ? value : THROW_CCE()); + } + } + class KWaterFlowRcmdResp { + constructor(items, offset) { + Companion_getInstance_730(); + items = items === VOID ? emptyList() : items; + offset = offset === VOID ? null : offset; + this.items = items; + this.offset = offset; + } + get_items_it823b_k$() { + return this.items; + } + get_offset_hjmqak_k$() { + return this.offset; + } + component1_7eebsc_k$() { + return this.items; + } + component2_7eebsb_k$() { + return this.offset; + } + copy_wup87b_k$(items, offset) { + return new KWaterFlowRcmdResp(items, offset); + } + copy(items, offset, $super) { + items = items === VOID ? this.items : items; + offset = offset === VOID ? this.offset : offset; + return this.copy_wup87b_k$(items, offset); + } + toString() { + return 'KWaterFlowRcmdResp(items=' + this.items + ', offset=' + this.offset + ')'; + } + hashCode() { + var result = hashCode(this.items); + result = imul(result, 31) + (this.offset == null ? 0 : this.offset.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KWaterFlowRcmdResp)) + return false; + var tmp0_other_with_cast = other instanceof KWaterFlowRcmdResp ? other : THROW_CCE(); + if (!equals(this.items, tmp0_other_with_cast.items)) + return false; + if (!equals(this.offset, tmp0_other_with_cast.offset)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KWaterFlowRcmdResp_t4sapc_k$(seen1, items, offset, serializationConstructorMarker) { + Companion_getInstance_730(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_717().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.items = emptyList(); + else + $this.items = items; + if (0 === (seen1 & 2)) + $this.offset = null; + else + $this.offset = offset; + return $this; + } + } + class Companion_731 { + constructor() { + Companion_instance_731 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KRefresh$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KRefresh$Companion$_anonymous__uofk2p); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_72(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KRefresh_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KRefresh with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_72(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_718 { + constructor() { + $serializer_instance_718 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.dynamic.v2.KRefresh', 3); + tmp0_serialDesc.addElement_5pzumi_k$('NEW', false); + tmp0_serialDesc.addElement_5pzumi_k$('HISTORY', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_72()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_bc0piw_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_bc0piw_k$(encoder, value instanceof KRefresh ? value : THROW_CCE()); + } + } + class KRefresh extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_732 { + constructor() { + Companion_instance_732 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KStyleType$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KStyleType$Companion$_anonymous__belnf5); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_73(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KStyleType_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KStyleType with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_73(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_719 { + constructor() { + $serializer_instance_719 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.dynamic.v2.KStyleType', 4); + tmp0_serialDesc.addElement_5pzumi_k$('NONE', false); + tmp0_serialDesc.addElement_5pzumi_k$('LIVE', false); + tmp0_serialDesc.addElement_5pzumi_k$('DYN_UP', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_73()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_sx5w6g_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_sx5w6g_k$(encoder, value instanceof KStyleType ? value : THROW_CCE()); + } + } + class KStyleType extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_733 { + constructor() { + Companion_instance_733 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KUserItemType$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KUserItemType$Companion$_anonymous__gj8g8c); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_74(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KUserItemType_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KUserItemType with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_74(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_720 { + constructor() { + $serializer_instance_720 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.dynamic.v2.KUserItemType', 11); + tmp0_serialDesc.addElement_5pzumi_k$('NONE', false); + tmp0_serialDesc.addElement_5pzumi_k$('LIVE', false); + tmp0_serialDesc.addElement_5pzumi_k$('LIVE_CUSTOM', false); + tmp0_serialDesc.addElement_5pzumi_k$('NORMAL', false); + tmp0_serialDesc.addElement_5pzumi_k$('EXTEND', false); + tmp0_serialDesc.addElement_5pzumi_k$('PREMIERE_RESERVE', false); + tmp0_serialDesc.addElement_5pzumi_k$('PREMIERE', false); + tmp0_serialDesc.addElement_5pzumi_k$('LIVE_CARD', false); + tmp0_serialDesc.addElement_5pzumi_k$('OGV_SEASON', false); + tmp0_serialDesc.addElement_5pzumi_k$('UGC_SEASON', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_74()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_6kk1on_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_6kk1on_k$(encoder, value instanceof KUserItemType ? value : THROW_CCE()); + } + } + class KUserItemType extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_734 { + constructor() { + Companion_instance_734 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KFollowType$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KFollowType$Companion$_anonymous__rm4g07); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_75(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KFollowType_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KFollowType with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_75(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_721 { + constructor() { + $serializer_instance_721 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.dynamic.v2.KFollowType', 3); + tmp0_serialDesc.addElement_5pzumi_k$('FT_NOT_FOLLOW', false); + tmp0_serialDesc.addElement_5pzumi_k$('FT_FOLLOW', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_75()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_kdkxcq_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_kdkxcq_k$(encoder, value instanceof KFollowType ? value : THROW_CCE()); + } + } + class KFollowType extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_735 { + constructor() { + Companion_instance_735 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KThumbType$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KThumbType$Companion$_anonymous__bs4bpm); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_76(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KThumbType_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KThumbType with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_76(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_722 { + constructor() { + $serializer_instance_722 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.dynamic.v2.KThumbType', 3); + tmp0_serialDesc.addElement_5pzumi_k$('CANCEL', false); + tmp0_serialDesc.addElement_5pzumi_k$('THUMB', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_76()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_kyj4vh_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_kyj4vh_k$(encoder, value instanceof KThumbType ? value : THROW_CCE()); + } + } + class KThumbType extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_736 { + constructor() { + Companion_instance_736 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KVoteStatus$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KVoteStatus$Companion$_anonymous__jcyiig); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_77(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KVoteStatus_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KVoteStatus with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_77(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_723 { + constructor() { + $serializer_instance_723 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.dynamic.v2.KVoteStatus', 3); + tmp0_serialDesc.addElement_5pzumi_k$('NORMAL', false); + tmp0_serialDesc.addElement_5pzumi_k$('ANONYMOUS', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_77()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_wbuzfv_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_wbuzfv_k$(encoder, value instanceof KVoteStatus ? value : THROW_CCE()); + } + } + class KVoteStatus extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_737 { + constructor() { + Companion_instance_737 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KLightFromType$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KLightFromType$Companion$_anonymous__4fc4zk); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_78(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KLightFromType_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KLightFromType with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_78(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_724 { + constructor() { + $serializer_instance_724 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.dynamic.v2.KLightFromType', 3); + tmp0_serialDesc.addElement_5pzumi_k$('FROM_LOGIN', false); + tmp0_serialDesc.addElement_5pzumi_k$('FROM_UNLOGIN', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_78()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_u4i0c7_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_u4i0c7_k$(encoder, value instanceof KLightFromType ? value : THROW_CCE()); + } + } + class KLightFromType extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_738 { + constructor() { + Companion_instance_738 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KRepostType$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KRepostType$Companion$_anonymous__wk8o9j); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_79(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KRepostType_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KRepostType with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_79(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_725 { + constructor() { + $serializer_instance_725 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.dynamic.v2.KRepostType', 3); + tmp0_serialDesc.addElement_5pzumi_k$('REPOST_HOT', false); + tmp0_serialDesc.addElement_5pzumi_k$('REPOST_GENERAL', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_79()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_939078_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_939078_k$(encoder, value instanceof KRepostType ? value : THROW_CCE()); + } + } + class KRepostType extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_739 { + constructor() { + Companion_instance_739 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KRcmdReasonStyle$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KRcmdReasonStyle$Companion$_anonymous__sn2be3); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_80(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KRcmdReasonStyle_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KRcmdReasonStyle with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_80(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_726 { + constructor() { + $serializer_instance_726 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.dynamic.v2.KRcmdReasonStyle', 5); + tmp0_serialDesc.addElement_5pzumi_k$('NONE', false); + tmp0_serialDesc.addElement_5pzumi_k$('CAMPUS_NEARBY', false); + tmp0_serialDesc.addElement_5pzumi_k$('CAMPUS_UP', false); + tmp0_serialDesc.addElement_5pzumi_k$('CAMPUS_NEAR_UP_MIX', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_80()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_6qx2o2_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_6qx2o2_k$(encoder, value instanceof KRcmdReasonStyle ? value : THROW_CCE()); + } + } + class KRcmdReasonStyle extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_740 { + constructor() { + Companion_instance_740 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KCampusTabType$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KCampusTabType$Companion$_anonymous__oeukk6); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_81(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KCampusTabType_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KCampusTabType with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_81(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_727 { + constructor() { + $serializer_instance_727 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.dynamic.v2.KCampusTabType', 8); + tmp0_serialDesc.addElement_5pzumi_k$('CAMPUS_NONE', false); + tmp0_serialDesc.addElement_5pzumi_k$('CAMPUS_SCHOOL', false); + tmp0_serialDesc.addElement_5pzumi_k$('CAMPUS_DYNAMIC', false); + tmp0_serialDesc.addElement_5pzumi_k$('CAMPUS_ACCOUNT', false); + tmp0_serialDesc.addElement_5pzumi_k$('CAMPUS_BILLBOARD', false); + tmp0_serialDesc.addElement_5pzumi_k$('CAMPUS_TOPIC', false); + tmp0_serialDesc.addElement_5pzumi_k$('CAMPUES_OTHER', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_81()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_n2nsfn_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_n2nsfn_k$(encoder, value instanceof KCampusTabType ? value : THROW_CCE()); + } + } + class KCampusTabType extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_741 { + constructor() { + Companion_instance_741 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KShowType$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KShowType$Companion$_anonymous__qa3x7x); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_82(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KShowType_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KShowType with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_82(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_728 { + constructor() { + $serializer_instance_728 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.dynamic.v2.KShowType', 3); + tmp0_serialDesc.addElement_5pzumi_k$('NONE', false); + tmp0_serialDesc.addElement_5pzumi_k$('BACKUP', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_82()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_ywa5t2_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_ywa5t2_k$(encoder, value instanceof KShowType ? value : THROW_CCE()); + } + } + class KShowType extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_742 { + constructor() { + Companion_instance_742 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KNetworkType$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KNetworkType$Companion$_anonymous__mom5e6); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_83(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KNetworkType_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KNetworkType with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_83(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_729 { + constructor() { + $serializer_instance_729 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.dynamic.v2.KNetworkType', 7); + tmp0_serialDesc.addElement_5pzumi_k$('NT_UNKNOWN', false); + tmp0_serialDesc.addElement_5pzumi_k$('WIFI', false); + tmp0_serialDesc.addElement_5pzumi_k$('CELLULAR', false); + tmp0_serialDesc.addElement_5pzumi_k$('OFFLINE', false); + tmp0_serialDesc.addElement_5pzumi_k$('OTHERNET', false); + tmp0_serialDesc.addElement_5pzumi_k$('ETHERNET', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_83()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_u0mbp_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_u0mbp_k$(encoder, value instanceof KNetworkType ? value : THROW_CCE()); + } + } + class KNetworkType extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_743 { + constructor() { + Companion_instance_743 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KTFType$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KTFType$Companion$_anonymous__gs7c2w); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_84(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KTFType_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KTFType with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_84(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_730 { + constructor() { + $serializer_instance_730 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.dynamic.v2.KTFType', 8); + tmp0_serialDesc.addElement_5pzumi_k$('TF_UNKNOWN', false); + tmp0_serialDesc.addElement_5pzumi_k$('U_CARD', false); + tmp0_serialDesc.addElement_5pzumi_k$('U_PKG', false); + tmp0_serialDesc.addElement_5pzumi_k$('C_CARD', false); + tmp0_serialDesc.addElement_5pzumi_k$('C_PKG', false); + tmp0_serialDesc.addElement_5pzumi_k$('T_CARD', false); + tmp0_serialDesc.addElement_5pzumi_k$('T_PKG', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_84()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_idy74r_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_idy74r_k$(encoder, value instanceof KTFType ? value : THROW_CCE()); + } + } + class KTFType extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_744 { + constructor() { + Companion_instance_744 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KHomePageTabSttingStatus$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KHomePageTabSttingStatus$Companion$_anonymous__10ug5u); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_85(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KHomePageTabSttingStatus_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KHomePageTabSttingStatus with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_85(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_731 { + constructor() { + $serializer_instance_731 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.dynamic.v2.KHomePageTabSttingStatus', 4); + tmp0_serialDesc.addElement_5pzumi_k$('SETTING_INVALID', false); + tmp0_serialDesc.addElement_5pzumi_k$('SETTING_OPEN', false); + tmp0_serialDesc.addElement_5pzumi_k$('SETTING_CLOSE', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_85()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_crdhqz_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_crdhqz_k$(encoder, value instanceof KHomePageTabSttingStatus ? value : THROW_CCE()); + } + } + class KHomePageTabSttingStatus extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_745 { + constructor() { + Companion_instance_745 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KCampusHomePageType$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KCampusHomePageType$Companion$_anonymous__nfxtur); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_86(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KCampusHomePageType_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KCampusHomePageType with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_86(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_732 { + constructor() { + $serializer_instance_732 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.dynamic.v2.KCampusHomePageType', 4); + tmp0_serialDesc.addElement_5pzumi_k$('PAGE_MAJOR', false); + tmp0_serialDesc.addElement_5pzumi_k$('PAGE_SUBORDINATE', false); + tmp0_serialDesc.addElement_5pzumi_k$('PAGE_MAJOR_DETAIL', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_86()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_cdhuie_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_cdhuie_k$(encoder, value instanceof KCampusHomePageType ? value : THROW_CCE()); + } + } + class KCampusHomePageType extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_746 { + constructor() { + Companion_instance_746 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KCampusReqFromType$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KCampusReqFromType$Companion$_anonymous__dm3xav); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_87(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KCampusReqFromType_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KCampusReqFromType with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_87(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_733 { + constructor() { + $serializer_instance_733 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.dynamic.v2.KCampusReqFromType', 3); + tmp0_serialDesc.addElement_5pzumi_k$('DYNAMIC', false); + tmp0_serialDesc.addElement_5pzumi_k$('HOME', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_87()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_xyumtc_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_xyumtc_k$(encoder, value instanceof KCampusReqFromType ? value : THROW_CCE()); + } + } + class KCampusReqFromType extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_747 { + constructor() { + Companion_instance_747 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KCampusRcmdReqFrom$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KCampusRcmdReqFrom$Companion$_anonymous__v8syzr); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_88(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KCampusRcmdReqFrom_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KCampusRcmdReqFrom with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_88(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_734 { + constructor() { + $serializer_instance_734 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.dynamic.v2.KCampusRcmdReqFrom', 7); + tmp0_serialDesc.addElement_5pzumi_k$('CAMPUS_RCMD_FROM_UNKNOWN', false); + tmp0_serialDesc.addElement_5pzumi_k$('CAMPUS_RCMD_FROM_HOME_UN_OPEN', false); + tmp0_serialDesc.addElement_5pzumi_k$('CAMPUS_RCMD_FROM_VISIT_OTHER', false); + tmp0_serialDesc.addElement_5pzumi_k$('CAMPUS_RCMD_FROM_HOME_MOMENT', false); + tmp0_serialDesc.addElement_5pzumi_k$('CAMPUS_RCMD_FROM_DYN_MOMENT', false); + tmp0_serialDesc.addElement_5pzumi_k$('CAMPUS_RCMD_FROM_PAGE_SUBORDINATE_MOMENT', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_88()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_27pqda_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_27pqda_k$(encoder, value instanceof KCampusRcmdReqFrom ? value : THROW_CCE()); + } + } + class KCampusRcmdReqFrom extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_748 { + constructor() { + Companion_instance_748 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KCampusEntryType$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KCampusEntryType$Companion$_anonymous__oj1bcj); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_89(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KCampusEntryType_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KCampusEntryType with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_89(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_735 { + constructor() { + $serializer_instance_735 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.dynamic.v2.KCampusEntryType', 4); + tmp0_serialDesc.addElement_5pzumi_k$('NONE', false); + tmp0_serialDesc.addElement_5pzumi_k$('ENTRY_DYNAMIC', false); + tmp0_serialDesc.addElement_5pzumi_k$('ENTRY_HOME', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_89()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_s7pw3a_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_s7pw3a_k$(encoder, value instanceof KCampusEntryType ? value : THROW_CCE()); + } + } + class KCampusEntryType extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_749 { + constructor() { + Companion_instance_749 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KCampusOnlineStatus$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KCampusOnlineStatus$Companion$_anonymous__4mtyzk); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_90(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KCampusOnlineStatus_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KCampusOnlineStatus with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_90(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_736 { + constructor() { + $serializer_instance_736 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.dynamic.v2.KCampusOnlineStatus', 3); + tmp0_serialDesc.addElement_5pzumi_k$('CAMPUS_ONLINE_OFFLINE', false); + tmp0_serialDesc.addElement_5pzumi_k$('CAMPUS_ONLINE_ONLINE', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_90()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_bm8rfx_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_bm8rfx_k$(encoder, value instanceof KCampusOnlineStatus ? value : THROW_CCE()); + } + } + class KCampusOnlineStatus extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_750 { + constructor() { + Companion_instance_750 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KCampusMngAuditStatus$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KCampusMngAuditStatus$Companion$_anonymous__d110pq); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_91(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KCampusMngAuditStatus_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KCampusMngAuditStatus with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_91(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_737 { + constructor() { + $serializer_instance_737 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.dynamic.v2.KCampusMngAuditStatus', 4); + tmp0_serialDesc.addElement_5pzumi_k$('CAMPUS_MNG_AUDIT_NONE', false); + tmp0_serialDesc.addElement_5pzumi_k$('CAMPUS_MNG_AUDIT_IN_PROCESS', false); + tmp0_serialDesc.addElement_5pzumi_k$('CAMPUS_MNG_AUDIT_FAILED', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_91()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_sbh991_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_sbh991_k$(encoder, value instanceof KCampusMngAuditStatus ? value : THROW_CCE()); + } + } + class KCampusMngAuditStatus extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_751 { + constructor() { + Companion_instance_751 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KCampusMngItemType$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KCampusMngItemType$Companion$_anonymous__hfcly2); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_92(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KCampusMngItemType_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KCampusMngItemType with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_92(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_738 { + constructor() { + $serializer_instance_738 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.dynamic.v2.KCampusMngItemType', 6); + tmp0_serialDesc.addElement_5pzumi_k$('CAMPUS_MNG_NONE', false); + tmp0_serialDesc.addElement_5pzumi_k$('CAMPUS_MNG_BASIC_INFO', false); + tmp0_serialDesc.addElement_5pzumi_k$('CAMPUS_MNG_BADGE', false); + tmp0_serialDesc.addElement_5pzumi_k$('CAMPUS_MNG_SLOGAN', false); + tmp0_serialDesc.addElement_5pzumi_k$('CAMPUS_MNG_QUIZ', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_92()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_iwut9r_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_iwut9r_k$(encoder, value instanceof KCampusMngItemType ? value : THROW_CCE()); + } + } + class KCampusMngItemType extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_752 { + constructor() { + Companion_instance_752 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KCampusMngQuizAction$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KCampusMngQuizAction$Companion$_anonymous__9jlztk); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_93(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KCampusMngQuizAction_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KCampusMngQuizAction with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_93(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_739 { + constructor() { + $serializer_instance_739 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.dynamic.v2.KCampusMngQuizAction', 4); + tmp0_serialDesc.addElement_5pzumi_k$('CAMPUS_MNG_QUIZ_ACT_LIST', false); + tmp0_serialDesc.addElement_5pzumi_k$('CAMPUS_MNG_QUIZ_ACT_ADD', false); + tmp0_serialDesc.addElement_5pzumi_k$('CAMPUS_MNG_QUIZ_ACT_DEL', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_93()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_vyk51r_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_vyk51r_k$(encoder, value instanceof KCampusMngQuizAction ? value : THROW_CCE()); + } + } + class KCampusMngQuizAction extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_753 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.NoReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_740(); + } + } + class $serializer_740 { + constructor() { + $serializer_instance_740 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KNoReq', this, 0); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = []; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp4_input.decodeSequentially_xlblqy_k$()) { + } else + while (tmp1_flag) { + tmp2_index = tmp4_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + if (tmp2_index === -1) + tmp1_flag = false; + else + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + tmp4_input.endStructure_1xqz0n_k$(tmp0_desc); + return KNoReq.new_com_bapis_bilibili_app_dynamic_v2_KNoReq_vu7dzv_k$(tmp3_bitMask0, null); + } + serialize_20csm7_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_20csm7_k$(encoder, value instanceof KNoReq ? value : THROW_CCE()); + } + } + class KNoReq { + constructor() { + Companion_instance_753; + } + static new_com_bapis_bilibili_app_dynamic_v2_KNoReq_vu7dzv_k$(seen1, serializationConstructorMarker) { + Companion_instance_753; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_740().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + return $this; + } + } + class Companion_754 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.NoReply'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_741(); + } + } + class $serializer_741 { + constructor() { + $serializer_instance_741 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KNoReply', this, 0); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = []; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp4_input.decodeSequentially_xlblqy_k$()) { + } else + while (tmp1_flag) { + tmp2_index = tmp4_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + if (tmp2_index === -1) + tmp1_flag = false; + else + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + tmp4_input.endStructure_1xqz0n_k$(tmp0_desc); + return KNoReply.new_com_bapis_bilibili_app_dynamic_v2_KNoReply_xp6k5r_k$(tmp3_bitMask0, null); + } + serialize_fo5c31_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_fo5c31_k$(encoder, value instanceof KNoReply ? value : THROW_CCE()); + } + } + class KNoReply { + constructor() { + Companion_instance_754; + } + static new_com_bapis_bilibili_app_dynamic_v2_KNoReply_xp6k5r_k$(seen1, serializationConstructorMarker) { + Companion_instance_754; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_741().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + return $this; + } + } + class Companion_755 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.DynVideoReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_742(); + } + } + class $serializer_742 { + constructor() { + $serializer_instance_742 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KDynVideoReq', this, 10); + tmp0_serialDesc.addElement_5pzumi_k$('updateBaseline', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('offset', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('page', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('refreshType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('playurlParam', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('assistBaseline', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('localTime', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('from', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('playerArgs', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('reqSortOption', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), get_nullable($serializer_getInstance_743()), StringSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_152()), get_nullable($serializer_getInstance_754())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = 0; + var tmp7_local3 = 0; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = 0; + var tmp11_local7 = null; + var tmp12_local8 = null; + var tmp13_local9 = null; + var tmp14_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp14_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_743(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_152(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 9, $serializer_getInstance_754(), tmp13_local9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + } else + while (tmp1_flag) { + tmp2_index = tmp14_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_743(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_152(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 9, $serializer_getInstance_754(), tmp13_local9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp14_input.endStructure_1xqz0n_k$(tmp0_desc); + return KDynVideoReq.new_com_bapis_bilibili_app_dynamic_v2_KDynVideoReq_hss8g0_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, null); + } + serialize_ebwb1c_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.updateBaseline === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.updateBaseline); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.offset === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.offset); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.page === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.page); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.refreshType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 3, value.refreshType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.playurlParam == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, $serializer_getInstance_743(), value.playurlParam); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.assistBaseline === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.assistBaseline); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.localTime === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 6, value.localTime); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.from === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.from); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.playerArgs == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 8, $serializer_getInstance_152(), value.playerArgs); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.reqSortOption == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 9, $serializer_getInstance_754(), value.reqSortOption); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_ebwb1c_k$(encoder, value instanceof KDynVideoReq ? value : THROW_CCE()); + } + } + class KDynVideoReq { + constructor(updateBaseline, offset, page, refreshType, playurlParam, assistBaseline, localTime, from, playerArgs, reqSortOption) { + Companion_instance_755; + updateBaseline = updateBaseline === VOID ? '' : updateBaseline; + offset = offset === VOID ? '' : offset; + page = page === VOID ? 0 : page; + refreshType = refreshType === VOID ? 0 : refreshType; + playurlParam = playurlParam === VOID ? null : playurlParam; + assistBaseline = assistBaseline === VOID ? '' : assistBaseline; + localTime = localTime === VOID ? 0 : localTime; + from = from === VOID ? '' : from; + playerArgs = playerArgs === VOID ? null : playerArgs; + reqSortOption = reqSortOption === VOID ? null : reqSortOption; + this.updateBaseline = updateBaseline; + this.offset = offset; + this.page = page; + this.refreshType = refreshType; + this.playurlParam = playurlParam; + this.assistBaseline = assistBaseline; + this.localTime = localTime; + this.from = from; + this.playerArgs = playerArgs; + this.reqSortOption = reqSortOption; + } + get_updateBaseline_jajak7_k$() { + return this.updateBaseline; + } + get_offset_hjmqak_k$() { + return this.offset; + } + get_page_wos8go_k$() { + return this.page; + } + get_refreshType_91r450_k$() { + return this.refreshType; + } + get_playurlParam_oed3qd_k$() { + return this.playurlParam; + } + get_assistBaseline_ibg0yf_k$() { + return this.assistBaseline; + } + get_localTime_bf0zwx_k$() { + return this.localTime; + } + get_from_wom7eb_k$() { + return this.from; + } + get_playerArgs_eh86hz_k$() { + return this.playerArgs; + } + get_reqSortOption_fw1pzc_k$() { + return this.reqSortOption; + } + refreshTypeEnum() { + return Companion_getInstance_731().fromValue(this.refreshType); + } + component1_7eebsc_k$() { + return this.updateBaseline; + } + component2_7eebsb_k$() { + return this.offset; + } + component3_7eebsa_k$() { + return this.page; + } + component4_7eebs9_k$() { + return this.refreshType; + } + component5_7eebs8_k$() { + return this.playurlParam; + } + component6_7eebs7_k$() { + return this.assistBaseline; + } + component7_7eebs6_k$() { + return this.localTime; + } + component8_7eebs5_k$() { + return this.from; + } + component9_7eebs4_k$() { + return this.playerArgs; + } + component10_gazzfo_k$() { + return this.reqSortOption; + } + copy_qyuvfv_k$(updateBaseline, offset, page, refreshType, playurlParam, assistBaseline, localTime, from, playerArgs, reqSortOption) { + return new KDynVideoReq(updateBaseline, offset, page, refreshType, playurlParam, assistBaseline, localTime, from, playerArgs, reqSortOption); + } + copy(updateBaseline, offset, page, refreshType, playurlParam, assistBaseline, localTime, from, playerArgs, reqSortOption, $super) { + updateBaseline = updateBaseline === VOID ? this.updateBaseline : updateBaseline; + offset = offset === VOID ? this.offset : offset; + page = page === VOID ? this.page : page; + refreshType = refreshType === VOID ? this.refreshType : refreshType; + playurlParam = playurlParam === VOID ? this.playurlParam : playurlParam; + assistBaseline = assistBaseline === VOID ? this.assistBaseline : assistBaseline; + localTime = localTime === VOID ? this.localTime : localTime; + from = from === VOID ? this.from : from; + playerArgs = playerArgs === VOID ? this.playerArgs : playerArgs; + reqSortOption = reqSortOption === VOID ? this.reqSortOption : reqSortOption; + return this.copy_qyuvfv_k$(updateBaseline, offset, page, refreshType, playurlParam, assistBaseline, localTime, from, playerArgs, reqSortOption); + } + toString() { + return 'KDynVideoReq(updateBaseline=' + this.updateBaseline + ', offset=' + this.offset + ', page=' + this.page + ', refreshType=' + this.refreshType + ', playurlParam=' + this.playurlParam + ', assistBaseline=' + this.assistBaseline + ', localTime=' + this.localTime + ', from=' + this.from + ', playerArgs=' + this.playerArgs + ', reqSortOption=' + this.reqSortOption + ')'; + } + hashCode() { + var result = getStringHashCode(this.updateBaseline); + result = imul(result, 31) + getStringHashCode(this.offset) | 0; + result = imul(result, 31) + this.page | 0; + result = imul(result, 31) + this.refreshType | 0; + result = imul(result, 31) + (this.playurlParam == null ? 0 : this.playurlParam.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.assistBaseline) | 0; + result = imul(result, 31) + this.localTime | 0; + result = imul(result, 31) + getStringHashCode(this.from) | 0; + result = imul(result, 31) + (this.playerArgs == null ? 0 : this.playerArgs.hashCode()) | 0; + result = imul(result, 31) + (this.reqSortOption == null ? 0 : this.reqSortOption.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KDynVideoReq)) + return false; + var tmp0_other_with_cast = other instanceof KDynVideoReq ? other : THROW_CCE(); + if (!(this.updateBaseline === tmp0_other_with_cast.updateBaseline)) + return false; + if (!(this.offset === tmp0_other_with_cast.offset)) + return false; + if (!(this.page === tmp0_other_with_cast.page)) + return false; + if (!(this.refreshType === tmp0_other_with_cast.refreshType)) + return false; + if (!equals(this.playurlParam, tmp0_other_with_cast.playurlParam)) + return false; + if (!(this.assistBaseline === tmp0_other_with_cast.assistBaseline)) + return false; + if (!(this.localTime === tmp0_other_with_cast.localTime)) + return false; + if (!(this.from === tmp0_other_with_cast.from)) + return false; + if (!equals(this.playerArgs, tmp0_other_with_cast.playerArgs)) + return false; + if (!equals(this.reqSortOption, tmp0_other_with_cast.reqSortOption)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KDynVideoReq_hss8g0_k$(seen1, updateBaseline, offset, page, refreshType, playurlParam, assistBaseline, localTime, from, playerArgs, reqSortOption, serializationConstructorMarker) { + Companion_instance_755; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_742().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.updateBaseline = ''; + else + $this.updateBaseline = updateBaseline; + if (0 === (seen1 & 2)) + $this.offset = ''; + else + $this.offset = offset; + if (0 === (seen1 & 4)) + $this.page = 0; + else + $this.page = page; + if (0 === (seen1 & 8)) + $this.refreshType = 0; + else + $this.refreshType = refreshType; + if (0 === (seen1 & 16)) + $this.playurlParam = null; + else + $this.playurlParam = playurlParam; + if (0 === (seen1 & 32)) + $this.assistBaseline = ''; + else + $this.assistBaseline = assistBaseline; + if (0 === (seen1 & 64)) + $this.localTime = 0; + else + $this.localTime = localTime; + if (0 === (seen1 & 128)) + $this.from = ''; + else + $this.from = from; + if (0 === (seen1 & 256)) + $this.playerArgs = null; + else + $this.playerArgs = playerArgs; + if (0 === (seen1 & 512)) + $this.reqSortOption = null; + else + $this.reqSortOption = reqSortOption; + return $this; + } + } + class Companion_756 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.PlayurlParam'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_743(); + } + } + class $serializer_743 { + constructor() { + $serializer_instance_743 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KPlayurlParam', this, 5); + tmp0_serialDesc.addElement_5pzumi_k$('qn', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('fnver', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('fnval', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('forceHost', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('fourk', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = 0; + var tmp6_local2 = 0; + var tmp7_local3 = 0; + var tmp8_local4 = 0; + var tmp9_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp9_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + } else + while (tmp1_flag) { + tmp2_index = tmp9_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp9_input.endStructure_1xqz0n_k$(tmp0_desc); + return KPlayurlParam.new_com_bapis_bilibili_app_dynamic_v2_KPlayurlParam_wdfam_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); + } + serialize_9q20tk_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.qn === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.qn); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.fnver === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.fnver); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.fnval === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.fnval); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.forceHost === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 3, value.forceHost); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.fourk === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 4, value.fourk); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_9q20tk_k$(encoder, value instanceof KPlayurlParam ? value : THROW_CCE()); + } + } + class KPlayurlParam { + constructor(qn, fnver, fnval, forceHost, fourk) { + Companion_instance_756; + qn = qn === VOID ? 0 : qn; + fnver = fnver === VOID ? 0 : fnver; + fnval = fnval === VOID ? 0 : fnval; + forceHost = forceHost === VOID ? 0 : forceHost; + fourk = fourk === VOID ? 0 : fourk; + this.qn = qn; + this.fnver = fnver; + this.fnval = fnval; + this.forceHost = forceHost; + this.fourk = fourk; + } + get_qn_kntnq2_k$() { + return this.qn; + } + get_fnver_irh6sy_k$() { + return this.fnver; + } + get_fnval_irh6pc_k$() { + return this.fnval; + } + get_forceHost_xs29oq_k$() { + return this.forceHost; + } + get_fourk_irhtcs_k$() { + return this.fourk; + } + component1_7eebsc_k$() { + return this.qn; + } + component2_7eebsb_k$() { + return this.fnver; + } + component3_7eebsa_k$() { + return this.fnval; + } + component4_7eebs9_k$() { + return this.forceHost; + } + component5_7eebs8_k$() { + return this.fourk; + } + copy_lxzq2r_k$(qn, fnver, fnval, forceHost, fourk) { + return new KPlayurlParam(qn, fnver, fnval, forceHost, fourk); + } + copy(qn, fnver, fnval, forceHost, fourk, $super) { + qn = qn === VOID ? this.qn : qn; + fnver = fnver === VOID ? this.fnver : fnver; + fnval = fnval === VOID ? this.fnval : fnval; + forceHost = forceHost === VOID ? this.forceHost : forceHost; + fourk = fourk === VOID ? this.fourk : fourk; + return this.copy_lxzq2r_k$(qn, fnver, fnval, forceHost, fourk); + } + toString() { + return 'KPlayurlParam(qn=' + this.qn + ', fnver=' + this.fnver + ', fnval=' + this.fnval + ', forceHost=' + this.forceHost + ', fourk=' + this.fourk + ')'; + } + hashCode() { + var result = this.qn; + result = imul(result, 31) + this.fnver | 0; + result = imul(result, 31) + this.fnval | 0; + result = imul(result, 31) + this.forceHost | 0; + result = imul(result, 31) + this.fourk | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KPlayurlParam)) + return false; + var tmp0_other_with_cast = other instanceof KPlayurlParam ? other : THROW_CCE(); + if (!(this.qn === tmp0_other_with_cast.qn)) + return false; + if (!(this.fnver === tmp0_other_with_cast.fnver)) + return false; + if (!(this.fnval === tmp0_other_with_cast.fnval)) + return false; + if (!(this.forceHost === tmp0_other_with_cast.forceHost)) + return false; + if (!(this.fourk === tmp0_other_with_cast.fourk)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KPlayurlParam_wdfam_k$(seen1, qn, fnver, fnval, forceHost, fourk, serializationConstructorMarker) { + Companion_instance_756; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_743().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.qn = 0; + else + $this.qn = qn; + if (0 === (seen1 & 2)) + $this.fnver = 0; + else + $this.fnver = fnver; + if (0 === (seen1 & 4)) + $this.fnval = 0; + else + $this.fnval = fnval; + if (0 === (seen1 & 8)) + $this.forceHost = 0; + else + $this.forceHost = forceHost; + if (0 === (seen1 & 16)) + $this.fourk = 0; + else + $this.fourk = fourk; + return $this; + } + } + class Companion_757 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.DynVideoReply'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_744(); + } + } + class $serializer_744 { + constructor() { + $serializer_instance_744 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KDynVideoReply', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('dynamicList', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('videoUpList', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('videoFollowList', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('sortConfig', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_745()), get_nullable($serializer_getInstance_766()), get_nullable($serializer_getInstance_770()), get_nullable($serializer_getInstance_752())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_745(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_766(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_770(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_752(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_745(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_766(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_770(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_752(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KDynVideoReply.new_com_bapis_bilibili_app_dynamic_v2_KDynVideoReply_r20oy8_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_kx7qlo_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.dynamicList == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_745(), value.dynamicList); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.videoUpList == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_766(), value.videoUpList); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.videoFollowList == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_770(), value.videoFollowList); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.sortConfig == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_752(), value.sortConfig); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_kx7qlo_k$(encoder, value instanceof KDynVideoReply ? value : THROW_CCE()); + } + } + class KDynVideoReply { + constructor(dynamicList, videoUpList, videoFollowList, sortConfig) { + Companion_instance_757; + dynamicList = dynamicList === VOID ? null : dynamicList; + videoUpList = videoUpList === VOID ? null : videoUpList; + videoFollowList = videoFollowList === VOID ? null : videoFollowList; + sortConfig = sortConfig === VOID ? null : sortConfig; + this.dynamicList = dynamicList; + this.videoUpList = videoUpList; + this.videoFollowList = videoFollowList; + this.sortConfig = sortConfig; + } + get_dynamicList_9m1udw_k$() { + return this.dynamicList; + } + get_videoUpList_w0cnnv_k$() { + return this.videoUpList; + } + get_videoFollowList_qk7aap_k$() { + return this.videoFollowList; + } + get_sortConfig_veol55_k$() { + return this.sortConfig; + } + component1_7eebsc_k$() { + return this.dynamicList; + } + component2_7eebsb_k$() { + return this.videoUpList; + } + component3_7eebsa_k$() { + return this.videoFollowList; + } + component4_7eebs9_k$() { + return this.sortConfig; + } + copy_9733d7_k$(dynamicList, videoUpList, videoFollowList, sortConfig) { + return new KDynVideoReply(dynamicList, videoUpList, videoFollowList, sortConfig); + } + copy(dynamicList, videoUpList, videoFollowList, sortConfig, $super) { + dynamicList = dynamicList === VOID ? this.dynamicList : dynamicList; + videoUpList = videoUpList === VOID ? this.videoUpList : videoUpList; + videoFollowList = videoFollowList === VOID ? this.videoFollowList : videoFollowList; + sortConfig = sortConfig === VOID ? this.sortConfig : sortConfig; + return this.copy_9733d7_k$(dynamicList, videoUpList, videoFollowList, sortConfig); + } + toString() { + return 'KDynVideoReply(dynamicList=' + this.dynamicList + ', videoUpList=' + this.videoUpList + ', videoFollowList=' + this.videoFollowList + ', sortConfig=' + this.sortConfig + ')'; + } + hashCode() { + var result = this.dynamicList == null ? 0 : this.dynamicList.hashCode(); + result = imul(result, 31) + (this.videoUpList == null ? 0 : this.videoUpList.hashCode()) | 0; + result = imul(result, 31) + (this.videoFollowList == null ? 0 : this.videoFollowList.hashCode()) | 0; + result = imul(result, 31) + (this.sortConfig == null ? 0 : this.sortConfig.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KDynVideoReply)) + return false; + var tmp0_other_with_cast = other instanceof KDynVideoReply ? other : THROW_CCE(); + if (!equals(this.dynamicList, tmp0_other_with_cast.dynamicList)) + return false; + if (!equals(this.videoUpList, tmp0_other_with_cast.videoUpList)) + return false; + if (!equals(this.videoFollowList, tmp0_other_with_cast.videoFollowList)) + return false; + if (!equals(this.sortConfig, tmp0_other_with_cast.sortConfig)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KDynVideoReply_r20oy8_k$(seen1, dynamicList, videoUpList, videoFollowList, sortConfig, serializationConstructorMarker) { + Companion_instance_757; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_744().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.dynamicList = null; + else + $this.dynamicList = dynamicList; + if (0 === (seen1 & 2)) + $this.videoUpList = null; + else + $this.videoUpList = videoUpList; + if (0 === (seen1 & 4)) + $this.videoFollowList = null; + else + $this.videoFollowList = videoFollowList; + if (0 === (seen1 & 8)) + $this.sortConfig = null; + else + $this.sortConfig = sortConfig; + return $this; + } + } + class Companion_758 { + constructor() { + Companion_instance_758 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer($serializer_getInstance_942()), null, null, null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.CardVideoDynList'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_745(); + } + } + class $serializer_745 { + constructor() { + $serializer_instance_745 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KCardVideoDynList', this, 5); + tmp0_serialDesc.addElement_5pzumi_k$('list', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('updateNum', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('historyOffset', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('updateBaseline', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('hasMore', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_758().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0], LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), BooleanSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = new Long(0, 0); + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = false; + var tmp9_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp10_cached = Companion_getInstance_758().$childSerializers_1; + if (tmp9_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp9_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp10_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp9_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + } else + while (tmp1_flag) { + tmp2_index = tmp9_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp9_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp10_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp9_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp9_input.endStructure_1xqz0n_k$(tmp0_desc); + return KCardVideoDynList.new_com_bapis_bilibili_app_dynamic_v2_KCardVideoDynList_nbysqv_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); + } + serialize_1orha6_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_758().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.list, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.list); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.updateNum.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.updateNum); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.historyOffset === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.historyOffset); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.updateBaseline === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.updateBaseline); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.hasMore === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 4, value.hasMore); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_1orha6_k$(encoder, value instanceof KCardVideoDynList ? value : THROW_CCE()); + } + } + class KCardVideoDynList { + constructor(list, updateNum, historyOffset, updateBaseline, hasMore) { + Companion_getInstance_758(); + list = list === VOID ? emptyList() : list; + updateNum = updateNum === VOID ? new Long(0, 0) : updateNum; + historyOffset = historyOffset === VOID ? '' : historyOffset; + updateBaseline = updateBaseline === VOID ? '' : updateBaseline; + hasMore = hasMore === VOID ? false : hasMore; + this.list = list; + this.updateNum = updateNum; + this.historyOffset = historyOffset; + this.updateBaseline = updateBaseline; + this.hasMore = hasMore; + } + get_list_wopuqv_k$() { + return this.list; + } + get_updateNum_npzm3w_k$() { + return this.updateNum; + } + get_historyOffset_ki5142_k$() { + return this.historyOffset; + } + get_updateBaseline_jajak7_k$() { + return this.updateBaseline; + } + get_hasMore_csdhd2_k$() { + return this.hasMore; + } + component1_7eebsc_k$() { + return this.list; + } + component2_7eebsb_k$() { + return this.updateNum; + } + component3_7eebsa_k$() { + return this.historyOffset; + } + component4_7eebs9_k$() { + return this.updateBaseline; + } + component5_7eebs8_k$() { + return this.hasMore; + } + copy_4p6gg5_k$(list, updateNum, historyOffset, updateBaseline, hasMore) { + return new KCardVideoDynList(list, updateNum, historyOffset, updateBaseline, hasMore); + } + copy(list, updateNum, historyOffset, updateBaseline, hasMore, $super) { + list = list === VOID ? this.list : list; + updateNum = updateNum === VOID ? this.updateNum : updateNum; + historyOffset = historyOffset === VOID ? this.historyOffset : historyOffset; + updateBaseline = updateBaseline === VOID ? this.updateBaseline : updateBaseline; + hasMore = hasMore === VOID ? this.hasMore : hasMore; + return this.copy_4p6gg5_k$(list, updateNum, historyOffset, updateBaseline, hasMore); + } + toString() { + return 'KCardVideoDynList(list=' + this.list + ', updateNum=' + this.updateNum.toString() + ', historyOffset=' + this.historyOffset + ', updateBaseline=' + this.updateBaseline + ', hasMore=' + this.hasMore + ')'; + } + hashCode() { + var result = hashCode(this.list); + result = imul(result, 31) + this.updateNum.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.historyOffset) | 0; + result = imul(result, 31) + getStringHashCode(this.updateBaseline) | 0; + result = imul(result, 31) + getBooleanHashCode(this.hasMore) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KCardVideoDynList)) + return false; + var tmp0_other_with_cast = other instanceof KCardVideoDynList ? other : THROW_CCE(); + if (!equals(this.list, tmp0_other_with_cast.list)) + return false; + if (!this.updateNum.equals(tmp0_other_with_cast.updateNum)) + return false; + if (!(this.historyOffset === tmp0_other_with_cast.historyOffset)) + return false; + if (!(this.updateBaseline === tmp0_other_with_cast.updateBaseline)) + return false; + if (!(this.hasMore === tmp0_other_with_cast.hasMore)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KCardVideoDynList_nbysqv_k$(seen1, list, updateNum, historyOffset, updateBaseline, hasMore, serializationConstructorMarker) { + Companion_getInstance_758(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_745().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.list = emptyList(); + else + $this.list = list; + if (0 === (seen1 & 2)) + $this.updateNum = new Long(0, 0); + else + $this.updateNum = updateNum; + if (0 === (seen1 & 4)) + $this.historyOffset = ''; + else + $this.historyOffset = historyOffset; + if (0 === (seen1 & 8)) + $this.updateBaseline = ''; + else + $this.updateBaseline = updateBaseline; + if (0 === (seen1 & 16)) + $this.hasMore = false; + else + $this.hasMore = hasMore; + return $this; + } + } + class Companion_759 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.DynAllReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_746(); + } + } + class $serializer_746 { + constructor() { + $serializer_instance_746 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KDynAllReq', this, 16); + tmp0_serialDesc.addElement_5pzumi_k$('updateBaseline', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('offset', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('page', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('refreshType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('playurlParam', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('assistBaseline', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('localTime', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('rcmdUpsParam', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('adParam', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('coldStart', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('from', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('playerArgs', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + tmp0_serialDesc.addElement_5pzumi_k$('tabRecallUid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(13)); + tmp0_serialDesc.addElement_5pzumi_k$('tabRecallType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(14)); + tmp0_serialDesc.addElement_5pzumi_k$('tabRecallExtra', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(15)); + tmp0_serialDesc.addElement_5pzumi_k$('reqSortOption', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(16)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), get_nullable($serializer_getInstance_743()), StringSerializer_getInstance(), IntSerializer_getInstance(), get_nullable($serializer_getInstance_747()), get_nullable($serializer_getInstance_748()), IntSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_152()), LongSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_754())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = 0; + var tmp7_local3 = 0; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = 0; + var tmp11_local7 = null; + var tmp12_local8 = null; + var tmp13_local9 = 0; + var tmp14_local10 = null; + var tmp15_local11 = null; + var tmp16_local12 = new Long(0, 0); + var tmp17_local13 = 0; + var tmp18_local14 = null; + var tmp19_local15 = null; + var tmp20_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp20_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_743(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_747(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_748(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 11, $serializer_getInstance_152(), tmp15_local11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + tmp16_local12 = tmp20_input.decodeLongElement_994anb_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + tmp17_local13 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + tmp18_local14 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + tmp19_local15 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 15, $serializer_getInstance_754(), tmp19_local15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + } else + while (tmp1_flag) { + tmp2_index = tmp20_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_743(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_747(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_748(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 11, $serializer_getInstance_152(), tmp15_local11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + case 12: + tmp16_local12 = tmp20_input.decodeLongElement_994anb_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + break; + case 13: + tmp17_local13 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + break; + case 14: + tmp18_local14 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + break; + case 15: + tmp19_local15 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 15, $serializer_getInstance_754(), tmp19_local15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp20_input.endStructure_1xqz0n_k$(tmp0_desc); + return KDynAllReq.new_com_bapis_bilibili_app_dynamic_v2_KDynAllReq_wvzmym_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, tmp18_local14, tmp19_local15, null); + } + serialize_ayfiyu_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.updateBaseline === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.updateBaseline); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.offset === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.offset); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.page === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.page); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.refreshType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 3, value.refreshType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.playurlParam == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, $serializer_getInstance_743(), value.playurlParam); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.assistBaseline === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.assistBaseline); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.localTime === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 6, value.localTime); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.rcmdUpsParam == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 7, $serializer_getInstance_747(), value.rcmdUpsParam); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.adParam == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 8, $serializer_getInstance_748(), value.adParam); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.coldStart === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 9, value.coldStart); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.from === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 10, value.from); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.playerArgs == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 11, $serializer_getInstance_152(), value.playerArgs); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !value.tabRecallUid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 12, value.tabRecallUid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 13) ? true : !(value.tabRecallType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 13, value.tabRecallType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 14) ? true : !(value.tabRecallExtra === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 14, value.tabRecallExtra); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 15) ? true : !(value.reqSortOption == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 15, $serializer_getInstance_754(), value.reqSortOption); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_ayfiyu_k$(encoder, value instanceof KDynAllReq ? value : THROW_CCE()); + } + } + class KDynAllReq { + constructor(updateBaseline, offset, page, refreshType, playurlParam, assistBaseline, localTime, rcmdUpsParam, adParam, coldStart, from, playerArgs, tabRecallUid, tabRecallType, tabRecallExtra, reqSortOption) { + Companion_instance_759; + updateBaseline = updateBaseline === VOID ? '' : updateBaseline; + offset = offset === VOID ? '' : offset; + page = page === VOID ? 0 : page; + refreshType = refreshType === VOID ? 0 : refreshType; + playurlParam = playurlParam === VOID ? null : playurlParam; + assistBaseline = assistBaseline === VOID ? '' : assistBaseline; + localTime = localTime === VOID ? 0 : localTime; + rcmdUpsParam = rcmdUpsParam === VOID ? null : rcmdUpsParam; + adParam = adParam === VOID ? null : adParam; + coldStart = coldStart === VOID ? 0 : coldStart; + from = from === VOID ? '' : from; + playerArgs = playerArgs === VOID ? null : playerArgs; + tabRecallUid = tabRecallUid === VOID ? new Long(0, 0) : tabRecallUid; + tabRecallType = tabRecallType === VOID ? 0 : tabRecallType; + tabRecallExtra = tabRecallExtra === VOID ? '' : tabRecallExtra; + reqSortOption = reqSortOption === VOID ? null : reqSortOption; + this.updateBaseline = updateBaseline; + this.offset = offset; + this.page = page; + this.refreshType = refreshType; + this.playurlParam = playurlParam; + this.assistBaseline = assistBaseline; + this.localTime = localTime; + this.rcmdUpsParam = rcmdUpsParam; + this.adParam = adParam; + this.coldStart = coldStart; + this.from = from; + this.playerArgs = playerArgs; + this.tabRecallUid = tabRecallUid; + this.tabRecallType = tabRecallType; + this.tabRecallExtra = tabRecallExtra; + this.reqSortOption = reqSortOption; + } + get_updateBaseline_jajak7_k$() { + return this.updateBaseline; + } + get_offset_hjmqak_k$() { + return this.offset; + } + get_page_wos8go_k$() { + return this.page; + } + get_refreshType_91r450_k$() { + return this.refreshType; + } + get_playurlParam_oed3qd_k$() { + return this.playurlParam; + } + get_assistBaseline_ibg0yf_k$() { + return this.assistBaseline; + } + get_localTime_bf0zwx_k$() { + return this.localTime; + } + get_rcmdUpsParam_tr709y_k$() { + return this.rcmdUpsParam; + } + get_adParam_i11k8v_k$() { + return this.adParam; + } + get_coldStart_zf6aiz_k$() { + return this.coldStart; + } + get_from_wom7eb_k$() { + return this.from; + } + get_playerArgs_eh86hz_k$() { + return this.playerArgs; + } + get_tabRecallUid_64qvg3_k$() { + return this.tabRecallUid; + } + get_tabRecallType_n07du1_k$() { + return this.tabRecallType; + } + get_tabRecallExtra_33htn1_k$() { + return this.tabRecallExtra; + } + get_reqSortOption_fw1pzc_k$() { + return this.reqSortOption; + } + refreshTypeEnum() { + return Companion_getInstance_731().fromValue(this.refreshType); + } + tabRecallTypeEnum() { + return Companion_getInstance_732().fromValue(this.tabRecallType); + } + component1_7eebsc_k$() { + return this.updateBaseline; + } + component2_7eebsb_k$() { + return this.offset; + } + component3_7eebsa_k$() { + return this.page; + } + component4_7eebs9_k$() { + return this.refreshType; + } + component5_7eebs8_k$() { + return this.playurlParam; + } + component6_7eebs7_k$() { + return this.assistBaseline; + } + component7_7eebs6_k$() { + return this.localTime; + } + component8_7eebs5_k$() { + return this.rcmdUpsParam; + } + component9_7eebs4_k$() { + return this.adParam; + } + component10_gazzfo_k$() { + return this.coldStart; + } + component11_gazzfn_k$() { + return this.from; + } + component12_gazzfm_k$() { + return this.playerArgs; + } + component13_gazzfl_k$() { + return this.tabRecallUid; + } + component14_gazzfk_k$() { + return this.tabRecallType; + } + component15_gazzfj_k$() { + return this.tabRecallExtra; + } + component16_gazzfi_k$() { + return this.reqSortOption; + } + copy_ma7nta_k$(updateBaseline, offset, page, refreshType, playurlParam, assistBaseline, localTime, rcmdUpsParam, adParam, coldStart, from, playerArgs, tabRecallUid, tabRecallType, tabRecallExtra, reqSortOption) { + return new KDynAllReq(updateBaseline, offset, page, refreshType, playurlParam, assistBaseline, localTime, rcmdUpsParam, adParam, coldStart, from, playerArgs, tabRecallUid, tabRecallType, tabRecallExtra, reqSortOption); + } + copy(updateBaseline, offset, page, refreshType, playurlParam, assistBaseline, localTime, rcmdUpsParam, adParam, coldStart, from, playerArgs, tabRecallUid, tabRecallType, tabRecallExtra, reqSortOption, $super) { + updateBaseline = updateBaseline === VOID ? this.updateBaseline : updateBaseline; + offset = offset === VOID ? this.offset : offset; + page = page === VOID ? this.page : page; + refreshType = refreshType === VOID ? this.refreshType : refreshType; + playurlParam = playurlParam === VOID ? this.playurlParam : playurlParam; + assistBaseline = assistBaseline === VOID ? this.assistBaseline : assistBaseline; + localTime = localTime === VOID ? this.localTime : localTime; + rcmdUpsParam = rcmdUpsParam === VOID ? this.rcmdUpsParam : rcmdUpsParam; + adParam = adParam === VOID ? this.adParam : adParam; + coldStart = coldStart === VOID ? this.coldStart : coldStart; + from = from === VOID ? this.from : from; + playerArgs = playerArgs === VOID ? this.playerArgs : playerArgs; + tabRecallUid = tabRecallUid === VOID ? this.tabRecallUid : tabRecallUid; + tabRecallType = tabRecallType === VOID ? this.tabRecallType : tabRecallType; + tabRecallExtra = tabRecallExtra === VOID ? this.tabRecallExtra : tabRecallExtra; + reqSortOption = reqSortOption === VOID ? this.reqSortOption : reqSortOption; + return this.copy_ma7nta_k$(updateBaseline, offset, page, refreshType, playurlParam, assistBaseline, localTime, rcmdUpsParam, adParam, coldStart, from, playerArgs, tabRecallUid, tabRecallType, tabRecallExtra, reqSortOption); + } + toString() { + return 'KDynAllReq(updateBaseline=' + this.updateBaseline + ', offset=' + this.offset + ', page=' + this.page + ', refreshType=' + this.refreshType + ', playurlParam=' + this.playurlParam + ', assistBaseline=' + this.assistBaseline + ', localTime=' + this.localTime + ', rcmdUpsParam=' + this.rcmdUpsParam + ', adParam=' + this.adParam + ', coldStart=' + this.coldStart + ', from=' + this.from + ', playerArgs=' + this.playerArgs + ', tabRecallUid=' + this.tabRecallUid.toString() + ', tabRecallType=' + this.tabRecallType + ', tabRecallExtra=' + this.tabRecallExtra + ', reqSortOption=' + this.reqSortOption + ')'; + } + hashCode() { + var result = getStringHashCode(this.updateBaseline); + result = imul(result, 31) + getStringHashCode(this.offset) | 0; + result = imul(result, 31) + this.page | 0; + result = imul(result, 31) + this.refreshType | 0; + result = imul(result, 31) + (this.playurlParam == null ? 0 : this.playurlParam.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.assistBaseline) | 0; + result = imul(result, 31) + this.localTime | 0; + result = imul(result, 31) + (this.rcmdUpsParam == null ? 0 : this.rcmdUpsParam.hashCode()) | 0; + result = imul(result, 31) + (this.adParam == null ? 0 : this.adParam.hashCode()) | 0; + result = imul(result, 31) + this.coldStart | 0; + result = imul(result, 31) + getStringHashCode(this.from) | 0; + result = imul(result, 31) + (this.playerArgs == null ? 0 : this.playerArgs.hashCode()) | 0; + result = imul(result, 31) + this.tabRecallUid.hashCode() | 0; + result = imul(result, 31) + this.tabRecallType | 0; + result = imul(result, 31) + getStringHashCode(this.tabRecallExtra) | 0; + result = imul(result, 31) + (this.reqSortOption == null ? 0 : this.reqSortOption.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KDynAllReq)) + return false; + var tmp0_other_with_cast = other instanceof KDynAllReq ? other : THROW_CCE(); + if (!(this.updateBaseline === tmp0_other_with_cast.updateBaseline)) + return false; + if (!(this.offset === tmp0_other_with_cast.offset)) + return false; + if (!(this.page === tmp0_other_with_cast.page)) + return false; + if (!(this.refreshType === tmp0_other_with_cast.refreshType)) + return false; + if (!equals(this.playurlParam, tmp0_other_with_cast.playurlParam)) + return false; + if (!(this.assistBaseline === tmp0_other_with_cast.assistBaseline)) + return false; + if (!(this.localTime === tmp0_other_with_cast.localTime)) + return false; + if (!equals(this.rcmdUpsParam, tmp0_other_with_cast.rcmdUpsParam)) + return false; + if (!equals(this.adParam, tmp0_other_with_cast.adParam)) + return false; + if (!(this.coldStart === tmp0_other_with_cast.coldStart)) + return false; + if (!(this.from === tmp0_other_with_cast.from)) + return false; + if (!equals(this.playerArgs, tmp0_other_with_cast.playerArgs)) + return false; + if (!this.tabRecallUid.equals(tmp0_other_with_cast.tabRecallUid)) + return false; + if (!(this.tabRecallType === tmp0_other_with_cast.tabRecallType)) + return false; + if (!(this.tabRecallExtra === tmp0_other_with_cast.tabRecallExtra)) + return false; + if (!equals(this.reqSortOption, tmp0_other_with_cast.reqSortOption)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KDynAllReq_wvzmym_k$(seen1, updateBaseline, offset, page, refreshType, playurlParam, assistBaseline, localTime, rcmdUpsParam, adParam, coldStart, from, playerArgs, tabRecallUid, tabRecallType, tabRecallExtra, reqSortOption, serializationConstructorMarker) { + Companion_instance_759; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_746().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.updateBaseline = ''; + else + $this.updateBaseline = updateBaseline; + if (0 === (seen1 & 2)) + $this.offset = ''; + else + $this.offset = offset; + if (0 === (seen1 & 4)) + $this.page = 0; + else + $this.page = page; + if (0 === (seen1 & 8)) + $this.refreshType = 0; + else + $this.refreshType = refreshType; + if (0 === (seen1 & 16)) + $this.playurlParam = null; + else + $this.playurlParam = playurlParam; + if (0 === (seen1 & 32)) + $this.assistBaseline = ''; + else + $this.assistBaseline = assistBaseline; + if (0 === (seen1 & 64)) + $this.localTime = 0; + else + $this.localTime = localTime; + if (0 === (seen1 & 128)) + $this.rcmdUpsParam = null; + else + $this.rcmdUpsParam = rcmdUpsParam; + if (0 === (seen1 & 256)) + $this.adParam = null; + else + $this.adParam = adParam; + if (0 === (seen1 & 512)) + $this.coldStart = 0; + else + $this.coldStart = coldStart; + if (0 === (seen1 & 1024)) + $this.from = ''; + else + $this.from = from; + if (0 === (seen1 & 2048)) + $this.playerArgs = null; + else + $this.playerArgs = playerArgs; + if (0 === (seen1 & 4096)) + $this.tabRecallUid = new Long(0, 0); + else + $this.tabRecallUid = tabRecallUid; + if (0 === (seen1 & 8192)) + $this.tabRecallType = 0; + else + $this.tabRecallType = tabRecallType; + if (0 === (seen1 & 16384)) + $this.tabRecallExtra = ''; + else + $this.tabRecallExtra = tabRecallExtra; + if (0 === (seen1 & 32768)) + $this.reqSortOption = null; + else + $this.reqSortOption = reqSortOption; + return $this; + } + } + class Companion_760 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.RcmdUPsParam'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_747(); + } + } + class $serializer_747 { + constructor() { + $serializer_instance_747 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KRcmdUPsParam', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('dislikeTs', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KRcmdUPsParam.new_com_bapis_bilibili_app_dynamic_v2_KRcmdUPsParam_nla669_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_9mcsz7_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.dislikeTs.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.dislikeTs); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_9mcsz7_k$(encoder, value instanceof KRcmdUPsParam ? value : THROW_CCE()); + } + } + class KRcmdUPsParam { + constructor(dislikeTs) { + Companion_instance_760; + dislikeTs = dislikeTs === VOID ? new Long(0, 0) : dislikeTs; + this.dislikeTs = dislikeTs; + } + get_dislikeTs_ao9pej_k$() { + return this.dislikeTs; + } + component1_7eebsc_k$() { + return this.dislikeTs; + } + copy_5ymysz_k$(dislikeTs) { + return new KRcmdUPsParam(dislikeTs); + } + copy(dislikeTs, $super) { + dislikeTs = dislikeTs === VOID ? this.dislikeTs : dislikeTs; + return this.copy_5ymysz_k$(dislikeTs); + } + toString() { + return 'KRcmdUPsParam(dislikeTs=' + this.dislikeTs.toString() + ')'; + } + hashCode() { + return this.dislikeTs.hashCode(); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KRcmdUPsParam)) + return false; + var tmp0_other_with_cast = other instanceof KRcmdUPsParam ? other : THROW_CCE(); + if (!this.dislikeTs.equals(tmp0_other_with_cast.dislikeTs)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KRcmdUPsParam_nla669_k$(seen1, dislikeTs, serializationConstructorMarker) { + Companion_instance_760; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_747().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.dislikeTs = new Long(0, 0); + else + $this.dislikeTs = dislikeTs; + return $this; + } + } + class Companion_761 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.AdParam'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_748(); + } + } + class $serializer_748 { + constructor() { + $serializer_instance_748 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KAdParam', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('adExtra', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('requestId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KAdParam.new_com_bapis_bilibili_app_dynamic_v2_KAdParam_8nek0w_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_cu20lq_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.adExtra === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.adExtra); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.requestId === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.requestId); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_cu20lq_k$(encoder, value instanceof KAdParam ? value : THROW_CCE()); + } + } + class KAdParam { + constructor(adExtra, requestId) { + Companion_instance_761; + adExtra = adExtra === VOID ? '' : adExtra; + requestId = requestId === VOID ? '' : requestId; + this.adExtra = adExtra; + this.requestId = requestId; + } + get_adExtra_i6ok70_k$() { + return this.adExtra; + } + get_requestId_jzo7dt_k$() { + return this.requestId; + } + component1_7eebsc_k$() { + return this.adExtra; + } + component2_7eebsb_k$() { + return this.requestId; + } + copy_plwnsl_k$(adExtra, requestId) { + return new KAdParam(adExtra, requestId); + } + copy(adExtra, requestId, $super) { + adExtra = adExtra === VOID ? this.adExtra : adExtra; + requestId = requestId === VOID ? this.requestId : requestId; + return this.copy_plwnsl_k$(adExtra, requestId); + } + toString() { + return 'KAdParam(adExtra=' + this.adExtra + ', requestId=' + this.requestId + ')'; + } + hashCode() { + var result = getStringHashCode(this.adExtra); + result = imul(result, 31) + getStringHashCode(this.requestId) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KAdParam)) + return false; + var tmp0_other_with_cast = other instanceof KAdParam ? other : THROW_CCE(); + if (!(this.adExtra === tmp0_other_with_cast.adExtra)) + return false; + if (!(this.requestId === tmp0_other_with_cast.requestId)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KAdParam_8nek0w_k$(seen1, adExtra, requestId, serializationConstructorMarker) { + Companion_instance_761; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_748().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.adExtra = ''; + else + $this.adExtra = adExtra; + if (0 === (seen1 & 2)) + $this.requestId = ''; + else + $this.requestId = requestId; + return $this; + } + } + class Companion_762 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.Config.ExtraRouterKvsEntry'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_749(); + } + } + class $serializer_749 { + constructor() { + $serializer_instance_749 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KConfig.KExtraRouterKvsEntry', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('key', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('value', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KExtraRouterKvsEntry.new_com_bapis_bilibili_app_dynamic_v2_KConfig_KExtraRouterKvsEntry_ov41uz_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_mbrmgo_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.key === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.key); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.value === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.value); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_mbrmgo_k$(encoder, value instanceof KExtraRouterKvsEntry ? value : THROW_CCE()); + } + } + class KExtraRouterKvsEntry { + constructor(key, value) { + Companion_instance_762; + key = key === VOID ? '' : key; + value = value === VOID ? '' : value; + this.key = key; + this.value = value; + } + get_key_18j28a_k$() { + return this.key; + } + get_value_j01efc_k$() { + return this.value; + } + component1_7eebsc_k$() { + return this.key; + } + component2_7eebsb_k$() { + return this.value; + } + copy_plwnsl_k$(key, value) { + return new KExtraRouterKvsEntry(key, value); + } + copy(key, value, $super) { + key = key === VOID ? this.key : key; + value = value === VOID ? this.value : value; + return this.copy_plwnsl_k$(key, value); + } + toString() { + return 'KExtraRouterKvsEntry(key=' + this.key + ', value=' + this.value + ')'; + } + hashCode() { + var result = getStringHashCode(this.key); + result = imul(result, 31) + getStringHashCode(this.value) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KExtraRouterKvsEntry)) + return false; + var tmp0_other_with_cast = other instanceof KExtraRouterKvsEntry ? other : THROW_CCE(); + if (!(this.key === tmp0_other_with_cast.key)) + return false; + if (!(this.value === tmp0_other_with_cast.value)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KConfig_KExtraRouterKvsEntry_ov41uz_k$(seen1, key, value, serializationConstructorMarker) { + Companion_instance_762; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_749().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.key = ''; + else + $this.key = key; + if (0 === (seen1 & 2)) + $this.value = ''; + else + $this.value = value; + return $this; + } + } + class Companion_763 { + constructor() { + Companion_instance_763 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, new LinkedHashMapSerializer(StringSerializer_getInstance(), StringSerializer_getInstance())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.Config'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_750(); + } + } + class $serializer_750 { + constructor() { + $serializer_instance_750 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KConfig', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('storyVerticalExp', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('detailViewBits', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('extraRouterKvs', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_763().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [BooleanSerializer_getInstance(), LongSerializer_getInstance(), tmp0_cached[2]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = false; + var tmp5_local1 = new Long(0, 0); + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp8_cached = Companion_getInstance_763().$childSerializers_1; + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp8_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp8_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KConfig_1.new_com_bapis_bilibili_app_dynamic_v2_KConfig_3rr6oe_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_fw2rdk_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_763().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.storyVerticalExp === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 0, value.storyVerticalExp); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.detailViewBits.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.detailViewBits); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !equals(value.extraRouterKvs, emptyMap())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 2, tmp2_cached[2], value.extraRouterKvs); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_fw2rdk_k$(encoder, value instanceof KConfig_1 ? value : THROW_CCE()); + } + } + class KConfig_1 { + constructor(storyVerticalExp, detailViewBits, extraRouterKvs) { + Companion_getInstance_763(); + storyVerticalExp = storyVerticalExp === VOID ? false : storyVerticalExp; + detailViewBits = detailViewBits === VOID ? new Long(0, 0) : detailViewBits; + extraRouterKvs = extraRouterKvs === VOID ? emptyMap() : extraRouterKvs; + this.storyVerticalExp = storyVerticalExp; + this.detailViewBits = detailViewBits; + this.extraRouterKvs = extraRouterKvs; + } + get_storyVerticalExp_3311ej_k$() { + return this.storyVerticalExp; + } + get_detailViewBits_id79yz_k$() { + return this.detailViewBits; + } + get_extraRouterKvs_h5e14o_k$() { + return this.extraRouterKvs; + } + component1_7eebsc_k$() { + return this.storyVerticalExp; + } + component2_7eebsb_k$() { + return this.detailViewBits; + } + component3_7eebsa_k$() { + return this.extraRouterKvs; + } + copy_nrqc6a_k$(storyVerticalExp, detailViewBits, extraRouterKvs) { + return new KConfig_1(storyVerticalExp, detailViewBits, extraRouterKvs); + } + copy(storyVerticalExp, detailViewBits, extraRouterKvs, $super) { + storyVerticalExp = storyVerticalExp === VOID ? this.storyVerticalExp : storyVerticalExp; + detailViewBits = detailViewBits === VOID ? this.detailViewBits : detailViewBits; + extraRouterKvs = extraRouterKvs === VOID ? this.extraRouterKvs : extraRouterKvs; + return this.copy_nrqc6a_k$(storyVerticalExp, detailViewBits, extraRouterKvs); + } + toString() { + return 'KConfig(storyVerticalExp=' + this.storyVerticalExp + ', detailViewBits=' + this.detailViewBits.toString() + ', extraRouterKvs=' + this.extraRouterKvs + ')'; + } + hashCode() { + var result = getBooleanHashCode(this.storyVerticalExp); + result = imul(result, 31) + this.detailViewBits.hashCode() | 0; + result = imul(result, 31) + hashCode(this.extraRouterKvs) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KConfig_1)) + return false; + var tmp0_other_with_cast = other instanceof KConfig_1 ? other : THROW_CCE(); + if (!(this.storyVerticalExp === tmp0_other_with_cast.storyVerticalExp)) + return false; + if (!this.detailViewBits.equals(tmp0_other_with_cast.detailViewBits)) + return false; + if (!equals(this.extraRouterKvs, tmp0_other_with_cast.extraRouterKvs)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KConfig_3rr6oe_k$(seen1, storyVerticalExp, detailViewBits, extraRouterKvs, serializationConstructorMarker) { + Companion_getInstance_763(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_750().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.storyVerticalExp = false; + else + $this.storyVerticalExp = storyVerticalExp; + if (0 === (seen1 & 2)) + $this.detailViewBits = new Long(0, 0); + else + $this.detailViewBits = detailViewBits; + if (0 === (seen1 & 4)) + $this.extraRouterKvs = emptyMap(); + else + $this.extraRouterKvs = extraRouterKvs; + return $this; + } + } + class Companion_764 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.DynAllReply'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_751(); + } + } + class $serializer_751 { + constructor() { + $serializer_instance_751 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KDynAllReply', this, 7); + tmp0_serialDesc.addElement_5pzumi_k$('dynamicList', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('upList', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('topicList', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('unfollow', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('regionRcmd', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('config', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('sortConfig', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_755()), get_nullable($serializer_getInstance_766()), get_nullable($serializer_getInstance_756()), get_nullable($serializer_getInstance_759()), get_nullable($serializer_getInstance_805()), get_nullable($serializer_getInstance_750()), get_nullable($serializer_getInstance_752())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp11_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_755(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_766(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_756(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_759(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_805(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_750(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_752(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + } else + while (tmp1_flag) { + tmp2_index = tmp11_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_755(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_766(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_756(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_759(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_805(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_750(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_752(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp11_input.endStructure_1xqz0n_k$(tmp0_desc); + return KDynAllReply.new_com_bapis_bilibili_app_dynamic_v2_KDynAllReply_gzgvwb_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, null); + } + serialize_crujpi_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.dynamicList == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_755(), value.dynamicList); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.upList == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_766(), value.upList); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.topicList == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_756(), value.topicList); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.unfollow == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_759(), value.unfollow); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.regionRcmd == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, $serializer_getInstance_805(), value.regionRcmd); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.config == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 5, $serializer_getInstance_750(), value.config); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.sortConfig == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 6, $serializer_getInstance_752(), value.sortConfig); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_crujpi_k$(encoder, value instanceof KDynAllReply ? value : THROW_CCE()); + } + } + class KDynAllReply { + constructor(dynamicList, upList, topicList, unfollow, regionRcmd, config, sortConfig) { + Companion_instance_764; + dynamicList = dynamicList === VOID ? null : dynamicList; + upList = upList === VOID ? null : upList; + topicList = topicList === VOID ? null : topicList; + unfollow = unfollow === VOID ? null : unfollow; + regionRcmd = regionRcmd === VOID ? null : regionRcmd; + config = config === VOID ? null : config; + sortConfig = sortConfig === VOID ? null : sortConfig; + this.dynamicList = dynamicList; + this.upList = upList; + this.topicList = topicList; + this.unfollow = unfollow; + this.regionRcmd = regionRcmd; + this.config = config; + this.sortConfig = sortConfig; + } + get_dynamicList_9m1udw_k$() { + return this.dynamicList; + } + get_upList_kixluq_k$() { + return this.upList; + } + get_topicList_exmapw_k$() { + return this.topicList; + } + get_unfollow_wwgz83_k$() { + return this.unfollow; + } + get_regionRcmd_hxq6n9_k$() { + return this.regionRcmd; + } + get_config_c0698r_k$() { + return this.config; + } + get_sortConfig_veol55_k$() { + return this.sortConfig; + } + component1_7eebsc_k$() { + return this.dynamicList; + } + component2_7eebsb_k$() { + return this.upList; + } + component3_7eebsa_k$() { + return this.topicList; + } + component4_7eebs9_k$() { + return this.unfollow; + } + component5_7eebs8_k$() { + return this.regionRcmd; + } + component6_7eebs7_k$() { + return this.config; + } + component7_7eebs6_k$() { + return this.sortConfig; + } + copy_ayf1om_k$(dynamicList, upList, topicList, unfollow, regionRcmd, config, sortConfig) { + return new KDynAllReply(dynamicList, upList, topicList, unfollow, regionRcmd, config, sortConfig); + } + copy(dynamicList, upList, topicList, unfollow, regionRcmd, config, sortConfig, $super) { + dynamicList = dynamicList === VOID ? this.dynamicList : dynamicList; + upList = upList === VOID ? this.upList : upList; + topicList = topicList === VOID ? this.topicList : topicList; + unfollow = unfollow === VOID ? this.unfollow : unfollow; + regionRcmd = regionRcmd === VOID ? this.regionRcmd : regionRcmd; + config = config === VOID ? this.config : config; + sortConfig = sortConfig === VOID ? this.sortConfig : sortConfig; + return this.copy_ayf1om_k$(dynamicList, upList, topicList, unfollow, regionRcmd, config, sortConfig); + } + toString() { + return 'KDynAllReply(dynamicList=' + this.dynamicList + ', upList=' + this.upList + ', topicList=' + this.topicList + ', unfollow=' + this.unfollow + ', regionRcmd=' + this.regionRcmd + ', config=' + this.config + ', sortConfig=' + this.sortConfig + ')'; + } + hashCode() { + var result = this.dynamicList == null ? 0 : this.dynamicList.hashCode(); + result = imul(result, 31) + (this.upList == null ? 0 : this.upList.hashCode()) | 0; + result = imul(result, 31) + (this.topicList == null ? 0 : this.topicList.hashCode()) | 0; + result = imul(result, 31) + (this.unfollow == null ? 0 : this.unfollow.hashCode()) | 0; + result = imul(result, 31) + (this.regionRcmd == null ? 0 : this.regionRcmd.hashCode()) | 0; + result = imul(result, 31) + (this.config == null ? 0 : this.config.hashCode()) | 0; + result = imul(result, 31) + (this.sortConfig == null ? 0 : this.sortConfig.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KDynAllReply)) + return false; + var tmp0_other_with_cast = other instanceof KDynAllReply ? other : THROW_CCE(); + if (!equals(this.dynamicList, tmp0_other_with_cast.dynamicList)) + return false; + if (!equals(this.upList, tmp0_other_with_cast.upList)) + return false; + if (!equals(this.topicList, tmp0_other_with_cast.topicList)) + return false; + if (!equals(this.unfollow, tmp0_other_with_cast.unfollow)) + return false; + if (!equals(this.regionRcmd, tmp0_other_with_cast.regionRcmd)) + return false; + if (!equals(this.config, tmp0_other_with_cast.config)) + return false; + if (!equals(this.sortConfig, tmp0_other_with_cast.sortConfig)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KDynAllReply_gzgvwb_k$(seen1, dynamicList, upList, topicList, unfollow, regionRcmd, config, sortConfig, serializationConstructorMarker) { + Companion_instance_764; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_751().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.dynamicList = null; + else + $this.dynamicList = dynamicList; + if (0 === (seen1 & 2)) + $this.upList = null; + else + $this.upList = upList; + if (0 === (seen1 & 4)) + $this.topicList = null; + else + $this.topicList = topicList; + if (0 === (seen1 & 8)) + $this.unfollow = null; + else + $this.unfollow = unfollow; + if (0 === (seen1 & 16)) + $this.regionRcmd = null; + else + $this.regionRcmd = regionRcmd; + if (0 === (seen1 & 32)) + $this.config = null; + else + $this.config = config; + if (0 === (seen1 & 64)) + $this.sortConfig = null; + else + $this.sortConfig = sortConfig; + return $this; + } + } + class Companion_765 { + constructor() { + Companion_instance_765 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, new ArrayListSerializer($serializer_getInstance_753())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.FeedSortConfig'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_752(); + } + } + class $serializer_752 { + constructor() { + $serializer_instance_752 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KFeedSortConfig', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('sortOptions', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_765().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), tmp0_cached[1]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp7_cached = Companion_getInstance_765().$childSerializers_1; + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KFeedSortConfig.new_com_bapis_bilibili_app_dynamic_v2_KFeedSortConfig_fmtbx2_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_q3wi6s_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_765().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !equals(value.sortOptions, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 1, tmp2_cached[1], value.sortOptions); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_q3wi6s_k$(encoder, value instanceof KFeedSortConfig ? value : THROW_CCE()); + } + } + class KFeedSortConfig { + constructor(title, sortOptions) { + Companion_getInstance_765(); + title = title === VOID ? '' : title; + sortOptions = sortOptions === VOID ? emptyList() : sortOptions; + this.title = title; + this.sortOptions = sortOptions; + } + get_title_iz32un_k$() { + return this.title; + } + get_sortOptions_duj647_k$() { + return this.sortOptions; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.sortOptions; + } + copy_zfl6k1_k$(title, sortOptions) { + return new KFeedSortConfig(title, sortOptions); + } + copy(title, sortOptions, $super) { + title = title === VOID ? this.title : title; + sortOptions = sortOptions === VOID ? this.sortOptions : sortOptions; + return this.copy_zfl6k1_k$(title, sortOptions); + } + toString() { + return 'KFeedSortConfig(title=' + this.title + ', sortOptions=' + this.sortOptions + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + hashCode(this.sortOptions) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KFeedSortConfig)) + return false; + var tmp0_other_with_cast = other instanceof KFeedSortConfig ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!equals(this.sortOptions, tmp0_other_with_cast.sortOptions)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KFeedSortConfig_fmtbx2_k$(seen1, title, sortOptions, serializationConstructorMarker) { + Companion_getInstance_765(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_752().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.sortOptions = emptyList(); + else + $this.sortOptions = sortOptions; + return $this; + } + } + class Companion_766 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.FeedSortOption'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_753(); + } + } + class $serializer_753 { + constructor() { + $serializer_instance_753 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KFeedSortOption', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('sortName', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('sortType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('isSelected', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('noAutoNextPageWhenUnsatisfied', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = false; + var tmp7_local3 = false; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KFeedSortOption.new_com_bapis_bilibili_app_dynamic_v2_KFeedSortOption_fxs53z_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_84e1nd_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.sortName === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.sortName); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.sortType === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.sortType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.isSelected === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 2, value.isSelected); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.noAutoNextPageWhenUnsatisfied === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 3, value.noAutoNextPageWhenUnsatisfied); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_84e1nd_k$(encoder, value instanceof KFeedSortOption ? value : THROW_CCE()); + } + } + class KFeedSortOption { + constructor(sortName, sortType, isSelected, noAutoNextPageWhenUnsatisfied) { + Companion_instance_766; + sortName = sortName === VOID ? '' : sortName; + sortType = sortType === VOID ? '' : sortType; + isSelected = isSelected === VOID ? false : isSelected; + noAutoNextPageWhenUnsatisfied = noAutoNextPageWhenUnsatisfied === VOID ? false : noAutoNextPageWhenUnsatisfied; + this.sortName = sortName; + this.sortType = sortType; + this.isSelected = isSelected; + this.noAutoNextPageWhenUnsatisfied = noAutoNextPageWhenUnsatisfied; + } + get_sortName_4bmmsu_k$() { + return this.sortName; + } + get_sortType_4bib0f_k$() { + return this.sortType; + } + get_isSelected_dl432q_k$() { + return this.isSelected; + } + get_noAutoNextPageWhenUnsatisfied_nf411g_k$() { + return this.noAutoNextPageWhenUnsatisfied; + } + component1_7eebsc_k$() { + return this.sortName; + } + component2_7eebsb_k$() { + return this.sortType; + } + component3_7eebsa_k$() { + return this.isSelected; + } + component4_7eebs9_k$() { + return this.noAutoNextPageWhenUnsatisfied; + } + copy_um9puz_k$(sortName, sortType, isSelected, noAutoNextPageWhenUnsatisfied) { + return new KFeedSortOption(sortName, sortType, isSelected, noAutoNextPageWhenUnsatisfied); + } + copy(sortName, sortType, isSelected, noAutoNextPageWhenUnsatisfied, $super) { + sortName = sortName === VOID ? this.sortName : sortName; + sortType = sortType === VOID ? this.sortType : sortType; + isSelected = isSelected === VOID ? this.isSelected : isSelected; + noAutoNextPageWhenUnsatisfied = noAutoNextPageWhenUnsatisfied === VOID ? this.noAutoNextPageWhenUnsatisfied : noAutoNextPageWhenUnsatisfied; + return this.copy_um9puz_k$(sortName, sortType, isSelected, noAutoNextPageWhenUnsatisfied); + } + toString() { + return 'KFeedSortOption(sortName=' + this.sortName + ', sortType=' + this.sortType + ', isSelected=' + this.isSelected + ', noAutoNextPageWhenUnsatisfied=' + this.noAutoNextPageWhenUnsatisfied + ')'; + } + hashCode() { + var result = getStringHashCode(this.sortName); + result = imul(result, 31) + getStringHashCode(this.sortType) | 0; + result = imul(result, 31) + getBooleanHashCode(this.isSelected) | 0; + result = imul(result, 31) + getBooleanHashCode(this.noAutoNextPageWhenUnsatisfied) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KFeedSortOption)) + return false; + var tmp0_other_with_cast = other instanceof KFeedSortOption ? other : THROW_CCE(); + if (!(this.sortName === tmp0_other_with_cast.sortName)) + return false; + if (!(this.sortType === tmp0_other_with_cast.sortType)) + return false; + if (!(this.isSelected === tmp0_other_with_cast.isSelected)) + return false; + if (!(this.noAutoNextPageWhenUnsatisfied === tmp0_other_with_cast.noAutoNextPageWhenUnsatisfied)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KFeedSortOption_fxs53z_k$(seen1, sortName, sortType, isSelected, noAutoNextPageWhenUnsatisfied, serializationConstructorMarker) { + Companion_instance_766; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_753().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.sortName = ''; + else + $this.sortName = sortName; + if (0 === (seen1 & 2)) + $this.sortType = ''; + else + $this.sortType = sortType; + if (0 === (seen1 & 4)) + $this.isSelected = false; + else + $this.isSelected = isSelected; + if (0 === (seen1 & 8)) + $this.noAutoNextPageWhenUnsatisfied = false; + else + $this.noAutoNextPageWhenUnsatisfied = noAutoNextPageWhenUnsatisfied; + return $this; + } + } + class Companion_767 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.FeedSortOptionReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_754(); + } + } + class $serializer_754 { + constructor() { + $serializer_instance_754 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KFeedSortOptionReq', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('sortType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('isColdRefresh', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), BooleanSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = false; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KFeedSortOptionReq.new_com_bapis_bilibili_app_dynamic_v2_KFeedSortOptionReq_2pszft_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_8l3wjz_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.sortType === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.sortType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.isColdRefresh === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 1, value.isColdRefresh); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_8l3wjz_k$(encoder, value instanceof KFeedSortOptionReq ? value : THROW_CCE()); + } + } + class KFeedSortOptionReq { + constructor(sortType, isColdRefresh) { + Companion_instance_767; + sortType = sortType === VOID ? '' : sortType; + isColdRefresh = isColdRefresh === VOID ? false : isColdRefresh; + this.sortType = sortType; + this.isColdRefresh = isColdRefresh; + } + get_sortType_4bib0f_k$() { + return this.sortType; + } + get_isColdRefresh_5dok7w_k$() { + return this.isColdRefresh; + } + component1_7eebsc_k$() { + return this.sortType; + } + component2_7eebsb_k$() { + return this.isColdRefresh; + } + copy_smzrfk_k$(sortType, isColdRefresh) { + return new KFeedSortOptionReq(sortType, isColdRefresh); + } + copy(sortType, isColdRefresh, $super) { + sortType = sortType === VOID ? this.sortType : sortType; + isColdRefresh = isColdRefresh === VOID ? this.isColdRefresh : isColdRefresh; + return this.copy_smzrfk_k$(sortType, isColdRefresh); + } + toString() { + return 'KFeedSortOptionReq(sortType=' + this.sortType + ', isColdRefresh=' + this.isColdRefresh + ')'; + } + hashCode() { + var result = getStringHashCode(this.sortType); + result = imul(result, 31) + getBooleanHashCode(this.isColdRefresh) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KFeedSortOptionReq)) + return false; + var tmp0_other_with_cast = other instanceof KFeedSortOptionReq ? other : THROW_CCE(); + if (!(this.sortType === tmp0_other_with_cast.sortType)) + return false; + if (!(this.isColdRefresh === tmp0_other_with_cast.isColdRefresh)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KFeedSortOptionReq_2pszft_k$(seen1, sortType, isColdRefresh, serializationConstructorMarker) { + Companion_instance_767; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_754().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.sortType = ''; + else + $this.sortType = sortType; + if (0 === (seen1 & 2)) + $this.isColdRefresh = false; + else + $this.isColdRefresh = isColdRefresh; + return $this; + } + } + class Companion_768 { + constructor() { + Companion_instance_768 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer($serializer_getInstance_942()), null, null, null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.DynamicList'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_755(); + } + } + class $serializer_755 { + constructor() { + $serializer_instance_755 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KDynamicList', this, 5); + tmp0_serialDesc.addElement_5pzumi_k$('list', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('updateNum', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('historyOffset', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('updateBaseline', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('hasMore', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_768().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0], LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), BooleanSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = new Long(0, 0); + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = false; + var tmp9_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp10_cached = Companion_getInstance_768().$childSerializers_1; + if (tmp9_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp9_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp10_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp9_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + } else + while (tmp1_flag) { + tmp2_index = tmp9_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp9_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp10_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp9_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp9_input.endStructure_1xqz0n_k$(tmp0_desc); + return KDynamicList.new_com_bapis_bilibili_app_dynamic_v2_KDynamicList_inh7la_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); + } + serialize_aoinup_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_768().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.list, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.list); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.updateNum.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.updateNum); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.historyOffset === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.historyOffset); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.updateBaseline === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.updateBaseline); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.hasMore === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 4, value.hasMore); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_aoinup_k$(encoder, value instanceof KDynamicList ? value : THROW_CCE()); + } + } + class KDynamicList { + constructor(list, updateNum, historyOffset, updateBaseline, hasMore) { + Companion_getInstance_768(); + list = list === VOID ? emptyList() : list; + updateNum = updateNum === VOID ? new Long(0, 0) : updateNum; + historyOffset = historyOffset === VOID ? '' : historyOffset; + updateBaseline = updateBaseline === VOID ? '' : updateBaseline; + hasMore = hasMore === VOID ? false : hasMore; + this.list = list; + this.updateNum = updateNum; + this.historyOffset = historyOffset; + this.updateBaseline = updateBaseline; + this.hasMore = hasMore; + } + get_list_wopuqv_k$() { + return this.list; + } + get_updateNum_npzm3w_k$() { + return this.updateNum; + } + get_historyOffset_ki5142_k$() { + return this.historyOffset; + } + get_updateBaseline_jajak7_k$() { + return this.updateBaseline; + } + get_hasMore_csdhd2_k$() { + return this.hasMore; + } + component1_7eebsc_k$() { + return this.list; + } + component2_7eebsb_k$() { + return this.updateNum; + } + component3_7eebsa_k$() { + return this.historyOffset; + } + component4_7eebs9_k$() { + return this.updateBaseline; + } + component5_7eebs8_k$() { + return this.hasMore; + } + copy_4p6gg5_k$(list, updateNum, historyOffset, updateBaseline, hasMore) { + return new KDynamicList(list, updateNum, historyOffset, updateBaseline, hasMore); + } + copy(list, updateNum, historyOffset, updateBaseline, hasMore, $super) { + list = list === VOID ? this.list : list; + updateNum = updateNum === VOID ? this.updateNum : updateNum; + historyOffset = historyOffset === VOID ? this.historyOffset : historyOffset; + updateBaseline = updateBaseline === VOID ? this.updateBaseline : updateBaseline; + hasMore = hasMore === VOID ? this.hasMore : hasMore; + return this.copy_4p6gg5_k$(list, updateNum, historyOffset, updateBaseline, hasMore); + } + toString() { + return 'KDynamicList(list=' + this.list + ', updateNum=' + this.updateNum.toString() + ', historyOffset=' + this.historyOffset + ', updateBaseline=' + this.updateBaseline + ', hasMore=' + this.hasMore + ')'; + } + hashCode() { + var result = hashCode(this.list); + result = imul(result, 31) + this.updateNum.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.historyOffset) | 0; + result = imul(result, 31) + getStringHashCode(this.updateBaseline) | 0; + result = imul(result, 31) + getBooleanHashCode(this.hasMore) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KDynamicList)) + return false; + var tmp0_other_with_cast = other instanceof KDynamicList ? other : THROW_CCE(); + if (!equals(this.list, tmp0_other_with_cast.list)) + return false; + if (!this.updateNum.equals(tmp0_other_with_cast.updateNum)) + return false; + if (!(this.historyOffset === tmp0_other_with_cast.historyOffset)) + return false; + if (!(this.updateBaseline === tmp0_other_with_cast.updateBaseline)) + return false; + if (!(this.hasMore === tmp0_other_with_cast.hasMore)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KDynamicList_inh7la_k$(seen1, list, updateNum, historyOffset, updateBaseline, hasMore, serializationConstructorMarker) { + Companion_getInstance_768(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_755().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.list = emptyList(); + else + $this.list = list; + if (0 === (seen1 & 2)) + $this.updateNum = new Long(0, 0); + else + $this.updateNum = updateNum; + if (0 === (seen1 & 4)) + $this.historyOffset = ''; + else + $this.historyOffset = historyOffset; + if (0 === (seen1 & 8)) + $this.updateBaseline = ''; + else + $this.updateBaseline = updateBaseline; + if (0 === (seen1 & 16)) + $this.hasMore = false; + else + $this.hasMore = hasMore; + return $this; + } + } + class Companion_769 { + constructor() { + Companion_instance_769 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, new ArrayListSerializer($serializer_getInstance_757()), null, null, null, null, null, null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.TopicList'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_756(); + } + } + class $serializer_756 { + constructor() { + $serializer_instance_756 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KTopicList', this, 9); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('topicListItem', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('actButton', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('moreButton', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('serverInfo', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('subTitle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('expStyle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('titleIcon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('hintMessage', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_769().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), tmp0_cached[1], get_nullable($serializer_getInstance_758()), get_nullable($serializer_getInstance_758()), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_942())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = 0; + var tmp11_local7 = null; + var tmp12_local8 = null; + var tmp13_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp14_cached = Companion_getInstance_769().$childSerializers_1; + if (tmp13_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp13_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp14_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_758(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_758(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp13_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_942(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + } else + while (tmp1_flag) { + tmp2_index = tmp13_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp13_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp14_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_758(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_758(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp13_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_942(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp13_input.endStructure_1xqz0n_k$(tmp0_desc); + return KTopicList_1.new_com_bapis_bilibili_app_dynamic_v2_KTopicList_tnfmql_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, null); + } + serialize_k3umtr_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_769().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !equals(value.topicListItem, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 1, tmp2_cached[1], value.topicListItem); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.actButton == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_758(), value.actButton); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.moreButton == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_758(), value.moreButton); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.serverInfo === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.serverInfo); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.subTitle === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.subTitle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.expStyle === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 6, value.expStyle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.titleIcon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.titleIcon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.hintMessage == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 8, $serializer_getInstance_942(), value.hintMessage); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_k3umtr_k$(encoder, value instanceof KTopicList_1 ? value : THROW_CCE()); + } + } + class KTopicList_1 { + constructor(title, topicListItem, actButton, moreButton, serverInfo, subTitle, expStyle, titleIcon, hintMessage) { + Companion_getInstance_769(); + title = title === VOID ? '' : title; + topicListItem = topicListItem === VOID ? emptyList() : topicListItem; + actButton = actButton === VOID ? null : actButton; + moreButton = moreButton === VOID ? null : moreButton; + serverInfo = serverInfo === VOID ? '' : serverInfo; + subTitle = subTitle === VOID ? '' : subTitle; + expStyle = expStyle === VOID ? 0 : expStyle; + titleIcon = titleIcon === VOID ? '' : titleIcon; + hintMessage = hintMessage === VOID ? null : hintMessage; + this.title = title; + this.topicListItem = topicListItem; + this.actButton = actButton; + this.moreButton = moreButton; + this.serverInfo = serverInfo; + this.subTitle = subTitle; + this.expStyle = expStyle; + this.titleIcon = titleIcon; + this.hintMessage = hintMessage; + } + get_title_iz32un_k$() { + return this.title; + } + get_topicListItem_s7v5rr_k$() { + return this.topicListItem; + } + get_actButton_6kr96t_k$() { + return this.actButton; + } + get_moreButton_rkohw0_k$() { + return this.moreButton; + } + get_serverInfo_knk656_k$() { + return this.serverInfo; + } + get_subTitle_4nt9z5_k$() { + return this.subTitle; + } + get_expStyle_6y3t5p_k$() { + return this.expStyle; + } + get_titleIcon_qt8xx4_k$() { + return this.titleIcon; + } + get_hintMessage_j22k2f_k$() { + return this.hintMessage; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.topicListItem; + } + component3_7eebsa_k$() { + return this.actButton; + } + component4_7eebs9_k$() { + return this.moreButton; + } + component5_7eebs8_k$() { + return this.serverInfo; + } + component6_7eebs7_k$() { + return this.subTitle; + } + component7_7eebs6_k$() { + return this.expStyle; + } + component8_7eebs5_k$() { + return this.titleIcon; + } + component9_7eebs4_k$() { + return this.hintMessage; + } + copy_o7ddji_k$(title, topicListItem, actButton, moreButton, serverInfo, subTitle, expStyle, titleIcon, hintMessage) { + return new KTopicList_1(title, topicListItem, actButton, moreButton, serverInfo, subTitle, expStyle, titleIcon, hintMessage); + } + copy(title, topicListItem, actButton, moreButton, serverInfo, subTitle, expStyle, titleIcon, hintMessage, $super) { + title = title === VOID ? this.title : title; + topicListItem = topicListItem === VOID ? this.topicListItem : topicListItem; + actButton = actButton === VOID ? this.actButton : actButton; + moreButton = moreButton === VOID ? this.moreButton : moreButton; + serverInfo = serverInfo === VOID ? this.serverInfo : serverInfo; + subTitle = subTitle === VOID ? this.subTitle : subTitle; + expStyle = expStyle === VOID ? this.expStyle : expStyle; + titleIcon = titleIcon === VOID ? this.titleIcon : titleIcon; + hintMessage = hintMessage === VOID ? this.hintMessage : hintMessage; + return this.copy_o7ddji_k$(title, topicListItem, actButton, moreButton, serverInfo, subTitle, expStyle, titleIcon, hintMessage); + } + toString() { + return 'KTopicList(title=' + this.title + ', topicListItem=' + this.topicListItem + ', actButton=' + this.actButton + ', moreButton=' + this.moreButton + ', serverInfo=' + this.serverInfo + ', subTitle=' + this.subTitle + ', expStyle=' + this.expStyle + ', titleIcon=' + this.titleIcon + ', hintMessage=' + this.hintMessage + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + hashCode(this.topicListItem) | 0; + result = imul(result, 31) + (this.actButton == null ? 0 : this.actButton.hashCode()) | 0; + result = imul(result, 31) + (this.moreButton == null ? 0 : this.moreButton.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.serverInfo) | 0; + result = imul(result, 31) + getStringHashCode(this.subTitle) | 0; + result = imul(result, 31) + this.expStyle | 0; + result = imul(result, 31) + getStringHashCode(this.titleIcon) | 0; + result = imul(result, 31) + (this.hintMessage == null ? 0 : this.hintMessage.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KTopicList_1)) + return false; + var tmp0_other_with_cast = other instanceof KTopicList_1 ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!equals(this.topicListItem, tmp0_other_with_cast.topicListItem)) + return false; + if (!equals(this.actButton, tmp0_other_with_cast.actButton)) + return false; + if (!equals(this.moreButton, tmp0_other_with_cast.moreButton)) + return false; + if (!(this.serverInfo === tmp0_other_with_cast.serverInfo)) + return false; + if (!(this.subTitle === tmp0_other_with_cast.subTitle)) + return false; + if (!(this.expStyle === tmp0_other_with_cast.expStyle)) + return false; + if (!(this.titleIcon === tmp0_other_with_cast.titleIcon)) + return false; + if (!equals(this.hintMessage, tmp0_other_with_cast.hintMessage)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KTopicList_tnfmql_k$(seen1, title, topicListItem, actButton, moreButton, serverInfo, subTitle, expStyle, titleIcon, hintMessage, serializationConstructorMarker) { + Companion_getInstance_769(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_756().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.topicListItem = emptyList(); + else + $this.topicListItem = topicListItem; + if (0 === (seen1 & 4)) + $this.actButton = null; + else + $this.actButton = actButton; + if (0 === (seen1 & 8)) + $this.moreButton = null; + else + $this.moreButton = moreButton; + if (0 === (seen1 & 16)) + $this.serverInfo = ''; + else + $this.serverInfo = serverInfo; + if (0 === (seen1 & 32)) + $this.subTitle = ''; + else + $this.subTitle = subTitle; + if (0 === (seen1 & 64)) + $this.expStyle = 0; + else + $this.expStyle = expStyle; + if (0 === (seen1 & 128)) + $this.titleIcon = ''; + else + $this.titleIcon = titleIcon; + if (0 === (seen1 & 256)) + $this.hintMessage = null; + else + $this.hintMessage = hintMessage; + return $this; + } + } + class Companion_770 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.TopicListItem'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_757(); + } + } + class $serializer_757 { + constructor() { + $serializer_instance_757 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KTopicListItem', this, 12); + tmp0_serialDesc.addElement_5pzumi_k$('icon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('iconTitle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('topicId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('topicName', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('url', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('pos', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('serverInfo', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('headIconUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('upMid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('tailIconUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('extension', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('position', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = new Long(0, 0); + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = new Long(0, 0); + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_local8 = new Long(0, 0); + var tmp13_local9 = null; + var tmp14_local10 = null; + var tmp15_local11 = new Long(0, 0); + var tmp16_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp16_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp16_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp16_input.decodeLongElement_994anb_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp16_input.decodeLongElement_994anb_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp16_input.decodeLongElement_994anb_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + } else + while (tmp1_flag) { + tmp2_index = tmp16_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp16_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp16_input.decodeLongElement_994anb_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp16_input.decodeLongElement_994anb_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp16_input.decodeLongElement_994anb_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp16_input.endStructure_1xqz0n_k$(tmp0_desc); + return KTopicListItem_0.new_com_bapis_bilibili_app_dynamic_v2_KTopicListItem_nt9bco_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, null); + } + serialize_x37ugs_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.icon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.icon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.iconTitle === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.iconTitle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.topicId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.topicId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.topicName === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.topicName); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.url === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.url); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !value.pos.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 5, value.pos); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.serverInfo === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.serverInfo); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.headIconUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.headIconUrl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !value.upMid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 8, value.upMid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.tailIconUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 9, value.tailIconUrl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.extension === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 10, value.extension); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !value.position.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 11, value.position); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_x37ugs_k$(encoder, value instanceof KTopicListItem_0 ? value : THROW_CCE()); + } + } + class KTopicListItem_0 { + constructor(icon, iconTitle, topicId, topicName, url, pos, serverInfo, headIconUrl, upMid, tailIconUrl, extension, position) { + Companion_instance_770; + icon = icon === VOID ? '' : icon; + iconTitle = iconTitle === VOID ? '' : iconTitle; + topicId = topicId === VOID ? new Long(0, 0) : topicId; + topicName = topicName === VOID ? '' : topicName; + url = url === VOID ? '' : url; + pos = pos === VOID ? new Long(0, 0) : pos; + serverInfo = serverInfo === VOID ? '' : serverInfo; + headIconUrl = headIconUrl === VOID ? '' : headIconUrl; + upMid = upMid === VOID ? new Long(0, 0) : upMid; + tailIconUrl = tailIconUrl === VOID ? '' : tailIconUrl; + extension = extension === VOID ? '' : extension; + position = position === VOID ? new Long(0, 0) : position; + this.icon = icon; + this.iconTitle = iconTitle; + this.topicId = topicId; + this.topicName = topicName; + this.url = url; + this.pos = pos; + this.serverInfo = serverInfo; + this.headIconUrl = headIconUrl; + this.upMid = upMid; + this.tailIconUrl = tailIconUrl; + this.extension = extension; + this.position = position; + } + get_icon_wont8i_k$() { + return this.icon; + } + get_iconTitle_enjhvu_k$() { + return this.iconTitle; + } + get_topicId_hkqce7_k$() { + return this.topicId; + } + get_topicName_exnelt_k$() { + return this.topicName; + } + get_url_18iuii_k$() { + return this.url; + } + get_pos_18iyad_k$() { + return this.pos; + } + get_serverInfo_knk656_k$() { + return this.serverInfo; + } + get_headIconUrl_t7bt4j_k$() { + return this.headIconUrl; + } + get_upMid_izqjd0_k$() { + return this.upMid; + } + get_tailIconUrl_q7ywf7_k$() { + return this.tailIconUrl; + } + get_extension_1m6fe2_k$() { + return this.extension; + } + get_position_jfponi_k$() { + return this.position; + } + component1_7eebsc_k$() { + return this.icon; + } + component2_7eebsb_k$() { + return this.iconTitle; + } + component3_7eebsa_k$() { + return this.topicId; + } + component4_7eebs9_k$() { + return this.topicName; + } + component5_7eebs8_k$() { + return this.url; + } + component6_7eebs7_k$() { + return this.pos; + } + component7_7eebs6_k$() { + return this.serverInfo; + } + component8_7eebs5_k$() { + return this.headIconUrl; + } + component9_7eebs4_k$() { + return this.upMid; + } + component10_gazzfo_k$() { + return this.tailIconUrl; + } + component11_gazzfn_k$() { + return this.extension; + } + component12_gazzfm_k$() { + return this.position; + } + copy_s6245v_k$(icon, iconTitle, topicId, topicName, url, pos, serverInfo, headIconUrl, upMid, tailIconUrl, extension, position) { + return new KTopicListItem_0(icon, iconTitle, topicId, topicName, url, pos, serverInfo, headIconUrl, upMid, tailIconUrl, extension, position); + } + copy(icon, iconTitle, topicId, topicName, url, pos, serverInfo, headIconUrl, upMid, tailIconUrl, extension, position, $super) { + icon = icon === VOID ? this.icon : icon; + iconTitle = iconTitle === VOID ? this.iconTitle : iconTitle; + topicId = topicId === VOID ? this.topicId : topicId; + topicName = topicName === VOID ? this.topicName : topicName; + url = url === VOID ? this.url : url; + pos = pos === VOID ? this.pos : pos; + serverInfo = serverInfo === VOID ? this.serverInfo : serverInfo; + headIconUrl = headIconUrl === VOID ? this.headIconUrl : headIconUrl; + upMid = upMid === VOID ? this.upMid : upMid; + tailIconUrl = tailIconUrl === VOID ? this.tailIconUrl : tailIconUrl; + extension = extension === VOID ? this.extension : extension; + position = position === VOID ? this.position : position; + return this.copy_s6245v_k$(icon, iconTitle, topicId, topicName, url, pos, serverInfo, headIconUrl, upMid, tailIconUrl, extension, position); + } + toString() { + return 'KTopicListItem(icon=' + this.icon + ', iconTitle=' + this.iconTitle + ', topicId=' + this.topicId.toString() + ', topicName=' + this.topicName + ', url=' + this.url + ', pos=' + this.pos.toString() + ', serverInfo=' + this.serverInfo + ', headIconUrl=' + this.headIconUrl + ', upMid=' + this.upMid.toString() + ', tailIconUrl=' + this.tailIconUrl + ', extension=' + this.extension + ', position=' + this.position.toString() + ')'; + } + hashCode() { + var result = getStringHashCode(this.icon); + result = imul(result, 31) + getStringHashCode(this.iconTitle) | 0; + result = imul(result, 31) + this.topicId.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.topicName) | 0; + result = imul(result, 31) + getStringHashCode(this.url) | 0; + result = imul(result, 31) + this.pos.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.serverInfo) | 0; + result = imul(result, 31) + getStringHashCode(this.headIconUrl) | 0; + result = imul(result, 31) + this.upMid.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.tailIconUrl) | 0; + result = imul(result, 31) + getStringHashCode(this.extension) | 0; + result = imul(result, 31) + this.position.hashCode() | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KTopicListItem_0)) + return false; + var tmp0_other_with_cast = other instanceof KTopicListItem_0 ? other : THROW_CCE(); + if (!(this.icon === tmp0_other_with_cast.icon)) + return false; + if (!(this.iconTitle === tmp0_other_with_cast.iconTitle)) + return false; + if (!this.topicId.equals(tmp0_other_with_cast.topicId)) + return false; + if (!(this.topicName === tmp0_other_with_cast.topicName)) + return false; + if (!(this.url === tmp0_other_with_cast.url)) + return false; + if (!this.pos.equals(tmp0_other_with_cast.pos)) + return false; + if (!(this.serverInfo === tmp0_other_with_cast.serverInfo)) + return false; + if (!(this.headIconUrl === tmp0_other_with_cast.headIconUrl)) + return false; + if (!this.upMid.equals(tmp0_other_with_cast.upMid)) + return false; + if (!(this.tailIconUrl === tmp0_other_with_cast.tailIconUrl)) + return false; + if (!(this.extension === tmp0_other_with_cast.extension)) + return false; + if (!this.position.equals(tmp0_other_with_cast.position)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KTopicListItem_nt9bco_k$(seen1, icon, iconTitle, topicId, topicName, url, pos, serverInfo, headIconUrl, upMid, tailIconUrl, extension, position, serializationConstructorMarker) { + Companion_instance_770; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_757().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.icon = ''; + else + $this.icon = icon; + if (0 === (seen1 & 2)) + $this.iconTitle = ''; + else + $this.iconTitle = iconTitle; + if (0 === (seen1 & 4)) + $this.topicId = new Long(0, 0); + else + $this.topicId = topicId; + if (0 === (seen1 & 8)) + $this.topicName = ''; + else + $this.topicName = topicName; + if (0 === (seen1 & 16)) + $this.url = ''; + else + $this.url = url; + if (0 === (seen1 & 32)) + $this.pos = new Long(0, 0); + else + $this.pos = pos; + if (0 === (seen1 & 64)) + $this.serverInfo = ''; + else + $this.serverInfo = serverInfo; + if (0 === (seen1 & 128)) + $this.headIconUrl = ''; + else + $this.headIconUrl = headIconUrl; + if (0 === (seen1 & 256)) + $this.upMid = new Long(0, 0); + else + $this.upMid = upMid; + if (0 === (seen1 & 512)) + $this.tailIconUrl = ''; + else + $this.tailIconUrl = tailIconUrl; + if (0 === (seen1 & 1024)) + $this.extension = ''; + else + $this.extension = extension; + if (0 === (seen1 & 2048)) + $this.position = new Long(0, 0); + else + $this.position = position; + return $this; + } + } + class Companion_771 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.TopicButton'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_758(); + } + } + class $serializer_758 { + constructor() { + $serializer_instance_758 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KTopicButton', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('icon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('jumpUri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('redDot', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), BooleanSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = false; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KTopicButton_0.new_com_bapis_bilibili_app_dynamic_v2_KTopicButton_mfoeff_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_m07aez_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.icon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.icon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.jumpUri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.jumpUri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.redDot === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 3, value.redDot); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_m07aez_k$(encoder, value instanceof KTopicButton_0 ? value : THROW_CCE()); + } + } + class KTopicButton_0 { + constructor(icon, title, jumpUri, redDot) { + Companion_instance_771; + icon = icon === VOID ? '' : icon; + title = title === VOID ? '' : title; + jumpUri = jumpUri === VOID ? '' : jumpUri; + redDot = redDot === VOID ? false : redDot; + this.icon = icon; + this.title = title; + this.jumpUri = jumpUri; + this.redDot = redDot; + } + get_icon_wont8i_k$() { + return this.icon; + } + get_title_iz32un_k$() { + return this.title; + } + get_jumpUri_jhqikr_k$() { + return this.jumpUri; + } + get_redDot_iy5kap_k$() { + return this.redDot; + } + component1_7eebsc_k$() { + return this.icon; + } + component2_7eebsb_k$() { + return this.title; + } + component3_7eebsa_k$() { + return this.jumpUri; + } + component4_7eebs9_k$() { + return this.redDot; + } + copy_5ncbs0_k$(icon, title, jumpUri, redDot) { + return new KTopicButton_0(icon, title, jumpUri, redDot); + } + copy(icon, title, jumpUri, redDot, $super) { + icon = icon === VOID ? this.icon : icon; + title = title === VOID ? this.title : title; + jumpUri = jumpUri === VOID ? this.jumpUri : jumpUri; + redDot = redDot === VOID ? this.redDot : redDot; + return this.copy_5ncbs0_k$(icon, title, jumpUri, redDot); + } + toString() { + return 'KTopicButton(icon=' + this.icon + ', title=' + this.title + ', jumpUri=' + this.jumpUri + ', redDot=' + this.redDot + ')'; + } + hashCode() { + var result = getStringHashCode(this.icon); + result = imul(result, 31) + getStringHashCode(this.title) | 0; + result = imul(result, 31) + getStringHashCode(this.jumpUri) | 0; + result = imul(result, 31) + getBooleanHashCode(this.redDot) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KTopicButton_0)) + return false; + var tmp0_other_with_cast = other instanceof KTopicButton_0 ? other : THROW_CCE(); + if (!(this.icon === tmp0_other_with_cast.icon)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.jumpUri === tmp0_other_with_cast.jumpUri)) + return false; + if (!(this.redDot === tmp0_other_with_cast.redDot)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KTopicButton_mfoeff_k$(seen1, icon, title, jumpUri, redDot, serializationConstructorMarker) { + Companion_instance_771; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_758().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.icon = ''; + else + $this.icon = icon; + if (0 === (seen1 & 2)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 4)) + $this.jumpUri = ''; + else + $this.jumpUri = jumpUri; + if (0 === (seen1 & 8)) + $this.redDot = false; + else + $this.redDot = redDot; + return $this; + } + } + class Companion_772 { + constructor() { + Companion_instance_772 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, new ArrayListSerializer($serializer_getInstance_760()), null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.Unfollow'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_759(); + } + } + class $serializer_759 { + constructor() { + $serializer_instance_759 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KUnfollow', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('list', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('trackId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_772().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), tmp0_cached[1], StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp8_cached = Companion_getInstance_772().$childSerializers_1; + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp8_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp8_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KUnfollow.new_com_bapis_bilibili_app_dynamic_v2_KUnfollow_wsymqu_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_llatpc_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_772().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !equals(value.list, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 1, tmp2_cached[1], value.list); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.trackId === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.trackId); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_llatpc_k$(encoder, value instanceof KUnfollow ? value : THROW_CCE()); + } + } + class KUnfollow { + constructor(title, list, trackId) { + Companion_getInstance_772(); + title = title === VOID ? '' : title; + list = list === VOID ? emptyList() : list; + trackId = trackId === VOID ? '' : trackId; + this.title = title; + this.list = list; + this.trackId = trackId; + } + get_title_iz32un_k$() { + return this.title; + } + get_list_wopuqv_k$() { + return this.list; + } + get_trackId_gdy23n_k$() { + return this.trackId; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.list; + } + component3_7eebsa_k$() { + return this.trackId; + } + copy_5yr6tu_k$(title, list, trackId) { + return new KUnfollow(title, list, trackId); + } + copy(title, list, trackId, $super) { + title = title === VOID ? this.title : title; + list = list === VOID ? this.list : list; + trackId = trackId === VOID ? this.trackId : trackId; + return this.copy_5yr6tu_k$(title, list, trackId); + } + toString() { + return 'KUnfollow(title=' + this.title + ', list=' + this.list + ', trackId=' + this.trackId + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + hashCode(this.list) | 0; + result = imul(result, 31) + getStringHashCode(this.trackId) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KUnfollow)) + return false; + var tmp0_other_with_cast = other instanceof KUnfollow ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!equals(this.list, tmp0_other_with_cast.list)) + return false; + if (!(this.trackId === tmp0_other_with_cast.trackId)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KUnfollow_wsymqu_k$(seen1, title, list, trackId, serializationConstructorMarker) { + Companion_getInstance_772(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_759().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.list = emptyList(); + else + $this.list = list; + if (0 === (seen1 & 4)) + $this.trackId = ''; + else + $this.trackId = trackId; + return $this; + } + } + class Companion_773 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.UnfollowUserItem'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_760(); + } + } + class $serializer_760 { + constructor() { + $serializer_instance_760 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KUnfollowUserItem', this, 12); + tmp0_serialDesc.addElement_5pzumi_k$('hasUpdate', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('face', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('name', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('uid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('pos', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('liveState', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('official', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('vip', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('sign', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('label', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('button', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('uri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [BooleanSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), get_nullable($serializer_getInstance_960()), get_nullable($serializer_getInstance_961()), StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_1085()), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = false; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = new Long(0, 0); + var tmp8_local4 = 0; + var tmp9_local5 = 0; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_local8 = null; + var tmp13_local9 = null; + var tmp14_local10 = null; + var tmp15_local11 = null; + var tmp16_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp16_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp16_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp16_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp16_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_960(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp16_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_961(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp16_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 10, $serializer_getInstance_1085(), tmp14_local10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + } else + while (tmp1_flag) { + tmp2_index = tmp16_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp16_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp16_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp16_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_960(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp16_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_961(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp16_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 10, $serializer_getInstance_1085(), tmp14_local10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp16_input.endStructure_1xqz0n_k$(tmp0_desc); + return KUnfollowUserItem.new_com_bapis_bilibili_app_dynamic_v2_KUnfollowUserItem_bczpgq_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, null); + } + serialize_880dj6_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.hasUpdate === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 0, value.hasUpdate); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.face === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.face); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.name === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.name); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !value.uid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 3, value.uid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.pos === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 4, value.pos); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.liveState === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 5, value.liveState); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.official == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 6, $serializer_getInstance_960(), value.official); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.vip == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 7, $serializer_getInstance_961(), value.vip); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.sign === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 8, value.sign); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.label === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 9, value.label); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.button == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 10, $serializer_getInstance_1085(), value.button); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.uri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 11, value.uri); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_880dj6_k$(encoder, value instanceof KUnfollowUserItem ? value : THROW_CCE()); + } + } + class KUnfollowUserItem { + constructor(hasUpdate, face, name, uid, pos, liveState, official, vip, sign, label, button, uri) { + Companion_instance_773; + hasUpdate = hasUpdate === VOID ? false : hasUpdate; + face = face === VOID ? '' : face; + name = name === VOID ? '' : name; + uid = uid === VOID ? new Long(0, 0) : uid; + pos = pos === VOID ? 0 : pos; + liveState = liveState === VOID ? 0 : liveState; + official = official === VOID ? null : official; + vip = vip === VOID ? null : vip; + sign = sign === VOID ? '' : sign; + label = label === VOID ? '' : label; + button = button === VOID ? null : button; + uri = uri === VOID ? '' : uri; + this.hasUpdate = hasUpdate; + this.face = face; + this.name = name; + this.uid = uid; + this.pos = pos; + this.liveState = liveState; + this.official = official; + this.vip = vip; + this.sign = sign; + this.label = label; + this.button = button; + this.uri = uri; + } + get_hasUpdate_4w2tlm_k$() { + return this.hasUpdate; + } + get_face_woluhy_k$() { + return this.face; + } + get_name_woqyms_k$() { + return this.name; + } + get_uid_18iuqh_k$() { + return this.uid; + } + get_pos_18iyad_k$() { + return this.pos; + } + get_liveState_p0nejg_k$() { + return this.liveState; + } + get_official_qkjhys_k$() { + return this.official; + } + get_vip_18itzg_k$() { + return this.vip; + } + get_sign_woubd2_k$() { + return this.sign; + } + get_label_iuj8p7_k$() { + return this.label; + } + get_button_bmjiuz_k$() { + return this.button; + } + get_uri_18iuil_k$() { + return this.uri; + } + liveStateEnum() { + return Companion_getInstance_1072().fromValue(this.liveState); + } + component1_7eebsc_k$() { + return this.hasUpdate; + } + component2_7eebsb_k$() { + return this.face; + } + component3_7eebsa_k$() { + return this.name; + } + component4_7eebs9_k$() { + return this.uid; + } + component5_7eebs8_k$() { + return this.pos; + } + component6_7eebs7_k$() { + return this.liveState; + } + component7_7eebs6_k$() { + return this.official; + } + component8_7eebs5_k$() { + return this.vip; + } + component9_7eebs4_k$() { + return this.sign; + } + component10_gazzfo_k$() { + return this.label; + } + component11_gazzfn_k$() { + return this.button; + } + component12_gazzfm_k$() { + return this.uri; + } + copy_gos0yo_k$(hasUpdate, face, name, uid, pos, liveState, official, vip, sign, label, button, uri) { + return new KUnfollowUserItem(hasUpdate, face, name, uid, pos, liveState, official, vip, sign, label, button, uri); + } + copy(hasUpdate, face, name, uid, pos, liveState, official, vip, sign, label, button, uri, $super) { + hasUpdate = hasUpdate === VOID ? this.hasUpdate : hasUpdate; + face = face === VOID ? this.face : face; + name = name === VOID ? this.name : name; + uid = uid === VOID ? this.uid : uid; + pos = pos === VOID ? this.pos : pos; + liveState = liveState === VOID ? this.liveState : liveState; + official = official === VOID ? this.official : official; + vip = vip === VOID ? this.vip : vip; + sign = sign === VOID ? this.sign : sign; + label = label === VOID ? this.label : label; + button = button === VOID ? this.button : button; + uri = uri === VOID ? this.uri : uri; + return this.copy_gos0yo_k$(hasUpdate, face, name, uid, pos, liveState, official, vip, sign, label, button, uri); + } + toString() { + return 'KUnfollowUserItem(hasUpdate=' + this.hasUpdate + ', face=' + this.face + ', name=' + this.name + ', uid=' + this.uid.toString() + ', pos=' + this.pos + ', liveState=' + this.liveState + ', official=' + this.official + ', vip=' + this.vip + ', sign=' + this.sign + ', label=' + this.label + ', button=' + this.button + ', uri=' + this.uri + ')'; + } + hashCode() { + var result = getBooleanHashCode(this.hasUpdate); + result = imul(result, 31) + getStringHashCode(this.face) | 0; + result = imul(result, 31) + getStringHashCode(this.name) | 0; + result = imul(result, 31) + this.uid.hashCode() | 0; + result = imul(result, 31) + this.pos | 0; + result = imul(result, 31) + this.liveState | 0; + result = imul(result, 31) + (this.official == null ? 0 : this.official.hashCode()) | 0; + result = imul(result, 31) + (this.vip == null ? 0 : this.vip.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.sign) | 0; + result = imul(result, 31) + getStringHashCode(this.label) | 0; + result = imul(result, 31) + (this.button == null ? 0 : this.button.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.uri) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KUnfollowUserItem)) + return false; + var tmp0_other_with_cast = other instanceof KUnfollowUserItem ? other : THROW_CCE(); + if (!(this.hasUpdate === tmp0_other_with_cast.hasUpdate)) + return false; + if (!(this.face === tmp0_other_with_cast.face)) + return false; + if (!(this.name === tmp0_other_with_cast.name)) + return false; + if (!this.uid.equals(tmp0_other_with_cast.uid)) + return false; + if (!(this.pos === tmp0_other_with_cast.pos)) + return false; + if (!(this.liveState === tmp0_other_with_cast.liveState)) + return false; + if (!equals(this.official, tmp0_other_with_cast.official)) + return false; + if (!equals(this.vip, tmp0_other_with_cast.vip)) + return false; + if (!(this.sign === tmp0_other_with_cast.sign)) + return false; + if (!(this.label === tmp0_other_with_cast.label)) + return false; + if (!equals(this.button, tmp0_other_with_cast.button)) + return false; + if (!(this.uri === tmp0_other_with_cast.uri)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KUnfollowUserItem_bczpgq_k$(seen1, hasUpdate, face, name, uid, pos, liveState, official, vip, sign, label, button, uri, serializationConstructorMarker) { + Companion_instance_773; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_760().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.hasUpdate = false; + else + $this.hasUpdate = hasUpdate; + if (0 === (seen1 & 2)) + $this.face = ''; + else + $this.face = face; + if (0 === (seen1 & 4)) + $this.name = ''; + else + $this.name = name; + if (0 === (seen1 & 8)) + $this.uid = new Long(0, 0); + else + $this.uid = uid; + if (0 === (seen1 & 16)) + $this.pos = 0; + else + $this.pos = pos; + if (0 === (seen1 & 32)) + $this.liveState = 0; + else + $this.liveState = liveState; + if (0 === (seen1 & 64)) + $this.official = null; + else + $this.official = official; + if (0 === (seen1 & 128)) + $this.vip = null; + else + $this.vip = vip; + if (0 === (seen1 & 256)) + $this.sign = ''; + else + $this.sign = sign; + if (0 === (seen1 & 512)) + $this.label = ''; + else + $this.label = label; + if (0 === (seen1 & 1024)) + $this.button = null; + else + $this.button = button; + if (0 === (seen1 & 2048)) + $this.uri = ''; + else + $this.uri = uri; + return $this; + } + } + class Companion_774 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.DynDetailsReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_761(); + } + } + class $serializer_761 { + constructor() { + $serializer_instance_761 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KDynDetailsReq', this, 5); + tmp0_serialDesc.addElement_5pzumi_k$('dynamicIds', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('playurlParam', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('localTime', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('playerArgs', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('config', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), get_nullable($serializer_getInstance_743()), IntSerializer_getInstance(), get_nullable($serializer_getInstance_152()), get_nullable($serializer_getInstance_750())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = 0; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp9_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_743(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_152(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_750(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + } else + while (tmp1_flag) { + tmp2_index = tmp9_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_743(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_152(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_750(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp9_input.endStructure_1xqz0n_k$(tmp0_desc); + return KDynDetailsReq.new_com_bapis_bilibili_app_dynamic_v2_KDynDetailsReq_og01e5_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); + } + serialize_ja03on_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.dynamicIds === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.dynamicIds); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.playurlParam == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_743(), value.playurlParam); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.localTime === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.localTime); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.playerArgs == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_152(), value.playerArgs); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.config == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, $serializer_getInstance_750(), value.config); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_ja03on_k$(encoder, value instanceof KDynDetailsReq ? value : THROW_CCE()); + } + } + class KDynDetailsReq { + constructor(dynamicIds, playurlParam, localTime, playerArgs, config) { + Companion_instance_774; + dynamicIds = dynamicIds === VOID ? '' : dynamicIds; + playurlParam = playurlParam === VOID ? null : playurlParam; + localTime = localTime === VOID ? 0 : localTime; + playerArgs = playerArgs === VOID ? null : playerArgs; + config = config === VOID ? null : config; + this.dynamicIds = dynamicIds; + this.playurlParam = playurlParam; + this.localTime = localTime; + this.playerArgs = playerArgs; + this.config = config; + } + get_dynamicIds_ow791a_k$() { + return this.dynamicIds; + } + get_playurlParam_oed3qd_k$() { + return this.playurlParam; + } + get_localTime_bf0zwx_k$() { + return this.localTime; + } + get_playerArgs_eh86hz_k$() { + return this.playerArgs; + } + get_config_c0698r_k$() { + return this.config; + } + component1_7eebsc_k$() { + return this.dynamicIds; + } + component2_7eebsb_k$() { + return this.playurlParam; + } + component3_7eebsa_k$() { + return this.localTime; + } + component4_7eebs9_k$() { + return this.playerArgs; + } + component5_7eebs8_k$() { + return this.config; + } + copy_ggghpm_k$(dynamicIds, playurlParam, localTime, playerArgs, config) { + return new KDynDetailsReq(dynamicIds, playurlParam, localTime, playerArgs, config); + } + copy(dynamicIds, playurlParam, localTime, playerArgs, config, $super) { + dynamicIds = dynamicIds === VOID ? this.dynamicIds : dynamicIds; + playurlParam = playurlParam === VOID ? this.playurlParam : playurlParam; + localTime = localTime === VOID ? this.localTime : localTime; + playerArgs = playerArgs === VOID ? this.playerArgs : playerArgs; + config = config === VOID ? this.config : config; + return this.copy_ggghpm_k$(dynamicIds, playurlParam, localTime, playerArgs, config); + } + toString() { + return 'KDynDetailsReq(dynamicIds=' + this.dynamicIds + ', playurlParam=' + this.playurlParam + ', localTime=' + this.localTime + ', playerArgs=' + this.playerArgs + ', config=' + this.config + ')'; + } + hashCode() { + var result = getStringHashCode(this.dynamicIds); + result = imul(result, 31) + (this.playurlParam == null ? 0 : this.playurlParam.hashCode()) | 0; + result = imul(result, 31) + this.localTime | 0; + result = imul(result, 31) + (this.playerArgs == null ? 0 : this.playerArgs.hashCode()) | 0; + result = imul(result, 31) + (this.config == null ? 0 : this.config.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KDynDetailsReq)) + return false; + var tmp0_other_with_cast = other instanceof KDynDetailsReq ? other : THROW_CCE(); + if (!(this.dynamicIds === tmp0_other_with_cast.dynamicIds)) + return false; + if (!equals(this.playurlParam, tmp0_other_with_cast.playurlParam)) + return false; + if (!(this.localTime === tmp0_other_with_cast.localTime)) + return false; + if (!equals(this.playerArgs, tmp0_other_with_cast.playerArgs)) + return false; + if (!equals(this.config, tmp0_other_with_cast.config)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KDynDetailsReq_og01e5_k$(seen1, dynamicIds, playurlParam, localTime, playerArgs, config, serializationConstructorMarker) { + Companion_instance_774; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_761().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.dynamicIds = ''; + else + $this.dynamicIds = dynamicIds; + if (0 === (seen1 & 2)) + $this.playurlParam = null; + else + $this.playurlParam = playurlParam; + if (0 === (seen1 & 4)) + $this.localTime = 0; + else + $this.localTime = localTime; + if (0 === (seen1 & 8)) + $this.playerArgs = null; + else + $this.playerArgs = playerArgs; + if (0 === (seen1 & 16)) + $this.config = null; + else + $this.config = config; + return $this; + } + } + class Companion_775 { + constructor() { + Companion_instance_775 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer($serializer_getInstance_942())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.DynDetailsReply'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_762(); + } + } + class $serializer_762 { + constructor() { + $serializer_instance_762 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KDynDetailsReply', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('list', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_775().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp6_cached = Companion_getInstance_775().$childSerializers_1; + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KDynDetailsReply.new_com_bapis_bilibili_app_dynamic_v2_KDynDetailsReply_at9nyx_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_snsbx7_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_775().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.list, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.list); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_snsbx7_k$(encoder, value instanceof KDynDetailsReply ? value : THROW_CCE()); + } + } + class KDynDetailsReply { + constructor(list) { + Companion_getInstance_775(); + list = list === VOID ? emptyList() : list; + this.list = list; + } + get_list_wopuqv_k$() { + return this.list; + } + component1_7eebsc_k$() { + return this.list; + } + copy_o5j2tw_k$(list) { + return new KDynDetailsReply(list); + } + copy(list, $super) { + list = list === VOID ? this.list : list; + return this.copy_o5j2tw_k$(list); + } + toString() { + return 'KDynDetailsReply(list=' + this.list + ')'; + } + hashCode() { + return hashCode(this.list); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KDynDetailsReply)) + return false; + var tmp0_other_with_cast = other instanceof KDynDetailsReply ? other : THROW_CCE(); + if (!equals(this.list, tmp0_other_with_cast.list)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KDynDetailsReply_at9nyx_k$(seen1, list, serializationConstructorMarker) { + Companion_getInstance_775(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_762().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.list = emptyList(); + else + $this.list = list; + return $this; + } + } + class Companion_776 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.DynVideoPersonalReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_763(); + } + } + class $serializer_763 { + constructor() { + $serializer_instance_763 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KDynVideoPersonalReq', this, 11); + tmp0_serialDesc.addElement_5pzumi_k$('hostUid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('offset', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('page', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('isPreload', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('playurlParam', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('localTime', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('footprint', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('from', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('playerArgs', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('pegasusAvid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('personalExtra', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), get_nullable($serializer_getInstance_743()), IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_152()), LongSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_local2 = 0; + var tmp7_local3 = 0; + var tmp8_local4 = null; + var tmp9_local5 = 0; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_local8 = null; + var tmp13_local9 = new Long(0, 0); + var tmp14_local10 = null; + var tmp15_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp15_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_743(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_152(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + } else + while (tmp1_flag) { + tmp2_index = tmp15_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_743(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_152(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp15_input.endStructure_1xqz0n_k$(tmp0_desc); + return KDynVideoPersonalReq.new_com_bapis_bilibili_app_dynamic_v2_KDynVideoPersonalReq_43u3d_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, null); + } + serialize_sw7hj4_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.hostUid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.hostUid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.offset === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.offset); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.page === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.page); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.isPreload === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 3, value.isPreload); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.playurlParam == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, $serializer_getInstance_743(), value.playurlParam); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.localTime === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 5, value.localTime); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.footprint === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.footprint); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.from === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.from); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.playerArgs == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 8, $serializer_getInstance_152(), value.playerArgs); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !value.pegasusAvid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 9, value.pegasusAvid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.personalExtra === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 10, value.personalExtra); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_sw7hj4_k$(encoder, value instanceof KDynVideoPersonalReq ? value : THROW_CCE()); + } + } + class KDynVideoPersonalReq { + constructor(hostUid, offset, page, isPreload, playurlParam, localTime, footprint, from, playerArgs, pegasusAvid, personalExtra) { + Companion_instance_776; + hostUid = hostUid === VOID ? new Long(0, 0) : hostUid; + offset = offset === VOID ? '' : offset; + page = page === VOID ? 0 : page; + isPreload = isPreload === VOID ? 0 : isPreload; + playurlParam = playurlParam === VOID ? null : playurlParam; + localTime = localTime === VOID ? 0 : localTime; + footprint = footprint === VOID ? '' : footprint; + from = from === VOID ? '' : from; + playerArgs = playerArgs === VOID ? null : playerArgs; + pegasusAvid = pegasusAvid === VOID ? new Long(0, 0) : pegasusAvid; + personalExtra = personalExtra === VOID ? '' : personalExtra; + this.hostUid = hostUid; + this.offset = offset; + this.page = page; + this.isPreload = isPreload; + this.playurlParam = playurlParam; + this.localTime = localTime; + this.footprint = footprint; + this.from = from; + this.playerArgs = playerArgs; + this.pegasusAvid = pegasusAvid; + this.personalExtra = personalExtra; + } + get_hostUid_jfojvj_k$() { + return this.hostUid; + } + get_offset_hjmqak_k$() { + return this.offset; + } + get_page_wos8go_k$() { + return this.page; + } + get_isPreload_6c9x62_k$() { + return this.isPreload; + } + get_playurlParam_oed3qd_k$() { + return this.playurlParam; + } + get_localTime_bf0zwx_k$() { + return this.localTime; + } + get_footprint_20kkve_k$() { + return this.footprint; + } + get_from_wom7eb_k$() { + return this.from; + } + get_playerArgs_eh86hz_k$() { + return this.playerArgs; + } + get_pegasusAvid_l81lbd_k$() { + return this.pegasusAvid; + } + get_personalExtra_802xzb_k$() { + return this.personalExtra; + } + component1_7eebsc_k$() { + return this.hostUid; + } + component2_7eebsb_k$() { + return this.offset; + } + component3_7eebsa_k$() { + return this.page; + } + component4_7eebs9_k$() { + return this.isPreload; + } + component5_7eebs8_k$() { + return this.playurlParam; + } + component6_7eebs7_k$() { + return this.localTime; + } + component7_7eebs6_k$() { + return this.footprint; + } + component8_7eebs5_k$() { + return this.from; + } + component9_7eebs4_k$() { + return this.playerArgs; + } + component10_gazzfo_k$() { + return this.pegasusAvid; + } + component11_gazzfn_k$() { + return this.personalExtra; + } + copy_rlsnx6_k$(hostUid, offset, page, isPreload, playurlParam, localTime, footprint, from, playerArgs, pegasusAvid, personalExtra) { + return new KDynVideoPersonalReq(hostUid, offset, page, isPreload, playurlParam, localTime, footprint, from, playerArgs, pegasusAvid, personalExtra); + } + copy(hostUid, offset, page, isPreload, playurlParam, localTime, footprint, from, playerArgs, pegasusAvid, personalExtra, $super) { + hostUid = hostUid === VOID ? this.hostUid : hostUid; + offset = offset === VOID ? this.offset : offset; + page = page === VOID ? this.page : page; + isPreload = isPreload === VOID ? this.isPreload : isPreload; + playurlParam = playurlParam === VOID ? this.playurlParam : playurlParam; + localTime = localTime === VOID ? this.localTime : localTime; + footprint = footprint === VOID ? this.footprint : footprint; + from = from === VOID ? this.from : from; + playerArgs = playerArgs === VOID ? this.playerArgs : playerArgs; + pegasusAvid = pegasusAvid === VOID ? this.pegasusAvid : pegasusAvid; + personalExtra = personalExtra === VOID ? this.personalExtra : personalExtra; + return this.copy_rlsnx6_k$(hostUid, offset, page, isPreload, playurlParam, localTime, footprint, from, playerArgs, pegasusAvid, personalExtra); + } + toString() { + return 'KDynVideoPersonalReq(hostUid=' + this.hostUid.toString() + ', offset=' + this.offset + ', page=' + this.page + ', isPreload=' + this.isPreload + ', playurlParam=' + this.playurlParam + ', localTime=' + this.localTime + ', footprint=' + this.footprint + ', from=' + this.from + ', playerArgs=' + this.playerArgs + ', pegasusAvid=' + this.pegasusAvid.toString() + ', personalExtra=' + this.personalExtra + ')'; + } + hashCode() { + var result = this.hostUid.hashCode(); + result = imul(result, 31) + getStringHashCode(this.offset) | 0; + result = imul(result, 31) + this.page | 0; + result = imul(result, 31) + this.isPreload | 0; + result = imul(result, 31) + (this.playurlParam == null ? 0 : this.playurlParam.hashCode()) | 0; + result = imul(result, 31) + this.localTime | 0; + result = imul(result, 31) + getStringHashCode(this.footprint) | 0; + result = imul(result, 31) + getStringHashCode(this.from) | 0; + result = imul(result, 31) + (this.playerArgs == null ? 0 : this.playerArgs.hashCode()) | 0; + result = imul(result, 31) + this.pegasusAvid.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.personalExtra) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KDynVideoPersonalReq)) + return false; + var tmp0_other_with_cast = other instanceof KDynVideoPersonalReq ? other : THROW_CCE(); + if (!this.hostUid.equals(tmp0_other_with_cast.hostUid)) + return false; + if (!(this.offset === tmp0_other_with_cast.offset)) + return false; + if (!(this.page === tmp0_other_with_cast.page)) + return false; + if (!(this.isPreload === tmp0_other_with_cast.isPreload)) + return false; + if (!equals(this.playurlParam, tmp0_other_with_cast.playurlParam)) + return false; + if (!(this.localTime === tmp0_other_with_cast.localTime)) + return false; + if (!(this.footprint === tmp0_other_with_cast.footprint)) + return false; + if (!(this.from === tmp0_other_with_cast.from)) + return false; + if (!equals(this.playerArgs, tmp0_other_with_cast.playerArgs)) + return false; + if (!this.pegasusAvid.equals(tmp0_other_with_cast.pegasusAvid)) + return false; + if (!(this.personalExtra === tmp0_other_with_cast.personalExtra)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KDynVideoPersonalReq_43u3d_k$(seen1, hostUid, offset, page, isPreload, playurlParam, localTime, footprint, from, playerArgs, pegasusAvid, personalExtra, serializationConstructorMarker) { + Companion_instance_776; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_763().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.hostUid = new Long(0, 0); + else + $this.hostUid = hostUid; + if (0 === (seen1 & 2)) + $this.offset = ''; + else + $this.offset = offset; + if (0 === (seen1 & 4)) + $this.page = 0; + else + $this.page = page; + if (0 === (seen1 & 8)) + $this.isPreload = 0; + else + $this.isPreload = isPreload; + if (0 === (seen1 & 16)) + $this.playurlParam = null; + else + $this.playurlParam = playurlParam; + if (0 === (seen1 & 32)) + $this.localTime = 0; + else + $this.localTime = localTime; + if (0 === (seen1 & 64)) + $this.footprint = ''; + else + $this.footprint = footprint; + if (0 === (seen1 & 128)) + $this.from = ''; + else + $this.from = from; + if (0 === (seen1 & 256)) + $this.playerArgs = null; + else + $this.playerArgs = playerArgs; + if (0 === (seen1 & 512)) + $this.pegasusAvid = new Long(0, 0); + else + $this.pegasusAvid = pegasusAvid; + if (0 === (seen1 & 1024)) + $this.personalExtra = ''; + else + $this.personalExtra = personalExtra; + return $this; + } + } + class Companion_777 { + constructor() { + Companion_instance_777 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer($serializer_getInstance_942()), null, null, null, null, null, null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.DynVideoPersonalReply'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_764(); + } + } + class $serializer_764 { + constructor() { + $serializer_instance_764 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KDynVideoPersonalReply', this, 8); + tmp0_serialDesc.addElement_5pzumi_k$('list', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('offset', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('hasMore', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('readOffset', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('relation', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('additionUp', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('titleSub', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_777().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0], StringSerializer_getInstance(), BooleanSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_967()), get_nullable($serializer_getInstance_782()), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = false; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp13_cached = Companion_getInstance_777().$childSerializers_1; + if (tmp12_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp12_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp13_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp12_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_967(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_782(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + } else + while (tmp1_flag) { + tmp2_index = tmp12_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp12_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp13_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp12_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_967(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_782(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp12_input.endStructure_1xqz0n_k$(tmp0_desc); + return KDynVideoPersonalReply.new_com_bapis_bilibili_app_dynamic_v2_KDynVideoPersonalReply_mylc2t_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null); + } + serialize_ymu8ek_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_777().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.list, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.list); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.offset === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.offset); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.hasMore === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 2, value.hasMore); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.readOffset === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.readOffset); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.relation == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, $serializer_getInstance_967(), value.relation); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.additionUp == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 5, $serializer_getInstance_782(), value.additionUp); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.titleSub === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.titleSub); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_ymu8ek_k$(encoder, value instanceof KDynVideoPersonalReply ? value : THROW_CCE()); + } + } + class KDynVideoPersonalReply { + constructor(list, offset, hasMore, readOffset, relation, additionUp, title, titleSub) { + Companion_getInstance_777(); + list = list === VOID ? emptyList() : list; + offset = offset === VOID ? '' : offset; + hasMore = hasMore === VOID ? false : hasMore; + readOffset = readOffset === VOID ? '' : readOffset; + relation = relation === VOID ? null : relation; + additionUp = additionUp === VOID ? null : additionUp; + title = title === VOID ? '' : title; + titleSub = titleSub === VOID ? '' : titleSub; + this.list = list; + this.offset = offset; + this.hasMore = hasMore; + this.readOffset = readOffset; + this.relation = relation; + this.additionUp = additionUp; + this.title = title; + this.titleSub = titleSub; + } + get_list_wopuqv_k$() { + return this.list; + } + get_offset_hjmqak_k$() { + return this.offset; + } + get_hasMore_csdhd2_k$() { + return this.hasMore; + } + get_readOffset_uk52um_k$() { + return this.readOffset; + } + get_relation_u22tol_k$() { + return this.relation; + } + get_additionUp_iwy2ww_k$() { + return this.additionUp; + } + get_title_iz32un_k$() { + return this.title; + } + get_titleSub_8athg1_k$() { + return this.titleSub; + } + component1_7eebsc_k$() { + return this.list; + } + component2_7eebsb_k$() { + return this.offset; + } + component3_7eebsa_k$() { + return this.hasMore; + } + component4_7eebs9_k$() { + return this.readOffset; + } + component5_7eebs8_k$() { + return this.relation; + } + component6_7eebs7_k$() { + return this.additionUp; + } + component7_7eebs6_k$() { + return this.title; + } + component8_7eebs5_k$() { + return this.titleSub; + } + copy_4v0jwr_k$(list, offset, hasMore, readOffset, relation, additionUp, title, titleSub) { + return new KDynVideoPersonalReply(list, offset, hasMore, readOffset, relation, additionUp, title, titleSub); + } + copy(list, offset, hasMore, readOffset, relation, additionUp, title, titleSub, $super) { + list = list === VOID ? this.list : list; + offset = offset === VOID ? this.offset : offset; + hasMore = hasMore === VOID ? this.hasMore : hasMore; + readOffset = readOffset === VOID ? this.readOffset : readOffset; + relation = relation === VOID ? this.relation : relation; + additionUp = additionUp === VOID ? this.additionUp : additionUp; + title = title === VOID ? this.title : title; + titleSub = titleSub === VOID ? this.titleSub : titleSub; + return this.copy_4v0jwr_k$(list, offset, hasMore, readOffset, relation, additionUp, title, titleSub); + } + toString() { + return 'KDynVideoPersonalReply(list=' + this.list + ', offset=' + this.offset + ', hasMore=' + this.hasMore + ', readOffset=' + this.readOffset + ', relation=' + this.relation + ', additionUp=' + this.additionUp + ', title=' + this.title + ', titleSub=' + this.titleSub + ')'; + } + hashCode() { + var result = hashCode(this.list); + result = imul(result, 31) + getStringHashCode(this.offset) | 0; + result = imul(result, 31) + getBooleanHashCode(this.hasMore) | 0; + result = imul(result, 31) + getStringHashCode(this.readOffset) | 0; + result = imul(result, 31) + (this.relation == null ? 0 : this.relation.hashCode()) | 0; + result = imul(result, 31) + (this.additionUp == null ? 0 : this.additionUp.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.title) | 0; + result = imul(result, 31) + getStringHashCode(this.titleSub) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KDynVideoPersonalReply)) + return false; + var tmp0_other_with_cast = other instanceof KDynVideoPersonalReply ? other : THROW_CCE(); + if (!equals(this.list, tmp0_other_with_cast.list)) + return false; + if (!(this.offset === tmp0_other_with_cast.offset)) + return false; + if (!(this.hasMore === tmp0_other_with_cast.hasMore)) + return false; + if (!(this.readOffset === tmp0_other_with_cast.readOffset)) + return false; + if (!equals(this.relation, tmp0_other_with_cast.relation)) + return false; + if (!equals(this.additionUp, tmp0_other_with_cast.additionUp)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.titleSub === tmp0_other_with_cast.titleSub)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KDynVideoPersonalReply_mylc2t_k$(seen1, list, offset, hasMore, readOffset, relation, additionUp, title, titleSub, serializationConstructorMarker) { + Companion_getInstance_777(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_764().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.list = emptyList(); + else + $this.list = list; + if (0 === (seen1 & 2)) + $this.offset = ''; + else + $this.offset = offset; + if (0 === (seen1 & 4)) + $this.hasMore = false; + else + $this.hasMore = hasMore; + if (0 === (seen1 & 8)) + $this.readOffset = ''; + else + $this.readOffset = readOffset; + if (0 === (seen1 & 16)) + $this.relation = null; + else + $this.relation = relation; + if (0 === (seen1 & 32)) + $this.additionUp = null; + else + $this.additionUp = additionUp; + if (0 === (seen1 & 64)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 128)) + $this.titleSub = ''; + else + $this.titleSub = titleSub; + return $this; + } + } + class Companion_778 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.DynVideoUpdOffsetReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_765(); + } + } + class $serializer_765 { + constructor() { + $serializer_instance_765 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KDynVideoUpdOffsetReq', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('hostUid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('readOffset', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('footprint', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('personalExtra', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KDynVideoUpdOffsetReq.new_com_bapis_bilibili_app_dynamic_v2_KDynVideoUpdOffsetReq_k2rlff_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_sebrxi_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.hostUid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.hostUid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.readOffset === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.readOffset); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.footprint === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.footprint); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.personalExtra === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.personalExtra); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_sebrxi_k$(encoder, value instanceof KDynVideoUpdOffsetReq ? value : THROW_CCE()); + } + } + class KDynVideoUpdOffsetReq { + constructor(hostUid, readOffset, footprint, personalExtra) { + Companion_instance_778; + hostUid = hostUid === VOID ? new Long(0, 0) : hostUid; + readOffset = readOffset === VOID ? '' : readOffset; + footprint = footprint === VOID ? '' : footprint; + personalExtra = personalExtra === VOID ? '' : personalExtra; + this.hostUid = hostUid; + this.readOffset = readOffset; + this.footprint = footprint; + this.personalExtra = personalExtra; + } + get_hostUid_jfojvj_k$() { + return this.hostUid; + } + get_readOffset_uk52um_k$() { + return this.readOffset; + } + get_footprint_20kkve_k$() { + return this.footprint; + } + get_personalExtra_802xzb_k$() { + return this.personalExtra; + } + component1_7eebsc_k$() { + return this.hostUid; + } + component2_7eebsb_k$() { + return this.readOffset; + } + component3_7eebsa_k$() { + return this.footprint; + } + component4_7eebs9_k$() { + return this.personalExtra; + } + copy_kwys9l_k$(hostUid, readOffset, footprint, personalExtra) { + return new KDynVideoUpdOffsetReq(hostUid, readOffset, footprint, personalExtra); + } + copy(hostUid, readOffset, footprint, personalExtra, $super) { + hostUid = hostUid === VOID ? this.hostUid : hostUid; + readOffset = readOffset === VOID ? this.readOffset : readOffset; + footprint = footprint === VOID ? this.footprint : footprint; + personalExtra = personalExtra === VOID ? this.personalExtra : personalExtra; + return this.copy_kwys9l_k$(hostUid, readOffset, footprint, personalExtra); + } + toString() { + return 'KDynVideoUpdOffsetReq(hostUid=' + this.hostUid.toString() + ', readOffset=' + this.readOffset + ', footprint=' + this.footprint + ', personalExtra=' + this.personalExtra + ')'; + } + hashCode() { + var result = this.hostUid.hashCode(); + result = imul(result, 31) + getStringHashCode(this.readOffset) | 0; + result = imul(result, 31) + getStringHashCode(this.footprint) | 0; + result = imul(result, 31) + getStringHashCode(this.personalExtra) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KDynVideoUpdOffsetReq)) + return false; + var tmp0_other_with_cast = other instanceof KDynVideoUpdOffsetReq ? other : THROW_CCE(); + if (!this.hostUid.equals(tmp0_other_with_cast.hostUid)) + return false; + if (!(this.readOffset === tmp0_other_with_cast.readOffset)) + return false; + if (!(this.footprint === tmp0_other_with_cast.footprint)) + return false; + if (!(this.personalExtra === tmp0_other_with_cast.personalExtra)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KDynVideoUpdOffsetReq_k2rlff_k$(seen1, hostUid, readOffset, footprint, personalExtra, serializationConstructorMarker) { + Companion_instance_778; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_765().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.hostUid = new Long(0, 0); + else + $this.hostUid = hostUid; + if (0 === (seen1 & 2)) + $this.readOffset = ''; + else + $this.readOffset = readOffset; + if (0 === (seen1 & 4)) + $this.footprint = ''; + else + $this.footprint = footprint; + if (0 === (seen1 & 8)) + $this.personalExtra = ''; + else + $this.personalExtra = personalExtra; + return $this; + } + } + class Companion_779 { + constructor() { + Companion_instance_779 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, new ArrayListSerializer($serializer_getInstance_768()), null, null, null, null, null, null, null, new ArrayListSerializer($serializer_getInstance_768())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.CardVideoUpList'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_766(); + } + } + class $serializer_766 { + constructor() { + $serializer_instance_766 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KCardVideoUpList', this, 10); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('list', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('footprint', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('showLiveNum', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('moreLabel', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('titleSwitch', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('showMoreLabel', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('showInPersonal', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('showMoreButton', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('listSecond', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_779().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), tmp0_cached[1], StringSerializer_getInstance(), IntSerializer_getInstance(), get_nullable($serializer_getInstance_767()), IntSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), tmp0_cached[9]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = 0; + var tmp8_local4 = null; + var tmp9_local5 = 0; + var tmp10_local6 = false; + var tmp11_local7 = false; + var tmp12_local8 = false; + var tmp13_local9 = null; + var tmp14_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp15_cached = Companion_getInstance_779().$childSerializers_1; + if (tmp14_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp14_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp15_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_767(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp14_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp14_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp14_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp14_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 9, tmp15_cached[9], tmp13_local9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + } else + while (tmp1_flag) { + tmp2_index = tmp14_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp14_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp15_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_767(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp14_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp14_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp14_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp14_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 9, tmp15_cached[9], tmp13_local9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp14_input.endStructure_1xqz0n_k$(tmp0_desc); + return KCardVideoUpList.new_com_bapis_bilibili_app_dynamic_v2_KCardVideoUpList_xhvtdd_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, null); + } + serialize_ct5qhk_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_779().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !equals(value.list, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 1, tmp2_cached[1], value.list); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.footprint === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.footprint); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.showLiveNum === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 3, value.showLiveNum); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.moreLabel == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, $serializer_getInstance_767(), value.moreLabel); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.titleSwitch === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 5, value.titleSwitch); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.showMoreLabel === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 6, value.showMoreLabel); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.showInPersonal === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 7, value.showInPersonal); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.showMoreButton === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 8, value.showMoreButton); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !equals(value.listSecond, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 9, tmp2_cached[9], value.listSecond); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_ct5qhk_k$(encoder, value instanceof KCardVideoUpList ? value : THROW_CCE()); + } + } + class KCardVideoUpList { + constructor(title, list, footprint, showLiveNum, moreLabel, titleSwitch, showMoreLabel, showInPersonal, showMoreButton, listSecond) { + Companion_getInstance_779(); + title = title === VOID ? '' : title; + list = list === VOID ? emptyList() : list; + footprint = footprint === VOID ? '' : footprint; + showLiveNum = showLiveNum === VOID ? 0 : showLiveNum; + moreLabel = moreLabel === VOID ? null : moreLabel; + titleSwitch = titleSwitch === VOID ? 0 : titleSwitch; + showMoreLabel = showMoreLabel === VOID ? false : showMoreLabel; + showInPersonal = showInPersonal === VOID ? false : showInPersonal; + showMoreButton = showMoreButton === VOID ? false : showMoreButton; + listSecond = listSecond === VOID ? emptyList() : listSecond; + this.title = title; + this.list = list; + this.footprint = footprint; + this.showLiveNum = showLiveNum; + this.moreLabel = moreLabel; + this.titleSwitch = titleSwitch; + this.showMoreLabel = showMoreLabel; + this.showInPersonal = showInPersonal; + this.showMoreButton = showMoreButton; + this.listSecond = listSecond; + } + get_title_iz32un_k$() { + return this.title; + } + get_list_wopuqv_k$() { + return this.list; + } + get_footprint_20kkve_k$() { + return this.footprint; + } + get_showLiveNum_nd0gr8_k$() { + return this.showLiveNum; + } + get_moreLabel_wtpp8q_k$() { + return this.moreLabel; + } + get_titleSwitch_mhiwxv_k$() { + return this.titleSwitch; + } + get_showMoreLabel_hvb2m1_k$() { + return this.showMoreLabel; + } + get_showInPersonal_9p6aad_k$() { + return this.showInPersonal; + } + get_showMoreButton_iphpv7_k$() { + return this.showMoreButton; + } + get_listSecond_edg345_k$() { + return this.listSecond; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.list; + } + component3_7eebsa_k$() { + return this.footprint; + } + component4_7eebs9_k$() { + return this.showLiveNum; + } + component5_7eebs8_k$() { + return this.moreLabel; + } + component6_7eebs7_k$() { + return this.titleSwitch; + } + component7_7eebs6_k$() { + return this.showMoreLabel; + } + component8_7eebs5_k$() { + return this.showInPersonal; + } + component9_7eebs4_k$() { + return this.showMoreButton; + } + component10_gazzfo_k$() { + return this.listSecond; + } + copy_t5e188_k$(title, list, footprint, showLiveNum, moreLabel, titleSwitch, showMoreLabel, showInPersonal, showMoreButton, listSecond) { + return new KCardVideoUpList(title, list, footprint, showLiveNum, moreLabel, titleSwitch, showMoreLabel, showInPersonal, showMoreButton, listSecond); + } + copy(title, list, footprint, showLiveNum, moreLabel, titleSwitch, showMoreLabel, showInPersonal, showMoreButton, listSecond, $super) { + title = title === VOID ? this.title : title; + list = list === VOID ? this.list : list; + footprint = footprint === VOID ? this.footprint : footprint; + showLiveNum = showLiveNum === VOID ? this.showLiveNum : showLiveNum; + moreLabel = moreLabel === VOID ? this.moreLabel : moreLabel; + titleSwitch = titleSwitch === VOID ? this.titleSwitch : titleSwitch; + showMoreLabel = showMoreLabel === VOID ? this.showMoreLabel : showMoreLabel; + showInPersonal = showInPersonal === VOID ? this.showInPersonal : showInPersonal; + showMoreButton = showMoreButton === VOID ? this.showMoreButton : showMoreButton; + listSecond = listSecond === VOID ? this.listSecond : listSecond; + return this.copy_t5e188_k$(title, list, footprint, showLiveNum, moreLabel, titleSwitch, showMoreLabel, showInPersonal, showMoreButton, listSecond); + } + toString() { + return 'KCardVideoUpList(title=' + this.title + ', list=' + this.list + ', footprint=' + this.footprint + ', showLiveNum=' + this.showLiveNum + ', moreLabel=' + this.moreLabel + ', titleSwitch=' + this.titleSwitch + ', showMoreLabel=' + this.showMoreLabel + ', showInPersonal=' + this.showInPersonal + ', showMoreButton=' + this.showMoreButton + ', listSecond=' + this.listSecond + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + hashCode(this.list) | 0; + result = imul(result, 31) + getStringHashCode(this.footprint) | 0; + result = imul(result, 31) + this.showLiveNum | 0; + result = imul(result, 31) + (this.moreLabel == null ? 0 : this.moreLabel.hashCode()) | 0; + result = imul(result, 31) + this.titleSwitch | 0; + result = imul(result, 31) + getBooleanHashCode(this.showMoreLabel) | 0; + result = imul(result, 31) + getBooleanHashCode(this.showInPersonal) | 0; + result = imul(result, 31) + getBooleanHashCode(this.showMoreButton) | 0; + result = imul(result, 31) + hashCode(this.listSecond) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KCardVideoUpList)) + return false; + var tmp0_other_with_cast = other instanceof KCardVideoUpList ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!equals(this.list, tmp0_other_with_cast.list)) + return false; + if (!(this.footprint === tmp0_other_with_cast.footprint)) + return false; + if (!(this.showLiveNum === tmp0_other_with_cast.showLiveNum)) + return false; + if (!equals(this.moreLabel, tmp0_other_with_cast.moreLabel)) + return false; + if (!(this.titleSwitch === tmp0_other_with_cast.titleSwitch)) + return false; + if (!(this.showMoreLabel === tmp0_other_with_cast.showMoreLabel)) + return false; + if (!(this.showInPersonal === tmp0_other_with_cast.showInPersonal)) + return false; + if (!(this.showMoreButton === tmp0_other_with_cast.showMoreButton)) + return false; + if (!equals(this.listSecond, tmp0_other_with_cast.listSecond)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KCardVideoUpList_xhvtdd_k$(seen1, title, list, footprint, showLiveNum, moreLabel, titleSwitch, showMoreLabel, showInPersonal, showMoreButton, listSecond, serializationConstructorMarker) { + Companion_getInstance_779(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_766().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.list = emptyList(); + else + $this.list = list; + if (0 === (seen1 & 4)) + $this.footprint = ''; + else + $this.footprint = footprint; + if (0 === (seen1 & 8)) + $this.showLiveNum = 0; + else + $this.showLiveNum = showLiveNum; + if (0 === (seen1 & 16)) + $this.moreLabel = null; + else + $this.moreLabel = moreLabel; + if (0 === (seen1 & 32)) + $this.titleSwitch = 0; + else + $this.titleSwitch = titleSwitch; + if (0 === (seen1 & 64)) + $this.showMoreLabel = false; + else + $this.showMoreLabel = showMoreLabel; + if (0 === (seen1 & 128)) + $this.showInPersonal = false; + else + $this.showInPersonal = showInPersonal; + if (0 === (seen1 & 256)) + $this.showMoreButton = false; + else + $this.showMoreButton = showMoreButton; + if (0 === (seen1 & 512)) + $this.listSecond = emptyList(); + else + $this.listSecond = listSecond; + return $this; + } + } + class Companion_780 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.UpListMoreLabel'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_767(); + } + } + class $serializer_767 { + constructor() { + $serializer_instance_767 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KUpListMoreLabel', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('uri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KUpListMoreLabel.new_com_bapis_bilibili_app_dynamic_v2_KUpListMoreLabel_rxjsas_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_jxr99m_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.uri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.uri); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_jxr99m_k$(encoder, value instanceof KUpListMoreLabel ? value : THROW_CCE()); + } + } + class KUpListMoreLabel { + constructor(title, uri) { + Companion_instance_780; + title = title === VOID ? '' : title; + uri = uri === VOID ? '' : uri; + this.title = title; + this.uri = uri; + } + get_title_iz32un_k$() { + return this.title; + } + get_uri_18iuil_k$() { + return this.uri; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.uri; + } + copy_plwnsl_k$(title, uri) { + return new KUpListMoreLabel(title, uri); + } + copy(title, uri, $super) { + title = title === VOID ? this.title : title; + uri = uri === VOID ? this.uri : uri; + return this.copy_plwnsl_k$(title, uri); + } + toString() { + return 'KUpListMoreLabel(title=' + this.title + ', uri=' + this.uri + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.uri) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KUpListMoreLabel)) + return false; + var tmp0_other_with_cast = other instanceof KUpListMoreLabel ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.uri === tmp0_other_with_cast.uri)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KUpListMoreLabel_rxjsas_k$(seen1, title, uri, serializationConstructorMarker) { + Companion_instance_780; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_767().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.uri = ''; + else + $this.uri = uri; + return $this; + } + } + class Companion_781 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.UpListItem'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_768(); + } + } + class $serializer_768 { + constructor() { + $serializer_instance_768 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KUpListItem', this, 19); + tmp0_serialDesc.addElement_5pzumi_k$('hasUpdate', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('face', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('name', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('uid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('pos', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('userItemType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('displayStyleDay', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('displayStyleNight', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('styleId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('liveState', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('separator', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('uri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + tmp0_serialDesc.addElement_5pzumi_k$('isRecall', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(13)); + tmp0_serialDesc.addElement_5pzumi_k$('updateIcon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(14)); + tmp0_serialDesc.addElement_5pzumi_k$('liveRcmdReason', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(15)); + tmp0_serialDesc.addElement_5pzumi_k$('liveCover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(16)); + tmp0_serialDesc.addElement_5pzumi_k$('personalExtra', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(17)); + tmp0_serialDesc.addElement_5pzumi_k$('updateIconType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(18)); + tmp0_serialDesc.addElement_5pzumi_k$('trackId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(19)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [BooleanSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), get_nullable($serializer_getInstance_769()), get_nullable($serializer_getInstance_769()), LongSerializer_getInstance(), IntSerializer_getInstance(), BooleanSerializer_getInstance(), StringSerializer_getInstance(), BooleanSerializer_getInstance(), get_nullable($serializer_getInstance_955()), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = false; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = new Long(0, 0); + var tmp8_local4 = new Long(0, 0); + var tmp9_local5 = 0; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_local8 = new Long(0, 0); + var tmp13_local9 = 0; + var tmp14_local10 = false; + var tmp15_local11 = null; + var tmp16_local12 = false; + var tmp17_local13 = null; + var tmp18_local14 = null; + var tmp19_local15 = null; + var tmp20_local16 = null; + var tmp21_local17 = null; + var tmp22_local18 = null; + var tmp23_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp23_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp23_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp23_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp23_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp23_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp23_input.decodeLongElement_994anb_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp23_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp23_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_769(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp23_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_769(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp23_input.decodeLongElement_994anb_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp23_input.decodeIntElement_941u6a_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp23_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp23_input.decodeStringElement_3oenpg_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + tmp16_local12 = tmp23_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + tmp17_local13 = tmp23_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 13, $serializer_getInstance_955(), tmp17_local13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + tmp18_local14 = tmp23_input.decodeStringElement_3oenpg_k$(tmp0_desc, 14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + tmp19_local15 = tmp23_input.decodeStringElement_3oenpg_k$(tmp0_desc, 15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + tmp20_local16 = tmp23_input.decodeStringElement_3oenpg_k$(tmp0_desc, 16); + tmp3_bitMask0 = tmp3_bitMask0 | 65536; + tmp21_local17 = tmp23_input.decodeStringElement_3oenpg_k$(tmp0_desc, 17); + tmp3_bitMask0 = tmp3_bitMask0 | 131072; + tmp22_local18 = tmp23_input.decodeStringElement_3oenpg_k$(tmp0_desc, 18); + tmp3_bitMask0 = tmp3_bitMask0 | 262144; + } else + while (tmp1_flag) { + tmp2_index = tmp23_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp23_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp23_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp23_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp23_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp23_input.decodeLongElement_994anb_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp23_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp23_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_769(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp23_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_769(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp23_input.decodeLongElement_994anb_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp23_input.decodeIntElement_941u6a_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp23_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp23_input.decodeStringElement_3oenpg_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + case 12: + tmp16_local12 = tmp23_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + break; + case 13: + tmp17_local13 = tmp23_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 13, $serializer_getInstance_955(), tmp17_local13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + break; + case 14: + tmp18_local14 = tmp23_input.decodeStringElement_3oenpg_k$(tmp0_desc, 14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + break; + case 15: + tmp19_local15 = tmp23_input.decodeStringElement_3oenpg_k$(tmp0_desc, 15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + break; + case 16: + tmp20_local16 = tmp23_input.decodeStringElement_3oenpg_k$(tmp0_desc, 16); + tmp3_bitMask0 = tmp3_bitMask0 | 65536; + break; + case 17: + tmp21_local17 = tmp23_input.decodeStringElement_3oenpg_k$(tmp0_desc, 17); + tmp3_bitMask0 = tmp3_bitMask0 | 131072; + break; + case 18: + tmp22_local18 = tmp23_input.decodeStringElement_3oenpg_k$(tmp0_desc, 18); + tmp3_bitMask0 = tmp3_bitMask0 | 262144; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp23_input.endStructure_1xqz0n_k$(tmp0_desc); + return KUpListItem.new_com_bapis_bilibili_app_dynamic_v2_KUpListItem_l2x8o7_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, tmp18_local14, tmp19_local15, tmp20_local16, tmp21_local17, tmp22_local18, null); + } + serialize_6il2jm_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.hasUpdate === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 0, value.hasUpdate); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.face === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.face); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.name === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.name); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !value.uid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 3, value.uid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !value.pos.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 4, value.pos); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.userItemType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 5, value.userItemType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.displayStyleDay == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 6, $serializer_getInstance_769(), value.displayStyleDay); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.displayStyleNight == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 7, $serializer_getInstance_769(), value.displayStyleNight); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !value.styleId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 8, value.styleId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.liveState === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 9, value.liveState); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.separator === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 10, value.separator); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.uri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 11, value.uri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !(value.isRecall === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 12, value.isRecall); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 13) ? true : !(value.updateIcon == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 13, $serializer_getInstance_955(), value.updateIcon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 14) ? true : !(value.liveRcmdReason === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 14, value.liveRcmdReason); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 15) ? true : !(value.liveCover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 15, value.liveCover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 16) ? true : !(value.personalExtra === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 16, value.personalExtra); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 17) ? true : !(value.updateIconType === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 17, value.updateIconType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 18) ? true : !(value.trackId === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 18, value.trackId); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_6il2jm_k$(encoder, value instanceof KUpListItem ? value : THROW_CCE()); + } + } + class KUpListItem { + constructor(hasUpdate, face, name, uid, pos, userItemType, displayStyleDay, displayStyleNight, styleId, liveState, separator, uri, isRecall, updateIcon, liveRcmdReason, liveCover, personalExtra, updateIconType, trackId) { + Companion_instance_781; + hasUpdate = hasUpdate === VOID ? false : hasUpdate; + face = face === VOID ? '' : face; + name = name === VOID ? '' : name; + uid = uid === VOID ? new Long(0, 0) : uid; + pos = pos === VOID ? new Long(0, 0) : pos; + userItemType = userItemType === VOID ? 0 : userItemType; + displayStyleDay = displayStyleDay === VOID ? null : displayStyleDay; + displayStyleNight = displayStyleNight === VOID ? null : displayStyleNight; + styleId = styleId === VOID ? new Long(0, 0) : styleId; + liveState = liveState === VOID ? 0 : liveState; + separator = separator === VOID ? false : separator; + uri = uri === VOID ? '' : uri; + isRecall = isRecall === VOID ? false : isRecall; + updateIcon = updateIcon === VOID ? null : updateIcon; + liveRcmdReason = liveRcmdReason === VOID ? '' : liveRcmdReason; + liveCover = liveCover === VOID ? '' : liveCover; + personalExtra = personalExtra === VOID ? '' : personalExtra; + updateIconType = updateIconType === VOID ? '' : updateIconType; + trackId = trackId === VOID ? '' : trackId; + this.hasUpdate = hasUpdate; + this.face = face; + this.name = name; + this.uid = uid; + this.pos = pos; + this.userItemType = userItemType; + this.displayStyleDay = displayStyleDay; + this.displayStyleNight = displayStyleNight; + this.styleId = styleId; + this.liveState = liveState; + this.separator = separator; + this.uri = uri; + this.isRecall = isRecall; + this.updateIcon = updateIcon; + this.liveRcmdReason = liveRcmdReason; + this.liveCover = liveCover; + this.personalExtra = personalExtra; + this.updateIconType = updateIconType; + this.trackId = trackId; + } + get_hasUpdate_4w2tlm_k$() { + return this.hasUpdate; + } + get_face_woluhy_k$() { + return this.face; + } + get_name_woqyms_k$() { + return this.name; + } + get_uid_18iuqh_k$() { + return this.uid; + } + get_pos_18iyad_k$() { + return this.pos; + } + get_userItemType_bbfjmp_k$() { + return this.userItemType; + } + get_displayStyleDay_i0pgik_k$() { + return this.displayStyleDay; + } + get_displayStyleNight_eti9pc_k$() { + return this.displayStyleNight; + } + get_styleId_tqwev1_k$() { + return this.styleId; + } + get_liveState_p0nejg_k$() { + return this.liveState; + } + get_separator_xuwon8_k$() { + return this.separator; + } + get_uri_18iuil_k$() { + return this.uri; + } + get_isRecall_ywukkk_k$() { + return this.isRecall; + } + get_updateIcon_p2n1qt_k$() { + return this.updateIcon; + } + get_liveRcmdReason_5iluyn_k$() { + return this.liveRcmdReason; + } + get_liveCover_orrxc2_k$() { + return this.liveCover; + } + get_personalExtra_802xzb_k$() { + return this.personalExtra; + } + get_updateIconType_zhedh7_k$() { + return this.updateIconType; + } + get_trackId_gdy23n_k$() { + return this.trackId; + } + userItemTypeEnum() { + return Companion_getInstance_733().fromValue(this.userItemType); + } + liveStateEnum() { + return Companion_getInstance_1072().fromValue(this.liveState); + } + component1_7eebsc_k$() { + return this.hasUpdate; + } + component2_7eebsb_k$() { + return this.face; + } + component3_7eebsa_k$() { + return this.name; + } + component4_7eebs9_k$() { + return this.uid; + } + component5_7eebs8_k$() { + return this.pos; + } + component6_7eebs7_k$() { + return this.userItemType; + } + component7_7eebs6_k$() { + return this.displayStyleDay; + } + component8_7eebs5_k$() { + return this.displayStyleNight; + } + component9_7eebs4_k$() { + return this.styleId; + } + component10_gazzfo_k$() { + return this.liveState; + } + component11_gazzfn_k$() { + return this.separator; + } + component12_gazzfm_k$() { + return this.uri; + } + component13_gazzfl_k$() { + return this.isRecall; + } + component14_gazzfk_k$() { + return this.updateIcon; + } + component15_gazzfj_k$() { + return this.liveRcmdReason; + } + component16_gazzfi_k$() { + return this.liveCover; + } + component17_gazzfh_k$() { + return this.personalExtra; + } + component18_gazzfg_k$() { + return this.updateIconType; + } + component19_gazzff_k$() { + return this.trackId; + } + copy_3zhv1m_k$(hasUpdate, face, name, uid, pos, userItemType, displayStyleDay, displayStyleNight, styleId, liveState, separator, uri, isRecall, updateIcon, liveRcmdReason, liveCover, personalExtra, updateIconType, trackId) { + return new KUpListItem(hasUpdate, face, name, uid, pos, userItemType, displayStyleDay, displayStyleNight, styleId, liveState, separator, uri, isRecall, updateIcon, liveRcmdReason, liveCover, personalExtra, updateIconType, trackId); + } + copy(hasUpdate, face, name, uid, pos, userItemType, displayStyleDay, displayStyleNight, styleId, liveState, separator, uri, isRecall, updateIcon, liveRcmdReason, liveCover, personalExtra, updateIconType, trackId, $super) { + hasUpdate = hasUpdate === VOID ? this.hasUpdate : hasUpdate; + face = face === VOID ? this.face : face; + name = name === VOID ? this.name : name; + uid = uid === VOID ? this.uid : uid; + pos = pos === VOID ? this.pos : pos; + userItemType = userItemType === VOID ? this.userItemType : userItemType; + displayStyleDay = displayStyleDay === VOID ? this.displayStyleDay : displayStyleDay; + displayStyleNight = displayStyleNight === VOID ? this.displayStyleNight : displayStyleNight; + styleId = styleId === VOID ? this.styleId : styleId; + liveState = liveState === VOID ? this.liveState : liveState; + separator = separator === VOID ? this.separator : separator; + uri = uri === VOID ? this.uri : uri; + isRecall = isRecall === VOID ? this.isRecall : isRecall; + updateIcon = updateIcon === VOID ? this.updateIcon : updateIcon; + liveRcmdReason = liveRcmdReason === VOID ? this.liveRcmdReason : liveRcmdReason; + liveCover = liveCover === VOID ? this.liveCover : liveCover; + personalExtra = personalExtra === VOID ? this.personalExtra : personalExtra; + updateIconType = updateIconType === VOID ? this.updateIconType : updateIconType; + trackId = trackId === VOID ? this.trackId : trackId; + return this.copy_3zhv1m_k$(hasUpdate, face, name, uid, pos, userItemType, displayStyleDay, displayStyleNight, styleId, liveState, separator, uri, isRecall, updateIcon, liveRcmdReason, liveCover, personalExtra, updateIconType, trackId); + } + toString() { + return 'KUpListItem(hasUpdate=' + this.hasUpdate + ', face=' + this.face + ', name=' + this.name + ', uid=' + this.uid.toString() + ', pos=' + this.pos.toString() + ', userItemType=' + this.userItemType + ', displayStyleDay=' + this.displayStyleDay + ', displayStyleNight=' + this.displayStyleNight + ', styleId=' + this.styleId.toString() + ', liveState=' + this.liveState + ', separator=' + this.separator + ', uri=' + this.uri + ', isRecall=' + this.isRecall + ', updateIcon=' + this.updateIcon + ', liveRcmdReason=' + this.liveRcmdReason + ', liveCover=' + this.liveCover + ', personalExtra=' + this.personalExtra + ', updateIconType=' + this.updateIconType + ', trackId=' + this.trackId + ')'; + } + hashCode() { + var result = getBooleanHashCode(this.hasUpdate); + result = imul(result, 31) + getStringHashCode(this.face) | 0; + result = imul(result, 31) + getStringHashCode(this.name) | 0; + result = imul(result, 31) + this.uid.hashCode() | 0; + result = imul(result, 31) + this.pos.hashCode() | 0; + result = imul(result, 31) + this.userItemType | 0; + result = imul(result, 31) + (this.displayStyleDay == null ? 0 : this.displayStyleDay.hashCode()) | 0; + result = imul(result, 31) + (this.displayStyleNight == null ? 0 : this.displayStyleNight.hashCode()) | 0; + result = imul(result, 31) + this.styleId.hashCode() | 0; + result = imul(result, 31) + this.liveState | 0; + result = imul(result, 31) + getBooleanHashCode(this.separator) | 0; + result = imul(result, 31) + getStringHashCode(this.uri) | 0; + result = imul(result, 31) + getBooleanHashCode(this.isRecall) | 0; + result = imul(result, 31) + (this.updateIcon == null ? 0 : this.updateIcon.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.liveRcmdReason) | 0; + result = imul(result, 31) + getStringHashCode(this.liveCover) | 0; + result = imul(result, 31) + getStringHashCode(this.personalExtra) | 0; + result = imul(result, 31) + getStringHashCode(this.updateIconType) | 0; + result = imul(result, 31) + getStringHashCode(this.trackId) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KUpListItem)) + return false; + var tmp0_other_with_cast = other instanceof KUpListItem ? other : THROW_CCE(); + if (!(this.hasUpdate === tmp0_other_with_cast.hasUpdate)) + return false; + if (!(this.face === tmp0_other_with_cast.face)) + return false; + if (!(this.name === tmp0_other_with_cast.name)) + return false; + if (!this.uid.equals(tmp0_other_with_cast.uid)) + return false; + if (!this.pos.equals(tmp0_other_with_cast.pos)) + return false; + if (!(this.userItemType === tmp0_other_with_cast.userItemType)) + return false; + if (!equals(this.displayStyleDay, tmp0_other_with_cast.displayStyleDay)) + return false; + if (!equals(this.displayStyleNight, tmp0_other_with_cast.displayStyleNight)) + return false; + if (!this.styleId.equals(tmp0_other_with_cast.styleId)) + return false; + if (!(this.liveState === tmp0_other_with_cast.liveState)) + return false; + if (!(this.separator === tmp0_other_with_cast.separator)) + return false; + if (!(this.uri === tmp0_other_with_cast.uri)) + return false; + if (!(this.isRecall === tmp0_other_with_cast.isRecall)) + return false; + if (!equals(this.updateIcon, tmp0_other_with_cast.updateIcon)) + return false; + if (!(this.liveRcmdReason === tmp0_other_with_cast.liveRcmdReason)) + return false; + if (!(this.liveCover === tmp0_other_with_cast.liveCover)) + return false; + if (!(this.personalExtra === tmp0_other_with_cast.personalExtra)) + return false; + if (!(this.updateIconType === tmp0_other_with_cast.updateIconType)) + return false; + if (!(this.trackId === tmp0_other_with_cast.trackId)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KUpListItem_l2x8o7_k$(seen1, hasUpdate, face, name, uid, pos, userItemType, displayStyleDay, displayStyleNight, styleId, liveState, separator, uri, isRecall, updateIcon, liveRcmdReason, liveCover, personalExtra, updateIconType, trackId, serializationConstructorMarker) { + Companion_instance_781; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_768().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.hasUpdate = false; + else + $this.hasUpdate = hasUpdate; + if (0 === (seen1 & 2)) + $this.face = ''; + else + $this.face = face; + if (0 === (seen1 & 4)) + $this.name = ''; + else + $this.name = name; + if (0 === (seen1 & 8)) + $this.uid = new Long(0, 0); + else + $this.uid = uid; + if (0 === (seen1 & 16)) + $this.pos = new Long(0, 0); + else + $this.pos = pos; + if (0 === (seen1 & 32)) + $this.userItemType = 0; + else + $this.userItemType = userItemType; + if (0 === (seen1 & 64)) + $this.displayStyleDay = null; + else + $this.displayStyleDay = displayStyleDay; + if (0 === (seen1 & 128)) + $this.displayStyleNight = null; + else + $this.displayStyleNight = displayStyleNight; + if (0 === (seen1 & 256)) + $this.styleId = new Long(0, 0); + else + $this.styleId = styleId; + if (0 === (seen1 & 512)) + $this.liveState = 0; + else + $this.liveState = liveState; + if (0 === (seen1 & 1024)) + $this.separator = false; + else + $this.separator = separator; + if (0 === (seen1 & 2048)) + $this.uri = ''; + else + $this.uri = uri; + if (0 === (seen1 & 4096)) + $this.isRecall = false; + else + $this.isRecall = isRecall; + if (0 === (seen1 & 8192)) + $this.updateIcon = null; + else + $this.updateIcon = updateIcon; + if (0 === (seen1 & 16384)) + $this.liveRcmdReason = ''; + else + $this.liveRcmdReason = liveRcmdReason; + if (0 === (seen1 & 32768)) + $this.liveCover = ''; + else + $this.liveCover = liveCover; + if (0 === (seen1 & 65536)) + $this.personalExtra = ''; + else + $this.personalExtra = personalExtra; + if (0 === (seen1 & 131072)) + $this.updateIconType = ''; + else + $this.updateIconType = updateIconType; + if (0 === (seen1 & 262144)) + $this.trackId = ''; + else + $this.trackId = trackId; + return $this; + } + } + class Companion_782 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.UserItemStyle'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_769(); + } + } + class $serializer_769 { + constructor() { + $serializer_instance_769 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KUserItemStyle', this, 5); + tmp0_serialDesc.addElement_5pzumi_k$('rectText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('rectTextColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('rectIcon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('rectBgColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('outerAnimation', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp9_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + } else + while (tmp1_flag) { + tmp2_index = tmp9_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp9_input.endStructure_1xqz0n_k$(tmp0_desc); + return KUserItemStyle.new_com_bapis_bilibili_app_dynamic_v2_KUserItemStyle_pq48u6_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); + } + serialize_rm965l_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.rectText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.rectText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.rectTextColor === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.rectTextColor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.rectIcon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.rectIcon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.rectBgColor === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.rectBgColor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.outerAnimation === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.outerAnimation); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_rm965l_k$(encoder, value instanceof KUserItemStyle ? value : THROW_CCE()); + } + } + class KUserItemStyle { + constructor(rectText, rectTextColor, rectIcon, rectBgColor, outerAnimation) { + Companion_instance_782; + rectText = rectText === VOID ? '' : rectText; + rectTextColor = rectTextColor === VOID ? '' : rectTextColor; + rectIcon = rectIcon === VOID ? '' : rectIcon; + rectBgColor = rectBgColor === VOID ? '' : rectBgColor; + outerAnimation = outerAnimation === VOID ? '' : outerAnimation; + this.rectText = rectText; + this.rectTextColor = rectTextColor; + this.rectIcon = rectIcon; + this.rectBgColor = rectBgColor; + this.outerAnimation = outerAnimation; + } + get_rectText_q2jt2y_k$() { + return this.rectText; + } + get_rectTextColor_jqxgmv_k$() { + return this.rectTextColor; + } + get_rectIcon_q2cqiu_k$() { + return this.rectIcon; + } + get_rectBgColor_qiwn9r_k$() { + return this.rectBgColor; + } + get_outerAnimation_arsxua_k$() { + return this.outerAnimation; + } + component1_7eebsc_k$() { + return this.rectText; + } + component2_7eebsb_k$() { + return this.rectTextColor; + } + component3_7eebsa_k$() { + return this.rectIcon; + } + component4_7eebs9_k$() { + return this.rectBgColor; + } + component5_7eebs8_k$() { + return this.outerAnimation; + } + copy_bit9gb_k$(rectText, rectTextColor, rectIcon, rectBgColor, outerAnimation) { + return new KUserItemStyle(rectText, rectTextColor, rectIcon, rectBgColor, outerAnimation); + } + copy(rectText, rectTextColor, rectIcon, rectBgColor, outerAnimation, $super) { + rectText = rectText === VOID ? this.rectText : rectText; + rectTextColor = rectTextColor === VOID ? this.rectTextColor : rectTextColor; + rectIcon = rectIcon === VOID ? this.rectIcon : rectIcon; + rectBgColor = rectBgColor === VOID ? this.rectBgColor : rectBgColor; + outerAnimation = outerAnimation === VOID ? this.outerAnimation : outerAnimation; + return this.copy_bit9gb_k$(rectText, rectTextColor, rectIcon, rectBgColor, outerAnimation); + } + toString() { + return 'KUserItemStyle(rectText=' + this.rectText + ', rectTextColor=' + this.rectTextColor + ', rectIcon=' + this.rectIcon + ', rectBgColor=' + this.rectBgColor + ', outerAnimation=' + this.outerAnimation + ')'; + } + hashCode() { + var result = getStringHashCode(this.rectText); + result = imul(result, 31) + getStringHashCode(this.rectTextColor) | 0; + result = imul(result, 31) + getStringHashCode(this.rectIcon) | 0; + result = imul(result, 31) + getStringHashCode(this.rectBgColor) | 0; + result = imul(result, 31) + getStringHashCode(this.outerAnimation) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KUserItemStyle)) + return false; + var tmp0_other_with_cast = other instanceof KUserItemStyle ? other : THROW_CCE(); + if (!(this.rectText === tmp0_other_with_cast.rectText)) + return false; + if (!(this.rectTextColor === tmp0_other_with_cast.rectTextColor)) + return false; + if (!(this.rectIcon === tmp0_other_with_cast.rectIcon)) + return false; + if (!(this.rectBgColor === tmp0_other_with_cast.rectBgColor)) + return false; + if (!(this.outerAnimation === tmp0_other_with_cast.outerAnimation)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KUserItemStyle_pq48u6_k$(seen1, rectText, rectTextColor, rectIcon, rectBgColor, outerAnimation, serializationConstructorMarker) { + Companion_instance_782; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_769().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.rectText = ''; + else + $this.rectText = rectText; + if (0 === (seen1 & 2)) + $this.rectTextColor = ''; + else + $this.rectTextColor = rectTextColor; + if (0 === (seen1 & 4)) + $this.rectIcon = ''; + else + $this.rectIcon = rectIcon; + if (0 === (seen1 & 8)) + $this.rectBgColor = ''; + else + $this.rectBgColor = rectBgColor; + if (0 === (seen1 & 16)) + $this.outerAnimation = ''; + else + $this.outerAnimation = outerAnimation; + return $this; + } + } + class Companion_783 { + constructor() { + Companion_instance_783 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, new ArrayListSerializer($serializer_getInstance_771())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.CardVideoFollowList'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_770(); + } + } + class $serializer_770 { + constructor() { + $serializer_instance_770 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KCardVideoFollowList', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('viewAllLink', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('list', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_783().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), tmp0_cached[1]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp7_cached = Companion_getInstance_783().$childSerializers_1; + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KCardVideoFollowList.new_com_bapis_bilibili_app_dynamic_v2_KCardVideoFollowList_3wlaf3_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_vycn6_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_783().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.viewAllLink === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.viewAllLink); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !equals(value.list, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 1, tmp2_cached[1], value.list); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_vycn6_k$(encoder, value instanceof KCardVideoFollowList ? value : THROW_CCE()); + } + } + class KCardVideoFollowList { + constructor(viewAllLink, list) { + Companion_getInstance_783(); + viewAllLink = viewAllLink === VOID ? '' : viewAllLink; + list = list === VOID ? emptyList() : list; + this.viewAllLink = viewAllLink; + this.list = list; + } + get_viewAllLink_1cpnrn_k$() { + return this.viewAllLink; + } + get_list_wopuqv_k$() { + return this.list; + } + component1_7eebsc_k$() { + return this.viewAllLink; + } + component2_7eebsb_k$() { + return this.list; + } + copy_jz9uqq_k$(viewAllLink, list) { + return new KCardVideoFollowList(viewAllLink, list); + } + copy(viewAllLink, list, $super) { + viewAllLink = viewAllLink === VOID ? this.viewAllLink : viewAllLink; + list = list === VOID ? this.list : list; + return this.copy_jz9uqq_k$(viewAllLink, list); + } + toString() { + return 'KCardVideoFollowList(viewAllLink=' + this.viewAllLink + ', list=' + this.list + ')'; + } + hashCode() { + var result = getStringHashCode(this.viewAllLink); + result = imul(result, 31) + hashCode(this.list) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KCardVideoFollowList)) + return false; + var tmp0_other_with_cast = other instanceof KCardVideoFollowList ? other : THROW_CCE(); + if (!(this.viewAllLink === tmp0_other_with_cast.viewAllLink)) + return false; + if (!equals(this.list, tmp0_other_with_cast.list)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KCardVideoFollowList_3wlaf3_k$(seen1, viewAllLink, list, serializationConstructorMarker) { + Companion_getInstance_783(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_770().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.viewAllLink = ''; + else + $this.viewAllLink = viewAllLink; + if (0 === (seen1 & 2)) + $this.list = emptyList(); + else + $this.list = list; + return $this; + } + } + class Companion_784 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.FollowListItem'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_771(); + } + } + class $serializer_771 { + constructor() { + $serializer_instance_771 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KFollowListItem', this, 7); + tmp0_serialDesc.addElement_5pzumi_k$('seasonId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('url', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('newEp', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('subTitle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('pos', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_772()), StringSerializer_getInstance(), LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = new Long(0, 0); + var tmp11_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp11_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_772(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + } else + while (tmp1_flag) { + tmp2_index = tmp11_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_772(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp11_input.endStructure_1xqz0n_k$(tmp0_desc); + return KFollowListItem.new_com_bapis_bilibili_app_dynamic_v2_KFollowListItem_t4zzw5_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, null); + } + serialize_j22b20_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.seasonId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.seasonId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.cover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.url === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.url); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.newEp == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, $serializer_getInstance_772(), value.newEp); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.subTitle === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.subTitle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !value.pos.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 6, value.pos); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_j22b20_k$(encoder, value instanceof KFollowListItem ? value : THROW_CCE()); + } + } + class KFollowListItem { + constructor(seasonId, title, cover, url, newEp, subTitle, pos) { + Companion_instance_784; + seasonId = seasonId === VOID ? new Long(0, 0) : seasonId; + title = title === VOID ? '' : title; + cover = cover === VOID ? '' : cover; + url = url === VOID ? '' : url; + newEp = newEp === VOID ? null : newEp; + subTitle = subTitle === VOID ? '' : subTitle; + pos = pos === VOID ? new Long(0, 0) : pos; + this.seasonId = seasonId; + this.title = title; + this.cover = cover; + this.url = url; + this.newEp = newEp; + this.subTitle = subTitle; + this.pos = pos; + } + get_seasonId_h33f15_k$() { + return this.seasonId; + } + get_title_iz32un_k$() { + return this.title; + } + get_cover_ipug0e_k$() { + return this.cover; + } + get_url_18iuii_k$() { + return this.url; + } + get_newEp_ivpsn6_k$() { + return this.newEp; + } + get_subTitle_4nt9z5_k$() { + return this.subTitle; + } + get_pos_18iyad_k$() { + return this.pos; + } + component1_7eebsc_k$() { + return this.seasonId; + } + component2_7eebsb_k$() { + return this.title; + } + component3_7eebsa_k$() { + return this.cover; + } + component4_7eebs9_k$() { + return this.url; + } + component5_7eebs8_k$() { + return this.newEp; + } + component6_7eebs7_k$() { + return this.subTitle; + } + component7_7eebs6_k$() { + return this.pos; + } + copy_pi4ung_k$(seasonId, title, cover, url, newEp, subTitle, pos) { + return new KFollowListItem(seasonId, title, cover, url, newEp, subTitle, pos); + } + copy(seasonId, title, cover, url, newEp, subTitle, pos, $super) { + seasonId = seasonId === VOID ? this.seasonId : seasonId; + title = title === VOID ? this.title : title; + cover = cover === VOID ? this.cover : cover; + url = url === VOID ? this.url : url; + newEp = newEp === VOID ? this.newEp : newEp; + subTitle = subTitle === VOID ? this.subTitle : subTitle; + pos = pos === VOID ? this.pos : pos; + return this.copy_pi4ung_k$(seasonId, title, cover, url, newEp, subTitle, pos); + } + toString() { + return 'KFollowListItem(seasonId=' + this.seasonId.toString() + ', title=' + this.title + ', cover=' + this.cover + ', url=' + this.url + ', newEp=' + this.newEp + ', subTitle=' + this.subTitle + ', pos=' + this.pos.toString() + ')'; + } + hashCode() { + var result = this.seasonId.hashCode(); + result = imul(result, 31) + getStringHashCode(this.title) | 0; + result = imul(result, 31) + getStringHashCode(this.cover) | 0; + result = imul(result, 31) + getStringHashCode(this.url) | 0; + result = imul(result, 31) + (this.newEp == null ? 0 : this.newEp.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.subTitle) | 0; + result = imul(result, 31) + this.pos.hashCode() | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KFollowListItem)) + return false; + var tmp0_other_with_cast = other instanceof KFollowListItem ? other : THROW_CCE(); + if (!this.seasonId.equals(tmp0_other_with_cast.seasonId)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + if (!(this.url === tmp0_other_with_cast.url)) + return false; + if (!equals(this.newEp, tmp0_other_with_cast.newEp)) + return false; + if (!(this.subTitle === tmp0_other_with_cast.subTitle)) + return false; + if (!this.pos.equals(tmp0_other_with_cast.pos)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KFollowListItem_t4zzw5_k$(seen1, seasonId, title, cover, url, newEp, subTitle, pos, serializationConstructorMarker) { + Companion_instance_784; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_771().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.seasonId = new Long(0, 0); + else + $this.seasonId = seasonId; + if (0 === (seen1 & 2)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 4)) + $this.cover = ''; + else + $this.cover = cover; + if (0 === (seen1 & 8)) + $this.url = ''; + else + $this.url = url; + if (0 === (seen1 & 16)) + $this.newEp = null; + else + $this.newEp = newEp; + if (0 === (seen1 & 32)) + $this.subTitle = ''; + else + $this.subTitle = subTitle; + if (0 === (seen1 & 64)) + $this.pos = new Long(0, 0); + else + $this.pos = pos; + return $this; + } + } + class Companion_785 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.NewEP'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_772(); + } + } + class $serializer_772 { + constructor() { + $serializer_instance_772 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KNewEP', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('id', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('indexShow', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KNewEP.new_com_bapis_bilibili_app_dynamic_v2_KNewEP_j7a3d1_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_79ggdt_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.id === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.id); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.indexShow === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.indexShow); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.cover); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_79ggdt_k$(encoder, value instanceof KNewEP ? value : THROW_CCE()); + } + } + class KNewEP { + constructor(id, indexShow, cover) { + Companion_instance_785; + id = id === VOID ? 0 : id; + indexShow = indexShow === VOID ? '' : indexShow; + cover = cover === VOID ? '' : cover; + this.id = id; + this.indexShow = indexShow; + this.cover = cover; + } + get_id_kntnx8_k$() { + return this.id; + } + get_indexShow_4u9tbu_k$() { + return this.indexShow; + } + get_cover_ipug0e_k$() { + return this.cover; + } + component1_7eebsc_k$() { + return this.id; + } + component2_7eebsb_k$() { + return this.indexShow; + } + component3_7eebsa_k$() { + return this.cover; + } + copy_hrd73x_k$(id, indexShow, cover) { + return new KNewEP(id, indexShow, cover); + } + copy(id, indexShow, cover, $super) { + id = id === VOID ? this.id : id; + indexShow = indexShow === VOID ? this.indexShow : indexShow; + cover = cover === VOID ? this.cover : cover; + return this.copy_hrd73x_k$(id, indexShow, cover); + } + toString() { + return 'KNewEP(id=' + this.id + ', indexShow=' + this.indexShow + ', cover=' + this.cover + ')'; + } + hashCode() { + var result = this.id; + result = imul(result, 31) + getStringHashCode(this.indexShow) | 0; + result = imul(result, 31) + getStringHashCode(this.cover) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KNewEP)) + return false; + var tmp0_other_with_cast = other instanceof KNewEP ? other : THROW_CCE(); + if (!(this.id === tmp0_other_with_cast.id)) + return false; + if (!(this.indexShow === tmp0_other_with_cast.indexShow)) + return false; + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KNewEP_j7a3d1_k$(seen1, id, indexShow, cover, serializationConstructorMarker) { + Companion_instance_785; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_772().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.id = 0; + else + $this.id = id; + if (0 === (seen1 & 2)) + $this.indexShow = ''; + else + $this.indexShow = indexShow; + if (0 === (seen1 & 4)) + $this.cover = ''; + else + $this.cover = cover; + return $this; + } + } + class Companion_786 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.DynAdditionCommonFollowReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_773(); + } + } + class $serializer_773 { + constructor() { + $serializer_instance_773 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KDynAdditionCommonFollowReq', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('status', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('dynId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('cardType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KDynAdditionCommonFollowReq.new_com_bapis_bilibili_app_dynamic_v2_KDynAdditionCommonFollowReq_pbtyqp_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_hxn9er_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.status === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.status); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.dynId === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.dynId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.cardType === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.cardType); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_hxn9er_k$(encoder, value instanceof KDynAdditionCommonFollowReq ? value : THROW_CCE()); + } + } + class KDynAdditionCommonFollowReq { + constructor(status, dynId, cardType) { + Companion_instance_786; + status = status === VOID ? 0 : status; + dynId = dynId === VOID ? '' : dynId; + cardType = cardType === VOID ? '' : cardType; + this.status = status; + this.dynId = dynId; + this.cardType = cardType; + } + get_status_jnf6d7_k$() { + return this.status; + } + get_dynId_iqkfuz_k$() { + return this.dynId; + } + get_cardType_vxu2tp_k$() { + return this.cardType; + } + statusEnum() { + return Companion_getInstance_1066().fromValue(this.status); + } + component1_7eebsc_k$() { + return this.status; + } + component2_7eebsb_k$() { + return this.dynId; + } + component3_7eebsa_k$() { + return this.cardType; + } + copy_hrd73x_k$(status, dynId, cardType) { + return new KDynAdditionCommonFollowReq(status, dynId, cardType); + } + copy(status, dynId, cardType, $super) { + status = status === VOID ? this.status : status; + dynId = dynId === VOID ? this.dynId : dynId; + cardType = cardType === VOID ? this.cardType : cardType; + return this.copy_hrd73x_k$(status, dynId, cardType); + } + toString() { + return 'KDynAdditionCommonFollowReq(status=' + this.status + ', dynId=' + this.dynId + ', cardType=' + this.cardType + ')'; + } + hashCode() { + var result = this.status; + result = imul(result, 31) + getStringHashCode(this.dynId) | 0; + result = imul(result, 31) + getStringHashCode(this.cardType) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KDynAdditionCommonFollowReq)) + return false; + var tmp0_other_with_cast = other instanceof KDynAdditionCommonFollowReq ? other : THROW_CCE(); + if (!(this.status === tmp0_other_with_cast.status)) + return false; + if (!(this.dynId === tmp0_other_with_cast.dynId)) + return false; + if (!(this.cardType === tmp0_other_with_cast.cardType)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KDynAdditionCommonFollowReq_pbtyqp_k$(seen1, status, dynId, cardType, serializationConstructorMarker) { + Companion_instance_786; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_773().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.status = 0; + else + $this.status = status; + if (0 === (seen1 & 2)) + $this.dynId = ''; + else + $this.dynId = dynId; + if (0 === (seen1 & 4)) + $this.cardType = ''; + else + $this.cardType = cardType; + return $this; + } + } + class Companion_787 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.DynAdditionCommonFollowReply'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_774(); + } + } + class $serializer_774 { + constructor() { + $serializer_instance_774 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KDynAdditionCommonFollowReply', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('status', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KDynAdditionCommonFollowReply.new_com_bapis_bilibili_app_dynamic_v2_KDynAdditionCommonFollowReply_761htl_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_3z8lyn_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.status === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.status); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_3z8lyn_k$(encoder, value instanceof KDynAdditionCommonFollowReply ? value : THROW_CCE()); + } + } + class KDynAdditionCommonFollowReply { + constructor(status) { + Companion_instance_787; + status = status === VOID ? 0 : status; + this.status = status; + } + get_status_jnf6d7_k$() { + return this.status; + } + statusEnum() { + return Companion_getInstance_1066().fromValue(this.status); + } + component1_7eebsc_k$() { + return this.status; + } + copy_ns6qmb_k$(status) { + return new KDynAdditionCommonFollowReply(status); + } + copy(status, $super) { + status = status === VOID ? this.status : status; + return this.copy_ns6qmb_k$(status); + } + toString() { + return 'KDynAdditionCommonFollowReply(status=' + this.status + ')'; + } + hashCode() { + return this.status; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KDynAdditionCommonFollowReply)) + return false; + var tmp0_other_with_cast = other instanceof KDynAdditionCommonFollowReply ? other : THROW_CCE(); + if (!(this.status === tmp0_other_with_cast.status)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KDynAdditionCommonFollowReply_761htl_k$(seen1, status, serializationConstructorMarker) { + Companion_instance_787; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_774().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.status = 0; + else + $this.status = status; + return $this; + } + } + class Companion_788 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.DynThumbReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_775(); + } + } + class $serializer_775 { + constructor() { + $serializer_instance_775 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KDynThumbReq', this, 5); + tmp0_serialDesc.addElement_5pzumi_k$('uid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('dynId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('dynType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('rid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_local2 = new Long(0, 0); + var tmp7_local3 = null; + var tmp8_local4 = 0; + var tmp9_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp9_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + } else + while (tmp1_flag) { + tmp2_index = tmp9_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp9_input.endStructure_1xqz0n_k$(tmp0_desc); + return KDynThumbReq.new_com_bapis_bilibili_app_dynamic_v2_KDynThumbReq_xiztqz_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); + } + serialize_lsl7i3_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.uid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.uid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.dynId === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.dynId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.dynType.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.dynType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.rid === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.rid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.type === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 4, value.type); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_lsl7i3_k$(encoder, value instanceof KDynThumbReq ? value : THROW_CCE()); + } + } + class KDynThumbReq { + constructor(uid, dynId, dynType, rid, type) { + Companion_instance_788; + uid = uid === VOID ? new Long(0, 0) : uid; + dynId = dynId === VOID ? '' : dynId; + dynType = dynType === VOID ? new Long(0, 0) : dynType; + rid = rid === VOID ? '' : rid; + type = type === VOID ? 0 : type; + this.uid = uid; + this.dynId = dynId; + this.dynType = dynType; + this.rid = rid; + this.type = type; + } + get_uid_18iuqh_k$() { + return this.uid; + } + get_dynId_iqkfuz_k$() { + return this.dynId; + } + get_dynType_ymr0ra_k$() { + return this.dynType; + } + get_rid_18iwyk_k$() { + return this.rid; + } + get_type_wovaf7_k$() { + return this.type; + } + typeEnum() { + return Companion_getInstance_735().fromValue(this.type); + } + component1_7eebsc_k$() { + return this.uid; + } + component2_7eebsb_k$() { + return this.dynId; + } + component3_7eebsa_k$() { + return this.dynType; + } + component4_7eebs9_k$() { + return this.rid; + } + component5_7eebs8_k$() { + return this.type; + } + copy_b30fsz_k$(uid, dynId, dynType, rid, type) { + return new KDynThumbReq(uid, dynId, dynType, rid, type); + } + copy(uid, dynId, dynType, rid, type, $super) { + uid = uid === VOID ? this.uid : uid; + dynId = dynId === VOID ? this.dynId : dynId; + dynType = dynType === VOID ? this.dynType : dynType; + rid = rid === VOID ? this.rid : rid; + type = type === VOID ? this.type : type; + return this.copy_b30fsz_k$(uid, dynId, dynType, rid, type); + } + toString() { + return 'KDynThumbReq(uid=' + this.uid.toString() + ', dynId=' + this.dynId + ', dynType=' + this.dynType.toString() + ', rid=' + this.rid + ', type=' + this.type + ')'; + } + hashCode() { + var result = this.uid.hashCode(); + result = imul(result, 31) + getStringHashCode(this.dynId) | 0; + result = imul(result, 31) + this.dynType.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.rid) | 0; + result = imul(result, 31) + this.type | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KDynThumbReq)) + return false; + var tmp0_other_with_cast = other instanceof KDynThumbReq ? other : THROW_CCE(); + if (!this.uid.equals(tmp0_other_with_cast.uid)) + return false; + if (!(this.dynId === tmp0_other_with_cast.dynId)) + return false; + if (!this.dynType.equals(tmp0_other_with_cast.dynType)) + return false; + if (!(this.rid === tmp0_other_with_cast.rid)) + return false; + if (!(this.type === tmp0_other_with_cast.type)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KDynThumbReq_xiztqz_k$(seen1, uid, dynId, dynType, rid, type, serializationConstructorMarker) { + Companion_instance_788; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_775().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.uid = new Long(0, 0); + else + $this.uid = uid; + if (0 === (seen1 & 2)) + $this.dynId = ''; + else + $this.dynId = dynId; + if (0 === (seen1 & 4)) + $this.dynType = new Long(0, 0); + else + $this.dynType = dynType; + if (0 === (seen1 & 8)) + $this.rid = ''; + else + $this.rid = rid; + if (0 === (seen1 & 16)) + $this.type = 0; + else + $this.type = type; + return $this; + } + } + class Companion_789 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.DynFakeCardReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_776(); + } + } + class $serializer_776 { + constructor() { + $serializer_instance_776 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KDynFakeCardReq', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('content', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KDynFakeCardReq.new_com_bapis_bilibili_app_dynamic_v2_KDynFakeCardReq_asr3nr_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_uchg3a_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.content === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.content); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_uchg3a_k$(encoder, value instanceof KDynFakeCardReq ? value : THROW_CCE()); + } + } + class KDynFakeCardReq { + constructor(content) { + Companion_instance_789; + content = content === VOID ? '' : content; + this.content = content; + } + get_content_h02jrk_k$() { + return this.content; + } + component1_7eebsc_k$() { + return this.content; + } + copy_a35qlh_k$(content) { + return new KDynFakeCardReq(content); + } + copy(content, $super) { + content = content === VOID ? this.content : content; + return this.copy_a35qlh_k$(content); + } + toString() { + return 'KDynFakeCardReq(content=' + this.content + ')'; + } + hashCode() { + return getStringHashCode(this.content); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KDynFakeCardReq)) + return false; + var tmp0_other_with_cast = other instanceof KDynFakeCardReq ? other : THROW_CCE(); + if (!(this.content === tmp0_other_with_cast.content)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KDynFakeCardReq_asr3nr_k$(seen1, content, serializationConstructorMarker) { + Companion_instance_789; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_776().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.content = ''; + else + $this.content = content; + return $this; + } + } + class Companion_790 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.DynFakeCardReply'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_777(); + } + } + class $serializer_777 { + constructor() { + $serializer_instance_777 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KDynFakeCardReply', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('item', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_942())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_942(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_942(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KDynFakeCardReply.new_com_bapis_bilibili_app_dynamic_v2_KDynFakeCardReply_o3d5pu_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_13w94u_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.item == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_942(), value.item); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_13w94u_k$(encoder, value instanceof KDynFakeCardReply ? value : THROW_CCE()); + } + } + class KDynFakeCardReply { + constructor(item) { + Companion_instance_790; + item = item === VOID ? null : item; + this.item = item; + } + get_item_woo5lo_k$() { + return this.item; + } + component1_7eebsc_k$() { + return this.item; + } + copy_kr9r4r_k$(item) { + return new KDynFakeCardReply(item); + } + copy(item, $super) { + item = item === VOID ? this.item : item; + return this.copy_kr9r4r_k$(item); + } + toString() { + return 'KDynFakeCardReply(item=' + this.item + ')'; + } + hashCode() { + return this.item == null ? 0 : this.item.hashCode(); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KDynFakeCardReply)) + return false; + var tmp0_other_with_cast = other instanceof KDynFakeCardReply ? other : THROW_CCE(); + if (!equals(this.item, tmp0_other_with_cast.item)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KDynFakeCardReply_o3d5pu_k$(seen1, item, serializationConstructorMarker) { + Companion_instance_790; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_777().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.item = null; + else + $this.item = item; + return $this; + } + } + class Companion_791 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.DynRcmdUpExchangeReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_778(); + } + } + class $serializer_778 { + constructor() { + $serializer_instance_778 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KDynRcmdUpExchangeReq', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('uid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('dislikeTs', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('from', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = new Long(0, 0); + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KDynRcmdUpExchangeReq.new_com_bapis_bilibili_app_dynamic_v2_KDynRcmdUpExchangeReq_9f8z92_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_llz023_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.uid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.uid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.dislikeTs.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.dislikeTs); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.from === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.from); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_llz023_k$(encoder, value instanceof KDynRcmdUpExchangeReq ? value : THROW_CCE()); + } + } + class KDynRcmdUpExchangeReq { + constructor(uid, dislikeTs, from) { + Companion_instance_791; + uid = uid === VOID ? new Long(0, 0) : uid; + dislikeTs = dislikeTs === VOID ? new Long(0, 0) : dislikeTs; + from = from === VOID ? '' : from; + this.uid = uid; + this.dislikeTs = dislikeTs; + this.from = from; + } + get_uid_18iuqh_k$() { + return this.uid; + } + get_dislikeTs_ao9pej_k$() { + return this.dislikeTs; + } + get_from_wom7eb_k$() { + return this.from; + } + component1_7eebsc_k$() { + return this.uid; + } + component2_7eebsb_k$() { + return this.dislikeTs; + } + component3_7eebsa_k$() { + return this.from; + } + copy_ooba7d_k$(uid, dislikeTs, from) { + return new KDynRcmdUpExchangeReq(uid, dislikeTs, from); + } + copy(uid, dislikeTs, from, $super) { + uid = uid === VOID ? this.uid : uid; + dislikeTs = dislikeTs === VOID ? this.dislikeTs : dislikeTs; + from = from === VOID ? this.from : from; + return this.copy_ooba7d_k$(uid, dislikeTs, from); + } + toString() { + return 'KDynRcmdUpExchangeReq(uid=' + this.uid.toString() + ', dislikeTs=' + this.dislikeTs.toString() + ', from=' + this.from + ')'; + } + hashCode() { + var result = this.uid.hashCode(); + result = imul(result, 31) + this.dislikeTs.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.from) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KDynRcmdUpExchangeReq)) + return false; + var tmp0_other_with_cast = other instanceof KDynRcmdUpExchangeReq ? other : THROW_CCE(); + if (!this.uid.equals(tmp0_other_with_cast.uid)) + return false; + if (!this.dislikeTs.equals(tmp0_other_with_cast.dislikeTs)) + return false; + if (!(this.from === tmp0_other_with_cast.from)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KDynRcmdUpExchangeReq_9f8z92_k$(seen1, uid, dislikeTs, from, serializationConstructorMarker) { + Companion_instance_791; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_778().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.uid = new Long(0, 0); + else + $this.uid = uid; + if (0 === (seen1 & 2)) + $this.dislikeTs = new Long(0, 0); + else + $this.dislikeTs = dislikeTs; + if (0 === (seen1 & 4)) + $this.from = ''; + else + $this.from = from; + return $this; + } + } + class Companion_792 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.DynRcmdUpExchangeReply'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_779(); + } + } + class $serializer_779 { + constructor() { + $serializer_instance_779 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KDynRcmdUpExchangeReply', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('unfollow', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_759())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_759(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_759(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KDynRcmdUpExchangeReply.new_com_bapis_bilibili_app_dynamic_v2_KDynRcmdUpExchangeReply_lo3ypt_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_2t78e9_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.unfollow == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_759(), value.unfollow); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_2t78e9_k$(encoder, value instanceof KDynRcmdUpExchangeReply ? value : THROW_CCE()); + } + } + class KDynRcmdUpExchangeReply { + constructor(unfollow) { + Companion_instance_792; + unfollow = unfollow === VOID ? null : unfollow; + this.unfollow = unfollow; + } + get_unfollow_wwgz83_k$() { + return this.unfollow; + } + component1_7eebsc_k$() { + return this.unfollow; + } + copy_t8obsx_k$(unfollow) { + return new KDynRcmdUpExchangeReply(unfollow); + } + copy(unfollow, $super) { + unfollow = unfollow === VOID ? this.unfollow : unfollow; + return this.copy_t8obsx_k$(unfollow); + } + toString() { + return 'KDynRcmdUpExchangeReply(unfollow=' + this.unfollow + ')'; + } + hashCode() { + return this.unfollow == null ? 0 : this.unfollow.hashCode(); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KDynRcmdUpExchangeReply)) + return false; + var tmp0_other_with_cast = other instanceof KDynRcmdUpExchangeReply ? other : THROW_CCE(); + if (!equals(this.unfollow, tmp0_other_with_cast.unfollow)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KDynRcmdUpExchangeReply_lo3ypt_k$(seen1, unfollow, serializationConstructorMarker) { + Companion_instance_792; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_779().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.unfollow = null; + else + $this.unfollow = unfollow; + return $this; + } + } + class Companion_793 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.DynAllPersonalReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_780(); + } + } + class $serializer_780 { + constructor() { + $serializer_instance_780 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KDynAllPersonalReq', this, 10); + tmp0_serialDesc.addElement_5pzumi_k$('hostUid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('offset', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('page', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('isPreload', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('playurlParam', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('localTime', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('footprint', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('from', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('playerArgs', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('personalExtra', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), get_nullable($serializer_getInstance_743()), IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_152()), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_local2 = 0; + var tmp7_local3 = 0; + var tmp8_local4 = null; + var tmp9_local5 = 0; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_local8 = null; + var tmp13_local9 = null; + var tmp14_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp14_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_743(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_152(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + } else + while (tmp1_flag) { + tmp2_index = tmp14_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_743(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_152(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp14_input.endStructure_1xqz0n_k$(tmp0_desc); + return KDynAllPersonalReq.new_com_bapis_bilibili_app_dynamic_v2_KDynAllPersonalReq_bqc6a7_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, null); + } + serialize_q5wq3q_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.hostUid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.hostUid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.offset === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.offset); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.page === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.page); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.isPreload === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 3, value.isPreload); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.playurlParam == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, $serializer_getInstance_743(), value.playurlParam); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.localTime === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 5, value.localTime); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.footprint === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.footprint); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.from === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.from); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.playerArgs == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 8, $serializer_getInstance_152(), value.playerArgs); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.personalExtra === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 9, value.personalExtra); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_q5wq3q_k$(encoder, value instanceof KDynAllPersonalReq ? value : THROW_CCE()); + } + } + class KDynAllPersonalReq { + constructor(hostUid, offset, page, isPreload, playurlParam, localTime, footprint, from, playerArgs, personalExtra) { + Companion_instance_793; + hostUid = hostUid === VOID ? new Long(0, 0) : hostUid; + offset = offset === VOID ? '' : offset; + page = page === VOID ? 0 : page; + isPreload = isPreload === VOID ? 0 : isPreload; + playurlParam = playurlParam === VOID ? null : playurlParam; + localTime = localTime === VOID ? 0 : localTime; + footprint = footprint === VOID ? '' : footprint; + from = from === VOID ? '' : from; + playerArgs = playerArgs === VOID ? null : playerArgs; + personalExtra = personalExtra === VOID ? '' : personalExtra; + this.hostUid = hostUid; + this.offset = offset; + this.page = page; + this.isPreload = isPreload; + this.playurlParam = playurlParam; + this.localTime = localTime; + this.footprint = footprint; + this.from = from; + this.playerArgs = playerArgs; + this.personalExtra = personalExtra; + } + get_hostUid_jfojvj_k$() { + return this.hostUid; + } + get_offset_hjmqak_k$() { + return this.offset; + } + get_page_wos8go_k$() { + return this.page; + } + get_isPreload_6c9x62_k$() { + return this.isPreload; + } + get_playurlParam_oed3qd_k$() { + return this.playurlParam; + } + get_localTime_bf0zwx_k$() { + return this.localTime; + } + get_footprint_20kkve_k$() { + return this.footprint; + } + get_from_wom7eb_k$() { + return this.from; + } + get_playerArgs_eh86hz_k$() { + return this.playerArgs; + } + get_personalExtra_802xzb_k$() { + return this.personalExtra; + } + component1_7eebsc_k$() { + return this.hostUid; + } + component2_7eebsb_k$() { + return this.offset; + } + component3_7eebsa_k$() { + return this.page; + } + component4_7eebs9_k$() { + return this.isPreload; + } + component5_7eebs8_k$() { + return this.playurlParam; + } + component6_7eebs7_k$() { + return this.localTime; + } + component7_7eebs6_k$() { + return this.footprint; + } + component8_7eebs5_k$() { + return this.from; + } + component9_7eebs4_k$() { + return this.playerArgs; + } + component10_gazzfo_k$() { + return this.personalExtra; + } + copy_96kz38_k$(hostUid, offset, page, isPreload, playurlParam, localTime, footprint, from, playerArgs, personalExtra) { + return new KDynAllPersonalReq(hostUid, offset, page, isPreload, playurlParam, localTime, footprint, from, playerArgs, personalExtra); + } + copy(hostUid, offset, page, isPreload, playurlParam, localTime, footprint, from, playerArgs, personalExtra, $super) { + hostUid = hostUid === VOID ? this.hostUid : hostUid; + offset = offset === VOID ? this.offset : offset; + page = page === VOID ? this.page : page; + isPreload = isPreload === VOID ? this.isPreload : isPreload; + playurlParam = playurlParam === VOID ? this.playurlParam : playurlParam; + localTime = localTime === VOID ? this.localTime : localTime; + footprint = footprint === VOID ? this.footprint : footprint; + from = from === VOID ? this.from : from; + playerArgs = playerArgs === VOID ? this.playerArgs : playerArgs; + personalExtra = personalExtra === VOID ? this.personalExtra : personalExtra; + return this.copy_96kz38_k$(hostUid, offset, page, isPreload, playurlParam, localTime, footprint, from, playerArgs, personalExtra); + } + toString() { + return 'KDynAllPersonalReq(hostUid=' + this.hostUid.toString() + ', offset=' + this.offset + ', page=' + this.page + ', isPreload=' + this.isPreload + ', playurlParam=' + this.playurlParam + ', localTime=' + this.localTime + ', footprint=' + this.footprint + ', from=' + this.from + ', playerArgs=' + this.playerArgs + ', personalExtra=' + this.personalExtra + ')'; + } + hashCode() { + var result = this.hostUid.hashCode(); + result = imul(result, 31) + getStringHashCode(this.offset) | 0; + result = imul(result, 31) + this.page | 0; + result = imul(result, 31) + this.isPreload | 0; + result = imul(result, 31) + (this.playurlParam == null ? 0 : this.playurlParam.hashCode()) | 0; + result = imul(result, 31) + this.localTime | 0; + result = imul(result, 31) + getStringHashCode(this.footprint) | 0; + result = imul(result, 31) + getStringHashCode(this.from) | 0; + result = imul(result, 31) + (this.playerArgs == null ? 0 : this.playerArgs.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.personalExtra) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KDynAllPersonalReq)) + return false; + var tmp0_other_with_cast = other instanceof KDynAllPersonalReq ? other : THROW_CCE(); + if (!this.hostUid.equals(tmp0_other_with_cast.hostUid)) + return false; + if (!(this.offset === tmp0_other_with_cast.offset)) + return false; + if (!(this.page === tmp0_other_with_cast.page)) + return false; + if (!(this.isPreload === tmp0_other_with_cast.isPreload)) + return false; + if (!equals(this.playurlParam, tmp0_other_with_cast.playurlParam)) + return false; + if (!(this.localTime === tmp0_other_with_cast.localTime)) + return false; + if (!(this.footprint === tmp0_other_with_cast.footprint)) + return false; + if (!(this.from === tmp0_other_with_cast.from)) + return false; + if (!equals(this.playerArgs, tmp0_other_with_cast.playerArgs)) + return false; + if (!(this.personalExtra === tmp0_other_with_cast.personalExtra)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KDynAllPersonalReq_bqc6a7_k$(seen1, hostUid, offset, page, isPreload, playurlParam, localTime, footprint, from, playerArgs, personalExtra, serializationConstructorMarker) { + Companion_instance_793; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_780().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.hostUid = new Long(0, 0); + else + $this.hostUid = hostUid; + if (0 === (seen1 & 2)) + $this.offset = ''; + else + $this.offset = offset; + if (0 === (seen1 & 4)) + $this.page = 0; + else + $this.page = page; + if (0 === (seen1 & 8)) + $this.isPreload = 0; + else + $this.isPreload = isPreload; + if (0 === (seen1 & 16)) + $this.playurlParam = null; + else + $this.playurlParam = playurlParam; + if (0 === (seen1 & 32)) + $this.localTime = 0; + else + $this.localTime = localTime; + if (0 === (seen1 & 64)) + $this.footprint = ''; + else + $this.footprint = footprint; + if (0 === (seen1 & 128)) + $this.from = ''; + else + $this.from = from; + if (0 === (seen1 & 256)) + $this.playerArgs = null; + else + $this.playerArgs = playerArgs; + if (0 === (seen1 & 512)) + $this.personalExtra = ''; + else + $this.personalExtra = personalExtra; + return $this; + } + } + class Companion_794 { + constructor() { + Companion_instance_794 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer($serializer_getInstance_942()), null, null, null, null, null, null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.DynAllPersonalReply'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_781(); + } + } + class $serializer_781 { + constructor() { + $serializer_instance_781 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KDynAllPersonalReply', this, 8); + tmp0_serialDesc.addElement_5pzumi_k$('list', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('offset', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('hasMore', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('readOffset', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('relation', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('additionUp', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('titleSub', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_794().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0], StringSerializer_getInstance(), BooleanSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_967()), get_nullable($serializer_getInstance_782()), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = false; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp13_cached = Companion_getInstance_794().$childSerializers_1; + if (tmp12_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp12_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp13_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp12_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_967(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_782(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + } else + while (tmp1_flag) { + tmp2_index = tmp12_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp12_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp13_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp12_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_967(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_782(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp12_input.endStructure_1xqz0n_k$(tmp0_desc); + return KDynAllPersonalReply.new_com_bapis_bilibili_app_dynamic_v2_KDynAllPersonalReply_g1qfgr_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null); + } + serialize_uiyd46_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_794().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.list, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.list); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.offset === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.offset); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.hasMore === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 2, value.hasMore); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.readOffset === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.readOffset); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.relation == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, $serializer_getInstance_967(), value.relation); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.additionUp == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 5, $serializer_getInstance_782(), value.additionUp); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.titleSub === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.titleSub); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_uiyd46_k$(encoder, value instanceof KDynAllPersonalReply ? value : THROW_CCE()); + } + } + class KDynAllPersonalReply { + constructor(list, offset, hasMore, readOffset, relation, additionUp, title, titleSub) { + Companion_getInstance_794(); + list = list === VOID ? emptyList() : list; + offset = offset === VOID ? '' : offset; + hasMore = hasMore === VOID ? false : hasMore; + readOffset = readOffset === VOID ? '' : readOffset; + relation = relation === VOID ? null : relation; + additionUp = additionUp === VOID ? null : additionUp; + title = title === VOID ? '' : title; + titleSub = titleSub === VOID ? '' : titleSub; + this.list = list; + this.offset = offset; + this.hasMore = hasMore; + this.readOffset = readOffset; + this.relation = relation; + this.additionUp = additionUp; + this.title = title; + this.titleSub = titleSub; + } + get_list_wopuqv_k$() { + return this.list; + } + get_offset_hjmqak_k$() { + return this.offset; + } + get_hasMore_csdhd2_k$() { + return this.hasMore; + } + get_readOffset_uk52um_k$() { + return this.readOffset; + } + get_relation_u22tol_k$() { + return this.relation; + } + get_additionUp_iwy2ww_k$() { + return this.additionUp; + } + get_title_iz32un_k$() { + return this.title; + } + get_titleSub_8athg1_k$() { + return this.titleSub; + } + component1_7eebsc_k$() { + return this.list; + } + component2_7eebsb_k$() { + return this.offset; + } + component3_7eebsa_k$() { + return this.hasMore; + } + component4_7eebs9_k$() { + return this.readOffset; + } + component5_7eebs8_k$() { + return this.relation; + } + component6_7eebs7_k$() { + return this.additionUp; + } + component7_7eebs6_k$() { + return this.title; + } + component8_7eebs5_k$() { + return this.titleSub; + } + copy_4v0jwr_k$(list, offset, hasMore, readOffset, relation, additionUp, title, titleSub) { + return new KDynAllPersonalReply(list, offset, hasMore, readOffset, relation, additionUp, title, titleSub); + } + copy(list, offset, hasMore, readOffset, relation, additionUp, title, titleSub, $super) { + list = list === VOID ? this.list : list; + offset = offset === VOID ? this.offset : offset; + hasMore = hasMore === VOID ? this.hasMore : hasMore; + readOffset = readOffset === VOID ? this.readOffset : readOffset; + relation = relation === VOID ? this.relation : relation; + additionUp = additionUp === VOID ? this.additionUp : additionUp; + title = title === VOID ? this.title : title; + titleSub = titleSub === VOID ? this.titleSub : titleSub; + return this.copy_4v0jwr_k$(list, offset, hasMore, readOffset, relation, additionUp, title, titleSub); + } + toString() { + return 'KDynAllPersonalReply(list=' + this.list + ', offset=' + this.offset + ', hasMore=' + this.hasMore + ', readOffset=' + this.readOffset + ', relation=' + this.relation + ', additionUp=' + this.additionUp + ', title=' + this.title + ', titleSub=' + this.titleSub + ')'; + } + hashCode() { + var result = hashCode(this.list); + result = imul(result, 31) + getStringHashCode(this.offset) | 0; + result = imul(result, 31) + getBooleanHashCode(this.hasMore) | 0; + result = imul(result, 31) + getStringHashCode(this.readOffset) | 0; + result = imul(result, 31) + (this.relation == null ? 0 : this.relation.hashCode()) | 0; + result = imul(result, 31) + (this.additionUp == null ? 0 : this.additionUp.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.title) | 0; + result = imul(result, 31) + getStringHashCode(this.titleSub) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KDynAllPersonalReply)) + return false; + var tmp0_other_with_cast = other instanceof KDynAllPersonalReply ? other : THROW_CCE(); + if (!equals(this.list, tmp0_other_with_cast.list)) + return false; + if (!(this.offset === tmp0_other_with_cast.offset)) + return false; + if (!(this.hasMore === tmp0_other_with_cast.hasMore)) + return false; + if (!(this.readOffset === tmp0_other_with_cast.readOffset)) + return false; + if (!equals(this.relation, tmp0_other_with_cast.relation)) + return false; + if (!equals(this.additionUp, tmp0_other_with_cast.additionUp)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.titleSub === tmp0_other_with_cast.titleSub)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KDynAllPersonalReply_g1qfgr_k$(seen1, list, offset, hasMore, readOffset, relation, additionUp, title, titleSub, serializationConstructorMarker) { + Companion_getInstance_794(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_781().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.list = emptyList(); + else + $this.list = list; + if (0 === (seen1 & 2)) + $this.offset = ''; + else + $this.offset = offset; + if (0 === (seen1 & 4)) + $this.hasMore = false; + else + $this.hasMore = hasMore; + if (0 === (seen1 & 8)) + $this.readOffset = ''; + else + $this.readOffset = readOffset; + if (0 === (seen1 & 16)) + $this.relation = null; + else + $this.relation = relation; + if (0 === (seen1 & 32)) + $this.additionUp = null; + else + $this.additionUp = additionUp; + if (0 === (seen1 & 64)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 128)) + $this.titleSub = ''; + else + $this.titleSub = titleSub; + return $this; + } + } + class Companion_795 { + constructor() { + Companion_instance_795 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer($serializer_getInstance_1113()), null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.TopAdditionUP'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_782(); + } + } + class $serializer_782 { + constructor() { + $serializer_instance_782 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KTopAdditionUP', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('up', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('hasFold', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_795().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0], IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = 0; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp7_cached = Companion_getInstance_795().$childSerializers_1; + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp7_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp7_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KTopAdditionUP.new_com_bapis_bilibili_app_dynamic_v2_KTopAdditionUP_twxynz_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_pb0ki8_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_795().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.up, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.up); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.hasFold === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.hasFold); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_pb0ki8_k$(encoder, value instanceof KTopAdditionUP ? value : THROW_CCE()); + } + } + class KTopAdditionUP { + constructor(up, hasFold) { + Companion_getInstance_795(); + up = up === VOID ? emptyList() : up; + hasFold = hasFold === VOID ? 0 : hasFold; + this.up = up; + this.hasFold = hasFold; + } + get_up_kntnmk_k$() { + return this.up; + } + get_hasFold_cs90b6_k$() { + return this.hasFold; + } + component1_7eebsc_k$() { + return this.up; + } + component2_7eebsb_k$() { + return this.hasFold; + } + copy_y6tmi7_k$(up, hasFold) { + return new KTopAdditionUP(up, hasFold); + } + copy(up, hasFold, $super) { + up = up === VOID ? this.up : up; + hasFold = hasFold === VOID ? this.hasFold : hasFold; + return this.copy_y6tmi7_k$(up, hasFold); + } + toString() { + return 'KTopAdditionUP(up=' + this.up + ', hasFold=' + this.hasFold + ')'; + } + hashCode() { + var result = hashCode(this.up); + result = imul(result, 31) + this.hasFold | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KTopAdditionUP)) + return false; + var tmp0_other_with_cast = other instanceof KTopAdditionUP ? other : THROW_CCE(); + if (!equals(this.up, tmp0_other_with_cast.up)) + return false; + if (!(this.hasFold === tmp0_other_with_cast.hasFold)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KTopAdditionUP_twxynz_k$(seen1, up, hasFold, serializationConstructorMarker) { + Companion_getInstance_795(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_782().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.up = emptyList(); + else + $this.up = up; + if (0 === (seen1 & 2)) + $this.hasFold = 0; + else + $this.hasFold = hasFold; + return $this; + } + } + class Companion_796 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.DynAllUpdOffsetReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_783(); + } + } + class $serializer_783 { + constructor() { + $serializer_instance_783 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KDynAllUpdOffsetReq', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('hostUid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('readOffset', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('footprint', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('personalExtra', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KDynAllUpdOffsetReq.new_com_bapis_bilibili_app_dynamic_v2_KDynAllUpdOffsetReq_9uacrj_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_es67nk_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.hostUid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.hostUid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.readOffset === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.readOffset); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.footprint === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.footprint); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.personalExtra === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.personalExtra); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_es67nk_k$(encoder, value instanceof KDynAllUpdOffsetReq ? value : THROW_CCE()); + } + } + class KDynAllUpdOffsetReq { + constructor(hostUid, readOffset, footprint, personalExtra) { + Companion_instance_796; + hostUid = hostUid === VOID ? new Long(0, 0) : hostUid; + readOffset = readOffset === VOID ? '' : readOffset; + footprint = footprint === VOID ? '' : footprint; + personalExtra = personalExtra === VOID ? '' : personalExtra; + this.hostUid = hostUid; + this.readOffset = readOffset; + this.footprint = footprint; + this.personalExtra = personalExtra; + } + get_hostUid_jfojvj_k$() { + return this.hostUid; + } + get_readOffset_uk52um_k$() { + return this.readOffset; + } + get_footprint_20kkve_k$() { + return this.footprint; + } + get_personalExtra_802xzb_k$() { + return this.personalExtra; + } + component1_7eebsc_k$() { + return this.hostUid; + } + component2_7eebsb_k$() { + return this.readOffset; + } + component3_7eebsa_k$() { + return this.footprint; + } + component4_7eebs9_k$() { + return this.personalExtra; + } + copy_kwys9l_k$(hostUid, readOffset, footprint, personalExtra) { + return new KDynAllUpdOffsetReq(hostUid, readOffset, footprint, personalExtra); + } + copy(hostUid, readOffset, footprint, personalExtra, $super) { + hostUid = hostUid === VOID ? this.hostUid : hostUid; + readOffset = readOffset === VOID ? this.readOffset : readOffset; + footprint = footprint === VOID ? this.footprint : footprint; + personalExtra = personalExtra === VOID ? this.personalExtra : personalExtra; + return this.copy_kwys9l_k$(hostUid, readOffset, footprint, personalExtra); + } + toString() { + return 'KDynAllUpdOffsetReq(hostUid=' + this.hostUid.toString() + ', readOffset=' + this.readOffset + ', footprint=' + this.footprint + ', personalExtra=' + this.personalExtra + ')'; + } + hashCode() { + var result = this.hostUid.hashCode(); + result = imul(result, 31) + getStringHashCode(this.readOffset) | 0; + result = imul(result, 31) + getStringHashCode(this.footprint) | 0; + result = imul(result, 31) + getStringHashCode(this.personalExtra) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KDynAllUpdOffsetReq)) + return false; + var tmp0_other_with_cast = other instanceof KDynAllUpdOffsetReq ? other : THROW_CCE(); + if (!this.hostUid.equals(tmp0_other_with_cast.hostUid)) + return false; + if (!(this.readOffset === tmp0_other_with_cast.readOffset)) + return false; + if (!(this.footprint === tmp0_other_with_cast.footprint)) + return false; + if (!(this.personalExtra === tmp0_other_with_cast.personalExtra)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KDynAllUpdOffsetReq_9uacrj_k$(seen1, hostUid, readOffset, footprint, personalExtra, serializationConstructorMarker) { + Companion_instance_796; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_783().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.hostUid = new Long(0, 0); + else + $this.hostUid = hostUid; + if (0 === (seen1 & 2)) + $this.readOffset = ''; + else + $this.readOffset = readOffset; + if (0 === (seen1 & 4)) + $this.footprint = ''; + else + $this.footprint = footprint; + if (0 === (seen1 & 8)) + $this.personalExtra = ''; + else + $this.personalExtra = personalExtra; + return $this; + } + } + class Companion_797 { + constructor() { + Companion_instance_797 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, new ArrayListSerializer(LongSerializer_getInstance()), null, null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.DynVoteReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_784(); + } + } + class $serializer_784 { + constructor() { + $serializer_instance_784 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KDynVoteReq', this, 5); + tmp0_serialDesc.addElement_5pzumi_k$('voteId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('votes', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('status', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('dynamicId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('share', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_797().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), tmp0_cached[1], IntSerializer_getInstance(), StringSerializer_getInstance(), BooleanSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_local2 = 0; + var tmp7_local3 = null; + var tmp8_local4 = false; + var tmp9_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp10_cached = Companion_getInstance_797().$childSerializers_1; + if (tmp9_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp9_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp10_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp9_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + } else + while (tmp1_flag) { + tmp2_index = tmp9_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp9_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp10_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp9_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp9_input.endStructure_1xqz0n_k$(tmp0_desc); + return KDynVoteReq.new_com_bapis_bilibili_app_dynamic_v2_KDynVoteReq_bu18ng_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); + } + serialize_dqzlw1_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_797().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.voteId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.voteId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !equals(value.votes, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 1, tmp2_cached[1], value.votes); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.status === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.status); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.dynamicId === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.dynamicId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.share === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 4, value.share); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_dqzlw1_k$(encoder, value instanceof KDynVoteReq ? value : THROW_CCE()); + } + } + class KDynVoteReq { + constructor(voteId, votes, status, dynamicId, share) { + Companion_getInstance_797(); + voteId = voteId === VOID ? new Long(0, 0) : voteId; + votes = votes === VOID ? emptyList() : votes; + status = status === VOID ? 0 : status; + dynamicId = dynamicId === VOID ? '' : dynamicId; + share = share === VOID ? false : share; + this.voteId = voteId; + this.votes = votes; + this.status = status; + this.dynamicId = dynamicId; + this.share = share; + } + get_voteId_l04v5a_k$() { + return this.voteId; + } + get_votes_j0ahsw_k$() { + return this.votes; + } + get_status_jnf6d7_k$() { + return this.status; + } + get_dynamicId_wvqga7_k$() { + return this.dynamicId; + } + get_share_iyi9bq_k$() { + return this.share; + } + statusEnum() { + return Companion_getInstance_736().fromValue(this.status); + } + component1_7eebsc_k$() { + return this.voteId; + } + component2_7eebsb_k$() { + return this.votes; + } + component3_7eebsa_k$() { + return this.status; + } + component4_7eebs9_k$() { + return this.dynamicId; + } + component5_7eebs8_k$() { + return this.share; + } + copy_sndphi_k$(voteId, votes, status, dynamicId, share) { + return new KDynVoteReq(voteId, votes, status, dynamicId, share); + } + copy(voteId, votes, status, dynamicId, share, $super) { + voteId = voteId === VOID ? this.voteId : voteId; + votes = votes === VOID ? this.votes : votes; + status = status === VOID ? this.status : status; + dynamicId = dynamicId === VOID ? this.dynamicId : dynamicId; + share = share === VOID ? this.share : share; + return this.copy_sndphi_k$(voteId, votes, status, dynamicId, share); + } + toString() { + return 'KDynVoteReq(voteId=' + this.voteId.toString() + ', votes=' + this.votes + ', status=' + this.status + ', dynamicId=' + this.dynamicId + ', share=' + this.share + ')'; + } + hashCode() { + var result = this.voteId.hashCode(); + result = imul(result, 31) + hashCode(this.votes) | 0; + result = imul(result, 31) + this.status | 0; + result = imul(result, 31) + getStringHashCode(this.dynamicId) | 0; + result = imul(result, 31) + getBooleanHashCode(this.share) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KDynVoteReq)) + return false; + var tmp0_other_with_cast = other instanceof KDynVoteReq ? other : THROW_CCE(); + if (!this.voteId.equals(tmp0_other_with_cast.voteId)) + return false; + if (!equals(this.votes, tmp0_other_with_cast.votes)) + return false; + if (!(this.status === tmp0_other_with_cast.status)) + return false; + if (!(this.dynamicId === tmp0_other_with_cast.dynamicId)) + return false; + if (!(this.share === tmp0_other_with_cast.share)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KDynVoteReq_bu18ng_k$(seen1, voteId, votes, status, dynamicId, share, serializationConstructorMarker) { + Companion_getInstance_797(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_784().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.voteId = new Long(0, 0); + else + $this.voteId = voteId; + if (0 === (seen1 & 2)) + $this.votes = emptyList(); + else + $this.votes = votes; + if (0 === (seen1 & 4)) + $this.status = 0; + else + $this.status = status; + if (0 === (seen1 & 8)) + $this.dynamicId = ''; + else + $this.dynamicId = dynamicId; + if (0 === (seen1 & 16)) + $this.share = false; + else + $this.share = share; + return $this; + } + } + class Companion_798 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.DynVoteReply'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_785(); + } + } + class $serializer_785 { + constructor() { + $serializer_instance_785 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KDynVoteReply', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('item', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('toast', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_1121()), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_1121(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_1121(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KDynVoteReply.new_com_bapis_bilibili_app_dynamic_v2_KDynVoteReply_vxpa4k_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_v18vrx_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.item == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_1121(), value.item); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.toast === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.toast); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_v18vrx_k$(encoder, value instanceof KDynVoteReply ? value : THROW_CCE()); + } + } + class KDynVoteReply { + constructor(item, toast) { + Companion_instance_798; + item = item === VOID ? null : item; + toast = toast === VOID ? '' : toast; + this.item = item; + this.toast = toast; + } + get_item_woo5lo_k$() { + return this.item; + } + get_toast_iz6iv2_k$() { + return this.toast; + } + component1_7eebsc_k$() { + return this.item; + } + component2_7eebsb_k$() { + return this.toast; + } + copy_tj0nln_k$(item, toast) { + return new KDynVoteReply(item, toast); + } + copy(item, toast, $super) { + item = item === VOID ? this.item : item; + toast = toast === VOID ? this.toast : toast; + return this.copy_tj0nln_k$(item, toast); + } + toString() { + return 'KDynVoteReply(item=' + this.item + ', toast=' + this.toast + ')'; + } + hashCode() { + var result = this.item == null ? 0 : this.item.hashCode(); + result = imul(result, 31) + getStringHashCode(this.toast) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KDynVoteReply)) + return false; + var tmp0_other_with_cast = other instanceof KDynVoteReply ? other : THROW_CCE(); + if (!equals(this.item, tmp0_other_with_cast.item)) + return false; + if (!(this.toast === tmp0_other_with_cast.toast)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KDynVoteReply_vxpa4k_k$(seen1, item, toast, serializationConstructorMarker) { + Companion_instance_798; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_785().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.item = null; + else + $this.item = item; + if (0 === (seen1 & 2)) + $this.toast = ''; + else + $this.toast = toast; + return $this; + } + } + class Companion_799 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.MixUpListLiveItem'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_786(); + } + } + class $serializer_786 { + constructor() { + $serializer_instance_786 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KMixUpListLiveItem', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('status', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('roomId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('uri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [BooleanSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = false; + var tmp5_local1 = new Long(0, 0); + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KMixUpListLiveItem.new_com_bapis_bilibili_app_dynamic_v2_KMixUpListLiveItem_bqvae8_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_mninig_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.status === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 0, value.status); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.roomId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.roomId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.uri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.uri); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_mninig_k$(encoder, value instanceof KMixUpListLiveItem ? value : THROW_CCE()); + } + } + class KMixUpListLiveItem { + constructor(status, roomId, uri) { + Companion_instance_799; + status = status === VOID ? false : status; + roomId = roomId === VOID ? new Long(0, 0) : roomId; + uri = uri === VOID ? '' : uri; + this.status = status; + this.roomId = roomId; + this.uri = uri; + } + get_status_jnf6d7_k$() { + return this.status; + } + get_roomId_j3vckf_k$() { + return this.roomId; + } + get_uri_18iuil_k$() { + return this.uri; + } + component1_7eebsc_k$() { + return this.status; + } + component2_7eebsb_k$() { + return this.roomId; + } + component3_7eebsa_k$() { + return this.uri; + } + copy_75nvqk_k$(status, roomId, uri) { + return new KMixUpListLiveItem(status, roomId, uri); + } + copy(status, roomId, uri, $super) { + status = status === VOID ? this.status : status; + roomId = roomId === VOID ? this.roomId : roomId; + uri = uri === VOID ? this.uri : uri; + return this.copy_75nvqk_k$(status, roomId, uri); + } + toString() { + return 'KMixUpListLiveItem(status=' + this.status + ', roomId=' + this.roomId.toString() + ', uri=' + this.uri + ')'; + } + hashCode() { + var result = getBooleanHashCode(this.status); + result = imul(result, 31) + this.roomId.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.uri) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KMixUpListLiveItem)) + return false; + var tmp0_other_with_cast = other instanceof KMixUpListLiveItem ? other : THROW_CCE(); + if (!(this.status === tmp0_other_with_cast.status)) + return false; + if (!this.roomId.equals(tmp0_other_with_cast.roomId)) + return false; + if (!(this.uri === tmp0_other_with_cast.uri)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KMixUpListLiveItem_bqvae8_k$(seen1, status, roomId, uri, serializationConstructorMarker) { + Companion_instance_799; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_786().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.status = false; + else + $this.status = status; + if (0 === (seen1 & 2)) + $this.roomId = new Long(0, 0); + else + $this.roomId = roomId; + if (0 === (seen1 & 4)) + $this.uri = ''; + else + $this.uri = uri; + return $this; + } + } + class Companion_800 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.MixUpListItem'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_787(); + } + } + class $serializer_787 { + constructor() { + $serializer_instance_787 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KMixUpListItem', this, 12); + tmp0_serialDesc.addElement_5pzumi_k$('uid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('specialAttention', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('reddotState', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('liveInfo', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('name', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('face', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('official', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('vip', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('relation', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('premiereState', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('uri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('avatar', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), get_nullable($serializer_getInstance_786()), StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_960()), get_nullable($serializer_getInstance_961()), get_nullable($serializer_getInstance_967()), IntSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_181())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = 0; + var tmp6_local2 = 0; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_local8 = null; + var tmp13_local9 = 0; + var tmp14_local10 = null; + var tmp15_local11 = null; + var tmp16_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp16_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp16_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp16_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_786(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp16_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_960(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp16_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_961(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp16_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_967(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp16_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 11, $serializer_getInstance_181(), tmp15_local11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + } else + while (tmp1_flag) { + tmp2_index = tmp16_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp16_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp16_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_786(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp16_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_960(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp16_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_961(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp16_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_967(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp16_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 11, $serializer_getInstance_181(), tmp15_local11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp16_input.endStructure_1xqz0n_k$(tmp0_desc); + return KMixUpListItem.new_com_bapis_bilibili_app_dynamic_v2_KMixUpListItem_rv16qr_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, null); + } + serialize_fiewa4_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.uid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.uid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.specialAttention === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.specialAttention); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.reddotState === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.reddotState); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.liveInfo == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_786(), value.liveInfo); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.name === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.name); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.face === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.face); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.official == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 6, $serializer_getInstance_960(), value.official); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.vip == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 7, $serializer_getInstance_961(), value.vip); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.relation == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 8, $serializer_getInstance_967(), value.relation); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.premiereState === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 9, value.premiereState); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.uri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 10, value.uri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.avatar == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 11, $serializer_getInstance_181(), value.avatar); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_fiewa4_k$(encoder, value instanceof KMixUpListItem ? value : THROW_CCE()); + } + } + class KMixUpListItem { + constructor(uid, specialAttention, reddotState, liveInfo, name, face, official, vip, relation, premiereState, uri, avatar) { + Companion_instance_800; + uid = uid === VOID ? new Long(0, 0) : uid; + specialAttention = specialAttention === VOID ? 0 : specialAttention; + reddotState = reddotState === VOID ? 0 : reddotState; + liveInfo = liveInfo === VOID ? null : liveInfo; + name = name === VOID ? '' : name; + face = face === VOID ? '' : face; + official = official === VOID ? null : official; + vip = vip === VOID ? null : vip; + relation = relation === VOID ? null : relation; + premiereState = premiereState === VOID ? 0 : premiereState; + uri = uri === VOID ? '' : uri; + avatar = avatar === VOID ? null : avatar; + this.uid = uid; + this.specialAttention = specialAttention; + this.reddotState = reddotState; + this.liveInfo = liveInfo; + this.name = name; + this.face = face; + this.official = official; + this.vip = vip; + this.relation = relation; + this.premiereState = premiereState; + this.uri = uri; + this.avatar = avatar; + } + get_uid_18iuqh_k$() { + return this.uid; + } + get_specialAttention_op62b2_k$() { + return this.specialAttention; + } + get_reddotState_7936k0_k$() { + return this.reddotState; + } + get_liveInfo_8d2sfx_k$() { + return this.liveInfo; + } + get_name_woqyms_k$() { + return this.name; + } + get_face_woluhy_k$() { + return this.face; + } + get_official_qkjhys_k$() { + return this.official; + } + get_vip_18itzg_k$() { + return this.vip; + } + get_relation_u22tol_k$() { + return this.relation; + } + get_premiereState_vbli8h_k$() { + return this.premiereState; + } + get_uri_18iuil_k$() { + return this.uri; + } + get_avatar_b5pjz6_k$() { + return this.avatar; + } + component1_7eebsc_k$() { + return this.uid; + } + component2_7eebsb_k$() { + return this.specialAttention; + } + component3_7eebsa_k$() { + return this.reddotState; + } + component4_7eebs9_k$() { + return this.liveInfo; + } + component5_7eebs8_k$() { + return this.name; + } + component6_7eebs7_k$() { + return this.face; + } + component7_7eebs6_k$() { + return this.official; + } + component8_7eebs5_k$() { + return this.vip; + } + component9_7eebs4_k$() { + return this.relation; + } + component10_gazzfo_k$() { + return this.premiereState; + } + component11_gazzfn_k$() { + return this.uri; + } + component12_gazzfm_k$() { + return this.avatar; + } + copy_kqe52r_k$(uid, specialAttention, reddotState, liveInfo, name, face, official, vip, relation, premiereState, uri, avatar) { + return new KMixUpListItem(uid, specialAttention, reddotState, liveInfo, name, face, official, vip, relation, premiereState, uri, avatar); + } + copy(uid, specialAttention, reddotState, liveInfo, name, face, official, vip, relation, premiereState, uri, avatar, $super) { + uid = uid === VOID ? this.uid : uid; + specialAttention = specialAttention === VOID ? this.specialAttention : specialAttention; + reddotState = reddotState === VOID ? this.reddotState : reddotState; + liveInfo = liveInfo === VOID ? this.liveInfo : liveInfo; + name = name === VOID ? this.name : name; + face = face === VOID ? this.face : face; + official = official === VOID ? this.official : official; + vip = vip === VOID ? this.vip : vip; + relation = relation === VOID ? this.relation : relation; + premiereState = premiereState === VOID ? this.premiereState : premiereState; + uri = uri === VOID ? this.uri : uri; + avatar = avatar === VOID ? this.avatar : avatar; + return this.copy_kqe52r_k$(uid, specialAttention, reddotState, liveInfo, name, face, official, vip, relation, premiereState, uri, avatar); + } + toString() { + return 'KMixUpListItem(uid=' + this.uid.toString() + ', specialAttention=' + this.specialAttention + ', reddotState=' + this.reddotState + ', liveInfo=' + this.liveInfo + ', name=' + this.name + ', face=' + this.face + ', official=' + this.official + ', vip=' + this.vip + ', relation=' + this.relation + ', premiereState=' + this.premiereState + ', uri=' + this.uri + ', avatar=' + this.avatar + ')'; + } + hashCode() { + var result = this.uid.hashCode(); + result = imul(result, 31) + this.specialAttention | 0; + result = imul(result, 31) + this.reddotState | 0; + result = imul(result, 31) + (this.liveInfo == null ? 0 : this.liveInfo.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.name) | 0; + result = imul(result, 31) + getStringHashCode(this.face) | 0; + result = imul(result, 31) + (this.official == null ? 0 : this.official.hashCode()) | 0; + result = imul(result, 31) + (this.vip == null ? 0 : this.vip.hashCode()) | 0; + result = imul(result, 31) + (this.relation == null ? 0 : this.relation.hashCode()) | 0; + result = imul(result, 31) + this.premiereState | 0; + result = imul(result, 31) + getStringHashCode(this.uri) | 0; + result = imul(result, 31) + (this.avatar == null ? 0 : this.avatar.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KMixUpListItem)) + return false; + var tmp0_other_with_cast = other instanceof KMixUpListItem ? other : THROW_CCE(); + if (!this.uid.equals(tmp0_other_with_cast.uid)) + return false; + if (!(this.specialAttention === tmp0_other_with_cast.specialAttention)) + return false; + if (!(this.reddotState === tmp0_other_with_cast.reddotState)) + return false; + if (!equals(this.liveInfo, tmp0_other_with_cast.liveInfo)) + return false; + if (!(this.name === tmp0_other_with_cast.name)) + return false; + if (!(this.face === tmp0_other_with_cast.face)) + return false; + if (!equals(this.official, tmp0_other_with_cast.official)) + return false; + if (!equals(this.vip, tmp0_other_with_cast.vip)) + return false; + if (!equals(this.relation, tmp0_other_with_cast.relation)) + return false; + if (!(this.premiereState === tmp0_other_with_cast.premiereState)) + return false; + if (!(this.uri === tmp0_other_with_cast.uri)) + return false; + if (!equals(this.avatar, tmp0_other_with_cast.avatar)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KMixUpListItem_rv16qr_k$(seen1, uid, specialAttention, reddotState, liveInfo, name, face, official, vip, relation, premiereState, uri, avatar, serializationConstructorMarker) { + Companion_instance_800; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_787().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.uid = new Long(0, 0); + else + $this.uid = uid; + if (0 === (seen1 & 2)) + $this.specialAttention = 0; + else + $this.specialAttention = specialAttention; + if (0 === (seen1 & 4)) + $this.reddotState = 0; + else + $this.reddotState = reddotState; + if (0 === (seen1 & 8)) + $this.liveInfo = null; + else + $this.liveInfo = liveInfo; + if (0 === (seen1 & 16)) + $this.name = ''; + else + $this.name = name; + if (0 === (seen1 & 32)) + $this.face = ''; + else + $this.face = face; + if (0 === (seen1 & 64)) + $this.official = null; + else + $this.official = official; + if (0 === (seen1 & 128)) + $this.vip = null; + else + $this.vip = vip; + if (0 === (seen1 & 256)) + $this.relation = null; + else + $this.relation = relation; + if (0 === (seen1 & 512)) + $this.premiereState = 0; + else + $this.premiereState = premiereState; + if (0 === (seen1 & 1024)) + $this.uri = ''; + else + $this.uri = uri; + if (0 === (seen1 & 2048)) + $this.avatar = null; + else + $this.avatar = avatar; + return $this; + } + } + class Companion_801 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.DynMixUpListViewMoreReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_788(); + } + } + class $serializer_788 { + constructor() { + $serializer_instance_788 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KDynMixUpListViewMoreReq', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('sortType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KDynMixUpListViewMoreReq.new_com_bapis_bilibili_app_dynamic_v2_KDynMixUpListViewMoreReq_z7tqb4_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_mhtsuk_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.sortType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.sortType); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_mhtsuk_k$(encoder, value instanceof KDynMixUpListViewMoreReq ? value : THROW_CCE()); + } + } + class KDynMixUpListViewMoreReq { + constructor(sortType) { + Companion_instance_801; + sortType = sortType === VOID ? 0 : sortType; + this.sortType = sortType; + } + get_sortType_4bib0f_k$() { + return this.sortType; + } + component1_7eebsc_k$() { + return this.sortType; + } + copy_ns6qmb_k$(sortType) { + return new KDynMixUpListViewMoreReq(sortType); + } + copy(sortType, $super) { + sortType = sortType === VOID ? this.sortType : sortType; + return this.copy_ns6qmb_k$(sortType); + } + toString() { + return 'KDynMixUpListViewMoreReq(sortType=' + this.sortType + ')'; + } + hashCode() { + return this.sortType; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KDynMixUpListViewMoreReq)) + return false; + var tmp0_other_with_cast = other instanceof KDynMixUpListViewMoreReq ? other : THROW_CCE(); + if (!(this.sortType === tmp0_other_with_cast.sortType)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KDynMixUpListViewMoreReq_z7tqb4_k$(seen1, sortType, serializationConstructorMarker) { + Companion_instance_801; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_788().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.sortType = 0; + else + $this.sortType = sortType; + return $this; + } + } + class Companion_802 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.SortType'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_789(); + } + } + class $serializer_789 { + constructor() { + $serializer_instance_789 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KSortType', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('sortType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('sortTypeName', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSortType.new_com_bapis_bilibili_app_dynamic_v2_KSortType_76a0pb_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_sc7qdq_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.sortType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.sortType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.sortTypeName === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.sortTypeName); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_sc7qdq_k$(encoder, value instanceof KSortType ? value : THROW_CCE()); + } + } + class KSortType { + constructor(sortType, sortTypeName) { + Companion_instance_802; + sortType = sortType === VOID ? 0 : sortType; + sortTypeName = sortTypeName === VOID ? '' : sortTypeName; + this.sortType = sortType; + this.sortTypeName = sortTypeName; + } + get_sortType_4bib0f_k$() { + return this.sortType; + } + get_sortTypeName_6rwd1w_k$() { + return this.sortTypeName; + } + component1_7eebsc_k$() { + return this.sortType; + } + component2_7eebsb_k$() { + return this.sortTypeName; + } + copy_xhhsuv_k$(sortType, sortTypeName) { + return new KSortType(sortType, sortTypeName); + } + copy(sortType, sortTypeName, $super) { + sortType = sortType === VOID ? this.sortType : sortType; + sortTypeName = sortTypeName === VOID ? this.sortTypeName : sortTypeName; + return this.copy_xhhsuv_k$(sortType, sortTypeName); + } + toString() { + return 'KSortType(sortType=' + this.sortType + ', sortTypeName=' + this.sortTypeName + ')'; + } + hashCode() { + var result = this.sortType; + result = imul(result, 31) + getStringHashCode(this.sortTypeName) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSortType)) + return false; + var tmp0_other_with_cast = other instanceof KSortType ? other : THROW_CCE(); + if (!(this.sortType === tmp0_other_with_cast.sortType)) + return false; + if (!(this.sortTypeName === tmp0_other_with_cast.sortTypeName)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KSortType_76a0pb_k$(seen1, sortType, sortTypeName, serializationConstructorMarker) { + Companion_instance_802; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_789().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.sortType = 0; + else + $this.sortType = sortType; + if (0 === (seen1 & 2)) + $this.sortTypeName = ''; + else + $this.sortTypeName = sortTypeName; + return $this; + } + } + class Companion_803 { + constructor() { + Companion_instance_803 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer($serializer_getInstance_787()), null, new ArrayListSerializer($serializer_getInstance_789()), null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.DynMixUpListViewMoreReply'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_790(); + } + } + class $serializer_790 { + constructor() { + $serializer_instance_790 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KDynMixUpListViewMoreReply', this, 5); + tmp0_serialDesc.addElement_5pzumi_k$('items', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('searchDefaultText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('sortTypes', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('showMoreSortTypes', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('defaultSortType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_803().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0], StringSerializer_getInstance(), tmp0_cached[2], BooleanSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = false; + var tmp8_local4 = 0; + var tmp9_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp10_cached = Companion_getInstance_803().$childSerializers_1; + if (tmp9_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp9_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp10_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp9_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp10_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp9_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + } else + while (tmp1_flag) { + tmp2_index = tmp9_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp9_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp10_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp9_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp10_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp9_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp9_input.endStructure_1xqz0n_k$(tmp0_desc); + return KDynMixUpListViewMoreReply.new_com_bapis_bilibili_app_dynamic_v2_KDynMixUpListViewMoreReply_rdohno_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); + } + serialize_h75vl4_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_803().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.items, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.items); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.searchDefaultText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.searchDefaultText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !equals(value.sortTypes, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 2, tmp2_cached[2], value.sortTypes); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.showMoreSortTypes === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 3, value.showMoreSortTypes); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.defaultSortType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 4, value.defaultSortType); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_h75vl4_k$(encoder, value instanceof KDynMixUpListViewMoreReply ? value : THROW_CCE()); + } + } + class KDynMixUpListViewMoreReply { + constructor(items, searchDefaultText, sortTypes, showMoreSortTypes, defaultSortType) { + Companion_getInstance_803(); + items = items === VOID ? emptyList() : items; + searchDefaultText = searchDefaultText === VOID ? '' : searchDefaultText; + sortTypes = sortTypes === VOID ? emptyList() : sortTypes; + showMoreSortTypes = showMoreSortTypes === VOID ? false : showMoreSortTypes; + defaultSortType = defaultSortType === VOID ? 0 : defaultSortType; + this.items = items; + this.searchDefaultText = searchDefaultText; + this.sortTypes = sortTypes; + this.showMoreSortTypes = showMoreSortTypes; + this.defaultSortType = defaultSortType; + } + get_items_it823b_k$() { + return this.items; + } + get_searchDefaultText_74oxi5_k$() { + return this.searchDefaultText; + } + get_sortTypes_85gmoi_k$() { + return this.sortTypes; + } + get_showMoreSortTypes_pjq134_k$() { + return this.showMoreSortTypes; + } + get_defaultSortType_t8eeeo_k$() { + return this.defaultSortType; + } + component1_7eebsc_k$() { + return this.items; + } + component2_7eebsb_k$() { + return this.searchDefaultText; + } + component3_7eebsa_k$() { + return this.sortTypes; + } + component4_7eebs9_k$() { + return this.showMoreSortTypes; + } + component5_7eebs8_k$() { + return this.defaultSortType; + } + copy_rakduq_k$(items, searchDefaultText, sortTypes, showMoreSortTypes, defaultSortType) { + return new KDynMixUpListViewMoreReply(items, searchDefaultText, sortTypes, showMoreSortTypes, defaultSortType); + } + copy(items, searchDefaultText, sortTypes, showMoreSortTypes, defaultSortType, $super) { + items = items === VOID ? this.items : items; + searchDefaultText = searchDefaultText === VOID ? this.searchDefaultText : searchDefaultText; + sortTypes = sortTypes === VOID ? this.sortTypes : sortTypes; + showMoreSortTypes = showMoreSortTypes === VOID ? this.showMoreSortTypes : showMoreSortTypes; + defaultSortType = defaultSortType === VOID ? this.defaultSortType : defaultSortType; + return this.copy_rakduq_k$(items, searchDefaultText, sortTypes, showMoreSortTypes, defaultSortType); + } + toString() { + return 'KDynMixUpListViewMoreReply(items=' + this.items + ', searchDefaultText=' + this.searchDefaultText + ', sortTypes=' + this.sortTypes + ', showMoreSortTypes=' + this.showMoreSortTypes + ', defaultSortType=' + this.defaultSortType + ')'; + } + hashCode() { + var result = hashCode(this.items); + result = imul(result, 31) + getStringHashCode(this.searchDefaultText) | 0; + result = imul(result, 31) + hashCode(this.sortTypes) | 0; + result = imul(result, 31) + getBooleanHashCode(this.showMoreSortTypes) | 0; + result = imul(result, 31) + this.defaultSortType | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KDynMixUpListViewMoreReply)) + return false; + var tmp0_other_with_cast = other instanceof KDynMixUpListViewMoreReply ? other : THROW_CCE(); + if (!equals(this.items, tmp0_other_with_cast.items)) + return false; + if (!(this.searchDefaultText === tmp0_other_with_cast.searchDefaultText)) + return false; + if (!equals(this.sortTypes, tmp0_other_with_cast.sortTypes)) + return false; + if (!(this.showMoreSortTypes === tmp0_other_with_cast.showMoreSortTypes)) + return false; + if (!(this.defaultSortType === tmp0_other_with_cast.defaultSortType)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KDynMixUpListViewMoreReply_rdohno_k$(seen1, items, searchDefaultText, sortTypes, showMoreSortTypes, defaultSortType, serializationConstructorMarker) { + Companion_getInstance_803(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_790().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.items = emptyList(); + else + $this.items = items; + if (0 === (seen1 & 2)) + $this.searchDefaultText = ''; + else + $this.searchDefaultText = searchDefaultText; + if (0 === (seen1 & 4)) + $this.sortTypes = emptyList(); + else + $this.sortTypes = sortTypes; + if (0 === (seen1 & 8)) + $this.showMoreSortTypes = false; + else + $this.showMoreSortTypes = showMoreSortTypes; + if (0 === (seen1 & 16)) + $this.defaultSortType = 0; + else + $this.defaultSortType = defaultSortType; + return $this; + } + } + class Companion_804 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.DynMixUpListSearchReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_791(); + } + } + class $serializer_791 { + constructor() { + $serializer_instance_791 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KDynMixUpListSearchReq', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('name', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KDynMixUpListSearchReq.new_com_bapis_bilibili_app_dynamic_v2_KDynMixUpListSearchReq_4ek0qx_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_ye8dxe_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.name === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.name); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_ye8dxe_k$(encoder, value instanceof KDynMixUpListSearchReq ? value : THROW_CCE()); + } + } + class KDynMixUpListSearchReq { + constructor(name) { + Companion_instance_804; + name = name === VOID ? '' : name; + this.name = name; + } + get_name_woqyms_k$() { + return this.name; + } + component1_7eebsc_k$() { + return this.name; + } + copy_a35qlh_k$(name) { + return new KDynMixUpListSearchReq(name); + } + copy(name, $super) { + name = name === VOID ? this.name : name; + return this.copy_a35qlh_k$(name); + } + toString() { + return 'KDynMixUpListSearchReq(name=' + this.name + ')'; + } + hashCode() { + return getStringHashCode(this.name); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KDynMixUpListSearchReq)) + return false; + var tmp0_other_with_cast = other instanceof KDynMixUpListSearchReq ? other : THROW_CCE(); + if (!(this.name === tmp0_other_with_cast.name)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KDynMixUpListSearchReq_4ek0qx_k$(seen1, name, serializationConstructorMarker) { + Companion_instance_804; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_791().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.name = ''; + else + $this.name = name; + return $this; + } + } + class Companion_805 { + constructor() { + Companion_instance_805 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer($serializer_getInstance_787())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.DynMixUpListSearchReply'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_792(); + } + } + class $serializer_792 { + constructor() { + $serializer_instance_792 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KDynMixUpListSearchReply', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('items', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_805().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp6_cached = Companion_getInstance_805().$childSerializers_1; + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KDynMixUpListSearchReply.new_com_bapis_bilibili_app_dynamic_v2_KDynMixUpListSearchReply_oggl60_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_4r5hfu_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_805().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.items, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.items); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_4r5hfu_k$(encoder, value instanceof KDynMixUpListSearchReply ? value : THROW_CCE()); + } + } + class KDynMixUpListSearchReply { + constructor(items) { + Companion_getInstance_805(); + items = items === VOID ? emptyList() : items; + this.items = items; + } + get_items_it823b_k$() { + return this.items; + } + component1_7eebsc_k$() { + return this.items; + } + copy_k7wwg2_k$(items) { + return new KDynMixUpListSearchReply(items); + } + copy(items, $super) { + items = items === VOID ? this.items : items; + return this.copy_k7wwg2_k$(items); + } + toString() { + return 'KDynMixUpListSearchReply(items=' + this.items + ')'; + } + hashCode() { + return hashCode(this.items); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KDynMixUpListSearchReply)) + return false; + var tmp0_other_with_cast = other instanceof KDynMixUpListSearchReply ? other : THROW_CCE(); + if (!equals(this.items, tmp0_other_with_cast.items)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KDynMixUpListSearchReply_oggl60_k$(seen1, items, serializationConstructorMarker) { + Companion_getInstance_805(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_792().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.items = emptyList(); + else + $this.items = items; + return $this; + } + } + class Companion_806 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.DynLightReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_793(); + } + } + class $serializer_793 { + constructor() { + $serializer_instance_793 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KDynLightReq', this, 7); + tmp0_serialDesc.addElement_5pzumi_k$('historyOffset', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('page', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('from', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('playerArgs', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('localTime', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('fromType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('fakeUid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_152()), IntSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = 0; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = 0; + var tmp9_local5 = 0; + var tmp10_local6 = new Long(0, 0); + var tmp11_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp11_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_152(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + } else + while (tmp1_flag) { + tmp2_index = tmp11_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_152(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp11_input.endStructure_1xqz0n_k$(tmp0_desc); + return KDynLightReq.new_com_bapis_bilibili_app_dynamic_v2_KDynLightReq_b1981e_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, null); + } + serialize_igi3y3_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.historyOffset === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.historyOffset); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.page === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.page); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.from === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.from); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.playerArgs == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_152(), value.playerArgs); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.localTime === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 4, value.localTime); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.fromType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 5, value.fromType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !value.fakeUid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 6, value.fakeUid); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_igi3y3_k$(encoder, value instanceof KDynLightReq ? value : THROW_CCE()); + } + } + class KDynLightReq { + constructor(historyOffset, page, from, playerArgs, localTime, fromType, fakeUid) { + Companion_instance_806; + historyOffset = historyOffset === VOID ? '' : historyOffset; + page = page === VOID ? 0 : page; + from = from === VOID ? '' : from; + playerArgs = playerArgs === VOID ? null : playerArgs; + localTime = localTime === VOID ? 0 : localTime; + fromType = fromType === VOID ? 0 : fromType; + fakeUid = fakeUid === VOID ? new Long(0, 0) : fakeUid; + this.historyOffset = historyOffset; + this.page = page; + this.from = from; + this.playerArgs = playerArgs; + this.localTime = localTime; + this.fromType = fromType; + this.fakeUid = fakeUid; + } + get_historyOffset_ki5142_k$() { + return this.historyOffset; + } + get_page_wos8go_k$() { + return this.page; + } + get_from_wom7eb_k$() { + return this.from; + } + get_playerArgs_eh86hz_k$() { + return this.playerArgs; + } + get_localTime_bf0zwx_k$() { + return this.localTime; + } + get_fromType_in58el_k$() { + return this.fromType; + } + get_fakeUid_goenn2_k$() { + return this.fakeUid; + } + fromTypeEnum() { + return Companion_getInstance_737().fromValue(this.fromType); + } + component1_7eebsc_k$() { + return this.historyOffset; + } + component2_7eebsb_k$() { + return this.page; + } + component3_7eebsa_k$() { + return this.from; + } + component4_7eebs9_k$() { + return this.playerArgs; + } + component5_7eebs8_k$() { + return this.localTime; + } + component6_7eebs7_k$() { + return this.fromType; + } + component7_7eebs6_k$() { + return this.fakeUid; + } + copy_vvxhu4_k$(historyOffset, page, from, playerArgs, localTime, fromType, fakeUid) { + return new KDynLightReq(historyOffset, page, from, playerArgs, localTime, fromType, fakeUid); + } + copy(historyOffset, page, from, playerArgs, localTime, fromType, fakeUid, $super) { + historyOffset = historyOffset === VOID ? this.historyOffset : historyOffset; + page = page === VOID ? this.page : page; + from = from === VOID ? this.from : from; + playerArgs = playerArgs === VOID ? this.playerArgs : playerArgs; + localTime = localTime === VOID ? this.localTime : localTime; + fromType = fromType === VOID ? this.fromType : fromType; + fakeUid = fakeUid === VOID ? this.fakeUid : fakeUid; + return this.copy_vvxhu4_k$(historyOffset, page, from, playerArgs, localTime, fromType, fakeUid); + } + toString() { + return 'KDynLightReq(historyOffset=' + this.historyOffset + ', page=' + this.page + ', from=' + this.from + ', playerArgs=' + this.playerArgs + ', localTime=' + this.localTime + ', fromType=' + this.fromType + ', fakeUid=' + this.fakeUid.toString() + ')'; + } + hashCode() { + var result = getStringHashCode(this.historyOffset); + result = imul(result, 31) + this.page | 0; + result = imul(result, 31) + getStringHashCode(this.from) | 0; + result = imul(result, 31) + (this.playerArgs == null ? 0 : this.playerArgs.hashCode()) | 0; + result = imul(result, 31) + this.localTime | 0; + result = imul(result, 31) + this.fromType | 0; + result = imul(result, 31) + this.fakeUid.hashCode() | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KDynLightReq)) + return false; + var tmp0_other_with_cast = other instanceof KDynLightReq ? other : THROW_CCE(); + if (!(this.historyOffset === tmp0_other_with_cast.historyOffset)) + return false; + if (!(this.page === tmp0_other_with_cast.page)) + return false; + if (!(this.from === tmp0_other_with_cast.from)) + return false; + if (!equals(this.playerArgs, tmp0_other_with_cast.playerArgs)) + return false; + if (!(this.localTime === tmp0_other_with_cast.localTime)) + return false; + if (!(this.fromType === tmp0_other_with_cast.fromType)) + return false; + if (!this.fakeUid.equals(tmp0_other_with_cast.fakeUid)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KDynLightReq_b1981e_k$(seen1, historyOffset, page, from, playerArgs, localTime, fromType, fakeUid, serializationConstructorMarker) { + Companion_instance_806; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_793().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.historyOffset = ''; + else + $this.historyOffset = historyOffset; + if (0 === (seen1 & 2)) + $this.page = 0; + else + $this.page = page; + if (0 === (seen1 & 4)) + $this.from = ''; + else + $this.from = from; + if (0 === (seen1 & 8)) + $this.playerArgs = null; + else + $this.playerArgs = playerArgs; + if (0 === (seen1 & 16)) + $this.localTime = 0; + else + $this.localTime = localTime; + if (0 === (seen1 & 32)) + $this.fromType = 0; + else + $this.fromType = fromType; + if (0 === (seen1 & 64)) + $this.fakeUid = new Long(0, 0); + else + $this.fakeUid = fakeUid; + return $this; + } + } + class Companion_807 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.DynLightReply'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_794(); + } + } + class $serializer_794 { + constructor() { + $serializer_instance_794 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KDynLightReply', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('dynamicList', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_755())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_755(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_755(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KDynLightReply.new_com_bapis_bilibili_app_dynamic_v2_KDynLightReply_t9x8n6_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_mipxrj_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.dynamicList == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_755(), value.dynamicList); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_mipxrj_k$(encoder, value instanceof KDynLightReply ? value : THROW_CCE()); + } + } + class KDynLightReply { + constructor(dynamicList) { + Companion_instance_807; + dynamicList = dynamicList === VOID ? null : dynamicList; + this.dynamicList = dynamicList; + } + get_dynamicList_9m1udw_k$() { + return this.dynamicList; + } + component1_7eebsc_k$() { + return this.dynamicList; + } + copy_purk34_k$(dynamicList) { + return new KDynLightReply(dynamicList); + } + copy(dynamicList, $super) { + dynamicList = dynamicList === VOID ? this.dynamicList : dynamicList; + return this.copy_purk34_k$(dynamicList); + } + toString() { + return 'KDynLightReply(dynamicList=' + this.dynamicList + ')'; + } + hashCode() { + return this.dynamicList == null ? 0 : this.dynamicList.hashCode(); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KDynLightReply)) + return false; + var tmp0_other_with_cast = other instanceof KDynLightReply ? other : THROW_CCE(); + if (!equals(this.dynamicList, tmp0_other_with_cast.dynamicList)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KDynLightReply_t9x8n6_k$(seen1, dynamicList, serializationConstructorMarker) { + Companion_instance_807; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_794().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.dynamicList = null; + else + $this.dynamicList = dynamicList; + return $this; + } + } + class Companion_808 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.DynDetailReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_795(); + } + } + class $serializer_795 { + constructor() { + $serializer_instance_795 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KDynDetailReq', this, 12); + tmp0_serialDesc.addElement_5pzumi_k$('uid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('dynamicId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('dynType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('rid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('adParam', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('from', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('playerArgs', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('shareId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('shareMode', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('localTime', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('pattern', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('config', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable($serializer_getInstance_748()), StringSerializer_getInstance(), get_nullable($serializer_getInstance_152()), StringSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_750())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_local2 = new Long(0, 0); + var tmp7_local3 = new Long(0, 0); + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_local8 = 0; + var tmp13_local9 = 0; + var tmp14_local10 = null; + var tmp15_local11 = null; + var tmp16_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp16_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp16_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp16_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp16_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp16_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_748(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp16_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_152(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp16_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 11, $serializer_getInstance_750(), tmp15_local11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + } else + while (tmp1_flag) { + tmp2_index = tmp16_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp16_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp16_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp16_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp16_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_748(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp16_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_152(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp16_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 11, $serializer_getInstance_750(), tmp15_local11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp16_input.endStructure_1xqz0n_k$(tmp0_desc); + return KDynDetailReq.new_com_bapis_bilibili_app_dynamic_v2_KDynDetailReq_92mr31_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, null); + } + serialize_y0rl3q_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.uid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.uid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.dynamicId === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.dynamicId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.dynType.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.dynType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !value.rid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 3, value.rid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.adParam == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, $serializer_getInstance_748(), value.adParam); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.from === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.from); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.playerArgs == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 6, $serializer_getInstance_152(), value.playerArgs); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.shareId === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.shareId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.shareMode === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 8, value.shareMode); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.localTime === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 9, value.localTime); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.pattern === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 10, value.pattern); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.config == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 11, $serializer_getInstance_750(), value.config); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_y0rl3q_k$(encoder, value instanceof KDynDetailReq ? value : THROW_CCE()); + } + } + class KDynDetailReq { + constructor(uid, dynamicId, dynType, rid, adParam, from, playerArgs, shareId, shareMode, localTime, pattern, config) { + Companion_instance_808; + uid = uid === VOID ? new Long(0, 0) : uid; + dynamicId = dynamicId === VOID ? '' : dynamicId; + dynType = dynType === VOID ? new Long(0, 0) : dynType; + rid = rid === VOID ? new Long(0, 0) : rid; + adParam = adParam === VOID ? null : adParam; + from = from === VOID ? '' : from; + playerArgs = playerArgs === VOID ? null : playerArgs; + shareId = shareId === VOID ? '' : shareId; + shareMode = shareMode === VOID ? 0 : shareMode; + localTime = localTime === VOID ? 0 : localTime; + pattern = pattern === VOID ? '' : pattern; + config = config === VOID ? null : config; + this.uid = uid; + this.dynamicId = dynamicId; + this.dynType = dynType; + this.rid = rid; + this.adParam = adParam; + this.from = from; + this.playerArgs = playerArgs; + this.shareId = shareId; + this.shareMode = shareMode; + this.localTime = localTime; + this.pattern = pattern; + this.config = config; + } + get_uid_18iuqh_k$() { + return this.uid; + } + get_dynamicId_wvqga7_k$() { + return this.dynamicId; + } + get_dynType_ymr0ra_k$() { + return this.dynType; + } + get_rid_18iwyk_k$() { + return this.rid; + } + get_adParam_i11k8v_k$() { + return this.adParam; + } + get_from_wom7eb_k$() { + return this.from; + } + get_playerArgs_eh86hz_k$() { + return this.playerArgs; + } + get_shareId_z8ky29_k$() { + return this.shareId; + } + get_shareMode_hni1l3_k$() { + return this.shareMode; + } + get_localTime_bf0zwx_k$() { + return this.localTime; + } + get_pattern_btfv4p_k$() { + return this.pattern; + } + get_config_c0698r_k$() { + return this.config; + } + component1_7eebsc_k$() { + return this.uid; + } + component2_7eebsb_k$() { + return this.dynamicId; + } + component3_7eebsa_k$() { + return this.dynType; + } + component4_7eebs9_k$() { + return this.rid; + } + component5_7eebs8_k$() { + return this.adParam; + } + component6_7eebs7_k$() { + return this.from; + } + component7_7eebs6_k$() { + return this.playerArgs; + } + component8_7eebs5_k$() { + return this.shareId; + } + component9_7eebs4_k$() { + return this.shareMode; + } + component10_gazzfo_k$() { + return this.localTime; + } + component11_gazzfn_k$() { + return this.pattern; + } + component12_gazzfm_k$() { + return this.config; + } + copy_claf10_k$(uid, dynamicId, dynType, rid, adParam, from, playerArgs, shareId, shareMode, localTime, pattern, config) { + return new KDynDetailReq(uid, dynamicId, dynType, rid, adParam, from, playerArgs, shareId, shareMode, localTime, pattern, config); + } + copy(uid, dynamicId, dynType, rid, adParam, from, playerArgs, shareId, shareMode, localTime, pattern, config, $super) { + uid = uid === VOID ? this.uid : uid; + dynamicId = dynamicId === VOID ? this.dynamicId : dynamicId; + dynType = dynType === VOID ? this.dynType : dynType; + rid = rid === VOID ? this.rid : rid; + adParam = adParam === VOID ? this.adParam : adParam; + from = from === VOID ? this.from : from; + playerArgs = playerArgs === VOID ? this.playerArgs : playerArgs; + shareId = shareId === VOID ? this.shareId : shareId; + shareMode = shareMode === VOID ? this.shareMode : shareMode; + localTime = localTime === VOID ? this.localTime : localTime; + pattern = pattern === VOID ? this.pattern : pattern; + config = config === VOID ? this.config : config; + return this.copy_claf10_k$(uid, dynamicId, dynType, rid, adParam, from, playerArgs, shareId, shareMode, localTime, pattern, config); + } + toString() { + return 'KDynDetailReq(uid=' + this.uid.toString() + ', dynamicId=' + this.dynamicId + ', dynType=' + this.dynType.toString() + ', rid=' + this.rid.toString() + ', adParam=' + this.adParam + ', from=' + this.from + ', playerArgs=' + this.playerArgs + ', shareId=' + this.shareId + ', shareMode=' + this.shareMode + ', localTime=' + this.localTime + ', pattern=' + this.pattern + ', config=' + this.config + ')'; + } + hashCode() { + var result = this.uid.hashCode(); + result = imul(result, 31) + getStringHashCode(this.dynamicId) | 0; + result = imul(result, 31) + this.dynType.hashCode() | 0; + result = imul(result, 31) + this.rid.hashCode() | 0; + result = imul(result, 31) + (this.adParam == null ? 0 : this.adParam.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.from) | 0; + result = imul(result, 31) + (this.playerArgs == null ? 0 : this.playerArgs.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.shareId) | 0; + result = imul(result, 31) + this.shareMode | 0; + result = imul(result, 31) + this.localTime | 0; + result = imul(result, 31) + getStringHashCode(this.pattern) | 0; + result = imul(result, 31) + (this.config == null ? 0 : this.config.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KDynDetailReq)) + return false; + var tmp0_other_with_cast = other instanceof KDynDetailReq ? other : THROW_CCE(); + if (!this.uid.equals(tmp0_other_with_cast.uid)) + return false; + if (!(this.dynamicId === tmp0_other_with_cast.dynamicId)) + return false; + if (!this.dynType.equals(tmp0_other_with_cast.dynType)) + return false; + if (!this.rid.equals(tmp0_other_with_cast.rid)) + return false; + if (!equals(this.adParam, tmp0_other_with_cast.adParam)) + return false; + if (!(this.from === tmp0_other_with_cast.from)) + return false; + if (!equals(this.playerArgs, tmp0_other_with_cast.playerArgs)) + return false; + if (!(this.shareId === tmp0_other_with_cast.shareId)) + return false; + if (!(this.shareMode === tmp0_other_with_cast.shareMode)) + return false; + if (!(this.localTime === tmp0_other_with_cast.localTime)) + return false; + if (!(this.pattern === tmp0_other_with_cast.pattern)) + return false; + if (!equals(this.config, tmp0_other_with_cast.config)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KDynDetailReq_92mr31_k$(seen1, uid, dynamicId, dynType, rid, adParam, from, playerArgs, shareId, shareMode, localTime, pattern, config, serializationConstructorMarker) { + Companion_instance_808; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_795().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.uid = new Long(0, 0); + else + $this.uid = uid; + if (0 === (seen1 & 2)) + $this.dynamicId = ''; + else + $this.dynamicId = dynamicId; + if (0 === (seen1 & 4)) + $this.dynType = new Long(0, 0); + else + $this.dynType = dynType; + if (0 === (seen1 & 8)) + $this.rid = new Long(0, 0); + else + $this.rid = rid; + if (0 === (seen1 & 16)) + $this.adParam = null; + else + $this.adParam = adParam; + if (0 === (seen1 & 32)) + $this.from = ''; + else + $this.from = from; + if (0 === (seen1 & 64)) + $this.playerArgs = null; + else + $this.playerArgs = playerArgs; + if (0 === (seen1 & 128)) + $this.shareId = ''; + else + $this.shareId = shareId; + if (0 === (seen1 & 256)) + $this.shareMode = 0; + else + $this.shareMode = shareMode; + if (0 === (seen1 & 512)) + $this.localTime = 0; + else + $this.localTime = localTime; + if (0 === (seen1 & 1024)) + $this.pattern = ''; + else + $this.pattern = pattern; + if (0 === (seen1 & 2048)) + $this.config = null; + else + $this.config = config; + return $this; + } + } + class Companion_809 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.DynDetailReply'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_796(); + } + } + class $serializer_796 { + constructor() { + $serializer_instance_796 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KDynDetailReply', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('item', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_942())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_942(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_942(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KDynDetailReply.new_com_bapis_bilibili_app_dynamic_v2_KDynDetailReply_5rmyte_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_932nhy_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.item == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_942(), value.item); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_932nhy_k$(encoder, value instanceof KDynDetailReply ? value : THROW_CCE()); + } + } + class KDynDetailReply { + constructor(item) { + Companion_instance_809; + item = item === VOID ? null : item; + this.item = item; + } + get_item_woo5lo_k$() { + return this.item; + } + component1_7eebsc_k$() { + return this.item; + } + copy_kr9r4r_k$(item) { + return new KDynDetailReply(item); + } + copy(item, $super) { + item = item === VOID ? this.item : item; + return this.copy_kr9r4r_k$(item); + } + toString() { + return 'KDynDetailReply(item=' + this.item + ')'; + } + hashCode() { + return this.item == null ? 0 : this.item.hashCode(); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KDynDetailReply)) + return false; + var tmp0_other_with_cast = other instanceof KDynDetailReply ? other : THROW_CCE(); + if (!equals(this.item, tmp0_other_with_cast.item)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KDynDetailReply_5rmyte_k$(seen1, item, serializationConstructorMarker) { + Companion_instance_809; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_796().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.item = null; + else + $this.item = item; + return $this; + } + } + class Companion_810 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.LikeListReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_797(); + } + } + class $serializer_797 { + constructor() { + $serializer_instance_797 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KLikeListReq', this, 5); + tmp0_serialDesc.addElement_5pzumi_k$('dynamicId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('dynType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('rid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('uidOffset', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('page', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = new Long(0, 0); + var tmp6_local2 = new Long(0, 0); + var tmp7_local3 = new Long(0, 0); + var tmp8_local4 = 0; + var tmp9_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp9_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + } else + while (tmp1_flag) { + tmp2_index = tmp9_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp9_input.endStructure_1xqz0n_k$(tmp0_desc); + return KLikeListReq.new_com_bapis_bilibili_app_dynamic_v2_KLikeListReq_6d43pe_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); + } + serialize_nszq31_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.dynamicId === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.dynamicId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.dynType.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.dynType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.rid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.rid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !value.uidOffset.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 3, value.uidOffset); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.page === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 4, value.page); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_nszq31_k$(encoder, value instanceof KLikeListReq ? value : THROW_CCE()); + } + } + class KLikeListReq { + constructor(dynamicId, dynType, rid, uidOffset, page) { + Companion_instance_810; + dynamicId = dynamicId === VOID ? '' : dynamicId; + dynType = dynType === VOID ? new Long(0, 0) : dynType; + rid = rid === VOID ? new Long(0, 0) : rid; + uidOffset = uidOffset === VOID ? new Long(0, 0) : uidOffset; + page = page === VOID ? 0 : page; + this.dynamicId = dynamicId; + this.dynType = dynType; + this.rid = rid; + this.uidOffset = uidOffset; + this.page = page; + } + get_dynamicId_wvqga7_k$() { + return this.dynamicId; + } + get_dynType_ymr0ra_k$() { + return this.dynType; + } + get_rid_18iwyk_k$() { + return this.rid; + } + get_uidOffset_l4hoyu_k$() { + return this.uidOffset; + } + get_page_wos8go_k$() { + return this.page; + } + component1_7eebsc_k$() { + return this.dynamicId; + } + component2_7eebsb_k$() { + return this.dynType; + } + component3_7eebsa_k$() { + return this.rid; + } + component4_7eebs9_k$() { + return this.uidOffset; + } + component5_7eebs8_k$() { + return this.page; + } + copy_7k1rvd_k$(dynamicId, dynType, rid, uidOffset, page) { + return new KLikeListReq(dynamicId, dynType, rid, uidOffset, page); + } + copy(dynamicId, dynType, rid, uidOffset, page, $super) { + dynamicId = dynamicId === VOID ? this.dynamicId : dynamicId; + dynType = dynType === VOID ? this.dynType : dynType; + rid = rid === VOID ? this.rid : rid; + uidOffset = uidOffset === VOID ? this.uidOffset : uidOffset; + page = page === VOID ? this.page : page; + return this.copy_7k1rvd_k$(dynamicId, dynType, rid, uidOffset, page); + } + toString() { + return 'KLikeListReq(dynamicId=' + this.dynamicId + ', dynType=' + this.dynType.toString() + ', rid=' + this.rid.toString() + ', uidOffset=' + this.uidOffset.toString() + ', page=' + this.page + ')'; + } + hashCode() { + var result = getStringHashCode(this.dynamicId); + result = imul(result, 31) + this.dynType.hashCode() | 0; + result = imul(result, 31) + this.rid.hashCode() | 0; + result = imul(result, 31) + this.uidOffset.hashCode() | 0; + result = imul(result, 31) + this.page | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KLikeListReq)) + return false; + var tmp0_other_with_cast = other instanceof KLikeListReq ? other : THROW_CCE(); + if (!(this.dynamicId === tmp0_other_with_cast.dynamicId)) + return false; + if (!this.dynType.equals(tmp0_other_with_cast.dynType)) + return false; + if (!this.rid.equals(tmp0_other_with_cast.rid)) + return false; + if (!this.uidOffset.equals(tmp0_other_with_cast.uidOffset)) + return false; + if (!(this.page === tmp0_other_with_cast.page)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KLikeListReq_6d43pe_k$(seen1, dynamicId, dynType, rid, uidOffset, page, serializationConstructorMarker) { + Companion_instance_810; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_797().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.dynamicId = ''; + else + $this.dynamicId = dynamicId; + if (0 === (seen1 & 2)) + $this.dynType = new Long(0, 0); + else + $this.dynType = dynType; + if (0 === (seen1 & 4)) + $this.rid = new Long(0, 0); + else + $this.rid = rid; + if (0 === (seen1 & 8)) + $this.uidOffset = new Long(0, 0); + else + $this.uidOffset = uidOffset; + if (0 === (seen1 & 16)) + $this.page = 0; + else + $this.page = page; + return $this; + } + } + class Companion_811 { + constructor() { + Companion_instance_811 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer($serializer_getInstance_953()), null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.LikeListReply'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_798(); + } + } + class $serializer_798 { + constructor() { + $serializer_instance_798 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KLikeListReply', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('list', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('hasMore', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('totalCount', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_811().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0], BooleanSerializer_getInstance(), LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = false; + var tmp6_local2 = new Long(0, 0); + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp8_cached = Companion_getInstance_811().$childSerializers_1; + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp8_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp8_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KLikeListReply.new_com_bapis_bilibili_app_dynamic_v2_KLikeListReply_3n8dct_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_yb1dzt_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_811().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.list, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.list); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.hasMore === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 1, value.hasMore); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.totalCount.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.totalCount); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_yb1dzt_k$(encoder, value instanceof KLikeListReply ? value : THROW_CCE()); + } + } + class KLikeListReply { + constructor(list, hasMore, totalCount) { + Companion_getInstance_811(); + list = list === VOID ? emptyList() : list; + hasMore = hasMore === VOID ? false : hasMore; + totalCount = totalCount === VOID ? new Long(0, 0) : totalCount; + this.list = list; + this.hasMore = hasMore; + this.totalCount = totalCount; + } + get_list_wopuqv_k$() { + return this.list; + } + get_hasMore_csdhd2_k$() { + return this.hasMore; + } + get_totalCount_w9p7ik_k$() { + return this.totalCount; + } + component1_7eebsc_k$() { + return this.list; + } + component2_7eebsb_k$() { + return this.hasMore; + } + component3_7eebsa_k$() { + return this.totalCount; + } + copy_6d3w10_k$(list, hasMore, totalCount) { + return new KLikeListReply(list, hasMore, totalCount); + } + copy(list, hasMore, totalCount, $super) { + list = list === VOID ? this.list : list; + hasMore = hasMore === VOID ? this.hasMore : hasMore; + totalCount = totalCount === VOID ? this.totalCount : totalCount; + return this.copy_6d3w10_k$(list, hasMore, totalCount); + } + toString() { + return 'KLikeListReply(list=' + this.list + ', hasMore=' + this.hasMore + ', totalCount=' + this.totalCount.toString() + ')'; + } + hashCode() { + var result = hashCode(this.list); + result = imul(result, 31) + getBooleanHashCode(this.hasMore) | 0; + result = imul(result, 31) + this.totalCount.hashCode() | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KLikeListReply)) + return false; + var tmp0_other_with_cast = other instanceof KLikeListReply ? other : THROW_CCE(); + if (!equals(this.list, tmp0_other_with_cast.list)) + return false; + if (!(this.hasMore === tmp0_other_with_cast.hasMore)) + return false; + if (!this.totalCount.equals(tmp0_other_with_cast.totalCount)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KLikeListReply_3n8dct_k$(seen1, list, hasMore, totalCount, serializationConstructorMarker) { + Companion_getInstance_811(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_798().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.list = emptyList(); + else + $this.list = list; + if (0 === (seen1 & 2)) + $this.hasMore = false; + else + $this.hasMore = hasMore; + if (0 === (seen1 & 4)) + $this.totalCount = new Long(0, 0); + else + $this.totalCount = totalCount; + return $this; + } + } + class Companion_812 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.RepostListReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_799(); + } + } + class $serializer_799 { + constructor() { + $serializer_instance_799 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KRepostListReq', this, 6); + tmp0_serialDesc.addElement_5pzumi_k$('dynamicId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('dynType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('rid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('offset', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('from', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('repostType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = new Long(0, 0); + var tmp6_local2 = new Long(0, 0); + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = 0; + var tmp10_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp10_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + } else + while (tmp1_flag) { + tmp2_index = tmp10_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp10_input.endStructure_1xqz0n_k$(tmp0_desc); + return KRepostListReq.new_com_bapis_bilibili_app_dynamic_v2_KRepostListReq_jhn5gy_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); + } + serialize_wh4f2p_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.dynamicId === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.dynamicId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.dynType.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.dynType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.rid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.rid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.offset === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.offset); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.from === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.from); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.repostType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 5, value.repostType); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_wh4f2p_k$(encoder, value instanceof KRepostListReq ? value : THROW_CCE()); + } + } + class KRepostListReq { + constructor(dynamicId, dynType, rid, offset, from, repostType) { + Companion_instance_812; + dynamicId = dynamicId === VOID ? '' : dynamicId; + dynType = dynType === VOID ? new Long(0, 0) : dynType; + rid = rid === VOID ? new Long(0, 0) : rid; + offset = offset === VOID ? '' : offset; + from = from === VOID ? '' : from; + repostType = repostType === VOID ? 0 : repostType; + this.dynamicId = dynamicId; + this.dynType = dynType; + this.rid = rid; + this.offset = offset; + this.from = from; + this.repostType = repostType; + } + get_dynamicId_wvqga7_k$() { + return this.dynamicId; + } + get_dynType_ymr0ra_k$() { + return this.dynType; + } + get_rid_18iwyk_k$() { + return this.rid; + } + get_offset_hjmqak_k$() { + return this.offset; + } + get_from_wom7eb_k$() { + return this.from; + } + get_repostType_c8ov5i_k$() { + return this.repostType; + } + repostTypeEnum() { + return Companion_getInstance_738().fromValue(this.repostType); + } + component1_7eebsc_k$() { + return this.dynamicId; + } + component2_7eebsb_k$() { + return this.dynType; + } + component3_7eebsa_k$() { + return this.rid; + } + component4_7eebs9_k$() { + return this.offset; + } + component5_7eebs8_k$() { + return this.from; + } + component6_7eebs7_k$() { + return this.repostType; + } + copy_m81vop_k$(dynamicId, dynType, rid, offset, from, repostType) { + return new KRepostListReq(dynamicId, dynType, rid, offset, from, repostType); + } + copy(dynamicId, dynType, rid, offset, from, repostType, $super) { + dynamicId = dynamicId === VOID ? this.dynamicId : dynamicId; + dynType = dynType === VOID ? this.dynType : dynType; + rid = rid === VOID ? this.rid : rid; + offset = offset === VOID ? this.offset : offset; + from = from === VOID ? this.from : from; + repostType = repostType === VOID ? this.repostType : repostType; + return this.copy_m81vop_k$(dynamicId, dynType, rid, offset, from, repostType); + } + toString() { + return 'KRepostListReq(dynamicId=' + this.dynamicId + ', dynType=' + this.dynType.toString() + ', rid=' + this.rid.toString() + ', offset=' + this.offset + ', from=' + this.from + ', repostType=' + this.repostType + ')'; + } + hashCode() { + var result = getStringHashCode(this.dynamicId); + result = imul(result, 31) + this.dynType.hashCode() | 0; + result = imul(result, 31) + this.rid.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.offset) | 0; + result = imul(result, 31) + getStringHashCode(this.from) | 0; + result = imul(result, 31) + this.repostType | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KRepostListReq)) + return false; + var tmp0_other_with_cast = other instanceof KRepostListReq ? other : THROW_CCE(); + if (!(this.dynamicId === tmp0_other_with_cast.dynamicId)) + return false; + if (!this.dynType.equals(tmp0_other_with_cast.dynType)) + return false; + if (!this.rid.equals(tmp0_other_with_cast.rid)) + return false; + if (!(this.offset === tmp0_other_with_cast.offset)) + return false; + if (!(this.from === tmp0_other_with_cast.from)) + return false; + if (!(this.repostType === tmp0_other_with_cast.repostType)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KRepostListReq_jhn5gy_k$(seen1, dynamicId, dynType, rid, offset, from, repostType, serializationConstructorMarker) { + Companion_instance_812; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_799().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.dynamicId = ''; + else + $this.dynamicId = dynamicId; + if (0 === (seen1 & 2)) + $this.dynType = new Long(0, 0); + else + $this.dynType = dynType; + if (0 === (seen1 & 4)) + $this.rid = new Long(0, 0); + else + $this.rid = rid; + if (0 === (seen1 & 8)) + $this.offset = ''; + else + $this.offset = offset; + if (0 === (seen1 & 16)) + $this.from = ''; + else + $this.from = from; + if (0 === (seen1 & 32)) + $this.repostType = 0; + else + $this.repostType = repostType; + return $this; + } + } + class Companion_813 { + constructor() { + Companion_instance_813 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer($serializer_getInstance_942()), null, null, null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.RepostListRsp'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_800(); + } + } + class $serializer_800 { + constructor() { + $serializer_instance_800 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KRepostListRsp', this, 5); + tmp0_serialDesc.addElement_5pzumi_k$('list', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('offset', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('hasMore', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('totalCount', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('repostType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_813().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0], StringSerializer_getInstance(), BooleanSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = false; + var tmp7_local3 = new Long(0, 0); + var tmp8_local4 = 0; + var tmp9_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp10_cached = Companion_getInstance_813().$childSerializers_1; + if (tmp9_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp9_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp10_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp9_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + } else + while (tmp1_flag) { + tmp2_index = tmp9_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp9_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp10_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp9_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp9_input.endStructure_1xqz0n_k$(tmp0_desc); + return KRepostListRsp.new_com_bapis_bilibili_app_dynamic_v2_KRepostListRsp_yxzuk8_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); + } + serialize_9uilcy_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_813().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.list, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.list); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.offset === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.offset); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.hasMore === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 2, value.hasMore); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !value.totalCount.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 3, value.totalCount); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.repostType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 4, value.repostType); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_9uilcy_k$(encoder, value instanceof KRepostListRsp ? value : THROW_CCE()); + } + } + class KRepostListRsp { + constructor(list, offset, hasMore, totalCount, repostType) { + Companion_getInstance_813(); + list = list === VOID ? emptyList() : list; + offset = offset === VOID ? '' : offset; + hasMore = hasMore === VOID ? false : hasMore; + totalCount = totalCount === VOID ? new Long(0, 0) : totalCount; + repostType = repostType === VOID ? 0 : repostType; + this.list = list; + this.offset = offset; + this.hasMore = hasMore; + this.totalCount = totalCount; + this.repostType = repostType; + } + get_list_wopuqv_k$() { + return this.list; + } + get_offset_hjmqak_k$() { + return this.offset; + } + get_hasMore_csdhd2_k$() { + return this.hasMore; + } + get_totalCount_w9p7ik_k$() { + return this.totalCount; + } + get_repostType_c8ov5i_k$() { + return this.repostType; + } + repostTypeEnum() { + return Companion_getInstance_738().fromValue(this.repostType); + } + component1_7eebsc_k$() { + return this.list; + } + component2_7eebsb_k$() { + return this.offset; + } + component3_7eebsa_k$() { + return this.hasMore; + } + component4_7eebs9_k$() { + return this.totalCount; + } + component5_7eebs8_k$() { + return this.repostType; + } + copy_h0rt7n_k$(list, offset, hasMore, totalCount, repostType) { + return new KRepostListRsp(list, offset, hasMore, totalCount, repostType); + } + copy(list, offset, hasMore, totalCount, repostType, $super) { + list = list === VOID ? this.list : list; + offset = offset === VOID ? this.offset : offset; + hasMore = hasMore === VOID ? this.hasMore : hasMore; + totalCount = totalCount === VOID ? this.totalCount : totalCount; + repostType = repostType === VOID ? this.repostType : repostType; + return this.copy_h0rt7n_k$(list, offset, hasMore, totalCount, repostType); + } + toString() { + return 'KRepostListRsp(list=' + this.list + ', offset=' + this.offset + ', hasMore=' + this.hasMore + ', totalCount=' + this.totalCount.toString() + ', repostType=' + this.repostType + ')'; + } + hashCode() { + var result = hashCode(this.list); + result = imul(result, 31) + getStringHashCode(this.offset) | 0; + result = imul(result, 31) + getBooleanHashCode(this.hasMore) | 0; + result = imul(result, 31) + this.totalCount.hashCode() | 0; + result = imul(result, 31) + this.repostType | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KRepostListRsp)) + return false; + var tmp0_other_with_cast = other instanceof KRepostListRsp ? other : THROW_CCE(); + if (!equals(this.list, tmp0_other_with_cast.list)) + return false; + if (!(this.offset === tmp0_other_with_cast.offset)) + return false; + if (!(this.hasMore === tmp0_other_with_cast.hasMore)) + return false; + if (!this.totalCount.equals(tmp0_other_with_cast.totalCount)) + return false; + if (!(this.repostType === tmp0_other_with_cast.repostType)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KRepostListRsp_yxzuk8_k$(seen1, list, offset, hasMore, totalCount, repostType, serializationConstructorMarker) { + Companion_getInstance_813(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_800().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.list = emptyList(); + else + $this.list = list; + if (0 === (seen1 & 2)) + $this.offset = ''; + else + $this.offset = offset; + if (0 === (seen1 & 4)) + $this.hasMore = false; + else + $this.hasMore = hasMore; + if (0 === (seen1 & 8)) + $this.totalCount = new Long(0, 0); + else + $this.totalCount = totalCount; + if (0 === (seen1 & 16)) + $this.repostType = 0; + else + $this.repostType = repostType; + return $this; + } + } + class Companion_814 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.DynSpaceReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_801(); + } + } + class $serializer_801 { + constructor() { + $serializer_instance_801 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KDynSpaceReq', this, 6); + tmp0_serialDesc.addElement_5pzumi_k$('hostUid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('historyOffset', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('playerArgs', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('localTime', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('page', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('from', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_152()), IntSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = 0; + var tmp8_local4 = new Long(0, 0); + var tmp9_local5 = null; + var tmp10_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp10_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_152(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + } else + while (tmp1_flag) { + tmp2_index = tmp10_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_152(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp10_input.endStructure_1xqz0n_k$(tmp0_desc); + return KDynSpaceReq.new_com_bapis_bilibili_app_dynamic_v2_KDynSpaceReq_cy3h08_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); + } + serialize_6gwuqd_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.hostUid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.hostUid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.historyOffset === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.historyOffset); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.playerArgs == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_152(), value.playerArgs); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.localTime === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 3, value.localTime); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !value.page.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 4, value.page); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.from === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.from); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_6gwuqd_k$(encoder, value instanceof KDynSpaceReq ? value : THROW_CCE()); + } + } + class KDynSpaceReq { + constructor(hostUid, historyOffset, playerArgs, localTime, page, from) { + Companion_instance_814; + hostUid = hostUid === VOID ? new Long(0, 0) : hostUid; + historyOffset = historyOffset === VOID ? '' : historyOffset; + playerArgs = playerArgs === VOID ? null : playerArgs; + localTime = localTime === VOID ? 0 : localTime; + page = page === VOID ? new Long(0, 0) : page; + from = from === VOID ? '' : from; + this.hostUid = hostUid; + this.historyOffset = historyOffset; + this.playerArgs = playerArgs; + this.localTime = localTime; + this.page = page; + this.from = from; + } + get_hostUid_jfojvj_k$() { + return this.hostUid; + } + get_historyOffset_ki5142_k$() { + return this.historyOffset; + } + get_playerArgs_eh86hz_k$() { + return this.playerArgs; + } + get_localTime_bf0zwx_k$() { + return this.localTime; + } + get_page_wos8go_k$() { + return this.page; + } + get_from_wom7eb_k$() { + return this.from; + } + component1_7eebsc_k$() { + return this.hostUid; + } + component2_7eebsb_k$() { + return this.historyOffset; + } + component3_7eebsa_k$() { + return this.playerArgs; + } + component4_7eebs9_k$() { + return this.localTime; + } + component5_7eebs8_k$() { + return this.page; + } + component6_7eebs7_k$() { + return this.from; + } + copy_cvfr9u_k$(hostUid, historyOffset, playerArgs, localTime, page, from) { + return new KDynSpaceReq(hostUid, historyOffset, playerArgs, localTime, page, from); + } + copy(hostUid, historyOffset, playerArgs, localTime, page, from, $super) { + hostUid = hostUid === VOID ? this.hostUid : hostUid; + historyOffset = historyOffset === VOID ? this.historyOffset : historyOffset; + playerArgs = playerArgs === VOID ? this.playerArgs : playerArgs; + localTime = localTime === VOID ? this.localTime : localTime; + page = page === VOID ? this.page : page; + from = from === VOID ? this.from : from; + return this.copy_cvfr9u_k$(hostUid, historyOffset, playerArgs, localTime, page, from); + } + toString() { + return 'KDynSpaceReq(hostUid=' + this.hostUid.toString() + ', historyOffset=' + this.historyOffset + ', playerArgs=' + this.playerArgs + ', localTime=' + this.localTime + ', page=' + this.page.toString() + ', from=' + this.from + ')'; + } + hashCode() { + var result = this.hostUid.hashCode(); + result = imul(result, 31) + getStringHashCode(this.historyOffset) | 0; + result = imul(result, 31) + (this.playerArgs == null ? 0 : this.playerArgs.hashCode()) | 0; + result = imul(result, 31) + this.localTime | 0; + result = imul(result, 31) + this.page.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.from) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KDynSpaceReq)) + return false; + var tmp0_other_with_cast = other instanceof KDynSpaceReq ? other : THROW_CCE(); + if (!this.hostUid.equals(tmp0_other_with_cast.hostUid)) + return false; + if (!(this.historyOffset === tmp0_other_with_cast.historyOffset)) + return false; + if (!equals(this.playerArgs, tmp0_other_with_cast.playerArgs)) + return false; + if (!(this.localTime === tmp0_other_with_cast.localTime)) + return false; + if (!this.page.equals(tmp0_other_with_cast.page)) + return false; + if (!(this.from === tmp0_other_with_cast.from)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KDynSpaceReq_cy3h08_k$(seen1, hostUid, historyOffset, playerArgs, localTime, page, from, serializationConstructorMarker) { + Companion_instance_814; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_801().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.hostUid = new Long(0, 0); + else + $this.hostUid = hostUid; + if (0 === (seen1 & 2)) + $this.historyOffset = ''; + else + $this.historyOffset = historyOffset; + if (0 === (seen1 & 4)) + $this.playerArgs = null; + else + $this.playerArgs = playerArgs; + if (0 === (seen1 & 8)) + $this.localTime = 0; + else + $this.localTime = localTime; + if (0 === (seen1 & 16)) + $this.page = new Long(0, 0); + else + $this.page = page; + if (0 === (seen1 & 32)) + $this.from = ''; + else + $this.from = from; + return $this; + } + } + class Companion_815 { + constructor() { + Companion_instance_815 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer($serializer_getInstance_942()), null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.DynSpaceRsp'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_802(); + } + } + class $serializer_802 { + constructor() { + $serializer_instance_802 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KDynSpaceRsp', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('list', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('historyOffset', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('hasMore', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_815().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0], StringSerializer_getInstance(), BooleanSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = false; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp8_cached = Companion_getInstance_815().$childSerializers_1; + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp8_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp8_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KDynSpaceRsp.new_com_bapis_bilibili_app_dynamic_v2_KDynSpaceRsp_v8dfgy_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_g5oyze_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_815().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.list, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.list); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.historyOffset === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.historyOffset); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.hasMore === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 2, value.hasMore); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_g5oyze_k$(encoder, value instanceof KDynSpaceRsp ? value : THROW_CCE()); + } + } + class KDynSpaceRsp { + constructor(list, historyOffset, hasMore) { + Companion_getInstance_815(); + list = list === VOID ? emptyList() : list; + historyOffset = historyOffset === VOID ? '' : historyOffset; + hasMore = hasMore === VOID ? false : hasMore; + this.list = list; + this.historyOffset = historyOffset; + this.hasMore = hasMore; + } + get_list_wopuqv_k$() { + return this.list; + } + get_historyOffset_ki5142_k$() { + return this.historyOffset; + } + get_hasMore_csdhd2_k$() { + return this.hasMore; + } + component1_7eebsc_k$() { + return this.list; + } + component2_7eebsb_k$() { + return this.historyOffset; + } + component3_7eebsa_k$() { + return this.hasMore; + } + copy_t7fuxj_k$(list, historyOffset, hasMore) { + return new KDynSpaceRsp(list, historyOffset, hasMore); + } + copy(list, historyOffset, hasMore, $super) { + list = list === VOID ? this.list : list; + historyOffset = historyOffset === VOID ? this.historyOffset : historyOffset; + hasMore = hasMore === VOID ? this.hasMore : hasMore; + return this.copy_t7fuxj_k$(list, historyOffset, hasMore); + } + toString() { + return 'KDynSpaceRsp(list=' + this.list + ', historyOffset=' + this.historyOffset + ', hasMore=' + this.hasMore + ')'; + } + hashCode() { + var result = hashCode(this.list); + result = imul(result, 31) + getStringHashCode(this.historyOffset) | 0; + result = imul(result, 31) + getBooleanHashCode(this.hasMore) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KDynSpaceRsp)) + return false; + var tmp0_other_with_cast = other instanceof KDynSpaceRsp ? other : THROW_CCE(); + if (!equals(this.list, tmp0_other_with_cast.list)) + return false; + if (!(this.historyOffset === tmp0_other_with_cast.historyOffset)) + return false; + if (!(this.hasMore === tmp0_other_with_cast.hasMore)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KDynSpaceRsp_v8dfgy_k$(seen1, list, historyOffset, hasMore, serializationConstructorMarker) { + Companion_getInstance_815(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_802().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.list = emptyList(); + else + $this.list = list; + if (0 === (seen1 & 2)) + $this.historyOffset = ''; + else + $this.historyOffset = historyOffset; + if (0 === (seen1 & 4)) + $this.hasMore = false; + else + $this.hasMore = hasMore; + return $this; + } + } + class Companion_816 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.DynRcmdReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_803(); + } + } + class $serializer_803 { + constructor() { + $serializer_instance_803 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KDynRcmdReq', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('playerArgs', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('localTime', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('fakeUid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('isRefresh', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_152()), IntSerializer_getInstance(), LongSerializer_getInstance(), BooleanSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = 0; + var tmp6_local2 = new Long(0, 0); + var tmp7_local3 = false; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_152(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_152(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KDynRcmdReq.new_com_bapis_bilibili_app_dynamic_v2_KDynRcmdReq_c1k4tl_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_afnhql_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.playerArgs == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_152(), value.playerArgs); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.localTime === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.localTime); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.fakeUid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.fakeUid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.isRefresh === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 3, value.isRefresh); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_afnhql_k$(encoder, value instanceof KDynRcmdReq ? value : THROW_CCE()); + } + } + class KDynRcmdReq { + constructor(playerArgs, localTime, fakeUid, isRefresh) { + Companion_instance_816; + playerArgs = playerArgs === VOID ? null : playerArgs; + localTime = localTime === VOID ? 0 : localTime; + fakeUid = fakeUid === VOID ? new Long(0, 0) : fakeUid; + isRefresh = isRefresh === VOID ? false : isRefresh; + this.playerArgs = playerArgs; + this.localTime = localTime; + this.fakeUid = fakeUid; + this.isRefresh = isRefresh; + } + get_playerArgs_eh86hz_k$() { + return this.playerArgs; + } + get_localTime_bf0zwx_k$() { + return this.localTime; + } + get_fakeUid_goenn2_k$() { + return this.fakeUid; + } + get_isRefresh_gvkzoo_k$() { + return this.isRefresh; + } + component1_7eebsc_k$() { + return this.playerArgs; + } + component2_7eebsb_k$() { + return this.localTime; + } + component3_7eebsa_k$() { + return this.fakeUid; + } + component4_7eebs9_k$() { + return this.isRefresh; + } + copy_39q2en_k$(playerArgs, localTime, fakeUid, isRefresh) { + return new KDynRcmdReq(playerArgs, localTime, fakeUid, isRefresh); + } + copy(playerArgs, localTime, fakeUid, isRefresh, $super) { + playerArgs = playerArgs === VOID ? this.playerArgs : playerArgs; + localTime = localTime === VOID ? this.localTime : localTime; + fakeUid = fakeUid === VOID ? this.fakeUid : fakeUid; + isRefresh = isRefresh === VOID ? this.isRefresh : isRefresh; + return this.copy_39q2en_k$(playerArgs, localTime, fakeUid, isRefresh); + } + toString() { + return 'KDynRcmdReq(playerArgs=' + this.playerArgs + ', localTime=' + this.localTime + ', fakeUid=' + this.fakeUid.toString() + ', isRefresh=' + this.isRefresh + ')'; + } + hashCode() { + var result = this.playerArgs == null ? 0 : this.playerArgs.hashCode(); + result = imul(result, 31) + this.localTime | 0; + result = imul(result, 31) + this.fakeUid.hashCode() | 0; + result = imul(result, 31) + getBooleanHashCode(this.isRefresh) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KDynRcmdReq)) + return false; + var tmp0_other_with_cast = other instanceof KDynRcmdReq ? other : THROW_CCE(); + if (!equals(this.playerArgs, tmp0_other_with_cast.playerArgs)) + return false; + if (!(this.localTime === tmp0_other_with_cast.localTime)) + return false; + if (!this.fakeUid.equals(tmp0_other_with_cast.fakeUid)) + return false; + if (!(this.isRefresh === tmp0_other_with_cast.isRefresh)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KDynRcmdReq_c1k4tl_k$(seen1, playerArgs, localTime, fakeUid, isRefresh, serializationConstructorMarker) { + Companion_instance_816; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_803().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.playerArgs = null; + else + $this.playerArgs = playerArgs; + if (0 === (seen1 & 2)) + $this.localTime = 0; + else + $this.localTime = localTime; + if (0 === (seen1 & 4)) + $this.fakeUid = new Long(0, 0); + else + $this.fakeUid = fakeUid; + if (0 === (seen1 & 8)) + $this.isRefresh = false; + else + $this.isRefresh = isRefresh; + return $this; + } + } + class Companion_817 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.DynRcmdReply'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_804(); + } + } + class $serializer_804 { + constructor() { + $serializer_instance_804 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KDynRcmdReply', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('regionRcmd', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('dynamicList', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_805()), get_nullable($serializer_getInstance_755())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_805(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_755(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_805(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_755(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KDynRcmdReply.new_com_bapis_bilibili_app_dynamic_v2_KDynRcmdReply_m8jwin_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_guez3z_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.regionRcmd == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_805(), value.regionRcmd); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.dynamicList == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_755(), value.dynamicList); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_guez3z_k$(encoder, value instanceof KDynRcmdReply ? value : THROW_CCE()); + } + } + class KDynRcmdReply { + constructor(regionRcmd, dynamicList) { + Companion_instance_817; + regionRcmd = regionRcmd === VOID ? null : regionRcmd; + dynamicList = dynamicList === VOID ? null : dynamicList; + this.regionRcmd = regionRcmd; + this.dynamicList = dynamicList; + } + get_regionRcmd_hxq6n9_k$() { + return this.regionRcmd; + } + get_dynamicList_9m1udw_k$() { + return this.dynamicList; + } + component1_7eebsc_k$() { + return this.regionRcmd; + } + component2_7eebsb_k$() { + return this.dynamicList; + } + copy_buf6jh_k$(regionRcmd, dynamicList) { + return new KDynRcmdReply(regionRcmd, dynamicList); + } + copy(regionRcmd, dynamicList, $super) { + regionRcmd = regionRcmd === VOID ? this.regionRcmd : regionRcmd; + dynamicList = dynamicList === VOID ? this.dynamicList : dynamicList; + return this.copy_buf6jh_k$(regionRcmd, dynamicList); + } + toString() { + return 'KDynRcmdReply(regionRcmd=' + this.regionRcmd + ', dynamicList=' + this.dynamicList + ')'; + } + hashCode() { + var result = this.regionRcmd == null ? 0 : this.regionRcmd.hashCode(); + result = imul(result, 31) + (this.dynamicList == null ? 0 : this.dynamicList.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KDynRcmdReply)) + return false; + var tmp0_other_with_cast = other instanceof KDynRcmdReply ? other : THROW_CCE(); + if (!equals(this.regionRcmd, tmp0_other_with_cast.regionRcmd)) + return false; + if (!equals(this.dynamicList, tmp0_other_with_cast.dynamicList)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KDynRcmdReply_m8jwin_k$(seen1, regionRcmd, dynamicList, serializationConstructorMarker) { + Companion_instance_817; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_804().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.regionRcmd = null; + else + $this.regionRcmd = regionRcmd; + if (0 === (seen1 & 2)) + $this.dynamicList = null; + else + $this.dynamicList = dynamicList; + return $this; + } + } + class Companion_818 { + constructor() { + Companion_instance_818 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer($serializer_getInstance_807()), null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.DynRegionRcmd'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_805(); + } + } + class $serializer_805 { + constructor() { + $serializer_instance_805 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KDynRegionRcmd', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('items', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('opts', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_818().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0], get_nullable($serializer_getInstance_806())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp7_cached = Companion_getInstance_818().$childSerializers_1; + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp7_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_806(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp7_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_806(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KDynRegionRcmd.new_com_bapis_bilibili_app_dynamic_v2_KDynRegionRcmd_2yk3ja_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_wkufpj_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_818().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.items, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.items); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.opts == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_806(), value.opts); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_wkufpj_k$(encoder, value instanceof KDynRegionRcmd ? value : THROW_CCE()); + } + } + class KDynRegionRcmd { + constructor(items, opts) { + Companion_getInstance_818(); + items = items === VOID ? emptyList() : items; + opts = opts === VOID ? null : opts; + this.items = items; + this.opts = opts; + } + get_items_it823b_k$() { + return this.items; + } + get_opts_worwx5_k$() { + return this.opts; + } + component1_7eebsc_k$() { + return this.items; + } + component2_7eebsb_k$() { + return this.opts; + } + copy_vqt9oh_k$(items, opts) { + return new KDynRegionRcmd(items, opts); + } + copy(items, opts, $super) { + items = items === VOID ? this.items : items; + opts = opts === VOID ? this.opts : opts; + return this.copy_vqt9oh_k$(items, opts); + } + toString() { + return 'KDynRegionRcmd(items=' + this.items + ', opts=' + this.opts + ')'; + } + hashCode() { + var result = hashCode(this.items); + result = imul(result, 31) + (this.opts == null ? 0 : this.opts.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KDynRegionRcmd)) + return false; + var tmp0_other_with_cast = other instanceof KDynRegionRcmd ? other : THROW_CCE(); + if (!equals(this.items, tmp0_other_with_cast.items)) + return false; + if (!equals(this.opts, tmp0_other_with_cast.opts)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KDynRegionRcmd_2yk3ja_k$(seen1, items, opts, serializationConstructorMarker) { + Companion_getInstance_818(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_805().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.items = emptyList(); + else + $this.items = items; + if (0 === (seen1 & 2)) + $this.opts = null; + else + $this.opts = opts; + return $this; + } + } + class Companion_819 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.RcmdOption'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_806(); + } + } + class $serializer_806 { + constructor() { + $serializer_instance_806 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KRcmdOption', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('showTitle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [BooleanSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = false; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KRcmdOption.new_com_bapis_bilibili_app_dynamic_v2_KRcmdOption_lq0guu_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_3noywd_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.showTitle === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 0, value.showTitle); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_3noywd_k$(encoder, value instanceof KRcmdOption ? value : THROW_CCE()); + } + } + class KRcmdOption { + constructor(showTitle) { + Companion_instance_819; + showTitle = showTitle === VOID ? false : showTitle; + this.showTitle = showTitle; + } + get_showTitle_n4wmz2_k$() { + return this.showTitle; + } + component1_7eebsc_k$() { + return this.showTitle; + } + copy_o18wmo_k$(showTitle) { + return new KRcmdOption(showTitle); + } + copy(showTitle, $super) { + showTitle = showTitle === VOID ? this.showTitle : showTitle; + return this.copy_o18wmo_k$(showTitle); + } + toString() { + return 'KRcmdOption(showTitle=' + this.showTitle + ')'; + } + hashCode() { + return getBooleanHashCode(this.showTitle); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KRcmdOption)) + return false; + var tmp0_other_with_cast = other instanceof KRcmdOption ? other : THROW_CCE(); + if (!(this.showTitle === tmp0_other_with_cast.showTitle)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KRcmdOption_lq0guu_k$(seen1, showTitle, serializationConstructorMarker) { + Companion_instance_819; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_806().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.showTitle = false; + else + $this.showTitle = showTitle; + return $this; + } + } + class Companion_820 { + constructor() { + Companion_instance_820 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, new ArrayListSerializer($serializer_getInstance_808())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.DynRegionRcmdItem'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_807(); + } + } + class $serializer_807 { + constructor() { + $serializer_instance_807 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KDynRegionRcmdItem', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('rid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('items', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_820().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance(), tmp0_cached[2]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp8_cached = Companion_getInstance_820().$childSerializers_1; + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp8_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp8_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KDynRegionRcmdItem.new_com_bapis_bilibili_app_dynamic_v2_KDynRegionRcmdItem_ibypc1_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_lls16c_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_820().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.rid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.rid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !equals(value.items, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 2, tmp2_cached[2], value.items); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_lls16c_k$(encoder, value instanceof KDynRegionRcmdItem ? value : THROW_CCE()); + } + } + class KDynRegionRcmdItem { + constructor(rid, title, items) { + Companion_getInstance_820(); + rid = rid === VOID ? new Long(0, 0) : rid; + title = title === VOID ? '' : title; + items = items === VOID ? emptyList() : items; + this.rid = rid; + this.title = title; + this.items = items; + } + get_rid_18iwyk_k$() { + return this.rid; + } + get_title_iz32un_k$() { + return this.title; + } + get_items_it823b_k$() { + return this.items; + } + component1_7eebsc_k$() { + return this.rid; + } + component2_7eebsb_k$() { + return this.title; + } + component3_7eebsa_k$() { + return this.items; + } + copy_a2f51y_k$(rid, title, items) { + return new KDynRegionRcmdItem(rid, title, items); + } + copy(rid, title, items, $super) { + rid = rid === VOID ? this.rid : rid; + title = title === VOID ? this.title : title; + items = items === VOID ? this.items : items; + return this.copy_a2f51y_k$(rid, title, items); + } + toString() { + return 'KDynRegionRcmdItem(rid=' + this.rid.toString() + ', title=' + this.title + ', items=' + this.items + ')'; + } + hashCode() { + var result = this.rid.hashCode(); + result = imul(result, 31) + getStringHashCode(this.title) | 0; + result = imul(result, 31) + hashCode(this.items) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KDynRegionRcmdItem)) + return false; + var tmp0_other_with_cast = other instanceof KDynRegionRcmdItem ? other : THROW_CCE(); + if (!this.rid.equals(tmp0_other_with_cast.rid)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!equals(this.items, tmp0_other_with_cast.items)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KDynRegionRcmdItem_ibypc1_k$(seen1, rid, title, items, serializationConstructorMarker) { + Companion_getInstance_820(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_807().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.rid = new Long(0, 0); + else + $this.rid = rid; + if (0 === (seen1 & 2)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 4)) + $this.items = emptyList(); + else + $this.items = items; + return $this; + } + } + class Companion_821 { + constructor() { + Companion_instance_821 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, new ArrayListSerializer($serializer_getInstance_810()), null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.ModuleRcmd'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_808(); + } + } + class $serializer_808 { + constructor() { + $serializer_instance_808 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KModuleRcmd', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('author', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('items', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('serverInfo', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_821().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_809()), tmp0_cached[1], StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp8_cached = Companion_getInstance_821().$childSerializers_1; + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_809(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp8_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_809(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp8_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KModuleRcmd.new_com_bapis_bilibili_app_dynamic_v2_KModuleRcmd_yf1b3r_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_vcg11y_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_821().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.author == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_809(), value.author); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !equals(value.items, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 1, tmp2_cached[1], value.items); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.serverInfo === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.serverInfo); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_vcg11y_k$(encoder, value instanceof KModuleRcmd ? value : THROW_CCE()); + } + } + class KModuleRcmd { + constructor(author, items, serverInfo) { + Companion_getInstance_821(); + author = author === VOID ? null : author; + items = items === VOID ? emptyList() : items; + serverInfo = serverInfo === VOID ? '' : serverInfo; + this.author = author; + this.items = items; + this.serverInfo = serverInfo; + } + get_author_b5hnkk_k$() { + return this.author; + } + get_items_it823b_k$() { + return this.items; + } + get_serverInfo_knk656_k$() { + return this.serverInfo; + } + component1_7eebsc_k$() { + return this.author; + } + component2_7eebsb_k$() { + return this.items; + } + component3_7eebsa_k$() { + return this.serverInfo; + } + copy_qkdmf0_k$(author, items, serverInfo) { + return new KModuleRcmd(author, items, serverInfo); + } + copy(author, items, serverInfo, $super) { + author = author === VOID ? this.author : author; + items = items === VOID ? this.items : items; + serverInfo = serverInfo === VOID ? this.serverInfo : serverInfo; + return this.copy_qkdmf0_k$(author, items, serverInfo); + } + toString() { + return 'KModuleRcmd(author=' + this.author + ', items=' + this.items + ', serverInfo=' + this.serverInfo + ')'; + } + hashCode() { + var result = this.author == null ? 0 : this.author.hashCode(); + result = imul(result, 31) + hashCode(this.items) | 0; + result = imul(result, 31) + getStringHashCode(this.serverInfo) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KModuleRcmd)) + return false; + var tmp0_other_with_cast = other instanceof KModuleRcmd ? other : THROW_CCE(); + if (!equals(this.author, tmp0_other_with_cast.author)) + return false; + if (!equals(this.items, tmp0_other_with_cast.items)) + return false; + if (!(this.serverInfo === tmp0_other_with_cast.serverInfo)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KModuleRcmd_yf1b3r_k$(seen1, author, items, serverInfo, serializationConstructorMarker) { + Companion_getInstance_821(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_808().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.author = null; + else + $this.author = author; + if (0 === (seen1 & 2)) + $this.items = emptyList(); + else + $this.items = items; + if (0 === (seen1 & 4)) + $this.serverInfo = ''; + else + $this.serverInfo = serverInfo; + return $this; + } + } + class Companion_822 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.RcmdAuthor'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_809(); + } + } + class $serializer_809 { + constructor() { + $serializer_instance_809 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KRcmdAuthor', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('author', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('desc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('relation', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_956()), StringSerializer_getInstance(), get_nullable($serializer_getInstance_967())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_956(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_967(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_956(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_967(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KRcmdAuthor.new_com_bapis_bilibili_app_dynamic_v2_KRcmdAuthor_5ikq1n_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_t5m23t_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.author == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_956(), value.author); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.desc === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.desc); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.relation == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_967(), value.relation); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_t5m23t_k$(encoder, value instanceof KRcmdAuthor ? value : THROW_CCE()); + } + } + class KRcmdAuthor { + constructor(author, desc, relation) { + Companion_instance_822; + author = author === VOID ? null : author; + desc = desc === VOID ? '' : desc; + relation = relation === VOID ? null : relation; + this.author = author; + this.desc = desc; + this.relation = relation; + } + get_author_b5hnkk_k$() { + return this.author; + } + get_desc_woknve_k$() { + return this.desc; + } + get_relation_u22tol_k$() { + return this.relation; + } + component1_7eebsc_k$() { + return this.author; + } + component2_7eebsb_k$() { + return this.desc; + } + component3_7eebsa_k$() { + return this.relation; + } + copy_dqqi54_k$(author, desc, relation) { + return new KRcmdAuthor(author, desc, relation); + } + copy(author, desc, relation, $super) { + author = author === VOID ? this.author : author; + desc = desc === VOID ? this.desc : desc; + relation = relation === VOID ? this.relation : relation; + return this.copy_dqqi54_k$(author, desc, relation); + } + toString() { + return 'KRcmdAuthor(author=' + this.author + ', desc=' + this.desc + ', relation=' + this.relation + ')'; + } + hashCode() { + var result = this.author == null ? 0 : this.author.hashCode(); + result = imul(result, 31) + getStringHashCode(this.desc) | 0; + result = imul(result, 31) + (this.relation == null ? 0 : this.relation.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KRcmdAuthor)) + return false; + var tmp0_other_with_cast = other instanceof KRcmdAuthor ? other : THROW_CCE(); + if (!equals(this.author, tmp0_other_with_cast.author)) + return false; + if (!(this.desc === tmp0_other_with_cast.desc)) + return false; + if (!equals(this.relation, tmp0_other_with_cast.relation)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KRcmdAuthor_5ikq1n_k$(seen1, author, desc, relation, serializationConstructorMarker) { + Companion_instance_822; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_809().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.author = null; + else + $this.author = author; + if (0 === (seen1 & 2)) + $this.desc = ''; + else + $this.desc = desc; + if (0 === (seen1 & 4)) + $this.relation = null; + else + $this.relation = relation; + return $this; + } + } + class KRcmdItem { + constructor(value) { + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + } + class KRcmdArchive extends KRcmdItem { + constructor() { + KRcmdArchive_instance = null; + super(0); + KRcmdArchive_instance = this; + } + } + class Companion_823 { + constructor() { + Companion_instance_823 = this; + var tmp = this; + tmp.rcmdItemValues$delegate_1 = lazy_0(KRcmdItem$Companion$rcmdItemValues$delegate$lambda); + this.targetPath = '/bilibili.app.dynamic.v2.RcmdItem'; + } + get_rcmdItemValues_ndjnsq_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.rcmdItemValues$delegate_1; + var thisRef = this; + var property = rcmdItemValues$factory(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_810(); + } + get rcmdItemValues() { + return this.get_rcmdItemValues_ndjnsq_k$(); + } + } + class $serializer_810 { + constructor() { + $serializer_instance_810 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KRcmdItem', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('rcmdArchive', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), get_nullable($serializer_getInstance_811())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = null; + var tmp6_transient0 = 0; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_811(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_811(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KRcmdItem_0.new_com_bapis_bilibili_app_dynamic_v2_KRcmdItem_jc6lvz_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_efn47j_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.type === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.type); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.rcmdArchive_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_811(), value.rcmdArchive_1); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_efn47j_k$(encoder, value instanceof KRcmdItem_0 ? value : THROW_CCE()); + } + } + class KRcmdItem_0 { + constructor(type, rcmdArchive) { + Companion_getInstance_823(); + type = type === VOID ? 0 : type; + rcmdArchive = rcmdArchive === VOID ? null : rcmdArchive; + this.type = type; + this.rcmdArchive_1 = rcmdArchive; + var tmp = this; + tmp.rcmdItemNumber$delegate_1 = lazy_0(KRcmdItem$rcmdItemNumber$delegate$lambda(this)); + } + get_type_wovaf7_k$() { + return this.type; + } + rcmdItemValue() { + if (!(this.rcmdArchive_1 == null)) { + var tmp = this.rcmdArchive_1; + return (tmp == null ? true : !(tmp == null)) ? tmp : null; + } else { + return null; + } + } + rcmdItemTypeJs() { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = Companion_getInstance_823().rcmdItemValues; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.KRcmdItem.rcmdItemType.' call + var it = element; + tmp$ret$0 = it.value === _get_rcmdItemNumber__ys0evt(this); + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + return tmp$ret$1; + } + typeEnum() { + return Companion_getInstance_953().fromValue(this.type); + } + component1_7eebsc_k$() { + return this.type; + } + copy_u7tc75_k$(type, rcmdArchive) { + return new KRcmdItem_0(type, rcmdArchive); + } + copy(type, rcmdArchive, $super) { + type = type === VOID ? this.type : type; + rcmdArchive = rcmdArchive === VOID ? this.rcmdArchive_1 : rcmdArchive; + return this.copy_u7tc75_k$(type, rcmdArchive); + } + toString() { + return 'KRcmdItem(type=' + this.type + ', rcmdArchive=' + this.rcmdArchive_1 + ')'; + } + hashCode() { + var result = this.type; + result = imul(result, 31) + (this.rcmdArchive_1 == null ? 0 : this.rcmdArchive_1.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KRcmdItem_0)) + return false; + var tmp0_other_with_cast = other instanceof KRcmdItem_0 ? other : THROW_CCE(); + if (!(this.type === tmp0_other_with_cast.type)) + return false; + if (!equals(this.rcmdArchive_1, tmp0_other_with_cast.rcmdArchive_1)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KRcmdItem_jc6lvz_k$(seen1, type, rcmdArchive, serializationConstructorMarker) { + Companion_getInstance_823(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_810().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.type = 0; + else + $this.type = type; + if (0 === (seen1 & 2)) + $this.rcmdArchive_1 = null; + else + $this.rcmdArchive_1 = rcmdArchive; + var tmp = $this; + tmp.rcmdItemNumber$delegate_1 = lazy_0(KRcmdItem$_init_$lambda_2c6sl7($this)); + return $this; + } + } + class Companion_824 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.RcmdArchive'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_811(); + } + } + class $serializer_811 { + constructor() { + $serializer_instance_811 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KRcmdArchive', this, 15); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('coverLeftIcon1', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('coverLeftText1', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('uri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('isPgc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('aid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('badge', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('coverLeftIcon2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('coverLeftText2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('coverLeftIcon3', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('coverLeftText3', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + tmp0_serialDesc.addElement_5pzumi_k$('desc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(13)); + tmp0_serialDesc.addElement_5pzumi_k$('trackId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(14)); + tmp0_serialDesc.addElement_5pzumi_k$('rcmdReason', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(15)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), BooleanSerializer_getInstance(), LongSerializer_getInstance(), get_nullable($serializer_getInstance_955()), IntSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_812())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = 0; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = false; + var tmp10_local6 = new Long(0, 0); + var tmp11_local7 = null; + var tmp12_local8 = 0; + var tmp13_local9 = null; + var tmp14_local10 = 0; + var tmp15_local11 = null; + var tmp16_local12 = null; + var tmp17_local13 = null; + var tmp18_local14 = null; + var tmp19_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp19_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp19_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp19_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp19_input.decodeLongElement_994anb_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp19_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_955(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp19_input.decodeIntElement_941u6a_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp19_input.decodeIntElement_941u6a_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + tmp16_local12 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + tmp17_local13 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + tmp18_local14 = tmp19_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 14, $serializer_getInstance_812(), tmp18_local14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + } else + while (tmp1_flag) { + tmp2_index = tmp19_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp19_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp19_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp19_input.decodeLongElement_994anb_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp19_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_955(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp19_input.decodeIntElement_941u6a_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp19_input.decodeIntElement_941u6a_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + case 12: + tmp16_local12 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + break; + case 13: + tmp17_local13 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + break; + case 14: + tmp18_local14 = tmp19_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 14, $serializer_getInstance_812(), tmp18_local14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp19_input.endStructure_1xqz0n_k$(tmp0_desc); + return KRcmdArchive_0.new_com_bapis_bilibili_app_dynamic_v2_KRcmdArchive_9r6tn3_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, tmp18_local14, null); + } + serialize_d9sk5a_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.cover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.coverLeftIcon1 === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.coverLeftIcon1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.coverLeftText1 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.coverLeftText1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.uri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.uri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.isPgc === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 5, value.isPgc); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !value.aid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 6, value.aid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.badge == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 7, $serializer_getInstance_955(), value.badge); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.coverLeftIcon2 === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 8, value.coverLeftIcon2); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.coverLeftText2 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 9, value.coverLeftText2); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.coverLeftIcon3 === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 10, value.coverLeftIcon3); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.coverLeftText3 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 11, value.coverLeftText3); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !(value.desc === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 12, value.desc); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 13) ? true : !(value.trackId === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 13, value.trackId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 14) ? true : !(value.rcmdReason == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 14, $serializer_getInstance_812(), value.rcmdReason); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_d9sk5a_k$(encoder, value instanceof KRcmdArchive_0 ? value : THROW_CCE()); + } + } + class KRcmdArchive_0 { + constructor(title, cover, coverLeftIcon1, coverLeftText1, uri, isPgc, aid, badge, coverLeftIcon2, coverLeftText2, coverLeftIcon3, coverLeftText3, desc, trackId, rcmdReason) { + Companion_instance_824; + title = title === VOID ? '' : title; + cover = cover === VOID ? '' : cover; + coverLeftIcon1 = coverLeftIcon1 === VOID ? 0 : coverLeftIcon1; + coverLeftText1 = coverLeftText1 === VOID ? '' : coverLeftText1; + uri = uri === VOID ? '' : uri; + isPgc = isPgc === VOID ? false : isPgc; + aid = aid === VOID ? new Long(0, 0) : aid; + badge = badge === VOID ? null : badge; + coverLeftIcon2 = coverLeftIcon2 === VOID ? 0 : coverLeftIcon2; + coverLeftText2 = coverLeftText2 === VOID ? '' : coverLeftText2; + coverLeftIcon3 = coverLeftIcon3 === VOID ? 0 : coverLeftIcon3; + coverLeftText3 = coverLeftText3 === VOID ? '' : coverLeftText3; + desc = desc === VOID ? '' : desc; + trackId = trackId === VOID ? '' : trackId; + rcmdReason = rcmdReason === VOID ? null : rcmdReason; + this.title = title; + this.cover = cover; + this.coverLeftIcon1 = coverLeftIcon1; + this.coverLeftText1 = coverLeftText1; + this.uri = uri; + this.isPgc = isPgc; + this.aid = aid; + this.badge = badge; + this.coverLeftIcon2 = coverLeftIcon2; + this.coverLeftText2 = coverLeftText2; + this.coverLeftIcon3 = coverLeftIcon3; + this.coverLeftText3 = coverLeftText3; + this.desc = desc; + this.trackId = trackId; + this.rcmdReason = rcmdReason; + } + get_title_iz32un_k$() { + return this.title; + } + get_cover_ipug0e_k$() { + return this.cover; + } + get_coverLeftIcon1_ce5a8z_k$() { + return this.coverLeftIcon1; + } + get_coverLeftText1_ck8hkf_k$() { + return this.coverLeftText1; + } + get_uri_18iuil_k$() { + return this.uri; + } + get_isPgc_it6zdl_k$() { + return this.isPgc; + } + get_aid_18j9kd_k$() { + return this.aid; + } + get_badge_ip1cai_k$() { + return this.badge; + } + get_coverLeftIcon2_ce5a90_k$() { + return this.coverLeftIcon2; + } + get_coverLeftText2_ck8hkg_k$() { + return this.coverLeftText2; + } + get_coverLeftIcon3_ce5a91_k$() { + return this.coverLeftIcon3; + } + get_coverLeftText3_ck8hkh_k$() { + return this.coverLeftText3; + } + get_desc_woknve_k$() { + return this.desc; + } + get_trackId_gdy23n_k$() { + return this.trackId; + } + get_rcmdReason_lci9h1_k$() { + return this.rcmdReason; + } + coverLeftIcon1Enum() { + return Companion_getInstance_1081().fromValue(this.coverLeftIcon1); + } + coverLeftIcon2Enum() { + return Companion_getInstance_1081().fromValue(this.coverLeftIcon2); + } + coverLeftIcon3Enum() { + return Companion_getInstance_1081().fromValue(this.coverLeftIcon3); + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.cover; + } + component3_7eebsa_k$() { + return this.coverLeftIcon1; + } + component4_7eebs9_k$() { + return this.coverLeftText1; + } + component5_7eebs8_k$() { + return this.uri; + } + component6_7eebs7_k$() { + return this.isPgc; + } + component7_7eebs6_k$() { + return this.aid; + } + component8_7eebs5_k$() { + return this.badge; + } + component9_7eebs4_k$() { + return this.coverLeftIcon2; + } + component10_gazzfo_k$() { + return this.coverLeftText2; + } + component11_gazzfn_k$() { + return this.coverLeftIcon3; + } + component12_gazzfm_k$() { + return this.coverLeftText3; + } + component13_gazzfl_k$() { + return this.desc; + } + component14_gazzfk_k$() { + return this.trackId; + } + component15_gazzfj_k$() { + return this.rcmdReason; + } + copy_d7s3s2_k$(title, cover, coverLeftIcon1, coverLeftText1, uri, isPgc, aid, badge, coverLeftIcon2, coverLeftText2, coverLeftIcon3, coverLeftText3, desc, trackId, rcmdReason) { + return new KRcmdArchive_0(title, cover, coverLeftIcon1, coverLeftText1, uri, isPgc, aid, badge, coverLeftIcon2, coverLeftText2, coverLeftIcon3, coverLeftText3, desc, trackId, rcmdReason); + } + copy(title, cover, coverLeftIcon1, coverLeftText1, uri, isPgc, aid, badge, coverLeftIcon2, coverLeftText2, coverLeftIcon3, coverLeftText3, desc, trackId, rcmdReason, $super) { + title = title === VOID ? this.title : title; + cover = cover === VOID ? this.cover : cover; + coverLeftIcon1 = coverLeftIcon1 === VOID ? this.coverLeftIcon1 : coverLeftIcon1; + coverLeftText1 = coverLeftText1 === VOID ? this.coverLeftText1 : coverLeftText1; + uri = uri === VOID ? this.uri : uri; + isPgc = isPgc === VOID ? this.isPgc : isPgc; + aid = aid === VOID ? this.aid : aid; + badge = badge === VOID ? this.badge : badge; + coverLeftIcon2 = coverLeftIcon2 === VOID ? this.coverLeftIcon2 : coverLeftIcon2; + coverLeftText2 = coverLeftText2 === VOID ? this.coverLeftText2 : coverLeftText2; + coverLeftIcon3 = coverLeftIcon3 === VOID ? this.coverLeftIcon3 : coverLeftIcon3; + coverLeftText3 = coverLeftText3 === VOID ? this.coverLeftText3 : coverLeftText3; + desc = desc === VOID ? this.desc : desc; + trackId = trackId === VOID ? this.trackId : trackId; + rcmdReason = rcmdReason === VOID ? this.rcmdReason : rcmdReason; + return this.copy_d7s3s2_k$(title, cover, coverLeftIcon1, coverLeftText1, uri, isPgc, aid, badge, coverLeftIcon2, coverLeftText2, coverLeftIcon3, coverLeftText3, desc, trackId, rcmdReason); + } + toString() { + return 'KRcmdArchive(title=' + this.title + ', cover=' + this.cover + ', coverLeftIcon1=' + this.coverLeftIcon1 + ', coverLeftText1=' + this.coverLeftText1 + ', uri=' + this.uri + ', isPgc=' + this.isPgc + ', aid=' + this.aid.toString() + ', badge=' + this.badge + ', coverLeftIcon2=' + this.coverLeftIcon2 + ', coverLeftText2=' + this.coverLeftText2 + ', coverLeftIcon3=' + this.coverLeftIcon3 + ', coverLeftText3=' + this.coverLeftText3 + ', desc=' + this.desc + ', trackId=' + this.trackId + ', rcmdReason=' + this.rcmdReason + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.cover) | 0; + result = imul(result, 31) + this.coverLeftIcon1 | 0; + result = imul(result, 31) + getStringHashCode(this.coverLeftText1) | 0; + result = imul(result, 31) + getStringHashCode(this.uri) | 0; + result = imul(result, 31) + getBooleanHashCode(this.isPgc) | 0; + result = imul(result, 31) + this.aid.hashCode() | 0; + result = imul(result, 31) + (this.badge == null ? 0 : this.badge.hashCode()) | 0; + result = imul(result, 31) + this.coverLeftIcon2 | 0; + result = imul(result, 31) + getStringHashCode(this.coverLeftText2) | 0; + result = imul(result, 31) + this.coverLeftIcon3 | 0; + result = imul(result, 31) + getStringHashCode(this.coverLeftText3) | 0; + result = imul(result, 31) + getStringHashCode(this.desc) | 0; + result = imul(result, 31) + getStringHashCode(this.trackId) | 0; + result = imul(result, 31) + (this.rcmdReason == null ? 0 : this.rcmdReason.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KRcmdArchive_0)) + return false; + var tmp0_other_with_cast = other instanceof KRcmdArchive_0 ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + if (!(this.coverLeftIcon1 === tmp0_other_with_cast.coverLeftIcon1)) + return false; + if (!(this.coverLeftText1 === tmp0_other_with_cast.coverLeftText1)) + return false; + if (!(this.uri === tmp0_other_with_cast.uri)) + return false; + if (!(this.isPgc === tmp0_other_with_cast.isPgc)) + return false; + if (!this.aid.equals(tmp0_other_with_cast.aid)) + return false; + if (!equals(this.badge, tmp0_other_with_cast.badge)) + return false; + if (!(this.coverLeftIcon2 === tmp0_other_with_cast.coverLeftIcon2)) + return false; + if (!(this.coverLeftText2 === tmp0_other_with_cast.coverLeftText2)) + return false; + if (!(this.coverLeftIcon3 === tmp0_other_with_cast.coverLeftIcon3)) + return false; + if (!(this.coverLeftText3 === tmp0_other_with_cast.coverLeftText3)) + return false; + if (!(this.desc === tmp0_other_with_cast.desc)) + return false; + if (!(this.trackId === tmp0_other_with_cast.trackId)) + return false; + if (!equals(this.rcmdReason, tmp0_other_with_cast.rcmdReason)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KRcmdArchive_9r6tn3_k$(seen1, title, cover, coverLeftIcon1, coverLeftText1, uri, isPgc, aid, badge, coverLeftIcon2, coverLeftText2, coverLeftIcon3, coverLeftText3, desc, trackId, rcmdReason, serializationConstructorMarker) { + Companion_instance_824; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_811().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.cover = ''; + else + $this.cover = cover; + if (0 === (seen1 & 4)) + $this.coverLeftIcon1 = 0; + else + $this.coverLeftIcon1 = coverLeftIcon1; + if (0 === (seen1 & 8)) + $this.coverLeftText1 = ''; + else + $this.coverLeftText1 = coverLeftText1; + if (0 === (seen1 & 16)) + $this.uri = ''; + else + $this.uri = uri; + if (0 === (seen1 & 32)) + $this.isPgc = false; + else + $this.isPgc = isPgc; + if (0 === (seen1 & 64)) + $this.aid = new Long(0, 0); + else + $this.aid = aid; + if (0 === (seen1 & 128)) + $this.badge = null; + else + $this.badge = badge; + if (0 === (seen1 & 256)) + $this.coverLeftIcon2 = 0; + else + $this.coverLeftIcon2 = coverLeftIcon2; + if (0 === (seen1 & 512)) + $this.coverLeftText2 = ''; + else + $this.coverLeftText2 = coverLeftText2; + if (0 === (seen1 & 1024)) + $this.coverLeftIcon3 = 0; + else + $this.coverLeftIcon3 = coverLeftIcon3; + if (0 === (seen1 & 2048)) + $this.coverLeftText3 = ''; + else + $this.coverLeftText3 = coverLeftText3; + if (0 === (seen1 & 4096)) + $this.desc = ''; + else + $this.desc = desc; + if (0 === (seen1 & 8192)) + $this.trackId = ''; + else + $this.trackId = trackId; + if (0 === (seen1 & 16384)) + $this.rcmdReason = null; + else + $this.rcmdReason = rcmdReason; + return $this; + } + } + class Companion_825 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.RcmdReason'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_812(); + } + } + class $serializer_812 { + constructor() { + $serializer_instance_812 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KRcmdReason', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('campusName', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('style', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('rcmdReason', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('upName', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = 0; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KRcmdReason_0.new_com_bapis_bilibili_app_dynamic_v2_KRcmdReason_kzotad_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_akn5a6_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.campusName === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.campusName); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.style === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.style); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.rcmdReason === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.rcmdReason); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.upName === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.upName); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_akn5a6_k$(encoder, value instanceof KRcmdReason_0 ? value : THROW_CCE()); + } + } + class KRcmdReason_0 { + constructor(campusName, style, rcmdReason, upName) { + Companion_instance_825; + campusName = campusName === VOID ? '' : campusName; + style = style === VOID ? 0 : style; + rcmdReason = rcmdReason === VOID ? '' : rcmdReason; + upName = upName === VOID ? '' : upName; + this.campusName = campusName; + this.style = style; + this.rcmdReason = rcmdReason; + this.upName = upName; + } + get_campusName_wd5obx_k$() { + return this.campusName; + } + get_style_iyqetk_k$() { + return this.style; + } + get_rcmdReason_lci9h1_k$() { + return this.rcmdReason; + } + get_upName_kiypqn_k$() { + return this.upName; + } + styleEnum() { + return Companion_getInstance_739().fromValue(this.style); + } + component1_7eebsc_k$() { + return this.campusName; + } + component2_7eebsb_k$() { + return this.style; + } + component3_7eebsa_k$() { + return this.rcmdReason; + } + component4_7eebs9_k$() { + return this.upName; + } + copy_vx2ncd_k$(campusName, style, rcmdReason, upName) { + return new KRcmdReason_0(campusName, style, rcmdReason, upName); + } + copy(campusName, style, rcmdReason, upName, $super) { + campusName = campusName === VOID ? this.campusName : campusName; + style = style === VOID ? this.style : style; + rcmdReason = rcmdReason === VOID ? this.rcmdReason : rcmdReason; + upName = upName === VOID ? this.upName : upName; + return this.copy_vx2ncd_k$(campusName, style, rcmdReason, upName); + } + toString() { + return 'KRcmdReason(campusName=' + this.campusName + ', style=' + this.style + ', rcmdReason=' + this.rcmdReason + ', upName=' + this.upName + ')'; + } + hashCode() { + var result = getStringHashCode(this.campusName); + result = imul(result, 31) + this.style | 0; + result = imul(result, 31) + getStringHashCode(this.rcmdReason) | 0; + result = imul(result, 31) + getStringHashCode(this.upName) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KRcmdReason_0)) + return false; + var tmp0_other_with_cast = other instanceof KRcmdReason_0 ? other : THROW_CCE(); + if (!(this.campusName === tmp0_other_with_cast.campusName)) + return false; + if (!(this.style === tmp0_other_with_cast.style)) + return false; + if (!(this.rcmdReason === tmp0_other_with_cast.rcmdReason)) + return false; + if (!(this.upName === tmp0_other_with_cast.upName)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KRcmdReason_kzotad_k$(seen1, campusName, style, rcmdReason, upName, serializationConstructorMarker) { + Companion_instance_825; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_812().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.campusName = ''; + else + $this.campusName = campusName; + if (0 === (seen1 & 2)) + $this.style = 0; + else + $this.style = style; + if (0 === (seen1 & 4)) + $this.rcmdReason = ''; + else + $this.rcmdReason = rcmdReason; + if (0 === (seen1 & 8)) + $this.upName = ''; + else + $this.upName = upName; + return $this; + } + } + class Companion_826 { + constructor() { + Companion_instance_826 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer(LongSerializer_getInstance()), null, null, null, null, null, null, null, null, null, new ArrayListSerializer(LongSerializer_getInstance())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.DynServerDetailsReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_813(); + } + } + class $serializer_813 { + constructor() { + $serializer_instance_813 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KDynServerDetailsReq', this, 11); + tmp0_serialDesc.addElement_5pzumi_k$('dynamicIds', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('localTime', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('playerArgs', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('mobiApp', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('device', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('buvid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('build', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('mid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('platform', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('isMaster', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('topDynamicIds', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_826().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0], IntSerializer_getInstance(), get_nullable($serializer_getInstance_152()), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), BooleanSerializer_getInstance(), tmp0_cached[10]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = 0; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = new Long(0, 0); + var tmp11_local7 = new Long(0, 0); + var tmp12_local8 = null; + var tmp13_local9 = false; + var tmp14_local10 = null; + var tmp15_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp16_cached = Companion_getInstance_826().$childSerializers_1; + if (tmp15_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp15_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp16_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_152(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp15_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp15_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 10, tmp16_cached[10], tmp14_local10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + } else + while (tmp1_flag) { + tmp2_index = tmp15_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp15_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp16_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_152(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp15_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp15_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 10, tmp16_cached[10], tmp14_local10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp15_input.endStructure_1xqz0n_k$(tmp0_desc); + return KDynServerDetailsReq.new_com_bapis_bilibili_app_dynamic_v2_KDynServerDetailsReq_7dvuzu_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, null); + } + serialize_ibmyu4_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_826().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.dynamicIds, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.dynamicIds); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.localTime === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.localTime); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.playerArgs == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_152(), value.playerArgs); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.mobiApp === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.mobiApp); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.device === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.device); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.buvid === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.buvid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !value.build.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 6, value.build); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !value.mid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 7, value.mid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.platform === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 8, value.platform); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.isMaster === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 9, value.isMaster); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !equals(value.topDynamicIds, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 10, tmp2_cached[10], value.topDynamicIds); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_ibmyu4_k$(encoder, value instanceof KDynServerDetailsReq ? value : THROW_CCE()); + } + } + class KDynServerDetailsReq { + constructor(dynamicIds, localTime, playerArgs, mobiApp, device, buvid, build, mid, platform, isMaster, topDynamicIds) { + Companion_getInstance_826(); + dynamicIds = dynamicIds === VOID ? emptyList() : dynamicIds; + localTime = localTime === VOID ? 0 : localTime; + playerArgs = playerArgs === VOID ? null : playerArgs; + mobiApp = mobiApp === VOID ? '' : mobiApp; + device = device === VOID ? '' : device; + buvid = buvid === VOID ? '' : buvid; + build = build === VOID ? new Long(0, 0) : build; + mid = mid === VOID ? new Long(0, 0) : mid; + platform = platform === VOID ? '' : platform; + isMaster = isMaster === VOID ? false : isMaster; + topDynamicIds = topDynamicIds === VOID ? emptyList() : topDynamicIds; + this.dynamicIds = dynamicIds; + this.localTime = localTime; + this.playerArgs = playerArgs; + this.mobiApp = mobiApp; + this.device = device; + this.buvid = buvid; + this.build = build; + this.mid = mid; + this.platform = platform; + this.isMaster = isMaster; + this.topDynamicIds = topDynamicIds; + } + get_dynamicIds_ow791a_k$() { + return this.dynamicIds; + } + get_localTime_bf0zwx_k$() { + return this.localTime; + } + get_playerArgs_eh86hz_k$() { + return this.playerArgs; + } + get_mobiApp_lizzf3_k$() { + return this.mobiApp; + } + get_device_cbv3of_k$() { + return this.device; + } + get_buvid_ipehf9_k$() { + return this.buvid; + } + get_build_ipe7ut_k$() { + return this.build; + } + get_mid_18j0o1_k$() { + return this.mid; + } + get_platform_ssr7o_k$() { + return this.platform; + } + get_isMaster_whpvxx_k$() { + return this.isMaster; + } + get_topDynamicIds_4r0r23_k$() { + return this.topDynamicIds; + } + component1_7eebsc_k$() { + return this.dynamicIds; + } + component2_7eebsb_k$() { + return this.localTime; + } + component3_7eebsa_k$() { + return this.playerArgs; + } + component4_7eebs9_k$() { + return this.mobiApp; + } + component5_7eebs8_k$() { + return this.device; + } + component6_7eebs7_k$() { + return this.buvid; + } + component7_7eebs6_k$() { + return this.build; + } + component8_7eebs5_k$() { + return this.mid; + } + component9_7eebs4_k$() { + return this.platform; + } + component10_gazzfo_k$() { + return this.isMaster; + } + component11_gazzfn_k$() { + return this.topDynamicIds; + } + copy_trnevj_k$(dynamicIds, localTime, playerArgs, mobiApp, device, buvid, build, mid, platform, isMaster, topDynamicIds) { + return new KDynServerDetailsReq(dynamicIds, localTime, playerArgs, mobiApp, device, buvid, build, mid, platform, isMaster, topDynamicIds); + } + copy(dynamicIds, localTime, playerArgs, mobiApp, device, buvid, build, mid, platform, isMaster, topDynamicIds, $super) { + dynamicIds = dynamicIds === VOID ? this.dynamicIds : dynamicIds; + localTime = localTime === VOID ? this.localTime : localTime; + playerArgs = playerArgs === VOID ? this.playerArgs : playerArgs; + mobiApp = mobiApp === VOID ? this.mobiApp : mobiApp; + device = device === VOID ? this.device : device; + buvid = buvid === VOID ? this.buvid : buvid; + build = build === VOID ? this.build : build; + mid = mid === VOID ? this.mid : mid; + platform = platform === VOID ? this.platform : platform; + isMaster = isMaster === VOID ? this.isMaster : isMaster; + topDynamicIds = topDynamicIds === VOID ? this.topDynamicIds : topDynamicIds; + return this.copy_trnevj_k$(dynamicIds, localTime, playerArgs, mobiApp, device, buvid, build, mid, platform, isMaster, topDynamicIds); + } + toString() { + return 'KDynServerDetailsReq(dynamicIds=' + this.dynamicIds + ', localTime=' + this.localTime + ', playerArgs=' + this.playerArgs + ', mobiApp=' + this.mobiApp + ', device=' + this.device + ', buvid=' + this.buvid + ', build=' + this.build.toString() + ', mid=' + this.mid.toString() + ', platform=' + this.platform + ', isMaster=' + this.isMaster + ', topDynamicIds=' + this.topDynamicIds + ')'; + } + hashCode() { + var result = hashCode(this.dynamicIds); + result = imul(result, 31) + this.localTime | 0; + result = imul(result, 31) + (this.playerArgs == null ? 0 : this.playerArgs.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.mobiApp) | 0; + result = imul(result, 31) + getStringHashCode(this.device) | 0; + result = imul(result, 31) + getStringHashCode(this.buvid) | 0; + result = imul(result, 31) + this.build.hashCode() | 0; + result = imul(result, 31) + this.mid.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.platform) | 0; + result = imul(result, 31) + getBooleanHashCode(this.isMaster) | 0; + result = imul(result, 31) + hashCode(this.topDynamicIds) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KDynServerDetailsReq)) + return false; + var tmp0_other_with_cast = other instanceof KDynServerDetailsReq ? other : THROW_CCE(); + if (!equals(this.dynamicIds, tmp0_other_with_cast.dynamicIds)) + return false; + if (!(this.localTime === tmp0_other_with_cast.localTime)) + return false; + if (!equals(this.playerArgs, tmp0_other_with_cast.playerArgs)) + return false; + if (!(this.mobiApp === tmp0_other_with_cast.mobiApp)) + return false; + if (!(this.device === tmp0_other_with_cast.device)) + return false; + if (!(this.buvid === tmp0_other_with_cast.buvid)) + return false; + if (!this.build.equals(tmp0_other_with_cast.build)) + return false; + if (!this.mid.equals(tmp0_other_with_cast.mid)) + return false; + if (!(this.platform === tmp0_other_with_cast.platform)) + return false; + if (!(this.isMaster === tmp0_other_with_cast.isMaster)) + return false; + if (!equals(this.topDynamicIds, tmp0_other_with_cast.topDynamicIds)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KDynServerDetailsReq_7dvuzu_k$(seen1, dynamicIds, localTime, playerArgs, mobiApp, device, buvid, build, mid, platform, isMaster, topDynamicIds, serializationConstructorMarker) { + Companion_getInstance_826(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_813().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.dynamicIds = emptyList(); + else + $this.dynamicIds = dynamicIds; + if (0 === (seen1 & 2)) + $this.localTime = 0; + else + $this.localTime = localTime; + if (0 === (seen1 & 4)) + $this.playerArgs = null; + else + $this.playerArgs = playerArgs; + if (0 === (seen1 & 8)) + $this.mobiApp = ''; + else + $this.mobiApp = mobiApp; + if (0 === (seen1 & 16)) + $this.device = ''; + else + $this.device = device; + if (0 === (seen1 & 32)) + $this.buvid = ''; + else + $this.buvid = buvid; + if (0 === (seen1 & 64)) + $this.build = new Long(0, 0); + else + $this.build = build; + if (0 === (seen1 & 128)) + $this.mid = new Long(0, 0); + else + $this.mid = mid; + if (0 === (seen1 & 256)) + $this.platform = ''; + else + $this.platform = platform; + if (0 === (seen1 & 512)) + $this.isMaster = false; + else + $this.isMaster = isMaster; + if (0 === (seen1 & 1024)) + $this.topDynamicIds = emptyList(); + else + $this.topDynamicIds = topDynamicIds; + return $this; + } + } + class Companion_827 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.DynServerDetailsReply.ItemsEntry'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_814(); + } + } + class $serializer_814 { + constructor() { + $serializer_instance_814 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KDynServerDetailsReply.KItemsEntry', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('key', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('value', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), get_nullable($serializer_getInstance_942())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_942(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_942(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KItemsEntry.new_com_bapis_bilibili_app_dynamic_v2_KDynServerDetailsReply_KItemsEntry_wb6es2_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_69nrzd_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.key.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.key); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.value == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_942(), value.value); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_69nrzd_k$(encoder, value instanceof KItemsEntry ? value : THROW_CCE()); + } + } + class KItemsEntry { + constructor(key, value) { + Companion_instance_827; + key = key === VOID ? new Long(0, 0) : key; + value = value === VOID ? null : value; + this.key = key; + this.value = value; + } + get_key_18j28a_k$() { + return this.key; + } + get_value_j01efc_k$() { + return this.value; + } + component1_7eebsc_k$() { + return this.key; + } + component2_7eebsb_k$() { + return this.value; + } + copy_96o5g9_k$(key, value) { + return new KItemsEntry(key, value); + } + copy(key, value, $super) { + key = key === VOID ? this.key : key; + value = value === VOID ? this.value : value; + return this.copy_96o5g9_k$(key, value); + } + toString() { + return 'KItemsEntry(key=' + this.key.toString() + ', value=' + this.value + ')'; + } + hashCode() { + var result = this.key.hashCode(); + result = imul(result, 31) + (this.value == null ? 0 : this.value.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KItemsEntry)) + return false; + var tmp0_other_with_cast = other instanceof KItemsEntry ? other : THROW_CCE(); + if (!this.key.equals(tmp0_other_with_cast.key)) + return false; + if (!equals(this.value, tmp0_other_with_cast.value)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KDynServerDetailsReply_KItemsEntry_wb6es2_k$(seen1, key, value, serializationConstructorMarker) { + Companion_instance_827; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_814().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.key = new Long(0, 0); + else + $this.key = key; + if (0 === (seen1 & 2)) + $this.value = null; + else + $this.value = value; + return $this; + } + } + class Companion_828 { + constructor() { + Companion_instance_828 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new LinkedHashMapSerializer(LongSerializer_getInstance(), get_nullable($serializer_getInstance_942()))]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.DynServerDetailsReply'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_815(); + } + } + class $serializer_815 { + constructor() { + $serializer_instance_815 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KDynServerDetailsReply', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('items', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_828().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp6_cached = Companion_getInstance_828().$childSerializers_1; + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KDynServerDetailsReply.new_com_bapis_bilibili_app_dynamic_v2_KDynServerDetailsReply_jfe4zz_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_mbu354_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_828().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.items, emptyMap())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.items); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_mbu354_k$(encoder, value instanceof KDynServerDetailsReply ? value : THROW_CCE()); + } + } + class KDynServerDetailsReply { + constructor(items) { + Companion_getInstance_828(); + items = items === VOID ? emptyMap() : items; + this.items = items; + } + get_items_it823b_k$() { + return this.items; + } + component1_7eebsc_k$() { + return this.items; + } + copy_pyuj7_k$(items) { + return new KDynServerDetailsReply(items); + } + copy(items, $super) { + items = items === VOID ? this.items : items; + return this.copy_pyuj7_k$(items); + } + toString() { + return 'KDynServerDetailsReply(items=' + this.items + ')'; + } + hashCode() { + return hashCode(this.items); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KDynServerDetailsReply)) + return false; + var tmp0_other_with_cast = other instanceof KDynServerDetailsReply ? other : THROW_CCE(); + if (!equals(this.items, tmp0_other_with_cast.items)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KDynServerDetailsReply_jfe4zz_k$(seen1, items, serializationConstructorMarker) { + Companion_getInstance_828(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_815().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.items = emptyMap(); + else + $this.items = items; + return $this; + } + } + class Companion_829 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.DynSearchReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_816(); + } + } + class $serializer_816 { + constructor() { + $serializer_instance_816 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KDynSearchReq', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('keyword', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('page', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('localTime', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('playerArgs', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), get_nullable($serializer_getInstance_152())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = 0; + var tmp6_local2 = 0; + var tmp7_local3 = null; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_152(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_152(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KDynSearchReq.new_com_bapis_bilibili_app_dynamic_v2_KDynSearchReq_qu13c1_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_szmic3_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.keyword === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.keyword); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.page === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.page); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.localTime === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.localTime); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.playerArgs == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_152(), value.playerArgs); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_szmic3_k$(encoder, value instanceof KDynSearchReq ? value : THROW_CCE()); + } + } + class KDynSearchReq { + constructor(keyword, page, localTime, playerArgs) { + Companion_instance_829; + keyword = keyword === VOID ? '' : keyword; + page = page === VOID ? 0 : page; + localTime = localTime === VOID ? 0 : localTime; + playerArgs = playerArgs === VOID ? null : playerArgs; + this.keyword = keyword; + this.page = page; + this.localTime = localTime; + this.playerArgs = playerArgs; + } + get_keyword_c7bncw_k$() { + return this.keyword; + } + get_page_wos8go_k$() { + return this.page; + } + get_localTime_bf0zwx_k$() { + return this.localTime; + } + get_playerArgs_eh86hz_k$() { + return this.playerArgs; + } + component1_7eebsc_k$() { + return this.keyword; + } + component2_7eebsb_k$() { + return this.page; + } + component3_7eebsa_k$() { + return this.localTime; + } + component4_7eebs9_k$() { + return this.playerArgs; + } + copy_q4m8b4_k$(keyword, page, localTime, playerArgs) { + return new KDynSearchReq(keyword, page, localTime, playerArgs); + } + copy(keyword, page, localTime, playerArgs, $super) { + keyword = keyword === VOID ? this.keyword : keyword; + page = page === VOID ? this.page : page; + localTime = localTime === VOID ? this.localTime : localTime; + playerArgs = playerArgs === VOID ? this.playerArgs : playerArgs; + return this.copy_q4m8b4_k$(keyword, page, localTime, playerArgs); + } + toString() { + return 'KDynSearchReq(keyword=' + this.keyword + ', page=' + this.page + ', localTime=' + this.localTime + ', playerArgs=' + this.playerArgs + ')'; + } + hashCode() { + var result = getStringHashCode(this.keyword); + result = imul(result, 31) + this.page | 0; + result = imul(result, 31) + this.localTime | 0; + result = imul(result, 31) + (this.playerArgs == null ? 0 : this.playerArgs.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KDynSearchReq)) + return false; + var tmp0_other_with_cast = other instanceof KDynSearchReq ? other : THROW_CCE(); + if (!(this.keyword === tmp0_other_with_cast.keyword)) + return false; + if (!(this.page === tmp0_other_with_cast.page)) + return false; + if (!(this.localTime === tmp0_other_with_cast.localTime)) + return false; + if (!equals(this.playerArgs, tmp0_other_with_cast.playerArgs)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KDynSearchReq_qu13c1_k$(seen1, keyword, page, localTime, playerArgs, serializationConstructorMarker) { + Companion_instance_829; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_816().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.keyword = ''; + else + $this.keyword = keyword; + if (0 === (seen1 & 2)) + $this.page = 0; + else + $this.page = page; + if (0 === (seen1 & 4)) + $this.localTime = 0; + else + $this.localTime = localTime; + if (0 === (seen1 & 8)) + $this.playerArgs = null; + else + $this.playerArgs = playerArgs; + return $this; + } + } + class Companion_830 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.DynSearchReply'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_817(); + } + } + class $serializer_817 { + constructor() { + $serializer_instance_817 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KDynSearchReply', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('channelInfo', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('searchTopic', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('searchInfo', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_822()), get_nullable($serializer_getInstance_819()), get_nullable($serializer_getInstance_818())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_822(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_819(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_818(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_822(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_819(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_818(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KDynSearchReply.new_com_bapis_bilibili_app_dynamic_v2_KDynSearchReply_qb5g2h_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_qtqcip_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.channelInfo == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_822(), value.channelInfo); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.searchTopic == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_819(), value.searchTopic); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.searchInfo == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_818(), value.searchInfo); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_qtqcip_k$(encoder, value instanceof KDynSearchReply ? value : THROW_CCE()); + } + } + class KDynSearchReply { + constructor(channelInfo, searchTopic, searchInfo) { + Companion_instance_830; + channelInfo = channelInfo === VOID ? null : channelInfo; + searchTopic = searchTopic === VOID ? null : searchTopic; + searchInfo = searchInfo === VOID ? null : searchInfo; + this.channelInfo = channelInfo; + this.searchTopic = searchTopic; + this.searchInfo = searchInfo; + } + get_channelInfo_if8354_k$() { + return this.channelInfo; + } + get_searchTopic_4t0sfy_k$() { + return this.searchTopic; + } + get_searchInfo_vxftoh_k$() { + return this.searchInfo; + } + component1_7eebsc_k$() { + return this.channelInfo; + } + component2_7eebsb_k$() { + return this.searchTopic; + } + component3_7eebsa_k$() { + return this.searchInfo; + } + copy_ea5jjr_k$(channelInfo, searchTopic, searchInfo) { + return new KDynSearchReply(channelInfo, searchTopic, searchInfo); + } + copy(channelInfo, searchTopic, searchInfo, $super) { + channelInfo = channelInfo === VOID ? this.channelInfo : channelInfo; + searchTopic = searchTopic === VOID ? this.searchTopic : searchTopic; + searchInfo = searchInfo === VOID ? this.searchInfo : searchInfo; + return this.copy_ea5jjr_k$(channelInfo, searchTopic, searchInfo); + } + toString() { + return 'KDynSearchReply(channelInfo=' + this.channelInfo + ', searchTopic=' + this.searchTopic + ', searchInfo=' + this.searchInfo + ')'; + } + hashCode() { + var result = this.channelInfo == null ? 0 : this.channelInfo.hashCode(); + result = imul(result, 31) + (this.searchTopic == null ? 0 : this.searchTopic.hashCode()) | 0; + result = imul(result, 31) + (this.searchInfo == null ? 0 : this.searchInfo.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KDynSearchReply)) + return false; + var tmp0_other_with_cast = other instanceof KDynSearchReply ? other : THROW_CCE(); + if (!equals(this.channelInfo, tmp0_other_with_cast.channelInfo)) + return false; + if (!equals(this.searchTopic, tmp0_other_with_cast.searchTopic)) + return false; + if (!equals(this.searchInfo, tmp0_other_with_cast.searchInfo)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KDynSearchReply_qb5g2h_k$(seen1, channelInfo, searchTopic, searchInfo, serializationConstructorMarker) { + Companion_instance_830; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_817().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.channelInfo = null; + else + $this.channelInfo = channelInfo; + if (0 === (seen1 & 2)) + $this.searchTopic = null; + else + $this.searchTopic = searchTopic; + if (0 === (seen1 & 4)) + $this.searchInfo = null; + else + $this.searchInfo = searchInfo; + return $this; + } + } + class Companion_831 { + constructor() { + Companion_instance_831 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, new ArrayListSerializer($serializer_getInstance_942()), null, null, null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.SearchInfo'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_818(); + } + } + class $serializer_818 { + constructor() { + $serializer_instance_818 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KSearchInfo', this, 6); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('list', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('trackId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('total', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('hasMore', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('version', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_831().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), tmp0_cached[1], StringSerializer_getInstance(), LongSerializer_getInstance(), BooleanSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = new Long(0, 0); + var tmp8_local4 = false; + var tmp9_local5 = null; + var tmp10_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp11_cached = Companion_getInstance_831().$childSerializers_1; + if (tmp10_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp10_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp11_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp10_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + } else + while (tmp1_flag) { + tmp2_index = tmp10_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp10_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp11_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp10_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp10_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSearchInfo.new_com_bapis_bilibili_app_dynamic_v2_KSearchInfo_ogxxfg_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); + } + serialize_8r0ng4_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_831().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !equals(value.list, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 1, tmp2_cached[1], value.list); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.trackId === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.trackId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !value.total.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 3, value.total); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.hasMore === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 4, value.hasMore); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.version === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.version); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_8r0ng4_k$(encoder, value instanceof KSearchInfo ? value : THROW_CCE()); + } + } + class KSearchInfo { + constructor(title, list, trackId, total, hasMore, version) { + Companion_getInstance_831(); + title = title === VOID ? '' : title; + list = list === VOID ? emptyList() : list; + trackId = trackId === VOID ? '' : trackId; + total = total === VOID ? new Long(0, 0) : total; + hasMore = hasMore === VOID ? false : hasMore; + version = version === VOID ? '' : version; + this.title = title; + this.list = list; + this.trackId = trackId; + this.total = total; + this.hasMore = hasMore; + this.version = version; + } + get_title_iz32un_k$() { + return this.title; + } + get_list_wopuqv_k$() { + return this.list; + } + get_trackId_gdy23n_k$() { + return this.trackId; + } + get_total_iz6wij_k$() { + return this.total; + } + get_hasMore_csdhd2_k$() { + return this.hasMore; + } + get_version_72w4j3_k$() { + return this.version; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.list; + } + component3_7eebsa_k$() { + return this.trackId; + } + component4_7eebs9_k$() { + return this.total; + } + component5_7eebs8_k$() { + return this.hasMore; + } + component6_7eebs7_k$() { + return this.version; + } + copy_58x4un_k$(title, list, trackId, total, hasMore, version) { + return new KSearchInfo(title, list, trackId, total, hasMore, version); + } + copy(title, list, trackId, total, hasMore, version, $super) { + title = title === VOID ? this.title : title; + list = list === VOID ? this.list : list; + trackId = trackId === VOID ? this.trackId : trackId; + total = total === VOID ? this.total : total; + hasMore = hasMore === VOID ? this.hasMore : hasMore; + version = version === VOID ? this.version : version; + return this.copy_58x4un_k$(title, list, trackId, total, hasMore, version); + } + toString() { + return 'KSearchInfo(title=' + this.title + ', list=' + this.list + ', trackId=' + this.trackId + ', total=' + this.total.toString() + ', hasMore=' + this.hasMore + ', version=' + this.version + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + hashCode(this.list) | 0; + result = imul(result, 31) + getStringHashCode(this.trackId) | 0; + result = imul(result, 31) + this.total.hashCode() | 0; + result = imul(result, 31) + getBooleanHashCode(this.hasMore) | 0; + result = imul(result, 31) + getStringHashCode(this.version) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSearchInfo)) + return false; + var tmp0_other_with_cast = other instanceof KSearchInfo ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!equals(this.list, tmp0_other_with_cast.list)) + return false; + if (!(this.trackId === tmp0_other_with_cast.trackId)) + return false; + if (!this.total.equals(tmp0_other_with_cast.total)) + return false; + if (!(this.hasMore === tmp0_other_with_cast.hasMore)) + return false; + if (!(this.version === tmp0_other_with_cast.version)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KSearchInfo_ogxxfg_k$(seen1, title, list, trackId, total, hasMore, version, serializationConstructorMarker) { + Companion_getInstance_831(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_818().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.list = emptyList(); + else + $this.list = list; + if (0 === (seen1 & 4)) + $this.trackId = ''; + else + $this.trackId = trackId; + if (0 === (seen1 & 8)) + $this.total = new Long(0, 0); + else + $this.total = total; + if (0 === (seen1 & 16)) + $this.hasMore = false; + else + $this.hasMore = hasMore; + if (0 === (seen1 & 32)) + $this.version = ''; + else + $this.version = version; + return $this; + } + } + class Companion_832 { + constructor() { + Companion_instance_832 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, new ArrayListSerializer($serializer_getInstance_821())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.SearchTopic'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_819(); + } + } + class $serializer_819 { + constructor() { + $serializer_instance_819 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KSearchTopic', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('moreButton', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('items', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_832().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), get_nullable($serializer_getInstance_820()), tmp0_cached[2]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp8_cached = Companion_getInstance_832().$childSerializers_1; + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_820(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp8_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_820(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp8_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSearchTopic.new_com_bapis_bilibili_app_dynamic_v2_KSearchTopic_dr6ux5_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_p9ho5x_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_832().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.moreButton == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_820(), value.moreButton); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !equals(value.items, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 2, tmp2_cached[2], value.items); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_p9ho5x_k$(encoder, value instanceof KSearchTopic ? value : THROW_CCE()); + } + } + class KSearchTopic { + constructor(title, moreButton, items) { + Companion_getInstance_832(); + title = title === VOID ? '' : title; + moreButton = moreButton === VOID ? null : moreButton; + items = items === VOID ? emptyList() : items; + this.title = title; + this.moreButton = moreButton; + this.items = items; + } + get_title_iz32un_k$() { + return this.title; + } + get_moreButton_rkohw0_k$() { + return this.moreButton; + } + get_items_it823b_k$() { + return this.items; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.moreButton; + } + component3_7eebsa_k$() { + return this.items; + } + copy_23tutv_k$(title, moreButton, items) { + return new KSearchTopic(title, moreButton, items); + } + copy(title, moreButton, items, $super) { + title = title === VOID ? this.title : title; + moreButton = moreButton === VOID ? this.moreButton : moreButton; + items = items === VOID ? this.items : items; + return this.copy_23tutv_k$(title, moreButton, items); + } + toString() { + return 'KSearchTopic(title=' + this.title + ', moreButton=' + this.moreButton + ', items=' + this.items + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + (this.moreButton == null ? 0 : this.moreButton.hashCode()) | 0; + result = imul(result, 31) + hashCode(this.items) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSearchTopic)) + return false; + var tmp0_other_with_cast = other instanceof KSearchTopic ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!equals(this.moreButton, tmp0_other_with_cast.moreButton)) + return false; + if (!equals(this.items, tmp0_other_with_cast.items)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KSearchTopic_dr6ux5_k$(seen1, title, moreButton, items, serializationConstructorMarker) { + Companion_getInstance_832(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_819().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.moreButton = null; + else + $this.moreButton = moreButton; + if (0 === (seen1 & 4)) + $this.items = emptyList(); + else + $this.items = items; + return $this; + } + } + class Companion_833 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.SearchTopicButton'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_820(); + } + } + class $serializer_820 { + constructor() { + $serializer_instance_820 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KSearchTopicButton', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('jumpUri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSearchTopicButton.new_com_bapis_bilibili_app_dynamic_v2_KSearchTopicButton_4119yp_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_ifs3ur_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.jumpUri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.jumpUri); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_ifs3ur_k$(encoder, value instanceof KSearchTopicButton ? value : THROW_CCE()); + } + } + class KSearchTopicButton { + constructor(title, jumpUri) { + Companion_instance_833; + title = title === VOID ? '' : title; + jumpUri = jumpUri === VOID ? '' : jumpUri; + this.title = title; + this.jumpUri = jumpUri; + } + get_title_iz32un_k$() { + return this.title; + } + get_jumpUri_jhqikr_k$() { + return this.jumpUri; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.jumpUri; + } + copy_plwnsl_k$(title, jumpUri) { + return new KSearchTopicButton(title, jumpUri); + } + copy(title, jumpUri, $super) { + title = title === VOID ? this.title : title; + jumpUri = jumpUri === VOID ? this.jumpUri : jumpUri; + return this.copy_plwnsl_k$(title, jumpUri); + } + toString() { + return 'KSearchTopicButton(title=' + this.title + ', jumpUri=' + this.jumpUri + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.jumpUri) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSearchTopicButton)) + return false; + var tmp0_other_with_cast = other instanceof KSearchTopicButton ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.jumpUri === tmp0_other_with_cast.jumpUri)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KSearchTopicButton_4119yp_k$(seen1, title, jumpUri, serializationConstructorMarker) { + Companion_instance_833; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_820().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.jumpUri = ''; + else + $this.jumpUri = jumpUri; + return $this; + } + } + class Companion_834 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.SearchTopicItem'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_821(); + } + } + class $serializer_821 { + constructor() { + $serializer_instance_821 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KSearchTopicItem', this, 9); + tmp0_serialDesc.addElement_5pzumi_k$('topicId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('topicName', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('desc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('url', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('isActivity', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('tagIcon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('descLong', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('tagText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), BooleanSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = false; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_local8 = null; + var tmp13_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp13_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp13_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + } else + while (tmp1_flag) { + tmp2_index = tmp13_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp13_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp13_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSearchTopicItem.new_com_bapis_bilibili_app_dynamic_v2_KSearchTopicItem_c945m_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, null); + } + serialize_h4sp6m_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.topicId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.topicId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.topicName === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.topicName); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.desc === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.desc); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.url === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.url); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.isActivity === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 4, value.isActivity); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.tagIcon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.tagIcon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.descLong === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.descLong); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.cover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.tagText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 8, value.tagText); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_h4sp6m_k$(encoder, value instanceof KSearchTopicItem ? value : THROW_CCE()); + } + } + class KSearchTopicItem { + constructor(topicId, topicName, desc, url, isActivity, tagIcon, descLong, cover, tagText) { + Companion_instance_834; + topicId = topicId === VOID ? new Long(0, 0) : topicId; + topicName = topicName === VOID ? '' : topicName; + desc = desc === VOID ? '' : desc; + url = url === VOID ? '' : url; + isActivity = isActivity === VOID ? false : isActivity; + tagIcon = tagIcon === VOID ? '' : tagIcon; + descLong = descLong === VOID ? '' : descLong; + cover = cover === VOID ? '' : cover; + tagText = tagText === VOID ? '' : tagText; + this.topicId = topicId; + this.topicName = topicName; + this.desc = desc; + this.url = url; + this.isActivity = isActivity; + this.tagIcon = tagIcon; + this.descLong = descLong; + this.cover = cover; + this.tagText = tagText; + } + get_topicId_hkqce7_k$() { + return this.topicId; + } + get_topicName_exnelt_k$() { + return this.topicName; + } + get_desc_woknve_k$() { + return this.desc; + } + get_url_18iuii_k$() { + return this.url; + } + get_isActivity_acnboi_k$() { + return this.isActivity; + } + get_tagIcon_ocvlx2_k$() { + return this.tagIcon; + } + get_descLong_eze0ei_k$() { + return this.descLong; + } + get_cover_ipug0e_k$() { + return this.cover; + } + get_tagText_ocojcy_k$() { + return this.tagText; + } + component1_7eebsc_k$() { + return this.topicId; + } + component2_7eebsb_k$() { + return this.topicName; + } + component3_7eebsa_k$() { + return this.desc; + } + component4_7eebs9_k$() { + return this.url; + } + component5_7eebs8_k$() { + return this.isActivity; + } + component6_7eebs7_k$() { + return this.tagIcon; + } + component7_7eebs6_k$() { + return this.descLong; + } + component8_7eebs5_k$() { + return this.cover; + } + component9_7eebs4_k$() { + return this.tagText; + } + copy_1gdin2_k$(topicId, topicName, desc, url, isActivity, tagIcon, descLong, cover, tagText) { + return new KSearchTopicItem(topicId, topicName, desc, url, isActivity, tagIcon, descLong, cover, tagText); + } + copy(topicId, topicName, desc, url, isActivity, tagIcon, descLong, cover, tagText, $super) { + topicId = topicId === VOID ? this.topicId : topicId; + topicName = topicName === VOID ? this.topicName : topicName; + desc = desc === VOID ? this.desc : desc; + url = url === VOID ? this.url : url; + isActivity = isActivity === VOID ? this.isActivity : isActivity; + tagIcon = tagIcon === VOID ? this.tagIcon : tagIcon; + descLong = descLong === VOID ? this.descLong : descLong; + cover = cover === VOID ? this.cover : cover; + tagText = tagText === VOID ? this.tagText : tagText; + return this.copy_1gdin2_k$(topicId, topicName, desc, url, isActivity, tagIcon, descLong, cover, tagText); + } + toString() { + return 'KSearchTopicItem(topicId=' + this.topicId.toString() + ', topicName=' + this.topicName + ', desc=' + this.desc + ', url=' + this.url + ', isActivity=' + this.isActivity + ', tagIcon=' + this.tagIcon + ', descLong=' + this.descLong + ', cover=' + this.cover + ', tagText=' + this.tagText + ')'; + } + hashCode() { + var result = this.topicId.hashCode(); + result = imul(result, 31) + getStringHashCode(this.topicName) | 0; + result = imul(result, 31) + getStringHashCode(this.desc) | 0; + result = imul(result, 31) + getStringHashCode(this.url) | 0; + result = imul(result, 31) + getBooleanHashCode(this.isActivity) | 0; + result = imul(result, 31) + getStringHashCode(this.tagIcon) | 0; + result = imul(result, 31) + getStringHashCode(this.descLong) | 0; + result = imul(result, 31) + getStringHashCode(this.cover) | 0; + result = imul(result, 31) + getStringHashCode(this.tagText) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSearchTopicItem)) + return false; + var tmp0_other_with_cast = other instanceof KSearchTopicItem ? other : THROW_CCE(); + if (!this.topicId.equals(tmp0_other_with_cast.topicId)) + return false; + if (!(this.topicName === tmp0_other_with_cast.topicName)) + return false; + if (!(this.desc === tmp0_other_with_cast.desc)) + return false; + if (!(this.url === tmp0_other_with_cast.url)) + return false; + if (!(this.isActivity === tmp0_other_with_cast.isActivity)) + return false; + if (!(this.tagIcon === tmp0_other_with_cast.tagIcon)) + return false; + if (!(this.descLong === tmp0_other_with_cast.descLong)) + return false; + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + if (!(this.tagText === tmp0_other_with_cast.tagText)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KSearchTopicItem_c945m_k$(seen1, topicId, topicName, desc, url, isActivity, tagIcon, descLong, cover, tagText, serializationConstructorMarker) { + Companion_instance_834; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_821().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.topicId = new Long(0, 0); + else + $this.topicId = topicId; + if (0 === (seen1 & 2)) + $this.topicName = ''; + else + $this.topicName = topicName; + if (0 === (seen1 & 4)) + $this.desc = ''; + else + $this.desc = desc; + if (0 === (seen1 & 8)) + $this.url = ''; + else + $this.url = url; + if (0 === (seen1 & 16)) + $this.isActivity = false; + else + $this.isActivity = isActivity; + if (0 === (seen1 & 32)) + $this.tagIcon = ''; + else + $this.tagIcon = tagIcon; + if (0 === (seen1 & 64)) + $this.descLong = ''; + else + $this.descLong = descLong; + if (0 === (seen1 & 128)) + $this.cover = ''; + else + $this.cover = cover; + if (0 === (seen1 & 256)) + $this.tagText = ''; + else + $this.tagText = tagText; + return $this; + } + } + class Companion_835 { + constructor() { + Companion_instance_835 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, new ArrayListSerializer($serializer_getInstance_823())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.SearchChannel'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_822(); + } + } + class $serializer_822 { + constructor() { + $serializer_instance_822 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KSearchChannel', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('moreButton', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('channels', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_835().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), get_nullable($serializer_getInstance_820()), tmp0_cached[2]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp8_cached = Companion_getInstance_835().$childSerializers_1; + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_820(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp8_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_820(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp8_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSearchChannel.new_com_bapis_bilibili_app_dynamic_v2_KSearchChannel_7fkhq_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_t4zr3_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_835().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.moreButton == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_820(), value.moreButton); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !equals(value.channels, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 2, tmp2_cached[2], value.channels); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_t4zr3_k$(encoder, value instanceof KSearchChannel ? value : THROW_CCE()); + } + } + class KSearchChannel { + constructor(title, moreButton, channels) { + Companion_getInstance_835(); + title = title === VOID ? '' : title; + moreButton = moreButton === VOID ? null : moreButton; + channels = channels === VOID ? emptyList() : channels; + this.title = title; + this.moreButton = moreButton; + this.channels = channels; + } + get_title_iz32un_k$() { + return this.title; + } + get_moreButton_rkohw0_k$() { + return this.moreButton; + } + get_channels_83zl9j_k$() { + return this.channels; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.moreButton; + } + component3_7eebsa_k$() { + return this.channels; + } + copy_ip3hno_k$(title, moreButton, channels) { + return new KSearchChannel(title, moreButton, channels); + } + copy(title, moreButton, channels, $super) { + title = title === VOID ? this.title : title; + moreButton = moreButton === VOID ? this.moreButton : moreButton; + channels = channels === VOID ? this.channels : channels; + return this.copy_ip3hno_k$(title, moreButton, channels); + } + toString() { + return 'KSearchChannel(title=' + this.title + ', moreButton=' + this.moreButton + ', channels=' + this.channels + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + (this.moreButton == null ? 0 : this.moreButton.hashCode()) | 0; + result = imul(result, 31) + hashCode(this.channels) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSearchChannel)) + return false; + var tmp0_other_with_cast = other instanceof KSearchChannel ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!equals(this.moreButton, tmp0_other_with_cast.moreButton)) + return false; + if (!equals(this.channels, tmp0_other_with_cast.channels)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KSearchChannel_7fkhq_k$(seen1, title, moreButton, channels, serializationConstructorMarker) { + Companion_getInstance_835(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_822().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.moreButton = null; + else + $this.moreButton = moreButton; + if (0 === (seen1 & 4)) + $this.channels = emptyList(); + else + $this.channels = channels; + return $this; + } + } + class Companion_836 { + constructor() { + Companion_instance_836 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, null, null, new ArrayListSerializer($serializer_getInstance_810()), null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.ChannelInfo'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_823(); + } + } + class $serializer_823 { + constructor() { + $serializer_instance_823 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KChannelInfo', this, 8); + tmp0_serialDesc.addElement_5pzumi_k$('channelId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('channelName', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('desc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('isAtten', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('typeIcon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('items', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('icon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('jumpUri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_836().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), BooleanSerializer_getInstance(), StringSerializer_getInstance(), tmp0_cached[5], StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = false; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp13_cached = Companion_getInstance_836().$childSerializers_1; + if (tmp12_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp12_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp12_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 5, tmp13_cached[5], tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + } else + while (tmp1_flag) { + tmp2_index = tmp12_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp12_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp12_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 5, tmp13_cached[5], tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp12_input.endStructure_1xqz0n_k$(tmp0_desc); + return KChannelInfo.new_com_bapis_bilibili_app_dynamic_v2_KChannelInfo_481626_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null); + } + serialize_yqpfh1_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_836().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.channelId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.channelId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.channelName === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.channelName); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.desc === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.desc); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.isAtten === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 3, value.isAtten); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.typeIcon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.typeIcon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !equals(value.items, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 5, tmp2_cached[5], value.items); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.icon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.icon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.jumpUri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.jumpUri); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_yqpfh1_k$(encoder, value instanceof KChannelInfo ? value : THROW_CCE()); + } + } + class KChannelInfo { + constructor(channelId, channelName, desc, isAtten, typeIcon, items, icon, jumpUri) { + Companion_getInstance_836(); + channelId = channelId === VOID ? new Long(0, 0) : channelId; + channelName = channelName === VOID ? '' : channelName; + desc = desc === VOID ? '' : desc; + isAtten = isAtten === VOID ? false : isAtten; + typeIcon = typeIcon === VOID ? '' : typeIcon; + items = items === VOID ? emptyList() : items; + icon = icon === VOID ? '' : icon; + jumpUri = jumpUri === VOID ? '' : jumpUri; + this.channelId = channelId; + this.channelName = channelName; + this.desc = desc; + this.isAtten = isAtten; + this.typeIcon = typeIcon; + this.items = items; + this.icon = icon; + this.jumpUri = jumpUri; + } + get_channelId_wosvrp_k$() { + return this.channelId; + } + get_channelName_ifb0lh_k$() { + return this.channelName; + } + get_desc_woknve_k$() { + return this.desc; + } + get_isAtten_z8s8wn_k$() { + return this.isAtten; + } + get_typeIcon_s1b9gc_k$() { + return this.typeIcon; + } + get_items_it823b_k$() { + return this.items; + } + get_icon_wont8i_k$() { + return this.icon; + } + get_jumpUri_jhqikr_k$() { + return this.jumpUri; + } + component1_7eebsc_k$() { + return this.channelId; + } + component2_7eebsb_k$() { + return this.channelName; + } + component3_7eebsa_k$() { + return this.desc; + } + component4_7eebs9_k$() { + return this.isAtten; + } + component5_7eebs8_k$() { + return this.typeIcon; + } + component6_7eebs7_k$() { + return this.items; + } + component7_7eebs6_k$() { + return this.icon; + } + component8_7eebs5_k$() { + return this.jumpUri; + } + copy_3bnfcy_k$(channelId, channelName, desc, isAtten, typeIcon, items, icon, jumpUri) { + return new KChannelInfo(channelId, channelName, desc, isAtten, typeIcon, items, icon, jumpUri); + } + copy(channelId, channelName, desc, isAtten, typeIcon, items, icon, jumpUri, $super) { + channelId = channelId === VOID ? this.channelId : channelId; + channelName = channelName === VOID ? this.channelName : channelName; + desc = desc === VOID ? this.desc : desc; + isAtten = isAtten === VOID ? this.isAtten : isAtten; + typeIcon = typeIcon === VOID ? this.typeIcon : typeIcon; + items = items === VOID ? this.items : items; + icon = icon === VOID ? this.icon : icon; + jumpUri = jumpUri === VOID ? this.jumpUri : jumpUri; + return this.copy_3bnfcy_k$(channelId, channelName, desc, isAtten, typeIcon, items, icon, jumpUri); + } + toString() { + return 'KChannelInfo(channelId=' + this.channelId.toString() + ', channelName=' + this.channelName + ', desc=' + this.desc + ', isAtten=' + this.isAtten + ', typeIcon=' + this.typeIcon + ', items=' + this.items + ', icon=' + this.icon + ', jumpUri=' + this.jumpUri + ')'; + } + hashCode() { + var result = this.channelId.hashCode(); + result = imul(result, 31) + getStringHashCode(this.channelName) | 0; + result = imul(result, 31) + getStringHashCode(this.desc) | 0; + result = imul(result, 31) + getBooleanHashCode(this.isAtten) | 0; + result = imul(result, 31) + getStringHashCode(this.typeIcon) | 0; + result = imul(result, 31) + hashCode(this.items) | 0; + result = imul(result, 31) + getStringHashCode(this.icon) | 0; + result = imul(result, 31) + getStringHashCode(this.jumpUri) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KChannelInfo)) + return false; + var tmp0_other_with_cast = other instanceof KChannelInfo ? other : THROW_CCE(); + if (!this.channelId.equals(tmp0_other_with_cast.channelId)) + return false; + if (!(this.channelName === tmp0_other_with_cast.channelName)) + return false; + if (!(this.desc === tmp0_other_with_cast.desc)) + return false; + if (!(this.isAtten === tmp0_other_with_cast.isAtten)) + return false; + if (!(this.typeIcon === tmp0_other_with_cast.typeIcon)) + return false; + if (!equals(this.items, tmp0_other_with_cast.items)) + return false; + if (!(this.icon === tmp0_other_with_cast.icon)) + return false; + if (!(this.jumpUri === tmp0_other_with_cast.jumpUri)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KChannelInfo_481626_k$(seen1, channelId, channelName, desc, isAtten, typeIcon, items, icon, jumpUri, serializationConstructorMarker) { + Companion_getInstance_836(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_823().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.channelId = new Long(0, 0); + else + $this.channelId = channelId; + if (0 === (seen1 & 2)) + $this.channelName = ''; + else + $this.channelName = channelName; + if (0 === (seen1 & 4)) + $this.desc = ''; + else + $this.desc = desc; + if (0 === (seen1 & 8)) + $this.isAtten = false; + else + $this.isAtten = isAtten; + if (0 === (seen1 & 16)) + $this.typeIcon = ''; + else + $this.typeIcon = typeIcon; + if (0 === (seen1 & 32)) + $this.items = emptyList(); + else + $this.items = items; + if (0 === (seen1 & 64)) + $this.icon = ''; + else + $this.icon = icon; + if (0 === (seen1 & 128)) + $this.jumpUri = ''; + else + $this.jumpUri = jumpUri; + return $this; + } + } + class Companion_837 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.SetDecisionReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_824(); + } + } + class $serializer_824 { + constructor() { + $serializer_instance_824 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KSetDecisionReq', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('result', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('fromType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = 0; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSetDecisionReq.new_com_bapis_bilibili_app_dynamic_v2_KSetDecisionReq_81bqgw_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_agh43a_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.result === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.result); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.fromType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.fromType); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_agh43a_k$(encoder, value instanceof KSetDecisionReq ? value : THROW_CCE()); + } + } + class KSetDecisionReq { + constructor(result, fromType) { + Companion_instance_837; + result = result === VOID ? 0 : result; + fromType = fromType === VOID ? 0 : fromType; + this.result = result; + this.fromType = fromType; + } + get_result_iyg5d2_k$() { + return this.result; + } + get_fromType_in58el_k$() { + return this.fromType; + } + fromTypeEnum() { + return Companion_getInstance_746().fromValue(this.fromType); + } + component1_7eebsc_k$() { + return this.result; + } + component2_7eebsb_k$() { + return this.fromType; + } + copy_fhtu3_k$(result, fromType) { + return new KSetDecisionReq(result, fromType); + } + copy(result, fromType, $super) { + result = result === VOID ? this.result : result; + fromType = fromType === VOID ? this.fromType : fromType; + return this.copy_fhtu3_k$(result, fromType); + } + toString() { + return 'KSetDecisionReq(result=' + this.result + ', fromType=' + this.fromType + ')'; + } + hashCode() { + var result = this.result; + result = imul(result, 31) + this.fromType | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSetDecisionReq)) + return false; + var tmp0_other_with_cast = other instanceof KSetDecisionReq ? other : THROW_CCE(); + if (!(this.result === tmp0_other_with_cast.result)) + return false; + if (!(this.fromType === tmp0_other_with_cast.fromType)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KSetDecisionReq_81bqgw_k$(seen1, result, fromType, serializationConstructorMarker) { + Companion_instance_837; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_824().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.result = 0; + else + $this.result = result; + if (0 === (seen1 & 2)) + $this.fromType = 0; + else + $this.fromType = fromType; + return $this; + } + } + class Companion_838 { + constructor() { + Companion_instance_838 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, new ArrayListSerializer($serializer_getInstance_826()), null, null, new ArrayListSerializer($serializer_getInstance_827()), null, null, null, null, null, null, null, null, null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.CampusTop'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_825(); + } + } + class $serializer_825 { + constructor() { + $serializer_instance_825 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KCampusTop', this, 16); + tmp0_serialDesc.addElement_5pzumi_k$('campusId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('campusName', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('tabs', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('switchLabel', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('banner', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('inviteLabel', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('notice', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('topicSquare', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('campusBadge', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('campusBackground', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('campusMotto', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + tmp0_serialDesc.addElement_5pzumi_k$('mngEntry', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(13)); + tmp0_serialDesc.addElement_5pzumi_k$('campusIntro', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(14)); + tmp0_serialDesc.addElement_5pzumi_k$('campusNameLink', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(15)); + tmp0_serialDesc.addElement_5pzumi_k$('bottomLeftText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(16)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_838().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance(), tmp0_cached[2], get_nullable($serializer_getInstance_837()), StringSerializer_getInstance(), tmp0_cached[5], get_nullable($serializer_getInstance_837()), get_nullable($serializer_getInstance_828()), get_nullable($serializer_getInstance_869()), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_837()), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_local8 = null; + var tmp13_local9 = null; + var tmp14_local10 = null; + var tmp15_local11 = null; + var tmp16_local12 = null; + var tmp17_local13 = null; + var tmp18_local14 = null; + var tmp19_local15 = null; + var tmp20_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp21_cached = Companion_getInstance_838().$childSerializers_1; + if (tmp20_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp20_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp20_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp21_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_837(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp20_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 5, tmp21_cached[5], tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_837(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_828(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_869(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + tmp16_local12 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 12, $serializer_getInstance_837(), tmp16_local12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + tmp17_local13 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + tmp18_local14 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + tmp19_local15 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + } else + while (tmp1_flag) { + tmp2_index = tmp20_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp20_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp20_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp21_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_837(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp20_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 5, tmp21_cached[5], tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_837(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_828(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_869(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + case 12: + tmp16_local12 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 12, $serializer_getInstance_837(), tmp16_local12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + break; + case 13: + tmp17_local13 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + break; + case 14: + tmp18_local14 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + break; + case 15: + tmp19_local15 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp20_input.endStructure_1xqz0n_k$(tmp0_desc); + return KCampusTop.new_com_bapis_bilibili_app_dynamic_v2_KCampusTop_ncopco_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, tmp18_local14, tmp19_local15, null); + } + serialize_2qpau2_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_838().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.campusId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.campusId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.campusName === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.campusName); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !equals(value.tabs, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 2, tmp2_cached[2], value.tabs); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.switchLabel == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_837(), value.switchLabel); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !equals(value.banner, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 5, tmp2_cached[5], value.banner); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.inviteLabel == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 6, $serializer_getInstance_837(), value.inviteLabel); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.notice == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 7, $serializer_getInstance_828(), value.notice); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.topicSquare == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 8, $serializer_getInstance_869(), value.topicSquare); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.campusBadge === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 9, value.campusBadge); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.campusBackground === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 10, value.campusBackground); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.campusMotto === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 11, value.campusMotto); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !(value.mngEntry == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 12, $serializer_getInstance_837(), value.mngEntry); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 13) ? true : !(value.campusIntro === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 13, value.campusIntro); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 14) ? true : !(value.campusNameLink === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 14, value.campusNameLink); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 15) ? true : !(value.bottomLeftText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 15, value.bottomLeftText); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_2qpau2_k$(encoder, value instanceof KCampusTop ? value : THROW_CCE()); + } + } + class KCampusTop { + constructor(campusId, campusName, tabs, switchLabel, title, banner, inviteLabel, notice, topicSquare, campusBadge, campusBackground, campusMotto, mngEntry, campusIntro, campusNameLink, bottomLeftText) { + Companion_getInstance_838(); + campusId = campusId === VOID ? new Long(0, 0) : campusId; + campusName = campusName === VOID ? '' : campusName; + tabs = tabs === VOID ? emptyList() : tabs; + switchLabel = switchLabel === VOID ? null : switchLabel; + title = title === VOID ? '' : title; + banner = banner === VOID ? emptyList() : banner; + inviteLabel = inviteLabel === VOID ? null : inviteLabel; + notice = notice === VOID ? null : notice; + topicSquare = topicSquare === VOID ? null : topicSquare; + campusBadge = campusBadge === VOID ? '' : campusBadge; + campusBackground = campusBackground === VOID ? '' : campusBackground; + campusMotto = campusMotto === VOID ? '' : campusMotto; + mngEntry = mngEntry === VOID ? null : mngEntry; + campusIntro = campusIntro === VOID ? '' : campusIntro; + campusNameLink = campusNameLink === VOID ? '' : campusNameLink; + bottomLeftText = bottomLeftText === VOID ? '' : bottomLeftText; + this.campusId = campusId; + this.campusName = campusName; + this.tabs = tabs; + this.switchLabel = switchLabel; + this.title = title; + this.banner = banner; + this.inviteLabel = inviteLabel; + this.notice = notice; + this.topicSquare = topicSquare; + this.campusBadge = campusBadge; + this.campusBackground = campusBackground; + this.campusMotto = campusMotto; + this.mngEntry = mngEntry; + this.campusIntro = campusIntro; + this.campusNameLink = campusNameLink; + this.bottomLeftText = bottomLeftText; + } + get_campusId_y3vqhp_k$() { + return this.campusId; + } + get_campusName_wd5obx_k$() { + return this.campusName; + } + get_tabs_wousav_k$() { + return this.tabs; + } + get_switchLabel_m7x93d_k$() { + return this.switchLabel; + } + get_title_iz32un_k$() { + return this.title; + } + get_banner_bbfodx_k$() { + return this.banner; + } + get_inviteLabel_b9txxa_k$() { + return this.inviteLabel; + } + get_notice_h7rzkx_k$() { + return this.notice; + } + get_topicSquare_6n7q9v_k$() { + return this.topicSquare; + } + get_campusBadge_92ww9x_k$() { + return this.campusBadge; + } + get_campusBackground_llxi2y_k$() { + return this.campusBackground; + } + get_campusMotto_8wlvqz_k$() { + return this.campusMotto; + } + get_mngEntry_f8t245_k$() { + return this.mngEntry; + } + get_campusIntro_8ytp5o_k$() { + return this.campusIntro; + } + get_campusNameLink_lf2ur1_k$() { + return this.campusNameLink; + } + get_bottomLeftText_ga0f6g_k$() { + return this.bottomLeftText; + } + component1_7eebsc_k$() { + return this.campusId; + } + component2_7eebsb_k$() { + return this.campusName; + } + component3_7eebsa_k$() { + return this.tabs; + } + component4_7eebs9_k$() { + return this.switchLabel; + } + component5_7eebs8_k$() { + return this.title; + } + component6_7eebs7_k$() { + return this.banner; + } + component7_7eebs6_k$() { + return this.inviteLabel; + } + component8_7eebs5_k$() { + return this.notice; + } + component9_7eebs4_k$() { + return this.topicSquare; + } + component10_gazzfo_k$() { + return this.campusBadge; + } + component11_gazzfn_k$() { + return this.campusBackground; + } + component12_gazzfm_k$() { + return this.campusMotto; + } + component13_gazzfl_k$() { + return this.mngEntry; + } + component14_gazzfk_k$() { + return this.campusIntro; + } + component15_gazzfj_k$() { + return this.campusNameLink; + } + component16_gazzfi_k$() { + return this.bottomLeftText; + } + copy_og78kp_k$(campusId, campusName, tabs, switchLabel, title, banner, inviteLabel, notice, topicSquare, campusBadge, campusBackground, campusMotto, mngEntry, campusIntro, campusNameLink, bottomLeftText) { + return new KCampusTop(campusId, campusName, tabs, switchLabel, title, banner, inviteLabel, notice, topicSquare, campusBadge, campusBackground, campusMotto, mngEntry, campusIntro, campusNameLink, bottomLeftText); + } + copy(campusId, campusName, tabs, switchLabel, title, banner, inviteLabel, notice, topicSquare, campusBadge, campusBackground, campusMotto, mngEntry, campusIntro, campusNameLink, bottomLeftText, $super) { + campusId = campusId === VOID ? this.campusId : campusId; + campusName = campusName === VOID ? this.campusName : campusName; + tabs = tabs === VOID ? this.tabs : tabs; + switchLabel = switchLabel === VOID ? this.switchLabel : switchLabel; + title = title === VOID ? this.title : title; + banner = banner === VOID ? this.banner : banner; + inviteLabel = inviteLabel === VOID ? this.inviteLabel : inviteLabel; + notice = notice === VOID ? this.notice : notice; + topicSquare = topicSquare === VOID ? this.topicSquare : topicSquare; + campusBadge = campusBadge === VOID ? this.campusBadge : campusBadge; + campusBackground = campusBackground === VOID ? this.campusBackground : campusBackground; + campusMotto = campusMotto === VOID ? this.campusMotto : campusMotto; + mngEntry = mngEntry === VOID ? this.mngEntry : mngEntry; + campusIntro = campusIntro === VOID ? this.campusIntro : campusIntro; + campusNameLink = campusNameLink === VOID ? this.campusNameLink : campusNameLink; + bottomLeftText = bottomLeftText === VOID ? this.bottomLeftText : bottomLeftText; + return this.copy_og78kp_k$(campusId, campusName, tabs, switchLabel, title, banner, inviteLabel, notice, topicSquare, campusBadge, campusBackground, campusMotto, mngEntry, campusIntro, campusNameLink, bottomLeftText); + } + toString() { + return 'KCampusTop(campusId=' + this.campusId.toString() + ', campusName=' + this.campusName + ', tabs=' + this.tabs + ', switchLabel=' + this.switchLabel + ', title=' + this.title + ', banner=' + this.banner + ', inviteLabel=' + this.inviteLabel + ', notice=' + this.notice + ', topicSquare=' + this.topicSquare + ', campusBadge=' + this.campusBadge + ', campusBackground=' + this.campusBackground + ', campusMotto=' + this.campusMotto + ', mngEntry=' + this.mngEntry + ', campusIntro=' + this.campusIntro + ', campusNameLink=' + this.campusNameLink + ', bottomLeftText=' + this.bottomLeftText + ')'; + } + hashCode() { + var result = this.campusId.hashCode(); + result = imul(result, 31) + getStringHashCode(this.campusName) | 0; + result = imul(result, 31) + hashCode(this.tabs) | 0; + result = imul(result, 31) + (this.switchLabel == null ? 0 : this.switchLabel.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.title) | 0; + result = imul(result, 31) + hashCode(this.banner) | 0; + result = imul(result, 31) + (this.inviteLabel == null ? 0 : this.inviteLabel.hashCode()) | 0; + result = imul(result, 31) + (this.notice == null ? 0 : this.notice.hashCode()) | 0; + result = imul(result, 31) + (this.topicSquare == null ? 0 : this.topicSquare.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.campusBadge) | 0; + result = imul(result, 31) + getStringHashCode(this.campusBackground) | 0; + result = imul(result, 31) + getStringHashCode(this.campusMotto) | 0; + result = imul(result, 31) + (this.mngEntry == null ? 0 : this.mngEntry.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.campusIntro) | 0; + result = imul(result, 31) + getStringHashCode(this.campusNameLink) | 0; + result = imul(result, 31) + getStringHashCode(this.bottomLeftText) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KCampusTop)) + return false; + var tmp0_other_with_cast = other instanceof KCampusTop ? other : THROW_CCE(); + if (!this.campusId.equals(tmp0_other_with_cast.campusId)) + return false; + if (!(this.campusName === tmp0_other_with_cast.campusName)) + return false; + if (!equals(this.tabs, tmp0_other_with_cast.tabs)) + return false; + if (!equals(this.switchLabel, tmp0_other_with_cast.switchLabel)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!equals(this.banner, tmp0_other_with_cast.banner)) + return false; + if (!equals(this.inviteLabel, tmp0_other_with_cast.inviteLabel)) + return false; + if (!equals(this.notice, tmp0_other_with_cast.notice)) + return false; + if (!equals(this.topicSquare, tmp0_other_with_cast.topicSquare)) + return false; + if (!(this.campusBadge === tmp0_other_with_cast.campusBadge)) + return false; + if (!(this.campusBackground === tmp0_other_with_cast.campusBackground)) + return false; + if (!(this.campusMotto === tmp0_other_with_cast.campusMotto)) + return false; + if (!equals(this.mngEntry, tmp0_other_with_cast.mngEntry)) + return false; + if (!(this.campusIntro === tmp0_other_with_cast.campusIntro)) + return false; + if (!(this.campusNameLink === tmp0_other_with_cast.campusNameLink)) + return false; + if (!(this.bottomLeftText === tmp0_other_with_cast.bottomLeftText)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KCampusTop_ncopco_k$(seen1, campusId, campusName, tabs, switchLabel, title, banner, inviteLabel, notice, topicSquare, campusBadge, campusBackground, campusMotto, mngEntry, campusIntro, campusNameLink, bottomLeftText, serializationConstructorMarker) { + Companion_getInstance_838(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_825().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.campusId = new Long(0, 0); + else + $this.campusId = campusId; + if (0 === (seen1 & 2)) + $this.campusName = ''; + else + $this.campusName = campusName; + if (0 === (seen1 & 4)) + $this.tabs = emptyList(); + else + $this.tabs = tabs; + if (0 === (seen1 & 8)) + $this.switchLabel = null; + else + $this.switchLabel = switchLabel; + if (0 === (seen1 & 16)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 32)) + $this.banner = emptyList(); + else + $this.banner = banner; + if (0 === (seen1 & 64)) + $this.inviteLabel = null; + else + $this.inviteLabel = inviteLabel; + if (0 === (seen1 & 128)) + $this.notice = null; + else + $this.notice = notice; + if (0 === (seen1 & 256)) + $this.topicSquare = null; + else + $this.topicSquare = topicSquare; + if (0 === (seen1 & 512)) + $this.campusBadge = ''; + else + $this.campusBadge = campusBadge; + if (0 === (seen1 & 1024)) + $this.campusBackground = ''; + else + $this.campusBackground = campusBackground; + if (0 === (seen1 & 2048)) + $this.campusMotto = ''; + else + $this.campusMotto = campusMotto; + if (0 === (seen1 & 4096)) + $this.mngEntry = null; + else + $this.mngEntry = mngEntry; + if (0 === (seen1 & 8192)) + $this.campusIntro = ''; + else + $this.campusIntro = campusIntro; + if (0 === (seen1 & 16384)) + $this.campusNameLink = ''; + else + $this.campusNameLink = campusNameLink; + if (0 === (seen1 & 32768)) + $this.bottomLeftText = ''; + else + $this.bottomLeftText = bottomLeftText; + return $this; + } + } + class Companion_839 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.CampusShowTabInfo'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_826(); + } + } + class $serializer_826 { + constructor() { + $serializer_instance_826 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KCampusShowTabInfo', this, 5); + tmp0_serialDesc.addElement_5pzumi_k$('name', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('url', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('redDot', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('iconUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = 0; + var tmp7_local3 = 0; + var tmp8_local4 = null; + var tmp9_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp9_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + } else + while (tmp1_flag) { + tmp2_index = tmp9_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp9_input.endStructure_1xqz0n_k$(tmp0_desc); + return KCampusShowTabInfo.new_com_bapis_bilibili_app_dynamic_v2_KCampusShowTabInfo_gxt95o_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); + } + serialize_j0jl2t_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.name === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.name); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.url === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.url); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.type === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.type); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.redDot === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 3, value.redDot); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.iconUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.iconUrl); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_j0jl2t_k$(encoder, value instanceof KCampusShowTabInfo ? value : THROW_CCE()); + } + } + class KCampusShowTabInfo { + constructor(name, url, type, redDot, iconUrl) { + Companion_instance_839; + name = name === VOID ? '' : name; + url = url === VOID ? '' : url; + type = type === VOID ? 0 : type; + redDot = redDot === VOID ? 0 : redDot; + iconUrl = iconUrl === VOID ? '' : iconUrl; + this.name = name; + this.url = url; + this.type = type; + this.redDot = redDot; + this.iconUrl = iconUrl; + } + get_name_woqyms_k$() { + return this.name; + } + get_url_18iuii_k$() { + return this.url; + } + get_type_wovaf7_k$() { + return this.type; + } + get_redDot_iy5kap_k$() { + return this.redDot; + } + get_iconUrl_sd8dal_k$() { + return this.iconUrl; + } + typeEnum() { + return Companion_getInstance_740().fromValue(this.type); + } + component1_7eebsc_k$() { + return this.name; + } + component2_7eebsb_k$() { + return this.url; + } + component3_7eebsa_k$() { + return this.type; + } + component4_7eebs9_k$() { + return this.redDot; + } + component5_7eebs8_k$() { + return this.iconUrl; + } + copy_aojbkr_k$(name, url, type, redDot, iconUrl) { + return new KCampusShowTabInfo(name, url, type, redDot, iconUrl); + } + copy(name, url, type, redDot, iconUrl, $super) { + name = name === VOID ? this.name : name; + url = url === VOID ? this.url : url; + type = type === VOID ? this.type : type; + redDot = redDot === VOID ? this.redDot : redDot; + iconUrl = iconUrl === VOID ? this.iconUrl : iconUrl; + return this.copy_aojbkr_k$(name, url, type, redDot, iconUrl); + } + toString() { + return 'KCampusShowTabInfo(name=' + this.name + ', url=' + this.url + ', type=' + this.type + ', redDot=' + this.redDot + ', iconUrl=' + this.iconUrl + ')'; + } + hashCode() { + var result = getStringHashCode(this.name); + result = imul(result, 31) + getStringHashCode(this.url) | 0; + result = imul(result, 31) + this.type | 0; + result = imul(result, 31) + this.redDot | 0; + result = imul(result, 31) + getStringHashCode(this.iconUrl) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KCampusShowTabInfo)) + return false; + var tmp0_other_with_cast = other instanceof KCampusShowTabInfo ? other : THROW_CCE(); + if (!(this.name === tmp0_other_with_cast.name)) + return false; + if (!(this.url === tmp0_other_with_cast.url)) + return false; + if (!(this.type === tmp0_other_with_cast.type)) + return false; + if (!(this.redDot === tmp0_other_with_cast.redDot)) + return false; + if (!(this.iconUrl === tmp0_other_with_cast.iconUrl)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KCampusShowTabInfo_gxt95o_k$(seen1, name, url, type, redDot, iconUrl, serializationConstructorMarker) { + Companion_instance_839; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_826().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.name = ''; + else + $this.name = name; + if (0 === (seen1 & 2)) + $this.url = ''; + else + $this.url = url; + if (0 === (seen1 & 4)) + $this.type = 0; + else + $this.type = type; + if (0 === (seen1 & 8)) + $this.redDot = 0; + else + $this.redDot = redDot; + if (0 === (seen1 & 16)) + $this.iconUrl = ''; + else + $this.iconUrl = iconUrl; + return $this; + } + } + class Companion_840 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.CampusBannerInfo'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_827(); + } + } + class $serializer_827 { + constructor() { + $serializer_instance_827 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KCampusBannerInfo', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('image', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('jumpUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KCampusBannerInfo.new_com_bapis_bilibili_app_dynamic_v2_KCampusBannerInfo_u605fr_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_2fyckv_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.image === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.image); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.jumpUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.jumpUrl); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_2fyckv_k$(encoder, value instanceof KCampusBannerInfo ? value : THROW_CCE()); + } + } + class KCampusBannerInfo { + constructor(image, jumpUrl) { + Companion_instance_840; + image = image === VOID ? '' : image; + jumpUrl = jumpUrl === VOID ? '' : jumpUrl; + this.image = image; + this.jumpUrl = jumpUrl; + } + get_image_it3i2a_k$() { + return this.image; + } + get_jumpUrl_jhqiko_k$() { + return this.jumpUrl; + } + component1_7eebsc_k$() { + return this.image; + } + component2_7eebsb_k$() { + return this.jumpUrl; + } + copy_plwnsl_k$(image, jumpUrl) { + return new KCampusBannerInfo(image, jumpUrl); + } + copy(image, jumpUrl, $super) { + image = image === VOID ? this.image : image; + jumpUrl = jumpUrl === VOID ? this.jumpUrl : jumpUrl; + return this.copy_plwnsl_k$(image, jumpUrl); + } + toString() { + return 'KCampusBannerInfo(image=' + this.image + ', jumpUrl=' + this.jumpUrl + ')'; + } + hashCode() { + var result = getStringHashCode(this.image); + result = imul(result, 31) + getStringHashCode(this.jumpUrl) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KCampusBannerInfo)) + return false; + var tmp0_other_with_cast = other instanceof KCampusBannerInfo ? other : THROW_CCE(); + if (!(this.image === tmp0_other_with_cast.image)) + return false; + if (!(this.jumpUrl === tmp0_other_with_cast.jumpUrl)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KCampusBannerInfo_u605fr_k$(seen1, image, jumpUrl, serializationConstructorMarker) { + Companion_instance_840; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_827().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.image = ''; + else + $this.image = image; + if (0 === (seen1 & 2)) + $this.jumpUrl = ''; + else + $this.jumpUrl = jumpUrl; + return $this; + } + } + class Companion_841 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.CampusNoticeInfo'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_828(); + } + } + class $serializer_828 { + constructor() { + $serializer_instance_828 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KCampusNoticeInfo', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('desc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('button', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_837())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_837(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_837(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KCampusNoticeInfo.new_com_bapis_bilibili_app_dynamic_v2_KCampusNoticeInfo_uu45rs_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_v4b0pn_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.desc === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.desc); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.button == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_837(), value.button); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_v4b0pn_k$(encoder, value instanceof KCampusNoticeInfo ? value : THROW_CCE()); + } + } + class KCampusNoticeInfo { + constructor(title, desc, button) { + Companion_instance_841; + title = title === VOID ? '' : title; + desc = desc === VOID ? '' : desc; + button = button === VOID ? null : button; + this.title = title; + this.desc = desc; + this.button = button; + } + get_title_iz32un_k$() { + return this.title; + } + get_desc_woknve_k$() { + return this.desc; + } + get_button_bmjiuz_k$() { + return this.button; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.desc; + } + component3_7eebsa_k$() { + return this.button; + } + copy_wxow94_k$(title, desc, button) { + return new KCampusNoticeInfo(title, desc, button); + } + copy(title, desc, button, $super) { + title = title === VOID ? this.title : title; + desc = desc === VOID ? this.desc : desc; + button = button === VOID ? this.button : button; + return this.copy_wxow94_k$(title, desc, button); + } + toString() { + return 'KCampusNoticeInfo(title=' + this.title + ', desc=' + this.desc + ', button=' + this.button + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.desc) | 0; + result = imul(result, 31) + (this.button == null ? 0 : this.button.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KCampusNoticeInfo)) + return false; + var tmp0_other_with_cast = other instanceof KCampusNoticeInfo ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.desc === tmp0_other_with_cast.desc)) + return false; + if (!equals(this.button, tmp0_other_with_cast.button)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KCampusNoticeInfo_uu45rs_k$(seen1, title, desc, button, serializationConstructorMarker) { + Companion_instance_841; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_828().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.desc = ''; + else + $this.desc = desc; + if (0 === (seen1 & 4)) + $this.button = null; + else + $this.button = button; + return $this; + } + } + class Companion_842 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.AlumniDynamicsReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_829(); + } + } + class $serializer_829 { + constructor() { + $serializer_instance_829 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KAlumniDynamicsReq', this, 6); + tmp0_serialDesc.addElement_5pzumi_k$('campusId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('firstTime', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('playerArgs', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('localTime', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('page', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('fromType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), IntSerializer_getInstance(), get_nullable($serializer_getInstance_152()), IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = 0; + var tmp6_local2 = null; + var tmp7_local3 = 0; + var tmp8_local4 = 0; + var tmp9_local5 = 0; + var tmp10_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp10_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_152(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + } else + while (tmp1_flag) { + tmp2_index = tmp10_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_152(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp10_input.endStructure_1xqz0n_k$(tmp0_desc); + return KAlumniDynamicsReq.new_com_bapis_bilibili_app_dynamic_v2_KAlumniDynamicsReq_291hll_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); + } + serialize_gn6i28_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.campusId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.campusId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.firstTime === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.firstTime); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.playerArgs == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_152(), value.playerArgs); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.localTime === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 3, value.localTime); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.page === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 4, value.page); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.fromType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 5, value.fromType); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_gn6i28_k$(encoder, value instanceof KAlumniDynamicsReq ? value : THROW_CCE()); + } + } + class KAlumniDynamicsReq { + constructor(campusId, firstTime, playerArgs, localTime, page, fromType) { + Companion_instance_842; + campusId = campusId === VOID ? new Long(0, 0) : campusId; + firstTime = firstTime === VOID ? 0 : firstTime; + playerArgs = playerArgs === VOID ? null : playerArgs; + localTime = localTime === VOID ? 0 : localTime; + page = page === VOID ? 0 : page; + fromType = fromType === VOID ? 0 : fromType; + this.campusId = campusId; + this.firstTime = firstTime; + this.playerArgs = playerArgs; + this.localTime = localTime; + this.page = page; + this.fromType = fromType; + } + get_campusId_y3vqhp_k$() { + return this.campusId; + } + get_firstTime_appxpw_k$() { + return this.firstTime; + } + get_playerArgs_eh86hz_k$() { + return this.playerArgs; + } + get_localTime_bf0zwx_k$() { + return this.localTime; + } + get_page_wos8go_k$() { + return this.page; + } + get_fromType_in58el_k$() { + return this.fromType; + } + fromTypeEnum() { + return Companion_getInstance_746().fromValue(this.fromType); + } + component1_7eebsc_k$() { + return this.campusId; + } + component2_7eebsb_k$() { + return this.firstTime; + } + component3_7eebsa_k$() { + return this.playerArgs; + } + component4_7eebs9_k$() { + return this.localTime; + } + component5_7eebs8_k$() { + return this.page; + } + component6_7eebs7_k$() { + return this.fromType; + } + copy_v3hde0_k$(campusId, firstTime, playerArgs, localTime, page, fromType) { + return new KAlumniDynamicsReq(campusId, firstTime, playerArgs, localTime, page, fromType); + } + copy(campusId, firstTime, playerArgs, localTime, page, fromType, $super) { + campusId = campusId === VOID ? this.campusId : campusId; + firstTime = firstTime === VOID ? this.firstTime : firstTime; + playerArgs = playerArgs === VOID ? this.playerArgs : playerArgs; + localTime = localTime === VOID ? this.localTime : localTime; + page = page === VOID ? this.page : page; + fromType = fromType === VOID ? this.fromType : fromType; + return this.copy_v3hde0_k$(campusId, firstTime, playerArgs, localTime, page, fromType); + } + toString() { + return 'KAlumniDynamicsReq(campusId=' + this.campusId.toString() + ', firstTime=' + this.firstTime + ', playerArgs=' + this.playerArgs + ', localTime=' + this.localTime + ', page=' + this.page + ', fromType=' + this.fromType + ')'; + } + hashCode() { + var result = this.campusId.hashCode(); + result = imul(result, 31) + this.firstTime | 0; + result = imul(result, 31) + (this.playerArgs == null ? 0 : this.playerArgs.hashCode()) | 0; + result = imul(result, 31) + this.localTime | 0; + result = imul(result, 31) + this.page | 0; + result = imul(result, 31) + this.fromType | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KAlumniDynamicsReq)) + return false; + var tmp0_other_with_cast = other instanceof KAlumniDynamicsReq ? other : THROW_CCE(); + if (!this.campusId.equals(tmp0_other_with_cast.campusId)) + return false; + if (!(this.firstTime === tmp0_other_with_cast.firstTime)) + return false; + if (!equals(this.playerArgs, tmp0_other_with_cast.playerArgs)) + return false; + if (!(this.localTime === tmp0_other_with_cast.localTime)) + return false; + if (!(this.page === tmp0_other_with_cast.page)) + return false; + if (!(this.fromType === tmp0_other_with_cast.fromType)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KAlumniDynamicsReq_291hll_k$(seen1, campusId, firstTime, playerArgs, localTime, page, fromType, serializationConstructorMarker) { + Companion_instance_842; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_829().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.campusId = new Long(0, 0); + else + $this.campusId = campusId; + if (0 === (seen1 & 2)) + $this.firstTime = 0; + else + $this.firstTime = firstTime; + if (0 === (seen1 & 4)) + $this.playerArgs = null; + else + $this.playerArgs = playerArgs; + if (0 === (seen1 & 8)) + $this.localTime = 0; + else + $this.localTime = localTime; + if (0 === (seen1 & 16)) + $this.page = 0; + else + $this.page = page; + if (0 === (seen1 & 32)) + $this.fromType = 0; + else + $this.fromType = fromType; + return $this; + } + } + class Companion_843 { + constructor() { + Companion_instance_843 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer($serializer_getInstance_942()), null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.AlumniDynamicsReply'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_830(); + } + } + class $serializer_830 { + constructor() { + $serializer_instance_830 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KAlumniDynamicsReply', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('list', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('toast', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_843().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0], StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp7_cached = Companion_getInstance_843().$childSerializers_1; + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp7_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp7_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KAlumniDynamicsReply.new_com_bapis_bilibili_app_dynamic_v2_KAlumniDynamicsReply_jlz8sp_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_sv8hvo_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_843().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.list, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.list); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.toast === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.toast); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_sv8hvo_k$(encoder, value instanceof KAlumniDynamicsReply ? value : THROW_CCE()); + } + } + class KAlumniDynamicsReply { + constructor(list, toast) { + Companion_getInstance_843(); + list = list === VOID ? emptyList() : list; + toast = toast === VOID ? '' : toast; + this.list = list; + this.toast = toast; + } + get_list_wopuqv_k$() { + return this.list; + } + get_toast_iz6iv2_k$() { + return this.toast; + } + component1_7eebsc_k$() { + return this.list; + } + component2_7eebsb_k$() { + return this.toast; + } + copy_qse1v6_k$(list, toast) { + return new KAlumniDynamicsReply(list, toast); + } + copy(list, toast, $super) { + list = list === VOID ? this.list : list; + toast = toast === VOID ? this.toast : toast; + return this.copy_qse1v6_k$(list, toast); + } + toString() { + return 'KAlumniDynamicsReply(list=' + this.list + ', toast=' + this.toast + ')'; + } + hashCode() { + var result = hashCode(this.list); + result = imul(result, 31) + getStringHashCode(this.toast) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KAlumniDynamicsReply)) + return false; + var tmp0_other_with_cast = other instanceof KAlumniDynamicsReply ? other : THROW_CCE(); + if (!equals(this.list, tmp0_other_with_cast.list)) + return false; + if (!(this.toast === tmp0_other_with_cast.toast)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KAlumniDynamicsReply_jlz8sp_k$(seen1, list, toast, serializationConstructorMarker) { + Companion_getInstance_843(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_830().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.list = emptyList(); + else + $this.list = list; + if (0 === (seen1 & 2)) + $this.toast = ''; + else + $this.toast = toast; + return $this; + } + } + class Companion_844 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.CampusRcmdReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_831(); + } + } + class $serializer_831 { + constructor() { + $serializer_instance_831 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KCampusRcmdReq', this, 7); + tmp0_serialDesc.addElement_5pzumi_k$('campusId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('campusName', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('lat', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('lng', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('playerArgs', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('fromType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('pageType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance(), DoubleSerializer_getInstance(), DoubleSerializer_getInstance(), get_nullable($serializer_getInstance_152()), IntSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_local2 = 0.0; + var tmp7_local3 = 0.0; + var tmp8_local4 = null; + var tmp9_local5 = 0; + var tmp10_local6 = 0; + var tmp11_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp11_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp11_input.decodeDoubleElement_isei84_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp11_input.decodeDoubleElement_isei84_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_152(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + } else + while (tmp1_flag) { + tmp2_index = tmp11_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp11_input.decodeDoubleElement_isei84_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp11_input.decodeDoubleElement_isei84_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_152(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp11_input.endStructure_1xqz0n_k$(tmp0_desc); + return KCampusRcmdReq.new_com_bapis_bilibili_app_dynamic_v2_KCampusRcmdReq_ptl279_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, null); + } + serialize_jjwrx7_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.campusId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.campusId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.campusName === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.campusName); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !equals(value.lat, 0.0)) { + tmp1_output.encodeDoubleElement_a6rqhe_k$(tmp0_desc, 2, value.lat); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !equals(value.lng, 0.0)) { + tmp1_output.encodeDoubleElement_a6rqhe_k$(tmp0_desc, 3, value.lng); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.playerArgs == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, $serializer_getInstance_152(), value.playerArgs); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.fromType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 5, value.fromType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.pageType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 6, value.pageType); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_jjwrx7_k$(encoder, value instanceof KCampusRcmdReq ? value : THROW_CCE()); + } + } + class KCampusRcmdReq { + constructor(campusId, campusName, lat, lng, playerArgs, fromType, pageType) { + Companion_instance_844; + campusId = campusId === VOID ? new Long(0, 0) : campusId; + campusName = campusName === VOID ? '' : campusName; + lat = lat === VOID ? 0.0 : lat; + lng = lng === VOID ? 0.0 : lng; + playerArgs = playerArgs === VOID ? null : playerArgs; + fromType = fromType === VOID ? 0 : fromType; + pageType = pageType === VOID ? 0 : pageType; + this.campusId = campusId; + this.campusName = campusName; + this.lat = lat; + this.lng = lng; + this.playerArgs = playerArgs; + this.fromType = fromType; + this.pageType = pageType; + } + get_campusId_y3vqhp_k$() { + return this.campusId; + } + get_campusName_wd5obx_k$() { + return this.campusName; + } + get_lat_18j1l6_k$() { + return this.lat; + } + get_lng_18j1ac_k$() { + return this.lng; + } + get_playerArgs_eh86hz_k$() { + return this.playerArgs; + } + get_fromType_in58el_k$() { + return this.fromType; + } + get_pageType_hl88ni_k$() { + return this.pageType; + } + fromTypeEnum() { + return Companion_getInstance_746().fromValue(this.fromType); + } + pageTypeEnum() { + return Companion_getInstance_745().fromValue(this.pageType); + } + component1_7eebsc_k$() { + return this.campusId; + } + component2_7eebsb_k$() { + return this.campusName; + } + component3_7eebsa_k$() { + return this.lat; + } + component4_7eebs9_k$() { + return this.lng; + } + component5_7eebs8_k$() { + return this.playerArgs; + } + component6_7eebs7_k$() { + return this.fromType; + } + component7_7eebs6_k$() { + return this.pageType; + } + copy_tubf6a_k$(campusId, campusName, lat, lng, playerArgs, fromType, pageType) { + return new KCampusRcmdReq(campusId, campusName, lat, lng, playerArgs, fromType, pageType); + } + copy(campusId, campusName, lat, lng, playerArgs, fromType, pageType, $super) { + campusId = campusId === VOID ? this.campusId : campusId; + campusName = campusName === VOID ? this.campusName : campusName; + lat = lat === VOID ? this.lat : lat; + lng = lng === VOID ? this.lng : lng; + playerArgs = playerArgs === VOID ? this.playerArgs : playerArgs; + fromType = fromType === VOID ? this.fromType : fromType; + pageType = pageType === VOID ? this.pageType : pageType; + return this.copy_tubf6a_k$(campusId, campusName, lat, lng, playerArgs, fromType, pageType); + } + toString() { + return 'KCampusRcmdReq(campusId=' + this.campusId.toString() + ', campusName=' + this.campusName + ', lat=' + this.lat + ', lng=' + this.lng + ', playerArgs=' + this.playerArgs + ', fromType=' + this.fromType + ', pageType=' + this.pageType + ')'; + } + hashCode() { + var result = this.campusId.hashCode(); + result = imul(result, 31) + getStringHashCode(this.campusName) | 0; + result = imul(result, 31) + getNumberHashCode(this.lat) | 0; + result = imul(result, 31) + getNumberHashCode(this.lng) | 0; + result = imul(result, 31) + (this.playerArgs == null ? 0 : this.playerArgs.hashCode()) | 0; + result = imul(result, 31) + this.fromType | 0; + result = imul(result, 31) + this.pageType | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KCampusRcmdReq)) + return false; + var tmp0_other_with_cast = other instanceof KCampusRcmdReq ? other : THROW_CCE(); + if (!this.campusId.equals(tmp0_other_with_cast.campusId)) + return false; + if (!(this.campusName === tmp0_other_with_cast.campusName)) + return false; + if (!equals(this.lat, tmp0_other_with_cast.lat)) + return false; + if (!equals(this.lng, tmp0_other_with_cast.lng)) + return false; + if (!equals(this.playerArgs, tmp0_other_with_cast.playerArgs)) + return false; + if (!(this.fromType === tmp0_other_with_cast.fromType)) + return false; + if (!(this.pageType === tmp0_other_with_cast.pageType)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KCampusRcmdReq_ptl279_k$(seen1, campusId, campusName, lat, lng, playerArgs, fromType, pageType, serializationConstructorMarker) { + Companion_instance_844; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_831().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.campusId = new Long(0, 0); + else + $this.campusId = campusId; + if (0 === (seen1 & 2)) + $this.campusName = ''; + else + $this.campusName = campusName; + if (0 === (seen1 & 4)) + $this.lat = 0.0; + else + $this.lat = lat; + if (0 === (seen1 & 8)) + $this.lng = 0.0; + else + $this.lng = lng; + if (0 === (seen1 & 16)) + $this.playerArgs = null; + else + $this.playerArgs = playerArgs; + if (0 === (seen1 & 32)) + $this.fromType = 0; + else + $this.fromType = fromType; + if (0 === (seen1 & 64)) + $this.pageType = 0; + else + $this.pageType = pageType; + return $this; + } + } + class Companion_845 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.CampusRcmdReply'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_832(); + } + } + class $serializer_832 { + constructor() { + $serializer_instance_832 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KCampusRcmdReply', this, 5); + tmp0_serialDesc.addElement_5pzumi_k$('top', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('rcmd', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('campusTop', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('pageType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('jumpHomePop', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_833()), get_nullable($serializer_getInstance_835()), get_nullable($serializer_getInstance_825()), IntSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = 0; + var tmp8_local4 = 0; + var tmp9_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp9_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_833(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_835(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_825(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + } else + while (tmp1_flag) { + tmp2_index = tmp9_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_833(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_835(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_825(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp9_input.endStructure_1xqz0n_k$(tmp0_desc); + return KCampusRcmdReply.new_com_bapis_bilibili_app_dynamic_v2_KCampusRcmdReply_vnt69k_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); + } + serialize_3d9f4p_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.top == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_833(), value.top); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.rcmd == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_835(), value.rcmd); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.campusTop == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_825(), value.campusTop); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.pageType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 3, value.pageType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.jumpHomePop === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 4, value.jumpHomePop); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_3d9f4p_k$(encoder, value instanceof KCampusRcmdReply ? value : THROW_CCE()); + } + } + class KCampusRcmdReply { + constructor(top, rcmd, campusTop, pageType, jumpHomePop) { + Companion_instance_845; + top = top === VOID ? null : top; + rcmd = rcmd === VOID ? null : rcmd; + campusTop = campusTop === VOID ? null : campusTop; + pageType = pageType === VOID ? 0 : pageType; + jumpHomePop = jumpHomePop === VOID ? 0 : jumpHomePop; + this.top = top; + this.rcmd = rcmd; + this.campusTop = campusTop; + this.pageType = pageType; + this.jumpHomePop = jumpHomePop; + } + get_top_18ivbo_k$() { + return this.top; + } + get_rcmd_wotk29_k$() { + return this.rcmd; + } + get_campusTop_84d8wd_k$() { + return this.campusTop; + } + get_pageType_hl88ni_k$() { + return this.pageType; + } + get_jumpHomePop_kfrszp_k$() { + return this.jumpHomePop; + } + component1_7eebsc_k$() { + return this.top; + } + component2_7eebsb_k$() { + return this.rcmd; + } + component3_7eebsa_k$() { + return this.campusTop; + } + component4_7eebs9_k$() { + return this.pageType; + } + component5_7eebs8_k$() { + return this.jumpHomePop; + } + copy_u64jqg_k$(top, rcmd, campusTop, pageType, jumpHomePop) { + return new KCampusRcmdReply(top, rcmd, campusTop, pageType, jumpHomePop); + } + copy(top, rcmd, campusTop, pageType, jumpHomePop, $super) { + top = top === VOID ? this.top : top; + rcmd = rcmd === VOID ? this.rcmd : rcmd; + campusTop = campusTop === VOID ? this.campusTop : campusTop; + pageType = pageType === VOID ? this.pageType : pageType; + jumpHomePop = jumpHomePop === VOID ? this.jumpHomePop : jumpHomePop; + return this.copy_u64jqg_k$(top, rcmd, campusTop, pageType, jumpHomePop); + } + toString() { + return 'KCampusRcmdReply(top=' + this.top + ', rcmd=' + this.rcmd + ', campusTop=' + this.campusTop + ', pageType=' + this.pageType + ', jumpHomePop=' + this.jumpHomePop + ')'; + } + hashCode() { + var result = this.top == null ? 0 : this.top.hashCode(); + result = imul(result, 31) + (this.rcmd == null ? 0 : this.rcmd.hashCode()) | 0; + result = imul(result, 31) + (this.campusTop == null ? 0 : this.campusTop.hashCode()) | 0; + result = imul(result, 31) + this.pageType | 0; + result = imul(result, 31) + this.jumpHomePop | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KCampusRcmdReply)) + return false; + var tmp0_other_with_cast = other instanceof KCampusRcmdReply ? other : THROW_CCE(); + if (!equals(this.top, tmp0_other_with_cast.top)) + return false; + if (!equals(this.rcmd, tmp0_other_with_cast.rcmd)) + return false; + if (!equals(this.campusTop, tmp0_other_with_cast.campusTop)) + return false; + if (!(this.pageType === tmp0_other_with_cast.pageType)) + return false; + if (!(this.jumpHomePop === tmp0_other_with_cast.jumpHomePop)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KCampusRcmdReply_vnt69k_k$(seen1, top, rcmd, campusTop, pageType, jumpHomePop, serializationConstructorMarker) { + Companion_instance_845; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_832().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.top = null; + else + $this.top = top; + if (0 === (seen1 & 2)) + $this.rcmd = null; + else + $this.rcmd = rcmd; + if (0 === (seen1 & 4)) + $this.campusTop = null; + else + $this.campusTop = campusTop; + if (0 === (seen1 & 8)) + $this.pageType = 0; + else + $this.pageType = pageType; + if (0 === (seen1 & 16)) + $this.jumpHomePop = 0; + else + $this.jumpHomePop = jumpHomePop; + return $this; + } + } + class Companion_846 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.CampusRcmdTop'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_833(); + } + } + class $serializer_833 { + constructor() { + $serializer_instance_833 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KCampusRcmdTop', this, 19); + tmp0_serialDesc.addElement_5pzumi_k$('campusId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('campusName', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('desc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('button', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('switchLabel', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('noticeLabel', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('desc2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('desc3', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('inviteLabel', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('reserveLabel', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + tmp0_serialDesc.addElement_5pzumi_k$('reserveNumber', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(13)); + tmp0_serialDesc.addElement_5pzumi_k$('maxReserve', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(14)); + tmp0_serialDesc.addElement_5pzumi_k$('schoolLabel', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(15)); + tmp0_serialDesc.addElement_5pzumi_k$('mngLabel', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(16)); + tmp0_serialDesc.addElement_5pzumi_k$('rcmdTopic', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(17)); + tmp0_serialDesc.addElement_5pzumi_k$('auditBeforeOpen', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(18)); + tmp0_serialDesc.addElement_5pzumi_k$('auditMessage', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(19)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), get_nullable($serializer_getInstance_834()), get_nullable($serializer_getInstance_837()), get_nullable($serializer_getInstance_837()), StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_837()), get_nullable($serializer_getInstance_837()), LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable($serializer_getInstance_837()), get_nullable($serializer_getInstance_837()), get_nullable($serializer_getInstance_896()), BooleanSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = 0; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_local8 = null; + var tmp13_local9 = null; + var tmp14_local10 = null; + var tmp15_local11 = null; + var tmp16_local12 = new Long(0, 0); + var tmp17_local13 = new Long(0, 0); + var tmp18_local14 = null; + var tmp19_local15 = null; + var tmp20_local16 = null; + var tmp21_local17 = false; + var tmp22_local18 = null; + var tmp23_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp23_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp23_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp23_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp23_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp23_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp23_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp23_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_834(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp23_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_837(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp23_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_837(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp23_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp23_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp23_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 10, $serializer_getInstance_837(), tmp14_local10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp23_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 11, $serializer_getInstance_837(), tmp15_local11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + tmp16_local12 = tmp23_input.decodeLongElement_994anb_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + tmp17_local13 = tmp23_input.decodeLongElement_994anb_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + tmp18_local14 = tmp23_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 14, $serializer_getInstance_837(), tmp18_local14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + tmp19_local15 = tmp23_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 15, $serializer_getInstance_837(), tmp19_local15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + tmp20_local16 = tmp23_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 16, $serializer_getInstance_896(), tmp20_local16); + tmp3_bitMask0 = tmp3_bitMask0 | 65536; + tmp21_local17 = tmp23_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 17); + tmp3_bitMask0 = tmp3_bitMask0 | 131072; + tmp22_local18 = tmp23_input.decodeStringElement_3oenpg_k$(tmp0_desc, 18); + tmp3_bitMask0 = tmp3_bitMask0 | 262144; + } else + while (tmp1_flag) { + tmp2_index = tmp23_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp23_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp23_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp23_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp23_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp23_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp23_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_834(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp23_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_837(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp23_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_837(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp23_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp23_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp23_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 10, $serializer_getInstance_837(), tmp14_local10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp23_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 11, $serializer_getInstance_837(), tmp15_local11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + case 12: + tmp16_local12 = tmp23_input.decodeLongElement_994anb_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + break; + case 13: + tmp17_local13 = tmp23_input.decodeLongElement_994anb_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + break; + case 14: + tmp18_local14 = tmp23_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 14, $serializer_getInstance_837(), tmp18_local14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + break; + case 15: + tmp19_local15 = tmp23_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 15, $serializer_getInstance_837(), tmp19_local15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + break; + case 16: + tmp20_local16 = tmp23_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 16, $serializer_getInstance_896(), tmp20_local16); + tmp3_bitMask0 = tmp3_bitMask0 | 65536; + break; + case 17: + tmp21_local17 = tmp23_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 17); + tmp3_bitMask0 = tmp3_bitMask0 | 131072; + break; + case 18: + tmp22_local18 = tmp23_input.decodeStringElement_3oenpg_k$(tmp0_desc, 18); + tmp3_bitMask0 = tmp3_bitMask0 | 262144; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp23_input.endStructure_1xqz0n_k$(tmp0_desc); + return KCampusRcmdTop.new_com_bapis_bilibili_app_dynamic_v2_KCampusRcmdTop_r4rmr_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, tmp18_local14, tmp19_local15, tmp20_local16, tmp21_local17, tmp22_local18, null); + } + serialize_smnw5q_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.campusId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.campusId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.campusName === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.campusName); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.desc === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.desc); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.type === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 4, value.type); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.button == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 5, $serializer_getInstance_834(), value.button); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.switchLabel == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 6, $serializer_getInstance_837(), value.switchLabel); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.noticeLabel == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 7, $serializer_getInstance_837(), value.noticeLabel); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.desc2 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 8, value.desc2); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.desc3 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 9, value.desc3); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.inviteLabel == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 10, $serializer_getInstance_837(), value.inviteLabel); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.reserveLabel == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 11, $serializer_getInstance_837(), value.reserveLabel); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !value.reserveNumber.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 12, value.reserveNumber); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 13) ? true : !value.maxReserve.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 13, value.maxReserve); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 14) ? true : !(value.schoolLabel == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 14, $serializer_getInstance_837(), value.schoolLabel); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 15) ? true : !(value.mngLabel == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 15, $serializer_getInstance_837(), value.mngLabel); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 16) ? true : !(value.rcmdTopic == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 16, $serializer_getInstance_896(), value.rcmdTopic); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 17) ? true : !(value.auditBeforeOpen === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 17, value.auditBeforeOpen); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 18) ? true : !(value.auditMessage === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 18, value.auditMessage); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_smnw5q_k$(encoder, value instanceof KCampusRcmdTop ? value : THROW_CCE()); + } + } + class KCampusRcmdTop { + constructor(campusId, campusName, title, desc, type, button, switchLabel, noticeLabel, desc2, desc3, inviteLabel, reserveLabel, reserveNumber, maxReserve, schoolLabel, mngLabel, rcmdTopic, auditBeforeOpen, auditMessage) { + Companion_instance_846; + campusId = campusId === VOID ? new Long(0, 0) : campusId; + campusName = campusName === VOID ? '' : campusName; + title = title === VOID ? '' : title; + desc = desc === VOID ? '' : desc; + type = type === VOID ? 0 : type; + button = button === VOID ? null : button; + switchLabel = switchLabel === VOID ? null : switchLabel; + noticeLabel = noticeLabel === VOID ? null : noticeLabel; + desc2 = desc2 === VOID ? '' : desc2; + desc3 = desc3 === VOID ? '' : desc3; + inviteLabel = inviteLabel === VOID ? null : inviteLabel; + reserveLabel = reserveLabel === VOID ? null : reserveLabel; + reserveNumber = reserveNumber === VOID ? new Long(0, 0) : reserveNumber; + maxReserve = maxReserve === VOID ? new Long(0, 0) : maxReserve; + schoolLabel = schoolLabel === VOID ? null : schoolLabel; + mngLabel = mngLabel === VOID ? null : mngLabel; + rcmdTopic = rcmdTopic === VOID ? null : rcmdTopic; + auditBeforeOpen = auditBeforeOpen === VOID ? false : auditBeforeOpen; + auditMessage = auditMessage === VOID ? '' : auditMessage; + this.campusId = campusId; + this.campusName = campusName; + this.title = title; + this.desc = desc; + this.type = type; + this.button = button; + this.switchLabel = switchLabel; + this.noticeLabel = noticeLabel; + this.desc2 = desc2; + this.desc3 = desc3; + this.inviteLabel = inviteLabel; + this.reserveLabel = reserveLabel; + this.reserveNumber = reserveNumber; + this.maxReserve = maxReserve; + this.schoolLabel = schoolLabel; + this.mngLabel = mngLabel; + this.rcmdTopic = rcmdTopic; + this.auditBeforeOpen = auditBeforeOpen; + this.auditMessage = auditMessage; + } + get_campusId_y3vqhp_k$() { + return this.campusId; + } + get_campusName_wd5obx_k$() { + return this.campusName; + } + get_title_iz32un_k$() { + return this.title; + } + get_desc_woknve_k$() { + return this.desc; + } + get_type_wovaf7_k$() { + return this.type; + } + get_button_bmjiuz_k$() { + return this.button; + } + get_switchLabel_m7x93d_k$() { + return this.switchLabel; + } + get_noticeLabel_2ax28j_k$() { + return this.noticeLabel; + } + get_desc2_iq7sew_k$() { + return this.desc2; + } + get_desc3_iq7sex_k$() { + return this.desc3; + } + get_inviteLabel_b9txxa_k$() { + return this.inviteLabel; + } + get_reserveLabel_e7c1lr_k$() { + return this.reserveLabel; + } + get_reserveNumber_cveyo4_k$() { + return this.reserveNumber; + } + get_maxReserve_hdulvl_k$() { + return this.maxReserve; + } + get_schoolLabel_zh8hhl_k$() { + return this.schoolLabel; + } + get_mngLabel_fcexrr_k$() { + return this.mngLabel; + } + get_rcmdTopic_xn8ile_k$() { + return this.rcmdTopic; + } + get_auditBeforeOpen_f0eraz_k$() { + return this.auditBeforeOpen; + } + get_auditMessage_3uh7gr_k$() { + return this.auditMessage; + } + component1_7eebsc_k$() { + return this.campusId; + } + component2_7eebsb_k$() { + return this.campusName; + } + component3_7eebsa_k$() { + return this.title; + } + component4_7eebs9_k$() { + return this.desc; + } + component5_7eebs8_k$() { + return this.type; + } + component6_7eebs7_k$() { + return this.button; + } + component7_7eebs6_k$() { + return this.switchLabel; + } + component8_7eebs5_k$() { + return this.noticeLabel; + } + component9_7eebs4_k$() { + return this.desc2; + } + component10_gazzfo_k$() { + return this.desc3; + } + component11_gazzfn_k$() { + return this.inviteLabel; + } + component12_gazzfm_k$() { + return this.reserveLabel; + } + component13_gazzfl_k$() { + return this.reserveNumber; + } + component14_gazzfk_k$() { + return this.maxReserve; + } + component15_gazzfj_k$() { + return this.schoolLabel; + } + component16_gazzfi_k$() { + return this.mngLabel; + } + component17_gazzfh_k$() { + return this.rcmdTopic; + } + component18_gazzfg_k$() { + return this.auditBeforeOpen; + } + component19_gazzff_k$() { + return this.auditMessage; + } + copy_80gru4_k$(campusId, campusName, title, desc, type, button, switchLabel, noticeLabel, desc2, desc3, inviteLabel, reserveLabel, reserveNumber, maxReserve, schoolLabel, mngLabel, rcmdTopic, auditBeforeOpen, auditMessage) { + return new KCampusRcmdTop(campusId, campusName, title, desc, type, button, switchLabel, noticeLabel, desc2, desc3, inviteLabel, reserveLabel, reserveNumber, maxReserve, schoolLabel, mngLabel, rcmdTopic, auditBeforeOpen, auditMessage); + } + copy(campusId, campusName, title, desc, type, button, switchLabel, noticeLabel, desc2, desc3, inviteLabel, reserveLabel, reserveNumber, maxReserve, schoolLabel, mngLabel, rcmdTopic, auditBeforeOpen, auditMessage, $super) { + campusId = campusId === VOID ? this.campusId : campusId; + campusName = campusName === VOID ? this.campusName : campusName; + title = title === VOID ? this.title : title; + desc = desc === VOID ? this.desc : desc; + type = type === VOID ? this.type : type; + button = button === VOID ? this.button : button; + switchLabel = switchLabel === VOID ? this.switchLabel : switchLabel; + noticeLabel = noticeLabel === VOID ? this.noticeLabel : noticeLabel; + desc2 = desc2 === VOID ? this.desc2 : desc2; + desc3 = desc3 === VOID ? this.desc3 : desc3; + inviteLabel = inviteLabel === VOID ? this.inviteLabel : inviteLabel; + reserveLabel = reserveLabel === VOID ? this.reserveLabel : reserveLabel; + reserveNumber = reserveNumber === VOID ? this.reserveNumber : reserveNumber; + maxReserve = maxReserve === VOID ? this.maxReserve : maxReserve; + schoolLabel = schoolLabel === VOID ? this.schoolLabel : schoolLabel; + mngLabel = mngLabel === VOID ? this.mngLabel : mngLabel; + rcmdTopic = rcmdTopic === VOID ? this.rcmdTopic : rcmdTopic; + auditBeforeOpen = auditBeforeOpen === VOID ? this.auditBeforeOpen : auditBeforeOpen; + auditMessage = auditMessage === VOID ? this.auditMessage : auditMessage; + return this.copy_80gru4_k$(campusId, campusName, title, desc, type, button, switchLabel, noticeLabel, desc2, desc3, inviteLabel, reserveLabel, reserveNumber, maxReserve, schoolLabel, mngLabel, rcmdTopic, auditBeforeOpen, auditMessage); + } + toString() { + return 'KCampusRcmdTop(campusId=' + this.campusId.toString() + ', campusName=' + this.campusName + ', title=' + this.title + ', desc=' + this.desc + ', type=' + this.type + ', button=' + this.button + ', switchLabel=' + this.switchLabel + ', noticeLabel=' + this.noticeLabel + ', desc2=' + this.desc2 + ', desc3=' + this.desc3 + ', inviteLabel=' + this.inviteLabel + ', reserveLabel=' + this.reserveLabel + ', reserveNumber=' + this.reserveNumber.toString() + ', maxReserve=' + this.maxReserve.toString() + ', schoolLabel=' + this.schoolLabel + ', mngLabel=' + this.mngLabel + ', rcmdTopic=' + this.rcmdTopic + ', auditBeforeOpen=' + this.auditBeforeOpen + ', auditMessage=' + this.auditMessage + ')'; + } + hashCode() { + var result = this.campusId.hashCode(); + result = imul(result, 31) + getStringHashCode(this.campusName) | 0; + result = imul(result, 31) + getStringHashCode(this.title) | 0; + result = imul(result, 31) + getStringHashCode(this.desc) | 0; + result = imul(result, 31) + this.type | 0; + result = imul(result, 31) + (this.button == null ? 0 : this.button.hashCode()) | 0; + result = imul(result, 31) + (this.switchLabel == null ? 0 : this.switchLabel.hashCode()) | 0; + result = imul(result, 31) + (this.noticeLabel == null ? 0 : this.noticeLabel.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.desc2) | 0; + result = imul(result, 31) + getStringHashCode(this.desc3) | 0; + result = imul(result, 31) + (this.inviteLabel == null ? 0 : this.inviteLabel.hashCode()) | 0; + result = imul(result, 31) + (this.reserveLabel == null ? 0 : this.reserveLabel.hashCode()) | 0; + result = imul(result, 31) + this.reserveNumber.hashCode() | 0; + result = imul(result, 31) + this.maxReserve.hashCode() | 0; + result = imul(result, 31) + (this.schoolLabel == null ? 0 : this.schoolLabel.hashCode()) | 0; + result = imul(result, 31) + (this.mngLabel == null ? 0 : this.mngLabel.hashCode()) | 0; + result = imul(result, 31) + (this.rcmdTopic == null ? 0 : this.rcmdTopic.hashCode()) | 0; + result = imul(result, 31) + getBooleanHashCode(this.auditBeforeOpen) | 0; + result = imul(result, 31) + getStringHashCode(this.auditMessage) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KCampusRcmdTop)) + return false; + var tmp0_other_with_cast = other instanceof KCampusRcmdTop ? other : THROW_CCE(); + if (!this.campusId.equals(tmp0_other_with_cast.campusId)) + return false; + if (!(this.campusName === tmp0_other_with_cast.campusName)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.desc === tmp0_other_with_cast.desc)) + return false; + if (!(this.type === tmp0_other_with_cast.type)) + return false; + if (!equals(this.button, tmp0_other_with_cast.button)) + return false; + if (!equals(this.switchLabel, tmp0_other_with_cast.switchLabel)) + return false; + if (!equals(this.noticeLabel, tmp0_other_with_cast.noticeLabel)) + return false; + if (!(this.desc2 === tmp0_other_with_cast.desc2)) + return false; + if (!(this.desc3 === tmp0_other_with_cast.desc3)) + return false; + if (!equals(this.inviteLabel, tmp0_other_with_cast.inviteLabel)) + return false; + if (!equals(this.reserveLabel, tmp0_other_with_cast.reserveLabel)) + return false; + if (!this.reserveNumber.equals(tmp0_other_with_cast.reserveNumber)) + return false; + if (!this.maxReserve.equals(tmp0_other_with_cast.maxReserve)) + return false; + if (!equals(this.schoolLabel, tmp0_other_with_cast.schoolLabel)) + return false; + if (!equals(this.mngLabel, tmp0_other_with_cast.mngLabel)) + return false; + if (!equals(this.rcmdTopic, tmp0_other_with_cast.rcmdTopic)) + return false; + if (!(this.auditBeforeOpen === tmp0_other_with_cast.auditBeforeOpen)) + return false; + if (!(this.auditMessage === tmp0_other_with_cast.auditMessage)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KCampusRcmdTop_r4rmr_k$(seen1, campusId, campusName, title, desc, type, button, switchLabel, noticeLabel, desc2, desc3, inviteLabel, reserveLabel, reserveNumber, maxReserve, schoolLabel, mngLabel, rcmdTopic, auditBeforeOpen, auditMessage, serializationConstructorMarker) { + Companion_instance_846; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_833().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.campusId = new Long(0, 0); + else + $this.campusId = campusId; + if (0 === (seen1 & 2)) + $this.campusName = ''; + else + $this.campusName = campusName; + if (0 === (seen1 & 4)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 8)) + $this.desc = ''; + else + $this.desc = desc; + if (0 === (seen1 & 16)) + $this.type = 0; + else + $this.type = type; + if (0 === (seen1 & 32)) + $this.button = null; + else + $this.button = button; + if (0 === (seen1 & 64)) + $this.switchLabel = null; + else + $this.switchLabel = switchLabel; + if (0 === (seen1 & 128)) + $this.noticeLabel = null; + else + $this.noticeLabel = noticeLabel; + if (0 === (seen1 & 256)) + $this.desc2 = ''; + else + $this.desc2 = desc2; + if (0 === (seen1 & 512)) + $this.desc3 = ''; + else + $this.desc3 = desc3; + if (0 === (seen1 & 1024)) + $this.inviteLabel = null; + else + $this.inviteLabel = inviteLabel; + if (0 === (seen1 & 2048)) + $this.reserveLabel = null; + else + $this.reserveLabel = reserveLabel; + if (0 === (seen1 & 4096)) + $this.reserveNumber = new Long(0, 0); + else + $this.reserveNumber = reserveNumber; + if (0 === (seen1 & 8192)) + $this.maxReserve = new Long(0, 0); + else + $this.maxReserve = maxReserve; + if (0 === (seen1 & 16384)) + $this.schoolLabel = null; + else + $this.schoolLabel = schoolLabel; + if (0 === (seen1 & 32768)) + $this.mngLabel = null; + else + $this.mngLabel = mngLabel; + if (0 === (seen1 & 65536)) + $this.rcmdTopic = null; + else + $this.rcmdTopic = rcmdTopic; + if (0 === (seen1 & 131072)) + $this.auditBeforeOpen = false; + else + $this.auditBeforeOpen = auditBeforeOpen; + if (0 === (seen1 & 262144)) + $this.auditMessage = ''; + else + $this.auditMessage = auditMessage; + return $this; + } + } + class Companion_847 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.RcmdTopButton'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_834(); + } + } + class $serializer_834 { + constructor() { + $serializer_instance_834 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KRcmdTopButton', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('text', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('url', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KRcmdTopButton.new_com_bapis_bilibili_app_dynamic_v2_KRcmdTopButton_8nfped_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_j9u5x9_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.text === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.text); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.url === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.url); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_j9u5x9_k$(encoder, value instanceof KRcmdTopButton ? value : THROW_CCE()); + } + } + class KRcmdTopButton { + constructor(text, url) { + Companion_instance_847; + text = text === VOID ? '' : text; + url = url === VOID ? '' : url; + this.text = text; + this.url = url; + } + get_text_wouvsm_k$() { + return this.text; + } + get_url_18iuii_k$() { + return this.url; + } + component1_7eebsc_k$() { + return this.text; + } + component2_7eebsb_k$() { + return this.url; + } + copy_plwnsl_k$(text, url) { + return new KRcmdTopButton(text, url); + } + copy(text, url, $super) { + text = text === VOID ? this.text : text; + url = url === VOID ? this.url : url; + return this.copy_plwnsl_k$(text, url); + } + toString() { + return 'KRcmdTopButton(text=' + this.text + ', url=' + this.url + ')'; + } + hashCode() { + var result = getStringHashCode(this.text); + result = imul(result, 31) + getStringHashCode(this.url) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KRcmdTopButton)) + return false; + var tmp0_other_with_cast = other instanceof KRcmdTopButton ? other : THROW_CCE(); + if (!(this.text === tmp0_other_with_cast.text)) + return false; + if (!(this.url === tmp0_other_with_cast.url)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KRcmdTopButton_8nfped_k$(seen1, text, url, serializationConstructorMarker) { + Companion_instance_847; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_834().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.text = ''; + else + $this.text = text; + if (0 === (seen1 & 2)) + $this.url = ''; + else + $this.url = url; + return $this; + } + } + class Companion_848 { + constructor() { + Companion_instance_848 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, new ArrayListSerializer($serializer_getInstance_836())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.CampusRcmdInfo'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_835(); + } + } + class $serializer_835 { + constructor() { + $serializer_instance_835 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KCampusRcmdInfo', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('items', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_848().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), tmp0_cached[1]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp7_cached = Companion_getInstance_848().$childSerializers_1; + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KCampusRcmdInfo.new_com_bapis_bilibili_app_dynamic_v2_KCampusRcmdInfo_sba99y_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_d9f8cr_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_848().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !equals(value.items, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 1, tmp2_cached[1], value.items); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_d9f8cr_k$(encoder, value instanceof KCampusRcmdInfo ? value : THROW_CCE()); + } + } + class KCampusRcmdInfo { + constructor(title, items) { + Companion_getInstance_848(); + title = title === VOID ? '' : title; + items = items === VOID ? emptyList() : items; + this.title = title; + this.items = items; + } + get_title_iz32un_k$() { + return this.title; + } + get_items_it823b_k$() { + return this.items; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.items; + } + copy_tvpmo6_k$(title, items) { + return new KCampusRcmdInfo(title, items); + } + copy(title, items, $super) { + title = title === VOID ? this.title : title; + items = items === VOID ? this.items : items; + return this.copy_tvpmo6_k$(title, items); + } + toString() { + return 'KCampusRcmdInfo(title=' + this.title + ', items=' + this.items + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + hashCode(this.items) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KCampusRcmdInfo)) + return false; + var tmp0_other_with_cast = other instanceof KCampusRcmdInfo ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!equals(this.items, tmp0_other_with_cast.items)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KCampusRcmdInfo_sba99y_k$(seen1, title, items, serializationConstructorMarker) { + Companion_getInstance_848(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_835().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.items = emptyList(); + else + $this.items = items; + return $this; + } + } + class Companion_849 { + constructor() { + Companion_instance_849 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, new ArrayListSerializer($serializer_getInstance_810()), null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.CampusRcmdItem'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_836(); + } + } + class $serializer_836 { + constructor() { + $serializer_instance_836 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KCampusRcmdItem', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('items', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('campusId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('entryLabel', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_849().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), tmp0_cached[1], LongSerializer_getInstance(), get_nullable($serializer_getInstance_837())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = new Long(0, 0); + var tmp7_local3 = null; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp9_cached = Companion_getInstance_849().$childSerializers_1; + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp9_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_837(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp9_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_837(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KCampusRcmdItem.new_com_bapis_bilibili_app_dynamic_v2_KCampusRcmdItem_bjz0s7_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_f6brm8_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_849().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !equals(value.items, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 1, tmp2_cached[1], value.items); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.campusId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.campusId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.entryLabel == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_837(), value.entryLabel); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_f6brm8_k$(encoder, value instanceof KCampusRcmdItem ? value : THROW_CCE()); + } + } + class KCampusRcmdItem { + constructor(title, items, campusId, entryLabel) { + Companion_getInstance_849(); + title = title === VOID ? '' : title; + items = items === VOID ? emptyList() : items; + campusId = campusId === VOID ? new Long(0, 0) : campusId; + entryLabel = entryLabel === VOID ? null : entryLabel; + this.title = title; + this.items = items; + this.campusId = campusId; + this.entryLabel = entryLabel; + } + get_title_iz32un_k$() { + return this.title; + } + get_items_it823b_k$() { + return this.items; + } + get_campusId_y3vqhp_k$() { + return this.campusId; + } + get_entryLabel_i1ytd7_k$() { + return this.entryLabel; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.items; + } + component3_7eebsa_k$() { + return this.campusId; + } + component4_7eebs9_k$() { + return this.entryLabel; + } + copy_tglc3o_k$(title, items, campusId, entryLabel) { + return new KCampusRcmdItem(title, items, campusId, entryLabel); + } + copy(title, items, campusId, entryLabel, $super) { + title = title === VOID ? this.title : title; + items = items === VOID ? this.items : items; + campusId = campusId === VOID ? this.campusId : campusId; + entryLabel = entryLabel === VOID ? this.entryLabel : entryLabel; + return this.copy_tglc3o_k$(title, items, campusId, entryLabel); + } + toString() { + return 'KCampusRcmdItem(title=' + this.title + ', items=' + this.items + ', campusId=' + this.campusId.toString() + ', entryLabel=' + this.entryLabel + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + hashCode(this.items) | 0; + result = imul(result, 31) + this.campusId.hashCode() | 0; + result = imul(result, 31) + (this.entryLabel == null ? 0 : this.entryLabel.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KCampusRcmdItem)) + return false; + var tmp0_other_with_cast = other instanceof KCampusRcmdItem ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!equals(this.items, tmp0_other_with_cast.items)) + return false; + if (!this.campusId.equals(tmp0_other_with_cast.campusId)) + return false; + if (!equals(this.entryLabel, tmp0_other_with_cast.entryLabel)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KCampusRcmdItem_bjz0s7_k$(seen1, title, items, campusId, entryLabel, serializationConstructorMarker) { + Companion_getInstance_849(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_836().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.items = emptyList(); + else + $this.items = items; + if (0 === (seen1 & 4)) + $this.campusId = new Long(0, 0); + else + $this.campusId = campusId; + if (0 === (seen1 & 8)) + $this.entryLabel = null; + else + $this.entryLabel = entryLabel; + return $this; + } + } + class Companion_850 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.CampusLabel'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_837(); + } + } + class $serializer_837 { + constructor() { + $serializer_instance_837 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KCampusLabel', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('text', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('url', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('desc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KCampusLabel.new_com_bapis_bilibili_app_dynamic_v2_KCampusLabel_tdyrri_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_l8jn6h_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.text === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.text); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.url === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.url); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.desc === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.desc); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_l8jn6h_k$(encoder, value instanceof KCampusLabel ? value : THROW_CCE()); + } + } + class KCampusLabel { + constructor(text, url, desc) { + Companion_instance_850; + text = text === VOID ? '' : text; + url = url === VOID ? '' : url; + desc = desc === VOID ? '' : desc; + this.text = text; + this.url = url; + this.desc = desc; + } + get_text_wouvsm_k$() { + return this.text; + } + get_url_18iuii_k$() { + return this.url; + } + get_desc_woknve_k$() { + return this.desc; + } + component1_7eebsc_k$() { + return this.text; + } + component2_7eebsb_k$() { + return this.url; + } + component3_7eebsa_k$() { + return this.desc; + } + copy_nc7k0r_k$(text, url, desc) { + return new KCampusLabel(text, url, desc); + } + copy(text, url, desc, $super) { + text = text === VOID ? this.text : text; + url = url === VOID ? this.url : url; + desc = desc === VOID ? this.desc : desc; + return this.copy_nc7k0r_k$(text, url, desc); + } + toString() { + return 'KCampusLabel(text=' + this.text + ', url=' + this.url + ', desc=' + this.desc + ')'; + } + hashCode() { + var result = getStringHashCode(this.text); + result = imul(result, 31) + getStringHashCode(this.url) | 0; + result = imul(result, 31) + getStringHashCode(this.desc) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KCampusLabel)) + return false; + var tmp0_other_with_cast = other instanceof KCampusLabel ? other : THROW_CCE(); + if (!(this.text === tmp0_other_with_cast.text)) + return false; + if (!(this.url === tmp0_other_with_cast.url)) + return false; + if (!(this.desc === tmp0_other_with_cast.desc)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KCampusLabel_tdyrri_k$(seen1, text, url, desc, serializationConstructorMarker) { + Companion_instance_850; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_837().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.text = ''; + else + $this.text = text; + if (0 === (seen1 & 2)) + $this.url = ''; + else + $this.url = url; + if (0 === (seen1 & 4)) + $this.desc = ''; + else + $this.desc = desc; + return $this; + } + } + class Companion_851 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.SubscribeCampusReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_838(); + } + } + class $serializer_838 { + constructor() { + $serializer_instance_838 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KSubscribeCampusReq', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('campusId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('campusName', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('fromType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_local2 = 0; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSubscribeCampusReq.new_com_bapis_bilibili_app_dynamic_v2_KSubscribeCampusReq_sxdaf6_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_p6lw0b_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.campusId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.campusId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.campusName === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.campusName); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.fromType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.fromType); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_p6lw0b_k$(encoder, value instanceof KSubscribeCampusReq ? value : THROW_CCE()); + } + } + class KSubscribeCampusReq { + constructor(campusId, campusName, fromType) { + Companion_instance_851; + campusId = campusId === VOID ? new Long(0, 0) : campusId; + campusName = campusName === VOID ? '' : campusName; + fromType = fromType === VOID ? 0 : fromType; + this.campusId = campusId; + this.campusName = campusName; + this.fromType = fromType; + } + get_campusId_y3vqhp_k$() { + return this.campusId; + } + get_campusName_wd5obx_k$() { + return this.campusName; + } + get_fromType_in58el_k$() { + return this.fromType; + } + fromTypeEnum() { + return Companion_getInstance_746().fromValue(this.fromType); + } + component1_7eebsc_k$() { + return this.campusId; + } + component2_7eebsb_k$() { + return this.campusName; + } + component3_7eebsa_k$() { + return this.fromType; + } + copy_ay2fe7_k$(campusId, campusName, fromType) { + return new KSubscribeCampusReq(campusId, campusName, fromType); + } + copy(campusId, campusName, fromType, $super) { + campusId = campusId === VOID ? this.campusId : campusId; + campusName = campusName === VOID ? this.campusName : campusName; + fromType = fromType === VOID ? this.fromType : fromType; + return this.copy_ay2fe7_k$(campusId, campusName, fromType); + } + toString() { + return 'KSubscribeCampusReq(campusId=' + this.campusId.toString() + ', campusName=' + this.campusName + ', fromType=' + this.fromType + ')'; + } + hashCode() { + var result = this.campusId.hashCode(); + result = imul(result, 31) + getStringHashCode(this.campusName) | 0; + result = imul(result, 31) + this.fromType | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSubscribeCampusReq)) + return false; + var tmp0_other_with_cast = other instanceof KSubscribeCampusReq ? other : THROW_CCE(); + if (!this.campusId.equals(tmp0_other_with_cast.campusId)) + return false; + if (!(this.campusName === tmp0_other_with_cast.campusName)) + return false; + if (!(this.fromType === tmp0_other_with_cast.fromType)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KSubscribeCampusReq_sxdaf6_k$(seen1, campusId, campusName, fromType, serializationConstructorMarker) { + Companion_instance_851; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_838().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.campusId = new Long(0, 0); + else + $this.campusId = campusId; + if (0 === (seen1 & 2)) + $this.campusName = ''; + else + $this.campusName = campusName; + if (0 === (seen1 & 4)) + $this.fromType = 0; + else + $this.fromType = fromType; + return $this; + } + } + class Companion_852 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.SetRecentCampusReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_839(); + } + } + class $serializer_839 { + constructor() { + $serializer_instance_839 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KSetRecentCampusReq', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('campusId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('campusName', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('fromType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_local2 = 0; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSetRecentCampusReq.new_com_bapis_bilibili_app_dynamic_v2_KSetRecentCampusReq_xinj4b_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_dxguh4_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.campusId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.campusId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.campusName === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.campusName); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.fromType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.fromType); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_dxguh4_k$(encoder, value instanceof KSetRecentCampusReq ? value : THROW_CCE()); + } + } + class KSetRecentCampusReq { + constructor(campusId, campusName, fromType) { + Companion_instance_852; + campusId = campusId === VOID ? new Long(0, 0) : campusId; + campusName = campusName === VOID ? '' : campusName; + fromType = fromType === VOID ? 0 : fromType; + this.campusId = campusId; + this.campusName = campusName; + this.fromType = fromType; + } + get_campusId_y3vqhp_k$() { + return this.campusId; + } + get_campusName_wd5obx_k$() { + return this.campusName; + } + get_fromType_in58el_k$() { + return this.fromType; + } + fromTypeEnum() { + return Companion_getInstance_746().fromValue(this.fromType); + } + component1_7eebsc_k$() { + return this.campusId; + } + component2_7eebsb_k$() { + return this.campusName; + } + component3_7eebsa_k$() { + return this.fromType; + } + copy_ay2fe7_k$(campusId, campusName, fromType) { + return new KSetRecentCampusReq(campusId, campusName, fromType); + } + copy(campusId, campusName, fromType, $super) { + campusId = campusId === VOID ? this.campusId : campusId; + campusName = campusName === VOID ? this.campusName : campusName; + fromType = fromType === VOID ? this.fromType : fromType; + return this.copy_ay2fe7_k$(campusId, campusName, fromType); + } + toString() { + return 'KSetRecentCampusReq(campusId=' + this.campusId.toString() + ', campusName=' + this.campusName + ', fromType=' + this.fromType + ')'; + } + hashCode() { + var result = this.campusId.hashCode(); + result = imul(result, 31) + getStringHashCode(this.campusName) | 0; + result = imul(result, 31) + this.fromType | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSetRecentCampusReq)) + return false; + var tmp0_other_with_cast = other instanceof KSetRecentCampusReq ? other : THROW_CCE(); + if (!this.campusId.equals(tmp0_other_with_cast.campusId)) + return false; + if (!(this.campusName === tmp0_other_with_cast.campusName)) + return false; + if (!(this.fromType === tmp0_other_with_cast.fromType)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KSetRecentCampusReq_xinj4b_k$(seen1, campusId, campusName, fromType, serializationConstructorMarker) { + Companion_instance_852; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_839().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.campusId = new Long(0, 0); + else + $this.campusId = campusId; + if (0 === (seen1 & 2)) + $this.campusName = ''; + else + $this.campusName = campusName; + if (0 === (seen1 & 4)) + $this.fromType = 0; + else + $this.fromType = fromType; + return $this; + } + } + class Companion_853 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.DynTabReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_840(); + } + } + class $serializer_840 { + constructor() { + $serializer_instance_840 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KDynTabReq', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('teenagersMode', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('fromType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = 0; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KDynTabReq.new_com_bapis_bilibili_app_dynamic_v2_KDynTabReq_xdcfyi_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_ce60cm_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.teenagersMode === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.teenagersMode); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.fromType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.fromType); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_ce60cm_k$(encoder, value instanceof KDynTabReq ? value : THROW_CCE()); + } + } + class KDynTabReq { + constructor(teenagersMode, fromType) { + Companion_instance_853; + teenagersMode = teenagersMode === VOID ? 0 : teenagersMode; + fromType = fromType === VOID ? 0 : fromType; + this.teenagersMode = teenagersMode; + this.fromType = fromType; + } + get_teenagersMode_uv2a2o_k$() { + return this.teenagersMode; + } + get_fromType_in58el_k$() { + return this.fromType; + } + fromTypeEnum() { + return Companion_getInstance_746().fromValue(this.fromType); + } + component1_7eebsc_k$() { + return this.teenagersMode; + } + component2_7eebsb_k$() { + return this.fromType; + } + copy_fhtu3_k$(teenagersMode, fromType) { + return new KDynTabReq(teenagersMode, fromType); + } + copy(teenagersMode, fromType, $super) { + teenagersMode = teenagersMode === VOID ? this.teenagersMode : teenagersMode; + fromType = fromType === VOID ? this.fromType : fromType; + return this.copy_fhtu3_k$(teenagersMode, fromType); + } + toString() { + return 'KDynTabReq(teenagersMode=' + this.teenagersMode + ', fromType=' + this.fromType + ')'; + } + hashCode() { + var result = this.teenagersMode; + result = imul(result, 31) + this.fromType | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KDynTabReq)) + return false; + var tmp0_other_with_cast = other instanceof KDynTabReq ? other : THROW_CCE(); + if (!(this.teenagersMode === tmp0_other_with_cast.teenagersMode)) + return false; + if (!(this.fromType === tmp0_other_with_cast.fromType)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KDynTabReq_xdcfyi_k$(seen1, teenagersMode, fromType, serializationConstructorMarker) { + Companion_instance_853; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_840().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.teenagersMode = 0; + else + $this.teenagersMode = teenagersMode; + if (0 === (seen1 & 2)) + $this.fromType = 0; + else + $this.fromType = fromType; + return $this; + } + } + class Companion_854 { + constructor() { + Companion_instance_854 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer($serializer_getInstance_843()), new ArrayListSerializer($serializer_getInstance_842())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.DynTabReply'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_841(); + } + } + class $serializer_841 { + constructor() { + $serializer_instance_841 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KDynTabReply', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('dynTab', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('screenTab', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_854().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0], tmp0_cached[1]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp7_cached = Companion_getInstance_854().$childSerializers_1; + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp7_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp7_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KDynTabReply.new_com_bapis_bilibili_app_dynamic_v2_KDynTabReply_xeeahu_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_6b5w0i_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_854().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.dynTab, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.dynTab); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !equals(value.screenTab, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 1, tmp2_cached[1], value.screenTab); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_6b5w0i_k$(encoder, value instanceof KDynTabReply ? value : THROW_CCE()); + } + } + class KDynTabReply { + constructor(dynTab, screenTab) { + Companion_getInstance_854(); + dynTab = dynTab === VOID ? emptyList() : dynTab; + screenTab = screenTab === VOID ? emptyList() : screenTab; + this.dynTab = dynTab; + this.screenTab = screenTab; + } + get_dynTab_cmpg11_k$() { + return this.dynTab; + } + get_screenTab_akzs9s_k$() { + return this.screenTab; + } + component1_7eebsc_k$() { + return this.dynTab; + } + component2_7eebsb_k$() { + return this.screenTab; + } + copy_p2yve1_k$(dynTab, screenTab) { + return new KDynTabReply(dynTab, screenTab); + } + copy(dynTab, screenTab, $super) { + dynTab = dynTab === VOID ? this.dynTab : dynTab; + screenTab = screenTab === VOID ? this.screenTab : screenTab; + return this.copy_p2yve1_k$(dynTab, screenTab); + } + toString() { + return 'KDynTabReply(dynTab=' + this.dynTab + ', screenTab=' + this.screenTab + ')'; + } + hashCode() { + var result = hashCode(this.dynTab); + result = imul(result, 31) + hashCode(this.screenTab) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KDynTabReply)) + return false; + var tmp0_other_with_cast = other instanceof KDynTabReply ? other : THROW_CCE(); + if (!equals(this.dynTab, tmp0_other_with_cast.dynTab)) + return false; + if (!equals(this.screenTab, tmp0_other_with_cast.screenTab)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KDynTabReply_xeeahu_k$(seen1, dynTab, screenTab, serializationConstructorMarker) { + Companion_getInstance_854(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_841().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.dynTab = emptyList(); + else + $this.dynTab = dynTab; + if (0 === (seen1 & 2)) + $this.screenTab = emptyList(); + else + $this.screenTab = screenTab; + return $this; + } + } + class Companion_855 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.DynScreenTab'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_842(); + } + } + class $serializer_842 { + constructor() { + $serializer_instance_842 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KDynScreenTab', this, 6); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('name', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('defaultTab', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('strategyShowOnEntrance', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('strategyShowOnRefresh', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('strategyShowOnPullUp', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = false; + var tmp7_local3 = false; + var tmp8_local4 = false; + var tmp9_local5 = false; + var tmp10_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp10_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp10_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp10_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp10_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp10_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + } else + while (tmp1_flag) { + tmp2_index = tmp10_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp10_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp10_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp10_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp10_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp10_input.endStructure_1xqz0n_k$(tmp0_desc); + return KDynScreenTab.new_com_bapis_bilibili_app_dynamic_v2_KDynScreenTab_l785aa_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); + } + serialize_ihwqvu_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.name === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.name); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.defaultTab === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 2, value.defaultTab); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.strategyShowOnEntrance === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 3, value.strategyShowOnEntrance); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.strategyShowOnRefresh === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 4, value.strategyShowOnRefresh); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.strategyShowOnPullUp === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 5, value.strategyShowOnPullUp); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_ihwqvu_k$(encoder, value instanceof KDynScreenTab ? value : THROW_CCE()); + } + } + class KDynScreenTab { + constructor(title, name, defaultTab, strategyShowOnEntrance, strategyShowOnRefresh, strategyShowOnPullUp) { + Companion_instance_855; + title = title === VOID ? '' : title; + name = name === VOID ? '' : name; + defaultTab = defaultTab === VOID ? false : defaultTab; + strategyShowOnEntrance = strategyShowOnEntrance === VOID ? false : strategyShowOnEntrance; + strategyShowOnRefresh = strategyShowOnRefresh === VOID ? false : strategyShowOnRefresh; + strategyShowOnPullUp = strategyShowOnPullUp === VOID ? false : strategyShowOnPullUp; + this.title = title; + this.name = name; + this.defaultTab = defaultTab; + this.strategyShowOnEntrance = strategyShowOnEntrance; + this.strategyShowOnRefresh = strategyShowOnRefresh; + this.strategyShowOnPullUp = strategyShowOnPullUp; + } + get_title_iz32un_k$() { + return this.title; + } + get_name_woqyms_k$() { + return this.name; + } + get_defaultTab_8y7ftv_k$() { + return this.defaultTab; + } + get_strategyShowOnEntrance_hy7wfi_k$() { + return this.strategyShowOnEntrance; + } + get_strategyShowOnRefresh_7uj97h_k$() { + return this.strategyShowOnRefresh; + } + get_strategyShowOnPullUp_5x5pfc_k$() { + return this.strategyShowOnPullUp; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.name; + } + component3_7eebsa_k$() { + return this.defaultTab; + } + component4_7eebs9_k$() { + return this.strategyShowOnEntrance; + } + component5_7eebs8_k$() { + return this.strategyShowOnRefresh; + } + component6_7eebs7_k$() { + return this.strategyShowOnPullUp; + } + copy_f9s1md_k$(title, name, defaultTab, strategyShowOnEntrance, strategyShowOnRefresh, strategyShowOnPullUp) { + return new KDynScreenTab(title, name, defaultTab, strategyShowOnEntrance, strategyShowOnRefresh, strategyShowOnPullUp); + } + copy(title, name, defaultTab, strategyShowOnEntrance, strategyShowOnRefresh, strategyShowOnPullUp, $super) { + title = title === VOID ? this.title : title; + name = name === VOID ? this.name : name; + defaultTab = defaultTab === VOID ? this.defaultTab : defaultTab; + strategyShowOnEntrance = strategyShowOnEntrance === VOID ? this.strategyShowOnEntrance : strategyShowOnEntrance; + strategyShowOnRefresh = strategyShowOnRefresh === VOID ? this.strategyShowOnRefresh : strategyShowOnRefresh; + strategyShowOnPullUp = strategyShowOnPullUp === VOID ? this.strategyShowOnPullUp : strategyShowOnPullUp; + return this.copy_f9s1md_k$(title, name, defaultTab, strategyShowOnEntrance, strategyShowOnRefresh, strategyShowOnPullUp); + } + toString() { + return 'KDynScreenTab(title=' + this.title + ', name=' + this.name + ', defaultTab=' + this.defaultTab + ', strategyShowOnEntrance=' + this.strategyShowOnEntrance + ', strategyShowOnRefresh=' + this.strategyShowOnRefresh + ', strategyShowOnPullUp=' + this.strategyShowOnPullUp + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.name) | 0; + result = imul(result, 31) + getBooleanHashCode(this.defaultTab) | 0; + result = imul(result, 31) + getBooleanHashCode(this.strategyShowOnEntrance) | 0; + result = imul(result, 31) + getBooleanHashCode(this.strategyShowOnRefresh) | 0; + result = imul(result, 31) + getBooleanHashCode(this.strategyShowOnPullUp) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KDynScreenTab)) + return false; + var tmp0_other_with_cast = other instanceof KDynScreenTab ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.name === tmp0_other_with_cast.name)) + return false; + if (!(this.defaultTab === tmp0_other_with_cast.defaultTab)) + return false; + if (!(this.strategyShowOnEntrance === tmp0_other_with_cast.strategyShowOnEntrance)) + return false; + if (!(this.strategyShowOnRefresh === tmp0_other_with_cast.strategyShowOnRefresh)) + return false; + if (!(this.strategyShowOnPullUp === tmp0_other_with_cast.strategyShowOnPullUp)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KDynScreenTab_l785aa_k$(seen1, title, name, defaultTab, strategyShowOnEntrance, strategyShowOnRefresh, strategyShowOnPullUp, serializationConstructorMarker) { + Companion_instance_855; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_842().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.name = ''; + else + $this.name = name; + if (0 === (seen1 & 4)) + $this.defaultTab = false; + else + $this.defaultTab = defaultTab; + if (0 === (seen1 & 8)) + $this.strategyShowOnEntrance = false; + else + $this.strategyShowOnEntrance = strategyShowOnEntrance; + if (0 === (seen1 & 16)) + $this.strategyShowOnRefresh = false; + else + $this.strategyShowOnRefresh = strategyShowOnRefresh; + if (0 === (seen1 & 32)) + $this.strategyShowOnPullUp = false; + else + $this.strategyShowOnPullUp = strategyShowOnPullUp; + return $this; + } + } + class Companion_856 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.DynTab'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_843(); + } + } + class $serializer_843 { + constructor() { + $serializer_instance_843 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KDynTab', this, 14); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('uri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('bubble', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('redPoint', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('cityId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('isPopup', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('popup', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('defaultTab', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('subTitle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('anchor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('internalTest', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + tmp0_serialDesc.addElement_5pzumi_k$('backUp', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(13)); + tmp0_serialDesc.addElement_5pzumi_k$('jumpHomePop', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(14)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), get_nullable($serializer_getInstance_844()), BooleanSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), get_nullable($serializer_getInstance_843()), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = 0; + var tmp8_local4 = new Long(0, 0); + var tmp9_local5 = 0; + var tmp10_local6 = null; + var tmp11_local7 = false; + var tmp12_local8 = null; + var tmp13_local9 = null; + var tmp14_local10 = null; + var tmp15_local11 = 0; + var tmp16_local12 = null; + var tmp17_local13 = null; + var tmp18_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp18_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp18_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp18_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_844(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp18_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp18_input.decodeIntElement_941u6a_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + tmp16_local12 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 12, $serializer_getInstance_843(), tmp16_local12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + tmp17_local13 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + } else + while (tmp1_flag) { + tmp2_index = tmp18_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp18_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp18_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_844(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp18_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp18_input.decodeIntElement_941u6a_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + case 12: + tmp16_local12 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 12, $serializer_getInstance_843(), tmp16_local12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + break; + case 13: + tmp17_local13 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp18_input.endStructure_1xqz0n_k$(tmp0_desc); + return KDynTab.new_com_bapis_bilibili_app_dynamic_v2_KDynTab_tc8weg_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, null); + } + serialize_w9c60i_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.uri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.uri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.bubble === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.bubble); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.redPoint === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 3, value.redPoint); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !value.cityId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 4, value.cityId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.isPopup === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 5, value.isPopup); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.popup == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 6, $serializer_getInstance_844(), value.popup); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.defaultTab === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 7, value.defaultTab); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.subTitle === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 8, value.subTitle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.anchor === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 9, value.anchor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.internalTest === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 10, value.internalTest); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.type === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 11, value.type); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !(value.backUp == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 12, $serializer_getInstance_843(), value.backUp); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 13) ? true : !(value.jumpHomePop === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 13, value.jumpHomePop); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_w9c60i_k$(encoder, value instanceof KDynTab ? value : THROW_CCE()); + } + } + class KDynTab { + constructor(title, uri, bubble, redPoint, cityId, isPopup, popup, defaultTab, subTitle, anchor, internalTest, type, backUp, jumpHomePop) { + Companion_instance_856; + title = title === VOID ? '' : title; + uri = uri === VOID ? '' : uri; + bubble = bubble === VOID ? '' : bubble; + redPoint = redPoint === VOID ? 0 : redPoint; + cityId = cityId === VOID ? new Long(0, 0) : cityId; + isPopup = isPopup === VOID ? 0 : isPopup; + popup = popup === VOID ? null : popup; + defaultTab = defaultTab === VOID ? false : defaultTab; + subTitle = subTitle === VOID ? '' : subTitle; + anchor = anchor === VOID ? '' : anchor; + internalTest = internalTest === VOID ? '' : internalTest; + type = type === VOID ? 0 : type; + backUp = backUp === VOID ? null : backUp; + jumpHomePop = jumpHomePop === VOID ? '' : jumpHomePop; + this.title = title; + this.uri = uri; + this.bubble = bubble; + this.redPoint = redPoint; + this.cityId = cityId; + this.isPopup = isPopup; + this.popup = popup; + this.defaultTab = defaultTab; + this.subTitle = subTitle; + this.anchor = anchor; + this.internalTest = internalTest; + this.type = type; + this.backUp = backUp; + this.jumpHomePop = jumpHomePop; + } + get_title_iz32un_k$() { + return this.title; + } + get_uri_18iuil_k$() { + return this.uri; + } + get_bubble_bm7no5_k$() { + return this.bubble; + } + get_redPoint_q0a5hk_k$() { + return this.redPoint; + } + get_cityId_bwzoxb_k$() { + return this.cityId; + } + get_isPopup_zgxwah_k$() { + return this.isPopup; + } + get_popup_iwznnn_k$() { + return this.popup; + } + get_defaultTab_8y7ftv_k$() { + return this.defaultTab; + } + get_subTitle_4nt9z5_k$() { + return this.subTitle; + } + get_anchor_b1c8n2_k$() { + return this.anchor; + } + get_internalTest_37ye60_k$() { + return this.internalTest; + } + get_type_wovaf7_k$() { + return this.type; + } + get_backUp_bb8kx7_k$() { + return this.backUp; + } + get_jumpHomePop_kfrszp_k$() { + return this.jumpHomePop; + } + typeEnum() { + return Companion_getInstance_741().fromValue(this.type); + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.uri; + } + component3_7eebsa_k$() { + return this.bubble; + } + component4_7eebs9_k$() { + return this.redPoint; + } + component5_7eebs8_k$() { + return this.cityId; + } + component6_7eebs7_k$() { + return this.isPopup; + } + component7_7eebs6_k$() { + return this.popup; + } + component8_7eebs5_k$() { + return this.defaultTab; + } + component9_7eebs4_k$() { + return this.subTitle; + } + component10_gazzfo_k$() { + return this.anchor; + } + component11_gazzfn_k$() { + return this.internalTest; + } + component12_gazzfm_k$() { + return this.type; + } + component13_gazzfl_k$() { + return this.backUp; + } + component14_gazzfk_k$() { + return this.jumpHomePop; + } + copy_jezguw_k$(title, uri, bubble, redPoint, cityId, isPopup, popup, defaultTab, subTitle, anchor, internalTest, type, backUp, jumpHomePop) { + return new KDynTab(title, uri, bubble, redPoint, cityId, isPopup, popup, defaultTab, subTitle, anchor, internalTest, type, backUp, jumpHomePop); + } + copy(title, uri, bubble, redPoint, cityId, isPopup, popup, defaultTab, subTitle, anchor, internalTest, type, backUp, jumpHomePop, $super) { + title = title === VOID ? this.title : title; + uri = uri === VOID ? this.uri : uri; + bubble = bubble === VOID ? this.bubble : bubble; + redPoint = redPoint === VOID ? this.redPoint : redPoint; + cityId = cityId === VOID ? this.cityId : cityId; + isPopup = isPopup === VOID ? this.isPopup : isPopup; + popup = popup === VOID ? this.popup : popup; + defaultTab = defaultTab === VOID ? this.defaultTab : defaultTab; + subTitle = subTitle === VOID ? this.subTitle : subTitle; + anchor = anchor === VOID ? this.anchor : anchor; + internalTest = internalTest === VOID ? this.internalTest : internalTest; + type = type === VOID ? this.type : type; + backUp = backUp === VOID ? this.backUp : backUp; + jumpHomePop = jumpHomePop === VOID ? this.jumpHomePop : jumpHomePop; + return this.copy_jezguw_k$(title, uri, bubble, redPoint, cityId, isPopup, popup, defaultTab, subTitle, anchor, internalTest, type, backUp, jumpHomePop); + } + toString() { + return 'KDynTab(title=' + this.title + ', uri=' + this.uri + ', bubble=' + this.bubble + ', redPoint=' + this.redPoint + ', cityId=' + this.cityId.toString() + ', isPopup=' + this.isPopup + ', popup=' + this.popup + ', defaultTab=' + this.defaultTab + ', subTitle=' + this.subTitle + ', anchor=' + this.anchor + ', internalTest=' + this.internalTest + ', type=' + this.type + ', backUp=' + this.backUp + ', jumpHomePop=' + this.jumpHomePop + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.uri) | 0; + result = imul(result, 31) + getStringHashCode(this.bubble) | 0; + result = imul(result, 31) + this.redPoint | 0; + result = imul(result, 31) + this.cityId.hashCode() | 0; + result = imul(result, 31) + this.isPopup | 0; + result = imul(result, 31) + (this.popup == null ? 0 : this.popup.hashCode()) | 0; + result = imul(result, 31) + getBooleanHashCode(this.defaultTab) | 0; + result = imul(result, 31) + getStringHashCode(this.subTitle) | 0; + result = imul(result, 31) + getStringHashCode(this.anchor) | 0; + result = imul(result, 31) + getStringHashCode(this.internalTest) | 0; + result = imul(result, 31) + this.type | 0; + result = imul(result, 31) + (this.backUp == null ? 0 : this.backUp.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.jumpHomePop) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KDynTab)) + return false; + var tmp0_other_with_cast = other instanceof KDynTab ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.uri === tmp0_other_with_cast.uri)) + return false; + if (!(this.bubble === tmp0_other_with_cast.bubble)) + return false; + if (!(this.redPoint === tmp0_other_with_cast.redPoint)) + return false; + if (!this.cityId.equals(tmp0_other_with_cast.cityId)) + return false; + if (!(this.isPopup === tmp0_other_with_cast.isPopup)) + return false; + if (!equals(this.popup, tmp0_other_with_cast.popup)) + return false; + if (!(this.defaultTab === tmp0_other_with_cast.defaultTab)) + return false; + if (!(this.subTitle === tmp0_other_with_cast.subTitle)) + return false; + if (!(this.anchor === tmp0_other_with_cast.anchor)) + return false; + if (!(this.internalTest === tmp0_other_with_cast.internalTest)) + return false; + if (!(this.type === tmp0_other_with_cast.type)) + return false; + if (!equals(this.backUp, tmp0_other_with_cast.backUp)) + return false; + if (!(this.jumpHomePop === tmp0_other_with_cast.jumpHomePop)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KDynTab_tc8weg_k$(seen1, title, uri, bubble, redPoint, cityId, isPopup, popup, defaultTab, subTitle, anchor, internalTest, type, backUp, jumpHomePop, serializationConstructorMarker) { + Companion_instance_856; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_843().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.uri = ''; + else + $this.uri = uri; + if (0 === (seen1 & 4)) + $this.bubble = ''; + else + $this.bubble = bubble; + if (0 === (seen1 & 8)) + $this.redPoint = 0; + else + $this.redPoint = redPoint; + if (0 === (seen1 & 16)) + $this.cityId = new Long(0, 0); + else + $this.cityId = cityId; + if (0 === (seen1 & 32)) + $this.isPopup = 0; + else + $this.isPopup = isPopup; + if (0 === (seen1 & 64)) + $this.popup = null; + else + $this.popup = popup; + if (0 === (seen1 & 128)) + $this.defaultTab = false; + else + $this.defaultTab = defaultTab; + if (0 === (seen1 & 256)) + $this.subTitle = ''; + else + $this.subTitle = subTitle; + if (0 === (seen1 & 512)) + $this.anchor = ''; + else + $this.anchor = anchor; + if (0 === (seen1 & 1024)) + $this.internalTest = ''; + else + $this.internalTest = internalTest; + if (0 === (seen1 & 2048)) + $this.type = 0; + else + $this.type = type; + if (0 === (seen1 & 4096)) + $this.backUp = null; + else + $this.backUp = backUp; + if (0 === (seen1 & 8192)) + $this.jumpHomePop = ''; + else + $this.jumpHomePop = jumpHomePop; + return $this; + } + } + class Companion_857 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.Popup'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_844(); + } + } + class $serializer_844 { + constructor() { + $serializer_instance_844 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KPopup', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('desc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('uri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KPopup.new_com_bapis_bilibili_app_dynamic_v2_KPopup_rdpezb_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_db4x00_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.desc === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.desc); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.uri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.uri); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_db4x00_k$(encoder, value instanceof KPopup ? value : THROW_CCE()); + } + } + class KPopup { + constructor(title, desc, uri) { + Companion_instance_857; + title = title === VOID ? '' : title; + desc = desc === VOID ? '' : desc; + uri = uri === VOID ? '' : uri; + this.title = title; + this.desc = desc; + this.uri = uri; + } + get_title_iz32un_k$() { + return this.title; + } + get_desc_woknve_k$() { + return this.desc; + } + get_uri_18iuil_k$() { + return this.uri; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.desc; + } + component3_7eebsa_k$() { + return this.uri; + } + copy_nc7k0r_k$(title, desc, uri) { + return new KPopup(title, desc, uri); + } + copy(title, desc, uri, $super) { + title = title === VOID ? this.title : title; + desc = desc === VOID ? this.desc : desc; + uri = uri === VOID ? this.uri : uri; + return this.copy_nc7k0r_k$(title, desc, uri); + } + toString() { + return 'KPopup(title=' + this.title + ', desc=' + this.desc + ', uri=' + this.uri + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.desc) | 0; + result = imul(result, 31) + getStringHashCode(this.uri) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KPopup)) + return false; + var tmp0_other_with_cast = other instanceof KPopup ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.desc === tmp0_other_with_cast.desc)) + return false; + if (!(this.uri === tmp0_other_with_cast.uri)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KPopup_rdpezb_k$(seen1, title, desc, uri, serializationConstructorMarker) { + Companion_instance_857; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_844().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.desc = ''; + else + $this.desc = desc; + if (0 === (seen1 & 4)) + $this.uri = ''; + else + $this.uri = uri; + return $this; + } + } + class Companion_858 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.SchoolSearchReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_845(); + } + } + class $serializer_845 { + constructor() { + $serializer_instance_845 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KSchoolSearchReq', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('keyword', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('fromType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = 0; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSchoolSearchReq.new_com_bapis_bilibili_app_dynamic_v2_KSchoolSearchReq_wrqibz_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_9dxzoa_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.keyword === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.keyword); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.fromType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.fromType); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_9dxzoa_k$(encoder, value instanceof KSchoolSearchReq ? value : THROW_CCE()); + } + } + class KSchoolSearchReq { + constructor(keyword, fromType) { + Companion_instance_858; + keyword = keyword === VOID ? '' : keyword; + fromType = fromType === VOID ? 0 : fromType; + this.keyword = keyword; + this.fromType = fromType; + } + get_keyword_c7bncw_k$() { + return this.keyword; + } + get_fromType_in58el_k$() { + return this.fromType; + } + fromTypeEnum() { + return Companion_getInstance_746().fromValue(this.fromType); + } + component1_7eebsc_k$() { + return this.keyword; + } + component2_7eebsb_k$() { + return this.fromType; + } + copy_1yzwer_k$(keyword, fromType) { + return new KSchoolSearchReq(keyword, fromType); + } + copy(keyword, fromType, $super) { + keyword = keyword === VOID ? this.keyword : keyword; + fromType = fromType === VOID ? this.fromType : fromType; + return this.copy_1yzwer_k$(keyword, fromType); + } + toString() { + return 'KSchoolSearchReq(keyword=' + this.keyword + ', fromType=' + this.fromType + ')'; + } + hashCode() { + var result = getStringHashCode(this.keyword); + result = imul(result, 31) + this.fromType | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSchoolSearchReq)) + return false; + var tmp0_other_with_cast = other instanceof KSchoolSearchReq ? other : THROW_CCE(); + if (!(this.keyword === tmp0_other_with_cast.keyword)) + return false; + if (!(this.fromType === tmp0_other_with_cast.fromType)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KSchoolSearchReq_wrqibz_k$(seen1, keyword, fromType, serializationConstructorMarker) { + Companion_instance_858; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_845().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.keyword = ''; + else + $this.keyword = keyword; + if (0 === (seen1 & 2)) + $this.fromType = 0; + else + $this.fromType = fromType; + return $this; + } + } + class Companion_859 { + constructor() { + Companion_instance_859 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer($serializer_getInstance_848()), null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.SchoolSearchReply'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_846(); + } + } + class $serializer_846 { + constructor() { + $serializer_instance_846 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KSchoolSearchReply', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('items', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('toast', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_859().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0], get_nullable($serializer_getInstance_847())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp7_cached = Companion_getInstance_859().$childSerializers_1; + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp7_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_847(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp7_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_847(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSchoolSearchReply.new_com_bapis_bilibili_app_dynamic_v2_KSchoolSearchReply_2ov6ew_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_t0lf02_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_859().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.items, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.items); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.toast == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_847(), value.toast); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_t0lf02_k$(encoder, value instanceof KSchoolSearchReply ? value : THROW_CCE()); + } + } + class KSchoolSearchReply { + constructor(items, toast) { + Companion_getInstance_859(); + items = items === VOID ? emptyList() : items; + toast = toast === VOID ? null : toast; + this.items = items; + this.toast = toast; + } + get_items_it823b_k$() { + return this.items; + } + get_toast_iz6iv2_k$() { + return this.toast; + } + component1_7eebsc_k$() { + return this.items; + } + component2_7eebsb_k$() { + return this.toast; + } + copy_rulg52_k$(items, toast) { + return new KSchoolSearchReply(items, toast); + } + copy(items, toast, $super) { + items = items === VOID ? this.items : items; + toast = toast === VOID ? this.toast : toast; + return this.copy_rulg52_k$(items, toast); + } + toString() { + return 'KSchoolSearchReply(items=' + this.items + ', toast=' + this.toast + ')'; + } + hashCode() { + var result = hashCode(this.items); + result = imul(result, 31) + (this.toast == null ? 0 : this.toast.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSchoolSearchReply)) + return false; + var tmp0_other_with_cast = other instanceof KSchoolSearchReply ? other : THROW_CCE(); + if (!equals(this.items, tmp0_other_with_cast.items)) + return false; + if (!equals(this.toast, tmp0_other_with_cast.toast)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KSchoolSearchReply_2ov6ew_k$(seen1, items, toast, serializationConstructorMarker) { + Companion_getInstance_859(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_846().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.items = emptyList(); + else + $this.items = items; + if (0 === (seen1 & 2)) + $this.toast = null; + else + $this.toast = toast; + return $this; + } + } + class Companion_860 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.SearchToast'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_847(); + } + } + class $serializer_847 { + constructor() { + $serializer_instance_847 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KSearchToast', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('descText1', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('descText2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSearchToast.new_com_bapis_bilibili_app_dynamic_v2_KSearchToast_sfbpmd_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_5kew6b_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.descText1 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.descText1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.descText2 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.descText2); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_5kew6b_k$(encoder, value instanceof KSearchToast ? value : THROW_CCE()); + } + } + class KSearchToast { + constructor(descText1, descText2) { + Companion_instance_860; + descText1 = descText1 === VOID ? '' : descText1; + descText2 = descText2 === VOID ? '' : descText2; + this.descText1 = descText1; + this.descText2 = descText2; + } + get_descText1_wuy7ze_k$() { + return this.descText1; + } + get_descText2_wuy7zf_k$() { + return this.descText2; + } + component1_7eebsc_k$() { + return this.descText1; + } + component2_7eebsb_k$() { + return this.descText2; + } + copy_plwnsl_k$(descText1, descText2) { + return new KSearchToast(descText1, descText2); + } + copy(descText1, descText2, $super) { + descText1 = descText1 === VOID ? this.descText1 : descText1; + descText2 = descText2 === VOID ? this.descText2 : descText2; + return this.copy_plwnsl_k$(descText1, descText2); + } + toString() { + return 'KSearchToast(descText1=' + this.descText1 + ', descText2=' + this.descText2 + ')'; + } + hashCode() { + var result = getStringHashCode(this.descText1); + result = imul(result, 31) + getStringHashCode(this.descText2) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSearchToast)) + return false; + var tmp0_other_with_cast = other instanceof KSearchToast ? other : THROW_CCE(); + if (!(this.descText1 === tmp0_other_with_cast.descText1)) + return false; + if (!(this.descText2 === tmp0_other_with_cast.descText2)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KSearchToast_sfbpmd_k$(seen1, descText1, descText2, serializationConstructorMarker) { + Companion_instance_860; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_847().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.descText1 = ''; + else + $this.descText1 = descText1; + if (0 === (seen1 & 2)) + $this.descText2 = ''; + else + $this.descText2 = descText2; + return $this; + } + } + class Companion_861 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.CampusInfo'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_848(); + } + } + class $serializer_848 { + constructor() { + $serializer_instance_848 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KCampusInfo', this, 5); + tmp0_serialDesc.addElement_5pzumi_k$('campusId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('campusName', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('desc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('online', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('url', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = new Long(0, 0); + var tmp8_local4 = null; + var tmp9_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp9_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + } else + while (tmp1_flag) { + tmp2_index = tmp9_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp9_input.endStructure_1xqz0n_k$(tmp0_desc); + return KCampusInfo.new_com_bapis_bilibili_app_dynamic_v2_KCampusInfo_mg7t1i_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); + } + serialize_8nsihp_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.campusId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.campusId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.campusName === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.campusName); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.desc === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.desc); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !value.online.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 3, value.online); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.url === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.url); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_8nsihp_k$(encoder, value instanceof KCampusInfo ? value : THROW_CCE()); + } + } + class KCampusInfo { + constructor(campusId, campusName, desc, online, url) { + Companion_instance_861; + campusId = campusId === VOID ? new Long(0, 0) : campusId; + campusName = campusName === VOID ? '' : campusName; + desc = desc === VOID ? '' : desc; + online = online === VOID ? new Long(0, 0) : online; + url = url === VOID ? '' : url; + this.campusId = campusId; + this.campusName = campusName; + this.desc = desc; + this.online = online; + this.url = url; + } + get_campusId_y3vqhp_k$() { + return this.campusId; + } + get_campusName_wd5obx_k$() { + return this.campusName; + } + get_desc_woknve_k$() { + return this.desc; + } + get_online_ho4pr0_k$() { + return this.online; + } + get_url_18iuii_k$() { + return this.url; + } + component1_7eebsc_k$() { + return this.campusId; + } + component2_7eebsb_k$() { + return this.campusName; + } + component3_7eebsa_k$() { + return this.desc; + } + component4_7eebs9_k$() { + return this.online; + } + component5_7eebs8_k$() { + return this.url; + } + copy_rdj3tj_k$(campusId, campusName, desc, online, url) { + return new KCampusInfo(campusId, campusName, desc, online, url); + } + copy(campusId, campusName, desc, online, url, $super) { + campusId = campusId === VOID ? this.campusId : campusId; + campusName = campusName === VOID ? this.campusName : campusName; + desc = desc === VOID ? this.desc : desc; + online = online === VOID ? this.online : online; + url = url === VOID ? this.url : url; + return this.copy_rdj3tj_k$(campusId, campusName, desc, online, url); + } + toString() { + return 'KCampusInfo(campusId=' + this.campusId.toString() + ', campusName=' + this.campusName + ', desc=' + this.desc + ', online=' + this.online.toString() + ', url=' + this.url + ')'; + } + hashCode() { + var result = this.campusId.hashCode(); + result = imul(result, 31) + getStringHashCode(this.campusName) | 0; + result = imul(result, 31) + getStringHashCode(this.desc) | 0; + result = imul(result, 31) + this.online.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.url) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KCampusInfo)) + return false; + var tmp0_other_with_cast = other instanceof KCampusInfo ? other : THROW_CCE(); + if (!this.campusId.equals(tmp0_other_with_cast.campusId)) + return false; + if (!(this.campusName === tmp0_other_with_cast.campusName)) + return false; + if (!(this.desc === tmp0_other_with_cast.desc)) + return false; + if (!this.online.equals(tmp0_other_with_cast.online)) + return false; + if (!(this.url === tmp0_other_with_cast.url)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KCampusInfo_mg7t1i_k$(seen1, campusId, campusName, desc, online, url, serializationConstructorMarker) { + Companion_instance_861; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_848().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.campusId = new Long(0, 0); + else + $this.campusId = campusId; + if (0 === (seen1 & 2)) + $this.campusName = ''; + else + $this.campusName = campusName; + if (0 === (seen1 & 4)) + $this.desc = ''; + else + $this.desc = desc; + if (0 === (seen1 & 8)) + $this.online = new Long(0, 0); + else + $this.online = online; + if (0 === (seen1 & 16)) + $this.url = ''; + else + $this.url = url; + return $this; + } + } + class Companion_862 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.SchoolRecommendReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_849(); + } + } + class $serializer_849 { + constructor() { + $serializer_instance_849 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KSchoolRecommendReq', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('lat', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('lng', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('fromType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [FloatSerializer_getInstance(), FloatSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0.0; + var tmp5_local1 = 0.0; + var tmp6_local2 = 0; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeFloatElement_p2q55h_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeFloatElement_p2q55h_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeFloatElement_p2q55h_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeFloatElement_p2q55h_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSchoolRecommendReq.new_com_bapis_bilibili_app_dynamic_v2_KSchoolRecommendReq_6qgdna_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_8j1x78_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.lat, 0.0)) { + tmp1_output.encodeFloatElement_oe8hn_k$(tmp0_desc, 0, value.lat); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !equals(value.lng, 0.0)) { + tmp1_output.encodeFloatElement_oe8hn_k$(tmp0_desc, 1, value.lng); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.fromType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.fromType); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_8j1x78_k$(encoder, value instanceof KSchoolRecommendReq ? value : THROW_CCE()); + } + } + class KSchoolRecommendReq { + constructor(lat, lng, fromType) { + Companion_instance_862; + lat = lat === VOID ? 0.0 : lat; + lng = lng === VOID ? 0.0 : lng; + fromType = fromType === VOID ? 0 : fromType; + this.lat = lat; + this.lng = lng; + this.fromType = fromType; + } + get_lat_18j1l6_k$() { + return this.lat; + } + get_lng_18j1ac_k$() { + return this.lng; + } + get_fromType_in58el_k$() { + return this.fromType; + } + fromTypeEnum() { + return Companion_getInstance_746().fromValue(this.fromType); + } + component1_7eebsc_k$() { + return this.lat; + } + component2_7eebsb_k$() { + return this.lng; + } + component3_7eebsa_k$() { + return this.fromType; + } + copy_nlcrgd_k$(lat, lng, fromType) { + return new KSchoolRecommendReq(lat, lng, fromType); + } + copy(lat, lng, fromType, $super) { + lat = lat === VOID ? this.lat : lat; + lng = lng === VOID ? this.lng : lng; + fromType = fromType === VOID ? this.fromType : fromType; + return this.copy_nlcrgd_k$(lat, lng, fromType); + } + toString() { + return 'KSchoolRecommendReq(lat=' + this.lat + ', lng=' + this.lng + ', fromType=' + this.fromType + ')'; + } + hashCode() { + var result = getNumberHashCode(this.lat); + result = imul(result, 31) + getNumberHashCode(this.lng) | 0; + result = imul(result, 31) + this.fromType | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSchoolRecommendReq)) + return false; + var tmp0_other_with_cast = other instanceof KSchoolRecommendReq ? other : THROW_CCE(); + if (!equals(this.lat, tmp0_other_with_cast.lat)) + return false; + if (!equals(this.lng, tmp0_other_with_cast.lng)) + return false; + if (!(this.fromType === tmp0_other_with_cast.fromType)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KSchoolRecommendReq_6qgdna_k$(seen1, lat, lng, fromType, serializationConstructorMarker) { + Companion_instance_862; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_849().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.lat = 0.0; + else + $this.lat = lat; + if (0 === (seen1 & 2)) + $this.lng = 0.0; + else + $this.lng = lng; + if (0 === (seen1 & 4)) + $this.fromType = 0; + else + $this.fromType = fromType; + return $this; + } + } + class Companion_863 { + constructor() { + Companion_instance_863 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer($serializer_getInstance_848())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.SchoolRecommendReply'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_850(); + } + } + class $serializer_850 { + constructor() { + $serializer_instance_850 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KSchoolRecommendReply', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('items', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_863().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp6_cached = Companion_getInstance_863().$childSerializers_1; + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSchoolRecommendReply.new_com_bapis_bilibili_app_dynamic_v2_KSchoolRecommendReply_v6tjxf_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_19asl4_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_863().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.items, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.items); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_19asl4_k$(encoder, value instanceof KSchoolRecommendReply ? value : THROW_CCE()); + } + } + class KSchoolRecommendReply { + constructor(items) { + Companion_getInstance_863(); + items = items === VOID ? emptyList() : items; + this.items = items; + } + get_items_it823b_k$() { + return this.items; + } + component1_7eebsc_k$() { + return this.items; + } + copy_1ocfgj_k$(items) { + return new KSchoolRecommendReply(items); + } + copy(items, $super) { + items = items === VOID ? this.items : items; + return this.copy_1ocfgj_k$(items); + } + toString() { + return 'KSchoolRecommendReply(items=' + this.items + ')'; + } + hashCode() { + return hashCode(this.items); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSchoolRecommendReply)) + return false; + var tmp0_other_with_cast = other instanceof KSchoolRecommendReply ? other : THROW_CCE(); + if (!equals(this.items, tmp0_other_with_cast.items)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KSchoolRecommendReply_v6tjxf_k$(seen1, items, serializationConstructorMarker) { + Companion_getInstance_863(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_850().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.items = emptyList(); + else + $this.items = items; + return $this; + } + } + class Companion_864 { + constructor() { + Companion_instance_864 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer(LongSerializer_getInstance()), new ArrayListSerializer(StringSerializer_getInstance()), null, null, null, null, null, null, null, null, null, null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.DynSpaceSearchDetailsReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_851(); + } + } + class $serializer_851 { + constructor() { + $serializer_instance_851 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KDynSpaceSearchDetailsReq', this, 13); + tmp0_serialDesc.addElement_5pzumi_k$('dynamicIds', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('searchWords', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('localTime', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('playerArgs', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('mobiApp', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('device', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('buvid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('build', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('mid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('platform', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('ip', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('netType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + tmp0_serialDesc.addElement_5pzumi_k$('tfType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(13)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_864().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0], tmp0_cached[1], IntSerializer_getInstance(), get_nullable($serializer_getInstance_152()), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = 0; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = new Long(0, 0); + var tmp12_local8 = new Long(0, 0); + var tmp13_local9 = null; + var tmp14_local10 = null; + var tmp15_local11 = 0; + var tmp16_local12 = 0; + var tmp17_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp18_cached = Companion_getInstance_864().$childSerializers_1; + if (tmp17_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp17_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp18_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp17_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp18_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp17_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp17_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_152(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp17_input.decodeLongElement_994anb_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp17_input.decodeLongElement_994anb_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp17_input.decodeIntElement_941u6a_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + tmp16_local12 = tmp17_input.decodeIntElement_941u6a_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + } else + while (tmp1_flag) { + tmp2_index = tmp17_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp17_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp18_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp17_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp18_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp17_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp17_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_152(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp17_input.decodeLongElement_994anb_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp17_input.decodeLongElement_994anb_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp17_input.decodeIntElement_941u6a_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + case 12: + tmp16_local12 = tmp17_input.decodeIntElement_941u6a_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp17_input.endStructure_1xqz0n_k$(tmp0_desc); + return KDynSpaceSearchDetailsReq.new_com_bapis_bilibili_app_dynamic_v2_KDynSpaceSearchDetailsReq_f271yx_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, null); + } + serialize_5p11pj_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_864().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.dynamicIds, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.dynamicIds); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !equals(value.searchWords, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 1, tmp2_cached[1], value.searchWords); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.localTime === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.localTime); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.playerArgs == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_152(), value.playerArgs); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.mobiApp === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.mobiApp); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.device === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.device); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.buvid === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.buvid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !value.build.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 7, value.build); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !value.mid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 8, value.mid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.platform === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 9, value.platform); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.ip === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 10, value.ip); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.netType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 11, value.netType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !(value.tfType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 12, value.tfType); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_5p11pj_k$(encoder, value instanceof KDynSpaceSearchDetailsReq ? value : THROW_CCE()); + } + } + class KDynSpaceSearchDetailsReq { + constructor(dynamicIds, searchWords, localTime, playerArgs, mobiApp, device, buvid, build, mid, platform, ip, netType, tfType) { + Companion_getInstance_864(); + dynamicIds = dynamicIds === VOID ? emptyList() : dynamicIds; + searchWords = searchWords === VOID ? emptyList() : searchWords; + localTime = localTime === VOID ? 0 : localTime; + playerArgs = playerArgs === VOID ? null : playerArgs; + mobiApp = mobiApp === VOID ? '' : mobiApp; + device = device === VOID ? '' : device; + buvid = buvid === VOID ? '' : buvid; + build = build === VOID ? new Long(0, 0) : build; + mid = mid === VOID ? new Long(0, 0) : mid; + platform = platform === VOID ? '' : platform; + ip = ip === VOID ? '' : ip; + netType = netType === VOID ? 0 : netType; + tfType = tfType === VOID ? 0 : tfType; + this.dynamicIds = dynamicIds; + this.searchWords = searchWords; + this.localTime = localTime; + this.playerArgs = playerArgs; + this.mobiApp = mobiApp; + this.device = device; + this.buvid = buvid; + this.build = build; + this.mid = mid; + this.platform = platform; + this.ip = ip; + this.netType = netType; + this.tfType = tfType; + } + get_dynamicIds_ow791a_k$() { + return this.dynamicIds; + } + get_searchWords_4uo7lk_k$() { + return this.searchWords; + } + get_localTime_bf0zwx_k$() { + return this.localTime; + } + get_playerArgs_eh86hz_k$() { + return this.playerArgs; + } + get_mobiApp_lizzf3_k$() { + return this.mobiApp; + } + get_device_cbv3of_k$() { + return this.device; + } + get_buvid_ipehf9_k$() { + return this.buvid; + } + get_build_ipe7ut_k$() { + return this.build; + } + get_mid_18j0o1_k$() { + return this.mid; + } + get_platform_ssr7o_k$() { + return this.platform; + } + get_ip_kntnww_k$() { + return this.ip; + } + get_netType_vqi366_k$() { + return this.netType; + } + get_tfType_jwjh79_k$() { + return this.tfType; + } + netTypeEnum() { + return Companion_getInstance_742().fromValue(this.netType); + } + tfTypeEnum() { + return Companion_getInstance_743().fromValue(this.tfType); + } + component1_7eebsc_k$() { + return this.dynamicIds; + } + component2_7eebsb_k$() { + return this.searchWords; + } + component3_7eebsa_k$() { + return this.localTime; + } + component4_7eebs9_k$() { + return this.playerArgs; + } + component5_7eebs8_k$() { + return this.mobiApp; + } + component6_7eebs7_k$() { + return this.device; + } + component7_7eebs6_k$() { + return this.buvid; + } + component8_7eebs5_k$() { + return this.build; + } + component9_7eebs4_k$() { + return this.mid; + } + component10_gazzfo_k$() { + return this.platform; + } + component11_gazzfn_k$() { + return this.ip; + } + component12_gazzfm_k$() { + return this.netType; + } + component13_gazzfl_k$() { + return this.tfType; + } + copy_gtmmf8_k$(dynamicIds, searchWords, localTime, playerArgs, mobiApp, device, buvid, build, mid, platform, ip, netType, tfType) { + return new KDynSpaceSearchDetailsReq(dynamicIds, searchWords, localTime, playerArgs, mobiApp, device, buvid, build, mid, platform, ip, netType, tfType); + } + copy(dynamicIds, searchWords, localTime, playerArgs, mobiApp, device, buvid, build, mid, platform, ip, netType, tfType, $super) { + dynamicIds = dynamicIds === VOID ? this.dynamicIds : dynamicIds; + searchWords = searchWords === VOID ? this.searchWords : searchWords; + localTime = localTime === VOID ? this.localTime : localTime; + playerArgs = playerArgs === VOID ? this.playerArgs : playerArgs; + mobiApp = mobiApp === VOID ? this.mobiApp : mobiApp; + device = device === VOID ? this.device : device; + buvid = buvid === VOID ? this.buvid : buvid; + build = build === VOID ? this.build : build; + mid = mid === VOID ? this.mid : mid; + platform = platform === VOID ? this.platform : platform; + ip = ip === VOID ? this.ip : ip; + netType = netType === VOID ? this.netType : netType; + tfType = tfType === VOID ? this.tfType : tfType; + return this.copy_gtmmf8_k$(dynamicIds, searchWords, localTime, playerArgs, mobiApp, device, buvid, build, mid, platform, ip, netType, tfType); + } + toString() { + return 'KDynSpaceSearchDetailsReq(dynamicIds=' + this.dynamicIds + ', searchWords=' + this.searchWords + ', localTime=' + this.localTime + ', playerArgs=' + this.playerArgs + ', mobiApp=' + this.mobiApp + ', device=' + this.device + ', buvid=' + this.buvid + ', build=' + this.build.toString() + ', mid=' + this.mid.toString() + ', platform=' + this.platform + ', ip=' + this.ip + ', netType=' + this.netType + ', tfType=' + this.tfType + ')'; + } + hashCode() { + var result = hashCode(this.dynamicIds); + result = imul(result, 31) + hashCode(this.searchWords) | 0; + result = imul(result, 31) + this.localTime | 0; + result = imul(result, 31) + (this.playerArgs == null ? 0 : this.playerArgs.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.mobiApp) | 0; + result = imul(result, 31) + getStringHashCode(this.device) | 0; + result = imul(result, 31) + getStringHashCode(this.buvid) | 0; + result = imul(result, 31) + this.build.hashCode() | 0; + result = imul(result, 31) + this.mid.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.platform) | 0; + result = imul(result, 31) + getStringHashCode(this.ip) | 0; + result = imul(result, 31) + this.netType | 0; + result = imul(result, 31) + this.tfType | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KDynSpaceSearchDetailsReq)) + return false; + var tmp0_other_with_cast = other instanceof KDynSpaceSearchDetailsReq ? other : THROW_CCE(); + if (!equals(this.dynamicIds, tmp0_other_with_cast.dynamicIds)) + return false; + if (!equals(this.searchWords, tmp0_other_with_cast.searchWords)) + return false; + if (!(this.localTime === tmp0_other_with_cast.localTime)) + return false; + if (!equals(this.playerArgs, tmp0_other_with_cast.playerArgs)) + return false; + if (!(this.mobiApp === tmp0_other_with_cast.mobiApp)) + return false; + if (!(this.device === tmp0_other_with_cast.device)) + return false; + if (!(this.buvid === tmp0_other_with_cast.buvid)) + return false; + if (!this.build.equals(tmp0_other_with_cast.build)) + return false; + if (!this.mid.equals(tmp0_other_with_cast.mid)) + return false; + if (!(this.platform === tmp0_other_with_cast.platform)) + return false; + if (!(this.ip === tmp0_other_with_cast.ip)) + return false; + if (!(this.netType === tmp0_other_with_cast.netType)) + return false; + if (!(this.tfType === tmp0_other_with_cast.tfType)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KDynSpaceSearchDetailsReq_f271yx_k$(seen1, dynamicIds, searchWords, localTime, playerArgs, mobiApp, device, buvid, build, mid, platform, ip, netType, tfType, serializationConstructorMarker) { + Companion_getInstance_864(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_851().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.dynamicIds = emptyList(); + else + $this.dynamicIds = dynamicIds; + if (0 === (seen1 & 2)) + $this.searchWords = emptyList(); + else + $this.searchWords = searchWords; + if (0 === (seen1 & 4)) + $this.localTime = 0; + else + $this.localTime = localTime; + if (0 === (seen1 & 8)) + $this.playerArgs = null; + else + $this.playerArgs = playerArgs; + if (0 === (seen1 & 16)) + $this.mobiApp = ''; + else + $this.mobiApp = mobiApp; + if (0 === (seen1 & 32)) + $this.device = ''; + else + $this.device = device; + if (0 === (seen1 & 64)) + $this.buvid = ''; + else + $this.buvid = buvid; + if (0 === (seen1 & 128)) + $this.build = new Long(0, 0); + else + $this.build = build; + if (0 === (seen1 & 256)) + $this.mid = new Long(0, 0); + else + $this.mid = mid; + if (0 === (seen1 & 512)) + $this.platform = ''; + else + $this.platform = platform; + if (0 === (seen1 & 1024)) + $this.ip = ''; + else + $this.ip = ip; + if (0 === (seen1 & 2048)) + $this.netType = 0; + else + $this.netType = netType; + if (0 === (seen1 & 4096)) + $this.tfType = 0; + else + $this.tfType = tfType; + return $this; + } + } + class Companion_865 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.DynSpaceSearchDetailsReply.ItemsEntry'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_852(); + } + } + class $serializer_852 { + constructor() { + $serializer_instance_852 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KDynSpaceSearchDetailsReply.KItemsEntry', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('key', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('value', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), get_nullable($serializer_getInstance_942())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_942(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_942(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KItemsEntry_0.new_com_bapis_bilibili_app_dynamic_v2_KDynSpaceSearchDetailsReply_KItemsEntry_glura9_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_lybt7i_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.key.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.key); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.value == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_942(), value.value); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_lybt7i_k$(encoder, value instanceof KItemsEntry_0 ? value : THROW_CCE()); + } + } + class KItemsEntry_0 { + constructor(key, value) { + Companion_instance_865; + key = key === VOID ? new Long(0, 0) : key; + value = value === VOID ? null : value; + this.key = key; + this.value = value; + } + get_key_18j28a_k$() { + return this.key; + } + get_value_j01efc_k$() { + return this.value; + } + component1_7eebsc_k$() { + return this.key; + } + component2_7eebsb_k$() { + return this.value; + } + copy_96o5g9_k$(key, value) { + return new KItemsEntry_0(key, value); + } + copy(key, value, $super) { + key = key === VOID ? this.key : key; + value = value === VOID ? this.value : value; + return this.copy_96o5g9_k$(key, value); + } + toString() { + return 'KItemsEntry(key=' + this.key.toString() + ', value=' + this.value + ')'; + } + hashCode() { + var result = this.key.hashCode(); + result = imul(result, 31) + (this.value == null ? 0 : this.value.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KItemsEntry_0)) + return false; + var tmp0_other_with_cast = other instanceof KItemsEntry_0 ? other : THROW_CCE(); + if (!this.key.equals(tmp0_other_with_cast.key)) + return false; + if (!equals(this.value, tmp0_other_with_cast.value)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KDynSpaceSearchDetailsReply_KItemsEntry_glura9_k$(seen1, key, value, serializationConstructorMarker) { + Companion_instance_865; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_852().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.key = new Long(0, 0); + else + $this.key = key; + if (0 === (seen1 & 2)) + $this.value = null; + else + $this.value = value; + return $this; + } + } + class Companion_866 { + constructor() { + Companion_instance_866 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new LinkedHashMapSerializer(LongSerializer_getInstance(), get_nullable($serializer_getInstance_942()))]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.DynSpaceSearchDetailsReply'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_853(); + } + } + class $serializer_853 { + constructor() { + $serializer_instance_853 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KDynSpaceSearchDetailsReply', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('items', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_866().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp6_cached = Companion_getInstance_866().$childSerializers_1; + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KDynSpaceSearchDetailsReply.new_com_bapis_bilibili_app_dynamic_v2_KDynSpaceSearchDetailsReply_s6lwqq_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_x2y5kj_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_866().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.items, emptyMap())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.items); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_x2y5kj_k$(encoder, value instanceof KDynSpaceSearchDetailsReply ? value : THROW_CCE()); + } + } + class KDynSpaceSearchDetailsReply { + constructor(items) { + Companion_getInstance_866(); + items = items === VOID ? emptyMap() : items; + this.items = items; + } + get_items_it823b_k$() { + return this.items; + } + component1_7eebsc_k$() { + return this.items; + } + copy_pyuj7_k$(items) { + return new KDynSpaceSearchDetailsReply(items); + } + copy(items, $super) { + items = items === VOID ? this.items : items; + return this.copy_pyuj7_k$(items); + } + toString() { + return 'KDynSpaceSearchDetailsReply(items=' + this.items + ')'; + } + hashCode() { + return hashCode(this.items); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KDynSpaceSearchDetailsReply)) + return false; + var tmp0_other_with_cast = other instanceof KDynSpaceSearchDetailsReply ? other : THROW_CCE(); + if (!equals(this.items, tmp0_other_with_cast.items)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KDynSpaceSearchDetailsReply_s6lwqq_k$(seen1, items, serializationConstructorMarker) { + Companion_getInstance_866(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_853().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.items = emptyMap(); + else + $this.items = items; + return $this; + } + } + class Companion_867 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.OfficialAccountsReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_854(); + } + } + class $serializer_854 { + constructor() { + $serializer_instance_854 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KOfficialAccountsReq', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('campusId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('campusName', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('offset', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('fromType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_local2 = new Long(0, 0); + var tmp7_local3 = 0; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KOfficialAccountsReq.new_com_bapis_bilibili_app_dynamic_v2_KOfficialAccountsReq_1df0gw_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_y98dyp_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.campusId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.campusId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.campusName === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.campusName); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.offset.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.offset); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.fromType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 3, value.fromType); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_y98dyp_k$(encoder, value instanceof KOfficialAccountsReq ? value : THROW_CCE()); + } + } + class KOfficialAccountsReq { + constructor(campusId, campusName, offset, fromType) { + Companion_instance_867; + campusId = campusId === VOID ? new Long(0, 0) : campusId; + campusName = campusName === VOID ? '' : campusName; + offset = offset === VOID ? new Long(0, 0) : offset; + fromType = fromType === VOID ? 0 : fromType; + this.campusId = campusId; + this.campusName = campusName; + this.offset = offset; + this.fromType = fromType; + } + get_campusId_y3vqhp_k$() { + return this.campusId; + } + get_campusName_wd5obx_k$() { + return this.campusName; + } + get_offset_hjmqak_k$() { + return this.offset; + } + get_fromType_in58el_k$() { + return this.fromType; + } + fromTypeEnum() { + return Companion_getInstance_746().fromValue(this.fromType); + } + component1_7eebsc_k$() { + return this.campusId; + } + component2_7eebsb_k$() { + return this.campusName; + } + component3_7eebsa_k$() { + return this.offset; + } + component4_7eebs9_k$() { + return this.fromType; + } + copy_ke2fal_k$(campusId, campusName, offset, fromType) { + return new KOfficialAccountsReq(campusId, campusName, offset, fromType); + } + copy(campusId, campusName, offset, fromType, $super) { + campusId = campusId === VOID ? this.campusId : campusId; + campusName = campusName === VOID ? this.campusName : campusName; + offset = offset === VOID ? this.offset : offset; + fromType = fromType === VOID ? this.fromType : fromType; + return this.copy_ke2fal_k$(campusId, campusName, offset, fromType); + } + toString() { + return 'KOfficialAccountsReq(campusId=' + this.campusId.toString() + ', campusName=' + this.campusName + ', offset=' + this.offset.toString() + ', fromType=' + this.fromType + ')'; + } + hashCode() { + var result = this.campusId.hashCode(); + result = imul(result, 31) + getStringHashCode(this.campusName) | 0; + result = imul(result, 31) + this.offset.hashCode() | 0; + result = imul(result, 31) + this.fromType | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KOfficialAccountsReq)) + return false; + var tmp0_other_with_cast = other instanceof KOfficialAccountsReq ? other : THROW_CCE(); + if (!this.campusId.equals(tmp0_other_with_cast.campusId)) + return false; + if (!(this.campusName === tmp0_other_with_cast.campusName)) + return false; + if (!this.offset.equals(tmp0_other_with_cast.offset)) + return false; + if (!(this.fromType === tmp0_other_with_cast.fromType)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KOfficialAccountsReq_1df0gw_k$(seen1, campusId, campusName, offset, fromType, serializationConstructorMarker) { + Companion_instance_867; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_854().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.campusId = new Long(0, 0); + else + $this.campusId = campusId; + if (0 === (seen1 & 2)) + $this.campusName = ''; + else + $this.campusName = campusName; + if (0 === (seen1 & 4)) + $this.offset = new Long(0, 0); + else + $this.offset = offset; + if (0 === (seen1 & 8)) + $this.fromType = 0; + else + $this.fromType = fromType; + return $this; + } + } + class Companion_868 { + constructor() { + Companion_instance_868 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer($serializer_getInstance_856()), null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.OfficialAccountsReply'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_855(); + } + } + class $serializer_855 { + constructor() { + $serializer_instance_855 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KOfficialAccountsReply', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('items', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('hasMore', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('offset', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_868().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0], BooleanSerializer_getInstance(), LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = false; + var tmp6_local2 = new Long(0, 0); + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp8_cached = Companion_getInstance_868().$childSerializers_1; + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp8_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp8_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KOfficialAccountsReply.new_com_bapis_bilibili_app_dynamic_v2_KOfficialAccountsReply_hfkrry_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_8joy6b_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_868().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.items, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.items); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.hasMore === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 1, value.hasMore); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.offset.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.offset); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_8joy6b_k$(encoder, value instanceof KOfficialAccountsReply ? value : THROW_CCE()); + } + } + class KOfficialAccountsReply { + constructor(items, hasMore, offset) { + Companion_getInstance_868(); + items = items === VOID ? emptyList() : items; + hasMore = hasMore === VOID ? false : hasMore; + offset = offset === VOID ? new Long(0, 0) : offset; + this.items = items; + this.hasMore = hasMore; + this.offset = offset; + } + get_items_it823b_k$() { + return this.items; + } + get_hasMore_csdhd2_k$() { + return this.hasMore; + } + get_offset_hjmqak_k$() { + return this.offset; + } + component1_7eebsc_k$() { + return this.items; + } + component2_7eebsb_k$() { + return this.hasMore; + } + component3_7eebsa_k$() { + return this.offset; + } + copy_qaoztz_k$(items, hasMore, offset) { + return new KOfficialAccountsReply(items, hasMore, offset); + } + copy(items, hasMore, offset, $super) { + items = items === VOID ? this.items : items; + hasMore = hasMore === VOID ? this.hasMore : hasMore; + offset = offset === VOID ? this.offset : offset; + return this.copy_qaoztz_k$(items, hasMore, offset); + } + toString() { + return 'KOfficialAccountsReply(items=' + this.items + ', hasMore=' + this.hasMore + ', offset=' + this.offset.toString() + ')'; + } + hashCode() { + var result = hashCode(this.items); + result = imul(result, 31) + getBooleanHashCode(this.hasMore) | 0; + result = imul(result, 31) + this.offset.hashCode() | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KOfficialAccountsReply)) + return false; + var tmp0_other_with_cast = other instanceof KOfficialAccountsReply ? other : THROW_CCE(); + if (!equals(this.items, tmp0_other_with_cast.items)) + return false; + if (!(this.hasMore === tmp0_other_with_cast.hasMore)) + return false; + if (!this.offset.equals(tmp0_other_with_cast.offset)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KOfficialAccountsReply_hfkrry_k$(seen1, items, hasMore, offset, serializationConstructorMarker) { + Companion_getInstance_868(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_855().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.items = emptyList(); + else + $this.items = items; + if (0 === (seen1 & 2)) + $this.hasMore = false; + else + $this.hasMore = hasMore; + if (0 === (seen1 & 4)) + $this.offset = new Long(0, 0); + else + $this.offset = offset; + return $this; + } + } + class Companion_869 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.OfficialAccountInfo'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_856(); + } + } + class $serializer_856 { + constructor() { + $serializer_instance_856 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KOfficialAccountInfo', this, 6); + tmp0_serialDesc.addElement_5pzumi_k$('author', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('mid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('uri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('relation', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('descText1', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('descText2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_956()), LongSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_967()), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = new Long(0, 0); + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp10_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_956(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_967(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + } else + while (tmp1_flag) { + tmp2_index = tmp10_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_956(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_967(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp10_input.endStructure_1xqz0n_k$(tmp0_desc); + return KOfficialAccountInfo.new_com_bapis_bilibili_app_dynamic_v2_KOfficialAccountInfo_hrfb5m_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); + } + serialize_vbuabw_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.author == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_956(), value.author); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.mid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.mid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.uri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.uri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.relation == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_967(), value.relation); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.descText1 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.descText1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.descText2 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.descText2); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_vbuabw_k$(encoder, value instanceof KOfficialAccountInfo ? value : THROW_CCE()); + } + } + class KOfficialAccountInfo { + constructor(author, mid, uri, relation, descText1, descText2) { + Companion_instance_869; + author = author === VOID ? null : author; + mid = mid === VOID ? new Long(0, 0) : mid; + uri = uri === VOID ? '' : uri; + relation = relation === VOID ? null : relation; + descText1 = descText1 === VOID ? '' : descText1; + descText2 = descText2 === VOID ? '' : descText2; + this.author = author; + this.mid = mid; + this.uri = uri; + this.relation = relation; + this.descText1 = descText1; + this.descText2 = descText2; + } + get_author_b5hnkk_k$() { + return this.author; + } + get_mid_18j0o1_k$() { + return this.mid; + } + get_uri_18iuil_k$() { + return this.uri; + } + get_relation_u22tol_k$() { + return this.relation; + } + get_descText1_wuy7ze_k$() { + return this.descText1; + } + get_descText2_wuy7zf_k$() { + return this.descText2; + } + component1_7eebsc_k$() { + return this.author; + } + component2_7eebsb_k$() { + return this.mid; + } + component3_7eebsa_k$() { + return this.uri; + } + component4_7eebs9_k$() { + return this.relation; + } + component5_7eebs8_k$() { + return this.descText1; + } + component6_7eebs7_k$() { + return this.descText2; + } + copy_qnwj6y_k$(author, mid, uri, relation, descText1, descText2) { + return new KOfficialAccountInfo(author, mid, uri, relation, descText1, descText2); + } + copy(author, mid, uri, relation, descText1, descText2, $super) { + author = author === VOID ? this.author : author; + mid = mid === VOID ? this.mid : mid; + uri = uri === VOID ? this.uri : uri; + relation = relation === VOID ? this.relation : relation; + descText1 = descText1 === VOID ? this.descText1 : descText1; + descText2 = descText2 === VOID ? this.descText2 : descText2; + return this.copy_qnwj6y_k$(author, mid, uri, relation, descText1, descText2); + } + toString() { + return 'KOfficialAccountInfo(author=' + this.author + ', mid=' + this.mid.toString() + ', uri=' + this.uri + ', relation=' + this.relation + ', descText1=' + this.descText1 + ', descText2=' + this.descText2 + ')'; + } + hashCode() { + var result = this.author == null ? 0 : this.author.hashCode(); + result = imul(result, 31) + this.mid.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.uri) | 0; + result = imul(result, 31) + (this.relation == null ? 0 : this.relation.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.descText1) | 0; + result = imul(result, 31) + getStringHashCode(this.descText2) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KOfficialAccountInfo)) + return false; + var tmp0_other_with_cast = other instanceof KOfficialAccountInfo ? other : THROW_CCE(); + if (!equals(this.author, tmp0_other_with_cast.author)) + return false; + if (!this.mid.equals(tmp0_other_with_cast.mid)) + return false; + if (!(this.uri === tmp0_other_with_cast.uri)) + return false; + if (!equals(this.relation, tmp0_other_with_cast.relation)) + return false; + if (!(this.descText1 === tmp0_other_with_cast.descText1)) + return false; + if (!(this.descText2 === tmp0_other_with_cast.descText2)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KOfficialAccountInfo_hrfb5m_k$(seen1, author, mid, uri, relation, descText1, descText2, serializationConstructorMarker) { + Companion_instance_869; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_856().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.author = null; + else + $this.author = author; + if (0 === (seen1 & 2)) + $this.mid = new Long(0, 0); + else + $this.mid = mid; + if (0 === (seen1 & 4)) + $this.uri = ''; + else + $this.uri = uri; + if (0 === (seen1 & 8)) + $this.relation = null; + else + $this.relation = relation; + if (0 === (seen1 & 16)) + $this.descText1 = ''; + else + $this.descText1 = descText1; + if (0 === (seen1 & 32)) + $this.descText2 = ''; + else + $this.descText2 = descText2; + return $this; + } + } + class Companion_870 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.OfficialDynamicsReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_857(); + } + } + class $serializer_857 { + constructor() { + $serializer_instance_857 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KOfficialDynamicsReq', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('campusId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('campusName', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('offset', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('fromType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_local2 = new Long(0, 0); + var tmp7_local3 = 0; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KOfficialDynamicsReq.new_com_bapis_bilibili_app_dynamic_v2_KOfficialDynamicsReq_z3k182_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_lqx9tp_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.campusId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.campusId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.campusName === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.campusName); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.offset.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.offset); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.fromType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 3, value.fromType); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_lqx9tp_k$(encoder, value instanceof KOfficialDynamicsReq ? value : THROW_CCE()); + } + } + class KOfficialDynamicsReq { + constructor(campusId, campusName, offset, fromType) { + Companion_instance_870; + campusId = campusId === VOID ? new Long(0, 0) : campusId; + campusName = campusName === VOID ? '' : campusName; + offset = offset === VOID ? new Long(0, 0) : offset; + fromType = fromType === VOID ? 0 : fromType; + this.campusId = campusId; + this.campusName = campusName; + this.offset = offset; + this.fromType = fromType; + } + get_campusId_y3vqhp_k$() { + return this.campusId; + } + get_campusName_wd5obx_k$() { + return this.campusName; + } + get_offset_hjmqak_k$() { + return this.offset; + } + get_fromType_in58el_k$() { + return this.fromType; + } + fromTypeEnum() { + return Companion_getInstance_746().fromValue(this.fromType); + } + component1_7eebsc_k$() { + return this.campusId; + } + component2_7eebsb_k$() { + return this.campusName; + } + component3_7eebsa_k$() { + return this.offset; + } + component4_7eebs9_k$() { + return this.fromType; + } + copy_ke2fal_k$(campusId, campusName, offset, fromType) { + return new KOfficialDynamicsReq(campusId, campusName, offset, fromType); + } + copy(campusId, campusName, offset, fromType, $super) { + campusId = campusId === VOID ? this.campusId : campusId; + campusName = campusName === VOID ? this.campusName : campusName; + offset = offset === VOID ? this.offset : offset; + fromType = fromType === VOID ? this.fromType : fromType; + return this.copy_ke2fal_k$(campusId, campusName, offset, fromType); + } + toString() { + return 'KOfficialDynamicsReq(campusId=' + this.campusId.toString() + ', campusName=' + this.campusName + ', offset=' + this.offset.toString() + ', fromType=' + this.fromType + ')'; + } + hashCode() { + var result = this.campusId.hashCode(); + result = imul(result, 31) + getStringHashCode(this.campusName) | 0; + result = imul(result, 31) + this.offset.hashCode() | 0; + result = imul(result, 31) + this.fromType | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KOfficialDynamicsReq)) + return false; + var tmp0_other_with_cast = other instanceof KOfficialDynamicsReq ? other : THROW_CCE(); + if (!this.campusId.equals(tmp0_other_with_cast.campusId)) + return false; + if (!(this.campusName === tmp0_other_with_cast.campusName)) + return false; + if (!this.offset.equals(tmp0_other_with_cast.offset)) + return false; + if (!(this.fromType === tmp0_other_with_cast.fromType)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KOfficialDynamicsReq_z3k182_k$(seen1, campusId, campusName, offset, fromType, serializationConstructorMarker) { + Companion_instance_870; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_857().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.campusId = new Long(0, 0); + else + $this.campusId = campusId; + if (0 === (seen1 & 2)) + $this.campusName = ''; + else + $this.campusName = campusName; + if (0 === (seen1 & 4)) + $this.offset = new Long(0, 0); + else + $this.offset = offset; + if (0 === (seen1 & 8)) + $this.fromType = 0; + else + $this.fromType = fromType; + return $this; + } + } + class Companion_871 { + constructor() { + Companion_instance_871 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer($serializer_getInstance_859()), null, null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.OfficialDynamicsReply'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_858(); + } + } + class $serializer_858 { + constructor() { + $serializer_instance_858 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KOfficialDynamicsReply', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('items', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('offset', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('hasMore', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('playerArgs', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_871().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0], LongSerializer_getInstance(), BooleanSerializer_getInstance(), get_nullable($serializer_getInstance_152())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = new Long(0, 0); + var tmp6_local2 = false; + var tmp7_local3 = null; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp9_cached = Companion_getInstance_871().$childSerializers_1; + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp9_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_152(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp9_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_152(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KOfficialDynamicsReply.new_com_bapis_bilibili_app_dynamic_v2_KOfficialDynamicsReply_mnmasz_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_cokma7_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_871().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.items, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.items); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.offset.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.offset); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.hasMore === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 2, value.hasMore); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.playerArgs == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_152(), value.playerArgs); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_cokma7_k$(encoder, value instanceof KOfficialDynamicsReply ? value : THROW_CCE()); + } + } + class KOfficialDynamicsReply { + constructor(items, offset, hasMore, playerArgs) { + Companion_getInstance_871(); + items = items === VOID ? emptyList() : items; + offset = offset === VOID ? new Long(0, 0) : offset; + hasMore = hasMore === VOID ? false : hasMore; + playerArgs = playerArgs === VOID ? null : playerArgs; + this.items = items; + this.offset = offset; + this.hasMore = hasMore; + this.playerArgs = playerArgs; + } + get_items_it823b_k$() { + return this.items; + } + get_offset_hjmqak_k$() { + return this.offset; + } + get_hasMore_csdhd2_k$() { + return this.hasMore; + } + get_playerArgs_eh86hz_k$() { + return this.playerArgs; + } + component1_7eebsc_k$() { + return this.items; + } + component2_7eebsb_k$() { + return this.offset; + } + component3_7eebsa_k$() { + return this.hasMore; + } + component4_7eebs9_k$() { + return this.playerArgs; + } + copy_kqt52c_k$(items, offset, hasMore, playerArgs) { + return new KOfficialDynamicsReply(items, offset, hasMore, playerArgs); + } + copy(items, offset, hasMore, playerArgs, $super) { + items = items === VOID ? this.items : items; + offset = offset === VOID ? this.offset : offset; + hasMore = hasMore === VOID ? this.hasMore : hasMore; + playerArgs = playerArgs === VOID ? this.playerArgs : playerArgs; + return this.copy_kqt52c_k$(items, offset, hasMore, playerArgs); + } + toString() { + return 'KOfficialDynamicsReply(items=' + this.items + ', offset=' + this.offset.toString() + ', hasMore=' + this.hasMore + ', playerArgs=' + this.playerArgs + ')'; + } + hashCode() { + var result = hashCode(this.items); + result = imul(result, 31) + this.offset.hashCode() | 0; + result = imul(result, 31) + getBooleanHashCode(this.hasMore) | 0; + result = imul(result, 31) + (this.playerArgs == null ? 0 : this.playerArgs.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KOfficialDynamicsReply)) + return false; + var tmp0_other_with_cast = other instanceof KOfficialDynamicsReply ? other : THROW_CCE(); + if (!equals(this.items, tmp0_other_with_cast.items)) + return false; + if (!this.offset.equals(tmp0_other_with_cast.offset)) + return false; + if (!(this.hasMore === tmp0_other_with_cast.hasMore)) + return false; + if (!equals(this.playerArgs, tmp0_other_with_cast.playerArgs)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KOfficialDynamicsReply_mnmasz_k$(seen1, items, offset, hasMore, playerArgs, serializationConstructorMarker) { + Companion_getInstance_871(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_858().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.items = emptyList(); + else + $this.items = items; + if (0 === (seen1 & 2)) + $this.offset = new Long(0, 0); + else + $this.offset = offset; + if (0 === (seen1 & 4)) + $this.hasMore = false; + else + $this.hasMore = hasMore; + if (0 === (seen1 & 8)) + $this.playerArgs = null; + else + $this.playerArgs = playerArgs; + return $this; + } + } + class KRcmdItem_1 { + constructor(value) { + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + } + class KRcmdArchive_1 extends KRcmdItem_1 { + constructor() { + KRcmdArchive_instance_0 = null; + super(0); + KRcmdArchive_instance_0 = this; + } + } + class KRcmdDynamic extends KRcmdItem_1 { + constructor() { + KRcmdDynamic_instance = null; + super(1); + KRcmdDynamic_instance = this; + } + } + class Companion_872 { + constructor() { + Companion_instance_872 = this; + var tmp = this; + tmp.rcmdItemValues$delegate_1 = lazy_0(KOfficialItem$Companion$rcmdItemValues$delegate$lambda); + this.targetPath = '/bilibili.app.dynamic.v2.OfficialItem'; + } + get_rcmdItemValues_ndjnsq_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.rcmdItemValues$delegate_1; + var thisRef = this; + var property = rcmdItemValues$factory_0(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_859(); + } + get rcmdItemValues() { + return this.get_rcmdItemValues_ndjnsq_k$(); + } + } + class $serializer_859 { + constructor() { + $serializer_instance_859 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KOfficialItem', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('rcmdArchive', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('rcmdDynamic', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), get_nullable($serializer_getInstance_860()), get_nullable($serializer_getInstance_861())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_transient0 = 0; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_860(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_861(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_860(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_861(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KOfficialItem.new_com_bapis_bilibili_app_dynamic_v2_KOfficialItem_kgdu7v_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_kbiiwk_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.type === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.type); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.rcmdArchive_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_860(), value.rcmdArchive_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.rcmdDynamic_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_861(), value.rcmdDynamic_1); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_kbiiwk_k$(encoder, value instanceof KOfficialItem ? value : THROW_CCE()); + } + } + class KOfficialItem { + constructor(type, rcmdArchive, rcmdDynamic) { + Companion_getInstance_872(); + type = type === VOID ? 0 : type; + rcmdArchive = rcmdArchive === VOID ? null : rcmdArchive; + rcmdDynamic = rcmdDynamic === VOID ? null : rcmdDynamic; + this.type = type; + this.rcmdArchive_1 = rcmdArchive; + this.rcmdDynamic_1 = rcmdDynamic; + var tmp = this; + tmp.rcmdItemNumber$delegate_1 = lazy_0(KOfficialItem$rcmdItemNumber$delegate$lambda(this)); + } + get_type_wovaf7_k$() { + return this.type; + } + rcmdItemValue() { + if (!(this.rcmdArchive_1 == null)) { + var tmp = this.rcmdArchive_1; + return (tmp == null ? true : !(tmp == null)) ? tmp : null; + } else if (!(this.rcmdDynamic_1 == null)) { + var tmp_0 = this.rcmdDynamic_1; + return (tmp_0 == null ? true : !(tmp_0 == null)) ? tmp_0 : null; + } else { + return null; + } + } + rcmdItemTypeJs() { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = Companion_getInstance_872().rcmdItemValues; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.KOfficialItem.rcmdItemType.' call + var it = element; + tmp$ret$0 = it.value === _get_rcmdItemNumber__ys0evt_0(this); + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + return tmp$ret$1; + } + typeEnum() { + return Companion_getInstance_953().fromValue(this.type); + } + component1_7eebsc_k$() { + return this.type; + } + copy_s6tyn4_k$(type, rcmdArchive, rcmdDynamic) { + return new KOfficialItem(type, rcmdArchive, rcmdDynamic); + } + copy(type, rcmdArchive, rcmdDynamic, $super) { + type = type === VOID ? this.type : type; + rcmdArchive = rcmdArchive === VOID ? this.rcmdArchive_1 : rcmdArchive; + rcmdDynamic = rcmdDynamic === VOID ? this.rcmdDynamic_1 : rcmdDynamic; + return this.copy_s6tyn4_k$(type, rcmdArchive, rcmdDynamic); + } + toString() { + return 'KOfficialItem(type=' + this.type + ', rcmdArchive=' + this.rcmdArchive_1 + ', rcmdDynamic=' + this.rcmdDynamic_1 + ')'; + } + hashCode() { + var result = this.type; + result = imul(result, 31) + (this.rcmdArchive_1 == null ? 0 : this.rcmdArchive_1.hashCode()) | 0; + result = imul(result, 31) + (this.rcmdDynamic_1 == null ? 0 : this.rcmdDynamic_1.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KOfficialItem)) + return false; + var tmp0_other_with_cast = other instanceof KOfficialItem ? other : THROW_CCE(); + if (!(this.type === tmp0_other_with_cast.type)) + return false; + if (!equals(this.rcmdArchive_1, tmp0_other_with_cast.rcmdArchive_1)) + return false; + if (!equals(this.rcmdDynamic_1, tmp0_other_with_cast.rcmdDynamic_1)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KOfficialItem_kgdu7v_k$(seen1, type, rcmdArchive, rcmdDynamic, serializationConstructorMarker) { + Companion_getInstance_872(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_859().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.type = 0; + else + $this.type = type; + if (0 === (seen1 & 2)) + $this.rcmdArchive_1 = null; + else + $this.rcmdArchive_1 = rcmdArchive; + if (0 === (seen1 & 4)) + $this.rcmdDynamic_1 = null; + else + $this.rcmdDynamic_1 = rcmdDynamic; + var tmp = $this; + tmp.rcmdItemNumber$delegate_1 = lazy_0(KOfficialItem$_init_$lambda_2gnh5u($this)); + return $this; + } + } + class Companion_873 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.OfficialRcmdArchive'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_860(); + } + } + class $serializer_860 { + constructor() { + $serializer_instance_860 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KOfficialRcmdArchive', this, 15); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('coverRightText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('descIcon1', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('descText1', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('descIcon2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('descText2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('reason', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('showThreePoint', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('uri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('aid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('mid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + tmp0_serialDesc.addElement_5pzumi_k$('name', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(13)); + tmp0_serialDesc.addElement_5pzumi_k$('dynamicId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(14)); + tmp0_serialDesc.addElement_5pzumi_k$('cid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(15)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), BooleanSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = 0; + var tmp8_local4 = null; + var tmp9_local5 = 0; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_local8 = false; + var tmp13_local9 = null; + var tmp14_local10 = new Long(0, 0); + var tmp15_local11 = new Long(0, 0); + var tmp16_local12 = null; + var tmp17_local13 = new Long(0, 0); + var tmp18_local14 = new Long(0, 0); + var tmp19_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp19_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp19_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp19_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp19_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp19_input.decodeLongElement_994anb_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp19_input.decodeLongElement_994anb_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + tmp16_local12 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + tmp17_local13 = tmp19_input.decodeLongElement_994anb_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + tmp18_local14 = tmp19_input.decodeLongElement_994anb_k$(tmp0_desc, 14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + } else + while (tmp1_flag) { + tmp2_index = tmp19_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp19_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp19_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp19_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp19_input.decodeLongElement_994anb_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp19_input.decodeLongElement_994anb_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + case 12: + tmp16_local12 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + break; + case 13: + tmp17_local13 = tmp19_input.decodeLongElement_994anb_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + break; + case 14: + tmp18_local14 = tmp19_input.decodeLongElement_994anb_k$(tmp0_desc, 14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp19_input.endStructure_1xqz0n_k$(tmp0_desc); + return KOfficialRcmdArchive.new_com_bapis_bilibili_app_dynamic_v2_KOfficialRcmdArchive_4901au_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, tmp18_local14, null); + } + serialize_g2gs0d_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.cover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.coverRightText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.coverRightText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.descIcon1 === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 3, value.descIcon1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.descText1 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.descText1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.descIcon2 === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 5, value.descIcon2); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.descText2 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.descText2); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.reason === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.reason); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.showThreePoint === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 8, value.showThreePoint); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.uri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 9, value.uri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !value.aid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 10, value.aid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !value.mid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 11, value.mid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !(value.name === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 12, value.name); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 13) ? true : !value.dynamicId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 13, value.dynamicId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 14) ? true : !value.cid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 14, value.cid); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_g2gs0d_k$(encoder, value instanceof KOfficialRcmdArchive ? value : THROW_CCE()); + } + } + class KOfficialRcmdArchive { + constructor(title, cover, coverRightText, descIcon1, descText1, descIcon2, descText2, reason, showThreePoint, uri, aid, mid, name, dynamicId, cid) { + Companion_instance_873; + title = title === VOID ? '' : title; + cover = cover === VOID ? '' : cover; + coverRightText = coverRightText === VOID ? '' : coverRightText; + descIcon1 = descIcon1 === VOID ? 0 : descIcon1; + descText1 = descText1 === VOID ? '' : descText1; + descIcon2 = descIcon2 === VOID ? 0 : descIcon2; + descText2 = descText2 === VOID ? '' : descText2; + reason = reason === VOID ? '' : reason; + showThreePoint = showThreePoint === VOID ? false : showThreePoint; + uri = uri === VOID ? '' : uri; + aid = aid === VOID ? new Long(0, 0) : aid; + mid = mid === VOID ? new Long(0, 0) : mid; + name = name === VOID ? '' : name; + dynamicId = dynamicId === VOID ? new Long(0, 0) : dynamicId; + cid = cid === VOID ? new Long(0, 0) : cid; + this.title = title; + this.cover = cover; + this.coverRightText = coverRightText; + this.descIcon1 = descIcon1; + this.descText1 = descText1; + this.descIcon2 = descIcon2; + this.descText2 = descText2; + this.reason = reason; + this.showThreePoint = showThreePoint; + this.uri = uri; + this.aid = aid; + this.mid = mid; + this.name = name; + this.dynamicId = dynamicId; + this.cid = cid; + } + get_title_iz32un_k$() { + return this.title; + } + get_cover_ipug0e_k$() { + return this.cover; + } + get_coverRightText_t0bat7_k$() { + return this.coverRightText; + } + get_descIcon1_wov0ny_k$() { + return this.descIcon1; + } + get_descText1_wuy7ze_k$() { + return this.descText1; + } + get_descIcon2_wov0nz_k$() { + return this.descIcon2; + } + get_descText2_wuy7zf_k$() { + return this.descText2; + } + get_reason_iy4m6l_k$() { + return this.reason; + } + get_showThreePoint_tawj2g_k$() { + return this.showThreePoint; + } + get_uri_18iuil_k$() { + return this.uri; + } + get_aid_18j9kd_k$() { + return this.aid; + } + get_mid_18j0o1_k$() { + return this.mid; + } + get_name_woqyms_k$() { + return this.name; + } + get_dynamicId_wvqga7_k$() { + return this.dynamicId; + } + get_cid_18j82z_k$() { + return this.cid; + } + descIcon1Enum() { + return Companion_getInstance_1081().fromValue(this.descIcon1); + } + descIcon2Enum() { + return Companion_getInstance_1081().fromValue(this.descIcon2); + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.cover; + } + component3_7eebsa_k$() { + return this.coverRightText; + } + component4_7eebs9_k$() { + return this.descIcon1; + } + component5_7eebs8_k$() { + return this.descText1; + } + component6_7eebs7_k$() { + return this.descIcon2; + } + component7_7eebs6_k$() { + return this.descText2; + } + component8_7eebs5_k$() { + return this.reason; + } + component9_7eebs4_k$() { + return this.showThreePoint; + } + component10_gazzfo_k$() { + return this.uri; + } + component11_gazzfn_k$() { + return this.aid; + } + component12_gazzfm_k$() { + return this.mid; + } + component13_gazzfl_k$() { + return this.name; + } + component14_gazzfk_k$() { + return this.dynamicId; + } + component15_gazzfj_k$() { + return this.cid; + } + copy_qe6oq4_k$(title, cover, coverRightText, descIcon1, descText1, descIcon2, descText2, reason, showThreePoint, uri, aid, mid, name, dynamicId, cid) { + return new KOfficialRcmdArchive(title, cover, coverRightText, descIcon1, descText1, descIcon2, descText2, reason, showThreePoint, uri, aid, mid, name, dynamicId, cid); + } + copy(title, cover, coverRightText, descIcon1, descText1, descIcon2, descText2, reason, showThreePoint, uri, aid, mid, name, dynamicId, cid, $super) { + title = title === VOID ? this.title : title; + cover = cover === VOID ? this.cover : cover; + coverRightText = coverRightText === VOID ? this.coverRightText : coverRightText; + descIcon1 = descIcon1 === VOID ? this.descIcon1 : descIcon1; + descText1 = descText1 === VOID ? this.descText1 : descText1; + descIcon2 = descIcon2 === VOID ? this.descIcon2 : descIcon2; + descText2 = descText2 === VOID ? this.descText2 : descText2; + reason = reason === VOID ? this.reason : reason; + showThreePoint = showThreePoint === VOID ? this.showThreePoint : showThreePoint; + uri = uri === VOID ? this.uri : uri; + aid = aid === VOID ? this.aid : aid; + mid = mid === VOID ? this.mid : mid; + name = name === VOID ? this.name : name; + dynamicId = dynamicId === VOID ? this.dynamicId : dynamicId; + cid = cid === VOID ? this.cid : cid; + return this.copy_qe6oq4_k$(title, cover, coverRightText, descIcon1, descText1, descIcon2, descText2, reason, showThreePoint, uri, aid, mid, name, dynamicId, cid); + } + toString() { + return 'KOfficialRcmdArchive(title=' + this.title + ', cover=' + this.cover + ', coverRightText=' + this.coverRightText + ', descIcon1=' + this.descIcon1 + ', descText1=' + this.descText1 + ', descIcon2=' + this.descIcon2 + ', descText2=' + this.descText2 + ', reason=' + this.reason + ', showThreePoint=' + this.showThreePoint + ', uri=' + this.uri + ', aid=' + this.aid.toString() + ', mid=' + this.mid.toString() + ', name=' + this.name + ', dynamicId=' + this.dynamicId.toString() + ', cid=' + this.cid.toString() + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.cover) | 0; + result = imul(result, 31) + getStringHashCode(this.coverRightText) | 0; + result = imul(result, 31) + this.descIcon1 | 0; + result = imul(result, 31) + getStringHashCode(this.descText1) | 0; + result = imul(result, 31) + this.descIcon2 | 0; + result = imul(result, 31) + getStringHashCode(this.descText2) | 0; + result = imul(result, 31) + getStringHashCode(this.reason) | 0; + result = imul(result, 31) + getBooleanHashCode(this.showThreePoint) | 0; + result = imul(result, 31) + getStringHashCode(this.uri) | 0; + result = imul(result, 31) + this.aid.hashCode() | 0; + result = imul(result, 31) + this.mid.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.name) | 0; + result = imul(result, 31) + this.dynamicId.hashCode() | 0; + result = imul(result, 31) + this.cid.hashCode() | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KOfficialRcmdArchive)) + return false; + var tmp0_other_with_cast = other instanceof KOfficialRcmdArchive ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + if (!(this.coverRightText === tmp0_other_with_cast.coverRightText)) + return false; + if (!(this.descIcon1 === tmp0_other_with_cast.descIcon1)) + return false; + if (!(this.descText1 === tmp0_other_with_cast.descText1)) + return false; + if (!(this.descIcon2 === tmp0_other_with_cast.descIcon2)) + return false; + if (!(this.descText2 === tmp0_other_with_cast.descText2)) + return false; + if (!(this.reason === tmp0_other_with_cast.reason)) + return false; + if (!(this.showThreePoint === tmp0_other_with_cast.showThreePoint)) + return false; + if (!(this.uri === tmp0_other_with_cast.uri)) + return false; + if (!this.aid.equals(tmp0_other_with_cast.aid)) + return false; + if (!this.mid.equals(tmp0_other_with_cast.mid)) + return false; + if (!(this.name === tmp0_other_with_cast.name)) + return false; + if (!this.dynamicId.equals(tmp0_other_with_cast.dynamicId)) + return false; + if (!this.cid.equals(tmp0_other_with_cast.cid)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KOfficialRcmdArchive_4901au_k$(seen1, title, cover, coverRightText, descIcon1, descText1, descIcon2, descText2, reason, showThreePoint, uri, aid, mid, name, dynamicId, cid, serializationConstructorMarker) { + Companion_instance_873; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_860().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.cover = ''; + else + $this.cover = cover; + if (0 === (seen1 & 4)) + $this.coverRightText = ''; + else + $this.coverRightText = coverRightText; + if (0 === (seen1 & 8)) + $this.descIcon1 = 0; + else + $this.descIcon1 = descIcon1; + if (0 === (seen1 & 16)) + $this.descText1 = ''; + else + $this.descText1 = descText1; + if (0 === (seen1 & 32)) + $this.descIcon2 = 0; + else + $this.descIcon2 = descIcon2; + if (0 === (seen1 & 64)) + $this.descText2 = ''; + else + $this.descText2 = descText2; + if (0 === (seen1 & 128)) + $this.reason = ''; + else + $this.reason = reason; + if (0 === (seen1 & 256)) + $this.showThreePoint = false; + else + $this.showThreePoint = showThreePoint; + if (0 === (seen1 & 512)) + $this.uri = ''; + else + $this.uri = uri; + if (0 === (seen1 & 1024)) + $this.aid = new Long(0, 0); + else + $this.aid = aid; + if (0 === (seen1 & 2048)) + $this.mid = new Long(0, 0); + else + $this.mid = mid; + if (0 === (seen1 & 4096)) + $this.name = ''; + else + $this.name = name; + if (0 === (seen1 & 8192)) + $this.dynamicId = new Long(0, 0); + else + $this.dynamicId = dynamicId; + if (0 === (seen1 & 16384)) + $this.cid = new Long(0, 0); + else + $this.cid = cid; + return $this; + } + } + class Companion_874 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.OfficialRcmdDynamic'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_861(); + } + } + class $serializer_861 { + constructor() { + $serializer_instance_861 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KOfficialRcmdDynamic', this, 13); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('coverRightTopText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('descIcon1', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('descText1', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('descIcon2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('descText2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('reason', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('uri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('dynamicId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('mid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('userName', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + tmp0_serialDesc.addElement_5pzumi_k$('rid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(13)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = 0; + var tmp8_local4 = null; + var tmp9_local5 = 0; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_local8 = null; + var tmp13_local9 = new Long(0, 0); + var tmp14_local10 = new Long(0, 0); + var tmp15_local11 = null; + var tmp16_local12 = new Long(0, 0); + var tmp17_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp17_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp17_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp17_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp17_input.decodeLongElement_994anb_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp17_input.decodeLongElement_994anb_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + tmp16_local12 = tmp17_input.decodeLongElement_994anb_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + } else + while (tmp1_flag) { + tmp2_index = tmp17_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp17_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp17_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp17_input.decodeLongElement_994anb_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp17_input.decodeLongElement_994anb_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + case 12: + tmp16_local12 = tmp17_input.decodeLongElement_994anb_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp17_input.endStructure_1xqz0n_k$(tmp0_desc); + return KOfficialRcmdDynamic.new_com_bapis_bilibili_app_dynamic_v2_KOfficialRcmdDynamic_rzuqp0_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, null); + } + serialize_lo4lhs_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.cover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.coverRightTopText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.coverRightTopText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.descIcon1 === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 3, value.descIcon1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.descText1 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.descText1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.descIcon2 === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 5, value.descIcon2); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.descText2 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.descText2); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.reason === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.reason); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.uri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 8, value.uri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !value.dynamicId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 9, value.dynamicId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !value.mid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 10, value.mid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.userName === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 11, value.userName); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !value.rid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 12, value.rid); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_lo4lhs_k$(encoder, value instanceof KOfficialRcmdDynamic ? value : THROW_CCE()); + } + } + class KOfficialRcmdDynamic { + constructor(title, cover, coverRightTopText, descIcon1, descText1, descIcon2, descText2, reason, uri, dynamicId, mid, userName, rid) { + Companion_instance_874; + title = title === VOID ? '' : title; + cover = cover === VOID ? '' : cover; + coverRightTopText = coverRightTopText === VOID ? '' : coverRightTopText; + descIcon1 = descIcon1 === VOID ? 0 : descIcon1; + descText1 = descText1 === VOID ? '' : descText1; + descIcon2 = descIcon2 === VOID ? 0 : descIcon2; + descText2 = descText2 === VOID ? '' : descText2; + reason = reason === VOID ? '' : reason; + uri = uri === VOID ? '' : uri; + dynamicId = dynamicId === VOID ? new Long(0, 0) : dynamicId; + mid = mid === VOID ? new Long(0, 0) : mid; + userName = userName === VOID ? '' : userName; + rid = rid === VOID ? new Long(0, 0) : rid; + this.title = title; + this.cover = cover; + this.coverRightTopText = coverRightTopText; + this.descIcon1 = descIcon1; + this.descText1 = descText1; + this.descIcon2 = descIcon2; + this.descText2 = descText2; + this.reason = reason; + this.uri = uri; + this.dynamicId = dynamicId; + this.mid = mid; + this.userName = userName; + this.rid = rid; + } + get_title_iz32un_k$() { + return this.title; + } + get_cover_ipug0e_k$() { + return this.cover; + } + get_coverRightTopText_tokmwc_k$() { + return this.coverRightTopText; + } + get_descIcon1_wov0ny_k$() { + return this.descIcon1; + } + get_descText1_wuy7ze_k$() { + return this.descText1; + } + get_descIcon2_wov0nz_k$() { + return this.descIcon2; + } + get_descText2_wuy7zf_k$() { + return this.descText2; + } + get_reason_iy4m6l_k$() { + return this.reason; + } + get_uri_18iuil_k$() { + return this.uri; + } + get_dynamicId_wvqga7_k$() { + return this.dynamicId; + } + get_mid_18j0o1_k$() { + return this.mid; + } + get_userName_ytepxb_k$() { + return this.userName; + } + get_rid_18iwyk_k$() { + return this.rid; + } + descIcon1Enum() { + return Companion_getInstance_1081().fromValue(this.descIcon1); + } + descIcon2Enum() { + return Companion_getInstance_1081().fromValue(this.descIcon2); + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.cover; + } + component3_7eebsa_k$() { + return this.coverRightTopText; + } + component4_7eebs9_k$() { + return this.descIcon1; + } + component5_7eebs8_k$() { + return this.descText1; + } + component6_7eebs7_k$() { + return this.descIcon2; + } + component7_7eebs6_k$() { + return this.descText2; + } + component8_7eebs5_k$() { + return this.reason; + } + component9_7eebs4_k$() { + return this.uri; + } + component10_gazzfo_k$() { + return this.dynamicId; + } + component11_gazzfn_k$() { + return this.mid; + } + component12_gazzfm_k$() { + return this.userName; + } + component13_gazzfl_k$() { + return this.rid; + } + copy_8sb9n1_k$(title, cover, coverRightTopText, descIcon1, descText1, descIcon2, descText2, reason, uri, dynamicId, mid, userName, rid) { + return new KOfficialRcmdDynamic(title, cover, coverRightTopText, descIcon1, descText1, descIcon2, descText2, reason, uri, dynamicId, mid, userName, rid); + } + copy(title, cover, coverRightTopText, descIcon1, descText1, descIcon2, descText2, reason, uri, dynamicId, mid, userName, rid, $super) { + title = title === VOID ? this.title : title; + cover = cover === VOID ? this.cover : cover; + coverRightTopText = coverRightTopText === VOID ? this.coverRightTopText : coverRightTopText; + descIcon1 = descIcon1 === VOID ? this.descIcon1 : descIcon1; + descText1 = descText1 === VOID ? this.descText1 : descText1; + descIcon2 = descIcon2 === VOID ? this.descIcon2 : descIcon2; + descText2 = descText2 === VOID ? this.descText2 : descText2; + reason = reason === VOID ? this.reason : reason; + uri = uri === VOID ? this.uri : uri; + dynamicId = dynamicId === VOID ? this.dynamicId : dynamicId; + mid = mid === VOID ? this.mid : mid; + userName = userName === VOID ? this.userName : userName; + rid = rid === VOID ? this.rid : rid; + return this.copy_8sb9n1_k$(title, cover, coverRightTopText, descIcon1, descText1, descIcon2, descText2, reason, uri, dynamicId, mid, userName, rid); + } + toString() { + return 'KOfficialRcmdDynamic(title=' + this.title + ', cover=' + this.cover + ', coverRightTopText=' + this.coverRightTopText + ', descIcon1=' + this.descIcon1 + ', descText1=' + this.descText1 + ', descIcon2=' + this.descIcon2 + ', descText2=' + this.descText2 + ', reason=' + this.reason + ', uri=' + this.uri + ', dynamicId=' + this.dynamicId.toString() + ', mid=' + this.mid.toString() + ', userName=' + this.userName + ', rid=' + this.rid.toString() + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.cover) | 0; + result = imul(result, 31) + getStringHashCode(this.coverRightTopText) | 0; + result = imul(result, 31) + this.descIcon1 | 0; + result = imul(result, 31) + getStringHashCode(this.descText1) | 0; + result = imul(result, 31) + this.descIcon2 | 0; + result = imul(result, 31) + getStringHashCode(this.descText2) | 0; + result = imul(result, 31) + getStringHashCode(this.reason) | 0; + result = imul(result, 31) + getStringHashCode(this.uri) | 0; + result = imul(result, 31) + this.dynamicId.hashCode() | 0; + result = imul(result, 31) + this.mid.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.userName) | 0; + result = imul(result, 31) + this.rid.hashCode() | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KOfficialRcmdDynamic)) + return false; + var tmp0_other_with_cast = other instanceof KOfficialRcmdDynamic ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + if (!(this.coverRightTopText === tmp0_other_with_cast.coverRightTopText)) + return false; + if (!(this.descIcon1 === tmp0_other_with_cast.descIcon1)) + return false; + if (!(this.descText1 === tmp0_other_with_cast.descText1)) + return false; + if (!(this.descIcon2 === tmp0_other_with_cast.descIcon2)) + return false; + if (!(this.descText2 === tmp0_other_with_cast.descText2)) + return false; + if (!(this.reason === tmp0_other_with_cast.reason)) + return false; + if (!(this.uri === tmp0_other_with_cast.uri)) + return false; + if (!this.dynamicId.equals(tmp0_other_with_cast.dynamicId)) + return false; + if (!this.mid.equals(tmp0_other_with_cast.mid)) + return false; + if (!(this.userName === tmp0_other_with_cast.userName)) + return false; + if (!this.rid.equals(tmp0_other_with_cast.rid)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KOfficialRcmdDynamic_rzuqp0_k$(seen1, title, cover, coverRightTopText, descIcon1, descText1, descIcon2, descText2, reason, uri, dynamicId, mid, userName, rid, serializationConstructorMarker) { + Companion_instance_874; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_861().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.cover = ''; + else + $this.cover = cover; + if (0 === (seen1 & 4)) + $this.coverRightTopText = ''; + else + $this.coverRightTopText = coverRightTopText; + if (0 === (seen1 & 8)) + $this.descIcon1 = 0; + else + $this.descIcon1 = descIcon1; + if (0 === (seen1 & 16)) + $this.descText1 = ''; + else + $this.descText1 = descText1; + if (0 === (seen1 & 32)) + $this.descIcon2 = 0; + else + $this.descIcon2 = descIcon2; + if (0 === (seen1 & 64)) + $this.descText2 = ''; + else + $this.descText2 = descText2; + if (0 === (seen1 & 128)) + $this.reason = ''; + else + $this.reason = reason; + if (0 === (seen1 & 256)) + $this.uri = ''; + else + $this.uri = uri; + if (0 === (seen1 & 512)) + $this.dynamicId = new Long(0, 0); + else + $this.dynamicId = dynamicId; + if (0 === (seen1 & 1024)) + $this.mid = new Long(0, 0); + else + $this.mid = mid; + if (0 === (seen1 & 2048)) + $this.userName = ''; + else + $this.userName = userName; + if (0 === (seen1 & 4096)) + $this.rid = new Long(0, 0); + else + $this.rid = rid; + return $this; + } + } + class Companion_875 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.CampusRedDotReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_862(); + } + } + class $serializer_862 { + constructor() { + $serializer_instance_862 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KCampusRedDotReq', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('campusId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('fromType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = 0; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KCampusRedDotReq.new_com_bapis_bilibili_app_dynamic_v2_KCampusRedDotReq_tklw6p_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_7snch7_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.campusId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.campusId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.fromType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.fromType); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_7snch7_k$(encoder, value instanceof KCampusRedDotReq ? value : THROW_CCE()); + } + } + class KCampusRedDotReq { + constructor(campusId, fromType) { + Companion_instance_875; + campusId = campusId === VOID ? new Long(0, 0) : campusId; + fromType = fromType === VOID ? 0 : fromType; + this.campusId = campusId; + this.fromType = fromType; + } + get_campusId_y3vqhp_k$() { + return this.campusId; + } + get_fromType_in58el_k$() { + return this.fromType; + } + fromTypeEnum() { + return Companion_getInstance_746().fromValue(this.fromType); + } + component1_7eebsc_k$() { + return this.campusId; + } + component2_7eebsb_k$() { + return this.fromType; + } + copy_hlxmm3_k$(campusId, fromType) { + return new KCampusRedDotReq(campusId, fromType); + } + copy(campusId, fromType, $super) { + campusId = campusId === VOID ? this.campusId : campusId; + fromType = fromType === VOID ? this.fromType : fromType; + return this.copy_hlxmm3_k$(campusId, fromType); + } + toString() { + return 'KCampusRedDotReq(campusId=' + this.campusId.toString() + ', fromType=' + this.fromType + ')'; + } + hashCode() { + var result = this.campusId.hashCode(); + result = imul(result, 31) + this.fromType | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KCampusRedDotReq)) + return false; + var tmp0_other_with_cast = other instanceof KCampusRedDotReq ? other : THROW_CCE(); + if (!this.campusId.equals(tmp0_other_with_cast.campusId)) + return false; + if (!(this.fromType === tmp0_other_with_cast.fromType)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KCampusRedDotReq_tklw6p_k$(seen1, campusId, fromType, serializationConstructorMarker) { + Companion_instance_875; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_862().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.campusId = new Long(0, 0); + else + $this.campusId = campusId; + if (0 === (seen1 & 2)) + $this.fromType = 0; + else + $this.fromType = fromType; + return $this; + } + } + class Companion_876 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.CampusRedDotReply'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_863(); + } + } + class $serializer_863 { + constructor() { + $serializer_instance_863 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KCampusRedDotReply', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('redDot', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KCampusRedDotReply.new_com_bapis_bilibili_app_dynamic_v2_KCampusRedDotReply_bsb3ut_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_871z61_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.redDot === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.redDot); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_871z61_k$(encoder, value instanceof KCampusRedDotReply ? value : THROW_CCE()); + } + } + class KCampusRedDotReply { + constructor(redDot) { + Companion_instance_876; + redDot = redDot === VOID ? 0 : redDot; + this.redDot = redDot; + } + get_redDot_iy5kap_k$() { + return this.redDot; + } + component1_7eebsc_k$() { + return this.redDot; + } + copy_ns6qmb_k$(redDot) { + return new KCampusRedDotReply(redDot); + } + copy(redDot, $super) { + redDot = redDot === VOID ? this.redDot : redDot; + return this.copy_ns6qmb_k$(redDot); + } + toString() { + return 'KCampusRedDotReply(redDot=' + this.redDot + ')'; + } + hashCode() { + return this.redDot; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KCampusRedDotReply)) + return false; + var tmp0_other_with_cast = other instanceof KCampusRedDotReply ? other : THROW_CCE(); + if (!(this.redDot === tmp0_other_with_cast.redDot)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KCampusRedDotReply_bsb3ut_k$(seen1, redDot, serializationConstructorMarker) { + Companion_instance_876; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_863().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.redDot = 0; + else + $this.redDot = redDot; + return $this; + } + } + class Companion_877 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.CampusRcmdFeedReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_864(); + } + } + class $serializer_864 { + constructor() { + $serializer_instance_864 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KCampusRcmdFeedReq', this, 8); + tmp0_serialDesc.addElement_5pzumi_k$('campusId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('firstTime', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('playerArgs', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('localTime', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('page', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('scroll', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('viewDynId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('fromType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), IntSerializer_getInstance(), get_nullable($serializer_getInstance_152()), IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = 0; + var tmp6_local2 = null; + var tmp7_local3 = 0; + var tmp8_local4 = 0; + var tmp9_local5 = 0; + var tmp10_local6 = null; + var tmp11_local7 = 0; + var tmp12_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp12_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_152(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + } else + while (tmp1_flag) { + tmp2_index = tmp12_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_152(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp12_input.endStructure_1xqz0n_k$(tmp0_desc); + return KCampusRcmdFeedReq.new_com_bapis_bilibili_app_dynamic_v2_KCampusRcmdFeedReq_lkct41_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null); + } + serialize_2d9fqb_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.campusId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.campusId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.firstTime === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.firstTime); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.playerArgs == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_152(), value.playerArgs); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.localTime === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 3, value.localTime); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.page === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 4, value.page); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.scroll === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 5, value.scroll); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.viewDynId === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.viewDynId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.fromType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 7, value.fromType); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_2d9fqb_k$(encoder, value instanceof KCampusRcmdFeedReq ? value : THROW_CCE()); + } + } + class KCampusRcmdFeedReq { + constructor(campusId, firstTime, playerArgs, localTime, page, scroll, viewDynId, fromType) { + Companion_instance_877; + campusId = campusId === VOID ? new Long(0, 0) : campusId; + firstTime = firstTime === VOID ? 0 : firstTime; + playerArgs = playerArgs === VOID ? null : playerArgs; + localTime = localTime === VOID ? 0 : localTime; + page = page === VOID ? 0 : page; + scroll = scroll === VOID ? 0 : scroll; + viewDynId = viewDynId === VOID ? '' : viewDynId; + fromType = fromType === VOID ? 0 : fromType; + this.campusId = campusId; + this.firstTime = firstTime; + this.playerArgs = playerArgs; + this.localTime = localTime; + this.page = page; + this.scroll = scroll; + this.viewDynId = viewDynId; + this.fromType = fromType; + } + get_campusId_y3vqhp_k$() { + return this.campusId; + } + get_firstTime_appxpw_k$() { + return this.firstTime; + } + get_playerArgs_eh86hz_k$() { + return this.playerArgs; + } + get_localTime_bf0zwx_k$() { + return this.localTime; + } + get_page_wos8go_k$() { + return this.page; + } + get_scroll_jedf4m_k$() { + return this.scroll; + } + get_viewDynId_hwrjkq_k$() { + return this.viewDynId; + } + get_fromType_in58el_k$() { + return this.fromType; + } + fromTypeEnum() { + return Companion_getInstance_746().fromValue(this.fromType); + } + component1_7eebsc_k$() { + return this.campusId; + } + component2_7eebsb_k$() { + return this.firstTime; + } + component3_7eebsa_k$() { + return this.playerArgs; + } + component4_7eebs9_k$() { + return this.localTime; + } + component5_7eebs8_k$() { + return this.page; + } + component6_7eebs7_k$() { + return this.scroll; + } + component7_7eebs6_k$() { + return this.viewDynId; + } + component8_7eebs5_k$() { + return this.fromType; + } + copy_mq84va_k$(campusId, firstTime, playerArgs, localTime, page, scroll, viewDynId, fromType) { + return new KCampusRcmdFeedReq(campusId, firstTime, playerArgs, localTime, page, scroll, viewDynId, fromType); + } + copy(campusId, firstTime, playerArgs, localTime, page, scroll, viewDynId, fromType, $super) { + campusId = campusId === VOID ? this.campusId : campusId; + firstTime = firstTime === VOID ? this.firstTime : firstTime; + playerArgs = playerArgs === VOID ? this.playerArgs : playerArgs; + localTime = localTime === VOID ? this.localTime : localTime; + page = page === VOID ? this.page : page; + scroll = scroll === VOID ? this.scroll : scroll; + viewDynId = viewDynId === VOID ? this.viewDynId : viewDynId; + fromType = fromType === VOID ? this.fromType : fromType; + return this.copy_mq84va_k$(campusId, firstTime, playerArgs, localTime, page, scroll, viewDynId, fromType); + } + toString() { + return 'KCampusRcmdFeedReq(campusId=' + this.campusId.toString() + ', firstTime=' + this.firstTime + ', playerArgs=' + this.playerArgs + ', localTime=' + this.localTime + ', page=' + this.page + ', scroll=' + this.scroll + ', viewDynId=' + this.viewDynId + ', fromType=' + this.fromType + ')'; + } + hashCode() { + var result = this.campusId.hashCode(); + result = imul(result, 31) + this.firstTime | 0; + result = imul(result, 31) + (this.playerArgs == null ? 0 : this.playerArgs.hashCode()) | 0; + result = imul(result, 31) + this.localTime | 0; + result = imul(result, 31) + this.page | 0; + result = imul(result, 31) + this.scroll | 0; + result = imul(result, 31) + getStringHashCode(this.viewDynId) | 0; + result = imul(result, 31) + this.fromType | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KCampusRcmdFeedReq)) + return false; + var tmp0_other_with_cast = other instanceof KCampusRcmdFeedReq ? other : THROW_CCE(); + if (!this.campusId.equals(tmp0_other_with_cast.campusId)) + return false; + if (!(this.firstTime === tmp0_other_with_cast.firstTime)) + return false; + if (!equals(this.playerArgs, tmp0_other_with_cast.playerArgs)) + return false; + if (!(this.localTime === tmp0_other_with_cast.localTime)) + return false; + if (!(this.page === tmp0_other_with_cast.page)) + return false; + if (!(this.scroll === tmp0_other_with_cast.scroll)) + return false; + if (!(this.viewDynId === tmp0_other_with_cast.viewDynId)) + return false; + if (!(this.fromType === tmp0_other_with_cast.fromType)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KCampusRcmdFeedReq_lkct41_k$(seen1, campusId, firstTime, playerArgs, localTime, page, scroll, viewDynId, fromType, serializationConstructorMarker) { + Companion_instance_877; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_864().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.campusId = new Long(0, 0); + else + $this.campusId = campusId; + if (0 === (seen1 & 2)) + $this.firstTime = 0; + else + $this.firstTime = firstTime; + if (0 === (seen1 & 4)) + $this.playerArgs = null; + else + $this.playerArgs = playerArgs; + if (0 === (seen1 & 8)) + $this.localTime = 0; + else + $this.localTime = localTime; + if (0 === (seen1 & 16)) + $this.page = 0; + else + $this.page = page; + if (0 === (seen1 & 32)) + $this.scroll = 0; + else + $this.scroll = scroll; + if (0 === (seen1 & 64)) + $this.viewDynId = ''; + else + $this.viewDynId = viewDynId; + if (0 === (seen1 & 128)) + $this.fromType = 0; + else + $this.fromType = fromType; + return $this; + } + } + class Companion_878 { + constructor() { + Companion_instance_878 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer($serializer_getInstance_942()), null, null, null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.CampusRcmdFeedReply'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_865(); + } + } + class $serializer_865 { + constructor() { + $serializer_instance_865 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KCampusRcmdFeedReply', this, 5); + tmp0_serialDesc.addElement_5pzumi_k$('list', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('toast', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('guideBar', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('hasMore', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('update', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_878().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0], StringSerializer_getInstance(), get_nullable($serializer_getInstance_866()), BooleanSerializer_getInstance(), BooleanSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = false; + var tmp8_local4 = false; + var tmp9_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp10_cached = Companion_getInstance_878().$childSerializers_1; + if (tmp9_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp9_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp10_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_866(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp9_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp9_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + } else + while (tmp1_flag) { + tmp2_index = tmp9_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp9_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp10_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_866(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp9_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp9_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp9_input.endStructure_1xqz0n_k$(tmp0_desc); + return KCampusRcmdFeedReply.new_com_bapis_bilibili_app_dynamic_v2_KCampusRcmdFeedReply_yzip35_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); + } + serialize_qacl7t_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_878().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.list, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.list); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.toast === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.toast); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.guideBar == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_866(), value.guideBar); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.hasMore === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 3, value.hasMore); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.update === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 4, value.update); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_qacl7t_k$(encoder, value instanceof KCampusRcmdFeedReply ? value : THROW_CCE()); + } + } + class KCampusRcmdFeedReply { + constructor(list, toast, guideBar, hasMore, update) { + Companion_getInstance_878(); + list = list === VOID ? emptyList() : list; + toast = toast === VOID ? '' : toast; + guideBar = guideBar === VOID ? null : guideBar; + hasMore = hasMore === VOID ? false : hasMore; + update = update === VOID ? false : update; + this.list = list; + this.toast = toast; + this.guideBar = guideBar; + this.hasMore = hasMore; + this.update = update; + } + get_list_wopuqv_k$() { + return this.list; + } + get_toast_iz6iv2_k$() { + return this.toast; + } + get_guideBar_hhwc3k_k$() { + return this.guideBar; + } + get_hasMore_csdhd2_k$() { + return this.hasMore; + } + get_update_kjcrma_k$() { + return this.update; + } + component1_7eebsc_k$() { + return this.list; + } + component2_7eebsb_k$() { + return this.toast; + } + component3_7eebsa_k$() { + return this.guideBar; + } + component4_7eebs9_k$() { + return this.hasMore; + } + component5_7eebs8_k$() { + return this.update; + } + copy_ettll9_k$(list, toast, guideBar, hasMore, update) { + return new KCampusRcmdFeedReply(list, toast, guideBar, hasMore, update); + } + copy(list, toast, guideBar, hasMore, update, $super) { + list = list === VOID ? this.list : list; + toast = toast === VOID ? this.toast : toast; + guideBar = guideBar === VOID ? this.guideBar : guideBar; + hasMore = hasMore === VOID ? this.hasMore : hasMore; + update = update === VOID ? this.update : update; + return this.copy_ettll9_k$(list, toast, guideBar, hasMore, update); + } + toString() { + return 'KCampusRcmdFeedReply(list=' + this.list + ', toast=' + this.toast + ', guideBar=' + this.guideBar + ', hasMore=' + this.hasMore + ', update=' + this.update + ')'; + } + hashCode() { + var result = hashCode(this.list); + result = imul(result, 31) + getStringHashCode(this.toast) | 0; + result = imul(result, 31) + (this.guideBar == null ? 0 : this.guideBar.hashCode()) | 0; + result = imul(result, 31) + getBooleanHashCode(this.hasMore) | 0; + result = imul(result, 31) + getBooleanHashCode(this.update) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KCampusRcmdFeedReply)) + return false; + var tmp0_other_with_cast = other instanceof KCampusRcmdFeedReply ? other : THROW_CCE(); + if (!equals(this.list, tmp0_other_with_cast.list)) + return false; + if (!(this.toast === tmp0_other_with_cast.toast)) + return false; + if (!equals(this.guideBar, tmp0_other_with_cast.guideBar)) + return false; + if (!(this.hasMore === tmp0_other_with_cast.hasMore)) + return false; + if (!(this.update === tmp0_other_with_cast.update)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KCampusRcmdFeedReply_yzip35_k$(seen1, list, toast, guideBar, hasMore, update, serializationConstructorMarker) { + Companion_getInstance_878(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_865().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.list = emptyList(); + else + $this.list = list; + if (0 === (seen1 & 2)) + $this.toast = ''; + else + $this.toast = toast; + if (0 === (seen1 & 4)) + $this.guideBar = null; + else + $this.guideBar = guideBar; + if (0 === (seen1 & 8)) + $this.hasMore = false; + else + $this.hasMore = hasMore; + if (0 === (seen1 & 16)) + $this.update = false; + else + $this.update = update; + return $this; + } + } + class Companion_879 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.GuideBarInfo'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_866(); + } + } + class $serializer_866 { + constructor() { + $serializer_instance_866 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KGuideBarInfo', this, 6); + tmp0_serialDesc.addElement_5pzumi_k$('show', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('page', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('position', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('desc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('jumpPage', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('jumpPosition', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = 0; + var tmp6_local2 = 0; + var tmp7_local3 = null; + var tmp8_local4 = 0; + var tmp9_local5 = 0; + var tmp10_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp10_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + } else + while (tmp1_flag) { + tmp2_index = tmp10_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp10_input.endStructure_1xqz0n_k$(tmp0_desc); + return KGuideBarInfo.new_com_bapis_bilibili_app_dynamic_v2_KGuideBarInfo_ebivb2_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); + } + serialize_dtixmj_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.show === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.show); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.page === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.page); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.position === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.position); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.desc === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.desc); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.jumpPage === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 4, value.jumpPage); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.jumpPosition === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 5, value.jumpPosition); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_dtixmj_k$(encoder, value instanceof KGuideBarInfo ? value : THROW_CCE()); + } + } + class KGuideBarInfo { + constructor(show, page, position, desc, jumpPage, jumpPosition) { + Companion_instance_879; + show = show === VOID ? 0 : show; + page = page === VOID ? 0 : page; + position = position === VOID ? 0 : position; + desc = desc === VOID ? '' : desc; + jumpPage = jumpPage === VOID ? 0 : jumpPage; + jumpPosition = jumpPosition === VOID ? 0 : jumpPosition; + this.show = show; + this.page = page; + this.position = position; + this.desc = desc; + this.jumpPage = jumpPage; + this.jumpPosition = jumpPosition; + } + get_show_wouati_k$() { + return this.show; + } + get_page_wos8go_k$() { + return this.page; + } + get_position_jfponi_k$() { + return this.position; + } + get_desc_woknve_k$() { + return this.desc; + } + get_jumpPage_z02yee_k$() { + return this.jumpPage; + } + get_jumpPosition_q3txhc_k$() { + return this.jumpPosition; + } + component1_7eebsc_k$() { + return this.show; + } + component2_7eebsb_k$() { + return this.page; + } + component3_7eebsa_k$() { + return this.position; + } + component4_7eebs9_k$() { + return this.desc; + } + component5_7eebs8_k$() { + return this.jumpPage; + } + component6_7eebs7_k$() { + return this.jumpPosition; + } + copy_9qkbpz_k$(show, page, position, desc, jumpPage, jumpPosition) { + return new KGuideBarInfo(show, page, position, desc, jumpPage, jumpPosition); + } + copy(show, page, position, desc, jumpPage, jumpPosition, $super) { + show = show === VOID ? this.show : show; + page = page === VOID ? this.page : page; + position = position === VOID ? this.position : position; + desc = desc === VOID ? this.desc : desc; + jumpPage = jumpPage === VOID ? this.jumpPage : jumpPage; + jumpPosition = jumpPosition === VOID ? this.jumpPosition : jumpPosition; + return this.copy_9qkbpz_k$(show, page, position, desc, jumpPage, jumpPosition); + } + toString() { + return 'KGuideBarInfo(show=' + this.show + ', page=' + this.page + ', position=' + this.position + ', desc=' + this.desc + ', jumpPage=' + this.jumpPage + ', jumpPosition=' + this.jumpPosition + ')'; + } + hashCode() { + var result = this.show; + result = imul(result, 31) + this.page | 0; + result = imul(result, 31) + this.position | 0; + result = imul(result, 31) + getStringHashCode(this.desc) | 0; + result = imul(result, 31) + this.jumpPage | 0; + result = imul(result, 31) + this.jumpPosition | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KGuideBarInfo)) + return false; + var tmp0_other_with_cast = other instanceof KGuideBarInfo ? other : THROW_CCE(); + if (!(this.show === tmp0_other_with_cast.show)) + return false; + if (!(this.page === tmp0_other_with_cast.page)) + return false; + if (!(this.position === tmp0_other_with_cast.position)) + return false; + if (!(this.desc === tmp0_other_with_cast.desc)) + return false; + if (!(this.jumpPage === tmp0_other_with_cast.jumpPage)) + return false; + if (!(this.jumpPosition === tmp0_other_with_cast.jumpPosition)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KGuideBarInfo_ebivb2_k$(seen1, show, page, position, desc, jumpPage, jumpPosition, serializationConstructorMarker) { + Companion_instance_879; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_866().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.show = 0; + else + $this.show = show; + if (0 === (seen1 & 2)) + $this.page = 0; + else + $this.page = page; + if (0 === (seen1 & 4)) + $this.position = 0; + else + $this.position = position; + if (0 === (seen1 & 8)) + $this.desc = ''; + else + $this.desc = desc; + if (0 === (seen1 & 16)) + $this.jumpPage = 0; + else + $this.jumpPage = jumpPage; + if (0 === (seen1 & 32)) + $this.jumpPosition = 0; + else + $this.jumpPosition = jumpPosition; + return $this; + } + } + class Companion_880 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.TopicSquareReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_867(); + } + } + class $serializer_867 { + constructor() { + $serializer_instance_867 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KTopicSquareReq', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('campusId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('fromType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = 0; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KTopicSquareReq.new_com_bapis_bilibili_app_dynamic_v2_KTopicSquareReq_db9ei4_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_4vich4_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.campusId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.campusId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.fromType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.fromType); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_4vich4_k$(encoder, value instanceof KTopicSquareReq ? value : THROW_CCE()); + } + } + class KTopicSquareReq { + constructor(campusId, fromType) { + Companion_instance_880; + campusId = campusId === VOID ? new Long(0, 0) : campusId; + fromType = fromType === VOID ? 0 : fromType; + this.campusId = campusId; + this.fromType = fromType; + } + get_campusId_y3vqhp_k$() { + return this.campusId; + } + get_fromType_in58el_k$() { + return this.fromType; + } + fromTypeEnum() { + return Companion_getInstance_746().fromValue(this.fromType); + } + component1_7eebsc_k$() { + return this.campusId; + } + component2_7eebsb_k$() { + return this.fromType; + } + copy_hlxmm3_k$(campusId, fromType) { + return new KTopicSquareReq(campusId, fromType); + } + copy(campusId, fromType, $super) { + campusId = campusId === VOID ? this.campusId : campusId; + fromType = fromType === VOID ? this.fromType : fromType; + return this.copy_hlxmm3_k$(campusId, fromType); + } + toString() { + return 'KTopicSquareReq(campusId=' + this.campusId.toString() + ', fromType=' + this.fromType + ')'; + } + hashCode() { + var result = this.campusId.hashCode(); + result = imul(result, 31) + this.fromType | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KTopicSquareReq)) + return false; + var tmp0_other_with_cast = other instanceof KTopicSquareReq ? other : THROW_CCE(); + if (!this.campusId.equals(tmp0_other_with_cast.campusId)) + return false; + if (!(this.fromType === tmp0_other_with_cast.fromType)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KTopicSquareReq_db9ei4_k$(seen1, campusId, fromType, serializationConstructorMarker) { + Companion_instance_880; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_867().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.campusId = new Long(0, 0); + else + $this.campusId = campusId; + if (0 === (seen1 & 2)) + $this.fromType = 0; + else + $this.fromType = fromType; + return $this; + } + } + class Companion_881 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.TopicSquareReply'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_868(); + } + } + class $serializer_868 { + constructor() { + $serializer_instance_868 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KTopicSquareReply', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('info', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_869())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_869(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_869(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KTopicSquareReply.new_com_bapis_bilibili_app_dynamic_v2_KTopicSquareReply_mz6ha0_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_qez5mc_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.info == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_869(), value.info); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_qez5mc_k$(encoder, value instanceof KTopicSquareReply ? value : THROW_CCE()); + } + } + class KTopicSquareReply { + constructor(info) { + Companion_instance_881; + info = info === VOID ? null : info; + this.info = info; + } + get_info_woo16f_k$() { + return this.info; + } + component1_7eebsc_k$() { + return this.info; + } + copy_qemeqb_k$(info) { + return new KTopicSquareReply(info); + } + copy(info, $super) { + info = info === VOID ? this.info : info; + return this.copy_qemeqb_k$(info); + } + toString() { + return 'KTopicSquareReply(info=' + this.info + ')'; + } + hashCode() { + return this.info == null ? 0 : this.info.hashCode(); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KTopicSquareReply)) + return false; + var tmp0_other_with_cast = other instanceof KTopicSquareReply ? other : THROW_CCE(); + if (!equals(this.info, tmp0_other_with_cast.info)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KTopicSquareReply_mz6ha0_k$(seen1, info, serializationConstructorMarker) { + Companion_instance_881; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_868().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.info = null; + else + $this.info = info; + return $this; + } + } + class Companion_882 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.TopicSquareInfo'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_869(); + } + } + class $serializer_869 { + constructor() { + $serializer_instance_869 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KTopicSquareInfo', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('button', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('rcmd', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), get_nullable($serializer_getInstance_837()), get_nullable($serializer_getInstance_870())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_837(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_870(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_837(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_870(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KTopicSquareInfo.new_com_bapis_bilibili_app_dynamic_v2_KTopicSquareInfo_y4cfmf_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_fkbqn6_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.button == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_837(), value.button); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.rcmd == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_870(), value.rcmd); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_fkbqn6_k$(encoder, value instanceof KTopicSquareInfo ? value : THROW_CCE()); + } + } + class KTopicSquareInfo { + constructor(title, button, rcmd) { + Companion_instance_882; + title = title === VOID ? '' : title; + button = button === VOID ? null : button; + rcmd = rcmd === VOID ? null : rcmd; + this.title = title; + this.button = button; + this.rcmd = rcmd; + } + get_title_iz32un_k$() { + return this.title; + } + get_button_bmjiuz_k$() { + return this.button; + } + get_rcmd_wotk29_k$() { + return this.rcmd; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.button; + } + component3_7eebsa_k$() { + return this.rcmd; + } + copy_8xntc9_k$(title, button, rcmd) { + return new KTopicSquareInfo(title, button, rcmd); + } + copy(title, button, rcmd, $super) { + title = title === VOID ? this.title : title; + button = button === VOID ? this.button : button; + rcmd = rcmd === VOID ? this.rcmd : rcmd; + return this.copy_8xntc9_k$(title, button, rcmd); + } + toString() { + return 'KTopicSquareInfo(title=' + this.title + ', button=' + this.button + ', rcmd=' + this.rcmd + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + (this.button == null ? 0 : this.button.hashCode()) | 0; + result = imul(result, 31) + (this.rcmd == null ? 0 : this.rcmd.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KTopicSquareInfo)) + return false; + var tmp0_other_with_cast = other instanceof KTopicSquareInfo ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!equals(this.button, tmp0_other_with_cast.button)) + return false; + if (!equals(this.rcmd, tmp0_other_with_cast.rcmd)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KTopicSquareInfo_y4cfmf_k$(seen1, title, button, rcmd, serializationConstructorMarker) { + Companion_instance_882; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_869().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.button = null; + else + $this.button = button; + if (0 === (seen1 & 4)) + $this.rcmd = null; + else + $this.rcmd = rcmd; + return $this; + } + } + class Companion_883 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.TopicRcmdCard'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_870(); + } + } + class $serializer_870 { + constructor() { + $serializer_instance_870 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KTopicRcmdCard', this, 7); + tmp0_serialDesc.addElement_5pzumi_k$('topicId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('topicName', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('url', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('button', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('desc1', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('desc2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('updateDesc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_837()), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp11_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_837(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + } else + while (tmp1_flag) { + tmp2_index = tmp11_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_837(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp11_input.endStructure_1xqz0n_k$(tmp0_desc); + return KTopicRcmdCard.new_com_bapis_bilibili_app_dynamic_v2_KTopicRcmdCard_q3c9lb_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, null); + } + serialize_59cvcl_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.topicId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.topicId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.topicName === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.topicName); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.url === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.url); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.button == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_837(), value.button); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.desc1 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.desc1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.desc2 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.desc2); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.updateDesc === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.updateDesc); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_59cvcl_k$(encoder, value instanceof KTopicRcmdCard ? value : THROW_CCE()); + } + } + class KTopicRcmdCard { + constructor(topicId, topicName, url, button, desc1, desc2, updateDesc) { + Companion_instance_883; + topicId = topicId === VOID ? new Long(0, 0) : topicId; + topicName = topicName === VOID ? '' : topicName; + url = url === VOID ? '' : url; + button = button === VOID ? null : button; + desc1 = desc1 === VOID ? '' : desc1; + desc2 = desc2 === VOID ? '' : desc2; + updateDesc = updateDesc === VOID ? '' : updateDesc; + this.topicId = topicId; + this.topicName = topicName; + this.url = url; + this.button = button; + this.desc1 = desc1; + this.desc2 = desc2; + this.updateDesc = updateDesc; + } + get_topicId_hkqce7_k$() { + return this.topicId; + } + get_topicName_exnelt_k$() { + return this.topicName; + } + get_url_18iuii_k$() { + return this.url; + } + get_button_bmjiuz_k$() { + return this.button; + } + get_desc1_iq7sev_k$() { + return this.desc1; + } + get_desc2_iq7sew_k$() { + return this.desc2; + } + get_updateDesc_p2q73x_k$() { + return this.updateDesc; + } + component1_7eebsc_k$() { + return this.topicId; + } + component2_7eebsb_k$() { + return this.topicName; + } + component3_7eebsa_k$() { + return this.url; + } + component4_7eebs9_k$() { + return this.button; + } + component5_7eebs8_k$() { + return this.desc1; + } + component6_7eebs7_k$() { + return this.desc2; + } + component7_7eebs6_k$() { + return this.updateDesc; + } + copy_xilgds_k$(topicId, topicName, url, button, desc1, desc2, updateDesc) { + return new KTopicRcmdCard(topicId, topicName, url, button, desc1, desc2, updateDesc); + } + copy(topicId, topicName, url, button, desc1, desc2, updateDesc, $super) { + topicId = topicId === VOID ? this.topicId : topicId; + topicName = topicName === VOID ? this.topicName : topicName; + url = url === VOID ? this.url : url; + button = button === VOID ? this.button : button; + desc1 = desc1 === VOID ? this.desc1 : desc1; + desc2 = desc2 === VOID ? this.desc2 : desc2; + updateDesc = updateDesc === VOID ? this.updateDesc : updateDesc; + return this.copy_xilgds_k$(topicId, topicName, url, button, desc1, desc2, updateDesc); + } + toString() { + return 'KTopicRcmdCard(topicId=' + this.topicId.toString() + ', topicName=' + this.topicName + ', url=' + this.url + ', button=' + this.button + ', desc1=' + this.desc1 + ', desc2=' + this.desc2 + ', updateDesc=' + this.updateDesc + ')'; + } + hashCode() { + var result = this.topicId.hashCode(); + result = imul(result, 31) + getStringHashCode(this.topicName) | 0; + result = imul(result, 31) + getStringHashCode(this.url) | 0; + result = imul(result, 31) + (this.button == null ? 0 : this.button.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.desc1) | 0; + result = imul(result, 31) + getStringHashCode(this.desc2) | 0; + result = imul(result, 31) + getStringHashCode(this.updateDesc) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KTopicRcmdCard)) + return false; + var tmp0_other_with_cast = other instanceof KTopicRcmdCard ? other : THROW_CCE(); + if (!this.topicId.equals(tmp0_other_with_cast.topicId)) + return false; + if (!(this.topicName === tmp0_other_with_cast.topicName)) + return false; + if (!(this.url === tmp0_other_with_cast.url)) + return false; + if (!equals(this.button, tmp0_other_with_cast.button)) + return false; + if (!(this.desc1 === tmp0_other_with_cast.desc1)) + return false; + if (!(this.desc2 === tmp0_other_with_cast.desc2)) + return false; + if (!(this.updateDesc === tmp0_other_with_cast.updateDesc)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KTopicRcmdCard_q3c9lb_k$(seen1, topicId, topicName, url, button, desc1, desc2, updateDesc, serializationConstructorMarker) { + Companion_instance_883; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_870().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.topicId = new Long(0, 0); + else + $this.topicId = topicId; + if (0 === (seen1 & 2)) + $this.topicName = ''; + else + $this.topicName = topicName; + if (0 === (seen1 & 4)) + $this.url = ''; + else + $this.url = url; + if (0 === (seen1 & 8)) + $this.button = null; + else + $this.button = button; + if (0 === (seen1 & 16)) + $this.desc1 = ''; + else + $this.desc1 = desc1; + if (0 === (seen1 & 32)) + $this.desc2 = ''; + else + $this.desc2 = desc2; + if (0 === (seen1 & 64)) + $this.updateDesc = ''; + else + $this.updateDesc = updateDesc; + return $this; + } + } + class Companion_884 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.TopicListReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_871(); + } + } + class $serializer_871 { + constructor() { + $serializer_instance_871 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KTopicListReq', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('campusId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('offset', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('fromType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_local2 = 0; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KTopicListReq.new_com_bapis_bilibili_app_dynamic_v2_KTopicListReq_78b8rq_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_hzuzc7_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.campusId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.campusId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.offset === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.offset); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.fromType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.fromType); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_hzuzc7_k$(encoder, value instanceof KTopicListReq ? value : THROW_CCE()); + } + } + class KTopicListReq { + constructor(campusId, offset, fromType) { + Companion_instance_884; + campusId = campusId === VOID ? new Long(0, 0) : campusId; + offset = offset === VOID ? '' : offset; + fromType = fromType === VOID ? 0 : fromType; + this.campusId = campusId; + this.offset = offset; + this.fromType = fromType; + } + get_campusId_y3vqhp_k$() { + return this.campusId; + } + get_offset_hjmqak_k$() { + return this.offset; + } + get_fromType_in58el_k$() { + return this.fromType; + } + fromTypeEnum() { + return Companion_getInstance_746().fromValue(this.fromType); + } + component1_7eebsc_k$() { + return this.campusId; + } + component2_7eebsb_k$() { + return this.offset; + } + component3_7eebsa_k$() { + return this.fromType; + } + copy_ay2fe7_k$(campusId, offset, fromType) { + return new KTopicListReq(campusId, offset, fromType); + } + copy(campusId, offset, fromType, $super) { + campusId = campusId === VOID ? this.campusId : campusId; + offset = offset === VOID ? this.offset : offset; + fromType = fromType === VOID ? this.fromType : fromType; + return this.copy_ay2fe7_k$(campusId, offset, fromType); + } + toString() { + return 'KTopicListReq(campusId=' + this.campusId.toString() + ', offset=' + this.offset + ', fromType=' + this.fromType + ')'; + } + hashCode() { + var result = this.campusId.hashCode(); + result = imul(result, 31) + getStringHashCode(this.offset) | 0; + result = imul(result, 31) + this.fromType | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KTopicListReq)) + return false; + var tmp0_other_with_cast = other instanceof KTopicListReq ? other : THROW_CCE(); + if (!this.campusId.equals(tmp0_other_with_cast.campusId)) + return false; + if (!(this.offset === tmp0_other_with_cast.offset)) + return false; + if (!(this.fromType === tmp0_other_with_cast.fromType)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KTopicListReq_78b8rq_k$(seen1, campusId, offset, fromType, serializationConstructorMarker) { + Companion_instance_884; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_871().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.campusId = new Long(0, 0); + else + $this.campusId = campusId; + if (0 === (seen1 & 2)) + $this.offset = ''; + else + $this.offset = offset; + if (0 === (seen1 & 4)) + $this.fromType = 0; + else + $this.fromType = fromType; + return $this; + } + } + class Companion_885 { + constructor() { + Companion_instance_885 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer($serializer_getInstance_1099()), null, null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.TopicListReply'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_872(); + } + } + class $serializer_872 { + constructor() { + $serializer_instance_872 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KTopicListReply', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('items', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('hasMore', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('offset', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('createTopicBtn', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_885().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0], BooleanSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_1100())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = false; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp9_cached = Companion_getInstance_885().$childSerializers_1; + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp9_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_1100(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp9_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_1100(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KTopicListReply.new_com_bapis_bilibili_app_dynamic_v2_KTopicListReply_tbmf76_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_7xsa8d_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_885().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.items, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.items); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.hasMore === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 1, value.hasMore); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.offset === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.offset); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.createTopicBtn == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_1100(), value.createTopicBtn); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_7xsa8d_k$(encoder, value instanceof KTopicListReply ? value : THROW_CCE()); + } + } + class KTopicListReply { + constructor(items, hasMore, offset, createTopicBtn) { + Companion_getInstance_885(); + items = items === VOID ? emptyList() : items; + hasMore = hasMore === VOID ? false : hasMore; + offset = offset === VOID ? '' : offset; + createTopicBtn = createTopicBtn === VOID ? null : createTopicBtn; + this.items = items; + this.hasMore = hasMore; + this.offset = offset; + this.createTopicBtn = createTopicBtn; + } + get_items_it823b_k$() { + return this.items; + } + get_hasMore_csdhd2_k$() { + return this.hasMore; + } + get_offset_hjmqak_k$() { + return this.offset; + } + get_createTopicBtn_wsa2mq_k$() { + return this.createTopicBtn; + } + component1_7eebsc_k$() { + return this.items; + } + component2_7eebsb_k$() { + return this.hasMore; + } + component3_7eebsa_k$() { + return this.offset; + } + component4_7eebs9_k$() { + return this.createTopicBtn; + } + copy_ygtnz8_k$(items, hasMore, offset, createTopicBtn) { + return new KTopicListReply(items, hasMore, offset, createTopicBtn); + } + copy(items, hasMore, offset, createTopicBtn, $super) { + items = items === VOID ? this.items : items; + hasMore = hasMore === VOID ? this.hasMore : hasMore; + offset = offset === VOID ? this.offset : offset; + createTopicBtn = createTopicBtn === VOID ? this.createTopicBtn : createTopicBtn; + return this.copy_ygtnz8_k$(items, hasMore, offset, createTopicBtn); + } + toString() { + return 'KTopicListReply(items=' + this.items + ', hasMore=' + this.hasMore + ', offset=' + this.offset + ', createTopicBtn=' + this.createTopicBtn + ')'; + } + hashCode() { + var result = hashCode(this.items); + result = imul(result, 31) + getBooleanHashCode(this.hasMore) | 0; + result = imul(result, 31) + getStringHashCode(this.offset) | 0; + result = imul(result, 31) + (this.createTopicBtn == null ? 0 : this.createTopicBtn.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KTopicListReply)) + return false; + var tmp0_other_with_cast = other instanceof KTopicListReply ? other : THROW_CCE(); + if (!equals(this.items, tmp0_other_with_cast.items)) + return false; + if (!(this.hasMore === tmp0_other_with_cast.hasMore)) + return false; + if (!(this.offset === tmp0_other_with_cast.offset)) + return false; + if (!equals(this.createTopicBtn, tmp0_other_with_cast.createTopicBtn)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KTopicListReply_tbmf76_k$(seen1, items, hasMore, offset, createTopicBtn, serializationConstructorMarker) { + Companion_getInstance_885(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_872().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.items = emptyList(); + else + $this.items = items; + if (0 === (seen1 & 2)) + $this.hasMore = false; + else + $this.hasMore = hasMore; + if (0 === (seen1 & 4)) + $this.offset = ''; + else + $this.offset = offset; + if (0 === (seen1 & 8)) + $this.createTopicBtn = null; + else + $this.createTopicBtn = createTopicBtn; + return $this; + } + } + class Companion_886 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.CampusMateLikeListReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_873(); + } + } + class $serializer_873 { + constructor() { + $serializer_instance_873 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KCampusMateLikeListReq', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('dynamicId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('fromType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = 0; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KCampusMateLikeListReq.new_com_bapis_bilibili_app_dynamic_v2_KCampusMateLikeListReq_user0x_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_sanw4p_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.dynamicId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.dynamicId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.fromType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.fromType); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_sanw4p_k$(encoder, value instanceof KCampusMateLikeListReq ? value : THROW_CCE()); + } + } + class KCampusMateLikeListReq { + constructor(dynamicId, fromType) { + Companion_instance_886; + dynamicId = dynamicId === VOID ? new Long(0, 0) : dynamicId; + fromType = fromType === VOID ? 0 : fromType; + this.dynamicId = dynamicId; + this.fromType = fromType; + } + get_dynamicId_wvqga7_k$() { + return this.dynamicId; + } + get_fromType_in58el_k$() { + return this.fromType; + } + fromTypeEnum() { + return Companion_getInstance_746().fromValue(this.fromType); + } + component1_7eebsc_k$() { + return this.dynamicId; + } + component2_7eebsb_k$() { + return this.fromType; + } + copy_hlxmm3_k$(dynamicId, fromType) { + return new KCampusMateLikeListReq(dynamicId, fromType); + } + copy(dynamicId, fromType, $super) { + dynamicId = dynamicId === VOID ? this.dynamicId : dynamicId; + fromType = fromType === VOID ? this.fromType : fromType; + return this.copy_hlxmm3_k$(dynamicId, fromType); + } + toString() { + return 'KCampusMateLikeListReq(dynamicId=' + this.dynamicId.toString() + ', fromType=' + this.fromType + ')'; + } + hashCode() { + var result = this.dynamicId.hashCode(); + result = imul(result, 31) + this.fromType | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KCampusMateLikeListReq)) + return false; + var tmp0_other_with_cast = other instanceof KCampusMateLikeListReq ? other : THROW_CCE(); + if (!this.dynamicId.equals(tmp0_other_with_cast.dynamicId)) + return false; + if (!(this.fromType === tmp0_other_with_cast.fromType)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KCampusMateLikeListReq_user0x_k$(seen1, dynamicId, fromType, serializationConstructorMarker) { + Companion_instance_886; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_873().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.dynamicId = new Long(0, 0); + else + $this.dynamicId = dynamicId; + if (0 === (seen1 & 2)) + $this.fromType = 0; + else + $this.fromType = fromType; + return $this; + } + } + class Companion_887 { + constructor() { + Companion_instance_887 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer($serializer_getInstance_953())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.CampusMateLikeListReply'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_874(); + } + } + class $serializer_874 { + constructor() { + $serializer_instance_874 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KCampusMateLikeListReply', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('list', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_887().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp6_cached = Companion_getInstance_887().$childSerializers_1; + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KCampusMateLikeListReply.new_com_bapis_bilibili_app_dynamic_v2_KCampusMateLikeListReply_at5oik_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_h5bfzp_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_887().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.list, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.list); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_h5bfzp_k$(encoder, value instanceof KCampusMateLikeListReply ? value : THROW_CCE()); + } + } + class KCampusMateLikeListReply { + constructor(list) { + Companion_getInstance_887(); + list = list === VOID ? emptyList() : list; + this.list = list; + } + get_list_wopuqv_k$() { + return this.list; + } + component1_7eebsc_k$() { + return this.list; + } + copy_73x5rb_k$(list) { + return new KCampusMateLikeListReply(list); + } + copy(list, $super) { + list = list === VOID ? this.list : list; + return this.copy_73x5rb_k$(list); + } + toString() { + return 'KCampusMateLikeListReply(list=' + this.list + ')'; + } + hashCode() { + return hashCode(this.list); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KCampusMateLikeListReply)) + return false; + var tmp0_other_with_cast = other instanceof KCampusMateLikeListReply ? other : THROW_CCE(); + if (!equals(this.list, tmp0_other_with_cast.list)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KCampusMateLikeListReply_at5oik_k$(seen1, list, serializationConstructorMarker) { + Companion_getInstance_887(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_874().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.list = emptyList(); + else + $this.list = list; + return $this; + } + } + class Companion_888 { + constructor() { + Companion_instance_888 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer($serializer_getInstance_876()), null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.CampusFeedbackReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_875(); + } + } + class $serializer_875 { + constructor() { + $serializer_instance_875 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KCampusFeedbackReq', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('infos', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('from', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('fromType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_888().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0], IntSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = 0; + var tmp6_local2 = 0; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp8_cached = Companion_getInstance_888().$childSerializers_1; + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp8_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp8_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KCampusFeedbackReq.new_com_bapis_bilibili_app_dynamic_v2_KCampusFeedbackReq_ncg6s8_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_fk9vc2_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_888().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.infos, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.infos); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.from === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.from); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.fromType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.fromType); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_fk9vc2_k$(encoder, value instanceof KCampusFeedbackReq ? value : THROW_CCE()); + } + } + class KCampusFeedbackReq { + constructor(infos, from, fromType) { + Companion_getInstance_888(); + infos = infos === VOID ? emptyList() : infos; + from = from === VOID ? 0 : from; + fromType = fromType === VOID ? 0 : fromType; + this.infos = infos; + this.from = from; + this.fromType = fromType; + } + get_infos_it48yk_k$() { + return this.infos; + } + get_from_wom7eb_k$() { + return this.from; + } + get_fromType_in58el_k$() { + return this.fromType; + } + fromTypeEnum() { + return Companion_getInstance_746().fromValue(this.fromType); + } + component1_7eebsc_k$() { + return this.infos; + } + component2_7eebsb_k$() { + return this.from; + } + component3_7eebsa_k$() { + return this.fromType; + } + copy_b0dae6_k$(infos, from, fromType) { + return new KCampusFeedbackReq(infos, from, fromType); + } + copy(infos, from, fromType, $super) { + infos = infos === VOID ? this.infos : infos; + from = from === VOID ? this.from : from; + fromType = fromType === VOID ? this.fromType : fromType; + return this.copy_b0dae6_k$(infos, from, fromType); + } + toString() { + return 'KCampusFeedbackReq(infos=' + this.infos + ', from=' + this.from + ', fromType=' + this.fromType + ')'; + } + hashCode() { + var result = hashCode(this.infos); + result = imul(result, 31) + this.from | 0; + result = imul(result, 31) + this.fromType | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KCampusFeedbackReq)) + return false; + var tmp0_other_with_cast = other instanceof KCampusFeedbackReq ? other : THROW_CCE(); + if (!equals(this.infos, tmp0_other_with_cast.infos)) + return false; + if (!(this.from === tmp0_other_with_cast.from)) + return false; + if (!(this.fromType === tmp0_other_with_cast.fromType)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KCampusFeedbackReq_ncg6s8_k$(seen1, infos, from, fromType, serializationConstructorMarker) { + Companion_getInstance_888(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_875().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.infos = emptyList(); + else + $this.infos = infos; + if (0 === (seen1 & 2)) + $this.from = 0; + else + $this.from = from; + if (0 === (seen1 & 4)) + $this.fromType = 0; + else + $this.fromType = fromType; + return $this; + } + } + class Companion_889 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.CampusFeedbackInfo'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_876(); + } + } + class $serializer_876 { + constructor() { + $serializer_instance_876 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KCampusFeedbackInfo', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('bizType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('bizId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('campusId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('reason', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = new Long(0, 0); + var tmp6_local2 = new Long(0, 0); + var tmp7_local3 = null; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KCampusFeedbackInfo.new_com_bapis_bilibili_app_dynamic_v2_KCampusFeedbackInfo_pqgmh3_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_9vlyzc_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.bizType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.bizType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.bizId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.bizId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.campusId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.campusId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.reason === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.reason); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_9vlyzc_k$(encoder, value instanceof KCampusFeedbackInfo ? value : THROW_CCE()); + } + } + class KCampusFeedbackInfo { + constructor(bizType, bizId, campusId, reason) { + Companion_instance_889; + bizType = bizType === VOID ? 0 : bizType; + bizId = bizId === VOID ? new Long(0, 0) : bizId; + campusId = campusId === VOID ? new Long(0, 0) : campusId; + reason = reason === VOID ? '' : reason; + this.bizType = bizType; + this.bizId = bizId; + this.campusId = campusId; + this.reason = reason; + } + get_bizType_cjyf0_k$() { + return this.bizType; + } + get_bizId_ip6vs5_k$() { + return this.bizId; + } + get_campusId_y3vqhp_k$() { + return this.campusId; + } + get_reason_iy4m6l_k$() { + return this.reason; + } + component1_7eebsc_k$() { + return this.bizType; + } + component2_7eebsb_k$() { + return this.bizId; + } + component3_7eebsa_k$() { + return this.campusId; + } + component4_7eebs9_k$() { + return this.reason; + } + copy_aff7q3_k$(bizType, bizId, campusId, reason) { + return new KCampusFeedbackInfo(bizType, bizId, campusId, reason); + } + copy(bizType, bizId, campusId, reason, $super) { + bizType = bizType === VOID ? this.bizType : bizType; + bizId = bizId === VOID ? this.bizId : bizId; + campusId = campusId === VOID ? this.campusId : campusId; + reason = reason === VOID ? this.reason : reason; + return this.copy_aff7q3_k$(bizType, bizId, campusId, reason); + } + toString() { + return 'KCampusFeedbackInfo(bizType=' + this.bizType + ', bizId=' + this.bizId.toString() + ', campusId=' + this.campusId.toString() + ', reason=' + this.reason + ')'; + } + hashCode() { + var result = this.bizType; + result = imul(result, 31) + this.bizId.hashCode() | 0; + result = imul(result, 31) + this.campusId.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.reason) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KCampusFeedbackInfo)) + return false; + var tmp0_other_with_cast = other instanceof KCampusFeedbackInfo ? other : THROW_CCE(); + if (!(this.bizType === tmp0_other_with_cast.bizType)) + return false; + if (!this.bizId.equals(tmp0_other_with_cast.bizId)) + return false; + if (!this.campusId.equals(tmp0_other_with_cast.campusId)) + return false; + if (!(this.reason === tmp0_other_with_cast.reason)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KCampusFeedbackInfo_pqgmh3_k$(seen1, bizType, bizId, campusId, reason, serializationConstructorMarker) { + Companion_instance_889; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_876().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.bizType = 0; + else + $this.bizType = bizType; + if (0 === (seen1 & 2)) + $this.bizId = new Long(0, 0); + else + $this.bizId = bizId; + if (0 === (seen1 & 4)) + $this.campusId = new Long(0, 0); + else + $this.campusId = campusId; + if (0 === (seen1 & 8)) + $this.reason = ''; + else + $this.reason = reason; + return $this; + } + } + class Companion_890 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.CampusFeedbackReply'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_877(); + } + } + class $serializer_877 { + constructor() { + $serializer_instance_877 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KCampusFeedbackReply', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('message', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KCampusFeedbackReply.new_com_bapis_bilibili_app_dynamic_v2_KCampusFeedbackReply_nslgsr_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_ae66s6_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.message === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.message); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_ae66s6_k$(encoder, value instanceof KCampusFeedbackReply ? value : THROW_CCE()); + } + } + class KCampusFeedbackReply { + constructor(message) { + Companion_instance_890; + message = message === VOID ? '' : message; + this.message = message; + } + get_message_h23axq_k$() { + return this.message; + } + component1_7eebsc_k$() { + return this.message; + } + copy_a35qlh_k$(message) { + return new KCampusFeedbackReply(message); + } + copy(message, $super) { + message = message === VOID ? this.message : message; + return this.copy_a35qlh_k$(message); + } + toString() { + return 'KCampusFeedbackReply(message=' + this.message + ')'; + } + hashCode() { + return getStringHashCode(this.message); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KCampusFeedbackReply)) + return false; + var tmp0_other_with_cast = other instanceof KCampusFeedbackReply ? other : THROW_CCE(); + if (!(this.message === tmp0_other_with_cast.message)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KCampusFeedbackReply_nslgsr_k$(seen1, message, serializationConstructorMarker) { + Companion_instance_890; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_877().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.message = ''; + else + $this.message = message; + return $this; + } + } + class Companion_891 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.CampusBillBoardReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_878(); + } + } + class $serializer_878 { + constructor() { + $serializer_instance_878 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KCampusBillBoardReq', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('campusId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('versionCode', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('playerArgs', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('fromType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_152()), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = 0; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_152(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_152(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KCampusBillBoardReq.new_com_bapis_bilibili_app_dynamic_v2_KCampusBillBoardReq_4jfdss_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_gg9zdg_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.campusId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.campusId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.versionCode === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.versionCode); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.playerArgs == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_152(), value.playerArgs); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.fromType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 3, value.fromType); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_gg9zdg_k$(encoder, value instanceof KCampusBillBoardReq ? value : THROW_CCE()); + } + } + class KCampusBillBoardReq { + constructor(campusId, versionCode, playerArgs, fromType) { + Companion_instance_891; + campusId = campusId === VOID ? new Long(0, 0) : campusId; + versionCode = versionCode === VOID ? '' : versionCode; + playerArgs = playerArgs === VOID ? null : playerArgs; + fromType = fromType === VOID ? 0 : fromType; + this.campusId = campusId; + this.versionCode = versionCode; + this.playerArgs = playerArgs; + this.fromType = fromType; + } + get_campusId_y3vqhp_k$() { + return this.campusId; + } + get_versionCode_pa65j0_k$() { + return this.versionCode; + } + get_playerArgs_eh86hz_k$() { + return this.playerArgs; + } + get_fromType_in58el_k$() { + return this.fromType; + } + fromTypeEnum() { + return Companion_getInstance_746().fromValue(this.fromType); + } + component1_7eebsc_k$() { + return this.campusId; + } + component2_7eebsb_k$() { + return this.versionCode; + } + component3_7eebsa_k$() { + return this.playerArgs; + } + component4_7eebs9_k$() { + return this.fromType; + } + copy_1a4yy_k$(campusId, versionCode, playerArgs, fromType) { + return new KCampusBillBoardReq(campusId, versionCode, playerArgs, fromType); + } + copy(campusId, versionCode, playerArgs, fromType, $super) { + campusId = campusId === VOID ? this.campusId : campusId; + versionCode = versionCode === VOID ? this.versionCode : versionCode; + playerArgs = playerArgs === VOID ? this.playerArgs : playerArgs; + fromType = fromType === VOID ? this.fromType : fromType; + return this.copy_1a4yy_k$(campusId, versionCode, playerArgs, fromType); + } + toString() { + return 'KCampusBillBoardReq(campusId=' + this.campusId.toString() + ', versionCode=' + this.versionCode + ', playerArgs=' + this.playerArgs + ', fromType=' + this.fromType + ')'; + } + hashCode() { + var result = this.campusId.hashCode(); + result = imul(result, 31) + getStringHashCode(this.versionCode) | 0; + result = imul(result, 31) + (this.playerArgs == null ? 0 : this.playerArgs.hashCode()) | 0; + result = imul(result, 31) + this.fromType | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KCampusBillBoardReq)) + return false; + var tmp0_other_with_cast = other instanceof KCampusBillBoardReq ? other : THROW_CCE(); + if (!this.campusId.equals(tmp0_other_with_cast.campusId)) + return false; + if (!(this.versionCode === tmp0_other_with_cast.versionCode)) + return false; + if (!equals(this.playerArgs, tmp0_other_with_cast.playerArgs)) + return false; + if (!(this.fromType === tmp0_other_with_cast.fromType)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KCampusBillBoardReq_4jfdss_k$(seen1, campusId, versionCode, playerArgs, fromType, serializationConstructorMarker) { + Companion_instance_891; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_878().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.campusId = new Long(0, 0); + else + $this.campusId = campusId; + if (0 === (seen1 & 2)) + $this.versionCode = ''; + else + $this.versionCode = versionCode; + if (0 === (seen1 & 4)) + $this.playerArgs = null; + else + $this.playerArgs = playerArgs; + if (0 === (seen1 & 8)) + $this.fromType = 0; + else + $this.fromType = fromType; + return $this; + } + } + class Companion_892 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.CampusBillboardInternalReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_879(); + } + } + class $serializer_879 { + constructor() { + $serializer_instance_879 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KCampusBillboardInternalReq', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('mid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('campusId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('versionCode', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = new Long(0, 0); + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KCampusBillboardInternalReq.new_com_bapis_bilibili_app_dynamic_v2_KCampusBillboardInternalReq_d0tq1g_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_1ah7vb_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.mid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.mid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.campusId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.campusId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.versionCode === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.versionCode); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_1ah7vb_k$(encoder, value instanceof KCampusBillboardInternalReq ? value : THROW_CCE()); + } + } + class KCampusBillboardInternalReq { + constructor(mid, campusId, versionCode) { + Companion_instance_892; + mid = mid === VOID ? new Long(0, 0) : mid; + campusId = campusId === VOID ? new Long(0, 0) : campusId; + versionCode = versionCode === VOID ? '' : versionCode; + this.mid = mid; + this.campusId = campusId; + this.versionCode = versionCode; + } + get_mid_18j0o1_k$() { + return this.mid; + } + get_campusId_y3vqhp_k$() { + return this.campusId; + } + get_versionCode_pa65j0_k$() { + return this.versionCode; + } + component1_7eebsc_k$() { + return this.mid; + } + component2_7eebsb_k$() { + return this.campusId; + } + component3_7eebsa_k$() { + return this.versionCode; + } + copy_ooba7d_k$(mid, campusId, versionCode) { + return new KCampusBillboardInternalReq(mid, campusId, versionCode); + } + copy(mid, campusId, versionCode, $super) { + mid = mid === VOID ? this.mid : mid; + campusId = campusId === VOID ? this.campusId : campusId; + versionCode = versionCode === VOID ? this.versionCode : versionCode; + return this.copy_ooba7d_k$(mid, campusId, versionCode); + } + toString() { + return 'KCampusBillboardInternalReq(mid=' + this.mid.toString() + ', campusId=' + this.campusId.toString() + ', versionCode=' + this.versionCode + ')'; + } + hashCode() { + var result = this.mid.hashCode(); + result = imul(result, 31) + this.campusId.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.versionCode) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KCampusBillboardInternalReq)) + return false; + var tmp0_other_with_cast = other instanceof KCampusBillboardInternalReq ? other : THROW_CCE(); + if (!this.mid.equals(tmp0_other_with_cast.mid)) + return false; + if (!this.campusId.equals(tmp0_other_with_cast.campusId)) + return false; + if (!(this.versionCode === tmp0_other_with_cast.versionCode)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KCampusBillboardInternalReq_d0tq1g_k$(seen1, mid, campusId, versionCode, serializationConstructorMarker) { + Companion_instance_892; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_879().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.mid = new Long(0, 0); + else + $this.mid = mid; + if (0 === (seen1 & 2)) + $this.campusId = new Long(0, 0); + else + $this.campusId = campusId; + if (0 === (seen1 & 4)) + $this.versionCode = ''; + else + $this.versionCode = versionCode; + return $this; + } + } + class Companion_893 { + constructor() { + Companion_instance_893 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, null, null, new ArrayListSerializer($serializer_getInstance_859()), null, null, null, null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.CampusBillBoardReply'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_880(); + } + } + class $serializer_880 { + constructor() { + $serializer_instance_880 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KCampusBillBoardReply', this, 11); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('helpUri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('campusName', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('buildTime', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('versionCode', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('list', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('shareUri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('bindNotice', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('updateToast', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('campusId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('openProgress', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_893().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), tmp0_cached[5], StringSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), get_nullable($serializer_getInstance_881())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = new Long(0, 0); + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = 0; + var tmp12_local8 = null; + var tmp13_local9 = new Long(0, 0); + var tmp14_local10 = null; + var tmp15_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp16_cached = Companion_getInstance_893().$childSerializers_1; + if (tmp15_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp15_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 5, tmp16_cached[5], tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 10, $serializer_getInstance_881(), tmp14_local10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + } else + while (tmp1_flag) { + tmp2_index = tmp15_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp15_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 5, tmp16_cached[5], tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 10, $serializer_getInstance_881(), tmp14_local10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp15_input.endStructure_1xqz0n_k$(tmp0_desc); + return KCampusBillBoardReply.new_com_bapis_bilibili_app_dynamic_v2_KCampusBillBoardReply_vhkj8w_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, null); + } + serialize_1z7ds_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_893().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.helpUri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.helpUri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.campusName === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.campusName); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !value.buildTime.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 3, value.buildTime); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.versionCode === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.versionCode); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !equals(value.list, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 5, tmp2_cached[5], value.list); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.shareUri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.shareUri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.bindNotice === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 7, value.bindNotice); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.updateToast === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 8, value.updateToast); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !value.campusId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 9, value.campusId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.openProgress == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 10, $serializer_getInstance_881(), value.openProgress); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_1z7ds_k$(encoder, value instanceof KCampusBillBoardReply ? value : THROW_CCE()); + } + } + class KCampusBillBoardReply { + constructor(title, helpUri, campusName, buildTime, versionCode, list, shareUri, bindNotice, updateToast, campusId, openProgress) { + Companion_getInstance_893(); + title = title === VOID ? '' : title; + helpUri = helpUri === VOID ? '' : helpUri; + campusName = campusName === VOID ? '' : campusName; + buildTime = buildTime === VOID ? new Long(0, 0) : buildTime; + versionCode = versionCode === VOID ? '' : versionCode; + list = list === VOID ? emptyList() : list; + shareUri = shareUri === VOID ? '' : shareUri; + bindNotice = bindNotice === VOID ? 0 : bindNotice; + updateToast = updateToast === VOID ? '' : updateToast; + campusId = campusId === VOID ? new Long(0, 0) : campusId; + openProgress = openProgress === VOID ? null : openProgress; + this.title = title; + this.helpUri = helpUri; + this.campusName = campusName; + this.buildTime = buildTime; + this.versionCode = versionCode; + this.list = list; + this.shareUri = shareUri; + this.bindNotice = bindNotice; + this.updateToast = updateToast; + this.campusId = campusId; + this.openProgress = openProgress; + } + get_title_iz32un_k$() { + return this.title; + } + get_helpUri_elb81u_k$() { + return this.helpUri; + } + get_campusName_wd5obx_k$() { + return this.campusName; + } + get_buildTime_enl6j2_k$() { + return this.buildTime; + } + get_versionCode_pa65j0_k$() { + return this.versionCode; + } + get_list_wopuqv_k$() { + return this.list; + } + get_shareUri_qxcrme_k$() { + return this.shareUri; + } + get_bindNotice_7vsi6a_k$() { + return this.bindNotice; + } + get_updateToast_48n7ud_k$() { + return this.updateToast; + } + get_campusId_y3vqhp_k$() { + return this.campusId; + } + get_openProgress_t50vkw_k$() { + return this.openProgress; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.helpUri; + } + component3_7eebsa_k$() { + return this.campusName; + } + component4_7eebs9_k$() { + return this.buildTime; + } + component5_7eebs8_k$() { + return this.versionCode; + } + component6_7eebs7_k$() { + return this.list; + } + component7_7eebs6_k$() { + return this.shareUri; + } + component8_7eebs5_k$() { + return this.bindNotice; + } + component9_7eebs4_k$() { + return this.updateToast; + } + component10_gazzfo_k$() { + return this.campusId; + } + component11_gazzfn_k$() { + return this.openProgress; + } + copy_2mvrr2_k$(title, helpUri, campusName, buildTime, versionCode, list, shareUri, bindNotice, updateToast, campusId, openProgress) { + return new KCampusBillBoardReply(title, helpUri, campusName, buildTime, versionCode, list, shareUri, bindNotice, updateToast, campusId, openProgress); + } + copy(title, helpUri, campusName, buildTime, versionCode, list, shareUri, bindNotice, updateToast, campusId, openProgress, $super) { + title = title === VOID ? this.title : title; + helpUri = helpUri === VOID ? this.helpUri : helpUri; + campusName = campusName === VOID ? this.campusName : campusName; + buildTime = buildTime === VOID ? this.buildTime : buildTime; + versionCode = versionCode === VOID ? this.versionCode : versionCode; + list = list === VOID ? this.list : list; + shareUri = shareUri === VOID ? this.shareUri : shareUri; + bindNotice = bindNotice === VOID ? this.bindNotice : bindNotice; + updateToast = updateToast === VOID ? this.updateToast : updateToast; + campusId = campusId === VOID ? this.campusId : campusId; + openProgress = openProgress === VOID ? this.openProgress : openProgress; + return this.copy_2mvrr2_k$(title, helpUri, campusName, buildTime, versionCode, list, shareUri, bindNotice, updateToast, campusId, openProgress); + } + toString() { + return 'KCampusBillBoardReply(title=' + this.title + ', helpUri=' + this.helpUri + ', campusName=' + this.campusName + ', buildTime=' + this.buildTime.toString() + ', versionCode=' + this.versionCode + ', list=' + this.list + ', shareUri=' + this.shareUri + ', bindNotice=' + this.bindNotice + ', updateToast=' + this.updateToast + ', campusId=' + this.campusId.toString() + ', openProgress=' + this.openProgress + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.helpUri) | 0; + result = imul(result, 31) + getStringHashCode(this.campusName) | 0; + result = imul(result, 31) + this.buildTime.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.versionCode) | 0; + result = imul(result, 31) + hashCode(this.list) | 0; + result = imul(result, 31) + getStringHashCode(this.shareUri) | 0; + result = imul(result, 31) + this.bindNotice | 0; + result = imul(result, 31) + getStringHashCode(this.updateToast) | 0; + result = imul(result, 31) + this.campusId.hashCode() | 0; + result = imul(result, 31) + (this.openProgress == null ? 0 : this.openProgress.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KCampusBillBoardReply)) + return false; + var tmp0_other_with_cast = other instanceof KCampusBillBoardReply ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.helpUri === tmp0_other_with_cast.helpUri)) + return false; + if (!(this.campusName === tmp0_other_with_cast.campusName)) + return false; + if (!this.buildTime.equals(tmp0_other_with_cast.buildTime)) + return false; + if (!(this.versionCode === tmp0_other_with_cast.versionCode)) + return false; + if (!equals(this.list, tmp0_other_with_cast.list)) + return false; + if (!(this.shareUri === tmp0_other_with_cast.shareUri)) + return false; + if (!(this.bindNotice === tmp0_other_with_cast.bindNotice)) + return false; + if (!(this.updateToast === tmp0_other_with_cast.updateToast)) + return false; + if (!this.campusId.equals(tmp0_other_with_cast.campusId)) + return false; + if (!equals(this.openProgress, tmp0_other_with_cast.openProgress)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KCampusBillBoardReply_vhkj8w_k$(seen1, title, helpUri, campusName, buildTime, versionCode, list, shareUri, bindNotice, updateToast, campusId, openProgress, serializationConstructorMarker) { + Companion_getInstance_893(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_880().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.helpUri = ''; + else + $this.helpUri = helpUri; + if (0 === (seen1 & 4)) + $this.campusName = ''; + else + $this.campusName = campusName; + if (0 === (seen1 & 8)) + $this.buildTime = new Long(0, 0); + else + $this.buildTime = buildTime; + if (0 === (seen1 & 16)) + $this.versionCode = ''; + else + $this.versionCode = versionCode; + if (0 === (seen1 & 32)) + $this.list = emptyList(); + else + $this.list = list; + if (0 === (seen1 & 64)) + $this.shareUri = ''; + else + $this.shareUri = shareUri; + if (0 === (seen1 & 128)) + $this.bindNotice = 0; + else + $this.bindNotice = bindNotice; + if (0 === (seen1 & 256)) + $this.updateToast = ''; + else + $this.updateToast = updateToast; + if (0 === (seen1 & 512)) + $this.campusId = new Long(0, 0); + else + $this.campusId = campusId; + if (0 === (seen1 & 1024)) + $this.openProgress = null; + else + $this.openProgress = openProgress; + return $this; + } + } + class Companion_894 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.CampusFeatureProgress'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_881(); + } + } + class $serializer_881 { + constructor() { + $serializer_instance_881 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KCampusFeatureProgress', this, 5); + tmp0_serialDesc.addElement_5pzumi_k$('progressFull', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('progressAchieved', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('descTitle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('desc1', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('btn', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_837())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = new Long(0, 0); + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp9_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_837(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + } else + while (tmp1_flag) { + tmp2_index = tmp9_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_837(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp9_input.endStructure_1xqz0n_k$(tmp0_desc); + return KCampusFeatureProgress.new_com_bapis_bilibili_app_dynamic_v2_KCampusFeatureProgress_sxg9tv_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); + } + serialize_lxg4i0_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.progressFull.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.progressFull); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.progressAchieved.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.progressAchieved); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.descTitle === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.descTitle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.desc1 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.desc1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.btn == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, $serializer_getInstance_837(), value.btn); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_lxg4i0_k$(encoder, value instanceof KCampusFeatureProgress ? value : THROW_CCE()); + } + } + class KCampusFeatureProgress { + constructor(progressFull, progressAchieved, descTitle, desc1, btn) { + Companion_instance_894; + progressFull = progressFull === VOID ? new Long(0, 0) : progressFull; + progressAchieved = progressAchieved === VOID ? new Long(0, 0) : progressAchieved; + descTitle = descTitle === VOID ? '' : descTitle; + desc1 = desc1 === VOID ? '' : desc1; + btn = btn === VOID ? null : btn; + this.progressFull = progressFull; + this.progressAchieved = progressAchieved; + this.descTitle = descTitle; + this.desc1 = desc1; + this.btn = btn; + } + get_progressFull_gek7fp_k$() { + return this.progressFull; + } + get_progressAchieved_5ybex_k$() { + return this.progressAchieved; + } + get_descTitle_wv0ota_k$() { + return this.descTitle; + } + get_desc1_iq7sev_k$() { + return this.desc1; + } + get_btn_18j8jx_k$() { + return this.btn; + } + component1_7eebsc_k$() { + return this.progressFull; + } + component2_7eebsb_k$() { + return this.progressAchieved; + } + component3_7eebsa_k$() { + return this.descTitle; + } + component4_7eebs9_k$() { + return this.desc1; + } + component5_7eebs8_k$() { + return this.btn; + } + copy_t7i66k_k$(progressFull, progressAchieved, descTitle, desc1, btn) { + return new KCampusFeatureProgress(progressFull, progressAchieved, descTitle, desc1, btn); + } + copy(progressFull, progressAchieved, descTitle, desc1, btn, $super) { + progressFull = progressFull === VOID ? this.progressFull : progressFull; + progressAchieved = progressAchieved === VOID ? this.progressAchieved : progressAchieved; + descTitle = descTitle === VOID ? this.descTitle : descTitle; + desc1 = desc1 === VOID ? this.desc1 : desc1; + btn = btn === VOID ? this.btn : btn; + return this.copy_t7i66k_k$(progressFull, progressAchieved, descTitle, desc1, btn); + } + toString() { + return 'KCampusFeatureProgress(progressFull=' + this.progressFull.toString() + ', progressAchieved=' + this.progressAchieved.toString() + ', descTitle=' + this.descTitle + ', desc1=' + this.desc1 + ', btn=' + this.btn + ')'; + } + hashCode() { + var result = this.progressFull.hashCode(); + result = imul(result, 31) + this.progressAchieved.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.descTitle) | 0; + result = imul(result, 31) + getStringHashCode(this.desc1) | 0; + result = imul(result, 31) + (this.btn == null ? 0 : this.btn.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KCampusFeatureProgress)) + return false; + var tmp0_other_with_cast = other instanceof KCampusFeatureProgress ? other : THROW_CCE(); + if (!this.progressFull.equals(tmp0_other_with_cast.progressFull)) + return false; + if (!this.progressAchieved.equals(tmp0_other_with_cast.progressAchieved)) + return false; + if (!(this.descTitle === tmp0_other_with_cast.descTitle)) + return false; + if (!(this.desc1 === tmp0_other_with_cast.desc1)) + return false; + if (!equals(this.btn, tmp0_other_with_cast.btn)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KCampusFeatureProgress_sxg9tv_k$(seen1, progressFull, progressAchieved, descTitle, desc1, btn, serializationConstructorMarker) { + Companion_instance_894; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_881().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.progressFull = new Long(0, 0); + else + $this.progressFull = progressFull; + if (0 === (seen1 & 2)) + $this.progressAchieved = new Long(0, 0); + else + $this.progressAchieved = progressAchieved; + if (0 === (seen1 & 4)) + $this.descTitle = ''; + else + $this.descTitle = descTitle; + if (0 === (seen1 & 8)) + $this.desc1 = ''; + else + $this.desc1 = desc1; + if (0 === (seen1 & 16)) + $this.btn = null; + else + $this.btn = btn; + return $this; + } + } + class Companion_895 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.CampusTopicRcmdFeedReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_882(); + } + } + class $serializer_882 { + constructor() { + $serializer_instance_882 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KCampusTopicRcmdFeedReq', this, 5); + tmp0_serialDesc.addElement_5pzumi_k$('campusId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('offset', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('playerArgs', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('localTime', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('fromType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_152()), IntSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = 0; + var tmp8_local4 = 0; + var tmp9_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp9_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_152(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + } else + while (tmp1_flag) { + tmp2_index = tmp9_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_152(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp9_input.endStructure_1xqz0n_k$(tmp0_desc); + return KCampusTopicRcmdFeedReq.new_com_bapis_bilibili_app_dynamic_v2_KCampusTopicRcmdFeedReq_a5ba42_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); + } + serialize_vgmgte_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.campusId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.campusId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.offset === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.offset); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.playerArgs == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_152(), value.playerArgs); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.localTime === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 3, value.localTime); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.fromType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 4, value.fromType); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_vgmgte_k$(encoder, value instanceof KCampusTopicRcmdFeedReq ? value : THROW_CCE()); + } + } + class KCampusTopicRcmdFeedReq { + constructor(campusId, offset, playerArgs, localTime, fromType) { + Companion_instance_895; + campusId = campusId === VOID ? new Long(0, 0) : campusId; + offset = offset === VOID ? '' : offset; + playerArgs = playerArgs === VOID ? null : playerArgs; + localTime = localTime === VOID ? 0 : localTime; + fromType = fromType === VOID ? 0 : fromType; + this.campusId = campusId; + this.offset = offset; + this.playerArgs = playerArgs; + this.localTime = localTime; + this.fromType = fromType; + } + get_campusId_y3vqhp_k$() { + return this.campusId; + } + get_offset_hjmqak_k$() { + return this.offset; + } + get_playerArgs_eh86hz_k$() { + return this.playerArgs; + } + get_localTime_bf0zwx_k$() { + return this.localTime; + } + get_fromType_in58el_k$() { + return this.fromType; + } + fromTypeEnum() { + return Companion_getInstance_746().fromValue(this.fromType); + } + component1_7eebsc_k$() { + return this.campusId; + } + component2_7eebsb_k$() { + return this.offset; + } + component3_7eebsa_k$() { + return this.playerArgs; + } + component4_7eebs9_k$() { + return this.localTime; + } + component5_7eebs8_k$() { + return this.fromType; + } + copy_hgwcr6_k$(campusId, offset, playerArgs, localTime, fromType) { + return new KCampusTopicRcmdFeedReq(campusId, offset, playerArgs, localTime, fromType); + } + copy(campusId, offset, playerArgs, localTime, fromType, $super) { + campusId = campusId === VOID ? this.campusId : campusId; + offset = offset === VOID ? this.offset : offset; + playerArgs = playerArgs === VOID ? this.playerArgs : playerArgs; + localTime = localTime === VOID ? this.localTime : localTime; + fromType = fromType === VOID ? this.fromType : fromType; + return this.copy_hgwcr6_k$(campusId, offset, playerArgs, localTime, fromType); + } + toString() { + return 'KCampusTopicRcmdFeedReq(campusId=' + this.campusId.toString() + ', offset=' + this.offset + ', playerArgs=' + this.playerArgs + ', localTime=' + this.localTime + ', fromType=' + this.fromType + ')'; + } + hashCode() { + var result = this.campusId.hashCode(); + result = imul(result, 31) + getStringHashCode(this.offset) | 0; + result = imul(result, 31) + (this.playerArgs == null ? 0 : this.playerArgs.hashCode()) | 0; + result = imul(result, 31) + this.localTime | 0; + result = imul(result, 31) + this.fromType | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KCampusTopicRcmdFeedReq)) + return false; + var tmp0_other_with_cast = other instanceof KCampusTopicRcmdFeedReq ? other : THROW_CCE(); + if (!this.campusId.equals(tmp0_other_with_cast.campusId)) + return false; + if (!(this.offset === tmp0_other_with_cast.offset)) + return false; + if (!equals(this.playerArgs, tmp0_other_with_cast.playerArgs)) + return false; + if (!(this.localTime === tmp0_other_with_cast.localTime)) + return false; + if (!(this.fromType === tmp0_other_with_cast.fromType)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KCampusTopicRcmdFeedReq_a5ba42_k$(seen1, campusId, offset, playerArgs, localTime, fromType, serializationConstructorMarker) { + Companion_instance_895; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_882().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.campusId = new Long(0, 0); + else + $this.campusId = campusId; + if (0 === (seen1 & 2)) + $this.offset = ''; + else + $this.offset = offset; + if (0 === (seen1 & 4)) + $this.playerArgs = null; + else + $this.playerArgs = playerArgs; + if (0 === (seen1 & 8)) + $this.localTime = 0; + else + $this.localTime = localTime; + if (0 === (seen1 & 16)) + $this.fromType = 0; + else + $this.fromType = fromType; + return $this; + } + } + class Companion_896 { + constructor() { + Companion_instance_896 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer($serializer_getInstance_942()), null, null, null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.CampusTopicRcmdFeedReply'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_883(); + } + } + class $serializer_883 { + constructor() { + $serializer_instance_883 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KCampusTopicRcmdFeedReply', this, 5); + tmp0_serialDesc.addElement_5pzumi_k$('list', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('toast', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('hasMore', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('offset', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('joinDiscuss', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_896().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0], StringSerializer_getInstance(), BooleanSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_1100())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = false; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp10_cached = Companion_getInstance_896().$childSerializers_1; + if (tmp9_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp9_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp10_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp9_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_1100(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + } else + while (tmp1_flag) { + tmp2_index = tmp9_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp9_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp10_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp9_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_1100(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp9_input.endStructure_1xqz0n_k$(tmp0_desc); + return KCampusTopicRcmdFeedReply.new_com_bapis_bilibili_app_dynamic_v2_KCampusTopicRcmdFeedReply_l0amik_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); + } + serialize_hb7tsm_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_896().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.list, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.list); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.toast === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.toast); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.hasMore === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 2, value.hasMore); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.offset === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.offset); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.joinDiscuss == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, $serializer_getInstance_1100(), value.joinDiscuss); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_hb7tsm_k$(encoder, value instanceof KCampusTopicRcmdFeedReply ? value : THROW_CCE()); + } + } + class KCampusTopicRcmdFeedReply { + constructor(list, toast, hasMore, offset, joinDiscuss) { + Companion_getInstance_896(); + list = list === VOID ? emptyList() : list; + toast = toast === VOID ? '' : toast; + hasMore = hasMore === VOID ? false : hasMore; + offset = offset === VOID ? '' : offset; + joinDiscuss = joinDiscuss === VOID ? null : joinDiscuss; + this.list = list; + this.toast = toast; + this.hasMore = hasMore; + this.offset = offset; + this.joinDiscuss = joinDiscuss; + } + get_list_wopuqv_k$() { + return this.list; + } + get_toast_iz6iv2_k$() { + return this.toast; + } + get_hasMore_csdhd2_k$() { + return this.hasMore; + } + get_offset_hjmqak_k$() { + return this.offset; + } + get_joinDiscuss_h5hcj_k$() { + return this.joinDiscuss; + } + component1_7eebsc_k$() { + return this.list; + } + component2_7eebsb_k$() { + return this.toast; + } + component3_7eebsa_k$() { + return this.hasMore; + } + component4_7eebs9_k$() { + return this.offset; + } + component5_7eebs8_k$() { + return this.joinDiscuss; + } + copy_w7y47i_k$(list, toast, hasMore, offset, joinDiscuss) { + return new KCampusTopicRcmdFeedReply(list, toast, hasMore, offset, joinDiscuss); + } + copy(list, toast, hasMore, offset, joinDiscuss, $super) { + list = list === VOID ? this.list : list; + toast = toast === VOID ? this.toast : toast; + hasMore = hasMore === VOID ? this.hasMore : hasMore; + offset = offset === VOID ? this.offset : offset; + joinDiscuss = joinDiscuss === VOID ? this.joinDiscuss : joinDiscuss; + return this.copy_w7y47i_k$(list, toast, hasMore, offset, joinDiscuss); + } + toString() { + return 'KCampusTopicRcmdFeedReply(list=' + this.list + ', toast=' + this.toast + ', hasMore=' + this.hasMore + ', offset=' + this.offset + ', joinDiscuss=' + this.joinDiscuss + ')'; + } + hashCode() { + var result = hashCode(this.list); + result = imul(result, 31) + getStringHashCode(this.toast) | 0; + result = imul(result, 31) + getBooleanHashCode(this.hasMore) | 0; + result = imul(result, 31) + getStringHashCode(this.offset) | 0; + result = imul(result, 31) + (this.joinDiscuss == null ? 0 : this.joinDiscuss.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KCampusTopicRcmdFeedReply)) + return false; + var tmp0_other_with_cast = other instanceof KCampusTopicRcmdFeedReply ? other : THROW_CCE(); + if (!equals(this.list, tmp0_other_with_cast.list)) + return false; + if (!(this.toast === tmp0_other_with_cast.toast)) + return false; + if (!(this.hasMore === tmp0_other_with_cast.hasMore)) + return false; + if (!(this.offset === tmp0_other_with_cast.offset)) + return false; + if (!equals(this.joinDiscuss, tmp0_other_with_cast.joinDiscuss)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KCampusTopicRcmdFeedReply_l0amik_k$(seen1, list, toast, hasMore, offset, joinDiscuss, serializationConstructorMarker) { + Companion_getInstance_896(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_883().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.list = emptyList(); + else + $this.list = list; + if (0 === (seen1 & 2)) + $this.toast = ''; + else + $this.toast = toast; + if (0 === (seen1 & 4)) + $this.hasMore = false; + else + $this.hasMore = hasMore; + if (0 === (seen1 & 8)) + $this.offset = ''; + else + $this.offset = offset; + if (0 === (seen1 & 16)) + $this.joinDiscuss = null; + else + $this.joinDiscuss = joinDiscuss; + return $this; + } + } + class Companion_897 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.UnfollowMatchReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_884(); + } + } + class $serializer_884 { + constructor() { + $serializer_instance_884 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KUnfollowMatchReq', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('cid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KUnfollowMatchReq.new_com_bapis_bilibili_app_dynamic_v2_KUnfollowMatchReq_dzxvgb_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_ef1itj_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.cid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.cid); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_ef1itj_k$(encoder, value instanceof KUnfollowMatchReq ? value : THROW_CCE()); + } + } + class KUnfollowMatchReq { + constructor(cid) { + Companion_instance_897; + cid = cid === VOID ? new Long(0, 0) : cid; + this.cid = cid; + } + get_cid_18j82z_k$() { + return this.cid; + } + component1_7eebsc_k$() { + return this.cid; + } + copy_5ymysz_k$(cid) { + return new KUnfollowMatchReq(cid); + } + copy(cid, $super) { + cid = cid === VOID ? this.cid : cid; + return this.copy_5ymysz_k$(cid); + } + toString() { + return 'KUnfollowMatchReq(cid=' + this.cid.toString() + ')'; + } + hashCode() { + return this.cid.hashCode(); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KUnfollowMatchReq)) + return false; + var tmp0_other_with_cast = other instanceof KUnfollowMatchReq ? other : THROW_CCE(); + if (!this.cid.equals(tmp0_other_with_cast.cid)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KUnfollowMatchReq_dzxvgb_k$(seen1, cid, serializationConstructorMarker) { + Companion_instance_897; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_884().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.cid = new Long(0, 0); + else + $this.cid = cid; + return $this; + } + } + class Companion_898 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.FetchTabSettingReply'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_885(); + } + } + class $serializer_885 { + constructor() { + $serializer_instance_885 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KFetchTabSettingReply', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('status', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KFetchTabSettingReply.new_com_bapis_bilibili_app_dynamic_v2_KFetchTabSettingReply_o77wkr_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_iyqt11_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.status === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.status); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_iyqt11_k$(encoder, value instanceof KFetchTabSettingReply ? value : THROW_CCE()); + } + } + class KFetchTabSettingReply { + constructor(status) { + Companion_instance_898; + status = status === VOID ? 0 : status; + this.status = status; + } + get_status_jnf6d7_k$() { + return this.status; + } + statusEnum() { + return Companion_getInstance_744().fromValue(this.status); + } + component1_7eebsc_k$() { + return this.status; + } + copy_ns6qmb_k$(status) { + return new KFetchTabSettingReply(status); + } + copy(status, $super) { + status = status === VOID ? this.status : status; + return this.copy_ns6qmb_k$(status); + } + toString() { + return 'KFetchTabSettingReply(status=' + this.status + ')'; + } + hashCode() { + return this.status; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KFetchTabSettingReply)) + return false; + var tmp0_other_with_cast = other instanceof KFetchTabSettingReply ? other : THROW_CCE(); + if (!(this.status === tmp0_other_with_cast.status)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KFetchTabSettingReply_o77wkr_k$(seen1, status, serializationConstructorMarker) { + Companion_instance_898; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_885().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.status = 0; + else + $this.status = status; + return $this; + } + } + class Companion_899 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.UpdateTabSettingReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_886(); + } + } + class $serializer_886 { + constructor() { + $serializer_instance_886 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KUpdateTabSettingReq', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('status', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KUpdateTabSettingReq.new_com_bapis_bilibili_app_dynamic_v2_KUpdateTabSettingReq_6195y6_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_d2k666_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.status === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.status); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_d2k666_k$(encoder, value instanceof KUpdateTabSettingReq ? value : THROW_CCE()); + } + } + class KUpdateTabSettingReq { + constructor(status) { + Companion_instance_899; + status = status === VOID ? 0 : status; + this.status = status; + } + get_status_jnf6d7_k$() { + return this.status; + } + statusEnum() { + return Companion_getInstance_744().fromValue(this.status); + } + component1_7eebsc_k$() { + return this.status; + } + copy_ns6qmb_k$(status) { + return new KUpdateTabSettingReq(status); + } + copy(status, $super) { + status = status === VOID ? this.status : status; + return this.copy_ns6qmb_k$(status); + } + toString() { + return 'KUpdateTabSettingReq(status=' + this.status + ')'; + } + hashCode() { + return this.status; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KUpdateTabSettingReq)) + return false; + var tmp0_other_with_cast = other instanceof KUpdateTabSettingReq ? other : THROW_CCE(); + if (!(this.status === tmp0_other_with_cast.status)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KUpdateTabSettingReq_6195y6_k$(seen1, status, serializationConstructorMarker) { + Companion_instance_899; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_886().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.status = 0; + else + $this.status = status; + return $this; + } + } + class Companion_900 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.CampusSquareReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_887(); + } + } + class $serializer_887 { + constructor() { + $serializer_instance_887 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KCampusSquareReq', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('campusId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('lat', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('lng', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), DoubleSerializer_getInstance(), DoubleSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = 0.0; + var tmp6_local2 = 0.0; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeDoubleElement_isei84_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeDoubleElement_isei84_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeDoubleElement_isei84_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeDoubleElement_isei84_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KCampusSquareReq.new_com_bapis_bilibili_app_dynamic_v2_KCampusSquareReq_mg7gr0_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_alq2di_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.campusId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.campusId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !equals(value.lat, 0.0)) { + tmp1_output.encodeDoubleElement_a6rqhe_k$(tmp0_desc, 1, value.lat); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !equals(value.lng, 0.0)) { + tmp1_output.encodeDoubleElement_a6rqhe_k$(tmp0_desc, 2, value.lng); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_alq2di_k$(encoder, value instanceof KCampusSquareReq ? value : THROW_CCE()); + } + } + class KCampusSquareReq { + constructor(campusId, lat, lng) { + Companion_instance_900; + campusId = campusId === VOID ? new Long(0, 0) : campusId; + lat = lat === VOID ? 0.0 : lat; + lng = lng === VOID ? 0.0 : lng; + this.campusId = campusId; + this.lat = lat; + this.lng = lng; + } + get_campusId_y3vqhp_k$() { + return this.campusId; + } + get_lat_18j1l6_k$() { + return this.lat; + } + get_lng_18j1ac_k$() { + return this.lng; + } + component1_7eebsc_k$() { + return this.campusId; + } + component2_7eebsb_k$() { + return this.lat; + } + component3_7eebsa_k$() { + return this.lng; + } + copy_jo7sjx_k$(campusId, lat, lng) { + return new KCampusSquareReq(campusId, lat, lng); + } + copy(campusId, lat, lng, $super) { + campusId = campusId === VOID ? this.campusId : campusId; + lat = lat === VOID ? this.lat : lat; + lng = lng === VOID ? this.lng : lng; + return this.copy_jo7sjx_k$(campusId, lat, lng); + } + toString() { + return 'KCampusSquareReq(campusId=' + this.campusId.toString() + ', lat=' + this.lat + ', lng=' + this.lng + ')'; + } + hashCode() { + var result = this.campusId.hashCode(); + result = imul(result, 31) + getNumberHashCode(this.lat) | 0; + result = imul(result, 31) + getNumberHashCode(this.lng) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KCampusSquareReq)) + return false; + var tmp0_other_with_cast = other instanceof KCampusSquareReq ? other : THROW_CCE(); + if (!this.campusId.equals(tmp0_other_with_cast.campusId)) + return false; + if (!equals(this.lat, tmp0_other_with_cast.lat)) + return false; + if (!equals(this.lng, tmp0_other_with_cast.lng)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KCampusSquareReq_mg7gr0_k$(seen1, campusId, lat, lng, serializationConstructorMarker) { + Companion_instance_900; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_887().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.campusId = new Long(0, 0); + else + $this.campusId = campusId; + if (0 === (seen1 & 2)) + $this.lat = 0.0; + else + $this.lat = lat; + if (0 === (seen1 & 4)) + $this.lng = 0.0; + else + $this.lng = lng; + return $this; + } + } + class Companion_901 { + constructor() { + Companion_instance_901 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, new ArrayListSerializer($serializer_getInstance_889()), null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.CampusSquareReply'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_888(); + } + } + class $serializer_888 { + constructor() { + $serializer_instance_888 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KCampusSquareReply', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('list', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('button', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_901().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), tmp0_cached[1], get_nullable($serializer_getInstance_837())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp8_cached = Companion_getInstance_901().$childSerializers_1; + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp8_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_837(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp8_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_837(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KCampusSquareReply.new_com_bapis_bilibili_app_dynamic_v2_KCampusSquareReply_ez9aof_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_97qqum_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_901().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !equals(value.list, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 1, tmp2_cached[1], value.list); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.button == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_837(), value.button); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_97qqum_k$(encoder, value instanceof KCampusSquareReply ? value : THROW_CCE()); + } + } + class KCampusSquareReply { + constructor(title, list, button) { + Companion_getInstance_901(); + title = title === VOID ? '' : title; + list = list === VOID ? emptyList() : list; + button = button === VOID ? null : button; + this.title = title; + this.list = list; + this.button = button; + } + get_title_iz32un_k$() { + return this.title; + } + get_list_wopuqv_k$() { + return this.list; + } + get_button_bmjiuz_k$() { + return this.button; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.list; + } + component3_7eebsa_k$() { + return this.button; + } + copy_j0sou8_k$(title, list, button) { + return new KCampusSquareReply(title, list, button); + } + copy(title, list, button, $super) { + title = title === VOID ? this.title : title; + list = list === VOID ? this.list : list; + button = button === VOID ? this.button : button; + return this.copy_j0sou8_k$(title, list, button); + } + toString() { + return 'KCampusSquareReply(title=' + this.title + ', list=' + this.list + ', button=' + this.button + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + hashCode(this.list) | 0; + result = imul(result, 31) + (this.button == null ? 0 : this.button.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KCampusSquareReply)) + return false; + var tmp0_other_with_cast = other instanceof KCampusSquareReply ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!equals(this.list, tmp0_other_with_cast.list)) + return false; + if (!equals(this.button, tmp0_other_with_cast.button)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KCampusSquareReply_ez9aof_k$(seen1, title, list, button, serializationConstructorMarker) { + Companion_getInstance_901(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_888().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.list = emptyList(); + else + $this.list = list; + if (0 === (seen1 & 4)) + $this.button = null; + else + $this.button = button; + return $this; + } + } + class Companion_902 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.RcmdCampusBrief'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_889(); + } + } + class $serializer_889 { + constructor() { + $serializer_instance_889 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KRcmdCampusBrief', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('campusId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('campusName', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('campusBadge', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('url', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KRcmdCampusBrief.new_com_bapis_bilibili_app_dynamic_v2_KRcmdCampusBrief_u3jkq6_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_4g5qyx_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.campusId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.campusId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.campusName === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.campusName); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.campusBadge === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.campusBadge); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.url === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.url); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_4g5qyx_k$(encoder, value instanceof KRcmdCampusBrief ? value : THROW_CCE()); + } + } + class KRcmdCampusBrief { + constructor(campusId, campusName, campusBadge, url) { + Companion_instance_902; + campusId = campusId === VOID ? new Long(0, 0) : campusId; + campusName = campusName === VOID ? '' : campusName; + campusBadge = campusBadge === VOID ? '' : campusBadge; + url = url === VOID ? '' : url; + this.campusId = campusId; + this.campusName = campusName; + this.campusBadge = campusBadge; + this.url = url; + } + get_campusId_y3vqhp_k$() { + return this.campusId; + } + get_campusName_wd5obx_k$() { + return this.campusName; + } + get_campusBadge_92ww9x_k$() { + return this.campusBadge; + } + get_url_18iuii_k$() { + return this.url; + } + component1_7eebsc_k$() { + return this.campusId; + } + component2_7eebsb_k$() { + return this.campusName; + } + component3_7eebsa_k$() { + return this.campusBadge; + } + component4_7eebs9_k$() { + return this.url; + } + copy_kwys9l_k$(campusId, campusName, campusBadge, url) { + return new KRcmdCampusBrief(campusId, campusName, campusBadge, url); + } + copy(campusId, campusName, campusBadge, url, $super) { + campusId = campusId === VOID ? this.campusId : campusId; + campusName = campusName === VOID ? this.campusName : campusName; + campusBadge = campusBadge === VOID ? this.campusBadge : campusBadge; + url = url === VOID ? this.url : url; + return this.copy_kwys9l_k$(campusId, campusName, campusBadge, url); + } + toString() { + return 'KRcmdCampusBrief(campusId=' + this.campusId.toString() + ', campusName=' + this.campusName + ', campusBadge=' + this.campusBadge + ', url=' + this.url + ')'; + } + hashCode() { + var result = this.campusId.hashCode(); + result = imul(result, 31) + getStringHashCode(this.campusName) | 0; + result = imul(result, 31) + getStringHashCode(this.campusBadge) | 0; + result = imul(result, 31) + getStringHashCode(this.url) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KRcmdCampusBrief)) + return false; + var tmp0_other_with_cast = other instanceof KRcmdCampusBrief ? other : THROW_CCE(); + if (!this.campusId.equals(tmp0_other_with_cast.campusId)) + return false; + if (!(this.campusName === tmp0_other_with_cast.campusName)) + return false; + if (!(this.campusBadge === tmp0_other_with_cast.campusBadge)) + return false; + if (!(this.url === tmp0_other_with_cast.url)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KRcmdCampusBrief_u3jkq6_k$(seen1, campusId, campusName, campusBadge, url, serializationConstructorMarker) { + Companion_instance_902; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_889().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.campusId = new Long(0, 0); + else + $this.campusId = campusId; + if (0 === (seen1 & 2)) + $this.campusName = ''; + else + $this.campusName = campusName; + if (0 === (seen1 & 4)) + $this.campusBadge = ''; + else + $this.campusBadge = campusBadge; + if (0 === (seen1 & 8)) + $this.url = ''; + else + $this.url = url; + return $this; + } + } + class Companion_903 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.CampusRecommendReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_890(); + } + } + class $serializer_890 { + constructor() { + $serializer_instance_890 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KCampusRecommendReq', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('campusId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('pageNo', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('playerArgs', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('from', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable($serializer_getInstance_152()), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = new Long(0, 0); + var tmp6_local2 = null; + var tmp7_local3 = 0; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_152(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_152(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KCampusRecommendReq.new_com_bapis_bilibili_app_dynamic_v2_KCampusRecommendReq_501csi_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_8ckq6h_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.campusId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.campusId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.pageNo.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.pageNo); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.playerArgs == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_152(), value.playerArgs); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.from === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 3, value.from); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_8ckq6h_k$(encoder, value instanceof KCampusRecommendReq ? value : THROW_CCE()); + } + } + class KCampusRecommendReq { + constructor(campusId, pageNo, playerArgs, from) { + Companion_instance_903; + campusId = campusId === VOID ? new Long(0, 0) : campusId; + pageNo = pageNo === VOID ? new Long(0, 0) : pageNo; + playerArgs = playerArgs === VOID ? null : playerArgs; + from = from === VOID ? 0 : from; + this.campusId = campusId; + this.pageNo = pageNo; + this.playerArgs = playerArgs; + this.from = from; + } + get_campusId_y3vqhp_k$() { + return this.campusId; + } + get_pageNo_hxxprt_k$() { + return this.pageNo; + } + get_playerArgs_eh86hz_k$() { + return this.playerArgs; + } + get_from_wom7eb_k$() { + return this.from; + } + fromEnum() { + return Companion_getInstance_747().fromValue(this.from); + } + component1_7eebsc_k$() { + return this.campusId; + } + component2_7eebsb_k$() { + return this.pageNo; + } + component3_7eebsa_k$() { + return this.playerArgs; + } + component4_7eebs9_k$() { + return this.from; + } + copy_gi6aes_k$(campusId, pageNo, playerArgs, from) { + return new KCampusRecommendReq(campusId, pageNo, playerArgs, from); + } + copy(campusId, pageNo, playerArgs, from, $super) { + campusId = campusId === VOID ? this.campusId : campusId; + pageNo = pageNo === VOID ? this.pageNo : pageNo; + playerArgs = playerArgs === VOID ? this.playerArgs : playerArgs; + from = from === VOID ? this.from : from; + return this.copy_gi6aes_k$(campusId, pageNo, playerArgs, from); + } + toString() { + return 'KCampusRecommendReq(campusId=' + this.campusId.toString() + ', pageNo=' + this.pageNo.toString() + ', playerArgs=' + this.playerArgs + ', from=' + this.from + ')'; + } + hashCode() { + var result = this.campusId.hashCode(); + result = imul(result, 31) + this.pageNo.hashCode() | 0; + result = imul(result, 31) + (this.playerArgs == null ? 0 : this.playerArgs.hashCode()) | 0; + result = imul(result, 31) + this.from | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KCampusRecommendReq)) + return false; + var tmp0_other_with_cast = other instanceof KCampusRecommendReq ? other : THROW_CCE(); + if (!this.campusId.equals(tmp0_other_with_cast.campusId)) + return false; + if (!this.pageNo.equals(tmp0_other_with_cast.pageNo)) + return false; + if (!equals(this.playerArgs, tmp0_other_with_cast.playerArgs)) + return false; + if (!(this.from === tmp0_other_with_cast.from)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KCampusRecommendReq_501csi_k$(seen1, campusId, pageNo, playerArgs, from, serializationConstructorMarker) { + Companion_instance_903; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_890().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.campusId = new Long(0, 0); + else + $this.campusId = campusId; + if (0 === (seen1 & 2)) + $this.pageNo = new Long(0, 0); + else + $this.pageNo = pageNo; + if (0 === (seen1 & 4)) + $this.playerArgs = null; + else + $this.playerArgs = playerArgs; + if (0 === (seen1 & 8)) + $this.from = 0; + else + $this.from = from; + return $this; + } + } + class Companion_904 { + constructor() { + Companion_instance_904 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer($serializer_getInstance_810()), null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.CampusRecommendReply'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_891(); + } + } + class $serializer_891 { + constructor() { + $serializer_instance_891 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KCampusRecommendReply', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('items', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('hasMore', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_904().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0], BooleanSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = false; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp7_cached = Companion_getInstance_904().$childSerializers_1; + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp7_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp7_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KCampusRecommendReply.new_com_bapis_bilibili_app_dynamic_v2_KCampusRecommendReply_8u7qcv_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_w433nn_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_904().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.items, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.items); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.hasMore === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 1, value.hasMore); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_w433nn_k$(encoder, value instanceof KCampusRecommendReply ? value : THROW_CCE()); + } + } + class KCampusRecommendReply { + constructor(items, hasMore) { + Companion_getInstance_904(); + items = items === VOID ? emptyList() : items; + hasMore = hasMore === VOID ? false : hasMore; + this.items = items; + this.hasMore = hasMore; + } + get_items_it823b_k$() { + return this.items; + } + get_hasMore_csdhd2_k$() { + return this.hasMore; + } + component1_7eebsc_k$() { + return this.items; + } + component2_7eebsb_k$() { + return this.hasMore; + } + copy_gy24cm_k$(items, hasMore) { + return new KCampusRecommendReply(items, hasMore); + } + copy(items, hasMore, $super) { + items = items === VOID ? this.items : items; + hasMore = hasMore === VOID ? this.hasMore : hasMore; + return this.copy_gy24cm_k$(items, hasMore); + } + toString() { + return 'KCampusRecommendReply(items=' + this.items + ', hasMore=' + this.hasMore + ')'; + } + hashCode() { + var result = hashCode(this.items); + result = imul(result, 31) + getBooleanHashCode(this.hasMore) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KCampusRecommendReply)) + return false; + var tmp0_other_with_cast = other instanceof KCampusRecommendReply ? other : THROW_CCE(); + if (!equals(this.items, tmp0_other_with_cast.items)) + return false; + if (!(this.hasMore === tmp0_other_with_cast.hasMore)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KCampusRecommendReply_8u7qcv_k$(seen1, items, hasMore, serializationConstructorMarker) { + Companion_getInstance_904(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_891().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.items = emptyList(); + else + $this.items = items; + if (0 === (seen1 & 2)) + $this.hasMore = false; + else + $this.hasMore = hasMore; + return $this; + } + } + class Companion_905 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.CampusHomePagesReply'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_892(); + } + } + class $serializer_892 { + constructor() { + $serializer_instance_892 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KCampusHomePagesReply', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('top', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('campusTop', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('pageType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_833()), get_nullable($serializer_getInstance_825()), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = 0; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_833(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_825(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_833(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_825(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KCampusHomePagesReply.new_com_bapis_bilibili_app_dynamic_v2_KCampusHomePagesReply_rbvrks_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_9xbtne_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.top == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_833(), value.top); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.campusTop == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_825(), value.campusTop); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.pageType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.pageType); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_9xbtne_k$(encoder, value instanceof KCampusHomePagesReply ? value : THROW_CCE()); + } + } + class KCampusHomePagesReply { + constructor(top, campusTop, pageType) { + Companion_instance_905; + top = top === VOID ? null : top; + campusTop = campusTop === VOID ? null : campusTop; + pageType = pageType === VOID ? 0 : pageType; + this.top = top; + this.campusTop = campusTop; + this.pageType = pageType; + } + get_top_18ivbo_k$() { + return this.top; + } + get_campusTop_84d8wd_k$() { + return this.campusTop; + } + get_pageType_hl88ni_k$() { + return this.pageType; + } + component1_7eebsc_k$() { + return this.top; + } + component2_7eebsb_k$() { + return this.campusTop; + } + component3_7eebsa_k$() { + return this.pageType; + } + copy_4fzjmj_k$(top, campusTop, pageType) { + return new KCampusHomePagesReply(top, campusTop, pageType); + } + copy(top, campusTop, pageType, $super) { + top = top === VOID ? this.top : top; + campusTop = campusTop === VOID ? this.campusTop : campusTop; + pageType = pageType === VOID ? this.pageType : pageType; + return this.copy_4fzjmj_k$(top, campusTop, pageType); + } + toString() { + return 'KCampusHomePagesReply(top=' + this.top + ', campusTop=' + this.campusTop + ', pageType=' + this.pageType + ')'; + } + hashCode() { + var result = this.top == null ? 0 : this.top.hashCode(); + result = imul(result, 31) + (this.campusTop == null ? 0 : this.campusTop.hashCode()) | 0; + result = imul(result, 31) + this.pageType | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KCampusHomePagesReply)) + return false; + var tmp0_other_with_cast = other instanceof KCampusHomePagesReply ? other : THROW_CCE(); + if (!equals(this.top, tmp0_other_with_cast.top)) + return false; + if (!equals(this.campusTop, tmp0_other_with_cast.campusTop)) + return false; + if (!(this.pageType === tmp0_other_with_cast.pageType)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KCampusHomePagesReply_rbvrks_k$(seen1, top, campusTop, pageType, serializationConstructorMarker) { + Companion_instance_905; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_892().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.top = null; + else + $this.top = top; + if (0 === (seen1 & 2)) + $this.campusTop = null; + else + $this.campusTop = campusTop; + if (0 === (seen1 & 4)) + $this.pageType = 0; + else + $this.pageType = pageType; + return $this; + } + } + class Companion_906 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.CampusHomePagesReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_893(); + } + } + class $serializer_893 { + constructor() { + $serializer_instance_893 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KCampusHomePagesReq', this, 6); + tmp0_serialDesc.addElement_5pzumi_k$('campusId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('campusName', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('lat', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('lng', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('playerArgs', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('pageType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance(), DoubleSerializer_getInstance(), DoubleSerializer_getInstance(), get_nullable($serializer_getInstance_152()), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_local2 = 0.0; + var tmp7_local3 = 0.0; + var tmp8_local4 = null; + var tmp9_local5 = 0; + var tmp10_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp10_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp10_input.decodeDoubleElement_isei84_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp10_input.decodeDoubleElement_isei84_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_152(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + } else + while (tmp1_flag) { + tmp2_index = tmp10_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp10_input.decodeDoubleElement_isei84_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp10_input.decodeDoubleElement_isei84_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_152(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp10_input.endStructure_1xqz0n_k$(tmp0_desc); + return KCampusHomePagesReq.new_com_bapis_bilibili_app_dynamic_v2_KCampusHomePagesReq_o87bc2_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); + } + serialize_e4yf5e_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.campusId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.campusId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.campusName === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.campusName); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !equals(value.lat, 0.0)) { + tmp1_output.encodeDoubleElement_a6rqhe_k$(tmp0_desc, 2, value.lat); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !equals(value.lng, 0.0)) { + tmp1_output.encodeDoubleElement_a6rqhe_k$(tmp0_desc, 3, value.lng); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.playerArgs == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, $serializer_getInstance_152(), value.playerArgs); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.pageType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 5, value.pageType); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_e4yf5e_k$(encoder, value instanceof KCampusHomePagesReq ? value : THROW_CCE()); + } + } + class KCampusHomePagesReq { + constructor(campusId, campusName, lat, lng, playerArgs, pageType) { + Companion_instance_906; + campusId = campusId === VOID ? new Long(0, 0) : campusId; + campusName = campusName === VOID ? '' : campusName; + lat = lat === VOID ? 0.0 : lat; + lng = lng === VOID ? 0.0 : lng; + playerArgs = playerArgs === VOID ? null : playerArgs; + pageType = pageType === VOID ? 0 : pageType; + this.campusId = campusId; + this.campusName = campusName; + this.lat = lat; + this.lng = lng; + this.playerArgs = playerArgs; + this.pageType = pageType; + } + get_campusId_y3vqhp_k$() { + return this.campusId; + } + get_campusName_wd5obx_k$() { + return this.campusName; + } + get_lat_18j1l6_k$() { + return this.lat; + } + get_lng_18j1ac_k$() { + return this.lng; + } + get_playerArgs_eh86hz_k$() { + return this.playerArgs; + } + get_pageType_hl88ni_k$() { + return this.pageType; + } + pageTypeEnum() { + return Companion_getInstance_745().fromValue(this.pageType); + } + component1_7eebsc_k$() { + return this.campusId; + } + component2_7eebsb_k$() { + return this.campusName; + } + component3_7eebsa_k$() { + return this.lat; + } + component4_7eebs9_k$() { + return this.lng; + } + component5_7eebs8_k$() { + return this.playerArgs; + } + component6_7eebs7_k$() { + return this.pageType; + } + copy_60dh7a_k$(campusId, campusName, lat, lng, playerArgs, pageType) { + return new KCampusHomePagesReq(campusId, campusName, lat, lng, playerArgs, pageType); + } + copy(campusId, campusName, lat, lng, playerArgs, pageType, $super) { + campusId = campusId === VOID ? this.campusId : campusId; + campusName = campusName === VOID ? this.campusName : campusName; + lat = lat === VOID ? this.lat : lat; + lng = lng === VOID ? this.lng : lng; + playerArgs = playerArgs === VOID ? this.playerArgs : playerArgs; + pageType = pageType === VOID ? this.pageType : pageType; + return this.copy_60dh7a_k$(campusId, campusName, lat, lng, playerArgs, pageType); + } + toString() { + return 'KCampusHomePagesReq(campusId=' + this.campusId.toString() + ', campusName=' + this.campusName + ', lat=' + this.lat + ', lng=' + this.lng + ', playerArgs=' + this.playerArgs + ', pageType=' + this.pageType + ')'; + } + hashCode() { + var result = this.campusId.hashCode(); + result = imul(result, 31) + getStringHashCode(this.campusName) | 0; + result = imul(result, 31) + getNumberHashCode(this.lat) | 0; + result = imul(result, 31) + getNumberHashCode(this.lng) | 0; + result = imul(result, 31) + (this.playerArgs == null ? 0 : this.playerArgs.hashCode()) | 0; + result = imul(result, 31) + this.pageType | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KCampusHomePagesReq)) + return false; + var tmp0_other_with_cast = other instanceof KCampusHomePagesReq ? other : THROW_CCE(); + if (!this.campusId.equals(tmp0_other_with_cast.campusId)) + return false; + if (!(this.campusName === tmp0_other_with_cast.campusName)) + return false; + if (!equals(this.lat, tmp0_other_with_cast.lat)) + return false; + if (!equals(this.lng, tmp0_other_with_cast.lng)) + return false; + if (!equals(this.playerArgs, tmp0_other_with_cast.playerArgs)) + return false; + if (!(this.pageType === tmp0_other_with_cast.pageType)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KCampusHomePagesReq_o87bc2_k$(seen1, campusId, campusName, lat, lng, playerArgs, pageType, serializationConstructorMarker) { + Companion_instance_906; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_893().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.campusId = new Long(0, 0); + else + $this.campusId = campusId; + if (0 === (seen1 & 2)) + $this.campusName = ''; + else + $this.campusName = campusName; + if (0 === (seen1 & 4)) + $this.lat = 0.0; + else + $this.lat = lat; + if (0 === (seen1 & 8)) + $this.lng = 0.0; + else + $this.lng = lng; + if (0 === (seen1 & 16)) + $this.playerArgs = null; + else + $this.playerArgs = playerArgs; + if (0 === (seen1 & 32)) + $this.pageType = 0; + else + $this.pageType = pageType; + return $this; + } + } + class Companion_907 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.CampusEntryTabReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_894(); + } + } + class $serializer_894 { + constructor() { + $serializer_instance_894 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KCampusEntryTabReq', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('campusId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KCampusEntryTabReq.new_com_bapis_bilibili_app_dynamic_v2_KCampusEntryTabReq_iav9qy_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_j0v63k_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.campusId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.campusId); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_j0v63k_k$(encoder, value instanceof KCampusEntryTabReq ? value : THROW_CCE()); + } + } + class KCampusEntryTabReq { + constructor(campusId) { + Companion_instance_907; + campusId = campusId === VOID ? new Long(0, 0) : campusId; + this.campusId = campusId; + } + get_campusId_y3vqhp_k$() { + return this.campusId; + } + component1_7eebsc_k$() { + return this.campusId; + } + copy_5ymysz_k$(campusId) { + return new KCampusEntryTabReq(campusId); + } + copy(campusId, $super) { + campusId = campusId === VOID ? this.campusId : campusId; + return this.copy_5ymysz_k$(campusId); + } + toString() { + return 'KCampusEntryTabReq(campusId=' + this.campusId.toString() + ')'; + } + hashCode() { + return this.campusId.hashCode(); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KCampusEntryTabReq)) + return false; + var tmp0_other_with_cast = other instanceof KCampusEntryTabReq ? other : THROW_CCE(); + if (!this.campusId.equals(tmp0_other_with_cast.campusId)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KCampusEntryTabReq_iav9qy_k$(seen1, campusId, serializationConstructorMarker) { + Companion_instance_907; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_894().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.campusId = new Long(0, 0); + else + $this.campusId = campusId; + return $this; + } + } + class Companion_908 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.CampusEntryTabResp'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_895(); + } + } + class $serializer_895 { + constructor() { + $serializer_instance_895 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KCampusEntryTabResp', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('entryType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KCampusEntryTabResp.new_com_bapis_bilibili_app_dynamic_v2_KCampusEntryTabResp_hjdyeq_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_sdfg8o_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.entryType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.entryType); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_sdfg8o_k$(encoder, value instanceof KCampusEntryTabResp ? value : THROW_CCE()); + } + } + class KCampusEntryTabResp { + constructor(entryType) { + Companion_instance_908; + entryType = entryType === VOID ? 0 : entryType; + this.entryType = entryType; + } + get_entryType_l4eub_k$() { + return this.entryType; + } + entryTypeEnum() { + return Companion_getInstance_748().fromValue(this.entryType); + } + component1_7eebsc_k$() { + return this.entryType; + } + copy_ns6qmb_k$(entryType) { + return new KCampusEntryTabResp(entryType); + } + copy(entryType, $super) { + entryType = entryType === VOID ? this.entryType : entryType; + return this.copy_ns6qmb_k$(entryType); + } + toString() { + return 'KCampusEntryTabResp(entryType=' + this.entryType + ')'; + } + hashCode() { + return this.entryType; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KCampusEntryTabResp)) + return false; + var tmp0_other_with_cast = other instanceof KCampusEntryTabResp ? other : THROW_CCE(); + if (!(this.entryType === tmp0_other_with_cast.entryType)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KCampusEntryTabResp_hjdyeq_k$(seen1, entryType, serializationConstructorMarker) { + Companion_instance_908; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_895().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.entryType = 0; + else + $this.entryType = entryType; + return $this; + } + } + class Companion_909 { + constructor() { + Companion_instance_909 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, new ArrayListSerializer($serializer_getInstance_1099())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.CampusHomeRcmdTopic'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_896(); + } + } + class $serializer_896 { + constructor() { + $serializer_instance_896 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KCampusHomeRcmdTopic', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('topic', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_909().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_1038()), tmp0_cached[1]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp7_cached = Companion_getInstance_909().$childSerializers_1; + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_1038(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_1038(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KCampusHomeRcmdTopic.new_com_bapis_bilibili_app_dynamic_v2_KCampusHomeRcmdTopic_srgy5_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_17q39p_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_909().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_1038(), value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !equals(value.topic, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 1, tmp2_cached[1], value.topic); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_17q39p_k$(encoder, value instanceof KCampusHomeRcmdTopic ? value : THROW_CCE()); + } + } + class KCampusHomeRcmdTopic { + constructor(title, topic) { + Companion_getInstance_909(); + title = title === VOID ? null : title; + topic = topic === VOID ? emptyList() : topic; + this.title = title; + this.topic = topic; + } + get_title_iz32un_k$() { + return this.title; + } + get_topic_iz6tqe_k$() { + return this.topic; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.topic; + } + copy_vmurgy_k$(title, topic) { + return new KCampusHomeRcmdTopic(title, topic); + } + copy(title, topic, $super) { + title = title === VOID ? this.title : title; + topic = topic === VOID ? this.topic : topic; + return this.copy_vmurgy_k$(title, topic); + } + toString() { + return 'KCampusHomeRcmdTopic(title=' + this.title + ', topic=' + this.topic + ')'; + } + hashCode() { + var result = this.title == null ? 0 : this.title.hashCode(); + result = imul(result, 31) + hashCode(this.topic) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KCampusHomeRcmdTopic)) + return false; + var tmp0_other_with_cast = other instanceof KCampusHomeRcmdTopic ? other : THROW_CCE(); + if (!equals(this.title, tmp0_other_with_cast.title)) + return false; + if (!equals(this.topic, tmp0_other_with_cast.topic)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KCampusHomeRcmdTopic_srgy5_k$(seen1, title, topic, serializationConstructorMarker) { + Companion_getInstance_909(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_896().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = null; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.topic = emptyList(); + else + $this.topic = topic; + return $this; + } + } + class Companion_910 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.HomeSubscribeReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_897(); + } + } + class $serializer_897 { + constructor() { + $serializer_instance_897 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KHomeSubscribeReq', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('campusId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('campusName', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KHomeSubscribeReq.new_com_bapis_bilibili_app_dynamic_v2_KHomeSubscribeReq_20sgzg_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_jo8w4p_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.campusId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.campusId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.campusName === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.campusName); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_jo8w4p_k$(encoder, value instanceof KHomeSubscribeReq ? value : THROW_CCE()); + } + } + class KHomeSubscribeReq { + constructor(campusId, campusName) { + Companion_instance_910; + campusId = campusId === VOID ? new Long(0, 0) : campusId; + campusName = campusName === VOID ? '' : campusName; + this.campusId = campusId; + this.campusName = campusName; + } + get_campusId_y3vqhp_k$() { + return this.campusId; + } + get_campusName_wd5obx_k$() { + return this.campusName; + } + component1_7eebsc_k$() { + return this.campusId; + } + component2_7eebsb_k$() { + return this.campusName; + } + copy_ezpntz_k$(campusId, campusName) { + return new KHomeSubscribeReq(campusId, campusName); + } + copy(campusId, campusName, $super) { + campusId = campusId === VOID ? this.campusId : campusId; + campusName = campusName === VOID ? this.campusName : campusName; + return this.copy_ezpntz_k$(campusId, campusName); + } + toString() { + return 'KHomeSubscribeReq(campusId=' + this.campusId.toString() + ', campusName=' + this.campusName + ')'; + } + hashCode() { + var result = this.campusId.hashCode(); + result = imul(result, 31) + getStringHashCode(this.campusName) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KHomeSubscribeReq)) + return false; + var tmp0_other_with_cast = other instanceof KHomeSubscribeReq ? other : THROW_CCE(); + if (!this.campusId.equals(tmp0_other_with_cast.campusId)) + return false; + if (!(this.campusName === tmp0_other_with_cast.campusName)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KHomeSubscribeReq_20sgzg_k$(seen1, campusId, campusName, serializationConstructorMarker) { + Companion_instance_910; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_897().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.campusId = new Long(0, 0); + else + $this.campusId = campusId; + if (0 === (seen1 & 2)) + $this.campusName = ''; + else + $this.campusName = campusName; + return $this; + } + } + class Companion_911 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.HomeSubscribeReply'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_898(); + } + } + class $serializer_898 { + constructor() { + $serializer_instance_898 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KHomeSubscribeReply', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('online', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KHomeSubscribeReply.new_com_bapis_bilibili_app_dynamic_v2_KHomeSubscribeReply_144zi9_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_to16vf_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.online === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.online); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_to16vf_k$(encoder, value instanceof KHomeSubscribeReply ? value : THROW_CCE()); + } + } + class KHomeSubscribeReply { + constructor(online) { + Companion_instance_911; + online = online === VOID ? 0 : online; + this.online = online; + } + get_online_ho4pr0_k$() { + return this.online; + } + onlineEnum() { + return Companion_getInstance_749().fromValue(this.online); + } + component1_7eebsc_k$() { + return this.online; + } + copy_ns6qmb_k$(online) { + return new KHomeSubscribeReply(online); + } + copy(online, $super) { + online = online === VOID ? this.online : online; + return this.copy_ns6qmb_k$(online); + } + toString() { + return 'KHomeSubscribeReply(online=' + this.online + ')'; + } + hashCode() { + return this.online; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KHomeSubscribeReply)) + return false; + var tmp0_other_with_cast = other instanceof KHomeSubscribeReply ? other : THROW_CCE(); + if (!(this.online === tmp0_other_with_cast.online)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KHomeSubscribeReply_144zi9_k$(seen1, online, serializationConstructorMarker) { + Companion_instance_911; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_898().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.online = 0; + else + $this.online = online; + return $this; + } + } + class Companion_912 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.LbsPoiReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_899(); + } + } + class $serializer_899 { + constructor() { + $serializer_instance_899 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KLbsPoiReq', this, 6); + tmp0_serialDesc.addElement_5pzumi_k$('poi', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('offset', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('refreshType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('localTime', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('playerArgs', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), get_nullable($serializer_getInstance_152())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = new Long(0, 0); + var tmp6_local2 = null; + var tmp7_local3 = 0; + var tmp8_local4 = 0; + var tmp9_local5 = null; + var tmp10_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp10_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_152(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + } else + while (tmp1_flag) { + tmp2_index = tmp10_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_152(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp10_input.endStructure_1xqz0n_k$(tmp0_desc); + return KLbsPoiReq.new_com_bapis_bilibili_app_dynamic_v2_KLbsPoiReq_illvzu_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); + } + serialize_x1jgmj_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.poi === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.poi); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.type.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.type); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.offset === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.offset); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.refreshType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 3, value.refreshType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.localTime === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 4, value.localTime); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.playerArgs == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 5, $serializer_getInstance_152(), value.playerArgs); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_x1jgmj_k$(encoder, value instanceof KLbsPoiReq ? value : THROW_CCE()); + } + } + class KLbsPoiReq { + constructor(poi, type, offset, refreshType, localTime, playerArgs) { + Companion_instance_912; + poi = poi === VOID ? '' : poi; + type = type === VOID ? new Long(0, 0) : type; + offset = offset === VOID ? '' : offset; + refreshType = refreshType === VOID ? 0 : refreshType; + localTime = localTime === VOID ? 0 : localTime; + playerArgs = playerArgs === VOID ? null : playerArgs; + this.poi = poi; + this.type = type; + this.offset = offset; + this.refreshType = refreshType; + this.localTime = localTime; + this.playerArgs = playerArgs; + } + get_poi_18iyan_k$() { + return this.poi; + } + get_type_wovaf7_k$() { + return this.type; + } + get_offset_hjmqak_k$() { + return this.offset; + } + get_refreshType_91r450_k$() { + return this.refreshType; + } + get_localTime_bf0zwx_k$() { + return this.localTime; + } + get_playerArgs_eh86hz_k$() { + return this.playerArgs; + } + refreshTypeEnum() { + return Companion_getInstance_731().fromValue(this.refreshType); + } + component1_7eebsc_k$() { + return this.poi; + } + component2_7eebsb_k$() { + return this.type; + } + component3_7eebsa_k$() { + return this.offset; + } + component4_7eebs9_k$() { + return this.refreshType; + } + component5_7eebs8_k$() { + return this.localTime; + } + component6_7eebs7_k$() { + return this.playerArgs; + } + copy_exvfc2_k$(poi, type, offset, refreshType, localTime, playerArgs) { + return new KLbsPoiReq(poi, type, offset, refreshType, localTime, playerArgs); + } + copy(poi, type, offset, refreshType, localTime, playerArgs, $super) { + poi = poi === VOID ? this.poi : poi; + type = type === VOID ? this.type : type; + offset = offset === VOID ? this.offset : offset; + refreshType = refreshType === VOID ? this.refreshType : refreshType; + localTime = localTime === VOID ? this.localTime : localTime; + playerArgs = playerArgs === VOID ? this.playerArgs : playerArgs; + return this.copy_exvfc2_k$(poi, type, offset, refreshType, localTime, playerArgs); + } + toString() { + return 'KLbsPoiReq(poi=' + this.poi + ', type=' + this.type.toString() + ', offset=' + this.offset + ', refreshType=' + this.refreshType + ', localTime=' + this.localTime + ', playerArgs=' + this.playerArgs + ')'; + } + hashCode() { + var result = getStringHashCode(this.poi); + result = imul(result, 31) + this.type.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.offset) | 0; + result = imul(result, 31) + this.refreshType | 0; + result = imul(result, 31) + this.localTime | 0; + result = imul(result, 31) + (this.playerArgs == null ? 0 : this.playerArgs.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KLbsPoiReq)) + return false; + var tmp0_other_with_cast = other instanceof KLbsPoiReq ? other : THROW_CCE(); + if (!(this.poi === tmp0_other_with_cast.poi)) + return false; + if (!this.type.equals(tmp0_other_with_cast.type)) + return false; + if (!(this.offset === tmp0_other_with_cast.offset)) + return false; + if (!(this.refreshType === tmp0_other_with_cast.refreshType)) + return false; + if (!(this.localTime === tmp0_other_with_cast.localTime)) + return false; + if (!equals(this.playerArgs, tmp0_other_with_cast.playerArgs)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KLbsPoiReq_illvzu_k$(seen1, poi, type, offset, refreshType, localTime, playerArgs, serializationConstructorMarker) { + Companion_instance_912; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_899().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.poi = ''; + else + $this.poi = poi; + if (0 === (seen1 & 2)) + $this.type = new Long(0, 0); + else + $this.type = type; + if (0 === (seen1 & 4)) + $this.offset = ''; + else + $this.offset = offset; + if (0 === (seen1 & 8)) + $this.refreshType = 0; + else + $this.refreshType = refreshType; + if (0 === (seen1 & 16)) + $this.localTime = 0; + else + $this.localTime = localTime; + if (0 === (seen1 & 32)) + $this.playerArgs = null; + else + $this.playerArgs = playerArgs; + return $this; + } + } + class Companion_913 { + constructor() { + Companion_instance_913 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, new ArrayListSerializer(StringSerializer_getInstance()), new ArrayListSerializer(StringSerializer_getInstance()), null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.LbsPoiDetail'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_900(); + } + } + class $serializer_900 { + constructor() { + $serializer_instance_900 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KLbsPoiDetail', this, 6); + tmp0_serialDesc.addElement_5pzumi_k$('poi', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('basePic', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('address', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_913().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), LongSerializer_getInstance(), tmp0_cached[2], tmp0_cached[3], StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = new Long(0, 0); + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp11_cached = Companion_getInstance_913().$childSerializers_1; + if (tmp10_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp10_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp11_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp10_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 3, tmp11_cached[3], tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + } else + while (tmp1_flag) { + tmp2_index = tmp10_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp10_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp11_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp10_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 3, tmp11_cached[3], tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp10_input.endStructure_1xqz0n_k$(tmp0_desc); + return KLbsPoiDetail.new_com_bapis_bilibili_app_dynamic_v2_KLbsPoiDetail_fvwn85_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); + } + serialize_yxw224_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_913().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.poi === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.poi); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.type.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.type); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !equals(value.basePic, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 2, tmp2_cached[2], value.basePic); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !equals(value.cover, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 3, tmp2_cached[3], value.cover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.address === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.address); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.title); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_yxw224_k$(encoder, value instanceof KLbsPoiDetail ? value : THROW_CCE()); + } + } + class KLbsPoiDetail { + constructor(poi, type, basePic, cover, address, title) { + Companion_getInstance_913(); + poi = poi === VOID ? '' : poi; + type = type === VOID ? new Long(0, 0) : type; + basePic = basePic === VOID ? emptyList() : basePic; + cover = cover === VOID ? emptyList() : cover; + address = address === VOID ? '' : address; + title = title === VOID ? '' : title; + this.poi = poi; + this.type = type; + this.basePic = basePic; + this.cover = cover; + this.address = address; + this.title = title; + } + get_poi_18iyan_k$() { + return this.poi; + } + get_type_wovaf7_k$() { + return this.type; + } + get_basePic_48hhio_k$() { + return this.basePic; + } + get_cover_ipug0e_k$() { + return this.cover; + } + get_address_hpr2t1_k$() { + return this.address; + } + get_title_iz32un_k$() { + return this.title; + } + component1_7eebsc_k$() { + return this.poi; + } + component2_7eebsb_k$() { + return this.type; + } + component3_7eebsa_k$() { + return this.basePic; + } + component4_7eebs9_k$() { + return this.cover; + } + component5_7eebs8_k$() { + return this.address; + } + component6_7eebs7_k$() { + return this.title; + } + copy_1nswbj_k$(poi, type, basePic, cover, address, title) { + return new KLbsPoiDetail(poi, type, basePic, cover, address, title); + } + copy(poi, type, basePic, cover, address, title, $super) { + poi = poi === VOID ? this.poi : poi; + type = type === VOID ? this.type : type; + basePic = basePic === VOID ? this.basePic : basePic; + cover = cover === VOID ? this.cover : cover; + address = address === VOID ? this.address : address; + title = title === VOID ? this.title : title; + return this.copy_1nswbj_k$(poi, type, basePic, cover, address, title); + } + toString() { + return 'KLbsPoiDetail(poi=' + this.poi + ', type=' + this.type.toString() + ', basePic=' + this.basePic + ', cover=' + this.cover + ', address=' + this.address + ', title=' + this.title + ')'; + } + hashCode() { + var result = getStringHashCode(this.poi); + result = imul(result, 31) + this.type.hashCode() | 0; + result = imul(result, 31) + hashCode(this.basePic) | 0; + result = imul(result, 31) + hashCode(this.cover) | 0; + result = imul(result, 31) + getStringHashCode(this.address) | 0; + result = imul(result, 31) + getStringHashCode(this.title) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KLbsPoiDetail)) + return false; + var tmp0_other_with_cast = other instanceof KLbsPoiDetail ? other : THROW_CCE(); + if (!(this.poi === tmp0_other_with_cast.poi)) + return false; + if (!this.type.equals(tmp0_other_with_cast.type)) + return false; + if (!equals(this.basePic, tmp0_other_with_cast.basePic)) + return false; + if (!equals(this.cover, tmp0_other_with_cast.cover)) + return false; + if (!(this.address === tmp0_other_with_cast.address)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KLbsPoiDetail_fvwn85_k$(seen1, poi, type, basePic, cover, address, title, serializationConstructorMarker) { + Companion_getInstance_913(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_900().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.poi = ''; + else + $this.poi = poi; + if (0 === (seen1 & 2)) + $this.type = new Long(0, 0); + else + $this.type = type; + if (0 === (seen1 & 4)) + $this.basePic = emptyList(); + else + $this.basePic = basePic; + if (0 === (seen1 & 8)) + $this.cover = emptyList(); + else + $this.cover = cover; + if (0 === (seen1 & 16)) + $this.address = ''; + else + $this.address = address; + if (0 === (seen1 & 32)) + $this.title = ''; + else + $this.title = title; + return $this; + } + } + class Companion_914 { + constructor() { + Companion_instance_914 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, new ArrayListSerializer($serializer_getInstance_942())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.LbsPoiReply'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_901(); + } + } + class $serializer_901 { + constructor() { + $serializer_instance_901 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KLbsPoiReply', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('hasMore', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('offset', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('detail', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('list', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_914().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [BooleanSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_900()), tmp0_cached[3]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = false; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp9_cached = Companion_getInstance_914().$childSerializers_1; + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_900(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 3, tmp9_cached[3], tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_900(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 3, tmp9_cached[3], tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KLbsPoiReply.new_com_bapis_bilibili_app_dynamic_v2_KLbsPoiReply_c7ktdl_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_q0hgtd_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_914().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.hasMore === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 0, value.hasMore); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.offset === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.offset); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.detail == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_900(), value.detail); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !equals(value.list, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 3, tmp2_cached[3], value.list); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_q0hgtd_k$(encoder, value instanceof KLbsPoiReply ? value : THROW_CCE()); + } + } + class KLbsPoiReply { + constructor(hasMore, offset, detail, list) { + Companion_getInstance_914(); + hasMore = hasMore === VOID ? false : hasMore; + offset = offset === VOID ? '' : offset; + detail = detail === VOID ? null : detail; + list = list === VOID ? emptyList() : list; + this.hasMore = hasMore; + this.offset = offset; + this.detail = detail; + this.list = list; + } + get_hasMore_csdhd2_k$() { + return this.hasMore; + } + get_offset_hjmqak_k$() { + return this.offset; + } + get_detail_cbtnx6_k$() { + return this.detail; + } + get_list_wopuqv_k$() { + return this.list; + } + component1_7eebsc_k$() { + return this.hasMore; + } + component2_7eebsb_k$() { + return this.offset; + } + component3_7eebsa_k$() { + return this.detail; + } + component4_7eebs9_k$() { + return this.list; + } + copy_nb59ll_k$(hasMore, offset, detail, list) { + return new KLbsPoiReply(hasMore, offset, detail, list); + } + copy(hasMore, offset, detail, list, $super) { + hasMore = hasMore === VOID ? this.hasMore : hasMore; + offset = offset === VOID ? this.offset : offset; + detail = detail === VOID ? this.detail : detail; + list = list === VOID ? this.list : list; + return this.copy_nb59ll_k$(hasMore, offset, detail, list); + } + toString() { + return 'KLbsPoiReply(hasMore=' + this.hasMore + ', offset=' + this.offset + ', detail=' + this.detail + ', list=' + this.list + ')'; + } + hashCode() { + var result = getBooleanHashCode(this.hasMore); + result = imul(result, 31) + getStringHashCode(this.offset) | 0; + result = imul(result, 31) + (this.detail == null ? 0 : this.detail.hashCode()) | 0; + result = imul(result, 31) + hashCode(this.list) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KLbsPoiReply)) + return false; + var tmp0_other_with_cast = other instanceof KLbsPoiReply ? other : THROW_CCE(); + if (!(this.hasMore === tmp0_other_with_cast.hasMore)) + return false; + if (!(this.offset === tmp0_other_with_cast.offset)) + return false; + if (!equals(this.detail, tmp0_other_with_cast.detail)) + return false; + if (!equals(this.list, tmp0_other_with_cast.list)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KLbsPoiReply_c7ktdl_k$(seen1, hasMore, offset, detail, list, serializationConstructorMarker) { + Companion_getInstance_914(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_901().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.hasMore = false; + else + $this.hasMore = hasMore; + if (0 === (seen1 & 2)) + $this.offset = ''; + else + $this.offset = offset; + if (0 === (seen1 & 4)) + $this.detail = null; + else + $this.detail = detail; + if (0 === (seen1 & 8)) + $this.list = emptyList(); + else + $this.list = list; + return $this; + } + } + class Companion_915 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.FeedFilterReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_902(); + } + } + class $serializer_902 { + constructor() { + $serializer_instance_902 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KFeedFilterReq', this, 7); + tmp0_serialDesc.addElement_5pzumi_k$('offset', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('tab', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('localTime', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('playerArgs', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('adParam', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('coldStart', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('page', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), get_nullable($serializer_getInstance_152()), get_nullable($serializer_getInstance_748()), IntSerializer_getInstance(), LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = 0; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = 0; + var tmp10_local6 = new Long(0, 0); + var tmp11_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp11_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_152(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_748(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + } else + while (tmp1_flag) { + tmp2_index = tmp11_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_152(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_748(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp11_input.endStructure_1xqz0n_k$(tmp0_desc); + return KFeedFilterReq.new_com_bapis_bilibili_app_dynamic_v2_KFeedFilterReq_qxng3h_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, null); + } + serialize_15fo5w_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.offset === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.offset); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.tab === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.tab); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.localTime === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.localTime); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.playerArgs == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_152(), value.playerArgs); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.adParam == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, $serializer_getInstance_748(), value.adParam); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.coldStart === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 5, value.coldStart); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !value.page.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 6, value.page); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_15fo5w_k$(encoder, value instanceof KFeedFilterReq ? value : THROW_CCE()); + } + } + class KFeedFilterReq { + constructor(offset, tab, localTime, playerArgs, adParam, coldStart, page) { + Companion_instance_915; + offset = offset === VOID ? '' : offset; + tab = tab === VOID ? '' : tab; + localTime = localTime === VOID ? 0 : localTime; + playerArgs = playerArgs === VOID ? null : playerArgs; + adParam = adParam === VOID ? null : adParam; + coldStart = coldStart === VOID ? 0 : coldStart; + page = page === VOID ? new Long(0, 0) : page; + this.offset = offset; + this.tab = tab; + this.localTime = localTime; + this.playerArgs = playerArgs; + this.adParam = adParam; + this.coldStart = coldStart; + this.page = page; + } + get_offset_hjmqak_k$() { + return this.offset; + } + get_tab_18ivo4_k$() { + return this.tab; + } + get_localTime_bf0zwx_k$() { + return this.localTime; + } + get_playerArgs_eh86hz_k$() { + return this.playerArgs; + } + get_adParam_i11k8v_k$() { + return this.adParam; + } + get_coldStart_zf6aiz_k$() { + return this.coldStart; + } + get_page_wos8go_k$() { + return this.page; + } + component1_7eebsc_k$() { + return this.offset; + } + component2_7eebsb_k$() { + return this.tab; + } + component3_7eebsa_k$() { + return this.localTime; + } + component4_7eebs9_k$() { + return this.playerArgs; + } + component5_7eebs8_k$() { + return this.adParam; + } + component6_7eebs7_k$() { + return this.coldStart; + } + component7_7eebs6_k$() { + return this.page; + } + copy_7f81e2_k$(offset, tab, localTime, playerArgs, adParam, coldStart, page) { + return new KFeedFilterReq(offset, tab, localTime, playerArgs, adParam, coldStart, page); + } + copy(offset, tab, localTime, playerArgs, adParam, coldStart, page, $super) { + offset = offset === VOID ? this.offset : offset; + tab = tab === VOID ? this.tab : tab; + localTime = localTime === VOID ? this.localTime : localTime; + playerArgs = playerArgs === VOID ? this.playerArgs : playerArgs; + adParam = adParam === VOID ? this.adParam : adParam; + coldStart = coldStart === VOID ? this.coldStart : coldStart; + page = page === VOID ? this.page : page; + return this.copy_7f81e2_k$(offset, tab, localTime, playerArgs, adParam, coldStart, page); + } + toString() { + return 'KFeedFilterReq(offset=' + this.offset + ', tab=' + this.tab + ', localTime=' + this.localTime + ', playerArgs=' + this.playerArgs + ', adParam=' + this.adParam + ', coldStart=' + this.coldStart + ', page=' + this.page.toString() + ')'; + } + hashCode() { + var result = getStringHashCode(this.offset); + result = imul(result, 31) + getStringHashCode(this.tab) | 0; + result = imul(result, 31) + this.localTime | 0; + result = imul(result, 31) + (this.playerArgs == null ? 0 : this.playerArgs.hashCode()) | 0; + result = imul(result, 31) + (this.adParam == null ? 0 : this.adParam.hashCode()) | 0; + result = imul(result, 31) + this.coldStart | 0; + result = imul(result, 31) + this.page.hashCode() | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KFeedFilterReq)) + return false; + var tmp0_other_with_cast = other instanceof KFeedFilterReq ? other : THROW_CCE(); + if (!(this.offset === tmp0_other_with_cast.offset)) + return false; + if (!(this.tab === tmp0_other_with_cast.tab)) + return false; + if (!(this.localTime === tmp0_other_with_cast.localTime)) + return false; + if (!equals(this.playerArgs, tmp0_other_with_cast.playerArgs)) + return false; + if (!equals(this.adParam, tmp0_other_with_cast.adParam)) + return false; + if (!(this.coldStart === tmp0_other_with_cast.coldStart)) + return false; + if (!this.page.equals(tmp0_other_with_cast.page)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KFeedFilterReq_qxng3h_k$(seen1, offset, tab, localTime, playerArgs, adParam, coldStart, page, serializationConstructorMarker) { + Companion_instance_915; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_902().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.offset = ''; + else + $this.offset = offset; + if (0 === (seen1 & 2)) + $this.tab = ''; + else + $this.tab = tab; + if (0 === (seen1 & 4)) + $this.localTime = 0; + else + $this.localTime = localTime; + if (0 === (seen1 & 8)) + $this.playerArgs = null; + else + $this.playerArgs = playerArgs; + if (0 === (seen1 & 16)) + $this.adParam = null; + else + $this.adParam = adParam; + if (0 === (seen1 & 32)) + $this.coldStart = 0; + else + $this.coldStart = coldStart; + if (0 === (seen1 & 64)) + $this.page = new Long(0, 0); + else + $this.page = page; + return $this; + } + } + class Companion_916 { + constructor() { + Companion_instance_916 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, new ArrayListSerializer($serializer_getInstance_942())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.FeedFilterReply'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_903(); + } + } + class $serializer_903 { + constructor() { + $serializer_instance_903 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KFeedFilterReply', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('offset', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('hasMore', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('list', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_916().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), BooleanSerializer_getInstance(), tmp0_cached[2]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = false; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp8_cached = Companion_getInstance_916().$childSerializers_1; + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp8_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp8_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KFeedFilterReply.new_com_bapis_bilibili_app_dynamic_v2_KFeedFilterReply_ex4k68_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_bazgco_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_916().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.offset === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.offset); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.hasMore === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 1, value.hasMore); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !equals(value.list, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 2, tmp2_cached[2], value.list); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_bazgco_k$(encoder, value instanceof KFeedFilterReply ? value : THROW_CCE()); + } + } + class KFeedFilterReply { + constructor(offset, hasMore, list) { + Companion_getInstance_916(); + offset = offset === VOID ? '' : offset; + hasMore = hasMore === VOID ? false : hasMore; + list = list === VOID ? emptyList() : list; + this.offset = offset; + this.hasMore = hasMore; + this.list = list; + } + get_offset_hjmqak_k$() { + return this.offset; + } + get_hasMore_csdhd2_k$() { + return this.hasMore; + } + get_list_wopuqv_k$() { + return this.list; + } + component1_7eebsc_k$() { + return this.offset; + } + component2_7eebsb_k$() { + return this.hasMore; + } + component3_7eebsa_k$() { + return this.list; + } + copy_frg4nz_k$(offset, hasMore, list) { + return new KFeedFilterReply(offset, hasMore, list); + } + copy(offset, hasMore, list, $super) { + offset = offset === VOID ? this.offset : offset; + hasMore = hasMore === VOID ? this.hasMore : hasMore; + list = list === VOID ? this.list : list; + return this.copy_frg4nz_k$(offset, hasMore, list); + } + toString() { + return 'KFeedFilterReply(offset=' + this.offset + ', hasMore=' + this.hasMore + ', list=' + this.list + ')'; + } + hashCode() { + var result = getStringHashCode(this.offset); + result = imul(result, 31) + getBooleanHashCode(this.hasMore) | 0; + result = imul(result, 31) + hashCode(this.list) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KFeedFilterReply)) + return false; + var tmp0_other_with_cast = other instanceof KFeedFilterReply ? other : THROW_CCE(); + if (!(this.offset === tmp0_other_with_cast.offset)) + return false; + if (!(this.hasMore === tmp0_other_with_cast.hasMore)) + return false; + if (!equals(this.list, tmp0_other_with_cast.list)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KFeedFilterReply_ex4k68_k$(seen1, offset, hasMore, list, serializationConstructorMarker) { + Companion_getInstance_916(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_903().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.offset = ''; + else + $this.offset = offset; + if (0 === (seen1 & 2)) + $this.hasMore = false; + else + $this.hasMore = hasMore; + if (0 === (seen1 & 4)) + $this.list = emptyList(); + else + $this.list = list; + return $this; + } + } + class Companion_917 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.CampusMngDetailReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_904(); + } + } + class $serializer_904 { + constructor() { + $serializer_instance_904 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KCampusMngDetailReq', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('campusId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KCampusMngDetailReq.new_com_bapis_bilibili_app_dynamic_v2_KCampusMngDetailReq_4kep7c_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_8la8bg_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.campusId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.campusId); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_8la8bg_k$(encoder, value instanceof KCampusMngDetailReq ? value : THROW_CCE()); + } + } + class KCampusMngDetailReq { + constructor(campusId) { + Companion_instance_917; + campusId = campusId === VOID ? new Long(0, 0) : campusId; + this.campusId = campusId; + } + get_campusId_y3vqhp_k$() { + return this.campusId; + } + component1_7eebsc_k$() { + return this.campusId; + } + copy_5ymysz_k$(campusId) { + return new KCampusMngDetailReq(campusId); + } + copy(campusId, $super) { + campusId = campusId === VOID ? this.campusId : campusId; + return this.copy_5ymysz_k$(campusId); + } + toString() { + return 'KCampusMngDetailReq(campusId=' + this.campusId.toString() + ')'; + } + hashCode() { + return this.campusId.hashCode(); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KCampusMngDetailReq)) + return false; + var tmp0_other_with_cast = other instanceof KCampusMngDetailReq ? other : THROW_CCE(); + if (!this.campusId.equals(tmp0_other_with_cast.campusId)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KCampusMngDetailReq_4kep7c_k$(seen1, campusId, serializationConstructorMarker) { + Companion_instance_917; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_904().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.campusId = new Long(0, 0); + else + $this.campusId = campusId; + return $this; + } + } + class Companion_918 { + constructor() { + Companion_instance_918 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer($serializer_getInstance_906()), null, null, null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.CampusMngDetailReply'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_905(); + } + } + class $serializer_905 { + constructor() { + $serializer_instance_905 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KCampusMngDetailReply', this, 5); + tmp0_serialDesc.addElement_5pzumi_k$('items', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('topHintBarMsg', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('bottomSubmitHintMsg', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('campusId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('campusName', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_918().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0], StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = new Long(0, 0); + var tmp8_local4 = null; + var tmp9_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp10_cached = Companion_getInstance_918().$childSerializers_1; + if (tmp9_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp9_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp10_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + } else + while (tmp1_flag) { + tmp2_index = tmp9_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp9_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp10_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp9_input.endStructure_1xqz0n_k$(tmp0_desc); + return KCampusMngDetailReply.new_com_bapis_bilibili_app_dynamic_v2_KCampusMngDetailReply_tlimdr_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); + } + serialize_p4eme0_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_918().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.items, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.items); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.topHintBarMsg === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.topHintBarMsg); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.bottomSubmitHintMsg === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.bottomSubmitHintMsg); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !value.campusId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 3, value.campusId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.campusName === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.campusName); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_p4eme0_k$(encoder, value instanceof KCampusMngDetailReply ? value : THROW_CCE()); + } + } + class KCampusMngDetailReply { + constructor(items, topHintBarMsg, bottomSubmitHintMsg, campusId, campusName) { + Companion_getInstance_918(); + items = items === VOID ? emptyList() : items; + topHintBarMsg = topHintBarMsg === VOID ? '' : topHintBarMsg; + bottomSubmitHintMsg = bottomSubmitHintMsg === VOID ? '' : bottomSubmitHintMsg; + campusId = campusId === VOID ? new Long(0, 0) : campusId; + campusName = campusName === VOID ? '' : campusName; + this.items = items; + this.topHintBarMsg = topHintBarMsg; + this.bottomSubmitHintMsg = bottomSubmitHintMsg; + this.campusId = campusId; + this.campusName = campusName; + } + get_items_it823b_k$() { + return this.items; + } + get_topHintBarMsg_8m45b5_k$() { + return this.topHintBarMsg; + } + get_bottomSubmitHintMsg_ezkpsi_k$() { + return this.bottomSubmitHintMsg; + } + get_campusId_y3vqhp_k$() { + return this.campusId; + } + get_campusName_wd5obx_k$() { + return this.campusName; + } + component1_7eebsc_k$() { + return this.items; + } + component2_7eebsb_k$() { + return this.topHintBarMsg; + } + component3_7eebsa_k$() { + return this.bottomSubmitHintMsg; + } + component4_7eebs9_k$() { + return this.campusId; + } + component5_7eebs8_k$() { + return this.campusName; + } + copy_hmul8o_k$(items, topHintBarMsg, bottomSubmitHintMsg, campusId, campusName) { + return new KCampusMngDetailReply(items, topHintBarMsg, bottomSubmitHintMsg, campusId, campusName); + } + copy(items, topHintBarMsg, bottomSubmitHintMsg, campusId, campusName, $super) { + items = items === VOID ? this.items : items; + topHintBarMsg = topHintBarMsg === VOID ? this.topHintBarMsg : topHintBarMsg; + bottomSubmitHintMsg = bottomSubmitHintMsg === VOID ? this.bottomSubmitHintMsg : bottomSubmitHintMsg; + campusId = campusId === VOID ? this.campusId : campusId; + campusName = campusName === VOID ? this.campusName : campusName; + return this.copy_hmul8o_k$(items, topHintBarMsg, bottomSubmitHintMsg, campusId, campusName); + } + toString() { + return 'KCampusMngDetailReply(items=' + this.items + ', topHintBarMsg=' + this.topHintBarMsg + ', bottomSubmitHintMsg=' + this.bottomSubmitHintMsg + ', campusId=' + this.campusId.toString() + ', campusName=' + this.campusName + ')'; + } + hashCode() { + var result = hashCode(this.items); + result = imul(result, 31) + getStringHashCode(this.topHintBarMsg) | 0; + result = imul(result, 31) + getStringHashCode(this.bottomSubmitHintMsg) | 0; + result = imul(result, 31) + this.campusId.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.campusName) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KCampusMngDetailReply)) + return false; + var tmp0_other_with_cast = other instanceof KCampusMngDetailReply ? other : THROW_CCE(); + if (!equals(this.items, tmp0_other_with_cast.items)) + return false; + if (!(this.topHintBarMsg === tmp0_other_with_cast.topHintBarMsg)) + return false; + if (!(this.bottomSubmitHintMsg === tmp0_other_with_cast.bottomSubmitHintMsg)) + return false; + if (!this.campusId.equals(tmp0_other_with_cast.campusId)) + return false; + if (!(this.campusName === tmp0_other_with_cast.campusName)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KCampusMngDetailReply_tlimdr_k$(seen1, items, topHintBarMsg, bottomSubmitHintMsg, campusId, campusName, serializationConstructorMarker) { + Companion_getInstance_918(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_905().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.items = emptyList(); + else + $this.items = items; + if (0 === (seen1 & 2)) + $this.topHintBarMsg = ''; + else + $this.topHintBarMsg = topHintBarMsg; + if (0 === (seen1 & 4)) + $this.bottomSubmitHintMsg = ''; + else + $this.bottomSubmitHintMsg = bottomSubmitHintMsg; + if (0 === (seen1 & 8)) + $this.campusId = new Long(0, 0); + else + $this.campusId = campusId; + if (0 === (seen1 & 16)) + $this.campusName = ''; + else + $this.campusName = campusName; + return $this; + } + } + class KItem_3 { + constructor(value) { + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + } + class KBasicInfo extends KItem_3 { + constructor() { + KBasicInfo_instance = null; + super(0); + KBasicInfo_instance = this; + } + } + class KBadge_0 extends KItem_3 { + constructor() { + KBadge_instance = null; + super(1); + KBadge_instance = this; + } + } + class KSlogan extends KItem_3 { + constructor() { + KSlogan_instance = null; + super(2); + KSlogan_instance = this; + } + } + class KQuiz extends KItem_3 { + constructor() { + KQuiz_instance = null; + super(3); + KQuiz_instance = this; + } + } + class Companion_919 { + constructor() { + Companion_instance_919 = this; + var tmp = this; + tmp.itemValues$delegate_1 = lazy_0(KCampusMngItem$Companion$itemValues$delegate$lambda); + this.targetPath = '/bilibili.app.dynamic.v2.CampusMngItem'; + } + get_itemValues_e195su_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.itemValues$delegate_1; + var thisRef = this; + var property = itemValues$factory_0(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_906(); + } + get itemValues() { + return this.get_itemValues_e195su_k$(); + } + } + class $serializer_906 { + constructor() { + $serializer_instance_906 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KCampusMngItem', this, 9); + tmp0_serialDesc.addElement_5pzumi_k$('auditStatus', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('auditMessage', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('itemType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('mngItemId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('isDel', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('basicInfo', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('badge', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('slogan', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('quiz', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), BooleanSerializer_getInstance(), get_nullable($serializer_getInstance_907()), get_nullable($serializer_getInstance_908()), get_nullable($serializer_getInstance_909()), get_nullable($serializer_getInstance_910())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = null; + var tmp6_local2 = 0; + var tmp7_local3 = null; + var tmp8_local4 = false; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_local8 = null; + var tmp13_transient0 = 0; + var tmp14_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp14_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp14_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_907(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_908(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_909(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_910(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + } else + while (tmp1_flag) { + tmp2_index = tmp14_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp14_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_907(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_908(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_909(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_910(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp14_input.endStructure_1xqz0n_k$(tmp0_desc); + return KCampusMngItem.new_com_bapis_bilibili_app_dynamic_v2_KCampusMngItem_jie4ev_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, null); + } + serialize_9dzeji_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.auditStatus === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.auditStatus); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.auditMessage === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.auditMessage); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.itemType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.itemType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.mngItemId === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.mngItemId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.isDel === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 4, value.isDel); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.basicInfo_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 5, $serializer_getInstance_907(), value.basicInfo_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.badge_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 6, $serializer_getInstance_908(), value.badge_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.slogan_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 7, $serializer_getInstance_909(), value.slogan_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.quiz_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 8, $serializer_getInstance_910(), value.quiz_1); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_9dzeji_k$(encoder, value instanceof KCampusMngItem ? value : THROW_CCE()); + } + } + class KCampusMngItem { + constructor(auditStatus, auditMessage, itemType, mngItemId, isDel, basicInfo, badge, slogan, quiz) { + Companion_getInstance_919(); + auditStatus = auditStatus === VOID ? 0 : auditStatus; + auditMessage = auditMessage === VOID ? '' : auditMessage; + itemType = itemType === VOID ? 0 : itemType; + mngItemId = mngItemId === VOID ? '' : mngItemId; + isDel = isDel === VOID ? false : isDel; + basicInfo = basicInfo === VOID ? null : basicInfo; + badge = badge === VOID ? null : badge; + slogan = slogan === VOID ? null : slogan; + quiz = quiz === VOID ? null : quiz; + this.auditStatus = auditStatus; + this.auditMessage = auditMessage; + this.itemType = itemType; + this.mngItemId = mngItemId; + this.isDel = isDel; + this.basicInfo_1 = basicInfo; + this.badge_1 = badge; + this.slogan_1 = slogan; + this.quiz_1 = quiz; + var tmp = this; + tmp.itemNumber$delegate_1 = lazy_0(KCampusMngItem$itemNumber$delegate$lambda(this)); + } + get_auditStatus_nk4bpg_k$() { + return this.auditStatus; + } + get_auditMessage_3uh7gr_k$() { + return this.auditMessage; + } + get_itemType_cbv3uy_k$() { + return this.itemType; + } + get_mngItemId_mnk0ph_k$() { + return this.mngItemId; + } + get_isDel_it6qfs_k$() { + return this.isDel; + } + itemValue() { + if (!(this.basicInfo_1 == null)) { + var tmp = this.basicInfo_1; + return (tmp == null ? true : !(tmp == null)) ? tmp : null; + } else if (!(this.badge_1 == null)) { + var tmp_0 = this.badge_1; + return (tmp_0 == null ? true : !(tmp_0 == null)) ? tmp_0 : null; + } else if (!(this.slogan_1 == null)) { + var tmp_1 = this.slogan_1; + return (tmp_1 == null ? true : !(tmp_1 == null)) ? tmp_1 : null; + } else if (!(this.quiz_1 == null)) { + var tmp_2 = this.quiz_1; + return (tmp_2 == null ? true : !(tmp_2 == null)) ? tmp_2 : null; + } else { + return null; + } + } + itemTypeJs() { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = Companion_getInstance_919().itemValues; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.KCampusMngItem.itemType.' call + var it = element; + tmp$ret$0 = it.value === _get_itemNumber__22vn01_0(this); + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + return tmp$ret$1; + } + auditStatusEnum() { + return Companion_getInstance_750().fromValue(this.auditStatus); + } + itemTypeEnum() { + return Companion_getInstance_751().fromValue(this.itemType); + } + component1_7eebsc_k$() { + return this.auditStatus; + } + component2_7eebsb_k$() { + return this.auditMessage; + } + component3_7eebsa_k$() { + return this.itemType; + } + component4_7eebs9_k$() { + return this.mngItemId; + } + component5_7eebs8_k$() { + return this.isDel; + } + copy_bz40fo_k$(auditStatus, auditMessage, itemType, mngItemId, isDel, basicInfo, badge, slogan, quiz) { + return new KCampusMngItem(auditStatus, auditMessage, itemType, mngItemId, isDel, basicInfo, badge, slogan, quiz); + } + copy(auditStatus, auditMessage, itemType, mngItemId, isDel, basicInfo, badge, slogan, quiz, $super) { + auditStatus = auditStatus === VOID ? this.auditStatus : auditStatus; + auditMessage = auditMessage === VOID ? this.auditMessage : auditMessage; + itemType = itemType === VOID ? this.itemType : itemType; + mngItemId = mngItemId === VOID ? this.mngItemId : mngItemId; + isDel = isDel === VOID ? this.isDel : isDel; + basicInfo = basicInfo === VOID ? this.basicInfo_1 : basicInfo; + badge = badge === VOID ? this.badge_1 : badge; + slogan = slogan === VOID ? this.slogan_1 : slogan; + quiz = quiz === VOID ? this.quiz_1 : quiz; + return this.copy_bz40fo_k$(auditStatus, auditMessage, itemType, mngItemId, isDel, basicInfo, badge, slogan, quiz); + } + toString() { + return 'KCampusMngItem(auditStatus=' + this.auditStatus + ', auditMessage=' + this.auditMessage + ', itemType=' + this.itemType + ', mngItemId=' + this.mngItemId + ', isDel=' + this.isDel + ', basicInfo=' + this.basicInfo_1 + ', badge=' + this.badge_1 + ', slogan=' + this.slogan_1 + ', quiz=' + this.quiz_1 + ')'; + } + hashCode() { + var result = this.auditStatus; + result = imul(result, 31) + getStringHashCode(this.auditMessage) | 0; + result = imul(result, 31) + this.itemType | 0; + result = imul(result, 31) + getStringHashCode(this.mngItemId) | 0; + result = imul(result, 31) + getBooleanHashCode(this.isDel) | 0; + result = imul(result, 31) + (this.basicInfo_1 == null ? 0 : this.basicInfo_1.hashCode()) | 0; + result = imul(result, 31) + (this.badge_1 == null ? 0 : this.badge_1.hashCode()) | 0; + result = imul(result, 31) + (this.slogan_1 == null ? 0 : this.slogan_1.hashCode()) | 0; + result = imul(result, 31) + (this.quiz_1 == null ? 0 : this.quiz_1.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KCampusMngItem)) + return false; + var tmp0_other_with_cast = other instanceof KCampusMngItem ? other : THROW_CCE(); + if (!(this.auditStatus === tmp0_other_with_cast.auditStatus)) + return false; + if (!(this.auditMessage === tmp0_other_with_cast.auditMessage)) + return false; + if (!(this.itemType === tmp0_other_with_cast.itemType)) + return false; + if (!(this.mngItemId === tmp0_other_with_cast.mngItemId)) + return false; + if (!(this.isDel === tmp0_other_with_cast.isDel)) + return false; + if (!equals(this.basicInfo_1, tmp0_other_with_cast.basicInfo_1)) + return false; + if (!equals(this.badge_1, tmp0_other_with_cast.badge_1)) + return false; + if (!equals(this.slogan_1, tmp0_other_with_cast.slogan_1)) + return false; + if (!equals(this.quiz_1, tmp0_other_with_cast.quiz_1)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KCampusMngItem_jie4ev_k$(seen1, auditStatus, auditMessage, itemType, mngItemId, isDel, basicInfo, badge, slogan, quiz, serializationConstructorMarker) { + Companion_getInstance_919(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_906().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.auditStatus = 0; + else + $this.auditStatus = auditStatus; + if (0 === (seen1 & 2)) + $this.auditMessage = ''; + else + $this.auditMessage = auditMessage; + if (0 === (seen1 & 4)) + $this.itemType = 0; + else + $this.itemType = itemType; + if (0 === (seen1 & 8)) + $this.mngItemId = ''; + else + $this.mngItemId = mngItemId; + if (0 === (seen1 & 16)) + $this.isDel = false; + else + $this.isDel = isDel; + if (0 === (seen1 & 32)) + $this.basicInfo_1 = null; + else + $this.basicInfo_1 = basicInfo; + if (0 === (seen1 & 64)) + $this.badge_1 = null; + else + $this.badge_1 = badge; + if (0 === (seen1 & 128)) + $this.slogan_1 = null; + else + $this.slogan_1 = slogan; + if (0 === (seen1 & 256)) + $this.quiz_1 = null; + else + $this.quiz_1 = quiz; + var tmp = $this; + tmp.itemNumber$delegate_1 = lazy_0(KCampusMngItem$_init_$lambda_upe0ho($this)); + return $this; + } + } + class Companion_920 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.CampusMngBasicInfo'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_907(); + } + } + class $serializer_907 { + constructor() { + $serializer_instance_907 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KCampusMngBasicInfo', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('campusId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('campusName', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('hintMsg', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KCampusMngBasicInfo.new_com_bapis_bilibili_app_dynamic_v2_KCampusMngBasicInfo_qlj2kl_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_pms045_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.campusId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.campusId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.campusName === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.campusName); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.hintMsg === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.hintMsg); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_pms045_k$(encoder, value instanceof KCampusMngBasicInfo ? value : THROW_CCE()); + } + } + class KCampusMngBasicInfo { + constructor(campusId, campusName, hintMsg) { + Companion_instance_920; + campusId = campusId === VOID ? new Long(0, 0) : campusId; + campusName = campusName === VOID ? '' : campusName; + hintMsg = hintMsg === VOID ? '' : hintMsg; + this.campusId = campusId; + this.campusName = campusName; + this.hintMsg = hintMsg; + } + get_campusId_y3vqhp_k$() { + return this.campusId; + } + get_campusName_wd5obx_k$() { + return this.campusName; + } + get_hintMsg_ginoup_k$() { + return this.hintMsg; + } + component1_7eebsc_k$() { + return this.campusId; + } + component2_7eebsb_k$() { + return this.campusName; + } + component3_7eebsa_k$() { + return this.hintMsg; + } + copy_ijggmr_k$(campusId, campusName, hintMsg) { + return new KCampusMngBasicInfo(campusId, campusName, hintMsg); + } + copy(campusId, campusName, hintMsg, $super) { + campusId = campusId === VOID ? this.campusId : campusId; + campusName = campusName === VOID ? this.campusName : campusName; + hintMsg = hintMsg === VOID ? this.hintMsg : hintMsg; + return this.copy_ijggmr_k$(campusId, campusName, hintMsg); + } + toString() { + return 'KCampusMngBasicInfo(campusId=' + this.campusId.toString() + ', campusName=' + this.campusName + ', hintMsg=' + this.hintMsg + ')'; + } + hashCode() { + var result = this.campusId.hashCode(); + result = imul(result, 31) + getStringHashCode(this.campusName) | 0; + result = imul(result, 31) + getStringHashCode(this.hintMsg) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KCampusMngBasicInfo)) + return false; + var tmp0_other_with_cast = other instanceof KCampusMngBasicInfo ? other : THROW_CCE(); + if (!this.campusId.equals(tmp0_other_with_cast.campusId)) + return false; + if (!(this.campusName === tmp0_other_with_cast.campusName)) + return false; + if (!(this.hintMsg === tmp0_other_with_cast.hintMsg)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KCampusMngBasicInfo_qlj2kl_k$(seen1, campusId, campusName, hintMsg, serializationConstructorMarker) { + Companion_instance_920; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_907().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.campusId = new Long(0, 0); + else + $this.campusId = campusId; + if (0 === (seen1 & 2)) + $this.campusName = ''; + else + $this.campusName = campusName; + if (0 === (seen1 & 4)) + $this.hintMsg = ''; + else + $this.hintMsg = hintMsg; + return $this; + } + } + class Companion_921 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.CampusMngBadge'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_908(); + } + } + class $serializer_908 { + constructor() { + $serializer_instance_908 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KCampusMngBadge', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('badgeUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('uploadHintMsg', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KCampusMngBadge.new_com_bapis_bilibili_app_dynamic_v2_KCampusMngBadge_di6xv3_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_5uq2ry_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.badgeUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.badgeUrl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.uploadHintMsg === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.uploadHintMsg); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_5uq2ry_k$(encoder, value instanceof KCampusMngBadge ? value : THROW_CCE()); + } + } + class KCampusMngBadge { + constructor(title, badgeUrl, uploadHintMsg) { + Companion_instance_921; + title = title === VOID ? '' : title; + badgeUrl = badgeUrl === VOID ? '' : badgeUrl; + uploadHintMsg = uploadHintMsg === VOID ? '' : uploadHintMsg; + this.title = title; + this.badgeUrl = badgeUrl; + this.uploadHintMsg = uploadHintMsg; + } + get_title_iz32un_k$() { + return this.title; + } + get_badgeUrl_3oyahh_k$() { + return this.badgeUrl; + } + get_uploadHintMsg_w30h00_k$() { + return this.uploadHintMsg; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.badgeUrl; + } + component3_7eebsa_k$() { + return this.uploadHintMsg; + } + copy_nc7k0r_k$(title, badgeUrl, uploadHintMsg) { + return new KCampusMngBadge(title, badgeUrl, uploadHintMsg); + } + copy(title, badgeUrl, uploadHintMsg, $super) { + title = title === VOID ? this.title : title; + badgeUrl = badgeUrl === VOID ? this.badgeUrl : badgeUrl; + uploadHintMsg = uploadHintMsg === VOID ? this.uploadHintMsg : uploadHintMsg; + return this.copy_nc7k0r_k$(title, badgeUrl, uploadHintMsg); + } + toString() { + return 'KCampusMngBadge(title=' + this.title + ', badgeUrl=' + this.badgeUrl + ', uploadHintMsg=' + this.uploadHintMsg + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.badgeUrl) | 0; + result = imul(result, 31) + getStringHashCode(this.uploadHintMsg) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KCampusMngBadge)) + return false; + var tmp0_other_with_cast = other instanceof KCampusMngBadge ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.badgeUrl === tmp0_other_with_cast.badgeUrl)) + return false; + if (!(this.uploadHintMsg === tmp0_other_with_cast.uploadHintMsg)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KCampusMngBadge_di6xv3_k$(seen1, title, badgeUrl, uploadHintMsg, serializationConstructorMarker) { + Companion_instance_921; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_908().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.badgeUrl = ''; + else + $this.badgeUrl = badgeUrl; + if (0 === (seen1 & 4)) + $this.uploadHintMsg = ''; + else + $this.uploadHintMsg = uploadHintMsg; + return $this; + } + } + class Companion_922 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.CampusMngSlogan'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_909(); + } + } + class $serializer_909 { + constructor() { + $serializer_instance_909 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KCampusMngSlogan', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('slogan', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('inputHintMsg', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KCampusMngSlogan.new_com_bapis_bilibili_app_dynamic_v2_KCampusMngSlogan_3gyuhu_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_6h69op_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.slogan === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.slogan); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.inputHintMsg === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.inputHintMsg); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_6h69op_k$(encoder, value instanceof KCampusMngSlogan ? value : THROW_CCE()); + } + } + class KCampusMngSlogan { + constructor(title, slogan, inputHintMsg) { + Companion_instance_922; + title = title === VOID ? '' : title; + slogan = slogan === VOID ? '' : slogan; + inputHintMsg = inputHintMsg === VOID ? '' : inputHintMsg; + this.title = title; + this.slogan = slogan; + this.inputHintMsg = inputHintMsg; + } + get_title_iz32un_k$() { + return this.title; + } + get_slogan_jj9hbb_k$() { + return this.slogan; + } + get_inputHintMsg_yx6puv_k$() { + return this.inputHintMsg; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.slogan; + } + component3_7eebsa_k$() { + return this.inputHintMsg; + } + copy_nc7k0r_k$(title, slogan, inputHintMsg) { + return new KCampusMngSlogan(title, slogan, inputHintMsg); + } + copy(title, slogan, inputHintMsg, $super) { + title = title === VOID ? this.title : title; + slogan = slogan === VOID ? this.slogan : slogan; + inputHintMsg = inputHintMsg === VOID ? this.inputHintMsg : inputHintMsg; + return this.copy_nc7k0r_k$(title, slogan, inputHintMsg); + } + toString() { + return 'KCampusMngSlogan(title=' + this.title + ', slogan=' + this.slogan + ', inputHintMsg=' + this.inputHintMsg + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.slogan) | 0; + result = imul(result, 31) + getStringHashCode(this.inputHintMsg) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KCampusMngSlogan)) + return false; + var tmp0_other_with_cast = other instanceof KCampusMngSlogan ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.slogan === tmp0_other_with_cast.slogan)) + return false; + if (!(this.inputHintMsg === tmp0_other_with_cast.inputHintMsg)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KCampusMngSlogan_3gyuhu_k$(seen1, title, slogan, inputHintMsg, serializationConstructorMarker) { + Companion_instance_922; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_909().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.slogan = ''; + else + $this.slogan = slogan; + if (0 === (seen1 & 4)) + $this.inputHintMsg = ''; + else + $this.inputHintMsg = inputHintMsg; + return $this; + } + } + class Companion_923 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.CampusMngQuiz'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_910(); + } + } + class $serializer_910 { + constructor() { + $serializer_instance_910 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KCampusMngQuiz', this, 5); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('moreLabel', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('addLabel', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('submitLabel', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('quizCount', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), get_nullable($serializer_getInstance_837()), StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = new Long(0, 0); + var tmp9_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp9_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_837(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + } else + while (tmp1_flag) { + tmp2_index = tmp9_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_837(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp9_input.endStructure_1xqz0n_k$(tmp0_desc); + return KCampusMngQuiz.new_com_bapis_bilibili_app_dynamic_v2_KCampusMngQuiz_j6ge3k_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); + } + serialize_salrts_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.moreLabel == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_837(), value.moreLabel); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.addLabel === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.addLabel); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.submitLabel === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.submitLabel); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !value.quizCount.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 4, value.quizCount); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_salrts_k$(encoder, value instanceof KCampusMngQuiz ? value : THROW_CCE()); + } + } + class KCampusMngQuiz { + constructor(title, moreLabel, addLabel, submitLabel, quizCount) { + Companion_instance_923; + title = title === VOID ? '' : title; + moreLabel = moreLabel === VOID ? null : moreLabel; + addLabel = addLabel === VOID ? '' : addLabel; + submitLabel = submitLabel === VOID ? '' : submitLabel; + quizCount = quizCount === VOID ? new Long(0, 0) : quizCount; + this.title = title; + this.moreLabel = moreLabel; + this.addLabel = addLabel; + this.submitLabel = submitLabel; + this.quizCount = quizCount; + } + get_title_iz32un_k$() { + return this.title; + } + get_moreLabel_wtpp8q_k$() { + return this.moreLabel; + } + get_addLabel_ihlxgc_k$() { + return this.addLabel; + } + get_submitLabel_ehamoj_k$() { + return this.submitLabel; + } + get_quizCount_upm6zz_k$() { + return this.quizCount; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.moreLabel; + } + component3_7eebsa_k$() { + return this.addLabel; + } + component4_7eebs9_k$() { + return this.submitLabel; + } + component5_7eebs8_k$() { + return this.quizCount; + } + copy_6wy4tm_k$(title, moreLabel, addLabel, submitLabel, quizCount) { + return new KCampusMngQuiz(title, moreLabel, addLabel, submitLabel, quizCount); + } + copy(title, moreLabel, addLabel, submitLabel, quizCount, $super) { + title = title === VOID ? this.title : title; + moreLabel = moreLabel === VOID ? this.moreLabel : moreLabel; + addLabel = addLabel === VOID ? this.addLabel : addLabel; + submitLabel = submitLabel === VOID ? this.submitLabel : submitLabel; + quizCount = quizCount === VOID ? this.quizCount : quizCount; + return this.copy_6wy4tm_k$(title, moreLabel, addLabel, submitLabel, quizCount); + } + toString() { + return 'KCampusMngQuiz(title=' + this.title + ', moreLabel=' + this.moreLabel + ', addLabel=' + this.addLabel + ', submitLabel=' + this.submitLabel + ', quizCount=' + this.quizCount.toString() + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + (this.moreLabel == null ? 0 : this.moreLabel.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.addLabel) | 0; + result = imul(result, 31) + getStringHashCode(this.submitLabel) | 0; + result = imul(result, 31) + this.quizCount.hashCode() | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KCampusMngQuiz)) + return false; + var tmp0_other_with_cast = other instanceof KCampusMngQuiz ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!equals(this.moreLabel, tmp0_other_with_cast.moreLabel)) + return false; + if (!(this.addLabel === tmp0_other_with_cast.addLabel)) + return false; + if (!(this.submitLabel === tmp0_other_with_cast.submitLabel)) + return false; + if (!this.quizCount.equals(tmp0_other_with_cast.quizCount)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KCampusMngQuiz_j6ge3k_k$(seen1, title, moreLabel, addLabel, submitLabel, quizCount, serializationConstructorMarker) { + Companion_instance_923; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_910().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.moreLabel = null; + else + $this.moreLabel = moreLabel; + if (0 === (seen1 & 4)) + $this.addLabel = ''; + else + $this.addLabel = addLabel; + if (0 === (seen1 & 8)) + $this.submitLabel = ''; + else + $this.submitLabel = submitLabel; + if (0 === (seen1 & 16)) + $this.quizCount = new Long(0, 0); + else + $this.quizCount = quizCount; + return $this; + } + } + class Companion_924 { + constructor() { + Companion_instance_924 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, new ArrayListSerializer($serializer_getInstance_906())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.CampusMngSubmitReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_911(); + } + } + class $serializer_911 { + constructor() { + $serializer_instance_911 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KCampusMngSubmitReq', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('campusId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('modifiedItems', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_924().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), tmp0_cached[1]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp7_cached = Companion_getInstance_924().$childSerializers_1; + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KCampusMngSubmitReq.new_com_bapis_bilibili_app_dynamic_v2_KCampusMngSubmitReq_7phkax_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_qhc357_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_924().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.campusId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.campusId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !equals(value.modifiedItems, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 1, tmp2_cached[1], value.modifiedItems); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_qhc357_k$(encoder, value instanceof KCampusMngSubmitReq ? value : THROW_CCE()); + } + } + class KCampusMngSubmitReq { + constructor(campusId, modifiedItems) { + Companion_getInstance_924(); + campusId = campusId === VOID ? new Long(0, 0) : campusId; + modifiedItems = modifiedItems === VOID ? emptyList() : modifiedItems; + this.campusId = campusId; + this.modifiedItems = modifiedItems; + } + get_campusId_y3vqhp_k$() { + return this.campusId; + } + get_modifiedItems_x2vwpa_k$() { + return this.modifiedItems; + } + component1_7eebsc_k$() { + return this.campusId; + } + component2_7eebsb_k$() { + return this.modifiedItems; + } + copy_kpyeiy_k$(campusId, modifiedItems) { + return new KCampusMngSubmitReq(campusId, modifiedItems); + } + copy(campusId, modifiedItems, $super) { + campusId = campusId === VOID ? this.campusId : campusId; + modifiedItems = modifiedItems === VOID ? this.modifiedItems : modifiedItems; + return this.copy_kpyeiy_k$(campusId, modifiedItems); + } + toString() { + return 'KCampusMngSubmitReq(campusId=' + this.campusId.toString() + ', modifiedItems=' + this.modifiedItems + ')'; + } + hashCode() { + var result = this.campusId.hashCode(); + result = imul(result, 31) + hashCode(this.modifiedItems) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KCampusMngSubmitReq)) + return false; + var tmp0_other_with_cast = other instanceof KCampusMngSubmitReq ? other : THROW_CCE(); + if (!this.campusId.equals(tmp0_other_with_cast.campusId)) + return false; + if (!equals(this.modifiedItems, tmp0_other_with_cast.modifiedItems)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KCampusMngSubmitReq_7phkax_k$(seen1, campusId, modifiedItems, serializationConstructorMarker) { + Companion_getInstance_924(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_911().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.campusId = new Long(0, 0); + else + $this.campusId = campusId; + if (0 === (seen1 & 2)) + $this.modifiedItems = emptyList(); + else + $this.modifiedItems = modifiedItems; + return $this; + } + } + class Companion_925 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.CampusMngSubmitReply'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_912(); + } + } + class $serializer_912 { + constructor() { + $serializer_instance_912 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KCampusMngSubmitReply', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('toast', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KCampusMngSubmitReply.new_com_bapis_bilibili_app_dynamic_v2_KCampusMngSubmitReply_aglvjm_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_9mbgpt_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.toast === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.toast); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_9mbgpt_k$(encoder, value instanceof KCampusMngSubmitReply ? value : THROW_CCE()); + } + } + class KCampusMngSubmitReply { + constructor(toast) { + Companion_instance_925; + toast = toast === VOID ? '' : toast; + this.toast = toast; + } + get_toast_iz6iv2_k$() { + return this.toast; + } + component1_7eebsc_k$() { + return this.toast; + } + copy_a35qlh_k$(toast) { + return new KCampusMngSubmitReply(toast); + } + copy(toast, $super) { + toast = toast === VOID ? this.toast : toast; + return this.copy_a35qlh_k$(toast); + } + toString() { + return 'KCampusMngSubmitReply(toast=' + this.toast + ')'; + } + hashCode() { + return getStringHashCode(this.toast); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KCampusMngSubmitReply)) + return false; + var tmp0_other_with_cast = other instanceof KCampusMngSubmitReply ? other : THROW_CCE(); + if (!(this.toast === tmp0_other_with_cast.toast)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KCampusMngSubmitReply_aglvjm_k$(seen1, toast, serializationConstructorMarker) { + Companion_instance_925; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_912().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.toast = ''; + else + $this.toast = toast; + return $this; + } + } + class Companion_926 { + constructor() { + Companion_instance_926 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, new ArrayListSerializer(StringSerializer_getInstance()), null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.CampusMngQuizDetail'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_913(); + } + } + class $serializer_913 { + constructor() { + $serializer_instance_913 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KCampusMngQuizDetail', this, 6); + tmp0_serialDesc.addElement_5pzumi_k$('quizId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('question', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('correctAnswer', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('wrongAnswerList', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('auditStatus', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('auditMessage', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_926().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), tmp0_cached[3], IntSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = 0; + var tmp9_local5 = null; + var tmp10_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp11_cached = Companion_getInstance_926().$childSerializers_1; + if (tmp10_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp10_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 3, tmp11_cached[3], tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + } else + while (tmp1_flag) { + tmp2_index = tmp10_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp10_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 3, tmp11_cached[3], tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp10_input.endStructure_1xqz0n_k$(tmp0_desc); + return KCampusMngQuizDetail.new_com_bapis_bilibili_app_dynamic_v2_KCampusMngQuizDetail_p2ye1v_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); + } + serialize_pnvpo1_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_926().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.quizId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.quizId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.question === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.question); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.correctAnswer === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.correctAnswer); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !equals(value.wrongAnswerList, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 3, tmp2_cached[3], value.wrongAnswerList); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.auditStatus === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 4, value.auditStatus); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.auditMessage === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.auditMessage); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_pnvpo1_k$(encoder, value instanceof KCampusMngQuizDetail ? value : THROW_CCE()); + } + } + class KCampusMngQuizDetail { + constructor(quizId, question, correctAnswer, wrongAnswerList, auditStatus, auditMessage) { + Companion_getInstance_926(); + quizId = quizId === VOID ? new Long(0, 0) : quizId; + question = question === VOID ? '' : question; + correctAnswer = correctAnswer === VOID ? '' : correctAnswer; + wrongAnswerList = wrongAnswerList === VOID ? emptyList() : wrongAnswerList; + auditStatus = auditStatus === VOID ? 0 : auditStatus; + auditMessage = auditMessage === VOID ? '' : auditMessage; + this.quizId = quizId; + this.question = question; + this.correctAnswer = correctAnswer; + this.wrongAnswerList = wrongAnswerList; + this.auditStatus = auditStatus; + this.auditMessage = auditMessage; + } + get_quizId_iq0xg9_k$() { + return this.quizId; + } + get_question_jy1o6n_k$() { + return this.question; + } + get_correctAnswer_igqzxd_k$() { + return this.correctAnswer; + } + get_wrongAnswerList_g4jhnk_k$() { + return this.wrongAnswerList; + } + get_auditStatus_nk4bpg_k$() { + return this.auditStatus; + } + get_auditMessage_3uh7gr_k$() { + return this.auditMessage; + } + auditStatusEnum() { + return Companion_getInstance_750().fromValue(this.auditStatus); + } + component1_7eebsc_k$() { + return this.quizId; + } + component2_7eebsb_k$() { + return this.question; + } + component3_7eebsa_k$() { + return this.correctAnswer; + } + component4_7eebs9_k$() { + return this.wrongAnswerList; + } + component5_7eebs8_k$() { + return this.auditStatus; + } + component6_7eebs7_k$() { + return this.auditMessage; + } + copy_fwhv6b_k$(quizId, question, correctAnswer, wrongAnswerList, auditStatus, auditMessage) { + return new KCampusMngQuizDetail(quizId, question, correctAnswer, wrongAnswerList, auditStatus, auditMessage); + } + copy(quizId, question, correctAnswer, wrongAnswerList, auditStatus, auditMessage, $super) { + quizId = quizId === VOID ? this.quizId : quizId; + question = question === VOID ? this.question : question; + correctAnswer = correctAnswer === VOID ? this.correctAnswer : correctAnswer; + wrongAnswerList = wrongAnswerList === VOID ? this.wrongAnswerList : wrongAnswerList; + auditStatus = auditStatus === VOID ? this.auditStatus : auditStatus; + auditMessage = auditMessage === VOID ? this.auditMessage : auditMessage; + return this.copy_fwhv6b_k$(quizId, question, correctAnswer, wrongAnswerList, auditStatus, auditMessage); + } + toString() { + return 'KCampusMngQuizDetail(quizId=' + this.quizId.toString() + ', question=' + this.question + ', correctAnswer=' + this.correctAnswer + ', wrongAnswerList=' + this.wrongAnswerList + ', auditStatus=' + this.auditStatus + ', auditMessage=' + this.auditMessage + ')'; + } + hashCode() { + var result = this.quizId.hashCode(); + result = imul(result, 31) + getStringHashCode(this.question) | 0; + result = imul(result, 31) + getStringHashCode(this.correctAnswer) | 0; + result = imul(result, 31) + hashCode(this.wrongAnswerList) | 0; + result = imul(result, 31) + this.auditStatus | 0; + result = imul(result, 31) + getStringHashCode(this.auditMessage) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KCampusMngQuizDetail)) + return false; + var tmp0_other_with_cast = other instanceof KCampusMngQuizDetail ? other : THROW_CCE(); + if (!this.quizId.equals(tmp0_other_with_cast.quizId)) + return false; + if (!(this.question === tmp0_other_with_cast.question)) + return false; + if (!(this.correctAnswer === tmp0_other_with_cast.correctAnswer)) + return false; + if (!equals(this.wrongAnswerList, tmp0_other_with_cast.wrongAnswerList)) + return false; + if (!(this.auditStatus === tmp0_other_with_cast.auditStatus)) + return false; + if (!(this.auditMessage === tmp0_other_with_cast.auditMessage)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KCampusMngQuizDetail_p2ye1v_k$(seen1, quizId, question, correctAnswer, wrongAnswerList, auditStatus, auditMessage, serializationConstructorMarker) { + Companion_getInstance_926(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_913().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.quizId = new Long(0, 0); + else + $this.quizId = quizId; + if (0 === (seen1 & 2)) + $this.question = ''; + else + $this.question = question; + if (0 === (seen1 & 4)) + $this.correctAnswer = ''; + else + $this.correctAnswer = correctAnswer; + if (0 === (seen1 & 8)) + $this.wrongAnswerList = emptyList(); + else + $this.wrongAnswerList = wrongAnswerList; + if (0 === (seen1 & 16)) + $this.auditStatus = 0; + else + $this.auditStatus = auditStatus; + if (0 === (seen1 & 32)) + $this.auditMessage = ''; + else + $this.auditMessage = auditMessage; + return $this; + } + } + class Companion_927 { + constructor() { + Companion_instance_927 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, new ArrayListSerializer($serializer_getInstance_913())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.CampusMngQuizOperateReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_914(); + } + } + class $serializer_914 { + constructor() { + $serializer_instance_914 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KCampusMngQuizOperateReq', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('action', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('campusId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('quiz', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_927().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), LongSerializer_getInstance(), tmp0_cached[2]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = new Long(0, 0); + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp8_cached = Companion_getInstance_927().$childSerializers_1; + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp8_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp8_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KCampusMngQuizOperateReq.new_com_bapis_bilibili_app_dynamic_v2_KCampusMngQuizOperateReq_1fog87_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_y5joca_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_927().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.action === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.action); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.campusId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.campusId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !equals(value.quiz, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 2, tmp2_cached[2], value.quiz); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_y5joca_k$(encoder, value instanceof KCampusMngQuizOperateReq ? value : THROW_CCE()); + } + } + class KCampusMngQuizOperateReq { + constructor(action, campusId, quiz) { + Companion_getInstance_927(); + action = action === VOID ? 0 : action; + campusId = campusId === VOID ? new Long(0, 0) : campusId; + quiz = quiz === VOID ? emptyList() : quiz; + this.action = action; + this.campusId = campusId; + this.quiz = quiz; + } + get_action_avldmn_k$() { + return this.action; + } + get_campusId_y3vqhp_k$() { + return this.campusId; + } + get_quiz_wotace_k$() { + return this.quiz; + } + actionEnum() { + return Companion_getInstance_752().fromValue(this.action); + } + component1_7eebsc_k$() { + return this.action; + } + component2_7eebsb_k$() { + return this.campusId; + } + component3_7eebsa_k$() { + return this.quiz; + } + copy_nox7h7_k$(action, campusId, quiz) { + return new KCampusMngQuizOperateReq(action, campusId, quiz); + } + copy(action, campusId, quiz, $super) { + action = action === VOID ? this.action : action; + campusId = campusId === VOID ? this.campusId : campusId; + quiz = quiz === VOID ? this.quiz : quiz; + return this.copy_nox7h7_k$(action, campusId, quiz); + } + toString() { + return 'KCampusMngQuizOperateReq(action=' + this.action + ', campusId=' + this.campusId.toString() + ', quiz=' + this.quiz + ')'; + } + hashCode() { + var result = this.action; + result = imul(result, 31) + this.campusId.hashCode() | 0; + result = imul(result, 31) + hashCode(this.quiz) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KCampusMngQuizOperateReq)) + return false; + var tmp0_other_with_cast = other instanceof KCampusMngQuizOperateReq ? other : THROW_CCE(); + if (!(this.action === tmp0_other_with_cast.action)) + return false; + if (!this.campusId.equals(tmp0_other_with_cast.campusId)) + return false; + if (!equals(this.quiz, tmp0_other_with_cast.quiz)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KCampusMngQuizOperateReq_1fog87_k$(seen1, action, campusId, quiz, serializationConstructorMarker) { + Companion_getInstance_927(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_914().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.action = 0; + else + $this.action = action; + if (0 === (seen1 & 2)) + $this.campusId = new Long(0, 0); + else + $this.campusId = campusId; + if (0 === (seen1 & 4)) + $this.quiz = emptyList(); + else + $this.quiz = quiz; + return $this; + } + } + class Companion_928 { + constructor() { + Companion_instance_928 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, new ArrayListSerializer($serializer_getInstance_913()), null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.CampusMngQuizOperateReply'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_915(); + } + } + class $serializer_915 { + constructor() { + $serializer_instance_915 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KCampusMngQuizOperateReply', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('toast', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('quiz', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('quizTotal', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_928().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), tmp0_cached[1], LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = new Long(0, 0); + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp8_cached = Companion_getInstance_928().$childSerializers_1; + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp8_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp8_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KCampusMngQuizOperateReply.new_com_bapis_bilibili_app_dynamic_v2_KCampusMngQuizOperateReply_5x2i88_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_z3v6di_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_928().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.toast === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.toast); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !equals(value.quiz, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 1, tmp2_cached[1], value.quiz); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.quizTotal.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.quizTotal); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_z3v6di_k$(encoder, value instanceof KCampusMngQuizOperateReply ? value : THROW_CCE()); + } + } + class KCampusMngQuizOperateReply { + constructor(toast, quiz, quizTotal) { + Companion_getInstance_928(); + toast = toast === VOID ? '' : toast; + quiz = quiz === VOID ? emptyList() : quiz; + quizTotal = quizTotal === VOID ? new Long(0, 0) : quizTotal; + this.toast = toast; + this.quiz = quiz; + this.quizTotal = quizTotal; + } + get_toast_iz6iv2_k$() { + return this.toast; + } + get_quiz_wotace_k$() { + return this.quiz; + } + get_quizTotal_ug9pyy_k$() { + return this.quizTotal; + } + component1_7eebsc_k$() { + return this.toast; + } + component2_7eebsb_k$() { + return this.quiz; + } + component3_7eebsa_k$() { + return this.quizTotal; + } + copy_ans96d_k$(toast, quiz, quizTotal) { + return new KCampusMngQuizOperateReply(toast, quiz, quizTotal); + } + copy(toast, quiz, quizTotal, $super) { + toast = toast === VOID ? this.toast : toast; + quiz = quiz === VOID ? this.quiz : quiz; + quizTotal = quizTotal === VOID ? this.quizTotal : quizTotal; + return this.copy_ans96d_k$(toast, quiz, quizTotal); + } + toString() { + return 'KCampusMngQuizOperateReply(toast=' + this.toast + ', quiz=' + this.quiz + ', quizTotal=' + this.quizTotal.toString() + ')'; + } + hashCode() { + var result = getStringHashCode(this.toast); + result = imul(result, 31) + hashCode(this.quiz) | 0; + result = imul(result, 31) + this.quizTotal.hashCode() | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KCampusMngQuizOperateReply)) + return false; + var tmp0_other_with_cast = other instanceof KCampusMngQuizOperateReply ? other : THROW_CCE(); + if (!(this.toast === tmp0_other_with_cast.toast)) + return false; + if (!equals(this.quiz, tmp0_other_with_cast.quiz)) + return false; + if (!this.quizTotal.equals(tmp0_other_with_cast.quizTotal)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KCampusMngQuizOperateReply_5x2i88_k$(seen1, toast, quiz, quizTotal, serializationConstructorMarker) { + Companion_getInstance_928(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_915().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.toast = ''; + else + $this.toast = toast; + if (0 === (seen1 & 2)) + $this.quiz = emptyList(); + else + $this.quiz = quiz; + if (0 === (seen1 & 4)) + $this.quizTotal = new Long(0, 0); + else + $this.quizTotal = quizTotal; + return $this; + } + } + class Companion_929 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.LegacyTopicFeedReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_916(); + } + } + class $serializer_916 { + constructor() { + $serializer_instance_916 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KLegacyTopicFeedReq', this, 5); + tmp0_serialDesc.addElement_5pzumi_k$('topicId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('topicName', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('offset', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('sortType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('cardFilter', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_789()), get_nullable($serializer_getInstance_789())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp9_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_789(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_789(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + } else + while (tmp1_flag) { + tmp2_index = tmp9_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_789(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_789(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp9_input.endStructure_1xqz0n_k$(tmp0_desc); + return KLegacyTopicFeedReq.new_com_bapis_bilibili_app_dynamic_v2_KLegacyTopicFeedReq_geu5wm_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); + } + serialize_xrhn4g_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.topicId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.topicId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.topicName === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.topicName); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.offset === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.offset); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.sortType == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_789(), value.sortType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.cardFilter == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, $serializer_getInstance_789(), value.cardFilter); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_xrhn4g_k$(encoder, value instanceof KLegacyTopicFeedReq ? value : THROW_CCE()); + } + } + class KLegacyTopicFeedReq { + constructor(topicId, topicName, offset, sortType, cardFilter) { + Companion_instance_929; + topicId = topicId === VOID ? new Long(0, 0) : topicId; + topicName = topicName === VOID ? '' : topicName; + offset = offset === VOID ? '' : offset; + sortType = sortType === VOID ? null : sortType; + cardFilter = cardFilter === VOID ? null : cardFilter; + this.topicId = topicId; + this.topicName = topicName; + this.offset = offset; + this.sortType = sortType; + this.cardFilter = cardFilter; + } + get_topicId_hkqce7_k$() { + return this.topicId; + } + get_topicName_exnelt_k$() { + return this.topicName; + } + get_offset_hjmqak_k$() { + return this.offset; + } + get_sortType_4bib0f_k$() { + return this.sortType; + } + get_cardFilter_fqraof_k$() { + return this.cardFilter; + } + component1_7eebsc_k$() { + return this.topicId; + } + component2_7eebsb_k$() { + return this.topicName; + } + component3_7eebsa_k$() { + return this.offset; + } + component4_7eebs9_k$() { + return this.sortType; + } + component5_7eebs8_k$() { + return this.cardFilter; + } + copy_455f19_k$(topicId, topicName, offset, sortType, cardFilter) { + return new KLegacyTopicFeedReq(topicId, topicName, offset, sortType, cardFilter); + } + copy(topicId, topicName, offset, sortType, cardFilter, $super) { + topicId = topicId === VOID ? this.topicId : topicId; + topicName = topicName === VOID ? this.topicName : topicName; + offset = offset === VOID ? this.offset : offset; + sortType = sortType === VOID ? this.sortType : sortType; + cardFilter = cardFilter === VOID ? this.cardFilter : cardFilter; + return this.copy_455f19_k$(topicId, topicName, offset, sortType, cardFilter); + } + toString() { + return 'KLegacyTopicFeedReq(topicId=' + this.topicId.toString() + ', topicName=' + this.topicName + ', offset=' + this.offset + ', sortType=' + this.sortType + ', cardFilter=' + this.cardFilter + ')'; + } + hashCode() { + var result = this.topicId.hashCode(); + result = imul(result, 31) + getStringHashCode(this.topicName) | 0; + result = imul(result, 31) + getStringHashCode(this.offset) | 0; + result = imul(result, 31) + (this.sortType == null ? 0 : this.sortType.hashCode()) | 0; + result = imul(result, 31) + (this.cardFilter == null ? 0 : this.cardFilter.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KLegacyTopicFeedReq)) + return false; + var tmp0_other_with_cast = other instanceof KLegacyTopicFeedReq ? other : THROW_CCE(); + if (!this.topicId.equals(tmp0_other_with_cast.topicId)) + return false; + if (!(this.topicName === tmp0_other_with_cast.topicName)) + return false; + if (!(this.offset === tmp0_other_with_cast.offset)) + return false; + if (!equals(this.sortType, tmp0_other_with_cast.sortType)) + return false; + if (!equals(this.cardFilter, tmp0_other_with_cast.cardFilter)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KLegacyTopicFeedReq_geu5wm_k$(seen1, topicId, topicName, offset, sortType, cardFilter, serializationConstructorMarker) { + Companion_instance_929; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_916().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.topicId = new Long(0, 0); + else + $this.topicId = topicId; + if (0 === (seen1 & 2)) + $this.topicName = ''; + else + $this.topicName = topicName; + if (0 === (seen1 & 4)) + $this.offset = ''; + else + $this.offset = offset; + if (0 === (seen1 & 8)) + $this.sortType = null; + else + $this.sortType = sortType; + if (0 === (seen1 & 16)) + $this.cardFilter = null; + else + $this.cardFilter = cardFilter; + return $this; + } + } + class Companion_930 { + constructor() { + Companion_instance_930 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer($serializer_getInstance_942()), null, null, new ArrayListSerializer($serializer_getInstance_789()), new ArrayListSerializer($serializer_getInstance_789())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.LegacyTopicFeedReply'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_917(); + } + } + class $serializer_917 { + constructor() { + $serializer_instance_917 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KLegacyTopicFeedReply', this, 5); + tmp0_serialDesc.addElement_5pzumi_k$('list', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('hasMore', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('offset', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('supportedSortTypes', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('feedCardFilters', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_930().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0], BooleanSerializer_getInstance(), StringSerializer_getInstance(), tmp0_cached[3], tmp0_cached[4]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = false; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp10_cached = Companion_getInstance_930().$childSerializers_1; + if (tmp9_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp9_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp10_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp9_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp9_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 3, tmp10_cached[3], tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp9_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 4, tmp10_cached[4], tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + } else + while (tmp1_flag) { + tmp2_index = tmp9_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp9_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp10_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp9_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp9_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 3, tmp10_cached[3], tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp9_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 4, tmp10_cached[4], tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp9_input.endStructure_1xqz0n_k$(tmp0_desc); + return KLegacyTopicFeedReply.new_com_bapis_bilibili_app_dynamic_v2_KLegacyTopicFeedReply_z9k5d0_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); + } + serialize_rexhok_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_930().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.list, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.list); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.hasMore === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 1, value.hasMore); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.offset === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.offset); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !equals(value.supportedSortTypes, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 3, tmp2_cached[3], value.supportedSortTypes); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !equals(value.feedCardFilters, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 4, tmp2_cached[4], value.feedCardFilters); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_rexhok_k$(encoder, value instanceof KLegacyTopicFeedReply ? value : THROW_CCE()); + } + } + class KLegacyTopicFeedReply { + constructor(list, hasMore, offset, supportedSortTypes, feedCardFilters) { + Companion_getInstance_930(); + list = list === VOID ? emptyList() : list; + hasMore = hasMore === VOID ? false : hasMore; + offset = offset === VOID ? '' : offset; + supportedSortTypes = supportedSortTypes === VOID ? emptyList() : supportedSortTypes; + feedCardFilters = feedCardFilters === VOID ? emptyList() : feedCardFilters; + this.list = list; + this.hasMore = hasMore; + this.offset = offset; + this.supportedSortTypes = supportedSortTypes; + this.feedCardFilters = feedCardFilters; + } + get_list_wopuqv_k$() { + return this.list; + } + get_hasMore_csdhd2_k$() { + return this.hasMore; + } + get_offset_hjmqak_k$() { + return this.offset; + } + get_supportedSortTypes_dxvr4a_k$() { + return this.supportedSortTypes; + } + get_feedCardFilters_71hllo_k$() { + return this.feedCardFilters; + } + component1_7eebsc_k$() { + return this.list; + } + component2_7eebsb_k$() { + return this.hasMore; + } + component3_7eebsa_k$() { + return this.offset; + } + component4_7eebs9_k$() { + return this.supportedSortTypes; + } + component5_7eebs8_k$() { + return this.feedCardFilters; + } + copy_faxnyf_k$(list, hasMore, offset, supportedSortTypes, feedCardFilters) { + return new KLegacyTopicFeedReply(list, hasMore, offset, supportedSortTypes, feedCardFilters); + } + copy(list, hasMore, offset, supportedSortTypes, feedCardFilters, $super) { + list = list === VOID ? this.list : list; + hasMore = hasMore === VOID ? this.hasMore : hasMore; + offset = offset === VOID ? this.offset : offset; + supportedSortTypes = supportedSortTypes === VOID ? this.supportedSortTypes : supportedSortTypes; + feedCardFilters = feedCardFilters === VOID ? this.feedCardFilters : feedCardFilters; + return this.copy_faxnyf_k$(list, hasMore, offset, supportedSortTypes, feedCardFilters); + } + toString() { + return 'KLegacyTopicFeedReply(list=' + this.list + ', hasMore=' + this.hasMore + ', offset=' + this.offset + ', supportedSortTypes=' + this.supportedSortTypes + ', feedCardFilters=' + this.feedCardFilters + ')'; + } + hashCode() { + var result = hashCode(this.list); + result = imul(result, 31) + getBooleanHashCode(this.hasMore) | 0; + result = imul(result, 31) + getStringHashCode(this.offset) | 0; + result = imul(result, 31) + hashCode(this.supportedSortTypes) | 0; + result = imul(result, 31) + hashCode(this.feedCardFilters) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KLegacyTopicFeedReply)) + return false; + var tmp0_other_with_cast = other instanceof KLegacyTopicFeedReply ? other : THROW_CCE(); + if (!equals(this.list, tmp0_other_with_cast.list)) + return false; + if (!(this.hasMore === tmp0_other_with_cast.hasMore)) + return false; + if (!(this.offset === tmp0_other_with_cast.offset)) + return false; + if (!equals(this.supportedSortTypes, tmp0_other_with_cast.supportedSortTypes)) + return false; + if (!equals(this.feedCardFilters, tmp0_other_with_cast.feedCardFilters)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KLegacyTopicFeedReply_z9k5d0_k$(seen1, list, hasMore, offset, supportedSortTypes, feedCardFilters, serializationConstructorMarker) { + Companion_getInstance_930(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_917().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.list = emptyList(); + else + $this.list = list; + if (0 === (seen1 & 2)) + $this.hasMore = false; + else + $this.hasMore = hasMore; + if (0 === (seen1 & 4)) + $this.offset = ''; + else + $this.offset = offset; + if (0 === (seen1 & 8)) + $this.supportedSortTypes = emptyList(); + else + $this.supportedSortTypes = supportedSortTypes; + if (0 === (seen1 & 16)) + $this.feedCardFilters = emptyList(); + else + $this.feedCardFilters = feedCardFilters; + return $this; + } + } + class Companion_931 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.DynFriendReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_918(); + } + } + class $serializer_918 { + constructor() { + $serializer_instance_918 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KDynFriendReq', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('offset', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('localTime', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('playerArgs', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), IntSerializer_getInstance(), get_nullable($serializer_getInstance_152())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = 0; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_152(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_152(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KDynFriendReq.new_com_bapis_bilibili_app_dynamic_v2_KDynFriendReq_d87blb_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_33z8wt_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.offset === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.offset); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.localTime === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.localTime); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.playerArgs == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_152(), value.playerArgs); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_33z8wt_k$(encoder, value instanceof KDynFriendReq ? value : THROW_CCE()); + } + } + class KDynFriendReq { + constructor(offset, localTime, playerArgs) { + Companion_instance_931; + offset = offset === VOID ? '' : offset; + localTime = localTime === VOID ? 0 : localTime; + playerArgs = playerArgs === VOID ? null : playerArgs; + this.offset = offset; + this.localTime = localTime; + this.playerArgs = playerArgs; + } + get_offset_hjmqak_k$() { + return this.offset; + } + get_localTime_bf0zwx_k$() { + return this.localTime; + } + get_playerArgs_eh86hz_k$() { + return this.playerArgs; + } + component1_7eebsc_k$() { + return this.offset; + } + component2_7eebsb_k$() { + return this.localTime; + } + component3_7eebsa_k$() { + return this.playerArgs; + } + copy_5t72pq_k$(offset, localTime, playerArgs) { + return new KDynFriendReq(offset, localTime, playerArgs); + } + copy(offset, localTime, playerArgs, $super) { + offset = offset === VOID ? this.offset : offset; + localTime = localTime === VOID ? this.localTime : localTime; + playerArgs = playerArgs === VOID ? this.playerArgs : playerArgs; + return this.copy_5t72pq_k$(offset, localTime, playerArgs); + } + toString() { + return 'KDynFriendReq(offset=' + this.offset + ', localTime=' + this.localTime + ', playerArgs=' + this.playerArgs + ')'; + } + hashCode() { + var result = getStringHashCode(this.offset); + result = imul(result, 31) + this.localTime | 0; + result = imul(result, 31) + (this.playerArgs == null ? 0 : this.playerArgs.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KDynFriendReq)) + return false; + var tmp0_other_with_cast = other instanceof KDynFriendReq ? other : THROW_CCE(); + if (!(this.offset === tmp0_other_with_cast.offset)) + return false; + if (!(this.localTime === tmp0_other_with_cast.localTime)) + return false; + if (!equals(this.playerArgs, tmp0_other_with_cast.playerArgs)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KDynFriendReq_d87blb_k$(seen1, offset, localTime, playerArgs, serializationConstructorMarker) { + Companion_instance_931; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_918().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.offset = ''; + else + $this.offset = offset; + if (0 === (seen1 & 2)) + $this.localTime = 0; + else + $this.localTime = localTime; + if (0 === (seen1 & 4)) + $this.playerArgs = null; + else + $this.playerArgs = playerArgs; + return $this; + } + } + class Companion_932 { + constructor() { + Companion_instance_932 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer($serializer_getInstance_942()), null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.DynFriendReply'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_919(); + } + } + class $serializer_919 { + constructor() { + $serializer_instance_919 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KDynFriendReply', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('dynList', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('hasMore', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('offset', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_932().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0], BooleanSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = false; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp8_cached = Companion_getInstance_932().$childSerializers_1; + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp8_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp8_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KDynFriendReply.new_com_bapis_bilibili_app_dynamic_v2_KDynFriendReply_61467d_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_z8ubzd_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_932().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.dynList, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.dynList); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.hasMore === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 1, value.hasMore); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.offset === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.offset); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_z8ubzd_k$(encoder, value instanceof KDynFriendReply ? value : THROW_CCE()); + } + } + class KDynFriendReply { + constructor(dynList, hasMore, offset) { + Companion_getInstance_932(); + dynList = dynList === VOID ? emptyList() : dynList; + hasMore = hasMore === VOID ? false : hasMore; + offset = offset === VOID ? '' : offset; + this.dynList = dynList; + this.hasMore = hasMore; + this.offset = offset; + } + get_dynList_ymwgfm_k$() { + return this.dynList; + } + get_hasMore_csdhd2_k$() { + return this.hasMore; + } + get_offset_hjmqak_k$() { + return this.offset; + } + component1_7eebsc_k$() { + return this.dynList; + } + component2_7eebsb_k$() { + return this.hasMore; + } + component3_7eebsa_k$() { + return this.offset; + } + copy_9bme1t_k$(dynList, hasMore, offset) { + return new KDynFriendReply(dynList, hasMore, offset); + } + copy(dynList, hasMore, offset, $super) { + dynList = dynList === VOID ? this.dynList : dynList; + hasMore = hasMore === VOID ? this.hasMore : hasMore; + offset = offset === VOID ? this.offset : offset; + return this.copy_9bme1t_k$(dynList, hasMore, offset); + } + toString() { + return 'KDynFriendReply(dynList=' + this.dynList + ', hasMore=' + this.hasMore + ', offset=' + this.offset + ')'; + } + hashCode() { + var result = hashCode(this.dynList); + result = imul(result, 31) + getBooleanHashCode(this.hasMore) | 0; + result = imul(result, 31) + getStringHashCode(this.offset) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KDynFriendReply)) + return false; + var tmp0_other_with_cast = other instanceof KDynFriendReply ? other : THROW_CCE(); + if (!equals(this.dynList, tmp0_other_with_cast.dynList)) + return false; + if (!(this.hasMore === tmp0_other_with_cast.hasMore)) + return false; + if (!(this.offset === tmp0_other_with_cast.offset)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KDynFriendReply_61467d_k$(seen1, dynList, hasMore, offset, serializationConstructorMarker) { + Companion_getInstance_932(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_919().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.dynList = emptyList(); + else + $this.dynList = dynList; + if (0 === (seen1 & 2)) + $this.hasMore = false; + else + $this.hasMore = hasMore; + if (0 === (seen1 & 4)) + $this.offset = ''; + else + $this.offset = offset; + return $this; + } + } + class Companion_933 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.ReactionListReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_920(); + } + } + class $serializer_920 { + constructor() { + $serializer_instance_920 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KReactionListReq', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('dynamicId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('dynType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('rid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('offset', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = new Long(0, 0); + var tmp6_local2 = new Long(0, 0); + var tmp7_local3 = null; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KReactionListReq.new_com_bapis_bilibili_app_dynamic_v2_KReactionListReq_d5c66k_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_w44k3p_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.dynamicId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.dynamicId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.dynType.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.dynType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.rid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.rid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.offset === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.offset); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_w44k3p_k$(encoder, value instanceof KReactionListReq ? value : THROW_CCE()); + } + } + class KReactionListReq { + constructor(dynamicId, dynType, rid, offset) { + Companion_instance_933; + dynamicId = dynamicId === VOID ? new Long(0, 0) : dynamicId; + dynType = dynType === VOID ? new Long(0, 0) : dynType; + rid = rid === VOID ? new Long(0, 0) : rid; + offset = offset === VOID ? '' : offset; + this.dynamicId = dynamicId; + this.dynType = dynType; + this.rid = rid; + this.offset = offset; + } + get_dynamicId_wvqga7_k$() { + return this.dynamicId; + } + get_dynType_ymr0ra_k$() { + return this.dynType; + } + get_rid_18iwyk_k$() { + return this.rid; + } + get_offset_hjmqak_k$() { + return this.offset; + } + component1_7eebsc_k$() { + return this.dynamicId; + } + component2_7eebsb_k$() { + return this.dynType; + } + component3_7eebsa_k$() { + return this.rid; + } + component4_7eebs9_k$() { + return this.offset; + } + copy_srocx7_k$(dynamicId, dynType, rid, offset) { + return new KReactionListReq(dynamicId, dynType, rid, offset); + } + copy(dynamicId, dynType, rid, offset, $super) { + dynamicId = dynamicId === VOID ? this.dynamicId : dynamicId; + dynType = dynType === VOID ? this.dynType : dynType; + rid = rid === VOID ? this.rid : rid; + offset = offset === VOID ? this.offset : offset; + return this.copy_srocx7_k$(dynamicId, dynType, rid, offset); + } + toString() { + return 'KReactionListReq(dynamicId=' + this.dynamicId.toString() + ', dynType=' + this.dynType.toString() + ', rid=' + this.rid.toString() + ', offset=' + this.offset + ')'; + } + hashCode() { + var result = this.dynamicId.hashCode(); + result = imul(result, 31) + this.dynType.hashCode() | 0; + result = imul(result, 31) + this.rid.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.offset) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KReactionListReq)) + return false; + var tmp0_other_with_cast = other instanceof KReactionListReq ? other : THROW_CCE(); + if (!this.dynamicId.equals(tmp0_other_with_cast.dynamicId)) + return false; + if (!this.dynType.equals(tmp0_other_with_cast.dynType)) + return false; + if (!this.rid.equals(tmp0_other_with_cast.rid)) + return false; + if (!(this.offset === tmp0_other_with_cast.offset)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KReactionListReq_d5c66k_k$(seen1, dynamicId, dynType, rid, offset, serializationConstructorMarker) { + Companion_instance_933; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_920().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.dynamicId = new Long(0, 0); + else + $this.dynamicId = dynamicId; + if (0 === (seen1 & 2)) + $this.dynType = new Long(0, 0); + else + $this.dynType = dynType; + if (0 === (seen1 & 4)) + $this.rid = new Long(0, 0); + else + $this.rid = rid; + if (0 === (seen1 & 8)) + $this.offset = ''; + else + $this.offset = offset; + return $this; + } + } + class Companion_934 { + constructor() { + Companion_instance_934 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, new ArrayListSerializer($serializer_getInstance_922()), null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.ReactionListReply'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_921(); + } + } + class $serializer_921 { + constructor() { + $serializer_instance_921 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KReactionListReply', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('reactionList', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('offset', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('hasMore', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_934().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), tmp0_cached[1], StringSerializer_getInstance(), BooleanSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = false; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp9_cached = Companion_getInstance_934().$childSerializers_1; + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp9_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp9_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KReactionListReply.new_com_bapis_bilibili_app_dynamic_v2_KReactionListReply_xcdoac_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_5f5249_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_934().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !equals(value.reactionList, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 1, tmp2_cached[1], value.reactionList); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.offset === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.offset); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.hasMore === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 3, value.hasMore); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_5f5249_k$(encoder, value instanceof KReactionListReply ? value : THROW_CCE()); + } + } + class KReactionListReply { + constructor(title, reactionList, offset, hasMore) { + Companion_getInstance_934(); + title = title === VOID ? '' : title; + reactionList = reactionList === VOID ? emptyList() : reactionList; + offset = offset === VOID ? '' : offset; + hasMore = hasMore === VOID ? false : hasMore; + this.title = title; + this.reactionList = reactionList; + this.offset = offset; + this.hasMore = hasMore; + } + get_title_iz32un_k$() { + return this.title; + } + get_reactionList_nu9dn4_k$() { + return this.reactionList; + } + get_offset_hjmqak_k$() { + return this.offset; + } + get_hasMore_csdhd2_k$() { + return this.hasMore; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.reactionList; + } + component3_7eebsa_k$() { + return this.offset; + } + component4_7eebs9_k$() { + return this.hasMore; + } + copy_2jnfgl_k$(title, reactionList, offset, hasMore) { + return new KReactionListReply(title, reactionList, offset, hasMore); + } + copy(title, reactionList, offset, hasMore, $super) { + title = title === VOID ? this.title : title; + reactionList = reactionList === VOID ? this.reactionList : reactionList; + offset = offset === VOID ? this.offset : offset; + hasMore = hasMore === VOID ? this.hasMore : hasMore; + return this.copy_2jnfgl_k$(title, reactionList, offset, hasMore); + } + toString() { + return 'KReactionListReply(title=' + this.title + ', reactionList=' + this.reactionList + ', offset=' + this.offset + ', hasMore=' + this.hasMore + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + hashCode(this.reactionList) | 0; + result = imul(result, 31) + getStringHashCode(this.offset) | 0; + result = imul(result, 31) + getBooleanHashCode(this.hasMore) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KReactionListReply)) + return false; + var tmp0_other_with_cast = other instanceof KReactionListReply ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!equals(this.reactionList, tmp0_other_with_cast.reactionList)) + return false; + if (!(this.offset === tmp0_other_with_cast.offset)) + return false; + if (!(this.hasMore === tmp0_other_with_cast.hasMore)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KReactionListReply_xcdoac_k$(seen1, title, reactionList, offset, hasMore, serializationConstructorMarker) { + Companion_getInstance_934(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_921().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.reactionList = emptyList(); + else + $this.reactionList = reactionList; + if (0 === (seen1 & 4)) + $this.offset = ''; + else + $this.offset = offset; + if (0 === (seen1 & 8)) + $this.hasMore = false; + else + $this.hasMore = hasMore; + return $this; + } + } + class Companion_935 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.ReactionListItem'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_922(); + } + } + class $serializer_922 { + constructor() { + $serializer_instance_922 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KReactionListItem', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('user', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('relation', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('actText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('rcmdReason', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_956()), get_nullable($serializer_getInstance_967()), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_956(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_967(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_956(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_967(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KReactionListItem.new_com_bapis_bilibili_app_dynamic_v2_KReactionListItem_jl0a5v_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_nucdow_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.user == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_956(), value.user); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.relation == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_967(), value.relation); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.actText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.actText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.rcmdReason === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.rcmdReason); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_nucdow_k$(encoder, value instanceof KReactionListItem ? value : THROW_CCE()); + } + } + class KReactionListItem { + constructor(user, relation, actText, rcmdReason) { + Companion_instance_935; + user = user === VOID ? null : user; + relation = relation === VOID ? null : relation; + actText = actText === VOID ? '' : actText; + rcmdReason = rcmdReason === VOID ? '' : rcmdReason; + this.user = user; + this.relation = relation; + this.actText = actText; + this.rcmdReason = rcmdReason; + } + get_user_wovspg_k$() { + return this.user; + } + get_relation_u22tol_k$() { + return this.relation; + } + get_actText_hyj56y_k$() { + return this.actText; + } + get_rcmdReason_lci9h1_k$() { + return this.rcmdReason; + } + component1_7eebsc_k$() { + return this.user; + } + component2_7eebsb_k$() { + return this.relation; + } + component3_7eebsa_k$() { + return this.actText; + } + component4_7eebs9_k$() { + return this.rcmdReason; + } + copy_o6ddqi_k$(user, relation, actText, rcmdReason) { + return new KReactionListItem(user, relation, actText, rcmdReason); + } + copy(user, relation, actText, rcmdReason, $super) { + user = user === VOID ? this.user : user; + relation = relation === VOID ? this.relation : relation; + actText = actText === VOID ? this.actText : actText; + rcmdReason = rcmdReason === VOID ? this.rcmdReason : rcmdReason; + return this.copy_o6ddqi_k$(user, relation, actText, rcmdReason); + } + toString() { + return 'KReactionListItem(user=' + this.user + ', relation=' + this.relation + ', actText=' + this.actText + ', rcmdReason=' + this.rcmdReason + ')'; + } + hashCode() { + var result = this.user == null ? 0 : this.user.hashCode(); + result = imul(result, 31) + (this.relation == null ? 0 : this.relation.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.actText) | 0; + result = imul(result, 31) + getStringHashCode(this.rcmdReason) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KReactionListItem)) + return false; + var tmp0_other_with_cast = other instanceof KReactionListItem ? other : THROW_CCE(); + if (!equals(this.user, tmp0_other_with_cast.user)) + return false; + if (!equals(this.relation, tmp0_other_with_cast.relation)) + return false; + if (!(this.actText === tmp0_other_with_cast.actText)) + return false; + if (!(this.rcmdReason === tmp0_other_with_cast.rcmdReason)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KReactionListItem_jl0a5v_k$(seen1, user, relation, actText, rcmdReason, serializationConstructorMarker) { + Companion_instance_935; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_922().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.user = null; + else + $this.user = user; + if (0 === (seen1 & 2)) + $this.relation = null; + else + $this.relation = relation; + if (0 === (seen1 & 4)) + $this.actText = ''; + else + $this.actText = actText; + if (0 === (seen1 & 8)) + $this.rcmdReason = ''; + else + $this.rcmdReason = rcmdReason; + return $this; + } + } + class Companion_936 { + constructor() { + Companion_instance_936 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KDynamicType$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KDynamicType$Companion$_anonymous__60svvl); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_94(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KDynamicType_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KDynamicType with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_94(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_923 { + constructor() { + $serializer_instance_923 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.dynamic.v2.KDynamicType', 30); + tmp0_serialDesc.addElement_5pzumi_k$('DYN_NONE', false); + tmp0_serialDesc.addElement_5pzumi_k$('FORWARD', false); + tmp0_serialDesc.addElement_5pzumi_k$('AV', false); + tmp0_serialDesc.addElement_5pzumi_k$('PGC', false); + tmp0_serialDesc.addElement_5pzumi_k$('COURSES', false); + tmp0_serialDesc.addElement_5pzumi_k$('FOLD', false); + tmp0_serialDesc.addElement_5pzumi_k$('WORD', false); + tmp0_serialDesc.addElement_5pzumi_k$('DRAW', false); + tmp0_serialDesc.addElement_5pzumi_k$('ARTICLE', false); + tmp0_serialDesc.addElement_5pzumi_k$('MUSIC', false); + tmp0_serialDesc.addElement_5pzumi_k$('COMMON_SQUARE', false); + tmp0_serialDesc.addElement_5pzumi_k$('COMMON_VERTICAL', false); + tmp0_serialDesc.addElement_5pzumi_k$('LIVE', false); + tmp0_serialDesc.addElement_5pzumi_k$('MEDIALIST', false); + tmp0_serialDesc.addElement_5pzumi_k$('COURSES_SEASON', false); + tmp0_serialDesc.addElement_5pzumi_k$('AD', false); + tmp0_serialDesc.addElement_5pzumi_k$('APPLET', false); + tmp0_serialDesc.addElement_5pzumi_k$('SUBSCRIPTION', false); + tmp0_serialDesc.addElement_5pzumi_k$('LIVE_RCMD', false); + tmp0_serialDesc.addElement_5pzumi_k$('BANNER', false); + tmp0_serialDesc.addElement_5pzumi_k$('UGC_SEASON', false); + tmp0_serialDesc.addElement_5pzumi_k$('SUBSCRIPTION_NEW', false); + tmp0_serialDesc.addElement_5pzumi_k$('STORY', false); + tmp0_serialDesc.addElement_5pzumi_k$('TOPIC_RCMD', false); + tmp0_serialDesc.addElement_5pzumi_k$('COUR_UP', false); + tmp0_serialDesc.addElement_5pzumi_k$('TOPIC_SET', false); + tmp0_serialDesc.addElement_5pzumi_k$('NOTICE', false); + tmp0_serialDesc.addElement_5pzumi_k$('TEXT_NOTICE', false); + tmp0_serialDesc.addElement_5pzumi_k$('ONETIME_NOTICE', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_94()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_kbns5m_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_kbns5m_k$(encoder, value instanceof KDynamicType ? value : THROW_CCE()); + } + } + class KDynamicType extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_937 { + constructor() { + Companion_instance_937 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KDynModuleType$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KDynModuleType$Companion$_anonymous__bknf8l); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_95(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KDynModuleType_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KDynModuleType with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_95(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_924 { + constructor() { + $serializer_instance_924 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.dynamic.v2.KDynModuleType', 38); + tmp0_serialDesc.addElement_5pzumi_k$('MODULE_NONE', false); + tmp0_serialDesc.addElement_5pzumi_k$('MODULE_AUTHOR', false); + tmp0_serialDesc.addElement_5pzumi_k$('MODULE_DISPUTE', false); + tmp0_serialDesc.addElement_5pzumi_k$('MODULE_DESC', false); + tmp0_serialDesc.addElement_5pzumi_k$('MODULE_DYNAMIC', false); + tmp0_serialDesc.addElement_5pzumi_k$('MODULE_FORWARD', false); + tmp0_serialDesc.addElement_5pzumi_k$('MODULE_LIKE_USER', false); + tmp0_serialDesc.addElement_5pzumi_k$('MODULE_EXTEND', false); + tmp0_serialDesc.addElement_5pzumi_k$('MODULE_ADDITIONAL', false); + tmp0_serialDesc.addElement_5pzumi_k$('MODULE_STAT', false); + tmp0_serialDesc.addElement_5pzumi_k$('MODULE_FOLD', false); + tmp0_serialDesc.addElement_5pzumi_k$('MODULE_COMMENT', false); + tmp0_serialDesc.addElement_5pzumi_k$('MODULE_INTERACTION', false); + tmp0_serialDesc.addElement_5pzumi_k$('MODULE_AUTHOR_FORWARD', false); + tmp0_serialDesc.addElement_5pzumi_k$('MODULE_AD', false); + tmp0_serialDesc.addElement_5pzumi_k$('MODULE_BANNER', false); + tmp0_serialDesc.addElement_5pzumi_k$('MODULE_ITEM_NULL', false); + tmp0_serialDesc.addElement_5pzumi_k$('MODULE_SHARE_INFO', false); + tmp0_serialDesc.addElement_5pzumi_k$('MODULE_RECOMMEND', false); + tmp0_serialDesc.addElement_5pzumi_k$('MODULE_STAT_FORWARD', false); + tmp0_serialDesc.addElement_5pzumi_k$('MODULE_TOP', false); + tmp0_serialDesc.addElement_5pzumi_k$('MODULE_BOTTOM', false); + tmp0_serialDesc.addElement_5pzumi_k$('MODULE_STORY', false); + tmp0_serialDesc.addElement_5pzumi_k$('MODULE_TOPIC', false); + tmp0_serialDesc.addElement_5pzumi_k$('MODULE_TOPIC_DETAILS_EXT', false); + tmp0_serialDesc.addElement_5pzumi_k$('MODULE_TOP_TAG', false); + tmp0_serialDesc.addElement_5pzumi_k$('MODULE_TOPIC_BRIEF', false); + tmp0_serialDesc.addElement_5pzumi_k$('MODULE_TITLE', false); + tmp0_serialDesc.addElement_5pzumi_k$('MODULE_BUTTON', false); + tmp0_serialDesc.addElement_5pzumi_k$('MODULE_NOTICE', false); + tmp0_serialDesc.addElement_5pzumi_k$('MODULE_OPUS_SUMMARY', false); + tmp0_serialDesc.addElement_5pzumi_k$('MODULE_COPYRIGHT', false); + tmp0_serialDesc.addElement_5pzumi_k$('MODULE_PARAGRAPH', false); + tmp0_serialDesc.addElement_5pzumi_k$('MODULE_BLOCKED', false); + tmp0_serialDesc.addElement_5pzumi_k$('MODULE_TEXT_NOTICE', false); + tmp0_serialDesc.addElement_5pzumi_k$('MODULE_OPUS_COLLECTION', false); + tmp0_serialDesc.addElement_5pzumi_k$('MODULE_ONETIME_NOTICE', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_95()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_mco6kk_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_mco6kk_k$(encoder, value instanceof KDynModuleType ? value : THROW_CCE()); + } + } + class KDynModuleType extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_938 { + constructor() { + Companion_instance_938 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KDescType$Companion$values$delegate$lambda_0); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KDescType$Companion$_anonymous__rshgh3_0); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_96(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KDescType_UNRECOGNIZED_getInstance_0() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KDescType with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_96(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_925 { + constructor() { + $serializer_instance_925 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.dynamic.v2.KDescType', 20); + tmp0_serialDesc.addElement_5pzumi_k$('NONE', false); + tmp0_serialDesc.addElement_5pzumi_k$('TEXT', false); + tmp0_serialDesc.addElement_5pzumi_k$('AITE', false); + tmp0_serialDesc.addElement_5pzumi_k$('LOTTERY', false); + tmp0_serialDesc.addElement_5pzumi_k$('VOTE', false); + tmp0_serialDesc.addElement_5pzumi_k$('TOPIC', false); + tmp0_serialDesc.addElement_5pzumi_k$('GOODS', false); + tmp0_serialDesc.addElement_5pzumi_k$('BV', false); + tmp0_serialDesc.addElement_5pzumi_k$('AV', false); + tmp0_serialDesc.addElement_5pzumi_k$('EMOJI', false); + tmp0_serialDesc.addElement_5pzumi_k$('USER', false); + tmp0_serialDesc.addElement_5pzumi_k$('CV', false); + tmp0_serialDesc.addElement_5pzumi_k$('VC', false); + tmp0_serialDesc.addElement_5pzumi_k$('WEB', false); + tmp0_serialDesc.addElement_5pzumi_k$('TAOBAO', false); + tmp0_serialDesc.addElement_5pzumi_k$('MAIL', false); + tmp0_serialDesc.addElement_5pzumi_k$('OGV_SEASON', false); + tmp0_serialDesc.addElement_5pzumi_k$('OGV_EP', false); + tmp0_serialDesc.addElement_5pzumi_k$('SEARCH_WORD', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_96()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_d2l1bu_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_d2l1bu_k$(encoder, value instanceof KDescType_0 ? value : THROW_CCE()); + } + } + class KDescType_0 extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_939 { + constructor() { + Companion_instance_939 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KEmojiType$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KEmojiType$Companion$_anonymous__sciucm); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_97(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KEmojiType_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KEmojiType with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_97(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_926 { + constructor() { + $serializer_instance_926 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.dynamic.v2.KEmojiType', 5); + tmp0_serialDesc.addElement_5pzumi_k$('EMOJI_NONE', false); + tmp0_serialDesc.addElement_5pzumi_k$('EMOJI_OLD', false); + tmp0_serialDesc.addElement_5pzumi_k$('EMOJI_NEW', false); + tmp0_serialDesc.addElement_5pzumi_k$('VIP', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_97()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_dqykgz_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_dqykgz_k$(encoder, value instanceof KEmojiType ? value : THROW_CCE()); + } + } + class KEmojiType extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_940 { + constructor() { + Companion_instance_940 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KNFTRegionType$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KNFTRegionType$Companion$_anonymous__1u92z4); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_98(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KNFTRegionType_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KNFTRegionType with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_98(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_927 { + constructor() { + $serializer_instance_927 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.dynamic.v2.KNFTRegionType', 4); + tmp0_serialDesc.addElement_5pzumi_k$('NFT_REGION_DEFAULT', false); + tmp0_serialDesc.addElement_5pzumi_k$('NFT_REGION_MAINLANG', false); + tmp0_serialDesc.addElement_5pzumi_k$('NFT_REGION_GAT', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_98()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_2u89wn_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_2u89wn_k$(encoder, value instanceof KNFTRegionType ? value : THROW_CCE()); + } + } + class KNFTRegionType extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_941 { + constructor() { + Companion_instance_941 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KNFTShowStatus$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KNFTShowStatus$Companion$_anonymous__xlf0un); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_99(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KNFTShowStatus_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KNFTShowStatus with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_99(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_928 { + constructor() { + $serializer_instance_928 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.dynamic.v2.KNFTShowStatus', 4); + tmp0_serialDesc.addElement_5pzumi_k$('NFT_SHOW_DEFAULT', false); + tmp0_serialDesc.addElement_5pzumi_k$('NFT_SHOW_ZOOMINMAINLANG', false); + tmp0_serialDesc.addElement_5pzumi_k$('NFT_SHOW_RAW', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_99()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_pcfcy0_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_pcfcy0_k$(encoder, value instanceof KNFTShowStatus ? value : THROW_CCE()); + } + } + class KNFTShowStatus extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_942 { + constructor() { + Companion_instance_942 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KModuleAuthorBadgeType$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KModuleAuthorBadgeType$Companion$_anonymous__kv9nis); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_100(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KModuleAuthorBadgeType_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KModuleAuthorBadgeType with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_100(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_929 { + constructor() { + $serializer_instance_929 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.dynamic.v2.KModuleAuthorBadgeType', 5); + tmp0_serialDesc.addElement_5pzumi_k$('NONE', false); + tmp0_serialDesc.addElement_5pzumi_k$('THREE_POINT', false); + tmp0_serialDesc.addElement_5pzumi_k$('BUTTON', false); + tmp0_serialDesc.addElement_5pzumi_k$('WEIGHT', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_100()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_f2ed2b_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_f2ed2b_k$(encoder, value instanceof KModuleAuthorBadgeType ? value : THROW_CCE()); + } + } + class KModuleAuthorBadgeType extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_943 { + constructor() { + Companion_instance_943 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KRelationStatus$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KRelationStatus$Companion$_anonymous__p1t22y); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_101(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KRelationStatus_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KRelationStatus with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_101(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_930 { + constructor() { + $serializer_instance_930 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.dynamic.v2.KRelationStatus', 7); + tmp0_serialDesc.addElement_5pzumi_k$('NONE', false); + tmp0_serialDesc.addElement_5pzumi_k$('NOFOLLOW', false); + tmp0_serialDesc.addElement_5pzumi_k$('FOLLOW', false); + tmp0_serialDesc.addElement_5pzumi_k$('FOLLOWED', false); + tmp0_serialDesc.addElement_5pzumi_k$('MUTUAL_CONCERN', false); + tmp0_serialDesc.addElement_5pzumi_k$('SPECIAL', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_101()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_5aicoz_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_5aicoz_k$(encoder, value instanceof KRelationStatus ? value : THROW_CCE()); + } + } + class KRelationStatus extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_944 { + constructor() { + Companion_instance_944 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KWeightType$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KWeightType$Companion$_anonymous__wctng2); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_102(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KWeightType_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KWeightType with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_102(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_931 { + constructor() { + $serializer_instance_931 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.dynamic.v2.KWeightType', 4); + tmp0_serialDesc.addElement_5pzumi_k$('WEIGHT_NONE', false); + tmp0_serialDesc.addElement_5pzumi_k$('WEIGHT_DISLIKE', false); + tmp0_serialDesc.addElement_5pzumi_k$('WEIGHT_JUMP', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_102()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_yzacjj_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_yzacjj_k$(encoder, value instanceof KWeightType ? value : THROW_CCE()); + } + } + class KWeightType extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_945 { + constructor() { + Companion_instance_945 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KThreePointType$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KThreePointType$Companion$_anonymous__40m4t4); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_103(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KThreePointType_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KThreePointType with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_103(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_932 { + constructor() { + $serializer_instance_932 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.dynamic.v2.KThreePointType', 22); + tmp0_serialDesc.addElement_5pzumi_k$('TP_NONE', false); + tmp0_serialDesc.addElement_5pzumi_k$('BACKGROUND', false); + tmp0_serialDesc.addElement_5pzumi_k$('AUTO_PLAY', false); + tmp0_serialDesc.addElement_5pzumi_k$('SHARE', false); + tmp0_serialDesc.addElement_5pzumi_k$('WAIT', false); + tmp0_serialDesc.addElement_5pzumi_k$('ATTENTION', false); + tmp0_serialDesc.addElement_5pzumi_k$('REPORT', false); + tmp0_serialDesc.addElement_5pzumi_k$('DELETE', false); + tmp0_serialDesc.addElement_5pzumi_k$('DISLIKE', false); + tmp0_serialDesc.addElement_5pzumi_k$('FAVORITE', false); + tmp0_serialDesc.addElement_5pzumi_k$('TOP', false); + tmp0_serialDesc.addElement_5pzumi_k$('COMMENT', false); + tmp0_serialDesc.addElement_5pzumi_k$('HIDE', false); + tmp0_serialDesc.addElement_5pzumi_k$('CAMPUS_DELETE', false); + tmp0_serialDesc.addElement_5pzumi_k$('TOPIC_IRRELEVANT', false); + tmp0_serialDesc.addElement_5pzumi_k$('BATCH_CANCEL', false); + tmp0_serialDesc.addElement_5pzumi_k$('TOPIC_SET_CANCEL', false); + tmp0_serialDesc.addElement_5pzumi_k$('DYNAMIC_EDIT', false); + tmp0_serialDesc.addElement_5pzumi_k$('CREATE_VIDEO', false); + tmp0_serialDesc.addElement_5pzumi_k$('COIN', false); + tmp0_serialDesc.addElement_5pzumi_k$('OGV_SUBSCRIBE', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_103()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_w95knv_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_w95knv_k$(encoder, value instanceof KThreePointType ? value : THROW_CCE()); + } + } + class KThreePointType extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_946 { + constructor() { + Companion_instance_946 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KThreePointAttentionStatus$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KThreePointAttentionStatus$Companion$_anonymous__kh76pw); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_104(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KThreePointAttentionStatus_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KThreePointAttentionStatus with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_104(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_933 { + constructor() { + $serializer_instance_933 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.dynamic.v2.KThreePointAttentionStatus', 3); + tmp0_serialDesc.addElement_5pzumi_k$('TP_NOT_ATTENTION', false); + tmp0_serialDesc.addElement_5pzumi_k$('TP_ATTENTION', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_104()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_r8d3k5_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_r8d3k5_k$(encoder, value instanceof KThreePointAttentionStatus ? value : THROW_CCE()); + } + } + class KThreePointAttentionStatus extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_947 { + constructor() { + Companion_instance_947 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KTopType$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KTopType$Companion$_anonymous__m4sr4b); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_105(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KTopType_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KTopType with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_105(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_934 { + constructor() { + $serializer_instance_934 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.dynamic.v2.KTopType', 3); + tmp0_serialDesc.addElement_5pzumi_k$('TOP_NONE', false); + tmp0_serialDesc.addElement_5pzumi_k$('TOP_CANCEL', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_105()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_v4mo0c_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_v4mo0c_k$(encoder, value instanceof KTopType ? value : THROW_CCE()); + } + } + class KTopType extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_948 { + constructor() { + Companion_instance_948 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KModuleDynamicType$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KModuleDynamicType$Companion$_anonymous__zbiocz); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_106(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KModuleDynamicType_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KModuleDynamicType with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_106(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_935 { + constructor() { + $serializer_instance_935 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.dynamic.v2.KModuleDynamicType', 19); + tmp0_serialDesc.addElement_5pzumi_k$('MDL_DYN_ARCHIVE', false); + tmp0_serialDesc.addElement_5pzumi_k$('MDL_DYN_PGC', false); + tmp0_serialDesc.addElement_5pzumi_k$('MDL_DYN_COUR_SEASON', false); + tmp0_serialDesc.addElement_5pzumi_k$('MDL_DYN_COUR_BATCH', false); + tmp0_serialDesc.addElement_5pzumi_k$('MDL_DYN_FORWARD', false); + tmp0_serialDesc.addElement_5pzumi_k$('MDL_DYN_DRAW', false); + tmp0_serialDesc.addElement_5pzumi_k$('MDL_DYN_ARTICLE', false); + tmp0_serialDesc.addElement_5pzumi_k$('MDL_DYN_MUSIC', false); + tmp0_serialDesc.addElement_5pzumi_k$('MDL_DYN_COMMON', false); + tmp0_serialDesc.addElement_5pzumi_k$('MDL_DYN_LIVE', false); + tmp0_serialDesc.addElement_5pzumi_k$('MDL_DYN_MEDIALIST', false); + tmp0_serialDesc.addElement_5pzumi_k$('MDL_DYN_APPLET', false); + tmp0_serialDesc.addElement_5pzumi_k$('MDL_DYN_SUBSCRIPTION', false); + tmp0_serialDesc.addElement_5pzumi_k$('MDL_DYN_LIVE_RCMD', false); + tmp0_serialDesc.addElement_5pzumi_k$('MDL_DYN_UGC_SEASON', false); + tmp0_serialDesc.addElement_5pzumi_k$('MDL_DYN_SUBSCRIPTION_NEW', false); + tmp0_serialDesc.addElement_5pzumi_k$('MDL_DYN_COUR_UP', false); + tmp0_serialDesc.addElement_5pzumi_k$('MDL_DYN_TOPIC_SET', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_106()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_c6tqmu_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_c6tqmu_k$(encoder, value instanceof KModuleDynamicType ? value : THROW_CCE()); + } + } + class KModuleDynamicType extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_949 { + constructor() { + Companion_instance_949 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KDynExtendType$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KDynExtendType$Companion$_anonymous__h29xil); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_107(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KDynExtendType_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KDynExtendType with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_107(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_936 { + constructor() { + $serializer_instance_936 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.dynamic.v2.KDynExtendType', 10); + tmp0_serialDesc.addElement_5pzumi_k$('DYN_EXT_TYPE_NONE', false); + tmp0_serialDesc.addElement_5pzumi_k$('DYN_EXT_TYPE_TOPIC', false); + tmp0_serialDesc.addElement_5pzumi_k$('DYN_EXT_TYPE_LBS', false); + tmp0_serialDesc.addElement_5pzumi_k$('DYN_EXT_TYPE_HOT', false); + tmp0_serialDesc.addElement_5pzumi_k$('DYN_EXT_TYPE_GAME', false); + tmp0_serialDesc.addElement_5pzumi_k$('DYN_EXT_TYPE_COMMON', false); + tmp0_serialDesc.addElement_5pzumi_k$('DYN_EXT_TYPE_BILI_CUT', false); + tmp0_serialDesc.addElement_5pzumi_k$('DYN_EXT_TYPE_OGV', false); + tmp0_serialDesc.addElement_5pzumi_k$('DYN_EXT_TYPE_AUTO_OGV', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_107()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_bj74ye_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_bj74ye_k$(encoder, value instanceof KDynExtendType ? value : THROW_CCE()); + } + } + class KDynExtendType extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_950 { + constructor() { + Companion_instance_950 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KFoldType$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KFoldType$Companion$_anonymous__ownxex); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_108(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KFoldType_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KFoldType with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_108(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_937 { + constructor() { + $serializer_instance_937 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.dynamic.v2.KFoldType', 7); + tmp0_serialDesc.addElement_5pzumi_k$('ZORE', false); + tmp0_serialDesc.addElement_5pzumi_k$('PUBLISH', false); + tmp0_serialDesc.addElement_5pzumi_k$('FREQUENT', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNITE', false); + tmp0_serialDesc.addElement_5pzumi_k$('LIMIT', false); + tmp0_serialDesc.addElement_5pzumi_k$('TOPIC_MERGED', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_108()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_7fi9p2_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_7fi9p2_k$(encoder, value instanceof KFoldType ? value : THROW_CCE()); + } + } + class KFoldType extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_951 { + constructor() { + Companion_instance_951 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KLocalIconType$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KLocalIconType$Companion$_anonymous__bins0s); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_109(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KLocalIconType_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KLocalIconType with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_109(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_938 { + constructor() { + $serializer_instance_938 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.dynamic.v2.KLocalIconType', 6); + tmp0_serialDesc.addElement_5pzumi_k$('LOCAL_ICON_COMMENT', false); + tmp0_serialDesc.addElement_5pzumi_k$('LOCAL_ICON_LIKE', false); + tmp0_serialDesc.addElement_5pzumi_k$('LOCAL_ICON_AVATAR', false); + tmp0_serialDesc.addElement_5pzumi_k$('LOCAL_ICON_COVER', false); + tmp0_serialDesc.addElement_5pzumi_k$('LOCAL_ICON_LIKE_AND_FORWARD', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_109()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_qhqtut_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_qhqtut_k$(encoder, value instanceof KLocalIconType ? value : THROW_CCE()); + } + } + class KLocalIconType extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_952 { + constructor() { + Companion_instance_952 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KModuleBannerType$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KModuleBannerType$Companion$_anonymous__tmgu0i); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_110(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KModuleBannerType_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KModuleBannerType with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_110(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_939 { + constructor() { + $serializer_instance_939 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.dynamic.v2.KModuleBannerType', 3); + tmp0_serialDesc.addElement_5pzumi_k$('NONE', false); + tmp0_serialDesc.addElement_5pzumi_k$('USER', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_110()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_wnkubj_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_wnkubj_k$(encoder, value instanceof KModuleBannerType ? value : THROW_CCE()); + } + } + class KModuleBannerType extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_953 { + constructor() { + Companion_instance_953 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KRcmdType$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KRcmdType$Companion$_anonymous__md42si); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_111(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KRcmdType_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KRcmdType with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_111(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_940 { + constructor() { + $serializer_instance_940 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.dynamic.v2.KRcmdType', 3); + tmp0_serialDesc.addElement_5pzumi_k$('RCMD_ARCHIVE', false); + tmp0_serialDesc.addElement_5pzumi_k$('RCMD_DYNAMIC', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_111()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_2xz2cv_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_2xz2cv_k$(encoder, value instanceof KRcmdType ? value : THROW_CCE()); + } + } + class KRcmdType extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_954 { + constructor() { + Companion_instance_954 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KMdlBlockedStyle$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KMdlBlockedStyle$Companion$_anonymous__ci2oqo); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_112(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KMdlBlockedStyle_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KMdlBlockedStyle with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_112(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_941 { + constructor() { + $serializer_instance_941 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.dynamic.v2.KMdlBlockedStyle', 5); + tmp0_serialDesc.addElement_5pzumi_k$('BLOCKED_STYLE_DEFAULT', false); + tmp0_serialDesc.addElement_5pzumi_k$('BLOCKED_STYLE_IN_AUDIT', false); + tmp0_serialDesc.addElement_5pzumi_k$('BLOCKED_STYLE_ONLY_FANS_LIST', false); + tmp0_serialDesc.addElement_5pzumi_k$('BLOCKED_STYLE_ONLY_FANS_VIDEO', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_112()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_ho49fb_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_ho49fb_k$(encoder, value instanceof KMdlBlockedStyle ? value : THROW_CCE()); + } + } + class KMdlBlockedStyle extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_955 { + constructor() { + Companion_instance_955 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, new ArrayListSerializer($serializer_getInstance_943()), null, null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.DynamicItem'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_942(); + } + } + class $serializer_942 { + constructor() { + $serializer_instance_942 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KDynamicItem', this, 6); + tmp0_serialDesc.addElement_5pzumi_k$('cardType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('itemType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('modules', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('extend', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('hasFold', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('serverInfo', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_955().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), IntSerializer_getInstance(), tmp0_cached[2], get_nullable($serializer_getInstance_945()), IntSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = 0; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = 0; + var tmp9_local5 = null; + var tmp10_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp11_cached = Companion_getInstance_955().$childSerializers_1; + if (tmp10_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp10_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp11_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_945(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + } else + while (tmp1_flag) { + tmp2_index = tmp10_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp10_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp11_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_945(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp10_input.endStructure_1xqz0n_k$(tmp0_desc); + return KDynamicItem.new_com_bapis_bilibili_app_dynamic_v2_KDynamicItem_f6sakb_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); + } + serialize_ey9z9y_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_955().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.cardType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.cardType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.itemType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.itemType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !equals(value.modules, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 2, tmp2_cached[2], value.modules); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.extend == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_945(), value.extend); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.hasFold === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 4, value.hasFold); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.serverInfo === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.serverInfo); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_ey9z9y_k$(encoder, value instanceof KDynamicItem ? value : THROW_CCE()); + } + } + class KDynamicItem { + constructor(cardType, itemType, modules, extend, hasFold, serverInfo) { + Companion_getInstance_955(); + cardType = cardType === VOID ? 0 : cardType; + itemType = itemType === VOID ? 0 : itemType; + modules = modules === VOID ? emptyList() : modules; + extend = extend === VOID ? null : extend; + hasFold = hasFold === VOID ? 0 : hasFold; + serverInfo = serverInfo === VOID ? '' : serverInfo; + this.cardType = cardType; + this.itemType = itemType; + this.modules = modules; + this.extend = extend; + this.hasFold = hasFold; + this.serverInfo = serverInfo; + } + get_cardType_vxu2tp_k$() { + return this.cardType; + } + get_itemType_cbv3uy_k$() { + return this.itemType; + } + get_modules_lkc42m_k$() { + return this.modules; + } + get_extend_d3bgo3_k$() { + return this.extend; + } + get_hasFold_cs90b6_k$() { + return this.hasFold; + } + get_serverInfo_knk656_k$() { + return this.serverInfo; + } + cardTypeEnum() { + return Companion_getInstance_936().fromValue(this.cardType); + } + itemTypeEnum() { + return Companion_getInstance_936().fromValue(this.itemType); + } + component1_7eebsc_k$() { + return this.cardType; + } + component2_7eebsb_k$() { + return this.itemType; + } + component3_7eebsa_k$() { + return this.modules; + } + component4_7eebs9_k$() { + return this.extend; + } + component5_7eebs8_k$() { + return this.hasFold; + } + component6_7eebs7_k$() { + return this.serverInfo; + } + copy_l96uiw_k$(cardType, itemType, modules, extend, hasFold, serverInfo) { + return new KDynamicItem(cardType, itemType, modules, extend, hasFold, serverInfo); + } + copy(cardType, itemType, modules, extend, hasFold, serverInfo, $super) { + cardType = cardType === VOID ? this.cardType : cardType; + itemType = itemType === VOID ? this.itemType : itemType; + modules = modules === VOID ? this.modules : modules; + extend = extend === VOID ? this.extend : extend; + hasFold = hasFold === VOID ? this.hasFold : hasFold; + serverInfo = serverInfo === VOID ? this.serverInfo : serverInfo; + return this.copy_l96uiw_k$(cardType, itemType, modules, extend, hasFold, serverInfo); + } + toString() { + return 'KDynamicItem(cardType=' + this.cardType + ', itemType=' + this.itemType + ', modules=' + this.modules + ', extend=' + this.extend + ', hasFold=' + this.hasFold + ', serverInfo=' + this.serverInfo + ')'; + } + hashCode() { + var result = this.cardType; + result = imul(result, 31) + this.itemType | 0; + result = imul(result, 31) + hashCode(this.modules) | 0; + result = imul(result, 31) + (this.extend == null ? 0 : this.extend.hashCode()) | 0; + result = imul(result, 31) + this.hasFold | 0; + result = imul(result, 31) + getStringHashCode(this.serverInfo) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KDynamicItem)) + return false; + var tmp0_other_with_cast = other instanceof KDynamicItem ? other : THROW_CCE(); + if (!(this.cardType === tmp0_other_with_cast.cardType)) + return false; + if (!(this.itemType === tmp0_other_with_cast.itemType)) + return false; + if (!equals(this.modules, tmp0_other_with_cast.modules)) + return false; + if (!equals(this.extend, tmp0_other_with_cast.extend)) + return false; + if (!(this.hasFold === tmp0_other_with_cast.hasFold)) + return false; + if (!(this.serverInfo === tmp0_other_with_cast.serverInfo)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KDynamicItem_f6sakb_k$(seen1, cardType, itemType, modules, extend, hasFold, serverInfo, serializationConstructorMarker) { + Companion_getInstance_955(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_942().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.cardType = 0; + else + $this.cardType = cardType; + if (0 === (seen1 & 2)) + $this.itemType = 0; + else + $this.itemType = itemType; + if (0 === (seen1 & 4)) + $this.modules = emptyList(); + else + $this.modules = modules; + if (0 === (seen1 & 8)) + $this.extend = null; + else + $this.extend = extend; + if (0 === (seen1 & 16)) + $this.hasFold = 0; + else + $this.hasFold = hasFold; + if (0 === (seen1 & 32)) + $this.serverInfo = ''; + else + $this.serverInfo = serverInfo; + return $this; + } + } + class KModuleItem { + constructor(value) { + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + } + class KModuleAuthor extends KModuleItem { + constructor() { + KModuleAuthor_instance = null; + super(0); + KModuleAuthor_instance = this; + } + } + class KModuleDispute extends KModuleItem { + constructor() { + KModuleDispute_instance = null; + super(1); + KModuleDispute_instance = this; + } + } + class KModuleDesc extends KModuleItem { + constructor() { + KModuleDesc_instance = null; + super(2); + KModuleDesc_instance = this; + } + } + class KModuleDynamic extends KModuleItem { + constructor() { + KModuleDynamic_instance = null; + super(3); + KModuleDynamic_instance = this; + } + } + class KModuleLikeUser extends KModuleItem { + constructor() { + KModuleLikeUser_instance = null; + super(4); + KModuleLikeUser_instance = this; + } + } + class KModuleExtend extends KModuleItem { + constructor() { + KModuleExtend_instance = null; + super(5); + KModuleExtend_instance = this; + } + } + class KModuleAdditional extends KModuleItem { + constructor() { + KModuleAdditional_instance = null; + super(6); + KModuleAdditional_instance = this; + } + } + class KModuleStat extends KModuleItem { + constructor() { + KModuleStat_instance = null; + super(7); + KModuleStat_instance = this; + } + } + class KModuleFold extends KModuleItem { + constructor() { + KModuleFold_instance = null; + super(8); + KModuleFold_instance = this; + } + } + class KModuleComment extends KModuleItem { + constructor() { + KModuleComment_instance = null; + super(9); + KModuleComment_instance = this; + } + } + class KModuleInteraction extends KModuleItem { + constructor() { + KModuleInteraction_instance = null; + super(10); + KModuleInteraction_instance = this; + } + } + class KModuleAuthorForward extends KModuleItem { + constructor() { + KModuleAuthorForward_instance = null; + super(11); + KModuleAuthorForward_instance = this; + } + } + class KModuleAd extends KModuleItem { + constructor() { + KModuleAd_instance = null; + super(12); + KModuleAd_instance = this; + } + } + class KModuleBanner extends KModuleItem { + constructor() { + KModuleBanner_instance = null; + super(13); + KModuleBanner_instance = this; + } + } + class KModuleItemNull extends KModuleItem { + constructor() { + KModuleItemNull_instance = null; + super(14); + KModuleItemNull_instance = this; + } + } + class KModuleShareInfo extends KModuleItem { + constructor() { + KModuleShareInfo_instance = null; + super(15); + KModuleShareInfo_instance = this; + } + } + class KModuleRecommend extends KModuleItem { + constructor() { + KModuleRecommend_instance = null; + super(16); + KModuleRecommend_instance = this; + } + } + class KModuleTop extends KModuleItem { + constructor() { + KModuleTop_instance = null; + super(17); + KModuleTop_instance = this; + } + } + class KModuleButtom extends KModuleItem { + constructor() { + KModuleButtom_instance = null; + super(18); + KModuleButtom_instance = this; + } + } + class KModuleStatForward extends KModuleItem { + constructor() { + KModuleStatForward_instance = null; + super(19); + KModuleStatForward_instance = this; + } + } + class KModuleStory extends KModuleItem { + constructor() { + KModuleStory_instance = null; + super(20); + KModuleStory_instance = this; + } + } + class KModuleTopic extends KModuleItem { + constructor() { + KModuleTopic_instance = null; + super(21); + KModuleTopic_instance = this; + } + } + class KModuleTopicDetailsExt extends KModuleItem { + constructor() { + KModuleTopicDetailsExt_instance = null; + super(22); + KModuleTopicDetailsExt_instance = this; + } + } + class KModuleTopTag extends KModuleItem { + constructor() { + KModuleTopTag_instance = null; + super(23); + KModuleTopTag_instance = this; + } + } + class KModuleTopicBrief extends KModuleItem { + constructor() { + KModuleTopicBrief_instance = null; + super(24); + KModuleTopicBrief_instance = this; + } + } + class KModuleTitle extends KModuleItem { + constructor() { + KModuleTitle_instance = null; + super(25); + KModuleTitle_instance = this; + } + } + class KModuleButton extends KModuleItem { + constructor() { + KModuleButton_instance = null; + super(26); + KModuleButton_instance = this; + } + } + class KModuleNotice extends KModuleItem { + constructor() { + KModuleNotice_instance = null; + super(27); + KModuleNotice_instance = this; + } + } + class KModuleOpusSummary extends KModuleItem { + constructor() { + KModuleOpusSummary_instance = null; + super(28); + KModuleOpusSummary_instance = this; + } + } + class KModuleCopyright extends KModuleItem { + constructor() { + KModuleCopyright_instance = null; + super(29); + KModuleCopyright_instance = this; + } + } + class KModuleParagraph extends KModuleItem { + constructor() { + KModuleParagraph_instance = null; + super(30); + KModuleParagraph_instance = this; + } + } + class KModuleBlocked extends KModuleItem { + constructor() { + KModuleBlocked_instance = null; + super(31); + KModuleBlocked_instance = this; + } + } + class KModuleTextNotice extends KModuleItem { + constructor() { + KModuleTextNotice_instance = null; + super(32); + KModuleTextNotice_instance = this; + } + } + class KModuleOpusCollection extends KModuleItem { + constructor() { + KModuleOpusCollection_instance = null; + super(33); + KModuleOpusCollection_instance = this; + } + } + class KModuleOnetimeNotice extends KModuleItem { + constructor() { + KModuleOnetimeNotice_instance = null; + super(34); + KModuleOnetimeNotice_instance = this; + } + } + class Companion_956 { + constructor() { + Companion_instance_956 = this; + var tmp = this; + tmp.moduleItemValues$delegate_1 = lazy_0(KModule$Companion$moduleItemValues$delegate$lambda); + this.targetPath = '/bilibili.app.dynamic.v2.Module'; + } + get_moduleItemValues_y9ehee_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.moduleItemValues$delegate_1; + var thisRef = this; + var property = moduleItemValues$factory(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_943(); + } + get moduleItemValues() { + return this.get_moduleItemValues_y9ehee_k$(); + } + } + class $serializer_943 { + constructor() { + $serializer_instance_943 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KModule', this, 36); + tmp0_serialDesc.addElement_5pzumi_k$('moduleType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('moduleAuthor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('moduleDispute', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('moduleDesc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('moduleDynamic', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('moduleLikeUser', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('moduleExtend', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('moduleAdditional', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('moduleStat', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('moduleFold', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('moduleComment', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('moduleInteraction', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + tmp0_serialDesc.addElement_5pzumi_k$('moduleAuthorForward', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(13)); + tmp0_serialDesc.addElement_5pzumi_k$('moduleAd', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(14)); + tmp0_serialDesc.addElement_5pzumi_k$('moduleBanner', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(15)); + tmp0_serialDesc.addElement_5pzumi_k$('moduleItemNull', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(16)); + tmp0_serialDesc.addElement_5pzumi_k$('moduleShareInfo', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(17)); + tmp0_serialDesc.addElement_5pzumi_k$('moduleRecommend', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(18)); + tmp0_serialDesc.addElement_5pzumi_k$('moduleTop', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(19)); + tmp0_serialDesc.addElement_5pzumi_k$('moduleButtom', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(20)); + tmp0_serialDesc.addElement_5pzumi_k$('moduleStatForward', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(21)); + tmp0_serialDesc.addElement_5pzumi_k$('moduleStory', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(22)); + tmp0_serialDesc.addElement_5pzumi_k$('moduleTopic', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(23)); + tmp0_serialDesc.addElement_5pzumi_k$('moduleTopicDetailsExt', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(24)); + tmp0_serialDesc.addElement_5pzumi_k$('moduleTopTag', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(25)); + tmp0_serialDesc.addElement_5pzumi_k$('moduleTopicBrief', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(26)); + tmp0_serialDesc.addElement_5pzumi_k$('moduleTitle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(27)); + tmp0_serialDesc.addElement_5pzumi_k$('moduleButton', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(28)); + tmp0_serialDesc.addElement_5pzumi_k$('moduleNotice', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(29)); + tmp0_serialDesc.addElement_5pzumi_k$('moduleOpusSummary', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(30)); + tmp0_serialDesc.addElement_5pzumi_k$('moduleCopyright', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(31)); + tmp0_serialDesc.addElement_5pzumi_k$('moduleParagraph', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(32)); + tmp0_serialDesc.addElement_5pzumi_k$('moduleBlocked', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(33)); + tmp0_serialDesc.addElement_5pzumi_k$('moduleTextNotice', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(34)); + tmp0_serialDesc.addElement_5pzumi_k$('moduleOpusCollection', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(35)); + tmp0_serialDesc.addElement_5pzumi_k$('moduleOnetimeNotice', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(36)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), get_nullable($serializer_getInstance_953()), get_nullable($serializer_getInstance_991()), get_nullable($serializer_getInstance_992()), get_nullable($serializer_getInstance_993()), get_nullable($serializer_getInstance_995()), get_nullable($serializer_getInstance_997()), get_nullable($serializer_getInstance_1101()), get_nullable($serializer_getInstance_1006()), get_nullable($serializer_getInstance_1009()), get_nullable($serializer_getInstance_1011()), get_nullable($serializer_getInstance_1013()), get_nullable($serializer_getInstance_1018()), get_nullable($serializer_getInstance_1020()), get_nullable($serializer_getInstance_1021()), get_nullable($serializer_getInstance_1024()), get_nullable($serializer_getInstance_1025()), get_nullable($serializer_getInstance_1027()), get_nullable($serializer_getInstance_1028()), get_nullable($serializer_getInstance_1030()), get_nullable($serializer_getInstance_1006()), get_nullable($serializer_getInstance_1031()), get_nullable($serializer_getInstance_1034()), get_nullable($serializer_getInstance_1035()), get_nullable($serializer_getInstance_1036()), get_nullable($serializer_getInstance_1037()), get_nullable($serializer_getInstance_1038()), get_nullable($serializer_getInstance_1039()), get_nullable($serializer_getInstance_1040()), get_nullable($serializer_getInstance_1041()), get_nullable($serializer_getInstance_1136()), get_nullable($serializer_getInstance_1137()), get_nullable($serializer_getInstance_1042()), get_nullable($serializer_getInstance_1044()), get_nullable($serializer_getInstance_1141()), get_nullable($serializer_getInstance_1045())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_bitMask1 = 0; + var tmp5_local0 = 0; + var tmp6_local1 = null; + var tmp7_local2 = null; + var tmp8_local3 = null; + var tmp9_local4 = null; + var tmp10_local5 = null; + var tmp11_local6 = null; + var tmp12_local7 = null; + var tmp13_local8 = null; + var tmp14_local9 = null; + var tmp15_local10 = null; + var tmp16_local11 = null; + var tmp17_local12 = null; + var tmp18_local13 = null; + var tmp19_local14 = null; + var tmp20_local15 = null; + var tmp21_local16 = null; + var tmp22_local17 = null; + var tmp23_local18 = null; + var tmp24_local19 = null; + var tmp25_local20 = null; + var tmp26_local21 = null; + var tmp27_local22 = null; + var tmp28_local23 = null; + var tmp29_local24 = null; + var tmp30_local25 = null; + var tmp31_local26 = null; + var tmp32_local27 = null; + var tmp33_local28 = null; + var tmp34_local29 = null; + var tmp35_local30 = null; + var tmp36_local31 = null; + var tmp37_local32 = null; + var tmp38_local33 = null; + var tmp39_local34 = null; + var tmp40_local35 = null; + var tmp41_transient0 = 0; + var tmp42_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp42_input.decodeSequentially_xlblqy_k$()) { + tmp5_local0 = tmp42_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp6_local1 = tmp42_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_953(), tmp6_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp7_local2 = tmp42_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_991(), tmp7_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp8_local3 = tmp42_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_992(), tmp8_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp9_local4 = tmp42_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_993(), tmp9_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp10_local5 = tmp42_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_995(), tmp10_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp11_local6 = tmp42_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_997(), tmp11_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp12_local7 = tmp42_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_1101(), tmp12_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp13_local8 = tmp42_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_1006(), tmp13_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp14_local9 = tmp42_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 9, $serializer_getInstance_1009(), tmp14_local9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp15_local10 = tmp42_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 10, $serializer_getInstance_1011(), tmp15_local10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp16_local11 = tmp42_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 11, $serializer_getInstance_1013(), tmp16_local11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + tmp17_local12 = tmp42_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 12, $serializer_getInstance_1018(), tmp17_local12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + tmp18_local13 = tmp42_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 13, $serializer_getInstance_1020(), tmp18_local13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + tmp19_local14 = tmp42_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 14, $serializer_getInstance_1021(), tmp19_local14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + tmp20_local15 = tmp42_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 15, $serializer_getInstance_1024(), tmp20_local15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + tmp21_local16 = tmp42_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 16, $serializer_getInstance_1025(), tmp21_local16); + tmp3_bitMask0 = tmp3_bitMask0 | 65536; + tmp22_local17 = tmp42_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 17, $serializer_getInstance_1027(), tmp22_local17); + tmp3_bitMask0 = tmp3_bitMask0 | 131072; + tmp23_local18 = tmp42_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 18, $serializer_getInstance_1028(), tmp23_local18); + tmp3_bitMask0 = tmp3_bitMask0 | 262144; + tmp24_local19 = tmp42_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 19, $serializer_getInstance_1030(), tmp24_local19); + tmp3_bitMask0 = tmp3_bitMask0 | 524288; + tmp25_local20 = tmp42_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 20, $serializer_getInstance_1006(), tmp25_local20); + tmp3_bitMask0 = tmp3_bitMask0 | 1048576; + tmp26_local21 = tmp42_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 21, $serializer_getInstance_1031(), tmp26_local21); + tmp3_bitMask0 = tmp3_bitMask0 | 2097152; + tmp27_local22 = tmp42_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 22, $serializer_getInstance_1034(), tmp27_local22); + tmp3_bitMask0 = tmp3_bitMask0 | 4194304; + tmp28_local23 = tmp42_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 23, $serializer_getInstance_1035(), tmp28_local23); + tmp3_bitMask0 = tmp3_bitMask0 | 8388608; + tmp29_local24 = tmp42_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 24, $serializer_getInstance_1036(), tmp29_local24); + tmp3_bitMask0 = tmp3_bitMask0 | 16777216; + tmp30_local25 = tmp42_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 25, $serializer_getInstance_1037(), tmp30_local25); + tmp3_bitMask0 = tmp3_bitMask0 | 33554432; + tmp31_local26 = tmp42_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 26, $serializer_getInstance_1038(), tmp31_local26); + tmp3_bitMask0 = tmp3_bitMask0 | 67108864; + tmp32_local27 = tmp42_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 27, $serializer_getInstance_1039(), tmp32_local27); + tmp3_bitMask0 = tmp3_bitMask0 | 134217728; + tmp33_local28 = tmp42_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 28, $serializer_getInstance_1040(), tmp33_local28); + tmp3_bitMask0 = tmp3_bitMask0 | 268435456; + tmp34_local29 = tmp42_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 29, $serializer_getInstance_1041(), tmp34_local29); + tmp3_bitMask0 = tmp3_bitMask0 | 536870912; + tmp35_local30 = tmp42_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 30, $serializer_getInstance_1136(), tmp35_local30); + tmp3_bitMask0 = tmp3_bitMask0 | 1073741824; + tmp36_local31 = tmp42_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 31, $serializer_getInstance_1137(), tmp36_local31); + tmp3_bitMask0 = tmp3_bitMask0 | -2147483648; + tmp37_local32 = tmp42_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 32, $serializer_getInstance_1042(), tmp37_local32); + tmp4_bitMask1 = tmp4_bitMask1 | 1; + tmp38_local33 = tmp42_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 33, $serializer_getInstance_1044(), tmp38_local33); + tmp4_bitMask1 = tmp4_bitMask1 | 2; + tmp39_local34 = tmp42_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 34, $serializer_getInstance_1141(), tmp39_local34); + tmp4_bitMask1 = tmp4_bitMask1 | 4; + tmp40_local35 = tmp42_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 35, $serializer_getInstance_1045(), tmp40_local35); + tmp4_bitMask1 = tmp4_bitMask1 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp42_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp5_local0 = tmp42_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp6_local1 = tmp42_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_953(), tmp6_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp7_local2 = tmp42_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_991(), tmp7_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp8_local3 = tmp42_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_992(), tmp8_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp9_local4 = tmp42_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_993(), tmp9_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp10_local5 = tmp42_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_995(), tmp10_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp11_local6 = tmp42_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_997(), tmp11_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp12_local7 = tmp42_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_1101(), tmp12_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp13_local8 = tmp42_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_1006(), tmp13_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp14_local9 = tmp42_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 9, $serializer_getInstance_1009(), tmp14_local9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp15_local10 = tmp42_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 10, $serializer_getInstance_1011(), tmp15_local10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp16_local11 = tmp42_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 11, $serializer_getInstance_1013(), tmp16_local11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + case 12: + tmp17_local12 = tmp42_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 12, $serializer_getInstance_1018(), tmp17_local12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + break; + case 13: + tmp18_local13 = tmp42_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 13, $serializer_getInstance_1020(), tmp18_local13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + break; + case 14: + tmp19_local14 = tmp42_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 14, $serializer_getInstance_1021(), tmp19_local14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + break; + case 15: + tmp20_local15 = tmp42_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 15, $serializer_getInstance_1024(), tmp20_local15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + break; + case 16: + tmp21_local16 = tmp42_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 16, $serializer_getInstance_1025(), tmp21_local16); + tmp3_bitMask0 = tmp3_bitMask0 | 65536; + break; + case 17: + tmp22_local17 = tmp42_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 17, $serializer_getInstance_1027(), tmp22_local17); + tmp3_bitMask0 = tmp3_bitMask0 | 131072; + break; + case 18: + tmp23_local18 = tmp42_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 18, $serializer_getInstance_1028(), tmp23_local18); + tmp3_bitMask0 = tmp3_bitMask0 | 262144; + break; + case 19: + tmp24_local19 = tmp42_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 19, $serializer_getInstance_1030(), tmp24_local19); + tmp3_bitMask0 = tmp3_bitMask0 | 524288; + break; + case 20: + tmp25_local20 = tmp42_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 20, $serializer_getInstance_1006(), tmp25_local20); + tmp3_bitMask0 = tmp3_bitMask0 | 1048576; + break; + case 21: + tmp26_local21 = tmp42_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 21, $serializer_getInstance_1031(), tmp26_local21); + tmp3_bitMask0 = tmp3_bitMask0 | 2097152; + break; + case 22: + tmp27_local22 = tmp42_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 22, $serializer_getInstance_1034(), tmp27_local22); + tmp3_bitMask0 = tmp3_bitMask0 | 4194304; + break; + case 23: + tmp28_local23 = tmp42_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 23, $serializer_getInstance_1035(), tmp28_local23); + tmp3_bitMask0 = tmp3_bitMask0 | 8388608; + break; + case 24: + tmp29_local24 = tmp42_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 24, $serializer_getInstance_1036(), tmp29_local24); + tmp3_bitMask0 = tmp3_bitMask0 | 16777216; + break; + case 25: + tmp30_local25 = tmp42_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 25, $serializer_getInstance_1037(), tmp30_local25); + tmp3_bitMask0 = tmp3_bitMask0 | 33554432; + break; + case 26: + tmp31_local26 = tmp42_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 26, $serializer_getInstance_1038(), tmp31_local26); + tmp3_bitMask0 = tmp3_bitMask0 | 67108864; + break; + case 27: + tmp32_local27 = tmp42_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 27, $serializer_getInstance_1039(), tmp32_local27); + tmp3_bitMask0 = tmp3_bitMask0 | 134217728; + break; + case 28: + tmp33_local28 = tmp42_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 28, $serializer_getInstance_1040(), tmp33_local28); + tmp3_bitMask0 = tmp3_bitMask0 | 268435456; + break; + case 29: + tmp34_local29 = tmp42_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 29, $serializer_getInstance_1041(), tmp34_local29); + tmp3_bitMask0 = tmp3_bitMask0 | 536870912; + break; + case 30: + tmp35_local30 = tmp42_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 30, $serializer_getInstance_1136(), tmp35_local30); + tmp3_bitMask0 = tmp3_bitMask0 | 1073741824; + break; + case 31: + tmp36_local31 = tmp42_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 31, $serializer_getInstance_1137(), tmp36_local31); + tmp3_bitMask0 = tmp3_bitMask0 | -2147483648; + break; + case 32: + tmp37_local32 = tmp42_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 32, $serializer_getInstance_1042(), tmp37_local32); + tmp4_bitMask1 = tmp4_bitMask1 | 1; + break; + case 33: + tmp38_local33 = tmp42_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 33, $serializer_getInstance_1044(), tmp38_local33); + tmp4_bitMask1 = tmp4_bitMask1 | 2; + break; + case 34: + tmp39_local34 = tmp42_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 34, $serializer_getInstance_1141(), tmp39_local34); + tmp4_bitMask1 = tmp4_bitMask1 | 4; + break; + case 35: + tmp40_local35 = tmp42_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 35, $serializer_getInstance_1045(), tmp40_local35); + tmp4_bitMask1 = tmp4_bitMask1 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp42_input.endStructure_1xqz0n_k$(tmp0_desc); + return KModule_0.new_com_bapis_bilibili_app_dynamic_v2_KModule_vevp2r_k$(tmp3_bitMask0, tmp4_bitMask1, tmp5_local0, tmp6_local1, tmp7_local2, tmp8_local3, tmp9_local4, tmp10_local5, tmp11_local6, tmp12_local7, tmp13_local8, tmp14_local9, tmp15_local10, tmp16_local11, tmp17_local12, tmp18_local13, tmp19_local14, tmp20_local15, tmp21_local16, tmp22_local17, tmp23_local18, tmp24_local19, tmp25_local20, tmp26_local21, tmp27_local22, tmp28_local23, tmp29_local24, tmp30_local25, tmp31_local26, tmp32_local27, tmp33_local28, tmp34_local29, tmp35_local30, tmp36_local31, tmp37_local32, tmp38_local33, tmp39_local34, tmp40_local35, null); + } + serialize_y9s6f6_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.moduleType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.moduleType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.moduleAuthor_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_953(), value.moduleAuthor_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.moduleDispute_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_991(), value.moduleDispute_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.moduleDesc_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_992(), value.moduleDesc_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.moduleDynamic_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, $serializer_getInstance_993(), value.moduleDynamic_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.moduleLikeUser_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 5, $serializer_getInstance_995(), value.moduleLikeUser_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.moduleExtend_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 6, $serializer_getInstance_997(), value.moduleExtend_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.moduleAdditional_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 7, $serializer_getInstance_1101(), value.moduleAdditional_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.moduleStat_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 8, $serializer_getInstance_1006(), value.moduleStat_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.moduleFold_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 9, $serializer_getInstance_1009(), value.moduleFold_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.moduleComment_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 10, $serializer_getInstance_1011(), value.moduleComment_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.moduleInteraction_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 11, $serializer_getInstance_1013(), value.moduleInteraction_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !(value.moduleAuthorForward_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 12, $serializer_getInstance_1018(), value.moduleAuthorForward_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 13) ? true : !(value.moduleAd_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 13, $serializer_getInstance_1020(), value.moduleAd_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 14) ? true : !(value.moduleBanner_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 14, $serializer_getInstance_1021(), value.moduleBanner_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 15) ? true : !(value.moduleItemNull_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 15, $serializer_getInstance_1024(), value.moduleItemNull_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 16) ? true : !(value.moduleShareInfo_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 16, $serializer_getInstance_1025(), value.moduleShareInfo_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 17) ? true : !(value.moduleRecommend_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 17, $serializer_getInstance_1027(), value.moduleRecommend_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 18) ? true : !(value.moduleTop_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 18, $serializer_getInstance_1028(), value.moduleTop_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 19) ? true : !(value.moduleButtom_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 19, $serializer_getInstance_1030(), value.moduleButtom_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 20) ? true : !(value.moduleStatForward_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 20, $serializer_getInstance_1006(), value.moduleStatForward_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 21) ? true : !(value.moduleStory_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 21, $serializer_getInstance_1031(), value.moduleStory_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 22) ? true : !(value.moduleTopic_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 22, $serializer_getInstance_1034(), value.moduleTopic_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 23) ? true : !(value.moduleTopicDetailsExt_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 23, $serializer_getInstance_1035(), value.moduleTopicDetailsExt_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 24) ? true : !(value.moduleTopTag_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 24, $serializer_getInstance_1036(), value.moduleTopTag_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 25) ? true : !(value.moduleTopicBrief_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 25, $serializer_getInstance_1037(), value.moduleTopicBrief_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 26) ? true : !(value.moduleTitle_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 26, $serializer_getInstance_1038(), value.moduleTitle_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 27) ? true : !(value.moduleButton_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 27, $serializer_getInstance_1039(), value.moduleButton_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 28) ? true : !(value.moduleNotice_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 28, $serializer_getInstance_1040(), value.moduleNotice_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 29) ? true : !(value.moduleOpusSummary_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 29, $serializer_getInstance_1041(), value.moduleOpusSummary_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 30) ? true : !(value.moduleCopyright_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 30, $serializer_getInstance_1136(), value.moduleCopyright_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 31) ? true : !(value.moduleParagraph_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 31, $serializer_getInstance_1137(), value.moduleParagraph_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 32) ? true : !(value.moduleBlocked_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 32, $serializer_getInstance_1042(), value.moduleBlocked_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 33) ? true : !(value.moduleTextNotice_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 33, $serializer_getInstance_1044(), value.moduleTextNotice_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 34) ? true : !(value.moduleOpusCollection_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 34, $serializer_getInstance_1141(), value.moduleOpusCollection_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 35) ? true : !(value.moduleOnetimeNotice_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 35, $serializer_getInstance_1045(), value.moduleOnetimeNotice_1); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_y9s6f6_k$(encoder, value instanceof KModule_0 ? value : THROW_CCE()); + } + } + class KModule_0 { + constructor(moduleType, moduleAuthor, moduleDispute, moduleDesc, moduleDynamic, moduleLikeUser, moduleExtend, moduleAdditional, moduleStat, moduleFold, moduleComment, moduleInteraction, moduleAuthorForward, moduleAd, moduleBanner, moduleItemNull, moduleShareInfo, moduleRecommend, moduleTop, moduleButtom, moduleStatForward, moduleStory, moduleTopic, moduleTopicDetailsExt, moduleTopTag, moduleTopicBrief, moduleTitle, moduleButton, moduleNotice, moduleOpusSummary, moduleCopyright, moduleParagraph, moduleBlocked, moduleTextNotice, moduleOpusCollection, moduleOnetimeNotice) { + Companion_getInstance_956(); + moduleType = moduleType === VOID ? 0 : moduleType; + moduleAuthor = moduleAuthor === VOID ? null : moduleAuthor; + moduleDispute = moduleDispute === VOID ? null : moduleDispute; + moduleDesc = moduleDesc === VOID ? null : moduleDesc; + moduleDynamic = moduleDynamic === VOID ? null : moduleDynamic; + moduleLikeUser = moduleLikeUser === VOID ? null : moduleLikeUser; + moduleExtend = moduleExtend === VOID ? null : moduleExtend; + moduleAdditional = moduleAdditional === VOID ? null : moduleAdditional; + moduleStat = moduleStat === VOID ? null : moduleStat; + moduleFold = moduleFold === VOID ? null : moduleFold; + moduleComment = moduleComment === VOID ? null : moduleComment; + moduleInteraction = moduleInteraction === VOID ? null : moduleInteraction; + moduleAuthorForward = moduleAuthorForward === VOID ? null : moduleAuthorForward; + moduleAd = moduleAd === VOID ? null : moduleAd; + moduleBanner = moduleBanner === VOID ? null : moduleBanner; + moduleItemNull = moduleItemNull === VOID ? null : moduleItemNull; + moduleShareInfo = moduleShareInfo === VOID ? null : moduleShareInfo; + moduleRecommend = moduleRecommend === VOID ? null : moduleRecommend; + moduleTop = moduleTop === VOID ? null : moduleTop; + moduleButtom = moduleButtom === VOID ? null : moduleButtom; + moduleStatForward = moduleStatForward === VOID ? null : moduleStatForward; + moduleStory = moduleStory === VOID ? null : moduleStory; + moduleTopic = moduleTopic === VOID ? null : moduleTopic; + moduleTopicDetailsExt = moduleTopicDetailsExt === VOID ? null : moduleTopicDetailsExt; + moduleTopTag = moduleTopTag === VOID ? null : moduleTopTag; + moduleTopicBrief = moduleTopicBrief === VOID ? null : moduleTopicBrief; + moduleTitle = moduleTitle === VOID ? null : moduleTitle; + moduleButton = moduleButton === VOID ? null : moduleButton; + moduleNotice = moduleNotice === VOID ? null : moduleNotice; + moduleOpusSummary = moduleOpusSummary === VOID ? null : moduleOpusSummary; + moduleCopyright = moduleCopyright === VOID ? null : moduleCopyright; + moduleParagraph = moduleParagraph === VOID ? null : moduleParagraph; + moduleBlocked = moduleBlocked === VOID ? null : moduleBlocked; + moduleTextNotice = moduleTextNotice === VOID ? null : moduleTextNotice; + moduleOpusCollection = moduleOpusCollection === VOID ? null : moduleOpusCollection; + moduleOnetimeNotice = moduleOnetimeNotice === VOID ? null : moduleOnetimeNotice; + this.moduleType = moduleType; + this.moduleAuthor_1 = moduleAuthor; + this.moduleDispute_1 = moduleDispute; + this.moduleDesc_1 = moduleDesc; + this.moduleDynamic_1 = moduleDynamic; + this.moduleLikeUser_1 = moduleLikeUser; + this.moduleExtend_1 = moduleExtend; + this.moduleAdditional_1 = moduleAdditional; + this.moduleStat_1 = moduleStat; + this.moduleFold_1 = moduleFold; + this.moduleComment_1 = moduleComment; + this.moduleInteraction_1 = moduleInteraction; + this.moduleAuthorForward_1 = moduleAuthorForward; + this.moduleAd_1 = moduleAd; + this.moduleBanner_1 = moduleBanner; + this.moduleItemNull_1 = moduleItemNull; + this.moduleShareInfo_1 = moduleShareInfo; + this.moduleRecommend_1 = moduleRecommend; + this.moduleTop_1 = moduleTop; + this.moduleButtom_1 = moduleButtom; + this.moduleStatForward_1 = moduleStatForward; + this.moduleStory_1 = moduleStory; + this.moduleTopic_1 = moduleTopic; + this.moduleTopicDetailsExt_1 = moduleTopicDetailsExt; + this.moduleTopTag_1 = moduleTopTag; + this.moduleTopicBrief_1 = moduleTopicBrief; + this.moduleTitle_1 = moduleTitle; + this.moduleButton_1 = moduleButton; + this.moduleNotice_1 = moduleNotice; + this.moduleOpusSummary_1 = moduleOpusSummary; + this.moduleCopyright_1 = moduleCopyright; + this.moduleParagraph_1 = moduleParagraph; + this.moduleBlocked_1 = moduleBlocked; + this.moduleTextNotice_1 = moduleTextNotice; + this.moduleOpusCollection_1 = moduleOpusCollection; + this.moduleOnetimeNotice_1 = moduleOnetimeNotice; + var tmp = this; + tmp.moduleItemNumber$delegate_1 = lazy_0(KModule$moduleItemNumber$delegate$lambda(this)); + } + get_moduleType_ykbe0h_k$() { + return this.moduleType; + } + moduleItemValue() { + if (!(this.moduleAuthor_1 == null)) { + var tmp = this.moduleAuthor_1; + return (tmp == null ? true : !(tmp == null)) ? tmp : null; + } else if (!(this.moduleDispute_1 == null)) { + var tmp_0 = this.moduleDispute_1; + return (tmp_0 == null ? true : !(tmp_0 == null)) ? tmp_0 : null; + } else if (!(this.moduleDesc_1 == null)) { + var tmp_1 = this.moduleDesc_1; + return (tmp_1 == null ? true : !(tmp_1 == null)) ? tmp_1 : null; + } else if (!(this.moduleDynamic_1 == null)) { + var tmp_2 = this.moduleDynamic_1; + return (tmp_2 == null ? true : !(tmp_2 == null)) ? tmp_2 : null; + } else if (!(this.moduleLikeUser_1 == null)) { + var tmp_3 = this.moduleLikeUser_1; + return (tmp_3 == null ? true : !(tmp_3 == null)) ? tmp_3 : null; + } else if (!(this.moduleExtend_1 == null)) { + var tmp_4 = this.moduleExtend_1; + return (tmp_4 == null ? true : !(tmp_4 == null)) ? tmp_4 : null; + } else if (!(this.moduleAdditional_1 == null)) { + var tmp_5 = this.moduleAdditional_1; + return (tmp_5 == null ? true : !(tmp_5 == null)) ? tmp_5 : null; + } else if (!(this.moduleStat_1 == null)) { + var tmp_6 = this.moduleStat_1; + return (tmp_6 == null ? true : !(tmp_6 == null)) ? tmp_6 : null; + } else if (!(this.moduleFold_1 == null)) { + var tmp_7 = this.moduleFold_1; + return (tmp_7 == null ? true : !(tmp_7 == null)) ? tmp_7 : null; + } else if (!(this.moduleComment_1 == null)) { + var tmp_8 = this.moduleComment_1; + return (tmp_8 == null ? true : !(tmp_8 == null)) ? tmp_8 : null; + } else if (!(this.moduleInteraction_1 == null)) { + var tmp_9 = this.moduleInteraction_1; + return (tmp_9 == null ? true : !(tmp_9 == null)) ? tmp_9 : null; + } else if (!(this.moduleAuthorForward_1 == null)) { + var tmp_10 = this.moduleAuthorForward_1; + return (tmp_10 == null ? true : !(tmp_10 == null)) ? tmp_10 : null; + } else if (!(this.moduleAd_1 == null)) { + var tmp_11 = this.moduleAd_1; + return (tmp_11 == null ? true : !(tmp_11 == null)) ? tmp_11 : null; + } else if (!(this.moduleBanner_1 == null)) { + var tmp_12 = this.moduleBanner_1; + return (tmp_12 == null ? true : !(tmp_12 == null)) ? tmp_12 : null; + } else if (!(this.moduleItemNull_1 == null)) { + var tmp_13 = this.moduleItemNull_1; + return (tmp_13 == null ? true : !(tmp_13 == null)) ? tmp_13 : null; + } else if (!(this.moduleShareInfo_1 == null)) { + var tmp_14 = this.moduleShareInfo_1; + return (tmp_14 == null ? true : !(tmp_14 == null)) ? tmp_14 : null; + } else if (!(this.moduleRecommend_1 == null)) { + var tmp_15 = this.moduleRecommend_1; + return (tmp_15 == null ? true : !(tmp_15 == null)) ? tmp_15 : null; + } else if (!(this.moduleTop_1 == null)) { + var tmp_16 = this.moduleTop_1; + return (tmp_16 == null ? true : !(tmp_16 == null)) ? tmp_16 : null; + } else if (!(this.moduleButtom_1 == null)) { + var tmp_17 = this.moduleButtom_1; + return (tmp_17 == null ? true : !(tmp_17 == null)) ? tmp_17 : null; + } else if (!(this.moduleStatForward_1 == null)) { + var tmp_18 = this.moduleStatForward_1; + return (tmp_18 == null ? true : !(tmp_18 == null)) ? tmp_18 : null; + } else if (!(this.moduleStory_1 == null)) { + var tmp_19 = this.moduleStory_1; + return (tmp_19 == null ? true : !(tmp_19 == null)) ? tmp_19 : null; + } else if (!(this.moduleTopic_1 == null)) { + var tmp_20 = this.moduleTopic_1; + return (tmp_20 == null ? true : !(tmp_20 == null)) ? tmp_20 : null; + } else if (!(this.moduleTopicDetailsExt_1 == null)) { + var tmp_21 = this.moduleTopicDetailsExt_1; + return (tmp_21 == null ? true : !(tmp_21 == null)) ? tmp_21 : null; + } else if (!(this.moduleTopTag_1 == null)) { + var tmp_22 = this.moduleTopTag_1; + return (tmp_22 == null ? true : !(tmp_22 == null)) ? tmp_22 : null; + } else if (!(this.moduleTopicBrief_1 == null)) { + var tmp_23 = this.moduleTopicBrief_1; + return (tmp_23 == null ? true : !(tmp_23 == null)) ? tmp_23 : null; + } else if (!(this.moduleTitle_1 == null)) { + var tmp_24 = this.moduleTitle_1; + return (tmp_24 == null ? true : !(tmp_24 == null)) ? tmp_24 : null; + } else if (!(this.moduleButton_1 == null)) { + var tmp_25 = this.moduleButton_1; + return (tmp_25 == null ? true : !(tmp_25 == null)) ? tmp_25 : null; + } else if (!(this.moduleNotice_1 == null)) { + var tmp_26 = this.moduleNotice_1; + return (tmp_26 == null ? true : !(tmp_26 == null)) ? tmp_26 : null; + } else if (!(this.moduleOpusSummary_1 == null)) { + var tmp_27 = this.moduleOpusSummary_1; + return (tmp_27 == null ? true : !(tmp_27 == null)) ? tmp_27 : null; + } else if (!(this.moduleCopyright_1 == null)) { + var tmp_28 = this.moduleCopyright_1; + return (tmp_28 == null ? true : !(tmp_28 == null)) ? tmp_28 : null; + } else if (!(this.moduleParagraph_1 == null)) { + var tmp_29 = this.moduleParagraph_1; + return (tmp_29 == null ? true : !(tmp_29 == null)) ? tmp_29 : null; + } else if (!(this.moduleBlocked_1 == null)) { + var tmp_30 = this.moduleBlocked_1; + return (tmp_30 == null ? true : !(tmp_30 == null)) ? tmp_30 : null; + } else if (!(this.moduleTextNotice_1 == null)) { + var tmp_31 = this.moduleTextNotice_1; + return (tmp_31 == null ? true : !(tmp_31 == null)) ? tmp_31 : null; + } else if (!(this.moduleOpusCollection_1 == null)) { + var tmp_32 = this.moduleOpusCollection_1; + return (tmp_32 == null ? true : !(tmp_32 == null)) ? tmp_32 : null; + } else if (!(this.moduleOnetimeNotice_1 == null)) { + var tmp_33 = this.moduleOnetimeNotice_1; + return (tmp_33 == null ? true : !(tmp_33 == null)) ? tmp_33 : null; + } else { + return null; + } + } + moduleItemTypeJs() { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = Companion_getInstance_956().moduleItemValues; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.KModule.moduleItemType.' call + var it = element; + tmp$ret$0 = it.value === _get_moduleItemNumber__nvmghp(this); + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + return tmp$ret$1; + } + moduleTypeEnum() { + return Companion_getInstance_937().fromValue(this.moduleType); + } + component1_7eebsc_k$() { + return this.moduleType; + } + copy_rkfw5y_k$(moduleType, moduleAuthor, moduleDispute, moduleDesc, moduleDynamic, moduleLikeUser, moduleExtend, moduleAdditional, moduleStat, moduleFold, moduleComment, moduleInteraction, moduleAuthorForward, moduleAd, moduleBanner, moduleItemNull, moduleShareInfo, moduleRecommend, moduleTop, moduleButtom, moduleStatForward, moduleStory, moduleTopic, moduleTopicDetailsExt, moduleTopTag, moduleTopicBrief, moduleTitle, moduleButton, moduleNotice, moduleOpusSummary, moduleCopyright, moduleParagraph, moduleBlocked, moduleTextNotice, moduleOpusCollection, moduleOnetimeNotice) { + return new KModule_0(moduleType, moduleAuthor, moduleDispute, moduleDesc, moduleDynamic, moduleLikeUser, moduleExtend, moduleAdditional, moduleStat, moduleFold, moduleComment, moduleInteraction, moduleAuthorForward, moduleAd, moduleBanner, moduleItemNull, moduleShareInfo, moduleRecommend, moduleTop, moduleButtom, moduleStatForward, moduleStory, moduleTopic, moduleTopicDetailsExt, moduleTopTag, moduleTopicBrief, moduleTitle, moduleButton, moduleNotice, moduleOpusSummary, moduleCopyright, moduleParagraph, moduleBlocked, moduleTextNotice, moduleOpusCollection, moduleOnetimeNotice); + } + copy(moduleType, moduleAuthor, moduleDispute, moduleDesc, moduleDynamic, moduleLikeUser, moduleExtend, moduleAdditional, moduleStat, moduleFold, moduleComment, moduleInteraction, moduleAuthorForward, moduleAd, moduleBanner, moduleItemNull, moduleShareInfo, moduleRecommend, moduleTop, moduleButtom, moduleStatForward, moduleStory, moduleTopic, moduleTopicDetailsExt, moduleTopTag, moduleTopicBrief, moduleTitle, moduleButton, moduleNotice, moduleOpusSummary, moduleCopyright, moduleParagraph, moduleBlocked, moduleTextNotice, moduleOpusCollection, moduleOnetimeNotice, $super) { + moduleType = moduleType === VOID ? this.moduleType : moduleType; + moduleAuthor = moduleAuthor === VOID ? this.moduleAuthor_1 : moduleAuthor; + moduleDispute = moduleDispute === VOID ? this.moduleDispute_1 : moduleDispute; + moduleDesc = moduleDesc === VOID ? this.moduleDesc_1 : moduleDesc; + moduleDynamic = moduleDynamic === VOID ? this.moduleDynamic_1 : moduleDynamic; + moduleLikeUser = moduleLikeUser === VOID ? this.moduleLikeUser_1 : moduleLikeUser; + moduleExtend = moduleExtend === VOID ? this.moduleExtend_1 : moduleExtend; + moduleAdditional = moduleAdditional === VOID ? this.moduleAdditional_1 : moduleAdditional; + moduleStat = moduleStat === VOID ? this.moduleStat_1 : moduleStat; + moduleFold = moduleFold === VOID ? this.moduleFold_1 : moduleFold; + moduleComment = moduleComment === VOID ? this.moduleComment_1 : moduleComment; + moduleInteraction = moduleInteraction === VOID ? this.moduleInteraction_1 : moduleInteraction; + moduleAuthorForward = moduleAuthorForward === VOID ? this.moduleAuthorForward_1 : moduleAuthorForward; + moduleAd = moduleAd === VOID ? this.moduleAd_1 : moduleAd; + moduleBanner = moduleBanner === VOID ? this.moduleBanner_1 : moduleBanner; + moduleItemNull = moduleItemNull === VOID ? this.moduleItemNull_1 : moduleItemNull; + moduleShareInfo = moduleShareInfo === VOID ? this.moduleShareInfo_1 : moduleShareInfo; + moduleRecommend = moduleRecommend === VOID ? this.moduleRecommend_1 : moduleRecommend; + moduleTop = moduleTop === VOID ? this.moduleTop_1 : moduleTop; + moduleButtom = moduleButtom === VOID ? this.moduleButtom_1 : moduleButtom; + moduleStatForward = moduleStatForward === VOID ? this.moduleStatForward_1 : moduleStatForward; + moduleStory = moduleStory === VOID ? this.moduleStory_1 : moduleStory; + moduleTopic = moduleTopic === VOID ? this.moduleTopic_1 : moduleTopic; + moduleTopicDetailsExt = moduleTopicDetailsExt === VOID ? this.moduleTopicDetailsExt_1 : moduleTopicDetailsExt; + moduleTopTag = moduleTopTag === VOID ? this.moduleTopTag_1 : moduleTopTag; + moduleTopicBrief = moduleTopicBrief === VOID ? this.moduleTopicBrief_1 : moduleTopicBrief; + moduleTitle = moduleTitle === VOID ? this.moduleTitle_1 : moduleTitle; + moduleButton = moduleButton === VOID ? this.moduleButton_1 : moduleButton; + moduleNotice = moduleNotice === VOID ? this.moduleNotice_1 : moduleNotice; + moduleOpusSummary = moduleOpusSummary === VOID ? this.moduleOpusSummary_1 : moduleOpusSummary; + moduleCopyright = moduleCopyright === VOID ? this.moduleCopyright_1 : moduleCopyright; + moduleParagraph = moduleParagraph === VOID ? this.moduleParagraph_1 : moduleParagraph; + moduleBlocked = moduleBlocked === VOID ? this.moduleBlocked_1 : moduleBlocked; + moduleTextNotice = moduleTextNotice === VOID ? this.moduleTextNotice_1 : moduleTextNotice; + moduleOpusCollection = moduleOpusCollection === VOID ? this.moduleOpusCollection_1 : moduleOpusCollection; + moduleOnetimeNotice = moduleOnetimeNotice === VOID ? this.moduleOnetimeNotice_1 : moduleOnetimeNotice; + return this.copy_rkfw5y_k$(moduleType, moduleAuthor, moduleDispute, moduleDesc, moduleDynamic, moduleLikeUser, moduleExtend, moduleAdditional, moduleStat, moduleFold, moduleComment, moduleInteraction, moduleAuthorForward, moduleAd, moduleBanner, moduleItemNull, moduleShareInfo, moduleRecommend, moduleTop, moduleButtom, moduleStatForward, moduleStory, moduleTopic, moduleTopicDetailsExt, moduleTopTag, moduleTopicBrief, moduleTitle, moduleButton, moduleNotice, moduleOpusSummary, moduleCopyright, moduleParagraph, moduleBlocked, moduleTextNotice, moduleOpusCollection, moduleOnetimeNotice); + } + toString() { + return 'KModule(moduleType=' + this.moduleType + ', moduleAuthor=' + this.moduleAuthor_1 + ', moduleDispute=' + this.moduleDispute_1 + ', moduleDesc=' + this.moduleDesc_1 + ', moduleDynamic=' + this.moduleDynamic_1 + ', moduleLikeUser=' + this.moduleLikeUser_1 + ', moduleExtend=' + this.moduleExtend_1 + ', moduleAdditional=' + this.moduleAdditional_1 + ', moduleStat=' + this.moduleStat_1 + ', moduleFold=' + this.moduleFold_1 + ', moduleComment=' + this.moduleComment_1 + ', moduleInteraction=' + this.moduleInteraction_1 + ', moduleAuthorForward=' + this.moduleAuthorForward_1 + ', moduleAd=' + this.moduleAd_1 + ', moduleBanner=' + this.moduleBanner_1 + ', moduleItemNull=' + this.moduleItemNull_1 + ', moduleShareInfo=' + this.moduleShareInfo_1 + ', moduleRecommend=' + this.moduleRecommend_1 + ', moduleTop=' + this.moduleTop_1 + ', moduleButtom=' + this.moduleButtom_1 + ', moduleStatForward=' + this.moduleStatForward_1 + ', moduleStory=' + this.moduleStory_1 + ', moduleTopic=' + this.moduleTopic_1 + ', moduleTopicDetailsExt=' + this.moduleTopicDetailsExt_1 + ', moduleTopTag=' + this.moduleTopTag_1 + ', moduleTopicBrief=' + this.moduleTopicBrief_1 + ', moduleTitle=' + this.moduleTitle_1 + ', moduleButton=' + this.moduleButton_1 + ', moduleNotice=' + this.moduleNotice_1 + ', moduleOpusSummary=' + this.moduleOpusSummary_1 + ', moduleCopyright=' + this.moduleCopyright_1 + ', moduleParagraph=' + this.moduleParagraph_1 + ', moduleBlocked=' + this.moduleBlocked_1 + ', moduleTextNotice=' + this.moduleTextNotice_1 + ', moduleOpusCollection=' + this.moduleOpusCollection_1 + ', moduleOnetimeNotice=' + this.moduleOnetimeNotice_1 + ')'; + } + hashCode() { + var result = this.moduleType; + result = imul(result, 31) + (this.moduleAuthor_1 == null ? 0 : this.moduleAuthor_1.hashCode()) | 0; + result = imul(result, 31) + (this.moduleDispute_1 == null ? 0 : this.moduleDispute_1.hashCode()) | 0; + result = imul(result, 31) + (this.moduleDesc_1 == null ? 0 : this.moduleDesc_1.hashCode()) | 0; + result = imul(result, 31) + (this.moduleDynamic_1 == null ? 0 : this.moduleDynamic_1.hashCode()) | 0; + result = imul(result, 31) + (this.moduleLikeUser_1 == null ? 0 : this.moduleLikeUser_1.hashCode()) | 0; + result = imul(result, 31) + (this.moduleExtend_1 == null ? 0 : this.moduleExtend_1.hashCode()) | 0; + result = imul(result, 31) + (this.moduleAdditional_1 == null ? 0 : this.moduleAdditional_1.hashCode()) | 0; + result = imul(result, 31) + (this.moduleStat_1 == null ? 0 : this.moduleStat_1.hashCode()) | 0; + result = imul(result, 31) + (this.moduleFold_1 == null ? 0 : this.moduleFold_1.hashCode()) | 0; + result = imul(result, 31) + (this.moduleComment_1 == null ? 0 : this.moduleComment_1.hashCode()) | 0; + result = imul(result, 31) + (this.moduleInteraction_1 == null ? 0 : this.moduleInteraction_1.hashCode()) | 0; + result = imul(result, 31) + (this.moduleAuthorForward_1 == null ? 0 : this.moduleAuthorForward_1.hashCode()) | 0; + result = imul(result, 31) + (this.moduleAd_1 == null ? 0 : this.moduleAd_1.hashCode()) | 0; + result = imul(result, 31) + (this.moduleBanner_1 == null ? 0 : this.moduleBanner_1.hashCode()) | 0; + result = imul(result, 31) + (this.moduleItemNull_1 == null ? 0 : this.moduleItemNull_1.hashCode()) | 0; + result = imul(result, 31) + (this.moduleShareInfo_1 == null ? 0 : this.moduleShareInfo_1.hashCode()) | 0; + result = imul(result, 31) + (this.moduleRecommend_1 == null ? 0 : this.moduleRecommend_1.hashCode()) | 0; + result = imul(result, 31) + (this.moduleTop_1 == null ? 0 : this.moduleTop_1.hashCode()) | 0; + result = imul(result, 31) + (this.moduleButtom_1 == null ? 0 : this.moduleButtom_1.hashCode()) | 0; + result = imul(result, 31) + (this.moduleStatForward_1 == null ? 0 : this.moduleStatForward_1.hashCode()) | 0; + result = imul(result, 31) + (this.moduleStory_1 == null ? 0 : this.moduleStory_1.hashCode()) | 0; + result = imul(result, 31) + (this.moduleTopic_1 == null ? 0 : this.moduleTopic_1.hashCode()) | 0; + result = imul(result, 31) + (this.moduleTopicDetailsExt_1 == null ? 0 : this.moduleTopicDetailsExt_1.hashCode()) | 0; + result = imul(result, 31) + (this.moduleTopTag_1 == null ? 0 : this.moduleTopTag_1.hashCode()) | 0; + result = imul(result, 31) + (this.moduleTopicBrief_1 == null ? 0 : this.moduleTopicBrief_1.hashCode()) | 0; + result = imul(result, 31) + (this.moduleTitle_1 == null ? 0 : this.moduleTitle_1.hashCode()) | 0; + result = imul(result, 31) + (this.moduleButton_1 == null ? 0 : this.moduleButton_1.hashCode()) | 0; + result = imul(result, 31) + (this.moduleNotice_1 == null ? 0 : this.moduleNotice_1.hashCode()) | 0; + result = imul(result, 31) + (this.moduleOpusSummary_1 == null ? 0 : this.moduleOpusSummary_1.hashCode()) | 0; + result = imul(result, 31) + (this.moduleCopyright_1 == null ? 0 : this.moduleCopyright_1.hashCode()) | 0; + result = imul(result, 31) + (this.moduleParagraph_1 == null ? 0 : this.moduleParagraph_1.hashCode()) | 0; + result = imul(result, 31) + (this.moduleBlocked_1 == null ? 0 : this.moduleBlocked_1.hashCode()) | 0; + result = imul(result, 31) + (this.moduleTextNotice_1 == null ? 0 : this.moduleTextNotice_1.hashCode()) | 0; + result = imul(result, 31) + (this.moduleOpusCollection_1 == null ? 0 : this.moduleOpusCollection_1.hashCode()) | 0; + result = imul(result, 31) + (this.moduleOnetimeNotice_1 == null ? 0 : this.moduleOnetimeNotice_1.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KModule_0)) + return false; + var tmp0_other_with_cast = other instanceof KModule_0 ? other : THROW_CCE(); + if (!(this.moduleType === tmp0_other_with_cast.moduleType)) + return false; + if (!equals(this.moduleAuthor_1, tmp0_other_with_cast.moduleAuthor_1)) + return false; + if (!equals(this.moduleDispute_1, tmp0_other_with_cast.moduleDispute_1)) + return false; + if (!equals(this.moduleDesc_1, tmp0_other_with_cast.moduleDesc_1)) + return false; + if (!equals(this.moduleDynamic_1, tmp0_other_with_cast.moduleDynamic_1)) + return false; + if (!equals(this.moduleLikeUser_1, tmp0_other_with_cast.moduleLikeUser_1)) + return false; + if (!equals(this.moduleExtend_1, tmp0_other_with_cast.moduleExtend_1)) + return false; + if (!equals(this.moduleAdditional_1, tmp0_other_with_cast.moduleAdditional_1)) + return false; + if (!equals(this.moduleStat_1, tmp0_other_with_cast.moduleStat_1)) + return false; + if (!equals(this.moduleFold_1, tmp0_other_with_cast.moduleFold_1)) + return false; + if (!equals(this.moduleComment_1, tmp0_other_with_cast.moduleComment_1)) + return false; + if (!equals(this.moduleInteraction_1, tmp0_other_with_cast.moduleInteraction_1)) + return false; + if (!equals(this.moduleAuthorForward_1, tmp0_other_with_cast.moduleAuthorForward_1)) + return false; + if (!equals(this.moduleAd_1, tmp0_other_with_cast.moduleAd_1)) + return false; + if (!equals(this.moduleBanner_1, tmp0_other_with_cast.moduleBanner_1)) + return false; + if (!equals(this.moduleItemNull_1, tmp0_other_with_cast.moduleItemNull_1)) + return false; + if (!equals(this.moduleShareInfo_1, tmp0_other_with_cast.moduleShareInfo_1)) + return false; + if (!equals(this.moduleRecommend_1, tmp0_other_with_cast.moduleRecommend_1)) + return false; + if (!equals(this.moduleTop_1, tmp0_other_with_cast.moduleTop_1)) + return false; + if (!equals(this.moduleButtom_1, tmp0_other_with_cast.moduleButtom_1)) + return false; + if (!equals(this.moduleStatForward_1, tmp0_other_with_cast.moduleStatForward_1)) + return false; + if (!equals(this.moduleStory_1, tmp0_other_with_cast.moduleStory_1)) + return false; + if (!equals(this.moduleTopic_1, tmp0_other_with_cast.moduleTopic_1)) + return false; + if (!equals(this.moduleTopicDetailsExt_1, tmp0_other_with_cast.moduleTopicDetailsExt_1)) + return false; + if (!equals(this.moduleTopTag_1, tmp0_other_with_cast.moduleTopTag_1)) + return false; + if (!equals(this.moduleTopicBrief_1, tmp0_other_with_cast.moduleTopicBrief_1)) + return false; + if (!equals(this.moduleTitle_1, tmp0_other_with_cast.moduleTitle_1)) + return false; + if (!equals(this.moduleButton_1, tmp0_other_with_cast.moduleButton_1)) + return false; + if (!equals(this.moduleNotice_1, tmp0_other_with_cast.moduleNotice_1)) + return false; + if (!equals(this.moduleOpusSummary_1, tmp0_other_with_cast.moduleOpusSummary_1)) + return false; + if (!equals(this.moduleCopyright_1, tmp0_other_with_cast.moduleCopyright_1)) + return false; + if (!equals(this.moduleParagraph_1, tmp0_other_with_cast.moduleParagraph_1)) + return false; + if (!equals(this.moduleBlocked_1, tmp0_other_with_cast.moduleBlocked_1)) + return false; + if (!equals(this.moduleTextNotice_1, tmp0_other_with_cast.moduleTextNotice_1)) + return false; + if (!equals(this.moduleOpusCollection_1, tmp0_other_with_cast.moduleOpusCollection_1)) + return false; + if (!equals(this.moduleOnetimeNotice_1, tmp0_other_with_cast.moduleOnetimeNotice_1)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KModule_vevp2r_k$(seen1, seen2, moduleType, moduleAuthor, moduleDispute, moduleDesc, moduleDynamic, moduleLikeUser, moduleExtend, moduleAdditional, moduleStat, moduleFold, moduleComment, moduleInteraction, moduleAuthorForward, moduleAd, moduleBanner, moduleItemNull, moduleShareInfo, moduleRecommend, moduleTop, moduleButtom, moduleStatForward, moduleStory, moduleTopic, moduleTopicDetailsExt, moduleTopTag, moduleTopicBrief, moduleTitle, moduleButton, moduleNotice, moduleOpusSummary, moduleCopyright, moduleParagraph, moduleBlocked, moduleTextNotice, moduleOpusCollection, moduleOnetimeNotice, serializationConstructorMarker) { + Companion_getInstance_956(); + if (!!(!(0 === (0 & seen1)) | !(0 === (0 & seen2)))) { + var tmp$ret$0; + // Inline function 'kotlin.intArrayOf' call + var elements = new Int32Array([seen1, seen2]); + tmp$ret$0 = elements; + var tmp = tmp$ret$0; + var tmp$ret$1; + // Inline function 'kotlin.intArrayOf' call + var elements_0 = new Int32Array([0, 0]); + tmp$ret$1 = elements_0; + throwArrayMissingFieldException(tmp, tmp$ret$1, $serializer_getInstance_943().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.moduleType = 0; + else + $this.moduleType = moduleType; + if (0 === (seen1 & 2)) + $this.moduleAuthor_1 = null; + else + $this.moduleAuthor_1 = moduleAuthor; + if (0 === (seen1 & 4)) + $this.moduleDispute_1 = null; + else + $this.moduleDispute_1 = moduleDispute; + if (0 === (seen1 & 8)) + $this.moduleDesc_1 = null; + else + $this.moduleDesc_1 = moduleDesc; + if (0 === (seen1 & 16)) + $this.moduleDynamic_1 = null; + else + $this.moduleDynamic_1 = moduleDynamic; + if (0 === (seen1 & 32)) + $this.moduleLikeUser_1 = null; + else + $this.moduleLikeUser_1 = moduleLikeUser; + if (0 === (seen1 & 64)) + $this.moduleExtend_1 = null; + else + $this.moduleExtend_1 = moduleExtend; + if (0 === (seen1 & 128)) + $this.moduleAdditional_1 = null; + else + $this.moduleAdditional_1 = moduleAdditional; + if (0 === (seen1 & 256)) + $this.moduleStat_1 = null; + else + $this.moduleStat_1 = moduleStat; + if (0 === (seen1 & 512)) + $this.moduleFold_1 = null; + else + $this.moduleFold_1 = moduleFold; + if (0 === (seen1 & 1024)) + $this.moduleComment_1 = null; + else + $this.moduleComment_1 = moduleComment; + if (0 === (seen1 & 2048)) + $this.moduleInteraction_1 = null; + else + $this.moduleInteraction_1 = moduleInteraction; + if (0 === (seen1 & 4096)) + $this.moduleAuthorForward_1 = null; + else + $this.moduleAuthorForward_1 = moduleAuthorForward; + if (0 === (seen1 & 8192)) + $this.moduleAd_1 = null; + else + $this.moduleAd_1 = moduleAd; + if (0 === (seen1 & 16384)) + $this.moduleBanner_1 = null; + else + $this.moduleBanner_1 = moduleBanner; + if (0 === (seen1 & 32768)) + $this.moduleItemNull_1 = null; + else + $this.moduleItemNull_1 = moduleItemNull; + if (0 === (seen1 & 65536)) + $this.moduleShareInfo_1 = null; + else + $this.moduleShareInfo_1 = moduleShareInfo; + if (0 === (seen1 & 131072)) + $this.moduleRecommend_1 = null; + else + $this.moduleRecommend_1 = moduleRecommend; + if (0 === (seen1 & 262144)) + $this.moduleTop_1 = null; + else + $this.moduleTop_1 = moduleTop; + if (0 === (seen1 & 524288)) + $this.moduleButtom_1 = null; + else + $this.moduleButtom_1 = moduleButtom; + if (0 === (seen1 & 1048576)) + $this.moduleStatForward_1 = null; + else + $this.moduleStatForward_1 = moduleStatForward; + if (0 === (seen1 & 2097152)) + $this.moduleStory_1 = null; + else + $this.moduleStory_1 = moduleStory; + if (0 === (seen1 & 4194304)) + $this.moduleTopic_1 = null; + else + $this.moduleTopic_1 = moduleTopic; + if (0 === (seen1 & 8388608)) + $this.moduleTopicDetailsExt_1 = null; + else + $this.moduleTopicDetailsExt_1 = moduleTopicDetailsExt; + if (0 === (seen1 & 16777216)) + $this.moduleTopTag_1 = null; + else + $this.moduleTopTag_1 = moduleTopTag; + if (0 === (seen1 & 33554432)) + $this.moduleTopicBrief_1 = null; + else + $this.moduleTopicBrief_1 = moduleTopicBrief; + if (0 === (seen1 & 67108864)) + $this.moduleTitle_1 = null; + else + $this.moduleTitle_1 = moduleTitle; + if (0 === (seen1 & 134217728)) + $this.moduleButton_1 = null; + else + $this.moduleButton_1 = moduleButton; + if (0 === (seen1 & 268435456)) + $this.moduleNotice_1 = null; + else + $this.moduleNotice_1 = moduleNotice; + if (0 === (seen1 & 536870912)) + $this.moduleOpusSummary_1 = null; + else + $this.moduleOpusSummary_1 = moduleOpusSummary; + if (0 === (seen1 & 1073741824)) + $this.moduleCopyright_1 = null; + else + $this.moduleCopyright_1 = moduleCopyright; + if (0 === (seen1 & -2147483648)) + $this.moduleParagraph_1 = null; + else + $this.moduleParagraph_1 = moduleParagraph; + if (0 === (seen2 & 1)) + $this.moduleBlocked_1 = null; + else + $this.moduleBlocked_1 = moduleBlocked; + if (0 === (seen2 & 2)) + $this.moduleTextNotice_1 = null; + else + $this.moduleTextNotice_1 = moduleTextNotice; + if (0 === (seen2 & 4)) + $this.moduleOpusCollection_1 = null; + else + $this.moduleOpusCollection_1 = moduleOpusCollection; + if (0 === (seen2 & 8)) + $this.moduleOnetimeNotice_1 = null; + else + $this.moduleOnetimeNotice_1 = moduleOnetimeNotice; + var tmp_0 = $this; + tmp_0.moduleItemNumber$delegate_1 = lazy_0(KModule$_init_$lambda_mh1hbg_0($this)); + return $this; + } + } + class Companion_957 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.Extend.HistoryReportEntry'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_944(); + } + } + class $serializer_944 { + constructor() { + $serializer_instance_944 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KExtend.KHistoryReportEntry', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('key', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('value', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KHistoryReportEntry.new_com_bapis_bilibili_app_dynamic_v2_KExtend_KHistoryReportEntry_sqoov2_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_gxjdvb_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.key === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.key); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.value === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.value); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_gxjdvb_k$(encoder, value instanceof KHistoryReportEntry ? value : THROW_CCE()); + } + } + class KHistoryReportEntry { + constructor(key, value) { + Companion_instance_957; + key = key === VOID ? '' : key; + value = value === VOID ? '' : value; + this.key = key; + this.value = value; + } + get_key_18j28a_k$() { + return this.key; + } + get_value_j01efc_k$() { + return this.value; + } + component1_7eebsc_k$() { + return this.key; + } + component2_7eebsb_k$() { + return this.value; + } + copy_plwnsl_k$(key, value) { + return new KHistoryReportEntry(key, value); + } + copy(key, value, $super) { + key = key === VOID ? this.key : key; + value = value === VOID ? this.value : value; + return this.copy_plwnsl_k$(key, value); + } + toString() { + return 'KHistoryReportEntry(key=' + this.key + ', value=' + this.value + ')'; + } + hashCode() { + var result = getStringHashCode(this.key); + result = imul(result, 31) + getStringHashCode(this.value) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KHistoryReportEntry)) + return false; + var tmp0_other_with_cast = other instanceof KHistoryReportEntry ? other : THROW_CCE(); + if (!(this.key === tmp0_other_with_cast.key)) + return false; + if (!(this.value === tmp0_other_with_cast.value)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KExtend_KHistoryReportEntry_sqoov2_k$(seen1, key, value, serializationConstructorMarker) { + Companion_instance_957; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_944().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.key = ''; + else + $this.key = key; + if (0 === (seen1 & 2)) + $this.value = ''; + else + $this.value = value; + return $this; + } + } + class Companion_958 { + constructor() { + Companion_instance_958 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, null, null, new ArrayListSerializer($serializer_getInstance_950()), new ArrayListSerializer($serializer_getInstance_950()), null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, new LinkedHashMapSerializer(StringSerializer_getInstance(), StringSerializer_getInstance()), null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.Extend'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_945(); + } + } + class $serializer_945 { + constructor() { + $serializer_instance_945 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KExtend', this, 25); + tmp0_serialDesc.addElement_5pzumi_k$('dynIdStr', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('businessId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('origDynIdStr', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('origName', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('origImgUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('origDesc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('desc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('origDynType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('shareType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('shareScene', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('isFastShare', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('rType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + tmp0_serialDesc.addElement_5pzumi_k$('dynType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(13)); + tmp0_serialDesc.addElement_5pzumi_k$('uid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(14)); + tmp0_serialDesc.addElement_5pzumi_k$('cardUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(15)); + tmp0_serialDesc.addElement_5pzumi_k$('sourceContent', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(16)); + tmp0_serialDesc.addElement_5pzumi_k$('origFace', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(17)); + tmp0_serialDesc.addElement_5pzumi_k$('reply', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(18)); + tmp0_serialDesc.addElement_5pzumi_k$('trackId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(19)); + tmp0_serialDesc.addElement_5pzumi_k$('opusSummary', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(20)); + tmp0_serialDesc.addElement_5pzumi_k$('onlyFansProperty', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(21)); + tmp0_serialDesc.addElement_5pzumi_k$('featureGate', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(22)); + tmp0_serialDesc.addElement_5pzumi_k$('isInAudit', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(23)); + tmp0_serialDesc.addElement_5pzumi_k$('historyReport', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(24)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('reportMetricData', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(25)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_958().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), tmp0_cached[5], tmp0_cached[6], IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), BooleanSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance()), StringSerializer_getInstance(), get_nullable($serializer_getInstance_948()), StringSerializer_getInstance(), get_nullable($serializer_getInstance_1041()), get_nullable($serializer_getInstance_947()), get_nullable($serializer_getInstance_946()), BooleanSerializer_getInstance(), tmp0_cached[23], StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = 0; + var tmp12_local8 = null; + var tmp13_local9 = null; + var tmp14_local10 = false; + var tmp15_local11 = 0; + var tmp16_local12 = new Long(0, 0); + var tmp17_local13 = new Long(0, 0); + var tmp18_local14 = null; + var tmp19_local15 = null; + var tmp20_local16 = null; + var tmp21_local17 = null; + var tmp22_local18 = null; + var tmp23_local19 = null; + var tmp24_local20 = null; + var tmp25_local21 = null; + var tmp26_local22 = false; + var tmp27_local23 = null; + var tmp28_local24 = null; + var tmp29_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp30_cached = Companion_getInstance_958().$childSerializers_1; + if (tmp29_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp29_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp29_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp29_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp29_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp29_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp29_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 5, tmp30_cached[5], tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp29_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 6, tmp30_cached[6], tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp29_input.decodeIntElement_941u6a_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp29_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp29_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp29_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp29_input.decodeIntElement_941u6a_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + tmp16_local12 = tmp29_input.decodeLongElement_994anb_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + tmp17_local13 = tmp29_input.decodeLongElement_994anb_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + tmp18_local14 = tmp29_input.decodeStringElement_3oenpg_k$(tmp0_desc, 14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + tmp19_local15 = tmp29_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 15, $serializer_getInstance(), tmp19_local15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + tmp20_local16 = tmp29_input.decodeStringElement_3oenpg_k$(tmp0_desc, 16); + tmp3_bitMask0 = tmp3_bitMask0 | 65536; + tmp21_local17 = tmp29_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 17, $serializer_getInstance_948(), tmp21_local17); + tmp3_bitMask0 = tmp3_bitMask0 | 131072; + tmp22_local18 = tmp29_input.decodeStringElement_3oenpg_k$(tmp0_desc, 18); + tmp3_bitMask0 = tmp3_bitMask0 | 262144; + tmp23_local19 = tmp29_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 19, $serializer_getInstance_1041(), tmp23_local19); + tmp3_bitMask0 = tmp3_bitMask0 | 524288; + tmp24_local20 = tmp29_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 20, $serializer_getInstance_947(), tmp24_local20); + tmp3_bitMask0 = tmp3_bitMask0 | 1048576; + tmp25_local21 = tmp29_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 21, $serializer_getInstance_946(), tmp25_local21); + tmp3_bitMask0 = tmp3_bitMask0 | 2097152; + tmp26_local22 = tmp29_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 22); + tmp3_bitMask0 = tmp3_bitMask0 | 4194304; + tmp27_local23 = tmp29_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 23, tmp30_cached[23], tmp27_local23); + tmp3_bitMask0 = tmp3_bitMask0 | 8388608; + tmp28_local24 = tmp29_input.decodeStringElement_3oenpg_k$(tmp0_desc, 24); + tmp3_bitMask0 = tmp3_bitMask0 | 16777216; + } else + while (tmp1_flag) { + tmp2_index = tmp29_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp29_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp29_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp29_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp29_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp29_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp29_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 5, tmp30_cached[5], tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp29_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 6, tmp30_cached[6], tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp29_input.decodeIntElement_941u6a_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp29_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp29_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp29_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp29_input.decodeIntElement_941u6a_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + case 12: + tmp16_local12 = tmp29_input.decodeLongElement_994anb_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + break; + case 13: + tmp17_local13 = tmp29_input.decodeLongElement_994anb_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + break; + case 14: + tmp18_local14 = tmp29_input.decodeStringElement_3oenpg_k$(tmp0_desc, 14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + break; + case 15: + tmp19_local15 = tmp29_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 15, $serializer_getInstance(), tmp19_local15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + break; + case 16: + tmp20_local16 = tmp29_input.decodeStringElement_3oenpg_k$(tmp0_desc, 16); + tmp3_bitMask0 = tmp3_bitMask0 | 65536; + break; + case 17: + tmp21_local17 = tmp29_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 17, $serializer_getInstance_948(), tmp21_local17); + tmp3_bitMask0 = tmp3_bitMask0 | 131072; + break; + case 18: + tmp22_local18 = tmp29_input.decodeStringElement_3oenpg_k$(tmp0_desc, 18); + tmp3_bitMask0 = tmp3_bitMask0 | 262144; + break; + case 19: + tmp23_local19 = tmp29_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 19, $serializer_getInstance_1041(), tmp23_local19); + tmp3_bitMask0 = tmp3_bitMask0 | 524288; + break; + case 20: + tmp24_local20 = tmp29_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 20, $serializer_getInstance_947(), tmp24_local20); + tmp3_bitMask0 = tmp3_bitMask0 | 1048576; + break; + case 21: + tmp25_local21 = tmp29_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 21, $serializer_getInstance_946(), tmp25_local21); + tmp3_bitMask0 = tmp3_bitMask0 | 2097152; + break; + case 22: + tmp26_local22 = tmp29_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 22); + tmp3_bitMask0 = tmp3_bitMask0 | 4194304; + break; + case 23: + tmp27_local23 = tmp29_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 23, tmp30_cached[23], tmp27_local23); + tmp3_bitMask0 = tmp3_bitMask0 | 8388608; + break; + case 24: + tmp28_local24 = tmp29_input.decodeStringElement_3oenpg_k$(tmp0_desc, 24); + tmp3_bitMask0 = tmp3_bitMask0 | 16777216; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp29_input.endStructure_1xqz0n_k$(tmp0_desc); + return KExtend_1.new_com_bapis_bilibili_app_dynamic_v2_KExtend_tc7dda_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, tmp18_local14, tmp19_local15, tmp20_local16, tmp21_local17, tmp22_local18, tmp23_local19, tmp24_local20, tmp25_local21, tmp26_local22, tmp27_local23, tmp28_local24, null); + } + serialize_1dyjv4_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_958().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.dynIdStr === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.dynIdStr); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.businessId === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.businessId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.origDynIdStr === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.origDynIdStr); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.origName === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.origName); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.origImgUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.origImgUrl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !equals(value.origDesc, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 5, tmp2_cached[5], value.origDesc); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !equals(value.desc, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 6, tmp2_cached[6], value.desc); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.origDynType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 7, value.origDynType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.shareType === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 8, value.shareType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.shareScene === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 9, value.shareScene); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.isFastShare === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 10, value.isFastShare); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.rType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 11, value.rType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !value.dynType.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 12, value.dynType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 13) ? true : !value.uid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 13, value.uid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 14) ? true : !(value.cardUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 14, value.cardUrl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 15) ? true : !(value.sourceContent == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 15, $serializer_getInstance(), value.sourceContent); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 16) ? true : !(value.origFace === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 16, value.origFace); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 17) ? true : !(value.reply == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 17, $serializer_getInstance_948(), value.reply); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 18) ? true : !(value.trackId === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 18, value.trackId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 19) ? true : !(value.opusSummary == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 19, $serializer_getInstance_1041(), value.opusSummary); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 20) ? true : !(value.onlyFansProperty == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 20, $serializer_getInstance_947(), value.onlyFansProperty); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 21) ? true : !(value.featureGate == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 21, $serializer_getInstance_946(), value.featureGate); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 22) ? true : !(value.isInAudit === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 22, value.isInAudit); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 23) ? true : !equals(value.historyReport, emptyMap())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 23, tmp2_cached[23], value.historyReport); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 24) ? true : !(value.reportMetricData === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 24, value.reportMetricData); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_1dyjv4_k$(encoder, value instanceof KExtend_1 ? value : THROW_CCE()); + } + } + class KExtend_1 { + constructor(dynIdStr, businessId, origDynIdStr, origName, origImgUrl, origDesc, desc, origDynType, shareType, shareScene, isFastShare, rType, dynType, uid, cardUrl, sourceContent, origFace, reply, trackId, opusSummary, onlyFansProperty, featureGate, isInAudit, historyReport, reportMetricData) { + Companion_getInstance_958(); + dynIdStr = dynIdStr === VOID ? '' : dynIdStr; + businessId = businessId === VOID ? '' : businessId; + origDynIdStr = origDynIdStr === VOID ? '' : origDynIdStr; + origName = origName === VOID ? '' : origName; + origImgUrl = origImgUrl === VOID ? '' : origImgUrl; + origDesc = origDesc === VOID ? emptyList() : origDesc; + desc = desc === VOID ? emptyList() : desc; + origDynType = origDynType === VOID ? 0 : origDynType; + shareType = shareType === VOID ? '' : shareType; + shareScene = shareScene === VOID ? '' : shareScene; + isFastShare = isFastShare === VOID ? false : isFastShare; + rType = rType === VOID ? 0 : rType; + dynType = dynType === VOID ? new Long(0, 0) : dynType; + uid = uid === VOID ? new Long(0, 0) : uid; + cardUrl = cardUrl === VOID ? '' : cardUrl; + sourceContent = sourceContent === VOID ? null : sourceContent; + origFace = origFace === VOID ? '' : origFace; + reply = reply === VOID ? null : reply; + trackId = trackId === VOID ? '' : trackId; + opusSummary = opusSummary === VOID ? null : opusSummary; + onlyFansProperty = onlyFansProperty === VOID ? null : onlyFansProperty; + featureGate = featureGate === VOID ? null : featureGate; + isInAudit = isInAudit === VOID ? false : isInAudit; + historyReport = historyReport === VOID ? emptyMap() : historyReport; + reportMetricData = reportMetricData === VOID ? '' : reportMetricData; + this.dynIdStr = dynIdStr; + this.businessId = businessId; + this.origDynIdStr = origDynIdStr; + this.origName = origName; + this.origImgUrl = origImgUrl; + this.origDesc = origDesc; + this.desc = desc; + this.origDynType = origDynType; + this.shareType = shareType; + this.shareScene = shareScene; + this.isFastShare = isFastShare; + this.rType = rType; + this.dynType = dynType; + this.uid = uid; + this.cardUrl = cardUrl; + this.sourceContent = sourceContent; + this.origFace = origFace; + this.reply = reply; + this.trackId = trackId; + this.opusSummary = opusSummary; + this.onlyFansProperty = onlyFansProperty; + this.featureGate = featureGate; + this.isInAudit = isInAudit; + this.historyReport = historyReport; + this.reportMetricData = reportMetricData; + } + get_dynIdStr_8b0k62_k$() { + return this.dynIdStr; + } + get_businessId_7z4n7o_k$() { + return this.businessId; + } + get_origDynIdStr_73b1o9_k$() { + return this.origDynIdStr; + } + get_origName_90djnv_k$() { + return this.origName; + } + get_origImgUrl_4je57a_k$() { + return this.origImgUrl; + } + get_origDesc_90juf9_k$() { + return this.origDesc; + } + get_desc_woknve_k$() { + return this.desc; + } + get_origDynType_22gjft_k$() { + return this.origDynType; + } + get_shareType_hndcz4_k$() { + return this.shareType; + } + get_shareScene_l3g7ee_k$() { + return this.shareScene; + } + get_isFastShare_wqzo8g_k$() { + return this.isFastShare; + } + get_rType_ixm6qr_k$() { + return this.rType; + } + get_dynType_ymr0ra_k$() { + return this.dynType; + } + get_uid_18iuqh_k$() { + return this.uid; + } + get_cardUrl_afch1y_k$() { + return this.cardUrl; + } + get_sourceContent_g32jlh_k$() { + return this.sourceContent; + } + get_origFace_90insp_k$() { + return this.origFace; + } + get_reply_ixwurl_k$() { + return this.reply; + } + get_trackId_gdy23n_k$() { + return this.trackId; + } + get_opusSummary_wx6gu_k$() { + return this.opusSummary; + } + get_onlyFansProperty_oi5kty_k$() { + return this.onlyFansProperty; + } + get_featureGate_7nixko_k$() { + return this.featureGate; + } + get_isInAudit_ujcn7n_k$() { + return this.isInAudit; + } + get_historyReport_j3dnb5_k$() { + return this.historyReport; + } + get_reportMetricData_lxcgo9_k$() { + return this.reportMetricData; + } + origDynTypeEnum() { + return Companion_getInstance_936().fromValue(this.origDynType); + } + component1_7eebsc_k$() { + return this.dynIdStr; + } + component2_7eebsb_k$() { + return this.businessId; + } + component3_7eebsa_k$() { + return this.origDynIdStr; + } + component4_7eebs9_k$() { + return this.origName; + } + component5_7eebs8_k$() { + return this.origImgUrl; + } + component6_7eebs7_k$() { + return this.origDesc; + } + component7_7eebs6_k$() { + return this.desc; + } + component8_7eebs5_k$() { + return this.origDynType; + } + component9_7eebs4_k$() { + return this.shareType; + } + component10_gazzfo_k$() { + return this.shareScene; + } + component11_gazzfn_k$() { + return this.isFastShare; + } + component12_gazzfm_k$() { + return this.rType; + } + component13_gazzfl_k$() { + return this.dynType; + } + component14_gazzfk_k$() { + return this.uid; + } + component15_gazzfj_k$() { + return this.cardUrl; + } + component16_gazzfi_k$() { + return this.sourceContent; + } + component17_gazzfh_k$() { + return this.origFace; + } + component18_gazzfg_k$() { + return this.reply; + } + component19_gazzff_k$() { + return this.trackId; + } + component20_gazzet_k$() { + return this.opusSummary; + } + component21_gazzes_k$() { + return this.onlyFansProperty; + } + component22_gazzer_k$() { + return this.featureGate; + } + component23_gazzeq_k$() { + return this.isInAudit; + } + component24_gazzep_k$() { + return this.historyReport; + } + component25_gazzeo_k$() { + return this.reportMetricData; + } + copy_cwh4e3_k$(dynIdStr, businessId, origDynIdStr, origName, origImgUrl, origDesc, desc, origDynType, shareType, shareScene, isFastShare, rType, dynType, uid, cardUrl, sourceContent, origFace, reply, trackId, opusSummary, onlyFansProperty, featureGate, isInAudit, historyReport, reportMetricData) { + return new KExtend_1(dynIdStr, businessId, origDynIdStr, origName, origImgUrl, origDesc, desc, origDynType, shareType, shareScene, isFastShare, rType, dynType, uid, cardUrl, sourceContent, origFace, reply, trackId, opusSummary, onlyFansProperty, featureGate, isInAudit, historyReport, reportMetricData); + } + copy(dynIdStr, businessId, origDynIdStr, origName, origImgUrl, origDesc, desc, origDynType, shareType, shareScene, isFastShare, rType, dynType, uid, cardUrl, sourceContent, origFace, reply, trackId, opusSummary, onlyFansProperty, featureGate, isInAudit, historyReport, reportMetricData, $super) { + dynIdStr = dynIdStr === VOID ? this.dynIdStr : dynIdStr; + businessId = businessId === VOID ? this.businessId : businessId; + origDynIdStr = origDynIdStr === VOID ? this.origDynIdStr : origDynIdStr; + origName = origName === VOID ? this.origName : origName; + origImgUrl = origImgUrl === VOID ? this.origImgUrl : origImgUrl; + origDesc = origDesc === VOID ? this.origDesc : origDesc; + desc = desc === VOID ? this.desc : desc; + origDynType = origDynType === VOID ? this.origDynType : origDynType; + shareType = shareType === VOID ? this.shareType : shareType; + shareScene = shareScene === VOID ? this.shareScene : shareScene; + isFastShare = isFastShare === VOID ? this.isFastShare : isFastShare; + rType = rType === VOID ? this.rType : rType; + dynType = dynType === VOID ? this.dynType : dynType; + uid = uid === VOID ? this.uid : uid; + cardUrl = cardUrl === VOID ? this.cardUrl : cardUrl; + sourceContent = sourceContent === VOID ? this.sourceContent : sourceContent; + origFace = origFace === VOID ? this.origFace : origFace; + reply = reply === VOID ? this.reply : reply; + trackId = trackId === VOID ? this.trackId : trackId; + opusSummary = opusSummary === VOID ? this.opusSummary : opusSummary; + onlyFansProperty = onlyFansProperty === VOID ? this.onlyFansProperty : onlyFansProperty; + featureGate = featureGate === VOID ? this.featureGate : featureGate; + isInAudit = isInAudit === VOID ? this.isInAudit : isInAudit; + historyReport = historyReport === VOID ? this.historyReport : historyReport; + reportMetricData = reportMetricData === VOID ? this.reportMetricData : reportMetricData; + return this.copy_cwh4e3_k$(dynIdStr, businessId, origDynIdStr, origName, origImgUrl, origDesc, desc, origDynType, shareType, shareScene, isFastShare, rType, dynType, uid, cardUrl, sourceContent, origFace, reply, trackId, opusSummary, onlyFansProperty, featureGate, isInAudit, historyReport, reportMetricData); + } + toString() { + return 'KExtend(dynIdStr=' + this.dynIdStr + ', businessId=' + this.businessId + ', origDynIdStr=' + this.origDynIdStr + ', origName=' + this.origName + ', origImgUrl=' + this.origImgUrl + ', origDesc=' + this.origDesc + ', desc=' + this.desc + ', origDynType=' + this.origDynType + ', shareType=' + this.shareType + ', shareScene=' + this.shareScene + ', isFastShare=' + this.isFastShare + ', rType=' + this.rType + ', dynType=' + this.dynType.toString() + ', uid=' + this.uid.toString() + ', cardUrl=' + this.cardUrl + ', sourceContent=' + this.sourceContent + ', origFace=' + this.origFace + ', reply=' + this.reply + ', trackId=' + this.trackId + ', opusSummary=' + this.opusSummary + ', onlyFansProperty=' + this.onlyFansProperty + ', featureGate=' + this.featureGate + ', isInAudit=' + this.isInAudit + ', historyReport=' + this.historyReport + ', reportMetricData=' + this.reportMetricData + ')'; + } + hashCode() { + var result = getStringHashCode(this.dynIdStr); + result = imul(result, 31) + getStringHashCode(this.businessId) | 0; + result = imul(result, 31) + getStringHashCode(this.origDynIdStr) | 0; + result = imul(result, 31) + getStringHashCode(this.origName) | 0; + result = imul(result, 31) + getStringHashCode(this.origImgUrl) | 0; + result = imul(result, 31) + hashCode(this.origDesc) | 0; + result = imul(result, 31) + hashCode(this.desc) | 0; + result = imul(result, 31) + this.origDynType | 0; + result = imul(result, 31) + getStringHashCode(this.shareType) | 0; + result = imul(result, 31) + getStringHashCode(this.shareScene) | 0; + result = imul(result, 31) + getBooleanHashCode(this.isFastShare) | 0; + result = imul(result, 31) + this.rType | 0; + result = imul(result, 31) + this.dynType.hashCode() | 0; + result = imul(result, 31) + this.uid.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.cardUrl) | 0; + result = imul(result, 31) + (this.sourceContent == null ? 0 : this.sourceContent.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.origFace) | 0; + result = imul(result, 31) + (this.reply == null ? 0 : this.reply.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.trackId) | 0; + result = imul(result, 31) + (this.opusSummary == null ? 0 : this.opusSummary.hashCode()) | 0; + result = imul(result, 31) + (this.onlyFansProperty == null ? 0 : this.onlyFansProperty.hashCode()) | 0; + result = imul(result, 31) + (this.featureGate == null ? 0 : this.featureGate.hashCode()) | 0; + result = imul(result, 31) + getBooleanHashCode(this.isInAudit) | 0; + result = imul(result, 31) + hashCode(this.historyReport) | 0; + result = imul(result, 31) + getStringHashCode(this.reportMetricData) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KExtend_1)) + return false; + var tmp0_other_with_cast = other instanceof KExtend_1 ? other : THROW_CCE(); + if (!(this.dynIdStr === tmp0_other_with_cast.dynIdStr)) + return false; + if (!(this.businessId === tmp0_other_with_cast.businessId)) + return false; + if (!(this.origDynIdStr === tmp0_other_with_cast.origDynIdStr)) + return false; + if (!(this.origName === tmp0_other_with_cast.origName)) + return false; + if (!(this.origImgUrl === tmp0_other_with_cast.origImgUrl)) + return false; + if (!equals(this.origDesc, tmp0_other_with_cast.origDesc)) + return false; + if (!equals(this.desc, tmp0_other_with_cast.desc)) + return false; + if (!(this.origDynType === tmp0_other_with_cast.origDynType)) + return false; + if (!(this.shareType === tmp0_other_with_cast.shareType)) + return false; + if (!(this.shareScene === tmp0_other_with_cast.shareScene)) + return false; + if (!(this.isFastShare === tmp0_other_with_cast.isFastShare)) + return false; + if (!(this.rType === tmp0_other_with_cast.rType)) + return false; + if (!this.dynType.equals(tmp0_other_with_cast.dynType)) + return false; + if (!this.uid.equals(tmp0_other_with_cast.uid)) + return false; + if (!(this.cardUrl === tmp0_other_with_cast.cardUrl)) + return false; + if (!equals(this.sourceContent, tmp0_other_with_cast.sourceContent)) + return false; + if (!(this.origFace === tmp0_other_with_cast.origFace)) + return false; + if (!equals(this.reply, tmp0_other_with_cast.reply)) + return false; + if (!(this.trackId === tmp0_other_with_cast.trackId)) + return false; + if (!equals(this.opusSummary, tmp0_other_with_cast.opusSummary)) + return false; + if (!equals(this.onlyFansProperty, tmp0_other_with_cast.onlyFansProperty)) + return false; + if (!equals(this.featureGate, tmp0_other_with_cast.featureGate)) + return false; + if (!(this.isInAudit === tmp0_other_with_cast.isInAudit)) + return false; + if (!equals(this.historyReport, tmp0_other_with_cast.historyReport)) + return false; + if (!(this.reportMetricData === tmp0_other_with_cast.reportMetricData)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KExtend_tc7dda_k$(seen1, dynIdStr, businessId, origDynIdStr, origName, origImgUrl, origDesc, desc, origDynType, shareType, shareScene, isFastShare, rType, dynType, uid, cardUrl, sourceContent, origFace, reply, trackId, opusSummary, onlyFansProperty, featureGate, isInAudit, historyReport, reportMetricData, serializationConstructorMarker) { + Companion_getInstance_958(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_945().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.dynIdStr = ''; + else + $this.dynIdStr = dynIdStr; + if (0 === (seen1 & 2)) + $this.businessId = ''; + else + $this.businessId = businessId; + if (0 === (seen1 & 4)) + $this.origDynIdStr = ''; + else + $this.origDynIdStr = origDynIdStr; + if (0 === (seen1 & 8)) + $this.origName = ''; + else + $this.origName = origName; + if (0 === (seen1 & 16)) + $this.origImgUrl = ''; + else + $this.origImgUrl = origImgUrl; + if (0 === (seen1 & 32)) + $this.origDesc = emptyList(); + else + $this.origDesc = origDesc; + if (0 === (seen1 & 64)) + $this.desc = emptyList(); + else + $this.desc = desc; + if (0 === (seen1 & 128)) + $this.origDynType = 0; + else + $this.origDynType = origDynType; + if (0 === (seen1 & 256)) + $this.shareType = ''; + else + $this.shareType = shareType; + if (0 === (seen1 & 512)) + $this.shareScene = ''; + else + $this.shareScene = shareScene; + if (0 === (seen1 & 1024)) + $this.isFastShare = false; + else + $this.isFastShare = isFastShare; + if (0 === (seen1 & 2048)) + $this.rType = 0; + else + $this.rType = rType; + if (0 === (seen1 & 4096)) + $this.dynType = new Long(0, 0); + else + $this.dynType = dynType; + if (0 === (seen1 & 8192)) + $this.uid = new Long(0, 0); + else + $this.uid = uid; + if (0 === (seen1 & 16384)) + $this.cardUrl = ''; + else + $this.cardUrl = cardUrl; + if (0 === (seen1 & 32768)) + $this.sourceContent = null; + else + $this.sourceContent = sourceContent; + if (0 === (seen1 & 65536)) + $this.origFace = ''; + else + $this.origFace = origFace; + if (0 === (seen1 & 131072)) + $this.reply = null; + else + $this.reply = reply; + if (0 === (seen1 & 262144)) + $this.trackId = ''; + else + $this.trackId = trackId; + if (0 === (seen1 & 524288)) + $this.opusSummary = null; + else + $this.opusSummary = opusSummary; + if (0 === (seen1 & 1048576)) + $this.onlyFansProperty = null; + else + $this.onlyFansProperty = onlyFansProperty; + if (0 === (seen1 & 2097152)) + $this.featureGate = null; + else + $this.featureGate = featureGate; + if (0 === (seen1 & 4194304)) + $this.isInAudit = false; + else + $this.isInAudit = isInAudit; + if (0 === (seen1 & 8388608)) + $this.historyReport = emptyMap(); + else + $this.historyReport = historyReport; + if (0 === (seen1 & 16777216)) + $this.reportMetricData = ''; + else + $this.reportMetricData = reportMetricData; + return $this; + } + } + class Companion_959 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.DynFeatureGate'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_946(); + } + } + class $serializer_946 { + constructor() { + $serializer_instance_946 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KDynFeatureGate', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('enhancedInteraction', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [BooleanSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = false; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KDynFeatureGate.new_com_bapis_bilibili_app_dynamic_v2_KDynFeatureGate_grrib9_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_w4rwvy_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.enhancedInteraction === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 0, value.enhancedInteraction); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_w4rwvy_k$(encoder, value instanceof KDynFeatureGate ? value : THROW_CCE()); + } + } + class KDynFeatureGate { + constructor(enhancedInteraction) { + Companion_instance_959; + enhancedInteraction = enhancedInteraction === VOID ? false : enhancedInteraction; + this.enhancedInteraction = enhancedInteraction; + } + get_enhancedInteraction_meen2r_k$() { + return this.enhancedInteraction; + } + component1_7eebsc_k$() { + return this.enhancedInteraction; + } + copy_o18wmo_k$(enhancedInteraction) { + return new KDynFeatureGate(enhancedInteraction); + } + copy(enhancedInteraction, $super) { + enhancedInteraction = enhancedInteraction === VOID ? this.enhancedInteraction : enhancedInteraction; + return this.copy_o18wmo_k$(enhancedInteraction); + } + toString() { + return 'KDynFeatureGate(enhancedInteraction=' + this.enhancedInteraction + ')'; + } + hashCode() { + return getBooleanHashCode(this.enhancedInteraction); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KDynFeatureGate)) + return false; + var tmp0_other_with_cast = other instanceof KDynFeatureGate ? other : THROW_CCE(); + if (!(this.enhancedInteraction === tmp0_other_with_cast.enhancedInteraction)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KDynFeatureGate_grrib9_k$(seen1, enhancedInteraction, serializationConstructorMarker) { + Companion_instance_959; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_946().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.enhancedInteraction = false; + else + $this.enhancedInteraction = enhancedInteraction; + return $this; + } + } + class Companion_960 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.OnlyFansProperty'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_947(); + } + } + class $serializer_947 { + constructor() { + $serializer_instance_947 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KOnlyFansProperty', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('hasPrivilege', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('isOnlyFans', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('allowDownload', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = false; + var tmp5_local1 = false; + var tmp6_local2 = false; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KOnlyFansProperty.new_com_bapis_bilibili_app_dynamic_v2_KOnlyFansProperty_3juwq6_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_8vcsy1_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.hasPrivilege === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 0, value.hasPrivilege); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.isOnlyFans === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 1, value.isOnlyFans); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.allowDownload === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 2, value.allowDownload); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_8vcsy1_k$(encoder, value instanceof KOnlyFansProperty ? value : THROW_CCE()); + } + } + class KOnlyFansProperty { + constructor(hasPrivilege, isOnlyFans, allowDownload) { + Companion_instance_960; + hasPrivilege = hasPrivilege === VOID ? false : hasPrivilege; + isOnlyFans = isOnlyFans === VOID ? false : isOnlyFans; + allowDownload = allowDownload === VOID ? false : allowDownload; + this.hasPrivilege = hasPrivilege; + this.isOnlyFans = isOnlyFans; + this.allowDownload = allowDownload; + } + get_hasPrivilege_vivqtc_k$() { + return this.hasPrivilege; + } + get_isOnlyFans_3ifk2n_k$() { + return this.isOnlyFans; + } + get_allowDownload_rxt0s8_k$() { + return this.allowDownload; + } + component1_7eebsc_k$() { + return this.hasPrivilege; + } + component2_7eebsb_k$() { + return this.isOnlyFans; + } + component3_7eebsa_k$() { + return this.allowDownload; + } + copy_u1udn4_k$(hasPrivilege, isOnlyFans, allowDownload) { + return new KOnlyFansProperty(hasPrivilege, isOnlyFans, allowDownload); + } + copy(hasPrivilege, isOnlyFans, allowDownload, $super) { + hasPrivilege = hasPrivilege === VOID ? this.hasPrivilege : hasPrivilege; + isOnlyFans = isOnlyFans === VOID ? this.isOnlyFans : isOnlyFans; + allowDownload = allowDownload === VOID ? this.allowDownload : allowDownload; + return this.copy_u1udn4_k$(hasPrivilege, isOnlyFans, allowDownload); + } + toString() { + return 'KOnlyFansProperty(hasPrivilege=' + this.hasPrivilege + ', isOnlyFans=' + this.isOnlyFans + ', allowDownload=' + this.allowDownload + ')'; + } + hashCode() { + var result = getBooleanHashCode(this.hasPrivilege); + result = imul(result, 31) + getBooleanHashCode(this.isOnlyFans) | 0; + result = imul(result, 31) + getBooleanHashCode(this.allowDownload) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KOnlyFansProperty)) + return false; + var tmp0_other_with_cast = other instanceof KOnlyFansProperty ? other : THROW_CCE(); + if (!(this.hasPrivilege === tmp0_other_with_cast.hasPrivilege)) + return false; + if (!(this.isOnlyFans === tmp0_other_with_cast.isOnlyFans)) + return false; + if (!(this.allowDownload === tmp0_other_with_cast.allowDownload)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KOnlyFansProperty_3juwq6_k$(seen1, hasPrivilege, isOnlyFans, allowDownload, serializationConstructorMarker) { + Companion_instance_960; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_947().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.hasPrivilege = false; + else + $this.hasPrivilege = hasPrivilege; + if (0 === (seen1 & 2)) + $this.isOnlyFans = false; + else + $this.isOnlyFans = isOnlyFans; + if (0 === (seen1 & 4)) + $this.allowDownload = false; + else + $this.allowDownload = allowDownload; + return $this; + } + } + class Companion_961 { + constructor() { + Companion_instance_961 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, new ArrayListSerializer($serializer_getInstance_949())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.ExtendReply'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_948(); + } + } + class $serializer_948 { + constructor() { + $serializer_instance_948 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KExtendReply', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('uri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('params', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_961().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), tmp0_cached[1]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp7_cached = Companion_getInstance_961().$childSerializers_1; + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KExtendReply.new_com_bapis_bilibili_app_dynamic_v2_KExtendReply_e8wq7k_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_a8lf2s_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_961().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.uri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.uri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !equals(value.params, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 1, tmp2_cached[1], value.params); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_a8lf2s_k$(encoder, value instanceof KExtendReply ? value : THROW_CCE()); + } + } + class KExtendReply { + constructor(uri, params) { + Companion_getInstance_961(); + uri = uri === VOID ? '' : uri; + params = params === VOID ? emptyList() : params; + this.uri = uri; + this.params = params; + } + get_uri_18iuil_k$() { + return this.uri; + } + get_params_hy4oen_k$() { + return this.params; + } + component1_7eebsc_k$() { + return this.uri; + } + component2_7eebsb_k$() { + return this.params; + } + copy_o1li2r_k$(uri, params) { + return new KExtendReply(uri, params); + } + copy(uri, params, $super) { + uri = uri === VOID ? this.uri : uri; + params = params === VOID ? this.params : params; + return this.copy_o1li2r_k$(uri, params); + } + toString() { + return 'KExtendReply(uri=' + this.uri + ', params=' + this.params + ')'; + } + hashCode() { + var result = getStringHashCode(this.uri); + result = imul(result, 31) + hashCode(this.params) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KExtendReply)) + return false; + var tmp0_other_with_cast = other instanceof KExtendReply ? other : THROW_CCE(); + if (!(this.uri === tmp0_other_with_cast.uri)) + return false; + if (!equals(this.params, tmp0_other_with_cast.params)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KExtendReply_e8wq7k_k$(seen1, uri, params, serializationConstructorMarker) { + Companion_getInstance_961(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_948().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.uri = ''; + else + $this.uri = uri; + if (0 === (seen1 & 2)) + $this.params = emptyList(); + else + $this.params = params; + return $this; + } + } + class Companion_962 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.ExtendReplyParam'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_949(); + } + } + class $serializer_949 { + constructor() { + $serializer_instance_949 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KExtendReplyParam', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('key', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('value', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KExtendReplyParam.new_com_bapis_bilibili_app_dynamic_v2_KExtendReplyParam_97ieyz_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_jrzilv_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.key === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.key); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.value === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.value); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_jrzilv_k$(encoder, value instanceof KExtendReplyParam ? value : THROW_CCE()); + } + } + class KExtendReplyParam { + constructor(key, value) { + Companion_instance_962; + key = key === VOID ? '' : key; + value = value === VOID ? '' : value; + this.key = key; + this.value = value; + } + get_key_18j28a_k$() { + return this.key; + } + get_value_j01efc_k$() { + return this.value; + } + component1_7eebsc_k$() { + return this.key; + } + component2_7eebsb_k$() { + return this.value; + } + copy_plwnsl_k$(key, value) { + return new KExtendReplyParam(key, value); + } + copy(key, value, $super) { + key = key === VOID ? this.key : key; + value = value === VOID ? this.value : value; + return this.copy_plwnsl_k$(key, value); + } + toString() { + return 'KExtendReplyParam(key=' + this.key + ', value=' + this.value + ')'; + } + hashCode() { + var result = getStringHashCode(this.key); + result = imul(result, 31) + getStringHashCode(this.value) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KExtendReplyParam)) + return false; + var tmp0_other_with_cast = other instanceof KExtendReplyParam ? other : THROW_CCE(); + if (!(this.key === tmp0_other_with_cast.key)) + return false; + if (!(this.value === tmp0_other_with_cast.value)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KExtendReplyParam_97ieyz_k$(seen1, key, value, serializationConstructorMarker) { + Companion_instance_962; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_949().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.key = ''; + else + $this.key = key; + if (0 === (seen1 & 2)) + $this.value = ''; + else + $this.value = value; + return $this; + } + } + class Companion_963 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.Description'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_950(); + } + } + class $serializer_950 { + constructor() { + $serializer_instance_950 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KDescription', this, 12); + tmp0_serialDesc.addElement_5pzumi_k$('text', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('uri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('emojiType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('goodsType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('iconUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('iconName', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('rid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('goods', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('origText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('emojiSize', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('emojiSizeSpec', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_952()), StringSerializer_getInstance(), IntSerializer_getInstance(), get_nullable($serializer_getInstance_951())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = 0; + var tmp6_local2 = null; + var tmp7_local3 = 0; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_local8 = null; + var tmp13_local9 = null; + var tmp14_local10 = 0; + var tmp15_local11 = null; + var tmp16_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp16_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp16_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_952(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp16_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 11, $serializer_getInstance_951(), tmp15_local11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + } else + while (tmp1_flag) { + tmp2_index = tmp16_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp16_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_952(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp16_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 11, $serializer_getInstance_951(), tmp15_local11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp16_input.endStructure_1xqz0n_k$(tmp0_desc); + return KDescription.new_com_bapis_bilibili_app_dynamic_v2_KDescription_e8fl8_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, null); + } + serialize_xqsogw_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.text === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.text); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.type === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.type); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.uri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.uri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.emojiType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 3, value.emojiType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.goodsType === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.goodsType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.iconUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.iconUrl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.iconName === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.iconName); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.rid === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.rid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.goods == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 8, $serializer_getInstance_952(), value.goods); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.origText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 9, value.origText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.emojiSize === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 10, value.emojiSize); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.emojiSizeSpec == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 11, $serializer_getInstance_951(), value.emojiSizeSpec); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_xqsogw_k$(encoder, value instanceof KDescription ? value : THROW_CCE()); + } + } + class KDescription { + constructor(text, type, uri, emojiType, goodsType, iconUrl, iconName, rid, goods, origText, emojiSize, emojiSizeSpec) { + Companion_instance_963; + text = text === VOID ? '' : text; + type = type === VOID ? 0 : type; + uri = uri === VOID ? '' : uri; + emojiType = emojiType === VOID ? 0 : emojiType; + goodsType = goodsType === VOID ? '' : goodsType; + iconUrl = iconUrl === VOID ? '' : iconUrl; + iconName = iconName === VOID ? '' : iconName; + rid = rid === VOID ? '' : rid; + goods = goods === VOID ? null : goods; + origText = origText === VOID ? '' : origText; + emojiSize = emojiSize === VOID ? 0 : emojiSize; + emojiSizeSpec = emojiSizeSpec === VOID ? null : emojiSizeSpec; + this.text = text; + this.type = type; + this.uri = uri; + this.emojiType = emojiType; + this.goodsType = goodsType; + this.iconUrl = iconUrl; + this.iconName = iconName; + this.rid = rid; + this.goods = goods; + this.origText = origText; + this.emojiSize = emojiSize; + this.emojiSizeSpec = emojiSizeSpec; + } + get_text_wouvsm_k$() { + return this.text; + } + get_type_wovaf7_k$() { + return this.type; + } + get_uri_18iuil_k$() { + return this.uri; + } + get_emojiType_ymj409_k$() { + return this.emojiType; + } + get_goodsType_vku22v_k$() { + return this.goodsType; + } + get_iconUrl_sd8dal_k$() { + return this.iconUrl; + } + get_iconName_r0pyzx_k$() { + return this.iconName; + } + get_rid_18iwyk_k$() { + return this.rid; + } + get_goods_is1h65_k$() { + return this.goods; + } + get_origText_909mi1_k$() { + return this.origText; + } + get_emojiSize_ymk2ma_k$() { + return this.emojiSize; + } + get_emojiSizeSpec_6n07fd_k$() { + return this.emojiSizeSpec; + } + typeEnum() { + return Companion_getInstance_938().fromValue(this.type); + } + emojiTypeEnum() { + return Companion_getInstance_939().fromValue(this.emojiType); + } + component1_7eebsc_k$() { + return this.text; + } + component2_7eebsb_k$() { + return this.type; + } + component3_7eebsa_k$() { + return this.uri; + } + component4_7eebs9_k$() { + return this.emojiType; + } + component5_7eebs8_k$() { + return this.goodsType; + } + component6_7eebs7_k$() { + return this.iconUrl; + } + component7_7eebs6_k$() { + return this.iconName; + } + component8_7eebs5_k$() { + return this.rid; + } + component9_7eebs4_k$() { + return this.goods; + } + component10_gazzfo_k$() { + return this.origText; + } + component11_gazzfn_k$() { + return this.emojiSize; + } + component12_gazzfm_k$() { + return this.emojiSizeSpec; + } + copy_5nrqbg_k$(text, type, uri, emojiType, goodsType, iconUrl, iconName, rid, goods, origText, emojiSize, emojiSizeSpec) { + return new KDescription(text, type, uri, emojiType, goodsType, iconUrl, iconName, rid, goods, origText, emojiSize, emojiSizeSpec); + } + copy(text, type, uri, emojiType, goodsType, iconUrl, iconName, rid, goods, origText, emojiSize, emojiSizeSpec, $super) { + text = text === VOID ? this.text : text; + type = type === VOID ? this.type : type; + uri = uri === VOID ? this.uri : uri; + emojiType = emojiType === VOID ? this.emojiType : emojiType; + goodsType = goodsType === VOID ? this.goodsType : goodsType; + iconUrl = iconUrl === VOID ? this.iconUrl : iconUrl; + iconName = iconName === VOID ? this.iconName : iconName; + rid = rid === VOID ? this.rid : rid; + goods = goods === VOID ? this.goods : goods; + origText = origText === VOID ? this.origText : origText; + emojiSize = emojiSize === VOID ? this.emojiSize : emojiSize; + emojiSizeSpec = emojiSizeSpec === VOID ? this.emojiSizeSpec : emojiSizeSpec; + return this.copy_5nrqbg_k$(text, type, uri, emojiType, goodsType, iconUrl, iconName, rid, goods, origText, emojiSize, emojiSizeSpec); + } + toString() { + return 'KDescription(text=' + this.text + ', type=' + this.type + ', uri=' + this.uri + ', emojiType=' + this.emojiType + ', goodsType=' + this.goodsType + ', iconUrl=' + this.iconUrl + ', iconName=' + this.iconName + ', rid=' + this.rid + ', goods=' + this.goods + ', origText=' + this.origText + ', emojiSize=' + this.emojiSize + ', emojiSizeSpec=' + this.emojiSizeSpec + ')'; + } + hashCode() { + var result = getStringHashCode(this.text); + result = imul(result, 31) + this.type | 0; + result = imul(result, 31) + getStringHashCode(this.uri) | 0; + result = imul(result, 31) + this.emojiType | 0; + result = imul(result, 31) + getStringHashCode(this.goodsType) | 0; + result = imul(result, 31) + getStringHashCode(this.iconUrl) | 0; + result = imul(result, 31) + getStringHashCode(this.iconName) | 0; + result = imul(result, 31) + getStringHashCode(this.rid) | 0; + result = imul(result, 31) + (this.goods == null ? 0 : this.goods.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.origText) | 0; + result = imul(result, 31) + this.emojiSize | 0; + result = imul(result, 31) + (this.emojiSizeSpec == null ? 0 : this.emojiSizeSpec.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KDescription)) + return false; + var tmp0_other_with_cast = other instanceof KDescription ? other : THROW_CCE(); + if (!(this.text === tmp0_other_with_cast.text)) + return false; + if (!(this.type === tmp0_other_with_cast.type)) + return false; + if (!(this.uri === tmp0_other_with_cast.uri)) + return false; + if (!(this.emojiType === tmp0_other_with_cast.emojiType)) + return false; + if (!(this.goodsType === tmp0_other_with_cast.goodsType)) + return false; + if (!(this.iconUrl === tmp0_other_with_cast.iconUrl)) + return false; + if (!(this.iconName === tmp0_other_with_cast.iconName)) + return false; + if (!(this.rid === tmp0_other_with_cast.rid)) + return false; + if (!equals(this.goods, tmp0_other_with_cast.goods)) + return false; + if (!(this.origText === tmp0_other_with_cast.origText)) + return false; + if (!(this.emojiSize === tmp0_other_with_cast.emojiSize)) + return false; + if (!equals(this.emojiSizeSpec, tmp0_other_with_cast.emojiSizeSpec)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KDescription_e8fl8_k$(seen1, text, type, uri, emojiType, goodsType, iconUrl, iconName, rid, goods, origText, emojiSize, emojiSizeSpec, serializationConstructorMarker) { + Companion_instance_963; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_950().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.text = ''; + else + $this.text = text; + if (0 === (seen1 & 2)) + $this.type = 0; + else + $this.type = type; + if (0 === (seen1 & 4)) + $this.uri = ''; + else + $this.uri = uri; + if (0 === (seen1 & 8)) + $this.emojiType = 0; + else + $this.emojiType = emojiType; + if (0 === (seen1 & 16)) + $this.goodsType = ''; + else + $this.goodsType = goodsType; + if (0 === (seen1 & 32)) + $this.iconUrl = ''; + else + $this.iconUrl = iconUrl; + if (0 === (seen1 & 64)) + $this.iconName = ''; + else + $this.iconName = iconName; + if (0 === (seen1 & 128)) + $this.rid = ''; + else + $this.rid = rid; + if (0 === (seen1 & 256)) + $this.goods = null; + else + $this.goods = goods; + if (0 === (seen1 & 512)) + $this.origText = ''; + else + $this.origText = origText; + if (0 === (seen1 & 1024)) + $this.emojiSize = 0; + else + $this.emojiSize = emojiSize; + if (0 === (seen1 & 2048)) + $this.emojiSizeSpec = null; + else + $this.emojiSizeSpec = emojiSizeSpec; + return $this; + } + } + class Companion_964 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.EmojiSizeSpec'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_951(); + } + } + class $serializer_951 { + constructor() { + $serializer_instance_951 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KEmojiSizeSpec', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('width', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KEmojiSizeSpec.new_com_bapis_bilibili_app_dynamic_v2_KEmojiSizeSpec_nl0d1w_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_86ajfq_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.width.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.width); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_86ajfq_k$(encoder, value instanceof KEmojiSizeSpec ? value : THROW_CCE()); + } + } + class KEmojiSizeSpec { + constructor(width) { + Companion_instance_964; + width = width === VOID ? new Long(0, 0) : width; + this.width = width; + } + get_width_j0q4yl_k$() { + return this.width; + } + component1_7eebsc_k$() { + return this.width; + } + copy_5ymysz_k$(width) { + return new KEmojiSizeSpec(width); + } + copy(width, $super) { + width = width === VOID ? this.width : width; + return this.copy_5ymysz_k$(width); + } + toString() { + return 'KEmojiSizeSpec(width=' + this.width.toString() + ')'; + } + hashCode() { + return this.width.hashCode(); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KEmojiSizeSpec)) + return false; + var tmp0_other_with_cast = other instanceof KEmojiSizeSpec ? other : THROW_CCE(); + if (!this.width.equals(tmp0_other_with_cast.width)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KEmojiSizeSpec_nl0d1w_k$(seen1, width, serializationConstructorMarker) { + Companion_instance_964; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_951().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.width = new Long(0, 0); + else + $this.width = width; + return $this; + } + } + class Companion_965 { + constructor() { + Companion_instance_965 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, null, new ArrayListSerializer(StringSerializer_getInstance()), null, null, null, null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.ModuleDescGoods'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_952(); + } + } + class $serializer_952 { + constructor() { + $serializer_instance_952 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KModuleDescGoods', this, 10); + tmp0_serialDesc.addElement_5pzumi_k$('sourceType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('jumpUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('schemaUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('itemId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('openWhiteList', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('userWebV2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('adMark', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('schemaPackageName', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('jumpType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('appName', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_965().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), tmp0_cached[4], BooleanSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = new Long(0, 0); + var tmp8_local4 = null; + var tmp9_local5 = false; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_local8 = 0; + var tmp13_local9 = null; + var tmp14_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp15_cached = Companion_getInstance_965().$childSerializers_1; + if (tmp14_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp14_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 4, tmp15_cached[4], tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp14_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + } else + while (tmp1_flag) { + tmp2_index = tmp14_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp14_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 4, tmp15_cached[4], tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp14_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp14_input.endStructure_1xqz0n_k$(tmp0_desc); + return KModuleDescGoods.new_com_bapis_bilibili_app_dynamic_v2_KModuleDescGoods_5gewtc_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, null); + } + serialize_dn7gu5_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_965().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.sourceType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.sourceType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.jumpUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.jumpUrl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.schemaUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.schemaUrl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !value.itemId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 3, value.itemId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !equals(value.openWhiteList, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 4, tmp2_cached[4], value.openWhiteList); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.userWebV2 === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 5, value.userWebV2); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.adMark === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.adMark); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.schemaPackageName === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.schemaPackageName); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.jumpType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 8, value.jumpType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.appName === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 9, value.appName); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_dn7gu5_k$(encoder, value instanceof KModuleDescGoods ? value : THROW_CCE()); + } + } + class KModuleDescGoods { + constructor(sourceType, jumpUrl, schemaUrl, itemId, openWhiteList, userWebV2, adMark, schemaPackageName, jumpType, appName) { + Companion_getInstance_965(); + sourceType = sourceType === VOID ? 0 : sourceType; + jumpUrl = jumpUrl === VOID ? '' : jumpUrl; + schemaUrl = schemaUrl === VOID ? '' : schemaUrl; + itemId = itemId === VOID ? new Long(0, 0) : itemId; + openWhiteList = openWhiteList === VOID ? emptyList() : openWhiteList; + userWebV2 = userWebV2 === VOID ? false : userWebV2; + adMark = adMark === VOID ? '' : adMark; + schemaPackageName = schemaPackageName === VOID ? '' : schemaPackageName; + jumpType = jumpType === VOID ? 0 : jumpType; + appName = appName === VOID ? '' : appName; + this.sourceType = sourceType; + this.jumpUrl = jumpUrl; + this.schemaUrl = schemaUrl; + this.itemId = itemId; + this.openWhiteList = openWhiteList; + this.userWebV2 = userWebV2; + this.adMark = adMark; + this.schemaPackageName = schemaPackageName; + this.jumpType = jumpType; + this.appName = appName; + } + get_sourceType_wh556m_k$() { + return this.sourceType; + } + get_jumpUrl_jhqiko_k$() { + return this.jumpUrl; + } + get_schemaUrl_5zf52d_k$() { + return this.schemaUrl; + } + get_itemId_ex1c47_k$() { + return this.itemId; + } + get_openWhiteList_vf82y4_k$() { + return this.openWhiteList; + } + get_userWebV2_dzzyv0_k$() { + return this.userWebV2; + } + get_adMark_avg3vd_k$() { + return this.adMark; + } + get_schemaPackageName_i3l995_k$() { + return this.schemaPackageName; + } + get_jumpType_z060cx_k$() { + return this.jumpType; + } + get_appName_bv95lp_k$() { + return this.appName; + } + jumpTypeEnum() { + return Companion_getInstance_1077().fromValue(this.jumpType); + } + component1_7eebsc_k$() { + return this.sourceType; + } + component2_7eebsb_k$() { + return this.jumpUrl; + } + component3_7eebsa_k$() { + return this.schemaUrl; + } + component4_7eebs9_k$() { + return this.itemId; + } + component5_7eebs8_k$() { + return this.openWhiteList; + } + component6_7eebs7_k$() { + return this.userWebV2; + } + component7_7eebs6_k$() { + return this.adMark; + } + component8_7eebs5_k$() { + return this.schemaPackageName; + } + component9_7eebs4_k$() { + return this.jumpType; + } + component10_gazzfo_k$() { + return this.appName; + } + copy_ud77c8_k$(sourceType, jumpUrl, schemaUrl, itemId, openWhiteList, userWebV2, adMark, schemaPackageName, jumpType, appName) { + return new KModuleDescGoods(sourceType, jumpUrl, schemaUrl, itemId, openWhiteList, userWebV2, adMark, schemaPackageName, jumpType, appName); + } + copy(sourceType, jumpUrl, schemaUrl, itemId, openWhiteList, userWebV2, adMark, schemaPackageName, jumpType, appName, $super) { + sourceType = sourceType === VOID ? this.sourceType : sourceType; + jumpUrl = jumpUrl === VOID ? this.jumpUrl : jumpUrl; + schemaUrl = schemaUrl === VOID ? this.schemaUrl : schemaUrl; + itemId = itemId === VOID ? this.itemId : itemId; + openWhiteList = openWhiteList === VOID ? this.openWhiteList : openWhiteList; + userWebV2 = userWebV2 === VOID ? this.userWebV2 : userWebV2; + adMark = adMark === VOID ? this.adMark : adMark; + schemaPackageName = schemaPackageName === VOID ? this.schemaPackageName : schemaPackageName; + jumpType = jumpType === VOID ? this.jumpType : jumpType; + appName = appName === VOID ? this.appName : appName; + return this.copy_ud77c8_k$(sourceType, jumpUrl, schemaUrl, itemId, openWhiteList, userWebV2, adMark, schemaPackageName, jumpType, appName); + } + toString() { + return 'KModuleDescGoods(sourceType=' + this.sourceType + ', jumpUrl=' + this.jumpUrl + ', schemaUrl=' + this.schemaUrl + ', itemId=' + this.itemId.toString() + ', openWhiteList=' + this.openWhiteList + ', userWebV2=' + this.userWebV2 + ', adMark=' + this.adMark + ', schemaPackageName=' + this.schemaPackageName + ', jumpType=' + this.jumpType + ', appName=' + this.appName + ')'; + } + hashCode() { + var result = this.sourceType; + result = imul(result, 31) + getStringHashCode(this.jumpUrl) | 0; + result = imul(result, 31) + getStringHashCode(this.schemaUrl) | 0; + result = imul(result, 31) + this.itemId.hashCode() | 0; + result = imul(result, 31) + hashCode(this.openWhiteList) | 0; + result = imul(result, 31) + getBooleanHashCode(this.userWebV2) | 0; + result = imul(result, 31) + getStringHashCode(this.adMark) | 0; + result = imul(result, 31) + getStringHashCode(this.schemaPackageName) | 0; + result = imul(result, 31) + this.jumpType | 0; + result = imul(result, 31) + getStringHashCode(this.appName) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KModuleDescGoods)) + return false; + var tmp0_other_with_cast = other instanceof KModuleDescGoods ? other : THROW_CCE(); + if (!(this.sourceType === tmp0_other_with_cast.sourceType)) + return false; + if (!(this.jumpUrl === tmp0_other_with_cast.jumpUrl)) + return false; + if (!(this.schemaUrl === tmp0_other_with_cast.schemaUrl)) + return false; + if (!this.itemId.equals(tmp0_other_with_cast.itemId)) + return false; + if (!equals(this.openWhiteList, tmp0_other_with_cast.openWhiteList)) + return false; + if (!(this.userWebV2 === tmp0_other_with_cast.userWebV2)) + return false; + if (!(this.adMark === tmp0_other_with_cast.adMark)) + return false; + if (!(this.schemaPackageName === tmp0_other_with_cast.schemaPackageName)) + return false; + if (!(this.jumpType === tmp0_other_with_cast.jumpType)) + return false; + if (!(this.appName === tmp0_other_with_cast.appName)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KModuleDescGoods_5gewtc_k$(seen1, sourceType, jumpUrl, schemaUrl, itemId, openWhiteList, userWebV2, adMark, schemaPackageName, jumpType, appName, serializationConstructorMarker) { + Companion_getInstance_965(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_952().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.sourceType = 0; + else + $this.sourceType = sourceType; + if (0 === (seen1 & 2)) + $this.jumpUrl = ''; + else + $this.jumpUrl = jumpUrl; + if (0 === (seen1 & 4)) + $this.schemaUrl = ''; + else + $this.schemaUrl = schemaUrl; + if (0 === (seen1 & 8)) + $this.itemId = new Long(0, 0); + else + $this.itemId = itemId; + if (0 === (seen1 & 16)) + $this.openWhiteList = emptyList(); + else + $this.openWhiteList = openWhiteList; + if (0 === (seen1 & 32)) + $this.userWebV2 = false; + else + $this.userWebV2 = userWebV2; + if (0 === (seen1 & 64)) + $this.adMark = ''; + else + $this.adMark = adMark; + if (0 === (seen1 & 128)) + $this.schemaPackageName = ''; + else + $this.schemaPackageName = schemaPackageName; + if (0 === (seen1 & 256)) + $this.jumpType = 0; + else + $this.jumpType = jumpType; + if (0 === (seen1 & 512)) + $this.appName = ''; + else + $this.appName = appName; + return $this; + } + } + class Companion_966 { + constructor() { + Companion_instance_966 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, null, null, new ArrayListSerializer($serializer_getInstance_972()), null, null, null, null, null, null, null, null, null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.ModuleAuthor'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_953(); + } + } + class $serializer_953 { + constructor() { + $serializer_instance_953 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KModuleAuthor', this, 16); + tmp0_serialDesc.addElement_5pzumi_k$('mid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('ptimeLabelText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('author', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('decorateCard', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('uri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('tpList', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('badgeType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('badgeButton', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('attend', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('relation', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('weight', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('showFollow', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + tmp0_serialDesc.addElement_5pzumi_k$('isTop', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(13)); + tmp0_serialDesc.addElement_5pzumi_k$('ptimeLocationText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(14)); + tmp0_serialDesc.addElement_5pzumi_k$('showLevel', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(15)); + tmp0_serialDesc.addElement_5pzumi_k$('onlyFans', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(16)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_966().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_956()), get_nullable($serializer_getInstance_963()), StringSerializer_getInstance(), tmp0_cached[5], IntSerializer_getInstance(), get_nullable($serializer_getInstance_966()), IntSerializer_getInstance(), get_nullable($serializer_getInstance_967()), get_nullable($serializer_getInstance_968()), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), StringSerializer_getInstance(), BooleanSerializer_getInstance(), get_nullable($serializer_getInstance_954())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = 0; + var tmp11_local7 = null; + var tmp12_local8 = 0; + var tmp13_local9 = null; + var tmp14_local10 = null; + var tmp15_local11 = false; + var tmp16_local12 = false; + var tmp17_local13 = null; + var tmp18_local14 = false; + var tmp19_local15 = null; + var tmp20_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp21_cached = Companion_getInstance_966().$childSerializers_1; + if (tmp20_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp20_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_956(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_963(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp20_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 5, tmp21_cached[5], tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_966(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 9, $serializer_getInstance_967(), tmp13_local9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 10, $serializer_getInstance_968(), tmp14_local10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp20_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + tmp16_local12 = tmp20_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + tmp17_local13 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + tmp18_local14 = tmp20_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + tmp19_local15 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 15, $serializer_getInstance_954(), tmp19_local15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + } else + while (tmp1_flag) { + tmp2_index = tmp20_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp20_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_956(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_963(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp20_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 5, tmp21_cached[5], tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_966(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 9, $serializer_getInstance_967(), tmp13_local9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 10, $serializer_getInstance_968(), tmp14_local10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp20_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + case 12: + tmp16_local12 = tmp20_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + break; + case 13: + tmp17_local13 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + break; + case 14: + tmp18_local14 = tmp20_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + break; + case 15: + tmp19_local15 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 15, $serializer_getInstance_954(), tmp19_local15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp20_input.endStructure_1xqz0n_k$(tmp0_desc); + return KModuleAuthor_0.new_com_bapis_bilibili_app_dynamic_v2_KModuleAuthor_zbh6sk_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, tmp18_local14, tmp19_local15, null); + } + serialize_qqow4z_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_966().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.mid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.mid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.ptimeLabelText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.ptimeLabelText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.author == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_956(), value.author); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.decorateCard == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_963(), value.decorateCard); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.uri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.uri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !equals(value.tpList, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 5, tmp2_cached[5], value.tpList); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.badgeType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 6, value.badgeType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.badgeButton == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 7, $serializer_getInstance_966(), value.badgeButton); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.attend === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 8, value.attend); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.relation == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 9, $serializer_getInstance_967(), value.relation); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.weight == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 10, $serializer_getInstance_968(), value.weight); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.showFollow === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 11, value.showFollow); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !(value.isTop === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 12, value.isTop); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 13) ? true : !(value.ptimeLocationText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 13, value.ptimeLocationText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 14) ? true : !(value.showLevel === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 14, value.showLevel); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 15) ? true : !(value.onlyFans == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 15, $serializer_getInstance_954(), value.onlyFans); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_qqow4z_k$(encoder, value instanceof KModuleAuthor_0 ? value : THROW_CCE()); + } + } + class KModuleAuthor_0 { + constructor(mid, ptimeLabelText, author, decorateCard, uri, tpList, badgeType, badgeButton, attend, relation, weight, showFollow, isTop, ptimeLocationText, showLevel, onlyFans) { + Companion_getInstance_966(); + mid = mid === VOID ? new Long(0, 0) : mid; + ptimeLabelText = ptimeLabelText === VOID ? '' : ptimeLabelText; + author = author === VOID ? null : author; + decorateCard = decorateCard === VOID ? null : decorateCard; + uri = uri === VOID ? '' : uri; + tpList = tpList === VOID ? emptyList() : tpList; + badgeType = badgeType === VOID ? 0 : badgeType; + badgeButton = badgeButton === VOID ? null : badgeButton; + attend = attend === VOID ? 0 : attend; + relation = relation === VOID ? null : relation; + weight = weight === VOID ? null : weight; + showFollow = showFollow === VOID ? false : showFollow; + isTop = isTop === VOID ? false : isTop; + ptimeLocationText = ptimeLocationText === VOID ? '' : ptimeLocationText; + showLevel = showLevel === VOID ? false : showLevel; + onlyFans = onlyFans === VOID ? null : onlyFans; + this.mid = mid; + this.ptimeLabelText = ptimeLabelText; + this.author = author; + this.decorateCard = decorateCard; + this.uri = uri; + this.tpList = tpList; + this.badgeType = badgeType; + this.badgeButton = badgeButton; + this.attend = attend; + this.relation = relation; + this.weight = weight; + this.showFollow = showFollow; + this.isTop = isTop; + this.ptimeLocationText = ptimeLocationText; + this.showLevel = showLevel; + this.onlyFans = onlyFans; + } + get_mid_18j0o1_k$() { + return this.mid; + } + get_ptimeLabelText_r66xdf_k$() { + return this.ptimeLabelText; + } + get_author_b5hnkk_k$() { + return this.author; + } + get_decorateCard_nixz3u_k$() { + return this.decorateCard; + } + get_uri_18iuil_k$() { + return this.uri; + } + get_tpList_k1vzgj_k$() { + return this.tpList; + } + get_badgeType_rkpkj0_k$() { + return this.badgeType; + } + get_badgeButton_dwhy2c_k$() { + return this.badgeButton; + } + get_attend_b4xspv_k$() { + return this.attend; + } + get_relation_u22tol_k$() { + return this.relation; + } + get_weight_lbhkzl_k$() { + return this.weight; + } + get_showFollow_dgg9yh_k$() { + return this.showFollow; + } + get_isTop_it72jm_k$() { + return this.isTop; + } + get_ptimeLocationText_hd5j92_k$() { + return this.ptimeLocationText; + } + get_showLevel_n9dici_k$() { + return this.showLevel; + } + get_onlyFans_501ff9_k$() { + return this.onlyFans; + } + badgeTypeEnum() { + return Companion_getInstance_942().fromValue(this.badgeType); + } + component1_7eebsc_k$() { + return this.mid; + } + component2_7eebsb_k$() { + return this.ptimeLabelText; + } + component3_7eebsa_k$() { + return this.author; + } + component4_7eebs9_k$() { + return this.decorateCard; + } + component5_7eebs8_k$() { + return this.uri; + } + component6_7eebs7_k$() { + return this.tpList; + } + component7_7eebs6_k$() { + return this.badgeType; + } + component8_7eebs5_k$() { + return this.badgeButton; + } + component9_7eebs4_k$() { + return this.attend; + } + component10_gazzfo_k$() { + return this.relation; + } + component11_gazzfn_k$() { + return this.weight; + } + component12_gazzfm_k$() { + return this.showFollow; + } + component13_gazzfl_k$() { + return this.isTop; + } + component14_gazzfk_k$() { + return this.ptimeLocationText; + } + component15_gazzfj_k$() { + return this.showLevel; + } + component16_gazzfi_k$() { + return this.onlyFans; + } + copy_snz9e0_k$(mid, ptimeLabelText, author, decorateCard, uri, tpList, badgeType, badgeButton, attend, relation, weight, showFollow, isTop, ptimeLocationText, showLevel, onlyFans) { + return new KModuleAuthor_0(mid, ptimeLabelText, author, decorateCard, uri, tpList, badgeType, badgeButton, attend, relation, weight, showFollow, isTop, ptimeLocationText, showLevel, onlyFans); + } + copy(mid, ptimeLabelText, author, decorateCard, uri, tpList, badgeType, badgeButton, attend, relation, weight, showFollow, isTop, ptimeLocationText, showLevel, onlyFans, $super) { + mid = mid === VOID ? this.mid : mid; + ptimeLabelText = ptimeLabelText === VOID ? this.ptimeLabelText : ptimeLabelText; + author = author === VOID ? this.author : author; + decorateCard = decorateCard === VOID ? this.decorateCard : decorateCard; + uri = uri === VOID ? this.uri : uri; + tpList = tpList === VOID ? this.tpList : tpList; + badgeType = badgeType === VOID ? this.badgeType : badgeType; + badgeButton = badgeButton === VOID ? this.badgeButton : badgeButton; + attend = attend === VOID ? this.attend : attend; + relation = relation === VOID ? this.relation : relation; + weight = weight === VOID ? this.weight : weight; + showFollow = showFollow === VOID ? this.showFollow : showFollow; + isTop = isTop === VOID ? this.isTop : isTop; + ptimeLocationText = ptimeLocationText === VOID ? this.ptimeLocationText : ptimeLocationText; + showLevel = showLevel === VOID ? this.showLevel : showLevel; + onlyFans = onlyFans === VOID ? this.onlyFans : onlyFans; + return this.copy_snz9e0_k$(mid, ptimeLabelText, author, decorateCard, uri, tpList, badgeType, badgeButton, attend, relation, weight, showFollow, isTop, ptimeLocationText, showLevel, onlyFans); + } + toString() { + return 'KModuleAuthor(mid=' + this.mid.toString() + ', ptimeLabelText=' + this.ptimeLabelText + ', author=' + this.author + ', decorateCard=' + this.decorateCard + ', uri=' + this.uri + ', tpList=' + this.tpList + ', badgeType=' + this.badgeType + ', badgeButton=' + this.badgeButton + ', attend=' + this.attend + ', relation=' + this.relation + ', weight=' + this.weight + ', showFollow=' + this.showFollow + ', isTop=' + this.isTop + ', ptimeLocationText=' + this.ptimeLocationText + ', showLevel=' + this.showLevel + ', onlyFans=' + this.onlyFans + ')'; + } + hashCode() { + var result = this.mid.hashCode(); + result = imul(result, 31) + getStringHashCode(this.ptimeLabelText) | 0; + result = imul(result, 31) + (this.author == null ? 0 : this.author.hashCode()) | 0; + result = imul(result, 31) + (this.decorateCard == null ? 0 : this.decorateCard.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.uri) | 0; + result = imul(result, 31) + hashCode(this.tpList) | 0; + result = imul(result, 31) + this.badgeType | 0; + result = imul(result, 31) + (this.badgeButton == null ? 0 : this.badgeButton.hashCode()) | 0; + result = imul(result, 31) + this.attend | 0; + result = imul(result, 31) + (this.relation == null ? 0 : this.relation.hashCode()) | 0; + result = imul(result, 31) + (this.weight == null ? 0 : this.weight.hashCode()) | 0; + result = imul(result, 31) + getBooleanHashCode(this.showFollow) | 0; + result = imul(result, 31) + getBooleanHashCode(this.isTop) | 0; + result = imul(result, 31) + getStringHashCode(this.ptimeLocationText) | 0; + result = imul(result, 31) + getBooleanHashCode(this.showLevel) | 0; + result = imul(result, 31) + (this.onlyFans == null ? 0 : this.onlyFans.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KModuleAuthor_0)) + return false; + var tmp0_other_with_cast = other instanceof KModuleAuthor_0 ? other : THROW_CCE(); + if (!this.mid.equals(tmp0_other_with_cast.mid)) + return false; + if (!(this.ptimeLabelText === tmp0_other_with_cast.ptimeLabelText)) + return false; + if (!equals(this.author, tmp0_other_with_cast.author)) + return false; + if (!equals(this.decorateCard, tmp0_other_with_cast.decorateCard)) + return false; + if (!(this.uri === tmp0_other_with_cast.uri)) + return false; + if (!equals(this.tpList, tmp0_other_with_cast.tpList)) + return false; + if (!(this.badgeType === tmp0_other_with_cast.badgeType)) + return false; + if (!equals(this.badgeButton, tmp0_other_with_cast.badgeButton)) + return false; + if (!(this.attend === tmp0_other_with_cast.attend)) + return false; + if (!equals(this.relation, tmp0_other_with_cast.relation)) + return false; + if (!equals(this.weight, tmp0_other_with_cast.weight)) + return false; + if (!(this.showFollow === tmp0_other_with_cast.showFollow)) + return false; + if (!(this.isTop === tmp0_other_with_cast.isTop)) + return false; + if (!(this.ptimeLocationText === tmp0_other_with_cast.ptimeLocationText)) + return false; + if (!(this.showLevel === tmp0_other_with_cast.showLevel)) + return false; + if (!equals(this.onlyFans, tmp0_other_with_cast.onlyFans)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KModuleAuthor_zbh6sk_k$(seen1, mid, ptimeLabelText, author, decorateCard, uri, tpList, badgeType, badgeButton, attend, relation, weight, showFollow, isTop, ptimeLocationText, showLevel, onlyFans, serializationConstructorMarker) { + Companion_getInstance_966(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_953().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.mid = new Long(0, 0); + else + $this.mid = mid; + if (0 === (seen1 & 2)) + $this.ptimeLabelText = ''; + else + $this.ptimeLabelText = ptimeLabelText; + if (0 === (seen1 & 4)) + $this.author = null; + else + $this.author = author; + if (0 === (seen1 & 8)) + $this.decorateCard = null; + else + $this.decorateCard = decorateCard; + if (0 === (seen1 & 16)) + $this.uri = ''; + else + $this.uri = uri; + if (0 === (seen1 & 32)) + $this.tpList = emptyList(); + else + $this.tpList = tpList; + if (0 === (seen1 & 64)) + $this.badgeType = 0; + else + $this.badgeType = badgeType; + if (0 === (seen1 & 128)) + $this.badgeButton = null; + else + $this.badgeButton = badgeButton; + if (0 === (seen1 & 256)) + $this.attend = 0; + else + $this.attend = attend; + if (0 === (seen1 & 512)) + $this.relation = null; + else + $this.relation = relation; + if (0 === (seen1 & 1024)) + $this.weight = null; + else + $this.weight = weight; + if (0 === (seen1 & 2048)) + $this.showFollow = false; + else + $this.showFollow = showFollow; + if (0 === (seen1 & 4096)) + $this.isTop = false; + else + $this.isTop = isTop; + if (0 === (seen1 & 8192)) + $this.ptimeLocationText = ''; + else + $this.ptimeLocationText = ptimeLocationText; + if (0 === (seen1 & 16384)) + $this.showLevel = false; + else + $this.showLevel = showLevel; + if (0 === (seen1 & 32768)) + $this.onlyFans = null; + else + $this.onlyFans = onlyFans; + return $this; + } + } + class Companion_967 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.OnlyFans'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_954(); + } + } + class $serializer_954 { + constructor() { + $serializer_instance_954 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KOnlyFans', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('isOnlyFans', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('badge', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [BooleanSerializer_getInstance(), get_nullable($serializer_getInstance_955())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = false; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_955(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_955(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KOnlyFans.new_com_bapis_bilibili_app_dynamic_v2_KOnlyFans_9267sv_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_7iyx7i_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.isOnlyFans === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 0, value.isOnlyFans); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.badge == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_955(), value.badge); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_7iyx7i_k$(encoder, value instanceof KOnlyFans ? value : THROW_CCE()); + } + } + class KOnlyFans { + constructor(isOnlyFans, badge) { + Companion_instance_967; + isOnlyFans = isOnlyFans === VOID ? false : isOnlyFans; + badge = badge === VOID ? null : badge; + this.isOnlyFans = isOnlyFans; + this.badge = badge; + } + get_isOnlyFans_3ifk2n_k$() { + return this.isOnlyFans; + } + get_badge_ip1cai_k$() { + return this.badge; + } + component1_7eebsc_k$() { + return this.isOnlyFans; + } + component2_7eebsb_k$() { + return this.badge; + } + copy_1tap0e_k$(isOnlyFans, badge) { + return new KOnlyFans(isOnlyFans, badge); + } + copy(isOnlyFans, badge, $super) { + isOnlyFans = isOnlyFans === VOID ? this.isOnlyFans : isOnlyFans; + badge = badge === VOID ? this.badge : badge; + return this.copy_1tap0e_k$(isOnlyFans, badge); + } + toString() { + return 'KOnlyFans(isOnlyFans=' + this.isOnlyFans + ', badge=' + this.badge + ')'; + } + hashCode() { + var result = getBooleanHashCode(this.isOnlyFans); + result = imul(result, 31) + (this.badge == null ? 0 : this.badge.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KOnlyFans)) + return false; + var tmp0_other_with_cast = other instanceof KOnlyFans ? other : THROW_CCE(); + if (!(this.isOnlyFans === tmp0_other_with_cast.isOnlyFans)) + return false; + if (!equals(this.badge, tmp0_other_with_cast.badge)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KOnlyFans_9267sv_k$(seen1, isOnlyFans, badge, serializationConstructorMarker) { + Companion_instance_967; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_954().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.isOnlyFans = false; + else + $this.isOnlyFans = isOnlyFans; + if (0 === (seen1 & 2)) + $this.badge = null; + else + $this.badge = badge; + return $this; + } + } + class Companion_968 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.IconBadge'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_955(); + } + } + class $serializer_955 { + constructor() { + $serializer_instance_955 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KIconBadge', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('iconBgUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('text', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KIconBadge.new_com_bapis_bilibili_app_dynamic_v2_KIconBadge_hw8cdc_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_f7h9am_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.iconBgUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.iconBgUrl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.text === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.text); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_f7h9am_k$(encoder, value instanceof KIconBadge ? value : THROW_CCE()); + } + } + class KIconBadge { + constructor(iconBgUrl, text) { + Companion_instance_968; + iconBgUrl = iconBgUrl === VOID ? '' : iconBgUrl; + text = text === VOID ? '' : text; + this.iconBgUrl = iconBgUrl; + this.text = text; + } + get_iconBgUrl_exhpdk_k$() { + return this.iconBgUrl; + } + get_text_wouvsm_k$() { + return this.text; + } + component1_7eebsc_k$() { + return this.iconBgUrl; + } + component2_7eebsb_k$() { + return this.text; + } + copy_plwnsl_k$(iconBgUrl, text) { + return new KIconBadge(iconBgUrl, text); + } + copy(iconBgUrl, text, $super) { + iconBgUrl = iconBgUrl === VOID ? this.iconBgUrl : iconBgUrl; + text = text === VOID ? this.text : text; + return this.copy_plwnsl_k$(iconBgUrl, text); + } + toString() { + return 'KIconBadge(iconBgUrl=' + this.iconBgUrl + ', text=' + this.text + ')'; + } + hashCode() { + var result = getStringHashCode(this.iconBgUrl); + result = imul(result, 31) + getStringHashCode(this.text) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KIconBadge)) + return false; + var tmp0_other_with_cast = other instanceof KIconBadge ? other : THROW_CCE(); + if (!(this.iconBgUrl === tmp0_other_with_cast.iconBgUrl)) + return false; + if (!(this.text === tmp0_other_with_cast.text)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KIconBadge_hw8cdc_k$(seen1, iconBgUrl, text, serializationConstructorMarker) { + Companion_instance_968; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_955().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.iconBgUrl = ''; + else + $this.iconBgUrl = iconBgUrl; + if (0 === (seen1 & 2)) + $this.text = ''; + else + $this.text = text; + return $this; + } + } + class Companion_969 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.UserInfo'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_956(); + } + } + class $serializer_956 { + constructor() { + $serializer_instance_956 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KUserInfo', this, 16); + tmp0_serialDesc.addElement_5pzumi_k$('mid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('name', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('face', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('official', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('vip', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('live', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('uri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('pendant', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('nameplate', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('level', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('sign', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('faceNft', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + tmp0_serialDesc.addElement_5pzumi_k$('faceNftNew', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(13)); + tmp0_serialDesc.addElement_5pzumi_k$('nftInfo', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(14)); + tmp0_serialDesc.addElement_5pzumi_k$('isSeniorMember', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(15)); + tmp0_serialDesc.addElement_5pzumi_k$('avatar', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(16)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_960()), get_nullable($serializer_getInstance_961()), get_nullable($serializer_getInstance_965()), StringSerializer_getInstance(), get_nullable($serializer_getInstance_957()), get_nullable($serializer_getInstance_958()), IntSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), get_nullable($serializer_getInstance_959()), IntSerializer_getInstance(), get_nullable($serializer_getInstance_181())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_local8 = null; + var tmp13_local9 = 0; + var tmp14_local10 = null; + var tmp15_local11 = 0; + var tmp16_local12 = 0; + var tmp17_local13 = null; + var tmp18_local14 = 0; + var tmp19_local15 = null; + var tmp20_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp20_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp20_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_960(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_961(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_965(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_957(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_958(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + tmp16_local12 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + tmp17_local13 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 13, $serializer_getInstance_959(), tmp17_local13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + tmp18_local14 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + tmp19_local15 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 15, $serializer_getInstance_181(), tmp19_local15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + } else + while (tmp1_flag) { + tmp2_index = tmp20_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp20_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_960(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_961(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_965(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_957(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_958(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + case 12: + tmp16_local12 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + break; + case 13: + tmp17_local13 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 13, $serializer_getInstance_959(), tmp17_local13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + break; + case 14: + tmp18_local14 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + break; + case 15: + tmp19_local15 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 15, $serializer_getInstance_181(), tmp19_local15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp20_input.endStructure_1xqz0n_k$(tmp0_desc); + return KUserInfo.new_com_bapis_bilibili_app_dynamic_v2_KUserInfo_r9ndr5_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, tmp18_local14, tmp19_local15, null); + } + serialize_g9wk5r_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.mid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.mid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.name === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.name); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.face === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.face); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.official == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_960(), value.official); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.vip == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, $serializer_getInstance_961(), value.vip); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.live == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 5, $serializer_getInstance_965(), value.live); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.uri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.uri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.pendant == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 7, $serializer_getInstance_957(), value.pendant); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.nameplate == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 8, $serializer_getInstance_958(), value.nameplate); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.level === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 9, value.level); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.sign === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 10, value.sign); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.faceNft === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 11, value.faceNft); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !(value.faceNftNew === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 12, value.faceNftNew); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 13) ? true : !(value.nftInfo == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 13, $serializer_getInstance_959(), value.nftInfo); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 14) ? true : !(value.isSeniorMember === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 14, value.isSeniorMember); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 15) ? true : !(value.avatar == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 15, $serializer_getInstance_181(), value.avatar); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_g9wk5r_k$(encoder, value instanceof KUserInfo ? value : THROW_CCE()); + } + } + class KUserInfo { + constructor(mid, name, face, official, vip, live, uri, pendant, nameplate, level, sign, faceNft, faceNftNew, nftInfo, isSeniorMember, avatar) { + Companion_instance_969; + mid = mid === VOID ? new Long(0, 0) : mid; + name = name === VOID ? '' : name; + face = face === VOID ? '' : face; + official = official === VOID ? null : official; + vip = vip === VOID ? null : vip; + live = live === VOID ? null : live; + uri = uri === VOID ? '' : uri; + pendant = pendant === VOID ? null : pendant; + nameplate = nameplate === VOID ? null : nameplate; + level = level === VOID ? 0 : level; + sign = sign === VOID ? '' : sign; + faceNft = faceNft === VOID ? 0 : faceNft; + faceNftNew = faceNftNew === VOID ? 0 : faceNftNew; + nftInfo = nftInfo === VOID ? null : nftInfo; + isSeniorMember = isSeniorMember === VOID ? 0 : isSeniorMember; + avatar = avatar === VOID ? null : avatar; + this.mid = mid; + this.name = name; + this.face = face; + this.official = official; + this.vip = vip; + this.live = live; + this.uri = uri; + this.pendant = pendant; + this.nameplate = nameplate; + this.level = level; + this.sign = sign; + this.faceNft = faceNft; + this.faceNftNew = faceNftNew; + this.nftInfo = nftInfo; + this.isSeniorMember = isSeniorMember; + this.avatar = avatar; + } + get_mid_18j0o1_k$() { + return this.mid; + } + get_name_woqyms_k$() { + return this.name; + } + get_face_woluhy_k$() { + return this.face; + } + get_official_qkjhys_k$() { + return this.official; + } + get_vip_18itzg_k$() { + return this.vip; + } + get_live_woput1_k$() { + return this.live; + } + get_uri_18iuil_k$() { + return this.uri; + } + get_pendant_a0ufyl_k$() { + return this.pendant; + } + get_nameplate_t6c9mq_k$() { + return this.nameplate; + } + get_level_ium7h7_k$() { + return this.level; + } + get_sign_woubd2_k$() { + return this.sign; + } + get_faceNft_gst5my_k$() { + return this.faceNft; + } + get_faceNftNew_d87rsm_k$() { + return this.faceNftNew; + } + get_nftInfo_w7cgbl_k$() { + return this.nftInfo; + } + get_isSeniorMember_st26nx_k$() { + return this.isSeniorMember; + } + get_avatar_b5pjz6_k$() { + return this.avatar; + } + component1_7eebsc_k$() { + return this.mid; + } + component2_7eebsb_k$() { + return this.name; + } + component3_7eebsa_k$() { + return this.face; + } + component4_7eebs9_k$() { + return this.official; + } + component5_7eebs8_k$() { + return this.vip; + } + component6_7eebs7_k$() { + return this.live; + } + component7_7eebs6_k$() { + return this.uri; + } + component8_7eebs5_k$() { + return this.pendant; + } + component9_7eebs4_k$() { + return this.nameplate; + } + component10_gazzfo_k$() { + return this.level; + } + component11_gazzfn_k$() { + return this.sign; + } + component12_gazzfm_k$() { + return this.faceNft; + } + component13_gazzfl_k$() { + return this.faceNftNew; + } + component14_gazzfk_k$() { + return this.nftInfo; + } + component15_gazzfj_k$() { + return this.isSeniorMember; + } + component16_gazzfi_k$() { + return this.avatar; + } + copy_9wxdm3_k$(mid, name, face, official, vip, live, uri, pendant, nameplate, level, sign, faceNft, faceNftNew, nftInfo, isSeniorMember, avatar) { + return new KUserInfo(mid, name, face, official, vip, live, uri, pendant, nameplate, level, sign, faceNft, faceNftNew, nftInfo, isSeniorMember, avatar); + } + copy(mid, name, face, official, vip, live, uri, pendant, nameplate, level, sign, faceNft, faceNftNew, nftInfo, isSeniorMember, avatar, $super) { + mid = mid === VOID ? this.mid : mid; + name = name === VOID ? this.name : name; + face = face === VOID ? this.face : face; + official = official === VOID ? this.official : official; + vip = vip === VOID ? this.vip : vip; + live = live === VOID ? this.live : live; + uri = uri === VOID ? this.uri : uri; + pendant = pendant === VOID ? this.pendant : pendant; + nameplate = nameplate === VOID ? this.nameplate : nameplate; + level = level === VOID ? this.level : level; + sign = sign === VOID ? this.sign : sign; + faceNft = faceNft === VOID ? this.faceNft : faceNft; + faceNftNew = faceNftNew === VOID ? this.faceNftNew : faceNftNew; + nftInfo = nftInfo === VOID ? this.nftInfo : nftInfo; + isSeniorMember = isSeniorMember === VOID ? this.isSeniorMember : isSeniorMember; + avatar = avatar === VOID ? this.avatar : avatar; + return this.copy_9wxdm3_k$(mid, name, face, official, vip, live, uri, pendant, nameplate, level, sign, faceNft, faceNftNew, nftInfo, isSeniorMember, avatar); + } + toString() { + return 'KUserInfo(mid=' + this.mid.toString() + ', name=' + this.name + ', face=' + this.face + ', official=' + this.official + ', vip=' + this.vip + ', live=' + this.live + ', uri=' + this.uri + ', pendant=' + this.pendant + ', nameplate=' + this.nameplate + ', level=' + this.level + ', sign=' + this.sign + ', faceNft=' + this.faceNft + ', faceNftNew=' + this.faceNftNew + ', nftInfo=' + this.nftInfo + ', isSeniorMember=' + this.isSeniorMember + ', avatar=' + this.avatar + ')'; + } + hashCode() { + var result = this.mid.hashCode(); + result = imul(result, 31) + getStringHashCode(this.name) | 0; + result = imul(result, 31) + getStringHashCode(this.face) | 0; + result = imul(result, 31) + (this.official == null ? 0 : this.official.hashCode()) | 0; + result = imul(result, 31) + (this.vip == null ? 0 : this.vip.hashCode()) | 0; + result = imul(result, 31) + (this.live == null ? 0 : this.live.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.uri) | 0; + result = imul(result, 31) + (this.pendant == null ? 0 : this.pendant.hashCode()) | 0; + result = imul(result, 31) + (this.nameplate == null ? 0 : this.nameplate.hashCode()) | 0; + result = imul(result, 31) + this.level | 0; + result = imul(result, 31) + getStringHashCode(this.sign) | 0; + result = imul(result, 31) + this.faceNft | 0; + result = imul(result, 31) + this.faceNftNew | 0; + result = imul(result, 31) + (this.nftInfo == null ? 0 : this.nftInfo.hashCode()) | 0; + result = imul(result, 31) + this.isSeniorMember | 0; + result = imul(result, 31) + (this.avatar == null ? 0 : this.avatar.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KUserInfo)) + return false; + var tmp0_other_with_cast = other instanceof KUserInfo ? other : THROW_CCE(); + if (!this.mid.equals(tmp0_other_with_cast.mid)) + return false; + if (!(this.name === tmp0_other_with_cast.name)) + return false; + if (!(this.face === tmp0_other_with_cast.face)) + return false; + if (!equals(this.official, tmp0_other_with_cast.official)) + return false; + if (!equals(this.vip, tmp0_other_with_cast.vip)) + return false; + if (!equals(this.live, tmp0_other_with_cast.live)) + return false; + if (!(this.uri === tmp0_other_with_cast.uri)) + return false; + if (!equals(this.pendant, tmp0_other_with_cast.pendant)) + return false; + if (!equals(this.nameplate, tmp0_other_with_cast.nameplate)) + return false; + if (!(this.level === tmp0_other_with_cast.level)) + return false; + if (!(this.sign === tmp0_other_with_cast.sign)) + return false; + if (!(this.faceNft === tmp0_other_with_cast.faceNft)) + return false; + if (!(this.faceNftNew === tmp0_other_with_cast.faceNftNew)) + return false; + if (!equals(this.nftInfo, tmp0_other_with_cast.nftInfo)) + return false; + if (!(this.isSeniorMember === tmp0_other_with_cast.isSeniorMember)) + return false; + if (!equals(this.avatar, tmp0_other_with_cast.avatar)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KUserInfo_r9ndr5_k$(seen1, mid, name, face, official, vip, live, uri, pendant, nameplate, level, sign, faceNft, faceNftNew, nftInfo, isSeniorMember, avatar, serializationConstructorMarker) { + Companion_instance_969; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_956().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.mid = new Long(0, 0); + else + $this.mid = mid; + if (0 === (seen1 & 2)) + $this.name = ''; + else + $this.name = name; + if (0 === (seen1 & 4)) + $this.face = ''; + else + $this.face = face; + if (0 === (seen1 & 8)) + $this.official = null; + else + $this.official = official; + if (0 === (seen1 & 16)) + $this.vip = null; + else + $this.vip = vip; + if (0 === (seen1 & 32)) + $this.live = null; + else + $this.live = live; + if (0 === (seen1 & 64)) + $this.uri = ''; + else + $this.uri = uri; + if (0 === (seen1 & 128)) + $this.pendant = null; + else + $this.pendant = pendant; + if (0 === (seen1 & 256)) + $this.nameplate = null; + else + $this.nameplate = nameplate; + if (0 === (seen1 & 512)) + $this.level = 0; + else + $this.level = level; + if (0 === (seen1 & 1024)) + $this.sign = ''; + else + $this.sign = sign; + if (0 === (seen1 & 2048)) + $this.faceNft = 0; + else + $this.faceNft = faceNft; + if (0 === (seen1 & 4096)) + $this.faceNftNew = 0; + else + $this.faceNftNew = faceNftNew; + if (0 === (seen1 & 8192)) + $this.nftInfo = null; + else + $this.nftInfo = nftInfo; + if (0 === (seen1 & 16384)) + $this.isSeniorMember = 0; + else + $this.isSeniorMember = isSeniorMember; + if (0 === (seen1 & 32768)) + $this.avatar = null; + else + $this.avatar = avatar; + return $this; + } + } + class Companion_970 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.UserPendant'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_957(); + } + } + class $serializer_957 { + constructor() { + $serializer_instance_957 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KUserPendant', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('pid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('name', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('image', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('expire', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = new Long(0, 0); + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KUserPendant.new_com_bapis_bilibili_app_dynamic_v2_KUserPendant_gew3or_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_m53yc5_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.pid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.pid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.name === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.name); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.image === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.image); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !value.expire.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 3, value.expire); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_m53yc5_k$(encoder, value instanceof KUserPendant ? value : THROW_CCE()); + } + } + class KUserPendant { + constructor(pid, name, image, expire) { + Companion_instance_970; + pid = pid === VOID ? new Long(0, 0) : pid; + name = name === VOID ? '' : name; + image = image === VOID ? '' : image; + expire = expire === VOID ? new Long(0, 0) : expire; + this.pid = pid; + this.name = name; + this.image = image; + this.expire = expire; + } + get_pid_18iyfy_k$() { + return this.pid; + } + get_name_woqyms_k$() { + return this.name; + } + get_image_it3i2a_k$() { + return this.image; + } + get_expire_d38zs8_k$() { + return this.expire; + } + component1_7eebsc_k$() { + return this.pid; + } + component2_7eebsb_k$() { + return this.name; + } + component3_7eebsa_k$() { + return this.image; + } + component4_7eebs9_k$() { + return this.expire; + } + copy_x9icr3_k$(pid, name, image, expire) { + return new KUserPendant(pid, name, image, expire); + } + copy(pid, name, image, expire, $super) { + pid = pid === VOID ? this.pid : pid; + name = name === VOID ? this.name : name; + image = image === VOID ? this.image : image; + expire = expire === VOID ? this.expire : expire; + return this.copy_x9icr3_k$(pid, name, image, expire); + } + toString() { + return 'KUserPendant(pid=' + this.pid.toString() + ', name=' + this.name + ', image=' + this.image + ', expire=' + this.expire.toString() + ')'; + } + hashCode() { + var result = this.pid.hashCode(); + result = imul(result, 31) + getStringHashCode(this.name) | 0; + result = imul(result, 31) + getStringHashCode(this.image) | 0; + result = imul(result, 31) + this.expire.hashCode() | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KUserPendant)) + return false; + var tmp0_other_with_cast = other instanceof KUserPendant ? other : THROW_CCE(); + if (!this.pid.equals(tmp0_other_with_cast.pid)) + return false; + if (!(this.name === tmp0_other_with_cast.name)) + return false; + if (!(this.image === tmp0_other_with_cast.image)) + return false; + if (!this.expire.equals(tmp0_other_with_cast.expire)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KUserPendant_gew3or_k$(seen1, pid, name, image, expire, serializationConstructorMarker) { + Companion_instance_970; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_957().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.pid = new Long(0, 0); + else + $this.pid = pid; + if (0 === (seen1 & 2)) + $this.name = ''; + else + $this.name = name; + if (0 === (seen1 & 4)) + $this.image = ''; + else + $this.image = image; + if (0 === (seen1 & 8)) + $this.expire = new Long(0, 0); + else + $this.expire = expire; + return $this; + } + } + class Companion_971 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.Nameplate'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_958(); + } + } + class $serializer_958 { + constructor() { + $serializer_instance_958 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KNameplate', this, 6); + tmp0_serialDesc.addElement_5pzumi_k$('nid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('name', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('image', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('imageSmall', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('level', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('condition', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp10_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + } else + while (tmp1_flag) { + tmp2_index = tmp10_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp10_input.endStructure_1xqz0n_k$(tmp0_desc); + return KNameplate.new_com_bapis_bilibili_app_dynamic_v2_KNameplate_kr61lk_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); + } + serialize_dfelyn_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.nid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.nid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.name === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.name); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.image === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.image); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.imageSmall === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.imageSmall); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.level === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.level); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.condition === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.condition); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_dfelyn_k$(encoder, value instanceof KNameplate ? value : THROW_CCE()); + } + } + class KNameplate { + constructor(nid, name, image, imageSmall, level, condition) { + Companion_instance_971; + nid = nid === VOID ? new Long(0, 0) : nid; + name = name === VOID ? '' : name; + image = image === VOID ? '' : image; + imageSmall = imageSmall === VOID ? '' : imageSmall; + level = level === VOID ? '' : level; + condition = condition === VOID ? '' : condition; + this.nid = nid; + this.name = name; + this.image = image; + this.imageSmall = imageSmall; + this.level = level; + this.condition = condition; + } + get_nid_18izxc_k$() { + return this.nid; + } + get_name_woqyms_k$() { + return this.name; + } + get_image_it3i2a_k$() { + return this.image; + } + get_imageSmall_qt55o5_k$() { + return this.imageSmall; + } + get_level_ium7h7_k$() { + return this.level; + } + get_condition_5qa366_k$() { + return this.condition; + } + component1_7eebsc_k$() { + return this.nid; + } + component2_7eebsb_k$() { + return this.name; + } + component3_7eebsa_k$() { + return this.image; + } + component4_7eebs9_k$() { + return this.imageSmall; + } + component5_7eebs8_k$() { + return this.level; + } + component6_7eebs7_k$() { + return this.condition; + } + copy_dolucn_k$(nid, name, image, imageSmall, level, condition) { + return new KNameplate(nid, name, image, imageSmall, level, condition); + } + copy(nid, name, image, imageSmall, level, condition, $super) { + nid = nid === VOID ? this.nid : nid; + name = name === VOID ? this.name : name; + image = image === VOID ? this.image : image; + imageSmall = imageSmall === VOID ? this.imageSmall : imageSmall; + level = level === VOID ? this.level : level; + condition = condition === VOID ? this.condition : condition; + return this.copy_dolucn_k$(nid, name, image, imageSmall, level, condition); + } + toString() { + return 'KNameplate(nid=' + this.nid.toString() + ', name=' + this.name + ', image=' + this.image + ', imageSmall=' + this.imageSmall + ', level=' + this.level + ', condition=' + this.condition + ')'; + } + hashCode() { + var result = this.nid.hashCode(); + result = imul(result, 31) + getStringHashCode(this.name) | 0; + result = imul(result, 31) + getStringHashCode(this.image) | 0; + result = imul(result, 31) + getStringHashCode(this.imageSmall) | 0; + result = imul(result, 31) + getStringHashCode(this.level) | 0; + result = imul(result, 31) + getStringHashCode(this.condition) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KNameplate)) + return false; + var tmp0_other_with_cast = other instanceof KNameplate ? other : THROW_CCE(); + if (!this.nid.equals(tmp0_other_with_cast.nid)) + return false; + if (!(this.name === tmp0_other_with_cast.name)) + return false; + if (!(this.image === tmp0_other_with_cast.image)) + return false; + if (!(this.imageSmall === tmp0_other_with_cast.imageSmall)) + return false; + if (!(this.level === tmp0_other_with_cast.level)) + return false; + if (!(this.condition === tmp0_other_with_cast.condition)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KNameplate_kr61lk_k$(seen1, nid, name, image, imageSmall, level, condition, serializationConstructorMarker) { + Companion_instance_971; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_958().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.nid = new Long(0, 0); + else + $this.nid = nid; + if (0 === (seen1 & 2)) + $this.name = ''; + else + $this.name = name; + if (0 === (seen1 & 4)) + $this.image = ''; + else + $this.image = image; + if (0 === (seen1 & 8)) + $this.imageSmall = ''; + else + $this.imageSmall = imageSmall; + if (0 === (seen1 & 16)) + $this.level = ''; + else + $this.level = level; + if (0 === (seen1 & 32)) + $this.condition = ''; + else + $this.condition = condition; + return $this; + } + } + class Companion_972 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.NFTInfo'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_959(); + } + } + class $serializer_959 { + constructor() { + $serializer_instance_959 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KNFTInfo', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('regionType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('regionIcon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('regionShowStatus', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = null; + var tmp6_local2 = 0; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KNFTInfo.new_com_bapis_bilibili_app_dynamic_v2_KNFTInfo_cukbuz_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_1ixrma_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.regionType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.regionType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.regionIcon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.regionIcon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.regionShowStatus === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.regionShowStatus); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_1ixrma_k$(encoder, value instanceof KNFTInfo ? value : THROW_CCE()); + } + } + class KNFTInfo { + constructor(regionType, regionIcon, regionShowStatus) { + Companion_instance_972; + regionType = regionType === VOID ? 0 : regionType; + regionIcon = regionIcon === VOID ? '' : regionIcon; + regionShowStatus = regionShowStatus === VOID ? 0 : regionShowStatus; + this.regionType = regionType; + this.regionIcon = regionIcon; + this.regionShowStatus = regionShowStatus; + } + get_regionType_hxrx07_k$() { + return this.regionType; + } + get_regionIcon_hxkfti_k$() { + return this.regionIcon; + } + get_regionShowStatus_6qdi38_k$() { + return this.regionShowStatus; + } + regionTypeEnum() { + return Companion_getInstance_940().fromValue(this.regionType); + } + regionShowStatusEnum() { + return Companion_getInstance_941().fromValue(this.regionShowStatus); + } + component1_7eebsc_k$() { + return this.regionType; + } + component2_7eebsb_k$() { + return this.regionIcon; + } + component3_7eebsa_k$() { + return this.regionShowStatus; + } + copy_jqwgyn_k$(regionType, regionIcon, regionShowStatus) { + return new KNFTInfo(regionType, regionIcon, regionShowStatus); + } + copy(regionType, regionIcon, regionShowStatus, $super) { + regionType = regionType === VOID ? this.regionType : regionType; + regionIcon = regionIcon === VOID ? this.regionIcon : regionIcon; + regionShowStatus = regionShowStatus === VOID ? this.regionShowStatus : regionShowStatus; + return this.copy_jqwgyn_k$(regionType, regionIcon, regionShowStatus); + } + toString() { + return 'KNFTInfo(regionType=' + this.regionType + ', regionIcon=' + this.regionIcon + ', regionShowStatus=' + this.regionShowStatus + ')'; + } + hashCode() { + var result = this.regionType; + result = imul(result, 31) + getStringHashCode(this.regionIcon) | 0; + result = imul(result, 31) + this.regionShowStatus | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KNFTInfo)) + return false; + var tmp0_other_with_cast = other instanceof KNFTInfo ? other : THROW_CCE(); + if (!(this.regionType === tmp0_other_with_cast.regionType)) + return false; + if (!(this.regionIcon === tmp0_other_with_cast.regionIcon)) + return false; + if (!(this.regionShowStatus === tmp0_other_with_cast.regionShowStatus)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KNFTInfo_cukbuz_k$(seen1, regionType, regionIcon, regionShowStatus, serializationConstructorMarker) { + Companion_instance_972; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_959().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.regionType = 0; + else + $this.regionType = regionType; + if (0 === (seen1 & 2)) + $this.regionIcon = ''; + else + $this.regionIcon = regionIcon; + if (0 === (seen1 & 4)) + $this.regionShowStatus = 0; + else + $this.regionShowStatus = regionShowStatus; + return $this; + } + } + class Companion_973 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.OfficialVerify'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_960(); + } + } + class $serializer_960 { + constructor() { + $serializer_instance_960 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KOfficialVerify', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('desc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('isAtten', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = null; + var tmp6_local2 = 0; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KOfficialVerify_1.new_com_bapis_bilibili_app_dynamic_v2_KOfficialVerify_uikw3h_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_c1w8me_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.type === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.type); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.desc === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.desc); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.isAtten === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.isAtten); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_c1w8me_k$(encoder, value instanceof KOfficialVerify_1 ? value : THROW_CCE()); + } + } + class KOfficialVerify_1 { + constructor(type, desc, isAtten) { + Companion_instance_973; + type = type === VOID ? 0 : type; + desc = desc === VOID ? '' : desc; + isAtten = isAtten === VOID ? 0 : isAtten; + this.type = type; + this.desc = desc; + this.isAtten = isAtten; + } + get_type_wovaf7_k$() { + return this.type; + } + get_desc_woknve_k$() { + return this.desc; + } + get_isAtten_z8s8wn_k$() { + return this.isAtten; + } + component1_7eebsc_k$() { + return this.type; + } + component2_7eebsb_k$() { + return this.desc; + } + component3_7eebsa_k$() { + return this.isAtten; + } + copy_jqwgyn_k$(type, desc, isAtten) { + return new KOfficialVerify_1(type, desc, isAtten); + } + copy(type, desc, isAtten, $super) { + type = type === VOID ? this.type : type; + desc = desc === VOID ? this.desc : desc; + isAtten = isAtten === VOID ? this.isAtten : isAtten; + return this.copy_jqwgyn_k$(type, desc, isAtten); + } + toString() { + return 'KOfficialVerify(type=' + this.type + ', desc=' + this.desc + ', isAtten=' + this.isAtten + ')'; + } + hashCode() { + var result = this.type; + result = imul(result, 31) + getStringHashCode(this.desc) | 0; + result = imul(result, 31) + this.isAtten | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KOfficialVerify_1)) + return false; + var tmp0_other_with_cast = other instanceof KOfficialVerify_1 ? other : THROW_CCE(); + if (!(this.type === tmp0_other_with_cast.type)) + return false; + if (!(this.desc === tmp0_other_with_cast.desc)) + return false; + if (!(this.isAtten === tmp0_other_with_cast.isAtten)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KOfficialVerify_uikw3h_k$(seen1, type, desc, isAtten, serializationConstructorMarker) { + Companion_instance_973; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_960().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.type = 0; + else + $this.type = type; + if (0 === (seen1 & 2)) + $this.desc = ''; + else + $this.desc = desc; + if (0 === (seen1 & 4)) + $this.isAtten = 0; + else + $this.isAtten = isAtten; + return $this; + } + } + class Companion_974 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.VipInfo'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_961(); + } + } + class $serializer_961 { + constructor() { + $serializer_instance_961 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KVipInfo', this, 7); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('status', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('dueDate', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('label', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('themeType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('avatarSubscript', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('nicknameColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), get_nullable($serializer_getInstance_962()), IntSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = 0; + var tmp6_local2 = new Long(0, 0); + var tmp7_local3 = null; + var tmp8_local4 = 0; + var tmp9_local5 = 0; + var tmp10_local6 = null; + var tmp11_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp11_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_962(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + } else + while (tmp1_flag) { + tmp2_index = tmp11_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_962(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp11_input.endStructure_1xqz0n_k$(tmp0_desc); + return KVipInfo_0.new_com_bapis_bilibili_app_dynamic_v2_KVipInfo_ru8w2t_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, null); + } + serialize_2ak0i9_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.type === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.type); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.status === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.status); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.dueDate.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.dueDate); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.label == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_962(), value.label); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.themeType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 4, value.themeType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.avatarSubscript === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 5, value.avatarSubscript); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.nicknameColor === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.nicknameColor); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_2ak0i9_k$(encoder, value instanceof KVipInfo_0 ? value : THROW_CCE()); + } + } + class KVipInfo_0 { + constructor(type, status, dueDate, label, themeType, avatarSubscript, nicknameColor) { + Companion_instance_974; + type = type === VOID ? 0 : type; + status = status === VOID ? 0 : status; + dueDate = dueDate === VOID ? new Long(0, 0) : dueDate; + label = label === VOID ? null : label; + themeType = themeType === VOID ? 0 : themeType; + avatarSubscript = avatarSubscript === VOID ? 0 : avatarSubscript; + nicknameColor = nicknameColor === VOID ? '' : nicknameColor; + this.type = type; + this.status = status; + this.dueDate = dueDate; + this.label = label; + this.themeType = themeType; + this.avatarSubscript = avatarSubscript; + this.nicknameColor = nicknameColor; + } + get_type_wovaf7_k$() { + return this.type; + } + get_status_jnf6d7_k$() { + return this.status; + } + get_dueDate_ycxot5_k$() { + return this.dueDate; + } + get_label_iuj8p7_k$() { + return this.label; + } + get_themeType_8svn5m_k$() { + return this.themeType; + } + get_avatarSubscript_pv2bpl_k$() { + return this.avatarSubscript; + } + get_nicknameColor_t5nkpg_k$() { + return this.nicknameColor; + } + component1_7eebsc_k$() { + return this.type; + } + component2_7eebsb_k$() { + return this.status; + } + component3_7eebsa_k$() { + return this.dueDate; + } + component4_7eebs9_k$() { + return this.label; + } + component5_7eebs8_k$() { + return this.themeType; + } + component6_7eebs7_k$() { + return this.avatarSubscript; + } + component7_7eebs6_k$() { + return this.nicknameColor; + } + copy_tlk4w_k$(type, status, dueDate, label, themeType, avatarSubscript, nicknameColor) { + return new KVipInfo_0(type, status, dueDate, label, themeType, avatarSubscript, nicknameColor); + } + copy(type, status, dueDate, label, themeType, avatarSubscript, nicknameColor, $super) { + type = type === VOID ? this.type : type; + status = status === VOID ? this.status : status; + dueDate = dueDate === VOID ? this.dueDate : dueDate; + label = label === VOID ? this.label : label; + themeType = themeType === VOID ? this.themeType : themeType; + avatarSubscript = avatarSubscript === VOID ? this.avatarSubscript : avatarSubscript; + nicknameColor = nicknameColor === VOID ? this.nicknameColor : nicknameColor; + return this.copy_tlk4w_k$(type, status, dueDate, label, themeType, avatarSubscript, nicknameColor); + } + toString() { + return 'KVipInfo(type=' + this.type + ', status=' + this.status + ', dueDate=' + this.dueDate.toString() + ', label=' + this.label + ', themeType=' + this.themeType + ', avatarSubscript=' + this.avatarSubscript + ', nicknameColor=' + this.nicknameColor + ')'; + } + hashCode() { + var result = this.type; + result = imul(result, 31) + this.status | 0; + result = imul(result, 31) + this.dueDate.hashCode() | 0; + result = imul(result, 31) + (this.label == null ? 0 : this.label.hashCode()) | 0; + result = imul(result, 31) + this.themeType | 0; + result = imul(result, 31) + this.avatarSubscript | 0; + result = imul(result, 31) + getStringHashCode(this.nicknameColor) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KVipInfo_0)) + return false; + var tmp0_other_with_cast = other instanceof KVipInfo_0 ? other : THROW_CCE(); + if (!(this.type === tmp0_other_with_cast.type)) + return false; + if (!(this.status === tmp0_other_with_cast.status)) + return false; + if (!this.dueDate.equals(tmp0_other_with_cast.dueDate)) + return false; + if (!equals(this.label, tmp0_other_with_cast.label)) + return false; + if (!(this.themeType === tmp0_other_with_cast.themeType)) + return false; + if (!(this.avatarSubscript === tmp0_other_with_cast.avatarSubscript)) + return false; + if (!(this.nicknameColor === tmp0_other_with_cast.nicknameColor)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KVipInfo_ru8w2t_k$(seen1, type, status, dueDate, label, themeType, avatarSubscript, nicknameColor, serializationConstructorMarker) { + Companion_instance_974; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_961().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.type = 0; + else + $this.type = type; + if (0 === (seen1 & 2)) + $this.status = 0; + else + $this.status = status; + if (0 === (seen1 & 4)) + $this.dueDate = new Long(0, 0); + else + $this.dueDate = dueDate; + if (0 === (seen1 & 8)) + $this.label = null; + else + $this.label = label; + if (0 === (seen1 & 16)) + $this.themeType = 0; + else + $this.themeType = themeType; + if (0 === (seen1 & 32)) + $this.avatarSubscript = 0; + else + $this.avatarSubscript = avatarSubscript; + if (0 === (seen1 & 64)) + $this.nicknameColor = ''; + else + $this.nicknameColor = nicknameColor; + return $this; + } + } + class Companion_975 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.VipLabel'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_962(); + } + } + class $serializer_962 { + constructor() { + $serializer_instance_962 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KVipLabel', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('path', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('text', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('labelTheme', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KVipLabel_1.new_com_bapis_bilibili_app_dynamic_v2_KVipLabel_mzq8j0_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_5jiyrx_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.path === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.path); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.text === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.text); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.labelTheme === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.labelTheme); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_5jiyrx_k$(encoder, value instanceof KVipLabel_1 ? value : THROW_CCE()); + } + } + class KVipLabel_1 { + constructor(path, text, labelTheme) { + Companion_instance_975; + path = path === VOID ? '' : path; + text = text === VOID ? '' : text; + labelTheme = labelTheme === VOID ? '' : labelTheme; + this.path = path; + this.text = text; + this.labelTheme = labelTheme; + } + get_path_wos8ry_k$() { + return this.path; + } + get_text_wouvsm_k$() { + return this.text; + } + get_labelTheme_nej6wu_k$() { + return this.labelTheme; + } + component1_7eebsc_k$() { + return this.path; + } + component2_7eebsb_k$() { + return this.text; + } + component3_7eebsa_k$() { + return this.labelTheme; + } + copy_nc7k0r_k$(path, text, labelTheme) { + return new KVipLabel_1(path, text, labelTheme); + } + copy(path, text, labelTheme, $super) { + path = path === VOID ? this.path : path; + text = text === VOID ? this.text : text; + labelTheme = labelTheme === VOID ? this.labelTheme : labelTheme; + return this.copy_nc7k0r_k$(path, text, labelTheme); + } + toString() { + return 'KVipLabel(path=' + this.path + ', text=' + this.text + ', labelTheme=' + this.labelTheme + ')'; + } + hashCode() { + var result = getStringHashCode(this.path); + result = imul(result, 31) + getStringHashCode(this.text) | 0; + result = imul(result, 31) + getStringHashCode(this.labelTheme) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KVipLabel_1)) + return false; + var tmp0_other_with_cast = other instanceof KVipLabel_1 ? other : THROW_CCE(); + if (!(this.path === tmp0_other_with_cast.path)) + return false; + if (!(this.text === tmp0_other_with_cast.text)) + return false; + if (!(this.labelTheme === tmp0_other_with_cast.labelTheme)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KVipLabel_mzq8j0_k$(seen1, path, text, labelTheme, serializationConstructorMarker) { + Companion_instance_975; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_962().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.path = ''; + else + $this.path = path; + if (0 === (seen1 & 2)) + $this.text = ''; + else + $this.text = text; + if (0 === (seen1 & 4)) + $this.labelTheme = ''; + else + $this.labelTheme = labelTheme; + return $this; + } + } + class Companion_976 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.DecorateCard'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_963(); + } + } + class $serializer_963 { + constructor() { + $serializer_instance_963 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KDecorateCard', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('id', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('cardUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('jumpUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('fan', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_964())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_964(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_964(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KDecorateCard.new_com_bapis_bilibili_app_dynamic_v2_KDecorateCard_h5lnxv_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_11hrgt_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.id.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.id); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.cardUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.cardUrl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.jumpUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.jumpUrl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.fan == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_964(), value.fan); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_11hrgt_k$(encoder, value instanceof KDecorateCard ? value : THROW_CCE()); + } + } + class KDecorateCard { + constructor(id, cardUrl, jumpUrl, fan) { + Companion_instance_976; + id = id === VOID ? new Long(0, 0) : id; + cardUrl = cardUrl === VOID ? '' : cardUrl; + jumpUrl = jumpUrl === VOID ? '' : jumpUrl; + fan = fan === VOID ? null : fan; + this.id = id; + this.cardUrl = cardUrl; + this.jumpUrl = jumpUrl; + this.fan = fan; + } + get_id_kntnx8_k$() { + return this.id; + } + get_cardUrl_afch1y_k$() { + return this.cardUrl; + } + get_jumpUrl_jhqiko_k$() { + return this.jumpUrl; + } + get_fan_18j61i_k$() { + return this.fan; + } + component1_7eebsc_k$() { + return this.id; + } + component2_7eebsb_k$() { + return this.cardUrl; + } + component3_7eebsa_k$() { + return this.jumpUrl; + } + component4_7eebs9_k$() { + return this.fan; + } + copy_scgvpx_k$(id, cardUrl, jumpUrl, fan) { + return new KDecorateCard(id, cardUrl, jumpUrl, fan); + } + copy(id, cardUrl, jumpUrl, fan, $super) { + id = id === VOID ? this.id : id; + cardUrl = cardUrl === VOID ? this.cardUrl : cardUrl; + jumpUrl = jumpUrl === VOID ? this.jumpUrl : jumpUrl; + fan = fan === VOID ? this.fan : fan; + return this.copy_scgvpx_k$(id, cardUrl, jumpUrl, fan); + } + toString() { + return 'KDecorateCard(id=' + this.id.toString() + ', cardUrl=' + this.cardUrl + ', jumpUrl=' + this.jumpUrl + ', fan=' + this.fan + ')'; + } + hashCode() { + var result = this.id.hashCode(); + result = imul(result, 31) + getStringHashCode(this.cardUrl) | 0; + result = imul(result, 31) + getStringHashCode(this.jumpUrl) | 0; + result = imul(result, 31) + (this.fan == null ? 0 : this.fan.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KDecorateCard)) + return false; + var tmp0_other_with_cast = other instanceof KDecorateCard ? other : THROW_CCE(); + if (!this.id.equals(tmp0_other_with_cast.id)) + return false; + if (!(this.cardUrl === tmp0_other_with_cast.cardUrl)) + return false; + if (!(this.jumpUrl === tmp0_other_with_cast.jumpUrl)) + return false; + if (!equals(this.fan, tmp0_other_with_cast.fan)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KDecorateCard_h5lnxv_k$(seen1, id, cardUrl, jumpUrl, fan, serializationConstructorMarker) { + Companion_instance_976; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_963().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.id = new Long(0, 0); + else + $this.id = id; + if (0 === (seen1 & 2)) + $this.cardUrl = ''; + else + $this.cardUrl = cardUrl; + if (0 === (seen1 & 4)) + $this.jumpUrl = ''; + else + $this.jumpUrl = jumpUrl; + if (0 === (seen1 & 8)) + $this.fan = null; + else + $this.fan = fan; + return $this; + } + } + class Companion_977 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.DecoCardFan'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_964(); + } + } + class $serializer_964 { + constructor() { + $serializer_instance_964 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KDecoCardFan', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('isFan', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('number', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('numberStr', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('color', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = 0; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KDecoCardFan.new_com_bapis_bilibili_app_dynamic_v2_KDecoCardFan_b7sb10_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_k080fa_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.isFan === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.isFan); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.number === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.number); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.numberStr === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.numberStr); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.color === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.color); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_k080fa_k$(encoder, value instanceof KDecoCardFan ? value : THROW_CCE()); + } + } + class KDecoCardFan { + constructor(isFan, number, numberStr, color) { + Companion_instance_977; + isFan = isFan === VOID ? 0 : isFan; + number = number === VOID ? 0 : number; + numberStr = numberStr === VOID ? '' : numberStr; + color = color === VOID ? '' : color; + this.isFan = isFan; + this.number = number; + this.numberStr = numberStr; + this.color = color; + } + get_isFan_it6rts_k$() { + return this.isFan; + } + get_number_hay53m_k$() { + return this.number; + } + get_numberStr_z89t35_k$() { + return this.numberStr; + } + get_color_ipu8u2_k$() { + return this.color; + } + component1_7eebsc_k$() { + return this.isFan; + } + component2_7eebsb_k$() { + return this.number; + } + component3_7eebsa_k$() { + return this.numberStr; + } + component4_7eebs9_k$() { + return this.color; + } + copy_14br63_k$(isFan, number, numberStr, color) { + return new KDecoCardFan(isFan, number, numberStr, color); + } + copy(isFan, number, numberStr, color, $super) { + isFan = isFan === VOID ? this.isFan : isFan; + number = number === VOID ? this.number : number; + numberStr = numberStr === VOID ? this.numberStr : numberStr; + color = color === VOID ? this.color : color; + return this.copy_14br63_k$(isFan, number, numberStr, color); + } + toString() { + return 'KDecoCardFan(isFan=' + this.isFan + ', number=' + this.number + ', numberStr=' + this.numberStr + ', color=' + this.color + ')'; + } + hashCode() { + var result = this.isFan; + result = imul(result, 31) + this.number | 0; + result = imul(result, 31) + getStringHashCode(this.numberStr) | 0; + result = imul(result, 31) + getStringHashCode(this.color) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KDecoCardFan)) + return false; + var tmp0_other_with_cast = other instanceof KDecoCardFan ? other : THROW_CCE(); + if (!(this.isFan === tmp0_other_with_cast.isFan)) + return false; + if (!(this.number === tmp0_other_with_cast.number)) + return false; + if (!(this.numberStr === tmp0_other_with_cast.numberStr)) + return false; + if (!(this.color === tmp0_other_with_cast.color)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KDecoCardFan_b7sb10_k$(seen1, isFan, number, numberStr, color, serializationConstructorMarker) { + Companion_instance_977; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_964().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.isFan = 0; + else + $this.isFan = isFan; + if (0 === (seen1 & 2)) + $this.number = 0; + else + $this.number = number; + if (0 === (seen1 & 4)) + $this.numberStr = ''; + else + $this.numberStr = numberStr; + if (0 === (seen1 & 8)) + $this.color = ''; + else + $this.color = color; + return $this; + } + } + class Companion_978 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.LiveInfo'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_965(); + } + } + class $serializer_965 { + constructor() { + $serializer_instance_965 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KLiveInfo', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('isLiving', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('uri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('liveState', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = null; + var tmp6_local2 = 0; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KLiveInfo.new_com_bapis_bilibili_app_dynamic_v2_KLiveInfo_8gx0lp_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_eszcts_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.isLiving === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.isLiving); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.uri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.uri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.liveState === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.liveState); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_eszcts_k$(encoder, value instanceof KLiveInfo ? value : THROW_CCE()); + } + } + class KLiveInfo { + constructor(isLiving, uri, liveState) { + Companion_instance_978; + isLiving = isLiving === VOID ? 0 : isLiving; + uri = uri === VOID ? '' : uri; + liveState = liveState === VOID ? 0 : liveState; + this.isLiving = isLiving; + this.uri = uri; + this.liveState = liveState; + } + get_isLiving_w54bb0_k$() { + return this.isLiving; + } + get_uri_18iuil_k$() { + return this.uri; + } + get_liveState_p0nejg_k$() { + return this.liveState; + } + liveStateEnum() { + return Companion_getInstance_1072().fromValue(this.liveState); + } + component1_7eebsc_k$() { + return this.isLiving; + } + component2_7eebsb_k$() { + return this.uri; + } + component3_7eebsa_k$() { + return this.liveState; + } + copy_jqwgyn_k$(isLiving, uri, liveState) { + return new KLiveInfo(isLiving, uri, liveState); + } + copy(isLiving, uri, liveState, $super) { + isLiving = isLiving === VOID ? this.isLiving : isLiving; + uri = uri === VOID ? this.uri : uri; + liveState = liveState === VOID ? this.liveState : liveState; + return this.copy_jqwgyn_k$(isLiving, uri, liveState); + } + toString() { + return 'KLiveInfo(isLiving=' + this.isLiving + ', uri=' + this.uri + ', liveState=' + this.liveState + ')'; + } + hashCode() { + var result = this.isLiving; + result = imul(result, 31) + getStringHashCode(this.uri) | 0; + result = imul(result, 31) + this.liveState | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KLiveInfo)) + return false; + var tmp0_other_with_cast = other instanceof KLiveInfo ? other : THROW_CCE(); + if (!(this.isLiving === tmp0_other_with_cast.isLiving)) + return false; + if (!(this.uri === tmp0_other_with_cast.uri)) + return false; + if (!(this.liveState === tmp0_other_with_cast.liveState)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KLiveInfo_8gx0lp_k$(seen1, isLiving, uri, liveState, serializationConstructorMarker) { + Companion_instance_978; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_965().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.isLiving = 0; + else + $this.isLiving = isLiving; + if (0 === (seen1 & 2)) + $this.uri = ''; + else + $this.uri = uri; + if (0 === (seen1 & 4)) + $this.liveState = 0; + else + $this.liveState = liveState; + return $this; + } + } + class Companion_979 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.ModuleAuthorBadgeButton'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_966(); + } + } + class $serializer_966 { + constructor() { + $serializer_instance_966 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KModuleAuthorBadgeButton', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('icon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('state', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('id', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = 0; + var tmp7_local3 = new Long(0, 0); + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KModuleAuthorBadgeButton.new_com_bapis_bilibili_app_dynamic_v2_KModuleAuthorBadgeButton_cfyxfy_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_9644ce_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.icon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.icon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.state === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.state); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !value.id.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 3, value.id); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_9644ce_k$(encoder, value instanceof KModuleAuthorBadgeButton ? value : THROW_CCE()); + } + } + class KModuleAuthorBadgeButton { + constructor(icon, title, state, id) { + Companion_instance_979; + icon = icon === VOID ? '' : icon; + title = title === VOID ? '' : title; + state = state === VOID ? 0 : state; + id = id === VOID ? new Long(0, 0) : id; + this.icon = icon; + this.title = title; + this.state = state; + this.id = id; + } + get_icon_wont8i_k$() { + return this.icon; + } + get_title_iz32un_k$() { + return this.title; + } + get_state_iypx7s_k$() { + return this.state; + } + get_id_kntnx8_k$() { + return this.id; + } + component1_7eebsc_k$() { + return this.icon; + } + component2_7eebsb_k$() { + return this.title; + } + component3_7eebsa_k$() { + return this.state; + } + component4_7eebs9_k$() { + return this.id; + } + copy_o5bg1r_k$(icon, title, state, id) { + return new KModuleAuthorBadgeButton(icon, title, state, id); + } + copy(icon, title, state, id, $super) { + icon = icon === VOID ? this.icon : icon; + title = title === VOID ? this.title : title; + state = state === VOID ? this.state : state; + id = id === VOID ? this.id : id; + return this.copy_o5bg1r_k$(icon, title, state, id); + } + toString() { + return 'KModuleAuthorBadgeButton(icon=' + this.icon + ', title=' + this.title + ', state=' + this.state + ', id=' + this.id.toString() + ')'; + } + hashCode() { + var result = getStringHashCode(this.icon); + result = imul(result, 31) + getStringHashCode(this.title) | 0; + result = imul(result, 31) + this.state | 0; + result = imul(result, 31) + this.id.hashCode() | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KModuleAuthorBadgeButton)) + return false; + var tmp0_other_with_cast = other instanceof KModuleAuthorBadgeButton ? other : THROW_CCE(); + if (!(this.icon === tmp0_other_with_cast.icon)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.state === tmp0_other_with_cast.state)) + return false; + if (!this.id.equals(tmp0_other_with_cast.id)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KModuleAuthorBadgeButton_cfyxfy_k$(seen1, icon, title, state, id, serializationConstructorMarker) { + Companion_instance_979; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_966().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.icon = ''; + else + $this.icon = icon; + if (0 === (seen1 & 2)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 4)) + $this.state = 0; + else + $this.state = state; + if (0 === (seen1 & 8)) + $this.id = new Long(0, 0); + else + $this.id = id; + return $this; + } + } + class Companion_980 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.Relation'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_967(); + } + } + class $serializer_967 { + constructor() { + $serializer_instance_967 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KRelation', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('status', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('isFollow', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('isFollowed', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = 0; + var tmp6_local2 = 0; + var tmp7_local3 = null; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KRelation_1.new_com_bapis_bilibili_app_dynamic_v2_KRelation_eeaq5x_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_q84h5e_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.status === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.status); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.isFollow === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.isFollow); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.isFollowed === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.isFollowed); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.title); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_q84h5e_k$(encoder, value instanceof KRelation_1 ? value : THROW_CCE()); + } + } + class KRelation_1 { + constructor(status, isFollow, isFollowed, title) { + Companion_instance_980; + status = status === VOID ? 0 : status; + isFollow = isFollow === VOID ? 0 : isFollow; + isFollowed = isFollowed === VOID ? 0 : isFollowed; + title = title === VOID ? '' : title; + this.status = status; + this.isFollow = isFollow; + this.isFollowed = isFollowed; + this.title = title; + } + get_status_jnf6d7_k$() { + return this.status; + } + get_isFollow_tdz0w4_k$() { + return this.isFollow; + } + get_isFollowed_sauyhp_k$() { + return this.isFollowed; + } + get_title_iz32un_k$() { + return this.title; + } + statusEnum() { + return Companion_getInstance_943().fromValue(this.status); + } + component1_7eebsc_k$() { + return this.status; + } + component2_7eebsb_k$() { + return this.isFollow; + } + component3_7eebsa_k$() { + return this.isFollowed; + } + component4_7eebs9_k$() { + return this.title; + } + copy_yrzm95_k$(status, isFollow, isFollowed, title) { + return new KRelation_1(status, isFollow, isFollowed, title); + } + copy(status, isFollow, isFollowed, title, $super) { + status = status === VOID ? this.status : status; + isFollow = isFollow === VOID ? this.isFollow : isFollow; + isFollowed = isFollowed === VOID ? this.isFollowed : isFollowed; + title = title === VOID ? this.title : title; + return this.copy_yrzm95_k$(status, isFollow, isFollowed, title); + } + toString() { + return 'KRelation(status=' + this.status + ', isFollow=' + this.isFollow + ', isFollowed=' + this.isFollowed + ', title=' + this.title + ')'; + } + hashCode() { + var result = this.status; + result = imul(result, 31) + this.isFollow | 0; + result = imul(result, 31) + this.isFollowed | 0; + result = imul(result, 31) + getStringHashCode(this.title) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KRelation_1)) + return false; + var tmp0_other_with_cast = other instanceof KRelation_1 ? other : THROW_CCE(); + if (!(this.status === tmp0_other_with_cast.status)) + return false; + if (!(this.isFollow === tmp0_other_with_cast.isFollow)) + return false; + if (!(this.isFollowed === tmp0_other_with_cast.isFollowed)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KRelation_eeaq5x_k$(seen1, status, isFollow, isFollowed, title, serializationConstructorMarker) { + Companion_instance_980; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_967().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.status = 0; + else + $this.status = status; + if (0 === (seen1 & 2)) + $this.isFollow = 0; + else + $this.isFollow = isFollow; + if (0 === (seen1 & 4)) + $this.isFollowed = 0; + else + $this.isFollowed = isFollowed; + if (0 === (seen1 & 8)) + $this.title = ''; + else + $this.title = title; + return $this; + } + } + class Companion_981 { + constructor() { + Companion_instance_981 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, new ArrayListSerializer($serializer_getInstance_969()), null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.Weight'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_968(); + } + } + class $serializer_968 { + constructor() { + $serializer_instance_968 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KWeight', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('items', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('icon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_981().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), tmp0_cached[1], StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp8_cached = Companion_getInstance_981().$childSerializers_1; + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp8_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp8_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KWeight.new_com_bapis_bilibili_app_dynamic_v2_KWeight_s3bwd3_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_3kkqoe_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_981().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !equals(value.items, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 1, tmp2_cached[1], value.items); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.icon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.icon); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_3kkqoe_k$(encoder, value instanceof KWeight ? value : THROW_CCE()); + } + } + class KWeight { + constructor(title, items, icon) { + Companion_getInstance_981(); + title = title === VOID ? '' : title; + items = items === VOID ? emptyList() : items; + icon = icon === VOID ? '' : icon; + this.title = title; + this.items = items; + this.icon = icon; + } + get_title_iz32un_k$() { + return this.title; + } + get_items_it823b_k$() { + return this.items; + } + get_icon_wont8i_k$() { + return this.icon; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.items; + } + component3_7eebsa_k$() { + return this.icon; + } + copy_bb5pjl_k$(title, items, icon) { + return new KWeight(title, items, icon); + } + copy(title, items, icon, $super) { + title = title === VOID ? this.title : title; + items = items === VOID ? this.items : items; + icon = icon === VOID ? this.icon : icon; + return this.copy_bb5pjl_k$(title, items, icon); + } + toString() { + return 'KWeight(title=' + this.title + ', items=' + this.items + ', icon=' + this.icon + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + hashCode(this.items) | 0; + result = imul(result, 31) + getStringHashCode(this.icon) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KWeight)) + return false; + var tmp0_other_with_cast = other instanceof KWeight ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!equals(this.items, tmp0_other_with_cast.items)) + return false; + if (!(this.icon === tmp0_other_with_cast.icon)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KWeight_s3bwd3_k$(seen1, title, items, icon, serializationConstructorMarker) { + Companion_getInstance_981(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_968().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.items = emptyList(); + else + $this.items = items; + if (0 === (seen1 & 4)) + $this.icon = ''; + else + $this.icon = icon; + return $this; + } + } + class KItem_4 { + constructor(value) { + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + } + class KButton_4 extends KItem_4 { + constructor() { + KButton_instance = null; + super(0); + KButton_instance = this; + } + } + class KDislike extends KItem_4 { + constructor() { + KDislike_instance = null; + super(1); + KDislike_instance = this; + } + } + class Companion_982 { + constructor() { + Companion_instance_982 = this; + var tmp = this; + tmp.itemValues$delegate_1 = lazy_0(KWeightItem$Companion$itemValues$delegate$lambda); + this.targetPath = '/bilibili.app.dynamic.v2.WeightItem'; + } + get_itemValues_e195su_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.itemValues$delegate_1; + var thisRef = this; + var property = itemValues$factory_1(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_969(); + } + get itemValues() { + return this.get_itemValues_e195su_k$(); + } + } + class $serializer_969 { + constructor() { + $serializer_instance_969 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KWeightItem', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('button', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('dislike', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), get_nullable($serializer_getInstance_971()), get_nullable($serializer_getInstance_970())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_transient0 = 0; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_971(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_970(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_971(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_970(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KWeightItem.new_com_bapis_bilibili_app_dynamic_v2_KWeightItem_i2pd2w_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_bw2bhd_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.type === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.type); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.button_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_971(), value.button_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.dislike_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_970(), value.dislike_1); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_bw2bhd_k$(encoder, value instanceof KWeightItem ? value : THROW_CCE()); + } + } + class KWeightItem { + constructor(type, button, dislike) { + Companion_getInstance_982(); + type = type === VOID ? 0 : type; + button = button === VOID ? null : button; + dislike = dislike === VOID ? null : dislike; + this.type = type; + this.button_1 = button; + this.dislike_1 = dislike; + var tmp = this; + tmp.itemNumber$delegate_1 = lazy_0(KWeightItem$itemNumber$delegate$lambda(this)); + } + get_type_wovaf7_k$() { + return this.type; + } + itemValue() { + if (!(this.button_1 == null)) { + var tmp = this.button_1; + return (tmp == null ? true : !(tmp == null)) ? tmp : null; + } else if (!(this.dislike_1 == null)) { + var tmp_0 = this.dislike_1; + return (tmp_0 == null ? true : !(tmp_0 == null)) ? tmp_0 : null; + } else { + return null; + } + } + itemTypeJs() { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = Companion_getInstance_982().itemValues; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.KWeightItem.itemType.' call + var it = element; + tmp$ret$0 = it.value === _get_itemNumber__22vn01_1(this); + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + return tmp$ret$1; + } + typeEnum() { + return Companion_getInstance_944().fromValue(this.type); + } + component1_7eebsc_k$() { + return this.type; + } + copy_26frtk_k$(type, button, dislike) { + return new KWeightItem(type, button, dislike); + } + copy(type, button, dislike, $super) { + type = type === VOID ? this.type : type; + button = button === VOID ? this.button_1 : button; + dislike = dislike === VOID ? this.dislike_1 : dislike; + return this.copy_26frtk_k$(type, button, dislike); + } + toString() { + return 'KWeightItem(type=' + this.type + ', button=' + this.button_1 + ', dislike=' + this.dislike_1 + ')'; + } + hashCode() { + var result = this.type; + result = imul(result, 31) + (this.button_1 == null ? 0 : this.button_1.hashCode()) | 0; + result = imul(result, 31) + (this.dislike_1 == null ? 0 : this.dislike_1.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KWeightItem)) + return false; + var tmp0_other_with_cast = other instanceof KWeightItem ? other : THROW_CCE(); + if (!(this.type === tmp0_other_with_cast.type)) + return false; + if (!equals(this.button_1, tmp0_other_with_cast.button_1)) + return false; + if (!equals(this.dislike_1, tmp0_other_with_cast.dislike_1)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KWeightItem_i2pd2w_k$(seen1, type, button, dislike, serializationConstructorMarker) { + Companion_getInstance_982(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_969().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.type = 0; + else + $this.type = type; + if (0 === (seen1 & 2)) + $this.button_1 = null; + else + $this.button_1 = button; + if (0 === (seen1 & 4)) + $this.dislike_1 = null; + else + $this.dislike_1 = dislike; + var tmp = $this; + tmp.itemNumber$delegate_1 = lazy_0(KWeightItem$_init_$lambda_vwbfyt($this)); + return $this; + } + } + class Companion_983 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.WeightDislike'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_970(); + } + } + class $serializer_970 { + constructor() { + $serializer_instance_970 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KWeightDislike', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('feedBackType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KWeightDislike.new_com_bapis_bilibili_app_dynamic_v2_KWeightDislike_wa8cv1_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_apz2i7_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.feedBackType === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.feedBackType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.title); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_apz2i7_k$(encoder, value instanceof KWeightDislike ? value : THROW_CCE()); + } + } + class KWeightDislike { + constructor(feedBackType, title) { + Companion_instance_983; + feedBackType = feedBackType === VOID ? '' : feedBackType; + title = title === VOID ? '' : title; + this.feedBackType = feedBackType; + this.title = title; + } + get_feedBackType_mxfo6w_k$() { + return this.feedBackType; + } + get_title_iz32un_k$() { + return this.title; + } + component1_7eebsc_k$() { + return this.feedBackType; + } + component2_7eebsb_k$() { + return this.title; + } + copy_plwnsl_k$(feedBackType, title) { + return new KWeightDislike(feedBackType, title); + } + copy(feedBackType, title, $super) { + feedBackType = feedBackType === VOID ? this.feedBackType : feedBackType; + title = title === VOID ? this.title : title; + return this.copy_plwnsl_k$(feedBackType, title); + } + toString() { + return 'KWeightDislike(feedBackType=' + this.feedBackType + ', title=' + this.title + ')'; + } + hashCode() { + var result = getStringHashCode(this.feedBackType); + result = imul(result, 31) + getStringHashCode(this.title) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KWeightDislike)) + return false; + var tmp0_other_with_cast = other instanceof KWeightDislike ? other : THROW_CCE(); + if (!(this.feedBackType === tmp0_other_with_cast.feedBackType)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KWeightDislike_wa8cv1_k$(seen1, feedBackType, title, serializationConstructorMarker) { + Companion_instance_983; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_970().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.feedBackType = ''; + else + $this.feedBackType = feedBackType; + if (0 === (seen1 & 2)) + $this.title = ''; + else + $this.title = title; + return $this; + } + } + class Companion_984 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.WeightButton'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_971(); + } + } + class $serializer_971 { + constructor() { + $serializer_instance_971 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KWeightButton', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('jumpUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KWeightButton.new_com_bapis_bilibili_app_dynamic_v2_KWeightButton_rdxxc8_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_dczyn4_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.jumpUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.jumpUrl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.title); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_dczyn4_k$(encoder, value instanceof KWeightButton ? value : THROW_CCE()); + } + } + class KWeightButton { + constructor(jumpUrl, title) { + Companion_instance_984; + jumpUrl = jumpUrl === VOID ? '' : jumpUrl; + title = title === VOID ? '' : title; + this.jumpUrl = jumpUrl; + this.title = title; + } + get_jumpUrl_jhqiko_k$() { + return this.jumpUrl; + } + get_title_iz32un_k$() { + return this.title; + } + component1_7eebsc_k$() { + return this.jumpUrl; + } + component2_7eebsb_k$() { + return this.title; + } + copy_plwnsl_k$(jumpUrl, title) { + return new KWeightButton(jumpUrl, title); + } + copy(jumpUrl, title, $super) { + jumpUrl = jumpUrl === VOID ? this.jumpUrl : jumpUrl; + title = title === VOID ? this.title : title; + return this.copy_plwnsl_k$(jumpUrl, title); + } + toString() { + return 'KWeightButton(jumpUrl=' + this.jumpUrl + ', title=' + this.title + ')'; + } + hashCode() { + var result = getStringHashCode(this.jumpUrl); + result = imul(result, 31) + getStringHashCode(this.title) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KWeightButton)) + return false; + var tmp0_other_with_cast = other instanceof KWeightButton ? other : THROW_CCE(); + if (!(this.jumpUrl === tmp0_other_with_cast.jumpUrl)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KWeightButton_rdxxc8_k$(seen1, jumpUrl, title, serializationConstructorMarker) { + Companion_instance_984; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_971().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.jumpUrl = ''; + else + $this.jumpUrl = jumpUrl; + if (0 === (seen1 & 2)) + $this.title = ''; + else + $this.title = title; + return $this; + } + } + class KItem_5 { + constructor(value) { + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + } + class KDefault extends KItem_5 { + constructor() { + KDefault_instance = null; + super(0); + KDefault_instance = this; + } + } + class KAutoPlayer extends KItem_5 { + constructor() { + KAutoPlayer_instance = null; + super(1); + KAutoPlayer_instance = this; + } + } + class KShare_0 extends KItem_5 { + constructor() { + KShare_instance = null; + super(2); + KShare_instance = this; + } + } + class KAttention extends KItem_5 { + constructor() { + KAttention_instance = null; + super(3); + KAttention_instance = this; + } + } + class KWait extends KItem_5 { + constructor() { + KWait_instance = null; + super(4); + KWait_instance = this; + } + } + class KDislike_0 extends KItem_5 { + constructor() { + KDislike_instance_0 = null; + super(5); + KDislike_instance_0 = this; + } + } + class KFavorite extends KItem_5 { + constructor() { + KFavorite_instance = null; + super(6); + KFavorite_instance = this; + } + } + class KTop extends KItem_5 { + constructor() { + KTop_instance = null; + super(7); + KTop_instance = this; + } + } + class KComment extends KItem_5 { + constructor() { + KComment_instance = null; + super(8); + KComment_instance = this; + } + } + class KHide extends KItem_5 { + constructor() { + KHide_instance = null; + super(9); + KHide_instance = this; + } + } + class KTopicIrrelevant extends KItem_5 { + constructor() { + KTopicIrrelevant_instance = null; + super(10); + KTopicIrrelevant_instance = this; + } + } + class KDynEdit extends KItem_5 { + constructor() { + KDynEdit_instance = null; + super(11); + KDynEdit_instance = this; + } + } + class KCoin_0 extends KItem_5 { + constructor() { + KCoin_instance_0 = null; + super(12); + KCoin_instance_0 = this; + } + } + class Companion_985 { + constructor() { + Companion_instance_985 = this; + var tmp = this; + tmp.itemValues$delegate_1 = lazy_0(KThreePointItem$Companion$itemValues$delegate$lambda); + this.targetPath = '/bilibili.app.dynamic.v2.ThreePointItem'; + } + get_itemValues_e195su_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.itemValues$delegate_1; + var thisRef = this; + var property = itemValues$factory_2(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_972(); + } + get itemValues() { + return this.get_itemValues_e195su_k$(); + } + } + class $serializer_972 { + constructor() { + $serializer_instance_972 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KThreePointItem', this, 14); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('default', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('autoPlayer', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('share', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('attention', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('wait', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('dislike', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('favorite', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('top', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('comment', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('hide', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('topicIrrelevant', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + tmp0_serialDesc.addElement_5pzumi_k$('dynEdit', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(13)); + tmp0_serialDesc.addElement_5pzumi_k$('coin', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(14)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), get_nullable($serializer_getInstance_973()), get_nullable($serializer_getInstance_975()), get_nullable($serializer_getInstance_976()), get_nullable($serializer_getInstance_979()), get_nullable($serializer_getInstance_980()), get_nullable($serializer_getInstance_981()), get_nullable($serializer_getInstance_982()), get_nullable($serializer_getInstance_983()), get_nullable($serializer_getInstance_987()), get_nullable($serializer_getInstance_989()), get_nullable($serializer_getInstance_984()), get_nullable($serializer_getInstance_985()), get_nullable($serializer_getInstance_986())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_local8 = null; + var tmp13_local9 = null; + var tmp14_local10 = null; + var tmp15_local11 = null; + var tmp16_local12 = null; + var tmp17_local13 = null; + var tmp18_transient0 = 0; + var tmp19_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp19_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp19_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp19_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_973(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp19_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_975(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp19_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_976(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp19_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_979(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp19_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_980(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp19_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_981(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp19_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_982(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp19_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_983(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp19_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 9, $serializer_getInstance_987(), tmp13_local9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp19_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 10, $serializer_getInstance_989(), tmp14_local10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp19_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 11, $serializer_getInstance_984(), tmp15_local11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + tmp16_local12 = tmp19_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 12, $serializer_getInstance_985(), tmp16_local12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + tmp17_local13 = tmp19_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 13, $serializer_getInstance_986(), tmp17_local13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + } else + while (tmp1_flag) { + tmp2_index = tmp19_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp19_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp19_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_973(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp19_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_975(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp19_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_976(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp19_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_979(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp19_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_980(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp19_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_981(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp19_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_982(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp19_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_983(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp19_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 9, $serializer_getInstance_987(), tmp13_local9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp19_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 10, $serializer_getInstance_989(), tmp14_local10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp19_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 11, $serializer_getInstance_984(), tmp15_local11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + case 12: + tmp16_local12 = tmp19_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 12, $serializer_getInstance_985(), tmp16_local12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + break; + case 13: + tmp17_local13 = tmp19_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 13, $serializer_getInstance_986(), tmp17_local13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp19_input.endStructure_1xqz0n_k$(tmp0_desc); + return KThreePointItem.new_com_bapis_bilibili_app_dynamic_v2_KThreePointItem_h3h1c_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, null); + } + serialize_fbwtxh_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.type === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.type); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.default_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_973(), value.default_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.autoPlayer_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_975(), value.autoPlayer_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.share_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_976(), value.share_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.attention_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, $serializer_getInstance_979(), value.attention_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.wait_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 5, $serializer_getInstance_980(), value.wait_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.dislike_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 6, $serializer_getInstance_981(), value.dislike_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.favorite_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 7, $serializer_getInstance_982(), value.favorite_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.top_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 8, $serializer_getInstance_983(), value.top_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.comment_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 9, $serializer_getInstance_987(), value.comment_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.hide_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 10, $serializer_getInstance_989(), value.hide_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.topicIrrelevant_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 11, $serializer_getInstance_984(), value.topicIrrelevant_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !(value.dynEdit_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 12, $serializer_getInstance_985(), value.dynEdit_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 13) ? true : !(value.coin_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 13, $serializer_getInstance_986(), value.coin_1); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_fbwtxh_k$(encoder, value instanceof KThreePointItem ? value : THROW_CCE()); + } + } + class KThreePointItem { + constructor(type, default_0, autoPlayer, share, attention, wait, dislike, favorite, top, comment, hide, topicIrrelevant, dynEdit, coin) { + Companion_getInstance_985(); + type = type === VOID ? 0 : type; + default_0 = default_0 === VOID ? null : default_0; + autoPlayer = autoPlayer === VOID ? null : autoPlayer; + share = share === VOID ? null : share; + attention = attention === VOID ? null : attention; + wait = wait === VOID ? null : wait; + dislike = dislike === VOID ? null : dislike; + favorite = favorite === VOID ? null : favorite; + top = top === VOID ? null : top; + comment = comment === VOID ? null : comment; + hide = hide === VOID ? null : hide; + topicIrrelevant = topicIrrelevant === VOID ? null : topicIrrelevant; + dynEdit = dynEdit === VOID ? null : dynEdit; + coin = coin === VOID ? null : coin; + this.type = type; + this.default_1 = default_0; + this.autoPlayer_1 = autoPlayer; + this.share_1 = share; + this.attention_1 = attention; + this.wait_1 = wait; + this.dislike_1 = dislike; + this.favorite_1 = favorite; + this.top_1 = top; + this.comment_1 = comment; + this.hide_1 = hide; + this.topicIrrelevant_1 = topicIrrelevant; + this.dynEdit_1 = dynEdit; + this.coin_1 = coin; + var tmp = this; + tmp.itemNumber$delegate_1 = lazy_0(KThreePointItem$itemNumber$delegate$lambda(this)); + } + get_type_wovaf7_k$() { + return this.type; + } + itemValue() { + if (!(this.default_1 == null)) { + var tmp = this.default_1; + return (tmp == null ? true : !(tmp == null)) ? tmp : null; + } else if (!(this.autoPlayer_1 == null)) { + var tmp_0 = this.autoPlayer_1; + return (tmp_0 == null ? true : !(tmp_0 == null)) ? tmp_0 : null; + } else if (!(this.share_1 == null)) { + var tmp_1 = this.share_1; + return (tmp_1 == null ? true : !(tmp_1 == null)) ? tmp_1 : null; + } else if (!(this.attention_1 == null)) { + var tmp_2 = this.attention_1; + return (tmp_2 == null ? true : !(tmp_2 == null)) ? tmp_2 : null; + } else if (!(this.wait_1 == null)) { + var tmp_3 = this.wait_1; + return (tmp_3 == null ? true : !(tmp_3 == null)) ? tmp_3 : null; + } else if (!(this.dislike_1 == null)) { + var tmp_4 = this.dislike_1; + return (tmp_4 == null ? true : !(tmp_4 == null)) ? tmp_4 : null; + } else if (!(this.favorite_1 == null)) { + var tmp_5 = this.favorite_1; + return (tmp_5 == null ? true : !(tmp_5 == null)) ? tmp_5 : null; + } else if (!(this.top_1 == null)) { + var tmp_6 = this.top_1; + return (tmp_6 == null ? true : !(tmp_6 == null)) ? tmp_6 : null; + } else if (!(this.comment_1 == null)) { + var tmp_7 = this.comment_1; + return (tmp_7 == null ? true : !(tmp_7 == null)) ? tmp_7 : null; + } else if (!(this.hide_1 == null)) { + var tmp_8 = this.hide_1; + return (tmp_8 == null ? true : !(tmp_8 == null)) ? tmp_8 : null; + } else if (!(this.topicIrrelevant_1 == null)) { + var tmp_9 = this.topicIrrelevant_1; + return (tmp_9 == null ? true : !(tmp_9 == null)) ? tmp_9 : null; + } else if (!(this.dynEdit_1 == null)) { + var tmp_10 = this.dynEdit_1; + return (tmp_10 == null ? true : !(tmp_10 == null)) ? tmp_10 : null; + } else if (!(this.coin_1 == null)) { + var tmp_11 = this.coin_1; + return (tmp_11 == null ? true : !(tmp_11 == null)) ? tmp_11 : null; + } else { + return null; + } + } + itemTypeJs() { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = Companion_getInstance_985().itemValues; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.KThreePointItem.itemType.' call + var it = element; + tmp$ret$0 = it.value === _get_itemNumber__22vn01_2(this); + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + return tmp$ret$1; + } + typeEnum() { + return Companion_getInstance_945().fromValue(this.type); + } + component1_7eebsc_k$() { + return this.type; + } + copy_1o9y2u_k$(type, default_0, autoPlayer, share, attention, wait, dislike, favorite, top, comment, hide, topicIrrelevant, dynEdit, coin) { + return new KThreePointItem(type, default_0, autoPlayer, share, attention, wait, dislike, favorite, top, comment, hide, topicIrrelevant, dynEdit, coin); + } + copy(type, default_0, autoPlayer, share, attention, wait, dislike, favorite, top, comment, hide, topicIrrelevant, dynEdit, coin, $super) { + type = type === VOID ? this.type : type; + default_0 = default_0 === VOID ? this.default_1 : default_0; + autoPlayer = autoPlayer === VOID ? this.autoPlayer_1 : autoPlayer; + share = share === VOID ? this.share_1 : share; + attention = attention === VOID ? this.attention_1 : attention; + wait = wait === VOID ? this.wait_1 : wait; + dislike = dislike === VOID ? this.dislike_1 : dislike; + favorite = favorite === VOID ? this.favorite_1 : favorite; + top = top === VOID ? this.top_1 : top; + comment = comment === VOID ? this.comment_1 : comment; + hide = hide === VOID ? this.hide_1 : hide; + topicIrrelevant = topicIrrelevant === VOID ? this.topicIrrelevant_1 : topicIrrelevant; + dynEdit = dynEdit === VOID ? this.dynEdit_1 : dynEdit; + coin = coin === VOID ? this.coin_1 : coin; + return this.copy_1o9y2u_k$(type, default_0, autoPlayer, share, attention, wait, dislike, favorite, top, comment, hide, topicIrrelevant, dynEdit, coin); + } + toString() { + return 'KThreePointItem(type=' + this.type + ', default=' + this.default_1 + ', autoPlayer=' + this.autoPlayer_1 + ', share=' + this.share_1 + ', attention=' + this.attention_1 + ', wait=' + this.wait_1 + ', dislike=' + this.dislike_1 + ', favorite=' + this.favorite_1 + ', top=' + this.top_1 + ', comment=' + this.comment_1 + ', hide=' + this.hide_1 + ', topicIrrelevant=' + this.topicIrrelevant_1 + ', dynEdit=' + this.dynEdit_1 + ', coin=' + this.coin_1 + ')'; + } + hashCode() { + var result = this.type; + result = imul(result, 31) + (this.default_1 == null ? 0 : this.default_1.hashCode()) | 0; + result = imul(result, 31) + (this.autoPlayer_1 == null ? 0 : this.autoPlayer_1.hashCode()) | 0; + result = imul(result, 31) + (this.share_1 == null ? 0 : this.share_1.hashCode()) | 0; + result = imul(result, 31) + (this.attention_1 == null ? 0 : this.attention_1.hashCode()) | 0; + result = imul(result, 31) + (this.wait_1 == null ? 0 : this.wait_1.hashCode()) | 0; + result = imul(result, 31) + (this.dislike_1 == null ? 0 : this.dislike_1.hashCode()) | 0; + result = imul(result, 31) + (this.favorite_1 == null ? 0 : this.favorite_1.hashCode()) | 0; + result = imul(result, 31) + (this.top_1 == null ? 0 : this.top_1.hashCode()) | 0; + result = imul(result, 31) + (this.comment_1 == null ? 0 : this.comment_1.hashCode()) | 0; + result = imul(result, 31) + (this.hide_1 == null ? 0 : this.hide_1.hashCode()) | 0; + result = imul(result, 31) + (this.topicIrrelevant_1 == null ? 0 : this.topicIrrelevant_1.hashCode()) | 0; + result = imul(result, 31) + (this.dynEdit_1 == null ? 0 : this.dynEdit_1.hashCode()) | 0; + result = imul(result, 31) + (this.coin_1 == null ? 0 : this.coin_1.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KThreePointItem)) + return false; + var tmp0_other_with_cast = other instanceof KThreePointItem ? other : THROW_CCE(); + if (!(this.type === tmp0_other_with_cast.type)) + return false; + if (!equals(this.default_1, tmp0_other_with_cast.default_1)) + return false; + if (!equals(this.autoPlayer_1, tmp0_other_with_cast.autoPlayer_1)) + return false; + if (!equals(this.share_1, tmp0_other_with_cast.share_1)) + return false; + if (!equals(this.attention_1, tmp0_other_with_cast.attention_1)) + return false; + if (!equals(this.wait_1, tmp0_other_with_cast.wait_1)) + return false; + if (!equals(this.dislike_1, tmp0_other_with_cast.dislike_1)) + return false; + if (!equals(this.favorite_1, tmp0_other_with_cast.favorite_1)) + return false; + if (!equals(this.top_1, tmp0_other_with_cast.top_1)) + return false; + if (!equals(this.comment_1, tmp0_other_with_cast.comment_1)) + return false; + if (!equals(this.hide_1, tmp0_other_with_cast.hide_1)) + return false; + if (!equals(this.topicIrrelevant_1, tmp0_other_with_cast.topicIrrelevant_1)) + return false; + if (!equals(this.dynEdit_1, tmp0_other_with_cast.dynEdit_1)) + return false; + if (!equals(this.coin_1, tmp0_other_with_cast.coin_1)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KThreePointItem_h3h1c_k$(seen1, type, default_0, autoPlayer, share, attention, wait, dislike, favorite, top, comment, hide, topicIrrelevant, dynEdit, coin, serializationConstructorMarker) { + Companion_getInstance_985(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_972().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.type = 0; + else + $this.type = type; + if (0 === (seen1 & 2)) + $this.default_1 = null; + else + $this.default_1 = default_0; + if (0 === (seen1 & 4)) + $this.autoPlayer_1 = null; + else + $this.autoPlayer_1 = autoPlayer; + if (0 === (seen1 & 8)) + $this.share_1 = null; + else + $this.share_1 = share; + if (0 === (seen1 & 16)) + $this.attention_1 = null; + else + $this.attention_1 = attention; + if (0 === (seen1 & 32)) + $this.wait_1 = null; + else + $this.wait_1 = wait; + if (0 === (seen1 & 64)) + $this.dislike_1 = null; + else + $this.dislike_1 = dislike; + if (0 === (seen1 & 128)) + $this.favorite_1 = null; + else + $this.favorite_1 = favorite; + if (0 === (seen1 & 256)) + $this.top_1 = null; + else + $this.top_1 = top; + if (0 === (seen1 & 512)) + $this.comment_1 = null; + else + $this.comment_1 = comment; + if (0 === (seen1 & 1024)) + $this.hide_1 = null; + else + $this.hide_1 = hide; + if (0 === (seen1 & 2048)) + $this.topicIrrelevant_1 = null; + else + $this.topicIrrelevant_1 = topicIrrelevant; + if (0 === (seen1 & 4096)) + $this.dynEdit_1 = null; + else + $this.dynEdit_1 = dynEdit; + if (0 === (seen1 & 8192)) + $this.coin_1 = null; + else + $this.coin_1 = coin; + var tmp = $this; + tmp.itemNumber$delegate_1 = lazy_0(KThreePointItem$_init_$lambda_tqx7cr($this)); + return $this; + } + } + class Companion_986 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.ThreePointDefault'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_973(); + } + } + class $serializer_973 { + constructor() { + $serializer_instance_973 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KThreePointDefault', this, 5); + tmp0_serialDesc.addElement_5pzumi_k$('icon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('uri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('id', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('toast', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_974())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp9_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_974(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + } else + while (tmp1_flag) { + tmp2_index = tmp9_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_974(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp9_input.endStructure_1xqz0n_k$(tmp0_desc); + return KThreePointDefault.new_com_bapis_bilibili_app_dynamic_v2_KThreePointDefault_98txp7_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); + } + serialize_pcf7rn_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.icon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.icon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.uri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.uri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.id === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.id); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.toast == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, $serializer_getInstance_974(), value.toast); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_pcf7rn_k$(encoder, value instanceof KThreePointDefault ? value : THROW_CCE()); + } + } + class KThreePointDefault { + constructor(icon, title, uri, id, toast) { + Companion_instance_986; + icon = icon === VOID ? '' : icon; + title = title === VOID ? '' : title; + uri = uri === VOID ? '' : uri; + id = id === VOID ? '' : id; + toast = toast === VOID ? null : toast; + this.icon = icon; + this.title = title; + this.uri = uri; + this.id = id; + this.toast = toast; + } + get_icon_wont8i_k$() { + return this.icon; + } + get_title_iz32un_k$() { + return this.title; + } + get_uri_18iuil_k$() { + return this.uri; + } + get_id_kntnx8_k$() { + return this.id; + } + get_toast_iz6iv2_k$() { + return this.toast; + } + component1_7eebsc_k$() { + return this.icon; + } + component2_7eebsb_k$() { + return this.title; + } + component3_7eebsa_k$() { + return this.uri; + } + component4_7eebs9_k$() { + return this.id; + } + component5_7eebs8_k$() { + return this.toast; + } + copy_kw7uur_k$(icon, title, uri, id, toast) { + return new KThreePointDefault(icon, title, uri, id, toast); + } + copy(icon, title, uri, id, toast, $super) { + icon = icon === VOID ? this.icon : icon; + title = title === VOID ? this.title : title; + uri = uri === VOID ? this.uri : uri; + id = id === VOID ? this.id : id; + toast = toast === VOID ? this.toast : toast; + return this.copy_kw7uur_k$(icon, title, uri, id, toast); + } + toString() { + return 'KThreePointDefault(icon=' + this.icon + ', title=' + this.title + ', uri=' + this.uri + ', id=' + this.id + ', toast=' + this.toast + ')'; + } + hashCode() { + var result = getStringHashCode(this.icon); + result = imul(result, 31) + getStringHashCode(this.title) | 0; + result = imul(result, 31) + getStringHashCode(this.uri) | 0; + result = imul(result, 31) + getStringHashCode(this.id) | 0; + result = imul(result, 31) + (this.toast == null ? 0 : this.toast.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KThreePointDefault)) + return false; + var tmp0_other_with_cast = other instanceof KThreePointDefault ? other : THROW_CCE(); + if (!(this.icon === tmp0_other_with_cast.icon)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.uri === tmp0_other_with_cast.uri)) + return false; + if (!(this.id === tmp0_other_with_cast.id)) + return false; + if (!equals(this.toast, tmp0_other_with_cast.toast)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KThreePointDefault_98txp7_k$(seen1, icon, title, uri, id, toast, serializationConstructorMarker) { + Companion_instance_986; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_973().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.icon = ''; + else + $this.icon = icon; + if (0 === (seen1 & 2)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 4)) + $this.uri = ''; + else + $this.uri = uri; + if (0 === (seen1 & 8)) + $this.id = ''; + else + $this.id = id; + if (0 === (seen1 & 16)) + $this.toast = null; + else + $this.toast = toast; + return $this; + } + } + class Companion_987 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.ThreePointDefaultToast'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_974(); + } + } + class $serializer_974 { + constructor() { + $serializer_instance_974 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KThreePointDefaultToast', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('desc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KThreePointDefaultToast.new_com_bapis_bilibili_app_dynamic_v2_KThreePointDefaultToast_hk166e_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_uimf1q_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.desc === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.desc); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_uimf1q_k$(encoder, value instanceof KThreePointDefaultToast ? value : THROW_CCE()); + } + } + class KThreePointDefaultToast { + constructor(title, desc) { + Companion_instance_987; + title = title === VOID ? '' : title; + desc = desc === VOID ? '' : desc; + this.title = title; + this.desc = desc; + } + get_title_iz32un_k$() { + return this.title; + } + get_desc_woknve_k$() { + return this.desc; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.desc; + } + copy_plwnsl_k$(title, desc) { + return new KThreePointDefaultToast(title, desc); + } + copy(title, desc, $super) { + title = title === VOID ? this.title : title; + desc = desc === VOID ? this.desc : desc; + return this.copy_plwnsl_k$(title, desc); + } + toString() { + return 'KThreePointDefaultToast(title=' + this.title + ', desc=' + this.desc + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.desc) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KThreePointDefaultToast)) + return false; + var tmp0_other_with_cast = other instanceof KThreePointDefaultToast ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.desc === tmp0_other_with_cast.desc)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KThreePointDefaultToast_hk166e_k$(seen1, title, desc, serializationConstructorMarker) { + Companion_instance_987; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_974().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.desc = ''; + else + $this.desc = desc; + return $this; + } + } + class Companion_988 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.ThreePointAutoPlay'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_975(); + } + } + class $serializer_975 { + constructor() { + $serializer_instance_975 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KThreePointAutoPlay', this, 10); + tmp0_serialDesc.addElement_5pzumi_k$('openIcon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('openText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('closeIcon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('closeText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('openTextV2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('closeTextV2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('onlyIcon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('onlyText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('openIconV2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('closeIconV2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_local8 = null; + var tmp13_local9 = null; + var tmp14_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp14_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + } else + while (tmp1_flag) { + tmp2_index = tmp14_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp14_input.endStructure_1xqz0n_k$(tmp0_desc); + return KThreePointAutoPlay.new_com_bapis_bilibili_app_dynamic_v2_KThreePointAutoPlay_1f4iez_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, null); + } + serialize_2iyahh_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.openIcon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.openIcon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.openText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.openText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.closeIcon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.closeIcon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.closeText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.closeText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.openTextV2 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.openTextV2); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.closeTextV2 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.closeTextV2); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.onlyIcon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.onlyIcon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.onlyText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.onlyText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.openIconV2 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 8, value.openIconV2); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.closeIconV2 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 9, value.closeIconV2); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_2iyahh_k$(encoder, value instanceof KThreePointAutoPlay ? value : THROW_CCE()); + } + } + class KThreePointAutoPlay { + constructor(openIcon, openText, closeIcon, closeText, openTextV2, closeTextV2, onlyIcon, onlyText, openIconV2, closeIconV2) { + Companion_instance_988; + openIcon = openIcon === VOID ? '' : openIcon; + openText = openText === VOID ? '' : openText; + closeIcon = closeIcon === VOID ? '' : closeIcon; + closeText = closeText === VOID ? '' : closeText; + openTextV2 = openTextV2 === VOID ? '' : openTextV2; + closeTextV2 = closeTextV2 === VOID ? '' : closeTextV2; + onlyIcon = onlyIcon === VOID ? '' : onlyIcon; + onlyText = onlyText === VOID ? '' : onlyText; + openIconV2 = openIconV2 === VOID ? '' : openIconV2; + closeIconV2 = closeIconV2 === VOID ? '' : closeIconV2; + this.openIcon = openIcon; + this.openText = openText; + this.closeIcon = closeIcon; + this.closeText = closeText; + this.openTextV2 = openTextV2; + this.closeTextV2 = closeTextV2; + this.onlyIcon = onlyIcon; + this.onlyText = onlyText; + this.openIconV2 = openIconV2; + this.closeIconV2 = closeIconV2; + } + get_openIcon_uviv1o_k$() { + return this.openIcon; + } + get_openText_uvpxls_k$() { + return this.openText; + } + get_closeIcon_j2ei0_k$() { + return this.closeIcon; + } + get_closeText_j9h24_k$() { + return this.closeText; + } + get_openTextV2_e5st8k_k$() { + return this.openTextV2; + } + get_closeTextV2_h041mg_k$() { + return this.closeTextV2; + } + get_onlyIcon_503dvy_k$() { + return this.onlyIcon; + } + get_onlyText_50agg2_k$() { + return this.onlyText; + } + get_openIconV2_jek43c_k$() { + return this.openIconV2; + } + get_closeIconV2_brcqro_k$() { + return this.closeIconV2; + } + component1_7eebsc_k$() { + return this.openIcon; + } + component2_7eebsb_k$() { + return this.openText; + } + component3_7eebsa_k$() { + return this.closeIcon; + } + component4_7eebs9_k$() { + return this.closeText; + } + component5_7eebs8_k$() { + return this.openTextV2; + } + component6_7eebs7_k$() { + return this.closeTextV2; + } + component7_7eebs6_k$() { + return this.onlyIcon; + } + component8_7eebs5_k$() { + return this.onlyText; + } + component9_7eebs4_k$() { + return this.openIconV2; + } + component10_gazzfo_k$() { + return this.closeIconV2; + } + copy_7p1mrv_k$(openIcon, openText, closeIcon, closeText, openTextV2, closeTextV2, onlyIcon, onlyText, openIconV2, closeIconV2) { + return new KThreePointAutoPlay(openIcon, openText, closeIcon, closeText, openTextV2, closeTextV2, onlyIcon, onlyText, openIconV2, closeIconV2); + } + copy(openIcon, openText, closeIcon, closeText, openTextV2, closeTextV2, onlyIcon, onlyText, openIconV2, closeIconV2, $super) { + openIcon = openIcon === VOID ? this.openIcon : openIcon; + openText = openText === VOID ? this.openText : openText; + closeIcon = closeIcon === VOID ? this.closeIcon : closeIcon; + closeText = closeText === VOID ? this.closeText : closeText; + openTextV2 = openTextV2 === VOID ? this.openTextV2 : openTextV2; + closeTextV2 = closeTextV2 === VOID ? this.closeTextV2 : closeTextV2; + onlyIcon = onlyIcon === VOID ? this.onlyIcon : onlyIcon; + onlyText = onlyText === VOID ? this.onlyText : onlyText; + openIconV2 = openIconV2 === VOID ? this.openIconV2 : openIconV2; + closeIconV2 = closeIconV2 === VOID ? this.closeIconV2 : closeIconV2; + return this.copy_7p1mrv_k$(openIcon, openText, closeIcon, closeText, openTextV2, closeTextV2, onlyIcon, onlyText, openIconV2, closeIconV2); + } + toString() { + return 'KThreePointAutoPlay(openIcon=' + this.openIcon + ', openText=' + this.openText + ', closeIcon=' + this.closeIcon + ', closeText=' + this.closeText + ', openTextV2=' + this.openTextV2 + ', closeTextV2=' + this.closeTextV2 + ', onlyIcon=' + this.onlyIcon + ', onlyText=' + this.onlyText + ', openIconV2=' + this.openIconV2 + ', closeIconV2=' + this.closeIconV2 + ')'; + } + hashCode() { + var result = getStringHashCode(this.openIcon); + result = imul(result, 31) + getStringHashCode(this.openText) | 0; + result = imul(result, 31) + getStringHashCode(this.closeIcon) | 0; + result = imul(result, 31) + getStringHashCode(this.closeText) | 0; + result = imul(result, 31) + getStringHashCode(this.openTextV2) | 0; + result = imul(result, 31) + getStringHashCode(this.closeTextV2) | 0; + result = imul(result, 31) + getStringHashCode(this.onlyIcon) | 0; + result = imul(result, 31) + getStringHashCode(this.onlyText) | 0; + result = imul(result, 31) + getStringHashCode(this.openIconV2) | 0; + result = imul(result, 31) + getStringHashCode(this.closeIconV2) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KThreePointAutoPlay)) + return false; + var tmp0_other_with_cast = other instanceof KThreePointAutoPlay ? other : THROW_CCE(); + if (!(this.openIcon === tmp0_other_with_cast.openIcon)) + return false; + if (!(this.openText === tmp0_other_with_cast.openText)) + return false; + if (!(this.closeIcon === tmp0_other_with_cast.closeIcon)) + return false; + if (!(this.closeText === tmp0_other_with_cast.closeText)) + return false; + if (!(this.openTextV2 === tmp0_other_with_cast.openTextV2)) + return false; + if (!(this.closeTextV2 === tmp0_other_with_cast.closeTextV2)) + return false; + if (!(this.onlyIcon === tmp0_other_with_cast.onlyIcon)) + return false; + if (!(this.onlyText === tmp0_other_with_cast.onlyText)) + return false; + if (!(this.openIconV2 === tmp0_other_with_cast.openIconV2)) + return false; + if (!(this.closeIconV2 === tmp0_other_with_cast.closeIconV2)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KThreePointAutoPlay_1f4iez_k$(seen1, openIcon, openText, closeIcon, closeText, openTextV2, closeTextV2, onlyIcon, onlyText, openIconV2, closeIconV2, serializationConstructorMarker) { + Companion_instance_988; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_975().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.openIcon = ''; + else + $this.openIcon = openIcon; + if (0 === (seen1 & 2)) + $this.openText = ''; + else + $this.openText = openText; + if (0 === (seen1 & 4)) + $this.closeIcon = ''; + else + $this.closeIcon = closeIcon; + if (0 === (seen1 & 8)) + $this.closeText = ''; + else + $this.closeText = closeText; + if (0 === (seen1 & 16)) + $this.openTextV2 = ''; + else + $this.openTextV2 = openTextV2; + if (0 === (seen1 & 32)) + $this.closeTextV2 = ''; + else + $this.closeTextV2 = closeTextV2; + if (0 === (seen1 & 64)) + $this.onlyIcon = ''; + else + $this.onlyIcon = onlyIcon; + if (0 === (seen1 & 128)) + $this.onlyText = ''; + else + $this.onlyText = onlyText; + if (0 === (seen1 & 256)) + $this.openIconV2 = ''; + else + $this.openIconV2 = openIconV2; + if (0 === (seen1 & 512)) + $this.closeIconV2 = ''; + else + $this.closeIconV2 = closeIconV2; + return $this; + } + } + class Companion_989 { + constructor() { + Companion_instance_989 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, new ArrayListSerializer($serializer_getInstance_978()), null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.ThreePointShare'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_976(); + } + } + class $serializer_976 { + constructor() { + $serializer_instance_976 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KThreePointShare', this, 5); + tmp0_serialDesc.addElement_5pzumi_k$('icon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('channel', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('channelName', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('reserve', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_989().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), tmp0_cached[2], StringSerializer_getInstance(), get_nullable($serializer_getInstance_977())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp10_cached = Companion_getInstance_989().$childSerializers_1; + if (tmp9_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp9_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp10_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_977(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + } else + while (tmp1_flag) { + tmp2_index = tmp9_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp9_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp10_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_977(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp9_input.endStructure_1xqz0n_k$(tmp0_desc); + return KThreePointShare.new_com_bapis_bilibili_app_dynamic_v2_KThreePointShare_55aqf1_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); + } + serialize_hzxaa7_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_989().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.icon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.icon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !equals(value.channel, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 2, tmp2_cached[2], value.channel); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.channelName === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.channelName); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.reserve == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, $serializer_getInstance_977(), value.reserve); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_hzxaa7_k$(encoder, value instanceof KThreePointShare ? value : THROW_CCE()); + } + } + class KThreePointShare { + constructor(icon, title, channel, channelName, reserve) { + Companion_getInstance_989(); + icon = icon === VOID ? '' : icon; + title = title === VOID ? '' : title; + channel = channel === VOID ? emptyList() : channel; + channelName = channelName === VOID ? '' : channelName; + reserve = reserve === VOID ? null : reserve; + this.icon = icon; + this.title = title; + this.channel = channel; + this.channelName = channelName; + this.reserve = reserve; + } + get_icon_wont8i_k$() { + return this.icon; + } + get_title_iz32un_k$() { + return this.title; + } + get_channel_dhi7tm_k$() { + return this.channel; + } + get_channelName_ifb0lh_k$() { + return this.channelName; + } + get_reserve_jeq383_k$() { + return this.reserve; + } + component1_7eebsc_k$() { + return this.icon; + } + component2_7eebsb_k$() { + return this.title; + } + component3_7eebsa_k$() { + return this.channel; + } + component4_7eebs9_k$() { + return this.channelName; + } + component5_7eebs8_k$() { + return this.reserve; + } + copy_k4q20h_k$(icon, title, channel, channelName, reserve) { + return new KThreePointShare(icon, title, channel, channelName, reserve); + } + copy(icon, title, channel, channelName, reserve, $super) { + icon = icon === VOID ? this.icon : icon; + title = title === VOID ? this.title : title; + channel = channel === VOID ? this.channel : channel; + channelName = channelName === VOID ? this.channelName : channelName; + reserve = reserve === VOID ? this.reserve : reserve; + return this.copy_k4q20h_k$(icon, title, channel, channelName, reserve); + } + toString() { + return 'KThreePointShare(icon=' + this.icon + ', title=' + this.title + ', channel=' + this.channel + ', channelName=' + this.channelName + ', reserve=' + this.reserve + ')'; + } + hashCode() { + var result = getStringHashCode(this.icon); + result = imul(result, 31) + getStringHashCode(this.title) | 0; + result = imul(result, 31) + hashCode(this.channel) | 0; + result = imul(result, 31) + getStringHashCode(this.channelName) | 0; + result = imul(result, 31) + (this.reserve == null ? 0 : this.reserve.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KThreePointShare)) + return false; + var tmp0_other_with_cast = other instanceof KThreePointShare ? other : THROW_CCE(); + if (!(this.icon === tmp0_other_with_cast.icon)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!equals(this.channel, tmp0_other_with_cast.channel)) + return false; + if (!(this.channelName === tmp0_other_with_cast.channelName)) + return false; + if (!equals(this.reserve, tmp0_other_with_cast.reserve)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KThreePointShare_55aqf1_k$(seen1, icon, title, channel, channelName, reserve, serializationConstructorMarker) { + Companion_getInstance_989(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_976().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.icon = ''; + else + $this.icon = icon; + if (0 === (seen1 & 2)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 4)) + $this.channel = emptyList(); + else + $this.channel = channel; + if (0 === (seen1 & 8)) + $this.channelName = ''; + else + $this.channelName = channelName; + if (0 === (seen1 & 16)) + $this.reserve = null; + else + $this.reserve = reserve; + return $this; + } + } + class Companion_990 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.ShareReserve'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_977(); + } + } + class $serializer_977 { + constructor() { + $serializer_instance_977 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KShareReserve', this, 6); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('desc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('qrCodeIcon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('qrCodeText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('qrCodeUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('userInfo', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_1114())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp10_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_1114(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + } else + while (tmp1_flag) { + tmp2_index = tmp10_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_1114(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp10_input.endStructure_1xqz0n_k$(tmp0_desc); + return KShareReserve.new_com_bapis_bilibili_app_dynamic_v2_KShareReserve_7o088l_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); + } + serialize_ctmggj_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.desc === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.desc); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.qrCodeIcon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.qrCodeIcon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.qrCodeText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.qrCodeText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.qrCodeUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.qrCodeUrl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.userInfo == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 5, $serializer_getInstance_1114(), value.userInfo); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_ctmggj_k$(encoder, value instanceof KShareReserve ? value : THROW_CCE()); + } + } + class KShareReserve { + constructor(title, desc, qrCodeIcon, qrCodeText, qrCodeUrl, userInfo) { + Companion_instance_990; + title = title === VOID ? '' : title; + desc = desc === VOID ? '' : desc; + qrCodeIcon = qrCodeIcon === VOID ? '' : qrCodeIcon; + qrCodeText = qrCodeText === VOID ? '' : qrCodeText; + qrCodeUrl = qrCodeUrl === VOID ? '' : qrCodeUrl; + userInfo = userInfo === VOID ? null : userInfo; + this.title = title; + this.desc = desc; + this.qrCodeIcon = qrCodeIcon; + this.qrCodeText = qrCodeText; + this.qrCodeUrl = qrCodeUrl; + this.userInfo = userInfo; + } + get_title_iz32un_k$() { + return this.title; + } + get_desc_woknve_k$() { + return this.desc; + } + get_qrCodeIcon_r9ptcg_k$() { + return this.qrCodeIcon; + } + get_qrCodeText_r9wvwk_k$() { + return this.qrCodeText; + } + get_qrCodeUrl_uo0gu0_k$() { + return this.qrCodeUrl; + } + get_userInfo_ytbsgy_k$() { + return this.userInfo; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.desc; + } + component3_7eebsa_k$() { + return this.qrCodeIcon; + } + component4_7eebs9_k$() { + return this.qrCodeText; + } + component5_7eebs8_k$() { + return this.qrCodeUrl; + } + component6_7eebs7_k$() { + return this.userInfo; + } + copy_zfgouy_k$(title, desc, qrCodeIcon, qrCodeText, qrCodeUrl, userInfo) { + return new KShareReserve(title, desc, qrCodeIcon, qrCodeText, qrCodeUrl, userInfo); + } + copy(title, desc, qrCodeIcon, qrCodeText, qrCodeUrl, userInfo, $super) { + title = title === VOID ? this.title : title; + desc = desc === VOID ? this.desc : desc; + qrCodeIcon = qrCodeIcon === VOID ? this.qrCodeIcon : qrCodeIcon; + qrCodeText = qrCodeText === VOID ? this.qrCodeText : qrCodeText; + qrCodeUrl = qrCodeUrl === VOID ? this.qrCodeUrl : qrCodeUrl; + userInfo = userInfo === VOID ? this.userInfo : userInfo; + return this.copy_zfgouy_k$(title, desc, qrCodeIcon, qrCodeText, qrCodeUrl, userInfo); + } + toString() { + return 'KShareReserve(title=' + this.title + ', desc=' + this.desc + ', qrCodeIcon=' + this.qrCodeIcon + ', qrCodeText=' + this.qrCodeText + ', qrCodeUrl=' + this.qrCodeUrl + ', userInfo=' + this.userInfo + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.desc) | 0; + result = imul(result, 31) + getStringHashCode(this.qrCodeIcon) | 0; + result = imul(result, 31) + getStringHashCode(this.qrCodeText) | 0; + result = imul(result, 31) + getStringHashCode(this.qrCodeUrl) | 0; + result = imul(result, 31) + (this.userInfo == null ? 0 : this.userInfo.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KShareReserve)) + return false; + var tmp0_other_with_cast = other instanceof KShareReserve ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.desc === tmp0_other_with_cast.desc)) + return false; + if (!(this.qrCodeIcon === tmp0_other_with_cast.qrCodeIcon)) + return false; + if (!(this.qrCodeText === tmp0_other_with_cast.qrCodeText)) + return false; + if (!(this.qrCodeUrl === tmp0_other_with_cast.qrCodeUrl)) + return false; + if (!equals(this.userInfo, tmp0_other_with_cast.userInfo)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KShareReserve_7o088l_k$(seen1, title, desc, qrCodeIcon, qrCodeText, qrCodeUrl, userInfo, serializationConstructorMarker) { + Companion_instance_990; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_977().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.desc = ''; + else + $this.desc = desc; + if (0 === (seen1 & 4)) + $this.qrCodeIcon = ''; + else + $this.qrCodeIcon = qrCodeIcon; + if (0 === (seen1 & 8)) + $this.qrCodeText = ''; + else + $this.qrCodeText = qrCodeText; + if (0 === (seen1 & 16)) + $this.qrCodeUrl = ''; + else + $this.qrCodeUrl = qrCodeUrl; + if (0 === (seen1 & 32)) + $this.userInfo = null; + else + $this.userInfo = userInfo; + return $this; + } + } + class Companion_991 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.ThreePointShareChannel'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_978(); + } + } + class $serializer_978 { + constructor() { + $serializer_instance_978 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KThreePointShareChannel', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('icon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KThreePointShareChannel.new_com_bapis_bilibili_app_dynamic_v2_KThreePointShareChannel_rkpyt8_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_et76lo_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.icon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.icon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.title); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_et76lo_k$(encoder, value instanceof KThreePointShareChannel ? value : THROW_CCE()); + } + } + class KThreePointShareChannel { + constructor(icon, title) { + Companion_instance_991; + icon = icon === VOID ? '' : icon; + title = title === VOID ? '' : title; + this.icon = icon; + this.title = title; + } + get_icon_wont8i_k$() { + return this.icon; + } + get_title_iz32un_k$() { + return this.title; + } + component1_7eebsc_k$() { + return this.icon; + } + component2_7eebsb_k$() { + return this.title; + } + copy_plwnsl_k$(icon, title) { + return new KThreePointShareChannel(icon, title); + } + copy(icon, title, $super) { + icon = icon === VOID ? this.icon : icon; + title = title === VOID ? this.title : title; + return this.copy_plwnsl_k$(icon, title); + } + toString() { + return 'KThreePointShareChannel(icon=' + this.icon + ', title=' + this.title + ')'; + } + hashCode() { + var result = getStringHashCode(this.icon); + result = imul(result, 31) + getStringHashCode(this.title) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KThreePointShareChannel)) + return false; + var tmp0_other_with_cast = other instanceof KThreePointShareChannel ? other : THROW_CCE(); + if (!(this.icon === tmp0_other_with_cast.icon)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KThreePointShareChannel_rkpyt8_k$(seen1, icon, title, serializationConstructorMarker) { + Companion_instance_991; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_978().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.icon = ''; + else + $this.icon = icon; + if (0 === (seen1 & 2)) + $this.title = ''; + else + $this.title = title; + return $this; + } + } + class Companion_992 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.ThreePointAttention'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_979(); + } + } + class $serializer_979 { + constructor() { + $serializer_instance_979 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KThreePointAttention', this, 6); + tmp0_serialDesc.addElement_5pzumi_k$('attentionIcon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('attentionText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('notAttentionIcon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('notAttentionText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('status', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('subscribeOid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = 0; + var tmp9_local5 = null; + var tmp10_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp10_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + } else + while (tmp1_flag) { + tmp2_index = tmp10_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp10_input.endStructure_1xqz0n_k$(tmp0_desc); + return KThreePointAttention.new_com_bapis_bilibili_app_dynamic_v2_KThreePointAttention_qb7555_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); + } + serialize_lfx2a8_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.attentionIcon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.attentionIcon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.attentionText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.attentionText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.notAttentionIcon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.notAttentionIcon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.notAttentionText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.notAttentionText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.status === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 4, value.status); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.subscribeOid === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.subscribeOid); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_lfx2a8_k$(encoder, value instanceof KThreePointAttention ? value : THROW_CCE()); + } + } + class KThreePointAttention { + constructor(attentionIcon, attentionText, notAttentionIcon, notAttentionText, status, subscribeOid) { + Companion_instance_992; + attentionIcon = attentionIcon === VOID ? '' : attentionIcon; + attentionText = attentionText === VOID ? '' : attentionText; + notAttentionIcon = notAttentionIcon === VOID ? '' : notAttentionIcon; + notAttentionText = notAttentionText === VOID ? '' : notAttentionText; + status = status === VOID ? 0 : status; + subscribeOid = subscribeOid === VOID ? '' : subscribeOid; + this.attentionIcon = attentionIcon; + this.attentionText = attentionText; + this.notAttentionIcon = notAttentionIcon; + this.notAttentionText = notAttentionText; + this.status = status; + this.subscribeOid = subscribeOid; + } + get_attentionIcon_51efea_k$() { + return this.attentionIcon; + } + get_attentionText_517cu6_k$() { + return this.attentionText; + } + get_notAttentionIcon_kwvfdf_k$() { + return this.notAttentionIcon; + } + get_notAttentionText_kwoctb_k$() { + return this.notAttentionText; + } + get_status_jnf6d7_k$() { + return this.status; + } + get_subscribeOid_9yq8a1_k$() { + return this.subscribeOid; + } + statusEnum() { + return Companion_getInstance_946().fromValue(this.status); + } + component1_7eebsc_k$() { + return this.attentionIcon; + } + component2_7eebsb_k$() { + return this.attentionText; + } + component3_7eebsa_k$() { + return this.notAttentionIcon; + } + component4_7eebs9_k$() { + return this.notAttentionText; + } + component5_7eebs8_k$() { + return this.status; + } + component6_7eebs7_k$() { + return this.subscribeOid; + } + copy_byffl5_k$(attentionIcon, attentionText, notAttentionIcon, notAttentionText, status, subscribeOid) { + return new KThreePointAttention(attentionIcon, attentionText, notAttentionIcon, notAttentionText, status, subscribeOid); + } + copy(attentionIcon, attentionText, notAttentionIcon, notAttentionText, status, subscribeOid, $super) { + attentionIcon = attentionIcon === VOID ? this.attentionIcon : attentionIcon; + attentionText = attentionText === VOID ? this.attentionText : attentionText; + notAttentionIcon = notAttentionIcon === VOID ? this.notAttentionIcon : notAttentionIcon; + notAttentionText = notAttentionText === VOID ? this.notAttentionText : notAttentionText; + status = status === VOID ? this.status : status; + subscribeOid = subscribeOid === VOID ? this.subscribeOid : subscribeOid; + return this.copy_byffl5_k$(attentionIcon, attentionText, notAttentionIcon, notAttentionText, status, subscribeOid); + } + toString() { + return 'KThreePointAttention(attentionIcon=' + this.attentionIcon + ', attentionText=' + this.attentionText + ', notAttentionIcon=' + this.notAttentionIcon + ', notAttentionText=' + this.notAttentionText + ', status=' + this.status + ', subscribeOid=' + this.subscribeOid + ')'; + } + hashCode() { + var result = getStringHashCode(this.attentionIcon); + result = imul(result, 31) + getStringHashCode(this.attentionText) | 0; + result = imul(result, 31) + getStringHashCode(this.notAttentionIcon) | 0; + result = imul(result, 31) + getStringHashCode(this.notAttentionText) | 0; + result = imul(result, 31) + this.status | 0; + result = imul(result, 31) + getStringHashCode(this.subscribeOid) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KThreePointAttention)) + return false; + var tmp0_other_with_cast = other instanceof KThreePointAttention ? other : THROW_CCE(); + if (!(this.attentionIcon === tmp0_other_with_cast.attentionIcon)) + return false; + if (!(this.attentionText === tmp0_other_with_cast.attentionText)) + return false; + if (!(this.notAttentionIcon === tmp0_other_with_cast.notAttentionIcon)) + return false; + if (!(this.notAttentionText === tmp0_other_with_cast.notAttentionText)) + return false; + if (!(this.status === tmp0_other_with_cast.status)) + return false; + if (!(this.subscribeOid === tmp0_other_with_cast.subscribeOid)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KThreePointAttention_qb7555_k$(seen1, attentionIcon, attentionText, notAttentionIcon, notAttentionText, status, subscribeOid, serializationConstructorMarker) { + Companion_instance_992; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_979().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.attentionIcon = ''; + else + $this.attentionIcon = attentionIcon; + if (0 === (seen1 & 2)) + $this.attentionText = ''; + else + $this.attentionText = attentionText; + if (0 === (seen1 & 4)) + $this.notAttentionIcon = ''; + else + $this.notAttentionIcon = notAttentionIcon; + if (0 === (seen1 & 8)) + $this.notAttentionText = ''; + else + $this.notAttentionText = notAttentionText; + if (0 === (seen1 & 16)) + $this.status = 0; + else + $this.status = status; + if (0 === (seen1 & 32)) + $this.subscribeOid = ''; + else + $this.subscribeOid = subscribeOid; + return $this; + } + } + class Companion_993 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.ThreePointWait'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_980(); + } + } + class $serializer_980 { + constructor() { + $serializer_instance_980 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KThreePointWait', this, 5); + tmp0_serialDesc.addElement_5pzumi_k$('additionIcon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('additionText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('noAdditionIcon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('noAdditionText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('id', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = new Long(0, 0); + var tmp9_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp9_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + } else + while (tmp1_flag) { + tmp2_index = tmp9_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp9_input.endStructure_1xqz0n_k$(tmp0_desc); + return KThreePointWait.new_com_bapis_bilibili_app_dynamic_v2_KThreePointWait_bbmf3v_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); + } + serialize_wpchlp_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.additionIcon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.additionIcon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.additionText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.additionText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.noAdditionIcon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.noAdditionIcon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.noAdditionText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.noAdditionText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !value.id.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 4, value.id); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_wpchlp_k$(encoder, value instanceof KThreePointWait ? value : THROW_CCE()); + } + } + class KThreePointWait { + constructor(additionIcon, additionText, noAdditionIcon, noAdditionText, id) { + Companion_instance_993; + additionIcon = additionIcon === VOID ? '' : additionIcon; + additionText = additionText === VOID ? '' : additionText; + noAdditionIcon = noAdditionIcon === VOID ? '' : noAdditionIcon; + noAdditionText = noAdditionText === VOID ? '' : noAdditionText; + id = id === VOID ? new Long(0, 0) : id; + this.additionIcon = additionIcon; + this.additionText = additionText; + this.noAdditionIcon = noAdditionIcon; + this.noAdditionText = noAdditionText; + this.id = id; + } + get_additionIcon_6fa4gy_k$() { + return this.additionIcon; + } + get_additionText_6f31wu_k$() { + return this.additionText; + } + get_noAdditionIcon_cledq9_k$() { + return this.noAdditionIcon; + } + get_noAdditionText_cl7b65_k$() { + return this.noAdditionText; + } + get_id_kntnx8_k$() { + return this.id; + } + component1_7eebsc_k$() { + return this.additionIcon; + } + component2_7eebsb_k$() { + return this.additionText; + } + component3_7eebsa_k$() { + return this.noAdditionIcon; + } + component4_7eebs9_k$() { + return this.noAdditionText; + } + component5_7eebs8_k$() { + return this.id; + } + copy_dyy3il_k$(additionIcon, additionText, noAdditionIcon, noAdditionText, id) { + return new KThreePointWait(additionIcon, additionText, noAdditionIcon, noAdditionText, id); + } + copy(additionIcon, additionText, noAdditionIcon, noAdditionText, id, $super) { + additionIcon = additionIcon === VOID ? this.additionIcon : additionIcon; + additionText = additionText === VOID ? this.additionText : additionText; + noAdditionIcon = noAdditionIcon === VOID ? this.noAdditionIcon : noAdditionIcon; + noAdditionText = noAdditionText === VOID ? this.noAdditionText : noAdditionText; + id = id === VOID ? this.id : id; + return this.copy_dyy3il_k$(additionIcon, additionText, noAdditionIcon, noAdditionText, id); + } + toString() { + return 'KThreePointWait(additionIcon=' + this.additionIcon + ', additionText=' + this.additionText + ', noAdditionIcon=' + this.noAdditionIcon + ', noAdditionText=' + this.noAdditionText + ', id=' + this.id.toString() + ')'; + } + hashCode() { + var result = getStringHashCode(this.additionIcon); + result = imul(result, 31) + getStringHashCode(this.additionText) | 0; + result = imul(result, 31) + getStringHashCode(this.noAdditionIcon) | 0; + result = imul(result, 31) + getStringHashCode(this.noAdditionText) | 0; + result = imul(result, 31) + this.id.hashCode() | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KThreePointWait)) + return false; + var tmp0_other_with_cast = other instanceof KThreePointWait ? other : THROW_CCE(); + if (!(this.additionIcon === tmp0_other_with_cast.additionIcon)) + return false; + if (!(this.additionText === tmp0_other_with_cast.additionText)) + return false; + if (!(this.noAdditionIcon === tmp0_other_with_cast.noAdditionIcon)) + return false; + if (!(this.noAdditionText === tmp0_other_with_cast.noAdditionText)) + return false; + if (!this.id.equals(tmp0_other_with_cast.id)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KThreePointWait_bbmf3v_k$(seen1, additionIcon, additionText, noAdditionIcon, noAdditionText, id, serializationConstructorMarker) { + Companion_instance_993; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_980().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.additionIcon = ''; + else + $this.additionIcon = additionIcon; + if (0 === (seen1 & 2)) + $this.additionText = ''; + else + $this.additionText = additionText; + if (0 === (seen1 & 4)) + $this.noAdditionIcon = ''; + else + $this.noAdditionIcon = noAdditionIcon; + if (0 === (seen1 & 8)) + $this.noAdditionText = ''; + else + $this.noAdditionText = noAdditionText; + if (0 === (seen1 & 16)) + $this.id = new Long(0, 0); + else + $this.id = id; + return $this; + } + } + class Companion_994 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.ThreePointDislike'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_981(); + } + } + class $serializer_981 { + constructor() { + $serializer_instance_981 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KThreePointDislike', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('icon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KThreePointDislike.new_com_bapis_bilibili_app_dynamic_v2_KThreePointDislike_53helz_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_8jw8eh_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.icon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.icon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.title); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_8jw8eh_k$(encoder, value instanceof KThreePointDislike ? value : THROW_CCE()); + } + } + class KThreePointDislike { + constructor(icon, title) { + Companion_instance_994; + icon = icon === VOID ? '' : icon; + title = title === VOID ? '' : title; + this.icon = icon; + this.title = title; + } + get_icon_wont8i_k$() { + return this.icon; + } + get_title_iz32un_k$() { + return this.title; + } + component1_7eebsc_k$() { + return this.icon; + } + component2_7eebsb_k$() { + return this.title; + } + copy_plwnsl_k$(icon, title) { + return new KThreePointDislike(icon, title); + } + copy(icon, title, $super) { + icon = icon === VOID ? this.icon : icon; + title = title === VOID ? this.title : title; + return this.copy_plwnsl_k$(icon, title); + } + toString() { + return 'KThreePointDislike(icon=' + this.icon + ', title=' + this.title + ')'; + } + hashCode() { + var result = getStringHashCode(this.icon); + result = imul(result, 31) + getStringHashCode(this.title) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KThreePointDislike)) + return false; + var tmp0_other_with_cast = other instanceof KThreePointDislike ? other : THROW_CCE(); + if (!(this.icon === tmp0_other_with_cast.icon)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KThreePointDislike_53helz_k$(seen1, icon, title, serializationConstructorMarker) { + Companion_instance_994; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_981().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.icon = ''; + else + $this.icon = icon; + if (0 === (seen1 & 2)) + $this.title = ''; + else + $this.title = title; + return $this; + } + } + class Companion_995 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.ThreePointFavorite'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_982(); + } + } + class $serializer_982 { + constructor() { + $serializer_instance_982 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KThreePointFavorite', this, 6); + tmp0_serialDesc.addElement_5pzumi_k$('icon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('id', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('isFavourite', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('cancelIcon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('cancelTitle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), BooleanSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = new Long(0, 0); + var tmp7_local3 = false; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp10_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp10_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + } else + while (tmp1_flag) { + tmp2_index = tmp10_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp10_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp10_input.endStructure_1xqz0n_k$(tmp0_desc); + return KThreePointFavorite.new_com_bapis_bilibili_app_dynamic_v2_KThreePointFavorite_kdnjq5_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); + } + serialize_jfk1jw_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.icon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.icon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.id.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.id); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.isFavourite === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 3, value.isFavourite); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.cancelIcon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.cancelIcon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.cancelTitle === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.cancelTitle); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_jfk1jw_k$(encoder, value instanceof KThreePointFavorite ? value : THROW_CCE()); + } + } + class KThreePointFavorite { + constructor(icon, title, id, isFavourite, cancelIcon, cancelTitle) { + Companion_instance_995; + icon = icon === VOID ? '' : icon; + title = title === VOID ? '' : title; + id = id === VOID ? new Long(0, 0) : id; + isFavourite = isFavourite === VOID ? false : isFavourite; + cancelIcon = cancelIcon === VOID ? '' : cancelIcon; + cancelTitle = cancelTitle === VOID ? '' : cancelTitle; + this.icon = icon; + this.title = title; + this.id = id; + this.isFavourite = isFavourite; + this.cancelIcon = cancelIcon; + this.cancelTitle = cancelTitle; + } + get_icon_wont8i_k$() { + return this.icon; + } + get_title_iz32un_k$() { + return this.title; + } + get_id_kntnx8_k$() { + return this.id; + } + get_isFavourite_3wpwza_k$() { + return this.isFavourite; + } + get_cancelIcon_b1zlwc_k$() { + return this.cancelIcon; + } + get_cancelTitle_c9qquj_k$() { + return this.cancelTitle; + } + component1_7eebsc_k$() { + return this.icon; + } + component2_7eebsb_k$() { + return this.title; + } + component3_7eebsa_k$() { + return this.id; + } + component4_7eebs9_k$() { + return this.isFavourite; + } + component5_7eebs8_k$() { + return this.cancelIcon; + } + component6_7eebs7_k$() { + return this.cancelTitle; + } + copy_zi7iq_k$(icon, title, id, isFavourite, cancelIcon, cancelTitle) { + return new KThreePointFavorite(icon, title, id, isFavourite, cancelIcon, cancelTitle); + } + copy(icon, title, id, isFavourite, cancelIcon, cancelTitle, $super) { + icon = icon === VOID ? this.icon : icon; + title = title === VOID ? this.title : title; + id = id === VOID ? this.id : id; + isFavourite = isFavourite === VOID ? this.isFavourite : isFavourite; + cancelIcon = cancelIcon === VOID ? this.cancelIcon : cancelIcon; + cancelTitle = cancelTitle === VOID ? this.cancelTitle : cancelTitle; + return this.copy_zi7iq_k$(icon, title, id, isFavourite, cancelIcon, cancelTitle); + } + toString() { + return 'KThreePointFavorite(icon=' + this.icon + ', title=' + this.title + ', id=' + this.id.toString() + ', isFavourite=' + this.isFavourite + ', cancelIcon=' + this.cancelIcon + ', cancelTitle=' + this.cancelTitle + ')'; + } + hashCode() { + var result = getStringHashCode(this.icon); + result = imul(result, 31) + getStringHashCode(this.title) | 0; + result = imul(result, 31) + this.id.hashCode() | 0; + result = imul(result, 31) + getBooleanHashCode(this.isFavourite) | 0; + result = imul(result, 31) + getStringHashCode(this.cancelIcon) | 0; + result = imul(result, 31) + getStringHashCode(this.cancelTitle) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KThreePointFavorite)) + return false; + var tmp0_other_with_cast = other instanceof KThreePointFavorite ? other : THROW_CCE(); + if (!(this.icon === tmp0_other_with_cast.icon)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!this.id.equals(tmp0_other_with_cast.id)) + return false; + if (!(this.isFavourite === tmp0_other_with_cast.isFavourite)) + return false; + if (!(this.cancelIcon === tmp0_other_with_cast.cancelIcon)) + return false; + if (!(this.cancelTitle === tmp0_other_with_cast.cancelTitle)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KThreePointFavorite_kdnjq5_k$(seen1, icon, title, id, isFavourite, cancelIcon, cancelTitle, serializationConstructorMarker) { + Companion_instance_995; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_982().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.icon = ''; + else + $this.icon = icon; + if (0 === (seen1 & 2)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 4)) + $this.id = new Long(0, 0); + else + $this.id = id; + if (0 === (seen1 & 8)) + $this.isFavourite = false; + else + $this.isFavourite = isFavourite; + if (0 === (seen1 & 16)) + $this.cancelIcon = ''; + else + $this.cancelIcon = cancelIcon; + if (0 === (seen1 & 32)) + $this.cancelTitle = ''; + else + $this.cancelTitle = cancelTitle; + return $this; + } + } + class Companion_996 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.ThreePointTop'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_983(); + } + } + class $serializer_983 { + constructor() { + $serializer_instance_983 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KThreePointTop', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('icon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = 0; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KThreePointTop.new_com_bapis_bilibili_app_dynamic_v2_KThreePointTop_dde9vr_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_8zpbdl_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.icon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.icon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.type === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.type); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_8zpbdl_k$(encoder, value instanceof KThreePointTop ? value : THROW_CCE()); + } + } + class KThreePointTop { + constructor(icon, title, type) { + Companion_instance_996; + icon = icon === VOID ? '' : icon; + title = title === VOID ? '' : title; + type = type === VOID ? 0 : type; + this.icon = icon; + this.title = title; + this.type = type; + } + get_icon_wont8i_k$() { + return this.icon; + } + get_title_iz32un_k$() { + return this.title; + } + get_type_wovaf7_k$() { + return this.type; + } + typeEnum() { + return Companion_getInstance_947().fromValue(this.type); + } + component1_7eebsc_k$() { + return this.icon; + } + component2_7eebsb_k$() { + return this.title; + } + component3_7eebsa_k$() { + return this.type; + } + copy_spspqb_k$(icon, title, type) { + return new KThreePointTop(icon, title, type); + } + copy(icon, title, type, $super) { + icon = icon === VOID ? this.icon : icon; + title = title === VOID ? this.title : title; + type = type === VOID ? this.type : type; + return this.copy_spspqb_k$(icon, title, type); + } + toString() { + return 'KThreePointTop(icon=' + this.icon + ', title=' + this.title + ', type=' + this.type + ')'; + } + hashCode() { + var result = getStringHashCode(this.icon); + result = imul(result, 31) + getStringHashCode(this.title) | 0; + result = imul(result, 31) + this.type | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KThreePointTop)) + return false; + var tmp0_other_with_cast = other instanceof KThreePointTop ? other : THROW_CCE(); + if (!(this.icon === tmp0_other_with_cast.icon)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.type === tmp0_other_with_cast.type)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KThreePointTop_dde9vr_k$(seen1, icon, title, type, serializationConstructorMarker) { + Companion_instance_996; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_983().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.icon = ''; + else + $this.icon = icon; + if (0 === (seen1 & 2)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 4)) + $this.type = 0; + else + $this.type = type; + return $this; + } + } + class Companion_997 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.ThreePointTopicIrrelevant'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_984(); + } + } + class $serializer_984 { + constructor() { + $serializer_instance_984 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KThreePointTopicIrrelevant', this, 7); + tmp0_serialDesc.addElement_5pzumi_k$('icon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('toast', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('topicId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('resId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('resType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('reason', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = new Long(0, 0); + var tmp8_local4 = new Long(0, 0); + var tmp9_local5 = new Long(0, 0); + var tmp10_local6 = null; + var tmp11_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp11_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + } else + while (tmp1_flag) { + tmp2_index = tmp11_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp11_input.endStructure_1xqz0n_k$(tmp0_desc); + return KThreePointTopicIrrelevant.new_com_bapis_bilibili_app_dynamic_v2_KThreePointTopicIrrelevant_w65njn_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, null); + } + serialize_fv4jon_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.icon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.icon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.toast === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.toast); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !value.topicId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 3, value.topicId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !value.resId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 4, value.resId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !value.resType.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 5, value.resType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.reason === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.reason); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_fv4jon_k$(encoder, value instanceof KThreePointTopicIrrelevant ? value : THROW_CCE()); + } + } + class KThreePointTopicIrrelevant { + constructor(icon, title, toast, topicId, resId, resType, reason) { + Companion_instance_997; + icon = icon === VOID ? '' : icon; + title = title === VOID ? '' : title; + toast = toast === VOID ? '' : toast; + topicId = topicId === VOID ? new Long(0, 0) : topicId; + resId = resId === VOID ? new Long(0, 0) : resId; + resType = resType === VOID ? new Long(0, 0) : resType; + reason = reason === VOID ? '' : reason; + this.icon = icon; + this.title = title; + this.toast = toast; + this.topicId = topicId; + this.resId = resId; + this.resType = resType; + this.reason = reason; + } + get_icon_wont8i_k$() { + return this.icon; + } + get_title_iz32un_k$() { + return this.title; + } + get_toast_iz6iv2_k$() { + return this.toast; + } + get_topicId_hkqce7_k$() { + return this.topicId; + } + get_resId_ixww4y_k$() { + return this.resId; + } + get_resType_jefdht_k$() { + return this.resType; + } + get_reason_iy4m6l_k$() { + return this.reason; + } + component1_7eebsc_k$() { + return this.icon; + } + component2_7eebsb_k$() { + return this.title; + } + component3_7eebsa_k$() { + return this.toast; + } + component4_7eebs9_k$() { + return this.topicId; + } + component5_7eebs8_k$() { + return this.resId; + } + component6_7eebs7_k$() { + return this.resType; + } + component7_7eebs6_k$() { + return this.reason; + } + copy_klyih1_k$(icon, title, toast, topicId, resId, resType, reason) { + return new KThreePointTopicIrrelevant(icon, title, toast, topicId, resId, resType, reason); + } + copy(icon, title, toast, topicId, resId, resType, reason, $super) { + icon = icon === VOID ? this.icon : icon; + title = title === VOID ? this.title : title; + toast = toast === VOID ? this.toast : toast; + topicId = topicId === VOID ? this.topicId : topicId; + resId = resId === VOID ? this.resId : resId; + resType = resType === VOID ? this.resType : resType; + reason = reason === VOID ? this.reason : reason; + return this.copy_klyih1_k$(icon, title, toast, topicId, resId, resType, reason); + } + toString() { + return 'KThreePointTopicIrrelevant(icon=' + this.icon + ', title=' + this.title + ', toast=' + this.toast + ', topicId=' + this.topicId.toString() + ', resId=' + this.resId.toString() + ', resType=' + this.resType.toString() + ', reason=' + this.reason + ')'; + } + hashCode() { + var result = getStringHashCode(this.icon); + result = imul(result, 31) + getStringHashCode(this.title) | 0; + result = imul(result, 31) + getStringHashCode(this.toast) | 0; + result = imul(result, 31) + this.topicId.hashCode() | 0; + result = imul(result, 31) + this.resId.hashCode() | 0; + result = imul(result, 31) + this.resType.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.reason) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KThreePointTopicIrrelevant)) + return false; + var tmp0_other_with_cast = other instanceof KThreePointTopicIrrelevant ? other : THROW_CCE(); + if (!(this.icon === tmp0_other_with_cast.icon)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.toast === tmp0_other_with_cast.toast)) + return false; + if (!this.topicId.equals(tmp0_other_with_cast.topicId)) + return false; + if (!this.resId.equals(tmp0_other_with_cast.resId)) + return false; + if (!this.resType.equals(tmp0_other_with_cast.resType)) + return false; + if (!(this.reason === tmp0_other_with_cast.reason)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KThreePointTopicIrrelevant_w65njn_k$(seen1, icon, title, toast, topicId, resId, resType, reason, serializationConstructorMarker) { + Companion_instance_997; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_984().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.icon = ''; + else + $this.icon = icon; + if (0 === (seen1 & 2)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 4)) + $this.toast = ''; + else + $this.toast = toast; + if (0 === (seen1 & 8)) + $this.topicId = new Long(0, 0); + else + $this.topicId = topicId; + if (0 === (seen1 & 16)) + $this.resId = new Long(0, 0); + else + $this.resId = resId; + if (0 === (seen1 & 32)) + $this.resType = new Long(0, 0); + else + $this.resType = resType; + if (0 === (seen1 & 64)) + $this.reason = ''; + else + $this.reason = reason; + return $this; + } + } + class Companion_998 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.ThreePointDynEdit'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_985(); + } + } + class $serializer_985 { + constructor() { + $serializer_instance_985 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KThreePointDynEdit', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('dynId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('originId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('isOriginDeleted', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('url', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), LongSerializer_getInstance(), BooleanSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = new Long(0, 0); + var tmp6_local2 = false; + var tmp7_local3 = null; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KThreePointDynEdit.new_com_bapis_bilibili_app_dynamic_v2_KThreePointDynEdit_gznawt_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_627uid_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.dynId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.dynId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.originId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.originId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.isOriginDeleted === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 2, value.isOriginDeleted); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.url === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.url); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_627uid_k$(encoder, value instanceof KThreePointDynEdit ? value : THROW_CCE()); + } + } + class KThreePointDynEdit { + constructor(dynId, originId, isOriginDeleted, url) { + Companion_instance_998; + dynId = dynId === VOID ? new Long(0, 0) : dynId; + originId = originId === VOID ? new Long(0, 0) : originId; + isOriginDeleted = isOriginDeleted === VOID ? false : isOriginDeleted; + url = url === VOID ? '' : url; + this.dynId = dynId; + this.originId = originId; + this.isOriginDeleted = isOriginDeleted; + this.url = url; + } + get_dynId_iqkfuz_k$() { + return this.dynId; + } + get_originId_8zw28m_k$() { + return this.originId; + } + get_isOriginDeleted_wsj31c_k$() { + return this.isOriginDeleted; + } + get_url_18iuii_k$() { + return this.url; + } + component1_7eebsc_k$() { + return this.dynId; + } + component2_7eebsb_k$() { + return this.originId; + } + component3_7eebsa_k$() { + return this.isOriginDeleted; + } + component4_7eebs9_k$() { + return this.url; + } + copy_ayox46_k$(dynId, originId, isOriginDeleted, url) { + return new KThreePointDynEdit(dynId, originId, isOriginDeleted, url); + } + copy(dynId, originId, isOriginDeleted, url, $super) { + dynId = dynId === VOID ? this.dynId : dynId; + originId = originId === VOID ? this.originId : originId; + isOriginDeleted = isOriginDeleted === VOID ? this.isOriginDeleted : isOriginDeleted; + url = url === VOID ? this.url : url; + return this.copy_ayox46_k$(dynId, originId, isOriginDeleted, url); + } + toString() { + return 'KThreePointDynEdit(dynId=' + this.dynId.toString() + ', originId=' + this.originId.toString() + ', isOriginDeleted=' + this.isOriginDeleted + ', url=' + this.url + ')'; + } + hashCode() { + var result = this.dynId.hashCode(); + result = imul(result, 31) + this.originId.hashCode() | 0; + result = imul(result, 31) + getBooleanHashCode(this.isOriginDeleted) | 0; + result = imul(result, 31) + getStringHashCode(this.url) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KThreePointDynEdit)) + return false; + var tmp0_other_with_cast = other instanceof KThreePointDynEdit ? other : THROW_CCE(); + if (!this.dynId.equals(tmp0_other_with_cast.dynId)) + return false; + if (!this.originId.equals(tmp0_other_with_cast.originId)) + return false; + if (!(this.isOriginDeleted === tmp0_other_with_cast.isOriginDeleted)) + return false; + if (!(this.url === tmp0_other_with_cast.url)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KThreePointDynEdit_gznawt_k$(seen1, dynId, originId, isOriginDeleted, url, serializationConstructorMarker) { + Companion_instance_998; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_985().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.dynId = new Long(0, 0); + else + $this.dynId = dynId; + if (0 === (seen1 & 2)) + $this.originId = new Long(0, 0); + else + $this.originId = originId; + if (0 === (seen1 & 4)) + $this.isOriginDeleted = false; + else + $this.isOriginDeleted = isOriginDeleted; + if (0 === (seen1 & 8)) + $this.url = ''; + else + $this.url = url; + return $this; + } + } + class Companion_999 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.ThreePointDynCoin'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_986(); + } + } + class $serializer_986 { + constructor() { + $serializer_instance_986 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KThreePointDynCoin', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('hadCoin', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('coinNum', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('coinBusiness', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('oid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [BooleanSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = false; + var tmp5_local1 = new Long(0, 0); + var tmp6_local2 = null; + var tmp7_local3 = new Long(0, 0); + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KThreePointDynCoin.new_com_bapis_bilibili_app_dynamic_v2_KThreePointDynCoin_axrbem_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_9o5qsk_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.hadCoin === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 0, value.hadCoin); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.coinNum.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.coinNum); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.coinBusiness === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.coinBusiness); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !value.oid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 3, value.oid); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_9o5qsk_k$(encoder, value instanceof KThreePointDynCoin ? value : THROW_CCE()); + } + } + class KThreePointDynCoin { + constructor(hadCoin, coinNum, coinBusiness, oid) { + Companion_instance_999; + hadCoin = hadCoin === VOID ? false : hadCoin; + coinNum = coinNum === VOID ? new Long(0, 0) : coinNum; + coinBusiness = coinBusiness === VOID ? '' : coinBusiness; + oid = oid === VOID ? new Long(0, 0) : oid; + this.hadCoin = hadCoin; + this.coinNum = coinNum; + this.coinBusiness = coinBusiness; + this.oid = oid; + } + get_hadCoin_cjy6dv_k$() { + return this.hadCoin; + } + get_coinNum_gx79zg_k$() { + return this.coinNum; + } + get_coinBusiness_htvn3u_k$() { + return this.coinBusiness; + } + get_oid_18iz6n_k$() { + return this.oid; + } + component1_7eebsc_k$() { + return this.hadCoin; + } + component2_7eebsb_k$() { + return this.coinNum; + } + component3_7eebsa_k$() { + return this.coinBusiness; + } + component4_7eebs9_k$() { + return this.oid; + } + copy_h6g7py_k$(hadCoin, coinNum, coinBusiness, oid) { + return new KThreePointDynCoin(hadCoin, coinNum, coinBusiness, oid); + } + copy(hadCoin, coinNum, coinBusiness, oid, $super) { + hadCoin = hadCoin === VOID ? this.hadCoin : hadCoin; + coinNum = coinNum === VOID ? this.coinNum : coinNum; + coinBusiness = coinBusiness === VOID ? this.coinBusiness : coinBusiness; + oid = oid === VOID ? this.oid : oid; + return this.copy_h6g7py_k$(hadCoin, coinNum, coinBusiness, oid); + } + toString() { + return 'KThreePointDynCoin(hadCoin=' + this.hadCoin + ', coinNum=' + this.coinNum.toString() + ', coinBusiness=' + this.coinBusiness + ', oid=' + this.oid.toString() + ')'; + } + hashCode() { + var result = getBooleanHashCode(this.hadCoin); + result = imul(result, 31) + this.coinNum.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.coinBusiness) | 0; + result = imul(result, 31) + this.oid.hashCode() | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KThreePointDynCoin)) + return false; + var tmp0_other_with_cast = other instanceof KThreePointDynCoin ? other : THROW_CCE(); + if (!(this.hadCoin === tmp0_other_with_cast.hadCoin)) + return false; + if (!this.coinNum.equals(tmp0_other_with_cast.coinNum)) + return false; + if (!(this.coinBusiness === tmp0_other_with_cast.coinBusiness)) + return false; + if (!this.oid.equals(tmp0_other_with_cast.oid)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KThreePointDynCoin_axrbem_k$(seen1, hadCoin, coinNum, coinBusiness, oid, serializationConstructorMarker) { + Companion_instance_999; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_986().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.hadCoin = false; + else + $this.hadCoin = hadCoin; + if (0 === (seen1 & 2)) + $this.coinNum = new Long(0, 0); + else + $this.coinNum = coinNum; + if (0 === (seen1 & 4)) + $this.coinBusiness = ''; + else + $this.coinBusiness = coinBusiness; + if (0 === (seen1 & 8)) + $this.oid = new Long(0, 0); + else + $this.oid = oid; + return $this; + } + } + class Companion_1000 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.ThreePointComment'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_987(); + } + } + class $serializer_987 { + constructor() { + $serializer_instance_987 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KThreePointComment', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('upSelection', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('upClose', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('icon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_988()), get_nullable($serializer_getInstance_988()), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_988(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_988(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_988(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_988(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KThreePointComment.new_com_bapis_bilibili_app_dynamic_v2_KThreePointComment_9n398j_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_lnbvnz_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.upSelection == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_988(), value.upSelection); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.upClose == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_988(), value.upClose); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.icon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.icon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.title); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_lnbvnz_k$(encoder, value instanceof KThreePointComment ? value : THROW_CCE()); + } + } + class KThreePointComment { + constructor(upSelection, upClose, icon, title) { + Companion_instance_1000; + upSelection = upSelection === VOID ? null : upSelection; + upClose = upClose === VOID ? null : upClose; + icon = icon === VOID ? '' : icon; + title = title === VOID ? '' : title; + this.upSelection = upSelection; + this.upClose = upClose; + this.icon = icon; + this.title = title; + } + get_upSelection_daf3k8_k$() { + return this.upSelection; + } + get_upClose_33yzm4_k$() { + return this.upClose; + } + get_icon_wont8i_k$() { + return this.icon; + } + get_title_iz32un_k$() { + return this.title; + } + component1_7eebsc_k$() { + return this.upSelection; + } + component2_7eebsb_k$() { + return this.upClose; + } + component3_7eebsa_k$() { + return this.icon; + } + component4_7eebs9_k$() { + return this.title; + } + copy_w36i17_k$(upSelection, upClose, icon, title) { + return new KThreePointComment(upSelection, upClose, icon, title); + } + copy(upSelection, upClose, icon, title, $super) { + upSelection = upSelection === VOID ? this.upSelection : upSelection; + upClose = upClose === VOID ? this.upClose : upClose; + icon = icon === VOID ? this.icon : icon; + title = title === VOID ? this.title : title; + return this.copy_w36i17_k$(upSelection, upClose, icon, title); + } + toString() { + return 'KThreePointComment(upSelection=' + this.upSelection + ', upClose=' + this.upClose + ', icon=' + this.icon + ', title=' + this.title + ')'; + } + hashCode() { + var result = this.upSelection == null ? 0 : this.upSelection.hashCode(); + result = imul(result, 31) + (this.upClose == null ? 0 : this.upClose.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.icon) | 0; + result = imul(result, 31) + getStringHashCode(this.title) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KThreePointComment)) + return false; + var tmp0_other_with_cast = other instanceof KThreePointComment ? other : THROW_CCE(); + if (!equals(this.upSelection, tmp0_other_with_cast.upSelection)) + return false; + if (!equals(this.upClose, tmp0_other_with_cast.upClose)) + return false; + if (!(this.icon === tmp0_other_with_cast.icon)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KThreePointComment_9n398j_k$(seen1, upSelection, upClose, icon, title, serializationConstructorMarker) { + Companion_instance_1000; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_987().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.upSelection = null; + else + $this.upSelection = upSelection; + if (0 === (seen1 & 2)) + $this.upClose = null; + else + $this.upClose = upClose; + if (0 === (seen1 & 4)) + $this.icon = ''; + else + $this.icon = icon; + if (0 === (seen1 & 8)) + $this.title = ''; + else + $this.title = title; + return $this; + } + } + class Companion_1001 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.CommentDetail'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_988(); + } + } + class $serializer_988 { + constructor() { + $serializer_instance_988 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KCommentDetail', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('canModify', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('status', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [BooleanSerializer_getInstance(), LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = false; + var tmp5_local1 = new Long(0, 0); + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KCommentDetail.new_com_bapis_bilibili_app_dynamic_v2_KCommentDetail_bkyjbx_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_8u52mk_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.canModify === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 0, value.canModify); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.status.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.status); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_8u52mk_k$(encoder, value instanceof KCommentDetail ? value : THROW_CCE()); + } + } + class KCommentDetail { + constructor(canModify, status) { + Companion_instance_1001; + canModify = canModify === VOID ? false : canModify; + status = status === VOID ? new Long(0, 0) : status; + this.canModify = canModify; + this.status = status; + } + get_canModify_64mubl_k$() { + return this.canModify; + } + get_status_jnf6d7_k$() { + return this.status; + } + component1_7eebsc_k$() { + return this.canModify; + } + component2_7eebsb_k$() { + return this.status; + } + copy_rw3tf6_k$(canModify, status) { + return new KCommentDetail(canModify, status); + } + copy(canModify, status, $super) { + canModify = canModify === VOID ? this.canModify : canModify; + status = status === VOID ? this.status : status; + return this.copy_rw3tf6_k$(canModify, status); + } + toString() { + return 'KCommentDetail(canModify=' + this.canModify + ', status=' + this.status.toString() + ')'; + } + hashCode() { + var result = getBooleanHashCode(this.canModify); + result = imul(result, 31) + this.status.hashCode() | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KCommentDetail)) + return false; + var tmp0_other_with_cast = other instanceof KCommentDetail ? other : THROW_CCE(); + if (!(this.canModify === tmp0_other_with_cast.canModify)) + return false; + if (!this.status.equals(tmp0_other_with_cast.status)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KCommentDetail_bkyjbx_k$(seen1, canModify, status, serializationConstructorMarker) { + Companion_instance_1001; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_988().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.canModify = false; + else + $this.canModify = canModify; + if (0 === (seen1 & 2)) + $this.status = new Long(0, 0); + else + $this.status = status; + return $this; + } + } + class Companion_1002 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.ThreePointHide'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_989(); + } + } + class $serializer_989 { + constructor() { + $serializer_instance_989 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KThreePointHide', this, 5); + tmp0_serialDesc.addElement_5pzumi_k$('icon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('interactive', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('blookFid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('blookType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_990()), LongSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = new Long(0, 0); + var tmp8_local4 = null; + var tmp9_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp9_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_990(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + } else + while (tmp1_flag) { + tmp2_index = tmp9_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_990(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp9_input.endStructure_1xqz0n_k$(tmp0_desc); + return KThreePointHide.new_com_bapis_bilibili_app_dynamic_v2_KThreePointHide_kqa8uh_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); + } + serialize_tplipi_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.icon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.icon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.interactive == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_990(), value.interactive); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !value.blookFid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 3, value.blookFid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.blookType === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.blookType); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_tplipi_k$(encoder, value instanceof KThreePointHide ? value : THROW_CCE()); + } + } + class KThreePointHide { + constructor(icon, title, interactive, blookFid, blookType) { + Companion_instance_1002; + icon = icon === VOID ? '' : icon; + title = title === VOID ? '' : title; + interactive = interactive === VOID ? null : interactive; + blookFid = blookFid === VOID ? new Long(0, 0) : blookFid; + blookType = blookType === VOID ? '' : blookType; + this.icon = icon; + this.title = title; + this.interactive = interactive; + this.blookFid = blookFid; + this.blookType = blookType; + } + get_icon_wont8i_k$() { + return this.icon; + } + get_title_iz32un_k$() { + return this.title; + } + get_interactive_qmz8nb_k$() { + return this.interactive; + } + get_blookFid_sf30nd_k$() { + return this.blookFid; + } + get_blookType_smi6gi_k$() { + return this.blookType; + } + component1_7eebsc_k$() { + return this.icon; + } + component2_7eebsb_k$() { + return this.title; + } + component3_7eebsa_k$() { + return this.interactive; + } + component4_7eebs9_k$() { + return this.blookFid; + } + component5_7eebs8_k$() { + return this.blookType; + } + copy_rdg09n_k$(icon, title, interactive, blookFid, blookType) { + return new KThreePointHide(icon, title, interactive, blookFid, blookType); + } + copy(icon, title, interactive, blookFid, blookType, $super) { + icon = icon === VOID ? this.icon : icon; + title = title === VOID ? this.title : title; + interactive = interactive === VOID ? this.interactive : interactive; + blookFid = blookFid === VOID ? this.blookFid : blookFid; + blookType = blookType === VOID ? this.blookType : blookType; + return this.copy_rdg09n_k$(icon, title, interactive, blookFid, blookType); + } + toString() { + return 'KThreePointHide(icon=' + this.icon + ', title=' + this.title + ', interactive=' + this.interactive + ', blookFid=' + this.blookFid.toString() + ', blookType=' + this.blookType + ')'; + } + hashCode() { + var result = getStringHashCode(this.icon); + result = imul(result, 31) + getStringHashCode(this.title) | 0; + result = imul(result, 31) + (this.interactive == null ? 0 : this.interactive.hashCode()) | 0; + result = imul(result, 31) + this.blookFid.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.blookType) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KThreePointHide)) + return false; + var tmp0_other_with_cast = other instanceof KThreePointHide ? other : THROW_CCE(); + if (!(this.icon === tmp0_other_with_cast.icon)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!equals(this.interactive, tmp0_other_with_cast.interactive)) + return false; + if (!this.blookFid.equals(tmp0_other_with_cast.blookFid)) + return false; + if (!(this.blookType === tmp0_other_with_cast.blookType)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KThreePointHide_kqa8uh_k$(seen1, icon, title, interactive, blookFid, blookType, serializationConstructorMarker) { + Companion_instance_1002; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_989().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.icon = ''; + else + $this.icon = icon; + if (0 === (seen1 & 2)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 4)) + $this.interactive = null; + else + $this.interactive = interactive; + if (0 === (seen1 & 8)) + $this.blookFid = new Long(0, 0); + else + $this.blookFid = blookFid; + if (0 === (seen1 & 16)) + $this.blookType = ''; + else + $this.blookType = blookType; + return $this; + } + } + class Companion_1003 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.ThreePointHideInteractive'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_990(); + } + } + class $serializer_990 { + constructor() { + $serializer_instance_990 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KThreePointHideInteractive', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('confirm', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('cancel', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('toast', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KThreePointHideInteractive.new_com_bapis_bilibili_app_dynamic_v2_KThreePointHideInteractive_wud7qm_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_ftvhce_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.confirm === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.confirm); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.cancel === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.cancel); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.toast === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.toast); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_ftvhce_k$(encoder, value instanceof KThreePointHideInteractive ? value : THROW_CCE()); + } + } + class KThreePointHideInteractive { + constructor(title, confirm, cancel, toast) { + Companion_instance_1003; + title = title === VOID ? '' : title; + confirm = confirm === VOID ? '' : confirm; + cancel = cancel === VOID ? '' : cancel; + toast = toast === VOID ? '' : toast; + this.title = title; + this.confirm = confirm; + this.cancel = cancel; + this.toast = toast; + } + get_title_iz32un_k$() { + return this.title; + } + get_confirm_gztp07_k$() { + return this.confirm; + } + get_cancel_bsh2mb_k$() { + return this.cancel; + } + get_toast_iz6iv2_k$() { + return this.toast; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.confirm; + } + component3_7eebsa_k$() { + return this.cancel; + } + component4_7eebs9_k$() { + return this.toast; + } + copy_hmmiyd_k$(title, confirm, cancel, toast) { + return new KThreePointHideInteractive(title, confirm, cancel, toast); + } + copy(title, confirm, cancel, toast, $super) { + title = title === VOID ? this.title : title; + confirm = confirm === VOID ? this.confirm : confirm; + cancel = cancel === VOID ? this.cancel : cancel; + toast = toast === VOID ? this.toast : toast; + return this.copy_hmmiyd_k$(title, confirm, cancel, toast); + } + toString() { + return 'KThreePointHideInteractive(title=' + this.title + ', confirm=' + this.confirm + ', cancel=' + this.cancel + ', toast=' + this.toast + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.confirm) | 0; + result = imul(result, 31) + getStringHashCode(this.cancel) | 0; + result = imul(result, 31) + getStringHashCode(this.toast) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KThreePointHideInteractive)) + return false; + var tmp0_other_with_cast = other instanceof KThreePointHideInteractive ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.confirm === tmp0_other_with_cast.confirm)) + return false; + if (!(this.cancel === tmp0_other_with_cast.cancel)) + return false; + if (!(this.toast === tmp0_other_with_cast.toast)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KThreePointHideInteractive_wud7qm_k$(seen1, title, confirm, cancel, toast, serializationConstructorMarker) { + Companion_instance_1003; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_990().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.confirm = ''; + else + $this.confirm = confirm; + if (0 === (seen1 & 4)) + $this.cancel = ''; + else + $this.cancel = cancel; + if (0 === (seen1 & 8)) + $this.toast = ''; + else + $this.toast = toast; + return $this; + } + } + class Companion_1004 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.ModuleDispute'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_991(); + } + } + class $serializer_991 { + constructor() { + $serializer_instance_991 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KModuleDispute', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('desc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('uri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KModuleDispute_0.new_com_bapis_bilibili_app_dynamic_v2_KModuleDispute_afen3p_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_qlxhlw_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.desc === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.desc); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.uri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.uri); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_qlxhlw_k$(encoder, value instanceof KModuleDispute_0 ? value : THROW_CCE()); + } + } + class KModuleDispute_0 { + constructor(title, desc, uri) { + Companion_instance_1004; + title = title === VOID ? '' : title; + desc = desc === VOID ? '' : desc; + uri = uri === VOID ? '' : uri; + this.title = title; + this.desc = desc; + this.uri = uri; + } + get_title_iz32un_k$() { + return this.title; + } + get_desc_woknve_k$() { + return this.desc; + } + get_uri_18iuil_k$() { + return this.uri; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.desc; + } + component3_7eebsa_k$() { + return this.uri; + } + copy_nc7k0r_k$(title, desc, uri) { + return new KModuleDispute_0(title, desc, uri); + } + copy(title, desc, uri, $super) { + title = title === VOID ? this.title : title; + desc = desc === VOID ? this.desc : desc; + uri = uri === VOID ? this.uri : uri; + return this.copy_nc7k0r_k$(title, desc, uri); + } + toString() { + return 'KModuleDispute(title=' + this.title + ', desc=' + this.desc + ', uri=' + this.uri + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.desc) | 0; + result = imul(result, 31) + getStringHashCode(this.uri) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KModuleDispute_0)) + return false; + var tmp0_other_with_cast = other instanceof KModuleDispute_0 ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.desc === tmp0_other_with_cast.desc)) + return false; + if (!(this.uri === tmp0_other_with_cast.uri)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KModuleDispute_afen3p_k$(seen1, title, desc, uri, serializationConstructorMarker) { + Companion_instance_1004; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_991().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.desc = ''; + else + $this.desc = desc; + if (0 === (seen1 & 4)) + $this.uri = ''; + else + $this.uri = uri; + return $this; + } + } + class Companion_1005 { + constructor() { + Companion_instance_1005 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer($serializer_getInstance_950()), null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.ModuleDesc'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_992(); + } + } + class $serializer_992 { + constructor() { + $serializer_instance_992 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KModuleDesc', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('desc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('jumpUri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('text', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_1005().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0], StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp8_cached = Companion_getInstance_1005().$childSerializers_1; + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp8_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp8_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KModuleDesc_0.new_com_bapis_bilibili_app_dynamic_v2_KModuleDesc_rihihd_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_nhieul_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_1005().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.desc, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.desc); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.jumpUri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.jumpUri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.text === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.text); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_nhieul_k$(encoder, value instanceof KModuleDesc_0 ? value : THROW_CCE()); + } + } + class KModuleDesc_0 { + constructor(desc, jumpUri, text) { + Companion_getInstance_1005(); + desc = desc === VOID ? emptyList() : desc; + jumpUri = jumpUri === VOID ? '' : jumpUri; + text = text === VOID ? '' : text; + this.desc = desc; + this.jumpUri = jumpUri; + this.text = text; + } + get_desc_woknve_k$() { + return this.desc; + } + get_jumpUri_jhqikr_k$() { + return this.jumpUri; + } + get_text_wouvsm_k$() { + return this.text; + } + component1_7eebsc_k$() { + return this.desc; + } + component2_7eebsb_k$() { + return this.jumpUri; + } + component3_7eebsa_k$() { + return this.text; + } + copy_u2y4dy_k$(desc, jumpUri, text) { + return new KModuleDesc_0(desc, jumpUri, text); + } + copy(desc, jumpUri, text, $super) { + desc = desc === VOID ? this.desc : desc; + jumpUri = jumpUri === VOID ? this.jumpUri : jumpUri; + text = text === VOID ? this.text : text; + return this.copy_u2y4dy_k$(desc, jumpUri, text); + } + toString() { + return 'KModuleDesc(desc=' + this.desc + ', jumpUri=' + this.jumpUri + ', text=' + this.text + ')'; + } + hashCode() { + var result = hashCode(this.desc); + result = imul(result, 31) + getStringHashCode(this.jumpUri) | 0; + result = imul(result, 31) + getStringHashCode(this.text) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KModuleDesc_0)) + return false; + var tmp0_other_with_cast = other instanceof KModuleDesc_0 ? other : THROW_CCE(); + if (!equals(this.desc, tmp0_other_with_cast.desc)) + return false; + if (!(this.jumpUri === tmp0_other_with_cast.jumpUri)) + return false; + if (!(this.text === tmp0_other_with_cast.text)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KModuleDesc_rihihd_k$(seen1, desc, jumpUri, text, serializationConstructorMarker) { + Companion_getInstance_1005(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_992().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.desc = emptyList(); + else + $this.desc = desc; + if (0 === (seen1 & 2)) + $this.jumpUri = ''; + else + $this.jumpUri = jumpUri; + if (0 === (seen1 & 4)) + $this.text = ''; + else + $this.text = text; + return $this; + } + } + class KModuleItem_0 { + constructor(value) { + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + } + class KDynArchive extends KModuleItem_0 { + constructor() { + KDynArchive_instance = null; + super(0); + KDynArchive_instance = this; + } + } + class KDynPgc extends KModuleItem_0 { + constructor() { + KDynPgc_instance = null; + super(1); + KDynPgc_instance = this; + } + } + class KDynCourSeason extends KModuleItem_0 { + constructor() { + KDynCourSeason_instance = null; + super(2); + KDynCourSeason_instance = this; + } + } + class KDynCourBatch extends KModuleItem_0 { + constructor() { + KDynCourBatch_instance = null; + super(3); + KDynCourBatch_instance = this; + } + } + class KDynForward extends KModuleItem_0 { + constructor() { + KDynForward_instance = null; + super(4); + KDynForward_instance = this; + } + } + class KDynDraw extends KModuleItem_0 { + constructor() { + KDynDraw_instance = null; + super(5); + KDynDraw_instance = this; + } + } + class KDynArticle extends KModuleItem_0 { + constructor() { + KDynArticle_instance = null; + super(6); + KDynArticle_instance = this; + } + } + class KDynMusic extends KModuleItem_0 { + constructor() { + KDynMusic_instance = null; + super(7); + KDynMusic_instance = this; + } + } + class KDynCommon extends KModuleItem_0 { + constructor() { + KDynCommon_instance = null; + super(8); + KDynCommon_instance = this; + } + } + class KDynCommonLive extends KModuleItem_0 { + constructor() { + KDynCommonLive_instance = null; + super(9); + KDynCommonLive_instance = this; + } + } + class KDynMedialist extends KModuleItem_0 { + constructor() { + KDynMedialist_instance = null; + super(10); + KDynMedialist_instance = this; + } + } + class KDynApplet extends KModuleItem_0 { + constructor() { + KDynApplet_instance = null; + super(11); + KDynApplet_instance = this; + } + } + class KDynSubscription extends KModuleItem_0 { + constructor() { + KDynSubscription_instance = null; + super(12); + KDynSubscription_instance = this; + } + } + class KDynLiveRcmd extends KModuleItem_0 { + constructor() { + KDynLiveRcmd_instance = null; + super(13); + KDynLiveRcmd_instance = this; + } + } + class KDynUgcSeason extends KModuleItem_0 { + constructor() { + KDynUgcSeason_instance = null; + super(14); + KDynUgcSeason_instance = this; + } + } + class KDynSubscriptionNew extends KModuleItem_0 { + constructor() { + KDynSubscriptionNew_instance = null; + super(15); + KDynSubscriptionNew_instance = this; + } + } + class KDynCourBatchUp extends KModuleItem_0 { + constructor() { + KDynCourBatchUp_instance = null; + super(16); + KDynCourBatchUp_instance = this; + } + } + class KDynTopicSet extends KModuleItem_0 { + constructor() { + KDynTopicSet_instance = null; + super(17); + KDynTopicSet_instance = this; + } + } + class Companion_1006 { + constructor() { + Companion_instance_1006 = this; + var tmp = this; + tmp.moduleItemValues$delegate_1 = lazy_0(KModuleDynamic$Companion$moduleItemValues$delegate$lambda); + this.targetPath = '/bilibili.app.dynamic.v2.ModuleDynamic'; + } + get_moduleItemValues_y9ehee_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.moduleItemValues$delegate_1; + var thisRef = this; + var property = moduleItemValues$factory_0(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_993(); + } + get moduleItemValues() { + return this.get_moduleItemValues_y9ehee_k$(); + } + } + class $serializer_993 { + constructor() { + $serializer_instance_993 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KModuleDynamic', this, 19); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('dynArchive', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('dynPgc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('dynCourSeason', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('dynCourBatch', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('dynForward', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('dynDraw', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('dynArticle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('dynMusic', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('dynCommon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('dynCommonLive', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('dynMedialist', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + tmp0_serialDesc.addElement_5pzumi_k$('dynApplet', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(13)); + tmp0_serialDesc.addElement_5pzumi_k$('dynSubscription', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(14)); + tmp0_serialDesc.addElement_5pzumi_k$('dynLiveRcmd', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(15)); + tmp0_serialDesc.addElement_5pzumi_k$('dynUgcSeason', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(16)); + tmp0_serialDesc.addElement_5pzumi_k$('dynSubscriptionNew', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(17)); + tmp0_serialDesc.addElement_5pzumi_k$('dynCourBatchUp', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(18)); + tmp0_serialDesc.addElement_5pzumi_k$('dynTopicSet', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(19)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), get_nullable($serializer_getInstance_1071()), get_nullable($serializer_getInstance_1074()), get_nullable($serializer_getInstance_1076()), get_nullable($serializer_getInstance_1077()), get_nullable($serializer_getInstance_994()), get_nullable($serializer_getInstance_1078()), get_nullable($serializer_getInstance_1082()), get_nullable($serializer_getInstance_1083()), get_nullable($serializer_getInstance_1084()), get_nullable($serializer_getInstance_1089()), get_nullable($serializer_getInstance_1090()), get_nullable($serializer_getInstance_1091()), get_nullable($serializer_getInstance_1092()), get_nullable($serializer_getInstance_1093()), get_nullable($serializer_getInstance_1095()), get_nullable($serializer_getInstance_1096()), get_nullable($serializer_getInstance_1097()), get_nullable($serializer_getInstance_1098())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_local8 = null; + var tmp13_local9 = null; + var tmp14_local10 = null; + var tmp15_local11 = null; + var tmp16_local12 = null; + var tmp17_local13 = null; + var tmp18_local14 = null; + var tmp19_local15 = null; + var tmp20_local16 = null; + var tmp21_local17 = null; + var tmp22_local18 = null; + var tmp23_transient0 = 0; + var tmp24_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp24_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp24_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp24_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_1071(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp24_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_1074(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp24_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_1076(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp24_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_1077(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp24_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_994(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp24_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_1078(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp24_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_1082(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp24_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_1083(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp24_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 9, $serializer_getInstance_1084(), tmp13_local9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp24_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 10, $serializer_getInstance_1089(), tmp14_local10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp24_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 11, $serializer_getInstance_1090(), tmp15_local11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + tmp16_local12 = tmp24_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 12, $serializer_getInstance_1091(), tmp16_local12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + tmp17_local13 = tmp24_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 13, $serializer_getInstance_1092(), tmp17_local13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + tmp18_local14 = tmp24_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 14, $serializer_getInstance_1093(), tmp18_local14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + tmp19_local15 = tmp24_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 15, $serializer_getInstance_1095(), tmp19_local15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + tmp20_local16 = tmp24_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 16, $serializer_getInstance_1096(), tmp20_local16); + tmp3_bitMask0 = tmp3_bitMask0 | 65536; + tmp21_local17 = tmp24_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 17, $serializer_getInstance_1097(), tmp21_local17); + tmp3_bitMask0 = tmp3_bitMask0 | 131072; + tmp22_local18 = tmp24_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 18, $serializer_getInstance_1098(), tmp22_local18); + tmp3_bitMask0 = tmp3_bitMask0 | 262144; + } else + while (tmp1_flag) { + tmp2_index = tmp24_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp24_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp24_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_1071(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp24_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_1074(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp24_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_1076(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp24_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_1077(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp24_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_994(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp24_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_1078(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp24_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_1082(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp24_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_1083(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp24_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 9, $serializer_getInstance_1084(), tmp13_local9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp24_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 10, $serializer_getInstance_1089(), tmp14_local10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp24_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 11, $serializer_getInstance_1090(), tmp15_local11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + case 12: + tmp16_local12 = tmp24_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 12, $serializer_getInstance_1091(), tmp16_local12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + break; + case 13: + tmp17_local13 = tmp24_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 13, $serializer_getInstance_1092(), tmp17_local13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + break; + case 14: + tmp18_local14 = tmp24_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 14, $serializer_getInstance_1093(), tmp18_local14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + break; + case 15: + tmp19_local15 = tmp24_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 15, $serializer_getInstance_1095(), tmp19_local15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + break; + case 16: + tmp20_local16 = tmp24_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 16, $serializer_getInstance_1096(), tmp20_local16); + tmp3_bitMask0 = tmp3_bitMask0 | 65536; + break; + case 17: + tmp21_local17 = tmp24_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 17, $serializer_getInstance_1097(), tmp21_local17); + tmp3_bitMask0 = tmp3_bitMask0 | 131072; + break; + case 18: + tmp22_local18 = tmp24_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 18, $serializer_getInstance_1098(), tmp22_local18); + tmp3_bitMask0 = tmp3_bitMask0 | 262144; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp24_input.endStructure_1xqz0n_k$(tmp0_desc); + return KModuleDynamic_0.new_com_bapis_bilibili_app_dynamic_v2_KModuleDynamic_cpkrsc_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, tmp18_local14, tmp19_local15, tmp20_local16, tmp21_local17, tmp22_local18, null); + } + serialize_mxnrhz_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.type === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.type); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.dynArchive_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_1071(), value.dynArchive_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.dynPgc_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_1074(), value.dynPgc_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.dynCourSeason_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_1076(), value.dynCourSeason_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.dynCourBatch_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, $serializer_getInstance_1077(), value.dynCourBatch_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.dynForward_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 5, $serializer_getInstance_994(), value.dynForward_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.dynDraw_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 6, $serializer_getInstance_1078(), value.dynDraw_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.dynArticle_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 7, $serializer_getInstance_1082(), value.dynArticle_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.dynMusic_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 8, $serializer_getInstance_1083(), value.dynMusic_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.dynCommon_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 9, $serializer_getInstance_1084(), value.dynCommon_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.dynCommonLive_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 10, $serializer_getInstance_1089(), value.dynCommonLive_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.dynMedialist_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 11, $serializer_getInstance_1090(), value.dynMedialist_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !(value.dynApplet_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 12, $serializer_getInstance_1091(), value.dynApplet_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 13) ? true : !(value.dynSubscription_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 13, $serializer_getInstance_1092(), value.dynSubscription_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 14) ? true : !(value.dynLiveRcmd_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 14, $serializer_getInstance_1093(), value.dynLiveRcmd_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 15) ? true : !(value.dynUgcSeason_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 15, $serializer_getInstance_1095(), value.dynUgcSeason_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 16) ? true : !(value.dynSubscriptionNew_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 16, $serializer_getInstance_1096(), value.dynSubscriptionNew_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 17) ? true : !(value.dynCourBatchUp_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 17, $serializer_getInstance_1097(), value.dynCourBatchUp_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 18) ? true : !(value.dynTopicSet_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 18, $serializer_getInstance_1098(), value.dynTopicSet_1); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_mxnrhz_k$(encoder, value instanceof KModuleDynamic_0 ? value : THROW_CCE()); + } + } + class KModuleDynamic_0 { + constructor(type, dynArchive, dynPgc, dynCourSeason, dynCourBatch, dynForward, dynDraw, dynArticle, dynMusic, dynCommon, dynCommonLive, dynMedialist, dynApplet, dynSubscription, dynLiveRcmd, dynUgcSeason, dynSubscriptionNew, dynCourBatchUp, dynTopicSet) { + Companion_getInstance_1006(); + type = type === VOID ? 0 : type; + dynArchive = dynArchive === VOID ? null : dynArchive; + dynPgc = dynPgc === VOID ? null : dynPgc; + dynCourSeason = dynCourSeason === VOID ? null : dynCourSeason; + dynCourBatch = dynCourBatch === VOID ? null : dynCourBatch; + dynForward = dynForward === VOID ? null : dynForward; + dynDraw = dynDraw === VOID ? null : dynDraw; + dynArticle = dynArticle === VOID ? null : dynArticle; + dynMusic = dynMusic === VOID ? null : dynMusic; + dynCommon = dynCommon === VOID ? null : dynCommon; + dynCommonLive = dynCommonLive === VOID ? null : dynCommonLive; + dynMedialist = dynMedialist === VOID ? null : dynMedialist; + dynApplet = dynApplet === VOID ? null : dynApplet; + dynSubscription = dynSubscription === VOID ? null : dynSubscription; + dynLiveRcmd = dynLiveRcmd === VOID ? null : dynLiveRcmd; + dynUgcSeason = dynUgcSeason === VOID ? null : dynUgcSeason; + dynSubscriptionNew = dynSubscriptionNew === VOID ? null : dynSubscriptionNew; + dynCourBatchUp = dynCourBatchUp === VOID ? null : dynCourBatchUp; + dynTopicSet = dynTopicSet === VOID ? null : dynTopicSet; + this.type = type; + this.dynArchive_1 = dynArchive; + this.dynPgc_1 = dynPgc; + this.dynCourSeason_1 = dynCourSeason; + this.dynCourBatch_1 = dynCourBatch; + this.dynForward_1 = dynForward; + this.dynDraw_1 = dynDraw; + this.dynArticle_1 = dynArticle; + this.dynMusic_1 = dynMusic; + this.dynCommon_1 = dynCommon; + this.dynCommonLive_1 = dynCommonLive; + this.dynMedialist_1 = dynMedialist; + this.dynApplet_1 = dynApplet; + this.dynSubscription_1 = dynSubscription; + this.dynLiveRcmd_1 = dynLiveRcmd; + this.dynUgcSeason_1 = dynUgcSeason; + this.dynSubscriptionNew_1 = dynSubscriptionNew; + this.dynCourBatchUp_1 = dynCourBatchUp; + this.dynTopicSet_1 = dynTopicSet; + var tmp = this; + tmp.moduleItemNumber$delegate_1 = lazy_0(KModuleDynamic$moduleItemNumber$delegate$lambda(this)); + } + get_type_wovaf7_k$() { + return this.type; + } + moduleItemValue() { + if (!(this.dynArchive_1 == null)) { + var tmp = this.dynArchive_1; + return (tmp == null ? true : !(tmp == null)) ? tmp : null; + } else if (!(this.dynPgc_1 == null)) { + var tmp_0 = this.dynPgc_1; + return (tmp_0 == null ? true : !(tmp_0 == null)) ? tmp_0 : null; + } else if (!(this.dynCourSeason_1 == null)) { + var tmp_1 = this.dynCourSeason_1; + return (tmp_1 == null ? true : !(tmp_1 == null)) ? tmp_1 : null; + } else if (!(this.dynCourBatch_1 == null)) { + var tmp_2 = this.dynCourBatch_1; + return (tmp_2 == null ? true : !(tmp_2 == null)) ? tmp_2 : null; + } else if (!(this.dynForward_1 == null)) { + var tmp_3 = this.dynForward_1; + return (tmp_3 == null ? true : !(tmp_3 == null)) ? tmp_3 : null; + } else if (!(this.dynDraw_1 == null)) { + var tmp_4 = this.dynDraw_1; + return (tmp_4 == null ? true : !(tmp_4 == null)) ? tmp_4 : null; + } else if (!(this.dynArticle_1 == null)) { + var tmp_5 = this.dynArticle_1; + return (tmp_5 == null ? true : !(tmp_5 == null)) ? tmp_5 : null; + } else if (!(this.dynMusic_1 == null)) { + var tmp_6 = this.dynMusic_1; + return (tmp_6 == null ? true : !(tmp_6 == null)) ? tmp_6 : null; + } else if (!(this.dynCommon_1 == null)) { + var tmp_7 = this.dynCommon_1; + return (tmp_7 == null ? true : !(tmp_7 == null)) ? tmp_7 : null; + } else if (!(this.dynCommonLive_1 == null)) { + var tmp_8 = this.dynCommonLive_1; + return (tmp_8 == null ? true : !(tmp_8 == null)) ? tmp_8 : null; + } else if (!(this.dynMedialist_1 == null)) { + var tmp_9 = this.dynMedialist_1; + return (tmp_9 == null ? true : !(tmp_9 == null)) ? tmp_9 : null; + } else if (!(this.dynApplet_1 == null)) { + var tmp_10 = this.dynApplet_1; + return (tmp_10 == null ? true : !(tmp_10 == null)) ? tmp_10 : null; + } else if (!(this.dynSubscription_1 == null)) { + var tmp_11 = this.dynSubscription_1; + return (tmp_11 == null ? true : !(tmp_11 == null)) ? tmp_11 : null; + } else if (!(this.dynLiveRcmd_1 == null)) { + var tmp_12 = this.dynLiveRcmd_1; + return (tmp_12 == null ? true : !(tmp_12 == null)) ? tmp_12 : null; + } else if (!(this.dynUgcSeason_1 == null)) { + var tmp_13 = this.dynUgcSeason_1; + return (tmp_13 == null ? true : !(tmp_13 == null)) ? tmp_13 : null; + } else if (!(this.dynSubscriptionNew_1 == null)) { + var tmp_14 = this.dynSubscriptionNew_1; + return (tmp_14 == null ? true : !(tmp_14 == null)) ? tmp_14 : null; + } else if (!(this.dynCourBatchUp_1 == null)) { + var tmp_15 = this.dynCourBatchUp_1; + return (tmp_15 == null ? true : !(tmp_15 == null)) ? tmp_15 : null; + } else if (!(this.dynTopicSet_1 == null)) { + var tmp_16 = this.dynTopicSet_1; + return (tmp_16 == null ? true : !(tmp_16 == null)) ? tmp_16 : null; + } else { + return null; + } + } + moduleItemTypeJs() { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = Companion_getInstance_1006().moduleItemValues; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.KModuleDynamic.moduleItemType.' call + var it = element; + tmp$ret$0 = it.value === _get_moduleItemNumber__nvmghp_0(this); + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + return tmp$ret$1; + } + typeEnum() { + return Companion_getInstance_948().fromValue(this.type); + } + component1_7eebsc_k$() { + return this.type; + } + copy_wozags_k$(type, dynArchive, dynPgc, dynCourSeason, dynCourBatch, dynForward, dynDraw, dynArticle, dynMusic, dynCommon, dynCommonLive, dynMedialist, dynApplet, dynSubscription, dynLiveRcmd, dynUgcSeason, dynSubscriptionNew, dynCourBatchUp, dynTopicSet) { + return new KModuleDynamic_0(type, dynArchive, dynPgc, dynCourSeason, dynCourBatch, dynForward, dynDraw, dynArticle, dynMusic, dynCommon, dynCommonLive, dynMedialist, dynApplet, dynSubscription, dynLiveRcmd, dynUgcSeason, dynSubscriptionNew, dynCourBatchUp, dynTopicSet); + } + copy(type, dynArchive, dynPgc, dynCourSeason, dynCourBatch, dynForward, dynDraw, dynArticle, dynMusic, dynCommon, dynCommonLive, dynMedialist, dynApplet, dynSubscription, dynLiveRcmd, dynUgcSeason, dynSubscriptionNew, dynCourBatchUp, dynTopicSet, $super) { + type = type === VOID ? this.type : type; + dynArchive = dynArchive === VOID ? this.dynArchive_1 : dynArchive; + dynPgc = dynPgc === VOID ? this.dynPgc_1 : dynPgc; + dynCourSeason = dynCourSeason === VOID ? this.dynCourSeason_1 : dynCourSeason; + dynCourBatch = dynCourBatch === VOID ? this.dynCourBatch_1 : dynCourBatch; + dynForward = dynForward === VOID ? this.dynForward_1 : dynForward; + dynDraw = dynDraw === VOID ? this.dynDraw_1 : dynDraw; + dynArticle = dynArticle === VOID ? this.dynArticle_1 : dynArticle; + dynMusic = dynMusic === VOID ? this.dynMusic_1 : dynMusic; + dynCommon = dynCommon === VOID ? this.dynCommon_1 : dynCommon; + dynCommonLive = dynCommonLive === VOID ? this.dynCommonLive_1 : dynCommonLive; + dynMedialist = dynMedialist === VOID ? this.dynMedialist_1 : dynMedialist; + dynApplet = dynApplet === VOID ? this.dynApplet_1 : dynApplet; + dynSubscription = dynSubscription === VOID ? this.dynSubscription_1 : dynSubscription; + dynLiveRcmd = dynLiveRcmd === VOID ? this.dynLiveRcmd_1 : dynLiveRcmd; + dynUgcSeason = dynUgcSeason === VOID ? this.dynUgcSeason_1 : dynUgcSeason; + dynSubscriptionNew = dynSubscriptionNew === VOID ? this.dynSubscriptionNew_1 : dynSubscriptionNew; + dynCourBatchUp = dynCourBatchUp === VOID ? this.dynCourBatchUp_1 : dynCourBatchUp; + dynTopicSet = dynTopicSet === VOID ? this.dynTopicSet_1 : dynTopicSet; + return this.copy_wozags_k$(type, dynArchive, dynPgc, dynCourSeason, dynCourBatch, dynForward, dynDraw, dynArticle, dynMusic, dynCommon, dynCommonLive, dynMedialist, dynApplet, dynSubscription, dynLiveRcmd, dynUgcSeason, dynSubscriptionNew, dynCourBatchUp, dynTopicSet); + } + toString() { + return 'KModuleDynamic(type=' + this.type + ', dynArchive=' + this.dynArchive_1 + ', dynPgc=' + this.dynPgc_1 + ', dynCourSeason=' + this.dynCourSeason_1 + ', dynCourBatch=' + this.dynCourBatch_1 + ', dynForward=' + this.dynForward_1 + ', dynDraw=' + this.dynDraw_1 + ', dynArticle=' + this.dynArticle_1 + ', dynMusic=' + this.dynMusic_1 + ', dynCommon=' + this.dynCommon_1 + ', dynCommonLive=' + this.dynCommonLive_1 + ', dynMedialist=' + this.dynMedialist_1 + ', dynApplet=' + this.dynApplet_1 + ', dynSubscription=' + this.dynSubscription_1 + ', dynLiveRcmd=' + this.dynLiveRcmd_1 + ', dynUgcSeason=' + this.dynUgcSeason_1 + ', dynSubscriptionNew=' + this.dynSubscriptionNew_1 + ', dynCourBatchUp=' + this.dynCourBatchUp_1 + ', dynTopicSet=' + this.dynTopicSet_1 + ')'; + } + hashCode() { + var result = this.type; + result = imul(result, 31) + (this.dynArchive_1 == null ? 0 : this.dynArchive_1.hashCode()) | 0; + result = imul(result, 31) + (this.dynPgc_1 == null ? 0 : this.dynPgc_1.hashCode()) | 0; + result = imul(result, 31) + (this.dynCourSeason_1 == null ? 0 : this.dynCourSeason_1.hashCode()) | 0; + result = imul(result, 31) + (this.dynCourBatch_1 == null ? 0 : this.dynCourBatch_1.hashCode()) | 0; + result = imul(result, 31) + (this.dynForward_1 == null ? 0 : this.dynForward_1.hashCode()) | 0; + result = imul(result, 31) + (this.dynDraw_1 == null ? 0 : this.dynDraw_1.hashCode()) | 0; + result = imul(result, 31) + (this.dynArticle_1 == null ? 0 : this.dynArticle_1.hashCode()) | 0; + result = imul(result, 31) + (this.dynMusic_1 == null ? 0 : this.dynMusic_1.hashCode()) | 0; + result = imul(result, 31) + (this.dynCommon_1 == null ? 0 : this.dynCommon_1.hashCode()) | 0; + result = imul(result, 31) + (this.dynCommonLive_1 == null ? 0 : this.dynCommonLive_1.hashCode()) | 0; + result = imul(result, 31) + (this.dynMedialist_1 == null ? 0 : this.dynMedialist_1.hashCode()) | 0; + result = imul(result, 31) + (this.dynApplet_1 == null ? 0 : this.dynApplet_1.hashCode()) | 0; + result = imul(result, 31) + (this.dynSubscription_1 == null ? 0 : this.dynSubscription_1.hashCode()) | 0; + result = imul(result, 31) + (this.dynLiveRcmd_1 == null ? 0 : this.dynLiveRcmd_1.hashCode()) | 0; + result = imul(result, 31) + (this.dynUgcSeason_1 == null ? 0 : this.dynUgcSeason_1.hashCode()) | 0; + result = imul(result, 31) + (this.dynSubscriptionNew_1 == null ? 0 : this.dynSubscriptionNew_1.hashCode()) | 0; + result = imul(result, 31) + (this.dynCourBatchUp_1 == null ? 0 : this.dynCourBatchUp_1.hashCode()) | 0; + result = imul(result, 31) + (this.dynTopicSet_1 == null ? 0 : this.dynTopicSet_1.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KModuleDynamic_0)) + return false; + var tmp0_other_with_cast = other instanceof KModuleDynamic_0 ? other : THROW_CCE(); + if (!(this.type === tmp0_other_with_cast.type)) + return false; + if (!equals(this.dynArchive_1, tmp0_other_with_cast.dynArchive_1)) + return false; + if (!equals(this.dynPgc_1, tmp0_other_with_cast.dynPgc_1)) + return false; + if (!equals(this.dynCourSeason_1, tmp0_other_with_cast.dynCourSeason_1)) + return false; + if (!equals(this.dynCourBatch_1, tmp0_other_with_cast.dynCourBatch_1)) + return false; + if (!equals(this.dynForward_1, tmp0_other_with_cast.dynForward_1)) + return false; + if (!equals(this.dynDraw_1, tmp0_other_with_cast.dynDraw_1)) + return false; + if (!equals(this.dynArticle_1, tmp0_other_with_cast.dynArticle_1)) + return false; + if (!equals(this.dynMusic_1, tmp0_other_with_cast.dynMusic_1)) + return false; + if (!equals(this.dynCommon_1, tmp0_other_with_cast.dynCommon_1)) + return false; + if (!equals(this.dynCommonLive_1, tmp0_other_with_cast.dynCommonLive_1)) + return false; + if (!equals(this.dynMedialist_1, tmp0_other_with_cast.dynMedialist_1)) + return false; + if (!equals(this.dynApplet_1, tmp0_other_with_cast.dynApplet_1)) + return false; + if (!equals(this.dynSubscription_1, tmp0_other_with_cast.dynSubscription_1)) + return false; + if (!equals(this.dynLiveRcmd_1, tmp0_other_with_cast.dynLiveRcmd_1)) + return false; + if (!equals(this.dynUgcSeason_1, tmp0_other_with_cast.dynUgcSeason_1)) + return false; + if (!equals(this.dynSubscriptionNew_1, tmp0_other_with_cast.dynSubscriptionNew_1)) + return false; + if (!equals(this.dynCourBatchUp_1, tmp0_other_with_cast.dynCourBatchUp_1)) + return false; + if (!equals(this.dynTopicSet_1, tmp0_other_with_cast.dynTopicSet_1)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KModuleDynamic_cpkrsc_k$(seen1, type, dynArchive, dynPgc, dynCourSeason, dynCourBatch, dynForward, dynDraw, dynArticle, dynMusic, dynCommon, dynCommonLive, dynMedialist, dynApplet, dynSubscription, dynLiveRcmd, dynUgcSeason, dynSubscriptionNew, dynCourBatchUp, dynTopicSet, serializationConstructorMarker) { + Companion_getInstance_1006(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_993().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.type = 0; + else + $this.type = type; + if (0 === (seen1 & 2)) + $this.dynArchive_1 = null; + else + $this.dynArchive_1 = dynArchive; + if (0 === (seen1 & 4)) + $this.dynPgc_1 = null; + else + $this.dynPgc_1 = dynPgc; + if (0 === (seen1 & 8)) + $this.dynCourSeason_1 = null; + else + $this.dynCourSeason_1 = dynCourSeason; + if (0 === (seen1 & 16)) + $this.dynCourBatch_1 = null; + else + $this.dynCourBatch_1 = dynCourBatch; + if (0 === (seen1 & 32)) + $this.dynForward_1 = null; + else + $this.dynForward_1 = dynForward; + if (0 === (seen1 & 64)) + $this.dynDraw_1 = null; + else + $this.dynDraw_1 = dynDraw; + if (0 === (seen1 & 128)) + $this.dynArticle_1 = null; + else + $this.dynArticle_1 = dynArticle; + if (0 === (seen1 & 256)) + $this.dynMusic_1 = null; + else + $this.dynMusic_1 = dynMusic; + if (0 === (seen1 & 512)) + $this.dynCommon_1 = null; + else + $this.dynCommon_1 = dynCommon; + if (0 === (seen1 & 1024)) + $this.dynCommonLive_1 = null; + else + $this.dynCommonLive_1 = dynCommonLive; + if (0 === (seen1 & 2048)) + $this.dynMedialist_1 = null; + else + $this.dynMedialist_1 = dynMedialist; + if (0 === (seen1 & 4096)) + $this.dynApplet_1 = null; + else + $this.dynApplet_1 = dynApplet; + if (0 === (seen1 & 8192)) + $this.dynSubscription_1 = null; + else + $this.dynSubscription_1 = dynSubscription; + if (0 === (seen1 & 16384)) + $this.dynLiveRcmd_1 = null; + else + $this.dynLiveRcmd_1 = dynLiveRcmd; + if (0 === (seen1 & 32768)) + $this.dynUgcSeason_1 = null; + else + $this.dynUgcSeason_1 = dynUgcSeason; + if (0 === (seen1 & 65536)) + $this.dynSubscriptionNew_1 = null; + else + $this.dynSubscriptionNew_1 = dynSubscriptionNew; + if (0 === (seen1 & 131072)) + $this.dynCourBatchUp_1 = null; + else + $this.dynCourBatchUp_1 = dynCourBatchUp; + if (0 === (seen1 & 262144)) + $this.dynTopicSet_1 = null; + else + $this.dynTopicSet_1 = dynTopicSet; + var tmp = $this; + tmp.moduleItemNumber$delegate_1 = lazy_0(KModuleDynamic$_init_$lambda_t8fc8z($this)); + return $this; + } + } + class Companion_1007 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.MdlDynForward'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_994(); + } + } + class $serializer_994 { + constructor() { + $serializer_instance_994 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KMdlDynForward', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('item', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('rtype', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_942()), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = 0; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_942(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_942(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KMdlDynForward.new_com_bapis_bilibili_app_dynamic_v2_KMdlDynForward_z5aoi3_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_ma3med_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.item == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_942(), value.item); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.rtype === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.rtype); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_ma3med_k$(encoder, value instanceof KMdlDynForward ? value : THROW_CCE()); + } + } + class KMdlDynForward { + constructor(item, rtype) { + Companion_instance_1007; + item = item === VOID ? null : item; + rtype = rtype === VOID ? 0 : rtype; + this.item = item; + this.rtype = rtype; + } + get_item_woo5lo_k$() { + return this.item; + } + get_rtype_iy6mbn_k$() { + return this.rtype; + } + component1_7eebsc_k$() { + return this.item; + } + component2_7eebsb_k$() { + return this.rtype; + } + copy_odzwrx_k$(item, rtype) { + return new KMdlDynForward(item, rtype); + } + copy(item, rtype, $super) { + item = item === VOID ? this.item : item; + rtype = rtype === VOID ? this.rtype : rtype; + return this.copy_odzwrx_k$(item, rtype); + } + toString() { + return 'KMdlDynForward(item=' + this.item + ', rtype=' + this.rtype + ')'; + } + hashCode() { + var result = this.item == null ? 0 : this.item.hashCode(); + result = imul(result, 31) + this.rtype | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KMdlDynForward)) + return false; + var tmp0_other_with_cast = other instanceof KMdlDynForward ? other : THROW_CCE(); + if (!equals(this.item, tmp0_other_with_cast.item)) + return false; + if (!(this.rtype === tmp0_other_with_cast.rtype)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KMdlDynForward_z5aoi3_k$(seen1, item, rtype, serializationConstructorMarker) { + Companion_instance_1007; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_994().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.item = null; + else + $this.item = item; + if (0 === (seen1 & 2)) + $this.rtype = 0; + else + $this.rtype = rtype; + return $this; + } + } + class Companion_1008 { + constructor() { + Companion_instance_1008 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer($serializer_getInstance_996()), null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.ModuleLikeUser'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_995(); + } + } + class $serializer_995 { + constructor() { + $serializer_instance_995 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KModuleLikeUser', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('likeUsers', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('displayText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_1008().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0], StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp7_cached = Companion_getInstance_1008().$childSerializers_1; + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp7_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp7_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KModuleLikeUser_0.new_com_bapis_bilibili_app_dynamic_v2_KModuleLikeUser_u87der_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_5supzw_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_1008().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.likeUsers, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.likeUsers); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.displayText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.displayText); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_5supzw_k$(encoder, value instanceof KModuleLikeUser_0 ? value : THROW_CCE()); + } + } + class KModuleLikeUser_0 { + constructor(likeUsers, displayText) { + Companion_getInstance_1008(); + likeUsers = likeUsers === VOID ? emptyList() : likeUsers; + displayText = displayText === VOID ? '' : displayText; + this.likeUsers = likeUsers; + this.displayText = displayText; + } + get_likeUsers_5nlf60_k$() { + return this.likeUsers; + } + get_displayText_ss8q56_k$() { + return this.displayText; + } + component1_7eebsc_k$() { + return this.likeUsers; + } + component2_7eebsb_k$() { + return this.displayText; + } + copy_b6fhns_k$(likeUsers, displayText) { + return new KModuleLikeUser_0(likeUsers, displayText); + } + copy(likeUsers, displayText, $super) { + likeUsers = likeUsers === VOID ? this.likeUsers : likeUsers; + displayText = displayText === VOID ? this.displayText : displayText; + return this.copy_b6fhns_k$(likeUsers, displayText); + } + toString() { + return 'KModuleLikeUser(likeUsers=' + this.likeUsers + ', displayText=' + this.displayText + ')'; + } + hashCode() { + var result = hashCode(this.likeUsers); + result = imul(result, 31) + getStringHashCode(this.displayText) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KModuleLikeUser_0)) + return false; + var tmp0_other_with_cast = other instanceof KModuleLikeUser_0 ? other : THROW_CCE(); + if (!equals(this.likeUsers, tmp0_other_with_cast.likeUsers)) + return false; + if (!(this.displayText === tmp0_other_with_cast.displayText)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KModuleLikeUser_u87der_k$(seen1, likeUsers, displayText, serializationConstructorMarker) { + Companion_getInstance_1008(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_995().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.likeUsers = emptyList(); + else + $this.likeUsers = likeUsers; + if (0 === (seen1 & 2)) + $this.displayText = ''; + else + $this.displayText = displayText; + return $this; + } + } + class Companion_1009 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.LikeUser'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_996(); + } + } + class $serializer_996 { + constructor() { + $serializer_instance_996 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KLikeUser', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('uid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('uname', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('uri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KLikeUser.new_com_bapis_bilibili_app_dynamic_v2_KLikeUser_sakswe_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_wbscq0_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.uid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.uid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.uname === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.uname); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.uri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.uri); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_wbscq0_k$(encoder, value instanceof KLikeUser ? value : THROW_CCE()); + } + } + class KLikeUser { + constructor(uid, uname, uri) { + Companion_instance_1009; + uid = uid === VOID ? new Long(0, 0) : uid; + uname = uname === VOID ? '' : uname; + uri = uri === VOID ? '' : uri; + this.uid = uid; + this.uname = uname; + this.uri = uri; + } + get_uid_18iuqh_k$() { + return this.uid; + } + get_uname_izpobb_k$() { + return this.uname; + } + get_uri_18iuil_k$() { + return this.uri; + } + component1_7eebsc_k$() { + return this.uid; + } + component2_7eebsb_k$() { + return this.uname; + } + component3_7eebsa_k$() { + return this.uri; + } + copy_ijggmr_k$(uid, uname, uri) { + return new KLikeUser(uid, uname, uri); + } + copy(uid, uname, uri, $super) { + uid = uid === VOID ? this.uid : uid; + uname = uname === VOID ? this.uname : uname; + uri = uri === VOID ? this.uri : uri; + return this.copy_ijggmr_k$(uid, uname, uri); + } + toString() { + return 'KLikeUser(uid=' + this.uid.toString() + ', uname=' + this.uname + ', uri=' + this.uri + ')'; + } + hashCode() { + var result = this.uid.hashCode(); + result = imul(result, 31) + getStringHashCode(this.uname) | 0; + result = imul(result, 31) + getStringHashCode(this.uri) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KLikeUser)) + return false; + var tmp0_other_with_cast = other instanceof KLikeUser ? other : THROW_CCE(); + if (!this.uid.equals(tmp0_other_with_cast.uid)) + return false; + if (!(this.uname === tmp0_other_with_cast.uname)) + return false; + if (!(this.uri === tmp0_other_with_cast.uri)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KLikeUser_sakswe_k$(seen1, uid, uname, uri, serializationConstructorMarker) { + Companion_instance_1009; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_996().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.uid = new Long(0, 0); + else + $this.uid = uid; + if (0 === (seen1 & 2)) + $this.uname = ''; + else + $this.uname = uname; + if (0 === (seen1 & 4)) + $this.uri = ''; + else + $this.uri = uri; + return $this; + } + } + class Companion_1010 { + constructor() { + Companion_instance_1010 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer($serializer_getInstance_998()), null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.ModuleExtend'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_997(); + } + } + class $serializer_997 { + constructor() { + $serializer_instance_997 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KModuleExtend', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('extend', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('uri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_1010().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0], StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp7_cached = Companion_getInstance_1010().$childSerializers_1; + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp7_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp7_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KModuleExtend_0.new_com_bapis_bilibili_app_dynamic_v2_KModuleExtend_6qjfsk_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_sfddfg_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_1010().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.extend, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.extend); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.uri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.uri); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_sfddfg_k$(encoder, value instanceof KModuleExtend_0 ? value : THROW_CCE()); + } + } + class KModuleExtend_0 { + constructor(extend, uri) { + Companion_getInstance_1010(); + extend = extend === VOID ? emptyList() : extend; + uri = uri === VOID ? '' : uri; + this.extend = extend; + this.uri = uri; + } + get_extend_d3bgo3_k$() { + return this.extend; + } + get_uri_18iuil_k$() { + return this.uri; + } + component1_7eebsc_k$() { + return this.extend; + } + component2_7eebsb_k$() { + return this.uri; + } + copy_nqe7xt_k$(extend, uri) { + return new KModuleExtend_0(extend, uri); + } + copy(extend, uri, $super) { + extend = extend === VOID ? this.extend : extend; + uri = uri === VOID ? this.uri : uri; + return this.copy_nqe7xt_k$(extend, uri); + } + toString() { + return 'KModuleExtend(extend=' + this.extend + ', uri=' + this.uri + ')'; + } + hashCode() { + var result = hashCode(this.extend); + result = imul(result, 31) + getStringHashCode(this.uri) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KModuleExtend_0)) + return false; + var tmp0_other_with_cast = other instanceof KModuleExtend_0 ? other : THROW_CCE(); + if (!equals(this.extend, tmp0_other_with_cast.extend)) + return false; + if (!(this.uri === tmp0_other_with_cast.uri)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KModuleExtend_6qjfsk_k$(seen1, extend, uri, serializationConstructorMarker) { + Companion_getInstance_1010(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_997().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.extend = emptyList(); + else + $this.extend = extend; + if (0 === (seen1 & 2)) + $this.uri = ''; + else + $this.uri = uri; + return $this; + } + } + class KExtend_2 { + constructor(value) { + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + } + class KExtInfoTopic extends KExtend_2 { + constructor() { + KExtInfoTopic_instance = null; + super(0); + KExtInfoTopic_instance = this; + } + } + class KExtInfoLbs extends KExtend_2 { + constructor() { + KExtInfoLbs_instance = null; + super(1); + KExtInfoLbs_instance = this; + } + } + class KExtInfoHot extends KExtend_2 { + constructor() { + KExtInfoHot_instance = null; + super(2); + KExtInfoHot_instance = this; + } + } + class KExtInfoGame extends KExtend_2 { + constructor() { + KExtInfoGame_instance = null; + super(3); + KExtInfoGame_instance = this; + } + } + class KExtInfoCommon extends KExtend_2 { + constructor() { + KExtInfoCommon_instance = null; + super(4); + KExtInfoCommon_instance = this; + } + } + class KExtInfoOgv extends KExtend_2 { + constructor() { + KExtInfoOgv_instance = null; + super(5); + KExtInfoOgv_instance = this; + } + } + class Companion_1011 { + constructor() { + Companion_instance_1011 = this; + var tmp = this; + tmp.extendValues$delegate_1 = lazy_0(KModuleExtendItem$Companion$extendValues$delegate$lambda); + this.targetPath = '/bilibili.app.dynamic.v2.ModuleExtendItem'; + } + get_extendValues_1opn17_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.extendValues$delegate_1; + var thisRef = this; + var property = extendValues$factory_1(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_998(); + } + get extendValues() { + return this.get_extendValues_1opn17_k$(); + } + } + class $serializer_998 { + constructor() { + $serializer_instance_998 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KModuleExtendItem', this, 7); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('extInfoTopic', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('extInfoLbs', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('extInfoHot', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('extInfoGame', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('extInfoCommon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('extInfoOgv', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), get_nullable($serializer_getInstance_999()), get_nullable($serializer_getInstance_1000()), get_nullable($serializer_getInstance_1001()), get_nullable($serializer_getInstance_1002()), get_nullable($serializer_getInstance_1003()), get_nullable($serializer_getInstance_1004())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_transient0 = 0; + var tmp12_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp12_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_999(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_1000(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_1001(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_1002(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_1003(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_1004(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + } else + while (tmp1_flag) { + tmp2_index = tmp12_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_999(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_1000(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_1001(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_1002(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_1003(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_1004(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp12_input.endStructure_1xqz0n_k$(tmp0_desc); + return KModuleExtendItem.new_com_bapis_bilibili_app_dynamic_v2_KModuleExtendItem_xtyi4t_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, null); + } + serialize_tvc2q7_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.type === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.type); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.extInfoTopic_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_999(), value.extInfoTopic_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.extInfoLbs_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_1000(), value.extInfoLbs_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.extInfoHot_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_1001(), value.extInfoHot_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.extInfoGame_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, $serializer_getInstance_1002(), value.extInfoGame_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.extInfoCommon_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 5, $serializer_getInstance_1003(), value.extInfoCommon_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.extInfoOgv_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 6, $serializer_getInstance_1004(), value.extInfoOgv_1); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_tvc2q7_k$(encoder, value instanceof KModuleExtendItem ? value : THROW_CCE()); + } + } + class KModuleExtendItem { + constructor(type, extInfoTopic, extInfoLbs, extInfoHot, extInfoGame, extInfoCommon, extInfoOgv) { + Companion_getInstance_1011(); + type = type === VOID ? 0 : type; + extInfoTopic = extInfoTopic === VOID ? null : extInfoTopic; + extInfoLbs = extInfoLbs === VOID ? null : extInfoLbs; + extInfoHot = extInfoHot === VOID ? null : extInfoHot; + extInfoGame = extInfoGame === VOID ? null : extInfoGame; + extInfoCommon = extInfoCommon === VOID ? null : extInfoCommon; + extInfoOgv = extInfoOgv === VOID ? null : extInfoOgv; + this.type = type; + this.extInfoTopic_1 = extInfoTopic; + this.extInfoLbs_1 = extInfoLbs; + this.extInfoHot_1 = extInfoHot; + this.extInfoGame_1 = extInfoGame; + this.extInfoCommon_1 = extInfoCommon; + this.extInfoOgv_1 = extInfoOgv; + var tmp = this; + tmp.extendNumber$delegate_1 = lazy_0(KModuleExtendItem$extendNumber$delegate$lambda(this)); + } + get_type_wovaf7_k$() { + return this.type; + } + extendValue() { + if (!(this.extInfoTopic_1 == null)) { + var tmp = this.extInfoTopic_1; + return (tmp == null ? true : !(tmp == null)) ? tmp : null; + } else if (!(this.extInfoLbs_1 == null)) { + var tmp_0 = this.extInfoLbs_1; + return (tmp_0 == null ? true : !(tmp_0 == null)) ? tmp_0 : null; + } else if (!(this.extInfoHot_1 == null)) { + var tmp_1 = this.extInfoHot_1; + return (tmp_1 == null ? true : !(tmp_1 == null)) ? tmp_1 : null; + } else if (!(this.extInfoGame_1 == null)) { + var tmp_2 = this.extInfoGame_1; + return (tmp_2 == null ? true : !(tmp_2 == null)) ? tmp_2 : null; + } else if (!(this.extInfoCommon_1 == null)) { + var tmp_3 = this.extInfoCommon_1; + return (tmp_3 == null ? true : !(tmp_3 == null)) ? tmp_3 : null; + } else if (!(this.extInfoOgv_1 == null)) { + var tmp_4 = this.extInfoOgv_1; + return (tmp_4 == null ? true : !(tmp_4 == null)) ? tmp_4 : null; + } else { + return null; + } + } + extendTypeJs() { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = Companion_getInstance_1011().extendValues; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.KModuleExtendItem.extendType.' call + var it = element; + tmp$ret$0 = it.value === _get_extendNumber__l91wt4_1(this); + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + return tmp$ret$1; + } + typeEnum() { + return Companion_getInstance_949().fromValue(this.type); + } + component1_7eebsc_k$() { + return this.type; + } + copy_4ctpqh_k$(type, extInfoTopic, extInfoLbs, extInfoHot, extInfoGame, extInfoCommon, extInfoOgv) { + return new KModuleExtendItem(type, extInfoTopic, extInfoLbs, extInfoHot, extInfoGame, extInfoCommon, extInfoOgv); + } + copy(type, extInfoTopic, extInfoLbs, extInfoHot, extInfoGame, extInfoCommon, extInfoOgv, $super) { + type = type === VOID ? this.type : type; + extInfoTopic = extInfoTopic === VOID ? this.extInfoTopic_1 : extInfoTopic; + extInfoLbs = extInfoLbs === VOID ? this.extInfoLbs_1 : extInfoLbs; + extInfoHot = extInfoHot === VOID ? this.extInfoHot_1 : extInfoHot; + extInfoGame = extInfoGame === VOID ? this.extInfoGame_1 : extInfoGame; + extInfoCommon = extInfoCommon === VOID ? this.extInfoCommon_1 : extInfoCommon; + extInfoOgv = extInfoOgv === VOID ? this.extInfoOgv_1 : extInfoOgv; + return this.copy_4ctpqh_k$(type, extInfoTopic, extInfoLbs, extInfoHot, extInfoGame, extInfoCommon, extInfoOgv); + } + toString() { + return 'KModuleExtendItem(type=' + this.type + ', extInfoTopic=' + this.extInfoTopic_1 + ', extInfoLbs=' + this.extInfoLbs_1 + ', extInfoHot=' + this.extInfoHot_1 + ', extInfoGame=' + this.extInfoGame_1 + ', extInfoCommon=' + this.extInfoCommon_1 + ', extInfoOgv=' + this.extInfoOgv_1 + ')'; + } + hashCode() { + var result = this.type; + result = imul(result, 31) + (this.extInfoTopic_1 == null ? 0 : this.extInfoTopic_1.hashCode()) | 0; + result = imul(result, 31) + (this.extInfoLbs_1 == null ? 0 : this.extInfoLbs_1.hashCode()) | 0; + result = imul(result, 31) + (this.extInfoHot_1 == null ? 0 : this.extInfoHot_1.hashCode()) | 0; + result = imul(result, 31) + (this.extInfoGame_1 == null ? 0 : this.extInfoGame_1.hashCode()) | 0; + result = imul(result, 31) + (this.extInfoCommon_1 == null ? 0 : this.extInfoCommon_1.hashCode()) | 0; + result = imul(result, 31) + (this.extInfoOgv_1 == null ? 0 : this.extInfoOgv_1.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KModuleExtendItem)) + return false; + var tmp0_other_with_cast = other instanceof KModuleExtendItem ? other : THROW_CCE(); + if (!(this.type === tmp0_other_with_cast.type)) + return false; + if (!equals(this.extInfoTopic_1, tmp0_other_with_cast.extInfoTopic_1)) + return false; + if (!equals(this.extInfoLbs_1, tmp0_other_with_cast.extInfoLbs_1)) + return false; + if (!equals(this.extInfoHot_1, tmp0_other_with_cast.extInfoHot_1)) + return false; + if (!equals(this.extInfoGame_1, tmp0_other_with_cast.extInfoGame_1)) + return false; + if (!equals(this.extInfoCommon_1, tmp0_other_with_cast.extInfoCommon_1)) + return false; + if (!equals(this.extInfoOgv_1, tmp0_other_with_cast.extInfoOgv_1)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KModuleExtendItem_xtyi4t_k$(seen1, type, extInfoTopic, extInfoLbs, extInfoHot, extInfoGame, extInfoCommon, extInfoOgv, serializationConstructorMarker) { + Companion_getInstance_1011(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_998().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.type = 0; + else + $this.type = type; + if (0 === (seen1 & 2)) + $this.extInfoTopic_1 = null; + else + $this.extInfoTopic_1 = extInfoTopic; + if (0 === (seen1 & 4)) + $this.extInfoLbs_1 = null; + else + $this.extInfoLbs_1 = extInfoLbs; + if (0 === (seen1 & 8)) + $this.extInfoHot_1 = null; + else + $this.extInfoHot_1 = extInfoHot; + if (0 === (seen1 & 16)) + $this.extInfoGame_1 = null; + else + $this.extInfoGame_1 = extInfoGame; + if (0 === (seen1 & 32)) + $this.extInfoCommon_1 = null; + else + $this.extInfoCommon_1 = extInfoCommon; + if (0 === (seen1 & 64)) + $this.extInfoOgv_1 = null; + else + $this.extInfoOgv_1 = extInfoOgv; + var tmp = $this; + tmp.extendNumber$delegate_1 = lazy_0(KModuleExtendItem$_init_$lambda_lqtryx($this)); + return $this; + } + } + class Companion_1012 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.ExtInfoTopic'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_999(); + } + } + class $serializer_999 { + constructor() { + $serializer_instance_999 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KExtInfoTopic', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('uri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('icon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KExtInfoTopic_0.new_com_bapis_bilibili_app_dynamic_v2_KExtInfoTopic_n81lit_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_saio16_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.uri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.uri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.icon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.icon); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_saio16_k$(encoder, value instanceof KExtInfoTopic_0 ? value : THROW_CCE()); + } + } + class KExtInfoTopic_0 { + constructor(title, uri, icon) { + Companion_instance_1012; + title = title === VOID ? '' : title; + uri = uri === VOID ? '' : uri; + icon = icon === VOID ? '' : icon; + this.title = title; + this.uri = uri; + this.icon = icon; + } + get_title_iz32un_k$() { + return this.title; + } + get_uri_18iuil_k$() { + return this.uri; + } + get_icon_wont8i_k$() { + return this.icon; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.uri; + } + component3_7eebsa_k$() { + return this.icon; + } + copy_nc7k0r_k$(title, uri, icon) { + return new KExtInfoTopic_0(title, uri, icon); + } + copy(title, uri, icon, $super) { + title = title === VOID ? this.title : title; + uri = uri === VOID ? this.uri : uri; + icon = icon === VOID ? this.icon : icon; + return this.copy_nc7k0r_k$(title, uri, icon); + } + toString() { + return 'KExtInfoTopic(title=' + this.title + ', uri=' + this.uri + ', icon=' + this.icon + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.uri) | 0; + result = imul(result, 31) + getStringHashCode(this.icon) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KExtInfoTopic_0)) + return false; + var tmp0_other_with_cast = other instanceof KExtInfoTopic_0 ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.uri === tmp0_other_with_cast.uri)) + return false; + if (!(this.icon === tmp0_other_with_cast.icon)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KExtInfoTopic_n81lit_k$(seen1, title, uri, icon, serializationConstructorMarker) { + Companion_instance_1012; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_999().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.uri = ''; + else + $this.uri = uri; + if (0 === (seen1 & 4)) + $this.icon = ''; + else + $this.icon = icon; + return $this; + } + } + class Companion_1013 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.ExtInfoLBS'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1000(); + } + } + class $serializer_1000 { + constructor() { + $serializer_instance_1000 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KExtInfoLBS', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('uri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('icon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('poiType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = 0; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KExtInfoLBS.new_com_bapis_bilibili_app_dynamic_v2_KExtInfoLBS_5nmnsz_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_jajlwk_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.uri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.uri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.icon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.icon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.poiType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 3, value.poiType); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_jajlwk_k$(encoder, value instanceof KExtInfoLBS ? value : THROW_CCE()); + } + } + class KExtInfoLBS { + constructor(title, uri, icon, poiType) { + Companion_instance_1013; + title = title === VOID ? '' : title; + uri = uri === VOID ? '' : uri; + icon = icon === VOID ? '' : icon; + poiType = poiType === VOID ? 0 : poiType; + this.title = title; + this.uri = uri; + this.icon = icon; + this.poiType = poiType; + } + get_title_iz32un_k$() { + return this.title; + } + get_uri_18iuil_k$() { + return this.uri; + } + get_icon_wont8i_k$() { + return this.icon; + } + get_poiType_5dewxx_k$() { + return this.poiType; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.uri; + } + component3_7eebsa_k$() { + return this.icon; + } + component4_7eebs9_k$() { + return this.poiType; + } + copy_ek39hv_k$(title, uri, icon, poiType) { + return new KExtInfoLBS(title, uri, icon, poiType); + } + copy(title, uri, icon, poiType, $super) { + title = title === VOID ? this.title : title; + uri = uri === VOID ? this.uri : uri; + icon = icon === VOID ? this.icon : icon; + poiType = poiType === VOID ? this.poiType : poiType; + return this.copy_ek39hv_k$(title, uri, icon, poiType); + } + toString() { + return 'KExtInfoLBS(title=' + this.title + ', uri=' + this.uri + ', icon=' + this.icon + ', poiType=' + this.poiType + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.uri) | 0; + result = imul(result, 31) + getStringHashCode(this.icon) | 0; + result = imul(result, 31) + this.poiType | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KExtInfoLBS)) + return false; + var tmp0_other_with_cast = other instanceof KExtInfoLBS ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.uri === tmp0_other_with_cast.uri)) + return false; + if (!(this.icon === tmp0_other_with_cast.icon)) + return false; + if (!(this.poiType === tmp0_other_with_cast.poiType)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KExtInfoLBS_5nmnsz_k$(seen1, title, uri, icon, poiType, serializationConstructorMarker) { + Companion_instance_1013; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1000().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.uri = ''; + else + $this.uri = uri; + if (0 === (seen1 & 4)) + $this.icon = ''; + else + $this.icon = icon; + if (0 === (seen1 & 8)) + $this.poiType = 0; + else + $this.poiType = poiType; + return $this; + } + } + class Companion_1014 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.ExtInfoHot'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1001(); + } + } + class $serializer_1001 { + constructor() { + $serializer_instance_1001 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KExtInfoHot', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('uri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('icon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KExtInfoHot_0.new_com_bapis_bilibili_app_dynamic_v2_KExtInfoHot_fx76st_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_1lihu4_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.uri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.uri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.icon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.icon); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_1lihu4_k$(encoder, value instanceof KExtInfoHot_0 ? value : THROW_CCE()); + } + } + class KExtInfoHot_0 { + constructor(title, uri, icon) { + Companion_instance_1014; + title = title === VOID ? '' : title; + uri = uri === VOID ? '' : uri; + icon = icon === VOID ? '' : icon; + this.title = title; + this.uri = uri; + this.icon = icon; + } + get_title_iz32un_k$() { + return this.title; + } + get_uri_18iuil_k$() { + return this.uri; + } + get_icon_wont8i_k$() { + return this.icon; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.uri; + } + component3_7eebsa_k$() { + return this.icon; + } + copy_nc7k0r_k$(title, uri, icon) { + return new KExtInfoHot_0(title, uri, icon); + } + copy(title, uri, icon, $super) { + title = title === VOID ? this.title : title; + uri = uri === VOID ? this.uri : uri; + icon = icon === VOID ? this.icon : icon; + return this.copy_nc7k0r_k$(title, uri, icon); + } + toString() { + return 'KExtInfoHot(title=' + this.title + ', uri=' + this.uri + ', icon=' + this.icon + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.uri) | 0; + result = imul(result, 31) + getStringHashCode(this.icon) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KExtInfoHot_0)) + return false; + var tmp0_other_with_cast = other instanceof KExtInfoHot_0 ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.uri === tmp0_other_with_cast.uri)) + return false; + if (!(this.icon === tmp0_other_with_cast.icon)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KExtInfoHot_fx76st_k$(seen1, title, uri, icon, serializationConstructorMarker) { + Companion_instance_1014; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1001().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.uri = ''; + else + $this.uri = uri; + if (0 === (seen1 & 4)) + $this.icon = ''; + else + $this.icon = icon; + return $this; + } + } + class Companion_1015 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.ExtInfoGame'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1002(); + } + } + class $serializer_1002 { + constructor() { + $serializer_instance_1002 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KExtInfoGame', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('uri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('icon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KExtInfoGame_0.new_com_bapis_bilibili_app_dynamic_v2_KExtInfoGame_8tfpjy_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_8ucvnp_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.uri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.uri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.icon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.icon); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_8ucvnp_k$(encoder, value instanceof KExtInfoGame_0 ? value : THROW_CCE()); + } + } + class KExtInfoGame_0 { + constructor(title, uri, icon) { + Companion_instance_1015; + title = title === VOID ? '' : title; + uri = uri === VOID ? '' : uri; + icon = icon === VOID ? '' : icon; + this.title = title; + this.uri = uri; + this.icon = icon; + } + get_title_iz32un_k$() { + return this.title; + } + get_uri_18iuil_k$() { + return this.uri; + } + get_icon_wont8i_k$() { + return this.icon; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.uri; + } + component3_7eebsa_k$() { + return this.icon; + } + copy_nc7k0r_k$(title, uri, icon) { + return new KExtInfoGame_0(title, uri, icon); + } + copy(title, uri, icon, $super) { + title = title === VOID ? this.title : title; + uri = uri === VOID ? this.uri : uri; + icon = icon === VOID ? this.icon : icon; + return this.copy_nc7k0r_k$(title, uri, icon); + } + toString() { + return 'KExtInfoGame(title=' + this.title + ', uri=' + this.uri + ', icon=' + this.icon + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.uri) | 0; + result = imul(result, 31) + getStringHashCode(this.icon) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KExtInfoGame_0)) + return false; + var tmp0_other_with_cast = other instanceof KExtInfoGame_0 ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.uri === tmp0_other_with_cast.uri)) + return false; + if (!(this.icon === tmp0_other_with_cast.icon)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KExtInfoGame_8tfpjy_k$(seen1, title, uri, icon, serializationConstructorMarker) { + Companion_instance_1015; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1002().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.uri = ''; + else + $this.uri = uri; + if (0 === (seen1 & 4)) + $this.icon = ''; + else + $this.icon = icon; + return $this; + } + } + class Companion_1016 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.ExtInfoCommon'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1003(); + } + } + class $serializer_1003 { + constructor() { + $serializer_instance_1003 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KExtInfoCommon', this, 10); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('uri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('icon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('poiType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('subModule', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('actionText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('actionUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('rid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('isShowLight', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), BooleanSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = 0; + var tmp8_local4 = 0; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_local8 = new Long(0, 0); + var tmp13_local9 = false; + var tmp14_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp14_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp14_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + } else + while (tmp1_flag) { + tmp2_index = tmp14_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp14_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp14_input.endStructure_1xqz0n_k$(tmp0_desc); + return KExtInfoCommon_0.new_com_bapis_bilibili_app_dynamic_v2_KExtInfoCommon_nctwg5_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, null); + } + serialize_tfzmu6_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.uri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.uri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.icon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.icon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.poiType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 3, value.poiType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.type === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 4, value.type); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.subModule === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.subModule); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.actionText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.actionText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.actionUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.actionUrl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !value.rid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 8, value.rid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.isShowLight === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 9, value.isShowLight); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_tfzmu6_k$(encoder, value instanceof KExtInfoCommon_0 ? value : THROW_CCE()); + } + } + class KExtInfoCommon_0 { + constructor(title, uri, icon, poiType, type, subModule, actionText, actionUrl, rid, isShowLight) { + Companion_instance_1016; + title = title === VOID ? '' : title; + uri = uri === VOID ? '' : uri; + icon = icon === VOID ? '' : icon; + poiType = poiType === VOID ? 0 : poiType; + type = type === VOID ? 0 : type; + subModule = subModule === VOID ? '' : subModule; + actionText = actionText === VOID ? '' : actionText; + actionUrl = actionUrl === VOID ? '' : actionUrl; + rid = rid === VOID ? new Long(0, 0) : rid; + isShowLight = isShowLight === VOID ? false : isShowLight; + this.title = title; + this.uri = uri; + this.icon = icon; + this.poiType = poiType; + this.type = type; + this.subModule = subModule; + this.actionText = actionText; + this.actionUrl = actionUrl; + this.rid = rid; + this.isShowLight = isShowLight; + } + get_title_iz32un_k$() { + return this.title; + } + get_uri_18iuil_k$() { + return this.uri; + } + get_icon_wont8i_k$() { + return this.icon; + } + get_poiType_5dewxx_k$() { + return this.poiType; + } + get_type_wovaf7_k$() { + return this.type; + } + get_subModule_sb4rh_k$() { + return this.subModule; + } + get_actionText_agard8_k$() { + return this.actionText; + } + get_actionUrl_bskrsg_k$() { + return this.actionUrl; + } + get_rid_18iwyk_k$() { + return this.rid; + } + get_isShowLight_1lyso6_k$() { + return this.isShowLight; + } + typeEnum() { + return Companion_getInstance_949().fromValue(this.type); + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.uri; + } + component3_7eebsa_k$() { + return this.icon; + } + component4_7eebs9_k$() { + return this.poiType; + } + component5_7eebs8_k$() { + return this.type; + } + component6_7eebs7_k$() { + return this.subModule; + } + component7_7eebs6_k$() { + return this.actionText; + } + component8_7eebs5_k$() { + return this.actionUrl; + } + component9_7eebs4_k$() { + return this.rid; + } + component10_gazzfo_k$() { + return this.isShowLight; + } + copy_l8pehe_k$(title, uri, icon, poiType, type, subModule, actionText, actionUrl, rid, isShowLight) { + return new KExtInfoCommon_0(title, uri, icon, poiType, type, subModule, actionText, actionUrl, rid, isShowLight); + } + copy(title, uri, icon, poiType, type, subModule, actionText, actionUrl, rid, isShowLight, $super) { + title = title === VOID ? this.title : title; + uri = uri === VOID ? this.uri : uri; + icon = icon === VOID ? this.icon : icon; + poiType = poiType === VOID ? this.poiType : poiType; + type = type === VOID ? this.type : type; + subModule = subModule === VOID ? this.subModule : subModule; + actionText = actionText === VOID ? this.actionText : actionText; + actionUrl = actionUrl === VOID ? this.actionUrl : actionUrl; + rid = rid === VOID ? this.rid : rid; + isShowLight = isShowLight === VOID ? this.isShowLight : isShowLight; + return this.copy_l8pehe_k$(title, uri, icon, poiType, type, subModule, actionText, actionUrl, rid, isShowLight); + } + toString() { + return 'KExtInfoCommon(title=' + this.title + ', uri=' + this.uri + ', icon=' + this.icon + ', poiType=' + this.poiType + ', type=' + this.type + ', subModule=' + this.subModule + ', actionText=' + this.actionText + ', actionUrl=' + this.actionUrl + ', rid=' + this.rid.toString() + ', isShowLight=' + this.isShowLight + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.uri) | 0; + result = imul(result, 31) + getStringHashCode(this.icon) | 0; + result = imul(result, 31) + this.poiType | 0; + result = imul(result, 31) + this.type | 0; + result = imul(result, 31) + getStringHashCode(this.subModule) | 0; + result = imul(result, 31) + getStringHashCode(this.actionText) | 0; + result = imul(result, 31) + getStringHashCode(this.actionUrl) | 0; + result = imul(result, 31) + this.rid.hashCode() | 0; + result = imul(result, 31) + getBooleanHashCode(this.isShowLight) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KExtInfoCommon_0)) + return false; + var tmp0_other_with_cast = other instanceof KExtInfoCommon_0 ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.uri === tmp0_other_with_cast.uri)) + return false; + if (!(this.icon === tmp0_other_with_cast.icon)) + return false; + if (!(this.poiType === tmp0_other_with_cast.poiType)) + return false; + if (!(this.type === tmp0_other_with_cast.type)) + return false; + if (!(this.subModule === tmp0_other_with_cast.subModule)) + return false; + if (!(this.actionText === tmp0_other_with_cast.actionText)) + return false; + if (!(this.actionUrl === tmp0_other_with_cast.actionUrl)) + return false; + if (!this.rid.equals(tmp0_other_with_cast.rid)) + return false; + if (!(this.isShowLight === tmp0_other_with_cast.isShowLight)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KExtInfoCommon_nctwg5_k$(seen1, title, uri, icon, poiType, type, subModule, actionText, actionUrl, rid, isShowLight, serializationConstructorMarker) { + Companion_instance_1016; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1003().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.uri = ''; + else + $this.uri = uri; + if (0 === (seen1 & 4)) + $this.icon = ''; + else + $this.icon = icon; + if (0 === (seen1 & 8)) + $this.poiType = 0; + else + $this.poiType = poiType; + if (0 === (seen1 & 16)) + $this.type = 0; + else + $this.type = type; + if (0 === (seen1 & 32)) + $this.subModule = ''; + else + $this.subModule = subModule; + if (0 === (seen1 & 64)) + $this.actionText = ''; + else + $this.actionText = actionText; + if (0 === (seen1 & 128)) + $this.actionUrl = ''; + else + $this.actionUrl = actionUrl; + if (0 === (seen1 & 256)) + $this.rid = new Long(0, 0); + else + $this.rid = rid; + if (0 === (seen1 & 512)) + $this.isShowLight = false; + else + $this.isShowLight = isShowLight; + return $this; + } + } + class Companion_1017 { + constructor() { + Companion_instance_1017 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer($serializer_getInstance_1005())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.ExtInfoOGV'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1004(); + } + } + class $serializer_1004 { + constructor() { + $serializer_instance_1004 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KExtInfoOGV', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('infoOgv', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_1017().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp6_cached = Companion_getInstance_1017().$childSerializers_1; + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KExtInfoOGV.new_com_bapis_bilibili_app_dynamic_v2_KExtInfoOGV_dm1sht_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_pxy8d7_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_1017().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.infoOgv, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.infoOgv); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_pxy8d7_k$(encoder, value instanceof KExtInfoOGV ? value : THROW_CCE()); + } + } + class KExtInfoOGV { + constructor(infoOgv) { + Companion_getInstance_1017(); + infoOgv = infoOgv === VOID ? emptyList() : infoOgv; + this.infoOgv = infoOgv; + } + get_infoOgv_xfskkn_k$() { + return this.infoOgv; + } + component1_7eebsc_k$() { + return this.infoOgv; + } + copy_qlj3t6_k$(infoOgv) { + return new KExtInfoOGV(infoOgv); + } + copy(infoOgv, $super) { + infoOgv = infoOgv === VOID ? this.infoOgv : infoOgv; + return this.copy_qlj3t6_k$(infoOgv); + } + toString() { + return 'KExtInfoOGV(infoOgv=' + this.infoOgv + ')'; + } + hashCode() { + return hashCode(this.infoOgv); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KExtInfoOGV)) + return false; + var tmp0_other_with_cast = other instanceof KExtInfoOGV ? other : THROW_CCE(); + if (!equals(this.infoOgv, tmp0_other_with_cast.infoOgv)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KExtInfoOGV_dm1sht_k$(seen1, infoOgv, serializationConstructorMarker) { + Companion_getInstance_1017(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1004().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.infoOgv = emptyList(); + else + $this.infoOgv = infoOgv; + return $this; + } + } + class Companion_1018 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.InfoOGV'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1005(); + } + } + class $serializer_1005 { + constructor() { + $serializer_instance_1005 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KInfoOGV', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('uri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('icon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('subModule', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KInfoOGV.new_com_bapis_bilibili_app_dynamic_v2_KInfoOGV_lhhyp8_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_undnw4_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.uri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.uri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.icon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.icon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.subModule === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.subModule); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_undnw4_k$(encoder, value instanceof KInfoOGV ? value : THROW_CCE()); + } + } + class KInfoOGV { + constructor(title, uri, icon, subModule) { + Companion_instance_1018; + title = title === VOID ? '' : title; + uri = uri === VOID ? '' : uri; + icon = icon === VOID ? '' : icon; + subModule = subModule === VOID ? '' : subModule; + this.title = title; + this.uri = uri; + this.icon = icon; + this.subModule = subModule; + } + get_title_iz32un_k$() { + return this.title; + } + get_uri_18iuil_k$() { + return this.uri; + } + get_icon_wont8i_k$() { + return this.icon; + } + get_subModule_sb4rh_k$() { + return this.subModule; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.uri; + } + component3_7eebsa_k$() { + return this.icon; + } + component4_7eebs9_k$() { + return this.subModule; + } + copy_hmmiyd_k$(title, uri, icon, subModule) { + return new KInfoOGV(title, uri, icon, subModule); + } + copy(title, uri, icon, subModule, $super) { + title = title === VOID ? this.title : title; + uri = uri === VOID ? this.uri : uri; + icon = icon === VOID ? this.icon : icon; + subModule = subModule === VOID ? this.subModule : subModule; + return this.copy_hmmiyd_k$(title, uri, icon, subModule); + } + toString() { + return 'KInfoOGV(title=' + this.title + ', uri=' + this.uri + ', icon=' + this.icon + ', subModule=' + this.subModule + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.uri) | 0; + result = imul(result, 31) + getStringHashCode(this.icon) | 0; + result = imul(result, 31) + getStringHashCode(this.subModule) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KInfoOGV)) + return false; + var tmp0_other_with_cast = other instanceof KInfoOGV ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.uri === tmp0_other_with_cast.uri)) + return false; + if (!(this.icon === tmp0_other_with_cast.icon)) + return false; + if (!(this.subModule === tmp0_other_with_cast.subModule)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KInfoOGV_lhhyp8_k$(seen1, title, uri, icon, subModule, serializationConstructorMarker) { + Companion_instance_1018; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1005().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.uri = ''; + else + $this.uri = uri; + if (0 === (seen1 & 4)) + $this.icon = ''; + else + $this.icon = icon; + if (0 === (seen1 & 8)) + $this.subModule = ''; + else + $this.subModule = subModule; + return $this; + } + } + class Companion_1019 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.ModuleStat'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1006(); + } + } + class $serializer_1006 { + constructor() { + $serializer_instance_1006 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KModuleStat', this, 13); + tmp0_serialDesc.addElement_5pzumi_k$('repost', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('like', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('reply', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('likeInfo', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('noComment', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('noForward', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('replyUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('noCommentText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('noForwardText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('favorite', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('isFavorite', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('noLike', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + tmp0_serialDesc.addElement_5pzumi_k$('noLikeText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(13)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable($serializer_getInstance_1007()), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = new Long(0, 0); + var tmp6_local2 = new Long(0, 0); + var tmp7_local3 = null; + var tmp8_local4 = false; + var tmp9_local5 = false; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_local8 = null; + var tmp13_local9 = new Long(0, 0); + var tmp14_local10 = false; + var tmp15_local11 = false; + var tmp16_local12 = null; + var tmp17_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp17_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp17_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp17_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp17_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp17_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_1007(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp17_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp17_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp17_input.decodeLongElement_994anb_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp17_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp17_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + tmp16_local12 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + } else + while (tmp1_flag) { + tmp2_index = tmp17_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp17_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp17_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp17_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp17_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_1007(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp17_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp17_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp17_input.decodeLongElement_994anb_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp17_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp17_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + case 12: + tmp16_local12 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp17_input.endStructure_1xqz0n_k$(tmp0_desc); + return KModuleStat_0.new_com_bapis_bilibili_app_dynamic_v2_KModuleStat_stwnen_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, null); + } + serialize_mkev3q_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.repost.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.repost); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.like.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.like); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.reply.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.reply); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.likeInfo == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_1007(), value.likeInfo); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.noComment === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 4, value.noComment); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.noForward === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 5, value.noForward); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.replyUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.replyUrl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.noCommentText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.noCommentText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.noForwardText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 8, value.noForwardText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !value.favorite.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 9, value.favorite); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.isFavorite === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 10, value.isFavorite); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.noLike === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 11, value.noLike); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !(value.noLikeText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 12, value.noLikeText); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_mkev3q_k$(encoder, value instanceof KModuleStat_0 ? value : THROW_CCE()); + } + } + class KModuleStat_0 { + constructor(repost, like, reply, likeInfo, noComment, noForward, replyUrl, noCommentText, noForwardText, favorite, isFavorite, noLike, noLikeText) { + Companion_instance_1019; + repost = repost === VOID ? new Long(0, 0) : repost; + like = like === VOID ? new Long(0, 0) : like; + reply = reply === VOID ? new Long(0, 0) : reply; + likeInfo = likeInfo === VOID ? null : likeInfo; + noComment = noComment === VOID ? false : noComment; + noForward = noForward === VOID ? false : noForward; + replyUrl = replyUrl === VOID ? '' : replyUrl; + noCommentText = noCommentText === VOID ? '' : noCommentText; + noForwardText = noForwardText === VOID ? '' : noForwardText; + favorite = favorite === VOID ? new Long(0, 0) : favorite; + isFavorite = isFavorite === VOID ? false : isFavorite; + noLike = noLike === VOID ? false : noLike; + noLikeText = noLikeText === VOID ? '' : noLikeText; + this.repost = repost; + this.like = like; + this.reply = reply; + this.likeInfo = likeInfo; + this.noComment = noComment; + this.noForward = noForward; + this.replyUrl = replyUrl; + this.noCommentText = noCommentText; + this.noForwardText = noForwardText; + this.favorite = favorite; + this.isFavorite = isFavorite; + this.noLike = noLike; + this.noLikeText = noLikeText; + } + get_repost_iye44c_k$() { + return this.repost; + } + get_like_wopujk_k$() { + return this.like; + } + get_reply_ixwurl_k$() { + return this.reply; + } + get_likeInfo_dkkms2_k$() { + return this.likeInfo; + } + get_noComment_y0kp11_k$() { + return this.noComment; + } + get_noForward_73krob_k$() { + return this.noForward; + } + get_replyUrl_w4dtym_k$() { + return this.replyUrl; + } + get_noCommentText_mjoq66_k$() { + return this.noCommentText; + } + get_noForwardText_tzs5y0_k$() { + return this.noForwardText; + } + get_favorite_efbnob_k$() { + return this.favorite; + } + get_isFavorite_fwxj0x_k$() { + return this.isFavorite; + } + get_noLike_h72gap_k$() { + return this.noLike; + } + get_noLikeText_h8cjpq_k$() { + return this.noLikeText; + } + component1_7eebsc_k$() { + return this.repost; + } + component2_7eebsb_k$() { + return this.like; + } + component3_7eebsa_k$() { + return this.reply; + } + component4_7eebs9_k$() { + return this.likeInfo; + } + component5_7eebs8_k$() { + return this.noComment; + } + component6_7eebs7_k$() { + return this.noForward; + } + component7_7eebs6_k$() { + return this.replyUrl; + } + component8_7eebs5_k$() { + return this.noCommentText; + } + component9_7eebs4_k$() { + return this.noForwardText; + } + component10_gazzfo_k$() { + return this.favorite; + } + component11_gazzfn_k$() { + return this.isFavorite; + } + component12_gazzfm_k$() { + return this.noLike; + } + component13_gazzfl_k$() { + return this.noLikeText; + } + copy_vn6fx2_k$(repost, like, reply, likeInfo, noComment, noForward, replyUrl, noCommentText, noForwardText, favorite, isFavorite, noLike, noLikeText) { + return new KModuleStat_0(repost, like, reply, likeInfo, noComment, noForward, replyUrl, noCommentText, noForwardText, favorite, isFavorite, noLike, noLikeText); + } + copy(repost, like, reply, likeInfo, noComment, noForward, replyUrl, noCommentText, noForwardText, favorite, isFavorite, noLike, noLikeText, $super) { + repost = repost === VOID ? this.repost : repost; + like = like === VOID ? this.like : like; + reply = reply === VOID ? this.reply : reply; + likeInfo = likeInfo === VOID ? this.likeInfo : likeInfo; + noComment = noComment === VOID ? this.noComment : noComment; + noForward = noForward === VOID ? this.noForward : noForward; + replyUrl = replyUrl === VOID ? this.replyUrl : replyUrl; + noCommentText = noCommentText === VOID ? this.noCommentText : noCommentText; + noForwardText = noForwardText === VOID ? this.noForwardText : noForwardText; + favorite = favorite === VOID ? this.favorite : favorite; + isFavorite = isFavorite === VOID ? this.isFavorite : isFavorite; + noLike = noLike === VOID ? this.noLike : noLike; + noLikeText = noLikeText === VOID ? this.noLikeText : noLikeText; + return this.copy_vn6fx2_k$(repost, like, reply, likeInfo, noComment, noForward, replyUrl, noCommentText, noForwardText, favorite, isFavorite, noLike, noLikeText); + } + toString() { + return 'KModuleStat(repost=' + this.repost.toString() + ', like=' + this.like.toString() + ', reply=' + this.reply.toString() + ', likeInfo=' + this.likeInfo + ', noComment=' + this.noComment + ', noForward=' + this.noForward + ', replyUrl=' + this.replyUrl + ', noCommentText=' + this.noCommentText + ', noForwardText=' + this.noForwardText + ', favorite=' + this.favorite.toString() + ', isFavorite=' + this.isFavorite + ', noLike=' + this.noLike + ', noLikeText=' + this.noLikeText + ')'; + } + hashCode() { + var result = this.repost.hashCode(); + result = imul(result, 31) + this.like.hashCode() | 0; + result = imul(result, 31) + this.reply.hashCode() | 0; + result = imul(result, 31) + (this.likeInfo == null ? 0 : this.likeInfo.hashCode()) | 0; + result = imul(result, 31) + getBooleanHashCode(this.noComment) | 0; + result = imul(result, 31) + getBooleanHashCode(this.noForward) | 0; + result = imul(result, 31) + getStringHashCode(this.replyUrl) | 0; + result = imul(result, 31) + getStringHashCode(this.noCommentText) | 0; + result = imul(result, 31) + getStringHashCode(this.noForwardText) | 0; + result = imul(result, 31) + this.favorite.hashCode() | 0; + result = imul(result, 31) + getBooleanHashCode(this.isFavorite) | 0; + result = imul(result, 31) + getBooleanHashCode(this.noLike) | 0; + result = imul(result, 31) + getStringHashCode(this.noLikeText) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KModuleStat_0)) + return false; + var tmp0_other_with_cast = other instanceof KModuleStat_0 ? other : THROW_CCE(); + if (!this.repost.equals(tmp0_other_with_cast.repost)) + return false; + if (!this.like.equals(tmp0_other_with_cast.like)) + return false; + if (!this.reply.equals(tmp0_other_with_cast.reply)) + return false; + if (!equals(this.likeInfo, tmp0_other_with_cast.likeInfo)) + return false; + if (!(this.noComment === tmp0_other_with_cast.noComment)) + return false; + if (!(this.noForward === tmp0_other_with_cast.noForward)) + return false; + if (!(this.replyUrl === tmp0_other_with_cast.replyUrl)) + return false; + if (!(this.noCommentText === tmp0_other_with_cast.noCommentText)) + return false; + if (!(this.noForwardText === tmp0_other_with_cast.noForwardText)) + return false; + if (!this.favorite.equals(tmp0_other_with_cast.favorite)) + return false; + if (!(this.isFavorite === tmp0_other_with_cast.isFavorite)) + return false; + if (!(this.noLike === tmp0_other_with_cast.noLike)) + return false; + if (!(this.noLikeText === tmp0_other_with_cast.noLikeText)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KModuleStat_stwnen_k$(seen1, repost, like, reply, likeInfo, noComment, noForward, replyUrl, noCommentText, noForwardText, favorite, isFavorite, noLike, noLikeText, serializationConstructorMarker) { + Companion_instance_1019; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1006().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.repost = new Long(0, 0); + else + $this.repost = repost; + if (0 === (seen1 & 2)) + $this.like = new Long(0, 0); + else + $this.like = like; + if (0 === (seen1 & 4)) + $this.reply = new Long(0, 0); + else + $this.reply = reply; + if (0 === (seen1 & 8)) + $this.likeInfo = null; + else + $this.likeInfo = likeInfo; + if (0 === (seen1 & 16)) + $this.noComment = false; + else + $this.noComment = noComment; + if (0 === (seen1 & 32)) + $this.noForward = false; + else + $this.noForward = noForward; + if (0 === (seen1 & 64)) + $this.replyUrl = ''; + else + $this.replyUrl = replyUrl; + if (0 === (seen1 & 128)) + $this.noCommentText = ''; + else + $this.noCommentText = noCommentText; + if (0 === (seen1 & 256)) + $this.noForwardText = ''; + else + $this.noForwardText = noForwardText; + if (0 === (seen1 & 512)) + $this.favorite = new Long(0, 0); + else + $this.favorite = favorite; + if (0 === (seen1 & 1024)) + $this.isFavorite = false; + else + $this.isFavorite = isFavorite; + if (0 === (seen1 & 2048)) + $this.noLike = false; + else + $this.noLike = noLike; + if (0 === (seen1 & 4096)) + $this.noLikeText = ''; + else + $this.noLikeText = noLikeText; + return $this; + } + } + class Companion_1020 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.LikeInfo'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1007(); + } + } + class $serializer_1007 { + constructor() { + $serializer_instance_1007 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KLikeInfo', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('animation', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('isLike', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_1008()), BooleanSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = false; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_1008(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_1008(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KLikeInfo.new_com_bapis_bilibili_app_dynamic_v2_KLikeInfo_20vetx_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_e4jg4b_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.animation == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_1008(), value.animation); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.isLike === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 1, value.isLike); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_e4jg4b_k$(encoder, value instanceof KLikeInfo ? value : THROW_CCE()); + } + } + class KLikeInfo { + constructor(animation, isLike) { + Companion_instance_1020; + animation = animation === VOID ? null : animation; + isLike = isLike === VOID ? false : isLike; + this.animation = animation; + this.isLike = isLike; + } + get_animation_r0gd0b_k$() { + return this.animation; + } + get_isLike_ew1ip6_k$() { + return this.isLike; + } + component1_7eebsc_k$() { + return this.animation; + } + component2_7eebsb_k$() { + return this.isLike; + } + copy_le34xx_k$(animation, isLike) { + return new KLikeInfo(animation, isLike); + } + copy(animation, isLike, $super) { + animation = animation === VOID ? this.animation : animation; + isLike = isLike === VOID ? this.isLike : isLike; + return this.copy_le34xx_k$(animation, isLike); + } + toString() { + return 'KLikeInfo(animation=' + this.animation + ', isLike=' + this.isLike + ')'; + } + hashCode() { + var result = this.animation == null ? 0 : this.animation.hashCode(); + result = imul(result, 31) + getBooleanHashCode(this.isLike) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KLikeInfo)) + return false; + var tmp0_other_with_cast = other instanceof KLikeInfo ? other : THROW_CCE(); + if (!equals(this.animation, tmp0_other_with_cast.animation)) + return false; + if (!(this.isLike === tmp0_other_with_cast.isLike)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KLikeInfo_20vetx_k$(seen1, animation, isLike, serializationConstructorMarker) { + Companion_instance_1020; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1007().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.animation = null; + else + $this.animation = animation; + if (0 === (seen1 & 2)) + $this.isLike = false; + else + $this.isLike = isLike; + return $this; + } + } + class Companion_1021 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.LikeAnimation'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1008(); + } + } + class $serializer_1008 { + constructor() { + $serializer_instance_1008 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KLikeAnimation', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('begin', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('proc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('end', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('likeIconId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = new Long(0, 0); + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KLikeAnimation.new_com_bapis_bilibili_app_dynamic_v2_KLikeAnimation_ctb3yk_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_1s9g7j_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.begin === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.begin); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.proc === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.proc); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.end === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.end); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !value.likeIconId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 3, value.likeIconId); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_1s9g7j_k$(encoder, value instanceof KLikeAnimation ? value : THROW_CCE()); + } + } + class KLikeAnimation { + constructor(begin, proc, end, likeIconId) { + Companion_instance_1021; + begin = begin === VOID ? '' : begin; + proc = proc === VOID ? '' : proc; + end = end === VOID ? '' : end; + likeIconId = likeIconId === VOID ? new Long(0, 0) : likeIconId; + this.begin = begin; + this.proc = proc; + this.end = end; + this.likeIconId = likeIconId; + } + get_begin_ip3yio_k$() { + return this.begin; + } + get_proc_wosl9b_k$() { + return this.proc; + } + get_end_18j6ha_k$() { + return this.end; + } + get_likeIconId_rc21ys_k$() { + return this.likeIconId; + } + component1_7eebsc_k$() { + return this.begin; + } + component2_7eebsb_k$() { + return this.proc; + } + component3_7eebsa_k$() { + return this.end; + } + component4_7eebs9_k$() { + return this.likeIconId; + } + copy_n2qgnx_k$(begin, proc, end, likeIconId) { + return new KLikeAnimation(begin, proc, end, likeIconId); + } + copy(begin, proc, end, likeIconId, $super) { + begin = begin === VOID ? this.begin : begin; + proc = proc === VOID ? this.proc : proc; + end = end === VOID ? this.end : end; + likeIconId = likeIconId === VOID ? this.likeIconId : likeIconId; + return this.copy_n2qgnx_k$(begin, proc, end, likeIconId); + } + toString() { + return 'KLikeAnimation(begin=' + this.begin + ', proc=' + this.proc + ', end=' + this.end + ', likeIconId=' + this.likeIconId.toString() + ')'; + } + hashCode() { + var result = getStringHashCode(this.begin); + result = imul(result, 31) + getStringHashCode(this.proc) | 0; + result = imul(result, 31) + getStringHashCode(this.end) | 0; + result = imul(result, 31) + this.likeIconId.hashCode() | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KLikeAnimation)) + return false; + var tmp0_other_with_cast = other instanceof KLikeAnimation ? other : THROW_CCE(); + if (!(this.begin === tmp0_other_with_cast.begin)) + return false; + if (!(this.proc === tmp0_other_with_cast.proc)) + return false; + if (!(this.end === tmp0_other_with_cast.end)) + return false; + if (!this.likeIconId.equals(tmp0_other_with_cast.likeIconId)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KLikeAnimation_ctb3yk_k$(seen1, begin, proc, end, likeIconId, serializationConstructorMarker) { + Companion_instance_1021; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1008().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.begin = ''; + else + $this.begin = begin; + if (0 === (seen1 & 2)) + $this.proc = ''; + else + $this.proc = proc; + if (0 === (seen1 & 4)) + $this.end = ''; + else + $this.end = end; + if (0 === (seen1 & 8)) + $this.likeIconId = new Long(0, 0); + else + $this.likeIconId = likeIconId; + return $this; + } + } + class Companion_1022 { + constructor() { + Companion_instance_1022 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, new ArrayListSerializer($serializer_getInstance_956()), null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.ModuleFold'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1009(); + } + } + class $serializer_1009 { + constructor() { + $serializer_instance_1009 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KModuleFold', this, 5); + tmp0_serialDesc.addElement_5pzumi_k$('foldType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('text', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('foldIds', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('foldUsers', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('topicMergedResource', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_1022().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), tmp0_cached[3], get_nullable($serializer_getInstance_1010())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp10_cached = Companion_getInstance_1022().$childSerializers_1; + if (tmp9_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp9_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 3, tmp10_cached[3], tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_1010(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + } else + while (tmp1_flag) { + tmp2_index = tmp9_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp9_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 3, tmp10_cached[3], tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_1010(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp9_input.endStructure_1xqz0n_k$(tmp0_desc); + return KModuleFold_0.new_com_bapis_bilibili_app_dynamic_v2_KModuleFold_3cur0r_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); + } + serialize_njgpq5_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_1022().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.foldType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.foldType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.text === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.text); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.foldIds === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.foldIds); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !equals(value.foldUsers, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 3, tmp2_cached[3], value.foldUsers); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.topicMergedResource == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, $serializer_getInstance_1010(), value.topicMergedResource); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_njgpq5_k$(encoder, value instanceof KModuleFold_0 ? value : THROW_CCE()); + } + } + class KModuleFold_0 { + constructor(foldType, text, foldIds, foldUsers, topicMergedResource) { + Companion_getInstance_1022(); + foldType = foldType === VOID ? 0 : foldType; + text = text === VOID ? '' : text; + foldIds = foldIds === VOID ? '' : foldIds; + foldUsers = foldUsers === VOID ? emptyList() : foldUsers; + topicMergedResource = topicMergedResource === VOID ? null : topicMergedResource; + this.foldType = foldType; + this.text = text; + this.foldIds = foldIds; + this.foldUsers = foldUsers; + this.topicMergedResource = topicMergedResource; + } + get_foldType_qy4msc_k$() { + return this.foldType; + } + get_text_wouvsm_k$() { + return this.text; + } + get_foldIds_a191iq_k$() { + return this.foldIds; + } + get_foldUsers_gzss7y_k$() { + return this.foldUsers; + } + get_topicMergedResource_cag9vk_k$() { + return this.topicMergedResource; + } + foldTypeEnum() { + return Companion_getInstance_950().fromValue(this.foldType); + } + component1_7eebsc_k$() { + return this.foldType; + } + component2_7eebsb_k$() { + return this.text; + } + component3_7eebsa_k$() { + return this.foldIds; + } + component4_7eebs9_k$() { + return this.foldUsers; + } + component5_7eebs8_k$() { + return this.topicMergedResource; + } + copy_ekum3e_k$(foldType, text, foldIds, foldUsers, topicMergedResource) { + return new KModuleFold_0(foldType, text, foldIds, foldUsers, topicMergedResource); + } + copy(foldType, text, foldIds, foldUsers, topicMergedResource, $super) { + foldType = foldType === VOID ? this.foldType : foldType; + text = text === VOID ? this.text : text; + foldIds = foldIds === VOID ? this.foldIds : foldIds; + foldUsers = foldUsers === VOID ? this.foldUsers : foldUsers; + topicMergedResource = topicMergedResource === VOID ? this.topicMergedResource : topicMergedResource; + return this.copy_ekum3e_k$(foldType, text, foldIds, foldUsers, topicMergedResource); + } + toString() { + return 'KModuleFold(foldType=' + this.foldType + ', text=' + this.text + ', foldIds=' + this.foldIds + ', foldUsers=' + this.foldUsers + ', topicMergedResource=' + this.topicMergedResource + ')'; + } + hashCode() { + var result = this.foldType; + result = imul(result, 31) + getStringHashCode(this.text) | 0; + result = imul(result, 31) + getStringHashCode(this.foldIds) | 0; + result = imul(result, 31) + hashCode(this.foldUsers) | 0; + result = imul(result, 31) + (this.topicMergedResource == null ? 0 : this.topicMergedResource.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KModuleFold_0)) + return false; + var tmp0_other_with_cast = other instanceof KModuleFold_0 ? other : THROW_CCE(); + if (!(this.foldType === tmp0_other_with_cast.foldType)) + return false; + if (!(this.text === tmp0_other_with_cast.text)) + return false; + if (!(this.foldIds === tmp0_other_with_cast.foldIds)) + return false; + if (!equals(this.foldUsers, tmp0_other_with_cast.foldUsers)) + return false; + if (!equals(this.topicMergedResource, tmp0_other_with_cast.topicMergedResource)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KModuleFold_3cur0r_k$(seen1, foldType, text, foldIds, foldUsers, topicMergedResource, serializationConstructorMarker) { + Companion_getInstance_1022(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1009().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.foldType = 0; + else + $this.foldType = foldType; + if (0 === (seen1 & 2)) + $this.text = ''; + else + $this.text = text; + if (0 === (seen1 & 4)) + $this.foldIds = ''; + else + $this.foldIds = foldIds; + if (0 === (seen1 & 8)) + $this.foldUsers = emptyList(); + else + $this.foldUsers = foldUsers; + if (0 === (seen1 & 16)) + $this.topicMergedResource = null; + else + $this.topicMergedResource = topicMergedResource; + return $this; + } + } + class Companion_1023 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.TopicMergedResource'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1010(); + } + } + class $serializer_1010 { + constructor() { + $serializer_instance_1010 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KTopicMergedResource', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('mergeType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('mergedResCnt', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = 0; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KTopicMergedResource.new_com_bapis_bilibili_app_dynamic_v2_KTopicMergedResource_hudcvl_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_752gtp_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.mergeType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.mergeType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.mergedResCnt === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.mergedResCnt); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_752gtp_k$(encoder, value instanceof KTopicMergedResource ? value : THROW_CCE()); + } + } + class KTopicMergedResource { + constructor(mergeType, mergedResCnt) { + Companion_instance_1023; + mergeType = mergeType === VOID ? 0 : mergeType; + mergedResCnt = mergedResCnt === VOID ? 0 : mergedResCnt; + this.mergeType = mergeType; + this.mergedResCnt = mergedResCnt; + } + get_mergeType_zf844p_k$() { + return this.mergeType; + } + get_mergedResCnt_ilref6_k$() { + return this.mergedResCnt; + } + component1_7eebsc_k$() { + return this.mergeType; + } + component2_7eebsb_k$() { + return this.mergedResCnt; + } + copy_fhtu3_k$(mergeType, mergedResCnt) { + return new KTopicMergedResource(mergeType, mergedResCnt); + } + copy(mergeType, mergedResCnt, $super) { + mergeType = mergeType === VOID ? this.mergeType : mergeType; + mergedResCnt = mergedResCnt === VOID ? this.mergedResCnt : mergedResCnt; + return this.copy_fhtu3_k$(mergeType, mergedResCnt); + } + toString() { + return 'KTopicMergedResource(mergeType=' + this.mergeType + ', mergedResCnt=' + this.mergedResCnt + ')'; + } + hashCode() { + var result = this.mergeType; + result = imul(result, 31) + this.mergedResCnt | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KTopicMergedResource)) + return false; + var tmp0_other_with_cast = other instanceof KTopicMergedResource ? other : THROW_CCE(); + if (!(this.mergeType === tmp0_other_with_cast.mergeType)) + return false; + if (!(this.mergedResCnt === tmp0_other_with_cast.mergedResCnt)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KTopicMergedResource_hudcvl_k$(seen1, mergeType, mergedResCnt, serializationConstructorMarker) { + Companion_instance_1023; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1010().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.mergeType = 0; + else + $this.mergeType = mergeType; + if (0 === (seen1 & 2)) + $this.mergedResCnt = 0; + else + $this.mergedResCnt = mergedResCnt; + return $this; + } + } + class Companion_1024 { + constructor() { + Companion_instance_1024 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer($serializer_getInstance_1012())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.ModuleComment'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1011(); + } + } + class $serializer_1011 { + constructor() { + $serializer_instance_1011 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KModuleComment', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('cmtShowItem', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_1024().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp6_cached = Companion_getInstance_1024().$childSerializers_1; + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KModuleComment_0.new_com_bapis_bilibili_app_dynamic_v2_KModuleComment_6gct9f_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_hvoy6v_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_1024().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.cmtShowItem, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.cmtShowItem); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_hvoy6v_k$(encoder, value instanceof KModuleComment_0 ? value : THROW_CCE()); + } + } + class KModuleComment_0 { + constructor(cmtShowItem) { + Companion_getInstance_1024(); + cmtShowItem = cmtShowItem === VOID ? emptyList() : cmtShowItem; + this.cmtShowItem = cmtShowItem; + } + get_cmtShowItem_6jdhe7_k$() { + return this.cmtShowItem; + } + component1_7eebsc_k$() { + return this.cmtShowItem; + } + copy_82sxyk_k$(cmtShowItem) { + return new KModuleComment_0(cmtShowItem); + } + copy(cmtShowItem, $super) { + cmtShowItem = cmtShowItem === VOID ? this.cmtShowItem : cmtShowItem; + return this.copy_82sxyk_k$(cmtShowItem); + } + toString() { + return 'KModuleComment(cmtShowItem=' + this.cmtShowItem + ')'; + } + hashCode() { + return hashCode(this.cmtShowItem); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KModuleComment_0)) + return false; + var tmp0_other_with_cast = other instanceof KModuleComment_0 ? other : THROW_CCE(); + if (!equals(this.cmtShowItem, tmp0_other_with_cast.cmtShowItem)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KModuleComment_6gct9f_k$(seen1, cmtShowItem, serializationConstructorMarker) { + Companion_getInstance_1024(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1011().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.cmtShowItem = emptyList(); + else + $this.cmtShowItem = cmtShowItem; + return $this; + } + } + class Companion_1025 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.CmtShowItem'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1012(); + } + } + class $serializer_1012 { + constructor() { + $serializer_instance_1012 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KCmtShowItem', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('uid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('uname', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('uri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('comment', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KCmtShowItem.new_com_bapis_bilibili_app_dynamic_v2_KCmtShowItem_l7h6hl_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_16ea66_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.uid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.uid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.uname === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.uname); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.uri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.uri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.comment === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.comment); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_16ea66_k$(encoder, value instanceof KCmtShowItem ? value : THROW_CCE()); + } + } + class KCmtShowItem { + constructor(uid, uname, uri, comment) { + Companion_instance_1025; + uid = uid === VOID ? new Long(0, 0) : uid; + uname = uname === VOID ? '' : uname; + uri = uri === VOID ? '' : uri; + comment = comment === VOID ? '' : comment; + this.uid = uid; + this.uname = uname; + this.uri = uri; + this.comment = comment; + } + get_uid_18iuqh_k$() { + return this.uid; + } + get_uname_izpobb_k$() { + return this.uname; + } + get_uri_18iuil_k$() { + return this.uri; + } + get_comment_gzea9i_k$() { + return this.comment; + } + component1_7eebsc_k$() { + return this.uid; + } + component2_7eebsb_k$() { + return this.uname; + } + component3_7eebsa_k$() { + return this.uri; + } + component4_7eebs9_k$() { + return this.comment; + } + copy_kwys9l_k$(uid, uname, uri, comment) { + return new KCmtShowItem(uid, uname, uri, comment); + } + copy(uid, uname, uri, comment, $super) { + uid = uid === VOID ? this.uid : uid; + uname = uname === VOID ? this.uname : uname; + uri = uri === VOID ? this.uri : uri; + comment = comment === VOID ? this.comment : comment; + return this.copy_kwys9l_k$(uid, uname, uri, comment); + } + toString() { + return 'KCmtShowItem(uid=' + this.uid.toString() + ', uname=' + this.uname + ', uri=' + this.uri + ', comment=' + this.comment + ')'; + } + hashCode() { + var result = this.uid.hashCode(); + result = imul(result, 31) + getStringHashCode(this.uname) | 0; + result = imul(result, 31) + getStringHashCode(this.uri) | 0; + result = imul(result, 31) + getStringHashCode(this.comment) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KCmtShowItem)) + return false; + var tmp0_other_with_cast = other instanceof KCmtShowItem ? other : THROW_CCE(); + if (!this.uid.equals(tmp0_other_with_cast.uid)) + return false; + if (!(this.uname === tmp0_other_with_cast.uname)) + return false; + if (!(this.uri === tmp0_other_with_cast.uri)) + return false; + if (!(this.comment === tmp0_other_with_cast.comment)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KCmtShowItem_l7h6hl_k$(seen1, uid, uname, uri, comment, serializationConstructorMarker) { + Companion_instance_1025; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1012().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.uid = new Long(0, 0); + else + $this.uid = uid; + if (0 === (seen1 & 2)) + $this.uname = ''; + else + $this.uname = uname; + if (0 === (seen1 & 4)) + $this.uri = ''; + else + $this.uri = uri; + if (0 === (seen1 & 8)) + $this.comment = ''; + else + $this.comment = comment; + return $this; + } + } + class Companion_1026 { + constructor() { + Companion_instance_1026 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer($serializer_getInstance_1015())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.ModuleInteraction'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1013(); + } + } + class $serializer_1013 { + constructor() { + $serializer_instance_1013 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KModuleInteraction', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('interactionItem', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_1026().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp6_cached = Companion_getInstance_1026().$childSerializers_1; + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KModuleInteraction_0.new_com_bapis_bilibili_app_dynamic_v2_KModuleInteraction_3fpegl_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_i2oixi_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_1026().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.interactionItem, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.interactionItem); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_i2oixi_k$(encoder, value instanceof KModuleInteraction_0 ? value : THROW_CCE()); + } + } + class KModuleInteraction_0 { + constructor(interactionItem) { + Companion_getInstance_1026(); + interactionItem = interactionItem === VOID ? emptyList() : interactionItem; + this.interactionItem = interactionItem; + } + get_interactionItem_m8qbmk_k$() { + return this.interactionItem; + } + component1_7eebsc_k$() { + return this.interactionItem; + } + copy_nb016p_k$(interactionItem) { + return new KModuleInteraction_0(interactionItem); + } + copy(interactionItem, $super) { + interactionItem = interactionItem === VOID ? this.interactionItem : interactionItem; + return this.copy_nb016p_k$(interactionItem); + } + toString() { + return 'KModuleInteraction(interactionItem=' + this.interactionItem + ')'; + } + hashCode() { + return hashCode(this.interactionItem); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KModuleInteraction_0)) + return false; + var tmp0_other_with_cast = other instanceof KModuleInteraction_0 ? other : THROW_CCE(); + if (!equals(this.interactionItem, tmp0_other_with_cast.interactionItem)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KModuleInteraction_3fpegl_k$(seen1, interactionItem, serializationConstructorMarker) { + Companion_getInstance_1026(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1013().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.interactionItem = emptyList(); + else + $this.interactionItem = interactionItem; + return $this; + } + } + class Companion_1027 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.InteractionItem.ExtendClickParamEntry'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1014(); + } + } + class $serializer_1014 { + constructor() { + $serializer_instance_1014 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KInteractionItem.KExtendClickParamEntry', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('key', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('value', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KExtendClickParamEntry.new_com_bapis_bilibili_app_dynamic_v2_KInteractionItem_KExtendClickParamEntry_gz1gj4_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_50t9qf_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.key === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.key); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.value === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.value); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_50t9qf_k$(encoder, value instanceof KExtendClickParamEntry ? value : THROW_CCE()); + } + } + class KExtendClickParamEntry { + constructor(key, value) { + Companion_instance_1027; + key = key === VOID ? '' : key; + value = value === VOID ? '' : value; + this.key = key; + this.value = value; + } + get_key_18j28a_k$() { + return this.key; + } + get_value_j01efc_k$() { + return this.value; + } + component1_7eebsc_k$() { + return this.key; + } + component2_7eebsb_k$() { + return this.value; + } + copy_plwnsl_k$(key, value) { + return new KExtendClickParamEntry(key, value); + } + copy(key, value, $super) { + key = key === VOID ? this.key : key; + value = value === VOID ? this.value : value; + return this.copy_plwnsl_k$(key, value); + } + toString() { + return 'KExtendClickParamEntry(key=' + this.key + ', value=' + this.value + ')'; + } + hashCode() { + var result = getStringHashCode(this.key); + result = imul(result, 31) + getStringHashCode(this.value) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KExtendClickParamEntry)) + return false; + var tmp0_other_with_cast = other instanceof KExtendClickParamEntry ? other : THROW_CCE(); + if (!(this.key === tmp0_other_with_cast.key)) + return false; + if (!(this.value === tmp0_other_with_cast.value)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KInteractionItem_KExtendClickParamEntry_gz1gj4_k$(seen1, key, value, serializationConstructorMarker) { + Companion_instance_1027; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1014().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.key = ''; + else + $this.key = key; + if (0 === (seen1 & 2)) + $this.value = ''; + else + $this.value = value; + return $this; + } + } + class Companion_1028 { + constructor() { + Companion_instance_1028 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, new ArrayListSerializer($serializer_getInstance_950()), null, null, null, new ArrayListSerializer($serializer_getInstance_1016()), null, null, null, new ArrayListSerializer($serializer_getInstance_950()), new LinkedHashMapSerializer(StringSerializer_getInstance(), StringSerializer_getInstance())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.InteractionItem'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1015(); + } + } + class $serializer_1015 { + constructor() { + $serializer_instance_1015 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KInteractionItem', this, 11); + tmp0_serialDesc.addElement_5pzumi_k$('iconType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('desc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('uri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('dynamicId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('commentMid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('faces', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('stat', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('icon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('tailIcon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('tailDesc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('extendClickParam', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_1028().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), tmp0_cached[1], StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), tmp0_cached[5], get_nullable($serializer_getInstance_1017()), StringSerializer_getInstance(), StringSerializer_getInstance(), tmp0_cached[9], tmp0_cached[10]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = new Long(0, 0); + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_local8 = null; + var tmp13_local9 = null; + var tmp14_local10 = null; + var tmp15_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp16_cached = Companion_getInstance_1028().$childSerializers_1; + if (tmp15_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp15_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp16_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp15_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 5, tmp16_cached[5], tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_1017(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp15_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 9, tmp16_cached[9], tmp13_local9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp15_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 10, tmp16_cached[10], tmp14_local10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + } else + while (tmp1_flag) { + tmp2_index = tmp15_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp15_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp16_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp15_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 5, tmp16_cached[5], tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_1017(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp15_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 9, tmp16_cached[9], tmp13_local9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp15_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 10, tmp16_cached[10], tmp14_local10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp15_input.endStructure_1xqz0n_k$(tmp0_desc); + return KInteractionItem.new_com_bapis_bilibili_app_dynamic_v2_KInteractionItem_5mw35v_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, null); + } + serialize_f3vedl_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_1028().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.iconType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.iconType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !equals(value.desc, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 1, tmp2_cached[1], value.desc); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.uri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.uri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.dynamicId === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.dynamicId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !value.commentMid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 4, value.commentMid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !equals(value.faces, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 5, tmp2_cached[5], value.faces); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.stat == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 6, $serializer_getInstance_1017(), value.stat); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.icon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.icon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.tailIcon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 8, value.tailIcon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !equals(value.tailDesc, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 9, tmp2_cached[9], value.tailDesc); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !equals(value.extendClickParam, emptyMap())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 10, tmp2_cached[10], value.extendClickParam); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_f3vedl_k$(encoder, value instanceof KInteractionItem ? value : THROW_CCE()); + } + } + class KInteractionItem { + constructor(iconType, desc, uri, dynamicId, commentMid, faces, stat, icon, tailIcon, tailDesc, extendClickParam) { + Companion_getInstance_1028(); + iconType = iconType === VOID ? 0 : iconType; + desc = desc === VOID ? emptyList() : desc; + uri = uri === VOID ? '' : uri; + dynamicId = dynamicId === VOID ? '' : dynamicId; + commentMid = commentMid === VOID ? new Long(0, 0) : commentMid; + faces = faces === VOID ? emptyList() : faces; + stat = stat === VOID ? null : stat; + icon = icon === VOID ? '' : icon; + tailIcon = tailIcon === VOID ? '' : tailIcon; + tailDesc = tailDesc === VOID ? emptyList() : tailDesc; + extendClickParam = extendClickParam === VOID ? emptyMap() : extendClickParam; + this.iconType = iconType; + this.desc = desc; + this.uri = uri; + this.dynamicId = dynamicId; + this.commentMid = commentMid; + this.faces = faces; + this.stat = stat; + this.icon = icon; + this.tailIcon = tailIcon; + this.tailDesc = tailDesc; + this.extendClickParam = extendClickParam; + } + get_iconType_r0uasc_k$() { + return this.iconType; + } + get_desc_woknve_k$() { + return this.desc; + } + get_uri_18iuil_k$() { + return this.uri; + } + get_dynamicId_wvqga7_k$() { + return this.dynamicId; + } + get_commentMid_5axixa_k$() { + return this.commentMid; + } + get_faces_ir8hvx_k$() { + return this.faces; + } + get_stat_woujdp_k$() { + return this.stat; + } + get_icon_wont8i_k$() { + return this.icon; + } + get_tailIcon_rpvxde_k$() { + return this.tailIcon; + } + get_tailDesc_rpss0a_k$() { + return this.tailDesc; + } + get_extendClickParam_ov40pk_k$() { + return this.extendClickParam; + } + iconTypeEnum() { + return Companion_getInstance_951().fromValue(this.iconType); + } + component1_7eebsc_k$() { + return this.iconType; + } + component2_7eebsb_k$() { + return this.desc; + } + component3_7eebsa_k$() { + return this.uri; + } + component4_7eebs9_k$() { + return this.dynamicId; + } + component5_7eebs8_k$() { + return this.commentMid; + } + component6_7eebs7_k$() { + return this.faces; + } + component7_7eebs6_k$() { + return this.stat; + } + component8_7eebs5_k$() { + return this.icon; + } + component9_7eebs4_k$() { + return this.tailIcon; + } + component10_gazzfo_k$() { + return this.tailDesc; + } + component11_gazzfn_k$() { + return this.extendClickParam; + } + copy_xe7cbt_k$(iconType, desc, uri, dynamicId, commentMid, faces, stat, icon, tailIcon, tailDesc, extendClickParam) { + return new KInteractionItem(iconType, desc, uri, dynamicId, commentMid, faces, stat, icon, tailIcon, tailDesc, extendClickParam); + } + copy(iconType, desc, uri, dynamicId, commentMid, faces, stat, icon, tailIcon, tailDesc, extendClickParam, $super) { + iconType = iconType === VOID ? this.iconType : iconType; + desc = desc === VOID ? this.desc : desc; + uri = uri === VOID ? this.uri : uri; + dynamicId = dynamicId === VOID ? this.dynamicId : dynamicId; + commentMid = commentMid === VOID ? this.commentMid : commentMid; + faces = faces === VOID ? this.faces : faces; + stat = stat === VOID ? this.stat : stat; + icon = icon === VOID ? this.icon : icon; + tailIcon = tailIcon === VOID ? this.tailIcon : tailIcon; + tailDesc = tailDesc === VOID ? this.tailDesc : tailDesc; + extendClickParam = extendClickParam === VOID ? this.extendClickParam : extendClickParam; + return this.copy_xe7cbt_k$(iconType, desc, uri, dynamicId, commentMid, faces, stat, icon, tailIcon, tailDesc, extendClickParam); + } + toString() { + return 'KInteractionItem(iconType=' + this.iconType + ', desc=' + this.desc + ', uri=' + this.uri + ', dynamicId=' + this.dynamicId + ', commentMid=' + this.commentMid.toString() + ', faces=' + this.faces + ', stat=' + this.stat + ', icon=' + this.icon + ', tailIcon=' + this.tailIcon + ', tailDesc=' + this.tailDesc + ', extendClickParam=' + this.extendClickParam + ')'; + } + hashCode() { + var result = this.iconType; + result = imul(result, 31) + hashCode(this.desc) | 0; + result = imul(result, 31) + getStringHashCode(this.uri) | 0; + result = imul(result, 31) + getStringHashCode(this.dynamicId) | 0; + result = imul(result, 31) + this.commentMid.hashCode() | 0; + result = imul(result, 31) + hashCode(this.faces) | 0; + result = imul(result, 31) + (this.stat == null ? 0 : this.stat.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.icon) | 0; + result = imul(result, 31) + getStringHashCode(this.tailIcon) | 0; + result = imul(result, 31) + hashCode(this.tailDesc) | 0; + result = imul(result, 31) + hashCode(this.extendClickParam) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KInteractionItem)) + return false; + var tmp0_other_with_cast = other instanceof KInteractionItem ? other : THROW_CCE(); + if (!(this.iconType === tmp0_other_with_cast.iconType)) + return false; + if (!equals(this.desc, tmp0_other_with_cast.desc)) + return false; + if (!(this.uri === tmp0_other_with_cast.uri)) + return false; + if (!(this.dynamicId === tmp0_other_with_cast.dynamicId)) + return false; + if (!this.commentMid.equals(tmp0_other_with_cast.commentMid)) + return false; + if (!equals(this.faces, tmp0_other_with_cast.faces)) + return false; + if (!equals(this.stat, tmp0_other_with_cast.stat)) + return false; + if (!(this.icon === tmp0_other_with_cast.icon)) + return false; + if (!(this.tailIcon === tmp0_other_with_cast.tailIcon)) + return false; + if (!equals(this.tailDesc, tmp0_other_with_cast.tailDesc)) + return false; + if (!equals(this.extendClickParam, tmp0_other_with_cast.extendClickParam)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KInteractionItem_5mw35v_k$(seen1, iconType, desc, uri, dynamicId, commentMid, faces, stat, icon, tailIcon, tailDesc, extendClickParam, serializationConstructorMarker) { + Companion_getInstance_1028(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1015().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.iconType = 0; + else + $this.iconType = iconType; + if (0 === (seen1 & 2)) + $this.desc = emptyList(); + else + $this.desc = desc; + if (0 === (seen1 & 4)) + $this.uri = ''; + else + $this.uri = uri; + if (0 === (seen1 & 8)) + $this.dynamicId = ''; + else + $this.dynamicId = dynamicId; + if (0 === (seen1 & 16)) + $this.commentMid = new Long(0, 0); + else + $this.commentMid = commentMid; + if (0 === (seen1 & 32)) + $this.faces = emptyList(); + else + $this.faces = faces; + if (0 === (seen1 & 64)) + $this.stat = null; + else + $this.stat = stat; + if (0 === (seen1 & 128)) + $this.icon = ''; + else + $this.icon = icon; + if (0 === (seen1 & 256)) + $this.tailIcon = ''; + else + $this.tailIcon = tailIcon; + if (0 === (seen1 & 512)) + $this.tailDesc = emptyList(); + else + $this.tailDesc = tailDesc; + if (0 === (seen1 & 1024)) + $this.extendClickParam = emptyMap(); + else + $this.extendClickParam = extendClickParam; + return $this; + } + } + class Companion_1029 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.InteractionFace'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1016(); + } + } + class $serializer_1016 { + constructor() { + $serializer_instance_1016 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KInteractionFace', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('mid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('face', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KInteractionFace.new_com_bapis_bilibili_app_dynamic_v2_KInteractionFace_bzye8_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_pagcur_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.mid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.mid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.face === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.face); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_pagcur_k$(encoder, value instanceof KInteractionFace ? value : THROW_CCE()); + } + } + class KInteractionFace { + constructor(mid, face) { + Companion_instance_1029; + mid = mid === VOID ? new Long(0, 0) : mid; + face = face === VOID ? '' : face; + this.mid = mid; + this.face = face; + } + get_mid_18j0o1_k$() { + return this.mid; + } + get_face_woluhy_k$() { + return this.face; + } + component1_7eebsc_k$() { + return this.mid; + } + component2_7eebsb_k$() { + return this.face; + } + copy_ezpntz_k$(mid, face) { + return new KInteractionFace(mid, face); + } + copy(mid, face, $super) { + mid = mid === VOID ? this.mid : mid; + face = face === VOID ? this.face : face; + return this.copy_ezpntz_k$(mid, face); + } + toString() { + return 'KInteractionFace(mid=' + this.mid.toString() + ', face=' + this.face + ')'; + } + hashCode() { + var result = this.mid.hashCode(); + result = imul(result, 31) + getStringHashCode(this.face) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KInteractionFace)) + return false; + var tmp0_other_with_cast = other instanceof KInteractionFace ? other : THROW_CCE(); + if (!this.mid.equals(tmp0_other_with_cast.mid)) + return false; + if (!(this.face === tmp0_other_with_cast.face)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KInteractionFace_bzye8_k$(seen1, mid, face, serializationConstructorMarker) { + Companion_instance_1029; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1016().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.mid = new Long(0, 0); + else + $this.mid = mid; + if (0 === (seen1 & 2)) + $this.face = ''; + else + $this.face = face; + return $this; + } + } + class Companion_1030 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.InteractionStat'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1017(); + } + } + class $serializer_1017 { + constructor() { + $serializer_instance_1017 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KInteractionStat', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('like', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('forward', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = new Long(0, 0); + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KInteractionStat.new_com_bapis_bilibili_app_dynamic_v2_KInteractionStat_ta43bi_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_wfkbca_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.like.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.like); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.forward.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.forward); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_wfkbca_k$(encoder, value instanceof KInteractionStat ? value : THROW_CCE()); + } + } + class KInteractionStat { + constructor(like, forward) { + Companion_instance_1030; + like = like === VOID ? new Long(0, 0) : like; + forward = forward === VOID ? new Long(0, 0) : forward; + this.like = like; + this.forward = forward; + } + get_like_wopujk_k$() { + return this.like; + } + get_forward_9xln38_k$() { + return this.forward; + } + component1_7eebsc_k$() { + return this.like; + } + component2_7eebsb_k$() { + return this.forward; + } + copy_bynm9d_k$(like, forward) { + return new KInteractionStat(like, forward); + } + copy(like, forward, $super) { + like = like === VOID ? this.like : like; + forward = forward === VOID ? this.forward : forward; + return this.copy_bynm9d_k$(like, forward); + } + toString() { + return 'KInteractionStat(like=' + this.like.toString() + ', forward=' + this.forward.toString() + ')'; + } + hashCode() { + var result = this.like.hashCode(); + result = imul(result, 31) + this.forward.hashCode() | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KInteractionStat)) + return false; + var tmp0_other_with_cast = other instanceof KInteractionStat ? other : THROW_CCE(); + if (!this.like.equals(tmp0_other_with_cast.like)) + return false; + if (!this.forward.equals(tmp0_other_with_cast.forward)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KInteractionStat_ta43bi_k$(seen1, like, forward, serializationConstructorMarker) { + Companion_instance_1030; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1017().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.like = new Long(0, 0); + else + $this.like = like; + if (0 === (seen1 & 2)) + $this.forward = new Long(0, 0); + else + $this.forward = forward; + return $this; + } + } + class Companion_1031 { + constructor() { + Companion_instance_1031 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer($serializer_getInstance_1019()), null, null, null, null, null, null, new ArrayListSerializer($serializer_getInstance_972())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.ModuleAuthorForward'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1018(); + } + } + class $serializer_1018 { + constructor() { + $serializer_instance_1018 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KModuleAuthorForward', this, 8); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('url', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('uid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('ptimeLabelText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('showFollow', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('faceUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('relation', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('tpList', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_1031().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0], StringSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), BooleanSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_967()), tmp0_cached[7]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = new Long(0, 0); + var tmp7_local3 = null; + var tmp8_local4 = false; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp13_cached = Companion_getInstance_1031().$childSerializers_1; + if (tmp12_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp12_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp13_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp12_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_967(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp12_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 7, tmp13_cached[7], tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + } else + while (tmp1_flag) { + tmp2_index = tmp12_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp12_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp13_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp12_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_967(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp12_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 7, tmp13_cached[7], tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp12_input.endStructure_1xqz0n_k$(tmp0_desc); + return KModuleAuthorForward_0.new_com_bapis_bilibili_app_dynamic_v2_KModuleAuthorForward_c0uwx1_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null); + } + serialize_bolt76_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_1031().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.title, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.url === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.url); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.uid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.uid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.ptimeLabelText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.ptimeLabelText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.showFollow === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 4, value.showFollow); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.faceUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.faceUrl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.relation == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 6, $serializer_getInstance_967(), value.relation); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !equals(value.tpList, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 7, tmp2_cached[7], value.tpList); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_bolt76_k$(encoder, value instanceof KModuleAuthorForward_0 ? value : THROW_CCE()); + } + } + class KModuleAuthorForward_0 { + constructor(title, url, uid, ptimeLabelText, showFollow, faceUrl, relation, tpList) { + Companion_getInstance_1031(); + title = title === VOID ? emptyList() : title; + url = url === VOID ? '' : url; + uid = uid === VOID ? new Long(0, 0) : uid; + ptimeLabelText = ptimeLabelText === VOID ? '' : ptimeLabelText; + showFollow = showFollow === VOID ? false : showFollow; + faceUrl = faceUrl === VOID ? '' : faceUrl; + relation = relation === VOID ? null : relation; + tpList = tpList === VOID ? emptyList() : tpList; + this.title = title; + this.url = url; + this.uid = uid; + this.ptimeLabelText = ptimeLabelText; + this.showFollow = showFollow; + this.faceUrl = faceUrl; + this.relation = relation; + this.tpList = tpList; + } + get_title_iz32un_k$() { + return this.title; + } + get_url_18iuii_k$() { + return this.url; + } + get_uid_18iuqh_k$() { + return this.uid; + } + get_ptimeLabelText_r66xdf_k$() { + return this.ptimeLabelText; + } + get_showFollow_dgg9yh_k$() { + return this.showFollow; + } + get_faceUrl_gst05z_k$() { + return this.faceUrl; + } + get_relation_u22tol_k$() { + return this.relation; + } + get_tpList_k1vzgj_k$() { + return this.tpList; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.url; + } + component3_7eebsa_k$() { + return this.uid; + } + component4_7eebs9_k$() { + return this.ptimeLabelText; + } + component5_7eebs8_k$() { + return this.showFollow; + } + component6_7eebs7_k$() { + return this.faceUrl; + } + component7_7eebs6_k$() { + return this.relation; + } + component8_7eebs5_k$() { + return this.tpList; + } + copy_x2a2xf_k$(title, url, uid, ptimeLabelText, showFollow, faceUrl, relation, tpList) { + return new KModuleAuthorForward_0(title, url, uid, ptimeLabelText, showFollow, faceUrl, relation, tpList); + } + copy(title, url, uid, ptimeLabelText, showFollow, faceUrl, relation, tpList, $super) { + title = title === VOID ? this.title : title; + url = url === VOID ? this.url : url; + uid = uid === VOID ? this.uid : uid; + ptimeLabelText = ptimeLabelText === VOID ? this.ptimeLabelText : ptimeLabelText; + showFollow = showFollow === VOID ? this.showFollow : showFollow; + faceUrl = faceUrl === VOID ? this.faceUrl : faceUrl; + relation = relation === VOID ? this.relation : relation; + tpList = tpList === VOID ? this.tpList : tpList; + return this.copy_x2a2xf_k$(title, url, uid, ptimeLabelText, showFollow, faceUrl, relation, tpList); + } + toString() { + return 'KModuleAuthorForward(title=' + this.title + ', url=' + this.url + ', uid=' + this.uid.toString() + ', ptimeLabelText=' + this.ptimeLabelText + ', showFollow=' + this.showFollow + ', faceUrl=' + this.faceUrl + ', relation=' + this.relation + ', tpList=' + this.tpList + ')'; + } + hashCode() { + var result = hashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.url) | 0; + result = imul(result, 31) + this.uid.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.ptimeLabelText) | 0; + result = imul(result, 31) + getBooleanHashCode(this.showFollow) | 0; + result = imul(result, 31) + getStringHashCode(this.faceUrl) | 0; + result = imul(result, 31) + (this.relation == null ? 0 : this.relation.hashCode()) | 0; + result = imul(result, 31) + hashCode(this.tpList) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KModuleAuthorForward_0)) + return false; + var tmp0_other_with_cast = other instanceof KModuleAuthorForward_0 ? other : THROW_CCE(); + if (!equals(this.title, tmp0_other_with_cast.title)) + return false; + if (!(this.url === tmp0_other_with_cast.url)) + return false; + if (!this.uid.equals(tmp0_other_with_cast.uid)) + return false; + if (!(this.ptimeLabelText === tmp0_other_with_cast.ptimeLabelText)) + return false; + if (!(this.showFollow === tmp0_other_with_cast.showFollow)) + return false; + if (!(this.faceUrl === tmp0_other_with_cast.faceUrl)) + return false; + if (!equals(this.relation, tmp0_other_with_cast.relation)) + return false; + if (!equals(this.tpList, tmp0_other_with_cast.tpList)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KModuleAuthorForward_c0uwx1_k$(seen1, title, url, uid, ptimeLabelText, showFollow, faceUrl, relation, tpList, serializationConstructorMarker) { + Companion_getInstance_1031(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1018().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = emptyList(); + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.url = ''; + else + $this.url = url; + if (0 === (seen1 & 4)) + $this.uid = new Long(0, 0); + else + $this.uid = uid; + if (0 === (seen1 & 8)) + $this.ptimeLabelText = ''; + else + $this.ptimeLabelText = ptimeLabelText; + if (0 === (seen1 & 16)) + $this.showFollow = false; + else + $this.showFollow = showFollow; + if (0 === (seen1 & 32)) + $this.faceUrl = ''; + else + $this.faceUrl = faceUrl; + if (0 === (seen1 & 64)) + $this.relation = null; + else + $this.relation = relation; + if (0 === (seen1 & 128)) + $this.tpList = emptyList(); + else + $this.tpList = tpList; + return $this; + } + } + class Companion_1032 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.ModuleAuthorForwardTitle'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1019(); + } + } + class $serializer_1019 { + constructor() { + $serializer_instance_1019 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KModuleAuthorForwardTitle', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('text', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('url', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KModuleAuthorForwardTitle.new_com_bapis_bilibili_app_dynamic_v2_KModuleAuthorForwardTitle_dwuhrs_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_zbkx7k_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.text === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.text); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.url === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.url); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_zbkx7k_k$(encoder, value instanceof KModuleAuthorForwardTitle ? value : THROW_CCE()); + } + } + class KModuleAuthorForwardTitle { + constructor(text, url) { + Companion_instance_1032; + text = text === VOID ? '' : text; + url = url === VOID ? '' : url; + this.text = text; + this.url = url; + } + get_text_wouvsm_k$() { + return this.text; + } + get_url_18iuii_k$() { + return this.url; + } + component1_7eebsc_k$() { + return this.text; + } + component2_7eebsb_k$() { + return this.url; + } + copy_plwnsl_k$(text, url) { + return new KModuleAuthorForwardTitle(text, url); + } + copy(text, url, $super) { + text = text === VOID ? this.text : text; + url = url === VOID ? this.url : url; + return this.copy_plwnsl_k$(text, url); + } + toString() { + return 'KModuleAuthorForwardTitle(text=' + this.text + ', url=' + this.url + ')'; + } + hashCode() { + var result = getStringHashCode(this.text); + result = imul(result, 31) + getStringHashCode(this.url) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KModuleAuthorForwardTitle)) + return false; + var tmp0_other_with_cast = other instanceof KModuleAuthorForwardTitle ? other : THROW_CCE(); + if (!(this.text === tmp0_other_with_cast.text)) + return false; + if (!(this.url === tmp0_other_with_cast.url)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KModuleAuthorForwardTitle_dwuhrs_k$(seen1, text, url, serializationConstructorMarker) { + Companion_instance_1032; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1019().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.text = ''; + else + $this.text = text; + if (0 === (seen1 & 2)) + $this.url = ''; + else + $this.url = url; + return $this; + } + } + class Companion_1033 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.ModuleAd'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1020(); + } + } + class $serializer_1020 { + constructor() { + $serializer_instance_1020 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KModuleAd', this, 6); + tmp0_serialDesc.addElement_5pzumi_k$('sourceContent', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('moduleAuthor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('adContentType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('coverLeftText1', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('coverLeftText2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('coverLeftText3', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance()), get_nullable($serializer_getInstance_953()), IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = 0; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp10_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_953(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + } else + while (tmp1_flag) { + tmp2_index = tmp10_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_953(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp10_input.endStructure_1xqz0n_k$(tmp0_desc); + return KModuleAd_0.new_com_bapis_bilibili_app_dynamic_v2_KModuleAd_qjqdqb_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); + } + serialize_ftl3mj_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.sourceContent == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance(), value.sourceContent); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.moduleAuthor == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_953(), value.moduleAuthor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.adContentType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.adContentType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.coverLeftText1 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.coverLeftText1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.coverLeftText2 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.coverLeftText2); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.coverLeftText3 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.coverLeftText3); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_ftl3mj_k$(encoder, value instanceof KModuleAd_0 ? value : THROW_CCE()); + } + } + class KModuleAd_0 { + constructor(sourceContent, moduleAuthor, adContentType, coverLeftText1, coverLeftText2, coverLeftText3) { + Companion_instance_1033; + sourceContent = sourceContent === VOID ? null : sourceContent; + moduleAuthor = moduleAuthor === VOID ? null : moduleAuthor; + adContentType = adContentType === VOID ? 0 : adContentType; + coverLeftText1 = coverLeftText1 === VOID ? '' : coverLeftText1; + coverLeftText2 = coverLeftText2 === VOID ? '' : coverLeftText2; + coverLeftText3 = coverLeftText3 === VOID ? '' : coverLeftText3; + this.sourceContent = sourceContent; + this.moduleAuthor = moduleAuthor; + this.adContentType = adContentType; + this.coverLeftText1 = coverLeftText1; + this.coverLeftText2 = coverLeftText2; + this.coverLeftText3 = coverLeftText3; + } + get_sourceContent_g32jlh_k$() { + return this.sourceContent; + } + get_moduleAuthor_h2paw0_k$() { + return this.moduleAuthor; + } + get_adContentType_o68em1_k$() { + return this.adContentType; + } + get_coverLeftText1_ck8hkf_k$() { + return this.coverLeftText1; + } + get_coverLeftText2_ck8hkg_k$() { + return this.coverLeftText2; + } + get_coverLeftText3_ck8hkh_k$() { + return this.coverLeftText3; + } + component1_7eebsc_k$() { + return this.sourceContent; + } + component2_7eebsb_k$() { + return this.moduleAuthor; + } + component3_7eebsa_k$() { + return this.adContentType; + } + component4_7eebs9_k$() { + return this.coverLeftText1; + } + component5_7eebs8_k$() { + return this.coverLeftText2; + } + component6_7eebs7_k$() { + return this.coverLeftText3; + } + copy_am2qbo_k$(sourceContent, moduleAuthor, adContentType, coverLeftText1, coverLeftText2, coverLeftText3) { + return new KModuleAd_0(sourceContent, moduleAuthor, adContentType, coverLeftText1, coverLeftText2, coverLeftText3); + } + copy(sourceContent, moduleAuthor, adContentType, coverLeftText1, coverLeftText2, coverLeftText3, $super) { + sourceContent = sourceContent === VOID ? this.sourceContent : sourceContent; + moduleAuthor = moduleAuthor === VOID ? this.moduleAuthor : moduleAuthor; + adContentType = adContentType === VOID ? this.adContentType : adContentType; + coverLeftText1 = coverLeftText1 === VOID ? this.coverLeftText1 : coverLeftText1; + coverLeftText2 = coverLeftText2 === VOID ? this.coverLeftText2 : coverLeftText2; + coverLeftText3 = coverLeftText3 === VOID ? this.coverLeftText3 : coverLeftText3; + return this.copy_am2qbo_k$(sourceContent, moduleAuthor, adContentType, coverLeftText1, coverLeftText2, coverLeftText3); + } + toString() { + return 'KModuleAd(sourceContent=' + this.sourceContent + ', moduleAuthor=' + this.moduleAuthor + ', adContentType=' + this.adContentType + ', coverLeftText1=' + this.coverLeftText1 + ', coverLeftText2=' + this.coverLeftText2 + ', coverLeftText3=' + this.coverLeftText3 + ')'; + } + hashCode() { + var result = this.sourceContent == null ? 0 : this.sourceContent.hashCode(); + result = imul(result, 31) + (this.moduleAuthor == null ? 0 : this.moduleAuthor.hashCode()) | 0; + result = imul(result, 31) + this.adContentType | 0; + result = imul(result, 31) + getStringHashCode(this.coverLeftText1) | 0; + result = imul(result, 31) + getStringHashCode(this.coverLeftText2) | 0; + result = imul(result, 31) + getStringHashCode(this.coverLeftText3) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KModuleAd_0)) + return false; + var tmp0_other_with_cast = other instanceof KModuleAd_0 ? other : THROW_CCE(); + if (!equals(this.sourceContent, tmp0_other_with_cast.sourceContent)) + return false; + if (!equals(this.moduleAuthor, tmp0_other_with_cast.moduleAuthor)) + return false; + if (!(this.adContentType === tmp0_other_with_cast.adContentType)) + return false; + if (!(this.coverLeftText1 === tmp0_other_with_cast.coverLeftText1)) + return false; + if (!(this.coverLeftText2 === tmp0_other_with_cast.coverLeftText2)) + return false; + if (!(this.coverLeftText3 === tmp0_other_with_cast.coverLeftText3)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KModuleAd_qjqdqb_k$(seen1, sourceContent, moduleAuthor, adContentType, coverLeftText1, coverLeftText2, coverLeftText3, serializationConstructorMarker) { + Companion_instance_1033; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1020().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.sourceContent = null; + else + $this.sourceContent = sourceContent; + if (0 === (seen1 & 2)) + $this.moduleAuthor = null; + else + $this.moduleAuthor = moduleAuthor; + if (0 === (seen1 & 4)) + $this.adContentType = 0; + else + $this.adContentType = adContentType; + if (0 === (seen1 & 8)) + $this.coverLeftText1 = ''; + else + $this.coverLeftText1 = coverLeftText1; + if (0 === (seen1 & 16)) + $this.coverLeftText2 = ''; + else + $this.coverLeftText2 = coverLeftText2; + if (0 === (seen1 & 32)) + $this.coverLeftText3 = ''; + else + $this.coverLeftText3 = coverLeftText3; + return $this; + } + } + class KItem_6 { + constructor(value) { + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + } + class KUser_0 extends KItem_6 { + constructor() { + KUser_instance = null; + super(0); + KUser_instance = this; + } + } + class Companion_1034 { + constructor() { + Companion_instance_1034 = this; + var tmp = this; + tmp.itemValues$delegate_1 = lazy_0(KModuleBanner$Companion$itemValues$delegate$lambda); + this.targetPath = '/bilibili.app.dynamic.v2.ModuleBanner'; + } + get_itemValues_e195su_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.itemValues$delegate_1; + var thisRef = this; + var property = itemValues$factory_3(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1021(); + } + get itemValues() { + return this.get_itemValues_e195su_k$(); + } + } + class $serializer_1021 { + constructor() { + $serializer_instance_1021 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KModuleBanner', this, 5); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('dislikeText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('dislikeIcon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('user', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_1022())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = 0; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_transient0 = 0; + var tmp10_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp10_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_1022(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + } else + while (tmp1_flag) { + tmp2_index = tmp10_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_1022(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp10_input.endStructure_1xqz0n_k$(tmp0_desc); + return KModuleBanner_0.new_com_bapis_bilibili_app_dynamic_v2_KModuleBanner_1onir8_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); + } + serialize_9yt46q_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.type === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.type); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.dislikeText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.dislikeText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.dislikeIcon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.dislikeIcon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.user_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, $serializer_getInstance_1022(), value.user_1); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_9yt46q_k$(encoder, value instanceof KModuleBanner_0 ? value : THROW_CCE()); + } + } + class KModuleBanner_0 { + constructor(title, type, dislikeText, dislikeIcon, user) { + Companion_getInstance_1034(); + title = title === VOID ? '' : title; + type = type === VOID ? 0 : type; + dislikeText = dislikeText === VOID ? '' : dislikeText; + dislikeIcon = dislikeIcon === VOID ? '' : dislikeIcon; + user = user === VOID ? null : user; + this.title = title; + this.type = type; + this.dislikeText = dislikeText; + this.dislikeIcon = dislikeIcon; + this.user_1 = user; + var tmp = this; + tmp.itemNumber$delegate_1 = lazy_0(KModuleBanner$itemNumber$delegate$lambda(this)); + } + get_title_iz32un_k$() { + return this.title; + } + get_type_wovaf7_k$() { + return this.type; + } + get_dislikeText_tev0y1_k$() { + return this.dislikeText; + } + get_dislikeIcon_tenydx_k$() { + return this.dislikeIcon; + } + itemValue() { + if (!(this.user_1 == null)) { + var tmp = this.user_1; + return (tmp == null ? true : !(tmp == null)) ? tmp : null; + } else { + return null; + } + } + itemTypeJs() { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = Companion_getInstance_1034().itemValues; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.KModuleBanner.itemType.' call + var it = element; + tmp$ret$0 = it.value === _get_itemNumber__22vn01_3(this); + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + return tmp$ret$1; + } + typeEnum() { + return Companion_getInstance_952().fromValue(this.type); + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.type; + } + component3_7eebsa_k$() { + return this.dislikeText; + } + component4_7eebs9_k$() { + return this.dislikeIcon; + } + copy_v1zd56_k$(title, type, dislikeText, dislikeIcon, user) { + return new KModuleBanner_0(title, type, dislikeText, dislikeIcon, user); + } + copy(title, type, dislikeText, dislikeIcon, user, $super) { + title = title === VOID ? this.title : title; + type = type === VOID ? this.type : type; + dislikeText = dislikeText === VOID ? this.dislikeText : dislikeText; + dislikeIcon = dislikeIcon === VOID ? this.dislikeIcon : dislikeIcon; + user = user === VOID ? this.user_1 : user; + return this.copy_v1zd56_k$(title, type, dislikeText, dislikeIcon, user); + } + toString() { + return 'KModuleBanner(title=' + this.title + ', type=' + this.type + ', dislikeText=' + this.dislikeText + ', dislikeIcon=' + this.dislikeIcon + ', user=' + this.user_1 + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + this.type | 0; + result = imul(result, 31) + getStringHashCode(this.dislikeText) | 0; + result = imul(result, 31) + getStringHashCode(this.dislikeIcon) | 0; + result = imul(result, 31) + (this.user_1 == null ? 0 : this.user_1.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KModuleBanner_0)) + return false; + var tmp0_other_with_cast = other instanceof KModuleBanner_0 ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.type === tmp0_other_with_cast.type)) + return false; + if (!(this.dislikeText === tmp0_other_with_cast.dislikeText)) + return false; + if (!(this.dislikeIcon === tmp0_other_with_cast.dislikeIcon)) + return false; + if (!equals(this.user_1, tmp0_other_with_cast.user_1)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KModuleBanner_1onir8_k$(seen1, title, type, dislikeText, dislikeIcon, user, serializationConstructorMarker) { + Companion_getInstance_1034(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1021().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.type = 0; + else + $this.type = type; + if (0 === (seen1 & 4)) + $this.dislikeText = ''; + else + $this.dislikeText = dislikeText; + if (0 === (seen1 & 8)) + $this.dislikeIcon = ''; + else + $this.dislikeIcon = dislikeIcon; + if (0 === (seen1 & 16)) + $this.user_1 = null; + else + $this.user_1 = user; + var tmp = $this; + tmp.itemNumber$delegate_1 = lazy_0(KModuleBanner$_init_$lambda_2042yg($this)); + return $this; + } + } + class Companion_1035 { + constructor() { + Companion_instance_1035 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer($serializer_getInstance_1023())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.ModuleBannerUser'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1022(); + } + } + class $serializer_1022 { + constructor() { + $serializer_instance_1022 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KModuleBannerUser', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('list', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_1035().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp6_cached = Companion_getInstance_1035().$childSerializers_1; + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KModuleBannerUser.new_com_bapis_bilibili_app_dynamic_v2_KModuleBannerUser_kwv79p_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_oq33fr_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_1035().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.list, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.list); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_oq33fr_k$(encoder, value instanceof KModuleBannerUser ? value : THROW_CCE()); + } + } + class KModuleBannerUser { + constructor(list) { + Companion_getInstance_1035(); + list = list === VOID ? emptyList() : list; + this.list = list; + } + get_list_wopuqv_k$() { + return this.list; + } + component1_7eebsc_k$() { + return this.list; + } + copy_mhs6je_k$(list) { + return new KModuleBannerUser(list); + } + copy(list, $super) { + list = list === VOID ? this.list : list; + return this.copy_mhs6je_k$(list); + } + toString() { + return 'KModuleBannerUser(list=' + this.list + ')'; + } + hashCode() { + return hashCode(this.list); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KModuleBannerUser)) + return false; + var tmp0_other_with_cast = other instanceof KModuleBannerUser ? other : THROW_CCE(); + if (!equals(this.list, tmp0_other_with_cast.list)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KModuleBannerUser_kwv79p_k$(seen1, list, serializationConstructorMarker) { + Companion_getInstance_1035(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1022().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.list = emptyList(); + else + $this.list = list; + return $this; + } + } + class Companion_1036 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.ModuleBannerUserItem'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1023(); + } + } + class $serializer_1023 { + constructor() { + $serializer_instance_1023 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KModuleBannerUserItem', this, 10); + tmp0_serialDesc.addElement_5pzumi_k$('face', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('name', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('uid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('liveState', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('official', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('vip', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('label', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('button', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('uri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('relation', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), get_nullable($serializer_getInstance_960()), get_nullable($serializer_getInstance_961()), StringSerializer_getInstance(), get_nullable($serializer_getInstance_1085()), StringSerializer_getInstance(), get_nullable($serializer_getInstance_967())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = new Long(0, 0); + var tmp7_local3 = 0; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_local8 = null; + var tmp13_local9 = null; + var tmp14_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp14_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_960(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_961(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_1085(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 9, $serializer_getInstance_967(), tmp13_local9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + } else + while (tmp1_flag) { + tmp2_index = tmp14_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_960(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_961(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_1085(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 9, $serializer_getInstance_967(), tmp13_local9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp14_input.endStructure_1xqz0n_k$(tmp0_desc); + return KModuleBannerUserItem.new_com_bapis_bilibili_app_dynamic_v2_KModuleBannerUserItem_5gcr3s_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, null); + } + serialize_wzbl64_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.face === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.face); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.name === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.name); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.uid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.uid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.liveState === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 3, value.liveState); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.official == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, $serializer_getInstance_960(), value.official); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.vip == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 5, $serializer_getInstance_961(), value.vip); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.label === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.label); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.button == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 7, $serializer_getInstance_1085(), value.button); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.uri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 8, value.uri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.relation == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 9, $serializer_getInstance_967(), value.relation); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_wzbl64_k$(encoder, value instanceof KModuleBannerUserItem ? value : THROW_CCE()); + } + } + class KModuleBannerUserItem { + constructor(face, name, uid, liveState, official, vip, label, button, uri, relation) { + Companion_instance_1036; + face = face === VOID ? '' : face; + name = name === VOID ? '' : name; + uid = uid === VOID ? new Long(0, 0) : uid; + liveState = liveState === VOID ? 0 : liveState; + official = official === VOID ? null : official; + vip = vip === VOID ? null : vip; + label = label === VOID ? '' : label; + button = button === VOID ? null : button; + uri = uri === VOID ? '' : uri; + relation = relation === VOID ? null : relation; + this.face = face; + this.name = name; + this.uid = uid; + this.liveState = liveState; + this.official = official; + this.vip = vip; + this.label = label; + this.button = button; + this.uri = uri; + this.relation = relation; + } + get_face_woluhy_k$() { + return this.face; + } + get_name_woqyms_k$() { + return this.name; + } + get_uid_18iuqh_k$() { + return this.uid; + } + get_liveState_p0nejg_k$() { + return this.liveState; + } + get_official_qkjhys_k$() { + return this.official; + } + get_vip_18itzg_k$() { + return this.vip; + } + get_label_iuj8p7_k$() { + return this.label; + } + get_button_bmjiuz_k$() { + return this.button; + } + get_uri_18iuil_k$() { + return this.uri; + } + get_relation_u22tol_k$() { + return this.relation; + } + liveStateEnum() { + return Companion_getInstance_1072().fromValue(this.liveState); + } + component1_7eebsc_k$() { + return this.face; + } + component2_7eebsb_k$() { + return this.name; + } + component3_7eebsa_k$() { + return this.uid; + } + component4_7eebs9_k$() { + return this.liveState; + } + component5_7eebs8_k$() { + return this.official; + } + component6_7eebs7_k$() { + return this.vip; + } + component7_7eebs6_k$() { + return this.label; + } + component8_7eebs5_k$() { + return this.button; + } + component9_7eebs4_k$() { + return this.uri; + } + component10_gazzfo_k$() { + return this.relation; + } + copy_xyqy7h_k$(face, name, uid, liveState, official, vip, label, button, uri, relation) { + return new KModuleBannerUserItem(face, name, uid, liveState, official, vip, label, button, uri, relation); + } + copy(face, name, uid, liveState, official, vip, label, button, uri, relation, $super) { + face = face === VOID ? this.face : face; + name = name === VOID ? this.name : name; + uid = uid === VOID ? this.uid : uid; + liveState = liveState === VOID ? this.liveState : liveState; + official = official === VOID ? this.official : official; + vip = vip === VOID ? this.vip : vip; + label = label === VOID ? this.label : label; + button = button === VOID ? this.button : button; + uri = uri === VOID ? this.uri : uri; + relation = relation === VOID ? this.relation : relation; + return this.copy_xyqy7h_k$(face, name, uid, liveState, official, vip, label, button, uri, relation); + } + toString() { + return 'KModuleBannerUserItem(face=' + this.face + ', name=' + this.name + ', uid=' + this.uid.toString() + ', liveState=' + this.liveState + ', official=' + this.official + ', vip=' + this.vip + ', label=' + this.label + ', button=' + this.button + ', uri=' + this.uri + ', relation=' + this.relation + ')'; + } + hashCode() { + var result = getStringHashCode(this.face); + result = imul(result, 31) + getStringHashCode(this.name) | 0; + result = imul(result, 31) + this.uid.hashCode() | 0; + result = imul(result, 31) + this.liveState | 0; + result = imul(result, 31) + (this.official == null ? 0 : this.official.hashCode()) | 0; + result = imul(result, 31) + (this.vip == null ? 0 : this.vip.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.label) | 0; + result = imul(result, 31) + (this.button == null ? 0 : this.button.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.uri) | 0; + result = imul(result, 31) + (this.relation == null ? 0 : this.relation.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KModuleBannerUserItem)) + return false; + var tmp0_other_with_cast = other instanceof KModuleBannerUserItem ? other : THROW_CCE(); + if (!(this.face === tmp0_other_with_cast.face)) + return false; + if (!(this.name === tmp0_other_with_cast.name)) + return false; + if (!this.uid.equals(tmp0_other_with_cast.uid)) + return false; + if (!(this.liveState === tmp0_other_with_cast.liveState)) + return false; + if (!equals(this.official, tmp0_other_with_cast.official)) + return false; + if (!equals(this.vip, tmp0_other_with_cast.vip)) + return false; + if (!(this.label === tmp0_other_with_cast.label)) + return false; + if (!equals(this.button, tmp0_other_with_cast.button)) + return false; + if (!(this.uri === tmp0_other_with_cast.uri)) + return false; + if (!equals(this.relation, tmp0_other_with_cast.relation)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KModuleBannerUserItem_5gcr3s_k$(seen1, face, name, uid, liveState, official, vip, label, button, uri, relation, serializationConstructorMarker) { + Companion_instance_1036; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1023().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.face = ''; + else + $this.face = face; + if (0 === (seen1 & 2)) + $this.name = ''; + else + $this.name = name; + if (0 === (seen1 & 4)) + $this.uid = new Long(0, 0); + else + $this.uid = uid; + if (0 === (seen1 & 8)) + $this.liveState = 0; + else + $this.liveState = liveState; + if (0 === (seen1 & 16)) + $this.official = null; + else + $this.official = official; + if (0 === (seen1 & 32)) + $this.vip = null; + else + $this.vip = vip; + if (0 === (seen1 & 64)) + $this.label = ''; + else + $this.label = label; + if (0 === (seen1 & 128)) + $this.button = null; + else + $this.button = button; + if (0 === (seen1 & 256)) + $this.uri = ''; + else + $this.uri = uri; + if (0 === (seen1 & 512)) + $this.relation = null; + else + $this.relation = relation; + return $this; + } + } + class Companion_1037 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.ModuleItemNull'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1024(); + } + } + class $serializer_1024 { + constructor() { + $serializer_instance_1024 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KModuleItemNull', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('icon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('text', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KModuleItemNull_0.new_com_bapis_bilibili_app_dynamic_v2_KModuleItemNull_l851u4_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_jao2zg_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.icon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.icon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.text === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.text); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_jao2zg_k$(encoder, value instanceof KModuleItemNull_0 ? value : THROW_CCE()); + } + } + class KModuleItemNull_0 { + constructor(icon, text) { + Companion_instance_1037; + icon = icon === VOID ? '' : icon; + text = text === VOID ? '' : text; + this.icon = icon; + this.text = text; + } + get_icon_wont8i_k$() { + return this.icon; + } + get_text_wouvsm_k$() { + return this.text; + } + component1_7eebsc_k$() { + return this.icon; + } + component2_7eebsb_k$() { + return this.text; + } + copy_plwnsl_k$(icon, text) { + return new KModuleItemNull_0(icon, text); + } + copy(icon, text, $super) { + icon = icon === VOID ? this.icon : icon; + text = text === VOID ? this.text : text; + return this.copy_plwnsl_k$(icon, text); + } + toString() { + return 'KModuleItemNull(icon=' + this.icon + ', text=' + this.text + ')'; + } + hashCode() { + var result = getStringHashCode(this.icon); + result = imul(result, 31) + getStringHashCode(this.text) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KModuleItemNull_0)) + return false; + var tmp0_other_with_cast = other instanceof KModuleItemNull_0 ? other : THROW_CCE(); + if (!(this.icon === tmp0_other_with_cast.icon)) + return false; + if (!(this.text === tmp0_other_with_cast.text)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KModuleItemNull_l851u4_k$(seen1, icon, text, serializationConstructorMarker) { + Companion_instance_1037; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1024().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.icon = ''; + else + $this.icon = icon; + if (0 === (seen1 & 2)) + $this.text = ''; + else + $this.text = text; + return $this; + } + } + class Companion_1038 { + constructor() { + Companion_instance_1038 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, new ArrayListSerializer($serializer_getInstance_1026()), null, null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.ModuleShareInfo'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1025(); + } + } + class $serializer_1025 { + constructor() { + $serializer_instance_1025 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KModuleShareInfo', this, 5); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('shareChannels', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('shareOrigin', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('oid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('sid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_1038().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), tmp0_cached[1], StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp10_cached = Companion_getInstance_1038().$childSerializers_1; + if (tmp9_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp9_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp10_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + } else + while (tmp1_flag) { + tmp2_index = tmp9_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp9_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp10_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp9_input.endStructure_1xqz0n_k$(tmp0_desc); + return KModuleShareInfo_0.new_com_bapis_bilibili_app_dynamic_v2_KModuleShareInfo_vnvwel_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); + } + serialize_m9otnf_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_1038().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !equals(value.shareChannels, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 1, tmp2_cached[1], value.shareChannels); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.shareOrigin === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.shareOrigin); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.oid === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.oid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.sid === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.sid); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_m9otnf_k$(encoder, value instanceof KModuleShareInfo_0 ? value : THROW_CCE()); + } + } + class KModuleShareInfo_0 { + constructor(title, shareChannels, shareOrigin, oid, sid) { + Companion_getInstance_1038(); + title = title === VOID ? '' : title; + shareChannels = shareChannels === VOID ? emptyList() : shareChannels; + shareOrigin = shareOrigin === VOID ? '' : shareOrigin; + oid = oid === VOID ? '' : oid; + sid = sid === VOID ? '' : sid; + this.title = title; + this.shareChannels = shareChannels; + this.shareOrigin = shareOrigin; + this.oid = oid; + this.sid = sid; + } + get_title_iz32un_k$() { + return this.title; + } + get_shareChannels_l5njja_k$() { + return this.shareChannels; + } + get_shareOrigin_d12pvg_k$() { + return this.shareOrigin; + } + get_oid_18iz6n_k$() { + return this.oid; + } + get_sid_18iw7v_k$() { + return this.sid; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.shareChannels; + } + component3_7eebsa_k$() { + return this.shareOrigin; + } + component4_7eebs9_k$() { + return this.oid; + } + component5_7eebs8_k$() { + return this.sid; + } + copy_odh7km_k$(title, shareChannels, shareOrigin, oid, sid) { + return new KModuleShareInfo_0(title, shareChannels, shareOrigin, oid, sid); + } + copy(title, shareChannels, shareOrigin, oid, sid, $super) { + title = title === VOID ? this.title : title; + shareChannels = shareChannels === VOID ? this.shareChannels : shareChannels; + shareOrigin = shareOrigin === VOID ? this.shareOrigin : shareOrigin; + oid = oid === VOID ? this.oid : oid; + sid = sid === VOID ? this.sid : sid; + return this.copy_odh7km_k$(title, shareChannels, shareOrigin, oid, sid); + } + toString() { + return 'KModuleShareInfo(title=' + this.title + ', shareChannels=' + this.shareChannels + ', shareOrigin=' + this.shareOrigin + ', oid=' + this.oid + ', sid=' + this.sid + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + hashCode(this.shareChannels) | 0; + result = imul(result, 31) + getStringHashCode(this.shareOrigin) | 0; + result = imul(result, 31) + getStringHashCode(this.oid) | 0; + result = imul(result, 31) + getStringHashCode(this.sid) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KModuleShareInfo_0)) + return false; + var tmp0_other_with_cast = other instanceof KModuleShareInfo_0 ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!equals(this.shareChannels, tmp0_other_with_cast.shareChannels)) + return false; + if (!(this.shareOrigin === tmp0_other_with_cast.shareOrigin)) + return false; + if (!(this.oid === tmp0_other_with_cast.oid)) + return false; + if (!(this.sid === tmp0_other_with_cast.sid)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KModuleShareInfo_vnvwel_k$(seen1, title, shareChannels, shareOrigin, oid, sid, serializationConstructorMarker) { + Companion_getInstance_1038(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1025().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.shareChannels = emptyList(); + else + $this.shareChannels = shareChannels; + if (0 === (seen1 & 4)) + $this.shareOrigin = ''; + else + $this.shareOrigin = shareOrigin; + if (0 === (seen1 & 8)) + $this.oid = ''; + else + $this.oid = oid; + if (0 === (seen1 & 16)) + $this.sid = ''; + else + $this.sid = sid; + return $this; + } + } + class Companion_1039 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.ShareChannel'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1026(); + } + } + class $serializer_1026 { + constructor() { + $serializer_instance_1026 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KShareChannel', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('name', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('image', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('channel', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('reserve', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_977())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_977(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_977(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KShareChannel.new_com_bapis_bilibili_app_dynamic_v2_KShareChannel_tzuo04_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_l3l0u2_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.name === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.name); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.image === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.image); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.channel === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.channel); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.reserve == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_977(), value.reserve); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_l3l0u2_k$(encoder, value instanceof KShareChannel ? value : THROW_CCE()); + } + } + class KShareChannel { + constructor(name, image, channel, reserve) { + Companion_instance_1039; + name = name === VOID ? '' : name; + image = image === VOID ? '' : image; + channel = channel === VOID ? '' : channel; + reserve = reserve === VOID ? null : reserve; + this.name = name; + this.image = image; + this.channel = channel; + this.reserve = reserve; + } + get_name_woqyms_k$() { + return this.name; + } + get_image_it3i2a_k$() { + return this.image; + } + get_channel_dhi7tm_k$() { + return this.channel; + } + get_reserve_jeq383_k$() { + return this.reserve; + } + component1_7eebsc_k$() { + return this.name; + } + component2_7eebsb_k$() { + return this.image; + } + component3_7eebsa_k$() { + return this.channel; + } + component4_7eebs9_k$() { + return this.reserve; + } + copy_87y9dq_k$(name, image, channel, reserve) { + return new KShareChannel(name, image, channel, reserve); + } + copy(name, image, channel, reserve, $super) { + name = name === VOID ? this.name : name; + image = image === VOID ? this.image : image; + channel = channel === VOID ? this.channel : channel; + reserve = reserve === VOID ? this.reserve : reserve; + return this.copy_87y9dq_k$(name, image, channel, reserve); + } + toString() { + return 'KShareChannel(name=' + this.name + ', image=' + this.image + ', channel=' + this.channel + ', reserve=' + this.reserve + ')'; + } + hashCode() { + var result = getStringHashCode(this.name); + result = imul(result, 31) + getStringHashCode(this.image) | 0; + result = imul(result, 31) + getStringHashCode(this.channel) | 0; + result = imul(result, 31) + (this.reserve == null ? 0 : this.reserve.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KShareChannel)) + return false; + var tmp0_other_with_cast = other instanceof KShareChannel ? other : THROW_CCE(); + if (!(this.name === tmp0_other_with_cast.name)) + return false; + if (!(this.image === tmp0_other_with_cast.image)) + return false; + if (!(this.channel === tmp0_other_with_cast.channel)) + return false; + if (!equals(this.reserve, tmp0_other_with_cast.reserve)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KShareChannel_tzuo04_k$(seen1, name, image, channel, reserve, serializationConstructorMarker) { + Companion_instance_1039; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1026().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.name = ''; + else + $this.name = name; + if (0 === (seen1 & 2)) + $this.image = ''; + else + $this.image = image; + if (0 === (seen1 & 4)) + $this.channel = ''; + else + $this.channel = channel; + if (0 === (seen1 & 8)) + $this.reserve = null; + else + $this.reserve = reserve; + return $this; + } + } + class Companion_1040 { + constructor() { + Companion_instance_1040 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, null, null, new ArrayListSerializer($serializer_getInstance())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.ModuleRecommend'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1027(); + } + } + class $serializer_1027 { + constructor() { + $serializer_instance_1027 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KModuleRecommend', this, 6); + tmp0_serialDesc.addElement_5pzumi_k$('moduleTitle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('image', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('tag', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('jumpUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('ad', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_1040().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), tmp0_cached[5]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp11_cached = Companion_getInstance_1040().$childSerializers_1; + if (tmp10_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp10_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 5, tmp11_cached[5], tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + } else + while (tmp1_flag) { + tmp2_index = tmp10_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp10_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 5, tmp11_cached[5], tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp10_input.endStructure_1xqz0n_k$(tmp0_desc); + return KModuleRecommend_0.new_com_bapis_bilibili_app_dynamic_v2_KModuleRecommend_kuh057_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); + } + serialize_g4jnx0_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_1040().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.moduleTitle === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.moduleTitle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.image === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.image); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.tag === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.tag); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.jumpUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.jumpUrl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !equals(value.ad, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 5, tmp2_cached[5], value.ad); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_g4jnx0_k$(encoder, value instanceof KModuleRecommend_0 ? value : THROW_CCE()); + } + } + class KModuleRecommend_0 { + constructor(moduleTitle, image, tag, title, jumpUrl, ad) { + Companion_getInstance_1040(); + moduleTitle = moduleTitle === VOID ? '' : moduleTitle; + image = image === VOID ? '' : image; + tag = tag === VOID ? '' : tag; + title = title === VOID ? '' : title; + jumpUrl = jumpUrl === VOID ? '' : jumpUrl; + ad = ad === VOID ? emptyList() : ad; + this.moduleTitle = moduleTitle; + this.image = image; + this.tag = tag; + this.title = title; + this.jumpUrl = jumpUrl; + this.ad = ad; + } + get_moduleTitle_61edct_k$() { + return this.moduleTitle; + } + get_image_it3i2a_k$() { + return this.image; + } + get_tag_18ivnz_k$() { + return this.tag; + } + get_title_iz32un_k$() { + return this.title; + } + get_jumpUrl_jhqiko_k$() { + return this.jumpUrl; + } + get_ad_knto44_k$() { + return this.ad; + } + component1_7eebsc_k$() { + return this.moduleTitle; + } + component2_7eebsb_k$() { + return this.image; + } + component3_7eebsa_k$() { + return this.tag; + } + component4_7eebs9_k$() { + return this.title; + } + component5_7eebs8_k$() { + return this.jumpUrl; + } + component6_7eebs7_k$() { + return this.ad; + } + copy_3y82zm_k$(moduleTitle, image, tag, title, jumpUrl, ad) { + return new KModuleRecommend_0(moduleTitle, image, tag, title, jumpUrl, ad); + } + copy(moduleTitle, image, tag, title, jumpUrl, ad, $super) { + moduleTitle = moduleTitle === VOID ? this.moduleTitle : moduleTitle; + image = image === VOID ? this.image : image; + tag = tag === VOID ? this.tag : tag; + title = title === VOID ? this.title : title; + jumpUrl = jumpUrl === VOID ? this.jumpUrl : jumpUrl; + ad = ad === VOID ? this.ad : ad; + return this.copy_3y82zm_k$(moduleTitle, image, tag, title, jumpUrl, ad); + } + toString() { + return 'KModuleRecommend(moduleTitle=' + this.moduleTitle + ', image=' + this.image + ', tag=' + this.tag + ', title=' + this.title + ', jumpUrl=' + this.jumpUrl + ', ad=' + this.ad + ')'; + } + hashCode() { + var result = getStringHashCode(this.moduleTitle); + result = imul(result, 31) + getStringHashCode(this.image) | 0; + result = imul(result, 31) + getStringHashCode(this.tag) | 0; + result = imul(result, 31) + getStringHashCode(this.title) | 0; + result = imul(result, 31) + getStringHashCode(this.jumpUrl) | 0; + result = imul(result, 31) + hashCode(this.ad) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KModuleRecommend_0)) + return false; + var tmp0_other_with_cast = other instanceof KModuleRecommend_0 ? other : THROW_CCE(); + if (!(this.moduleTitle === tmp0_other_with_cast.moduleTitle)) + return false; + if (!(this.image === tmp0_other_with_cast.image)) + return false; + if (!(this.tag === tmp0_other_with_cast.tag)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.jumpUrl === tmp0_other_with_cast.jumpUrl)) + return false; + if (!equals(this.ad, tmp0_other_with_cast.ad)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KModuleRecommend_kuh057_k$(seen1, moduleTitle, image, tag, title, jumpUrl, ad, serializationConstructorMarker) { + Companion_getInstance_1040(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1027().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.moduleTitle = ''; + else + $this.moduleTitle = moduleTitle; + if (0 === (seen1 & 2)) + $this.image = ''; + else + $this.image = image; + if (0 === (seen1 & 4)) + $this.tag = ''; + else + $this.tag = tag; + if (0 === (seen1 & 8)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 16)) + $this.jumpUrl = ''; + else + $this.jumpUrl = jumpUrl; + if (0 === (seen1 & 32)) + $this.ad = emptyList(); + else + $this.ad = ad; + return $this; + } + } + class Companion_1041 { + constructor() { + Companion_instance_1041 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer($serializer_getInstance_972()), null, null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.ModuleTop'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1028(); + } + } + class $serializer_1028 { + constructor() { + $serializer_instance_1028 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KModuleTop', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('tpList', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('archive', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('author', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('hiddenNavBar', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_1041().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0], get_nullable($serializer_getInstance_1071()), get_nullable($serializer_getInstance_953()), BooleanSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = false; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp9_cached = Companion_getInstance_1041().$childSerializers_1; + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp9_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_1071(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_953(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp9_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_1071(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_953(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KModuleTop_0.new_com_bapis_bilibili_app_dynamic_v2_KModuleTop_wv9l3i_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_z7g85p_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_1041().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.tpList, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.tpList); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.archive == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_1071(), value.archive); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.author == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_953(), value.author); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.hiddenNavBar === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 3, value.hiddenNavBar); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_z7g85p_k$(encoder, value instanceof KModuleTop_0 ? value : THROW_CCE()); + } + } + class KModuleTop_0 { + constructor(tpList, archive, author, hiddenNavBar) { + Companion_getInstance_1041(); + tpList = tpList === VOID ? emptyList() : tpList; + archive = archive === VOID ? null : archive; + author = author === VOID ? null : author; + hiddenNavBar = hiddenNavBar === VOID ? false : hiddenNavBar; + this.tpList = tpList; + this.archive = archive; + this.author = author; + this.hiddenNavBar = hiddenNavBar; + } + get_tpList_k1vzgj_k$() { + return this.tpList; + } + get_archive_b3ugpz_k$() { + return this.archive; + } + get_author_b5hnkk_k$() { + return this.author; + } + get_hiddenNavBar_a7px8d_k$() { + return this.hiddenNavBar; + } + component1_7eebsc_k$() { + return this.tpList; + } + component2_7eebsb_k$() { + return this.archive; + } + component3_7eebsa_k$() { + return this.author; + } + component4_7eebs9_k$() { + return this.hiddenNavBar; + } + copy_rxnjod_k$(tpList, archive, author, hiddenNavBar) { + return new KModuleTop_0(tpList, archive, author, hiddenNavBar); + } + copy(tpList, archive, author, hiddenNavBar, $super) { + tpList = tpList === VOID ? this.tpList : tpList; + archive = archive === VOID ? this.archive : archive; + author = author === VOID ? this.author : author; + hiddenNavBar = hiddenNavBar === VOID ? this.hiddenNavBar : hiddenNavBar; + return this.copy_rxnjod_k$(tpList, archive, author, hiddenNavBar); + } + toString() { + return 'KModuleTop(tpList=' + this.tpList + ', archive=' + this.archive + ', author=' + this.author + ', hiddenNavBar=' + this.hiddenNavBar + ')'; + } + hashCode() { + var result = hashCode(this.tpList); + result = imul(result, 31) + (this.archive == null ? 0 : this.archive.hashCode()) | 0; + result = imul(result, 31) + (this.author == null ? 0 : this.author.hashCode()) | 0; + result = imul(result, 31) + getBooleanHashCode(this.hiddenNavBar) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KModuleTop_0)) + return false; + var tmp0_other_with_cast = other instanceof KModuleTop_0 ? other : THROW_CCE(); + if (!equals(this.tpList, tmp0_other_with_cast.tpList)) + return false; + if (!equals(this.archive, tmp0_other_with_cast.archive)) + return false; + if (!equals(this.author, tmp0_other_with_cast.author)) + return false; + if (!(this.hiddenNavBar === tmp0_other_with_cast.hiddenNavBar)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KModuleTop_wv9l3i_k$(seen1, tpList, archive, author, hiddenNavBar, serializationConstructorMarker) { + Companion_getInstance_1041(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1028().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.tpList = emptyList(); + else + $this.tpList = tpList; + if (0 === (seen1 & 2)) + $this.archive = null; + else + $this.archive = archive; + if (0 === (seen1 & 4)) + $this.author = null; + else + $this.author = author; + if (0 === (seen1 & 8)) + $this.hiddenNavBar = false; + else + $this.hiddenNavBar = hiddenNavBar; + return $this; + } + } + class Companion_1042 { + constructor() { + Companion_instance_1042 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KModuleButtom$KInteractionIcon$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KModuleButtom$KInteractionIcon$Companion$_anonymous__vt7q25); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_113(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KInteractionIcon_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KInteractionIcon with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_113(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_1029 { + constructor() { + $serializer_instance_1029 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.dynamic.v2.KModuleButtom.KInteractionIcon', 6); + tmp0_serialDesc.addElement_5pzumi_k$('ICON_INVALID', false); + tmp0_serialDesc.addElement_5pzumi_k$('ICON_FORWARD', false); + tmp0_serialDesc.addElement_5pzumi_k$('ICON_COMMENT', false); + tmp0_serialDesc.addElement_5pzumi_k$('ICON_FAVORITE', false); + tmp0_serialDesc.addElement_5pzumi_k$('ICON_LIKE', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_113()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_t8eqby_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_t8eqby_k$(encoder, value instanceof KInteractionIcon ? value : THROW_CCE()); + } + } + class KInteractionIcon extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_1043 { + constructor() { + Companion_instance_1043 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, new ArrayListSerializer(IntSerializer_getInstance()), new ArrayListSerializer($serializer_getInstance_1016())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.ModuleButtom'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1030(); + } + } + class $serializer_1030 { + constructor() { + $serializer_instance_1030 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KModuleButtom', this, 5); + tmp0_serialDesc.addElement_5pzumi_k$('moduleStat', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('commentBox', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('commentBoxMsg', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('interactionIcons', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('faces', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_1043().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_1006()), BooleanSerializer_getInstance(), StringSerializer_getInstance(), tmp0_cached[3], tmp0_cached[4]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = false; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp10_cached = Companion_getInstance_1043().$childSerializers_1; + if (tmp9_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_1006(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp9_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp9_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 3, tmp10_cached[3], tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp9_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 4, tmp10_cached[4], tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + } else + while (tmp1_flag) { + tmp2_index = tmp9_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_1006(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp9_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp9_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 3, tmp10_cached[3], tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp9_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 4, tmp10_cached[4], tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp9_input.endStructure_1xqz0n_k$(tmp0_desc); + return KModuleButtom_0.new_com_bapis_bilibili_app_dynamic_v2_KModuleButtom_1o0vwr_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); + } + serialize_dxr32l_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_1043().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.moduleStat == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_1006(), value.moduleStat); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.commentBox === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 1, value.commentBox); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.commentBoxMsg === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.commentBoxMsg); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !equals(value.interactionIcons, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 3, tmp2_cached[3], value.interactionIcons); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !equals(value.faces, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 4, tmp2_cached[4], value.faces); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_dxr32l_k$(encoder, value instanceof KModuleButtom_0 ? value : THROW_CCE()); + } + } + class KModuleButtom_0 { + constructor(moduleStat, commentBox, commentBoxMsg, interactionIcons, faces) { + Companion_getInstance_1043(); + moduleStat = moduleStat === VOID ? null : moduleStat; + commentBox = commentBox === VOID ? false : commentBox; + commentBoxMsg = commentBoxMsg === VOID ? '' : commentBoxMsg; + interactionIcons = interactionIcons === VOID ? emptyList() : interactionIcons; + faces = faces === VOID ? emptyList() : faces; + this.moduleStat = moduleStat; + this.commentBox = commentBox; + this.commentBoxMsg = commentBoxMsg; + this.interactionIcons = interactionIcons; + this.faces = faces; + } + get_moduleStat_ykc51z_k$() { + return this.moduleStat; + } + get_commentBox_5axqx7_k$() { + return this.commentBox; + } + get_commentBoxMsg_xaq2b8_k$() { + return this.commentBoxMsg; + } + get_interactionIcons_ksr6kv_k$() { + return this.interactionIcons; + } + get_faces_ir8hvx_k$() { + return this.faces; + } + component1_7eebsc_k$() { + return this.moduleStat; + } + component2_7eebsb_k$() { + return this.commentBox; + } + component3_7eebsa_k$() { + return this.commentBoxMsg; + } + component4_7eebs9_k$() { + return this.interactionIcons; + } + component5_7eebs8_k$() { + return this.faces; + } + copy_1awngc_k$(moduleStat, commentBox, commentBoxMsg, interactionIcons, faces) { + return new KModuleButtom_0(moduleStat, commentBox, commentBoxMsg, interactionIcons, faces); + } + copy(moduleStat, commentBox, commentBoxMsg, interactionIcons, faces, $super) { + moduleStat = moduleStat === VOID ? this.moduleStat : moduleStat; + commentBox = commentBox === VOID ? this.commentBox : commentBox; + commentBoxMsg = commentBoxMsg === VOID ? this.commentBoxMsg : commentBoxMsg; + interactionIcons = interactionIcons === VOID ? this.interactionIcons : interactionIcons; + faces = faces === VOID ? this.faces : faces; + return this.copy_1awngc_k$(moduleStat, commentBox, commentBoxMsg, interactionIcons, faces); + } + toString() { + return 'KModuleButtom(moduleStat=' + this.moduleStat + ', commentBox=' + this.commentBox + ', commentBoxMsg=' + this.commentBoxMsg + ', interactionIcons=' + this.interactionIcons + ', faces=' + this.faces + ')'; + } + hashCode() { + var result = this.moduleStat == null ? 0 : this.moduleStat.hashCode(); + result = imul(result, 31) + getBooleanHashCode(this.commentBox) | 0; + result = imul(result, 31) + getStringHashCode(this.commentBoxMsg) | 0; + result = imul(result, 31) + hashCode(this.interactionIcons) | 0; + result = imul(result, 31) + hashCode(this.faces) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KModuleButtom_0)) + return false; + var tmp0_other_with_cast = other instanceof KModuleButtom_0 ? other : THROW_CCE(); + if (!equals(this.moduleStat, tmp0_other_with_cast.moduleStat)) + return false; + if (!(this.commentBox === tmp0_other_with_cast.commentBox)) + return false; + if (!(this.commentBoxMsg === tmp0_other_with_cast.commentBoxMsg)) + return false; + if (!equals(this.interactionIcons, tmp0_other_with_cast.interactionIcons)) + return false; + if (!equals(this.faces, tmp0_other_with_cast.faces)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KModuleButtom_1o0vwr_k$(seen1, moduleStat, commentBox, commentBoxMsg, interactionIcons, faces, serializationConstructorMarker) { + Companion_getInstance_1043(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1030().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.moduleStat = null; + else + $this.moduleStat = moduleStat; + if (0 === (seen1 & 2)) + $this.commentBox = false; + else + $this.commentBox = commentBox; + if (0 === (seen1 & 4)) + $this.commentBoxMsg = ''; + else + $this.commentBoxMsg = commentBoxMsg; + if (0 === (seen1 & 8)) + $this.interactionIcons = emptyList(); + else + $this.interactionIcons = interactionIcons; + if (0 === (seen1 & 16)) + $this.faces = emptyList(); + else + $this.faces = faces; + return $this; + } + } + class Companion_1044 { + constructor() { + Companion_instance_1044 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, new ArrayListSerializer($serializer_getInstance_1032()), null, null, null, null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.ModuleStory'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1031(); + } + } + class $serializer_1031 { + constructor() { + $serializer_instance_1031 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KModuleStory', this, 7); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('items', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('showPublishEntrance', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('foldState', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('uri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('publishText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_1044().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), tmp0_cached[1], BooleanSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = false; + var tmp7_local3 = new Long(0, 0); + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp12_cached = Companion_getInstance_1044().$childSerializers_1; + if (tmp11_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp11_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp12_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp11_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + } else + while (tmp1_flag) { + tmp2_index = tmp11_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp11_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp12_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp11_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp11_input.endStructure_1xqz0n_k$(tmp0_desc); + return KModuleStory_0.new_com_bapis_bilibili_app_dynamic_v2_KModuleStory_unhiyw_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, null); + } + serialize_7hns2b_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_1044().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !equals(value.items, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 1, tmp2_cached[1], value.items); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.showPublishEntrance === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 2, value.showPublishEntrance); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !value.foldState.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 3, value.foldState); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.uri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.uri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.cover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.publishText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.publishText); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_7hns2b_k$(encoder, value instanceof KModuleStory_0 ? value : THROW_CCE()); + } + } + class KModuleStory_0 { + constructor(title, items, showPublishEntrance, foldState, uri, cover, publishText) { + Companion_getInstance_1044(); + title = title === VOID ? '' : title; + items = items === VOID ? emptyList() : items; + showPublishEntrance = showPublishEntrance === VOID ? false : showPublishEntrance; + foldState = foldState === VOID ? new Long(0, 0) : foldState; + uri = uri === VOID ? '' : uri; + cover = cover === VOID ? '' : cover; + publishText = publishText === VOID ? '' : publishText; + this.title = title; + this.items = items; + this.showPublishEntrance = showPublishEntrance; + this.foldState = foldState; + this.uri = uri; + this.cover = cover; + this.publishText = publishText; + } + get_title_iz32un_k$() { + return this.title; + } + get_items_it823b_k$() { + return this.items; + } + get_showPublishEntrance_6nnh6n_k$() { + return this.showPublishEntrance; + } + get_foldState_gypr3b_k$() { + return this.foldState; + } + get_uri_18iuil_k$() { + return this.uri; + } + get_cover_ipug0e_k$() { + return this.cover; + } + get_publishText_3q97cj_k$() { + return this.publishText; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.items; + } + component3_7eebsa_k$() { + return this.showPublishEntrance; + } + component4_7eebs9_k$() { + return this.foldState; + } + component5_7eebs8_k$() { + return this.uri; + } + component6_7eebs7_k$() { + return this.cover; + } + component7_7eebs6_k$() { + return this.publishText; + } + copy_psl6tz_k$(title, items, showPublishEntrance, foldState, uri, cover, publishText) { + return new KModuleStory_0(title, items, showPublishEntrance, foldState, uri, cover, publishText); + } + copy(title, items, showPublishEntrance, foldState, uri, cover, publishText, $super) { + title = title === VOID ? this.title : title; + items = items === VOID ? this.items : items; + showPublishEntrance = showPublishEntrance === VOID ? this.showPublishEntrance : showPublishEntrance; + foldState = foldState === VOID ? this.foldState : foldState; + uri = uri === VOID ? this.uri : uri; + cover = cover === VOID ? this.cover : cover; + publishText = publishText === VOID ? this.publishText : publishText; + return this.copy_psl6tz_k$(title, items, showPublishEntrance, foldState, uri, cover, publishText); + } + toString() { + return 'KModuleStory(title=' + this.title + ', items=' + this.items + ', showPublishEntrance=' + this.showPublishEntrance + ', foldState=' + this.foldState.toString() + ', uri=' + this.uri + ', cover=' + this.cover + ', publishText=' + this.publishText + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + hashCode(this.items) | 0; + result = imul(result, 31) + getBooleanHashCode(this.showPublishEntrance) | 0; + result = imul(result, 31) + this.foldState.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.uri) | 0; + result = imul(result, 31) + getStringHashCode(this.cover) | 0; + result = imul(result, 31) + getStringHashCode(this.publishText) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KModuleStory_0)) + return false; + var tmp0_other_with_cast = other instanceof KModuleStory_0 ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!equals(this.items, tmp0_other_with_cast.items)) + return false; + if (!(this.showPublishEntrance === tmp0_other_with_cast.showPublishEntrance)) + return false; + if (!this.foldState.equals(tmp0_other_with_cast.foldState)) + return false; + if (!(this.uri === tmp0_other_with_cast.uri)) + return false; + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + if (!(this.publishText === tmp0_other_with_cast.publishText)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KModuleStory_unhiyw_k$(seen1, title, items, showPublishEntrance, foldState, uri, cover, publishText, serializationConstructorMarker) { + Companion_getInstance_1044(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1031().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.items = emptyList(); + else + $this.items = items; + if (0 === (seen1 & 4)) + $this.showPublishEntrance = false; + else + $this.showPublishEntrance = showPublishEntrance; + if (0 === (seen1 & 8)) + $this.foldState = new Long(0, 0); + else + $this.foldState = foldState; + if (0 === (seen1 & 16)) + $this.uri = ''; + else + $this.uri = uri; + if (0 === (seen1 & 32)) + $this.cover = ''; + else + $this.cover = cover; + if (0 === (seen1 & 64)) + $this.publishText = ''; + else + $this.publishText = publishText; + return $this; + } + } + class KRcmdItem_2 { + constructor(value) { + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + } + class KStoryArchive extends KRcmdItem_2 { + constructor() { + KStoryArchive_instance = null; + super(0); + KStoryArchive_instance = this; + } + } + class Companion_1045 { + constructor() { + Companion_instance_1045 = this; + var tmp = this; + tmp.rcmdItemValues$delegate_1 = lazy_0(KStoryItem$Companion$rcmdItemValues$delegate$lambda); + this.targetPath = '/bilibili.app.dynamic.v2.StoryItem'; + } + get_rcmdItemValues_ndjnsq_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.rcmdItemValues$delegate_1; + var thisRef = this; + var property = rcmdItemValues$factory_1(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1032(); + } + get rcmdItemValues() { + return this.get_rcmdItemValues_ndjnsq_k$(); + } + } + class $serializer_1032 { + constructor() { + $serializer_instance_1032 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KStoryItem', this, 5); + tmp0_serialDesc.addElement_5pzumi_k$('author', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('desc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('status', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('storyArchive', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_956()), StringSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), get_nullable($serializer_getInstance_1033())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = new Long(0, 0); + var tmp7_local3 = 0; + var tmp8_local4 = null; + var tmp9_transient0 = 0; + var tmp10_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp10_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_956(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_1033(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + } else + while (tmp1_flag) { + tmp2_index = tmp10_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_956(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_1033(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp10_input.endStructure_1xqz0n_k$(tmp0_desc); + return KStoryItem.new_com_bapis_bilibili_app_dynamic_v2_KStoryItem_ylobl9_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); + } + serialize_nodb7w_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.author == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_956(), value.author); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.desc === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.desc); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.status.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.status); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.type === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 3, value.type); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.storyArchive_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, $serializer_getInstance_1033(), value.storyArchive_1); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_nodb7w_k$(encoder, value instanceof KStoryItem ? value : THROW_CCE()); + } + } + class KStoryItem { + constructor(author, desc, status, type, storyArchive) { + Companion_getInstance_1045(); + author = author === VOID ? null : author; + desc = desc === VOID ? '' : desc; + status = status === VOID ? new Long(0, 0) : status; + type = type === VOID ? 0 : type; + storyArchive = storyArchive === VOID ? null : storyArchive; + this.author = author; + this.desc = desc; + this.status = status; + this.type = type; + this.storyArchive_1 = storyArchive; + var tmp = this; + tmp.rcmdItemNumber$delegate_1 = lazy_0(KStoryItem$rcmdItemNumber$delegate$lambda(this)); + } + get_author_b5hnkk_k$() { + return this.author; + } + get_desc_woknve_k$() { + return this.desc; + } + get_status_jnf6d7_k$() { + return this.status; + } + get_type_wovaf7_k$() { + return this.type; + } + rcmdItemValue() { + if (!(this.storyArchive_1 == null)) { + var tmp = this.storyArchive_1; + return (tmp == null ? true : !(tmp == null)) ? tmp : null; + } else { + return null; + } + } + rcmdItemTypeJs() { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = Companion_getInstance_1045().rcmdItemValues; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.KStoryItem.rcmdItemType.' call + var it = element; + tmp$ret$0 = it.value === _get_rcmdItemNumber__ys0evt_1(this); + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + return tmp$ret$1; + } + typeEnum() { + return Companion_getInstance_953().fromValue(this.type); + } + component1_7eebsc_k$() { + return this.author; + } + component2_7eebsb_k$() { + return this.desc; + } + component3_7eebsa_k$() { + return this.status; + } + component4_7eebs9_k$() { + return this.type; + } + copy_f0a39h_k$(author, desc, status, type, storyArchive) { + return new KStoryItem(author, desc, status, type, storyArchive); + } + copy(author, desc, status, type, storyArchive, $super) { + author = author === VOID ? this.author : author; + desc = desc === VOID ? this.desc : desc; + status = status === VOID ? this.status : status; + type = type === VOID ? this.type : type; + storyArchive = storyArchive === VOID ? this.storyArchive_1 : storyArchive; + return this.copy_f0a39h_k$(author, desc, status, type, storyArchive); + } + toString() { + return 'KStoryItem(author=' + this.author + ', desc=' + this.desc + ', status=' + this.status.toString() + ', type=' + this.type + ', storyArchive=' + this.storyArchive_1 + ')'; + } + hashCode() { + var result = this.author == null ? 0 : this.author.hashCode(); + result = imul(result, 31) + getStringHashCode(this.desc) | 0; + result = imul(result, 31) + this.status.hashCode() | 0; + result = imul(result, 31) + this.type | 0; + result = imul(result, 31) + (this.storyArchive_1 == null ? 0 : this.storyArchive_1.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KStoryItem)) + return false; + var tmp0_other_with_cast = other instanceof KStoryItem ? other : THROW_CCE(); + if (!equals(this.author, tmp0_other_with_cast.author)) + return false; + if (!(this.desc === tmp0_other_with_cast.desc)) + return false; + if (!this.status.equals(tmp0_other_with_cast.status)) + return false; + if (!(this.type === tmp0_other_with_cast.type)) + return false; + if (!equals(this.storyArchive_1, tmp0_other_with_cast.storyArchive_1)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KStoryItem_ylobl9_k$(seen1, author, desc, status, type, storyArchive, serializationConstructorMarker) { + Companion_getInstance_1045(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1032().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.author = null; + else + $this.author = author; + if (0 === (seen1 & 2)) + $this.desc = ''; + else + $this.desc = desc; + if (0 === (seen1 & 4)) + $this.status = new Long(0, 0); + else + $this.status = status; + if (0 === (seen1 & 8)) + $this.type = 0; + else + $this.type = type; + if (0 === (seen1 & 16)) + $this.storyArchive_1 = null; + else + $this.storyArchive_1 = storyArchive; + var tmp = $this; + tmp.rcmdItemNumber$delegate_1 = lazy_0(KStoryItem$_init_$lambda_2cxoqa($this)); + return $this; + } + } + class Companion_1046 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.StoryArchive'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1033(); + } + } + class $serializer_1033 { + constructor() { + $serializer_instance_1033 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KStoryArchive', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('aid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('uri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('dimension', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_1072())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = new Long(0, 0); + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_1072(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_1072(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KStoryArchive_0.new_com_bapis_bilibili_app_dynamic_v2_KStoryArchive_1gzcxf_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_x82tj7_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.cover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.aid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.aid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.uri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.uri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.dimension == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_1072(), value.dimension); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_x82tj7_k$(encoder, value instanceof KStoryArchive_0 ? value : THROW_CCE()); + } + } + class KStoryArchive_0 { + constructor(cover, aid, uri, dimension) { + Companion_instance_1046; + cover = cover === VOID ? '' : cover; + aid = aid === VOID ? new Long(0, 0) : aid; + uri = uri === VOID ? '' : uri; + dimension = dimension === VOID ? null : dimension; + this.cover = cover; + this.aid = aid; + this.uri = uri; + this.dimension = dimension; + } + get_cover_ipug0e_k$() { + return this.cover; + } + get_aid_18j9kd_k$() { + return this.aid; + } + get_uri_18iuil_k$() { + return this.uri; + } + get_dimension_9lf48z_k$() { + return this.dimension; + } + component1_7eebsc_k$() { + return this.cover; + } + component2_7eebsb_k$() { + return this.aid; + } + component3_7eebsa_k$() { + return this.uri; + } + component4_7eebs9_k$() { + return this.dimension; + } + copy_p7vis7_k$(cover, aid, uri, dimension) { + return new KStoryArchive_0(cover, aid, uri, dimension); + } + copy(cover, aid, uri, dimension, $super) { + cover = cover === VOID ? this.cover : cover; + aid = aid === VOID ? this.aid : aid; + uri = uri === VOID ? this.uri : uri; + dimension = dimension === VOID ? this.dimension : dimension; + return this.copy_p7vis7_k$(cover, aid, uri, dimension); + } + toString() { + return 'KStoryArchive(cover=' + this.cover + ', aid=' + this.aid.toString() + ', uri=' + this.uri + ', dimension=' + this.dimension + ')'; + } + hashCode() { + var result = getStringHashCode(this.cover); + result = imul(result, 31) + this.aid.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.uri) | 0; + result = imul(result, 31) + (this.dimension == null ? 0 : this.dimension.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KStoryArchive_0)) + return false; + var tmp0_other_with_cast = other instanceof KStoryArchive_0 ? other : THROW_CCE(); + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + if (!this.aid.equals(tmp0_other_with_cast.aid)) + return false; + if (!(this.uri === tmp0_other_with_cast.uri)) + return false; + if (!equals(this.dimension, tmp0_other_with_cast.dimension)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KStoryArchive_1gzcxf_k$(seen1, cover, aid, uri, dimension, serializationConstructorMarker) { + Companion_instance_1046; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1033().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.cover = ''; + else + $this.cover = cover; + if (0 === (seen1 & 2)) + $this.aid = new Long(0, 0); + else + $this.aid = aid; + if (0 === (seen1 & 4)) + $this.uri = ''; + else + $this.uri = uri; + if (0 === (seen1 & 8)) + $this.dimension = null; + else + $this.dimension = dimension; + return $this; + } + } + class Companion_1047 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.ModuleTopic'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1034(); + } + } + class $serializer_1034 { + constructor() { + $serializer_instance_1034 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KModuleTopic', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('id', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('name', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('url', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KModuleTopic_0.new_com_bapis_bilibili_app_dynamic_v2_KModuleTopic_rect1h_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_5z5xzt_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.id.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.id); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.name === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.name); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.url === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.url); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_5z5xzt_k$(encoder, value instanceof KModuleTopic_0 ? value : THROW_CCE()); + } + } + class KModuleTopic_0 { + constructor(id, name, url) { + Companion_instance_1047; + id = id === VOID ? new Long(0, 0) : id; + name = name === VOID ? '' : name; + url = url === VOID ? '' : url; + this.id = id; + this.name = name; + this.url = url; + } + get_id_kntnx8_k$() { + return this.id; + } + get_name_woqyms_k$() { + return this.name; + } + get_url_18iuii_k$() { + return this.url; + } + component1_7eebsc_k$() { + return this.id; + } + component2_7eebsb_k$() { + return this.name; + } + component3_7eebsa_k$() { + return this.url; + } + copy_ijggmr_k$(id, name, url) { + return new KModuleTopic_0(id, name, url); + } + copy(id, name, url, $super) { + id = id === VOID ? this.id : id; + name = name === VOID ? this.name : name; + url = url === VOID ? this.url : url; + return this.copy_ijggmr_k$(id, name, url); + } + toString() { + return 'KModuleTopic(id=' + this.id.toString() + ', name=' + this.name + ', url=' + this.url + ')'; + } + hashCode() { + var result = this.id.hashCode(); + result = imul(result, 31) + getStringHashCode(this.name) | 0; + result = imul(result, 31) + getStringHashCode(this.url) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KModuleTopic_0)) + return false; + var tmp0_other_with_cast = other instanceof KModuleTopic_0 ? other : THROW_CCE(); + if (!this.id.equals(tmp0_other_with_cast.id)) + return false; + if (!(this.name === tmp0_other_with_cast.name)) + return false; + if (!(this.url === tmp0_other_with_cast.url)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KModuleTopic_rect1h_k$(seen1, id, name, url, serializationConstructorMarker) { + Companion_instance_1047; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1034().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.id = new Long(0, 0); + else + $this.id = id; + if (0 === (seen1 & 2)) + $this.name = ''; + else + $this.name = name; + if (0 === (seen1 & 4)) + $this.url = ''; + else + $this.url = url; + return $this; + } + } + class Companion_1048 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.ModuleTopicDetailsExt'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1035(); + } + } + class $serializer_1035 { + constructor() { + $serializer_instance_1035 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KModuleTopicDetailsExt', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('commentGuide', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KModuleTopicDetailsExt_0.new_com_bapis_bilibili_app_dynamic_v2_KModuleTopicDetailsExt_p2dvu9_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_nm41ju_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.commentGuide === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.commentGuide); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_nm41ju_k$(encoder, value instanceof KModuleTopicDetailsExt_0 ? value : THROW_CCE()); + } + } + class KModuleTopicDetailsExt_0 { + constructor(commentGuide) { + Companion_instance_1048; + commentGuide = commentGuide === VOID ? '' : commentGuide; + this.commentGuide = commentGuide; + } + get_commentGuide_hc2ucm_k$() { + return this.commentGuide; + } + component1_7eebsc_k$() { + return this.commentGuide; + } + copy_a35qlh_k$(commentGuide) { + return new KModuleTopicDetailsExt_0(commentGuide); + } + copy(commentGuide, $super) { + commentGuide = commentGuide === VOID ? this.commentGuide : commentGuide; + return this.copy_a35qlh_k$(commentGuide); + } + toString() { + return 'KModuleTopicDetailsExt(commentGuide=' + this.commentGuide + ')'; + } + hashCode() { + return getStringHashCode(this.commentGuide); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KModuleTopicDetailsExt_0)) + return false; + var tmp0_other_with_cast = other instanceof KModuleTopicDetailsExt_0 ? other : THROW_CCE(); + if (!(this.commentGuide === tmp0_other_with_cast.commentGuide)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KModuleTopicDetailsExt_p2dvu9_k$(seen1, commentGuide, serializationConstructorMarker) { + Companion_instance_1048; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1035().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.commentGuide = ''; + else + $this.commentGuide = commentGuide; + return $this; + } + } + class Companion_1049 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.ModuleTopTag'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1036(); + } + } + class $serializer_1036 { + constructor() { + $serializer_instance_1036 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KModuleTopTag', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('tagName', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KModuleTopTag_0.new_com_bapis_bilibili_app_dynamic_v2_KModuleTopTag_gy53x4_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_wsuz9j_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.tagName === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.tagName); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_wsuz9j_k$(encoder, value instanceof KModuleTopTag_0 ? value : THROW_CCE()); + } + } + class KModuleTopTag_0 { + constructor(tagName) { + Companion_instance_1049; + tagName = tagName === VOID ? '' : tagName; + this.tagName = tagName; + } + get_tagName_ocsgis_k$() { + return this.tagName; + } + component1_7eebsc_k$() { + return this.tagName; + } + copy_a35qlh_k$(tagName) { + return new KModuleTopTag_0(tagName); + } + copy(tagName, $super) { + tagName = tagName === VOID ? this.tagName : tagName; + return this.copy_a35qlh_k$(tagName); + } + toString() { + return 'KModuleTopTag(tagName=' + this.tagName + ')'; + } + hashCode() { + return getStringHashCode(this.tagName); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KModuleTopTag_0)) + return false; + var tmp0_other_with_cast = other instanceof KModuleTopTag_0 ? other : THROW_CCE(); + if (!(this.tagName === tmp0_other_with_cast.tagName)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KModuleTopTag_gy53x4_k$(seen1, tagName, serializationConstructorMarker) { + Companion_instance_1049; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1036().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.tagName = ''; + else + $this.tagName = tagName; + return $this; + } + } + class Companion_1050 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.ModuleTopicBrief'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1037(); + } + } + class $serializer_1037 { + constructor() { + $serializer_instance_1037 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KModuleTopicBrief', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('topic', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_1099())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_1099(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_1099(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KModuleTopicBrief_0.new_com_bapis_bilibili_app_dynamic_v2_KModuleTopicBrief_5kcixj_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_gio4dv_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.topic == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_1099(), value.topic); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_gio4dv_k$(encoder, value instanceof KModuleTopicBrief_0 ? value : THROW_CCE()); + } + } + class KModuleTopicBrief_0 { + constructor(topic) { + Companion_instance_1050; + topic = topic === VOID ? null : topic; + this.topic = topic; + } + get_topic_iz6tqe_k$() { + return this.topic; + } + component1_7eebsc_k$() { + return this.topic; + } + copy_g4l9n9_k$(topic) { + return new KModuleTopicBrief_0(topic); + } + copy(topic, $super) { + topic = topic === VOID ? this.topic : topic; + return this.copy_g4l9n9_k$(topic); + } + toString() { + return 'KModuleTopicBrief(topic=' + this.topic + ')'; + } + hashCode() { + return this.topic == null ? 0 : this.topic.hashCode(); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KModuleTopicBrief_0)) + return false; + var tmp0_other_with_cast = other instanceof KModuleTopicBrief_0 ? other : THROW_CCE(); + if (!equals(this.topic, tmp0_other_with_cast.topic)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KModuleTopicBrief_5kcixj_k$(seen1, topic, serializationConstructorMarker) { + Companion_instance_1050; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1037().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.topic = null; + else + $this.topic = topic; + return $this; + } + } + class Companion_1051 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.ModuleTitle'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1038(); + } + } + class $serializer_1038 { + constructor() { + $serializer_instance_1038 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KModuleTitle', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('rightBtn', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('titleStyle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), get_nullable($serializer_getInstance_1100()), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = 0; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_1100(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_1100(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KModuleTitle_0.new_com_bapis_bilibili_app_dynamic_v2_KModuleTitle_jw9yi8_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_24e3cg_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.rightBtn == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_1100(), value.rightBtn); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.titleStyle === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.titleStyle); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_24e3cg_k$(encoder, value instanceof KModuleTitle_0 ? value : THROW_CCE()); + } + } + class KModuleTitle_0 { + constructor(title, rightBtn, titleStyle) { + Companion_instance_1051; + title = title === VOID ? '' : title; + rightBtn = rightBtn === VOID ? null : rightBtn; + titleStyle = titleStyle === VOID ? 0 : titleStyle; + this.title = title; + this.rightBtn = rightBtn; + this.titleStyle = titleStyle; + } + get_title_iz32un_k$() { + return this.title; + } + get_rightBtn_fh5jzd_k$() { + return this.rightBtn; + } + get_titleStyle_lcggci_k$() { + return this.titleStyle; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.rightBtn; + } + component3_7eebsa_k$() { + return this.titleStyle; + } + copy_jey7tk_k$(title, rightBtn, titleStyle) { + return new KModuleTitle_0(title, rightBtn, titleStyle); + } + copy(title, rightBtn, titleStyle, $super) { + title = title === VOID ? this.title : title; + rightBtn = rightBtn === VOID ? this.rightBtn : rightBtn; + titleStyle = titleStyle === VOID ? this.titleStyle : titleStyle; + return this.copy_jey7tk_k$(title, rightBtn, titleStyle); + } + toString() { + return 'KModuleTitle(title=' + this.title + ', rightBtn=' + this.rightBtn + ', titleStyle=' + this.titleStyle + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + (this.rightBtn == null ? 0 : this.rightBtn.hashCode()) | 0; + result = imul(result, 31) + this.titleStyle | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KModuleTitle_0)) + return false; + var tmp0_other_with_cast = other instanceof KModuleTitle_0 ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!equals(this.rightBtn, tmp0_other_with_cast.rightBtn)) + return false; + if (!(this.titleStyle === tmp0_other_with_cast.titleStyle)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KModuleTitle_jw9yi8_k$(seen1, title, rightBtn, titleStyle, serializationConstructorMarker) { + Companion_instance_1051; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1038().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.rightBtn = null; + else + $this.rightBtn = rightBtn; + if (0 === (seen1 & 4)) + $this.titleStyle = 0; + else + $this.titleStyle = titleStyle; + return $this; + } + } + class Companion_1052 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.ModuleButton'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1039(); + } + } + class $serializer_1039 { + constructor() { + $serializer_instance_1039 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KModuleButton', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('btn', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_1100())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_1100(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_1100(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KModuleButton_0.new_com_bapis_bilibili_app_dynamic_v2_KModuleButton_grasdp_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_9q373g_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.btn == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_1100(), value.btn); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_9q373g_k$(encoder, value instanceof KModuleButton_0 ? value : THROW_CCE()); + } + } + class KModuleButton_0 { + constructor(btn) { + Companion_instance_1052; + btn = btn === VOID ? null : btn; + this.btn = btn; + } + get_btn_18j8jx_k$() { + return this.btn; + } + component1_7eebsc_k$() { + return this.btn; + } + copy_g1fl6o_k$(btn) { + return new KModuleButton_0(btn); + } + copy(btn, $super) { + btn = btn === VOID ? this.btn : btn; + return this.copy_g1fl6o_k$(btn); + } + toString() { + return 'KModuleButton(btn=' + this.btn + ')'; + } + hashCode() { + return this.btn == null ? 0 : this.btn.hashCode(); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KModuleButton_0)) + return false; + var tmp0_other_with_cast = other instanceof KModuleButton_0 ? other : THROW_CCE(); + if (!equals(this.btn, tmp0_other_with_cast.btn)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KModuleButton_grasdp_k$(seen1, btn, serializationConstructorMarker) { + Companion_instance_1052; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1039().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.btn = null; + else + $this.btn = btn; + return $this; + } + } + class Companion_1053 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.ModuleNotice'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1040(); + } + } + class $serializer_1040 { + constructor() { + $serializer_instance_1040 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KModuleNotice', this, 5); + tmp0_serialDesc.addElement_5pzumi_k$('identity', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('icon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('url', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('noticeType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = 0; + var tmp9_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp9_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + } else + while (tmp1_flag) { + tmp2_index = tmp9_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp9_input.endStructure_1xqz0n_k$(tmp0_desc); + return KModuleNotice_0.new_com_bapis_bilibili_app_dynamic_v2_KModuleNotice_njkocg_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); + } + serialize_t9zakm_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.identity === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.identity); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.icon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.icon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.url === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.url); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.noticeType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 4, value.noticeType); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_t9zakm_k$(encoder, value instanceof KModuleNotice_0 ? value : THROW_CCE()); + } + } + class KModuleNotice_0 { + constructor(identity, icon, title, url, noticeType) { + Companion_instance_1053; + identity = identity === VOID ? '' : identity; + icon = icon === VOID ? '' : icon; + title = title === VOID ? '' : title; + url = url === VOID ? '' : url; + noticeType = noticeType === VOID ? 0 : noticeType; + this.identity = identity; + this.icon = icon; + this.title = title; + this.url = url; + this.noticeType = noticeType; + } + get_identity_y1rl2x_k$() { + return this.identity; + } + get_icon_wont8i_k$() { + return this.icon; + } + get_title_iz32un_k$() { + return this.title; + } + get_url_18iuii_k$() { + return this.url; + } + get_noticeType_tv620r_k$() { + return this.noticeType; + } + component1_7eebsc_k$() { + return this.identity; + } + component2_7eebsb_k$() { + return this.icon; + } + component3_7eebsa_k$() { + return this.title; + } + component4_7eebs9_k$() { + return this.url; + } + component5_7eebs8_k$() { + return this.noticeType; + } + copy_syxvi5_k$(identity, icon, title, url, noticeType) { + return new KModuleNotice_0(identity, icon, title, url, noticeType); + } + copy(identity, icon, title, url, noticeType, $super) { + identity = identity === VOID ? this.identity : identity; + icon = icon === VOID ? this.icon : icon; + title = title === VOID ? this.title : title; + url = url === VOID ? this.url : url; + noticeType = noticeType === VOID ? this.noticeType : noticeType; + return this.copy_syxvi5_k$(identity, icon, title, url, noticeType); + } + toString() { + return 'KModuleNotice(identity=' + this.identity + ', icon=' + this.icon + ', title=' + this.title + ', url=' + this.url + ', noticeType=' + this.noticeType + ')'; + } + hashCode() { + var result = getStringHashCode(this.identity); + result = imul(result, 31) + getStringHashCode(this.icon) | 0; + result = imul(result, 31) + getStringHashCode(this.title) | 0; + result = imul(result, 31) + getStringHashCode(this.url) | 0; + result = imul(result, 31) + this.noticeType | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KModuleNotice_0)) + return false; + var tmp0_other_with_cast = other instanceof KModuleNotice_0 ? other : THROW_CCE(); + if (!(this.identity === tmp0_other_with_cast.identity)) + return false; + if (!(this.icon === tmp0_other_with_cast.icon)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.url === tmp0_other_with_cast.url)) + return false; + if (!(this.noticeType === tmp0_other_with_cast.noticeType)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KModuleNotice_njkocg_k$(seen1, identity, icon, title, url, noticeType, serializationConstructorMarker) { + Companion_instance_1053; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1040().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.identity = ''; + else + $this.identity = identity; + if (0 === (seen1 & 2)) + $this.icon = ''; + else + $this.icon = icon; + if (0 === (seen1 & 4)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 8)) + $this.url = ''; + else + $this.url = url; + if (0 === (seen1 & 16)) + $this.noticeType = 0; + else + $this.noticeType = noticeType; + return $this; + } + } + class Companion_1054 { + constructor() { + Companion_instance_1054 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, new ArrayListSerializer($serializer_getInstance_1079())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.ModuleOpusSummary'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1041(); + } + } + class $serializer_1041 { + constructor() { + $serializer_instance_1041 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KModuleOpusSummary', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('summary', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('summaryJumpBtnText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('covers', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_1054().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_1155()), get_nullable($serializer_getInstance_1155()), StringSerializer_getInstance(), tmp0_cached[3]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp9_cached = Companion_getInstance_1054().$childSerializers_1; + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_1155(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_1155(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 3, tmp9_cached[3], tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_1155(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_1155(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 3, tmp9_cached[3], tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KModuleOpusSummary_0.new_com_bapis_bilibili_app_dynamic_v2_KModuleOpusSummary_f6qjg9_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_hbwrdr_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_1054().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_1155(), value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.summary == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_1155(), value.summary); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.summaryJumpBtnText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.summaryJumpBtnText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !equals(value.covers, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 3, tmp2_cached[3], value.covers); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_hbwrdr_k$(encoder, value instanceof KModuleOpusSummary_0 ? value : THROW_CCE()); + } + } + class KModuleOpusSummary_0 { + constructor(title, summary, summaryJumpBtnText, covers) { + Companion_getInstance_1054(); + title = title === VOID ? null : title; + summary = summary === VOID ? null : summary; + summaryJumpBtnText = summaryJumpBtnText === VOID ? '' : summaryJumpBtnText; + covers = covers === VOID ? emptyList() : covers; + this.title = title; + this.summary = summary; + this.summaryJumpBtnText = summaryJumpBtnText; + this.covers = covers; + } + get_title_iz32un_k$() { + return this.title; + } + get_summary_tgfqkj_k$() { + return this.summary; + } + get_summaryJumpBtnText_1ry4iq_k$() { + return this.summaryJumpBtnText; + } + get_covers_c0bcmd_k$() { + return this.covers; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.summary; + } + component3_7eebsa_k$() { + return this.summaryJumpBtnText; + } + component4_7eebs9_k$() { + return this.covers; + } + copy_p9wmzp_k$(title, summary, summaryJumpBtnText, covers) { + return new KModuleOpusSummary_0(title, summary, summaryJumpBtnText, covers); + } + copy(title, summary, summaryJumpBtnText, covers, $super) { + title = title === VOID ? this.title : title; + summary = summary === VOID ? this.summary : summary; + summaryJumpBtnText = summaryJumpBtnText === VOID ? this.summaryJumpBtnText : summaryJumpBtnText; + covers = covers === VOID ? this.covers : covers; + return this.copy_p9wmzp_k$(title, summary, summaryJumpBtnText, covers); + } + toString() { + return 'KModuleOpusSummary(title=' + this.title + ', summary=' + this.summary + ', summaryJumpBtnText=' + this.summaryJumpBtnText + ', covers=' + this.covers + ')'; + } + hashCode() { + var result = this.title == null ? 0 : this.title.hashCode(); + result = imul(result, 31) + (this.summary == null ? 0 : this.summary.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.summaryJumpBtnText) | 0; + result = imul(result, 31) + hashCode(this.covers) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KModuleOpusSummary_0)) + return false; + var tmp0_other_with_cast = other instanceof KModuleOpusSummary_0 ? other : THROW_CCE(); + if (!equals(this.title, tmp0_other_with_cast.title)) + return false; + if (!equals(this.summary, tmp0_other_with_cast.summary)) + return false; + if (!(this.summaryJumpBtnText === tmp0_other_with_cast.summaryJumpBtnText)) + return false; + if (!equals(this.covers, tmp0_other_with_cast.covers)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KModuleOpusSummary_f6qjg9_k$(seen1, title, summary, summaryJumpBtnText, covers, serializationConstructorMarker) { + Companion_getInstance_1054(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1041().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = null; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.summary = null; + else + $this.summary = summary; + if (0 === (seen1 & 4)) + $this.summaryJumpBtnText = ''; + else + $this.summaryJumpBtnText = summaryJumpBtnText; + if (0 === (seen1 & 8)) + $this.covers = emptyList(); + else + $this.covers = covers; + return $this; + } + } + class Companion_1055 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.ModuleBlocked'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1042(); + } + } + class $serializer_1042 { + constructor() { + $serializer_instance_1042 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KModuleBlocked', this, 10); + tmp0_serialDesc.addElement_5pzumi_k$('icon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('bgImg', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('hintMessage', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('actBtn', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('blockStyle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('subHintMessage', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('videoBottomTextUpper', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('videoBottomTextLower', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('archiveTitle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('hintMessageOneLine', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_1043()), get_nullable($serializer_getInstance_1043()), StringSerializer_getInstance(), get_nullable($serializer_getInstance_1100()), IntSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_1139()), get_nullable($serializer_getInstance_1139()), StringSerializer_getInstance(), get_nullable($serializer_getInstance_1139())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = 0; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_local8 = null; + var tmp13_local9 = null; + var tmp14_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp14_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_1043(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_1043(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_1100(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_1139(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_1139(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 9, $serializer_getInstance_1139(), tmp13_local9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + } else + while (tmp1_flag) { + tmp2_index = tmp14_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_1043(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_1043(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_1100(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_1139(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_1139(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 9, $serializer_getInstance_1139(), tmp13_local9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp14_input.endStructure_1xqz0n_k$(tmp0_desc); + return KModuleBlocked_0.new_com_bapis_bilibili_app_dynamic_v2_KModuleBlocked_m8uzv5_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, null); + } + serialize_elrq2s_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.icon == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_1043(), value.icon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.bgImg == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_1043(), value.bgImg); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.hintMessage === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.hintMessage); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.actBtn == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_1100(), value.actBtn); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.blockStyle === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 4, value.blockStyle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.subHintMessage === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.subHintMessage); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.videoBottomTextUpper == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 6, $serializer_getInstance_1139(), value.videoBottomTextUpper); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.videoBottomTextLower == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 7, $serializer_getInstance_1139(), value.videoBottomTextLower); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.archiveTitle === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 8, value.archiveTitle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.hintMessageOneLine == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 9, $serializer_getInstance_1139(), value.hintMessageOneLine); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_elrq2s_k$(encoder, value instanceof KModuleBlocked_0 ? value : THROW_CCE()); + } + } + class KModuleBlocked_0 { + constructor(icon, bgImg, hintMessage, actBtn, blockStyle, subHintMessage, videoBottomTextUpper, videoBottomTextLower, archiveTitle, hintMessageOneLine) { + Companion_instance_1055; + icon = icon === VOID ? null : icon; + bgImg = bgImg === VOID ? null : bgImg; + hintMessage = hintMessage === VOID ? '' : hintMessage; + actBtn = actBtn === VOID ? null : actBtn; + blockStyle = blockStyle === VOID ? 0 : blockStyle; + subHintMessage = subHintMessage === VOID ? '' : subHintMessage; + videoBottomTextUpper = videoBottomTextUpper === VOID ? null : videoBottomTextUpper; + videoBottomTextLower = videoBottomTextLower === VOID ? null : videoBottomTextLower; + archiveTitle = archiveTitle === VOID ? '' : archiveTitle; + hintMessageOneLine = hintMessageOneLine === VOID ? null : hintMessageOneLine; + this.icon = icon; + this.bgImg = bgImg; + this.hintMessage = hintMessage; + this.actBtn = actBtn; + this.blockStyle = blockStyle; + this.subHintMessage = subHintMessage; + this.videoBottomTextUpper = videoBottomTextUpper; + this.videoBottomTextLower = videoBottomTextLower; + this.archiveTitle = archiveTitle; + this.hintMessageOneLine = hintMessageOneLine; + } + get_icon_wont8i_k$() { + return this.icon; + } + get_bgImg_ip4mc5_k$() { + return this.bgImg; + } + get_hintMessage_j22k2f_k$() { + return this.hintMessage; + } + get_actBtn_avkktv_k$() { + return this.actBtn; + } + get_blockStyle_x4t65_k$() { + return this.blockStyle; + } + get_subHintMessage_ompxrd_k$() { + return this.subHintMessage; + } + get_videoBottomTextUpper_kmrufs_k$() { + return this.videoBottomTextUpper; + } + get_videoBottomTextLower_kht7av_k$() { + return this.videoBottomTextLower; + } + get_archiveTitle_nha0ox_k$() { + return this.archiveTitle; + } + get_hintMessageOneLine_rdfel9_k$() { + return this.hintMessageOneLine; + } + blockStyleEnum() { + return Companion_getInstance_954().fromValue(this.blockStyle); + } + component1_7eebsc_k$() { + return this.icon; + } + component2_7eebsb_k$() { + return this.bgImg; + } + component3_7eebsa_k$() { + return this.hintMessage; + } + component4_7eebs9_k$() { + return this.actBtn; + } + component5_7eebs8_k$() { + return this.blockStyle; + } + component6_7eebs7_k$() { + return this.subHintMessage; + } + component7_7eebs6_k$() { + return this.videoBottomTextUpper; + } + component8_7eebs5_k$() { + return this.videoBottomTextLower; + } + component9_7eebs4_k$() { + return this.archiveTitle; + } + component10_gazzfo_k$() { + return this.hintMessageOneLine; + } + copy_twwbcp_k$(icon, bgImg, hintMessage, actBtn, blockStyle, subHintMessage, videoBottomTextUpper, videoBottomTextLower, archiveTitle, hintMessageOneLine) { + return new KModuleBlocked_0(icon, bgImg, hintMessage, actBtn, blockStyle, subHintMessage, videoBottomTextUpper, videoBottomTextLower, archiveTitle, hintMessageOneLine); + } + copy(icon, bgImg, hintMessage, actBtn, blockStyle, subHintMessage, videoBottomTextUpper, videoBottomTextLower, archiveTitle, hintMessageOneLine, $super) { + icon = icon === VOID ? this.icon : icon; + bgImg = bgImg === VOID ? this.bgImg : bgImg; + hintMessage = hintMessage === VOID ? this.hintMessage : hintMessage; + actBtn = actBtn === VOID ? this.actBtn : actBtn; + blockStyle = blockStyle === VOID ? this.blockStyle : blockStyle; + subHintMessage = subHintMessage === VOID ? this.subHintMessage : subHintMessage; + videoBottomTextUpper = videoBottomTextUpper === VOID ? this.videoBottomTextUpper : videoBottomTextUpper; + videoBottomTextLower = videoBottomTextLower === VOID ? this.videoBottomTextLower : videoBottomTextLower; + archiveTitle = archiveTitle === VOID ? this.archiveTitle : archiveTitle; + hintMessageOneLine = hintMessageOneLine === VOID ? this.hintMessageOneLine : hintMessageOneLine; + return this.copy_twwbcp_k$(icon, bgImg, hintMessage, actBtn, blockStyle, subHintMessage, videoBottomTextUpper, videoBottomTextLower, archiveTitle, hintMessageOneLine); + } + toString() { + return 'KModuleBlocked(icon=' + this.icon + ', bgImg=' + this.bgImg + ', hintMessage=' + this.hintMessage + ', actBtn=' + this.actBtn + ', blockStyle=' + this.blockStyle + ', subHintMessage=' + this.subHintMessage + ', videoBottomTextUpper=' + this.videoBottomTextUpper + ', videoBottomTextLower=' + this.videoBottomTextLower + ', archiveTitle=' + this.archiveTitle + ', hintMessageOneLine=' + this.hintMessageOneLine + ')'; + } + hashCode() { + var result = this.icon == null ? 0 : this.icon.hashCode(); + result = imul(result, 31) + (this.bgImg == null ? 0 : this.bgImg.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.hintMessage) | 0; + result = imul(result, 31) + (this.actBtn == null ? 0 : this.actBtn.hashCode()) | 0; + result = imul(result, 31) + this.blockStyle | 0; + result = imul(result, 31) + getStringHashCode(this.subHintMessage) | 0; + result = imul(result, 31) + (this.videoBottomTextUpper == null ? 0 : this.videoBottomTextUpper.hashCode()) | 0; + result = imul(result, 31) + (this.videoBottomTextLower == null ? 0 : this.videoBottomTextLower.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.archiveTitle) | 0; + result = imul(result, 31) + (this.hintMessageOneLine == null ? 0 : this.hintMessageOneLine.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KModuleBlocked_0)) + return false; + var tmp0_other_with_cast = other instanceof KModuleBlocked_0 ? other : THROW_CCE(); + if (!equals(this.icon, tmp0_other_with_cast.icon)) + return false; + if (!equals(this.bgImg, tmp0_other_with_cast.bgImg)) + return false; + if (!(this.hintMessage === tmp0_other_with_cast.hintMessage)) + return false; + if (!equals(this.actBtn, tmp0_other_with_cast.actBtn)) + return false; + if (!(this.blockStyle === tmp0_other_with_cast.blockStyle)) + return false; + if (!(this.subHintMessage === tmp0_other_with_cast.subHintMessage)) + return false; + if (!equals(this.videoBottomTextUpper, tmp0_other_with_cast.videoBottomTextUpper)) + return false; + if (!equals(this.videoBottomTextLower, tmp0_other_with_cast.videoBottomTextLower)) + return false; + if (!(this.archiveTitle === tmp0_other_with_cast.archiveTitle)) + return false; + if (!equals(this.hintMessageOneLine, tmp0_other_with_cast.hintMessageOneLine)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KModuleBlocked_m8uzv5_k$(seen1, icon, bgImg, hintMessage, actBtn, blockStyle, subHintMessage, videoBottomTextUpper, videoBottomTextLower, archiveTitle, hintMessageOneLine, serializationConstructorMarker) { + Companion_instance_1055; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1042().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.icon = null; + else + $this.icon = icon; + if (0 === (seen1 & 2)) + $this.bgImg = null; + else + $this.bgImg = bgImg; + if (0 === (seen1 & 4)) + $this.hintMessage = ''; + else + $this.hintMessage = hintMessage; + if (0 === (seen1 & 8)) + $this.actBtn = null; + else + $this.actBtn = actBtn; + if (0 === (seen1 & 16)) + $this.blockStyle = 0; + else + $this.blockStyle = blockStyle; + if (0 === (seen1 & 32)) + $this.subHintMessage = ''; + else + $this.subHintMessage = subHintMessage; + if (0 === (seen1 & 64)) + $this.videoBottomTextUpper = null; + else + $this.videoBottomTextUpper = videoBottomTextUpper; + if (0 === (seen1 & 128)) + $this.videoBottomTextLower = null; + else + $this.videoBottomTextLower = videoBottomTextLower; + if (0 === (seen1 & 256)) + $this.archiveTitle = ''; + else + $this.archiveTitle = archiveTitle; + if (0 === (seen1 & 512)) + $this.hintMessageOneLine = null; + else + $this.hintMessageOneLine = hintMessageOneLine; + return $this; + } + } + class Companion_1056 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.ImageSet'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1043(); + } + } + class $serializer_1043 { + constructor() { + $serializer_instance_1043 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KImageSet', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('imgDay', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('imgDark', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KImageSet.new_com_bapis_bilibili_app_dynamic_v2_KImageSet_vrszfv_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_wgtooz_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.imgDay === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.imgDay); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.imgDark === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.imgDark); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_wgtooz_k$(encoder, value instanceof KImageSet ? value : THROW_CCE()); + } + } + class KImageSet { + constructor(imgDay, imgDark) { + Companion_instance_1056; + imgDay = imgDay === VOID ? '' : imgDay; + imgDark = imgDark === VOID ? '' : imgDark; + this.imgDay = imgDay; + this.imgDark = imgDark; + } + get_imgDay_et784i_k$() { + return this.imgDay; + } + get_imgDark_wyjnxs_k$() { + return this.imgDark; + } + component1_7eebsc_k$() { + return this.imgDay; + } + component2_7eebsb_k$() { + return this.imgDark; + } + copy_plwnsl_k$(imgDay, imgDark) { + return new KImageSet(imgDay, imgDark); + } + copy(imgDay, imgDark, $super) { + imgDay = imgDay === VOID ? this.imgDay : imgDay; + imgDark = imgDark === VOID ? this.imgDark : imgDark; + return this.copy_plwnsl_k$(imgDay, imgDark); + } + toString() { + return 'KImageSet(imgDay=' + this.imgDay + ', imgDark=' + this.imgDark + ')'; + } + hashCode() { + var result = getStringHashCode(this.imgDay); + result = imul(result, 31) + getStringHashCode(this.imgDark) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KImageSet)) + return false; + var tmp0_other_with_cast = other instanceof KImageSet ? other : THROW_CCE(); + if (!(this.imgDay === tmp0_other_with_cast.imgDay)) + return false; + if (!(this.imgDark === tmp0_other_with_cast.imgDark)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KImageSet_vrszfv_k$(seen1, imgDay, imgDark, serializationConstructorMarker) { + Companion_instance_1056; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1043().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.imgDay = ''; + else + $this.imgDay = imgDay; + if (0 === (seen1 & 2)) + $this.imgDark = ''; + else + $this.imgDark = imgDark; + return $this; + } + } + class Companion_1057 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.ModuleTextNotice'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1044(); + } + } + class $serializer_1044 { + constructor() { + $serializer_instance_1044 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KModuleTextNotice', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('notice', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_1139())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_1139(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_1139(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KModuleTextNotice_0.new_com_bapis_bilibili_app_dynamic_v2_KModuleTextNotice_cwxq54_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_3fihi1_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.notice == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_1139(), value.notice); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_3fihi1_k$(encoder, value instanceof KModuleTextNotice_0 ? value : THROW_CCE()); + } + } + class KModuleTextNotice_0 { + constructor(notice) { + Companion_instance_1057; + notice = notice === VOID ? null : notice; + this.notice = notice; + } + get_notice_h7rzkx_k$() { + return this.notice; + } + component1_7eebsc_k$() { + return this.notice; + } + copy_pk2eyu_k$(notice) { + return new KModuleTextNotice_0(notice); + } + copy(notice, $super) { + notice = notice === VOID ? this.notice : notice; + return this.copy_pk2eyu_k$(notice); + } + toString() { + return 'KModuleTextNotice(notice=' + this.notice + ')'; + } + hashCode() { + return this.notice == null ? 0 : this.notice.hashCode(); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KModuleTextNotice_0)) + return false; + var tmp0_other_with_cast = other instanceof KModuleTextNotice_0 ? other : THROW_CCE(); + if (!equals(this.notice, tmp0_other_with_cast.notice)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KModuleTextNotice_cwxq54_k$(seen1, notice, serializationConstructorMarker) { + Companion_instance_1057; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1044().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.notice = null; + else + $this.notice = notice; + return $this; + } + } + class Companion_1058 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.ModuleOnetimeNotice'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1045(); + } + } + class $serializer_1045 { + constructor() { + $serializer_instance_1045 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KModuleOnetimeNotice', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('uuid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('textNotice', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('jumpUri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), get_nullable($serializer_getInstance_1159()), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_1159(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_1159(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KModuleOnetimeNotice_0.new_com_bapis_bilibili_app_dynamic_v2_KModuleOnetimeNotice_5jk8nc_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_xbjcpp_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.uuid === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.uuid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.textNotice == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_1159(), value.textNotice); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.jumpUri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.jumpUri); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_xbjcpp_k$(encoder, value instanceof KModuleOnetimeNotice_0 ? value : THROW_CCE()); + } + } + class KModuleOnetimeNotice_0 { + constructor(uuid, textNotice, jumpUri) { + Companion_instance_1058; + uuid = uuid === VOID ? '' : uuid; + textNotice = textNotice === VOID ? null : textNotice; + jumpUri = jumpUri === VOID ? '' : jumpUri; + this.uuid = uuid; + this.textNotice = textNotice; + this.jumpUri = jumpUri; + } + get_uuid_wovu9w_k$() { + return this.uuid; + } + get_textNotice_80d14e_k$() { + return this.textNotice; + } + get_jumpUri_jhqikr_k$() { + return this.jumpUri; + } + component1_7eebsc_k$() { + return this.uuid; + } + component2_7eebsb_k$() { + return this.textNotice; + } + component3_7eebsa_k$() { + return this.jumpUri; + } + copy_ynkrxy_k$(uuid, textNotice, jumpUri) { + return new KModuleOnetimeNotice_0(uuid, textNotice, jumpUri); + } + copy(uuid, textNotice, jumpUri, $super) { + uuid = uuid === VOID ? this.uuid : uuid; + textNotice = textNotice === VOID ? this.textNotice : textNotice; + jumpUri = jumpUri === VOID ? this.jumpUri : jumpUri; + return this.copy_ynkrxy_k$(uuid, textNotice, jumpUri); + } + toString() { + return 'KModuleOnetimeNotice(uuid=' + this.uuid + ', textNotice=' + this.textNotice + ', jumpUri=' + this.jumpUri + ')'; + } + hashCode() { + var result = getStringHashCode(this.uuid); + result = imul(result, 31) + (this.textNotice == null ? 0 : this.textNotice.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.jumpUri) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KModuleOnetimeNotice_0)) + return false; + var tmp0_other_with_cast = other instanceof KModuleOnetimeNotice_0 ? other : THROW_CCE(); + if (!(this.uuid === tmp0_other_with_cast.uuid)) + return false; + if (!equals(this.textNotice, tmp0_other_with_cast.textNotice)) + return false; + if (!(this.jumpUri === tmp0_other_with_cast.jumpUri)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KModuleOnetimeNotice_5jk8nc_k$(seen1, uuid, textNotice, jumpUri, serializationConstructorMarker) { + Companion_instance_1058; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1045().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.uuid = ''; + else + $this.uuid = uuid; + if (0 === (seen1 & 2)) + $this.textNotice = null; + else + $this.textNotice = textNotice; + if (0 === (seen1 & 4)) + $this.jumpUri = ''; + else + $this.jumpUri = jumpUri; + return $this; + } + } + class Companion_1059 { + constructor() { + Companion_instance_1059 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KMediaType$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KMediaType$Companion$_anonymous__xrzr98); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_114(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KMediaType_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KMediaType with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_114(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_1046 { + constructor() { + $serializer_instance_1046 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.dynamic.v2.KMediaType', 6); + tmp0_serialDesc.addElement_5pzumi_k$('NONE', false); + tmp0_serialDesc.addElement_5pzumi_k$('UGC', false); + tmp0_serialDesc.addElement_5pzumi_k$('PGC', false); + tmp0_serialDesc.addElement_5pzumi_k$('LIVE', false); + tmp0_serialDesc.addElement_5pzumi_k$('VCS', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_114()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_i8hsfv_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_i8hsfv_k$(encoder, value instanceof KMediaType ? value : THROW_CCE()); + } + } + class KMediaType extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_1060 { + constructor() { + Companion_instance_1060 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KReserveType$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KReserveType$Companion$_anonymous__49ldr0); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_115(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KReserveType_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KReserveType with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_115(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_1047 { + constructor() { + $serializer_instance_1047 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.dynamic.v2.KReserveType', 3); + tmp0_serialDesc.addElement_5pzumi_k$('RESERVE_NONE', false); + tmp0_serialDesc.addElement_5pzumi_k$('RESERVE_RECALL', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_115()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_p3z9v1_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_p3z9v1_k$(encoder, value instanceof KReserveType ? value : THROW_CCE()); + } + } + class KReserveType extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_1061 { + constructor() { + Companion_instance_1061 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KIconResLocal$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KIconResLocal$Companion$_anonymous__ynoukg); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_116(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KIconResLocal_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KIconResLocal with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_116(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_1048 { + constructor() { + $serializer_instance_1048 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.dynamic.v2.KIconResLocal', 3); + tmp0_serialDesc.addElement_5pzumi_k$('NONE', false); + tmp0_serialDesc.addElement_5pzumi_k$('LIVE', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_116()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_gas7t9_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_gas7t9_k$(encoder, value instanceof KIconResLocal ? value : THROW_CCE()); + } + } + class KIconResLocal extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_1062 { + constructor() { + Companion_instance_1062 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KVideoType$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KVideoType$Companion$_anonymous__pfucit); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_117(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KVideoType_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KVideoType with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_117(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_1049 { + constructor() { + $serializer_instance_1049 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.dynamic.v2.KVideoType', 5); + tmp0_serialDesc.addElement_5pzumi_k$('GENERAL', false); + tmp0_serialDesc.addElement_5pzumi_k$('DYNAMIC', false); + tmp0_serialDesc.addElement_5pzumi_k$('PLAYBACK', false); + tmp0_serialDesc.addElement_5pzumi_k$('STORY', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_117()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_87582_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_87582_k$(encoder, value instanceof KVideoType ? value : THROW_CCE()); + } + } + class KVideoType extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_1063 { + constructor() { + Companion_instance_1063 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KVideoSubType$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KVideoSubType$Companion$_anonymous__9zhsx1); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_118(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KVideoSubType_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KVideoSubType with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_118(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_1050 { + constructor() { + $serializer_instance_1050 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.dynamic.v2.KVideoSubType', 7); + tmp0_serialDesc.addElement_5pzumi_k$('NONE', false); + tmp0_serialDesc.addElement_5pzumi_k$('BANGUMI', false); + tmp0_serialDesc.addElement_5pzumi_k$('MOVIE', false); + tmp0_serialDesc.addElement_5pzumi_k$('DOCUMENTARY', false); + tmp0_serialDesc.addElement_5pzumi_k$('DOMESTIC', false); + tmp0_serialDesc.addElement_5pzumi_k$('TELEPLAY', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_118()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_4n7sgi_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_4n7sgi_k$(encoder, value instanceof KVideoSubType ? value : THROW_CCE()); + } + } + class KVideoSubType extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_1064 { + constructor() { + Companion_instance_1064 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KMdlDynDrawTagType$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KMdlDynDrawTagType$Companion$_anonymous__o8kmmm); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_119(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KMdlDynDrawTagType_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KMdlDynDrawTagType with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_119(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_1051 { + constructor() { + $serializer_instance_1051 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.dynamic.v2.KMdlDynDrawTagType', 7); + tmp0_serialDesc.addElement_5pzumi_k$('MDL_DRAW_TAG_NONE', false); + tmp0_serialDesc.addElement_5pzumi_k$('MDL_DRAW_TAG_COMMON', false); + tmp0_serialDesc.addElement_5pzumi_k$('MDL_DRAW_TAG_GOODS', false); + tmp0_serialDesc.addElement_5pzumi_k$('MDL_DRAW_TAG_USER', false); + tmp0_serialDesc.addElement_5pzumi_k$('MDL_DRAW_TAG_TOPIC', false); + tmp0_serialDesc.addElement_5pzumi_k$('MDL_DRAW_TAG_LBS', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_119()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_15tga1_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_15tga1_k$(encoder, value instanceof KMdlDynDrawTagType ? value : THROW_CCE()); + } + } + class KMdlDynDrawTagType extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_1065 { + constructor() { + Companion_instance_1065 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KAddButtonType$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KAddButtonType$Companion$_anonymous__r9wh8z); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_120(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KAddButtonType_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KAddButtonType with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_120(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_1052 { + constructor() { + $serializer_instance_1052 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.dynamic.v2.KAddButtonType', 4); + tmp0_serialDesc.addElement_5pzumi_k$('BT_NONE', false); + tmp0_serialDesc.addElement_5pzumi_k$('BT_JUMP', false); + tmp0_serialDesc.addElement_5pzumi_k$('BT_BUTTON', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_120()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_uuvkie_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_uuvkie_k$(encoder, value instanceof KAddButtonType ? value : THROW_CCE()); + } + } + class KAddButtonType extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_1066 { + constructor() { + Companion_instance_1066 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KAdditionalButtonStatus$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KAdditionalButtonStatus$Companion$_anonymous__s2uavb); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_121(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KAdditionalButtonStatus_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KAdditionalButtonStatus with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_121(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_1053 { + constructor() { + $serializer_instance_1053 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.dynamic.v2.KAdditionalButtonStatus', 4); + tmp0_serialDesc.addElement_5pzumi_k$('NONE', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNCHECK', false); + tmp0_serialDesc.addElement_5pzumi_k$('CHECK', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_121()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_c9s4ey_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_c9s4ey_k$(encoder, value instanceof KAdditionalButtonStatus ? value : THROW_CCE()); + } + } + class KAdditionalButtonStatus extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_1067 { + constructor() { + Companion_instance_1067 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KAdditionalButtonClickType$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KAdditionalButtonClickType$Companion$_anonymous__6m4kgh); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_122(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KAdditionalButtonClickType_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KAdditionalButtonClickType with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_122(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_1054 { + constructor() { + $serializer_instance_1054 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.dynamic.v2.KAdditionalButtonClickType', 3); + tmp0_serialDesc.addElement_5pzumi_k$('CLICK_NONE', false); + tmp0_serialDesc.addElement_5pzumi_k$('CLICK_UP', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_122()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_ruw1s6_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_ruw1s6_k$(encoder, value instanceof KAdditionalButtonClickType ? value : THROW_CCE()); + } + } + class KAdditionalButtonClickType extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_1068 { + constructor() { + Companion_instance_1068 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KAdditionalShareShowType$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KAdditionalShareShowType$Companion$_anonymous__zeugz9); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_123(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KAdditionalShareShowType_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KAdditionalShareShowType with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_123(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_1055 { + constructor() { + $serializer_instance_1055 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.dynamic.v2.KAdditionalShareShowType', 3); + tmp0_serialDesc.addElement_5pzumi_k$('ST_NONE', false); + tmp0_serialDesc.addElement_5pzumi_k$('ST_SHOW', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_123()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_41tyvg_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_41tyvg_k$(encoder, value instanceof KAdditionalShareShowType ? value : THROW_CCE()); + } + } + class KAdditionalShareShowType extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_1069 { + constructor() { + Companion_instance_1069 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KDisableState$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KDisableState$Companion$_anonymous__tqbfi3); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_124(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KDisableState_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KDisableState with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_124(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_1056 { + constructor() { + $serializer_instance_1056 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.dynamic.v2.KDisableState', 3); + tmp0_serialDesc.addElement_5pzumi_k$('HIGHLIGHT', false); + tmp0_serialDesc.addElement_5pzumi_k$('GARY', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_124()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_cb6kdk_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_cb6kdk_k$(encoder, value instanceof KDisableState ? value : THROW_CCE()); + } + } + class KDisableState extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_1070 { + constructor() { + Companion_instance_1070 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KAddButtonBgStyle$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KAddButtonBgStyle$Companion$_anonymous__64tawl); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_125(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KAddButtonBgStyle_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KAddButtonBgStyle with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_125(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_1057 { + constructor() { + $serializer_instance_1057 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.dynamic.v2.KAddButtonBgStyle', 4); + tmp0_serialDesc.addElement_5pzumi_k$('FILL', false); + tmp0_serialDesc.addElement_5pzumi_k$('STROKE', false); + tmp0_serialDesc.addElement_5pzumi_k$('GRAY', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_125()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_829xbs_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_829xbs_k$(encoder, value instanceof KAddButtonBgStyle ? value : THROW_CCE()); + } + } + class KAddButtonBgStyle extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_1071 { + constructor() { + Companion_instance_1071 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KMdlDynCommonType$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KMdlDynCommonType$Companion$_anonymous__gsp7hh); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_126(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KMdlDynCommonType_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KMdlDynCommonType with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_126(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_1058 { + constructor() { + $serializer_instance_1058 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.dynamic.v2.KMdlDynCommonType', 4); + tmp0_serialDesc.addElement_5pzumi_k$('MDL_DYN_COMMON_NONE', false); + tmp0_serialDesc.addElement_5pzumi_k$('MDL_DYN_COMMON_SQUARE', false); + tmp0_serialDesc.addElement_5pzumi_k$('MDL_DYN_COMMON_VERTICA', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_126()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_112sso_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_112sso_k$(encoder, value instanceof KMdlDynCommonType ? value : THROW_CCE()); + } + } + class KMdlDynCommonType extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_1072 { + constructor() { + Companion_instance_1072 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KLiveState$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KLiveState$Companion$_anonymous__gtmuvf); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_127(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KLiveState_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KLiveState with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_127(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_1059 { + constructor() { + $serializer_instance_1059 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.dynamic.v2.KLiveState', 4); + tmp0_serialDesc.addElement_5pzumi_k$('LIVE_NONE', false); + tmp0_serialDesc.addElement_5pzumi_k$('LIVE_LIVE', false); + tmp0_serialDesc.addElement_5pzumi_k$('LIVE_ROTATION', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_127()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_d7k9nm_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_d7k9nm_k$(encoder, value instanceof KLiveState ? value : THROW_CCE()); + } + } + class KLiveState extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_1073 { + constructor() { + Companion_instance_1073 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KMdlDynSubscriptionNewStyle$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KMdlDynSubscriptionNewStyle$Companion$_anonymous__tmum0i); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_128(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KMdlDynSubscriptionNewStyle_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KMdlDynSubscriptionNewStyle with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_128(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_1060 { + constructor() { + $serializer_instance_1060 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.dynamic.v2.KMdlDynSubscriptionNewStyle', 4); + tmp0_serialDesc.addElement_5pzumi_k$('NONT', false); + tmp0_serialDesc.addElement_5pzumi_k$('LIVE', false); + tmp0_serialDesc.addElement_5pzumi_k$('DRAW', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_128()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_mq9gjl_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_mq9gjl_k$(encoder, value instanceof KMdlDynSubscriptionNewStyle ? value : THROW_CCE()); + } + } + class KMdlDynSubscriptionNewStyle extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_1074 { + constructor() { + Companion_instance_1074 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KRouterAction$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KRouterAction$Companion$_anonymous__umqj); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_129(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KRouterAction_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KRouterAction with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_129(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_1061 { + constructor() { + $serializer_instance_1061 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.dynamic.v2.KRouterAction', 3); + tmp0_serialDesc.addElement_5pzumi_k$('OPEN', false); + tmp0_serialDesc.addElement_5pzumi_k$('EMBED', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_129()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_cbu9ny_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_cbu9ny_k$(encoder, value instanceof KRouterAction ? value : THROW_CCE()); + } + } + class KRouterAction extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_1075 { + constructor() { + Companion_instance_1075 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KAdditionalType$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KAdditionalType$Companion$_anonymous__a031q5); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_130(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KAdditionalType_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KAdditionalType with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_130(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_1062 { + constructor() { + $serializer_instance_1062 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.dynamic.v2.KAdditionalType', 13); + tmp0_serialDesc.addElement_5pzumi_k$('ADDITIONAL_NONE', false); + tmp0_serialDesc.addElement_5pzumi_k$('PGC', false); + tmp0_serialDesc.addElement_5pzumi_k$('GOODS', false); + tmp0_serialDesc.addElement_5pzumi_k$('VOTE', false); + tmp0_serialDesc.addElement_5pzumi_k$('COMMON', false); + tmp0_serialDesc.addElement_5pzumi_k$('ESPORT', false); + tmp0_serialDesc.addElement_5pzumi_k$('UP_RCMD', false); + tmp0_serialDesc.addElement_5pzumi_k$('UGC', false); + tmp0_serialDesc.addElement_5pzumi_k$('UP_RESERVATION', false); + tmp0_serialDesc.addElement_5pzumi_k$('ARTICLE', false); + tmp0_serialDesc.addElement_5pzumi_k$('LIVE_ROOM', false); + tmp0_serialDesc.addElement_5pzumi_k$('MUSIC', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_130()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_r1ciog_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_r1ciog_k$(encoder, value instanceof KAdditionalType ? value : THROW_CCE()); + } + } + class KAdditionalType extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_1076 { + constructor() { + Companion_instance_1076 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KImageStyle$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KImageStyle$Companion$_anonymous__dcs1pq); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_131(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KImageStyle_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KImageStyle with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_131(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_1063 { + constructor() { + $serializer_instance_1063 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.dynamic.v2.KImageStyle', 3); + tmp0_serialDesc.addElement_5pzumi_k$('ADD_STYLE_VERTICAL', false); + tmp0_serialDesc.addElement_5pzumi_k$('ADD_STYLE_SQUARE', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_131()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_5vitvp_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_5vitvp_k$(encoder, value instanceof KImageStyle ? value : THROW_CCE()); + } + } + class KImageStyle extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_1077 { + constructor() { + Companion_instance_1077 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KGoodsJumpType$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KGoodsJumpType$Companion$_anonymous__q8tnyc); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_132(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KGoodsJumpType_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KGoodsJumpType with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_132(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_1064 { + constructor() { + $serializer_instance_1064 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.dynamic.v2.KGoodsJumpType', 4); + tmp0_serialDesc.addElement_5pzumi_k$('GOODS_NONE', false); + tmp0_serialDesc.addElement_5pzumi_k$('GOODS_SCHEMA', false); + tmp0_serialDesc.addElement_5pzumi_k$('GOODS_URL', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_132()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_n4235x_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_n4235x_k$(encoder, value instanceof KGoodsJumpType ? value : THROW_CCE()); + } + } + class KGoodsJumpType extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_1078 { + constructor() { + Companion_instance_1078 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KEspaceStyle$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KEspaceStyle$Companion$_anonymous__ke1ah6); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_133(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KEspaceStyle_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KEspaceStyle with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_133(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_1065 { + constructor() { + $serializer_instance_1065 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.dynamic.v2.KEspaceStyle', 2); + tmp0_serialDesc.addElement_5pzumi_k$('MOBA', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_133()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_f9ua6r_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_f9ua6r_k$(encoder, value instanceof KEspaceStyle ? value : THROW_CCE()); + } + } + class KEspaceStyle extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_1079 { + constructor() { + Companion_instance_1079 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KHighlightTextStyle$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KHighlightTextStyle$Companion$_anonymous__9b7jf8); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_134(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KHighlightTextStyle_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KHighlightTextStyle with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_134(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_1066 { + constructor() { + $serializer_instance_1066 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.dynamic.v2.KHighlightTextStyle', 3); + tmp0_serialDesc.addElement_5pzumi_k$('STYLE_NONE', false); + tmp0_serialDesc.addElement_5pzumi_k$('STYLE_HIGHLIGHT', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_134()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_t6zajj_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_t6zajj_k$(encoder, value instanceof KHighlightTextStyle ? value : THROW_CCE()); + } + } + class KHighlightTextStyle extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_1080 { + constructor() { + Companion_instance_1080 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KReserveRelationLotteryType$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KReserveRelationLotteryType$Companion$_anonymous__gg3c13); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_135(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KReserveRelationLotteryType_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KReserveRelationLotteryType with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_135(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_1067 { + constructor() { + $serializer_instance_1067 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.dynamic.v2.KReserveRelationLotteryType', 3); + tmp0_serialDesc.addElement_5pzumi_k$('DEFAULT', false); + tmp0_serialDesc.addElement_5pzumi_k$('CRON', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_135()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_1zd6km_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_1zd6km_k$(encoder, value instanceof KReserveRelationLotteryType ? value : THROW_CCE()); + } + } + class KReserveRelationLotteryType extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_1081 { + constructor() { + Companion_instance_1081 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KCoverIcon$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KCoverIcon$Companion$_anonymous__9gmpbe); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_136(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KCoverIcon_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KCoverIcon with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_136(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_1068 { + constructor() { + $serializer_instance_1068 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.dynamic.v2.KCoverIcon', 8); + tmp0_serialDesc.addElement_5pzumi_k$('NONE', false); + tmp0_serialDesc.addElement_5pzumi_k$('PLAY', false); + tmp0_serialDesc.addElement_5pzumi_k$('DANMAKU', false); + tmp0_serialDesc.addElement_5pzumi_k$('UP', false); + tmp0_serialDesc.addElement_5pzumi_k$('VT', false); + tmp0_serialDesc.addElement_5pzumi_k$('VIEW_CNT', false); + tmp0_serialDesc.addElement_5pzumi_k$('THUMB_UP', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_136()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_536qr7_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_536qr7_k$(encoder, value instanceof KCoverIcon ? value : THROW_CCE()); + } + } + class KCoverIcon extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_1082 { + constructor() { + Companion_instance_1082 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KAdditionVoteType$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KAdditionVoteType$Companion$_anonymous__xbjjfo); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_137(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KAdditionVoteType_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KAdditionVoteType with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_137(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_1069 { + constructor() { + $serializer_instance_1069 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.dynamic.v2.KAdditionVoteType', 5); + tmp0_serialDesc.addElement_5pzumi_k$('NONE', false); + tmp0_serialDesc.addElement_5pzumi_k$('WORD', false); + tmp0_serialDesc.addElement_5pzumi_k$('PIC', false); + tmp0_serialDesc.addElement_5pzumi_k$('DEFAULT', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_137()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_3uv8mp_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_3uv8mp_k$(encoder, value instanceof KAdditionVoteType ? value : THROW_CCE()); + } + } + class KAdditionVoteType extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_1083 { + constructor() { + Companion_instance_1083 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KAdditionVoteState$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KAdditionVoteState$Companion$_anonymous__wxml5b); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_138(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KAdditionVoteState_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KAdditionVoteState with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_138(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_1070 { + constructor() { + $serializer_instance_1070 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.dynamic.v2.KAdditionVoteState', 4); + tmp0_serialDesc.addElement_5pzumi_k$('NONE', false); + tmp0_serialDesc.addElement_5pzumi_k$('OPEN', false); + tmp0_serialDesc.addElement_5pzumi_k$('CLOSE', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_138()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_37tgl4_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_37tgl4_k$(encoder, value instanceof KAdditionVoteState ? value : THROW_CCE()); + } + } + class KAdditionVoteState extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_1084 { + constructor() { + Companion_instance_1084 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, null, null, null, null, null, null, null, new ArrayListSerializer($serializer_getInstance_1073()), null, null, null, null, null, null, null, null, null, null, null, new ArrayListSerializer($serializer_getInstance_1073()), null, null, null, null, null, null, null, null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.MdlDynArchive'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1071(); + } + } + class $serializer_1071 { + constructor() { + $serializer_instance_1071 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KMdlDynArchive', this, 32); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('uri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('coverLeftText1', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('coverLeftText2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('coverLeftText3', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('avid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('cid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('mediaType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('dimension', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('badge', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('canPlay', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + tmp0_serialDesc.addElement_5pzumi_k$('stype', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(13)); + tmp0_serialDesc.addElement_5pzumi_k$('isPGC', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(14)); + tmp0_serialDesc.addElement_5pzumi_k$('inlineURL', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(15)); + tmp0_serialDesc.addElement_5pzumi_k$('episodeId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(16)); + tmp0_serialDesc.addElement_5pzumi_k$('subType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(17)); + tmp0_serialDesc.addElement_5pzumi_k$('pgcSeasonId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(18)); + tmp0_serialDesc.addElement_5pzumi_k$('playIcon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(19)); + tmp0_serialDesc.addElement_5pzumi_k$('duration', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(20)); + tmp0_serialDesc.addElement_5pzumi_k$('jumpUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(21)); + tmp0_serialDesc.addElement_5pzumi_k$('isPreview', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(22)); + tmp0_serialDesc.addElement_5pzumi_k$('badgeCategory', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(23)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('isFeature', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(24)); + tmp0_serialDesc.addElement_5pzumi_k$('reserveType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(25)); + tmp0_serialDesc.addElement_5pzumi_k$('bvid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(26)); + tmp0_serialDesc.addElement_5pzumi_k$('view', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(27)); + tmp0_serialDesc.addElement_5pzumi_k$('showPremiereBadge', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(28)); + tmp0_serialDesc.addElement_5pzumi_k$('premiereCard', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(29)); + tmp0_serialDesc.addElement_5pzumi_k$('showProgress', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(30)); + tmp0_serialDesc.addElement_5pzumi_k$('partDuration', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(31)); + tmp0_serialDesc.addElement_5pzumi_k$('partProgress', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(32)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_1084().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), get_nullable($serializer_getInstance_1072()), tmp0_cached[10], BooleanSerializer_getInstance(), IntSerializer_getInstance(), BooleanSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), BooleanSerializer_getInstance(), tmp0_cached[22], BooleanSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_bitMask1 = 0; + var tmp5_local0 = null; + var tmp6_local1 = null; + var tmp7_local2 = null; + var tmp8_local3 = null; + var tmp9_local4 = null; + var tmp10_local5 = null; + var tmp11_local6 = new Long(0, 0); + var tmp12_local7 = new Long(0, 0); + var tmp13_local8 = 0; + var tmp14_local9 = null; + var tmp15_local10 = null; + var tmp16_local11 = false; + var tmp17_local12 = 0; + var tmp18_local13 = false; + var tmp19_local14 = null; + var tmp20_local15 = new Long(0, 0); + var tmp21_local16 = 0; + var tmp22_local17 = new Long(0, 0); + var tmp23_local18 = null; + var tmp24_local19 = new Long(0, 0); + var tmp25_local20 = null; + var tmp26_local21 = false; + var tmp27_local22 = null; + var tmp28_local23 = false; + var tmp29_local24 = 0; + var tmp30_local25 = null; + var tmp31_local26 = 0; + var tmp32_local27 = false; + var tmp33_local28 = false; + var tmp34_local29 = false; + var tmp35_local30 = new Long(0, 0); + var tmp36_local31 = new Long(0, 0); + var tmp37_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp38_cached = Companion_getInstance_1084().$childSerializers_1; + if (tmp37_input.decodeSequentially_xlblqy_k$()) { + tmp5_local0 = tmp37_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp6_local1 = tmp37_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp7_local2 = tmp37_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp8_local3 = tmp37_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp9_local4 = tmp37_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp10_local5 = tmp37_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp11_local6 = tmp37_input.decodeLongElement_994anb_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp12_local7 = tmp37_input.decodeLongElement_994anb_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp13_local8 = tmp37_input.decodeIntElement_941u6a_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp14_local9 = tmp37_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 9, $serializer_getInstance_1072(), tmp14_local9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp15_local10 = tmp37_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 10, tmp38_cached[10], tmp15_local10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp16_local11 = tmp37_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + tmp17_local12 = tmp37_input.decodeIntElement_941u6a_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + tmp18_local13 = tmp37_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + tmp19_local14 = tmp37_input.decodeStringElement_3oenpg_k$(tmp0_desc, 14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + tmp20_local15 = tmp37_input.decodeLongElement_994anb_k$(tmp0_desc, 15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + tmp21_local16 = tmp37_input.decodeIntElement_941u6a_k$(tmp0_desc, 16); + tmp3_bitMask0 = tmp3_bitMask0 | 65536; + tmp22_local17 = tmp37_input.decodeLongElement_994anb_k$(tmp0_desc, 17); + tmp3_bitMask0 = tmp3_bitMask0 | 131072; + tmp23_local18 = tmp37_input.decodeStringElement_3oenpg_k$(tmp0_desc, 18); + tmp3_bitMask0 = tmp3_bitMask0 | 262144; + tmp24_local19 = tmp37_input.decodeLongElement_994anb_k$(tmp0_desc, 19); + tmp3_bitMask0 = tmp3_bitMask0 | 524288; + tmp25_local20 = tmp37_input.decodeStringElement_3oenpg_k$(tmp0_desc, 20); + tmp3_bitMask0 = tmp3_bitMask0 | 1048576; + tmp26_local21 = tmp37_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 21); + tmp3_bitMask0 = tmp3_bitMask0 | 2097152; + tmp27_local22 = tmp37_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 22, tmp38_cached[22], tmp27_local22); + tmp3_bitMask0 = tmp3_bitMask0 | 4194304; + tmp28_local23 = tmp37_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 23); + tmp3_bitMask0 = tmp3_bitMask0 | 8388608; + tmp29_local24 = tmp37_input.decodeIntElement_941u6a_k$(tmp0_desc, 24); + tmp3_bitMask0 = tmp3_bitMask0 | 16777216; + tmp30_local25 = tmp37_input.decodeStringElement_3oenpg_k$(tmp0_desc, 25); + tmp3_bitMask0 = tmp3_bitMask0 | 33554432; + tmp31_local26 = tmp37_input.decodeIntElement_941u6a_k$(tmp0_desc, 26); + tmp3_bitMask0 = tmp3_bitMask0 | 67108864; + tmp32_local27 = tmp37_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 27); + tmp3_bitMask0 = tmp3_bitMask0 | 134217728; + tmp33_local28 = tmp37_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 28); + tmp3_bitMask0 = tmp3_bitMask0 | 268435456; + tmp34_local29 = tmp37_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 29); + tmp3_bitMask0 = tmp3_bitMask0 | 536870912; + tmp35_local30 = tmp37_input.decodeLongElement_994anb_k$(tmp0_desc, 30); + tmp3_bitMask0 = tmp3_bitMask0 | 1073741824; + tmp36_local31 = tmp37_input.decodeLongElement_994anb_k$(tmp0_desc, 31); + tmp3_bitMask0 = tmp3_bitMask0 | -2147483648; + } else + while (tmp1_flag) { + tmp2_index = tmp37_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp5_local0 = tmp37_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp6_local1 = tmp37_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp7_local2 = tmp37_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp8_local3 = tmp37_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp9_local4 = tmp37_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp10_local5 = tmp37_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp11_local6 = tmp37_input.decodeLongElement_994anb_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp12_local7 = tmp37_input.decodeLongElement_994anb_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp13_local8 = tmp37_input.decodeIntElement_941u6a_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp14_local9 = tmp37_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 9, $serializer_getInstance_1072(), tmp14_local9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp15_local10 = tmp37_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 10, tmp38_cached[10], tmp15_local10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp16_local11 = tmp37_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + case 12: + tmp17_local12 = tmp37_input.decodeIntElement_941u6a_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + break; + case 13: + tmp18_local13 = tmp37_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + break; + case 14: + tmp19_local14 = tmp37_input.decodeStringElement_3oenpg_k$(tmp0_desc, 14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + break; + case 15: + tmp20_local15 = tmp37_input.decodeLongElement_994anb_k$(tmp0_desc, 15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + break; + case 16: + tmp21_local16 = tmp37_input.decodeIntElement_941u6a_k$(tmp0_desc, 16); + tmp3_bitMask0 = tmp3_bitMask0 | 65536; + break; + case 17: + tmp22_local17 = tmp37_input.decodeLongElement_994anb_k$(tmp0_desc, 17); + tmp3_bitMask0 = tmp3_bitMask0 | 131072; + break; + case 18: + tmp23_local18 = tmp37_input.decodeStringElement_3oenpg_k$(tmp0_desc, 18); + tmp3_bitMask0 = tmp3_bitMask0 | 262144; + break; + case 19: + tmp24_local19 = tmp37_input.decodeLongElement_994anb_k$(tmp0_desc, 19); + tmp3_bitMask0 = tmp3_bitMask0 | 524288; + break; + case 20: + tmp25_local20 = tmp37_input.decodeStringElement_3oenpg_k$(tmp0_desc, 20); + tmp3_bitMask0 = tmp3_bitMask0 | 1048576; + break; + case 21: + tmp26_local21 = tmp37_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 21); + tmp3_bitMask0 = tmp3_bitMask0 | 2097152; + break; + case 22: + tmp27_local22 = tmp37_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 22, tmp38_cached[22], tmp27_local22); + tmp3_bitMask0 = tmp3_bitMask0 | 4194304; + break; + case 23: + tmp28_local23 = tmp37_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 23); + tmp3_bitMask0 = tmp3_bitMask0 | 8388608; + break; + case 24: + tmp29_local24 = tmp37_input.decodeIntElement_941u6a_k$(tmp0_desc, 24); + tmp3_bitMask0 = tmp3_bitMask0 | 16777216; + break; + case 25: + tmp30_local25 = tmp37_input.decodeStringElement_3oenpg_k$(tmp0_desc, 25); + tmp3_bitMask0 = tmp3_bitMask0 | 33554432; + break; + case 26: + tmp31_local26 = tmp37_input.decodeIntElement_941u6a_k$(tmp0_desc, 26); + tmp3_bitMask0 = tmp3_bitMask0 | 67108864; + break; + case 27: + tmp32_local27 = tmp37_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 27); + tmp3_bitMask0 = tmp3_bitMask0 | 134217728; + break; + case 28: + tmp33_local28 = tmp37_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 28); + tmp3_bitMask0 = tmp3_bitMask0 | 268435456; + break; + case 29: + tmp34_local29 = tmp37_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 29); + tmp3_bitMask0 = tmp3_bitMask0 | 536870912; + break; + case 30: + tmp35_local30 = tmp37_input.decodeLongElement_994anb_k$(tmp0_desc, 30); + tmp3_bitMask0 = tmp3_bitMask0 | 1073741824; + break; + case 31: + tmp36_local31 = tmp37_input.decodeLongElement_994anb_k$(tmp0_desc, 31); + tmp3_bitMask0 = tmp3_bitMask0 | -2147483648; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp37_input.endStructure_1xqz0n_k$(tmp0_desc); + return KMdlDynArchive.new_com_bapis_bilibili_app_dynamic_v2_KMdlDynArchive_rk4yup_k$(tmp3_bitMask0, tmp4_bitMask1, tmp5_local0, tmp6_local1, tmp7_local2, tmp8_local3, tmp9_local4, tmp10_local5, tmp11_local6, tmp12_local7, tmp13_local8, tmp14_local9, tmp15_local10, tmp16_local11, tmp17_local12, tmp18_local13, tmp19_local14, tmp20_local15, tmp21_local16, tmp22_local17, tmp23_local18, tmp24_local19, tmp25_local20, tmp26_local21, tmp27_local22, tmp28_local23, tmp29_local24, tmp30_local25, tmp31_local26, tmp32_local27, tmp33_local28, tmp34_local29, tmp35_local30, tmp36_local31, null); + } + serialize_q8y08u_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_1084().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.cover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.uri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.uri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.coverLeftText1 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.coverLeftText1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.coverLeftText2 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.coverLeftText2); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.coverLeftText3 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.coverLeftText3); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !value.avid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 6, value.avid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !value.cid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 7, value.cid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.mediaType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 8, value.mediaType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.dimension == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 9, $serializer_getInstance_1072(), value.dimension); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !equals(value.badge, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 10, tmp2_cached[10], value.badge); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.canPlay === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 11, value.canPlay); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !(value.stype === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 12, value.stype); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 13) ? true : !(value.isPGC === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 13, value.isPGC); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 14) ? true : !(value.inlineURL === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 14, value.inlineURL); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 15) ? true : !value.episodeId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 15, value.episodeId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 16) ? true : !(value.subType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 16, value.subType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 17) ? true : !value.pgcSeasonId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 17, value.pgcSeasonId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 18) ? true : !(value.playIcon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 18, value.playIcon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 19) ? true : !value.duration.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 19, value.duration); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 20) ? true : !(value.jumpUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 20, value.jumpUrl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 21) ? true : !(value.isPreview === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 21, value.isPreview); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 22) ? true : !equals(value.badgeCategory, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 22, tmp2_cached[22], value.badgeCategory); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 23) ? true : !(value.isFeature === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 23, value.isFeature); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 24) ? true : !(value.reserveType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 24, value.reserveType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 25) ? true : !(value.bvid === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 25, value.bvid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 26) ? true : !(value.view === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 26, value.view); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 27) ? true : !(value.showPremiereBadge === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 27, value.showPremiereBadge); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 28) ? true : !(value.premiereCard === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 28, value.premiereCard); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 29) ? true : !(value.showProgress === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 29, value.showProgress); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 30) ? true : !value.partDuration.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 30, value.partDuration); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 31) ? true : !value.partProgress.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 31, value.partProgress); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_q8y08u_k$(encoder, value instanceof KMdlDynArchive ? value : THROW_CCE()); + } + } + class KMdlDynArchive { + constructor(title, cover, uri, coverLeftText1, coverLeftText2, coverLeftText3, avid, cid, mediaType, dimension, badge, canPlay, stype, isPGC, inlineURL, episodeId, subType, pgcSeasonId, playIcon, duration, jumpUrl, isPreview, badgeCategory, isFeature, reserveType, bvid, view, showPremiereBadge, premiereCard, showProgress, partDuration, partProgress) { + Companion_getInstance_1084(); + title = title === VOID ? '' : title; + cover = cover === VOID ? '' : cover; + uri = uri === VOID ? '' : uri; + coverLeftText1 = coverLeftText1 === VOID ? '' : coverLeftText1; + coverLeftText2 = coverLeftText2 === VOID ? '' : coverLeftText2; + coverLeftText3 = coverLeftText3 === VOID ? '' : coverLeftText3; + avid = avid === VOID ? new Long(0, 0) : avid; + cid = cid === VOID ? new Long(0, 0) : cid; + mediaType = mediaType === VOID ? 0 : mediaType; + dimension = dimension === VOID ? null : dimension; + badge = badge === VOID ? emptyList() : badge; + canPlay = canPlay === VOID ? false : canPlay; + stype = stype === VOID ? 0 : stype; + isPGC = isPGC === VOID ? false : isPGC; + inlineURL = inlineURL === VOID ? '' : inlineURL; + episodeId = episodeId === VOID ? new Long(0, 0) : episodeId; + subType = subType === VOID ? 0 : subType; + pgcSeasonId = pgcSeasonId === VOID ? new Long(0, 0) : pgcSeasonId; + playIcon = playIcon === VOID ? '' : playIcon; + duration = duration === VOID ? new Long(0, 0) : duration; + jumpUrl = jumpUrl === VOID ? '' : jumpUrl; + isPreview = isPreview === VOID ? false : isPreview; + badgeCategory = badgeCategory === VOID ? emptyList() : badgeCategory; + isFeature = isFeature === VOID ? false : isFeature; + reserveType = reserveType === VOID ? 0 : reserveType; + bvid = bvid === VOID ? '' : bvid; + view = view === VOID ? 0 : view; + showPremiereBadge = showPremiereBadge === VOID ? false : showPremiereBadge; + premiereCard = premiereCard === VOID ? false : premiereCard; + showProgress = showProgress === VOID ? false : showProgress; + partDuration = partDuration === VOID ? new Long(0, 0) : partDuration; + partProgress = partProgress === VOID ? new Long(0, 0) : partProgress; + this.title = title; + this.cover = cover; + this.uri = uri; + this.coverLeftText1 = coverLeftText1; + this.coverLeftText2 = coverLeftText2; + this.coverLeftText3 = coverLeftText3; + this.avid = avid; + this.cid = cid; + this.mediaType = mediaType; + this.dimension = dimension; + this.badge = badge; + this.canPlay = canPlay; + this.stype = stype; + this.isPGC = isPGC; + this.inlineURL = inlineURL; + this.episodeId = episodeId; + this.subType = subType; + this.pgcSeasonId = pgcSeasonId; + this.playIcon = playIcon; + this.duration = duration; + this.jumpUrl = jumpUrl; + this.isPreview = isPreview; + this.badgeCategory = badgeCategory; + this.isFeature = isFeature; + this.reserveType = reserveType; + this.bvid = bvid; + this.view = view; + this.showPremiereBadge = showPremiereBadge; + this.premiereCard = premiereCard; + this.showProgress = showProgress; + this.partDuration = partDuration; + this.partProgress = partProgress; + } + get_title_iz32un_k$() { + return this.title; + } + get_cover_ipug0e_k$() { + return this.cover; + } + get_uri_18iuil_k$() { + return this.uri; + } + get_coverLeftText1_ck8hkf_k$() { + return this.coverLeftText1; + } + get_coverLeftText2_ck8hkg_k$() { + return this.coverLeftText2; + } + get_coverLeftText3_ck8hkh_k$() { + return this.coverLeftText3; + } + get_avid_woj3a1_k$() { + return this.avid; + } + get_cid_18j82z_k$() { + return this.cid; + } + get_mediaType_r47omj_k$() { + return this.mediaType; + } + get_dimension_9lf48z_k$() { + return this.dimension; + } + get_badge_ip1cai_k$() { + return this.badge; + } + get_canPlay_acszln_k$() { + return this.canPlay; + } + get_stype_iyqex0_k$() { + return this.stype; + } + get_isPGC_it6yl5_k$() { + return this.isPGC; + } + get_inlineURL_rqc0wj_k$() { + return this.inlineURL; + } + get_episodeId_vv290z_k$() { + return this.episodeId; + } + get_subType_tmwy1b_k$() { + return this.subType; + } + get_pgcSeasonId_d1w9k1_k$() { + return this.pgcSeasonId; + } + get_playIcon_qkju2_k$() { + return this.playIcon; + } + get_duration_6a6kpp_k$() { + return this.duration; + } + get_jumpUrl_jhqiko_k$() { + return this.jumpUrl; + } + get_isPreview_6c3nmz_k$() { + return this.isPreview; + } + get_badgeCategory_cfv2c8_k$() { + return this.badgeCategory; + } + get_isFeature_h9no71_k$() { + return this.isFeature; + } + get_reserveType_bwry37_k$() { + return this.reserveType; + } + get_bvid_wojq9k_k$() { + return this.bvid; + } + get_view_wow8a6_k$() { + return this.view; + } + get_showPremiereBadge_co979g_k$() { + return this.showPremiereBadge; + } + get_premiereCard_zdzbf2_k$() { + return this.premiereCard; + } + get_showProgress_q3ozn1_k$() { + return this.showProgress; + } + get_partDuration_pys3xs_k$() { + return this.partDuration; + } + get_partProgress_socsc7_k$() { + return this.partProgress; + } + mediaTypeEnum() { + return Companion_getInstance_1059().fromValue(this.mediaType); + } + stypeEnum() { + return Companion_getInstance_1062().fromValue(this.stype); + } + reserveTypeEnum() { + return Companion_getInstance_1060().fromValue(this.reserveType); + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.cover; + } + component3_7eebsa_k$() { + return this.uri; + } + component4_7eebs9_k$() { + return this.coverLeftText1; + } + component5_7eebs8_k$() { + return this.coverLeftText2; + } + component6_7eebs7_k$() { + return this.coverLeftText3; + } + component7_7eebs6_k$() { + return this.avid; + } + component8_7eebs5_k$() { + return this.cid; + } + component9_7eebs4_k$() { + return this.mediaType; + } + component10_gazzfo_k$() { + return this.dimension; + } + component11_gazzfn_k$() { + return this.badge; + } + component12_gazzfm_k$() { + return this.canPlay; + } + component13_gazzfl_k$() { + return this.stype; + } + component14_gazzfk_k$() { + return this.isPGC; + } + component15_gazzfj_k$() { + return this.inlineURL; + } + component16_gazzfi_k$() { + return this.episodeId; + } + component17_gazzfh_k$() { + return this.subType; + } + component18_gazzfg_k$() { + return this.pgcSeasonId; + } + component19_gazzff_k$() { + return this.playIcon; + } + component20_gazzet_k$() { + return this.duration; + } + component21_gazzes_k$() { + return this.jumpUrl; + } + component22_gazzer_k$() { + return this.isPreview; + } + component23_gazzeq_k$() { + return this.badgeCategory; + } + component24_gazzep_k$() { + return this.isFeature; + } + component25_gazzeo_k$() { + return this.reserveType; + } + component26_gazzen_k$() { + return this.bvid; + } + component27_gazzem_k$() { + return this.view; + } + component28_gazzel_k$() { + return this.showPremiereBadge; + } + component29_gazzek_k$() { + return this.premiereCard; + } + component30_gazzdy_k$() { + return this.showProgress; + } + component31_gazzdx_k$() { + return this.partDuration; + } + component32_gazzdw_k$() { + return this.partProgress; + } + copy_fimua8_k$(title, cover, uri, coverLeftText1, coverLeftText2, coverLeftText3, avid, cid, mediaType, dimension, badge, canPlay, stype, isPGC, inlineURL, episodeId, subType, pgcSeasonId, playIcon, duration, jumpUrl, isPreview, badgeCategory, isFeature, reserveType, bvid, view, showPremiereBadge, premiereCard, showProgress, partDuration, partProgress) { + return new KMdlDynArchive(title, cover, uri, coverLeftText1, coverLeftText2, coverLeftText3, avid, cid, mediaType, dimension, badge, canPlay, stype, isPGC, inlineURL, episodeId, subType, pgcSeasonId, playIcon, duration, jumpUrl, isPreview, badgeCategory, isFeature, reserveType, bvid, view, showPremiereBadge, premiereCard, showProgress, partDuration, partProgress); + } + copy(title, cover, uri, coverLeftText1, coverLeftText2, coverLeftText3, avid, cid, mediaType, dimension, badge, canPlay, stype, isPGC, inlineURL, episodeId, subType, pgcSeasonId, playIcon, duration, jumpUrl, isPreview, badgeCategory, isFeature, reserveType, bvid, view, showPremiereBadge, premiereCard, showProgress, partDuration, partProgress, $super) { + title = title === VOID ? this.title : title; + cover = cover === VOID ? this.cover : cover; + uri = uri === VOID ? this.uri : uri; + coverLeftText1 = coverLeftText1 === VOID ? this.coverLeftText1 : coverLeftText1; + coverLeftText2 = coverLeftText2 === VOID ? this.coverLeftText2 : coverLeftText2; + coverLeftText3 = coverLeftText3 === VOID ? this.coverLeftText3 : coverLeftText3; + avid = avid === VOID ? this.avid : avid; + cid = cid === VOID ? this.cid : cid; + mediaType = mediaType === VOID ? this.mediaType : mediaType; + dimension = dimension === VOID ? this.dimension : dimension; + badge = badge === VOID ? this.badge : badge; + canPlay = canPlay === VOID ? this.canPlay : canPlay; + stype = stype === VOID ? this.stype : stype; + isPGC = isPGC === VOID ? this.isPGC : isPGC; + inlineURL = inlineURL === VOID ? this.inlineURL : inlineURL; + episodeId = episodeId === VOID ? this.episodeId : episodeId; + subType = subType === VOID ? this.subType : subType; + pgcSeasonId = pgcSeasonId === VOID ? this.pgcSeasonId : pgcSeasonId; + playIcon = playIcon === VOID ? this.playIcon : playIcon; + duration = duration === VOID ? this.duration : duration; + jumpUrl = jumpUrl === VOID ? this.jumpUrl : jumpUrl; + isPreview = isPreview === VOID ? this.isPreview : isPreview; + badgeCategory = badgeCategory === VOID ? this.badgeCategory : badgeCategory; + isFeature = isFeature === VOID ? this.isFeature : isFeature; + reserveType = reserveType === VOID ? this.reserveType : reserveType; + bvid = bvid === VOID ? this.bvid : bvid; + view = view === VOID ? this.view : view; + showPremiereBadge = showPremiereBadge === VOID ? this.showPremiereBadge : showPremiereBadge; + premiereCard = premiereCard === VOID ? this.premiereCard : premiereCard; + showProgress = showProgress === VOID ? this.showProgress : showProgress; + partDuration = partDuration === VOID ? this.partDuration : partDuration; + partProgress = partProgress === VOID ? this.partProgress : partProgress; + return this.copy_fimua8_k$(title, cover, uri, coverLeftText1, coverLeftText2, coverLeftText3, avid, cid, mediaType, dimension, badge, canPlay, stype, isPGC, inlineURL, episodeId, subType, pgcSeasonId, playIcon, duration, jumpUrl, isPreview, badgeCategory, isFeature, reserveType, bvid, view, showPremiereBadge, premiereCard, showProgress, partDuration, partProgress); + } + toString() { + return 'KMdlDynArchive(title=' + this.title + ', cover=' + this.cover + ', uri=' + this.uri + ', coverLeftText1=' + this.coverLeftText1 + ', coverLeftText2=' + this.coverLeftText2 + ', coverLeftText3=' + this.coverLeftText3 + ', avid=' + this.avid.toString() + ', cid=' + this.cid.toString() + ', mediaType=' + this.mediaType + ', dimension=' + this.dimension + ', badge=' + this.badge + ', canPlay=' + this.canPlay + ', stype=' + this.stype + ', isPGC=' + this.isPGC + ', inlineURL=' + this.inlineURL + ', episodeId=' + this.episodeId.toString() + ', subType=' + this.subType + ', pgcSeasonId=' + this.pgcSeasonId.toString() + ', playIcon=' + this.playIcon + ', duration=' + this.duration.toString() + ', jumpUrl=' + this.jumpUrl + ', isPreview=' + this.isPreview + ', badgeCategory=' + this.badgeCategory + ', isFeature=' + this.isFeature + ', reserveType=' + this.reserveType + ', bvid=' + this.bvid + ', view=' + this.view + ', showPremiereBadge=' + this.showPremiereBadge + ', premiereCard=' + this.premiereCard + ', showProgress=' + this.showProgress + ', partDuration=' + this.partDuration.toString() + ', partProgress=' + this.partProgress.toString() + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.cover) | 0; + result = imul(result, 31) + getStringHashCode(this.uri) | 0; + result = imul(result, 31) + getStringHashCode(this.coverLeftText1) | 0; + result = imul(result, 31) + getStringHashCode(this.coverLeftText2) | 0; + result = imul(result, 31) + getStringHashCode(this.coverLeftText3) | 0; + result = imul(result, 31) + this.avid.hashCode() | 0; + result = imul(result, 31) + this.cid.hashCode() | 0; + result = imul(result, 31) + this.mediaType | 0; + result = imul(result, 31) + (this.dimension == null ? 0 : this.dimension.hashCode()) | 0; + result = imul(result, 31) + hashCode(this.badge) | 0; + result = imul(result, 31) + getBooleanHashCode(this.canPlay) | 0; + result = imul(result, 31) + this.stype | 0; + result = imul(result, 31) + getBooleanHashCode(this.isPGC) | 0; + result = imul(result, 31) + getStringHashCode(this.inlineURL) | 0; + result = imul(result, 31) + this.episodeId.hashCode() | 0; + result = imul(result, 31) + this.subType | 0; + result = imul(result, 31) + this.pgcSeasonId.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.playIcon) | 0; + result = imul(result, 31) + this.duration.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.jumpUrl) | 0; + result = imul(result, 31) + getBooleanHashCode(this.isPreview) | 0; + result = imul(result, 31) + hashCode(this.badgeCategory) | 0; + result = imul(result, 31) + getBooleanHashCode(this.isFeature) | 0; + result = imul(result, 31) + this.reserveType | 0; + result = imul(result, 31) + getStringHashCode(this.bvid) | 0; + result = imul(result, 31) + this.view | 0; + result = imul(result, 31) + getBooleanHashCode(this.showPremiereBadge) | 0; + result = imul(result, 31) + getBooleanHashCode(this.premiereCard) | 0; + result = imul(result, 31) + getBooleanHashCode(this.showProgress) | 0; + result = imul(result, 31) + this.partDuration.hashCode() | 0; + result = imul(result, 31) + this.partProgress.hashCode() | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KMdlDynArchive)) + return false; + var tmp0_other_with_cast = other instanceof KMdlDynArchive ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + if (!(this.uri === tmp0_other_with_cast.uri)) + return false; + if (!(this.coverLeftText1 === tmp0_other_with_cast.coverLeftText1)) + return false; + if (!(this.coverLeftText2 === tmp0_other_with_cast.coverLeftText2)) + return false; + if (!(this.coverLeftText3 === tmp0_other_with_cast.coverLeftText3)) + return false; + if (!this.avid.equals(tmp0_other_with_cast.avid)) + return false; + if (!this.cid.equals(tmp0_other_with_cast.cid)) + return false; + if (!(this.mediaType === tmp0_other_with_cast.mediaType)) + return false; + if (!equals(this.dimension, tmp0_other_with_cast.dimension)) + return false; + if (!equals(this.badge, tmp0_other_with_cast.badge)) + return false; + if (!(this.canPlay === tmp0_other_with_cast.canPlay)) + return false; + if (!(this.stype === tmp0_other_with_cast.stype)) + return false; + if (!(this.isPGC === tmp0_other_with_cast.isPGC)) + return false; + if (!(this.inlineURL === tmp0_other_with_cast.inlineURL)) + return false; + if (!this.episodeId.equals(tmp0_other_with_cast.episodeId)) + return false; + if (!(this.subType === tmp0_other_with_cast.subType)) + return false; + if (!this.pgcSeasonId.equals(tmp0_other_with_cast.pgcSeasonId)) + return false; + if (!(this.playIcon === tmp0_other_with_cast.playIcon)) + return false; + if (!this.duration.equals(tmp0_other_with_cast.duration)) + return false; + if (!(this.jumpUrl === tmp0_other_with_cast.jumpUrl)) + return false; + if (!(this.isPreview === tmp0_other_with_cast.isPreview)) + return false; + if (!equals(this.badgeCategory, tmp0_other_with_cast.badgeCategory)) + return false; + if (!(this.isFeature === tmp0_other_with_cast.isFeature)) + return false; + if (!(this.reserveType === tmp0_other_with_cast.reserveType)) + return false; + if (!(this.bvid === tmp0_other_with_cast.bvid)) + return false; + if (!(this.view === tmp0_other_with_cast.view)) + return false; + if (!(this.showPremiereBadge === tmp0_other_with_cast.showPremiereBadge)) + return false; + if (!(this.premiereCard === tmp0_other_with_cast.premiereCard)) + return false; + if (!(this.showProgress === tmp0_other_with_cast.showProgress)) + return false; + if (!this.partDuration.equals(tmp0_other_with_cast.partDuration)) + return false; + if (!this.partProgress.equals(tmp0_other_with_cast.partProgress)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KMdlDynArchive_rk4yup_k$(seen1, seen2, title, cover, uri, coverLeftText1, coverLeftText2, coverLeftText3, avid, cid, mediaType, dimension, badge, canPlay, stype, isPGC, inlineURL, episodeId, subType, pgcSeasonId, playIcon, duration, jumpUrl, isPreview, badgeCategory, isFeature, reserveType, bvid, view, showPremiereBadge, premiereCard, showProgress, partDuration, partProgress, serializationConstructorMarker) { + Companion_getInstance_1084(); + if (!!(!(0 === (0 & seen1)) | !(0 === (0 & seen2)))) { + var tmp$ret$0; + // Inline function 'kotlin.intArrayOf' call + var elements = new Int32Array([seen1, seen2]); + tmp$ret$0 = elements; + var tmp = tmp$ret$0; + var tmp$ret$1; + // Inline function 'kotlin.intArrayOf' call + var elements_0 = new Int32Array([0, 0]); + tmp$ret$1 = elements_0; + throwArrayMissingFieldException(tmp, tmp$ret$1, $serializer_getInstance_1071().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.cover = ''; + else + $this.cover = cover; + if (0 === (seen1 & 4)) + $this.uri = ''; + else + $this.uri = uri; + if (0 === (seen1 & 8)) + $this.coverLeftText1 = ''; + else + $this.coverLeftText1 = coverLeftText1; + if (0 === (seen1 & 16)) + $this.coverLeftText2 = ''; + else + $this.coverLeftText2 = coverLeftText2; + if (0 === (seen1 & 32)) + $this.coverLeftText3 = ''; + else + $this.coverLeftText3 = coverLeftText3; + if (0 === (seen1 & 64)) + $this.avid = new Long(0, 0); + else + $this.avid = avid; + if (0 === (seen1 & 128)) + $this.cid = new Long(0, 0); + else + $this.cid = cid; + if (0 === (seen1 & 256)) + $this.mediaType = 0; + else + $this.mediaType = mediaType; + if (0 === (seen1 & 512)) + $this.dimension = null; + else + $this.dimension = dimension; + if (0 === (seen1 & 1024)) + $this.badge = emptyList(); + else + $this.badge = badge; + if (0 === (seen1 & 2048)) + $this.canPlay = false; + else + $this.canPlay = canPlay; + if (0 === (seen1 & 4096)) + $this.stype = 0; + else + $this.stype = stype; + if (0 === (seen1 & 8192)) + $this.isPGC = false; + else + $this.isPGC = isPGC; + if (0 === (seen1 & 16384)) + $this.inlineURL = ''; + else + $this.inlineURL = inlineURL; + if (0 === (seen1 & 32768)) + $this.episodeId = new Long(0, 0); + else + $this.episodeId = episodeId; + if (0 === (seen1 & 65536)) + $this.subType = 0; + else + $this.subType = subType; + if (0 === (seen1 & 131072)) + $this.pgcSeasonId = new Long(0, 0); + else + $this.pgcSeasonId = pgcSeasonId; + if (0 === (seen1 & 262144)) + $this.playIcon = ''; + else + $this.playIcon = playIcon; + if (0 === (seen1 & 524288)) + $this.duration = new Long(0, 0); + else + $this.duration = duration; + if (0 === (seen1 & 1048576)) + $this.jumpUrl = ''; + else + $this.jumpUrl = jumpUrl; + if (0 === (seen1 & 2097152)) + $this.isPreview = false; + else + $this.isPreview = isPreview; + if (0 === (seen1 & 4194304)) + $this.badgeCategory = emptyList(); + else + $this.badgeCategory = badgeCategory; + if (0 === (seen1 & 8388608)) + $this.isFeature = false; + else + $this.isFeature = isFeature; + if (0 === (seen1 & 16777216)) + $this.reserveType = 0; + else + $this.reserveType = reserveType; + if (0 === (seen1 & 33554432)) + $this.bvid = ''; + else + $this.bvid = bvid; + if (0 === (seen1 & 67108864)) + $this.view = 0; + else + $this.view = view; + if (0 === (seen1 & 134217728)) + $this.showPremiereBadge = false; + else + $this.showPremiereBadge = showPremiereBadge; + if (0 === (seen1 & 268435456)) + $this.premiereCard = false; + else + $this.premiereCard = premiereCard; + if (0 === (seen1 & 536870912)) + $this.showProgress = false; + else + $this.showProgress = showProgress; + if (0 === (seen1 & 1073741824)) + $this.partDuration = new Long(0, 0); + else + $this.partDuration = partDuration; + if (0 === (seen1 & -2147483648)) + $this.partProgress = new Long(0, 0); + else + $this.partProgress = partProgress; + return $this; + } + } + class Companion_1085 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.Dimension'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1072(); + } + } + class $serializer_1072 { + constructor() { + $serializer_instance_1072 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KDimension', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('height', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('width', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('rotate', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('forceHorizontal', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), BooleanSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = new Long(0, 0); + var tmp6_local2 = new Long(0, 0); + var tmp7_local3 = false; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KDimension_2.new_com_bapis_bilibili_app_dynamic_v2_KDimension_oxky9t_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_na8q6i_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.height.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.height); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.width.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.width); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.rotate.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.rotate); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.forceHorizontal === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 3, value.forceHorizontal); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_na8q6i_k$(encoder, value instanceof KDimension_2 ? value : THROW_CCE()); + } + } + class KDimension_2 { + constructor(height, width, rotate, forceHorizontal) { + Companion_instance_1085; + height = height === VOID ? new Long(0, 0) : height; + width = width === VOID ? new Long(0, 0) : width; + rotate = rotate === VOID ? new Long(0, 0) : rotate; + forceHorizontal = forceHorizontal === VOID ? false : forceHorizontal; + this.height = height; + this.width = width; + this.rotate = rotate; + this.forceHorizontal = forceHorizontal; + } + get_height_e7t92o_k$() { + return this.height; + } + get_width_j0q4yl_k$() { + return this.width; + } + get_rotate_j3ybms_k$() { + return this.rotate; + } + get_forceHorizontal_zz43q_k$() { + return this.forceHorizontal; + } + component1_7eebsc_k$() { + return this.height; + } + component2_7eebsb_k$() { + return this.width; + } + component3_7eebsa_k$() { + return this.rotate; + } + component4_7eebs9_k$() { + return this.forceHorizontal; + } + copy_va5eja_k$(height, width, rotate, forceHorizontal) { + return new KDimension_2(height, width, rotate, forceHorizontal); + } + copy(height, width, rotate, forceHorizontal, $super) { + height = height === VOID ? this.height : height; + width = width === VOID ? this.width : width; + rotate = rotate === VOID ? this.rotate : rotate; + forceHorizontal = forceHorizontal === VOID ? this.forceHorizontal : forceHorizontal; + return this.copy_va5eja_k$(height, width, rotate, forceHorizontal); + } + toString() { + return 'KDimension(height=' + this.height.toString() + ', width=' + this.width.toString() + ', rotate=' + this.rotate.toString() + ', forceHorizontal=' + this.forceHorizontal + ')'; + } + hashCode() { + var result = this.height.hashCode(); + result = imul(result, 31) + this.width.hashCode() | 0; + result = imul(result, 31) + this.rotate.hashCode() | 0; + result = imul(result, 31) + getBooleanHashCode(this.forceHorizontal) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KDimension_2)) + return false; + var tmp0_other_with_cast = other instanceof KDimension_2 ? other : THROW_CCE(); + if (!this.height.equals(tmp0_other_with_cast.height)) + return false; + if (!this.width.equals(tmp0_other_with_cast.width)) + return false; + if (!this.rotate.equals(tmp0_other_with_cast.rotate)) + return false; + if (!(this.forceHorizontal === tmp0_other_with_cast.forceHorizontal)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KDimension_oxky9t_k$(seen1, height, width, rotate, forceHorizontal, serializationConstructorMarker) { + Companion_instance_1085; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1072().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.height = new Long(0, 0); + else + $this.height = height; + if (0 === (seen1 & 2)) + $this.width = new Long(0, 0); + else + $this.width = width; + if (0 === (seen1 & 4)) + $this.rotate = new Long(0, 0); + else + $this.rotate = rotate; + if (0 === (seen1 & 8)) + $this.forceHorizontal = false; + else + $this.forceHorizontal = forceHorizontal; + return $this; + } + } + class Companion_1086 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.VideoBadge'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1073(); + } + } + class $serializer_1073 { + constructor() { + $serializer_instance_1073 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KVideoBadge', this, 12); + tmp0_serialDesc.addElement_5pzumi_k$('text', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('textColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('textColorNight', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('bgColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('bgColorNight', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('borderColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('borderColorNight', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('bgStyle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('bgAlpha', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('bgAlphaNight', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('headIcon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('headIconLocal', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = 0; + var tmp12_local8 = 0; + var tmp13_local9 = 0; + var tmp14_local10 = null; + var tmp15_local11 = 0; + var tmp16_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp16_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + } else + while (tmp1_flag) { + tmp2_index = tmp16_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp16_input.decodeStringElement_3oenpg_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp16_input.endStructure_1xqz0n_k$(tmp0_desc); + return KVideoBadge.new_com_bapis_bilibili_app_dynamic_v2_KVideoBadge_rkfpg2_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, null); + } + serialize_pd0tmm_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.text === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.text); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.textColor === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.textColor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.textColorNight === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.textColorNight); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.bgColor === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.bgColor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.bgColorNight === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.bgColorNight); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.borderColor === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.borderColor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.borderColorNight === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.borderColorNight); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.bgStyle === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 7, value.bgStyle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.bgAlpha === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 8, value.bgAlpha); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.bgAlphaNight === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 9, value.bgAlphaNight); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.headIcon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 10, value.headIcon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.headIconLocal === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 11, value.headIconLocal); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_pd0tmm_k$(encoder, value instanceof KVideoBadge ? value : THROW_CCE()); + } + } + class KVideoBadge { + constructor(text, textColor, textColorNight, bgColor, bgColorNight, borderColor, borderColorNight, bgStyle, bgAlpha, bgAlphaNight, headIcon, headIconLocal) { + Companion_instance_1086; + text = text === VOID ? '' : text; + textColor = textColor === VOID ? '' : textColor; + textColorNight = textColorNight === VOID ? '' : textColorNight; + bgColor = bgColor === VOID ? '' : bgColor; + bgColorNight = bgColorNight === VOID ? '' : bgColorNight; + borderColor = borderColor === VOID ? '' : borderColor; + borderColorNight = borderColorNight === VOID ? '' : borderColorNight; + bgStyle = bgStyle === VOID ? 0 : bgStyle; + bgAlpha = bgAlpha === VOID ? 0 : bgAlpha; + bgAlphaNight = bgAlphaNight === VOID ? 0 : bgAlphaNight; + headIcon = headIcon === VOID ? '' : headIcon; + headIconLocal = headIconLocal === VOID ? 0 : headIconLocal; + this.text = text; + this.textColor = textColor; + this.textColorNight = textColorNight; + this.bgColor = bgColor; + this.bgColorNight = bgColorNight; + this.borderColor = borderColor; + this.borderColorNight = borderColorNight; + this.bgStyle = bgStyle; + this.bgAlpha = bgAlpha; + this.bgAlphaNight = bgAlphaNight; + this.headIcon = headIcon; + this.headIconLocal = headIconLocal; + } + get_text_wouvsm_k$() { + return this.text; + } + get_textColor_92p84z_k$() { + return this.textColor; + } + get_textColorNight_hqolf9_k$() { + return this.textColorNight; + } + get_bgColor_24ewuj_k$() { + return this.bgColor; + } + get_bgColorNight_mzrajh_k$() { + return this.bgColorNight; + } + get_borderColor_puk0tq_k$() { + return this.borderColor; + } + get_borderColorNight_z7xsom_k$() { + return this.borderColorNight; + } + get_bgStyle_1viqv1_k$() { + return this.bgStyle; + } + get_bgAlpha_25kc7k_k$() { + return this.bgAlpha; + } + get_bgAlphaNight_6nezew_k$() { + return this.bgAlphaNight; + } + get_headIcon_kro9j6_k$() { + return this.headIcon; + } + get_headIconLocal_7jr06v_k$() { + return this.headIconLocal; + } + headIconLocalEnum() { + return Companion_getInstance_1061().fromValue(this.headIconLocal); + } + component1_7eebsc_k$() { + return this.text; + } + component2_7eebsb_k$() { + return this.textColor; + } + component3_7eebsa_k$() { + return this.textColorNight; + } + component4_7eebs9_k$() { + return this.bgColor; + } + component5_7eebs8_k$() { + return this.bgColorNight; + } + component6_7eebs7_k$() { + return this.borderColor; + } + component7_7eebs6_k$() { + return this.borderColorNight; + } + component8_7eebs5_k$() { + return this.bgStyle; + } + component9_7eebs4_k$() { + return this.bgAlpha; + } + component10_gazzfo_k$() { + return this.bgAlphaNight; + } + component11_gazzfn_k$() { + return this.headIcon; + } + component12_gazzfm_k$() { + return this.headIconLocal; + } + copy_dbn98v_k$(text, textColor, textColorNight, bgColor, bgColorNight, borderColor, borderColorNight, bgStyle, bgAlpha, bgAlphaNight, headIcon, headIconLocal) { + return new KVideoBadge(text, textColor, textColorNight, bgColor, bgColorNight, borderColor, borderColorNight, bgStyle, bgAlpha, bgAlphaNight, headIcon, headIconLocal); + } + copy(text, textColor, textColorNight, bgColor, bgColorNight, borderColor, borderColorNight, bgStyle, bgAlpha, bgAlphaNight, headIcon, headIconLocal, $super) { + text = text === VOID ? this.text : text; + textColor = textColor === VOID ? this.textColor : textColor; + textColorNight = textColorNight === VOID ? this.textColorNight : textColorNight; + bgColor = bgColor === VOID ? this.bgColor : bgColor; + bgColorNight = bgColorNight === VOID ? this.bgColorNight : bgColorNight; + borderColor = borderColor === VOID ? this.borderColor : borderColor; + borderColorNight = borderColorNight === VOID ? this.borderColorNight : borderColorNight; + bgStyle = bgStyle === VOID ? this.bgStyle : bgStyle; + bgAlpha = bgAlpha === VOID ? this.bgAlpha : bgAlpha; + bgAlphaNight = bgAlphaNight === VOID ? this.bgAlphaNight : bgAlphaNight; + headIcon = headIcon === VOID ? this.headIcon : headIcon; + headIconLocal = headIconLocal === VOID ? this.headIconLocal : headIconLocal; + return this.copy_dbn98v_k$(text, textColor, textColorNight, bgColor, bgColorNight, borderColor, borderColorNight, bgStyle, bgAlpha, bgAlphaNight, headIcon, headIconLocal); + } + toString() { + return 'KVideoBadge(text=' + this.text + ', textColor=' + this.textColor + ', textColorNight=' + this.textColorNight + ', bgColor=' + this.bgColor + ', bgColorNight=' + this.bgColorNight + ', borderColor=' + this.borderColor + ', borderColorNight=' + this.borderColorNight + ', bgStyle=' + this.bgStyle + ', bgAlpha=' + this.bgAlpha + ', bgAlphaNight=' + this.bgAlphaNight + ', headIcon=' + this.headIcon + ', headIconLocal=' + this.headIconLocal + ')'; + } + hashCode() { + var result = getStringHashCode(this.text); + result = imul(result, 31) + getStringHashCode(this.textColor) | 0; + result = imul(result, 31) + getStringHashCode(this.textColorNight) | 0; + result = imul(result, 31) + getStringHashCode(this.bgColor) | 0; + result = imul(result, 31) + getStringHashCode(this.bgColorNight) | 0; + result = imul(result, 31) + getStringHashCode(this.borderColor) | 0; + result = imul(result, 31) + getStringHashCode(this.borderColorNight) | 0; + result = imul(result, 31) + this.bgStyle | 0; + result = imul(result, 31) + this.bgAlpha | 0; + result = imul(result, 31) + this.bgAlphaNight | 0; + result = imul(result, 31) + getStringHashCode(this.headIcon) | 0; + result = imul(result, 31) + this.headIconLocal | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KVideoBadge)) + return false; + var tmp0_other_with_cast = other instanceof KVideoBadge ? other : THROW_CCE(); + if (!(this.text === tmp0_other_with_cast.text)) + return false; + if (!(this.textColor === tmp0_other_with_cast.textColor)) + return false; + if (!(this.textColorNight === tmp0_other_with_cast.textColorNight)) + return false; + if (!(this.bgColor === tmp0_other_with_cast.bgColor)) + return false; + if (!(this.bgColorNight === tmp0_other_with_cast.bgColorNight)) + return false; + if (!(this.borderColor === tmp0_other_with_cast.borderColor)) + return false; + if (!(this.borderColorNight === tmp0_other_with_cast.borderColorNight)) + return false; + if (!(this.bgStyle === tmp0_other_with_cast.bgStyle)) + return false; + if (!(this.bgAlpha === tmp0_other_with_cast.bgAlpha)) + return false; + if (!(this.bgAlphaNight === tmp0_other_with_cast.bgAlphaNight)) + return false; + if (!(this.headIcon === tmp0_other_with_cast.headIcon)) + return false; + if (!(this.headIconLocal === tmp0_other_with_cast.headIconLocal)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KVideoBadge_rkfpg2_k$(seen1, text, textColor, textColorNight, bgColor, bgColorNight, borderColor, borderColorNight, bgStyle, bgAlpha, bgAlphaNight, headIcon, headIconLocal, serializationConstructorMarker) { + Companion_instance_1086; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1073().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.text = ''; + else + $this.text = text; + if (0 === (seen1 & 2)) + $this.textColor = ''; + else + $this.textColor = textColor; + if (0 === (seen1 & 4)) + $this.textColorNight = ''; + else + $this.textColorNight = textColorNight; + if (0 === (seen1 & 8)) + $this.bgColor = ''; + else + $this.bgColor = bgColor; + if (0 === (seen1 & 16)) + $this.bgColorNight = ''; + else + $this.bgColorNight = bgColorNight; + if (0 === (seen1 & 32)) + $this.borderColor = ''; + else + $this.borderColor = borderColor; + if (0 === (seen1 & 64)) + $this.borderColorNight = ''; + else + $this.borderColorNight = borderColorNight; + if (0 === (seen1 & 128)) + $this.bgStyle = 0; + else + $this.bgStyle = bgStyle; + if (0 === (seen1 & 256)) + $this.bgAlpha = 0; + else + $this.bgAlpha = bgAlpha; + if (0 === (seen1 & 512)) + $this.bgAlphaNight = 0; + else + $this.bgAlphaNight = bgAlphaNight; + if (0 === (seen1 & 1024)) + $this.headIcon = ''; + else + $this.headIcon = headIcon; + if (0 === (seen1 & 2048)) + $this.headIconLocal = 0; + else + $this.headIconLocal = headIconLocal; + return $this; + } + } + class Companion_1087 { + constructor() { + Companion_instance_1087 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, null, null, null, null, null, null, null, null, null, null, null, new ArrayListSerializer($serializer_getInstance_1073()), null, null, null, null, null, new ArrayListSerializer($serializer_getInstance_1073()), null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.MdlDynPGC'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1074(); + } + } + class $serializer_1074 { + constructor() { + $serializer_instance_1074 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KMdlDynPGC', this, 22); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('uri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('coverLeftText1', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('coverLeftText2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('coverLeftText3', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('cid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('seasonId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('epid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('aid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('mediaType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('subType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + tmp0_serialDesc.addElement_5pzumi_k$('isPreview', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(13)); + tmp0_serialDesc.addElement_5pzumi_k$('dimension', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(14)); + tmp0_serialDesc.addElement_5pzumi_k$('badge', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(15)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('canPlay', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(16)); + tmp0_serialDesc.addElement_5pzumi_k$('season', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(17)); + tmp0_serialDesc.addElement_5pzumi_k$('playIcon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(18)); + tmp0_serialDesc.addElement_5pzumi_k$('duration', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(19)); + tmp0_serialDesc.addElement_5pzumi_k$('jumpUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(20)); + tmp0_serialDesc.addElement_5pzumi_k$('badgeCategory', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(21)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('isFeature', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(22)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_1087().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), BooleanSerializer_getInstance(), get_nullable($serializer_getInstance_1072()), tmp0_cached[14], BooleanSerializer_getInstance(), get_nullable($serializer_getInstance_1075()), StringSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), tmp0_cached[20], BooleanSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = new Long(0, 0); + var tmp11_local7 = new Long(0, 0); + var tmp12_local8 = new Long(0, 0); + var tmp13_local9 = new Long(0, 0); + var tmp14_local10 = 0; + var tmp15_local11 = 0; + var tmp16_local12 = false; + var tmp17_local13 = null; + var tmp18_local14 = null; + var tmp19_local15 = false; + var tmp20_local16 = null; + var tmp21_local17 = null; + var tmp22_local18 = new Long(0, 0); + var tmp23_local19 = null; + var tmp24_local20 = null; + var tmp25_local21 = false; + var tmp26_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp27_cached = Companion_getInstance_1087().$childSerializers_1; + if (tmp26_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp26_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp26_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp26_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp26_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp26_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp26_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp26_input.decodeLongElement_994anb_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp26_input.decodeLongElement_994anb_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp26_input.decodeLongElement_994anb_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp26_input.decodeLongElement_994anb_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp26_input.decodeIntElement_941u6a_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp26_input.decodeIntElement_941u6a_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + tmp16_local12 = tmp26_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + tmp17_local13 = tmp26_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 13, $serializer_getInstance_1072(), tmp17_local13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + tmp18_local14 = tmp26_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 14, tmp27_cached[14], tmp18_local14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + tmp19_local15 = tmp26_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + tmp20_local16 = tmp26_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 16, $serializer_getInstance_1075(), tmp20_local16); + tmp3_bitMask0 = tmp3_bitMask0 | 65536; + tmp21_local17 = tmp26_input.decodeStringElement_3oenpg_k$(tmp0_desc, 17); + tmp3_bitMask0 = tmp3_bitMask0 | 131072; + tmp22_local18 = tmp26_input.decodeLongElement_994anb_k$(tmp0_desc, 18); + tmp3_bitMask0 = tmp3_bitMask0 | 262144; + tmp23_local19 = tmp26_input.decodeStringElement_3oenpg_k$(tmp0_desc, 19); + tmp3_bitMask0 = tmp3_bitMask0 | 524288; + tmp24_local20 = tmp26_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 20, tmp27_cached[20], tmp24_local20); + tmp3_bitMask0 = tmp3_bitMask0 | 1048576; + tmp25_local21 = tmp26_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 21); + tmp3_bitMask0 = tmp3_bitMask0 | 2097152; + } else + while (tmp1_flag) { + tmp2_index = tmp26_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp26_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp26_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp26_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp26_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp26_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp26_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp26_input.decodeLongElement_994anb_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp26_input.decodeLongElement_994anb_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp26_input.decodeLongElement_994anb_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp26_input.decodeLongElement_994anb_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp26_input.decodeIntElement_941u6a_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp26_input.decodeIntElement_941u6a_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + case 12: + tmp16_local12 = tmp26_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + break; + case 13: + tmp17_local13 = tmp26_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 13, $serializer_getInstance_1072(), tmp17_local13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + break; + case 14: + tmp18_local14 = tmp26_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 14, tmp27_cached[14], tmp18_local14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + break; + case 15: + tmp19_local15 = tmp26_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + break; + case 16: + tmp20_local16 = tmp26_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 16, $serializer_getInstance_1075(), tmp20_local16); + tmp3_bitMask0 = tmp3_bitMask0 | 65536; + break; + case 17: + tmp21_local17 = tmp26_input.decodeStringElement_3oenpg_k$(tmp0_desc, 17); + tmp3_bitMask0 = tmp3_bitMask0 | 131072; + break; + case 18: + tmp22_local18 = tmp26_input.decodeLongElement_994anb_k$(tmp0_desc, 18); + tmp3_bitMask0 = tmp3_bitMask0 | 262144; + break; + case 19: + tmp23_local19 = tmp26_input.decodeStringElement_3oenpg_k$(tmp0_desc, 19); + tmp3_bitMask0 = tmp3_bitMask0 | 524288; + break; + case 20: + tmp24_local20 = tmp26_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 20, tmp27_cached[20], tmp24_local20); + tmp3_bitMask0 = tmp3_bitMask0 | 1048576; + break; + case 21: + tmp25_local21 = tmp26_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 21); + tmp3_bitMask0 = tmp3_bitMask0 | 2097152; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp26_input.endStructure_1xqz0n_k$(tmp0_desc); + return KMdlDynPGC.new_com_bapis_bilibili_app_dynamic_v2_KMdlDynPGC_q3rtg8_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, tmp18_local14, tmp19_local15, tmp20_local16, tmp21_local17, tmp22_local18, tmp23_local19, tmp24_local20, tmp25_local21, null); + } + serialize_gv8ln0_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_1087().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.cover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.uri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.uri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.coverLeftText1 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.coverLeftText1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.coverLeftText2 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.coverLeftText2); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.coverLeftText3 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.coverLeftText3); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !value.cid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 6, value.cid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !value.seasonId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 7, value.seasonId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !value.epid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 8, value.epid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !value.aid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 9, value.aid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.mediaType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 10, value.mediaType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.subType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 11, value.subType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !(value.isPreview === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 12, value.isPreview); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 13) ? true : !(value.dimension == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 13, $serializer_getInstance_1072(), value.dimension); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 14) ? true : !equals(value.badge, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 14, tmp2_cached[14], value.badge); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 15) ? true : !(value.canPlay === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 15, value.canPlay); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 16) ? true : !(value.season == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 16, $serializer_getInstance_1075(), value.season); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 17) ? true : !(value.playIcon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 17, value.playIcon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 18) ? true : !value.duration.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 18, value.duration); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 19) ? true : !(value.jumpUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 19, value.jumpUrl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 20) ? true : !equals(value.badgeCategory, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 20, tmp2_cached[20], value.badgeCategory); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 21) ? true : !(value.isFeature === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 21, value.isFeature); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_gv8ln0_k$(encoder, value instanceof KMdlDynPGC ? value : THROW_CCE()); + } + } + class KMdlDynPGC { + constructor(title, cover, uri, coverLeftText1, coverLeftText2, coverLeftText3, cid, seasonId, epid, aid, mediaType, subType, isPreview, dimension, badge, canPlay, season, playIcon, duration, jumpUrl, badgeCategory, isFeature) { + Companion_getInstance_1087(); + title = title === VOID ? '' : title; + cover = cover === VOID ? '' : cover; + uri = uri === VOID ? '' : uri; + coverLeftText1 = coverLeftText1 === VOID ? '' : coverLeftText1; + coverLeftText2 = coverLeftText2 === VOID ? '' : coverLeftText2; + coverLeftText3 = coverLeftText3 === VOID ? '' : coverLeftText3; + cid = cid === VOID ? new Long(0, 0) : cid; + seasonId = seasonId === VOID ? new Long(0, 0) : seasonId; + epid = epid === VOID ? new Long(0, 0) : epid; + aid = aid === VOID ? new Long(0, 0) : aid; + mediaType = mediaType === VOID ? 0 : mediaType; + subType = subType === VOID ? 0 : subType; + isPreview = isPreview === VOID ? false : isPreview; + dimension = dimension === VOID ? null : dimension; + badge = badge === VOID ? emptyList() : badge; + canPlay = canPlay === VOID ? false : canPlay; + season = season === VOID ? null : season; + playIcon = playIcon === VOID ? '' : playIcon; + duration = duration === VOID ? new Long(0, 0) : duration; + jumpUrl = jumpUrl === VOID ? '' : jumpUrl; + badgeCategory = badgeCategory === VOID ? emptyList() : badgeCategory; + isFeature = isFeature === VOID ? false : isFeature; + this.title = title; + this.cover = cover; + this.uri = uri; + this.coverLeftText1 = coverLeftText1; + this.coverLeftText2 = coverLeftText2; + this.coverLeftText3 = coverLeftText3; + this.cid = cid; + this.seasonId = seasonId; + this.epid = epid; + this.aid = aid; + this.mediaType = mediaType; + this.subType = subType; + this.isPreview = isPreview; + this.dimension = dimension; + this.badge = badge; + this.canPlay = canPlay; + this.season = season; + this.playIcon = playIcon; + this.duration = duration; + this.jumpUrl = jumpUrl; + this.badgeCategory = badgeCategory; + this.isFeature = isFeature; + } + get_title_iz32un_k$() { + return this.title; + } + get_cover_ipug0e_k$() { + return this.cover; + } + get_uri_18iuil_k$() { + return this.uri; + } + get_coverLeftText1_ck8hkf_k$() { + return this.coverLeftText1; + } + get_coverLeftText2_ck8hkg_k$() { + return this.coverLeftText2; + } + get_coverLeftText3_ck8hkh_k$() { + return this.coverLeftText3; + } + get_cid_18j82z_k$() { + return this.cid; + } + get_seasonId_h33f15_k$() { + return this.seasonId; + } + get_epid_wolirz_k$() { + return this.epid; + } + get_aid_18j9kd_k$() { + return this.aid; + } + get_mediaType_r47omj_k$() { + return this.mediaType; + } + get_subType_tmwy1b_k$() { + return this.subType; + } + get_isPreview_6c3nmz_k$() { + return this.isPreview; + } + get_dimension_9lf48z_k$() { + return this.dimension; + } + get_badge_ip1cai_k$() { + return this.badge; + } + get_canPlay_acszln_k$() { + return this.canPlay; + } + get_season_jf68ks_k$() { + return this.season; + } + get_playIcon_qkju2_k$() { + return this.playIcon; + } + get_duration_6a6kpp_k$() { + return this.duration; + } + get_jumpUrl_jhqiko_k$() { + return this.jumpUrl; + } + get_badgeCategory_cfv2c8_k$() { + return this.badgeCategory; + } + get_isFeature_h9no71_k$() { + return this.isFeature; + } + mediaTypeEnum() { + return Companion_getInstance_1059().fromValue(this.mediaType); + } + subTypeEnum() { + return Companion_getInstance_1063().fromValue(this.subType); + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.cover; + } + component3_7eebsa_k$() { + return this.uri; + } + component4_7eebs9_k$() { + return this.coverLeftText1; + } + component5_7eebs8_k$() { + return this.coverLeftText2; + } + component6_7eebs7_k$() { + return this.coverLeftText3; + } + component7_7eebs6_k$() { + return this.cid; + } + component8_7eebs5_k$() { + return this.seasonId; + } + component9_7eebs4_k$() { + return this.epid; + } + component10_gazzfo_k$() { + return this.aid; + } + component11_gazzfn_k$() { + return this.mediaType; + } + component12_gazzfm_k$() { + return this.subType; + } + component13_gazzfl_k$() { + return this.isPreview; + } + component14_gazzfk_k$() { + return this.dimension; + } + component15_gazzfj_k$() { + return this.badge; + } + component16_gazzfi_k$() { + return this.canPlay; + } + component17_gazzfh_k$() { + return this.season; + } + component18_gazzfg_k$() { + return this.playIcon; + } + component19_gazzff_k$() { + return this.duration; + } + component20_gazzet_k$() { + return this.jumpUrl; + } + component21_gazzes_k$() { + return this.badgeCategory; + } + component22_gazzer_k$() { + return this.isFeature; + } + copy_744kzv_k$(title, cover, uri, coverLeftText1, coverLeftText2, coverLeftText3, cid, seasonId, epid, aid, mediaType, subType, isPreview, dimension, badge, canPlay, season, playIcon, duration, jumpUrl, badgeCategory, isFeature) { + return new KMdlDynPGC(title, cover, uri, coverLeftText1, coverLeftText2, coverLeftText3, cid, seasonId, epid, aid, mediaType, subType, isPreview, dimension, badge, canPlay, season, playIcon, duration, jumpUrl, badgeCategory, isFeature); + } + copy(title, cover, uri, coverLeftText1, coverLeftText2, coverLeftText3, cid, seasonId, epid, aid, mediaType, subType, isPreview, dimension, badge, canPlay, season, playIcon, duration, jumpUrl, badgeCategory, isFeature, $super) { + title = title === VOID ? this.title : title; + cover = cover === VOID ? this.cover : cover; + uri = uri === VOID ? this.uri : uri; + coverLeftText1 = coverLeftText1 === VOID ? this.coverLeftText1 : coverLeftText1; + coverLeftText2 = coverLeftText2 === VOID ? this.coverLeftText2 : coverLeftText2; + coverLeftText3 = coverLeftText3 === VOID ? this.coverLeftText3 : coverLeftText3; + cid = cid === VOID ? this.cid : cid; + seasonId = seasonId === VOID ? this.seasonId : seasonId; + epid = epid === VOID ? this.epid : epid; + aid = aid === VOID ? this.aid : aid; + mediaType = mediaType === VOID ? this.mediaType : mediaType; + subType = subType === VOID ? this.subType : subType; + isPreview = isPreview === VOID ? this.isPreview : isPreview; + dimension = dimension === VOID ? this.dimension : dimension; + badge = badge === VOID ? this.badge : badge; + canPlay = canPlay === VOID ? this.canPlay : canPlay; + season = season === VOID ? this.season : season; + playIcon = playIcon === VOID ? this.playIcon : playIcon; + duration = duration === VOID ? this.duration : duration; + jumpUrl = jumpUrl === VOID ? this.jumpUrl : jumpUrl; + badgeCategory = badgeCategory === VOID ? this.badgeCategory : badgeCategory; + isFeature = isFeature === VOID ? this.isFeature : isFeature; + return this.copy_744kzv_k$(title, cover, uri, coverLeftText1, coverLeftText2, coverLeftText3, cid, seasonId, epid, aid, mediaType, subType, isPreview, dimension, badge, canPlay, season, playIcon, duration, jumpUrl, badgeCategory, isFeature); + } + toString() { + return 'KMdlDynPGC(title=' + this.title + ', cover=' + this.cover + ', uri=' + this.uri + ', coverLeftText1=' + this.coverLeftText1 + ', coverLeftText2=' + this.coverLeftText2 + ', coverLeftText3=' + this.coverLeftText3 + ', cid=' + this.cid.toString() + ', seasonId=' + this.seasonId.toString() + ', epid=' + this.epid.toString() + ', aid=' + this.aid.toString() + ', mediaType=' + this.mediaType + ', subType=' + this.subType + ', isPreview=' + this.isPreview + ', dimension=' + this.dimension + ', badge=' + this.badge + ', canPlay=' + this.canPlay + ', season=' + this.season + ', playIcon=' + this.playIcon + ', duration=' + this.duration.toString() + ', jumpUrl=' + this.jumpUrl + ', badgeCategory=' + this.badgeCategory + ', isFeature=' + this.isFeature + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.cover) | 0; + result = imul(result, 31) + getStringHashCode(this.uri) | 0; + result = imul(result, 31) + getStringHashCode(this.coverLeftText1) | 0; + result = imul(result, 31) + getStringHashCode(this.coverLeftText2) | 0; + result = imul(result, 31) + getStringHashCode(this.coverLeftText3) | 0; + result = imul(result, 31) + this.cid.hashCode() | 0; + result = imul(result, 31) + this.seasonId.hashCode() | 0; + result = imul(result, 31) + this.epid.hashCode() | 0; + result = imul(result, 31) + this.aid.hashCode() | 0; + result = imul(result, 31) + this.mediaType | 0; + result = imul(result, 31) + this.subType | 0; + result = imul(result, 31) + getBooleanHashCode(this.isPreview) | 0; + result = imul(result, 31) + (this.dimension == null ? 0 : this.dimension.hashCode()) | 0; + result = imul(result, 31) + hashCode(this.badge) | 0; + result = imul(result, 31) + getBooleanHashCode(this.canPlay) | 0; + result = imul(result, 31) + (this.season == null ? 0 : this.season.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.playIcon) | 0; + result = imul(result, 31) + this.duration.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.jumpUrl) | 0; + result = imul(result, 31) + hashCode(this.badgeCategory) | 0; + result = imul(result, 31) + getBooleanHashCode(this.isFeature) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KMdlDynPGC)) + return false; + var tmp0_other_with_cast = other instanceof KMdlDynPGC ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + if (!(this.uri === tmp0_other_with_cast.uri)) + return false; + if (!(this.coverLeftText1 === tmp0_other_with_cast.coverLeftText1)) + return false; + if (!(this.coverLeftText2 === tmp0_other_with_cast.coverLeftText2)) + return false; + if (!(this.coverLeftText3 === tmp0_other_with_cast.coverLeftText3)) + return false; + if (!this.cid.equals(tmp0_other_with_cast.cid)) + return false; + if (!this.seasonId.equals(tmp0_other_with_cast.seasonId)) + return false; + if (!this.epid.equals(tmp0_other_with_cast.epid)) + return false; + if (!this.aid.equals(tmp0_other_with_cast.aid)) + return false; + if (!(this.mediaType === tmp0_other_with_cast.mediaType)) + return false; + if (!(this.subType === tmp0_other_with_cast.subType)) + return false; + if (!(this.isPreview === tmp0_other_with_cast.isPreview)) + return false; + if (!equals(this.dimension, tmp0_other_with_cast.dimension)) + return false; + if (!equals(this.badge, tmp0_other_with_cast.badge)) + return false; + if (!(this.canPlay === tmp0_other_with_cast.canPlay)) + return false; + if (!equals(this.season, tmp0_other_with_cast.season)) + return false; + if (!(this.playIcon === tmp0_other_with_cast.playIcon)) + return false; + if (!this.duration.equals(tmp0_other_with_cast.duration)) + return false; + if (!(this.jumpUrl === tmp0_other_with_cast.jumpUrl)) + return false; + if (!equals(this.badgeCategory, tmp0_other_with_cast.badgeCategory)) + return false; + if (!(this.isFeature === tmp0_other_with_cast.isFeature)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KMdlDynPGC_q3rtg8_k$(seen1, title, cover, uri, coverLeftText1, coverLeftText2, coverLeftText3, cid, seasonId, epid, aid, mediaType, subType, isPreview, dimension, badge, canPlay, season, playIcon, duration, jumpUrl, badgeCategory, isFeature, serializationConstructorMarker) { + Companion_getInstance_1087(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1074().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.cover = ''; + else + $this.cover = cover; + if (0 === (seen1 & 4)) + $this.uri = ''; + else + $this.uri = uri; + if (0 === (seen1 & 8)) + $this.coverLeftText1 = ''; + else + $this.coverLeftText1 = coverLeftText1; + if (0 === (seen1 & 16)) + $this.coverLeftText2 = ''; + else + $this.coverLeftText2 = coverLeftText2; + if (0 === (seen1 & 32)) + $this.coverLeftText3 = ''; + else + $this.coverLeftText3 = coverLeftText3; + if (0 === (seen1 & 64)) + $this.cid = new Long(0, 0); + else + $this.cid = cid; + if (0 === (seen1 & 128)) + $this.seasonId = new Long(0, 0); + else + $this.seasonId = seasonId; + if (0 === (seen1 & 256)) + $this.epid = new Long(0, 0); + else + $this.epid = epid; + if (0 === (seen1 & 512)) + $this.aid = new Long(0, 0); + else + $this.aid = aid; + if (0 === (seen1 & 1024)) + $this.mediaType = 0; + else + $this.mediaType = mediaType; + if (0 === (seen1 & 2048)) + $this.subType = 0; + else + $this.subType = subType; + if (0 === (seen1 & 4096)) + $this.isPreview = false; + else + $this.isPreview = isPreview; + if (0 === (seen1 & 8192)) + $this.dimension = null; + else + $this.dimension = dimension; + if (0 === (seen1 & 16384)) + $this.badge = emptyList(); + else + $this.badge = badge; + if (0 === (seen1 & 32768)) + $this.canPlay = false; + else + $this.canPlay = canPlay; + if (0 === (seen1 & 65536)) + $this.season = null; + else + $this.season = season; + if (0 === (seen1 & 131072)) + $this.playIcon = ''; + else + $this.playIcon = playIcon; + if (0 === (seen1 & 262144)) + $this.duration = new Long(0, 0); + else + $this.duration = duration; + if (0 === (seen1 & 524288)) + $this.jumpUrl = ''; + else + $this.jumpUrl = jumpUrl; + if (0 === (seen1 & 1048576)) + $this.badgeCategory = emptyList(); + else + $this.badgeCategory = badgeCategory; + if (0 === (seen1 & 2097152)) + $this.isFeature = false; + else + $this.isFeature = isFeature; + return $this; + } + } + class Companion_1088 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.PGCSeason'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1075(); + } + } + class $serializer_1075 { + constructor() { + $serializer_instance_1075 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KPGCSeason', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('isFinish', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = null; + var tmp6_local2 = 0; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KPGCSeason.new_com_bapis_bilibili_app_dynamic_v2_KPGCSeason_txxmgg_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_p4k7ot_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.isFinish === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.isFinish); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.type === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.type); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_p4k7ot_k$(encoder, value instanceof KPGCSeason ? value : THROW_CCE()); + } + } + class KPGCSeason { + constructor(isFinish, title, type) { + Companion_instance_1088; + isFinish = isFinish === VOID ? 0 : isFinish; + title = title === VOID ? '' : title; + type = type === VOID ? 0 : type; + this.isFinish = isFinish; + this.title = title; + this.type = type; + } + get_isFinish_taph5y_k$() { + return this.isFinish; + } + get_title_iz32un_k$() { + return this.title; + } + get_type_wovaf7_k$() { + return this.type; + } + component1_7eebsc_k$() { + return this.isFinish; + } + component2_7eebsb_k$() { + return this.title; + } + component3_7eebsa_k$() { + return this.type; + } + copy_jqwgyn_k$(isFinish, title, type) { + return new KPGCSeason(isFinish, title, type); + } + copy(isFinish, title, type, $super) { + isFinish = isFinish === VOID ? this.isFinish : isFinish; + title = title === VOID ? this.title : title; + type = type === VOID ? this.type : type; + return this.copy_jqwgyn_k$(isFinish, title, type); + } + toString() { + return 'KPGCSeason(isFinish=' + this.isFinish + ', title=' + this.title + ', type=' + this.type + ')'; + } + hashCode() { + var result = this.isFinish; + result = imul(result, 31) + getStringHashCode(this.title) | 0; + result = imul(result, 31) + this.type | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KPGCSeason)) + return false; + var tmp0_other_with_cast = other instanceof KPGCSeason ? other : THROW_CCE(); + if (!(this.isFinish === tmp0_other_with_cast.isFinish)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.type === tmp0_other_with_cast.type)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KPGCSeason_txxmgg_k$(seen1, isFinish, title, type, serializationConstructorMarker) { + Companion_instance_1088; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1075().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.isFinish = 0; + else + $this.isFinish = isFinish; + if (0 === (seen1 & 2)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 4)) + $this.type = 0; + else + $this.type = type; + return $this; + } + } + class Companion_1089 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.MdlDynCourSeason'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1076(); + } + } + class $serializer_1076 { + constructor() { + $serializer_instance_1076 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KMdlDynCourSeason', this, 14); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('uri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('text1', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('desc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('badge', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('playIcon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('canPlay', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('isPreview', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('avid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('cid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('epid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + tmp0_serialDesc.addElement_5pzumi_k$('duration', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(13)); + tmp0_serialDesc.addElement_5pzumi_k$('seasonId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(14)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_1073()), StringSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = false; + var tmp12_local8 = false; + var tmp13_local9 = new Long(0, 0); + var tmp14_local10 = new Long(0, 0); + var tmp15_local11 = new Long(0, 0); + var tmp16_local12 = new Long(0, 0); + var tmp17_local13 = new Long(0, 0); + var tmp18_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp18_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_1073(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp18_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp18_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + tmp16_local12 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + tmp17_local13 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + } else + while (tmp1_flag) { + tmp2_index = tmp18_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_1073(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp18_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp18_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + case 12: + tmp16_local12 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + break; + case 13: + tmp17_local13 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp18_input.endStructure_1xqz0n_k$(tmp0_desc); + return KMdlDynCourSeason.new_com_bapis_bilibili_app_dynamic_v2_KMdlDynCourSeason_sd9fg_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, null); + } + serialize_p29l52_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.cover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.uri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.uri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.text1 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.text1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.desc === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.desc); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.badge == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 5, $serializer_getInstance_1073(), value.badge); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.playIcon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.playIcon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.canPlay === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 7, value.canPlay); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.isPreview === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 8, value.isPreview); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !value.avid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 9, value.avid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !value.cid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 10, value.cid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !value.epid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 11, value.epid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !value.duration.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 12, value.duration); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 13) ? true : !value.seasonId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 13, value.seasonId); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_p29l52_k$(encoder, value instanceof KMdlDynCourSeason ? value : THROW_CCE()); + } + } + class KMdlDynCourSeason { + constructor(title, cover, uri, text1, desc, badge, playIcon, canPlay, isPreview, avid, cid, epid, duration, seasonId) { + Companion_instance_1089; + title = title === VOID ? '' : title; + cover = cover === VOID ? '' : cover; + uri = uri === VOID ? '' : uri; + text1 = text1 === VOID ? '' : text1; + desc = desc === VOID ? '' : desc; + badge = badge === VOID ? null : badge; + playIcon = playIcon === VOID ? '' : playIcon; + canPlay = canPlay === VOID ? false : canPlay; + isPreview = isPreview === VOID ? false : isPreview; + avid = avid === VOID ? new Long(0, 0) : avid; + cid = cid === VOID ? new Long(0, 0) : cid; + epid = epid === VOID ? new Long(0, 0) : epid; + duration = duration === VOID ? new Long(0, 0) : duration; + seasonId = seasonId === VOID ? new Long(0, 0) : seasonId; + this.title = title; + this.cover = cover; + this.uri = uri; + this.text1 = text1; + this.desc = desc; + this.badge = badge; + this.playIcon = playIcon; + this.canPlay = canPlay; + this.isPreview = isPreview; + this.avid = avid; + this.cid = cid; + this.epid = epid; + this.duration = duration; + this.seasonId = seasonId; + } + get_title_iz32un_k$() { + return this.title; + } + get_cover_ipug0e_k$() { + return this.cover; + } + get_uri_18iuil_k$() { + return this.uri; + } + get_text1_iz0m0r_k$() { + return this.text1; + } + get_desc_woknve_k$() { + return this.desc; + } + get_badge_ip1cai_k$() { + return this.badge; + } + get_playIcon_qkju2_k$() { + return this.playIcon; + } + get_canPlay_acszln_k$() { + return this.canPlay; + } + get_isPreview_6c3nmz_k$() { + return this.isPreview; + } + get_avid_woj3a1_k$() { + return this.avid; + } + get_cid_18j82z_k$() { + return this.cid; + } + get_epid_wolirz_k$() { + return this.epid; + } + get_duration_6a6kpp_k$() { + return this.duration; + } + get_seasonId_h33f15_k$() { + return this.seasonId; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.cover; + } + component3_7eebsa_k$() { + return this.uri; + } + component4_7eebs9_k$() { + return this.text1; + } + component5_7eebs8_k$() { + return this.desc; + } + component6_7eebs7_k$() { + return this.badge; + } + component7_7eebs6_k$() { + return this.playIcon; + } + component8_7eebs5_k$() { + return this.canPlay; + } + component9_7eebs4_k$() { + return this.isPreview; + } + component10_gazzfo_k$() { + return this.avid; + } + component11_gazzfn_k$() { + return this.cid; + } + component12_gazzfm_k$() { + return this.epid; + } + component13_gazzfl_k$() { + return this.duration; + } + component14_gazzfk_k$() { + return this.seasonId; + } + copy_cqtyjn_k$(title, cover, uri, text1, desc, badge, playIcon, canPlay, isPreview, avid, cid, epid, duration, seasonId) { + return new KMdlDynCourSeason(title, cover, uri, text1, desc, badge, playIcon, canPlay, isPreview, avid, cid, epid, duration, seasonId); + } + copy(title, cover, uri, text1, desc, badge, playIcon, canPlay, isPreview, avid, cid, epid, duration, seasonId, $super) { + title = title === VOID ? this.title : title; + cover = cover === VOID ? this.cover : cover; + uri = uri === VOID ? this.uri : uri; + text1 = text1 === VOID ? this.text1 : text1; + desc = desc === VOID ? this.desc : desc; + badge = badge === VOID ? this.badge : badge; + playIcon = playIcon === VOID ? this.playIcon : playIcon; + canPlay = canPlay === VOID ? this.canPlay : canPlay; + isPreview = isPreview === VOID ? this.isPreview : isPreview; + avid = avid === VOID ? this.avid : avid; + cid = cid === VOID ? this.cid : cid; + epid = epid === VOID ? this.epid : epid; + duration = duration === VOID ? this.duration : duration; + seasonId = seasonId === VOID ? this.seasonId : seasonId; + return this.copy_cqtyjn_k$(title, cover, uri, text1, desc, badge, playIcon, canPlay, isPreview, avid, cid, epid, duration, seasonId); + } + toString() { + return 'KMdlDynCourSeason(title=' + this.title + ', cover=' + this.cover + ', uri=' + this.uri + ', text1=' + this.text1 + ', desc=' + this.desc + ', badge=' + this.badge + ', playIcon=' + this.playIcon + ', canPlay=' + this.canPlay + ', isPreview=' + this.isPreview + ', avid=' + this.avid.toString() + ', cid=' + this.cid.toString() + ', epid=' + this.epid.toString() + ', duration=' + this.duration.toString() + ', seasonId=' + this.seasonId.toString() + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.cover) | 0; + result = imul(result, 31) + getStringHashCode(this.uri) | 0; + result = imul(result, 31) + getStringHashCode(this.text1) | 0; + result = imul(result, 31) + getStringHashCode(this.desc) | 0; + result = imul(result, 31) + (this.badge == null ? 0 : this.badge.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.playIcon) | 0; + result = imul(result, 31) + getBooleanHashCode(this.canPlay) | 0; + result = imul(result, 31) + getBooleanHashCode(this.isPreview) | 0; + result = imul(result, 31) + this.avid.hashCode() | 0; + result = imul(result, 31) + this.cid.hashCode() | 0; + result = imul(result, 31) + this.epid.hashCode() | 0; + result = imul(result, 31) + this.duration.hashCode() | 0; + result = imul(result, 31) + this.seasonId.hashCode() | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KMdlDynCourSeason)) + return false; + var tmp0_other_with_cast = other instanceof KMdlDynCourSeason ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + if (!(this.uri === tmp0_other_with_cast.uri)) + return false; + if (!(this.text1 === tmp0_other_with_cast.text1)) + return false; + if (!(this.desc === tmp0_other_with_cast.desc)) + return false; + if (!equals(this.badge, tmp0_other_with_cast.badge)) + return false; + if (!(this.playIcon === tmp0_other_with_cast.playIcon)) + return false; + if (!(this.canPlay === tmp0_other_with_cast.canPlay)) + return false; + if (!(this.isPreview === tmp0_other_with_cast.isPreview)) + return false; + if (!this.avid.equals(tmp0_other_with_cast.avid)) + return false; + if (!this.cid.equals(tmp0_other_with_cast.cid)) + return false; + if (!this.epid.equals(tmp0_other_with_cast.epid)) + return false; + if (!this.duration.equals(tmp0_other_with_cast.duration)) + return false; + if (!this.seasonId.equals(tmp0_other_with_cast.seasonId)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KMdlDynCourSeason_sd9fg_k$(seen1, title, cover, uri, text1, desc, badge, playIcon, canPlay, isPreview, avid, cid, epid, duration, seasonId, serializationConstructorMarker) { + Companion_instance_1089; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1076().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.cover = ''; + else + $this.cover = cover; + if (0 === (seen1 & 4)) + $this.uri = ''; + else + $this.uri = uri; + if (0 === (seen1 & 8)) + $this.text1 = ''; + else + $this.text1 = text1; + if (0 === (seen1 & 16)) + $this.desc = ''; + else + $this.desc = desc; + if (0 === (seen1 & 32)) + $this.badge = null; + else + $this.badge = badge; + if (0 === (seen1 & 64)) + $this.playIcon = ''; + else + $this.playIcon = playIcon; + if (0 === (seen1 & 128)) + $this.canPlay = false; + else + $this.canPlay = canPlay; + if (0 === (seen1 & 256)) + $this.isPreview = false; + else + $this.isPreview = isPreview; + if (0 === (seen1 & 512)) + $this.avid = new Long(0, 0); + else + $this.avid = avid; + if (0 === (seen1 & 1024)) + $this.cid = new Long(0, 0); + else + $this.cid = cid; + if (0 === (seen1 & 2048)) + $this.epid = new Long(0, 0); + else + $this.epid = epid; + if (0 === (seen1 & 4096)) + $this.duration = new Long(0, 0); + else + $this.duration = duration; + if (0 === (seen1 & 8192)) + $this.seasonId = new Long(0, 0); + else + $this.seasonId = seasonId; + return $this; + } + } + class Companion_1090 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.MdlDynCourBatch'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1077(); + } + } + class $serializer_1077 { + constructor() { + $serializer_instance_1077 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KMdlDynCourBatch', this, 17); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('uri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('text1', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('text2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('badge', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('playIcon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('canPlay', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('isPreview', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('coverLeftText1', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('coverLeftText2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('coverLeftText3', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + tmp0_serialDesc.addElement_5pzumi_k$('avid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(13)); + tmp0_serialDesc.addElement_5pzumi_k$('cid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(14)); + tmp0_serialDesc.addElement_5pzumi_k$('epid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(15)); + tmp0_serialDesc.addElement_5pzumi_k$('duration', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(16)); + tmp0_serialDesc.addElement_5pzumi_k$('seasonId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(17)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_1073()), StringSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = false; + var tmp12_local8 = false; + var tmp13_local9 = null; + var tmp14_local10 = null; + var tmp15_local11 = null; + var tmp16_local12 = new Long(0, 0); + var tmp17_local13 = new Long(0, 0); + var tmp18_local14 = new Long(0, 0); + var tmp19_local15 = new Long(0, 0); + var tmp20_local16 = new Long(0, 0); + var tmp21_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp21_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp21_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_1073(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp21_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp21_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + tmp16_local12 = tmp21_input.decodeLongElement_994anb_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + tmp17_local13 = tmp21_input.decodeLongElement_994anb_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + tmp18_local14 = tmp21_input.decodeLongElement_994anb_k$(tmp0_desc, 14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + tmp19_local15 = tmp21_input.decodeLongElement_994anb_k$(tmp0_desc, 15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + tmp20_local16 = tmp21_input.decodeLongElement_994anb_k$(tmp0_desc, 16); + tmp3_bitMask0 = tmp3_bitMask0 | 65536; + } else + while (tmp1_flag) { + tmp2_index = tmp21_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp21_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_1073(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp21_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp21_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + case 12: + tmp16_local12 = tmp21_input.decodeLongElement_994anb_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + break; + case 13: + tmp17_local13 = tmp21_input.decodeLongElement_994anb_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + break; + case 14: + tmp18_local14 = tmp21_input.decodeLongElement_994anb_k$(tmp0_desc, 14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + break; + case 15: + tmp19_local15 = tmp21_input.decodeLongElement_994anb_k$(tmp0_desc, 15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + break; + case 16: + tmp20_local16 = tmp21_input.decodeLongElement_994anb_k$(tmp0_desc, 16); + tmp3_bitMask0 = tmp3_bitMask0 | 65536; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp21_input.endStructure_1xqz0n_k$(tmp0_desc); + return KMdlDynCourBatch.new_com_bapis_bilibili_app_dynamic_v2_KMdlDynCourBatch_3is3e2_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, tmp18_local14, tmp19_local15, tmp20_local16, null); + } + serialize_guaimp_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.cover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.uri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.uri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.text1 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.text1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.text2 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.text2); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.badge == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 5, $serializer_getInstance_1073(), value.badge); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.playIcon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.playIcon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.canPlay === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 7, value.canPlay); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.isPreview === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 8, value.isPreview); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.coverLeftText1 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 9, value.coverLeftText1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.coverLeftText2 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 10, value.coverLeftText2); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.coverLeftText3 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 11, value.coverLeftText3); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !value.avid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 12, value.avid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 13) ? true : !value.cid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 13, value.cid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 14) ? true : !value.epid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 14, value.epid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 15) ? true : !value.duration.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 15, value.duration); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 16) ? true : !value.seasonId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 16, value.seasonId); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_guaimp_k$(encoder, value instanceof KMdlDynCourBatch ? value : THROW_CCE()); + } + } + class KMdlDynCourBatch { + constructor(title, cover, uri, text1, text2, badge, playIcon, canPlay, isPreview, coverLeftText1, coverLeftText2, coverLeftText3, avid, cid, epid, duration, seasonId) { + Companion_instance_1090; + title = title === VOID ? '' : title; + cover = cover === VOID ? '' : cover; + uri = uri === VOID ? '' : uri; + text1 = text1 === VOID ? '' : text1; + text2 = text2 === VOID ? '' : text2; + badge = badge === VOID ? null : badge; + playIcon = playIcon === VOID ? '' : playIcon; + canPlay = canPlay === VOID ? false : canPlay; + isPreview = isPreview === VOID ? false : isPreview; + coverLeftText1 = coverLeftText1 === VOID ? '' : coverLeftText1; + coverLeftText2 = coverLeftText2 === VOID ? '' : coverLeftText2; + coverLeftText3 = coverLeftText3 === VOID ? '' : coverLeftText3; + avid = avid === VOID ? new Long(0, 0) : avid; + cid = cid === VOID ? new Long(0, 0) : cid; + epid = epid === VOID ? new Long(0, 0) : epid; + duration = duration === VOID ? new Long(0, 0) : duration; + seasonId = seasonId === VOID ? new Long(0, 0) : seasonId; + this.title = title; + this.cover = cover; + this.uri = uri; + this.text1 = text1; + this.text2 = text2; + this.badge = badge; + this.playIcon = playIcon; + this.canPlay = canPlay; + this.isPreview = isPreview; + this.coverLeftText1 = coverLeftText1; + this.coverLeftText2 = coverLeftText2; + this.coverLeftText3 = coverLeftText3; + this.avid = avid; + this.cid = cid; + this.epid = epid; + this.duration = duration; + this.seasonId = seasonId; + } + get_title_iz32un_k$() { + return this.title; + } + get_cover_ipug0e_k$() { + return this.cover; + } + get_uri_18iuil_k$() { + return this.uri; + } + get_text1_iz0m0r_k$() { + return this.text1; + } + get_text2_iz0m0s_k$() { + return this.text2; + } + get_badge_ip1cai_k$() { + return this.badge; + } + get_playIcon_qkju2_k$() { + return this.playIcon; + } + get_canPlay_acszln_k$() { + return this.canPlay; + } + get_isPreview_6c3nmz_k$() { + return this.isPreview; + } + get_coverLeftText1_ck8hkf_k$() { + return this.coverLeftText1; + } + get_coverLeftText2_ck8hkg_k$() { + return this.coverLeftText2; + } + get_coverLeftText3_ck8hkh_k$() { + return this.coverLeftText3; + } + get_avid_woj3a1_k$() { + return this.avid; + } + get_cid_18j82z_k$() { + return this.cid; + } + get_epid_wolirz_k$() { + return this.epid; + } + get_duration_6a6kpp_k$() { + return this.duration; + } + get_seasonId_h33f15_k$() { + return this.seasonId; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.cover; + } + component3_7eebsa_k$() { + return this.uri; + } + component4_7eebs9_k$() { + return this.text1; + } + component5_7eebs8_k$() { + return this.text2; + } + component6_7eebs7_k$() { + return this.badge; + } + component7_7eebs6_k$() { + return this.playIcon; + } + component8_7eebs5_k$() { + return this.canPlay; + } + component9_7eebs4_k$() { + return this.isPreview; + } + component10_gazzfo_k$() { + return this.coverLeftText1; + } + component11_gazzfn_k$() { + return this.coverLeftText2; + } + component12_gazzfm_k$() { + return this.coverLeftText3; + } + component13_gazzfl_k$() { + return this.avid; + } + component14_gazzfk_k$() { + return this.cid; + } + component15_gazzfj_k$() { + return this.epid; + } + component16_gazzfi_k$() { + return this.duration; + } + component17_gazzfh_k$() { + return this.seasonId; + } + copy_cei84j_k$(title, cover, uri, text1, text2, badge, playIcon, canPlay, isPreview, coverLeftText1, coverLeftText2, coverLeftText3, avid, cid, epid, duration, seasonId) { + return new KMdlDynCourBatch(title, cover, uri, text1, text2, badge, playIcon, canPlay, isPreview, coverLeftText1, coverLeftText2, coverLeftText3, avid, cid, epid, duration, seasonId); + } + copy(title, cover, uri, text1, text2, badge, playIcon, canPlay, isPreview, coverLeftText1, coverLeftText2, coverLeftText3, avid, cid, epid, duration, seasonId, $super) { + title = title === VOID ? this.title : title; + cover = cover === VOID ? this.cover : cover; + uri = uri === VOID ? this.uri : uri; + text1 = text1 === VOID ? this.text1 : text1; + text2 = text2 === VOID ? this.text2 : text2; + badge = badge === VOID ? this.badge : badge; + playIcon = playIcon === VOID ? this.playIcon : playIcon; + canPlay = canPlay === VOID ? this.canPlay : canPlay; + isPreview = isPreview === VOID ? this.isPreview : isPreview; + coverLeftText1 = coverLeftText1 === VOID ? this.coverLeftText1 : coverLeftText1; + coverLeftText2 = coverLeftText2 === VOID ? this.coverLeftText2 : coverLeftText2; + coverLeftText3 = coverLeftText3 === VOID ? this.coverLeftText3 : coverLeftText3; + avid = avid === VOID ? this.avid : avid; + cid = cid === VOID ? this.cid : cid; + epid = epid === VOID ? this.epid : epid; + duration = duration === VOID ? this.duration : duration; + seasonId = seasonId === VOID ? this.seasonId : seasonId; + return this.copy_cei84j_k$(title, cover, uri, text1, text2, badge, playIcon, canPlay, isPreview, coverLeftText1, coverLeftText2, coverLeftText3, avid, cid, epid, duration, seasonId); + } + toString() { + return 'KMdlDynCourBatch(title=' + this.title + ', cover=' + this.cover + ', uri=' + this.uri + ', text1=' + this.text1 + ', text2=' + this.text2 + ', badge=' + this.badge + ', playIcon=' + this.playIcon + ', canPlay=' + this.canPlay + ', isPreview=' + this.isPreview + ', coverLeftText1=' + this.coverLeftText1 + ', coverLeftText2=' + this.coverLeftText2 + ', coverLeftText3=' + this.coverLeftText3 + ', avid=' + this.avid.toString() + ', cid=' + this.cid.toString() + ', epid=' + this.epid.toString() + ', duration=' + this.duration.toString() + ', seasonId=' + this.seasonId.toString() + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.cover) | 0; + result = imul(result, 31) + getStringHashCode(this.uri) | 0; + result = imul(result, 31) + getStringHashCode(this.text1) | 0; + result = imul(result, 31) + getStringHashCode(this.text2) | 0; + result = imul(result, 31) + (this.badge == null ? 0 : this.badge.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.playIcon) | 0; + result = imul(result, 31) + getBooleanHashCode(this.canPlay) | 0; + result = imul(result, 31) + getBooleanHashCode(this.isPreview) | 0; + result = imul(result, 31) + getStringHashCode(this.coverLeftText1) | 0; + result = imul(result, 31) + getStringHashCode(this.coverLeftText2) | 0; + result = imul(result, 31) + getStringHashCode(this.coverLeftText3) | 0; + result = imul(result, 31) + this.avid.hashCode() | 0; + result = imul(result, 31) + this.cid.hashCode() | 0; + result = imul(result, 31) + this.epid.hashCode() | 0; + result = imul(result, 31) + this.duration.hashCode() | 0; + result = imul(result, 31) + this.seasonId.hashCode() | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KMdlDynCourBatch)) + return false; + var tmp0_other_with_cast = other instanceof KMdlDynCourBatch ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + if (!(this.uri === tmp0_other_with_cast.uri)) + return false; + if (!(this.text1 === tmp0_other_with_cast.text1)) + return false; + if (!(this.text2 === tmp0_other_with_cast.text2)) + return false; + if (!equals(this.badge, tmp0_other_with_cast.badge)) + return false; + if (!(this.playIcon === tmp0_other_with_cast.playIcon)) + return false; + if (!(this.canPlay === tmp0_other_with_cast.canPlay)) + return false; + if (!(this.isPreview === tmp0_other_with_cast.isPreview)) + return false; + if (!(this.coverLeftText1 === tmp0_other_with_cast.coverLeftText1)) + return false; + if (!(this.coverLeftText2 === tmp0_other_with_cast.coverLeftText2)) + return false; + if (!(this.coverLeftText3 === tmp0_other_with_cast.coverLeftText3)) + return false; + if (!this.avid.equals(tmp0_other_with_cast.avid)) + return false; + if (!this.cid.equals(tmp0_other_with_cast.cid)) + return false; + if (!this.epid.equals(tmp0_other_with_cast.epid)) + return false; + if (!this.duration.equals(tmp0_other_with_cast.duration)) + return false; + if (!this.seasonId.equals(tmp0_other_with_cast.seasonId)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KMdlDynCourBatch_3is3e2_k$(seen1, title, cover, uri, text1, text2, badge, playIcon, canPlay, isPreview, coverLeftText1, coverLeftText2, coverLeftText3, avid, cid, epid, duration, seasonId, serializationConstructorMarker) { + Companion_instance_1090; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1077().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.cover = ''; + else + $this.cover = cover; + if (0 === (seen1 & 4)) + $this.uri = ''; + else + $this.uri = uri; + if (0 === (seen1 & 8)) + $this.text1 = ''; + else + $this.text1 = text1; + if (0 === (seen1 & 16)) + $this.text2 = ''; + else + $this.text2 = text2; + if (0 === (seen1 & 32)) + $this.badge = null; + else + $this.badge = badge; + if (0 === (seen1 & 64)) + $this.playIcon = ''; + else + $this.playIcon = playIcon; + if (0 === (seen1 & 128)) + $this.canPlay = false; + else + $this.canPlay = canPlay; + if (0 === (seen1 & 256)) + $this.isPreview = false; + else + $this.isPreview = isPreview; + if (0 === (seen1 & 512)) + $this.coverLeftText1 = ''; + else + $this.coverLeftText1 = coverLeftText1; + if (0 === (seen1 & 1024)) + $this.coverLeftText2 = ''; + else + $this.coverLeftText2 = coverLeftText2; + if (0 === (seen1 & 2048)) + $this.coverLeftText3 = ''; + else + $this.coverLeftText3 = coverLeftText3; + if (0 === (seen1 & 4096)) + $this.avid = new Long(0, 0); + else + $this.avid = avid; + if (0 === (seen1 & 8192)) + $this.cid = new Long(0, 0); + else + $this.cid = cid; + if (0 === (seen1 & 16384)) + $this.epid = new Long(0, 0); + else + $this.epid = epid; + if (0 === (seen1 & 32768)) + $this.duration = new Long(0, 0); + else + $this.duration = duration; + if (0 === (seen1 & 65536)) + $this.seasonId = new Long(0, 0); + else + $this.seasonId = seasonId; + return $this; + } + } + class Companion_1091 { + constructor() { + Companion_instance_1091 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer($serializer_getInstance_1079()), null, null, null, null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.MdlDynDraw'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1078(); + } + } + class $serializer_1078 { + constructor() { + $serializer_instance_1078 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KMdlDynDraw', this, 6); + tmp0_serialDesc.addElement_5pzumi_k$('items', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('uri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('id', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('isDrawFirst', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('isBigCover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('isArticleCover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_1091().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0], StringSerializer_getInstance(), LongSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = new Long(0, 0); + var tmp7_local3 = false; + var tmp8_local4 = false; + var tmp9_local5 = false; + var tmp10_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp11_cached = Companion_getInstance_1091().$childSerializers_1; + if (tmp10_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp10_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp11_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp10_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp10_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp10_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + } else + while (tmp1_flag) { + tmp2_index = tmp10_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp10_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp11_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp10_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp10_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp10_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp10_input.endStructure_1xqz0n_k$(tmp0_desc); + return KMdlDynDraw.new_com_bapis_bilibili_app_dynamic_v2_KMdlDynDraw_f7am4f_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); + } + serialize_20cu0u_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_1091().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.items, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.items); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.uri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.uri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.id.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.id); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.isDrawFirst === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 3, value.isDrawFirst); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.isBigCover === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 4, value.isBigCover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.isArticleCover === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 5, value.isArticleCover); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_20cu0u_k$(encoder, value instanceof KMdlDynDraw ? value : THROW_CCE()); + } + } + class KMdlDynDraw { + constructor(items, uri, id, isDrawFirst, isBigCover, isArticleCover) { + Companion_getInstance_1091(); + items = items === VOID ? emptyList() : items; + uri = uri === VOID ? '' : uri; + id = id === VOID ? new Long(0, 0) : id; + isDrawFirst = isDrawFirst === VOID ? false : isDrawFirst; + isBigCover = isBigCover === VOID ? false : isBigCover; + isArticleCover = isArticleCover === VOID ? false : isArticleCover; + this.items = items; + this.uri = uri; + this.id = id; + this.isDrawFirst = isDrawFirst; + this.isBigCover = isBigCover; + this.isArticleCover = isArticleCover; + } + get_items_it823b_k$() { + return this.items; + } + get_uri_18iuil_k$() { + return this.uri; + } + get_id_kntnx8_k$() { + return this.id; + } + get_isDrawFirst_zf8z15_k$() { + return this.isDrawFirst; + } + get_isBigCover_lk636e_k$() { + return this.isBigCover; + } + get_isArticleCover_dth31w_k$() { + return this.isArticleCover; + } + component1_7eebsc_k$() { + return this.items; + } + component2_7eebsb_k$() { + return this.uri; + } + component3_7eebsa_k$() { + return this.id; + } + component4_7eebs9_k$() { + return this.isDrawFirst; + } + component5_7eebs8_k$() { + return this.isBigCover; + } + component6_7eebs7_k$() { + return this.isArticleCover; + } + copy_p2lc5k_k$(items, uri, id, isDrawFirst, isBigCover, isArticleCover) { + return new KMdlDynDraw(items, uri, id, isDrawFirst, isBigCover, isArticleCover); + } + copy(items, uri, id, isDrawFirst, isBigCover, isArticleCover, $super) { + items = items === VOID ? this.items : items; + uri = uri === VOID ? this.uri : uri; + id = id === VOID ? this.id : id; + isDrawFirst = isDrawFirst === VOID ? this.isDrawFirst : isDrawFirst; + isBigCover = isBigCover === VOID ? this.isBigCover : isBigCover; + isArticleCover = isArticleCover === VOID ? this.isArticleCover : isArticleCover; + return this.copy_p2lc5k_k$(items, uri, id, isDrawFirst, isBigCover, isArticleCover); + } + toString() { + return 'KMdlDynDraw(items=' + this.items + ', uri=' + this.uri + ', id=' + this.id.toString() + ', isDrawFirst=' + this.isDrawFirst + ', isBigCover=' + this.isBigCover + ', isArticleCover=' + this.isArticleCover + ')'; + } + hashCode() { + var result = hashCode(this.items); + result = imul(result, 31) + getStringHashCode(this.uri) | 0; + result = imul(result, 31) + this.id.hashCode() | 0; + result = imul(result, 31) + getBooleanHashCode(this.isDrawFirst) | 0; + result = imul(result, 31) + getBooleanHashCode(this.isBigCover) | 0; + result = imul(result, 31) + getBooleanHashCode(this.isArticleCover) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KMdlDynDraw)) + return false; + var tmp0_other_with_cast = other instanceof KMdlDynDraw ? other : THROW_CCE(); + if (!equals(this.items, tmp0_other_with_cast.items)) + return false; + if (!(this.uri === tmp0_other_with_cast.uri)) + return false; + if (!this.id.equals(tmp0_other_with_cast.id)) + return false; + if (!(this.isDrawFirst === tmp0_other_with_cast.isDrawFirst)) + return false; + if (!(this.isBigCover === tmp0_other_with_cast.isBigCover)) + return false; + if (!(this.isArticleCover === tmp0_other_with_cast.isArticleCover)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KMdlDynDraw_f7am4f_k$(seen1, items, uri, id, isDrawFirst, isBigCover, isArticleCover, serializationConstructorMarker) { + Companion_getInstance_1091(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1078().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.items = emptyList(); + else + $this.items = items; + if (0 === (seen1 & 2)) + $this.uri = ''; + else + $this.uri = uri; + if (0 === (seen1 & 4)) + $this.id = new Long(0, 0); + else + $this.id = id; + if (0 === (seen1 & 8)) + $this.isDrawFirst = false; + else + $this.isDrawFirst = isDrawFirst; + if (0 === (seen1 & 16)) + $this.isBigCover = false; + else + $this.isBigCover = isBigCover; + if (0 === (seen1 & 32)) + $this.isArticleCover = false; + else + $this.isArticleCover = isArticleCover; + return $this; + } + } + class Companion_1092 { + constructor() { + Companion_instance_1092 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, null, new ArrayListSerializer($serializer_getInstance_1080())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.MdlDynDrawItem'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1079(); + } + } + class $serializer_1079 { + constructor() { + $serializer_instance_1079 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KMdlDynDrawItem', this, 5); + tmp0_serialDesc.addElement_5pzumi_k$('src', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('width', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('height', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('size', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('tags', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_1092().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), FloatSerializer_getInstance(), tmp0_cached[4]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = new Long(0, 0); + var tmp6_local2 = new Long(0, 0); + var tmp7_local3 = 0.0; + var tmp8_local4 = null; + var tmp9_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp10_cached = Companion_getInstance_1092().$childSerializers_1; + if (tmp9_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp9_input.decodeFloatElement_p2q55h_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp9_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 4, tmp10_cached[4], tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + } else + while (tmp1_flag) { + tmp2_index = tmp9_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp9_input.decodeFloatElement_p2q55h_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp9_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 4, tmp10_cached[4], tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp9_input.endStructure_1xqz0n_k$(tmp0_desc); + return KMdlDynDrawItem.new_com_bapis_bilibili_app_dynamic_v2_KMdlDynDrawItem_pfgg4q_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); + } + serialize_o8az5_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_1092().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.src === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.src); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.width.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.width); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.height.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.height); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !equals(value.size, 0.0)) { + tmp1_output.encodeFloatElement_oe8hn_k$(tmp0_desc, 3, value.size); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !equals(value.tags, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 4, tmp2_cached[4], value.tags); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_o8az5_k$(encoder, value instanceof KMdlDynDrawItem ? value : THROW_CCE()); + } + } + class KMdlDynDrawItem { + constructor(src, width, height, size, tags) { + Companion_getInstance_1092(); + src = src === VOID ? '' : src; + width = width === VOID ? new Long(0, 0) : width; + height = height === VOID ? new Long(0, 0) : height; + size = size === VOID ? 0.0 : size; + tags = tags === VOID ? emptyList() : tags; + this.src = src; + this.width = width; + this.height = height; + this.size = size; + this.tags = tags; + } + get_src_18iw05_k$() { + return this.src; + } + get_width_j0q4yl_k$() { + return this.width; + } + get_height_e7t92o_k$() { + return this.height; + } + get_size_woubt6_k$() { + return this.size; + } + get_tags_wousf6_k$() { + return this.tags; + } + component1_7eebsc_k$() { + return this.src; + } + component2_7eebsb_k$() { + return this.width; + } + component3_7eebsa_k$() { + return this.height; + } + component4_7eebs9_k$() { + return this.size; + } + component5_7eebs8_k$() { + return this.tags; + } + copy_7ylzli_k$(src, width, height, size, tags) { + return new KMdlDynDrawItem(src, width, height, size, tags); + } + copy(src, width, height, size, tags, $super) { + src = src === VOID ? this.src : src; + width = width === VOID ? this.width : width; + height = height === VOID ? this.height : height; + size = size === VOID ? this.size : size; + tags = tags === VOID ? this.tags : tags; + return this.copy_7ylzli_k$(src, width, height, size, tags); + } + toString() { + return 'KMdlDynDrawItem(src=' + this.src + ', width=' + this.width.toString() + ', height=' + this.height.toString() + ', size=' + this.size + ', tags=' + this.tags + ')'; + } + hashCode() { + var result = getStringHashCode(this.src); + result = imul(result, 31) + this.width.hashCode() | 0; + result = imul(result, 31) + this.height.hashCode() | 0; + result = imul(result, 31) + getNumberHashCode(this.size) | 0; + result = imul(result, 31) + hashCode(this.tags) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KMdlDynDrawItem)) + return false; + var tmp0_other_with_cast = other instanceof KMdlDynDrawItem ? other : THROW_CCE(); + if (!(this.src === tmp0_other_with_cast.src)) + return false; + if (!this.width.equals(tmp0_other_with_cast.width)) + return false; + if (!this.height.equals(tmp0_other_with_cast.height)) + return false; + if (!equals(this.size, tmp0_other_with_cast.size)) + return false; + if (!equals(this.tags, tmp0_other_with_cast.tags)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KMdlDynDrawItem_pfgg4q_k$(seen1, src, width, height, size, tags, serializationConstructorMarker) { + Companion_getInstance_1092(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1079().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.src = ''; + else + $this.src = src; + if (0 === (seen1 & 2)) + $this.width = new Long(0, 0); + else + $this.width = width; + if (0 === (seen1 & 4)) + $this.height = new Long(0, 0); + else + $this.height = height; + if (0 === (seen1 & 8)) + $this.size = 0.0; + else + $this.size = size; + if (0 === (seen1 & 16)) + $this.tags = emptyList(); + else + $this.tags = tags; + return $this; + } + } + class Companion_1093 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.MdlDynDrawTag'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1080(); + } + } + class $serializer_1080 { + constructor() { + $serializer_instance_1080 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KMdlDynDrawTag', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('item', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), get_nullable($serializer_getInstance_1081())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_1081(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_1081(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KMdlDynDrawTag.new_com_bapis_bilibili_app_dynamic_v2_KMdlDynDrawTag_7bw9rv_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_mfkss6_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.type === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.type); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.item == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_1081(), value.item); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_mfkss6_k$(encoder, value instanceof KMdlDynDrawTag ? value : THROW_CCE()); + } + } + class KMdlDynDrawTag { + constructor(type, item) { + Companion_instance_1093; + type = type === VOID ? 0 : type; + item = item === VOID ? null : item; + this.type = type; + this.item = item; + } + get_type_wovaf7_k$() { + return this.type; + } + get_item_woo5lo_k$() { + return this.item; + } + typeEnum() { + return Companion_getInstance_1064().fromValue(this.type); + } + component1_7eebsc_k$() { + return this.type; + } + component2_7eebsb_k$() { + return this.item; + } + copy_z77hcm_k$(type, item) { + return new KMdlDynDrawTag(type, item); + } + copy(type, item, $super) { + type = type === VOID ? this.type : type; + item = item === VOID ? this.item : item; + return this.copy_z77hcm_k$(type, item); + } + toString() { + return 'KMdlDynDrawTag(type=' + this.type + ', item=' + this.item + ')'; + } + hashCode() { + var result = this.type; + result = imul(result, 31) + (this.item == null ? 0 : this.item.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KMdlDynDrawTag)) + return false; + var tmp0_other_with_cast = other instanceof KMdlDynDrawTag ? other : THROW_CCE(); + if (!(this.type === tmp0_other_with_cast.type)) + return false; + if (!equals(this.item, tmp0_other_with_cast.item)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KMdlDynDrawTag_7bw9rv_k$(seen1, type, item, serializationConstructorMarker) { + Companion_instance_1093; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1080().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.type = 0; + else + $this.type = type; + if (0 === (seen1 & 2)) + $this.item = null; + else + $this.item = item; + return $this; + } + } + class Companion_1094 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.MdlDynDrawTagItem'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1081(); + } + } + class $serializer_1081 { + constructor() { + $serializer_instance_1081 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KMdlDynDrawTagItem', this, 11); + tmp0_serialDesc.addElement_5pzumi_k$('url', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('text', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('x', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('y', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('orientation', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('source', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('itemId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('mid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('tid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('poi', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('schemaUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = new Long(0, 0); + var tmp7_local3 = new Long(0, 0); + var tmp8_local4 = 0; + var tmp9_local5 = 0; + var tmp10_local6 = new Long(0, 0); + var tmp11_local7 = new Long(0, 0); + var tmp12_local8 = new Long(0, 0); + var tmp13_local9 = null; + var tmp14_local10 = null; + var tmp15_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp15_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + } else + while (tmp1_flag) { + tmp2_index = tmp15_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp15_input.endStructure_1xqz0n_k$(tmp0_desc); + return KMdlDynDrawTagItem.new_com_bapis_bilibili_app_dynamic_v2_KMdlDynDrawTagItem_hlfirx_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, null); + } + serialize_ad6gtz_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.url === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.url); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.text === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.text); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.x.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.x); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !value.y.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 3, value.y); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.orientation === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 4, value.orientation); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.source === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 5, value.source); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !value.itemId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 6, value.itemId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !value.mid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 7, value.mid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !value.tid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 8, value.tid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.poi === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 9, value.poi); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.schemaUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 10, value.schemaUrl); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_ad6gtz_k$(encoder, value instanceof KMdlDynDrawTagItem ? value : THROW_CCE()); + } + } + class KMdlDynDrawTagItem { + constructor(url, text, x, y, orientation, source, itemId, mid, tid, poi, schemaUrl) { + Companion_instance_1094; + url = url === VOID ? '' : url; + text = text === VOID ? '' : text; + x = x === VOID ? new Long(0, 0) : x; + y = y === VOID ? new Long(0, 0) : y; + orientation = orientation === VOID ? 0 : orientation; + source = source === VOID ? 0 : source; + itemId = itemId === VOID ? new Long(0, 0) : itemId; + mid = mid === VOID ? new Long(0, 0) : mid; + tid = tid === VOID ? new Long(0, 0) : tid; + poi = poi === VOID ? '' : poi; + schemaUrl = schemaUrl === VOID ? '' : schemaUrl; + this.url = url; + this.text = text; + this.x = x; + this.y = y; + this.orientation = orientation; + this.source = source; + this.itemId = itemId; + this.mid = mid; + this.tid = tid; + this.poi = poi; + this.schemaUrl = schemaUrl; + } + get_url_18iuii_k$() { + return this.url; + } + get_text_wouvsm_k$() { + return this.text; + } + get_x_1mhr67_k$() { + return this.x; + } + get_y_1mhr68_k$() { + return this.y; + } + get_orientation_9wu93t_k$() { + return this.orientation; + } + get_source_jl0x7o_k$() { + return this.source; + } + get_itemId_ex1c47_k$() { + return this.itemId; + } + get_mid_18j0o1_k$() { + return this.mid; + } + get_tid_18ivh6_k$() { + return this.tid; + } + get_poi_18iyan_k$() { + return this.poi; + } + get_schemaUrl_5zf52d_k$() { + return this.schemaUrl; + } + component1_7eebsc_k$() { + return this.url; + } + component2_7eebsb_k$() { + return this.text; + } + component3_7eebsa_k$() { + return this.x; + } + component4_7eebs9_k$() { + return this.y; + } + component5_7eebs8_k$() { + return this.orientation; + } + component6_7eebs7_k$() { + return this.source; + } + component7_7eebs6_k$() { + return this.itemId; + } + component8_7eebs5_k$() { + return this.mid; + } + component9_7eebs4_k$() { + return this.tid; + } + component10_gazzfo_k$() { + return this.poi; + } + component11_gazzfn_k$() { + return this.schemaUrl; + } + copy_4au4iz_k$(url, text, x, y, orientation, source, itemId, mid, tid, poi, schemaUrl) { + return new KMdlDynDrawTagItem(url, text, x, y, orientation, source, itemId, mid, tid, poi, schemaUrl); + } + copy(url, text, x, y, orientation, source, itemId, mid, tid, poi, schemaUrl, $super) { + url = url === VOID ? this.url : url; + text = text === VOID ? this.text : text; + x = x === VOID ? this.x : x; + y = y === VOID ? this.y : y; + orientation = orientation === VOID ? this.orientation : orientation; + source = source === VOID ? this.source : source; + itemId = itemId === VOID ? this.itemId : itemId; + mid = mid === VOID ? this.mid : mid; + tid = tid === VOID ? this.tid : tid; + poi = poi === VOID ? this.poi : poi; + schemaUrl = schemaUrl === VOID ? this.schemaUrl : schemaUrl; + return this.copy_4au4iz_k$(url, text, x, y, orientation, source, itemId, mid, tid, poi, schemaUrl); + } + toString() { + return 'KMdlDynDrawTagItem(url=' + this.url + ', text=' + this.text + ', x=' + this.x.toString() + ', y=' + this.y.toString() + ', orientation=' + this.orientation + ', source=' + this.source + ', itemId=' + this.itemId.toString() + ', mid=' + this.mid.toString() + ', tid=' + this.tid.toString() + ', poi=' + this.poi + ', schemaUrl=' + this.schemaUrl + ')'; + } + hashCode() { + var result = getStringHashCode(this.url); + result = imul(result, 31) + getStringHashCode(this.text) | 0; + result = imul(result, 31) + this.x.hashCode() | 0; + result = imul(result, 31) + this.y.hashCode() | 0; + result = imul(result, 31) + this.orientation | 0; + result = imul(result, 31) + this.source | 0; + result = imul(result, 31) + this.itemId.hashCode() | 0; + result = imul(result, 31) + this.mid.hashCode() | 0; + result = imul(result, 31) + this.tid.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.poi) | 0; + result = imul(result, 31) + getStringHashCode(this.schemaUrl) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KMdlDynDrawTagItem)) + return false; + var tmp0_other_with_cast = other instanceof KMdlDynDrawTagItem ? other : THROW_CCE(); + if (!(this.url === tmp0_other_with_cast.url)) + return false; + if (!(this.text === tmp0_other_with_cast.text)) + return false; + if (!this.x.equals(tmp0_other_with_cast.x)) + return false; + if (!this.y.equals(tmp0_other_with_cast.y)) + return false; + if (!(this.orientation === tmp0_other_with_cast.orientation)) + return false; + if (!(this.source === tmp0_other_with_cast.source)) + return false; + if (!this.itemId.equals(tmp0_other_with_cast.itemId)) + return false; + if (!this.mid.equals(tmp0_other_with_cast.mid)) + return false; + if (!this.tid.equals(tmp0_other_with_cast.tid)) + return false; + if (!(this.poi === tmp0_other_with_cast.poi)) + return false; + if (!(this.schemaUrl === tmp0_other_with_cast.schemaUrl)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KMdlDynDrawTagItem_hlfirx_k$(seen1, url, text, x, y, orientation, source, itemId, mid, tid, poi, schemaUrl, serializationConstructorMarker) { + Companion_instance_1094; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1081().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.url = ''; + else + $this.url = url; + if (0 === (seen1 & 2)) + $this.text = ''; + else + $this.text = text; + if (0 === (seen1 & 4)) + $this.x = new Long(0, 0); + else + $this.x = x; + if (0 === (seen1 & 8)) + $this.y = new Long(0, 0); + else + $this.y = y; + if (0 === (seen1 & 16)) + $this.orientation = 0; + else + $this.orientation = orientation; + if (0 === (seen1 & 32)) + $this.source = 0; + else + $this.source = source; + if (0 === (seen1 & 64)) + $this.itemId = new Long(0, 0); + else + $this.itemId = itemId; + if (0 === (seen1 & 128)) + $this.mid = new Long(0, 0); + else + $this.mid = mid; + if (0 === (seen1 & 256)) + $this.tid = new Long(0, 0); + else + $this.tid = tid; + if (0 === (seen1 & 512)) + $this.poi = ''; + else + $this.poi = poi; + if (0 === (seen1 & 1024)) + $this.schemaUrl = ''; + else + $this.schemaUrl = schemaUrl; + return $this; + } + } + class Companion_1095 { + constructor() { + Companion_instance_1095 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, null, new ArrayListSerializer(StringSerializer_getInstance()), null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.MdlDynArticle'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1082(); + } + } + class $serializer_1082 { + constructor() { + $serializer_instance_1082 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KMdlDynArticle', this, 7); + tmp0_serialDesc.addElement_5pzumi_k$('id', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('uri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('desc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('covers', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('label', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('templateID', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_1095().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), tmp0_cached[4], StringSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = 0; + var tmp11_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp12_cached = Companion_getInstance_1095().$childSerializers_1; + if (tmp11_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp11_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 4, tmp12_cached[4], tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + } else + while (tmp1_flag) { + tmp2_index = tmp11_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp11_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 4, tmp12_cached[4], tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp11_input.endStructure_1xqz0n_k$(tmp0_desc); + return KMdlDynArticle.new_com_bapis_bilibili_app_dynamic_v2_KMdlDynArticle_igk7i7_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, null); + } + serialize_9k569i_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_1095().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.id.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.id); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.uri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.uri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.desc === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.desc); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !equals(value.covers, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 4, tmp2_cached[4], value.covers); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.label === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.label); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.templateID === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 6, value.templateID); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_9k569i_k$(encoder, value instanceof KMdlDynArticle ? value : THROW_CCE()); + } + } + class KMdlDynArticle { + constructor(id, uri, title, desc, covers, label, templateID) { + Companion_getInstance_1095(); + id = id === VOID ? new Long(0, 0) : id; + uri = uri === VOID ? '' : uri; + title = title === VOID ? '' : title; + desc = desc === VOID ? '' : desc; + covers = covers === VOID ? emptyList() : covers; + label = label === VOID ? '' : label; + templateID = templateID === VOID ? 0 : templateID; + this.id = id; + this.uri = uri; + this.title = title; + this.desc = desc; + this.covers = covers; + this.label = label; + this.templateID = templateID; + } + get_id_kntnx8_k$() { + return this.id; + } + get_uri_18iuil_k$() { + return this.uri; + } + get_title_iz32un_k$() { + return this.title; + } + get_desc_woknve_k$() { + return this.desc; + } + get_covers_c0bcmd_k$() { + return this.covers; + } + get_label_iuj8p7_k$() { + return this.label; + } + get_templateID_1e4ece_k$() { + return this.templateID; + } + component1_7eebsc_k$() { + return this.id; + } + component2_7eebsb_k$() { + return this.uri; + } + component3_7eebsa_k$() { + return this.title; + } + component4_7eebs9_k$() { + return this.desc; + } + component5_7eebs8_k$() { + return this.covers; + } + component6_7eebs7_k$() { + return this.label; + } + component7_7eebs6_k$() { + return this.templateID; + } + copy_wq7lqb_k$(id, uri, title, desc, covers, label, templateID) { + return new KMdlDynArticle(id, uri, title, desc, covers, label, templateID); + } + copy(id, uri, title, desc, covers, label, templateID, $super) { + id = id === VOID ? this.id : id; + uri = uri === VOID ? this.uri : uri; + title = title === VOID ? this.title : title; + desc = desc === VOID ? this.desc : desc; + covers = covers === VOID ? this.covers : covers; + label = label === VOID ? this.label : label; + templateID = templateID === VOID ? this.templateID : templateID; + return this.copy_wq7lqb_k$(id, uri, title, desc, covers, label, templateID); + } + toString() { + return 'KMdlDynArticle(id=' + this.id.toString() + ', uri=' + this.uri + ', title=' + this.title + ', desc=' + this.desc + ', covers=' + this.covers + ', label=' + this.label + ', templateID=' + this.templateID + ')'; + } + hashCode() { + var result = this.id.hashCode(); + result = imul(result, 31) + getStringHashCode(this.uri) | 0; + result = imul(result, 31) + getStringHashCode(this.title) | 0; + result = imul(result, 31) + getStringHashCode(this.desc) | 0; + result = imul(result, 31) + hashCode(this.covers) | 0; + result = imul(result, 31) + getStringHashCode(this.label) | 0; + result = imul(result, 31) + this.templateID | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KMdlDynArticle)) + return false; + var tmp0_other_with_cast = other instanceof KMdlDynArticle ? other : THROW_CCE(); + if (!this.id.equals(tmp0_other_with_cast.id)) + return false; + if (!(this.uri === tmp0_other_with_cast.uri)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.desc === tmp0_other_with_cast.desc)) + return false; + if (!equals(this.covers, tmp0_other_with_cast.covers)) + return false; + if (!(this.label === tmp0_other_with_cast.label)) + return false; + if (!(this.templateID === tmp0_other_with_cast.templateID)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KMdlDynArticle_igk7i7_k$(seen1, id, uri, title, desc, covers, label, templateID, serializationConstructorMarker) { + Companion_getInstance_1095(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1082().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.id = new Long(0, 0); + else + $this.id = id; + if (0 === (seen1 & 2)) + $this.uri = ''; + else + $this.uri = uri; + if (0 === (seen1 & 4)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 8)) + $this.desc = ''; + else + $this.desc = desc; + if (0 === (seen1 & 16)) + $this.covers = emptyList(); + else + $this.covers = covers; + if (0 === (seen1 & 32)) + $this.label = ''; + else + $this.label = label; + if (0 === (seen1 & 64)) + $this.templateID = 0; + else + $this.templateID = templateID; + return $this; + } + } + class Companion_1096 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.MdlDynMusic'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1083(); + } + } + class $serializer_1083 { + constructor() { + $serializer_instance_1083 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KMdlDynMusic', this, 7); + tmp0_serialDesc.addElement_5pzumi_k$('id', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('uri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('upId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('label1', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('upper', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_local2 = new Long(0, 0); + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp11_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + } else + while (tmp1_flag) { + tmp2_index = tmp11_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp11_input.endStructure_1xqz0n_k$(tmp0_desc); + return KMdlDynMusic.new_com_bapis_bilibili_app_dynamic_v2_KMdlDynMusic_3j5ehc_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, null); + } + serialize_yqcdkr_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.id.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.id); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.uri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.uri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.upId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.upId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.cover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.label1 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.label1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.upper === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.upper); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_yqcdkr_k$(encoder, value instanceof KMdlDynMusic ? value : THROW_CCE()); + } + } + class KMdlDynMusic { + constructor(id, uri, upId, title, cover, label1, upper) { + Companion_instance_1096; + id = id === VOID ? new Long(0, 0) : id; + uri = uri === VOID ? '' : uri; + upId = upId === VOID ? new Long(0, 0) : upId; + title = title === VOID ? '' : title; + cover = cover === VOID ? '' : cover; + label1 = label1 === VOID ? '' : label1; + upper = upper === VOID ? '' : upper; + this.id = id; + this.uri = uri; + this.upId = upId; + this.title = title; + this.cover = cover; + this.label1 = label1; + this.upper = upper; + } + get_id_kntnx8_k$() { + return this.id; + } + get_uri_18iuil_k$() { + return this.uri; + } + get_upId_wovpsv_k$() { + return this.upId; + } + get_title_iz32un_k$() { + return this.title; + } + get_cover_ipug0e_k$() { + return this.cover; + } + get_label1_g1o1xi_k$() { + return this.label1; + } + get_upper_izr989_k$() { + return this.upper; + } + component1_7eebsc_k$() { + return this.id; + } + component2_7eebsb_k$() { + return this.uri; + } + component3_7eebsa_k$() { + return this.upId; + } + component4_7eebs9_k$() { + return this.title; + } + component5_7eebs8_k$() { + return this.cover; + } + component6_7eebs7_k$() { + return this.label1; + } + component7_7eebs6_k$() { + return this.upper; + } + copy_ovk7fp_k$(id, uri, upId, title, cover, label1, upper) { + return new KMdlDynMusic(id, uri, upId, title, cover, label1, upper); + } + copy(id, uri, upId, title, cover, label1, upper, $super) { + id = id === VOID ? this.id : id; + uri = uri === VOID ? this.uri : uri; + upId = upId === VOID ? this.upId : upId; + title = title === VOID ? this.title : title; + cover = cover === VOID ? this.cover : cover; + label1 = label1 === VOID ? this.label1 : label1; + upper = upper === VOID ? this.upper : upper; + return this.copy_ovk7fp_k$(id, uri, upId, title, cover, label1, upper); + } + toString() { + return 'KMdlDynMusic(id=' + this.id.toString() + ', uri=' + this.uri + ', upId=' + this.upId.toString() + ', title=' + this.title + ', cover=' + this.cover + ', label1=' + this.label1 + ', upper=' + this.upper + ')'; + } + hashCode() { + var result = this.id.hashCode(); + result = imul(result, 31) + getStringHashCode(this.uri) | 0; + result = imul(result, 31) + this.upId.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.title) | 0; + result = imul(result, 31) + getStringHashCode(this.cover) | 0; + result = imul(result, 31) + getStringHashCode(this.label1) | 0; + result = imul(result, 31) + getStringHashCode(this.upper) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KMdlDynMusic)) + return false; + var tmp0_other_with_cast = other instanceof KMdlDynMusic ? other : THROW_CCE(); + if (!this.id.equals(tmp0_other_with_cast.id)) + return false; + if (!(this.uri === tmp0_other_with_cast.uri)) + return false; + if (!this.upId.equals(tmp0_other_with_cast.upId)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + if (!(this.label1 === tmp0_other_with_cast.label1)) + return false; + if (!(this.upper === tmp0_other_with_cast.upper)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KMdlDynMusic_3j5ehc_k$(seen1, id, uri, upId, title, cover, label1, upper, serializationConstructorMarker) { + Companion_instance_1096; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1083().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.id = new Long(0, 0); + else + $this.id = id; + if (0 === (seen1 & 2)) + $this.uri = ''; + else + $this.uri = uri; + if (0 === (seen1 & 4)) + $this.upId = new Long(0, 0); + else + $this.upId = upId; + if (0 === (seen1 & 8)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 16)) + $this.cover = ''; + else + $this.cover = cover; + if (0 === (seen1 & 32)) + $this.label1 = ''; + else + $this.label1 = label1; + if (0 === (seen1 & 64)) + $this.upper = ''; + else + $this.upper = upper; + return $this; + } + } + class Companion_1097 { + constructor() { + Companion_instance_1097 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, null, null, null, null, null, null, new ArrayListSerializer($serializer_getInstance_1073()), null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.MdlDynCommon'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1084(); + } + } + class $serializer_1084 { + constructor() { + $serializer_instance_1084 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KMdlDynCommon', this, 11); + tmp0_serialDesc.addElement_5pzumi_k$('oid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('uri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('desc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('label', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('bizType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('sketchID', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('style', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('badge', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('button', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_1097().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), tmp0_cached[9], get_nullable($serializer_getInstance_1085())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = 0; + var tmp11_local7 = new Long(0, 0); + var tmp12_local8 = 0; + var tmp13_local9 = null; + var tmp14_local10 = null; + var tmp15_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp16_cached = Companion_getInstance_1097().$childSerializers_1; + if (tmp15_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp15_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 9, tmp16_cached[9], tmp13_local9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 10, $serializer_getInstance_1085(), tmp14_local10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + } else + while (tmp1_flag) { + tmp2_index = tmp15_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp15_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 9, tmp16_cached[9], tmp13_local9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 10, $serializer_getInstance_1085(), tmp14_local10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp15_input.endStructure_1xqz0n_k$(tmp0_desc); + return KMdlDynCommon.new_com_bapis_bilibili_app_dynamic_v2_KMdlDynCommon_mavoah_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, null); + } + serialize_serb5n_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_1097().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.oid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.oid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.uri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.uri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.desc === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.desc); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.cover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.label === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.label); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.bizType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 6, value.bizType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !value.sketchID.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 7, value.sketchID); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.style === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 8, value.style); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !equals(value.badge, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 9, tmp2_cached[9], value.badge); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.button == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 10, $serializer_getInstance_1085(), value.button); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_serb5n_k$(encoder, value instanceof KMdlDynCommon ? value : THROW_CCE()); + } + } + class KMdlDynCommon { + constructor(oid, uri, title, desc, cover, label, bizType, sketchID, style, badge, button) { + Companion_getInstance_1097(); + oid = oid === VOID ? new Long(0, 0) : oid; + uri = uri === VOID ? '' : uri; + title = title === VOID ? '' : title; + desc = desc === VOID ? '' : desc; + cover = cover === VOID ? '' : cover; + label = label === VOID ? '' : label; + bizType = bizType === VOID ? 0 : bizType; + sketchID = sketchID === VOID ? new Long(0, 0) : sketchID; + style = style === VOID ? 0 : style; + badge = badge === VOID ? emptyList() : badge; + button = button === VOID ? null : button; + this.oid = oid; + this.uri = uri; + this.title = title; + this.desc = desc; + this.cover = cover; + this.label = label; + this.bizType = bizType; + this.sketchID = sketchID; + this.style = style; + this.badge = badge; + this.button = button; + } + get_oid_18iz6n_k$() { + return this.oid; + } + get_uri_18iuil_k$() { + return this.uri; + } + get_title_iz32un_k$() { + return this.title; + } + get_desc_woknve_k$() { + return this.desc; + } + get_cover_ipug0e_k$() { + return this.cover; + } + get_label_iuj8p7_k$() { + return this.label; + } + get_bizType_cjyf0_k$() { + return this.bizType; + } + get_sketchID_1uoq6o_k$() { + return this.sketchID; + } + get_style_iyqetk_k$() { + return this.style; + } + get_badge_ip1cai_k$() { + return this.badge; + } + get_button_bmjiuz_k$() { + return this.button; + } + styleEnum() { + return Companion_getInstance_1071().fromValue(this.style); + } + component1_7eebsc_k$() { + return this.oid; + } + component2_7eebsb_k$() { + return this.uri; + } + component3_7eebsa_k$() { + return this.title; + } + component4_7eebs9_k$() { + return this.desc; + } + component5_7eebs8_k$() { + return this.cover; + } + component6_7eebs7_k$() { + return this.label; + } + component7_7eebs6_k$() { + return this.bizType; + } + component8_7eebs5_k$() { + return this.sketchID; + } + component9_7eebs4_k$() { + return this.style; + } + component10_gazzfo_k$() { + return this.badge; + } + component11_gazzfn_k$() { + return this.button; + } + copy_3z4r2z_k$(oid, uri, title, desc, cover, label, bizType, sketchID, style, badge, button) { + return new KMdlDynCommon(oid, uri, title, desc, cover, label, bizType, sketchID, style, badge, button); + } + copy(oid, uri, title, desc, cover, label, bizType, sketchID, style, badge, button, $super) { + oid = oid === VOID ? this.oid : oid; + uri = uri === VOID ? this.uri : uri; + title = title === VOID ? this.title : title; + desc = desc === VOID ? this.desc : desc; + cover = cover === VOID ? this.cover : cover; + label = label === VOID ? this.label : label; + bizType = bizType === VOID ? this.bizType : bizType; + sketchID = sketchID === VOID ? this.sketchID : sketchID; + style = style === VOID ? this.style : style; + badge = badge === VOID ? this.badge : badge; + button = button === VOID ? this.button : button; + return this.copy_3z4r2z_k$(oid, uri, title, desc, cover, label, bizType, sketchID, style, badge, button); + } + toString() { + return 'KMdlDynCommon(oid=' + this.oid.toString() + ', uri=' + this.uri + ', title=' + this.title + ', desc=' + this.desc + ', cover=' + this.cover + ', label=' + this.label + ', bizType=' + this.bizType + ', sketchID=' + this.sketchID.toString() + ', style=' + this.style + ', badge=' + this.badge + ', button=' + this.button + ')'; + } + hashCode() { + var result = this.oid.hashCode(); + result = imul(result, 31) + getStringHashCode(this.uri) | 0; + result = imul(result, 31) + getStringHashCode(this.title) | 0; + result = imul(result, 31) + getStringHashCode(this.desc) | 0; + result = imul(result, 31) + getStringHashCode(this.cover) | 0; + result = imul(result, 31) + getStringHashCode(this.label) | 0; + result = imul(result, 31) + this.bizType | 0; + result = imul(result, 31) + this.sketchID.hashCode() | 0; + result = imul(result, 31) + this.style | 0; + result = imul(result, 31) + hashCode(this.badge) | 0; + result = imul(result, 31) + (this.button == null ? 0 : this.button.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KMdlDynCommon)) + return false; + var tmp0_other_with_cast = other instanceof KMdlDynCommon ? other : THROW_CCE(); + if (!this.oid.equals(tmp0_other_with_cast.oid)) + return false; + if (!(this.uri === tmp0_other_with_cast.uri)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.desc === tmp0_other_with_cast.desc)) + return false; + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + if (!(this.label === tmp0_other_with_cast.label)) + return false; + if (!(this.bizType === tmp0_other_with_cast.bizType)) + return false; + if (!this.sketchID.equals(tmp0_other_with_cast.sketchID)) + return false; + if (!(this.style === tmp0_other_with_cast.style)) + return false; + if (!equals(this.badge, tmp0_other_with_cast.badge)) + return false; + if (!equals(this.button, tmp0_other_with_cast.button)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KMdlDynCommon_mavoah_k$(seen1, oid, uri, title, desc, cover, label, bizType, sketchID, style, badge, button, serializationConstructorMarker) { + Companion_getInstance_1097(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1084().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.oid = new Long(0, 0); + else + $this.oid = oid; + if (0 === (seen1 & 2)) + $this.uri = ''; + else + $this.uri = uri; + if (0 === (seen1 & 4)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 8)) + $this.desc = ''; + else + $this.desc = desc; + if (0 === (seen1 & 16)) + $this.cover = ''; + else + $this.cover = cover; + if (0 === (seen1 & 32)) + $this.label = ''; + else + $this.label = label; + if (0 === (seen1 & 64)) + $this.bizType = 0; + else + $this.bizType = bizType; + if (0 === (seen1 & 128)) + $this.sketchID = new Long(0, 0); + else + $this.sketchID = sketchID; + if (0 === (seen1 & 256)) + $this.style = 0; + else + $this.style = style; + if (0 === (seen1 & 512)) + $this.badge = emptyList(); + else + $this.badge = badge; + if (0 === (seen1 & 1024)) + $this.button = null; + else + $this.button = button; + return $this; + } + } + class Companion_1098 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.AdditionalButton'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1085(); + } + } + class $serializer_1085 { + constructor() { + $serializer_instance_1085 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KAdditionalButton', this, 7); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('jumpStyle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('jumpUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('uncheck', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('check', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('status', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('clickType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), get_nullable($serializer_getInstance_1086()), StringSerializer_getInstance(), get_nullable($serializer_getInstance_1086()), get_nullable($serializer_getInstance_1086()), IntSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = 0; + var tmp10_local6 = 0; + var tmp11_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp11_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_1086(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_1086(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_1086(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + } else + while (tmp1_flag) { + tmp2_index = tmp11_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_1086(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_1086(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_1086(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp11_input.endStructure_1xqz0n_k$(tmp0_desc); + return KAdditionalButton.new_com_bapis_bilibili_app_dynamic_v2_KAdditionalButton_uqb5p4_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, null); + } + serialize_v1ae35_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.type === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.type); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.jumpStyle == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_1086(), value.jumpStyle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.jumpUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.jumpUrl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.uncheck == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_1086(), value.uncheck); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.check == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, $serializer_getInstance_1086(), value.check); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.status === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 5, value.status); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.clickType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 6, value.clickType); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_v1ae35_k$(encoder, value instanceof KAdditionalButton ? value : THROW_CCE()); + } + } + class KAdditionalButton { + constructor(type, jumpStyle, jumpUrl, uncheck, check, status, clickType) { + Companion_instance_1098; + type = type === VOID ? 0 : type; + jumpStyle = jumpStyle === VOID ? null : jumpStyle; + jumpUrl = jumpUrl === VOID ? '' : jumpUrl; + uncheck = uncheck === VOID ? null : uncheck; + check = check === VOID ? null : check; + status = status === VOID ? 0 : status; + clickType = clickType === VOID ? 0 : clickType; + this.type = type; + this.jumpStyle = jumpStyle; + this.jumpUrl = jumpUrl; + this.uncheck = uncheck; + this.check = check; + this.status = status; + this.clickType = clickType; + } + get_type_wovaf7_k$() { + return this.type; + } + get_jumpStyle_jnuovu_k$() { + return this.jumpStyle; + } + get_jumpUrl_jhqiko_k$() { + return this.jumpUrl; + } + get_uncheck_3kjl5m_k$() { + return this.uncheck; + } + get_check_ippmfz_k$() { + return this.check; + } + get_status_jnf6d7_k$() { + return this.status; + } + get_clickType_nzeyfb_k$() { + return this.clickType; + } + typeEnum() { + return Companion_getInstance_1065().fromValue(this.type); + } + statusEnum() { + return Companion_getInstance_1066().fromValue(this.status); + } + clickTypeEnum() { + return Companion_getInstance_1067().fromValue(this.clickType); + } + component1_7eebsc_k$() { + return this.type; + } + component2_7eebsb_k$() { + return this.jumpStyle; + } + component3_7eebsa_k$() { + return this.jumpUrl; + } + component4_7eebs9_k$() { + return this.uncheck; + } + component5_7eebs8_k$() { + return this.check; + } + component6_7eebs7_k$() { + return this.status; + } + component7_7eebs6_k$() { + return this.clickType; + } + copy_5wtrnn_k$(type, jumpStyle, jumpUrl, uncheck, check, status, clickType) { + return new KAdditionalButton(type, jumpStyle, jumpUrl, uncheck, check, status, clickType); + } + copy(type, jumpStyle, jumpUrl, uncheck, check, status, clickType, $super) { + type = type === VOID ? this.type : type; + jumpStyle = jumpStyle === VOID ? this.jumpStyle : jumpStyle; + jumpUrl = jumpUrl === VOID ? this.jumpUrl : jumpUrl; + uncheck = uncheck === VOID ? this.uncheck : uncheck; + check = check === VOID ? this.check : check; + status = status === VOID ? this.status : status; + clickType = clickType === VOID ? this.clickType : clickType; + return this.copy_5wtrnn_k$(type, jumpStyle, jumpUrl, uncheck, check, status, clickType); + } + toString() { + return 'KAdditionalButton(type=' + this.type + ', jumpStyle=' + this.jumpStyle + ', jumpUrl=' + this.jumpUrl + ', uncheck=' + this.uncheck + ', check=' + this.check + ', status=' + this.status + ', clickType=' + this.clickType + ')'; + } + hashCode() { + var result = this.type; + result = imul(result, 31) + (this.jumpStyle == null ? 0 : this.jumpStyle.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.jumpUrl) | 0; + result = imul(result, 31) + (this.uncheck == null ? 0 : this.uncheck.hashCode()) | 0; + result = imul(result, 31) + (this.check == null ? 0 : this.check.hashCode()) | 0; + result = imul(result, 31) + this.status | 0; + result = imul(result, 31) + this.clickType | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KAdditionalButton)) + return false; + var tmp0_other_with_cast = other instanceof KAdditionalButton ? other : THROW_CCE(); + if (!(this.type === tmp0_other_with_cast.type)) + return false; + if (!equals(this.jumpStyle, tmp0_other_with_cast.jumpStyle)) + return false; + if (!(this.jumpUrl === tmp0_other_with_cast.jumpUrl)) + return false; + if (!equals(this.uncheck, tmp0_other_with_cast.uncheck)) + return false; + if (!equals(this.check, tmp0_other_with_cast.check)) + return false; + if (!(this.status === tmp0_other_with_cast.status)) + return false; + if (!(this.clickType === tmp0_other_with_cast.clickType)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KAdditionalButton_uqb5p4_k$(seen1, type, jumpStyle, jumpUrl, uncheck, check, status, clickType, serializationConstructorMarker) { + Companion_instance_1098; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1085().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.type = 0; + else + $this.type = type; + if (0 === (seen1 & 2)) + $this.jumpStyle = null; + else + $this.jumpStyle = jumpStyle; + if (0 === (seen1 & 4)) + $this.jumpUrl = ''; + else + $this.jumpUrl = jumpUrl; + if (0 === (seen1 & 8)) + $this.uncheck = null; + else + $this.uncheck = uncheck; + if (0 === (seen1 & 16)) + $this.check = null; + else + $this.check = check; + if (0 === (seen1 & 32)) + $this.status = 0; + else + $this.status = status; + if (0 === (seen1 & 64)) + $this.clickType = 0; + else + $this.clickType = clickType; + return $this; + } + } + class Companion_1099 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.AdditionalButtonStyle'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1086(); + } + } + class $serializer_1086 { + constructor() { + $serializer_instance_1086 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KAdditionalButtonStyle', this, 7); + tmp0_serialDesc.addElement_5pzumi_k$('icon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('text', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('interactive', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('bgStyle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('toast', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('disable', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('share', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_1088()), IntSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), get_nullable($serializer_getInstance_1087())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = 0; + var tmp8_local4 = null; + var tmp9_local5 = 0; + var tmp10_local6 = null; + var tmp11_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp11_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_1088(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_1087(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + } else + while (tmp1_flag) { + tmp2_index = tmp11_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_1088(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_1087(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp11_input.endStructure_1xqz0n_k$(tmp0_desc); + return KAdditionalButtonStyle.new_com_bapis_bilibili_app_dynamic_v2_KAdditionalButtonStyle_tj8jmg_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, null); + } + serialize_d0y3ac_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.icon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.icon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.text === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.text); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.interactive == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_1088(), value.interactive); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.bgStyle === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 3, value.bgStyle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.toast === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.toast); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.disable === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 5, value.disable); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.share == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 6, $serializer_getInstance_1087(), value.share); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_d0y3ac_k$(encoder, value instanceof KAdditionalButtonStyle ? value : THROW_CCE()); + } + } + class KAdditionalButtonStyle { + constructor(icon, text, interactive, bgStyle, toast, disable, share) { + Companion_instance_1099; + icon = icon === VOID ? '' : icon; + text = text === VOID ? '' : text; + interactive = interactive === VOID ? null : interactive; + bgStyle = bgStyle === VOID ? 0 : bgStyle; + toast = toast === VOID ? '' : toast; + disable = disable === VOID ? 0 : disable; + share = share === VOID ? null : share; + this.icon = icon; + this.text = text; + this.interactive = interactive; + this.bgStyle = bgStyle; + this.toast = toast; + this.disable = disable; + this.share = share; + } + get_icon_wont8i_k$() { + return this.icon; + } + get_text_wouvsm_k$() { + return this.text; + } + get_interactive_qmz8nb_k$() { + return this.interactive; + } + get_bgStyle_1viqv1_k$() { + return this.bgStyle; + } + get_toast_iz6iv2_k$() { + return this.toast; + } + get_disable_swlvjz_k$() { + return this.disable; + } + get_share_iyi9bq_k$() { + return this.share; + } + bgStyleEnum() { + return Companion_getInstance_1070().fromValue(this.bgStyle); + } + disableEnum() { + return Companion_getInstance_1069().fromValue(this.disable); + } + component1_7eebsc_k$() { + return this.icon; + } + component2_7eebsb_k$() { + return this.text; + } + component3_7eebsa_k$() { + return this.interactive; + } + component4_7eebs9_k$() { + return this.bgStyle; + } + component5_7eebs8_k$() { + return this.toast; + } + component6_7eebs7_k$() { + return this.disable; + } + component7_7eebs6_k$() { + return this.share; + } + copy_oi8x7w_k$(icon, text, interactive, bgStyle, toast, disable, share) { + return new KAdditionalButtonStyle(icon, text, interactive, bgStyle, toast, disable, share); + } + copy(icon, text, interactive, bgStyle, toast, disable, share, $super) { + icon = icon === VOID ? this.icon : icon; + text = text === VOID ? this.text : text; + interactive = interactive === VOID ? this.interactive : interactive; + bgStyle = bgStyle === VOID ? this.bgStyle : bgStyle; + toast = toast === VOID ? this.toast : toast; + disable = disable === VOID ? this.disable : disable; + share = share === VOID ? this.share : share; + return this.copy_oi8x7w_k$(icon, text, interactive, bgStyle, toast, disable, share); + } + toString() { + return 'KAdditionalButtonStyle(icon=' + this.icon + ', text=' + this.text + ', interactive=' + this.interactive + ', bgStyle=' + this.bgStyle + ', toast=' + this.toast + ', disable=' + this.disable + ', share=' + this.share + ')'; + } + hashCode() { + var result = getStringHashCode(this.icon); + result = imul(result, 31) + getStringHashCode(this.text) | 0; + result = imul(result, 31) + (this.interactive == null ? 0 : this.interactive.hashCode()) | 0; + result = imul(result, 31) + this.bgStyle | 0; + result = imul(result, 31) + getStringHashCode(this.toast) | 0; + result = imul(result, 31) + this.disable | 0; + result = imul(result, 31) + (this.share == null ? 0 : this.share.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KAdditionalButtonStyle)) + return false; + var tmp0_other_with_cast = other instanceof KAdditionalButtonStyle ? other : THROW_CCE(); + if (!(this.icon === tmp0_other_with_cast.icon)) + return false; + if (!(this.text === tmp0_other_with_cast.text)) + return false; + if (!equals(this.interactive, tmp0_other_with_cast.interactive)) + return false; + if (!(this.bgStyle === tmp0_other_with_cast.bgStyle)) + return false; + if (!(this.toast === tmp0_other_with_cast.toast)) + return false; + if (!(this.disable === tmp0_other_with_cast.disable)) + return false; + if (!equals(this.share, tmp0_other_with_cast.share)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KAdditionalButtonStyle_tj8jmg_k$(seen1, icon, text, interactive, bgStyle, toast, disable, share, serializationConstructorMarker) { + Companion_instance_1099; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1086().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.icon = ''; + else + $this.icon = icon; + if (0 === (seen1 & 2)) + $this.text = ''; + else + $this.text = text; + if (0 === (seen1 & 4)) + $this.interactive = null; + else + $this.interactive = interactive; + if (0 === (seen1 & 8)) + $this.bgStyle = 0; + else + $this.bgStyle = bgStyle; + if (0 === (seen1 & 16)) + $this.toast = ''; + else + $this.toast = toast; + if (0 === (seen1 & 32)) + $this.disable = 0; + else + $this.disable = disable; + if (0 === (seen1 & 64)) + $this.share = null; + else + $this.share = share; + return $this; + } + } + class Companion_1100 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.AdditionalButtonShare'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1087(); + } + } + class $serializer_1087 { + constructor() { + $serializer_instance_1087 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KAdditionalButtonShare', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('show', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('icon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('text', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KAdditionalButtonShare.new_com_bapis_bilibili_app_dynamic_v2_KAdditionalButtonShare_y8rnts_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_7ow5yu_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.show === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.show); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.icon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.icon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.text === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.text); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_7ow5yu_k$(encoder, value instanceof KAdditionalButtonShare ? value : THROW_CCE()); + } + } + class KAdditionalButtonShare { + constructor(show, icon, text) { + Companion_instance_1100; + show = show === VOID ? 0 : show; + icon = icon === VOID ? '' : icon; + text = text === VOID ? '' : text; + this.show = show; + this.icon = icon; + this.text = text; + } + get_show_wouati_k$() { + return this.show; + } + get_icon_wont8i_k$() { + return this.icon; + } + get_text_wouvsm_k$() { + return this.text; + } + showEnum() { + return Companion_getInstance_1068().fromValue(this.show); + } + component1_7eebsc_k$() { + return this.show; + } + component2_7eebsb_k$() { + return this.icon; + } + component3_7eebsa_k$() { + return this.text; + } + copy_hrd73x_k$(show, icon, text) { + return new KAdditionalButtonShare(show, icon, text); + } + copy(show, icon, text, $super) { + show = show === VOID ? this.show : show; + icon = icon === VOID ? this.icon : icon; + text = text === VOID ? this.text : text; + return this.copy_hrd73x_k$(show, icon, text); + } + toString() { + return 'KAdditionalButtonShare(show=' + this.show + ', icon=' + this.icon + ', text=' + this.text + ')'; + } + hashCode() { + var result = this.show; + result = imul(result, 31) + getStringHashCode(this.icon) | 0; + result = imul(result, 31) + getStringHashCode(this.text) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KAdditionalButtonShare)) + return false; + var tmp0_other_with_cast = other instanceof KAdditionalButtonShare ? other : THROW_CCE(); + if (!(this.show === tmp0_other_with_cast.show)) + return false; + if (!(this.icon === tmp0_other_with_cast.icon)) + return false; + if (!(this.text === tmp0_other_with_cast.text)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KAdditionalButtonShare_y8rnts_k$(seen1, show, icon, text, serializationConstructorMarker) { + Companion_instance_1100; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1087().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.show = 0; + else + $this.show = show; + if (0 === (seen1 & 2)) + $this.icon = ''; + else + $this.icon = icon; + if (0 === (seen1 & 4)) + $this.text = ''; + else + $this.text = text; + return $this; + } + } + class Companion_1101 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.AdditionalButtonInteractive'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1088(); + } + } + class $serializer_1088 { + constructor() { + $serializer_instance_1088 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KAdditionalButtonInteractive', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('popups', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('confirm', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('cancel', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('desc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KAdditionalButtonInteractive.new_com_bapis_bilibili_app_dynamic_v2_KAdditionalButtonInteractive_gdvutp_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_m9aqzx_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.popups === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.popups); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.confirm === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.confirm); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.cancel === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.cancel); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.desc === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.desc); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_m9aqzx_k$(encoder, value instanceof KAdditionalButtonInteractive ? value : THROW_CCE()); + } + } + class KAdditionalButtonInteractive { + constructor(popups, confirm, cancel, desc) { + Companion_instance_1101; + popups = popups === VOID ? '' : popups; + confirm = confirm === VOID ? '' : confirm; + cancel = cancel === VOID ? '' : cancel; + desc = desc === VOID ? '' : desc; + this.popups = popups; + this.confirm = confirm; + this.cancel = cancel; + this.desc = desc; + } + get_popups_i5sxn4_k$() { + return this.popups; + } + get_confirm_gztp07_k$() { + return this.confirm; + } + get_cancel_bsh2mb_k$() { + return this.cancel; + } + get_desc_woknve_k$() { + return this.desc; + } + component1_7eebsc_k$() { + return this.popups; + } + component2_7eebsb_k$() { + return this.confirm; + } + component3_7eebsa_k$() { + return this.cancel; + } + component4_7eebs9_k$() { + return this.desc; + } + copy_hmmiyd_k$(popups, confirm, cancel, desc) { + return new KAdditionalButtonInteractive(popups, confirm, cancel, desc); + } + copy(popups, confirm, cancel, desc, $super) { + popups = popups === VOID ? this.popups : popups; + confirm = confirm === VOID ? this.confirm : confirm; + cancel = cancel === VOID ? this.cancel : cancel; + desc = desc === VOID ? this.desc : desc; + return this.copy_hmmiyd_k$(popups, confirm, cancel, desc); + } + toString() { + return 'KAdditionalButtonInteractive(popups=' + this.popups + ', confirm=' + this.confirm + ', cancel=' + this.cancel + ', desc=' + this.desc + ')'; + } + hashCode() { + var result = getStringHashCode(this.popups); + result = imul(result, 31) + getStringHashCode(this.confirm) | 0; + result = imul(result, 31) + getStringHashCode(this.cancel) | 0; + result = imul(result, 31) + getStringHashCode(this.desc) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KAdditionalButtonInteractive)) + return false; + var tmp0_other_with_cast = other instanceof KAdditionalButtonInteractive ? other : THROW_CCE(); + if (!(this.popups === tmp0_other_with_cast.popups)) + return false; + if (!(this.confirm === tmp0_other_with_cast.confirm)) + return false; + if (!(this.cancel === tmp0_other_with_cast.cancel)) + return false; + if (!(this.desc === tmp0_other_with_cast.desc)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KAdditionalButtonInteractive_gdvutp_k$(seen1, popups, confirm, cancel, desc, serializationConstructorMarker) { + Companion_instance_1101; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1088().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.popups = ''; + else + $this.popups = popups; + if (0 === (seen1 & 2)) + $this.confirm = ''; + else + $this.confirm = confirm; + if (0 === (seen1 & 4)) + $this.cancel = ''; + else + $this.cancel = cancel; + if (0 === (seen1 & 8)) + $this.desc = ''; + else + $this.desc = desc; + return $this; + } + } + class Companion_1102 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.MdlDynLive'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1089(); + } + } + class $serializer_1089 { + constructor() { + $serializer_instance_1089 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KMdlDynLive', this, 9); + tmp0_serialDesc.addElement_5pzumi_k$('id', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('uri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('coverLabel', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('coverLabel2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('liveState', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('badge', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('reserveType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), get_nullable($serializer_getInstance_1073()), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = 0; + var tmp11_local7 = null; + var tmp12_local8 = 0; + var tmp13_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp13_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp13_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_1073(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp13_input.decodeIntElement_941u6a_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + } else + while (tmp1_flag) { + tmp2_index = tmp13_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp13_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_1073(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp13_input.decodeIntElement_941u6a_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp13_input.endStructure_1xqz0n_k$(tmp0_desc); + return KMdlDynLive.new_com_bapis_bilibili_app_dynamic_v2_KMdlDynLive_7ewooz_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, null); + } + serialize_43zxp6_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.id.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.id); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.uri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.uri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.cover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.coverLabel === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.coverLabel); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.coverLabel2 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.coverLabel2); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.liveState === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 6, value.liveState); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.badge == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 7, $serializer_getInstance_1073(), value.badge); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.reserveType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 8, value.reserveType); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_43zxp6_k$(encoder, value instanceof KMdlDynLive ? value : THROW_CCE()); + } + } + class KMdlDynLive { + constructor(id, uri, title, cover, coverLabel, coverLabel2, liveState, badge, reserveType) { + Companion_instance_1102; + id = id === VOID ? new Long(0, 0) : id; + uri = uri === VOID ? '' : uri; + title = title === VOID ? '' : title; + cover = cover === VOID ? '' : cover; + coverLabel = coverLabel === VOID ? '' : coverLabel; + coverLabel2 = coverLabel2 === VOID ? '' : coverLabel2; + liveState = liveState === VOID ? 0 : liveState; + badge = badge === VOID ? null : badge; + reserveType = reserveType === VOID ? 0 : reserveType; + this.id = id; + this.uri = uri; + this.title = title; + this.cover = cover; + this.coverLabel = coverLabel; + this.coverLabel2 = coverLabel2; + this.liveState = liveState; + this.badge = badge; + this.reserveType = reserveType; + } + get_id_kntnx8_k$() { + return this.id; + } + get_uri_18iuil_k$() { + return this.uri; + } + get_title_iz32un_k$() { + return this.title; + } + get_cover_ipug0e_k$() { + return this.cover; + } + get_coverLabel_8uqkm_k$() { + return this.coverLabel; + } + get_coverLabel2_7mgvsc_k$() { + return this.coverLabel2; + } + get_liveState_p0nejg_k$() { + return this.liveState; + } + get_badge_ip1cai_k$() { + return this.badge; + } + get_reserveType_bwry37_k$() { + return this.reserveType; + } + liveStateEnum() { + return Companion_getInstance_1072().fromValue(this.liveState); + } + reserveTypeEnum() { + return Companion_getInstance_1060().fromValue(this.reserveType); + } + component1_7eebsc_k$() { + return this.id; + } + component2_7eebsb_k$() { + return this.uri; + } + component3_7eebsa_k$() { + return this.title; + } + component4_7eebs9_k$() { + return this.cover; + } + component5_7eebs8_k$() { + return this.coverLabel; + } + component6_7eebs7_k$() { + return this.coverLabel2; + } + component7_7eebs6_k$() { + return this.liveState; + } + component8_7eebs5_k$() { + return this.badge; + } + component9_7eebs4_k$() { + return this.reserveType; + } + copy_hp75tt_k$(id, uri, title, cover, coverLabel, coverLabel2, liveState, badge, reserveType) { + return new KMdlDynLive(id, uri, title, cover, coverLabel, coverLabel2, liveState, badge, reserveType); + } + copy(id, uri, title, cover, coverLabel, coverLabel2, liveState, badge, reserveType, $super) { + id = id === VOID ? this.id : id; + uri = uri === VOID ? this.uri : uri; + title = title === VOID ? this.title : title; + cover = cover === VOID ? this.cover : cover; + coverLabel = coverLabel === VOID ? this.coverLabel : coverLabel; + coverLabel2 = coverLabel2 === VOID ? this.coverLabel2 : coverLabel2; + liveState = liveState === VOID ? this.liveState : liveState; + badge = badge === VOID ? this.badge : badge; + reserveType = reserveType === VOID ? this.reserveType : reserveType; + return this.copy_hp75tt_k$(id, uri, title, cover, coverLabel, coverLabel2, liveState, badge, reserveType); + } + toString() { + return 'KMdlDynLive(id=' + this.id.toString() + ', uri=' + this.uri + ', title=' + this.title + ', cover=' + this.cover + ', coverLabel=' + this.coverLabel + ', coverLabel2=' + this.coverLabel2 + ', liveState=' + this.liveState + ', badge=' + this.badge + ', reserveType=' + this.reserveType + ')'; + } + hashCode() { + var result = this.id.hashCode(); + result = imul(result, 31) + getStringHashCode(this.uri) | 0; + result = imul(result, 31) + getStringHashCode(this.title) | 0; + result = imul(result, 31) + getStringHashCode(this.cover) | 0; + result = imul(result, 31) + getStringHashCode(this.coverLabel) | 0; + result = imul(result, 31) + getStringHashCode(this.coverLabel2) | 0; + result = imul(result, 31) + this.liveState | 0; + result = imul(result, 31) + (this.badge == null ? 0 : this.badge.hashCode()) | 0; + result = imul(result, 31) + this.reserveType | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KMdlDynLive)) + return false; + var tmp0_other_with_cast = other instanceof KMdlDynLive ? other : THROW_CCE(); + if (!this.id.equals(tmp0_other_with_cast.id)) + return false; + if (!(this.uri === tmp0_other_with_cast.uri)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + if (!(this.coverLabel === tmp0_other_with_cast.coverLabel)) + return false; + if (!(this.coverLabel2 === tmp0_other_with_cast.coverLabel2)) + return false; + if (!(this.liveState === tmp0_other_with_cast.liveState)) + return false; + if (!equals(this.badge, tmp0_other_with_cast.badge)) + return false; + if (!(this.reserveType === tmp0_other_with_cast.reserveType)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KMdlDynLive_7ewooz_k$(seen1, id, uri, title, cover, coverLabel, coverLabel2, liveState, badge, reserveType, serializationConstructorMarker) { + Companion_instance_1102; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1089().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.id = new Long(0, 0); + else + $this.id = id; + if (0 === (seen1 & 2)) + $this.uri = ''; + else + $this.uri = uri; + if (0 === (seen1 & 4)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 8)) + $this.cover = ''; + else + $this.cover = cover; + if (0 === (seen1 & 16)) + $this.coverLabel = ''; + else + $this.coverLabel = coverLabel; + if (0 === (seen1 & 32)) + $this.coverLabel2 = ''; + else + $this.coverLabel2 = coverLabel2; + if (0 === (seen1 & 64)) + $this.liveState = 0; + else + $this.liveState = liveState; + if (0 === (seen1 & 128)) + $this.badge = null; + else + $this.badge = badge; + if (0 === (seen1 & 256)) + $this.reserveType = 0; + else + $this.reserveType = reserveType; + return $this; + } + } + class Companion_1103 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.MdlDynMedialist'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1090(); + } + } + class $serializer_1090 { + constructor() { + $serializer_instance_1090 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KMdlDynMedialist', this, 8); + tmp0_serialDesc.addElement_5pzumi_k$('id', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('uri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('subTitle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('coverType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('badge', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('coverBottomRightIcon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), get_nullable($serializer_getInstance_1073()), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = 0; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp12_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_1073(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + } else + while (tmp1_flag) { + tmp2_index = tmp12_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_1073(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp12_input.endStructure_1xqz0n_k$(tmp0_desc); + return KMdlDynMedialist.new_com_bapis_bilibili_app_dynamic_v2_KMdlDynMedialist_g4kuz_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null); + } + serialize_2g6mri_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.id.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.id); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.uri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.uri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.subTitle === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.subTitle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.cover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.coverType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 5, value.coverType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.badge == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 6, $serializer_getInstance_1073(), value.badge); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.coverBottomRightIcon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.coverBottomRightIcon); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_2g6mri_k$(encoder, value instanceof KMdlDynMedialist ? value : THROW_CCE()); + } + } + class KMdlDynMedialist { + constructor(id, uri, title, subTitle, cover, coverType, badge, coverBottomRightIcon) { + Companion_instance_1103; + id = id === VOID ? new Long(0, 0) : id; + uri = uri === VOID ? '' : uri; + title = title === VOID ? '' : title; + subTitle = subTitle === VOID ? '' : subTitle; + cover = cover === VOID ? '' : cover; + coverType = coverType === VOID ? 0 : coverType; + badge = badge === VOID ? null : badge; + coverBottomRightIcon = coverBottomRightIcon === VOID ? '' : coverBottomRightIcon; + this.id = id; + this.uri = uri; + this.title = title; + this.subTitle = subTitle; + this.cover = cover; + this.coverType = coverType; + this.badge = badge; + this.coverBottomRightIcon = coverBottomRightIcon; + } + get_id_kntnx8_k$() { + return this.id; + } + get_uri_18iuil_k$() { + return this.uri; + } + get_title_iz32un_k$() { + return this.title; + } + get_subTitle_4nt9z5_k$() { + return this.subTitle; + } + get_cover_ipug0e_k$() { + return this.cover; + } + get_coverType_trw9aw_k$() { + return this.coverType; + } + get_badge_ip1cai_k$() { + return this.badge; + } + get_coverBottomRightIcon_imvty4_k$() { + return this.coverBottomRightIcon; + } + component1_7eebsc_k$() { + return this.id; + } + component2_7eebsb_k$() { + return this.uri; + } + component3_7eebsa_k$() { + return this.title; + } + component4_7eebs9_k$() { + return this.subTitle; + } + component5_7eebs8_k$() { + return this.cover; + } + component6_7eebs7_k$() { + return this.coverType; + } + component7_7eebs6_k$() { + return this.badge; + } + component8_7eebs5_k$() { + return this.coverBottomRightIcon; + } + copy_u8ffhp_k$(id, uri, title, subTitle, cover, coverType, badge, coverBottomRightIcon) { + return new KMdlDynMedialist(id, uri, title, subTitle, cover, coverType, badge, coverBottomRightIcon); + } + copy(id, uri, title, subTitle, cover, coverType, badge, coverBottomRightIcon, $super) { + id = id === VOID ? this.id : id; + uri = uri === VOID ? this.uri : uri; + title = title === VOID ? this.title : title; + subTitle = subTitle === VOID ? this.subTitle : subTitle; + cover = cover === VOID ? this.cover : cover; + coverType = coverType === VOID ? this.coverType : coverType; + badge = badge === VOID ? this.badge : badge; + coverBottomRightIcon = coverBottomRightIcon === VOID ? this.coverBottomRightIcon : coverBottomRightIcon; + return this.copy_u8ffhp_k$(id, uri, title, subTitle, cover, coverType, badge, coverBottomRightIcon); + } + toString() { + return 'KMdlDynMedialist(id=' + this.id.toString() + ', uri=' + this.uri + ', title=' + this.title + ', subTitle=' + this.subTitle + ', cover=' + this.cover + ', coverType=' + this.coverType + ', badge=' + this.badge + ', coverBottomRightIcon=' + this.coverBottomRightIcon + ')'; + } + hashCode() { + var result = this.id.hashCode(); + result = imul(result, 31) + getStringHashCode(this.uri) | 0; + result = imul(result, 31) + getStringHashCode(this.title) | 0; + result = imul(result, 31) + getStringHashCode(this.subTitle) | 0; + result = imul(result, 31) + getStringHashCode(this.cover) | 0; + result = imul(result, 31) + this.coverType | 0; + result = imul(result, 31) + (this.badge == null ? 0 : this.badge.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.coverBottomRightIcon) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KMdlDynMedialist)) + return false; + var tmp0_other_with_cast = other instanceof KMdlDynMedialist ? other : THROW_CCE(); + if (!this.id.equals(tmp0_other_with_cast.id)) + return false; + if (!(this.uri === tmp0_other_with_cast.uri)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.subTitle === tmp0_other_with_cast.subTitle)) + return false; + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + if (!(this.coverType === tmp0_other_with_cast.coverType)) + return false; + if (!equals(this.badge, tmp0_other_with_cast.badge)) + return false; + if (!(this.coverBottomRightIcon === tmp0_other_with_cast.coverBottomRightIcon)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KMdlDynMedialist_g4kuz_k$(seen1, id, uri, title, subTitle, cover, coverType, badge, coverBottomRightIcon, serializationConstructorMarker) { + Companion_instance_1103; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1090().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.id = new Long(0, 0); + else + $this.id = id; + if (0 === (seen1 & 2)) + $this.uri = ''; + else + $this.uri = uri; + if (0 === (seen1 & 4)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 8)) + $this.subTitle = ''; + else + $this.subTitle = subTitle; + if (0 === (seen1 & 16)) + $this.cover = ''; + else + $this.cover = cover; + if (0 === (seen1 & 32)) + $this.coverType = 0; + else + $this.coverType = coverType; + if (0 === (seen1 & 64)) + $this.badge = null; + else + $this.badge = badge; + if (0 === (seen1 & 128)) + $this.coverBottomRightIcon = ''; + else + $this.coverBottomRightIcon = coverBottomRightIcon; + return $this; + } + } + class Companion_1104 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.MdlDynApplet'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1091(); + } + } + class $serializer_1091 { + constructor() { + $serializer_instance_1091 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KMdlDynApplet', this, 8); + tmp0_serialDesc.addElement_5pzumi_k$('id', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('uri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('subTitle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('icon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('label', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('buttonTitle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp12_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + } else + while (tmp1_flag) { + tmp2_index = tmp12_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp12_input.endStructure_1xqz0n_k$(tmp0_desc); + return KMdlDynApplet.new_com_bapis_bilibili_app_dynamic_v2_KMdlDynApplet_98gro1_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null); + } + serialize_fqmdf0_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.id.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.id); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.uri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.uri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.subTitle === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.subTitle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.cover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.icon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.icon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.label === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.label); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.buttonTitle === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.buttonTitle); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_fqmdf0_k$(encoder, value instanceof KMdlDynApplet ? value : THROW_CCE()); + } + } + class KMdlDynApplet { + constructor(id, uri, title, subTitle, cover, icon, label, buttonTitle) { + Companion_instance_1104; + id = id === VOID ? new Long(0, 0) : id; + uri = uri === VOID ? '' : uri; + title = title === VOID ? '' : title; + subTitle = subTitle === VOID ? '' : subTitle; + cover = cover === VOID ? '' : cover; + icon = icon === VOID ? '' : icon; + label = label === VOID ? '' : label; + buttonTitle = buttonTitle === VOID ? '' : buttonTitle; + this.id = id; + this.uri = uri; + this.title = title; + this.subTitle = subTitle; + this.cover = cover; + this.icon = icon; + this.label = label; + this.buttonTitle = buttonTitle; + } + get_id_kntnx8_k$() { + return this.id; + } + get_uri_18iuil_k$() { + return this.uri; + } + get_title_iz32un_k$() { + return this.title; + } + get_subTitle_4nt9z5_k$() { + return this.subTitle; + } + get_cover_ipug0e_k$() { + return this.cover; + } + get_icon_wont8i_k$() { + return this.icon; + } + get_label_iuj8p7_k$() { + return this.label; + } + get_buttonTitle_fdjhnn_k$() { + return this.buttonTitle; + } + component1_7eebsc_k$() { + return this.id; + } + component2_7eebsb_k$() { + return this.uri; + } + component3_7eebsa_k$() { + return this.title; + } + component4_7eebs9_k$() { + return this.subTitle; + } + component5_7eebs8_k$() { + return this.cover; + } + component6_7eebs7_k$() { + return this.icon; + } + component7_7eebs6_k$() { + return this.label; + } + component8_7eebs5_k$() { + return this.buttonTitle; + } + copy_q1d9jt_k$(id, uri, title, subTitle, cover, icon, label, buttonTitle) { + return new KMdlDynApplet(id, uri, title, subTitle, cover, icon, label, buttonTitle); + } + copy(id, uri, title, subTitle, cover, icon, label, buttonTitle, $super) { + id = id === VOID ? this.id : id; + uri = uri === VOID ? this.uri : uri; + title = title === VOID ? this.title : title; + subTitle = subTitle === VOID ? this.subTitle : subTitle; + cover = cover === VOID ? this.cover : cover; + icon = icon === VOID ? this.icon : icon; + label = label === VOID ? this.label : label; + buttonTitle = buttonTitle === VOID ? this.buttonTitle : buttonTitle; + return this.copy_q1d9jt_k$(id, uri, title, subTitle, cover, icon, label, buttonTitle); + } + toString() { + return 'KMdlDynApplet(id=' + this.id.toString() + ', uri=' + this.uri + ', title=' + this.title + ', subTitle=' + this.subTitle + ', cover=' + this.cover + ', icon=' + this.icon + ', label=' + this.label + ', buttonTitle=' + this.buttonTitle + ')'; + } + hashCode() { + var result = this.id.hashCode(); + result = imul(result, 31) + getStringHashCode(this.uri) | 0; + result = imul(result, 31) + getStringHashCode(this.title) | 0; + result = imul(result, 31) + getStringHashCode(this.subTitle) | 0; + result = imul(result, 31) + getStringHashCode(this.cover) | 0; + result = imul(result, 31) + getStringHashCode(this.icon) | 0; + result = imul(result, 31) + getStringHashCode(this.label) | 0; + result = imul(result, 31) + getStringHashCode(this.buttonTitle) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KMdlDynApplet)) + return false; + var tmp0_other_with_cast = other instanceof KMdlDynApplet ? other : THROW_CCE(); + if (!this.id.equals(tmp0_other_with_cast.id)) + return false; + if (!(this.uri === tmp0_other_with_cast.uri)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.subTitle === tmp0_other_with_cast.subTitle)) + return false; + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + if (!(this.icon === tmp0_other_with_cast.icon)) + return false; + if (!(this.label === tmp0_other_with_cast.label)) + return false; + if (!(this.buttonTitle === tmp0_other_with_cast.buttonTitle)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KMdlDynApplet_98gro1_k$(seen1, id, uri, title, subTitle, cover, icon, label, buttonTitle, serializationConstructorMarker) { + Companion_instance_1104; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1091().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.id = new Long(0, 0); + else + $this.id = id; + if (0 === (seen1 & 2)) + $this.uri = ''; + else + $this.uri = uri; + if (0 === (seen1 & 4)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 8)) + $this.subTitle = ''; + else + $this.subTitle = subTitle; + if (0 === (seen1 & 16)) + $this.cover = ''; + else + $this.cover = cover; + if (0 === (seen1 & 32)) + $this.icon = ''; + else + $this.icon = icon; + if (0 === (seen1 & 64)) + $this.label = ''; + else + $this.label = label; + if (0 === (seen1 & 128)) + $this.buttonTitle = ''; + else + $this.buttonTitle = buttonTitle; + return $this; + } + } + class Companion_1105 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.MdlDynSubscription'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1092(); + } + } + class $serializer_1092 { + constructor() { + $serializer_instance_1092 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KMdlDynSubscription', this, 8); + tmp0_serialDesc.addElement_5pzumi_k$('id', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('adId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('uri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('adTitle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('badge', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('tips', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_1073()), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = new Long(0, 0); + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp12_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_1073(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + } else + while (tmp1_flag) { + tmp2_index = tmp12_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_1073(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp12_input.endStructure_1xqz0n_k$(tmp0_desc); + return KMdlDynSubscription.new_com_bapis_bilibili_app_dynamic_v2_KMdlDynSubscription_6t2qrk_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null); + } + serialize_i5tx13_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.id.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.id); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.adId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.adId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.uri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.uri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.cover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.adTitle === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.adTitle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.badge == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 6, $serializer_getInstance_1073(), value.badge); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.tips === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.tips); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_i5tx13_k$(encoder, value instanceof KMdlDynSubscription ? value : THROW_CCE()); + } + } + class KMdlDynSubscription { + constructor(id, adId, uri, title, cover, adTitle, badge, tips) { + Companion_instance_1105; + id = id === VOID ? new Long(0, 0) : id; + adId = adId === VOID ? new Long(0, 0) : adId; + uri = uri === VOID ? '' : uri; + title = title === VOID ? '' : title; + cover = cover === VOID ? '' : cover; + adTitle = adTitle === VOID ? '' : adTitle; + badge = badge === VOID ? null : badge; + tips = tips === VOID ? '' : tips; + this.id = id; + this.adId = adId; + this.uri = uri; + this.title = title; + this.cover = cover; + this.adTitle = adTitle; + this.badge = badge; + this.tips = tips; + } + get_id_kntnx8_k$() { + return this.id; + } + get_adId_woip5z_k$() { + return this.adId; + } + get_uri_18iuil_k$() { + return this.uri; + } + get_title_iz32un_k$() { + return this.title; + } + get_cover_ipug0e_k$() { + return this.cover; + } + get_adTitle_hyp88k_k$() { + return this.adTitle; + } + get_badge_ip1cai_k$() { + return this.badge; + } + get_tips_wouykh_k$() { + return this.tips; + } + component1_7eebsc_k$() { + return this.id; + } + component2_7eebsb_k$() { + return this.adId; + } + component3_7eebsa_k$() { + return this.uri; + } + component4_7eebs9_k$() { + return this.title; + } + component5_7eebs8_k$() { + return this.cover; + } + component6_7eebs7_k$() { + return this.adTitle; + } + component7_7eebs6_k$() { + return this.badge; + } + component8_7eebs5_k$() { + return this.tips; + } + copy_9eun41_k$(id, adId, uri, title, cover, adTitle, badge, tips) { + return new KMdlDynSubscription(id, adId, uri, title, cover, adTitle, badge, tips); + } + copy(id, adId, uri, title, cover, adTitle, badge, tips, $super) { + id = id === VOID ? this.id : id; + adId = adId === VOID ? this.adId : adId; + uri = uri === VOID ? this.uri : uri; + title = title === VOID ? this.title : title; + cover = cover === VOID ? this.cover : cover; + adTitle = adTitle === VOID ? this.adTitle : adTitle; + badge = badge === VOID ? this.badge : badge; + tips = tips === VOID ? this.tips : tips; + return this.copy_9eun41_k$(id, adId, uri, title, cover, adTitle, badge, tips); + } + toString() { + return 'KMdlDynSubscription(id=' + this.id.toString() + ', adId=' + this.adId.toString() + ', uri=' + this.uri + ', title=' + this.title + ', cover=' + this.cover + ', adTitle=' + this.adTitle + ', badge=' + this.badge + ', tips=' + this.tips + ')'; + } + hashCode() { + var result = this.id.hashCode(); + result = imul(result, 31) + this.adId.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.uri) | 0; + result = imul(result, 31) + getStringHashCode(this.title) | 0; + result = imul(result, 31) + getStringHashCode(this.cover) | 0; + result = imul(result, 31) + getStringHashCode(this.adTitle) | 0; + result = imul(result, 31) + (this.badge == null ? 0 : this.badge.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.tips) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KMdlDynSubscription)) + return false; + var tmp0_other_with_cast = other instanceof KMdlDynSubscription ? other : THROW_CCE(); + if (!this.id.equals(tmp0_other_with_cast.id)) + return false; + if (!this.adId.equals(tmp0_other_with_cast.adId)) + return false; + if (!(this.uri === tmp0_other_with_cast.uri)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + if (!(this.adTitle === tmp0_other_with_cast.adTitle)) + return false; + if (!equals(this.badge, tmp0_other_with_cast.badge)) + return false; + if (!(this.tips === tmp0_other_with_cast.tips)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KMdlDynSubscription_6t2qrk_k$(seen1, id, adId, uri, title, cover, adTitle, badge, tips, serializationConstructorMarker) { + Companion_instance_1105; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1092().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.id = new Long(0, 0); + else + $this.id = id; + if (0 === (seen1 & 2)) + $this.adId = new Long(0, 0); + else + $this.adId = adId; + if (0 === (seen1 & 4)) + $this.uri = ''; + else + $this.uri = uri; + if (0 === (seen1 & 8)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 16)) + $this.cover = ''; + else + $this.cover = cover; + if (0 === (seen1 & 32)) + $this.adTitle = ''; + else + $this.adTitle = adTitle; + if (0 === (seen1 & 64)) + $this.badge = null; + else + $this.badge = badge; + if (0 === (seen1 & 128)) + $this.tips = ''; + else + $this.tips = tips; + return $this; + } + } + class Companion_1106 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.MdlDynLiveRcmd'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1093(); + } + } + class $serializer_1093 { + constructor() { + $serializer_instance_1093 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KMdlDynLiveRcmd', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('content', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('reserveType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('pendant', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), IntSerializer_getInstance(), get_nullable($serializer_getInstance_1094())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = 0; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_1094(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_1094(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KMdlDynLiveRcmd.new_com_bapis_bilibili_app_dynamic_v2_KMdlDynLiveRcmd_jhld7l_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_ml35ma_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.content === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.content); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.reserveType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.reserveType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.pendant == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_1094(), value.pendant); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_ml35ma_k$(encoder, value instanceof KMdlDynLiveRcmd ? value : THROW_CCE()); + } + } + class KMdlDynLiveRcmd { + constructor(content, reserveType, pendant) { + Companion_instance_1106; + content = content === VOID ? '' : content; + reserveType = reserveType === VOID ? 0 : reserveType; + pendant = pendant === VOID ? null : pendant; + this.content = content; + this.reserveType = reserveType; + this.pendant = pendant; + } + get_content_h02jrk_k$() { + return this.content; + } + get_reserveType_bwry37_k$() { + return this.reserveType; + } + get_pendant_a0ufyl_k$() { + return this.pendant; + } + reserveTypeEnum() { + return Companion_getInstance_1060().fromValue(this.reserveType); + } + component1_7eebsc_k$() { + return this.content; + } + component2_7eebsb_k$() { + return this.reserveType; + } + component3_7eebsa_k$() { + return this.pendant; + } + copy_qp3zq3_k$(content, reserveType, pendant) { + return new KMdlDynLiveRcmd(content, reserveType, pendant); + } + copy(content, reserveType, pendant, $super) { + content = content === VOID ? this.content : content; + reserveType = reserveType === VOID ? this.reserveType : reserveType; + pendant = pendant === VOID ? this.pendant : pendant; + return this.copy_qp3zq3_k$(content, reserveType, pendant); + } + toString() { + return 'KMdlDynLiveRcmd(content=' + this.content + ', reserveType=' + this.reserveType + ', pendant=' + this.pendant + ')'; + } + hashCode() { + var result = getStringHashCode(this.content); + result = imul(result, 31) + this.reserveType | 0; + result = imul(result, 31) + (this.pendant == null ? 0 : this.pendant.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KMdlDynLiveRcmd)) + return false; + var tmp0_other_with_cast = other instanceof KMdlDynLiveRcmd ? other : THROW_CCE(); + if (!(this.content === tmp0_other_with_cast.content)) + return false; + if (!(this.reserveType === tmp0_other_with_cast.reserveType)) + return false; + if (!equals(this.pendant, tmp0_other_with_cast.pendant)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KMdlDynLiveRcmd_jhld7l_k$(seen1, content, reserveType, pendant, serializationConstructorMarker) { + Companion_instance_1106; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1093().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.content = ''; + else + $this.content = content; + if (0 === (seen1 & 2)) + $this.reserveType = 0; + else + $this.reserveType = reserveType; + if (0 === (seen1 & 4)) + $this.pendant = null; + else + $this.pendant = pendant; + return $this; + } + } + class Companion_1107 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.LivePendant'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1094(); + } + } + class $serializer_1094 { + constructor() { + $serializer_instance_1094 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KLivePendant', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('text', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('icon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('pendantId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = new Long(0, 0); + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KLivePendant.new_com_bapis_bilibili_app_dynamic_v2_KLivePendant_teyyk8_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_aom9g_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.text === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.text); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.icon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.icon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.pendantId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.pendantId); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_aom9g_k$(encoder, value instanceof KLivePendant ? value : THROW_CCE()); + } + } + class KLivePendant { + constructor(text, icon, pendantId) { + Companion_instance_1107; + text = text === VOID ? '' : text; + icon = icon === VOID ? '' : icon; + pendantId = pendantId === VOID ? new Long(0, 0) : pendantId; + this.text = text; + this.icon = icon; + this.pendantId = pendantId; + } + get_text_wouvsm_k$() { + return this.text; + } + get_icon_wont8i_k$() { + return this.icon; + } + get_pendantId_rmnga6_k$() { + return this.pendantId; + } + component1_7eebsc_k$() { + return this.text; + } + component2_7eebsb_k$() { + return this.icon; + } + component3_7eebsa_k$() { + return this.pendantId; + } + copy_h5h4fn_k$(text, icon, pendantId) { + return new KLivePendant(text, icon, pendantId); + } + copy(text, icon, pendantId, $super) { + text = text === VOID ? this.text : text; + icon = icon === VOID ? this.icon : icon; + pendantId = pendantId === VOID ? this.pendantId : pendantId; + return this.copy_h5h4fn_k$(text, icon, pendantId); + } + toString() { + return 'KLivePendant(text=' + this.text + ', icon=' + this.icon + ', pendantId=' + this.pendantId.toString() + ')'; + } + hashCode() { + var result = getStringHashCode(this.text); + result = imul(result, 31) + getStringHashCode(this.icon) | 0; + result = imul(result, 31) + this.pendantId.hashCode() | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KLivePendant)) + return false; + var tmp0_other_with_cast = other instanceof KLivePendant ? other : THROW_CCE(); + if (!(this.text === tmp0_other_with_cast.text)) + return false; + if (!(this.icon === tmp0_other_with_cast.icon)) + return false; + if (!this.pendantId.equals(tmp0_other_with_cast.pendantId)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KLivePendant_teyyk8_k$(seen1, text, icon, pendantId, serializationConstructorMarker) { + Companion_instance_1107; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1094().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.text = ''; + else + $this.text = text; + if (0 === (seen1 & 2)) + $this.icon = ''; + else + $this.icon = icon; + if (0 === (seen1 & 4)) + $this.pendantId = new Long(0, 0); + else + $this.pendantId = pendantId; + return $this; + } + } + class Companion_1108 { + constructor() { + Companion_instance_1108 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, new ArrayListSerializer($serializer_getInstance_1073())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.MdlDynUGCSeason'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1095(); + } + } + class $serializer_1095 { + constructor() { + $serializer_instance_1095 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KMdlDynUGCSeason', this, 16); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('uri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('coverLeftText1', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('coverLeftText2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('coverLeftText3', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('id', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('inlineURL', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('canPlay', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('playIcon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('avid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('cid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + tmp0_serialDesc.addElement_5pzumi_k$('dimension', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(13)); + tmp0_serialDesc.addElement_5pzumi_k$('duration', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(14)); + tmp0_serialDesc.addElement_5pzumi_k$('jumpUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(15)); + tmp0_serialDesc.addElement_5pzumi_k$('badge', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(16)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_1108().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), BooleanSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable($serializer_getInstance_1072()), LongSerializer_getInstance(), StringSerializer_getInstance(), tmp0_cached[15]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = new Long(0, 0); + var tmp11_local7 = null; + var tmp12_local8 = false; + var tmp13_local9 = null; + var tmp14_local10 = new Long(0, 0); + var tmp15_local11 = new Long(0, 0); + var tmp16_local12 = null; + var tmp17_local13 = new Long(0, 0); + var tmp18_local14 = null; + var tmp19_local15 = null; + var tmp20_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp21_cached = Companion_getInstance_1108().$childSerializers_1; + if (tmp20_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp20_input.decodeLongElement_994anb_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp20_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp20_input.decodeLongElement_994anb_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp20_input.decodeLongElement_994anb_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + tmp16_local12 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 12, $serializer_getInstance_1072(), tmp16_local12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + tmp17_local13 = tmp20_input.decodeLongElement_994anb_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + tmp18_local14 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + tmp19_local15 = tmp20_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 15, tmp21_cached[15], tmp19_local15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + } else + while (tmp1_flag) { + tmp2_index = tmp20_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp20_input.decodeLongElement_994anb_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp20_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp20_input.decodeLongElement_994anb_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp20_input.decodeLongElement_994anb_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + case 12: + tmp16_local12 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 12, $serializer_getInstance_1072(), tmp16_local12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + break; + case 13: + tmp17_local13 = tmp20_input.decodeLongElement_994anb_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + break; + case 14: + tmp18_local14 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + break; + case 15: + tmp19_local15 = tmp20_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 15, tmp21_cached[15], tmp19_local15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp20_input.endStructure_1xqz0n_k$(tmp0_desc); + return KMdlDynUGCSeason.new_com_bapis_bilibili_app_dynamic_v2_KMdlDynUGCSeason_6yeeas_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, tmp18_local14, tmp19_local15, null); + } + serialize_80hpas_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_1108().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.cover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.uri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.uri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.coverLeftText1 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.coverLeftText1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.coverLeftText2 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.coverLeftText2); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.coverLeftText3 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.coverLeftText3); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !value.id.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 6, value.id); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.inlineURL === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.inlineURL); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.canPlay === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 8, value.canPlay); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.playIcon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 9, value.playIcon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !value.avid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 10, value.avid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !value.cid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 11, value.cid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !(value.dimension == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 12, $serializer_getInstance_1072(), value.dimension); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 13) ? true : !value.duration.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 13, value.duration); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 14) ? true : !(value.jumpUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 14, value.jumpUrl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 15) ? true : !equals(value.badge, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 15, tmp2_cached[15], value.badge); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_80hpas_k$(encoder, value instanceof KMdlDynUGCSeason ? value : THROW_CCE()); + } + } + class KMdlDynUGCSeason { + constructor(title, cover, uri, coverLeftText1, coverLeftText2, coverLeftText3, id, inlineURL, canPlay, playIcon, avid, cid, dimension, duration, jumpUrl, badge) { + Companion_getInstance_1108(); + title = title === VOID ? '' : title; + cover = cover === VOID ? '' : cover; + uri = uri === VOID ? '' : uri; + coverLeftText1 = coverLeftText1 === VOID ? '' : coverLeftText1; + coverLeftText2 = coverLeftText2 === VOID ? '' : coverLeftText2; + coverLeftText3 = coverLeftText3 === VOID ? '' : coverLeftText3; + id = id === VOID ? new Long(0, 0) : id; + inlineURL = inlineURL === VOID ? '' : inlineURL; + canPlay = canPlay === VOID ? false : canPlay; + playIcon = playIcon === VOID ? '' : playIcon; + avid = avid === VOID ? new Long(0, 0) : avid; + cid = cid === VOID ? new Long(0, 0) : cid; + dimension = dimension === VOID ? null : dimension; + duration = duration === VOID ? new Long(0, 0) : duration; + jumpUrl = jumpUrl === VOID ? '' : jumpUrl; + badge = badge === VOID ? emptyList() : badge; + this.title = title; + this.cover = cover; + this.uri = uri; + this.coverLeftText1 = coverLeftText1; + this.coverLeftText2 = coverLeftText2; + this.coverLeftText3 = coverLeftText3; + this.id = id; + this.inlineURL = inlineURL; + this.canPlay = canPlay; + this.playIcon = playIcon; + this.avid = avid; + this.cid = cid; + this.dimension = dimension; + this.duration = duration; + this.jumpUrl = jumpUrl; + this.badge = badge; + } + get_title_iz32un_k$() { + return this.title; + } + get_cover_ipug0e_k$() { + return this.cover; + } + get_uri_18iuil_k$() { + return this.uri; + } + get_coverLeftText1_ck8hkf_k$() { + return this.coverLeftText1; + } + get_coverLeftText2_ck8hkg_k$() { + return this.coverLeftText2; + } + get_coverLeftText3_ck8hkh_k$() { + return this.coverLeftText3; + } + get_id_kntnx8_k$() { + return this.id; + } + get_inlineURL_rqc0wj_k$() { + return this.inlineURL; + } + get_canPlay_acszln_k$() { + return this.canPlay; + } + get_playIcon_qkju2_k$() { + return this.playIcon; + } + get_avid_woj3a1_k$() { + return this.avid; + } + get_cid_18j82z_k$() { + return this.cid; + } + get_dimension_9lf48z_k$() { + return this.dimension; + } + get_duration_6a6kpp_k$() { + return this.duration; + } + get_jumpUrl_jhqiko_k$() { + return this.jumpUrl; + } + get_badge_ip1cai_k$() { + return this.badge; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.cover; + } + component3_7eebsa_k$() { + return this.uri; + } + component4_7eebs9_k$() { + return this.coverLeftText1; + } + component5_7eebs8_k$() { + return this.coverLeftText2; + } + component6_7eebs7_k$() { + return this.coverLeftText3; + } + component7_7eebs6_k$() { + return this.id; + } + component8_7eebs5_k$() { + return this.inlineURL; + } + component9_7eebs4_k$() { + return this.canPlay; + } + component10_gazzfo_k$() { + return this.playIcon; + } + component11_gazzfn_k$() { + return this.avid; + } + component12_gazzfm_k$() { + return this.cid; + } + component13_gazzfl_k$() { + return this.dimension; + } + component14_gazzfk_k$() { + return this.duration; + } + component15_gazzfj_k$() { + return this.jumpUrl; + } + component16_gazzfi_k$() { + return this.badge; + } + copy_iabm21_k$(title, cover, uri, coverLeftText1, coverLeftText2, coverLeftText3, id, inlineURL, canPlay, playIcon, avid, cid, dimension, duration, jumpUrl, badge) { + return new KMdlDynUGCSeason(title, cover, uri, coverLeftText1, coverLeftText2, coverLeftText3, id, inlineURL, canPlay, playIcon, avid, cid, dimension, duration, jumpUrl, badge); + } + copy(title, cover, uri, coverLeftText1, coverLeftText2, coverLeftText3, id, inlineURL, canPlay, playIcon, avid, cid, dimension, duration, jumpUrl, badge, $super) { + title = title === VOID ? this.title : title; + cover = cover === VOID ? this.cover : cover; + uri = uri === VOID ? this.uri : uri; + coverLeftText1 = coverLeftText1 === VOID ? this.coverLeftText1 : coverLeftText1; + coverLeftText2 = coverLeftText2 === VOID ? this.coverLeftText2 : coverLeftText2; + coverLeftText3 = coverLeftText3 === VOID ? this.coverLeftText3 : coverLeftText3; + id = id === VOID ? this.id : id; + inlineURL = inlineURL === VOID ? this.inlineURL : inlineURL; + canPlay = canPlay === VOID ? this.canPlay : canPlay; + playIcon = playIcon === VOID ? this.playIcon : playIcon; + avid = avid === VOID ? this.avid : avid; + cid = cid === VOID ? this.cid : cid; + dimension = dimension === VOID ? this.dimension : dimension; + duration = duration === VOID ? this.duration : duration; + jumpUrl = jumpUrl === VOID ? this.jumpUrl : jumpUrl; + badge = badge === VOID ? this.badge : badge; + return this.copy_iabm21_k$(title, cover, uri, coverLeftText1, coverLeftText2, coverLeftText3, id, inlineURL, canPlay, playIcon, avid, cid, dimension, duration, jumpUrl, badge); + } + toString() { + return 'KMdlDynUGCSeason(title=' + this.title + ', cover=' + this.cover + ', uri=' + this.uri + ', coverLeftText1=' + this.coverLeftText1 + ', coverLeftText2=' + this.coverLeftText2 + ', coverLeftText3=' + this.coverLeftText3 + ', id=' + this.id.toString() + ', inlineURL=' + this.inlineURL + ', canPlay=' + this.canPlay + ', playIcon=' + this.playIcon + ', avid=' + this.avid.toString() + ', cid=' + this.cid.toString() + ', dimension=' + this.dimension + ', duration=' + this.duration.toString() + ', jumpUrl=' + this.jumpUrl + ', badge=' + this.badge + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.cover) | 0; + result = imul(result, 31) + getStringHashCode(this.uri) | 0; + result = imul(result, 31) + getStringHashCode(this.coverLeftText1) | 0; + result = imul(result, 31) + getStringHashCode(this.coverLeftText2) | 0; + result = imul(result, 31) + getStringHashCode(this.coverLeftText3) | 0; + result = imul(result, 31) + this.id.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.inlineURL) | 0; + result = imul(result, 31) + getBooleanHashCode(this.canPlay) | 0; + result = imul(result, 31) + getStringHashCode(this.playIcon) | 0; + result = imul(result, 31) + this.avid.hashCode() | 0; + result = imul(result, 31) + this.cid.hashCode() | 0; + result = imul(result, 31) + (this.dimension == null ? 0 : this.dimension.hashCode()) | 0; + result = imul(result, 31) + this.duration.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.jumpUrl) | 0; + result = imul(result, 31) + hashCode(this.badge) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KMdlDynUGCSeason)) + return false; + var tmp0_other_with_cast = other instanceof KMdlDynUGCSeason ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + if (!(this.uri === tmp0_other_with_cast.uri)) + return false; + if (!(this.coverLeftText1 === tmp0_other_with_cast.coverLeftText1)) + return false; + if (!(this.coverLeftText2 === tmp0_other_with_cast.coverLeftText2)) + return false; + if (!(this.coverLeftText3 === tmp0_other_with_cast.coverLeftText3)) + return false; + if (!this.id.equals(tmp0_other_with_cast.id)) + return false; + if (!(this.inlineURL === tmp0_other_with_cast.inlineURL)) + return false; + if (!(this.canPlay === tmp0_other_with_cast.canPlay)) + return false; + if (!(this.playIcon === tmp0_other_with_cast.playIcon)) + return false; + if (!this.avid.equals(tmp0_other_with_cast.avid)) + return false; + if (!this.cid.equals(tmp0_other_with_cast.cid)) + return false; + if (!equals(this.dimension, tmp0_other_with_cast.dimension)) + return false; + if (!this.duration.equals(tmp0_other_with_cast.duration)) + return false; + if (!(this.jumpUrl === tmp0_other_with_cast.jumpUrl)) + return false; + if (!equals(this.badge, tmp0_other_with_cast.badge)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KMdlDynUGCSeason_6yeeas_k$(seen1, title, cover, uri, coverLeftText1, coverLeftText2, coverLeftText3, id, inlineURL, canPlay, playIcon, avid, cid, dimension, duration, jumpUrl, badge, serializationConstructorMarker) { + Companion_getInstance_1108(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1095().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.cover = ''; + else + $this.cover = cover; + if (0 === (seen1 & 4)) + $this.uri = ''; + else + $this.uri = uri; + if (0 === (seen1 & 8)) + $this.coverLeftText1 = ''; + else + $this.coverLeftText1 = coverLeftText1; + if (0 === (seen1 & 16)) + $this.coverLeftText2 = ''; + else + $this.coverLeftText2 = coverLeftText2; + if (0 === (seen1 & 32)) + $this.coverLeftText3 = ''; + else + $this.coverLeftText3 = coverLeftText3; + if (0 === (seen1 & 64)) + $this.id = new Long(0, 0); + else + $this.id = id; + if (0 === (seen1 & 128)) + $this.inlineURL = ''; + else + $this.inlineURL = inlineURL; + if (0 === (seen1 & 256)) + $this.canPlay = false; + else + $this.canPlay = canPlay; + if (0 === (seen1 & 512)) + $this.playIcon = ''; + else + $this.playIcon = playIcon; + if (0 === (seen1 & 1024)) + $this.avid = new Long(0, 0); + else + $this.avid = avid; + if (0 === (seen1 & 2048)) + $this.cid = new Long(0, 0); + else + $this.cid = cid; + if (0 === (seen1 & 4096)) + $this.dimension = null; + else + $this.dimension = dimension; + if (0 === (seen1 & 8192)) + $this.duration = new Long(0, 0); + else + $this.duration = duration; + if (0 === (seen1 & 16384)) + $this.jumpUrl = ''; + else + $this.jumpUrl = jumpUrl; + if (0 === (seen1 & 32768)) + $this.badge = emptyList(); + else + $this.badge = badge; + return $this; + } + } + class KItem_7 { + constructor(value) { + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + } + class KDynSubscription_0 extends KItem_7 { + constructor() { + KDynSubscription_instance_0 = null; + super(0); + KDynSubscription_instance_0 = this; + } + } + class KDynLiveRcmd_0 extends KItem_7 { + constructor() { + KDynLiveRcmd_instance_0 = null; + super(1); + KDynLiveRcmd_instance_0 = this; + } + } + class Companion_1109 { + constructor() { + Companion_instance_1109 = this; + var tmp = this; + tmp.itemValues$delegate_1 = lazy_0(KMdlDynSubscriptionNew$Companion$itemValues$delegate$lambda); + this.targetPath = '/bilibili.app.dynamic.v2.MdlDynSubscriptionNew'; + } + get_itemValues_e195su_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.itemValues$delegate_1; + var thisRef = this; + var property = itemValues$factory_4(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1096(); + } + get itemValues() { + return this.get_itemValues_e195su_k$(); + } + } + class $serializer_1096 { + constructor() { + $serializer_instance_1096 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KMdlDynSubscriptionNew', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('style', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('dynSubscription', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('dynLiveRcmd', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), get_nullable($serializer_getInstance_1092()), get_nullable($serializer_getInstance_1093())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_transient0 = 0; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_1092(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_1093(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_1092(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_1093(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KMdlDynSubscriptionNew.new_com_bapis_bilibili_app_dynamic_v2_KMdlDynSubscriptionNew_s3517k_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_2y0fq5_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.style === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.style); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.dynSubscription_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_1092(), value.dynSubscription_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.dynLiveRcmd_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_1093(), value.dynLiveRcmd_1); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_2y0fq5_k$(encoder, value instanceof KMdlDynSubscriptionNew ? value : THROW_CCE()); + } + } + class KMdlDynSubscriptionNew { + constructor(style, dynSubscription, dynLiveRcmd) { + Companion_getInstance_1109(); + style = style === VOID ? 0 : style; + dynSubscription = dynSubscription === VOID ? null : dynSubscription; + dynLiveRcmd = dynLiveRcmd === VOID ? null : dynLiveRcmd; + this.style = style; + this.dynSubscription_1 = dynSubscription; + this.dynLiveRcmd_1 = dynLiveRcmd; + var tmp = this; + tmp.itemNumber$delegate_1 = lazy_0(KMdlDynSubscriptionNew$itemNumber$delegate$lambda(this)); + } + get_style_iyqetk_k$() { + return this.style; + } + itemValue() { + if (!(this.dynSubscription_1 == null)) { + var tmp = this.dynSubscription_1; + return (tmp == null ? true : !(tmp == null)) ? tmp : null; + } else if (!(this.dynLiveRcmd_1 == null)) { + var tmp_0 = this.dynLiveRcmd_1; + return (tmp_0 == null ? true : !(tmp_0 == null)) ? tmp_0 : null; + } else { + return null; + } + } + itemTypeJs() { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = Companion_getInstance_1109().itemValues; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.KMdlDynSubscriptionNew.itemType.' call + var it = element; + tmp$ret$0 = it.value === _get_itemNumber__22vn01_4(this); + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + return tmp$ret$1; + } + styleEnum() { + return Companion_getInstance_1073().fromValue(this.style); + } + component1_7eebsc_k$() { + return this.style; + } + copy_8pj6gs_k$(style, dynSubscription, dynLiveRcmd) { + return new KMdlDynSubscriptionNew(style, dynSubscription, dynLiveRcmd); + } + copy(style, dynSubscription, dynLiveRcmd, $super) { + style = style === VOID ? this.style : style; + dynSubscription = dynSubscription === VOID ? this.dynSubscription_1 : dynSubscription; + dynLiveRcmd = dynLiveRcmd === VOID ? this.dynLiveRcmd_1 : dynLiveRcmd; + return this.copy_8pj6gs_k$(style, dynSubscription, dynLiveRcmd); + } + toString() { + return 'KMdlDynSubscriptionNew(style=' + this.style + ', dynSubscription=' + this.dynSubscription_1 + ', dynLiveRcmd=' + this.dynLiveRcmd_1 + ')'; + } + hashCode() { + var result = this.style; + result = imul(result, 31) + (this.dynSubscription_1 == null ? 0 : this.dynSubscription_1.hashCode()) | 0; + result = imul(result, 31) + (this.dynLiveRcmd_1 == null ? 0 : this.dynLiveRcmd_1.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KMdlDynSubscriptionNew)) + return false; + var tmp0_other_with_cast = other instanceof KMdlDynSubscriptionNew ? other : THROW_CCE(); + if (!(this.style === tmp0_other_with_cast.style)) + return false; + if (!equals(this.dynSubscription_1, tmp0_other_with_cast.dynSubscription_1)) + return false; + if (!equals(this.dynLiveRcmd_1, tmp0_other_with_cast.dynLiveRcmd_1)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KMdlDynSubscriptionNew_s3517k_k$(seen1, style, dynSubscription, dynLiveRcmd, serializationConstructorMarker) { + Companion_getInstance_1109(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1096().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.style = 0; + else + $this.style = style; + if (0 === (seen1 & 2)) + $this.dynSubscription_1 = null; + else + $this.dynSubscription_1 = dynSubscription; + if (0 === (seen1 & 4)) + $this.dynLiveRcmd_1 = null; + else + $this.dynLiveRcmd_1 = dynLiveRcmd; + var tmp = $this; + tmp.itemNumber$delegate_1 = lazy_0(KMdlDynSubscriptionNew$_init_$lambda_q2dmax($this)); + return $this; + } + } + class Companion_1110 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.MdlDynCourUp'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1097(); + } + } + class $serializer_1097 { + constructor() { + $serializer_instance_1097 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KMdlDynCourUp', this, 14); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('desc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('uri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('text1', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('badge', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('playIcon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('canPlay', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('isPreview', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('avid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('cid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('epid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + tmp0_serialDesc.addElement_5pzumi_k$('duration', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(13)); + tmp0_serialDesc.addElement_5pzumi_k$('seasonId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(14)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_1073()), StringSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = false; + var tmp12_local8 = false; + var tmp13_local9 = new Long(0, 0); + var tmp14_local10 = new Long(0, 0); + var tmp15_local11 = new Long(0, 0); + var tmp16_local12 = new Long(0, 0); + var tmp17_local13 = new Long(0, 0); + var tmp18_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp18_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_1073(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp18_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp18_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + tmp16_local12 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + tmp17_local13 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + } else + while (tmp1_flag) { + tmp2_index = tmp18_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_1073(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp18_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp18_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + case 12: + tmp16_local12 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + break; + case 13: + tmp17_local13 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp18_input.endStructure_1xqz0n_k$(tmp0_desc); + return KMdlDynCourUp.new_com_bapis_bilibili_app_dynamic_v2_KMdlDynCourUp_jc12r8_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, null); + } + serialize_hlpn9a_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.desc === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.desc); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.cover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.uri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.uri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.text1 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.text1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.badge == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 5, $serializer_getInstance_1073(), value.badge); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.playIcon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.playIcon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.canPlay === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 7, value.canPlay); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.isPreview === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 8, value.isPreview); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !value.avid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 9, value.avid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !value.cid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 10, value.cid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !value.epid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 11, value.epid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !value.duration.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 12, value.duration); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 13) ? true : !value.seasonId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 13, value.seasonId); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_hlpn9a_k$(encoder, value instanceof KMdlDynCourUp ? value : THROW_CCE()); + } + } + class KMdlDynCourUp { + constructor(title, desc, cover, uri, text1, badge, playIcon, canPlay, isPreview, avid, cid, epid, duration, seasonId) { + Companion_instance_1110; + title = title === VOID ? '' : title; + desc = desc === VOID ? '' : desc; + cover = cover === VOID ? '' : cover; + uri = uri === VOID ? '' : uri; + text1 = text1 === VOID ? '' : text1; + badge = badge === VOID ? null : badge; + playIcon = playIcon === VOID ? '' : playIcon; + canPlay = canPlay === VOID ? false : canPlay; + isPreview = isPreview === VOID ? false : isPreview; + avid = avid === VOID ? new Long(0, 0) : avid; + cid = cid === VOID ? new Long(0, 0) : cid; + epid = epid === VOID ? new Long(0, 0) : epid; + duration = duration === VOID ? new Long(0, 0) : duration; + seasonId = seasonId === VOID ? new Long(0, 0) : seasonId; + this.title = title; + this.desc = desc; + this.cover = cover; + this.uri = uri; + this.text1 = text1; + this.badge = badge; + this.playIcon = playIcon; + this.canPlay = canPlay; + this.isPreview = isPreview; + this.avid = avid; + this.cid = cid; + this.epid = epid; + this.duration = duration; + this.seasonId = seasonId; + } + get_title_iz32un_k$() { + return this.title; + } + get_desc_woknve_k$() { + return this.desc; + } + get_cover_ipug0e_k$() { + return this.cover; + } + get_uri_18iuil_k$() { + return this.uri; + } + get_text1_iz0m0r_k$() { + return this.text1; + } + get_badge_ip1cai_k$() { + return this.badge; + } + get_playIcon_qkju2_k$() { + return this.playIcon; + } + get_canPlay_acszln_k$() { + return this.canPlay; + } + get_isPreview_6c3nmz_k$() { + return this.isPreview; + } + get_avid_woj3a1_k$() { + return this.avid; + } + get_cid_18j82z_k$() { + return this.cid; + } + get_epid_wolirz_k$() { + return this.epid; + } + get_duration_6a6kpp_k$() { + return this.duration; + } + get_seasonId_h33f15_k$() { + return this.seasonId; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.desc; + } + component3_7eebsa_k$() { + return this.cover; + } + component4_7eebs9_k$() { + return this.uri; + } + component5_7eebs8_k$() { + return this.text1; + } + component6_7eebs7_k$() { + return this.badge; + } + component7_7eebs6_k$() { + return this.playIcon; + } + component8_7eebs5_k$() { + return this.canPlay; + } + component9_7eebs4_k$() { + return this.isPreview; + } + component10_gazzfo_k$() { + return this.avid; + } + component11_gazzfn_k$() { + return this.cid; + } + component12_gazzfm_k$() { + return this.epid; + } + component13_gazzfl_k$() { + return this.duration; + } + component14_gazzfk_k$() { + return this.seasonId; + } + copy_cqtyjn_k$(title, desc, cover, uri, text1, badge, playIcon, canPlay, isPreview, avid, cid, epid, duration, seasonId) { + return new KMdlDynCourUp(title, desc, cover, uri, text1, badge, playIcon, canPlay, isPreview, avid, cid, epid, duration, seasonId); + } + copy(title, desc, cover, uri, text1, badge, playIcon, canPlay, isPreview, avid, cid, epid, duration, seasonId, $super) { + title = title === VOID ? this.title : title; + desc = desc === VOID ? this.desc : desc; + cover = cover === VOID ? this.cover : cover; + uri = uri === VOID ? this.uri : uri; + text1 = text1 === VOID ? this.text1 : text1; + badge = badge === VOID ? this.badge : badge; + playIcon = playIcon === VOID ? this.playIcon : playIcon; + canPlay = canPlay === VOID ? this.canPlay : canPlay; + isPreview = isPreview === VOID ? this.isPreview : isPreview; + avid = avid === VOID ? this.avid : avid; + cid = cid === VOID ? this.cid : cid; + epid = epid === VOID ? this.epid : epid; + duration = duration === VOID ? this.duration : duration; + seasonId = seasonId === VOID ? this.seasonId : seasonId; + return this.copy_cqtyjn_k$(title, desc, cover, uri, text1, badge, playIcon, canPlay, isPreview, avid, cid, epid, duration, seasonId); + } + toString() { + return 'KMdlDynCourUp(title=' + this.title + ', desc=' + this.desc + ', cover=' + this.cover + ', uri=' + this.uri + ', text1=' + this.text1 + ', badge=' + this.badge + ', playIcon=' + this.playIcon + ', canPlay=' + this.canPlay + ', isPreview=' + this.isPreview + ', avid=' + this.avid.toString() + ', cid=' + this.cid.toString() + ', epid=' + this.epid.toString() + ', duration=' + this.duration.toString() + ', seasonId=' + this.seasonId.toString() + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.desc) | 0; + result = imul(result, 31) + getStringHashCode(this.cover) | 0; + result = imul(result, 31) + getStringHashCode(this.uri) | 0; + result = imul(result, 31) + getStringHashCode(this.text1) | 0; + result = imul(result, 31) + (this.badge == null ? 0 : this.badge.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.playIcon) | 0; + result = imul(result, 31) + getBooleanHashCode(this.canPlay) | 0; + result = imul(result, 31) + getBooleanHashCode(this.isPreview) | 0; + result = imul(result, 31) + this.avid.hashCode() | 0; + result = imul(result, 31) + this.cid.hashCode() | 0; + result = imul(result, 31) + this.epid.hashCode() | 0; + result = imul(result, 31) + this.duration.hashCode() | 0; + result = imul(result, 31) + this.seasonId.hashCode() | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KMdlDynCourUp)) + return false; + var tmp0_other_with_cast = other instanceof KMdlDynCourUp ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.desc === tmp0_other_with_cast.desc)) + return false; + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + if (!(this.uri === tmp0_other_with_cast.uri)) + return false; + if (!(this.text1 === tmp0_other_with_cast.text1)) + return false; + if (!equals(this.badge, tmp0_other_with_cast.badge)) + return false; + if (!(this.playIcon === tmp0_other_with_cast.playIcon)) + return false; + if (!(this.canPlay === tmp0_other_with_cast.canPlay)) + return false; + if (!(this.isPreview === tmp0_other_with_cast.isPreview)) + return false; + if (!this.avid.equals(tmp0_other_with_cast.avid)) + return false; + if (!this.cid.equals(tmp0_other_with_cast.cid)) + return false; + if (!this.epid.equals(tmp0_other_with_cast.epid)) + return false; + if (!this.duration.equals(tmp0_other_with_cast.duration)) + return false; + if (!this.seasonId.equals(tmp0_other_with_cast.seasonId)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KMdlDynCourUp_jc12r8_k$(seen1, title, desc, cover, uri, text1, badge, playIcon, canPlay, isPreview, avid, cid, epid, duration, seasonId, serializationConstructorMarker) { + Companion_instance_1110; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1097().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.desc = ''; + else + $this.desc = desc; + if (0 === (seen1 & 4)) + $this.cover = ''; + else + $this.cover = cover; + if (0 === (seen1 & 8)) + $this.uri = ''; + else + $this.uri = uri; + if (0 === (seen1 & 16)) + $this.text1 = ''; + else + $this.text1 = text1; + if (0 === (seen1 & 32)) + $this.badge = null; + else + $this.badge = badge; + if (0 === (seen1 & 64)) + $this.playIcon = ''; + else + $this.playIcon = playIcon; + if (0 === (seen1 & 128)) + $this.canPlay = false; + else + $this.canPlay = canPlay; + if (0 === (seen1 & 256)) + $this.isPreview = false; + else + $this.isPreview = isPreview; + if (0 === (seen1 & 512)) + $this.avid = new Long(0, 0); + else + $this.avid = avid; + if (0 === (seen1 & 1024)) + $this.cid = new Long(0, 0); + else + $this.cid = cid; + if (0 === (seen1 & 2048)) + $this.epid = new Long(0, 0); + else + $this.epid = epid; + if (0 === (seen1 & 4096)) + $this.duration = new Long(0, 0); + else + $this.duration = duration; + if (0 === (seen1 & 8192)) + $this.seasonId = new Long(0, 0); + else + $this.seasonId = seasonId; + return $this; + } + } + class Companion_1111 { + constructor() { + Companion_instance_1111 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer($serializer_getInstance_1099()), null, null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.MdlDynTopicSet'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1098(); + } + } + class $serializer_1098 { + constructor() { + $serializer_instance_1098 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KMdlDynTopicSet', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('topics', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('moreBtn', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('topicSetId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('pushId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_1111().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0], get_nullable($serializer_getInstance_1100()), LongSerializer_getInstance(), LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = new Long(0, 0); + var tmp7_local3 = new Long(0, 0); + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp9_cached = Companion_getInstance_1111().$childSerializers_1; + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp9_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_1100(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp9_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_1100(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KMdlDynTopicSet.new_com_bapis_bilibili_app_dynamic_v2_KMdlDynTopicSet_gxsmmo_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_hps3oz_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_1111().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.topics, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.topics); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.moreBtn == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_1100(), value.moreBtn); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.topicSetId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.topicSetId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !value.pushId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 3, value.pushId); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_hps3oz_k$(encoder, value instanceof KMdlDynTopicSet ? value : THROW_CCE()); + } + } + class KMdlDynTopicSet { + constructor(topics, moreBtn, topicSetId, pushId) { + Companion_getInstance_1111(); + topics = topics === VOID ? emptyList() : topics; + moreBtn = moreBtn === VOID ? null : moreBtn; + topicSetId = topicSetId === VOID ? new Long(0, 0) : topicSetId; + pushId = pushId === VOID ? new Long(0, 0) : pushId; + this.topics = topics; + this.moreBtn = moreBtn; + this.topicSetId = topicSetId; + this.pushId = pushId; + } + get_topics_k1z60d_k$() { + return this.topics; + } + get_moreBtn_lrq5su_k$() { + return this.moreBtn; + } + get_topicSetId_y5t5jd_k$() { + return this.topicSetId; + } + get_pushId_i95bku_k$() { + return this.pushId; + } + component1_7eebsc_k$() { + return this.topics; + } + component2_7eebsb_k$() { + return this.moreBtn; + } + component3_7eebsa_k$() { + return this.topicSetId; + } + component4_7eebs9_k$() { + return this.pushId; + } + copy_um4f7_k$(topics, moreBtn, topicSetId, pushId) { + return new KMdlDynTopicSet(topics, moreBtn, topicSetId, pushId); + } + copy(topics, moreBtn, topicSetId, pushId, $super) { + topics = topics === VOID ? this.topics : topics; + moreBtn = moreBtn === VOID ? this.moreBtn : moreBtn; + topicSetId = topicSetId === VOID ? this.topicSetId : topicSetId; + pushId = pushId === VOID ? this.pushId : pushId; + return this.copy_um4f7_k$(topics, moreBtn, topicSetId, pushId); + } + toString() { + return 'KMdlDynTopicSet(topics=' + this.topics + ', moreBtn=' + this.moreBtn + ', topicSetId=' + this.topicSetId.toString() + ', pushId=' + this.pushId.toString() + ')'; + } + hashCode() { + var result = hashCode(this.topics); + result = imul(result, 31) + (this.moreBtn == null ? 0 : this.moreBtn.hashCode()) | 0; + result = imul(result, 31) + this.topicSetId.hashCode() | 0; + result = imul(result, 31) + this.pushId.hashCode() | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KMdlDynTopicSet)) + return false; + var tmp0_other_with_cast = other instanceof KMdlDynTopicSet ? other : THROW_CCE(); + if (!equals(this.topics, tmp0_other_with_cast.topics)) + return false; + if (!equals(this.moreBtn, tmp0_other_with_cast.moreBtn)) + return false; + if (!this.topicSetId.equals(tmp0_other_with_cast.topicSetId)) + return false; + if (!this.pushId.equals(tmp0_other_with_cast.pushId)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KMdlDynTopicSet_gxsmmo_k$(seen1, topics, moreBtn, topicSetId, pushId, serializationConstructorMarker) { + Companion_getInstance_1111(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1098().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.topics = emptyList(); + else + $this.topics = topics; + if (0 === (seen1 & 2)) + $this.moreBtn = null; + else + $this.moreBtn = moreBtn; + if (0 === (seen1 & 4)) + $this.topicSetId = new Long(0, 0); + else + $this.topicSetId = topicSetId; + if (0 === (seen1 & 8)) + $this.pushId = new Long(0, 0); + else + $this.pushId = pushId; + return $this; + } + } + class Companion_1112 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.TopicItem'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1099(); + } + } + class $serializer_1099 { + constructor() { + $serializer_instance_1099 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KTopicItem', this, 7); + tmp0_serialDesc.addElement_5pzumi_k$('topicId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('topicName', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('url', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('desc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('desc2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('rcmdDesc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('button', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_1100())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp11_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_1100(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + } else + while (tmp1_flag) { + tmp2_index = tmp11_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_1100(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp11_input.endStructure_1xqz0n_k$(tmp0_desc); + return KTopicItem_0.new_com_bapis_bilibili_app_dynamic_v2_KTopicItem_g7dty4_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, null); + } + serialize_fu3bei_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.topicId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.topicId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.topicName === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.topicName); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.url === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.url); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.desc === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.desc); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.desc2 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.desc2); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.rcmdDesc === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.rcmdDesc); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.button == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 6, $serializer_getInstance_1100(), value.button); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_fu3bei_k$(encoder, value instanceof KTopicItem_0 ? value : THROW_CCE()); + } + } + class KTopicItem_0 { + constructor(topicId, topicName, url, desc, desc2, rcmdDesc, button) { + Companion_instance_1112; + topicId = topicId === VOID ? new Long(0, 0) : topicId; + topicName = topicName === VOID ? '' : topicName; + url = url === VOID ? '' : url; + desc = desc === VOID ? '' : desc; + desc2 = desc2 === VOID ? '' : desc2; + rcmdDesc = rcmdDesc === VOID ? '' : rcmdDesc; + button = button === VOID ? null : button; + this.topicId = topicId; + this.topicName = topicName; + this.url = url; + this.desc = desc; + this.desc2 = desc2; + this.rcmdDesc = rcmdDesc; + this.button = button; + } + get_topicId_hkqce7_k$() { + return this.topicId; + } + get_topicName_exnelt_k$() { + return this.topicName; + } + get_url_18iuii_k$() { + return this.url; + } + get_desc_woknve_k$() { + return this.desc; + } + get_desc2_iq7sew_k$() { + return this.desc2; + } + get_rcmdDesc_174j5u_k$() { + return this.rcmdDesc; + } + get_button_bmjiuz_k$() { + return this.button; + } + component1_7eebsc_k$() { + return this.topicId; + } + component2_7eebsb_k$() { + return this.topicName; + } + component3_7eebsa_k$() { + return this.url; + } + component4_7eebs9_k$() { + return this.desc; + } + component5_7eebs8_k$() { + return this.desc2; + } + component6_7eebs7_k$() { + return this.rcmdDesc; + } + component7_7eebs6_k$() { + return this.button; + } + copy_dn4u7m_k$(topicId, topicName, url, desc, desc2, rcmdDesc, button) { + return new KTopicItem_0(topicId, topicName, url, desc, desc2, rcmdDesc, button); + } + copy(topicId, topicName, url, desc, desc2, rcmdDesc, button, $super) { + topicId = topicId === VOID ? this.topicId : topicId; + topicName = topicName === VOID ? this.topicName : topicName; + url = url === VOID ? this.url : url; + desc = desc === VOID ? this.desc : desc; + desc2 = desc2 === VOID ? this.desc2 : desc2; + rcmdDesc = rcmdDesc === VOID ? this.rcmdDesc : rcmdDesc; + button = button === VOID ? this.button : button; + return this.copy_dn4u7m_k$(topicId, topicName, url, desc, desc2, rcmdDesc, button); + } + toString() { + return 'KTopicItem(topicId=' + this.topicId.toString() + ', topicName=' + this.topicName + ', url=' + this.url + ', desc=' + this.desc + ', desc2=' + this.desc2 + ', rcmdDesc=' + this.rcmdDesc + ', button=' + this.button + ')'; + } + hashCode() { + var result = this.topicId.hashCode(); + result = imul(result, 31) + getStringHashCode(this.topicName) | 0; + result = imul(result, 31) + getStringHashCode(this.url) | 0; + result = imul(result, 31) + getStringHashCode(this.desc) | 0; + result = imul(result, 31) + getStringHashCode(this.desc2) | 0; + result = imul(result, 31) + getStringHashCode(this.rcmdDesc) | 0; + result = imul(result, 31) + (this.button == null ? 0 : this.button.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KTopicItem_0)) + return false; + var tmp0_other_with_cast = other instanceof KTopicItem_0 ? other : THROW_CCE(); + if (!this.topicId.equals(tmp0_other_with_cast.topicId)) + return false; + if (!(this.topicName === tmp0_other_with_cast.topicName)) + return false; + if (!(this.url === tmp0_other_with_cast.url)) + return false; + if (!(this.desc === tmp0_other_with_cast.desc)) + return false; + if (!(this.desc2 === tmp0_other_with_cast.desc2)) + return false; + if (!(this.rcmdDesc === tmp0_other_with_cast.rcmdDesc)) + return false; + if (!equals(this.button, tmp0_other_with_cast.button)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KTopicItem_g7dty4_k$(seen1, topicId, topicName, url, desc, desc2, rcmdDesc, button, serializationConstructorMarker) { + Companion_instance_1112; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1099().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.topicId = new Long(0, 0); + else + $this.topicId = topicId; + if (0 === (seen1 & 2)) + $this.topicName = ''; + else + $this.topicName = topicName; + if (0 === (seen1 & 4)) + $this.url = ''; + else + $this.url = url; + if (0 === (seen1 & 8)) + $this.desc = ''; + else + $this.desc = desc; + if (0 === (seen1 & 16)) + $this.desc2 = ''; + else + $this.desc2 = desc2; + if (0 === (seen1 & 32)) + $this.rcmdDesc = ''; + else + $this.rcmdDesc = rcmdDesc; + if (0 === (seen1 & 64)) + $this.button = null; + else + $this.button = button; + return $this; + } + } + class Companion_1113 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.IconButton'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1100(); + } + } + class $serializer_1100 { + constructor() { + $serializer_instance_1100 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KIconButton', this, 5); + tmp0_serialDesc.addElement_5pzumi_k$('text', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('iconHead', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('iconTail', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('jumpUri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('routerAction', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = 0; + var tmp9_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp9_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + } else + while (tmp1_flag) { + tmp2_index = tmp9_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp9_input.endStructure_1xqz0n_k$(tmp0_desc); + return KIconButton.new_com_bapis_bilibili_app_dynamic_v2_KIconButton_jrjix_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); + } + serialize_anbh1d_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.text === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.text); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.iconHead === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.iconHead); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.iconTail === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.iconTail); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.jumpUri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.jumpUri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.routerAction === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 4, value.routerAction); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_anbh1d_k$(encoder, value instanceof KIconButton ? value : THROW_CCE()); + } + } + class KIconButton { + constructor(text, iconHead, iconTail, jumpUri, routerAction) { + Companion_instance_1113; + text = text === VOID ? '' : text; + iconHead = iconHead === VOID ? '' : iconHead; + iconTail = iconTail === VOID ? '' : iconTail; + jumpUri = jumpUri === VOID ? '' : jumpUri; + routerAction = routerAction === VOID ? 0 : routerAction; + this.text = text; + this.iconHead = iconHead; + this.iconTail = iconTail; + this.jumpUri = jumpUri; + this.routerAction = routerAction; + } + get_text_wouvsm_k$() { + return this.text; + } + get_iconHead_r0m7r6_k$() { + return this.iconHead; + } + get_iconTail_r0tstu_k$() { + return this.iconTail; + } + get_jumpUri_jhqikr_k$() { + return this.jumpUri; + } + get_routerAction_8u0jx4_k$() { + return this.routerAction; + } + routerActionEnum() { + return Companion_getInstance_1074().fromValue(this.routerAction); + } + component1_7eebsc_k$() { + return this.text; + } + component2_7eebsb_k$() { + return this.iconHead; + } + component3_7eebsa_k$() { + return this.iconTail; + } + component4_7eebs9_k$() { + return this.jumpUri; + } + component5_7eebs8_k$() { + return this.routerAction; + } + copy_syxvi5_k$(text, iconHead, iconTail, jumpUri, routerAction) { + return new KIconButton(text, iconHead, iconTail, jumpUri, routerAction); + } + copy(text, iconHead, iconTail, jumpUri, routerAction, $super) { + text = text === VOID ? this.text : text; + iconHead = iconHead === VOID ? this.iconHead : iconHead; + iconTail = iconTail === VOID ? this.iconTail : iconTail; + jumpUri = jumpUri === VOID ? this.jumpUri : jumpUri; + routerAction = routerAction === VOID ? this.routerAction : routerAction; + return this.copy_syxvi5_k$(text, iconHead, iconTail, jumpUri, routerAction); + } + toString() { + return 'KIconButton(text=' + this.text + ', iconHead=' + this.iconHead + ', iconTail=' + this.iconTail + ', jumpUri=' + this.jumpUri + ', routerAction=' + this.routerAction + ')'; + } + hashCode() { + var result = getStringHashCode(this.text); + result = imul(result, 31) + getStringHashCode(this.iconHead) | 0; + result = imul(result, 31) + getStringHashCode(this.iconTail) | 0; + result = imul(result, 31) + getStringHashCode(this.jumpUri) | 0; + result = imul(result, 31) + this.routerAction | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KIconButton)) + return false; + var tmp0_other_with_cast = other instanceof KIconButton ? other : THROW_CCE(); + if (!(this.text === tmp0_other_with_cast.text)) + return false; + if (!(this.iconHead === tmp0_other_with_cast.iconHead)) + return false; + if (!(this.iconTail === tmp0_other_with_cast.iconTail)) + return false; + if (!(this.jumpUri === tmp0_other_with_cast.jumpUri)) + return false; + if (!(this.routerAction === tmp0_other_with_cast.routerAction)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KIconButton_jrjix_k$(seen1, text, iconHead, iconTail, jumpUri, routerAction, serializationConstructorMarker) { + Companion_instance_1113; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1100().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.text = ''; + else + $this.text = text; + if (0 === (seen1 & 2)) + $this.iconHead = ''; + else + $this.iconHead = iconHead; + if (0 === (seen1 & 4)) + $this.iconTail = ''; + else + $this.iconTail = iconTail; + if (0 === (seen1 & 8)) + $this.jumpUri = ''; + else + $this.jumpUri = jumpUri; + if (0 === (seen1 & 16)) + $this.routerAction = 0; + else + $this.routerAction = routerAction; + return $this; + } + } + class KItem_8 { + constructor(value) { + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + } + class KPgc extends KItem_8 { + constructor() { + KPgc_instance = null; + super(0); + KPgc_instance = this; + } + } + class KGoods extends KItem_8 { + constructor() { + KGoods_instance = null; + super(1); + KGoods_instance = this; + } + } + class KVote extends KItem_8 { + constructor() { + KVote_instance = null; + super(2); + KVote_instance = this; + } + } + class KCommon extends KItem_8 { + constructor() { + KCommon_instance = null; + super(3); + KCommon_instance = this; + } + } + class KEsport_0 extends KItem_8 { + constructor() { + KEsport_instance_0 = null; + super(4); + KEsport_instance_0 = this; + } + } + class KVote2 extends KItem_8 { + constructor() { + KVote2_instance = null; + super(5); + KVote2_instance = this; + } + } + class KUgc extends KItem_8 { + constructor() { + KUgc_instance = null; + super(6); + KUgc_instance = this; + } + } + class KUp_0 extends KItem_8 { + constructor() { + KUp_instance = null; + super(7); + KUp_instance = this; + } + } + class KArticle_0 extends KItem_8 { + constructor() { + KArticle_instance_0 = null; + super(8); + KArticle_instance_0 = this; + } + } + class KLive_2 extends KItem_8 { + constructor() { + KLive_instance_1 = null; + super(9); + KLive_instance_1 = this; + } + } + class KMusic extends KItem_8 { + constructor() { + KMusic_instance = null; + super(10); + KMusic_instance = this; + } + } + class Companion_1114 { + constructor() { + Companion_instance_1114 = this; + var tmp = this; + tmp.itemValues$delegate_1 = lazy_0(KModuleAdditional$Companion$itemValues$delegate$lambda); + this.targetPath = '/bilibili.app.dynamic.v2.ModuleAdditional'; + } + get_itemValues_e195su_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.itemValues$delegate_1; + var thisRef = this; + var property = itemValues$factory_5(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1101(); + } + get itemValues() { + return this.get_itemValues_e195su_k$(); + } + } + class $serializer_1101 { + constructor() { + $serializer_instance_1101 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KModuleAdditional', this, 14); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('rid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('needWriteCalender', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('pgc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('goods', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('vote', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('common', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('esport', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('vote2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('ugc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('up', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('article', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + tmp0_serialDesc.addElement_5pzumi_k$('live', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(13)); + tmp0_serialDesc.addElement_5pzumi_k$('music', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(14)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), LongSerializer_getInstance(), BooleanSerializer_getInstance(), get_nullable($serializer_getInstance_1102()), get_nullable($serializer_getInstance_1103()), get_nullable($serializer_getInstance_1105()), get_nullable($serializer_getInstance_1107()), get_nullable($serializer_getInstance_1108()), get_nullable($serializer_getInstance_1121()), get_nullable($serializer_getInstance_1106()), get_nullable($serializer_getInstance_1113()), get_nullable($serializer_getInstance_1117()), get_nullable($serializer_getInstance_1118()), get_nullable($serializer_getInstance_1119())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = new Long(0, 0); + var tmp6_local2 = false; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_local8 = null; + var tmp13_local9 = null; + var tmp14_local10 = null; + var tmp15_local11 = null; + var tmp16_local12 = null; + var tmp17_local13 = null; + var tmp18_transient0 = 0; + var tmp19_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp19_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp19_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp19_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp19_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp19_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_1102(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp19_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_1103(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp19_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_1105(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp19_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_1107(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp19_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_1108(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp19_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_1121(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp19_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 9, $serializer_getInstance_1106(), tmp13_local9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp19_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 10, $serializer_getInstance_1113(), tmp14_local10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp19_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 11, $serializer_getInstance_1117(), tmp15_local11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + tmp16_local12 = tmp19_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 12, $serializer_getInstance_1118(), tmp16_local12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + tmp17_local13 = tmp19_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 13, $serializer_getInstance_1119(), tmp17_local13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + } else + while (tmp1_flag) { + tmp2_index = tmp19_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp19_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp19_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp19_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp19_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_1102(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp19_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_1103(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp19_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_1105(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp19_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_1107(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp19_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_1108(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp19_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_1121(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp19_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 9, $serializer_getInstance_1106(), tmp13_local9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp19_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 10, $serializer_getInstance_1113(), tmp14_local10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp19_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 11, $serializer_getInstance_1117(), tmp15_local11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + case 12: + tmp16_local12 = tmp19_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 12, $serializer_getInstance_1118(), tmp16_local12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + break; + case 13: + tmp17_local13 = tmp19_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 13, $serializer_getInstance_1119(), tmp17_local13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp19_input.endStructure_1xqz0n_k$(tmp0_desc); + return KModuleAdditional_0.new_com_bapis_bilibili_app_dynamic_v2_KModuleAdditional_gh6nsb_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, null); + } + serialize_c5roq1_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.type === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.type); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.rid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.rid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.needWriteCalender === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 2, value.needWriteCalender); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.pgc_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_1102(), value.pgc_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.goods_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, $serializer_getInstance_1103(), value.goods_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.vote_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 5, $serializer_getInstance_1105(), value.vote_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.common_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 6, $serializer_getInstance_1107(), value.common_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.esport_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 7, $serializer_getInstance_1108(), value.esport_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.vote2__1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 8, $serializer_getInstance_1121(), value.vote2__1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.ugc_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 9, $serializer_getInstance_1106(), value.ugc_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.up_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 10, $serializer_getInstance_1113(), value.up_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.article_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 11, $serializer_getInstance_1117(), value.article_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !(value.live_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 12, $serializer_getInstance_1118(), value.live_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 13) ? true : !(value.music_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 13, $serializer_getInstance_1119(), value.music_1); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_c5roq1_k$(encoder, value instanceof KModuleAdditional_0 ? value : THROW_CCE()); + } + } + class KModuleAdditional_0 { + constructor(type, rid, needWriteCalender, pgc, goods, vote, common, esport, vote2, ugc, up, article, live, music) { + Companion_getInstance_1114(); + type = type === VOID ? 0 : type; + rid = rid === VOID ? new Long(0, 0) : rid; + needWriteCalender = needWriteCalender === VOID ? false : needWriteCalender; + pgc = pgc === VOID ? null : pgc; + goods = goods === VOID ? null : goods; + vote = vote === VOID ? null : vote; + common = common === VOID ? null : common; + esport = esport === VOID ? null : esport; + vote2 = vote2 === VOID ? null : vote2; + ugc = ugc === VOID ? null : ugc; + up = up === VOID ? null : up; + article = article === VOID ? null : article; + live = live === VOID ? null : live; + music = music === VOID ? null : music; + this.type = type; + this.rid = rid; + this.needWriteCalender = needWriteCalender; + this.pgc_1 = pgc; + this.goods_1 = goods; + this.vote_1 = vote; + this.common_1 = common; + this.esport_1 = esport; + this.vote2__1 = vote2; + this.ugc_1 = ugc; + this.up_1 = up; + this.article_1 = article; + this.live_1 = live; + this.music_1 = music; + var tmp = this; + tmp.itemNumber$delegate_1 = lazy_0(KModuleAdditional$itemNumber$delegate$lambda(this)); + } + get_type_wovaf7_k$() { + return this.type; + } + get_rid_18iwyk_k$() { + return this.rid; + } + get_needWriteCalender_peu31i_k$() { + return this.needWriteCalender; + } + itemValue() { + if (!(this.pgc_1 == null)) { + var tmp = this.pgc_1; + return (tmp == null ? true : !(tmp == null)) ? tmp : null; + } else if (!(this.goods_1 == null)) { + var tmp_0 = this.goods_1; + return (tmp_0 == null ? true : !(tmp_0 == null)) ? tmp_0 : null; + } else if (!(this.vote_1 == null)) { + var tmp_1 = this.vote_1; + return (tmp_1 == null ? true : !(tmp_1 == null)) ? tmp_1 : null; + } else if (!(this.common_1 == null)) { + var tmp_2 = this.common_1; + return (tmp_2 == null ? true : !(tmp_2 == null)) ? tmp_2 : null; + } else if (!(this.esport_1 == null)) { + var tmp_3 = this.esport_1; + return (tmp_3 == null ? true : !(tmp_3 == null)) ? tmp_3 : null; + } else if (!(this.vote2__1 == null)) { + var tmp_4 = this.vote2__1; + return (tmp_4 == null ? true : !(tmp_4 == null)) ? tmp_4 : null; + } else if (!(this.ugc_1 == null)) { + var tmp_5 = this.ugc_1; + return (tmp_5 == null ? true : !(tmp_5 == null)) ? tmp_5 : null; + } else if (!(this.up_1 == null)) { + var tmp_6 = this.up_1; + return (tmp_6 == null ? true : !(tmp_6 == null)) ? tmp_6 : null; + } else if (!(this.article_1 == null)) { + var tmp_7 = this.article_1; + return (tmp_7 == null ? true : !(tmp_7 == null)) ? tmp_7 : null; + } else if (!(this.live_1 == null)) { + var tmp_8 = this.live_1; + return (tmp_8 == null ? true : !(tmp_8 == null)) ? tmp_8 : null; + } else if (!(this.music_1 == null)) { + var tmp_9 = this.music_1; + return (tmp_9 == null ? true : !(tmp_9 == null)) ? tmp_9 : null; + } else { + return null; + } + } + itemTypeJs() { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = Companion_getInstance_1114().itemValues; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.KModuleAdditional.itemType.' call + var it = element; + tmp$ret$0 = it.value === _get_itemNumber__22vn01_5(this); + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + return tmp$ret$1; + } + typeEnum() { + return Companion_getInstance_1075().fromValue(this.type); + } + component1_7eebsc_k$() { + return this.type; + } + component2_7eebsb_k$() { + return this.rid; + } + component3_7eebsa_k$() { + return this.needWriteCalender; + } + copy_rkmgcd_k$(type, rid, needWriteCalender, pgc, goods, vote, common, esport, vote2, ugc, up, article, live, music) { + return new KModuleAdditional_0(type, rid, needWriteCalender, pgc, goods, vote, common, esport, vote2, ugc, up, article, live, music); + } + copy(type, rid, needWriteCalender, pgc, goods, vote, common, esport, vote2, ugc, up, article, live, music, $super) { + type = type === VOID ? this.type : type; + rid = rid === VOID ? this.rid : rid; + needWriteCalender = needWriteCalender === VOID ? this.needWriteCalender : needWriteCalender; + pgc = pgc === VOID ? this.pgc_1 : pgc; + goods = goods === VOID ? this.goods_1 : goods; + vote = vote === VOID ? this.vote_1 : vote; + common = common === VOID ? this.common_1 : common; + esport = esport === VOID ? this.esport_1 : esport; + vote2 = vote2 === VOID ? this.vote2__1 : vote2; + ugc = ugc === VOID ? this.ugc_1 : ugc; + up = up === VOID ? this.up_1 : up; + article = article === VOID ? this.article_1 : article; + live = live === VOID ? this.live_1 : live; + music = music === VOID ? this.music_1 : music; + return this.copy_rkmgcd_k$(type, rid, needWriteCalender, pgc, goods, vote, common, esport, vote2, ugc, up, article, live, music); + } + toString() { + return 'KModuleAdditional(type=' + this.type + ', rid=' + this.rid.toString() + ', needWriteCalender=' + this.needWriteCalender + ', pgc=' + this.pgc_1 + ', goods=' + this.goods_1 + ', vote=' + this.vote_1 + ', common=' + this.common_1 + ', esport=' + this.esport_1 + ', vote2=' + this.vote2__1 + ', ugc=' + this.ugc_1 + ', up=' + this.up_1 + ', article=' + this.article_1 + ', live=' + this.live_1 + ', music=' + this.music_1 + ')'; + } + hashCode() { + var result = this.type; + result = imul(result, 31) + this.rid.hashCode() | 0; + result = imul(result, 31) + getBooleanHashCode(this.needWriteCalender) | 0; + result = imul(result, 31) + (this.pgc_1 == null ? 0 : this.pgc_1.hashCode()) | 0; + result = imul(result, 31) + (this.goods_1 == null ? 0 : this.goods_1.hashCode()) | 0; + result = imul(result, 31) + (this.vote_1 == null ? 0 : this.vote_1.hashCode()) | 0; + result = imul(result, 31) + (this.common_1 == null ? 0 : this.common_1.hashCode()) | 0; + result = imul(result, 31) + (this.esport_1 == null ? 0 : this.esport_1.hashCode()) | 0; + result = imul(result, 31) + (this.vote2__1 == null ? 0 : this.vote2__1.hashCode()) | 0; + result = imul(result, 31) + (this.ugc_1 == null ? 0 : this.ugc_1.hashCode()) | 0; + result = imul(result, 31) + (this.up_1 == null ? 0 : this.up_1.hashCode()) | 0; + result = imul(result, 31) + (this.article_1 == null ? 0 : this.article_1.hashCode()) | 0; + result = imul(result, 31) + (this.live_1 == null ? 0 : this.live_1.hashCode()) | 0; + result = imul(result, 31) + (this.music_1 == null ? 0 : this.music_1.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KModuleAdditional_0)) + return false; + var tmp0_other_with_cast = other instanceof KModuleAdditional_0 ? other : THROW_CCE(); + if (!(this.type === tmp0_other_with_cast.type)) + return false; + if (!this.rid.equals(tmp0_other_with_cast.rid)) + return false; + if (!(this.needWriteCalender === tmp0_other_with_cast.needWriteCalender)) + return false; + if (!equals(this.pgc_1, tmp0_other_with_cast.pgc_1)) + return false; + if (!equals(this.goods_1, tmp0_other_with_cast.goods_1)) + return false; + if (!equals(this.vote_1, tmp0_other_with_cast.vote_1)) + return false; + if (!equals(this.common_1, tmp0_other_with_cast.common_1)) + return false; + if (!equals(this.esport_1, tmp0_other_with_cast.esport_1)) + return false; + if (!equals(this.vote2__1, tmp0_other_with_cast.vote2__1)) + return false; + if (!equals(this.ugc_1, tmp0_other_with_cast.ugc_1)) + return false; + if (!equals(this.up_1, tmp0_other_with_cast.up_1)) + return false; + if (!equals(this.article_1, tmp0_other_with_cast.article_1)) + return false; + if (!equals(this.live_1, tmp0_other_with_cast.live_1)) + return false; + if (!equals(this.music_1, tmp0_other_with_cast.music_1)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KModuleAdditional_gh6nsb_k$(seen1, type, rid, needWriteCalender, pgc, goods, vote, common, esport, vote2, ugc, up, article, live, music, serializationConstructorMarker) { + Companion_getInstance_1114(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1101().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.type = 0; + else + $this.type = type; + if (0 === (seen1 & 2)) + $this.rid = new Long(0, 0); + else + $this.rid = rid; + if (0 === (seen1 & 4)) + $this.needWriteCalender = false; + else + $this.needWriteCalender = needWriteCalender; + if (0 === (seen1 & 8)) + $this.pgc_1 = null; + else + $this.pgc_1 = pgc; + if (0 === (seen1 & 16)) + $this.goods_1 = null; + else + $this.goods_1 = goods; + if (0 === (seen1 & 32)) + $this.vote_1 = null; + else + $this.vote_1 = vote; + if (0 === (seen1 & 64)) + $this.common_1 = null; + else + $this.common_1 = common; + if (0 === (seen1 & 128)) + $this.esport_1 = null; + else + $this.esport_1 = esport; + if (0 === (seen1 & 256)) + $this.vote2__1 = null; + else + $this.vote2__1 = vote2; + if (0 === (seen1 & 512)) + $this.ugc_1 = null; + else + $this.ugc_1 = ugc; + if (0 === (seen1 & 1024)) + $this.up_1 = null; + else + $this.up_1 = up; + if (0 === (seen1 & 2048)) + $this.article_1 = null; + else + $this.article_1 = article; + if (0 === (seen1 & 4096)) + $this.live_1 = null; + else + $this.live_1 = live; + if (0 === (seen1 & 8192)) + $this.music_1 = null; + else + $this.music_1 = music; + var tmp = $this; + tmp.itemNumber$delegate_1 = lazy_0(KModuleAdditional$_init_$lambda_fkze43($this)); + return $this; + } + } + class Companion_1115 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.AdditionalPGC'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1102(); + } + } + class $serializer_1102 { + constructor() { + $serializer_instance_1102 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KAdditionalPGC', this, 10); + tmp0_serialDesc.addElement_5pzumi_k$('headText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('imageUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('descText1', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('descText2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('url', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('button', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('headIcon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('style', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_1085()), StringSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_local8 = 0; + var tmp13_local9 = null; + var tmp14_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp14_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_1085(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + } else + while (tmp1_flag) { + tmp2_index = tmp14_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_1085(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp14_input.endStructure_1xqz0n_k$(tmp0_desc); + return KAdditionalPGC.new_com_bapis_bilibili_app_dynamic_v2_KAdditionalPGC_mk4t9e_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, null); + } + serialize_w3si1j_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.headText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.headText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.imageUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.imageUrl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.descText1 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.descText1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.descText2 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.descText2); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.url === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.url); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.button == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 6, $serializer_getInstance_1085(), value.button); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.headIcon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.headIcon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.style === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 8, value.style); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.type === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 9, value.type); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_w3si1j_k$(encoder, value instanceof KAdditionalPGC ? value : THROW_CCE()); + } + } + class KAdditionalPGC { + constructor(headText, title, imageUrl, descText1, descText2, url, button, headIcon, style, type) { + Companion_instance_1115; + headText = headText === VOID ? '' : headText; + title = title === VOID ? '' : title; + imageUrl = imageUrl === VOID ? '' : imageUrl; + descText1 = descText1 === VOID ? '' : descText1; + descText2 = descText2 === VOID ? '' : descText2; + url = url === VOID ? '' : url; + button = button === VOID ? null : button; + headIcon = headIcon === VOID ? '' : headIcon; + style = style === VOID ? 0 : style; + type = type === VOID ? '' : type; + this.headText = headText; + this.title = title; + this.imageUrl = imageUrl; + this.descText1 = descText1; + this.descText2 = descText2; + this.url = url; + this.button = button; + this.headIcon = headIcon; + this.style = style; + this.type = type; + } + get_headText_krvc3a_k$() { + return this.headText; + } + get_title_iz32un_k$() { + return this.title; + } + get_imageUrl_p0dvj1_k$() { + return this.imageUrl; + } + get_descText1_wuy7ze_k$() { + return this.descText1; + } + get_descText2_wuy7zf_k$() { + return this.descText2; + } + get_url_18iuii_k$() { + return this.url; + } + get_button_bmjiuz_k$() { + return this.button; + } + get_headIcon_kro9j6_k$() { + return this.headIcon; + } + get_style_iyqetk_k$() { + return this.style; + } + get_type_wovaf7_k$() { + return this.type; + } + styleEnum() { + return Companion_getInstance_1076().fromValue(this.style); + } + component1_7eebsc_k$() { + return this.headText; + } + component2_7eebsb_k$() { + return this.title; + } + component3_7eebsa_k$() { + return this.imageUrl; + } + component4_7eebs9_k$() { + return this.descText1; + } + component5_7eebs8_k$() { + return this.descText2; + } + component6_7eebs7_k$() { + return this.url; + } + component7_7eebs6_k$() { + return this.button; + } + component8_7eebs5_k$() { + return this.headIcon; + } + component9_7eebs4_k$() { + return this.style; + } + component10_gazzfo_k$() { + return this.type; + } + copy_xmhswi_k$(headText, title, imageUrl, descText1, descText2, url, button, headIcon, style, type) { + return new KAdditionalPGC(headText, title, imageUrl, descText1, descText2, url, button, headIcon, style, type); + } + copy(headText, title, imageUrl, descText1, descText2, url, button, headIcon, style, type, $super) { + headText = headText === VOID ? this.headText : headText; + title = title === VOID ? this.title : title; + imageUrl = imageUrl === VOID ? this.imageUrl : imageUrl; + descText1 = descText1 === VOID ? this.descText1 : descText1; + descText2 = descText2 === VOID ? this.descText2 : descText2; + url = url === VOID ? this.url : url; + button = button === VOID ? this.button : button; + headIcon = headIcon === VOID ? this.headIcon : headIcon; + style = style === VOID ? this.style : style; + type = type === VOID ? this.type : type; + return this.copy_xmhswi_k$(headText, title, imageUrl, descText1, descText2, url, button, headIcon, style, type); + } + toString() { + return 'KAdditionalPGC(headText=' + this.headText + ', title=' + this.title + ', imageUrl=' + this.imageUrl + ', descText1=' + this.descText1 + ', descText2=' + this.descText2 + ', url=' + this.url + ', button=' + this.button + ', headIcon=' + this.headIcon + ', style=' + this.style + ', type=' + this.type + ')'; + } + hashCode() { + var result = getStringHashCode(this.headText); + result = imul(result, 31) + getStringHashCode(this.title) | 0; + result = imul(result, 31) + getStringHashCode(this.imageUrl) | 0; + result = imul(result, 31) + getStringHashCode(this.descText1) | 0; + result = imul(result, 31) + getStringHashCode(this.descText2) | 0; + result = imul(result, 31) + getStringHashCode(this.url) | 0; + result = imul(result, 31) + (this.button == null ? 0 : this.button.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.headIcon) | 0; + result = imul(result, 31) + this.style | 0; + result = imul(result, 31) + getStringHashCode(this.type) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KAdditionalPGC)) + return false; + var tmp0_other_with_cast = other instanceof KAdditionalPGC ? other : THROW_CCE(); + if (!(this.headText === tmp0_other_with_cast.headText)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.imageUrl === tmp0_other_with_cast.imageUrl)) + return false; + if (!(this.descText1 === tmp0_other_with_cast.descText1)) + return false; + if (!(this.descText2 === tmp0_other_with_cast.descText2)) + return false; + if (!(this.url === tmp0_other_with_cast.url)) + return false; + if (!equals(this.button, tmp0_other_with_cast.button)) + return false; + if (!(this.headIcon === tmp0_other_with_cast.headIcon)) + return false; + if (!(this.style === tmp0_other_with_cast.style)) + return false; + if (!(this.type === tmp0_other_with_cast.type)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KAdditionalPGC_mk4t9e_k$(seen1, headText, title, imageUrl, descText1, descText2, url, button, headIcon, style, type, serializationConstructorMarker) { + Companion_instance_1115; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1102().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.headText = ''; + else + $this.headText = headText; + if (0 === (seen1 & 2)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 4)) + $this.imageUrl = ''; + else + $this.imageUrl = imageUrl; + if (0 === (seen1 & 8)) + $this.descText1 = ''; + else + $this.descText1 = descText1; + if (0 === (seen1 & 16)) + $this.descText2 = ''; + else + $this.descText2 = descText2; + if (0 === (seen1 & 32)) + $this.url = ''; + else + $this.url = url; + if (0 === (seen1 & 64)) + $this.button = null; + else + $this.button = button; + if (0 === (seen1 & 128)) + $this.headIcon = ''; + else + $this.headIcon = headIcon; + if (0 === (seen1 & 256)) + $this.style = 0; + else + $this.style = style; + if (0 === (seen1 & 512)) + $this.type = ''; + else + $this.type = type; + return $this; + } + } + class Companion_1116 { + constructor() { + Companion_instance_1116 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, new ArrayListSerializer($serializer_getInstance_1104()), null, null, null, null, null, null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.AdditionGoods'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1103(); + } + } + class $serializer_1103 { + constructor() { + $serializer_instance_1103 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KAdditionGoods', this, 9); + tmp0_serialDesc.addElement_5pzumi_k$('rcmdDesc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('goodsItems', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('cardType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('icon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('uri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('sourceType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('jumpType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('appName', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('adMarkIcon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_1116().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), tmp0_cached[1], StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = 0; + var tmp10_local6 = 0; + var tmp11_local7 = null; + var tmp12_local8 = null; + var tmp13_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp14_cached = Companion_getInstance_1116().$childSerializers_1; + if (tmp13_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp13_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp14_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp13_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp13_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + } else + while (tmp1_flag) { + tmp2_index = tmp13_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp13_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp14_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp13_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp13_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp13_input.endStructure_1xqz0n_k$(tmp0_desc); + return KAdditionGoods.new_com_bapis_bilibili_app_dynamic_v2_KAdditionGoods_82kvj9_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, null); + } + serialize_fmgt7i_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_1116().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.rcmdDesc === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.rcmdDesc); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !equals(value.goodsItems, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 1, tmp2_cached[1], value.goodsItems); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.cardType === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.cardType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.icon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.icon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.uri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.uri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.sourceType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 5, value.sourceType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.jumpType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 6, value.jumpType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.appName === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.appName); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.adMarkIcon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 8, value.adMarkIcon); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_fmgt7i_k$(encoder, value instanceof KAdditionGoods ? value : THROW_CCE()); + } + } + class KAdditionGoods { + constructor(rcmdDesc, goodsItems, cardType, icon, uri, sourceType, jumpType, appName, adMarkIcon) { + Companion_getInstance_1116(); + rcmdDesc = rcmdDesc === VOID ? '' : rcmdDesc; + goodsItems = goodsItems === VOID ? emptyList() : goodsItems; + cardType = cardType === VOID ? '' : cardType; + icon = icon === VOID ? '' : icon; + uri = uri === VOID ? '' : uri; + sourceType = sourceType === VOID ? 0 : sourceType; + jumpType = jumpType === VOID ? 0 : jumpType; + appName = appName === VOID ? '' : appName; + adMarkIcon = adMarkIcon === VOID ? '' : adMarkIcon; + this.rcmdDesc = rcmdDesc; + this.goodsItems = goodsItems; + this.cardType = cardType; + this.icon = icon; + this.uri = uri; + this.sourceType = sourceType; + this.jumpType = jumpType; + this.appName = appName; + this.adMarkIcon = adMarkIcon; + } + get_rcmdDesc_174j5u_k$() { + return this.rcmdDesc; + } + get_goodsItems_fnu4j1_k$() { + return this.goodsItems; + } + get_cardType_vxu2tp_k$() { + return this.cardType; + } + get_icon_wont8i_k$() { + return this.icon; + } + get_uri_18iuil_k$() { + return this.uri; + } + get_sourceType_wh556m_k$() { + return this.sourceType; + } + get_jumpType_z060cx_k$() { + return this.jumpType; + } + get_appName_bv95lp_k$() { + return this.appName; + } + get_adMarkIcon_iyzdte_k$() { + return this.adMarkIcon; + } + jumpTypeEnum() { + return Companion_getInstance_1077().fromValue(this.jumpType); + } + component1_7eebsc_k$() { + return this.rcmdDesc; + } + component2_7eebsb_k$() { + return this.goodsItems; + } + component3_7eebsa_k$() { + return this.cardType; + } + component4_7eebs9_k$() { + return this.icon; + } + component5_7eebs8_k$() { + return this.uri; + } + component6_7eebs7_k$() { + return this.sourceType; + } + component7_7eebs6_k$() { + return this.jumpType; + } + component8_7eebs5_k$() { + return this.appName; + } + component9_7eebs4_k$() { + return this.adMarkIcon; + } + copy_c3pgs9_k$(rcmdDesc, goodsItems, cardType, icon, uri, sourceType, jumpType, appName, adMarkIcon) { + return new KAdditionGoods(rcmdDesc, goodsItems, cardType, icon, uri, sourceType, jumpType, appName, adMarkIcon); + } + copy(rcmdDesc, goodsItems, cardType, icon, uri, sourceType, jumpType, appName, adMarkIcon, $super) { + rcmdDesc = rcmdDesc === VOID ? this.rcmdDesc : rcmdDesc; + goodsItems = goodsItems === VOID ? this.goodsItems : goodsItems; + cardType = cardType === VOID ? this.cardType : cardType; + icon = icon === VOID ? this.icon : icon; + uri = uri === VOID ? this.uri : uri; + sourceType = sourceType === VOID ? this.sourceType : sourceType; + jumpType = jumpType === VOID ? this.jumpType : jumpType; + appName = appName === VOID ? this.appName : appName; + adMarkIcon = adMarkIcon === VOID ? this.adMarkIcon : adMarkIcon; + return this.copy_c3pgs9_k$(rcmdDesc, goodsItems, cardType, icon, uri, sourceType, jumpType, appName, adMarkIcon); + } + toString() { + return 'KAdditionGoods(rcmdDesc=' + this.rcmdDesc + ', goodsItems=' + this.goodsItems + ', cardType=' + this.cardType + ', icon=' + this.icon + ', uri=' + this.uri + ', sourceType=' + this.sourceType + ', jumpType=' + this.jumpType + ', appName=' + this.appName + ', adMarkIcon=' + this.adMarkIcon + ')'; + } + hashCode() { + var result = getStringHashCode(this.rcmdDesc); + result = imul(result, 31) + hashCode(this.goodsItems) | 0; + result = imul(result, 31) + getStringHashCode(this.cardType) | 0; + result = imul(result, 31) + getStringHashCode(this.icon) | 0; + result = imul(result, 31) + getStringHashCode(this.uri) | 0; + result = imul(result, 31) + this.sourceType | 0; + result = imul(result, 31) + this.jumpType | 0; + result = imul(result, 31) + getStringHashCode(this.appName) | 0; + result = imul(result, 31) + getStringHashCode(this.adMarkIcon) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KAdditionGoods)) + return false; + var tmp0_other_with_cast = other instanceof KAdditionGoods ? other : THROW_CCE(); + if (!(this.rcmdDesc === tmp0_other_with_cast.rcmdDesc)) + return false; + if (!equals(this.goodsItems, tmp0_other_with_cast.goodsItems)) + return false; + if (!(this.cardType === tmp0_other_with_cast.cardType)) + return false; + if (!(this.icon === tmp0_other_with_cast.icon)) + return false; + if (!(this.uri === tmp0_other_with_cast.uri)) + return false; + if (!(this.sourceType === tmp0_other_with_cast.sourceType)) + return false; + if (!(this.jumpType === tmp0_other_with_cast.jumpType)) + return false; + if (!(this.appName === tmp0_other_with_cast.appName)) + return false; + if (!(this.adMarkIcon === tmp0_other_with_cast.adMarkIcon)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KAdditionGoods_82kvj9_k$(seen1, rcmdDesc, goodsItems, cardType, icon, uri, sourceType, jumpType, appName, adMarkIcon, serializationConstructorMarker) { + Companion_getInstance_1116(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1103().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.rcmdDesc = ''; + else + $this.rcmdDesc = rcmdDesc; + if (0 === (seen1 & 2)) + $this.goodsItems = emptyList(); + else + $this.goodsItems = goodsItems; + if (0 === (seen1 & 4)) + $this.cardType = ''; + else + $this.cardType = cardType; + if (0 === (seen1 & 8)) + $this.icon = ''; + else + $this.icon = icon; + if (0 === (seen1 & 16)) + $this.uri = ''; + else + $this.uri = uri; + if (0 === (seen1 & 32)) + $this.sourceType = 0; + else + $this.sourceType = sourceType; + if (0 === (seen1 & 64)) + $this.jumpType = 0; + else + $this.jumpType = jumpType; + if (0 === (seen1 & 128)) + $this.appName = ''; + else + $this.appName = appName; + if (0 === (seen1 & 256)) + $this.adMarkIcon = ''; + else + $this.adMarkIcon = adMarkIcon; + return $this; + } + } + class Companion_1117 { + constructor() { + Companion_instance_1117 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, null, null, null, null, null, null, null, new ArrayListSerializer(StringSerializer_getInstance()), null, null, null, null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.GoodsItem'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1104(); + } + } + class $serializer_1104 { + constructor() { + $serializer_instance_1104 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KGoodsItem', this, 16); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('schemaPackageName', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('sourceType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('jumpUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('jumpDesc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('brief', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('price', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('itemId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('schemaUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('openWhiteList', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('userWebV2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + tmp0_serialDesc.addElement_5pzumi_k$('adMark', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(13)); + tmp0_serialDesc.addElement_5pzumi_k$('appName', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(14)); + tmp0_serialDesc.addElement_5pzumi_k$('jumpType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(15)); + tmp0_serialDesc.addElement_5pzumi_k$('cmCachePassthrough', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(16)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_1117().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), tmp0_cached[10], BooleanSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = 0; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_local8 = new Long(0, 0); + var tmp13_local9 = null; + var tmp14_local10 = null; + var tmp15_local11 = false; + var tmp16_local12 = null; + var tmp17_local13 = null; + var tmp18_local14 = 0; + var tmp19_local15 = null; + var tmp20_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp21_cached = Companion_getInstance_1117().$childSerializers_1; + if (tmp20_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp20_input.decodeLongElement_994anb_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp20_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 10, tmp21_cached[10], tmp14_local10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp20_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + tmp16_local12 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + tmp17_local13 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + tmp18_local14 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + tmp19_local15 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + } else + while (tmp1_flag) { + tmp2_index = tmp20_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp20_input.decodeLongElement_994anb_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp20_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 10, tmp21_cached[10], tmp14_local10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp20_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + case 12: + tmp16_local12 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + break; + case 13: + tmp17_local13 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + break; + case 14: + tmp18_local14 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + break; + case 15: + tmp19_local15 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp20_input.endStructure_1xqz0n_k$(tmp0_desc); + return KGoodsItem.new_com_bapis_bilibili_app_dynamic_v2_KGoodsItem_47dlpa_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, tmp18_local14, tmp19_local15, null); + } + serialize_9l0s4z_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_1117().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.cover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.schemaPackageName === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.schemaPackageName); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.sourceType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.sourceType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.jumpUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.jumpUrl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.jumpDesc === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.jumpDesc); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.brief === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.brief); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.price === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.price); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !value.itemId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 8, value.itemId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.schemaUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 9, value.schemaUrl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !equals(value.openWhiteList, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 10, tmp2_cached[10], value.openWhiteList); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.userWebV2 === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 11, value.userWebV2); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !(value.adMark === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 12, value.adMark); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 13) ? true : !(value.appName === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 13, value.appName); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 14) ? true : !(value.jumpType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 14, value.jumpType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 15) ? true : !(value.cmCachePassthrough === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 15, value.cmCachePassthrough); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_9l0s4z_k$(encoder, value instanceof KGoodsItem ? value : THROW_CCE()); + } + } + class KGoodsItem { + constructor(cover, schemaPackageName, sourceType, jumpUrl, jumpDesc, title, brief, price, itemId, schemaUrl, openWhiteList, userWebV2, adMark, appName, jumpType, cmCachePassthrough) { + Companion_getInstance_1117(); + cover = cover === VOID ? '' : cover; + schemaPackageName = schemaPackageName === VOID ? '' : schemaPackageName; + sourceType = sourceType === VOID ? 0 : sourceType; + jumpUrl = jumpUrl === VOID ? '' : jumpUrl; + jumpDesc = jumpDesc === VOID ? '' : jumpDesc; + title = title === VOID ? '' : title; + brief = brief === VOID ? '' : brief; + price = price === VOID ? '' : price; + itemId = itemId === VOID ? new Long(0, 0) : itemId; + schemaUrl = schemaUrl === VOID ? '' : schemaUrl; + openWhiteList = openWhiteList === VOID ? emptyList() : openWhiteList; + userWebV2 = userWebV2 === VOID ? false : userWebV2; + adMark = adMark === VOID ? '' : adMark; + appName = appName === VOID ? '' : appName; + jumpType = jumpType === VOID ? 0 : jumpType; + cmCachePassthrough = cmCachePassthrough === VOID ? '' : cmCachePassthrough; + this.cover = cover; + this.schemaPackageName = schemaPackageName; + this.sourceType = sourceType; + this.jumpUrl = jumpUrl; + this.jumpDesc = jumpDesc; + this.title = title; + this.brief = brief; + this.price = price; + this.itemId = itemId; + this.schemaUrl = schemaUrl; + this.openWhiteList = openWhiteList; + this.userWebV2 = userWebV2; + this.adMark = adMark; + this.appName = appName; + this.jumpType = jumpType; + this.cmCachePassthrough = cmCachePassthrough; + } + get_cover_ipug0e_k$() { + return this.cover; + } + get_schemaPackageName_i3l995_k$() { + return this.schemaPackageName; + } + get_sourceType_wh556m_k$() { + return this.sourceType; + } + get_jumpUrl_jhqiko_k$() { + return this.jumpUrl; + } + get_jumpDesc_yzvdt4_k$() { + return this.jumpDesc; + } + get_title_iz32un_k$() { + return this.title; + } + get_brief_ipcaq9_k$() { + return this.brief; + } + get_price_ix1ezk_k$() { + return this.price; + } + get_itemId_ex1c47_k$() { + return this.itemId; + } + get_schemaUrl_5zf52d_k$() { + return this.schemaUrl; + } + get_openWhiteList_vf82y4_k$() { + return this.openWhiteList; + } + get_userWebV2_dzzyv0_k$() { + return this.userWebV2; + } + get_adMark_avg3vd_k$() { + return this.adMark; + } + get_appName_bv95lp_k$() { + return this.appName; + } + get_jumpType_z060cx_k$() { + return this.jumpType; + } + get_cmCachePassthrough_acqh1h_k$() { + return this.cmCachePassthrough; + } + jumpTypeEnum() { + return Companion_getInstance_1077().fromValue(this.jumpType); + } + component1_7eebsc_k$() { + return this.cover; + } + component2_7eebsb_k$() { + return this.schemaPackageName; + } + component3_7eebsa_k$() { + return this.sourceType; + } + component4_7eebs9_k$() { + return this.jumpUrl; + } + component5_7eebs8_k$() { + return this.jumpDesc; + } + component6_7eebs7_k$() { + return this.title; + } + component7_7eebs6_k$() { + return this.brief; + } + component8_7eebs5_k$() { + return this.price; + } + component9_7eebs4_k$() { + return this.itemId; + } + component10_gazzfo_k$() { + return this.schemaUrl; + } + component11_gazzfn_k$() { + return this.openWhiteList; + } + component12_gazzfm_k$() { + return this.userWebV2; + } + component13_gazzfl_k$() { + return this.adMark; + } + component14_gazzfk_k$() { + return this.appName; + } + component15_gazzfj_k$() { + return this.jumpType; + } + component16_gazzfi_k$() { + return this.cmCachePassthrough; + } + copy_mm823o_k$(cover, schemaPackageName, sourceType, jumpUrl, jumpDesc, title, brief, price, itemId, schemaUrl, openWhiteList, userWebV2, adMark, appName, jumpType, cmCachePassthrough) { + return new KGoodsItem(cover, schemaPackageName, sourceType, jumpUrl, jumpDesc, title, brief, price, itemId, schemaUrl, openWhiteList, userWebV2, adMark, appName, jumpType, cmCachePassthrough); + } + copy(cover, schemaPackageName, sourceType, jumpUrl, jumpDesc, title, brief, price, itemId, schemaUrl, openWhiteList, userWebV2, adMark, appName, jumpType, cmCachePassthrough, $super) { + cover = cover === VOID ? this.cover : cover; + schemaPackageName = schemaPackageName === VOID ? this.schemaPackageName : schemaPackageName; + sourceType = sourceType === VOID ? this.sourceType : sourceType; + jumpUrl = jumpUrl === VOID ? this.jumpUrl : jumpUrl; + jumpDesc = jumpDesc === VOID ? this.jumpDesc : jumpDesc; + title = title === VOID ? this.title : title; + brief = brief === VOID ? this.brief : brief; + price = price === VOID ? this.price : price; + itemId = itemId === VOID ? this.itemId : itemId; + schemaUrl = schemaUrl === VOID ? this.schemaUrl : schemaUrl; + openWhiteList = openWhiteList === VOID ? this.openWhiteList : openWhiteList; + userWebV2 = userWebV2 === VOID ? this.userWebV2 : userWebV2; + adMark = adMark === VOID ? this.adMark : adMark; + appName = appName === VOID ? this.appName : appName; + jumpType = jumpType === VOID ? this.jumpType : jumpType; + cmCachePassthrough = cmCachePassthrough === VOID ? this.cmCachePassthrough : cmCachePassthrough; + return this.copy_mm823o_k$(cover, schemaPackageName, sourceType, jumpUrl, jumpDesc, title, brief, price, itemId, schemaUrl, openWhiteList, userWebV2, adMark, appName, jumpType, cmCachePassthrough); + } + toString() { + return 'KGoodsItem(cover=' + this.cover + ', schemaPackageName=' + this.schemaPackageName + ', sourceType=' + this.sourceType + ', jumpUrl=' + this.jumpUrl + ', jumpDesc=' + this.jumpDesc + ', title=' + this.title + ', brief=' + this.brief + ', price=' + this.price + ', itemId=' + this.itemId.toString() + ', schemaUrl=' + this.schemaUrl + ', openWhiteList=' + this.openWhiteList + ', userWebV2=' + this.userWebV2 + ', adMark=' + this.adMark + ', appName=' + this.appName + ', jumpType=' + this.jumpType + ', cmCachePassthrough=' + this.cmCachePassthrough + ')'; + } + hashCode() { + var result = getStringHashCode(this.cover); + result = imul(result, 31) + getStringHashCode(this.schemaPackageName) | 0; + result = imul(result, 31) + this.sourceType | 0; + result = imul(result, 31) + getStringHashCode(this.jumpUrl) | 0; + result = imul(result, 31) + getStringHashCode(this.jumpDesc) | 0; + result = imul(result, 31) + getStringHashCode(this.title) | 0; + result = imul(result, 31) + getStringHashCode(this.brief) | 0; + result = imul(result, 31) + getStringHashCode(this.price) | 0; + result = imul(result, 31) + this.itemId.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.schemaUrl) | 0; + result = imul(result, 31) + hashCode(this.openWhiteList) | 0; + result = imul(result, 31) + getBooleanHashCode(this.userWebV2) | 0; + result = imul(result, 31) + getStringHashCode(this.adMark) | 0; + result = imul(result, 31) + getStringHashCode(this.appName) | 0; + result = imul(result, 31) + this.jumpType | 0; + result = imul(result, 31) + getStringHashCode(this.cmCachePassthrough) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KGoodsItem)) + return false; + var tmp0_other_with_cast = other instanceof KGoodsItem ? other : THROW_CCE(); + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + if (!(this.schemaPackageName === tmp0_other_with_cast.schemaPackageName)) + return false; + if (!(this.sourceType === tmp0_other_with_cast.sourceType)) + return false; + if (!(this.jumpUrl === tmp0_other_with_cast.jumpUrl)) + return false; + if (!(this.jumpDesc === tmp0_other_with_cast.jumpDesc)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.brief === tmp0_other_with_cast.brief)) + return false; + if (!(this.price === tmp0_other_with_cast.price)) + return false; + if (!this.itemId.equals(tmp0_other_with_cast.itemId)) + return false; + if (!(this.schemaUrl === tmp0_other_with_cast.schemaUrl)) + return false; + if (!equals(this.openWhiteList, tmp0_other_with_cast.openWhiteList)) + return false; + if (!(this.userWebV2 === tmp0_other_with_cast.userWebV2)) + return false; + if (!(this.adMark === tmp0_other_with_cast.adMark)) + return false; + if (!(this.appName === tmp0_other_with_cast.appName)) + return false; + if (!(this.jumpType === tmp0_other_with_cast.jumpType)) + return false; + if (!(this.cmCachePassthrough === tmp0_other_with_cast.cmCachePassthrough)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KGoodsItem_47dlpa_k$(seen1, cover, schemaPackageName, sourceType, jumpUrl, jumpDesc, title, brief, price, itemId, schemaUrl, openWhiteList, userWebV2, adMark, appName, jumpType, cmCachePassthrough, serializationConstructorMarker) { + Companion_getInstance_1117(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1104().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.cover = ''; + else + $this.cover = cover; + if (0 === (seen1 & 2)) + $this.schemaPackageName = ''; + else + $this.schemaPackageName = schemaPackageName; + if (0 === (seen1 & 4)) + $this.sourceType = 0; + else + $this.sourceType = sourceType; + if (0 === (seen1 & 8)) + $this.jumpUrl = ''; + else + $this.jumpUrl = jumpUrl; + if (0 === (seen1 & 16)) + $this.jumpDesc = ''; + else + $this.jumpDesc = jumpDesc; + if (0 === (seen1 & 32)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 64)) + $this.brief = ''; + else + $this.brief = brief; + if (0 === (seen1 & 128)) + $this.price = ''; + else + $this.price = price; + if (0 === (seen1 & 256)) + $this.itemId = new Long(0, 0); + else + $this.itemId = itemId; + if (0 === (seen1 & 512)) + $this.schemaUrl = ''; + else + $this.schemaUrl = schemaUrl; + if (0 === (seen1 & 1024)) + $this.openWhiteList = emptyList(); + else + $this.openWhiteList = openWhiteList; + if (0 === (seen1 & 2048)) + $this.userWebV2 = false; + else + $this.userWebV2 = userWebV2; + if (0 === (seen1 & 4096)) + $this.adMark = ''; + else + $this.adMark = adMark; + if (0 === (seen1 & 8192)) + $this.appName = ''; + else + $this.appName = appName; + if (0 === (seen1 & 16384)) + $this.jumpType = 0; + else + $this.jumpType = jumpType; + if (0 === (seen1 & 32768)) + $this.cmCachePassthrough = ''; + else + $this.cmCachePassthrough = cmCachePassthrough; + return $this; + } + } + class Companion_1118 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.AdditionVote'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1105(); + } + } + class $serializer_1105 { + constructor() { + $serializer_instance_1105 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KAdditionVote', this, 5); + tmp0_serialDesc.addElement_5pzumi_k$('imageUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('text1', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('buttonText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('url', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp9_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + } else + while (tmp1_flag) { + tmp2_index = tmp9_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp9_input.endStructure_1xqz0n_k$(tmp0_desc); + return KAdditionVote.new_com_bapis_bilibili_app_dynamic_v2_KAdditionVote_jg6v7b_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); + } + serialize_xlepwc_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.imageUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.imageUrl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.text1 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.text1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.buttonText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.buttonText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.url === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.url); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_xlepwc_k$(encoder, value instanceof KAdditionVote ? value : THROW_CCE()); + } + } + class KAdditionVote { + constructor(imageUrl, title, text1, buttonText, url) { + Companion_instance_1118; + imageUrl = imageUrl === VOID ? '' : imageUrl; + title = title === VOID ? '' : title; + text1 = text1 === VOID ? '' : text1; + buttonText = buttonText === VOID ? '' : buttonText; + url = url === VOID ? '' : url; + this.imageUrl = imageUrl; + this.title = title; + this.text1 = text1; + this.buttonText = buttonText; + this.url = url; + } + get_imageUrl_p0dvj1_k$() { + return this.imageUrl; + } + get_title_iz32un_k$() { + return this.title; + } + get_text1_iz0m0r_k$() { + return this.text1; + } + get_buttonText_e8s7aw_k$() { + return this.buttonText; + } + get_url_18iuii_k$() { + return this.url; + } + component1_7eebsc_k$() { + return this.imageUrl; + } + component2_7eebsb_k$() { + return this.title; + } + component3_7eebsa_k$() { + return this.text1; + } + component4_7eebs9_k$() { + return this.buttonText; + } + component5_7eebs8_k$() { + return this.url; + } + copy_bit9gb_k$(imageUrl, title, text1, buttonText, url) { + return new KAdditionVote(imageUrl, title, text1, buttonText, url); + } + copy(imageUrl, title, text1, buttonText, url, $super) { + imageUrl = imageUrl === VOID ? this.imageUrl : imageUrl; + title = title === VOID ? this.title : title; + text1 = text1 === VOID ? this.text1 : text1; + buttonText = buttonText === VOID ? this.buttonText : buttonText; + url = url === VOID ? this.url : url; + return this.copy_bit9gb_k$(imageUrl, title, text1, buttonText, url); + } + toString() { + return 'KAdditionVote(imageUrl=' + this.imageUrl + ', title=' + this.title + ', text1=' + this.text1 + ', buttonText=' + this.buttonText + ', url=' + this.url + ')'; + } + hashCode() { + var result = getStringHashCode(this.imageUrl); + result = imul(result, 31) + getStringHashCode(this.title) | 0; + result = imul(result, 31) + getStringHashCode(this.text1) | 0; + result = imul(result, 31) + getStringHashCode(this.buttonText) | 0; + result = imul(result, 31) + getStringHashCode(this.url) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KAdditionVote)) + return false; + var tmp0_other_with_cast = other instanceof KAdditionVote ? other : THROW_CCE(); + if (!(this.imageUrl === tmp0_other_with_cast.imageUrl)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.text1 === tmp0_other_with_cast.text1)) + return false; + if (!(this.buttonText === tmp0_other_with_cast.buttonText)) + return false; + if (!(this.url === tmp0_other_with_cast.url)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KAdditionVote_jg6v7b_k$(seen1, imageUrl, title, text1, buttonText, url, serializationConstructorMarker) { + Companion_instance_1118; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1105().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.imageUrl = ''; + else + $this.imageUrl = imageUrl; + if (0 === (seen1 & 2)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 4)) + $this.text1 = ''; + else + $this.text1 = text1; + if (0 === (seen1 & 8)) + $this.buttonText = ''; + else + $this.buttonText = buttonText; + if (0 === (seen1 & 16)) + $this.url = ''; + else + $this.url = url; + return $this; + } + } + class Companion_1119 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.AdditionUgc'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1106(); + } + } + class $serializer_1106 { + constructor() { + $serializer_instance_1106 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KAdditionUgc', this, 9); + tmp0_serialDesc.addElement_5pzumi_k$('headText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('descText1', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('descText2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('uri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('duration', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('lineFeed', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('cardType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), BooleanSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = false; + var tmp12_local8 = null; + var tmp13_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp13_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp13_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + } else + while (tmp1_flag) { + tmp2_index = tmp13_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp13_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp13_input.endStructure_1xqz0n_k$(tmp0_desc); + return KAdditionUgc.new_com_bapis_bilibili_app_dynamic_v2_KAdditionUgc_so9sk_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, null); + } + serialize_qwuzax_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.headText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.headText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.cover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.descText1 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.descText1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.descText2 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.descText2); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.uri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.uri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.duration === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.duration); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.lineFeed === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 7, value.lineFeed); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.cardType === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 8, value.cardType); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_qwuzax_k$(encoder, value instanceof KAdditionUgc ? value : THROW_CCE()); + } + } + class KAdditionUgc { + constructor(headText, title, cover, descText1, descText2, uri, duration, lineFeed, cardType) { + Companion_instance_1119; + headText = headText === VOID ? '' : headText; + title = title === VOID ? '' : title; + cover = cover === VOID ? '' : cover; + descText1 = descText1 === VOID ? '' : descText1; + descText2 = descText2 === VOID ? '' : descText2; + uri = uri === VOID ? '' : uri; + duration = duration === VOID ? '' : duration; + lineFeed = lineFeed === VOID ? false : lineFeed; + cardType = cardType === VOID ? '' : cardType; + this.headText = headText; + this.title = title; + this.cover = cover; + this.descText1 = descText1; + this.descText2 = descText2; + this.uri = uri; + this.duration = duration; + this.lineFeed = lineFeed; + this.cardType = cardType; + } + get_headText_krvc3a_k$() { + return this.headText; + } + get_title_iz32un_k$() { + return this.title; + } + get_cover_ipug0e_k$() { + return this.cover; + } + get_descText1_wuy7ze_k$() { + return this.descText1; + } + get_descText2_wuy7zf_k$() { + return this.descText2; + } + get_uri_18iuil_k$() { + return this.uri; + } + get_duration_6a6kpp_k$() { + return this.duration; + } + get_lineFeed_c5hv9h_k$() { + return this.lineFeed; + } + get_cardType_vxu2tp_k$() { + return this.cardType; + } + component1_7eebsc_k$() { + return this.headText; + } + component2_7eebsb_k$() { + return this.title; + } + component3_7eebsa_k$() { + return this.cover; + } + component4_7eebs9_k$() { + return this.descText1; + } + component5_7eebs8_k$() { + return this.descText2; + } + component6_7eebs7_k$() { + return this.uri; + } + component7_7eebs6_k$() { + return this.duration; + } + component8_7eebs5_k$() { + return this.lineFeed; + } + component9_7eebs4_k$() { + return this.cardType; + } + copy_j2btwa_k$(headText, title, cover, descText1, descText2, uri, duration, lineFeed, cardType) { + return new KAdditionUgc(headText, title, cover, descText1, descText2, uri, duration, lineFeed, cardType); + } + copy(headText, title, cover, descText1, descText2, uri, duration, lineFeed, cardType, $super) { + headText = headText === VOID ? this.headText : headText; + title = title === VOID ? this.title : title; + cover = cover === VOID ? this.cover : cover; + descText1 = descText1 === VOID ? this.descText1 : descText1; + descText2 = descText2 === VOID ? this.descText2 : descText2; + uri = uri === VOID ? this.uri : uri; + duration = duration === VOID ? this.duration : duration; + lineFeed = lineFeed === VOID ? this.lineFeed : lineFeed; + cardType = cardType === VOID ? this.cardType : cardType; + return this.copy_j2btwa_k$(headText, title, cover, descText1, descText2, uri, duration, lineFeed, cardType); + } + toString() { + return 'KAdditionUgc(headText=' + this.headText + ', title=' + this.title + ', cover=' + this.cover + ', descText1=' + this.descText1 + ', descText2=' + this.descText2 + ', uri=' + this.uri + ', duration=' + this.duration + ', lineFeed=' + this.lineFeed + ', cardType=' + this.cardType + ')'; + } + hashCode() { + var result = getStringHashCode(this.headText); + result = imul(result, 31) + getStringHashCode(this.title) | 0; + result = imul(result, 31) + getStringHashCode(this.cover) | 0; + result = imul(result, 31) + getStringHashCode(this.descText1) | 0; + result = imul(result, 31) + getStringHashCode(this.descText2) | 0; + result = imul(result, 31) + getStringHashCode(this.uri) | 0; + result = imul(result, 31) + getStringHashCode(this.duration) | 0; + result = imul(result, 31) + getBooleanHashCode(this.lineFeed) | 0; + result = imul(result, 31) + getStringHashCode(this.cardType) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KAdditionUgc)) + return false; + var tmp0_other_with_cast = other instanceof KAdditionUgc ? other : THROW_CCE(); + if (!(this.headText === tmp0_other_with_cast.headText)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + if (!(this.descText1 === tmp0_other_with_cast.descText1)) + return false; + if (!(this.descText2 === tmp0_other_with_cast.descText2)) + return false; + if (!(this.uri === tmp0_other_with_cast.uri)) + return false; + if (!(this.duration === tmp0_other_with_cast.duration)) + return false; + if (!(this.lineFeed === tmp0_other_with_cast.lineFeed)) + return false; + if (!(this.cardType === tmp0_other_with_cast.cardType)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KAdditionUgc_so9sk_k$(seen1, headText, title, cover, descText1, descText2, uri, duration, lineFeed, cardType, serializationConstructorMarker) { + Companion_instance_1119; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1106().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.headText = ''; + else + $this.headText = headText; + if (0 === (seen1 & 2)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 4)) + $this.cover = ''; + else + $this.cover = cover; + if (0 === (seen1 & 8)) + $this.descText1 = ''; + else + $this.descText1 = descText1; + if (0 === (seen1 & 16)) + $this.descText2 = ''; + else + $this.descText2 = descText2; + if (0 === (seen1 & 32)) + $this.uri = ''; + else + $this.uri = uri; + if (0 === (seen1 & 64)) + $this.duration = ''; + else + $this.duration = duration; + if (0 === (seen1 & 128)) + $this.lineFeed = false; + else + $this.lineFeed = lineFeed; + if (0 === (seen1 & 256)) + $this.cardType = ''; + else + $this.cardType = cardType; + return $this; + } + } + class Companion_1120 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.AdditionCommon'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1107(); + } + } + class $serializer_1107 { + constructor() { + $serializer_instance_1107 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KAdditionCommon', this, 11); + tmp0_serialDesc.addElement_5pzumi_k$('headText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('imageUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('descText1', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('descText2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('url', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('button', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('headIcon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('style', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('cardType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_1085()), StringSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_local8 = 0; + var tmp13_local9 = null; + var tmp14_local10 = null; + var tmp15_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp15_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_1085(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + } else + while (tmp1_flag) { + tmp2_index = tmp15_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_1085(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp15_input.endStructure_1xqz0n_k$(tmp0_desc); + return KAdditionCommon.new_com_bapis_bilibili_app_dynamic_v2_KAdditionCommon_5e22nl_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, null); + } + serialize_mwff2b_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.headText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.headText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.imageUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.imageUrl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.descText1 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.descText1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.descText2 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.descText2); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.url === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.url); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.button == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 6, $serializer_getInstance_1085(), value.button); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.headIcon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.headIcon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.style === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 8, value.style); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.type === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 9, value.type); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.cardType === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 10, value.cardType); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_mwff2b_k$(encoder, value instanceof KAdditionCommon ? value : THROW_CCE()); + } + } + class KAdditionCommon { + constructor(headText, title, imageUrl, descText1, descText2, url, button, headIcon, style, type, cardType) { + Companion_instance_1120; + headText = headText === VOID ? '' : headText; + title = title === VOID ? '' : title; + imageUrl = imageUrl === VOID ? '' : imageUrl; + descText1 = descText1 === VOID ? '' : descText1; + descText2 = descText2 === VOID ? '' : descText2; + url = url === VOID ? '' : url; + button = button === VOID ? null : button; + headIcon = headIcon === VOID ? '' : headIcon; + style = style === VOID ? 0 : style; + type = type === VOID ? '' : type; + cardType = cardType === VOID ? '' : cardType; + this.headText = headText; + this.title = title; + this.imageUrl = imageUrl; + this.descText1 = descText1; + this.descText2 = descText2; + this.url = url; + this.button = button; + this.headIcon = headIcon; + this.style = style; + this.type = type; + this.cardType = cardType; + } + get_headText_krvc3a_k$() { + return this.headText; + } + get_title_iz32un_k$() { + return this.title; + } + get_imageUrl_p0dvj1_k$() { + return this.imageUrl; + } + get_descText1_wuy7ze_k$() { + return this.descText1; + } + get_descText2_wuy7zf_k$() { + return this.descText2; + } + get_url_18iuii_k$() { + return this.url; + } + get_button_bmjiuz_k$() { + return this.button; + } + get_headIcon_kro9j6_k$() { + return this.headIcon; + } + get_style_iyqetk_k$() { + return this.style; + } + get_type_wovaf7_k$() { + return this.type; + } + get_cardType_vxu2tp_k$() { + return this.cardType; + } + styleEnum() { + return Companion_getInstance_1076().fromValue(this.style); + } + component1_7eebsc_k$() { + return this.headText; + } + component2_7eebsb_k$() { + return this.title; + } + component3_7eebsa_k$() { + return this.imageUrl; + } + component4_7eebs9_k$() { + return this.descText1; + } + component5_7eebs8_k$() { + return this.descText2; + } + component6_7eebs7_k$() { + return this.url; + } + component7_7eebs6_k$() { + return this.button; + } + component8_7eebs5_k$() { + return this.headIcon; + } + component9_7eebs4_k$() { + return this.style; + } + component10_gazzfo_k$() { + return this.type; + } + component11_gazzfn_k$() { + return this.cardType; + } + copy_oluvkc_k$(headText, title, imageUrl, descText1, descText2, url, button, headIcon, style, type, cardType) { + return new KAdditionCommon(headText, title, imageUrl, descText1, descText2, url, button, headIcon, style, type, cardType); + } + copy(headText, title, imageUrl, descText1, descText2, url, button, headIcon, style, type, cardType, $super) { + headText = headText === VOID ? this.headText : headText; + title = title === VOID ? this.title : title; + imageUrl = imageUrl === VOID ? this.imageUrl : imageUrl; + descText1 = descText1 === VOID ? this.descText1 : descText1; + descText2 = descText2 === VOID ? this.descText2 : descText2; + url = url === VOID ? this.url : url; + button = button === VOID ? this.button : button; + headIcon = headIcon === VOID ? this.headIcon : headIcon; + style = style === VOID ? this.style : style; + type = type === VOID ? this.type : type; + cardType = cardType === VOID ? this.cardType : cardType; + return this.copy_oluvkc_k$(headText, title, imageUrl, descText1, descText2, url, button, headIcon, style, type, cardType); + } + toString() { + return 'KAdditionCommon(headText=' + this.headText + ', title=' + this.title + ', imageUrl=' + this.imageUrl + ', descText1=' + this.descText1 + ', descText2=' + this.descText2 + ', url=' + this.url + ', button=' + this.button + ', headIcon=' + this.headIcon + ', style=' + this.style + ', type=' + this.type + ', cardType=' + this.cardType + ')'; + } + hashCode() { + var result = getStringHashCode(this.headText); + result = imul(result, 31) + getStringHashCode(this.title) | 0; + result = imul(result, 31) + getStringHashCode(this.imageUrl) | 0; + result = imul(result, 31) + getStringHashCode(this.descText1) | 0; + result = imul(result, 31) + getStringHashCode(this.descText2) | 0; + result = imul(result, 31) + getStringHashCode(this.url) | 0; + result = imul(result, 31) + (this.button == null ? 0 : this.button.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.headIcon) | 0; + result = imul(result, 31) + this.style | 0; + result = imul(result, 31) + getStringHashCode(this.type) | 0; + result = imul(result, 31) + getStringHashCode(this.cardType) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KAdditionCommon)) + return false; + var tmp0_other_with_cast = other instanceof KAdditionCommon ? other : THROW_CCE(); + if (!(this.headText === tmp0_other_with_cast.headText)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.imageUrl === tmp0_other_with_cast.imageUrl)) + return false; + if (!(this.descText1 === tmp0_other_with_cast.descText1)) + return false; + if (!(this.descText2 === tmp0_other_with_cast.descText2)) + return false; + if (!(this.url === tmp0_other_with_cast.url)) + return false; + if (!equals(this.button, tmp0_other_with_cast.button)) + return false; + if (!(this.headIcon === tmp0_other_with_cast.headIcon)) + return false; + if (!(this.style === tmp0_other_with_cast.style)) + return false; + if (!(this.type === tmp0_other_with_cast.type)) + return false; + if (!(this.cardType === tmp0_other_with_cast.cardType)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KAdditionCommon_5e22nl_k$(seen1, headText, title, imageUrl, descText1, descText2, url, button, headIcon, style, type, cardType, serializationConstructorMarker) { + Companion_instance_1120; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1107().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.headText = ''; + else + $this.headText = headText; + if (0 === (seen1 & 2)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 4)) + $this.imageUrl = ''; + else + $this.imageUrl = imageUrl; + if (0 === (seen1 & 8)) + $this.descText1 = ''; + else + $this.descText1 = descText1; + if (0 === (seen1 & 16)) + $this.descText2 = ''; + else + $this.descText2 = descText2; + if (0 === (seen1 & 32)) + $this.url = ''; + else + $this.url = url; + if (0 === (seen1 & 64)) + $this.button = null; + else + $this.button = button; + if (0 === (seen1 & 128)) + $this.headIcon = ''; + else + $this.headIcon = headIcon; + if (0 === (seen1 & 256)) + $this.style = 0; + else + $this.style = style; + if (0 === (seen1 & 512)) + $this.type = ''; + else + $this.type = type; + if (0 === (seen1 & 1024)) + $this.cardType = ''; + else + $this.cardType = cardType; + return $this; + } + } + class KItem_9 { + constructor(value) { + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + } + class KAdditionEsportMoba extends KItem_9 { + constructor() { + KAdditionEsportMoba_instance = null; + super(0); + KAdditionEsportMoba_instance = this; + } + } + class Companion_1121 { + constructor() { + Companion_instance_1121 = this; + var tmp = this; + tmp.itemValues$delegate_1 = lazy_0(KAdditionEsport$Companion$itemValues$delegate$lambda); + this.targetPath = '/bilibili.app.dynamic.v2.AdditionEsport'; + } + get_itemValues_e195su_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.itemValues$delegate_1; + var thisRef = this; + var property = itemValues$factory_6(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1108(); + } + get itemValues() { + return this.get_itemValues_e195su_k$(); + } + } + class $serializer_1108 { + constructor() { + $serializer_instance_1108 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KAdditionEsport', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('style', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('cardType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('additionEsportMoba', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_1109())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_transient0 = 0; + var tmp9_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp9_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_1109(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp9_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_1109(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp9_input.endStructure_1xqz0n_k$(tmp0_desc); + return KAdditionEsport.new_com_bapis_bilibili_app_dynamic_v2_KAdditionEsport_z0yto7_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_dckypt_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.style === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.style); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.type === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.type); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.cardType === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.cardType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.additionEsportMoba_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_1109(), value.additionEsportMoba_1); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_dckypt_k$(encoder, value instanceof KAdditionEsport ? value : THROW_CCE()); + } + } + class KAdditionEsport { + constructor(style, type, cardType, additionEsportMoba) { + Companion_getInstance_1121(); + style = style === VOID ? 0 : style; + type = type === VOID ? '' : type; + cardType = cardType === VOID ? '' : cardType; + additionEsportMoba = additionEsportMoba === VOID ? null : additionEsportMoba; + this.style = style; + this.type = type; + this.cardType = cardType; + this.additionEsportMoba_1 = additionEsportMoba; + var tmp = this; + tmp.itemNumber$delegate_1 = lazy_0(KAdditionEsport$itemNumber$delegate$lambda(this)); + } + get_style_iyqetk_k$() { + return this.style; + } + get_type_wovaf7_k$() { + return this.type; + } + get_cardType_vxu2tp_k$() { + return this.cardType; + } + itemValue() { + if (!(this.additionEsportMoba_1 == null)) { + var tmp = this.additionEsportMoba_1; + return (tmp == null ? true : !(tmp == null)) ? tmp : null; + } else { + return null; + } + } + itemTypeJs() { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = Companion_getInstance_1121().itemValues; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.KAdditionEsport.itemType.' call + var it = element; + tmp$ret$0 = it.value === _get_itemNumber__22vn01_6(this); + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + return tmp$ret$1; + } + styleEnum() { + return Companion_getInstance_1078().fromValue(this.style); + } + component1_7eebsc_k$() { + return this.style; + } + component2_7eebsb_k$() { + return this.type; + } + component3_7eebsa_k$() { + return this.cardType; + } + copy_7o97rj_k$(style, type, cardType, additionEsportMoba) { + return new KAdditionEsport(style, type, cardType, additionEsportMoba); + } + copy(style, type, cardType, additionEsportMoba, $super) { + style = style === VOID ? this.style : style; + type = type === VOID ? this.type : type; + cardType = cardType === VOID ? this.cardType : cardType; + additionEsportMoba = additionEsportMoba === VOID ? this.additionEsportMoba_1 : additionEsportMoba; + return this.copy_7o97rj_k$(style, type, cardType, additionEsportMoba); + } + toString() { + return 'KAdditionEsport(style=' + this.style + ', type=' + this.type + ', cardType=' + this.cardType + ', additionEsportMoba=' + this.additionEsportMoba_1 + ')'; + } + hashCode() { + var result = this.style; + result = imul(result, 31) + getStringHashCode(this.type) | 0; + result = imul(result, 31) + getStringHashCode(this.cardType) | 0; + result = imul(result, 31) + (this.additionEsportMoba_1 == null ? 0 : this.additionEsportMoba_1.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KAdditionEsport)) + return false; + var tmp0_other_with_cast = other instanceof KAdditionEsport ? other : THROW_CCE(); + if (!(this.style === tmp0_other_with_cast.style)) + return false; + if (!(this.type === tmp0_other_with_cast.type)) + return false; + if (!(this.cardType === tmp0_other_with_cast.cardType)) + return false; + if (!equals(this.additionEsportMoba_1, tmp0_other_with_cast.additionEsportMoba_1)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KAdditionEsport_z0yto7_k$(seen1, style, type, cardType, additionEsportMoba, serializationConstructorMarker) { + Companion_getInstance_1121(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1108().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.style = 0; + else + $this.style = style; + if (0 === (seen1 & 2)) + $this.type = ''; + else + $this.type = type; + if (0 === (seen1 & 4)) + $this.cardType = ''; + else + $this.cardType = cardType; + if (0 === (seen1 & 8)) + $this.additionEsportMoba_1 = null; + else + $this.additionEsportMoba_1 = additionEsportMoba; + var tmp = $this; + tmp.itemNumber$delegate_1 = lazy_0(KAdditionEsport$_init_$lambda_tk2kcr($this)); + return $this; + } + } + class Companion_1122 { + constructor() { + Companion_instance_1122 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, new ArrayListSerializer($serializer_getInstance_1112()), null, null, null, null, null, null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.AdditionEsportMoba'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1109(); + } + } + class $serializer_1109 { + constructor() { + $serializer_instance_1109 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KAdditionEsportMoba', this, 10); + tmp0_serialDesc.addElement_5pzumi_k$('headText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('matchTeam', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('additionEsportMobaStatus', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('uri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('button', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('subTitle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('cardType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('headIcon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_1122().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), tmp0_cached[2], get_nullable($serializer_getInstance_1110()), StringSerializer_getInstance(), get_nullable($serializer_getInstance_1085()), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_local8 = null; + var tmp13_local9 = null; + var tmp14_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp15_cached = Companion_getInstance_1122().$childSerializers_1; + if (tmp14_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp14_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp15_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_1110(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_1085(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + } else + while (tmp1_flag) { + tmp2_index = tmp14_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp14_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp15_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_1110(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_1085(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp14_input.endStructure_1xqz0n_k$(tmp0_desc); + return KAdditionEsportMoba_0.new_com_bapis_bilibili_app_dynamic_v2_KAdditionEsportMoba_wk4mmy_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, null); + } + serialize_rkwj4y_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_1122().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.headText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.headText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !equals(value.matchTeam, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 2, tmp2_cached[2], value.matchTeam); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.additionEsportMobaStatus == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_1110(), value.additionEsportMobaStatus); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.uri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.uri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.button == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 5, $serializer_getInstance_1085(), value.button); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.subTitle === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.subTitle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.type === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.type); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.cardType === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 8, value.cardType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.headIcon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 9, value.headIcon); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_rkwj4y_k$(encoder, value instanceof KAdditionEsportMoba_0 ? value : THROW_CCE()); + } + } + class KAdditionEsportMoba_0 { + constructor(headText, title, matchTeam, additionEsportMobaStatus, uri, button, subTitle, type, cardType, headIcon) { + Companion_getInstance_1122(); + headText = headText === VOID ? '' : headText; + title = title === VOID ? '' : title; + matchTeam = matchTeam === VOID ? emptyList() : matchTeam; + additionEsportMobaStatus = additionEsportMobaStatus === VOID ? null : additionEsportMobaStatus; + uri = uri === VOID ? '' : uri; + button = button === VOID ? null : button; + subTitle = subTitle === VOID ? '' : subTitle; + type = type === VOID ? '' : type; + cardType = cardType === VOID ? '' : cardType; + headIcon = headIcon === VOID ? '' : headIcon; + this.headText = headText; + this.title = title; + this.matchTeam = matchTeam; + this.additionEsportMobaStatus = additionEsportMobaStatus; + this.uri = uri; + this.button = button; + this.subTitle = subTitle; + this.type = type; + this.cardType = cardType; + this.headIcon = headIcon; + } + get_headText_krvc3a_k$() { + return this.headText; + } + get_title_iz32un_k$() { + return this.title; + } + get_matchTeam_io3bbt_k$() { + return this.matchTeam; + } + get_additionEsportMobaStatus_gar1uv_k$() { + return this.additionEsportMobaStatus; + } + get_uri_18iuil_k$() { + return this.uri; + } + get_button_bmjiuz_k$() { + return this.button; + } + get_subTitle_4nt9z5_k$() { + return this.subTitle; + } + get_type_wovaf7_k$() { + return this.type; + } + get_cardType_vxu2tp_k$() { + return this.cardType; + } + get_headIcon_kro9j6_k$() { + return this.headIcon; + } + component1_7eebsc_k$() { + return this.headText; + } + component2_7eebsb_k$() { + return this.title; + } + component3_7eebsa_k$() { + return this.matchTeam; + } + component4_7eebs9_k$() { + return this.additionEsportMobaStatus; + } + component5_7eebs8_k$() { + return this.uri; + } + component6_7eebs7_k$() { + return this.button; + } + component7_7eebs6_k$() { + return this.subTitle; + } + component8_7eebs5_k$() { + return this.type; + } + component9_7eebs4_k$() { + return this.cardType; + } + component10_gazzfo_k$() { + return this.headIcon; + } + copy_pns0h3_k$(headText, title, matchTeam, additionEsportMobaStatus, uri, button, subTitle, type, cardType, headIcon) { + return new KAdditionEsportMoba_0(headText, title, matchTeam, additionEsportMobaStatus, uri, button, subTitle, type, cardType, headIcon); + } + copy(headText, title, matchTeam, additionEsportMobaStatus, uri, button, subTitle, type, cardType, headIcon, $super) { + headText = headText === VOID ? this.headText : headText; + title = title === VOID ? this.title : title; + matchTeam = matchTeam === VOID ? this.matchTeam : matchTeam; + additionEsportMobaStatus = additionEsportMobaStatus === VOID ? this.additionEsportMobaStatus : additionEsportMobaStatus; + uri = uri === VOID ? this.uri : uri; + button = button === VOID ? this.button : button; + subTitle = subTitle === VOID ? this.subTitle : subTitle; + type = type === VOID ? this.type : type; + cardType = cardType === VOID ? this.cardType : cardType; + headIcon = headIcon === VOID ? this.headIcon : headIcon; + return this.copy_pns0h3_k$(headText, title, matchTeam, additionEsportMobaStatus, uri, button, subTitle, type, cardType, headIcon); + } + toString() { + return 'KAdditionEsportMoba(headText=' + this.headText + ', title=' + this.title + ', matchTeam=' + this.matchTeam + ', additionEsportMobaStatus=' + this.additionEsportMobaStatus + ', uri=' + this.uri + ', button=' + this.button + ', subTitle=' + this.subTitle + ', type=' + this.type + ', cardType=' + this.cardType + ', headIcon=' + this.headIcon + ')'; + } + hashCode() { + var result = getStringHashCode(this.headText); + result = imul(result, 31) + getStringHashCode(this.title) | 0; + result = imul(result, 31) + hashCode(this.matchTeam) | 0; + result = imul(result, 31) + (this.additionEsportMobaStatus == null ? 0 : this.additionEsportMobaStatus.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.uri) | 0; + result = imul(result, 31) + (this.button == null ? 0 : this.button.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.subTitle) | 0; + result = imul(result, 31) + getStringHashCode(this.type) | 0; + result = imul(result, 31) + getStringHashCode(this.cardType) | 0; + result = imul(result, 31) + getStringHashCode(this.headIcon) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KAdditionEsportMoba_0)) + return false; + var tmp0_other_with_cast = other instanceof KAdditionEsportMoba_0 ? other : THROW_CCE(); + if (!(this.headText === tmp0_other_with_cast.headText)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!equals(this.matchTeam, tmp0_other_with_cast.matchTeam)) + return false; + if (!equals(this.additionEsportMobaStatus, tmp0_other_with_cast.additionEsportMobaStatus)) + return false; + if (!(this.uri === tmp0_other_with_cast.uri)) + return false; + if (!equals(this.button, tmp0_other_with_cast.button)) + return false; + if (!(this.subTitle === tmp0_other_with_cast.subTitle)) + return false; + if (!(this.type === tmp0_other_with_cast.type)) + return false; + if (!(this.cardType === tmp0_other_with_cast.cardType)) + return false; + if (!(this.headIcon === tmp0_other_with_cast.headIcon)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KAdditionEsportMoba_wk4mmy_k$(seen1, headText, title, matchTeam, additionEsportMobaStatus, uri, button, subTitle, type, cardType, headIcon, serializationConstructorMarker) { + Companion_getInstance_1122(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1109().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.headText = ''; + else + $this.headText = headText; + if (0 === (seen1 & 2)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 4)) + $this.matchTeam = emptyList(); + else + $this.matchTeam = matchTeam; + if (0 === (seen1 & 8)) + $this.additionEsportMobaStatus = null; + else + $this.additionEsportMobaStatus = additionEsportMobaStatus; + if (0 === (seen1 & 16)) + $this.uri = ''; + else + $this.uri = uri; + if (0 === (seen1 & 32)) + $this.button = null; + else + $this.button = button; + if (0 === (seen1 & 64)) + $this.subTitle = ''; + else + $this.subTitle = subTitle; + if (0 === (seen1 & 128)) + $this.type = ''; + else + $this.type = type; + if (0 === (seen1 & 256)) + $this.cardType = ''; + else + $this.cardType = cardType; + if (0 === (seen1 & 512)) + $this.headIcon = ''; + else + $this.headIcon = headIcon; + return $this; + } + } + class Companion_1123 { + constructor() { + Companion_instance_1123 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer($serializer_getInstance_1111()), null, null, null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.AdditionEsportMobaStatus'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1110(); + } + } + class $serializer_1110 { + constructor() { + $serializer_instance_1110 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KAdditionEsportMobaStatus', this, 5); + tmp0_serialDesc.addElement_5pzumi_k$('additionEsportMobaStatusDesc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('status', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('color', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('nightColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_1123().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0], StringSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = 0; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp10_cached = Companion_getInstance_1123().$childSerializers_1; + if (tmp9_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp9_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp10_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + } else + while (tmp1_flag) { + tmp2_index = tmp9_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp9_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp10_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp9_input.endStructure_1xqz0n_k$(tmp0_desc); + return KAdditionEsportMobaStatus.new_com_bapis_bilibili_app_dynamic_v2_KAdditionEsportMobaStatus_wxczfc_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); + } + serialize_2198j8_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_1123().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.additionEsportMobaStatusDesc, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.additionEsportMobaStatusDesc); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.status === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.status); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.color === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.color); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.nightColor === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.nightColor); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_2198j8_k$(encoder, value instanceof KAdditionEsportMobaStatus ? value : THROW_CCE()); + } + } + class KAdditionEsportMobaStatus { + constructor(additionEsportMobaStatusDesc, title, status, color, nightColor) { + Companion_getInstance_1123(); + additionEsportMobaStatusDesc = additionEsportMobaStatusDesc === VOID ? emptyList() : additionEsportMobaStatusDesc; + title = title === VOID ? '' : title; + status = status === VOID ? 0 : status; + color = color === VOID ? '' : color; + nightColor = nightColor === VOID ? '' : nightColor; + this.additionEsportMobaStatusDesc = additionEsportMobaStatusDesc; + this.title = title; + this.status = status; + this.color = color; + this.nightColor = nightColor; + } + get_additionEsportMobaStatusDesc_cz22lk_k$() { + return this.additionEsportMobaStatusDesc; + } + get_title_iz32un_k$() { + return this.title; + } + get_status_jnf6d7_k$() { + return this.status; + } + get_color_ipu8u2_k$() { + return this.color; + } + get_nightColor_ujwlsc_k$() { + return this.nightColor; + } + component1_7eebsc_k$() { + return this.additionEsportMobaStatusDesc; + } + component2_7eebsb_k$() { + return this.title; + } + component3_7eebsa_k$() { + return this.status; + } + component4_7eebs9_k$() { + return this.color; + } + component5_7eebs8_k$() { + return this.nightColor; + } + copy_kwvg3h_k$(additionEsportMobaStatusDesc, title, status, color, nightColor) { + return new KAdditionEsportMobaStatus(additionEsportMobaStatusDesc, title, status, color, nightColor); + } + copy(additionEsportMobaStatusDesc, title, status, color, nightColor, $super) { + additionEsportMobaStatusDesc = additionEsportMobaStatusDesc === VOID ? this.additionEsportMobaStatusDesc : additionEsportMobaStatusDesc; + title = title === VOID ? this.title : title; + status = status === VOID ? this.status : status; + color = color === VOID ? this.color : color; + nightColor = nightColor === VOID ? this.nightColor : nightColor; + return this.copy_kwvg3h_k$(additionEsportMobaStatusDesc, title, status, color, nightColor); + } + toString() { + return 'KAdditionEsportMobaStatus(additionEsportMobaStatusDesc=' + this.additionEsportMobaStatusDesc + ', title=' + this.title + ', status=' + this.status + ', color=' + this.color + ', nightColor=' + this.nightColor + ')'; + } + hashCode() { + var result = hashCode(this.additionEsportMobaStatusDesc); + result = imul(result, 31) + getStringHashCode(this.title) | 0; + result = imul(result, 31) + this.status | 0; + result = imul(result, 31) + getStringHashCode(this.color) | 0; + result = imul(result, 31) + getStringHashCode(this.nightColor) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KAdditionEsportMobaStatus)) + return false; + var tmp0_other_with_cast = other instanceof KAdditionEsportMobaStatus ? other : THROW_CCE(); + if (!equals(this.additionEsportMobaStatusDesc, tmp0_other_with_cast.additionEsportMobaStatusDesc)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.status === tmp0_other_with_cast.status)) + return false; + if (!(this.color === tmp0_other_with_cast.color)) + return false; + if (!(this.nightColor === tmp0_other_with_cast.nightColor)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KAdditionEsportMobaStatus_wxczfc_k$(seen1, additionEsportMobaStatusDesc, title, status, color, nightColor, serializationConstructorMarker) { + Companion_getInstance_1123(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1110().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.additionEsportMobaStatusDesc = emptyList(); + else + $this.additionEsportMobaStatusDesc = additionEsportMobaStatusDesc; + if (0 === (seen1 & 2)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 4)) + $this.status = 0; + else + $this.status = status; + if (0 === (seen1 & 8)) + $this.color = ''; + else + $this.color = color; + if (0 === (seen1 & 16)) + $this.nightColor = ''; + else + $this.nightColor = nightColor; + return $this; + } + } + class Companion_1124 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.AdditionEsportMobaStatusDesc'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1111(); + } + } + class $serializer_1111 { + constructor() { + $serializer_instance_1111 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KAdditionEsportMobaStatusDesc', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('color', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('nightColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KAdditionEsportMobaStatusDesc.new_com_bapis_bilibili_app_dynamic_v2_KAdditionEsportMobaStatusDesc_nw3xuk_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_mvr16j_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.color === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.color); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.nightColor === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.nightColor); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_mvr16j_k$(encoder, value instanceof KAdditionEsportMobaStatusDesc ? value : THROW_CCE()); + } + } + class KAdditionEsportMobaStatusDesc { + constructor(title, color, nightColor) { + Companion_instance_1124; + title = title === VOID ? '' : title; + color = color === VOID ? '' : color; + nightColor = nightColor === VOID ? '' : nightColor; + this.title = title; + this.color = color; + this.nightColor = nightColor; + } + get_title_iz32un_k$() { + return this.title; + } + get_color_ipu8u2_k$() { + return this.color; + } + get_nightColor_ujwlsc_k$() { + return this.nightColor; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.color; + } + component3_7eebsa_k$() { + return this.nightColor; + } + copy_nc7k0r_k$(title, color, nightColor) { + return new KAdditionEsportMobaStatusDesc(title, color, nightColor); + } + copy(title, color, nightColor, $super) { + title = title === VOID ? this.title : title; + color = color === VOID ? this.color : color; + nightColor = nightColor === VOID ? this.nightColor : nightColor; + return this.copy_nc7k0r_k$(title, color, nightColor); + } + toString() { + return 'KAdditionEsportMobaStatusDesc(title=' + this.title + ', color=' + this.color + ', nightColor=' + this.nightColor + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.color) | 0; + result = imul(result, 31) + getStringHashCode(this.nightColor) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KAdditionEsportMobaStatusDesc)) + return false; + var tmp0_other_with_cast = other instanceof KAdditionEsportMobaStatusDesc ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.color === tmp0_other_with_cast.color)) + return false; + if (!(this.nightColor === tmp0_other_with_cast.nightColor)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KAdditionEsportMobaStatusDesc_nw3xuk_k$(seen1, title, color, nightColor, serializationConstructorMarker) { + Companion_instance_1124; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1111().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.color = ''; + else + $this.color = color; + if (0 === (seen1 & 4)) + $this.nightColor = ''; + else + $this.nightColor = nightColor; + return $this; + } + } + class Companion_1125 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.MatchTeam'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1112(); + } + } + class $serializer_1112 { + constructor() { + $serializer_instance_1112 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KMatchTeam', this, 5); + tmp0_serialDesc.addElement_5pzumi_k$('id', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('name', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('color', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('nightColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp9_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + } else + while (tmp1_flag) { + tmp2_index = tmp9_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp9_input.endStructure_1xqz0n_k$(tmp0_desc); + return KMatchTeam_0.new_com_bapis_bilibili_app_dynamic_v2_KMatchTeam_wr36yw_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); + } + serialize_l88pzu_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.id.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.id); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.name === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.name); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.cover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.color === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.color); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.nightColor === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.nightColor); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_l88pzu_k$(encoder, value instanceof KMatchTeam_0 ? value : THROW_CCE()); + } + } + class KMatchTeam_0 { + constructor(id, name, cover, color, nightColor) { + Companion_instance_1125; + id = id === VOID ? new Long(0, 0) : id; + name = name === VOID ? '' : name; + cover = cover === VOID ? '' : cover; + color = color === VOID ? '' : color; + nightColor = nightColor === VOID ? '' : nightColor; + this.id = id; + this.name = name; + this.cover = cover; + this.color = color; + this.nightColor = nightColor; + } + get_id_kntnx8_k$() { + return this.id; + } + get_name_woqyms_k$() { + return this.name; + } + get_cover_ipug0e_k$() { + return this.cover; + } + get_color_ipu8u2_k$() { + return this.color; + } + get_nightColor_ujwlsc_k$() { + return this.nightColor; + } + component1_7eebsc_k$() { + return this.id; + } + component2_7eebsb_k$() { + return this.name; + } + component3_7eebsa_k$() { + return this.cover; + } + component4_7eebs9_k$() { + return this.color; + } + component5_7eebs8_k$() { + return this.nightColor; + } + copy_iobjcj_k$(id, name, cover, color, nightColor) { + return new KMatchTeam_0(id, name, cover, color, nightColor); + } + copy(id, name, cover, color, nightColor, $super) { + id = id === VOID ? this.id : id; + name = name === VOID ? this.name : name; + cover = cover === VOID ? this.cover : cover; + color = color === VOID ? this.color : color; + nightColor = nightColor === VOID ? this.nightColor : nightColor; + return this.copy_iobjcj_k$(id, name, cover, color, nightColor); + } + toString() { + return 'KMatchTeam(id=' + this.id.toString() + ', name=' + this.name + ', cover=' + this.cover + ', color=' + this.color + ', nightColor=' + this.nightColor + ')'; + } + hashCode() { + var result = this.id.hashCode(); + result = imul(result, 31) + getStringHashCode(this.name) | 0; + result = imul(result, 31) + getStringHashCode(this.cover) | 0; + result = imul(result, 31) + getStringHashCode(this.color) | 0; + result = imul(result, 31) + getStringHashCode(this.nightColor) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KMatchTeam_0)) + return false; + var tmp0_other_with_cast = other instanceof KMatchTeam_0 ? other : THROW_CCE(); + if (!this.id.equals(tmp0_other_with_cast.id)) + return false; + if (!(this.name === tmp0_other_with_cast.name)) + return false; + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + if (!(this.color === tmp0_other_with_cast.color)) + return false; + if (!(this.nightColor === tmp0_other_with_cast.nightColor)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KMatchTeam_wr36yw_k$(seen1, id, name, cover, color, nightColor, serializationConstructorMarker) { + Companion_instance_1125; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1112().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.id = new Long(0, 0); + else + $this.id = id; + if (0 === (seen1 & 2)) + $this.name = ''; + else + $this.name = name; + if (0 === (seen1 & 4)) + $this.cover = ''; + else + $this.cover = cover; + if (0 === (seen1 & 8)) + $this.color = ''; + else + $this.color = color; + if (0 === (seen1 & 16)) + $this.nightColor = ''; + else + $this.nightColor = nightColor; + return $this; + } + } + class Companion_1126 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.AdditionUP'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1113(); + } + } + class $serializer_1113 { + constructor() { + $serializer_instance_1113 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KAdditionUP', this, 19); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('descText1', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('descText2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('url', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('button', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('cardType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('reserveTotal', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('actSkin', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('rid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('lotteryType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('descText3', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('upMid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + tmp0_serialDesc.addElement_5pzumi_k$('userInfo', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(13)); + tmp0_serialDesc.addElement_5pzumi_k$('dynamicId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(14)); + tmp0_serialDesc.addElement_5pzumi_k$('showText2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(15)); + tmp0_serialDesc.addElement_5pzumi_k$('dynType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(16)); + tmp0_serialDesc.addElement_5pzumi_k$('businessId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(17)); + tmp0_serialDesc.addElement_5pzumi_k$('badgeText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(18)); + tmp0_serialDesc.addElement_5pzumi_k$('isPremiere', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(19)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), get_nullable($serializer_getInstance_1116()), StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_1085()), StringSerializer_getInstance(), LongSerializer_getInstance(), get_nullable($serializer_getInstance_1115()), LongSerializer_getInstance(), IntSerializer_getInstance(), get_nullable($serializer_getInstance_1116()), LongSerializer_getInstance(), get_nullable($serializer_getInstance_1114()), StringSerializer_getInstance(), BooleanSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), BooleanSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = new Long(0, 0); + var tmp11_local7 = null; + var tmp12_local8 = new Long(0, 0); + var tmp13_local9 = 0; + var tmp14_local10 = null; + var tmp15_local11 = new Long(0, 0); + var tmp16_local12 = null; + var tmp17_local13 = null; + var tmp18_local14 = false; + var tmp19_local15 = new Long(0, 0); + var tmp20_local16 = null; + var tmp21_local17 = null; + var tmp22_local18 = false; + var tmp23_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp23_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp23_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp23_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_1116(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp23_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp23_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp23_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_1085(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp23_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp23_input.decodeLongElement_994anb_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp23_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_1115(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp23_input.decodeLongElement_994anb_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp23_input.decodeIntElement_941u6a_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp23_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 10, $serializer_getInstance_1116(), tmp14_local10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp23_input.decodeLongElement_994anb_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + tmp16_local12 = tmp23_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 12, $serializer_getInstance_1114(), tmp16_local12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + tmp17_local13 = tmp23_input.decodeStringElement_3oenpg_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + tmp18_local14 = tmp23_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + tmp19_local15 = tmp23_input.decodeLongElement_994anb_k$(tmp0_desc, 15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + tmp20_local16 = tmp23_input.decodeStringElement_3oenpg_k$(tmp0_desc, 16); + tmp3_bitMask0 = tmp3_bitMask0 | 65536; + tmp21_local17 = tmp23_input.decodeStringElement_3oenpg_k$(tmp0_desc, 17); + tmp3_bitMask0 = tmp3_bitMask0 | 131072; + tmp22_local18 = tmp23_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 18); + tmp3_bitMask0 = tmp3_bitMask0 | 262144; + } else + while (tmp1_flag) { + tmp2_index = tmp23_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp23_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp23_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_1116(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp23_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp23_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp23_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_1085(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp23_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp23_input.decodeLongElement_994anb_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp23_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_1115(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp23_input.decodeLongElement_994anb_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp23_input.decodeIntElement_941u6a_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp23_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 10, $serializer_getInstance_1116(), tmp14_local10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp23_input.decodeLongElement_994anb_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + case 12: + tmp16_local12 = tmp23_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 12, $serializer_getInstance_1114(), tmp16_local12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + break; + case 13: + tmp17_local13 = tmp23_input.decodeStringElement_3oenpg_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + break; + case 14: + tmp18_local14 = tmp23_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + break; + case 15: + tmp19_local15 = tmp23_input.decodeLongElement_994anb_k$(tmp0_desc, 15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + break; + case 16: + tmp20_local16 = tmp23_input.decodeStringElement_3oenpg_k$(tmp0_desc, 16); + tmp3_bitMask0 = tmp3_bitMask0 | 65536; + break; + case 17: + tmp21_local17 = tmp23_input.decodeStringElement_3oenpg_k$(tmp0_desc, 17); + tmp3_bitMask0 = tmp3_bitMask0 | 131072; + break; + case 18: + tmp22_local18 = tmp23_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 18); + tmp3_bitMask0 = tmp3_bitMask0 | 262144; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp23_input.endStructure_1xqz0n_k$(tmp0_desc); + return KAdditionUP.new_com_bapis_bilibili_app_dynamic_v2_KAdditionUP_f7nkum_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, tmp18_local14, tmp19_local15, tmp20_local16, tmp21_local17, tmp22_local18, null); + } + serialize_umea5v_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.descText1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_1116(), value.descText1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.descText2 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.descText2); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.url === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.url); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.button == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, $serializer_getInstance_1085(), value.button); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.cardType === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.cardType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !value.reserveTotal.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 6, value.reserveTotal); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.actSkin == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 7, $serializer_getInstance_1115(), value.actSkin); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !value.rid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 8, value.rid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.lotteryType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 9, value.lotteryType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.descText3 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 10, $serializer_getInstance_1116(), value.descText3); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !value.upMid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 11, value.upMid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !(value.userInfo == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 12, $serializer_getInstance_1114(), value.userInfo); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 13) ? true : !(value.dynamicId === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 13, value.dynamicId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 14) ? true : !(value.showText2 === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 14, value.showText2); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 15) ? true : !value.dynType.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 15, value.dynType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 16) ? true : !(value.businessId === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 16, value.businessId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 17) ? true : !(value.badgeText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 17, value.badgeText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 18) ? true : !(value.isPremiere === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 18, value.isPremiere); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_umea5v_k$(encoder, value instanceof KAdditionUP ? value : THROW_CCE()); + } + } + class KAdditionUP { + constructor(title, descText1, descText2, url, button, cardType, reserveTotal, actSkin, rid, lotteryType, descText3, upMid, userInfo, dynamicId, showText2, dynType, businessId, badgeText, isPremiere) { + Companion_instance_1126; + title = title === VOID ? '' : title; + descText1 = descText1 === VOID ? null : descText1; + descText2 = descText2 === VOID ? '' : descText2; + url = url === VOID ? '' : url; + button = button === VOID ? null : button; + cardType = cardType === VOID ? '' : cardType; + reserveTotal = reserveTotal === VOID ? new Long(0, 0) : reserveTotal; + actSkin = actSkin === VOID ? null : actSkin; + rid = rid === VOID ? new Long(0, 0) : rid; + lotteryType = lotteryType === VOID ? 0 : lotteryType; + descText3 = descText3 === VOID ? null : descText3; + upMid = upMid === VOID ? new Long(0, 0) : upMid; + userInfo = userInfo === VOID ? null : userInfo; + dynamicId = dynamicId === VOID ? '' : dynamicId; + showText2 = showText2 === VOID ? false : showText2; + dynType = dynType === VOID ? new Long(0, 0) : dynType; + businessId = businessId === VOID ? '' : businessId; + badgeText = badgeText === VOID ? '' : badgeText; + isPremiere = isPremiere === VOID ? false : isPremiere; + this.title = title; + this.descText1 = descText1; + this.descText2 = descText2; + this.url = url; + this.button = button; + this.cardType = cardType; + this.reserveTotal = reserveTotal; + this.actSkin = actSkin; + this.rid = rid; + this.lotteryType = lotteryType; + this.descText3 = descText3; + this.upMid = upMid; + this.userInfo = userInfo; + this.dynamicId = dynamicId; + this.showText2 = showText2; + this.dynType = dynType; + this.businessId = businessId; + this.badgeText = badgeText; + this.isPremiere = isPremiere; + } + get_title_iz32un_k$() { + return this.title; + } + get_descText1_wuy7ze_k$() { + return this.descText1; + } + get_descText2_wuy7zf_k$() { + return this.descText2; + } + get_url_18iuii_k$() { + return this.url; + } + get_button_bmjiuz_k$() { + return this.button; + } + get_cardType_vxu2tp_k$() { + return this.cardType; + } + get_reserveTotal_e2odsf_k$() { + return this.reserveTotal; + } + get_actSkin_hyjo3e_k$() { + return this.actSkin; + } + get_rid_18iwyk_k$() { + return this.rid; + } + get_lotteryType_b79o3q_k$() { + return this.lotteryType; + } + get_descText3_wuy7zg_k$() { + return this.descText3; + } + get_upMid_izqjd0_k$() { + return this.upMid; + } + get_userInfo_ytbsgy_k$() { + return this.userInfo; + } + get_dynamicId_wvqga7_k$() { + return this.dynamicId; + } + get_showText2_n4z3sx_k$() { + return this.showText2; + } + get_dynType_ymr0ra_k$() { + return this.dynType; + } + get_businessId_7z4n7o_k$() { + return this.businessId; + } + get_badgeText_rkpz5l_k$() { + return this.badgeText; + } + get_isPremiere_gj8nrg_k$() { + return this.isPremiere; + } + lotteryTypeEnum() { + return Companion_getInstance_1080().fromValue(this.lotteryType); + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.descText1; + } + component3_7eebsa_k$() { + return this.descText2; + } + component4_7eebs9_k$() { + return this.url; + } + component5_7eebs8_k$() { + return this.button; + } + component6_7eebs7_k$() { + return this.cardType; + } + component7_7eebs6_k$() { + return this.reserveTotal; + } + component8_7eebs5_k$() { + return this.actSkin; + } + component9_7eebs4_k$() { + return this.rid; + } + component10_gazzfo_k$() { + return this.lotteryType; + } + component11_gazzfn_k$() { + return this.descText3; + } + component12_gazzfm_k$() { + return this.upMid; + } + component13_gazzfl_k$() { + return this.userInfo; + } + component14_gazzfk_k$() { + return this.dynamicId; + } + component15_gazzfj_k$() { + return this.showText2; + } + component16_gazzfi_k$() { + return this.dynType; + } + component17_gazzfh_k$() { + return this.businessId; + } + component18_gazzfg_k$() { + return this.badgeText; + } + component19_gazzff_k$() { + return this.isPremiere; + } + copy_3mu9tx_k$(title, descText1, descText2, url, button, cardType, reserveTotal, actSkin, rid, lotteryType, descText3, upMid, userInfo, dynamicId, showText2, dynType, businessId, badgeText, isPremiere) { + return new KAdditionUP(title, descText1, descText2, url, button, cardType, reserveTotal, actSkin, rid, lotteryType, descText3, upMid, userInfo, dynamicId, showText2, dynType, businessId, badgeText, isPremiere); + } + copy(title, descText1, descText2, url, button, cardType, reserveTotal, actSkin, rid, lotteryType, descText3, upMid, userInfo, dynamicId, showText2, dynType, businessId, badgeText, isPremiere, $super) { + title = title === VOID ? this.title : title; + descText1 = descText1 === VOID ? this.descText1 : descText1; + descText2 = descText2 === VOID ? this.descText2 : descText2; + url = url === VOID ? this.url : url; + button = button === VOID ? this.button : button; + cardType = cardType === VOID ? this.cardType : cardType; + reserveTotal = reserveTotal === VOID ? this.reserveTotal : reserveTotal; + actSkin = actSkin === VOID ? this.actSkin : actSkin; + rid = rid === VOID ? this.rid : rid; + lotteryType = lotteryType === VOID ? this.lotteryType : lotteryType; + descText3 = descText3 === VOID ? this.descText3 : descText3; + upMid = upMid === VOID ? this.upMid : upMid; + userInfo = userInfo === VOID ? this.userInfo : userInfo; + dynamicId = dynamicId === VOID ? this.dynamicId : dynamicId; + showText2 = showText2 === VOID ? this.showText2 : showText2; + dynType = dynType === VOID ? this.dynType : dynType; + businessId = businessId === VOID ? this.businessId : businessId; + badgeText = badgeText === VOID ? this.badgeText : badgeText; + isPremiere = isPremiere === VOID ? this.isPremiere : isPremiere; + return this.copy_3mu9tx_k$(title, descText1, descText2, url, button, cardType, reserveTotal, actSkin, rid, lotteryType, descText3, upMid, userInfo, dynamicId, showText2, dynType, businessId, badgeText, isPremiere); + } + toString() { + return 'KAdditionUP(title=' + this.title + ', descText1=' + this.descText1 + ', descText2=' + this.descText2 + ', url=' + this.url + ', button=' + this.button + ', cardType=' + this.cardType + ', reserveTotal=' + this.reserveTotal.toString() + ', actSkin=' + this.actSkin + ', rid=' + this.rid.toString() + ', lotteryType=' + this.lotteryType + ', descText3=' + this.descText3 + ', upMid=' + this.upMid.toString() + ', userInfo=' + this.userInfo + ', dynamicId=' + this.dynamicId + ', showText2=' + this.showText2 + ', dynType=' + this.dynType.toString() + ', businessId=' + this.businessId + ', badgeText=' + this.badgeText + ', isPremiere=' + this.isPremiere + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + (this.descText1 == null ? 0 : this.descText1.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.descText2) | 0; + result = imul(result, 31) + getStringHashCode(this.url) | 0; + result = imul(result, 31) + (this.button == null ? 0 : this.button.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.cardType) | 0; + result = imul(result, 31) + this.reserveTotal.hashCode() | 0; + result = imul(result, 31) + (this.actSkin == null ? 0 : this.actSkin.hashCode()) | 0; + result = imul(result, 31) + this.rid.hashCode() | 0; + result = imul(result, 31) + this.lotteryType | 0; + result = imul(result, 31) + (this.descText3 == null ? 0 : this.descText3.hashCode()) | 0; + result = imul(result, 31) + this.upMid.hashCode() | 0; + result = imul(result, 31) + (this.userInfo == null ? 0 : this.userInfo.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.dynamicId) | 0; + result = imul(result, 31) + getBooleanHashCode(this.showText2) | 0; + result = imul(result, 31) + this.dynType.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.businessId) | 0; + result = imul(result, 31) + getStringHashCode(this.badgeText) | 0; + result = imul(result, 31) + getBooleanHashCode(this.isPremiere) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KAdditionUP)) + return false; + var tmp0_other_with_cast = other instanceof KAdditionUP ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!equals(this.descText1, tmp0_other_with_cast.descText1)) + return false; + if (!(this.descText2 === tmp0_other_with_cast.descText2)) + return false; + if (!(this.url === tmp0_other_with_cast.url)) + return false; + if (!equals(this.button, tmp0_other_with_cast.button)) + return false; + if (!(this.cardType === tmp0_other_with_cast.cardType)) + return false; + if (!this.reserveTotal.equals(tmp0_other_with_cast.reserveTotal)) + return false; + if (!equals(this.actSkin, tmp0_other_with_cast.actSkin)) + return false; + if (!this.rid.equals(tmp0_other_with_cast.rid)) + return false; + if (!(this.lotteryType === tmp0_other_with_cast.lotteryType)) + return false; + if (!equals(this.descText3, tmp0_other_with_cast.descText3)) + return false; + if (!this.upMid.equals(tmp0_other_with_cast.upMid)) + return false; + if (!equals(this.userInfo, tmp0_other_with_cast.userInfo)) + return false; + if (!(this.dynamicId === tmp0_other_with_cast.dynamicId)) + return false; + if (!(this.showText2 === tmp0_other_with_cast.showText2)) + return false; + if (!this.dynType.equals(tmp0_other_with_cast.dynType)) + return false; + if (!(this.businessId === tmp0_other_with_cast.businessId)) + return false; + if (!(this.badgeText === tmp0_other_with_cast.badgeText)) + return false; + if (!(this.isPremiere === tmp0_other_with_cast.isPremiere)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KAdditionUP_f7nkum_k$(seen1, title, descText1, descText2, url, button, cardType, reserveTotal, actSkin, rid, lotteryType, descText3, upMid, userInfo, dynamicId, showText2, dynType, businessId, badgeText, isPremiere, serializationConstructorMarker) { + Companion_instance_1126; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1113().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.descText1 = null; + else + $this.descText1 = descText1; + if (0 === (seen1 & 4)) + $this.descText2 = ''; + else + $this.descText2 = descText2; + if (0 === (seen1 & 8)) + $this.url = ''; + else + $this.url = url; + if (0 === (seen1 & 16)) + $this.button = null; + else + $this.button = button; + if (0 === (seen1 & 32)) + $this.cardType = ''; + else + $this.cardType = cardType; + if (0 === (seen1 & 64)) + $this.reserveTotal = new Long(0, 0); + else + $this.reserveTotal = reserveTotal; + if (0 === (seen1 & 128)) + $this.actSkin = null; + else + $this.actSkin = actSkin; + if (0 === (seen1 & 256)) + $this.rid = new Long(0, 0); + else + $this.rid = rid; + if (0 === (seen1 & 512)) + $this.lotteryType = 0; + else + $this.lotteryType = lotteryType; + if (0 === (seen1 & 1024)) + $this.descText3 = null; + else + $this.descText3 = descText3; + if (0 === (seen1 & 2048)) + $this.upMid = new Long(0, 0); + else + $this.upMid = upMid; + if (0 === (seen1 & 4096)) + $this.userInfo = null; + else + $this.userInfo = userInfo; + if (0 === (seen1 & 8192)) + $this.dynamicId = ''; + else + $this.dynamicId = dynamicId; + if (0 === (seen1 & 16384)) + $this.showText2 = false; + else + $this.showText2 = showText2; + if (0 === (seen1 & 32768)) + $this.dynType = new Long(0, 0); + else + $this.dynType = dynType; + if (0 === (seen1 & 65536)) + $this.businessId = ''; + else + $this.businessId = businessId; + if (0 === (seen1 & 131072)) + $this.badgeText = ''; + else + $this.badgeText = badgeText; + if (0 === (seen1 & 262144)) + $this.isPremiere = false; + else + $this.isPremiere = isPremiere; + return $this; + } + } + class Companion_1127 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.AdditionUserInfo'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1114(); + } + } + class $serializer_1114 { + constructor() { + $serializer_instance_1114 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KAdditionUserInfo', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('name', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('face', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KAdditionUserInfo.new_com_bapis_bilibili_app_dynamic_v2_KAdditionUserInfo_3lw64j_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_a61s4r_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.name === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.name); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.face === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.face); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_a61s4r_k$(encoder, value instanceof KAdditionUserInfo ? value : THROW_CCE()); + } + } + class KAdditionUserInfo { + constructor(name, face) { + Companion_instance_1127; + name = name === VOID ? '' : name; + face = face === VOID ? '' : face; + this.name = name; + this.face = face; + } + get_name_woqyms_k$() { + return this.name; + } + get_face_woluhy_k$() { + return this.face; + } + component1_7eebsc_k$() { + return this.name; + } + component2_7eebsb_k$() { + return this.face; + } + copy_plwnsl_k$(name, face) { + return new KAdditionUserInfo(name, face); + } + copy(name, face, $super) { + name = name === VOID ? this.name : name; + face = face === VOID ? this.face : face; + return this.copy_plwnsl_k$(name, face); + } + toString() { + return 'KAdditionUserInfo(name=' + this.name + ', face=' + this.face + ')'; + } + hashCode() { + var result = getStringHashCode(this.name); + result = imul(result, 31) + getStringHashCode(this.face) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KAdditionUserInfo)) + return false; + var tmp0_other_with_cast = other instanceof KAdditionUserInfo ? other : THROW_CCE(); + if (!(this.name === tmp0_other_with_cast.name)) + return false; + if (!(this.face === tmp0_other_with_cast.face)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KAdditionUserInfo_3lw64j_k$(seen1, name, face, serializationConstructorMarker) { + Companion_instance_1127; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1114().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.name = ''; + else + $this.name = name; + if (0 === (seen1 & 2)) + $this.face = ''; + else + $this.face = face; + return $this; + } + } + class Companion_1128 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.AdditionalActSkin'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1115(); + } + } + class $serializer_1115 { + constructor() { + $serializer_instance_1115 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KAdditionalActSkin', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('svga', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('lastImage', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('playTimes', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = new Long(0, 0); + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KAdditionalActSkin.new_com_bapis_bilibili_app_dynamic_v2_KAdditionalActSkin_nbpn5s_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_biuzcc_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.svga === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.svga); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.lastImage === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.lastImage); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.playTimes.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.playTimes); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_biuzcc_k$(encoder, value instanceof KAdditionalActSkin ? value : THROW_CCE()); + } + } + class KAdditionalActSkin { + constructor(svga, lastImage, playTimes) { + Companion_instance_1128; + svga = svga === VOID ? '' : svga; + lastImage = lastImage === VOID ? '' : lastImage; + playTimes = playTimes === VOID ? new Long(0, 0) : playTimes; + this.svga = svga; + this.lastImage = lastImage; + this.playTimes = playTimes; + } + get_svga_woukzq_k$() { + return this.svga; + } + get_lastImage_tk55xg_k$() { + return this.lastImage; + } + get_playTimes_mpjk1j_k$() { + return this.playTimes; + } + component1_7eebsc_k$() { + return this.svga; + } + component2_7eebsb_k$() { + return this.lastImage; + } + component3_7eebsa_k$() { + return this.playTimes; + } + copy_h5h4fn_k$(svga, lastImage, playTimes) { + return new KAdditionalActSkin(svga, lastImage, playTimes); + } + copy(svga, lastImage, playTimes, $super) { + svga = svga === VOID ? this.svga : svga; + lastImage = lastImage === VOID ? this.lastImage : lastImage; + playTimes = playTimes === VOID ? this.playTimes : playTimes; + return this.copy_h5h4fn_k$(svga, lastImage, playTimes); + } + toString() { + return 'KAdditionalActSkin(svga=' + this.svga + ', lastImage=' + this.lastImage + ', playTimes=' + this.playTimes.toString() + ')'; + } + hashCode() { + var result = getStringHashCode(this.svga); + result = imul(result, 31) + getStringHashCode(this.lastImage) | 0; + result = imul(result, 31) + this.playTimes.hashCode() | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KAdditionalActSkin)) + return false; + var tmp0_other_with_cast = other instanceof KAdditionalActSkin ? other : THROW_CCE(); + if (!(this.svga === tmp0_other_with_cast.svga)) + return false; + if (!(this.lastImage === tmp0_other_with_cast.lastImage)) + return false; + if (!this.playTimes.equals(tmp0_other_with_cast.playTimes)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KAdditionalActSkin_nbpn5s_k$(seen1, svga, lastImage, playTimes, serializationConstructorMarker) { + Companion_instance_1128; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1115().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.svga = ''; + else + $this.svga = svga; + if (0 === (seen1 & 2)) + $this.lastImage = ''; + else + $this.lastImage = lastImage; + if (0 === (seen1 & 4)) + $this.playTimes = new Long(0, 0); + else + $this.playTimes = playTimes; + return $this; + } + } + class Companion_1129 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.HighlightText'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1116(); + } + } + class $serializer_1116 { + constructor() { + $serializer_instance_1116 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KHighlightText', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('text', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('textStyle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('jumpUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('icon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = 0; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KHighlightText.new_com_bapis_bilibili_app_dynamic_v2_KHighlightText_potfoe_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_x02m4l_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.text === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.text); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.textStyle === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.textStyle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.jumpUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.jumpUrl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.icon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.icon); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_x02m4l_k$(encoder, value instanceof KHighlightText ? value : THROW_CCE()); + } + } + class KHighlightText { + constructor(text, textStyle, jumpUrl, icon) { + Companion_instance_1129; + text = text === VOID ? '' : text; + textStyle = textStyle === VOID ? 0 : textStyle; + jumpUrl = jumpUrl === VOID ? '' : jumpUrl; + icon = icon === VOID ? '' : icon; + this.text = text; + this.textStyle = textStyle; + this.jumpUrl = jumpUrl; + this.icon = icon; + } + get_text_wouvsm_k$() { + return this.text; + } + get_textStyle_8tt25h_k$() { + return this.textStyle; + } + get_jumpUrl_jhqiko_k$() { + return this.jumpUrl; + } + get_icon_wont8i_k$() { + return this.icon; + } + textStyleEnum() { + return Companion_getInstance_1079().fromValue(this.textStyle); + } + component1_7eebsc_k$() { + return this.text; + } + component2_7eebsb_k$() { + return this.textStyle; + } + component3_7eebsa_k$() { + return this.jumpUrl; + } + component4_7eebs9_k$() { + return this.icon; + } + copy_vx2ncd_k$(text, textStyle, jumpUrl, icon) { + return new KHighlightText(text, textStyle, jumpUrl, icon); + } + copy(text, textStyle, jumpUrl, icon, $super) { + text = text === VOID ? this.text : text; + textStyle = textStyle === VOID ? this.textStyle : textStyle; + jumpUrl = jumpUrl === VOID ? this.jumpUrl : jumpUrl; + icon = icon === VOID ? this.icon : icon; + return this.copy_vx2ncd_k$(text, textStyle, jumpUrl, icon); + } + toString() { + return 'KHighlightText(text=' + this.text + ', textStyle=' + this.textStyle + ', jumpUrl=' + this.jumpUrl + ', icon=' + this.icon + ')'; + } + hashCode() { + var result = getStringHashCode(this.text); + result = imul(result, 31) + this.textStyle | 0; + result = imul(result, 31) + getStringHashCode(this.jumpUrl) | 0; + result = imul(result, 31) + getStringHashCode(this.icon) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KHighlightText)) + return false; + var tmp0_other_with_cast = other instanceof KHighlightText ? other : THROW_CCE(); + if (!(this.text === tmp0_other_with_cast.text)) + return false; + if (!(this.textStyle === tmp0_other_with_cast.textStyle)) + return false; + if (!(this.jumpUrl === tmp0_other_with_cast.jumpUrl)) + return false; + if (!(this.icon === tmp0_other_with_cast.icon)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KHighlightText_potfoe_k$(seen1, text, textStyle, jumpUrl, icon, serializationConstructorMarker) { + Companion_instance_1129; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1116().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.text = ''; + else + $this.text = text; + if (0 === (seen1 & 2)) + $this.textStyle = 0; + else + $this.textStyle = textStyle; + if (0 === (seen1 & 4)) + $this.jumpUrl = ''; + else + $this.jumpUrl = jumpUrl; + if (0 === (seen1 & 8)) + $this.icon = ''; + else + $this.icon = icon; + return $this; + } + } + class Companion_1130 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.AdditionArticle'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1117(); + } + } + class $serializer_1117 { + constructor() { + $serializer_instance_1117 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KAdditionArticle', this, 6); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('descTextLeft', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('descTextRight', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('uri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('cardType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), get_nullable($serializer_getInstance_1079()), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp10_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_1079(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + } else + while (tmp1_flag) { + tmp2_index = tmp10_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_1079(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp10_input.endStructure_1xqz0n_k$(tmp0_desc); + return KAdditionArticle.new_com_bapis_bilibili_app_dynamic_v2_KAdditionArticle_kuheye_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); + } + serialize_wqycsi_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.cover == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_1079(), value.cover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.descTextLeft === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.descTextLeft); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.descTextRight === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.descTextRight); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.uri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.uri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.cardType === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.cardType); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_wqycsi_k$(encoder, value instanceof KAdditionArticle ? value : THROW_CCE()); + } + } + class KAdditionArticle { + constructor(title, cover, descTextLeft, descTextRight, uri, cardType) { + Companion_instance_1130; + title = title === VOID ? '' : title; + cover = cover === VOID ? null : cover; + descTextLeft = descTextLeft === VOID ? '' : descTextLeft; + descTextRight = descTextRight === VOID ? '' : descTextRight; + uri = uri === VOID ? '' : uri; + cardType = cardType === VOID ? '' : cardType; + this.title = title; + this.cover = cover; + this.descTextLeft = descTextLeft; + this.descTextRight = descTextRight; + this.uri = uri; + this.cardType = cardType; + } + get_title_iz32un_k$() { + return this.title; + } + get_cover_ipug0e_k$() { + return this.cover; + } + get_descTextLeft_ngcnci_k$() { + return this.descTextLeft; + } + get_descTextRight_goe7yj_k$() { + return this.descTextRight; + } + get_uri_18iuil_k$() { + return this.uri; + } + get_cardType_vxu2tp_k$() { + return this.cardType; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.cover; + } + component3_7eebsa_k$() { + return this.descTextLeft; + } + component4_7eebs9_k$() { + return this.descTextRight; + } + component5_7eebs8_k$() { + return this.uri; + } + component6_7eebs7_k$() { + return this.cardType; + } + copy_h22lq8_k$(title, cover, descTextLeft, descTextRight, uri, cardType) { + return new KAdditionArticle(title, cover, descTextLeft, descTextRight, uri, cardType); + } + copy(title, cover, descTextLeft, descTextRight, uri, cardType, $super) { + title = title === VOID ? this.title : title; + cover = cover === VOID ? this.cover : cover; + descTextLeft = descTextLeft === VOID ? this.descTextLeft : descTextLeft; + descTextRight = descTextRight === VOID ? this.descTextRight : descTextRight; + uri = uri === VOID ? this.uri : uri; + cardType = cardType === VOID ? this.cardType : cardType; + return this.copy_h22lq8_k$(title, cover, descTextLeft, descTextRight, uri, cardType); + } + toString() { + return 'KAdditionArticle(title=' + this.title + ', cover=' + this.cover + ', descTextLeft=' + this.descTextLeft + ', descTextRight=' + this.descTextRight + ', uri=' + this.uri + ', cardType=' + this.cardType + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + (this.cover == null ? 0 : this.cover.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.descTextLeft) | 0; + result = imul(result, 31) + getStringHashCode(this.descTextRight) | 0; + result = imul(result, 31) + getStringHashCode(this.uri) | 0; + result = imul(result, 31) + getStringHashCode(this.cardType) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KAdditionArticle)) + return false; + var tmp0_other_with_cast = other instanceof KAdditionArticle ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!equals(this.cover, tmp0_other_with_cast.cover)) + return false; + if (!(this.descTextLeft === tmp0_other_with_cast.descTextLeft)) + return false; + if (!(this.descTextRight === tmp0_other_with_cast.descTextRight)) + return false; + if (!(this.uri === tmp0_other_with_cast.uri)) + return false; + if (!(this.cardType === tmp0_other_with_cast.cardType)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KAdditionArticle_kuheye_k$(seen1, title, cover, descTextLeft, descTextRight, uri, cardType, serializationConstructorMarker) { + Companion_instance_1130; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1117().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.cover = null; + else + $this.cover = cover; + if (0 === (seen1 & 4)) + $this.descTextLeft = ''; + else + $this.descTextLeft = descTextLeft; + if (0 === (seen1 & 8)) + $this.descTextRight = ''; + else + $this.descTextRight = descTextRight; + if (0 === (seen1 & 16)) + $this.uri = ''; + else + $this.uri = uri; + if (0 === (seen1 & 32)) + $this.cardType = ''; + else + $this.cardType = cardType; + return $this; + } + } + class Companion_1131 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.AdditionLiveRoom'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1118(); + } + } + class $serializer_1118 { + constructor() { + $serializer_instance_1118 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KAdditionLiveRoom', this, 7); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('badge', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('descTextUpper', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('descTextLower', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('uri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('cardType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_1073()), get_nullable($serializer_getInstance_1120()), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp11_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_1073(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_1120(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + } else + while (tmp1_flag) { + tmp2_index = tmp11_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_1073(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_1120(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp11_input.endStructure_1xqz0n_k$(tmp0_desc); + return KAdditionLiveRoom.new_com_bapis_bilibili_app_dynamic_v2_KAdditionLiveRoom_r5gdx5_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, null); + } + serialize_s6tsmx_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.cover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.badge == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_1073(), value.badge); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.descTextUpper == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_1120(), value.descTextUpper); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.descTextLower === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.descTextLower); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.uri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.uri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.cardType === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.cardType); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_s6tsmx_k$(encoder, value instanceof KAdditionLiveRoom ? value : THROW_CCE()); + } + } + class KAdditionLiveRoom { + constructor(title, cover, badge, descTextUpper, descTextLower, uri, cardType) { + Companion_instance_1131; + title = title === VOID ? '' : title; + cover = cover === VOID ? '' : cover; + badge = badge === VOID ? null : badge; + descTextUpper = descTextUpper === VOID ? null : descTextUpper; + descTextLower = descTextLower === VOID ? '' : descTextLower; + uri = uri === VOID ? '' : uri; + cardType = cardType === VOID ? '' : cardType; + this.title = title; + this.cover = cover; + this.badge = badge; + this.descTextUpper = descTextUpper; + this.descTextLower = descTextLower; + this.uri = uri; + this.cardType = cardType; + } + get_title_iz32un_k$() { + return this.title; + } + get_cover_ipug0e_k$() { + return this.cover; + } + get_badge_ip1cai_k$() { + return this.badge; + } + get_descTextUpper_gmm6o5_k$() { + return this.descTextUpper; + } + get_descTextLower_grktt2_k$() { + return this.descTextLower; + } + get_uri_18iuil_k$() { + return this.uri; + } + get_cardType_vxu2tp_k$() { + return this.cardType; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.cover; + } + component3_7eebsa_k$() { + return this.badge; + } + component4_7eebs9_k$() { + return this.descTextUpper; + } + component5_7eebs8_k$() { + return this.descTextLower; + } + component6_7eebs7_k$() { + return this.uri; + } + component7_7eebs6_k$() { + return this.cardType; + } + copy_2rp31o_k$(title, cover, badge, descTextUpper, descTextLower, uri, cardType) { + return new KAdditionLiveRoom(title, cover, badge, descTextUpper, descTextLower, uri, cardType); + } + copy(title, cover, badge, descTextUpper, descTextLower, uri, cardType, $super) { + title = title === VOID ? this.title : title; + cover = cover === VOID ? this.cover : cover; + badge = badge === VOID ? this.badge : badge; + descTextUpper = descTextUpper === VOID ? this.descTextUpper : descTextUpper; + descTextLower = descTextLower === VOID ? this.descTextLower : descTextLower; + uri = uri === VOID ? this.uri : uri; + cardType = cardType === VOID ? this.cardType : cardType; + return this.copy_2rp31o_k$(title, cover, badge, descTextUpper, descTextLower, uri, cardType); + } + toString() { + return 'KAdditionLiveRoom(title=' + this.title + ', cover=' + this.cover + ', badge=' + this.badge + ', descTextUpper=' + this.descTextUpper + ', descTextLower=' + this.descTextLower + ', uri=' + this.uri + ', cardType=' + this.cardType + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.cover) | 0; + result = imul(result, 31) + (this.badge == null ? 0 : this.badge.hashCode()) | 0; + result = imul(result, 31) + (this.descTextUpper == null ? 0 : this.descTextUpper.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.descTextLower) | 0; + result = imul(result, 31) + getStringHashCode(this.uri) | 0; + result = imul(result, 31) + getStringHashCode(this.cardType) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KAdditionLiveRoom)) + return false; + var tmp0_other_with_cast = other instanceof KAdditionLiveRoom ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + if (!equals(this.badge, tmp0_other_with_cast.badge)) + return false; + if (!equals(this.descTextUpper, tmp0_other_with_cast.descTextUpper)) + return false; + if (!(this.descTextLower === tmp0_other_with_cast.descTextLower)) + return false; + if (!(this.uri === tmp0_other_with_cast.uri)) + return false; + if (!(this.cardType === tmp0_other_with_cast.cardType)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KAdditionLiveRoom_r5gdx5_k$(seen1, title, cover, badge, descTextUpper, descTextLower, uri, cardType, serializationConstructorMarker) { + Companion_instance_1131; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1118().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.cover = ''; + else + $this.cover = cover; + if (0 === (seen1 & 4)) + $this.badge = null; + else + $this.badge = badge; + if (0 === (seen1 & 8)) + $this.descTextUpper = null; + else + $this.descTextUpper = descTextUpper; + if (0 === (seen1 & 16)) + $this.descTextLower = ''; + else + $this.descTextLower = descTextLower; + if (0 === (seen1 & 32)) + $this.uri = ''; + else + $this.uri = uri; + if (0 === (seen1 & 64)) + $this.cardType = ''; + else + $this.cardType = cardType; + return $this; + } + } + class Companion_1132 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.AdditionMusic'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1119(); + } + } + class $serializer_1119 { + constructor() { + $serializer_instance_1119 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KAdditionMusic', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('musicCard', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('cardType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_1083()), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_1083(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_1083(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KAdditionMusic.new_com_bapis_bilibili_app_dynamic_v2_KAdditionMusic_36ei6d_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_g81nn7_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.musicCard == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_1083(), value.musicCard); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.cardType === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.cardType); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_g81nn7_k$(encoder, value instanceof KAdditionMusic ? value : THROW_CCE()); + } + } + class KAdditionMusic { + constructor(musicCard, cardType) { + Companion_instance_1132; + musicCard = musicCard === VOID ? null : musicCard; + cardType = cardType === VOID ? '' : cardType; + this.musicCard = musicCard; + this.cardType = cardType; + } + get_musicCard_eyhwks_k$() { + return this.musicCard; + } + get_cardType_vxu2tp_k$() { + return this.cardType; + } + component1_7eebsc_k$() { + return this.musicCard; + } + component2_7eebsb_k$() { + return this.cardType; + } + copy_fvhgje_k$(musicCard, cardType) { + return new KAdditionMusic(musicCard, cardType); + } + copy(musicCard, cardType, $super) { + musicCard = musicCard === VOID ? this.musicCard : musicCard; + cardType = cardType === VOID ? this.cardType : cardType; + return this.copy_fvhgje_k$(musicCard, cardType); + } + toString() { + return 'KAdditionMusic(musicCard=' + this.musicCard + ', cardType=' + this.cardType + ')'; + } + hashCode() { + var result = this.musicCard == null ? 0 : this.musicCard.hashCode(); + result = imul(result, 31) + getStringHashCode(this.cardType) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KAdditionMusic)) + return false; + var tmp0_other_with_cast = other instanceof KAdditionMusic ? other : THROW_CCE(); + if (!equals(this.musicCard, tmp0_other_with_cast.musicCard)) + return false; + if (!(this.cardType === tmp0_other_with_cast.cardType)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KAdditionMusic_36ei6d_k$(seen1, musicCard, cardType, serializationConstructorMarker) { + Companion_instance_1132; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1119().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.musicCard = null; + else + $this.musicCard = musicCard; + if (0 === (seen1 & 2)) + $this.cardType = ''; + else + $this.cardType = cardType; + return $this; + } + } + class Companion_1133 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.CoverIconWithText'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1120(); + } + } + class $serializer_1120 { + constructor() { + $serializer_instance_1120 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KCoverIconWithText', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('icon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('text', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('iconChecked', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), StringSerializer_getInstance(), BooleanSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = null; + var tmp6_local2 = false; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KCoverIconWithText.new_com_bapis_bilibili_app_dynamic_v2_KCoverIconWithText_wjrvu1_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_ptmtvd_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.icon === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.icon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.text === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.text); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.iconChecked === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 2, value.iconChecked); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_ptmtvd_k$(encoder, value instanceof KCoverIconWithText ? value : THROW_CCE()); + } + } + class KCoverIconWithText { + constructor(icon, text, iconChecked) { + Companion_instance_1133; + icon = icon === VOID ? 0 : icon; + text = text === VOID ? '' : text; + iconChecked = iconChecked === VOID ? false : iconChecked; + this.icon = icon; + this.text = text; + this.iconChecked = iconChecked; + } + get_icon_wont8i_k$() { + return this.icon; + } + get_text_wouvsm_k$() { + return this.text; + } + get_iconChecked_fl3r7p_k$() { + return this.iconChecked; + } + iconEnum() { + return Companion_getInstance_1081().fromValue(this.icon); + } + component1_7eebsc_k$() { + return this.icon; + } + component2_7eebsb_k$() { + return this.text; + } + component3_7eebsa_k$() { + return this.iconChecked; + } + copy_70e8fi_k$(icon, text, iconChecked) { + return new KCoverIconWithText(icon, text, iconChecked); + } + copy(icon, text, iconChecked, $super) { + icon = icon === VOID ? this.icon : icon; + text = text === VOID ? this.text : text; + iconChecked = iconChecked === VOID ? this.iconChecked : iconChecked; + return this.copy_70e8fi_k$(icon, text, iconChecked); + } + toString() { + return 'KCoverIconWithText(icon=' + this.icon + ', text=' + this.text + ', iconChecked=' + this.iconChecked + ')'; + } + hashCode() { + var result = this.icon; + result = imul(result, 31) + getStringHashCode(this.text) | 0; + result = imul(result, 31) + getBooleanHashCode(this.iconChecked) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KCoverIconWithText)) + return false; + var tmp0_other_with_cast = other instanceof KCoverIconWithText ? other : THROW_CCE(); + if (!(this.icon === tmp0_other_with_cast.icon)) + return false; + if (!(this.text === tmp0_other_with_cast.text)) + return false; + if (!(this.iconChecked === tmp0_other_with_cast.iconChecked)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KCoverIconWithText_wjrvu1_k$(seen1, icon, text, iconChecked, serializationConstructorMarker) { + Companion_instance_1133; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1120().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.icon = 0; + else + $this.icon = icon; + if (0 === (seen1 & 2)) + $this.text = ''; + else + $this.text = text; + if (0 === (seen1 & 4)) + $this.iconChecked = false; + else + $this.iconChecked = iconChecked; + return $this; + } + } + class KItem_10 { + constructor(value) { + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + } + class KAdditionVoteWord extends KItem_10 { + constructor() { + KAdditionVoteWord_instance = null; + super(0); + KAdditionVoteWord_instance = this; + } + } + class KAdditionVotePic extends KItem_10 { + constructor() { + KAdditionVotePic_instance = null; + super(1); + KAdditionVotePic_instance = this; + } + } + class KAdditionVoteDefaule extends KItem_10 { + constructor() { + KAdditionVoteDefaule_instance = null; + super(2); + KAdditionVoteDefaule_instance = this; + } + } + class Companion_1134 { + constructor() { + Companion_instance_1134 = this; + var tmp = this; + tmp.itemValues$delegate_1 = lazy_0(KAdditionVote2$Companion$itemValues$delegate$lambda); + this.targetPath = '/bilibili.app.dynamic.v2.AdditionVote2'; + } + get_itemValues_e195su_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.itemValues$delegate_1; + var thisRef = this; + var property = itemValues$factory_7(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1121(); + } + get itemValues() { + return this.get_itemValues_e195su_k$(); + } + } + class $serializer_1121 { + constructor() { + $serializer_instance_1121 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KAdditionVote2', this, 20); + tmp0_serialDesc.addElement_5pzumi_k$('additionVoteType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('voteId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('label', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('deadline', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('openText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('closeText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('votedText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('state', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('bizType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(13)); + tmp0_serialDesc.addElement_5pzumi_k$('total', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(14)); + tmp0_serialDesc.addElement_5pzumi_k$('cardType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(15)); + tmp0_serialDesc.addElement_5pzumi_k$('tips', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(16)); + tmp0_serialDesc.addElement_5pzumi_k$('uri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(17)); + tmp0_serialDesc.addElement_5pzumi_k$('isVoted', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(18)); + tmp0_serialDesc.addElement_5pzumi_k$('choiceCnt', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(19)); + tmp0_serialDesc.addElement_5pzumi_k$('defauleSelectShare', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(20)); + tmp0_serialDesc.addElement_5pzumi_k$('additionVoteWord', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('additionVotePic', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('additionVoteDefaule', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), BooleanSerializer_getInstance(), IntSerializer_getInstance(), BooleanSerializer_getInstance(), get_nullable($serializer_getInstance_1122()), get_nullable($serializer_getInstance_1124()), get_nullable($serializer_getInstance_1126())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = new Long(0, 0); + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = new Long(0, 0); + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_local8 = 0; + var tmp13_local9 = 0; + var tmp14_local10 = new Long(0, 0); + var tmp15_local11 = null; + var tmp16_local12 = null; + var tmp17_local13 = null; + var tmp18_local14 = false; + var tmp19_local15 = 0; + var tmp20_local16 = false; + var tmp21_local17 = null; + var tmp22_local18 = null; + var tmp23_local19 = null; + var tmp24_transient0 = 0; + var tmp25_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp25_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp25_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp25_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp25_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp25_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp25_input.decodeLongElement_994anb_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp25_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp25_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp25_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp25_input.decodeIntElement_941u6a_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp25_input.decodeIntElement_941u6a_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp25_input.decodeLongElement_994anb_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp25_input.decodeStringElement_3oenpg_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + tmp16_local12 = tmp25_input.decodeStringElement_3oenpg_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + tmp17_local13 = tmp25_input.decodeStringElement_3oenpg_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + tmp18_local14 = tmp25_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + tmp19_local15 = tmp25_input.decodeIntElement_941u6a_k$(tmp0_desc, 15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + tmp20_local16 = tmp25_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 16); + tmp3_bitMask0 = tmp3_bitMask0 | 65536; + tmp21_local17 = tmp25_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 17, $serializer_getInstance_1122(), tmp21_local17); + tmp3_bitMask0 = tmp3_bitMask0 | 131072; + tmp22_local18 = tmp25_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 18, $serializer_getInstance_1124(), tmp22_local18); + tmp3_bitMask0 = tmp3_bitMask0 | 262144; + tmp23_local19 = tmp25_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 19, $serializer_getInstance_1126(), tmp23_local19); + tmp3_bitMask0 = tmp3_bitMask0 | 524288; + } else + while (tmp1_flag) { + tmp2_index = tmp25_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp25_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp25_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp25_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp25_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp25_input.decodeLongElement_994anb_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp25_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp25_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp25_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp25_input.decodeIntElement_941u6a_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp25_input.decodeIntElement_941u6a_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp25_input.decodeLongElement_994anb_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp25_input.decodeStringElement_3oenpg_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + case 12: + tmp16_local12 = tmp25_input.decodeStringElement_3oenpg_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + break; + case 13: + tmp17_local13 = tmp25_input.decodeStringElement_3oenpg_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + break; + case 14: + tmp18_local14 = tmp25_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + break; + case 15: + tmp19_local15 = tmp25_input.decodeIntElement_941u6a_k$(tmp0_desc, 15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + break; + case 16: + tmp20_local16 = tmp25_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 16); + tmp3_bitMask0 = tmp3_bitMask0 | 65536; + break; + case 17: + tmp21_local17 = tmp25_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 17, $serializer_getInstance_1122(), tmp21_local17); + tmp3_bitMask0 = tmp3_bitMask0 | 131072; + break; + case 18: + tmp22_local18 = tmp25_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 18, $serializer_getInstance_1124(), tmp22_local18); + tmp3_bitMask0 = tmp3_bitMask0 | 262144; + break; + case 19: + tmp23_local19 = tmp25_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 19, $serializer_getInstance_1126(), tmp23_local19); + tmp3_bitMask0 = tmp3_bitMask0 | 524288; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp25_input.endStructure_1xqz0n_k$(tmp0_desc); + return KAdditionVote2.new_com_bapis_bilibili_app_dynamic_v2_KAdditionVote2_lagyqk_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, tmp18_local14, tmp19_local15, tmp20_local16, tmp21_local17, tmp22_local18, tmp23_local19, null); + } + serialize_ey4500_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.additionVoteType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.additionVoteType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.voteId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.voteId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.label === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.label); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !value.deadline.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 4, value.deadline); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.openText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.openText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.closeText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.closeText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.votedText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.votedText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.state === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 8, value.state); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.bizType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 9, value.bizType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !value.total.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 10, value.total); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.cardType === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 11, value.cardType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !(value.tips === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 12, value.tips); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 13) ? true : !(value.uri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 13, value.uri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 14) ? true : !(value.isVoted === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 14, value.isVoted); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 15) ? true : !(value.choiceCnt === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 15, value.choiceCnt); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 16) ? true : !(value.defauleSelectShare === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 16, value.defauleSelectShare); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 17) ? true : !(value.additionVoteWord_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 17, $serializer_getInstance_1122(), value.additionVoteWord_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 18) ? true : !(value.additionVotePic_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 18, $serializer_getInstance_1124(), value.additionVotePic_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 19) ? true : !(value.additionVoteDefaule_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 19, $serializer_getInstance_1126(), value.additionVoteDefaule_1); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_ey4500_k$(encoder, value instanceof KAdditionVote2 ? value : THROW_CCE()); + } + } + class KAdditionVote2 { + constructor(additionVoteType, voteId, title, label, deadline, openText, closeText, votedText, state, bizType, total, cardType, tips, uri, isVoted, choiceCnt, defauleSelectShare, additionVoteWord, additionVotePic, additionVoteDefaule) { + Companion_getInstance_1134(); + additionVoteType = additionVoteType === VOID ? 0 : additionVoteType; + voteId = voteId === VOID ? new Long(0, 0) : voteId; + title = title === VOID ? '' : title; + label = label === VOID ? '' : label; + deadline = deadline === VOID ? new Long(0, 0) : deadline; + openText = openText === VOID ? '' : openText; + closeText = closeText === VOID ? '' : closeText; + votedText = votedText === VOID ? '' : votedText; + state = state === VOID ? 0 : state; + bizType = bizType === VOID ? 0 : bizType; + total = total === VOID ? new Long(0, 0) : total; + cardType = cardType === VOID ? '' : cardType; + tips = tips === VOID ? '' : tips; + uri = uri === VOID ? '' : uri; + isVoted = isVoted === VOID ? false : isVoted; + choiceCnt = choiceCnt === VOID ? 0 : choiceCnt; + defauleSelectShare = defauleSelectShare === VOID ? false : defauleSelectShare; + additionVoteWord = additionVoteWord === VOID ? null : additionVoteWord; + additionVotePic = additionVotePic === VOID ? null : additionVotePic; + additionVoteDefaule = additionVoteDefaule === VOID ? null : additionVoteDefaule; + this.additionVoteType = additionVoteType; + this.voteId = voteId; + this.title = title; + this.label = label; + this.deadline = deadline; + this.openText = openText; + this.closeText = closeText; + this.votedText = votedText; + this.state = state; + this.bizType = bizType; + this.total = total; + this.cardType = cardType; + this.tips = tips; + this.uri = uri; + this.isVoted = isVoted; + this.choiceCnt = choiceCnt; + this.defauleSelectShare = defauleSelectShare; + this.additionVoteWord_1 = additionVoteWord; + this.additionVotePic_1 = additionVotePic; + this.additionVoteDefaule_1 = additionVoteDefaule; + var tmp = this; + tmp.itemNumber$delegate_1 = lazy_0(KAdditionVote2$itemNumber$delegate$lambda(this)); + } + get_additionVoteType_fe9fpz_k$() { + return this.additionVoteType; + } + get_voteId_l04v5a_k$() { + return this.voteId; + } + get_title_iz32un_k$() { + return this.title; + } + get_label_iuj8p7_k$() { + return this.label; + } + get_deadline_nh33rz_k$() { + return this.deadline; + } + get_openText_uvpxls_k$() { + return this.openText; + } + get_closeText_j9h24_k$() { + return this.closeText; + } + get_votedText_bzhq3i_k$() { + return this.votedText; + } + get_state_iypx7s_k$() { + return this.state; + } + get_bizType_cjyf0_k$() { + return this.bizType; + } + get_total_iz6wij_k$() { + return this.total; + } + get_cardType_vxu2tp_k$() { + return this.cardType; + } + get_tips_wouykh_k$() { + return this.tips; + } + get_uri_18iuil_k$() { + return this.uri; + } + get_isVoted_zgvbjt_k$() { + return this.isVoted; + } + get_choiceCnt_mjq0yn_k$() { + return this.choiceCnt; + } + get_defauleSelectShare_g629fe_k$() { + return this.defauleSelectShare; + } + itemValue() { + if (!(this.additionVoteWord_1 == null)) { + var tmp = this.additionVoteWord_1; + return (tmp == null ? true : !(tmp == null)) ? tmp : null; + } else if (!(this.additionVotePic_1 == null)) { + var tmp_0 = this.additionVotePic_1; + return (tmp_0 == null ? true : !(tmp_0 == null)) ? tmp_0 : null; + } else if (!(this.additionVoteDefaule_1 == null)) { + var tmp_1 = this.additionVoteDefaule_1; + return (tmp_1 == null ? true : !(tmp_1 == null)) ? tmp_1 : null; + } else { + return null; + } + } + itemTypeJs() { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = Companion_getInstance_1134().itemValues; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.KAdditionVote2.itemType.' call + var it = element; + tmp$ret$0 = it.value === _get_itemNumber__22vn01_7(this); + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + return tmp$ret$1; + } + additionVoteTypeEnum() { + return Companion_getInstance_1082().fromValue(this.additionVoteType); + } + stateEnum() { + return Companion_getInstance_1083().fromValue(this.state); + } + component1_7eebsc_k$() { + return this.additionVoteType; + } + component2_7eebsb_k$() { + return this.voteId; + } + component3_7eebsa_k$() { + return this.title; + } + component4_7eebs9_k$() { + return this.label; + } + component5_7eebs8_k$() { + return this.deadline; + } + component6_7eebs7_k$() { + return this.openText; + } + component7_7eebs6_k$() { + return this.closeText; + } + component8_7eebs5_k$() { + return this.votedText; + } + component9_7eebs4_k$() { + return this.state; + } + component10_gazzfo_k$() { + return this.bizType; + } + component11_gazzfn_k$() { + return this.total; + } + component12_gazzfm_k$() { + return this.cardType; + } + component13_gazzfl_k$() { + return this.tips; + } + component14_gazzfk_k$() { + return this.uri; + } + component15_gazzfj_k$() { + return this.isVoted; + } + component16_gazzfi_k$() { + return this.choiceCnt; + } + component17_gazzfh_k$() { + return this.defauleSelectShare; + } + copy_b34gwn_k$(additionVoteType, voteId, title, label, deadline, openText, closeText, votedText, state, bizType, total, cardType, tips, uri, isVoted, choiceCnt, defauleSelectShare, additionVoteWord, additionVotePic, additionVoteDefaule) { + return new KAdditionVote2(additionVoteType, voteId, title, label, deadline, openText, closeText, votedText, state, bizType, total, cardType, tips, uri, isVoted, choiceCnt, defauleSelectShare, additionVoteWord, additionVotePic, additionVoteDefaule); + } + copy(additionVoteType, voteId, title, label, deadline, openText, closeText, votedText, state, bizType, total, cardType, tips, uri, isVoted, choiceCnt, defauleSelectShare, additionVoteWord, additionVotePic, additionVoteDefaule, $super) { + additionVoteType = additionVoteType === VOID ? this.additionVoteType : additionVoteType; + voteId = voteId === VOID ? this.voteId : voteId; + title = title === VOID ? this.title : title; + label = label === VOID ? this.label : label; + deadline = deadline === VOID ? this.deadline : deadline; + openText = openText === VOID ? this.openText : openText; + closeText = closeText === VOID ? this.closeText : closeText; + votedText = votedText === VOID ? this.votedText : votedText; + state = state === VOID ? this.state : state; + bizType = bizType === VOID ? this.bizType : bizType; + total = total === VOID ? this.total : total; + cardType = cardType === VOID ? this.cardType : cardType; + tips = tips === VOID ? this.tips : tips; + uri = uri === VOID ? this.uri : uri; + isVoted = isVoted === VOID ? this.isVoted : isVoted; + choiceCnt = choiceCnt === VOID ? this.choiceCnt : choiceCnt; + defauleSelectShare = defauleSelectShare === VOID ? this.defauleSelectShare : defauleSelectShare; + additionVoteWord = additionVoteWord === VOID ? this.additionVoteWord_1 : additionVoteWord; + additionVotePic = additionVotePic === VOID ? this.additionVotePic_1 : additionVotePic; + additionVoteDefaule = additionVoteDefaule === VOID ? this.additionVoteDefaule_1 : additionVoteDefaule; + return this.copy_b34gwn_k$(additionVoteType, voteId, title, label, deadline, openText, closeText, votedText, state, bizType, total, cardType, tips, uri, isVoted, choiceCnt, defauleSelectShare, additionVoteWord, additionVotePic, additionVoteDefaule); + } + toString() { + return 'KAdditionVote2(additionVoteType=' + this.additionVoteType + ', voteId=' + this.voteId.toString() + ', title=' + this.title + ', label=' + this.label + ', deadline=' + this.deadline.toString() + ', openText=' + this.openText + ', closeText=' + this.closeText + ', votedText=' + this.votedText + ', state=' + this.state + ', bizType=' + this.bizType + ', total=' + this.total.toString() + ', cardType=' + this.cardType + ', tips=' + this.tips + ', uri=' + this.uri + ', isVoted=' + this.isVoted + ', choiceCnt=' + this.choiceCnt + ', defauleSelectShare=' + this.defauleSelectShare + ', additionVoteWord=' + this.additionVoteWord_1 + ', additionVotePic=' + this.additionVotePic_1 + ', additionVoteDefaule=' + this.additionVoteDefaule_1 + ')'; + } + hashCode() { + var result = this.additionVoteType; + result = imul(result, 31) + this.voteId.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.title) | 0; + result = imul(result, 31) + getStringHashCode(this.label) | 0; + result = imul(result, 31) + this.deadline.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.openText) | 0; + result = imul(result, 31) + getStringHashCode(this.closeText) | 0; + result = imul(result, 31) + getStringHashCode(this.votedText) | 0; + result = imul(result, 31) + this.state | 0; + result = imul(result, 31) + this.bizType | 0; + result = imul(result, 31) + this.total.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.cardType) | 0; + result = imul(result, 31) + getStringHashCode(this.tips) | 0; + result = imul(result, 31) + getStringHashCode(this.uri) | 0; + result = imul(result, 31) + getBooleanHashCode(this.isVoted) | 0; + result = imul(result, 31) + this.choiceCnt | 0; + result = imul(result, 31) + getBooleanHashCode(this.defauleSelectShare) | 0; + result = imul(result, 31) + (this.additionVoteWord_1 == null ? 0 : this.additionVoteWord_1.hashCode()) | 0; + result = imul(result, 31) + (this.additionVotePic_1 == null ? 0 : this.additionVotePic_1.hashCode()) | 0; + result = imul(result, 31) + (this.additionVoteDefaule_1 == null ? 0 : this.additionVoteDefaule_1.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KAdditionVote2)) + return false; + var tmp0_other_with_cast = other instanceof KAdditionVote2 ? other : THROW_CCE(); + if (!(this.additionVoteType === tmp0_other_with_cast.additionVoteType)) + return false; + if (!this.voteId.equals(tmp0_other_with_cast.voteId)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.label === tmp0_other_with_cast.label)) + return false; + if (!this.deadline.equals(tmp0_other_with_cast.deadline)) + return false; + if (!(this.openText === tmp0_other_with_cast.openText)) + return false; + if (!(this.closeText === tmp0_other_with_cast.closeText)) + return false; + if (!(this.votedText === tmp0_other_with_cast.votedText)) + return false; + if (!(this.state === tmp0_other_with_cast.state)) + return false; + if (!(this.bizType === tmp0_other_with_cast.bizType)) + return false; + if (!this.total.equals(tmp0_other_with_cast.total)) + return false; + if (!(this.cardType === tmp0_other_with_cast.cardType)) + return false; + if (!(this.tips === tmp0_other_with_cast.tips)) + return false; + if (!(this.uri === tmp0_other_with_cast.uri)) + return false; + if (!(this.isVoted === tmp0_other_with_cast.isVoted)) + return false; + if (!(this.choiceCnt === tmp0_other_with_cast.choiceCnt)) + return false; + if (!(this.defauleSelectShare === tmp0_other_with_cast.defauleSelectShare)) + return false; + if (!equals(this.additionVoteWord_1, tmp0_other_with_cast.additionVoteWord_1)) + return false; + if (!equals(this.additionVotePic_1, tmp0_other_with_cast.additionVotePic_1)) + return false; + if (!equals(this.additionVoteDefaule_1, tmp0_other_with_cast.additionVoteDefaule_1)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KAdditionVote2_lagyqk_k$(seen1, additionVoteType, voteId, title, label, deadline, openText, closeText, votedText, state, bizType, total, cardType, tips, uri, isVoted, choiceCnt, defauleSelectShare, additionVoteWord, additionVotePic, additionVoteDefaule, serializationConstructorMarker) { + Companion_getInstance_1134(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1121().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.additionVoteType = 0; + else + $this.additionVoteType = additionVoteType; + if (0 === (seen1 & 2)) + $this.voteId = new Long(0, 0); + else + $this.voteId = voteId; + if (0 === (seen1 & 4)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 8)) + $this.label = ''; + else + $this.label = label; + if (0 === (seen1 & 16)) + $this.deadline = new Long(0, 0); + else + $this.deadline = deadline; + if (0 === (seen1 & 32)) + $this.openText = ''; + else + $this.openText = openText; + if (0 === (seen1 & 64)) + $this.closeText = ''; + else + $this.closeText = closeText; + if (0 === (seen1 & 128)) + $this.votedText = ''; + else + $this.votedText = votedText; + if (0 === (seen1 & 256)) + $this.state = 0; + else + $this.state = state; + if (0 === (seen1 & 512)) + $this.bizType = 0; + else + $this.bizType = bizType; + if (0 === (seen1 & 1024)) + $this.total = new Long(0, 0); + else + $this.total = total; + if (0 === (seen1 & 2048)) + $this.cardType = ''; + else + $this.cardType = cardType; + if (0 === (seen1 & 4096)) + $this.tips = ''; + else + $this.tips = tips; + if (0 === (seen1 & 8192)) + $this.uri = ''; + else + $this.uri = uri; + if (0 === (seen1 & 16384)) + $this.isVoted = false; + else + $this.isVoted = isVoted; + if (0 === (seen1 & 32768)) + $this.choiceCnt = 0; + else + $this.choiceCnt = choiceCnt; + if (0 === (seen1 & 65536)) + $this.defauleSelectShare = false; + else + $this.defauleSelectShare = defauleSelectShare; + if (0 === (seen1 & 131072)) + $this.additionVoteWord_1 = null; + else + $this.additionVoteWord_1 = additionVoteWord; + if (0 === (seen1 & 262144)) + $this.additionVotePic_1 = null; + else + $this.additionVotePic_1 = additionVotePic; + if (0 === (seen1 & 524288)) + $this.additionVoteDefaule_1 = null; + else + $this.additionVoteDefaule_1 = additionVoteDefaule; + var tmp = $this; + tmp.itemNumber$delegate_1 = lazy_0(KAdditionVote2$_init_$lambda_wewf62($this)); + return $this; + } + } + class Companion_1135 { + constructor() { + Companion_instance_1135 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer($serializer_getInstance_1123())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.AdditionVoteWord'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1122(); + } + } + class $serializer_1122 { + constructor() { + $serializer_instance_1122 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KAdditionVoteWord', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('item', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_1135().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp6_cached = Companion_getInstance_1135().$childSerializers_1; + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KAdditionVoteWord_0.new_com_bapis_bilibili_app_dynamic_v2_KAdditionVoteWord_yx7ys9_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_z96xyy_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_1135().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.item, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.item); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_z96xyy_k$(encoder, value instanceof KAdditionVoteWord_0 ? value : THROW_CCE()); + } + } + class KAdditionVoteWord_0 { + constructor(item) { + Companion_getInstance_1135(); + item = item === VOID ? emptyList() : item; + this.item = item; + } + get_item_woo5lo_k$() { + return this.item; + } + component1_7eebsc_k$() { + return this.item; + } + copy_cx8r77_k$(item) { + return new KAdditionVoteWord_0(item); + } + copy(item, $super) { + item = item === VOID ? this.item : item; + return this.copy_cx8r77_k$(item); + } + toString() { + return 'KAdditionVoteWord(item=' + this.item + ')'; + } + hashCode() { + return hashCode(this.item); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KAdditionVoteWord_0)) + return false; + var tmp0_other_with_cast = other instanceof KAdditionVoteWord_0 ? other : THROW_CCE(); + if (!equals(this.item, tmp0_other_with_cast.item)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KAdditionVoteWord_yx7ys9_k$(seen1, item, serializationConstructorMarker) { + Companion_getInstance_1135(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1122().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.item = emptyList(); + else + $this.item = item; + return $this; + } + } + class Companion_1136 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.AdditionVoteWordItem'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1123(); + } + } + class $serializer_1123 { + constructor() { + $serializer_instance_1123 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KAdditionVoteWordItem', this, 6); + tmp0_serialDesc.addElement_5pzumi_k$('optIdx', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('isVote', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('total', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('persent', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('isMaxOption', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), StringSerializer_getInstance(), BooleanSerializer_getInstance(), IntSerializer_getInstance(), DoubleSerializer_getInstance(), BooleanSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = null; + var tmp6_local2 = false; + var tmp7_local3 = 0; + var tmp8_local4 = 0.0; + var tmp9_local5 = false; + var tmp10_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp10_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp10_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp10_input.decodeDoubleElement_isei84_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp10_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + } else + while (tmp1_flag) { + tmp2_index = tmp10_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp10_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp10_input.decodeDoubleElement_isei84_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp10_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp10_input.endStructure_1xqz0n_k$(tmp0_desc); + return KAdditionVoteWordItem.new_com_bapis_bilibili_app_dynamic_v2_KAdditionVoteWordItem_jv3tvy_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); + } + serialize_5l6ihl_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.optIdx === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.optIdx); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.isVote === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 2, value.isVote); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.total === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 3, value.total); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !equals(value.persent, 0.0)) { + tmp1_output.encodeDoubleElement_a6rqhe_k$(tmp0_desc, 4, value.persent); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.isMaxOption === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 5, value.isMaxOption); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_5l6ihl_k$(encoder, value instanceof KAdditionVoteWordItem ? value : THROW_CCE()); + } + } + class KAdditionVoteWordItem { + constructor(optIdx, title, isVote, total, persent, isMaxOption) { + Companion_instance_1136; + optIdx = optIdx === VOID ? 0 : optIdx; + title = title === VOID ? '' : title; + isVote = isVote === VOID ? false : isVote; + total = total === VOID ? 0 : total; + persent = persent === VOID ? 0.0 : persent; + isMaxOption = isMaxOption === VOID ? false : isMaxOption; + this.optIdx = optIdx; + this.title = title; + this.isVote = isVote; + this.total = total; + this.persent = persent; + this.isMaxOption = isMaxOption; + } + get_optIdx_hpcqvn_k$() { + return this.optIdx; + } + get_title_iz32un_k$() { + return this.title; + } + get_isVote_ew818d_k$() { + return this.isVote; + } + get_total_iz6wij_k$() { + return this.total; + } + get_persent_9ydltg_k$() { + return this.persent; + } + get_isMaxOption_lvww3q_k$() { + return this.isMaxOption; + } + component1_7eebsc_k$() { + return this.optIdx; + } + component2_7eebsb_k$() { + return this.title; + } + component3_7eebsa_k$() { + return this.isVote; + } + component4_7eebs9_k$() { + return this.total; + } + component5_7eebs8_k$() { + return this.persent; + } + component6_7eebs7_k$() { + return this.isMaxOption; + } + copy_bc024p_k$(optIdx, title, isVote, total, persent, isMaxOption) { + return new KAdditionVoteWordItem(optIdx, title, isVote, total, persent, isMaxOption); + } + copy(optIdx, title, isVote, total, persent, isMaxOption, $super) { + optIdx = optIdx === VOID ? this.optIdx : optIdx; + title = title === VOID ? this.title : title; + isVote = isVote === VOID ? this.isVote : isVote; + total = total === VOID ? this.total : total; + persent = persent === VOID ? this.persent : persent; + isMaxOption = isMaxOption === VOID ? this.isMaxOption : isMaxOption; + return this.copy_bc024p_k$(optIdx, title, isVote, total, persent, isMaxOption); + } + toString() { + return 'KAdditionVoteWordItem(optIdx=' + this.optIdx + ', title=' + this.title + ', isVote=' + this.isVote + ', total=' + this.total + ', persent=' + this.persent + ', isMaxOption=' + this.isMaxOption + ')'; + } + hashCode() { + var result = this.optIdx; + result = imul(result, 31) + getStringHashCode(this.title) | 0; + result = imul(result, 31) + getBooleanHashCode(this.isVote) | 0; + result = imul(result, 31) + this.total | 0; + result = imul(result, 31) + getNumberHashCode(this.persent) | 0; + result = imul(result, 31) + getBooleanHashCode(this.isMaxOption) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KAdditionVoteWordItem)) + return false; + var tmp0_other_with_cast = other instanceof KAdditionVoteWordItem ? other : THROW_CCE(); + if (!(this.optIdx === tmp0_other_with_cast.optIdx)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.isVote === tmp0_other_with_cast.isVote)) + return false; + if (!(this.total === tmp0_other_with_cast.total)) + return false; + if (!equals(this.persent, tmp0_other_with_cast.persent)) + return false; + if (!(this.isMaxOption === tmp0_other_with_cast.isMaxOption)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KAdditionVoteWordItem_jv3tvy_k$(seen1, optIdx, title, isVote, total, persent, isMaxOption, serializationConstructorMarker) { + Companion_instance_1136; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1123().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.optIdx = 0; + else + $this.optIdx = optIdx; + if (0 === (seen1 & 2)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 4)) + $this.isVote = false; + else + $this.isVote = isVote; + if (0 === (seen1 & 8)) + $this.total = 0; + else + $this.total = total; + if (0 === (seen1 & 16)) + $this.persent = 0.0; + else + $this.persent = persent; + if (0 === (seen1 & 32)) + $this.isMaxOption = false; + else + $this.isMaxOption = isMaxOption; + return $this; + } + } + class Companion_1137 { + constructor() { + Companion_instance_1137 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer($serializer_getInstance_1125())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.AdditionVotePic'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1124(); + } + } + class $serializer_1124 { + constructor() { + $serializer_instance_1124 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KAdditionVotePic', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('item', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_1137().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp6_cached = Companion_getInstance_1137().$childSerializers_1; + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KAdditionVotePic_0.new_com_bapis_bilibili_app_dynamic_v2_KAdditionVotePic_crw561_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_ic3j5k_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_1137().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.item, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.item); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_ic3j5k_k$(encoder, value instanceof KAdditionVotePic_0 ? value : THROW_CCE()); + } + } + class KAdditionVotePic_0 { + constructor(item) { + Companion_getInstance_1137(); + item = item === VOID ? emptyList() : item; + this.item = item; + } + get_item_woo5lo_k$() { + return this.item; + } + component1_7eebsc_k$() { + return this.item; + } + copy_hrzkvj_k$(item) { + return new KAdditionVotePic_0(item); + } + copy(item, $super) { + item = item === VOID ? this.item : item; + return this.copy_hrzkvj_k$(item); + } + toString() { + return 'KAdditionVotePic(item=' + this.item + ')'; + } + hashCode() { + return hashCode(this.item); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KAdditionVotePic_0)) + return false; + var tmp0_other_with_cast = other instanceof KAdditionVotePic_0 ? other : THROW_CCE(); + if (!equals(this.item, tmp0_other_with_cast.item)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KAdditionVotePic_crw561_k$(seen1, item, serializationConstructorMarker) { + Companion_getInstance_1137(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1124().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.item = emptyList(); + else + $this.item = item; + return $this; + } + } + class Companion_1138 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.AdditionVotePicItem'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1125(); + } + } + class $serializer_1125 { + constructor() { + $serializer_instance_1125 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KAdditionVotePicItem', this, 7); + tmp0_serialDesc.addElement_5pzumi_k$('optIdx', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('isVote', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('total', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('persent', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('isMaxOption', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), StringSerializer_getInstance(), BooleanSerializer_getInstance(), IntSerializer_getInstance(), DoubleSerializer_getInstance(), StringSerializer_getInstance(), BooleanSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = null; + var tmp6_local2 = false; + var tmp7_local3 = 0; + var tmp8_local4 = 0.0; + var tmp9_local5 = null; + var tmp10_local6 = false; + var tmp11_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp11_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp11_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp11_input.decodeDoubleElement_isei84_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp11_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + } else + while (tmp1_flag) { + tmp2_index = tmp11_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp11_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp11_input.decodeDoubleElement_isei84_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp11_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp11_input.endStructure_1xqz0n_k$(tmp0_desc); + return KAdditionVotePicItem.new_com_bapis_bilibili_app_dynamic_v2_KAdditionVotePicItem_a3nd69_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, null); + } + serialize_prwpuj_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.optIdx === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.optIdx); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.cover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.isVote === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 2, value.isVote); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.total === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 3, value.total); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !equals(value.persent, 0.0)) { + tmp1_output.encodeDoubleElement_a6rqhe_k$(tmp0_desc, 4, value.persent); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.isMaxOption === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 6, value.isMaxOption); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_prwpuj_k$(encoder, value instanceof KAdditionVotePicItem ? value : THROW_CCE()); + } + } + class KAdditionVotePicItem { + constructor(optIdx, cover, isVote, total, persent, title, isMaxOption) { + Companion_instance_1138; + optIdx = optIdx === VOID ? 0 : optIdx; + cover = cover === VOID ? '' : cover; + isVote = isVote === VOID ? false : isVote; + total = total === VOID ? 0 : total; + persent = persent === VOID ? 0.0 : persent; + title = title === VOID ? '' : title; + isMaxOption = isMaxOption === VOID ? false : isMaxOption; + this.optIdx = optIdx; + this.cover = cover; + this.isVote = isVote; + this.total = total; + this.persent = persent; + this.title = title; + this.isMaxOption = isMaxOption; + } + get_optIdx_hpcqvn_k$() { + return this.optIdx; + } + get_cover_ipug0e_k$() { + return this.cover; + } + get_isVote_ew818d_k$() { + return this.isVote; + } + get_total_iz6wij_k$() { + return this.total; + } + get_persent_9ydltg_k$() { + return this.persent; + } + get_title_iz32un_k$() { + return this.title; + } + get_isMaxOption_lvww3q_k$() { + return this.isMaxOption; + } + component1_7eebsc_k$() { + return this.optIdx; + } + component2_7eebsb_k$() { + return this.cover; + } + component3_7eebsa_k$() { + return this.isVote; + } + component4_7eebs9_k$() { + return this.total; + } + component5_7eebs8_k$() { + return this.persent; + } + component6_7eebs7_k$() { + return this.title; + } + component7_7eebs6_k$() { + return this.isMaxOption; + } + copy_sh1ws9_k$(optIdx, cover, isVote, total, persent, title, isMaxOption) { + return new KAdditionVotePicItem(optIdx, cover, isVote, total, persent, title, isMaxOption); + } + copy(optIdx, cover, isVote, total, persent, title, isMaxOption, $super) { + optIdx = optIdx === VOID ? this.optIdx : optIdx; + cover = cover === VOID ? this.cover : cover; + isVote = isVote === VOID ? this.isVote : isVote; + total = total === VOID ? this.total : total; + persent = persent === VOID ? this.persent : persent; + title = title === VOID ? this.title : title; + isMaxOption = isMaxOption === VOID ? this.isMaxOption : isMaxOption; + return this.copy_sh1ws9_k$(optIdx, cover, isVote, total, persent, title, isMaxOption); + } + toString() { + return 'KAdditionVotePicItem(optIdx=' + this.optIdx + ', cover=' + this.cover + ', isVote=' + this.isVote + ', total=' + this.total + ', persent=' + this.persent + ', title=' + this.title + ', isMaxOption=' + this.isMaxOption + ')'; + } + hashCode() { + var result = this.optIdx; + result = imul(result, 31) + getStringHashCode(this.cover) | 0; + result = imul(result, 31) + getBooleanHashCode(this.isVote) | 0; + result = imul(result, 31) + this.total | 0; + result = imul(result, 31) + getNumberHashCode(this.persent) | 0; + result = imul(result, 31) + getStringHashCode(this.title) | 0; + result = imul(result, 31) + getBooleanHashCode(this.isMaxOption) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KAdditionVotePicItem)) + return false; + var tmp0_other_with_cast = other instanceof KAdditionVotePicItem ? other : THROW_CCE(); + if (!(this.optIdx === tmp0_other_with_cast.optIdx)) + return false; + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + if (!(this.isVote === tmp0_other_with_cast.isVote)) + return false; + if (!(this.total === tmp0_other_with_cast.total)) + return false; + if (!equals(this.persent, tmp0_other_with_cast.persent)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.isMaxOption === tmp0_other_with_cast.isMaxOption)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KAdditionVotePicItem_a3nd69_k$(seen1, optIdx, cover, isVote, total, persent, title, isMaxOption, serializationConstructorMarker) { + Companion_instance_1138; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1125().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.optIdx = 0; + else + $this.optIdx = optIdx; + if (0 === (seen1 & 2)) + $this.cover = ''; + else + $this.cover = cover; + if (0 === (seen1 & 4)) + $this.isVote = false; + else + $this.isVote = isVote; + if (0 === (seen1 & 8)) + $this.total = 0; + else + $this.total = total; + if (0 === (seen1 & 16)) + $this.persent = 0.0; + else + $this.persent = persent; + if (0 === (seen1 & 32)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 64)) + $this.isMaxOption = false; + else + $this.isMaxOption = isMaxOption; + return $this; + } + } + class Companion_1139 { + constructor() { + Companion_instance_1139 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer(StringSerializer_getInstance())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.AdditionVoteDefaule'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1126(); + } + } + class $serializer_1126 { + constructor() { + $serializer_instance_1126 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KAdditionVoteDefaule', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_1139().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp6_cached = Companion_getInstance_1139().$childSerializers_1; + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KAdditionVoteDefaule_0.new_com_bapis_bilibili_app_dynamic_v2_KAdditionVoteDefaule_f67f63_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_28b3ao_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_1139().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.cover, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.cover); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_28b3ao_k$(encoder, value instanceof KAdditionVoteDefaule_0 ? value : THROW_CCE()); + } + } + class KAdditionVoteDefaule_0 { + constructor(cover) { + Companion_getInstance_1139(); + cover = cover === VOID ? emptyList() : cover; + this.cover = cover; + } + get_cover_ipug0e_k$() { + return this.cover; + } + component1_7eebsc_k$() { + return this.cover; + } + copy_is4t59_k$(cover) { + return new KAdditionVoteDefaule_0(cover); + } + copy(cover, $super) { + cover = cover === VOID ? this.cover : cover; + return this.copy_is4t59_k$(cover); + } + toString() { + return 'KAdditionVoteDefaule(cover=' + this.cover + ')'; + } + hashCode() { + return hashCode(this.cover); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KAdditionVoteDefaule_0)) + return false; + var tmp0_other_with_cast = other instanceof KAdditionVoteDefaule_0 ? other : THROW_CCE(); + if (!equals(this.cover, tmp0_other_with_cast.cover)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KAdditionVoteDefaule_f67f63_k$(seen1, cover, serializationConstructorMarker) { + Companion_getInstance_1139(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1126().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.cover = emptyList(); + else + $this.cover = cover; + return $this; + } + } + class Companion_1140 { + constructor() { + Companion_instance_1140 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KOpusType$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KOpusType$Companion$_anonymous__o7vqcr); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_139(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KOpusType_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KOpusType with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_139(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_1127 { + constructor() { + $serializer_instance_1127 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.dynamic.v2.KOpusType', 5); + tmp0_serialDesc.addElement_5pzumi_k$('DYN', false); + tmp0_serialDesc.addElement_5pzumi_k$('ARTICLE', false); + tmp0_serialDesc.addElement_5pzumi_k$('NOTE', false); + tmp0_serialDesc.addElement_5pzumi_k$('WORD', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_139()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_3t9k7s_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_3t9k7s_k$(encoder, value instanceof KOpusType ? value : THROW_CCE()); + } + } + class KOpusType extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_1141 { + constructor() { + Companion_instance_1141 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KFlowItemType$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KFlowItemType$Companion$_anonymous__xlfqwn); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_140(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KFlowItemType_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KFlowItemType with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_140(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_1128 { + constructor() { + $serializer_instance_1128 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.dynamic.v2.KFlowItemType', 3); + tmp0_serialDesc.addElement_5pzumi_k$('INVALID', false); + tmp0_serialDesc.addElement_5pzumi_k$('OPUS', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_140()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_x6871y_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_x6871y_k$(encoder, value instanceof KFlowItemType ? value : THROW_CCE()); + } + } + class KFlowItemType extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_1142 { + constructor() { + Companion_instance_1142 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, new ArrayListSerializer($serializer_getInstance_943()), null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.OpusItem'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1129(); + } + } + class $serializer_1129 { + constructor() { + $serializer_instance_1129 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KOpusItem', this, 5); + tmp0_serialDesc.addElement_5pzumi_k$('opusId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('opusType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('oid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('modules', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('extend', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_1142().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), tmp0_cached[3], get_nullable($serializer_getInstance_945())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = 0; + var tmp6_local2 = new Long(0, 0); + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp10_cached = Companion_getInstance_1142().$childSerializers_1; + if (tmp9_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp9_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 3, tmp10_cached[3], tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_945(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + } else + while (tmp1_flag) { + tmp2_index = tmp9_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp9_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 3, tmp10_cached[3], tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_945(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp9_input.endStructure_1xqz0n_k$(tmp0_desc); + return KOpusItem.new_com_bapis_bilibili_app_dynamic_v2_KOpusItem_pqewe0_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); + } + serialize_10lu9k_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_1142().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.opusId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.opusId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.opusType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.opusType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.oid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.oid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !equals(value.modules, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 3, tmp2_cached[3], value.modules); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.extend == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, $serializer_getInstance_945(), value.extend); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_10lu9k_k$(encoder, value instanceof KOpusItem ? value : THROW_CCE()); + } + } + class KOpusItem { + constructor(opusId, opusType, oid, modules, extend) { + Companion_getInstance_1142(); + opusId = opusId === VOID ? new Long(0, 0) : opusId; + opusType = opusType === VOID ? 0 : opusType; + oid = oid === VOID ? new Long(0, 0) : oid; + modules = modules === VOID ? emptyList() : modules; + extend = extend === VOID ? null : extend; + this.opusId = opusId; + this.opusType = opusType; + this.oid = oid; + this.modules = modules; + this.extend = extend; + } + get_opusId_hpe8cj_k$() { + return this.opusId; + } + get_opusType_whwsgu_k$() { + return this.opusType; + } + get_oid_18iz6n_k$() { + return this.oid; + } + get_modules_lkc42m_k$() { + return this.modules; + } + get_extend_d3bgo3_k$() { + return this.extend; + } + opusTypeEnum() { + return Companion_getInstance_1140().fromValue(this.opusType); + } + component1_7eebsc_k$() { + return this.opusId; + } + component2_7eebsb_k$() { + return this.opusType; + } + component3_7eebsa_k$() { + return this.oid; + } + component4_7eebs9_k$() { + return this.modules; + } + component5_7eebs8_k$() { + return this.extend; + } + copy_n28vxg_k$(opusId, opusType, oid, modules, extend) { + return new KOpusItem(opusId, opusType, oid, modules, extend); + } + copy(opusId, opusType, oid, modules, extend, $super) { + opusId = opusId === VOID ? this.opusId : opusId; + opusType = opusType === VOID ? this.opusType : opusType; + oid = oid === VOID ? this.oid : oid; + modules = modules === VOID ? this.modules : modules; + extend = extend === VOID ? this.extend : extend; + return this.copy_n28vxg_k$(opusId, opusType, oid, modules, extend); + } + toString() { + return 'KOpusItem(opusId=' + this.opusId.toString() + ', opusType=' + this.opusType + ', oid=' + this.oid.toString() + ', modules=' + this.modules + ', extend=' + this.extend + ')'; + } + hashCode() { + var result = this.opusId.hashCode(); + result = imul(result, 31) + this.opusType | 0; + result = imul(result, 31) + this.oid.hashCode() | 0; + result = imul(result, 31) + hashCode(this.modules) | 0; + result = imul(result, 31) + (this.extend == null ? 0 : this.extend.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KOpusItem)) + return false; + var tmp0_other_with_cast = other instanceof KOpusItem ? other : THROW_CCE(); + if (!this.opusId.equals(tmp0_other_with_cast.opusId)) + return false; + if (!(this.opusType === tmp0_other_with_cast.opusType)) + return false; + if (!this.oid.equals(tmp0_other_with_cast.oid)) + return false; + if (!equals(this.modules, tmp0_other_with_cast.modules)) + return false; + if (!equals(this.extend, tmp0_other_with_cast.extend)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KOpusItem_pqewe0_k$(seen1, opusId, opusType, oid, modules, extend, serializationConstructorMarker) { + Companion_getInstance_1142(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1129().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.opusId = new Long(0, 0); + else + $this.opusId = opusId; + if (0 === (seen1 & 2)) + $this.opusType = 0; + else + $this.opusType = opusType; + if (0 === (seen1 & 4)) + $this.oid = new Long(0, 0); + else + $this.oid = oid; + if (0 === (seen1 & 8)) + $this.modules = emptyList(); + else + $this.modules = modules; + if (0 === (seen1 & 16)) + $this.extend = null; + else + $this.extend = extend; + return $this; + } + } + class Companion_1143 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.OpusFavItem'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1130(); + } + } + class $serializer_1130 { + constructor() { + $serializer_instance_1130 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KOpusFavItem', this, 6); + tmp0_serialDesc.addElement_5pzumi_k$('opusId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('cardUri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('coverPic', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('textParagraph', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('bottomText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('clickToast', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_1079()), get_nullable($serializer_getInstance_1155()), get_nullable($serializer_getInstance_1120()), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp10_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_1079(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_1155(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_1120(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + } else + while (tmp1_flag) { + tmp2_index = tmp10_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_1079(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_1155(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_1120(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp10_input.endStructure_1xqz0n_k$(tmp0_desc); + return KOpusFavItem.new_com_bapis_bilibili_app_dynamic_v2_KOpusFavItem_x0ledl_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); + } + serialize_vpeufn_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.opusId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.opusId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.cardUri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.cardUri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.coverPic == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_1079(), value.coverPic); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.textParagraph == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_1155(), value.textParagraph); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.bottomText == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, $serializer_getInstance_1120(), value.bottomText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.clickToast === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.clickToast); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_vpeufn_k$(encoder, value instanceof KOpusFavItem ? value : THROW_CCE()); + } + } + class KOpusFavItem { + constructor(opusId, cardUri, coverPic, textParagraph, bottomText, clickToast) { + Companion_instance_1143; + opusId = opusId === VOID ? new Long(0, 0) : opusId; + cardUri = cardUri === VOID ? '' : cardUri; + coverPic = coverPic === VOID ? null : coverPic; + textParagraph = textParagraph === VOID ? null : textParagraph; + bottomText = bottomText === VOID ? null : bottomText; + clickToast = clickToast === VOID ? '' : clickToast; + this.opusId = opusId; + this.cardUri = cardUri; + this.coverPic = coverPic; + this.textParagraph = textParagraph; + this.bottomText = bottomText; + this.clickToast = clickToast; + } + get_opusId_hpe8cj_k$() { + return this.opusId; + } + get_cardUri_afch1v_k$() { + return this.cardUri; + } + get_coverPic_xeqdjw_k$() { + return this.coverPic; + } + get_textParagraph_zgn8fc_k$() { + return this.textParagraph; + } + get_bottomText_n140w1_k$() { + return this.bottomText; + } + get_clickToast_x6xrzs_k$() { + return this.clickToast; + } + component1_7eebsc_k$() { + return this.opusId; + } + component2_7eebsb_k$() { + return this.cardUri; + } + component3_7eebsa_k$() { + return this.coverPic; + } + component4_7eebs9_k$() { + return this.textParagraph; + } + component5_7eebs8_k$() { + return this.bottomText; + } + component6_7eebs7_k$() { + return this.clickToast; + } + copy_rk9b9f_k$(opusId, cardUri, coverPic, textParagraph, bottomText, clickToast) { + return new KOpusFavItem(opusId, cardUri, coverPic, textParagraph, bottomText, clickToast); + } + copy(opusId, cardUri, coverPic, textParagraph, bottomText, clickToast, $super) { + opusId = opusId === VOID ? this.opusId : opusId; + cardUri = cardUri === VOID ? this.cardUri : cardUri; + coverPic = coverPic === VOID ? this.coverPic : coverPic; + textParagraph = textParagraph === VOID ? this.textParagraph : textParagraph; + bottomText = bottomText === VOID ? this.bottomText : bottomText; + clickToast = clickToast === VOID ? this.clickToast : clickToast; + return this.copy_rk9b9f_k$(opusId, cardUri, coverPic, textParagraph, bottomText, clickToast); + } + toString() { + return 'KOpusFavItem(opusId=' + this.opusId.toString() + ', cardUri=' + this.cardUri + ', coverPic=' + this.coverPic + ', textParagraph=' + this.textParagraph + ', bottomText=' + this.bottomText + ', clickToast=' + this.clickToast + ')'; + } + hashCode() { + var result = this.opusId.hashCode(); + result = imul(result, 31) + getStringHashCode(this.cardUri) | 0; + result = imul(result, 31) + (this.coverPic == null ? 0 : this.coverPic.hashCode()) | 0; + result = imul(result, 31) + (this.textParagraph == null ? 0 : this.textParagraph.hashCode()) | 0; + result = imul(result, 31) + (this.bottomText == null ? 0 : this.bottomText.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.clickToast) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KOpusFavItem)) + return false; + var tmp0_other_with_cast = other instanceof KOpusFavItem ? other : THROW_CCE(); + if (!this.opusId.equals(tmp0_other_with_cast.opusId)) + return false; + if (!(this.cardUri === tmp0_other_with_cast.cardUri)) + return false; + if (!equals(this.coverPic, tmp0_other_with_cast.coverPic)) + return false; + if (!equals(this.textParagraph, tmp0_other_with_cast.textParagraph)) + return false; + if (!equals(this.bottomText, tmp0_other_with_cast.bottomText)) + return false; + if (!(this.clickToast === tmp0_other_with_cast.clickToast)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KOpusFavItem_x0ledl_k$(seen1, opusId, cardUri, coverPic, textParagraph, bottomText, clickToast, serializationConstructorMarker) { + Companion_instance_1143; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1130().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.opusId = new Long(0, 0); + else + $this.opusId = opusId; + if (0 === (seen1 & 2)) + $this.cardUri = ''; + else + $this.cardUri = cardUri; + if (0 === (seen1 & 4)) + $this.coverPic = null; + else + $this.coverPic = coverPic; + if (0 === (seen1 & 8)) + $this.textParagraph = null; + else + $this.textParagraph = textParagraph; + if (0 === (seen1 & 16)) + $this.bottomText = null; + else + $this.bottomText = bottomText; + if (0 === (seen1 & 32)) + $this.clickToast = ''; + else + $this.clickToast = clickToast; + return $this; + } + } + class KData_2 { + constructor(value) { + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + } + class KFlowItemOpus extends KData_2 { + constructor() { + KFlowItemOpus_instance = null; + super(0); + KFlowItemOpus_instance = this; + } + } + class Companion_1144 { + constructor() { + Companion_instance_1144 = this; + var tmp = this; + tmp.dataValues$delegate_1 = lazy_0(KOpusFlowItem$Companion$dataValues$delegate$lambda); + this.targetPath = '/bilibili.app.dynamic.v2.OpusFlowItem'; + } + get_dataValues_22mgad_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.dataValues$delegate_1; + var thisRef = this; + var property = dataValues$factory_2(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1131(); + } + get dataValues() { + return this.get_dataValues_22mgad_k$(); + } + } + class $serializer_1131 { + constructor() { + $serializer_instance_1131 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KOpusFlowItem', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('itemType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('oid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('extend', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('flowItemOpus', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), LongSerializer_getInstance(), get_nullable($serializer_getInstance_945()), get_nullable($serializer_getInstance_1132())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = new Long(0, 0); + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_transient0 = 0; + var tmp9_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp9_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_945(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_1132(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp9_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_945(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_1132(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp9_input.endStructure_1xqz0n_k$(tmp0_desc); + return KOpusFlowItem.new_com_bapis_bilibili_app_dynamic_v2_KOpusFlowItem_9lfmaw_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_ju4iy_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.itemType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.itemType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.oid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.oid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.extend == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_945(), value.extend); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.flowItemOpus_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_1132(), value.flowItemOpus_1); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_ju4iy_k$(encoder, value instanceof KOpusFlowItem ? value : THROW_CCE()); + } + } + class KOpusFlowItem { + constructor(itemType, oid, extend, flowItemOpus) { + Companion_getInstance_1144(); + itemType = itemType === VOID ? 0 : itemType; + oid = oid === VOID ? new Long(0, 0) : oid; + extend = extend === VOID ? null : extend; + flowItemOpus = flowItemOpus === VOID ? null : flowItemOpus; + this.itemType = itemType; + this.oid = oid; + this.extend = extend; + this.flowItemOpus_1 = flowItemOpus; + var tmp = this; + tmp.dataNumber$delegate_1 = lazy_0(KOpusFlowItem$dataNumber$delegate$lambda(this)); + } + get_itemType_cbv3uy_k$() { + return this.itemType; + } + get_oid_18iz6n_k$() { + return this.oid; + } + get_extend_d3bgo3_k$() { + return this.extend; + } + dataValue() { + if (!(this.flowItemOpus_1 == null)) { + var tmp = this.flowItemOpus_1; + return (tmp == null ? true : !(tmp == null)) ? tmp : null; + } else { + return null; + } + } + dataTypeJs() { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = Companion_getInstance_1144().dataValues; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.KOpusFlowItem.dataType.' call + var it = element; + tmp$ret$0 = it.value === _get_dataNumber__hqvc14_2(this); + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + return tmp$ret$1; + } + itemTypeEnum() { + return Companion_getInstance_1141().fromValue(this.itemType); + } + component1_7eebsc_k$() { + return this.itemType; + } + component2_7eebsb_k$() { + return this.oid; + } + component3_7eebsa_k$() { + return this.extend; + } + copy_uf3jol_k$(itemType, oid, extend, flowItemOpus) { + return new KOpusFlowItem(itemType, oid, extend, flowItemOpus); + } + copy(itemType, oid, extend, flowItemOpus, $super) { + itemType = itemType === VOID ? this.itemType : itemType; + oid = oid === VOID ? this.oid : oid; + extend = extend === VOID ? this.extend : extend; + flowItemOpus = flowItemOpus === VOID ? this.flowItemOpus_1 : flowItemOpus; + return this.copy_uf3jol_k$(itemType, oid, extend, flowItemOpus); + } + toString() { + return 'KOpusFlowItem(itemType=' + this.itemType + ', oid=' + this.oid.toString() + ', extend=' + this.extend + ', flowItemOpus=' + this.flowItemOpus_1 + ')'; + } + hashCode() { + var result = this.itemType; + result = imul(result, 31) + this.oid.hashCode() | 0; + result = imul(result, 31) + (this.extend == null ? 0 : this.extend.hashCode()) | 0; + result = imul(result, 31) + (this.flowItemOpus_1 == null ? 0 : this.flowItemOpus_1.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KOpusFlowItem)) + return false; + var tmp0_other_with_cast = other instanceof KOpusFlowItem ? other : THROW_CCE(); + if (!(this.itemType === tmp0_other_with_cast.itemType)) + return false; + if (!this.oid.equals(tmp0_other_with_cast.oid)) + return false; + if (!equals(this.extend, tmp0_other_with_cast.extend)) + return false; + if (!equals(this.flowItemOpus_1, tmp0_other_with_cast.flowItemOpus_1)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KOpusFlowItem_9lfmaw_k$(seen1, itemType, oid, extend, flowItemOpus, serializationConstructorMarker) { + Companion_getInstance_1144(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1131().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.itemType = 0; + else + $this.itemType = itemType; + if (0 === (seen1 & 2)) + $this.oid = new Long(0, 0); + else + $this.oid = oid; + if (0 === (seen1 & 4)) + $this.extend = null; + else + $this.extend = extend; + if (0 === (seen1 & 8)) + $this.flowItemOpus_1 = null; + else + $this.flowItemOpus_1 = flowItemOpus; + var tmp = $this; + tmp.dataNumber$delegate_1 = lazy_0(KOpusFlowItem$_init_$lambda_enygow($this)); + return $this; + } + } + class Companion_1145 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.FlowItemOpus'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1132(); + } + } + class $serializer_1132 { + constructor() { + $serializer_instance_1132 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KFlowItemOpus', this, 7); + tmp0_serialDesc.addElement_5pzumi_k$('coverPic', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('coverWhRatio', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('bottomLeftText1', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('bottomLeftText2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('textParagraph', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('topRightBadge', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('darkCoverPic', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_1079()), get_nullable($serializer_getInstance_711()), get_nullable($serializer_getInstance_1120()), get_nullable($serializer_getInstance_1120()), get_nullable($serializer_getInstance_1155()), get_nullable($serializer_getInstance_1073()), get_nullable($serializer_getInstance_1079())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp11_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_1079(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_711(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_1120(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_1120(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_1155(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_1073(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_1079(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + } else + while (tmp1_flag) { + tmp2_index = tmp11_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_1079(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_711(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_1120(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_1120(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_1155(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_1073(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_1079(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp11_input.endStructure_1xqz0n_k$(tmp0_desc); + return KFlowItemOpus_0.new_com_bapis_bilibili_app_dynamic_v2_KFlowItemOpus_lqpcbw_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, null); + } + serialize_potlnu_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.coverPic == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_1079(), value.coverPic); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.coverWhRatio == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_711(), value.coverWhRatio); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.bottomLeftText1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_1120(), value.bottomLeftText1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.bottomLeftText2 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_1120(), value.bottomLeftText2); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.textParagraph == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, $serializer_getInstance_1155(), value.textParagraph); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.topRightBadge == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 5, $serializer_getInstance_1073(), value.topRightBadge); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.darkCoverPic == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 6, $serializer_getInstance_1079(), value.darkCoverPic); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_potlnu_k$(encoder, value instanceof KFlowItemOpus_0 ? value : THROW_CCE()); + } + } + class KFlowItemOpus_0 { + constructor(coverPic, coverWhRatio, bottomLeftText1, bottomLeftText2, textParagraph, topRightBadge, darkCoverPic) { + Companion_instance_1145; + coverPic = coverPic === VOID ? null : coverPic; + coverWhRatio = coverWhRatio === VOID ? null : coverWhRatio; + bottomLeftText1 = bottomLeftText1 === VOID ? null : bottomLeftText1; + bottomLeftText2 = bottomLeftText2 === VOID ? null : bottomLeftText2; + textParagraph = textParagraph === VOID ? null : textParagraph; + topRightBadge = topRightBadge === VOID ? null : topRightBadge; + darkCoverPic = darkCoverPic === VOID ? null : darkCoverPic; + this.coverPic = coverPic; + this.coverWhRatio = coverWhRatio; + this.bottomLeftText1 = bottomLeftText1; + this.bottomLeftText2 = bottomLeftText2; + this.textParagraph = textParagraph; + this.topRightBadge = topRightBadge; + this.darkCoverPic = darkCoverPic; + } + get_coverPic_xeqdjw_k$() { + return this.coverPic; + } + get_coverWhRatio_pbbjck_k$() { + return this.coverWhRatio; + } + get_bottomLeftText1_7ekoon_k$() { + return this.bottomLeftText1; + } + get_bottomLeftText2_7ekoom_k$() { + return this.bottomLeftText2; + } + get_textParagraph_zgn8fc_k$() { + return this.textParagraph; + } + get_topRightBadge_nfivil_k$() { + return this.topRightBadge; + } + get_darkCoverPic_cdnlma_k$() { + return this.darkCoverPic; + } + component1_7eebsc_k$() { + return this.coverPic; + } + component2_7eebsb_k$() { + return this.coverWhRatio; + } + component3_7eebsa_k$() { + return this.bottomLeftText1; + } + component4_7eebs9_k$() { + return this.bottomLeftText2; + } + component5_7eebs8_k$() { + return this.textParagraph; + } + component6_7eebs7_k$() { + return this.topRightBadge; + } + component7_7eebs6_k$() { + return this.darkCoverPic; + } + copy_ffp8x5_k$(coverPic, coverWhRatio, bottomLeftText1, bottomLeftText2, textParagraph, topRightBadge, darkCoverPic) { + return new KFlowItemOpus_0(coverPic, coverWhRatio, bottomLeftText1, bottomLeftText2, textParagraph, topRightBadge, darkCoverPic); + } + copy(coverPic, coverWhRatio, bottomLeftText1, bottomLeftText2, textParagraph, topRightBadge, darkCoverPic, $super) { + coverPic = coverPic === VOID ? this.coverPic : coverPic; + coverWhRatio = coverWhRatio === VOID ? this.coverWhRatio : coverWhRatio; + bottomLeftText1 = bottomLeftText1 === VOID ? this.bottomLeftText1 : bottomLeftText1; + bottomLeftText2 = bottomLeftText2 === VOID ? this.bottomLeftText2 : bottomLeftText2; + textParagraph = textParagraph === VOID ? this.textParagraph : textParagraph; + topRightBadge = topRightBadge === VOID ? this.topRightBadge : topRightBadge; + darkCoverPic = darkCoverPic === VOID ? this.darkCoverPic : darkCoverPic; + return this.copy_ffp8x5_k$(coverPic, coverWhRatio, bottomLeftText1, bottomLeftText2, textParagraph, topRightBadge, darkCoverPic); + } + toString() { + return 'KFlowItemOpus(coverPic=' + this.coverPic + ', coverWhRatio=' + this.coverWhRatio + ', bottomLeftText1=' + this.bottomLeftText1 + ', bottomLeftText2=' + this.bottomLeftText2 + ', textParagraph=' + this.textParagraph + ', topRightBadge=' + this.topRightBadge + ', darkCoverPic=' + this.darkCoverPic + ')'; + } + hashCode() { + var result = this.coverPic == null ? 0 : this.coverPic.hashCode(); + result = imul(result, 31) + (this.coverWhRatio == null ? 0 : this.coverWhRatio.hashCode()) | 0; + result = imul(result, 31) + (this.bottomLeftText1 == null ? 0 : this.bottomLeftText1.hashCode()) | 0; + result = imul(result, 31) + (this.bottomLeftText2 == null ? 0 : this.bottomLeftText2.hashCode()) | 0; + result = imul(result, 31) + (this.textParagraph == null ? 0 : this.textParagraph.hashCode()) | 0; + result = imul(result, 31) + (this.topRightBadge == null ? 0 : this.topRightBadge.hashCode()) | 0; + result = imul(result, 31) + (this.darkCoverPic == null ? 0 : this.darkCoverPic.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KFlowItemOpus_0)) + return false; + var tmp0_other_with_cast = other instanceof KFlowItemOpus_0 ? other : THROW_CCE(); + if (!equals(this.coverPic, tmp0_other_with_cast.coverPic)) + return false; + if (!equals(this.coverWhRatio, tmp0_other_with_cast.coverWhRatio)) + return false; + if (!equals(this.bottomLeftText1, tmp0_other_with_cast.bottomLeftText1)) + return false; + if (!equals(this.bottomLeftText2, tmp0_other_with_cast.bottomLeftText2)) + return false; + if (!equals(this.textParagraph, tmp0_other_with_cast.textParagraph)) + return false; + if (!equals(this.topRightBadge, tmp0_other_with_cast.topRightBadge)) + return false; + if (!equals(this.darkCoverPic, tmp0_other_with_cast.darkCoverPic)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KFlowItemOpus_lqpcbw_k$(seen1, coverPic, coverWhRatio, bottomLeftText1, bottomLeftText2, textParagraph, topRightBadge, darkCoverPic, serializationConstructorMarker) { + Companion_instance_1145; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1132().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.coverPic = null; + else + $this.coverPic = coverPic; + if (0 === (seen1 & 2)) + $this.coverWhRatio = null; + else + $this.coverWhRatio = coverWhRatio; + if (0 === (seen1 & 4)) + $this.bottomLeftText1 = null; + else + $this.bottomLeftText1 = bottomLeftText1; + if (0 === (seen1 & 8)) + $this.bottomLeftText2 = null; + else + $this.bottomLeftText2 = bottomLeftText2; + if (0 === (seen1 & 16)) + $this.textParagraph = null; + else + $this.textParagraph = textParagraph; + if (0 === (seen1 & 32)) + $this.topRightBadge = null; + else + $this.topRightBadge = topRightBadge; + if (0 === (seen1 & 64)) + $this.darkCoverPic = null; + else + $this.darkCoverPic = darkCoverPic; + return $this; + } + } + class Companion_1146 { + constructor() { + Companion_instance_1146 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, new ArrayListSerializer($serializer_getInstance_1134())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.SectionOpusCollection'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1133(); + } + } + class $serializer_1133 { + constructor() { + $serializer_instance_1133 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KSectionOpusCollection', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('allCollections', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_1146().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), tmp0_cached[1]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp7_cached = Companion_getInstance_1146().$childSerializers_1; + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSectionOpusCollection.new_com_bapis_bilibili_app_dynamic_v2_KSectionOpusCollection_ndwxkx_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_mrpjru_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_1146().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !equals(value.allCollections, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 1, tmp2_cached[1], value.allCollections); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_mrpjru_k$(encoder, value instanceof KSectionOpusCollection ? value : THROW_CCE()); + } + } + class KSectionOpusCollection { + constructor(title, allCollections) { + Companion_getInstance_1146(); + title = title === VOID ? '' : title; + allCollections = allCollections === VOID ? emptyList() : allCollections; + this.title = title; + this.allCollections = allCollections; + } + get_title_iz32un_k$() { + return this.title; + } + get_allCollections_ih7s1v_k$() { + return this.allCollections; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.allCollections; + } + copy_6au9ge_k$(title, allCollections) { + return new KSectionOpusCollection(title, allCollections); + } + copy(title, allCollections, $super) { + title = title === VOID ? this.title : title; + allCollections = allCollections === VOID ? this.allCollections : allCollections; + return this.copy_6au9ge_k$(title, allCollections); + } + toString() { + return 'KSectionOpusCollection(title=' + this.title + ', allCollections=' + this.allCollections + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + hashCode(this.allCollections) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSectionOpusCollection)) + return false; + var tmp0_other_with_cast = other instanceof KSectionOpusCollection ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!equals(this.allCollections, tmp0_other_with_cast.allCollections)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KSectionOpusCollection_ndwxkx_k$(seen1, title, allCollections, serializationConstructorMarker) { + Companion_getInstance_1146(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1133().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.allCollections = emptyList(); + else + $this.allCollections = allCollections; + return $this; + } + } + class Companion_1147 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.OpusCollectionWithCover'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1134(); + } + } + class $serializer_1134 { + constructor() { + $serializer_instance_1134 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KOpusCollectionWithCover', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('collectionInfo', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('coverPic', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('coverBottomText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('subTitleText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_1142()), StringSerializer_getInstance(), get_nullable($serializer_getInstance_1120()), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_1142(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_1120(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_1142(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_1120(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KOpusCollectionWithCover.new_com_bapis_bilibili_app_dynamic_v2_KOpusCollectionWithCover_f0i4cy_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_cnnla0_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.collectionInfo == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_1142(), value.collectionInfo); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.coverPic === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.coverPic); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.coverBottomText == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_1120(), value.coverBottomText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.subTitleText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.subTitleText); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_cnnla0_k$(encoder, value instanceof KOpusCollectionWithCover ? value : THROW_CCE()); + } + } + class KOpusCollectionWithCover { + constructor(collectionInfo, coverPic, coverBottomText, subTitleText) { + Companion_instance_1147; + collectionInfo = collectionInfo === VOID ? null : collectionInfo; + coverPic = coverPic === VOID ? '' : coverPic; + coverBottomText = coverBottomText === VOID ? null : coverBottomText; + subTitleText = subTitleText === VOID ? '' : subTitleText; + this.collectionInfo = collectionInfo; + this.coverPic = coverPic; + this.coverBottomText = coverBottomText; + this.subTitleText = subTitleText; + } + get_collectionInfo_wj705n_k$() { + return this.collectionInfo; + } + get_coverPic_xeqdjw_k$() { + return this.coverPic; + } + get_coverBottomText_su0btm_k$() { + return this.coverBottomText; + } + get_subTitleText_3vfatq_k$() { + return this.subTitleText; + } + component1_7eebsc_k$() { + return this.collectionInfo; + } + component2_7eebsb_k$() { + return this.coverPic; + } + component3_7eebsa_k$() { + return this.coverBottomText; + } + component4_7eebs9_k$() { + return this.subTitleText; + } + copy_yxhyeh_k$(collectionInfo, coverPic, coverBottomText, subTitleText) { + return new KOpusCollectionWithCover(collectionInfo, coverPic, coverBottomText, subTitleText); + } + copy(collectionInfo, coverPic, coverBottomText, subTitleText, $super) { + collectionInfo = collectionInfo === VOID ? this.collectionInfo : collectionInfo; + coverPic = coverPic === VOID ? this.coverPic : coverPic; + coverBottomText = coverBottomText === VOID ? this.coverBottomText : coverBottomText; + subTitleText = subTitleText === VOID ? this.subTitleText : subTitleText; + return this.copy_yxhyeh_k$(collectionInfo, coverPic, coverBottomText, subTitleText); + } + toString() { + return 'KOpusCollectionWithCover(collectionInfo=' + this.collectionInfo + ', coverPic=' + this.coverPic + ', coverBottomText=' + this.coverBottomText + ', subTitleText=' + this.subTitleText + ')'; + } + hashCode() { + var result = this.collectionInfo == null ? 0 : this.collectionInfo.hashCode(); + result = imul(result, 31) + getStringHashCode(this.coverPic) | 0; + result = imul(result, 31) + (this.coverBottomText == null ? 0 : this.coverBottomText.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.subTitleText) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KOpusCollectionWithCover)) + return false; + var tmp0_other_with_cast = other instanceof KOpusCollectionWithCover ? other : THROW_CCE(); + if (!equals(this.collectionInfo, tmp0_other_with_cast.collectionInfo)) + return false; + if (!(this.coverPic === tmp0_other_with_cast.coverPic)) + return false; + if (!equals(this.coverBottomText, tmp0_other_with_cast.coverBottomText)) + return false; + if (!(this.subTitleText === tmp0_other_with_cast.subTitleText)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KOpusCollectionWithCover_f0i4cy_k$(seen1, collectionInfo, coverPic, coverBottomText, subTitleText, serializationConstructorMarker) { + Companion_instance_1147; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1134().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.collectionInfo = null; + else + $this.collectionInfo = collectionInfo; + if (0 === (seen1 & 2)) + $this.coverPic = ''; + else + $this.coverPic = coverPic; + if (0 === (seen1 & 4)) + $this.coverBottomText = null; + else + $this.coverBottomText = coverBottomText; + if (0 === (seen1 & 8)) + $this.subTitleText = ''; + else + $this.subTitleText = subTitleText; + return $this; + } + } + class Companion_1148 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.SectionNoteNavigationBar'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1135(); + } + } + class $serializer_1135 { + constructor() { + $serializer_instance_1135 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KSectionNoteNavigationBar', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('rightIcon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('jumpUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSectionNoteNavigationBar.new_com_bapis_bilibili_app_dynamic_v2_KSectionNoteNavigationBar_j3u3x9_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_c6029q_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.rightIcon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.rightIcon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.jumpUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.jumpUrl); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_c6029q_k$(encoder, value instanceof KSectionNoteNavigationBar ? value : THROW_CCE()); + } + } + class KSectionNoteNavigationBar { + constructor(title, rightIcon, jumpUrl) { + Companion_instance_1148; + title = title === VOID ? '' : title; + rightIcon = rightIcon === VOID ? '' : rightIcon; + jumpUrl = jumpUrl === VOID ? '' : jumpUrl; + this.title = title; + this.rightIcon = rightIcon; + this.jumpUrl = jumpUrl; + } + get_title_iz32un_k$() { + return this.title; + } + get_rightIcon_hfw1ys_k$() { + return this.rightIcon; + } + get_jumpUrl_jhqiko_k$() { + return this.jumpUrl; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.rightIcon; + } + component3_7eebsa_k$() { + return this.jumpUrl; + } + copy_nc7k0r_k$(title, rightIcon, jumpUrl) { + return new KSectionNoteNavigationBar(title, rightIcon, jumpUrl); + } + copy(title, rightIcon, jumpUrl, $super) { + title = title === VOID ? this.title : title; + rightIcon = rightIcon === VOID ? this.rightIcon : rightIcon; + jumpUrl = jumpUrl === VOID ? this.jumpUrl : jumpUrl; + return this.copy_nc7k0r_k$(title, rightIcon, jumpUrl); + } + toString() { + return 'KSectionNoteNavigationBar(title=' + this.title + ', rightIcon=' + this.rightIcon + ', jumpUrl=' + this.jumpUrl + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.rightIcon) | 0; + result = imul(result, 31) + getStringHashCode(this.jumpUrl) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSectionNoteNavigationBar)) + return false; + var tmp0_other_with_cast = other instanceof KSectionNoteNavigationBar ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.rightIcon === tmp0_other_with_cast.rightIcon)) + return false; + if (!(this.jumpUrl === tmp0_other_with_cast.jumpUrl)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KSectionNoteNavigationBar_j3u3x9_k$(seen1, title, rightIcon, jumpUrl, serializationConstructorMarker) { + Companion_instance_1148; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1135().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.rightIcon = ''; + else + $this.rightIcon = rightIcon; + if (0 === (seen1 & 4)) + $this.jumpUrl = ''; + else + $this.jumpUrl = jumpUrl; + return $this; + } + } + class Companion_1149 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.ModuleCopyright'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1136(); + } + } + class $serializer_1136 { + constructor() { + $serializer_instance_1136 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KModuleCopyright', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('leftText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('rightText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KModuleCopyright_0.new_com_bapis_bilibili_app_dynamic_v2_KModuleCopyright_xsoggh_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_tu2la9_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.leftText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.leftText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.rightText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.rightText); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_tu2la9_k$(encoder, value instanceof KModuleCopyright_0 ? value : THROW_CCE()); + } + } + class KModuleCopyright_0 { + constructor(leftText, rightText) { + Companion_instance_1149; + leftText = leftText === VOID ? '' : leftText; + rightText = rightText === VOID ? '' : rightText; + this.leftText = leftText; + this.rightText = rightText; + } + get_leftText_3du25f_k$() { + return this.leftText; + } + get_rightText_hfozeo_k$() { + return this.rightText; + } + component1_7eebsc_k$() { + return this.leftText; + } + component2_7eebsb_k$() { + return this.rightText; + } + copy_plwnsl_k$(leftText, rightText) { + return new KModuleCopyright_0(leftText, rightText); + } + copy(leftText, rightText, $super) { + leftText = leftText === VOID ? this.leftText : leftText; + rightText = rightText === VOID ? this.rightText : rightText; + return this.copy_plwnsl_k$(leftText, rightText); + } + toString() { + return 'KModuleCopyright(leftText=' + this.leftText + ', rightText=' + this.rightText + ')'; + } + hashCode() { + var result = getStringHashCode(this.leftText); + result = imul(result, 31) + getStringHashCode(this.rightText) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KModuleCopyright_0)) + return false; + var tmp0_other_with_cast = other instanceof KModuleCopyright_0 ? other : THROW_CCE(); + if (!(this.leftText === tmp0_other_with_cast.leftText)) + return false; + if (!(this.rightText === tmp0_other_with_cast.rightText)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KModuleCopyright_xsoggh_k$(seen1, leftText, rightText, serializationConstructorMarker) { + Companion_instance_1149; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1136().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.leftText = ''; + else + $this.leftText = leftText; + if (0 === (seen1 & 2)) + $this.rightText = ''; + else + $this.rightText = rightText; + return $this; + } + } + class Companion_1150 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.ModuleParagraph'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1137(); + } + } + class $serializer_1137 { + constructor() { + $serializer_instance_1137 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KModuleParagraph', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('paragraph', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('isArticleTitle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('paraSpacing', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_1155()), BooleanSerializer_getInstance(), get_nullable($serializer_getInstance_1138())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = false; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_1155(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_1138(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_1155(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_1138(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KModuleParagraph_0.new_com_bapis_bilibili_app_dynamic_v2_KModuleParagraph_g6bovm_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_hnzinu_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.paragraph == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_1155(), value.paragraph); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.isArticleTitle === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 1, value.isArticleTitle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.paraSpacing == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_1138(), value.paraSpacing); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_hnzinu_k$(encoder, value instanceof KModuleParagraph_0 ? value : THROW_CCE()); + } + } + class KModuleParagraph_0 { + constructor(paragraph, isArticleTitle, paraSpacing) { + Companion_instance_1150; + paragraph = paragraph === VOID ? null : paragraph; + isArticleTitle = isArticleTitle === VOID ? false : isArticleTitle; + paraSpacing = paraSpacing === VOID ? null : paraSpacing; + this.paragraph = paragraph; + this.isArticleTitle = isArticleTitle; + this.paraSpacing = paraSpacing; + } + get_paragraph_ua17wb_k$() { + return this.paragraph; + } + get_isArticleTitle_e2ppw5_k$() { + return this.isArticleTitle; + } + get_paraSpacing_eftrru_k$() { + return this.paraSpacing; + } + component1_7eebsc_k$() { + return this.paragraph; + } + component2_7eebsb_k$() { + return this.isArticleTitle; + } + component3_7eebsa_k$() { + return this.paraSpacing; + } + copy_mslcd5_k$(paragraph, isArticleTitle, paraSpacing) { + return new KModuleParagraph_0(paragraph, isArticleTitle, paraSpacing); + } + copy(paragraph, isArticleTitle, paraSpacing, $super) { + paragraph = paragraph === VOID ? this.paragraph : paragraph; + isArticleTitle = isArticleTitle === VOID ? this.isArticleTitle : isArticleTitle; + paraSpacing = paraSpacing === VOID ? this.paraSpacing : paraSpacing; + return this.copy_mslcd5_k$(paragraph, isArticleTitle, paraSpacing); + } + toString() { + return 'KModuleParagraph(paragraph=' + this.paragraph + ', isArticleTitle=' + this.isArticleTitle + ', paraSpacing=' + this.paraSpacing + ')'; + } + hashCode() { + var result = this.paragraph == null ? 0 : this.paragraph.hashCode(); + result = imul(result, 31) + getBooleanHashCode(this.isArticleTitle) | 0; + result = imul(result, 31) + (this.paraSpacing == null ? 0 : this.paraSpacing.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KModuleParagraph_0)) + return false; + var tmp0_other_with_cast = other instanceof KModuleParagraph_0 ? other : THROW_CCE(); + if (!equals(this.paragraph, tmp0_other_with_cast.paragraph)) + return false; + if (!(this.isArticleTitle === tmp0_other_with_cast.isArticleTitle)) + return false; + if (!equals(this.paraSpacing, tmp0_other_with_cast.paraSpacing)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KModuleParagraph_g6bovm_k$(seen1, paragraph, isArticleTitle, paraSpacing, serializationConstructorMarker) { + Companion_instance_1150; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1137().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.paragraph = null; + else + $this.paragraph = paragraph; + if (0 === (seen1 & 2)) + $this.isArticleTitle = false; + else + $this.isArticleTitle = isArticleTitle; + if (0 === (seen1 & 4)) + $this.paraSpacing = null; + else + $this.paraSpacing = paraSpacing; + return $this; + } + } + class Companion_1151 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.ParaSpacing'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1138(); + } + } + class $serializer_1138 { + constructor() { + $serializer_instance_1138 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KParaSpacing', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('spacingBeforePara', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('spacingAfterPara', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('lineSpacing', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [DoubleSerializer_getInstance(), DoubleSerializer_getInstance(), DoubleSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0.0; + var tmp5_local1 = 0.0; + var tmp6_local2 = 0.0; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeDoubleElement_isei84_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeDoubleElement_isei84_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeDoubleElement_isei84_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeDoubleElement_isei84_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeDoubleElement_isei84_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeDoubleElement_isei84_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KParaSpacing.new_com_bapis_bilibili_app_dynamic_v2_KParaSpacing_ffd287_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_s7igqh_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.spacingBeforePara, 0.0)) { + tmp1_output.encodeDoubleElement_a6rqhe_k$(tmp0_desc, 0, value.spacingBeforePara); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !equals(value.spacingAfterPara, 0.0)) { + tmp1_output.encodeDoubleElement_a6rqhe_k$(tmp0_desc, 1, value.spacingAfterPara); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !equals(value.lineSpacing, 0.0)) { + tmp1_output.encodeDoubleElement_a6rqhe_k$(tmp0_desc, 2, value.lineSpacing); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_s7igqh_k$(encoder, value instanceof KParaSpacing ? value : THROW_CCE()); + } + } + class KParaSpacing { + constructor(spacingBeforePara, spacingAfterPara, lineSpacing) { + Companion_instance_1151; + spacingBeforePara = spacingBeforePara === VOID ? 0.0 : spacingBeforePara; + spacingAfterPara = spacingAfterPara === VOID ? 0.0 : spacingAfterPara; + lineSpacing = lineSpacing === VOID ? 0.0 : lineSpacing; + this.spacingBeforePara = spacingBeforePara; + this.spacingAfterPara = spacingAfterPara; + this.lineSpacing = lineSpacing; + } + get_spacingBeforePara_x4xpmv_k$() { + return this.spacingBeforePara; + } + get_spacingAfterPara_542ese_k$() { + return this.spacingAfterPara; + } + get_lineSpacing_czcmuy_k$() { + return this.lineSpacing; + } + component1_7eebsc_k$() { + return this.spacingBeforePara; + } + component2_7eebsb_k$() { + return this.spacingAfterPara; + } + component3_7eebsa_k$() { + return this.lineSpacing; + } + copy_jri375_k$(spacingBeforePara, spacingAfterPara, lineSpacing) { + return new KParaSpacing(spacingBeforePara, spacingAfterPara, lineSpacing); + } + copy(spacingBeforePara, spacingAfterPara, lineSpacing, $super) { + spacingBeforePara = spacingBeforePara === VOID ? this.spacingBeforePara : spacingBeforePara; + spacingAfterPara = spacingAfterPara === VOID ? this.spacingAfterPara : spacingAfterPara; + lineSpacing = lineSpacing === VOID ? this.lineSpacing : lineSpacing; + return this.copy_jri375_k$(spacingBeforePara, spacingAfterPara, lineSpacing); + } + toString() { + return 'KParaSpacing(spacingBeforePara=' + this.spacingBeforePara + ', spacingAfterPara=' + this.spacingAfterPara + ', lineSpacing=' + this.lineSpacing + ')'; + } + hashCode() { + var result = getNumberHashCode(this.spacingBeforePara); + result = imul(result, 31) + getNumberHashCode(this.spacingAfterPara) | 0; + result = imul(result, 31) + getNumberHashCode(this.lineSpacing) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KParaSpacing)) + return false; + var tmp0_other_with_cast = other instanceof KParaSpacing ? other : THROW_CCE(); + if (!equals(this.spacingBeforePara, tmp0_other_with_cast.spacingBeforePara)) + return false; + if (!equals(this.spacingAfterPara, tmp0_other_with_cast.spacingAfterPara)) + return false; + if (!equals(this.lineSpacing, tmp0_other_with_cast.lineSpacing)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KParaSpacing_ffd287_k$(seen1, spacingBeforePara, spacingAfterPara, lineSpacing, serializationConstructorMarker) { + Companion_instance_1151; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1138().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.spacingBeforePara = 0.0; + else + $this.spacingBeforePara = spacingBeforePara; + if (0 === (seen1 & 2)) + $this.spacingAfterPara = 0.0; + else + $this.spacingAfterPara = spacingAfterPara; + if (0 === (seen1 & 4)) + $this.lineSpacing = 0.0; + else + $this.lineSpacing = lineSpacing; + return $this; + } + } + class Companion_1152 { + constructor() { + Companion_instance_1152 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer($serializer_getInstance_1140())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.OneLineText'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1139(); + } + } + class $serializer_1139 { + constructor() { + $serializer_instance_1139 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KOneLineText', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('texts', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_1152().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp6_cached = Companion_getInstance_1152().$childSerializers_1; + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KOneLineText.new_com_bapis_bilibili_app_dynamic_v2_KOneLineText_747anu_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_mqd0i3_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_1152().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.texts, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.texts); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_mqd0i3_k$(encoder, value instanceof KOneLineText ? value : THROW_CCE()); + } + } + class KOneLineText { + constructor(texts) { + Companion_getInstance_1152(); + texts = texts === VOID ? emptyList() : texts; + this.texts = texts; + } + get_texts_iz0m2l_k$() { + return this.texts; + } + component1_7eebsc_k$() { + return this.texts; + } + copy_441s13_k$(texts) { + return new KOneLineText(texts); + } + copy(texts, $super) { + texts = texts === VOID ? this.texts : texts; + return this.copy_441s13_k$(texts); + } + toString() { + return 'KOneLineText(texts=' + this.texts + ')'; + } + hashCode() { + return hashCode(this.texts); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KOneLineText)) + return false; + var tmp0_other_with_cast = other instanceof KOneLineText ? other : THROW_CCE(); + if (!equals(this.texts, tmp0_other_with_cast.texts)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KOneLineText_747anu_k$(seen1, texts, serializationConstructorMarker) { + Companion_getInstance_1152(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1139().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.texts = emptyList(); + else + $this.texts = texts; + return $this; + } + } + class Companion_1153 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.TextWithPriority'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1140(); + } + } + class $serializer_1140 { + constructor() { + $serializer_instance_1140 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KTextWithPriority', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('text', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('priority', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = new Long(0, 0); + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KTextWithPriority.new_com_bapis_bilibili_app_dynamic_v2_KTextWithPriority_pofa1s_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_p954p9_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.text === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.text); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.priority.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.priority); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_p954p9_k$(encoder, value instanceof KTextWithPriority ? value : THROW_CCE()); + } + } + class KTextWithPriority { + constructor(text, priority) { + Companion_instance_1153; + text = text === VOID ? '' : text; + priority = priority === VOID ? new Long(0, 0) : priority; + this.text = text; + this.priority = priority; + } + get_text_wouvsm_k$() { + return this.text; + } + get_priority_jyafsd_k$() { + return this.priority; + } + component1_7eebsc_k$() { + return this.text; + } + component2_7eebsb_k$() { + return this.priority; + } + copy_gaforn_k$(text, priority) { + return new KTextWithPriority(text, priority); + } + copy(text, priority, $super) { + text = text === VOID ? this.text : text; + priority = priority === VOID ? this.priority : priority; + return this.copy_gaforn_k$(text, priority); + } + toString() { + return 'KTextWithPriority(text=' + this.text + ', priority=' + this.priority.toString() + ')'; + } + hashCode() { + var result = getStringHashCode(this.text); + result = imul(result, 31) + this.priority.hashCode() | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KTextWithPriority)) + return false; + var tmp0_other_with_cast = other instanceof KTextWithPriority ? other : THROW_CCE(); + if (!(this.text === tmp0_other_with_cast.text)) + return false; + if (!this.priority.equals(tmp0_other_with_cast.priority)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KTextWithPriority_pofa1s_k$(seen1, text, priority, serializationConstructorMarker) { + Companion_instance_1153; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1140().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.text = ''; + else + $this.text = text; + if (0 === (seen1 & 2)) + $this.priority = new Long(0, 0); + else + $this.priority = priority; + return $this; + } + } + class Companion_1154 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.ModuleOpusCollection'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1141(); + } + } + class $serializer_1141 { + constructor() { + $serializer_instance_1141 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KModuleOpusCollection', this, 5); + tmp0_serialDesc.addElement_5pzumi_k$('collectionInfo', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('titleUpper', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('titlePrefixIcon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('totalText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_1142()), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp9_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_1142(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + } else + while (tmp1_flag) { + tmp2_index = tmp9_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_1142(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp9_input.endStructure_1xqz0n_k$(tmp0_desc); + return KModuleOpusCollection_0.new_com_bapis_bilibili_app_dynamic_v2_KModuleOpusCollection_caklso_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); + } + serialize_bx8san_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.collectionInfo == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_1142(), value.collectionInfo); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.titleUpper === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.titleUpper); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.titlePrefixIcon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.titlePrefixIcon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.totalText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.totalText); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_bx8san_k$(encoder, value instanceof KModuleOpusCollection_0 ? value : THROW_CCE()); + } + } + class KModuleOpusCollection_0 { + constructor(collectionInfo, titleUpper, title, titlePrefixIcon, totalText) { + Companion_instance_1154; + collectionInfo = collectionInfo === VOID ? null : collectionInfo; + titleUpper = titleUpper === VOID ? '' : titleUpper; + title = title === VOID ? '' : title; + titlePrefixIcon = titlePrefixIcon === VOID ? '' : titlePrefixIcon; + totalText = totalText === VOID ? '' : totalText; + this.collectionInfo = collectionInfo; + this.titleUpper = titleUpper; + this.title = title; + this.titlePrefixIcon = titlePrefixIcon; + this.totalText = totalText; + } + get_collectionInfo_wj705n_k$() { + return this.collectionInfo; + } + get_titleUpper_ldhar7_k$() { + return this.titleUpper; + } + get_title_iz32un_k$() { + return this.title; + } + get_titlePrefixIcon_9g656i_k$() { + return this.titlePrefixIcon; + } + get_totalText_116f4o_k$() { + return this.totalText; + } + component1_7eebsc_k$() { + return this.collectionInfo; + } + component2_7eebsb_k$() { + return this.titleUpper; + } + component3_7eebsa_k$() { + return this.title; + } + component4_7eebs9_k$() { + return this.titlePrefixIcon; + } + component5_7eebs8_k$() { + return this.totalText; + } + copy_7w9naq_k$(collectionInfo, titleUpper, title, titlePrefixIcon, totalText) { + return new KModuleOpusCollection_0(collectionInfo, titleUpper, title, titlePrefixIcon, totalText); + } + copy(collectionInfo, titleUpper, title, titlePrefixIcon, totalText, $super) { + collectionInfo = collectionInfo === VOID ? this.collectionInfo : collectionInfo; + titleUpper = titleUpper === VOID ? this.titleUpper : titleUpper; + title = title === VOID ? this.title : title; + titlePrefixIcon = titlePrefixIcon === VOID ? this.titlePrefixIcon : titlePrefixIcon; + totalText = totalText === VOID ? this.totalText : totalText; + return this.copy_7w9naq_k$(collectionInfo, titleUpper, title, titlePrefixIcon, totalText); + } + toString() { + return 'KModuleOpusCollection(collectionInfo=' + this.collectionInfo + ', titleUpper=' + this.titleUpper + ', title=' + this.title + ', titlePrefixIcon=' + this.titlePrefixIcon + ', totalText=' + this.totalText + ')'; + } + hashCode() { + var result = this.collectionInfo == null ? 0 : this.collectionInfo.hashCode(); + result = imul(result, 31) + getStringHashCode(this.titleUpper) | 0; + result = imul(result, 31) + getStringHashCode(this.title) | 0; + result = imul(result, 31) + getStringHashCode(this.titlePrefixIcon) | 0; + result = imul(result, 31) + getStringHashCode(this.totalText) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KModuleOpusCollection_0)) + return false; + var tmp0_other_with_cast = other instanceof KModuleOpusCollection_0 ? other : THROW_CCE(); + if (!equals(this.collectionInfo, tmp0_other_with_cast.collectionInfo)) + return false; + if (!(this.titleUpper === tmp0_other_with_cast.titleUpper)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.titlePrefixIcon === tmp0_other_with_cast.titlePrefixIcon)) + return false; + if (!(this.totalText === tmp0_other_with_cast.totalText)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KModuleOpusCollection_caklso_k$(seen1, collectionInfo, titleUpper, title, titlePrefixIcon, totalText, serializationConstructorMarker) { + Companion_instance_1154; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1141().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.collectionInfo = null; + else + $this.collectionInfo = collectionInfo; + if (0 === (seen1 & 2)) + $this.titleUpper = ''; + else + $this.titleUpper = titleUpper; + if (0 === (seen1 & 4)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 8)) + $this.titlePrefixIcon = ''; + else + $this.titlePrefixIcon = titlePrefixIcon; + if (0 === (seen1 & 16)) + $this.totalText = ''; + else + $this.totalText = totalText; + return $this; + } + } + class Companion_1155 { + constructor() { + Companion_instance_1155 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, null, new ArrayListSerializer($serializer_getInstance_1143())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.OpusCollection'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1142(); + } + } + class $serializer_1142 { + constructor() { + $serializer_instance_1142 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KOpusCollection', this, 5); + tmp0_serialDesc.addElement_5pzumi_k$('collectionId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('detailUri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('intro', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('allItems', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_1155().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), get_nullable($serializer_getInstance_1139()), StringSerializer_getInstance(), StringSerializer_getInstance(), tmp0_cached[4]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp10_cached = Companion_getInstance_1155().$childSerializers_1; + if (tmp9_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_1139(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp9_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 4, tmp10_cached[4], tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + } else + while (tmp1_flag) { + tmp2_index = tmp9_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_1139(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp9_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 4, tmp10_cached[4], tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp9_input.endStructure_1xqz0n_k$(tmp0_desc); + return KOpusCollection.new_com_bapis_bilibili_app_dynamic_v2_KOpusCollection_8sv0w4_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); + } + serialize_tkz6kt_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_1155().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.collectionId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.collectionId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.title == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_1139(), value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.detailUri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.detailUri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.intro === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.intro); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !equals(value.allItems, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 4, tmp2_cached[4], value.allItems); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_tkz6kt_k$(encoder, value instanceof KOpusCollection ? value : THROW_CCE()); + } + } + class KOpusCollection { + constructor(collectionId, title, detailUri, intro, allItems) { + Companion_getInstance_1155(); + collectionId = collectionId === VOID ? new Long(0, 0) : collectionId; + title = title === VOID ? null : title; + detailUri = detailUri === VOID ? '' : detailUri; + intro = intro === VOID ? '' : intro; + allItems = allItems === VOID ? emptyList() : allItems; + this.collectionId = collectionId; + this.title = title; + this.detailUri = detailUri; + this.intro = intro; + this.allItems = allItems; + } + get_collectionId_vln2qq_k$() { + return this.collectionId; + } + get_title_iz32un_k$() { + return this.title; + } + get_detailUri_o47d5a_k$() { + return this.detailUri; + } + get_intro_it4jer_k$() { + return this.intro; + } + get_allItems_2ee460_k$() { + return this.allItems; + } + component1_7eebsc_k$() { + return this.collectionId; + } + component2_7eebsb_k$() { + return this.title; + } + component3_7eebsa_k$() { + return this.detailUri; + } + component4_7eebs9_k$() { + return this.intro; + } + component5_7eebs8_k$() { + return this.allItems; + } + copy_t6j3d3_k$(collectionId, title, detailUri, intro, allItems) { + return new KOpusCollection(collectionId, title, detailUri, intro, allItems); + } + copy(collectionId, title, detailUri, intro, allItems, $super) { + collectionId = collectionId === VOID ? this.collectionId : collectionId; + title = title === VOID ? this.title : title; + detailUri = detailUri === VOID ? this.detailUri : detailUri; + intro = intro === VOID ? this.intro : intro; + allItems = allItems === VOID ? this.allItems : allItems; + return this.copy_t6j3d3_k$(collectionId, title, detailUri, intro, allItems); + } + toString() { + return 'KOpusCollection(collectionId=' + this.collectionId.toString() + ', title=' + this.title + ', detailUri=' + this.detailUri + ', intro=' + this.intro + ', allItems=' + this.allItems + ')'; + } + hashCode() { + var result = this.collectionId.hashCode(); + result = imul(result, 31) + (this.title == null ? 0 : this.title.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.detailUri) | 0; + result = imul(result, 31) + getStringHashCode(this.intro) | 0; + result = imul(result, 31) + hashCode(this.allItems) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KOpusCollection)) + return false; + var tmp0_other_with_cast = other instanceof KOpusCollection ? other : THROW_CCE(); + if (!this.collectionId.equals(tmp0_other_with_cast.collectionId)) + return false; + if (!equals(this.title, tmp0_other_with_cast.title)) + return false; + if (!(this.detailUri === tmp0_other_with_cast.detailUri)) + return false; + if (!(this.intro === tmp0_other_with_cast.intro)) + return false; + if (!equals(this.allItems, tmp0_other_with_cast.allItems)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KOpusCollection_8sv0w4_k$(seen1, collectionId, title, detailUri, intro, allItems, serializationConstructorMarker) { + Companion_getInstance_1155(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1142().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.collectionId = new Long(0, 0); + else + $this.collectionId = collectionId; + if (0 === (seen1 & 2)) + $this.title = null; + else + $this.title = title; + if (0 === (seen1 & 4)) + $this.detailUri = ''; + else + $this.detailUri = detailUri; + if (0 === (seen1 & 8)) + $this.intro = ''; + else + $this.intro = intro; + if (0 === (seen1 & 16)) + $this.allItems = emptyList(); + else + $this.allItems = allItems; + return $this; + } + } + class Companion_1156 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.OpusCollectionItem'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1143(); + } + } + class $serializer_1143 { + constructor() { + $serializer_instance_1143 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KOpusCollectionItem', this, 5); + tmp0_serialDesc.addElement_5pzumi_k$('opusId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('pubTime', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('uri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('isSelectedHighlight', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), BooleanSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = false; + var tmp9_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp9_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp9_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + } else + while (tmp1_flag) { + tmp2_index = tmp9_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp9_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp9_input.endStructure_1xqz0n_k$(tmp0_desc); + return KOpusCollectionItem.new_com_bapis_bilibili_app_dynamic_v2_KOpusCollectionItem_pgv4ng_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); + } + serialize_85aoli_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.opusId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.opusId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.pubTime === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.pubTime); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.uri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.uri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.isSelectedHighlight === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 4, value.isSelectedHighlight); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_85aoli_k$(encoder, value instanceof KOpusCollectionItem ? value : THROW_CCE()); + } + } + class KOpusCollectionItem { + constructor(opusId, title, pubTime, uri, isSelectedHighlight) { + Companion_instance_1156; + opusId = opusId === VOID ? new Long(0, 0) : opusId; + title = title === VOID ? '' : title; + pubTime = pubTime === VOID ? '' : pubTime; + uri = uri === VOID ? '' : uri; + isSelectedHighlight = isSelectedHighlight === VOID ? false : isSelectedHighlight; + this.opusId = opusId; + this.title = title; + this.pubTime = pubTime; + this.uri = uri; + this.isSelectedHighlight = isSelectedHighlight; + } + get_opusId_hpe8cj_k$() { + return this.opusId; + } + get_title_iz32un_k$() { + return this.title; + } + get_pubTime_2n02nz_k$() { + return this.pubTime; + } + get_uri_18iuil_k$() { + return this.uri; + } + get_isSelectedHighlight_rfqeca_k$() { + return this.isSelectedHighlight; + } + component1_7eebsc_k$() { + return this.opusId; + } + component2_7eebsb_k$() { + return this.title; + } + component3_7eebsa_k$() { + return this.pubTime; + } + component4_7eebs9_k$() { + return this.uri; + } + component5_7eebs8_k$() { + return this.isSelectedHighlight; + } + copy_mbamu6_k$(opusId, title, pubTime, uri, isSelectedHighlight) { + return new KOpusCollectionItem(opusId, title, pubTime, uri, isSelectedHighlight); + } + copy(opusId, title, pubTime, uri, isSelectedHighlight, $super) { + opusId = opusId === VOID ? this.opusId : opusId; + title = title === VOID ? this.title : title; + pubTime = pubTime === VOID ? this.pubTime : pubTime; + uri = uri === VOID ? this.uri : uri; + isSelectedHighlight = isSelectedHighlight === VOID ? this.isSelectedHighlight : isSelectedHighlight; + return this.copy_mbamu6_k$(opusId, title, pubTime, uri, isSelectedHighlight); + } + toString() { + return 'KOpusCollectionItem(opusId=' + this.opusId.toString() + ', title=' + this.title + ', pubTime=' + this.pubTime + ', uri=' + this.uri + ', isSelectedHighlight=' + this.isSelectedHighlight + ')'; + } + hashCode() { + var result = this.opusId.hashCode(); + result = imul(result, 31) + getStringHashCode(this.title) | 0; + result = imul(result, 31) + getStringHashCode(this.pubTime) | 0; + result = imul(result, 31) + getStringHashCode(this.uri) | 0; + result = imul(result, 31) + getBooleanHashCode(this.isSelectedHighlight) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KOpusCollectionItem)) + return false; + var tmp0_other_with_cast = other instanceof KOpusCollectionItem ? other : THROW_CCE(); + if (!this.opusId.equals(tmp0_other_with_cast.opusId)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.pubTime === tmp0_other_with_cast.pubTime)) + return false; + if (!(this.uri === tmp0_other_with_cast.uri)) + return false; + if (!(this.isSelectedHighlight === tmp0_other_with_cast.isSelectedHighlight)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KOpusCollectionItem_pgv4ng_k$(seen1, opusId, title, pubTime, uri, isSelectedHighlight, serializationConstructorMarker) { + Companion_instance_1156; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1143().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.opusId = new Long(0, 0); + else + $this.opusId = opusId; + if (0 === (seen1 & 2)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 4)) + $this.pubTime = ''; + else + $this.pubTime = pubTime; + if (0 === (seen1 & 8)) + $this.uri = ''; + else + $this.uri = uri; + if (0 === (seen1 & 16)) + $this.isSelectedHighlight = false; + else + $this.isSelectedHighlight = isSelectedHighlight; + return $this; + } + } + class Companion_1157 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.OpusDetailReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1144(); + } + } + class $serializer_1144 { + constructor() { + $serializer_instance_1144 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KOpusDetailReq', this, 9); + tmp0_serialDesc.addElement_5pzumi_k$('opusType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('oid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('dynType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('shareId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('shareMode', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('localTime', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('playerArgs', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('config', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + tmp0_serialDesc.addElement_5pzumi_k$('adParam', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(13)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), get_nullable($serializer_getInstance_152()), get_nullable($serializer_getInstance_750()), get_nullable($serializer_getInstance_748())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = new Long(0, 0); + var tmp6_local2 = new Long(0, 0); + var tmp7_local3 = null; + var tmp8_local4 = 0; + var tmp9_local5 = 0; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_local8 = null; + var tmp13_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp13_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp13_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp13_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp13_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_152(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_750(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_748(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + } else + while (tmp1_flag) { + tmp2_index = tmp13_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp13_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp13_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp13_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_152(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_750(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_748(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp13_input.endStructure_1xqz0n_k$(tmp0_desc); + return KOpusDetailReq.new_com_bapis_bilibili_app_dynamic_v2_KOpusDetailReq_nl7d0a_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, null); + } + serialize_pclbjm_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.opusType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.opusType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.oid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.oid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.dynType.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.dynType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.shareId === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.shareId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.shareMode === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 4, value.shareMode); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.localTime === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 5, value.localTime); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.playerArgs == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 6, $serializer_getInstance_152(), value.playerArgs); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.config == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 7, $serializer_getInstance_750(), value.config); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.adParam == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 8, $serializer_getInstance_748(), value.adParam); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_pclbjm_k$(encoder, value instanceof KOpusDetailReq ? value : THROW_CCE()); + } + } + class KOpusDetailReq { + constructor(opusType, oid, dynType, shareId, shareMode, localTime, playerArgs, config, adParam) { + Companion_instance_1157; + opusType = opusType === VOID ? 0 : opusType; + oid = oid === VOID ? new Long(0, 0) : oid; + dynType = dynType === VOID ? new Long(0, 0) : dynType; + shareId = shareId === VOID ? '' : shareId; + shareMode = shareMode === VOID ? 0 : shareMode; + localTime = localTime === VOID ? 0 : localTime; + playerArgs = playerArgs === VOID ? null : playerArgs; + config = config === VOID ? null : config; + adParam = adParam === VOID ? null : adParam; + this.opusType = opusType; + this.oid = oid; + this.dynType = dynType; + this.shareId = shareId; + this.shareMode = shareMode; + this.localTime = localTime; + this.playerArgs = playerArgs; + this.config = config; + this.adParam = adParam; + } + get_opusType_whwsgu_k$() { + return this.opusType; + } + get_oid_18iz6n_k$() { + return this.oid; + } + get_dynType_ymr0ra_k$() { + return this.dynType; + } + get_shareId_z8ky29_k$() { + return this.shareId; + } + get_shareMode_hni1l3_k$() { + return this.shareMode; + } + get_localTime_bf0zwx_k$() { + return this.localTime; + } + get_playerArgs_eh86hz_k$() { + return this.playerArgs; + } + get_config_c0698r_k$() { + return this.config; + } + get_adParam_i11k8v_k$() { + return this.adParam; + } + opusTypeEnum() { + return Companion_getInstance_1140().fromValue(this.opusType); + } + component1_7eebsc_k$() { + return this.opusType; + } + component2_7eebsb_k$() { + return this.oid; + } + component3_7eebsa_k$() { + return this.dynType; + } + component4_7eebs9_k$() { + return this.shareId; + } + component5_7eebs8_k$() { + return this.shareMode; + } + component6_7eebs7_k$() { + return this.localTime; + } + component7_7eebs6_k$() { + return this.playerArgs; + } + component8_7eebs5_k$() { + return this.config; + } + component9_7eebs4_k$() { + return this.adParam; + } + copy_9ado96_k$(opusType, oid, dynType, shareId, shareMode, localTime, playerArgs, config, adParam) { + return new KOpusDetailReq(opusType, oid, dynType, shareId, shareMode, localTime, playerArgs, config, adParam); + } + copy(opusType, oid, dynType, shareId, shareMode, localTime, playerArgs, config, adParam, $super) { + opusType = opusType === VOID ? this.opusType : opusType; + oid = oid === VOID ? this.oid : oid; + dynType = dynType === VOID ? this.dynType : dynType; + shareId = shareId === VOID ? this.shareId : shareId; + shareMode = shareMode === VOID ? this.shareMode : shareMode; + localTime = localTime === VOID ? this.localTime : localTime; + playerArgs = playerArgs === VOID ? this.playerArgs : playerArgs; + config = config === VOID ? this.config : config; + adParam = adParam === VOID ? this.adParam : adParam; + return this.copy_9ado96_k$(opusType, oid, dynType, shareId, shareMode, localTime, playerArgs, config, adParam); + } + toString() { + return 'KOpusDetailReq(opusType=' + this.opusType + ', oid=' + this.oid.toString() + ', dynType=' + this.dynType.toString() + ', shareId=' + this.shareId + ', shareMode=' + this.shareMode + ', localTime=' + this.localTime + ', playerArgs=' + this.playerArgs + ', config=' + this.config + ', adParam=' + this.adParam + ')'; + } + hashCode() { + var result = this.opusType; + result = imul(result, 31) + this.oid.hashCode() | 0; + result = imul(result, 31) + this.dynType.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.shareId) | 0; + result = imul(result, 31) + this.shareMode | 0; + result = imul(result, 31) + this.localTime | 0; + result = imul(result, 31) + (this.playerArgs == null ? 0 : this.playerArgs.hashCode()) | 0; + result = imul(result, 31) + (this.config == null ? 0 : this.config.hashCode()) | 0; + result = imul(result, 31) + (this.adParam == null ? 0 : this.adParam.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KOpusDetailReq)) + return false; + var tmp0_other_with_cast = other instanceof KOpusDetailReq ? other : THROW_CCE(); + if (!(this.opusType === tmp0_other_with_cast.opusType)) + return false; + if (!this.oid.equals(tmp0_other_with_cast.oid)) + return false; + if (!this.dynType.equals(tmp0_other_with_cast.dynType)) + return false; + if (!(this.shareId === tmp0_other_with_cast.shareId)) + return false; + if (!(this.shareMode === tmp0_other_with_cast.shareMode)) + return false; + if (!(this.localTime === tmp0_other_with_cast.localTime)) + return false; + if (!equals(this.playerArgs, tmp0_other_with_cast.playerArgs)) + return false; + if (!equals(this.config, tmp0_other_with_cast.config)) + return false; + if (!equals(this.adParam, tmp0_other_with_cast.adParam)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KOpusDetailReq_nl7d0a_k$(seen1, opusType, oid, dynType, shareId, shareMode, localTime, playerArgs, config, adParam, serializationConstructorMarker) { + Companion_instance_1157; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1144().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.opusType = 0; + else + $this.opusType = opusType; + if (0 === (seen1 & 2)) + $this.oid = new Long(0, 0); + else + $this.oid = oid; + if (0 === (seen1 & 4)) + $this.dynType = new Long(0, 0); + else + $this.dynType = dynType; + if (0 === (seen1 & 8)) + $this.shareId = ''; + else + $this.shareId = shareId; + if (0 === (seen1 & 16)) + $this.shareMode = 0; + else + $this.shareMode = shareMode; + if (0 === (seen1 & 32)) + $this.localTime = 0; + else + $this.localTime = localTime; + if (0 === (seen1 & 64)) + $this.playerArgs = null; + else + $this.playerArgs = playerArgs; + if (0 === (seen1 & 128)) + $this.config = null; + else + $this.config = config; + if (0 === (seen1 & 256)) + $this.adParam = null; + else + $this.adParam = adParam; + return $this; + } + } + class Companion_1158 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.OpusDetailResp'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1145(); + } + } + class $serializer_1145 { + constructor() { + $serializer_instance_1145 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KOpusDetailResp', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('opusItem', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_1129())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_1129(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_1129(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KOpusDetailResp.new_com_bapis_bilibili_app_dynamic_v2_KOpusDetailResp_rzn3f2_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_2ddatm_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.opusItem == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_1129(), value.opusItem); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_2ddatm_k$(encoder, value instanceof KOpusDetailResp ? value : THROW_CCE()); + } + } + class KOpusDetailResp { + constructor(opusItem) { + Companion_instance_1158; + opusItem = opusItem === VOID ? null : opusItem; + this.opusItem = opusItem; + } + get_opusItem_wi3xad_k$() { + return this.opusItem; + } + component1_7eebsc_k$() { + return this.opusItem; + } + copy_qhs59j_k$(opusItem) { + return new KOpusDetailResp(opusItem); + } + copy(opusItem, $super) { + opusItem = opusItem === VOID ? this.opusItem : opusItem; + return this.copy_qhs59j_k$(opusItem); + } + toString() { + return 'KOpusDetailResp(opusItem=' + this.opusItem + ')'; + } + hashCode() { + return this.opusItem == null ? 0 : this.opusItem.hashCode(); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KOpusDetailResp)) + return false; + var tmp0_other_with_cast = other instanceof KOpusDetailResp ? other : THROW_CCE(); + if (!equals(this.opusItem, tmp0_other_with_cast.opusItem)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KOpusDetailResp_rzn3f2_k$(seen1, opusItem, serializationConstructorMarker) { + Companion_instance_1158; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1145().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.opusItem = null; + else + $this.opusItem = opusItem; + return $this; + } + } + class Companion_1159 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.ListFavReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1146(); + } + } + class $serializer_1146 { + constructor() { + $serializer_instance_1146 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KListFavReq', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('localTime', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('pagination', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), get_nullable($serializer_getInstance_195())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_195(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_195(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KListFavReq.new_com_bapis_bilibili_app_dynamic_v2_KListFavReq_x7r9s5_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_w6w8zt_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.localTime === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.localTime); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.pagination == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_195(), value.pagination); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_w6w8zt_k$(encoder, value instanceof KListFavReq ? value : THROW_CCE()); + } + } + class KListFavReq { + constructor(localTime, pagination) { + Companion_instance_1159; + localTime = localTime === VOID ? 0 : localTime; + pagination = pagination === VOID ? null : pagination; + this.localTime = localTime; + this.pagination = pagination; + } + get_localTime_bf0zwx_k$() { + return this.localTime; + } + get_pagination_1aczdv_k$() { + return this.pagination; + } + component1_7eebsc_k$() { + return this.localTime; + } + component2_7eebsb_k$() { + return this.pagination; + } + copy_la4l1f_k$(localTime, pagination) { + return new KListFavReq(localTime, pagination); + } + copy(localTime, pagination, $super) { + localTime = localTime === VOID ? this.localTime : localTime; + pagination = pagination === VOID ? this.pagination : pagination; + return this.copy_la4l1f_k$(localTime, pagination); + } + toString() { + return 'KListFavReq(localTime=' + this.localTime + ', pagination=' + this.pagination + ')'; + } + hashCode() { + var result = this.localTime; + result = imul(result, 31) + (this.pagination == null ? 0 : this.pagination.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KListFavReq)) + return false; + var tmp0_other_with_cast = other instanceof KListFavReq ? other : THROW_CCE(); + if (!(this.localTime === tmp0_other_with_cast.localTime)) + return false; + if (!equals(this.pagination, tmp0_other_with_cast.pagination)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KListFavReq_x7r9s5_k$(seen1, localTime, pagination, serializationConstructorMarker) { + Companion_instance_1159; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1146().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.localTime = 0; + else + $this.localTime = localTime; + if (0 === (seen1 & 2)) + $this.pagination = null; + else + $this.pagination = pagination; + return $this; + } + } + class Companion_1160 { + constructor() { + Companion_instance_1160 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer($serializer_getInstance_1130()), null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.ListFavResp'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1147(); + } + } + class $serializer_1147 { + constructor() { + $serializer_instance_1147 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KListFavResp', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('itemList', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('nextPage', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_1160().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0], get_nullable($serializer_getInstance_196())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp7_cached = Companion_getInstance_1160().$childSerializers_1; + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp7_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_196(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp7_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_196(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KListFavResp.new_com_bapis_bilibili_app_dynamic_v2_KListFavResp_fb5qtk_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_adom5r_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_1160().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.itemList, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.itemList); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.nextPage == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_196(), value.nextPage); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_adom5r_k$(encoder, value instanceof KListFavResp ? value : THROW_CCE()); + } + } + class KListFavResp { + constructor(itemList, nextPage) { + Companion_getInstance_1160(); + itemList = itemList === VOID ? emptyList() : itemList; + nextPage = nextPage === VOID ? null : nextPage; + this.itemList = itemList; + this.nextPage = nextPage; + } + get_itemList_cc0jja_k$() { + return this.itemList; + } + get_nextPage_88ym8l_k$() { + return this.nextPage; + } + component1_7eebsc_k$() { + return this.itemList; + } + component2_7eebsb_k$() { + return this.nextPage; + } + copy_psetxt_k$(itemList, nextPage) { + return new KListFavResp(itemList, nextPage); + } + copy(itemList, nextPage, $super) { + itemList = itemList === VOID ? this.itemList : itemList; + nextPage = nextPage === VOID ? this.nextPage : nextPage; + return this.copy_psetxt_k$(itemList, nextPage); + } + toString() { + return 'KListFavResp(itemList=' + this.itemList + ', nextPage=' + this.nextPage + ')'; + } + hashCode() { + var result = hashCode(this.itemList); + result = imul(result, 31) + (this.nextPage == null ? 0 : this.nextPage.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KListFavResp)) + return false; + var tmp0_other_with_cast = other instanceof KListFavResp ? other : THROW_CCE(); + if (!equals(this.itemList, tmp0_other_with_cast.itemList)) + return false; + if (!equals(this.nextPage, tmp0_other_with_cast.nextPage)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KListFavResp_fb5qtk_k$(seen1, itemList, nextPage, serializationConstructorMarker) { + Companion_getInstance_1160(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1147().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.itemList = emptyList(); + else + $this.itemList = itemList; + if (0 === (seen1 & 2)) + $this.nextPage = null; + else + $this.nextPage = nextPage; + return $this; + } + } + class Companion_1161 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.OpusSpaceFlowReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1148(); + } + } + class $serializer_1148 { + constructor() { + $serializer_instance_1148 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KOpusSpaceFlowReq', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('hostMid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('localTime', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('pagination', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), IntSerializer_getInstance(), get_nullable($serializer_getInstance_195())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = 0; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_195(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_195(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KOpusSpaceFlowReq.new_com_bapis_bilibili_app_dynamic_v2_KOpusSpaceFlowReq_ypszjv_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_6qjhc1_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.hostMid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.hostMid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.localTime === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.localTime); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.pagination == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_195(), value.pagination); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_6qjhc1_k$(encoder, value instanceof KOpusSpaceFlowReq ? value : THROW_CCE()); + } + } + class KOpusSpaceFlowReq { + constructor(hostMid, localTime, pagination) { + Companion_instance_1161; + hostMid = hostMid === VOID ? new Long(0, 0) : hostMid; + localTime = localTime === VOID ? 0 : localTime; + pagination = pagination === VOID ? null : pagination; + this.hostMid = hostMid; + this.localTime = localTime; + this.pagination = pagination; + } + get_hostMid_jfodxz_k$() { + return this.hostMid; + } + get_localTime_bf0zwx_k$() { + return this.localTime; + } + get_pagination_1aczdv_k$() { + return this.pagination; + } + component1_7eebsc_k$() { + return this.hostMid; + } + component2_7eebsb_k$() { + return this.localTime; + } + component3_7eebsa_k$() { + return this.pagination; + } + copy_jzku81_k$(hostMid, localTime, pagination) { + return new KOpusSpaceFlowReq(hostMid, localTime, pagination); + } + copy(hostMid, localTime, pagination, $super) { + hostMid = hostMid === VOID ? this.hostMid : hostMid; + localTime = localTime === VOID ? this.localTime : localTime; + pagination = pagination === VOID ? this.pagination : pagination; + return this.copy_jzku81_k$(hostMid, localTime, pagination); + } + toString() { + return 'KOpusSpaceFlowReq(hostMid=' + this.hostMid.toString() + ', localTime=' + this.localTime + ', pagination=' + this.pagination + ')'; + } + hashCode() { + var result = this.hostMid.hashCode(); + result = imul(result, 31) + this.localTime | 0; + result = imul(result, 31) + (this.pagination == null ? 0 : this.pagination.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KOpusSpaceFlowReq)) + return false; + var tmp0_other_with_cast = other instanceof KOpusSpaceFlowReq ? other : THROW_CCE(); + if (!this.hostMid.equals(tmp0_other_with_cast.hostMid)) + return false; + if (!(this.localTime === tmp0_other_with_cast.localTime)) + return false; + if (!equals(this.pagination, tmp0_other_with_cast.pagination)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KOpusSpaceFlowReq_ypszjv_k$(seen1, hostMid, localTime, pagination, serializationConstructorMarker) { + Companion_instance_1161; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1148().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.hostMid = new Long(0, 0); + else + $this.hostMid = hostMid; + if (0 === (seen1 & 2)) + $this.localTime = 0; + else + $this.localTime = localTime; + if (0 === (seen1 & 4)) + $this.pagination = null; + else + $this.pagination = pagination; + return $this; + } + } + class Companion_1162 { + constructor() { + Companion_instance_1162 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer($serializer_getInstance_1131()), null, null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.OpusSpaceFlowResp'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1149(); + } + } + class $serializer_1149 { + constructor() { + $serializer_instance_1149 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KOpusSpaceFlowResp', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('itemList', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('nextPage', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('hostUpOpusCollection', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('hostUpNoteNavBar', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_1162().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0], get_nullable($serializer_getInstance_196()), get_nullable($serializer_getInstance_1133()), get_nullable($serializer_getInstance_1135())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp9_cached = Companion_getInstance_1162().$childSerializers_1; + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp9_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_196(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_1133(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_1135(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp9_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_196(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_1133(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_1135(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KOpusSpaceFlowResp.new_com_bapis_bilibili_app_dynamic_v2_KOpusSpaceFlowResp_dahsjf_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_2mxeev_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_1162().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.itemList, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.itemList); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.nextPage == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_196(), value.nextPage); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.hostUpOpusCollection == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_1133(), value.hostUpOpusCollection); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.hostUpNoteNavBar == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_1135(), value.hostUpNoteNavBar); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_2mxeev_k$(encoder, value instanceof KOpusSpaceFlowResp ? value : THROW_CCE()); + } + } + class KOpusSpaceFlowResp { + constructor(itemList, nextPage, hostUpOpusCollection, hostUpNoteNavBar) { + Companion_getInstance_1162(); + itemList = itemList === VOID ? emptyList() : itemList; + nextPage = nextPage === VOID ? null : nextPage; + hostUpOpusCollection = hostUpOpusCollection === VOID ? null : hostUpOpusCollection; + hostUpNoteNavBar = hostUpNoteNavBar === VOID ? null : hostUpNoteNavBar; + this.itemList = itemList; + this.nextPage = nextPage; + this.hostUpOpusCollection = hostUpOpusCollection; + this.hostUpNoteNavBar = hostUpNoteNavBar; + } + get_itemList_cc0jja_k$() { + return this.itemList; + } + get_nextPage_88ym8l_k$() { + return this.nextPage; + } + get_hostUpOpusCollection_a7v16x_k$() { + return this.hostUpOpusCollection; + } + get_hostUpNoteNavBar_qrqbda_k$() { + return this.hostUpNoteNavBar; + } + component1_7eebsc_k$() { + return this.itemList; + } + component2_7eebsb_k$() { + return this.nextPage; + } + component3_7eebsa_k$() { + return this.hostUpOpusCollection; + } + component4_7eebs9_k$() { + return this.hostUpNoteNavBar; + } + copy_f9rxg6_k$(itemList, nextPage, hostUpOpusCollection, hostUpNoteNavBar) { + return new KOpusSpaceFlowResp(itemList, nextPage, hostUpOpusCollection, hostUpNoteNavBar); + } + copy(itemList, nextPage, hostUpOpusCollection, hostUpNoteNavBar, $super) { + itemList = itemList === VOID ? this.itemList : itemList; + nextPage = nextPage === VOID ? this.nextPage : nextPage; + hostUpOpusCollection = hostUpOpusCollection === VOID ? this.hostUpOpusCollection : hostUpOpusCollection; + hostUpNoteNavBar = hostUpNoteNavBar === VOID ? this.hostUpNoteNavBar : hostUpNoteNavBar; + return this.copy_f9rxg6_k$(itemList, nextPage, hostUpOpusCollection, hostUpNoteNavBar); + } + toString() { + return 'KOpusSpaceFlowResp(itemList=' + this.itemList + ', nextPage=' + this.nextPage + ', hostUpOpusCollection=' + this.hostUpOpusCollection + ', hostUpNoteNavBar=' + this.hostUpNoteNavBar + ')'; + } + hashCode() { + var result = hashCode(this.itemList); + result = imul(result, 31) + (this.nextPage == null ? 0 : this.nextPage.hashCode()) | 0; + result = imul(result, 31) + (this.hostUpOpusCollection == null ? 0 : this.hostUpOpusCollection.hashCode()) | 0; + result = imul(result, 31) + (this.hostUpNoteNavBar == null ? 0 : this.hostUpNoteNavBar.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KOpusSpaceFlowResp)) + return false; + var tmp0_other_with_cast = other instanceof KOpusSpaceFlowResp ? other : THROW_CCE(); + if (!equals(this.itemList, tmp0_other_with_cast.itemList)) + return false; + if (!equals(this.nextPage, tmp0_other_with_cast.nextPage)) + return false; + if (!equals(this.hostUpOpusCollection, tmp0_other_with_cast.hostUpOpusCollection)) + return false; + if (!equals(this.hostUpNoteNavBar, tmp0_other_with_cast.hostUpNoteNavBar)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KOpusSpaceFlowResp_dahsjf_k$(seen1, itemList, nextPage, hostUpOpusCollection, hostUpNoteNavBar, serializationConstructorMarker) { + Companion_getInstance_1162(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1149().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.itemList = emptyList(); + else + $this.itemList = itemList; + if (0 === (seen1 & 2)) + $this.nextPage = null; + else + $this.nextPage = nextPage; + if (0 === (seen1 & 4)) + $this.hostUpOpusCollection = null; + else + $this.hostUpOpusCollection = hostUpOpusCollection; + if (0 === (seen1 & 8)) + $this.hostUpNoteNavBar = null; + else + $this.hostUpNoteNavBar = hostUpNoteNavBar; + return $this; + } + } + class Companion_1163 { + constructor() { + Companion_instance_1163 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KLinkNodeType$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KLinkNodeType$Companion$_anonymous__rxganm); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_141(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KLinkNodeType_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KLinkNodeType with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_141(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_1150 { + constructor() { + $serializer_instance_1150 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.dynamic.v2.KLinkNodeType', 33); + tmp0_serialDesc.addElement_5pzumi_k$('INVALID', false); + tmp0_serialDesc.addElement_5pzumi_k$('VIDEO', false); + tmp0_serialDesc.addElement_5pzumi_k$('RESERVE', false); + tmp0_serialDesc.addElement_5pzumi_k$('VOTE', false); + tmp0_serialDesc.addElement_5pzumi_k$('LIVE', false); + tmp0_serialDesc.addElement_5pzumi_k$('LOTTERY', false); + tmp0_serialDesc.addElement_5pzumi_k$('MATCH', false); + tmp0_serialDesc.addElement_5pzumi_k$('GOODS', false); + tmp0_serialDesc.addElement_5pzumi_k$('OGV_SS', false); + tmp0_serialDesc.addElement_5pzumi_k$('OGV_EP', false); + tmp0_serialDesc.addElement_5pzumi_k$('MANGA', false); + tmp0_serialDesc.addElement_5pzumi_k$('CHEESE', false); + tmp0_serialDesc.addElement_5pzumi_k$('VIDEO_TS', false); + tmp0_serialDesc.addElement_5pzumi_k$('AT', false); + tmp0_serialDesc.addElement_5pzumi_k$('HASH_TAG', false); + tmp0_serialDesc.addElement_5pzumi_k$('ARTICLE', false); + tmp0_serialDesc.addElement_5pzumi_k$('URL', false); + tmp0_serialDesc.addElement_5pzumi_k$('MAIL', false); + tmp0_serialDesc.addElement_5pzumi_k$('LBS', false); + tmp0_serialDesc.addElement_5pzumi_k$('ACTIVITY', false); + tmp0_serialDesc.addElement_5pzumi_k$('ATTACH_CARD_OFFICIAL_ACTIVITY', false); + tmp0_serialDesc.addElement_5pzumi_k$('GAME', false); + tmp0_serialDesc.addElement_5pzumi_k$('DECORATION', false); + tmp0_serialDesc.addElement_5pzumi_k$('UP_TOPIC', false); + tmp0_serialDesc.addElement_5pzumi_k$('UP_ACTIVITY', false); + tmp0_serialDesc.addElement_5pzumi_k$('UP_MAOER', false); + tmp0_serialDesc.addElement_5pzumi_k$('MEMBER_GOODS', false); + tmp0_serialDesc.addElement_5pzumi_k$('OPENMALL_UP_ITEMS', false); + tmp0_serialDesc.addElement_5pzumi_k$('SEARCH', false); + tmp0_serialDesc.addElement_5pzumi_k$('MUSIC', false); + tmp0_serialDesc.addElement_5pzumi_k$('GPT_RCMD_QUESTION', false); + tmp0_serialDesc.addElement_5pzumi_k$('MEMBER_TICKET', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_141()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_uz8qaj_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_uz8qaj_k$(encoder, value instanceof KLinkNodeType ? value : THROW_CCE()); + } + } + class KLinkNodeType extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_1164 { + constructor() { + Companion_instance_1164 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KParagraph$KParagraphType$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KParagraph$KParagraphType$Companion$_anonymous__4wztzl); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_142(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KParagraphType_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KParagraphType with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_142(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_1151 { + constructor() { + $serializer_instance_1151 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.dynamic.v2.KParagraph.KParagraphType', 10); + tmp0_serialDesc.addElement_5pzumi_k$('INVALID', false); + tmp0_serialDesc.addElement_5pzumi_k$('TEXT', false); + tmp0_serialDesc.addElement_5pzumi_k$('PICTURES', false); + tmp0_serialDesc.addElement_5pzumi_k$('LINE', false); + tmp0_serialDesc.addElement_5pzumi_k$('REFERENCE', false); + tmp0_serialDesc.addElement_5pzumi_k$('SORTED_LIST', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNSORTED_LIST', false); + tmp0_serialDesc.addElement_5pzumi_k$('LINK_CARD', false); + tmp0_serialDesc.addElement_5pzumi_k$('CODE', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_142()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_fw8tcc_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_fw8tcc_k$(encoder, value instanceof KParagraphType ? value : THROW_CCE()); + } + } + class Companion_1165 { + constructor() { + Companion_instance_1165 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KParagraph$KParagraphAlign$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KParagraph$KParagraphAlign$Companion$_anonymous__f4rf4e); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_143(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KParagraphAlign_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KParagraphAlign with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_143(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_1152 { + constructor() { + $serializer_instance_1152 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.dynamic.v2.KParagraph.KParagraphAlign', 4); + tmp0_serialDesc.addElement_5pzumi_k$('LEFT', false); + tmp0_serialDesc.addElement_5pzumi_k$('MIDDLE', false); + tmp0_serialDesc.addElement_5pzumi_k$('RIGHT', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_143()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_ogq0m9_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_ogq0m9_k$(encoder, value instanceof KParagraphAlign ? value : THROW_CCE()); + } + } + class Companion_1166 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.Paragraph.ListFormat'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1153(); + } + } + class $serializer_1153 { + constructor() { + $serializer_instance_1153 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KParagraph.KListFormat', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('level', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('order', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('theme', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = 0; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KListFormat.new_com_bapis_bilibili_app_dynamic_v2_KParagraph_KListFormat_wyxfvi_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_z80xfo_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.level === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.level); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.order === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.order); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.theme === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.theme); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_z80xfo_k$(encoder, value instanceof KListFormat ? value : THROW_CCE()); + } + } + class Companion_1167 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.Paragraph.ParagraphFormat'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1154(); + } + } + class $serializer_1154 { + constructor() { + $serializer_instance_1154 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KParagraph.KParagraphFormat', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('align', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('listFormat', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), get_nullable($serializer_getInstance_1153())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_1153(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_1153(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KParagraphFormat.new_com_bapis_bilibili_app_dynamic_v2_KParagraph_KParagraphFormat_irpzdn_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_u4lrtc_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.align === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.align); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.listFormat == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_1153(), value.listFormat); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_u4lrtc_k$(encoder, value instanceof KParagraphFormat ? value : THROW_CCE()); + } + } + class KContent_1 { + constructor(value) { + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + } + class KText_0 extends KContent_1 { + constructor() { + KText_instance_0 = null; + super(0); + KText_instance_0 = this; + } + } + class KPic extends KContent_1 { + constructor() { + KPic_instance = null; + super(1); + KPic_instance = this; + } + } + class KLine extends KContent_1 { + constructor() { + KLine_instance = null; + super(2); + KLine_instance = this; + } + } + class KLinkCard extends KContent_1 { + constructor() { + KLinkCard_instance = null; + super(3); + KLinkCard_instance = this; + } + } + class KCode extends KContent_1 { + constructor() { + KCode_instance = null; + super(4); + KCode_instance = this; + } + } + class Companion_1168 { + constructor() { + Companion_instance_1168 = this; + var tmp = this; + tmp.contentValues$delegate_1 = lazy_0(KParagraph$Companion$contentValues$delegate$lambda); + this.targetPath = '/bilibili.app.dynamic.v2.Paragraph'; + } + get_contentValues_5hg7ce_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.contentValues$delegate_1; + var thisRef = this; + var property = contentValues$factory_1(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1155(); + } + get contentValues() { + return this.get_contentValues_5hg7ce_k$(); + } + } + class KParagraphType extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class KParagraphAlign extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class KListFormat { + constructor(level, order, theme) { + Companion_instance_1166; + level = level === VOID ? 0 : level; + order = order === VOID ? 0 : order; + theme = theme === VOID ? '' : theme; + this.level = level; + this.order = order; + this.theme = theme; + } + get_level_ium7h7_k$() { + return this.level; + } + get_order_iwhiqt_k$() { + return this.order; + } + get_theme_iz24rk_k$() { + return this.theme; + } + component1_7eebsc_k$() { + return this.level; + } + component2_7eebsb_k$() { + return this.order; + } + component3_7eebsa_k$() { + return this.theme; + } + copy_brlfhh_k$(level, order, theme) { + return new KListFormat(level, order, theme); + } + copy(level, order, theme, $super) { + level = level === VOID ? this.level : level; + order = order === VOID ? this.order : order; + theme = theme === VOID ? this.theme : theme; + return this.copy_brlfhh_k$(level, order, theme); + } + toString() { + return 'KListFormat(level=' + this.level + ', order=' + this.order + ', theme=' + this.theme + ')'; + } + hashCode() { + var result = this.level; + result = imul(result, 31) + this.order | 0; + result = imul(result, 31) + getStringHashCode(this.theme) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KListFormat)) + return false; + var tmp0_other_with_cast = other instanceof KListFormat ? other : THROW_CCE(); + if (!(this.level === tmp0_other_with_cast.level)) + return false; + if (!(this.order === tmp0_other_with_cast.order)) + return false; + if (!(this.theme === tmp0_other_with_cast.theme)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KParagraph_KListFormat_wyxfvi_k$(seen1, level, order, theme, serializationConstructorMarker) { + Companion_instance_1166; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1153().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.level = 0; + else + $this.level = level; + if (0 === (seen1 & 2)) + $this.order = 0; + else + $this.order = order; + if (0 === (seen1 & 4)) + $this.theme = ''; + else + $this.theme = theme; + return $this; + } + } + class KParagraphFormat { + constructor(align, listFormat) { + Companion_instance_1167; + align = align === VOID ? 0 : align; + listFormat = listFormat === VOID ? null : listFormat; + this.align = align; + this.listFormat = listFormat; + } + get_align_iooo9o_k$() { + return this.align; + } + get_listFormat_kd9paa_k$() { + return this.listFormat; + } + alignEnum() { + return Companion_getInstance_1165().fromValue(this.align); + } + component1_7eebsc_k$() { + return this.align; + } + component2_7eebsb_k$() { + return this.listFormat; + } + copy_tohz3v_k$(align, listFormat) { + return new KParagraphFormat(align, listFormat); + } + copy(align, listFormat, $super) { + align = align === VOID ? this.align : align; + listFormat = listFormat === VOID ? this.listFormat : listFormat; + return this.copy_tohz3v_k$(align, listFormat); + } + toString() { + return 'KParagraphFormat(align=' + this.align + ', listFormat=' + this.listFormat + ')'; + } + hashCode() { + var result = this.align; + result = imul(result, 31) + (this.listFormat == null ? 0 : this.listFormat.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KParagraphFormat)) + return false; + var tmp0_other_with_cast = other instanceof KParagraphFormat ? other : THROW_CCE(); + if (!(this.align === tmp0_other_with_cast.align)) + return false; + if (!equals(this.listFormat, tmp0_other_with_cast.listFormat)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KParagraph_KParagraphFormat_irpzdn_k$(seen1, align, listFormat, serializationConstructorMarker) { + Companion_instance_1167; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1154().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.align = 0; + else + $this.align = align; + if (0 === (seen1 & 2)) + $this.listFormat = null; + else + $this.listFormat = listFormat; + return $this; + } + } + class $serializer_1155 { + constructor() { + $serializer_instance_1155 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KParagraph', this, 7); + tmp0_serialDesc.addElement_5pzumi_k$('paraType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('paraFormat', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('text', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('pic', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('line', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('linkCard', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('code', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), get_nullable($serializer_getInstance_1154()), get_nullable($serializer_getInstance_1159()), get_nullable($serializer_getInstance_1157()), get_nullable($serializer_getInstance_1158()), get_nullable($serializer_getInstance_1171()), get_nullable($serializer_getInstance_1172())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_transient0 = 0; + var tmp12_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp12_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_1154(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_1159(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_1157(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_1158(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_1171(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_1172(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + } else + while (tmp1_flag) { + tmp2_index = tmp12_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_1154(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_1159(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_1157(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_1158(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_1171(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_1172(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp12_input.endStructure_1xqz0n_k$(tmp0_desc); + return KParagraph.new_com_bapis_bilibili_app_dynamic_v2_KParagraph_nb6opk_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, null); + } + serialize_ceekk2_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.paraType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.paraType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.paraFormat == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_1154(), value.paraFormat); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.text_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_1159(), value.text_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.pic_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_1157(), value.pic_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.line_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, $serializer_getInstance_1158(), value.line_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.linkCard_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 5, $serializer_getInstance_1171(), value.linkCard_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.code_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 6, $serializer_getInstance_1172(), value.code_1); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_ceekk2_k$(encoder, value instanceof KParagraph ? value : THROW_CCE()); + } + } + class KParagraph { + constructor(paraType, paraFormat, text, pic, line, linkCard, code) { + Companion_getInstance_1168(); + paraType = paraType === VOID ? 0 : paraType; + paraFormat = paraFormat === VOID ? null : paraFormat; + text = text === VOID ? null : text; + pic = pic === VOID ? null : pic; + line = line === VOID ? null : line; + linkCard = linkCard === VOID ? null : linkCard; + code = code === VOID ? null : code; + this.paraType = paraType; + this.paraFormat = paraFormat; + this.text_1 = text; + this.pic_1 = pic; + this.line_1 = line; + this.linkCard_1 = linkCard; + this.code_1 = code; + var tmp = this; + tmp.contentNumber$delegate_1 = lazy_0(KParagraph$contentNumber$delegate$lambda(this)); + } + get_paraType_cfxkot_k$() { + return this.paraType; + } + get_paraFormat_uwf7gg_k$() { + return this.paraFormat; + } + contentValue() { + if (!(this.text_1 == null)) { + var tmp = this.text_1; + return (tmp == null ? true : !(tmp == null)) ? tmp : null; + } else if (!(this.pic_1 == null)) { + var tmp_0 = this.pic_1; + return (tmp_0 == null ? true : !(tmp_0 == null)) ? tmp_0 : null; + } else if (!(this.line_1 == null)) { + var tmp_1 = this.line_1; + return (tmp_1 == null ? true : !(tmp_1 == null)) ? tmp_1 : null; + } else if (!(this.linkCard_1 == null)) { + var tmp_2 = this.linkCard_1; + return (tmp_2 == null ? true : !(tmp_2 == null)) ? tmp_2 : null; + } else if (!(this.code_1 == null)) { + var tmp_3 = this.code_1; + return (tmp_3 == null ? true : !(tmp_3 == null)) ? tmp_3 : null; + } else { + return null; + } + } + contentTypeJs() { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = Companion_getInstance_1168().contentValues; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.KParagraph.contentType.' call + var it = element; + tmp$ret$0 = it.value === _get_contentNumber__iirtht_1(this); + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + return tmp$ret$1; + } + paraTypeEnum() { + return Companion_getInstance_1164().fromValue(this.paraType); + } + component1_7eebsc_k$() { + return this.paraType; + } + component2_7eebsb_k$() { + return this.paraFormat; + } + copy_c905or_k$(paraType, paraFormat, text, pic, line, linkCard, code) { + return new KParagraph(paraType, paraFormat, text, pic, line, linkCard, code); + } + copy(paraType, paraFormat, text, pic, line, linkCard, code, $super) { + paraType = paraType === VOID ? this.paraType : paraType; + paraFormat = paraFormat === VOID ? this.paraFormat : paraFormat; + text = text === VOID ? this.text_1 : text; + pic = pic === VOID ? this.pic_1 : pic; + line = line === VOID ? this.line_1 : line; + linkCard = linkCard === VOID ? this.linkCard_1 : linkCard; + code = code === VOID ? this.code_1 : code; + return this.copy_c905or_k$(paraType, paraFormat, text, pic, line, linkCard, code); + } + toString() { + return 'KParagraph(paraType=' + this.paraType + ', paraFormat=' + this.paraFormat + ', text=' + this.text_1 + ', pic=' + this.pic_1 + ', line=' + this.line_1 + ', linkCard=' + this.linkCard_1 + ', code=' + this.code_1 + ')'; + } + hashCode() { + var result = this.paraType; + result = imul(result, 31) + (this.paraFormat == null ? 0 : this.paraFormat.hashCode()) | 0; + result = imul(result, 31) + (this.text_1 == null ? 0 : this.text_1.hashCode()) | 0; + result = imul(result, 31) + (this.pic_1 == null ? 0 : this.pic_1.hashCode()) | 0; + result = imul(result, 31) + (this.line_1 == null ? 0 : this.line_1.hashCode()) | 0; + result = imul(result, 31) + (this.linkCard_1 == null ? 0 : this.linkCard_1.hashCode()) | 0; + result = imul(result, 31) + (this.code_1 == null ? 0 : this.code_1.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KParagraph)) + return false; + var tmp0_other_with_cast = other instanceof KParagraph ? other : THROW_CCE(); + if (!(this.paraType === tmp0_other_with_cast.paraType)) + return false; + if (!equals(this.paraFormat, tmp0_other_with_cast.paraFormat)) + return false; + if (!equals(this.text_1, tmp0_other_with_cast.text_1)) + return false; + if (!equals(this.pic_1, tmp0_other_with_cast.pic_1)) + return false; + if (!equals(this.line_1, tmp0_other_with_cast.line_1)) + return false; + if (!equals(this.linkCard_1, tmp0_other_with_cast.linkCard_1)) + return false; + if (!equals(this.code_1, tmp0_other_with_cast.code_1)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KParagraph_nb6opk_k$(seen1, paraType, paraFormat, text, pic, line, linkCard, code, serializationConstructorMarker) { + Companion_getInstance_1168(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1155().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.paraType = 0; + else + $this.paraType = paraType; + if (0 === (seen1 & 2)) + $this.paraFormat = null; + else + $this.paraFormat = paraFormat; + if (0 === (seen1 & 4)) + $this.text_1 = null; + else + $this.text_1 = text; + if (0 === (seen1 & 8)) + $this.pic_1 = null; + else + $this.pic_1 = pic; + if (0 === (seen1 & 16)) + $this.line_1 = null; + else + $this.line_1 = line; + if (0 === (seen1 & 32)) + $this.linkCard_1 = null; + else + $this.linkCard_1 = linkCard; + if (0 === (seen1 & 64)) + $this.code_1 = null; + else + $this.code_1 = code; + var tmp = $this; + tmp.contentNumber$delegate_1 = lazy_0(KParagraph$_init_$lambda_5vqxjc($this)); + return $this; + } + } + class Companion_1169 { + constructor() { + Companion_instance_1169 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KPicParagraph$KPicParagraphStyle$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KPicParagraph$KPicParagraphStyle$Companion$_anonymous__p8xuco); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_144(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KPicParagraphStyle_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KPicParagraphStyle with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_144(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_1156 { + constructor() { + $serializer_instance_1156 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.dynamic.v2.KPicParagraph.KPicParagraphStyle', 4); + tmp0_serialDesc.addElement_5pzumi_k$('INVALID', false); + tmp0_serialDesc.addElement_5pzumi_k$('NINE_CELL', false); + tmp0_serialDesc.addElement_5pzumi_k$('BIG_SCROLL', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_144()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_h47l49_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_h47l49_k$(encoder, value instanceof KPicParagraphStyle ? value : THROW_CCE()); + } + } + class KPicParagraphStyle extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_1170 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.PicParagraph'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1157(); + } + } + class $serializer_1157 { + constructor() { + $serializer_instance_1157 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KPicParagraph', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('style', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('pics', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), get_nullable($serializer_getInstance_1078())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_1078(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_1078(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KPicParagraph.new_com_bapis_bilibili_app_dynamic_v2_KPicParagraph_djxhjo_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_80mdnq_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.style === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.style); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.pics == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_1078(), value.pics); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_80mdnq_k$(encoder, value instanceof KPicParagraph ? value : THROW_CCE()); + } + } + class KPicParagraph { + constructor(style, pics) { + Companion_instance_1170; + style = style === VOID ? 0 : style; + pics = pics === VOID ? null : pics; + this.style = style; + this.pics = pics; + } + get_style_iyqetk_k$() { + return this.style; + } + get_pics_woseb6_k$() { + return this.pics; + } + styleEnum() { + return Companion_getInstance_1169().fromValue(this.style); + } + component1_7eebsc_k$() { + return this.style; + } + component2_7eebsb_k$() { + return this.pics; + } + copy_f6sqsr_k$(style, pics) { + return new KPicParagraph(style, pics); + } + copy(style, pics, $super) { + style = style === VOID ? this.style : style; + pics = pics === VOID ? this.pics : pics; + return this.copy_f6sqsr_k$(style, pics); + } + toString() { + return 'KPicParagraph(style=' + this.style + ', pics=' + this.pics + ')'; + } + hashCode() { + var result = this.style; + result = imul(result, 31) + (this.pics == null ? 0 : this.pics.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KPicParagraph)) + return false; + var tmp0_other_with_cast = other instanceof KPicParagraph ? other : THROW_CCE(); + if (!(this.style === tmp0_other_with_cast.style)) + return false; + if (!equals(this.pics, tmp0_other_with_cast.pics)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KPicParagraph_djxhjo_k$(seen1, style, pics, serializationConstructorMarker) { + Companion_instance_1170; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1157().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.style = 0; + else + $this.style = style; + if (0 === (seen1 & 2)) + $this.pics = null; + else + $this.pics = pics; + return $this; + } + } + class Companion_1171 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.LineParagraph'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1158(); + } + } + class $serializer_1158 { + constructor() { + $serializer_instance_1158 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KLineParagraph', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('pic', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_1079())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_1079(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_1079(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KLineParagraph.new_com_bapis_bilibili_app_dynamic_v2_KLineParagraph_v2g1sp_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_xgbawu_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.pic == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_1079(), value.pic); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_xgbawu_k$(encoder, value instanceof KLineParagraph ? value : THROW_CCE()); + } + } + class KLineParagraph { + constructor(pic) { + Companion_instance_1171; + pic = pic === VOID ? null : pic; + this.pic = pic; + } + get_pic_18iyfz_k$() { + return this.pic; + } + component1_7eebsc_k$() { + return this.pic; + } + copy_pxt5yo_k$(pic) { + return new KLineParagraph(pic); + } + copy(pic, $super) { + pic = pic === VOID ? this.pic : pic; + return this.copy_pxt5yo_k$(pic); + } + toString() { + return 'KLineParagraph(pic=' + this.pic + ')'; + } + hashCode() { + return this.pic == null ? 0 : this.pic.hashCode(); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KLineParagraph)) + return false; + var tmp0_other_with_cast = other instanceof KLineParagraph ? other : THROW_CCE(); + if (!equals(this.pic, tmp0_other_with_cast.pic)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KLineParagraph_v2g1sp_k$(seen1, pic, serializationConstructorMarker) { + Companion_instance_1171; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1158().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.pic = null; + else + $this.pic = pic; + return $this; + } + } + class Companion_1172 { + constructor() { + Companion_instance_1172 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer($serializer_getInstance_1161())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.dynamic.v2.TextParagraph'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1159(); + } + } + class $serializer_1159 { + constructor() { + $serializer_instance_1159 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KTextParagraph', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('nodes', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_1172().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp6_cached = Companion_getInstance_1172().$childSerializers_1; + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KTextParagraph.new_com_bapis_bilibili_app_dynamic_v2_KTextParagraph_netcd0_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_4jyaij_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_1172().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.nodes, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.nodes); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_4jyaij_k$(encoder, value instanceof KTextParagraph ? value : THROW_CCE()); + } + } + class KTextParagraph { + constructor(nodes) { + Companion_getInstance_1172(); + nodes = nodes === VOID ? emptyList() : nodes; + this.nodes = nodes; + } + get_nodes_ivvt6w_k$() { + return this.nodes; + } + component1_7eebsc_k$() { + return this.nodes; + } + copy_bs2q1t_k$(nodes) { + return new KTextParagraph(nodes); + } + copy(nodes, $super) { + nodes = nodes === VOID ? this.nodes : nodes; + return this.copy_bs2q1t_k$(nodes); + } + toString() { + return 'KTextParagraph(nodes=' + this.nodes + ')'; + } + hashCode() { + return hashCode(this.nodes); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KTextParagraph)) + return false; + var tmp0_other_with_cast = other instanceof KTextParagraph ? other : THROW_CCE(); + if (!equals(this.nodes, tmp0_other_with_cast.nodes)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KTextParagraph_netcd0_k$(seen1, nodes, serializationConstructorMarker) { + Companion_getInstance_1172(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1159().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.nodes = emptyList(); + else + $this.nodes = nodes; + return $this; + } + } + class Companion_1173 { + constructor() { + Companion_instance_1173 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KTextNode$KTextNodeType$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KTextNode$KTextNodeType$Companion$_anonymous__7fczuj); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_145(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KTextNodeType_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KTextNodeType with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_145(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_1160 { + constructor() { + $serializer_instance_1160 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.dynamic.v2.KTextNode.KTextNodeType', 7); + tmp0_serialDesc.addElement_5pzumi_k$('INVALID', false); + tmp0_serialDesc.addElement_5pzumi_k$('WORDS', false); + tmp0_serialDesc.addElement_5pzumi_k$('EMOTE', false); + tmp0_serialDesc.addElement_5pzumi_k$('AT', false); + tmp0_serialDesc.addElement_5pzumi_k$('BIZ_LINK', false); + tmp0_serialDesc.addElement_5pzumi_k$('FORMULA', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_145()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_3525l0_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_3525l0_k$(encoder, value instanceof KTextNodeType ? value : THROW_CCE()); + } + } + class KText_1 { + constructor(value) { + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + } + class KWord extends KText_1 { + constructor() { + KWord_instance = null; + super(0); + KWord_instance = this; + } + } + class KEmote extends KText_1 { + constructor() { + KEmote_instance = null; + super(1); + KEmote_instance = this; + } + } + class KLink extends KText_1 { + constructor() { + KLink_instance = null; + super(2); + KLink_instance = this; + } + } + class KFormula extends KText_1 { + constructor() { + KFormula_instance = null; + super(3); + KFormula_instance = this; + } + } + class Companion_1174 { + constructor() { + Companion_instance_1174 = this; + var tmp = this; + tmp.textValues$delegate_1 = lazy_0(KTextNode$Companion$textValues$delegate$lambda); + this.targetPath = '/bilibili.app.dynamic.v2.TextNode'; + } + get_textValues_bkw114_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.textValues$delegate_1; + var thisRef = this; + var property = textValues$factory(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1161(); + } + get textValues() { + return this.get_textValues_bkw114_k$(); + } + } + class KTextNodeType extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class $serializer_1161 { + constructor() { + $serializer_instance_1161 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KTextNode', this, 6); + tmp0_serialDesc.addElement_5pzumi_k$('nodeType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('rawText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('word', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('emote', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('link', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('formula', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_1163()), get_nullable($serializer_getInstance_1164()), get_nullable($serializer_getInstance_1168()), get_nullable($serializer_getInstance_1170())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_transient0 = 0; + var tmp11_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp11_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_1163(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_1164(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_1168(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_1170(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + } else + while (tmp1_flag) { + tmp2_index = tmp11_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_1163(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_1164(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_1168(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_1170(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp11_input.endStructure_1xqz0n_k$(tmp0_desc); + return KTextNode.new_com_bapis_bilibili_app_dynamic_v2_KTextNode_qabri2_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); + } + serialize_7xh2t7_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.nodeType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.nodeType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.rawText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.rawText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.word_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_1163(), value.word_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.emote_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_1164(), value.emote_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.link_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, $serializer_getInstance_1168(), value.link_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.formula_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 5, $serializer_getInstance_1170(), value.formula_1); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_7xh2t7_k$(encoder, value instanceof KTextNode ? value : THROW_CCE()); + } + } + class KTextNode { + constructor(nodeType, rawText, word, emote, link, formula) { + Companion_getInstance_1174(); + nodeType = nodeType === VOID ? 0 : nodeType; + rawText = rawText === VOID ? '' : rawText; + word = word === VOID ? null : word; + emote = emote === VOID ? null : emote; + link = link === VOID ? null : link; + formula = formula === VOID ? null : formula; + this.nodeType = nodeType; + this.rawText = rawText; + this.word_1 = word; + this.emote_1 = emote; + this.link_1 = link; + this.formula_1 = formula; + var tmp = this; + tmp.textNumber$delegate_1 = lazy_0(KTextNode$textNumber$delegate$lambda(this)); + } + get_nodeType_d8a6sb_k$() { + return this.nodeType; + } + get_rawText_hkfnnw_k$() { + return this.rawText; + } + textValue() { + if (!(this.word_1 == null)) { + var tmp = this.word_1; + return (tmp == null ? true : !(tmp == null)) ? tmp : null; + } else if (!(this.emote_1 == null)) { + var tmp_0 = this.emote_1; + return (tmp_0 == null ? true : !(tmp_0 == null)) ? tmp_0 : null; + } else if (!(this.link_1 == null)) { + var tmp_1 = this.link_1; + return (tmp_1 == null ? true : !(tmp_1 == null)) ? tmp_1 : null; + } else if (!(this.formula_1 == null)) { + var tmp_2 = this.formula_1; + return (tmp_2 == null ? true : !(tmp_2 == null)) ? tmp_2 : null; + } else { + return null; + } + } + textTypeJs() { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = Companion_getInstance_1174().textValues; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.dynamic.v2.KTextNode.textType.' call + var it = element; + tmp$ret$0 = it.value === _get_textNumber__752owb(this); + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + return tmp$ret$1; + } + nodeTypeEnum() { + return Companion_getInstance_1173().fromValue(this.nodeType); + } + component1_7eebsc_k$() { + return this.nodeType; + } + component2_7eebsb_k$() { + return this.rawText; + } + copy_95jj85_k$(nodeType, rawText, word, emote, link, formula) { + return new KTextNode(nodeType, rawText, word, emote, link, formula); + } + copy(nodeType, rawText, word, emote, link, formula, $super) { + nodeType = nodeType === VOID ? this.nodeType : nodeType; + rawText = rawText === VOID ? this.rawText : rawText; + word = word === VOID ? this.word_1 : word; + emote = emote === VOID ? this.emote_1 : emote; + link = link === VOID ? this.link_1 : link; + formula = formula === VOID ? this.formula_1 : formula; + return this.copy_95jj85_k$(nodeType, rawText, word, emote, link, formula); + } + toString() { + return 'KTextNode(nodeType=' + this.nodeType + ', rawText=' + this.rawText + ', word=' + this.word_1 + ', emote=' + this.emote_1 + ', link=' + this.link_1 + ', formula=' + this.formula_1 + ')'; + } + hashCode() { + var result = this.nodeType; + result = imul(result, 31) + getStringHashCode(this.rawText) | 0; + result = imul(result, 31) + (this.word_1 == null ? 0 : this.word_1.hashCode()) | 0; + result = imul(result, 31) + (this.emote_1 == null ? 0 : this.emote_1.hashCode()) | 0; + result = imul(result, 31) + (this.link_1 == null ? 0 : this.link_1.hashCode()) | 0; + result = imul(result, 31) + (this.formula_1 == null ? 0 : this.formula_1.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KTextNode)) + return false; + var tmp0_other_with_cast = other instanceof KTextNode ? other : THROW_CCE(); + if (!(this.nodeType === tmp0_other_with_cast.nodeType)) + return false; + if (!(this.rawText === tmp0_other_with_cast.rawText)) + return false; + if (!equals(this.word_1, tmp0_other_with_cast.word_1)) + return false; + if (!equals(this.emote_1, tmp0_other_with_cast.emote_1)) + return false; + if (!equals(this.link_1, tmp0_other_with_cast.link_1)) + return false; + if (!equals(this.formula_1, tmp0_other_with_cast.formula_1)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KTextNode_qabri2_k$(seen1, nodeType, rawText, word, emote, link, formula, serializationConstructorMarker) { + Companion_getInstance_1174(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1161().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.nodeType = 0; + else + $this.nodeType = nodeType; + if (0 === (seen1 & 2)) + $this.rawText = ''; + else + $this.rawText = rawText; + if (0 === (seen1 & 4)) + $this.word_1 = null; + else + $this.word_1 = word; + if (0 === (seen1 & 8)) + $this.emote_1 = null; + else + $this.emote_1 = emote; + if (0 === (seen1 & 16)) + $this.link_1 = null; + else + $this.link_1 = link; + if (0 === (seen1 & 32)) + $this.formula_1 = null; + else + $this.formula_1 = formula; + var tmp = $this; + tmp.textNumber$delegate_1 = lazy_0(KTextNode$_init_$lambda_uyzbg1($this)); + return $this; + } + } + class Companion_1175 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.WordNode.WordNodeStyle'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1162(); + } + } + class $serializer_1162 { + constructor() { + $serializer_instance_1162 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KWordNode.KWordNodeStyle', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('bold', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('italic', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('strikethrough', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('underline', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = false; + var tmp5_local1 = false; + var tmp6_local2 = false; + var tmp7_local3 = false; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KWordNodeStyle.new_com_bapis_bilibili_app_dynamic_v2_KWordNode_KWordNodeStyle_d5k2az_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_jlmark_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.bold === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 0, value.bold); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.italic === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 1, value.italic); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.strikethrough === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 2, value.strikethrough); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.underline === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 3, value.underline); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_jlmark_k$(encoder, value instanceof KWordNodeStyle ? value : THROW_CCE()); + } + } + class KWordNodeStyle { + constructor(bold, italic, strikethrough, underline) { + Companion_instance_1175; + bold = bold === VOID ? false : bold; + italic = italic === VOID ? false : italic; + strikethrough = strikethrough === VOID ? false : strikethrough; + underline = underline === VOID ? false : underline; + this.bold = bold; + this.italic = italic; + this.strikethrough = strikethrough; + this.underline = underline; + } + get_bold_wojl5a_k$() { + return this.bold; + } + get_italic_ewys6x_k$() { + return this.italic; + } + get_strikethrough_hare52_k$() { + return this.strikethrough; + } + get_underline_8gwl3x_k$() { + return this.underline; + } + component1_7eebsc_k$() { + return this.bold; + } + component2_7eebsb_k$() { + return this.italic; + } + component3_7eebsa_k$() { + return this.strikethrough; + } + component4_7eebs9_k$() { + return this.underline; + } + copy_tvkc7f_k$(bold, italic, strikethrough, underline) { + return new KWordNodeStyle(bold, italic, strikethrough, underline); + } + copy(bold, italic, strikethrough, underline, $super) { + bold = bold === VOID ? this.bold : bold; + italic = italic === VOID ? this.italic : italic; + strikethrough = strikethrough === VOID ? this.strikethrough : strikethrough; + underline = underline === VOID ? this.underline : underline; + return this.copy_tvkc7f_k$(bold, italic, strikethrough, underline); + } + toString() { + return 'KWordNodeStyle(bold=' + this.bold + ', italic=' + this.italic + ', strikethrough=' + this.strikethrough + ', underline=' + this.underline + ')'; + } + hashCode() { + var result = getBooleanHashCode(this.bold); + result = imul(result, 31) + getBooleanHashCode(this.italic) | 0; + result = imul(result, 31) + getBooleanHashCode(this.strikethrough) | 0; + result = imul(result, 31) + getBooleanHashCode(this.underline) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KWordNodeStyle)) + return false; + var tmp0_other_with_cast = other instanceof KWordNodeStyle ? other : THROW_CCE(); + if (!(this.bold === tmp0_other_with_cast.bold)) + return false; + if (!(this.italic === tmp0_other_with_cast.italic)) + return false; + if (!(this.strikethrough === tmp0_other_with_cast.strikethrough)) + return false; + if (!(this.underline === tmp0_other_with_cast.underline)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KWordNode_KWordNodeStyle_d5k2az_k$(seen1, bold, italic, strikethrough, underline, serializationConstructorMarker) { + Companion_instance_1175; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1162().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.bold = false; + else + $this.bold = bold; + if (0 === (seen1 & 2)) + $this.italic = false; + else + $this.italic = italic; + if (0 === (seen1 & 4)) + $this.strikethrough = false; + else + $this.strikethrough = strikethrough; + if (0 === (seen1 & 8)) + $this.underline = false; + else + $this.underline = underline; + return $this; + } + } + class Companion_1176 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.WordNode'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1163(); + } + } + class $serializer_1163 { + constructor() { + $serializer_instance_1163 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KWordNode', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('words', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('fontSize', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('color', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('style', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), DoubleSerializer_getInstance(), get_nullable($serializer_getInstance_1166()), get_nullable($serializer_getInstance_1162())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = 0.0; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeDoubleElement_isei84_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_1166(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_1162(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeDoubleElement_isei84_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_1166(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_1162(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KWordNode.new_com_bapis_bilibili_app_dynamic_v2_KWordNode_kbprxh_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_ha6n0e_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.words === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.words); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !equals(value.fontSize, 0.0)) { + tmp1_output.encodeDoubleElement_a6rqhe_k$(tmp0_desc, 1, value.fontSize); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.color == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_1166(), value.color); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.style == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_1162(), value.style); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_ha6n0e_k$(encoder, value instanceof KWordNode ? value : THROW_CCE()); + } + } + class KWordNode { + constructor(words, fontSize, color, style) { + Companion_instance_1176; + words = words === VOID ? '' : words; + fontSize = fontSize === VOID ? 0.0 : fontSize; + color = color === VOID ? null : color; + style = style === VOID ? null : style; + this.words = words; + this.fontSize = fontSize; + this.color = color; + this.style = style; + } + get_words_j0u8w0_k$() { + return this.words; + } + get_fontSize_pr9n47_k$() { + return this.fontSize; + } + get_color_ipu8u2_k$() { + return this.color; + } + get_style_iyqetk_k$() { + return this.style; + } + component1_7eebsc_k$() { + return this.words; + } + component2_7eebsb_k$() { + return this.fontSize; + } + component3_7eebsa_k$() { + return this.color; + } + component4_7eebs9_k$() { + return this.style; + } + copy_twxx7x_k$(words, fontSize, color, style) { + return new KWordNode(words, fontSize, color, style); + } + copy(words, fontSize, color, style, $super) { + words = words === VOID ? this.words : words; + fontSize = fontSize === VOID ? this.fontSize : fontSize; + color = color === VOID ? this.color : color; + style = style === VOID ? this.style : style; + return this.copy_twxx7x_k$(words, fontSize, color, style); + } + toString() { + return 'KWordNode(words=' + this.words + ', fontSize=' + this.fontSize + ', color=' + this.color + ', style=' + this.style + ')'; + } + hashCode() { + var result = getStringHashCode(this.words); + result = imul(result, 31) + getNumberHashCode(this.fontSize) | 0; + result = imul(result, 31) + (this.color == null ? 0 : this.color.hashCode()) | 0; + result = imul(result, 31) + (this.style == null ? 0 : this.style.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KWordNode)) + return false; + var tmp0_other_with_cast = other instanceof KWordNode ? other : THROW_CCE(); + if (!(this.words === tmp0_other_with_cast.words)) + return false; + if (!equals(this.fontSize, tmp0_other_with_cast.fontSize)) + return false; + if (!equals(this.color, tmp0_other_with_cast.color)) + return false; + if (!equals(this.style, tmp0_other_with_cast.style)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KWordNode_kbprxh_k$(seen1, words, fontSize, color, style, serializationConstructorMarker) { + Companion_instance_1176; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1163().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.words = ''; + else + $this.words = words; + if (0 === (seen1 & 2)) + $this.fontSize = 0.0; + else + $this.fontSize = fontSize; + if (0 === (seen1 & 4)) + $this.color = null; + else + $this.color = color; + if (0 === (seen1 & 8)) + $this.style = null; + else + $this.style = style; + return $this; + } + } + class Companion_1177 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.EmoteNode'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1164(); + } + } + class $serializer_1164 { + constructor() { + $serializer_instance_1164 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KEmoteNode', this, 5); + tmp0_serialDesc.addElement_5pzumi_k$('rawText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('emoteUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('emoteWidth', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('isInlineImg', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('inlineImgCfg', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_1163()), StringSerializer_getInstance(), get_nullable($serializer_getInstance_1167()), BooleanSerializer_getInstance(), get_nullable($serializer_getInstance_1165())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = false; + var tmp8_local4 = null; + var tmp9_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp9_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_1163(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_1167(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp9_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_1165(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + } else + while (tmp1_flag) { + tmp2_index = tmp9_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_1163(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_1167(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp9_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_1165(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp9_input.endStructure_1xqz0n_k$(tmp0_desc); + return KEmoteNode.new_com_bapis_bilibili_app_dynamic_v2_KEmoteNode_eje0sv_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); + } + serialize_w1evcu_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.rawText == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_1163(), value.rawText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.emoteUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.emoteUrl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.emoteWidth == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_1167(), value.emoteWidth); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.isInlineImg === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 3, value.isInlineImg); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.inlineImgCfg == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, $serializer_getInstance_1165(), value.inlineImgCfg); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_w1evcu_k$(encoder, value instanceof KEmoteNode ? value : THROW_CCE()); + } + } + class KEmoteNode { + constructor(rawText, emoteUrl, emoteWidth, isInlineImg, inlineImgCfg) { + Companion_instance_1177; + rawText = rawText === VOID ? null : rawText; + emoteUrl = emoteUrl === VOID ? '' : emoteUrl; + emoteWidth = emoteWidth === VOID ? null : emoteWidth; + isInlineImg = isInlineImg === VOID ? false : isInlineImg; + inlineImgCfg = inlineImgCfg === VOID ? null : inlineImgCfg; + this.rawText = rawText; + this.emoteUrl = emoteUrl; + this.emoteWidth = emoteWidth; + this.isInlineImg = isInlineImg; + this.inlineImgCfg = inlineImgCfg; + } + get_rawText_hkfnnw_k$() { + return this.rawText; + } + get_emoteUrl_cf7xi8_k$() { + return this.emoteUrl; + } + get_emoteWidth_52ugcp_k$() { + return this.emoteWidth; + } + get_isInlineImg_2v270p_k$() { + return this.isInlineImg; + } + get_inlineImgCfg_62s5b7_k$() { + return this.inlineImgCfg; + } + component1_7eebsc_k$() { + return this.rawText; + } + component2_7eebsb_k$() { + return this.emoteUrl; + } + component3_7eebsa_k$() { + return this.emoteWidth; + } + component4_7eebs9_k$() { + return this.isInlineImg; + } + component5_7eebs8_k$() { + return this.inlineImgCfg; + } + copy_7ysvob_k$(rawText, emoteUrl, emoteWidth, isInlineImg, inlineImgCfg) { + return new KEmoteNode(rawText, emoteUrl, emoteWidth, isInlineImg, inlineImgCfg); + } + copy(rawText, emoteUrl, emoteWidth, isInlineImg, inlineImgCfg, $super) { + rawText = rawText === VOID ? this.rawText : rawText; + emoteUrl = emoteUrl === VOID ? this.emoteUrl : emoteUrl; + emoteWidth = emoteWidth === VOID ? this.emoteWidth : emoteWidth; + isInlineImg = isInlineImg === VOID ? this.isInlineImg : isInlineImg; + inlineImgCfg = inlineImgCfg === VOID ? this.inlineImgCfg : inlineImgCfg; + return this.copy_7ysvob_k$(rawText, emoteUrl, emoteWidth, isInlineImg, inlineImgCfg); + } + toString() { + return 'KEmoteNode(rawText=' + this.rawText + ', emoteUrl=' + this.emoteUrl + ', emoteWidth=' + this.emoteWidth + ', isInlineImg=' + this.isInlineImg + ', inlineImgCfg=' + this.inlineImgCfg + ')'; + } + hashCode() { + var result = this.rawText == null ? 0 : this.rawText.hashCode(); + result = imul(result, 31) + getStringHashCode(this.emoteUrl) | 0; + result = imul(result, 31) + (this.emoteWidth == null ? 0 : this.emoteWidth.hashCode()) | 0; + result = imul(result, 31) + getBooleanHashCode(this.isInlineImg) | 0; + result = imul(result, 31) + (this.inlineImgCfg == null ? 0 : this.inlineImgCfg.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KEmoteNode)) + return false; + var tmp0_other_with_cast = other instanceof KEmoteNode ? other : THROW_CCE(); + if (!equals(this.rawText, tmp0_other_with_cast.rawText)) + return false; + if (!(this.emoteUrl === tmp0_other_with_cast.emoteUrl)) + return false; + if (!equals(this.emoteWidth, tmp0_other_with_cast.emoteWidth)) + return false; + if (!(this.isInlineImg === tmp0_other_with_cast.isInlineImg)) + return false; + if (!equals(this.inlineImgCfg, tmp0_other_with_cast.inlineImgCfg)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KEmoteNode_eje0sv_k$(seen1, rawText, emoteUrl, emoteWidth, isInlineImg, inlineImgCfg, serializationConstructorMarker) { + Companion_instance_1177; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1164().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.rawText = null; + else + $this.rawText = rawText; + if (0 === (seen1 & 2)) + $this.emoteUrl = ''; + else + $this.emoteUrl = emoteUrl; + if (0 === (seen1 & 4)) + $this.emoteWidth = null; + else + $this.emoteWidth = emoteWidth; + if (0 === (seen1 & 8)) + $this.isInlineImg = false; + else + $this.isInlineImg = isInlineImg; + if (0 === (seen1 & 16)) + $this.inlineImgCfg = null; + else + $this.inlineImgCfg = inlineImgCfg; + return $this; + } + } + class Companion_1178 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.ImgInlineCfg'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1165(); + } + } + class $serializer_1165 { + constructor() { + $serializer_instance_1165 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KImgInlineCfg', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('width', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('height', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('color', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [DoubleSerializer_getInstance(), DoubleSerializer_getInstance(), get_nullable($serializer_getInstance_1166())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0.0; + var tmp5_local1 = 0.0; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeDoubleElement_isei84_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeDoubleElement_isei84_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_1166(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeDoubleElement_isei84_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeDoubleElement_isei84_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_1166(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KImgInlineCfg.new_com_bapis_bilibili_app_dynamic_v2_KImgInlineCfg_cxtfgo_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_17s2w2_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.width, 0.0)) { + tmp1_output.encodeDoubleElement_a6rqhe_k$(tmp0_desc, 0, value.width); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !equals(value.height, 0.0)) { + tmp1_output.encodeDoubleElement_a6rqhe_k$(tmp0_desc, 1, value.height); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.color == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_1166(), value.color); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_17s2w2_k$(encoder, value instanceof KImgInlineCfg ? value : THROW_CCE()); + } + } + class KImgInlineCfg { + constructor(width, height, color) { + Companion_instance_1178; + width = width === VOID ? 0.0 : width; + height = height === VOID ? 0.0 : height; + color = color === VOID ? null : color; + this.width = width; + this.height = height; + this.color = color; + } + get_width_j0q4yl_k$() { + return this.width; + } + get_height_e7t92o_k$() { + return this.height; + } + get_color_ipu8u2_k$() { + return this.color; + } + component1_7eebsc_k$() { + return this.width; + } + component2_7eebsb_k$() { + return this.height; + } + component3_7eebsa_k$() { + return this.color; + } + copy_i7szrv_k$(width, height, color) { + return new KImgInlineCfg(width, height, color); + } + copy(width, height, color, $super) { + width = width === VOID ? this.width : width; + height = height === VOID ? this.height : height; + color = color === VOID ? this.color : color; + return this.copy_i7szrv_k$(width, height, color); + } + toString() { + return 'KImgInlineCfg(width=' + this.width + ', height=' + this.height + ', color=' + this.color + ')'; + } + hashCode() { + var result = getNumberHashCode(this.width); + result = imul(result, 31) + getNumberHashCode(this.height) | 0; + result = imul(result, 31) + (this.color == null ? 0 : this.color.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KImgInlineCfg)) + return false; + var tmp0_other_with_cast = other instanceof KImgInlineCfg ? other : THROW_CCE(); + if (!equals(this.width, tmp0_other_with_cast.width)) + return false; + if (!equals(this.height, tmp0_other_with_cast.height)) + return false; + if (!equals(this.color, tmp0_other_with_cast.color)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KImgInlineCfg_cxtfgo_k$(seen1, width, height, color, serializationConstructorMarker) { + Companion_instance_1178; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1165().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.width = 0.0; + else + $this.width = width; + if (0 === (seen1 & 2)) + $this.height = 0.0; + else + $this.height = height; + if (0 === (seen1 & 4)) + $this.color = null; + else + $this.color = color; + return $this; + } + } + class Companion_1179 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.Colors'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1166(); + } + } + class $serializer_1166 { + constructor() { + $serializer_instance_1166 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KColors', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('colorDay', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('colorNight', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KColors.new_com_bapis_bilibili_app_dynamic_v2_KColors_hz7mce_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_qsrxfe_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.colorDay === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.colorDay); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.colorNight === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.colorNight); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_qsrxfe_k$(encoder, value instanceof KColors ? value : THROW_CCE()); + } + } + class KColors { + constructor(colorDay, colorNight) { + Companion_instance_1179; + colorDay = colorDay === VOID ? '' : colorDay; + colorNight = colorNight === VOID ? '' : colorNight; + this.colorDay = colorDay; + this.colorNight = colorNight; + } + get_colorDay_strugy_k$() { + return this.colorDay; + } + get_colorNight_w1r0e_k$() { + return this.colorNight; + } + component1_7eebsc_k$() { + return this.colorDay; + } + component2_7eebsb_k$() { + return this.colorNight; + } + copy_plwnsl_k$(colorDay, colorNight) { + return new KColors(colorDay, colorNight); + } + copy(colorDay, colorNight, $super) { + colorDay = colorDay === VOID ? this.colorDay : colorDay; + colorNight = colorNight === VOID ? this.colorNight : colorNight; + return this.copy_plwnsl_k$(colorDay, colorNight); + } + toString() { + return 'KColors(colorDay=' + this.colorDay + ', colorNight=' + this.colorNight + ')'; + } + hashCode() { + var result = getStringHashCode(this.colorDay); + result = imul(result, 31) + getStringHashCode(this.colorNight) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KColors)) + return false; + var tmp0_other_with_cast = other instanceof KColors ? other : THROW_CCE(); + if (!(this.colorDay === tmp0_other_with_cast.colorDay)) + return false; + if (!(this.colorNight === tmp0_other_with_cast.colorNight)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KColors_hz7mce_k$(seen1, colorDay, colorNight, serializationConstructorMarker) { + Companion_instance_1179; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1166().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.colorDay = ''; + else + $this.colorDay = colorDay; + if (0 === (seen1 & 2)) + $this.colorNight = ''; + else + $this.colorNight = colorNight; + return $this; + } + } + class Companion_1180 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.EmoteSize'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1167(); + } + } + class $serializer_1167 { + constructor() { + $serializer_instance_1167 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KEmoteSize', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('width', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('emojiSize', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [DoubleSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0.0; + var tmp5_local1 = 0; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeDoubleElement_isei84_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeDoubleElement_isei84_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KEmoteSize.new_com_bapis_bilibili_app_dynamic_v2_KEmoteSize_q5bpe7_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_yxinab_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.width, 0.0)) { + tmp1_output.encodeDoubleElement_a6rqhe_k$(tmp0_desc, 0, value.width); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.emojiSize === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.emojiSize); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_yxinab_k$(encoder, value instanceof KEmoteSize ? value : THROW_CCE()); + } + } + class KEmoteSize { + constructor(width, emojiSize) { + Companion_instance_1180; + width = width === VOID ? 0.0 : width; + emojiSize = emojiSize === VOID ? 0 : emojiSize; + this.width = width; + this.emojiSize = emojiSize; + } + get_width_j0q4yl_k$() { + return this.width; + } + get_emojiSize_ymk2ma_k$() { + return this.emojiSize; + } + component1_7eebsc_k$() { + return this.width; + } + component2_7eebsb_k$() { + return this.emojiSize; + } + copy_u3hla1_k$(width, emojiSize) { + return new KEmoteSize(width, emojiSize); + } + copy(width, emojiSize, $super) { + width = width === VOID ? this.width : width; + emojiSize = emojiSize === VOID ? this.emojiSize : emojiSize; + return this.copy_u3hla1_k$(width, emojiSize); + } + toString() { + return 'KEmoteSize(width=' + this.width + ', emojiSize=' + this.emojiSize + ')'; + } + hashCode() { + var result = getNumberHashCode(this.width); + result = imul(result, 31) + this.emojiSize | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KEmoteSize)) + return false; + var tmp0_other_with_cast = other instanceof KEmoteSize ? other : THROW_CCE(); + if (!equals(this.width, tmp0_other_with_cast.width)) + return false; + if (!(this.emojiSize === tmp0_other_with_cast.emojiSize)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KEmoteSize_q5bpe7_k$(seen1, width, emojiSize, serializationConstructorMarker) { + Companion_instance_1180; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1167().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.width = 0.0; + else + $this.width = width; + if (0 === (seen1 & 2)) + $this.emojiSize = 0; + else + $this.emojiSize = emojiSize; + return $this; + } + } + class Companion_1181 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.LinkNode'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1168(); + } + } + class $serializer_1168 { + constructor() { + $serializer_instance_1168 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KLinkNode', this, 11); + tmp0_serialDesc.addElement_5pzumi_k$('showText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('link', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('icon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('iconSuffix', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('linkType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('linkTypeEnum', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('bizId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('timestamp', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('goodsItem', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('noteVideoTs', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('bizData', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_1163()), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), get_nullable($serializer_getInstance_1104()), get_nullable($serializer_getInstance_1169()), get_nullable($serializer_getInstance())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = 0; + var tmp10_local6 = null; + var tmp11_local7 = new Long(0, 0); + var tmp12_local8 = null; + var tmp13_local9 = null; + var tmp14_local10 = null; + var tmp15_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp15_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_1163(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_1104(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 9, $serializer_getInstance_1169(), tmp13_local9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 10, $serializer_getInstance(), tmp14_local10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + } else + while (tmp1_flag) { + tmp2_index = tmp15_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_1163(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_1104(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 9, $serializer_getInstance_1169(), tmp13_local9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 10, $serializer_getInstance(), tmp14_local10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp15_input.endStructure_1xqz0n_k$(tmp0_desc); + return KLinkNode.new_com_bapis_bilibili_app_dynamic_v2_KLinkNode_x625gm_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, null); + } + serialize_ald0jy_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.showText == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_1163(), value.showText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.link === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.link); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.icon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.icon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.iconSuffix === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.iconSuffix); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.linkType === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.linkType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.linkTypeEnum === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 5, value.linkTypeEnum); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.bizId === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.bizId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !value.timestamp.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 7, value.timestamp); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.goodsItem == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 8, $serializer_getInstance_1104(), value.goodsItem); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.noteVideoTs == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 9, $serializer_getInstance_1169(), value.noteVideoTs); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.bizData == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 10, $serializer_getInstance(), value.bizData); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_ald0jy_k$(encoder, value instanceof KLinkNode ? value : THROW_CCE()); + } + } + class KLinkNode { + constructor(showText, link, icon, iconSuffix, linkType, linkTypeEnum, bizId, timestamp, goodsItem, noteVideoTs, bizData) { + Companion_instance_1181; + showText = showText === VOID ? null : showText; + link = link === VOID ? '' : link; + icon = icon === VOID ? '' : icon; + iconSuffix = iconSuffix === VOID ? '' : iconSuffix; + linkType = linkType === VOID ? '' : linkType; + linkTypeEnum = linkTypeEnum === VOID ? 0 : linkTypeEnum; + bizId = bizId === VOID ? '' : bizId; + timestamp = timestamp === VOID ? new Long(0, 0) : timestamp; + goodsItem = goodsItem === VOID ? null : goodsItem; + noteVideoTs = noteVideoTs === VOID ? null : noteVideoTs; + bizData = bizData === VOID ? null : bizData; + this.showText = showText; + this.link = link; + this.icon = icon; + this.iconSuffix = iconSuffix; + this.linkType = linkType; + this.linkTypeEnum = linkTypeEnum; + this.bizId = bizId; + this.timestamp = timestamp; + this.goodsItem = goodsItem; + this.noteVideoTs = noteVideoTs; + this.bizData = bizData; + } + get_showText_xmfxcj_k$() { + return this.showText; + } + get_link_wopumb_k$() { + return this.link; + } + get_icon_wont8i_k$() { + return this.icon; + } + get_iconSuffix_sdt7wt_k$() { + return this.iconSuffix; + } + get_linkType_c1xqsj_k$() { + return this.linkType; + } + get_linkTypeEnum_cfghj2_k$() { + return this.linkTypeEnum; + } + get_bizId_ip6vs5_k$() { + return this.bizId; + } + get_timestamp_9fccx9_k$() { + return this.timestamp; + } + get_goodsItem_vkmx9c_k$() { + return this.goodsItem; + } + get_noteVideoTs_hety01_k$() { + return this.noteVideoTs; + } + get_bizData_cunws_k$() { + return this.bizData; + } + linkTypeEnumEnum() { + return Companion_getInstance_1163().fromValue(this.linkTypeEnum); + } + component1_7eebsc_k$() { + return this.showText; + } + component2_7eebsb_k$() { + return this.link; + } + component3_7eebsa_k$() { + return this.icon; + } + component4_7eebs9_k$() { + return this.iconSuffix; + } + component5_7eebs8_k$() { + return this.linkType; + } + component6_7eebs7_k$() { + return this.linkTypeEnum; + } + component7_7eebs6_k$() { + return this.bizId; + } + component8_7eebs5_k$() { + return this.timestamp; + } + component9_7eebs4_k$() { + return this.goodsItem; + } + component10_gazzfo_k$() { + return this.noteVideoTs; + } + component11_gazzfn_k$() { + return this.bizData; + } + copy_d8vr4w_k$(showText, link, icon, iconSuffix, linkType, linkTypeEnum, bizId, timestamp, goodsItem, noteVideoTs, bizData) { + return new KLinkNode(showText, link, icon, iconSuffix, linkType, linkTypeEnum, bizId, timestamp, goodsItem, noteVideoTs, bizData); + } + copy(showText, link, icon, iconSuffix, linkType, linkTypeEnum, bizId, timestamp, goodsItem, noteVideoTs, bizData, $super) { + showText = showText === VOID ? this.showText : showText; + link = link === VOID ? this.link : link; + icon = icon === VOID ? this.icon : icon; + iconSuffix = iconSuffix === VOID ? this.iconSuffix : iconSuffix; + linkType = linkType === VOID ? this.linkType : linkType; + linkTypeEnum = linkTypeEnum === VOID ? this.linkTypeEnum : linkTypeEnum; + bizId = bizId === VOID ? this.bizId : bizId; + timestamp = timestamp === VOID ? this.timestamp : timestamp; + goodsItem = goodsItem === VOID ? this.goodsItem : goodsItem; + noteVideoTs = noteVideoTs === VOID ? this.noteVideoTs : noteVideoTs; + bizData = bizData === VOID ? this.bizData : bizData; + return this.copy_d8vr4w_k$(showText, link, icon, iconSuffix, linkType, linkTypeEnum, bizId, timestamp, goodsItem, noteVideoTs, bizData); + } + toString() { + return 'KLinkNode(showText=' + this.showText + ', link=' + this.link + ', icon=' + this.icon + ', iconSuffix=' + this.iconSuffix + ', linkType=' + this.linkType + ', linkTypeEnum=' + this.linkTypeEnum + ', bizId=' + this.bizId + ', timestamp=' + this.timestamp.toString() + ', goodsItem=' + this.goodsItem + ', noteVideoTs=' + this.noteVideoTs + ', bizData=' + this.bizData + ')'; + } + hashCode() { + var result = this.showText == null ? 0 : this.showText.hashCode(); + result = imul(result, 31) + getStringHashCode(this.link) | 0; + result = imul(result, 31) + getStringHashCode(this.icon) | 0; + result = imul(result, 31) + getStringHashCode(this.iconSuffix) | 0; + result = imul(result, 31) + getStringHashCode(this.linkType) | 0; + result = imul(result, 31) + this.linkTypeEnum | 0; + result = imul(result, 31) + getStringHashCode(this.bizId) | 0; + result = imul(result, 31) + this.timestamp.hashCode() | 0; + result = imul(result, 31) + (this.goodsItem == null ? 0 : this.goodsItem.hashCode()) | 0; + result = imul(result, 31) + (this.noteVideoTs == null ? 0 : this.noteVideoTs.hashCode()) | 0; + result = imul(result, 31) + (this.bizData == null ? 0 : this.bizData.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KLinkNode)) + return false; + var tmp0_other_with_cast = other instanceof KLinkNode ? other : THROW_CCE(); + if (!equals(this.showText, tmp0_other_with_cast.showText)) + return false; + if (!(this.link === tmp0_other_with_cast.link)) + return false; + if (!(this.icon === tmp0_other_with_cast.icon)) + return false; + if (!(this.iconSuffix === tmp0_other_with_cast.iconSuffix)) + return false; + if (!(this.linkType === tmp0_other_with_cast.linkType)) + return false; + if (!(this.linkTypeEnum === tmp0_other_with_cast.linkTypeEnum)) + return false; + if (!(this.bizId === tmp0_other_with_cast.bizId)) + return false; + if (!this.timestamp.equals(tmp0_other_with_cast.timestamp)) + return false; + if (!equals(this.goodsItem, tmp0_other_with_cast.goodsItem)) + return false; + if (!equals(this.noteVideoTs, tmp0_other_with_cast.noteVideoTs)) + return false; + if (!equals(this.bizData, tmp0_other_with_cast.bizData)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KLinkNode_x625gm_k$(seen1, showText, link, icon, iconSuffix, linkType, linkTypeEnum, bizId, timestamp, goodsItem, noteVideoTs, bizData, serializationConstructorMarker) { + Companion_instance_1181; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1168().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.showText = null; + else + $this.showText = showText; + if (0 === (seen1 & 2)) + $this.link = ''; + else + $this.link = link; + if (0 === (seen1 & 4)) + $this.icon = ''; + else + $this.icon = icon; + if (0 === (seen1 & 8)) + $this.iconSuffix = ''; + else + $this.iconSuffix = iconSuffix; + if (0 === (seen1 & 16)) + $this.linkType = ''; + else + $this.linkType = linkType; + if (0 === (seen1 & 32)) + $this.linkTypeEnum = 0; + else + $this.linkTypeEnum = linkTypeEnum; + if (0 === (seen1 & 64)) + $this.bizId = ''; + else + $this.bizId = bizId; + if (0 === (seen1 & 128)) + $this.timestamp = new Long(0, 0); + else + $this.timestamp = timestamp; + if (0 === (seen1 & 256)) + $this.goodsItem = null; + else + $this.goodsItem = goodsItem; + if (0 === (seen1 & 512)) + $this.noteVideoTs = null; + else + $this.noteVideoTs = noteVideoTs; + if (0 === (seen1 & 1024)) + $this.bizData = null; + else + $this.bizData = bizData; + return $this; + } + } + class Companion_1182 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.NoteVideoTS'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1169(); + } + } + class $serializer_1169 { + constructor() { + $serializer_instance_1169 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KNoteVideoTS', this, 10); + tmp0_serialDesc.addElement_5pzumi_k$('cid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('oidType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('status', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('index', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('seconds', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('cidCount', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('key', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('epid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('desc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = new Long(0, 0); + var tmp6_local2 = new Long(0, 0); + var tmp7_local3 = new Long(0, 0); + var tmp8_local4 = new Long(0, 0); + var tmp9_local5 = new Long(0, 0); + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_local8 = new Long(0, 0); + var tmp13_local9 = null; + var tmp14_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp14_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + } else + while (tmp1_flag) { + tmp2_index = tmp14_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp14_input.endStructure_1xqz0n_k$(tmp0_desc); + return KNoteVideoTS.new_com_bapis_bilibili_app_dynamic_v2_KNoteVideoTS_ks2i7n_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, null); + } + serialize_j0m73o_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.cid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.cid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.oidType.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.oidType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.status.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.status); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !value.index.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 3, value.index); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !value.seconds.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 4, value.seconds); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !value.cidCount.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 5, value.cidCount); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.key === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.key); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !value.epid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 8, value.epid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.desc === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 9, value.desc); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_j0m73o_k$(encoder, value instanceof KNoteVideoTS ? value : THROW_CCE()); + } + } + class KNoteVideoTS { + constructor(cid, oidType, status, index, seconds, cidCount, key, title, epid, desc) { + Companion_instance_1182; + cid = cid === VOID ? new Long(0, 0) : cid; + oidType = oidType === VOID ? new Long(0, 0) : oidType; + status = status === VOID ? new Long(0, 0) : status; + index = index === VOID ? new Long(0, 0) : index; + seconds = seconds === VOID ? new Long(0, 0) : seconds; + cidCount = cidCount === VOID ? new Long(0, 0) : cidCount; + key = key === VOID ? '' : key; + title = title === VOID ? '' : title; + epid = epid === VOID ? new Long(0, 0) : epid; + desc = desc === VOID ? '' : desc; + this.cid = cid; + this.oidType = oidType; + this.status = status; + this.index = index; + this.seconds = seconds; + this.cidCount = cidCount; + this.key = key; + this.title = title; + this.epid = epid; + this.desc = desc; + } + get_cid_18j82z_k$() { + return this.cid; + } + get_oidType_mytwhx_k$() { + return this.oidType; + } + get_status_jnf6d7_k$() { + return this.status; + } + get_index_it478p_k$() { + return this.index; + } + get_seconds_xuhyfq_k$() { + return this.seconds; + } + get_cidCount_7bxdiy_k$() { + return this.cidCount; + } + get_key_18j28a_k$() { + return this.key; + } + get_title_iz32un_k$() { + return this.title; + } + get_epid_wolirz_k$() { + return this.epid; + } + get_desc_woknve_k$() { + return this.desc; + } + component1_7eebsc_k$() { + return this.cid; + } + component2_7eebsb_k$() { + return this.oidType; + } + component3_7eebsa_k$() { + return this.status; + } + component4_7eebs9_k$() { + return this.index; + } + component5_7eebs8_k$() { + return this.seconds; + } + component6_7eebs7_k$() { + return this.cidCount; + } + component7_7eebs6_k$() { + return this.key; + } + component8_7eebs5_k$() { + return this.title; + } + component9_7eebs4_k$() { + return this.epid; + } + component10_gazzfo_k$() { + return this.desc; + } + copy_peclfx_k$(cid, oidType, status, index, seconds, cidCount, key, title, epid, desc) { + return new KNoteVideoTS(cid, oidType, status, index, seconds, cidCount, key, title, epid, desc); + } + copy(cid, oidType, status, index, seconds, cidCount, key, title, epid, desc, $super) { + cid = cid === VOID ? this.cid : cid; + oidType = oidType === VOID ? this.oidType : oidType; + status = status === VOID ? this.status : status; + index = index === VOID ? this.index : index; + seconds = seconds === VOID ? this.seconds : seconds; + cidCount = cidCount === VOID ? this.cidCount : cidCount; + key = key === VOID ? this.key : key; + title = title === VOID ? this.title : title; + epid = epid === VOID ? this.epid : epid; + desc = desc === VOID ? this.desc : desc; + return this.copy_peclfx_k$(cid, oidType, status, index, seconds, cidCount, key, title, epid, desc); + } + toString() { + return 'KNoteVideoTS(cid=' + this.cid.toString() + ', oidType=' + this.oidType.toString() + ', status=' + this.status.toString() + ', index=' + this.index.toString() + ', seconds=' + this.seconds.toString() + ', cidCount=' + this.cidCount.toString() + ', key=' + this.key + ', title=' + this.title + ', epid=' + this.epid.toString() + ', desc=' + this.desc + ')'; + } + hashCode() { + var result = this.cid.hashCode(); + result = imul(result, 31) + this.oidType.hashCode() | 0; + result = imul(result, 31) + this.status.hashCode() | 0; + result = imul(result, 31) + this.index.hashCode() | 0; + result = imul(result, 31) + this.seconds.hashCode() | 0; + result = imul(result, 31) + this.cidCount.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.key) | 0; + result = imul(result, 31) + getStringHashCode(this.title) | 0; + result = imul(result, 31) + this.epid.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.desc) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KNoteVideoTS)) + return false; + var tmp0_other_with_cast = other instanceof KNoteVideoTS ? other : THROW_CCE(); + if (!this.cid.equals(tmp0_other_with_cast.cid)) + return false; + if (!this.oidType.equals(tmp0_other_with_cast.oidType)) + return false; + if (!this.status.equals(tmp0_other_with_cast.status)) + return false; + if (!this.index.equals(tmp0_other_with_cast.index)) + return false; + if (!this.seconds.equals(tmp0_other_with_cast.seconds)) + return false; + if (!this.cidCount.equals(tmp0_other_with_cast.cidCount)) + return false; + if (!(this.key === tmp0_other_with_cast.key)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!this.epid.equals(tmp0_other_with_cast.epid)) + return false; + if (!(this.desc === tmp0_other_with_cast.desc)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KNoteVideoTS_ks2i7n_k$(seen1, cid, oidType, status, index, seconds, cidCount, key, title, epid, desc, serializationConstructorMarker) { + Companion_instance_1182; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1169().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.cid = new Long(0, 0); + else + $this.cid = cid; + if (0 === (seen1 & 2)) + $this.oidType = new Long(0, 0); + else + $this.oidType = oidType; + if (0 === (seen1 & 4)) + $this.status = new Long(0, 0); + else + $this.status = status; + if (0 === (seen1 & 8)) + $this.index = new Long(0, 0); + else + $this.index = index; + if (0 === (seen1 & 16)) + $this.seconds = new Long(0, 0); + else + $this.seconds = seconds; + if (0 === (seen1 & 32)) + $this.cidCount = new Long(0, 0); + else + $this.cidCount = cidCount; + if (0 === (seen1 & 64)) + $this.key = ''; + else + $this.key = key; + if (0 === (seen1 & 128)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 256)) + $this.epid = new Long(0, 0); + else + $this.epid = epid; + if (0 === (seen1 & 512)) + $this.desc = ''; + else + $this.desc = desc; + return $this; + } + } + class Companion_1183 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.FormulaNode'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1170(); + } + } + class $serializer_1170 { + constructor() { + $serializer_instance_1170 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KFormulaNode', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('latexContent', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('imageSpec', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('imgUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_1163()), get_nullable($serializer_getInstance_1165()), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_1163(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_1165(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_1163(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_1165(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KFormulaNode.new_com_bapis_bilibili_app_dynamic_v2_KFormulaNode_28q6tf_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_vuxlg4_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.latexContent == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_1163(), value.latexContent); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.imageSpec == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_1165(), value.imageSpec); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.imgUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.imgUrl); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_vuxlg4_k$(encoder, value instanceof KFormulaNode ? value : THROW_CCE()); + } + } + class KFormulaNode { + constructor(latexContent, imageSpec, imgUrl) { + Companion_instance_1183; + latexContent = latexContent === VOID ? null : latexContent; + imageSpec = imageSpec === VOID ? null : imageSpec; + imgUrl = imgUrl === VOID ? '' : imgUrl; + this.latexContent = latexContent; + this.imageSpec = imageSpec; + this.imgUrl = imgUrl; + } + get_latexContent_fgrmq8_k$() { + return this.latexContent; + } + get_imageSpec_60brw3_k$() { + return this.imageSpec; + } + get_imgUrl_et7l4l_k$() { + return this.imgUrl; + } + component1_7eebsc_k$() { + return this.latexContent; + } + component2_7eebsb_k$() { + return this.imageSpec; + } + component3_7eebsa_k$() { + return this.imgUrl; + } + copy_vqmo9b_k$(latexContent, imageSpec, imgUrl) { + return new KFormulaNode(latexContent, imageSpec, imgUrl); + } + copy(latexContent, imageSpec, imgUrl, $super) { + latexContent = latexContent === VOID ? this.latexContent : latexContent; + imageSpec = imageSpec === VOID ? this.imageSpec : imageSpec; + imgUrl = imgUrl === VOID ? this.imgUrl : imgUrl; + return this.copy_vqmo9b_k$(latexContent, imageSpec, imgUrl); + } + toString() { + return 'KFormulaNode(latexContent=' + this.latexContent + ', imageSpec=' + this.imageSpec + ', imgUrl=' + this.imgUrl + ')'; + } + hashCode() { + var result = this.latexContent == null ? 0 : this.latexContent.hashCode(); + result = imul(result, 31) + (this.imageSpec == null ? 0 : this.imageSpec.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.imgUrl) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KFormulaNode)) + return false; + var tmp0_other_with_cast = other instanceof KFormulaNode ? other : THROW_CCE(); + if (!equals(this.latexContent, tmp0_other_with_cast.latexContent)) + return false; + if (!equals(this.imageSpec, tmp0_other_with_cast.imageSpec)) + return false; + if (!(this.imgUrl === tmp0_other_with_cast.imgUrl)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KFormulaNode_28q6tf_k$(seen1, latexContent, imageSpec, imgUrl, serializationConstructorMarker) { + Companion_instance_1183; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1170().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.latexContent = null; + else + $this.latexContent = latexContent; + if (0 === (seen1 & 2)) + $this.imageSpec = null; + else + $this.imageSpec = imageSpec; + if (0 === (seen1 & 4)) + $this.imgUrl = ''; + else + $this.imgUrl = imgUrl; + return $this; + } + } + class Companion_1184 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.CardParagraph'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1171(); + } + } + class $serializer_1171 { + constructor() { + $serializer_instance_1171 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KCardParagraph', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('additionalCard', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('bizType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('bizId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_1101()), IntSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = 0; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_1101(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_1101(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KCardParagraph.new_com_bapis_bilibili_app_dynamic_v2_KCardParagraph_l70rho_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_qd2spu_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.additionalCard == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_1101(), value.additionalCard); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.bizType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.bizType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.bizId === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.bizId); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_qd2spu_k$(encoder, value instanceof KCardParagraph ? value : THROW_CCE()); + } + } + class KCardParagraph { + constructor(additionalCard, bizType, bizId) { + Companion_instance_1184; + additionalCard = additionalCard === VOID ? null : additionalCard; + bizType = bizType === VOID ? 0 : bizType; + bizId = bizId === VOID ? '' : bizId; + this.additionalCard = additionalCard; + this.bizType = bizType; + this.bizId = bizId; + } + get_additionalCard_h8s82o_k$() { + return this.additionalCard; + } + get_bizType_cjyf0_k$() { + return this.bizType; + } + get_bizId_ip6vs5_k$() { + return this.bizId; + } + bizTypeEnum() { + return Companion_getInstance_1163().fromValue(this.bizType); + } + component1_7eebsc_k$() { + return this.additionalCard; + } + component2_7eebsb_k$() { + return this.bizType; + } + component3_7eebsa_k$() { + return this.bizId; + } + copy_jtqn06_k$(additionalCard, bizType, bizId) { + return new KCardParagraph(additionalCard, bizType, bizId); + } + copy(additionalCard, bizType, bizId, $super) { + additionalCard = additionalCard === VOID ? this.additionalCard : additionalCard; + bizType = bizType === VOID ? this.bizType : bizType; + bizId = bizId === VOID ? this.bizId : bizId; + return this.copy_jtqn06_k$(additionalCard, bizType, bizId); + } + toString() { + return 'KCardParagraph(additionalCard=' + this.additionalCard + ', bizType=' + this.bizType + ', bizId=' + this.bizId + ')'; + } + hashCode() { + var result = this.additionalCard == null ? 0 : this.additionalCard.hashCode(); + result = imul(result, 31) + this.bizType | 0; + result = imul(result, 31) + getStringHashCode(this.bizId) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KCardParagraph)) + return false; + var tmp0_other_with_cast = other instanceof KCardParagraph ? other : THROW_CCE(); + if (!equals(this.additionalCard, tmp0_other_with_cast.additionalCard)) + return false; + if (!(this.bizType === tmp0_other_with_cast.bizType)) + return false; + if (!(this.bizId === tmp0_other_with_cast.bizId)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KCardParagraph_l70rho_k$(seen1, additionalCard, bizType, bizId, serializationConstructorMarker) { + Companion_instance_1184; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1171().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.additionalCard = null; + else + $this.additionalCard = additionalCard; + if (0 === (seen1 & 2)) + $this.bizType = 0; + else + $this.bizType = bizType; + if (0 === (seen1 & 4)) + $this.bizId = ''; + else + $this.bizId = bizId; + return $this; + } + } + class Companion_1185 { + constructor() { + this.targetPath = '/bilibili.app.dynamic.v2.CodeParagraph'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1172(); + } + } + class $serializer_1172 { + constructor() { + $serializer_instance_1172 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.dynamic.v2.KCodeParagraph', this, 6); + tmp0_serialDesc.addElement_5pzumi_k$('codeLang', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('codeContent', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('popupLink', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('barIcon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('barNotice', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('btnText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp10_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + } else + while (tmp1_flag) { + tmp2_index = tmp10_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp10_input.endStructure_1xqz0n_k$(tmp0_desc); + return KCodeParagraph.new_com_bapis_bilibili_app_dynamic_v2_KCodeParagraph_lj3dal_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); + } + serialize_qoo67v_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.codeLang === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.codeLang); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.codeContent === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.codeContent); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.popupLink === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.popupLink); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.barIcon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.barIcon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.barNotice === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.barNotice); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.btnText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.btnText); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_qoo67v_k$(encoder, value instanceof KCodeParagraph ? value : THROW_CCE()); + } + } + class KCodeParagraph { + constructor(codeLang, codeContent, popupLink, barIcon, barNotice, btnText) { + Companion_instance_1185; + codeLang = codeLang === VOID ? '' : codeLang; + codeContent = codeContent === VOID ? '' : codeContent; + popupLink = popupLink === VOID ? '' : popupLink; + barIcon = barIcon === VOID ? '' : barIcon; + barNotice = barNotice === VOID ? '' : barNotice; + btnText = btnText === VOID ? '' : btnText; + this.codeLang = codeLang; + this.codeContent = codeContent; + this.popupLink = popupLink; + this.barIcon = barIcon; + this.barNotice = barNotice; + this.btnText = btnText; + } + get_codeLang_ov99ok_k$() { + return this.codeLang; + } + get_codeContent_eo3mub_k$() { + return this.codeContent; + } + get_popupLink_1ogxr7_k$() { + return this.popupLink; + } + get_barIcon_49iri5_k$() { + return this.barIcon; + } + get_barNotice_o6js4i_k$() { + return this.barNotice; + } + get_btnText_4oby68_k$() { + return this.btnText; + } + component1_7eebsc_k$() { + return this.codeLang; + } + component2_7eebsb_k$() { + return this.codeContent; + } + component3_7eebsa_k$() { + return this.popupLink; + } + component4_7eebs9_k$() { + return this.barIcon; + } + component5_7eebs8_k$() { + return this.barNotice; + } + component6_7eebs7_k$() { + return this.btnText; + } + copy_sq36gl_k$(codeLang, codeContent, popupLink, barIcon, barNotice, btnText) { + return new KCodeParagraph(codeLang, codeContent, popupLink, barIcon, barNotice, btnText); + } + copy(codeLang, codeContent, popupLink, barIcon, barNotice, btnText, $super) { + codeLang = codeLang === VOID ? this.codeLang : codeLang; + codeContent = codeContent === VOID ? this.codeContent : codeContent; + popupLink = popupLink === VOID ? this.popupLink : popupLink; + barIcon = barIcon === VOID ? this.barIcon : barIcon; + barNotice = barNotice === VOID ? this.barNotice : barNotice; + btnText = btnText === VOID ? this.btnText : btnText; + return this.copy_sq36gl_k$(codeLang, codeContent, popupLink, barIcon, barNotice, btnText); + } + toString() { + return 'KCodeParagraph(codeLang=' + this.codeLang + ', codeContent=' + this.codeContent + ', popupLink=' + this.popupLink + ', barIcon=' + this.barIcon + ', barNotice=' + this.barNotice + ', btnText=' + this.btnText + ')'; + } + hashCode() { + var result = getStringHashCode(this.codeLang); + result = imul(result, 31) + getStringHashCode(this.codeContent) | 0; + result = imul(result, 31) + getStringHashCode(this.popupLink) | 0; + result = imul(result, 31) + getStringHashCode(this.barIcon) | 0; + result = imul(result, 31) + getStringHashCode(this.barNotice) | 0; + result = imul(result, 31) + getStringHashCode(this.btnText) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KCodeParagraph)) + return false; + var tmp0_other_with_cast = other instanceof KCodeParagraph ? other : THROW_CCE(); + if (!(this.codeLang === tmp0_other_with_cast.codeLang)) + return false; + if (!(this.codeContent === tmp0_other_with_cast.codeContent)) + return false; + if (!(this.popupLink === tmp0_other_with_cast.popupLink)) + return false; + if (!(this.barIcon === tmp0_other_with_cast.barIcon)) + return false; + if (!(this.barNotice === tmp0_other_with_cast.barNotice)) + return false; + if (!(this.btnText === tmp0_other_with_cast.btnText)) + return false; + return true; + } + static new_com_bapis_bilibili_app_dynamic_v2_KCodeParagraph_lj3dal_k$(seen1, codeLang, codeContent, popupLink, barIcon, barNotice, btnText, serializationConstructorMarker) { + Companion_instance_1185; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1172().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.codeLang = ''; + else + $this.codeLang = codeLang; + if (0 === (seen1 & 2)) + $this.codeContent = ''; + else + $this.codeContent = codeContent; + if (0 === (seen1 & 4)) + $this.popupLink = ''; + else + $this.popupLink = popupLink; + if (0 === (seen1 & 8)) + $this.barIcon = ''; + else + $this.barIcon = barIcon; + if (0 === (seen1 & 16)) + $this.barNotice = ''; + else + $this.barNotice = barNotice; + if (0 === (seen1 & 32)) + $this.btnText = ''; + else + $this.btnText = btnText; + return $this; + } + } + class Companion_1186 { + constructor() { + Companion_instance_1186 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KHistorySource$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KHistorySource$Companion$_anonymous__re98yd); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_146(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.interfaces.v1.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KHistorySource_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.interfaces.v1.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KHistorySource with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_146(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_1173 { + constructor() { + $serializer_instance_1173 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.interfaces.v1.KHistorySource', 3); + tmp0_serialDesc.addElement_5pzumi_k$('HISTORY', false); + tmp0_serialDesc.addElement_5pzumi_k$('SHOPPING', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_146()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_4k552u_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_4k552u_k$(encoder, value instanceof KHistorySource ? value : THROW_CCE()); + } + } + class KHistorySource extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_1187 { + constructor() { + Companion_instance_1187 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KDT$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KDT$Companion$_anonymous__b5retw); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_147(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.interfaces.v1.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KDT_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.interfaces.v1.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KDT with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_147(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_1174 { + constructor() { + $serializer_instance_1174 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.interfaces.v1.KDT', 9); + tmp0_serialDesc.addElement_5pzumi_k$('UNKNOWN', false); + tmp0_serialDesc.addElement_5pzumi_k$('PHONE', false); + tmp0_serialDesc.addElement_5pzumi_k$('PAD', false); + tmp0_serialDesc.addElement_5pzumi_k$('PC', false); + tmp0_serialDesc.addElement_5pzumi_k$('TV', false); + tmp0_serialDesc.addElement_5pzumi_k$('CAR', false); + tmp0_serialDesc.addElement_5pzumi_k$('IOT', false); + tmp0_serialDesc.addElement_5pzumi_k$('AND_PAD', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_147()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_2xcpdr_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_2xcpdr_k$(encoder, value instanceof KDT ? value : THROW_CCE()); + } + } + class KDT extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_1188 { + constructor() { + this.targetPath = '/bilibili.app.interface.v1.HistoryTabReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1175(); + } + } + class $serializer_1175 { + constructor() { + $serializer_instance_1175 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.interfaces.v1.KHistoryTabReq', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('business', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('source', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('keyword', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = 0; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KHistoryTabReq.new_com_bapis_bilibili_app_interfaces_v1_KHistoryTabReq_xhkfxz_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_r1e57l_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.business === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.business); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.source === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.source); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.keyword === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.keyword); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_r1e57l_k$(encoder, value instanceof KHistoryTabReq ? value : THROW_CCE()); + } + } + class KHistoryTabReq { + constructor(business, source, keyword) { + Companion_instance_1188; + business = business === VOID ? '' : business; + source = source === VOID ? 0 : source; + keyword = keyword === VOID ? '' : keyword; + this.business = business; + this.source = source; + this.keyword = keyword; + } + get_business_k9dqx5_k$() { + return this.business; + } + get_source_jl0x7o_k$() { + return this.source; + } + get_keyword_c7bncw_k$() { + return this.keyword; + } + sourceEnum() { + return Companion_getInstance_1186().fromValue(this.source); + } + component1_7eebsc_k$() { + return this.business; + } + component2_7eebsb_k$() { + return this.source; + } + component3_7eebsa_k$() { + return this.keyword; + } + copy_astfsp_k$(business, source, keyword) { + return new KHistoryTabReq(business, source, keyword); + } + copy(business, source, keyword, $super) { + business = business === VOID ? this.business : business; + source = source === VOID ? this.source : source; + keyword = keyword === VOID ? this.keyword : keyword; + return this.copy_astfsp_k$(business, source, keyword); + } + toString() { + return 'KHistoryTabReq(business=' + this.business + ', source=' + this.source + ', keyword=' + this.keyword + ')'; + } + hashCode() { + var result = getStringHashCode(this.business); + result = imul(result, 31) + this.source | 0; + result = imul(result, 31) + getStringHashCode(this.keyword) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KHistoryTabReq)) + return false; + var tmp0_other_with_cast = other instanceof KHistoryTabReq ? other : THROW_CCE(); + if (!(this.business === tmp0_other_with_cast.business)) + return false; + if (!(this.source === tmp0_other_with_cast.source)) + return false; + if (!(this.keyword === tmp0_other_with_cast.keyword)) + return false; + return true; + } + static new_com_bapis_bilibili_app_interfaces_v1_KHistoryTabReq_xhkfxz_k$(seen1, business, source, keyword, serializationConstructorMarker) { + Companion_instance_1188; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1175().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.business = ''; + else + $this.business = business; + if (0 === (seen1 & 2)) + $this.source = 0; + else + $this.source = source; + if (0 === (seen1 & 4)) + $this.keyword = ''; + else + $this.keyword = keyword; + return $this; + } + } + class Companion_1189 { + constructor() { + Companion_instance_1189 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer($serializer_getInstance_1187())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.interface.v1.HistoryTabReply'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1176(); + } + } + class $serializer_1176 { + constructor() { + $serializer_instance_1176 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.interfaces.v1.KHistoryTabReply', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('tab', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_1189().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp6_cached = Companion_getInstance_1189().$childSerializers_1; + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KHistoryTabReply.new_com_bapis_bilibili_app_interfaces_v1_KHistoryTabReply_a673kk_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_sktb85_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_1189().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.tab, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.tab); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_sktb85_k$(encoder, value instanceof KHistoryTabReply ? value : THROW_CCE()); + } + } + class KHistoryTabReply { + constructor(tab) { + Companion_getInstance_1189(); + tab = tab === VOID ? emptyList() : tab; + this.tab = tab; + } + get_tab_18ivo4_k$() { + return this.tab; + } + component1_7eebsc_k$() { + return this.tab; + } + copy_uvnl45_k$(tab) { + return new KHistoryTabReply(tab); + } + copy(tab, $super) { + tab = tab === VOID ? this.tab : tab; + return this.copy_uvnl45_k$(tab); + } + toString() { + return 'KHistoryTabReply(tab=' + this.tab + ')'; + } + hashCode() { + return hashCode(this.tab); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KHistoryTabReply)) + return false; + var tmp0_other_with_cast = other instanceof KHistoryTabReply ? other : THROW_CCE(); + if (!equals(this.tab, tmp0_other_with_cast.tab)) + return false; + return true; + } + static new_com_bapis_bilibili_app_interfaces_v1_KHistoryTabReply_a673kk_k$(seen1, tab, serializationConstructorMarker) { + Companion_getInstance_1189(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1176().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.tab = emptyList(); + else + $this.tab = tab; + return $this; + } + } + class Companion_1190 { + constructor() { + this.targetPath = '/bilibili.app.interface.v1.CursorReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1177(); + } + } + class $serializer_1177 { + constructor() { + $serializer_instance_1177 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.interfaces.v1.KCursorReq', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('cursor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('business', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('playerPreload', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('playerArgs', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_1188()), StringSerializer_getInstance(), get_nullable($serializer_getInstance_1197()), get_nullable($serializer_getInstance_152())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_1188(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_1197(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_152(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_1188(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_1197(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_152(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KCursorReq.new_com_bapis_bilibili_app_interfaces_v1_KCursorReq_bj2r7o_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_rlmpau_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.cursor == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_1188(), value.cursor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.business === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.business); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.playerPreload == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_1197(), value.playerPreload); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.playerArgs == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_152(), value.playerArgs); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_rlmpau_k$(encoder, value instanceof KCursorReq ? value : THROW_CCE()); + } + } + class KCursorReq { + constructor(cursor, business, playerPreload, playerArgs) { + Companion_instance_1190; + cursor = cursor === VOID ? null : cursor; + business = business === VOID ? '' : business; + playerPreload = playerPreload === VOID ? null : playerPreload; + playerArgs = playerArgs === VOID ? null : playerArgs; + this.cursor = cursor; + this.business = business; + this.playerPreload = playerPreload; + this.playerArgs = playerArgs; + } + get_cursor_c3jujj_k$() { + return this.cursor; + } + get_business_k9dqx5_k$() { + return this.business; + } + get_playerPreload_xmyji9_k$() { + return this.playerPreload; + } + get_playerArgs_eh86hz_k$() { + return this.playerArgs; + } + component1_7eebsc_k$() { + return this.cursor; + } + component2_7eebsb_k$() { + return this.business; + } + component3_7eebsa_k$() { + return this.playerPreload; + } + component4_7eebs9_k$() { + return this.playerArgs; + } + copy_he2hnm_k$(cursor, business, playerPreload, playerArgs) { + return new KCursorReq(cursor, business, playerPreload, playerArgs); + } + copy(cursor, business, playerPreload, playerArgs, $super) { + cursor = cursor === VOID ? this.cursor : cursor; + business = business === VOID ? this.business : business; + playerPreload = playerPreload === VOID ? this.playerPreload : playerPreload; + playerArgs = playerArgs === VOID ? this.playerArgs : playerArgs; + return this.copy_he2hnm_k$(cursor, business, playerPreload, playerArgs); + } + toString() { + return 'KCursorReq(cursor=' + this.cursor + ', business=' + this.business + ', playerPreload=' + this.playerPreload + ', playerArgs=' + this.playerArgs + ')'; + } + hashCode() { + var result = this.cursor == null ? 0 : this.cursor.hashCode(); + result = imul(result, 31) + getStringHashCode(this.business) | 0; + result = imul(result, 31) + (this.playerPreload == null ? 0 : this.playerPreload.hashCode()) | 0; + result = imul(result, 31) + (this.playerArgs == null ? 0 : this.playerArgs.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KCursorReq)) + return false; + var tmp0_other_with_cast = other instanceof KCursorReq ? other : THROW_CCE(); + if (!equals(this.cursor, tmp0_other_with_cast.cursor)) + return false; + if (!(this.business === tmp0_other_with_cast.business)) + return false; + if (!equals(this.playerPreload, tmp0_other_with_cast.playerPreload)) + return false; + if (!equals(this.playerArgs, tmp0_other_with_cast.playerArgs)) + return false; + return true; + } + static new_com_bapis_bilibili_app_interfaces_v1_KCursorReq_bj2r7o_k$(seen1, cursor, business, playerPreload, playerArgs, serializationConstructorMarker) { + Companion_instance_1190; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1177().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.cursor = null; + else + $this.cursor = cursor; + if (0 === (seen1 & 2)) + $this.business = ''; + else + $this.business = business; + if (0 === (seen1 & 4)) + $this.playerPreload = null; + else + $this.playerPreload = playerPreload; + if (0 === (seen1 & 8)) + $this.playerArgs = null; + else + $this.playerArgs = playerArgs; + return $this; + } + } + class Companion_1191 { + constructor() { + Companion_instance_1191 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer($serializer_getInstance_1181()), new ArrayListSerializer($serializer_getInstance_1187()), null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.interface.v1.CursorReply'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1178(); + } + } + class $serializer_1178 { + constructor() { + $serializer_instance_1178 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.interfaces.v1.KCursorReply', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('items', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('tab', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('cursor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('hasMore', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_1191().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0], tmp0_cached[1], get_nullable($serializer_getInstance_1188()), BooleanSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = false; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp9_cached = Companion_getInstance_1191().$childSerializers_1; + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp9_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp9_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_1188(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp9_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp9_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_1188(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KCursorReply.new_com_bapis_bilibili_app_interfaces_v1_KCursorReply_bgeujb_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_kd66i_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_1191().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.items, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.items); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !equals(value.tab, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 1, tmp2_cached[1], value.tab); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.cursor == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_1188(), value.cursor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.hasMore === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 3, value.hasMore); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_kd66i_k$(encoder, value instanceof KCursorReply ? value : THROW_CCE()); + } + } + class KCursorReply { + constructor(items, tab, cursor, hasMore) { + Companion_getInstance_1191(); + items = items === VOID ? emptyList() : items; + tab = tab === VOID ? emptyList() : tab; + cursor = cursor === VOID ? null : cursor; + hasMore = hasMore === VOID ? false : hasMore; + this.items = items; + this.tab = tab; + this.cursor = cursor; + this.hasMore = hasMore; + } + get_items_it823b_k$() { + return this.items; + } + get_tab_18ivo4_k$() { + return this.tab; + } + get_cursor_c3jujj_k$() { + return this.cursor; + } + get_hasMore_csdhd2_k$() { + return this.hasMore; + } + component1_7eebsc_k$() { + return this.items; + } + component2_7eebsb_k$() { + return this.tab; + } + component3_7eebsa_k$() { + return this.cursor; + } + component4_7eebs9_k$() { + return this.hasMore; + } + copy_tnjygg_k$(items, tab, cursor, hasMore) { + return new KCursorReply(items, tab, cursor, hasMore); + } + copy(items, tab, cursor, hasMore, $super) { + items = items === VOID ? this.items : items; + tab = tab === VOID ? this.tab : tab; + cursor = cursor === VOID ? this.cursor : cursor; + hasMore = hasMore === VOID ? this.hasMore : hasMore; + return this.copy_tnjygg_k$(items, tab, cursor, hasMore); + } + toString() { + return 'KCursorReply(items=' + this.items + ', tab=' + this.tab + ', cursor=' + this.cursor + ', hasMore=' + this.hasMore + ')'; + } + hashCode() { + var result = hashCode(this.items); + result = imul(result, 31) + hashCode(this.tab) | 0; + result = imul(result, 31) + (this.cursor == null ? 0 : this.cursor.hashCode()) | 0; + result = imul(result, 31) + getBooleanHashCode(this.hasMore) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KCursorReply)) + return false; + var tmp0_other_with_cast = other instanceof KCursorReply ? other : THROW_CCE(); + if (!equals(this.items, tmp0_other_with_cast.items)) + return false; + if (!equals(this.tab, tmp0_other_with_cast.tab)) + return false; + if (!equals(this.cursor, tmp0_other_with_cast.cursor)) + return false; + if (!(this.hasMore === tmp0_other_with_cast.hasMore)) + return false; + return true; + } + static new_com_bapis_bilibili_app_interfaces_v1_KCursorReply_bgeujb_k$(seen1, items, tab, cursor, hasMore, serializationConstructorMarker) { + Companion_getInstance_1191(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1178().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.items = emptyList(); + else + $this.items = items; + if (0 === (seen1 & 2)) + $this.tab = emptyList(); + else + $this.tab = tab; + if (0 === (seen1 & 4)) + $this.cursor = null; + else + $this.cursor = cursor; + if (0 === (seen1 & 8)) + $this.hasMore = false; + else + $this.hasMore = hasMore; + return $this; + } + } + class Companion_1192 { + constructor() { + this.targetPath = '/bilibili.app.interface.v1.CursorV2Req'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1179(); + } + } + class $serializer_1179 { + constructor() { + $serializer_instance_1179 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.interfaces.v1.KCursorV2Req', this, 5); + tmp0_serialDesc.addElement_5pzumi_k$('cursor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('business', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('playerPreload', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('playerArgs', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('isLocal', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_1188()), StringSerializer_getInstance(), get_nullable($serializer_getInstance_1197()), get_nullable($serializer_getInstance_152()), BooleanSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = false; + var tmp9_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp9_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_1188(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_1197(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_152(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp9_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + } else + while (tmp1_flag) { + tmp2_index = tmp9_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_1188(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_1197(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_152(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp9_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp9_input.endStructure_1xqz0n_k$(tmp0_desc); + return KCursorV2Req.new_com_bapis_bilibili_app_interfaces_v1_KCursorV2Req_bjeoa3_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); + } + serialize_grzg8i_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.cursor == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_1188(), value.cursor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.business === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.business); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.playerPreload == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_1197(), value.playerPreload); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.playerArgs == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_152(), value.playerArgs); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.isLocal === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 4, value.isLocal); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_grzg8i_k$(encoder, value instanceof KCursorV2Req ? value : THROW_CCE()); + } + } + class KCursorV2Req { + constructor(cursor, business, playerPreload, playerArgs, isLocal) { + Companion_instance_1192; + cursor = cursor === VOID ? null : cursor; + business = business === VOID ? '' : business; + playerPreload = playerPreload === VOID ? null : playerPreload; + playerArgs = playerArgs === VOID ? null : playerArgs; + isLocal = isLocal === VOID ? false : isLocal; + this.cursor = cursor; + this.business = business; + this.playerPreload = playerPreload; + this.playerArgs = playerArgs; + this.isLocal = isLocal; + } + get_cursor_c3jujj_k$() { + return this.cursor; + } + get_business_k9dqx5_k$() { + return this.business; + } + get_playerPreload_xmyji9_k$() { + return this.playerPreload; + } + get_playerArgs_eh86hz_k$() { + return this.playerArgs; + } + get_isLocal_zeqfso_k$() { + return this.isLocal; + } + component1_7eebsc_k$() { + return this.cursor; + } + component2_7eebsb_k$() { + return this.business; + } + component3_7eebsa_k$() { + return this.playerPreload; + } + component4_7eebs9_k$() { + return this.playerArgs; + } + component5_7eebs8_k$() { + return this.isLocal; + } + copy_twjcjr_k$(cursor, business, playerPreload, playerArgs, isLocal) { + return new KCursorV2Req(cursor, business, playerPreload, playerArgs, isLocal); + } + copy(cursor, business, playerPreload, playerArgs, isLocal, $super) { + cursor = cursor === VOID ? this.cursor : cursor; + business = business === VOID ? this.business : business; + playerPreload = playerPreload === VOID ? this.playerPreload : playerPreload; + playerArgs = playerArgs === VOID ? this.playerArgs : playerArgs; + isLocal = isLocal === VOID ? this.isLocal : isLocal; + return this.copy_twjcjr_k$(cursor, business, playerPreload, playerArgs, isLocal); + } + toString() { + return 'KCursorV2Req(cursor=' + this.cursor + ', business=' + this.business + ', playerPreload=' + this.playerPreload + ', playerArgs=' + this.playerArgs + ', isLocal=' + this.isLocal + ')'; + } + hashCode() { + var result = this.cursor == null ? 0 : this.cursor.hashCode(); + result = imul(result, 31) + getStringHashCode(this.business) | 0; + result = imul(result, 31) + (this.playerPreload == null ? 0 : this.playerPreload.hashCode()) | 0; + result = imul(result, 31) + (this.playerArgs == null ? 0 : this.playerArgs.hashCode()) | 0; + result = imul(result, 31) + getBooleanHashCode(this.isLocal) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KCursorV2Req)) + return false; + var tmp0_other_with_cast = other instanceof KCursorV2Req ? other : THROW_CCE(); + if (!equals(this.cursor, tmp0_other_with_cast.cursor)) + return false; + if (!(this.business === tmp0_other_with_cast.business)) + return false; + if (!equals(this.playerPreload, tmp0_other_with_cast.playerPreload)) + return false; + if (!equals(this.playerArgs, tmp0_other_with_cast.playerArgs)) + return false; + if (!(this.isLocal === tmp0_other_with_cast.isLocal)) + return false; + return true; + } + static new_com_bapis_bilibili_app_interfaces_v1_KCursorV2Req_bjeoa3_k$(seen1, cursor, business, playerPreload, playerArgs, isLocal, serializationConstructorMarker) { + Companion_instance_1192; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1179().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.cursor = null; + else + $this.cursor = cursor; + if (0 === (seen1 & 2)) + $this.business = ''; + else + $this.business = business; + if (0 === (seen1 & 4)) + $this.playerPreload = null; + else + $this.playerPreload = playerPreload; + if (0 === (seen1 & 8)) + $this.playerArgs = null; + else + $this.playerArgs = playerArgs; + if (0 === (seen1 & 16)) + $this.isLocal = false; + else + $this.isLocal = isLocal; + return $this; + } + } + class Companion_1193 { + constructor() { + Companion_instance_1193 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer($serializer_getInstance_1181()), null, null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.interface.v1.CursorV2Reply'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1180(); + } + } + class $serializer_1180 { + constructor() { + $serializer_instance_1180 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.interfaces.v1.KCursorV2Reply', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('items', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('cursor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('hasMore', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('emptyLink', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_1193().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0], get_nullable($serializer_getInstance_1188()), BooleanSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = false; + var tmp7_local3 = null; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp9_cached = Companion_getInstance_1193().$childSerializers_1; + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp9_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_1188(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp9_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_1188(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KCursorV2Reply.new_com_bapis_bilibili_app_interfaces_v1_KCursorV2Reply_401dml_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_uavspm_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_1193().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.items, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.items); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.cursor == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_1188(), value.cursor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.hasMore === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 2, value.hasMore); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.emptyLink === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.emptyLink); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_uavspm_k$(encoder, value instanceof KCursorV2Reply ? value : THROW_CCE()); + } + } + class KCursorV2Reply { + constructor(items, cursor, hasMore, emptyLink) { + Companion_getInstance_1193(); + items = items === VOID ? emptyList() : items; + cursor = cursor === VOID ? null : cursor; + hasMore = hasMore === VOID ? false : hasMore; + emptyLink = emptyLink === VOID ? '' : emptyLink; + this.items = items; + this.cursor = cursor; + this.hasMore = hasMore; + this.emptyLink = emptyLink; + } + get_items_it823b_k$() { + return this.items; + } + get_cursor_c3jujj_k$() { + return this.cursor; + } + get_hasMore_csdhd2_k$() { + return this.hasMore; + } + get_emptyLink_ez1c5e_k$() { + return this.emptyLink; + } + component1_7eebsc_k$() { + return this.items; + } + component2_7eebsb_k$() { + return this.cursor; + } + component3_7eebsa_k$() { + return this.hasMore; + } + component4_7eebs9_k$() { + return this.emptyLink; + } + copy_3i1y40_k$(items, cursor, hasMore, emptyLink) { + return new KCursorV2Reply(items, cursor, hasMore, emptyLink); + } + copy(items, cursor, hasMore, emptyLink, $super) { + items = items === VOID ? this.items : items; + cursor = cursor === VOID ? this.cursor : cursor; + hasMore = hasMore === VOID ? this.hasMore : hasMore; + emptyLink = emptyLink === VOID ? this.emptyLink : emptyLink; + return this.copy_3i1y40_k$(items, cursor, hasMore, emptyLink); + } + toString() { + return 'KCursorV2Reply(items=' + this.items + ', cursor=' + this.cursor + ', hasMore=' + this.hasMore + ', emptyLink=' + this.emptyLink + ')'; + } + hashCode() { + var result = hashCode(this.items); + result = imul(result, 31) + (this.cursor == null ? 0 : this.cursor.hashCode()) | 0; + result = imul(result, 31) + getBooleanHashCode(this.hasMore) | 0; + result = imul(result, 31) + getStringHashCode(this.emptyLink) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KCursorV2Reply)) + return false; + var tmp0_other_with_cast = other instanceof KCursorV2Reply ? other : THROW_CCE(); + if (!equals(this.items, tmp0_other_with_cast.items)) + return false; + if (!equals(this.cursor, tmp0_other_with_cast.cursor)) + return false; + if (!(this.hasMore === tmp0_other_with_cast.hasMore)) + return false; + if (!(this.emptyLink === tmp0_other_with_cast.emptyLink)) + return false; + return true; + } + static new_com_bapis_bilibili_app_interfaces_v1_KCursorV2Reply_401dml_k$(seen1, items, cursor, hasMore, emptyLink, serializationConstructorMarker) { + Companion_getInstance_1193(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1180().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.items = emptyList(); + else + $this.items = items; + if (0 === (seen1 & 2)) + $this.cursor = null; + else + $this.cursor = cursor; + if (0 === (seen1 & 4)) + $this.hasMore = false; + else + $this.hasMore = hasMore; + if (0 === (seen1 & 8)) + $this.emptyLink = ''; + else + $this.emptyLink = emptyLink; + return $this; + } + } + class KCardItem_0 { + constructor(value) { + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + } + class KCardUgc extends KCardItem_0 { + constructor() { + KCardUgc_instance = null; + super(0); + KCardUgc_instance = this; + } + } + class KCardOgv extends KCardItem_0 { + constructor() { + KCardOgv_instance = null; + super(1); + KCardOgv_instance = this; + } + } + class KCardArticle extends KCardItem_0 { + constructor() { + KCardArticle_instance = null; + super(2); + KCardArticle_instance = this; + } + } + class KCardLive extends KCardItem_0 { + constructor() { + KCardLive_instance = null; + super(3); + KCardLive_instance = this; + } + } + class KCardCheese extends KCardItem_0 { + constructor() { + KCardCheese_instance = null; + super(4); + KCardCheese_instance = this; + } + } + class Companion_1194 { + constructor() { + Companion_instance_1194 = this; + var tmp = this; + tmp.cardItemValues$delegate_1 = lazy_0(KCursorItem$Companion$cardItemValues$delegate$lambda); + this.targetPath = '/bilibili.app.interface.v1.CursorItem'; + } + get_cardItemValues_jn6w1e_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.cardItemValues$delegate_1; + var thisRef = this; + var property = cardItemValues$factory_0(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1181(); + } + get cardItemValues() { + return this.get_cardItemValues_jn6w1e_k$(); + } + } + class $serializer_1181 { + constructor() { + $serializer_instance_1181 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.interfaces.v1.KCursorItem', this, 14); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('uri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('viewAt', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('kid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('oid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('business', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('tp', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + tmp0_serialDesc.addElement_5pzumi_k$('dt', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(13)); + tmp0_serialDesc.addElement_5pzumi_k$('hasShare', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(14)); + tmp0_serialDesc.addElement_5pzumi_k$('cardUgc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('cardOgv', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('cardArticle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('cardLive', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('cardCheese', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), get_nullable($serializer_getInstance_1192()), BooleanSerializer_getInstance(), get_nullable($serializer_getInstance_1182()), get_nullable($serializer_getInstance_1183()), get_nullable($serializer_getInstance_1184()), get_nullable($serializer_getInstance_1185()), get_nullable($serializer_getInstance_1186())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = new Long(0, 0); + var tmp7_local3 = new Long(0, 0); + var tmp8_local4 = new Long(0, 0); + var tmp9_local5 = null; + var tmp10_local6 = 0; + var tmp11_local7 = null; + var tmp12_local8 = false; + var tmp13_local9 = null; + var tmp14_local10 = null; + var tmp15_local11 = null; + var tmp16_local12 = null; + var tmp17_local13 = null; + var tmp18_transient0 = 0; + var tmp19_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp19_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp19_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp19_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp19_input.decodeLongElement_994anb_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp19_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp19_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_1192(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp19_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp19_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 9, $serializer_getInstance_1182(), tmp13_local9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp19_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 10, $serializer_getInstance_1183(), tmp14_local10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp19_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 11, $serializer_getInstance_1184(), tmp15_local11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + tmp16_local12 = tmp19_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 12, $serializer_getInstance_1185(), tmp16_local12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + tmp17_local13 = tmp19_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 13, $serializer_getInstance_1186(), tmp17_local13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + } else + while (tmp1_flag) { + tmp2_index = tmp19_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp19_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp19_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp19_input.decodeLongElement_994anb_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp19_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp19_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp19_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_1192(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp19_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp19_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 9, $serializer_getInstance_1182(), tmp13_local9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp19_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 10, $serializer_getInstance_1183(), tmp14_local10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp19_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 11, $serializer_getInstance_1184(), tmp15_local11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + case 12: + tmp16_local12 = tmp19_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 12, $serializer_getInstance_1185(), tmp16_local12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + break; + case 13: + tmp17_local13 = tmp19_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 13, $serializer_getInstance_1186(), tmp17_local13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp19_input.endStructure_1xqz0n_k$(tmp0_desc); + return KCursorItem.new_com_bapis_bilibili_app_interfaces_v1_KCursorItem_94w3r1_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, null); + } + serialize_pz6ysf_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.uri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.uri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.viewAt.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.viewAt); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !value.kid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 3, value.kid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !value.oid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 4, value.oid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.business === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.business); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.tp === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 6, value.tp); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.dt == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 7, $serializer_getInstance_1192(), value.dt); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.hasShare === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 8, value.hasShare); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.cardUgc_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 9, $serializer_getInstance_1182(), value.cardUgc_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.cardOgv_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 10, $serializer_getInstance_1183(), value.cardOgv_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.cardArticle_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 11, $serializer_getInstance_1184(), value.cardArticle_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !(value.cardLive_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 12, $serializer_getInstance_1185(), value.cardLive_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 13) ? true : !(value.cardCheese_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 13, $serializer_getInstance_1186(), value.cardCheese_1); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_pz6ysf_k$(encoder, value instanceof KCursorItem ? value : THROW_CCE()); + } + } + class KCursorItem { + constructor(title, uri, viewAt, kid, oid, business, tp, dt, hasShare, cardUgc, cardOgv, cardArticle, cardLive, cardCheese) { + Companion_getInstance_1194(); + title = title === VOID ? '' : title; + uri = uri === VOID ? '' : uri; + viewAt = viewAt === VOID ? new Long(0, 0) : viewAt; + kid = kid === VOID ? new Long(0, 0) : kid; + oid = oid === VOID ? new Long(0, 0) : oid; + business = business === VOID ? '' : business; + tp = tp === VOID ? 0 : tp; + dt = dt === VOID ? null : dt; + hasShare = hasShare === VOID ? false : hasShare; + cardUgc = cardUgc === VOID ? null : cardUgc; + cardOgv = cardOgv === VOID ? null : cardOgv; + cardArticle = cardArticle === VOID ? null : cardArticle; + cardLive = cardLive === VOID ? null : cardLive; + cardCheese = cardCheese === VOID ? null : cardCheese; + this.title = title; + this.uri = uri; + this.viewAt = viewAt; + this.kid = kid; + this.oid = oid; + this.business = business; + this.tp = tp; + this.dt = dt; + this.hasShare = hasShare; + this.cardUgc_1 = cardUgc; + this.cardOgv_1 = cardOgv; + this.cardArticle_1 = cardArticle; + this.cardLive_1 = cardLive; + this.cardCheese_1 = cardCheese; + var tmp = this; + tmp.cardItemNumber$delegate_1 = lazy_0(KCursorItem$cardItemNumber$delegate$lambda(this)); + } + get_title_iz32un_k$() { + return this.title; + } + get_uri_18iuil_k$() { + return this.uri; + } + get_viewAt_kwkvy9_k$() { + return this.viewAt; + } + get_kid_18j25f_k$() { + return this.kid; + } + get_oid_18iz6n_k$() { + return this.oid; + } + get_business_k9dqx5_k$() { + return this.business; + } + get_tp_kntnnf_k$() { + return this.tp; + } + get_dt_knto13_k$() { + return this.dt; + } + get_hasShare_tnwf6a_k$() { + return this.hasShare; + } + cardItemValue() { + if (!(this.cardUgc_1 == null)) { + var tmp = this.cardUgc_1; + return (tmp == null ? true : !(tmp == null)) ? tmp : null; + } else if (!(this.cardOgv_1 == null)) { + var tmp_0 = this.cardOgv_1; + return (tmp_0 == null ? true : !(tmp_0 == null)) ? tmp_0 : null; + } else if (!(this.cardArticle_1 == null)) { + var tmp_1 = this.cardArticle_1; + return (tmp_1 == null ? true : !(tmp_1 == null)) ? tmp_1 : null; + } else if (!(this.cardLive_1 == null)) { + var tmp_2 = this.cardLive_1; + return (tmp_2 == null ? true : !(tmp_2 == null)) ? tmp_2 : null; + } else if (!(this.cardCheese_1 == null)) { + var tmp_3 = this.cardCheese_1; + return (tmp_3 == null ? true : !(tmp_3 == null)) ? tmp_3 : null; + } else { + return null; + } + } + cardItemTypeJs() { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = Companion_getInstance_1194().cardItemValues; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.interfaces.v1.KCursorItem.cardItemType.' call + var it = element; + tmp$ret$0 = it.value === _get_cardItemNumber__9vvfof_0(this); + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + return tmp$ret$1; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.uri; + } + component3_7eebsa_k$() { + return this.viewAt; + } + component4_7eebs9_k$() { + return this.kid; + } + component5_7eebs8_k$() { + return this.oid; + } + component6_7eebs7_k$() { + return this.business; + } + component7_7eebs6_k$() { + return this.tp; + } + component8_7eebs5_k$() { + return this.dt; + } + component9_7eebs4_k$() { + return this.hasShare; + } + copy_gacvyu_k$(title, uri, viewAt, kid, oid, business, tp, dt, hasShare, cardUgc, cardOgv, cardArticle, cardLive, cardCheese) { + return new KCursorItem(title, uri, viewAt, kid, oid, business, tp, dt, hasShare, cardUgc, cardOgv, cardArticle, cardLive, cardCheese); + } + copy(title, uri, viewAt, kid, oid, business, tp, dt, hasShare, cardUgc, cardOgv, cardArticle, cardLive, cardCheese, $super) { + title = title === VOID ? this.title : title; + uri = uri === VOID ? this.uri : uri; + viewAt = viewAt === VOID ? this.viewAt : viewAt; + kid = kid === VOID ? this.kid : kid; + oid = oid === VOID ? this.oid : oid; + business = business === VOID ? this.business : business; + tp = tp === VOID ? this.tp : tp; + dt = dt === VOID ? this.dt : dt; + hasShare = hasShare === VOID ? this.hasShare : hasShare; + cardUgc = cardUgc === VOID ? this.cardUgc_1 : cardUgc; + cardOgv = cardOgv === VOID ? this.cardOgv_1 : cardOgv; + cardArticle = cardArticle === VOID ? this.cardArticle_1 : cardArticle; + cardLive = cardLive === VOID ? this.cardLive_1 : cardLive; + cardCheese = cardCheese === VOID ? this.cardCheese_1 : cardCheese; + return this.copy_gacvyu_k$(title, uri, viewAt, kid, oid, business, tp, dt, hasShare, cardUgc, cardOgv, cardArticle, cardLive, cardCheese); + } + toString() { + return 'KCursorItem(title=' + this.title + ', uri=' + this.uri + ', viewAt=' + this.viewAt.toString() + ', kid=' + this.kid.toString() + ', oid=' + this.oid.toString() + ', business=' + this.business + ', tp=' + this.tp + ', dt=' + this.dt + ', hasShare=' + this.hasShare + ', cardUgc=' + this.cardUgc_1 + ', cardOgv=' + this.cardOgv_1 + ', cardArticle=' + this.cardArticle_1 + ', cardLive=' + this.cardLive_1 + ', cardCheese=' + this.cardCheese_1 + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.uri) | 0; + result = imul(result, 31) + this.viewAt.hashCode() | 0; + result = imul(result, 31) + this.kid.hashCode() | 0; + result = imul(result, 31) + this.oid.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.business) | 0; + result = imul(result, 31) + this.tp | 0; + result = imul(result, 31) + (this.dt == null ? 0 : this.dt.hashCode()) | 0; + result = imul(result, 31) + getBooleanHashCode(this.hasShare) | 0; + result = imul(result, 31) + (this.cardUgc_1 == null ? 0 : this.cardUgc_1.hashCode()) | 0; + result = imul(result, 31) + (this.cardOgv_1 == null ? 0 : this.cardOgv_1.hashCode()) | 0; + result = imul(result, 31) + (this.cardArticle_1 == null ? 0 : this.cardArticle_1.hashCode()) | 0; + result = imul(result, 31) + (this.cardLive_1 == null ? 0 : this.cardLive_1.hashCode()) | 0; + result = imul(result, 31) + (this.cardCheese_1 == null ? 0 : this.cardCheese_1.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KCursorItem)) + return false; + var tmp0_other_with_cast = other instanceof KCursorItem ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.uri === tmp0_other_with_cast.uri)) + return false; + if (!this.viewAt.equals(tmp0_other_with_cast.viewAt)) + return false; + if (!this.kid.equals(tmp0_other_with_cast.kid)) + return false; + if (!this.oid.equals(tmp0_other_with_cast.oid)) + return false; + if (!(this.business === tmp0_other_with_cast.business)) + return false; + if (!(this.tp === tmp0_other_with_cast.tp)) + return false; + if (!equals(this.dt, tmp0_other_with_cast.dt)) + return false; + if (!(this.hasShare === tmp0_other_with_cast.hasShare)) + return false; + if (!equals(this.cardUgc_1, tmp0_other_with_cast.cardUgc_1)) + return false; + if (!equals(this.cardOgv_1, tmp0_other_with_cast.cardOgv_1)) + return false; + if (!equals(this.cardArticle_1, tmp0_other_with_cast.cardArticle_1)) + return false; + if (!equals(this.cardLive_1, tmp0_other_with_cast.cardLive_1)) + return false; + if (!equals(this.cardCheese_1, tmp0_other_with_cast.cardCheese_1)) + return false; + return true; + } + static new_com_bapis_bilibili_app_interfaces_v1_KCursorItem_94w3r1_k$(seen1, title, uri, viewAt, kid, oid, business, tp, dt, hasShare, cardUgc, cardOgv, cardArticle, cardLive, cardCheese, serializationConstructorMarker) { + Companion_getInstance_1194(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1181().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.uri = ''; + else + $this.uri = uri; + if (0 === (seen1 & 4)) + $this.viewAt = new Long(0, 0); + else + $this.viewAt = viewAt; + if (0 === (seen1 & 8)) + $this.kid = new Long(0, 0); + else + $this.kid = kid; + if (0 === (seen1 & 16)) + $this.oid = new Long(0, 0); + else + $this.oid = oid; + if (0 === (seen1 & 32)) + $this.business = ''; + else + $this.business = business; + if (0 === (seen1 & 64)) + $this.tp = 0; + else + $this.tp = tp; + if (0 === (seen1 & 128)) + $this.dt = null; + else + $this.dt = dt; + if (0 === (seen1 & 256)) + $this.hasShare = false; + else + $this.hasShare = hasShare; + if (0 === (seen1 & 512)) + $this.cardUgc_1 = null; + else + $this.cardUgc_1 = cardUgc; + if (0 === (seen1 & 1024)) + $this.cardOgv_1 = null; + else + $this.cardOgv_1 = cardOgv; + if (0 === (seen1 & 2048)) + $this.cardArticle_1 = null; + else + $this.cardArticle_1 = cardArticle; + if (0 === (seen1 & 4096)) + $this.cardLive_1 = null; + else + $this.cardLive_1 = cardLive; + if (0 === (seen1 & 8192)) + $this.cardCheese_1 = null; + else + $this.cardCheese_1 = cardCheese; + var tmp = $this; + tmp.cardItemNumber$delegate_1 = lazy_0(KCursorItem$_init_$lambda_w6vad3($this)); + return $this; + } + } + class Companion_1195 { + constructor() { + this.targetPath = '/bilibili.app.interface.v1.CardUGC'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1182(); + } + } + class $serializer_1182 { + constructor() { + $serializer_instance_1182 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.interfaces.v1.KCardUGC', this, 17); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('progress', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('duration', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('name', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('mid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('displayAttention', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('cid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('page', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('subtitle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('relation', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('bvid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('videos', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + tmp0_serialDesc.addElement_5pzumi_k$('shortLink', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(13)); + tmp0_serialDesc.addElement_5pzumi_k$('shareSubtitle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(14)); + tmp0_serialDesc.addElement_5pzumi_k$('view', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(15)); + tmp0_serialDesc.addElement_5pzumi_k$('state', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(16)); + tmp0_serialDesc.addElement_5pzumi_k$('badge', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(17)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), BooleanSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_1193()), StringSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = new Long(0, 0); + var tmp6_local2 = new Long(0, 0); + var tmp7_local3 = null; + var tmp8_local4 = new Long(0, 0); + var tmp9_local5 = false; + var tmp10_local6 = new Long(0, 0); + var tmp11_local7 = 0; + var tmp12_local8 = null; + var tmp13_local9 = null; + var tmp14_local10 = null; + var tmp15_local11 = new Long(0, 0); + var tmp16_local12 = null; + var tmp17_local13 = null; + var tmp18_local14 = new Long(0, 0); + var tmp19_local15 = new Long(0, 0); + var tmp20_local16 = null; + var tmp21_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp21_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp21_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp21_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp21_input.decodeLongElement_994anb_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp21_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp21_input.decodeLongElement_994anb_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp21_input.decodeIntElement_941u6a_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp21_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 9, $serializer_getInstance_1193(), tmp13_local9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp21_input.decodeLongElement_994anb_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + tmp16_local12 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + tmp17_local13 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + tmp18_local14 = tmp21_input.decodeLongElement_994anb_k$(tmp0_desc, 14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + tmp19_local15 = tmp21_input.decodeLongElement_994anb_k$(tmp0_desc, 15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + tmp20_local16 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 16); + tmp3_bitMask0 = tmp3_bitMask0 | 65536; + } else + while (tmp1_flag) { + tmp2_index = tmp21_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp21_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp21_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp21_input.decodeLongElement_994anb_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp21_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp21_input.decodeLongElement_994anb_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp21_input.decodeIntElement_941u6a_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp21_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 9, $serializer_getInstance_1193(), tmp13_local9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp21_input.decodeLongElement_994anb_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + case 12: + tmp16_local12 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + break; + case 13: + tmp17_local13 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + break; + case 14: + tmp18_local14 = tmp21_input.decodeLongElement_994anb_k$(tmp0_desc, 14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + break; + case 15: + tmp19_local15 = tmp21_input.decodeLongElement_994anb_k$(tmp0_desc, 15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + break; + case 16: + tmp20_local16 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 16); + tmp3_bitMask0 = tmp3_bitMask0 | 65536; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp21_input.endStructure_1xqz0n_k$(tmp0_desc); + return KCardUGC.new_com_bapis_bilibili_app_interfaces_v1_KCardUGC_qx7i7l_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, tmp18_local14, tmp19_local15, tmp20_local16, null); + } + serialize_hu67yb_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.cover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.progress.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.progress); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.duration.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.duration); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.name === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.name); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !value.mid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 4, value.mid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.displayAttention === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 5, value.displayAttention); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !value.cid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 6, value.cid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.page === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 7, value.page); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.subtitle === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 8, value.subtitle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.relation == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 9, $serializer_getInstance_1193(), value.relation); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.bvid === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 10, value.bvid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !value.videos.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 11, value.videos); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !(value.shortLink === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 12, value.shortLink); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 13) ? true : !(value.shareSubtitle === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 13, value.shareSubtitle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 14) ? true : !value.view.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 14, value.view); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 15) ? true : !value.state.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 15, value.state); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 16) ? true : !(value.badge === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 16, value.badge); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_hu67yb_k$(encoder, value instanceof KCardUGC ? value : THROW_CCE()); + } + } + class KCardUGC { + constructor(cover, progress, duration, name, mid, displayAttention, cid, page, subtitle, relation, bvid, videos, shortLink, shareSubtitle, view, state, badge) { + Companion_instance_1195; + cover = cover === VOID ? '' : cover; + progress = progress === VOID ? new Long(0, 0) : progress; + duration = duration === VOID ? new Long(0, 0) : duration; + name = name === VOID ? '' : name; + mid = mid === VOID ? new Long(0, 0) : mid; + displayAttention = displayAttention === VOID ? false : displayAttention; + cid = cid === VOID ? new Long(0, 0) : cid; + page = page === VOID ? 0 : page; + subtitle = subtitle === VOID ? '' : subtitle; + relation = relation === VOID ? null : relation; + bvid = bvid === VOID ? '' : bvid; + videos = videos === VOID ? new Long(0, 0) : videos; + shortLink = shortLink === VOID ? '' : shortLink; + shareSubtitle = shareSubtitle === VOID ? '' : shareSubtitle; + view = view === VOID ? new Long(0, 0) : view; + state = state === VOID ? new Long(0, 0) : state; + badge = badge === VOID ? '' : badge; + this.cover = cover; + this.progress = progress; + this.duration = duration; + this.name = name; + this.mid = mid; + this.displayAttention = displayAttention; + this.cid = cid; + this.page = page; + this.subtitle = subtitle; + this.relation = relation; + this.bvid = bvid; + this.videos = videos; + this.shortLink = shortLink; + this.shareSubtitle = shareSubtitle; + this.view = view; + this.state = state; + this.badge = badge; + } + get_cover_ipug0e_k$() { + return this.cover; + } + get_progress_mo5qeu_k$() { + return this.progress; + } + get_duration_6a6kpp_k$() { + return this.duration; + } + get_name_woqyms_k$() { + return this.name; + } + get_mid_18j0o1_k$() { + return this.mid; + } + get_displayAttention_q2al6j_k$() { + return this.displayAttention; + } + get_cid_18j82z_k$() { + return this.cid; + } + get_page_wos8go_k$() { + return this.page; + } + get_subtitle_55eoyp_k$() { + return this.subtitle; + } + get_relation_u22tol_k$() { + return this.relation; + } + get_bvid_wojq9k_k$() { + return this.bvid; + } + get_videos_kwjwpt_k$() { + return this.videos; + } + get_shortLink_p122oj_k$() { + return this.shortLink; + } + get_shareSubtitle_yf1tri_k$() { + return this.shareSubtitle; + } + get_view_wow8a6_k$() { + return this.view; + } + get_state_iypx7s_k$() { + return this.state; + } + get_badge_ip1cai_k$() { + return this.badge; + } + component1_7eebsc_k$() { + return this.cover; + } + component2_7eebsb_k$() { + return this.progress; + } + component3_7eebsa_k$() { + return this.duration; + } + component4_7eebs9_k$() { + return this.name; + } + component5_7eebs8_k$() { + return this.mid; + } + component6_7eebs7_k$() { + return this.displayAttention; + } + component7_7eebs6_k$() { + return this.cid; + } + component8_7eebs5_k$() { + return this.page; + } + component9_7eebs4_k$() { + return this.subtitle; + } + component10_gazzfo_k$() { + return this.relation; + } + component11_gazzfn_k$() { + return this.bvid; + } + component12_gazzfm_k$() { + return this.videos; + } + component13_gazzfl_k$() { + return this.shortLink; + } + component14_gazzfk_k$() { + return this.shareSubtitle; + } + component15_gazzfj_k$() { + return this.view; + } + component16_gazzfi_k$() { + return this.state; + } + component17_gazzfh_k$() { + return this.badge; + } + copy_l4fxww_k$(cover, progress, duration, name, mid, displayAttention, cid, page, subtitle, relation, bvid, videos, shortLink, shareSubtitle, view, state, badge) { + return new KCardUGC(cover, progress, duration, name, mid, displayAttention, cid, page, subtitle, relation, bvid, videos, shortLink, shareSubtitle, view, state, badge); + } + copy(cover, progress, duration, name, mid, displayAttention, cid, page, subtitle, relation, bvid, videos, shortLink, shareSubtitle, view, state, badge, $super) { + cover = cover === VOID ? this.cover : cover; + progress = progress === VOID ? this.progress : progress; + duration = duration === VOID ? this.duration : duration; + name = name === VOID ? this.name : name; + mid = mid === VOID ? this.mid : mid; + displayAttention = displayAttention === VOID ? this.displayAttention : displayAttention; + cid = cid === VOID ? this.cid : cid; + page = page === VOID ? this.page : page; + subtitle = subtitle === VOID ? this.subtitle : subtitle; + relation = relation === VOID ? this.relation : relation; + bvid = bvid === VOID ? this.bvid : bvid; + videos = videos === VOID ? this.videos : videos; + shortLink = shortLink === VOID ? this.shortLink : shortLink; + shareSubtitle = shareSubtitle === VOID ? this.shareSubtitle : shareSubtitle; + view = view === VOID ? this.view : view; + state = state === VOID ? this.state : state; + badge = badge === VOID ? this.badge : badge; + return this.copy_l4fxww_k$(cover, progress, duration, name, mid, displayAttention, cid, page, subtitle, relation, bvid, videos, shortLink, shareSubtitle, view, state, badge); + } + toString() { + return 'KCardUGC(cover=' + this.cover + ', progress=' + this.progress.toString() + ', duration=' + this.duration.toString() + ', name=' + this.name + ', mid=' + this.mid.toString() + ', displayAttention=' + this.displayAttention + ', cid=' + this.cid.toString() + ', page=' + this.page + ', subtitle=' + this.subtitle + ', relation=' + this.relation + ', bvid=' + this.bvid + ', videos=' + this.videos.toString() + ', shortLink=' + this.shortLink + ', shareSubtitle=' + this.shareSubtitle + ', view=' + this.view.toString() + ', state=' + this.state.toString() + ', badge=' + this.badge + ')'; + } + hashCode() { + var result = getStringHashCode(this.cover); + result = imul(result, 31) + this.progress.hashCode() | 0; + result = imul(result, 31) + this.duration.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.name) | 0; + result = imul(result, 31) + this.mid.hashCode() | 0; + result = imul(result, 31) + getBooleanHashCode(this.displayAttention) | 0; + result = imul(result, 31) + this.cid.hashCode() | 0; + result = imul(result, 31) + this.page | 0; + result = imul(result, 31) + getStringHashCode(this.subtitle) | 0; + result = imul(result, 31) + (this.relation == null ? 0 : this.relation.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.bvid) | 0; + result = imul(result, 31) + this.videos.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.shortLink) | 0; + result = imul(result, 31) + getStringHashCode(this.shareSubtitle) | 0; + result = imul(result, 31) + this.view.hashCode() | 0; + result = imul(result, 31) + this.state.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.badge) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KCardUGC)) + return false; + var tmp0_other_with_cast = other instanceof KCardUGC ? other : THROW_CCE(); + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + if (!this.progress.equals(tmp0_other_with_cast.progress)) + return false; + if (!this.duration.equals(tmp0_other_with_cast.duration)) + return false; + if (!(this.name === tmp0_other_with_cast.name)) + return false; + if (!this.mid.equals(tmp0_other_with_cast.mid)) + return false; + if (!(this.displayAttention === tmp0_other_with_cast.displayAttention)) + return false; + if (!this.cid.equals(tmp0_other_with_cast.cid)) + return false; + if (!(this.page === tmp0_other_with_cast.page)) + return false; + if (!(this.subtitle === tmp0_other_with_cast.subtitle)) + return false; + if (!equals(this.relation, tmp0_other_with_cast.relation)) + return false; + if (!(this.bvid === tmp0_other_with_cast.bvid)) + return false; + if (!this.videos.equals(tmp0_other_with_cast.videos)) + return false; + if (!(this.shortLink === tmp0_other_with_cast.shortLink)) + return false; + if (!(this.shareSubtitle === tmp0_other_with_cast.shareSubtitle)) + return false; + if (!this.view.equals(tmp0_other_with_cast.view)) + return false; + if (!this.state.equals(tmp0_other_with_cast.state)) + return false; + if (!(this.badge === tmp0_other_with_cast.badge)) + return false; + return true; + } + static new_com_bapis_bilibili_app_interfaces_v1_KCardUGC_qx7i7l_k$(seen1, cover, progress, duration, name, mid, displayAttention, cid, page, subtitle, relation, bvid, videos, shortLink, shareSubtitle, view, state, badge, serializationConstructorMarker) { + Companion_instance_1195; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1182().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.cover = ''; + else + $this.cover = cover; + if (0 === (seen1 & 2)) + $this.progress = new Long(0, 0); + else + $this.progress = progress; + if (0 === (seen1 & 4)) + $this.duration = new Long(0, 0); + else + $this.duration = duration; + if (0 === (seen1 & 8)) + $this.name = ''; + else + $this.name = name; + if (0 === (seen1 & 16)) + $this.mid = new Long(0, 0); + else + $this.mid = mid; + if (0 === (seen1 & 32)) + $this.displayAttention = false; + else + $this.displayAttention = displayAttention; + if (0 === (seen1 & 64)) + $this.cid = new Long(0, 0); + else + $this.cid = cid; + if (0 === (seen1 & 128)) + $this.page = 0; + else + $this.page = page; + if (0 === (seen1 & 256)) + $this.subtitle = ''; + else + $this.subtitle = subtitle; + if (0 === (seen1 & 512)) + $this.relation = null; + else + $this.relation = relation; + if (0 === (seen1 & 1024)) + $this.bvid = ''; + else + $this.bvid = bvid; + if (0 === (seen1 & 2048)) + $this.videos = new Long(0, 0); + else + $this.videos = videos; + if (0 === (seen1 & 4096)) + $this.shortLink = ''; + else + $this.shortLink = shortLink; + if (0 === (seen1 & 8192)) + $this.shareSubtitle = ''; + else + $this.shareSubtitle = shareSubtitle; + if (0 === (seen1 & 16384)) + $this.view = new Long(0, 0); + else + $this.view = view; + if (0 === (seen1 & 32768)) + $this.state = new Long(0, 0); + else + $this.state = state; + if (0 === (seen1 & 65536)) + $this.badge = ''; + else + $this.badge = badge; + return $this; + } + } + class Companion_1196 { + constructor() { + this.targetPath = '/bilibili.app.interface.v1.CardOGV'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1183(); + } + } + class $serializer_1183 { + constructor() { + $serializer_instance_1183 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.interfaces.v1.KCardOGV', this, 6); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('progress', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('duration', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('subtitle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('badge', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('state', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = new Long(0, 0); + var tmp6_local2 = new Long(0, 0); + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = new Long(0, 0); + var tmp10_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp10_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + } else + while (tmp1_flag) { + tmp2_index = tmp10_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp10_input.endStructure_1xqz0n_k$(tmp0_desc); + return KCardOGV.new_com_bapis_bilibili_app_interfaces_v1_KCardOGV_2p3ec5_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); + } + serialize_rz3b00_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.cover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.progress.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.progress); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.duration.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.duration); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.subtitle === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.subtitle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.badge === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.badge); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !value.state.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 5, value.state); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_rz3b00_k$(encoder, value instanceof KCardOGV ? value : THROW_CCE()); + } + } + class KCardOGV { + constructor(cover, progress, duration, subtitle, badge, state) { + Companion_instance_1196; + cover = cover === VOID ? '' : cover; + progress = progress === VOID ? new Long(0, 0) : progress; + duration = duration === VOID ? new Long(0, 0) : duration; + subtitle = subtitle === VOID ? '' : subtitle; + badge = badge === VOID ? '' : badge; + state = state === VOID ? new Long(0, 0) : state; + this.cover = cover; + this.progress = progress; + this.duration = duration; + this.subtitle = subtitle; + this.badge = badge; + this.state = state; + } + get_cover_ipug0e_k$() { + return this.cover; + } + get_progress_mo5qeu_k$() { + return this.progress; + } + get_duration_6a6kpp_k$() { + return this.duration; + } + get_subtitle_55eoyp_k$() { + return this.subtitle; + } + get_badge_ip1cai_k$() { + return this.badge; + } + get_state_iypx7s_k$() { + return this.state; + } + component1_7eebsc_k$() { + return this.cover; + } + component2_7eebsb_k$() { + return this.progress; + } + component3_7eebsa_k$() { + return this.duration; + } + component4_7eebs9_k$() { + return this.subtitle; + } + component5_7eebs8_k$() { + return this.badge; + } + component6_7eebs7_k$() { + return this.state; + } + copy_q59u5d_k$(cover, progress, duration, subtitle, badge, state) { + return new KCardOGV(cover, progress, duration, subtitle, badge, state); + } + copy(cover, progress, duration, subtitle, badge, state, $super) { + cover = cover === VOID ? this.cover : cover; + progress = progress === VOID ? this.progress : progress; + duration = duration === VOID ? this.duration : duration; + subtitle = subtitle === VOID ? this.subtitle : subtitle; + badge = badge === VOID ? this.badge : badge; + state = state === VOID ? this.state : state; + return this.copy_q59u5d_k$(cover, progress, duration, subtitle, badge, state); + } + toString() { + return 'KCardOGV(cover=' + this.cover + ', progress=' + this.progress.toString() + ', duration=' + this.duration.toString() + ', subtitle=' + this.subtitle + ', badge=' + this.badge + ', state=' + this.state.toString() + ')'; + } + hashCode() { + var result = getStringHashCode(this.cover); + result = imul(result, 31) + this.progress.hashCode() | 0; + result = imul(result, 31) + this.duration.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.subtitle) | 0; + result = imul(result, 31) + getStringHashCode(this.badge) | 0; + result = imul(result, 31) + this.state.hashCode() | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KCardOGV)) + return false; + var tmp0_other_with_cast = other instanceof KCardOGV ? other : THROW_CCE(); + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + if (!this.progress.equals(tmp0_other_with_cast.progress)) + return false; + if (!this.duration.equals(tmp0_other_with_cast.duration)) + return false; + if (!(this.subtitle === tmp0_other_with_cast.subtitle)) + return false; + if (!(this.badge === tmp0_other_with_cast.badge)) + return false; + if (!this.state.equals(tmp0_other_with_cast.state)) + return false; + return true; + } + static new_com_bapis_bilibili_app_interfaces_v1_KCardOGV_2p3ec5_k$(seen1, cover, progress, duration, subtitle, badge, state, serializationConstructorMarker) { + Companion_instance_1196; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1183().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.cover = ''; + else + $this.cover = cover; + if (0 === (seen1 & 2)) + $this.progress = new Long(0, 0); + else + $this.progress = progress; + if (0 === (seen1 & 4)) + $this.duration = new Long(0, 0); + else + $this.duration = duration; + if (0 === (seen1 & 8)) + $this.subtitle = ''; + else + $this.subtitle = subtitle; + if (0 === (seen1 & 16)) + $this.badge = ''; + else + $this.badge = badge; + if (0 === (seen1 & 32)) + $this.state = new Long(0, 0); + else + $this.state = state; + return $this; + } + } + class Companion_1197 { + constructor() { + Companion_instance_1197 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer(StringSerializer_getInstance()), null, null, null, null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.interface.v1.CardArticle'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1184(); + } + } + class $serializer_1184 { + constructor() { + $serializer_instance_1184 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.interfaces.v1.KCardArticle', this, 6); + tmp0_serialDesc.addElement_5pzumi_k$('covers', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('name', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('mid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('displayAttention', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('badge', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('relation', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_1197().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0], StringSerializer_getInstance(), LongSerializer_getInstance(), BooleanSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_1193())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = new Long(0, 0); + var tmp7_local3 = false; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp11_cached = Companion_getInstance_1197().$childSerializers_1; + if (tmp10_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp10_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp11_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp10_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_1193(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + } else + while (tmp1_flag) { + tmp2_index = tmp10_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp10_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp11_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp10_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_1193(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp10_input.endStructure_1xqz0n_k$(tmp0_desc); + return KCardArticle_0.new_com_bapis_bilibili_app_interfaces_v1_KCardArticle_ek6ofa_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); + } + serialize_22kp88_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_1197().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.covers, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.covers); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.name === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.name); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.mid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.mid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.displayAttention === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 3, value.displayAttention); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.badge === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.badge); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.relation == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 5, $serializer_getInstance_1193(), value.relation); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_22kp88_k$(encoder, value instanceof KCardArticle_0 ? value : THROW_CCE()); + } + } + class KCardArticle_0 { + constructor(covers, name, mid, displayAttention, badge, relation) { + Companion_getInstance_1197(); + covers = covers === VOID ? emptyList() : covers; + name = name === VOID ? '' : name; + mid = mid === VOID ? new Long(0, 0) : mid; + displayAttention = displayAttention === VOID ? false : displayAttention; + badge = badge === VOID ? '' : badge; + relation = relation === VOID ? null : relation; + this.covers = covers; + this.name = name; + this.mid = mid; + this.displayAttention = displayAttention; + this.badge = badge; + this.relation = relation; + } + get_covers_c0bcmd_k$() { + return this.covers; + } + get_name_woqyms_k$() { + return this.name; + } + get_mid_18j0o1_k$() { + return this.mid; + } + get_displayAttention_q2al6j_k$() { + return this.displayAttention; + } + get_badge_ip1cai_k$() { + return this.badge; + } + get_relation_u22tol_k$() { + return this.relation; + } + component1_7eebsc_k$() { + return this.covers; + } + component2_7eebsb_k$() { + return this.name; + } + component3_7eebsa_k$() { + return this.mid; + } + component4_7eebs9_k$() { + return this.displayAttention; + } + component5_7eebs8_k$() { + return this.badge; + } + component6_7eebs7_k$() { + return this.relation; + } + copy_z7fuda_k$(covers, name, mid, displayAttention, badge, relation) { + return new KCardArticle_0(covers, name, mid, displayAttention, badge, relation); + } + copy(covers, name, mid, displayAttention, badge, relation, $super) { + covers = covers === VOID ? this.covers : covers; + name = name === VOID ? this.name : name; + mid = mid === VOID ? this.mid : mid; + displayAttention = displayAttention === VOID ? this.displayAttention : displayAttention; + badge = badge === VOID ? this.badge : badge; + relation = relation === VOID ? this.relation : relation; + return this.copy_z7fuda_k$(covers, name, mid, displayAttention, badge, relation); + } + toString() { + return 'KCardArticle(covers=' + this.covers + ', name=' + this.name + ', mid=' + this.mid.toString() + ', displayAttention=' + this.displayAttention + ', badge=' + this.badge + ', relation=' + this.relation + ')'; + } + hashCode() { + var result = hashCode(this.covers); + result = imul(result, 31) + getStringHashCode(this.name) | 0; + result = imul(result, 31) + this.mid.hashCode() | 0; + result = imul(result, 31) + getBooleanHashCode(this.displayAttention) | 0; + result = imul(result, 31) + getStringHashCode(this.badge) | 0; + result = imul(result, 31) + (this.relation == null ? 0 : this.relation.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KCardArticle_0)) + return false; + var tmp0_other_with_cast = other instanceof KCardArticle_0 ? other : THROW_CCE(); + if (!equals(this.covers, tmp0_other_with_cast.covers)) + return false; + if (!(this.name === tmp0_other_with_cast.name)) + return false; + if (!this.mid.equals(tmp0_other_with_cast.mid)) + return false; + if (!(this.displayAttention === tmp0_other_with_cast.displayAttention)) + return false; + if (!(this.badge === tmp0_other_with_cast.badge)) + return false; + if (!equals(this.relation, tmp0_other_with_cast.relation)) + return false; + return true; + } + static new_com_bapis_bilibili_app_interfaces_v1_KCardArticle_ek6ofa_k$(seen1, covers, name, mid, displayAttention, badge, relation, serializationConstructorMarker) { + Companion_getInstance_1197(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1184().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.covers = emptyList(); + else + $this.covers = covers; + if (0 === (seen1 & 2)) + $this.name = ''; + else + $this.name = name; + if (0 === (seen1 & 4)) + $this.mid = new Long(0, 0); + else + $this.mid = mid; + if (0 === (seen1 & 8)) + $this.displayAttention = false; + else + $this.displayAttention = displayAttention; + if (0 === (seen1 & 16)) + $this.badge = ''; + else + $this.badge = badge; + if (0 === (seen1 & 32)) + $this.relation = null; + else + $this.relation = relation; + return $this; + } + } + class Companion_1198 { + constructor() { + this.targetPath = '/bilibili.app.interface.v1.CardLive'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1185(); + } + } + class $serializer_1185 { + constructor() { + $serializer_instance_1185 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.interfaces.v1.KCardLive', this, 7); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('name', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('mid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('tag', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('status', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('displayAttention', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('relation', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), BooleanSerializer_getInstance(), get_nullable($serializer_getInstance_1193())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = new Long(0, 0); + var tmp7_local3 = null; + var tmp8_local4 = 0; + var tmp9_local5 = false; + var tmp10_local6 = null; + var tmp11_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp11_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp11_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_1193(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + } else + while (tmp1_flag) { + tmp2_index = tmp11_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp11_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_1193(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp11_input.endStructure_1xqz0n_k$(tmp0_desc); + return KCardLive_0.new_com_bapis_bilibili_app_interfaces_v1_KCardLive_xv1nb6_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, null); + } + serialize_g1vh4c_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.cover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.name === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.name); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.mid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.mid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.tag === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.tag); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.status === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 4, value.status); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.displayAttention === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 5, value.displayAttention); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.relation == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 6, $serializer_getInstance_1193(), value.relation); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_g1vh4c_k$(encoder, value instanceof KCardLive_0 ? value : THROW_CCE()); + } + } + class KCardLive_0 { + constructor(cover, name, mid, tag, status, displayAttention, relation) { + Companion_instance_1198; + cover = cover === VOID ? '' : cover; + name = name === VOID ? '' : name; + mid = mid === VOID ? new Long(0, 0) : mid; + tag = tag === VOID ? '' : tag; + status = status === VOID ? 0 : status; + displayAttention = displayAttention === VOID ? false : displayAttention; + relation = relation === VOID ? null : relation; + this.cover = cover; + this.name = name; + this.mid = mid; + this.tag = tag; + this.status = status; + this.displayAttention = displayAttention; + this.relation = relation; + } + get_cover_ipug0e_k$() { + return this.cover; + } + get_name_woqyms_k$() { + return this.name; + } + get_mid_18j0o1_k$() { + return this.mid; + } + get_tag_18ivnz_k$() { + return this.tag; + } + get_status_jnf6d7_k$() { + return this.status; + } + get_displayAttention_q2al6j_k$() { + return this.displayAttention; + } + get_relation_u22tol_k$() { + return this.relation; + } + component1_7eebsc_k$() { + return this.cover; + } + component2_7eebsb_k$() { + return this.name; + } + component3_7eebsa_k$() { + return this.mid; + } + component4_7eebs9_k$() { + return this.tag; + } + component5_7eebs8_k$() { + return this.status; + } + component6_7eebs7_k$() { + return this.displayAttention; + } + component7_7eebs6_k$() { + return this.relation; + } + copy_t3x6fw_k$(cover, name, mid, tag, status, displayAttention, relation) { + return new KCardLive_0(cover, name, mid, tag, status, displayAttention, relation); + } + copy(cover, name, mid, tag, status, displayAttention, relation, $super) { + cover = cover === VOID ? this.cover : cover; + name = name === VOID ? this.name : name; + mid = mid === VOID ? this.mid : mid; + tag = tag === VOID ? this.tag : tag; + status = status === VOID ? this.status : status; + displayAttention = displayAttention === VOID ? this.displayAttention : displayAttention; + relation = relation === VOID ? this.relation : relation; + return this.copy_t3x6fw_k$(cover, name, mid, tag, status, displayAttention, relation); + } + toString() { + return 'KCardLive(cover=' + this.cover + ', name=' + this.name + ', mid=' + this.mid.toString() + ', tag=' + this.tag + ', status=' + this.status + ', displayAttention=' + this.displayAttention + ', relation=' + this.relation + ')'; + } + hashCode() { + var result = getStringHashCode(this.cover); + result = imul(result, 31) + getStringHashCode(this.name) | 0; + result = imul(result, 31) + this.mid.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.tag) | 0; + result = imul(result, 31) + this.status | 0; + result = imul(result, 31) + getBooleanHashCode(this.displayAttention) | 0; + result = imul(result, 31) + (this.relation == null ? 0 : this.relation.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KCardLive_0)) + return false; + var tmp0_other_with_cast = other instanceof KCardLive_0 ? other : THROW_CCE(); + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + if (!(this.name === tmp0_other_with_cast.name)) + return false; + if (!this.mid.equals(tmp0_other_with_cast.mid)) + return false; + if (!(this.tag === tmp0_other_with_cast.tag)) + return false; + if (!(this.status === tmp0_other_with_cast.status)) + return false; + if (!(this.displayAttention === tmp0_other_with_cast.displayAttention)) + return false; + if (!equals(this.relation, tmp0_other_with_cast.relation)) + return false; + return true; + } + static new_com_bapis_bilibili_app_interfaces_v1_KCardLive_xv1nb6_k$(seen1, cover, name, mid, tag, status, displayAttention, relation, serializationConstructorMarker) { + Companion_instance_1198; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1185().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.cover = ''; + else + $this.cover = cover; + if (0 === (seen1 & 2)) + $this.name = ''; + else + $this.name = name; + if (0 === (seen1 & 4)) + $this.mid = new Long(0, 0); + else + $this.mid = mid; + if (0 === (seen1 & 8)) + $this.tag = ''; + else + $this.tag = tag; + if (0 === (seen1 & 16)) + $this.status = 0; + else + $this.status = status; + if (0 === (seen1 & 32)) + $this.displayAttention = false; + else + $this.displayAttention = displayAttention; + if (0 === (seen1 & 64)) + $this.relation = null; + else + $this.relation = relation; + return $this; + } + } + class Companion_1199 { + constructor() { + this.targetPath = '/bilibili.app.interface.v1.CardCheese'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1186(); + } + } + class $serializer_1186 { + constructor() { + $serializer_instance_1186 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.interfaces.v1.KCardCheese', this, 5); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('progress', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('duration', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('subtitle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('state', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = new Long(0, 0); + var tmp6_local2 = new Long(0, 0); + var tmp7_local3 = null; + var tmp8_local4 = new Long(0, 0); + var tmp9_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp9_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + } else + while (tmp1_flag) { + tmp2_index = tmp9_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp9_input.endStructure_1xqz0n_k$(tmp0_desc); + return KCardCheese_0.new_com_bapis_bilibili_app_interfaces_v1_KCardCheese_4dy62x_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); + } + serialize_iutsbj_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.cover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.progress.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.progress); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.duration.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.duration); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.subtitle === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.subtitle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !value.state.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 4, value.state); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_iutsbj_k$(encoder, value instanceof KCardCheese_0 ? value : THROW_CCE()); + } + } + class KCardCheese_0 { + constructor(cover, progress, duration, subtitle, state) { + Companion_instance_1199; + cover = cover === VOID ? '' : cover; + progress = progress === VOID ? new Long(0, 0) : progress; + duration = duration === VOID ? new Long(0, 0) : duration; + subtitle = subtitle === VOID ? '' : subtitle; + state = state === VOID ? new Long(0, 0) : state; + this.cover = cover; + this.progress = progress; + this.duration = duration; + this.subtitle = subtitle; + this.state = state; + } + get_cover_ipug0e_k$() { + return this.cover; + } + get_progress_mo5qeu_k$() { + return this.progress; + } + get_duration_6a6kpp_k$() { + return this.duration; + } + get_subtitle_55eoyp_k$() { + return this.subtitle; + } + get_state_iypx7s_k$() { + return this.state; + } + component1_7eebsc_k$() { + return this.cover; + } + component2_7eebsb_k$() { + return this.progress; + } + component3_7eebsa_k$() { + return this.duration; + } + component4_7eebs9_k$() { + return this.subtitle; + } + component5_7eebs8_k$() { + return this.state; + } + copy_po1d13_k$(cover, progress, duration, subtitle, state) { + return new KCardCheese_0(cover, progress, duration, subtitle, state); + } + copy(cover, progress, duration, subtitle, state, $super) { + cover = cover === VOID ? this.cover : cover; + progress = progress === VOID ? this.progress : progress; + duration = duration === VOID ? this.duration : duration; + subtitle = subtitle === VOID ? this.subtitle : subtitle; + state = state === VOID ? this.state : state; + return this.copy_po1d13_k$(cover, progress, duration, subtitle, state); + } + toString() { + return 'KCardCheese(cover=' + this.cover + ', progress=' + this.progress.toString() + ', duration=' + this.duration.toString() + ', subtitle=' + this.subtitle + ', state=' + this.state.toString() + ')'; + } + hashCode() { + var result = getStringHashCode(this.cover); + result = imul(result, 31) + this.progress.hashCode() | 0; + result = imul(result, 31) + this.duration.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.subtitle) | 0; + result = imul(result, 31) + this.state.hashCode() | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KCardCheese_0)) + return false; + var tmp0_other_with_cast = other instanceof KCardCheese_0 ? other : THROW_CCE(); + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + if (!this.progress.equals(tmp0_other_with_cast.progress)) + return false; + if (!this.duration.equals(tmp0_other_with_cast.duration)) + return false; + if (!(this.subtitle === tmp0_other_with_cast.subtitle)) + return false; + if (!this.state.equals(tmp0_other_with_cast.state)) + return false; + return true; + } + static new_com_bapis_bilibili_app_interfaces_v1_KCardCheese_4dy62x_k$(seen1, cover, progress, duration, subtitle, state, serializationConstructorMarker) { + Companion_instance_1199; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1186().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.cover = ''; + else + $this.cover = cover; + if (0 === (seen1 & 2)) + $this.progress = new Long(0, 0); + else + $this.progress = progress; + if (0 === (seen1 & 4)) + $this.duration = new Long(0, 0); + else + $this.duration = duration; + if (0 === (seen1 & 8)) + $this.subtitle = ''; + else + $this.subtitle = subtitle; + if (0 === (seen1 & 16)) + $this.state = new Long(0, 0); + else + $this.state = state; + return $this; + } + } + class Companion_1200 { + constructor() { + this.targetPath = '/bilibili.app.interface.v1.CursorTab'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1187(); + } + } + class $serializer_1187 { + constructor() { + $serializer_instance_1187 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.interfaces.v1.KCursorTab', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('business', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('name', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('router', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('focus', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), BooleanSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = false; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KCursorTab.new_com_bapis_bilibili_app_interfaces_v1_KCursorTab_bn6wgd_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_ppo8n5_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.business === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.business); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.name === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.name); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.router === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.router); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.focus === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 3, value.focus); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_ppo8n5_k$(encoder, value instanceof KCursorTab ? value : THROW_CCE()); + } + } + class KCursorTab { + constructor(business, name, router, focus) { + Companion_instance_1200; + business = business === VOID ? '' : business; + name = name === VOID ? '' : name; + router = router === VOID ? '' : router; + focus = focus === VOID ? false : focus; + this.business = business; + this.name = name; + this.router = router; + this.focus = focus; + } + get_business_k9dqx5_k$() { + return this.business; + } + get_name_woqyms_k$() { + return this.name; + } + get_router_j3zccy_k$() { + return this.router; + } + get_focus_irhg33_k$() { + return this.focus; + } + component1_7eebsc_k$() { + return this.business; + } + component2_7eebsb_k$() { + return this.name; + } + component3_7eebsa_k$() { + return this.router; + } + component4_7eebs9_k$() { + return this.focus; + } + copy_5ncbs0_k$(business, name, router, focus) { + return new KCursorTab(business, name, router, focus); + } + copy(business, name, router, focus, $super) { + business = business === VOID ? this.business : business; + name = name === VOID ? this.name : name; + router = router === VOID ? this.router : router; + focus = focus === VOID ? this.focus : focus; + return this.copy_5ncbs0_k$(business, name, router, focus); + } + toString() { + return 'KCursorTab(business=' + this.business + ', name=' + this.name + ', router=' + this.router + ', focus=' + this.focus + ')'; + } + hashCode() { + var result = getStringHashCode(this.business); + result = imul(result, 31) + getStringHashCode(this.name) | 0; + result = imul(result, 31) + getStringHashCode(this.router) | 0; + result = imul(result, 31) + getBooleanHashCode(this.focus) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KCursorTab)) + return false; + var tmp0_other_with_cast = other instanceof KCursorTab ? other : THROW_CCE(); + if (!(this.business === tmp0_other_with_cast.business)) + return false; + if (!(this.name === tmp0_other_with_cast.name)) + return false; + if (!(this.router === tmp0_other_with_cast.router)) + return false; + if (!(this.focus === tmp0_other_with_cast.focus)) + return false; + return true; + } + static new_com_bapis_bilibili_app_interfaces_v1_KCursorTab_bn6wgd_k$(seen1, business, name, router, focus, serializationConstructorMarker) { + Companion_instance_1200; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1187().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.business = ''; + else + $this.business = business; + if (0 === (seen1 & 2)) + $this.name = ''; + else + $this.name = name; + if (0 === (seen1 & 4)) + $this.router = ''; + else + $this.router = router; + if (0 === (seen1 & 8)) + $this.focus = false; + else + $this.focus = focus; + return $this; + } + } + class Companion_1201 { + constructor() { + this.targetPath = '/bilibili.app.interface.v1.Cursor'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1188(); + } + } + class $serializer_1188 { + constructor() { + $serializer_instance_1188 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.interfaces.v1.KCursor', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('max', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('maxTp', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = 0; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KCursor.new_com_bapis_bilibili_app_interfaces_v1_KCursor_g9gkwc_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_q1w56a_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.max.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.max); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.maxTp === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.maxTp); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_q1w56a_k$(encoder, value instanceof KCursor ? value : THROW_CCE()); + } + } + class KCursor { + constructor(max, maxTp) { + Companion_instance_1201; + max = max === VOID ? new Long(0, 0) : max; + maxTp = maxTp === VOID ? 0 : maxTp; + this.max = max; + this.maxTp = maxTp; + } + get_max_18j0ud_k$() { + return this.max; + } + get_maxTp_iv3h7b_k$() { + return this.maxTp; + } + component1_7eebsc_k$() { + return this.max; + } + component2_7eebsb_k$() { + return this.maxTp; + } + copy_hlxmm3_k$(max, maxTp) { + return new KCursor(max, maxTp); + } + copy(max, maxTp, $super) { + max = max === VOID ? this.max : max; + maxTp = maxTp === VOID ? this.maxTp : maxTp; + return this.copy_hlxmm3_k$(max, maxTp); + } + toString() { + return 'KCursor(max=' + this.max.toString() + ', maxTp=' + this.maxTp + ')'; + } + hashCode() { + var result = this.max.hashCode(); + result = imul(result, 31) + this.maxTp | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KCursor)) + return false; + var tmp0_other_with_cast = other instanceof KCursor ? other : THROW_CCE(); + if (!this.max.equals(tmp0_other_with_cast.max)) + return false; + if (!(this.maxTp === tmp0_other_with_cast.maxTp)) + return false; + return true; + } + static new_com_bapis_bilibili_app_interfaces_v1_KCursor_g9gkwc_k$(seen1, max, maxTp, serializationConstructorMarker) { + Companion_instance_1201; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1188().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.max = new Long(0, 0); + else + $this.max = max; + if (0 === (seen1 & 2)) + $this.maxTp = 0; + else + $this.maxTp = maxTp; + return $this; + } + } + class Companion_1202 { + constructor() { + Companion_instance_1202 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer($serializer_getInstance_1190())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.interface.v1.DeleteReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1189(); + } + } + class $serializer_1189 { + constructor() { + $serializer_instance_1189 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.interfaces.v1.KDeleteReq', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('hisInfo', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_1202().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp6_cached = Companion_getInstance_1202().$childSerializers_1; + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KDeleteReq.new_com_bapis_bilibili_app_interfaces_v1_KDeleteReq_vvpnwh_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_lfl32t_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_1202().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.hisInfo, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.hisInfo); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_lfl32t_k$(encoder, value instanceof KDeleteReq ? value : THROW_CCE()); + } + } + class KDeleteReq { + constructor(hisInfo) { + Companion_getInstance_1202(); + hisInfo = hisInfo === VOID ? emptyList() : hisInfo; + this.hisInfo = hisInfo; + } + get_hisInfo_gknvjr_k$() { + return this.hisInfo; + } + component1_7eebsc_k$() { + return this.hisInfo; + } + copy_rw60pw_k$(hisInfo) { + return new KDeleteReq(hisInfo); + } + copy(hisInfo, $super) { + hisInfo = hisInfo === VOID ? this.hisInfo : hisInfo; + return this.copy_rw60pw_k$(hisInfo); + } + toString() { + return 'KDeleteReq(hisInfo=' + this.hisInfo + ')'; + } + hashCode() { + return hashCode(this.hisInfo); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KDeleteReq)) + return false; + var tmp0_other_with_cast = other instanceof KDeleteReq ? other : THROW_CCE(); + if (!equals(this.hisInfo, tmp0_other_with_cast.hisInfo)) + return false; + return true; + } + static new_com_bapis_bilibili_app_interfaces_v1_KDeleteReq_vvpnwh_k$(seen1, hisInfo, serializationConstructorMarker) { + Companion_getInstance_1202(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1189().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.hisInfo = emptyList(); + else + $this.hisInfo = hisInfo; + return $this; + } + } + class Companion_1203 { + constructor() { + this.targetPath = '/bilibili.app.interface.v1.HisInfo'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1190(); + } + } + class $serializer_1190 { + constructor() { + $serializer_instance_1190 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.interfaces.v1.KHisInfo', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('business', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('kid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = new Long(0, 0); + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KHisInfo.new_com_bapis_bilibili_app_interfaces_v1_KHisInfo_lhvjzp_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_o3aduq_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.business === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.business); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.kid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.kid); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_o3aduq_k$(encoder, value instanceof KHisInfo ? value : THROW_CCE()); + } + } + class KHisInfo { + constructor(business, kid) { + Companion_instance_1203; + business = business === VOID ? '' : business; + kid = kid === VOID ? new Long(0, 0) : kid; + this.business = business; + this.kid = kid; + } + get_business_k9dqx5_k$() { + return this.business; + } + get_kid_18j25f_k$() { + return this.kid; + } + component1_7eebsc_k$() { + return this.business; + } + component2_7eebsb_k$() { + return this.kid; + } + copy_gaforn_k$(business, kid) { + return new KHisInfo(business, kid); + } + copy(business, kid, $super) { + business = business === VOID ? this.business : business; + kid = kid === VOID ? this.kid : kid; + return this.copy_gaforn_k$(business, kid); + } + toString() { + return 'KHisInfo(business=' + this.business + ', kid=' + this.kid.toString() + ')'; + } + hashCode() { + var result = getStringHashCode(this.business); + result = imul(result, 31) + this.kid.hashCode() | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KHisInfo)) + return false; + var tmp0_other_with_cast = other instanceof KHisInfo ? other : THROW_CCE(); + if (!(this.business === tmp0_other_with_cast.business)) + return false; + if (!this.kid.equals(tmp0_other_with_cast.kid)) + return false; + return true; + } + static new_com_bapis_bilibili_app_interfaces_v1_KHisInfo_lhvjzp_k$(seen1, business, kid, serializationConstructorMarker) { + Companion_instance_1203; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1190().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.business = ''; + else + $this.business = business; + if (0 === (seen1 & 2)) + $this.kid = new Long(0, 0); + else + $this.kid = kid; + return $this; + } + } + class Companion_1204 { + constructor() { + this.targetPath = '/bilibili.app.interface.v1.NoReply'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1191(); + } + } + class $serializer_1191 { + constructor() { + $serializer_instance_1191 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.interfaces.v1.KNoReply', this, 0); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = []; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp4_input.decodeSequentially_xlblqy_k$()) { + } else + while (tmp1_flag) { + tmp2_index = tmp4_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + if (tmp2_index === -1) + tmp1_flag = false; + else + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + tmp4_input.endStructure_1xqz0n_k$(tmp0_desc); + return KNoReply_0.new_com_bapis_bilibili_app_interfaces_v1_KNoReply_ynsiz9_k$(tmp3_bitMask0, null); + } + serialize_azkhh1_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_azkhh1_k$(encoder, value instanceof KNoReply_0 ? value : THROW_CCE()); + } + } + class KNoReply_0 { + constructor() { + Companion_instance_1204; + } + static new_com_bapis_bilibili_app_interfaces_v1_KNoReply_ynsiz9_k$(seen1, serializationConstructorMarker) { + Companion_instance_1204; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1191().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + return $this; + } + } + class Companion_1205 { + constructor() { + this.targetPath = '/bilibili.app.interface.v1.DeviceType'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1192(); + } + } + class $serializer_1192 { + constructor() { + $serializer_instance_1192 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.interfaces.v1.KDeviceType', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('icon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KDeviceType.new_com_bapis_bilibili_app_interfaces_v1_KDeviceType_icpwqt_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_i9dm94_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.type === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.type); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.icon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.icon); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_i9dm94_k$(encoder, value instanceof KDeviceType ? value : THROW_CCE()); + } + } + class KDeviceType { + constructor(type, icon) { + Companion_instance_1205; + type = type === VOID ? 0 : type; + icon = icon === VOID ? '' : icon; + this.type = type; + this.icon = icon; + } + get_type_wovaf7_k$() { + return this.type; + } + get_icon_wont8i_k$() { + return this.icon; + } + typeEnum() { + return Companion_getInstance_1187().fromValue(this.type); + } + component1_7eebsc_k$() { + return this.type; + } + component2_7eebsb_k$() { + return this.icon; + } + copy_xhhsuv_k$(type, icon) { + return new KDeviceType(type, icon); + } + copy(type, icon, $super) { + type = type === VOID ? this.type : type; + icon = icon === VOID ? this.icon : icon; + return this.copy_xhhsuv_k$(type, icon); + } + toString() { + return 'KDeviceType(type=' + this.type + ', icon=' + this.icon + ')'; + } + hashCode() { + var result = this.type; + result = imul(result, 31) + getStringHashCode(this.icon) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KDeviceType)) + return false; + var tmp0_other_with_cast = other instanceof KDeviceType ? other : THROW_CCE(); + if (!(this.type === tmp0_other_with_cast.type)) + return false; + if (!(this.icon === tmp0_other_with_cast.icon)) + return false; + return true; + } + static new_com_bapis_bilibili_app_interfaces_v1_KDeviceType_icpwqt_k$(seen1, type, icon, serializationConstructorMarker) { + Companion_instance_1205; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1192().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.type = 0; + else + $this.type = type; + if (0 === (seen1 & 2)) + $this.icon = ''; + else + $this.icon = icon; + return $this; + } + } + class Companion_1206 { + constructor() { + this.targetPath = '/bilibili.app.interface.v1.Relation'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1193(); + } + } + class $serializer_1193 { + constructor() { + $serializer_instance_1193 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.interfaces.v1.KRelation', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('status', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('isFollow', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('isFollowed', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = 0; + var tmp6_local2 = 0; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KRelation_2.new_com_bapis_bilibili_app_interfaces_v1_KRelation_ppnvu0_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_iuvde4_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.status === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.status); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.isFollow === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.isFollow); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.isFollowed === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.isFollowed); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_iuvde4_k$(encoder, value instanceof KRelation_2 ? value : THROW_CCE()); + } + } + class KRelation_2 { + constructor(status, isFollow, isFollowed) { + Companion_instance_1206; + status = status === VOID ? 0 : status; + isFollow = isFollow === VOID ? 0 : isFollow; + isFollowed = isFollowed === VOID ? 0 : isFollowed; + this.status = status; + this.isFollow = isFollow; + this.isFollowed = isFollowed; + } + get_status_jnf6d7_k$() { + return this.status; + } + get_isFollow_tdz0w4_k$() { + return this.isFollow; + } + get_isFollowed_sauyhp_k$() { + return this.isFollowed; + } + component1_7eebsc_k$() { + return this.status; + } + component2_7eebsb_k$() { + return this.isFollow; + } + component3_7eebsa_k$() { + return this.isFollowed; + } + copy_6of2tf_k$(status, isFollow, isFollowed) { + return new KRelation_2(status, isFollow, isFollowed); + } + copy(status, isFollow, isFollowed, $super) { + status = status === VOID ? this.status : status; + isFollow = isFollow === VOID ? this.isFollow : isFollow; + isFollowed = isFollowed === VOID ? this.isFollowed : isFollowed; + return this.copy_6of2tf_k$(status, isFollow, isFollowed); + } + toString() { + return 'KRelation(status=' + this.status + ', isFollow=' + this.isFollow + ', isFollowed=' + this.isFollowed + ')'; + } + hashCode() { + var result = this.status; + result = imul(result, 31) + this.isFollow | 0; + result = imul(result, 31) + this.isFollowed | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KRelation_2)) + return false; + var tmp0_other_with_cast = other instanceof KRelation_2 ? other : THROW_CCE(); + if (!(this.status === tmp0_other_with_cast.status)) + return false; + if (!(this.isFollow === tmp0_other_with_cast.isFollow)) + return false; + if (!(this.isFollowed === tmp0_other_with_cast.isFollowed)) + return false; + return true; + } + static new_com_bapis_bilibili_app_interfaces_v1_KRelation_ppnvu0_k$(seen1, status, isFollow, isFollowed, serializationConstructorMarker) { + Companion_instance_1206; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1193().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.status = 0; + else + $this.status = status; + if (0 === (seen1 & 2)) + $this.isFollow = 0; + else + $this.isFollow = isFollow; + if (0 === (seen1 & 4)) + $this.isFollowed = 0; + else + $this.isFollowed = isFollowed; + return $this; + } + } + class Companion_1207 { + constructor() { + this.targetPath = '/bilibili.app.interface.v1.SearchReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1194(); + } + } + class $serializer_1194 { + constructor() { + $serializer_instance_1194 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.interfaces.v1.KSearchReq', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('keyword', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('pn', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('business', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = new Long(0, 0); + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSearchReq.new_com_bapis_bilibili_app_interfaces_v1_KSearchReq_yyvlgy_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_xqcu3s_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.keyword === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.keyword); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.pn.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.pn); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.business === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.business); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_xqcu3s_k$(encoder, value instanceof KSearchReq ? value : THROW_CCE()); + } + } + class KSearchReq { + constructor(keyword, pn, business) { + Companion_instance_1207; + keyword = keyword === VOID ? '' : keyword; + pn = pn === VOID ? new Long(0, 0) : pn; + business = business === VOID ? '' : business; + this.keyword = keyword; + this.pn = pn; + this.business = business; + } + get_keyword_c7bncw_k$() { + return this.keyword; + } + get_pn_kntnqx_k$() { + return this.pn; + } + get_business_k9dqx5_k$() { + return this.business; + } + component1_7eebsc_k$() { + return this.keyword; + } + component2_7eebsb_k$() { + return this.pn; + } + component3_7eebsa_k$() { + return this.business; + } + copy_fur3hz_k$(keyword, pn, business) { + return new KSearchReq(keyword, pn, business); + } + copy(keyword, pn, business, $super) { + keyword = keyword === VOID ? this.keyword : keyword; + pn = pn === VOID ? this.pn : pn; + business = business === VOID ? this.business : business; + return this.copy_fur3hz_k$(keyword, pn, business); + } + toString() { + return 'KSearchReq(keyword=' + this.keyword + ', pn=' + this.pn.toString() + ', business=' + this.business + ')'; + } + hashCode() { + var result = getStringHashCode(this.keyword); + result = imul(result, 31) + this.pn.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.business) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSearchReq)) + return false; + var tmp0_other_with_cast = other instanceof KSearchReq ? other : THROW_CCE(); + if (!(this.keyword === tmp0_other_with_cast.keyword)) + return false; + if (!this.pn.equals(tmp0_other_with_cast.pn)) + return false; + if (!(this.business === tmp0_other_with_cast.business)) + return false; + return true; + } + static new_com_bapis_bilibili_app_interfaces_v1_KSearchReq_yyvlgy_k$(seen1, keyword, pn, business, serializationConstructorMarker) { + Companion_instance_1207; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1194().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.keyword = ''; + else + $this.keyword = keyword; + if (0 === (seen1 & 2)) + $this.pn = new Long(0, 0); + else + $this.pn = pn; + if (0 === (seen1 & 4)) + $this.business = ''; + else + $this.business = business; + return $this; + } + } + class Companion_1208 { + constructor() { + Companion_instance_1208 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer($serializer_getInstance_1181()), null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.interface.v1.SearchReply'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1195(); + } + } + class $serializer_1195 { + constructor() { + $serializer_instance_1195 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.interfaces.v1.KSearchReply', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('items', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('hasMore', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('page', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_1208().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0], BooleanSerializer_getInstance(), get_nullable($serializer_getInstance_1196())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = false; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp8_cached = Companion_getInstance_1208().$childSerializers_1; + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp8_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_1196(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp8_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_1196(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSearchReply.new_com_bapis_bilibili_app_interfaces_v1_KSearchReply_73w43x_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_2ud544_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_1208().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.items, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.items); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.hasMore === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 1, value.hasMore); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.page == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_1196(), value.page); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_2ud544_k$(encoder, value instanceof KSearchReply ? value : THROW_CCE()); + } + } + class KSearchReply { + constructor(items, hasMore, page) { + Companion_getInstance_1208(); + items = items === VOID ? emptyList() : items; + hasMore = hasMore === VOID ? false : hasMore; + page = page === VOID ? null : page; + this.items = items; + this.hasMore = hasMore; + this.page = page; + } + get_items_it823b_k$() { + return this.items; + } + get_hasMore_csdhd2_k$() { + return this.hasMore; + } + get_page_wos8go_k$() { + return this.page; + } + component1_7eebsc_k$() { + return this.items; + } + component2_7eebsb_k$() { + return this.hasMore; + } + component3_7eebsa_k$() { + return this.page; + } + copy_a919ml_k$(items, hasMore, page) { + return new KSearchReply(items, hasMore, page); + } + copy(items, hasMore, page, $super) { + items = items === VOID ? this.items : items; + hasMore = hasMore === VOID ? this.hasMore : hasMore; + page = page === VOID ? this.page : page; + return this.copy_a919ml_k$(items, hasMore, page); + } + toString() { + return 'KSearchReply(items=' + this.items + ', hasMore=' + this.hasMore + ', page=' + this.page + ')'; + } + hashCode() { + var result = hashCode(this.items); + result = imul(result, 31) + getBooleanHashCode(this.hasMore) | 0; + result = imul(result, 31) + (this.page == null ? 0 : this.page.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSearchReply)) + return false; + var tmp0_other_with_cast = other instanceof KSearchReply ? other : THROW_CCE(); + if (!equals(this.items, tmp0_other_with_cast.items)) + return false; + if (!(this.hasMore === tmp0_other_with_cast.hasMore)) + return false; + if (!equals(this.page, tmp0_other_with_cast.page)) + return false; + return true; + } + static new_com_bapis_bilibili_app_interfaces_v1_KSearchReply_73w43x_k$(seen1, items, hasMore, page, serializationConstructorMarker) { + Companion_getInstance_1208(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1195().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.items = emptyList(); + else + $this.items = items; + if (0 === (seen1 & 2)) + $this.hasMore = false; + else + $this.hasMore = hasMore; + if (0 === (seen1 & 4)) + $this.page = null; + else + $this.page = page; + return $this; + } + } + class Companion_1209 { + constructor() { + this.targetPath = '/bilibili.app.interface.v1.Page'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1196(); + } + } + class $serializer_1196 { + constructor() { + $serializer_instance_1196 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.interfaces.v1.KPage', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('pn', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('total', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = new Long(0, 0); + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KPage_1.new_com_bapis_bilibili_app_interfaces_v1_KPage_hv3swh_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_943t5z_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.pn.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.pn); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.total.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.total); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_943t5z_k$(encoder, value instanceof KPage_1 ? value : THROW_CCE()); + } + } + class KPage_1 { + constructor(pn, total) { + Companion_instance_1209; + pn = pn === VOID ? new Long(0, 0) : pn; + total = total === VOID ? new Long(0, 0) : total; + this.pn = pn; + this.total = total; + } + get_pn_kntnqx_k$() { + return this.pn; + } + get_total_iz6wij_k$() { + return this.total; + } + component1_7eebsc_k$() { + return this.pn; + } + component2_7eebsb_k$() { + return this.total; + } + copy_bynm9d_k$(pn, total) { + return new KPage_1(pn, total); + } + copy(pn, total, $super) { + pn = pn === VOID ? this.pn : pn; + total = total === VOID ? this.total : total; + return this.copy_bynm9d_k$(pn, total); + } + toString() { + return 'KPage(pn=' + this.pn.toString() + ', total=' + this.total.toString() + ')'; + } + hashCode() { + var result = this.pn.hashCode(); + result = imul(result, 31) + this.total.hashCode() | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KPage_1)) + return false; + var tmp0_other_with_cast = other instanceof KPage_1 ? other : THROW_CCE(); + if (!this.pn.equals(tmp0_other_with_cast.pn)) + return false; + if (!this.total.equals(tmp0_other_with_cast.total)) + return false; + return true; + } + static new_com_bapis_bilibili_app_interfaces_v1_KPage_hv3swh_k$(seen1, pn, total, serializationConstructorMarker) { + Companion_instance_1209; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1196().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.pn = new Long(0, 0); + else + $this.pn = pn; + if (0 === (seen1 & 2)) + $this.total = new Long(0, 0); + else + $this.total = total; + return $this; + } + } + class Companion_1210 { + constructor() { + this.targetPath = '/bilibili.app.interface.v1.PlayerPreloadParams'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1197(); + } + } + class $serializer_1197 { + constructor() { + $serializer_instance_1197 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.interfaces.v1.KPlayerPreloadParams', this, 5); + tmp0_serialDesc.addElement_5pzumi_k$('qn', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('fnver', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('fnval', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('forceHost', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('fourk', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = new Long(0, 0); + var tmp6_local2 = new Long(0, 0); + var tmp7_local3 = new Long(0, 0); + var tmp8_local4 = new Long(0, 0); + var tmp9_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp9_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + } else + while (tmp1_flag) { + tmp2_index = tmp9_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp9_input.endStructure_1xqz0n_k$(tmp0_desc); + return KPlayerPreloadParams.new_com_bapis_bilibili_app_interfaces_v1_KPlayerPreloadParams_i8rt3w_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); + } + serialize_m05qfk_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.qn.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.qn); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.fnver.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.fnver); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.fnval.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.fnval); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !value.forceHost.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 3, value.forceHost); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !value.fourk.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 4, value.fourk); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_m05qfk_k$(encoder, value instanceof KPlayerPreloadParams ? value : THROW_CCE()); + } + } + class KPlayerPreloadParams { + constructor(qn, fnver, fnval, forceHost, fourk) { + Companion_instance_1210; + qn = qn === VOID ? new Long(0, 0) : qn; + fnver = fnver === VOID ? new Long(0, 0) : fnver; + fnval = fnval === VOID ? new Long(0, 0) : fnval; + forceHost = forceHost === VOID ? new Long(0, 0) : forceHost; + fourk = fourk === VOID ? new Long(0, 0) : fourk; + this.qn = qn; + this.fnver = fnver; + this.fnval = fnval; + this.forceHost = forceHost; + this.fourk = fourk; + } + get_qn_kntnq2_k$() { + return this.qn; + } + get_fnver_irh6sy_k$() { + return this.fnver; + } + get_fnval_irh6pc_k$() { + return this.fnval; + } + get_forceHost_xs29oq_k$() { + return this.forceHost; + } + get_fourk_irhtcs_k$() { + return this.fourk; + } + component1_7eebsc_k$() { + return this.qn; + } + component2_7eebsb_k$() { + return this.fnver; + } + component3_7eebsa_k$() { + return this.fnval; + } + component4_7eebs9_k$() { + return this.forceHost; + } + component5_7eebs8_k$() { + return this.fourk; + } + copy_vok3aj_k$(qn, fnver, fnval, forceHost, fourk) { + return new KPlayerPreloadParams(qn, fnver, fnval, forceHost, fourk); + } + copy(qn, fnver, fnval, forceHost, fourk, $super) { + qn = qn === VOID ? this.qn : qn; + fnver = fnver === VOID ? this.fnver : fnver; + fnval = fnval === VOID ? this.fnval : fnval; + forceHost = forceHost === VOID ? this.forceHost : forceHost; + fourk = fourk === VOID ? this.fourk : fourk; + return this.copy_vok3aj_k$(qn, fnver, fnval, forceHost, fourk); + } + toString() { + return 'KPlayerPreloadParams(qn=' + this.qn.toString() + ', fnver=' + this.fnver.toString() + ', fnval=' + this.fnval.toString() + ', forceHost=' + this.forceHost.toString() + ', fourk=' + this.fourk.toString() + ')'; + } + hashCode() { + var result = this.qn.hashCode(); + result = imul(result, 31) + this.fnver.hashCode() | 0; + result = imul(result, 31) + this.fnval.hashCode() | 0; + result = imul(result, 31) + this.forceHost.hashCode() | 0; + result = imul(result, 31) + this.fourk.hashCode() | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KPlayerPreloadParams)) + return false; + var tmp0_other_with_cast = other instanceof KPlayerPreloadParams ? other : THROW_CCE(); + if (!this.qn.equals(tmp0_other_with_cast.qn)) + return false; + if (!this.fnver.equals(tmp0_other_with_cast.fnver)) + return false; + if (!this.fnval.equals(tmp0_other_with_cast.fnval)) + return false; + if (!this.forceHost.equals(tmp0_other_with_cast.forceHost)) + return false; + if (!this.fourk.equals(tmp0_other_with_cast.fourk)) + return false; + return true; + } + static new_com_bapis_bilibili_app_interfaces_v1_KPlayerPreloadParams_i8rt3w_k$(seen1, qn, fnver, fnval, forceHost, fourk, serializationConstructorMarker) { + Companion_instance_1210; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1197().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.qn = new Long(0, 0); + else + $this.qn = qn; + if (0 === (seen1 & 2)) + $this.fnver = new Long(0, 0); + else + $this.fnver = fnver; + if (0 === (seen1 & 4)) + $this.fnval = new Long(0, 0); + else + $this.fnval = fnval; + if (0 === (seen1 & 8)) + $this.forceHost = new Long(0, 0); + else + $this.forceHost = forceHost; + if (0 === (seen1 & 16)) + $this.fourk = new Long(0, 0); + else + $this.fourk = fourk; + return $this; + } + } + class Companion_1211 { + constructor() { + this.targetPath = '/bilibili.app.interface.v1.ClearReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1198(); + } + } + class $serializer_1198 { + constructor() { + $serializer_instance_1198 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.interfaces.v1.KClearReq', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('business', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KClearReq.new_com_bapis_bilibili_app_interfaces_v1_KClearReq_ze819w_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_w8zmmv_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.business === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.business); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_w8zmmv_k$(encoder, value instanceof KClearReq ? value : THROW_CCE()); + } + } + class KClearReq { + constructor(business) { + Companion_instance_1211; + business = business === VOID ? '' : business; + this.business = business; + } + get_business_k9dqx5_k$() { + return this.business; + } + component1_7eebsc_k$() { + return this.business; + } + copy_a35qlh_k$(business) { + return new KClearReq(business); + } + copy(business, $super) { + business = business === VOID ? this.business : business; + return this.copy_a35qlh_k$(business); + } + toString() { + return 'KClearReq(business=' + this.business + ')'; + } + hashCode() { + return getStringHashCode(this.business); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KClearReq)) + return false; + var tmp0_other_with_cast = other instanceof KClearReq ? other : THROW_CCE(); + if (!(this.business === tmp0_other_with_cast.business)) + return false; + return true; + } + static new_com_bapis_bilibili_app_interfaces_v1_KClearReq_ze819w_k$(seen1, business, serializationConstructorMarker) { + Companion_instance_1211; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1198().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.business = ''; + else + $this.business = business; + return $this; + } + } + class Companion_1212 { + constructor() { + this.targetPath = '/bilibili.app.interface.v1.LatestHistoryReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1199(); + } + } + class $serializer_1199 { + constructor() { + $serializer_instance_1199 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.interfaces.v1.KLatestHistoryReq', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('business', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('playerPreload', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), get_nullable($serializer_getInstance_1197())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_1197(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_1197(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KLatestHistoryReq.new_com_bapis_bilibili_app_interfaces_v1_KLatestHistoryReq_5dnf46_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_ee8tt5_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.business === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.business); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.playerPreload == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_1197(), value.playerPreload); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_ee8tt5_k$(encoder, value instanceof KLatestHistoryReq ? value : THROW_CCE()); + } + } + class KLatestHistoryReq { + constructor(business, playerPreload) { + Companion_instance_1212; + business = business === VOID ? '' : business; + playerPreload = playerPreload === VOID ? null : playerPreload; + this.business = business; + this.playerPreload = playerPreload; + } + get_business_k9dqx5_k$() { + return this.business; + } + get_playerPreload_xmyji9_k$() { + return this.playerPreload; + } + component1_7eebsc_k$() { + return this.business; + } + component2_7eebsb_k$() { + return this.playerPreload; + } + copy_hohw81_k$(business, playerPreload) { + return new KLatestHistoryReq(business, playerPreload); + } + copy(business, playerPreload, $super) { + business = business === VOID ? this.business : business; + playerPreload = playerPreload === VOID ? this.playerPreload : playerPreload; + return this.copy_hohw81_k$(business, playerPreload); + } + toString() { + return 'KLatestHistoryReq(business=' + this.business + ', playerPreload=' + this.playerPreload + ')'; + } + hashCode() { + var result = getStringHashCode(this.business); + result = imul(result, 31) + (this.playerPreload == null ? 0 : this.playerPreload.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KLatestHistoryReq)) + return false; + var tmp0_other_with_cast = other instanceof KLatestHistoryReq ? other : THROW_CCE(); + if (!(this.business === tmp0_other_with_cast.business)) + return false; + if (!equals(this.playerPreload, tmp0_other_with_cast.playerPreload)) + return false; + return true; + } + static new_com_bapis_bilibili_app_interfaces_v1_KLatestHistoryReq_5dnf46_k$(seen1, business, playerPreload, serializationConstructorMarker) { + Companion_instance_1212; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1199().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.business = ''; + else + $this.business = business; + if (0 === (seen1 & 2)) + $this.playerPreload = null; + else + $this.playerPreload = playerPreload; + return $this; + } + } + class Companion_1213 { + constructor() { + this.targetPath = '/bilibili.app.interface.v1.LatestHistoryReply'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1200(); + } + } + class $serializer_1200 { + constructor() { + $serializer_instance_1200 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.interfaces.v1.KLatestHistoryReply', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('items', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('scene', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('rtime', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('flag', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_1181()), StringSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = new Long(0, 0); + var tmp7_local3 = null; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_1181(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_1181(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KLatestHistoryReply.new_com_bapis_bilibili_app_interfaces_v1_KLatestHistoryReply_o7du16_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_ckcsvp_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.items == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_1181(), value.items); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.scene === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.scene); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.rtime.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.rtime); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.flag === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.flag); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_ckcsvp_k$(encoder, value instanceof KLatestHistoryReply ? value : THROW_CCE()); + } + } + class KLatestHistoryReply { + constructor(items, scene, rtime, flag) { + Companion_instance_1213; + items = items === VOID ? null : items; + scene = scene === VOID ? '' : scene; + rtime = rtime === VOID ? new Long(0, 0) : rtime; + flag = flag === VOID ? '' : flag; + this.items = items; + this.scene = scene; + this.rtime = rtime; + this.flag = flag; + } + get_items_it823b_k$() { + return this.items; + } + get_scene_iyf59f_k$() { + return this.scene; + } + get_rtime_iy6ady_k$() { + return this.rtime; + } + get_flag_wom2lx_k$() { + return this.flag; + } + component1_7eebsc_k$() { + return this.items; + } + component2_7eebsb_k$() { + return this.scene; + } + component3_7eebsa_k$() { + return this.rtime; + } + component4_7eebs9_k$() { + return this.flag; + } + copy_s2crrm_k$(items, scene, rtime, flag) { + return new KLatestHistoryReply(items, scene, rtime, flag); + } + copy(items, scene, rtime, flag, $super) { + items = items === VOID ? this.items : items; + scene = scene === VOID ? this.scene : scene; + rtime = rtime === VOID ? this.rtime : rtime; + flag = flag === VOID ? this.flag : flag; + return this.copy_s2crrm_k$(items, scene, rtime, flag); + } + toString() { + return 'KLatestHistoryReply(items=' + this.items + ', scene=' + this.scene + ', rtime=' + this.rtime.toString() + ', flag=' + this.flag + ')'; + } + hashCode() { + var result = this.items == null ? 0 : this.items.hashCode(); + result = imul(result, 31) + getStringHashCode(this.scene) | 0; + result = imul(result, 31) + this.rtime.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.flag) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KLatestHistoryReply)) + return false; + var tmp0_other_with_cast = other instanceof KLatestHistoryReply ? other : THROW_CCE(); + if (!equals(this.items, tmp0_other_with_cast.items)) + return false; + if (!(this.scene === tmp0_other_with_cast.scene)) + return false; + if (!this.rtime.equals(tmp0_other_with_cast.rtime)) + return false; + if (!(this.flag === tmp0_other_with_cast.flag)) + return false; + return true; + } + static new_com_bapis_bilibili_app_interfaces_v1_KLatestHistoryReply_o7du16_k$(seen1, items, scene, rtime, flag, serializationConstructorMarker) { + Companion_instance_1213; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1200().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.items = null; + else + $this.items = items; + if (0 === (seen1 & 2)) + $this.scene = ''; + else + $this.scene = scene; + if (0 === (seen1 & 4)) + $this.rtime = new Long(0, 0); + else + $this.rtime = rtime; + if (0 === (seen1 & 8)) + $this.flag = ''; + else + $this.flag = flag; + return $this; + } + } + class Companion_1214 { + constructor() { + Companion_instance_1214 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KCommentType$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KCommentType$Companion$_anonymous__jcfhdr); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_148(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.interfaces.v1.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KCommentType_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.interfaces.v1.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KCommentType with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_148(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_1201 { + constructor() { + $serializer_instance_1201 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.interfaces.v1.KCommentType', 4); + tmp0_serialDesc.addElement_5pzumi_k$('NONE', false); + tmp0_serialDesc.addElement_5pzumi_k$('REDIRECT', false); + tmp0_serialDesc.addElement_5pzumi_k$('JUDGE', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_148()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_4jy970_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_4jy970_k$(encoder, value instanceof KCommentType ? value : THROW_CCE()); + } + } + class KCommentType extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_1215 { + constructor() { + Companion_instance_1215 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KButType$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KButType$Companion$_anonymous__myumzl); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_149(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.interfaces.v1.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KButType_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.interfaces.v1.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KButType with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_149(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_1202 { + constructor() { + $serializer_instance_1202 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.interfaces.v1.KButType', 4); + tmp0_serialDesc.addElement_5pzumi_k$('BUT_INVALID', false); + tmp0_serialDesc.addElement_5pzumi_k$('BUT_REDIRECT', false); + tmp0_serialDesc.addElement_5pzumi_k$('BUT_LIKE', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_149()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_lf2cru_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_lf2cru_k$(encoder, value instanceof KButType ? value : THROW_CCE()); + } + } + class KButType extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_1216 { + constructor() { + Companion_instance_1216 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KTabType$Companion$values$delegate$lambda_0); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KTabType$Companion$_anonymous__rajoqd_0); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_150(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.interfaces.v1.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KTabType_UNRECOGNIZED_getInstance_0() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.interfaces.v1.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KTabType with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_150(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_1203 { + constructor() { + $serializer_instance_1203 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.interfaces.v1.KTabType', 6); + tmp0_serialDesc.addElement_5pzumi_k$('TAB_INVALID', false); + tmp0_serialDesc.addElement_5pzumi_k$('TAB_OGV_DETAIL', false); + tmp0_serialDesc.addElement_5pzumi_k$('TAB_OGV_REPLY', false); + tmp0_serialDesc.addElement_5pzumi_k$('TAB_FEED_BID', false); + tmp0_serialDesc.addElement_5pzumi_k$('TAB_FEED_SMALL', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_150()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_ux76om_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_ux76om_k$(encoder, value instanceof KTabType_0 ? value : THROW_CCE()); + } + } + class KTabType_0 extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_1217 { + constructor() { + this.targetPath = '/bilibili.app.interface.v1.MediaCommentReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1204(); + } + } + class $serializer_1204 { + constructor() { + $serializer_instance_1204 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.interfaces.v1.KMediaCommentReq', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('id', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KMediaCommentReq.new_com_bapis_bilibili_app_interfaces_v1_KMediaCommentReq_s2o112_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_6ngw6d_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.id === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.id); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_6ngw6d_k$(encoder, value instanceof KMediaCommentReq ? value : THROW_CCE()); + } + } + class KMediaCommentReq { + constructor(id) { + Companion_instance_1217; + id = id === VOID ? '' : id; + this.id = id; + } + get_id_kntnx8_k$() { + return this.id; + } + component1_7eebsc_k$() { + return this.id; + } + copy_a35qlh_k$(id) { + return new KMediaCommentReq(id); + } + copy(id, $super) { + id = id === VOID ? this.id : id; + return this.copy_a35qlh_k$(id); + } + toString() { + return 'KMediaCommentReq(id=' + this.id + ')'; + } + hashCode() { + return getStringHashCode(this.id); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KMediaCommentReq)) + return false; + var tmp0_other_with_cast = other instanceof KMediaCommentReq ? other : THROW_CCE(); + if (!(this.id === tmp0_other_with_cast.id)) + return false; + return true; + } + static new_com_bapis_bilibili_app_interfaces_v1_KMediaCommentReq_s2o112_k$(seen1, id, serializationConstructorMarker) { + Companion_instance_1217; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1204().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.id = ''; + else + $this.id = id; + return $this; + } + } + class Companion_1218 { + constructor() { + this.targetPath = '/bilibili.app.interface.v1.MediaCommentReply'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1205(); + } + } + class $serializer_1205 { + constructor() { + $serializer_instance_1205 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.interfaces.v1.KMediaCommentReply', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('errMsg', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KMediaCommentReply.new_com_bapis_bilibili_app_interfaces_v1_KMediaCommentReply_2s2lvi_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_t1hr8x_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.errMsg === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.errMsg); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_t1hr8x_k$(encoder, value instanceof KMediaCommentReply ? value : THROW_CCE()); + } + } + class KMediaCommentReply { + constructor(errMsg) { + Companion_instance_1218; + errMsg = errMsg === VOID ? '' : errMsg; + this.errMsg = errMsg; + } + get_errMsg_czyxgl_k$() { + return this.errMsg; + } + component1_7eebsc_k$() { + return this.errMsg; + } + copy_a35qlh_k$(errMsg) { + return new KMediaCommentReply(errMsg); + } + copy(errMsg, $super) { + errMsg = errMsg === VOID ? this.errMsg : errMsg; + return this.copy_a35qlh_k$(errMsg); + } + toString() { + return 'KMediaCommentReply(errMsg=' + this.errMsg + ')'; + } + hashCode() { + return getStringHashCode(this.errMsg); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KMediaCommentReply)) + return false; + var tmp0_other_with_cast = other instanceof KMediaCommentReply ? other : THROW_CCE(); + if (!(this.errMsg === tmp0_other_with_cast.errMsg)) + return false; + return true; + } + static new_com_bapis_bilibili_app_interfaces_v1_KMediaCommentReply_2s2lvi_k$(seen1, errMsg, serializationConstructorMarker) { + Companion_instance_1218; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1205().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.errMsg = ''; + else + $this.errMsg = errMsg; + return $this; + } + } + class Companion_1219 { + constructor() { + this.targetPath = '/bilibili.app.interface.v1.CommentItem'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1206(); + } + } + class $serializer_1206 { + constructor() { + $serializer_instance_1206 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.interfaces.v1.KCommentItem', this, 6); + tmp0_serialDesc.addElement_5pzumi_k$('icon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('url', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('actionType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('id', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = 0; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp10_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + } else + while (tmp1_flag) { + tmp2_index = tmp10_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp10_input.endStructure_1xqz0n_k$(tmp0_desc); + return KCommentItem.new_com_bapis_bilibili_app_interfaces_v1_KCommentItem_fenaqj_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); + } + serialize_6pb6l0_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.icon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.icon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.url === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.url); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.type === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 3, value.type); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.actionType === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.actionType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.id === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.id); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_6pb6l0_k$(encoder, value instanceof KCommentItem ? value : THROW_CCE()); + } + } + class KCommentItem { + constructor(icon, url, title, type, actionType, id) { + Companion_instance_1219; + icon = icon === VOID ? '' : icon; + url = url === VOID ? '' : url; + title = title === VOID ? '' : title; + type = type === VOID ? 0 : type; + actionType = actionType === VOID ? '' : actionType; + id = id === VOID ? '' : id; + this.icon = icon; + this.url = url; + this.title = title; + this.type = type; + this.actionType = actionType; + this.id = id; + } + get_icon_wont8i_k$() { + return this.icon; + } + get_url_18iuii_k$() { + return this.url; + } + get_title_iz32un_k$() { + return this.title; + } + get_type_wovaf7_k$() { + return this.type; + } + get_actionType_agb5zt_k$() { + return this.actionType; + } + get_id_kntnx8_k$() { + return this.id; + } + typeEnum() { + return Companion_getInstance_1214().fromValue(this.type); + } + component1_7eebsc_k$() { + return this.icon; + } + component2_7eebsb_k$() { + return this.url; + } + component3_7eebsa_k$() { + return this.title; + } + component4_7eebs9_k$() { + return this.type; + } + component5_7eebs8_k$() { + return this.actionType; + } + component6_7eebs7_k$() { + return this.id; + } + copy_iwz6wd_k$(icon, url, title, type, actionType, id) { + return new KCommentItem(icon, url, title, type, actionType, id); + } + copy(icon, url, title, type, actionType, id, $super) { + icon = icon === VOID ? this.icon : icon; + url = url === VOID ? this.url : url; + title = title === VOID ? this.title : title; + type = type === VOID ? this.type : type; + actionType = actionType === VOID ? this.actionType : actionType; + id = id === VOID ? this.id : id; + return this.copy_iwz6wd_k$(icon, url, title, type, actionType, id); + } + toString() { + return 'KCommentItem(icon=' + this.icon + ', url=' + this.url + ', title=' + this.title + ', type=' + this.type + ', actionType=' + this.actionType + ', id=' + this.id + ')'; + } + hashCode() { + var result = getStringHashCode(this.icon); + result = imul(result, 31) + getStringHashCode(this.url) | 0; + result = imul(result, 31) + getStringHashCode(this.title) | 0; + result = imul(result, 31) + this.type | 0; + result = imul(result, 31) + getStringHashCode(this.actionType) | 0; + result = imul(result, 31) + getStringHashCode(this.id) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KCommentItem)) + return false; + var tmp0_other_with_cast = other instanceof KCommentItem ? other : THROW_CCE(); + if (!(this.icon === tmp0_other_with_cast.icon)) + return false; + if (!(this.url === tmp0_other_with_cast.url)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.type === tmp0_other_with_cast.type)) + return false; + if (!(this.actionType === tmp0_other_with_cast.actionType)) + return false; + if (!(this.id === tmp0_other_with_cast.id)) + return false; + return true; + } + static new_com_bapis_bilibili_app_interfaces_v1_KCommentItem_fenaqj_k$(seen1, icon, url, title, type, actionType, id, serializationConstructorMarker) { + Companion_instance_1219; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1206().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.icon = ''; + else + $this.icon = icon; + if (0 === (seen1 & 2)) + $this.url = ''; + else + $this.url = url; + if (0 === (seen1 & 4)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 8)) + $this.type = 0; + else + $this.type = type; + if (0 === (seen1 & 16)) + $this.actionType = ''; + else + $this.actionType = actionType; + if (0 === (seen1 & 32)) + $this.id = ''; + else + $this.id = id; + return $this; + } + } + class Companion_1220 { + constructor() { + this.targetPath = '/bilibili.app.interface.v1.MediaRelationReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1207(); + } + } + class $serializer_1207 { + constructor() { + $serializer_instance_1207 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.interfaces.v1.KMediaRelationReq', this, 5); + tmp0_serialDesc.addElement_5pzumi_k$('bizId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('bizType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('feedId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('offset', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('ps', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = new Long(0, 0); + var tmp6_local2 = new Long(0, 0); + var tmp7_local3 = null; + var tmp8_local4 = 0; + var tmp9_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp9_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + } else + while (tmp1_flag) { + tmp2_index = tmp9_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp9_input.endStructure_1xqz0n_k$(tmp0_desc); + return KMediaRelationReq.new_com_bapis_bilibili_app_interfaces_v1_KMediaRelationReq_5o2arr_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); + } + serialize_gpx0ay_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.bizId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.bizId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.bizType.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.bizType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.feedId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.feedId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.offset === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.offset); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.ps === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 4, value.ps); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_gpx0ay_k$(encoder, value instanceof KMediaRelationReq ? value : THROW_CCE()); + } + } + class KMediaRelationReq { + constructor(bizId, bizType, feedId, offset, ps) { + Companion_instance_1220; + bizId = bizId === VOID ? new Long(0, 0) : bizId; + bizType = bizType === VOID ? new Long(0, 0) : bizType; + feedId = feedId === VOID ? new Long(0, 0) : feedId; + offset = offset === VOID ? '' : offset; + ps = ps === VOID ? 0 : ps; + this.bizId = bizId; + this.bizType = bizType; + this.feedId = feedId; + this.offset = offset; + this.ps = ps; + } + get_bizId_ip6vs5_k$() { + return this.bizId; + } + get_bizType_cjyf0_k$() { + return this.bizType; + } + get_feedId_d9ndcy_k$() { + return this.feedId; + } + get_offset_hjmqak_k$() { + return this.offset; + } + get_ps_kntnqs_k$() { + return this.ps; + } + component1_7eebsc_k$() { + return this.bizId; + } + component2_7eebsb_k$() { + return this.bizType; + } + component3_7eebsa_k$() { + return this.feedId; + } + component4_7eebs9_k$() { + return this.offset; + } + component5_7eebs8_k$() { + return this.ps; + } + copy_pm5w1f_k$(bizId, bizType, feedId, offset, ps) { + return new KMediaRelationReq(bizId, bizType, feedId, offset, ps); + } + copy(bizId, bizType, feedId, offset, ps, $super) { + bizId = bizId === VOID ? this.bizId : bizId; + bizType = bizType === VOID ? this.bizType : bizType; + feedId = feedId === VOID ? this.feedId : feedId; + offset = offset === VOID ? this.offset : offset; + ps = ps === VOID ? this.ps : ps; + return this.copy_pm5w1f_k$(bizId, bizType, feedId, offset, ps); + } + toString() { + return 'KMediaRelationReq(bizId=' + this.bizId.toString() + ', bizType=' + this.bizType.toString() + ', feedId=' + this.feedId.toString() + ', offset=' + this.offset + ', ps=' + this.ps + ')'; + } + hashCode() { + var result = this.bizId.hashCode(); + result = imul(result, 31) + this.bizType.hashCode() | 0; + result = imul(result, 31) + this.feedId.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.offset) | 0; + result = imul(result, 31) + this.ps | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KMediaRelationReq)) + return false; + var tmp0_other_with_cast = other instanceof KMediaRelationReq ? other : THROW_CCE(); + if (!this.bizId.equals(tmp0_other_with_cast.bizId)) + return false; + if (!this.bizType.equals(tmp0_other_with_cast.bizType)) + return false; + if (!this.feedId.equals(tmp0_other_with_cast.feedId)) + return false; + if (!(this.offset === tmp0_other_with_cast.offset)) + return false; + if (!(this.ps === tmp0_other_with_cast.ps)) + return false; + return true; + } + static new_com_bapis_bilibili_app_interfaces_v1_KMediaRelationReq_5o2arr_k$(seen1, bizId, bizType, feedId, offset, ps, serializationConstructorMarker) { + Companion_instance_1220; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1207().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.bizId = new Long(0, 0); + else + $this.bizId = bizId; + if (0 === (seen1 & 2)) + $this.bizType = new Long(0, 0); + else + $this.bizType = bizType; + if (0 === (seen1 & 4)) + $this.feedId = new Long(0, 0); + else + $this.feedId = feedId; + if (0 === (seen1 & 8)) + $this.offset = ''; + else + $this.offset = offset; + if (0 === (seen1 & 16)) + $this.ps = 0; + else + $this.ps = ps; + return $this; + } + } + class Companion_1221 { + constructor() { + Companion_instance_1221 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, new ArrayListSerializer($serializer_getInstance_1213())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.interface.v1.MediaRelationReply'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1208(); + } + } + class $serializer_1208 { + constructor() { + $serializer_instance_1208 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.interfaces.v1.KMediaRelationReply', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('offset', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('hasMore', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('list', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_1221().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), BooleanSerializer_getInstance(), tmp0_cached[2]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = false; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp8_cached = Companion_getInstance_1221().$childSerializers_1; + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp8_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp8_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KMediaRelationReply.new_com_bapis_bilibili_app_interfaces_v1_KMediaRelationReply_kv9wg0_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_egz1he_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_1221().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.offset === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.offset); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.hasMore === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 1, value.hasMore); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !equals(value.list, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 2, tmp2_cached[2], value.list); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_egz1he_k$(encoder, value instanceof KMediaRelationReply ? value : THROW_CCE()); + } + } + class KMediaRelationReply { + constructor(offset, hasMore, list) { + Companion_getInstance_1221(); + offset = offset === VOID ? '' : offset; + hasMore = hasMore === VOID ? false : hasMore; + list = list === VOID ? emptyList() : list; + this.offset = offset; + this.hasMore = hasMore; + this.list = list; + } + get_offset_hjmqak_k$() { + return this.offset; + } + get_hasMore_csdhd2_k$() { + return this.hasMore; + } + get_list_wopuqv_k$() { + return this.list; + } + component1_7eebsc_k$() { + return this.offset; + } + component2_7eebsb_k$() { + return this.hasMore; + } + component3_7eebsa_k$() { + return this.list; + } + copy_p69u75_k$(offset, hasMore, list) { + return new KMediaRelationReply(offset, hasMore, list); + } + copy(offset, hasMore, list, $super) { + offset = offset === VOID ? this.offset : offset; + hasMore = hasMore === VOID ? this.hasMore : hasMore; + list = list === VOID ? this.list : list; + return this.copy_p69u75_k$(offset, hasMore, list); + } + toString() { + return 'KMediaRelationReply(offset=' + this.offset + ', hasMore=' + this.hasMore + ', list=' + this.list + ')'; + } + hashCode() { + var result = getStringHashCode(this.offset); + result = imul(result, 31) + getBooleanHashCode(this.hasMore) | 0; + result = imul(result, 31) + hashCode(this.list) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KMediaRelationReply)) + return false; + var tmp0_other_with_cast = other instanceof KMediaRelationReply ? other : THROW_CCE(); + if (!(this.offset === tmp0_other_with_cast.offset)) + return false; + if (!(this.hasMore === tmp0_other_with_cast.hasMore)) + return false; + if (!equals(this.list, tmp0_other_with_cast.list)) + return false; + return true; + } + static new_com_bapis_bilibili_app_interfaces_v1_KMediaRelationReply_kv9wg0_k$(seen1, offset, hasMore, list, serializationConstructorMarker) { + Companion_getInstance_1221(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1208().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.offset = ''; + else + $this.offset = offset; + if (0 === (seen1 & 2)) + $this.hasMore = false; + else + $this.hasMore = hasMore; + if (0 === (seen1 & 4)) + $this.list = emptyList(); + else + $this.list = list; + return $this; + } + } + class Companion_1222 { + constructor() { + this.targetPath = '/bilibili.app.interface.v1.MediaFollowReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1209(); + } + } + class $serializer_1209 { + constructor() { + $serializer_instance_1209 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.interfaces.v1.KMediaFollowReq', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('id', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = 0; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KMediaFollowReq.new_com_bapis_bilibili_app_interfaces_v1_KMediaFollowReq_sfiuqc_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_2zof7l_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.id === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.id); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.type === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.type); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_2zof7l_k$(encoder, value instanceof KMediaFollowReq ? value : THROW_CCE()); + } + } + class KMediaFollowReq { + constructor(id, type) { + Companion_instance_1222; + id = id === VOID ? '' : id; + type = type === VOID ? 0 : type; + this.id = id; + this.type = type; + } + get_id_kntnx8_k$() { + return this.id; + } + get_type_wovaf7_k$() { + return this.type; + } + typeEnum() { + return Companion_getInstance_1215().fromValue(this.type); + } + component1_7eebsc_k$() { + return this.id; + } + component2_7eebsb_k$() { + return this.type; + } + copy_1yzwer_k$(id, type) { + return new KMediaFollowReq(id, type); + } + copy(id, type, $super) { + id = id === VOID ? this.id : id; + type = type === VOID ? this.type : type; + return this.copy_1yzwer_k$(id, type); + } + toString() { + return 'KMediaFollowReq(id=' + this.id + ', type=' + this.type + ')'; + } + hashCode() { + var result = getStringHashCode(this.id); + result = imul(result, 31) + this.type | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KMediaFollowReq)) + return false; + var tmp0_other_with_cast = other instanceof KMediaFollowReq ? other : THROW_CCE(); + if (!(this.id === tmp0_other_with_cast.id)) + return false; + if (!(this.type === tmp0_other_with_cast.type)) + return false; + return true; + } + static new_com_bapis_bilibili_app_interfaces_v1_KMediaFollowReq_sfiuqc_k$(seen1, id, type, serializationConstructorMarker) { + Companion_instance_1222; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1209().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.id = ''; + else + $this.id = id; + if (0 === (seen1 & 2)) + $this.type = 0; + else + $this.type = type; + return $this; + } + } + class Companion_1223 { + constructor() { + this.targetPath = '/bilibili.app.interface.v1.MediaFollowReply'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1210(); + } + } + class $serializer_1210 { + constructor() { + $serializer_instance_1210 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.interfaces.v1.KMediaFollowReply', this, 0); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = []; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp4_input.decodeSequentially_xlblqy_k$()) { + } else + while (tmp1_flag) { + tmp2_index = tmp4_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + if (tmp2_index === -1) + tmp1_flag = false; + else + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + tmp4_input.endStructure_1xqz0n_k$(tmp0_desc); + return KMediaFollowReply.new_com_bapis_bilibili_app_interfaces_v1_KMediaFollowReply_p2qyb3_k$(tmp3_bitMask0, null); + } + serialize_8j0gc3_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_8j0gc3_k$(encoder, value instanceof KMediaFollowReply ? value : THROW_CCE()); + } + } + class KMediaFollowReply { + constructor() { + Companion_instance_1223; + } + static new_com_bapis_bilibili_app_interfaces_v1_KMediaFollowReply_p2qyb3_k$(seen1, serializationConstructorMarker) { + Companion_instance_1223; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1210().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + return $this; + } + } + class Companion_1224 { + constructor() { + this.targetPath = '/bilibili.app.interface.v1.MediaVideoReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1211(); + } + } + class $serializer_1211 { + constructor() { + $serializer_instance_1211 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.interfaces.v1.KMediaVideoReq', this, 6); + tmp0_serialDesc.addElement_5pzumi_k$('bizId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('bizType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('feedId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('offset', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('ps', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('playerArgs', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), get_nullable($serializer_getInstance_152())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = new Long(0, 0); + var tmp6_local2 = new Long(0, 0); + var tmp7_local3 = null; + var tmp8_local4 = 0; + var tmp9_local5 = null; + var tmp10_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp10_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_152(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + } else + while (tmp1_flag) { + tmp2_index = tmp10_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_152(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp10_input.endStructure_1xqz0n_k$(tmp0_desc); + return KMediaVideoReq.new_com_bapis_bilibili_app_interfaces_v1_KMediaVideoReq_x0gfb1_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); + } + serialize_1mov07_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.bizId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.bizId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.bizType.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.bizType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.feedId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.feedId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.offset === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.offset); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.ps === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 4, value.ps); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.playerArgs == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 5, $serializer_getInstance_152(), value.playerArgs); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_1mov07_k$(encoder, value instanceof KMediaVideoReq ? value : THROW_CCE()); + } + } + class KMediaVideoReq { + constructor(bizId, bizType, feedId, offset, ps, playerArgs) { + Companion_instance_1224; + bizId = bizId === VOID ? new Long(0, 0) : bizId; + bizType = bizType === VOID ? new Long(0, 0) : bizType; + feedId = feedId === VOID ? new Long(0, 0) : feedId; + offset = offset === VOID ? '' : offset; + ps = ps === VOID ? 0 : ps; + playerArgs = playerArgs === VOID ? null : playerArgs; + this.bizId = bizId; + this.bizType = bizType; + this.feedId = feedId; + this.offset = offset; + this.ps = ps; + this.playerArgs = playerArgs; + } + get_bizId_ip6vs5_k$() { + return this.bizId; + } + get_bizType_cjyf0_k$() { + return this.bizType; + } + get_feedId_d9ndcy_k$() { + return this.feedId; + } + get_offset_hjmqak_k$() { + return this.offset; + } + get_ps_kntnqs_k$() { + return this.ps; + } + get_playerArgs_eh86hz_k$() { + return this.playerArgs; + } + component1_7eebsc_k$() { + return this.bizId; + } + component2_7eebsb_k$() { + return this.bizType; + } + component3_7eebsa_k$() { + return this.feedId; + } + component4_7eebs9_k$() { + return this.offset; + } + component5_7eebs8_k$() { + return this.ps; + } + component6_7eebs7_k$() { + return this.playerArgs; + } + copy_zceh2w_k$(bizId, bizType, feedId, offset, ps, playerArgs) { + return new KMediaVideoReq(bizId, bizType, feedId, offset, ps, playerArgs); + } + copy(bizId, bizType, feedId, offset, ps, playerArgs, $super) { + bizId = bizId === VOID ? this.bizId : bizId; + bizType = bizType === VOID ? this.bizType : bizType; + feedId = feedId === VOID ? this.feedId : feedId; + offset = offset === VOID ? this.offset : offset; + ps = ps === VOID ? this.ps : ps; + playerArgs = playerArgs === VOID ? this.playerArgs : playerArgs; + return this.copy_zceh2w_k$(bizId, bizType, feedId, offset, ps, playerArgs); + } + toString() { + return 'KMediaVideoReq(bizId=' + this.bizId.toString() + ', bizType=' + this.bizType.toString() + ', feedId=' + this.feedId.toString() + ', offset=' + this.offset + ', ps=' + this.ps + ', playerArgs=' + this.playerArgs + ')'; + } + hashCode() { + var result = this.bizId.hashCode(); + result = imul(result, 31) + this.bizType.hashCode() | 0; + result = imul(result, 31) + this.feedId.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.offset) | 0; + result = imul(result, 31) + this.ps | 0; + result = imul(result, 31) + (this.playerArgs == null ? 0 : this.playerArgs.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KMediaVideoReq)) + return false; + var tmp0_other_with_cast = other instanceof KMediaVideoReq ? other : THROW_CCE(); + if (!this.bizId.equals(tmp0_other_with_cast.bizId)) + return false; + if (!this.bizType.equals(tmp0_other_with_cast.bizType)) + return false; + if (!this.feedId.equals(tmp0_other_with_cast.feedId)) + return false; + if (!(this.offset === tmp0_other_with_cast.offset)) + return false; + if (!(this.ps === tmp0_other_with_cast.ps)) + return false; + if (!equals(this.playerArgs, tmp0_other_with_cast.playerArgs)) + return false; + return true; + } + static new_com_bapis_bilibili_app_interfaces_v1_KMediaVideoReq_x0gfb1_k$(seen1, bizId, bizType, feedId, offset, ps, playerArgs, serializationConstructorMarker) { + Companion_instance_1224; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1211().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.bizId = new Long(0, 0); + else + $this.bizId = bizId; + if (0 === (seen1 & 2)) + $this.bizType = new Long(0, 0); + else + $this.bizType = bizType; + if (0 === (seen1 & 4)) + $this.feedId = new Long(0, 0); + else + $this.feedId = feedId; + if (0 === (seen1 & 8)) + $this.offset = ''; + else + $this.offset = offset; + if (0 === (seen1 & 16)) + $this.ps = 0; + else + $this.ps = ps; + if (0 === (seen1 & 32)) + $this.playerArgs = null; + else + $this.playerArgs = playerArgs; + return $this; + } + } + class Companion_1225 { + constructor() { + Companion_instance_1225 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, new ArrayListSerializer($serializer_getInstance_1214())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.interface.v1.MediaVideoReply'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1212(); + } + } + class $serializer_1212 { + constructor() { + $serializer_instance_1212 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.interfaces.v1.KMediaVideoReply', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('offset', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('hasMore', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('list', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_1225().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), BooleanSerializer_getInstance(), tmp0_cached[2]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = false; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp8_cached = Companion_getInstance_1225().$childSerializers_1; + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp8_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp8_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KMediaVideoReply.new_com_bapis_bilibili_app_interfaces_v1_KMediaVideoReply_uap6hs_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_pahahh_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_1225().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.offset === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.offset); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.hasMore === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 1, value.hasMore); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !equals(value.list, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 2, tmp2_cached[2], value.list); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_pahahh_k$(encoder, value instanceof KMediaVideoReply ? value : THROW_CCE()); + } + } + class KMediaVideoReply { + constructor(offset, hasMore, list) { + Companion_getInstance_1225(); + offset = offset === VOID ? '' : offset; + hasMore = hasMore === VOID ? false : hasMore; + list = list === VOID ? emptyList() : list; + this.offset = offset; + this.hasMore = hasMore; + this.list = list; + } + get_offset_hjmqak_k$() { + return this.offset; + } + get_hasMore_csdhd2_k$() { + return this.hasMore; + } + get_list_wopuqv_k$() { + return this.list; + } + component1_7eebsc_k$() { + return this.offset; + } + component2_7eebsb_k$() { + return this.hasMore; + } + component3_7eebsa_k$() { + return this.list; + } + copy_ttomxy_k$(offset, hasMore, list) { + return new KMediaVideoReply(offset, hasMore, list); + } + copy(offset, hasMore, list, $super) { + offset = offset === VOID ? this.offset : offset; + hasMore = hasMore === VOID ? this.hasMore : hasMore; + list = list === VOID ? this.list : list; + return this.copy_ttomxy_k$(offset, hasMore, list); + } + toString() { + return 'KMediaVideoReply(offset=' + this.offset + ', hasMore=' + this.hasMore + ', list=' + this.list + ')'; + } + hashCode() { + var result = getStringHashCode(this.offset); + result = imul(result, 31) + getBooleanHashCode(this.hasMore) | 0; + result = imul(result, 31) + hashCode(this.list) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KMediaVideoReply)) + return false; + var tmp0_other_with_cast = other instanceof KMediaVideoReply ? other : THROW_CCE(); + if (!(this.offset === tmp0_other_with_cast.offset)) + return false; + if (!(this.hasMore === tmp0_other_with_cast.hasMore)) + return false; + if (!equals(this.list, tmp0_other_with_cast.list)) + return false; + return true; + } + static new_com_bapis_bilibili_app_interfaces_v1_KMediaVideoReply_uap6hs_k$(seen1, offset, hasMore, list, serializationConstructorMarker) { + Companion_getInstance_1225(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1212().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.offset = ''; + else + $this.offset = offset; + if (0 === (seen1 & 2)) + $this.hasMore = false; + else + $this.hasMore = hasMore; + if (0 === (seen1 & 4)) + $this.list = emptyList(); + else + $this.list = list; + return $this; + } + } + class Companion_1226 { + constructor() { + this.targetPath = '/bilibili.app.interface.v1.SmallItem'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1213(); + } + } + class $serializer_1213 { + constructor() { + $serializer_instance_1213 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.interfaces.v1.KSmallItem', this, 10); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('coverImageUri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('uri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('coverRightText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('coverLeftText1', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('coverLeftIcon1', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('coverLeftText2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('coverLeftIcon2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('param', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('mid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = new Long(0, 0); + var tmp10_local6 = null; + var tmp11_local7 = new Long(0, 0); + var tmp12_local8 = new Long(0, 0); + var tmp13_local9 = new Long(0, 0); + var tmp14_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp14_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + } else + while (tmp1_flag) { + tmp2_index = tmp14_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp14_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSmallItem.new_com_bapis_bilibili_app_interfaces_v1_KSmallItem_dyyrk8_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, null); + } + serialize_mvppfo_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.coverImageUri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.coverImageUri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.uri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.uri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.coverRightText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.coverRightText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.coverLeftText1 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.coverLeftText1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !value.coverLeftIcon1.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 5, value.coverLeftIcon1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.coverLeftText2 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.coverLeftText2); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !value.coverLeftIcon2.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 7, value.coverLeftIcon2); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !value.param.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 8, value.param); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !value.mid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 9, value.mid); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_mvppfo_k$(encoder, value instanceof KSmallItem ? value : THROW_CCE()); + } + } + class KSmallItem { + constructor(title, coverImageUri, uri, coverRightText, coverLeftText1, coverLeftIcon1, coverLeftText2, coverLeftIcon2, param, mid) { + Companion_instance_1226; + title = title === VOID ? '' : title; + coverImageUri = coverImageUri === VOID ? '' : coverImageUri; + uri = uri === VOID ? '' : uri; + coverRightText = coverRightText === VOID ? '' : coverRightText; + coverLeftText1 = coverLeftText1 === VOID ? '' : coverLeftText1; + coverLeftIcon1 = coverLeftIcon1 === VOID ? new Long(0, 0) : coverLeftIcon1; + coverLeftText2 = coverLeftText2 === VOID ? '' : coverLeftText2; + coverLeftIcon2 = coverLeftIcon2 === VOID ? new Long(0, 0) : coverLeftIcon2; + param = param === VOID ? new Long(0, 0) : param; + mid = mid === VOID ? new Long(0, 0) : mid; + this.title = title; + this.coverImageUri = coverImageUri; + this.uri = uri; + this.coverRightText = coverRightText; + this.coverLeftText1 = coverLeftText1; + this.coverLeftIcon1 = coverLeftIcon1; + this.coverLeftText2 = coverLeftText2; + this.coverLeftIcon2 = coverLeftIcon2; + this.param = param; + this.mid = mid; + } + get_title_iz32un_k$() { + return this.title; + } + get_coverImageUri_sst41r_k$() { + return this.coverImageUri; + } + get_uri_18iuil_k$() { + return this.uri; + } + get_coverRightText_t0bat7_k$() { + return this.coverRightText; + } + get_coverLeftText1_ck8hkf_k$() { + return this.coverLeftText1; + } + get_coverLeftIcon1_ce5a8z_k$() { + return this.coverLeftIcon1; + } + get_coverLeftText2_ck8hkg_k$() { + return this.coverLeftText2; + } + get_coverLeftIcon2_ce5a90_k$() { + return this.coverLeftIcon2; + } + get_param_iwqquc_k$() { + return this.param; + } + get_mid_18j0o1_k$() { + return this.mid; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.coverImageUri; + } + component3_7eebsa_k$() { + return this.uri; + } + component4_7eebs9_k$() { + return this.coverRightText; + } + component5_7eebs8_k$() { + return this.coverLeftText1; + } + component6_7eebs7_k$() { + return this.coverLeftIcon1; + } + component7_7eebs6_k$() { + return this.coverLeftText2; + } + component8_7eebs5_k$() { + return this.coverLeftIcon2; + } + component9_7eebs4_k$() { + return this.param; + } + component10_gazzfo_k$() { + return this.mid; + } + copy_5kdvld_k$(title, coverImageUri, uri, coverRightText, coverLeftText1, coverLeftIcon1, coverLeftText2, coverLeftIcon2, param, mid) { + return new KSmallItem(title, coverImageUri, uri, coverRightText, coverLeftText1, coverLeftIcon1, coverLeftText2, coverLeftIcon2, param, mid); + } + copy(title, coverImageUri, uri, coverRightText, coverLeftText1, coverLeftIcon1, coverLeftText2, coverLeftIcon2, param, mid, $super) { + title = title === VOID ? this.title : title; + coverImageUri = coverImageUri === VOID ? this.coverImageUri : coverImageUri; + uri = uri === VOID ? this.uri : uri; + coverRightText = coverRightText === VOID ? this.coverRightText : coverRightText; + coverLeftText1 = coverLeftText1 === VOID ? this.coverLeftText1 : coverLeftText1; + coverLeftIcon1 = coverLeftIcon1 === VOID ? this.coverLeftIcon1 : coverLeftIcon1; + coverLeftText2 = coverLeftText2 === VOID ? this.coverLeftText2 : coverLeftText2; + coverLeftIcon2 = coverLeftIcon2 === VOID ? this.coverLeftIcon2 : coverLeftIcon2; + param = param === VOID ? this.param : param; + mid = mid === VOID ? this.mid : mid; + return this.copy_5kdvld_k$(title, coverImageUri, uri, coverRightText, coverLeftText1, coverLeftIcon1, coverLeftText2, coverLeftIcon2, param, mid); + } + toString() { + return 'KSmallItem(title=' + this.title + ', coverImageUri=' + this.coverImageUri + ', uri=' + this.uri + ', coverRightText=' + this.coverRightText + ', coverLeftText1=' + this.coverLeftText1 + ', coverLeftIcon1=' + this.coverLeftIcon1.toString() + ', coverLeftText2=' + this.coverLeftText2 + ', coverLeftIcon2=' + this.coverLeftIcon2.toString() + ', param=' + this.param.toString() + ', mid=' + this.mid.toString() + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.coverImageUri) | 0; + result = imul(result, 31) + getStringHashCode(this.uri) | 0; + result = imul(result, 31) + getStringHashCode(this.coverRightText) | 0; + result = imul(result, 31) + getStringHashCode(this.coverLeftText1) | 0; + result = imul(result, 31) + this.coverLeftIcon1.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.coverLeftText2) | 0; + result = imul(result, 31) + this.coverLeftIcon2.hashCode() | 0; + result = imul(result, 31) + this.param.hashCode() | 0; + result = imul(result, 31) + this.mid.hashCode() | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSmallItem)) + return false; + var tmp0_other_with_cast = other instanceof KSmallItem ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.coverImageUri === tmp0_other_with_cast.coverImageUri)) + return false; + if (!(this.uri === tmp0_other_with_cast.uri)) + return false; + if (!(this.coverRightText === tmp0_other_with_cast.coverRightText)) + return false; + if (!(this.coverLeftText1 === tmp0_other_with_cast.coverLeftText1)) + return false; + if (!this.coverLeftIcon1.equals(tmp0_other_with_cast.coverLeftIcon1)) + return false; + if (!(this.coverLeftText2 === tmp0_other_with_cast.coverLeftText2)) + return false; + if (!this.coverLeftIcon2.equals(tmp0_other_with_cast.coverLeftIcon2)) + return false; + if (!this.param.equals(tmp0_other_with_cast.param)) + return false; + if (!this.mid.equals(tmp0_other_with_cast.mid)) + return false; + return true; + } + static new_com_bapis_bilibili_app_interfaces_v1_KSmallItem_dyyrk8_k$(seen1, title, coverImageUri, uri, coverRightText, coverLeftText1, coverLeftIcon1, coverLeftText2, coverLeftIcon2, param, mid, serializationConstructorMarker) { + Companion_instance_1226; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1213().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.coverImageUri = ''; + else + $this.coverImageUri = coverImageUri; + if (0 === (seen1 & 4)) + $this.uri = ''; + else + $this.uri = uri; + if (0 === (seen1 & 8)) + $this.coverRightText = ''; + else + $this.coverRightText = coverRightText; + if (0 === (seen1 & 16)) + $this.coverLeftText1 = ''; + else + $this.coverLeftText1 = coverLeftText1; + if (0 === (seen1 & 32)) + $this.coverLeftIcon1 = new Long(0, 0); + else + $this.coverLeftIcon1 = coverLeftIcon1; + if (0 === (seen1 & 64)) + $this.coverLeftText2 = ''; + else + $this.coverLeftText2 = coverLeftText2; + if (0 === (seen1 & 128)) + $this.coverLeftIcon2 = new Long(0, 0); + else + $this.coverLeftIcon2 = coverLeftIcon2; + if (0 === (seen1 & 256)) + $this.param = new Long(0, 0); + else + $this.param = param; + if (0 === (seen1 & 512)) + $this.mid = new Long(0, 0); + else + $this.mid = mid; + return $this; + } + } + class Companion_1227 { + constructor() { + this.targetPath = '/bilibili.app.interface.v1.BigItem'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1214(); + } + } + class $serializer_1214 { + constructor() { + $serializer_instance_1214 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.interfaces.v1.KBigItem', this, 17); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('coverImageUri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('uri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('coverRightText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('coverLeftText1', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('coverLeftIcon1', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('coverLeftText2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('coverLeftIcon2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('userCard', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('likeButton', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('param', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('sharePlane', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + tmp0_serialDesc.addElement_5pzumi_k$('threePointMeta', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(13)); + tmp0_serialDesc.addElement_5pzumi_k$('inlineProgressBar', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(14)); + tmp0_serialDesc.addElement_5pzumi_k$('canPlay', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(15)); + tmp0_serialDesc.addElement_5pzumi_k$('playerArgs', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(16)); + tmp0_serialDesc.addElement_5pzumi_k$('isFav', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(17)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), get_nullable($serializer_getInstance_1218()), get_nullable($serializer_getInstance_1215()), LongSerializer_getInstance(), get_nullable($serializer_getInstance_659()), get_nullable($serializer_getInstance_666()), get_nullable($serializer_getInstance_660()), IntSerializer_getInstance(), get_nullable($serializer_getInstance_652()), BooleanSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = new Long(0, 0); + var tmp10_local6 = null; + var tmp11_local7 = new Long(0, 0); + var tmp12_local8 = null; + var tmp13_local9 = null; + var tmp14_local10 = new Long(0, 0); + var tmp15_local11 = null; + var tmp16_local12 = null; + var tmp17_local13 = null; + var tmp18_local14 = 0; + var tmp19_local15 = null; + var tmp20_local16 = false; + var tmp21_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp21_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp21_input.decodeLongElement_994anb_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp21_input.decodeLongElement_994anb_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp21_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_1218(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp21_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 9, $serializer_getInstance_1215(), tmp13_local9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp21_input.decodeLongElement_994anb_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp21_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 11, $serializer_getInstance_659(), tmp15_local11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + tmp16_local12 = tmp21_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 12, $serializer_getInstance_666(), tmp16_local12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + tmp17_local13 = tmp21_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 13, $serializer_getInstance_660(), tmp17_local13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + tmp18_local14 = tmp21_input.decodeIntElement_941u6a_k$(tmp0_desc, 14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + tmp19_local15 = tmp21_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 15, $serializer_getInstance_652(), tmp19_local15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + tmp20_local16 = tmp21_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 16); + tmp3_bitMask0 = tmp3_bitMask0 | 65536; + } else + while (tmp1_flag) { + tmp2_index = tmp21_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp21_input.decodeLongElement_994anb_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp21_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp21_input.decodeLongElement_994anb_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp21_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_1218(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp21_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 9, $serializer_getInstance_1215(), tmp13_local9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp21_input.decodeLongElement_994anb_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp21_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 11, $serializer_getInstance_659(), tmp15_local11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + case 12: + tmp16_local12 = tmp21_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 12, $serializer_getInstance_666(), tmp16_local12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + break; + case 13: + tmp17_local13 = tmp21_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 13, $serializer_getInstance_660(), tmp17_local13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + break; + case 14: + tmp18_local14 = tmp21_input.decodeIntElement_941u6a_k$(tmp0_desc, 14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + break; + case 15: + tmp19_local15 = tmp21_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 15, $serializer_getInstance_652(), tmp19_local15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + break; + case 16: + tmp20_local16 = tmp21_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 16); + tmp3_bitMask0 = tmp3_bitMask0 | 65536; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp21_input.endStructure_1xqz0n_k$(tmp0_desc); + return KBigItem.new_com_bapis_bilibili_app_interfaces_v1_KBigItem_ir9ghx_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, tmp18_local14, tmp19_local15, tmp20_local16, null); + } + serialize_cys8k5_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.coverImageUri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.coverImageUri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.uri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.uri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.coverRightText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.coverRightText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.coverLeftText1 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.coverLeftText1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !value.coverLeftIcon1.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 5, value.coverLeftIcon1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.coverLeftText2 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.coverLeftText2); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !value.coverLeftIcon2.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 7, value.coverLeftIcon2); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.userCard == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 8, $serializer_getInstance_1218(), value.userCard); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.likeButton == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 9, $serializer_getInstance_1215(), value.likeButton); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !value.param.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 10, value.param); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.sharePlane == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 11, $serializer_getInstance_659(), value.sharePlane); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !(value.threePointMeta == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 12, $serializer_getInstance_666(), value.threePointMeta); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 13) ? true : !(value.inlineProgressBar == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 13, $serializer_getInstance_660(), value.inlineProgressBar); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 14) ? true : !(value.canPlay === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 14, value.canPlay); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 15) ? true : !(value.playerArgs == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 15, $serializer_getInstance_652(), value.playerArgs); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 16) ? true : !(value.isFav === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 16, value.isFav); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_cys8k5_k$(encoder, value instanceof KBigItem ? value : THROW_CCE()); + } + } + class KBigItem { + constructor(title, coverImageUri, uri, coverRightText, coverLeftText1, coverLeftIcon1, coverLeftText2, coverLeftIcon2, userCard, likeButton, param, sharePlane, threePointMeta, inlineProgressBar, canPlay, playerArgs, isFav) { + Companion_instance_1227; + title = title === VOID ? '' : title; + coverImageUri = coverImageUri === VOID ? '' : coverImageUri; + uri = uri === VOID ? '' : uri; + coverRightText = coverRightText === VOID ? '' : coverRightText; + coverLeftText1 = coverLeftText1 === VOID ? '' : coverLeftText1; + coverLeftIcon1 = coverLeftIcon1 === VOID ? new Long(0, 0) : coverLeftIcon1; + coverLeftText2 = coverLeftText2 === VOID ? '' : coverLeftText2; + coverLeftIcon2 = coverLeftIcon2 === VOID ? new Long(0, 0) : coverLeftIcon2; + userCard = userCard === VOID ? null : userCard; + likeButton = likeButton === VOID ? null : likeButton; + param = param === VOID ? new Long(0, 0) : param; + sharePlane = sharePlane === VOID ? null : sharePlane; + threePointMeta = threePointMeta === VOID ? null : threePointMeta; + inlineProgressBar = inlineProgressBar === VOID ? null : inlineProgressBar; + canPlay = canPlay === VOID ? 0 : canPlay; + playerArgs = playerArgs === VOID ? null : playerArgs; + isFav = isFav === VOID ? false : isFav; + this.title = title; + this.coverImageUri = coverImageUri; + this.uri = uri; + this.coverRightText = coverRightText; + this.coverLeftText1 = coverLeftText1; + this.coverLeftIcon1 = coverLeftIcon1; + this.coverLeftText2 = coverLeftText2; + this.coverLeftIcon2 = coverLeftIcon2; + this.userCard = userCard; + this.likeButton = likeButton; + this.param = param; + this.sharePlane = sharePlane; + this.threePointMeta = threePointMeta; + this.inlineProgressBar = inlineProgressBar; + this.canPlay = canPlay; + this.playerArgs = playerArgs; + this.isFav = isFav; + } + get_title_iz32un_k$() { + return this.title; + } + get_coverImageUri_sst41r_k$() { + return this.coverImageUri; + } + get_uri_18iuil_k$() { + return this.uri; + } + get_coverRightText_t0bat7_k$() { + return this.coverRightText; + } + get_coverLeftText1_ck8hkf_k$() { + return this.coverLeftText1; + } + get_coverLeftIcon1_ce5a8z_k$() { + return this.coverLeftIcon1; + } + get_coverLeftText2_ck8hkg_k$() { + return this.coverLeftText2; + } + get_coverLeftIcon2_ce5a90_k$() { + return this.coverLeftIcon2; + } + get_userCard_yt7p6s_k$() { + return this.userCard; + } + get_likeButton_oaqc6q_k$() { + return this.likeButton; + } + get_param_iwqquc_k$() { + return this.param; + } + get_sharePlane_l1yhja_k$() { + return this.sharePlane; + } + get_threePointMeta_6db9vk_k$() { + return this.threePointMeta; + } + get_inlineProgressBar_mzn7ok_k$() { + return this.inlineProgressBar; + } + get_canPlay_acszln_k$() { + return this.canPlay; + } + get_playerArgs_eh86hz_k$() { + return this.playerArgs; + } + get_isFav_it6ru0_k$() { + return this.isFav; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.coverImageUri; + } + component3_7eebsa_k$() { + return this.uri; + } + component4_7eebs9_k$() { + return this.coverRightText; + } + component5_7eebs8_k$() { + return this.coverLeftText1; + } + component6_7eebs7_k$() { + return this.coverLeftIcon1; + } + component7_7eebs6_k$() { + return this.coverLeftText2; + } + component8_7eebs5_k$() { + return this.coverLeftIcon2; + } + component9_7eebs4_k$() { + return this.userCard; + } + component10_gazzfo_k$() { + return this.likeButton; + } + component11_gazzfn_k$() { + return this.param; + } + component12_gazzfm_k$() { + return this.sharePlane; + } + component13_gazzfl_k$() { + return this.threePointMeta; + } + component14_gazzfk_k$() { + return this.inlineProgressBar; + } + component15_gazzfj_k$() { + return this.canPlay; + } + component16_gazzfi_k$() { + return this.playerArgs; + } + component17_gazzfh_k$() { + return this.isFav; + } + copy_4bi9mr_k$(title, coverImageUri, uri, coverRightText, coverLeftText1, coverLeftIcon1, coverLeftText2, coverLeftIcon2, userCard, likeButton, param, sharePlane, threePointMeta, inlineProgressBar, canPlay, playerArgs, isFav) { + return new KBigItem(title, coverImageUri, uri, coverRightText, coverLeftText1, coverLeftIcon1, coverLeftText2, coverLeftIcon2, userCard, likeButton, param, sharePlane, threePointMeta, inlineProgressBar, canPlay, playerArgs, isFav); + } + copy(title, coverImageUri, uri, coverRightText, coverLeftText1, coverLeftIcon1, coverLeftText2, coverLeftIcon2, userCard, likeButton, param, sharePlane, threePointMeta, inlineProgressBar, canPlay, playerArgs, isFav, $super) { + title = title === VOID ? this.title : title; + coverImageUri = coverImageUri === VOID ? this.coverImageUri : coverImageUri; + uri = uri === VOID ? this.uri : uri; + coverRightText = coverRightText === VOID ? this.coverRightText : coverRightText; + coverLeftText1 = coverLeftText1 === VOID ? this.coverLeftText1 : coverLeftText1; + coverLeftIcon1 = coverLeftIcon1 === VOID ? this.coverLeftIcon1 : coverLeftIcon1; + coverLeftText2 = coverLeftText2 === VOID ? this.coverLeftText2 : coverLeftText2; + coverLeftIcon2 = coverLeftIcon2 === VOID ? this.coverLeftIcon2 : coverLeftIcon2; + userCard = userCard === VOID ? this.userCard : userCard; + likeButton = likeButton === VOID ? this.likeButton : likeButton; + param = param === VOID ? this.param : param; + sharePlane = sharePlane === VOID ? this.sharePlane : sharePlane; + threePointMeta = threePointMeta === VOID ? this.threePointMeta : threePointMeta; + inlineProgressBar = inlineProgressBar === VOID ? this.inlineProgressBar : inlineProgressBar; + canPlay = canPlay === VOID ? this.canPlay : canPlay; + playerArgs = playerArgs === VOID ? this.playerArgs : playerArgs; + isFav = isFav === VOID ? this.isFav : isFav; + return this.copy_4bi9mr_k$(title, coverImageUri, uri, coverRightText, coverLeftText1, coverLeftIcon1, coverLeftText2, coverLeftIcon2, userCard, likeButton, param, sharePlane, threePointMeta, inlineProgressBar, canPlay, playerArgs, isFav); + } + toString() { + return 'KBigItem(title=' + this.title + ', coverImageUri=' + this.coverImageUri + ', uri=' + this.uri + ', coverRightText=' + this.coverRightText + ', coverLeftText1=' + this.coverLeftText1 + ', coverLeftIcon1=' + this.coverLeftIcon1.toString() + ', coverLeftText2=' + this.coverLeftText2 + ', coverLeftIcon2=' + this.coverLeftIcon2.toString() + ', userCard=' + this.userCard + ', likeButton=' + this.likeButton + ', param=' + this.param.toString() + ', sharePlane=' + this.sharePlane + ', threePointMeta=' + this.threePointMeta + ', inlineProgressBar=' + this.inlineProgressBar + ', canPlay=' + this.canPlay + ', playerArgs=' + this.playerArgs + ', isFav=' + this.isFav + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.coverImageUri) | 0; + result = imul(result, 31) + getStringHashCode(this.uri) | 0; + result = imul(result, 31) + getStringHashCode(this.coverRightText) | 0; + result = imul(result, 31) + getStringHashCode(this.coverLeftText1) | 0; + result = imul(result, 31) + this.coverLeftIcon1.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.coverLeftText2) | 0; + result = imul(result, 31) + this.coverLeftIcon2.hashCode() | 0; + result = imul(result, 31) + (this.userCard == null ? 0 : this.userCard.hashCode()) | 0; + result = imul(result, 31) + (this.likeButton == null ? 0 : this.likeButton.hashCode()) | 0; + result = imul(result, 31) + this.param.hashCode() | 0; + result = imul(result, 31) + (this.sharePlane == null ? 0 : this.sharePlane.hashCode()) | 0; + result = imul(result, 31) + (this.threePointMeta == null ? 0 : this.threePointMeta.hashCode()) | 0; + result = imul(result, 31) + (this.inlineProgressBar == null ? 0 : this.inlineProgressBar.hashCode()) | 0; + result = imul(result, 31) + this.canPlay | 0; + result = imul(result, 31) + (this.playerArgs == null ? 0 : this.playerArgs.hashCode()) | 0; + result = imul(result, 31) + getBooleanHashCode(this.isFav) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KBigItem)) + return false; + var tmp0_other_with_cast = other instanceof KBigItem ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.coverImageUri === tmp0_other_with_cast.coverImageUri)) + return false; + if (!(this.uri === tmp0_other_with_cast.uri)) + return false; + if (!(this.coverRightText === tmp0_other_with_cast.coverRightText)) + return false; + if (!(this.coverLeftText1 === tmp0_other_with_cast.coverLeftText1)) + return false; + if (!this.coverLeftIcon1.equals(tmp0_other_with_cast.coverLeftIcon1)) + return false; + if (!(this.coverLeftText2 === tmp0_other_with_cast.coverLeftText2)) + return false; + if (!this.coverLeftIcon2.equals(tmp0_other_with_cast.coverLeftIcon2)) + return false; + if (!equals(this.userCard, tmp0_other_with_cast.userCard)) + return false; + if (!equals(this.likeButton, tmp0_other_with_cast.likeButton)) + return false; + if (!this.param.equals(tmp0_other_with_cast.param)) + return false; + if (!equals(this.sharePlane, tmp0_other_with_cast.sharePlane)) + return false; + if (!equals(this.threePointMeta, tmp0_other_with_cast.threePointMeta)) + return false; + if (!equals(this.inlineProgressBar, tmp0_other_with_cast.inlineProgressBar)) + return false; + if (!(this.canPlay === tmp0_other_with_cast.canPlay)) + return false; + if (!equals(this.playerArgs, tmp0_other_with_cast.playerArgs)) + return false; + if (!(this.isFav === tmp0_other_with_cast.isFav)) + return false; + return true; + } + static new_com_bapis_bilibili_app_interfaces_v1_KBigItem_ir9ghx_k$(seen1, title, coverImageUri, uri, coverRightText, coverLeftText1, coverLeftIcon1, coverLeftText2, coverLeftIcon2, userCard, likeButton, param, sharePlane, threePointMeta, inlineProgressBar, canPlay, playerArgs, isFav, serializationConstructorMarker) { + Companion_instance_1227; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1214().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.coverImageUri = ''; + else + $this.coverImageUri = coverImageUri; + if (0 === (seen1 & 4)) + $this.uri = ''; + else + $this.uri = uri; + if (0 === (seen1 & 8)) + $this.coverRightText = ''; + else + $this.coverRightText = coverRightText; + if (0 === (seen1 & 16)) + $this.coverLeftText1 = ''; + else + $this.coverLeftText1 = coverLeftText1; + if (0 === (seen1 & 32)) + $this.coverLeftIcon1 = new Long(0, 0); + else + $this.coverLeftIcon1 = coverLeftIcon1; + if (0 === (seen1 & 64)) + $this.coverLeftText2 = ''; + else + $this.coverLeftText2 = coverLeftText2; + if (0 === (seen1 & 128)) + $this.coverLeftIcon2 = new Long(0, 0); + else + $this.coverLeftIcon2 = coverLeftIcon2; + if (0 === (seen1 & 256)) + $this.userCard = null; + else + $this.userCard = userCard; + if (0 === (seen1 & 512)) + $this.likeButton = null; + else + $this.likeButton = likeButton; + if (0 === (seen1 & 1024)) + $this.param = new Long(0, 0); + else + $this.param = param; + if (0 === (seen1 & 2048)) + $this.sharePlane = null; + else + $this.sharePlane = sharePlane; + if (0 === (seen1 & 4096)) + $this.threePointMeta = null; + else + $this.threePointMeta = threePointMeta; + if (0 === (seen1 & 8192)) + $this.inlineProgressBar = null; + else + $this.inlineProgressBar = inlineProgressBar; + if (0 === (seen1 & 16384)) + $this.canPlay = 0; + else + $this.canPlay = canPlay; + if (0 === (seen1 & 32768)) + $this.playerArgs = null; + else + $this.playerArgs = playerArgs; + if (0 === (seen1 & 65536)) + $this.isFav = false; + else + $this.isFav = isFav; + return $this; + } + } + class Companion_1228 { + constructor() { + this.targetPath = '/bilibili.app.interface.v1.LikeButton'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1215(); + } + } + class $serializer_1215 { + constructor() { + $serializer_instance_1215 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.interfaces.v1.KLikeButton', this, 10); + tmp0_serialDesc.addElement_5pzumi_k$('aid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('count', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('showCount', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('event', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('selected', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('eventV2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('likeResource', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('disLikeResource', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('likeNightResource', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('disLikeNightResource', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), IntSerializer_getInstance(), BooleanSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_1216()), get_nullable($serializer_getInstance_1216()), get_nullable($serializer_getInstance_1216()), get_nullable($serializer_getInstance_1216())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = 0; + var tmp6_local2 = false; + var tmp7_local3 = null; + var tmp8_local4 = 0; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_local8 = null; + var tmp13_local9 = null; + var tmp14_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp14_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp14_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_1216(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_1216(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_1216(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 9, $serializer_getInstance_1216(), tmp13_local9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + } else + while (tmp1_flag) { + tmp2_index = tmp14_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp14_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_1216(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_1216(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_1216(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 9, $serializer_getInstance_1216(), tmp13_local9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp14_input.endStructure_1xqz0n_k$(tmp0_desc); + return KLikeButton_0.new_com_bapis_bilibili_app_interfaces_v1_KLikeButton_y2xm4a_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, null); + } + serialize_e75hd_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.aid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.aid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.count === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.count); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.showCount === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 2, value.showCount); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.event === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.event); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.selected === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 4, value.selected); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.eventV2 === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.eventV2); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.likeResource == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 6, $serializer_getInstance_1216(), value.likeResource); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.disLikeResource == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 7, $serializer_getInstance_1216(), value.disLikeResource); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.likeNightResource == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 8, $serializer_getInstance_1216(), value.likeNightResource); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.disLikeNightResource == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 9, $serializer_getInstance_1216(), value.disLikeNightResource); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_e75hd_k$(encoder, value instanceof KLikeButton_0 ? value : THROW_CCE()); + } + } + class KLikeButton_0 { + constructor(aid, count, showCount, event, selected, eventV2, likeResource, disLikeResource, likeNightResource, disLikeNightResource) { + Companion_instance_1228; + aid = aid === VOID ? new Long(0, 0) : aid; + count = count === VOID ? 0 : count; + showCount = showCount === VOID ? false : showCount; + event = event === VOID ? '' : event; + selected = selected === VOID ? 0 : selected; + eventV2 = eventV2 === VOID ? '' : eventV2; + likeResource = likeResource === VOID ? null : likeResource; + disLikeResource = disLikeResource === VOID ? null : disLikeResource; + likeNightResource = likeNightResource === VOID ? null : likeNightResource; + disLikeNightResource = disLikeNightResource === VOID ? null : disLikeNightResource; + this.aid = aid; + this.count = count; + this.showCount = showCount; + this.event = event; + this.selected = selected; + this.eventV2 = eventV2; + this.likeResource = likeResource; + this.disLikeResource = disLikeResource; + this.likeNightResource = likeNightResource; + this.disLikeNightResource = disLikeNightResource; + } + get_aid_18j9kd_k$() { + return this.aid; + } + get_count_ipufhi_k$() { + return this.count; + } + get_showCount_ne5ac7_k$() { + return this.showCount; + } + get_event_ir25pt_k$() { + return this.event; + } + get_selected_c3i7q4_k$() { + return this.selected; + } + get_eventV2_lhz9rn_k$() { + return this.eventV2; + } + get_likeResource_60cgz6_k$() { + return this.likeResource; + } + get_disLikeResource_nq30y2_k$() { + return this.disLikeResource; + } + get_likeNightResource_6rp322_k$() { + return this.likeNightResource; + } + get_disLikeNightResource_nws8ty_k$() { + return this.disLikeNightResource; + } + component1_7eebsc_k$() { + return this.aid; + } + component2_7eebsb_k$() { + return this.count; + } + component3_7eebsa_k$() { + return this.showCount; + } + component4_7eebs9_k$() { + return this.event; + } + component5_7eebs8_k$() { + return this.selected; + } + component6_7eebs7_k$() { + return this.eventV2; + } + component7_7eebs6_k$() { + return this.likeResource; + } + component8_7eebs5_k$() { + return this.disLikeResource; + } + component9_7eebs4_k$() { + return this.likeNightResource; + } + component10_gazzfo_k$() { + return this.disLikeNightResource; + } + copy_10kh0k_k$(aid, count, showCount, event, selected, eventV2, likeResource, disLikeResource, likeNightResource, disLikeNightResource) { + return new KLikeButton_0(aid, count, showCount, event, selected, eventV2, likeResource, disLikeResource, likeNightResource, disLikeNightResource); + } + copy(aid, count, showCount, event, selected, eventV2, likeResource, disLikeResource, likeNightResource, disLikeNightResource, $super) { + aid = aid === VOID ? this.aid : aid; + count = count === VOID ? this.count : count; + showCount = showCount === VOID ? this.showCount : showCount; + event = event === VOID ? this.event : event; + selected = selected === VOID ? this.selected : selected; + eventV2 = eventV2 === VOID ? this.eventV2 : eventV2; + likeResource = likeResource === VOID ? this.likeResource : likeResource; + disLikeResource = disLikeResource === VOID ? this.disLikeResource : disLikeResource; + likeNightResource = likeNightResource === VOID ? this.likeNightResource : likeNightResource; + disLikeNightResource = disLikeNightResource === VOID ? this.disLikeNightResource : disLikeNightResource; + return this.copy_10kh0k_k$(aid, count, showCount, event, selected, eventV2, likeResource, disLikeResource, likeNightResource, disLikeNightResource); + } + toString() { + return 'KLikeButton(aid=' + this.aid.toString() + ', count=' + this.count + ', showCount=' + this.showCount + ', event=' + this.event + ', selected=' + this.selected + ', eventV2=' + this.eventV2 + ', likeResource=' + this.likeResource + ', disLikeResource=' + this.disLikeResource + ', likeNightResource=' + this.likeNightResource + ', disLikeNightResource=' + this.disLikeNightResource + ')'; + } + hashCode() { + var result = this.aid.hashCode(); + result = imul(result, 31) + this.count | 0; + result = imul(result, 31) + getBooleanHashCode(this.showCount) | 0; + result = imul(result, 31) + getStringHashCode(this.event) | 0; + result = imul(result, 31) + this.selected | 0; + result = imul(result, 31) + getStringHashCode(this.eventV2) | 0; + result = imul(result, 31) + (this.likeResource == null ? 0 : this.likeResource.hashCode()) | 0; + result = imul(result, 31) + (this.disLikeResource == null ? 0 : this.disLikeResource.hashCode()) | 0; + result = imul(result, 31) + (this.likeNightResource == null ? 0 : this.likeNightResource.hashCode()) | 0; + result = imul(result, 31) + (this.disLikeNightResource == null ? 0 : this.disLikeNightResource.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KLikeButton_0)) + return false; + var tmp0_other_with_cast = other instanceof KLikeButton_0 ? other : THROW_CCE(); + if (!this.aid.equals(tmp0_other_with_cast.aid)) + return false; + if (!(this.count === tmp0_other_with_cast.count)) + return false; + if (!(this.showCount === tmp0_other_with_cast.showCount)) + return false; + if (!(this.event === tmp0_other_with_cast.event)) + return false; + if (!(this.selected === tmp0_other_with_cast.selected)) + return false; + if (!(this.eventV2 === tmp0_other_with_cast.eventV2)) + return false; + if (!equals(this.likeResource, tmp0_other_with_cast.likeResource)) + return false; + if (!equals(this.disLikeResource, tmp0_other_with_cast.disLikeResource)) + return false; + if (!equals(this.likeNightResource, tmp0_other_with_cast.likeNightResource)) + return false; + if (!equals(this.disLikeNightResource, tmp0_other_with_cast.disLikeNightResource)) + return false; + return true; + } + static new_com_bapis_bilibili_app_interfaces_v1_KLikeButton_y2xm4a_k$(seen1, aid, count, showCount, event, selected, eventV2, likeResource, disLikeResource, likeNightResource, disLikeNightResource, serializationConstructorMarker) { + Companion_instance_1228; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1215().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.aid = new Long(0, 0); + else + $this.aid = aid; + if (0 === (seen1 & 2)) + $this.count = 0; + else + $this.count = count; + if (0 === (seen1 & 4)) + $this.showCount = false; + else + $this.showCount = showCount; + if (0 === (seen1 & 8)) + $this.event = ''; + else + $this.event = event; + if (0 === (seen1 & 16)) + $this.selected = 0; + else + $this.selected = selected; + if (0 === (seen1 & 32)) + $this.eventV2 = ''; + else + $this.eventV2 = eventV2; + if (0 === (seen1 & 64)) + $this.likeResource = null; + else + $this.likeResource = likeResource; + if (0 === (seen1 & 128)) + $this.disLikeResource = null; + else + $this.disLikeResource = disLikeResource; + if (0 === (seen1 & 256)) + $this.likeNightResource = null; + else + $this.likeNightResource = likeNightResource; + if (0 === (seen1 & 512)) + $this.disLikeNightResource = null; + else + $this.disLikeNightResource = disLikeNightResource; + return $this; + } + } + class Companion_1229 { + constructor() { + this.targetPath = '/bilibili.app.interface.v1.LikeButtonResource'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1216(); + } + } + class $serializer_1216 { + constructor() { + $serializer_instance_1216 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.interfaces.v1.KLikeButtonResource', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('url', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('hash', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KLikeButtonResource.new_com_bapis_bilibili_app_interfaces_v1_KLikeButtonResource_w6bpkx_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_i2ixyn_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.url === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.url); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.hash === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.hash); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_i2ixyn_k$(encoder, value instanceof KLikeButtonResource ? value : THROW_CCE()); + } + } + class KLikeButtonResource { + constructor(url, hash) { + Companion_instance_1229; + url = url === VOID ? '' : url; + hash = hash === VOID ? '' : hash; + this.url = url; + this.hash = hash; + } + get_url_18iuii_k$() { + return this.url; + } + get_hash_won4uv_k$() { + return this.hash; + } + component1_7eebsc_k$() { + return this.url; + } + component2_7eebsb_k$() { + return this.hash; + } + copy_plwnsl_k$(url, hash) { + return new KLikeButtonResource(url, hash); + } + copy(url, hash, $super) { + url = url === VOID ? this.url : url; + hash = hash === VOID ? this.hash : hash; + return this.copy_plwnsl_k$(url, hash); + } + toString() { + return 'KLikeButtonResource(url=' + this.url + ', hash=' + this.hash + ')'; + } + hashCode() { + var result = getStringHashCode(this.url); + result = imul(result, 31) + getStringHashCode(this.hash) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KLikeButtonResource)) + return false; + var tmp0_other_with_cast = other instanceof KLikeButtonResource ? other : THROW_CCE(); + if (!(this.url === tmp0_other_with_cast.url)) + return false; + if (!(this.hash === tmp0_other_with_cast.hash)) + return false; + return true; + } + static new_com_bapis_bilibili_app_interfaces_v1_KLikeButtonResource_w6bpkx_k$(seen1, url, hash, serializationConstructorMarker) { + Companion_instance_1229; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1216().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.url = ''; + else + $this.url = url; + if (0 === (seen1 & 2)) + $this.hash = ''; + else + $this.hash = hash; + return $this; + } + } + class Companion_1230 { + constructor() { + this.targetPath = '/bilibili.app.interface.v1.LikeCard'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1217(); + } + } + class $serializer_1217 { + constructor() { + $serializer_instance_1217 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.interfaces.v1.KLikeCard', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('like', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('isFollow', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), BooleanSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = false; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KLikeCard.new_com_bapis_bilibili_app_interfaces_v1_KLikeCard_p3773m_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_zhgbrz_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.like.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.like); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.isFollow === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 1, value.isFollow); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_zhgbrz_k$(encoder, value instanceof KLikeCard ? value : THROW_CCE()); + } + } + class KLikeCard { + constructor(like, isFollow) { + Companion_instance_1230; + like = like === VOID ? new Long(0, 0) : like; + isFollow = isFollow === VOID ? false : isFollow; + this.like = like; + this.isFollow = isFollow; + } + get_like_wopujk_k$() { + return this.like; + } + get_isFollow_tdz0w4_k$() { + return this.isFollow; + } + component1_7eebsc_k$() { + return this.like; + } + component2_7eebsb_k$() { + return this.isFollow; + } + copy_h2wlv2_k$(like, isFollow) { + return new KLikeCard(like, isFollow); + } + copy(like, isFollow, $super) { + like = like === VOID ? this.like : like; + isFollow = isFollow === VOID ? this.isFollow : isFollow; + return this.copy_h2wlv2_k$(like, isFollow); + } + toString() { + return 'KLikeCard(like=' + this.like.toString() + ', isFollow=' + this.isFollow + ')'; + } + hashCode() { + var result = this.like.hashCode(); + result = imul(result, 31) + getBooleanHashCode(this.isFollow) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KLikeCard)) + return false; + var tmp0_other_with_cast = other instanceof KLikeCard ? other : THROW_CCE(); + if (!this.like.equals(tmp0_other_with_cast.like)) + return false; + if (!(this.isFollow === tmp0_other_with_cast.isFollow)) + return false; + return true; + } + static new_com_bapis_bilibili_app_interfaces_v1_KLikeCard_p3773m_k$(seen1, like, isFollow, serializationConstructorMarker) { + Companion_instance_1230; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1217().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.like = new Long(0, 0); + else + $this.like = like; + if (0 === (seen1 & 2)) + $this.isFollow = false; + else + $this.isFollow = isFollow; + return $this; + } + } + class Companion_1231 { + constructor() { + this.targetPath = '/bilibili.app.interface.v1.UserCard'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1218(); + } + } + class $serializer_1218 { + constructor() { + $serializer_instance_1218 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.interfaces.v1.KUserCard', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('userName', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('userFace', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('userUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('mid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = new Long(0, 0); + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KUserCard.new_com_bapis_bilibili_app_interfaces_v1_KUserCard_a6toku_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_xeam5p_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.userName === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.userName); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.userFace === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.userFace); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.userUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.userUrl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !value.mid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 3, value.mid); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_xeam5p_k$(encoder, value instanceof KUserCard ? value : THROW_CCE()); + } + } + class KUserCard { + constructor(userName, userFace, userUrl, mid) { + Companion_instance_1231; + userName = userName === VOID ? '' : userName; + userFace = userFace === VOID ? '' : userFace; + userUrl = userUrl === VOID ? '' : userUrl; + mid = mid === VOID ? new Long(0, 0) : mid; + this.userName = userName; + this.userFace = userFace; + this.userUrl = userUrl; + this.mid = mid; + } + get_userName_ytepxb_k$() { + return this.userName; + } + get_userFace_yt9lsh_k$() { + return this.userFace; + } + get_userUrl_161tmt_k$() { + return this.userUrl; + } + get_mid_18j0o1_k$() { + return this.mid; + } + component1_7eebsc_k$() { + return this.userName; + } + component2_7eebsb_k$() { + return this.userFace; + } + component3_7eebsa_k$() { + return this.userUrl; + } + component4_7eebs9_k$() { + return this.mid; + } + copy_n2qgnx_k$(userName, userFace, userUrl, mid) { + return new KUserCard(userName, userFace, userUrl, mid); + } + copy(userName, userFace, userUrl, mid, $super) { + userName = userName === VOID ? this.userName : userName; + userFace = userFace === VOID ? this.userFace : userFace; + userUrl = userUrl === VOID ? this.userUrl : userUrl; + mid = mid === VOID ? this.mid : mid; + return this.copy_n2qgnx_k$(userName, userFace, userUrl, mid); + } + toString() { + return 'KUserCard(userName=' + this.userName + ', userFace=' + this.userFace + ', userUrl=' + this.userUrl + ', mid=' + this.mid.toString() + ')'; + } + hashCode() { + var result = getStringHashCode(this.userName); + result = imul(result, 31) + getStringHashCode(this.userFace) | 0; + result = imul(result, 31) + getStringHashCode(this.userUrl) | 0; + result = imul(result, 31) + this.mid.hashCode() | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KUserCard)) + return false; + var tmp0_other_with_cast = other instanceof KUserCard ? other : THROW_CCE(); + if (!(this.userName === tmp0_other_with_cast.userName)) + return false; + if (!(this.userFace === tmp0_other_with_cast.userFace)) + return false; + if (!(this.userUrl === tmp0_other_with_cast.userUrl)) + return false; + if (!this.mid.equals(tmp0_other_with_cast.mid)) + return false; + return true; + } + static new_com_bapis_bilibili_app_interfaces_v1_KUserCard_a6toku_k$(seen1, userName, userFace, userUrl, mid, serializationConstructorMarker) { + Companion_instance_1231; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1218().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.userName = ''; + else + $this.userName = userName; + if (0 === (seen1 & 2)) + $this.userFace = ''; + else + $this.userFace = userFace; + if (0 === (seen1 & 4)) + $this.userUrl = ''; + else + $this.userUrl = userUrl; + if (0 === (seen1 & 8)) + $this.mid = new Long(0, 0); + else + $this.mid = mid; + return $this; + } + } + class Companion_1232 { + constructor() { + this.targetPath = '/bilibili.app.interface.v1.MediaDetailReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1219(); + } + } + class $serializer_1219 { + constructor() { + $serializer_instance_1219 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.interfaces.v1.KMediaDetailReq', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('bizId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('bizType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = new Long(0, 0); + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KMediaDetailReq.new_com_bapis_bilibili_app_interfaces_v1_KMediaDetailReq_tkzw7r_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_vl7elb_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.bizId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.bizId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.bizType.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.bizType); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_vl7elb_k$(encoder, value instanceof KMediaDetailReq ? value : THROW_CCE()); + } + } + class KMediaDetailReq { + constructor(bizId, bizType) { + Companion_instance_1232; + bizId = bizId === VOID ? new Long(0, 0) : bizId; + bizType = bizType === VOID ? new Long(0, 0) : bizType; + this.bizId = bizId; + this.bizType = bizType; + } + get_bizId_ip6vs5_k$() { + return this.bizId; + } + get_bizType_cjyf0_k$() { + return this.bizType; + } + component1_7eebsc_k$() { + return this.bizId; + } + component2_7eebsb_k$() { + return this.bizType; + } + copy_bynm9d_k$(bizId, bizType) { + return new KMediaDetailReq(bizId, bizType); + } + copy(bizId, bizType, $super) { + bizId = bizId === VOID ? this.bizId : bizId; + bizType = bizType === VOID ? this.bizType : bizType; + return this.copy_bynm9d_k$(bizId, bizType); + } + toString() { + return 'KMediaDetailReq(bizId=' + this.bizId.toString() + ', bizType=' + this.bizType.toString() + ')'; + } + hashCode() { + var result = this.bizId.hashCode(); + result = imul(result, 31) + this.bizType.hashCode() | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KMediaDetailReq)) + return false; + var tmp0_other_with_cast = other instanceof KMediaDetailReq ? other : THROW_CCE(); + if (!this.bizId.equals(tmp0_other_with_cast.bizId)) + return false; + if (!this.bizType.equals(tmp0_other_with_cast.bizType)) + return false; + return true; + } + static new_com_bapis_bilibili_app_interfaces_v1_KMediaDetailReq_tkzw7r_k$(seen1, bizId, bizType, serializationConstructorMarker) { + Companion_instance_1232; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1219().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.bizId = new Long(0, 0); + else + $this.bizId = bizId; + if (0 === (seen1 & 2)) + $this.bizType = new Long(0, 0); + else + $this.bizType = bizType; + return $this; + } + } + class Companion_1233 { + constructor() { + this.targetPath = '/bilibili.app.interface.v1.Overview'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1220(); + } + } + class $serializer_1220 { + constructor() { + $serializer_instance_1220 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.interfaces.v1.KOverview', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('text', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KOverview.new_com_bapis_bilibili_app_interfaces_v1_KOverview_2qwbbx_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_ime80h_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.text === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.text); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_ime80h_k$(encoder, value instanceof KOverview ? value : THROW_CCE()); + } + } + class KOverview { + constructor(title, text) { + Companion_instance_1233; + title = title === VOID ? '' : title; + text = text === VOID ? '' : text; + this.title = title; + this.text = text; + } + get_title_iz32un_k$() { + return this.title; + } + get_text_wouvsm_k$() { + return this.text; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.text; + } + copy_plwnsl_k$(title, text) { + return new KOverview(title, text); + } + copy(title, text, $super) { + title = title === VOID ? this.title : title; + text = text === VOID ? this.text : text; + return this.copy_plwnsl_k$(title, text); + } + toString() { + return 'KOverview(title=' + this.title + ', text=' + this.text + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.text) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KOverview)) + return false; + var tmp0_other_with_cast = other instanceof KOverview ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.text === tmp0_other_with_cast.text)) + return false; + return true; + } + static new_com_bapis_bilibili_app_interfaces_v1_KOverview_2qwbbx_k$(seen1, title, text, serializationConstructorMarker) { + Companion_instance_1233; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1220().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.text = ''; + else + $this.text = text; + return $this; + } + } + class Companion_1234 { + constructor() { + this.targetPath = '/bilibili.app.interface.v1.Staff'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1221(); + } + } + class $serializer_1221 { + constructor() { + $serializer_instance_1221 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.interfaces.v1.KStaff', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('text', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KStaff_0.new_com_bapis_bilibili_app_interfaces_v1_KStaff_a66cna_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_miwfhe_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.text === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.text); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_miwfhe_k$(encoder, value instanceof KStaff_0 ? value : THROW_CCE()); + } + } + class KStaff_0 { + constructor(title, text) { + Companion_instance_1234; + title = title === VOID ? '' : title; + text = text === VOID ? '' : text; + this.title = title; + this.text = text; + } + get_title_iz32un_k$() { + return this.title; + } + get_text_wouvsm_k$() { + return this.text; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.text; + } + copy_plwnsl_k$(title, text) { + return new KStaff_0(title, text); + } + copy(title, text, $super) { + title = title === VOID ? this.title : title; + text = text === VOID ? this.text : text; + return this.copy_plwnsl_k$(title, text); + } + toString() { + return 'KStaff(title=' + this.title + ', text=' + this.text + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.text) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KStaff_0)) + return false; + var tmp0_other_with_cast = other instanceof KStaff_0 ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.text === tmp0_other_with_cast.text)) + return false; + return true; + } + static new_com_bapis_bilibili_app_interfaces_v1_KStaff_a66cna_k$(seen1, title, text, serializationConstructorMarker) { + Companion_instance_1234; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1221().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.text = ''; + else + $this.text = text; + return $this; + } + } + class Companion_1235 { + constructor() { + this.targetPath = '/bilibili.app.interface.v1.MediaDetailReply'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1222(); + } + } + class $serializer_1222 { + constructor() { + $serializer_instance_1222 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.interfaces.v1.KMediaDetailReply', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('cast', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('staff', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('overview', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_1223()), get_nullable($serializer_getInstance_1221()), get_nullable($serializer_getInstance_1220())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_1223(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_1221(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_1220(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_1223(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_1221(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_1220(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KMediaDetailReply.new_com_bapis_bilibili_app_interfaces_v1_KMediaDetailReply_7t6465_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_2g2nxp_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.cast == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_1223(), value.cast); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.staff == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_1221(), value.staff); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.overview == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_1220(), value.overview); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_2g2nxp_k$(encoder, value instanceof KMediaDetailReply ? value : THROW_CCE()); + } + } + class KMediaDetailReply { + constructor(cast, staff, overview) { + Companion_instance_1235; + cast = cast === VOID ? null : cast; + staff = staff === VOID ? null : staff; + overview = overview === VOID ? null : overview; + this.cast = cast; + this.staff = staff; + this.overview = overview; + } + get_cast_wojxxk_k$() { + return this.cast; + } + get_staff_iypwvr_k$() { + return this.staff; + } + get_overview_n1bike_k$() { + return this.overview; + } + component1_7eebsc_k$() { + return this.cast; + } + component2_7eebsb_k$() { + return this.staff; + } + component3_7eebsa_k$() { + return this.overview; + } + copy_9bzr1_k$(cast, staff, overview) { + return new KMediaDetailReply(cast, staff, overview); + } + copy(cast, staff, overview, $super) { + cast = cast === VOID ? this.cast : cast; + staff = staff === VOID ? this.staff : staff; + overview = overview === VOID ? this.overview : overview; + return this.copy_9bzr1_k$(cast, staff, overview); + } + toString() { + return 'KMediaDetailReply(cast=' + this.cast + ', staff=' + this.staff + ', overview=' + this.overview + ')'; + } + hashCode() { + var result = this.cast == null ? 0 : this.cast.hashCode(); + result = imul(result, 31) + (this.staff == null ? 0 : this.staff.hashCode()) | 0; + result = imul(result, 31) + (this.overview == null ? 0 : this.overview.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KMediaDetailReply)) + return false; + var tmp0_other_with_cast = other instanceof KMediaDetailReply ? other : THROW_CCE(); + if (!equals(this.cast, tmp0_other_with_cast.cast)) + return false; + if (!equals(this.staff, tmp0_other_with_cast.staff)) + return false; + if (!equals(this.overview, tmp0_other_with_cast.overview)) + return false; + return true; + } + static new_com_bapis_bilibili_app_interfaces_v1_KMediaDetailReply_7t6465_k$(seen1, cast, staff, overview, serializationConstructorMarker) { + Companion_instance_1235; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1222().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.cast = null; + else + $this.cast = cast; + if (0 === (seen1 & 2)) + $this.staff = null; + else + $this.staff = staff; + if (0 === (seen1 & 4)) + $this.overview = null; + else + $this.overview = overview; + return $this; + } + } + class Companion_1236 { + constructor() { + Companion_instance_1236 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer($serializer_getInstance_1224()), null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.interface.v1.Cast'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1223(); + } + } + class $serializer_1223 { + constructor() { + $serializer_instance_1223 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.interfaces.v1.KCast', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('person', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_1236().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0], StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp7_cached = Companion_getInstance_1236().$childSerializers_1; + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp7_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp7_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KCast.new_com_bapis_bilibili_app_interfaces_v1_KCast_lvu6b1_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_a6cf13_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_1236().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.person, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.person); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.title); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_a6cf13_k$(encoder, value instanceof KCast ? value : THROW_CCE()); + } + } + class KCast { + constructor(person, title) { + Companion_getInstance_1236(); + person = person === VOID ? emptyList() : person; + title = title === VOID ? '' : title; + this.person = person; + this.title = title; + } + get_person_i0c866_k$() { + return this.person; + } + get_title_iz32un_k$() { + return this.title; + } + component1_7eebsc_k$() { + return this.person; + } + component2_7eebsb_k$() { + return this.title; + } + copy_8bgvcr_k$(person, title) { + return new KCast(person, title); + } + copy(person, title, $super) { + person = person === VOID ? this.person : person; + title = title === VOID ? this.title : title; + return this.copy_8bgvcr_k$(person, title); + } + toString() { + return 'KCast(person=' + this.person + ', title=' + this.title + ')'; + } + hashCode() { + var result = hashCode(this.person); + result = imul(result, 31) + getStringHashCode(this.title) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KCast)) + return false; + var tmp0_other_with_cast = other instanceof KCast ? other : THROW_CCE(); + if (!equals(this.person, tmp0_other_with_cast.person)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + return true; + } + static new_com_bapis_bilibili_app_interfaces_v1_KCast_lvu6b1_k$(seen1, person, title, serializationConstructorMarker) { + Companion_getInstance_1236(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1223().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.person = emptyList(); + else + $this.person = person; + if (0 === (seen1 & 2)) + $this.title = ''; + else + $this.title = title; + return $this; + } + } + class Companion_1237 { + constructor() { + this.targetPath = '/bilibili.app.interface.v1.MediaPerson'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1224(); + } + } + class $serializer_1224 { + constructor() { + $serializer_instance_1224 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.interfaces.v1.KMediaPerson', this, 5); + tmp0_serialDesc.addElement_5pzumi_k$('realName', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('squareUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('character', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('personId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = new Long(0, 0); + var tmp8_local4 = null; + var tmp9_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp9_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + } else + while (tmp1_flag) { + tmp2_index = tmp9_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp9_input.endStructure_1xqz0n_k$(tmp0_desc); + return KMediaPerson.new_com_bapis_bilibili_app_interfaces_v1_KMediaPerson_5s9fh9_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); + } + serialize_wz3b5x_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.realName === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.realName); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.squareUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.squareUrl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.character === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.character); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !value.personId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 3, value.personId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.type === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.type); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_wz3b5x_k$(encoder, value instanceof KMediaPerson ? value : THROW_CCE()); + } + } + class KMediaPerson { + constructor(realName, squareUrl, character, personId, type) { + Companion_instance_1237; + realName = realName === VOID ? '' : realName; + squareUrl = squareUrl === VOID ? '' : squareUrl; + character = character === VOID ? '' : character; + personId = personId === VOID ? new Long(0, 0) : personId; + type = type === VOID ? '' : type; + this.realName = realName; + this.squareUrl = squareUrl; + this.character = character; + this.personId = personId; + this.type = type; + } + get_realName_ozyadu_k$() { + return this.realName; + } + get_squareUrl_u922cp_k$() { + return this.squareUrl; + } + get_character_ydsy9s_k$() { + return this.character; + } + get_personId_oh37jb_k$() { + return this.personId; + } + get_type_wovaf7_k$() { + return this.type; + } + component1_7eebsc_k$() { + return this.realName; + } + component2_7eebsb_k$() { + return this.squareUrl; + } + component3_7eebsa_k$() { + return this.character; + } + component4_7eebs9_k$() { + return this.personId; + } + component5_7eebs8_k$() { + return this.type; + } + copy_f9o4g9_k$(realName, squareUrl, character, personId, type) { + return new KMediaPerson(realName, squareUrl, character, personId, type); + } + copy(realName, squareUrl, character, personId, type, $super) { + realName = realName === VOID ? this.realName : realName; + squareUrl = squareUrl === VOID ? this.squareUrl : squareUrl; + character = character === VOID ? this.character : character; + personId = personId === VOID ? this.personId : personId; + type = type === VOID ? this.type : type; + return this.copy_f9o4g9_k$(realName, squareUrl, character, personId, type); + } + toString() { + return 'KMediaPerson(realName=' + this.realName + ', squareUrl=' + this.squareUrl + ', character=' + this.character + ', personId=' + this.personId.toString() + ', type=' + this.type + ')'; + } + hashCode() { + var result = getStringHashCode(this.realName); + result = imul(result, 31) + getStringHashCode(this.squareUrl) | 0; + result = imul(result, 31) + getStringHashCode(this.character) | 0; + result = imul(result, 31) + this.personId.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.type) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KMediaPerson)) + return false; + var tmp0_other_with_cast = other instanceof KMediaPerson ? other : THROW_CCE(); + if (!(this.realName === tmp0_other_with_cast.realName)) + return false; + if (!(this.squareUrl === tmp0_other_with_cast.squareUrl)) + return false; + if (!(this.character === tmp0_other_with_cast.character)) + return false; + if (!this.personId.equals(tmp0_other_with_cast.personId)) + return false; + if (!(this.type === tmp0_other_with_cast.type)) + return false; + return true; + } + static new_com_bapis_bilibili_app_interfaces_v1_KMediaPerson_5s9fh9_k$(seen1, realName, squareUrl, character, personId, type, serializationConstructorMarker) { + Companion_instance_1237; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1224().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.realName = ''; + else + $this.realName = realName; + if (0 === (seen1 & 2)) + $this.squareUrl = ''; + else + $this.squareUrl = squareUrl; + if (0 === (seen1 & 4)) + $this.character = ''; + else + $this.character = character; + if (0 === (seen1 & 8)) + $this.personId = new Long(0, 0); + else + $this.personId = personId; + if (0 === (seen1 & 16)) + $this.type = ''; + else + $this.type = type; + return $this; + } + } + class Companion_1238 { + constructor() { + this.targetPath = '/bilibili.app.interface.v1.MediaTabReq.ArgsEntry'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1225(); + } + } + class $serializer_1225 { + constructor() { + $serializer_instance_1225 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.interfaces.v1.KMediaTabReq.KArgsEntry', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('key', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('value', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KArgsEntry.new_com_bapis_bilibili_app_interfaces_v1_KMediaTabReq_KArgsEntry_f9uux2_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_j9g2sd_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.key === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.key); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.value === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.value); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_j9g2sd_k$(encoder, value instanceof KArgsEntry ? value : THROW_CCE()); + } + } + class KArgsEntry { + constructor(key, value) { + Companion_instance_1238; + key = key === VOID ? '' : key; + value = value === VOID ? '' : value; + this.key = key; + this.value = value; + } + get_key_18j28a_k$() { + return this.key; + } + get_value_j01efc_k$() { + return this.value; + } + component1_7eebsc_k$() { + return this.key; + } + component2_7eebsb_k$() { + return this.value; + } + copy_plwnsl_k$(key, value) { + return new KArgsEntry(key, value); + } + copy(key, value, $super) { + key = key === VOID ? this.key : key; + value = value === VOID ? this.value : value; + return this.copy_plwnsl_k$(key, value); + } + toString() { + return 'KArgsEntry(key=' + this.key + ', value=' + this.value + ')'; + } + hashCode() { + var result = getStringHashCode(this.key); + result = imul(result, 31) + getStringHashCode(this.value) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KArgsEntry)) + return false; + var tmp0_other_with_cast = other instanceof KArgsEntry ? other : THROW_CCE(); + if (!(this.key === tmp0_other_with_cast.key)) + return false; + if (!(this.value === tmp0_other_with_cast.value)) + return false; + return true; + } + static new_com_bapis_bilibili_app_interfaces_v1_KMediaTabReq_KArgsEntry_f9uux2_k$(seen1, key, value, serializationConstructorMarker) { + Companion_instance_1238; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1225().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.key = ''; + else + $this.key = key; + if (0 === (seen1 & 2)) + $this.value = ''; + else + $this.value = value; + return $this; + } + } + class Companion_1239 { + constructor() { + Companion_instance_1239 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, null, new LinkedHashMapSerializer(StringSerializer_getInstance(), StringSerializer_getInstance())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.interface.v1.MediaTabReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1226(); + } + } + class $serializer_1226 { + constructor() { + $serializer_instance_1226 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.interfaces.v1.KMediaTabReq', this, 5); + tmp0_serialDesc.addElement_5pzumi_k$('bizId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('bizType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('source', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('spmid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('args', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_1239().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), tmp0_cached[4]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = new Long(0, 0); + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp10_cached = Companion_getInstance_1239().$childSerializers_1; + if (tmp9_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp9_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 4, tmp10_cached[4], tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + } else + while (tmp1_flag) { + tmp2_index = tmp9_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp9_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 4, tmp10_cached[4], tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp9_input.endStructure_1xqz0n_k$(tmp0_desc); + return KMediaTabReq.new_com_bapis_bilibili_app_interfaces_v1_KMediaTabReq_djaw9m_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); + } + serialize_8bh9ap_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_1239().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.bizId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.bizId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.bizType.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.bizType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.source === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.source); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.spmid === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.spmid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !equals(value.args, emptyMap())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 4, tmp2_cached[4], value.args); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_8bh9ap_k$(encoder, value instanceof KMediaTabReq ? value : THROW_CCE()); + } + } + class KMediaTabReq { + constructor(bizId, bizType, source, spmid, args) { + Companion_getInstance_1239(); + bizId = bizId === VOID ? new Long(0, 0) : bizId; + bizType = bizType === VOID ? new Long(0, 0) : bizType; + source = source === VOID ? '' : source; + spmid = spmid === VOID ? '' : spmid; + args = args === VOID ? emptyMap() : args; + this.bizId = bizId; + this.bizType = bizType; + this.source = source; + this.spmid = spmid; + this.args = args; + } + get_bizId_ip6vs5_k$() { + return this.bizId; + } + get_bizType_cjyf0_k$() { + return this.bizType; + } + get_source_jl0x7o_k$() { + return this.source; + } + get_spmid_iynlwi_k$() { + return this.spmid; + } + get_args_woj09y_k$() { + return this.args; + } + component1_7eebsc_k$() { + return this.bizId; + } + component2_7eebsb_k$() { + return this.bizType; + } + component3_7eebsa_k$() { + return this.source; + } + component4_7eebs9_k$() { + return this.spmid; + } + component5_7eebs8_k$() { + return this.args; + } + copy_ghe1qz_k$(bizId, bizType, source, spmid, args) { + return new KMediaTabReq(bizId, bizType, source, spmid, args); + } + copy(bizId, bizType, source, spmid, args, $super) { + bizId = bizId === VOID ? this.bizId : bizId; + bizType = bizType === VOID ? this.bizType : bizType; + source = source === VOID ? this.source : source; + spmid = spmid === VOID ? this.spmid : spmid; + args = args === VOID ? this.args : args; + return this.copy_ghe1qz_k$(bizId, bizType, source, spmid, args); + } + toString() { + return 'KMediaTabReq(bizId=' + this.bizId.toString() + ', bizType=' + this.bizType.toString() + ', source=' + this.source + ', spmid=' + this.spmid + ', args=' + this.args + ')'; + } + hashCode() { + var result = this.bizId.hashCode(); + result = imul(result, 31) + this.bizType.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.source) | 0; + result = imul(result, 31) + getStringHashCode(this.spmid) | 0; + result = imul(result, 31) + hashCode(this.args) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KMediaTabReq)) + return false; + var tmp0_other_with_cast = other instanceof KMediaTabReq ? other : THROW_CCE(); + if (!this.bizId.equals(tmp0_other_with_cast.bizId)) + return false; + if (!this.bizType.equals(tmp0_other_with_cast.bizType)) + return false; + if (!(this.source === tmp0_other_with_cast.source)) + return false; + if (!(this.spmid === tmp0_other_with_cast.spmid)) + return false; + if (!equals(this.args, tmp0_other_with_cast.args)) + return false; + return true; + } + static new_com_bapis_bilibili_app_interfaces_v1_KMediaTabReq_djaw9m_k$(seen1, bizId, bizType, source, spmid, args, serializationConstructorMarker) { + Companion_getInstance_1239(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1226().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.bizId = new Long(0, 0); + else + $this.bizId = bizId; + if (0 === (seen1 & 2)) + $this.bizType = new Long(0, 0); + else + $this.bizType = bizType; + if (0 === (seen1 & 4)) + $this.source = ''; + else + $this.source = source; + if (0 === (seen1 & 8)) + $this.spmid = ''; + else + $this.spmid = spmid; + if (0 === (seen1 & 16)) + $this.args = emptyMap(); + else + $this.args = args; + return $this; + } + } + class Companion_1240 { + constructor() { + this.targetPath = '/bilibili.app.interface.v1.MediaCard'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1227(); + } + } + class $serializer_1227 { + constructor() { + $serializer_instance_1227 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.interfaces.v1.KMediaCard', this, 7); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('curTitle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('style', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('label', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('butFirst', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('butSecond', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('scores', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_1230()), get_nullable($serializer_getInstance_1229()), get_nullable($serializer_getInstance_1228())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp11_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_1230(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_1229(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_1228(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + } else + while (tmp1_flag) { + tmp2_index = tmp11_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_1230(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_1229(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_1228(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp11_input.endStructure_1xqz0n_k$(tmp0_desc); + return KMediaCard.new_com_bapis_bilibili_app_interfaces_v1_KMediaCard_xksmka_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, null); + } + serialize_9lfpna_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.cover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.curTitle === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.curTitle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.style === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.style); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.label === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.label); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.butFirst == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, $serializer_getInstance_1230(), value.butFirst); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.butSecond == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 5, $serializer_getInstance_1229(), value.butSecond); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.scores == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 6, $serializer_getInstance_1228(), value.scores); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_9lfpna_k$(encoder, value instanceof KMediaCard ? value : THROW_CCE()); + } + } + class KMediaCard { + constructor(cover, curTitle, style, label, butFirst, butSecond, scores) { + Companion_instance_1240; + cover = cover === VOID ? '' : cover; + curTitle = curTitle === VOID ? '' : curTitle; + style = style === VOID ? '' : style; + label = label === VOID ? '' : label; + butFirst = butFirst === VOID ? null : butFirst; + butSecond = butSecond === VOID ? null : butSecond; + scores = scores === VOID ? null : scores; + this.cover = cover; + this.curTitle = curTitle; + this.style = style; + this.label = label; + this.butFirst = butFirst; + this.butSecond = butSecond; + this.scores = scores; + } + get_cover_ipug0e_k$() { + return this.cover; + } + get_curTitle_mqs0u7_k$() { + return this.curTitle; + } + get_style_iyqetk_k$() { + return this.style; + } + get_label_iuj8p7_k$() { + return this.label; + } + get_butFirst_k73n94_k$() { + return this.butFirst; + } + get_butSecond_72r80k_k$() { + return this.butSecond; + } + get_scores_jebk8a_k$() { + return this.scores; + } + component1_7eebsc_k$() { + return this.cover; + } + component2_7eebsb_k$() { + return this.curTitle; + } + component3_7eebsa_k$() { + return this.style; + } + component4_7eebs9_k$() { + return this.label; + } + component5_7eebs8_k$() { + return this.butFirst; + } + component6_7eebs7_k$() { + return this.butSecond; + } + component7_7eebs6_k$() { + return this.scores; + } + copy_uoyvpl_k$(cover, curTitle, style, label, butFirst, butSecond, scores) { + return new KMediaCard(cover, curTitle, style, label, butFirst, butSecond, scores); + } + copy(cover, curTitle, style, label, butFirst, butSecond, scores, $super) { + cover = cover === VOID ? this.cover : cover; + curTitle = curTitle === VOID ? this.curTitle : curTitle; + style = style === VOID ? this.style : style; + label = label === VOID ? this.label : label; + butFirst = butFirst === VOID ? this.butFirst : butFirst; + butSecond = butSecond === VOID ? this.butSecond : butSecond; + scores = scores === VOID ? this.scores : scores; + return this.copy_uoyvpl_k$(cover, curTitle, style, label, butFirst, butSecond, scores); + } + toString() { + return 'KMediaCard(cover=' + this.cover + ', curTitle=' + this.curTitle + ', style=' + this.style + ', label=' + this.label + ', butFirst=' + this.butFirst + ', butSecond=' + this.butSecond + ', scores=' + this.scores + ')'; + } + hashCode() { + var result = getStringHashCode(this.cover); + result = imul(result, 31) + getStringHashCode(this.curTitle) | 0; + result = imul(result, 31) + getStringHashCode(this.style) | 0; + result = imul(result, 31) + getStringHashCode(this.label) | 0; + result = imul(result, 31) + (this.butFirst == null ? 0 : this.butFirst.hashCode()) | 0; + result = imul(result, 31) + (this.butSecond == null ? 0 : this.butSecond.hashCode()) | 0; + result = imul(result, 31) + (this.scores == null ? 0 : this.scores.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KMediaCard)) + return false; + var tmp0_other_with_cast = other instanceof KMediaCard ? other : THROW_CCE(); + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + if (!(this.curTitle === tmp0_other_with_cast.curTitle)) + return false; + if (!(this.style === tmp0_other_with_cast.style)) + return false; + if (!(this.label === tmp0_other_with_cast.label)) + return false; + if (!equals(this.butFirst, tmp0_other_with_cast.butFirst)) + return false; + if (!equals(this.butSecond, tmp0_other_with_cast.butSecond)) + return false; + if (!equals(this.scores, tmp0_other_with_cast.scores)) + return false; + return true; + } + static new_com_bapis_bilibili_app_interfaces_v1_KMediaCard_xksmka_k$(seen1, cover, curTitle, style, label, butFirst, butSecond, scores, serializationConstructorMarker) { + Companion_instance_1240; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1227().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.cover = ''; + else + $this.cover = cover; + if (0 === (seen1 & 2)) + $this.curTitle = ''; + else + $this.curTitle = curTitle; + if (0 === (seen1 & 4)) + $this.style = ''; + else + $this.style = style; + if (0 === (seen1 & 8)) + $this.label = ''; + else + $this.label = label; + if (0 === (seen1 & 16)) + $this.butFirst = null; + else + $this.butFirst = butFirst; + if (0 === (seen1 & 32)) + $this.butSecond = null; + else + $this.butSecond = butSecond; + if (0 === (seen1 & 64)) + $this.scores = null; + else + $this.scores = scores; + return $this; + } + } + class Companion_1241 { + constructor() { + this.targetPath = '/bilibili.app.interface.v1.Scores'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1228(); + } + } + class $serializer_1228 { + constructor() { + $serializer_instance_1228 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.interfaces.v1.KScores', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('score', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [FloatSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0.0; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeFloatElement_p2q55h_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeFloatElement_p2q55h_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KScores.new_com_bapis_bilibili_app_interfaces_v1_KScores_djpwpp_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_isfxq1_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.score, 0.0)) { + tmp1_output.encodeFloatElement_oe8hn_k$(tmp0_desc, 0, value.score); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_isfxq1_k$(encoder, value instanceof KScores ? value : THROW_CCE()); + } + } + class KScores { + constructor(score) { + Companion_instance_1241; + score = score === VOID ? 0.0 : score; + this.score = score; + } + get_score_iyfcrt_k$() { + return this.score; + } + component1_7eebsc_k$() { + return this.score; + } + copy_s06gv7_k$(score) { + return new KScores(score); + } + copy(score, $super) { + score = score === VOID ? this.score : score; + return this.copy_s06gv7_k$(score); + } + toString() { + return 'KScores(score=' + this.score + ')'; + } + hashCode() { + return getNumberHashCode(this.score); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KScores)) + return false; + var tmp0_other_with_cast = other instanceof KScores ? other : THROW_CCE(); + if (!equals(this.score, tmp0_other_with_cast.score)) + return false; + return true; + } + static new_com_bapis_bilibili_app_interfaces_v1_KScores_djpwpp_k$(seen1, score, serializationConstructorMarker) { + Companion_instance_1241; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1228().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.score = 0.0; + else + $this.score = score; + return $this; + } + } + class Companion_1242 { + constructor() { + Companion_instance_1242 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, new ArrayListSerializer($serializer_getInstance_1206())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.interface.v1.Supernatant'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1229(); + } + } + class $serializer_1229 { + constructor() { + $serializer_instance_1229 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.interfaces.v1.KSupernatant', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('item', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_1242().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), tmp0_cached[1]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp7_cached = Companion_getInstance_1242().$childSerializers_1; + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSupernatant.new_com_bapis_bilibili_app_interfaces_v1_KSupernatant_8hliyu_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_6l7ad9_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_1242().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !equals(value.item, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 1, tmp2_cached[1], value.item); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_6l7ad9_k$(encoder, value instanceof KSupernatant ? value : THROW_CCE()); + } + } + class KSupernatant { + constructor(title, item) { + Companion_getInstance_1242(); + title = title === VOID ? '' : title; + item = item === VOID ? emptyList() : item; + this.title = title; + this.item = item; + } + get_title_iz32un_k$() { + return this.title; + } + get_item_woo5lo_k$() { + return this.item; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.item; + } + copy_4f8paa_k$(title, item) { + return new KSupernatant(title, item); + } + copy(title, item, $super) { + title = title === VOID ? this.title : title; + item = item === VOID ? this.item : item; + return this.copy_4f8paa_k$(title, item); + } + toString() { + return 'KSupernatant(title=' + this.title + ', item=' + this.item + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + hashCode(this.item) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSupernatant)) + return false; + var tmp0_other_with_cast = other instanceof KSupernatant ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!equals(this.item, tmp0_other_with_cast.item)) + return false; + return true; + } + static new_com_bapis_bilibili_app_interfaces_v1_KSupernatant_8hliyu_k$(seen1, title, item, serializationConstructorMarker) { + Companion_getInstance_1242(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1229().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.item = emptyList(); + else + $this.item = item; + return $this; + } + } + class Companion_1243 { + constructor() { + this.targetPath = '/bilibili.app.interface.v1.Button'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1230(); + } + } + class $serializer_1230 { + constructor() { + $serializer_instance_1230 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.interfaces.v1.KButton', this, 7); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('link', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('id', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('icon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('butType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('followState', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('hasTitle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = new Long(0, 0); + var tmp8_local4 = 0; + var tmp9_local5 = 0; + var tmp10_local6 = null; + var tmp11_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp11_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + } else + while (tmp1_flag) { + tmp2_index = tmp11_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp11_input.endStructure_1xqz0n_k$(tmp0_desc); + return KButton_5.new_com_bapis_bilibili_app_interfaces_v1_KButton_mjb64s_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, null); + } + serialize_jrzoie_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.link === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.link); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.id === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.id); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !value.icon.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 3, value.icon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.butType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 4, value.butType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.followState === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 5, value.followState); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.hasTitle === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.hasTitle); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_jrzoie_k$(encoder, value instanceof KButton_5 ? value : THROW_CCE()); + } + } + class KButton_5 { + constructor(title, link, id, icon, butType, followState, hasTitle) { + Companion_instance_1243; + title = title === VOID ? '' : title; + link = link === VOID ? '' : link; + id = id === VOID ? '' : id; + icon = icon === VOID ? new Long(0, 0) : icon; + butType = butType === VOID ? 0 : butType; + followState = followState === VOID ? 0 : followState; + hasTitle = hasTitle === VOID ? '' : hasTitle; + this.title = title; + this.link = link; + this.id = id; + this.icon = icon; + this.butType = butType; + this.followState = followState; + this.hasTitle = hasTitle; + } + get_title_iz32un_k$() { + return this.title; + } + get_link_wopumb_k$() { + return this.link; + } + get_id_kntnx8_k$() { + return this.id; + } + get_icon_wont8i_k$() { + return this.icon; + } + get_butType_58oqr6_k$() { + return this.butType; + } + get_followState_uwxfd5_k$() { + return this.followState; + } + get_hasTitle_tnblnd_k$() { + return this.hasTitle; + } + butTypeEnum() { + return Companion_getInstance_1215().fromValue(this.butType); + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.link; + } + component3_7eebsa_k$() { + return this.id; + } + component4_7eebs9_k$() { + return this.icon; + } + component5_7eebs8_k$() { + return this.butType; + } + component6_7eebs7_k$() { + return this.followState; + } + component7_7eebs6_k$() { + return this.hasTitle; + } + copy_u6xrux_k$(title, link, id, icon, butType, followState, hasTitle) { + return new KButton_5(title, link, id, icon, butType, followState, hasTitle); + } + copy(title, link, id, icon, butType, followState, hasTitle, $super) { + title = title === VOID ? this.title : title; + link = link === VOID ? this.link : link; + id = id === VOID ? this.id : id; + icon = icon === VOID ? this.icon : icon; + butType = butType === VOID ? this.butType : butType; + followState = followState === VOID ? this.followState : followState; + hasTitle = hasTitle === VOID ? this.hasTitle : hasTitle; + return this.copy_u6xrux_k$(title, link, id, icon, butType, followState, hasTitle); + } + toString() { + return 'KButton(title=' + this.title + ', link=' + this.link + ', id=' + this.id + ', icon=' + this.icon.toString() + ', butType=' + this.butType + ', followState=' + this.followState + ', hasTitle=' + this.hasTitle + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.link) | 0; + result = imul(result, 31) + getStringHashCode(this.id) | 0; + result = imul(result, 31) + this.icon.hashCode() | 0; + result = imul(result, 31) + this.butType | 0; + result = imul(result, 31) + this.followState | 0; + result = imul(result, 31) + getStringHashCode(this.hasTitle) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KButton_5)) + return false; + var tmp0_other_with_cast = other instanceof KButton_5 ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.link === tmp0_other_with_cast.link)) + return false; + if (!(this.id === tmp0_other_with_cast.id)) + return false; + if (!this.icon.equals(tmp0_other_with_cast.icon)) + return false; + if (!(this.butType === tmp0_other_with_cast.butType)) + return false; + if (!(this.followState === tmp0_other_with_cast.followState)) + return false; + if (!(this.hasTitle === tmp0_other_with_cast.hasTitle)) + return false; + return true; + } + static new_com_bapis_bilibili_app_interfaces_v1_KButton_mjb64s_k$(seen1, title, link, id, icon, butType, followState, hasTitle, serializationConstructorMarker) { + Companion_instance_1243; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1230().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.link = ''; + else + $this.link = link; + if (0 === (seen1 & 4)) + $this.id = ''; + else + $this.id = id; + if (0 === (seen1 & 8)) + $this.icon = new Long(0, 0); + else + $this.icon = icon; + if (0 === (seen1 & 16)) + $this.butType = 0; + else + $this.butType = butType; + if (0 === (seen1 & 32)) + $this.followState = 0; + else + $this.followState = followState; + if (0 === (seen1 & 64)) + $this.hasTitle = ''; + else + $this.hasTitle = hasTitle; + return $this; + } + } + class Companion_1244 { + constructor() { + this.targetPath = '/bilibili.app.interface.v1.ShowTab'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1231(); + } + } + class $serializer_1231 { + constructor() { + $serializer_instance_1231 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.interfaces.v1.KShowTab', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('tabType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('url', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KShowTab.new_com_bapis_bilibili_app_interfaces_v1_KShowTab_8i69x2_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_mrnfja_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.tabType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.tabType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.url === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.url); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_mrnfja_k$(encoder, value instanceof KShowTab ? value : THROW_CCE()); + } + } + class KShowTab { + constructor(tabType, title, url) { + Companion_instance_1244; + tabType = tabType === VOID ? 0 : tabType; + title = title === VOID ? '' : title; + url = url === VOID ? '' : url; + this.tabType = tabType; + this.title = title; + this.url = url; + } + get_tabType_off3p6_k$() { + return this.tabType; + } + get_title_iz32un_k$() { + return this.title; + } + get_url_18iuii_k$() { + return this.url; + } + tabTypeEnum() { + return Companion_getInstance_1216().fromValue(this.tabType); + } + component1_7eebsc_k$() { + return this.tabType; + } + component2_7eebsb_k$() { + return this.title; + } + component3_7eebsa_k$() { + return this.url; + } + copy_hrd73x_k$(tabType, title, url) { + return new KShowTab(tabType, title, url); + } + copy(tabType, title, url, $super) { + tabType = tabType === VOID ? this.tabType : tabType; + title = title === VOID ? this.title : title; + url = url === VOID ? this.url : url; + return this.copy_hrd73x_k$(tabType, title, url); + } + toString() { + return 'KShowTab(tabType=' + this.tabType + ', title=' + this.title + ', url=' + this.url + ')'; + } + hashCode() { + var result = this.tabType; + result = imul(result, 31) + getStringHashCode(this.title) | 0; + result = imul(result, 31) + getStringHashCode(this.url) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KShowTab)) + return false; + var tmp0_other_with_cast = other instanceof KShowTab ? other : THROW_CCE(); + if (!(this.tabType === tmp0_other_with_cast.tabType)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.url === tmp0_other_with_cast.url)) + return false; + return true; + } + static new_com_bapis_bilibili_app_interfaces_v1_KShowTab_8i69x2_k$(seen1, tabType, title, url, serializationConstructorMarker) { + Companion_instance_1244; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1231().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.tabType = 0; + else + $this.tabType = tabType; + if (0 === (seen1 & 2)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 4)) + $this.url = ''; + else + $this.url = url; + return $this; + } + } + class Companion_1245 { + constructor() { + Companion_instance_1245 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, new ArrayListSerializer($serializer_getInstance_1231()), null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.interface.v1.MediaTabReply'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1232(); + } + } + class $serializer_1232 { + constructor() { + $serializer_instance_1232 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.interfaces.v1.KMediaTabReply', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('mediaCard', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('tab', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('defaultTabIndex', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('channelInfo', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_1245().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_1227()), tmp0_cached[1], LongSerializer_getInstance(), get_nullable($serializer_getInstance_1233())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = new Long(0, 0); + var tmp7_local3 = null; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp9_cached = Companion_getInstance_1245().$childSerializers_1; + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_1227(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp9_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_1233(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_1227(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp9_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_1233(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KMediaTabReply.new_com_bapis_bilibili_app_interfaces_v1_KMediaTabReply_tm6dpk_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_9nfa11_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_1245().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.mediaCard == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_1227(), value.mediaCard); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !equals(value.tab, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 1, tmp2_cached[1], value.tab); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.defaultTabIndex.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.defaultTabIndex); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.channelInfo == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_1233(), value.channelInfo); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_9nfa11_k$(encoder, value instanceof KMediaTabReply ? value : THROW_CCE()); + } + } + class KMediaTabReply { + constructor(mediaCard, tab, defaultTabIndex, channelInfo) { + Companion_getInstance_1245(); + mediaCard = mediaCard === VOID ? null : mediaCard; + tab = tab === VOID ? emptyList() : tab; + defaultTabIndex = defaultTabIndex === VOID ? new Long(0, 0) : defaultTabIndex; + channelInfo = channelInfo === VOID ? null : channelInfo; + this.mediaCard = mediaCard; + this.tab = tab; + this.defaultTabIndex = defaultTabIndex; + this.channelInfo = channelInfo; + } + get_mediaCard_r4j15h_k$() { + return this.mediaCard; + } + get_tab_18ivo4_k$() { + return this.tab; + } + get_defaultTabIndex_dl7xor_k$() { + return this.defaultTabIndex; + } + get_channelInfo_if8354_k$() { + return this.channelInfo; + } + component1_7eebsc_k$() { + return this.mediaCard; + } + component2_7eebsb_k$() { + return this.tab; + } + component3_7eebsa_k$() { + return this.defaultTabIndex; + } + component4_7eebs9_k$() { + return this.channelInfo; + } + copy_ty25m9_k$(mediaCard, tab, defaultTabIndex, channelInfo) { + return new KMediaTabReply(mediaCard, tab, defaultTabIndex, channelInfo); + } + copy(mediaCard, tab, defaultTabIndex, channelInfo, $super) { + mediaCard = mediaCard === VOID ? this.mediaCard : mediaCard; + tab = tab === VOID ? this.tab : tab; + defaultTabIndex = defaultTabIndex === VOID ? this.defaultTabIndex : defaultTabIndex; + channelInfo = channelInfo === VOID ? this.channelInfo : channelInfo; + return this.copy_ty25m9_k$(mediaCard, tab, defaultTabIndex, channelInfo); + } + toString() { + return 'KMediaTabReply(mediaCard=' + this.mediaCard + ', tab=' + this.tab + ', defaultTabIndex=' + this.defaultTabIndex.toString() + ', channelInfo=' + this.channelInfo + ')'; + } + hashCode() { + var result = this.mediaCard == null ? 0 : this.mediaCard.hashCode(); + result = imul(result, 31) + hashCode(this.tab) | 0; + result = imul(result, 31) + this.defaultTabIndex.hashCode() | 0; + result = imul(result, 31) + (this.channelInfo == null ? 0 : this.channelInfo.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KMediaTabReply)) + return false; + var tmp0_other_with_cast = other instanceof KMediaTabReply ? other : THROW_CCE(); + if (!equals(this.mediaCard, tmp0_other_with_cast.mediaCard)) + return false; + if (!equals(this.tab, tmp0_other_with_cast.tab)) + return false; + if (!this.defaultTabIndex.equals(tmp0_other_with_cast.defaultTabIndex)) + return false; + if (!equals(this.channelInfo, tmp0_other_with_cast.channelInfo)) + return false; + return true; + } + static new_com_bapis_bilibili_app_interfaces_v1_KMediaTabReply_tm6dpk_k$(seen1, mediaCard, tab, defaultTabIndex, channelInfo, serializationConstructorMarker) { + Companion_getInstance_1245(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1232().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.mediaCard = null; + else + $this.mediaCard = mediaCard; + if (0 === (seen1 & 2)) + $this.tab = emptyList(); + else + $this.tab = tab; + if (0 === (seen1 & 4)) + $this.defaultTabIndex = new Long(0, 0); + else + $this.defaultTabIndex = defaultTabIndex; + if (0 === (seen1 & 8)) + $this.channelInfo = null; + else + $this.channelInfo = channelInfo; + return $this; + } + } + class Companion_1246 { + constructor() { + this.targetPath = '/bilibili.app.interface.v1.ChannelInfo'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1233(); + } + } + class $serializer_1233 { + constructor() { + $serializer_instance_1233 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.interfaces.v1.KChannelInfo', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('channelId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('subscribed', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), BooleanSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = false; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KChannelInfo_0.new_com_bapis_bilibili_app_interfaces_v1_KChannelInfo_ptcu7o_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_d0vttf_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.channelId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.channelId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.subscribed === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 1, value.subscribed); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_d0vttf_k$(encoder, value instanceof KChannelInfo_0 ? value : THROW_CCE()); + } + } + class KChannelInfo_0 { + constructor(channelId, subscribed) { + Companion_instance_1246; + channelId = channelId === VOID ? new Long(0, 0) : channelId; + subscribed = subscribed === VOID ? false : subscribed; + this.channelId = channelId; + this.subscribed = subscribed; + } + get_channelId_wosvrp_k$() { + return this.channelId; + } + get_subscribed_uon3dv_k$() { + return this.subscribed; + } + component1_7eebsc_k$() { + return this.channelId; + } + component2_7eebsb_k$() { + return this.subscribed; + } + copy_h2wlv2_k$(channelId, subscribed) { + return new KChannelInfo_0(channelId, subscribed); + } + copy(channelId, subscribed, $super) { + channelId = channelId === VOID ? this.channelId : channelId; + subscribed = subscribed === VOID ? this.subscribed : subscribed; + return this.copy_h2wlv2_k$(channelId, subscribed); + } + toString() { + return 'KChannelInfo(channelId=' + this.channelId.toString() + ', subscribed=' + this.subscribed + ')'; + } + hashCode() { + var result = this.channelId.hashCode(); + result = imul(result, 31) + getBooleanHashCode(this.subscribed) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KChannelInfo_0)) + return false; + var tmp0_other_with_cast = other instanceof KChannelInfo_0 ? other : THROW_CCE(); + if (!this.channelId.equals(tmp0_other_with_cast.channelId)) + return false; + if (!(this.subscribed === tmp0_other_with_cast.subscribed)) + return false; + return true; + } + static new_com_bapis_bilibili_app_interfaces_v1_KChannelInfo_ptcu7o_k$(seen1, channelId, subscribed, serializationConstructorMarker) { + Companion_instance_1246; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1233().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.channelId = new Long(0, 0); + else + $this.channelId = channelId; + if (0 === (seen1 & 2)) + $this.subscribed = false; + else + $this.subscribed = subscribed; + return $this; + } + } + class Companion_1247 { + constructor() { + this.targetPath = '/bilibili.app.interface.v1.DefaultWordsReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1234(); + } + } + class $serializer_1234 { + constructor() { + $serializer_instance_1234 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.interfaces.v1.KDefaultWordsReq', this, 13); + tmp0_serialDesc.addElement_5pzumi_k$('from', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('loginEvent', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('teenagersMode', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('lessonsMode', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('tab', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('eventId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('avid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('query', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('an', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('isFresh', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('splashGuide', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('splashId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + tmp0_serialDesc.addElement_5pzumi_k$('refreshType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(13)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = new Long(0, 0); + var tmp6_local2 = 0; + var tmp7_local3 = 0; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_local8 = new Long(0, 0); + var tmp13_local9 = new Long(0, 0); + var tmp14_local10 = null; + var tmp15_local11 = new Long(0, 0); + var tmp16_local12 = new Long(0, 0); + var tmp17_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp17_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp17_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp17_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp17_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp17_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp17_input.decodeLongElement_994anb_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp17_input.decodeLongElement_994anb_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp17_input.decodeLongElement_994anb_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + tmp16_local12 = tmp17_input.decodeLongElement_994anb_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + } else + while (tmp1_flag) { + tmp2_index = tmp17_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp17_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp17_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp17_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp17_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp17_input.decodeLongElement_994anb_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp17_input.decodeLongElement_994anb_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp17_input.decodeLongElement_994anb_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + case 12: + tmp16_local12 = tmp17_input.decodeLongElement_994anb_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp17_input.endStructure_1xqz0n_k$(tmp0_desc); + return KDefaultWordsReq.new_com_bapis_bilibili_app_interfaces_v1_KDefaultWordsReq_e6uj81_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, null); + } + serialize_lmwmfs_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.from.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.from); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.loginEvent.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.loginEvent); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.teenagersMode === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.teenagersMode); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.lessonsMode === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 3, value.lessonsMode); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.tab === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.tab); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.eventId === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.eventId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.avid === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.avid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.query === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.query); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !value.an.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 8, value.an); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !value.isFresh.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 9, value.isFresh); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.splashGuide === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 10, value.splashGuide); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !value.splashId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 11, value.splashId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !value.refreshType.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 12, value.refreshType); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_lmwmfs_k$(encoder, value instanceof KDefaultWordsReq ? value : THROW_CCE()); + } + } + class KDefaultWordsReq { + constructor(from, loginEvent, teenagersMode, lessonsMode, tab, eventId, avid, query, an, isFresh, splashGuide, splashId, refreshType) { + Companion_instance_1247; + from = from === VOID ? new Long(0, 0) : from; + loginEvent = loginEvent === VOID ? new Long(0, 0) : loginEvent; + teenagersMode = teenagersMode === VOID ? 0 : teenagersMode; + lessonsMode = lessonsMode === VOID ? 0 : lessonsMode; + tab = tab === VOID ? '' : tab; + eventId = eventId === VOID ? '' : eventId; + avid = avid === VOID ? '' : avid; + query = query === VOID ? '' : query; + an = an === VOID ? new Long(0, 0) : an; + isFresh = isFresh === VOID ? new Long(0, 0) : isFresh; + splashGuide = splashGuide === VOID ? '' : splashGuide; + splashId = splashId === VOID ? new Long(0, 0) : splashId; + refreshType = refreshType === VOID ? new Long(0, 0) : refreshType; + this.from = from; + this.loginEvent = loginEvent; + this.teenagersMode = teenagersMode; + this.lessonsMode = lessonsMode; + this.tab = tab; + this.eventId = eventId; + this.avid = avid; + this.query = query; + this.an = an; + this.isFresh = isFresh; + this.splashGuide = splashGuide; + this.splashId = splashId; + this.refreshType = refreshType; + } + get_from_wom7eb_k$() { + return this.from; + } + get_loginEvent_lk3tq2_k$() { + return this.loginEvent; + } + get_teenagersMode_uv2a2o_k$() { + return this.teenagersMode; + } + get_lessonsMode_p3cc2d_k$() { + return this.lessonsMode; + } + get_tab_18ivo4_k$() { + return this.tab; + } + get_eventId_lhza1g_k$() { + return this.eventId; + } + get_avid_woj3a1_k$() { + return this.avid; + } + get_query_ixn1y7_k$() { + return this.query; + } + get_an_knto3u_k$() { + return this.an; + } + get_isFresh_zbhn3v_k$() { + return this.isFresh; + } + get_splashGuide_o6i99o_k$() { + return this.splashGuide; + } + get_splashId_78pkmj_k$() { + return this.splashId; + } + get_refreshType_91r450_k$() { + return this.refreshType; + } + component1_7eebsc_k$() { + return this.from; + } + component2_7eebsb_k$() { + return this.loginEvent; + } + component3_7eebsa_k$() { + return this.teenagersMode; + } + component4_7eebs9_k$() { + return this.lessonsMode; + } + component5_7eebs8_k$() { + return this.tab; + } + component6_7eebs7_k$() { + return this.eventId; + } + component7_7eebs6_k$() { + return this.avid; + } + component8_7eebs5_k$() { + return this.query; + } + component9_7eebs4_k$() { + return this.an; + } + component10_gazzfo_k$() { + return this.isFresh; + } + component11_gazzfn_k$() { + return this.splashGuide; + } + component12_gazzfm_k$() { + return this.splashId; + } + component13_gazzfl_k$() { + return this.refreshType; + } + copy_bjpwlz_k$(from, loginEvent, teenagersMode, lessonsMode, tab, eventId, avid, query, an, isFresh, splashGuide, splashId, refreshType) { + return new KDefaultWordsReq(from, loginEvent, teenagersMode, lessonsMode, tab, eventId, avid, query, an, isFresh, splashGuide, splashId, refreshType); + } + copy(from, loginEvent, teenagersMode, lessonsMode, tab, eventId, avid, query, an, isFresh, splashGuide, splashId, refreshType, $super) { + from = from === VOID ? this.from : from; + loginEvent = loginEvent === VOID ? this.loginEvent : loginEvent; + teenagersMode = teenagersMode === VOID ? this.teenagersMode : teenagersMode; + lessonsMode = lessonsMode === VOID ? this.lessonsMode : lessonsMode; + tab = tab === VOID ? this.tab : tab; + eventId = eventId === VOID ? this.eventId : eventId; + avid = avid === VOID ? this.avid : avid; + query = query === VOID ? this.query : query; + an = an === VOID ? this.an : an; + isFresh = isFresh === VOID ? this.isFresh : isFresh; + splashGuide = splashGuide === VOID ? this.splashGuide : splashGuide; + splashId = splashId === VOID ? this.splashId : splashId; + refreshType = refreshType === VOID ? this.refreshType : refreshType; + return this.copy_bjpwlz_k$(from, loginEvent, teenagersMode, lessonsMode, tab, eventId, avid, query, an, isFresh, splashGuide, splashId, refreshType); + } + toString() { + return 'KDefaultWordsReq(from=' + this.from.toString() + ', loginEvent=' + this.loginEvent.toString() + ', teenagersMode=' + this.teenagersMode + ', lessonsMode=' + this.lessonsMode + ', tab=' + this.tab + ', eventId=' + this.eventId + ', avid=' + this.avid + ', query=' + this.query + ', an=' + this.an.toString() + ', isFresh=' + this.isFresh.toString() + ', splashGuide=' + this.splashGuide + ', splashId=' + this.splashId.toString() + ', refreshType=' + this.refreshType.toString() + ')'; + } + hashCode() { + var result = this.from.hashCode(); + result = imul(result, 31) + this.loginEvent.hashCode() | 0; + result = imul(result, 31) + this.teenagersMode | 0; + result = imul(result, 31) + this.lessonsMode | 0; + result = imul(result, 31) + getStringHashCode(this.tab) | 0; + result = imul(result, 31) + getStringHashCode(this.eventId) | 0; + result = imul(result, 31) + getStringHashCode(this.avid) | 0; + result = imul(result, 31) + getStringHashCode(this.query) | 0; + result = imul(result, 31) + this.an.hashCode() | 0; + result = imul(result, 31) + this.isFresh.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.splashGuide) | 0; + result = imul(result, 31) + this.splashId.hashCode() | 0; + result = imul(result, 31) + this.refreshType.hashCode() | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KDefaultWordsReq)) + return false; + var tmp0_other_with_cast = other instanceof KDefaultWordsReq ? other : THROW_CCE(); + if (!this.from.equals(tmp0_other_with_cast.from)) + return false; + if (!this.loginEvent.equals(tmp0_other_with_cast.loginEvent)) + return false; + if (!(this.teenagersMode === tmp0_other_with_cast.teenagersMode)) + return false; + if (!(this.lessonsMode === tmp0_other_with_cast.lessonsMode)) + return false; + if (!(this.tab === tmp0_other_with_cast.tab)) + return false; + if (!(this.eventId === tmp0_other_with_cast.eventId)) + return false; + if (!(this.avid === tmp0_other_with_cast.avid)) + return false; + if (!(this.query === tmp0_other_with_cast.query)) + return false; + if (!this.an.equals(tmp0_other_with_cast.an)) + return false; + if (!this.isFresh.equals(tmp0_other_with_cast.isFresh)) + return false; + if (!(this.splashGuide === tmp0_other_with_cast.splashGuide)) + return false; + if (!this.splashId.equals(tmp0_other_with_cast.splashId)) + return false; + if (!this.refreshType.equals(tmp0_other_with_cast.refreshType)) + return false; + return true; + } + static new_com_bapis_bilibili_app_interfaces_v1_KDefaultWordsReq_e6uj81_k$(seen1, from, loginEvent, teenagersMode, lessonsMode, tab, eventId, avid, query, an, isFresh, splashGuide, splashId, refreshType, serializationConstructorMarker) { + Companion_instance_1247; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1234().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.from = new Long(0, 0); + else + $this.from = from; + if (0 === (seen1 & 2)) + $this.loginEvent = new Long(0, 0); + else + $this.loginEvent = loginEvent; + if (0 === (seen1 & 4)) + $this.teenagersMode = 0; + else + $this.teenagersMode = teenagersMode; + if (0 === (seen1 & 8)) + $this.lessonsMode = 0; + else + $this.lessonsMode = lessonsMode; + if (0 === (seen1 & 16)) + $this.tab = ''; + else + $this.tab = tab; + if (0 === (seen1 & 32)) + $this.eventId = ''; + else + $this.eventId = eventId; + if (0 === (seen1 & 64)) + $this.avid = ''; + else + $this.avid = avid; + if (0 === (seen1 & 128)) + $this.query = ''; + else + $this.query = query; + if (0 === (seen1 & 256)) + $this.an = new Long(0, 0); + else + $this.an = an; + if (0 === (seen1 & 512)) + $this.isFresh = new Long(0, 0); + else + $this.isFresh = isFresh; + if (0 === (seen1 & 1024)) + $this.splashGuide = ''; + else + $this.splashGuide = splashGuide; + if (0 === (seen1 & 2048)) + $this.splashId = new Long(0, 0); + else + $this.splashId = splashId; + if (0 === (seen1 & 4096)) + $this.refreshType = new Long(0, 0); + else + $this.refreshType = refreshType; + return $this; + } + } + class Companion_1248 { + constructor() { + this.targetPath = '/bilibili.app.interface.v1.DefaultWordsReply'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1235(); + } + } + class $serializer_1235 { + constructor() { + $serializer_instance_1235 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.interfaces.v1.KDefaultWordsReply', this, 13); + tmp0_serialDesc.addElement_5pzumi_k$('trackid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('param', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('show', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('word', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('showFront', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('expStr', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('goto', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('value', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('uri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('enableRefresh', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('refreshIntervalMilli', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('enableAnimation', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + tmp0_serialDesc.addElement_5pzumi_k$('animationTimeMilli', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(13)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = new Long(0, 0); + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_local8 = null; + var tmp13_local9 = new Long(0, 0); + var tmp14_local10 = new Long(0, 0); + var tmp15_local11 = new Long(0, 0); + var tmp16_local12 = new Long(0, 0); + var tmp17_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp17_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp17_input.decodeLongElement_994anb_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp17_input.decodeLongElement_994anb_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp17_input.decodeLongElement_994anb_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp17_input.decodeLongElement_994anb_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + tmp16_local12 = tmp17_input.decodeLongElement_994anb_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + } else + while (tmp1_flag) { + tmp2_index = tmp17_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp17_input.decodeLongElement_994anb_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp17_input.decodeLongElement_994anb_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp17_input.decodeLongElement_994anb_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp17_input.decodeLongElement_994anb_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + case 12: + tmp16_local12 = tmp17_input.decodeLongElement_994anb_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp17_input.endStructure_1xqz0n_k$(tmp0_desc); + return KDefaultWordsReply.new_com_bapis_bilibili_app_interfaces_v1_KDefaultWordsReply_khx69c_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, null); + } + serialize_9qinms_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.trackid === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.trackid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.param === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.param); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.show === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.show); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.word === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.word); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !value.showFront.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 4, value.showFront); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.expStr === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.expStr); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.goto === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.goto); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.value === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.value); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.uri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 8, value.uri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !value.enableRefresh.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 9, value.enableRefresh); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !value.refreshIntervalMilli.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 10, value.refreshIntervalMilli); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !value.enableAnimation.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 11, value.enableAnimation); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !value.animationTimeMilli.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 12, value.animationTimeMilli); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_9qinms_k$(encoder, value instanceof KDefaultWordsReply ? value : THROW_CCE()); + } + } + class KDefaultWordsReply { + constructor(trackid, param, show, word, showFront, expStr, goto, value, uri, enableRefresh, refreshIntervalMilli, enableAnimation, animationTimeMilli) { + Companion_instance_1248; + trackid = trackid === VOID ? '' : trackid; + param = param === VOID ? '' : param; + show = show === VOID ? '' : show; + word = word === VOID ? '' : word; + showFront = showFront === VOID ? new Long(0, 0) : showFront; + expStr = expStr === VOID ? '' : expStr; + goto = goto === VOID ? '' : goto; + value = value === VOID ? '' : value; + uri = uri === VOID ? '' : uri; + enableRefresh = enableRefresh === VOID ? new Long(0, 0) : enableRefresh; + refreshIntervalMilli = refreshIntervalMilli === VOID ? new Long(0, 0) : refreshIntervalMilli; + enableAnimation = enableAnimation === VOID ? new Long(0, 0) : enableAnimation; + animationTimeMilli = animationTimeMilli === VOID ? new Long(0, 0) : animationTimeMilli; + this.trackid = trackid; + this.param = param; + this.show = show; + this.word = word; + this.showFront = showFront; + this.expStr = expStr; + this.goto = goto; + this.value = value; + this.uri = uri; + this.enableRefresh = enableRefresh; + this.refreshIntervalMilli = refreshIntervalMilli; + this.enableAnimation = enableAnimation; + this.animationTimeMilli = animationTimeMilli; + } + get_trackid_gdy1c3_k$() { + return this.trackid; + } + get_param_iwqquc_k$() { + return this.param; + } + get_show_wouati_k$() { + return this.show; + } + get_word_wox00j_k$() { + return this.word; + } + get_showFront_ncg41p_k$() { + return this.showFront; + } + get_expStr_d38jj1_k$() { + return this.expStr; + } + get_goto_womsa4_k$() { + return this.goto; + } + get_value_j01efc_k$() { + return this.value; + } + get_uri_18iuil_k$() { + return this.uri; + } + get_enableRefresh_z9052n_k$() { + return this.enableRefresh; + } + get_refreshIntervalMilli_ebvh6y_k$() { + return this.refreshIntervalMilli; + } + get_enableAnimation_lg3l94_k$() { + return this.enableAnimation; + } + get_animationTimeMilli_7g3bl1_k$() { + return this.animationTimeMilli; + } + component1_7eebsc_k$() { + return this.trackid; + } + component2_7eebsb_k$() { + return this.param; + } + component3_7eebsa_k$() { + return this.show; + } + component4_7eebs9_k$() { + return this.word; + } + component5_7eebs8_k$() { + return this.showFront; + } + component6_7eebs7_k$() { + return this.expStr; + } + component7_7eebs6_k$() { + return this.goto; + } + component8_7eebs5_k$() { + return this.value; + } + component9_7eebs4_k$() { + return this.uri; + } + component10_gazzfo_k$() { + return this.enableRefresh; + } + component11_gazzfn_k$() { + return this.refreshIntervalMilli; + } + component12_gazzfm_k$() { + return this.enableAnimation; + } + component13_gazzfl_k$() { + return this.animationTimeMilli; + } + copy_1itvvv_k$(trackid, param, show, word, showFront, expStr, goto, value, uri, enableRefresh, refreshIntervalMilli, enableAnimation, animationTimeMilli) { + return new KDefaultWordsReply(trackid, param, show, word, showFront, expStr, goto, value, uri, enableRefresh, refreshIntervalMilli, enableAnimation, animationTimeMilli); + } + copy(trackid, param, show, word, showFront, expStr, goto, value, uri, enableRefresh, refreshIntervalMilli, enableAnimation, animationTimeMilli, $super) { + trackid = trackid === VOID ? this.trackid : trackid; + param = param === VOID ? this.param : param; + show = show === VOID ? this.show : show; + word = word === VOID ? this.word : word; + showFront = showFront === VOID ? this.showFront : showFront; + expStr = expStr === VOID ? this.expStr : expStr; + goto = goto === VOID ? this.goto : goto; + value = value === VOID ? this.value : value; + uri = uri === VOID ? this.uri : uri; + enableRefresh = enableRefresh === VOID ? this.enableRefresh : enableRefresh; + refreshIntervalMilli = refreshIntervalMilli === VOID ? this.refreshIntervalMilli : refreshIntervalMilli; + enableAnimation = enableAnimation === VOID ? this.enableAnimation : enableAnimation; + animationTimeMilli = animationTimeMilli === VOID ? this.animationTimeMilli : animationTimeMilli; + return this.copy_1itvvv_k$(trackid, param, show, word, showFront, expStr, goto, value, uri, enableRefresh, refreshIntervalMilli, enableAnimation, animationTimeMilli); + } + toString() { + return 'KDefaultWordsReply(trackid=' + this.trackid + ', param=' + this.param + ', show=' + this.show + ', word=' + this.word + ', showFront=' + this.showFront.toString() + ', expStr=' + this.expStr + ', goto=' + this.goto + ', value=' + this.value + ', uri=' + this.uri + ', enableRefresh=' + this.enableRefresh.toString() + ', refreshIntervalMilli=' + this.refreshIntervalMilli.toString() + ', enableAnimation=' + this.enableAnimation.toString() + ', animationTimeMilli=' + this.animationTimeMilli.toString() + ')'; + } + hashCode() { + var result = getStringHashCode(this.trackid); + result = imul(result, 31) + getStringHashCode(this.param) | 0; + result = imul(result, 31) + getStringHashCode(this.show) | 0; + result = imul(result, 31) + getStringHashCode(this.word) | 0; + result = imul(result, 31) + this.showFront.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.expStr) | 0; + result = imul(result, 31) + getStringHashCode(this.goto) | 0; + result = imul(result, 31) + getStringHashCode(this.value) | 0; + result = imul(result, 31) + getStringHashCode(this.uri) | 0; + result = imul(result, 31) + this.enableRefresh.hashCode() | 0; + result = imul(result, 31) + this.refreshIntervalMilli.hashCode() | 0; + result = imul(result, 31) + this.enableAnimation.hashCode() | 0; + result = imul(result, 31) + this.animationTimeMilli.hashCode() | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KDefaultWordsReply)) + return false; + var tmp0_other_with_cast = other instanceof KDefaultWordsReply ? other : THROW_CCE(); + if (!(this.trackid === tmp0_other_with_cast.trackid)) + return false; + if (!(this.param === tmp0_other_with_cast.param)) + return false; + if (!(this.show === tmp0_other_with_cast.show)) + return false; + if (!(this.word === tmp0_other_with_cast.word)) + return false; + if (!this.showFront.equals(tmp0_other_with_cast.showFront)) + return false; + if (!(this.expStr === tmp0_other_with_cast.expStr)) + return false; + if (!(this.goto === tmp0_other_with_cast.goto)) + return false; + if (!(this.value === tmp0_other_with_cast.value)) + return false; + if (!(this.uri === tmp0_other_with_cast.uri)) + return false; + if (!this.enableRefresh.equals(tmp0_other_with_cast.enableRefresh)) + return false; + if (!this.refreshIntervalMilli.equals(tmp0_other_with_cast.refreshIntervalMilli)) + return false; + if (!this.enableAnimation.equals(tmp0_other_with_cast.enableAnimation)) + return false; + if (!this.animationTimeMilli.equals(tmp0_other_with_cast.animationTimeMilli)) + return false; + return true; + } + static new_com_bapis_bilibili_app_interfaces_v1_KDefaultWordsReply_khx69c_k$(seen1, trackid, param, show, word, showFront, expStr, goto, value, uri, enableRefresh, refreshIntervalMilli, enableAnimation, animationTimeMilli, serializationConstructorMarker) { + Companion_instance_1248; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1235().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.trackid = ''; + else + $this.trackid = trackid; + if (0 === (seen1 & 2)) + $this.param = ''; + else + $this.param = param; + if (0 === (seen1 & 4)) + $this.show = ''; + else + $this.show = show; + if (0 === (seen1 & 8)) + $this.word = ''; + else + $this.word = word; + if (0 === (seen1 & 16)) + $this.showFront = new Long(0, 0); + else + $this.showFront = showFront; + if (0 === (seen1 & 32)) + $this.expStr = ''; + else + $this.expStr = expStr; + if (0 === (seen1 & 64)) + $this.goto = ''; + else + $this.goto = goto; + if (0 === (seen1 & 128)) + $this.value = ''; + else + $this.value = value; + if (0 === (seen1 & 256)) + $this.uri = ''; + else + $this.uri = uri; + if (0 === (seen1 & 512)) + $this.enableRefresh = new Long(0, 0); + else + $this.enableRefresh = enableRefresh; + if (0 === (seen1 & 1024)) + $this.refreshIntervalMilli = new Long(0, 0); + else + $this.refreshIntervalMilli = refreshIntervalMilli; + if (0 === (seen1 & 2048)) + $this.enableAnimation = new Long(0, 0); + else + $this.enableAnimation = enableAnimation; + if (0 === (seen1 & 4096)) + $this.animationTimeMilli = new Long(0, 0); + else + $this.animationTimeMilli = animationTimeMilli; + return $this; + } + } + class Companion_1249 { + constructor() { + this.targetPath = '/bilibili.app.interface.v1.SuggestionResult3Req'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1236(); + } + } + class $serializer_1236 { + constructor() { + $serializer_instance_1236 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.interfaces.v1.KSuggestionResult3Req', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('keyword', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('highlight', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('teenagersMode', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = 0; + var tmp6_local2 = 0; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSuggestionResult3Req.new_com_bapis_bilibili_app_interfaces_v1_KSuggestionResult3Req_i3blv3_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_851mn0_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.keyword === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.keyword); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.highlight === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.highlight); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.teenagersMode === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.teenagersMode); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_851mn0_k$(encoder, value instanceof KSuggestionResult3Req ? value : THROW_CCE()); + } + } + class KSuggestionResult3Req { + constructor(keyword, highlight, teenagersMode) { + Companion_instance_1249; + keyword = keyword === VOID ? '' : keyword; + highlight = highlight === VOID ? 0 : highlight; + teenagersMode = teenagersMode === VOID ? 0 : teenagersMode; + this.keyword = keyword; + this.highlight = highlight; + this.teenagersMode = teenagersMode; + } + get_keyword_c7bncw_k$() { + return this.keyword; + } + get_highlight_2r1wc5_k$() { + return this.highlight; + } + get_teenagersMode_uv2a2o_k$() { + return this.teenagersMode; + } + component1_7eebsc_k$() { + return this.keyword; + } + component2_7eebsb_k$() { + return this.highlight; + } + component3_7eebsa_k$() { + return this.teenagersMode; + } + copy_6a2u3_k$(keyword, highlight, teenagersMode) { + return new KSuggestionResult3Req(keyword, highlight, teenagersMode); + } + copy(keyword, highlight, teenagersMode, $super) { + keyword = keyword === VOID ? this.keyword : keyword; + highlight = highlight === VOID ? this.highlight : highlight; + teenagersMode = teenagersMode === VOID ? this.teenagersMode : teenagersMode; + return this.copy_6a2u3_k$(keyword, highlight, teenagersMode); + } + toString() { + return 'KSuggestionResult3Req(keyword=' + this.keyword + ', highlight=' + this.highlight + ', teenagersMode=' + this.teenagersMode + ')'; + } + hashCode() { + var result = getStringHashCode(this.keyword); + result = imul(result, 31) + this.highlight | 0; + result = imul(result, 31) + this.teenagersMode | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSuggestionResult3Req)) + return false; + var tmp0_other_with_cast = other instanceof KSuggestionResult3Req ? other : THROW_CCE(); + if (!(this.keyword === tmp0_other_with_cast.keyword)) + return false; + if (!(this.highlight === tmp0_other_with_cast.highlight)) + return false; + if (!(this.teenagersMode === tmp0_other_with_cast.teenagersMode)) + return false; + return true; + } + static new_com_bapis_bilibili_app_interfaces_v1_KSuggestionResult3Req_i3blv3_k$(seen1, keyword, highlight, teenagersMode, serializationConstructorMarker) { + Companion_instance_1249; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1236().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.keyword = ''; + else + $this.keyword = keyword; + if (0 === (seen1 & 2)) + $this.highlight = 0; + else + $this.highlight = highlight; + if (0 === (seen1 & 4)) + $this.teenagersMode = 0; + else + $this.teenagersMode = teenagersMode; + return $this; + } + } + class Companion_1250 { + constructor() { + Companion_instance_1250 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, new ArrayListSerializer($serializer_getInstance_1238()), null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.interface.v1.SuggestionResult3Reply'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1237(); + } + } + class $serializer_1237 { + constructor() { + $serializer_instance_1237 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.interfaces.v1.KSuggestionResult3Reply', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('trackid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('list', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('expStr', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_1250().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), tmp0_cached[1], StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp8_cached = Companion_getInstance_1250().$childSerializers_1; + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp8_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp8_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSuggestionResult3Reply.new_com_bapis_bilibili_app_interfaces_v1_KSuggestionResult3Reply_l2hdvk_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_k1kgj4_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_1250().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.trackid === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.trackid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !equals(value.list, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 1, tmp2_cached[1], value.list); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.expStr === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.expStr); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_k1kgj4_k$(encoder, value instanceof KSuggestionResult3Reply ? value : THROW_CCE()); + } + } + class KSuggestionResult3Reply { + constructor(trackid, list, expStr) { + Companion_getInstance_1250(); + trackid = trackid === VOID ? '' : trackid; + list = list === VOID ? emptyList() : list; + expStr = expStr === VOID ? '' : expStr; + this.trackid = trackid; + this.list = list; + this.expStr = expStr; + } + get_trackid_gdy1c3_k$() { + return this.trackid; + } + get_list_wopuqv_k$() { + return this.list; + } + get_expStr_d38jj1_k$() { + return this.expStr; + } + component1_7eebsc_k$() { + return this.trackid; + } + component2_7eebsb_k$() { + return this.list; + } + component3_7eebsa_k$() { + return this.expStr; + } + copy_qfygcs_k$(trackid, list, expStr) { + return new KSuggestionResult3Reply(trackid, list, expStr); + } + copy(trackid, list, expStr, $super) { + trackid = trackid === VOID ? this.trackid : trackid; + list = list === VOID ? this.list : list; + expStr = expStr === VOID ? this.expStr : expStr; + return this.copy_qfygcs_k$(trackid, list, expStr); + } + toString() { + return 'KSuggestionResult3Reply(trackid=' + this.trackid + ', list=' + this.list + ', expStr=' + this.expStr + ')'; + } + hashCode() { + var result = getStringHashCode(this.trackid); + result = imul(result, 31) + hashCode(this.list) | 0; + result = imul(result, 31) + getStringHashCode(this.expStr) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSuggestionResult3Reply)) + return false; + var tmp0_other_with_cast = other instanceof KSuggestionResult3Reply ? other : THROW_CCE(); + if (!(this.trackid === tmp0_other_with_cast.trackid)) + return false; + if (!equals(this.list, tmp0_other_with_cast.list)) + return false; + if (!(this.expStr === tmp0_other_with_cast.expStr)) + return false; + return true; + } + static new_com_bapis_bilibili_app_interfaces_v1_KSuggestionResult3Reply_l2hdvk_k$(seen1, trackid, list, expStr, serializationConstructorMarker) { + Companion_getInstance_1250(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1237().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.trackid = ''; + else + $this.trackid = trackid; + if (0 === (seen1 & 2)) + $this.list = emptyList(); + else + $this.list = list; + if (0 === (seen1 & 4)) + $this.expStr = ''; + else + $this.expStr = expStr; + return $this; + } + } + class Companion_1251 { + constructor() { + Companion_instance_1251 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, new ArrayListSerializer($serializer_getInstance_1241()), null, null, null, null, null, null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.interface.v1.ResultItem'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1238(); + } + } + class $serializer_1238 { + constructor() { + $serializer_instance_1238 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.interfaces.v1.KResultItem', this, 31); + tmp0_serialDesc.addElement_5pzumi_k$('from', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('keyword', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('position', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('coverSize', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('sugType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('termType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('goto', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('uri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('officialVerify', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('param', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + tmp0_serialDesc.addElement_5pzumi_k$('mid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(13)); + tmp0_serialDesc.addElement_5pzumi_k$('fans', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(14)); + tmp0_serialDesc.addElement_5pzumi_k$('level', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(15)); + tmp0_serialDesc.addElement_5pzumi_k$('archives', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(16)); + tmp0_serialDesc.addElement_5pzumi_k$('ptime', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(17)); + tmp0_serialDesc.addElement_5pzumi_k$('seasonTypeName', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(18)); + tmp0_serialDesc.addElement_5pzumi_k$('area', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(19)); + tmp0_serialDesc.addElement_5pzumi_k$('style', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(20)); + tmp0_serialDesc.addElement_5pzumi_k$('label', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(21)); + tmp0_serialDesc.addElement_5pzumi_k$('rating', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(22)); + tmp0_serialDesc.addElement_5pzumi_k$('vote', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(23)); + tmp0_serialDesc.addElement_5pzumi_k$('badges', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(24)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('styles', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(25)); + tmp0_serialDesc.addElement_5pzumi_k$('moduleId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(26)); + tmp0_serialDesc.addElement_5pzumi_k$('liveLink', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(27)); + tmp0_serialDesc.addElement_5pzumi_k$('faceNftNew', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(28)); + tmp0_serialDesc.addElement_5pzumi_k$('nftFaceIcon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(29)); + tmp0_serialDesc.addElement_5pzumi_k$('isSeniorMember', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(30)); + tmp0_serialDesc.addElement_5pzumi_k$('isSugStyleExp', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(31)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_1251().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), DoubleSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_1240()), StringSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), DoubleSerializer_getInstance(), IntSerializer_getInstance(), tmp0_cached[23], StringSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), get_nullable($serializer_getInstance_1239()), IntSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = 0; + var tmp8_local4 = null; + var tmp9_local5 = 0.0; + var tmp10_local6 = null; + var tmp11_local7 = 0; + var tmp12_local8 = null; + var tmp13_local9 = null; + var tmp14_local10 = null; + var tmp15_local11 = null; + var tmp16_local12 = new Long(0, 0); + var tmp17_local13 = 0; + var tmp18_local14 = 0; + var tmp19_local15 = 0; + var tmp20_local16 = new Long(0, 0); + var tmp21_local17 = null; + var tmp22_local18 = null; + var tmp23_local19 = null; + var tmp24_local20 = null; + var tmp25_local21 = 0.0; + var tmp26_local22 = 0; + var tmp27_local23 = null; + var tmp28_local24 = null; + var tmp29_local25 = new Long(0, 0); + var tmp30_local26 = null; + var tmp31_local27 = 0; + var tmp32_local28 = null; + var tmp33_local29 = 0; + var tmp34_local30 = 0; + var tmp35_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp36_cached = Companion_getInstance_1251().$childSerializers_1; + if (tmp35_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp35_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp35_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp35_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp35_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp35_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp35_input.decodeDoubleElement_isei84_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp35_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp35_input.decodeIntElement_941u6a_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp35_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp35_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp35_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 10, $serializer_getInstance_1240(), tmp14_local10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp35_input.decodeStringElement_3oenpg_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + tmp16_local12 = tmp35_input.decodeLongElement_994anb_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + tmp17_local13 = tmp35_input.decodeIntElement_941u6a_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + tmp18_local14 = tmp35_input.decodeIntElement_941u6a_k$(tmp0_desc, 14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + tmp19_local15 = tmp35_input.decodeIntElement_941u6a_k$(tmp0_desc, 15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + tmp20_local16 = tmp35_input.decodeLongElement_994anb_k$(tmp0_desc, 16); + tmp3_bitMask0 = tmp3_bitMask0 | 65536; + tmp21_local17 = tmp35_input.decodeStringElement_3oenpg_k$(tmp0_desc, 17); + tmp3_bitMask0 = tmp3_bitMask0 | 131072; + tmp22_local18 = tmp35_input.decodeStringElement_3oenpg_k$(tmp0_desc, 18); + tmp3_bitMask0 = tmp3_bitMask0 | 262144; + tmp23_local19 = tmp35_input.decodeStringElement_3oenpg_k$(tmp0_desc, 19); + tmp3_bitMask0 = tmp3_bitMask0 | 524288; + tmp24_local20 = tmp35_input.decodeStringElement_3oenpg_k$(tmp0_desc, 20); + tmp3_bitMask0 = tmp3_bitMask0 | 1048576; + tmp25_local21 = tmp35_input.decodeDoubleElement_isei84_k$(tmp0_desc, 21); + tmp3_bitMask0 = tmp3_bitMask0 | 2097152; + tmp26_local22 = tmp35_input.decodeIntElement_941u6a_k$(tmp0_desc, 22); + tmp3_bitMask0 = tmp3_bitMask0 | 4194304; + tmp27_local23 = tmp35_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 23, tmp36_cached[23], tmp27_local23); + tmp3_bitMask0 = tmp3_bitMask0 | 8388608; + tmp28_local24 = tmp35_input.decodeStringElement_3oenpg_k$(tmp0_desc, 24); + tmp3_bitMask0 = tmp3_bitMask0 | 16777216; + tmp29_local25 = tmp35_input.decodeLongElement_994anb_k$(tmp0_desc, 25); + tmp3_bitMask0 = tmp3_bitMask0 | 33554432; + tmp30_local26 = tmp35_input.decodeStringElement_3oenpg_k$(tmp0_desc, 26); + tmp3_bitMask0 = tmp3_bitMask0 | 67108864; + tmp31_local27 = tmp35_input.decodeIntElement_941u6a_k$(tmp0_desc, 27); + tmp3_bitMask0 = tmp3_bitMask0 | 134217728; + tmp32_local28 = tmp35_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 28, $serializer_getInstance_1239(), tmp32_local28); + tmp3_bitMask0 = tmp3_bitMask0 | 268435456; + tmp33_local29 = tmp35_input.decodeIntElement_941u6a_k$(tmp0_desc, 29); + tmp3_bitMask0 = tmp3_bitMask0 | 536870912; + tmp34_local30 = tmp35_input.decodeIntElement_941u6a_k$(tmp0_desc, 30); + tmp3_bitMask0 = tmp3_bitMask0 | 1073741824; + } else + while (tmp1_flag) { + tmp2_index = tmp35_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp35_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp35_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp35_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp35_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp35_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp35_input.decodeDoubleElement_isei84_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp35_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp35_input.decodeIntElement_941u6a_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp35_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp35_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp35_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 10, $serializer_getInstance_1240(), tmp14_local10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp35_input.decodeStringElement_3oenpg_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + case 12: + tmp16_local12 = tmp35_input.decodeLongElement_994anb_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + break; + case 13: + tmp17_local13 = tmp35_input.decodeIntElement_941u6a_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + break; + case 14: + tmp18_local14 = tmp35_input.decodeIntElement_941u6a_k$(tmp0_desc, 14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + break; + case 15: + tmp19_local15 = tmp35_input.decodeIntElement_941u6a_k$(tmp0_desc, 15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + break; + case 16: + tmp20_local16 = tmp35_input.decodeLongElement_994anb_k$(tmp0_desc, 16); + tmp3_bitMask0 = tmp3_bitMask0 | 65536; + break; + case 17: + tmp21_local17 = tmp35_input.decodeStringElement_3oenpg_k$(tmp0_desc, 17); + tmp3_bitMask0 = tmp3_bitMask0 | 131072; + break; + case 18: + tmp22_local18 = tmp35_input.decodeStringElement_3oenpg_k$(tmp0_desc, 18); + tmp3_bitMask0 = tmp3_bitMask0 | 262144; + break; + case 19: + tmp23_local19 = tmp35_input.decodeStringElement_3oenpg_k$(tmp0_desc, 19); + tmp3_bitMask0 = tmp3_bitMask0 | 524288; + break; + case 20: + tmp24_local20 = tmp35_input.decodeStringElement_3oenpg_k$(tmp0_desc, 20); + tmp3_bitMask0 = tmp3_bitMask0 | 1048576; + break; + case 21: + tmp25_local21 = tmp35_input.decodeDoubleElement_isei84_k$(tmp0_desc, 21); + tmp3_bitMask0 = tmp3_bitMask0 | 2097152; + break; + case 22: + tmp26_local22 = tmp35_input.decodeIntElement_941u6a_k$(tmp0_desc, 22); + tmp3_bitMask0 = tmp3_bitMask0 | 4194304; + break; + case 23: + tmp27_local23 = tmp35_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 23, tmp36_cached[23], tmp27_local23); + tmp3_bitMask0 = tmp3_bitMask0 | 8388608; + break; + case 24: + tmp28_local24 = tmp35_input.decodeStringElement_3oenpg_k$(tmp0_desc, 24); + tmp3_bitMask0 = tmp3_bitMask0 | 16777216; + break; + case 25: + tmp29_local25 = tmp35_input.decodeLongElement_994anb_k$(tmp0_desc, 25); + tmp3_bitMask0 = tmp3_bitMask0 | 33554432; + break; + case 26: + tmp30_local26 = tmp35_input.decodeStringElement_3oenpg_k$(tmp0_desc, 26); + tmp3_bitMask0 = tmp3_bitMask0 | 67108864; + break; + case 27: + tmp31_local27 = tmp35_input.decodeIntElement_941u6a_k$(tmp0_desc, 27); + tmp3_bitMask0 = tmp3_bitMask0 | 134217728; + break; + case 28: + tmp32_local28 = tmp35_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 28, $serializer_getInstance_1239(), tmp32_local28); + tmp3_bitMask0 = tmp3_bitMask0 | 268435456; + break; + case 29: + tmp33_local29 = tmp35_input.decodeIntElement_941u6a_k$(tmp0_desc, 29); + tmp3_bitMask0 = tmp3_bitMask0 | 536870912; + break; + case 30: + tmp34_local30 = tmp35_input.decodeIntElement_941u6a_k$(tmp0_desc, 30); + tmp3_bitMask0 = tmp3_bitMask0 | 1073741824; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp35_input.endStructure_1xqz0n_k$(tmp0_desc); + return KResultItem.new_com_bapis_bilibili_app_interfaces_v1_KResultItem_4irk05_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, tmp18_local14, tmp19_local15, tmp20_local16, tmp21_local17, tmp22_local18, tmp23_local19, tmp24_local20, tmp25_local21, tmp26_local22, tmp27_local23, tmp28_local24, tmp29_local25, tmp30_local26, tmp31_local27, tmp32_local28, tmp33_local29, tmp34_local30, null); + } + serialize_juombs_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_1251().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.from === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.from); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.keyword === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.keyword); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.position === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 3, value.position); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.cover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !equals(value.coverSize, 0.0)) { + tmp1_output.encodeDoubleElement_a6rqhe_k$(tmp0_desc, 5, value.coverSize); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.sugType === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.sugType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.termType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 7, value.termType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.goto === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 8, value.goto); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.uri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 9, value.uri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.officialVerify == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 10, $serializer_getInstance_1240(), value.officialVerify); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.param === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 11, value.param); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !value.mid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 12, value.mid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 13) ? true : !(value.fans === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 13, value.fans); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 14) ? true : !(value.level === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 14, value.level); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 15) ? true : !(value.archives === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 15, value.archives); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 16) ? true : !value.ptime.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 16, value.ptime); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 17) ? true : !(value.seasonTypeName === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 17, value.seasonTypeName); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 18) ? true : !(value.area === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 18, value.area); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 19) ? true : !(value.style === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 19, value.style); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 20) ? true : !(value.label === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 20, value.label); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 21) ? true : !equals(value.rating, 0.0)) { + tmp1_output.encodeDoubleElement_a6rqhe_k$(tmp0_desc, 21, value.rating); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 22) ? true : !(value.vote === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 22, value.vote); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 23) ? true : !equals(value.badges, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 23, tmp2_cached[23], value.badges); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 24) ? true : !(value.styles === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 24, value.styles); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 25) ? true : !value.moduleId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 25, value.moduleId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 26) ? true : !(value.liveLink === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 26, value.liveLink); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 27) ? true : !(value.faceNftNew === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 27, value.faceNftNew); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 28) ? true : !(value.nftFaceIcon == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 28, $serializer_getInstance_1239(), value.nftFaceIcon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 29) ? true : !(value.isSeniorMember === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 29, value.isSeniorMember); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 30) ? true : !(value.isSugStyleExp === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 30, value.isSugStyleExp); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_juombs_k$(encoder, value instanceof KResultItem ? value : THROW_CCE()); + } + } + class KResultItem { + constructor(from, title, keyword, position, cover, coverSize, sugType, termType, goto, uri, officialVerify, param, mid, fans, level, archives, ptime, seasonTypeName, area, style, label, rating, vote, badges, styles, moduleId, liveLink, faceNftNew, nftFaceIcon, isSeniorMember, isSugStyleExp) { + Companion_getInstance_1251(); + from = from === VOID ? '' : from; + title = title === VOID ? '' : title; + keyword = keyword === VOID ? '' : keyword; + position = position === VOID ? 0 : position; + cover = cover === VOID ? '' : cover; + coverSize = coverSize === VOID ? 0.0 : coverSize; + sugType = sugType === VOID ? '' : sugType; + termType = termType === VOID ? 0 : termType; + goto = goto === VOID ? '' : goto; + uri = uri === VOID ? '' : uri; + officialVerify = officialVerify === VOID ? null : officialVerify; + param = param === VOID ? '' : param; + mid = mid === VOID ? new Long(0, 0) : mid; + fans = fans === VOID ? 0 : fans; + level = level === VOID ? 0 : level; + archives = archives === VOID ? 0 : archives; + ptime = ptime === VOID ? new Long(0, 0) : ptime; + seasonTypeName = seasonTypeName === VOID ? '' : seasonTypeName; + area = area === VOID ? '' : area; + style = style === VOID ? '' : style; + label = label === VOID ? '' : label; + rating = rating === VOID ? 0.0 : rating; + vote = vote === VOID ? 0 : vote; + badges = badges === VOID ? emptyList() : badges; + styles = styles === VOID ? '' : styles; + moduleId = moduleId === VOID ? new Long(0, 0) : moduleId; + liveLink = liveLink === VOID ? '' : liveLink; + faceNftNew = faceNftNew === VOID ? 0 : faceNftNew; + nftFaceIcon = nftFaceIcon === VOID ? null : nftFaceIcon; + isSeniorMember = isSeniorMember === VOID ? 0 : isSeniorMember; + isSugStyleExp = isSugStyleExp === VOID ? 0 : isSugStyleExp; + this.from = from; + this.title = title; + this.keyword = keyword; + this.position = position; + this.cover = cover; + this.coverSize = coverSize; + this.sugType = sugType; + this.termType = termType; + this.goto = goto; + this.uri = uri; + this.officialVerify = officialVerify; + this.param = param; + this.mid = mid; + this.fans = fans; + this.level = level; + this.archives = archives; + this.ptime = ptime; + this.seasonTypeName = seasonTypeName; + this.area = area; + this.style = style; + this.label = label; + this.rating = rating; + this.vote = vote; + this.badges = badges; + this.styles = styles; + this.moduleId = moduleId; + this.liveLink = liveLink; + this.faceNftNew = faceNftNew; + this.nftFaceIcon = nftFaceIcon; + this.isSeniorMember = isSeniorMember; + this.isSugStyleExp = isSugStyleExp; + } + get_from_wom7eb_k$() { + return this.from; + } + get_title_iz32un_k$() { + return this.title; + } + get_keyword_c7bncw_k$() { + return this.keyword; + } + get_position_jfponi_k$() { + return this.position; + } + get_cover_ipug0e_k$() { + return this.cover; + } + get_coverSize_trx7wx_k$() { + return this.coverSize; + } + get_sugType_tk5z2i_k$() { + return this.sugType; + } + get_termType_joivm7_k$() { + return this.termType; + } + get_goto_womsa4_k$() { + return this.goto; + } + get_uri_18iuil_k$() { + return this.uri; + } + get_officialVerify_91wfgt_k$() { + return this.officialVerify; + } + get_param_iwqquc_k$() { + return this.param; + } + get_mid_18j0o1_k$() { + return this.mid; + } + get_fans_wolurt_k$() { + return this.fans; + } + get_level_ium7h7_k$() { + return this.level; + } + get_archives_aubvlm_k$() { + return this.archives; + } + get_ptime_ix2p78_k$() { + return this.ptime; + } + get_seasonTypeName_muwh69_k$() { + return this.seasonTypeName; + } + get_area_woj07q_k$() { + return this.area; + } + get_style_iyqetk_k$() { + return this.style; + } + get_label_iuj8p7_k$() { + return this.label; + } + get_rating_iw9d46_k$() { + return this.rating; + } + get_vote_wowd2r_k$() { + return this.vote; + } + get_badges_bb95bt_k$() { + return this.badges; + } + get_styles_jnubqj_k$() { + return this.styles; + } + get_moduleId_t8ezjk_k$() { + return this.moduleId; + } + get_liveLink_8d0z01_k$() { + return this.liveLink; + } + get_faceNftNew_d87rsm_k$() { + return this.faceNftNew; + } + get_nftFaceIcon_cqxb87_k$() { + return this.nftFaceIcon; + } + get_isSeniorMember_st26nx_k$() { + return this.isSeniorMember; + } + get_isSugStyleExp_mujeqm_k$() { + return this.isSugStyleExp; + } + component1_7eebsc_k$() { + return this.from; + } + component2_7eebsb_k$() { + return this.title; + } + component3_7eebsa_k$() { + return this.keyword; + } + component4_7eebs9_k$() { + return this.position; + } + component5_7eebs8_k$() { + return this.cover; + } + component6_7eebs7_k$() { + return this.coverSize; + } + component7_7eebs6_k$() { + return this.sugType; + } + component8_7eebs5_k$() { + return this.termType; + } + component9_7eebs4_k$() { + return this.goto; + } + component10_gazzfo_k$() { + return this.uri; + } + component11_gazzfn_k$() { + return this.officialVerify; + } + component12_gazzfm_k$() { + return this.param; + } + component13_gazzfl_k$() { + return this.mid; + } + component14_gazzfk_k$() { + return this.fans; + } + component15_gazzfj_k$() { + return this.level; + } + component16_gazzfi_k$() { + return this.archives; + } + component17_gazzfh_k$() { + return this.ptime; + } + component18_gazzfg_k$() { + return this.seasonTypeName; + } + component19_gazzff_k$() { + return this.area; + } + component20_gazzet_k$() { + return this.style; + } + component21_gazzes_k$() { + return this.label; + } + component22_gazzer_k$() { + return this.rating; + } + component23_gazzeq_k$() { + return this.vote; + } + component24_gazzep_k$() { + return this.badges; + } + component25_gazzeo_k$() { + return this.styles; + } + component26_gazzen_k$() { + return this.moduleId; + } + component27_gazzem_k$() { + return this.liveLink; + } + component28_gazzel_k$() { + return this.faceNftNew; + } + component29_gazzek_k$() { + return this.nftFaceIcon; + } + component30_gazzdy_k$() { + return this.isSeniorMember; + } + component31_gazzdx_k$() { + return this.isSugStyleExp; + } + copy_7phbdf_k$(from, title, keyword, position, cover, coverSize, sugType, termType, goto, uri, officialVerify, param, mid, fans, level, archives, ptime, seasonTypeName, area, style, label, rating, vote, badges, styles, moduleId, liveLink, faceNftNew, nftFaceIcon, isSeniorMember, isSugStyleExp) { + return new KResultItem(from, title, keyword, position, cover, coverSize, sugType, termType, goto, uri, officialVerify, param, mid, fans, level, archives, ptime, seasonTypeName, area, style, label, rating, vote, badges, styles, moduleId, liveLink, faceNftNew, nftFaceIcon, isSeniorMember, isSugStyleExp); + } + copy(from, title, keyword, position, cover, coverSize, sugType, termType, goto, uri, officialVerify, param, mid, fans, level, archives, ptime, seasonTypeName, area, style, label, rating, vote, badges, styles, moduleId, liveLink, faceNftNew, nftFaceIcon, isSeniorMember, isSugStyleExp, $super) { + from = from === VOID ? this.from : from; + title = title === VOID ? this.title : title; + keyword = keyword === VOID ? this.keyword : keyword; + position = position === VOID ? this.position : position; + cover = cover === VOID ? this.cover : cover; + coverSize = coverSize === VOID ? this.coverSize : coverSize; + sugType = sugType === VOID ? this.sugType : sugType; + termType = termType === VOID ? this.termType : termType; + goto = goto === VOID ? this.goto : goto; + uri = uri === VOID ? this.uri : uri; + officialVerify = officialVerify === VOID ? this.officialVerify : officialVerify; + param = param === VOID ? this.param : param; + mid = mid === VOID ? this.mid : mid; + fans = fans === VOID ? this.fans : fans; + level = level === VOID ? this.level : level; + archives = archives === VOID ? this.archives : archives; + ptime = ptime === VOID ? this.ptime : ptime; + seasonTypeName = seasonTypeName === VOID ? this.seasonTypeName : seasonTypeName; + area = area === VOID ? this.area : area; + style = style === VOID ? this.style : style; + label = label === VOID ? this.label : label; + rating = rating === VOID ? this.rating : rating; + vote = vote === VOID ? this.vote : vote; + badges = badges === VOID ? this.badges : badges; + styles = styles === VOID ? this.styles : styles; + moduleId = moduleId === VOID ? this.moduleId : moduleId; + liveLink = liveLink === VOID ? this.liveLink : liveLink; + faceNftNew = faceNftNew === VOID ? this.faceNftNew : faceNftNew; + nftFaceIcon = nftFaceIcon === VOID ? this.nftFaceIcon : nftFaceIcon; + isSeniorMember = isSeniorMember === VOID ? this.isSeniorMember : isSeniorMember; + isSugStyleExp = isSugStyleExp === VOID ? this.isSugStyleExp : isSugStyleExp; + return this.copy_7phbdf_k$(from, title, keyword, position, cover, coverSize, sugType, termType, goto, uri, officialVerify, param, mid, fans, level, archives, ptime, seasonTypeName, area, style, label, rating, vote, badges, styles, moduleId, liveLink, faceNftNew, nftFaceIcon, isSeniorMember, isSugStyleExp); + } + toString() { + return 'KResultItem(from=' + this.from + ', title=' + this.title + ', keyword=' + this.keyword + ', position=' + this.position + ', cover=' + this.cover + ', coverSize=' + this.coverSize + ', sugType=' + this.sugType + ', termType=' + this.termType + ', goto=' + this.goto + ', uri=' + this.uri + ', officialVerify=' + this.officialVerify + ', param=' + this.param + ', mid=' + this.mid.toString() + ', fans=' + this.fans + ', level=' + this.level + ', archives=' + this.archives + ', ptime=' + this.ptime.toString() + ', seasonTypeName=' + this.seasonTypeName + ', area=' + this.area + ', style=' + this.style + ', label=' + this.label + ', rating=' + this.rating + ', vote=' + this.vote + ', badges=' + this.badges + ', styles=' + this.styles + ', moduleId=' + this.moduleId.toString() + ', liveLink=' + this.liveLink + ', faceNftNew=' + this.faceNftNew + ', nftFaceIcon=' + this.nftFaceIcon + ', isSeniorMember=' + this.isSeniorMember + ', isSugStyleExp=' + this.isSugStyleExp + ')'; + } + hashCode() { + var result = getStringHashCode(this.from); + result = imul(result, 31) + getStringHashCode(this.title) | 0; + result = imul(result, 31) + getStringHashCode(this.keyword) | 0; + result = imul(result, 31) + this.position | 0; + result = imul(result, 31) + getStringHashCode(this.cover) | 0; + result = imul(result, 31) + getNumberHashCode(this.coverSize) | 0; + result = imul(result, 31) + getStringHashCode(this.sugType) | 0; + result = imul(result, 31) + this.termType | 0; + result = imul(result, 31) + getStringHashCode(this.goto) | 0; + result = imul(result, 31) + getStringHashCode(this.uri) | 0; + result = imul(result, 31) + (this.officialVerify == null ? 0 : this.officialVerify.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.param) | 0; + result = imul(result, 31) + this.mid.hashCode() | 0; + result = imul(result, 31) + this.fans | 0; + result = imul(result, 31) + this.level | 0; + result = imul(result, 31) + this.archives | 0; + result = imul(result, 31) + this.ptime.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.seasonTypeName) | 0; + result = imul(result, 31) + getStringHashCode(this.area) | 0; + result = imul(result, 31) + getStringHashCode(this.style) | 0; + result = imul(result, 31) + getStringHashCode(this.label) | 0; + result = imul(result, 31) + getNumberHashCode(this.rating) | 0; + result = imul(result, 31) + this.vote | 0; + result = imul(result, 31) + hashCode(this.badges) | 0; + result = imul(result, 31) + getStringHashCode(this.styles) | 0; + result = imul(result, 31) + this.moduleId.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.liveLink) | 0; + result = imul(result, 31) + this.faceNftNew | 0; + result = imul(result, 31) + (this.nftFaceIcon == null ? 0 : this.nftFaceIcon.hashCode()) | 0; + result = imul(result, 31) + this.isSeniorMember | 0; + result = imul(result, 31) + this.isSugStyleExp | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KResultItem)) + return false; + var tmp0_other_with_cast = other instanceof KResultItem ? other : THROW_CCE(); + if (!(this.from === tmp0_other_with_cast.from)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.keyword === tmp0_other_with_cast.keyword)) + return false; + if (!(this.position === tmp0_other_with_cast.position)) + return false; + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + if (!equals(this.coverSize, tmp0_other_with_cast.coverSize)) + return false; + if (!(this.sugType === tmp0_other_with_cast.sugType)) + return false; + if (!(this.termType === tmp0_other_with_cast.termType)) + return false; + if (!(this.goto === tmp0_other_with_cast.goto)) + return false; + if (!(this.uri === tmp0_other_with_cast.uri)) + return false; + if (!equals(this.officialVerify, tmp0_other_with_cast.officialVerify)) + return false; + if (!(this.param === tmp0_other_with_cast.param)) + return false; + if (!this.mid.equals(tmp0_other_with_cast.mid)) + return false; + if (!(this.fans === tmp0_other_with_cast.fans)) + return false; + if (!(this.level === tmp0_other_with_cast.level)) + return false; + if (!(this.archives === tmp0_other_with_cast.archives)) + return false; + if (!this.ptime.equals(tmp0_other_with_cast.ptime)) + return false; + if (!(this.seasonTypeName === tmp0_other_with_cast.seasonTypeName)) + return false; + if (!(this.area === tmp0_other_with_cast.area)) + return false; + if (!(this.style === tmp0_other_with_cast.style)) + return false; + if (!(this.label === tmp0_other_with_cast.label)) + return false; + if (!equals(this.rating, tmp0_other_with_cast.rating)) + return false; + if (!(this.vote === tmp0_other_with_cast.vote)) + return false; + if (!equals(this.badges, tmp0_other_with_cast.badges)) + return false; + if (!(this.styles === tmp0_other_with_cast.styles)) + return false; + if (!this.moduleId.equals(tmp0_other_with_cast.moduleId)) + return false; + if (!(this.liveLink === tmp0_other_with_cast.liveLink)) + return false; + if (!(this.faceNftNew === tmp0_other_with_cast.faceNftNew)) + return false; + if (!equals(this.nftFaceIcon, tmp0_other_with_cast.nftFaceIcon)) + return false; + if (!(this.isSeniorMember === tmp0_other_with_cast.isSeniorMember)) + return false; + if (!(this.isSugStyleExp === tmp0_other_with_cast.isSugStyleExp)) + return false; + return true; + } + static new_com_bapis_bilibili_app_interfaces_v1_KResultItem_4irk05_k$(seen1, from, title, keyword, position, cover, coverSize, sugType, termType, goto, uri, officialVerify, param, mid, fans, level, archives, ptime, seasonTypeName, area, style, label, rating, vote, badges, styles, moduleId, liveLink, faceNftNew, nftFaceIcon, isSeniorMember, isSugStyleExp, serializationConstructorMarker) { + Companion_getInstance_1251(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1238().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.from = ''; + else + $this.from = from; + if (0 === (seen1 & 2)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 4)) + $this.keyword = ''; + else + $this.keyword = keyword; + if (0 === (seen1 & 8)) + $this.position = 0; + else + $this.position = position; + if (0 === (seen1 & 16)) + $this.cover = ''; + else + $this.cover = cover; + if (0 === (seen1 & 32)) + $this.coverSize = 0.0; + else + $this.coverSize = coverSize; + if (0 === (seen1 & 64)) + $this.sugType = ''; + else + $this.sugType = sugType; + if (0 === (seen1 & 128)) + $this.termType = 0; + else + $this.termType = termType; + if (0 === (seen1 & 256)) + $this.goto = ''; + else + $this.goto = goto; + if (0 === (seen1 & 512)) + $this.uri = ''; + else + $this.uri = uri; + if (0 === (seen1 & 1024)) + $this.officialVerify = null; + else + $this.officialVerify = officialVerify; + if (0 === (seen1 & 2048)) + $this.param = ''; + else + $this.param = param; + if (0 === (seen1 & 4096)) + $this.mid = new Long(0, 0); + else + $this.mid = mid; + if (0 === (seen1 & 8192)) + $this.fans = 0; + else + $this.fans = fans; + if (0 === (seen1 & 16384)) + $this.level = 0; + else + $this.level = level; + if (0 === (seen1 & 32768)) + $this.archives = 0; + else + $this.archives = archives; + if (0 === (seen1 & 65536)) + $this.ptime = new Long(0, 0); + else + $this.ptime = ptime; + if (0 === (seen1 & 131072)) + $this.seasonTypeName = ''; + else + $this.seasonTypeName = seasonTypeName; + if (0 === (seen1 & 262144)) + $this.area = ''; + else + $this.area = area; + if (0 === (seen1 & 524288)) + $this.style = ''; + else + $this.style = style; + if (0 === (seen1 & 1048576)) + $this.label = ''; + else + $this.label = label; + if (0 === (seen1 & 2097152)) + $this.rating = 0.0; + else + $this.rating = rating; + if (0 === (seen1 & 4194304)) + $this.vote = 0; + else + $this.vote = vote; + if (0 === (seen1 & 8388608)) + $this.badges = emptyList(); + else + $this.badges = badges; + if (0 === (seen1 & 16777216)) + $this.styles = ''; + else + $this.styles = styles; + if (0 === (seen1 & 33554432)) + $this.moduleId = new Long(0, 0); + else + $this.moduleId = moduleId; + if (0 === (seen1 & 67108864)) + $this.liveLink = ''; + else + $this.liveLink = liveLink; + if (0 === (seen1 & 134217728)) + $this.faceNftNew = 0; + else + $this.faceNftNew = faceNftNew; + if (0 === (seen1 & 268435456)) + $this.nftFaceIcon = null; + else + $this.nftFaceIcon = nftFaceIcon; + if (0 === (seen1 & 536870912)) + $this.isSeniorMember = 0; + else + $this.isSeniorMember = isSeniorMember; + if (0 === (seen1 & 1073741824)) + $this.isSugStyleExp = 0; + else + $this.isSugStyleExp = isSugStyleExp; + return $this; + } + } + class Companion_1252 { + constructor() { + this.targetPath = '/bilibili.app.interface.v1.NftFaceIcon'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1239(); + } + } + class $serializer_1239 { + constructor() { + $serializer_instance_1239 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.interfaces.v1.KNftFaceIcon', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('regionType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('icon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('showStatus', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = null; + var tmp6_local2 = 0; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KNftFaceIcon_0.new_com_bapis_bilibili_app_interfaces_v1_KNftFaceIcon_62o31z_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_5ak1ws_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.regionType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.regionType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.icon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.icon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.showStatus === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.showStatus); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_5ak1ws_k$(encoder, value instanceof KNftFaceIcon_0 ? value : THROW_CCE()); + } + } + class KNftFaceIcon_0 { + constructor(regionType, icon, showStatus) { + Companion_instance_1252; + regionType = regionType === VOID ? 0 : regionType; + icon = icon === VOID ? '' : icon; + showStatus = showStatus === VOID ? 0 : showStatus; + this.regionType = regionType; + this.icon = icon; + this.showStatus = showStatus; + } + get_regionType_hxrx07_k$() { + return this.regionType; + } + get_icon_wont8i_k$() { + return this.icon; + } + get_showStatus_78b2nc_k$() { + return this.showStatus; + } + component1_7eebsc_k$() { + return this.regionType; + } + component2_7eebsb_k$() { + return this.icon; + } + component3_7eebsa_k$() { + return this.showStatus; + } + copy_jqwgyn_k$(regionType, icon, showStatus) { + return new KNftFaceIcon_0(regionType, icon, showStatus); + } + copy(regionType, icon, showStatus, $super) { + regionType = regionType === VOID ? this.regionType : regionType; + icon = icon === VOID ? this.icon : icon; + showStatus = showStatus === VOID ? this.showStatus : showStatus; + return this.copy_jqwgyn_k$(regionType, icon, showStatus); + } + toString() { + return 'KNftFaceIcon(regionType=' + this.regionType + ', icon=' + this.icon + ', showStatus=' + this.showStatus + ')'; + } + hashCode() { + var result = this.regionType; + result = imul(result, 31) + getStringHashCode(this.icon) | 0; + result = imul(result, 31) + this.showStatus | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KNftFaceIcon_0)) + return false; + var tmp0_other_with_cast = other instanceof KNftFaceIcon_0 ? other : THROW_CCE(); + if (!(this.regionType === tmp0_other_with_cast.regionType)) + return false; + if (!(this.icon === tmp0_other_with_cast.icon)) + return false; + if (!(this.showStatus === tmp0_other_with_cast.showStatus)) + return false; + return true; + } + static new_com_bapis_bilibili_app_interfaces_v1_KNftFaceIcon_62o31z_k$(seen1, regionType, icon, showStatus, serializationConstructorMarker) { + Companion_instance_1252; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1239().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.regionType = 0; + else + $this.regionType = regionType; + if (0 === (seen1 & 2)) + $this.icon = ''; + else + $this.icon = icon; + if (0 === (seen1 & 4)) + $this.showStatus = 0; + else + $this.showStatus = showStatus; + return $this; + } + } + class Companion_1253 { + constructor() { + this.targetPath = '/bilibili.app.interface.v1.OfficialVerify'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1240(); + } + } + class $serializer_1240 { + constructor() { + $serializer_instance_1240 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.interfaces.v1.KOfficialVerify', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('desc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KOfficialVerify_2.new_com_bapis_bilibili_app_interfaces_v1_KOfficialVerify_3hrbdz_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_stzqm4_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.type === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.type); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.desc === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.desc); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_stzqm4_k$(encoder, value instanceof KOfficialVerify_2 ? value : THROW_CCE()); + } + } + class KOfficialVerify_2 { + constructor(type, desc) { + Companion_instance_1253; + type = type === VOID ? 0 : type; + desc = desc === VOID ? '' : desc; + this.type = type; + this.desc = desc; + } + get_type_wovaf7_k$() { + return this.type; + } + get_desc_woknve_k$() { + return this.desc; + } + component1_7eebsc_k$() { + return this.type; + } + component2_7eebsb_k$() { + return this.desc; + } + copy_xhhsuv_k$(type, desc) { + return new KOfficialVerify_2(type, desc); + } + copy(type, desc, $super) { + type = type === VOID ? this.type : type; + desc = desc === VOID ? this.desc : desc; + return this.copy_xhhsuv_k$(type, desc); + } + toString() { + return 'KOfficialVerify(type=' + this.type + ', desc=' + this.desc + ')'; + } + hashCode() { + var result = this.type; + result = imul(result, 31) + getStringHashCode(this.desc) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KOfficialVerify_2)) + return false; + var tmp0_other_with_cast = other instanceof KOfficialVerify_2 ? other : THROW_CCE(); + if (!(this.type === tmp0_other_with_cast.type)) + return false; + if (!(this.desc === tmp0_other_with_cast.desc)) + return false; + return true; + } + static new_com_bapis_bilibili_app_interfaces_v1_KOfficialVerify_3hrbdz_k$(seen1, type, desc, serializationConstructorMarker) { + Companion_instance_1253; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1240().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.type = 0; + else + $this.type = type; + if (0 === (seen1 & 2)) + $this.desc = ''; + else + $this.desc = desc; + return $this; + } + } + class Companion_1254 { + constructor() { + this.targetPath = '/bilibili.app.interface.v1.ReasonStyle'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1241(); + } + } + class $serializer_1241 { + constructor() { + $serializer_instance_1241 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.interfaces.v1.KReasonStyle', this, 8); + tmp0_serialDesc.addElement_5pzumi_k$('text', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('textColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('textColorNight', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('bgColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('bgColorNight', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('borderColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('borderColorNight', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('bgStyle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = 0; + var tmp12_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp12_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + } else + while (tmp1_flag) { + tmp2_index = tmp12_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp12_input.endStructure_1xqz0n_k$(tmp0_desc); + return KReasonStyle_1.new_com_bapis_bilibili_app_interfaces_v1_KReasonStyle_e74b7u_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null); + } + serialize_gtf833_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.text === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.text); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.textColor === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.textColor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.textColorNight === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.textColorNight); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.bgColor === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.bgColor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.bgColorNight === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.bgColorNight); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.borderColor === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.borderColor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.borderColorNight === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.borderColorNight); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.bgStyle === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 7, value.bgStyle); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_gtf833_k$(encoder, value instanceof KReasonStyle_1 ? value : THROW_CCE()); + } + } + class KReasonStyle_1 { + constructor(text, textColor, textColorNight, bgColor, bgColorNight, borderColor, borderColorNight, bgStyle) { + Companion_instance_1254; + text = text === VOID ? '' : text; + textColor = textColor === VOID ? '' : textColor; + textColorNight = textColorNight === VOID ? '' : textColorNight; + bgColor = bgColor === VOID ? '' : bgColor; + bgColorNight = bgColorNight === VOID ? '' : bgColorNight; + borderColor = borderColor === VOID ? '' : borderColor; + borderColorNight = borderColorNight === VOID ? '' : borderColorNight; + bgStyle = bgStyle === VOID ? 0 : bgStyle; + this.text = text; + this.textColor = textColor; + this.textColorNight = textColorNight; + this.bgColor = bgColor; + this.bgColorNight = bgColorNight; + this.borderColor = borderColor; + this.borderColorNight = borderColorNight; + this.bgStyle = bgStyle; + } + get_text_wouvsm_k$() { + return this.text; + } + get_textColor_92p84z_k$() { + return this.textColor; + } + get_textColorNight_hqolf9_k$() { + return this.textColorNight; + } + get_bgColor_24ewuj_k$() { + return this.bgColor; + } + get_bgColorNight_mzrajh_k$() { + return this.bgColorNight; + } + get_borderColor_puk0tq_k$() { + return this.borderColor; + } + get_borderColorNight_z7xsom_k$() { + return this.borderColorNight; + } + get_bgStyle_1viqv1_k$() { + return this.bgStyle; + } + component1_7eebsc_k$() { + return this.text; + } + component2_7eebsb_k$() { + return this.textColor; + } + component3_7eebsa_k$() { + return this.textColorNight; + } + component4_7eebs9_k$() { + return this.bgColor; + } + component5_7eebs8_k$() { + return this.bgColorNight; + } + component6_7eebs7_k$() { + return this.borderColor; + } + component7_7eebs6_k$() { + return this.borderColorNight; + } + component8_7eebs5_k$() { + return this.bgStyle; + } + copy_2l3ger_k$(text, textColor, textColorNight, bgColor, bgColorNight, borderColor, borderColorNight, bgStyle) { + return new KReasonStyle_1(text, textColor, textColorNight, bgColor, bgColorNight, borderColor, borderColorNight, bgStyle); + } + copy(text, textColor, textColorNight, bgColor, bgColorNight, borderColor, borderColorNight, bgStyle, $super) { + text = text === VOID ? this.text : text; + textColor = textColor === VOID ? this.textColor : textColor; + textColorNight = textColorNight === VOID ? this.textColorNight : textColorNight; + bgColor = bgColor === VOID ? this.bgColor : bgColor; + bgColorNight = bgColorNight === VOID ? this.bgColorNight : bgColorNight; + borderColor = borderColor === VOID ? this.borderColor : borderColor; + borderColorNight = borderColorNight === VOID ? this.borderColorNight : borderColorNight; + bgStyle = bgStyle === VOID ? this.bgStyle : bgStyle; + return this.copy_2l3ger_k$(text, textColor, textColorNight, bgColor, bgColorNight, borderColor, borderColorNight, bgStyle); + } + toString() { + return 'KReasonStyle(text=' + this.text + ', textColor=' + this.textColor + ', textColorNight=' + this.textColorNight + ', bgColor=' + this.bgColor + ', bgColorNight=' + this.bgColorNight + ', borderColor=' + this.borderColor + ', borderColorNight=' + this.borderColorNight + ', bgStyle=' + this.bgStyle + ')'; + } + hashCode() { + var result = getStringHashCode(this.text); + result = imul(result, 31) + getStringHashCode(this.textColor) | 0; + result = imul(result, 31) + getStringHashCode(this.textColorNight) | 0; + result = imul(result, 31) + getStringHashCode(this.bgColor) | 0; + result = imul(result, 31) + getStringHashCode(this.bgColorNight) | 0; + result = imul(result, 31) + getStringHashCode(this.borderColor) | 0; + result = imul(result, 31) + getStringHashCode(this.borderColorNight) | 0; + result = imul(result, 31) + this.bgStyle | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KReasonStyle_1)) + return false; + var tmp0_other_with_cast = other instanceof KReasonStyle_1 ? other : THROW_CCE(); + if (!(this.text === tmp0_other_with_cast.text)) + return false; + if (!(this.textColor === tmp0_other_with_cast.textColor)) + return false; + if (!(this.textColorNight === tmp0_other_with_cast.textColorNight)) + return false; + if (!(this.bgColor === tmp0_other_with_cast.bgColor)) + return false; + if (!(this.bgColorNight === tmp0_other_with_cast.bgColorNight)) + return false; + if (!(this.borderColor === tmp0_other_with_cast.borderColor)) + return false; + if (!(this.borderColorNight === tmp0_other_with_cast.borderColorNight)) + return false; + if (!(this.bgStyle === tmp0_other_with_cast.bgStyle)) + return false; + return true; + } + static new_com_bapis_bilibili_app_interfaces_v1_KReasonStyle_e74b7u_k$(seen1, text, textColor, textColorNight, bgColor, bgColorNight, borderColor, borderColorNight, bgStyle, serializationConstructorMarker) { + Companion_instance_1254; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1241().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.text = ''; + else + $this.text = text; + if (0 === (seen1 & 2)) + $this.textColor = ''; + else + $this.textColor = textColor; + if (0 === (seen1 & 4)) + $this.textColorNight = ''; + else + $this.textColorNight = textColorNight; + if (0 === (seen1 & 8)) + $this.bgColor = ''; + else + $this.bgColor = bgColor; + if (0 === (seen1 & 16)) + $this.bgColorNight = ''; + else + $this.bgColorNight = bgColorNight; + if (0 === (seen1 & 32)) + $this.borderColor = ''; + else + $this.borderColor = borderColor; + if (0 === (seen1 & 64)) + $this.borderColorNight = ''; + else + $this.borderColorNight = borderColorNight; + if (0 === (seen1 & 128)) + $this.bgStyle = 0; + else + $this.bgStyle = bgStyle; + return $this; + } + } + class Companion_1255 { + constructor() { + Companion_instance_1255 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KFrom$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KFrom$Companion$_anonymous__afespm); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_151(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.interfaces.v1.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KFrom_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.interfaces.v1.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KFrom with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_151(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_1242 { + constructor() { + $serializer_instance_1242 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.interfaces.v1.KFrom', 3); + tmp0_serialDesc.addElement_5pzumi_k$('ARCHIVE_TAB', false); + tmp0_serialDesc.addElement_5pzumi_k$('DYNAMIC_TAB', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_151()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_g9252z_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_g9252z_k$(encoder, value instanceof KFrom ? value : THROW_CCE()); + } + } + class KFrom extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_1256 { + constructor() { + this.targetPath = '/bilibili.app.interface.v1.SearchTabReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1243(); + } + } + class $serializer_1243 { + constructor() { + $serializer_instance_1243 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.interfaces.v1.KSearchTabReq', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('keyword', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('mid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('from', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = new Long(0, 0); + var tmp6_local2 = 0; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSearchTabReq.new_com_bapis_bilibili_app_interfaces_v1_KSearchTabReq_742962_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_7unr1l_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.keyword === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.keyword); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.mid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.mid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.from === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.from); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_7unr1l_k$(encoder, value instanceof KSearchTabReq ? value : THROW_CCE()); + } + } + class KSearchTabReq { + constructor(keyword, mid, from) { + Companion_instance_1256; + keyword = keyword === VOID ? '' : keyword; + mid = mid === VOID ? new Long(0, 0) : mid; + from = from === VOID ? 0 : from; + this.keyword = keyword; + this.mid = mid; + this.from = from; + } + get_keyword_c7bncw_k$() { + return this.keyword; + } + get_mid_18j0o1_k$() { + return this.mid; + } + get_from_wom7eb_k$() { + return this.from; + } + fromEnum() { + return Companion_getInstance_1255().fromValue(this.from); + } + component1_7eebsc_k$() { + return this.keyword; + } + component2_7eebsb_k$() { + return this.mid; + } + component3_7eebsa_k$() { + return this.from; + } + copy_vl9hp1_k$(keyword, mid, from) { + return new KSearchTabReq(keyword, mid, from); + } + copy(keyword, mid, from, $super) { + keyword = keyword === VOID ? this.keyword : keyword; + mid = mid === VOID ? this.mid : mid; + from = from === VOID ? this.from : from; + return this.copy_vl9hp1_k$(keyword, mid, from); + } + toString() { + return 'KSearchTabReq(keyword=' + this.keyword + ', mid=' + this.mid.toString() + ', from=' + this.from + ')'; + } + hashCode() { + var result = getStringHashCode(this.keyword); + result = imul(result, 31) + this.mid.hashCode() | 0; + result = imul(result, 31) + this.from | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSearchTabReq)) + return false; + var tmp0_other_with_cast = other instanceof KSearchTabReq ? other : THROW_CCE(); + if (!(this.keyword === tmp0_other_with_cast.keyword)) + return false; + if (!this.mid.equals(tmp0_other_with_cast.mid)) + return false; + if (!(this.from === tmp0_other_with_cast.from)) + return false; + return true; + } + static new_com_bapis_bilibili_app_interfaces_v1_KSearchTabReq_742962_k$(seen1, keyword, mid, from, serializationConstructorMarker) { + Companion_instance_1256; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1243().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.keyword = ''; + else + $this.keyword = keyword; + if (0 === (seen1 & 2)) + $this.mid = new Long(0, 0); + else + $this.mid = mid; + if (0 === (seen1 & 4)) + $this.from = 0; + else + $this.from = from; + return $this; + } + } + class Companion_1257 { + constructor() { + Companion_instance_1257 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, new ArrayListSerializer($serializer_getInstance_1245())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.interface.v1.SearchTabReply'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1244(); + } + } + class $serializer_1244 { + constructor() { + $serializer_instance_1244 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.interfaces.v1.KSearchTabReply', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('focus', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('tabs', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_1257().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), tmp0_cached[1]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp7_cached = Companion_getInstance_1257().$childSerializers_1; + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSearchTabReply.new_com_bapis_bilibili_app_interfaces_v1_KSearchTabReply_3c9yds_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_pjd6vf_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_1257().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.focus.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.focus); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !equals(value.tabs, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 1, tmp2_cached[1], value.tabs); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_pjd6vf_k$(encoder, value instanceof KSearchTabReply ? value : THROW_CCE()); + } + } + class KSearchTabReply { + constructor(focus, tabs) { + Companion_getInstance_1257(); + focus = focus === VOID ? new Long(0, 0) : focus; + tabs = tabs === VOID ? emptyList() : tabs; + this.focus = focus; + this.tabs = tabs; + } + get_focus_irhg33_k$() { + return this.focus; + } + get_tabs_wousav_k$() { + return this.tabs; + } + component1_7eebsc_k$() { + return this.focus; + } + component2_7eebsb_k$() { + return this.tabs; + } + copy_fp29gx_k$(focus, tabs) { + return new KSearchTabReply(focus, tabs); + } + copy(focus, tabs, $super) { + focus = focus === VOID ? this.focus : focus; + tabs = tabs === VOID ? this.tabs : tabs; + return this.copy_fp29gx_k$(focus, tabs); + } + toString() { + return 'KSearchTabReply(focus=' + this.focus.toString() + ', tabs=' + this.tabs + ')'; + } + hashCode() { + var result = this.focus.hashCode(); + result = imul(result, 31) + hashCode(this.tabs) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSearchTabReply)) + return false; + var tmp0_other_with_cast = other instanceof KSearchTabReply ? other : THROW_CCE(); + if (!this.focus.equals(tmp0_other_with_cast.focus)) + return false; + if (!equals(this.tabs, tmp0_other_with_cast.tabs)) + return false; + return true; + } + static new_com_bapis_bilibili_app_interfaces_v1_KSearchTabReply_3c9yds_k$(seen1, focus, tabs, serializationConstructorMarker) { + Companion_getInstance_1257(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1244().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.focus = new Long(0, 0); + else + $this.focus = focus; + if (0 === (seen1 & 2)) + $this.tabs = emptyList(); + else + $this.tabs = tabs; + return $this; + } + } + class Companion_1258 { + constructor() { + this.targetPath = '/bilibili.app.interface.v1.Tab'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1245(); + } + } + class $serializer_1245 { + constructor() { + $serializer_instance_1245 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.interfaces.v1.KTab', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('uri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KTab_1.new_com_bapis_bilibili_app_interfaces_v1_KTab_jpunin_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_yg6z5j_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.uri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.uri); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_yg6z5j_k$(encoder, value instanceof KTab_1 ? value : THROW_CCE()); + } + } + class KTab_1 { + constructor(title, uri) { + Companion_instance_1258; + title = title === VOID ? '' : title; + uri = uri === VOID ? '' : uri; + this.title = title; + this.uri = uri; + } + get_title_iz32un_k$() { + return this.title; + } + get_uri_18iuil_k$() { + return this.uri; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.uri; + } + copy_plwnsl_k$(title, uri) { + return new KTab_1(title, uri); + } + copy(title, uri, $super) { + title = title === VOID ? this.title : title; + uri = uri === VOID ? this.uri : uri; + return this.copy_plwnsl_k$(title, uri); + } + toString() { + return 'KTab(title=' + this.title + ', uri=' + this.uri + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.uri) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KTab_1)) + return false; + var tmp0_other_with_cast = other instanceof KTab_1 ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.uri === tmp0_other_with_cast.uri)) + return false; + return true; + } + static new_com_bapis_bilibili_app_interfaces_v1_KTab_jpunin_k$(seen1, title, uri, serializationConstructorMarker) { + Companion_instance_1258; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1245().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.uri = ''; + else + $this.uri = uri; + return $this; + } + } + class Companion_1259 { + constructor() { + this.targetPath = '/bilibili.app.interface.v1.SearchArchiveReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1246(); + } + } + class $serializer_1246 { + constructor() { + $serializer_instance_1246 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.interfaces.v1.KSearchArchiveReq', this, 5); + tmp0_serialDesc.addElement_5pzumi_k$('keyword', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('mid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('pn', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('ps', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('playerArgs', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable($serializer_getInstance_152())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = new Long(0, 0); + var tmp6_local2 = new Long(0, 0); + var tmp7_local3 = new Long(0, 0); + var tmp8_local4 = null; + var tmp9_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp9_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_152(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + } else + while (tmp1_flag) { + tmp2_index = tmp9_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_152(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp9_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSearchArchiveReq.new_com_bapis_bilibili_app_interfaces_v1_KSearchArchiveReq_xc1n12_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); + } + serialize_b0kzi4_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.keyword === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.keyword); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.mid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.mid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.pn.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.pn); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !value.ps.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 3, value.ps); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.playerArgs == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, $serializer_getInstance_152(), value.playerArgs); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_b0kzi4_k$(encoder, value instanceof KSearchArchiveReq ? value : THROW_CCE()); + } + } + class KSearchArchiveReq { + constructor(keyword, mid, pn, ps, playerArgs) { + Companion_instance_1259; + keyword = keyword === VOID ? '' : keyword; + mid = mid === VOID ? new Long(0, 0) : mid; + pn = pn === VOID ? new Long(0, 0) : pn; + ps = ps === VOID ? new Long(0, 0) : ps; + playerArgs = playerArgs === VOID ? null : playerArgs; + this.keyword = keyword; + this.mid = mid; + this.pn = pn; + this.ps = ps; + this.playerArgs = playerArgs; + } + get_keyword_c7bncw_k$() { + return this.keyword; + } + get_mid_18j0o1_k$() { + return this.mid; + } + get_pn_kntnqx_k$() { + return this.pn; + } + get_ps_kntnqs_k$() { + return this.ps; + } + get_playerArgs_eh86hz_k$() { + return this.playerArgs; + } + component1_7eebsc_k$() { + return this.keyword; + } + component2_7eebsb_k$() { + return this.mid; + } + component3_7eebsa_k$() { + return this.pn; + } + component4_7eebs9_k$() { + return this.ps; + } + component5_7eebs8_k$() { + return this.playerArgs; + } + copy_htcmru_k$(keyword, mid, pn, ps, playerArgs) { + return new KSearchArchiveReq(keyword, mid, pn, ps, playerArgs); + } + copy(keyword, mid, pn, ps, playerArgs, $super) { + keyword = keyword === VOID ? this.keyword : keyword; + mid = mid === VOID ? this.mid : mid; + pn = pn === VOID ? this.pn : pn; + ps = ps === VOID ? this.ps : ps; + playerArgs = playerArgs === VOID ? this.playerArgs : playerArgs; + return this.copy_htcmru_k$(keyword, mid, pn, ps, playerArgs); + } + toString() { + return 'KSearchArchiveReq(keyword=' + this.keyword + ', mid=' + this.mid.toString() + ', pn=' + this.pn.toString() + ', ps=' + this.ps.toString() + ', playerArgs=' + this.playerArgs + ')'; + } + hashCode() { + var result = getStringHashCode(this.keyword); + result = imul(result, 31) + this.mid.hashCode() | 0; + result = imul(result, 31) + this.pn.hashCode() | 0; + result = imul(result, 31) + this.ps.hashCode() | 0; + result = imul(result, 31) + (this.playerArgs == null ? 0 : this.playerArgs.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSearchArchiveReq)) + return false; + var tmp0_other_with_cast = other instanceof KSearchArchiveReq ? other : THROW_CCE(); + if (!(this.keyword === tmp0_other_with_cast.keyword)) + return false; + if (!this.mid.equals(tmp0_other_with_cast.mid)) + return false; + if (!this.pn.equals(tmp0_other_with_cast.pn)) + return false; + if (!this.ps.equals(tmp0_other_with_cast.ps)) + return false; + if (!equals(this.playerArgs, tmp0_other_with_cast.playerArgs)) + return false; + return true; + } + static new_com_bapis_bilibili_app_interfaces_v1_KSearchArchiveReq_xc1n12_k$(seen1, keyword, mid, pn, ps, playerArgs, serializationConstructorMarker) { + Companion_instance_1259; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1246().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.keyword = ''; + else + $this.keyword = keyword; + if (0 === (seen1 & 2)) + $this.mid = new Long(0, 0); + else + $this.mid = mid; + if (0 === (seen1 & 4)) + $this.pn = new Long(0, 0); + else + $this.pn = pn; + if (0 === (seen1 & 8)) + $this.ps = new Long(0, 0); + else + $this.ps = ps; + if (0 === (seen1 & 16)) + $this.playerArgs = null; + else + $this.playerArgs = playerArgs; + return $this; + } + } + class Companion_1260 { + constructor() { + Companion_instance_1260 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer($serializer_getInstance_1248()), null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.interface.v1.SearchArchiveReply'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1247(); + } + } + class $serializer_1247 { + constructor() { + $serializer_instance_1247 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.interfaces.v1.KSearchArchiveReply', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('archives', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('total', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_1260().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0], LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = new Long(0, 0); + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp7_cached = Companion_getInstance_1260().$childSerializers_1; + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp7_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp7_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSearchArchiveReply.new_com_bapis_bilibili_app_interfaces_v1_KSearchArchiveReply_6punr8_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_wa3bd4_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_1260().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.archives, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.archives); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.total.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.total); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_wa3bd4_k$(encoder, value instanceof KSearchArchiveReply ? value : THROW_CCE()); + } + } + class KSearchArchiveReply { + constructor(archives, total) { + Companion_getInstance_1260(); + archives = archives === VOID ? emptyList() : archives; + total = total === VOID ? new Long(0, 0) : total; + this.archives = archives; + this.total = total; + } + get_archives_aubvlm_k$() { + return this.archives; + } + get_total_iz6wij_k$() { + return this.total; + } + component1_7eebsc_k$() { + return this.archives; + } + component2_7eebsb_k$() { + return this.total; + } + copy_nosj4c_k$(archives, total) { + return new KSearchArchiveReply(archives, total); + } + copy(archives, total, $super) { + archives = archives === VOID ? this.archives : archives; + total = total === VOID ? this.total : total; + return this.copy_nosj4c_k$(archives, total); + } + toString() { + return 'KSearchArchiveReply(archives=' + this.archives + ', total=' + this.total.toString() + ')'; + } + hashCode() { + var result = hashCode(this.archives); + result = imul(result, 31) + this.total.hashCode() | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSearchArchiveReply)) + return false; + var tmp0_other_with_cast = other instanceof KSearchArchiveReply ? other : THROW_CCE(); + if (!equals(this.archives, tmp0_other_with_cast.archives)) + return false; + if (!this.total.equals(tmp0_other_with_cast.total)) + return false; + return true; + } + static new_com_bapis_bilibili_app_interfaces_v1_KSearchArchiveReply_6punr8_k$(seen1, archives, total, serializationConstructorMarker) { + Companion_getInstance_1260(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1247().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.archives = emptyList(); + else + $this.archives = archives; + if (0 === (seen1 & 2)) + $this.total = new Long(0, 0); + else + $this.total = total; + return $this; + } + } + class Companion_1261 { + constructor() { + Companion_instance_1261 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, null, null, null, null, null, new ArrayListSerializer(StringSerializer_getInstance())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.interface.v1.Arc'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1248(); + } + } + class $serializer_1248 { + constructor() { + $serializer_instance_1248 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.interfaces.v1.KArc', this, 9); + tmp0_serialDesc.addElement_5pzumi_k$('archive', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('uri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('viewContent', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('iconType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('coverIcon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('isFold', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('isPugv', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('publishTimeText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('badges', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_1261().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_635()), StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), StringSerializer_getInstance(), tmp0_cached[8]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = new Long(0, 0); + var tmp8_local4 = null; + var tmp9_local5 = false; + var tmp10_local6 = false; + var tmp11_local7 = null; + var tmp12_local8 = null; + var tmp13_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp14_cached = Companion_getInstance_1261().$childSerializers_1; + if (tmp13_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_635(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp13_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp13_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp13_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 8, tmp14_cached[8], tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + } else + while (tmp1_flag) { + tmp2_index = tmp13_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_635(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp13_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp13_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp13_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 8, tmp14_cached[8], tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp13_input.endStructure_1xqz0n_k$(tmp0_desc); + return KArc_1.new_com_bapis_bilibili_app_interfaces_v1_KArc_6wyi41_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, null); + } + serialize_al1goc_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_1261().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.archive == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_635(), value.archive); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.uri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.uri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.viewContent === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.viewContent); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !value.iconType.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 3, value.iconType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.coverIcon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.coverIcon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.isFold === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 5, value.isFold); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.isPugv === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 6, value.isPugv); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.publishTimeText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.publishTimeText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !equals(value.badges, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 8, tmp2_cached[8], value.badges); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_al1goc_k$(encoder, value instanceof KArc_1 ? value : THROW_CCE()); + } + } + class KArc_1 { + constructor(archive, uri, viewContent, iconType, coverIcon, isFold, isPugv, publishTimeText, badges) { + Companion_getInstance_1261(); + archive = archive === VOID ? null : archive; + uri = uri === VOID ? '' : uri; + viewContent = viewContent === VOID ? '' : viewContent; + iconType = iconType === VOID ? new Long(0, 0) : iconType; + coverIcon = coverIcon === VOID ? '' : coverIcon; + isFold = isFold === VOID ? false : isFold; + isPugv = isPugv === VOID ? false : isPugv; + publishTimeText = publishTimeText === VOID ? '' : publishTimeText; + badges = badges === VOID ? emptyList() : badges; + this.archive = archive; + this.uri = uri; + this.viewContent = viewContent; + this.iconType = iconType; + this.coverIcon = coverIcon; + this.isFold = isFold; + this.isPugv = isPugv; + this.publishTimeText = publishTimeText; + this.badges = badges; + } + get_archive_b3ugpz_k$() { + return this.archive; + } + get_uri_18iuil_k$() { + return this.uri; + } + get_viewContent_th0tkb_k$() { + return this.viewContent; + } + get_iconType_r0uasc_k$() { + return this.iconType; + } + get_coverIcon_ts3qhl_k$() { + return this.coverIcon; + } + get_isFold_evxt90_k$() { + return this.isFold; + } + get_isPugv_ew4bgn_k$() { + return this.isPugv; + } + get_publishTimeText_fwbe8w_k$() { + return this.publishTimeText; + } + get_badges_bb95bt_k$() { + return this.badges; + } + component1_7eebsc_k$() { + return this.archive; + } + component2_7eebsb_k$() { + return this.uri; + } + component3_7eebsa_k$() { + return this.viewContent; + } + component4_7eebs9_k$() { + return this.iconType; + } + component5_7eebs8_k$() { + return this.coverIcon; + } + component6_7eebs7_k$() { + return this.isFold; + } + component7_7eebs6_k$() { + return this.isPugv; + } + component8_7eebs5_k$() { + return this.publishTimeText; + } + component9_7eebs4_k$() { + return this.badges; + } + copy_1f3xc5_k$(archive, uri, viewContent, iconType, coverIcon, isFold, isPugv, publishTimeText, badges) { + return new KArc_1(archive, uri, viewContent, iconType, coverIcon, isFold, isPugv, publishTimeText, badges); + } + copy(archive, uri, viewContent, iconType, coverIcon, isFold, isPugv, publishTimeText, badges, $super) { + archive = archive === VOID ? this.archive : archive; + uri = uri === VOID ? this.uri : uri; + viewContent = viewContent === VOID ? this.viewContent : viewContent; + iconType = iconType === VOID ? this.iconType : iconType; + coverIcon = coverIcon === VOID ? this.coverIcon : coverIcon; + isFold = isFold === VOID ? this.isFold : isFold; + isPugv = isPugv === VOID ? this.isPugv : isPugv; + publishTimeText = publishTimeText === VOID ? this.publishTimeText : publishTimeText; + badges = badges === VOID ? this.badges : badges; + return this.copy_1f3xc5_k$(archive, uri, viewContent, iconType, coverIcon, isFold, isPugv, publishTimeText, badges); + } + toString() { + return 'KArc(archive=' + this.archive + ', uri=' + this.uri + ', viewContent=' + this.viewContent + ', iconType=' + this.iconType.toString() + ', coverIcon=' + this.coverIcon + ', isFold=' + this.isFold + ', isPugv=' + this.isPugv + ', publishTimeText=' + this.publishTimeText + ', badges=' + this.badges + ')'; + } + hashCode() { + var result = this.archive == null ? 0 : this.archive.hashCode(); + result = imul(result, 31) + getStringHashCode(this.uri) | 0; + result = imul(result, 31) + getStringHashCode(this.viewContent) | 0; + result = imul(result, 31) + this.iconType.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.coverIcon) | 0; + result = imul(result, 31) + getBooleanHashCode(this.isFold) | 0; + result = imul(result, 31) + getBooleanHashCode(this.isPugv) | 0; + result = imul(result, 31) + getStringHashCode(this.publishTimeText) | 0; + result = imul(result, 31) + hashCode(this.badges) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KArc_1)) + return false; + var tmp0_other_with_cast = other instanceof KArc_1 ? other : THROW_CCE(); + if (!equals(this.archive, tmp0_other_with_cast.archive)) + return false; + if (!(this.uri === tmp0_other_with_cast.uri)) + return false; + if (!(this.viewContent === tmp0_other_with_cast.viewContent)) + return false; + if (!this.iconType.equals(tmp0_other_with_cast.iconType)) + return false; + if (!(this.coverIcon === tmp0_other_with_cast.coverIcon)) + return false; + if (!(this.isFold === tmp0_other_with_cast.isFold)) + return false; + if (!(this.isPugv === tmp0_other_with_cast.isPugv)) + return false; + if (!(this.publishTimeText === tmp0_other_with_cast.publishTimeText)) + return false; + if (!equals(this.badges, tmp0_other_with_cast.badges)) + return false; + return true; + } + static new_com_bapis_bilibili_app_interfaces_v1_KArc_6wyi41_k$(seen1, archive, uri, viewContent, iconType, coverIcon, isFold, isPugv, publishTimeText, badges, serializationConstructorMarker) { + Companion_getInstance_1261(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1248().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.archive = null; + else + $this.archive = archive; + if (0 === (seen1 & 2)) + $this.uri = ''; + else + $this.uri = uri; + if (0 === (seen1 & 4)) + $this.viewContent = ''; + else + $this.viewContent = viewContent; + if (0 === (seen1 & 8)) + $this.iconType = new Long(0, 0); + else + $this.iconType = iconType; + if (0 === (seen1 & 16)) + $this.coverIcon = ''; + else + $this.coverIcon = coverIcon; + if (0 === (seen1 & 32)) + $this.isFold = false; + else + $this.isFold = isFold; + if (0 === (seen1 & 64)) + $this.isPugv = false; + else + $this.isPugv = isPugv; + if (0 === (seen1 & 128)) + $this.publishTimeText = ''; + else + $this.publishTimeText = publishTimeText; + if (0 === (seen1 & 256)) + $this.badges = emptyList(); + else + $this.badges = badges; + return $this; + } + } + class Companion_1262 { + constructor() { + this.targetPath = '/bilibili.app.interface.v1.SearchDynamicReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1249(); + } + } + class $serializer_1249 { + constructor() { + $serializer_instance_1249 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.interfaces.v1.KSearchDynamicReq', this, 5); + tmp0_serialDesc.addElement_5pzumi_k$('keyword', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('mid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('pn', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('ps', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('playerArgs', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable($serializer_getInstance_152())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = new Long(0, 0); + var tmp6_local2 = new Long(0, 0); + var tmp7_local3 = new Long(0, 0); + var tmp8_local4 = null; + var tmp9_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp9_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_152(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + } else + while (tmp1_flag) { + tmp2_index = tmp9_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_152(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp9_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSearchDynamicReq.new_com_bapis_bilibili_app_interfaces_v1_KSearchDynamicReq_4uq7w3_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); + } + serialize_7wabr3_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.keyword === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.keyword); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.mid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.mid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.pn.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.pn); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !value.ps.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 3, value.ps); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.playerArgs == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, $serializer_getInstance_152(), value.playerArgs); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_7wabr3_k$(encoder, value instanceof KSearchDynamicReq ? value : THROW_CCE()); + } + } + class KSearchDynamicReq { + constructor(keyword, mid, pn, ps, playerArgs) { + Companion_instance_1262; + keyword = keyword === VOID ? '' : keyword; + mid = mid === VOID ? new Long(0, 0) : mid; + pn = pn === VOID ? new Long(0, 0) : pn; + ps = ps === VOID ? new Long(0, 0) : ps; + playerArgs = playerArgs === VOID ? null : playerArgs; + this.keyword = keyword; + this.mid = mid; + this.pn = pn; + this.ps = ps; + this.playerArgs = playerArgs; + } + get_keyword_c7bncw_k$() { + return this.keyword; + } + get_mid_18j0o1_k$() { + return this.mid; + } + get_pn_kntnqx_k$() { + return this.pn; + } + get_ps_kntnqs_k$() { + return this.ps; + } + get_playerArgs_eh86hz_k$() { + return this.playerArgs; + } + component1_7eebsc_k$() { + return this.keyword; + } + component2_7eebsb_k$() { + return this.mid; + } + component3_7eebsa_k$() { + return this.pn; + } + component4_7eebs9_k$() { + return this.ps; + } + component5_7eebs8_k$() { + return this.playerArgs; + } + copy_htcmru_k$(keyword, mid, pn, ps, playerArgs) { + return new KSearchDynamicReq(keyword, mid, pn, ps, playerArgs); + } + copy(keyword, mid, pn, ps, playerArgs, $super) { + keyword = keyword === VOID ? this.keyword : keyword; + mid = mid === VOID ? this.mid : mid; + pn = pn === VOID ? this.pn : pn; + ps = ps === VOID ? this.ps : ps; + playerArgs = playerArgs === VOID ? this.playerArgs : playerArgs; + return this.copy_htcmru_k$(keyword, mid, pn, ps, playerArgs); + } + toString() { + return 'KSearchDynamicReq(keyword=' + this.keyword + ', mid=' + this.mid.toString() + ', pn=' + this.pn.toString() + ', ps=' + this.ps.toString() + ', playerArgs=' + this.playerArgs + ')'; + } + hashCode() { + var result = getStringHashCode(this.keyword); + result = imul(result, 31) + this.mid.hashCode() | 0; + result = imul(result, 31) + this.pn.hashCode() | 0; + result = imul(result, 31) + this.ps.hashCode() | 0; + result = imul(result, 31) + (this.playerArgs == null ? 0 : this.playerArgs.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSearchDynamicReq)) + return false; + var tmp0_other_with_cast = other instanceof KSearchDynamicReq ? other : THROW_CCE(); + if (!(this.keyword === tmp0_other_with_cast.keyword)) + return false; + if (!this.mid.equals(tmp0_other_with_cast.mid)) + return false; + if (!this.pn.equals(tmp0_other_with_cast.pn)) + return false; + if (!this.ps.equals(tmp0_other_with_cast.ps)) + return false; + if (!equals(this.playerArgs, tmp0_other_with_cast.playerArgs)) + return false; + return true; + } + static new_com_bapis_bilibili_app_interfaces_v1_KSearchDynamicReq_4uq7w3_k$(seen1, keyword, mid, pn, ps, playerArgs, serializationConstructorMarker) { + Companion_instance_1262; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1249().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.keyword = ''; + else + $this.keyword = keyword; + if (0 === (seen1 & 2)) + $this.mid = new Long(0, 0); + else + $this.mid = mid; + if (0 === (seen1 & 4)) + $this.pn = new Long(0, 0); + else + $this.pn = pn; + if (0 === (seen1 & 8)) + $this.ps = new Long(0, 0); + else + $this.ps = ps; + if (0 === (seen1 & 16)) + $this.playerArgs = null; + else + $this.playerArgs = playerArgs; + return $this; + } + } + class Companion_1263 { + constructor() { + Companion_instance_1263 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer($serializer_getInstance_1251()), null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.interface.v1.SearchDynamicReply'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1250(); + } + } + class $serializer_1250 { + constructor() { + $serializer_instance_1250 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.interfaces.v1.KSearchDynamicReply', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('dynamics', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('total', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_1263().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0], LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = new Long(0, 0); + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp7_cached = Companion_getInstance_1263().$childSerializers_1; + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp7_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp7_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSearchDynamicReply.new_com_bapis_bilibili_app_interfaces_v1_KSearchDynamicReply_g4gj5g_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_hw9lu3_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_1263().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.dynamics, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.dynamics); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.total.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.total); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_hw9lu3_k$(encoder, value instanceof KSearchDynamicReply ? value : THROW_CCE()); + } + } + class KSearchDynamicReply { + constructor(dynamics, total) { + Companion_getInstance_1263(); + dynamics = dynamics === VOID ? emptyList() : dynamics; + total = total === VOID ? new Long(0, 0) : total; + this.dynamics = dynamics; + this.total = total; + } + get_dynamics_7xnb4z_k$() { + return this.dynamics; + } + get_total_iz6wij_k$() { + return this.total; + } + component1_7eebsc_k$() { + return this.dynamics; + } + component2_7eebsb_k$() { + return this.total; + } + copy_v565yx_k$(dynamics, total) { + return new KSearchDynamicReply(dynamics, total); + } + copy(dynamics, total, $super) { + dynamics = dynamics === VOID ? this.dynamics : dynamics; + total = total === VOID ? this.total : total; + return this.copy_v565yx_k$(dynamics, total); + } + toString() { + return 'KSearchDynamicReply(dynamics=' + this.dynamics + ', total=' + this.total.toString() + ')'; + } + hashCode() { + var result = hashCode(this.dynamics); + result = imul(result, 31) + this.total.hashCode() | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSearchDynamicReply)) + return false; + var tmp0_other_with_cast = other instanceof KSearchDynamicReply ? other : THROW_CCE(); + if (!equals(this.dynamics, tmp0_other_with_cast.dynamics)) + return false; + if (!this.total.equals(tmp0_other_with_cast.total)) + return false; + return true; + } + static new_com_bapis_bilibili_app_interfaces_v1_KSearchDynamicReply_g4gj5g_k$(seen1, dynamics, total, serializationConstructorMarker) { + Companion_getInstance_1263(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1250().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.dynamics = emptyList(); + else + $this.dynamics = dynamics; + if (0 === (seen1 & 2)) + $this.total = new Long(0, 0); + else + $this.total = total; + return $this; + } + } + class Companion_1264 { + constructor() { + this.targetPath = '/bilibili.app.interface.v1.Dynamic'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1251(); + } + } + class $serializer_1251 { + constructor() { + $serializer_instance_1251 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.interfaces.v1.KDynamic', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('dynamic', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_942())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_942(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_942(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KDynamic_0.new_com_bapis_bilibili_app_interfaces_v1_KDynamic_ul3z9p_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_4kv0gv_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.dynamic == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_942(), value.dynamic); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_4kv0gv_k$(encoder, value instanceof KDynamic_0 ? value : THROW_CCE()); + } + } + class KDynamic_0 { + constructor(dynamic) { + Companion_instance_1264; + dynamic = dynamic === VOID ? null : dynamic; + this.dynamic = dynamic; + } + get_dynamic_ymiyzu_k$() { + return this.dynamic; + } + component1_7eebsc_k$() { + return this.dynamic; + } + copy_kr9r4r_k$(dynamic) { + return new KDynamic_0(dynamic); + } + copy(dynamic, $super) { + dynamic = dynamic === VOID ? this.dynamic : dynamic; + return this.copy_kr9r4r_k$(dynamic); + } + toString() { + return 'KDynamic(dynamic=' + this.dynamic + ')'; + } + hashCode() { + return this.dynamic == null ? 0 : this.dynamic.hashCode(); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KDynamic_0)) + return false; + var tmp0_other_with_cast = other instanceof KDynamic_0 ? other : THROW_CCE(); + if (!equals(this.dynamic, tmp0_other_with_cast.dynamic)) + return false; + return true; + } + static new_com_bapis_bilibili_app_interfaces_v1_KDynamic_ul3z9p_k$(seen1, dynamic, serializationConstructorMarker) { + Companion_instance_1264; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1251().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.dynamic = null; + else + $this.dynamic = dynamic; + return $this; + } + } + class Companion_1265 { + constructor() { + Companion_instance_1265 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KPwdFrom$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KPwdFrom$Companion$_anonymous__zi18mr); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_152(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.interfaces.v1.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KPwdFrom_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.interfaces.v1.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KPwdFrom with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_152(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_1252 { + constructor() { + $serializer_instance_1252 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.interfaces.v1.KPwdFrom', 13); + tmp0_serialDesc.addElement_5pzumi_k$('UNKNOWN_FROM', false); + tmp0_serialDesc.addElement_5pzumi_k$('TEENAGERS_ANTI_ADDICTION_FROM', false); + tmp0_serialDesc.addElement_5pzumi_k$('TEENAGERS_CURFEW_FROM', false); + tmp0_serialDesc.addElement_5pzumi_k$('TEENAGERS_LOGIN_FROM', false); + tmp0_serialDesc.addElement_5pzumi_k$('TEENAGERS_LOG_OUT_FROM', false); + tmp0_serialDesc.addElement_5pzumi_k$('FAMILY_ANTI_ADDICTION_FROM', false); + tmp0_serialDesc.addElement_5pzumi_k$('FAMILY_CURFEW_FROM', false); + tmp0_serialDesc.addElement_5pzumi_k$('FAMILY_LOG_OUT_FROM', false); + tmp0_serialDesc.addElement_5pzumi_k$('FAMILY_TIME_LOCK_FROM', false); + tmp0_serialDesc.addElement_5pzumi_k$('TEENAGERS_QUIT_PWD_FROM', false); + tmp0_serialDesc.addElement_5pzumi_k$('TEENAGERS_MODIFY_PWD_FROM', false); + tmp0_serialDesc.addElement_5pzumi_k$('FAMILY_QUIT_FROM', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_152()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_1dstc2_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_1dstc2_k$(encoder, value instanceof KPwdFrom ? value : THROW_CCE()); + } + } + class KPwdFrom extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_1266 { + constructor() { + Companion_instance_1266 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KModelStatus$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KModelStatus$Companion$_anonymous__ojkk1r); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_153(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.interfaces.v1.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KModelStatus_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.interfaces.v1.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KModelStatus with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_153(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_1253 { + constructor() { + $serializer_instance_1253 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.interfaces.v1.KModelStatus', 4); + tmp0_serialDesc.addElement_5pzumi_k$('CLOSE_STATUS', false); + tmp0_serialDesc.addElement_5pzumi_k$('OPEN_STATUS', false); + tmp0_serialDesc.addElement_5pzumi_k$('NOT_SET_STATUS', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_153()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_x9u0s6_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_x9u0s6_k$(encoder, value instanceof KModelStatus ? value : THROW_CCE()); + } + } + class KModelStatus extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_1267 { + constructor() { + Companion_instance_1267 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KFacialRecognitionVerifyFrom$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KFacialRecognitionVerifyFrom$Companion$_anonymous__4k93yk); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_154(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.interfaces.v1.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KFacialRecognitionVerifyFrom_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.interfaces.v1.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KFacialRecognitionVerifyFrom with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_154(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_1254 { + constructor() { + $serializer_instance_1254 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.interfaces.v1.KFacialRecognitionVerifyFrom', 4); + tmp0_serialDesc.addElement_5pzumi_k$('VERIFY_UNKNOWN_FROM', false); + tmp0_serialDesc.addElement_5pzumi_k$('VERIFY_FROM_GUARDIAN', false); + tmp0_serialDesc.addElement_5pzumi_k$('VERIFY_FROM_APPEAL', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_154()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_d9flmx_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_d9flmx_k$(encoder, value instanceof KFacialRecognitionVerifyFrom ? value : THROW_CCE()); + } + } + class KFacialRecognitionVerifyFrom extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_1268 { + constructor() { + this.targetPath = '/bilibili.app.interface.v1.ModifyPwdReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1255(); + } + } + class $serializer_1255 { + constructor() { + $serializer_instance_1255 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.interfaces.v1.KModifyPwdReq', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('oldPwd', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('newPwd', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('deviceToken', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KModifyPwdReq.new_com_bapis_bilibili_app_interfaces_v1_KModifyPwdReq_7au34k_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_ki3y99_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.oldPwd === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.oldPwd); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.newPwd === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.newPwd); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.deviceToken === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.deviceToken); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_ki3y99_k$(encoder, value instanceof KModifyPwdReq ? value : THROW_CCE()); + } + } + class KModifyPwdReq { + constructor(oldPwd, newPwd, deviceToken) { + Companion_instance_1268; + oldPwd = oldPwd === VOID ? '' : oldPwd; + newPwd = newPwd === VOID ? '' : newPwd; + deviceToken = deviceToken === VOID ? '' : deviceToken; + this.oldPwd = oldPwd; + this.newPwd = newPwd; + this.deviceToken = deviceToken; + } + get_oldPwd_hmvicf_k$() { + return this.oldPwd; + } + get_newPwd_h2bgjq_k$() { + return this.newPwd; + } + get_deviceToken_bsj0o6_k$() { + return this.deviceToken; + } + component1_7eebsc_k$() { + return this.oldPwd; + } + component2_7eebsb_k$() { + return this.newPwd; + } + component3_7eebsa_k$() { + return this.deviceToken; + } + copy_nc7k0r_k$(oldPwd, newPwd, deviceToken) { + return new KModifyPwdReq(oldPwd, newPwd, deviceToken); + } + copy(oldPwd, newPwd, deviceToken, $super) { + oldPwd = oldPwd === VOID ? this.oldPwd : oldPwd; + newPwd = newPwd === VOID ? this.newPwd : newPwd; + deviceToken = deviceToken === VOID ? this.deviceToken : deviceToken; + return this.copy_nc7k0r_k$(oldPwd, newPwd, deviceToken); + } + toString() { + return 'KModifyPwdReq(oldPwd=' + this.oldPwd + ', newPwd=' + this.newPwd + ', deviceToken=' + this.deviceToken + ')'; + } + hashCode() { + var result = getStringHashCode(this.oldPwd); + result = imul(result, 31) + getStringHashCode(this.newPwd) | 0; + result = imul(result, 31) + getStringHashCode(this.deviceToken) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KModifyPwdReq)) + return false; + var tmp0_other_with_cast = other instanceof KModifyPwdReq ? other : THROW_CCE(); + if (!(this.oldPwd === tmp0_other_with_cast.oldPwd)) + return false; + if (!(this.newPwd === tmp0_other_with_cast.newPwd)) + return false; + if (!(this.deviceToken === tmp0_other_with_cast.deviceToken)) + return false; + return true; + } + static new_com_bapis_bilibili_app_interfaces_v1_KModifyPwdReq_7au34k_k$(seen1, oldPwd, newPwd, deviceToken, serializationConstructorMarker) { + Companion_instance_1268; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1255().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.oldPwd = ''; + else + $this.oldPwd = oldPwd; + if (0 === (seen1 & 2)) + $this.newPwd = ''; + else + $this.newPwd = newPwd; + if (0 === (seen1 & 4)) + $this.deviceToken = ''; + else + $this.deviceToken = deviceToken; + return $this; + } + } + class Companion_1269 { + constructor() { + this.targetPath = '/bilibili.app.interface.v1.ModifyPwdReply'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1256(); + } + } + class $serializer_1256 { + constructor() { + $serializer_instance_1256 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.interfaces.v1.KModifyPwdReply', this, 0); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = []; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp4_input.decodeSequentially_xlblqy_k$()) { + } else + while (tmp1_flag) { + tmp2_index = tmp4_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + if (tmp2_index === -1) + tmp1_flag = false; + else + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + tmp4_input.endStructure_1xqz0n_k$(tmp0_desc); + return KModifyPwdReply.new_com_bapis_bilibili_app_interfaces_v1_KModifyPwdReply_hyvme5_k$(tmp3_bitMask0, null); + } + serialize_1gdhgf_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_1gdhgf_k$(encoder, value instanceof KModifyPwdReply ? value : THROW_CCE()); + } + } + class KModifyPwdReply { + constructor() { + Companion_instance_1269; + } + static new_com_bapis_bilibili_app_interfaces_v1_KModifyPwdReply_hyvme5_k$(seen1, serializationConstructorMarker) { + Companion_instance_1269; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1256().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + return $this; + } + } + class Companion_1270 { + constructor() { + this.targetPath = '/bilibili.app.interface.v1.VerifyPwdReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1257(); + } + } + class $serializer_1257 { + constructor() { + $serializer_instance_1257 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.interfaces.v1.KVerifyPwdReq', this, 5); + tmp0_serialDesc.addElement_5pzumi_k$('pwd', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('pwdFrom', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('isDynamic', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('closeDevice', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('deviceToken', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), IntSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = 0; + var tmp6_local2 = false; + var tmp7_local3 = false; + var tmp8_local4 = null; + var tmp9_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp9_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp9_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp9_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + } else + while (tmp1_flag) { + tmp2_index = tmp9_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp9_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp9_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp9_input.endStructure_1xqz0n_k$(tmp0_desc); + return KVerifyPwdReq.new_com_bapis_bilibili_app_interfaces_v1_KVerifyPwdReq_s7yhbe_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); + } + serialize_qe4uk2_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.pwd === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.pwd); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.pwdFrom === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.pwdFrom); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.isDynamic === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 2, value.isDynamic); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.closeDevice === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 3, value.closeDevice); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.deviceToken === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.deviceToken); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_qe4uk2_k$(encoder, value instanceof KVerifyPwdReq ? value : THROW_CCE()); + } + } + class KVerifyPwdReq { + constructor(pwd, pwdFrom, isDynamic, closeDevice, deviceToken) { + Companion_instance_1270; + pwd = pwd === VOID ? '' : pwd; + pwdFrom = pwdFrom === VOID ? 0 : pwdFrom; + isDynamic = isDynamic === VOID ? false : isDynamic; + closeDevice = closeDevice === VOID ? false : closeDevice; + deviceToken = deviceToken === VOID ? '' : deviceToken; + this.pwd = pwd; + this.pwdFrom = pwdFrom; + this.isDynamic = isDynamic; + this.closeDevice = closeDevice; + this.deviceToken = deviceToken; + } + get_pwd_18iy3w_k$() { + return this.pwd; + } + get_pwdFrom_1o1zs2_k$() { + return this.pwdFrom; + } + get_isDynamic_y2da18_k$() { + return this.isDynamic; + } + get_closeDevice_9fclj9_k$() { + return this.closeDevice; + } + get_deviceToken_bsj0o6_k$() { + return this.deviceToken; + } + pwdFromEnum() { + return Companion_getInstance_1265().fromValue(this.pwdFrom); + } + component1_7eebsc_k$() { + return this.pwd; + } + component2_7eebsb_k$() { + return this.pwdFrom; + } + component3_7eebsa_k$() { + return this.isDynamic; + } + component4_7eebs9_k$() { + return this.closeDevice; + } + component5_7eebs8_k$() { + return this.deviceToken; + } + copy_7jxqsn_k$(pwd, pwdFrom, isDynamic, closeDevice, deviceToken) { + return new KVerifyPwdReq(pwd, pwdFrom, isDynamic, closeDevice, deviceToken); + } + copy(pwd, pwdFrom, isDynamic, closeDevice, deviceToken, $super) { + pwd = pwd === VOID ? this.pwd : pwd; + pwdFrom = pwdFrom === VOID ? this.pwdFrom : pwdFrom; + isDynamic = isDynamic === VOID ? this.isDynamic : isDynamic; + closeDevice = closeDevice === VOID ? this.closeDevice : closeDevice; + deviceToken = deviceToken === VOID ? this.deviceToken : deviceToken; + return this.copy_7jxqsn_k$(pwd, pwdFrom, isDynamic, closeDevice, deviceToken); + } + toString() { + return 'KVerifyPwdReq(pwd=' + this.pwd + ', pwdFrom=' + this.pwdFrom + ', isDynamic=' + this.isDynamic + ', closeDevice=' + this.closeDevice + ', deviceToken=' + this.deviceToken + ')'; + } + hashCode() { + var result = getStringHashCode(this.pwd); + result = imul(result, 31) + this.pwdFrom | 0; + result = imul(result, 31) + getBooleanHashCode(this.isDynamic) | 0; + result = imul(result, 31) + getBooleanHashCode(this.closeDevice) | 0; + result = imul(result, 31) + getStringHashCode(this.deviceToken) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KVerifyPwdReq)) + return false; + var tmp0_other_with_cast = other instanceof KVerifyPwdReq ? other : THROW_CCE(); + if (!(this.pwd === tmp0_other_with_cast.pwd)) + return false; + if (!(this.pwdFrom === tmp0_other_with_cast.pwdFrom)) + return false; + if (!(this.isDynamic === tmp0_other_with_cast.isDynamic)) + return false; + if (!(this.closeDevice === tmp0_other_with_cast.closeDevice)) + return false; + if (!(this.deviceToken === tmp0_other_with_cast.deviceToken)) + return false; + return true; + } + static new_com_bapis_bilibili_app_interfaces_v1_KVerifyPwdReq_s7yhbe_k$(seen1, pwd, pwdFrom, isDynamic, closeDevice, deviceToken, serializationConstructorMarker) { + Companion_instance_1270; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1257().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.pwd = ''; + else + $this.pwd = pwd; + if (0 === (seen1 & 2)) + $this.pwdFrom = 0; + else + $this.pwdFrom = pwdFrom; + if (0 === (seen1 & 4)) + $this.isDynamic = false; + else + $this.isDynamic = isDynamic; + if (0 === (seen1 & 8)) + $this.closeDevice = false; + else + $this.closeDevice = closeDevice; + if (0 === (seen1 & 16)) + $this.deviceToken = ''; + else + $this.deviceToken = deviceToken; + return $this; + } + } + class Companion_1271 { + constructor() { + this.targetPath = '/bilibili.app.interface.v1.VerifyPwdReply'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1258(); + } + } + class $serializer_1258 { + constructor() { + $serializer_instance_1258 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.interfaces.v1.KVerifyPwdReply', this, 0); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = []; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp4_input.decodeSequentially_xlblqy_k$()) { + } else + while (tmp1_flag) { + tmp2_index = tmp4_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + if (tmp2_index === -1) + tmp1_flag = false; + else + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + tmp4_input.endStructure_1xqz0n_k$(tmp0_desc); + return KVerifyPwdReply.new_com_bapis_bilibili_app_interfaces_v1_KVerifyPwdReply_u791oi_k$(tmp3_bitMask0, null); + } + serialize_ylvvem_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_ylvvem_k$(encoder, value instanceof KVerifyPwdReply ? value : THROW_CCE()); + } + } + class KVerifyPwdReply { + constructor() { + Companion_instance_1271; + } + static new_com_bapis_bilibili_app_interfaces_v1_KVerifyPwdReply_u791oi_k$(seen1, serializationConstructorMarker) { + Companion_instance_1271; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1258().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + return $this; + } + } + class Companion_1272 { + constructor() { + this.targetPath = '/bilibili.app.interface.v1.UpdateStatusReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1259(); + } + } + class $serializer_1259 { + constructor() { + $serializer_instance_1259 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.interfaces.v1.KUpdateStatusReq', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('pwd', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('switch', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('pwdFrom', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('deviceToken', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), BooleanSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = false; + var tmp6_local2 = 0; + var tmp7_local3 = null; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KUpdateStatusReq.new_com_bapis_bilibili_app_interfaces_v1_KUpdateStatusReq_pq239y_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_1dlajp_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.pwd === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.pwd); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.switch === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 1, value.switch); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.pwdFrom === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.pwdFrom); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.deviceToken === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.deviceToken); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_1dlajp_k$(encoder, value instanceof KUpdateStatusReq ? value : THROW_CCE()); + } + } + class KUpdateStatusReq { + constructor(pwd, switch_0, pwdFrom, deviceToken) { + Companion_instance_1272; + pwd = pwd === VOID ? '' : pwd; + switch_0 = switch_0 === VOID ? false : switch_0; + pwdFrom = pwdFrom === VOID ? 0 : pwdFrom; + deviceToken = deviceToken === VOID ? '' : deviceToken; + this.pwd = pwd; + this.switch = switch_0; + this.pwdFrom = pwdFrom; + this.deviceToken = deviceToken; + } + get_pwd_18iy3w_k$() { + return this.pwd; + } + get_switch_jp7nlp_k$() { + return this.switch; + } + get_pwdFrom_1o1zs2_k$() { + return this.pwdFrom; + } + get_deviceToken_bsj0o6_k$() { + return this.deviceToken; + } + pwdFromEnum() { + return Companion_getInstance_1265().fromValue(this.pwdFrom); + } + component1_7eebsc_k$() { + return this.pwd; + } + component2_7eebsb_k$() { + return this.switch; + } + component3_7eebsa_k$() { + return this.pwdFrom; + } + component4_7eebs9_k$() { + return this.deviceToken; + } + copy_lmmhry_k$(pwd, switch_0, pwdFrom, deviceToken) { + return new KUpdateStatusReq(pwd, switch_0, pwdFrom, deviceToken); + } + copy(pwd, switch_0, pwdFrom, deviceToken, $super) { + pwd = pwd === VOID ? this.pwd : pwd; + switch_0 = switch_0 === VOID ? this.switch : switch_0; + pwdFrom = pwdFrom === VOID ? this.pwdFrom : pwdFrom; + deviceToken = deviceToken === VOID ? this.deviceToken : deviceToken; + return this.copy_lmmhry_k$(pwd, switch_0, pwdFrom, deviceToken); + } + toString() { + return 'KUpdateStatusReq(pwd=' + this.pwd + ', switch=' + this.switch + ', pwdFrom=' + this.pwdFrom + ', deviceToken=' + this.deviceToken + ')'; + } + hashCode() { + var result = getStringHashCode(this.pwd); + result = imul(result, 31) + getBooleanHashCode(this.switch) | 0; + result = imul(result, 31) + this.pwdFrom | 0; + result = imul(result, 31) + getStringHashCode(this.deviceToken) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KUpdateStatusReq)) + return false; + var tmp0_other_with_cast = other instanceof KUpdateStatusReq ? other : THROW_CCE(); + if (!(this.pwd === tmp0_other_with_cast.pwd)) + return false; + if (!(this.switch === tmp0_other_with_cast.switch)) + return false; + if (!(this.pwdFrom === tmp0_other_with_cast.pwdFrom)) + return false; + if (!(this.deviceToken === tmp0_other_with_cast.deviceToken)) + return false; + return true; + } + static new_com_bapis_bilibili_app_interfaces_v1_KUpdateStatusReq_pq239y_k$(seen1, pwd, switch_0, pwdFrom, deviceToken, serializationConstructorMarker) { + Companion_instance_1272; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1259().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.pwd = ''; + else + $this.pwd = pwd; + if (0 === (seen1 & 2)) + $this.switch = false; + else + $this.switch = switch_0; + if (0 === (seen1 & 4)) + $this.pwdFrom = 0; + else + $this.pwdFrom = pwdFrom; + if (0 === (seen1 & 8)) + $this.deviceToken = ''; + else + $this.deviceToken = deviceToken; + return $this; + } + } + class Companion_1273 { + constructor() { + this.targetPath = '/bilibili.app.interface.v1.UpdateStatusReply'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1260(); + } + } + class $serializer_1260 { + constructor() { + $serializer_instance_1260 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.interfaces.v1.KUpdateStatusReply', this, 0); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = []; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp4_input.decodeSequentially_xlblqy_k$()) { + } else + while (tmp1_flag) { + tmp2_index = tmp4_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + if (tmp2_index === -1) + tmp1_flag = false; + else + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + tmp4_input.endStructure_1xqz0n_k$(tmp0_desc); + return KUpdateStatusReply.new_com_bapis_bilibili_app_interfaces_v1_KUpdateStatusReply_ko5fb9_k$(tmp3_bitMask0, null); + } + serialize_3jx9f5_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_3jx9f5_k$(encoder, value instanceof KUpdateStatusReply ? value : THROW_CCE()); + } + } + class KUpdateStatusReply { + constructor() { + Companion_instance_1273; + } + static new_com_bapis_bilibili_app_interfaces_v1_KUpdateStatusReply_ko5fb9_k$(seen1, serializationConstructorMarker) { + Companion_instance_1273; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1260().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + return $this; + } + } + class Companion_1274 { + constructor() { + this.targetPath = '/bilibili.app.interface.v1.ModeStatusReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1261(); + } + } + class $serializer_1261 { + constructor() { + $serializer_instance_1261 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.interfaces.v1.KModeStatusReq', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('deviceToken', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KModeStatusReq.new_com_bapis_bilibili_app_interfaces_v1_KModeStatusReq_53zc7w_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_3zm391_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.deviceToken === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.deviceToken); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_3zm391_k$(encoder, value instanceof KModeStatusReq ? value : THROW_CCE()); + } + } + class KModeStatusReq { + constructor(deviceToken) { + Companion_instance_1274; + deviceToken = deviceToken === VOID ? '' : deviceToken; + this.deviceToken = deviceToken; + } + get_deviceToken_bsj0o6_k$() { + return this.deviceToken; + } + component1_7eebsc_k$() { + return this.deviceToken; + } + copy_a35qlh_k$(deviceToken) { + return new KModeStatusReq(deviceToken); + } + copy(deviceToken, $super) { + deviceToken = deviceToken === VOID ? this.deviceToken : deviceToken; + return this.copy_a35qlh_k$(deviceToken); + } + toString() { + return 'KModeStatusReq(deviceToken=' + this.deviceToken + ')'; + } + hashCode() { + return getStringHashCode(this.deviceToken); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KModeStatusReq)) + return false; + var tmp0_other_with_cast = other instanceof KModeStatusReq ? other : THROW_CCE(); + if (!(this.deviceToken === tmp0_other_with_cast.deviceToken)) + return false; + return true; + } + static new_com_bapis_bilibili_app_interfaces_v1_KModeStatusReq_53zc7w_k$(seen1, deviceToken, serializationConstructorMarker) { + Companion_instance_1274; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1261().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.deviceToken = ''; + else + $this.deviceToken = deviceToken; + return $this; + } + } + class Companion_1275 { + constructor() { + Companion_instance_1275 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer($serializer_getInstance_1264())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.interface.v1.ModeStatusReply'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1262(); + } + } + class $serializer_1262 { + constructor() { + $serializer_instance_1262 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.interfaces.v1.KModeStatusReply', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('userModels', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_1275().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp6_cached = Companion_getInstance_1275().$childSerializers_1; + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KModeStatusReply.new_com_bapis_bilibili_app_interfaces_v1_KModeStatusReply_93jjb5_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_vb1xw7_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_1275().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.userModels, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.userModels); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_vb1xw7_k$(encoder, value instanceof KModeStatusReply ? value : THROW_CCE()); + } + } + class KModeStatusReply { + constructor(userModels) { + Companion_getInstance_1275(); + userModels = userModels === VOID ? emptyList() : userModels; + this.userModels = userModels; + } + get_userModels_38e1em_k$() { + return this.userModels; + } + component1_7eebsc_k$() { + return this.userModels; + } + copy_qe332y_k$(userModels) { + return new KModeStatusReply(userModels); + } + copy(userModels, $super) { + userModels = userModels === VOID ? this.userModels : userModels; + return this.copy_qe332y_k$(userModels); + } + toString() { + return 'KModeStatusReply(userModels=' + this.userModels + ')'; + } + hashCode() { + return hashCode(this.userModels); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KModeStatusReply)) + return false; + var tmp0_other_with_cast = other instanceof KModeStatusReply ? other : THROW_CCE(); + if (!equals(this.userModels, tmp0_other_with_cast.userModels)) + return false; + return true; + } + static new_com_bapis_bilibili_app_interfaces_v1_KModeStatusReply_93jjb5_k$(seen1, userModels, serializationConstructorMarker) { + Companion_getInstance_1275(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1262().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.userModels = emptyList(); + else + $this.userModels = userModels; + return $this; + } + } + class Companion_1276 { + constructor() { + this.targetPath = '/bilibili.app.interface.v1.Policy'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1263(); + } + } + class $serializer_1263 { + constructor() { + $serializer_instance_1263 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.interfaces.v1.KPolicy', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('interval', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('useLocalTime', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), BooleanSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = false; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KPolicy.new_com_bapis_bilibili_app_interfaces_v1_KPolicy_7lchst_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_li8b3e_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.interval.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.interval); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.useLocalTime === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 1, value.useLocalTime); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_li8b3e_k$(encoder, value instanceof KPolicy ? value : THROW_CCE()); + } + } + class KPolicy { + constructor(interval, useLocalTime) { + Companion_instance_1276; + interval = interval === VOID ? new Long(0, 0) : interval; + useLocalTime = useLocalTime === VOID ? false : useLocalTime; + this.interval = interval; + this.useLocalTime = useLocalTime; + } + get_interval_mdbp0y_k$() { + return this.interval; + } + get_useLocalTime_26reqi_k$() { + return this.useLocalTime; + } + component1_7eebsc_k$() { + return this.interval; + } + component2_7eebsb_k$() { + return this.useLocalTime; + } + copy_h2wlv2_k$(interval, useLocalTime) { + return new KPolicy(interval, useLocalTime); + } + copy(interval, useLocalTime, $super) { + interval = interval === VOID ? this.interval : interval; + useLocalTime = useLocalTime === VOID ? this.useLocalTime : useLocalTime; + return this.copy_h2wlv2_k$(interval, useLocalTime); + } + toString() { + return 'KPolicy(interval=' + this.interval.toString() + ', useLocalTime=' + this.useLocalTime + ')'; + } + hashCode() { + var result = this.interval.hashCode(); + result = imul(result, 31) + getBooleanHashCode(this.useLocalTime) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KPolicy)) + return false; + var tmp0_other_with_cast = other instanceof KPolicy ? other : THROW_CCE(); + if (!this.interval.equals(tmp0_other_with_cast.interval)) + return false; + if (!(this.useLocalTime === tmp0_other_with_cast.useLocalTime)) + return false; + return true; + } + static new_com_bapis_bilibili_app_interfaces_v1_KPolicy_7lchst_k$(seen1, interval, useLocalTime, serializationConstructorMarker) { + Companion_instance_1276; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1263().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.interval = new Long(0, 0); + else + $this.interval = interval; + if (0 === (seen1 & 2)) + $this.useLocalTime = false; + else + $this.useLocalTime = useLocalTime; + return $this; + } + } + class Companion_1277 { + constructor() { + this.targetPath = '/bilibili.app.interface.v1.UserModel'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1264(); + } + } + class $serializer_1264 { + constructor() { + $serializer_instance_1264 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.interfaces.v1.KUserModel', this, 9); + tmp0_serialDesc.addElement_5pzumi_k$('mid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('mode', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('wsxcde', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('status', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('policy', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('isForced', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('mustTeen', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('mustRealName', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('isParentControl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), get_nullable($serializer_getInstance_1263()), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = 0; + var tmp8_local4 = null; + var tmp9_local5 = false; + var tmp10_local6 = false; + var tmp11_local7 = false; + var tmp12_local8 = false; + var tmp13_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp13_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp13_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_1263(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp13_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp13_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp13_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp13_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + } else + while (tmp1_flag) { + tmp2_index = tmp13_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp13_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_1263(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp13_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp13_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp13_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp13_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp13_input.endStructure_1xqz0n_k$(tmp0_desc); + return KUserModel.new_com_bapis_bilibili_app_interfaces_v1_KUserModel_qwlvd0_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, null); + } + serialize_cefi8w_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.mid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.mid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.mode === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.mode); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.wsxcde === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.wsxcde); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.status === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 3, value.status); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.policy == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, $serializer_getInstance_1263(), value.policy); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.isForced === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 5, value.isForced); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.mustTeen === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 6, value.mustTeen); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.mustRealName === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 7, value.mustRealName); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.isParentControl === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 8, value.isParentControl); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_cefi8w_k$(encoder, value instanceof KUserModel ? value : THROW_CCE()); + } + } + class KUserModel { + constructor(mid, mode, wsxcde, status, policy, isForced, mustTeen, mustRealName, isParentControl) { + Companion_instance_1277; + mid = mid === VOID ? new Long(0, 0) : mid; + mode = mode === VOID ? '' : mode; + wsxcde = wsxcde === VOID ? '' : wsxcde; + status = status === VOID ? 0 : status; + policy = policy === VOID ? null : policy; + isForced = isForced === VOID ? false : isForced; + mustTeen = mustTeen === VOID ? false : mustTeen; + mustRealName = mustRealName === VOID ? false : mustRealName; + isParentControl = isParentControl === VOID ? false : isParentControl; + this.mid = mid; + this.mode = mode; + this.wsxcde = wsxcde; + this.status = status; + this.policy = policy; + this.isForced = isForced; + this.mustTeen = mustTeen; + this.mustRealName = mustRealName; + this.isParentControl = isParentControl; + } + get_mid_18j0o1_k$() { + return this.mid; + } + get_mode_woqlt8_k$() { + return this.mode; + } + get_wsxcde_ljg70x_k$() { + return this.wsxcde; + } + get_status_jnf6d7_k$() { + return this.status; + } + get_policy_i5q4hn_k$() { + return this.policy; + } + get_isForced_te2nvw_k$() { + return this.isForced; + } + get_mustTeen_hoq6r8_k$() { + return this.mustTeen; + } + get_mustRealName_8wq56j_k$() { + return this.mustRealName; + } + get_isParentControl_sdoin4_k$() { + return this.isParentControl; + } + statusEnum() { + return Companion_getInstance_1266().fromValue(this.status); + } + component1_7eebsc_k$() { + return this.mid; + } + component2_7eebsb_k$() { + return this.mode; + } + component3_7eebsa_k$() { + return this.wsxcde; + } + component4_7eebs9_k$() { + return this.status; + } + component5_7eebs8_k$() { + return this.policy; + } + component6_7eebs7_k$() { + return this.isForced; + } + component7_7eebs6_k$() { + return this.mustTeen; + } + component8_7eebs5_k$() { + return this.mustRealName; + } + component9_7eebs4_k$() { + return this.isParentControl; + } + copy_sysyw9_k$(mid, mode, wsxcde, status, policy, isForced, mustTeen, mustRealName, isParentControl) { + return new KUserModel(mid, mode, wsxcde, status, policy, isForced, mustTeen, mustRealName, isParentControl); + } + copy(mid, mode, wsxcde, status, policy, isForced, mustTeen, mustRealName, isParentControl, $super) { + mid = mid === VOID ? this.mid : mid; + mode = mode === VOID ? this.mode : mode; + wsxcde = wsxcde === VOID ? this.wsxcde : wsxcde; + status = status === VOID ? this.status : status; + policy = policy === VOID ? this.policy : policy; + isForced = isForced === VOID ? this.isForced : isForced; + mustTeen = mustTeen === VOID ? this.mustTeen : mustTeen; + mustRealName = mustRealName === VOID ? this.mustRealName : mustRealName; + isParentControl = isParentControl === VOID ? this.isParentControl : isParentControl; + return this.copy_sysyw9_k$(mid, mode, wsxcde, status, policy, isForced, mustTeen, mustRealName, isParentControl); + } + toString() { + return 'KUserModel(mid=' + this.mid.toString() + ', mode=' + this.mode + ', wsxcde=' + this.wsxcde + ', status=' + this.status + ', policy=' + this.policy + ', isForced=' + this.isForced + ', mustTeen=' + this.mustTeen + ', mustRealName=' + this.mustRealName + ', isParentControl=' + this.isParentControl + ')'; + } + hashCode() { + var result = this.mid.hashCode(); + result = imul(result, 31) + getStringHashCode(this.mode) | 0; + result = imul(result, 31) + getStringHashCode(this.wsxcde) | 0; + result = imul(result, 31) + this.status | 0; + result = imul(result, 31) + (this.policy == null ? 0 : this.policy.hashCode()) | 0; + result = imul(result, 31) + getBooleanHashCode(this.isForced) | 0; + result = imul(result, 31) + getBooleanHashCode(this.mustTeen) | 0; + result = imul(result, 31) + getBooleanHashCode(this.mustRealName) | 0; + result = imul(result, 31) + getBooleanHashCode(this.isParentControl) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KUserModel)) + return false; + var tmp0_other_with_cast = other instanceof KUserModel ? other : THROW_CCE(); + if (!this.mid.equals(tmp0_other_with_cast.mid)) + return false; + if (!(this.mode === tmp0_other_with_cast.mode)) + return false; + if (!(this.wsxcde === tmp0_other_with_cast.wsxcde)) + return false; + if (!(this.status === tmp0_other_with_cast.status)) + return false; + if (!equals(this.policy, tmp0_other_with_cast.policy)) + return false; + if (!(this.isForced === tmp0_other_with_cast.isForced)) + return false; + if (!(this.mustTeen === tmp0_other_with_cast.mustTeen)) + return false; + if (!(this.mustRealName === tmp0_other_with_cast.mustRealName)) + return false; + if (!(this.isParentControl === tmp0_other_with_cast.isParentControl)) + return false; + return true; + } + static new_com_bapis_bilibili_app_interfaces_v1_KUserModel_qwlvd0_k$(seen1, mid, mode, wsxcde, status, policy, isForced, mustTeen, mustRealName, isParentControl, serializationConstructorMarker) { + Companion_instance_1277; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1264().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.mid = new Long(0, 0); + else + $this.mid = mid; + if (0 === (seen1 & 2)) + $this.mode = ''; + else + $this.mode = mode; + if (0 === (seen1 & 4)) + $this.wsxcde = ''; + else + $this.wsxcde = wsxcde; + if (0 === (seen1 & 8)) + $this.status = 0; + else + $this.status = status; + if (0 === (seen1 & 16)) + $this.policy = null; + else + $this.policy = policy; + if (0 === (seen1 & 32)) + $this.isForced = false; + else + $this.isForced = isForced; + if (0 === (seen1 & 64)) + $this.mustTeen = false; + else + $this.mustTeen = mustTeen; + if (0 === (seen1 & 128)) + $this.mustRealName = false; + else + $this.mustRealName = mustRealName; + if (0 === (seen1 & 256)) + $this.isParentControl = false; + else + $this.isParentControl = isParentControl; + return $this; + } + } + class Companion_1278 { + constructor() { + this.targetPath = '/bilibili.app.interface.v1.FacialRecognitionVerifyReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1265(); + } + } + class $serializer_1265 { + constructor() { + $serializer_instance_1265 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.interfaces.v1.KFacialRecognitionVerifyReq', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('from', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('deviceToken', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KFacialRecognitionVerifyReq.new_com_bapis_bilibili_app_interfaces_v1_KFacialRecognitionVerifyReq_c7rj1r_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_wchfam_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.from === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.from); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.deviceToken === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.deviceToken); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_wchfam_k$(encoder, value instanceof KFacialRecognitionVerifyReq ? value : THROW_CCE()); + } + } + class KFacialRecognitionVerifyReq { + constructor(from, deviceToken) { + Companion_instance_1278; + from = from === VOID ? 0 : from; + deviceToken = deviceToken === VOID ? '' : deviceToken; + this.from = from; + this.deviceToken = deviceToken; + } + get_from_wom7eb_k$() { + return this.from; + } + get_deviceToken_bsj0o6_k$() { + return this.deviceToken; + } + fromEnum() { + return Companion_getInstance_1267().fromValue(this.from); + } + component1_7eebsc_k$() { + return this.from; + } + component2_7eebsb_k$() { + return this.deviceToken; + } + copy_xhhsuv_k$(from, deviceToken) { + return new KFacialRecognitionVerifyReq(from, deviceToken); + } + copy(from, deviceToken, $super) { + from = from === VOID ? this.from : from; + deviceToken = deviceToken === VOID ? this.deviceToken : deviceToken; + return this.copy_xhhsuv_k$(from, deviceToken); + } + toString() { + return 'KFacialRecognitionVerifyReq(from=' + this.from + ', deviceToken=' + this.deviceToken + ')'; + } + hashCode() { + var result = this.from; + result = imul(result, 31) + getStringHashCode(this.deviceToken) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KFacialRecognitionVerifyReq)) + return false; + var tmp0_other_with_cast = other instanceof KFacialRecognitionVerifyReq ? other : THROW_CCE(); + if (!(this.from === tmp0_other_with_cast.from)) + return false; + if (!(this.deviceToken === tmp0_other_with_cast.deviceToken)) + return false; + return true; + } + static new_com_bapis_bilibili_app_interfaces_v1_KFacialRecognitionVerifyReq_c7rj1r_k$(seen1, from, deviceToken, serializationConstructorMarker) { + Companion_instance_1278; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1265().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.from = 0; + else + $this.from = from; + if (0 === (seen1 & 2)) + $this.deviceToken = ''; + else + $this.deviceToken = deviceToken; + return $this; + } + } + class Companion_1279 { + constructor() { + this.targetPath = '/bilibili.app.interface.v1.FacialRecognitionVerifyReply'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1266(); + } + } + class $serializer_1266 { + constructor() { + $serializer_instance_1266 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.interfaces.v1.KFacialRecognitionVerifyReply', this, 0); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = []; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp4_input.decodeSequentially_xlblqy_k$()) { + } else + while (tmp1_flag) { + tmp2_index = tmp4_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + if (tmp2_index === -1) + tmp1_flag = false; + else + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + tmp4_input.endStructure_1xqz0n_k$(tmp0_desc); + return KFacialRecognitionVerifyReply.new_com_bapis_bilibili_app_interfaces_v1_KFacialRecognitionVerifyReply_s7jvz6_k$(tmp3_bitMask0, null); + } + serialize_ff9jtu_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_ff9jtu_k$(encoder, value instanceof KFacialRecognitionVerifyReply ? value : THROW_CCE()); + } + } + class KFacialRecognitionVerifyReply { + constructor() { + Companion_instance_1279; + } + static new_com_bapis_bilibili_app_interfaces_v1_KFacialRecognitionVerifyReply_s7jvz6_k$(seen1, serializationConstructorMarker) { + Companion_instance_1279; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1266().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + return $this; + } + } + class Companion_1280 { + constructor() { + Companion_instance_1280 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KDetailListScene$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KDetailListScene$Companion$_anonymous__uhulvn); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_155(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.main.community.reply.v1.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KDetailListScene_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.main.community.reply.v1.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KDetailListScene with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_155(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_1267 { + constructor() { + $serializer_instance_1267 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.main.community.reply.v1.KDetailListScene', 4); + tmp0_serialDesc.addElement_5pzumi_k$('REPLY', false); + tmp0_serialDesc.addElement_5pzumi_k$('MSG_FEED', false); + tmp0_serialDesc.addElement_5pzumi_k$('NOTIFY', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_155()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_wwms7y_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_wwms7y_k$(encoder, value instanceof KDetailListScene ? value : THROW_CCE()); + } + } + class KDetailListScene extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_1281 { + constructor() { + Companion_instance_1281 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KMode$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KMode$Companion$_anonymous__er5s9r); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_156(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.main.community.reply.v1.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KMode_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.main.community.reply.v1.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KMode with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_156(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_1268 { + constructor() { + $serializer_instance_1268 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.main.community.reply.v1.KMode', 5); + tmp0_serialDesc.addElement_5pzumi_k$('DEFAULT', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNSPECIFIED', false); + tmp0_serialDesc.addElement_5pzumi_k$('MAIN_LIST_TIME', false); + tmp0_serialDesc.addElement_5pzumi_k$('MAIN_LIST_HOT', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_156()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_b3tqaa_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_b3tqaa_k$(encoder, value instanceof KMode ? value : THROW_CCE()); + } + } + class KMode extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_1282 { + constructor() { + Companion_instance_1282 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KEditorIconState$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KEditorIconState$Companion$_anonymous__jlsurz); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_157(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.main.community.reply.v1.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KEditorIconState_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.main.community.reply.v1.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KEditorIconState with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_157(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_1269 { + constructor() { + $serializer_instance_1269 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.main.community.reply.v1.KEditorIconState', 5); + tmp0_serialDesc.addElement_5pzumi_k$('DEFAULT', false); + tmp0_serialDesc.addElement_5pzumi_k$('ENABLE', false); + tmp0_serialDesc.addElement_5pzumi_k$('DISABLE', false); + tmp0_serialDesc.addElement_5pzumi_k$('HIDE', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_157()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_8rfdl8_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_8rfdl8_k$(encoder, value instanceof KEditorIconState ? value : THROW_CCE()); + } + } + class KEditorIconState extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_1283 { + constructor() { + Companion_instance_1283 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KSearchItemType$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KSearchItemType$Companion$_anonymous__aw767l); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_158(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.main.community.reply.v1.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KSearchItemType_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.main.community.reply.v1.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KSearchItemType with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_158(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_1270 { + constructor() { + $serializer_instance_1270 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.main.community.reply.v1.KSearchItemType', 5); + tmp0_serialDesc.addElement_5pzumi_k$('DEFAULT_ITEM_TYPE', false); + tmp0_serialDesc.addElement_5pzumi_k$('GOODS', false); + tmp0_serialDesc.addElement_5pzumi_k$('VIDEO', false); + tmp0_serialDesc.addElement_5pzumi_k$('ARTICLE', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_158()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_9583b4_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_9583b4_k$(encoder, value instanceof KSearchItemType ? value : THROW_CCE()); + } + } + class KSearchItemType extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_1284 { + constructor() { + Companion_instance_1284 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KSearchItemVideoSubType$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KSearchItemVideoSubType$Companion$_anonymous__h1ticq); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_159(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.main.community.reply.v1.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KSearchItemVideoSubType_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.main.community.reply.v1.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KSearchItemVideoSubType with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_159(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_1271 { + constructor() { + $serializer_instance_1271 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.main.community.reply.v1.KSearchItemVideoSubType', 3); + tmp0_serialDesc.addElement_5pzumi_k$('UGC', false); + tmp0_serialDesc.addElement_5pzumi_k$('PGC', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_159()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_vsd83f_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_vsd83f_k$(encoder, value instanceof KSearchItemVideoSubType ? value : THROW_CCE()); + } + } + class KSearchItemVideoSubType extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_1285 { + constructor() { + Companion_instance_1285 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KUserCallbackAction$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KUserCallbackAction$Companion$_anonymous__gbeybi); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_160(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.main.community.reply.v1.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KUserCallbackAction_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.main.community.reply.v1.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KUserCallbackAction with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_160(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_1272 { + constructor() { + $serializer_instance_1272 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.main.community.reply.v1.KUserCallbackAction', 2); + tmp0_serialDesc.addElement_5pzumi_k$('DISMISS', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_160()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_kv1mpd_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_kv1mpd_k$(encoder, value instanceof KUserCallbackAction ? value : THROW_CCE()); + } + } + class KUserCallbackAction extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_1286 { + constructor() { + Companion_instance_1286 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KUserCallbackScene$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KUserCallbackScene$Companion$_anonymous__aiyf5q); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_161(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.main.community.reply.v1.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KUserCallbackScene_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.main.community.reply.v1.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KUserCallbackScene with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_161(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_1273 { + constructor() { + $serializer_instance_1273 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.main.community.reply.v1.KUserCallbackScene', 3); + tmp0_serialDesc.addElement_5pzumi_k$('INSERT', false); + tmp0_serialDesc.addElement_5pzumi_k$('RECOMMEND_SUPERB_REPLY', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_161()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_82cg3n_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_82cg3n_k$(encoder, value instanceof KUserCallbackScene ? value : THROW_CCE()); + } + } + class KUserCallbackScene extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_1287 { + constructor() { + this.targetPath = '/bilibili.main.community.reply.v1.CM'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1274(); + } + } + class $serializer_1274 { + constructor() { + $serializer_instance_1274 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KCM', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('sourceContent', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KCM_0.new_com_bapis_bilibili_main_community_reply_v1_KCM_3vusko_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_j01msc_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.sourceContent == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance(), value.sourceContent); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_j01msc_k$(encoder, value instanceof KCM_0 ? value : THROW_CCE()); + } + } + class KCM_0 { + constructor(sourceContent) { + Companion_instance_1287; + sourceContent = sourceContent === VOID ? null : sourceContent; + this.sourceContent = sourceContent; + } + get_sourceContent_g32jlh_k$() { + return this.sourceContent; + } + component1_7eebsc_k$() { + return this.sourceContent; + } + copy_ap5bsl_k$(sourceContent) { + return new KCM_0(sourceContent); + } + copy(sourceContent, $super) { + sourceContent = sourceContent === VOID ? this.sourceContent : sourceContent; + return this.copy_ap5bsl_k$(sourceContent); + } + toString() { + return 'KCM(sourceContent=' + this.sourceContent + ')'; + } + hashCode() { + return this.sourceContent == null ? 0 : this.sourceContent.hashCode(); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KCM_0)) + return false; + var tmp0_other_with_cast = other instanceof KCM_0 ? other : THROW_CCE(); + if (!equals(this.sourceContent, tmp0_other_with_cast.sourceContent)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KCM_3vusko_k$(seen1, sourceContent, serializationConstructorMarker) { + Companion_instance_1287; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1274().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.sourceContent = null; + else + $this.sourceContent = sourceContent; + return $this; + } + } + class Companion_1288 { + constructor() { + this.targetPath = '/bilibili.main.community.reply.v1.DialogListReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1275(); + } + } + class $serializer_1275 { + constructor() { + $serializer_instance_1275 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KDialogListReq', this, 7); + tmp0_serialDesc.addElement_5pzumi_k$('oid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('root', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('dialog', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('cursor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('pagination', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('extra', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable($serializer_getInstance_1292()), get_nullable($serializer_getInstance_197()), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = new Long(0, 0); + var tmp6_local2 = new Long(0, 0); + var tmp7_local3 = new Long(0, 0); + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp11_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_1292(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_197(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + } else + while (tmp1_flag) { + tmp2_index = tmp11_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_1292(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_197(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp11_input.endStructure_1xqz0n_k$(tmp0_desc); + return KDialogListReq.new_com_bapis_bilibili_main_community_reply_v1_KDialogListReq_13kalz_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, null); + } + serialize_89ry1s_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.oid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.oid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.type.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.type); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.root.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.root); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !value.dialog.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 3, value.dialog); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.cursor == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, $serializer_getInstance_1292(), value.cursor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.pagination == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 5, $serializer_getInstance_197(), value.pagination); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.extra === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.extra); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_89ry1s_k$(encoder, value instanceof KDialogListReq ? value : THROW_CCE()); + } + } + class KDialogListReq { + constructor(oid, type, root, dialog, cursor, pagination, extra) { + Companion_instance_1288; + oid = oid === VOID ? new Long(0, 0) : oid; + type = type === VOID ? new Long(0, 0) : type; + root = root === VOID ? new Long(0, 0) : root; + dialog = dialog === VOID ? new Long(0, 0) : dialog; + cursor = cursor === VOID ? null : cursor; + pagination = pagination === VOID ? null : pagination; + extra = extra === VOID ? '' : extra; + this.oid = oid; + this.type = type; + this.root = root; + this.dialog = dialog; + this.cursor = cursor; + this.pagination = pagination; + this.extra = extra; + } + get_oid_18iz6n_k$() { + return this.oid; + } + get_type_wovaf7_k$() { + return this.type; + } + get_root_wott0r_k$() { + return this.root; + } + get_dialog_cdoxu9_k$() { + return this.dialog; + } + get_cursor_c3jujj_k$() { + return this.cursor; + } + get_pagination_1aczdv_k$() { + return this.pagination; + } + get_extra_ir3qw7_k$() { + return this.extra; + } + component1_7eebsc_k$() { + return this.oid; + } + component2_7eebsb_k$() { + return this.type; + } + component3_7eebsa_k$() { + return this.root; + } + component4_7eebs9_k$() { + return this.dialog; + } + component5_7eebs8_k$() { + return this.cursor; + } + component6_7eebs7_k$() { + return this.pagination; + } + component7_7eebs6_k$() { + return this.extra; + } + copy_y7lol7_k$(oid, type, root, dialog, cursor, pagination, extra) { + return new KDialogListReq(oid, type, root, dialog, cursor, pagination, extra); + } + copy(oid, type, root, dialog, cursor, pagination, extra, $super) { + oid = oid === VOID ? this.oid : oid; + type = type === VOID ? this.type : type; + root = root === VOID ? this.root : root; + dialog = dialog === VOID ? this.dialog : dialog; + cursor = cursor === VOID ? this.cursor : cursor; + pagination = pagination === VOID ? this.pagination : pagination; + extra = extra === VOID ? this.extra : extra; + return this.copy_y7lol7_k$(oid, type, root, dialog, cursor, pagination, extra); + } + toString() { + return 'KDialogListReq(oid=' + this.oid.toString() + ', type=' + this.type.toString() + ', root=' + this.root.toString() + ', dialog=' + this.dialog.toString() + ', cursor=' + this.cursor + ', pagination=' + this.pagination + ', extra=' + this.extra + ')'; + } + hashCode() { + var result = this.oid.hashCode(); + result = imul(result, 31) + this.type.hashCode() | 0; + result = imul(result, 31) + this.root.hashCode() | 0; + result = imul(result, 31) + this.dialog.hashCode() | 0; + result = imul(result, 31) + (this.cursor == null ? 0 : this.cursor.hashCode()) | 0; + result = imul(result, 31) + (this.pagination == null ? 0 : this.pagination.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.extra) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KDialogListReq)) + return false; + var tmp0_other_with_cast = other instanceof KDialogListReq ? other : THROW_CCE(); + if (!this.oid.equals(tmp0_other_with_cast.oid)) + return false; + if (!this.type.equals(tmp0_other_with_cast.type)) + return false; + if (!this.root.equals(tmp0_other_with_cast.root)) + return false; + if (!this.dialog.equals(tmp0_other_with_cast.dialog)) + return false; + if (!equals(this.cursor, tmp0_other_with_cast.cursor)) + return false; + if (!equals(this.pagination, tmp0_other_with_cast.pagination)) + return false; + if (!(this.extra === tmp0_other_with_cast.extra)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KDialogListReq_13kalz_k$(seen1, oid, type, root, dialog, cursor, pagination, extra, serializationConstructorMarker) { + Companion_instance_1288; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1275().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.oid = new Long(0, 0); + else + $this.oid = oid; + if (0 === (seen1 & 2)) + $this.type = new Long(0, 0); + else + $this.type = type; + if (0 === (seen1 & 4)) + $this.root = new Long(0, 0); + else + $this.root = root; + if (0 === (seen1 & 8)) + $this.dialog = new Long(0, 0); + else + $this.dialog = dialog; + if (0 === (seen1 & 16)) + $this.cursor = null; + else + $this.cursor = cursor; + if (0 === (seen1 & 32)) + $this.pagination = null; + else + $this.pagination = pagination; + if (0 === (seen1 & 64)) + $this.extra = ''; + else + $this.extra = extra; + return $this; + } + } + class Companion_1289 { + constructor() { + Companion_instance_1289 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, new ArrayListSerializer($serializer_getInstance_1303()), null, null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.main.community.reply.v1.DialogListReply'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1276(); + } + } + class $serializer_1276 { + constructor() { + $serializer_instance_1276 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KDialogListReply', this, 6); + tmp0_serialDesc.addElement_5pzumi_k$('cursor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('subjectControl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('replies', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('activity', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('paginationReply', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('sessionId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_1289().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_1293()), get_nullable($serializer_getInstance_1302()), tmp0_cached[2], get_nullable($serializer_getInstance_1290()), get_nullable($serializer_getInstance_198()), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp11_cached = Companion_getInstance_1289().$childSerializers_1; + if (tmp10_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_1293(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_1302(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp10_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp11_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_1290(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_198(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + } else + while (tmp1_flag) { + tmp2_index = tmp10_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_1293(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_1302(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp10_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp11_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_1290(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_198(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp10_input.endStructure_1xqz0n_k$(tmp0_desc); + return KDialogListReply.new_com_bapis_bilibili_main_community_reply_v1_KDialogListReply_z05elf_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); + } + serialize_mu1jfw_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_1289().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.cursor == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_1293(), value.cursor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.subjectControl == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_1302(), value.subjectControl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !equals(value.replies, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 2, tmp2_cached[2], value.replies); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.activity == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_1290(), value.activity); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.paginationReply == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, $serializer_getInstance_198(), value.paginationReply); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.sessionId === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.sessionId); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_mu1jfw_k$(encoder, value instanceof KDialogListReply ? value : THROW_CCE()); + } + } + class KDialogListReply { + constructor(cursor, subjectControl, replies, activity, paginationReply, sessionId) { + Companion_getInstance_1289(); + cursor = cursor === VOID ? null : cursor; + subjectControl = subjectControl === VOID ? null : subjectControl; + replies = replies === VOID ? emptyList() : replies; + activity = activity === VOID ? null : activity; + paginationReply = paginationReply === VOID ? null : paginationReply; + sessionId = sessionId === VOID ? '' : sessionId; + this.cursor = cursor; + this.subjectControl = subjectControl; + this.replies = replies; + this.activity = activity; + this.paginationReply = paginationReply; + this.sessionId = sessionId; + } + get_cursor_c3jujj_k$() { + return this.cursor; + } + get_subjectControl_4r8okm_k$() { + return this.subjectControl; + } + get_replies_jd6za7_k$() { + return this.replies; + } + get_activity_bu9714_k$() { + return this.activity; + } + get_paginationReply_sznu61_k$() { + return this.paginationReply; + } + get_sessionId_ike088_k$() { + return this.sessionId; + } + component1_7eebsc_k$() { + return this.cursor; + } + component2_7eebsb_k$() { + return this.subjectControl; + } + component3_7eebsa_k$() { + return this.replies; + } + component4_7eebs9_k$() { + return this.activity; + } + component5_7eebs8_k$() { + return this.paginationReply; + } + component6_7eebs7_k$() { + return this.sessionId; + } + copy_so4vxw_k$(cursor, subjectControl, replies, activity, paginationReply, sessionId) { + return new KDialogListReply(cursor, subjectControl, replies, activity, paginationReply, sessionId); + } + copy(cursor, subjectControl, replies, activity, paginationReply, sessionId, $super) { + cursor = cursor === VOID ? this.cursor : cursor; + subjectControl = subjectControl === VOID ? this.subjectControl : subjectControl; + replies = replies === VOID ? this.replies : replies; + activity = activity === VOID ? this.activity : activity; + paginationReply = paginationReply === VOID ? this.paginationReply : paginationReply; + sessionId = sessionId === VOID ? this.sessionId : sessionId; + return this.copy_so4vxw_k$(cursor, subjectControl, replies, activity, paginationReply, sessionId); + } + toString() { + return 'KDialogListReply(cursor=' + this.cursor + ', subjectControl=' + this.subjectControl + ', replies=' + this.replies + ', activity=' + this.activity + ', paginationReply=' + this.paginationReply + ', sessionId=' + this.sessionId + ')'; + } + hashCode() { + var result = this.cursor == null ? 0 : this.cursor.hashCode(); + result = imul(result, 31) + (this.subjectControl == null ? 0 : this.subjectControl.hashCode()) | 0; + result = imul(result, 31) + hashCode(this.replies) | 0; + result = imul(result, 31) + (this.activity == null ? 0 : this.activity.hashCode()) | 0; + result = imul(result, 31) + (this.paginationReply == null ? 0 : this.paginationReply.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.sessionId) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KDialogListReply)) + return false; + var tmp0_other_with_cast = other instanceof KDialogListReply ? other : THROW_CCE(); + if (!equals(this.cursor, tmp0_other_with_cast.cursor)) + return false; + if (!equals(this.subjectControl, tmp0_other_with_cast.subjectControl)) + return false; + if (!equals(this.replies, tmp0_other_with_cast.replies)) + return false; + if (!equals(this.activity, tmp0_other_with_cast.activity)) + return false; + if (!equals(this.paginationReply, tmp0_other_with_cast.paginationReply)) + return false; + if (!(this.sessionId === tmp0_other_with_cast.sessionId)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KDialogListReply_z05elf_k$(seen1, cursor, subjectControl, replies, activity, paginationReply, sessionId, serializationConstructorMarker) { + Companion_getInstance_1289(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1276().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.cursor = null; + else + $this.cursor = cursor; + if (0 === (seen1 & 2)) + $this.subjectControl = null; + else + $this.subjectControl = subjectControl; + if (0 === (seen1 & 4)) + $this.replies = emptyList(); + else + $this.replies = replies; + if (0 === (seen1 & 8)) + $this.activity = null; + else + $this.activity = activity; + if (0 === (seen1 & 16)) + $this.paginationReply = null; + else + $this.paginationReply = paginationReply; + if (0 === (seen1 & 32)) + $this.sessionId = ''; + else + $this.sessionId = sessionId; + return $this; + } + } + class Companion_1290 { + constructor() { + this.targetPath = '/bilibili.main.community.reply.v1.DetailListReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1277(); + } + } + class $serializer_1277 { + constructor() { + $serializer_instance_1277 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KDetailListReq', this, 9); + tmp0_serialDesc.addElement_5pzumi_k$('oid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('root', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('rpid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('cursor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('scene', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('mode', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('pagination', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('extra', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable($serializer_getInstance_1292()), IntSerializer_getInstance(), IntSerializer_getInstance(), get_nullable($serializer_getInstance_197()), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = new Long(0, 0); + var tmp6_local2 = new Long(0, 0); + var tmp7_local3 = new Long(0, 0); + var tmp8_local4 = null; + var tmp9_local5 = 0; + var tmp10_local6 = 0; + var tmp11_local7 = null; + var tmp12_local8 = null; + var tmp13_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp13_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_1292(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp13_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp13_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_197(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + } else + while (tmp1_flag) { + tmp2_index = tmp13_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_1292(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp13_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp13_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_197(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp13_input.endStructure_1xqz0n_k$(tmp0_desc); + return KDetailListReq.new_com_bapis_bilibili_main_community_reply_v1_KDetailListReq_2b9isu_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, null); + } + serialize_sta65l_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.oid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.oid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.type.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.type); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.root.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.root); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !value.rpid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 3, value.rpid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.cursor == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, $serializer_getInstance_1292(), value.cursor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.scene === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 5, value.scene); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.mode === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 6, value.mode); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.pagination == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 7, $serializer_getInstance_197(), value.pagination); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.extra === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 8, value.extra); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_sta65l_k$(encoder, value instanceof KDetailListReq ? value : THROW_CCE()); + } + } + class KDetailListReq { + constructor(oid, type, root, rpid, cursor, scene, mode, pagination, extra) { + Companion_instance_1290; + oid = oid === VOID ? new Long(0, 0) : oid; + type = type === VOID ? new Long(0, 0) : type; + root = root === VOID ? new Long(0, 0) : root; + rpid = rpid === VOID ? new Long(0, 0) : rpid; + cursor = cursor === VOID ? null : cursor; + scene = scene === VOID ? 0 : scene; + mode = mode === VOID ? 0 : mode; + pagination = pagination === VOID ? null : pagination; + extra = extra === VOID ? '' : extra; + this.oid = oid; + this.type = type; + this.root = root; + this.rpid = rpid; + this.cursor = cursor; + this.scene = scene; + this.mode = mode; + this.pagination = pagination; + this.extra = extra; + } + get_oid_18iz6n_k$() { + return this.oid; + } + get_type_wovaf7_k$() { + return this.type; + } + get_root_wott0r_k$() { + return this.root; + } + get_rpid_wottlu_k$() { + return this.rpid; + } + get_cursor_c3jujj_k$() { + return this.cursor; + } + get_scene_iyf59f_k$() { + return this.scene; + } + get_mode_woqlt8_k$() { + return this.mode; + } + get_pagination_1aczdv_k$() { + return this.pagination; + } + get_extra_ir3qw7_k$() { + return this.extra; + } + sceneEnum() { + return Companion_getInstance_1280().fromValue(this.scene); + } + modeEnum() { + return Companion_getInstance_1281().fromValue(this.mode); + } + component1_7eebsc_k$() { + return this.oid; + } + component2_7eebsb_k$() { + return this.type; + } + component3_7eebsa_k$() { + return this.root; + } + component4_7eebs9_k$() { + return this.rpid; + } + component5_7eebs8_k$() { + return this.cursor; + } + component6_7eebs7_k$() { + return this.scene; + } + component7_7eebs6_k$() { + return this.mode; + } + component8_7eebs5_k$() { + return this.pagination; + } + component9_7eebs4_k$() { + return this.extra; + } + copy_dfdr7f_k$(oid, type, root, rpid, cursor, scene, mode, pagination, extra) { + return new KDetailListReq(oid, type, root, rpid, cursor, scene, mode, pagination, extra); + } + copy(oid, type, root, rpid, cursor, scene, mode, pagination, extra, $super) { + oid = oid === VOID ? this.oid : oid; + type = type === VOID ? this.type : type; + root = root === VOID ? this.root : root; + rpid = rpid === VOID ? this.rpid : rpid; + cursor = cursor === VOID ? this.cursor : cursor; + scene = scene === VOID ? this.scene : scene; + mode = mode === VOID ? this.mode : mode; + pagination = pagination === VOID ? this.pagination : pagination; + extra = extra === VOID ? this.extra : extra; + return this.copy_dfdr7f_k$(oid, type, root, rpid, cursor, scene, mode, pagination, extra); + } + toString() { + return 'KDetailListReq(oid=' + this.oid.toString() + ', type=' + this.type.toString() + ', root=' + this.root.toString() + ', rpid=' + this.rpid.toString() + ', cursor=' + this.cursor + ', scene=' + this.scene + ', mode=' + this.mode + ', pagination=' + this.pagination + ', extra=' + this.extra + ')'; + } + hashCode() { + var result = this.oid.hashCode(); + result = imul(result, 31) + this.type.hashCode() | 0; + result = imul(result, 31) + this.root.hashCode() | 0; + result = imul(result, 31) + this.rpid.hashCode() | 0; + result = imul(result, 31) + (this.cursor == null ? 0 : this.cursor.hashCode()) | 0; + result = imul(result, 31) + this.scene | 0; + result = imul(result, 31) + this.mode | 0; + result = imul(result, 31) + (this.pagination == null ? 0 : this.pagination.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.extra) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KDetailListReq)) + return false; + var tmp0_other_with_cast = other instanceof KDetailListReq ? other : THROW_CCE(); + if (!this.oid.equals(tmp0_other_with_cast.oid)) + return false; + if (!this.type.equals(tmp0_other_with_cast.type)) + return false; + if (!this.root.equals(tmp0_other_with_cast.root)) + return false; + if (!this.rpid.equals(tmp0_other_with_cast.rpid)) + return false; + if (!equals(this.cursor, tmp0_other_with_cast.cursor)) + return false; + if (!(this.scene === tmp0_other_with_cast.scene)) + return false; + if (!(this.mode === tmp0_other_with_cast.mode)) + return false; + if (!equals(this.pagination, tmp0_other_with_cast.pagination)) + return false; + if (!(this.extra === tmp0_other_with_cast.extra)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KDetailListReq_2b9isu_k$(seen1, oid, type, root, rpid, cursor, scene, mode, pagination, extra, serializationConstructorMarker) { + Companion_instance_1290; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1277().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.oid = new Long(0, 0); + else + $this.oid = oid; + if (0 === (seen1 & 2)) + $this.type = new Long(0, 0); + else + $this.type = type; + if (0 === (seen1 & 4)) + $this.root = new Long(0, 0); + else + $this.root = root; + if (0 === (seen1 & 8)) + $this.rpid = new Long(0, 0); + else + $this.rpid = rpid; + if (0 === (seen1 & 16)) + $this.cursor = null; + else + $this.cursor = cursor; + if (0 === (seen1 & 32)) + $this.scene = 0; + else + $this.scene = scene; + if (0 === (seen1 & 64)) + $this.mode = 0; + else + $this.mode = mode; + if (0 === (seen1 & 128)) + $this.pagination = null; + else + $this.pagination = pagination; + if (0 === (seen1 & 256)) + $this.extra = ''; + else + $this.extra = extra; + return $this; + } + } + class Companion_1291 { + constructor() { + this.targetPath = '/bilibili.main.community.reply.v1.DetailListReply'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1278(); + } + } + class $serializer_1278 { + constructor() { + $serializer_instance_1278 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KDetailListReply', this, 9); + tmp0_serialDesc.addElement_5pzumi_k$('cursor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('subjectControl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('root', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('activity', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('likes', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('mode', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('modeText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('paginationReply', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('sessionId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_1293()), get_nullable($serializer_getInstance_1302()), get_nullable($serializer_getInstance_1303()), get_nullable($serializer_getInstance_1290()), get_nullable($serializer_getInstance_1280()), IntSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_198()), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = 0; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_local8 = null; + var tmp13_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp13_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_1293(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_1302(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_1303(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_1290(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_1280(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp13_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_198(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + } else + while (tmp1_flag) { + tmp2_index = tmp13_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_1293(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_1302(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_1303(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_1290(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_1280(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp13_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_198(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp13_input.endStructure_1xqz0n_k$(tmp0_desc); + return KDetailListReply.new_com_bapis_bilibili_main_community_reply_v1_KDetailListReply_yfrp60_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, null); + } + serialize_tc17fh_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.cursor == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_1293(), value.cursor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.subjectControl == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_1302(), value.subjectControl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.root == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_1303(), value.root); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.activity == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_1290(), value.activity); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.likes == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, $serializer_getInstance_1280(), value.likes); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.mode === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 5, value.mode); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.modeText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.modeText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.paginationReply == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 7, $serializer_getInstance_198(), value.paginationReply); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.sessionId === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 8, value.sessionId); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_tc17fh_k$(encoder, value instanceof KDetailListReply ? value : THROW_CCE()); + } + } + class KDetailListReply { + constructor(cursor, subjectControl, root, activity, likes, mode, modeText, paginationReply, sessionId) { + Companion_instance_1291; + cursor = cursor === VOID ? null : cursor; + subjectControl = subjectControl === VOID ? null : subjectControl; + root = root === VOID ? null : root; + activity = activity === VOID ? null : activity; + likes = likes === VOID ? null : likes; + mode = mode === VOID ? 0 : mode; + modeText = modeText === VOID ? '' : modeText; + paginationReply = paginationReply === VOID ? null : paginationReply; + sessionId = sessionId === VOID ? '' : sessionId; + this.cursor = cursor; + this.subjectControl = subjectControl; + this.root = root; + this.activity = activity; + this.likes = likes; + this.mode = mode; + this.modeText = modeText; + this.paginationReply = paginationReply; + this.sessionId = sessionId; + } + get_cursor_c3jujj_k$() { + return this.cursor; + } + get_subjectControl_4r8okm_k$() { + return this.subjectControl; + } + get_root_wott0r_k$() { + return this.root; + } + get_activity_bu9714_k$() { + return this.activity; + } + get_likes_iuoj9v_k$() { + return this.likes; + } + get_mode_woqlt8_k$() { + return this.mode; + } + get_modeText_sz6zi1_k$() { + return this.modeText; + } + get_paginationReply_sznu61_k$() { + return this.paginationReply; + } + get_sessionId_ike088_k$() { + return this.sessionId; + } + modeEnum() { + return Companion_getInstance_1281().fromValue(this.mode); + } + component1_7eebsc_k$() { + return this.cursor; + } + component2_7eebsb_k$() { + return this.subjectControl; + } + component3_7eebsa_k$() { + return this.root; + } + component4_7eebs9_k$() { + return this.activity; + } + component5_7eebs8_k$() { + return this.likes; + } + component6_7eebs7_k$() { + return this.mode; + } + component7_7eebs6_k$() { + return this.modeText; + } + component8_7eebs5_k$() { + return this.paginationReply; + } + component9_7eebs4_k$() { + return this.sessionId; + } + copy_cokb2q_k$(cursor, subjectControl, root, activity, likes, mode, modeText, paginationReply, sessionId) { + return new KDetailListReply(cursor, subjectControl, root, activity, likes, mode, modeText, paginationReply, sessionId); + } + copy(cursor, subjectControl, root, activity, likes, mode, modeText, paginationReply, sessionId, $super) { + cursor = cursor === VOID ? this.cursor : cursor; + subjectControl = subjectControl === VOID ? this.subjectControl : subjectControl; + root = root === VOID ? this.root : root; + activity = activity === VOID ? this.activity : activity; + likes = likes === VOID ? this.likes : likes; + mode = mode === VOID ? this.mode : mode; + modeText = modeText === VOID ? this.modeText : modeText; + paginationReply = paginationReply === VOID ? this.paginationReply : paginationReply; + sessionId = sessionId === VOID ? this.sessionId : sessionId; + return this.copy_cokb2q_k$(cursor, subjectControl, root, activity, likes, mode, modeText, paginationReply, sessionId); + } + toString() { + return 'KDetailListReply(cursor=' + this.cursor + ', subjectControl=' + this.subjectControl + ', root=' + this.root + ', activity=' + this.activity + ', likes=' + this.likes + ', mode=' + this.mode + ', modeText=' + this.modeText + ', paginationReply=' + this.paginationReply + ', sessionId=' + this.sessionId + ')'; + } + hashCode() { + var result = this.cursor == null ? 0 : this.cursor.hashCode(); + result = imul(result, 31) + (this.subjectControl == null ? 0 : this.subjectControl.hashCode()) | 0; + result = imul(result, 31) + (this.root == null ? 0 : this.root.hashCode()) | 0; + result = imul(result, 31) + (this.activity == null ? 0 : this.activity.hashCode()) | 0; + result = imul(result, 31) + (this.likes == null ? 0 : this.likes.hashCode()) | 0; + result = imul(result, 31) + this.mode | 0; + result = imul(result, 31) + getStringHashCode(this.modeText) | 0; + result = imul(result, 31) + (this.paginationReply == null ? 0 : this.paginationReply.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.sessionId) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KDetailListReply)) + return false; + var tmp0_other_with_cast = other instanceof KDetailListReply ? other : THROW_CCE(); + if (!equals(this.cursor, tmp0_other_with_cast.cursor)) + return false; + if (!equals(this.subjectControl, tmp0_other_with_cast.subjectControl)) + return false; + if (!equals(this.root, tmp0_other_with_cast.root)) + return false; + if (!equals(this.activity, tmp0_other_with_cast.activity)) + return false; + if (!equals(this.likes, tmp0_other_with_cast.likes)) + return false; + if (!(this.mode === tmp0_other_with_cast.mode)) + return false; + if (!(this.modeText === tmp0_other_with_cast.modeText)) + return false; + if (!equals(this.paginationReply, tmp0_other_with_cast.paginationReply)) + return false; + if (!(this.sessionId === tmp0_other_with_cast.sessionId)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KDetailListReply_yfrp60_k$(seen1, cursor, subjectControl, root, activity, likes, mode, modeText, paginationReply, sessionId, serializationConstructorMarker) { + Companion_instance_1291; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1278().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.cursor = null; + else + $this.cursor = cursor; + if (0 === (seen1 & 2)) + $this.subjectControl = null; + else + $this.subjectControl = subjectControl; + if (0 === (seen1 & 4)) + $this.root = null; + else + $this.root = root; + if (0 === (seen1 & 8)) + $this.activity = null; + else + $this.activity = activity; + if (0 === (seen1 & 16)) + $this.likes = null; + else + $this.likes = likes; + if (0 === (seen1 & 32)) + $this.mode = 0; + else + $this.mode = mode; + if (0 === (seen1 & 64)) + $this.modeText = ''; + else + $this.modeText = modeText; + if (0 === (seen1 & 128)) + $this.paginationReply = null; + else + $this.paginationReply = paginationReply; + if (0 === (seen1 & 256)) + $this.sessionId = ''; + else + $this.sessionId = sessionId; + return $this; + } + } + class Companion_1292 { + constructor() { + this.targetPath = '/bilibili.main.community.reply.v1.LikeInfo.Item'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1279(); + } + } + class $serializer_1279 { + constructor() { + $serializer_instance_1279 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KLikeInfo.KItem', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('member', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_1347())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_1347(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_1347(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KItem_11.new_com_bapis_bilibili_main_community_reply_v1_KLikeInfo_KItem_dy3xcy_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_l0va07_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.member == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_1347(), value.member); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_l0va07_k$(encoder, value instanceof KItem_11 ? value : THROW_CCE()); + } + } + class KItem_11 { + constructor(member) { + Companion_instance_1292; + member = member === VOID ? null : member; + this.member = member; + } + get_member_gl3t7n_k$() { + return this.member; + } + component1_7eebsc_k$() { + return this.member; + } + copy_t1ei85_k$(member) { + return new KItem_11(member); + } + copy(member, $super) { + member = member === VOID ? this.member : member; + return this.copy_t1ei85_k$(member); + } + toString() { + return 'KItem(member=' + this.member + ')'; + } + hashCode() { + return this.member == null ? 0 : this.member.hashCode(); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KItem_11)) + return false; + var tmp0_other_with_cast = other instanceof KItem_11 ? other : THROW_CCE(); + if (!equals(this.member, tmp0_other_with_cast.member)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KLikeInfo_KItem_dy3xcy_k$(seen1, member, serializationConstructorMarker) { + Companion_instance_1292; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1279().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.member = null; + else + $this.member = member; + return $this; + } + } + class Companion_1293 { + constructor() { + Companion_instance_1293 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer($serializer_getInstance_1279()), null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.main.community.reply.v1.LikeInfo'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1280(); + } + } + class $serializer_1280 { + constructor() { + $serializer_instance_1280 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KLikeInfo', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('items', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_1293().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0], StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp7_cached = Companion_getInstance_1293().$childSerializers_1; + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp7_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp7_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KLikeInfo_0.new_com_bapis_bilibili_main_community_reply_v1_KLikeInfo_3ibn2n_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_rktl7t_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_1293().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.items, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.items); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.title); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_rktl7t_k$(encoder, value instanceof KLikeInfo_0 ? value : THROW_CCE()); + } + } + class KLikeInfo_0 { + constructor(items, title) { + Companion_getInstance_1293(); + items = items === VOID ? emptyList() : items; + title = title === VOID ? '' : title; + this.items = items; + this.title = title; + } + get_items_it823b_k$() { + return this.items; + } + get_title_iz32un_k$() { + return this.title; + } + component1_7eebsc_k$() { + return this.items; + } + component2_7eebsb_k$() { + return this.title; + } + copy_utd9dp_k$(items, title) { + return new KLikeInfo_0(items, title); + } + copy(items, title, $super) { + items = items === VOID ? this.items : items; + title = title === VOID ? this.title : title; + return this.copy_utd9dp_k$(items, title); + } + toString() { + return 'KLikeInfo(items=' + this.items + ', title=' + this.title + ')'; + } + hashCode() { + var result = hashCode(this.items); + result = imul(result, 31) + getStringHashCode(this.title) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KLikeInfo_0)) + return false; + var tmp0_other_with_cast = other instanceof KLikeInfo_0 ? other : THROW_CCE(); + if (!equals(this.items, tmp0_other_with_cast.items)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KLikeInfo_3ibn2n_k$(seen1, items, title, serializationConstructorMarker) { + Companion_getInstance_1293(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1280().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.items = emptyList(); + else + $this.items = items; + if (0 === (seen1 & 2)) + $this.title = ''; + else + $this.title = title; + return $this; + } + } + class Companion_1294 { + constructor() { + Companion_instance_1294 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, null, null, null, null, null, null, null, new ArrayListSerializer(LongSerializer_getInstance())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.main.community.reply.v1.MainListReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1281(); + } + } + class $serializer_1281 { + constructor() { + $serializer_instance_1281 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KMainListReq', this, 11); + tmp0_serialDesc.addElement_5pzumi_k$('oid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('cursor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('extra', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('adExtra', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('rpid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('seekRpid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('filterTagName', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('mode', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('pagination', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('clientRecallRpids', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_1294().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable($serializer_getInstance_1292()), StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), get_nullable($serializer_getInstance_197()), tmp0_cached[10]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = new Long(0, 0); + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = new Long(0, 0); + var tmp10_local6 = new Long(0, 0); + var tmp11_local7 = null; + var tmp12_local8 = 0; + var tmp13_local9 = null; + var tmp14_local10 = null; + var tmp15_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp16_cached = Companion_getInstance_1294().$childSerializers_1; + if (tmp15_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_1292(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 9, $serializer_getInstance_197(), tmp13_local9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp15_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 10, tmp16_cached[10], tmp14_local10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + } else + while (tmp1_flag) { + tmp2_index = tmp15_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_1292(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 9, $serializer_getInstance_197(), tmp13_local9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp15_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 10, tmp16_cached[10], tmp14_local10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp15_input.endStructure_1xqz0n_k$(tmp0_desc); + return KMainListReq.new_com_bapis_bilibili_main_community_reply_v1_KMainListReq_z7rx27_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, null); + } + serialize_r45t8x_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_1294().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.oid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.oid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.type.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.type); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.cursor == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_1292(), value.cursor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.extra === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.extra); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.adExtra === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.adExtra); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !value.rpid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 5, value.rpid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !value.seekRpid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 6, value.seekRpid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.filterTagName === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.filterTagName); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.mode === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 8, value.mode); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.pagination == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 9, $serializer_getInstance_197(), value.pagination); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !equals(value.clientRecallRpids, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 10, tmp2_cached[10], value.clientRecallRpids); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_r45t8x_k$(encoder, value instanceof KMainListReq ? value : THROW_CCE()); + } + } + class KMainListReq { + constructor(oid, type, cursor, extra, adExtra, rpid, seekRpid, filterTagName, mode, pagination, clientRecallRpids) { + Companion_getInstance_1294(); + oid = oid === VOID ? new Long(0, 0) : oid; + type = type === VOID ? new Long(0, 0) : type; + cursor = cursor === VOID ? null : cursor; + extra = extra === VOID ? '' : extra; + adExtra = adExtra === VOID ? '' : adExtra; + rpid = rpid === VOID ? new Long(0, 0) : rpid; + seekRpid = seekRpid === VOID ? new Long(0, 0) : seekRpid; + filterTagName = filterTagName === VOID ? '' : filterTagName; + mode = mode === VOID ? 0 : mode; + pagination = pagination === VOID ? null : pagination; + clientRecallRpids = clientRecallRpids === VOID ? emptyList() : clientRecallRpids; + this.oid = oid; + this.type = type; + this.cursor = cursor; + this.extra = extra; + this.adExtra = adExtra; + this.rpid = rpid; + this.seekRpid = seekRpid; + this.filterTagName = filterTagName; + this.mode = mode; + this.pagination = pagination; + this.clientRecallRpids = clientRecallRpids; + } + get_oid_18iz6n_k$() { + return this.oid; + } + get_type_wovaf7_k$() { + return this.type; + } + get_cursor_c3jujj_k$() { + return this.cursor; + } + get_extra_ir3qw7_k$() { + return this.extra; + } + get_adExtra_i6ok70_k$() { + return this.adExtra; + } + get_rpid_wottlu_k$() { + return this.rpid; + } + get_seekRpid_fbtqkm_k$() { + return this.seekRpid; + } + get_filterTagName_wmpnk4_k$() { + return this.filterTagName; + } + get_mode_woqlt8_k$() { + return this.mode; + } + get_pagination_1aczdv_k$() { + return this.pagination; + } + get_clientRecallRpids_kf2bm3_k$() { + return this.clientRecallRpids; + } + modeEnum() { + return Companion_getInstance_1281().fromValue(this.mode); + } + component1_7eebsc_k$() { + return this.oid; + } + component2_7eebsb_k$() { + return this.type; + } + component3_7eebsa_k$() { + return this.cursor; + } + component4_7eebs9_k$() { + return this.extra; + } + component5_7eebs8_k$() { + return this.adExtra; + } + component6_7eebs7_k$() { + return this.rpid; + } + component7_7eebs6_k$() { + return this.seekRpid; + } + component8_7eebs5_k$() { + return this.filterTagName; + } + component9_7eebs4_k$() { + return this.mode; + } + component10_gazzfo_k$() { + return this.pagination; + } + component11_gazzfn_k$() { + return this.clientRecallRpids; + } + copy_tnkmft_k$(oid, type, cursor, extra, adExtra, rpid, seekRpid, filterTagName, mode, pagination, clientRecallRpids) { + return new KMainListReq(oid, type, cursor, extra, adExtra, rpid, seekRpid, filterTagName, mode, pagination, clientRecallRpids); + } + copy(oid, type, cursor, extra, adExtra, rpid, seekRpid, filterTagName, mode, pagination, clientRecallRpids, $super) { + oid = oid === VOID ? this.oid : oid; + type = type === VOID ? this.type : type; + cursor = cursor === VOID ? this.cursor : cursor; + extra = extra === VOID ? this.extra : extra; + adExtra = adExtra === VOID ? this.adExtra : adExtra; + rpid = rpid === VOID ? this.rpid : rpid; + seekRpid = seekRpid === VOID ? this.seekRpid : seekRpid; + filterTagName = filterTagName === VOID ? this.filterTagName : filterTagName; + mode = mode === VOID ? this.mode : mode; + pagination = pagination === VOID ? this.pagination : pagination; + clientRecallRpids = clientRecallRpids === VOID ? this.clientRecallRpids : clientRecallRpids; + return this.copy_tnkmft_k$(oid, type, cursor, extra, adExtra, rpid, seekRpid, filterTagName, mode, pagination, clientRecallRpids); + } + toString() { + return 'KMainListReq(oid=' + this.oid.toString() + ', type=' + this.type.toString() + ', cursor=' + this.cursor + ', extra=' + this.extra + ', adExtra=' + this.adExtra + ', rpid=' + this.rpid.toString() + ', seekRpid=' + this.seekRpid.toString() + ', filterTagName=' + this.filterTagName + ', mode=' + this.mode + ', pagination=' + this.pagination + ', clientRecallRpids=' + this.clientRecallRpids + ')'; + } + hashCode() { + var result = this.oid.hashCode(); + result = imul(result, 31) + this.type.hashCode() | 0; + result = imul(result, 31) + (this.cursor == null ? 0 : this.cursor.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.extra) | 0; + result = imul(result, 31) + getStringHashCode(this.adExtra) | 0; + result = imul(result, 31) + this.rpid.hashCode() | 0; + result = imul(result, 31) + this.seekRpid.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.filterTagName) | 0; + result = imul(result, 31) + this.mode | 0; + result = imul(result, 31) + (this.pagination == null ? 0 : this.pagination.hashCode()) | 0; + result = imul(result, 31) + hashCode(this.clientRecallRpids) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KMainListReq)) + return false; + var tmp0_other_with_cast = other instanceof KMainListReq ? other : THROW_CCE(); + if (!this.oid.equals(tmp0_other_with_cast.oid)) + return false; + if (!this.type.equals(tmp0_other_with_cast.type)) + return false; + if (!equals(this.cursor, tmp0_other_with_cast.cursor)) + return false; + if (!(this.extra === tmp0_other_with_cast.extra)) + return false; + if (!(this.adExtra === tmp0_other_with_cast.adExtra)) + return false; + if (!this.rpid.equals(tmp0_other_with_cast.rpid)) + return false; + if (!this.seekRpid.equals(tmp0_other_with_cast.seekRpid)) + return false; + if (!(this.filterTagName === tmp0_other_with_cast.filterTagName)) + return false; + if (!(this.mode === tmp0_other_with_cast.mode)) + return false; + if (!equals(this.pagination, tmp0_other_with_cast.pagination)) + return false; + if (!equals(this.clientRecallRpids, tmp0_other_with_cast.clientRecallRpids)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KMainListReq_z7rx27_k$(seen1, oid, type, cursor, extra, adExtra, rpid, seekRpid, filterTagName, mode, pagination, clientRecallRpids, serializationConstructorMarker) { + Companion_getInstance_1294(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1281().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.oid = new Long(0, 0); + else + $this.oid = oid; + if (0 === (seen1 & 2)) + $this.type = new Long(0, 0); + else + $this.type = type; + if (0 === (seen1 & 4)) + $this.cursor = null; + else + $this.cursor = cursor; + if (0 === (seen1 & 8)) + $this.extra = ''; + else + $this.extra = extra; + if (0 === (seen1 & 16)) + $this.adExtra = ''; + else + $this.adExtra = adExtra; + if (0 === (seen1 & 32)) + $this.rpid = new Long(0, 0); + else + $this.rpid = rpid; + if (0 === (seen1 & 64)) + $this.seekRpid = new Long(0, 0); + else + $this.seekRpid = seekRpid; + if (0 === (seen1 & 128)) + $this.filterTagName = ''; + else + $this.filterTagName = filterTagName; + if (0 === (seen1 & 256)) + $this.mode = 0; + else + $this.mode = mode; + if (0 === (seen1 & 512)) + $this.pagination = null; + else + $this.pagination = pagination; + if (0 === (seen1 & 1024)) + $this.clientRecallRpids = emptyList(); + else + $this.clientRecallRpids = clientRecallRpids; + return $this; + } + } + class Companion_1295 { + constructor() { + this.targetPath = '/bilibili.main.community.reply.v1.PreviewListReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1282(); + } + } + class $serializer_1282 { + constructor() { + $serializer_instance_1282 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KPreviewListReq', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('oid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('cursor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable($serializer_getInstance_1292())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = new Long(0, 0); + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_1292(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_1292(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KPreviewListReq.new_com_bapis_bilibili_main_community_reply_v1_KPreviewListReq_hw38iw_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_1vde0m_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.oid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.oid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.type.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.type); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.cursor == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_1292(), value.cursor); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_1vde0m_k$(encoder, value instanceof KPreviewListReq ? value : THROW_CCE()); + } + } + class KPreviewListReq { + constructor(oid, type, cursor) { + Companion_instance_1295; + oid = oid === VOID ? new Long(0, 0) : oid; + type = type === VOID ? new Long(0, 0) : type; + cursor = cursor === VOID ? null : cursor; + this.oid = oid; + this.type = type; + this.cursor = cursor; + } + get_oid_18iz6n_k$() { + return this.oid; + } + get_type_wovaf7_k$() { + return this.type; + } + get_cursor_c3jujj_k$() { + return this.cursor; + } + component1_7eebsc_k$() { + return this.oid; + } + component2_7eebsb_k$() { + return this.type; + } + component3_7eebsa_k$() { + return this.cursor; + } + copy_29qp2j_k$(oid, type, cursor) { + return new KPreviewListReq(oid, type, cursor); + } + copy(oid, type, cursor, $super) { + oid = oid === VOID ? this.oid : oid; + type = type === VOID ? this.type : type; + cursor = cursor === VOID ? this.cursor : cursor; + return this.copy_29qp2j_k$(oid, type, cursor); + } + toString() { + return 'KPreviewListReq(oid=' + this.oid.toString() + ', type=' + this.type.toString() + ', cursor=' + this.cursor + ')'; + } + hashCode() { + var result = this.oid.hashCode(); + result = imul(result, 31) + this.type.hashCode() | 0; + result = imul(result, 31) + (this.cursor == null ? 0 : this.cursor.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KPreviewListReq)) + return false; + var tmp0_other_with_cast = other instanceof KPreviewListReq ? other : THROW_CCE(); + if (!this.oid.equals(tmp0_other_with_cast.oid)) + return false; + if (!this.type.equals(tmp0_other_with_cast.type)) + return false; + if (!equals(this.cursor, tmp0_other_with_cast.cursor)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KPreviewListReq_hw38iw_k$(seen1, oid, type, cursor, serializationConstructorMarker) { + Companion_instance_1295; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1282().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.oid = new Long(0, 0); + else + $this.oid = oid; + if (0 === (seen1 & 2)) + $this.type = new Long(0, 0); + else + $this.type = type; + if (0 === (seen1 & 4)) + $this.cursor = null; + else + $this.cursor = cursor; + return $this; + } + } + class Companion_1296 { + constructor() { + this.targetPath = '/bilibili.main.community.reply.v1.ReplyExtra'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1283(); + } + } + class $serializer_1283 { + constructor() { + $serializer_instance_1283 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KReplyExtra', this, 9); + tmp0_serialDesc.addElement_5pzumi_k$('seasonId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('seasonType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('epId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('isStory', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('spmid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('fromSpmid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('disableUnderline', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('disableWeSearch', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('disableFilterTag', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), BooleanSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = new Long(0, 0); + var tmp6_local2 = new Long(0, 0); + var tmp7_local3 = false; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = false; + var tmp11_local7 = false; + var tmp12_local8 = false; + var tmp13_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp13_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp13_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp13_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp13_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp13_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + } else + while (tmp1_flag) { + tmp2_index = tmp13_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp13_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp13_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp13_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp13_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp13_input.endStructure_1xqz0n_k$(tmp0_desc); + return KReplyExtra.new_com_bapis_bilibili_main_community_reply_v1_KReplyExtra_ajg8t8_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, null); + } + serialize_m05ijc_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.seasonId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.seasonId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.seasonType.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.seasonType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.epId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.epId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.isStory === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 3, value.isStory); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.spmid === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.spmid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.fromSpmid === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.fromSpmid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.disableUnderline === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 6, value.disableUnderline); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.disableWeSearch === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 7, value.disableWeSearch); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.disableFilterTag === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 8, value.disableFilterTag); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_m05ijc_k$(encoder, value instanceof KReplyExtra ? value : THROW_CCE()); + } + } + class KReplyExtra { + constructor(seasonId, seasonType, epId, isStory, spmid, fromSpmid, disableUnderline, disableWeSearch, disableFilterTag) { + Companion_instance_1296; + seasonId = seasonId === VOID ? new Long(0, 0) : seasonId; + seasonType = seasonType === VOID ? new Long(0, 0) : seasonType; + epId = epId === VOID ? new Long(0, 0) : epId; + isStory = isStory === VOID ? false : isStory; + spmid = spmid === VOID ? '' : spmid; + fromSpmid = fromSpmid === VOID ? '' : fromSpmid; + disableUnderline = disableUnderline === VOID ? false : disableUnderline; + disableWeSearch = disableWeSearch === VOID ? false : disableWeSearch; + disableFilterTag = disableFilterTag === VOID ? false : disableFilterTag; + this.seasonId = seasonId; + this.seasonType = seasonType; + this.epId = epId; + this.isStory = isStory; + this.spmid = spmid; + this.fromSpmid = fromSpmid; + this.disableUnderline = disableUnderline; + this.disableWeSearch = disableWeSearch; + this.disableFilterTag = disableFilterTag; + } + get_seasonId_h33f15_k$() { + return this.seasonId; + } + get_seasonType_bh01x6_k$() { + return this.seasonType; + } + get_epId_woli0f_k$() { + return this.epId; + } + get_isStory_ziflry_k$() { + return this.isStory; + } + get_spmid_iynlwi_k$() { + return this.spmid; + } + get_fromSpmid_9nw788_k$() { + return this.fromSpmid; + } + get_disableUnderline_ykd9ir_k$() { + return this.disableUnderline; + } + get_disableWeSearch_o1uoqz_k$() { + return this.disableWeSearch; + } + get_disableFilterTag_w5oyt9_k$() { + return this.disableFilterTag; + } + component1_7eebsc_k$() { + return this.seasonId; + } + component2_7eebsb_k$() { + return this.seasonType; + } + component3_7eebsa_k$() { + return this.epId; + } + component4_7eebs9_k$() { + return this.isStory; + } + component5_7eebs8_k$() { + return this.spmid; + } + component6_7eebs7_k$() { + return this.fromSpmid; + } + component7_7eebs6_k$() { + return this.disableUnderline; + } + component8_7eebs5_k$() { + return this.disableWeSearch; + } + component9_7eebs4_k$() { + return this.disableFilterTag; + } + copy_m98ban_k$(seasonId, seasonType, epId, isStory, spmid, fromSpmid, disableUnderline, disableWeSearch, disableFilterTag) { + return new KReplyExtra(seasonId, seasonType, epId, isStory, spmid, fromSpmid, disableUnderline, disableWeSearch, disableFilterTag); + } + copy(seasonId, seasonType, epId, isStory, spmid, fromSpmid, disableUnderline, disableWeSearch, disableFilterTag, $super) { + seasonId = seasonId === VOID ? this.seasonId : seasonId; + seasonType = seasonType === VOID ? this.seasonType : seasonType; + epId = epId === VOID ? this.epId : epId; + isStory = isStory === VOID ? this.isStory : isStory; + spmid = spmid === VOID ? this.spmid : spmid; + fromSpmid = fromSpmid === VOID ? this.fromSpmid : fromSpmid; + disableUnderline = disableUnderline === VOID ? this.disableUnderline : disableUnderline; + disableWeSearch = disableWeSearch === VOID ? this.disableWeSearch : disableWeSearch; + disableFilterTag = disableFilterTag === VOID ? this.disableFilterTag : disableFilterTag; + return this.copy_m98ban_k$(seasonId, seasonType, epId, isStory, spmid, fromSpmid, disableUnderline, disableWeSearch, disableFilterTag); + } + toString() { + return 'KReplyExtra(seasonId=' + this.seasonId.toString() + ', seasonType=' + this.seasonType.toString() + ', epId=' + this.epId.toString() + ', isStory=' + this.isStory + ', spmid=' + this.spmid + ', fromSpmid=' + this.fromSpmid + ', disableUnderline=' + this.disableUnderline + ', disableWeSearch=' + this.disableWeSearch + ', disableFilterTag=' + this.disableFilterTag + ')'; + } + hashCode() { + var result = this.seasonId.hashCode(); + result = imul(result, 31) + this.seasonType.hashCode() | 0; + result = imul(result, 31) + this.epId.hashCode() | 0; + result = imul(result, 31) + getBooleanHashCode(this.isStory) | 0; + result = imul(result, 31) + getStringHashCode(this.spmid) | 0; + result = imul(result, 31) + getStringHashCode(this.fromSpmid) | 0; + result = imul(result, 31) + getBooleanHashCode(this.disableUnderline) | 0; + result = imul(result, 31) + getBooleanHashCode(this.disableWeSearch) | 0; + result = imul(result, 31) + getBooleanHashCode(this.disableFilterTag) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KReplyExtra)) + return false; + var tmp0_other_with_cast = other instanceof KReplyExtra ? other : THROW_CCE(); + if (!this.seasonId.equals(tmp0_other_with_cast.seasonId)) + return false; + if (!this.seasonType.equals(tmp0_other_with_cast.seasonType)) + return false; + if (!this.epId.equals(tmp0_other_with_cast.epId)) + return false; + if (!(this.isStory === tmp0_other_with_cast.isStory)) + return false; + if (!(this.spmid === tmp0_other_with_cast.spmid)) + return false; + if (!(this.fromSpmid === tmp0_other_with_cast.fromSpmid)) + return false; + if (!(this.disableUnderline === tmp0_other_with_cast.disableUnderline)) + return false; + if (!(this.disableWeSearch === tmp0_other_with_cast.disableWeSearch)) + return false; + if (!(this.disableFilterTag === tmp0_other_with_cast.disableFilterTag)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KReplyExtra_ajg8t8_k$(seen1, seasonId, seasonType, epId, isStory, spmid, fromSpmid, disableUnderline, disableWeSearch, disableFilterTag, serializationConstructorMarker) { + Companion_instance_1296; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1283().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.seasonId = new Long(0, 0); + else + $this.seasonId = seasonId; + if (0 === (seen1 & 2)) + $this.seasonType = new Long(0, 0); + else + $this.seasonType = seasonType; + if (0 === (seen1 & 4)) + $this.epId = new Long(0, 0); + else + $this.epId = epId; + if (0 === (seen1 & 8)) + $this.isStory = false; + else + $this.isStory = isStory; + if (0 === (seen1 & 16)) + $this.spmid = ''; + else + $this.spmid = spmid; + if (0 === (seen1 & 32)) + $this.fromSpmid = ''; + else + $this.fromSpmid = fromSpmid; + if (0 === (seen1 & 64)) + $this.disableUnderline = false; + else + $this.disableUnderline = disableUnderline; + if (0 === (seen1 & 128)) + $this.disableWeSearch = false; + else + $this.disableWeSearch = disableWeSearch; + if (0 === (seen1 & 256)) + $this.disableFilterTag = false; + else + $this.disableFilterTag = disableFilterTag; + return $this; + } + } + class Companion_1297 { + constructor() { + Companion_instance_1297 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, new ArrayListSerializer($serializer_getInstance_1303()), null, null, null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.main.community.reply.v1.PreviewListReply'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1284(); + } + } + class $serializer_1284 { + constructor() { + $serializer_instance_1284 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KPreviewListReply', this, 6); + tmp0_serialDesc.addElement_5pzumi_k$('cursor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('replies', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('subjectControl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('upTop', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('adminTop', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('voteTop', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_1297().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_1293()), tmp0_cached[1], get_nullable($serializer_getInstance_1302()), get_nullable($serializer_getInstance_1303()), get_nullable($serializer_getInstance_1303()), get_nullable($serializer_getInstance_1303())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp11_cached = Companion_getInstance_1297().$childSerializers_1; + if (tmp10_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_1293(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp10_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp11_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_1302(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_1303(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_1303(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_1303(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + } else + while (tmp1_flag) { + tmp2_index = tmp10_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_1293(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp10_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp11_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_1302(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_1303(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_1303(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_1303(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp10_input.endStructure_1xqz0n_k$(tmp0_desc); + return KPreviewListReply.new_com_bapis_bilibili_main_community_reply_v1_KPreviewListReply_l3ka9h_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); + } + serialize_6n1yae_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_1297().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.cursor == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_1293(), value.cursor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !equals(value.replies, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 1, tmp2_cached[1], value.replies); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.subjectControl == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_1302(), value.subjectControl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.upTop == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_1303(), value.upTop); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.adminTop == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, $serializer_getInstance_1303(), value.adminTop); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.voteTop == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 5, $serializer_getInstance_1303(), value.voteTop); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_6n1yae_k$(encoder, value instanceof KPreviewListReply ? value : THROW_CCE()); + } + } + class KPreviewListReply { + constructor(cursor, replies, subjectControl, upTop, adminTop, voteTop) { + Companion_getInstance_1297(); + cursor = cursor === VOID ? null : cursor; + replies = replies === VOID ? emptyList() : replies; + subjectControl = subjectControl === VOID ? null : subjectControl; + upTop = upTop === VOID ? null : upTop; + adminTop = adminTop === VOID ? null : adminTop; + voteTop = voteTop === VOID ? null : voteTop; + this.cursor = cursor; + this.replies = replies; + this.subjectControl = subjectControl; + this.upTop = upTop; + this.adminTop = adminTop; + this.voteTop = voteTop; + } + get_cursor_c3jujj_k$() { + return this.cursor; + } + get_replies_jd6za7_k$() { + return this.replies; + } + get_subjectControl_4r8okm_k$() { + return this.subjectControl; + } + get_upTop_izqopd_k$() { + return this.upTop; + } + get_adminTop_n76kwf_k$() { + return this.adminTop; + } + get_voteTop_bu6k9u_k$() { + return this.voteTop; + } + component1_7eebsc_k$() { + return this.cursor; + } + component2_7eebsb_k$() { + return this.replies; + } + component3_7eebsa_k$() { + return this.subjectControl; + } + component4_7eebs9_k$() { + return this.upTop; + } + component5_7eebs8_k$() { + return this.adminTop; + } + component6_7eebs7_k$() { + return this.voteTop; + } + copy_o9mcxx_k$(cursor, replies, subjectControl, upTop, adminTop, voteTop) { + return new KPreviewListReply(cursor, replies, subjectControl, upTop, adminTop, voteTop); + } + copy(cursor, replies, subjectControl, upTop, adminTop, voteTop, $super) { + cursor = cursor === VOID ? this.cursor : cursor; + replies = replies === VOID ? this.replies : replies; + subjectControl = subjectControl === VOID ? this.subjectControl : subjectControl; + upTop = upTop === VOID ? this.upTop : upTop; + adminTop = adminTop === VOID ? this.adminTop : adminTop; + voteTop = voteTop === VOID ? this.voteTop : voteTop; + return this.copy_o9mcxx_k$(cursor, replies, subjectControl, upTop, adminTop, voteTop); + } + toString() { + return 'KPreviewListReply(cursor=' + this.cursor + ', replies=' + this.replies + ', subjectControl=' + this.subjectControl + ', upTop=' + this.upTop + ', adminTop=' + this.adminTop + ', voteTop=' + this.voteTop + ')'; + } + hashCode() { + var result = this.cursor == null ? 0 : this.cursor.hashCode(); + result = imul(result, 31) + hashCode(this.replies) | 0; + result = imul(result, 31) + (this.subjectControl == null ? 0 : this.subjectControl.hashCode()) | 0; + result = imul(result, 31) + (this.upTop == null ? 0 : this.upTop.hashCode()) | 0; + result = imul(result, 31) + (this.adminTop == null ? 0 : this.adminTop.hashCode()) | 0; + result = imul(result, 31) + (this.voteTop == null ? 0 : this.voteTop.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KPreviewListReply)) + return false; + var tmp0_other_with_cast = other instanceof KPreviewListReply ? other : THROW_CCE(); + if (!equals(this.cursor, tmp0_other_with_cast.cursor)) + return false; + if (!equals(this.replies, tmp0_other_with_cast.replies)) + return false; + if (!equals(this.subjectControl, tmp0_other_with_cast.subjectControl)) + return false; + if (!equals(this.upTop, tmp0_other_with_cast.upTop)) + return false; + if (!equals(this.adminTop, tmp0_other_with_cast.adminTop)) + return false; + if (!equals(this.voteTop, tmp0_other_with_cast.voteTop)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KPreviewListReply_l3ka9h_k$(seen1, cursor, replies, subjectControl, upTop, adminTop, voteTop, serializationConstructorMarker) { + Companion_getInstance_1297(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1284().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.cursor = null; + else + $this.cursor = cursor; + if (0 === (seen1 & 2)) + $this.replies = emptyList(); + else + $this.replies = replies; + if (0 === (seen1 & 4)) + $this.subjectControl = null; + else + $this.subjectControl = subjectControl; + if (0 === (seen1 & 8)) + $this.upTop = null; + else + $this.upTop = upTop; + if (0 === (seen1 & 16)) + $this.adminTop = null; + else + $this.adminTop = adminTop; + if (0 === (seen1 & 32)) + $this.voteTop = null; + else + $this.voteTop = voteTop; + return $this; + } + } + class Companion_1298 { + constructor() { + this.targetPath = '/bilibili.main.community.reply.v1.MainListReply.CallbacksEntry'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1285(); + } + } + class $serializer_1285 { + constructor() { + $serializer_instance_1285 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KMainListReply.KCallbacksEntry', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('key', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('value', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = 0; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KCallbacksEntry.new_com_bapis_bilibili_main_community_reply_v1_KMainListReply_KCallbacksEntry_z7fh3g_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_azp7ks_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.key === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.key); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.value === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.value); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_azp7ks_k$(encoder, value instanceof KCallbacksEntry ? value : THROW_CCE()); + } + } + class KCallbacksEntry { + constructor(key, value) { + Companion_instance_1298; + key = key === VOID ? '' : key; + value = value === VOID ? 0 : value; + this.key = key; + this.value = value; + } + get_key_18j28a_k$() { + return this.key; + } + get_value_j01efc_k$() { + return this.value; + } + valueEnum() { + return Companion_getInstance_1285().fromValue(this.value); + } + component1_7eebsc_k$() { + return this.key; + } + component2_7eebsb_k$() { + return this.value; + } + copy_1yzwer_k$(key, value) { + return new KCallbacksEntry(key, value); + } + copy(key, value, $super) { + key = key === VOID ? this.key : key; + value = value === VOID ? this.value : value; + return this.copy_1yzwer_k$(key, value); + } + toString() { + return 'KCallbacksEntry(key=' + this.key + ', value=' + this.value + ')'; + } + hashCode() { + var result = getStringHashCode(this.key); + result = imul(result, 31) + this.value | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KCallbacksEntry)) + return false; + var tmp0_other_with_cast = other instanceof KCallbacksEntry ? other : THROW_CCE(); + if (!(this.key === tmp0_other_with_cast.key)) + return false; + if (!(this.value === tmp0_other_with_cast.value)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KMainListReply_KCallbacksEntry_z7fh3g_k$(seen1, key, value, serializationConstructorMarker) { + Companion_instance_1298; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1285().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.key = ''; + else + $this.key = key; + if (0 === (seen1 & 2)) + $this.value = 0; + else + $this.value = value; + return $this; + } + } + class Companion_1299 { + constructor() { + Companion_instance_1299 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, new ArrayListSerializer($serializer_getInstance_1303()), null, null, null, null, null, null, null, null, null, null, null, new ArrayListSerializer($serializer_getInstance_1303()), null, new LinkedHashMapSerializer(StringSerializer_getInstance(), IntSerializer_getInstance()), null, null, null, null, null, null, null, null, null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.main.community.reply.v1.MainListReply'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1286(); + } + } + class $serializer_1286 { + constructor() { + $serializer_instance_1286 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KMainListReply', this, 26); + tmp0_serialDesc.addElement_5pzumi_k$('cursor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('replies', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('subjectControl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('upTop', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('adminTop', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('voteTop', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('notice', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('lottery', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('activity', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('upSelection', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('cm', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('effects', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + tmp0_serialDesc.addElement_5pzumi_k$('operation', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(13)); + tmp0_serialDesc.addElement_5pzumi_k$('topReplies', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(14)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('qoe', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(15)); + tmp0_serialDesc.addElement_5pzumi_k$('callbacks', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(16)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('operationV2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(17)); + tmp0_serialDesc.addElement_5pzumi_k$('mode', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(18)); + tmp0_serialDesc.addElement_5pzumi_k$('modeText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(19)); + tmp0_serialDesc.addElement_5pzumi_k$('paginationReply', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(20)); + tmp0_serialDesc.addElement_5pzumi_k$('sessionId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(21)); + tmp0_serialDesc.addElement_5pzumi_k$('reportParams', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(22)); + tmp0_serialDesc.addElement_5pzumi_k$('voteCard', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(23)); + tmp0_serialDesc.addElement_5pzumi_k$('esportsGradeCard', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(24)); + tmp0_serialDesc.addElement_5pzumi_k$('contextFeature', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(25)); + tmp0_serialDesc.addElement_5pzumi_k$('paginationEndText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(26)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_1299().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_1293()), tmp0_cached[1], get_nullable($serializer_getInstance_1302()), get_nullable($serializer_getInstance_1303()), get_nullable($serializer_getInstance_1303()), get_nullable($serializer_getInstance_1303()), get_nullable($serializer_getInstance_1289()), get_nullable($serializer_getInstance_1291()), get_nullable($serializer_getInstance_1290()), get_nullable($serializer_getInstance_1288()), get_nullable($serializer_getInstance_1274()), get_nullable($serializer_getInstance_1287()), get_nullable($serializer_getInstance_1363()), tmp0_cached[13], get_nullable($serializer_getInstance_1379()), tmp0_cached[15], get_nullable($serializer_getInstance_1367()), IntSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_198()), StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_1369()), get_nullable($serializer_getInstance_1370()), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_local8 = null; + var tmp13_local9 = null; + var tmp14_local10 = null; + var tmp15_local11 = null; + var tmp16_local12 = null; + var tmp17_local13 = null; + var tmp18_local14 = null; + var tmp19_local15 = null; + var tmp20_local16 = null; + var tmp21_local17 = 0; + var tmp22_local18 = null; + var tmp23_local19 = null; + var tmp24_local20 = null; + var tmp25_local21 = null; + var tmp26_local22 = null; + var tmp27_local23 = null; + var tmp28_local24 = null; + var tmp29_local25 = null; + var tmp30_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp31_cached = Companion_getInstance_1299().$childSerializers_1; + if (tmp30_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp30_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_1293(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp30_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp31_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp30_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_1302(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp30_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_1303(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp30_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_1303(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp30_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_1303(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp30_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_1289(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp30_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_1291(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp30_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_1290(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp30_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 9, $serializer_getInstance_1288(), tmp13_local9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp30_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 10, $serializer_getInstance_1274(), tmp14_local10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp30_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 11, $serializer_getInstance_1287(), tmp15_local11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + tmp16_local12 = tmp30_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 12, $serializer_getInstance_1363(), tmp16_local12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + tmp17_local13 = tmp30_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 13, tmp31_cached[13], tmp17_local13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + tmp18_local14 = tmp30_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 14, $serializer_getInstance_1379(), tmp18_local14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + tmp19_local15 = tmp30_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 15, tmp31_cached[15], tmp19_local15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + tmp20_local16 = tmp30_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 16, $serializer_getInstance_1367(), tmp20_local16); + tmp3_bitMask0 = tmp3_bitMask0 | 65536; + tmp21_local17 = tmp30_input.decodeIntElement_941u6a_k$(tmp0_desc, 17); + tmp3_bitMask0 = tmp3_bitMask0 | 131072; + tmp22_local18 = tmp30_input.decodeStringElement_3oenpg_k$(tmp0_desc, 18); + tmp3_bitMask0 = tmp3_bitMask0 | 262144; + tmp23_local19 = tmp30_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 19, $serializer_getInstance_198(), tmp23_local19); + tmp3_bitMask0 = tmp3_bitMask0 | 524288; + tmp24_local20 = tmp30_input.decodeStringElement_3oenpg_k$(tmp0_desc, 20); + tmp3_bitMask0 = tmp3_bitMask0 | 1048576; + tmp25_local21 = tmp30_input.decodeStringElement_3oenpg_k$(tmp0_desc, 21); + tmp3_bitMask0 = tmp3_bitMask0 | 2097152; + tmp26_local22 = tmp30_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 22, $serializer_getInstance_1369(), tmp26_local22); + tmp3_bitMask0 = tmp3_bitMask0 | 4194304; + tmp27_local23 = tmp30_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 23, $serializer_getInstance_1370(), tmp27_local23); + tmp3_bitMask0 = tmp3_bitMask0 | 8388608; + tmp28_local24 = tmp30_input.decodeStringElement_3oenpg_k$(tmp0_desc, 24); + tmp3_bitMask0 = tmp3_bitMask0 | 16777216; + tmp29_local25 = tmp30_input.decodeStringElement_3oenpg_k$(tmp0_desc, 25); + tmp3_bitMask0 = tmp3_bitMask0 | 33554432; + } else + while (tmp1_flag) { + tmp2_index = tmp30_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp30_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_1293(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp30_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp31_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp30_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_1302(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp30_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_1303(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp30_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_1303(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp30_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_1303(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp30_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_1289(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp30_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_1291(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp30_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_1290(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp30_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 9, $serializer_getInstance_1288(), tmp13_local9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp30_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 10, $serializer_getInstance_1274(), tmp14_local10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp30_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 11, $serializer_getInstance_1287(), tmp15_local11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + case 12: + tmp16_local12 = tmp30_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 12, $serializer_getInstance_1363(), tmp16_local12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + break; + case 13: + tmp17_local13 = tmp30_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 13, tmp31_cached[13], tmp17_local13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + break; + case 14: + tmp18_local14 = tmp30_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 14, $serializer_getInstance_1379(), tmp18_local14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + break; + case 15: + tmp19_local15 = tmp30_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 15, tmp31_cached[15], tmp19_local15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + break; + case 16: + tmp20_local16 = tmp30_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 16, $serializer_getInstance_1367(), tmp20_local16); + tmp3_bitMask0 = tmp3_bitMask0 | 65536; + break; + case 17: + tmp21_local17 = tmp30_input.decodeIntElement_941u6a_k$(tmp0_desc, 17); + tmp3_bitMask0 = tmp3_bitMask0 | 131072; + break; + case 18: + tmp22_local18 = tmp30_input.decodeStringElement_3oenpg_k$(tmp0_desc, 18); + tmp3_bitMask0 = tmp3_bitMask0 | 262144; + break; + case 19: + tmp23_local19 = tmp30_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 19, $serializer_getInstance_198(), tmp23_local19); + tmp3_bitMask0 = tmp3_bitMask0 | 524288; + break; + case 20: + tmp24_local20 = tmp30_input.decodeStringElement_3oenpg_k$(tmp0_desc, 20); + tmp3_bitMask0 = tmp3_bitMask0 | 1048576; + break; + case 21: + tmp25_local21 = tmp30_input.decodeStringElement_3oenpg_k$(tmp0_desc, 21); + tmp3_bitMask0 = tmp3_bitMask0 | 2097152; + break; + case 22: + tmp26_local22 = tmp30_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 22, $serializer_getInstance_1369(), tmp26_local22); + tmp3_bitMask0 = tmp3_bitMask0 | 4194304; + break; + case 23: + tmp27_local23 = tmp30_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 23, $serializer_getInstance_1370(), tmp27_local23); + tmp3_bitMask0 = tmp3_bitMask0 | 8388608; + break; + case 24: + tmp28_local24 = tmp30_input.decodeStringElement_3oenpg_k$(tmp0_desc, 24); + tmp3_bitMask0 = tmp3_bitMask0 | 16777216; + break; + case 25: + tmp29_local25 = tmp30_input.decodeStringElement_3oenpg_k$(tmp0_desc, 25); + tmp3_bitMask0 = tmp3_bitMask0 | 33554432; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp30_input.endStructure_1xqz0n_k$(tmp0_desc); + return KMainListReply.new_com_bapis_bilibili_main_community_reply_v1_KMainListReply_596c0n_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, tmp18_local14, tmp19_local15, tmp20_local16, tmp21_local17, tmp22_local18, tmp23_local19, tmp24_local20, tmp25_local21, tmp26_local22, tmp27_local23, tmp28_local24, tmp29_local25, null); + } + serialize_vg9wud_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_1299().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.cursor == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_1293(), value.cursor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !equals(value.replies, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 1, tmp2_cached[1], value.replies); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.subjectControl == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_1302(), value.subjectControl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.upTop == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_1303(), value.upTop); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.adminTop == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, $serializer_getInstance_1303(), value.adminTop); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.voteTop == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 5, $serializer_getInstance_1303(), value.voteTop); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.notice == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 6, $serializer_getInstance_1289(), value.notice); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.lottery == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 7, $serializer_getInstance_1291(), value.lottery); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.activity == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 8, $serializer_getInstance_1290(), value.activity); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.upSelection == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 9, $serializer_getInstance_1288(), value.upSelection); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.cm == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 10, $serializer_getInstance_1274(), value.cm); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.effects == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 11, $serializer_getInstance_1287(), value.effects); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !(value.operation == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 12, $serializer_getInstance_1363(), value.operation); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 13) ? true : !equals(value.topReplies, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 13, tmp2_cached[13], value.topReplies); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 14) ? true : !(value.qoe == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 14, $serializer_getInstance_1379(), value.qoe); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 15) ? true : !equals(value.callbacks, emptyMap())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 15, tmp2_cached[15], value.callbacks); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 16) ? true : !(value.operationV2 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 16, $serializer_getInstance_1367(), value.operationV2); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 17) ? true : !(value.mode === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 17, value.mode); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 18) ? true : !(value.modeText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 18, value.modeText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 19) ? true : !(value.paginationReply == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 19, $serializer_getInstance_198(), value.paginationReply); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 20) ? true : !(value.sessionId === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 20, value.sessionId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 21) ? true : !(value.reportParams === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 21, value.reportParams); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 22) ? true : !(value.voteCard == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 22, $serializer_getInstance_1369(), value.voteCard); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 23) ? true : !(value.esportsGradeCard == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 23, $serializer_getInstance_1370(), value.esportsGradeCard); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 24) ? true : !(value.contextFeature === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 24, value.contextFeature); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 25) ? true : !(value.paginationEndText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 25, value.paginationEndText); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_vg9wud_k$(encoder, value instanceof KMainListReply ? value : THROW_CCE()); + } + } + class KMainListReply { + constructor(cursor, replies, subjectControl, upTop, adminTop, voteTop, notice, lottery, activity, upSelection, cm, effects, operation, topReplies, qoe, callbacks, operationV2, mode, modeText, paginationReply, sessionId, reportParams, voteCard, esportsGradeCard, contextFeature, paginationEndText) { + Companion_getInstance_1299(); + cursor = cursor === VOID ? null : cursor; + replies = replies === VOID ? emptyList() : replies; + subjectControl = subjectControl === VOID ? null : subjectControl; + upTop = upTop === VOID ? null : upTop; + adminTop = adminTop === VOID ? null : adminTop; + voteTop = voteTop === VOID ? null : voteTop; + notice = notice === VOID ? null : notice; + lottery = lottery === VOID ? null : lottery; + activity = activity === VOID ? null : activity; + upSelection = upSelection === VOID ? null : upSelection; + cm = cm === VOID ? null : cm; + effects = effects === VOID ? null : effects; + operation = operation === VOID ? null : operation; + topReplies = topReplies === VOID ? emptyList() : topReplies; + qoe = qoe === VOID ? null : qoe; + callbacks = callbacks === VOID ? emptyMap() : callbacks; + operationV2 = operationV2 === VOID ? null : operationV2; + mode = mode === VOID ? 0 : mode; + modeText = modeText === VOID ? '' : modeText; + paginationReply = paginationReply === VOID ? null : paginationReply; + sessionId = sessionId === VOID ? '' : sessionId; + reportParams = reportParams === VOID ? '' : reportParams; + voteCard = voteCard === VOID ? null : voteCard; + esportsGradeCard = esportsGradeCard === VOID ? null : esportsGradeCard; + contextFeature = contextFeature === VOID ? '' : contextFeature; + paginationEndText = paginationEndText === VOID ? '' : paginationEndText; + this.cursor = cursor; + this.replies = replies; + this.subjectControl = subjectControl; + this.upTop = upTop; + this.adminTop = adminTop; + this.voteTop = voteTop; + this.notice = notice; + this.lottery = lottery; + this.activity = activity; + this.upSelection = upSelection; + this.cm = cm; + this.effects = effects; + this.operation = operation; + this.topReplies = topReplies; + this.qoe = qoe; + this.callbacks = callbacks; + this.operationV2 = operationV2; + this.mode = mode; + this.modeText = modeText; + this.paginationReply = paginationReply; + this.sessionId = sessionId; + this.reportParams = reportParams; + this.voteCard = voteCard; + this.esportsGradeCard = esportsGradeCard; + this.contextFeature = contextFeature; + this.paginationEndText = paginationEndText; + } + get_cursor_c3jujj_k$() { + return this.cursor; + } + get_replies_jd6za7_k$() { + return this.replies; + } + get_subjectControl_4r8okm_k$() { + return this.subjectControl; + } + get_upTop_izqopd_k$() { + return this.upTop; + } + get_adminTop_n76kwf_k$() { + return this.adminTop; + } + get_voteTop_bu6k9u_k$() { + return this.voteTop; + } + get_notice_h7rzkx_k$() { + return this.notice; + } + get_lottery_74prhc_k$() { + return this.lottery; + } + get_activity_bu9714_k$() { + return this.activity; + } + get_upSelection_daf3k8_k$() { + return this.upSelection; + } + get_cm_knto25_k$() { + return this.cm; + } + get_effects_t2bi7b_k$() { + return this.effects; + } + get_operation_z0nqyq_k$() { + return this.operation; + } + get_topReplies_f77vd0_k$() { + return this.topReplies; + } + get_qoe_18ixk2_k$() { + return this.qoe; + } + get_callbacks_8qyswr_k$() { + return this.callbacks; + } + get_operationV2_g1f9i2_k$() { + return this.operationV2; + } + get_mode_woqlt8_k$() { + return this.mode; + } + get_modeText_sz6zi1_k$() { + return this.modeText; + } + get_paginationReply_sznu61_k$() { + return this.paginationReply; + } + get_sessionId_ike088_k$() { + return this.sessionId; + } + get_reportParams_ct7spv_k$() { + return this.reportParams; + } + get_voteCard_bts1k3_k$() { + return this.voteCard; + } + get_esportsGradeCard_mrahkk_k$() { + return this.esportsGradeCard; + } + get_contextFeature_88twls_k$() { + return this.contextFeature; + } + get_paginationEndText_ahd3b9_k$() { + return this.paginationEndText; + } + modeEnum() { + return Companion_getInstance_1281().fromValue(this.mode); + } + component1_7eebsc_k$() { + return this.cursor; + } + component2_7eebsb_k$() { + return this.replies; + } + component3_7eebsa_k$() { + return this.subjectControl; + } + component4_7eebs9_k$() { + return this.upTop; + } + component5_7eebs8_k$() { + return this.adminTop; + } + component6_7eebs7_k$() { + return this.voteTop; + } + component7_7eebs6_k$() { + return this.notice; + } + component8_7eebs5_k$() { + return this.lottery; + } + component9_7eebs4_k$() { + return this.activity; + } + component10_gazzfo_k$() { + return this.upSelection; + } + component11_gazzfn_k$() { + return this.cm; + } + component12_gazzfm_k$() { + return this.effects; + } + component13_gazzfl_k$() { + return this.operation; + } + component14_gazzfk_k$() { + return this.topReplies; + } + component15_gazzfj_k$() { + return this.qoe; + } + component16_gazzfi_k$() { + return this.callbacks; + } + component17_gazzfh_k$() { + return this.operationV2; + } + component18_gazzfg_k$() { + return this.mode; + } + component19_gazzff_k$() { + return this.modeText; + } + component20_gazzet_k$() { + return this.paginationReply; + } + component21_gazzes_k$() { + return this.sessionId; + } + component22_gazzer_k$() { + return this.reportParams; + } + component23_gazzeq_k$() { + return this.voteCard; + } + component24_gazzep_k$() { + return this.esportsGradeCard; + } + component25_gazzeo_k$() { + return this.contextFeature; + } + component26_gazzen_k$() { + return this.paginationEndText; + } + copy_vx545j_k$(cursor, replies, subjectControl, upTop, adminTop, voteTop, notice, lottery, activity, upSelection, cm, effects, operation, topReplies, qoe, callbacks, operationV2, mode, modeText, paginationReply, sessionId, reportParams, voteCard, esportsGradeCard, contextFeature, paginationEndText) { + return new KMainListReply(cursor, replies, subjectControl, upTop, adminTop, voteTop, notice, lottery, activity, upSelection, cm, effects, operation, topReplies, qoe, callbacks, operationV2, mode, modeText, paginationReply, sessionId, reportParams, voteCard, esportsGradeCard, contextFeature, paginationEndText); + } + copy(cursor, replies, subjectControl, upTop, adminTop, voteTop, notice, lottery, activity, upSelection, cm, effects, operation, topReplies, qoe, callbacks, operationV2, mode, modeText, paginationReply, sessionId, reportParams, voteCard, esportsGradeCard, contextFeature, paginationEndText, $super) { + cursor = cursor === VOID ? this.cursor : cursor; + replies = replies === VOID ? this.replies : replies; + subjectControl = subjectControl === VOID ? this.subjectControl : subjectControl; + upTop = upTop === VOID ? this.upTop : upTop; + adminTop = adminTop === VOID ? this.adminTop : adminTop; + voteTop = voteTop === VOID ? this.voteTop : voteTop; + notice = notice === VOID ? this.notice : notice; + lottery = lottery === VOID ? this.lottery : lottery; + activity = activity === VOID ? this.activity : activity; + upSelection = upSelection === VOID ? this.upSelection : upSelection; + cm = cm === VOID ? this.cm : cm; + effects = effects === VOID ? this.effects : effects; + operation = operation === VOID ? this.operation : operation; + topReplies = topReplies === VOID ? this.topReplies : topReplies; + qoe = qoe === VOID ? this.qoe : qoe; + callbacks = callbacks === VOID ? this.callbacks : callbacks; + operationV2 = operationV2 === VOID ? this.operationV2 : operationV2; + mode = mode === VOID ? this.mode : mode; + modeText = modeText === VOID ? this.modeText : modeText; + paginationReply = paginationReply === VOID ? this.paginationReply : paginationReply; + sessionId = sessionId === VOID ? this.sessionId : sessionId; + reportParams = reportParams === VOID ? this.reportParams : reportParams; + voteCard = voteCard === VOID ? this.voteCard : voteCard; + esportsGradeCard = esportsGradeCard === VOID ? this.esportsGradeCard : esportsGradeCard; + contextFeature = contextFeature === VOID ? this.contextFeature : contextFeature; + paginationEndText = paginationEndText === VOID ? this.paginationEndText : paginationEndText; + return this.copy_vx545j_k$(cursor, replies, subjectControl, upTop, adminTop, voteTop, notice, lottery, activity, upSelection, cm, effects, operation, topReplies, qoe, callbacks, operationV2, mode, modeText, paginationReply, sessionId, reportParams, voteCard, esportsGradeCard, contextFeature, paginationEndText); + } + toString() { + return 'KMainListReply(cursor=' + this.cursor + ', replies=' + this.replies + ', subjectControl=' + this.subjectControl + ', upTop=' + this.upTop + ', adminTop=' + this.adminTop + ', voteTop=' + this.voteTop + ', notice=' + this.notice + ', lottery=' + this.lottery + ', activity=' + this.activity + ', upSelection=' + this.upSelection + ', cm=' + this.cm + ', effects=' + this.effects + ', operation=' + this.operation + ', topReplies=' + this.topReplies + ', qoe=' + this.qoe + ', callbacks=' + this.callbacks + ', operationV2=' + this.operationV2 + ', mode=' + this.mode + ', modeText=' + this.modeText + ', paginationReply=' + this.paginationReply + ', sessionId=' + this.sessionId + ', reportParams=' + this.reportParams + ', voteCard=' + this.voteCard + ', esportsGradeCard=' + this.esportsGradeCard + ', contextFeature=' + this.contextFeature + ', paginationEndText=' + this.paginationEndText + ')'; + } + hashCode() { + var result = this.cursor == null ? 0 : this.cursor.hashCode(); + result = imul(result, 31) + hashCode(this.replies) | 0; + result = imul(result, 31) + (this.subjectControl == null ? 0 : this.subjectControl.hashCode()) | 0; + result = imul(result, 31) + (this.upTop == null ? 0 : this.upTop.hashCode()) | 0; + result = imul(result, 31) + (this.adminTop == null ? 0 : this.adminTop.hashCode()) | 0; + result = imul(result, 31) + (this.voteTop == null ? 0 : this.voteTop.hashCode()) | 0; + result = imul(result, 31) + (this.notice == null ? 0 : this.notice.hashCode()) | 0; + result = imul(result, 31) + (this.lottery == null ? 0 : this.lottery.hashCode()) | 0; + result = imul(result, 31) + (this.activity == null ? 0 : this.activity.hashCode()) | 0; + result = imul(result, 31) + (this.upSelection == null ? 0 : this.upSelection.hashCode()) | 0; + result = imul(result, 31) + (this.cm == null ? 0 : this.cm.hashCode()) | 0; + result = imul(result, 31) + (this.effects == null ? 0 : this.effects.hashCode()) | 0; + result = imul(result, 31) + (this.operation == null ? 0 : this.operation.hashCode()) | 0; + result = imul(result, 31) + hashCode(this.topReplies) | 0; + result = imul(result, 31) + (this.qoe == null ? 0 : this.qoe.hashCode()) | 0; + result = imul(result, 31) + hashCode(this.callbacks) | 0; + result = imul(result, 31) + (this.operationV2 == null ? 0 : this.operationV2.hashCode()) | 0; + result = imul(result, 31) + this.mode | 0; + result = imul(result, 31) + getStringHashCode(this.modeText) | 0; + result = imul(result, 31) + (this.paginationReply == null ? 0 : this.paginationReply.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.sessionId) | 0; + result = imul(result, 31) + getStringHashCode(this.reportParams) | 0; + result = imul(result, 31) + (this.voteCard == null ? 0 : this.voteCard.hashCode()) | 0; + result = imul(result, 31) + (this.esportsGradeCard == null ? 0 : this.esportsGradeCard.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.contextFeature) | 0; + result = imul(result, 31) + getStringHashCode(this.paginationEndText) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KMainListReply)) + return false; + var tmp0_other_with_cast = other instanceof KMainListReply ? other : THROW_CCE(); + if (!equals(this.cursor, tmp0_other_with_cast.cursor)) + return false; + if (!equals(this.replies, tmp0_other_with_cast.replies)) + return false; + if (!equals(this.subjectControl, tmp0_other_with_cast.subjectControl)) + return false; + if (!equals(this.upTop, tmp0_other_with_cast.upTop)) + return false; + if (!equals(this.adminTop, tmp0_other_with_cast.adminTop)) + return false; + if (!equals(this.voteTop, tmp0_other_with_cast.voteTop)) + return false; + if (!equals(this.notice, tmp0_other_with_cast.notice)) + return false; + if (!equals(this.lottery, tmp0_other_with_cast.lottery)) + return false; + if (!equals(this.activity, tmp0_other_with_cast.activity)) + return false; + if (!equals(this.upSelection, tmp0_other_with_cast.upSelection)) + return false; + if (!equals(this.cm, tmp0_other_with_cast.cm)) + return false; + if (!equals(this.effects, tmp0_other_with_cast.effects)) + return false; + if (!equals(this.operation, tmp0_other_with_cast.operation)) + return false; + if (!equals(this.topReplies, tmp0_other_with_cast.topReplies)) + return false; + if (!equals(this.qoe, tmp0_other_with_cast.qoe)) + return false; + if (!equals(this.callbacks, tmp0_other_with_cast.callbacks)) + return false; + if (!equals(this.operationV2, tmp0_other_with_cast.operationV2)) + return false; + if (!(this.mode === tmp0_other_with_cast.mode)) + return false; + if (!(this.modeText === tmp0_other_with_cast.modeText)) + return false; + if (!equals(this.paginationReply, tmp0_other_with_cast.paginationReply)) + return false; + if (!(this.sessionId === tmp0_other_with_cast.sessionId)) + return false; + if (!(this.reportParams === tmp0_other_with_cast.reportParams)) + return false; + if (!equals(this.voteCard, tmp0_other_with_cast.voteCard)) + return false; + if (!equals(this.esportsGradeCard, tmp0_other_with_cast.esportsGradeCard)) + return false; + if (!(this.contextFeature === tmp0_other_with_cast.contextFeature)) + return false; + if (!(this.paginationEndText === tmp0_other_with_cast.paginationEndText)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KMainListReply_596c0n_k$(seen1, cursor, replies, subjectControl, upTop, adminTop, voteTop, notice, lottery, activity, upSelection, cm, effects, operation, topReplies, qoe, callbacks, operationV2, mode, modeText, paginationReply, sessionId, reportParams, voteCard, esportsGradeCard, contextFeature, paginationEndText, serializationConstructorMarker) { + Companion_getInstance_1299(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1286().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.cursor = null; + else + $this.cursor = cursor; + if (0 === (seen1 & 2)) + $this.replies = emptyList(); + else + $this.replies = replies; + if (0 === (seen1 & 4)) + $this.subjectControl = null; + else + $this.subjectControl = subjectControl; + if (0 === (seen1 & 8)) + $this.upTop = null; + else + $this.upTop = upTop; + if (0 === (seen1 & 16)) + $this.adminTop = null; + else + $this.adminTop = adminTop; + if (0 === (seen1 & 32)) + $this.voteTop = null; + else + $this.voteTop = voteTop; + if (0 === (seen1 & 64)) + $this.notice = null; + else + $this.notice = notice; + if (0 === (seen1 & 128)) + $this.lottery = null; + else + $this.lottery = lottery; + if (0 === (seen1 & 256)) + $this.activity = null; + else + $this.activity = activity; + if (0 === (seen1 & 512)) + $this.upSelection = null; + else + $this.upSelection = upSelection; + if (0 === (seen1 & 1024)) + $this.cm = null; + else + $this.cm = cm; + if (0 === (seen1 & 2048)) + $this.effects = null; + else + $this.effects = effects; + if (0 === (seen1 & 4096)) + $this.operation = null; + else + $this.operation = operation; + if (0 === (seen1 & 8192)) + $this.topReplies = emptyList(); + else + $this.topReplies = topReplies; + if (0 === (seen1 & 16384)) + $this.qoe = null; + else + $this.qoe = qoe; + if (0 === (seen1 & 32768)) + $this.callbacks = emptyMap(); + else + $this.callbacks = callbacks; + if (0 === (seen1 & 65536)) + $this.operationV2 = null; + else + $this.operationV2 = operationV2; + if (0 === (seen1 & 131072)) + $this.mode = 0; + else + $this.mode = mode; + if (0 === (seen1 & 262144)) + $this.modeText = ''; + else + $this.modeText = modeText; + if (0 === (seen1 & 524288)) + $this.paginationReply = null; + else + $this.paginationReply = paginationReply; + if (0 === (seen1 & 1048576)) + $this.sessionId = ''; + else + $this.sessionId = sessionId; + if (0 === (seen1 & 2097152)) + $this.reportParams = ''; + else + $this.reportParams = reportParams; + if (0 === (seen1 & 4194304)) + $this.voteCard = null; + else + $this.voteCard = voteCard; + if (0 === (seen1 & 8388608)) + $this.esportsGradeCard = null; + else + $this.esportsGradeCard = esportsGradeCard; + if (0 === (seen1 & 16777216)) + $this.contextFeature = ''; + else + $this.contextFeature = contextFeature; + if (0 === (seen1 & 33554432)) + $this.paginationEndText = ''; + else + $this.paginationEndText = paginationEndText; + return $this; + } + } + class Companion_1300 { + constructor() { + this.targetPath = '/bilibili.main.community.reply.v1.Effects'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1287(); + } + } + class $serializer_1287 { + constructor() { + $serializer_instance_1287 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KEffects', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('preloading', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KEffects_0.new_com_bapis_bilibili_main_community_reply_v1_KEffects_5q2i3_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_r1tzpy_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.preloading === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.preloading); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_r1tzpy_k$(encoder, value instanceof KEffects_0 ? value : THROW_CCE()); + } + } + class KEffects_0 { + constructor(preloading) { + Companion_instance_1300; + preloading = preloading === VOID ? '' : preloading; + this.preloading = preloading; + } + get_preloading_mt1p32_k$() { + return this.preloading; + } + component1_7eebsc_k$() { + return this.preloading; + } + copy_a35qlh_k$(preloading) { + return new KEffects_0(preloading); + } + copy(preloading, $super) { + preloading = preloading === VOID ? this.preloading : preloading; + return this.copy_a35qlh_k$(preloading); + } + toString() { + return 'KEffects(preloading=' + this.preloading + ')'; + } + hashCode() { + return getStringHashCode(this.preloading); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KEffects_0)) + return false; + var tmp0_other_with_cast = other instanceof KEffects_0 ? other : THROW_CCE(); + if (!(this.preloading === tmp0_other_with_cast.preloading)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KEffects_5q2i3_k$(seen1, preloading, serializationConstructorMarker) { + Companion_instance_1300; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1287().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.preloading = ''; + else + $this.preloading = preloading; + return $this; + } + } + class Companion_1301 { + constructor() { + this.targetPath = '/bilibili.main.community.reply.v1.UpSelection'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1288(); + } + } + class $serializer_1288 { + constructor() { + $serializer_instance_1288 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KUpSelection', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('pendingCount', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('ignoreCount', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = new Long(0, 0); + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KUpSelection.new_com_bapis_bilibili_main_community_reply_v1_KUpSelection_8qjsfr_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_15dng9_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.pendingCount.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.pendingCount); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.ignoreCount.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.ignoreCount); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_15dng9_k$(encoder, value instanceof KUpSelection ? value : THROW_CCE()); + } + } + class KUpSelection { + constructor(pendingCount, ignoreCount) { + Companion_instance_1301; + pendingCount = pendingCount === VOID ? new Long(0, 0) : pendingCount; + ignoreCount = ignoreCount === VOID ? new Long(0, 0) : ignoreCount; + this.pendingCount = pendingCount; + this.ignoreCount = ignoreCount; + } + get_pendingCount_6t8lj5_k$() { + return this.pendingCount; + } + get_ignoreCount_w4cv7w_k$() { + return this.ignoreCount; + } + component1_7eebsc_k$() { + return this.pendingCount; + } + component2_7eebsb_k$() { + return this.ignoreCount; + } + copy_bynm9d_k$(pendingCount, ignoreCount) { + return new KUpSelection(pendingCount, ignoreCount); + } + copy(pendingCount, ignoreCount, $super) { + pendingCount = pendingCount === VOID ? this.pendingCount : pendingCount; + ignoreCount = ignoreCount === VOID ? this.ignoreCount : ignoreCount; + return this.copy_bynm9d_k$(pendingCount, ignoreCount); + } + toString() { + return 'KUpSelection(pendingCount=' + this.pendingCount.toString() + ', ignoreCount=' + this.ignoreCount.toString() + ')'; + } + hashCode() { + var result = this.pendingCount.hashCode(); + result = imul(result, 31) + this.ignoreCount.hashCode() | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KUpSelection)) + return false; + var tmp0_other_with_cast = other instanceof KUpSelection ? other : THROW_CCE(); + if (!this.pendingCount.equals(tmp0_other_with_cast.pendingCount)) + return false; + if (!this.ignoreCount.equals(tmp0_other_with_cast.ignoreCount)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KUpSelection_8qjsfr_k$(seen1, pendingCount, ignoreCount, serializationConstructorMarker) { + Companion_instance_1301; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1288().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.pendingCount = new Long(0, 0); + else + $this.pendingCount = pendingCount; + if (0 === (seen1 & 2)) + $this.ignoreCount = new Long(0, 0); + else + $this.ignoreCount = ignoreCount; + return $this; + } + } + class Companion_1302 { + constructor() { + this.targetPath = '/bilibili.main.community.reply.v1.Notice'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1289(); + } + } + class $serializer_1289 { + constructor() { + $serializer_instance_1289 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KNotice', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('id', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('content', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('link', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KNotice_0.new_com_bapis_bilibili_main_community_reply_v1_KNotice_pway8e_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_2y9roq_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.id.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.id); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.content === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.content); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.link === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.link); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_2y9roq_k$(encoder, value instanceof KNotice_0 ? value : THROW_CCE()); + } + } + class KNotice_0 { + constructor(id, content, link) { + Companion_instance_1302; + id = id === VOID ? new Long(0, 0) : id; + content = content === VOID ? '' : content; + link = link === VOID ? '' : link; + this.id = id; + this.content = content; + this.link = link; + } + get_id_kntnx8_k$() { + return this.id; + } + get_content_h02jrk_k$() { + return this.content; + } + get_link_wopumb_k$() { + return this.link; + } + component1_7eebsc_k$() { + return this.id; + } + component2_7eebsb_k$() { + return this.content; + } + component3_7eebsa_k$() { + return this.link; + } + copy_ijggmr_k$(id, content, link) { + return new KNotice_0(id, content, link); + } + copy(id, content, link, $super) { + id = id === VOID ? this.id : id; + content = content === VOID ? this.content : content; + link = link === VOID ? this.link : link; + return this.copy_ijggmr_k$(id, content, link); + } + toString() { + return 'KNotice(id=' + this.id.toString() + ', content=' + this.content + ', link=' + this.link + ')'; + } + hashCode() { + var result = this.id.hashCode(); + result = imul(result, 31) + getStringHashCode(this.content) | 0; + result = imul(result, 31) + getStringHashCode(this.link) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KNotice_0)) + return false; + var tmp0_other_with_cast = other instanceof KNotice_0 ? other : THROW_CCE(); + if (!this.id.equals(tmp0_other_with_cast.id)) + return false; + if (!(this.content === tmp0_other_with_cast.content)) + return false; + if (!(this.link === tmp0_other_with_cast.link)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KNotice_pway8e_k$(seen1, id, content, link, serializationConstructorMarker) { + Companion_instance_1302; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1289().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.id = new Long(0, 0); + else + $this.id = id; + if (0 === (seen1 & 2)) + $this.content = ''; + else + $this.content = content; + if (0 === (seen1 & 4)) + $this.link = ''; + else + $this.link = link; + return $this; + } + } + class Companion_1303 { + constructor() { + this.targetPath = '/bilibili.main.community.reply.v1.Activity'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1290(); + } + } + class $serializer_1290 { + constructor() { + $serializer_instance_1290 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KActivity', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('activityId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('activityState', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('activityPlaceholder', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = new Long(0, 0); + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KActivity_1.new_com_bapis_bilibili_main_community_reply_v1_KActivity_8pzy5c_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_tmcjlr_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.activityId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.activityId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.activityState.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.activityState); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.activityPlaceholder === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.activityPlaceholder); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_tmcjlr_k$(encoder, value instanceof KActivity_1 ? value : THROW_CCE()); + } + } + class KActivity_1 { + constructor(activityId, activityState, activityPlaceholder) { + Companion_instance_1303; + activityId = activityId === VOID ? new Long(0, 0) : activityId; + activityState = activityState === VOID ? new Long(0, 0) : activityState; + activityPlaceholder = activityPlaceholder === VOID ? '' : activityPlaceholder; + this.activityId = activityId; + this.activityState = activityState; + this.activityPlaceholder = activityPlaceholder; + } + get_activityId_dpfyfn_k$() { + return this.activityId; + } + get_activityState_ij8rxj_k$() { + return this.activityState; + } + get_activityPlaceholder_6u1mrp_k$() { + return this.activityPlaceholder; + } + component1_7eebsc_k$() { + return this.activityId; + } + component2_7eebsb_k$() { + return this.activityState; + } + component3_7eebsa_k$() { + return this.activityPlaceholder; + } + copy_ooba7d_k$(activityId, activityState, activityPlaceholder) { + return new KActivity_1(activityId, activityState, activityPlaceholder); + } + copy(activityId, activityState, activityPlaceholder, $super) { + activityId = activityId === VOID ? this.activityId : activityId; + activityState = activityState === VOID ? this.activityState : activityState; + activityPlaceholder = activityPlaceholder === VOID ? this.activityPlaceholder : activityPlaceholder; + return this.copy_ooba7d_k$(activityId, activityState, activityPlaceholder); + } + toString() { + return 'KActivity(activityId=' + this.activityId.toString() + ', activityState=' + this.activityState.toString() + ', activityPlaceholder=' + this.activityPlaceholder + ')'; + } + hashCode() { + var result = this.activityId.hashCode(); + result = imul(result, 31) + this.activityState.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.activityPlaceholder) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KActivity_1)) + return false; + var tmp0_other_with_cast = other instanceof KActivity_1 ? other : THROW_CCE(); + if (!this.activityId.equals(tmp0_other_with_cast.activityId)) + return false; + if (!this.activityState.equals(tmp0_other_with_cast.activityState)) + return false; + if (!(this.activityPlaceholder === tmp0_other_with_cast.activityPlaceholder)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KActivity_8pzy5c_k$(seen1, activityId, activityState, activityPlaceholder, serializationConstructorMarker) { + Companion_instance_1303; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1290().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.activityId = new Long(0, 0); + else + $this.activityId = activityId; + if (0 === (seen1 & 2)) + $this.activityState = new Long(0, 0); + else + $this.activityState = activityState; + if (0 === (seen1 & 4)) + $this.activityPlaceholder = ''; + else + $this.activityPlaceholder = activityPlaceholder; + return $this; + } + } + class Companion_1304 { + constructor() { + this.targetPath = '/bilibili.main.community.reply.v1.Lottery'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1291(); + } + } + class $serializer_1291 { + constructor() { + $serializer_instance_1291 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KLottery', this, 10); + tmp0_serialDesc.addElement_5pzumi_k$('lotteryId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('lotteryStatus', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('lotteryMid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('lotteryTime', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('oid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('ctime', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('content', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('member', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('replyControl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable($serializer_getInstance_1310()), get_nullable($serializer_getInstance_1347()), get_nullable($serializer_getInstance_1319())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = new Long(0, 0); + var tmp6_local2 = new Long(0, 0); + var tmp7_local3 = new Long(0, 0); + var tmp8_local4 = new Long(0, 0); + var tmp9_local5 = new Long(0, 0); + var tmp10_local6 = new Long(0, 0); + var tmp11_local7 = null; + var tmp12_local8 = null; + var tmp13_local9 = null; + var tmp14_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp14_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_1310(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_1347(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 9, $serializer_getInstance_1319(), tmp13_local9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + } else + while (tmp1_flag) { + tmp2_index = tmp14_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_1310(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_1347(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 9, $serializer_getInstance_1319(), tmp13_local9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp14_input.endStructure_1xqz0n_k$(tmp0_desc); + return KLottery.new_com_bapis_bilibili_main_community_reply_v1_KLottery_rtc3or_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, null); + } + serialize_xt3ywf_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.lotteryId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.lotteryId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.lotteryStatus.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.lotteryStatus); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.lotteryMid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.lotteryMid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !value.lotteryTime.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 3, value.lotteryTime); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !value.oid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 4, value.oid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !value.type.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 5, value.type); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !value.ctime.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 6, value.ctime); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.content == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 7, $serializer_getInstance_1310(), value.content); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.member == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 8, $serializer_getInstance_1347(), value.member); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.replyControl == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 9, $serializer_getInstance_1319(), value.replyControl); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_xt3ywf_k$(encoder, value instanceof KLottery ? value : THROW_CCE()); + } + } + class KLottery { + constructor(lotteryId, lotteryStatus, lotteryMid, lotteryTime, oid, type, ctime, content, member, replyControl) { + Companion_instance_1304; + lotteryId = lotteryId === VOID ? new Long(0, 0) : lotteryId; + lotteryStatus = lotteryStatus === VOID ? new Long(0, 0) : lotteryStatus; + lotteryMid = lotteryMid === VOID ? new Long(0, 0) : lotteryMid; + lotteryTime = lotteryTime === VOID ? new Long(0, 0) : lotteryTime; + oid = oid === VOID ? new Long(0, 0) : oid; + type = type === VOID ? new Long(0, 0) : type; + ctime = ctime === VOID ? new Long(0, 0) : ctime; + content = content === VOID ? null : content; + member = member === VOID ? null : member; + replyControl = replyControl === VOID ? null : replyControl; + this.lotteryId = lotteryId; + this.lotteryStatus = lotteryStatus; + this.lotteryMid = lotteryMid; + this.lotteryTime = lotteryTime; + this.oid = oid; + this.type = type; + this.ctime = ctime; + this.content = content; + this.member = member; + this.replyControl = replyControl; + } + get_lotteryId_xwxdwb_k$() { + return this.lotteryId; + } + get_lotteryStatus_v3y4qa_k$() { + return this.lotteryStatus; + } + get_lotteryMid_e3xrnc_k$() { + return this.lotteryMid; + } + get_lotteryTime_b7a01f_k$() { + return this.lotteryTime; + } + get_oid_18iz6n_k$() { + return this.oid; + } + get_type_wovaf7_k$() { + return this.type; + } + get_ctime_ipxdhj_k$() { + return this.ctime; + } + get_content_h02jrk_k$() { + return this.content; + } + get_member_gl3t7n_k$() { + return this.member; + } + get_replyControl_q3qtzw_k$() { + return this.replyControl; + } + component1_7eebsc_k$() { + return this.lotteryId; + } + component2_7eebsb_k$() { + return this.lotteryStatus; + } + component3_7eebsa_k$() { + return this.lotteryMid; + } + component4_7eebs9_k$() { + return this.lotteryTime; + } + component5_7eebs8_k$() { + return this.oid; + } + component6_7eebs7_k$() { + return this.type; + } + component7_7eebs6_k$() { + return this.ctime; + } + component8_7eebs5_k$() { + return this.content; + } + component9_7eebs4_k$() { + return this.member; + } + component10_gazzfo_k$() { + return this.replyControl; + } + copy_6rpugb_k$(lotteryId, lotteryStatus, lotteryMid, lotteryTime, oid, type, ctime, content, member, replyControl) { + return new KLottery(lotteryId, lotteryStatus, lotteryMid, lotteryTime, oid, type, ctime, content, member, replyControl); + } + copy(lotteryId, lotteryStatus, lotteryMid, lotteryTime, oid, type, ctime, content, member, replyControl, $super) { + lotteryId = lotteryId === VOID ? this.lotteryId : lotteryId; + lotteryStatus = lotteryStatus === VOID ? this.lotteryStatus : lotteryStatus; + lotteryMid = lotteryMid === VOID ? this.lotteryMid : lotteryMid; + lotteryTime = lotteryTime === VOID ? this.lotteryTime : lotteryTime; + oid = oid === VOID ? this.oid : oid; + type = type === VOID ? this.type : type; + ctime = ctime === VOID ? this.ctime : ctime; + content = content === VOID ? this.content : content; + member = member === VOID ? this.member : member; + replyControl = replyControl === VOID ? this.replyControl : replyControl; + return this.copy_6rpugb_k$(lotteryId, lotteryStatus, lotteryMid, lotteryTime, oid, type, ctime, content, member, replyControl); + } + toString() { + return 'KLottery(lotteryId=' + this.lotteryId.toString() + ', lotteryStatus=' + this.lotteryStatus.toString() + ', lotteryMid=' + this.lotteryMid.toString() + ', lotteryTime=' + this.lotteryTime.toString() + ', oid=' + this.oid.toString() + ', type=' + this.type.toString() + ', ctime=' + this.ctime.toString() + ', content=' + this.content + ', member=' + this.member + ', replyControl=' + this.replyControl + ')'; + } + hashCode() { + var result = this.lotteryId.hashCode(); + result = imul(result, 31) + this.lotteryStatus.hashCode() | 0; + result = imul(result, 31) + this.lotteryMid.hashCode() | 0; + result = imul(result, 31) + this.lotteryTime.hashCode() | 0; + result = imul(result, 31) + this.oid.hashCode() | 0; + result = imul(result, 31) + this.type.hashCode() | 0; + result = imul(result, 31) + this.ctime.hashCode() | 0; + result = imul(result, 31) + (this.content == null ? 0 : this.content.hashCode()) | 0; + result = imul(result, 31) + (this.member == null ? 0 : this.member.hashCode()) | 0; + result = imul(result, 31) + (this.replyControl == null ? 0 : this.replyControl.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KLottery)) + return false; + var tmp0_other_with_cast = other instanceof KLottery ? other : THROW_CCE(); + if (!this.lotteryId.equals(tmp0_other_with_cast.lotteryId)) + return false; + if (!this.lotteryStatus.equals(tmp0_other_with_cast.lotteryStatus)) + return false; + if (!this.lotteryMid.equals(tmp0_other_with_cast.lotteryMid)) + return false; + if (!this.lotteryTime.equals(tmp0_other_with_cast.lotteryTime)) + return false; + if (!this.oid.equals(tmp0_other_with_cast.oid)) + return false; + if (!this.type.equals(tmp0_other_with_cast.type)) + return false; + if (!this.ctime.equals(tmp0_other_with_cast.ctime)) + return false; + if (!equals(this.content, tmp0_other_with_cast.content)) + return false; + if (!equals(this.member, tmp0_other_with_cast.member)) + return false; + if (!equals(this.replyControl, tmp0_other_with_cast.replyControl)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KLottery_rtc3or_k$(seen1, lotteryId, lotteryStatus, lotteryMid, lotteryTime, oid, type, ctime, content, member, replyControl, serializationConstructorMarker) { + Companion_instance_1304; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1291().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.lotteryId = new Long(0, 0); + else + $this.lotteryId = lotteryId; + if (0 === (seen1 & 2)) + $this.lotteryStatus = new Long(0, 0); + else + $this.lotteryStatus = lotteryStatus; + if (0 === (seen1 & 4)) + $this.lotteryMid = new Long(0, 0); + else + $this.lotteryMid = lotteryMid; + if (0 === (seen1 & 8)) + $this.lotteryTime = new Long(0, 0); + else + $this.lotteryTime = lotteryTime; + if (0 === (seen1 & 16)) + $this.oid = new Long(0, 0); + else + $this.oid = oid; + if (0 === (seen1 & 32)) + $this.type = new Long(0, 0); + else + $this.type = type; + if (0 === (seen1 & 64)) + $this.ctime = new Long(0, 0); + else + $this.ctime = ctime; + if (0 === (seen1 & 128)) + $this.content = null; + else + $this.content = content; + if (0 === (seen1 & 256)) + $this.member = null; + else + $this.member = member; + if (0 === (seen1 & 512)) + $this.replyControl = null; + else + $this.replyControl = replyControl; + return $this; + } + } + class Companion_1305 { + constructor() { + this.targetPath = '/bilibili.main.community.reply.v1.CursorReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1292(); + } + } + class $serializer_1292 { + constructor() { + $serializer_instance_1292 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KCursorReq', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('next', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('prev', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('mode', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = new Long(0, 0); + var tmp6_local2 = 0; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KCursorReq_0.new_com_bapis_bilibili_main_community_reply_v1_KCursorReq_un5qq_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_63we34_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.next.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.next); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.prev.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.prev); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.mode === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.mode); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_63we34_k$(encoder, value instanceof KCursorReq_0 ? value : THROW_CCE()); + } + } + class KCursorReq_0 { + constructor(next, prev, mode) { + Companion_instance_1305; + next = next === VOID ? new Long(0, 0) : next; + prev = prev === VOID ? new Long(0, 0) : prev; + mode = mode === VOID ? 0 : mode; + this.next = next; + this.prev = prev; + this.mode = mode; + } + get_next_wor1vg_k$() { + return this.next; + } + get_prev_wosl18_k$() { + return this.prev; + } + get_mode_woqlt8_k$() { + return this.mode; + } + modeEnum() { + return Companion_getInstance_1281().fromValue(this.mode); + } + component1_7eebsc_k$() { + return this.next; + } + component2_7eebsb_k$() { + return this.prev; + } + component3_7eebsa_k$() { + return this.mode; + } + copy_knxwhz_k$(next, prev, mode) { + return new KCursorReq_0(next, prev, mode); + } + copy(next, prev, mode, $super) { + next = next === VOID ? this.next : next; + prev = prev === VOID ? this.prev : prev; + mode = mode === VOID ? this.mode : mode; + return this.copy_knxwhz_k$(next, prev, mode); + } + toString() { + return 'KCursorReq(next=' + this.next.toString() + ', prev=' + this.prev.toString() + ', mode=' + this.mode + ')'; + } + hashCode() { + var result = this.next.hashCode(); + result = imul(result, 31) + this.prev.hashCode() | 0; + result = imul(result, 31) + this.mode | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KCursorReq_0)) + return false; + var tmp0_other_with_cast = other instanceof KCursorReq_0 ? other : THROW_CCE(); + if (!this.next.equals(tmp0_other_with_cast.next)) + return false; + if (!this.prev.equals(tmp0_other_with_cast.prev)) + return false; + if (!(this.mode === tmp0_other_with_cast.mode)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KCursorReq_un5qq_k$(seen1, next, prev, mode, serializationConstructorMarker) { + Companion_instance_1305; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1292().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.next = new Long(0, 0); + else + $this.next = next; + if (0 === (seen1 & 2)) + $this.prev = new Long(0, 0); + else + $this.prev = prev; + if (0 === (seen1 & 4)) + $this.mode = 0; + else + $this.mode = mode; + return $this; + } + } + class Companion_1306 { + constructor() { + this.targetPath = '/bilibili.main.community.reply.v1.CursorReply'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1293(); + } + } + class $serializer_1293 { + constructor() { + $serializer_instance_1293 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KCursorReply', this, 6); + tmp0_serialDesc.addElement_5pzumi_k$('next', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('prev', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('isBegin', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('isEnd', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('mode', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('modeText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), LongSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = new Long(0, 0); + var tmp6_local2 = false; + var tmp7_local3 = false; + var tmp8_local4 = 0; + var tmp9_local5 = null; + var tmp10_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp10_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp10_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp10_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + } else + while (tmp1_flag) { + tmp2_index = tmp10_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp10_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp10_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp10_input.endStructure_1xqz0n_k$(tmp0_desc); + return KCursorReply_0.new_com_bapis_bilibili_main_community_reply_v1_KCursorReply_mxa1zn_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); + } + serialize_3uz8bg_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.next.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.next); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.prev.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.prev); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.isBegin === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 2, value.isBegin); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.isEnd === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 3, value.isEnd); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.mode === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 4, value.mode); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.modeText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.modeText); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_3uz8bg_k$(encoder, value instanceof KCursorReply_0 ? value : THROW_CCE()); + } + } + class KCursorReply_0 { + constructor(next, prev, isBegin, isEnd, mode, modeText) { + Companion_instance_1306; + next = next === VOID ? new Long(0, 0) : next; + prev = prev === VOID ? new Long(0, 0) : prev; + isBegin = isBegin === VOID ? false : isBegin; + isEnd = isEnd === VOID ? false : isEnd; + mode = mode === VOID ? 0 : mode; + modeText = modeText === VOID ? '' : modeText; + this.next = next; + this.prev = prev; + this.isBegin = isBegin; + this.isEnd = isEnd; + this.mode = mode; + this.modeText = modeText; + } + get_next_wor1vg_k$() { + return this.next; + } + get_prev_wosl18_k$() { + return this.prev; + } + get_isBegin_z9275i_k$() { + return this.isBegin; + } + get_isEnd_it6re0_k$() { + return this.isEnd; + } + get_mode_woqlt8_k$() { + return this.mode; + } + get_modeText_sz6zi1_k$() { + return this.modeText; + } + modeEnum() { + return Companion_getInstance_1281().fromValue(this.mode); + } + component1_7eebsc_k$() { + return this.next; + } + component2_7eebsb_k$() { + return this.prev; + } + component3_7eebsa_k$() { + return this.isBegin; + } + component4_7eebs9_k$() { + return this.isEnd; + } + component5_7eebs8_k$() { + return this.mode; + } + component6_7eebs7_k$() { + return this.modeText; + } + copy_gyr4xf_k$(next, prev, isBegin, isEnd, mode, modeText) { + return new KCursorReply_0(next, prev, isBegin, isEnd, mode, modeText); + } + copy(next, prev, isBegin, isEnd, mode, modeText, $super) { + next = next === VOID ? this.next : next; + prev = prev === VOID ? this.prev : prev; + isBegin = isBegin === VOID ? this.isBegin : isBegin; + isEnd = isEnd === VOID ? this.isEnd : isEnd; + mode = mode === VOID ? this.mode : mode; + modeText = modeText === VOID ? this.modeText : modeText; + return this.copy_gyr4xf_k$(next, prev, isBegin, isEnd, mode, modeText); + } + toString() { + return 'KCursorReply(next=' + this.next.toString() + ', prev=' + this.prev.toString() + ', isBegin=' + this.isBegin + ', isEnd=' + this.isEnd + ', mode=' + this.mode + ', modeText=' + this.modeText + ')'; + } + hashCode() { + var result = this.next.hashCode(); + result = imul(result, 31) + this.prev.hashCode() | 0; + result = imul(result, 31) + getBooleanHashCode(this.isBegin) | 0; + result = imul(result, 31) + getBooleanHashCode(this.isEnd) | 0; + result = imul(result, 31) + this.mode | 0; + result = imul(result, 31) + getStringHashCode(this.modeText) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KCursorReply_0)) + return false; + var tmp0_other_with_cast = other instanceof KCursorReply_0 ? other : THROW_CCE(); + if (!this.next.equals(tmp0_other_with_cast.next)) + return false; + if (!this.prev.equals(tmp0_other_with_cast.prev)) + return false; + if (!(this.isBegin === tmp0_other_with_cast.isBegin)) + return false; + if (!(this.isEnd === tmp0_other_with_cast.isEnd)) + return false; + if (!(this.mode === tmp0_other_with_cast.mode)) + return false; + if (!(this.modeText === tmp0_other_with_cast.modeText)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KCursorReply_mxa1zn_k$(seen1, next, prev, isBegin, isEnd, mode, modeText, serializationConstructorMarker) { + Companion_instance_1306; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1293().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.next = new Long(0, 0); + else + $this.next = next; + if (0 === (seen1 & 2)) + $this.prev = new Long(0, 0); + else + $this.prev = prev; + if (0 === (seen1 & 4)) + $this.isBegin = false; + else + $this.isBegin = isBegin; + if (0 === (seen1 & 8)) + $this.isEnd = false; + else + $this.isEnd = isEnd; + if (0 === (seen1 & 16)) + $this.mode = 0; + else + $this.mode = mode; + if (0 === (seen1 & 32)) + $this.modeText = ''; + else + $this.modeText = modeText; + return $this; + } + } + class Companion_1307 { + constructor() { + Companion_instance_1307 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KTextStyle$KFontStyle$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KTextStyle$KFontStyle$Companion$_anonymous__lrx8y5); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_162(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.main.community.reply.v1.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KFontStyle_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.main.community.reply.v1.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KFontStyle with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_162(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_1294 { + constructor() { + $serializer_instance_1294 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.main.community.reply.v1.KTextStyle.KFontStyle', 3); + tmp0_serialDesc.addElement_5pzumi_k$('NORMAL', false); + tmp0_serialDesc.addElement_5pzumi_k$('BOLD', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_162()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_yyu4ng_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_yyu4ng_k$(encoder, value instanceof KFontStyle ? value : THROW_CCE()); + } + } + class KFontStyle extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_1308 { + constructor() { + this.targetPath = '/bilibili.main.community.reply.v1.TextStyle'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1295(); + } + } + class $serializer_1295 { + constructor() { + $serializer_instance_1295 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KTextStyle', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('fontSize', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('fontStyle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('textDayColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('textNightColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = 0; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KTextStyle.new_com_bapis_bilibili_main_community_reply_v1_KTextStyle_o0axmc_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_o9kx04_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.fontSize === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.fontSize); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.fontStyle === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.fontStyle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.textDayColor === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.textDayColor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.textNightColor === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.textNightColor); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_o9kx04_k$(encoder, value instanceof KTextStyle ? value : THROW_CCE()); + } + } + class KTextStyle { + constructor(fontSize, fontStyle, textDayColor, textNightColor) { + Companion_instance_1308; + fontSize = fontSize === VOID ? 0 : fontSize; + fontStyle = fontStyle === VOID ? 0 : fontStyle; + textDayColor = textDayColor === VOID ? '' : textDayColor; + textNightColor = textNightColor === VOID ? '' : textNightColor; + this.fontSize = fontSize; + this.fontStyle = fontStyle; + this.textDayColor = textDayColor; + this.textNightColor = textNightColor; + } + get_fontSize_pr9n47_k$() { + return this.fontSize; + } + get_fontStyle_h4vaiv_k$() { + return this.fontStyle; + } + get_textDayColor_vm8i4d_k$() { + return this.textDayColor; + } + get_textNightColor_luh3r5_k$() { + return this.textNightColor; + } + fontStyleEnum() { + return Companion_getInstance_1307().fromValue(this.fontStyle); + } + component1_7eebsc_k$() { + return this.fontSize; + } + component2_7eebsb_k$() { + return this.fontStyle; + } + component3_7eebsa_k$() { + return this.textDayColor; + } + component4_7eebs9_k$() { + return this.textNightColor; + } + copy_14br63_k$(fontSize, fontStyle, textDayColor, textNightColor) { + return new KTextStyle(fontSize, fontStyle, textDayColor, textNightColor); + } + copy(fontSize, fontStyle, textDayColor, textNightColor, $super) { + fontSize = fontSize === VOID ? this.fontSize : fontSize; + fontStyle = fontStyle === VOID ? this.fontStyle : fontStyle; + textDayColor = textDayColor === VOID ? this.textDayColor : textDayColor; + textNightColor = textNightColor === VOID ? this.textNightColor : textNightColor; + return this.copy_14br63_k$(fontSize, fontStyle, textDayColor, textNightColor); + } + toString() { + return 'KTextStyle(fontSize=' + this.fontSize + ', fontStyle=' + this.fontStyle + ', textDayColor=' + this.textDayColor + ', textNightColor=' + this.textNightColor + ')'; + } + hashCode() { + var result = this.fontSize; + result = imul(result, 31) + this.fontStyle | 0; + result = imul(result, 31) + getStringHashCode(this.textDayColor) | 0; + result = imul(result, 31) + getStringHashCode(this.textNightColor) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KTextStyle)) + return false; + var tmp0_other_with_cast = other instanceof KTextStyle ? other : THROW_CCE(); + if (!(this.fontSize === tmp0_other_with_cast.fontSize)) + return false; + if (!(this.fontStyle === tmp0_other_with_cast.fontStyle)) + return false; + if (!(this.textDayColor === tmp0_other_with_cast.textDayColor)) + return false; + if (!(this.textNightColor === tmp0_other_with_cast.textNightColor)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KTextStyle_o0axmc_k$(seen1, fontSize, fontStyle, textDayColor, textNightColor, serializationConstructorMarker) { + Companion_instance_1308; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1295().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.fontSize = 0; + else + $this.fontSize = fontSize; + if (0 === (seen1 & 2)) + $this.fontStyle = 0; + else + $this.fontStyle = fontStyle; + if (0 === (seen1 & 4)) + $this.textDayColor = ''; + else + $this.textDayColor = textDayColor; + if (0 === (seen1 & 8)) + $this.textNightColor = ''; + else + $this.textNightColor = textNightColor; + return $this; + } + } + class Companion_1309 { + constructor() { + Companion_instance_1309 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KEmptyPage$KAction$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KEmptyPage$KAction$Companion$_anonymous__s0kvzz); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_163(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.main.community.reply.v1.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KAction_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.main.community.reply.v1.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KAction with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_163(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_1296 { + constructor() { + $serializer_instance_1296 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.main.community.reply.v1.KEmptyPage.KAction', 4); + tmp0_serialDesc.addElement_5pzumi_k$('UNAVAILABLE', false); + tmp0_serialDesc.addElement_5pzumi_k$('SHOW_KEYBOARD', false); + tmp0_serialDesc.addElement_5pzumi_k$('SEND_REPLY_WITH_BOLD_TEXT', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_163()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_kgs68g_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_kgs68g_k$(encoder, value instanceof KAction ? value : THROW_CCE()); + } + } + class Companion_1310 { + constructor() { + this.targetPath = '/bilibili.main.community.reply.v1.EmptyPage.Text'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1297(); + } + } + class $serializer_1297 { + constructor() { + $serializer_instance_1297 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KEmptyPage.KText', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('raw', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('style', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('action', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), get_nullable($serializer_getInstance_1295()), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = 0; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_1295(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_1295(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KText_2.new_com_bapis_bilibili_main_community_reply_v1_KEmptyPage_KText_2hqdpk_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_s8i6wi_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.raw === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.raw); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.style == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_1295(), value.style); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.action === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.action); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_s8i6wi_k$(encoder, value instanceof KText_2 ? value : THROW_CCE()); + } + } + class Companion_1311 { + constructor() { + this.targetPath = '/bilibili.main.community.reply.v1.EmptyPage.Button'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1298(); + } + } + class $serializer_1298 { + constructor() { + $serializer_instance_1298 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KEmptyPage.KButton', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('action', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = 0; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KButton_6.new_com_bapis_bilibili_main_community_reply_v1_KEmptyPage_KButton_ooos8t_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_5pxyrx_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.action === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.action); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_5pxyrx_k$(encoder, value instanceof KButton_6 ? value : THROW_CCE()); + } + } + class KAction extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class KText_2 { + constructor(raw, style, action) { + Companion_instance_1310; + raw = raw === VOID ? '' : raw; + style = style === VOID ? null : style; + action = action === VOID ? 0 : action; + this.raw = raw; + this.style = style; + this.action = action; + } + get_raw_18ix4x_k$() { + return this.raw; + } + get_style_iyqetk_k$() { + return this.style; + } + get_action_avldmn_k$() { + return this.action; + } + actionEnum() { + return Companion_getInstance_1309().fromValue(this.action); + } + component1_7eebsc_k$() { + return this.raw; + } + component2_7eebsb_k$() { + return this.style; + } + component3_7eebsa_k$() { + return this.action; + } + copy_aqmtc3_k$(raw, style, action) { + return new KText_2(raw, style, action); + } + copy(raw, style, action, $super) { + raw = raw === VOID ? this.raw : raw; + style = style === VOID ? this.style : style; + action = action === VOID ? this.action : action; + return this.copy_aqmtc3_k$(raw, style, action); + } + toString() { + return 'KText(raw=' + this.raw + ', style=' + this.style + ', action=' + this.action + ')'; + } + hashCode() { + var result = getStringHashCode(this.raw); + result = imul(result, 31) + (this.style == null ? 0 : this.style.hashCode()) | 0; + result = imul(result, 31) + this.action | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KText_2)) + return false; + var tmp0_other_with_cast = other instanceof KText_2 ? other : THROW_CCE(); + if (!(this.raw === tmp0_other_with_cast.raw)) + return false; + if (!equals(this.style, tmp0_other_with_cast.style)) + return false; + if (!(this.action === tmp0_other_with_cast.action)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KEmptyPage_KText_2hqdpk_k$(seen1, raw, style, action, serializationConstructorMarker) { + Companion_instance_1310; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1297().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.raw = ''; + else + $this.raw = raw; + if (0 === (seen1 & 2)) + $this.style = null; + else + $this.style = style; + if (0 === (seen1 & 4)) + $this.action = 0; + else + $this.action = action; + return $this; + } + } + class KButton_6 { + constructor(title, action) { + Companion_instance_1311; + title = title === VOID ? '' : title; + action = action === VOID ? 0 : action; + this.title = title; + this.action = action; + } + get_title_iz32un_k$() { + return this.title; + } + get_action_avldmn_k$() { + return this.action; + } + actionEnum() { + return Companion_getInstance_1309().fromValue(this.action); + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.action; + } + copy_1yzwer_k$(title, action) { + return new KButton_6(title, action); + } + copy(title, action, $super) { + title = title === VOID ? this.title : title; + action = action === VOID ? this.action : action; + return this.copy_1yzwer_k$(title, action); + } + toString() { + return 'KButton(title=' + this.title + ', action=' + this.action + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + this.action | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KButton_6)) + return false; + var tmp0_other_with_cast = other instanceof KButton_6 ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.action === tmp0_other_with_cast.action)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KEmptyPage_KButton_ooos8t_k$(seen1, title, action, serializationConstructorMarker) { + Companion_instance_1311; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1298().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.action = 0; + else + $this.action = action; + return $this; + } + } + class Companion_1312 { + constructor() { + Companion_instance_1312 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, new ArrayListSerializer($serializer_getInstance_1297()), null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.main.community.reply.v1.EmptyPage'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1299(); + } + } + class $serializer_1299 { + constructor() { + $serializer_instance_1299 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KEmptyPage', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('imageUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('texts', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('leftButton', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('rightButton', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_1312().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), tmp0_cached[1], get_nullable($serializer_getInstance_1298()), get_nullable($serializer_getInstance_1298())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp9_cached = Companion_getInstance_1312().$childSerializers_1; + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp9_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_1298(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_1298(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp9_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_1298(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_1298(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KEmptyPage.new_com_bapis_bilibili_main_community_reply_v1_KEmptyPage_8k9hrf_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_gzffvg_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_1312().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.imageUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.imageUrl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !equals(value.texts, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 1, tmp2_cached[1], value.texts); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.leftButton == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_1298(), value.leftButton); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.rightButton == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_1298(), value.rightButton); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_gzffvg_k$(encoder, value instanceof KEmptyPage ? value : THROW_CCE()); + } + } + class KEmptyPage { + constructor(imageUrl, texts, leftButton, rightButton) { + Companion_getInstance_1312(); + imageUrl = imageUrl === VOID ? '' : imageUrl; + texts = texts === VOID ? emptyList() : texts; + leftButton = leftButton === VOID ? null : leftButton; + rightButton = rightButton === VOID ? null : rightButton; + this.imageUrl = imageUrl; + this.texts = texts; + this.leftButton = leftButton; + this.rightButton = rightButton; + } + get_imageUrl_p0dvj1_k$() { + return this.imageUrl; + } + get_texts_iz0m2l_k$() { + return this.texts; + } + get_leftButton_6to5gi_k$() { + return this.leftButton; + } + get_rightButton_xf75n_k$() { + return this.rightButton; + } + component1_7eebsc_k$() { + return this.imageUrl; + } + component2_7eebsb_k$() { + return this.texts; + } + component3_7eebsa_k$() { + return this.leftButton; + } + component4_7eebs9_k$() { + return this.rightButton; + } + copy_mzzjwu_k$(imageUrl, texts, leftButton, rightButton) { + return new KEmptyPage(imageUrl, texts, leftButton, rightButton); + } + copy(imageUrl, texts, leftButton, rightButton, $super) { + imageUrl = imageUrl === VOID ? this.imageUrl : imageUrl; + texts = texts === VOID ? this.texts : texts; + leftButton = leftButton === VOID ? this.leftButton : leftButton; + rightButton = rightButton === VOID ? this.rightButton : rightButton; + return this.copy_mzzjwu_k$(imageUrl, texts, leftButton, rightButton); + } + toString() { + return 'KEmptyPage(imageUrl=' + this.imageUrl + ', texts=' + this.texts + ', leftButton=' + this.leftButton + ', rightButton=' + this.rightButton + ')'; + } + hashCode() { + var result = getStringHashCode(this.imageUrl); + result = imul(result, 31) + hashCode(this.texts) | 0; + result = imul(result, 31) + (this.leftButton == null ? 0 : this.leftButton.hashCode()) | 0; + result = imul(result, 31) + (this.rightButton == null ? 0 : this.rightButton.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KEmptyPage)) + return false; + var tmp0_other_with_cast = other instanceof KEmptyPage ? other : THROW_CCE(); + if (!(this.imageUrl === tmp0_other_with_cast.imageUrl)) + return false; + if (!equals(this.texts, tmp0_other_with_cast.texts)) + return false; + if (!equals(this.leftButton, tmp0_other_with_cast.leftButton)) + return false; + if (!equals(this.rightButton, tmp0_other_with_cast.rightButton)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KEmptyPage_8k9hrf_k$(seen1, imageUrl, texts, leftButton, rightButton, serializationConstructorMarker) { + Companion_getInstance_1312(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1299().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.imageUrl = ''; + else + $this.imageUrl = imageUrl; + if (0 === (seen1 & 2)) + $this.texts = emptyList(); + else + $this.texts = texts; + if (0 === (seen1 & 4)) + $this.leftButton = null; + else + $this.leftButton = leftButton; + if (0 === (seen1 & 8)) + $this.rightButton = null; + else + $this.rightButton = rightButton; + return $this; + } + } + class Companion_1313 { + constructor() { + this.targetPath = '/bilibili.main.community.reply.v1.SubjectControl.FilterTag'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1300(); + } + } + class $serializer_1300 { + constructor() { + $serializer_instance_1300 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KSubjectControl.KFilterTag', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('name', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('eventId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KFilterTag.new_com_bapis_bilibili_main_community_reply_v1_KSubjectControl_KFilterTag_8ytpmd_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_3zuwx0_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.name === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.name); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.eventId === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.eventId); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_3zuwx0_k$(encoder, value instanceof KFilterTag ? value : THROW_CCE()); + } + } + class Companion_1314 { + constructor() { + this.targetPath = '/bilibili.main.community.reply.v1.SubjectControl.CmTopReplyProtection'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1301(); + } + } + class $serializer_1301 { + constructor() { + $serializer_instance_1301 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KSubjectControl.KCmTopReplyProtection', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('protectedTopRpid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('popupMessage', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('appealUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KCmTopReplyProtection.new_com_bapis_bilibili_main_community_reply_v1_KSubjectControl_KCmTopReplyProtection_23hacr_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_m9sb0o_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.protectedTopRpid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.protectedTopRpid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.popupMessage === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.popupMessage); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.appealUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.appealUrl); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_m9sb0o_k$(encoder, value instanceof KCmTopReplyProtection ? value : THROW_CCE()); + } + } + class KFilterTag { + constructor(name, eventId) { + Companion_instance_1313; + name = name === VOID ? '' : name; + eventId = eventId === VOID ? '' : eventId; + this.name = name; + this.eventId = eventId; + } + get_name_woqyms_k$() { + return this.name; + } + get_eventId_lhza1g_k$() { + return this.eventId; + } + component1_7eebsc_k$() { + return this.name; + } + component2_7eebsb_k$() { + return this.eventId; + } + copy_plwnsl_k$(name, eventId) { + return new KFilterTag(name, eventId); + } + copy(name, eventId, $super) { + name = name === VOID ? this.name : name; + eventId = eventId === VOID ? this.eventId : eventId; + return this.copy_plwnsl_k$(name, eventId); + } + toString() { + return 'KFilterTag(name=' + this.name + ', eventId=' + this.eventId + ')'; + } + hashCode() { + var result = getStringHashCode(this.name); + result = imul(result, 31) + getStringHashCode(this.eventId) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KFilterTag)) + return false; + var tmp0_other_with_cast = other instanceof KFilterTag ? other : THROW_CCE(); + if (!(this.name === tmp0_other_with_cast.name)) + return false; + if (!(this.eventId === tmp0_other_with_cast.eventId)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KSubjectControl_KFilterTag_8ytpmd_k$(seen1, name, eventId, serializationConstructorMarker) { + Companion_instance_1313; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1300().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.name = ''; + else + $this.name = name; + if (0 === (seen1 & 2)) + $this.eventId = ''; + else + $this.eventId = eventId; + return $this; + } + } + class KCmTopReplyProtection { + constructor(protectedTopRpid, popupMessage, appealUrl) { + Companion_instance_1314; + protectedTopRpid = protectedTopRpid === VOID ? new Long(0, 0) : protectedTopRpid; + popupMessage = popupMessage === VOID ? '' : popupMessage; + appealUrl = appealUrl === VOID ? '' : appealUrl; + this.protectedTopRpid = protectedTopRpid; + this.popupMessage = popupMessage; + this.appealUrl = appealUrl; + } + get_protectedTopRpid_vgxu5z_k$() { + return this.protectedTopRpid; + } + get_popupMessage_mdwykc_k$() { + return this.popupMessage; + } + get_appealUrl_thdd1l_k$() { + return this.appealUrl; + } + component1_7eebsc_k$() { + return this.protectedTopRpid; + } + component2_7eebsb_k$() { + return this.popupMessage; + } + component3_7eebsa_k$() { + return this.appealUrl; + } + copy_ijggmr_k$(protectedTopRpid, popupMessage, appealUrl) { + return new KCmTopReplyProtection(protectedTopRpid, popupMessage, appealUrl); + } + copy(protectedTopRpid, popupMessage, appealUrl, $super) { + protectedTopRpid = protectedTopRpid === VOID ? this.protectedTopRpid : protectedTopRpid; + popupMessage = popupMessage === VOID ? this.popupMessage : popupMessage; + appealUrl = appealUrl === VOID ? this.appealUrl : appealUrl; + return this.copy_ijggmr_k$(protectedTopRpid, popupMessage, appealUrl); + } + toString() { + return 'KCmTopReplyProtection(protectedTopRpid=' + this.protectedTopRpid.toString() + ', popupMessage=' + this.popupMessage + ', appealUrl=' + this.appealUrl + ')'; + } + hashCode() { + var result = this.protectedTopRpid.hashCode(); + result = imul(result, 31) + getStringHashCode(this.popupMessage) | 0; + result = imul(result, 31) + getStringHashCode(this.appealUrl) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KCmTopReplyProtection)) + return false; + var tmp0_other_with_cast = other instanceof KCmTopReplyProtection ? other : THROW_CCE(); + if (!this.protectedTopRpid.equals(tmp0_other_with_cast.protectedTopRpid)) + return false; + if (!(this.popupMessage === tmp0_other_with_cast.popupMessage)) + return false; + if (!(this.appealUrl === tmp0_other_with_cast.appealUrl)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KSubjectControl_KCmTopReplyProtection_23hacr_k$(seen1, protectedTopRpid, popupMessage, appealUrl, serializationConstructorMarker) { + Companion_instance_1314; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1301().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.protectedTopRpid = new Long(0, 0); + else + $this.protectedTopRpid = protectedTopRpid; + if (0 === (seen1 & 2)) + $this.popupMessage = ''; + else + $this.popupMessage = popupMessage; + if (0 === (seen1 & 4)) + $this.appealUrl = ''; + else + $this.appealUrl = appealUrl; + return $this; + } + } + class Companion_1315 { + constructor() { + Companion_instance_1315 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, new ArrayListSerializer($serializer_getInstance_1300()), null, null, null, null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.main.community.reply.v1.SubjectControl'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1302(); + } + } + class $serializer_1302 { + constructor() { + $serializer_instance_1302 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KSubjectControl', this, 29); + tmp0_serialDesc.addElement_5pzumi_k$('upMid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('isAssist', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('readOnly', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('hasVoteAccess', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('hasLotteryAccess', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('hasFoldedReply', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('bgText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('upBlocked', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('hasActivityAccess', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('showTitle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('showUpAction', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('switcherType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + tmp0_serialDesc.addElement_5pzumi_k$('inputDisable', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(13)); + tmp0_serialDesc.addElement_5pzumi_k$('rootText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(14)); + tmp0_serialDesc.addElement_5pzumi_k$('childText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(15)); + tmp0_serialDesc.addElement_5pzumi_k$('count', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(16)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(17)); + tmp0_serialDesc.addElement_5pzumi_k$('giveupText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(18)); + tmp0_serialDesc.addElement_5pzumi_k$('hasNoteAccess', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(19)); + tmp0_serialDesc.addElement_5pzumi_k$('disableJumpEmote', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(20)); + tmp0_serialDesc.addElement_5pzumi_k$('emptyBackgroundTextPlain', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(21)); + tmp0_serialDesc.addElement_5pzumi_k$('emptyBackgroundTextHighlight', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(22)); + tmp0_serialDesc.addElement_5pzumi_k$('emptyBackgroundUri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(23)); + tmp0_serialDesc.addElement_5pzumi_k$('supportFilterTags', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(24)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('screenshotIconState', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(25)); + tmp0_serialDesc.addElement_5pzumi_k$('uploadPictureIconState', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(26)); + tmp0_serialDesc.addElement_5pzumi_k$('emptyPage', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(27)); + tmp0_serialDesc.addElement_5pzumi_k$('cmTopReplyProtection', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(28)); + tmp0_serialDesc.addElement_5pzumi_k$('enableCharged', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(29)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_1315().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), StringSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), LongSerializer_getInstance(), BooleanSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), tmp0_cached[23], IntSerializer_getInstance(), IntSerializer_getInstance(), get_nullable($serializer_getInstance_1299()), get_nullable($serializer_getInstance_1301()), BooleanSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = false; + var tmp6_local2 = false; + var tmp7_local3 = false; + var tmp8_local4 = false; + var tmp9_local5 = false; + var tmp10_local6 = null; + var tmp11_local7 = false; + var tmp12_local8 = false; + var tmp13_local9 = false; + var tmp14_local10 = false; + var tmp15_local11 = new Long(0, 0); + var tmp16_local12 = false; + var tmp17_local13 = null; + var tmp18_local14 = null; + var tmp19_local15 = new Long(0, 0); + var tmp20_local16 = null; + var tmp21_local17 = null; + var tmp22_local18 = false; + var tmp23_local19 = false; + var tmp24_local20 = null; + var tmp25_local21 = null; + var tmp26_local22 = null; + var tmp27_local23 = null; + var tmp28_local24 = 0; + var tmp29_local25 = 0; + var tmp30_local26 = null; + var tmp31_local27 = null; + var tmp32_local28 = false; + var tmp33_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp34_cached = Companion_getInstance_1315().$childSerializers_1; + if (tmp33_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp33_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp33_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp33_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp33_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp33_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp33_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp33_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp33_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp33_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp33_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp33_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp33_input.decodeLongElement_994anb_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + tmp16_local12 = tmp33_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + tmp17_local13 = tmp33_input.decodeStringElement_3oenpg_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + tmp18_local14 = tmp33_input.decodeStringElement_3oenpg_k$(tmp0_desc, 14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + tmp19_local15 = tmp33_input.decodeLongElement_994anb_k$(tmp0_desc, 15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + tmp20_local16 = tmp33_input.decodeStringElement_3oenpg_k$(tmp0_desc, 16); + tmp3_bitMask0 = tmp3_bitMask0 | 65536; + tmp21_local17 = tmp33_input.decodeStringElement_3oenpg_k$(tmp0_desc, 17); + tmp3_bitMask0 = tmp3_bitMask0 | 131072; + tmp22_local18 = tmp33_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 18); + tmp3_bitMask0 = tmp3_bitMask0 | 262144; + tmp23_local19 = tmp33_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 19); + tmp3_bitMask0 = tmp3_bitMask0 | 524288; + tmp24_local20 = tmp33_input.decodeStringElement_3oenpg_k$(tmp0_desc, 20); + tmp3_bitMask0 = tmp3_bitMask0 | 1048576; + tmp25_local21 = tmp33_input.decodeStringElement_3oenpg_k$(tmp0_desc, 21); + tmp3_bitMask0 = tmp3_bitMask0 | 2097152; + tmp26_local22 = tmp33_input.decodeStringElement_3oenpg_k$(tmp0_desc, 22); + tmp3_bitMask0 = tmp3_bitMask0 | 4194304; + tmp27_local23 = tmp33_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 23, tmp34_cached[23], tmp27_local23); + tmp3_bitMask0 = tmp3_bitMask0 | 8388608; + tmp28_local24 = tmp33_input.decodeIntElement_941u6a_k$(tmp0_desc, 24); + tmp3_bitMask0 = tmp3_bitMask0 | 16777216; + tmp29_local25 = tmp33_input.decodeIntElement_941u6a_k$(tmp0_desc, 25); + tmp3_bitMask0 = tmp3_bitMask0 | 33554432; + tmp30_local26 = tmp33_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 26, $serializer_getInstance_1299(), tmp30_local26); + tmp3_bitMask0 = tmp3_bitMask0 | 67108864; + tmp31_local27 = tmp33_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 27, $serializer_getInstance_1301(), tmp31_local27); + tmp3_bitMask0 = tmp3_bitMask0 | 134217728; + tmp32_local28 = tmp33_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 28); + tmp3_bitMask0 = tmp3_bitMask0 | 268435456; + } else + while (tmp1_flag) { + tmp2_index = tmp33_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp33_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp33_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp33_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp33_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp33_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp33_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp33_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp33_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp33_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp33_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp33_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp33_input.decodeLongElement_994anb_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + case 12: + tmp16_local12 = tmp33_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + break; + case 13: + tmp17_local13 = tmp33_input.decodeStringElement_3oenpg_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + break; + case 14: + tmp18_local14 = tmp33_input.decodeStringElement_3oenpg_k$(tmp0_desc, 14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + break; + case 15: + tmp19_local15 = tmp33_input.decodeLongElement_994anb_k$(tmp0_desc, 15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + break; + case 16: + tmp20_local16 = tmp33_input.decodeStringElement_3oenpg_k$(tmp0_desc, 16); + tmp3_bitMask0 = tmp3_bitMask0 | 65536; + break; + case 17: + tmp21_local17 = tmp33_input.decodeStringElement_3oenpg_k$(tmp0_desc, 17); + tmp3_bitMask0 = tmp3_bitMask0 | 131072; + break; + case 18: + tmp22_local18 = tmp33_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 18); + tmp3_bitMask0 = tmp3_bitMask0 | 262144; + break; + case 19: + tmp23_local19 = tmp33_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 19); + tmp3_bitMask0 = tmp3_bitMask0 | 524288; + break; + case 20: + tmp24_local20 = tmp33_input.decodeStringElement_3oenpg_k$(tmp0_desc, 20); + tmp3_bitMask0 = tmp3_bitMask0 | 1048576; + break; + case 21: + tmp25_local21 = tmp33_input.decodeStringElement_3oenpg_k$(tmp0_desc, 21); + tmp3_bitMask0 = tmp3_bitMask0 | 2097152; + break; + case 22: + tmp26_local22 = tmp33_input.decodeStringElement_3oenpg_k$(tmp0_desc, 22); + tmp3_bitMask0 = tmp3_bitMask0 | 4194304; + break; + case 23: + tmp27_local23 = tmp33_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 23, tmp34_cached[23], tmp27_local23); + tmp3_bitMask0 = tmp3_bitMask0 | 8388608; + break; + case 24: + tmp28_local24 = tmp33_input.decodeIntElement_941u6a_k$(tmp0_desc, 24); + tmp3_bitMask0 = tmp3_bitMask0 | 16777216; + break; + case 25: + tmp29_local25 = tmp33_input.decodeIntElement_941u6a_k$(tmp0_desc, 25); + tmp3_bitMask0 = tmp3_bitMask0 | 33554432; + break; + case 26: + tmp30_local26 = tmp33_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 26, $serializer_getInstance_1299(), tmp30_local26); + tmp3_bitMask0 = tmp3_bitMask0 | 67108864; + break; + case 27: + tmp31_local27 = tmp33_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 27, $serializer_getInstance_1301(), tmp31_local27); + tmp3_bitMask0 = tmp3_bitMask0 | 134217728; + break; + case 28: + tmp32_local28 = tmp33_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 28); + tmp3_bitMask0 = tmp3_bitMask0 | 268435456; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp33_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSubjectControl.new_com_bapis_bilibili_main_community_reply_v1_KSubjectControl_cws5kc_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, tmp18_local14, tmp19_local15, tmp20_local16, tmp21_local17, tmp22_local18, tmp23_local19, tmp24_local20, tmp25_local21, tmp26_local22, tmp27_local23, tmp28_local24, tmp29_local25, tmp30_local26, tmp31_local27, tmp32_local28, null); + } + serialize_yz3gvx_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_1315().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.upMid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.upMid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.isAssist === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 1, value.isAssist); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.readOnly === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 2, value.readOnly); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.hasVoteAccess === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 3, value.hasVoteAccess); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.hasLotteryAccess === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 4, value.hasLotteryAccess); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.hasFoldedReply === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 5, value.hasFoldedReply); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.bgText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.bgText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.upBlocked === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 7, value.upBlocked); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.hasActivityAccess === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 8, value.hasActivityAccess); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.showTitle === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 9, value.showTitle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.showUpAction === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 10, value.showUpAction); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !value.switcherType.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 11, value.switcherType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !(value.inputDisable === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 12, value.inputDisable); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 13) ? true : !(value.rootText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 13, value.rootText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 14) ? true : !(value.childText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 14, value.childText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 15) ? true : !value.count.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 15, value.count); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 16) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 16, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 17) ? true : !(value.giveupText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 17, value.giveupText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 18) ? true : !(value.hasNoteAccess === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 18, value.hasNoteAccess); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 19) ? true : !(value.disableJumpEmote === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 19, value.disableJumpEmote); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 20) ? true : !(value.emptyBackgroundTextPlain === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 20, value.emptyBackgroundTextPlain); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 21) ? true : !(value.emptyBackgroundTextHighlight === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 21, value.emptyBackgroundTextHighlight); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 22) ? true : !(value.emptyBackgroundUri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 22, value.emptyBackgroundUri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 23) ? true : !equals(value.supportFilterTags, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 23, tmp2_cached[23], value.supportFilterTags); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 24) ? true : !(value.screenshotIconState === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 24, value.screenshotIconState); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 25) ? true : !(value.uploadPictureIconState === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 25, value.uploadPictureIconState); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 26) ? true : !(value.emptyPage == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 26, $serializer_getInstance_1299(), value.emptyPage); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 27) ? true : !(value.cmTopReplyProtection == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 27, $serializer_getInstance_1301(), value.cmTopReplyProtection); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 28) ? true : !(value.enableCharged === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 28, value.enableCharged); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_yz3gvx_k$(encoder, value instanceof KSubjectControl ? value : THROW_CCE()); + } + } + class KSubjectControl { + constructor(upMid, isAssist, readOnly, hasVoteAccess, hasLotteryAccess, hasFoldedReply, bgText, upBlocked, hasActivityAccess, showTitle, showUpAction, switcherType, inputDisable, rootText, childText, count, title, giveupText, hasNoteAccess, disableJumpEmote, emptyBackgroundTextPlain, emptyBackgroundTextHighlight, emptyBackgroundUri, supportFilterTags, screenshotIconState, uploadPictureIconState, emptyPage, cmTopReplyProtection, enableCharged) { + Companion_getInstance_1315(); + upMid = upMid === VOID ? new Long(0, 0) : upMid; + isAssist = isAssist === VOID ? false : isAssist; + readOnly = readOnly === VOID ? false : readOnly; + hasVoteAccess = hasVoteAccess === VOID ? false : hasVoteAccess; + hasLotteryAccess = hasLotteryAccess === VOID ? false : hasLotteryAccess; + hasFoldedReply = hasFoldedReply === VOID ? false : hasFoldedReply; + bgText = bgText === VOID ? '' : bgText; + upBlocked = upBlocked === VOID ? false : upBlocked; + hasActivityAccess = hasActivityAccess === VOID ? false : hasActivityAccess; + showTitle = showTitle === VOID ? false : showTitle; + showUpAction = showUpAction === VOID ? false : showUpAction; + switcherType = switcherType === VOID ? new Long(0, 0) : switcherType; + inputDisable = inputDisable === VOID ? false : inputDisable; + rootText = rootText === VOID ? '' : rootText; + childText = childText === VOID ? '' : childText; + count = count === VOID ? new Long(0, 0) : count; + title = title === VOID ? '' : title; + giveupText = giveupText === VOID ? '' : giveupText; + hasNoteAccess = hasNoteAccess === VOID ? false : hasNoteAccess; + disableJumpEmote = disableJumpEmote === VOID ? false : disableJumpEmote; + emptyBackgroundTextPlain = emptyBackgroundTextPlain === VOID ? '' : emptyBackgroundTextPlain; + emptyBackgroundTextHighlight = emptyBackgroundTextHighlight === VOID ? '' : emptyBackgroundTextHighlight; + emptyBackgroundUri = emptyBackgroundUri === VOID ? '' : emptyBackgroundUri; + supportFilterTags = supportFilterTags === VOID ? emptyList() : supportFilterTags; + screenshotIconState = screenshotIconState === VOID ? 0 : screenshotIconState; + uploadPictureIconState = uploadPictureIconState === VOID ? 0 : uploadPictureIconState; + emptyPage = emptyPage === VOID ? null : emptyPage; + cmTopReplyProtection = cmTopReplyProtection === VOID ? null : cmTopReplyProtection; + enableCharged = enableCharged === VOID ? false : enableCharged; + this.upMid = upMid; + this.isAssist = isAssist; + this.readOnly = readOnly; + this.hasVoteAccess = hasVoteAccess; + this.hasLotteryAccess = hasLotteryAccess; + this.hasFoldedReply = hasFoldedReply; + this.bgText = bgText; + this.upBlocked = upBlocked; + this.hasActivityAccess = hasActivityAccess; + this.showTitle = showTitle; + this.showUpAction = showUpAction; + this.switcherType = switcherType; + this.inputDisable = inputDisable; + this.rootText = rootText; + this.childText = childText; + this.count = count; + this.title = title; + this.giveupText = giveupText; + this.hasNoteAccess = hasNoteAccess; + this.disableJumpEmote = disableJumpEmote; + this.emptyBackgroundTextPlain = emptyBackgroundTextPlain; + this.emptyBackgroundTextHighlight = emptyBackgroundTextHighlight; + this.emptyBackgroundUri = emptyBackgroundUri; + this.supportFilterTags = supportFilterTags; + this.screenshotIconState = screenshotIconState; + this.uploadPictureIconState = uploadPictureIconState; + this.emptyPage = emptyPage; + this.cmTopReplyProtection = cmTopReplyProtection; + this.enableCharged = enableCharged; + } + get_upMid_izqjd0_k$() { + return this.upMid; + } + get_isAssist_r32i2k_k$() { + return this.isAssist; + } + get_readOnly_ovku97_k$() { + return this.readOnly; + } + get_hasVoteAccess_ufbkzj_k$() { + return this.hasVoteAccess; + } + get_hasLotteryAccess_jqo2k_k$() { + return this.hasLotteryAccess; + } + get_hasFoldedReply_qokvax_k$() { + return this.hasFoldedReply; + } + get_bgText_be9o2j_k$() { + return this.bgText; + } + get_upBlocked_keypco_k$() { + return this.upBlocked; + } + get_hasActivityAccess_k0zl5w_k$() { + return this.hasActivityAccess; + } + get_showTitle_n4wmz2_k$() { + return this.showTitle; + } + get_showUpAction_47pofd_k$() { + return this.showUpAction; + } + get_switcherType_xkq8zo_k$() { + return this.switcherType; + } + get_inputDisable_mj8j5l_k$() { + return this.inputDisable; + } + get_rootText_yka1vs_k$() { + return this.rootText; + } + get_childText_6xuw1s_k$() { + return this.childText; + } + get_count_ipufhi_k$() { + return this.count; + } + get_title_iz32un_k$() { + return this.title; + } + get_giveupText_qi04le_k$() { + return this.giveupText; + } + get_hasNoteAccess_elsqnt_k$() { + return this.hasNoteAccess; + } + get_disableJumpEmote_6nfryt_k$() { + return this.disableJumpEmote; + } + get_emptyBackgroundTextPlain_jdorlh_k$() { + return this.emptyBackgroundTextPlain; + } + get_emptyBackgroundTextHighlight_1bllqj_k$() { + return this.emptyBackgroundTextHighlight; + } + get_emptyBackgroundUri_clne6y_k$() { + return this.emptyBackgroundUri; + } + get_supportFilterTags_wvynuf_k$() { + return this.supportFilterTags; + } + get_screenshotIconState_5ei2cp_k$() { + return this.screenshotIconState; + } + get_uploadPictureIconState_s092fw_k$() { + return this.uploadPictureIconState; + } + get_emptyPage_eyyyb1_k$() { + return this.emptyPage; + } + get_cmTopReplyProtection_wv0z8f_k$() { + return this.cmTopReplyProtection; + } + get_enableCharged_tirz0k_k$() { + return this.enableCharged; + } + screenshotIconStateEnum() { + return Companion_getInstance_1282().fromValue(this.screenshotIconState); + } + uploadPictureIconStateEnum() { + return Companion_getInstance_1282().fromValue(this.uploadPictureIconState); + } + component1_7eebsc_k$() { + return this.upMid; + } + component2_7eebsb_k$() { + return this.isAssist; + } + component3_7eebsa_k$() { + return this.readOnly; + } + component4_7eebs9_k$() { + return this.hasVoteAccess; + } + component5_7eebs8_k$() { + return this.hasLotteryAccess; + } + component6_7eebs7_k$() { + return this.hasFoldedReply; + } + component7_7eebs6_k$() { + return this.bgText; + } + component8_7eebs5_k$() { + return this.upBlocked; + } + component9_7eebs4_k$() { + return this.hasActivityAccess; + } + component10_gazzfo_k$() { + return this.showTitle; + } + component11_gazzfn_k$() { + return this.showUpAction; + } + component12_gazzfm_k$() { + return this.switcherType; + } + component13_gazzfl_k$() { + return this.inputDisable; + } + component14_gazzfk_k$() { + return this.rootText; + } + component15_gazzfj_k$() { + return this.childText; + } + component16_gazzfi_k$() { + return this.count; + } + component17_gazzfh_k$() { + return this.title; + } + component18_gazzfg_k$() { + return this.giveupText; + } + component19_gazzff_k$() { + return this.hasNoteAccess; + } + component20_gazzet_k$() { + return this.disableJumpEmote; + } + component21_gazzes_k$() { + return this.emptyBackgroundTextPlain; + } + component22_gazzer_k$() { + return this.emptyBackgroundTextHighlight; + } + component23_gazzeq_k$() { + return this.emptyBackgroundUri; + } + component24_gazzep_k$() { + return this.supportFilterTags; + } + component25_gazzeo_k$() { + return this.screenshotIconState; + } + component26_gazzen_k$() { + return this.uploadPictureIconState; + } + component27_gazzem_k$() { + return this.emptyPage; + } + component28_gazzel_k$() { + return this.cmTopReplyProtection; + } + component29_gazzek_k$() { + return this.enableCharged; + } + copy_jtvwln_k$(upMid, isAssist, readOnly, hasVoteAccess, hasLotteryAccess, hasFoldedReply, bgText, upBlocked, hasActivityAccess, showTitle, showUpAction, switcherType, inputDisable, rootText, childText, count, title, giveupText, hasNoteAccess, disableJumpEmote, emptyBackgroundTextPlain, emptyBackgroundTextHighlight, emptyBackgroundUri, supportFilterTags, screenshotIconState, uploadPictureIconState, emptyPage, cmTopReplyProtection, enableCharged) { + return new KSubjectControl(upMid, isAssist, readOnly, hasVoteAccess, hasLotteryAccess, hasFoldedReply, bgText, upBlocked, hasActivityAccess, showTitle, showUpAction, switcherType, inputDisable, rootText, childText, count, title, giveupText, hasNoteAccess, disableJumpEmote, emptyBackgroundTextPlain, emptyBackgroundTextHighlight, emptyBackgroundUri, supportFilterTags, screenshotIconState, uploadPictureIconState, emptyPage, cmTopReplyProtection, enableCharged); + } + copy(upMid, isAssist, readOnly, hasVoteAccess, hasLotteryAccess, hasFoldedReply, bgText, upBlocked, hasActivityAccess, showTitle, showUpAction, switcherType, inputDisable, rootText, childText, count, title, giveupText, hasNoteAccess, disableJumpEmote, emptyBackgroundTextPlain, emptyBackgroundTextHighlight, emptyBackgroundUri, supportFilterTags, screenshotIconState, uploadPictureIconState, emptyPage, cmTopReplyProtection, enableCharged, $super) { + upMid = upMid === VOID ? this.upMid : upMid; + isAssist = isAssist === VOID ? this.isAssist : isAssist; + readOnly = readOnly === VOID ? this.readOnly : readOnly; + hasVoteAccess = hasVoteAccess === VOID ? this.hasVoteAccess : hasVoteAccess; + hasLotteryAccess = hasLotteryAccess === VOID ? this.hasLotteryAccess : hasLotteryAccess; + hasFoldedReply = hasFoldedReply === VOID ? this.hasFoldedReply : hasFoldedReply; + bgText = bgText === VOID ? this.bgText : bgText; + upBlocked = upBlocked === VOID ? this.upBlocked : upBlocked; + hasActivityAccess = hasActivityAccess === VOID ? this.hasActivityAccess : hasActivityAccess; + showTitle = showTitle === VOID ? this.showTitle : showTitle; + showUpAction = showUpAction === VOID ? this.showUpAction : showUpAction; + switcherType = switcherType === VOID ? this.switcherType : switcherType; + inputDisable = inputDisable === VOID ? this.inputDisable : inputDisable; + rootText = rootText === VOID ? this.rootText : rootText; + childText = childText === VOID ? this.childText : childText; + count = count === VOID ? this.count : count; + title = title === VOID ? this.title : title; + giveupText = giveupText === VOID ? this.giveupText : giveupText; + hasNoteAccess = hasNoteAccess === VOID ? this.hasNoteAccess : hasNoteAccess; + disableJumpEmote = disableJumpEmote === VOID ? this.disableJumpEmote : disableJumpEmote; + emptyBackgroundTextPlain = emptyBackgroundTextPlain === VOID ? this.emptyBackgroundTextPlain : emptyBackgroundTextPlain; + emptyBackgroundTextHighlight = emptyBackgroundTextHighlight === VOID ? this.emptyBackgroundTextHighlight : emptyBackgroundTextHighlight; + emptyBackgroundUri = emptyBackgroundUri === VOID ? this.emptyBackgroundUri : emptyBackgroundUri; + supportFilterTags = supportFilterTags === VOID ? this.supportFilterTags : supportFilterTags; + screenshotIconState = screenshotIconState === VOID ? this.screenshotIconState : screenshotIconState; + uploadPictureIconState = uploadPictureIconState === VOID ? this.uploadPictureIconState : uploadPictureIconState; + emptyPage = emptyPage === VOID ? this.emptyPage : emptyPage; + cmTopReplyProtection = cmTopReplyProtection === VOID ? this.cmTopReplyProtection : cmTopReplyProtection; + enableCharged = enableCharged === VOID ? this.enableCharged : enableCharged; + return this.copy_jtvwln_k$(upMid, isAssist, readOnly, hasVoteAccess, hasLotteryAccess, hasFoldedReply, bgText, upBlocked, hasActivityAccess, showTitle, showUpAction, switcherType, inputDisable, rootText, childText, count, title, giveupText, hasNoteAccess, disableJumpEmote, emptyBackgroundTextPlain, emptyBackgroundTextHighlight, emptyBackgroundUri, supportFilterTags, screenshotIconState, uploadPictureIconState, emptyPage, cmTopReplyProtection, enableCharged); + } + toString() { + return 'KSubjectControl(upMid=' + this.upMid.toString() + ', isAssist=' + this.isAssist + ', readOnly=' + this.readOnly + ', hasVoteAccess=' + this.hasVoteAccess + ', hasLotteryAccess=' + this.hasLotteryAccess + ', hasFoldedReply=' + this.hasFoldedReply + ', bgText=' + this.bgText + ', upBlocked=' + this.upBlocked + ', hasActivityAccess=' + this.hasActivityAccess + ', showTitle=' + this.showTitle + ', showUpAction=' + this.showUpAction + ', switcherType=' + this.switcherType.toString() + ', inputDisable=' + this.inputDisable + ', rootText=' + this.rootText + ', childText=' + this.childText + ', count=' + this.count.toString() + ', title=' + this.title + ', giveupText=' + this.giveupText + ', hasNoteAccess=' + this.hasNoteAccess + ', disableJumpEmote=' + this.disableJumpEmote + ', emptyBackgroundTextPlain=' + this.emptyBackgroundTextPlain + ', emptyBackgroundTextHighlight=' + this.emptyBackgroundTextHighlight + ', emptyBackgroundUri=' + this.emptyBackgroundUri + ', supportFilterTags=' + this.supportFilterTags + ', screenshotIconState=' + this.screenshotIconState + ', uploadPictureIconState=' + this.uploadPictureIconState + ', emptyPage=' + this.emptyPage + ', cmTopReplyProtection=' + this.cmTopReplyProtection + ', enableCharged=' + this.enableCharged + ')'; + } + hashCode() { + var result = this.upMid.hashCode(); + result = imul(result, 31) + getBooleanHashCode(this.isAssist) | 0; + result = imul(result, 31) + getBooleanHashCode(this.readOnly) | 0; + result = imul(result, 31) + getBooleanHashCode(this.hasVoteAccess) | 0; + result = imul(result, 31) + getBooleanHashCode(this.hasLotteryAccess) | 0; + result = imul(result, 31) + getBooleanHashCode(this.hasFoldedReply) | 0; + result = imul(result, 31) + getStringHashCode(this.bgText) | 0; + result = imul(result, 31) + getBooleanHashCode(this.upBlocked) | 0; + result = imul(result, 31) + getBooleanHashCode(this.hasActivityAccess) | 0; + result = imul(result, 31) + getBooleanHashCode(this.showTitle) | 0; + result = imul(result, 31) + getBooleanHashCode(this.showUpAction) | 0; + result = imul(result, 31) + this.switcherType.hashCode() | 0; + result = imul(result, 31) + getBooleanHashCode(this.inputDisable) | 0; + result = imul(result, 31) + getStringHashCode(this.rootText) | 0; + result = imul(result, 31) + getStringHashCode(this.childText) | 0; + result = imul(result, 31) + this.count.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.title) | 0; + result = imul(result, 31) + getStringHashCode(this.giveupText) | 0; + result = imul(result, 31) + getBooleanHashCode(this.hasNoteAccess) | 0; + result = imul(result, 31) + getBooleanHashCode(this.disableJumpEmote) | 0; + result = imul(result, 31) + getStringHashCode(this.emptyBackgroundTextPlain) | 0; + result = imul(result, 31) + getStringHashCode(this.emptyBackgroundTextHighlight) | 0; + result = imul(result, 31) + getStringHashCode(this.emptyBackgroundUri) | 0; + result = imul(result, 31) + hashCode(this.supportFilterTags) | 0; + result = imul(result, 31) + this.screenshotIconState | 0; + result = imul(result, 31) + this.uploadPictureIconState | 0; + result = imul(result, 31) + (this.emptyPage == null ? 0 : this.emptyPage.hashCode()) | 0; + result = imul(result, 31) + (this.cmTopReplyProtection == null ? 0 : this.cmTopReplyProtection.hashCode()) | 0; + result = imul(result, 31) + getBooleanHashCode(this.enableCharged) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSubjectControl)) + return false; + var tmp0_other_with_cast = other instanceof KSubjectControl ? other : THROW_CCE(); + if (!this.upMid.equals(tmp0_other_with_cast.upMid)) + return false; + if (!(this.isAssist === tmp0_other_with_cast.isAssist)) + return false; + if (!(this.readOnly === tmp0_other_with_cast.readOnly)) + return false; + if (!(this.hasVoteAccess === tmp0_other_with_cast.hasVoteAccess)) + return false; + if (!(this.hasLotteryAccess === tmp0_other_with_cast.hasLotteryAccess)) + return false; + if (!(this.hasFoldedReply === tmp0_other_with_cast.hasFoldedReply)) + return false; + if (!(this.bgText === tmp0_other_with_cast.bgText)) + return false; + if (!(this.upBlocked === tmp0_other_with_cast.upBlocked)) + return false; + if (!(this.hasActivityAccess === tmp0_other_with_cast.hasActivityAccess)) + return false; + if (!(this.showTitle === tmp0_other_with_cast.showTitle)) + return false; + if (!(this.showUpAction === tmp0_other_with_cast.showUpAction)) + return false; + if (!this.switcherType.equals(tmp0_other_with_cast.switcherType)) + return false; + if (!(this.inputDisable === tmp0_other_with_cast.inputDisable)) + return false; + if (!(this.rootText === tmp0_other_with_cast.rootText)) + return false; + if (!(this.childText === tmp0_other_with_cast.childText)) + return false; + if (!this.count.equals(tmp0_other_with_cast.count)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.giveupText === tmp0_other_with_cast.giveupText)) + return false; + if (!(this.hasNoteAccess === tmp0_other_with_cast.hasNoteAccess)) + return false; + if (!(this.disableJumpEmote === tmp0_other_with_cast.disableJumpEmote)) + return false; + if (!(this.emptyBackgroundTextPlain === tmp0_other_with_cast.emptyBackgroundTextPlain)) + return false; + if (!(this.emptyBackgroundTextHighlight === tmp0_other_with_cast.emptyBackgroundTextHighlight)) + return false; + if (!(this.emptyBackgroundUri === tmp0_other_with_cast.emptyBackgroundUri)) + return false; + if (!equals(this.supportFilterTags, tmp0_other_with_cast.supportFilterTags)) + return false; + if (!(this.screenshotIconState === tmp0_other_with_cast.screenshotIconState)) + return false; + if (!(this.uploadPictureIconState === tmp0_other_with_cast.uploadPictureIconState)) + return false; + if (!equals(this.emptyPage, tmp0_other_with_cast.emptyPage)) + return false; + if (!equals(this.cmTopReplyProtection, tmp0_other_with_cast.cmTopReplyProtection)) + return false; + if (!(this.enableCharged === tmp0_other_with_cast.enableCharged)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KSubjectControl_cws5kc_k$(seen1, upMid, isAssist, readOnly, hasVoteAccess, hasLotteryAccess, hasFoldedReply, bgText, upBlocked, hasActivityAccess, showTitle, showUpAction, switcherType, inputDisable, rootText, childText, count, title, giveupText, hasNoteAccess, disableJumpEmote, emptyBackgroundTextPlain, emptyBackgroundTextHighlight, emptyBackgroundUri, supportFilterTags, screenshotIconState, uploadPictureIconState, emptyPage, cmTopReplyProtection, enableCharged, serializationConstructorMarker) { + Companion_getInstance_1315(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1302().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.upMid = new Long(0, 0); + else + $this.upMid = upMid; + if (0 === (seen1 & 2)) + $this.isAssist = false; + else + $this.isAssist = isAssist; + if (0 === (seen1 & 4)) + $this.readOnly = false; + else + $this.readOnly = readOnly; + if (0 === (seen1 & 8)) + $this.hasVoteAccess = false; + else + $this.hasVoteAccess = hasVoteAccess; + if (0 === (seen1 & 16)) + $this.hasLotteryAccess = false; + else + $this.hasLotteryAccess = hasLotteryAccess; + if (0 === (seen1 & 32)) + $this.hasFoldedReply = false; + else + $this.hasFoldedReply = hasFoldedReply; + if (0 === (seen1 & 64)) + $this.bgText = ''; + else + $this.bgText = bgText; + if (0 === (seen1 & 128)) + $this.upBlocked = false; + else + $this.upBlocked = upBlocked; + if (0 === (seen1 & 256)) + $this.hasActivityAccess = false; + else + $this.hasActivityAccess = hasActivityAccess; + if (0 === (seen1 & 512)) + $this.showTitle = false; + else + $this.showTitle = showTitle; + if (0 === (seen1 & 1024)) + $this.showUpAction = false; + else + $this.showUpAction = showUpAction; + if (0 === (seen1 & 2048)) + $this.switcherType = new Long(0, 0); + else + $this.switcherType = switcherType; + if (0 === (seen1 & 4096)) + $this.inputDisable = false; + else + $this.inputDisable = inputDisable; + if (0 === (seen1 & 8192)) + $this.rootText = ''; + else + $this.rootText = rootText; + if (0 === (seen1 & 16384)) + $this.childText = ''; + else + $this.childText = childText; + if (0 === (seen1 & 32768)) + $this.count = new Long(0, 0); + else + $this.count = count; + if (0 === (seen1 & 65536)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 131072)) + $this.giveupText = ''; + else + $this.giveupText = giveupText; + if (0 === (seen1 & 262144)) + $this.hasNoteAccess = false; + else + $this.hasNoteAccess = hasNoteAccess; + if (0 === (seen1 & 524288)) + $this.disableJumpEmote = false; + else + $this.disableJumpEmote = disableJumpEmote; + if (0 === (seen1 & 1048576)) + $this.emptyBackgroundTextPlain = ''; + else + $this.emptyBackgroundTextPlain = emptyBackgroundTextPlain; + if (0 === (seen1 & 2097152)) + $this.emptyBackgroundTextHighlight = ''; + else + $this.emptyBackgroundTextHighlight = emptyBackgroundTextHighlight; + if (0 === (seen1 & 4194304)) + $this.emptyBackgroundUri = ''; + else + $this.emptyBackgroundUri = emptyBackgroundUri; + if (0 === (seen1 & 8388608)) + $this.supportFilterTags = emptyList(); + else + $this.supportFilterTags = supportFilterTags; + if (0 === (seen1 & 16777216)) + $this.screenshotIconState = 0; + else + $this.screenshotIconState = screenshotIconState; + if (0 === (seen1 & 33554432)) + $this.uploadPictureIconState = 0; + else + $this.uploadPictureIconState = uploadPictureIconState; + if (0 === (seen1 & 67108864)) + $this.emptyPage = null; + else + $this.emptyPage = emptyPage; + if (0 === (seen1 & 134217728)) + $this.cmTopReplyProtection = null; + else + $this.cmTopReplyProtection = cmTopReplyProtection; + if (0 === (seen1 & 268435456)) + $this.enableCharged = false; + else + $this.enableCharged = enableCharged; + return $this; + } + } + class Companion_1316 { + constructor() { + this.targetPath = '/bilibili.main.community.reply.v1.ReplyInfo'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1303(); + } + } + class $serializer_1303 { + constructor() { + $serializer_instance_1303 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KReplyInfo', this, 16); + tmp0_serialDesc.addElement_5pzumi_k$('replies', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('id', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('oid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('mid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('root', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('parent', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('dialog', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('like', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('ctime', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('count', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('content', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + tmp0_serialDesc.addElement_5pzumi_k$('member', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(13)); + tmp0_serialDesc.addElement_5pzumi_k$('replyControl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(14)); + tmp0_serialDesc.addElement_5pzumi_k$('memberV2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(15)); + tmp0_serialDesc.addElement_5pzumi_k$('trackInfo', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(16)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer($serializer_getInstance_1303()), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable($serializer_getInstance_1310()), get_nullable($serializer_getInstance_1347()), get_nullable($serializer_getInstance_1319()), get_nullable($serializer_getInstance_1342()), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = new Long(0, 0); + var tmp6_local2 = new Long(0, 0); + var tmp7_local3 = new Long(0, 0); + var tmp8_local4 = new Long(0, 0); + var tmp9_local5 = new Long(0, 0); + var tmp10_local6 = new Long(0, 0); + var tmp11_local7 = new Long(0, 0); + var tmp12_local8 = new Long(0, 0); + var tmp13_local9 = new Long(0, 0); + var tmp14_local10 = new Long(0, 0); + var tmp15_local11 = null; + var tmp16_local12 = null; + var tmp17_local13 = null; + var tmp18_local14 = null; + var tmp19_local15 = null; + var tmp20_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp20_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp20_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, new ArrayListSerializer($serializer_getInstance_1303()), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp20_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp20_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp20_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp20_input.decodeLongElement_994anb_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp20_input.decodeLongElement_994anb_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp20_input.decodeLongElement_994anb_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp20_input.decodeLongElement_994anb_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp20_input.decodeLongElement_994anb_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp20_input.decodeLongElement_994anb_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp20_input.decodeLongElement_994anb_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 11, $serializer_getInstance_1310(), tmp15_local11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + tmp16_local12 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 12, $serializer_getInstance_1347(), tmp16_local12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + tmp17_local13 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 13, $serializer_getInstance_1319(), tmp17_local13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + tmp18_local14 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 14, $serializer_getInstance_1342(), tmp18_local14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + tmp19_local15 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + } else + while (tmp1_flag) { + tmp2_index = tmp20_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp20_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, new ArrayListSerializer($serializer_getInstance_1303()), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp20_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp20_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp20_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp20_input.decodeLongElement_994anb_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp20_input.decodeLongElement_994anb_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp20_input.decodeLongElement_994anb_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp20_input.decodeLongElement_994anb_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp20_input.decodeLongElement_994anb_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp20_input.decodeLongElement_994anb_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp20_input.decodeLongElement_994anb_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 11, $serializer_getInstance_1310(), tmp15_local11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + case 12: + tmp16_local12 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 12, $serializer_getInstance_1347(), tmp16_local12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + break; + case 13: + tmp17_local13 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 13, $serializer_getInstance_1319(), tmp17_local13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + break; + case 14: + tmp18_local14 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 14, $serializer_getInstance_1342(), tmp18_local14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + break; + case 15: + tmp19_local15 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp20_input.endStructure_1xqz0n_k$(tmp0_desc); + return KReplyInfo.new_com_bapis_bilibili_main_community_reply_v1_KReplyInfo_ckl7ol_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, tmp18_local14, tmp19_local15, null); + } + serialize_l1ib34_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.replies, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, new ArrayListSerializer($serializer_getInstance_1303()), value.replies); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.id.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.id); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.oid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.oid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !value.type.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 3, value.type); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !value.mid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 4, value.mid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !value.root.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 5, value.root); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !value.parent.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 6, value.parent); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !value.dialog.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 7, value.dialog); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !value.like.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 8, value.like); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !value.ctime.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 9, value.ctime); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !value.count.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 10, value.count); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.content == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 11, $serializer_getInstance_1310(), value.content); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !(value.member == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 12, $serializer_getInstance_1347(), value.member); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 13) ? true : !(value.replyControl == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 13, $serializer_getInstance_1319(), value.replyControl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 14) ? true : !(value.memberV2 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 14, $serializer_getInstance_1342(), value.memberV2); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 15) ? true : !(value.trackInfo === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 15, value.trackInfo); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_l1ib34_k$(encoder, value instanceof KReplyInfo ? value : THROW_CCE()); + } + } + class KReplyInfo { + constructor(replies, id, oid, type, mid, root, parent, dialog, like, ctime, count, content, member, replyControl, memberV2, trackInfo) { + Companion_instance_1316; + replies = replies === VOID ? emptyList() : replies; + id = id === VOID ? new Long(0, 0) : id; + oid = oid === VOID ? new Long(0, 0) : oid; + type = type === VOID ? new Long(0, 0) : type; + mid = mid === VOID ? new Long(0, 0) : mid; + root = root === VOID ? new Long(0, 0) : root; + parent = parent === VOID ? new Long(0, 0) : parent; + dialog = dialog === VOID ? new Long(0, 0) : dialog; + like = like === VOID ? new Long(0, 0) : like; + ctime = ctime === VOID ? new Long(0, 0) : ctime; + count = count === VOID ? new Long(0, 0) : count; + content = content === VOID ? null : content; + member = member === VOID ? null : member; + replyControl = replyControl === VOID ? null : replyControl; + memberV2 = memberV2 === VOID ? null : memberV2; + trackInfo = trackInfo === VOID ? '' : trackInfo; + this.replies = replies; + this.id = id; + this.oid = oid; + this.type = type; + this.mid = mid; + this.root = root; + this.parent = parent; + this.dialog = dialog; + this.like = like; + this.ctime = ctime; + this.count = count; + this.content = content; + this.member = member; + this.replyControl = replyControl; + this.memberV2 = memberV2; + this.trackInfo = trackInfo; + } + get_replies_jd6za7_k$() { + return this.replies; + } + get_id_kntnx8_k$() { + return this.id; + } + get_oid_18iz6n_k$() { + return this.oid; + } + get_type_wovaf7_k$() { + return this.type; + } + get_mid_18j0o1_k$() { + return this.mid; + } + get_root_wott0r_k$() { + return this.root; + } + get_parent_hy4reb_k$() { + return this.parent; + } + get_dialog_cdoxu9_k$() { + return this.dialog; + } + get_like_wopujk_k$() { + return this.like; + } + get_ctime_ipxdhj_k$() { + return this.ctime; + } + get_count_ipufhi_k$() { + return this.count; + } + get_content_h02jrk_k$() { + return this.content; + } + get_member_gl3t7n_k$() { + return this.member; + } + get_replyControl_q3qtzw_k$() { + return this.replyControl; + } + get_memberV2_shikjj_k$() { + return this.memberV2; + } + get_trackInfo_kkudbk_k$() { + return this.trackInfo; + } + component1_7eebsc_k$() { + return this.replies; + } + component2_7eebsb_k$() { + return this.id; + } + component3_7eebsa_k$() { + return this.oid; + } + component4_7eebs9_k$() { + return this.type; + } + component5_7eebs8_k$() { + return this.mid; + } + component6_7eebs7_k$() { + return this.root; + } + component7_7eebs6_k$() { + return this.parent; + } + component8_7eebs5_k$() { + return this.dialog; + } + component9_7eebs4_k$() { + return this.like; + } + component10_gazzfo_k$() { + return this.ctime; + } + component11_gazzfn_k$() { + return this.count; + } + component12_gazzfm_k$() { + return this.content; + } + component13_gazzfl_k$() { + return this.member; + } + component14_gazzfk_k$() { + return this.replyControl; + } + component15_gazzfj_k$() { + return this.memberV2; + } + component16_gazzfi_k$() { + return this.trackInfo; + } + copy_s7u3s8_k$(replies, id, oid, type, mid, root, parent, dialog, like, ctime, count, content, member, replyControl, memberV2, trackInfo) { + return new KReplyInfo(replies, id, oid, type, mid, root, parent, dialog, like, ctime, count, content, member, replyControl, memberV2, trackInfo); + } + copy(replies, id, oid, type, mid, root, parent, dialog, like, ctime, count, content, member, replyControl, memberV2, trackInfo, $super) { + replies = replies === VOID ? this.replies : replies; + id = id === VOID ? this.id : id; + oid = oid === VOID ? this.oid : oid; + type = type === VOID ? this.type : type; + mid = mid === VOID ? this.mid : mid; + root = root === VOID ? this.root : root; + parent = parent === VOID ? this.parent : parent; + dialog = dialog === VOID ? this.dialog : dialog; + like = like === VOID ? this.like : like; + ctime = ctime === VOID ? this.ctime : ctime; + count = count === VOID ? this.count : count; + content = content === VOID ? this.content : content; + member = member === VOID ? this.member : member; + replyControl = replyControl === VOID ? this.replyControl : replyControl; + memberV2 = memberV2 === VOID ? this.memberV2 : memberV2; + trackInfo = trackInfo === VOID ? this.trackInfo : trackInfo; + return this.copy_s7u3s8_k$(replies, id, oid, type, mid, root, parent, dialog, like, ctime, count, content, member, replyControl, memberV2, trackInfo); + } + toString() { + return 'KReplyInfo(replies=' + this.replies + ', id=' + this.id.toString() + ', oid=' + this.oid.toString() + ', type=' + this.type.toString() + ', mid=' + this.mid.toString() + ', root=' + this.root.toString() + ', parent=' + this.parent.toString() + ', dialog=' + this.dialog.toString() + ', like=' + this.like.toString() + ', ctime=' + this.ctime.toString() + ', count=' + this.count.toString() + ', content=' + this.content + ', member=' + this.member + ', replyControl=' + this.replyControl + ', memberV2=' + this.memberV2 + ', trackInfo=' + this.trackInfo + ')'; + } + hashCode() { + var result = hashCode(this.replies); + result = imul(result, 31) + this.id.hashCode() | 0; + result = imul(result, 31) + this.oid.hashCode() | 0; + result = imul(result, 31) + this.type.hashCode() | 0; + result = imul(result, 31) + this.mid.hashCode() | 0; + result = imul(result, 31) + this.root.hashCode() | 0; + result = imul(result, 31) + this.parent.hashCode() | 0; + result = imul(result, 31) + this.dialog.hashCode() | 0; + result = imul(result, 31) + this.like.hashCode() | 0; + result = imul(result, 31) + this.ctime.hashCode() | 0; + result = imul(result, 31) + this.count.hashCode() | 0; + result = imul(result, 31) + (this.content == null ? 0 : this.content.hashCode()) | 0; + result = imul(result, 31) + (this.member == null ? 0 : this.member.hashCode()) | 0; + result = imul(result, 31) + (this.replyControl == null ? 0 : this.replyControl.hashCode()) | 0; + result = imul(result, 31) + (this.memberV2 == null ? 0 : this.memberV2.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.trackInfo) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KReplyInfo)) + return false; + var tmp0_other_with_cast = other instanceof KReplyInfo ? other : THROW_CCE(); + if (!equals(this.replies, tmp0_other_with_cast.replies)) + return false; + if (!this.id.equals(tmp0_other_with_cast.id)) + return false; + if (!this.oid.equals(tmp0_other_with_cast.oid)) + return false; + if (!this.type.equals(tmp0_other_with_cast.type)) + return false; + if (!this.mid.equals(tmp0_other_with_cast.mid)) + return false; + if (!this.root.equals(tmp0_other_with_cast.root)) + return false; + if (!this.parent.equals(tmp0_other_with_cast.parent)) + return false; + if (!this.dialog.equals(tmp0_other_with_cast.dialog)) + return false; + if (!this.like.equals(tmp0_other_with_cast.like)) + return false; + if (!this.ctime.equals(tmp0_other_with_cast.ctime)) + return false; + if (!this.count.equals(tmp0_other_with_cast.count)) + return false; + if (!equals(this.content, tmp0_other_with_cast.content)) + return false; + if (!equals(this.member, tmp0_other_with_cast.member)) + return false; + if (!equals(this.replyControl, tmp0_other_with_cast.replyControl)) + return false; + if (!equals(this.memberV2, tmp0_other_with_cast.memberV2)) + return false; + if (!(this.trackInfo === tmp0_other_with_cast.trackInfo)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KReplyInfo_ckl7ol_k$(seen1, replies, id, oid, type, mid, root, parent, dialog, like, ctime, count, content, member, replyControl, memberV2, trackInfo, serializationConstructorMarker) { + Companion_instance_1316; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1303().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.replies = emptyList(); + else + $this.replies = replies; + if (0 === (seen1 & 2)) + $this.id = new Long(0, 0); + else + $this.id = id; + if (0 === (seen1 & 4)) + $this.oid = new Long(0, 0); + else + $this.oid = oid; + if (0 === (seen1 & 8)) + $this.type = new Long(0, 0); + else + $this.type = type; + if (0 === (seen1 & 16)) + $this.mid = new Long(0, 0); + else + $this.mid = mid; + if (0 === (seen1 & 32)) + $this.root = new Long(0, 0); + else + $this.root = root; + if (0 === (seen1 & 64)) + $this.parent = new Long(0, 0); + else + $this.parent = parent; + if (0 === (seen1 & 128)) + $this.dialog = new Long(0, 0); + else + $this.dialog = dialog; + if (0 === (seen1 & 256)) + $this.like = new Long(0, 0); + else + $this.like = like; + if (0 === (seen1 & 512)) + $this.ctime = new Long(0, 0); + else + $this.ctime = ctime; + if (0 === (seen1 & 1024)) + $this.count = new Long(0, 0); + else + $this.count = count; + if (0 === (seen1 & 2048)) + $this.content = null; + else + $this.content = content; + if (0 === (seen1 & 4096)) + $this.member = null; + else + $this.member = member; + if (0 === (seen1 & 8192)) + $this.replyControl = null; + else + $this.replyControl = replyControl; + if (0 === (seen1 & 16384)) + $this.memberV2 = null; + else + $this.memberV2 = memberV2; + if (0 === (seen1 & 32768)) + $this.trackInfo = ''; + else + $this.trackInfo = trackInfo; + return $this; + } + } + class Companion_1317 { + constructor() { + this.targetPath = '/bilibili.main.community.reply.v1.ReplyTrackInfo'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1304(); + } + } + class $serializer_1304 { + constructor() { + $serializer_instance_1304 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KReplyTrackInfo', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('aiTrackid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('traceid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KReplyTrackInfo.new_com_bapis_bilibili_main_community_reply_v1_KReplyTrackInfo_szm4wz_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_m8jykh_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.aiTrackid === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.aiTrackid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.traceid === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.traceid); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_m8jykh_k$(encoder, value instanceof KReplyTrackInfo ? value : THROW_CCE()); + } + } + class KReplyTrackInfo { + constructor(aiTrackid, traceid) { + Companion_instance_1317; + aiTrackid = aiTrackid === VOID ? '' : aiTrackid; + traceid = traceid === VOID ? '' : traceid; + this.aiTrackid = aiTrackid; + this.traceid = traceid; + } + get_aiTrackid_37lned_k$() { + return this.aiTrackid; + } + get_traceid_gdy5s9_k$() { + return this.traceid; + } + component1_7eebsc_k$() { + return this.aiTrackid; + } + component2_7eebsb_k$() { + return this.traceid; + } + copy_plwnsl_k$(aiTrackid, traceid) { + return new KReplyTrackInfo(aiTrackid, traceid); + } + copy(aiTrackid, traceid, $super) { + aiTrackid = aiTrackid === VOID ? this.aiTrackid : aiTrackid; + traceid = traceid === VOID ? this.traceid : traceid; + return this.copy_plwnsl_k$(aiTrackid, traceid); + } + toString() { + return 'KReplyTrackInfo(aiTrackid=' + this.aiTrackid + ', traceid=' + this.traceid + ')'; + } + hashCode() { + var result = getStringHashCode(this.aiTrackid); + result = imul(result, 31) + getStringHashCode(this.traceid) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KReplyTrackInfo)) + return false; + var tmp0_other_with_cast = other instanceof KReplyTrackInfo ? other : THROW_CCE(); + if (!(this.aiTrackid === tmp0_other_with_cast.aiTrackid)) + return false; + if (!(this.traceid === tmp0_other_with_cast.traceid)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KReplyTrackInfo_szm4wz_k$(seen1, aiTrackid, traceid, serializationConstructorMarker) { + Companion_instance_1317; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1304().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.aiTrackid = ''; + else + $this.aiTrackid = aiTrackid; + if (0 === (seen1 & 2)) + $this.traceid = ''; + else + $this.traceid = traceid; + return $this; + } + } + class Companion_1318 { + constructor() { + this.targetPath = '/bilibili.main.community.reply.v1.Content.MembersEntry'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1305(); + } + } + class $serializer_1305 { + constructor() { + $serializer_instance_1305 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KContent.KMembersEntry', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('key', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('value', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), get_nullable($serializer_getInstance_1347())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_1347(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_1347(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KMembersEntry.new_com_bapis_bilibili_main_community_reply_v1_KContent_KMembersEntry_237qhr_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_dgj4fd_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.key === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.key); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.value == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_1347(), value.value); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_dgj4fd_k$(encoder, value instanceof KMembersEntry ? value : THROW_CCE()); + } + } + class Companion_1319 { + constructor() { + this.targetPath = '/bilibili.main.community.reply.v1.Content.EmotesEntry'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1306(); + } + } + class $serializer_1306 { + constructor() { + $serializer_instance_1306 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KContent.KEmotesEntry', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('key', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('value', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), get_nullable($serializer_getInstance_1327())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_1327(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_1327(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KEmotesEntry.new_com_bapis_bilibili_main_community_reply_v1_KContent_KEmotesEntry_ljab3f_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_tl0xbn_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.key === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.key); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.value == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_1327(), value.value); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_tl0xbn_k$(encoder, value instanceof KEmotesEntry ? value : THROW_CCE()); + } + } + class Companion_1320 { + constructor() { + this.targetPath = '/bilibili.main.community.reply.v1.Content.TopicsEntry'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1307(); + } + } + class $serializer_1307 { + constructor() { + $serializer_instance_1307 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KContent.KTopicsEntry', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('key', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('value', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), get_nullable($serializer_getInstance_1326())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_1326(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_1326(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KTopicsEntry.new_com_bapis_bilibili_main_community_reply_v1_KContent_KTopicsEntry_ohqibv_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_7ukju_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.key === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.key); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.value == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_1326(), value.value); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_7ukju_k$(encoder, value instanceof KTopicsEntry ? value : THROW_CCE()); + } + } + class Companion_1321 { + constructor() { + this.targetPath = '/bilibili.main.community.reply.v1.Content.UrlsEntry'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1308(); + } + } + class $serializer_1308 { + constructor() { + $serializer_instance_1308 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KContent.KUrlsEntry', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('key', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('value', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), get_nullable($serializer_getInstance_1325())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_1325(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_1325(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KUrlsEntry.new_com_bapis_bilibili_main_community_reply_v1_KContent_KUrlsEntry_fn4aob_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_mzgoza_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.key === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.key); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.value == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_1325(), value.value); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_mzgoza_k$(encoder, value instanceof KUrlsEntry ? value : THROW_CCE()); + } + } + class Companion_1322 { + constructor() { + this.targetPath = '/bilibili.main.community.reply.v1.Content.AtNameToMidEntry'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1309(); + } + } + class $serializer_1309 { + constructor() { + $serializer_instance_1309 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KContent.KAtNameToMidEntry', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('key', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('value', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = new Long(0, 0); + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KAtNameToMidEntry.new_com_bapis_bilibili_main_community_reply_v1_KContent_KAtNameToMidEntry_qngbxv_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_replr5_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.key === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.key); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.value.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.value); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_replr5_k$(encoder, value instanceof KAtNameToMidEntry ? value : THROW_CCE()); + } + } + class KMembersEntry { + constructor(key, value) { + Companion_instance_1318; + key = key === VOID ? '' : key; + value = value === VOID ? null : value; + this.key = key; + this.value = value; + } + get_key_18j28a_k$() { + return this.key; + } + get_value_j01efc_k$() { + return this.value; + } + component1_7eebsc_k$() { + return this.key; + } + component2_7eebsb_k$() { + return this.value; + } + copy_161qut_k$(key, value) { + return new KMembersEntry(key, value); + } + copy(key, value, $super) { + key = key === VOID ? this.key : key; + value = value === VOID ? this.value : value; + return this.copy_161qut_k$(key, value); + } + toString() { + return 'KMembersEntry(key=' + this.key + ', value=' + this.value + ')'; + } + hashCode() { + var result = getStringHashCode(this.key); + result = imul(result, 31) + (this.value == null ? 0 : this.value.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KMembersEntry)) + return false; + var tmp0_other_with_cast = other instanceof KMembersEntry ? other : THROW_CCE(); + if (!(this.key === tmp0_other_with_cast.key)) + return false; + if (!equals(this.value, tmp0_other_with_cast.value)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KContent_KMembersEntry_237qhr_k$(seen1, key, value, serializationConstructorMarker) { + Companion_instance_1318; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1305().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.key = ''; + else + $this.key = key; + if (0 === (seen1 & 2)) + $this.value = null; + else + $this.value = value; + return $this; + } + } + class KEmotesEntry { + constructor(key, value) { + Companion_instance_1319; + key = key === VOID ? '' : key; + value = value === VOID ? null : value; + this.key = key; + this.value = value; + } + get_key_18j28a_k$() { + return this.key; + } + get_value_j01efc_k$() { + return this.value; + } + component1_7eebsc_k$() { + return this.key; + } + component2_7eebsb_k$() { + return this.value; + } + copy_68qys1_k$(key, value) { + return new KEmotesEntry(key, value); + } + copy(key, value, $super) { + key = key === VOID ? this.key : key; + value = value === VOID ? this.value : value; + return this.copy_68qys1_k$(key, value); + } + toString() { + return 'KEmotesEntry(key=' + this.key + ', value=' + this.value + ')'; + } + hashCode() { + var result = getStringHashCode(this.key); + result = imul(result, 31) + (this.value == null ? 0 : this.value.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KEmotesEntry)) + return false; + var tmp0_other_with_cast = other instanceof KEmotesEntry ? other : THROW_CCE(); + if (!(this.key === tmp0_other_with_cast.key)) + return false; + if (!equals(this.value, tmp0_other_with_cast.value)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KContent_KEmotesEntry_ljab3f_k$(seen1, key, value, serializationConstructorMarker) { + Companion_instance_1319; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1306().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.key = ''; + else + $this.key = key; + if (0 === (seen1 & 2)) + $this.value = null; + else + $this.value = value; + return $this; + } + } + class KTopicsEntry { + constructor(key, value) { + Companion_instance_1320; + key = key === VOID ? '' : key; + value = value === VOID ? null : value; + this.key = key; + this.value = value; + } + get_key_18j28a_k$() { + return this.key; + } + get_value_j01efc_k$() { + return this.value; + } + component1_7eebsc_k$() { + return this.key; + } + component2_7eebsb_k$() { + return this.value; + } + copy_d0ficm_k$(key, value) { + return new KTopicsEntry(key, value); + } + copy(key, value, $super) { + key = key === VOID ? this.key : key; + value = value === VOID ? this.value : value; + return this.copy_d0ficm_k$(key, value); + } + toString() { + return 'KTopicsEntry(key=' + this.key + ', value=' + this.value + ')'; + } + hashCode() { + var result = getStringHashCode(this.key); + result = imul(result, 31) + (this.value == null ? 0 : this.value.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KTopicsEntry)) + return false; + var tmp0_other_with_cast = other instanceof KTopicsEntry ? other : THROW_CCE(); + if (!(this.key === tmp0_other_with_cast.key)) + return false; + if (!equals(this.value, tmp0_other_with_cast.value)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KContent_KTopicsEntry_ohqibv_k$(seen1, key, value, serializationConstructorMarker) { + Companion_instance_1320; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1307().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.key = ''; + else + $this.key = key; + if (0 === (seen1 & 2)) + $this.value = null; + else + $this.value = value; + return $this; + } + } + class KUrlsEntry { + constructor(key, value) { + Companion_instance_1321; + key = key === VOID ? '' : key; + value = value === VOID ? null : value; + this.key = key; + this.value = value; + } + get_key_18j28a_k$() { + return this.key; + } + get_value_j01efc_k$() { + return this.value; + } + component1_7eebsc_k$() { + return this.key; + } + component2_7eebsb_k$() { + return this.value; + } + copy_cosxga_k$(key, value) { + return new KUrlsEntry(key, value); + } + copy(key, value, $super) { + key = key === VOID ? this.key : key; + value = value === VOID ? this.value : value; + return this.copy_cosxga_k$(key, value); + } + toString() { + return 'KUrlsEntry(key=' + this.key + ', value=' + this.value + ')'; + } + hashCode() { + var result = getStringHashCode(this.key); + result = imul(result, 31) + (this.value == null ? 0 : this.value.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KUrlsEntry)) + return false; + var tmp0_other_with_cast = other instanceof KUrlsEntry ? other : THROW_CCE(); + if (!(this.key === tmp0_other_with_cast.key)) + return false; + if (!equals(this.value, tmp0_other_with_cast.value)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KContent_KUrlsEntry_fn4aob_k$(seen1, key, value, serializationConstructorMarker) { + Companion_instance_1321; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1308().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.key = ''; + else + $this.key = key; + if (0 === (seen1 & 2)) + $this.value = null; + else + $this.value = value; + return $this; + } + } + class KAtNameToMidEntry { + constructor(key, value) { + Companion_instance_1322; + key = key === VOID ? '' : key; + value = value === VOID ? new Long(0, 0) : value; + this.key = key; + this.value = value; + } + get_key_18j28a_k$() { + return this.key; + } + get_value_j01efc_k$() { + return this.value; + } + component1_7eebsc_k$() { + return this.key; + } + component2_7eebsb_k$() { + return this.value; + } + copy_gaforn_k$(key, value) { + return new KAtNameToMidEntry(key, value); + } + copy(key, value, $super) { + key = key === VOID ? this.key : key; + value = value === VOID ? this.value : value; + return this.copy_gaforn_k$(key, value); + } + toString() { + return 'KAtNameToMidEntry(key=' + this.key + ', value=' + this.value.toString() + ')'; + } + hashCode() { + var result = getStringHashCode(this.key); + result = imul(result, 31) + this.value.hashCode() | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KAtNameToMidEntry)) + return false; + var tmp0_other_with_cast = other instanceof KAtNameToMidEntry ? other : THROW_CCE(); + if (!(this.key === tmp0_other_with_cast.key)) + return false; + if (!this.value.equals(tmp0_other_with_cast.value)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KContent_KAtNameToMidEntry_qngbxv_k$(seen1, key, value, serializationConstructorMarker) { + Companion_instance_1322; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1309().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.key = ''; + else + $this.key = key; + if (0 === (seen1 & 2)) + $this.value = new Long(0, 0); + else + $this.value = value; + return $this; + } + } + class Companion_1323 { + constructor() { + Companion_instance_1323 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, new LinkedHashMapSerializer(StringSerializer_getInstance(), get_nullable($serializer_getInstance_1347())), new LinkedHashMapSerializer(StringSerializer_getInstance(), get_nullable($serializer_getInstance_1327())), new LinkedHashMapSerializer(StringSerializer_getInstance(), get_nullable($serializer_getInstance_1326())), new LinkedHashMapSerializer(StringSerializer_getInstance(), get_nullable($serializer_getInstance_1325())), null, new LinkedHashMapSerializer(StringSerializer_getInstance(), LongSerializer_getInstance()), null, new ArrayListSerializer($serializer_getInstance_1311()), null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.main.community.reply.v1.Content'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1310(); + } + } + class $serializer_1310 { + constructor() { + $serializer_instance_1310 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KContent', this, 10); + tmp0_serialDesc.addElement_5pzumi_k$('message', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('members', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('emotes', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('topics', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('urls', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('vote', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('atNameToMid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('richText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('pictures', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('pictureScale', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_1323().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), tmp0_cached[1], tmp0_cached[2], tmp0_cached[3], tmp0_cached[4], get_nullable($serializer_getInstance_1328()), tmp0_cached[6], get_nullable($serializer_getInstance_1313()), tmp0_cached[8], DoubleSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_local8 = null; + var tmp13_local9 = 0.0; + var tmp14_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp15_cached = Companion_getInstance_1323().$childSerializers_1; + if (tmp14_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp14_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp15_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp14_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp15_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp14_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 3, tmp15_cached[3], tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp14_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 4, tmp15_cached[4], tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_1328(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp14_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 6, tmp15_cached[6], tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_1313(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp14_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 8, tmp15_cached[8], tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp14_input.decodeDoubleElement_isei84_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + } else + while (tmp1_flag) { + tmp2_index = tmp14_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp14_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp15_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp14_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp15_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp14_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 3, tmp15_cached[3], tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp14_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 4, tmp15_cached[4], tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_1328(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp14_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 6, tmp15_cached[6], tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_1313(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp14_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 8, tmp15_cached[8], tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp14_input.decodeDoubleElement_isei84_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp14_input.endStructure_1xqz0n_k$(tmp0_desc); + return KContent_2.new_com_bapis_bilibili_main_community_reply_v1_KContent_eoej1i_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, null); + } + serialize_f6olvl_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_1323().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.message === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.message); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !equals(value.members, emptyMap())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 1, tmp2_cached[1], value.members); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !equals(value.emotes, emptyMap())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 2, tmp2_cached[2], value.emotes); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !equals(value.topics, emptyMap())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 3, tmp2_cached[3], value.topics); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !equals(value.urls, emptyMap())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 4, tmp2_cached[4], value.urls); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.vote == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 5, $serializer_getInstance_1328(), value.vote); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !equals(value.atNameToMid, emptyMap())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 6, tmp2_cached[6], value.atNameToMid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.richText == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 7, $serializer_getInstance_1313(), value.richText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !equals(value.pictures, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 8, tmp2_cached[8], value.pictures); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !equals(value.pictureScale, 0.0)) { + tmp1_output.encodeDoubleElement_a6rqhe_k$(tmp0_desc, 9, value.pictureScale); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_f6olvl_k$(encoder, value instanceof KContent_2 ? value : THROW_CCE()); + } + } + class KContent_2 { + constructor(message, members, emotes, topics, urls, vote, atNameToMid, richText, pictures, pictureScale) { + Companion_getInstance_1323(); + message = message === VOID ? '' : message; + members = members === VOID ? emptyMap() : members; + emotes = emotes === VOID ? emptyMap() : emotes; + topics = topics === VOID ? emptyMap() : topics; + urls = urls === VOID ? emptyMap() : urls; + vote = vote === VOID ? null : vote; + atNameToMid = atNameToMid === VOID ? emptyMap() : atNameToMid; + richText = richText === VOID ? null : richText; + pictures = pictures === VOID ? emptyList() : pictures; + pictureScale = pictureScale === VOID ? 0.0 : pictureScale; + this.message = message; + this.members = members; + this.emotes = emotes; + this.topics = topics; + this.urls = urls; + this.vote = vote; + this.atNameToMid = atNameToMid; + this.richText = richText; + this.pictures = pictures; + this.pictureScale = pictureScale; + } + get_message_h23axq_k$() { + return this.message; + } + get_members_gyhru8_k$() { + return this.members; + } + get_emotes_cx6u4k_k$() { + return this.emotes; + } + get_topics_k1z60d_k$() { + return this.topics; + } + get_urls_wovs4t_k$() { + return this.urls; + } + get_vote_wowd2r_k$() { + return this.vote; + } + get_atNameToMid_3zomna_k$() { + return this.atNameToMid; + } + get_richText_dkfcvm_k$() { + return this.richText; + } + get_pictures_r5hblq_k$() { + return this.pictures; + } + get_pictureScale_8n7f0r_k$() { + return this.pictureScale; + } + component1_7eebsc_k$() { + return this.message; + } + component2_7eebsb_k$() { + return this.members; + } + component3_7eebsa_k$() { + return this.emotes; + } + component4_7eebs9_k$() { + return this.topics; + } + component5_7eebs8_k$() { + return this.urls; + } + component6_7eebs7_k$() { + return this.vote; + } + component7_7eebs6_k$() { + return this.atNameToMid; + } + component8_7eebs5_k$() { + return this.richText; + } + component9_7eebs4_k$() { + return this.pictures; + } + component10_gazzfo_k$() { + return this.pictureScale; + } + copy_gwh925_k$(message, members, emotes, topics, urls, vote, atNameToMid, richText, pictures, pictureScale) { + return new KContent_2(message, members, emotes, topics, urls, vote, atNameToMid, richText, pictures, pictureScale); + } + copy(message, members, emotes, topics, urls, vote, atNameToMid, richText, pictures, pictureScale, $super) { + message = message === VOID ? this.message : message; + members = members === VOID ? this.members : members; + emotes = emotes === VOID ? this.emotes : emotes; + topics = topics === VOID ? this.topics : topics; + urls = urls === VOID ? this.urls : urls; + vote = vote === VOID ? this.vote : vote; + atNameToMid = atNameToMid === VOID ? this.atNameToMid : atNameToMid; + richText = richText === VOID ? this.richText : richText; + pictures = pictures === VOID ? this.pictures : pictures; + pictureScale = pictureScale === VOID ? this.pictureScale : pictureScale; + return this.copy_gwh925_k$(message, members, emotes, topics, urls, vote, atNameToMid, richText, pictures, pictureScale); + } + toString() { + return 'KContent(message=' + this.message + ', members=' + this.members + ', emotes=' + this.emotes + ', topics=' + this.topics + ', urls=' + this.urls + ', vote=' + this.vote + ', atNameToMid=' + this.atNameToMid + ', richText=' + this.richText + ', pictures=' + this.pictures + ', pictureScale=' + this.pictureScale + ')'; + } + hashCode() { + var result = getStringHashCode(this.message); + result = imul(result, 31) + hashCode(this.members) | 0; + result = imul(result, 31) + hashCode(this.emotes) | 0; + result = imul(result, 31) + hashCode(this.topics) | 0; + result = imul(result, 31) + hashCode(this.urls) | 0; + result = imul(result, 31) + (this.vote == null ? 0 : this.vote.hashCode()) | 0; + result = imul(result, 31) + hashCode(this.atNameToMid) | 0; + result = imul(result, 31) + (this.richText == null ? 0 : this.richText.hashCode()) | 0; + result = imul(result, 31) + hashCode(this.pictures) | 0; + result = imul(result, 31) + getNumberHashCode(this.pictureScale) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KContent_2)) + return false; + var tmp0_other_with_cast = other instanceof KContent_2 ? other : THROW_CCE(); + if (!(this.message === tmp0_other_with_cast.message)) + return false; + if (!equals(this.members, tmp0_other_with_cast.members)) + return false; + if (!equals(this.emotes, tmp0_other_with_cast.emotes)) + return false; + if (!equals(this.topics, tmp0_other_with_cast.topics)) + return false; + if (!equals(this.urls, tmp0_other_with_cast.urls)) + return false; + if (!equals(this.vote, tmp0_other_with_cast.vote)) + return false; + if (!equals(this.atNameToMid, tmp0_other_with_cast.atNameToMid)) + return false; + if (!equals(this.richText, tmp0_other_with_cast.richText)) + return false; + if (!equals(this.pictures, tmp0_other_with_cast.pictures)) + return false; + if (!equals(this.pictureScale, tmp0_other_with_cast.pictureScale)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KContent_eoej1i_k$(seen1, message, members, emotes, topics, urls, vote, atNameToMid, richText, pictures, pictureScale, serializationConstructorMarker) { + Companion_getInstance_1323(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1310().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.message = ''; + else + $this.message = message; + if (0 === (seen1 & 2)) + $this.members = emptyMap(); + else + $this.members = members; + if (0 === (seen1 & 4)) + $this.emotes = emptyMap(); + else + $this.emotes = emotes; + if (0 === (seen1 & 8)) + $this.topics = emptyMap(); + else + $this.topics = topics; + if (0 === (seen1 & 16)) + $this.urls = emptyMap(); + else + $this.urls = urls; + if (0 === (seen1 & 32)) + $this.vote = null; + else + $this.vote = vote; + if (0 === (seen1 & 64)) + $this.atNameToMid = emptyMap(); + else + $this.atNameToMid = atNameToMid; + if (0 === (seen1 & 128)) + $this.richText = null; + else + $this.richText = richText; + if (0 === (seen1 & 256)) + $this.pictures = emptyList(); + else + $this.pictures = pictures; + if (0 === (seen1 & 512)) + $this.pictureScale = 0.0; + else + $this.pictureScale = pictureScale; + return $this; + } + } + class Companion_1324 { + constructor() { + this.targetPath = '/bilibili.main.community.reply.v1.Picture'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1311(); + } + } + class $serializer_1311 { + constructor() { + $serializer_instance_1311 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KPicture', this, 6); + tmp0_serialDesc.addElement_5pzumi_k$('imgSrc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('imgWidth', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('imgHeight', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('imgSize', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('topRightIcon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('playGifThumbnail', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), DoubleSerializer_getInstance(), DoubleSerializer_getInstance(), DoubleSerializer_getInstance(), StringSerializer_getInstance(), BooleanSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = 0.0; + var tmp6_local2 = 0.0; + var tmp7_local3 = 0.0; + var tmp8_local4 = null; + var tmp9_local5 = false; + var tmp10_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp10_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp10_input.decodeDoubleElement_isei84_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp10_input.decodeDoubleElement_isei84_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp10_input.decodeDoubleElement_isei84_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp10_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + } else + while (tmp1_flag) { + tmp2_index = tmp10_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp10_input.decodeDoubleElement_isei84_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp10_input.decodeDoubleElement_isei84_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp10_input.decodeDoubleElement_isei84_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp10_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp10_input.endStructure_1xqz0n_k$(tmp0_desc); + return KPicture.new_com_bapis_bilibili_main_community_reply_v1_KPicture_5z6q3j_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); + } + serialize_npkqxy_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.imgSrc === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.imgSrc); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !equals(value.imgWidth, 0.0)) { + tmp1_output.encodeDoubleElement_a6rqhe_k$(tmp0_desc, 1, value.imgWidth); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !equals(value.imgHeight, 0.0)) { + tmp1_output.encodeDoubleElement_a6rqhe_k$(tmp0_desc, 2, value.imgHeight); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !equals(value.imgSize, 0.0)) { + tmp1_output.encodeDoubleElement_a6rqhe_k$(tmp0_desc, 3, value.imgSize); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.topRightIcon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.topRightIcon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.playGifThumbnail === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 5, value.playGifThumbnail); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_npkqxy_k$(encoder, value instanceof KPicture ? value : THROW_CCE()); + } + } + class KPicture { + constructor(imgSrc, imgWidth, imgHeight, imgSize, topRightIcon, playGifThumbnail) { + Companion_instance_1324; + imgSrc = imgSrc === VOID ? '' : imgSrc; + imgWidth = imgWidth === VOID ? 0.0 : imgWidth; + imgHeight = imgHeight === VOID ? 0.0 : imgHeight; + imgSize = imgSize === VOID ? 0.0 : imgSize; + topRightIcon = topRightIcon === VOID ? '' : topRightIcon; + playGifThumbnail = playGifThumbnail === VOID ? false : playGifThumbnail; + this.imgSrc = imgSrc; + this.imgWidth = imgWidth; + this.imgHeight = imgHeight; + this.imgSize = imgSize; + this.topRightIcon = topRightIcon; + this.playGifThumbnail = playGifThumbnail; + } + get_imgSrc_et7jmy_k$() { + return this.imgSrc; + } + get_imgWidth_rlxrik_k$() { + return this.imgWidth; + } + get_imgHeight_3n2jmn_k$() { + return this.imgHeight; + } + get_imgSize_wyteuz_k$() { + return this.imgSize; + } + get_topRightIcon_64dlbd_k$() { + return this.topRightIcon; + } + get_playGifThumbnail_utnmmz_k$() { + return this.playGifThumbnail; + } + component1_7eebsc_k$() { + return this.imgSrc; + } + component2_7eebsb_k$() { + return this.imgWidth; + } + component3_7eebsa_k$() { + return this.imgHeight; + } + component4_7eebs9_k$() { + return this.imgSize; + } + component5_7eebs8_k$() { + return this.topRightIcon; + } + component6_7eebs7_k$() { + return this.playGifThumbnail; + } + copy_1alp78_k$(imgSrc, imgWidth, imgHeight, imgSize, topRightIcon, playGifThumbnail) { + return new KPicture(imgSrc, imgWidth, imgHeight, imgSize, topRightIcon, playGifThumbnail); + } + copy(imgSrc, imgWidth, imgHeight, imgSize, topRightIcon, playGifThumbnail, $super) { + imgSrc = imgSrc === VOID ? this.imgSrc : imgSrc; + imgWidth = imgWidth === VOID ? this.imgWidth : imgWidth; + imgHeight = imgHeight === VOID ? this.imgHeight : imgHeight; + imgSize = imgSize === VOID ? this.imgSize : imgSize; + topRightIcon = topRightIcon === VOID ? this.topRightIcon : topRightIcon; + playGifThumbnail = playGifThumbnail === VOID ? this.playGifThumbnail : playGifThumbnail; + return this.copy_1alp78_k$(imgSrc, imgWidth, imgHeight, imgSize, topRightIcon, playGifThumbnail); + } + toString() { + return 'KPicture(imgSrc=' + this.imgSrc + ', imgWidth=' + this.imgWidth + ', imgHeight=' + this.imgHeight + ', imgSize=' + this.imgSize + ', topRightIcon=' + this.topRightIcon + ', playGifThumbnail=' + this.playGifThumbnail + ')'; + } + hashCode() { + var result = getStringHashCode(this.imgSrc); + result = imul(result, 31) + getNumberHashCode(this.imgWidth) | 0; + result = imul(result, 31) + getNumberHashCode(this.imgHeight) | 0; + result = imul(result, 31) + getNumberHashCode(this.imgSize) | 0; + result = imul(result, 31) + getStringHashCode(this.topRightIcon) | 0; + result = imul(result, 31) + getBooleanHashCode(this.playGifThumbnail) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KPicture)) + return false; + var tmp0_other_with_cast = other instanceof KPicture ? other : THROW_CCE(); + if (!(this.imgSrc === tmp0_other_with_cast.imgSrc)) + return false; + if (!equals(this.imgWidth, tmp0_other_with_cast.imgWidth)) + return false; + if (!equals(this.imgHeight, tmp0_other_with_cast.imgHeight)) + return false; + if (!equals(this.imgSize, tmp0_other_with_cast.imgSize)) + return false; + if (!(this.topRightIcon === tmp0_other_with_cast.topRightIcon)) + return false; + if (!(this.playGifThumbnail === tmp0_other_with_cast.playGifThumbnail)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KPicture_5z6q3j_k$(seen1, imgSrc, imgWidth, imgHeight, imgSize, topRightIcon, playGifThumbnail, serializationConstructorMarker) { + Companion_instance_1324; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1311().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.imgSrc = ''; + else + $this.imgSrc = imgSrc; + if (0 === (seen1 & 2)) + $this.imgWidth = 0.0; + else + $this.imgWidth = imgWidth; + if (0 === (seen1 & 4)) + $this.imgHeight = 0.0; + else + $this.imgHeight = imgHeight; + if (0 === (seen1 & 8)) + $this.imgSize = 0.0; + else + $this.imgSize = imgSize; + if (0 === (seen1 & 16)) + $this.topRightIcon = ''; + else + $this.topRightIcon = topRightIcon; + if (0 === (seen1 & 32)) + $this.playGifThumbnail = false; + else + $this.playGifThumbnail = playGifThumbnail; + return $this; + } + } + class Companion_1325 { + constructor() { + Companion_instance_1325 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, new ArrayListSerializer(StringSerializer_getInstance()), null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.main.community.reply.v1.RichTextNote'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1312(); + } + } + class $serializer_1312 { + constructor() { + $serializer_instance_1312 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KRichTextNote', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('summary', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('images', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('clickUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('lastMtimeText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_1325().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), tmp0_cached[1], StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp9_cached = Companion_getInstance_1325().$childSerializers_1; + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp9_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp9_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KRichTextNote.new_com_bapis_bilibili_main_community_reply_v1_KRichTextNote_lstbfz_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_41r1il_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_1325().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.summary === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.summary); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !equals(value.images, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 1, tmp2_cached[1], value.images); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.clickUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.clickUrl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.lastMtimeText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.lastMtimeText); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_41r1il_k$(encoder, value instanceof KRichTextNote ? value : THROW_CCE()); + } + } + class KRichTextNote { + constructor(summary, images, clickUrl, lastMtimeText) { + Companion_getInstance_1325(); + summary = summary === VOID ? '' : summary; + images = images === VOID ? emptyList() : images; + clickUrl = clickUrl === VOID ? '' : clickUrl; + lastMtimeText = lastMtimeText === VOID ? '' : lastMtimeText; + this.summary = summary; + this.images = images; + this.clickUrl = clickUrl; + this.lastMtimeText = lastMtimeText; + } + get_summary_tgfqkj_k$() { + return this.summary; + } + get_images_et448x_k$() { + return this.images; + } + get_clickUrl_gt9ieo_k$() { + return this.clickUrl; + } + get_lastMtimeText_ez8ico_k$() { + return this.lastMtimeText; + } + component1_7eebsc_k$() { + return this.summary; + } + component2_7eebsb_k$() { + return this.images; + } + component3_7eebsa_k$() { + return this.clickUrl; + } + component4_7eebs9_k$() { + return this.lastMtimeText; + } + copy_56p203_k$(summary, images, clickUrl, lastMtimeText) { + return new KRichTextNote(summary, images, clickUrl, lastMtimeText); + } + copy(summary, images, clickUrl, lastMtimeText, $super) { + summary = summary === VOID ? this.summary : summary; + images = images === VOID ? this.images : images; + clickUrl = clickUrl === VOID ? this.clickUrl : clickUrl; + lastMtimeText = lastMtimeText === VOID ? this.lastMtimeText : lastMtimeText; + return this.copy_56p203_k$(summary, images, clickUrl, lastMtimeText); + } + toString() { + return 'KRichTextNote(summary=' + this.summary + ', images=' + this.images + ', clickUrl=' + this.clickUrl + ', lastMtimeText=' + this.lastMtimeText + ')'; + } + hashCode() { + var result = getStringHashCode(this.summary); + result = imul(result, 31) + hashCode(this.images) | 0; + result = imul(result, 31) + getStringHashCode(this.clickUrl) | 0; + result = imul(result, 31) + getStringHashCode(this.lastMtimeText) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KRichTextNote)) + return false; + var tmp0_other_with_cast = other instanceof KRichTextNote ? other : THROW_CCE(); + if (!(this.summary === tmp0_other_with_cast.summary)) + return false; + if (!equals(this.images, tmp0_other_with_cast.images)) + return false; + if (!(this.clickUrl === tmp0_other_with_cast.clickUrl)) + return false; + if (!(this.lastMtimeText === tmp0_other_with_cast.lastMtimeText)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KRichTextNote_lstbfz_k$(seen1, summary, images, clickUrl, lastMtimeText, serializationConstructorMarker) { + Companion_getInstance_1325(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1312().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.summary = ''; + else + $this.summary = summary; + if (0 === (seen1 & 2)) + $this.images = emptyList(); + else + $this.images = images; + if (0 === (seen1 & 4)) + $this.clickUrl = ''; + else + $this.clickUrl = clickUrl; + if (0 === (seen1 & 8)) + $this.lastMtimeText = ''; + else + $this.lastMtimeText = lastMtimeText; + return $this; + } + } + class KItem_12 { + constructor(value) { + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + } + class KNote extends KItem_12 { + constructor() { + KNote_instance = null; + super(0); + KNote_instance = this; + } + } + class KOpus extends KItem_12 { + constructor() { + KOpus_instance = null; + super(1); + KOpus_instance = this; + } + } + class Companion_1326 { + constructor() { + Companion_instance_1326 = this; + var tmp = this; + tmp.itemValues$delegate_1 = lazy_0(KRichText$Companion$itemValues$delegate$lambda); + this.targetPath = '/bilibili.main.community.reply.v1.RichText'; + } + get_itemValues_e195su_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.itemValues$delegate_1; + var thisRef = this; + var property = itemValues$factory_8(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1313(); + } + get itemValues() { + return this.get_itemValues_e195su_k$(); + } + } + class $serializer_1313 { + constructor() { + $serializer_instance_1313 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KRichText', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('note', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('opus', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_1312()), get_nullable($serializer_getInstance_1129())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_transient0 = 0; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_1312(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_1129(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_1312(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_1129(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KRichText.new_com_bapis_bilibili_main_community_reply_v1_KRichText_e3bafa_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_3wjh23_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.note_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_1312(), value.note_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.opus_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_1129(), value.opus_1); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_3wjh23_k$(encoder, value instanceof KRichText ? value : THROW_CCE()); + } + } + class KRichText { + constructor(note, opus) { + Companion_getInstance_1326(); + note = note === VOID ? null : note; + opus = opus === VOID ? null : opus; + this.note_1 = note; + this.opus_1 = opus; + var tmp = this; + tmp.itemNumber$delegate_1 = lazy_0(KRichText$itemNumber$delegate$lambda(this)); + } + itemValue() { + if (!(this.note_1 == null)) { + var tmp = this.note_1; + return (tmp == null ? true : !(tmp == null)) ? tmp : null; + } else if (!(this.opus_1 == null)) { + var tmp_0 = this.opus_1; + return (tmp_0 == null ? true : !(tmp_0 == null)) ? tmp_0 : null; + } else { + return null; + } + } + itemTypeJs() { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = Companion_getInstance_1326().itemValues; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.main.community.reply.v1.KRichText.itemType.' call + var it = element; + tmp$ret$0 = it.value === _get_itemNumber__22vn01_8(this); + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + return tmp$ret$1; + } + copy_2kxh2q_k$(note, opus) { + return new KRichText(note, opus); + } + copy(note, opus, $super) { + note = note === VOID ? this.note_1 : note; + opus = opus === VOID ? this.opus_1 : opus; + return this.copy_2kxh2q_k$(note, opus); + } + toString() { + return 'KRichText(note=' + this.note_1 + ', opus=' + this.opus_1 + ')'; + } + hashCode() { + var result = this.note_1 == null ? 0 : this.note_1.hashCode(); + result = imul(result, 31) + (this.opus_1 == null ? 0 : this.opus_1.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KRichText)) + return false; + var tmp0_other_with_cast = other instanceof KRichText ? other : THROW_CCE(); + if (!equals(this.note_1, tmp0_other_with_cast.note_1)) + return false; + if (!equals(this.opus_1, tmp0_other_with_cast.opus_1)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KRichText_e3bafa_k$(seen1, note, opus, serializationConstructorMarker) { + Companion_getInstance_1326(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1313().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.note_1 = null; + else + $this.note_1 = note; + if (0 === (seen1 & 2)) + $this.opus_1 = null; + else + $this.opus_1 = opus; + var tmp = $this; + tmp.itemNumber$delegate_1 = lazy_0(KRichText$_init_$lambda_t9r9rd($this)); + return $this; + } + } + class Companion_1327 { + constructor() { + Companion_instance_1327 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KReplyControl$KVoteOption$KLabelKind$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KReplyControl$KVoteOption$KLabelKind$Companion$_anonymous__r3mib6); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_164(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.main.community.reply.v1.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KLabelKind_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.main.community.reply.v1.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KLabelKind with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_164(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_1314 { + constructor() { + $serializer_instance_1314 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.main.community.reply.v1.KReplyControl.KVoteOption.KLabelKind', 5); + tmp0_serialDesc.addElement_5pzumi_k$('DEFAULT', false); + tmp0_serialDesc.addElement_5pzumi_k$('RED', false); + tmp0_serialDesc.addElement_5pzumi_k$('BLUE', false); + tmp0_serialDesc.addElement_5pzumi_k$('PLAIN', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_164()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_2hd7a5_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_2hd7a5_k$(encoder, value instanceof KLabelKind ? value : THROW_CCE()); + } + } + class KLabelKind extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_1328 { + constructor() { + this.targetPath = '/bilibili.main.community.reply.v1.ReplyControl.VoteOption'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1315(); + } + } + class $serializer_1315 { + constructor() { + $serializer_instance_1315 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KReplyControl.KVoteOption', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('labelKind', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('desc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('idx', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('voteId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = null; + var tmp6_local2 = new Long(0, 0); + var tmp7_local3 = new Long(0, 0); + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KVoteOption.new_com_bapis_bilibili_main_community_reply_v1_KReplyControl_KVoteOption_h04dkp_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_h19a7z_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.labelKind === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.labelKind); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.desc === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.desc); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.idx.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.idx); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !value.voteId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 3, value.voteId); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_h19a7z_k$(encoder, value instanceof KVoteOption ? value : THROW_CCE()); + } + } + class Companion_1329 { + constructor() { + this.targetPath = '/bilibili.main.community.reply.v1.ReplyControl.GradeRecord.Text'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1316(); + } + } + class $serializer_1316 { + constructor() { + $serializer_instance_1316 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KReplyControl.KGradeRecord.KText', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('raw', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('style', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), get_nullable($serializer_getInstance_1295())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_1295(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_1295(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KText_3.new_com_bapis_bilibili_main_community_reply_v1_KReplyControl_KGradeRecord_KText_xv1ynf_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_ffsea2_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.raw === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.raw); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.style == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_1295(), value.style); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_ffsea2_k$(encoder, value instanceof KText_3 ? value : THROW_CCE()); + } + } + class KText_3 { + constructor(raw, style) { + Companion_instance_1329; + raw = raw === VOID ? '' : raw; + style = style === VOID ? null : style; + this.raw = raw; + this.style = style; + } + get_raw_18ix4x_k$() { + return this.raw; + } + get_style_iyqetk_k$() { + return this.style; + } + component1_7eebsc_k$() { + return this.raw; + } + component2_7eebsb_k$() { + return this.style; + } + copy_ud9v5x_k$(raw, style) { + return new KText_3(raw, style); + } + copy(raw, style, $super) { + raw = raw === VOID ? this.raw : raw; + style = style === VOID ? this.style : style; + return this.copy_ud9v5x_k$(raw, style); + } + toString() { + return 'KText(raw=' + this.raw + ', style=' + this.style + ')'; + } + hashCode() { + var result = getStringHashCode(this.raw); + result = imul(result, 31) + (this.style == null ? 0 : this.style.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KText_3)) + return false; + var tmp0_other_with_cast = other instanceof KText_3 ? other : THROW_CCE(); + if (!(this.raw === tmp0_other_with_cast.raw)) + return false; + if (!equals(this.style, tmp0_other_with_cast.style)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KReplyControl_KGradeRecord_KText_xv1ynf_k$(seen1, raw, style, serializationConstructorMarker) { + Companion_instance_1329; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1316().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.raw = ''; + else + $this.raw = raw; + if (0 === (seen1 & 2)) + $this.style = null; + else + $this.style = style; + return $this; + } + } + class Companion_1330 { + constructor() { + Companion_instance_1330 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, new ArrayListSerializer($serializer_getInstance_1316())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.main.community.reply.v1.ReplyControl.GradeRecord'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1317(); + } + } + class $serializer_1317 { + constructor() { + $serializer_instance_1317 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KReplyControl.KGradeRecord', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('score', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('texts', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_1330().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), tmp0_cached[1]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp7_cached = Companion_getInstance_1330().$childSerializers_1; + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KGradeRecord.new_com_bapis_bilibili_main_community_reply_v1_KReplyControl_KGradeRecord_ho7r37_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_73qag0_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_1330().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.score === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.score); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !equals(value.texts, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 1, tmp2_cached[1], value.texts); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_73qag0_k$(encoder, value instanceof KGradeRecord ? value : THROW_CCE()); + } + } + class Companion_1331 { + constructor() { + this.targetPath = '/bilibili.main.community.reply.v1.ReplyControl.EasterEggLabel'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1318(); + } + } + class $serializer_1318 { + constructor() { + $serializer_instance_1318 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KReplyControl.KEasterEggLabel', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('image', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('jumpUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KEasterEggLabel.new_com_bapis_bilibili_main_community_reply_v1_KReplyControl_KEasterEggLabel_ggshhw_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_4u9q2j_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.image === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.image); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.jumpUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.jumpUrl); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_4u9q2j_k$(encoder, value instanceof KEasterEggLabel ? value : THROW_CCE()); + } + } + class KVoteOption { + constructor(labelKind, desc, idx, voteId) { + Companion_instance_1328; + labelKind = labelKind === VOID ? 0 : labelKind; + desc = desc === VOID ? '' : desc; + idx = idx === VOID ? new Long(0, 0) : idx; + voteId = voteId === VOID ? new Long(0, 0) : voteId; + this.labelKind = labelKind; + this.desc = desc; + this.idx = idx; + this.voteId = voteId; + } + get_labelKind_1jguf5_k$() { + return this.labelKind; + } + get_desc_woknve_k$() { + return this.desc; + } + get_idx_18j3qk_k$() { + return this.idx; + } + get_voteId_l04v5a_k$() { + return this.voteId; + } + labelKindEnum() { + return Companion_getInstance_1327().fromValue(this.labelKind); + } + component1_7eebsc_k$() { + return this.labelKind; + } + component2_7eebsb_k$() { + return this.desc; + } + component3_7eebsa_k$() { + return this.idx; + } + component4_7eebs9_k$() { + return this.voteId; + } + copy_10ie99_k$(labelKind, desc, idx, voteId) { + return new KVoteOption(labelKind, desc, idx, voteId); + } + copy(labelKind, desc, idx, voteId, $super) { + labelKind = labelKind === VOID ? this.labelKind : labelKind; + desc = desc === VOID ? this.desc : desc; + idx = idx === VOID ? this.idx : idx; + voteId = voteId === VOID ? this.voteId : voteId; + return this.copy_10ie99_k$(labelKind, desc, idx, voteId); + } + toString() { + return 'KVoteOption(labelKind=' + this.labelKind + ', desc=' + this.desc + ', idx=' + this.idx.toString() + ', voteId=' + this.voteId.toString() + ')'; + } + hashCode() { + var result = this.labelKind; + result = imul(result, 31) + getStringHashCode(this.desc) | 0; + result = imul(result, 31) + this.idx.hashCode() | 0; + result = imul(result, 31) + this.voteId.hashCode() | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KVoteOption)) + return false; + var tmp0_other_with_cast = other instanceof KVoteOption ? other : THROW_CCE(); + if (!(this.labelKind === tmp0_other_with_cast.labelKind)) + return false; + if (!(this.desc === tmp0_other_with_cast.desc)) + return false; + if (!this.idx.equals(tmp0_other_with_cast.idx)) + return false; + if (!this.voteId.equals(tmp0_other_with_cast.voteId)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KReplyControl_KVoteOption_h04dkp_k$(seen1, labelKind, desc, idx, voteId, serializationConstructorMarker) { + Companion_instance_1328; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1315().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.labelKind = 0; + else + $this.labelKind = labelKind; + if (0 === (seen1 & 2)) + $this.desc = ''; + else + $this.desc = desc; + if (0 === (seen1 & 4)) + $this.idx = new Long(0, 0); + else + $this.idx = idx; + if (0 === (seen1 & 8)) + $this.voteId = new Long(0, 0); + else + $this.voteId = voteId; + return $this; + } + } + class KGradeRecord { + constructor(score, texts) { + Companion_getInstance_1330(); + score = score === VOID ? 0 : score; + texts = texts === VOID ? emptyList() : texts; + this.score = score; + this.texts = texts; + } + get_score_iyfcrt_k$() { + return this.score; + } + get_texts_iz0m2l_k$() { + return this.texts; + } + component1_7eebsc_k$() { + return this.score; + } + component2_7eebsb_k$() { + return this.texts; + } + copy_6nweoi_k$(score, texts) { + return new KGradeRecord(score, texts); + } + copy(score, texts, $super) { + score = score === VOID ? this.score : score; + texts = texts === VOID ? this.texts : texts; + return this.copy_6nweoi_k$(score, texts); + } + toString() { + return 'KGradeRecord(score=' + this.score + ', texts=' + this.texts + ')'; + } + hashCode() { + var result = this.score; + result = imul(result, 31) + hashCode(this.texts) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KGradeRecord)) + return false; + var tmp0_other_with_cast = other instanceof KGradeRecord ? other : THROW_CCE(); + if (!(this.score === tmp0_other_with_cast.score)) + return false; + if (!equals(this.texts, tmp0_other_with_cast.texts)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KReplyControl_KGradeRecord_ho7r37_k$(seen1, score, texts, serializationConstructorMarker) { + Companion_getInstance_1330(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1317().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.score = 0; + else + $this.score = score; + if (0 === (seen1 & 2)) + $this.texts = emptyList(); + else + $this.texts = texts; + return $this; + } + } + class KEasterEggLabel { + constructor(image, jumpUrl) { + Companion_instance_1331; + image = image === VOID ? '' : image; + jumpUrl = jumpUrl === VOID ? '' : jumpUrl; + this.image = image; + this.jumpUrl = jumpUrl; + } + get_image_it3i2a_k$() { + return this.image; + } + get_jumpUrl_jhqiko_k$() { + return this.jumpUrl; + } + component1_7eebsc_k$() { + return this.image; + } + component2_7eebsb_k$() { + return this.jumpUrl; + } + copy_plwnsl_k$(image, jumpUrl) { + return new KEasterEggLabel(image, jumpUrl); + } + copy(image, jumpUrl, $super) { + image = image === VOID ? this.image : image; + jumpUrl = jumpUrl === VOID ? this.jumpUrl : jumpUrl; + return this.copy_plwnsl_k$(image, jumpUrl); + } + toString() { + return 'KEasterEggLabel(image=' + this.image + ', jumpUrl=' + this.jumpUrl + ')'; + } + hashCode() { + var result = getStringHashCode(this.image); + result = imul(result, 31) + getStringHashCode(this.jumpUrl) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KEasterEggLabel)) + return false; + var tmp0_other_with_cast = other instanceof KEasterEggLabel ? other : THROW_CCE(); + if (!(this.image === tmp0_other_with_cast.image)) + return false; + if (!(this.jumpUrl === tmp0_other_with_cast.jumpUrl)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KReplyControl_KEasterEggLabel_ggshhw_k$(seen1, image, jumpUrl, serializationConstructorMarker) { + Companion_instance_1331; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1318().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.image = ''; + else + $this.image = image; + if (0 === (seen1 & 2)) + $this.jumpUrl = ''; + else + $this.jumpUrl = jumpUrl; + return $this; + } + } + class Companion_1332 { + constructor() { + Companion_instance_1332 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, new ArrayListSerializer($serializer_getInstance_1321()), null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.main.community.reply.v1.ReplyControl'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1319(); + } + } + class $serializer_1319 { + constructor() { + $serializer_instance_1319 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KReplyControl', this, 35); + tmp0_serialDesc.addElement_5pzumi_k$('action', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('upLike', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('upReply', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('showFollowBtn', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('isAssist', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('labelText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('following', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('followed', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('blocked', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('hasFoldedReply', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('isFoldedReply', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('isUpTop', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + tmp0_serialDesc.addElement_5pzumi_k$('isAdminTop', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(13)); + tmp0_serialDesc.addElement_5pzumi_k$('isVoteTop', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(14)); + tmp0_serialDesc.addElement_5pzumi_k$('maxLine', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(15)); + tmp0_serialDesc.addElement_5pzumi_k$('invisible', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(16)); + tmp0_serialDesc.addElement_5pzumi_k$('isContractor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(17)); + tmp0_serialDesc.addElement_5pzumi_k$('isNote', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(18)); + tmp0_serialDesc.addElement_5pzumi_k$('cardLabels', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(19)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('subReplyEntryText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(20)); + tmp0_serialDesc.addElement_5pzumi_k$('subReplyTitleText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(21)); + tmp0_serialDesc.addElement_5pzumi_k$('contractDesc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(22)); + tmp0_serialDesc.addElement_5pzumi_k$('timeDesc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(23)); + tmp0_serialDesc.addElement_5pzumi_k$('bizScene', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(24)); + tmp0_serialDesc.addElement_5pzumi_k$('location', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(25)); + tmp0_serialDesc.addElement_5pzumi_k$('foldPictures', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(26)); + tmp0_serialDesc.addElement_5pzumi_k$('isNoteV2', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(27)); + tmp0_serialDesc.addElement_5pzumi_k$('hideNoteIcon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(28)); + tmp0_serialDesc.addElement_5pzumi_k$('cmRecommendComponent', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(29)); + tmp0_serialDesc.addElement_5pzumi_k$('voteOption', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(30)); + tmp0_serialDesc.addElement_5pzumi_k$('chargedDesc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(31)); + tmp0_serialDesc.addElement_5pzumi_k$('gradeRecord', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(32)); + tmp0_serialDesc.addElement_5pzumi_k$('presetReplyText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(33)); + tmp0_serialDesc.addElement_5pzumi_k$('easterEggLabel', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(34)); + tmp0_serialDesc.addElement_5pzumi_k$('contextFeature', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(35)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_1332().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), StringSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), LongSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), tmp0_cached[18], StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_1315()), StringSerializer_getInstance(), get_nullable($serializer_getInstance_1317()), StringSerializer_getInstance(), get_nullable($serializer_getInstance_1318()), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_bitMask1 = 0; + var tmp5_local0 = new Long(0, 0); + var tmp6_local1 = false; + var tmp7_local2 = false; + var tmp8_local3 = false; + var tmp9_local4 = false; + var tmp10_local5 = null; + var tmp11_local6 = false; + var tmp12_local7 = false; + var tmp13_local8 = false; + var tmp14_local9 = false; + var tmp15_local10 = false; + var tmp16_local11 = false; + var tmp17_local12 = false; + var tmp18_local13 = false; + var tmp19_local14 = new Long(0, 0); + var tmp20_local15 = false; + var tmp21_local16 = false; + var tmp22_local17 = false; + var tmp23_local18 = null; + var tmp24_local19 = null; + var tmp25_local20 = null; + var tmp26_local21 = null; + var tmp27_local22 = null; + var tmp28_local23 = null; + var tmp29_local24 = null; + var tmp30_local25 = false; + var tmp31_local26 = false; + var tmp32_local27 = false; + var tmp33_local28 = null; + var tmp34_local29 = null; + var tmp35_local30 = null; + var tmp36_local31 = null; + var tmp37_local32 = null; + var tmp38_local33 = null; + var tmp39_local34 = null; + var tmp40_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp41_cached = Companion_getInstance_1332().$childSerializers_1; + if (tmp40_input.decodeSequentially_xlblqy_k$()) { + tmp5_local0 = tmp40_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp6_local1 = tmp40_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp7_local2 = tmp40_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp8_local3 = tmp40_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp9_local4 = tmp40_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp10_local5 = tmp40_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp11_local6 = tmp40_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp12_local7 = tmp40_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp13_local8 = tmp40_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp14_local9 = tmp40_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp15_local10 = tmp40_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp16_local11 = tmp40_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + tmp17_local12 = tmp40_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + tmp18_local13 = tmp40_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + tmp19_local14 = tmp40_input.decodeLongElement_994anb_k$(tmp0_desc, 14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + tmp20_local15 = tmp40_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + tmp21_local16 = tmp40_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 16); + tmp3_bitMask0 = tmp3_bitMask0 | 65536; + tmp22_local17 = tmp40_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 17); + tmp3_bitMask0 = tmp3_bitMask0 | 131072; + tmp23_local18 = tmp40_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 18, tmp41_cached[18], tmp23_local18); + tmp3_bitMask0 = tmp3_bitMask0 | 262144; + tmp24_local19 = tmp40_input.decodeStringElement_3oenpg_k$(tmp0_desc, 19); + tmp3_bitMask0 = tmp3_bitMask0 | 524288; + tmp25_local20 = tmp40_input.decodeStringElement_3oenpg_k$(tmp0_desc, 20); + tmp3_bitMask0 = tmp3_bitMask0 | 1048576; + tmp26_local21 = tmp40_input.decodeStringElement_3oenpg_k$(tmp0_desc, 21); + tmp3_bitMask0 = tmp3_bitMask0 | 2097152; + tmp27_local22 = tmp40_input.decodeStringElement_3oenpg_k$(tmp0_desc, 22); + tmp3_bitMask0 = tmp3_bitMask0 | 4194304; + tmp28_local23 = tmp40_input.decodeStringElement_3oenpg_k$(tmp0_desc, 23); + tmp3_bitMask0 = tmp3_bitMask0 | 8388608; + tmp29_local24 = tmp40_input.decodeStringElement_3oenpg_k$(tmp0_desc, 24); + tmp3_bitMask0 = tmp3_bitMask0 | 16777216; + tmp30_local25 = tmp40_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 25); + tmp3_bitMask0 = tmp3_bitMask0 | 33554432; + tmp31_local26 = tmp40_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 26); + tmp3_bitMask0 = tmp3_bitMask0 | 67108864; + tmp32_local27 = tmp40_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 27); + tmp3_bitMask0 = tmp3_bitMask0 | 134217728; + tmp33_local28 = tmp40_input.decodeStringElement_3oenpg_k$(tmp0_desc, 28); + tmp3_bitMask0 = tmp3_bitMask0 | 268435456; + tmp34_local29 = tmp40_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 29, $serializer_getInstance_1315(), tmp34_local29); + tmp3_bitMask0 = tmp3_bitMask0 | 536870912; + tmp35_local30 = tmp40_input.decodeStringElement_3oenpg_k$(tmp0_desc, 30); + tmp3_bitMask0 = tmp3_bitMask0 | 1073741824; + tmp36_local31 = tmp40_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 31, $serializer_getInstance_1317(), tmp36_local31); + tmp3_bitMask0 = tmp3_bitMask0 | -2147483648; + tmp37_local32 = tmp40_input.decodeStringElement_3oenpg_k$(tmp0_desc, 32); + tmp4_bitMask1 = tmp4_bitMask1 | 1; + tmp38_local33 = tmp40_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 33, $serializer_getInstance_1318(), tmp38_local33); + tmp4_bitMask1 = tmp4_bitMask1 | 2; + tmp39_local34 = tmp40_input.decodeStringElement_3oenpg_k$(tmp0_desc, 34); + tmp4_bitMask1 = tmp4_bitMask1 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp40_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp5_local0 = tmp40_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp6_local1 = tmp40_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp7_local2 = tmp40_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp8_local3 = tmp40_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp9_local4 = tmp40_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp10_local5 = tmp40_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp11_local6 = tmp40_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp12_local7 = tmp40_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp13_local8 = tmp40_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp14_local9 = tmp40_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp15_local10 = tmp40_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp16_local11 = tmp40_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + case 12: + tmp17_local12 = tmp40_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + break; + case 13: + tmp18_local13 = tmp40_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + break; + case 14: + tmp19_local14 = tmp40_input.decodeLongElement_994anb_k$(tmp0_desc, 14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + break; + case 15: + tmp20_local15 = tmp40_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + break; + case 16: + tmp21_local16 = tmp40_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 16); + tmp3_bitMask0 = tmp3_bitMask0 | 65536; + break; + case 17: + tmp22_local17 = tmp40_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 17); + tmp3_bitMask0 = tmp3_bitMask0 | 131072; + break; + case 18: + tmp23_local18 = tmp40_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 18, tmp41_cached[18], tmp23_local18); + tmp3_bitMask0 = tmp3_bitMask0 | 262144; + break; + case 19: + tmp24_local19 = tmp40_input.decodeStringElement_3oenpg_k$(tmp0_desc, 19); + tmp3_bitMask0 = tmp3_bitMask0 | 524288; + break; + case 20: + tmp25_local20 = tmp40_input.decodeStringElement_3oenpg_k$(tmp0_desc, 20); + tmp3_bitMask0 = tmp3_bitMask0 | 1048576; + break; + case 21: + tmp26_local21 = tmp40_input.decodeStringElement_3oenpg_k$(tmp0_desc, 21); + tmp3_bitMask0 = tmp3_bitMask0 | 2097152; + break; + case 22: + tmp27_local22 = tmp40_input.decodeStringElement_3oenpg_k$(tmp0_desc, 22); + tmp3_bitMask0 = tmp3_bitMask0 | 4194304; + break; + case 23: + tmp28_local23 = tmp40_input.decodeStringElement_3oenpg_k$(tmp0_desc, 23); + tmp3_bitMask0 = tmp3_bitMask0 | 8388608; + break; + case 24: + tmp29_local24 = tmp40_input.decodeStringElement_3oenpg_k$(tmp0_desc, 24); + tmp3_bitMask0 = tmp3_bitMask0 | 16777216; + break; + case 25: + tmp30_local25 = tmp40_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 25); + tmp3_bitMask0 = tmp3_bitMask0 | 33554432; + break; + case 26: + tmp31_local26 = tmp40_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 26); + tmp3_bitMask0 = tmp3_bitMask0 | 67108864; + break; + case 27: + tmp32_local27 = tmp40_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 27); + tmp3_bitMask0 = tmp3_bitMask0 | 134217728; + break; + case 28: + tmp33_local28 = tmp40_input.decodeStringElement_3oenpg_k$(tmp0_desc, 28); + tmp3_bitMask0 = tmp3_bitMask0 | 268435456; + break; + case 29: + tmp34_local29 = tmp40_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 29, $serializer_getInstance_1315(), tmp34_local29); + tmp3_bitMask0 = tmp3_bitMask0 | 536870912; + break; + case 30: + tmp35_local30 = tmp40_input.decodeStringElement_3oenpg_k$(tmp0_desc, 30); + tmp3_bitMask0 = tmp3_bitMask0 | 1073741824; + break; + case 31: + tmp36_local31 = tmp40_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 31, $serializer_getInstance_1317(), tmp36_local31); + tmp3_bitMask0 = tmp3_bitMask0 | -2147483648; + break; + case 32: + tmp37_local32 = tmp40_input.decodeStringElement_3oenpg_k$(tmp0_desc, 32); + tmp4_bitMask1 = tmp4_bitMask1 | 1; + break; + case 33: + tmp38_local33 = tmp40_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 33, $serializer_getInstance_1318(), tmp38_local33); + tmp4_bitMask1 = tmp4_bitMask1 | 2; + break; + case 34: + tmp39_local34 = tmp40_input.decodeStringElement_3oenpg_k$(tmp0_desc, 34); + tmp4_bitMask1 = tmp4_bitMask1 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp40_input.endStructure_1xqz0n_k$(tmp0_desc); + return KReplyControl.new_com_bapis_bilibili_main_community_reply_v1_KReplyControl_ackice_k$(tmp3_bitMask0, tmp4_bitMask1, tmp5_local0, tmp6_local1, tmp7_local2, tmp8_local3, tmp9_local4, tmp10_local5, tmp11_local6, tmp12_local7, tmp13_local8, tmp14_local9, tmp15_local10, tmp16_local11, tmp17_local12, tmp18_local13, tmp19_local14, tmp20_local15, tmp21_local16, tmp22_local17, tmp23_local18, tmp24_local19, tmp25_local20, tmp26_local21, tmp27_local22, tmp28_local23, tmp29_local24, tmp30_local25, tmp31_local26, tmp32_local27, tmp33_local28, tmp34_local29, tmp35_local30, tmp36_local31, tmp37_local32, tmp38_local33, tmp39_local34, null); + } + serialize_i8sdob_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_1332().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.action.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.action); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.upLike === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 1, value.upLike); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.upReply === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 2, value.upReply); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.showFollowBtn === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 3, value.showFollowBtn); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.isAssist === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 4, value.isAssist); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.labelText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.labelText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.following === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 6, value.following); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.followed === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 7, value.followed); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.blocked === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 8, value.blocked); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.hasFoldedReply === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 9, value.hasFoldedReply); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.isFoldedReply === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 10, value.isFoldedReply); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.isUpTop === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 11, value.isUpTop); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !(value.isAdminTop === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 12, value.isAdminTop); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 13) ? true : !(value.isVoteTop === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 13, value.isVoteTop); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 14) ? true : !value.maxLine.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 14, value.maxLine); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 15) ? true : !(value.invisible === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 15, value.invisible); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 16) ? true : !(value.isContractor === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 16, value.isContractor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 17) ? true : !(value.isNote === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 17, value.isNote); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 18) ? true : !equals(value.cardLabels, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 18, tmp2_cached[18], value.cardLabels); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 19) ? true : !(value.subReplyEntryText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 19, value.subReplyEntryText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 20) ? true : !(value.subReplyTitleText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 20, value.subReplyTitleText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 21) ? true : !(value.contractDesc === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 21, value.contractDesc); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 22) ? true : !(value.timeDesc === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 22, value.timeDesc); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 23) ? true : !(value.bizScene === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 23, value.bizScene); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 24) ? true : !(value.location === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 24, value.location); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 25) ? true : !(value.foldPictures === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 25, value.foldPictures); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 26) ? true : !(value.isNoteV2 === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 26, value.isNoteV2); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 27) ? true : !(value.hideNoteIcon === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 27, value.hideNoteIcon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 28) ? true : !(value.cmRecommendComponent === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 28, value.cmRecommendComponent); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 29) ? true : !(value.voteOption == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 29, $serializer_getInstance_1315(), value.voteOption); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 30) ? true : !(value.chargedDesc === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 30, value.chargedDesc); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 31) ? true : !(value.gradeRecord == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 31, $serializer_getInstance_1317(), value.gradeRecord); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 32) ? true : !(value.presetReplyText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 32, value.presetReplyText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 33) ? true : !(value.easterEggLabel == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 33, $serializer_getInstance_1318(), value.easterEggLabel); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 34) ? true : !(value.contextFeature === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 34, value.contextFeature); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_i8sdob_k$(encoder, value instanceof KReplyControl ? value : THROW_CCE()); + } + } + class KReplyControl { + constructor(action, upLike, upReply, showFollowBtn, isAssist, labelText, following, followed, blocked, hasFoldedReply, isFoldedReply, isUpTop, isAdminTop, isVoteTop, maxLine, invisible, isContractor, isNote, cardLabels, subReplyEntryText, subReplyTitleText, contractDesc, timeDesc, bizScene, location, foldPictures, isNoteV2, hideNoteIcon, cmRecommendComponent, voteOption, chargedDesc, gradeRecord, presetReplyText, easterEggLabel, contextFeature) { + Companion_getInstance_1332(); + action = action === VOID ? new Long(0, 0) : action; + upLike = upLike === VOID ? false : upLike; + upReply = upReply === VOID ? false : upReply; + showFollowBtn = showFollowBtn === VOID ? false : showFollowBtn; + isAssist = isAssist === VOID ? false : isAssist; + labelText = labelText === VOID ? '' : labelText; + following = following === VOID ? false : following; + followed = followed === VOID ? false : followed; + blocked = blocked === VOID ? false : blocked; + hasFoldedReply = hasFoldedReply === VOID ? false : hasFoldedReply; + isFoldedReply = isFoldedReply === VOID ? false : isFoldedReply; + isUpTop = isUpTop === VOID ? false : isUpTop; + isAdminTop = isAdminTop === VOID ? false : isAdminTop; + isVoteTop = isVoteTop === VOID ? false : isVoteTop; + maxLine = maxLine === VOID ? new Long(0, 0) : maxLine; + invisible = invisible === VOID ? false : invisible; + isContractor = isContractor === VOID ? false : isContractor; + isNote = isNote === VOID ? false : isNote; + cardLabels = cardLabels === VOID ? emptyList() : cardLabels; + subReplyEntryText = subReplyEntryText === VOID ? '' : subReplyEntryText; + subReplyTitleText = subReplyTitleText === VOID ? '' : subReplyTitleText; + contractDesc = contractDesc === VOID ? '' : contractDesc; + timeDesc = timeDesc === VOID ? '' : timeDesc; + bizScene = bizScene === VOID ? '' : bizScene; + location = location === VOID ? '' : location; + foldPictures = foldPictures === VOID ? false : foldPictures; + isNoteV2 = isNoteV2 === VOID ? false : isNoteV2; + hideNoteIcon = hideNoteIcon === VOID ? false : hideNoteIcon; + cmRecommendComponent = cmRecommendComponent === VOID ? '' : cmRecommendComponent; + voteOption = voteOption === VOID ? null : voteOption; + chargedDesc = chargedDesc === VOID ? '' : chargedDesc; + gradeRecord = gradeRecord === VOID ? null : gradeRecord; + presetReplyText = presetReplyText === VOID ? '' : presetReplyText; + easterEggLabel = easterEggLabel === VOID ? null : easterEggLabel; + contextFeature = contextFeature === VOID ? '' : contextFeature; + this.action = action; + this.upLike = upLike; + this.upReply = upReply; + this.showFollowBtn = showFollowBtn; + this.isAssist = isAssist; + this.labelText = labelText; + this.following = following; + this.followed = followed; + this.blocked = blocked; + this.hasFoldedReply = hasFoldedReply; + this.isFoldedReply = isFoldedReply; + this.isUpTop = isUpTop; + this.isAdminTop = isAdminTop; + this.isVoteTop = isVoteTop; + this.maxLine = maxLine; + this.invisible = invisible; + this.isContractor = isContractor; + this.isNote = isNote; + this.cardLabels = cardLabels; + this.subReplyEntryText = subReplyEntryText; + this.subReplyTitleText = subReplyTitleText; + this.contractDesc = contractDesc; + this.timeDesc = timeDesc; + this.bizScene = bizScene; + this.location = location; + this.foldPictures = foldPictures; + this.isNoteV2 = isNoteV2; + this.hideNoteIcon = hideNoteIcon; + this.cmRecommendComponent = cmRecommendComponent; + this.voteOption = voteOption; + this.chargedDesc = chargedDesc; + this.gradeRecord = gradeRecord; + this.presetReplyText = presetReplyText; + this.easterEggLabel = easterEggLabel; + this.contextFeature = contextFeature; + } + get_action_avldmn_k$() { + return this.action; + } + get_upLike_kixlnf_k$() { + return this.upLike; + } + get_upReply_2vuj16_k$() { + return this.upReply; + } + get_showFollowBtn_ueypx_k$() { + return this.showFollowBtn; + } + get_isAssist_r32i2k_k$() { + return this.isAssist; + } + get_labelText_1jb694_k$() { + return this.labelText; + } + get_following_l6j1m0_k$() { + return this.following; + } + get_followed_qt9353_k$() { + return this.followed; + } + get_blocked_wsgeb_k$() { + return this.blocked; + } + get_hasFoldedReply_qokvax_k$() { + return this.hasFoldedReply; + } + get_isFoldedReply_tjbmmh_k$() { + return this.isFoldedReply; + } + get_isUpTop_zhf4mx_k$() { + return this.isUpTop; + } + get_isAdminTop_lpkpjt_k$() { + return this.isAdminTop; + } + get_isVoteTop_9hyrbs_k$() { + return this.isVoteTop; + } + get_maxLine_f7z1xr_k$() { + return this.maxLine; + } + get_invisible_mxrhfg_k$() { + return this.invisible; + } + get_isContractor_k968oo_k$() { + return this.isContractor; + } + get_isNote_ew2xc5_k$() { + return this.isNote; + } + get_cardLabels_d12lvs_k$() { + return this.cardLabels; + } + get_subReplyEntryText_gl3g44_k$() { + return this.subReplyEntryText; + } + get_subReplyTitleText_r1uqaa_k$() { + return this.subReplyTitleText; + } + get_contractDesc_inn01g_k$() { + return this.contractDesc; + } + get_timeDesc_4v2v9j_k$() { + return this.timeDesc; + } + get_bizScene_au4p32_k$() { + return this.bizScene; + } + get_location_d3s02_k$() { + return this.location; + } + get_foldPictures_yuwnz5_k$() { + return this.foldPictures; + } + get_isNoteV2_x6gy3l_k$() { + return this.isNoteV2; + } + get_hideNoteIcon_v1naoa_k$() { + return this.hideNoteIcon; + } + get_cmRecommendComponent_jmqia4_k$() { + return this.cmRecommendComponent; + } + get_voteOption_6wen48_k$() { + return this.voteOption; + } + get_chargedDesc_uug9rs_k$() { + return this.chargedDesc; + } + get_gradeRecord_5vn7a7_k$() { + return this.gradeRecord; + } + get_presetReplyText_dfsqfl_k$() { + return this.presetReplyText; + } + get_easterEggLabel_j2bdz6_k$() { + return this.easterEggLabel; + } + get_contextFeature_88twls_k$() { + return this.contextFeature; + } + component1_7eebsc_k$() { + return this.action; + } + component2_7eebsb_k$() { + return this.upLike; + } + component3_7eebsa_k$() { + return this.upReply; + } + component4_7eebs9_k$() { + return this.showFollowBtn; + } + component5_7eebs8_k$() { + return this.isAssist; + } + component6_7eebs7_k$() { + return this.labelText; + } + component7_7eebs6_k$() { + return this.following; + } + component8_7eebs5_k$() { + return this.followed; + } + component9_7eebs4_k$() { + return this.blocked; + } + component10_gazzfo_k$() { + return this.hasFoldedReply; + } + component11_gazzfn_k$() { + return this.isFoldedReply; + } + component12_gazzfm_k$() { + return this.isUpTop; + } + component13_gazzfl_k$() { + return this.isAdminTop; + } + component14_gazzfk_k$() { + return this.isVoteTop; + } + component15_gazzfj_k$() { + return this.maxLine; + } + component16_gazzfi_k$() { + return this.invisible; + } + component17_gazzfh_k$() { + return this.isContractor; + } + component18_gazzfg_k$() { + return this.isNote; + } + component19_gazzff_k$() { + return this.cardLabels; + } + component20_gazzet_k$() { + return this.subReplyEntryText; + } + component21_gazzes_k$() { + return this.subReplyTitleText; + } + component22_gazzer_k$() { + return this.contractDesc; + } + component23_gazzeq_k$() { + return this.timeDesc; + } + component24_gazzep_k$() { + return this.bizScene; + } + component25_gazzeo_k$() { + return this.location; + } + component26_gazzen_k$() { + return this.foldPictures; + } + component27_gazzem_k$() { + return this.isNoteV2; + } + component28_gazzel_k$() { + return this.hideNoteIcon; + } + component29_gazzek_k$() { + return this.cmRecommendComponent; + } + component30_gazzdy_k$() { + return this.voteOption; + } + component31_gazzdx_k$() { + return this.chargedDesc; + } + component32_gazzdw_k$() { + return this.gradeRecord; + } + component33_gazzdv_k$() { + return this.presetReplyText; + } + component34_gazzdu_k$() { + return this.easterEggLabel; + } + component35_gazzdt_k$() { + return this.contextFeature; + } + copy_z6fb7a_k$(action, upLike, upReply, showFollowBtn, isAssist, labelText, following, followed, blocked, hasFoldedReply, isFoldedReply, isUpTop, isAdminTop, isVoteTop, maxLine, invisible, isContractor, isNote, cardLabels, subReplyEntryText, subReplyTitleText, contractDesc, timeDesc, bizScene, location, foldPictures, isNoteV2, hideNoteIcon, cmRecommendComponent, voteOption, chargedDesc, gradeRecord, presetReplyText, easterEggLabel, contextFeature) { + return new KReplyControl(action, upLike, upReply, showFollowBtn, isAssist, labelText, following, followed, blocked, hasFoldedReply, isFoldedReply, isUpTop, isAdminTop, isVoteTop, maxLine, invisible, isContractor, isNote, cardLabels, subReplyEntryText, subReplyTitleText, contractDesc, timeDesc, bizScene, location, foldPictures, isNoteV2, hideNoteIcon, cmRecommendComponent, voteOption, chargedDesc, gradeRecord, presetReplyText, easterEggLabel, contextFeature); + } + copy(action, upLike, upReply, showFollowBtn, isAssist, labelText, following, followed, blocked, hasFoldedReply, isFoldedReply, isUpTop, isAdminTop, isVoteTop, maxLine, invisible, isContractor, isNote, cardLabels, subReplyEntryText, subReplyTitleText, contractDesc, timeDesc, bizScene, location, foldPictures, isNoteV2, hideNoteIcon, cmRecommendComponent, voteOption, chargedDesc, gradeRecord, presetReplyText, easterEggLabel, contextFeature, $super) { + action = action === VOID ? this.action : action; + upLike = upLike === VOID ? this.upLike : upLike; + upReply = upReply === VOID ? this.upReply : upReply; + showFollowBtn = showFollowBtn === VOID ? this.showFollowBtn : showFollowBtn; + isAssist = isAssist === VOID ? this.isAssist : isAssist; + labelText = labelText === VOID ? this.labelText : labelText; + following = following === VOID ? this.following : following; + followed = followed === VOID ? this.followed : followed; + blocked = blocked === VOID ? this.blocked : blocked; + hasFoldedReply = hasFoldedReply === VOID ? this.hasFoldedReply : hasFoldedReply; + isFoldedReply = isFoldedReply === VOID ? this.isFoldedReply : isFoldedReply; + isUpTop = isUpTop === VOID ? this.isUpTop : isUpTop; + isAdminTop = isAdminTop === VOID ? this.isAdminTop : isAdminTop; + isVoteTop = isVoteTop === VOID ? this.isVoteTop : isVoteTop; + maxLine = maxLine === VOID ? this.maxLine : maxLine; + invisible = invisible === VOID ? this.invisible : invisible; + isContractor = isContractor === VOID ? this.isContractor : isContractor; + isNote = isNote === VOID ? this.isNote : isNote; + cardLabels = cardLabels === VOID ? this.cardLabels : cardLabels; + subReplyEntryText = subReplyEntryText === VOID ? this.subReplyEntryText : subReplyEntryText; + subReplyTitleText = subReplyTitleText === VOID ? this.subReplyTitleText : subReplyTitleText; + contractDesc = contractDesc === VOID ? this.contractDesc : contractDesc; + timeDesc = timeDesc === VOID ? this.timeDesc : timeDesc; + bizScene = bizScene === VOID ? this.bizScene : bizScene; + location = location === VOID ? this.location : location; + foldPictures = foldPictures === VOID ? this.foldPictures : foldPictures; + isNoteV2 = isNoteV2 === VOID ? this.isNoteV2 : isNoteV2; + hideNoteIcon = hideNoteIcon === VOID ? this.hideNoteIcon : hideNoteIcon; + cmRecommendComponent = cmRecommendComponent === VOID ? this.cmRecommendComponent : cmRecommendComponent; + voteOption = voteOption === VOID ? this.voteOption : voteOption; + chargedDesc = chargedDesc === VOID ? this.chargedDesc : chargedDesc; + gradeRecord = gradeRecord === VOID ? this.gradeRecord : gradeRecord; + presetReplyText = presetReplyText === VOID ? this.presetReplyText : presetReplyText; + easterEggLabel = easterEggLabel === VOID ? this.easterEggLabel : easterEggLabel; + contextFeature = contextFeature === VOID ? this.contextFeature : contextFeature; + return this.copy_z6fb7a_k$(action, upLike, upReply, showFollowBtn, isAssist, labelText, following, followed, blocked, hasFoldedReply, isFoldedReply, isUpTop, isAdminTop, isVoteTop, maxLine, invisible, isContractor, isNote, cardLabels, subReplyEntryText, subReplyTitleText, contractDesc, timeDesc, bizScene, location, foldPictures, isNoteV2, hideNoteIcon, cmRecommendComponent, voteOption, chargedDesc, gradeRecord, presetReplyText, easterEggLabel, contextFeature); + } + toString() { + return 'KReplyControl(action=' + this.action.toString() + ', upLike=' + this.upLike + ', upReply=' + this.upReply + ', showFollowBtn=' + this.showFollowBtn + ', isAssist=' + this.isAssist + ', labelText=' + this.labelText + ', following=' + this.following + ', followed=' + this.followed + ', blocked=' + this.blocked + ', hasFoldedReply=' + this.hasFoldedReply + ', isFoldedReply=' + this.isFoldedReply + ', isUpTop=' + this.isUpTop + ', isAdminTop=' + this.isAdminTop + ', isVoteTop=' + this.isVoteTop + ', maxLine=' + this.maxLine.toString() + ', invisible=' + this.invisible + ', isContractor=' + this.isContractor + ', isNote=' + this.isNote + ', cardLabels=' + this.cardLabels + ', subReplyEntryText=' + this.subReplyEntryText + ', subReplyTitleText=' + this.subReplyTitleText + ', contractDesc=' + this.contractDesc + ', timeDesc=' + this.timeDesc + ', bizScene=' + this.bizScene + ', location=' + this.location + ', foldPictures=' + this.foldPictures + ', isNoteV2=' + this.isNoteV2 + ', hideNoteIcon=' + this.hideNoteIcon + ', cmRecommendComponent=' + this.cmRecommendComponent + ', voteOption=' + this.voteOption + ', chargedDesc=' + this.chargedDesc + ', gradeRecord=' + this.gradeRecord + ', presetReplyText=' + this.presetReplyText + ', easterEggLabel=' + this.easterEggLabel + ', contextFeature=' + this.contextFeature + ')'; + } + hashCode() { + var result = this.action.hashCode(); + result = imul(result, 31) + getBooleanHashCode(this.upLike) | 0; + result = imul(result, 31) + getBooleanHashCode(this.upReply) | 0; + result = imul(result, 31) + getBooleanHashCode(this.showFollowBtn) | 0; + result = imul(result, 31) + getBooleanHashCode(this.isAssist) | 0; + result = imul(result, 31) + getStringHashCode(this.labelText) | 0; + result = imul(result, 31) + getBooleanHashCode(this.following) | 0; + result = imul(result, 31) + getBooleanHashCode(this.followed) | 0; + result = imul(result, 31) + getBooleanHashCode(this.blocked) | 0; + result = imul(result, 31) + getBooleanHashCode(this.hasFoldedReply) | 0; + result = imul(result, 31) + getBooleanHashCode(this.isFoldedReply) | 0; + result = imul(result, 31) + getBooleanHashCode(this.isUpTop) | 0; + result = imul(result, 31) + getBooleanHashCode(this.isAdminTop) | 0; + result = imul(result, 31) + getBooleanHashCode(this.isVoteTop) | 0; + result = imul(result, 31) + this.maxLine.hashCode() | 0; + result = imul(result, 31) + getBooleanHashCode(this.invisible) | 0; + result = imul(result, 31) + getBooleanHashCode(this.isContractor) | 0; + result = imul(result, 31) + getBooleanHashCode(this.isNote) | 0; + result = imul(result, 31) + hashCode(this.cardLabels) | 0; + result = imul(result, 31) + getStringHashCode(this.subReplyEntryText) | 0; + result = imul(result, 31) + getStringHashCode(this.subReplyTitleText) | 0; + result = imul(result, 31) + getStringHashCode(this.contractDesc) | 0; + result = imul(result, 31) + getStringHashCode(this.timeDesc) | 0; + result = imul(result, 31) + getStringHashCode(this.bizScene) | 0; + result = imul(result, 31) + getStringHashCode(this.location) | 0; + result = imul(result, 31) + getBooleanHashCode(this.foldPictures) | 0; + result = imul(result, 31) + getBooleanHashCode(this.isNoteV2) | 0; + result = imul(result, 31) + getBooleanHashCode(this.hideNoteIcon) | 0; + result = imul(result, 31) + getStringHashCode(this.cmRecommendComponent) | 0; + result = imul(result, 31) + (this.voteOption == null ? 0 : this.voteOption.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.chargedDesc) | 0; + result = imul(result, 31) + (this.gradeRecord == null ? 0 : this.gradeRecord.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.presetReplyText) | 0; + result = imul(result, 31) + (this.easterEggLabel == null ? 0 : this.easterEggLabel.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.contextFeature) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KReplyControl)) + return false; + var tmp0_other_with_cast = other instanceof KReplyControl ? other : THROW_CCE(); + if (!this.action.equals(tmp0_other_with_cast.action)) + return false; + if (!(this.upLike === tmp0_other_with_cast.upLike)) + return false; + if (!(this.upReply === tmp0_other_with_cast.upReply)) + return false; + if (!(this.showFollowBtn === tmp0_other_with_cast.showFollowBtn)) + return false; + if (!(this.isAssist === tmp0_other_with_cast.isAssist)) + return false; + if (!(this.labelText === tmp0_other_with_cast.labelText)) + return false; + if (!(this.following === tmp0_other_with_cast.following)) + return false; + if (!(this.followed === tmp0_other_with_cast.followed)) + return false; + if (!(this.blocked === tmp0_other_with_cast.blocked)) + return false; + if (!(this.hasFoldedReply === tmp0_other_with_cast.hasFoldedReply)) + return false; + if (!(this.isFoldedReply === tmp0_other_with_cast.isFoldedReply)) + return false; + if (!(this.isUpTop === tmp0_other_with_cast.isUpTop)) + return false; + if (!(this.isAdminTop === tmp0_other_with_cast.isAdminTop)) + return false; + if (!(this.isVoteTop === tmp0_other_with_cast.isVoteTop)) + return false; + if (!this.maxLine.equals(tmp0_other_with_cast.maxLine)) + return false; + if (!(this.invisible === tmp0_other_with_cast.invisible)) + return false; + if (!(this.isContractor === tmp0_other_with_cast.isContractor)) + return false; + if (!(this.isNote === tmp0_other_with_cast.isNote)) + return false; + if (!equals(this.cardLabels, tmp0_other_with_cast.cardLabels)) + return false; + if (!(this.subReplyEntryText === tmp0_other_with_cast.subReplyEntryText)) + return false; + if (!(this.subReplyTitleText === tmp0_other_with_cast.subReplyTitleText)) + return false; + if (!(this.contractDesc === tmp0_other_with_cast.contractDesc)) + return false; + if (!(this.timeDesc === tmp0_other_with_cast.timeDesc)) + return false; + if (!(this.bizScene === tmp0_other_with_cast.bizScene)) + return false; + if (!(this.location === tmp0_other_with_cast.location)) + return false; + if (!(this.foldPictures === tmp0_other_with_cast.foldPictures)) + return false; + if (!(this.isNoteV2 === tmp0_other_with_cast.isNoteV2)) + return false; + if (!(this.hideNoteIcon === tmp0_other_with_cast.hideNoteIcon)) + return false; + if (!(this.cmRecommendComponent === tmp0_other_with_cast.cmRecommendComponent)) + return false; + if (!equals(this.voteOption, tmp0_other_with_cast.voteOption)) + return false; + if (!(this.chargedDesc === tmp0_other_with_cast.chargedDesc)) + return false; + if (!equals(this.gradeRecord, tmp0_other_with_cast.gradeRecord)) + return false; + if (!(this.presetReplyText === tmp0_other_with_cast.presetReplyText)) + return false; + if (!equals(this.easterEggLabel, tmp0_other_with_cast.easterEggLabel)) + return false; + if (!(this.contextFeature === tmp0_other_with_cast.contextFeature)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KReplyControl_ackice_k$(seen1, seen2, action, upLike, upReply, showFollowBtn, isAssist, labelText, following, followed, blocked, hasFoldedReply, isFoldedReply, isUpTop, isAdminTop, isVoteTop, maxLine, invisible, isContractor, isNote, cardLabels, subReplyEntryText, subReplyTitleText, contractDesc, timeDesc, bizScene, location, foldPictures, isNoteV2, hideNoteIcon, cmRecommendComponent, voteOption, chargedDesc, gradeRecord, presetReplyText, easterEggLabel, contextFeature, serializationConstructorMarker) { + Companion_getInstance_1332(); + if (!!(!(0 === (0 & seen1)) | !(0 === (0 & seen2)))) { + var tmp$ret$0; + // Inline function 'kotlin.intArrayOf' call + var elements = new Int32Array([seen1, seen2]); + tmp$ret$0 = elements; + var tmp = tmp$ret$0; + var tmp$ret$1; + // Inline function 'kotlin.intArrayOf' call + var elements_0 = new Int32Array([0, 0]); + tmp$ret$1 = elements_0; + throwArrayMissingFieldException(tmp, tmp$ret$1, $serializer_getInstance_1319().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.action = new Long(0, 0); + else + $this.action = action; + if (0 === (seen1 & 2)) + $this.upLike = false; + else + $this.upLike = upLike; + if (0 === (seen1 & 4)) + $this.upReply = false; + else + $this.upReply = upReply; + if (0 === (seen1 & 8)) + $this.showFollowBtn = false; + else + $this.showFollowBtn = showFollowBtn; + if (0 === (seen1 & 16)) + $this.isAssist = false; + else + $this.isAssist = isAssist; + if (0 === (seen1 & 32)) + $this.labelText = ''; + else + $this.labelText = labelText; + if (0 === (seen1 & 64)) + $this.following = false; + else + $this.following = following; + if (0 === (seen1 & 128)) + $this.followed = false; + else + $this.followed = followed; + if (0 === (seen1 & 256)) + $this.blocked = false; + else + $this.blocked = blocked; + if (0 === (seen1 & 512)) + $this.hasFoldedReply = false; + else + $this.hasFoldedReply = hasFoldedReply; + if (0 === (seen1 & 1024)) + $this.isFoldedReply = false; + else + $this.isFoldedReply = isFoldedReply; + if (0 === (seen1 & 2048)) + $this.isUpTop = false; + else + $this.isUpTop = isUpTop; + if (0 === (seen1 & 4096)) + $this.isAdminTop = false; + else + $this.isAdminTop = isAdminTop; + if (0 === (seen1 & 8192)) + $this.isVoteTop = false; + else + $this.isVoteTop = isVoteTop; + if (0 === (seen1 & 16384)) + $this.maxLine = new Long(0, 0); + else + $this.maxLine = maxLine; + if (0 === (seen1 & 32768)) + $this.invisible = false; + else + $this.invisible = invisible; + if (0 === (seen1 & 65536)) + $this.isContractor = false; + else + $this.isContractor = isContractor; + if (0 === (seen1 & 131072)) + $this.isNote = false; + else + $this.isNote = isNote; + if (0 === (seen1 & 262144)) + $this.cardLabels = emptyList(); + else + $this.cardLabels = cardLabels; + if (0 === (seen1 & 524288)) + $this.subReplyEntryText = ''; + else + $this.subReplyEntryText = subReplyEntryText; + if (0 === (seen1 & 1048576)) + $this.subReplyTitleText = ''; + else + $this.subReplyTitleText = subReplyTitleText; + if (0 === (seen1 & 2097152)) + $this.contractDesc = ''; + else + $this.contractDesc = contractDesc; + if (0 === (seen1 & 4194304)) + $this.timeDesc = ''; + else + $this.timeDesc = timeDesc; + if (0 === (seen1 & 8388608)) + $this.bizScene = ''; + else + $this.bizScene = bizScene; + if (0 === (seen1 & 16777216)) + $this.location = ''; + else + $this.location = location; + if (0 === (seen1 & 33554432)) + $this.foldPictures = false; + else + $this.foldPictures = foldPictures; + if (0 === (seen1 & 67108864)) + $this.isNoteV2 = false; + else + $this.isNoteV2 = isNoteV2; + if (0 === (seen1 & 134217728)) + $this.hideNoteIcon = false; + else + $this.hideNoteIcon = hideNoteIcon; + if (0 === (seen1 & 268435456)) + $this.cmRecommendComponent = ''; + else + $this.cmRecommendComponent = cmRecommendComponent; + if (0 === (seen1 & 536870912)) + $this.voteOption = null; + else + $this.voteOption = voteOption; + if (0 === (seen1 & 1073741824)) + $this.chargedDesc = ''; + else + $this.chargedDesc = chargedDesc; + if (0 === (seen1 & -2147483648)) + $this.gradeRecord = null; + else + $this.gradeRecord = gradeRecord; + if (0 === (seen2 & 1)) + $this.presetReplyText = ''; + else + $this.presetReplyText = presetReplyText; + if (0 === (seen2 & 2)) + $this.easterEggLabel = null; + else + $this.easterEggLabel = easterEggLabel; + if (0 === (seen2 & 4)) + $this.contextFeature = ''; + else + $this.contextFeature = contextFeature; + return $this; + } + } + class Companion_1333 { + constructor() { + Companion_instance_1333 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KReplyCardLabel$KType$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KReplyCardLabel$KType$Companion$_anonymous__vnw8cp); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_165(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.main.community.reply.v1.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KType_UNRECOGNIZED_getInstance_1() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.main.community.reply.v1.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KType with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_165(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_1320 { + constructor() { + $serializer_instance_1320 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.main.community.reply.v1.KReplyCardLabel.KType', 3); + tmp0_serialDesc.addElement_5pzumi_k$('UNDERLINE', false); + tmp0_serialDesc.addElement_5pzumi_k$('BACKGROUND', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_165()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_jinrpg_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_jinrpg_k$(encoder, value instanceof KType_2 ? value : THROW_CCE()); + } + } + class KType_2 extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_1334 { + constructor() { + this.targetPath = '/bilibili.main.community.reply.v1.ReplyCardLabel'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1321(); + } + } + class $serializer_1321 { + constructor() { + $serializer_instance_1321 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KReplyCardLabel', this, 13); + tmp0_serialDesc.addElement_5pzumi_k$('textContent', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('textColorDay', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('textColorNight', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('labelColorDay', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('labelColorNight', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('image', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('background', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('backgroundWidth', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('backgroundHeight', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('jumpUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('effect', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + tmp0_serialDesc.addElement_5pzumi_k$('effectStartTime', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(13)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), DoubleSerializer_getInstance(), DoubleSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = 0; + var tmp11_local7 = null; + var tmp12_local8 = 0.0; + var tmp13_local9 = 0.0; + var tmp14_local10 = null; + var tmp15_local11 = new Long(0, 0); + var tmp16_local12 = new Long(0, 0); + var tmp17_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp17_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp17_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp17_input.decodeDoubleElement_isei84_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp17_input.decodeDoubleElement_isei84_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp17_input.decodeLongElement_994anb_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + tmp16_local12 = tmp17_input.decodeLongElement_994anb_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + } else + while (tmp1_flag) { + tmp2_index = tmp17_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp17_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp17_input.decodeDoubleElement_isei84_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp17_input.decodeDoubleElement_isei84_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp17_input.decodeStringElement_3oenpg_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp17_input.decodeLongElement_994anb_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + case 12: + tmp16_local12 = tmp17_input.decodeLongElement_994anb_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp17_input.endStructure_1xqz0n_k$(tmp0_desc); + return KReplyCardLabel.new_com_bapis_bilibili_main_community_reply_v1_KReplyCardLabel_4x550o_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, null); + } + serialize_a2zj90_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.textContent === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.textContent); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.textColorDay === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.textColorDay); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.textColorNight === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.textColorNight); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.labelColorDay === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.labelColorDay); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.labelColorNight === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.labelColorNight); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.image === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.image); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.type === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 6, value.type); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.background === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.background); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !equals(value.backgroundWidth, 0.0)) { + tmp1_output.encodeDoubleElement_a6rqhe_k$(tmp0_desc, 8, value.backgroundWidth); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !equals(value.backgroundHeight, 0.0)) { + tmp1_output.encodeDoubleElement_a6rqhe_k$(tmp0_desc, 9, value.backgroundHeight); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.jumpUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 10, value.jumpUrl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !value.effect.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 11, value.effect); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !value.effectStartTime.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 12, value.effectStartTime); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_a2zj90_k$(encoder, value instanceof KReplyCardLabel ? value : THROW_CCE()); + } + } + class KReplyCardLabel { + constructor(textContent, textColorDay, textColorNight, labelColorDay, labelColorNight, image, type, background, backgroundWidth, backgroundHeight, jumpUrl, effect, effectStartTime) { + Companion_instance_1334; + textContent = textContent === VOID ? '' : textContent; + textColorDay = textColorDay === VOID ? '' : textColorDay; + textColorNight = textColorNight === VOID ? '' : textColorNight; + labelColorDay = labelColorDay === VOID ? '' : labelColorDay; + labelColorNight = labelColorNight === VOID ? '' : labelColorNight; + image = image === VOID ? '' : image; + type = type === VOID ? 0 : type; + background = background === VOID ? '' : background; + backgroundWidth = backgroundWidth === VOID ? 0.0 : backgroundWidth; + backgroundHeight = backgroundHeight === VOID ? 0.0 : backgroundHeight; + jumpUrl = jumpUrl === VOID ? '' : jumpUrl; + effect = effect === VOID ? new Long(0, 0) : effect; + effectStartTime = effectStartTime === VOID ? new Long(0, 0) : effectStartTime; + this.textContent = textContent; + this.textColorDay = textColorDay; + this.textColorNight = textColorNight; + this.labelColorDay = labelColorDay; + this.labelColorNight = labelColorNight; + this.image = image; + this.type = type; + this.background = background; + this.backgroundWidth = backgroundWidth; + this.backgroundHeight = backgroundHeight; + this.jumpUrl = jumpUrl; + this.effect = effect; + this.effectStartTime = effectStartTime; + } + get_textContent_fqn3fn_k$() { + return this.textContent; + } + get_textColorDay_aaj7sh_k$() { + return this.textColorDay; + } + get_textColorNight_hqolf9_k$() { + return this.textColorNight; + } + get_labelColorDay_mgt9us_k$() { + return this.labelColorDay; + } + get_labelColorNight_2f5uu8_k$() { + return this.labelColorNight; + } + get_image_it3i2a_k$() { + return this.image; + } + get_type_wovaf7_k$() { + return this.type; + } + get_background_stpfw7_k$() { + return this.background; + } + get_backgroundWidth_9pfkc1_k$() { + return this.backgroundWidth; + } + get_backgroundHeight_nxqvcy_k$() { + return this.backgroundHeight; + } + get_jumpUrl_jhqiko_k$() { + return this.jumpUrl; + } + get_effect_ct67x6_k$() { + return this.effect; + } + get_effectStartTime_mdy6z9_k$() { + return this.effectStartTime; + } + typeEnum() { + return Companion_getInstance_1333().fromValue(this.type); + } + component1_7eebsc_k$() { + return this.textContent; + } + component2_7eebsb_k$() { + return this.textColorDay; + } + component3_7eebsa_k$() { + return this.textColorNight; + } + component4_7eebs9_k$() { + return this.labelColorDay; + } + component5_7eebs8_k$() { + return this.labelColorNight; + } + component6_7eebs7_k$() { + return this.image; + } + component7_7eebs6_k$() { + return this.type; + } + component8_7eebs5_k$() { + return this.background; + } + component9_7eebs4_k$() { + return this.backgroundWidth; + } + component10_gazzfo_k$() { + return this.backgroundHeight; + } + component11_gazzfn_k$() { + return this.jumpUrl; + } + component12_gazzfm_k$() { + return this.effect; + } + component13_gazzfl_k$() { + return this.effectStartTime; + } + copy_sz1y9r_k$(textContent, textColorDay, textColorNight, labelColorDay, labelColorNight, image, type, background, backgroundWidth, backgroundHeight, jumpUrl, effect, effectStartTime) { + return new KReplyCardLabel(textContent, textColorDay, textColorNight, labelColorDay, labelColorNight, image, type, background, backgroundWidth, backgroundHeight, jumpUrl, effect, effectStartTime); + } + copy(textContent, textColorDay, textColorNight, labelColorDay, labelColorNight, image, type, background, backgroundWidth, backgroundHeight, jumpUrl, effect, effectStartTime, $super) { + textContent = textContent === VOID ? this.textContent : textContent; + textColorDay = textColorDay === VOID ? this.textColorDay : textColorDay; + textColorNight = textColorNight === VOID ? this.textColorNight : textColorNight; + labelColorDay = labelColorDay === VOID ? this.labelColorDay : labelColorDay; + labelColorNight = labelColorNight === VOID ? this.labelColorNight : labelColorNight; + image = image === VOID ? this.image : image; + type = type === VOID ? this.type : type; + background = background === VOID ? this.background : background; + backgroundWidth = backgroundWidth === VOID ? this.backgroundWidth : backgroundWidth; + backgroundHeight = backgroundHeight === VOID ? this.backgroundHeight : backgroundHeight; + jumpUrl = jumpUrl === VOID ? this.jumpUrl : jumpUrl; + effect = effect === VOID ? this.effect : effect; + effectStartTime = effectStartTime === VOID ? this.effectStartTime : effectStartTime; + return this.copy_sz1y9r_k$(textContent, textColorDay, textColorNight, labelColorDay, labelColorNight, image, type, background, backgroundWidth, backgroundHeight, jumpUrl, effect, effectStartTime); + } + toString() { + return 'KReplyCardLabel(textContent=' + this.textContent + ', textColorDay=' + this.textColorDay + ', textColorNight=' + this.textColorNight + ', labelColorDay=' + this.labelColorDay + ', labelColorNight=' + this.labelColorNight + ', image=' + this.image + ', type=' + this.type + ', background=' + this.background + ', backgroundWidth=' + this.backgroundWidth + ', backgroundHeight=' + this.backgroundHeight + ', jumpUrl=' + this.jumpUrl + ', effect=' + this.effect.toString() + ', effectStartTime=' + this.effectStartTime.toString() + ')'; + } + hashCode() { + var result = getStringHashCode(this.textContent); + result = imul(result, 31) + getStringHashCode(this.textColorDay) | 0; + result = imul(result, 31) + getStringHashCode(this.textColorNight) | 0; + result = imul(result, 31) + getStringHashCode(this.labelColorDay) | 0; + result = imul(result, 31) + getStringHashCode(this.labelColorNight) | 0; + result = imul(result, 31) + getStringHashCode(this.image) | 0; + result = imul(result, 31) + this.type | 0; + result = imul(result, 31) + getStringHashCode(this.background) | 0; + result = imul(result, 31) + getNumberHashCode(this.backgroundWidth) | 0; + result = imul(result, 31) + getNumberHashCode(this.backgroundHeight) | 0; + result = imul(result, 31) + getStringHashCode(this.jumpUrl) | 0; + result = imul(result, 31) + this.effect.hashCode() | 0; + result = imul(result, 31) + this.effectStartTime.hashCode() | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KReplyCardLabel)) + return false; + var tmp0_other_with_cast = other instanceof KReplyCardLabel ? other : THROW_CCE(); + if (!(this.textContent === tmp0_other_with_cast.textContent)) + return false; + if (!(this.textColorDay === tmp0_other_with_cast.textColorDay)) + return false; + if (!(this.textColorNight === tmp0_other_with_cast.textColorNight)) + return false; + if (!(this.labelColorDay === tmp0_other_with_cast.labelColorDay)) + return false; + if (!(this.labelColorNight === tmp0_other_with_cast.labelColorNight)) + return false; + if (!(this.image === tmp0_other_with_cast.image)) + return false; + if (!(this.type === tmp0_other_with_cast.type)) + return false; + if (!(this.background === tmp0_other_with_cast.background)) + return false; + if (!equals(this.backgroundWidth, tmp0_other_with_cast.backgroundWidth)) + return false; + if (!equals(this.backgroundHeight, tmp0_other_with_cast.backgroundHeight)) + return false; + if (!(this.jumpUrl === tmp0_other_with_cast.jumpUrl)) + return false; + if (!this.effect.equals(tmp0_other_with_cast.effect)) + return false; + if (!this.effectStartTime.equals(tmp0_other_with_cast.effectStartTime)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KReplyCardLabel_4x550o_k$(seen1, textContent, textColorDay, textColorNight, labelColorDay, labelColorNight, image, type, background, backgroundWidth, backgroundHeight, jumpUrl, effect, effectStartTime, serializationConstructorMarker) { + Companion_instance_1334; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1321().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.textContent = ''; + else + $this.textContent = textContent; + if (0 === (seen1 & 2)) + $this.textColorDay = ''; + else + $this.textColorDay = textColorDay; + if (0 === (seen1 & 4)) + $this.textColorNight = ''; + else + $this.textColorNight = textColorNight; + if (0 === (seen1 & 8)) + $this.labelColorDay = ''; + else + $this.labelColorDay = labelColorDay; + if (0 === (seen1 & 16)) + $this.labelColorNight = ''; + else + $this.labelColorNight = labelColorNight; + if (0 === (seen1 & 32)) + $this.image = ''; + else + $this.image = image; + if (0 === (seen1 & 64)) + $this.type = 0; + else + $this.type = type; + if (0 === (seen1 & 128)) + $this.background = ''; + else + $this.background = background; + if (0 === (seen1 & 256)) + $this.backgroundWidth = 0.0; + else + $this.backgroundWidth = backgroundWidth; + if (0 === (seen1 & 512)) + $this.backgroundHeight = 0.0; + else + $this.backgroundHeight = backgroundHeight; + if (0 === (seen1 & 1024)) + $this.jumpUrl = ''; + else + $this.jumpUrl = jumpUrl; + if (0 === (seen1 & 2048)) + $this.effect = new Long(0, 0); + else + $this.effect = effect; + if (0 === (seen1 & 4096)) + $this.effectStartTime = new Long(0, 0); + else + $this.effectStartTime = effectStartTime; + return $this; + } + } + class Companion_1335 { + constructor() { + Companion_instance_1335 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KUrl$KIconPosition$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KUrl$KIconPosition$Companion$_anonymous__otnsfy); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_166(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.main.community.reply.v1.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KIconPosition_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.main.community.reply.v1.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KIconPosition with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_166(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_1322 { + constructor() { + $serializer_instance_1322 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.main.community.reply.v1.KUrl.KIconPosition', 3); + tmp0_serialDesc.addElement_5pzumi_k$('PREFIX', false); + tmp0_serialDesc.addElement_5pzumi_k$('SUFFIX', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_166()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_s0dq0f_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_s0dq0f_k$(encoder, value instanceof KIconPosition ? value : THROW_CCE()); + } + } + class Companion_1336 { + constructor() { + Companion_instance_1336 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KUrl$KExtra$KGoodsShowType$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KUrl$KExtra$KGoodsShowType$Companion$_anonymous__r5u69a); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_167(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.main.community.reply.v1.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KGoodsShowType_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.main.community.reply.v1.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KGoodsShowType with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_167(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_1323 { + constructor() { + $serializer_instance_1323 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.main.community.reply.v1.KUrl.KExtra.KGoodsShowType', 4); + tmp0_serialDesc.addElement_5pzumi_k$('POPUP', false); + tmp0_serialDesc.addElement_5pzumi_k$('FULL_SCREEN', false); + tmp0_serialDesc.addElement_5pzumi_k$('HALF_SCREEN', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_167()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_v2l8z7_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_v2l8z7_k$(encoder, value instanceof KGoodsShowType ? value : THROW_CCE()); + } + } + class KGoodsShowType extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_1337 { + constructor() { + this.targetPath = '/bilibili.main.community.reply.v1.Url.Extra'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1324(); + } + } + class $serializer_1324 { + constructor() { + $serializer_instance_1324 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KUrl.KExtra', this, 8); + tmp0_serialDesc.addElement_5pzumi_k$('goodsItemId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('goodsPrefetchedCache', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('goodsShowType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('isWordSearch', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('goodsCmControl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('goodsClickReport', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('goodsExposureReport', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('goodsShowPopWindow', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), BooleanSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_local2 = 0; + var tmp7_local3 = false; + var tmp8_local4 = new Long(0, 0); + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = new Long(0, 0); + var tmp12_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp12_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp12_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + } else + while (tmp1_flag) { + tmp2_index = tmp12_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp12_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp12_input.endStructure_1xqz0n_k$(tmp0_desc); + return KExtra.new_com_bapis_bilibili_main_community_reply_v1_KUrl_KExtra_82b6x_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null); + } + serialize_e55e9i_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.goodsItemId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.goodsItemId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.goodsPrefetchedCache === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.goodsPrefetchedCache); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.goodsShowType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.goodsShowType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.isWordSearch === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 3, value.isWordSearch); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !value.goodsCmControl.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 4, value.goodsCmControl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.goodsClickReport === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.goodsClickReport); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.goodsExposureReport === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.goodsExposureReport); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !value.goodsShowPopWindow.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 7, value.goodsShowPopWindow); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_e55e9i_k$(encoder, value instanceof KExtra ? value : THROW_CCE()); + } + } + class KIconPosition extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class KExtra { + constructor(goodsItemId, goodsPrefetchedCache, goodsShowType, isWordSearch, goodsCmControl, goodsClickReport, goodsExposureReport, goodsShowPopWindow) { + Companion_instance_1337; + goodsItemId = goodsItemId === VOID ? new Long(0, 0) : goodsItemId; + goodsPrefetchedCache = goodsPrefetchedCache === VOID ? '' : goodsPrefetchedCache; + goodsShowType = goodsShowType === VOID ? 0 : goodsShowType; + isWordSearch = isWordSearch === VOID ? false : isWordSearch; + goodsCmControl = goodsCmControl === VOID ? new Long(0, 0) : goodsCmControl; + goodsClickReport = goodsClickReport === VOID ? '' : goodsClickReport; + goodsExposureReport = goodsExposureReport === VOID ? '' : goodsExposureReport; + goodsShowPopWindow = goodsShowPopWindow === VOID ? new Long(0, 0) : goodsShowPopWindow; + this.goodsItemId = goodsItemId; + this.goodsPrefetchedCache = goodsPrefetchedCache; + this.goodsShowType = goodsShowType; + this.isWordSearch = isWordSearch; + this.goodsCmControl = goodsCmControl; + this.goodsClickReport = goodsClickReport; + this.goodsExposureReport = goodsExposureReport; + this.goodsShowPopWindow = goodsShowPopWindow; + } + get_goodsItemId_bougij_k$() { + return this.goodsItemId; + } + get_goodsPrefetchedCache_6gi4in_k$() { + return this.goodsPrefetchedCache; + } + get_goodsShowType_dpawgs_k$() { + return this.goodsShowType; + } + get_isWordSearch_6bwhi3_k$() { + return this.isWordSearch; + } + get_goodsCmControl_pfevbu_k$() { + return this.goodsCmControl; + } + get_goodsClickReport_m0oodr_k$() { + return this.goodsClickReport; + } + get_goodsExposureReport_c56ijc_k$() { + return this.goodsExposureReport; + } + get_goodsShowPopWindow_zgex2v_k$() { + return this.goodsShowPopWindow; + } + goodsShowTypeEnum() { + return Companion_getInstance_1336().fromValue(this.goodsShowType); + } + component1_7eebsc_k$() { + return this.goodsItemId; + } + component2_7eebsb_k$() { + return this.goodsPrefetchedCache; + } + component3_7eebsa_k$() { + return this.goodsShowType; + } + component4_7eebs9_k$() { + return this.isWordSearch; + } + component5_7eebs8_k$() { + return this.goodsCmControl; + } + component6_7eebs7_k$() { + return this.goodsClickReport; + } + component7_7eebs6_k$() { + return this.goodsExposureReport; + } + component8_7eebs5_k$() { + return this.goodsShowPopWindow; + } + copy_76w0kw_k$(goodsItemId, goodsPrefetchedCache, goodsShowType, isWordSearch, goodsCmControl, goodsClickReport, goodsExposureReport, goodsShowPopWindow) { + return new KExtra(goodsItemId, goodsPrefetchedCache, goodsShowType, isWordSearch, goodsCmControl, goodsClickReport, goodsExposureReport, goodsShowPopWindow); + } + copy(goodsItemId, goodsPrefetchedCache, goodsShowType, isWordSearch, goodsCmControl, goodsClickReport, goodsExposureReport, goodsShowPopWindow, $super) { + goodsItemId = goodsItemId === VOID ? this.goodsItemId : goodsItemId; + goodsPrefetchedCache = goodsPrefetchedCache === VOID ? this.goodsPrefetchedCache : goodsPrefetchedCache; + goodsShowType = goodsShowType === VOID ? this.goodsShowType : goodsShowType; + isWordSearch = isWordSearch === VOID ? this.isWordSearch : isWordSearch; + goodsCmControl = goodsCmControl === VOID ? this.goodsCmControl : goodsCmControl; + goodsClickReport = goodsClickReport === VOID ? this.goodsClickReport : goodsClickReport; + goodsExposureReport = goodsExposureReport === VOID ? this.goodsExposureReport : goodsExposureReport; + goodsShowPopWindow = goodsShowPopWindow === VOID ? this.goodsShowPopWindow : goodsShowPopWindow; + return this.copy_76w0kw_k$(goodsItemId, goodsPrefetchedCache, goodsShowType, isWordSearch, goodsCmControl, goodsClickReport, goodsExposureReport, goodsShowPopWindow); + } + toString() { + return 'KExtra(goodsItemId=' + this.goodsItemId.toString() + ', goodsPrefetchedCache=' + this.goodsPrefetchedCache + ', goodsShowType=' + this.goodsShowType + ', isWordSearch=' + this.isWordSearch + ', goodsCmControl=' + this.goodsCmControl.toString() + ', goodsClickReport=' + this.goodsClickReport + ', goodsExposureReport=' + this.goodsExposureReport + ', goodsShowPopWindow=' + this.goodsShowPopWindow.toString() + ')'; + } + hashCode() { + var result = this.goodsItemId.hashCode(); + result = imul(result, 31) + getStringHashCode(this.goodsPrefetchedCache) | 0; + result = imul(result, 31) + this.goodsShowType | 0; + result = imul(result, 31) + getBooleanHashCode(this.isWordSearch) | 0; + result = imul(result, 31) + this.goodsCmControl.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.goodsClickReport) | 0; + result = imul(result, 31) + getStringHashCode(this.goodsExposureReport) | 0; + result = imul(result, 31) + this.goodsShowPopWindow.hashCode() | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KExtra)) + return false; + var tmp0_other_with_cast = other instanceof KExtra ? other : THROW_CCE(); + if (!this.goodsItemId.equals(tmp0_other_with_cast.goodsItemId)) + return false; + if (!(this.goodsPrefetchedCache === tmp0_other_with_cast.goodsPrefetchedCache)) + return false; + if (!(this.goodsShowType === tmp0_other_with_cast.goodsShowType)) + return false; + if (!(this.isWordSearch === tmp0_other_with_cast.isWordSearch)) + return false; + if (!this.goodsCmControl.equals(tmp0_other_with_cast.goodsCmControl)) + return false; + if (!(this.goodsClickReport === tmp0_other_with_cast.goodsClickReport)) + return false; + if (!(this.goodsExposureReport === tmp0_other_with_cast.goodsExposureReport)) + return false; + if (!this.goodsShowPopWindow.equals(tmp0_other_with_cast.goodsShowPopWindow)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KUrl_KExtra_82b6x_k$(seen1, goodsItemId, goodsPrefetchedCache, goodsShowType, isWordSearch, goodsCmControl, goodsClickReport, goodsExposureReport, goodsShowPopWindow, serializationConstructorMarker) { + Companion_instance_1337; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1324().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.goodsItemId = new Long(0, 0); + else + $this.goodsItemId = goodsItemId; + if (0 === (seen1 & 2)) + $this.goodsPrefetchedCache = ''; + else + $this.goodsPrefetchedCache = goodsPrefetchedCache; + if (0 === (seen1 & 4)) + $this.goodsShowType = 0; + else + $this.goodsShowType = goodsShowType; + if (0 === (seen1 & 8)) + $this.isWordSearch = false; + else + $this.isWordSearch = isWordSearch; + if (0 === (seen1 & 16)) + $this.goodsCmControl = new Long(0, 0); + else + $this.goodsCmControl = goodsCmControl; + if (0 === (seen1 & 32)) + $this.goodsClickReport = ''; + else + $this.goodsClickReport = goodsClickReport; + if (0 === (seen1 & 64)) + $this.goodsExposureReport = ''; + else + $this.goodsExposureReport = goodsExposureReport; + if (0 === (seen1 & 128)) + $this.goodsShowPopWindow = new Long(0, 0); + else + $this.goodsShowPopWindow = goodsShowPopWindow; + return $this; + } + } + class Companion_1338 { + constructor() { + this.targetPath = '/bilibili.main.community.reply.v1.Url'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1325(); + } + } + class $serializer_1325 { + constructor() { + $serializer_instance_1325 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KUrl', this, 14); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('state', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('prefixIcon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('appUrlSchema', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('appName', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('appPackageName', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('clickReport', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('isHalfScreen', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('exposureReport', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('extra', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('underline', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('matchOnce', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + tmp0_serialDesc.addElement_5pzumi_k$('pcUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(13)); + tmp0_serialDesc.addElement_5pzumi_k$('iconPosition', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(14)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), BooleanSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_1324()), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = new Long(0, 0); + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = false; + var tmp12_local8 = null; + var tmp13_local9 = null; + var tmp14_local10 = false; + var tmp15_local11 = false; + var tmp16_local12 = null; + var tmp17_local13 = 0; + var tmp18_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp18_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp18_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 9, $serializer_getInstance_1324(), tmp13_local9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp18_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp18_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + tmp16_local12 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + tmp17_local13 = tmp18_input.decodeIntElement_941u6a_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + } else + while (tmp1_flag) { + tmp2_index = tmp18_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp18_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 9, $serializer_getInstance_1324(), tmp13_local9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp18_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp18_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + case 12: + tmp16_local12 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + break; + case 13: + tmp17_local13 = tmp18_input.decodeIntElement_941u6a_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp18_input.endStructure_1xqz0n_k$(tmp0_desc); + return KUrl.new_com_bapis_bilibili_main_community_reply_v1_KUrl_6xns48_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, null); + } + serialize_iouewn_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.state.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.state); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.prefixIcon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.prefixIcon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.appUrlSchema === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.appUrlSchema); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.appName === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.appName); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.appPackageName === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.appPackageName); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.clickReport === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.clickReport); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.isHalfScreen === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 7, value.isHalfScreen); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.exposureReport === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 8, value.exposureReport); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.extra == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 9, $serializer_getInstance_1324(), value.extra); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.underline === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 10, value.underline); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.matchOnce === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 11, value.matchOnce); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !(value.pcUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 12, value.pcUrl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 13) ? true : !(value.iconPosition === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 13, value.iconPosition); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_iouewn_k$(encoder, value instanceof KUrl ? value : THROW_CCE()); + } + } + class KUrl { + constructor(title, state, prefixIcon, appUrlSchema, appName, appPackageName, clickReport, isHalfScreen, exposureReport, extra, underline, matchOnce, pcUrl, iconPosition) { + Companion_instance_1338; + title = title === VOID ? '' : title; + state = state === VOID ? new Long(0, 0) : state; + prefixIcon = prefixIcon === VOID ? '' : prefixIcon; + appUrlSchema = appUrlSchema === VOID ? '' : appUrlSchema; + appName = appName === VOID ? '' : appName; + appPackageName = appPackageName === VOID ? '' : appPackageName; + clickReport = clickReport === VOID ? '' : clickReport; + isHalfScreen = isHalfScreen === VOID ? false : isHalfScreen; + exposureReport = exposureReport === VOID ? '' : exposureReport; + extra = extra === VOID ? null : extra; + underline = underline === VOID ? false : underline; + matchOnce = matchOnce === VOID ? false : matchOnce; + pcUrl = pcUrl === VOID ? '' : pcUrl; + iconPosition = iconPosition === VOID ? 0 : iconPosition; + this.title = title; + this.state = state; + this.prefixIcon = prefixIcon; + this.appUrlSchema = appUrlSchema; + this.appName = appName; + this.appPackageName = appPackageName; + this.clickReport = clickReport; + this.isHalfScreen = isHalfScreen; + this.exposureReport = exposureReport; + this.extra = extra; + this.underline = underline; + this.matchOnce = matchOnce; + this.pcUrl = pcUrl; + this.iconPosition = iconPosition; + } + get_title_iz32un_k$() { + return this.title; + } + get_state_iypx7s_k$() { + return this.state; + } + get_prefixIcon_soovqs_k$() { + return this.prefixIcon; + } + get_appUrlSchema_qpmcd4_k$() { + return this.appUrlSchema; + } + get_appName_bv95lp_k$() { + return this.appName; + } + get_appPackageName_q1uza1_k$() { + return this.appPackageName; + } + get_clickReport_zea0z7_k$() { + return this.clickReport; + } + get_isHalfScreen_x6ftle_k$() { + return this.isHalfScreen; + } + get_exposureReport_yxk44c_k$() { + return this.exposureReport; + } + get_extra_ir3qw7_k$() { + return this.extra; + } + get_underline_8gwl3x_k$() { + return this.underline; + } + get_matchOnce_io0b3x_k$() { + return this.matchOnce; + } + get_pcUrl_iwrfpv_k$() { + return this.pcUrl; + } + get_iconPosition_r3cved_k$() { + return this.iconPosition; + } + iconPositionEnum() { + return Companion_getInstance_1335().fromValue(this.iconPosition); + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.state; + } + component3_7eebsa_k$() { + return this.prefixIcon; + } + component4_7eebs9_k$() { + return this.appUrlSchema; + } + component5_7eebs8_k$() { + return this.appName; + } + component6_7eebs7_k$() { + return this.appPackageName; + } + component7_7eebs6_k$() { + return this.clickReport; + } + component8_7eebs5_k$() { + return this.isHalfScreen; + } + component9_7eebs4_k$() { + return this.exposureReport; + } + component10_gazzfo_k$() { + return this.extra; + } + component11_gazzfn_k$() { + return this.underline; + } + component12_gazzfm_k$() { + return this.matchOnce; + } + component13_gazzfl_k$() { + return this.pcUrl; + } + component14_gazzfk_k$() { + return this.iconPosition; + } + copy_7sbb6c_k$(title, state, prefixIcon, appUrlSchema, appName, appPackageName, clickReport, isHalfScreen, exposureReport, extra, underline, matchOnce, pcUrl, iconPosition) { + return new KUrl(title, state, prefixIcon, appUrlSchema, appName, appPackageName, clickReport, isHalfScreen, exposureReport, extra, underline, matchOnce, pcUrl, iconPosition); + } + copy(title, state, prefixIcon, appUrlSchema, appName, appPackageName, clickReport, isHalfScreen, exposureReport, extra, underline, matchOnce, pcUrl, iconPosition, $super) { + title = title === VOID ? this.title : title; + state = state === VOID ? this.state : state; + prefixIcon = prefixIcon === VOID ? this.prefixIcon : prefixIcon; + appUrlSchema = appUrlSchema === VOID ? this.appUrlSchema : appUrlSchema; + appName = appName === VOID ? this.appName : appName; + appPackageName = appPackageName === VOID ? this.appPackageName : appPackageName; + clickReport = clickReport === VOID ? this.clickReport : clickReport; + isHalfScreen = isHalfScreen === VOID ? this.isHalfScreen : isHalfScreen; + exposureReport = exposureReport === VOID ? this.exposureReport : exposureReport; + extra = extra === VOID ? this.extra : extra; + underline = underline === VOID ? this.underline : underline; + matchOnce = matchOnce === VOID ? this.matchOnce : matchOnce; + pcUrl = pcUrl === VOID ? this.pcUrl : pcUrl; + iconPosition = iconPosition === VOID ? this.iconPosition : iconPosition; + return this.copy_7sbb6c_k$(title, state, prefixIcon, appUrlSchema, appName, appPackageName, clickReport, isHalfScreen, exposureReport, extra, underline, matchOnce, pcUrl, iconPosition); + } + toString() { + return 'KUrl(title=' + this.title + ', state=' + this.state.toString() + ', prefixIcon=' + this.prefixIcon + ', appUrlSchema=' + this.appUrlSchema + ', appName=' + this.appName + ', appPackageName=' + this.appPackageName + ', clickReport=' + this.clickReport + ', isHalfScreen=' + this.isHalfScreen + ', exposureReport=' + this.exposureReport + ', extra=' + this.extra + ', underline=' + this.underline + ', matchOnce=' + this.matchOnce + ', pcUrl=' + this.pcUrl + ', iconPosition=' + this.iconPosition + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + this.state.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.prefixIcon) | 0; + result = imul(result, 31) + getStringHashCode(this.appUrlSchema) | 0; + result = imul(result, 31) + getStringHashCode(this.appName) | 0; + result = imul(result, 31) + getStringHashCode(this.appPackageName) | 0; + result = imul(result, 31) + getStringHashCode(this.clickReport) | 0; + result = imul(result, 31) + getBooleanHashCode(this.isHalfScreen) | 0; + result = imul(result, 31) + getStringHashCode(this.exposureReport) | 0; + result = imul(result, 31) + (this.extra == null ? 0 : this.extra.hashCode()) | 0; + result = imul(result, 31) + getBooleanHashCode(this.underline) | 0; + result = imul(result, 31) + getBooleanHashCode(this.matchOnce) | 0; + result = imul(result, 31) + getStringHashCode(this.pcUrl) | 0; + result = imul(result, 31) + this.iconPosition | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KUrl)) + return false; + var tmp0_other_with_cast = other instanceof KUrl ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!this.state.equals(tmp0_other_with_cast.state)) + return false; + if (!(this.prefixIcon === tmp0_other_with_cast.prefixIcon)) + return false; + if (!(this.appUrlSchema === tmp0_other_with_cast.appUrlSchema)) + return false; + if (!(this.appName === tmp0_other_with_cast.appName)) + return false; + if (!(this.appPackageName === tmp0_other_with_cast.appPackageName)) + return false; + if (!(this.clickReport === tmp0_other_with_cast.clickReport)) + return false; + if (!(this.isHalfScreen === tmp0_other_with_cast.isHalfScreen)) + return false; + if (!(this.exposureReport === tmp0_other_with_cast.exposureReport)) + return false; + if (!equals(this.extra, tmp0_other_with_cast.extra)) + return false; + if (!(this.underline === tmp0_other_with_cast.underline)) + return false; + if (!(this.matchOnce === tmp0_other_with_cast.matchOnce)) + return false; + if (!(this.pcUrl === tmp0_other_with_cast.pcUrl)) + return false; + if (!(this.iconPosition === tmp0_other_with_cast.iconPosition)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KUrl_6xns48_k$(seen1, title, state, prefixIcon, appUrlSchema, appName, appPackageName, clickReport, isHalfScreen, exposureReport, extra, underline, matchOnce, pcUrl, iconPosition, serializationConstructorMarker) { + Companion_instance_1338; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1325().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.state = new Long(0, 0); + else + $this.state = state; + if (0 === (seen1 & 4)) + $this.prefixIcon = ''; + else + $this.prefixIcon = prefixIcon; + if (0 === (seen1 & 8)) + $this.appUrlSchema = ''; + else + $this.appUrlSchema = appUrlSchema; + if (0 === (seen1 & 16)) + $this.appName = ''; + else + $this.appName = appName; + if (0 === (seen1 & 32)) + $this.appPackageName = ''; + else + $this.appPackageName = appPackageName; + if (0 === (seen1 & 64)) + $this.clickReport = ''; + else + $this.clickReport = clickReport; + if (0 === (seen1 & 128)) + $this.isHalfScreen = false; + else + $this.isHalfScreen = isHalfScreen; + if (0 === (seen1 & 256)) + $this.exposureReport = ''; + else + $this.exposureReport = exposureReport; + if (0 === (seen1 & 512)) + $this.extra = null; + else + $this.extra = extra; + if (0 === (seen1 & 1024)) + $this.underline = false; + else + $this.underline = underline; + if (0 === (seen1 & 2048)) + $this.matchOnce = false; + else + $this.matchOnce = matchOnce; + if (0 === (seen1 & 4096)) + $this.pcUrl = ''; + else + $this.pcUrl = pcUrl; + if (0 === (seen1 & 8192)) + $this.iconPosition = 0; + else + $this.iconPosition = iconPosition; + return $this; + } + } + class Companion_1339 { + constructor() { + this.targetPath = '/bilibili.main.community.reply.v1.Topic'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1326(); + } + } + class $serializer_1326 { + constructor() { + $serializer_instance_1326 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KTopic', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('link', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('id', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = new Long(0, 0); + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KTopic.new_com_bapis_bilibili_main_community_reply_v1_KTopic_396hc6_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_fone9j_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.link === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.link); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.id.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.id); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_fone9j_k$(encoder, value instanceof KTopic ? value : THROW_CCE()); + } + } + class KTopic { + constructor(link, id) { + Companion_instance_1339; + link = link === VOID ? '' : link; + id = id === VOID ? new Long(0, 0) : id; + this.link = link; + this.id = id; + } + get_link_wopumb_k$() { + return this.link; + } + get_id_kntnx8_k$() { + return this.id; + } + component1_7eebsc_k$() { + return this.link; + } + component2_7eebsb_k$() { + return this.id; + } + copy_gaforn_k$(link, id) { + return new KTopic(link, id); + } + copy(link, id, $super) { + link = link === VOID ? this.link : link; + id = id === VOID ? this.id : id; + return this.copy_gaforn_k$(link, id); + } + toString() { + return 'KTopic(link=' + this.link + ', id=' + this.id.toString() + ')'; + } + hashCode() { + var result = getStringHashCode(this.link); + result = imul(result, 31) + this.id.hashCode() | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KTopic)) + return false; + var tmp0_other_with_cast = other instanceof KTopic ? other : THROW_CCE(); + if (!(this.link === tmp0_other_with_cast.link)) + return false; + if (!this.id.equals(tmp0_other_with_cast.id)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KTopic_396hc6_k$(seen1, link, id, serializationConstructorMarker) { + Companion_instance_1339; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1326().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.link = ''; + else + $this.link = link; + if (0 === (seen1 & 2)) + $this.id = new Long(0, 0); + else + $this.id = id; + return $this; + } + } + class Companion_1340 { + constructor() { + this.targetPath = '/bilibili.main.community.reply.v1.Emote'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1327(); + } + } + class $serializer_1327 { + constructor() { + $serializer_instance_1327 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KEmote', this, 8); + tmp0_serialDesc.addElement_5pzumi_k$('size', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('url', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('jumpUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('jumpTitle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('id', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('packageId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('gifUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('text', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = new Long(0, 0); + var tmp9_local5 = new Long(0, 0); + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp12_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + } else + while (tmp1_flag) { + tmp2_index = tmp12_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp12_input.endStructure_1xqz0n_k$(tmp0_desc); + return KEmote_0.new_com_bapis_bilibili_main_community_reply_v1_KEmote_y4ohrx_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null); + } + serialize_klbyu8_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.size.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.size); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.url === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.url); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.jumpUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.jumpUrl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.jumpTitle === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.jumpTitle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !value.id.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 4, value.id); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !value.packageId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 5, value.packageId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.gifUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.gifUrl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.text === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.text); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_klbyu8_k$(encoder, value instanceof KEmote_0 ? value : THROW_CCE()); + } + } + class KEmote_0 { + constructor(size, url, jumpUrl, jumpTitle, id, packageId, gifUrl, text) { + Companion_instance_1340; + size = size === VOID ? new Long(0, 0) : size; + url = url === VOID ? '' : url; + jumpUrl = jumpUrl === VOID ? '' : jumpUrl; + jumpTitle = jumpTitle === VOID ? '' : jumpTitle; + id = id === VOID ? new Long(0, 0) : id; + packageId = packageId === VOID ? new Long(0, 0) : packageId; + gifUrl = gifUrl === VOID ? '' : gifUrl; + text = text === VOID ? '' : text; + this.size = size; + this.url = url; + this.jumpUrl = jumpUrl; + this.jumpTitle = jumpTitle; + this.id = id; + this.packageId = packageId; + this.gifUrl = gifUrl; + this.text = text; + } + get_size_woubt6_k$() { + return this.size; + } + get_url_18iuii_k$() { + return this.url; + } + get_jumpUrl_jhqiko_k$() { + return this.jumpUrl; + } + get_jumpTitle_jo7cwx_k$() { + return this.jumpTitle; + } + get_id_kntnx8_k$() { + return this.id; + } + get_packageId_wpotrc_k$() { + return this.packageId; + } + get_gifUrl_dswiz8_k$() { + return this.gifUrl; + } + get_text_wouvsm_k$() { + return this.text; + } + component1_7eebsc_k$() { + return this.size; + } + component2_7eebsb_k$() { + return this.url; + } + component3_7eebsa_k$() { + return this.jumpUrl; + } + component4_7eebs9_k$() { + return this.jumpTitle; + } + component5_7eebs8_k$() { + return this.id; + } + component6_7eebs7_k$() { + return this.packageId; + } + component7_7eebs6_k$() { + return this.gifUrl; + } + component8_7eebs5_k$() { + return this.text; + } + copy_phag9v_k$(size, url, jumpUrl, jumpTitle, id, packageId, gifUrl, text) { + return new KEmote_0(size, url, jumpUrl, jumpTitle, id, packageId, gifUrl, text); + } + copy(size, url, jumpUrl, jumpTitle, id, packageId, gifUrl, text, $super) { + size = size === VOID ? this.size : size; + url = url === VOID ? this.url : url; + jumpUrl = jumpUrl === VOID ? this.jumpUrl : jumpUrl; + jumpTitle = jumpTitle === VOID ? this.jumpTitle : jumpTitle; + id = id === VOID ? this.id : id; + packageId = packageId === VOID ? this.packageId : packageId; + gifUrl = gifUrl === VOID ? this.gifUrl : gifUrl; + text = text === VOID ? this.text : text; + return this.copy_phag9v_k$(size, url, jumpUrl, jumpTitle, id, packageId, gifUrl, text); + } + toString() { + return 'KEmote(size=' + this.size.toString() + ', url=' + this.url + ', jumpUrl=' + this.jumpUrl + ', jumpTitle=' + this.jumpTitle + ', id=' + this.id.toString() + ', packageId=' + this.packageId.toString() + ', gifUrl=' + this.gifUrl + ', text=' + this.text + ')'; + } + hashCode() { + var result = this.size.hashCode(); + result = imul(result, 31) + getStringHashCode(this.url) | 0; + result = imul(result, 31) + getStringHashCode(this.jumpUrl) | 0; + result = imul(result, 31) + getStringHashCode(this.jumpTitle) | 0; + result = imul(result, 31) + this.id.hashCode() | 0; + result = imul(result, 31) + this.packageId.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.gifUrl) | 0; + result = imul(result, 31) + getStringHashCode(this.text) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KEmote_0)) + return false; + var tmp0_other_with_cast = other instanceof KEmote_0 ? other : THROW_CCE(); + if (!this.size.equals(tmp0_other_with_cast.size)) + return false; + if (!(this.url === tmp0_other_with_cast.url)) + return false; + if (!(this.jumpUrl === tmp0_other_with_cast.jumpUrl)) + return false; + if (!(this.jumpTitle === tmp0_other_with_cast.jumpTitle)) + return false; + if (!this.id.equals(tmp0_other_with_cast.id)) + return false; + if (!this.packageId.equals(tmp0_other_with_cast.packageId)) + return false; + if (!(this.gifUrl === tmp0_other_with_cast.gifUrl)) + return false; + if (!(this.text === tmp0_other_with_cast.text)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KEmote_y4ohrx_k$(seen1, size, url, jumpUrl, jumpTitle, id, packageId, gifUrl, text, serializationConstructorMarker) { + Companion_instance_1340; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1327().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.size = new Long(0, 0); + else + $this.size = size; + if (0 === (seen1 & 2)) + $this.url = ''; + else + $this.url = url; + if (0 === (seen1 & 4)) + $this.jumpUrl = ''; + else + $this.jumpUrl = jumpUrl; + if (0 === (seen1 & 8)) + $this.jumpTitle = ''; + else + $this.jumpTitle = jumpTitle; + if (0 === (seen1 & 16)) + $this.id = new Long(0, 0); + else + $this.id = id; + if (0 === (seen1 & 32)) + $this.packageId = new Long(0, 0); + else + $this.packageId = packageId; + if (0 === (seen1 & 64)) + $this.gifUrl = ''; + else + $this.gifUrl = gifUrl; + if (0 === (seen1 & 128)) + $this.text = ''; + else + $this.text = text; + return $this; + } + } + class Companion_1341 { + constructor() { + this.targetPath = '/bilibili.main.community.reply.v1.Vote'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1328(); + } + } + class $serializer_1328 { + constructor() { + $serializer_instance_1328 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KVote', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('id', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('count', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_local2 = new Long(0, 0); + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KVote_0.new_com_bapis_bilibili_main_community_reply_v1_KVote_eqc4yj_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_pz5f5o_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.id.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.id); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.count.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.count); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_pz5f5o_k$(encoder, value instanceof KVote_0 ? value : THROW_CCE()); + } + } + class KVote_0 { + constructor(id, title, count) { + Companion_instance_1341; + id = id === VOID ? new Long(0, 0) : id; + title = title === VOID ? '' : title; + count = count === VOID ? new Long(0, 0) : count; + this.id = id; + this.title = title; + this.count = count; + } + get_id_kntnx8_k$() { + return this.id; + } + get_title_iz32un_k$() { + return this.title; + } + get_count_ipufhi_k$() { + return this.count; + } + component1_7eebsc_k$() { + return this.id; + } + component2_7eebsb_k$() { + return this.title; + } + component3_7eebsa_k$() { + return this.count; + } + copy_pz1b51_k$(id, title, count) { + return new KVote_0(id, title, count); + } + copy(id, title, count, $super) { + id = id === VOID ? this.id : id; + title = title === VOID ? this.title : title; + count = count === VOID ? this.count : count; + return this.copy_pz1b51_k$(id, title, count); + } + toString() { + return 'KVote(id=' + this.id.toString() + ', title=' + this.title + ', count=' + this.count.toString() + ')'; + } + hashCode() { + var result = this.id.hashCode(); + result = imul(result, 31) + getStringHashCode(this.title) | 0; + result = imul(result, 31) + this.count.hashCode() | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KVote_0)) + return false; + var tmp0_other_with_cast = other instanceof KVote_0 ? other : THROW_CCE(); + if (!this.id.equals(tmp0_other_with_cast.id)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!this.count.equals(tmp0_other_with_cast.count)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KVote_eqc4yj_k$(seen1, id, title, count, serializationConstructorMarker) { + Companion_instance_1341; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1328().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.id = new Long(0, 0); + else + $this.id = id; + if (0 === (seen1 & 2)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 4)) + $this.count = new Long(0, 0); + else + $this.count = count; + return $this; + } + } + class Companion_1342 { + constructor() { + this.targetPath = '/bilibili.main.community.reply.v1.MemberV2.Basic'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1329(); + } + } + class $serializer_1329 { + constructor() { + $serializer_instance_1329 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KMemberV2.KBasic', this, 6); + tmp0_serialDesc.addElement_5pzumi_k$('mid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('name', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('sex', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('face', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('level', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('avatarItem', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), get_nullable($serializer_getInstance_181())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = new Long(0, 0); + var tmp9_local5 = null; + var tmp10_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp10_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_181(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + } else + while (tmp1_flag) { + tmp2_index = tmp10_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_181(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp10_input.endStructure_1xqz0n_k$(tmp0_desc); + return KBasic.new_com_bapis_bilibili_main_community_reply_v1_KMemberV2_KBasic_3zcm7s_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); + } + serialize_cnssbn_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.mid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.mid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.name === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.name); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.sex === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.sex); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.face === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.face); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !value.level.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 4, value.level); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.avatarItem == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 5, $serializer_getInstance_181(), value.avatarItem); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_cnssbn_k$(encoder, value instanceof KBasic ? value : THROW_CCE()); + } + } + class Companion_1343 { + constructor() { + this.targetPath = '/bilibili.main.community.reply.v1.MemberV2.Official'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1330(); + } + } + class $serializer_1330 { + constructor() { + $serializer_instance_1330 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KMemberV2.KOfficial', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('verifyType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KOfficial.new_com_bapis_bilibili_main_community_reply_v1_KMemberV2_KOfficial_94qgph_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_ij47bk_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.verifyType.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.verifyType); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_ij47bk_k$(encoder, value instanceof KOfficial ? value : THROW_CCE()); + } + } + class Companion_1344 { + constructor() { + this.targetPath = '/bilibili.main.community.reply.v1.MemberV2.Vip'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1331(); + } + } + class $serializer_1331 { + constructor() { + $serializer_instance_1331 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KMemberV2.KVip', this, 8); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('status', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('themeType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('labelPath', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('nicknameColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('avatarSubscript', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('labelText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('vipLabelTheme', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = new Long(0, 0); + var tmp6_local2 = new Long(0, 0); + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = 0; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp12_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + } else + while (tmp1_flag) { + tmp2_index = tmp12_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp12_input.endStructure_1xqz0n_k$(tmp0_desc); + return KVip_0.new_com_bapis_bilibili_main_community_reply_v1_KMemberV2_KVip_tkvrjx_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null); + } + serialize_ypt4y6_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.type.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.type); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.status.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.status); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.themeType.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.themeType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.labelPath === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.labelPath); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.nicknameColor === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.nicknameColor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.avatarSubscript === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 5, value.avatarSubscript); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.labelText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.labelText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.vipLabelTheme === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.vipLabelTheme); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_ypt4y6_k$(encoder, value instanceof KVip_0 ? value : THROW_CCE()); + } + } + class Companion_1345 { + constructor() { + this.targetPath = '/bilibili.main.community.reply.v1.MemberV2.Garb'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1332(); + } + } + class $serializer_1332 { + constructor() { + $serializer_instance_1332 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KMemberV2.KGarb', this, 7); + tmp0_serialDesc.addElement_5pzumi_k$('pendantImage', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('cardImage', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('cardImageWithFocus', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('cardJumpUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('cardNumber', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('cardFanColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('cardIsFan', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), BooleanSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = false; + var tmp11_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp11_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp11_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + } else + while (tmp1_flag) { + tmp2_index = tmp11_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp11_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp11_input.endStructure_1xqz0n_k$(tmp0_desc); + return KGarb.new_com_bapis_bilibili_main_community_reply_v1_KMemberV2_KGarb_7gp3mx_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, null); + } + serialize_bwkqnj_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.pendantImage === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.pendantImage); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.cardImage === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.cardImage); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.cardImageWithFocus === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.cardImageWithFocus); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.cardJumpUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.cardJumpUrl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.cardNumber === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.cardNumber); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.cardFanColor === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.cardFanColor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.cardIsFan === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 6, value.cardIsFan); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_bwkqnj_k$(encoder, value instanceof KGarb ? value : THROW_CCE()); + } + } + class Companion_1346 { + constructor() { + this.targetPath = '/bilibili.main.community.reply.v1.MemberV2.Medal'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1333(); + } + } + class $serializer_1333 { + constructor() { + $serializer_instance_1333 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KMemberV2.KMedal', this, 11); + tmp0_serialDesc.addElement_5pzumi_k$('name', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('level', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('colorStart', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('colorEnd', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('colorBorder', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('colorName', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('colorLevel', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('guardLevel', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('firstIcon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('secondIcon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('levelBgColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = new Long(0, 0); + var tmp6_local2 = new Long(0, 0); + var tmp7_local3 = new Long(0, 0); + var tmp8_local4 = new Long(0, 0); + var tmp9_local5 = new Long(0, 0); + var tmp10_local6 = new Long(0, 0); + var tmp11_local7 = new Long(0, 0); + var tmp12_local8 = null; + var tmp13_local9 = null; + var tmp14_local10 = new Long(0, 0); + var tmp15_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp15_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + } else + while (tmp1_flag) { + tmp2_index = tmp15_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp15_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp15_input.endStructure_1xqz0n_k$(tmp0_desc); + return KMedal.new_com_bapis_bilibili_main_community_reply_v1_KMemberV2_KMedal_d2nwn0_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, null); + } + serialize_9nqrsk_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.name === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.name); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.level.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.level); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.colorStart.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.colorStart); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !value.colorEnd.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 3, value.colorEnd); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !value.colorBorder.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 4, value.colorBorder); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !value.colorName.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 5, value.colorName); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !value.colorLevel.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 6, value.colorLevel); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !value.guardLevel.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 7, value.guardLevel); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.firstIcon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 8, value.firstIcon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.secondIcon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 9, value.secondIcon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !value.levelBgColor.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 10, value.levelBgColor); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_9nqrsk_k$(encoder, value instanceof KMedal ? value : THROW_CCE()); + } + } + class Companion_1347 { + constructor() { + Companion_instance_1347 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KMemberV2$KNft$KInteraction$KRegionType$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KMemberV2$KNft$KInteraction$KRegionType$Companion$_anonymous__ddxx8d); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_168(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.main.community.reply.v1.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KRegionType_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.main.community.reply.v1.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KRegionType with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_168(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_1334 { + constructor() { + $serializer_instance_1334 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.main.community.reply.v1.KMemberV2.KNft.KInteraction.KRegionType', 4); + tmp0_serialDesc.addElement_5pzumi_k$('DEFAULT', false); + tmp0_serialDesc.addElement_5pzumi_k$('MAINLAND', false); + tmp0_serialDesc.addElement_5pzumi_k$('GAT', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_168()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_atsaf2_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_atsaf2_k$(encoder, value instanceof KRegionType ? value : THROW_CCE()); + } + } + class Companion_1348 { + constructor() { + Companion_instance_1348 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KMemberV2$KNft$KInteraction$KShowStatus$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KMemberV2$KNft$KInteraction$KShowStatus$Companion$_anonymous__id80n6); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_169(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.main.community.reply.v1.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KShowStatus_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.main.community.reply.v1.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KShowStatus with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_169(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_1335 { + constructor() { + $serializer_instance_1335 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.main.community.reply.v1.KMemberV2.KNft.KInteraction.KShowStatus', 4); + tmp0_serialDesc.addElement_5pzumi_k$('SHOWDEFAULT', false); + tmp0_serialDesc.addElement_5pzumi_k$('ZOOMINMAINLAND', false); + tmp0_serialDesc.addElement_5pzumi_k$('RAW', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_169()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_boesmb_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_boesmb_k$(encoder, value instanceof KShowStatus ? value : THROW_CCE()); + } + } + class Companion_1349 { + constructor() { + this.targetPath = '/bilibili.main.community.reply.v1.MemberV2.Nft.Interaction.Region'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1336(); + } + } + class $serializer_1336 { + constructor() { + $serializer_instance_1336 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KMemberV2.KNft.KInteraction.KRegion', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('icon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('showStatus', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = null; + var tmp6_local2 = 0; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KRegion.new_com_bapis_bilibili_main_community_reply_v1_KMemberV2_KNft_KInteraction_KRegion_th93xn_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_r9vlu7_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.type === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.type); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.icon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.icon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.showStatus === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.showStatus); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_r9vlu7_k$(encoder, value instanceof KRegion ? value : THROW_CCE()); + } + } + class KRegionType extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class KShowStatus extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class KRegion { + constructor(type, icon, showStatus) { + Companion_instance_1349; + type = type === VOID ? 0 : type; + icon = icon === VOID ? '' : icon; + showStatus = showStatus === VOID ? 0 : showStatus; + this.type = type; + this.icon = icon; + this.showStatus = showStatus; + } + get_type_wovaf7_k$() { + return this.type; + } + get_icon_wont8i_k$() { + return this.icon; + } + get_showStatus_78b2nc_k$() { + return this.showStatus; + } + typeEnum() { + return Companion_getInstance_1347().fromValue(this.type); + } + showStatusEnum() { + return Companion_getInstance_1348().fromValue(this.showStatus); + } + component1_7eebsc_k$() { + return this.type; + } + component2_7eebsb_k$() { + return this.icon; + } + component3_7eebsa_k$() { + return this.showStatus; + } + copy_jqwgyn_k$(type, icon, showStatus) { + return new KRegion(type, icon, showStatus); + } + copy(type, icon, showStatus, $super) { + type = type === VOID ? this.type : type; + icon = icon === VOID ? this.icon : icon; + showStatus = showStatus === VOID ? this.showStatus : showStatus; + return this.copy_jqwgyn_k$(type, icon, showStatus); + } + toString() { + return 'KRegion(type=' + this.type + ', icon=' + this.icon + ', showStatus=' + this.showStatus + ')'; + } + hashCode() { + var result = this.type; + result = imul(result, 31) + getStringHashCode(this.icon) | 0; + result = imul(result, 31) + this.showStatus | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KRegion)) + return false; + var tmp0_other_with_cast = other instanceof KRegion ? other : THROW_CCE(); + if (!(this.type === tmp0_other_with_cast.type)) + return false; + if (!(this.icon === tmp0_other_with_cast.icon)) + return false; + if (!(this.showStatus === tmp0_other_with_cast.showStatus)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KMemberV2_KNft_KInteraction_KRegion_th93xn_k$(seen1, type, icon, showStatus, serializationConstructorMarker) { + Companion_instance_1349; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1336().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.type = 0; + else + $this.type = type; + if (0 === (seen1 & 2)) + $this.icon = ''; + else + $this.icon = icon; + if (0 === (seen1 & 4)) + $this.showStatus = 0; + else + $this.showStatus = showStatus; + return $this; + } + } + class Companion_1350 { + constructor() { + this.targetPath = '/bilibili.main.community.reply.v1.MemberV2.Nft.Interaction'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1337(); + } + } + class $serializer_1337 { + constructor() { + $serializer_instance_1337 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KMemberV2.KNft.KInteraction', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('itype', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('metadataUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('nftId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('region', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_1336())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_1336(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_1336(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KInteraction_2.new_com_bapis_bilibili_main_community_reply_v1_KMemberV2_KNft_KInteraction_juak72_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_h3zs02_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.itype === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.itype); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.metadataUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.metadataUrl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.nftId === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.nftId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.region == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_1336(), value.region); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_h3zs02_k$(encoder, value instanceof KInteraction_2 ? value : THROW_CCE()); + } + } + class KInteraction_2 { + constructor(itype, metadataUrl, nftId, region) { + Companion_instance_1350; + itype = itype === VOID ? '' : itype; + metadataUrl = metadataUrl === VOID ? '' : metadataUrl; + nftId = nftId === VOID ? '' : nftId; + region = region === VOID ? null : region; + this.itype = itype; + this.metadataUrl = metadataUrl; + this.nftId = nftId; + this.region = region; + } + get_itype_it8gze_k$() { + return this.itype; + } + get_metadataUrl_alsqsp_k$() { + return this.metadataUrl; + } + get_nftId_ivqdhq_k$() { + return this.nftId; + } + get_region_iy88ot_k$() { + return this.region; + } + component1_7eebsc_k$() { + return this.itype; + } + component2_7eebsb_k$() { + return this.metadataUrl; + } + component3_7eebsa_k$() { + return this.nftId; + } + component4_7eebs9_k$() { + return this.region; + } + copy_jnuhxq_k$(itype, metadataUrl, nftId, region) { + return new KInteraction_2(itype, metadataUrl, nftId, region); + } + copy(itype, metadataUrl, nftId, region, $super) { + itype = itype === VOID ? this.itype : itype; + metadataUrl = metadataUrl === VOID ? this.metadataUrl : metadataUrl; + nftId = nftId === VOID ? this.nftId : nftId; + region = region === VOID ? this.region : region; + return this.copy_jnuhxq_k$(itype, metadataUrl, nftId, region); + } + toString() { + return 'KInteraction(itype=' + this.itype + ', metadataUrl=' + this.metadataUrl + ', nftId=' + this.nftId + ', region=' + this.region + ')'; + } + hashCode() { + var result = getStringHashCode(this.itype); + result = imul(result, 31) + getStringHashCode(this.metadataUrl) | 0; + result = imul(result, 31) + getStringHashCode(this.nftId) | 0; + result = imul(result, 31) + (this.region == null ? 0 : this.region.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KInteraction_2)) + return false; + var tmp0_other_with_cast = other instanceof KInteraction_2 ? other : THROW_CCE(); + if (!(this.itype === tmp0_other_with_cast.itype)) + return false; + if (!(this.metadataUrl === tmp0_other_with_cast.metadataUrl)) + return false; + if (!(this.nftId === tmp0_other_with_cast.nftId)) + return false; + if (!equals(this.region, tmp0_other_with_cast.region)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KMemberV2_KNft_KInteraction_juak72_k$(seen1, itype, metadataUrl, nftId, region, serializationConstructorMarker) { + Companion_instance_1350; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1337().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.itype = ''; + else + $this.itype = itype; + if (0 === (seen1 & 2)) + $this.metadataUrl = ''; + else + $this.metadataUrl = metadataUrl; + if (0 === (seen1 & 4)) + $this.nftId = ''; + else + $this.nftId = nftId; + if (0 === (seen1 & 8)) + $this.region = null; + else + $this.region = region; + return $this; + } + } + class Companion_1351 { + constructor() { + this.targetPath = '/bilibili.main.community.reply.v1.MemberV2.Nft'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1338(); + } + } + class $serializer_1338 { + constructor() { + $serializer_instance_1338 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KMemberV2.KNft', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('face', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('interaction', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), get_nullable($serializer_getInstance_1337())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_1337(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_1337(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KNft.new_com_bapis_bilibili_main_community_reply_v1_KMemberV2_KNft_9zc4mq_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_i0pho1_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.face === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.face); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.interaction == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_1337(), value.interaction); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_i0pho1_k$(encoder, value instanceof KNft ? value : THROW_CCE()); + } + } + class Companion_1352 { + constructor() { + Companion_instance_1352 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KMemberV2$KSenior$KStatus$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KMemberV2$KSenior$KStatus$Companion$_anonymous__bg0dlu); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_170(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.main.community.reply.v1.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KStatus_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.main.community.reply.v1.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KStatus with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_170(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_1339 { + constructor() { + $serializer_instance_1339 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.main.community.reply.v1.KMemberV2.KSenior.KStatus', 6); + tmp0_serialDesc.addElement_5pzumi_k$('NORMAL', false); + tmp0_serialDesc.addElement_5pzumi_k$('PENDING', false); + tmp0_serialDesc.addElement_5pzumi_k$('SENIOR', false); + tmp0_serialDesc.addElement_5pzumi_k$('WILL_EXPIRE', false); + tmp0_serialDesc.addElement_5pzumi_k$('EXPIRED', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_170()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_9tv4ql_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_9tv4ql_k$(encoder, value instanceof KStatus ? value : THROW_CCE()); + } + } + class KStatus extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_1353 { + constructor() { + this.targetPath = '/bilibili.main.community.reply.v1.MemberV2.Senior'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1340(); + } + } + class $serializer_1340 { + constructor() { + $serializer_instance_1340 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KMemberV2.KSenior', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('isSeniorMember', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('status', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = 0; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSenior.new_com_bapis_bilibili_main_community_reply_v1_KMemberV2_KSenior_mnd94o_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_a4hk8b_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.isSeniorMember === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.isSeniorMember); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.status === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.status); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_a4hk8b_k$(encoder, value instanceof KSenior ? value : THROW_CCE()); + } + } + class Companion_1354 { + constructor() { + this.targetPath = '/bilibili.main.community.reply.v1.MemberV2.Contractor'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1341(); + } + } + class $serializer_1341 { + constructor() { + $serializer_instance_1341 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KMemberV2.KContractor', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('isContractor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('contractDesc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [BooleanSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = false; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KContractor.new_com_bapis_bilibili_main_community_reply_v1_KMemberV2_KContractor_3vxeql_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_yuyq4a_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.isContractor === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 0, value.isContractor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.contractDesc === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.contractDesc); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_yuyq4a_k$(encoder, value instanceof KContractor ? value : THROW_CCE()); + } + } + class KBasic { + constructor(mid, name, sex, face, level, avatarItem) { + Companion_instance_1342; + mid = mid === VOID ? new Long(0, 0) : mid; + name = name === VOID ? '' : name; + sex = sex === VOID ? '' : sex; + face = face === VOID ? '' : face; + level = level === VOID ? new Long(0, 0) : level; + avatarItem = avatarItem === VOID ? null : avatarItem; + this.mid = mid; + this.name = name; + this.sex = sex; + this.face = face; + this.level = level; + this.avatarItem = avatarItem; + } + get_mid_18j0o1_k$() { + return this.mid; + } + get_name_woqyms_k$() { + return this.name; + } + get_sex_18iwar_k$() { + return this.sex; + } + get_face_woluhy_k$() { + return this.face; + } + get_level_ium7h7_k$() { + return this.level; + } + get_avatarItem_quh2zv_k$() { + return this.avatarItem; + } + component1_7eebsc_k$() { + return this.mid; + } + component2_7eebsb_k$() { + return this.name; + } + component3_7eebsa_k$() { + return this.sex; + } + component4_7eebs9_k$() { + return this.face; + } + component5_7eebs8_k$() { + return this.level; + } + component6_7eebs7_k$() { + return this.avatarItem; + } + copy_sgxvjo_k$(mid, name, sex, face, level, avatarItem) { + return new KBasic(mid, name, sex, face, level, avatarItem); + } + copy(mid, name, sex, face, level, avatarItem, $super) { + mid = mid === VOID ? this.mid : mid; + name = name === VOID ? this.name : name; + sex = sex === VOID ? this.sex : sex; + face = face === VOID ? this.face : face; + level = level === VOID ? this.level : level; + avatarItem = avatarItem === VOID ? this.avatarItem : avatarItem; + return this.copy_sgxvjo_k$(mid, name, sex, face, level, avatarItem); + } + toString() { + return 'KBasic(mid=' + this.mid.toString() + ', name=' + this.name + ', sex=' + this.sex + ', face=' + this.face + ', level=' + this.level.toString() + ', avatarItem=' + this.avatarItem + ')'; + } + hashCode() { + var result = this.mid.hashCode(); + result = imul(result, 31) + getStringHashCode(this.name) | 0; + result = imul(result, 31) + getStringHashCode(this.sex) | 0; + result = imul(result, 31) + getStringHashCode(this.face) | 0; + result = imul(result, 31) + this.level.hashCode() | 0; + result = imul(result, 31) + (this.avatarItem == null ? 0 : this.avatarItem.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KBasic)) + return false; + var tmp0_other_with_cast = other instanceof KBasic ? other : THROW_CCE(); + if (!this.mid.equals(tmp0_other_with_cast.mid)) + return false; + if (!(this.name === tmp0_other_with_cast.name)) + return false; + if (!(this.sex === tmp0_other_with_cast.sex)) + return false; + if (!(this.face === tmp0_other_with_cast.face)) + return false; + if (!this.level.equals(tmp0_other_with_cast.level)) + return false; + if (!equals(this.avatarItem, tmp0_other_with_cast.avatarItem)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KMemberV2_KBasic_3zcm7s_k$(seen1, mid, name, sex, face, level, avatarItem, serializationConstructorMarker) { + Companion_instance_1342; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1329().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.mid = new Long(0, 0); + else + $this.mid = mid; + if (0 === (seen1 & 2)) + $this.name = ''; + else + $this.name = name; + if (0 === (seen1 & 4)) + $this.sex = ''; + else + $this.sex = sex; + if (0 === (seen1 & 8)) + $this.face = ''; + else + $this.face = face; + if (0 === (seen1 & 16)) + $this.level = new Long(0, 0); + else + $this.level = level; + if (0 === (seen1 & 32)) + $this.avatarItem = null; + else + $this.avatarItem = avatarItem; + return $this; + } + } + class KOfficial { + constructor(verifyType) { + Companion_instance_1343; + verifyType = verifyType === VOID ? new Long(0, 0) : verifyType; + this.verifyType = verifyType; + } + get_verifyType_xru6l8_k$() { + return this.verifyType; + } + component1_7eebsc_k$() { + return this.verifyType; + } + copy_5ymysz_k$(verifyType) { + return new KOfficial(verifyType); + } + copy(verifyType, $super) { + verifyType = verifyType === VOID ? this.verifyType : verifyType; + return this.copy_5ymysz_k$(verifyType); + } + toString() { + return 'KOfficial(verifyType=' + this.verifyType.toString() + ')'; + } + hashCode() { + return this.verifyType.hashCode(); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KOfficial)) + return false; + var tmp0_other_with_cast = other instanceof KOfficial ? other : THROW_CCE(); + if (!this.verifyType.equals(tmp0_other_with_cast.verifyType)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KMemberV2_KOfficial_94qgph_k$(seen1, verifyType, serializationConstructorMarker) { + Companion_instance_1343; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1330().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.verifyType = new Long(0, 0); + else + $this.verifyType = verifyType; + return $this; + } + } + class KVip_0 { + constructor(type, status, themeType, labelPath, nicknameColor, avatarSubscript, labelText, vipLabelTheme) { + Companion_instance_1344; + type = type === VOID ? new Long(0, 0) : type; + status = status === VOID ? new Long(0, 0) : status; + themeType = themeType === VOID ? new Long(0, 0) : themeType; + labelPath = labelPath === VOID ? '' : labelPath; + nicknameColor = nicknameColor === VOID ? '' : nicknameColor; + avatarSubscript = avatarSubscript === VOID ? 0 : avatarSubscript; + labelText = labelText === VOID ? '' : labelText; + vipLabelTheme = vipLabelTheme === VOID ? '' : vipLabelTheme; + this.type = type; + this.status = status; + this.themeType = themeType; + this.labelPath = labelPath; + this.nicknameColor = nicknameColor; + this.avatarSubscript = avatarSubscript; + this.labelText = labelText; + this.vipLabelTheme = vipLabelTheme; + } + get_type_wovaf7_k$() { + return this.type; + } + get_status_jnf6d7_k$() { + return this.status; + } + get_themeType_8svn5m_k$() { + return this.themeType; + } + get_labelPath_1jdt9s_k$() { + return this.labelPath; + } + get_nicknameColor_t5nkpg_k$() { + return this.nicknameColor; + } + get_avatarSubscript_pv2bpl_k$() { + return this.avatarSubscript; + } + get_labelText_1jb694_k$() { + return this.labelText; + } + get_vipLabelTheme_l189ah_k$() { + return this.vipLabelTheme; + } + component1_7eebsc_k$() { + return this.type; + } + component2_7eebsb_k$() { + return this.status; + } + component3_7eebsa_k$() { + return this.themeType; + } + component4_7eebs9_k$() { + return this.labelPath; + } + component5_7eebs8_k$() { + return this.nicknameColor; + } + component6_7eebs7_k$() { + return this.avatarSubscript; + } + component7_7eebs6_k$() { + return this.labelText; + } + component8_7eebs5_k$() { + return this.vipLabelTheme; + } + copy_avafd5_k$(type, status, themeType, labelPath, nicknameColor, avatarSubscript, labelText, vipLabelTheme) { + return new KVip_0(type, status, themeType, labelPath, nicknameColor, avatarSubscript, labelText, vipLabelTheme); + } + copy(type, status, themeType, labelPath, nicknameColor, avatarSubscript, labelText, vipLabelTheme, $super) { + type = type === VOID ? this.type : type; + status = status === VOID ? this.status : status; + themeType = themeType === VOID ? this.themeType : themeType; + labelPath = labelPath === VOID ? this.labelPath : labelPath; + nicknameColor = nicknameColor === VOID ? this.nicknameColor : nicknameColor; + avatarSubscript = avatarSubscript === VOID ? this.avatarSubscript : avatarSubscript; + labelText = labelText === VOID ? this.labelText : labelText; + vipLabelTheme = vipLabelTheme === VOID ? this.vipLabelTheme : vipLabelTheme; + return this.copy_avafd5_k$(type, status, themeType, labelPath, nicknameColor, avatarSubscript, labelText, vipLabelTheme); + } + toString() { + return 'KVip(type=' + this.type.toString() + ', status=' + this.status.toString() + ', themeType=' + this.themeType.toString() + ', labelPath=' + this.labelPath + ', nicknameColor=' + this.nicknameColor + ', avatarSubscript=' + this.avatarSubscript + ', labelText=' + this.labelText + ', vipLabelTheme=' + this.vipLabelTheme + ')'; + } + hashCode() { + var result = this.type.hashCode(); + result = imul(result, 31) + this.status.hashCode() | 0; + result = imul(result, 31) + this.themeType.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.labelPath) | 0; + result = imul(result, 31) + getStringHashCode(this.nicknameColor) | 0; + result = imul(result, 31) + this.avatarSubscript | 0; + result = imul(result, 31) + getStringHashCode(this.labelText) | 0; + result = imul(result, 31) + getStringHashCode(this.vipLabelTheme) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KVip_0)) + return false; + var tmp0_other_with_cast = other instanceof KVip_0 ? other : THROW_CCE(); + if (!this.type.equals(tmp0_other_with_cast.type)) + return false; + if (!this.status.equals(tmp0_other_with_cast.status)) + return false; + if (!this.themeType.equals(tmp0_other_with_cast.themeType)) + return false; + if (!(this.labelPath === tmp0_other_with_cast.labelPath)) + return false; + if (!(this.nicknameColor === tmp0_other_with_cast.nicknameColor)) + return false; + if (!(this.avatarSubscript === tmp0_other_with_cast.avatarSubscript)) + return false; + if (!(this.labelText === tmp0_other_with_cast.labelText)) + return false; + if (!(this.vipLabelTheme === tmp0_other_with_cast.vipLabelTheme)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KMemberV2_KVip_tkvrjx_k$(seen1, type, status, themeType, labelPath, nicknameColor, avatarSubscript, labelText, vipLabelTheme, serializationConstructorMarker) { + Companion_instance_1344; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1331().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.type = new Long(0, 0); + else + $this.type = type; + if (0 === (seen1 & 2)) + $this.status = new Long(0, 0); + else + $this.status = status; + if (0 === (seen1 & 4)) + $this.themeType = new Long(0, 0); + else + $this.themeType = themeType; + if (0 === (seen1 & 8)) + $this.labelPath = ''; + else + $this.labelPath = labelPath; + if (0 === (seen1 & 16)) + $this.nicknameColor = ''; + else + $this.nicknameColor = nicknameColor; + if (0 === (seen1 & 32)) + $this.avatarSubscript = 0; + else + $this.avatarSubscript = avatarSubscript; + if (0 === (seen1 & 64)) + $this.labelText = ''; + else + $this.labelText = labelText; + if (0 === (seen1 & 128)) + $this.vipLabelTheme = ''; + else + $this.vipLabelTheme = vipLabelTheme; + return $this; + } + } + class KGarb { + constructor(pendantImage, cardImage, cardImageWithFocus, cardJumpUrl, cardNumber, cardFanColor, cardIsFan) { + Companion_instance_1345; + pendantImage = pendantImage === VOID ? '' : pendantImage; + cardImage = cardImage === VOID ? '' : cardImage; + cardImageWithFocus = cardImageWithFocus === VOID ? '' : cardImageWithFocus; + cardJumpUrl = cardJumpUrl === VOID ? '' : cardJumpUrl; + cardNumber = cardNumber === VOID ? '' : cardNumber; + cardFanColor = cardFanColor === VOID ? '' : cardFanColor; + cardIsFan = cardIsFan === VOID ? false : cardIsFan; + this.pendantImage = pendantImage; + this.cardImage = cardImage; + this.cardImageWithFocus = cardImageWithFocus; + this.cardJumpUrl = cardJumpUrl; + this.cardNumber = cardNumber; + this.cardFanColor = cardFanColor; + this.cardIsFan = cardIsFan; + } + get_pendantImage_4fkvbs_k$() { + return this.pendantImage; + } + get_cardImage_44empu_k$() { + return this.cardImage; + } + get_cardImageWithFocus_o4jxao_k$() { + return this.cardImageWithFocus; + } + get_cardJumpUrl_2jrnbc_k$() { + return this.cardJumpUrl; + } + get_cardNumber_brsiri_k$() { + return this.cardNumber; + } + get_cardFanColor_p4p4zt_k$() { + return this.cardFanColor; + } + get_cardIsFan_44hwhc_k$() { + return this.cardIsFan; + } + component1_7eebsc_k$() { + return this.pendantImage; + } + component2_7eebsb_k$() { + return this.cardImage; + } + component3_7eebsa_k$() { + return this.cardImageWithFocus; + } + component4_7eebs9_k$() { + return this.cardJumpUrl; + } + component5_7eebs8_k$() { + return this.cardNumber; + } + component6_7eebs7_k$() { + return this.cardFanColor; + } + component7_7eebs6_k$() { + return this.cardIsFan; + } + copy_ktg10w_k$(pendantImage, cardImage, cardImageWithFocus, cardJumpUrl, cardNumber, cardFanColor, cardIsFan) { + return new KGarb(pendantImage, cardImage, cardImageWithFocus, cardJumpUrl, cardNumber, cardFanColor, cardIsFan); + } + copy(pendantImage, cardImage, cardImageWithFocus, cardJumpUrl, cardNumber, cardFanColor, cardIsFan, $super) { + pendantImage = pendantImage === VOID ? this.pendantImage : pendantImage; + cardImage = cardImage === VOID ? this.cardImage : cardImage; + cardImageWithFocus = cardImageWithFocus === VOID ? this.cardImageWithFocus : cardImageWithFocus; + cardJumpUrl = cardJumpUrl === VOID ? this.cardJumpUrl : cardJumpUrl; + cardNumber = cardNumber === VOID ? this.cardNumber : cardNumber; + cardFanColor = cardFanColor === VOID ? this.cardFanColor : cardFanColor; + cardIsFan = cardIsFan === VOID ? this.cardIsFan : cardIsFan; + return this.copy_ktg10w_k$(pendantImage, cardImage, cardImageWithFocus, cardJumpUrl, cardNumber, cardFanColor, cardIsFan); + } + toString() { + return 'KGarb(pendantImage=' + this.pendantImage + ', cardImage=' + this.cardImage + ', cardImageWithFocus=' + this.cardImageWithFocus + ', cardJumpUrl=' + this.cardJumpUrl + ', cardNumber=' + this.cardNumber + ', cardFanColor=' + this.cardFanColor + ', cardIsFan=' + this.cardIsFan + ')'; + } + hashCode() { + var result = getStringHashCode(this.pendantImage); + result = imul(result, 31) + getStringHashCode(this.cardImage) | 0; + result = imul(result, 31) + getStringHashCode(this.cardImageWithFocus) | 0; + result = imul(result, 31) + getStringHashCode(this.cardJumpUrl) | 0; + result = imul(result, 31) + getStringHashCode(this.cardNumber) | 0; + result = imul(result, 31) + getStringHashCode(this.cardFanColor) | 0; + result = imul(result, 31) + getBooleanHashCode(this.cardIsFan) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KGarb)) + return false; + var tmp0_other_with_cast = other instanceof KGarb ? other : THROW_CCE(); + if (!(this.pendantImage === tmp0_other_with_cast.pendantImage)) + return false; + if (!(this.cardImage === tmp0_other_with_cast.cardImage)) + return false; + if (!(this.cardImageWithFocus === tmp0_other_with_cast.cardImageWithFocus)) + return false; + if (!(this.cardJumpUrl === tmp0_other_with_cast.cardJumpUrl)) + return false; + if (!(this.cardNumber === tmp0_other_with_cast.cardNumber)) + return false; + if (!(this.cardFanColor === tmp0_other_with_cast.cardFanColor)) + return false; + if (!(this.cardIsFan === tmp0_other_with_cast.cardIsFan)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KMemberV2_KGarb_7gp3mx_k$(seen1, pendantImage, cardImage, cardImageWithFocus, cardJumpUrl, cardNumber, cardFanColor, cardIsFan, serializationConstructorMarker) { + Companion_instance_1345; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1332().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.pendantImage = ''; + else + $this.pendantImage = pendantImage; + if (0 === (seen1 & 2)) + $this.cardImage = ''; + else + $this.cardImage = cardImage; + if (0 === (seen1 & 4)) + $this.cardImageWithFocus = ''; + else + $this.cardImageWithFocus = cardImageWithFocus; + if (0 === (seen1 & 8)) + $this.cardJumpUrl = ''; + else + $this.cardJumpUrl = cardJumpUrl; + if (0 === (seen1 & 16)) + $this.cardNumber = ''; + else + $this.cardNumber = cardNumber; + if (0 === (seen1 & 32)) + $this.cardFanColor = ''; + else + $this.cardFanColor = cardFanColor; + if (0 === (seen1 & 64)) + $this.cardIsFan = false; + else + $this.cardIsFan = cardIsFan; + return $this; + } + } + class KMedal { + constructor(name, level, colorStart, colorEnd, colorBorder, colorName, colorLevel, guardLevel, firstIcon, secondIcon, levelBgColor) { + Companion_instance_1346; + name = name === VOID ? '' : name; + level = level === VOID ? new Long(0, 0) : level; + colorStart = colorStart === VOID ? new Long(0, 0) : colorStart; + colorEnd = colorEnd === VOID ? new Long(0, 0) : colorEnd; + colorBorder = colorBorder === VOID ? new Long(0, 0) : colorBorder; + colorName = colorName === VOID ? new Long(0, 0) : colorName; + colorLevel = colorLevel === VOID ? new Long(0, 0) : colorLevel; + guardLevel = guardLevel === VOID ? new Long(0, 0) : guardLevel; + firstIcon = firstIcon === VOID ? '' : firstIcon; + secondIcon = secondIcon === VOID ? '' : secondIcon; + levelBgColor = levelBgColor === VOID ? new Long(0, 0) : levelBgColor; + this.name = name; + this.level = level; + this.colorStart = colorStart; + this.colorEnd = colorEnd; + this.colorBorder = colorBorder; + this.colorName = colorName; + this.colorLevel = colorLevel; + this.guardLevel = guardLevel; + this.firstIcon = firstIcon; + this.secondIcon = secondIcon; + this.levelBgColor = levelBgColor; + } + get_name_woqyms_k$() { + return this.name; + } + get_level_ium7h7_k$() { + return this.level; + } + get_colorStart_yzmmg_k$() { + return this.colorStart; + } + get_colorEnd_strvi9_k$() { + return this.colorEnd; + } + get_colorBorder_m0ghs6_k$() { + return this.colorBorder; + } + get_colorName_trb3ff_k$() { + return this.colorName; + } + get_colorLevel_uvwx6_k$() { + return this.colorLevel; + } + get_guardLevel_q2p8bs_k$() { + return this.guardLevel; + } + get_firstIcon_apisgw_k$() { + return this.firstIcon; + } + get_secondIcon_d63a7e_k$() { + return this.secondIcon; + } + get_levelBgColor_mb5bgj_k$() { + return this.levelBgColor; + } + component1_7eebsc_k$() { + return this.name; + } + component2_7eebsb_k$() { + return this.level; + } + component3_7eebsa_k$() { + return this.colorStart; + } + component4_7eebs9_k$() { + return this.colorEnd; + } + component5_7eebs8_k$() { + return this.colorBorder; + } + component6_7eebs7_k$() { + return this.colorName; + } + component7_7eebs6_k$() { + return this.colorLevel; + } + component8_7eebs5_k$() { + return this.guardLevel; + } + component9_7eebs4_k$() { + return this.firstIcon; + } + component10_gazzfo_k$() { + return this.secondIcon; + } + component11_gazzfn_k$() { + return this.levelBgColor; + } + copy_u71hx_k$(name, level, colorStart, colorEnd, colorBorder, colorName, colorLevel, guardLevel, firstIcon, secondIcon, levelBgColor) { + return new KMedal(name, level, colorStart, colorEnd, colorBorder, colorName, colorLevel, guardLevel, firstIcon, secondIcon, levelBgColor); + } + copy(name, level, colorStart, colorEnd, colorBorder, colorName, colorLevel, guardLevel, firstIcon, secondIcon, levelBgColor, $super) { + name = name === VOID ? this.name : name; + level = level === VOID ? this.level : level; + colorStart = colorStart === VOID ? this.colorStart : colorStart; + colorEnd = colorEnd === VOID ? this.colorEnd : colorEnd; + colorBorder = colorBorder === VOID ? this.colorBorder : colorBorder; + colorName = colorName === VOID ? this.colorName : colorName; + colorLevel = colorLevel === VOID ? this.colorLevel : colorLevel; + guardLevel = guardLevel === VOID ? this.guardLevel : guardLevel; + firstIcon = firstIcon === VOID ? this.firstIcon : firstIcon; + secondIcon = secondIcon === VOID ? this.secondIcon : secondIcon; + levelBgColor = levelBgColor === VOID ? this.levelBgColor : levelBgColor; + return this.copy_u71hx_k$(name, level, colorStart, colorEnd, colorBorder, colorName, colorLevel, guardLevel, firstIcon, secondIcon, levelBgColor); + } + toString() { + return 'KMedal(name=' + this.name + ', level=' + this.level.toString() + ', colorStart=' + this.colorStart.toString() + ', colorEnd=' + this.colorEnd.toString() + ', colorBorder=' + this.colorBorder.toString() + ', colorName=' + this.colorName.toString() + ', colorLevel=' + this.colorLevel.toString() + ', guardLevel=' + this.guardLevel.toString() + ', firstIcon=' + this.firstIcon + ', secondIcon=' + this.secondIcon + ', levelBgColor=' + this.levelBgColor.toString() + ')'; + } + hashCode() { + var result = getStringHashCode(this.name); + result = imul(result, 31) + this.level.hashCode() | 0; + result = imul(result, 31) + this.colorStart.hashCode() | 0; + result = imul(result, 31) + this.colorEnd.hashCode() | 0; + result = imul(result, 31) + this.colorBorder.hashCode() | 0; + result = imul(result, 31) + this.colorName.hashCode() | 0; + result = imul(result, 31) + this.colorLevel.hashCode() | 0; + result = imul(result, 31) + this.guardLevel.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.firstIcon) | 0; + result = imul(result, 31) + getStringHashCode(this.secondIcon) | 0; + result = imul(result, 31) + this.levelBgColor.hashCode() | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KMedal)) + return false; + var tmp0_other_with_cast = other instanceof KMedal ? other : THROW_CCE(); + if (!(this.name === tmp0_other_with_cast.name)) + return false; + if (!this.level.equals(tmp0_other_with_cast.level)) + return false; + if (!this.colorStart.equals(tmp0_other_with_cast.colorStart)) + return false; + if (!this.colorEnd.equals(tmp0_other_with_cast.colorEnd)) + return false; + if (!this.colorBorder.equals(tmp0_other_with_cast.colorBorder)) + return false; + if (!this.colorName.equals(tmp0_other_with_cast.colorName)) + return false; + if (!this.colorLevel.equals(tmp0_other_with_cast.colorLevel)) + return false; + if (!this.guardLevel.equals(tmp0_other_with_cast.guardLevel)) + return false; + if (!(this.firstIcon === tmp0_other_with_cast.firstIcon)) + return false; + if (!(this.secondIcon === tmp0_other_with_cast.secondIcon)) + return false; + if (!this.levelBgColor.equals(tmp0_other_with_cast.levelBgColor)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KMemberV2_KMedal_d2nwn0_k$(seen1, name, level, colorStart, colorEnd, colorBorder, colorName, colorLevel, guardLevel, firstIcon, secondIcon, levelBgColor, serializationConstructorMarker) { + Companion_instance_1346; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1333().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.name = ''; + else + $this.name = name; + if (0 === (seen1 & 2)) + $this.level = new Long(0, 0); + else + $this.level = level; + if (0 === (seen1 & 4)) + $this.colorStart = new Long(0, 0); + else + $this.colorStart = colorStart; + if (0 === (seen1 & 8)) + $this.colorEnd = new Long(0, 0); + else + $this.colorEnd = colorEnd; + if (0 === (seen1 & 16)) + $this.colorBorder = new Long(0, 0); + else + $this.colorBorder = colorBorder; + if (0 === (seen1 & 32)) + $this.colorName = new Long(0, 0); + else + $this.colorName = colorName; + if (0 === (seen1 & 64)) + $this.colorLevel = new Long(0, 0); + else + $this.colorLevel = colorLevel; + if (0 === (seen1 & 128)) + $this.guardLevel = new Long(0, 0); + else + $this.guardLevel = guardLevel; + if (0 === (seen1 & 256)) + $this.firstIcon = ''; + else + $this.firstIcon = firstIcon; + if (0 === (seen1 & 512)) + $this.secondIcon = ''; + else + $this.secondIcon = secondIcon; + if (0 === (seen1 & 1024)) + $this.levelBgColor = new Long(0, 0); + else + $this.levelBgColor = levelBgColor; + return $this; + } + } + class KNft { + constructor(face, interaction) { + Companion_instance_1351; + face = face === VOID ? 0 : face; + interaction = interaction === VOID ? null : interaction; + this.face = face; + this.interaction = interaction; + } + get_face_woluhy_k$() { + return this.face; + } + get_interaction_qmz8t3_k$() { + return this.interaction; + } + component1_7eebsc_k$() { + return this.face; + } + component2_7eebsb_k$() { + return this.interaction; + } + copy_kzt7jz_k$(face, interaction) { + return new KNft(face, interaction); + } + copy(face, interaction, $super) { + face = face === VOID ? this.face : face; + interaction = interaction === VOID ? this.interaction : interaction; + return this.copy_kzt7jz_k$(face, interaction); + } + toString() { + return 'KNft(face=' + this.face + ', interaction=' + this.interaction + ')'; + } + hashCode() { + var result = this.face; + result = imul(result, 31) + (this.interaction == null ? 0 : this.interaction.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KNft)) + return false; + var tmp0_other_with_cast = other instanceof KNft ? other : THROW_CCE(); + if (!(this.face === tmp0_other_with_cast.face)) + return false; + if (!equals(this.interaction, tmp0_other_with_cast.interaction)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KMemberV2_KNft_9zc4mq_k$(seen1, face, interaction, serializationConstructorMarker) { + Companion_instance_1351; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1338().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.face = 0; + else + $this.face = face; + if (0 === (seen1 & 2)) + $this.interaction = null; + else + $this.interaction = interaction; + return $this; + } + } + class KSenior { + constructor(isSeniorMember, status) { + Companion_instance_1353; + isSeniorMember = isSeniorMember === VOID ? 0 : isSeniorMember; + status = status === VOID ? 0 : status; + this.isSeniorMember = isSeniorMember; + this.status = status; + } + get_isSeniorMember_st26nx_k$() { + return this.isSeniorMember; + } + get_status_jnf6d7_k$() { + return this.status; + } + statusEnum() { + return Companion_getInstance_1352().fromValue(this.status); + } + component1_7eebsc_k$() { + return this.isSeniorMember; + } + component2_7eebsb_k$() { + return this.status; + } + copy_fhtu3_k$(isSeniorMember, status) { + return new KSenior(isSeniorMember, status); + } + copy(isSeniorMember, status, $super) { + isSeniorMember = isSeniorMember === VOID ? this.isSeniorMember : isSeniorMember; + status = status === VOID ? this.status : status; + return this.copy_fhtu3_k$(isSeniorMember, status); + } + toString() { + return 'KSenior(isSeniorMember=' + this.isSeniorMember + ', status=' + this.status + ')'; + } + hashCode() { + var result = this.isSeniorMember; + result = imul(result, 31) + this.status | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSenior)) + return false; + var tmp0_other_with_cast = other instanceof KSenior ? other : THROW_CCE(); + if (!(this.isSeniorMember === tmp0_other_with_cast.isSeniorMember)) + return false; + if (!(this.status === tmp0_other_with_cast.status)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KMemberV2_KSenior_mnd94o_k$(seen1, isSeniorMember, status, serializationConstructorMarker) { + Companion_instance_1353; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1340().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.isSeniorMember = 0; + else + $this.isSeniorMember = isSeniorMember; + if (0 === (seen1 & 2)) + $this.status = 0; + else + $this.status = status; + return $this; + } + } + class KContractor { + constructor(isContractor, contractDesc) { + Companion_instance_1354; + isContractor = isContractor === VOID ? false : isContractor; + contractDesc = contractDesc === VOID ? '' : contractDesc; + this.isContractor = isContractor; + this.contractDesc = contractDesc; + } + get_isContractor_k968oo_k$() { + return this.isContractor; + } + get_contractDesc_inn01g_k$() { + return this.contractDesc; + } + component1_7eebsc_k$() { + return this.isContractor; + } + component2_7eebsb_k$() { + return this.contractDesc; + } + copy_miatnu_k$(isContractor, contractDesc) { + return new KContractor(isContractor, contractDesc); + } + copy(isContractor, contractDesc, $super) { + isContractor = isContractor === VOID ? this.isContractor : isContractor; + contractDesc = contractDesc === VOID ? this.contractDesc : contractDesc; + return this.copy_miatnu_k$(isContractor, contractDesc); + } + toString() { + return 'KContractor(isContractor=' + this.isContractor + ', contractDesc=' + this.contractDesc + ')'; + } + hashCode() { + var result = getBooleanHashCode(this.isContractor); + result = imul(result, 31) + getStringHashCode(this.contractDesc) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KContractor)) + return false; + var tmp0_other_with_cast = other instanceof KContractor ? other : THROW_CCE(); + if (!(this.isContractor === tmp0_other_with_cast.isContractor)) + return false; + if (!(this.contractDesc === tmp0_other_with_cast.contractDesc)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KMemberV2_KContractor_3vxeql_k$(seen1, isContractor, contractDesc, serializationConstructorMarker) { + Companion_instance_1354; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1341().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.isContractor = false; + else + $this.isContractor = isContractor; + if (0 === (seen1 & 2)) + $this.contractDesc = ''; + else + $this.contractDesc = contractDesc; + return $this; + } + } + class Companion_1355 { + constructor() { + this.targetPath = '/bilibili.main.community.reply.v1.MemberV2'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1342(); + } + } + class $serializer_1342 { + constructor() { + $serializer_instance_1342 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KMemberV2', this, 8); + tmp0_serialDesc.addElement_5pzumi_k$('basic', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('official', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('vip', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('garb', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('medal', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('nft', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('senior', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('contractor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_1329()), get_nullable($serializer_getInstance_1330()), get_nullable($serializer_getInstance_1331()), get_nullable($serializer_getInstance_1332()), get_nullable($serializer_getInstance_1333()), get_nullable($serializer_getInstance_1338()), get_nullable($serializer_getInstance_1340()), get_nullable($serializer_getInstance_1341())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp12_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_1329(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_1330(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_1331(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_1332(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_1333(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_1338(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_1340(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_1341(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + } else + while (tmp1_flag) { + tmp2_index = tmp12_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_1329(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_1330(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_1331(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_1332(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_1333(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_1338(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_1340(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_1341(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp12_input.endStructure_1xqz0n_k$(tmp0_desc); + return KMemberV2.new_com_bapis_bilibili_main_community_reply_v1_KMemberV2_3e9dii_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null); + } + serialize_vkhsqw_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.basic == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_1329(), value.basic); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.official == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_1330(), value.official); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.vip == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_1331(), value.vip); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.garb == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_1332(), value.garb); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.medal == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, $serializer_getInstance_1333(), value.medal); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.nft == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 5, $serializer_getInstance_1338(), value.nft); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.senior == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 6, $serializer_getInstance_1340(), value.senior); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.contractor == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 7, $serializer_getInstance_1341(), value.contractor); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_vkhsqw_k$(encoder, value instanceof KMemberV2 ? value : THROW_CCE()); + } + } + class KMemberV2 { + constructor(basic, official, vip, garb, medal, nft, senior, contractor) { + Companion_instance_1355; + basic = basic === VOID ? null : basic; + official = official === VOID ? null : official; + vip = vip === VOID ? null : vip; + garb = garb === VOID ? null : garb; + medal = medal === VOID ? null : medal; + nft = nft === VOID ? null : nft; + senior = senior === VOID ? null : senior; + contractor = contractor === VOID ? null : contractor; + this.basic = basic; + this.official = official; + this.vip = vip; + this.garb = garb; + this.medal = medal; + this.nft = nft; + this.senior = senior; + this.contractor = contractor; + } + get_basic_ip1ngl_k$() { + return this.basic; + } + get_official_qkjhys_k$() { + return this.official; + } + get_vip_18itzg_k$() { + return this.vip; + } + get_garb_womhub_k$() { + return this.garb; + } + get_medal_iv5mmm_k$() { + return this.medal; + } + get_nft_18izzh_k$() { + return this.nft; + } + get_senior_jfebzt_k$() { + return this.senior; + } + get_contractor_9ulgjm_k$() { + return this.contractor; + } + component1_7eebsc_k$() { + return this.basic; + } + component2_7eebsb_k$() { + return this.official; + } + component3_7eebsa_k$() { + return this.vip; + } + component4_7eebs9_k$() { + return this.garb; + } + component5_7eebs8_k$() { + return this.medal; + } + component6_7eebs7_k$() { + return this.nft; + } + component7_7eebs6_k$() { + return this.senior; + } + component8_7eebs5_k$() { + return this.contractor; + } + copy_l9m4mz_k$(basic, official, vip, garb, medal, nft, senior, contractor) { + return new KMemberV2(basic, official, vip, garb, medal, nft, senior, contractor); + } + copy(basic, official, vip, garb, medal, nft, senior, contractor, $super) { + basic = basic === VOID ? this.basic : basic; + official = official === VOID ? this.official : official; + vip = vip === VOID ? this.vip : vip; + garb = garb === VOID ? this.garb : garb; + medal = medal === VOID ? this.medal : medal; + nft = nft === VOID ? this.nft : nft; + senior = senior === VOID ? this.senior : senior; + contractor = contractor === VOID ? this.contractor : contractor; + return this.copy_l9m4mz_k$(basic, official, vip, garb, medal, nft, senior, contractor); + } + toString() { + return 'KMemberV2(basic=' + this.basic + ', official=' + this.official + ', vip=' + this.vip + ', garb=' + this.garb + ', medal=' + this.medal + ', nft=' + this.nft + ', senior=' + this.senior + ', contractor=' + this.contractor + ')'; + } + hashCode() { + var result = this.basic == null ? 0 : this.basic.hashCode(); + result = imul(result, 31) + (this.official == null ? 0 : this.official.hashCode()) | 0; + result = imul(result, 31) + (this.vip == null ? 0 : this.vip.hashCode()) | 0; + result = imul(result, 31) + (this.garb == null ? 0 : this.garb.hashCode()) | 0; + result = imul(result, 31) + (this.medal == null ? 0 : this.medal.hashCode()) | 0; + result = imul(result, 31) + (this.nft == null ? 0 : this.nft.hashCode()) | 0; + result = imul(result, 31) + (this.senior == null ? 0 : this.senior.hashCode()) | 0; + result = imul(result, 31) + (this.contractor == null ? 0 : this.contractor.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KMemberV2)) + return false; + var tmp0_other_with_cast = other instanceof KMemberV2 ? other : THROW_CCE(); + if (!equals(this.basic, tmp0_other_with_cast.basic)) + return false; + if (!equals(this.official, tmp0_other_with_cast.official)) + return false; + if (!equals(this.vip, tmp0_other_with_cast.vip)) + return false; + if (!equals(this.garb, tmp0_other_with_cast.garb)) + return false; + if (!equals(this.medal, tmp0_other_with_cast.medal)) + return false; + if (!equals(this.nft, tmp0_other_with_cast.nft)) + return false; + if (!equals(this.senior, tmp0_other_with_cast.senior)) + return false; + if (!equals(this.contractor, tmp0_other_with_cast.contractor)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KMemberV2_3e9dii_k$(seen1, basic, official, vip, garb, medal, nft, senior, contractor, serializationConstructorMarker) { + Companion_instance_1355; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1342().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.basic = null; + else + $this.basic = basic; + if (0 === (seen1 & 2)) + $this.official = null; + else + $this.official = official; + if (0 === (seen1 & 4)) + $this.vip = null; + else + $this.vip = vip; + if (0 === (seen1 & 8)) + $this.garb = null; + else + $this.garb = garb; + if (0 === (seen1 & 16)) + $this.medal = null; + else + $this.medal = medal; + if (0 === (seen1 & 32)) + $this.nft = null; + else + $this.nft = nft; + if (0 === (seen1 & 64)) + $this.senior = null; + else + $this.senior = senior; + if (0 === (seen1 & 128)) + $this.contractor = null; + else + $this.contractor = contractor; + return $this; + } + } + class Companion_1356 { + constructor() { + Companion_instance_1356 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KMember$KNftInteraction$KRegionType$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KMember$KNftInteraction$KRegionType$Companion$_anonymous__9rdgtk); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_171(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.main.community.reply.v1.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KRegionType_UNRECOGNIZED_getInstance_0() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.main.community.reply.v1.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KRegionType with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_171(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_1343 { + constructor() { + $serializer_instance_1343 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.main.community.reply.v1.KMember.KNftInteraction.KRegionType', 4); + tmp0_serialDesc.addElement_5pzumi_k$('DEFAULT', false); + tmp0_serialDesc.addElement_5pzumi_k$('MAINLAND', false); + tmp0_serialDesc.addElement_5pzumi_k$('GAT', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_171()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_cfg4xv_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_cfg4xv_k$(encoder, value instanceof KRegionType_0 ? value : THROW_CCE()); + } + } + class Companion_1357 { + constructor() { + Companion_instance_1357 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KMember$KNftInteraction$KShowStatus$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KMember$KNftInteraction$KShowStatus$Companion$_anonymous__lzsh1z); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_172(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.main.community.reply.v1.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KShowStatus_UNRECOGNIZED_getInstance_0() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.main.community.reply.v1.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KShowStatus with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_172(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_1344 { + constructor() { + $serializer_instance_1344 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.main.community.reply.v1.KMember.KNftInteraction.KShowStatus', 4); + tmp0_serialDesc.addElement_5pzumi_k$('SHOWDEFAULT', false); + tmp0_serialDesc.addElement_5pzumi_k$('ZOOMINMAINLAND', false); + tmp0_serialDesc.addElement_5pzumi_k$('RAW', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_172()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_yxn7z8_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_yxn7z8_k$(encoder, value instanceof KShowStatus_0 ? value : THROW_CCE()); + } + } + class Companion_1358 { + constructor() { + this.targetPath = '/bilibili.main.community.reply.v1.Member.NftInteraction.Region'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1345(); + } + } + class $serializer_1345 { + constructor() { + $serializer_instance_1345 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KMember.KNftInteraction.KRegion', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('icon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('showStatus', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = null; + var tmp6_local2 = 0; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KRegion_0.new_com_bapis_bilibili_main_community_reply_v1_KMember_KNftInteraction_KRegion_hcm49x_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_bnymts_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.type === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.type); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.icon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.icon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.showStatus === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.showStatus); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_bnymts_k$(encoder, value instanceof KRegion_0 ? value : THROW_CCE()); + } + } + class KRegionType_0 extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class KShowStatus_0 extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class KRegion_0 { + constructor(type, icon, showStatus) { + Companion_instance_1358; + type = type === VOID ? 0 : type; + icon = icon === VOID ? '' : icon; + showStatus = showStatus === VOID ? 0 : showStatus; + this.type = type; + this.icon = icon; + this.showStatus = showStatus; + } + get_type_wovaf7_k$() { + return this.type; + } + get_icon_wont8i_k$() { + return this.icon; + } + get_showStatus_78b2nc_k$() { + return this.showStatus; + } + typeEnum() { + return Companion_getInstance_1356().fromValue(this.type); + } + showStatusEnum() { + return Companion_getInstance_1357().fromValue(this.showStatus); + } + component1_7eebsc_k$() { + return this.type; + } + component2_7eebsb_k$() { + return this.icon; + } + component3_7eebsa_k$() { + return this.showStatus; + } + copy_jqwgyn_k$(type, icon, showStatus) { + return new KRegion_0(type, icon, showStatus); + } + copy(type, icon, showStatus, $super) { + type = type === VOID ? this.type : type; + icon = icon === VOID ? this.icon : icon; + showStatus = showStatus === VOID ? this.showStatus : showStatus; + return this.copy_jqwgyn_k$(type, icon, showStatus); + } + toString() { + return 'KRegion(type=' + this.type + ', icon=' + this.icon + ', showStatus=' + this.showStatus + ')'; + } + hashCode() { + var result = this.type; + result = imul(result, 31) + getStringHashCode(this.icon) | 0; + result = imul(result, 31) + this.showStatus | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KRegion_0)) + return false; + var tmp0_other_with_cast = other instanceof KRegion_0 ? other : THROW_CCE(); + if (!(this.type === tmp0_other_with_cast.type)) + return false; + if (!(this.icon === tmp0_other_with_cast.icon)) + return false; + if (!(this.showStatus === tmp0_other_with_cast.showStatus)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KMember_KNftInteraction_KRegion_hcm49x_k$(seen1, type, icon, showStatus, serializationConstructorMarker) { + Companion_instance_1358; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1345().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.type = 0; + else + $this.type = type; + if (0 === (seen1 & 2)) + $this.icon = ''; + else + $this.icon = icon; + if (0 === (seen1 & 4)) + $this.showStatus = 0; + else + $this.showStatus = showStatus; + return $this; + } + } + class Companion_1359 { + constructor() { + this.targetPath = '/bilibili.main.community.reply.v1.Member.NftInteraction'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1346(); + } + } + class $serializer_1346 { + constructor() { + $serializer_instance_1346 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KMember.KNftInteraction', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('itype', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('metadataUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('nftId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('region', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_1345())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_1345(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_1345(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KNftInteraction.new_com_bapis_bilibili_main_community_reply_v1_KMember_KNftInteraction_7xkoml_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_1crinz_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.itype === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.itype); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.metadataUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.metadataUrl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.nftId === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.nftId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.region == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_1345(), value.region); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_1crinz_k$(encoder, value instanceof KNftInteraction ? value : THROW_CCE()); + } + } + class KNftInteraction { + constructor(itype, metadataUrl, nftId, region) { + Companion_instance_1359; + itype = itype === VOID ? '' : itype; + metadataUrl = metadataUrl === VOID ? '' : metadataUrl; + nftId = nftId === VOID ? '' : nftId; + region = region === VOID ? null : region; + this.itype = itype; + this.metadataUrl = metadataUrl; + this.nftId = nftId; + this.region = region; + } + get_itype_it8gze_k$() { + return this.itype; + } + get_metadataUrl_alsqsp_k$() { + return this.metadataUrl; + } + get_nftId_ivqdhq_k$() { + return this.nftId; + } + get_region_iy88ot_k$() { + return this.region; + } + component1_7eebsc_k$() { + return this.itype; + } + component2_7eebsb_k$() { + return this.metadataUrl; + } + component3_7eebsa_k$() { + return this.nftId; + } + component4_7eebs9_k$() { + return this.region; + } + copy_vt1otr_k$(itype, metadataUrl, nftId, region) { + return new KNftInteraction(itype, metadataUrl, nftId, region); + } + copy(itype, metadataUrl, nftId, region, $super) { + itype = itype === VOID ? this.itype : itype; + metadataUrl = metadataUrl === VOID ? this.metadataUrl : metadataUrl; + nftId = nftId === VOID ? this.nftId : nftId; + region = region === VOID ? this.region : region; + return this.copy_vt1otr_k$(itype, metadataUrl, nftId, region); + } + toString() { + return 'KNftInteraction(itype=' + this.itype + ', metadataUrl=' + this.metadataUrl + ', nftId=' + this.nftId + ', region=' + this.region + ')'; + } + hashCode() { + var result = getStringHashCode(this.itype); + result = imul(result, 31) + getStringHashCode(this.metadataUrl) | 0; + result = imul(result, 31) + getStringHashCode(this.nftId) | 0; + result = imul(result, 31) + (this.region == null ? 0 : this.region.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KNftInteraction)) + return false; + var tmp0_other_with_cast = other instanceof KNftInteraction ? other : THROW_CCE(); + if (!(this.itype === tmp0_other_with_cast.itype)) + return false; + if (!(this.metadataUrl === tmp0_other_with_cast.metadataUrl)) + return false; + if (!(this.nftId === tmp0_other_with_cast.nftId)) + return false; + if (!equals(this.region, tmp0_other_with_cast.region)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KMember_KNftInteraction_7xkoml_k$(seen1, itype, metadataUrl, nftId, region, serializationConstructorMarker) { + Companion_instance_1359; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1346().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.itype = ''; + else + $this.itype = itype; + if (0 === (seen1 & 2)) + $this.metadataUrl = ''; + else + $this.metadataUrl = metadataUrl; + if (0 === (seen1 & 4)) + $this.nftId = ''; + else + $this.nftId = nftId; + if (0 === (seen1 & 8)) + $this.region = null; + else + $this.region = region; + return $this; + } + } + class Companion_1360 { + constructor() { + this.targetPath = '/bilibili.main.community.reply.v1.Member'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1347(); + } + } + class $serializer_1347 { + constructor() { + $serializer_instance_1347 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KMember', this, 35); + tmp0_serialDesc.addElement_5pzumi_k$('mid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('name', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('sex', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('face', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('level', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('officialVerifyType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('vipType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('vipStatus', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('vipThemeType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('vipLabelPath', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('garbPendantImage', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('garbCardImage', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + tmp0_serialDesc.addElement_5pzumi_k$('garbCardImageWithFocus', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(13)); + tmp0_serialDesc.addElement_5pzumi_k$('garbCardJumpUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(14)); + tmp0_serialDesc.addElement_5pzumi_k$('garbCardNumber', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(15)); + tmp0_serialDesc.addElement_5pzumi_k$('garbCardFanColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(16)); + tmp0_serialDesc.addElement_5pzumi_k$('garbCardIsFan', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(17)); + tmp0_serialDesc.addElement_5pzumi_k$('fansMedalName', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(18)); + tmp0_serialDesc.addElement_5pzumi_k$('fansMedalLevel', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(19)); + tmp0_serialDesc.addElement_5pzumi_k$('fansMedalColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(20)); + tmp0_serialDesc.addElement_5pzumi_k$('vipNicknameColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(21)); + tmp0_serialDesc.addElement_5pzumi_k$('vipAvatarSubscript', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(22)); + tmp0_serialDesc.addElement_5pzumi_k$('vipLabelText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(23)); + tmp0_serialDesc.addElement_5pzumi_k$('vipLabelTheme', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(24)); + tmp0_serialDesc.addElement_5pzumi_k$('fansMedalColorEnd', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(25)); + tmp0_serialDesc.addElement_5pzumi_k$('fansMedalColorBorder', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(26)); + tmp0_serialDesc.addElement_5pzumi_k$('fansMedalColorName', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(27)); + tmp0_serialDesc.addElement_5pzumi_k$('fansMedalColorLevel', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(28)); + tmp0_serialDesc.addElement_5pzumi_k$('fansGuardLevel', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(29)); + tmp0_serialDesc.addElement_5pzumi_k$('faceNft', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(30)); + tmp0_serialDesc.addElement_5pzumi_k$('faceNftNew', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(31)); + tmp0_serialDesc.addElement_5pzumi_k$('isSeniorMember', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(32)); + tmp0_serialDesc.addElement_5pzumi_k$('nftInteraction', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(33)); + tmp0_serialDesc.addElement_5pzumi_k$('fansGuardIcon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(34)); + tmp0_serialDesc.addElement_5pzumi_k$('fansHonorIcon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(35)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), BooleanSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), get_nullable($serializer_getInstance_1346()), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_bitMask1 = 0; + var tmp5_local0 = new Long(0, 0); + var tmp6_local1 = null; + var tmp7_local2 = null; + var tmp8_local3 = null; + var tmp9_local4 = new Long(0, 0); + var tmp10_local5 = new Long(0, 0); + var tmp11_local6 = new Long(0, 0); + var tmp12_local7 = new Long(0, 0); + var tmp13_local8 = new Long(0, 0); + var tmp14_local9 = null; + var tmp15_local10 = null; + var tmp16_local11 = null; + var tmp17_local12 = null; + var tmp18_local13 = null; + var tmp19_local14 = null; + var tmp20_local15 = null; + var tmp21_local16 = false; + var tmp22_local17 = null; + var tmp23_local18 = new Long(0, 0); + var tmp24_local19 = new Long(0, 0); + var tmp25_local20 = null; + var tmp26_local21 = 0; + var tmp27_local22 = null; + var tmp28_local23 = null; + var tmp29_local24 = new Long(0, 0); + var tmp30_local25 = new Long(0, 0); + var tmp31_local26 = new Long(0, 0); + var tmp32_local27 = new Long(0, 0); + var tmp33_local28 = new Long(0, 0); + var tmp34_local29 = 0; + var tmp35_local30 = 0; + var tmp36_local31 = 0; + var tmp37_local32 = null; + var tmp38_local33 = null; + var tmp39_local34 = null; + var tmp40_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp40_input.decodeSequentially_xlblqy_k$()) { + tmp5_local0 = tmp40_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp6_local1 = tmp40_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp7_local2 = tmp40_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp8_local3 = tmp40_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp9_local4 = tmp40_input.decodeLongElement_994anb_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp10_local5 = tmp40_input.decodeLongElement_994anb_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp11_local6 = tmp40_input.decodeLongElement_994anb_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp12_local7 = tmp40_input.decodeLongElement_994anb_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp13_local8 = tmp40_input.decodeLongElement_994anb_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp14_local9 = tmp40_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp15_local10 = tmp40_input.decodeStringElement_3oenpg_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp16_local11 = tmp40_input.decodeStringElement_3oenpg_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + tmp17_local12 = tmp40_input.decodeStringElement_3oenpg_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + tmp18_local13 = tmp40_input.decodeStringElement_3oenpg_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + tmp19_local14 = tmp40_input.decodeStringElement_3oenpg_k$(tmp0_desc, 14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + tmp20_local15 = tmp40_input.decodeStringElement_3oenpg_k$(tmp0_desc, 15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + tmp21_local16 = tmp40_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 16); + tmp3_bitMask0 = tmp3_bitMask0 | 65536; + tmp22_local17 = tmp40_input.decodeStringElement_3oenpg_k$(tmp0_desc, 17); + tmp3_bitMask0 = tmp3_bitMask0 | 131072; + tmp23_local18 = tmp40_input.decodeLongElement_994anb_k$(tmp0_desc, 18); + tmp3_bitMask0 = tmp3_bitMask0 | 262144; + tmp24_local19 = tmp40_input.decodeLongElement_994anb_k$(tmp0_desc, 19); + tmp3_bitMask0 = tmp3_bitMask0 | 524288; + tmp25_local20 = tmp40_input.decodeStringElement_3oenpg_k$(tmp0_desc, 20); + tmp3_bitMask0 = tmp3_bitMask0 | 1048576; + tmp26_local21 = tmp40_input.decodeIntElement_941u6a_k$(tmp0_desc, 21); + tmp3_bitMask0 = tmp3_bitMask0 | 2097152; + tmp27_local22 = tmp40_input.decodeStringElement_3oenpg_k$(tmp0_desc, 22); + tmp3_bitMask0 = tmp3_bitMask0 | 4194304; + tmp28_local23 = tmp40_input.decodeStringElement_3oenpg_k$(tmp0_desc, 23); + tmp3_bitMask0 = tmp3_bitMask0 | 8388608; + tmp29_local24 = tmp40_input.decodeLongElement_994anb_k$(tmp0_desc, 24); + tmp3_bitMask0 = tmp3_bitMask0 | 16777216; + tmp30_local25 = tmp40_input.decodeLongElement_994anb_k$(tmp0_desc, 25); + tmp3_bitMask0 = tmp3_bitMask0 | 33554432; + tmp31_local26 = tmp40_input.decodeLongElement_994anb_k$(tmp0_desc, 26); + tmp3_bitMask0 = tmp3_bitMask0 | 67108864; + tmp32_local27 = tmp40_input.decodeLongElement_994anb_k$(tmp0_desc, 27); + tmp3_bitMask0 = tmp3_bitMask0 | 134217728; + tmp33_local28 = tmp40_input.decodeLongElement_994anb_k$(tmp0_desc, 28); + tmp3_bitMask0 = tmp3_bitMask0 | 268435456; + tmp34_local29 = tmp40_input.decodeIntElement_941u6a_k$(tmp0_desc, 29); + tmp3_bitMask0 = tmp3_bitMask0 | 536870912; + tmp35_local30 = tmp40_input.decodeIntElement_941u6a_k$(tmp0_desc, 30); + tmp3_bitMask0 = tmp3_bitMask0 | 1073741824; + tmp36_local31 = tmp40_input.decodeIntElement_941u6a_k$(tmp0_desc, 31); + tmp3_bitMask0 = tmp3_bitMask0 | -2147483648; + tmp37_local32 = tmp40_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 32, $serializer_getInstance_1346(), tmp37_local32); + tmp4_bitMask1 = tmp4_bitMask1 | 1; + tmp38_local33 = tmp40_input.decodeStringElement_3oenpg_k$(tmp0_desc, 33); + tmp4_bitMask1 = tmp4_bitMask1 | 2; + tmp39_local34 = tmp40_input.decodeStringElement_3oenpg_k$(tmp0_desc, 34); + tmp4_bitMask1 = tmp4_bitMask1 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp40_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp5_local0 = tmp40_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp6_local1 = tmp40_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp7_local2 = tmp40_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp8_local3 = tmp40_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp9_local4 = tmp40_input.decodeLongElement_994anb_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp10_local5 = tmp40_input.decodeLongElement_994anb_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp11_local6 = tmp40_input.decodeLongElement_994anb_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp12_local7 = tmp40_input.decodeLongElement_994anb_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp13_local8 = tmp40_input.decodeLongElement_994anb_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp14_local9 = tmp40_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp15_local10 = tmp40_input.decodeStringElement_3oenpg_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp16_local11 = tmp40_input.decodeStringElement_3oenpg_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + case 12: + tmp17_local12 = tmp40_input.decodeStringElement_3oenpg_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + break; + case 13: + tmp18_local13 = tmp40_input.decodeStringElement_3oenpg_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + break; + case 14: + tmp19_local14 = tmp40_input.decodeStringElement_3oenpg_k$(tmp0_desc, 14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + break; + case 15: + tmp20_local15 = tmp40_input.decodeStringElement_3oenpg_k$(tmp0_desc, 15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + break; + case 16: + tmp21_local16 = tmp40_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 16); + tmp3_bitMask0 = tmp3_bitMask0 | 65536; + break; + case 17: + tmp22_local17 = tmp40_input.decodeStringElement_3oenpg_k$(tmp0_desc, 17); + tmp3_bitMask0 = tmp3_bitMask0 | 131072; + break; + case 18: + tmp23_local18 = tmp40_input.decodeLongElement_994anb_k$(tmp0_desc, 18); + tmp3_bitMask0 = tmp3_bitMask0 | 262144; + break; + case 19: + tmp24_local19 = tmp40_input.decodeLongElement_994anb_k$(tmp0_desc, 19); + tmp3_bitMask0 = tmp3_bitMask0 | 524288; + break; + case 20: + tmp25_local20 = tmp40_input.decodeStringElement_3oenpg_k$(tmp0_desc, 20); + tmp3_bitMask0 = tmp3_bitMask0 | 1048576; + break; + case 21: + tmp26_local21 = tmp40_input.decodeIntElement_941u6a_k$(tmp0_desc, 21); + tmp3_bitMask0 = tmp3_bitMask0 | 2097152; + break; + case 22: + tmp27_local22 = tmp40_input.decodeStringElement_3oenpg_k$(tmp0_desc, 22); + tmp3_bitMask0 = tmp3_bitMask0 | 4194304; + break; + case 23: + tmp28_local23 = tmp40_input.decodeStringElement_3oenpg_k$(tmp0_desc, 23); + tmp3_bitMask0 = tmp3_bitMask0 | 8388608; + break; + case 24: + tmp29_local24 = tmp40_input.decodeLongElement_994anb_k$(tmp0_desc, 24); + tmp3_bitMask0 = tmp3_bitMask0 | 16777216; + break; + case 25: + tmp30_local25 = tmp40_input.decodeLongElement_994anb_k$(tmp0_desc, 25); + tmp3_bitMask0 = tmp3_bitMask0 | 33554432; + break; + case 26: + tmp31_local26 = tmp40_input.decodeLongElement_994anb_k$(tmp0_desc, 26); + tmp3_bitMask0 = tmp3_bitMask0 | 67108864; + break; + case 27: + tmp32_local27 = tmp40_input.decodeLongElement_994anb_k$(tmp0_desc, 27); + tmp3_bitMask0 = tmp3_bitMask0 | 134217728; + break; + case 28: + tmp33_local28 = tmp40_input.decodeLongElement_994anb_k$(tmp0_desc, 28); + tmp3_bitMask0 = tmp3_bitMask0 | 268435456; + break; + case 29: + tmp34_local29 = tmp40_input.decodeIntElement_941u6a_k$(tmp0_desc, 29); + tmp3_bitMask0 = tmp3_bitMask0 | 536870912; + break; + case 30: + tmp35_local30 = tmp40_input.decodeIntElement_941u6a_k$(tmp0_desc, 30); + tmp3_bitMask0 = tmp3_bitMask0 | 1073741824; + break; + case 31: + tmp36_local31 = tmp40_input.decodeIntElement_941u6a_k$(tmp0_desc, 31); + tmp3_bitMask0 = tmp3_bitMask0 | -2147483648; + break; + case 32: + tmp37_local32 = tmp40_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 32, $serializer_getInstance_1346(), tmp37_local32); + tmp4_bitMask1 = tmp4_bitMask1 | 1; + break; + case 33: + tmp38_local33 = tmp40_input.decodeStringElement_3oenpg_k$(tmp0_desc, 33); + tmp4_bitMask1 = tmp4_bitMask1 | 2; + break; + case 34: + tmp39_local34 = tmp40_input.decodeStringElement_3oenpg_k$(tmp0_desc, 34); + tmp4_bitMask1 = tmp4_bitMask1 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp40_input.endStructure_1xqz0n_k$(tmp0_desc); + return KMember.new_com_bapis_bilibili_main_community_reply_v1_KMember_1dzix4_k$(tmp3_bitMask0, tmp4_bitMask1, tmp5_local0, tmp6_local1, tmp7_local2, tmp8_local3, tmp9_local4, tmp10_local5, tmp11_local6, tmp12_local7, tmp13_local8, tmp14_local9, tmp15_local10, tmp16_local11, tmp17_local12, tmp18_local13, tmp19_local14, tmp20_local15, tmp21_local16, tmp22_local17, tmp23_local18, tmp24_local19, tmp25_local20, tmp26_local21, tmp27_local22, tmp28_local23, tmp29_local24, tmp30_local25, tmp31_local26, tmp32_local27, tmp33_local28, tmp34_local29, tmp35_local30, tmp36_local31, tmp37_local32, tmp38_local33, tmp39_local34, null); + } + serialize_7pjkpg_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.mid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.mid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.name === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.name); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.sex === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.sex); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.face === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.face); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !value.level.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 4, value.level); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !value.officialVerifyType.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 5, value.officialVerifyType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !value.vipType.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 6, value.vipType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !value.vipStatus.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 7, value.vipStatus); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !value.vipThemeType.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 8, value.vipThemeType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.vipLabelPath === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 9, value.vipLabelPath); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.garbPendantImage === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 10, value.garbPendantImage); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.garbCardImage === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 11, value.garbCardImage); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !(value.garbCardImageWithFocus === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 12, value.garbCardImageWithFocus); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 13) ? true : !(value.garbCardJumpUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 13, value.garbCardJumpUrl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 14) ? true : !(value.garbCardNumber === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 14, value.garbCardNumber); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 15) ? true : !(value.garbCardFanColor === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 15, value.garbCardFanColor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 16) ? true : !(value.garbCardIsFan === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 16, value.garbCardIsFan); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 17) ? true : !(value.fansMedalName === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 17, value.fansMedalName); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 18) ? true : !value.fansMedalLevel.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 18, value.fansMedalLevel); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 19) ? true : !value.fansMedalColor.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 19, value.fansMedalColor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 20) ? true : !(value.vipNicknameColor === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 20, value.vipNicknameColor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 21) ? true : !(value.vipAvatarSubscript === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 21, value.vipAvatarSubscript); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 22) ? true : !(value.vipLabelText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 22, value.vipLabelText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 23) ? true : !(value.vipLabelTheme === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 23, value.vipLabelTheme); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 24) ? true : !value.fansMedalColorEnd.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 24, value.fansMedalColorEnd); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 25) ? true : !value.fansMedalColorBorder.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 25, value.fansMedalColorBorder); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 26) ? true : !value.fansMedalColorName.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 26, value.fansMedalColorName); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 27) ? true : !value.fansMedalColorLevel.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 27, value.fansMedalColorLevel); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 28) ? true : !value.fansGuardLevel.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 28, value.fansGuardLevel); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 29) ? true : !(value.faceNft === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 29, value.faceNft); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 30) ? true : !(value.faceNftNew === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 30, value.faceNftNew); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 31) ? true : !(value.isSeniorMember === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 31, value.isSeniorMember); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 32) ? true : !(value.nftInteraction == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 32, $serializer_getInstance_1346(), value.nftInteraction); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 33) ? true : !(value.fansGuardIcon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 33, value.fansGuardIcon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 34) ? true : !(value.fansHonorIcon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 34, value.fansHonorIcon); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_7pjkpg_k$(encoder, value instanceof KMember ? value : THROW_CCE()); + } + } + class KMember { + constructor(mid, name, sex, face, level, officialVerifyType, vipType, vipStatus, vipThemeType, vipLabelPath, garbPendantImage, garbCardImage, garbCardImageWithFocus, garbCardJumpUrl, garbCardNumber, garbCardFanColor, garbCardIsFan, fansMedalName, fansMedalLevel, fansMedalColor, vipNicknameColor, vipAvatarSubscript, vipLabelText, vipLabelTheme, fansMedalColorEnd, fansMedalColorBorder, fansMedalColorName, fansMedalColorLevel, fansGuardLevel, faceNft, faceNftNew, isSeniorMember, nftInteraction, fansGuardIcon, fansHonorIcon) { + Companion_instance_1360; + mid = mid === VOID ? new Long(0, 0) : mid; + name = name === VOID ? '' : name; + sex = sex === VOID ? '' : sex; + face = face === VOID ? '' : face; + level = level === VOID ? new Long(0, 0) : level; + officialVerifyType = officialVerifyType === VOID ? new Long(0, 0) : officialVerifyType; + vipType = vipType === VOID ? new Long(0, 0) : vipType; + vipStatus = vipStatus === VOID ? new Long(0, 0) : vipStatus; + vipThemeType = vipThemeType === VOID ? new Long(0, 0) : vipThemeType; + vipLabelPath = vipLabelPath === VOID ? '' : vipLabelPath; + garbPendantImage = garbPendantImage === VOID ? '' : garbPendantImage; + garbCardImage = garbCardImage === VOID ? '' : garbCardImage; + garbCardImageWithFocus = garbCardImageWithFocus === VOID ? '' : garbCardImageWithFocus; + garbCardJumpUrl = garbCardJumpUrl === VOID ? '' : garbCardJumpUrl; + garbCardNumber = garbCardNumber === VOID ? '' : garbCardNumber; + garbCardFanColor = garbCardFanColor === VOID ? '' : garbCardFanColor; + garbCardIsFan = garbCardIsFan === VOID ? false : garbCardIsFan; + fansMedalName = fansMedalName === VOID ? '' : fansMedalName; + fansMedalLevel = fansMedalLevel === VOID ? new Long(0, 0) : fansMedalLevel; + fansMedalColor = fansMedalColor === VOID ? new Long(0, 0) : fansMedalColor; + vipNicknameColor = vipNicknameColor === VOID ? '' : vipNicknameColor; + vipAvatarSubscript = vipAvatarSubscript === VOID ? 0 : vipAvatarSubscript; + vipLabelText = vipLabelText === VOID ? '' : vipLabelText; + vipLabelTheme = vipLabelTheme === VOID ? '' : vipLabelTheme; + fansMedalColorEnd = fansMedalColorEnd === VOID ? new Long(0, 0) : fansMedalColorEnd; + fansMedalColorBorder = fansMedalColorBorder === VOID ? new Long(0, 0) : fansMedalColorBorder; + fansMedalColorName = fansMedalColorName === VOID ? new Long(0, 0) : fansMedalColorName; + fansMedalColorLevel = fansMedalColorLevel === VOID ? new Long(0, 0) : fansMedalColorLevel; + fansGuardLevel = fansGuardLevel === VOID ? new Long(0, 0) : fansGuardLevel; + faceNft = faceNft === VOID ? 0 : faceNft; + faceNftNew = faceNftNew === VOID ? 0 : faceNftNew; + isSeniorMember = isSeniorMember === VOID ? 0 : isSeniorMember; + nftInteraction = nftInteraction === VOID ? null : nftInteraction; + fansGuardIcon = fansGuardIcon === VOID ? '' : fansGuardIcon; + fansHonorIcon = fansHonorIcon === VOID ? '' : fansHonorIcon; + this.mid = mid; + this.name = name; + this.sex = sex; + this.face = face; + this.level = level; + this.officialVerifyType = officialVerifyType; + this.vipType = vipType; + this.vipStatus = vipStatus; + this.vipThemeType = vipThemeType; + this.vipLabelPath = vipLabelPath; + this.garbPendantImage = garbPendantImage; + this.garbCardImage = garbCardImage; + this.garbCardImageWithFocus = garbCardImageWithFocus; + this.garbCardJumpUrl = garbCardJumpUrl; + this.garbCardNumber = garbCardNumber; + this.garbCardFanColor = garbCardFanColor; + this.garbCardIsFan = garbCardIsFan; + this.fansMedalName = fansMedalName; + this.fansMedalLevel = fansMedalLevel; + this.fansMedalColor = fansMedalColor; + this.vipNicknameColor = vipNicknameColor; + this.vipAvatarSubscript = vipAvatarSubscript; + this.vipLabelText = vipLabelText; + this.vipLabelTheme = vipLabelTheme; + this.fansMedalColorEnd = fansMedalColorEnd; + this.fansMedalColorBorder = fansMedalColorBorder; + this.fansMedalColorName = fansMedalColorName; + this.fansMedalColorLevel = fansMedalColorLevel; + this.fansGuardLevel = fansGuardLevel; + this.faceNft = faceNft; + this.faceNftNew = faceNftNew; + this.isSeniorMember = isSeniorMember; + this.nftInteraction = nftInteraction; + this.fansGuardIcon = fansGuardIcon; + this.fansHonorIcon = fansHonorIcon; + } + get_mid_18j0o1_k$() { + return this.mid; + } + get_name_woqyms_k$() { + return this.name; + } + get_sex_18iwar_k$() { + return this.sex; + } + get_face_woluhy_k$() { + return this.face; + } + get_level_ium7h7_k$() { + return this.level; + } + get_officialVerifyType_s7q4ex_k$() { + return this.officialVerifyType; + } + get_vipType_8xfk7i_k$() { + return this.vipType; + } + get_vipStatus_eu9yyi_k$() { + return this.vipStatus; + } + get_vipThemeType_1unxhr_k$() { + return this.vipThemeType; + } + get_vipLabelPath_8hlixn_k$() { + return this.vipLabelPath; + } + get_garbPendantImage_3z5qpa_k$() { + return this.garbPendantImage; + } + get_garbCardImage_65yu1k_k$() { + return this.garbCardImage; + } + get_garbCardImageWithFocus_esq1om_k$() { + return this.garbCardImageWithFocus; + } + get_garbCardJumpUrl_mn2c2q_k$() { + return this.garbCardJumpUrl; + } + get_garbCardNumber_jgi9n8_k$() { + return this.garbCardNumber; + } + get_garbCardFanColor_pl49mb_k$() { + return this.garbCardFanColor; + } + get_garbCardIsFan_6623t2_k$() { + return this.garbCardIsFan; + } + get_fansMedalName_v929rb_k$() { + return this.fansMedalName; + } + get_fansMedalLevel_pllinq_k$() { + return this.fansMedalLevel; + } + get_fansMedalColor_pgtk0l_k$() { + return this.fansMedalColor; + } + get_vipNicknameColor_fmtgov_k$() { + return this.vipNicknameColor; + } + get_vipAvatarSubscript_n19hsu_k$() { + return this.vipAvatarSubscript; + } + get_vipLabelText_8hivwz_k$() { + return this.vipLabelText; + } + get_vipLabelTheme_l189ah_k$() { + return this.vipLabelTheme; + } + get_fansMedalColorEnd_dqeebq_k$() { + return this.fansMedalColorEnd; + } + get_fansMedalColorBorder_9qd7fj_k$() { + return this.fansMedalColorBorder; + } + get_fansMedalColorName_g4i80_k$() { + return this.fansMedalColorName; + } + get_fansMedalColorLevel_dwwjdd_k$() { + return this.fansMedalColorLevel; + } + get_fansGuardLevel_a7rm4o_k$() { + return this.fansGuardLevel; + } + get_faceNft_gst5my_k$() { + return this.faceNft; + } + get_faceNftNew_d87rsm_k$() { + return this.faceNftNew; + } + get_isSeniorMember_st26nx_k$() { + return this.isSeniorMember; + } + get_nftInteraction_a3yhq9_k$() { + return this.nftInteraction; + } + get_fansGuardIcon_4ws81h_k$() { + return this.fansGuardIcon; + } + get_fansHonorIcon_8bcp3a_k$() { + return this.fansHonorIcon; + } + component1_7eebsc_k$() { + return this.mid; + } + component2_7eebsb_k$() { + return this.name; + } + component3_7eebsa_k$() { + return this.sex; + } + component4_7eebs9_k$() { + return this.face; + } + component5_7eebs8_k$() { + return this.level; + } + component6_7eebs7_k$() { + return this.officialVerifyType; + } + component7_7eebs6_k$() { + return this.vipType; + } + component8_7eebs5_k$() { + return this.vipStatus; + } + component9_7eebs4_k$() { + return this.vipThemeType; + } + component10_gazzfo_k$() { + return this.vipLabelPath; + } + component11_gazzfn_k$() { + return this.garbPendantImage; + } + component12_gazzfm_k$() { + return this.garbCardImage; + } + component13_gazzfl_k$() { + return this.garbCardImageWithFocus; + } + component14_gazzfk_k$() { + return this.garbCardJumpUrl; + } + component15_gazzfj_k$() { + return this.garbCardNumber; + } + component16_gazzfi_k$() { + return this.garbCardFanColor; + } + component17_gazzfh_k$() { + return this.garbCardIsFan; + } + component18_gazzfg_k$() { + return this.fansMedalName; + } + component19_gazzff_k$() { + return this.fansMedalLevel; + } + component20_gazzet_k$() { + return this.fansMedalColor; + } + component21_gazzes_k$() { + return this.vipNicknameColor; + } + component22_gazzer_k$() { + return this.vipAvatarSubscript; + } + component23_gazzeq_k$() { + return this.vipLabelText; + } + component24_gazzep_k$() { + return this.vipLabelTheme; + } + component25_gazzeo_k$() { + return this.fansMedalColorEnd; + } + component26_gazzen_k$() { + return this.fansMedalColorBorder; + } + component27_gazzem_k$() { + return this.fansMedalColorName; + } + component28_gazzel_k$() { + return this.fansMedalColorLevel; + } + component29_gazzek_k$() { + return this.fansGuardLevel; + } + component30_gazzdy_k$() { + return this.faceNft; + } + component31_gazzdx_k$() { + return this.faceNftNew; + } + component32_gazzdw_k$() { + return this.isSeniorMember; + } + component33_gazzdv_k$() { + return this.nftInteraction; + } + component34_gazzdu_k$() { + return this.fansGuardIcon; + } + component35_gazzdt_k$() { + return this.fansHonorIcon; + } + copy_ikj2hf_k$(mid, name, sex, face, level, officialVerifyType, vipType, vipStatus, vipThemeType, vipLabelPath, garbPendantImage, garbCardImage, garbCardImageWithFocus, garbCardJumpUrl, garbCardNumber, garbCardFanColor, garbCardIsFan, fansMedalName, fansMedalLevel, fansMedalColor, vipNicknameColor, vipAvatarSubscript, vipLabelText, vipLabelTheme, fansMedalColorEnd, fansMedalColorBorder, fansMedalColorName, fansMedalColorLevel, fansGuardLevel, faceNft, faceNftNew, isSeniorMember, nftInteraction, fansGuardIcon, fansHonorIcon) { + return new KMember(mid, name, sex, face, level, officialVerifyType, vipType, vipStatus, vipThemeType, vipLabelPath, garbPendantImage, garbCardImage, garbCardImageWithFocus, garbCardJumpUrl, garbCardNumber, garbCardFanColor, garbCardIsFan, fansMedalName, fansMedalLevel, fansMedalColor, vipNicknameColor, vipAvatarSubscript, vipLabelText, vipLabelTheme, fansMedalColorEnd, fansMedalColorBorder, fansMedalColorName, fansMedalColorLevel, fansGuardLevel, faceNft, faceNftNew, isSeniorMember, nftInteraction, fansGuardIcon, fansHonorIcon); + } + copy(mid, name, sex, face, level, officialVerifyType, vipType, vipStatus, vipThemeType, vipLabelPath, garbPendantImage, garbCardImage, garbCardImageWithFocus, garbCardJumpUrl, garbCardNumber, garbCardFanColor, garbCardIsFan, fansMedalName, fansMedalLevel, fansMedalColor, vipNicknameColor, vipAvatarSubscript, vipLabelText, vipLabelTheme, fansMedalColorEnd, fansMedalColorBorder, fansMedalColorName, fansMedalColorLevel, fansGuardLevel, faceNft, faceNftNew, isSeniorMember, nftInteraction, fansGuardIcon, fansHonorIcon, $super) { + mid = mid === VOID ? this.mid : mid; + name = name === VOID ? this.name : name; + sex = sex === VOID ? this.sex : sex; + face = face === VOID ? this.face : face; + level = level === VOID ? this.level : level; + officialVerifyType = officialVerifyType === VOID ? this.officialVerifyType : officialVerifyType; + vipType = vipType === VOID ? this.vipType : vipType; + vipStatus = vipStatus === VOID ? this.vipStatus : vipStatus; + vipThemeType = vipThemeType === VOID ? this.vipThemeType : vipThemeType; + vipLabelPath = vipLabelPath === VOID ? this.vipLabelPath : vipLabelPath; + garbPendantImage = garbPendantImage === VOID ? this.garbPendantImage : garbPendantImage; + garbCardImage = garbCardImage === VOID ? this.garbCardImage : garbCardImage; + garbCardImageWithFocus = garbCardImageWithFocus === VOID ? this.garbCardImageWithFocus : garbCardImageWithFocus; + garbCardJumpUrl = garbCardJumpUrl === VOID ? this.garbCardJumpUrl : garbCardJumpUrl; + garbCardNumber = garbCardNumber === VOID ? this.garbCardNumber : garbCardNumber; + garbCardFanColor = garbCardFanColor === VOID ? this.garbCardFanColor : garbCardFanColor; + garbCardIsFan = garbCardIsFan === VOID ? this.garbCardIsFan : garbCardIsFan; + fansMedalName = fansMedalName === VOID ? this.fansMedalName : fansMedalName; + fansMedalLevel = fansMedalLevel === VOID ? this.fansMedalLevel : fansMedalLevel; + fansMedalColor = fansMedalColor === VOID ? this.fansMedalColor : fansMedalColor; + vipNicknameColor = vipNicknameColor === VOID ? this.vipNicknameColor : vipNicknameColor; + vipAvatarSubscript = vipAvatarSubscript === VOID ? this.vipAvatarSubscript : vipAvatarSubscript; + vipLabelText = vipLabelText === VOID ? this.vipLabelText : vipLabelText; + vipLabelTheme = vipLabelTheme === VOID ? this.vipLabelTheme : vipLabelTheme; + fansMedalColorEnd = fansMedalColorEnd === VOID ? this.fansMedalColorEnd : fansMedalColorEnd; + fansMedalColorBorder = fansMedalColorBorder === VOID ? this.fansMedalColorBorder : fansMedalColorBorder; + fansMedalColorName = fansMedalColorName === VOID ? this.fansMedalColorName : fansMedalColorName; + fansMedalColorLevel = fansMedalColorLevel === VOID ? this.fansMedalColorLevel : fansMedalColorLevel; + fansGuardLevel = fansGuardLevel === VOID ? this.fansGuardLevel : fansGuardLevel; + faceNft = faceNft === VOID ? this.faceNft : faceNft; + faceNftNew = faceNftNew === VOID ? this.faceNftNew : faceNftNew; + isSeniorMember = isSeniorMember === VOID ? this.isSeniorMember : isSeniorMember; + nftInteraction = nftInteraction === VOID ? this.nftInteraction : nftInteraction; + fansGuardIcon = fansGuardIcon === VOID ? this.fansGuardIcon : fansGuardIcon; + fansHonorIcon = fansHonorIcon === VOID ? this.fansHonorIcon : fansHonorIcon; + return this.copy_ikj2hf_k$(mid, name, sex, face, level, officialVerifyType, vipType, vipStatus, vipThemeType, vipLabelPath, garbPendantImage, garbCardImage, garbCardImageWithFocus, garbCardJumpUrl, garbCardNumber, garbCardFanColor, garbCardIsFan, fansMedalName, fansMedalLevel, fansMedalColor, vipNicknameColor, vipAvatarSubscript, vipLabelText, vipLabelTheme, fansMedalColorEnd, fansMedalColorBorder, fansMedalColorName, fansMedalColorLevel, fansGuardLevel, faceNft, faceNftNew, isSeniorMember, nftInteraction, fansGuardIcon, fansHonorIcon); + } + toString() { + return 'KMember(mid=' + this.mid.toString() + ', name=' + this.name + ', sex=' + this.sex + ', face=' + this.face + ', level=' + this.level.toString() + ', officialVerifyType=' + this.officialVerifyType.toString() + ', vipType=' + this.vipType.toString() + ', vipStatus=' + this.vipStatus.toString() + ', vipThemeType=' + this.vipThemeType.toString() + ', vipLabelPath=' + this.vipLabelPath + ', garbPendantImage=' + this.garbPendantImage + ', garbCardImage=' + this.garbCardImage + ', garbCardImageWithFocus=' + this.garbCardImageWithFocus + ', garbCardJumpUrl=' + this.garbCardJumpUrl + ', garbCardNumber=' + this.garbCardNumber + ', garbCardFanColor=' + this.garbCardFanColor + ', garbCardIsFan=' + this.garbCardIsFan + ', fansMedalName=' + this.fansMedalName + ', fansMedalLevel=' + this.fansMedalLevel.toString() + ', fansMedalColor=' + this.fansMedalColor.toString() + ', vipNicknameColor=' + this.vipNicknameColor + ', vipAvatarSubscript=' + this.vipAvatarSubscript + ', vipLabelText=' + this.vipLabelText + ', vipLabelTheme=' + this.vipLabelTheme + ', fansMedalColorEnd=' + this.fansMedalColorEnd.toString() + ', fansMedalColorBorder=' + this.fansMedalColorBorder.toString() + ', fansMedalColorName=' + this.fansMedalColorName.toString() + ', fansMedalColorLevel=' + this.fansMedalColorLevel.toString() + ', fansGuardLevel=' + this.fansGuardLevel.toString() + ', faceNft=' + this.faceNft + ', faceNftNew=' + this.faceNftNew + ', isSeniorMember=' + this.isSeniorMember + ', nftInteraction=' + this.nftInteraction + ', fansGuardIcon=' + this.fansGuardIcon + ', fansHonorIcon=' + this.fansHonorIcon + ')'; + } + hashCode() { + var result = this.mid.hashCode(); + result = imul(result, 31) + getStringHashCode(this.name) | 0; + result = imul(result, 31) + getStringHashCode(this.sex) | 0; + result = imul(result, 31) + getStringHashCode(this.face) | 0; + result = imul(result, 31) + this.level.hashCode() | 0; + result = imul(result, 31) + this.officialVerifyType.hashCode() | 0; + result = imul(result, 31) + this.vipType.hashCode() | 0; + result = imul(result, 31) + this.vipStatus.hashCode() | 0; + result = imul(result, 31) + this.vipThemeType.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.vipLabelPath) | 0; + result = imul(result, 31) + getStringHashCode(this.garbPendantImage) | 0; + result = imul(result, 31) + getStringHashCode(this.garbCardImage) | 0; + result = imul(result, 31) + getStringHashCode(this.garbCardImageWithFocus) | 0; + result = imul(result, 31) + getStringHashCode(this.garbCardJumpUrl) | 0; + result = imul(result, 31) + getStringHashCode(this.garbCardNumber) | 0; + result = imul(result, 31) + getStringHashCode(this.garbCardFanColor) | 0; + result = imul(result, 31) + getBooleanHashCode(this.garbCardIsFan) | 0; + result = imul(result, 31) + getStringHashCode(this.fansMedalName) | 0; + result = imul(result, 31) + this.fansMedalLevel.hashCode() | 0; + result = imul(result, 31) + this.fansMedalColor.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.vipNicknameColor) | 0; + result = imul(result, 31) + this.vipAvatarSubscript | 0; + result = imul(result, 31) + getStringHashCode(this.vipLabelText) | 0; + result = imul(result, 31) + getStringHashCode(this.vipLabelTheme) | 0; + result = imul(result, 31) + this.fansMedalColorEnd.hashCode() | 0; + result = imul(result, 31) + this.fansMedalColorBorder.hashCode() | 0; + result = imul(result, 31) + this.fansMedalColorName.hashCode() | 0; + result = imul(result, 31) + this.fansMedalColorLevel.hashCode() | 0; + result = imul(result, 31) + this.fansGuardLevel.hashCode() | 0; + result = imul(result, 31) + this.faceNft | 0; + result = imul(result, 31) + this.faceNftNew | 0; + result = imul(result, 31) + this.isSeniorMember | 0; + result = imul(result, 31) + (this.nftInteraction == null ? 0 : this.nftInteraction.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.fansGuardIcon) | 0; + result = imul(result, 31) + getStringHashCode(this.fansHonorIcon) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KMember)) + return false; + var tmp0_other_with_cast = other instanceof KMember ? other : THROW_CCE(); + if (!this.mid.equals(tmp0_other_with_cast.mid)) + return false; + if (!(this.name === tmp0_other_with_cast.name)) + return false; + if (!(this.sex === tmp0_other_with_cast.sex)) + return false; + if (!(this.face === tmp0_other_with_cast.face)) + return false; + if (!this.level.equals(tmp0_other_with_cast.level)) + return false; + if (!this.officialVerifyType.equals(tmp0_other_with_cast.officialVerifyType)) + return false; + if (!this.vipType.equals(tmp0_other_with_cast.vipType)) + return false; + if (!this.vipStatus.equals(tmp0_other_with_cast.vipStatus)) + return false; + if (!this.vipThemeType.equals(tmp0_other_with_cast.vipThemeType)) + return false; + if (!(this.vipLabelPath === tmp0_other_with_cast.vipLabelPath)) + return false; + if (!(this.garbPendantImage === tmp0_other_with_cast.garbPendantImage)) + return false; + if (!(this.garbCardImage === tmp0_other_with_cast.garbCardImage)) + return false; + if (!(this.garbCardImageWithFocus === tmp0_other_with_cast.garbCardImageWithFocus)) + return false; + if (!(this.garbCardJumpUrl === tmp0_other_with_cast.garbCardJumpUrl)) + return false; + if (!(this.garbCardNumber === tmp0_other_with_cast.garbCardNumber)) + return false; + if (!(this.garbCardFanColor === tmp0_other_with_cast.garbCardFanColor)) + return false; + if (!(this.garbCardIsFan === tmp0_other_with_cast.garbCardIsFan)) + return false; + if (!(this.fansMedalName === tmp0_other_with_cast.fansMedalName)) + return false; + if (!this.fansMedalLevel.equals(tmp0_other_with_cast.fansMedalLevel)) + return false; + if (!this.fansMedalColor.equals(tmp0_other_with_cast.fansMedalColor)) + return false; + if (!(this.vipNicknameColor === tmp0_other_with_cast.vipNicknameColor)) + return false; + if (!(this.vipAvatarSubscript === tmp0_other_with_cast.vipAvatarSubscript)) + return false; + if (!(this.vipLabelText === tmp0_other_with_cast.vipLabelText)) + return false; + if (!(this.vipLabelTheme === tmp0_other_with_cast.vipLabelTheme)) + return false; + if (!this.fansMedalColorEnd.equals(tmp0_other_with_cast.fansMedalColorEnd)) + return false; + if (!this.fansMedalColorBorder.equals(tmp0_other_with_cast.fansMedalColorBorder)) + return false; + if (!this.fansMedalColorName.equals(tmp0_other_with_cast.fansMedalColorName)) + return false; + if (!this.fansMedalColorLevel.equals(tmp0_other_with_cast.fansMedalColorLevel)) + return false; + if (!this.fansGuardLevel.equals(tmp0_other_with_cast.fansGuardLevel)) + return false; + if (!(this.faceNft === tmp0_other_with_cast.faceNft)) + return false; + if (!(this.faceNftNew === tmp0_other_with_cast.faceNftNew)) + return false; + if (!(this.isSeniorMember === tmp0_other_with_cast.isSeniorMember)) + return false; + if (!equals(this.nftInteraction, tmp0_other_with_cast.nftInteraction)) + return false; + if (!(this.fansGuardIcon === tmp0_other_with_cast.fansGuardIcon)) + return false; + if (!(this.fansHonorIcon === tmp0_other_with_cast.fansHonorIcon)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KMember_1dzix4_k$(seen1, seen2, mid, name, sex, face, level, officialVerifyType, vipType, vipStatus, vipThemeType, vipLabelPath, garbPendantImage, garbCardImage, garbCardImageWithFocus, garbCardJumpUrl, garbCardNumber, garbCardFanColor, garbCardIsFan, fansMedalName, fansMedalLevel, fansMedalColor, vipNicknameColor, vipAvatarSubscript, vipLabelText, vipLabelTheme, fansMedalColorEnd, fansMedalColorBorder, fansMedalColorName, fansMedalColorLevel, fansGuardLevel, faceNft, faceNftNew, isSeniorMember, nftInteraction, fansGuardIcon, fansHonorIcon, serializationConstructorMarker) { + Companion_instance_1360; + if (!!(!(0 === (0 & seen1)) | !(0 === (0 & seen2)))) { + var tmp$ret$0; + // Inline function 'kotlin.intArrayOf' call + var elements = new Int32Array([seen1, seen2]); + tmp$ret$0 = elements; + var tmp = tmp$ret$0; + var tmp$ret$1; + // Inline function 'kotlin.intArrayOf' call + var elements_0 = new Int32Array([0, 0]); + tmp$ret$1 = elements_0; + throwArrayMissingFieldException(tmp, tmp$ret$1, $serializer_getInstance_1347().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.mid = new Long(0, 0); + else + $this.mid = mid; + if (0 === (seen1 & 2)) + $this.name = ''; + else + $this.name = name; + if (0 === (seen1 & 4)) + $this.sex = ''; + else + $this.sex = sex; + if (0 === (seen1 & 8)) + $this.face = ''; + else + $this.face = face; + if (0 === (seen1 & 16)) + $this.level = new Long(0, 0); + else + $this.level = level; + if (0 === (seen1 & 32)) + $this.officialVerifyType = new Long(0, 0); + else + $this.officialVerifyType = officialVerifyType; + if (0 === (seen1 & 64)) + $this.vipType = new Long(0, 0); + else + $this.vipType = vipType; + if (0 === (seen1 & 128)) + $this.vipStatus = new Long(0, 0); + else + $this.vipStatus = vipStatus; + if (0 === (seen1 & 256)) + $this.vipThemeType = new Long(0, 0); + else + $this.vipThemeType = vipThemeType; + if (0 === (seen1 & 512)) + $this.vipLabelPath = ''; + else + $this.vipLabelPath = vipLabelPath; + if (0 === (seen1 & 1024)) + $this.garbPendantImage = ''; + else + $this.garbPendantImage = garbPendantImage; + if (0 === (seen1 & 2048)) + $this.garbCardImage = ''; + else + $this.garbCardImage = garbCardImage; + if (0 === (seen1 & 4096)) + $this.garbCardImageWithFocus = ''; + else + $this.garbCardImageWithFocus = garbCardImageWithFocus; + if (0 === (seen1 & 8192)) + $this.garbCardJumpUrl = ''; + else + $this.garbCardJumpUrl = garbCardJumpUrl; + if (0 === (seen1 & 16384)) + $this.garbCardNumber = ''; + else + $this.garbCardNumber = garbCardNumber; + if (0 === (seen1 & 32768)) + $this.garbCardFanColor = ''; + else + $this.garbCardFanColor = garbCardFanColor; + if (0 === (seen1 & 65536)) + $this.garbCardIsFan = false; + else + $this.garbCardIsFan = garbCardIsFan; + if (0 === (seen1 & 131072)) + $this.fansMedalName = ''; + else + $this.fansMedalName = fansMedalName; + if (0 === (seen1 & 262144)) + $this.fansMedalLevel = new Long(0, 0); + else + $this.fansMedalLevel = fansMedalLevel; + if (0 === (seen1 & 524288)) + $this.fansMedalColor = new Long(0, 0); + else + $this.fansMedalColor = fansMedalColor; + if (0 === (seen1 & 1048576)) + $this.vipNicknameColor = ''; + else + $this.vipNicknameColor = vipNicknameColor; + if (0 === (seen1 & 2097152)) + $this.vipAvatarSubscript = 0; + else + $this.vipAvatarSubscript = vipAvatarSubscript; + if (0 === (seen1 & 4194304)) + $this.vipLabelText = ''; + else + $this.vipLabelText = vipLabelText; + if (0 === (seen1 & 8388608)) + $this.vipLabelTheme = ''; + else + $this.vipLabelTheme = vipLabelTheme; + if (0 === (seen1 & 16777216)) + $this.fansMedalColorEnd = new Long(0, 0); + else + $this.fansMedalColorEnd = fansMedalColorEnd; + if (0 === (seen1 & 33554432)) + $this.fansMedalColorBorder = new Long(0, 0); + else + $this.fansMedalColorBorder = fansMedalColorBorder; + if (0 === (seen1 & 67108864)) + $this.fansMedalColorName = new Long(0, 0); + else + $this.fansMedalColorName = fansMedalColorName; + if (0 === (seen1 & 134217728)) + $this.fansMedalColorLevel = new Long(0, 0); + else + $this.fansMedalColorLevel = fansMedalColorLevel; + if (0 === (seen1 & 268435456)) + $this.fansGuardLevel = new Long(0, 0); + else + $this.fansGuardLevel = fansGuardLevel; + if (0 === (seen1 & 536870912)) + $this.faceNft = 0; + else + $this.faceNft = faceNft; + if (0 === (seen1 & 1073741824)) + $this.faceNftNew = 0; + else + $this.faceNftNew = faceNftNew; + if (0 === (seen1 & -2147483648)) + $this.isSeniorMember = 0; + else + $this.isSeniorMember = isSeniorMember; + if (0 === (seen2 & 1)) + $this.nftInteraction = null; + else + $this.nftInteraction = nftInteraction; + if (0 === (seen2 & 2)) + $this.fansGuardIcon = ''; + else + $this.fansGuardIcon = fansGuardIcon; + if (0 === (seen2 & 4)) + $this.fansHonorIcon = ''; + else + $this.fansHonorIcon = fansHonorIcon; + return $this; + } + } + class Companion_1361 { + constructor() { + this.targetPath = '/bilibili.main.community.reply.v1.SearchItemPreHookReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1348(); + } + } + class $serializer_1348 { + constructor() { + $serializer_instance_1348 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KSearchItemPreHookReq', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('oid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = new Long(0, 0); + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSearchItemPreHookReq.new_com_bapis_bilibili_main_community_reply_v1_KSearchItemPreHookReq_4d4mhv_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_giozet_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.oid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.oid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.type.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.type); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_giozet_k$(encoder, value instanceof KSearchItemPreHookReq ? value : THROW_CCE()); + } + } + class KSearchItemPreHookReq { + constructor(oid, type) { + Companion_instance_1361; + oid = oid === VOID ? new Long(0, 0) : oid; + type = type === VOID ? new Long(0, 0) : type; + this.oid = oid; + this.type = type; + } + get_oid_18iz6n_k$() { + return this.oid; + } + get_type_wovaf7_k$() { + return this.type; + } + component1_7eebsc_k$() { + return this.oid; + } + component2_7eebsb_k$() { + return this.type; + } + copy_bynm9d_k$(oid, type) { + return new KSearchItemPreHookReq(oid, type); + } + copy(oid, type, $super) { + oid = oid === VOID ? this.oid : oid; + type = type === VOID ? this.type : type; + return this.copy_bynm9d_k$(oid, type); + } + toString() { + return 'KSearchItemPreHookReq(oid=' + this.oid.toString() + ', type=' + this.type.toString() + ')'; + } + hashCode() { + var result = this.oid.hashCode(); + result = imul(result, 31) + this.type.hashCode() | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSearchItemPreHookReq)) + return false; + var tmp0_other_with_cast = other instanceof KSearchItemPreHookReq ? other : THROW_CCE(); + if (!this.oid.equals(tmp0_other_with_cast.oid)) + return false; + if (!this.type.equals(tmp0_other_with_cast.type)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KSearchItemPreHookReq_4d4mhv_k$(seen1, oid, type, serializationConstructorMarker) { + Companion_instance_1361; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1348().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.oid = new Long(0, 0); + else + $this.oid = oid; + if (0 === (seen1 & 2)) + $this.type = new Long(0, 0); + else + $this.type = type; + return $this; + } + } + class Companion_1362 { + constructor() { + Companion_instance_1362 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, new ArrayListSerializer(IntSerializer_getInstance())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.main.community.reply.v1.SearchItemPreHookReply'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1349(); + } + } + class $serializer_1349 { + constructor() { + $serializer_instance_1349 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KSearchItemPreHookReply', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('placeholderText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('backgroundText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('orderedType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_1362().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), tmp0_cached[2]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp8_cached = Companion_getInstance_1362().$childSerializers_1; + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp8_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp8_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSearchItemPreHookReply.new_com_bapis_bilibili_main_community_reply_v1_KSearchItemPreHookReply_ii8uuw_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_6kn90v_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_1362().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.placeholderText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.placeholderText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.backgroundText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.backgroundText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !equals(value.orderedType, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 2, tmp2_cached[2], value.orderedType); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_6kn90v_k$(encoder, value instanceof KSearchItemPreHookReply ? value : THROW_CCE()); + } + } + class KSearchItemPreHookReply { + constructor(placeholderText, backgroundText, orderedType) { + Companion_getInstance_1362(); + placeholderText = placeholderText === VOID ? '' : placeholderText; + backgroundText = backgroundText === VOID ? '' : backgroundText; + orderedType = orderedType === VOID ? emptyList() : orderedType; + this.placeholderText = placeholderText; + this.backgroundText = backgroundText; + this.orderedType = orderedType; + } + get_placeholderText_2cae21_k$() { + return this.placeholderText; + } + get_backgroundText_e292t8_k$() { + return this.backgroundText; + } + get_orderedType_lwm80y_k$() { + return this.orderedType; + } + component1_7eebsc_k$() { + return this.placeholderText; + } + component2_7eebsb_k$() { + return this.backgroundText; + } + component3_7eebsa_k$() { + return this.orderedType; + } + copy_obig0n_k$(placeholderText, backgroundText, orderedType) { + return new KSearchItemPreHookReply(placeholderText, backgroundText, orderedType); + } + copy(placeholderText, backgroundText, orderedType, $super) { + placeholderText = placeholderText === VOID ? this.placeholderText : placeholderText; + backgroundText = backgroundText === VOID ? this.backgroundText : backgroundText; + orderedType = orderedType === VOID ? this.orderedType : orderedType; + return this.copy_obig0n_k$(placeholderText, backgroundText, orderedType); + } + toString() { + return 'KSearchItemPreHookReply(placeholderText=' + this.placeholderText + ', backgroundText=' + this.backgroundText + ', orderedType=' + this.orderedType + ')'; + } + hashCode() { + var result = getStringHashCode(this.placeholderText); + result = imul(result, 31) + getStringHashCode(this.backgroundText) | 0; + result = imul(result, 31) + hashCode(this.orderedType) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSearchItemPreHookReply)) + return false; + var tmp0_other_with_cast = other instanceof KSearchItemPreHookReply ? other : THROW_CCE(); + if (!(this.placeholderText === tmp0_other_with_cast.placeholderText)) + return false; + if (!(this.backgroundText === tmp0_other_with_cast.backgroundText)) + return false; + if (!equals(this.orderedType, tmp0_other_with_cast.orderedType)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KSearchItemPreHookReply_ii8uuw_k$(seen1, placeholderText, backgroundText, orderedType, serializationConstructorMarker) { + Companion_getInstance_1362(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1349().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.placeholderText = ''; + else + $this.placeholderText = placeholderText; + if (0 === (seen1 & 2)) + $this.backgroundText = ''; + else + $this.backgroundText = backgroundText; + if (0 === (seen1 & 4)) + $this.orderedType = emptyList(); + else + $this.orderedType = orderedType; + return $this; + } + } + class Companion_1363 { + constructor() { + this.targetPath = '/bilibili.main.community.reply.v1.SearchItemReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1350(); + } + } + class $serializer_1350 { + constructor() { + $serializer_instance_1350 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KSearchItemReq', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('cursor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('oid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('keyword', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_1353()), LongSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = new Long(0, 0); + var tmp6_local2 = new Long(0, 0); + var tmp7_local3 = null; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_1353(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_1353(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSearchItemReq.new_com_bapis_bilibili_main_community_reply_v1_KSearchItemReq_z3g29d_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_4tf3t7_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.cursor == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_1353(), value.cursor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.oid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.oid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.type.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.type); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.keyword === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.keyword); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_4tf3t7_k$(encoder, value instanceof KSearchItemReq ? value : THROW_CCE()); + } + } + class KSearchItemReq { + constructor(cursor, oid, type, keyword) { + Companion_instance_1363; + cursor = cursor === VOID ? null : cursor; + oid = oid === VOID ? new Long(0, 0) : oid; + type = type === VOID ? new Long(0, 0) : type; + keyword = keyword === VOID ? '' : keyword; + this.cursor = cursor; + this.oid = oid; + this.type = type; + this.keyword = keyword; + } + get_cursor_c3jujj_k$() { + return this.cursor; + } + get_oid_18iz6n_k$() { + return this.oid; + } + get_type_wovaf7_k$() { + return this.type; + } + get_keyword_c7bncw_k$() { + return this.keyword; + } + component1_7eebsc_k$() { + return this.cursor; + } + component2_7eebsb_k$() { + return this.oid; + } + component3_7eebsa_k$() { + return this.type; + } + component4_7eebs9_k$() { + return this.keyword; + } + copy_smq356_k$(cursor, oid, type, keyword) { + return new KSearchItemReq(cursor, oid, type, keyword); + } + copy(cursor, oid, type, keyword, $super) { + cursor = cursor === VOID ? this.cursor : cursor; + oid = oid === VOID ? this.oid : oid; + type = type === VOID ? this.type : type; + keyword = keyword === VOID ? this.keyword : keyword; + return this.copy_smq356_k$(cursor, oid, type, keyword); + } + toString() { + return 'KSearchItemReq(cursor=' + this.cursor + ', oid=' + this.oid.toString() + ', type=' + this.type.toString() + ', keyword=' + this.keyword + ')'; + } + hashCode() { + var result = this.cursor == null ? 0 : this.cursor.hashCode(); + result = imul(result, 31) + this.oid.hashCode() | 0; + result = imul(result, 31) + this.type.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.keyword) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSearchItemReq)) + return false; + var tmp0_other_with_cast = other instanceof KSearchItemReq ? other : THROW_CCE(); + if (!equals(this.cursor, tmp0_other_with_cast.cursor)) + return false; + if (!this.oid.equals(tmp0_other_with_cast.oid)) + return false; + if (!this.type.equals(tmp0_other_with_cast.type)) + return false; + if (!(this.keyword === tmp0_other_with_cast.keyword)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KSearchItemReq_z3g29d_k$(seen1, cursor, oid, type, keyword, serializationConstructorMarker) { + Companion_instance_1363; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1350().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.cursor = null; + else + $this.cursor = cursor; + if (0 === (seen1 & 2)) + $this.oid = new Long(0, 0); + else + $this.oid = oid; + if (0 === (seen1 & 4)) + $this.type = new Long(0, 0); + else + $this.type = type; + if (0 === (seen1 & 8)) + $this.keyword = ''; + else + $this.keyword = keyword; + return $this; + } + } + class Companion_1364 { + constructor() { + this.targetPath = '/bilibili.main.community.reply.v1.SearchItemReplyExtraInfo'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1351(); + } + } + class $serializer_1351 { + constructor() { + $serializer_instance_1351 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KSearchItemReplyExtraInfo', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('eventId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSearchItemReplyExtraInfo.new_com_bapis_bilibili_main_community_reply_v1_KSearchItemReplyExtraInfo_ljhd5w_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_ktd669_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.eventId === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.eventId); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_ktd669_k$(encoder, value instanceof KSearchItemReplyExtraInfo ? value : THROW_CCE()); + } + } + class KSearchItemReplyExtraInfo { + constructor(eventId) { + Companion_instance_1364; + eventId = eventId === VOID ? '' : eventId; + this.eventId = eventId; + } + get_eventId_lhza1g_k$() { + return this.eventId; + } + component1_7eebsc_k$() { + return this.eventId; + } + copy_a35qlh_k$(eventId) { + return new KSearchItemReplyExtraInfo(eventId); + } + copy(eventId, $super) { + eventId = eventId === VOID ? this.eventId : eventId; + return this.copy_a35qlh_k$(eventId); + } + toString() { + return 'KSearchItemReplyExtraInfo(eventId=' + this.eventId + ')'; + } + hashCode() { + return getStringHashCode(this.eventId); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSearchItemReplyExtraInfo)) + return false; + var tmp0_other_with_cast = other instanceof KSearchItemReplyExtraInfo ? other : THROW_CCE(); + if (!(this.eventId === tmp0_other_with_cast.eventId)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KSearchItemReplyExtraInfo_ljhd5w_k$(seen1, eventId, serializationConstructorMarker) { + Companion_instance_1364; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1351().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.eventId = ''; + else + $this.eventId = eventId; + return $this; + } + } + class Companion_1365 { + constructor() { + Companion_instance_1365 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, new ArrayListSerializer($serializer_getInstance_1355()), null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.main.community.reply.v1.SearchItemReply'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1352(); + } + } + class $serializer_1352 { + constructor() { + $serializer_instance_1352 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KSearchItemReply', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('cursor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('items', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('extra', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_1365().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_1354()), tmp0_cached[1], get_nullable($serializer_getInstance_1351())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp8_cached = Companion_getInstance_1365().$childSerializers_1; + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_1354(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp8_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_1351(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_1354(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp8_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_1351(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSearchItemReply.new_com_bapis_bilibili_main_community_reply_v1_KSearchItemReply_v48ijw_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_tdj4tl_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_1365().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.cursor == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_1354(), value.cursor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !equals(value.items, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 1, tmp2_cached[1], value.items); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.extra == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_1351(), value.extra); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_tdj4tl_k$(encoder, value instanceof KSearchItemReply ? value : THROW_CCE()); + } + } + class KSearchItemReply { + constructor(cursor, items, extra) { + Companion_getInstance_1365(); + cursor = cursor === VOID ? null : cursor; + items = items === VOID ? emptyList() : items; + extra = extra === VOID ? null : extra; + this.cursor = cursor; + this.items = items; + this.extra = extra; + } + get_cursor_c3jujj_k$() { + return this.cursor; + } + get_items_it823b_k$() { + return this.items; + } + get_extra_ir3qw7_k$() { + return this.extra; + } + component1_7eebsc_k$() { + return this.cursor; + } + component2_7eebsb_k$() { + return this.items; + } + component3_7eebsa_k$() { + return this.extra; + } + copy_sqmlal_k$(cursor, items, extra) { + return new KSearchItemReply(cursor, items, extra); + } + copy(cursor, items, extra, $super) { + cursor = cursor === VOID ? this.cursor : cursor; + items = items === VOID ? this.items : items; + extra = extra === VOID ? this.extra : extra; + return this.copy_sqmlal_k$(cursor, items, extra); + } + toString() { + return 'KSearchItemReply(cursor=' + this.cursor + ', items=' + this.items + ', extra=' + this.extra + ')'; + } + hashCode() { + var result = this.cursor == null ? 0 : this.cursor.hashCode(); + result = imul(result, 31) + hashCode(this.items) | 0; + result = imul(result, 31) + (this.extra == null ? 0 : this.extra.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSearchItemReply)) + return false; + var tmp0_other_with_cast = other instanceof KSearchItemReply ? other : THROW_CCE(); + if (!equals(this.cursor, tmp0_other_with_cast.cursor)) + return false; + if (!equals(this.items, tmp0_other_with_cast.items)) + return false; + if (!equals(this.extra, tmp0_other_with_cast.extra)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KSearchItemReply_v48ijw_k$(seen1, cursor, items, extra, serializationConstructorMarker) { + Companion_getInstance_1365(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1352().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.cursor = null; + else + $this.cursor = cursor; + if (0 === (seen1 & 2)) + $this.items = emptyList(); + else + $this.items = items; + if (0 === (seen1 & 4)) + $this.extra = null; + else + $this.extra = extra; + return $this; + } + } + class Companion_1366 { + constructor() { + this.targetPath = '/bilibili.main.community.reply.v1.SearchItemCursorReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1353(); + } + } + class $serializer_1353 { + constructor() { + $serializer_instance_1353 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KSearchItemCursorReq', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('next', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('itemType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = 0; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSearchItemCursorReq.new_com_bapis_bilibili_main_community_reply_v1_KSearchItemCursorReq_5axu9b_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_10vkrv_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.next.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.next); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.itemType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.itemType); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_10vkrv_k$(encoder, value instanceof KSearchItemCursorReq ? value : THROW_CCE()); + } + } + class KSearchItemCursorReq { + constructor(next, itemType) { + Companion_instance_1366; + next = next === VOID ? new Long(0, 0) : next; + itemType = itemType === VOID ? 0 : itemType; + this.next = next; + this.itemType = itemType; + } + get_next_wor1vg_k$() { + return this.next; + } + get_itemType_cbv3uy_k$() { + return this.itemType; + } + itemTypeEnum() { + return Companion_getInstance_1283().fromValue(this.itemType); + } + component1_7eebsc_k$() { + return this.next; + } + component2_7eebsb_k$() { + return this.itemType; + } + copy_hlxmm3_k$(next, itemType) { + return new KSearchItemCursorReq(next, itemType); + } + copy(next, itemType, $super) { + next = next === VOID ? this.next : next; + itemType = itemType === VOID ? this.itemType : itemType; + return this.copy_hlxmm3_k$(next, itemType); + } + toString() { + return 'KSearchItemCursorReq(next=' + this.next.toString() + ', itemType=' + this.itemType + ')'; + } + hashCode() { + var result = this.next.hashCode(); + result = imul(result, 31) + this.itemType | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSearchItemCursorReq)) + return false; + var tmp0_other_with_cast = other instanceof KSearchItemCursorReq ? other : THROW_CCE(); + if (!this.next.equals(tmp0_other_with_cast.next)) + return false; + if (!(this.itemType === tmp0_other_with_cast.itemType)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KSearchItemCursorReq_5axu9b_k$(seen1, next, itemType, serializationConstructorMarker) { + Companion_instance_1366; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1353().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.next = new Long(0, 0); + else + $this.next = next; + if (0 === (seen1 & 2)) + $this.itemType = 0; + else + $this.itemType = itemType; + return $this; + } + } + class Companion_1367 { + constructor() { + this.targetPath = '/bilibili.main.community.reply.v1.SearchItemCursorReply'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1354(); + } + } + class $serializer_1354 { + constructor() { + $serializer_instance_1354 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KSearchItemCursorReply', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('hasNext', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('next', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [BooleanSerializer_getInstance(), LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = false; + var tmp5_local1 = new Long(0, 0); + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSearchItemCursorReply.new_com_bapis_bilibili_main_community_reply_v1_KSearchItemCursorReply_e99imy_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_vot2u7_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.hasNext === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 0, value.hasNext); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.next.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.next); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_vot2u7_k$(encoder, value instanceof KSearchItemCursorReply ? value : THROW_CCE()); + } + } + class KSearchItemCursorReply { + constructor(hasNext, next) { + Companion_instance_1367; + hasNext = hasNext === VOID ? false : hasNext; + next = next === VOID ? new Long(0, 0) : next; + this.hasNext = hasNext; + this.next = next; + } + get_hasNext_csdx38_k$() { + return this.hasNext; + } + get_next_wor1vg_k$() { + return this.next; + } + component1_7eebsc_k$() { + return this.hasNext; + } + component2_7eebsb_k$() { + return this.next; + } + copy_rw3tf6_k$(hasNext, next) { + return new KSearchItemCursorReply(hasNext, next); + } + copy(hasNext, next, $super) { + hasNext = hasNext === VOID ? this.hasNext : hasNext; + next = next === VOID ? this.next : next; + return this.copy_rw3tf6_k$(hasNext, next); + } + toString() { + return 'KSearchItemCursorReply(hasNext=' + this.hasNext + ', next=' + this.next.toString() + ')'; + } + hashCode() { + var result = getBooleanHashCode(this.hasNext); + result = imul(result, 31) + this.next.hashCode() | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSearchItemCursorReply)) + return false; + var tmp0_other_with_cast = other instanceof KSearchItemCursorReply ? other : THROW_CCE(); + if (!(this.hasNext === tmp0_other_with_cast.hasNext)) + return false; + if (!this.next.equals(tmp0_other_with_cast.next)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KSearchItemCursorReply_e99imy_k$(seen1, hasNext, next, serializationConstructorMarker) { + Companion_instance_1367; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1354().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.hasNext = false; + else + $this.hasNext = hasNext; + if (0 === (seen1 & 2)) + $this.next = new Long(0, 0); + else + $this.next = next; + return $this; + } + } + class KItem_13 { + constructor(value) { + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + } + class KGoods_0 extends KItem_13 { + constructor() { + KGoods_instance_0 = null; + super(0); + KGoods_instance_0 = this; + } + } + class KVideo_0 extends KItem_13 { + constructor() { + KVideo_instance = null; + super(1); + KVideo_instance = this; + } + } + class KArticle_1 extends KItem_13 { + constructor() { + KArticle_instance_1 = null; + super(2); + KArticle_instance_1 = this; + } + } + class Companion_1368 { + constructor() { + Companion_instance_1368 = this; + var tmp = this; + tmp.itemValues$delegate_1 = lazy_0(KSearchItem$Companion$itemValues$delegate$lambda); + this.targetPath = '/bilibili.main.community.reply.v1.SearchItem'; + } + get_itemValues_e195su_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.itemValues$delegate_1; + var thisRef = this; + var property = itemValues$factory_9(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1355(); + } + get itemValues() { + return this.get_itemValues_e195su_k$(); + } + } + class $serializer_1355 { + constructor() { + $serializer_instance_1355 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KSearchItem', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('url', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('goods', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('video', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('article', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), get_nullable($serializer_getInstance_1356()), get_nullable($serializer_getInstance_1357()), get_nullable($serializer_getInstance_1360())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_transient0 = 0; + var tmp9_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp9_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_1356(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_1357(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_1360(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp9_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_1356(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_1357(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_1360(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp9_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSearchItem.new_com_bapis_bilibili_main_community_reply_v1_KSearchItem_c89ts6_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_nfluer_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.url === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.url); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.goods_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_1356(), value.goods_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.video_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_1357(), value.video_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.article_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_1360(), value.article_1); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_nfluer_k$(encoder, value instanceof KSearchItem ? value : THROW_CCE()); + } + } + class KSearchItem { + constructor(url, goods, video, article) { + Companion_getInstance_1368(); + url = url === VOID ? '' : url; + goods = goods === VOID ? null : goods; + video = video === VOID ? null : video; + article = article === VOID ? null : article; + this.url = url; + this.goods_1 = goods; + this.video_1 = video; + this.article_1 = article; + var tmp = this; + tmp.itemNumber$delegate_1 = lazy_0(KSearchItem$itemNumber$delegate$lambda(this)); + } + get_url_18iuii_k$() { + return this.url; + } + itemValue() { + if (!(this.goods_1 == null)) { + var tmp = this.goods_1; + return (tmp == null ? true : !(tmp == null)) ? tmp : null; + } else if (!(this.video_1 == null)) { + var tmp_0 = this.video_1; + return (tmp_0 == null ? true : !(tmp_0 == null)) ? tmp_0 : null; + } else if (!(this.article_1 == null)) { + var tmp_1 = this.article_1; + return (tmp_1 == null ? true : !(tmp_1 == null)) ? tmp_1 : null; + } else { + return null; + } + } + itemTypeJs() { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = Companion_getInstance_1368().itemValues; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.main.community.reply.v1.KSearchItem.itemType.' call + var it = element; + tmp$ret$0 = it.value === _get_itemNumber__22vn01_9(this); + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + return tmp$ret$1; + } + component1_7eebsc_k$() { + return this.url; + } + copy_wo3uc3_k$(url, goods, video, article) { + return new KSearchItem(url, goods, video, article); + } + copy(url, goods, video, article, $super) { + url = url === VOID ? this.url : url; + goods = goods === VOID ? this.goods_1 : goods; + video = video === VOID ? this.video_1 : video; + article = article === VOID ? this.article_1 : article; + return this.copy_wo3uc3_k$(url, goods, video, article); + } + toString() { + return 'KSearchItem(url=' + this.url + ', goods=' + this.goods_1 + ', video=' + this.video_1 + ', article=' + this.article_1 + ')'; + } + hashCode() { + var result = getStringHashCode(this.url); + result = imul(result, 31) + (this.goods_1 == null ? 0 : this.goods_1.hashCode()) | 0; + result = imul(result, 31) + (this.video_1 == null ? 0 : this.video_1.hashCode()) | 0; + result = imul(result, 31) + (this.article_1 == null ? 0 : this.article_1.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSearchItem)) + return false; + var tmp0_other_with_cast = other instanceof KSearchItem ? other : THROW_CCE(); + if (!(this.url === tmp0_other_with_cast.url)) + return false; + if (!equals(this.goods_1, tmp0_other_with_cast.goods_1)) + return false; + if (!equals(this.video_1, tmp0_other_with_cast.video_1)) + return false; + if (!equals(this.article_1, tmp0_other_with_cast.article_1)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KSearchItem_c89ts6_k$(seen1, url, goods, video, article, serializationConstructorMarker) { + Companion_getInstance_1368(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1355().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.url = ''; + else + $this.url = url; + if (0 === (seen1 & 2)) + $this.goods_1 = null; + else + $this.goods_1 = goods; + if (0 === (seen1 & 4)) + $this.video_1 = null; + else + $this.video_1 = video; + if (0 === (seen1 & 8)) + $this.article_1 = null; + else + $this.article_1 = article; + var tmp = $this; + tmp.itemNumber$delegate_1 = lazy_0(KSearchItem$_init_$lambda_f6s50l($this)); + return $this; + } + } + class Companion_1369 { + constructor() { + this.targetPath = '/bilibili.main.community.reply.v1.GoodsSearchItem'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1356(); + } + } + class $serializer_1356 { + constructor() { + $serializer_instance_1356 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KGoodsSearchItem', this, 6); + tmp0_serialDesc.addElement_5pzumi_k$('id', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('name', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('price', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('income', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('img', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('label', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp10_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + } else + while (tmp1_flag) { + tmp2_index = tmp10_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp10_input.endStructure_1xqz0n_k$(tmp0_desc); + return KGoodsSearchItem.new_com_bapis_bilibili_main_community_reply_v1_KGoodsSearchItem_4xzf2g_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); + } + serialize_5rkn3b_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.id.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.id); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.name === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.name); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.price === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.price); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.income === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.income); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.img === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.img); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.label === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.label); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_5rkn3b_k$(encoder, value instanceof KGoodsSearchItem ? value : THROW_CCE()); + } + } + class KGoodsSearchItem { + constructor(id, name, price, income, img, label) { + Companion_instance_1369; + id = id === VOID ? new Long(0, 0) : id; + name = name === VOID ? '' : name; + price = price === VOID ? '' : price; + income = income === VOID ? '' : income; + img = img === VOID ? '' : img; + label = label === VOID ? '' : label; + this.id = id; + this.name = name; + this.price = price; + this.income = income; + this.img = img; + this.label = label; + } + get_id_kntnx8_k$() { + return this.id; + } + get_name_woqyms_k$() { + return this.name; + } + get_price_ix1ezk_k$() { + return this.price; + } + get_income_etpcxe_k$() { + return this.income; + } + get_img_18j3ja_k$() { + return this.img; + } + get_label_iuj8p7_k$() { + return this.label; + } + component1_7eebsc_k$() { + return this.id; + } + component2_7eebsb_k$() { + return this.name; + } + component3_7eebsa_k$() { + return this.price; + } + component4_7eebs9_k$() { + return this.income; + } + component5_7eebs8_k$() { + return this.img; + } + component6_7eebs7_k$() { + return this.label; + } + copy_dolucn_k$(id, name, price, income, img, label) { + return new KGoodsSearchItem(id, name, price, income, img, label); + } + copy(id, name, price, income, img, label, $super) { + id = id === VOID ? this.id : id; + name = name === VOID ? this.name : name; + price = price === VOID ? this.price : price; + income = income === VOID ? this.income : income; + img = img === VOID ? this.img : img; + label = label === VOID ? this.label : label; + return this.copy_dolucn_k$(id, name, price, income, img, label); + } + toString() { + return 'KGoodsSearchItem(id=' + this.id.toString() + ', name=' + this.name + ', price=' + this.price + ', income=' + this.income + ', img=' + this.img + ', label=' + this.label + ')'; + } + hashCode() { + var result = this.id.hashCode(); + result = imul(result, 31) + getStringHashCode(this.name) | 0; + result = imul(result, 31) + getStringHashCode(this.price) | 0; + result = imul(result, 31) + getStringHashCode(this.income) | 0; + result = imul(result, 31) + getStringHashCode(this.img) | 0; + result = imul(result, 31) + getStringHashCode(this.label) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KGoodsSearchItem)) + return false; + var tmp0_other_with_cast = other instanceof KGoodsSearchItem ? other : THROW_CCE(); + if (!this.id.equals(tmp0_other_with_cast.id)) + return false; + if (!(this.name === tmp0_other_with_cast.name)) + return false; + if (!(this.price === tmp0_other_with_cast.price)) + return false; + if (!(this.income === tmp0_other_with_cast.income)) + return false; + if (!(this.img === tmp0_other_with_cast.img)) + return false; + if (!(this.label === tmp0_other_with_cast.label)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KGoodsSearchItem_4xzf2g_k$(seen1, id, name, price, income, img, label, serializationConstructorMarker) { + Companion_instance_1369; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1356().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.id = new Long(0, 0); + else + $this.id = id; + if (0 === (seen1 & 2)) + $this.name = ''; + else + $this.name = name; + if (0 === (seen1 & 4)) + $this.price = ''; + else + $this.price = price; + if (0 === (seen1 & 8)) + $this.income = ''; + else + $this.income = income; + if (0 === (seen1 & 16)) + $this.img = ''; + else + $this.img = img; + if (0 === (seen1 & 32)) + $this.label = ''; + else + $this.label = label; + return $this; + } + } + class KVideoItem { + constructor(value) { + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + } + class KUgc_0 extends KVideoItem { + constructor() { + KUgc_instance_0 = null; + super(0); + KUgc_instance_0 = this; + } + } + class KPgc_0 extends KVideoItem { + constructor() { + KPgc_instance_0 = null; + super(1); + KPgc_instance_0 = this; + } + } + class Companion_1370 { + constructor() { + Companion_instance_1370 = this; + var tmp = this; + tmp.videoItemValues$delegate_1 = lazy_0(KVideoSearchItem$Companion$videoItemValues$delegate$lambda); + this.targetPath = '/bilibili.main.community.reply.v1.VideoSearchItem'; + } + get_videoItemValues_n9l5vr_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.videoItemValues$delegate_1; + var thisRef = this; + var property = videoItemValues$factory(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1357(); + } + get videoItemValues() { + return this.get_videoItemValues_n9l5vr_k$(); + } + } + class $serializer_1357 { + constructor() { + $serializer_instance_1357 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KVideoSearchItem', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('ugc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('pgc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), get_nullable($serializer_getInstance_1358()), get_nullable($serializer_getInstance_1359())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_transient0 = 0; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_1358(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_1359(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_1358(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_1359(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KVideoSearchItem.new_com_bapis_bilibili_main_community_reply_v1_KVideoSearchItem_6hp2yr_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_ihexb2_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.type === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.type); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.ugc_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_1358(), value.ugc_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.pgc_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_1359(), value.pgc_1); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_ihexb2_k$(encoder, value instanceof KVideoSearchItem ? value : THROW_CCE()); + } + } + class KVideoSearchItem { + constructor(type, ugc, pgc) { + Companion_getInstance_1370(); + type = type === VOID ? 0 : type; + ugc = ugc === VOID ? null : ugc; + pgc = pgc === VOID ? null : pgc; + this.type = type; + this.ugc_1 = ugc; + this.pgc_1 = pgc; + var tmp = this; + tmp.videoItemNumber$delegate_1 = lazy_0(KVideoSearchItem$videoItemNumber$delegate$lambda(this)); + } + get_type_wovaf7_k$() { + return this.type; + } + videoItemValue() { + if (!(this.ugc_1 == null)) { + var tmp = this.ugc_1; + return (tmp == null ? true : !(tmp == null)) ? tmp : null; + } else if (!(this.pgc_1 == null)) { + var tmp_0 = this.pgc_1; + return (tmp_0 == null ? true : !(tmp_0 == null)) ? tmp_0 : null; + } else { + return null; + } + } + videoItemTypeJs() { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = Companion_getInstance_1370().videoItemValues; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.main.community.reply.v1.KVideoSearchItem.videoItemType.' call + var it = element; + tmp$ret$0 = it.value === _get_videoItemNumber__bwp1k6(this); + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + return tmp$ret$1; + } + typeEnum() { + return Companion_getInstance_1284().fromValue(this.type); + } + component1_7eebsc_k$() { + return this.type; + } + copy_9bfsw8_k$(type, ugc, pgc) { + return new KVideoSearchItem(type, ugc, pgc); + } + copy(type, ugc, pgc, $super) { + type = type === VOID ? this.type : type; + ugc = ugc === VOID ? this.ugc_1 : ugc; + pgc = pgc === VOID ? this.pgc_1 : pgc; + return this.copy_9bfsw8_k$(type, ugc, pgc); + } + toString() { + return 'KVideoSearchItem(type=' + this.type + ', ugc=' + this.ugc_1 + ', pgc=' + this.pgc_1 + ')'; + } + hashCode() { + var result = this.type; + result = imul(result, 31) + (this.ugc_1 == null ? 0 : this.ugc_1.hashCode()) | 0; + result = imul(result, 31) + (this.pgc_1 == null ? 0 : this.pgc_1.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KVideoSearchItem)) + return false; + var tmp0_other_with_cast = other instanceof KVideoSearchItem ? other : THROW_CCE(); + if (!(this.type === tmp0_other_with_cast.type)) + return false; + if (!equals(this.ugc_1, tmp0_other_with_cast.ugc_1)) + return false; + if (!equals(this.pgc_1, tmp0_other_with_cast.pgc_1)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KVideoSearchItem_6hp2yr_k$(seen1, type, ugc, pgc, serializationConstructorMarker) { + Companion_getInstance_1370(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1357().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.type = 0; + else + $this.type = type; + if (0 === (seen1 & 2)) + $this.ugc_1 = null; + else + $this.ugc_1 = ugc; + if (0 === (seen1 & 4)) + $this.pgc_1 = null; + else + $this.pgc_1 = pgc; + var tmp = $this; + tmp.videoItemNumber$delegate_1 = lazy_0(KVideoSearchItem$_init_$lambda_ob7rcw($this)); + return $this; + } + } + class Companion_1371 { + constructor() { + this.targetPath = '/bilibili.main.community.reply.v1.UGCVideoSearchItem'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1358(); + } + } + class $serializer_1358 { + constructor() { + $serializer_instance_1358 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KUGCVideoSearchItem', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('upNickname', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('duration', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = new Long(0, 0); + var tmp7_local3 = null; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KUGCVideoSearchItem.new_com_bapis_bilibili_main_community_reply_v1_KUGCVideoSearchItem_1nh6iq_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_5m45nb_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.upNickname === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.upNickname); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.duration.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.duration); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.cover); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_5m45nb_k$(encoder, value instanceof KUGCVideoSearchItem ? value : THROW_CCE()); + } + } + class KUGCVideoSearchItem { + constructor(title, upNickname, duration, cover) { + Companion_instance_1371; + title = title === VOID ? '' : title; + upNickname = upNickname === VOID ? '' : upNickname; + duration = duration === VOID ? new Long(0, 0) : duration; + cover = cover === VOID ? '' : cover; + this.title = title; + this.upNickname = upNickname; + this.duration = duration; + this.cover = cover; + } + get_title_iz32un_k$() { + return this.title; + } + get_upNickname_ijw0c2_k$() { + return this.upNickname; + } + get_duration_6a6kpp_k$() { + return this.duration; + } + get_cover_ipug0e_k$() { + return this.cover; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.upNickname; + } + component3_7eebsa_k$() { + return this.duration; + } + component4_7eebs9_k$() { + return this.cover; + } + copy_odghll_k$(title, upNickname, duration, cover) { + return new KUGCVideoSearchItem(title, upNickname, duration, cover); + } + copy(title, upNickname, duration, cover, $super) { + title = title === VOID ? this.title : title; + upNickname = upNickname === VOID ? this.upNickname : upNickname; + duration = duration === VOID ? this.duration : duration; + cover = cover === VOID ? this.cover : cover; + return this.copy_odghll_k$(title, upNickname, duration, cover); + } + toString() { + return 'KUGCVideoSearchItem(title=' + this.title + ', upNickname=' + this.upNickname + ', duration=' + this.duration.toString() + ', cover=' + this.cover + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.upNickname) | 0; + result = imul(result, 31) + this.duration.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.cover) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KUGCVideoSearchItem)) + return false; + var tmp0_other_with_cast = other instanceof KUGCVideoSearchItem ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.upNickname === tmp0_other_with_cast.upNickname)) + return false; + if (!this.duration.equals(tmp0_other_with_cast.duration)) + return false; + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KUGCVideoSearchItem_1nh6iq_k$(seen1, title, upNickname, duration, cover, serializationConstructorMarker) { + Companion_instance_1371; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1358().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.upNickname = ''; + else + $this.upNickname = upNickname; + if (0 === (seen1 & 4)) + $this.duration = new Long(0, 0); + else + $this.duration = duration; + if (0 === (seen1 & 8)) + $this.cover = ''; + else + $this.cover = cover; + return $this; + } + } + class Companion_1372 { + constructor() { + this.targetPath = '/bilibili.main.community.reply.v1.PGCVideoSearchItem'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1359(); + } + } + class $serializer_1359 { + constructor() { + $serializer_instance_1359 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KPGCVideoSearchItem', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('category', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KPGCVideoSearchItem.new_com_bapis_bilibili_main_community_reply_v1_KPGCVideoSearchItem_14osed_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_71geu4_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.category === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.category); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.cover); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_71geu4_k$(encoder, value instanceof KPGCVideoSearchItem ? value : THROW_CCE()); + } + } + class KPGCVideoSearchItem { + constructor(title, category, cover) { + Companion_instance_1372; + title = title === VOID ? '' : title; + category = category === VOID ? '' : category; + cover = cover === VOID ? '' : cover; + this.title = title; + this.category = category; + this.cover = cover; + } + get_title_iz32un_k$() { + return this.title; + } + get_category_uyv41l_k$() { + return this.category; + } + get_cover_ipug0e_k$() { + return this.cover; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.category; + } + component3_7eebsa_k$() { + return this.cover; + } + copy_nc7k0r_k$(title, category, cover) { + return new KPGCVideoSearchItem(title, category, cover); + } + copy(title, category, cover, $super) { + title = title === VOID ? this.title : title; + category = category === VOID ? this.category : category; + cover = cover === VOID ? this.cover : cover; + return this.copy_nc7k0r_k$(title, category, cover); + } + toString() { + return 'KPGCVideoSearchItem(title=' + this.title + ', category=' + this.category + ', cover=' + this.cover + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.category) | 0; + result = imul(result, 31) + getStringHashCode(this.cover) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KPGCVideoSearchItem)) + return false; + var tmp0_other_with_cast = other instanceof KPGCVideoSearchItem ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.category === tmp0_other_with_cast.category)) + return false; + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KPGCVideoSearchItem_14osed_k$(seen1, title, category, cover, serializationConstructorMarker) { + Companion_instance_1372; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1359().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.category = ''; + else + $this.category = category; + if (0 === (seen1 & 4)) + $this.cover = ''; + else + $this.cover = cover; + return $this; + } + } + class Companion_1373 { + constructor() { + Companion_instance_1373 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, new ArrayListSerializer(StringSerializer_getInstance())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.main.community.reply.v1.ArticleSearchItem'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1360(); + } + } + class $serializer_1360 { + constructor() { + $serializer_instance_1360 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KArticleSearchItem', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('upNickname', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('covers', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_1373().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), tmp0_cached[2]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp8_cached = Companion_getInstance_1373().$childSerializers_1; + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp8_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp8_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KArticleSearchItem.new_com_bapis_bilibili_main_community_reply_v1_KArticleSearchItem_wm6ens_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_7r89on_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_1373().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.upNickname === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.upNickname); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !equals(value.covers, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 2, tmp2_cached[2], value.covers); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_7r89on_k$(encoder, value instanceof KArticleSearchItem ? value : THROW_CCE()); + } + } + class KArticleSearchItem { + constructor(title, upNickname, covers) { + Companion_getInstance_1373(); + title = title === VOID ? '' : title; + upNickname = upNickname === VOID ? '' : upNickname; + covers = covers === VOID ? emptyList() : covers; + this.title = title; + this.upNickname = upNickname; + this.covers = covers; + } + get_title_iz32un_k$() { + return this.title; + } + get_upNickname_ijw0c2_k$() { + return this.upNickname; + } + get_covers_c0bcmd_k$() { + return this.covers; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.upNickname; + } + component3_7eebsa_k$() { + return this.covers; + } + copy_hkbo25_k$(title, upNickname, covers) { + return new KArticleSearchItem(title, upNickname, covers); + } + copy(title, upNickname, covers, $super) { + title = title === VOID ? this.title : title; + upNickname = upNickname === VOID ? this.upNickname : upNickname; + covers = covers === VOID ? this.covers : covers; + return this.copy_hkbo25_k$(title, upNickname, covers); + } + toString() { + return 'KArticleSearchItem(title=' + this.title + ', upNickname=' + this.upNickname + ', covers=' + this.covers + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.upNickname) | 0; + result = imul(result, 31) + hashCode(this.covers) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KArticleSearchItem)) + return false; + var tmp0_other_with_cast = other instanceof KArticleSearchItem ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.upNickname === tmp0_other_with_cast.upNickname)) + return false; + if (!equals(this.covers, tmp0_other_with_cast.covers)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KArticleSearchItem_wm6ens_k$(seen1, title, upNickname, covers, serializationConstructorMarker) { + Companion_getInstance_1373(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1360().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.upNickname = ''; + else + $this.upNickname = upNickname; + if (0 === (seen1 & 4)) + $this.covers = emptyList(); + else + $this.covers = covers; + return $this; + } + } + class Companion_1374 { + constructor() { + this.targetPath = '/bilibili.main.community.reply.v1.OperationTitle'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1361(); + } + } + class $serializer_1361 { + constructor() { + $serializer_instance_1361 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KOperationTitle', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('content', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('isHighlight', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), BooleanSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = false; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KOperationTitle.new_com_bapis_bilibili_main_community_reply_v1_KOperationTitle_ibzcet_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_ehq2l9_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.content === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.content); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.isHighlight === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 1, value.isHighlight); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_ehq2l9_k$(encoder, value instanceof KOperationTitle ? value : THROW_CCE()); + } + } + class KOperationTitle { + constructor(content, isHighlight) { + Companion_instance_1374; + content = content === VOID ? '' : content; + isHighlight = isHighlight === VOID ? false : isHighlight; + this.content = content; + this.isHighlight = isHighlight; + } + get_content_h02jrk_k$() { + return this.content; + } + get_isHighlight_m485s1_k$() { + return this.isHighlight; + } + component1_7eebsc_k$() { + return this.content; + } + component2_7eebsb_k$() { + return this.isHighlight; + } + copy_smzrfk_k$(content, isHighlight) { + return new KOperationTitle(content, isHighlight); + } + copy(content, isHighlight, $super) { + content = content === VOID ? this.content : content; + isHighlight = isHighlight === VOID ? this.isHighlight : isHighlight; + return this.copy_smzrfk_k$(content, isHighlight); + } + toString() { + return 'KOperationTitle(content=' + this.content + ', isHighlight=' + this.isHighlight + ')'; + } + hashCode() { + var result = getStringHashCode(this.content); + result = imul(result, 31) + getBooleanHashCode(this.isHighlight) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KOperationTitle)) + return false; + var tmp0_other_with_cast = other instanceof KOperationTitle ? other : THROW_CCE(); + if (!(this.content === tmp0_other_with_cast.content)) + return false; + if (!(this.isHighlight === tmp0_other_with_cast.isHighlight)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KOperationTitle_ibzcet_k$(seen1, content, isHighlight, serializationConstructorMarker) { + Companion_instance_1374; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1361().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.content = ''; + else + $this.content = content; + if (0 === (seen1 & 2)) + $this.isHighlight = false; + else + $this.isHighlight = isHighlight; + return $this; + } + } + class Companion_1375 { + constructor() { + Companion_instance_1375 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KOperation$KType$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KOperation$KType$Companion$_anonymous__ofnv5a); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_173(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.main.community.reply.v1.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KType_UNRECOGNIZED_getInstance_2() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.main.community.reply.v1.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KType with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_173(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_1362 { + constructor() { + $serializer_instance_1362 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.main.community.reply.v1.KOperation.KType', 5); + tmp0_serialDesc.addElement_5pzumi_k$('UNKNOWN', false); + tmp0_serialDesc.addElement_5pzumi_k$('NOTE', false); + tmp0_serialDesc.addElement_5pzumi_k$('TOPIC', false); + tmp0_serialDesc.addElement_5pzumi_k$('NOTICE', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_173()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_y2revz_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_y2revz_k$(encoder, value instanceof KType_3 ? value : THROW_CCE()); + } + } + class KType_3 extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_1376 { + constructor() { + this.targetPath = '/bilibili.main.community.reply.v1.Operation'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1363(); + } + } + class $serializer_1363 { + constructor() { + $serializer_instance_1363 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KOperation', this, 7); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('id', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('subtitle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('link', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('reportExtra', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('icon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), LongSerializer_getInstance(), get_nullable($serializer_getInstance_1361()), get_nullable($serializer_getInstance_1361()), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = new Long(0, 0); + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp11_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_1361(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_1361(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + } else + while (tmp1_flag) { + tmp2_index = tmp11_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_1361(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_1361(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp11_input.endStructure_1xqz0n_k$(tmp0_desc); + return KOperation.new_com_bapis_bilibili_main_community_reply_v1_KOperation_2a8wpa_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, null); + } + serialize_n7aonl_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.type === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.type); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.id.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.id); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.title == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_1361(), value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.subtitle == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_1361(), value.subtitle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.link === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.link); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.reportExtra === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.reportExtra); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.icon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.icon); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_n7aonl_k$(encoder, value instanceof KOperation ? value : THROW_CCE()); + } + } + class KOperation { + constructor(type, id, title, subtitle, link, reportExtra, icon) { + Companion_instance_1376; + type = type === VOID ? 0 : type; + id = id === VOID ? new Long(0, 0) : id; + title = title === VOID ? null : title; + subtitle = subtitle === VOID ? null : subtitle; + link = link === VOID ? '' : link; + reportExtra = reportExtra === VOID ? '' : reportExtra; + icon = icon === VOID ? '' : icon; + this.type = type; + this.id = id; + this.title = title; + this.subtitle = subtitle; + this.link = link; + this.reportExtra = reportExtra; + this.icon = icon; + } + get_type_wovaf7_k$() { + return this.type; + } + get_id_kntnx8_k$() { + return this.id; + } + get_title_iz32un_k$() { + return this.title; + } + get_subtitle_55eoyp_k$() { + return this.subtitle; + } + get_link_wopumb_k$() { + return this.link; + } + get_reportExtra_9f6t3n_k$() { + return this.reportExtra; + } + get_icon_wont8i_k$() { + return this.icon; + } + typeEnum() { + return Companion_getInstance_1375().fromValue(this.type); + } + component1_7eebsc_k$() { + return this.type; + } + component2_7eebsb_k$() { + return this.id; + } + component3_7eebsa_k$() { + return this.title; + } + component4_7eebs9_k$() { + return this.subtitle; + } + component5_7eebs8_k$() { + return this.link; + } + component6_7eebs7_k$() { + return this.reportExtra; + } + component7_7eebs6_k$() { + return this.icon; + } + copy_9yoad5_k$(type, id, title, subtitle, link, reportExtra, icon) { + return new KOperation(type, id, title, subtitle, link, reportExtra, icon); + } + copy(type, id, title, subtitle, link, reportExtra, icon, $super) { + type = type === VOID ? this.type : type; + id = id === VOID ? this.id : id; + title = title === VOID ? this.title : title; + subtitle = subtitle === VOID ? this.subtitle : subtitle; + link = link === VOID ? this.link : link; + reportExtra = reportExtra === VOID ? this.reportExtra : reportExtra; + icon = icon === VOID ? this.icon : icon; + return this.copy_9yoad5_k$(type, id, title, subtitle, link, reportExtra, icon); + } + toString() { + return 'KOperation(type=' + this.type + ', id=' + this.id.toString() + ', title=' + this.title + ', subtitle=' + this.subtitle + ', link=' + this.link + ', reportExtra=' + this.reportExtra + ', icon=' + this.icon + ')'; + } + hashCode() { + var result = this.type; + result = imul(result, 31) + this.id.hashCode() | 0; + result = imul(result, 31) + (this.title == null ? 0 : this.title.hashCode()) | 0; + result = imul(result, 31) + (this.subtitle == null ? 0 : this.subtitle.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.link) | 0; + result = imul(result, 31) + getStringHashCode(this.reportExtra) | 0; + result = imul(result, 31) + getStringHashCode(this.icon) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KOperation)) + return false; + var tmp0_other_with_cast = other instanceof KOperation ? other : THROW_CCE(); + if (!(this.type === tmp0_other_with_cast.type)) + return false; + if (!this.id.equals(tmp0_other_with_cast.id)) + return false; + if (!equals(this.title, tmp0_other_with_cast.title)) + return false; + if (!equals(this.subtitle, tmp0_other_with_cast.subtitle)) + return false; + if (!(this.link === tmp0_other_with_cast.link)) + return false; + if (!(this.reportExtra === tmp0_other_with_cast.reportExtra)) + return false; + if (!(this.icon === tmp0_other_with_cast.icon)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KOperation_2a8wpa_k$(seen1, type, id, title, subtitle, link, reportExtra, icon, serializationConstructorMarker) { + Companion_instance_1376; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1363().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.type = 0; + else + $this.type = type; + if (0 === (seen1 & 2)) + $this.id = new Long(0, 0); + else + $this.id = id; + if (0 === (seen1 & 4)) + $this.title = null; + else + $this.title = title; + if (0 === (seen1 & 8)) + $this.subtitle = null; + else + $this.subtitle = subtitle; + if (0 === (seen1 & 16)) + $this.link = ''; + else + $this.link = link; + if (0 === (seen1 & 32)) + $this.reportExtra = ''; + else + $this.reportExtra = reportExtra; + if (0 === (seen1 & 64)) + $this.icon = ''; + else + $this.icon = icon; + return $this; + } + } + class Companion_1377 { + constructor() { + Companion_instance_1377 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KOperationV2$KType$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KOperationV2$KType$Companion$_anonymous__pp2q6i); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_174(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.main.community.reply.v1.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KType_UNRECOGNIZED_getInstance_3() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.main.community.reply.v1.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KType with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_174(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_1364 { + constructor() { + $serializer_instance_1364 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.main.community.reply.v1.KOperationV2.KType', 5); + tmp0_serialDesc.addElement_5pzumi_k$('UNKNOWN', false); + tmp0_serialDesc.addElement_5pzumi_k$('NOTE', false); + tmp0_serialDesc.addElement_5pzumi_k$('TOPIC', false); + tmp0_serialDesc.addElement_5pzumi_k$('SEARCH', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_174()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_2jsith_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_2jsith_k$(encoder, value instanceof KType_4 ? value : THROW_CCE()); + } + } + class Companion_1378 { + constructor() { + Companion_instance_1378 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KOperationV2$KIcon$KPosition$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KOperationV2$KIcon$KPosition$Companion$_anonymous__3d3x15); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_175(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.main.community.reply.v1.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KPosition_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.main.community.reply.v1.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KPosition with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_175(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_1365 { + constructor() { + $serializer_instance_1365 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.main.community.reply.v1.KOperationV2.KIcon.KPosition', 3); + tmp0_serialDesc.addElement_5pzumi_k$('PREFIX', false); + tmp0_serialDesc.addElement_5pzumi_k$('SUFFIX', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_175()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_6uzxhc_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_6uzxhc_k$(encoder, value instanceof KPosition ? value : THROW_CCE()); + } + } + class KPosition extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_1379 { + constructor() { + this.targetPath = '/bilibili.main.community.reply.v1.OperationV2.Icon'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1366(); + } + } + class $serializer_1366 { + constructor() { + $serializer_instance_1366 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KOperationV2.KIcon', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('position', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('url', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KIcon.new_com_bapis_bilibili_main_community_reply_v1_KOperationV2_KIcon_bu1obn_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_cfqs1r_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.position === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.position); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.url === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.url); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_cfqs1r_k$(encoder, value instanceof KIcon ? value : THROW_CCE()); + } + } + class KType_4 extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class KIcon { + constructor(position, url) { + Companion_instance_1379; + position = position === VOID ? 0 : position; + url = url === VOID ? '' : url; + this.position = position; + this.url = url; + } + get_position_jfponi_k$() { + return this.position; + } + get_url_18iuii_k$() { + return this.url; + } + positionEnum() { + return Companion_getInstance_1378().fromValue(this.position); + } + component1_7eebsc_k$() { + return this.position; + } + component2_7eebsb_k$() { + return this.url; + } + copy_xhhsuv_k$(position, url) { + return new KIcon(position, url); + } + copy(position, url, $super) { + position = position === VOID ? this.position : position; + url = url === VOID ? this.url : url; + return this.copy_xhhsuv_k$(position, url); + } + toString() { + return 'KIcon(position=' + this.position + ', url=' + this.url + ')'; + } + hashCode() { + var result = this.position; + result = imul(result, 31) + getStringHashCode(this.url) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KIcon)) + return false; + var tmp0_other_with_cast = other instanceof KIcon ? other : THROW_CCE(); + if (!(this.position === tmp0_other_with_cast.position)) + return false; + if (!(this.url === tmp0_other_with_cast.url)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KOperationV2_KIcon_bu1obn_k$(seen1, position, url, serializationConstructorMarker) { + Companion_instance_1379; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1366().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.position = 0; + else + $this.position = position; + if (0 === (seen1 & 2)) + $this.url = ''; + else + $this.url = url; + return $this; + } + } + class Companion_1380 { + constructor() { + this.targetPath = '/bilibili.main.community.reply.v1.OperationV2'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1367(); + } + } + class $serializer_1367 { + constructor() { + $serializer_instance_1367 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KOperationV2', this, 6); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('prefixText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('icon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('link', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('reportExtra', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_1366()), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp10_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_1366(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + } else + while (tmp1_flag) { + tmp2_index = tmp10_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_1366(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp10_input.endStructure_1xqz0n_k$(tmp0_desc); + return KOperationV2.new_com_bapis_bilibili_main_community_reply_v1_KOperationV2_m09fxw_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); + } + serialize_bvn4qd_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.type === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.type); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.prefixText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.prefixText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.icon == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_1366(), value.icon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.link === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.link); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.reportExtra === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.reportExtra); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_bvn4qd_k$(encoder, value instanceof KOperationV2 ? value : THROW_CCE()); + } + } + class KOperationV2 { + constructor(type, prefixText, icon, title, link, reportExtra) { + Companion_instance_1380; + type = type === VOID ? 0 : type; + prefixText = prefixText === VOID ? '' : prefixText; + icon = icon === VOID ? null : icon; + title = title === VOID ? '' : title; + link = link === VOID ? '' : link; + reportExtra = reportExtra === VOID ? '' : reportExtra; + this.type = type; + this.prefixText = prefixText; + this.icon = icon; + this.title = title; + this.link = link; + this.reportExtra = reportExtra; + } + get_type_wovaf7_k$() { + return this.type; + } + get_prefixText_sovyaw_k$() { + return this.prefixText; + } + get_icon_wont8i_k$() { + return this.icon; + } + get_title_iz32un_k$() { + return this.title; + } + get_link_wopumb_k$() { + return this.link; + } + get_reportExtra_9f6t3n_k$() { + return this.reportExtra; + } + typeEnum() { + return Companion_getInstance_1377().fromValue(this.type); + } + component1_7eebsc_k$() { + return this.type; + } + component2_7eebsb_k$() { + return this.prefixText; + } + component3_7eebsa_k$() { + return this.icon; + } + component4_7eebs9_k$() { + return this.title; + } + component5_7eebs8_k$() { + return this.link; + } + component6_7eebs7_k$() { + return this.reportExtra; + } + copy_38z2u0_k$(type, prefixText, icon, title, link, reportExtra) { + return new KOperationV2(type, prefixText, icon, title, link, reportExtra); + } + copy(type, prefixText, icon, title, link, reportExtra, $super) { + type = type === VOID ? this.type : type; + prefixText = prefixText === VOID ? this.prefixText : prefixText; + icon = icon === VOID ? this.icon : icon; + title = title === VOID ? this.title : title; + link = link === VOID ? this.link : link; + reportExtra = reportExtra === VOID ? this.reportExtra : reportExtra; + return this.copy_38z2u0_k$(type, prefixText, icon, title, link, reportExtra); + } + toString() { + return 'KOperationV2(type=' + this.type + ', prefixText=' + this.prefixText + ', icon=' + this.icon + ', title=' + this.title + ', link=' + this.link + ', reportExtra=' + this.reportExtra + ')'; + } + hashCode() { + var result = this.type; + result = imul(result, 31) + getStringHashCode(this.prefixText) | 0; + result = imul(result, 31) + (this.icon == null ? 0 : this.icon.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.title) | 0; + result = imul(result, 31) + getStringHashCode(this.link) | 0; + result = imul(result, 31) + getStringHashCode(this.reportExtra) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KOperationV2)) + return false; + var tmp0_other_with_cast = other instanceof KOperationV2 ? other : THROW_CCE(); + if (!(this.type === tmp0_other_with_cast.type)) + return false; + if (!(this.prefixText === tmp0_other_with_cast.prefixText)) + return false; + if (!equals(this.icon, tmp0_other_with_cast.icon)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.link === tmp0_other_with_cast.link)) + return false; + if (!(this.reportExtra === tmp0_other_with_cast.reportExtra)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KOperationV2_m09fxw_k$(seen1, type, prefixText, icon, title, link, reportExtra, serializationConstructorMarker) { + Companion_instance_1380; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1367().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.type = 0; + else + $this.type = type; + if (0 === (seen1 & 2)) + $this.prefixText = ''; + else + $this.prefixText = prefixText; + if (0 === (seen1 & 4)) + $this.icon = null; + else + $this.icon = icon; + if (0 === (seen1 & 8)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 16)) + $this.link = ''; + else + $this.link = link; + if (0 === (seen1 & 32)) + $this.reportExtra = ''; + else + $this.reportExtra = reportExtra; + return $this; + } + } + class Companion_1381 { + constructor() { + this.targetPath = '/bilibili.main.community.reply.v1.VoteCard.Option'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1368(); + } + } + class $serializer_1368 { + constructor() { + $serializer_instance_1368 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KVoteCard.KOption', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('idx', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('desc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('count', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_local2 = new Long(0, 0); + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KOption_1.new_com_bapis_bilibili_main_community_reply_v1_KVoteCard_KOption_s4s0ok_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_nqh6la_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.idx.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.idx); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.desc === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.desc); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.count.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.count); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_nqh6la_k$(encoder, value instanceof KOption_1 ? value : THROW_CCE()); + } + } + class KOption_1 { + constructor(idx, desc, count) { + Companion_instance_1381; + idx = idx === VOID ? new Long(0, 0) : idx; + desc = desc === VOID ? '' : desc; + count = count === VOID ? new Long(0, 0) : count; + this.idx = idx; + this.desc = desc; + this.count = count; + } + get_idx_18j3qk_k$() { + return this.idx; + } + get_desc_woknve_k$() { + return this.desc; + } + get_count_ipufhi_k$() { + return this.count; + } + component1_7eebsc_k$() { + return this.idx; + } + component2_7eebsb_k$() { + return this.desc; + } + component3_7eebsa_k$() { + return this.count; + } + copy_pz1b51_k$(idx, desc, count) { + return new KOption_1(idx, desc, count); + } + copy(idx, desc, count, $super) { + idx = idx === VOID ? this.idx : idx; + desc = desc === VOID ? this.desc : desc; + count = count === VOID ? this.count : count; + return this.copy_pz1b51_k$(idx, desc, count); + } + toString() { + return 'KOption(idx=' + this.idx.toString() + ', desc=' + this.desc + ', count=' + this.count.toString() + ')'; + } + hashCode() { + var result = this.idx.hashCode(); + result = imul(result, 31) + getStringHashCode(this.desc) | 0; + result = imul(result, 31) + this.count.hashCode() | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KOption_1)) + return false; + var tmp0_other_with_cast = other instanceof KOption_1 ? other : THROW_CCE(); + if (!this.idx.equals(tmp0_other_with_cast.idx)) + return false; + if (!(this.desc === tmp0_other_with_cast.desc)) + return false; + if (!this.count.equals(tmp0_other_with_cast.count)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KVoteCard_KOption_s4s0ok_k$(seen1, idx, desc, count, serializationConstructorMarker) { + Companion_instance_1381; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1368().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.idx = new Long(0, 0); + else + $this.idx = idx; + if (0 === (seen1 & 2)) + $this.desc = ''; + else + $this.desc = desc; + if (0 === (seen1 & 4)) + $this.count = new Long(0, 0); + else + $this.count = count; + return $this; + } + } + class Companion_1382 { + constructor() { + Companion_instance_1382 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, new ArrayListSerializer($serializer_getInstance_1368()), null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.main.community.reply.v1.VoteCard'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1369(); + } + } + class $serializer_1369 { + constructor() { + $serializer_instance_1369 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KVoteCard', this, 5); + tmp0_serialDesc.addElement_5pzumi_k$('voteId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('count', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('options', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('myVoteOption', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_1382().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), tmp0_cached[3], LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_local2 = new Long(0, 0); + var tmp7_local3 = null; + var tmp8_local4 = new Long(0, 0); + var tmp9_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp10_cached = Companion_getInstance_1382().$childSerializers_1; + if (tmp9_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp9_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 3, tmp10_cached[3], tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + } else + while (tmp1_flag) { + tmp2_index = tmp9_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp9_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 3, tmp10_cached[3], tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp9_input.endStructure_1xqz0n_k$(tmp0_desc); + return KVoteCard.new_com_bapis_bilibili_main_community_reply_v1_KVoteCard_c74lfv_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); + } + serialize_n8cfv8_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_1382().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.voteId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.voteId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.count.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.count); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !equals(value.options, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 3, tmp2_cached[3], value.options); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !value.myVoteOption.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 4, value.myVoteOption); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_n8cfv8_k$(encoder, value instanceof KVoteCard ? value : THROW_CCE()); + } + } + class KVoteCard { + constructor(voteId, title, count, options, myVoteOption) { + Companion_getInstance_1382(); + voteId = voteId === VOID ? new Long(0, 0) : voteId; + title = title === VOID ? '' : title; + count = count === VOID ? new Long(0, 0) : count; + options = options === VOID ? emptyList() : options; + myVoteOption = myVoteOption === VOID ? new Long(0, 0) : myVoteOption; + this.voteId = voteId; + this.title = title; + this.count = count; + this.options = options; + this.myVoteOption = myVoteOption; + } + get_voteId_l04v5a_k$() { + return this.voteId; + } + get_title_iz32un_k$() { + return this.title; + } + get_count_ipufhi_k$() { + return this.count; + } + get_options_jecmyz_k$() { + return this.options; + } + get_myVoteOption_v7oovg_k$() { + return this.myVoteOption; + } + component1_7eebsc_k$() { + return this.voteId; + } + component2_7eebsb_k$() { + return this.title; + } + component3_7eebsa_k$() { + return this.count; + } + component4_7eebs9_k$() { + return this.options; + } + component5_7eebs8_k$() { + return this.myVoteOption; + } + copy_mq2zk2_k$(voteId, title, count, options, myVoteOption) { + return new KVoteCard(voteId, title, count, options, myVoteOption); + } + copy(voteId, title, count, options, myVoteOption, $super) { + voteId = voteId === VOID ? this.voteId : voteId; + title = title === VOID ? this.title : title; + count = count === VOID ? this.count : count; + options = options === VOID ? this.options : options; + myVoteOption = myVoteOption === VOID ? this.myVoteOption : myVoteOption; + return this.copy_mq2zk2_k$(voteId, title, count, options, myVoteOption); + } + toString() { + return 'KVoteCard(voteId=' + this.voteId.toString() + ', title=' + this.title + ', count=' + this.count.toString() + ', options=' + this.options + ', myVoteOption=' + this.myVoteOption.toString() + ')'; + } + hashCode() { + var result = this.voteId.hashCode(); + result = imul(result, 31) + getStringHashCode(this.title) | 0; + result = imul(result, 31) + this.count.hashCode() | 0; + result = imul(result, 31) + hashCode(this.options) | 0; + result = imul(result, 31) + this.myVoteOption.hashCode() | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KVoteCard)) + return false; + var tmp0_other_with_cast = other instanceof KVoteCard ? other : THROW_CCE(); + if (!this.voteId.equals(tmp0_other_with_cast.voteId)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!this.count.equals(tmp0_other_with_cast.count)) + return false; + if (!equals(this.options, tmp0_other_with_cast.options)) + return false; + if (!this.myVoteOption.equals(tmp0_other_with_cast.myVoteOption)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KVoteCard_c74lfv_k$(seen1, voteId, title, count, options, myVoteOption, serializationConstructorMarker) { + Companion_getInstance_1382(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1369().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.voteId = new Long(0, 0); + else + $this.voteId = voteId; + if (0 === (seen1 & 2)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 4)) + $this.count = new Long(0, 0); + else + $this.count = count; + if (0 === (seen1 & 8)) + $this.options = emptyList(); + else + $this.options = options; + if (0 === (seen1 & 16)) + $this.myVoteOption = new Long(0, 0); + else + $this.myVoteOption = myVoteOption; + return $this; + } + } + class Companion_1383 { + constructor() { + this.targetPath = '/bilibili.main.community.reply.v1.ESportsGradeCard'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1370(); + } + } + class $serializer_1370 { + constructor() { + $serializer_instance_1370 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KESportsGradeCard', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('description', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('image', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('link', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KESportsGradeCard.new_com_bapis_bilibili_main_community_reply_v1_KESportsGradeCard_loa6kb_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_25c7v9_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.description === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.description); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.image === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.image); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.link === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.link); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_25c7v9_k$(encoder, value instanceof KESportsGradeCard ? value : THROW_CCE()); + } + } + class KESportsGradeCard { + constructor(title, description, image, link) { + Companion_instance_1383; + title = title === VOID ? '' : title; + description = description === VOID ? '' : description; + image = image === VOID ? '' : image; + link = link === VOID ? '' : link; + this.title = title; + this.description = description; + this.image = image; + this.link = link; + } + get_title_iz32un_k$() { + return this.title; + } + get_description_emjre5_k$() { + return this.description; + } + get_image_it3i2a_k$() { + return this.image; + } + get_link_wopumb_k$() { + return this.link; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.description; + } + component3_7eebsa_k$() { + return this.image; + } + component4_7eebs9_k$() { + return this.link; + } + copy_hmmiyd_k$(title, description, image, link) { + return new KESportsGradeCard(title, description, image, link); + } + copy(title, description, image, link, $super) { + title = title === VOID ? this.title : title; + description = description === VOID ? this.description : description; + image = image === VOID ? this.image : image; + link = link === VOID ? this.link : link; + return this.copy_hmmiyd_k$(title, description, image, link); + } + toString() { + return 'KESportsGradeCard(title=' + this.title + ', description=' + this.description + ', image=' + this.image + ', link=' + this.link + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.description) | 0; + result = imul(result, 31) + getStringHashCode(this.image) | 0; + result = imul(result, 31) + getStringHashCode(this.link) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KESportsGradeCard)) + return false; + var tmp0_other_with_cast = other instanceof KESportsGradeCard ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.description === tmp0_other_with_cast.description)) + return false; + if (!(this.image === tmp0_other_with_cast.image)) + return false; + if (!(this.link === tmp0_other_with_cast.link)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KESportsGradeCard_loa6kb_k$(seen1, title, description, image, link, serializationConstructorMarker) { + Companion_instance_1383; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1370().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.description = ''; + else + $this.description = description; + if (0 === (seen1 & 4)) + $this.image = ''; + else + $this.image = image; + if (0 === (seen1 & 8)) + $this.link = ''; + else + $this.link = link; + return $this; + } + } + class Companion_1384 { + constructor() { + this.targetPath = '/bilibili.main.community.reply.v1.AtSearchReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1371(); + } + } + class $serializer_1371 { + constructor() { + $serializer_instance_1371 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KAtSearchReq', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('mid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('keyword', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KAtSearchReq.new_com_bapis_bilibili_main_community_reply_v1_KAtSearchReq_5walea_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_r1pbzf_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.mid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.mid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.keyword === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.keyword); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_r1pbzf_k$(encoder, value instanceof KAtSearchReq ? value : THROW_CCE()); + } + } + class KAtSearchReq { + constructor(mid, keyword) { + Companion_instance_1384; + mid = mid === VOID ? new Long(0, 0) : mid; + keyword = keyword === VOID ? '' : keyword; + this.mid = mid; + this.keyword = keyword; + } + get_mid_18j0o1_k$() { + return this.mid; + } + get_keyword_c7bncw_k$() { + return this.keyword; + } + component1_7eebsc_k$() { + return this.mid; + } + component2_7eebsb_k$() { + return this.keyword; + } + copy_ezpntz_k$(mid, keyword) { + return new KAtSearchReq(mid, keyword); + } + copy(mid, keyword, $super) { + mid = mid === VOID ? this.mid : mid; + keyword = keyword === VOID ? this.keyword : keyword; + return this.copy_ezpntz_k$(mid, keyword); + } + toString() { + return 'KAtSearchReq(mid=' + this.mid.toString() + ', keyword=' + this.keyword + ')'; + } + hashCode() { + var result = this.mid.hashCode(); + result = imul(result, 31) + getStringHashCode(this.keyword) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KAtSearchReq)) + return false; + var tmp0_other_with_cast = other instanceof KAtSearchReq ? other : THROW_CCE(); + if (!this.mid.equals(tmp0_other_with_cast.mid)) + return false; + if (!(this.keyword === tmp0_other_with_cast.keyword)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KAtSearchReq_5walea_k$(seen1, mid, keyword, serializationConstructorMarker) { + Companion_instance_1384; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1371().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.mid = new Long(0, 0); + else + $this.mid = mid; + if (0 === (seen1 & 2)) + $this.keyword = ''; + else + $this.keyword = keyword; + return $this; + } + } + class Companion_1385 { + constructor() { + this.targetPath = '/bilibili.main.community.reply.v1.AtItem'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1372(); + } + } + class $serializer_1372 { + constructor() { + $serializer_instance_1372 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KAtItem', this, 5); + tmp0_serialDesc.addElement_5pzumi_k$('mid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('name', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('face', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('fans', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('officialVerifyType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = 0; + var tmp8_local4 = 0; + var tmp9_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp9_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + } else + while (tmp1_flag) { + tmp2_index = tmp9_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp9_input.endStructure_1xqz0n_k$(tmp0_desc); + return KAtItem.new_com_bapis_bilibili_main_community_reply_v1_KAtItem_q3vxy4_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); + } + serialize_swl7p4_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.mid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.mid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.name === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.name); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.face === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.face); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.fans === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 3, value.fans); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.officialVerifyType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 4, value.officialVerifyType); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_swl7p4_k$(encoder, value instanceof KAtItem ? value : THROW_CCE()); + } + } + class KAtItem { + constructor(mid, name, face, fans, officialVerifyType) { + Companion_instance_1385; + mid = mid === VOID ? new Long(0, 0) : mid; + name = name === VOID ? '' : name; + face = face === VOID ? '' : face; + fans = fans === VOID ? 0 : fans; + officialVerifyType = officialVerifyType === VOID ? 0 : officialVerifyType; + this.mid = mid; + this.name = name; + this.face = face; + this.fans = fans; + this.officialVerifyType = officialVerifyType; + } + get_mid_18j0o1_k$() { + return this.mid; + } + get_name_woqyms_k$() { + return this.name; + } + get_face_woluhy_k$() { + return this.face; + } + get_fans_wolurt_k$() { + return this.fans; + } + get_officialVerifyType_s7q4ex_k$() { + return this.officialVerifyType; + } + component1_7eebsc_k$() { + return this.mid; + } + component2_7eebsb_k$() { + return this.name; + } + component3_7eebsa_k$() { + return this.face; + } + component4_7eebs9_k$() { + return this.fans; + } + component5_7eebs8_k$() { + return this.officialVerifyType; + } + copy_sdmw3x_k$(mid, name, face, fans, officialVerifyType) { + return new KAtItem(mid, name, face, fans, officialVerifyType); + } + copy(mid, name, face, fans, officialVerifyType, $super) { + mid = mid === VOID ? this.mid : mid; + name = name === VOID ? this.name : name; + face = face === VOID ? this.face : face; + fans = fans === VOID ? this.fans : fans; + officialVerifyType = officialVerifyType === VOID ? this.officialVerifyType : officialVerifyType; + return this.copy_sdmw3x_k$(mid, name, face, fans, officialVerifyType); + } + toString() { + return 'KAtItem(mid=' + this.mid.toString() + ', name=' + this.name + ', face=' + this.face + ', fans=' + this.fans + ', officialVerifyType=' + this.officialVerifyType + ')'; + } + hashCode() { + var result = this.mid.hashCode(); + result = imul(result, 31) + getStringHashCode(this.name) | 0; + result = imul(result, 31) + getStringHashCode(this.face) | 0; + result = imul(result, 31) + this.fans | 0; + result = imul(result, 31) + this.officialVerifyType | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KAtItem)) + return false; + var tmp0_other_with_cast = other instanceof KAtItem ? other : THROW_CCE(); + if (!this.mid.equals(tmp0_other_with_cast.mid)) + return false; + if (!(this.name === tmp0_other_with_cast.name)) + return false; + if (!(this.face === tmp0_other_with_cast.face)) + return false; + if (!(this.fans === tmp0_other_with_cast.fans)) + return false; + if (!(this.officialVerifyType === tmp0_other_with_cast.officialVerifyType)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KAtItem_q3vxy4_k$(seen1, mid, name, face, fans, officialVerifyType, serializationConstructorMarker) { + Companion_instance_1385; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1372().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.mid = new Long(0, 0); + else + $this.mid = mid; + if (0 === (seen1 & 2)) + $this.name = ''; + else + $this.name = name; + if (0 === (seen1 & 4)) + $this.face = ''; + else + $this.face = face; + if (0 === (seen1 & 8)) + $this.fans = 0; + else + $this.fans = fans; + if (0 === (seen1 & 16)) + $this.officialVerifyType = 0; + else + $this.officialVerifyType = officialVerifyType; + return $this; + } + } + class Companion_1386 { + constructor() { + Companion_instance_1386 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KAtGroup$KType$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KAtGroup$KType$Companion$_anonymous__2mgqb1); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_176(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.main.community.reply.v1.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KType_UNRECOGNIZED_getInstance_4() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.main.community.reply.v1.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KType with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_176(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_1373 { + constructor() { + $serializer_instance_1373 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.main.community.reply.v1.KAtGroup.KType', 6); + tmp0_serialDesc.addElement_5pzumi_k$('DEFAULT', false); + tmp0_serialDesc.addElement_5pzumi_k$('RECENT', false); + tmp0_serialDesc.addElement_5pzumi_k$('FOLLOW', false); + tmp0_serialDesc.addElement_5pzumi_k$('FANS', false); + tmp0_serialDesc.addElement_5pzumi_k$('OTHERS', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_176()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_8yk6zo_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_8yk6zo_k$(encoder, value instanceof KType_5 ? value : THROW_CCE()); + } + } + class KType_5 extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_1387 { + constructor() { + Companion_instance_1387 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, new ArrayListSerializer($serializer_getInstance_1372())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.main.community.reply.v1.AtGroup'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1374(); + } + } + class $serializer_1374 { + constructor() { + $serializer_instance_1374 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KAtGroup', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('groupType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('groupName', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('items', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_1387().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), StringSerializer_getInstance(), tmp0_cached[2]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp8_cached = Companion_getInstance_1387().$childSerializers_1; + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp8_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp8_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KAtGroup.new_com_bapis_bilibili_main_community_reply_v1_KAtGroup_r9q9l_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_hoks7g_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_1387().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.groupType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.groupType); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.groupName === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.groupName); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !equals(value.items, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 2, tmp2_cached[2], value.items); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_hoks7g_k$(encoder, value instanceof KAtGroup ? value : THROW_CCE()); + } + } + class KAtGroup { + constructor(groupType, groupName, items) { + Companion_getInstance_1387(); + groupType = groupType === VOID ? 0 : groupType; + groupName = groupName === VOID ? '' : groupName; + items = items === VOID ? emptyList() : items; + this.groupType = groupType; + this.groupName = groupName; + this.items = items; + } + get_groupType_g0efrk_k$() { + return this.groupType; + } + get_groupName_g0irjz_k$() { + return this.groupName; + } + get_items_it823b_k$() { + return this.items; + } + groupTypeEnum() { + return Companion_getInstance_1386().fromValue(this.groupType); + } + component1_7eebsc_k$() { + return this.groupType; + } + component2_7eebsb_k$() { + return this.groupName; + } + component3_7eebsa_k$() { + return this.items; + } + copy_gyvm6s_k$(groupType, groupName, items) { + return new KAtGroup(groupType, groupName, items); + } + copy(groupType, groupName, items, $super) { + groupType = groupType === VOID ? this.groupType : groupType; + groupName = groupName === VOID ? this.groupName : groupName; + items = items === VOID ? this.items : items; + return this.copy_gyvm6s_k$(groupType, groupName, items); + } + toString() { + return 'KAtGroup(groupType=' + this.groupType + ', groupName=' + this.groupName + ', items=' + this.items + ')'; + } + hashCode() { + var result = this.groupType; + result = imul(result, 31) + getStringHashCode(this.groupName) | 0; + result = imul(result, 31) + hashCode(this.items) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KAtGroup)) + return false; + var tmp0_other_with_cast = other instanceof KAtGroup ? other : THROW_CCE(); + if (!(this.groupType === tmp0_other_with_cast.groupType)) + return false; + if (!(this.groupName === tmp0_other_with_cast.groupName)) + return false; + if (!equals(this.items, tmp0_other_with_cast.items)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KAtGroup_r9q9l_k$(seen1, groupType, groupName, items, serializationConstructorMarker) { + Companion_getInstance_1387(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1374().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.groupType = 0; + else + $this.groupType = groupType; + if (0 === (seen1 & 2)) + $this.groupName = ''; + else + $this.groupName = groupName; + if (0 === (seen1 & 4)) + $this.items = emptyList(); + else + $this.items = items; + return $this; + } + } + class Companion_1388 { + constructor() { + Companion_instance_1388 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer($serializer_getInstance_1374())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.main.community.reply.v1.AtSearchReply'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1375(); + } + } + class $serializer_1375 { + constructor() { + $serializer_instance_1375 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KAtSearchReply', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('groups', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_1388().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp6_cached = Companion_getInstance_1388().$childSerializers_1; + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KAtSearchReply.new_com_bapis_bilibili_main_community_reply_v1_KAtSearchReply_6l1lsz_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_ohokon_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_1388().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.groups, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.groups); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_ohokon_k$(encoder, value instanceof KAtSearchReply ? value : THROW_CCE()); + } + } + class KAtSearchReply { + constructor(groups) { + Companion_getInstance_1388(); + groups = groups === VOID ? emptyList() : groups; + this.groups = groups; + } + get_groups_dy12vx_k$() { + return this.groups; + } + component1_7eebsc_k$() { + return this.groups; + } + copy_ymmvce_k$(groups) { + return new KAtSearchReply(groups); + } + copy(groups, $super) { + groups = groups === VOID ? this.groups : groups; + return this.copy_ymmvce_k$(groups); + } + toString() { + return 'KAtSearchReply(groups=' + this.groups + ')'; + } + hashCode() { + return hashCode(this.groups); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KAtSearchReply)) + return false; + var tmp0_other_with_cast = other instanceof KAtSearchReply ? other : THROW_CCE(); + if (!equals(this.groups, tmp0_other_with_cast.groups)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KAtSearchReply_6l1lsz_k$(seen1, groups, serializationConstructorMarker) { + Companion_getInstance_1388(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1375().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.groups = emptyList(); + else + $this.groups = groups; + return $this; + } + } + class Companion_1389 { + constructor() { + Companion_instance_1389 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KReplyInfoReq$KReplyInfoScene$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KReplyInfoReq$KReplyInfoScene$Companion$_anonymous__yd88xp); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_177(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.main.community.reply.v1.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KReplyInfoScene_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.main.community.reply.v1.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KReplyInfoScene with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_177(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_1376 { + constructor() { + $serializer_instance_1376 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.main.community.reply.v1.KReplyInfoReq.KReplyInfoScene', 2); + tmp0_serialDesc.addElement_5pzumi_k$('INSERT', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_177()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_t9stvm_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_t9stvm_k$(encoder, value instanceof KReplyInfoScene ? value : THROW_CCE()); + } + } + class KReplyInfoScene extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_1390 { + constructor() { + this.targetPath = '/bilibili.main.community.reply.v1.ReplyInfoReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1377(); + } + } + class $serializer_1377 { + constructor() { + $serializer_instance_1377 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KReplyInfoReq', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('rpid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('scene', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = 0; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KReplyInfoReq.new_com_bapis_bilibili_main_community_reply_v1_KReplyInfoReq_a4d6gi_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_wqvty0_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.rpid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.rpid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.scene === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.scene); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_wqvty0_k$(encoder, value instanceof KReplyInfoReq ? value : THROW_CCE()); + } + } + class KReplyInfoReq { + constructor(rpid, scene) { + Companion_instance_1390; + rpid = rpid === VOID ? new Long(0, 0) : rpid; + scene = scene === VOID ? 0 : scene; + this.rpid = rpid; + this.scene = scene; + } + get_rpid_wottlu_k$() { + return this.rpid; + } + get_scene_iyf59f_k$() { + return this.scene; + } + sceneEnum() { + return Companion_getInstance_1389().fromValue(this.scene); + } + component1_7eebsc_k$() { + return this.rpid; + } + component2_7eebsb_k$() { + return this.scene; + } + copy_hlxmm3_k$(rpid, scene) { + return new KReplyInfoReq(rpid, scene); + } + copy(rpid, scene, $super) { + rpid = rpid === VOID ? this.rpid : rpid; + scene = scene === VOID ? this.scene : scene; + return this.copy_hlxmm3_k$(rpid, scene); + } + toString() { + return 'KReplyInfoReq(rpid=' + this.rpid.toString() + ', scene=' + this.scene + ')'; + } + hashCode() { + var result = this.rpid.hashCode(); + result = imul(result, 31) + this.scene | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KReplyInfoReq)) + return false; + var tmp0_other_with_cast = other instanceof KReplyInfoReq ? other : THROW_CCE(); + if (!this.rpid.equals(tmp0_other_with_cast.rpid)) + return false; + if (!(this.scene === tmp0_other_with_cast.scene)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KReplyInfoReq_a4d6gi_k$(seen1, rpid, scene, serializationConstructorMarker) { + Companion_instance_1390; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1377().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.rpid = new Long(0, 0); + else + $this.rpid = rpid; + if (0 === (seen1 & 2)) + $this.scene = 0; + else + $this.scene = scene; + return $this; + } + } + class Companion_1391 { + constructor() { + this.targetPath = '/bilibili.main.community.reply.v1.ReplyInfoReply'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1378(); + } + } + class $serializer_1378 { + constructor() { + $serializer_instance_1378 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KReplyInfoReply', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('reply', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_1303())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_1303(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_1303(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KReplyInfoReply.new_com_bapis_bilibili_main_community_reply_v1_KReplyInfoReply_8embiq_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_wahsro_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.reply == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_1303(), value.reply); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_wahsro_k$(encoder, value instanceof KReplyInfoReply ? value : THROW_CCE()); + } + } + class KReplyInfoReply { + constructor(reply) { + Companion_instance_1391; + reply = reply === VOID ? null : reply; + this.reply = reply; + } + get_reply_ixwurl_k$() { + return this.reply; + } + component1_7eebsc_k$() { + return this.reply; + } + copy_cokitd_k$(reply) { + return new KReplyInfoReply(reply); + } + copy(reply, $super) { + reply = reply === VOID ? this.reply : reply; + return this.copy_cokitd_k$(reply); + } + toString() { + return 'KReplyInfoReply(reply=' + this.reply + ')'; + } + hashCode() { + return this.reply == null ? 0 : this.reply.hashCode(); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KReplyInfoReply)) + return false; + var tmp0_other_with_cast = other instanceof KReplyInfoReply ? other : THROW_CCE(); + if (!equals(this.reply, tmp0_other_with_cast.reply)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KReplyInfoReply_8embiq_k$(seen1, reply, serializationConstructorMarker) { + Companion_instance_1391; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1378().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.reply = null; + else + $this.reply = reply; + return $this; + } + } + class Companion_1392 { + constructor() { + Companion_instance_1392 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, null, null, new ArrayListSerializer($serializer_getInstance_1383()), null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.main.community.reply.v1.QoeInfo'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1379(); + } + } + class $serializer_1379 { + constructor() { + $serializer_instance_1379 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KQoeInfo', this, 8); + tmp0_serialDesc.addElement_5pzumi_k$('id', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('style', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('feedbackTitle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('scoreItems', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('displayRank', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('form', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_1392().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), tmp0_cached[5], LongSerializer_getInstance(), get_nullable($serializer_getInstance_1380())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = 0; + var tmp6_local2 = 0; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = new Long(0, 0); + var tmp11_local7 = null; + var tmp12_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp13_cached = Companion_getInstance_1392().$childSerializers_1; + if (tmp12_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp12_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 5, tmp13_cached[5], tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_1380(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + } else + while (tmp1_flag) { + tmp2_index = tmp12_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp12_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 5, tmp13_cached[5], tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_1380(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp12_input.endStructure_1xqz0n_k$(tmp0_desc); + return KQoeInfo.new_com_bapis_bilibili_main_community_reply_v1_KQoeInfo_wfokjj_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null); + } + serialize_a2kkkd_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_1392().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.id.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.id); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.type === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.type); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.style === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.style); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.feedbackTitle === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.feedbackTitle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !equals(value.scoreItems, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 5, tmp2_cached[5], value.scoreItems); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !value.displayRank.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 6, value.displayRank); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.form == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 7, $serializer_getInstance_1380(), value.form); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_a2kkkd_k$(encoder, value instanceof KQoeInfo ? value : THROW_CCE()); + } + } + class KQoeInfo { + constructor(id, type, style, title, feedbackTitle, scoreItems, displayRank, form) { + Companion_getInstance_1392(); + id = id === VOID ? new Long(0, 0) : id; + type = type === VOID ? 0 : type; + style = style === VOID ? 0 : style; + title = title === VOID ? '' : title; + feedbackTitle = feedbackTitle === VOID ? '' : feedbackTitle; + scoreItems = scoreItems === VOID ? emptyList() : scoreItems; + displayRank = displayRank === VOID ? new Long(0, 0) : displayRank; + form = form === VOID ? null : form; + this.id = id; + this.type = type; + this.style = style; + this.title = title; + this.feedbackTitle = feedbackTitle; + this.scoreItems = scoreItems; + this.displayRank = displayRank; + this.form = form; + } + get_id_kntnx8_k$() { + return this.id; + } + get_type_wovaf7_k$() { + return this.type; + } + get_style_iyqetk_k$() { + return this.style; + } + get_title_iz32un_k$() { + return this.title; + } + get_feedbackTitle_xmrec6_k$() { + return this.feedbackTitle; + } + get_scoreItems_5onf87_k$() { + return this.scoreItems; + } + get_displayRank_ssa3bv_k$() { + return this.displayRank; + } + get_form_wom58t_k$() { + return this.form; + } + component1_7eebsc_k$() { + return this.id; + } + component2_7eebsb_k$() { + return this.type; + } + component3_7eebsa_k$() { + return this.style; + } + component4_7eebs9_k$() { + return this.title; + } + component5_7eebs8_k$() { + return this.feedbackTitle; + } + component6_7eebs7_k$() { + return this.scoreItems; + } + component7_7eebs6_k$() { + return this.displayRank; + } + component8_7eebs5_k$() { + return this.form; + } + copy_gbsjo4_k$(id, type, style, title, feedbackTitle, scoreItems, displayRank, form) { + return new KQoeInfo(id, type, style, title, feedbackTitle, scoreItems, displayRank, form); + } + copy(id, type, style, title, feedbackTitle, scoreItems, displayRank, form, $super) { + id = id === VOID ? this.id : id; + type = type === VOID ? this.type : type; + style = style === VOID ? this.style : style; + title = title === VOID ? this.title : title; + feedbackTitle = feedbackTitle === VOID ? this.feedbackTitle : feedbackTitle; + scoreItems = scoreItems === VOID ? this.scoreItems : scoreItems; + displayRank = displayRank === VOID ? this.displayRank : displayRank; + form = form === VOID ? this.form : form; + return this.copy_gbsjo4_k$(id, type, style, title, feedbackTitle, scoreItems, displayRank, form); + } + toString() { + return 'KQoeInfo(id=' + this.id.toString() + ', type=' + this.type + ', style=' + this.style + ', title=' + this.title + ', feedbackTitle=' + this.feedbackTitle + ', scoreItems=' + this.scoreItems + ', displayRank=' + this.displayRank.toString() + ', form=' + this.form + ')'; + } + hashCode() { + var result = this.id.hashCode(); + result = imul(result, 31) + this.type | 0; + result = imul(result, 31) + this.style | 0; + result = imul(result, 31) + getStringHashCode(this.title) | 0; + result = imul(result, 31) + getStringHashCode(this.feedbackTitle) | 0; + result = imul(result, 31) + hashCode(this.scoreItems) | 0; + result = imul(result, 31) + this.displayRank.hashCode() | 0; + result = imul(result, 31) + (this.form == null ? 0 : this.form.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KQoeInfo)) + return false; + var tmp0_other_with_cast = other instanceof KQoeInfo ? other : THROW_CCE(); + if (!this.id.equals(tmp0_other_with_cast.id)) + return false; + if (!(this.type === tmp0_other_with_cast.type)) + return false; + if (!(this.style === tmp0_other_with_cast.style)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.feedbackTitle === tmp0_other_with_cast.feedbackTitle)) + return false; + if (!equals(this.scoreItems, tmp0_other_with_cast.scoreItems)) + return false; + if (!this.displayRank.equals(tmp0_other_with_cast.displayRank)) + return false; + if (!equals(this.form, tmp0_other_with_cast.form)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KQoeInfo_wfokjj_k$(seen1, id, type, style, title, feedbackTitle, scoreItems, displayRank, form, serializationConstructorMarker) { + Companion_getInstance_1392(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1379().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.id = new Long(0, 0); + else + $this.id = id; + if (0 === (seen1 & 2)) + $this.type = 0; + else + $this.type = type; + if (0 === (seen1 & 4)) + $this.style = 0; + else + $this.style = style; + if (0 === (seen1 & 8)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 16)) + $this.feedbackTitle = ''; + else + $this.feedbackTitle = feedbackTitle; + if (0 === (seen1 & 32)) + $this.scoreItems = emptyList(); + else + $this.scoreItems = scoreItems; + if (0 === (seen1 & 64)) + $this.displayRank = new Long(0, 0); + else + $this.displayRank = displayRank; + if (0 === (seen1 & 128)) + $this.form = null; + else + $this.form = form; + return $this; + } + } + class Companion_1393 { + constructor() { + Companion_instance_1393 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, new ArrayListSerializer($serializer_getInstance_1381())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.main.community.reply.v1.Form'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1380(); + } + } + class $serializer_1380 { + constructor() { + $serializer_instance_1380 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KForm', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('options', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_1393().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), tmp0_cached[1]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp7_cached = Companion_getInstance_1393().$childSerializers_1; + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KForm.new_com_bapis_bilibili_main_community_reply_v1_KForm_bqxuqg_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_xd9bti_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_1393().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.type === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.type); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !equals(value.options, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 1, tmp2_cached[1], value.options); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_xd9bti_k$(encoder, value instanceof KForm ? value : THROW_CCE()); + } + } + class KForm { + constructor(type, options) { + Companion_getInstance_1393(); + type = type === VOID ? 0 : type; + options = options === VOID ? emptyList() : options; + this.type = type; + this.options = options; + } + get_type_wovaf7_k$() { + return this.type; + } + get_options_jecmyz_k$() { + return this.options; + } + component1_7eebsc_k$() { + return this.type; + } + component2_7eebsb_k$() { + return this.options; + } + copy_wt5cs4_k$(type, options) { + return new KForm(type, options); + } + copy(type, options, $super) { + type = type === VOID ? this.type : type; + options = options === VOID ? this.options : options; + return this.copy_wt5cs4_k$(type, options); + } + toString() { + return 'KForm(type=' + this.type + ', options=' + this.options + ')'; + } + hashCode() { + var result = this.type; + result = imul(result, 31) + hashCode(this.options) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KForm)) + return false; + var tmp0_other_with_cast = other instanceof KForm ? other : THROW_CCE(); + if (!(this.type === tmp0_other_with_cast.type)) + return false; + if (!equals(this.options, tmp0_other_with_cast.options)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KForm_bqxuqg_k$(seen1, type, options, serializationConstructorMarker) { + Companion_getInstance_1393(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1380().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.type = 0; + else + $this.type = type; + if (0 === (seen1 & 2)) + $this.options = emptyList(); + else + $this.options = options; + return $this; + } + } + class Companion_1394 { + constructor() { + Companion_instance_1394 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, new ArrayListSerializer(StringSerializer_getInstance())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.main.community.reply.v1.QoeOption'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1381(); + } + } + class $serializer_1381 { + constructor() { + $serializer_instance_1381 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KQoeOption', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('score', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('imgUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('desc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_1394().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), FloatSerializer_getInstance(), StringSerializer_getInstance(), tmp0_cached[3]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = 0.0; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp9_cached = Companion_getInstance_1394().$childSerializers_1; + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeFloatElement_p2q55h_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 3, tmp9_cached[3], tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeFloatElement_p2q55h_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 3, tmp9_cached[3], tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KQoeOption.new_com_bapis_bilibili_main_community_reply_v1_KQoeOption_8bvuh_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_ruu090_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_1394().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !equals(value.score, 0.0)) { + tmp1_output.encodeFloatElement_oe8hn_k$(tmp0_desc, 1, value.score); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.imgUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.imgUrl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !equals(value.desc, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 3, tmp2_cached[3], value.desc); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_ruu090_k$(encoder, value instanceof KQoeOption ? value : THROW_CCE()); + } + } + class KQoeOption { + constructor(title, score, imgUrl, desc) { + Companion_getInstance_1394(); + title = title === VOID ? '' : title; + score = score === VOID ? 0.0 : score; + imgUrl = imgUrl === VOID ? '' : imgUrl; + desc = desc === VOID ? emptyList() : desc; + this.title = title; + this.score = score; + this.imgUrl = imgUrl; + this.desc = desc; + } + get_title_iz32un_k$() { + return this.title; + } + get_score_iyfcrt_k$() { + return this.score; + } + get_imgUrl_et7l4l_k$() { + return this.imgUrl; + } + get_desc_woknve_k$() { + return this.desc; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.score; + } + component3_7eebsa_k$() { + return this.imgUrl; + } + component4_7eebs9_k$() { + return this.desc; + } + copy_vhijvp_k$(title, score, imgUrl, desc) { + return new KQoeOption(title, score, imgUrl, desc); + } + copy(title, score, imgUrl, desc, $super) { + title = title === VOID ? this.title : title; + score = score === VOID ? this.score : score; + imgUrl = imgUrl === VOID ? this.imgUrl : imgUrl; + desc = desc === VOID ? this.desc : desc; + return this.copy_vhijvp_k$(title, score, imgUrl, desc); + } + toString() { + return 'KQoeOption(title=' + this.title + ', score=' + this.score + ', imgUrl=' + this.imgUrl + ', desc=' + this.desc + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getNumberHashCode(this.score) | 0; + result = imul(result, 31) + getStringHashCode(this.imgUrl) | 0; + result = imul(result, 31) + hashCode(this.desc) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KQoeOption)) + return false; + var tmp0_other_with_cast = other instanceof KQoeOption ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!equals(this.score, tmp0_other_with_cast.score)) + return false; + if (!(this.imgUrl === tmp0_other_with_cast.imgUrl)) + return false; + if (!equals(this.desc, tmp0_other_with_cast.desc)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KQoeOption_8bvuh_k$(seen1, title, score, imgUrl, desc, serializationConstructorMarker) { + Companion_getInstance_1394(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1381().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.score = 0.0; + else + $this.score = score; + if (0 === (seen1 & 4)) + $this.imgUrl = ''; + else + $this.imgUrl = imgUrl; + if (0 === (seen1 & 8)) + $this.desc = emptyList(); + else + $this.desc = desc; + return $this; + } + } + class Companion_1395 { + constructor() { + Companion_instance_1395 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer(StringSerializer_getInstance())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.main.community.reply.v1.QoeOptionDesc'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1382(); + } + } + class $serializer_1382 { + constructor() { + $serializer_instance_1382 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KQoeOptionDesc', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('desc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_1395().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp6_cached = Companion_getInstance_1395().$childSerializers_1; + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KQoeOptionDesc.new_com_bapis_bilibili_main_community_reply_v1_KQoeOptionDesc_tczbp6_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_tzma23_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_1395().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.desc, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.desc); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_tzma23_k$(encoder, value instanceof KQoeOptionDesc ? value : THROW_CCE()); + } + } + class KQoeOptionDesc { + constructor(desc) { + Companion_getInstance_1395(); + desc = desc === VOID ? emptyList() : desc; + this.desc = desc; + } + get_desc_woknve_k$() { + return this.desc; + } + component1_7eebsc_k$() { + return this.desc; + } + copy_is4t59_k$(desc) { + return new KQoeOptionDesc(desc); + } + copy(desc, $super) { + desc = desc === VOID ? this.desc : desc; + return this.copy_is4t59_k$(desc); + } + toString() { + return 'KQoeOptionDesc(desc=' + this.desc + ')'; + } + hashCode() { + return hashCode(this.desc); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KQoeOptionDesc)) + return false; + var tmp0_other_with_cast = other instanceof KQoeOptionDesc ? other : THROW_CCE(); + if (!equals(this.desc, tmp0_other_with_cast.desc)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KQoeOptionDesc_tczbp6_k$(seen1, desc, serializationConstructorMarker) { + Companion_getInstance_1395(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1382().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.desc = emptyList(); + else + $this.desc = desc; + return $this; + } + } + class Companion_1396 { + constructor() { + this.targetPath = '/bilibili.main.community.reply.v1.QoeScoreItem'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1383(); + } + } + class $serializer_1383 { + constructor() { + $serializer_instance_1383 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KQoeScoreItem', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('url', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('score', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), FloatSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = 0.0; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeFloatElement_p2q55h_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeFloatElement_p2q55h_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KQoeScoreItem.new_com_bapis_bilibili_main_community_reply_v1_KQoeScoreItem_6ar34e_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_hta3n4_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.url === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.url); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !equals(value.score, 0.0)) { + tmp1_output.encodeFloatElement_oe8hn_k$(tmp0_desc, 2, value.score); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_hta3n4_k$(encoder, value instanceof KQoeScoreItem ? value : THROW_CCE()); + } + } + class KQoeScoreItem { + constructor(title, url, score) { + Companion_instance_1396; + title = title === VOID ? '' : title; + url = url === VOID ? '' : url; + score = score === VOID ? 0.0 : score; + this.title = title; + this.url = url; + this.score = score; + } + get_title_iz32un_k$() { + return this.title; + } + get_url_18iuii_k$() { + return this.url; + } + get_score_iyfcrt_k$() { + return this.score; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.url; + } + component3_7eebsa_k$() { + return this.score; + } + copy_g5e6u5_k$(title, url, score) { + return new KQoeScoreItem(title, url, score); + } + copy(title, url, score, $super) { + title = title === VOID ? this.title : title; + url = url === VOID ? this.url : url; + score = score === VOID ? this.score : score; + return this.copy_g5e6u5_k$(title, url, score); + } + toString() { + return 'KQoeScoreItem(title=' + this.title + ', url=' + this.url + ', score=' + this.score + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.url) | 0; + result = imul(result, 31) + getNumberHashCode(this.score) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KQoeScoreItem)) + return false; + var tmp0_other_with_cast = other instanceof KQoeScoreItem ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.url === tmp0_other_with_cast.url)) + return false; + if (!equals(this.score, tmp0_other_with_cast.score)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KQoeScoreItem_6ar34e_k$(seen1, title, url, score, serializationConstructorMarker) { + Companion_instance_1396; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1383().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.url = ''; + else + $this.url = url; + if (0 === (seen1 & 4)) + $this.score = 0.0; + else + $this.score = score; + return $this; + } + } + class Companion_1397 { + constructor() { + Companion_instance_1397 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, null, null, new ArrayListSerializer(LongSerializer_getInstance())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.main.community.reply.v1.UserCallbackReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1384(); + } + } + class $serializer_1384 { + constructor() { + $serializer_instance_1384 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KUserCallbackReq', this, 6); + tmp0_serialDesc.addElement_5pzumi_k$('mid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('scene', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('action', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('oid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('rpids', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_1397().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), tmp0_cached[5]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = 0; + var tmp6_local2 = 0; + var tmp7_local3 = new Long(0, 0); + var tmp8_local4 = new Long(0, 0); + var tmp9_local5 = null; + var tmp10_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp11_cached = Companion_getInstance_1397().$childSerializers_1; + if (tmp10_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp10_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 5, tmp11_cached[5], tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + } else + while (tmp1_flag) { + tmp2_index = tmp10_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp10_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 5, tmp11_cached[5], tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp10_input.endStructure_1xqz0n_k$(tmp0_desc); + return KUserCallbackReq.new_com_bapis_bilibili_main_community_reply_v1_KUserCallbackReq_yebj3t_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); + } + serialize_mgejee_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_1397().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.mid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.mid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.scene === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.scene); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.action === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.action); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !value.oid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 3, value.oid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !value.type.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 4, value.type); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !equals(value.rpids, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 5, tmp2_cached[5], value.rpids); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_mgejee_k$(encoder, value instanceof KUserCallbackReq ? value : THROW_CCE()); + } + } + class KUserCallbackReq { + constructor(mid, scene, action, oid, type, rpids) { + Companion_getInstance_1397(); + mid = mid === VOID ? new Long(0, 0) : mid; + scene = scene === VOID ? 0 : scene; + action = action === VOID ? 0 : action; + oid = oid === VOID ? new Long(0, 0) : oid; + type = type === VOID ? new Long(0, 0) : type; + rpids = rpids === VOID ? emptyList() : rpids; + this.mid = mid; + this.scene = scene; + this.action = action; + this.oid = oid; + this.type = type; + this.rpids = rpids; + } + get_mid_18j0o1_k$() { + return this.mid; + } + get_scene_iyf59f_k$() { + return this.scene; + } + get_action_avldmn_k$() { + return this.action; + } + get_oid_18iz6n_k$() { + return this.oid; + } + get_type_wovaf7_k$() { + return this.type; + } + get_rpids_iy3q8h_k$() { + return this.rpids; + } + sceneEnum() { + return Companion_getInstance_1286().fromValue(this.scene); + } + actionEnum() { + return Companion_getInstance_1285().fromValue(this.action); + } + component1_7eebsc_k$() { + return this.mid; + } + component2_7eebsb_k$() { + return this.scene; + } + component3_7eebsa_k$() { + return this.action; + } + component4_7eebs9_k$() { + return this.oid; + } + component5_7eebs8_k$() { + return this.type; + } + component6_7eebs7_k$() { + return this.rpids; + } + copy_cc4cux_k$(mid, scene, action, oid, type, rpids) { + return new KUserCallbackReq(mid, scene, action, oid, type, rpids); + } + copy(mid, scene, action, oid, type, rpids, $super) { + mid = mid === VOID ? this.mid : mid; + scene = scene === VOID ? this.scene : scene; + action = action === VOID ? this.action : action; + oid = oid === VOID ? this.oid : oid; + type = type === VOID ? this.type : type; + rpids = rpids === VOID ? this.rpids : rpids; + return this.copy_cc4cux_k$(mid, scene, action, oid, type, rpids); + } + toString() { + return 'KUserCallbackReq(mid=' + this.mid.toString() + ', scene=' + this.scene + ', action=' + this.action + ', oid=' + this.oid.toString() + ', type=' + this.type.toString() + ', rpids=' + this.rpids + ')'; + } + hashCode() { + var result = this.mid.hashCode(); + result = imul(result, 31) + this.scene | 0; + result = imul(result, 31) + this.action | 0; + result = imul(result, 31) + this.oid.hashCode() | 0; + result = imul(result, 31) + this.type.hashCode() | 0; + result = imul(result, 31) + hashCode(this.rpids) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KUserCallbackReq)) + return false; + var tmp0_other_with_cast = other instanceof KUserCallbackReq ? other : THROW_CCE(); + if (!this.mid.equals(tmp0_other_with_cast.mid)) + return false; + if (!(this.scene === tmp0_other_with_cast.scene)) + return false; + if (!(this.action === tmp0_other_with_cast.action)) + return false; + if (!this.oid.equals(tmp0_other_with_cast.oid)) + return false; + if (!this.type.equals(tmp0_other_with_cast.type)) + return false; + if (!equals(this.rpids, tmp0_other_with_cast.rpids)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KUserCallbackReq_yebj3t_k$(seen1, mid, scene, action, oid, type, rpids, serializationConstructorMarker) { + Companion_getInstance_1397(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1384().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.mid = new Long(0, 0); + else + $this.mid = mid; + if (0 === (seen1 & 2)) + $this.scene = 0; + else + $this.scene = scene; + if (0 === (seen1 & 4)) + $this.action = 0; + else + $this.action = action; + if (0 === (seen1 & 8)) + $this.oid = new Long(0, 0); + else + $this.oid = oid; + if (0 === (seen1 & 16)) + $this.type = new Long(0, 0); + else + $this.type = type; + if (0 === (seen1 & 32)) + $this.rpids = emptyList(); + else + $this.rpids = rpids; + return $this; + } + } + class Companion_1398 { + constructor() { + this.targetPath = '/bilibili.main.community.reply.v1.UserCallbackReply'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1385(); + } + } + class $serializer_1385 { + constructor() { + $serializer_instance_1385 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KUserCallbackReply', this, 0); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = []; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp4_input.decodeSequentially_xlblqy_k$()) { + } else + while (tmp1_flag) { + tmp2_index = tmp4_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + if (tmp2_index === -1) + tmp1_flag = false; + else + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + tmp4_input.endStructure_1xqz0n_k$(tmp0_desc); + return KUserCallbackReply.new_com_bapis_bilibili_main_community_reply_v1_KUserCallbackReply_yz683g_k$(tmp3_bitMask0, null); + } + serialize_ftixtu_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_ftixtu_k$(encoder, value instanceof KUserCallbackReply ? value : THROW_CCE()); + } + } + class KUserCallbackReply { + constructor() { + Companion_instance_1398; + } + static new_com_bapis_bilibili_main_community_reply_v1_KUserCallbackReply_yz683g_k$(seen1, serializationConstructorMarker) { + Companion_instance_1398; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1385().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + return $this; + } + } + class Companion_1399 { + constructor() { + Companion_instance_1399 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer(LongSerializer_getInstance()), null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.main.community.reply.v1.ShareRepliesInfoReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1386(); + } + } + class $serializer_1386 { + constructor() { + $serializer_instance_1386 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KShareRepliesInfoReq', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('rpids', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('oid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_1399().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0], LongSerializer_getInstance(), LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = new Long(0, 0); + var tmp6_local2 = new Long(0, 0); + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp8_cached = Companion_getInstance_1399().$childSerializers_1; + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp8_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp8_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KShareRepliesInfoReq.new_com_bapis_bilibili_main_community_reply_v1_KShareRepliesInfoReq_u3h2tk_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_7cxtf3_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_1399().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.rpids, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.rpids); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.oid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.oid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.type.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.type); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_7cxtf3_k$(encoder, value instanceof KShareRepliesInfoReq ? value : THROW_CCE()); + } + } + class KShareRepliesInfoReq { + constructor(rpids, oid, type) { + Companion_getInstance_1399(); + rpids = rpids === VOID ? emptyList() : rpids; + oid = oid === VOID ? new Long(0, 0) : oid; + type = type === VOID ? new Long(0, 0) : type; + this.rpids = rpids; + this.oid = oid; + this.type = type; + } + get_rpids_iy3q8h_k$() { + return this.rpids; + } + get_oid_18iz6n_k$() { + return this.oid; + } + get_type_wovaf7_k$() { + return this.type; + } + component1_7eebsc_k$() { + return this.rpids; + } + component2_7eebsb_k$() { + return this.oid; + } + component3_7eebsa_k$() { + return this.type; + } + copy_ol1lk5_k$(rpids, oid, type) { + return new KShareRepliesInfoReq(rpids, oid, type); + } + copy(rpids, oid, type, $super) { + rpids = rpids === VOID ? this.rpids : rpids; + oid = oid === VOID ? this.oid : oid; + type = type === VOID ? this.type : type; + return this.copy_ol1lk5_k$(rpids, oid, type); + } + toString() { + return 'KShareRepliesInfoReq(rpids=' + this.rpids + ', oid=' + this.oid.toString() + ', type=' + this.type.toString() + ')'; + } + hashCode() { + var result = hashCode(this.rpids); + result = imul(result, 31) + this.oid.hashCode() | 0; + result = imul(result, 31) + this.type.hashCode() | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KShareRepliesInfoReq)) + return false; + var tmp0_other_with_cast = other instanceof KShareRepliesInfoReq ? other : THROW_CCE(); + if (!equals(this.rpids, tmp0_other_with_cast.rpids)) + return false; + if (!this.oid.equals(tmp0_other_with_cast.oid)) + return false; + if (!this.type.equals(tmp0_other_with_cast.type)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KShareRepliesInfoReq_u3h2tk_k$(seen1, rpids, oid, type, serializationConstructorMarker) { + Companion_getInstance_1399(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1386().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.rpids = emptyList(); + else + $this.rpids = rpids; + if (0 === (seen1 & 2)) + $this.oid = new Long(0, 0); + else + $this.oid = oid; + if (0 === (seen1 & 4)) + $this.type = new Long(0, 0); + else + $this.type = type; + return $this; + } + } + class Companion_1400 { + constructor() { + this.targetPath = '/bilibili.main.community.reply.v1.ShareRepliesInfoResp.ShareExtra'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1387(); + } + } + class $serializer_1387 { + constructor() { + $serializer_instance_1387 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KShareRepliesInfoResp.KShareExtra', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('isPgc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [BooleanSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = false; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KShareExtra.new_com_bapis_bilibili_main_community_reply_v1_KShareRepliesInfoResp_KShareExtra_tvd3dj_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_nxxeyh_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.isPgc === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 0, value.isPgc); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_nxxeyh_k$(encoder, value instanceof KShareExtra ? value : THROW_CCE()); + } + } + class KShareExtra { + constructor(isPgc) { + Companion_instance_1400; + isPgc = isPgc === VOID ? false : isPgc; + this.isPgc = isPgc; + } + get_isPgc_it6zdl_k$() { + return this.isPgc; + } + component1_7eebsc_k$() { + return this.isPgc; + } + copy_o18wmo_k$(isPgc) { + return new KShareExtra(isPgc); + } + copy(isPgc, $super) { + isPgc = isPgc === VOID ? this.isPgc : isPgc; + return this.copy_o18wmo_k$(isPgc); + } + toString() { + return 'KShareExtra(isPgc=' + this.isPgc + ')'; + } + hashCode() { + return getBooleanHashCode(this.isPgc); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KShareExtra)) + return false; + var tmp0_other_with_cast = other instanceof KShareExtra ? other : THROW_CCE(); + if (!(this.isPgc === tmp0_other_with_cast.isPgc)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KShareRepliesInfoResp_KShareExtra_tvd3dj_k$(seen1, isPgc, serializationConstructorMarker) { + Companion_instance_1400; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1387().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.isPgc = false; + else + $this.isPgc = isPgc; + return $this; + } + } + class Companion_1401 { + constructor() { + Companion_instance_1401 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer($serializer_getInstance_1389()), null, null, null, null, null, null, null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.main.community.reply.v1.ShareRepliesInfoResp'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1388(); + } + } + class $serializer_1388 { + constructor() { + $serializer_instance_1388 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KShareRepliesInfoResp', this, 9); + tmp0_serialDesc.addElement_5pzumi_k$('infos', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('fromTitle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('fromUp', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('fromPic', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('url', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('sloganPic', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('sloganText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('topic', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('extra', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_1401().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0], StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_1390()), get_nullable($serializer_getInstance_1387())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_local8 = null; + var tmp13_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp14_cached = Companion_getInstance_1401().$childSerializers_1; + if (tmp13_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp13_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp14_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_1390(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_1387(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + } else + while (tmp1_flag) { + tmp2_index = tmp13_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp13_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp14_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_1390(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_1387(), tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp13_input.endStructure_1xqz0n_k$(tmp0_desc); + return KShareRepliesInfoResp.new_com_bapis_bilibili_main_community_reply_v1_KShareRepliesInfoResp_donqa7_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, null); + } + serialize_86aj2x_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_1401().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.infos, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.infos); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.fromTitle === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.fromTitle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.fromUp === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.fromUp); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.fromPic === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.fromPic); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.url === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.url); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.sloganPic === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.sloganPic); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.sloganText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.sloganText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.topic == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 7, $serializer_getInstance_1390(), value.topic); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.extra == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 8, $serializer_getInstance_1387(), value.extra); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_86aj2x_k$(encoder, value instanceof KShareRepliesInfoResp ? value : THROW_CCE()); + } + } + class KShareRepliesInfoResp { + constructor(infos, fromTitle, fromUp, fromPic, url, sloganPic, sloganText, topic, extra) { + Companion_getInstance_1401(); + infos = infos === VOID ? emptyList() : infos; + fromTitle = fromTitle === VOID ? '' : fromTitle; + fromUp = fromUp === VOID ? '' : fromUp; + fromPic = fromPic === VOID ? '' : fromPic; + url = url === VOID ? '' : url; + sloganPic = sloganPic === VOID ? '' : sloganPic; + sloganText = sloganText === VOID ? '' : sloganText; + topic = topic === VOID ? null : topic; + extra = extra === VOID ? null : extra; + this.infos = infos; + this.fromTitle = fromTitle; + this.fromUp = fromUp; + this.fromPic = fromPic; + this.url = url; + this.sloganPic = sloganPic; + this.sloganText = sloganText; + this.topic = topic; + this.extra = extra; + } + get_infos_it48yk_k$() { + return this.infos; + } + get_fromTitle_9obo6d_k$() { + return this.fromTitle; + } + get_fromUp_dgz9wu_k$() { + return this.fromUp; + } + get_fromPic_8kawdl_k$() { + return this.fromPic; + } + get_url_18iuii_k$() { + return this.url; + } + get_sloganPic_dqz0v7_k$() { + return this.sloganPic; + } + get_sloganText_1jwl0_k$() { + return this.sloganText; + } + get_topic_iz6tqe_k$() { + return this.topic; + } + get_extra_ir3qw7_k$() { + return this.extra; + } + component1_7eebsc_k$() { + return this.infos; + } + component2_7eebsb_k$() { + return this.fromTitle; + } + component3_7eebsa_k$() { + return this.fromUp; + } + component4_7eebs9_k$() { + return this.fromPic; + } + component5_7eebs8_k$() { + return this.url; + } + component6_7eebs7_k$() { + return this.sloganPic; + } + component7_7eebs6_k$() { + return this.sloganText; + } + component8_7eebs5_k$() { + return this.topic; + } + component9_7eebs4_k$() { + return this.extra; + } + copy_yllygk_k$(infos, fromTitle, fromUp, fromPic, url, sloganPic, sloganText, topic, extra) { + return new KShareRepliesInfoResp(infos, fromTitle, fromUp, fromPic, url, sloganPic, sloganText, topic, extra); + } + copy(infos, fromTitle, fromUp, fromPic, url, sloganPic, sloganText, topic, extra, $super) { + infos = infos === VOID ? this.infos : infos; + fromTitle = fromTitle === VOID ? this.fromTitle : fromTitle; + fromUp = fromUp === VOID ? this.fromUp : fromUp; + fromPic = fromPic === VOID ? this.fromPic : fromPic; + url = url === VOID ? this.url : url; + sloganPic = sloganPic === VOID ? this.sloganPic : sloganPic; + sloganText = sloganText === VOID ? this.sloganText : sloganText; + topic = topic === VOID ? this.topic : topic; + extra = extra === VOID ? this.extra : extra; + return this.copy_yllygk_k$(infos, fromTitle, fromUp, fromPic, url, sloganPic, sloganText, topic, extra); + } + toString() { + return 'KShareRepliesInfoResp(infos=' + this.infos + ', fromTitle=' + this.fromTitle + ', fromUp=' + this.fromUp + ', fromPic=' + this.fromPic + ', url=' + this.url + ', sloganPic=' + this.sloganPic + ', sloganText=' + this.sloganText + ', topic=' + this.topic + ', extra=' + this.extra + ')'; + } + hashCode() { + var result = hashCode(this.infos); + result = imul(result, 31) + getStringHashCode(this.fromTitle) | 0; + result = imul(result, 31) + getStringHashCode(this.fromUp) | 0; + result = imul(result, 31) + getStringHashCode(this.fromPic) | 0; + result = imul(result, 31) + getStringHashCode(this.url) | 0; + result = imul(result, 31) + getStringHashCode(this.sloganPic) | 0; + result = imul(result, 31) + getStringHashCode(this.sloganText) | 0; + result = imul(result, 31) + (this.topic == null ? 0 : this.topic.hashCode()) | 0; + result = imul(result, 31) + (this.extra == null ? 0 : this.extra.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KShareRepliesInfoResp)) + return false; + var tmp0_other_with_cast = other instanceof KShareRepliesInfoResp ? other : THROW_CCE(); + if (!equals(this.infos, tmp0_other_with_cast.infos)) + return false; + if (!(this.fromTitle === tmp0_other_with_cast.fromTitle)) + return false; + if (!(this.fromUp === tmp0_other_with_cast.fromUp)) + return false; + if (!(this.fromPic === tmp0_other_with_cast.fromPic)) + return false; + if (!(this.url === tmp0_other_with_cast.url)) + return false; + if (!(this.sloganPic === tmp0_other_with_cast.sloganPic)) + return false; + if (!(this.sloganText === tmp0_other_with_cast.sloganText)) + return false; + if (!equals(this.topic, tmp0_other_with_cast.topic)) + return false; + if (!equals(this.extra, tmp0_other_with_cast.extra)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KShareRepliesInfoResp_donqa7_k$(seen1, infos, fromTitle, fromUp, fromPic, url, sloganPic, sloganText, topic, extra, serializationConstructorMarker) { + Companion_getInstance_1401(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1388().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.infos = emptyList(); + else + $this.infos = infos; + if (0 === (seen1 & 2)) + $this.fromTitle = ''; + else + $this.fromTitle = fromTitle; + if (0 === (seen1 & 4)) + $this.fromUp = ''; + else + $this.fromUp = fromUp; + if (0 === (seen1 & 8)) + $this.fromPic = ''; + else + $this.fromPic = fromPic; + if (0 === (seen1 & 16)) + $this.url = ''; + else + $this.url = url; + if (0 === (seen1 & 32)) + $this.sloganPic = ''; + else + $this.sloganPic = sloganPic; + if (0 === (seen1 & 64)) + $this.sloganText = ''; + else + $this.sloganText = sloganText; + if (0 === (seen1 & 128)) + $this.topic = null; + else + $this.topic = topic; + if (0 === (seen1 & 256)) + $this.extra = null; + else + $this.extra = extra; + return $this; + } + } + class Companion_1402 { + constructor() { + this.targetPath = '/bilibili.main.community.reply.v1.ShareReplyInfo'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1389(); + } + } + class $serializer_1389 { + constructor() { + $serializer_instance_1389 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KShareReplyInfo', this, 6); + tmp0_serialDesc.addElement_5pzumi_k$('member', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('content', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('subTitle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('achievementText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('labelUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_1347()), get_nullable($serializer_getInstance_1310()), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp10_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_1347(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_1310(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + } else + while (tmp1_flag) { + tmp2_index = tmp10_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_1347(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_1310(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp10_input.endStructure_1xqz0n_k$(tmp0_desc); + return KShareReplyInfo.new_com_bapis_bilibili_main_community_reply_v1_KShareReplyInfo_855j7e_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); + } + serialize_w4v9aj_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.member == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_1347(), value.member); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.content == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_1310(), value.content); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.subTitle === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.subTitle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.achievementText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.achievementText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.labelUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.labelUrl); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_w4v9aj_k$(encoder, value instanceof KShareReplyInfo ? value : THROW_CCE()); + } + } + class KShareReplyInfo { + constructor(member, content, title, subTitle, achievementText, labelUrl) { + Companion_instance_1402; + member = member === VOID ? null : member; + content = content === VOID ? null : content; + title = title === VOID ? '' : title; + subTitle = subTitle === VOID ? '' : subTitle; + achievementText = achievementText === VOID ? '' : achievementText; + labelUrl = labelUrl === VOID ? '' : labelUrl; + this.member = member; + this.content = content; + this.title = title; + this.subTitle = subTitle; + this.achievementText = achievementText; + this.labelUrl = labelUrl; + } + get_member_gl3t7n_k$() { + return this.member; + } + get_content_h02jrk_k$() { + return this.content; + } + get_title_iz32un_k$() { + return this.title; + } + get_subTitle_4nt9z5_k$() { + return this.subTitle; + } + get_achievementText_l0p90t_k$() { + return this.achievementText; + } + get_labelUrl_6tog4k_k$() { + return this.labelUrl; + } + component1_7eebsc_k$() { + return this.member; + } + component2_7eebsb_k$() { + return this.content; + } + component3_7eebsa_k$() { + return this.title; + } + component4_7eebs9_k$() { + return this.subTitle; + } + component5_7eebs8_k$() { + return this.achievementText; + } + component6_7eebs7_k$() { + return this.labelUrl; + } + copy_o7zdom_k$(member, content, title, subTitle, achievementText, labelUrl) { + return new KShareReplyInfo(member, content, title, subTitle, achievementText, labelUrl); + } + copy(member, content, title, subTitle, achievementText, labelUrl, $super) { + member = member === VOID ? this.member : member; + content = content === VOID ? this.content : content; + title = title === VOID ? this.title : title; + subTitle = subTitle === VOID ? this.subTitle : subTitle; + achievementText = achievementText === VOID ? this.achievementText : achievementText; + labelUrl = labelUrl === VOID ? this.labelUrl : labelUrl; + return this.copy_o7zdom_k$(member, content, title, subTitle, achievementText, labelUrl); + } + toString() { + return 'KShareReplyInfo(member=' + this.member + ', content=' + this.content + ', title=' + this.title + ', subTitle=' + this.subTitle + ', achievementText=' + this.achievementText + ', labelUrl=' + this.labelUrl + ')'; + } + hashCode() { + var result = this.member == null ? 0 : this.member.hashCode(); + result = imul(result, 31) + (this.content == null ? 0 : this.content.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.title) | 0; + result = imul(result, 31) + getStringHashCode(this.subTitle) | 0; + result = imul(result, 31) + getStringHashCode(this.achievementText) | 0; + result = imul(result, 31) + getStringHashCode(this.labelUrl) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KShareReplyInfo)) + return false; + var tmp0_other_with_cast = other instanceof KShareReplyInfo ? other : THROW_CCE(); + if (!equals(this.member, tmp0_other_with_cast.member)) + return false; + if (!equals(this.content, tmp0_other_with_cast.content)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.subTitle === tmp0_other_with_cast.subTitle)) + return false; + if (!(this.achievementText === tmp0_other_with_cast.achievementText)) + return false; + if (!(this.labelUrl === tmp0_other_with_cast.labelUrl)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KShareReplyInfo_855j7e_k$(seen1, member, content, title, subTitle, achievementText, labelUrl, serializationConstructorMarker) { + Companion_instance_1402; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1389().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.member = null; + else + $this.member = member; + if (0 === (seen1 & 2)) + $this.content = null; + else + $this.content = content; + if (0 === (seen1 & 4)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 8)) + $this.subTitle = ''; + else + $this.subTitle = subTitle; + if (0 === (seen1 & 16)) + $this.achievementText = ''; + else + $this.achievementText = achievementText; + if (0 === (seen1 & 32)) + $this.labelUrl = ''; + else + $this.labelUrl = labelUrl; + return $this; + } + } + class Companion_1403 { + constructor() { + this.targetPath = '/bilibili.main.community.reply.v1.ShareReplyTopic'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1390(); + } + } + class $serializer_1390 { + constructor() { + $serializer_instance_1390 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KShareReplyTopic', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('topic', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('originText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_1326()), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_1326(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_1326(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KShareReplyTopic.new_com_bapis_bilibili_main_community_reply_v1_KShareReplyTopic_b2prgs_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_yo2l70_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.topic == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_1326(), value.topic); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.originText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.originText); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_yo2l70_k$(encoder, value instanceof KShareReplyTopic ? value : THROW_CCE()); + } + } + class KShareReplyTopic { + constructor(topic, originText) { + Companion_instance_1403; + topic = topic === VOID ? null : topic; + originText = originText === VOID ? '' : originText; + this.topic = topic; + this.originText = originText; + } + get_topic_iz6tqe_k$() { + return this.topic; + } + get_originText_jp21oc_k$() { + return this.originText; + } + component1_7eebsc_k$() { + return this.topic; + } + component2_7eebsb_k$() { + return this.originText; + } + copy_ot0qkk_k$(topic, originText) { + return new KShareReplyTopic(topic, originText); + } + copy(topic, originText, $super) { + topic = topic === VOID ? this.topic : topic; + originText = originText === VOID ? this.originText : originText; + return this.copy_ot0qkk_k$(topic, originText); + } + toString() { + return 'KShareReplyTopic(topic=' + this.topic + ', originText=' + this.originText + ')'; + } + hashCode() { + var result = this.topic == null ? 0 : this.topic.hashCode(); + result = imul(result, 31) + getStringHashCode(this.originText) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KShareReplyTopic)) + return false; + var tmp0_other_with_cast = other instanceof KShareReplyTopic ? other : THROW_CCE(); + if (!equals(this.topic, tmp0_other_with_cast.topic)) + return false; + if (!(this.originText === tmp0_other_with_cast.originText)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KShareReplyTopic_b2prgs_k$(seen1, topic, originText, serializationConstructorMarker) { + Companion_instance_1403; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1390().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.topic = null; + else + $this.topic = topic; + if (0 === (seen1 & 2)) + $this.originText = ''; + else + $this.originText = originText; + return $this; + } + } + class Companion_1404 { + constructor() { + this.targetPath = '/bilibili.main.community.reply.v1.SuggestEmotesReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1391(); + } + } + class $serializer_1391 { + constructor() { + $serializer_instance_1391 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KSuggestEmotesReq', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('oid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = new Long(0, 0); + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSuggestEmotesReq.new_com_bapis_bilibili_main_community_reply_v1_KSuggestEmotesReq_7gwnm1_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_rb53ch_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.oid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.oid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.type.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.type); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_rb53ch_k$(encoder, value instanceof KSuggestEmotesReq ? value : THROW_CCE()); + } + } + class KSuggestEmotesReq { + constructor(oid, type) { + Companion_instance_1404; + oid = oid === VOID ? new Long(0, 0) : oid; + type = type === VOID ? new Long(0, 0) : type; + this.oid = oid; + this.type = type; + } + get_oid_18iz6n_k$() { + return this.oid; + } + get_type_wovaf7_k$() { + return this.type; + } + component1_7eebsc_k$() { + return this.oid; + } + component2_7eebsb_k$() { + return this.type; + } + copy_bynm9d_k$(oid, type) { + return new KSuggestEmotesReq(oid, type); + } + copy(oid, type, $super) { + oid = oid === VOID ? this.oid : oid; + type = type === VOID ? this.type : type; + return this.copy_bynm9d_k$(oid, type); + } + toString() { + return 'KSuggestEmotesReq(oid=' + this.oid.toString() + ', type=' + this.type.toString() + ')'; + } + hashCode() { + var result = this.oid.hashCode(); + result = imul(result, 31) + this.type.hashCode() | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSuggestEmotesReq)) + return false; + var tmp0_other_with_cast = other instanceof KSuggestEmotesReq ? other : THROW_CCE(); + if (!this.oid.equals(tmp0_other_with_cast.oid)) + return false; + if (!this.type.equals(tmp0_other_with_cast.type)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KSuggestEmotesReq_7gwnm1_k$(seen1, oid, type, serializationConstructorMarker) { + Companion_instance_1404; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1391().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.oid = new Long(0, 0); + else + $this.oid = oid; + if (0 === (seen1 & 2)) + $this.type = new Long(0, 0); + else + $this.type = type; + return $this; + } + } + class Companion_1405 { + constructor() { + Companion_instance_1405 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer($serializer_getInstance_1327())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.main.community.reply.v1.SuggestEmotesResp'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1392(); + } + } + class $serializer_1392 { + constructor() { + $serializer_instance_1392 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KSuggestEmotesResp', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('emotes', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_1405().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp6_cached = Companion_getInstance_1405().$childSerializers_1; + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSuggestEmotesResp.new_com_bapis_bilibili_main_community_reply_v1_KSuggestEmotesResp_djytv3_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_cngey1_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_1405().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.emotes, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.emotes); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_cngey1_k$(encoder, value instanceof KSuggestEmotesResp ? value : THROW_CCE()); + } + } + class KSuggestEmotesResp { + constructor(emotes) { + Companion_getInstance_1405(); + emotes = emotes === VOID ? emptyList() : emotes; + this.emotes = emotes; + } + get_emotes_cx6u4k_k$() { + return this.emotes; + } + component1_7eebsc_k$() { + return this.emotes; + } + copy_5e2py2_k$(emotes) { + return new KSuggestEmotesResp(emotes); + } + copy(emotes, $super) { + emotes = emotes === VOID ? this.emotes : emotes; + return this.copy_5e2py2_k$(emotes); + } + toString() { + return 'KSuggestEmotesResp(emotes=' + this.emotes + ')'; + } + hashCode() { + return hashCode(this.emotes); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSuggestEmotesResp)) + return false; + var tmp0_other_with_cast = other instanceof KSuggestEmotesResp ? other : THROW_CCE(); + if (!equals(this.emotes, tmp0_other_with_cast.emotes)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KSuggestEmotesResp_djytv3_k$(seen1, emotes, serializationConstructorMarker) { + Companion_getInstance_1405(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1392().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.emotes = emptyList(); + else + $this.emotes = emotes; + return $this; + } + } + class Companion_1406 { + constructor() { + this.targetPath = '/bilibili.main.community.reply.v1.DoVoteReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1393(); + } + } + class $serializer_1393 { + constructor() { + $serializer_instance_1393 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KDoVoteReq', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('oid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('voteId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('option', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = new Long(0, 0); + var tmp6_local2 = new Long(0, 0); + var tmp7_local3 = new Long(0, 0); + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KDoVoteReq.new_com_bapis_bilibili_main_community_reply_v1_KDoVoteReq_8o9dub_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_6tfv0x_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.oid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.oid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.type.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.type); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.voteId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.voteId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !value.option.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 3, value.option); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_6tfv0x_k$(encoder, value instanceof KDoVoteReq ? value : THROW_CCE()); + } + } + class KDoVoteReq { + constructor(oid, type, voteId, option) { + Companion_instance_1406; + oid = oid === VOID ? new Long(0, 0) : oid; + type = type === VOID ? new Long(0, 0) : type; + voteId = voteId === VOID ? new Long(0, 0) : voteId; + option = option === VOID ? new Long(0, 0) : option; + this.oid = oid; + this.type = type; + this.voteId = voteId; + this.option = option; + } + get_oid_18iz6n_k$() { + return this.oid; + } + get_type_wovaf7_k$() { + return this.type; + } + get_voteId_l04v5a_k$() { + return this.voteId; + } + get_option_hpdev2_k$() { + return this.option; + } + component1_7eebsc_k$() { + return this.oid; + } + component2_7eebsb_k$() { + return this.type; + } + component3_7eebsa_k$() { + return this.voteId; + } + component4_7eebs9_k$() { + return this.option; + } + copy_4n0mfn_k$(oid, type, voteId, option) { + return new KDoVoteReq(oid, type, voteId, option); + } + copy(oid, type, voteId, option, $super) { + oid = oid === VOID ? this.oid : oid; + type = type === VOID ? this.type : type; + voteId = voteId === VOID ? this.voteId : voteId; + option = option === VOID ? this.option : option; + return this.copy_4n0mfn_k$(oid, type, voteId, option); + } + toString() { + return 'KDoVoteReq(oid=' + this.oid.toString() + ', type=' + this.type.toString() + ', voteId=' + this.voteId.toString() + ', option=' + this.option.toString() + ')'; + } + hashCode() { + var result = this.oid.hashCode(); + result = imul(result, 31) + this.type.hashCode() | 0; + result = imul(result, 31) + this.voteId.hashCode() | 0; + result = imul(result, 31) + this.option.hashCode() | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KDoVoteReq)) + return false; + var tmp0_other_with_cast = other instanceof KDoVoteReq ? other : THROW_CCE(); + if (!this.oid.equals(tmp0_other_with_cast.oid)) + return false; + if (!this.type.equals(tmp0_other_with_cast.type)) + return false; + if (!this.voteId.equals(tmp0_other_with_cast.voteId)) + return false; + if (!this.option.equals(tmp0_other_with_cast.option)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KDoVoteReq_8o9dub_k$(seen1, oid, type, voteId, option, serializationConstructorMarker) { + Companion_instance_1406; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1393().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.oid = new Long(0, 0); + else + $this.oid = oid; + if (0 === (seen1 & 2)) + $this.type = new Long(0, 0); + else + $this.type = type; + if (0 === (seen1 & 4)) + $this.voteId = new Long(0, 0); + else + $this.voteId = voteId; + if (0 === (seen1 & 8)) + $this.option = new Long(0, 0); + else + $this.option = option; + return $this; + } + } + class Companion_1407 { + constructor() { + this.targetPath = '/bilibili.main.community.reply.v1.DoVoteResp'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1394(); + } + } + class $serializer_1394 { + constructor() { + $serializer_instance_1394 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KDoVoteResp', this, 0); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = []; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp4_input.decodeSequentially_xlblqy_k$()) { + } else + while (tmp1_flag) { + tmp2_index = tmp4_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + if (tmp2_index === -1) + tmp1_flag = false; + else + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + tmp4_input.endStructure_1xqz0n_k$(tmp0_desc); + return KDoVoteResp.new_com_bapis_bilibili_main_community_reply_v1_KDoVoteResp_gm9q5x_k$(tmp3_bitMask0, null); + } + serialize_8m6349_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_8m6349_k$(encoder, value instanceof KDoVoteResp ? value : THROW_CCE()); + } + } + class KDoVoteResp { + constructor() { + Companion_instance_1407; + } + static new_com_bapis_bilibili_main_community_reply_v1_KDoVoteResp_gm9q5x_k$(seen1, serializationConstructorMarker) { + Companion_instance_1407; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1394().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + return $this; + } + } + class Companion_1408 { + constructor() { + this.targetPath = '/bilibili.main.community.reply.v1.ShareReplyMaterialReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1395(); + } + } + class $serializer_1395 { + constructor() { + $serializer_instance_1395 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KShareReplyMaterialReq', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('oid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('rpid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = new Long(0, 0); + var tmp6_local2 = new Long(0, 0); + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KShareReplyMaterialReq.new_com_bapis_bilibili_main_community_reply_v1_KShareReplyMaterialReq_bttc2c_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_jyduhg_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.oid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.oid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.type.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.type); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.rpid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.rpid); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_jyduhg_k$(encoder, value instanceof KShareReplyMaterialReq ? value : THROW_CCE()); + } + } + class KShareReplyMaterialReq { + constructor(oid, type, rpid) { + Companion_instance_1408; + oid = oid === VOID ? new Long(0, 0) : oid; + type = type === VOID ? new Long(0, 0) : type; + rpid = rpid === VOID ? new Long(0, 0) : rpid; + this.oid = oid; + this.type = type; + this.rpid = rpid; + } + get_oid_18iz6n_k$() { + return this.oid; + } + get_type_wovaf7_k$() { + return this.type; + } + get_rpid_wottlu_k$() { + return this.rpid; + } + component1_7eebsc_k$() { + return this.oid; + } + component2_7eebsb_k$() { + return this.type; + } + component3_7eebsa_k$() { + return this.rpid; + } + copy_kj2gr5_k$(oid, type, rpid) { + return new KShareReplyMaterialReq(oid, type, rpid); + } + copy(oid, type, rpid, $super) { + oid = oid === VOID ? this.oid : oid; + type = type === VOID ? this.type : type; + rpid = rpid === VOID ? this.rpid : rpid; + return this.copy_kj2gr5_k$(oid, type, rpid); + } + toString() { + return 'KShareReplyMaterialReq(oid=' + this.oid.toString() + ', type=' + this.type.toString() + ', rpid=' + this.rpid.toString() + ')'; + } + hashCode() { + var result = this.oid.hashCode(); + result = imul(result, 31) + this.type.hashCode() | 0; + result = imul(result, 31) + this.rpid.hashCode() | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KShareReplyMaterialReq)) + return false; + var tmp0_other_with_cast = other instanceof KShareReplyMaterialReq ? other : THROW_CCE(); + if (!this.oid.equals(tmp0_other_with_cast.oid)) + return false; + if (!this.type.equals(tmp0_other_with_cast.type)) + return false; + if (!this.rpid.equals(tmp0_other_with_cast.rpid)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KShareReplyMaterialReq_bttc2c_k$(seen1, oid, type, rpid, serializationConstructorMarker) { + Companion_instance_1408; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1395().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.oid = new Long(0, 0); + else + $this.oid = oid; + if (0 === (seen1 & 2)) + $this.type = new Long(0, 0); + else + $this.type = type; + if (0 === (seen1 & 4)) + $this.rpid = new Long(0, 0); + else + $this.rpid = rpid; + return $this; + } + } + class Companion_1409 { + constructor() { + this.targetPath = '/bilibili.main.community.reply.v1.ShareReplyMaterialResp.ArchiveMaterial'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1396(); + } + } + class $serializer_1396 { + constructor() { + $serializer_instance_1396 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KShareReplyMaterialResp.KArchiveMaterial', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('cover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('upName', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('upIcon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KArchiveMaterial_0.new_com_bapis_bilibili_main_community_reply_v1_KShareReplyMaterialResp_KArchiveMaterial_z42kp3_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_ucku8i_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.cover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.cover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.upName === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.upName); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.upIcon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.upIcon); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_ucku8i_k$(encoder, value instanceof KArchiveMaterial_0 ? value : THROW_CCE()); + } + } + class Companion_1410 { + constructor() { + this.targetPath = '/bilibili.main.community.reply.v1.ShareReplyMaterialResp.DynamicMaterial'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1397(); + } + } + class $serializer_1397 { + constructor() { + $serializer_instance_1397 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KShareReplyMaterialResp.KDynamicMaterial', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('message', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KDynamicMaterial_0.new_com_bapis_bilibili_main_community_reply_v1_KShareReplyMaterialResp_KDynamicMaterial_1ncbrc_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_q04rpt_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.message === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.message); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_q04rpt_k$(encoder, value instanceof KDynamicMaterial_0 ? value : THROW_CCE()); + } + } + class Companion_1411 { + constructor() { + this.targetPath = '/bilibili.main.community.reply.v1.ShareReplyMaterialResp.ArticleMaterial'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1398(); + } + } + class $serializer_1398 { + constructor() { + $serializer_instance_1398 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KShareReplyMaterialResp.KArticleMaterial', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('message', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KArticleMaterial_0.new_com_bapis_bilibili_main_community_reply_v1_KShareReplyMaterialResp_KArticleMaterial_7byycf_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_6owzsq_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.message === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.message); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_6owzsq_k$(encoder, value instanceof KArticleMaterial_0 ? value : THROW_CCE()); + } + } + class KItem_14 { + constructor(value) { + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + } + class KArchiveMaterial extends KItem_14 { + constructor() { + KArchiveMaterial_instance = null; + super(0); + KArchiveMaterial_instance = this; + } + } + class KDynamicMaterial extends KItem_14 { + constructor() { + KDynamicMaterial_instance = null; + super(1); + KDynamicMaterial_instance = this; + } + } + class KArticleMaterial extends KItem_14 { + constructor() { + KArticleMaterial_instance = null; + super(2); + KArticleMaterial_instance = this; + } + } + class Companion_1412 { + constructor() { + Companion_instance_1412 = this; + var tmp = this; + tmp.itemValues$delegate_1 = lazy_0(KShareReplyMaterialResp$KSubjectMaterial$Companion$itemValues$delegate$lambda); + this.targetPath = '/bilibili.main.community.reply.v1.ShareReplyMaterialResp.SubjectMaterial'; + } + get_itemValues_e195su_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.itemValues$delegate_1; + var thisRef = this; + var property = itemValues$factory_10(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1399(); + } + get itemValues() { + return this.get_itemValues_e195su_k$(); + } + } + class $serializer_1399 { + constructor() { + $serializer_instance_1399 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KShareReplyMaterialResp.KSubjectMaterial', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('archiveMaterial', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('dynamicMaterial', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('articleMaterial', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_1396()), get_nullable($serializer_getInstance_1397()), get_nullable($serializer_getInstance_1398())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_transient0 = 0; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_1396(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_1397(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_1398(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_1396(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_1397(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_1398(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSubjectMaterial.new_com_bapis_bilibili_main_community_reply_v1_KShareReplyMaterialResp_KSubjectMaterial_51aq1u_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_e0tubg_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.archiveMaterial_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_1396(), value.archiveMaterial_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.dynamicMaterial_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_1397(), value.dynamicMaterial_1); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.articleMaterial_1 == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_1398(), value.articleMaterial_1); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_e0tubg_k$(encoder, value instanceof KSubjectMaterial ? value : THROW_CCE()); + } + } + class Companion_1413 { + constructor() { + this.targetPath = '/bilibili.main.community.reply.v1.ShareReplyMaterialResp.ExtraData'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1400(); + } + } + class $serializer_1400 { + constructor() { + $serializer_instance_1400 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KShareReplyMaterialResp.KExtraData', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('isPgc', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('originText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('topicId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [BooleanSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = false; + var tmp5_local1 = null; + var tmp6_local2 = new Long(0, 0); + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KExtraData.new_com_bapis_bilibili_main_community_reply_v1_KShareReplyMaterialResp_KExtraData_z2seoe_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_vms03n_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.isPgc === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 0, value.isPgc); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.originText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.originText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.topicId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.topicId); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_vms03n_k$(encoder, value instanceof KExtraData ? value : THROW_CCE()); + } + } + class KArchiveMaterial_0 { + constructor(title, cover, upName, upIcon) { + Companion_instance_1409; + title = title === VOID ? '' : title; + cover = cover === VOID ? '' : cover; + upName = upName === VOID ? '' : upName; + upIcon = upIcon === VOID ? '' : upIcon; + this.title = title; + this.cover = cover; + this.upName = upName; + this.upIcon = upIcon; + } + get_title_iz32un_k$() { + return this.title; + } + get_cover_ipug0e_k$() { + return this.cover; + } + get_upName_kiypqn_k$() { + return this.upName; + } + get_upIcon_kivkcd_k$() { + return this.upIcon; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.cover; + } + component3_7eebsa_k$() { + return this.upName; + } + component4_7eebs9_k$() { + return this.upIcon; + } + copy_hmmiyd_k$(title, cover, upName, upIcon) { + return new KArchiveMaterial_0(title, cover, upName, upIcon); + } + copy(title, cover, upName, upIcon, $super) { + title = title === VOID ? this.title : title; + cover = cover === VOID ? this.cover : cover; + upName = upName === VOID ? this.upName : upName; + upIcon = upIcon === VOID ? this.upIcon : upIcon; + return this.copy_hmmiyd_k$(title, cover, upName, upIcon); + } + toString() { + return 'KArchiveMaterial(title=' + this.title + ', cover=' + this.cover + ', upName=' + this.upName + ', upIcon=' + this.upIcon + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.cover) | 0; + result = imul(result, 31) + getStringHashCode(this.upName) | 0; + result = imul(result, 31) + getStringHashCode(this.upIcon) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KArchiveMaterial_0)) + return false; + var tmp0_other_with_cast = other instanceof KArchiveMaterial_0 ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.cover === tmp0_other_with_cast.cover)) + return false; + if (!(this.upName === tmp0_other_with_cast.upName)) + return false; + if (!(this.upIcon === tmp0_other_with_cast.upIcon)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KShareReplyMaterialResp_KArchiveMaterial_z42kp3_k$(seen1, title, cover, upName, upIcon, serializationConstructorMarker) { + Companion_instance_1409; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1396().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.cover = ''; + else + $this.cover = cover; + if (0 === (seen1 & 4)) + $this.upName = ''; + else + $this.upName = upName; + if (0 === (seen1 & 8)) + $this.upIcon = ''; + else + $this.upIcon = upIcon; + return $this; + } + } + class KDynamicMaterial_0 { + constructor(title, message) { + Companion_instance_1410; + title = title === VOID ? '' : title; + message = message === VOID ? '' : message; + this.title = title; + this.message = message; + } + get_title_iz32un_k$() { + return this.title; + } + get_message_h23axq_k$() { + return this.message; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.message; + } + copy_plwnsl_k$(title, message) { + return new KDynamicMaterial_0(title, message); + } + copy(title, message, $super) { + title = title === VOID ? this.title : title; + message = message === VOID ? this.message : message; + return this.copy_plwnsl_k$(title, message); + } + toString() { + return 'KDynamicMaterial(title=' + this.title + ', message=' + this.message + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.message) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KDynamicMaterial_0)) + return false; + var tmp0_other_with_cast = other instanceof KDynamicMaterial_0 ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.message === tmp0_other_with_cast.message)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KShareReplyMaterialResp_KDynamicMaterial_1ncbrc_k$(seen1, title, message, serializationConstructorMarker) { + Companion_instance_1410; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1397().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.message = ''; + else + $this.message = message; + return $this; + } + } + class KArticleMaterial_0 { + constructor(title, message) { + Companion_instance_1411; + title = title === VOID ? '' : title; + message = message === VOID ? '' : message; + this.title = title; + this.message = message; + } + get_title_iz32un_k$() { + return this.title; + } + get_message_h23axq_k$() { + return this.message; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.message; + } + copy_plwnsl_k$(title, message) { + return new KArticleMaterial_0(title, message); + } + copy(title, message, $super) { + title = title === VOID ? this.title : title; + message = message === VOID ? this.message : message; + return this.copy_plwnsl_k$(title, message); + } + toString() { + return 'KArticleMaterial(title=' + this.title + ', message=' + this.message + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.message) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KArticleMaterial_0)) + return false; + var tmp0_other_with_cast = other instanceof KArticleMaterial_0 ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.message === tmp0_other_with_cast.message)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KShareReplyMaterialResp_KArticleMaterial_7byycf_k$(seen1, title, message, serializationConstructorMarker) { + Companion_instance_1411; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1398().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.message = ''; + else + $this.message = message; + return $this; + } + } + class KSubjectMaterial { + constructor(archiveMaterial, dynamicMaterial, articleMaterial) { + Companion_getInstance_1412(); + archiveMaterial = archiveMaterial === VOID ? null : archiveMaterial; + dynamicMaterial = dynamicMaterial === VOID ? null : dynamicMaterial; + articleMaterial = articleMaterial === VOID ? null : articleMaterial; + this.archiveMaterial_1 = archiveMaterial; + this.dynamicMaterial_1 = dynamicMaterial; + this.articleMaterial_1 = articleMaterial; + var tmp = this; + tmp.itemNumber$delegate_1 = lazy_0(KShareReplyMaterialResp$KSubjectMaterial$itemNumber$delegate$lambda(this)); + } + itemValue() { + if (!(this.archiveMaterial_1 == null)) { + var tmp = this.archiveMaterial_1; + return (tmp == null ? true : !(tmp == null)) ? tmp : null; + } else if (!(this.dynamicMaterial_1 == null)) { + var tmp_0 = this.dynamicMaterial_1; + return (tmp_0 == null ? true : !(tmp_0 == null)) ? tmp_0 : null; + } else if (!(this.articleMaterial_1 == null)) { + var tmp_1 = this.articleMaterial_1; + return (tmp_1 == null ? true : !(tmp_1 == null)) ? tmp_1 : null; + } else { + return null; + } + } + itemTypeJs() { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = Companion_getInstance_1412().itemValues; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.main.community.reply.v1.KSubjectMaterial.itemType.' call + var it = element; + tmp$ret$0 = it.value === _get_itemNumber__22vn01_10(this); + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + return tmp$ret$1; + } + copy_snf6l6_k$(archiveMaterial, dynamicMaterial, articleMaterial) { + return new KSubjectMaterial(archiveMaterial, dynamicMaterial, articleMaterial); + } + copy(archiveMaterial, dynamicMaterial, articleMaterial, $super) { + archiveMaterial = archiveMaterial === VOID ? this.archiveMaterial_1 : archiveMaterial; + dynamicMaterial = dynamicMaterial === VOID ? this.dynamicMaterial_1 : dynamicMaterial; + articleMaterial = articleMaterial === VOID ? this.articleMaterial_1 : articleMaterial; + return this.copy_snf6l6_k$(archiveMaterial, dynamicMaterial, articleMaterial); + } + toString() { + return 'KSubjectMaterial(archiveMaterial=' + this.archiveMaterial_1 + ', dynamicMaterial=' + this.dynamicMaterial_1 + ', articleMaterial=' + this.articleMaterial_1 + ')'; + } + hashCode() { + var result = this.archiveMaterial_1 == null ? 0 : this.archiveMaterial_1.hashCode(); + result = imul(result, 31) + (this.dynamicMaterial_1 == null ? 0 : this.dynamicMaterial_1.hashCode()) | 0; + result = imul(result, 31) + (this.articleMaterial_1 == null ? 0 : this.articleMaterial_1.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSubjectMaterial)) + return false; + var tmp0_other_with_cast = other instanceof KSubjectMaterial ? other : THROW_CCE(); + if (!equals(this.archiveMaterial_1, tmp0_other_with_cast.archiveMaterial_1)) + return false; + if (!equals(this.dynamicMaterial_1, tmp0_other_with_cast.dynamicMaterial_1)) + return false; + if (!equals(this.articleMaterial_1, tmp0_other_with_cast.articleMaterial_1)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KShareReplyMaterialResp_KSubjectMaterial_51aq1u_k$(seen1, archiveMaterial, dynamicMaterial, articleMaterial, serializationConstructorMarker) { + Companion_getInstance_1412(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1399().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.archiveMaterial_1 = null; + else + $this.archiveMaterial_1 = archiveMaterial; + if (0 === (seen1 & 2)) + $this.dynamicMaterial_1 = null; + else + $this.dynamicMaterial_1 = dynamicMaterial; + if (0 === (seen1 & 4)) + $this.articleMaterial_1 = null; + else + $this.articleMaterial_1 = articleMaterial; + var tmp = $this; + tmp.itemNumber$delegate_1 = lazy_0(KShareReplyMaterialResp$KSubjectMaterial$_init_$lambda_ghhii4($this)); + return $this; + } + } + class KExtraData { + constructor(isPgc, originText, topicId) { + Companion_instance_1413; + isPgc = isPgc === VOID ? false : isPgc; + originText = originText === VOID ? '' : originText; + topicId = topicId === VOID ? new Long(0, 0) : topicId; + this.isPgc = isPgc; + this.originText = originText; + this.topicId = topicId; + } + get_isPgc_it6zdl_k$() { + return this.isPgc; + } + get_originText_jp21oc_k$() { + return this.originText; + } + get_topicId_hkqce7_k$() { + return this.topicId; + } + component1_7eebsc_k$() { + return this.isPgc; + } + component2_7eebsb_k$() { + return this.originText; + } + component3_7eebsa_k$() { + return this.topicId; + } + copy_8gdwo8_k$(isPgc, originText, topicId) { + return new KExtraData(isPgc, originText, topicId); + } + copy(isPgc, originText, topicId, $super) { + isPgc = isPgc === VOID ? this.isPgc : isPgc; + originText = originText === VOID ? this.originText : originText; + topicId = topicId === VOID ? this.topicId : topicId; + return this.copy_8gdwo8_k$(isPgc, originText, topicId); + } + toString() { + return 'KExtraData(isPgc=' + this.isPgc + ', originText=' + this.originText + ', topicId=' + this.topicId.toString() + ')'; + } + hashCode() { + var result = getBooleanHashCode(this.isPgc); + result = imul(result, 31) + getStringHashCode(this.originText) | 0; + result = imul(result, 31) + this.topicId.hashCode() | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KExtraData)) + return false; + var tmp0_other_with_cast = other instanceof KExtraData ? other : THROW_CCE(); + if (!(this.isPgc === tmp0_other_with_cast.isPgc)) + return false; + if (!(this.originText === tmp0_other_with_cast.originText)) + return false; + if (!this.topicId.equals(tmp0_other_with_cast.topicId)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KShareReplyMaterialResp_KExtraData_z2seoe_k$(seen1, isPgc, originText, topicId, serializationConstructorMarker) { + Companion_instance_1413; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1400().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.isPgc = false; + else + $this.isPgc = isPgc; + if (0 === (seen1 & 2)) + $this.originText = ''; + else + $this.originText = originText; + if (0 === (seen1 & 4)) + $this.topicId = new Long(0, 0); + else + $this.topicId = topicId; + return $this; + } + } + class Companion_1414 { + constructor() { + this.targetPath = '/bilibili.main.community.reply.v1.ShareReplyMaterialResp'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1401(); + } + } + class $serializer_1401 { + constructor() { + $serializer_instance_1401 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v1.KShareReplyMaterialResp', this, 7); + tmp0_serialDesc.addElement_5pzumi_k$('subjectMaterial', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('qrcodeUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('savePicText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('openAppText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('shareTimeText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('biliLogoIcon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('extra', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_1399()), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_1400())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp11_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_1399(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_1400(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + } else + while (tmp1_flag) { + tmp2_index = tmp11_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_1399(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_1400(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp11_input.endStructure_1xqz0n_k$(tmp0_desc); + return KShareReplyMaterialResp.new_com_bapis_bilibili_main_community_reply_v1_KShareReplyMaterialResp_w9przc_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, null); + } + serialize_rjkvqk_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.subjectMaterial == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_1399(), value.subjectMaterial); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.qrcodeUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.qrcodeUrl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.savePicText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.savePicText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.openAppText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.openAppText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.shareTimeText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.shareTimeText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.biliLogoIcon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.biliLogoIcon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.extra == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 6, $serializer_getInstance_1400(), value.extra); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_rjkvqk_k$(encoder, value instanceof KShareReplyMaterialResp ? value : THROW_CCE()); + } + } + class KShareReplyMaterialResp { + constructor(subjectMaterial, qrcodeUrl, savePicText, openAppText, shareTimeText, biliLogoIcon, extra) { + Companion_instance_1414; + subjectMaterial = subjectMaterial === VOID ? null : subjectMaterial; + qrcodeUrl = qrcodeUrl === VOID ? '' : qrcodeUrl; + savePicText = savePicText === VOID ? '' : savePicText; + openAppText = openAppText === VOID ? '' : openAppText; + shareTimeText = shareTimeText === VOID ? '' : shareTimeText; + biliLogoIcon = biliLogoIcon === VOID ? '' : biliLogoIcon; + extra = extra === VOID ? null : extra; + this.subjectMaterial = subjectMaterial; + this.qrcodeUrl = qrcodeUrl; + this.savePicText = savePicText; + this.openAppText = openAppText; + this.shareTimeText = shareTimeText; + this.biliLogoIcon = biliLogoIcon; + this.extra = extra; + } + get_subjectMaterial_8xccju_k$() { + return this.subjectMaterial; + } + get_qrcodeUrl_34x654_k$() { + return this.qrcodeUrl; + } + get_savePicText_fqupf5_k$() { + return this.savePicText; + } + get_openAppText_2holyd_k$() { + return this.openAppText; + } + get_shareTimeText_y507zk_k$() { + return this.shareTimeText; + } + get_biliLogoIcon_v1wv8x_k$() { + return this.biliLogoIcon; + } + get_extra_ir3qw7_k$() { + return this.extra; + } + component1_7eebsc_k$() { + return this.subjectMaterial; + } + component2_7eebsb_k$() { + return this.qrcodeUrl; + } + component3_7eebsa_k$() { + return this.savePicText; + } + component4_7eebs9_k$() { + return this.openAppText; + } + component5_7eebs8_k$() { + return this.shareTimeText; + } + component6_7eebs7_k$() { + return this.biliLogoIcon; + } + component7_7eebs6_k$() { + return this.extra; + } + copy_7v7zbg_k$(subjectMaterial, qrcodeUrl, savePicText, openAppText, shareTimeText, biliLogoIcon, extra) { + return new KShareReplyMaterialResp(subjectMaterial, qrcodeUrl, savePicText, openAppText, shareTimeText, biliLogoIcon, extra); + } + copy(subjectMaterial, qrcodeUrl, savePicText, openAppText, shareTimeText, biliLogoIcon, extra, $super) { + subjectMaterial = subjectMaterial === VOID ? this.subjectMaterial : subjectMaterial; + qrcodeUrl = qrcodeUrl === VOID ? this.qrcodeUrl : qrcodeUrl; + savePicText = savePicText === VOID ? this.savePicText : savePicText; + openAppText = openAppText === VOID ? this.openAppText : openAppText; + shareTimeText = shareTimeText === VOID ? this.shareTimeText : shareTimeText; + biliLogoIcon = biliLogoIcon === VOID ? this.biliLogoIcon : biliLogoIcon; + extra = extra === VOID ? this.extra : extra; + return this.copy_7v7zbg_k$(subjectMaterial, qrcodeUrl, savePicText, openAppText, shareTimeText, biliLogoIcon, extra); + } + toString() { + return 'KShareReplyMaterialResp(subjectMaterial=' + this.subjectMaterial + ', qrcodeUrl=' + this.qrcodeUrl + ', savePicText=' + this.savePicText + ', openAppText=' + this.openAppText + ', shareTimeText=' + this.shareTimeText + ', biliLogoIcon=' + this.biliLogoIcon + ', extra=' + this.extra + ')'; + } + hashCode() { + var result = this.subjectMaterial == null ? 0 : this.subjectMaterial.hashCode(); + result = imul(result, 31) + getStringHashCode(this.qrcodeUrl) | 0; + result = imul(result, 31) + getStringHashCode(this.savePicText) | 0; + result = imul(result, 31) + getStringHashCode(this.openAppText) | 0; + result = imul(result, 31) + getStringHashCode(this.shareTimeText) | 0; + result = imul(result, 31) + getStringHashCode(this.biliLogoIcon) | 0; + result = imul(result, 31) + (this.extra == null ? 0 : this.extra.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KShareReplyMaterialResp)) + return false; + var tmp0_other_with_cast = other instanceof KShareReplyMaterialResp ? other : THROW_CCE(); + if (!equals(this.subjectMaterial, tmp0_other_with_cast.subjectMaterial)) + return false; + if (!(this.qrcodeUrl === tmp0_other_with_cast.qrcodeUrl)) + return false; + if (!(this.savePicText === tmp0_other_with_cast.savePicText)) + return false; + if (!(this.openAppText === tmp0_other_with_cast.openAppText)) + return false; + if (!(this.shareTimeText === tmp0_other_with_cast.shareTimeText)) + return false; + if (!(this.biliLogoIcon === tmp0_other_with_cast.biliLogoIcon)) + return false; + if (!equals(this.extra, tmp0_other_with_cast.extra)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v1_KShareReplyMaterialResp_w9przc_k$(seen1, subjectMaterial, qrcodeUrl, savePicText, openAppText, shareTimeText, biliLogoIcon, extra, serializationConstructorMarker) { + Companion_instance_1414; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1401().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.subjectMaterial = null; + else + $this.subjectMaterial = subjectMaterial; + if (0 === (seen1 & 2)) + $this.qrcodeUrl = ''; + else + $this.qrcodeUrl = qrcodeUrl; + if (0 === (seen1 & 4)) + $this.savePicText = ''; + else + $this.savePicText = savePicText; + if (0 === (seen1 & 8)) + $this.openAppText = ''; + else + $this.openAppText = openAppText; + if (0 === (seen1 & 16)) + $this.shareTimeText = ''; + else + $this.shareTimeText = shareTimeText; + if (0 === (seen1 & 32)) + $this.biliLogoIcon = ''; + else + $this.biliLogoIcon = biliLogoIcon; + if (0 === (seen1 & 64)) + $this.extra = null; + else + $this.extra = extra; + return $this; + } + } + class Companion_1415 { + constructor() { + Companion_instance_1415 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KMode$Companion$values$delegate$lambda_0); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KMode$Companion$_anonymous__er5s9r_0); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_178(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.main.community.reply.v2.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KMode_UNRECOGNIZED_getInstance_0() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.main.community.reply.v2.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KMode with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_178(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_1402 { + constructor() { + $serializer_instance_1402 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.main.community.reply.v2.KMode', 4); + tmp0_serialDesc.addElement_5pzumi_k$('DEFAULT', false); + tmp0_serialDesc.addElement_5pzumi_k$('TIME', false); + tmp0_serialDesc.addElement_5pzumi_k$('HOT', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_178()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_wx5o27_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_wx5o27_k$(encoder, value instanceof KMode_0 ? value : THROW_CCE()); + } + } + class KMode_0 extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_1416 { + constructor() { + Companion_instance_1416 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KUserCallbackScene$Companion$values$delegate$lambda_0); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KUserCallbackScene$Companion$_anonymous__aiyf5q_0); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_179(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.main.community.reply.v2.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KUserCallbackScene_UNRECOGNIZED_getInstance_0() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.main.community.reply.v2.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KUserCallbackScene with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_179(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_1403 { + constructor() { + $serializer_instance_1403 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.main.community.reply.v2.KUserCallbackScene', 4); + tmp0_serialDesc.addElement_5pzumi_k$('DEFAULT', false); + tmp0_serialDesc.addElement_5pzumi_k$('INSERT', false); + tmp0_serialDesc.addElement_5pzumi_k$('RECOMMEND_SUPERB_REPLY', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_179()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_qt0nk4_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_qt0nk4_k$(encoder, value instanceof KUserCallbackScene_0 ? value : THROW_CCE()); + } + } + class KUserCallbackScene_0 extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_1417 { + constructor() { + Companion_instance_1417 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KUserCallbackAction$Companion$values$delegate$lambda_0); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KUserCallbackAction$Companion$_anonymous__gbeybi_0); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_180(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.main.community.reply.v2.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KUserCallbackAction_UNRECOGNIZED_getInstance_0() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.main.community.reply.v2.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KUserCallbackAction with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_180(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_1404 { + constructor() { + $serializer_instance_1404 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.main.community.reply.v2.KUserCallbackAction', 3); + tmp0_serialDesc.addElement_5pzumi_k$('DEFAULT', false); + tmp0_serialDesc.addElement_5pzumi_k$('DISMISS', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_180()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_853nbm_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_853nbm_k$(encoder, value instanceof KUserCallbackAction_0 ? value : THROW_CCE()); + } + } + class KUserCallbackAction_0 extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_1418 { + constructor() { + Companion_instance_1418 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KEditorIconState$Companion$values$delegate$lambda_0); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KEditorIconState$Companion$_anonymous__jlsurz_0); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_181(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.main.community.reply.v2.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KEditorIconState_UNRECOGNIZED_getInstance_0() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.main.community.reply.v2.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KEditorIconState with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_181(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_1405 { + constructor() { + $serializer_instance_1405 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.main.community.reply.v2.KEditorIconState', 5); + tmp0_serialDesc.addElement_5pzumi_k$('DEFAULT', false); + tmp0_serialDesc.addElement_5pzumi_k$('ENABLE', false); + tmp0_serialDesc.addElement_5pzumi_k$('DISABLE', false); + tmp0_serialDesc.addElement_5pzumi_k$('HIDE', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_181()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_8w1oqz_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_8w1oqz_k$(encoder, value instanceof KEditorIconState_0 ? value : THROW_CCE()); + } + } + class KEditorIconState_0 extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_1419 { + constructor() { + this.targetPath = '/bilibili.main.community.reply.v2.SubjectDescriptionReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1406(); + } + } + class $serializer_1406 { + constructor() { + $serializer_instance_1406 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v2.KSubjectDescriptionReq', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('subjectId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('playerParams', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_1414()), get_nullable($serializer_getInstance_1415())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_1414(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_1415(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_1414(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_1415(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSubjectDescriptionReq.new_com_bapis_bilibili_main_community_reply_v2_KSubjectDescriptionReq_9ebns3_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_tm0fuz_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.subjectId == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_1414(), value.subjectId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.playerParams == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_1415(), value.playerParams); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_tm0fuz_k$(encoder, value instanceof KSubjectDescriptionReq ? value : THROW_CCE()); + } + } + class KSubjectDescriptionReq { + constructor(subjectId, playerParams) { + Companion_instance_1419; + subjectId = subjectId === VOID ? null : subjectId; + playerParams = playerParams === VOID ? null : playerParams; + this.subjectId = subjectId; + this.playerParams = playerParams; + } + get_subjectId_csha66_k$() { + return this.subjectId; + } + get_playerParams_1c6pdc_k$() { + return this.playerParams; + } + component1_7eebsc_k$() { + return this.subjectId; + } + component2_7eebsb_k$() { + return this.playerParams; + } + copy_5cu6r5_k$(subjectId, playerParams) { + return new KSubjectDescriptionReq(subjectId, playerParams); + } + copy(subjectId, playerParams, $super) { + subjectId = subjectId === VOID ? this.subjectId : subjectId; + playerParams = playerParams === VOID ? this.playerParams : playerParams; + return this.copy_5cu6r5_k$(subjectId, playerParams); + } + toString() { + return 'KSubjectDescriptionReq(subjectId=' + this.subjectId + ', playerParams=' + this.playerParams + ')'; + } + hashCode() { + var result = this.subjectId == null ? 0 : this.subjectId.hashCode(); + result = imul(result, 31) + (this.playerParams == null ? 0 : this.playerParams.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSubjectDescriptionReq)) + return false; + var tmp0_other_with_cast = other instanceof KSubjectDescriptionReq ? other : THROW_CCE(); + if (!equals(this.subjectId, tmp0_other_with_cast.subjectId)) + return false; + if (!equals(this.playerParams, tmp0_other_with_cast.playerParams)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v2_KSubjectDescriptionReq_9ebns3_k$(seen1, subjectId, playerParams, serializationConstructorMarker) { + Companion_instance_1419; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1406().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.subjectId = null; + else + $this.subjectId = subjectId; + if (0 === (seen1 & 2)) + $this.playerParams = null; + else + $this.playerParams = playerParams; + return $this; + } + } + class Companion_1420 { + constructor() { + this.targetPath = '/bilibili.main.community.reply.v2.SubjectDescriptionReply.InputConfig.EditorIconConfig'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1407(); + } + } + class $serializer_1407 { + constructor() { + $serializer_instance_1407 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v2.KSubjectDescriptionReply.KInputConfig.KEditorIconConfig', this, 8); + tmp0_serialDesc.addElement_5pzumi_k$('screenshotIconState', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('uploadPictureIconState', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('voteIconState', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('noteIconState', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('goodsIconState', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('insertContentIconState', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('elecIconState', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('cmBizHelperIconState', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = 0; + var tmp6_local2 = 0; + var tmp7_local3 = 0; + var tmp8_local4 = 0; + var tmp9_local5 = 0; + var tmp10_local6 = 0; + var tmp11_local7 = 0; + var tmp12_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp12_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + } else + while (tmp1_flag) { + tmp2_index = tmp12_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp12_input.endStructure_1xqz0n_k$(tmp0_desc); + return KEditorIconConfig.new_com_bapis_bilibili_main_community_reply_v2_KSubjectDescriptionReply_KInputConfig_KEditorIconConfig_pfvcg1_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null); + } + serialize_hjmwqb_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.screenshotIconState === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.screenshotIconState); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.uploadPictureIconState === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.uploadPictureIconState); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.voteIconState === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.voteIconState); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.noteIconState === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 3, value.noteIconState); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.goodsIconState === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 4, value.goodsIconState); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.insertContentIconState === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 5, value.insertContentIconState); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.elecIconState === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 6, value.elecIconState); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.cmBizHelperIconState === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 7, value.cmBizHelperIconState); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_hjmwqb_k$(encoder, value instanceof KEditorIconConfig ? value : THROW_CCE()); + } + } + class Companion_1421 { + constructor() { + this.targetPath = '/bilibili.main.community.reply.v2.SubjectDescriptionReply.InputConfig.GradePanel.Grade'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1408(); + } + } + class $serializer_1408 { + constructor() { + $serializer_instance_1408 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v2.KSubjectDescriptionReply.KInputConfig.KGradePanel.KGrade', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('id', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('image', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KGrade.new_com_bapis_bilibili_main_community_reply_v2_KSubjectDescriptionReply_KInputConfig_KGradePanel_KGrade_oe3tkt_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_nq5ooy_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.id.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.id); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.image === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.image); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.title); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_nq5ooy_k$(encoder, value instanceof KGrade ? value : THROW_CCE()); + } + } + class KGrade { + constructor(id, image, title) { + Companion_instance_1421; + id = id === VOID ? new Long(0, 0) : id; + image = image === VOID ? '' : image; + title = title === VOID ? '' : title; + this.id = id; + this.image = image; + this.title = title; + } + get_id_kntnx8_k$() { + return this.id; + } + get_image_it3i2a_k$() { + return this.image; + } + get_title_iz32un_k$() { + return this.title; + } + component1_7eebsc_k$() { + return this.id; + } + component2_7eebsb_k$() { + return this.image; + } + component3_7eebsa_k$() { + return this.title; + } + copy_ijggmr_k$(id, image, title) { + return new KGrade(id, image, title); + } + copy(id, image, title, $super) { + id = id === VOID ? this.id : id; + image = image === VOID ? this.image : image; + title = title === VOID ? this.title : title; + return this.copy_ijggmr_k$(id, image, title); + } + toString() { + return 'KGrade(id=' + this.id.toString() + ', image=' + this.image + ', title=' + this.title + ')'; + } + hashCode() { + var result = this.id.hashCode(); + result = imul(result, 31) + getStringHashCode(this.image) | 0; + result = imul(result, 31) + getStringHashCode(this.title) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KGrade)) + return false; + var tmp0_other_with_cast = other instanceof KGrade ? other : THROW_CCE(); + if (!this.id.equals(tmp0_other_with_cast.id)) + return false; + if (!(this.image === tmp0_other_with_cast.image)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v2_KSubjectDescriptionReply_KInputConfig_KGradePanel_KGrade_oe3tkt_k$(seen1, id, image, title, serializationConstructorMarker) { + Companion_instance_1421; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1408().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.id = new Long(0, 0); + else + $this.id = id; + if (0 === (seen1 & 2)) + $this.image = ''; + else + $this.image = image; + if (0 === (seen1 & 4)) + $this.title = ''; + else + $this.title = title; + return $this; + } + } + class Companion_1422 { + constructor() { + Companion_instance_1422 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, new ArrayListSerializer($serializer_getInstance_1408())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.main.community.reply.v2.SubjectDescriptionReply.InputConfig.GradePanel'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1409(); + } + } + class $serializer_1409 { + constructor() { + $serializer_instance_1409 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v2.KSubjectDescriptionReply.KInputConfig.KGradePanel', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('promptText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('grades', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_1422().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), tmp0_cached[1]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp7_cached = Companion_getInstance_1422().$childSerializers_1; + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KGradePanel.new_com_bapis_bilibili_main_community_reply_v2_KSubjectDescriptionReply_KInputConfig_KGradePanel_bkzh0t_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_6g642_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_1422().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.promptText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.promptText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !equals(value.grades, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 1, tmp2_cached[1], value.grades); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_6g642_k$(encoder, value instanceof KGradePanel ? value : THROW_CCE()); + } + } + class KEditorIconConfig { + constructor(screenshotIconState, uploadPictureIconState, voteIconState, noteIconState, goodsIconState, insertContentIconState, elecIconState, cmBizHelperIconState) { + Companion_instance_1420; + screenshotIconState = screenshotIconState === VOID ? 0 : screenshotIconState; + uploadPictureIconState = uploadPictureIconState === VOID ? 0 : uploadPictureIconState; + voteIconState = voteIconState === VOID ? 0 : voteIconState; + noteIconState = noteIconState === VOID ? 0 : noteIconState; + goodsIconState = goodsIconState === VOID ? 0 : goodsIconState; + insertContentIconState = insertContentIconState === VOID ? 0 : insertContentIconState; + elecIconState = elecIconState === VOID ? 0 : elecIconState; + cmBizHelperIconState = cmBizHelperIconState === VOID ? 0 : cmBizHelperIconState; + this.screenshotIconState = screenshotIconState; + this.uploadPictureIconState = uploadPictureIconState; + this.voteIconState = voteIconState; + this.noteIconState = noteIconState; + this.goodsIconState = goodsIconState; + this.insertContentIconState = insertContentIconState; + this.elecIconState = elecIconState; + this.cmBizHelperIconState = cmBizHelperIconState; + } + get_screenshotIconState_5ei2cp_k$() { + return this.screenshotIconState; + } + get_uploadPictureIconState_s092fw_k$() { + return this.uploadPictureIconState; + } + get_voteIconState_hcty91_k$() { + return this.voteIconState; + } + get_noteIconState_eusy1v_k$() { + return this.noteIconState; + } + get_goodsIconState_9v08a3_k$() { + return this.goodsIconState; + } + get_insertContentIconState_wmb4sh_k$() { + return this.insertContentIconState; + } + get_elecIconState_mj43va_k$() { + return this.elecIconState; + } + get_cmBizHelperIconState_ifxeie_k$() { + return this.cmBizHelperIconState; + } + screenshotIconStateEnum() { + return Companion_getInstance_1418().fromValue(this.screenshotIconState); + } + uploadPictureIconStateEnum() { + return Companion_getInstance_1418().fromValue(this.uploadPictureIconState); + } + voteIconStateEnum() { + return Companion_getInstance_1418().fromValue(this.voteIconState); + } + noteIconStateEnum() { + return Companion_getInstance_1418().fromValue(this.noteIconState); + } + goodsIconStateEnum() { + return Companion_getInstance_1418().fromValue(this.goodsIconState); + } + insertContentIconStateEnum() { + return Companion_getInstance_1418().fromValue(this.insertContentIconState); + } + elecIconStateEnum() { + return Companion_getInstance_1418().fromValue(this.elecIconState); + } + cmBizHelperIconStateEnum() { + return Companion_getInstance_1418().fromValue(this.cmBizHelperIconState); + } + component1_7eebsc_k$() { + return this.screenshotIconState; + } + component2_7eebsb_k$() { + return this.uploadPictureIconState; + } + component3_7eebsa_k$() { + return this.voteIconState; + } + component4_7eebs9_k$() { + return this.noteIconState; + } + component5_7eebs8_k$() { + return this.goodsIconState; + } + component6_7eebs7_k$() { + return this.insertContentIconState; + } + component7_7eebs6_k$() { + return this.elecIconState; + } + component8_7eebs5_k$() { + return this.cmBizHelperIconState; + } + copy_pba6q3_k$(screenshotIconState, uploadPictureIconState, voteIconState, noteIconState, goodsIconState, insertContentIconState, elecIconState, cmBizHelperIconState) { + return new KEditorIconConfig(screenshotIconState, uploadPictureIconState, voteIconState, noteIconState, goodsIconState, insertContentIconState, elecIconState, cmBizHelperIconState); + } + copy(screenshotIconState, uploadPictureIconState, voteIconState, noteIconState, goodsIconState, insertContentIconState, elecIconState, cmBizHelperIconState, $super) { + screenshotIconState = screenshotIconState === VOID ? this.screenshotIconState : screenshotIconState; + uploadPictureIconState = uploadPictureIconState === VOID ? this.uploadPictureIconState : uploadPictureIconState; + voteIconState = voteIconState === VOID ? this.voteIconState : voteIconState; + noteIconState = noteIconState === VOID ? this.noteIconState : noteIconState; + goodsIconState = goodsIconState === VOID ? this.goodsIconState : goodsIconState; + insertContentIconState = insertContentIconState === VOID ? this.insertContentIconState : insertContentIconState; + elecIconState = elecIconState === VOID ? this.elecIconState : elecIconState; + cmBizHelperIconState = cmBizHelperIconState === VOID ? this.cmBizHelperIconState : cmBizHelperIconState; + return this.copy_pba6q3_k$(screenshotIconState, uploadPictureIconState, voteIconState, noteIconState, goodsIconState, insertContentIconState, elecIconState, cmBizHelperIconState); + } + toString() { + return 'KEditorIconConfig(screenshotIconState=' + this.screenshotIconState + ', uploadPictureIconState=' + this.uploadPictureIconState + ', voteIconState=' + this.voteIconState + ', noteIconState=' + this.noteIconState + ', goodsIconState=' + this.goodsIconState + ', insertContentIconState=' + this.insertContentIconState + ', elecIconState=' + this.elecIconState + ', cmBizHelperIconState=' + this.cmBizHelperIconState + ')'; + } + hashCode() { + var result = this.screenshotIconState; + result = imul(result, 31) + this.uploadPictureIconState | 0; + result = imul(result, 31) + this.voteIconState | 0; + result = imul(result, 31) + this.noteIconState | 0; + result = imul(result, 31) + this.goodsIconState | 0; + result = imul(result, 31) + this.insertContentIconState | 0; + result = imul(result, 31) + this.elecIconState | 0; + result = imul(result, 31) + this.cmBizHelperIconState | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KEditorIconConfig)) + return false; + var tmp0_other_with_cast = other instanceof KEditorIconConfig ? other : THROW_CCE(); + if (!(this.screenshotIconState === tmp0_other_with_cast.screenshotIconState)) + return false; + if (!(this.uploadPictureIconState === tmp0_other_with_cast.uploadPictureIconState)) + return false; + if (!(this.voteIconState === tmp0_other_with_cast.voteIconState)) + return false; + if (!(this.noteIconState === tmp0_other_with_cast.noteIconState)) + return false; + if (!(this.goodsIconState === tmp0_other_with_cast.goodsIconState)) + return false; + if (!(this.insertContentIconState === tmp0_other_with_cast.insertContentIconState)) + return false; + if (!(this.elecIconState === tmp0_other_with_cast.elecIconState)) + return false; + if (!(this.cmBizHelperIconState === tmp0_other_with_cast.cmBizHelperIconState)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v2_KSubjectDescriptionReply_KInputConfig_KEditorIconConfig_pfvcg1_k$(seen1, screenshotIconState, uploadPictureIconState, voteIconState, noteIconState, goodsIconState, insertContentIconState, elecIconState, cmBizHelperIconState, serializationConstructorMarker) { + Companion_instance_1420; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1407().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.screenshotIconState = 0; + else + $this.screenshotIconState = screenshotIconState; + if (0 === (seen1 & 2)) + $this.uploadPictureIconState = 0; + else + $this.uploadPictureIconState = uploadPictureIconState; + if (0 === (seen1 & 4)) + $this.voteIconState = 0; + else + $this.voteIconState = voteIconState; + if (0 === (seen1 & 8)) + $this.noteIconState = 0; + else + $this.noteIconState = noteIconState; + if (0 === (seen1 & 16)) + $this.goodsIconState = 0; + else + $this.goodsIconState = goodsIconState; + if (0 === (seen1 & 32)) + $this.insertContentIconState = 0; + else + $this.insertContentIconState = insertContentIconState; + if (0 === (seen1 & 64)) + $this.elecIconState = 0; + else + $this.elecIconState = elecIconState; + if (0 === (seen1 & 128)) + $this.cmBizHelperIconState = 0; + else + $this.cmBizHelperIconState = cmBizHelperIconState; + return $this; + } + } + class KGradePanel { + constructor(promptText, grades) { + Companion_getInstance_1422(); + promptText = promptText === VOID ? '' : promptText; + grades = grades === VOID ? emptyList() : grades; + this.promptText = promptText; + this.grades = grades; + } + get_promptText_39ngzq_k$() { + return this.promptText; + } + get_grades_dxrs79_k$() { + return this.grades; + } + component1_7eebsc_k$() { + return this.promptText; + } + component2_7eebsb_k$() { + return this.grades; + } + copy_p8ldas_k$(promptText, grades) { + return new KGradePanel(promptText, grades); + } + copy(promptText, grades, $super) { + promptText = promptText === VOID ? this.promptText : promptText; + grades = grades === VOID ? this.grades : grades; + return this.copy_p8ldas_k$(promptText, grades); + } + toString() { + return 'KGradePanel(promptText=' + this.promptText + ', grades=' + this.grades + ')'; + } + hashCode() { + var result = getStringHashCode(this.promptText); + result = imul(result, 31) + hashCode(this.grades) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KGradePanel)) + return false; + var tmp0_other_with_cast = other instanceof KGradePanel ? other : THROW_CCE(); + if (!(this.promptText === tmp0_other_with_cast.promptText)) + return false; + if (!equals(this.grades, tmp0_other_with_cast.grades)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v2_KSubjectDescriptionReply_KInputConfig_KGradePanel_bkzh0t_k$(seen1, promptText, grades, serializationConstructorMarker) { + Companion_getInstance_1422(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1409().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.promptText = ''; + else + $this.promptText = promptText; + if (0 === (seen1 & 2)) + $this.grades = emptyList(); + else + $this.grades = grades; + return $this; + } + } + class Companion_1423 { + constructor() { + this.targetPath = '/bilibili.main.community.reply.v2.SubjectDescriptionReply.InputConfig'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1410(); + } + } + class $serializer_1410 { + constructor() { + $serializer_instance_1410 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v2.KSubjectDescriptionReply.KInputConfig', this, 6); + tmp0_serialDesc.addElement_5pzumi_k$('disabled', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('rootText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('childText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('giveUpText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('editorIconConfig', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('gradePanel', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [BooleanSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_1407()), get_nullable($serializer_getInstance_1409())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = false; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp10_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp10_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_1407(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_1409(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + } else + while (tmp1_flag) { + tmp2_index = tmp10_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp10_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp10_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_1407(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_1409(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp10_input.endStructure_1xqz0n_k$(tmp0_desc); + return KInputConfig.new_com_bapis_bilibili_main_community_reply_v2_KSubjectDescriptionReply_KInputConfig_lvj8om_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); + } + serialize_jf84qw_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.disabled === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 0, value.disabled); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.rootText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.rootText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.childText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.childText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.giveUpText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.giveUpText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.editorIconConfig == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, $serializer_getInstance_1407(), value.editorIconConfig); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.gradePanel == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 5, $serializer_getInstance_1409(), value.gradePanel); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_jf84qw_k$(encoder, value instanceof KInputConfig ? value : THROW_CCE()); + } + } + class Companion_1424 { + constructor() { + Companion_instance_1424 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, new ArrayListSerializer($serializer_getInstance_1423())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.main.community.reply.v2.SubjectDescriptionReply.EmoteConfig'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1411(); + } + } + class $serializer_1411 { + constructor() { + $serializer_instance_1411 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v2.KSubjectDescriptionReply.KEmoteConfig', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('jumpEmoteDisabled', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('suggestEmotes', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_1424().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [BooleanSerializer_getInstance(), tmp0_cached[1]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = false; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp7_cached = Companion_getInstance_1424().$childSerializers_1; + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KEmoteConfig.new_com_bapis_bilibili_main_community_reply_v2_KSubjectDescriptionReply_KEmoteConfig_9rywmt_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_lw4zjq_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_1424().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.jumpEmoteDisabled === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 0, value.jumpEmoteDisabled); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !equals(value.suggestEmotes, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 1, tmp2_cached[1], value.suggestEmotes); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_lw4zjq_k$(encoder, value instanceof KEmoteConfig ? value : THROW_CCE()); + } + } + class Companion_1425 { + constructor() { + this.targetPath = '/bilibili.main.community.reply.v2.SubjectDescriptionReply.FilterTag'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1412(); + } + } + class $serializer_1412 { + constructor() { + $serializer_instance_1412 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v2.KSubjectDescriptionReply.KFilterTag', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('id', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('eventId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KFilterTag_0.new_com_bapis_bilibili_main_community_reply_v2_KSubjectDescriptionReply_KFilterTag_mp4otp_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_hvp2jm_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.id.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.id); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.eventId === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.eventId); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_hvp2jm_k$(encoder, value instanceof KFilterTag_0 ? value : THROW_CCE()); + } + } + class KInputConfig { + constructor(disabled, rootText, childText, giveUpText, editorIconConfig, gradePanel) { + Companion_instance_1423; + disabled = disabled === VOID ? false : disabled; + rootText = rootText === VOID ? '' : rootText; + childText = childText === VOID ? '' : childText; + giveUpText = giveUpText === VOID ? '' : giveUpText; + editorIconConfig = editorIconConfig === VOID ? null : editorIconConfig; + gradePanel = gradePanel === VOID ? null : gradePanel; + this.disabled = disabled; + this.rootText = rootText; + this.childText = childText; + this.giveUpText = giveUpText; + this.editorIconConfig = editorIconConfig; + this.gradePanel = gradePanel; + } + get_disabled_rbmjej_k$() { + return this.disabled; + } + get_rootText_yka1vs_k$() { + return this.rootText; + } + get_childText_6xuw1s_k$() { + return this.childText; + } + get_giveUpText_bck7z6_k$() { + return this.giveUpText; + } + get_editorIconConfig_2df2nl_k$() { + return this.editorIconConfig; + } + get_gradePanel_i68jka_k$() { + return this.gradePanel; + } + component1_7eebsc_k$() { + return this.disabled; + } + component2_7eebsb_k$() { + return this.rootText; + } + component3_7eebsa_k$() { + return this.childText; + } + component4_7eebs9_k$() { + return this.giveUpText; + } + component5_7eebs8_k$() { + return this.editorIconConfig; + } + component6_7eebs7_k$() { + return this.gradePanel; + } + copy_q71jkf_k$(disabled, rootText, childText, giveUpText, editorIconConfig, gradePanel) { + return new KInputConfig(disabled, rootText, childText, giveUpText, editorIconConfig, gradePanel); + } + copy(disabled, rootText, childText, giveUpText, editorIconConfig, gradePanel, $super) { + disabled = disabled === VOID ? this.disabled : disabled; + rootText = rootText === VOID ? this.rootText : rootText; + childText = childText === VOID ? this.childText : childText; + giveUpText = giveUpText === VOID ? this.giveUpText : giveUpText; + editorIconConfig = editorIconConfig === VOID ? this.editorIconConfig : editorIconConfig; + gradePanel = gradePanel === VOID ? this.gradePanel : gradePanel; + return this.copy_q71jkf_k$(disabled, rootText, childText, giveUpText, editorIconConfig, gradePanel); + } + toString() { + return 'KInputConfig(disabled=' + this.disabled + ', rootText=' + this.rootText + ', childText=' + this.childText + ', giveUpText=' + this.giveUpText + ', editorIconConfig=' + this.editorIconConfig + ', gradePanel=' + this.gradePanel + ')'; + } + hashCode() { + var result = getBooleanHashCode(this.disabled); + result = imul(result, 31) + getStringHashCode(this.rootText) | 0; + result = imul(result, 31) + getStringHashCode(this.childText) | 0; + result = imul(result, 31) + getStringHashCode(this.giveUpText) | 0; + result = imul(result, 31) + (this.editorIconConfig == null ? 0 : this.editorIconConfig.hashCode()) | 0; + result = imul(result, 31) + (this.gradePanel == null ? 0 : this.gradePanel.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KInputConfig)) + return false; + var tmp0_other_with_cast = other instanceof KInputConfig ? other : THROW_CCE(); + if (!(this.disabled === tmp0_other_with_cast.disabled)) + return false; + if (!(this.rootText === tmp0_other_with_cast.rootText)) + return false; + if (!(this.childText === tmp0_other_with_cast.childText)) + return false; + if (!(this.giveUpText === tmp0_other_with_cast.giveUpText)) + return false; + if (!equals(this.editorIconConfig, tmp0_other_with_cast.editorIconConfig)) + return false; + if (!equals(this.gradePanel, tmp0_other_with_cast.gradePanel)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v2_KSubjectDescriptionReply_KInputConfig_lvj8om_k$(seen1, disabled, rootText, childText, giveUpText, editorIconConfig, gradePanel, serializationConstructorMarker) { + Companion_instance_1423; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1410().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.disabled = false; + else + $this.disabled = disabled; + if (0 === (seen1 & 2)) + $this.rootText = ''; + else + $this.rootText = rootText; + if (0 === (seen1 & 4)) + $this.childText = ''; + else + $this.childText = childText; + if (0 === (seen1 & 8)) + $this.giveUpText = ''; + else + $this.giveUpText = giveUpText; + if (0 === (seen1 & 16)) + $this.editorIconConfig = null; + else + $this.editorIconConfig = editorIconConfig; + if (0 === (seen1 & 32)) + $this.gradePanel = null; + else + $this.gradePanel = gradePanel; + return $this; + } + } + class KEmoteConfig { + constructor(jumpEmoteDisabled, suggestEmotes) { + Companion_getInstance_1424(); + jumpEmoteDisabled = jumpEmoteDisabled === VOID ? false : jumpEmoteDisabled; + suggestEmotes = suggestEmotes === VOID ? emptyList() : suggestEmotes; + this.jumpEmoteDisabled = jumpEmoteDisabled; + this.suggestEmotes = suggestEmotes; + } + get_jumpEmoteDisabled_w0unfn_k$() { + return this.jumpEmoteDisabled; + } + get_suggestEmotes_w39ily_k$() { + return this.suggestEmotes; + } + component1_7eebsc_k$() { + return this.jumpEmoteDisabled; + } + component2_7eebsb_k$() { + return this.suggestEmotes; + } + copy_lsi21g_k$(jumpEmoteDisabled, suggestEmotes) { + return new KEmoteConfig(jumpEmoteDisabled, suggestEmotes); + } + copy(jumpEmoteDisabled, suggestEmotes, $super) { + jumpEmoteDisabled = jumpEmoteDisabled === VOID ? this.jumpEmoteDisabled : jumpEmoteDisabled; + suggestEmotes = suggestEmotes === VOID ? this.suggestEmotes : suggestEmotes; + return this.copy_lsi21g_k$(jumpEmoteDisabled, suggestEmotes); + } + toString() { + return 'KEmoteConfig(jumpEmoteDisabled=' + this.jumpEmoteDisabled + ', suggestEmotes=' + this.suggestEmotes + ')'; + } + hashCode() { + var result = getBooleanHashCode(this.jumpEmoteDisabled); + result = imul(result, 31) + hashCode(this.suggestEmotes) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KEmoteConfig)) + return false; + var tmp0_other_with_cast = other instanceof KEmoteConfig ? other : THROW_CCE(); + if (!(this.jumpEmoteDisabled === tmp0_other_with_cast.jumpEmoteDisabled)) + return false; + if (!equals(this.suggestEmotes, tmp0_other_with_cast.suggestEmotes)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v2_KSubjectDescriptionReply_KEmoteConfig_9rywmt_k$(seen1, jumpEmoteDisabled, suggestEmotes, serializationConstructorMarker) { + Companion_getInstance_1424(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1411().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.jumpEmoteDisabled = false; + else + $this.jumpEmoteDisabled = jumpEmoteDisabled; + if (0 === (seen1 & 2)) + $this.suggestEmotes = emptyList(); + else + $this.suggestEmotes = suggestEmotes; + return $this; + } + } + class KFilterTag_0 { + constructor(id, title, eventId) { + Companion_instance_1425; + id = id === VOID ? new Long(0, 0) : id; + title = title === VOID ? '' : title; + eventId = eventId === VOID ? '' : eventId; + this.id = id; + this.title = title; + this.eventId = eventId; + } + get_id_kntnx8_k$() { + return this.id; + } + get_title_iz32un_k$() { + return this.title; + } + get_eventId_lhza1g_k$() { + return this.eventId; + } + component1_7eebsc_k$() { + return this.id; + } + component2_7eebsb_k$() { + return this.title; + } + component3_7eebsa_k$() { + return this.eventId; + } + copy_ijggmr_k$(id, title, eventId) { + return new KFilterTag_0(id, title, eventId); + } + copy(id, title, eventId, $super) { + id = id === VOID ? this.id : id; + title = title === VOID ? this.title : title; + eventId = eventId === VOID ? this.eventId : eventId; + return this.copy_ijggmr_k$(id, title, eventId); + } + toString() { + return 'KFilterTag(id=' + this.id.toString() + ', title=' + this.title + ', eventId=' + this.eventId + ')'; + } + hashCode() { + var result = this.id.hashCode(); + result = imul(result, 31) + getStringHashCode(this.title) | 0; + result = imul(result, 31) + getStringHashCode(this.eventId) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KFilterTag_0)) + return false; + var tmp0_other_with_cast = other instanceof KFilterTag_0 ? other : THROW_CCE(); + if (!this.id.equals(tmp0_other_with_cast.id)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.eventId === tmp0_other_with_cast.eventId)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v2_KSubjectDescriptionReply_KFilterTag_mp4otp_k$(seen1, id, title, eventId, serializationConstructorMarker) { + Companion_instance_1425; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1412().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.id = new Long(0, 0); + else + $this.id = id; + if (0 === (seen1 & 2)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 4)) + $this.eventId = ''; + else + $this.eventId = eventId; + return $this; + } + } + class Companion_1426 { + constructor() { + Companion_instance_1426 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, null, new ArrayListSerializer($serializer_getInstance_1412()), new ArrayListSerializer(StringSerializer_getInstance()), new ArrayListSerializer($serializer_getInstance_1416()), null, new ArrayListSerializer($serializer_getInstance_1425()), null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.main.community.reply.v2.SubjectDescriptionReply'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1413(); + } + } + class $serializer_1413 { + constructor() { + $serializer_instance_1413 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v2.KSubjectDescriptionReply', this, 10); + tmp0_serialDesc.addElement_5pzumi_k$('count', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('input', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('emote', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('emptyPage', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('supportFilterTags', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('preloadResUrls', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('userCallbacks', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('upMid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('preloadResources', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('guestLimit', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_1426().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), get_nullable($serializer_getInstance_1410()), get_nullable($serializer_getInstance_1411()), get_nullable($serializer_getInstance_1422()), tmp0_cached[4], tmp0_cached[5], tmp0_cached[6], LongSerializer_getInstance(), tmp0_cached[8], BooleanSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = new Long(0, 0); + var tmp12_local8 = null; + var tmp13_local9 = false; + var tmp14_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp15_cached = Companion_getInstance_1426().$childSerializers_1; + if (tmp14_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_1410(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_1411(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_1422(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp14_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 4, tmp15_cached[4], tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp14_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 5, tmp15_cached[5], tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp14_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 6, tmp15_cached[6], tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp14_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 8, tmp15_cached[8], tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp14_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + } else + while (tmp1_flag) { + tmp2_index = tmp14_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_1410(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_1411(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_1422(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp14_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 4, tmp15_cached[4], tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp14_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 5, tmp15_cached[5], tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp14_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 6, tmp15_cached[6], tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp14_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 8, tmp15_cached[8], tmp12_local8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp14_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp14_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSubjectDescriptionReply.new_com_bapis_bilibili_main_community_reply_v2_KSubjectDescriptionReply_pqvva_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, null); + } + serialize_ex1ofz_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_1426().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.count.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.count); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.input == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_1410(), value.input); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.emote == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_1411(), value.emote); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.emptyPage == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_1422(), value.emptyPage); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !equals(value.supportFilterTags, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 4, tmp2_cached[4], value.supportFilterTags); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !equals(value.preloadResUrls, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 5, tmp2_cached[5], value.preloadResUrls); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !equals(value.userCallbacks, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 6, tmp2_cached[6], value.userCallbacks); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !value.upMid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 7, value.upMid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !equals(value.preloadResources, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 8, tmp2_cached[8], value.preloadResources); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.guestLimit === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 9, value.guestLimit); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_ex1ofz_k$(encoder, value instanceof KSubjectDescriptionReply ? value : THROW_CCE()); + } + } + class KSubjectDescriptionReply { + constructor(count, input, emote, emptyPage, supportFilterTags, preloadResUrls, userCallbacks, upMid, preloadResources, guestLimit) { + Companion_getInstance_1426(); + count = count === VOID ? new Long(0, 0) : count; + input = input === VOID ? null : input; + emote = emote === VOID ? null : emote; + emptyPage = emptyPage === VOID ? null : emptyPage; + supportFilterTags = supportFilterTags === VOID ? emptyList() : supportFilterTags; + preloadResUrls = preloadResUrls === VOID ? emptyList() : preloadResUrls; + userCallbacks = userCallbacks === VOID ? emptyList() : userCallbacks; + upMid = upMid === VOID ? new Long(0, 0) : upMid; + preloadResources = preloadResources === VOID ? emptyList() : preloadResources; + guestLimit = guestLimit === VOID ? false : guestLimit; + this.count = count; + this.input = input; + this.emote = emote; + this.emptyPage = emptyPage; + this.supportFilterTags = supportFilterTags; + this.preloadResUrls = preloadResUrls; + this.userCallbacks = userCallbacks; + this.upMid = upMid; + this.preloadResources = preloadResources; + this.guestLimit = guestLimit; + } + get_count_ipufhi_k$() { + return this.count; + } + get_input_it4gip_k$() { + return this.input; + } + get_emote_iqwmdr_k$() { + return this.emote; + } + get_emptyPage_eyyyb1_k$() { + return this.emptyPage; + } + get_supportFilterTags_wvynuf_k$() { + return this.supportFilterTags; + } + get_preloadResUrls_ng2oik_k$() { + return this.preloadResUrls; + } + get_userCallbacks_e02viy_k$() { + return this.userCallbacks; + } + get_upMid_izqjd0_k$() { + return this.upMid; + } + get_preloadResources_2xxwkb_k$() { + return this.preloadResources; + } + get_guestLimit_lk5mj0_k$() { + return this.guestLimit; + } + component1_7eebsc_k$() { + return this.count; + } + component2_7eebsb_k$() { + return this.input; + } + component3_7eebsa_k$() { + return this.emote; + } + component4_7eebs9_k$() { + return this.emptyPage; + } + component5_7eebs8_k$() { + return this.supportFilterTags; + } + component6_7eebs7_k$() { + return this.preloadResUrls; + } + component7_7eebs6_k$() { + return this.userCallbacks; + } + component8_7eebs5_k$() { + return this.upMid; + } + component9_7eebs4_k$() { + return this.preloadResources; + } + component10_gazzfo_k$() { + return this.guestLimit; + } + copy_2tjp5g_k$(count, input, emote, emptyPage, supportFilterTags, preloadResUrls, userCallbacks, upMid, preloadResources, guestLimit) { + return new KSubjectDescriptionReply(count, input, emote, emptyPage, supportFilterTags, preloadResUrls, userCallbacks, upMid, preloadResources, guestLimit); + } + copy(count, input, emote, emptyPage, supportFilterTags, preloadResUrls, userCallbacks, upMid, preloadResources, guestLimit, $super) { + count = count === VOID ? this.count : count; + input = input === VOID ? this.input : input; + emote = emote === VOID ? this.emote : emote; + emptyPage = emptyPage === VOID ? this.emptyPage : emptyPage; + supportFilterTags = supportFilterTags === VOID ? this.supportFilterTags : supportFilterTags; + preloadResUrls = preloadResUrls === VOID ? this.preloadResUrls : preloadResUrls; + userCallbacks = userCallbacks === VOID ? this.userCallbacks : userCallbacks; + upMid = upMid === VOID ? this.upMid : upMid; + preloadResources = preloadResources === VOID ? this.preloadResources : preloadResources; + guestLimit = guestLimit === VOID ? this.guestLimit : guestLimit; + return this.copy_2tjp5g_k$(count, input, emote, emptyPage, supportFilterTags, preloadResUrls, userCallbacks, upMid, preloadResources, guestLimit); + } + toString() { + return 'KSubjectDescriptionReply(count=' + this.count.toString() + ', input=' + this.input + ', emote=' + this.emote + ', emptyPage=' + this.emptyPage + ', supportFilterTags=' + this.supportFilterTags + ', preloadResUrls=' + this.preloadResUrls + ', userCallbacks=' + this.userCallbacks + ', upMid=' + this.upMid.toString() + ', preloadResources=' + this.preloadResources + ', guestLimit=' + this.guestLimit + ')'; + } + hashCode() { + var result = this.count.hashCode(); + result = imul(result, 31) + (this.input == null ? 0 : this.input.hashCode()) | 0; + result = imul(result, 31) + (this.emote == null ? 0 : this.emote.hashCode()) | 0; + result = imul(result, 31) + (this.emptyPage == null ? 0 : this.emptyPage.hashCode()) | 0; + result = imul(result, 31) + hashCode(this.supportFilterTags) | 0; + result = imul(result, 31) + hashCode(this.preloadResUrls) | 0; + result = imul(result, 31) + hashCode(this.userCallbacks) | 0; + result = imul(result, 31) + this.upMid.hashCode() | 0; + result = imul(result, 31) + hashCode(this.preloadResources) | 0; + result = imul(result, 31) + getBooleanHashCode(this.guestLimit) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSubjectDescriptionReply)) + return false; + var tmp0_other_with_cast = other instanceof KSubjectDescriptionReply ? other : THROW_CCE(); + if (!this.count.equals(tmp0_other_with_cast.count)) + return false; + if (!equals(this.input, tmp0_other_with_cast.input)) + return false; + if (!equals(this.emote, tmp0_other_with_cast.emote)) + return false; + if (!equals(this.emptyPage, tmp0_other_with_cast.emptyPage)) + return false; + if (!equals(this.supportFilterTags, tmp0_other_with_cast.supportFilterTags)) + return false; + if (!equals(this.preloadResUrls, tmp0_other_with_cast.preloadResUrls)) + return false; + if (!equals(this.userCallbacks, tmp0_other_with_cast.userCallbacks)) + return false; + if (!this.upMid.equals(tmp0_other_with_cast.upMid)) + return false; + if (!equals(this.preloadResources, tmp0_other_with_cast.preloadResources)) + return false; + if (!(this.guestLimit === tmp0_other_with_cast.guestLimit)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v2_KSubjectDescriptionReply_pqvva_k$(seen1, count, input, emote, emptyPage, supportFilterTags, preloadResUrls, userCallbacks, upMid, preloadResources, guestLimit, serializationConstructorMarker) { + Companion_getInstance_1426(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1413().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.count = new Long(0, 0); + else + $this.count = count; + if (0 === (seen1 & 2)) + $this.input = null; + else + $this.input = input; + if (0 === (seen1 & 4)) + $this.emote = null; + else + $this.emote = emote; + if (0 === (seen1 & 8)) + $this.emptyPage = null; + else + $this.emptyPage = emptyPage; + if (0 === (seen1 & 16)) + $this.supportFilterTags = emptyList(); + else + $this.supportFilterTags = supportFilterTags; + if (0 === (seen1 & 32)) + $this.preloadResUrls = emptyList(); + else + $this.preloadResUrls = preloadResUrls; + if (0 === (seen1 & 64)) + $this.userCallbacks = emptyList(); + else + $this.userCallbacks = userCallbacks; + if (0 === (seen1 & 128)) + $this.upMid = new Long(0, 0); + else + $this.upMid = upMid; + if (0 === (seen1 & 256)) + $this.preloadResources = emptyList(); + else + $this.preloadResources = preloadResources; + if (0 === (seen1 & 512)) + $this.guestLimit = false; + else + $this.guestLimit = guestLimit; + return $this; + } + } + class Companion_1427 { + constructor() { + this.targetPath = '/bilibili.main.community.reply.v2.SubjectID'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1414(); + } + } + class $serializer_1414 { + constructor() { + $serializer_instance_1414 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v2.KSubjectID', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('oid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('type', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = new Long(0, 0); + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KSubjectID.new_com_bapis_bilibili_main_community_reply_v2_KSubjectID_rkncl0_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_thrv76_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.oid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.oid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.type.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.type); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_thrv76_k$(encoder, value instanceof KSubjectID ? value : THROW_CCE()); + } + } + class KSubjectID { + constructor(oid, type) { + Companion_instance_1427; + oid = oid === VOID ? new Long(0, 0) : oid; + type = type === VOID ? new Long(0, 0) : type; + this.oid = oid; + this.type = type; + } + get_oid_18iz6n_k$() { + return this.oid; + } + get_type_wovaf7_k$() { + return this.type; + } + component1_7eebsc_k$() { + return this.oid; + } + component2_7eebsb_k$() { + return this.type; + } + copy_bynm9d_k$(oid, type) { + return new KSubjectID(oid, type); + } + copy(oid, type, $super) { + oid = oid === VOID ? this.oid : oid; + type = type === VOID ? this.type : type; + return this.copy_bynm9d_k$(oid, type); + } + toString() { + return 'KSubjectID(oid=' + this.oid.toString() + ', type=' + this.type.toString() + ')'; + } + hashCode() { + var result = this.oid.hashCode(); + result = imul(result, 31) + this.type.hashCode() | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KSubjectID)) + return false; + var tmp0_other_with_cast = other instanceof KSubjectID ? other : THROW_CCE(); + if (!this.oid.equals(tmp0_other_with_cast.oid)) + return false; + if (!this.type.equals(tmp0_other_with_cast.type)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v2_KSubjectID_rkncl0_k$(seen1, oid, type, serializationConstructorMarker) { + Companion_instance_1427; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1414().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.oid = new Long(0, 0); + else + $this.oid = oid; + if (0 === (seen1 & 2)) + $this.type = new Long(0, 0); + else + $this.type = type; + return $this; + } + } + class Companion_1428 { + constructor() { + this.targetPath = '/bilibili.main.community.reply.v2.PlayerParams'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1415(); + } + } + class $serializer_1415 { + constructor() { + $serializer_instance_1415 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v2.KPlayerParams', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('isStory', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('disableFilterTag', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [BooleanSerializer_getInstance(), BooleanSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = false; + var tmp5_local1 = false; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KPlayerParams.new_com_bapis_bilibili_main_community_reply_v2_KPlayerParams_nuns26_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_f8gbvq_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.isStory === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 0, value.isStory); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.disableFilterTag === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 1, value.disableFilterTag); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_f8gbvq_k$(encoder, value instanceof KPlayerParams ? value : THROW_CCE()); + } + } + class KPlayerParams { + constructor(isStory, disableFilterTag) { + Companion_instance_1428; + isStory = isStory === VOID ? false : isStory; + disableFilterTag = disableFilterTag === VOID ? false : disableFilterTag; + this.isStory = isStory; + this.disableFilterTag = disableFilterTag; + } + get_isStory_ziflry_k$() { + return this.isStory; + } + get_disableFilterTag_w5oyt9_k$() { + return this.disableFilterTag; + } + component1_7eebsc_k$() { + return this.isStory; + } + component2_7eebsb_k$() { + return this.disableFilterTag; + } + copy_ccyf2t_k$(isStory, disableFilterTag) { + return new KPlayerParams(isStory, disableFilterTag); + } + copy(isStory, disableFilterTag, $super) { + isStory = isStory === VOID ? this.isStory : isStory; + disableFilterTag = disableFilterTag === VOID ? this.disableFilterTag : disableFilterTag; + return this.copy_ccyf2t_k$(isStory, disableFilterTag); + } + toString() { + return 'KPlayerParams(isStory=' + this.isStory + ', disableFilterTag=' + this.disableFilterTag + ')'; + } + hashCode() { + var result = getBooleanHashCode(this.isStory); + result = imul(result, 31) + getBooleanHashCode(this.disableFilterTag) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KPlayerParams)) + return false; + var tmp0_other_with_cast = other instanceof KPlayerParams ? other : THROW_CCE(); + if (!(this.isStory === tmp0_other_with_cast.isStory)) + return false; + if (!(this.disableFilterTag === tmp0_other_with_cast.disableFilterTag)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v2_KPlayerParams_nuns26_k$(seen1, isStory, disableFilterTag, serializationConstructorMarker) { + Companion_instance_1428; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1415().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.isStory = false; + else + $this.isStory = isStory; + if (0 === (seen1 & 2)) + $this.disableFilterTag = false; + else + $this.disableFilterTag = disableFilterTag; + return $this; + } + } + class Companion_1429 { + constructor() { + this.targetPath = '/bilibili.main.community.reply.v2.UserCallback'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1416(); + } + } + class $serializer_1416 { + constructor() { + $serializer_instance_1416 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v2.KUserCallback', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('scene', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('action', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = 0; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KUserCallback.new_com_bapis_bilibili_main_community_reply_v2_KUserCallback_tufvux_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_r3e6u5_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.scene === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.scene); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.action === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.action); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_r3e6u5_k$(encoder, value instanceof KUserCallback ? value : THROW_CCE()); + } + } + class KUserCallback { + constructor(scene, action) { + Companion_instance_1429; + scene = scene === VOID ? 0 : scene; + action = action === VOID ? 0 : action; + this.scene = scene; + this.action = action; + } + get_scene_iyf59f_k$() { + return this.scene; + } + get_action_avldmn_k$() { + return this.action; + } + sceneEnum() { + return Companion_getInstance_1416().fromValue(this.scene); + } + actionEnum() { + return Companion_getInstance_1417().fromValue(this.action); + } + component1_7eebsc_k$() { + return this.scene; + } + component2_7eebsb_k$() { + return this.action; + } + copy_fhtu3_k$(scene, action) { + return new KUserCallback(scene, action); + } + copy(scene, action, $super) { + scene = scene === VOID ? this.scene : scene; + action = action === VOID ? this.action : action; + return this.copy_fhtu3_k$(scene, action); + } + toString() { + return 'KUserCallback(scene=' + this.scene + ', action=' + this.action + ')'; + } + hashCode() { + var result = this.scene; + result = imul(result, 31) + this.action | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KUserCallback)) + return false; + var tmp0_other_with_cast = other instanceof KUserCallback ? other : THROW_CCE(); + if (!(this.scene === tmp0_other_with_cast.scene)) + return false; + if (!(this.action === tmp0_other_with_cast.action)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v2_KUserCallback_tufvux_k$(seen1, scene, action, serializationConstructorMarker) { + Companion_instance_1429; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1416().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.scene = 0; + else + $this.scene = scene; + if (0 === (seen1 & 2)) + $this.action = 0; + else + $this.action = action; + return $this; + } + } + class Companion_1430 { + constructor() { + Companion_instance_1430 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KTextStyle$KFontStyle$Companion$values$delegate$lambda_0); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KTextStyle$KFontStyle$Companion$_anonymous__lrx8y5_0); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_182(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.main.community.reply.v2.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KFontStyle_UNRECOGNIZED_getInstance_0() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.main.community.reply.v2.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KFontStyle with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_182(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_1417 { + constructor() { + $serializer_instance_1417 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.main.community.reply.v2.KTextStyle.KFontStyle', 3); + tmp0_serialDesc.addElement_5pzumi_k$('NORMAL', false); + tmp0_serialDesc.addElement_5pzumi_k$('BOLD', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_182()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_rq22ct_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_rq22ct_k$(encoder, value instanceof KFontStyle_0 ? value : THROW_CCE()); + } + } + class KFontStyle_0 extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_1431 { + constructor() { + this.targetPath = '/bilibili.main.community.reply.v2.TextStyle'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1418(); + } + } + class $serializer_1418 { + constructor() { + $serializer_instance_1418 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v2.KTextStyle', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('fontSize', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('fontStyle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('textDayColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('textNightColor', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = 0; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KTextStyle_0.new_com_bapis_bilibili_main_community_reply_v2_KTextStyle_7p92q5_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_908lsl_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.fontSize === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.fontSize); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.fontStyle === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.fontStyle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.textDayColor === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.textDayColor); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.textNightColor === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.textNightColor); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_908lsl_k$(encoder, value instanceof KTextStyle_0 ? value : THROW_CCE()); + } + } + class KTextStyle_0 { + constructor(fontSize, fontStyle, textDayColor, textNightColor) { + Companion_instance_1431; + fontSize = fontSize === VOID ? 0 : fontSize; + fontStyle = fontStyle === VOID ? 0 : fontStyle; + textDayColor = textDayColor === VOID ? '' : textDayColor; + textNightColor = textNightColor === VOID ? '' : textNightColor; + this.fontSize = fontSize; + this.fontStyle = fontStyle; + this.textDayColor = textDayColor; + this.textNightColor = textNightColor; + } + get_fontSize_pr9n47_k$() { + return this.fontSize; + } + get_fontStyle_h4vaiv_k$() { + return this.fontStyle; + } + get_textDayColor_vm8i4d_k$() { + return this.textDayColor; + } + get_textNightColor_luh3r5_k$() { + return this.textNightColor; + } + fontStyleEnum() { + return Companion_getInstance_1430().fromValue(this.fontStyle); + } + component1_7eebsc_k$() { + return this.fontSize; + } + component2_7eebsb_k$() { + return this.fontStyle; + } + component3_7eebsa_k$() { + return this.textDayColor; + } + component4_7eebs9_k$() { + return this.textNightColor; + } + copy_14br63_k$(fontSize, fontStyle, textDayColor, textNightColor) { + return new KTextStyle_0(fontSize, fontStyle, textDayColor, textNightColor); + } + copy(fontSize, fontStyle, textDayColor, textNightColor, $super) { + fontSize = fontSize === VOID ? this.fontSize : fontSize; + fontStyle = fontStyle === VOID ? this.fontStyle : fontStyle; + textDayColor = textDayColor === VOID ? this.textDayColor : textDayColor; + textNightColor = textNightColor === VOID ? this.textNightColor : textNightColor; + return this.copy_14br63_k$(fontSize, fontStyle, textDayColor, textNightColor); + } + toString() { + return 'KTextStyle(fontSize=' + this.fontSize + ', fontStyle=' + this.fontStyle + ', textDayColor=' + this.textDayColor + ', textNightColor=' + this.textNightColor + ')'; + } + hashCode() { + var result = this.fontSize; + result = imul(result, 31) + this.fontStyle | 0; + result = imul(result, 31) + getStringHashCode(this.textDayColor) | 0; + result = imul(result, 31) + getStringHashCode(this.textNightColor) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KTextStyle_0)) + return false; + var tmp0_other_with_cast = other instanceof KTextStyle_0 ? other : THROW_CCE(); + if (!(this.fontSize === tmp0_other_with_cast.fontSize)) + return false; + if (!(this.fontStyle === tmp0_other_with_cast.fontStyle)) + return false; + if (!(this.textDayColor === tmp0_other_with_cast.textDayColor)) + return false; + if (!(this.textNightColor === tmp0_other_with_cast.textNightColor)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v2_KTextStyle_7p92q5_k$(seen1, fontSize, fontStyle, textDayColor, textNightColor, serializationConstructorMarker) { + Companion_instance_1431; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1418().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.fontSize = 0; + else + $this.fontSize = fontSize; + if (0 === (seen1 & 2)) + $this.fontStyle = 0; + else + $this.fontStyle = fontStyle; + if (0 === (seen1 & 4)) + $this.textDayColor = ''; + else + $this.textDayColor = textDayColor; + if (0 === (seen1 & 8)) + $this.textNightColor = ''; + else + $this.textNightColor = textNightColor; + return $this; + } + } + class Companion_1432 { + constructor() { + Companion_instance_1432 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KEmptyPage$KAction$Companion$values$delegate$lambda_0); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KEmptyPage$KAction$Companion$_anonymous__s0kvzz_0); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_183(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.main.community.reply.v2.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KAction_UNRECOGNIZED_getInstance_0() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.main.community.reply.v2.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KAction with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_183(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_1419 { + constructor() { + $serializer_instance_1419 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.main.community.reply.v2.KEmptyPage.KAction', 4); + tmp0_serialDesc.addElement_5pzumi_k$('UNAVAILABLE', false); + tmp0_serialDesc.addElement_5pzumi_k$('SHOW_KEYBOARD', false); + tmp0_serialDesc.addElement_5pzumi_k$('SEND_REPLY_WITH_BOLD_TEXT', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_183()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_1q3yrz_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_1q3yrz_k$(encoder, value instanceof KAction_0 ? value : THROW_CCE()); + } + } + class Companion_1433 { + constructor() { + this.targetPath = '/bilibili.main.community.reply.v2.EmptyPage.Text'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1420(); + } + } + class $serializer_1420 { + constructor() { + $serializer_instance_1420 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v2.KEmptyPage.KText', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('raw', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('style', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('action', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), get_nullable($serializer_getInstance_1418()), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = 0; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_1418(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_1418(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KText_4.new_com_bapis_bilibili_main_community_reply_v2_KEmptyPage_KText_w5w308_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_3xf5f_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.raw === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.raw); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.style == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_1418(), value.style); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.action === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.action); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_3xf5f_k$(encoder, value instanceof KText_4 ? value : THROW_CCE()); + } + } + class Companion_1434 { + constructor() { + this.targetPath = '/bilibili.main.community.reply.v2.EmptyPage.Button'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1421(); + } + } + class $serializer_1421 { + constructor() { + $serializer_instance_1421 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v2.KEmptyPage.KButton', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('action', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = 0; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KButton_7.new_com_bapis_bilibili_main_community_reply_v2_KEmptyPage_KButton_sol732_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_wpq0ky_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.action === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.action); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_wpq0ky_k$(encoder, value instanceof KButton_7 ? value : THROW_CCE()); + } + } + class KAction_0 extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class KText_4 { + constructor(raw, style, action) { + Companion_instance_1433; + raw = raw === VOID ? '' : raw; + style = style === VOID ? null : style; + action = action === VOID ? 0 : action; + this.raw = raw; + this.style = style; + this.action = action; + } + get_raw_18ix4x_k$() { + return this.raw; + } + get_style_iyqetk_k$() { + return this.style; + } + get_action_avldmn_k$() { + return this.action; + } + actionEnum() { + return Companion_getInstance_1432().fromValue(this.action); + } + component1_7eebsc_k$() { + return this.raw; + } + component2_7eebsb_k$() { + return this.style; + } + component3_7eebsa_k$() { + return this.action; + } + copy_8r488y_k$(raw, style, action) { + return new KText_4(raw, style, action); + } + copy(raw, style, action, $super) { + raw = raw === VOID ? this.raw : raw; + style = style === VOID ? this.style : style; + action = action === VOID ? this.action : action; + return this.copy_8r488y_k$(raw, style, action); + } + toString() { + return 'KText(raw=' + this.raw + ', style=' + this.style + ', action=' + this.action + ')'; + } + hashCode() { + var result = getStringHashCode(this.raw); + result = imul(result, 31) + (this.style == null ? 0 : this.style.hashCode()) | 0; + result = imul(result, 31) + this.action | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KText_4)) + return false; + var tmp0_other_with_cast = other instanceof KText_4 ? other : THROW_CCE(); + if (!(this.raw === tmp0_other_with_cast.raw)) + return false; + if (!equals(this.style, tmp0_other_with_cast.style)) + return false; + if (!(this.action === tmp0_other_with_cast.action)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v2_KEmptyPage_KText_w5w308_k$(seen1, raw, style, action, serializationConstructorMarker) { + Companion_instance_1433; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1420().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.raw = ''; + else + $this.raw = raw; + if (0 === (seen1 & 2)) + $this.style = null; + else + $this.style = style; + if (0 === (seen1 & 4)) + $this.action = 0; + else + $this.action = action; + return $this; + } + } + class KButton_7 { + constructor(title, action) { + Companion_instance_1434; + title = title === VOID ? '' : title; + action = action === VOID ? 0 : action; + this.title = title; + this.action = action; + } + get_title_iz32un_k$() { + return this.title; + } + get_action_avldmn_k$() { + return this.action; + } + actionEnum() { + return Companion_getInstance_1432().fromValue(this.action); + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.action; + } + copy_1yzwer_k$(title, action) { + return new KButton_7(title, action); + } + copy(title, action, $super) { + title = title === VOID ? this.title : title; + action = action === VOID ? this.action : action; + return this.copy_1yzwer_k$(title, action); + } + toString() { + return 'KButton(title=' + this.title + ', action=' + this.action + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + this.action | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KButton_7)) + return false; + var tmp0_other_with_cast = other instanceof KButton_7 ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.action === tmp0_other_with_cast.action)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v2_KEmptyPage_KButton_sol732_k$(seen1, title, action, serializationConstructorMarker) { + Companion_instance_1434; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1421().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.action = 0; + else + $this.action = action; + return $this; + } + } + class Companion_1435 { + constructor() { + Companion_instance_1435 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, new ArrayListSerializer($serializer_getInstance_1420()), null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.main.community.reply.v2.EmptyPage'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1422(); + } + } + class $serializer_1422 { + constructor() { + $serializer_instance_1422 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v2.KEmptyPage', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('imageUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('texts', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('leftButton', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('rightButton', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_1435().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), tmp0_cached[1], get_nullable($serializer_getInstance_1421()), get_nullable($serializer_getInstance_1421())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp9_cached = Companion_getInstance_1435().$childSerializers_1; + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp9_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_1421(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_1421(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp9_cached[1], tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_1421(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_1421(), tmp7_local3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KEmptyPage_0.new_com_bapis_bilibili_main_community_reply_v2_KEmptyPage_p0odzt_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_1q34nx_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_1435().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.imageUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.imageUrl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !equals(value.texts, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 1, tmp2_cached[1], value.texts); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.leftButton == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_1421(), value.leftButton); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.rightButton == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_1421(), value.rightButton); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_1q34nx_k$(encoder, value instanceof KEmptyPage_0 ? value : THROW_CCE()); + } + } + class KEmptyPage_0 { + constructor(imageUrl, texts, leftButton, rightButton) { + Companion_getInstance_1435(); + imageUrl = imageUrl === VOID ? '' : imageUrl; + texts = texts === VOID ? emptyList() : texts; + leftButton = leftButton === VOID ? null : leftButton; + rightButton = rightButton === VOID ? null : rightButton; + this.imageUrl = imageUrl; + this.texts = texts; + this.leftButton = leftButton; + this.rightButton = rightButton; + } + get_imageUrl_p0dvj1_k$() { + return this.imageUrl; + } + get_texts_iz0m2l_k$() { + return this.texts; + } + get_leftButton_6to5gi_k$() { + return this.leftButton; + } + get_rightButton_xf75n_k$() { + return this.rightButton; + } + component1_7eebsc_k$() { + return this.imageUrl; + } + component2_7eebsb_k$() { + return this.texts; + } + component3_7eebsa_k$() { + return this.leftButton; + } + component4_7eebs9_k$() { + return this.rightButton; + } + copy_beeqfj_k$(imageUrl, texts, leftButton, rightButton) { + return new KEmptyPage_0(imageUrl, texts, leftButton, rightButton); + } + copy(imageUrl, texts, leftButton, rightButton, $super) { + imageUrl = imageUrl === VOID ? this.imageUrl : imageUrl; + texts = texts === VOID ? this.texts : texts; + leftButton = leftButton === VOID ? this.leftButton : leftButton; + rightButton = rightButton === VOID ? this.rightButton : rightButton; + return this.copy_beeqfj_k$(imageUrl, texts, leftButton, rightButton); + } + toString() { + return 'KEmptyPage(imageUrl=' + this.imageUrl + ', texts=' + this.texts + ', leftButton=' + this.leftButton + ', rightButton=' + this.rightButton + ')'; + } + hashCode() { + var result = getStringHashCode(this.imageUrl); + result = imul(result, 31) + hashCode(this.texts) | 0; + result = imul(result, 31) + (this.leftButton == null ? 0 : this.leftButton.hashCode()) | 0; + result = imul(result, 31) + (this.rightButton == null ? 0 : this.rightButton.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KEmptyPage_0)) + return false; + var tmp0_other_with_cast = other instanceof KEmptyPage_0 ? other : THROW_CCE(); + if (!(this.imageUrl === tmp0_other_with_cast.imageUrl)) + return false; + if (!equals(this.texts, tmp0_other_with_cast.texts)) + return false; + if (!equals(this.leftButton, tmp0_other_with_cast.leftButton)) + return false; + if (!equals(this.rightButton, tmp0_other_with_cast.rightButton)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v2_KEmptyPage_p0odzt_k$(seen1, imageUrl, texts, leftButton, rightButton, serializationConstructorMarker) { + Companion_getInstance_1435(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1422().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.imageUrl = ''; + else + $this.imageUrl = imageUrl; + if (0 === (seen1 & 2)) + $this.texts = emptyList(); + else + $this.texts = texts; + if (0 === (seen1 & 4)) + $this.leftButton = null; + else + $this.leftButton = leftButton; + if (0 === (seen1 & 8)) + $this.rightButton = null; + else + $this.rightButton = rightButton; + return $this; + } + } + class Companion_1436 { + constructor() { + this.targetPath = '/bilibili.main.community.reply.v2.Emote'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1423(); + } + } + class $serializer_1423 { + constructor() { + $serializer_instance_1423 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v2.KEmote', this, 8); + tmp0_serialDesc.addElement_5pzumi_k$('size', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('url', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('jumpUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('jumpTitle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('id', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('packageId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('gifUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('text', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = new Long(0, 0); + var tmp9_local5 = new Long(0, 0); + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp12_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + } else + while (tmp1_flag) { + tmp2_index = tmp12_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp12_input.endStructure_1xqz0n_k$(tmp0_desc); + return KEmote_1.new_com_bapis_bilibili_main_community_reply_v2_KEmote_q8ikzi_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null); + } + serialize_lwh1jz_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.size.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.size); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.url === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.url); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.jumpUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.jumpUrl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.jumpTitle === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.jumpTitle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !value.id.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 4, value.id); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !value.packageId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 5, value.packageId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.gifUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.gifUrl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.text === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.text); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_lwh1jz_k$(encoder, value instanceof KEmote_1 ? value : THROW_CCE()); + } + } + class KEmote_1 { + constructor(size, url, jumpUrl, jumpTitle, id, packageId, gifUrl, text) { + Companion_instance_1436; + size = size === VOID ? new Long(0, 0) : size; + url = url === VOID ? '' : url; + jumpUrl = jumpUrl === VOID ? '' : jumpUrl; + jumpTitle = jumpTitle === VOID ? '' : jumpTitle; + id = id === VOID ? new Long(0, 0) : id; + packageId = packageId === VOID ? new Long(0, 0) : packageId; + gifUrl = gifUrl === VOID ? '' : gifUrl; + text = text === VOID ? '' : text; + this.size = size; + this.url = url; + this.jumpUrl = jumpUrl; + this.jumpTitle = jumpTitle; + this.id = id; + this.packageId = packageId; + this.gifUrl = gifUrl; + this.text = text; + } + get_size_woubt6_k$() { + return this.size; + } + get_url_18iuii_k$() { + return this.url; + } + get_jumpUrl_jhqiko_k$() { + return this.jumpUrl; + } + get_jumpTitle_jo7cwx_k$() { + return this.jumpTitle; + } + get_id_kntnx8_k$() { + return this.id; + } + get_packageId_wpotrc_k$() { + return this.packageId; + } + get_gifUrl_dswiz8_k$() { + return this.gifUrl; + } + get_text_wouvsm_k$() { + return this.text; + } + component1_7eebsc_k$() { + return this.size; + } + component2_7eebsb_k$() { + return this.url; + } + component3_7eebsa_k$() { + return this.jumpUrl; + } + component4_7eebs9_k$() { + return this.jumpTitle; + } + component5_7eebs8_k$() { + return this.id; + } + component6_7eebs7_k$() { + return this.packageId; + } + component7_7eebs6_k$() { + return this.gifUrl; + } + component8_7eebs5_k$() { + return this.text; + } + copy_phag9v_k$(size, url, jumpUrl, jumpTitle, id, packageId, gifUrl, text) { + return new KEmote_1(size, url, jumpUrl, jumpTitle, id, packageId, gifUrl, text); + } + copy(size, url, jumpUrl, jumpTitle, id, packageId, gifUrl, text, $super) { + size = size === VOID ? this.size : size; + url = url === VOID ? this.url : url; + jumpUrl = jumpUrl === VOID ? this.jumpUrl : jumpUrl; + jumpTitle = jumpTitle === VOID ? this.jumpTitle : jumpTitle; + id = id === VOID ? this.id : id; + packageId = packageId === VOID ? this.packageId : packageId; + gifUrl = gifUrl === VOID ? this.gifUrl : gifUrl; + text = text === VOID ? this.text : text; + return this.copy_phag9v_k$(size, url, jumpUrl, jumpTitle, id, packageId, gifUrl, text); + } + toString() { + return 'KEmote(size=' + this.size.toString() + ', url=' + this.url + ', jumpUrl=' + this.jumpUrl + ', jumpTitle=' + this.jumpTitle + ', id=' + this.id.toString() + ', packageId=' + this.packageId.toString() + ', gifUrl=' + this.gifUrl + ', text=' + this.text + ')'; + } + hashCode() { + var result = this.size.hashCode(); + result = imul(result, 31) + getStringHashCode(this.url) | 0; + result = imul(result, 31) + getStringHashCode(this.jumpUrl) | 0; + result = imul(result, 31) + getStringHashCode(this.jumpTitle) | 0; + result = imul(result, 31) + this.id.hashCode() | 0; + result = imul(result, 31) + this.packageId.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.gifUrl) | 0; + result = imul(result, 31) + getStringHashCode(this.text) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KEmote_1)) + return false; + var tmp0_other_with_cast = other instanceof KEmote_1 ? other : THROW_CCE(); + if (!this.size.equals(tmp0_other_with_cast.size)) + return false; + if (!(this.url === tmp0_other_with_cast.url)) + return false; + if (!(this.jumpUrl === tmp0_other_with_cast.jumpUrl)) + return false; + if (!(this.jumpTitle === tmp0_other_with_cast.jumpTitle)) + return false; + if (!this.id.equals(tmp0_other_with_cast.id)) + return false; + if (!this.packageId.equals(tmp0_other_with_cast.packageId)) + return false; + if (!(this.gifUrl === tmp0_other_with_cast.gifUrl)) + return false; + if (!(this.text === tmp0_other_with_cast.text)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v2_KEmote_q8ikzi_k$(seen1, size, url, jumpUrl, jumpTitle, id, packageId, gifUrl, text, serializationConstructorMarker) { + Companion_instance_1436; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1423().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.size = new Long(0, 0); + else + $this.size = size; + if (0 === (seen1 & 2)) + $this.url = ''; + else + $this.url = url; + if (0 === (seen1 & 4)) + $this.jumpUrl = ''; + else + $this.jumpUrl = jumpUrl; + if (0 === (seen1 & 8)) + $this.jumpTitle = ''; + else + $this.jumpTitle = jumpTitle; + if (0 === (seen1 & 16)) + $this.id = new Long(0, 0); + else + $this.id = id; + if (0 === (seen1 & 32)) + $this.packageId = new Long(0, 0); + else + $this.packageId = packageId; + if (0 === (seen1 & 64)) + $this.gifUrl = ''; + else + $this.gifUrl = gifUrl; + if (0 === (seen1 & 128)) + $this.text = ''; + else + $this.text = text; + return $this; + } + } + class Companion_1437 { + constructor() { + Companion_instance_1437 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KResource$KBizKind$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KResource$KBizKind$Companion$_anonymous__7sp8rs); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_184(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.main.community.reply.v2.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KBizKind_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.main.community.reply.v2.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KBizKind with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_184(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_1424 { + constructor() { + $serializer_instance_1424 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.main.community.reply.v2.KResource.KBizKind', 5); + tmp0_serialDesc.addElement_5pzumi_k$('UNKNOWN', false); + tmp0_serialDesc.addElement_5pzumi_k$('LIKE_SUCCESS', false); + tmp0_serialDesc.addElement_5pzumi_k$('REPLY_SUCCESS', false); + tmp0_serialDesc.addElement_5pzumi_k$('REPLY_EASTER_EGG', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_184()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_r41h3w_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_r41h3w_k$(encoder, value instanceof KBizKind ? value : THROW_CCE()); + } + } + class KBizKind extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_1438 { + constructor() { + this.targetPath = '/bilibili.main.community.reply.v2.Resource'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1425(); + } + } + class $serializer_1425 { + constructor() { + $serializer_instance_1425 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.main.community.reply.v2.KResource', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('bizKind', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('url', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = null; + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KResource_0.new_com_bapis_bilibili_main_community_reply_v2_KResource_5j4fw2_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_dgs873_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.bizKind === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.bizKind); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.url === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.url); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_dgs873_k$(encoder, value instanceof KResource_0 ? value : THROW_CCE()); + } + } + class KResource_0 { + constructor(bizKind, url) { + Companion_instance_1438; + bizKind = bizKind === VOID ? 0 : bizKind; + url = url === VOID ? '' : url; + this.bizKind = bizKind; + this.url = url; + } + get_bizKind_cq17m_k$() { + return this.bizKind; + } + get_url_18iuii_k$() { + return this.url; + } + bizKindEnum() { + return Companion_getInstance_1437().fromValue(this.bizKind); + } + component1_7eebsc_k$() { + return this.bizKind; + } + component2_7eebsb_k$() { + return this.url; + } + copy_xhhsuv_k$(bizKind, url) { + return new KResource_0(bizKind, url); + } + copy(bizKind, url, $super) { + bizKind = bizKind === VOID ? this.bizKind : bizKind; + url = url === VOID ? this.url : url; + return this.copy_xhhsuv_k$(bizKind, url); + } + toString() { + return 'KResource(bizKind=' + this.bizKind + ', url=' + this.url + ')'; + } + hashCode() { + var result = this.bizKind; + result = imul(result, 31) + getStringHashCode(this.url) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KResource_0)) + return false; + var tmp0_other_with_cast = other instanceof KResource_0 ? other : THROW_CCE(); + if (!(this.bizKind === tmp0_other_with_cast.bizKind)) + return false; + if (!(this.url === tmp0_other_with_cast.url)) + return false; + return true; + } + static new_com_bapis_bilibili_main_community_reply_v2_KResource_5j4fw2_k$(seen1, bizKind, url, serializationConstructorMarker) { + Companion_instance_1438; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1425().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.bizKind = 0; + else + $this.bizKind = bizKind; + if (0 === (seen1 & 2)) + $this.url = ''; + else + $this.url = url; + return $this; + } + } + class Companion_1439 { + constructor() { + this.targetPath = '/bilibili.app.show.v1.PopularResultReq'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1426(); + } + } + class $serializer_1426 { + constructor() { + $serializer_instance_1426 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.show.popular.v1.KPopularResultReq', this, 16); + tmp0_serialDesc.addElement_5pzumi_k$('idx', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('loginEvent', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('qn', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('fnver', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('fnval', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('forceHost', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('fourk', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('spmid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('lastParam', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('ver', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + tmp0_serialDesc.addElement_5pzumi_k$('entranceId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(11)); + tmp0_serialDesc.addElement_5pzumi_k$('locationIds', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(12)); + tmp0_serialDesc.addElement_5pzumi_k$('sourceId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(13)); + tmp0_serialDesc.addElement_5pzumi_k$('flush', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(14)); + tmp0_serialDesc.addElement_5pzumi_k$('playerArgs', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(15)); + tmp0_serialDesc.addElement_5pzumi_k$('popularAd', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(16)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), get_nullable($serializer_getInstance_152()), get_nullable($serializer_getInstance_1427())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = 0; + var tmp6_local2 = 0; + var tmp7_local3 = 0; + var tmp8_local4 = 0; + var tmp9_local5 = 0; + var tmp10_local6 = 0; + var tmp11_local7 = null; + var tmp12_local8 = null; + var tmp13_local9 = null; + var tmp14_local10 = new Long(0, 0); + var tmp15_local11 = null; + var tmp16_local12 = 0; + var tmp17_local13 = 0; + var tmp18_local14 = null; + var tmp19_local15 = null; + var tmp20_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp20_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp20_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + tmp14_local10 = tmp20_input.decodeLongElement_994anb_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + tmp15_local11 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + tmp16_local12 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + tmp17_local13 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + tmp18_local14 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 14, $serializer_getInstance_152(), tmp18_local14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + tmp19_local15 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 15, $serializer_getInstance_1427(), tmp19_local15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + } else + while (tmp1_flag) { + tmp2_index = tmp20_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp20_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + case 10: + tmp14_local10 = tmp20_input.decodeLongElement_994anb_k$(tmp0_desc, 10); + tmp3_bitMask0 = tmp3_bitMask0 | 1024; + break; + case 11: + tmp15_local11 = tmp20_input.decodeStringElement_3oenpg_k$(tmp0_desc, 11); + tmp3_bitMask0 = tmp3_bitMask0 | 2048; + break; + case 12: + tmp16_local12 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 12); + tmp3_bitMask0 = tmp3_bitMask0 | 4096; + break; + case 13: + tmp17_local13 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 13); + tmp3_bitMask0 = tmp3_bitMask0 | 8192; + break; + case 14: + tmp18_local14 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 14, $serializer_getInstance_152(), tmp18_local14); + tmp3_bitMask0 = tmp3_bitMask0 | 16384; + break; + case 15: + tmp19_local15 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 15, $serializer_getInstance_1427(), tmp19_local15); + tmp3_bitMask0 = tmp3_bitMask0 | 32768; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp20_input.endStructure_1xqz0n_k$(tmp0_desc); + return KPopularResultReq.new_com_bapis_bilibili_app_show_popular_v1_KPopularResultReq_f6sy5j_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, tmp18_local14, tmp19_local15, null); + } + serialize_iyprn7_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.idx.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.idx); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.loginEvent === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.loginEvent); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.qn === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.qn); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.fnver === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 3, value.fnver); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.fnval === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 4, value.fnval); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.forceHost === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 5, value.forceHost); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.fourk === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 6, value.fourk); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.spmid === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.spmid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.lastParam === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 8, value.lastParam); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.ver === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 9, value.ver); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !value.entranceId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 10, value.entranceId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.locationIds === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 11, value.locationIds); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !(value.sourceId === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 12, value.sourceId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 13) ? true : !(value.flush === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 13, value.flush); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 14) ? true : !(value.playerArgs == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 14, $serializer_getInstance_152(), value.playerArgs); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 15) ? true : !(value.popularAd == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 15, $serializer_getInstance_1427(), value.popularAd); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_iyprn7_k$(encoder, value instanceof KPopularResultReq ? value : THROW_CCE()); + } + } + class KPopularResultReq { + constructor(idx, loginEvent, qn, fnver, fnval, forceHost, fourk, spmid, lastParam, ver, entranceId, locationIds, sourceId, flush, playerArgs, popularAd) { + Companion_instance_1439; + idx = idx === VOID ? new Long(0, 0) : idx; + loginEvent = loginEvent === VOID ? 0 : loginEvent; + qn = qn === VOID ? 0 : qn; + fnver = fnver === VOID ? 0 : fnver; + fnval = fnval === VOID ? 0 : fnval; + forceHost = forceHost === VOID ? 0 : forceHost; + fourk = fourk === VOID ? 0 : fourk; + spmid = spmid === VOID ? '' : spmid; + lastParam = lastParam === VOID ? '' : lastParam; + ver = ver === VOID ? '' : ver; + entranceId = entranceId === VOID ? new Long(0, 0) : entranceId; + locationIds = locationIds === VOID ? '' : locationIds; + sourceId = sourceId === VOID ? 0 : sourceId; + flush = flush === VOID ? 0 : flush; + playerArgs = playerArgs === VOID ? null : playerArgs; + popularAd = popularAd === VOID ? null : popularAd; + this.idx = idx; + this.loginEvent = loginEvent; + this.qn = qn; + this.fnver = fnver; + this.fnval = fnval; + this.forceHost = forceHost; + this.fourk = fourk; + this.spmid = spmid; + this.lastParam = lastParam; + this.ver = ver; + this.entranceId = entranceId; + this.locationIds = locationIds; + this.sourceId = sourceId; + this.flush = flush; + this.playerArgs = playerArgs; + this.popularAd = popularAd; + } + get_idx_18j3qk_k$() { + return this.idx; + } + get_loginEvent_lk3tq2_k$() { + return this.loginEvent; + } + get_qn_kntnq2_k$() { + return this.qn; + } + get_fnver_irh6sy_k$() { + return this.fnver; + } + get_fnval_irh6pc_k$() { + return this.fnval; + } + get_forceHost_xs29oq_k$() { + return this.forceHost; + } + get_fourk_irhtcs_k$() { + return this.fourk; + } + get_spmid_iynlwi_k$() { + return this.spmid; + } + get_lastParam_tghx5e_k$() { + return this.lastParam; + } + get_ver_18iu2u_k$() { + return this.ver; + } + get_entranceId_77m7lm_k$() { + return this.entranceId; + } + get_locationIds_n10wuy_k$() { + return this.locationIds; + } + get_sourceId_2x7vz5_k$() { + return this.sourceId; + } + get_flush_irfwez_k$() { + return this.flush; + } + get_playerArgs_eh86hz_k$() { + return this.playerArgs; + } + get_popularAd_1qajt9_k$() { + return this.popularAd; + } + component1_7eebsc_k$() { + return this.idx; + } + component2_7eebsb_k$() { + return this.loginEvent; + } + component3_7eebsa_k$() { + return this.qn; + } + component4_7eebs9_k$() { + return this.fnver; + } + component5_7eebs8_k$() { + return this.fnval; + } + component6_7eebs7_k$() { + return this.forceHost; + } + component7_7eebs6_k$() { + return this.fourk; + } + component8_7eebs5_k$() { + return this.spmid; + } + component9_7eebs4_k$() { + return this.lastParam; + } + component10_gazzfo_k$() { + return this.ver; + } + component11_gazzfn_k$() { + return this.entranceId; + } + component12_gazzfm_k$() { + return this.locationIds; + } + component13_gazzfl_k$() { + return this.sourceId; + } + component14_gazzfk_k$() { + return this.flush; + } + component15_gazzfj_k$() { + return this.playerArgs; + } + component16_gazzfi_k$() { + return this.popularAd; + } + copy_xkb7px_k$(idx, loginEvent, qn, fnver, fnval, forceHost, fourk, spmid, lastParam, ver, entranceId, locationIds, sourceId, flush, playerArgs, popularAd) { + return new KPopularResultReq(idx, loginEvent, qn, fnver, fnval, forceHost, fourk, spmid, lastParam, ver, entranceId, locationIds, sourceId, flush, playerArgs, popularAd); + } + copy(idx, loginEvent, qn, fnver, fnval, forceHost, fourk, spmid, lastParam, ver, entranceId, locationIds, sourceId, flush, playerArgs, popularAd, $super) { + idx = idx === VOID ? this.idx : idx; + loginEvent = loginEvent === VOID ? this.loginEvent : loginEvent; + qn = qn === VOID ? this.qn : qn; + fnver = fnver === VOID ? this.fnver : fnver; + fnval = fnval === VOID ? this.fnval : fnval; + forceHost = forceHost === VOID ? this.forceHost : forceHost; + fourk = fourk === VOID ? this.fourk : fourk; + spmid = spmid === VOID ? this.spmid : spmid; + lastParam = lastParam === VOID ? this.lastParam : lastParam; + ver = ver === VOID ? this.ver : ver; + entranceId = entranceId === VOID ? this.entranceId : entranceId; + locationIds = locationIds === VOID ? this.locationIds : locationIds; + sourceId = sourceId === VOID ? this.sourceId : sourceId; + flush = flush === VOID ? this.flush : flush; + playerArgs = playerArgs === VOID ? this.playerArgs : playerArgs; + popularAd = popularAd === VOID ? this.popularAd : popularAd; + return this.copy_xkb7px_k$(idx, loginEvent, qn, fnver, fnval, forceHost, fourk, spmid, lastParam, ver, entranceId, locationIds, sourceId, flush, playerArgs, popularAd); + } + toString() { + return 'KPopularResultReq(idx=' + this.idx.toString() + ', loginEvent=' + this.loginEvent + ', qn=' + this.qn + ', fnver=' + this.fnver + ', fnval=' + this.fnval + ', forceHost=' + this.forceHost + ', fourk=' + this.fourk + ', spmid=' + this.spmid + ', lastParam=' + this.lastParam + ', ver=' + this.ver + ', entranceId=' + this.entranceId.toString() + ', locationIds=' + this.locationIds + ', sourceId=' + this.sourceId + ', flush=' + this.flush + ', playerArgs=' + this.playerArgs + ', popularAd=' + this.popularAd + ')'; + } + hashCode() { + var result = this.idx.hashCode(); + result = imul(result, 31) + this.loginEvent | 0; + result = imul(result, 31) + this.qn | 0; + result = imul(result, 31) + this.fnver | 0; + result = imul(result, 31) + this.fnval | 0; + result = imul(result, 31) + this.forceHost | 0; + result = imul(result, 31) + this.fourk | 0; + result = imul(result, 31) + getStringHashCode(this.spmid) | 0; + result = imul(result, 31) + getStringHashCode(this.lastParam) | 0; + result = imul(result, 31) + getStringHashCode(this.ver) | 0; + result = imul(result, 31) + this.entranceId.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.locationIds) | 0; + result = imul(result, 31) + this.sourceId | 0; + result = imul(result, 31) + this.flush | 0; + result = imul(result, 31) + (this.playerArgs == null ? 0 : this.playerArgs.hashCode()) | 0; + result = imul(result, 31) + (this.popularAd == null ? 0 : this.popularAd.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KPopularResultReq)) + return false; + var tmp0_other_with_cast = other instanceof KPopularResultReq ? other : THROW_CCE(); + if (!this.idx.equals(tmp0_other_with_cast.idx)) + return false; + if (!(this.loginEvent === tmp0_other_with_cast.loginEvent)) + return false; + if (!(this.qn === tmp0_other_with_cast.qn)) + return false; + if (!(this.fnver === tmp0_other_with_cast.fnver)) + return false; + if (!(this.fnval === tmp0_other_with_cast.fnval)) + return false; + if (!(this.forceHost === tmp0_other_with_cast.forceHost)) + return false; + if (!(this.fourk === tmp0_other_with_cast.fourk)) + return false; + if (!(this.spmid === tmp0_other_with_cast.spmid)) + return false; + if (!(this.lastParam === tmp0_other_with_cast.lastParam)) + return false; + if (!(this.ver === tmp0_other_with_cast.ver)) + return false; + if (!this.entranceId.equals(tmp0_other_with_cast.entranceId)) + return false; + if (!(this.locationIds === tmp0_other_with_cast.locationIds)) + return false; + if (!(this.sourceId === tmp0_other_with_cast.sourceId)) + return false; + if (!(this.flush === tmp0_other_with_cast.flush)) + return false; + if (!equals(this.playerArgs, tmp0_other_with_cast.playerArgs)) + return false; + if (!equals(this.popularAd, tmp0_other_with_cast.popularAd)) + return false; + return true; + } + static new_com_bapis_bilibili_app_show_popular_v1_KPopularResultReq_f6sy5j_k$(seen1, idx, loginEvent, qn, fnver, fnval, forceHost, fourk, spmid, lastParam, ver, entranceId, locationIds, sourceId, flush, playerArgs, popularAd, serializationConstructorMarker) { + Companion_instance_1439; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1426().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.idx = new Long(0, 0); + else + $this.idx = idx; + if (0 === (seen1 & 2)) + $this.loginEvent = 0; + else + $this.loginEvent = loginEvent; + if (0 === (seen1 & 4)) + $this.qn = 0; + else + $this.qn = qn; + if (0 === (seen1 & 8)) + $this.fnver = 0; + else + $this.fnver = fnver; + if (0 === (seen1 & 16)) + $this.fnval = 0; + else + $this.fnval = fnval; + if (0 === (seen1 & 32)) + $this.forceHost = 0; + else + $this.forceHost = forceHost; + if (0 === (seen1 & 64)) + $this.fourk = 0; + else + $this.fourk = fourk; + if (0 === (seen1 & 128)) + $this.spmid = ''; + else + $this.spmid = spmid; + if (0 === (seen1 & 256)) + $this.lastParam = ''; + else + $this.lastParam = lastParam; + if (0 === (seen1 & 512)) + $this.ver = ''; + else + $this.ver = ver; + if (0 === (seen1 & 1024)) + $this.entranceId = new Long(0, 0); + else + $this.entranceId = entranceId; + if (0 === (seen1 & 2048)) + $this.locationIds = ''; + else + $this.locationIds = locationIds; + if (0 === (seen1 & 4096)) + $this.sourceId = 0; + else + $this.sourceId = sourceId; + if (0 === (seen1 & 8192)) + $this.flush = 0; + else + $this.flush = flush; + if (0 === (seen1 & 16384)) + $this.playerArgs = null; + else + $this.playerArgs = playerArgs; + if (0 === (seen1 & 32768)) + $this.popularAd = null; + else + $this.popularAd = popularAd; + return $this; + } + } + class Companion_1440 { + constructor() { + this.targetPath = '/bilibili.app.show.v1.PopularAd'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1427(); + } + } + class $serializer_1427 { + constructor() { + $serializer_instance_1427 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.show.popular.v1.KPopularAd', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('extra', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KPopularAd.new_com_bapis_bilibili_app_show_popular_v1_KPopularAd_vopiq4_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_pb571n_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.extra === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.extra); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_pb571n_k$(encoder, value instanceof KPopularAd ? value : THROW_CCE()); + } + } + class KPopularAd { + constructor(extra) { + Companion_instance_1440; + extra = extra === VOID ? '' : extra; + this.extra = extra; + } + get_extra_ir3qw7_k$() { + return this.extra; + } + component1_7eebsc_k$() { + return this.extra; + } + copy_a35qlh_k$(extra) { + return new KPopularAd(extra); + } + copy(extra, $super) { + extra = extra === VOID ? this.extra : extra; + return this.copy_a35qlh_k$(extra); + } + toString() { + return 'KPopularAd(extra=' + this.extra + ')'; + } + hashCode() { + return getStringHashCode(this.extra); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KPopularAd)) + return false; + var tmp0_other_with_cast = other instanceof KPopularAd ? other : THROW_CCE(); + if (!(this.extra === tmp0_other_with_cast.extra)) + return false; + return true; + } + static new_com_bapis_bilibili_app_show_popular_v1_KPopularAd_vopiq4_k$(seen1, extra, serializationConstructorMarker) { + Companion_instance_1440; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1427().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.extra = ''; + else + $this.extra = extra; + return $this; + } + } + class Companion_1441 { + constructor() { + Companion_instance_1441 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer($serializer_getInstance_645()), null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.show.v1.PopularReply'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1428(); + } + } + class $serializer_1428 { + constructor() { + $serializer_instance_1428 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.show.popular.v1.KPopularReply', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('items', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('config', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('ver', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_1441().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0], get_nullable($serializer_getInstance_1429()), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp8_cached = Companion_getInstance_1441().$childSerializers_1; + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp8_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_1429(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp8_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_1429(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KPopularReply.new_com_bapis_bilibili_app_show_popular_v1_KPopularReply_2bq2q2_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_z9gph8_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_1441().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.items, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.items); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.config == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_1429(), value.config); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.ver === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.ver); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_z9gph8_k$(encoder, value instanceof KPopularReply ? value : THROW_CCE()); + } + } + class KPopularReply { + constructor(items, config, ver) { + Companion_getInstance_1441(); + items = items === VOID ? emptyList() : items; + config = config === VOID ? null : config; + ver = ver === VOID ? '' : ver; + this.items = items; + this.config = config; + this.ver = ver; + } + get_items_it823b_k$() { + return this.items; + } + get_config_c0698r_k$() { + return this.config; + } + get_ver_18iu2u_k$() { + return this.ver; + } + component1_7eebsc_k$() { + return this.items; + } + component2_7eebsb_k$() { + return this.config; + } + component3_7eebsa_k$() { + return this.ver; + } + copy_8spre9_k$(items, config, ver) { + return new KPopularReply(items, config, ver); + } + copy(items, config, ver, $super) { + items = items === VOID ? this.items : items; + config = config === VOID ? this.config : config; + ver = ver === VOID ? this.ver : ver; + return this.copy_8spre9_k$(items, config, ver); + } + toString() { + return 'KPopularReply(items=' + this.items + ', config=' + this.config + ', ver=' + this.ver + ')'; + } + hashCode() { + var result = hashCode(this.items); + result = imul(result, 31) + (this.config == null ? 0 : this.config.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.ver) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KPopularReply)) + return false; + var tmp0_other_with_cast = other instanceof KPopularReply ? other : THROW_CCE(); + if (!equals(this.items, tmp0_other_with_cast.items)) + return false; + if (!equals(this.config, tmp0_other_with_cast.config)) + return false; + if (!(this.ver === tmp0_other_with_cast.ver)) + return false; + return true; + } + static new_com_bapis_bilibili_app_show_popular_v1_KPopularReply_2bq2q2_k$(seen1, items, config, ver, serializationConstructorMarker) { + Companion_getInstance_1441(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1428().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.items = emptyList(); + else + $this.items = items; + if (0 === (seen1 & 2)) + $this.config = null; + else + $this.config = config; + if (0 === (seen1 & 4)) + $this.ver = ''; + else + $this.ver = ver; + return $this; + } + } + class Companion_1442 { + constructor() { + Companion_instance_1442 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, null, new ArrayListSerializer($serializer_getInstance_1430()), null, new ArrayListSerializer($serializer_getInstance_1430()), null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.show.v1.Config'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1429(); + } + } + class $serializer_1429 { + constructor() { + $serializer_instance_1429 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.show.popular.v1.KConfig', this, 9); + tmp0_serialDesc.addElement_5pzumi_k$('itemTitle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('bottomText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('bottomTextCover', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('bottomTextUrl', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('topItems', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('headImage', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('pageItems', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('hit', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('toast', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_1442().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), tmp0_cached[4], StringSerializer_getInstance(), tmp0_cached[6], LongSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = new Long(0, 0); + var tmp12_local8 = null; + var tmp13_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp14_cached = Companion_getInstance_1442().$childSerializers_1; + if (tmp13_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp13_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 4, tmp14_cached[4], tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp13_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 6, tmp14_cached[6], tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + } else + while (tmp1_flag) { + tmp2_index = tmp13_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp13_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 4, tmp14_cached[4], tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp13_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 6, tmp14_cached[6], tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp13_input.endStructure_1xqz0n_k$(tmp0_desc); + return KConfig_2.new_com_bapis_bilibili_app_show_popular_v1_KConfig_nxatkz_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, null); + } + serialize_3fhsd_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_1442().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.itemTitle === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.itemTitle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.bottomText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.bottomText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.bottomTextCover === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.bottomTextCover); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.bottomTextUrl === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.bottomTextUrl); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !equals(value.topItems, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 4, tmp2_cached[4], value.topItems); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.headImage === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.headImage); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !equals(value.pageItems, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 6, tmp2_cached[6], value.pageItems); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !value.hit.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 7, value.hit); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.toast === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 8, value.toast); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_3fhsd_k$(encoder, value instanceof KConfig_2 ? value : THROW_CCE()); + } + } + class KConfig_2 { + constructor(itemTitle, bottomText, bottomTextCover, bottomTextUrl, topItems, headImage, pageItems, hit, toast) { + Companion_getInstance_1442(); + itemTitle = itemTitle === VOID ? '' : itemTitle; + bottomText = bottomText === VOID ? '' : bottomText; + bottomTextCover = bottomTextCover === VOID ? '' : bottomTextCover; + bottomTextUrl = bottomTextUrl === VOID ? '' : bottomTextUrl; + topItems = topItems === VOID ? emptyList() : topItems; + headImage = headImage === VOID ? '' : headImage; + pageItems = pageItems === VOID ? emptyList() : pageItems; + hit = hit === VOID ? new Long(0, 0) : hit; + toast = toast === VOID ? '' : toast; + this.itemTitle = itemTitle; + this.bottomText = bottomText; + this.bottomTextCover = bottomTextCover; + this.bottomTextUrl = bottomTextUrl; + this.topItems = topItems; + this.headImage = headImage; + this.pageItems = pageItems; + this.hit = hit; + this.toast = toast; + } + get_itemTitle_r2i6ck_k$() { + return this.itemTitle; + } + get_bottomText_n140w1_k$() { + return this.bottomText; + } + get_bottomTextCover_hei306_k$() { + return this.bottomTextCover; + } + get_bottomTextUrl_pio27i_k$() { + return this.bottomTextUrl; + } + get_topItems_mwxsfo_k$() { + return this.topItems; + } + get_headImage_4k1t4i_k$() { + return this.headImage; + } + get_pageItems_msnu88_k$() { + return this.pageItems; + } + get_hit_18j4d2_k$() { + return this.hit; + } + get_toast_iz6iv2_k$() { + return this.toast; + } + component1_7eebsc_k$() { + return this.itemTitle; + } + component2_7eebsb_k$() { + return this.bottomText; + } + component3_7eebsa_k$() { + return this.bottomTextCover; + } + component4_7eebs9_k$() { + return this.bottomTextUrl; + } + component5_7eebs8_k$() { + return this.topItems; + } + component6_7eebs7_k$() { + return this.headImage; + } + component7_7eebs6_k$() { + return this.pageItems; + } + component8_7eebs5_k$() { + return this.hit; + } + component9_7eebs4_k$() { + return this.toast; + } + copy_ojzct5_k$(itemTitle, bottomText, bottomTextCover, bottomTextUrl, topItems, headImage, pageItems, hit, toast) { + return new KConfig_2(itemTitle, bottomText, bottomTextCover, bottomTextUrl, topItems, headImage, pageItems, hit, toast); + } + copy(itemTitle, bottomText, bottomTextCover, bottomTextUrl, topItems, headImage, pageItems, hit, toast, $super) { + itemTitle = itemTitle === VOID ? this.itemTitle : itemTitle; + bottomText = bottomText === VOID ? this.bottomText : bottomText; + bottomTextCover = bottomTextCover === VOID ? this.bottomTextCover : bottomTextCover; + bottomTextUrl = bottomTextUrl === VOID ? this.bottomTextUrl : bottomTextUrl; + topItems = topItems === VOID ? this.topItems : topItems; + headImage = headImage === VOID ? this.headImage : headImage; + pageItems = pageItems === VOID ? this.pageItems : pageItems; + hit = hit === VOID ? this.hit : hit; + toast = toast === VOID ? this.toast : toast; + return this.copy_ojzct5_k$(itemTitle, bottomText, bottomTextCover, bottomTextUrl, topItems, headImage, pageItems, hit, toast); + } + toString() { + return 'KConfig(itemTitle=' + this.itemTitle + ', bottomText=' + this.bottomText + ', bottomTextCover=' + this.bottomTextCover + ', bottomTextUrl=' + this.bottomTextUrl + ', topItems=' + this.topItems + ', headImage=' + this.headImage + ', pageItems=' + this.pageItems + ', hit=' + this.hit.toString() + ', toast=' + this.toast + ')'; + } + hashCode() { + var result = getStringHashCode(this.itemTitle); + result = imul(result, 31) + getStringHashCode(this.bottomText) | 0; + result = imul(result, 31) + getStringHashCode(this.bottomTextCover) | 0; + result = imul(result, 31) + getStringHashCode(this.bottomTextUrl) | 0; + result = imul(result, 31) + hashCode(this.topItems) | 0; + result = imul(result, 31) + getStringHashCode(this.headImage) | 0; + result = imul(result, 31) + hashCode(this.pageItems) | 0; + result = imul(result, 31) + this.hit.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.toast) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KConfig_2)) + return false; + var tmp0_other_with_cast = other instanceof KConfig_2 ? other : THROW_CCE(); + if (!(this.itemTitle === tmp0_other_with_cast.itemTitle)) + return false; + if (!(this.bottomText === tmp0_other_with_cast.bottomText)) + return false; + if (!(this.bottomTextCover === tmp0_other_with_cast.bottomTextCover)) + return false; + if (!(this.bottomTextUrl === tmp0_other_with_cast.bottomTextUrl)) + return false; + if (!equals(this.topItems, tmp0_other_with_cast.topItems)) + return false; + if (!(this.headImage === tmp0_other_with_cast.headImage)) + return false; + if (!equals(this.pageItems, tmp0_other_with_cast.pageItems)) + return false; + if (!this.hit.equals(tmp0_other_with_cast.hit)) + return false; + if (!(this.toast === tmp0_other_with_cast.toast)) + return false; + return true; + } + static new_com_bapis_bilibili_app_show_popular_v1_KConfig_nxatkz_k$(seen1, itemTitle, bottomText, bottomTextCover, bottomTextUrl, topItems, headImage, pageItems, hit, toast, serializationConstructorMarker) { + Companion_getInstance_1442(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1429().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.itemTitle = ''; + else + $this.itemTitle = itemTitle; + if (0 === (seen1 & 2)) + $this.bottomText = ''; + else + $this.bottomText = bottomText; + if (0 === (seen1 & 4)) + $this.bottomTextCover = ''; + else + $this.bottomTextCover = bottomTextCover; + if (0 === (seen1 & 8)) + $this.bottomTextUrl = ''; + else + $this.bottomTextUrl = bottomTextUrl; + if (0 === (seen1 & 16)) + $this.topItems = emptyList(); + else + $this.topItems = topItems; + if (0 === (seen1 & 32)) + $this.headImage = ''; + else + $this.headImage = headImage; + if (0 === (seen1 & 64)) + $this.pageItems = emptyList(); + else + $this.pageItems = pageItems; + if (0 === (seen1 & 128)) + $this.hit = new Long(0, 0); + else + $this.hit = hit; + if (0 === (seen1 & 256)) + $this.toast = ''; + else + $this.toast = toast; + return $this; + } + } + class Companion_1443 { + constructor() { + this.targetPath = '/bilibili.app.show.v1.EntranceShow'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1430(); + } + } + class $serializer_1430 { + constructor() { + $serializer_instance_1430 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.show.popular.v1.KEntranceShow', this, 8); + tmp0_serialDesc.addElement_5pzumi_k$('icon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('moduleId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('uri', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('bubble', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('entranceId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('topPhoto', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('entranceType', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_1431()), LongSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = new Long(0, 0); + var tmp10_local6 = null; + var tmp11_local7 = 0; + var tmp12_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp12_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_1431(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + } else + while (tmp1_flag) { + tmp2_index = tmp12_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_1431(), tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp12_input.endStructure_1xqz0n_k$(tmp0_desc); + return KEntranceShow.new_com_bapis_bilibili_app_show_popular_v1_KEntranceShow_ipg8mw_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null); + } + serialize_2ptf26_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.icon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.icon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.moduleId === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.moduleId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.uri === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.uri); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.bubble == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, $serializer_getInstance_1431(), value.bubble); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !value.entranceId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 5, value.entranceId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.topPhoto === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.topPhoto); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.entranceType === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 7, value.entranceType); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_2ptf26_k$(encoder, value instanceof KEntranceShow ? value : THROW_CCE()); + } + } + class KEntranceShow { + constructor(icon, title, moduleId, uri, bubble, entranceId, topPhoto, entranceType) { + Companion_instance_1443; + icon = icon === VOID ? '' : icon; + title = title === VOID ? '' : title; + moduleId = moduleId === VOID ? '' : moduleId; + uri = uri === VOID ? '' : uri; + bubble = bubble === VOID ? null : bubble; + entranceId = entranceId === VOID ? new Long(0, 0) : entranceId; + topPhoto = topPhoto === VOID ? '' : topPhoto; + entranceType = entranceType === VOID ? 0 : entranceType; + this.icon = icon; + this.title = title; + this.moduleId = moduleId; + this.uri = uri; + this.bubble = bubble; + this.entranceId = entranceId; + this.topPhoto = topPhoto; + this.entranceType = entranceType; + } + get_icon_wont8i_k$() { + return this.icon; + } + get_title_iz32un_k$() { + return this.title; + } + get_moduleId_t8ezjk_k$() { + return this.moduleId; + } + get_uri_18iuil_k$() { + return this.uri; + } + get_bubble_bm7no5_k$() { + return this.bubble; + } + get_entranceId_77m7lm_k$() { + return this.entranceId; + } + get_topPhoto_n0kwbq_k$() { + return this.topPhoto; + } + get_entranceType_uowyhz_k$() { + return this.entranceType; + } + component1_7eebsc_k$() { + return this.icon; + } + component2_7eebsb_k$() { + return this.title; + } + component3_7eebsa_k$() { + return this.moduleId; + } + component4_7eebs9_k$() { + return this.uri; + } + component5_7eebs8_k$() { + return this.bubble; + } + component6_7eebs7_k$() { + return this.entranceId; + } + component7_7eebs6_k$() { + return this.topPhoto; + } + component8_7eebs5_k$() { + return this.entranceType; + } + copy_o39dnm_k$(icon, title, moduleId, uri, bubble, entranceId, topPhoto, entranceType) { + return new KEntranceShow(icon, title, moduleId, uri, bubble, entranceId, topPhoto, entranceType); + } + copy(icon, title, moduleId, uri, bubble, entranceId, topPhoto, entranceType, $super) { + icon = icon === VOID ? this.icon : icon; + title = title === VOID ? this.title : title; + moduleId = moduleId === VOID ? this.moduleId : moduleId; + uri = uri === VOID ? this.uri : uri; + bubble = bubble === VOID ? this.bubble : bubble; + entranceId = entranceId === VOID ? this.entranceId : entranceId; + topPhoto = topPhoto === VOID ? this.topPhoto : topPhoto; + entranceType = entranceType === VOID ? this.entranceType : entranceType; + return this.copy_o39dnm_k$(icon, title, moduleId, uri, bubble, entranceId, topPhoto, entranceType); + } + toString() { + return 'KEntranceShow(icon=' + this.icon + ', title=' + this.title + ', moduleId=' + this.moduleId + ', uri=' + this.uri + ', bubble=' + this.bubble + ', entranceId=' + this.entranceId.toString() + ', topPhoto=' + this.topPhoto + ', entranceType=' + this.entranceType + ')'; + } + hashCode() { + var result = getStringHashCode(this.icon); + result = imul(result, 31) + getStringHashCode(this.title) | 0; + result = imul(result, 31) + getStringHashCode(this.moduleId) | 0; + result = imul(result, 31) + getStringHashCode(this.uri) | 0; + result = imul(result, 31) + (this.bubble == null ? 0 : this.bubble.hashCode()) | 0; + result = imul(result, 31) + this.entranceId.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.topPhoto) | 0; + result = imul(result, 31) + this.entranceType | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KEntranceShow)) + return false; + var tmp0_other_with_cast = other instanceof KEntranceShow ? other : THROW_CCE(); + if (!(this.icon === tmp0_other_with_cast.icon)) + return false; + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.moduleId === tmp0_other_with_cast.moduleId)) + return false; + if (!(this.uri === tmp0_other_with_cast.uri)) + return false; + if (!equals(this.bubble, tmp0_other_with_cast.bubble)) + return false; + if (!this.entranceId.equals(tmp0_other_with_cast.entranceId)) + return false; + if (!(this.topPhoto === tmp0_other_with_cast.topPhoto)) + return false; + if (!(this.entranceType === tmp0_other_with_cast.entranceType)) + return false; + return true; + } + static new_com_bapis_bilibili_app_show_popular_v1_KEntranceShow_ipg8mw_k$(seen1, icon, title, moduleId, uri, bubble, entranceId, topPhoto, entranceType, serializationConstructorMarker) { + Companion_instance_1443; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1430().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.icon = ''; + else + $this.icon = icon; + if (0 === (seen1 & 2)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 4)) + $this.moduleId = ''; + else + $this.moduleId = moduleId; + if (0 === (seen1 & 8)) + $this.uri = ''; + else + $this.uri = uri; + if (0 === (seen1 & 16)) + $this.bubble = null; + else + $this.bubble = bubble; + if (0 === (seen1 & 32)) + $this.entranceId = new Long(0, 0); + else + $this.entranceId = entranceId; + if (0 === (seen1 & 64)) + $this.topPhoto = ''; + else + $this.topPhoto = topPhoto; + if (0 === (seen1 & 128)) + $this.entranceType = 0; + else + $this.entranceType = entranceType; + return $this; + } + } + class Companion_1444 { + constructor() { + this.targetPath = '/bilibili.app.show.v1.Bubble'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1431(); + } + } + class $serializer_1431 { + constructor() { + $serializer_instance_1431 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.show.popular.v1.KBubble', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('bubbleContent', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('version', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('stime', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = 0; + var tmp6_local2 = new Long(0, 0); + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KBubble_0.new_com_bapis_bilibili_app_show_popular_v1_KBubble_y3au4w_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_m3hfvt_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.bubbleContent === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.bubbleContent); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.version === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.version); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.stime.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.stime); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_m3hfvt_k$(encoder, value instanceof KBubble_0 ? value : THROW_CCE()); + } + } + class KBubble_0 { + constructor(bubbleContent, version, stime) { + Companion_instance_1444; + bubbleContent = bubbleContent === VOID ? '' : bubbleContent; + version = version === VOID ? 0 : version; + stime = stime === VOID ? new Long(0, 0) : stime; + this.bubbleContent = bubbleContent; + this.version = version; + this.stime = stime; + } + get_bubbleContent_wtfrc4_k$() { + return this.bubbleContent; + } + get_version_72w4j3_k$() { + return this.version; + } + get_stime_iyq2zb_k$() { + return this.stime; + } + component1_7eebsc_k$() { + return this.bubbleContent; + } + component2_7eebsb_k$() { + return this.version; + } + component3_7eebsa_k$() { + return this.stime; + } + copy_rf96jz_k$(bubbleContent, version, stime) { + return new KBubble_0(bubbleContent, version, stime); + } + copy(bubbleContent, version, stime, $super) { + bubbleContent = bubbleContent === VOID ? this.bubbleContent : bubbleContent; + version = version === VOID ? this.version : version; + stime = stime === VOID ? this.stime : stime; + return this.copy_rf96jz_k$(bubbleContent, version, stime); + } + toString() { + return 'KBubble(bubbleContent=' + this.bubbleContent + ', version=' + this.version + ', stime=' + this.stime.toString() + ')'; + } + hashCode() { + var result = getStringHashCode(this.bubbleContent); + result = imul(result, 31) + this.version | 0; + result = imul(result, 31) + this.stime.hashCode() | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KBubble_0)) + return false; + var tmp0_other_with_cast = other instanceof KBubble_0 ? other : THROW_CCE(); + if (!(this.bubbleContent === tmp0_other_with_cast.bubbleContent)) + return false; + if (!(this.version === tmp0_other_with_cast.version)) + return false; + if (!this.stime.equals(tmp0_other_with_cast.stime)) + return false; + return true; + } + static new_com_bapis_bilibili_app_show_popular_v1_KBubble_y3au4w_k$(seen1, bubbleContent, version, stime, serializationConstructorMarker) { + Companion_instance_1444; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1431().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.bubbleContent = ''; + else + $this.bubbleContent = bubbleContent; + if (0 === (seen1 & 2)) + $this.version = 0; + else + $this.version = version; + if (0 === (seen1 & 4)) + $this.stime = new Long(0, 0); + else + $this.stime = stime; + return $this; + } + } + class Companion_1445 { + constructor() { + Companion_instance_1445 = this; + var tmp = this; + tmp.values$delegate_1 = lazy_0(KPremiereState$Companion$values$delegate$lambda); + var tmp_0 = this; + var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance(); + tmp_0.$cachedSerializer$delegate_1 = lazy(tmp_1, KPremiereState$Companion$_anonymous__77hw2m); + } + get_values_ksazhn_k$() { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = this.values$delegate_1; + var thisRef = this; + var property = values$factory_185(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + fromValue(value) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.viewunite.ugcanymodel.Companion.fromValue.' call + var it = element; + tmp$ret$0 = it.value === value; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + return tmp0_elvis_lhs == null ? KPremiereState_UNRECOGNIZED_getInstance() : tmp0_elvis_lhs; + } + fromName(name) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = this.values; + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'com.bapis.bilibili.app.viewunite.ugcanymodel.Companion.fromName.' call + var it = element; + tmp$ret$0 = it.name_1 === name; + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + var tmp0_elvis_lhs = tmp$ret$1; + var tmp; + if (tmp0_elvis_lhs == null) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('No KPremiereState with name: ' + name); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + serializer_9w0wvi_k$() { + return _get_$cachedSerializer__te6jhj_185(this); + } + serializer_nv39qc_k$(typeParamsSerializers) { + return this.serializer_9w0wvi_k$(); + } + get values() { + return this.get_values_ksazhn_k$(); + } + } + class $serializer_1432 { + constructor() { + $serializer_instance_1432 = this; + var tmp0_serialDesc = new EnumDescriptor('com.bapis.bilibili.app.viewunite.ugcanymodel.KPremiereState', 5); + tmp0_serialDesc.addElement_5pzumi_k$('PREMIERE_NONE', false); + tmp0_serialDesc.addElement_5pzumi_k$('PREMIERE_BEFORE', false); + tmp0_serialDesc.addElement_5pzumi_k$('PREMIERE_IN', false); + tmp0_serialDesc.addElement_5pzumi_k$('PREMIERE_AFTER', false); + tmp0_serialDesc.addElement_5pzumi_k$('UNRECOGNIZED', false); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + return values_185()[decoder.decodeEnum_slg6lu_k$(this.descriptor_1)]; + } + serialize_4t0inc_k$(encoder, value) { + encoder.encodeEnum_2qin0y_k$(this.descriptor_1, value.ordinal_1); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_4t0inc_k$(encoder, value instanceof KPremiereState ? value : THROW_CCE()); + } + } + class KPremiereState extends Enum { + constructor(name, ordinal, value) { + super(name, ordinal); + this.value = value; + } + get_value_j01efc_k$() { + return this.value; + } + get name() { + return this.get_name_woqyms_k$(); + } + get ordinal() { + return this.get_ordinal_ip24qg_k$(); + } + } + class Companion_1446 { + constructor() { + Companion_instance_1446 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, null, null, new ArrayListSerializer($serializer_getInstance_386()), null, null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.viewunite.ugcanymodel.ViewUgcAny'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1433(); + } + } + class $serializer_1433 { + constructor() { + $serializer_instance_1433 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.ugcanymodel.KViewUgcAny', this, 8); + tmp0_serialDesc.addElement_5pzumi_k$('premiere', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('dislike', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('shortLink', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('shareSubtitle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('pages', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('elecRank', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('ugcSeasonConf', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('aiExtra', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_1446().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_1440()), get_nullable($serializer_getInstance_1438()), StringSerializer_getInstance(), StringSerializer_getInstance(), tmp0_cached[4], get_nullable($serializer_getInstance_1436()), get_nullable($serializer_getInstance_1435()), get_nullable($serializer_getInstance_1434())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp13_cached = Companion_getInstance_1446().$childSerializers_1; + if (tmp12_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_1440(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_1438(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp12_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 4, tmp13_cached[4], tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_1436(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_1435(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_1434(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + } else + while (tmp1_flag) { + tmp2_index = tmp12_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_1440(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_1438(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp12_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp12_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 4, tmp13_cached[4], tmp8_local4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_1436(), tmp9_local5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_1435(), tmp10_local6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_1434(), tmp11_local7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp12_input.endStructure_1xqz0n_k$(tmp0_desc); + return KViewUgcAny.new_com_bapis_bilibili_app_viewunite_ugcanymodel_KViewUgcAny_7w8gam_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null); + } + serialize_j97trx_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_1446().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.premiere == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_1440(), value.premiere); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.dislike == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_1438(), value.dislike); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.shortLink === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.shortLink); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.shareSubtitle === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.shareSubtitle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !equals(value.pages, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 4, tmp2_cached[4], value.pages); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.elecRank == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 5, $serializer_getInstance_1436(), value.elecRank); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.ugcSeasonConf == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 6, $serializer_getInstance_1435(), value.ugcSeasonConf); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.aiExtra == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 7, $serializer_getInstance_1434(), value.aiExtra); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_j97trx_k$(encoder, value instanceof KViewUgcAny ? value : THROW_CCE()); + } + } + class KViewUgcAny { + constructor(premiere, dislike, shortLink, shareSubtitle, pages, elecRank, ugcSeasonConf, aiExtra) { + Companion_getInstance_1446(); + premiere = premiere === VOID ? null : premiere; + dislike = dislike === VOID ? null : dislike; + shortLink = shortLink === VOID ? '' : shortLink; + shareSubtitle = shareSubtitle === VOID ? '' : shareSubtitle; + pages = pages === VOID ? emptyList() : pages; + elecRank = elecRank === VOID ? null : elecRank; + ugcSeasonConf = ugcSeasonConf === VOID ? null : ugcSeasonConf; + aiExtra = aiExtra === VOID ? null : aiExtra; + this.premiere = premiere; + this.dislike = dislike; + this.shortLink = shortLink; + this.shareSubtitle = shareSubtitle; + this.pages = pages; + this.elecRank = elecRank; + this.ugcSeasonConf = ugcSeasonConf; + this.aiExtra = aiExtra; + } + get_premiere_i0uj42_k$() { + return this.premiere; + } + get_dislike_swt1ks_k$() { + return this.dislike; + } + get_shortLink_p122oj_k$() { + return this.shortLink; + } + get_shareSubtitle_yf1tri_k$() { + return this.shareSubtitle; + } + get_pages_iwqisb_k$() { + return this.pages; + } + get_elecRank_w3qtpi_k$() { + return this.elecRank; + } + get_ugcSeasonConf_hwyovj_k$() { + return this.ugcSeasonConf; + } + get_aiExtra_ftgg81_k$() { + return this.aiExtra; + } + component1_7eebsc_k$() { + return this.premiere; + } + component2_7eebsb_k$() { + return this.dislike; + } + component3_7eebsa_k$() { + return this.shortLink; + } + component4_7eebs9_k$() { + return this.shareSubtitle; + } + component5_7eebs8_k$() { + return this.pages; + } + component6_7eebs7_k$() { + return this.elecRank; + } + component7_7eebs6_k$() { + return this.ugcSeasonConf; + } + component8_7eebs5_k$() { + return this.aiExtra; + } + copy_86hb9b_k$(premiere, dislike, shortLink, shareSubtitle, pages, elecRank, ugcSeasonConf, aiExtra) { + return new KViewUgcAny(premiere, dislike, shortLink, shareSubtitle, pages, elecRank, ugcSeasonConf, aiExtra); + } + copy(premiere, dislike, shortLink, shareSubtitle, pages, elecRank, ugcSeasonConf, aiExtra, $super) { + premiere = premiere === VOID ? this.premiere : premiere; + dislike = dislike === VOID ? this.dislike : dislike; + shortLink = shortLink === VOID ? this.shortLink : shortLink; + shareSubtitle = shareSubtitle === VOID ? this.shareSubtitle : shareSubtitle; + pages = pages === VOID ? this.pages : pages; + elecRank = elecRank === VOID ? this.elecRank : elecRank; + ugcSeasonConf = ugcSeasonConf === VOID ? this.ugcSeasonConf : ugcSeasonConf; + aiExtra = aiExtra === VOID ? this.aiExtra : aiExtra; + return this.copy_86hb9b_k$(premiere, dislike, shortLink, shareSubtitle, pages, elecRank, ugcSeasonConf, aiExtra); + } + toString() { + return 'KViewUgcAny(premiere=' + this.premiere + ', dislike=' + this.dislike + ', shortLink=' + this.shortLink + ', shareSubtitle=' + this.shareSubtitle + ', pages=' + this.pages + ', elecRank=' + this.elecRank + ', ugcSeasonConf=' + this.ugcSeasonConf + ', aiExtra=' + this.aiExtra + ')'; + } + hashCode() { + var result = this.premiere == null ? 0 : this.premiere.hashCode(); + result = imul(result, 31) + (this.dislike == null ? 0 : this.dislike.hashCode()) | 0; + result = imul(result, 31) + getStringHashCode(this.shortLink) | 0; + result = imul(result, 31) + getStringHashCode(this.shareSubtitle) | 0; + result = imul(result, 31) + hashCode(this.pages) | 0; + result = imul(result, 31) + (this.elecRank == null ? 0 : this.elecRank.hashCode()) | 0; + result = imul(result, 31) + (this.ugcSeasonConf == null ? 0 : this.ugcSeasonConf.hashCode()) | 0; + result = imul(result, 31) + (this.aiExtra == null ? 0 : this.aiExtra.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KViewUgcAny)) + return false; + var tmp0_other_with_cast = other instanceof KViewUgcAny ? other : THROW_CCE(); + if (!equals(this.premiere, tmp0_other_with_cast.premiere)) + return false; + if (!equals(this.dislike, tmp0_other_with_cast.dislike)) + return false; + if (!(this.shortLink === tmp0_other_with_cast.shortLink)) + return false; + if (!(this.shareSubtitle === tmp0_other_with_cast.shareSubtitle)) + return false; + if (!equals(this.pages, tmp0_other_with_cast.pages)) + return false; + if (!equals(this.elecRank, tmp0_other_with_cast.elecRank)) + return false; + if (!equals(this.ugcSeasonConf, tmp0_other_with_cast.ugcSeasonConf)) + return false; + if (!equals(this.aiExtra, tmp0_other_with_cast.aiExtra)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_ugcanymodel_KViewUgcAny_7w8gam_k$(seen1, premiere, dislike, shortLink, shareSubtitle, pages, elecRank, ugcSeasonConf, aiExtra, serializationConstructorMarker) { + Companion_getInstance_1446(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1433().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.premiere = null; + else + $this.premiere = premiere; + if (0 === (seen1 & 2)) + $this.dislike = null; + else + $this.dislike = dislike; + if (0 === (seen1 & 4)) + $this.shortLink = ''; + else + $this.shortLink = shortLink; + if (0 === (seen1 & 8)) + $this.shareSubtitle = ''; + else + $this.shareSubtitle = shareSubtitle; + if (0 === (seen1 & 16)) + $this.pages = emptyList(); + else + $this.pages = pages; + if (0 === (seen1 & 32)) + $this.elecRank = null; + else + $this.elecRank = elecRank; + if (0 === (seen1 & 64)) + $this.ugcSeasonConf = null; + else + $this.ugcSeasonConf = ugcSeasonConf; + if (0 === (seen1 & 128)) + $this.aiExtra = null; + else + $this.aiExtra = aiExtra; + return $this; + } + } + class Companion_1447 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.ugcanymodel.AiExtra'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1434(); + } + } + class $serializer_1434 { + constructor() { + $serializer_instance_1434 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.ugcanymodel.KAiExtra', this, 1); + tmp0_serialDesc.addElement_5pzumi_k$('trackId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp5_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp5_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + } else + while (tmp1_flag) { + tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp5_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp5_input.endStructure_1xqz0n_k$(tmp0_desc); + return KAiExtra.new_com_bapis_bilibili_app_viewunite_ugcanymodel_KAiExtra_8sc07k_k$(tmp3_bitMask0, tmp4_local0, null); + } + serialize_yicjb3_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.trackId === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.trackId); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_yicjb3_k$(encoder, value instanceof KAiExtra ? value : THROW_CCE()); + } + } + class KAiExtra { + constructor(trackId) { + Companion_instance_1447; + trackId = trackId === VOID ? '' : trackId; + this.trackId = trackId; + } + get_trackId_gdy23n_k$() { + return this.trackId; + } + component1_7eebsc_k$() { + return this.trackId; + } + copy_a35qlh_k$(trackId) { + return new KAiExtra(trackId); + } + copy(trackId, $super) { + trackId = trackId === VOID ? this.trackId : trackId; + return this.copy_a35qlh_k$(trackId); + } + toString() { + return 'KAiExtra(trackId=' + this.trackId + ')'; + } + hashCode() { + return getStringHashCode(this.trackId); + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KAiExtra)) + return false; + var tmp0_other_with_cast = other instanceof KAiExtra ? other : THROW_CCE(); + if (!(this.trackId === tmp0_other_with_cast.trackId)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_ugcanymodel_KAiExtra_8sc07k_k$(seen1, trackId, serializationConstructorMarker) { + Companion_instance_1447; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1434().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.trackId = ''; + else + $this.trackId = trackId; + return $this; + } + } + class Companion_1448 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.ugcanymodel.UgcSeasonConf'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1435(); + } + } + class $serializer_1435 { + constructor() { + $serializer_instance_1435 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.ugcanymodel.KUgcSeasonConf', this, 2); + tmp0_serialDesc.addElement_5pzumi_k$('seasonUnfold', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('foldTime', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [BooleanSerializer_getInstance(), LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = false; + var tmp5_local1 = new Long(0, 0); + var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp6_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp6_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + } else + while (tmp1_flag) { + tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp6_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); + return KUgcSeasonConf.new_com_bapis_bilibili_app_viewunite_ugcanymodel_KUgcSeasonConf_vple9o_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); + } + serialize_y7i8s1_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.seasonUnfold === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 0, value.seasonUnfold); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.foldTime.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.foldTime); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_y7i8s1_k$(encoder, value instanceof KUgcSeasonConf ? value : THROW_CCE()); + } + } + class KUgcSeasonConf { + constructor(seasonUnfold, foldTime) { + Companion_instance_1448; + seasonUnfold = seasonUnfold === VOID ? false : seasonUnfold; + foldTime = foldTime === VOID ? new Long(0, 0) : foldTime; + this.seasonUnfold = seasonUnfold; + this.foldTime = foldTime; + } + get_seasonUnfold_er504a_k$() { + return this.seasonUnfold; + } + get_foldTime_qy4yq1_k$() { + return this.foldTime; + } + component1_7eebsc_k$() { + return this.seasonUnfold; + } + component2_7eebsb_k$() { + return this.foldTime; + } + copy_rw3tf6_k$(seasonUnfold, foldTime) { + return new KUgcSeasonConf(seasonUnfold, foldTime); + } + copy(seasonUnfold, foldTime, $super) { + seasonUnfold = seasonUnfold === VOID ? this.seasonUnfold : seasonUnfold; + foldTime = foldTime === VOID ? this.foldTime : foldTime; + return this.copy_rw3tf6_k$(seasonUnfold, foldTime); + } + toString() { + return 'KUgcSeasonConf(seasonUnfold=' + this.seasonUnfold + ', foldTime=' + this.foldTime.toString() + ')'; + } + hashCode() { + var result = getBooleanHashCode(this.seasonUnfold); + result = imul(result, 31) + this.foldTime.hashCode() | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KUgcSeasonConf)) + return false; + var tmp0_other_with_cast = other instanceof KUgcSeasonConf ? other : THROW_CCE(); + if (!(this.seasonUnfold === tmp0_other_with_cast.seasonUnfold)) + return false; + if (!this.foldTime.equals(tmp0_other_with_cast.foldTime)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_ugcanymodel_KUgcSeasonConf_vple9o_k$(seen1, seasonUnfold, foldTime, serializationConstructorMarker) { + Companion_instance_1448; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1435().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.seasonUnfold = false; + else + $this.seasonUnfold = seasonUnfold; + if (0 === (seen1 & 2)) + $this.foldTime = new Long(0, 0); + else + $this.foldTime = foldTime; + return $this; + } + } + class Companion_1449 { + constructor() { + Companion_instance_1449 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [new ArrayListSerializer($serializer_getInstance_1437()), null, null]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.viewunite.ugcanymodel.ElecRank'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1436(); + } + } + class $serializer_1436 { + constructor() { + $serializer_instance_1436 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.ugcanymodel.KElecRank', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('list', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + tmp0_serialDesc.addElement_5pzumi_k$('count', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('text', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_1449().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [tmp0_cached[0], LongSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = new Long(0, 0); + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp8_cached = Companion_getInstance_1449().$childSerializers_1; + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp8_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp8_cached[0], tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KElecRank.new_com_bapis_bilibili_app_viewunite_ugcanymodel_KElecRank_9a598g_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_bwcugc_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_1449().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.list, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0], value.list); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.count.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.count); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.text === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.text); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_bwcugc_k$(encoder, value instanceof KElecRank ? value : THROW_CCE()); + } + } + class KElecRank { + constructor(list, count, text) { + Companion_getInstance_1449(); + list = list === VOID ? emptyList() : list; + count = count === VOID ? new Long(0, 0) : count; + text = text === VOID ? '' : text; + this.list = list; + this.count = count; + this.text = text; + } + get_list_wopuqv_k$() { + return this.list; + } + get_count_ipufhi_k$() { + return this.count; + } + get_text_wouvsm_k$() { + return this.text; + } + component1_7eebsc_k$() { + return this.list; + } + component2_7eebsb_k$() { + return this.count; + } + component3_7eebsa_k$() { + return this.text; + } + copy_6uidkx_k$(list, count, text) { + return new KElecRank(list, count, text); + } + copy(list, count, text, $super) { + list = list === VOID ? this.list : list; + count = count === VOID ? this.count : count; + text = text === VOID ? this.text : text; + return this.copy_6uidkx_k$(list, count, text); + } + toString() { + return 'KElecRank(list=' + this.list + ', count=' + this.count.toString() + ', text=' + this.text + ')'; + } + hashCode() { + var result = hashCode(this.list); + result = imul(result, 31) + this.count.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.text) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KElecRank)) + return false; + var tmp0_other_with_cast = other instanceof KElecRank ? other : THROW_CCE(); + if (!equals(this.list, tmp0_other_with_cast.list)) + return false; + if (!this.count.equals(tmp0_other_with_cast.count)) + return false; + if (!(this.text === tmp0_other_with_cast.text)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_ugcanymodel_KElecRank_9a598g_k$(seen1, list, count, text, serializationConstructorMarker) { + Companion_getInstance_1449(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1436().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.list = emptyList(); + else + $this.list = list; + if (0 === (seen1 & 2)) + $this.count = new Long(0, 0); + else + $this.count = count; + if (0 === (seen1 & 4)) + $this.text = ''; + else + $this.text = text; + return $this; + } + } + class Companion_1450 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.ugcanymodel.ElecRankItem'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1437(); + } + } + class $serializer_1437 { + constructor() { + $serializer_instance_1437 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.ugcanymodel.KElecRankItem', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('avatar', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('nickname', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('message', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('mid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = new Long(0, 0); + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KElecRankItem.new_com_bapis_bilibili_app_viewunite_ugcanymodel_KElecRankItem_gy50ri_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_y7bst5_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.avatar === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.avatar); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.nickname === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.nickname); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.message === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.message); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !value.mid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 3, value.mid); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_y7bst5_k$(encoder, value instanceof KElecRankItem ? value : THROW_CCE()); + } + } + class KElecRankItem { + constructor(avatar, nickname, message, mid) { + Companion_instance_1450; + avatar = avatar === VOID ? '' : avatar; + nickname = nickname === VOID ? '' : nickname; + message = message === VOID ? '' : message; + mid = mid === VOID ? new Long(0, 0) : mid; + this.avatar = avatar; + this.nickname = nickname; + this.message = message; + this.mid = mid; + } + get_avatar_b5pjz6_k$() { + return this.avatar; + } + get_nickname_umul6x_k$() { + return this.nickname; + } + get_message_h23axq_k$() { + return this.message; + } + get_mid_18j0o1_k$() { + return this.mid; + } + component1_7eebsc_k$() { + return this.avatar; + } + component2_7eebsb_k$() { + return this.nickname; + } + component3_7eebsa_k$() { + return this.message; + } + component4_7eebs9_k$() { + return this.mid; + } + copy_n2qgnx_k$(avatar, nickname, message, mid) { + return new KElecRankItem(avatar, nickname, message, mid); + } + copy(avatar, nickname, message, mid, $super) { + avatar = avatar === VOID ? this.avatar : avatar; + nickname = nickname === VOID ? this.nickname : nickname; + message = message === VOID ? this.message : message; + mid = mid === VOID ? this.mid : mid; + return this.copy_n2qgnx_k$(avatar, nickname, message, mid); + } + toString() { + return 'KElecRankItem(avatar=' + this.avatar + ', nickname=' + this.nickname + ', message=' + this.message + ', mid=' + this.mid.toString() + ')'; + } + hashCode() { + var result = getStringHashCode(this.avatar); + result = imul(result, 31) + getStringHashCode(this.nickname) | 0; + result = imul(result, 31) + getStringHashCode(this.message) | 0; + result = imul(result, 31) + this.mid.hashCode() | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KElecRankItem)) + return false; + var tmp0_other_with_cast = other instanceof KElecRankItem ? other : THROW_CCE(); + if (!(this.avatar === tmp0_other_with_cast.avatar)) + return false; + if (!(this.nickname === tmp0_other_with_cast.nickname)) + return false; + if (!(this.message === tmp0_other_with_cast.message)) + return false; + if (!this.mid.equals(tmp0_other_with_cast.mid)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_ugcanymodel_KElecRankItem_gy50ri_k$(seen1, avatar, nickname, message, mid, serializationConstructorMarker) { + Companion_instance_1450; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1437().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.avatar = ''; + else + $this.avatar = avatar; + if (0 === (seen1 & 2)) + $this.nickname = ''; + else + $this.nickname = nickname; + if (0 === (seen1 & 4)) + $this.message = ''; + else + $this.message = message; + if (0 === (seen1 & 8)) + $this.mid = new Long(0, 0); + else + $this.mid = mid; + return $this; + } + } + class Companion_1451 { + constructor() { + Companion_instance_1451 = this; + var tmp = this; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [null, null, new ArrayListSerializer($serializer_getInstance_1439())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp.$childSerializers_1 = tmp$ret$2; + this.targetPath = '/bilibili.app.viewunite.ugcanymodel.Dislike'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1438(); + } + } + class $serializer_1438 { + constructor() { + $serializer_instance_1438 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.ugcanymodel.KDislike', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('subtitle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('reasons', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoPacked()); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp0_cached = Companion_getInstance_1451().$childSerializers_1; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), tmp0_cached[2]]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp8_cached = Companion_getInstance_1451().$childSerializers_1; + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp8_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, tmp8_cached[2], tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KDislike_1.new_com_bapis_bilibili_app_viewunite_ugcanymodel_KDislike_mimtfy_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_n58e6c_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + var tmp2_cached = Companion_getInstance_1451().$childSerializers_1; + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.subtitle === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.subtitle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !equals(value.reasons, emptyList())) { + tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 2, tmp2_cached[2], value.reasons); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_n58e6c_k$(encoder, value instanceof KDislike_1 ? value : THROW_CCE()); + } + } + class KDislike_1 { + constructor(title, subtitle, reasons) { + Companion_getInstance_1451(); + title = title === VOID ? '' : title; + subtitle = subtitle === VOID ? '' : subtitle; + reasons = reasons === VOID ? emptyList() : reasons; + this.title = title; + this.subtitle = subtitle; + this.reasons = reasons; + } + get_title_iz32un_k$() { + return this.title; + } + get_subtitle_55eoyp_k$() { + return this.subtitle; + } + get_reasons_j52nye_k$() { + return this.reasons; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.subtitle; + } + component3_7eebsa_k$() { + return this.reasons; + } + copy_5eweai_k$(title, subtitle, reasons) { + return new KDislike_1(title, subtitle, reasons); + } + copy(title, subtitle, reasons, $super) { + title = title === VOID ? this.title : title; + subtitle = subtitle === VOID ? this.subtitle : subtitle; + reasons = reasons === VOID ? this.reasons : reasons; + return this.copy_5eweai_k$(title, subtitle, reasons); + } + toString() { + return 'KDislike(title=' + this.title + ', subtitle=' + this.subtitle + ', reasons=' + this.reasons + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.subtitle) | 0; + result = imul(result, 31) + hashCode(this.reasons) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KDislike_1)) + return false; + var tmp0_other_with_cast = other instanceof KDislike_1 ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.subtitle === tmp0_other_with_cast.subtitle)) + return false; + if (!equals(this.reasons, tmp0_other_with_cast.reasons)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_ugcanymodel_KDislike_mimtfy_k$(seen1, title, subtitle, reasons, serializationConstructorMarker) { + Companion_getInstance_1451(); + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1438().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.subtitle = ''; + else + $this.subtitle = subtitle; + if (0 === (seen1 & 4)) + $this.reasons = emptyList(); + else + $this.reasons = reasons; + return $this; + } + } + class Companion_1452 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.ugcanymodel.DislikeReason'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1439(); + } + } + class $serializer_1439 { + constructor() { + $serializer_instance_1439 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.ugcanymodel.KDislikeReason', this, 5); + tmp0_serialDesc.addElement_5pzumi_k$('id', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('mid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('rid', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('tagId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('name', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = new Long(0, 0); + var tmp6_local2 = 0; + var tmp7_local3 = new Long(0, 0); + var tmp8_local4 = null; + var tmp9_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp9_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + } else + while (tmp1_flag) { + tmp2_index = tmp9_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp9_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp9_input.endStructure_1xqz0n_k$(tmp0_desc); + return KDislikeReason_1.new_com_bapis_bilibili_app_viewunite_ugcanymodel_KDislikeReason_1x9c11_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); + } + serialize_9mydi8_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.id.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.id); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.mid.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.mid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.rid === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.rid); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !value.tagId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 3, value.tagId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.name === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.name); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_9mydi8_k$(encoder, value instanceof KDislikeReason_1 ? value : THROW_CCE()); + } + } + class KDislikeReason_1 { + constructor(id, mid, rid, tagId, name) { + Companion_instance_1452; + id = id === VOID ? new Long(0, 0) : id; + mid = mid === VOID ? new Long(0, 0) : mid; + rid = rid === VOID ? 0 : rid; + tagId = tagId === VOID ? new Long(0, 0) : tagId; + name = name === VOID ? '' : name; + this.id = id; + this.mid = mid; + this.rid = rid; + this.tagId = tagId; + this.name = name; + } + get_id_kntnx8_k$() { + return this.id; + } + get_mid_18j0o1_k$() { + return this.mid; + } + get_rid_18iwyk_k$() { + return this.rid; + } + get_tagId_iyxoh8_k$() { + return this.tagId; + } + get_name_woqyms_k$() { + return this.name; + } + component1_7eebsc_k$() { + return this.id; + } + component2_7eebsb_k$() { + return this.mid; + } + component3_7eebsa_k$() { + return this.rid; + } + component4_7eebs9_k$() { + return this.tagId; + } + component5_7eebs8_k$() { + return this.name; + } + copy_ylfwet_k$(id, mid, rid, tagId, name) { + return new KDislikeReason_1(id, mid, rid, tagId, name); + } + copy(id, mid, rid, tagId, name, $super) { + id = id === VOID ? this.id : id; + mid = mid === VOID ? this.mid : mid; + rid = rid === VOID ? this.rid : rid; + tagId = tagId === VOID ? this.tagId : tagId; + name = name === VOID ? this.name : name; + return this.copy_ylfwet_k$(id, mid, rid, tagId, name); + } + toString() { + return 'KDislikeReason(id=' + this.id.toString() + ', mid=' + this.mid.toString() + ', rid=' + this.rid + ', tagId=' + this.tagId.toString() + ', name=' + this.name + ')'; + } + hashCode() { + var result = this.id.hashCode(); + result = imul(result, 31) + this.mid.hashCode() | 0; + result = imul(result, 31) + this.rid | 0; + result = imul(result, 31) + this.tagId.hashCode() | 0; + result = imul(result, 31) + getStringHashCode(this.name) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KDislikeReason_1)) + return false; + var tmp0_other_with_cast = other instanceof KDislikeReason_1 ? other : THROW_CCE(); + if (!this.id.equals(tmp0_other_with_cast.id)) + return false; + if (!this.mid.equals(tmp0_other_with_cast.mid)) + return false; + if (!(this.rid === tmp0_other_with_cast.rid)) + return false; + if (!this.tagId.equals(tmp0_other_with_cast.tagId)) + return false; + if (!(this.name === tmp0_other_with_cast.name)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_ugcanymodel_KDislikeReason_1x9c11_k$(seen1, id, mid, rid, tagId, name, serializationConstructorMarker) { + Companion_instance_1452; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1439().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.id = new Long(0, 0); + else + $this.id = id; + if (0 === (seen1 & 2)) + $this.mid = new Long(0, 0); + else + $this.mid = mid; + if (0 === (seen1 & 4)) + $this.rid = 0; + else + $this.rid = rid; + if (0 === (seen1 & 8)) + $this.tagId = new Long(0, 0); + else + $this.tagId = tagId; + if (0 === (seen1 & 16)) + $this.name = ''; + else + $this.name = name; + return $this; + } + } + class Companion_1453 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.ugcanymodel.PremiereResource'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1440(); + } + } + class $serializer_1440 { + constructor() { + $serializer_instance_1440 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.ugcanymodel.KPremiereResource', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('premiere', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('reserve', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('text', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [get_nullable($serializer_getInstance_1443()), get_nullable($serializer_getInstance_1441()), get_nullable($serializer_getInstance_1442())]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_1443(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_1441(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_1442(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_1443(), tmp4_local0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_1441(), tmp5_local1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_1442(), tmp6_local2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KPremiereResource.new_com_bapis_bilibili_app_viewunite_ugcanymodel_KPremiereResource_n7kdob_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_2urvfu_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.premiere == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_1443(), value.premiere); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.reserve == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_1441(), value.reserve); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.text == null)) { + tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_1442(), value.text); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_2urvfu_k$(encoder, value instanceof KPremiereResource ? value : THROW_CCE()); + } + } + class KPremiereResource { + constructor(premiere, reserve, text) { + Companion_instance_1453; + premiere = premiere === VOID ? null : premiere; + reserve = reserve === VOID ? null : reserve; + text = text === VOID ? null : text; + this.premiere = premiere; + this.reserve = reserve; + this.text = text; + } + get_premiere_i0uj42_k$() { + return this.premiere; + } + get_reserve_jeq383_k$() { + return this.reserve; + } + get_text_wouvsm_k$() { + return this.text; + } + component1_7eebsc_k$() { + return this.premiere; + } + component2_7eebsb_k$() { + return this.reserve; + } + component3_7eebsa_k$() { + return this.text; + } + copy_q8jhvm_k$(premiere, reserve, text) { + return new KPremiereResource(premiere, reserve, text); + } + copy(premiere, reserve, text, $super) { + premiere = premiere === VOID ? this.premiere : premiere; + reserve = reserve === VOID ? this.reserve : reserve; + text = text === VOID ? this.text : text; + return this.copy_q8jhvm_k$(premiere, reserve, text); + } + toString() { + return 'KPremiereResource(premiere=' + this.premiere + ', reserve=' + this.reserve + ', text=' + this.text + ')'; + } + hashCode() { + var result = this.premiere == null ? 0 : this.premiere.hashCode(); + result = imul(result, 31) + (this.reserve == null ? 0 : this.reserve.hashCode()) | 0; + result = imul(result, 31) + (this.text == null ? 0 : this.text.hashCode()) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KPremiereResource)) + return false; + var tmp0_other_with_cast = other instanceof KPremiereResource ? other : THROW_CCE(); + if (!equals(this.premiere, tmp0_other_with_cast.premiere)) + return false; + if (!equals(this.reserve, tmp0_other_with_cast.reserve)) + return false; + if (!equals(this.text, tmp0_other_with_cast.text)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_ugcanymodel_KPremiereResource_n7kdob_k$(seen1, premiere, reserve, text, serializationConstructorMarker) { + Companion_instance_1453; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1440().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.premiere = null; + else + $this.premiere = premiere; + if (0 === (seen1 & 2)) + $this.reserve = null; + else + $this.reserve = reserve; + if (0 === (seen1 & 4)) + $this.text = null; + else + $this.text = text; + return $this; + } + } + class Companion_1454 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.ugcanymodel.PremiereReserve'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1441(); + } + } + class $serializer_1441 { + constructor() { + $serializer_instance_1441 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.ugcanymodel.KPremiereReserve', this, 3); + tmp0_serialDesc.addElement_5pzumi_k$('reserveId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('count', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('isFollow', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [LongSerializer_getInstance(), LongSerializer_getInstance(), BooleanSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = new Long(0, 0); + var tmp5_local1 = new Long(0, 0); + var tmp6_local2 = false; + var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp7_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp7_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + } else + while (tmp1_flag) { + tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp7_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); + return KPremiereReserve.new_com_bapis_bilibili_app_viewunite_ugcanymodel_KPremiereReserve_s3ktcb_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); + } + serialize_ow2sm_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.reserveId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 0, value.reserveId); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.count.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.count); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.isFollow === false)) { + tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 2, value.isFollow); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_ow2sm_k$(encoder, value instanceof KPremiereReserve ? value : THROW_CCE()); + } + } + class KPremiereReserve { + constructor(reserveId, count, isFollow) { + Companion_instance_1454; + reserveId = reserveId === VOID ? new Long(0, 0) : reserveId; + count = count === VOID ? new Long(0, 0) : count; + isFollow = isFollow === VOID ? false : isFollow; + this.reserveId = reserveId; + this.count = count; + this.isFollow = isFollow; + } + get_reserveId_t26awi_k$() { + return this.reserveId; + } + get_count_ipufhi_k$() { + return this.count; + } + get_isFollow_tdz0w4_k$() { + return this.isFollow; + } + component1_7eebsc_k$() { + return this.reserveId; + } + component2_7eebsb_k$() { + return this.count; + } + component3_7eebsa_k$() { + return this.isFollow; + } + copy_ckwgno_k$(reserveId, count, isFollow) { + return new KPremiereReserve(reserveId, count, isFollow); + } + copy(reserveId, count, isFollow, $super) { + reserveId = reserveId === VOID ? this.reserveId : reserveId; + count = count === VOID ? this.count : count; + isFollow = isFollow === VOID ? this.isFollow : isFollow; + return this.copy_ckwgno_k$(reserveId, count, isFollow); + } + toString() { + return 'KPremiereReserve(reserveId=' + this.reserveId.toString() + ', count=' + this.count.toString() + ', isFollow=' + this.isFollow + ')'; + } + hashCode() { + var result = this.reserveId.hashCode(); + result = imul(result, 31) + this.count.hashCode() | 0; + result = imul(result, 31) + getBooleanHashCode(this.isFollow) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KPremiereReserve)) + return false; + var tmp0_other_with_cast = other instanceof KPremiereReserve ? other : THROW_CCE(); + if (!this.reserveId.equals(tmp0_other_with_cast.reserveId)) + return false; + if (!this.count.equals(tmp0_other_with_cast.count)) + return false; + if (!(this.isFollow === tmp0_other_with_cast.isFollow)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_ugcanymodel_KPremiereReserve_s3ktcb_k$(seen1, reserveId, count, isFollow, serializationConstructorMarker) { + Companion_instance_1454; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1441().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.reserveId = new Long(0, 0); + else + $this.reserveId = reserveId; + if (0 === (seen1 & 2)) + $this.count = new Long(0, 0); + else + $this.count = count; + if (0 === (seen1 & 4)) + $this.isFollow = false; + else + $this.isFollow = isFollow; + return $this; + } + } + class Companion_1455 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.ugcanymodel.PremiereText'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1442(); + } + } + class $serializer_1442 { + constructor() { + $serializer_instance_1442 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.ugcanymodel.KPremiereText', this, 10); + tmp0_serialDesc.addElement_5pzumi_k$('title', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('subtitle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('onlineText', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('onlineIcon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + tmp0_serialDesc.addElement_5pzumi_k$('onlineIconDark', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(5)); + tmp0_serialDesc.addElement_5pzumi_k$('introTitle', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(6)); + tmp0_serialDesc.addElement_5pzumi_k$('introIcon', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(7)); + tmp0_serialDesc.addElement_5pzumi_k$('guidancePulldown', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(8)); + tmp0_serialDesc.addElement_5pzumi_k$('guidanceEntry', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(9)); + tmp0_serialDesc.addElement_5pzumi_k$('introIconNight', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(10)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = null; + var tmp5_local1 = null; + var tmp6_local2 = null; + var tmp7_local3 = null; + var tmp8_local4 = null; + var tmp9_local5 = null; + var tmp10_local6 = null; + var tmp11_local7 = null; + var tmp12_local8 = null; + var tmp13_local9 = null; + var tmp14_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp14_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + tmp8_local4 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + tmp9_local5 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + tmp10_local6 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + tmp11_local7 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + tmp12_local8 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + tmp13_local9 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + } else + while (tmp1_flag) { + tmp2_index = tmp14_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + case 4: + tmp8_local4 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 4); + tmp3_bitMask0 = tmp3_bitMask0 | 16; + break; + case 5: + tmp9_local5 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); + tmp3_bitMask0 = tmp3_bitMask0 | 32; + break; + case 6: + tmp10_local6 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); + tmp3_bitMask0 = tmp3_bitMask0 | 64; + break; + case 7: + tmp11_local7 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); + tmp3_bitMask0 = tmp3_bitMask0 | 128; + break; + case 8: + tmp12_local8 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); + tmp3_bitMask0 = tmp3_bitMask0 | 256; + break; + case 9: + tmp13_local9 = tmp14_input.decodeStringElement_3oenpg_k$(tmp0_desc, 9); + tmp3_bitMask0 = tmp3_bitMask0 | 512; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp14_input.endStructure_1xqz0n_k$(tmp0_desc); + return KPremiereText.new_com_bapis_bilibili_app_viewunite_ugcanymodel_KPremiereText_yl992l_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, null); + } + serialize_ttdmvr_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.title === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.title); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.subtitle === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.subtitle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.onlineText === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.onlineText); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.onlineIcon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.onlineIcon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.onlineIconDark === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 4, value.onlineIconDark); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.introTitle === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.introTitle); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.introIcon === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.introIcon); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.guidancePulldown === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.guidancePulldown); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.guidanceEntry === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 8, value.guidanceEntry); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.introIconNight === '')) { + tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 9, value.introIconNight); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_ttdmvr_k$(encoder, value instanceof KPremiereText ? value : THROW_CCE()); + } + } + class KPremiereText { + constructor(title, subtitle, onlineText, onlineIcon, onlineIconDark, introTitle, introIcon, guidancePulldown, guidanceEntry, introIconNight) { + Companion_instance_1455; + title = title === VOID ? '' : title; + subtitle = subtitle === VOID ? '' : subtitle; + onlineText = onlineText === VOID ? '' : onlineText; + onlineIcon = onlineIcon === VOID ? '' : onlineIcon; + onlineIconDark = onlineIconDark === VOID ? '' : onlineIconDark; + introTitle = introTitle === VOID ? '' : introTitle; + introIcon = introIcon === VOID ? '' : introIcon; + guidancePulldown = guidancePulldown === VOID ? '' : guidancePulldown; + guidanceEntry = guidanceEntry === VOID ? '' : guidanceEntry; + introIconNight = introIconNight === VOID ? '' : introIconNight; + this.title = title; + this.subtitle = subtitle; + this.onlineText = onlineText; + this.onlineIcon = onlineIcon; + this.onlineIconDark = onlineIconDark; + this.introTitle = introTitle; + this.introIcon = introIcon; + this.guidancePulldown = guidancePulldown; + this.guidanceEntry = guidanceEntry; + this.introIconNight = introIconNight; + } + get_title_iz32un_k$() { + return this.title; + } + get_subtitle_55eoyp_k$() { + return this.subtitle; + } + get_onlineText_qt04t3_k$() { + return this.onlineText; + } + get_onlineIcon_qt77d7_k$() { + return this.onlineIcon; + } + get_onlineIconDark_yq6c51_k$() { + return this.onlineIconDark; + } + get_introTitle_g2ket_k$() { + return this.introTitle; + } + get_introIcon_mx70ik_k$() { + return this.introIcon; + } + get_guidancePulldown_ff8rs8_k$() { + return this.guidancePulldown; + } + get_guidanceEntry_5sw3e7_k$() { + return this.guidanceEntry; + } + get_introIconNight_vpo8ik_k$() { + return this.introIconNight; + } + component1_7eebsc_k$() { + return this.title; + } + component2_7eebsb_k$() { + return this.subtitle; + } + component3_7eebsa_k$() { + return this.onlineText; + } + component4_7eebs9_k$() { + return this.onlineIcon; + } + component5_7eebs8_k$() { + return this.onlineIconDark; + } + component6_7eebs7_k$() { + return this.introTitle; + } + component7_7eebs6_k$() { + return this.introIcon; + } + component8_7eebs5_k$() { + return this.guidancePulldown; + } + component9_7eebs4_k$() { + return this.guidanceEntry; + } + component10_gazzfo_k$() { + return this.introIconNight; + } + copy_7p1mrv_k$(title, subtitle, onlineText, onlineIcon, onlineIconDark, introTitle, introIcon, guidancePulldown, guidanceEntry, introIconNight) { + return new KPremiereText(title, subtitle, onlineText, onlineIcon, onlineIconDark, introTitle, introIcon, guidancePulldown, guidanceEntry, introIconNight); + } + copy(title, subtitle, onlineText, onlineIcon, onlineIconDark, introTitle, introIcon, guidancePulldown, guidanceEntry, introIconNight, $super) { + title = title === VOID ? this.title : title; + subtitle = subtitle === VOID ? this.subtitle : subtitle; + onlineText = onlineText === VOID ? this.onlineText : onlineText; + onlineIcon = onlineIcon === VOID ? this.onlineIcon : onlineIcon; + onlineIconDark = onlineIconDark === VOID ? this.onlineIconDark : onlineIconDark; + introTitle = introTitle === VOID ? this.introTitle : introTitle; + introIcon = introIcon === VOID ? this.introIcon : introIcon; + guidancePulldown = guidancePulldown === VOID ? this.guidancePulldown : guidancePulldown; + guidanceEntry = guidanceEntry === VOID ? this.guidanceEntry : guidanceEntry; + introIconNight = introIconNight === VOID ? this.introIconNight : introIconNight; + return this.copy_7p1mrv_k$(title, subtitle, onlineText, onlineIcon, onlineIconDark, introTitle, introIcon, guidancePulldown, guidanceEntry, introIconNight); + } + toString() { + return 'KPremiereText(title=' + this.title + ', subtitle=' + this.subtitle + ', onlineText=' + this.onlineText + ', onlineIcon=' + this.onlineIcon + ', onlineIconDark=' + this.onlineIconDark + ', introTitle=' + this.introTitle + ', introIcon=' + this.introIcon + ', guidancePulldown=' + this.guidancePulldown + ', guidanceEntry=' + this.guidanceEntry + ', introIconNight=' + this.introIconNight + ')'; + } + hashCode() { + var result = getStringHashCode(this.title); + result = imul(result, 31) + getStringHashCode(this.subtitle) | 0; + result = imul(result, 31) + getStringHashCode(this.onlineText) | 0; + result = imul(result, 31) + getStringHashCode(this.onlineIcon) | 0; + result = imul(result, 31) + getStringHashCode(this.onlineIconDark) | 0; + result = imul(result, 31) + getStringHashCode(this.introTitle) | 0; + result = imul(result, 31) + getStringHashCode(this.introIcon) | 0; + result = imul(result, 31) + getStringHashCode(this.guidancePulldown) | 0; + result = imul(result, 31) + getStringHashCode(this.guidanceEntry) | 0; + result = imul(result, 31) + getStringHashCode(this.introIconNight) | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KPremiereText)) + return false; + var tmp0_other_with_cast = other instanceof KPremiereText ? other : THROW_CCE(); + if (!(this.title === tmp0_other_with_cast.title)) + return false; + if (!(this.subtitle === tmp0_other_with_cast.subtitle)) + return false; + if (!(this.onlineText === tmp0_other_with_cast.onlineText)) + return false; + if (!(this.onlineIcon === tmp0_other_with_cast.onlineIcon)) + return false; + if (!(this.onlineIconDark === tmp0_other_with_cast.onlineIconDark)) + return false; + if (!(this.introTitle === tmp0_other_with_cast.introTitle)) + return false; + if (!(this.introIcon === tmp0_other_with_cast.introIcon)) + return false; + if (!(this.guidancePulldown === tmp0_other_with_cast.guidancePulldown)) + return false; + if (!(this.guidanceEntry === tmp0_other_with_cast.guidanceEntry)) + return false; + if (!(this.introIconNight === tmp0_other_with_cast.introIconNight)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_ugcanymodel_KPremiereText_yl992l_k$(seen1, title, subtitle, onlineText, onlineIcon, onlineIconDark, introTitle, introIcon, guidancePulldown, guidanceEntry, introIconNight, serializationConstructorMarker) { + Companion_instance_1455; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1442().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.title = ''; + else + $this.title = title; + if (0 === (seen1 & 2)) + $this.subtitle = ''; + else + $this.subtitle = subtitle; + if (0 === (seen1 & 4)) + $this.onlineText = ''; + else + $this.onlineText = onlineText; + if (0 === (seen1 & 8)) + $this.onlineIcon = ''; + else + $this.onlineIcon = onlineIcon; + if (0 === (seen1 & 16)) + $this.onlineIconDark = ''; + else + $this.onlineIconDark = onlineIconDark; + if (0 === (seen1 & 32)) + $this.introTitle = ''; + else + $this.introTitle = introTitle; + if (0 === (seen1 & 64)) + $this.introIcon = ''; + else + $this.introIcon = introIcon; + if (0 === (seen1 & 128)) + $this.guidancePulldown = ''; + else + $this.guidancePulldown = guidancePulldown; + if (0 === (seen1 & 256)) + $this.guidanceEntry = ''; + else + $this.guidanceEntry = guidanceEntry; + if (0 === (seen1 & 512)) + $this.introIconNight = ''; + else + $this.introIconNight = introIconNight; + return $this; + } + } + class Companion_1456 { + constructor() { + this.targetPath = '/bilibili.app.viewunite.ugcanymodel.Premiere'; + } + get_targetPath_c4m42p_k$() { + return this.targetPath; + } + serializer_9w0wvi_k$() { + return $serializer_getInstance_1443(); + } + } + class $serializer_1443 { + constructor() { + $serializer_instance_1443 = this; + var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.bapis.bilibili.app.viewunite.ugcanymodel.KPremiere', this, 4); + tmp0_serialDesc.addElement_5pzumi_k$('premiereState', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(1)); + tmp0_serialDesc.addElement_5pzumi_k$('startTime', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(2)); + tmp0_serialDesc.addElement_5pzumi_k$('serviceTime', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(3)); + tmp0_serialDesc.addElement_5pzumi_k$('roomId', true); + tmp0_serialDesc.pushAnnotation_fm15ho_k$(new ProtoNumber(4)); + this.descriptor_1 = tmp0_serialDesc; + } + get_descriptor_wjt6a0_k$() { + return this.descriptor_1; + } + childSerializers_5ghqw5_k$() { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + return tmp$ret$2; + } + deserialize_sy6x50_k$(decoder) { + var tmp0_desc = this.descriptor_1; + var tmp1_flag = true; + var tmp2_index = 0; + var tmp3_bitMask0 = 0; + var tmp4_local0 = 0; + var tmp5_local1 = new Long(0, 0); + var tmp6_local2 = new Long(0, 0); + var tmp7_local3 = new Long(0, 0); + var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp8_input.decodeSequentially_xlblqy_k$()) { + tmp4_local0 = tmp8_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + tmp5_local1 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + tmp6_local2 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + tmp7_local3 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + } else + while (tmp1_flag) { + tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); + switch (tmp2_index) { + case -1: + tmp1_flag = false; + break; + case 0: + tmp4_local0 = tmp8_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); + tmp3_bitMask0 = tmp3_bitMask0 | 1; + break; + case 1: + tmp5_local1 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 1); + tmp3_bitMask0 = tmp3_bitMask0 | 2; + break; + case 2: + tmp6_local2 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 2); + tmp3_bitMask0 = tmp3_bitMask0 | 4; + break; + case 3: + tmp7_local3 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 3); + tmp3_bitMask0 = tmp3_bitMask0 | 8; + break; + default: + throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index); + } + } + tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); + return KPremiere.new_com_bapis_bilibili_app_viewunite_ugcanymodel_KPremiere_k5xl2_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); + } + serialize_gb7sp0_k$(encoder, value) { + var tmp0_desc = this.descriptor_1; + var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.premiereState === 0)) { + tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.premiereState); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.startTime.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 1, value.startTime); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.serviceTime.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 2, value.serviceTime); + Unit_instance; + } + if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !value.roomId.equals(new Long(0, 0))) { + tmp1_output.encodeLongElement_ujvv2b_k$(tmp0_desc, 3, value.roomId); + Unit_instance; + } + tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); + } + serialize_5ase3y_k$(encoder, value) { + return this.serialize_gb7sp0_k$(encoder, value instanceof KPremiere ? value : THROW_CCE()); + } + } + class KPremiere { + constructor(premiereState, startTime, serviceTime, roomId) { + Companion_instance_1456; + premiereState = premiereState === VOID ? 0 : premiereState; + startTime = startTime === VOID ? new Long(0, 0) : startTime; + serviceTime = serviceTime === VOID ? new Long(0, 0) : serviceTime; + roomId = roomId === VOID ? new Long(0, 0) : roomId; + this.premiereState = premiereState; + this.startTime = startTime; + this.serviceTime = serviceTime; + this.roomId = roomId; + } + get_premiereState_vbli8h_k$() { + return this.premiereState; + } + get_startTime_qp7d5m_k$() { + return this.startTime; + } + get_serviceTime_hzwr47_k$() { + return this.serviceTime; + } + get_roomId_j3vckf_k$() { + return this.roomId; + } + premiereStateEnum() { + return Companion_getInstance_1445().fromValue(this.premiereState); + } + component1_7eebsc_k$() { + return this.premiereState; + } + component2_7eebsb_k$() { + return this.startTime; + } + component3_7eebsa_k$() { + return this.serviceTime; + } + component4_7eebs9_k$() { + return this.roomId; + } + copy_ftqwhv_k$(premiereState, startTime, serviceTime, roomId) { + return new KPremiere(premiereState, startTime, serviceTime, roomId); + } + copy(premiereState, startTime, serviceTime, roomId, $super) { + premiereState = premiereState === VOID ? this.premiereState : premiereState; + startTime = startTime === VOID ? this.startTime : startTime; + serviceTime = serviceTime === VOID ? this.serviceTime : serviceTime; + roomId = roomId === VOID ? this.roomId : roomId; + return this.copy_ftqwhv_k$(premiereState, startTime, serviceTime, roomId); + } + toString() { + return 'KPremiere(premiereState=' + this.premiereState + ', startTime=' + this.startTime.toString() + ', serviceTime=' + this.serviceTime.toString() + ', roomId=' + this.roomId.toString() + ')'; + } + hashCode() { + var result = this.premiereState; + result = imul(result, 31) + this.startTime.hashCode() | 0; + result = imul(result, 31) + this.serviceTime.hashCode() | 0; + result = imul(result, 31) + this.roomId.hashCode() | 0; + return result; + } + equals(other) { + if (this === other) + return true; + if (!(other instanceof KPremiere)) + return false; + var tmp0_other_with_cast = other instanceof KPremiere ? other : THROW_CCE(); + if (!(this.premiereState === tmp0_other_with_cast.premiereState)) + return false; + if (!this.startTime.equals(tmp0_other_with_cast.startTime)) + return false; + if (!this.serviceTime.equals(tmp0_other_with_cast.serviceTime)) + return false; + if (!this.roomId.equals(tmp0_other_with_cast.roomId)) + return false; + return true; + } + static new_com_bapis_bilibili_app_viewunite_ugcanymodel_KPremiere_k5xl2_k$(seen1, premiereState, startTime, serviceTime, roomId, serializationConstructorMarker) { + Companion_instance_1456; + if (!(0 === (0 & seen1))) { + throwMissingFieldException(seen1, 0, $serializer_getInstance_1443().descriptor_1); + Unit_instance; + } + var $this = createThis(this); + if (0 === (seen1 & 1)) + $this.premiereState = 0; + else + $this.premiereState = premiereState; + if (0 === (seen1 & 2)) + $this.startTime = new Long(0, 0); + else + $this.startTime = startTime; + if (0 === (seen1 & 4)) + $this.serviceTime = new Long(0, 0); + else + $this.serviceTime = serviceTime; + if (0 === (seen1 & 8)) + $this.roomId = new Long(0, 0); + else + $this.roomId = roomId; + return $this; + } + } + class JsMap { + constructor(keyList, valueList) { + this.keyList = keyList; + this.valueList = valueList; + } + get_keyList_c8387g_k$() { + return this.keyList; + } + get_valueList_45i2uy_k$() { + return this.valueList; + } + } + //endregion + var Unit_instance; + function Unit_getInstance() { + return Unit_instance; + } + var ByteCompanionObject_instance; + function ByteCompanionObject_getInstance() { + return ByteCompanionObject_instance; + } + var IntCompanionObject_instance; + function IntCompanionObject_getInstance() { + return IntCompanionObject_instance; + } + var FloatCompanionObject_instance; + function FloatCompanionObject_getInstance() { + return FloatCompanionObject_instance; + } + var DoubleCompanionObject_instance; + function DoubleCompanionObject_getInstance() { + return DoubleCompanionObject_instance; + } + function isNaN_0(_this__u8e3s4) { + return !(_this__u8e3s4 === _this__u8e3s4); + } + function takeHighestOneBit(_this__u8e3s4) { + var tmp; + if (_this__u8e3s4 === 0) { + tmp = 0; + } else { + IntCompanionObject_instance; + var tmp_0 = 32 - 1 | 0; + var tmp$ret$0; + // Inline function 'kotlin.countLeadingZeroBits' call + var this_0 = _this__u8e3s4; + tmp$ret$0 = clz32(this_0); + tmp = 1 << (tmp_0 - tmp$ret$0 | 0); + } + return tmp; + } + function countLeadingZeroBits(_this__u8e3s4) { + var high = _this__u8e3s4.high_1; + var tmp; + if (high === 0) { + IntCompanionObject_instance; + var tmp$ret$0; + // Inline function 'kotlin.countLeadingZeroBits' call + var this_0 = _this__u8e3s4.low_1; + tmp$ret$0 = clz32(this_0); + tmp = 32 + tmp$ret$0 | 0; + } else { + var tmp$ret$1; + // Inline function 'kotlin.countLeadingZeroBits' call + var this_1 = high; + tmp$ret$1 = clz32(this_1); + tmp = tmp$ret$1; + } + return tmp; + } + function countTrailingZeroBits(_this__u8e3s4) { + var low = _this__u8e3s4.low_1; + var tmp; + if (low === 0) { + IntCompanionObject_instance; + tmp = 32 + countTrailingZeroBits_0(_this__u8e3s4.high_1) | 0; + } else { + tmp = countTrailingZeroBits_0(low); + } + return tmp; + } + function countTrailingZeroBits_0(_this__u8e3s4) { + IntCompanionObject_instance; + var tmp$ret$0; + // Inline function 'kotlin.countLeadingZeroBits' call + var this_0 = ~(_this__u8e3s4 | (-_this__u8e3s4 | 0)); + tmp$ret$0 = clz32(this_0); + return 32 - tmp$ret$0 | 0; + } + function collectionToArray(collection) { + return collectionToArrayCommonImpl(collection); + } + function listOf(element) { + return arrayListOf([element]); + } + function mapCapacity(expectedSize) { + return expectedSize; + } + function copyToArray(collection) { + var tmp; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_0 = collection; + tmp$ret$0 = this_0; + if (tmp$ret$0.toArray !== undefined) { + var tmp$ret$2; + // Inline function 'kotlin.js.unsafeCast' call + var tmp$ret$1; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = collection; + tmp$ret$1 = this_1; + var this_2 = tmp$ret$1.toArray(); + tmp$ret$2 = this_2; + tmp = tmp$ret$2; + } else { + var tmp$ret$4; + // Inline function 'kotlin.js.unsafeCast' call + var this_3 = collectionToArray(collection); + var tmp$ret$3; + // Inline function 'kotlin.js.asDynamic' call + var this_4 = this_3; + tmp$ret$3 = this_4; + tmp$ret$4 = tmp$ret$3; + tmp = tmp$ret$4; + } + return tmp; + } + function mapOf(pair) { + return hashMapOf([pair]); + } + function arrayCopy(source, destination, destinationOffset, startIndex, endIndex) { + Companion_instance_4.checkRangeIndexes_a38xj7_k$(startIndex, endIndex, source.length); + var rangeSize = endIndex - startIndex | 0; + Companion_instance_4.checkRangeIndexes_a38xj7_k$(destinationOffset, destinationOffset + rangeSize | 0, destination.length); + if (isView(destination) ? isView(source) : false) { + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_0 = source; + tmp$ret$0 = this_0; + var subrange = tmp$ret$0.subarray(startIndex, endIndex); + var tmp$ret$1; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = destination; + tmp$ret$1 = this_1; + tmp$ret$1.set(subrange, destinationOffset); + } else { + if (!(source === destination) ? true : destinationOffset <= startIndex) { + var inductionVariable = 0; + if (inductionVariable < rangeSize) + do { + var index = inductionVariable; + inductionVariable = inductionVariable + 1 | 0; + destination[destinationOffset + index | 0] = source[startIndex + index | 0]; + Unit_instance; + } + while (inductionVariable < rangeSize); + } else { + var inductionVariable_0 = rangeSize - 1 | 0; + if (0 <= inductionVariable_0) + do { + var index_0 = inductionVariable_0; + inductionVariable_0 = inductionVariable_0 + -1 | 0; + destination[destinationOffset + index_0 | 0] = source[startIndex + index_0 | 0]; + Unit_instance; + } + while (0 <= inductionVariable_0); + } + } + } + function checkIndexOverflow(index) { + if (index < 0) { + throwIndexOverflow(); + Unit_instance; + } + return index; + } + function arrayOfUninitializedElements(capacity) { + // Inline function 'kotlin.require' call + var value = capacity >= 0; + // Inline function 'kotlin.contracts.contract' call + if (!value) { + var tmp$ret$0; + // Inline function 'kotlin.collections.arrayOfUninitializedElements.' call + tmp$ret$0 = 'capacity must be non-negative.'; + var message = tmp$ret$0; + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$(toString_1(message)); + } + var tmp$ret$3; + // Inline function 'kotlin.js.unsafeCast' call + var tmp$ret$1; + // Inline function 'kotlin.arrayOfNulls' call + var size = capacity; + tmp$ret$1 = fillArrayVal(Array(size), null); + var this_0 = tmp$ret$1; + var tmp$ret$2; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$2 = this_1; + tmp$ret$3 = tmp$ret$2; + return tmp$ret$3; + } + function resetRange(_this__u8e3s4, fromIndex, toIndex) { + // Inline function 'kotlin.js.nativeFill' call + var this_0 = _this__u8e3s4; + var element = null; + var fromIndex_0 = fromIndex; + var toIndex_0 = toIndex; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$0.fill(element, fromIndex_0, toIndex_0); + } + function copyOfUninitializedElements(_this__u8e3s4, newSize) { + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = copyOf_2(_this__u8e3s4, newSize); + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + return tmp$ret$1; + } + var Companion_instance; + function Companion_getInstance() { + if (Companion_instance === VOID) + new Companion(); + return Companion_instance; + } + function rangeCheck($this, index) { + var tmp$ret$0; + // Inline function 'kotlin.apply' call + var this_0 = index; + // Inline function 'kotlin.contracts.contract' call + // Inline function 'kotlin.collections.ArrayList.rangeCheck.' call + var $this$apply = this_0; + Companion_instance_4.checkElementIndex_r3t1bm_k$(index, $this.get_size_woubt6_k$()); + Unit_instance; + tmp$ret$0 = this_0; + return tmp$ret$0; + } + function insertionRangeCheck($this, index) { + var tmp$ret$0; + // Inline function 'kotlin.apply' call + var this_0 = index; + // Inline function 'kotlin.contracts.contract' call + // Inline function 'kotlin.collections.ArrayList.insertionRangeCheck.' call + var $this$apply = this_0; + Companion_instance_4.checkPositionIndex_xiph8v_k$(index, $this.get_size_woubt6_k$()); + Unit_instance; + tmp$ret$0 = this_0; + return tmp$ret$0; + } + function init_kotlin_collections_HashMap(_this__u8e3s4) { + _this__u8e3s4.entriesView_1 = null; + } + function init_kotlin_collections_HashSet(_this__u8e3s4) { + } + function computeHashSize($this, capacity) { + return takeHighestOneBit(imul(coerceAtLeast(capacity, 1), 3)); + } + function computeShift($this, hashSize) { + var tmp$ret$0; + // Inline function 'kotlin.countLeadingZeroBits' call + var this_0 = hashSize; + tmp$ret$0 = clz32(this_0); + return tmp$ret$0 + 1 | 0; + } + function _get_capacity__a9k9f3($this) { + return $this.keysArray_1.length; + } + function _get_hashSize__tftcho($this) { + return $this.hashArray_1.length; + } + function registerModification($this) { + var tmp0_this = $this; + tmp0_this.modCount_1 = tmp0_this.modCount_1 + 1 | 0; + } + function ensureExtraCapacity($this, n) { + if (shouldCompact($this, n)) { + rehash($this, _get_hashSize__tftcho($this)); + Unit_instance; + } else { + ensureCapacity($this, $this.length_1 + n | 0); + Unit_instance; + } + } + function shouldCompact($this, extraCapacity) { + var spareCapacity = _get_capacity__a9k9f3($this) - $this.length_1 | 0; + var gaps = $this.length_1 - $this.get_size_woubt6_k$() | 0; + return (spareCapacity < extraCapacity ? (gaps + spareCapacity | 0) >= extraCapacity : false) ? gaps >= (_get_capacity__a9k9f3($this) / 4 | 0) : false; + } + function ensureCapacity($this, minCapacity) { + if (minCapacity < 0) + throw RuntimeException.new_kotlin_RuntimeException_xu1s8h_k$('too many elements'); + if (minCapacity > _get_capacity__a9k9f3($this)) { + var newSize = Companion_instance_4.newCapacity_jl318a_k$(_get_capacity__a9k9f3($this), minCapacity); + $this.keysArray_1 = copyOfUninitializedElements($this.keysArray_1, newSize); + var tmp = $this; + var tmp0_safe_receiver = $this.valuesArray_1; + tmp.valuesArray_1 = tmp0_safe_receiver == null ? null : copyOfUninitializedElements(tmp0_safe_receiver, newSize); + $this.presenceArray_1 = copyOf_0($this.presenceArray_1, newSize); + var newHashSize = computeHashSize(Companion_instance_0, newSize); + if (newHashSize > _get_hashSize__tftcho($this)) { + rehash($this, newHashSize); + Unit_instance; + } + } + } + function allocateValuesArray($this) { + var curValuesArray = $this.valuesArray_1; + if (!(curValuesArray == null)) + return curValuesArray; + var newValuesArray = arrayOfUninitializedElements(_get_capacity__a9k9f3($this)); + $this.valuesArray_1 = newValuesArray; + return newValuesArray; + } + function hash($this, key) { + return key == null ? 0 : imul(hashCode(key), -1640531527) >>> $this.hashShift_1 | 0; + } + function compact($this) { + var i = 0; + var j = 0; + var valuesArray = $this.valuesArray_1; + while (i < $this.length_1) { + if ($this.presenceArray_1[i] >= 0) { + $this.keysArray_1[j] = $this.keysArray_1[i]; + if (!(valuesArray == null)) { + valuesArray[j] = valuesArray[i]; + Unit_instance; + } + var tmp0 = j; + j = tmp0 + 1 | 0; + Unit_instance; + } + var tmp1 = i; + i = tmp1 + 1 | 0; + Unit_instance; + } + resetRange($this.keysArray_1, j, $this.length_1); + var tmp2_safe_receiver = valuesArray; + if (tmp2_safe_receiver == null) + null; + else { + resetRange(tmp2_safe_receiver, j, $this.length_1); + Unit_instance; + } + Unit_instance; + $this.length_1 = j; + } + function rehash($this, newHashSize) { + registerModification($this); + if ($this.length_1 > $this._size_1) { + compact($this); + Unit_instance; + } + if (!(newHashSize === _get_hashSize__tftcho($this))) { + $this.hashArray_1 = new Int32Array(newHashSize); + $this.hashShift_1 = computeShift(Companion_instance_0, newHashSize); + } else { + fill($this.hashArray_1, 0, 0, _get_hashSize__tftcho($this)); + Unit_instance; + } + var i = 0; + while (i < $this.length_1) { + var tmp0 = i; + i = tmp0 + 1 | 0; + if (!putRehash($this, tmp0)) { + throw IllegalStateException.new_kotlin_IllegalStateException_w47ei6_k$('This cannot happen with fixed magic multiplier and grow-only hash array. Have object hashCodes changed?'); + } + } + } + function putRehash($this, i) { + var hash_0 = hash($this, $this.keysArray_1[i]); + var probesLeft = $this.maxProbeDistance_1; + while (true) { + var index = $this.hashArray_1[hash_0]; + if (index === 0) { + $this.hashArray_1[hash_0] = i + 1 | 0; + $this.presenceArray_1[i] = hash_0; + return true; + } + probesLeft = probesLeft - 1 | 0; + if (probesLeft < 0) + return false; + var tmp0 = hash_0; + hash_0 = tmp0 - 1 | 0; + if (tmp0 === 0) + hash_0 = _get_hashSize__tftcho($this) - 1 | 0; + } + } + function findKey($this, key) { + var hash_0 = hash($this, key); + var probesLeft = $this.maxProbeDistance_1; + while (true) { + var index = $this.hashArray_1[hash_0]; + if (index === 0) + return -1; + if (index > 0 ? equals($this.keysArray_1[index - 1 | 0], key) : false) + return index - 1 | 0; + probesLeft = probesLeft - 1 | 0; + if (probesLeft < 0) + return -1; + var tmp0 = hash_0; + hash_0 = tmp0 - 1 | 0; + if (tmp0 === 0) + hash_0 = _get_hashSize__tftcho($this) - 1 | 0; + } + } + function findValue($this, value) { + var i = $this.length_1; + $l$loop: while (true) { + i = i - 1 | 0; + if (!(i >= 0)) { + break $l$loop; + } + if ($this.presenceArray_1[i] >= 0 ? equals(ensureNotNull($this.valuesArray_1)[i], value) : false) + return i; + } + return -1; + } + function addKey($this, key) { + $this.checkIsMutable_h5js84_k$(); + retry: while (true) { + var hash_0 = hash($this, key); + var tentativeMaxProbeDistance = coerceAtMost(imul($this.maxProbeDistance_1, 2), _get_hashSize__tftcho($this) / 2 | 0); + var probeDistance = 0; + while (true) { + var index = $this.hashArray_1[hash_0]; + if (index <= 0) { + if ($this.length_1 >= _get_capacity__a9k9f3($this)) { + ensureExtraCapacity($this, 1); + continue retry; + } + var tmp0_this = $this; + var tmp1 = tmp0_this.length_1; + tmp0_this.length_1 = tmp1 + 1 | 0; + var putIndex = tmp1; + $this.keysArray_1[putIndex] = key; + $this.presenceArray_1[putIndex] = hash_0; + $this.hashArray_1[hash_0] = putIndex + 1 | 0; + var tmp2_this = $this; + var tmp3 = tmp2_this._size_1; + tmp2_this._size_1 = tmp3 + 1 | 0; + Unit_instance; + registerModification($this); + if (probeDistance > $this.maxProbeDistance_1) + $this.maxProbeDistance_1 = probeDistance; + return putIndex; + } + if (equals($this.keysArray_1[index - 1 | 0], key)) { + return -index | 0; + } + probeDistance = probeDistance + 1 | 0; + if (probeDistance > tentativeMaxProbeDistance) { + rehash($this, imul(_get_hashSize__tftcho($this), 2)); + continue retry; + } + var tmp4 = hash_0; + hash_0 = tmp4 - 1 | 0; + if (tmp4 === 0) + hash_0 = _get_hashSize__tftcho($this) - 1 | 0; + } + } + } + function contentEquals($this, other) { + return $this._size_1 === other.get_size_woubt6_k$() ? $this.containsAllEntries_m9iqdx_k$(other.get_entries_p20ztl_k$()) : false; + } + function putEntry($this, entry) { + var index = addKey($this, entry.get_key_18j28a_k$()); + var valuesArray = allocateValuesArray($this); + if (index >= 0) { + valuesArray[index] = entry.get_value_j01efc_k$(); + return true; + } + var oldValue = valuesArray[(-index | 0) - 1 | 0]; + if (!equals(entry.get_value_j01efc_k$(), oldValue)) { + valuesArray[(-index | 0) - 1 | 0] = entry.get_value_j01efc_k$(); + return true; + } + return false; + } + function putAllEntries($this, from) { + if (from.isEmpty_y1axqb_k$()) + return false; + ensureExtraCapacity($this, from.get_size_woubt6_k$()); + var it = from.iterator_jk1svi_k$(); + var updated = false; + while (it.hasNext_bitz1p_k$()) { + if (putEntry($this, it.next_20eer_k$())) + updated = true; + } + return updated; + } + var Companion_instance_0; + function Companion_getInstance_0() { + return Companion_instance_0; + } + function init_kotlin_collections_LinkedHashMap(_this__u8e3s4) { + } + function init_kotlin_collections_LinkedHashSet(_this__u8e3s4) { + } + var NothingKClassImpl_instance; + function NothingKClassImpl_getInstance() { + if (NothingKClassImpl_instance === VOID) + new NothingKClassImpl(); + return NothingKClassImpl_instance; + } + function get_functionClasses() { + _init_properties_primitives_kt__3fums4(); + return functionClasses; + } + var functionClasses; + function PrimitiveClasses$anyClass$lambda(it) { + return !(it == null); + } + function PrimitiveClasses$numberClass$lambda(it) { + return isNumber(it); + } + function PrimitiveClasses$booleanClass$lambda(it) { + return !(it == null) ? typeof it === 'boolean' : false; + } + function PrimitiveClasses$byteClass$lambda(it) { + return !(it == null) ? typeof it === 'number' : false; + } + function PrimitiveClasses$shortClass$lambda(it) { + return !(it == null) ? typeof it === 'number' : false; + } + function PrimitiveClasses$intClass$lambda(it) { + return !(it == null) ? typeof it === 'number' : false; + } + function PrimitiveClasses$floatClass$lambda(it) { + return !(it == null) ? typeof it === 'number' : false; + } + function PrimitiveClasses$doubleClass$lambda(it) { + return !(it == null) ? typeof it === 'number' : false; + } + function PrimitiveClasses$arrayClass$lambda(it) { + return !(it == null) ? isArray(it) : false; + } + function PrimitiveClasses$stringClass$lambda(it) { + return !(it == null) ? typeof it === 'string' : false; + } + function PrimitiveClasses$throwableClass$lambda(it) { + return it instanceof Error; + } + function PrimitiveClasses$booleanArrayClass$lambda(it) { + return !(it == null) ? isBooleanArray(it) : false; + } + function PrimitiveClasses$charArrayClass$lambda(it) { + return !(it == null) ? isCharArray(it) : false; + } + function PrimitiveClasses$byteArrayClass$lambda(it) { + return !(it == null) ? isByteArray(it) : false; + } + function PrimitiveClasses$shortArrayClass$lambda(it) { + return !(it == null) ? isShortArray(it) : false; + } + function PrimitiveClasses$intArrayClass$lambda(it) { + return !(it == null) ? isIntArray(it) : false; + } + function PrimitiveClasses$longArrayClass$lambda(it) { + return !(it == null) ? isLongArray(it) : false; + } + function PrimitiveClasses$floatArrayClass$lambda(it) { + return !(it == null) ? isFloatArray(it) : false; + } + function PrimitiveClasses$doubleArrayClass$lambda(it) { + return !(it == null) ? isDoubleArray(it) : false; + } + function PrimitiveClasses$functionClass$lambda($arity) { + return function (it) { + var tmp; + if (typeof it === 'function') { + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_0 = it; + tmp$ret$0 = this_0; + tmp = tmp$ret$0.length === $arity; + } else { + tmp = false; + } + return tmp; + }; + } + var PrimitiveClasses_instance; + function PrimitiveClasses_getInstance() { + if (PrimitiveClasses_instance === VOID) + new PrimitiveClasses(); + return PrimitiveClasses_instance; + } + var properties_initialized_primitives_kt_jle18u; + function _init_properties_primitives_kt__3fums4() { + if (properties_initialized_primitives_kt_jle18u) { + } else { + properties_initialized_primitives_kt_jle18u = true; + var tmp$ret$0; + // Inline function 'kotlin.arrayOfNulls' call + var size = 0; + tmp$ret$0 = fillArrayVal(Array(size), null); + functionClasses = tmp$ret$0; + } + } + function getKClass(jClass) { + var tmp; + if (Array.isArray(jClass)) { + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = jClass; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp = getKClassM(tmp$ret$1); + } else { + var tmp$ret$3; + // Inline function 'kotlin.js.unsafeCast' call + var this_2 = jClass; + var tmp$ret$2; + // Inline function 'kotlin.js.asDynamic' call + var this_3 = this_2; + tmp$ret$2 = this_3; + tmp$ret$3 = tmp$ret$2; + tmp = getKClass1(tmp$ret$3); + } + return tmp; + } + function getKClassM(jClasses) { + var tmp0_subject = jClasses.length; + var tmp; + switch (tmp0_subject) { + case 1: + tmp = getKClass1(jClasses[0]); + break; + case 0: + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = NothingKClassImpl_getInstance(); + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + + tmp = tmp$ret$1; + break; + default: + var tmp$ret$3; + // Inline function 'kotlin.js.unsafeCast' call + var this_2 = new ErrorKClass(); + var tmp$ret$2; + // Inline function 'kotlin.js.asDynamic' call + var this_3 = this_2; + tmp$ret$2 = this_3; + tmp$ret$3 = tmp$ret$2; + + tmp = tmp$ret$3; + break; + } + return tmp; + } + function getKClass1(jClass) { + if (jClass === String) { + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = PrimitiveClasses_getInstance().stringClass; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + return tmp$ret$1; + } + var tmp$ret$2; + // Inline function 'kotlin.js.asDynamic' call + var this_2 = jClass; + tmp$ret$2 = this_2; + var metadata = tmp$ret$2.$metadata$; + var tmp; + if (metadata != null) { + var tmp_0; + if (metadata.$kClass$ == null) { + var kClass = new SimpleKClassImpl(jClass); + metadata.$kClass$ = kClass; + tmp_0 = kClass; + } else { + tmp_0 = metadata.$kClass$; + } + tmp = tmp_0; + } else { + tmp = new SimpleKClassImpl(jClass); + } + return tmp; + } + function getKClassFromExpression(e) { + var tmp$ret$4; + // Inline function 'kotlin.js.unsafeCast' call + var tmp0_subject = typeof e; + var tmp; + switch (tmp0_subject) { + case 'string': + tmp = PrimitiveClasses_getInstance().stringClass; + break; + case 'number': + var tmp_0; + var tmp$ret$1; + // Inline function 'kotlin.js.asDynamic' call + var tmp$ret$0; + // Inline function 'kotlin.js.jsBitwiseOr' call + var lhs = e; + var rhs = 0; + tmp$ret$0 = lhs | rhs; + var this_0 = tmp$ret$0; + tmp$ret$1 = this_0; + + if (tmp$ret$1 === e) { + tmp_0 = PrimitiveClasses_getInstance().intClass; + } else { + tmp_0 = PrimitiveClasses_getInstance().doubleClass; + } + + tmp = tmp_0; + break; + case 'boolean': + tmp = PrimitiveClasses_getInstance().booleanClass; + break; + case 'function': + var tmp_1 = PrimitiveClasses_getInstance(); + var tmp$ret$2; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = e; + tmp$ret$2 = this_1; + + tmp = tmp_1.functionClass(tmp$ret$2.length); + break; + default: + var tmp_2; + if (isBooleanArray(e)) { + tmp_2 = PrimitiveClasses_getInstance().booleanArrayClass; + } else { + if (isCharArray(e)) { + tmp_2 = PrimitiveClasses_getInstance().charArrayClass; + } else { + if (isByteArray(e)) { + tmp_2 = PrimitiveClasses_getInstance().byteArrayClass; + } else { + if (isShortArray(e)) { + tmp_2 = PrimitiveClasses_getInstance().shortArrayClass; + } else { + if (isIntArray(e)) { + tmp_2 = PrimitiveClasses_getInstance().intArrayClass; + } else { + if (isLongArray(e)) { + tmp_2 = PrimitiveClasses_getInstance().longArrayClass; + } else { + if (isFloatArray(e)) { + tmp_2 = PrimitiveClasses_getInstance().floatArrayClass; + } else { + if (isDoubleArray(e)) { + tmp_2 = PrimitiveClasses_getInstance().doubleArrayClass; + } else { + if (isInterface(e, KClass)) { + tmp_2 = getKClass(KClass); + } else { + if (isArray(e)) { + tmp_2 = PrimitiveClasses_getInstance().arrayClass; + } else { + var constructor = Object.getPrototypeOf(e).constructor; + var tmp_3; + if (constructor === Object) { + tmp_3 = PrimitiveClasses_getInstance().anyClass; + } else if (constructor === Error) { + tmp_3 = PrimitiveClasses_getInstance().throwableClass; + } else { + var jsClass = constructor; + tmp_3 = getKClass1(jsClass); + } + tmp_2 = tmp_3; + } + } + } + } + } + } + } + } + } + } + + tmp = tmp_2; + break; + } + var this_2 = tmp; + var tmp$ret$3; + // Inline function 'kotlin.js.asDynamic' call + var this_3 = this_2; + tmp$ret$3 = this_3; + tmp$ret$4 = tmp$ret$3; + return tmp$ret$4; + } + function uppercaseChar(_this__u8e3s4) { + var tmp$ret$2; + // Inline function 'kotlin.text.uppercase' call + var this_0 = _this__u8e3s4; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = toString(this_0); + tmp$ret$0 = this_1; + var this_2 = tmp$ret$0.toUpperCase(); + tmp$ret$1 = this_2; + tmp$ret$2 = tmp$ret$1; + var uppercase = tmp$ret$2; + return uppercase.length > 1 ? _this__u8e3s4 : charSequenceGet(uppercase, 0); + } + function isWhitespace(_this__u8e3s4) { + return isWhitespaceImpl(_this__u8e3s4); + } + function checkRadix(radix) { + if (!(2 <= radix ? radix <= 36 : false)) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('radix ' + radix + ' was not in valid range 2..36'); + } + return radix; + } + function toLong(_this__u8e3s4) { + var tmp0_elvis_lhs = toLongOrNull(_this__u8e3s4); + var tmp; + if (tmp0_elvis_lhs == null) { + numberFormatError(_this__u8e3s4); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + function digitOf(char, radix) { + var tmp$ret$1; + // Inline function 'kotlin.let' call + var this_0 = (Char__compareTo_impl_ypi4mb(char, _Char___init__impl__6a9atx(48)) >= 0 ? Char__compareTo_impl_ypi4mb(char, _Char___init__impl__6a9atx(57)) <= 0 : false) ? Char__minus_impl_a2frrh(char, _Char___init__impl__6a9atx(48)) : (Char__compareTo_impl_ypi4mb(char, _Char___init__impl__6a9atx(65)) >= 0 ? Char__compareTo_impl_ypi4mb(char, _Char___init__impl__6a9atx(90)) <= 0 : false) ? Char__minus_impl_a2frrh(char, _Char___init__impl__6a9atx(65)) + 10 | 0 : (Char__compareTo_impl_ypi4mb(char, _Char___init__impl__6a9atx(97)) >= 0 ? Char__compareTo_impl_ypi4mb(char, _Char___init__impl__6a9atx(122)) <= 0 : false) ? Char__minus_impl_a2frrh(char, _Char___init__impl__6a9atx(97)) + 10 | 0 : Char__compareTo_impl_ypi4mb(char, _Char___init__impl__6a9atx(128)) < 0 ? -1 : (Char__compareTo_impl_ypi4mb(char, _Char___init__impl__6a9atx(65313)) >= 0 ? Char__compareTo_impl_ypi4mb(char, _Char___init__impl__6a9atx(65338)) <= 0 : false) ? Char__minus_impl_a2frrh(char, _Char___init__impl__6a9atx(65313)) + 10 | 0 : (Char__compareTo_impl_ypi4mb(char, _Char___init__impl__6a9atx(65345)) >= 0 ? Char__compareTo_impl_ypi4mb(char, _Char___init__impl__6a9atx(65370)) <= 0 : false) ? Char__minus_impl_a2frrh(char, _Char___init__impl__6a9atx(65345)) + 10 | 0 : digitToIntImpl(char); + // Inline function 'kotlin.contracts.contract' call + var tmp$ret$0; + // Inline function 'kotlin.text.digitOf.' call + var it = this_0; + tmp$ret$0 = it >= radix ? -1 : it; + tmp$ret$1 = tmp$ret$0; + return tmp$ret$1; + } + var STRING_CASE_INSENSITIVE_ORDER; + function compareTo(_this__u8e3s4, other, ignoreCase) { + ignoreCase = ignoreCase === VOID ? false : ignoreCase; + _init_properties_stringJs_kt__bg7zye(); + if (ignoreCase) { + var n1 = _this__u8e3s4.length; + var n2 = other.length; + var tmp$ret$0; + // Inline function 'kotlin.comparisons.minOf' call + var a = n1; + var b = n2; + tmp$ret$0 = Math.min(a, b); + var min = tmp$ret$0; + if (min === 0) + return n1 - n2 | 0; + var inductionVariable = 0; + if (inductionVariable < min) + do { + var index = inductionVariable; + inductionVariable = inductionVariable + 1 | 0; + var thisChar = charSequenceGet(_this__u8e3s4, index); + var otherChar = charSequenceGet(other, index); + if (!(thisChar === otherChar)) { + thisChar = uppercaseChar(thisChar); + otherChar = uppercaseChar(otherChar); + if (!(thisChar === otherChar)) { + var tmp$ret$4; + // Inline function 'kotlin.text.lowercaseChar' call + var this_0 = thisChar; + var tmp$ret$3; + // Inline function 'kotlin.text.lowercase' call + var this_1 = this_0; + var tmp$ret$2; + // Inline function 'kotlin.js.unsafeCast' call + var tmp$ret$1; + // Inline function 'kotlin.js.asDynamic' call + var this_2 = toString(this_1); + tmp$ret$1 = this_2; + var this_3 = tmp$ret$1.toLowerCase(); + tmp$ret$2 = this_3; + tmp$ret$3 = tmp$ret$2; + tmp$ret$4 = charSequenceGet(tmp$ret$3, 0); + thisChar = tmp$ret$4; + var tmp$ret$8; + // Inline function 'kotlin.text.lowercaseChar' call + var this_4 = otherChar; + var tmp$ret$7; + // Inline function 'kotlin.text.lowercase' call + var this_5 = this_4; + var tmp$ret$6; + // Inline function 'kotlin.js.unsafeCast' call + var tmp$ret$5; + // Inline function 'kotlin.js.asDynamic' call + var this_6 = toString(this_5); + tmp$ret$5 = this_6; + var this_7 = tmp$ret$5.toLowerCase(); + tmp$ret$6 = this_7; + tmp$ret$7 = tmp$ret$6; + tmp$ret$8 = charSequenceGet(tmp$ret$7, 0); + otherChar = tmp$ret$8; + if (!(thisChar === otherChar)) { + return Char__compareTo_impl_ypi4mb(thisChar, otherChar); + } + } + } + } + while (inductionVariable < min); + return n1 - n2 | 0; + } else { + return compareTo_0(_this__u8e3s4, other); + } + } + function decodeToString(_this__u8e3s4, startIndex, endIndex, throwOnInvalidSequence) { + startIndex = startIndex === VOID ? 0 : startIndex; + endIndex = endIndex === VOID ? _this__u8e3s4.length : endIndex; + throwOnInvalidSequence = throwOnInvalidSequence === VOID ? false : throwOnInvalidSequence; + _init_properties_stringJs_kt__bg7zye(); + Companion_instance_4.checkBoundsIndexes_fu3rwb_k$(startIndex, endIndex, _this__u8e3s4.length); + return decodeUtf8(_this__u8e3s4, startIndex, endIndex, throwOnInvalidSequence); + } + function encodeToByteArray(_this__u8e3s4) { + _init_properties_stringJs_kt__bg7zye(); + return encodeUtf8(_this__u8e3s4, 0, _this__u8e3s4.length, false); + } + function STRING_CASE_INSENSITIVE_ORDER$lambda(a, b) { + _init_properties_stringJs_kt__bg7zye(); + return compareTo(a, b, true); + } + var properties_initialized_stringJs_kt_nta8o4; + function _init_properties_stringJs_kt__bg7zye() { + if (properties_initialized_stringJs_kt_nta8o4) { + } else { + properties_initialized_stringJs_kt_nta8o4 = true; + var tmp = STRING_CASE_INSENSITIVE_ORDER$lambda; + STRING_CASE_INSENSITIVE_ORDER = new sam$kotlin_Comparator$0(tmp); + } + } + function isBlank(_this__u8e3s4) { + var tmp; + if (charSequenceLength(_this__u8e3s4) === 0) { + tmp = true; + } else { + var tmp$ret$0; + $l$block_0: { + // Inline function 'kotlin.collections.all' call + var this_0 = get_indices_1(_this__u8e3s4); + var tmp_0; + if (isInterface(this_0, Collection)) { + tmp_0 = this_0.isEmpty_y1axqb_k$(); + } else { + tmp_0 = false; + } + if (tmp_0) { + tmp$ret$0 = true; + break $l$block_0; + } + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$1; + // Inline function 'kotlin.text.isBlank.' call + var it = element; + tmp$ret$1 = isWhitespace(charSequenceGet(_this__u8e3s4, it)); + if (!tmp$ret$1) { + tmp$ret$0 = false; + break $l$block_0; + } + } + tmp$ret$0 = true; + } + tmp = tmp$ret$0; + } + return tmp; + } + function get_REPLACEMENT_BYTE_SEQUENCE() { + _init_properties_utf8Encoding_kt__9thjs4(); + return REPLACEMENT_BYTE_SEQUENCE; + } + var REPLACEMENT_BYTE_SEQUENCE; + function decodeUtf8(bytes, startIndex, endIndex, throwOnMalformed) { + _init_properties_utf8Encoding_kt__9thjs4(); + // Inline function 'kotlin.require' call + var value = (startIndex >= 0 ? endIndex <= bytes.length : false) ? startIndex <= endIndex : false; + // Inline function 'kotlin.contracts.contract' call + // Inline function 'kotlin.require' call + var value_0 = value; + // Inline function 'kotlin.contracts.contract' call + if (!value_0) { + var tmp$ret$0; + // Inline function 'kotlin.require.' call + tmp$ret$0 = 'Failed requirement.'; + var message = tmp$ret$0; + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$(toString_1(message)); + } + var byteIndex = startIndex; + var stringBuilder = StringBuilder.new_kotlin_text_StringBuilder_u46mrb_k$(); + while (byteIndex < endIndex) { + var tmp0 = byteIndex; + byteIndex = tmp0 + 1 | 0; + var byte = bytes[tmp0]; + if (byte >= 0) { + stringBuilder.append_t84oo1_k$(numberToChar(byte)); + Unit_instance; + } else if (byte >> 5 === -2) { + var code = codePointFrom2(bytes, byte, byteIndex, endIndex, throwOnMalformed); + if (code <= 0) { + stringBuilder.append_t84oo1_k$(_Char___init__impl__6a9atx(65533)); + Unit_instance; + byteIndex = byteIndex + (-code | 0) | 0; + } else { + stringBuilder.append_t84oo1_k$(numberToChar(code)); + Unit_instance; + byteIndex = byteIndex + 1 | 0; + } + } else if (byte >> 4 === -2) { + var code_0 = codePointFrom3(bytes, byte, byteIndex, endIndex, throwOnMalformed); + if (code_0 <= 0) { + stringBuilder.append_t84oo1_k$(_Char___init__impl__6a9atx(65533)); + Unit_instance; + byteIndex = byteIndex + (-code_0 | 0) | 0; + } else { + stringBuilder.append_t84oo1_k$(numberToChar(code_0)); + Unit_instance; + byteIndex = byteIndex + 2 | 0; + } + } else if (byte >> 3 === -2) { + var code_1 = codePointFrom4(bytes, byte, byteIndex, endIndex, throwOnMalformed); + if (code_1 <= 0) { + stringBuilder.append_t84oo1_k$(_Char___init__impl__6a9atx(65533)); + Unit_instance; + byteIndex = byteIndex + (-code_1 | 0) | 0; + } else { + var high = (code_1 - 65536 | 0) >> 10 | 55296; + var low = code_1 & 1023 | 56320; + stringBuilder.append_t84oo1_k$(numberToChar(high)); + Unit_instance; + stringBuilder.append_t84oo1_k$(numberToChar(low)); + Unit_instance; + byteIndex = byteIndex + 3 | 0; + } + } else { + malformed(0, byteIndex, throwOnMalformed); + Unit_instance; + stringBuilder.append_t84oo1_k$(_Char___init__impl__6a9atx(65533)); + Unit_instance; + } + } + return stringBuilder.toString(); + } + function encodeUtf8(string, startIndex, endIndex, throwOnMalformed) { + _init_properties_utf8Encoding_kt__9thjs4(); + // Inline function 'kotlin.require' call + var value = (startIndex >= 0 ? endIndex <= string.length : false) ? startIndex <= endIndex : false; + // Inline function 'kotlin.contracts.contract' call + // Inline function 'kotlin.require' call + var value_0 = value; + // Inline function 'kotlin.contracts.contract' call + if (!value_0) { + var tmp$ret$0; + // Inline function 'kotlin.require.' call + tmp$ret$0 = 'Failed requirement.'; + var message = tmp$ret$0; + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$(toString_1(message)); + } + var bytes = new Int8Array(imul(endIndex - startIndex | 0, 3)); + var byteIndex = 0; + var charIndex = startIndex; + while (charIndex < endIndex) { + var tmp$ret$1; + // Inline function 'kotlin.code' call + var tmp0 = charIndex; + charIndex = tmp0 + 1 | 0; + var this_0 = charSequenceGet(string, tmp0); + tmp$ret$1 = Char__toInt_impl_vasixd(this_0); + var code = tmp$ret$1; + if (code < 128) { + var tmp1 = byteIndex; + byteIndex = tmp1 + 1 | 0; + bytes[tmp1] = toByte(code); + Unit_instance; + } else if (code < 2048) { + var tmp2 = byteIndex; + byteIndex = tmp2 + 1 | 0; + bytes[tmp2] = toByte(code >> 6 | 192); + var tmp3 = byteIndex; + byteIndex = tmp3 + 1 | 0; + bytes[tmp3] = toByte(code & 63 | 128); + Unit_instance; + } else if (code < 55296 ? true : code >= 57344) { + var tmp4 = byteIndex; + byteIndex = tmp4 + 1 | 0; + bytes[tmp4] = toByte(code >> 12 | 224); + var tmp5 = byteIndex; + byteIndex = tmp5 + 1 | 0; + bytes[tmp5] = toByte(code >> 6 & 63 | 128); + var tmp6 = byteIndex; + byteIndex = tmp6 + 1 | 0; + bytes[tmp6] = toByte(code & 63 | 128); + Unit_instance; + } else { + var codePoint = codePointFromSurrogate(string, code, charIndex, endIndex, throwOnMalformed); + if (codePoint <= 0) { + var tmp7 = byteIndex; + byteIndex = tmp7 + 1 | 0; + bytes[tmp7] = get_REPLACEMENT_BYTE_SEQUENCE()[0]; + var tmp8 = byteIndex; + byteIndex = tmp8 + 1 | 0; + bytes[tmp8] = get_REPLACEMENT_BYTE_SEQUENCE()[1]; + var tmp9 = byteIndex; + byteIndex = tmp9 + 1 | 0; + bytes[tmp9] = get_REPLACEMENT_BYTE_SEQUENCE()[2]; + Unit_instance; + } else { + var tmp10 = byteIndex; + byteIndex = tmp10 + 1 | 0; + bytes[tmp10] = toByte(codePoint >> 18 | 240); + var tmp11 = byteIndex; + byteIndex = tmp11 + 1 | 0; + bytes[tmp11] = toByte(codePoint >> 12 & 63 | 128); + var tmp12 = byteIndex; + byteIndex = tmp12 + 1 | 0; + bytes[tmp12] = toByte(codePoint >> 6 & 63 | 128); + var tmp13 = byteIndex; + byteIndex = tmp13 + 1 | 0; + bytes[tmp13] = toByte(codePoint & 63 | 128); + var tmp14 = charIndex; + charIndex = tmp14 + 1 | 0; + Unit_instance; + } + } + } + return bytes.length === byteIndex ? bytes : copyOf_1(bytes, byteIndex); + } + function codePointFrom2(bytes, byte1, index, endIndex, throwOnMalformed) { + _init_properties_utf8Encoding_kt__9thjs4(); + if ((byte1 & 30) === 0 ? true : index >= endIndex) { + return malformed(0, index, throwOnMalformed); + } + var byte2 = bytes[index]; + if (!((byte2 & 192) === 128)) { + return malformed(0, index, throwOnMalformed); + } + return byte1 << 6 ^ byte2 ^ 3968; + } + function codePointFrom3(bytes, byte1, index, endIndex, throwOnMalformed) { + _init_properties_utf8Encoding_kt__9thjs4(); + if (index >= endIndex) { + return malformed(0, index, throwOnMalformed); + } + var byte2 = bytes[index]; + if ((byte1 & 15) === 0) { + if (!((byte2 & 224) === 160)) { + return malformed(0, index, throwOnMalformed); + } + } else if ((byte1 & 15) === 13) { + if (!((byte2 & 224) === 128)) { + return malformed(0, index, throwOnMalformed); + } + } else if (!((byte2 & 192) === 128)) { + return malformed(0, index, throwOnMalformed); + } + if ((index + 1 | 0) === endIndex) { + return malformed(1, index, throwOnMalformed); + } + var byte3 = bytes[index + 1 | 0]; + if (!((byte3 & 192) === 128)) { + return malformed(1, index, throwOnMalformed); + } + return byte1 << 12 ^ byte2 << 6 ^ byte3 ^ -123008; + } + function codePointFrom4(bytes, byte1, index, endIndex, throwOnMalformed) { + _init_properties_utf8Encoding_kt__9thjs4(); + if (index >= endIndex) { + malformed(0, index, throwOnMalformed); + Unit_instance; + } + var byte2 = bytes[index]; + if ((byte1 & 15) === 0) { + if ((byte2 & 240) <= 128) { + return malformed(0, index, throwOnMalformed); + } + } else if ((byte1 & 15) === 4) { + if (!((byte2 & 240) === 128)) { + return malformed(0, index, throwOnMalformed); + } + } else if ((byte1 & 15) > 4) { + return malformed(0, index, throwOnMalformed); + } else if (!((byte2 & 192) === 128)) { + return malformed(0, index, throwOnMalformed); + } + if ((index + 1 | 0) === endIndex) { + return malformed(1, index, throwOnMalformed); + } + var byte3 = bytes[index + 1 | 0]; + if (!((byte3 & 192) === 128)) { + return malformed(1, index, throwOnMalformed); + } + if ((index + 2 | 0) === endIndex) { + return malformed(2, index, throwOnMalformed); + } + var byte4 = bytes[index + 2 | 0]; + if (!((byte4 & 192) === 128)) { + return malformed(2, index, throwOnMalformed); + } + return byte1 << 18 ^ byte2 << 12 ^ byte3 << 6 ^ byte4 ^ 3678080; + } + function malformed(size, index, throwOnMalformed) { + _init_properties_utf8Encoding_kt__9thjs4(); + if (throwOnMalformed) + throw CharacterCodingException.new_kotlin_text_CharacterCodingException_wozcvs_k$('Malformed sequence starting at ' + (index - 1 | 0)); + return -size | 0; + } + function codePointFromSurrogate(string, high, index, endIndex, throwOnMalformed) { + _init_properties_utf8Encoding_kt__9thjs4(); + if (!(55296 <= high ? high <= 56319 : false) ? true : index >= endIndex) { + return malformed(0, index, throwOnMalformed); + } + var tmp$ret$0; + // Inline function 'kotlin.code' call + var this_0 = charSequenceGet(string, index); + tmp$ret$0 = Char__toInt_impl_vasixd(this_0); + var low = tmp$ret$0; + if (!(56320 <= low ? low <= 57343 : false)) { + return malformed(0, index, throwOnMalformed); + } + return 65536 + ((high & 1023) << 10) | 0 | low & 1023; + } + var properties_initialized_utf8Encoding_kt_eee1vq; + function _init_properties_utf8Encoding_kt__9thjs4() { + if (properties_initialized_utf8Encoding_kt_eee1vq) { + } else { + properties_initialized_utf8Encoding_kt_eee1vq = true; + var tmp$ret$0; + // Inline function 'kotlin.byteArrayOf' call + var elements = new Int8Array([-17, -65, -67]); + tmp$ret$0 = elements; + REPLACEMENT_BYTE_SEQUENCE = tmp$ret$0; + } + } + function toList(_this__u8e3s4) { + var tmp0_subject = _this__u8e3s4.length; + switch (tmp0_subject) { + case 0: + return emptyList(); + case 1: + return listOf(_this__u8e3s4[0]); + default: + return toMutableList(_this__u8e3s4); + } + } + function withIndex(_this__u8e3s4) { + return new IndexingIterable(withIndex$lambda(_this__u8e3s4)); + } + function get_indices(_this__u8e3s4) { + return new IntRange(0, get_lastIndex(_this__u8e3s4)); + } + function get_indices_0(_this__u8e3s4) { + return new IntRange(0, get_lastIndex_0(_this__u8e3s4)); + } + function indexOf(_this__u8e3s4, element) { + if (element == null) { + var inductionVariable = 0; + var last = _this__u8e3s4.length - 1 | 0; + if (inductionVariable <= last) + do { + var index = inductionVariable; + inductionVariable = inductionVariable + 1 | 0; + if (_this__u8e3s4[index] == null) { + return index; + } + } + while (inductionVariable <= last); + } else { + var inductionVariable_0 = 0; + var last_0 = _this__u8e3s4.length - 1 | 0; + if (inductionVariable_0 <= last_0) + do { + var index_0 = inductionVariable_0; + inductionVariable_0 = inductionVariable_0 + 1 | 0; + if (equals(element, _this__u8e3s4[index_0])) { + return index_0; + } + } + while (inductionVariable_0 <= last_0); + } + return -1; + } + function contains(_this__u8e3s4, element) { + return indexOf(_this__u8e3s4, element) >= 0; + } + function get_lastIndex(_this__u8e3s4) { + return _this__u8e3s4.length - 1 | 0; + } + function toMutableList(_this__u8e3s4) { + return ArrayList.new_kotlin_collections_ArrayList_nk3udn_k$(asCollection(_this__u8e3s4)); + } + function get_lastIndex_0(_this__u8e3s4) { + return _this__u8e3s4.length - 1 | 0; + } + function get_lastIndex_1(_this__u8e3s4) { + return _this__u8e3s4.length - 1 | 0; + } + function get_lastIndex_2(_this__u8e3s4) { + return _this__u8e3s4.length - 1 | 0; + } + function joinToString(_this__u8e3s4, separator, prefix, postfix, limit, truncated, transform) { + separator = separator === VOID ? ', ' : separator; + prefix = prefix === VOID ? '' : prefix; + postfix = postfix === VOID ? '' : postfix; + limit = limit === VOID ? -1 : limit; + truncated = truncated === VOID ? '...' : truncated; + transform = transform === VOID ? null : transform; + return joinTo(_this__u8e3s4, StringBuilder.new_kotlin_text_StringBuilder_u46mrb_k$(), separator, prefix, postfix, limit, truncated, transform).toString(); + } + function joinTo(_this__u8e3s4, buffer, separator, prefix, postfix, limit, truncated, transform) { + separator = separator === VOID ? ', ' : separator; + prefix = prefix === VOID ? '' : prefix; + postfix = postfix === VOID ? '' : postfix; + limit = limit === VOID ? -1 : limit; + truncated = truncated === VOID ? '...' : truncated; + transform = transform === VOID ? null : transform; + buffer.append_jgojdo_k$(prefix); + Unit_instance; + var count = 0; + var indexedObject = _this__u8e3s4; + var inductionVariable = 0; + var last = indexedObject.length; + $l$loop: while (inductionVariable < last) { + var element = indexedObject[inductionVariable]; + inductionVariable = inductionVariable + 1 | 0; + count = count + 1 | 0; + if (count > 1) { + buffer.append_jgojdo_k$(separator); + Unit_instance; + } + if (limit < 0 ? true : count <= limit) { + appendElement(buffer, element, transform); + Unit_instance; + } else + break $l$loop; + } + if (limit >= 0 ? count > limit : false) { + buffer.append_jgojdo_k$(truncated); + Unit_instance; + } + buffer.append_jgojdo_k$(postfix); + Unit_instance; + return buffer; + } + function withIndex$lambda($this_withIndex) { + return function () { + return arrayIterator($this_withIndex); + }; + } + function joinToString_0(_this__u8e3s4, separator, prefix, postfix, limit, truncated, transform) { + separator = separator === VOID ? ', ' : separator; + prefix = prefix === VOID ? '' : prefix; + postfix = postfix === VOID ? '' : postfix; + limit = limit === VOID ? -1 : limit; + truncated = truncated === VOID ? '...' : truncated; + transform = transform === VOID ? null : transform; + return joinTo_0(_this__u8e3s4, StringBuilder.new_kotlin_text_StringBuilder_u46mrb_k$(), separator, prefix, postfix, limit, truncated, transform).toString(); + } + function joinTo_0(_this__u8e3s4, buffer, separator, prefix, postfix, limit, truncated, transform) { + separator = separator === VOID ? ', ' : separator; + prefix = prefix === VOID ? '' : prefix; + postfix = postfix === VOID ? '' : postfix; + limit = limit === VOID ? -1 : limit; + truncated = truncated === VOID ? '...' : truncated; + transform = transform === VOID ? null : transform; + buffer.append_jgojdo_k$(prefix); + Unit_instance; + var count = 0; + var tmp0_iterator = _this__u8e3s4.iterator_jk1svi_k$(); + $l$loop: while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + count = count + 1 | 0; + if (count > 1) { + buffer.append_jgojdo_k$(separator); + Unit_instance; + } + if (limit < 0 ? true : count <= limit) { + appendElement(buffer, element, transform); + Unit_instance; + } else + break $l$loop; + } + if (limit >= 0 ? count > limit : false) { + buffer.append_jgojdo_k$(truncated); + Unit_instance; + } + buffer.append_jgojdo_k$(postfix); + Unit_instance; + return buffer; + } + function toHashSet(_this__u8e3s4) { + return toCollection(_this__u8e3s4, HashSet.new_kotlin_collections_HashSet_9nbh5e_k$(mapCapacity(collectionSizeOrDefault(_this__u8e3s4, 12)))); + } + function toBooleanArray(_this__u8e3s4) { + var result = booleanArray(_this__u8e3s4.get_size_woubt6_k$()); + var index = 0; + var tmp0_iterator = _this__u8e3s4.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp1 = index; + index = tmp1 + 1 | 0; + result[tmp1] = element; + Unit_instance; + } + return result; + } + function toCollection(_this__u8e3s4, destination) { + var tmp0_iterator = _this__u8e3s4.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var item = tmp0_iterator.next_20eer_k$(); + destination.add_utx5q5_k$(item); + Unit_instance; + } + return destination; + } + function until(_this__u8e3s4, to) { + if (to <= IntCompanionObject_instance.MIN_VALUE) + return Companion_getInstance_7().EMPTY_1; + return numberRangeToNumber(_this__u8e3s4, to - 1 | 0); + } + function step(_this__u8e3s4, step) { + checkStepIsPositive(step > 0, step); + return Companion_instance_8.fromClosedRange_y6bqsv_k$(_this__u8e3s4.first_1, _this__u8e3s4.last_1, _this__u8e3s4.step_1 > 0 ? step : -step | 0); + } + function coerceAtLeast(_this__u8e3s4, minimumValue) { + return _this__u8e3s4 < minimumValue ? minimumValue : _this__u8e3s4; + } + function coerceAtMost(_this__u8e3s4, maximumValue) { + return _this__u8e3s4 > maximumValue ? maximumValue : _this__u8e3s4; + } + function _Char___init__impl__6a9atx(value) { + return value; + } + function _get_value__a43j40($this) { + return $this; + } + function _Char___init__impl__6a9atx_0(code) { + var tmp$ret$0; + // Inline function 'kotlin.UShort.toInt' call + var this_0 = code; + tmp$ret$0 = _UShort___get_data__impl__g0245(this_0) & 65535; + var tmp = _Char___init__impl__6a9atx(tmp$ret$0); + return tmp; + } + function Char__compareTo_impl_ypi4mb($this, other) { + return _get_value__a43j40($this) - _get_value__a43j40(other) | 0; + } + function Char__minus_impl_a2frrh($this, other) { + return _get_value__a43j40($this) - _get_value__a43j40(other) | 0; + } + function Char__toInt_impl_vasixd($this) { + return _get_value__a43j40($this); + } + function toString($this) { + var tmp$ret$0; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = String.fromCharCode(_get_value__a43j40($this)); + tmp$ret$0 = this_0; + return tmp$ret$0; + } + var Companion_instance_1; + function Companion_getInstance_1() { + if (Companion_instance_1 === VOID) + new Companion_1(); + return Companion_instance_1; + } + var Companion_instance_2; + function Companion_getInstance_2() { + return Companion_instance_2; + } + function toString_0(_this__u8e3s4) { + var tmp0_safe_receiver = _this__u8e3s4; + var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toString_1(tmp0_safe_receiver); + return tmp1_elvis_lhs == null ? 'null' : tmp1_elvis_lhs; + } + function implement(interfaces) { + var maxSize = 1; + var masks = []; + var indexedObject = interfaces; + var inductionVariable = 0; + var last = indexedObject.length; + while (inductionVariable < last) { + var i = indexedObject[inductionVariable]; + inductionVariable = inductionVariable + 1 | 0; + var currentSize = maxSize; + var tmp1_elvis_lhs = i.prototype.$imask$; + var imask = tmp1_elvis_lhs == null ? i.$imask$ : tmp1_elvis_lhs; + if (!(imask == null)) { + masks.push(imask); + currentSize = imask.length; + } + var iid = i.$metadata$.iid; + var tmp2_safe_receiver = iid; + var tmp; + if (tmp2_safe_receiver == null) { + tmp = null; + } else { + var tmp$ret$1; + // Inline function 'kotlin.let' call + var this_0 = tmp2_safe_receiver; + // Inline function 'kotlin.contracts.contract' call + var tmp$ret$0; + // Inline function 'kotlin.js.implement.' call + var it = this_0; + tmp$ret$0 = bitMaskWith(it); + tmp$ret$1 = tmp$ret$0; + tmp = tmp$ret$1; + } + var iidImask = tmp; + if (!(iidImask == null)) { + masks.push(iidImask); + currentSize = Math.max(currentSize, iidImask.length); + } + if (currentSize > maxSize) { + maxSize = currentSize; + } + } + return compositeBitMask(maxSize, masks); + } + function bitMaskWith(activeBit) { + var numberIndex = activeBit >> 5; + var intArray = new Int32Array(numberIndex + 1 | 0); + var positionInNumber = activeBit & 31; + var numberWithSettledBit = 1 << positionInNumber; + intArray[numberIndex] = intArray[numberIndex] | numberWithSettledBit; + return intArray; + } + function compositeBitMask(capacity, masks) { + var tmp = 0; + var tmp_0 = capacity; + var tmp_1 = new Int32Array(tmp_0); + while (tmp < tmp_0) { + var tmp_2 = tmp; + var tmp$ret$0; + var result = 0; + var indexedObject = masks; + var inductionVariable = 0; + var last = indexedObject.length; + while (inductionVariable < last) { + var mask = indexedObject[inductionVariable]; + inductionVariable = inductionVariable + 1 | 0; + if (tmp_2 < mask.length) { + result = result | mask[tmp_2]; + } + } + tmp$ret$0 = result; + tmp_1[tmp_2] = tmp$ret$0; + tmp = tmp + 1 | 0; + } + return tmp_1; + } + function isBitSet(_this__u8e3s4, possibleActiveBit) { + var numberIndex = possibleActiveBit >> 5; + if (numberIndex > _this__u8e3s4.length) + return false; + var positionInNumber = possibleActiveBit & 31; + var numberWithSettledBit = 1 << positionInNumber; + return !((_this__u8e3s4[numberIndex] & numberWithSettledBit) === 0); + } + function fillArrayVal(array, initValue) { + var inductionVariable = 0; + var last = array.length - 1 | 0; + if (inductionVariable <= last) + do { + var i = inductionVariable; + inductionVariable = inductionVariable + 1 | 0; + array[i] = initValue; + Unit_instance; + } + while (!(i === last)); + return array; + } + function arrayIterator(array) { + return new arrayIterator$1(array); + } + function booleanArray(size) { + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var tmp$ret$0; + // Inline function 'withType' call + var type = 'BooleanArray'; + var array = fillArrayVal(Array(size), false); + array.$type$ = type; + tmp$ret$0 = array; + var this_0 = tmp$ret$0; + tmp$ret$1 = this_0; + return tmp$ret$1; + } + function longArray(size) { + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var tmp$ret$0; + // Inline function 'withType' call + var type = 'LongArray'; + var array = fillArrayVal(Array(size), new Long(0, 0)); + array.$type$ = type; + tmp$ret$0 = array; + var this_0 = tmp$ret$0; + tmp$ret$1 = this_0; + return tmp$ret$1; + } + function get_buf() { + _init_properties_bitUtils_kt__nfcg4k(); + return buf; + } + var buf; + function get_bufFloat64() { + _init_properties_bitUtils_kt__nfcg4k(); + return bufFloat64; + } + var bufFloat64; + function get_bufFloat32() { + _init_properties_bitUtils_kt__nfcg4k(); + return bufFloat32; + } + var bufFloat32; + function get_bufInt32() { + _init_properties_bitUtils_kt__nfcg4k(); + return bufInt32; + } + var bufInt32; + function get_lowIndex() { + _init_properties_bitUtils_kt__nfcg4k(); + return lowIndex; + } + var lowIndex; + function get_highIndex() { + _init_properties_bitUtils_kt__nfcg4k(); + return highIndex; + } + var highIndex; + function getNumberHashCode(obj) { + _init_properties_bitUtils_kt__nfcg4k(); + var tmp$ret$2; + // Inline function 'kotlin.js.unsafeCast' call + var tmp$ret$0; + // Inline function 'kotlin.js.jsBitwiseOr' call + var lhs = obj; + var rhs = 0; + tmp$ret$0 = lhs | rhs; + var this_0 = tmp$ret$0; + var tmp$ret$1; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$1 = this_1; + tmp$ret$2 = tmp$ret$1; + if (tmp$ret$2 === obj) { + return numberToInt(obj); + } + get_bufFloat64()[0] = obj; + return imul(get_bufInt32()[get_highIndex()], 31) + get_bufInt32()[get_lowIndex()] | 0; + } + function floatToRawBits(value) { + _init_properties_bitUtils_kt__nfcg4k(); + get_bufFloat32()[0] = value; + return get_bufInt32()[0]; + } + function doubleToRawBits(value) { + _init_properties_bitUtils_kt__nfcg4k(); + get_bufFloat64()[0] = value; + return new Long(get_bufInt32()[get_lowIndex()], get_bufInt32()[get_highIndex()]); + } + function floatFromBits(value) { + _init_properties_bitUtils_kt__nfcg4k(); + get_bufInt32()[0] = value; + return get_bufFloat32()[0]; + } + function doubleFromBits(value) { + _init_properties_bitUtils_kt__nfcg4k(); + get_bufInt32()[get_lowIndex()] = value.low_1; + get_bufInt32()[get_highIndex()] = value.high_1; + return get_bufFloat64()[0]; + } + var properties_initialized_bitUtils_kt_i2bo3e; + function _init_properties_bitUtils_kt__nfcg4k() { + if (properties_initialized_bitUtils_kt_i2bo3e) { + } else { + properties_initialized_bitUtils_kt_i2bo3e = true; + buf = new ArrayBuffer(8); + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = new Float64Array(get_buf()); + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + bufFloat64 = tmp$ret$1; + var tmp$ret$1_0; + // Inline function 'kotlin.js.unsafeCast' call + var this_2 = new Float32Array(get_buf()); + var tmp$ret$0_0; + // Inline function 'kotlin.js.asDynamic' call + var this_3 = this_2; + tmp$ret$0_0 = this_3; + tmp$ret$1_0 = tmp$ret$0_0; + bufFloat32 = tmp$ret$1_0; + var tmp$ret$1_1; + // Inline function 'kotlin.js.unsafeCast' call + var this_4 = new Int32Array(get_buf()); + var tmp$ret$0_1; + // Inline function 'kotlin.js.asDynamic' call + var this_5 = this_4; + tmp$ret$0_1 = this_5; + tmp$ret$1_1 = tmp$ret$0_1; + bufInt32 = tmp$ret$1_1; + var tmp$ret$1_2; + // Inline function 'kotlin.run' call + // Inline function 'kotlin.contracts.contract' call + var tmp$ret$0_2; + // Inline function 'kotlin.js.lowIndex.' call + get_bufFloat64()[0] = -1.0; + tmp$ret$0_2 = !(get_bufInt32()[0] === 0) ? 1 : 0; + tmp$ret$1_2 = tmp$ret$0_2; + lowIndex = tmp$ret$1_2; + highIndex = 1 - get_lowIndex() | 0; + } + } + function charSequenceGet(a, index) { + var tmp; + if (isString(a)) { + var tmp$ret$4; + // Inline function 'kotlin.Char' call + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_0 = a; + tmp$ret$0 = this_0; + var this_1 = tmp$ret$0.charCodeAt(index); + tmp$ret$1 = this_1; + var code = tmp$ret$1; + var tmp_0; + var tmp$ret$2; + // Inline function 'kotlin.code' call + Companion_getInstance_1(); + var this_2 = _Char___init__impl__6a9atx(0); + tmp$ret$2 = Char__toInt_impl_vasixd(this_2); + if (code < tmp$ret$2) { + tmp_0 = true; + } else { + var tmp$ret$3; + // Inline function 'kotlin.code' call + Companion_getInstance_1(); + var this_3 = _Char___init__impl__6a9atx(65535); + tmp$ret$3 = Char__toInt_impl_vasixd(this_3); + tmp_0 = code > tmp$ret$3; + } + if (tmp_0) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('Invalid Char code: ' + code); + } + tmp$ret$4 = numberToChar(code); + tmp = tmp$ret$4; + } else { + tmp = a.get_kdzpvg_k$(index); + } + return tmp; + } + function isString(a) { + return typeof a === 'string'; + } + function charSequenceLength(a) { + var tmp; + if (isString(a)) { + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_0 = a; + tmp$ret$0 = this_0; + var this_1 = tmp$ret$0.length; + tmp$ret$1 = this_1; + tmp = tmp$ret$1; + } else { + tmp = a.get_length_g42xv3_k$(); + } + return tmp; + } + function arrayToString(array) { + return joinToString(array, ', ', '[', ']', VOID, VOID, arrayToString$lambda); + } + function contentEqualsInternal(_this__u8e3s4, other) { + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_0 = _this__u8e3s4; + tmp$ret$0 = this_0; + var a = tmp$ret$0; + var tmp$ret$1; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = other; + tmp$ret$1 = this_1; + var b = tmp$ret$1; + if (a === b) + return true; + if (((a == null ? true : b == null) ? true : !isArrayish(b)) ? true : a.length != b.length) + return false; + var inductionVariable = 0; + var last = a.length; + if (inductionVariable < last) + do { + var i = inductionVariable; + inductionVariable = inductionVariable + 1 | 0; + if (!equals(a[i], b[i])) { + return false; + } + } + while (inductionVariable < last); + return true; + } + function contentHashCodeInternal(_this__u8e3s4) { + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_0 = _this__u8e3s4; + tmp$ret$0 = this_0; + var a = tmp$ret$0; + if (a == null) + return 0; + var result = 1; + var inductionVariable = 0; + var last = a.length; + if (inductionVariable < last) + do { + var i = inductionVariable; + inductionVariable = inductionVariable + 1 | 0; + result = imul(result, 31) + hashCode(a[i]) | 0; + } + while (inductionVariable < last); + return result; + } + function arrayToString$lambda(it) { + return toString_1(it); + } + function compareTo_0(a, b) { + var tmp0_subject = typeof a; + var tmp; + switch (tmp0_subject) { + case 'number': + var tmp_0; + if (typeof b === 'number') { + tmp_0 = doubleCompareTo(a, b); + } else { + if (b instanceof Long) { + tmp_0 = doubleCompareTo(a, b.toDouble_ygsx0s_k$()); + } else { + tmp_0 = primitiveCompareTo(a, b); + } + } + + tmp = tmp_0; + break; + case 'string': + case 'boolean': + tmp = primitiveCompareTo(a, b); + break; + default: + tmp = compareToDoNotIntrinsicify(a, b); + break; + } + return tmp; + } + function doubleCompareTo(a, b) { + var tmp; + if (a < b) { + tmp = -1; + } else if (a > b) { + tmp = 1; + } else if (a === b) { + var tmp_0; + if (a !== 0) { + tmp_0 = 0; + } else { + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_0 = 1; + tmp$ret$0 = this_0; + var ia = tmp$ret$0 / a; + var tmp_1; + var tmp$ret$1; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = 1; + tmp$ret$1 = this_1; + if (ia === tmp$ret$1 / b) { + tmp_1 = 0; + } else { + if (ia < 0) { + tmp_1 = -1; + } else { + tmp_1 = 1; + } + } + tmp_0 = tmp_1; + } + tmp = tmp_0; + } else if (a !== a) { + tmp = b !== b ? 0 : 1; + } else { + tmp = -1; + } + return tmp; + } + function primitiveCompareTo(a, b) { + return a < b ? -1 : a > b ? 1 : 0; + } + function compareToDoNotIntrinsicify(a, b) { + return a.compareTo_hpufkf_k$(b); + } + function identityHashCode(obj) { + return getObjectHashCode(obj); + } + function getObjectHashCode(obj) { + var tmp$ret$0; + // Inline function 'kotlin.js.jsIn' call + var lhs = 'kotlinHashCodeValue$'; + var rhs = obj; + tmp$ret$0 = lhs in rhs; + if (!tmp$ret$0) { + var hash = calculateRandomHash(); + var descriptor = new Object(); + descriptor.value = hash; + descriptor.enumerable = false; + Object.defineProperty(obj, 'kotlinHashCodeValue$', descriptor); + } + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = obj['kotlinHashCodeValue$']; + tmp$ret$1 = this_0; + return tmp$ret$1; + } + function calculateRandomHash() { + var tmp$ret$0; + // Inline function 'kotlin.js.jsBitwiseOr' call + var lhs = Math.random() * 4.294967296E9; + var rhs = 0; + tmp$ret$0 = lhs | rhs; + return tmp$ret$0; + } + function toString_1(o) { + var tmp; + if (o == null) { + tmp = 'null'; + } else if (isArrayish(o)) { + tmp = '[...]'; + } else if (!(typeof o.toString === 'function')) { + tmp = anyToString(o); + } else { + var tmp$ret$0; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = o.toString(); + tmp$ret$0 = this_0; + tmp = tmp$ret$0; + } + return tmp; + } + function equals(obj1, obj2) { + if (obj1 == null) { + return obj2 == null; + } + if (obj2 == null) { + return false; + } + if (typeof obj1 === 'object' ? typeof obj1.equals === 'function' : false) { + return obj1.equals(obj2); + } + if (obj1 !== obj1) { + return obj2 !== obj2; + } + if (typeof obj1 === 'number' ? typeof obj2 === 'number' : false) { + var tmp; + if (obj1 === obj2) { + var tmp_0; + if (obj1 !== 0) { + tmp_0 = true; + } else { + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_0 = 1; + tmp$ret$0 = this_0; + var tmp_1 = tmp$ret$0 / obj1; + var tmp$ret$1; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = 1; + tmp$ret$1 = this_1; + tmp_0 = tmp_1 === tmp$ret$1 / obj2; + } + tmp = tmp_0; + } else { + tmp = false; + } + return tmp; + } + return obj1 === obj2; + } + function hashCode(obj) { + if (obj == null) + return 0; + var typeOf = typeof obj; + var tmp; + switch (typeOf) { + case 'object': + tmp = 'function' === typeof obj.hashCode ? obj.hashCode() : getObjectHashCode(obj); + break; + case 'function': + tmp = getObjectHashCode(obj); + break; + case 'number': + tmp = getNumberHashCode(obj); + break; + case 'boolean': + var tmp$ret$0; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = obj; + tmp$ret$0 = this_0; + + tmp = getBooleanHashCode(tmp$ret$0); + break; + case 'string': + tmp = getStringHashCode(String(obj)); + break; + case 'bigint': + tmp = getBigIntHashCode(obj); + break; + case 'symbol': + tmp = getSymbolHashCode(obj); + break; + default: + tmp = function () { + throw new Error('Unexpected typeof `' + typeOf + '`'); + return void 3; + }(); + break; + } + return tmp; + } + function anyToString(o) { + return Object.prototype.toString.call(o); + } + function getBooleanHashCode(value) { + return value ? 1231 : 1237; + } + function getStringHashCode(str) { + var hash = 0; + var length = str.length; + var inductionVariable = 0; + var last = length - 1 | 0; + if (inductionVariable <= last) + do { + var i = inductionVariable; + inductionVariable = inductionVariable + 1 | 0; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_0 = str; + tmp$ret$0 = this_0; + var code = tmp$ret$0.charCodeAt(i); + hash = imul(hash, 31) + code | 0; + } + while (!(i === last)); + return hash; + } + function getBigIntHashCode(value) { + var shiftNumber = BigInt(32); + var MASK = BigInt(4.294967295E9); + var bigNumber = value < 0 ? -value : value; + var hashCode = 0; + var signum = value < 0 ? -1 : 1; + while (bigNumber != 0) { + var tmp$ret$0; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = Number(bigNumber & MASK); + tmp$ret$0 = this_0; + var chunk = tmp$ret$0; + hashCode = imul(31, hashCode) + chunk | 0; + bigNumber = bigNumber >> shiftNumber; + } + return imul(hashCode, signum); + } + function getSymbolHashCode(value) { + var hashCodeMap = symbolIsSharable(value) ? getSymbolMap() : getSymbolWeakMap(); + var cachedHashCode = hashCodeMap.get(value); + if (cachedHashCode !== VOID) + return cachedHashCode; + var hash = calculateRandomHash(); + hashCodeMap.set(value, hash); + return hash; + } + function symbolIsSharable(symbol) { + return Symbol.keyFor(symbol) != VOID; + } + function getSymbolMap() { + if (symbolMap === VOID) { + symbolMap = new Map(); + } + return symbolMap; + } + function getSymbolWeakMap() { + if (symbolWeakMap === VOID) { + symbolWeakMap = new WeakMap(); + } + return symbolWeakMap; + } + var symbolMap; + var symbolWeakMap; + function unboxIntrinsic(x) { + var message = 'Should be lowered'; + throw IllegalStateException.new_kotlin_IllegalStateException_w47ei6_k$(toString_1(message)); + } + function captureStack(instance, constructorFunction) { + if (Error.captureStackTrace != null) { + Error.captureStackTrace(instance, constructorFunction); + } else { + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_0 = instance; + tmp$ret$0 = this_0; + tmp$ret$0.stack = (new Error()).stack; + } + } + function protoOf(constructor) { + return constructor.prototype; + } + function defineProp(obj, name, getter, setter) { + return Object.defineProperty(obj, name, {configurable: true, get: getter, set: setter}); + } + function createThis(ctor, box) { + var self_0 = Object.create(ctor.prototype); + boxApply(self_0, box); + return self_0; + } + function boxApply(self_0, box) { + if (box !== VOID) + Object.assign(self_0, box); + } + function setPropertiesToThrowableInstance(this_, message, cause) { + var errorInfo = calculateErrorInfo(Object.getPrototypeOf(this_)); + if ((errorInfo & 1) === 0) { + var tmp; + if (message == null) { + var tmp_0; + if (!(message === null)) { + var tmp0_safe_receiver = cause; + var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.toString(); + tmp_0 = tmp1_elvis_lhs == null ? VOID : tmp1_elvis_lhs; + } else { + tmp_0 = VOID; + } + tmp = tmp_0; + } else { + tmp = message; + } + this_.message = tmp; + } + if ((errorInfo & 2) === 0) { + this_.cause = cause; + } + this_.name = Object.getPrototypeOf(this_).constructor.name; + } + function ensureNotNull(v) { + var tmp; + if (v == null) { + THROW_NPE(); + } else { + tmp = v; + } + return tmp; + } + function THROW_NPE() { + throw NullPointerException.new_kotlin_NullPointerException_q6jd54_k$(); + } + function noWhenBranchMatchedException() { + throw NoWhenBranchMatchedException.new_kotlin_NoWhenBranchMatchedException_9ooqm1_k$(); + } + function THROW_CCE() { + throw ClassCastException.new_kotlin_ClassCastException_zhuhe1_k$(); + } + function throwUninitializedPropertyAccessException(name) { + throw UninitializedPropertyAccessException.new_kotlin_UninitializedPropertyAccessException_egi92l_k$('lateinit property ' + name + ' has not been initialized'); + } + function THROW_IAE(msg) { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$(msg); + } + function lazy(mode, initializer) { + return new UnsafeLazyImpl(initializer); + } + function lazy_0(initializer) { + return new UnsafeLazyImpl(initializer); + } + function fillFrom(src, dst) { + var srcLen = src.length; + var dstLen = dst.length; + var index = 0; + var tmp$ret$0; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = dst; + tmp$ret$0 = this_0; + var arr = tmp$ret$0; + while (index < srcLen ? index < dstLen : false) { + var tmp = index; + var tmp0 = index; + index = tmp0 + 1 | 0; + arr[tmp] = src[tmp0]; + } + return dst; + } + function arrayCopyResize(source, newSize, defaultValue) { + var tmp$ret$0; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = source.slice(0, newSize); + tmp$ret$0 = this_0; + var result = tmp$ret$0; + // Inline function 'kotlin.copyArrayType' call + var from = source; + var to = result; + if (from.$type$ !== undefined) { + to.$type$ = from.$type$; + } + var index = source.length; + if (newSize > index) { + var tmp$ret$1; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = result; + tmp$ret$1 = this_1; + tmp$ret$1.length = newSize; + while (index < newSize) { + var tmp0 = index; + index = tmp0 + 1 | 0; + result[tmp0] = defaultValue; + } + } + return result; + } + var Companion_instance_3; + function Companion_getInstance_3() { + if (Companion_instance_3 === VOID) + new Companion_3(); + return Companion_instance_3; + } + function get_ZERO() { + _init_properties_longjs_kt__tqrzid(); + return ZERO; + } + var ZERO; + function get_ONE() { + _init_properties_longjs_kt__tqrzid(); + return ONE; + } + var ONE; + function get_NEG_ONE() { + _init_properties_longjs_kt__tqrzid(); + return NEG_ONE; + } + var NEG_ONE; + function get_MAX_VALUE() { + _init_properties_longjs_kt__tqrzid(); + return MAX_VALUE; + } + var MAX_VALUE; + function get_MIN_VALUE() { + _init_properties_longjs_kt__tqrzid(); + return MIN_VALUE; + } + var MIN_VALUE; + function get_TWO_PWR_24_() { + _init_properties_longjs_kt__tqrzid(); + return TWO_PWR_24_; + } + var TWO_PWR_24_; + function compare(_this__u8e3s4, other) { + _init_properties_longjs_kt__tqrzid(); + if (equalsLong(_this__u8e3s4, other)) { + return 0; + } + var thisNeg = isNegative(_this__u8e3s4); + var otherNeg = isNegative(other); + return (thisNeg ? !otherNeg : false) ? -1 : (!thisNeg ? otherNeg : false) ? 1 : isNegative(subtract(_this__u8e3s4, other)) ? -1 : 1; + } + function add(_this__u8e3s4, other) { + _init_properties_longjs_kt__tqrzid(); + var a48 = _this__u8e3s4.high_1 >>> 16 | 0; + var a32 = _this__u8e3s4.high_1 & 65535; + var a16 = _this__u8e3s4.low_1 >>> 16 | 0; + var a00 = _this__u8e3s4.low_1 & 65535; + var b48 = other.high_1 >>> 16 | 0; + var b32 = other.high_1 & 65535; + var b16 = other.low_1 >>> 16 | 0; + var b00 = other.low_1 & 65535; + var c48 = 0; + var c32 = 0; + var c16 = 0; + var c00 = 0; + c00 = c00 + (a00 + b00 | 0) | 0; + c16 = c16 + (c00 >>> 16 | 0) | 0; + c00 = c00 & 65535; + c16 = c16 + (a16 + b16 | 0) | 0; + c32 = c32 + (c16 >>> 16 | 0) | 0; + c16 = c16 & 65535; + c32 = c32 + (a32 + b32 | 0) | 0; + c48 = c48 + (c32 >>> 16 | 0) | 0; + c32 = c32 & 65535; + c48 = c48 + (a48 + b48 | 0) | 0; + c48 = c48 & 65535; + return new Long(c16 << 16 | c00, c48 << 16 | c32); + } + function subtract(_this__u8e3s4, other) { + _init_properties_longjs_kt__tqrzid(); + return add(_this__u8e3s4, other.unaryMinus_6uz0qp_k$()); + } + function multiply(_this__u8e3s4, other) { + _init_properties_longjs_kt__tqrzid(); + if (isZero(_this__u8e3s4)) { + return get_ZERO(); + } else if (isZero(other)) { + return get_ZERO(); + } + if (equalsLong(_this__u8e3s4, get_MIN_VALUE())) { + return isOdd(other) ? get_MIN_VALUE() : get_ZERO(); + } else if (equalsLong(other, get_MIN_VALUE())) { + return isOdd(_this__u8e3s4) ? get_MIN_VALUE() : get_ZERO(); + } + if (isNegative(_this__u8e3s4)) { + var tmp; + if (isNegative(other)) { + tmp = multiply(negate(_this__u8e3s4), negate(other)); + } else { + tmp = negate(multiply(negate(_this__u8e3s4), other)); + } + return tmp; + } else if (isNegative(other)) { + return negate(multiply(_this__u8e3s4, negate(other))); + } + if (lessThan(_this__u8e3s4, get_TWO_PWR_24_()) ? lessThan(other, get_TWO_PWR_24_()) : false) { + return fromNumber(toNumber(_this__u8e3s4) * toNumber(other)); + } + var a48 = _this__u8e3s4.high_1 >>> 16 | 0; + var a32 = _this__u8e3s4.high_1 & 65535; + var a16 = _this__u8e3s4.low_1 >>> 16 | 0; + var a00 = _this__u8e3s4.low_1 & 65535; + var b48 = other.high_1 >>> 16 | 0; + var b32 = other.high_1 & 65535; + var b16 = other.low_1 >>> 16 | 0; + var b00 = other.low_1 & 65535; + var c48 = 0; + var c32 = 0; + var c16 = 0; + var c00 = 0; + c00 = c00 + imul(a00, b00) | 0; + c16 = c16 + (c00 >>> 16 | 0) | 0; + c00 = c00 & 65535; + c16 = c16 + imul(a16, b00) | 0; + c32 = c32 + (c16 >>> 16 | 0) | 0; + c16 = c16 & 65535; + c16 = c16 + imul(a00, b16) | 0; + c32 = c32 + (c16 >>> 16 | 0) | 0; + c16 = c16 & 65535; + c32 = c32 + imul(a32, b00) | 0; + c48 = c48 + (c32 >>> 16 | 0) | 0; + c32 = c32 & 65535; + c32 = c32 + imul(a16, b16) | 0; + c48 = c48 + (c32 >>> 16 | 0) | 0; + c32 = c32 & 65535; + c32 = c32 + imul(a00, b32) | 0; + c48 = c48 + (c32 >>> 16 | 0) | 0; + c32 = c32 & 65535; + c48 = c48 + (((imul(a48, b00) + imul(a32, b16) | 0) + imul(a16, b32) | 0) + imul(a00, b48) | 0) | 0; + c48 = c48 & 65535; + return new Long(c16 << 16 | c00, c48 << 16 | c32); + } + function divide(_this__u8e3s4, other) { + _init_properties_longjs_kt__tqrzid(); + if (isZero(other)) { + throw Exception.new_kotlin_Exception_hsqbop_k$('division by zero'); + } else if (isZero(_this__u8e3s4)) { + return get_ZERO(); + } + if (equalsLong(_this__u8e3s4, get_MIN_VALUE())) { + if (equalsLong(other, get_ONE()) ? true : equalsLong(other, get_NEG_ONE())) { + return get_MIN_VALUE(); + } else if (equalsLong(other, get_MIN_VALUE())) { + return get_ONE(); + } else { + var halfThis = shiftRight(_this__u8e3s4, 1); + var approx = shiftLeft(halfThis.div_et91rl_k$(other), 1); + if (equalsLong(approx, get_ZERO())) { + return isNegative(other) ? get_ONE() : get_NEG_ONE(); + } else { + var rem = subtract(_this__u8e3s4, multiply(other, approx)); + return add(approx, rem.div_et91rl_k$(other)); + } + } + } else if (equalsLong(other, get_MIN_VALUE())) { + return get_ZERO(); + } + if (isNegative(_this__u8e3s4)) { + var tmp; + if (isNegative(other)) { + tmp = negate(_this__u8e3s4).div_et91rl_k$(negate(other)); + } else { + tmp = negate(negate(_this__u8e3s4).div_et91rl_k$(other)); + } + return tmp; + } else if (isNegative(other)) { + return negate(_this__u8e3s4.div_et91rl_k$(negate(other))); + } + var res = get_ZERO(); + var rem_0 = _this__u8e3s4; + while (greaterThanOrEqual(rem_0, other)) { + var approxDouble = toNumber(rem_0) / toNumber(other); + var approx2 = Math.max(1.0, Math.floor(approxDouble)); + var log2 = Math.ceil(Math.log(approx2) / Math.LN2); + var delta = log2 <= 48.0 ? 1.0 : Math.pow(2.0, log2 - 48); + var approxRes = fromNumber(approx2); + var approxRem = multiply(approxRes, other); + while (isNegative(approxRem) ? true : greaterThan(approxRem, rem_0)) { + approx2 = approx2 - delta; + approxRes = fromNumber(approx2); + approxRem = multiply(approxRes, other); + } + if (isZero(approxRes)) { + approxRes = get_ONE(); + } + res = add(res, approxRes); + rem_0 = subtract(rem_0, approxRem); + } + return res; + } + function shiftLeft(_this__u8e3s4, numBits) { + _init_properties_longjs_kt__tqrzid(); + var numBits_0 = numBits & 63; + if (numBits_0 === 0) { + return _this__u8e3s4; + } else { + if (numBits_0 < 32) { + return new Long(_this__u8e3s4.low_1 << numBits_0, _this__u8e3s4.high_1 << numBits_0 | (_this__u8e3s4.low_1 >>> (32 - numBits_0 | 0) | 0)); + } else { + return new Long(0, _this__u8e3s4.low_1 << (numBits_0 - 32 | 0)); + } + } + } + function shiftRight(_this__u8e3s4, numBits) { + _init_properties_longjs_kt__tqrzid(); + var numBits_0 = numBits & 63; + if (numBits_0 === 0) { + return _this__u8e3s4; + } else { + if (numBits_0 < 32) { + return new Long(_this__u8e3s4.low_1 >>> numBits_0 | 0 | _this__u8e3s4.high_1 << (32 - numBits_0 | 0), _this__u8e3s4.high_1 >> numBits_0); + } else { + return new Long(_this__u8e3s4.high_1 >> (numBits_0 - 32 | 0), _this__u8e3s4.high_1 >= 0 ? 0 : -1); + } + } + } + function shiftRightUnsigned(_this__u8e3s4, numBits) { + _init_properties_longjs_kt__tqrzid(); + var numBits_0 = numBits & 63; + if (numBits_0 === 0) { + return _this__u8e3s4; + } else { + if (numBits_0 < 32) { + return new Long(_this__u8e3s4.low_1 >>> numBits_0 | 0 | _this__u8e3s4.high_1 << (32 - numBits_0 | 0), _this__u8e3s4.high_1 >>> numBits_0 | 0); + } else { + var tmp; + if (numBits_0 === 32) { + tmp = new Long(_this__u8e3s4.high_1, 0); + } else { + tmp = new Long(_this__u8e3s4.high_1 >>> (numBits_0 - 32 | 0) | 0, 0); + } + return tmp; + } + } + } + function toNumber(_this__u8e3s4) { + _init_properties_longjs_kt__tqrzid(); + return _this__u8e3s4.high_1 * 4.294967296E9 + getLowBitsUnsigned(_this__u8e3s4); + } + function equalsLong(_this__u8e3s4, other) { + _init_properties_longjs_kt__tqrzid(); + return _this__u8e3s4.high_1 === other.high_1 ? _this__u8e3s4.low_1 === other.low_1 : false; + } + function hashCode_0(l) { + _init_properties_longjs_kt__tqrzid(); + return l.low_1 ^ l.high_1; + } + function toStringImpl(_this__u8e3s4, radix) { + _init_properties_longjs_kt__tqrzid(); + if (radix < 2 ? true : 36 < radix) { + throw Exception.new_kotlin_Exception_hsqbop_k$('radix out of range: ' + radix); + } + if (isZero(_this__u8e3s4)) { + return '0'; + } + if (isNegative(_this__u8e3s4)) { + if (equalsLong(_this__u8e3s4, get_MIN_VALUE())) { + var radixLong = fromInt(radix); + var div = _this__u8e3s4.div_et91rl_k$(radixLong); + var rem = subtract(multiply(div, radixLong), _this__u8e3s4).toInt_1tsl84_k$(); + var tmp = toStringImpl(div, radix); + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_0 = rem; + tmp$ret$0 = this_0; + var this_1 = tmp$ret$0.toString(radix); + tmp$ret$1 = this_1; + return tmp + tmp$ret$1; + } else { + return '-' + toStringImpl(negate(_this__u8e3s4), radix); + } + } + var digitsPerTime = radix === 2 ? 31 : radix <= 10 ? 9 : radix <= 21 ? 7 : radix <= 35 ? 6 : 5; + var radixToPower = fromNumber(Math.pow(radix, digitsPerTime)); + var rem_0 = _this__u8e3s4; + var result = ''; + while (true) { + var remDiv = rem_0.div_et91rl_k$(radixToPower); + var intval = subtract(rem_0, multiply(remDiv, radixToPower)).toInt_1tsl84_k$(); + var tmp$ret$3; + // Inline function 'kotlin.js.unsafeCast' call + var tmp$ret$2; + // Inline function 'kotlin.js.asDynamic' call + var this_2 = intval; + tmp$ret$2 = this_2; + var this_3 = tmp$ret$2.toString(radix); + tmp$ret$3 = this_3; + var digits = tmp$ret$3; + rem_0 = remDiv; + if (isZero(rem_0)) { + return digits + result; + } else { + while (digits.length < digitsPerTime) { + digits = '0' + digits; + } + result = digits + result; + } + } + } + function fromInt(value) { + _init_properties_longjs_kt__tqrzid(); + return new Long(value, value < 0 ? -1 : 0); + } + function isNegative(_this__u8e3s4) { + _init_properties_longjs_kt__tqrzid(); + return _this__u8e3s4.high_1 < 0; + } + function isZero(_this__u8e3s4) { + _init_properties_longjs_kt__tqrzid(); + return _this__u8e3s4.high_1 === 0 ? _this__u8e3s4.low_1 === 0 : false; + } + function isOdd(_this__u8e3s4) { + _init_properties_longjs_kt__tqrzid(); + return (_this__u8e3s4.low_1 & 1) === 1; + } + function negate(_this__u8e3s4) { + _init_properties_longjs_kt__tqrzid(); + return _this__u8e3s4.unaryMinus_6uz0qp_k$(); + } + function lessThan(_this__u8e3s4, other) { + _init_properties_longjs_kt__tqrzid(); + return compare(_this__u8e3s4, other) < 0; + } + function fromNumber(value) { + _init_properties_longjs_kt__tqrzid(); + if (isNaN_0(value)) { + return get_ZERO(); + } else if (value <= -9.223372036854776E18) { + return get_MIN_VALUE(); + } else if (value + 1 >= 9.223372036854776E18) { + return get_MAX_VALUE(); + } else if (value < 0.0) { + return negate(fromNumber(-value)); + } else { + var twoPwr32 = 4.294967296E9; + var tmp$ret$0; + // Inline function 'kotlin.js.jsBitwiseOr' call + var lhs = value % twoPwr32; + var rhs = 0; + tmp$ret$0 = lhs | rhs; + var tmp = tmp$ret$0; + var tmp$ret$1; + // Inline function 'kotlin.js.jsBitwiseOr' call + var lhs_0 = value / twoPwr32; + var rhs_0 = 0; + tmp$ret$1 = lhs_0 | rhs_0; + return new Long(tmp, tmp$ret$1); + } + } + function greaterThan(_this__u8e3s4, other) { + _init_properties_longjs_kt__tqrzid(); + return compare(_this__u8e3s4, other) > 0; + } + function greaterThanOrEqual(_this__u8e3s4, other) { + _init_properties_longjs_kt__tqrzid(); + return compare(_this__u8e3s4, other) >= 0; + } + function getLowBitsUnsigned(_this__u8e3s4) { + _init_properties_longjs_kt__tqrzid(); + return _this__u8e3s4.low_1 >= 0 ? _this__u8e3s4.low_1 : 4.294967296E9 + _this__u8e3s4.low_1; + } + var properties_initialized_longjs_kt_5aju7t; + function _init_properties_longjs_kt__tqrzid() { + if (properties_initialized_longjs_kt_5aju7t) { + } else { + properties_initialized_longjs_kt_5aju7t = true; + ZERO = fromInt(0); + ONE = fromInt(1); + NEG_ONE = fromInt(-1); + MAX_VALUE = new Long(-1, 2147483647); + MIN_VALUE = new Long(0, -2147483648); + TWO_PWR_24_ = fromInt(16777216); + } + } + function classMeta(name, defaultConstructor, associatedObjectKey, associatedObjects, suspendArity) { + return createMetadata('class', name, defaultConstructor, associatedObjectKey, associatedObjects, suspendArity, null); + } + function createMetadata(kind, name, defaultConstructor, associatedObjectKey, associatedObjects, suspendArity, iid) { + var undef = VOID; + return {kind: kind, simpleName: name, associatedObjectKey: associatedObjectKey, associatedObjects: associatedObjects, suspendArity: suspendArity, $kClass$: undef, defaultConstructor: defaultConstructor, iid: iid}; + } + function setMetadataFor(ctor, name, metadataConstructor, parent, interfaces, defaultConstructor, associatedObjectKey, associatedObjects, suspendArity) { + if (!(parent == null)) { + ctor.prototype = Object.create(parent.prototype); + ctor.prototype.constructor = ctor; + } + var tmp0_elvis_lhs = suspendArity; + var metadata = metadataConstructor(name, defaultConstructor, associatedObjectKey, associatedObjects, tmp0_elvis_lhs == null ? [] : tmp0_elvis_lhs); + ctor.$metadata$ = metadata; + if (!(interfaces == null)) { + var receiver = !(metadata.iid == null) ? ctor : ctor.prototype; + receiver.$imask$ = implement(interfaces); + } + } + function interfaceMeta(name, defaultConstructor, associatedObjectKey, associatedObjects, suspendArity) { + return createMetadata('interface', name, defaultConstructor, associatedObjectKey, associatedObjects, suspendArity, generateInterfaceId()); + } + function generateInterfaceId() { + if (iid === VOID) { + iid = 0; + } + var tmp$ret$0; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = iid; + tmp$ret$0 = this_0; + iid = tmp$ret$0 + 1 | 0; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_1 = iid; + tmp$ret$1 = this_1; + return tmp$ret$1; + } + var iid; + function objectMeta(name, defaultConstructor, associatedObjectKey, associatedObjects, suspendArity) { + return createMetadata('object', name, defaultConstructor, associatedObjectKey, associatedObjects, suspendArity, null); + } + function primitiveArrayConcat(args) { + var size_local = 0; + var inductionVariable = 0; + var last = args.length - 1 | 0; + if (inductionVariable <= last) + do { + var i = inductionVariable; + inductionVariable = inductionVariable + 1 | 0; + var tmp = size_local; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = args[i]; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + size_local = tmp + tmp$ret$1.length | 0; + } + while (!(i === last)); + var a = args[0]; + var tmp$ret$2; + // Inline function 'kotlin.js.unsafeCast' call + var this_2 = new a.constructor(size_local); + tmp$ret$2 = this_2; + var result = tmp$ret$2; + var tmp$ret$3; + // Inline function 'kotlin.js.asDynamic' call + var this_3 = a; + tmp$ret$3 = this_3; + if (tmp$ret$3.$type$ != null) { + var tmp$ret$5; + // Inline function 'withType' call + var tmp$ret$4; + // Inline function 'kotlin.js.asDynamic' call + var this_4 = a; + tmp$ret$4 = this_4; + var type = tmp$ret$4.$type$; + var array = result; + array.$type$ = type; + tmp$ret$5 = array; + } + size_local = 0; + var inductionVariable_0 = 0; + var last_0 = args.length - 1 | 0; + if (inductionVariable_0 <= last_0) + do { + var i_0 = inductionVariable_0; + inductionVariable_0 = inductionVariable_0 + 1 | 0; + var tmp$ret$7; + // Inline function 'kotlin.js.unsafeCast' call + var this_5 = args[i_0]; + var tmp$ret$6; + // Inline function 'kotlin.js.asDynamic' call + var this_6 = this_5; + tmp$ret$6 = this_6; + tmp$ret$7 = tmp$ret$6; + var arr = tmp$ret$7; + var inductionVariable_1 = 0; + var last_1 = arr.length - 1 | 0; + if (inductionVariable_1 <= last_1) + do { + var j = inductionVariable_1; + inductionVariable_1 = inductionVariable_1 + 1 | 0; + var tmp3 = size_local; + size_local = tmp3 + 1 | 0; + result[tmp3] = arr[j]; + Unit_instance; + } + while (!(j === last_1)); + } + while (!(i_0 === last_0)); + var tmp$ret$9; + // Inline function 'kotlin.js.unsafeCast' call + var this_7 = result; + var tmp$ret$8; + // Inline function 'kotlin.js.asDynamic' call + var this_8 = this_7; + tmp$ret$8 = this_8; + tmp$ret$9 = tmp$ret$8; + return tmp$ret$9; + } + function toByte(a) { + var tmp$ret$0; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = a << 24 >> 24; + tmp$ret$0 = this_0; + return tmp$ret$0; + } + function numberToInt(a) { + var tmp; + if (a instanceof Long) { + tmp = a.toInt_1tsl84_k$(); + } else { + tmp = doubleToInt(a); + } + return tmp; + } + function doubleToInt(a) { + var tmp; + if (a > 2.147483647E9) { + tmp = 2147483647; + } else if (a < -2.147483648E9) { + tmp = -2147483648; + } else { + var tmp$ret$0; + // Inline function 'kotlin.js.jsBitwiseOr' call + var lhs = a; + var rhs = 0; + tmp$ret$0 = lhs | rhs; + tmp = tmp$ret$0; + } + return tmp; + } + function toShort(a) { + var tmp$ret$0; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = a << 16 >> 16; + tmp$ret$0 = this_0; + return tmp$ret$0; + } + function numberToChar(a) { + var tmp$ret$0; + // Inline function 'kotlin.toUShort' call + var this_0 = numberToInt(a); + tmp$ret$0 = _UShort___init__impl__jigrne(toShort(this_0)); + return _Char___init__impl__6a9atx_0(tmp$ret$0); + } + function toLong_0(a) { + return fromInt(a); + } + function numberRangeToNumber(start, endInclusive) { + return new IntRange(start, endInclusive); + } + function get_propertyRefClassMetadataCache() { + _init_properties_reflectRuntime_kt__5r4uu3(); + return propertyRefClassMetadataCache; + } + var propertyRefClassMetadataCache; + function metadataObject() { + _init_properties_reflectRuntime_kt__5r4uu3(); + return classMeta(VOID, VOID, VOID, VOID, VOID); + } + function getPropertyCallableRef(name, paramCount, superType, getter, setter) { + _init_properties_reflectRuntime_kt__5r4uu3(); + getter.get = getter; + getter.set = setter; + getter.callableName = name; + var tmp$ret$0; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = getPropertyRefClass(getter, getKPropMetadata(paramCount, setter), getInterfaceMaskFor(getter, superType)); + tmp$ret$0 = this_0; + return tmp$ret$0; + } + function getPropertyRefClass(obj, metadata, imask) { + _init_properties_reflectRuntime_kt__5r4uu3(); + obj.$metadata$ = metadata; + obj.constructor = obj; + obj.$imask$ = imask; + return obj; + } + function getKPropMetadata(paramCount, setter) { + _init_properties_reflectRuntime_kt__5r4uu3(); + return get_propertyRefClassMetadataCache()[paramCount][setter == null ? 0 : 1]; + } + function getInterfaceMaskFor(obj, superType) { + _init_properties_reflectRuntime_kt__5r4uu3(); + var tmp0_elvis_lhs = obj.$imask$; + var tmp; + if (tmp0_elvis_lhs == null) { + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [superType]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + tmp = implement(tmp$ret$2); + } else { + tmp = tmp0_elvis_lhs; + } + return tmp; + } + var properties_initialized_reflectRuntime_kt_inkhwd; + function _init_properties_reflectRuntime_kt__5r4uu3() { + if (properties_initialized_reflectRuntime_kt_inkhwd) { + } else { + properties_initialized_reflectRuntime_kt_inkhwd = true; + var tmp$ret$11; + // Inline function 'kotlin.arrayOf' call + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = [metadataObject(), metadataObject()]; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + var tmp = tmp$ret$2; + var tmp$ret$5; + // Inline function 'kotlin.arrayOf' call + var elements_0 = [metadataObject(), metadataObject()]; + var tmp$ret$4; + // Inline function 'kotlin.js.unsafeCast' call + var this_2 = elements_0; + var tmp$ret$3; + // Inline function 'kotlin.js.asDynamic' call + var this_3 = this_2; + tmp$ret$3 = this_3; + tmp$ret$4 = tmp$ret$3; + tmp$ret$5 = tmp$ret$4; + var tmp_0 = tmp$ret$5; + var tmp$ret$8; + // Inline function 'kotlin.arrayOf' call + var elements_1 = [metadataObject(), metadataObject()]; + var tmp$ret$7; + // Inline function 'kotlin.js.unsafeCast' call + var this_4 = elements_1; + var tmp$ret$6; + // Inline function 'kotlin.js.asDynamic' call + var this_5 = this_4; + tmp$ret$6 = this_5; + tmp$ret$7 = tmp$ret$6; + tmp$ret$8 = tmp$ret$7; + var elements_2 = [tmp, tmp_0, tmp$ret$8]; + var tmp$ret$10; + // Inline function 'kotlin.js.unsafeCast' call + var this_6 = elements_2; + var tmp$ret$9; + // Inline function 'kotlin.js.asDynamic' call + var this_7 = this_6; + tmp$ret$9 = this_7; + tmp$ret$10 = tmp$ret$9; + tmp$ret$11 = tmp$ret$10; + propertyRefClassMetadataCache = tmp$ret$11; + } + } + function isArrayish(o) { + return isJsArray(o) ? true : isView(o); + } + function isJsArray(obj) { + var tmp$ret$0; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = Array.isArray(obj); + tmp$ret$0 = this_0; + return tmp$ret$0; + } + function isInterface(obj, iface) { + return isInterfaceImpl(obj, iface.$metadata$.iid); + } + function isInterfaceImpl(obj, iface) { + var tmp$ret$0; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = obj.$imask$; + tmp$ret$0 = this_0; + var tmp0_elvis_lhs = tmp$ret$0; + var tmp; + if (tmp0_elvis_lhs == null) { + return false; + } else { + tmp = tmp0_elvis_lhs; + } + var mask = tmp; + return isBitSet(mask, iface); + } + function isArray(obj) { + var tmp; + if (isJsArray(obj)) { + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_0 = obj; + tmp$ret$0 = this_0; + tmp = !tmp$ret$0.$type$; + } else { + tmp = false; + } + return tmp; + } + function isNumber(a) { + var tmp; + if (typeof a === 'number') { + tmp = true; + } else { + tmp = a instanceof Long; + } + return tmp; + } + function isCharSequence(value) { + return typeof value === 'string' ? true : isInterface(value, CharSequence); + } + function isBooleanArray(a) { + return isJsArray(a) ? a.$type$ === 'BooleanArray' : false; + } + function isByteArray(a) { + var tmp$ret$0; + // Inline function 'kotlin.js.jsInstanceOf' call + var obj = a; + var jsClass = Int8Array; + tmp$ret$0 = obj instanceof jsClass; + return tmp$ret$0; + } + function isShortArray(a) { + var tmp$ret$0; + // Inline function 'kotlin.js.jsInstanceOf' call + var obj = a; + var jsClass = Int16Array; + tmp$ret$0 = obj instanceof jsClass; + return tmp$ret$0; + } + function isCharArray(a) { + var tmp; + var tmp$ret$0; + // Inline function 'kotlin.js.jsInstanceOf' call + var obj = a; + var jsClass = Uint16Array; + tmp$ret$0 = obj instanceof jsClass; + if (tmp$ret$0) { + tmp = a.$type$ === 'CharArray'; + } else { + tmp = false; + } + return tmp; + } + function isIntArray(a) { + var tmp$ret$0; + // Inline function 'kotlin.js.jsInstanceOf' call + var obj = a; + var jsClass = Int32Array; + tmp$ret$0 = obj instanceof jsClass; + return tmp$ret$0; + } + function isFloatArray(a) { + var tmp$ret$0; + // Inline function 'kotlin.js.jsInstanceOf' call + var obj = a; + var jsClass = Float32Array; + tmp$ret$0 = obj instanceof jsClass; + return tmp$ret$0; + } + function isLongArray(a) { + return isJsArray(a) ? a.$type$ === 'LongArray' : false; + } + function isDoubleArray(a) { + var tmp$ret$0; + // Inline function 'kotlin.js.jsInstanceOf' call + var obj = a; + var jsClass = Float64Array; + tmp$ret$0 = obj instanceof jsClass; + return tmp$ret$0; + } + function calculateErrorInfo(proto) { + var tmp0_safe_receiver = proto.constructor; + var metadata = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.$metadata$; + var tmp1_safe_receiver = metadata; + var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.errorInfo; + if (tmp2_safe_receiver == null) + null; + else { + var tmp$ret$0; + // Inline function 'kotlin.let' call + var this_0 = tmp2_safe_receiver; + // Inline function 'kotlin.contracts.contract' call + var it = this_0; + return it; + } + Unit_instance; + var result = 0; + if (hasProp(proto, 'message')) + result = result | 1; + if (hasProp(proto, 'cause')) + result = result | 2; + if (!(result === 3)) { + var parentProto = getPrototypeOf(proto); + if (parentProto != Error.prototype) { + result = result | calculateErrorInfo(parentProto); + } + } + if (!(metadata == null)) { + metadata.errorInfo = result; + Unit_instance; + } + return result; + } + function hasProp(proto, propName) { + return proto.hasOwnProperty(propName); + } + function getPrototypeOf(obj) { + return Object.getPrototypeOf(obj); + } + function get_VOID() { + _init_properties_void_kt__3zg9as(); + return VOID; + } + var VOID; + var properties_initialized_void_kt_e4ret2; + function _init_properties_void_kt__3zg9as() { + if (properties_initialized_void_kt_e4ret2) { + } else { + properties_initialized_void_kt_e4ret2 = true; + VOID = void 0; + } + } + function fill(_this__u8e3s4, element, fromIndex, toIndex) { + fromIndex = fromIndex === VOID ? 0 : fromIndex; + toIndex = toIndex === VOID ? _this__u8e3s4.length : toIndex; + Companion_instance_4.checkRangeIndexes_a38xj7_k$(fromIndex, toIndex, _this__u8e3s4.length); + // Inline function 'kotlin.js.nativeFill' call + var this_0 = _this__u8e3s4; + var element_0 = element; + var fromIndex_0 = fromIndex; + var toIndex_0 = toIndex; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$0.fill(element_0, fromIndex_0, toIndex_0); + } + function asList(_this__u8e3s4) { + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = _this__u8e3s4; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + return ArrayList.new_kotlin_collections_ArrayList_ny19rj_k$(tmp$ret$1); + } + function copyOf(_this__u8e3s4, newSize) { + // Inline function 'kotlin.require' call + var value = newSize >= 0; + // Inline function 'kotlin.contracts.contract' call + if (!value) { + var tmp$ret$0; + // Inline function 'kotlin.collections.copyOf.' call + tmp$ret$0 = 'Invalid new array size: ' + newSize + '.'; + var message = tmp$ret$0; + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$(toString_1(message)); + } + var tmp$ret$1; + // Inline function 'withType' call + var type = 'LongArray'; + var array = arrayCopyResize(_this__u8e3s4, newSize, new Long(0, 0)); + array.$type$ = type; + tmp$ret$1 = array; + return tmp$ret$1; + } + function copyOf_0(_this__u8e3s4, newSize) { + // Inline function 'kotlin.require' call + var value = newSize >= 0; + // Inline function 'kotlin.contracts.contract' call + if (!value) { + var tmp$ret$0; + // Inline function 'kotlin.collections.copyOf.' call + tmp$ret$0 = 'Invalid new array size: ' + newSize + '.'; + var message = tmp$ret$0; + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$(toString_1(message)); + } + return fillFrom(_this__u8e3s4, new Int32Array(newSize)); + } + function copyOf_1(_this__u8e3s4, newSize) { + // Inline function 'kotlin.require' call + var value = newSize >= 0; + // Inline function 'kotlin.contracts.contract' call + if (!value) { + var tmp$ret$0; + // Inline function 'kotlin.collections.copyOf.' call + tmp$ret$0 = 'Invalid new array size: ' + newSize + '.'; + var message = tmp$ret$0; + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$(toString_1(message)); + } + return fillFrom(_this__u8e3s4, new Int8Array(newSize)); + } + function contentEquals_0(_this__u8e3s4, other) { + return contentEqualsInternal(_this__u8e3s4, other); + } + function contentHashCode(_this__u8e3s4) { + return contentHashCodeInternal(_this__u8e3s4); + } + function copyOf_2(_this__u8e3s4, newSize) { + // Inline function 'kotlin.require' call + var value = newSize >= 0; + // Inline function 'kotlin.contracts.contract' call + if (!value) { + var tmp$ret$0; + // Inline function 'kotlin.collections.copyOf.' call + tmp$ret$0 = 'Invalid new array size: ' + newSize + '.'; + var message = tmp$ret$0; + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$(toString_1(message)); + } + return arrayCopyResize(_this__u8e3s4, newSize, null); + } + function digitToIntImpl(_this__u8e3s4) { + var tmp$ret$0; + // Inline function 'kotlin.code' call + var this_0 = _this__u8e3s4; + tmp$ret$0 = Char__toInt_impl_vasixd(this_0); + var ch = tmp$ret$0; + var index = binarySearchRange(Digit_getInstance().rangeStart_1, ch); + var diff = ch - Digit_getInstance().rangeStart_1[index] | 0; + return diff < 10 ? diff : -1; + } + function binarySearchRange(array, needle) { + var bottom = 0; + var top = array.length - 1 | 0; + var middle = -1; + var value = 0; + while (bottom <= top) { + middle = (bottom + top | 0) / 2 | 0; + value = array[middle]; + if (needle > value) + bottom = middle + 1 | 0; + else if (needle === value) + return middle; + else + top = middle - 1 | 0; + } + return middle - (needle < value ? 1 : 0) | 0; + } + var Digit_instance; + function Digit_getInstance() { + if (Digit_instance === VOID) + new Digit(); + return Digit_instance; + } + function isWhitespaceImpl(_this__u8e3s4) { + var tmp$ret$0; + // Inline function 'kotlin.code' call + var this_0 = _this__u8e3s4; + tmp$ret$0 = Char__toInt_impl_vasixd(this_0); + var ch = tmp$ret$0; + return (((9 <= ch ? ch <= 13 : false) ? true : 28 <= ch ? ch <= 32 : false) ? true : ch === 160) ? true : ch > 4096 ? (((((ch === 5760 ? true : 8192 <= ch ? ch <= 8202 : false) ? true : ch === 8232) ? true : ch === 8233) ? true : ch === 8239) ? true : ch === 8287) ? true : ch === 12288 : false; + } + function init_kotlin_Exception(_this__u8e3s4) { + captureStack(_this__u8e3s4, _this__u8e3s4.$throwableCtor_1); + } + function init_kotlin_IllegalArgumentException(_this__u8e3s4) { + captureStack(_this__u8e3s4, _this__u8e3s4.$throwableCtor_3); + } + function init_kotlin_IndexOutOfBoundsException(_this__u8e3s4) { + captureStack(_this__u8e3s4, _this__u8e3s4.$throwableCtor_3); + } + function init_kotlin_IllegalStateException(_this__u8e3s4) { + captureStack(_this__u8e3s4, _this__u8e3s4.$throwableCtor_3); + } + function init_kotlin_UnsupportedOperationException(_this__u8e3s4) { + captureStack(_this__u8e3s4, _this__u8e3s4.$throwableCtor_3); + } + function init_kotlin_RuntimeException(_this__u8e3s4) { + captureStack(_this__u8e3s4, _this__u8e3s4.$throwableCtor_2); + } + function init_kotlin_NoSuchElementException(_this__u8e3s4) { + captureStack(_this__u8e3s4, _this__u8e3s4.$throwableCtor_3); + } + function init_kotlin_ConcurrentModificationException(_this__u8e3s4) { + captureStack(_this__u8e3s4, _this__u8e3s4.$throwableCtor_3); + } + function init_kotlin_NumberFormatException(_this__u8e3s4) { + captureStack(_this__u8e3s4, _this__u8e3s4.$throwableCtor_4); + } + function init_kotlin_ArithmeticException(_this__u8e3s4) { + captureStack(_this__u8e3s4, _this__u8e3s4.$throwableCtor_3); + } + function init_kotlin_NullPointerException(_this__u8e3s4) { + captureStack(_this__u8e3s4, _this__u8e3s4.$throwableCtor_3); + } + function init_kotlin_NoWhenBranchMatchedException(_this__u8e3s4) { + captureStack(_this__u8e3s4, _this__u8e3s4.$throwableCtor_3); + } + function init_kotlin_ClassCastException(_this__u8e3s4) { + captureStack(_this__u8e3s4, _this__u8e3s4.$throwableCtor_3); + } + function init_kotlin_UninitializedPropertyAccessException(_this__u8e3s4) { + captureStack(_this__u8e3s4, _this__u8e3s4.$throwableCtor_3); + } + function toRawBits(_this__u8e3s4) { + return floatToRawBits(_this__u8e3s4); + } + function toRawBits_0(_this__u8e3s4) { + return doubleToRawBits(_this__u8e3s4); + } + function AbstractCollection$toString$lambda(this$0) { + return function (it) { + return it === this$0 ? '(this Collection)' : toString_0(it); + }; + } + var Companion_instance_4; + function Companion_getInstance_4() { + return Companion_instance_4; + } + function toString_2($this, o) { + return o === $this ? '(this Map)' : toString_0(o); + } + function implFindEntry($this, key) { + var tmp$ret$1; + $l$block: { + // Inline function 'kotlin.collections.firstOrNull' call + var this_0 = $this.get_entries_p20ztl_k$(); + var tmp0_iterator = this_0.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'kotlin.collections.AbstractMap.implFindEntry.' call + var it = element; + tmp$ret$0 = equals(it.get_key_18j28a_k$(), key); + if (tmp$ret$0) { + tmp$ret$1 = element; + break $l$block; + } + } + tmp$ret$1 = null; + } + return tmp$ret$1; + } + var Companion_instance_5; + function Companion_getInstance_5() { + return Companion_instance_5; + } + function AbstractMap$toString$lambda(this$0) { + return function (it) { + return this$0.toString_shrnxz_k$(it); + }; + } + var Companion_instance_6; + function Companion_getInstance_6() { + return Companion_instance_6; + } + function collectionToArrayCommonImpl(collection) { + if (collection.isEmpty_y1axqb_k$()) { + var tmp$ret$0; + // Inline function 'kotlin.emptyArray' call + tmp$ret$0 = []; + return tmp$ret$0; + } + var tmp$ret$1; + // Inline function 'kotlin.arrayOfNulls' call + var size = collection.get_size_woubt6_k$(); + tmp$ret$1 = fillArrayVal(Array(size), null); + var destination = tmp$ret$1; + var iterator = collection.iterator_jk1svi_k$(); + var index = 0; + while (iterator.hasNext_bitz1p_k$()) { + var tmp0 = index; + index = tmp0 + 1 | 0; + destination[tmp0] = iterator.next_20eer_k$(); + Unit_instance; + } + return destination; + } + function listOf_0(elements) { + return elements.length > 0 ? asList(elements) : emptyList(); + } + function emptyList() { + return EmptyList_getInstance(); + } + var EmptyList_instance; + function EmptyList_getInstance() { + if (EmptyList_instance === VOID) + new EmptyList(); + return EmptyList_instance; + } + var EmptyIterator_instance; + function EmptyIterator_getInstance() { + return EmptyIterator_instance; + } + function arrayListOf(elements) { + return elements.length === 0 ? ArrayList.new_kotlin_collections_ArrayList_ony0vx_k$() : ArrayList.new_kotlin_collections_ArrayList_nk3udn_k$(new ArrayAsCollection(elements, true)); + } + function asCollection(_this__u8e3s4) { + return new ArrayAsCollection(_this__u8e3s4, false); + } + function throwIndexOverflow() { + throw ArithmeticException.new_kotlin_ArithmeticException_y2sjkx_k$('Index overflow has happened.'); + } + function collectionSizeOrDefault(_this__u8e3s4, default_0) { + var tmp; + if (isInterface(_this__u8e3s4, Collection)) { + tmp = _this__u8e3s4.get_size_woubt6_k$(); + } else { + tmp = default_0; + } + return tmp; + } + function getOrImplicitDefault(_this__u8e3s4, key) { + if (isInterface(_this__u8e3s4, MapWithDefault)) + return _this__u8e3s4.getOrImplicitDefault_figf1n_k$(key); + var tmp$ret$0; + $l$block: { + // Inline function 'kotlin.collections.getOrElseNullable' call + var this_0 = _this__u8e3s4; + var key_0 = key; + var value = this_0.get_wei43m_k$(key_0); + if (value == null ? !this_0.containsKey_aw81wo_k$(key_0) : false) { + throw NoSuchElementException.new_kotlin_NoSuchElementException_eborbh_k$('Key ' + key + ' is missing in the map.'); + } else { + tmp$ret$0 = (value == null ? true : !(value == null)) ? value : THROW_CCE(); + break $l$block; + } + } + return tmp$ret$0; + } + function emptyMap() { + var tmp = EmptyMap_getInstance(); + return isInterface(tmp, Map_0) ? tmp : THROW_CCE(); + } + function getValue(_this__u8e3s4, key) { + return getOrImplicitDefault(_this__u8e3s4, key); + } + function toMap(_this__u8e3s4) { + if (isInterface(_this__u8e3s4, Collection)) { + var tmp0_subject = _this__u8e3s4.get_size_woubt6_k$(); + var tmp; + switch (tmp0_subject) { + case 0: + tmp = emptyMap(); + break; + case 1: + var tmp_0; + if (isInterface(_this__u8e3s4, List)) { + tmp_0 = _this__u8e3s4.get_c1px32_k$(0); + } else { + tmp_0 = _this__u8e3s4.iterator_jk1svi_k$().next_20eer_k$(); + } + + tmp = mapOf(tmp_0); + break; + default: + tmp = toMap_0(_this__u8e3s4, LinkedHashMap.new_kotlin_collections_LinkedHashMap_31p40q_k$(mapCapacity(_this__u8e3s4.get_size_woubt6_k$()))); + break; + } + return tmp; + } + return optimizeReadOnlyMap(toMap_0(_this__u8e3s4, LinkedHashMap.new_kotlin_collections_LinkedHashMap_ga0any_k$())); + } + var EmptyMap_instance; + function EmptyMap_getInstance() { + if (EmptyMap_instance === VOID) + new EmptyMap(); + return EmptyMap_instance; + } + function toMap_0(_this__u8e3s4, destination) { + var tmp$ret$0; + // Inline function 'kotlin.apply' call + var this_0 = destination; + // Inline function 'kotlin.contracts.contract' call + // Inline function 'kotlin.collections.toMap.' call + var $this$apply = this_0; + putAll_0($this$apply, _this__u8e3s4); + Unit_instance; + tmp$ret$0 = this_0; + return tmp$ret$0; + } + function optimizeReadOnlyMap(_this__u8e3s4) { + var tmp0_subject = _this__u8e3s4.get_size_woubt6_k$(); + var tmp; + switch (tmp0_subject) { + case 0: + tmp = emptyMap(); + break; + case 1: + var tmp$ret$0; + // Inline function 'kotlin.collections.toSingletonMapOrSelf' call + var this_0 = _this__u8e3s4; + tmp$ret$0 = this_0; + + tmp = tmp$ret$0; + break; + default: + tmp = _this__u8e3s4; + break; + } + return tmp; + } + function putAll(_this__u8e3s4, pairs) { + var indexedObject = pairs; + var inductionVariable = 0; + var last = indexedObject.length; + while (inductionVariable < last) { + var tmp1_loop_parameter = indexedObject[inductionVariable]; + inductionVariable = inductionVariable + 1 | 0; + var key = tmp1_loop_parameter.component1_7eebsc_k$(); + var value = tmp1_loop_parameter.component2_7eebsb_k$(); + _this__u8e3s4.put_4fpzoq_k$(key, value); + Unit_instance; + } + } + function putAll_0(_this__u8e3s4, pairs) { + var tmp0_iterator = pairs.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var tmp1_loop_parameter = tmp0_iterator.next_20eer_k$(); + var key = tmp1_loop_parameter.component1_7eebsc_k$(); + var value = tmp1_loop_parameter.component2_7eebsb_k$(); + _this__u8e3s4.put_4fpzoq_k$(key, value); + Unit_instance; + } + } + function hashMapOf(pairs) { + var tmp$ret$0; + // Inline function 'kotlin.apply' call + var this_0 = HashMap.new_kotlin_collections_HashMap_5ewlp_k$(mapCapacity(pairs.length)); + // Inline function 'kotlin.contracts.contract' call + // Inline function 'kotlin.collections.hashMapOf.' call + var $this$apply = this_0; + putAll($this$apply, pairs); + Unit_instance; + tmp$ret$0 = this_0; + return tmp$ret$0; + } + var EmptySet_instance; + function EmptySet_getInstance() { + if (EmptySet_instance === VOID) + new EmptySet(); + return EmptySet_instance; + } + function getProgressionLastElement(start, end, step) { + var tmp; + if (step > 0) { + tmp = start >= end ? end : end - differenceModulo(end, start, step) | 0; + } else if (step < 0) { + tmp = start <= end ? end : end + differenceModulo(start, end, -step | 0) | 0; + } else { + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('Step is zero.'); + } + return tmp; + } + function differenceModulo(a, b, c) { + return mod(mod(a, c) - mod(b, c) | 0, c); + } + function mod(a, b) { + var mod = a % b | 0; + return mod >= 0 ? mod : mod + b | 0; + } + var Companion_instance_7; + function Companion_getInstance_7() { + if (Companion_instance_7 === VOID) + new Companion_7(); + return Companion_instance_7; + } + var Companion_instance_8; + function Companion_getInstance_8() { + return Companion_instance_8; + } + function checkStepIsPositive(isPositive, step) { + if (!isPositive) + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('Step must be positive, was: ' + toString_1(step) + '.'); + } + function appendElement(_this__u8e3s4, element, transform) { + if (!(transform == null)) { + _this__u8e3s4.append_jgojdo_k$(transform(element)); + Unit_instance; + } else { + if (element == null ? true : isCharSequence(element)) { + _this__u8e3s4.append_jgojdo_k$(element); + Unit_instance; + } else { + if (element instanceof Char) { + _this__u8e3s4.append_t84oo1_k$(element.value_1); + Unit_instance; + } else { + _this__u8e3s4.append_jgojdo_k$(toString_0(element)); + Unit_instance; + } + } + } + } + function toLongOrNull(_this__u8e3s4) { + return toLongOrNull_0(_this__u8e3s4, 10); + } + function toLongOrNull_0(_this__u8e3s4, radix) { + checkRadix(radix); + Unit_instance; + var length = _this__u8e3s4.length; + if (length === 0) + return null; + var start; + var isNegative; + var limit; + var firstChar = charSequenceGet(_this__u8e3s4, 0); + if (Char__compareTo_impl_ypi4mb(firstChar, _Char___init__impl__6a9atx(48)) < 0) { + if (length === 1) + return null; + start = 1; + if (firstChar === _Char___init__impl__6a9atx(45)) { + isNegative = true; + Companion_getInstance_3(); + limit = new Long(0, -2147483648); + } else if (firstChar === _Char___init__impl__6a9atx(43)) { + isNegative = false; + Companion_getInstance_3(); + limit = (new Long(-1, 2147483647)).unaryMinus_6uz0qp_k$(); + } else + return null; + } else { + start = 0; + isNegative = false; + Companion_getInstance_3(); + limit = (new Long(-1, 2147483647)).unaryMinus_6uz0qp_k$(); + } + var tmp$ret$0; + // Inline function 'kotlin.Long.div' call + Companion_getInstance_3(); + var this_0 = (new Long(-1, 2147483647)).unaryMinus_6uz0qp_k$(); + var other = 36; + tmp$ret$0 = this_0.div_et91rl_k$(toLong_0(other)); + var limitForMaxRadix = tmp$ret$0; + var limitBeforeMul = limitForMaxRadix; + var result = new Long(0, 0); + var inductionVariable = start; + if (inductionVariable < length) + do { + var i = inductionVariable; + inductionVariable = inductionVariable + 1 | 0; + var digit = digitOf(charSequenceGet(_this__u8e3s4, i), radix); + if (digit < 0) + return null; + if (result.compareTo_kvbqny_k$(limitBeforeMul) < 0) { + if (limitBeforeMul.equals(limitForMaxRadix)) { + var tmp$ret$1; + // Inline function 'kotlin.Long.div' call + var this_1 = limit; + var other_0 = radix; + tmp$ret$1 = this_1.div_et91rl_k$(toLong_0(other_0)); + limitBeforeMul = tmp$ret$1; + if (result.compareTo_kvbqny_k$(limitBeforeMul) < 0) { + return null; + } + } else { + return null; + } + } + var tmp$ret$2; + // Inline function 'kotlin.Long.times' call + var this_2 = result; + var other_1 = radix; + tmp$ret$2 = this_2.times_v7n83g_k$(toLong_0(other_1)); + result = tmp$ret$2; + var tmp = result; + var tmp$ret$3; + // Inline function 'kotlin.Long.plus' call + var this_3 = limit; + var other_2 = digit; + tmp$ret$3 = this_3.plus_eydew_k$(toLong_0(other_2)); + if (tmp.compareTo_kvbqny_k$(tmp$ret$3) < 0) + return null; + var tmp$ret$4; + // Inline function 'kotlin.Long.minus' call + var this_4 = result; + var other_3 = digit; + tmp$ret$4 = this_4.minus_eam86m_k$(toLong_0(other_3)); + result = tmp$ret$4; + } + while (inductionVariable < length); + return isNegative ? result : result.unaryMinus_6uz0qp_k$(); + } + function numberFormatError(input) { + throw NumberFormatException.new_kotlin_NumberFormatException_hv2a95_k$("Invalid number format: '" + input + "'"); + } + function get_lastIndex_3(_this__u8e3s4) { + return charSequenceLength(_this__u8e3s4) - 1 | 0; + } + function get_indices_1(_this__u8e3s4) { + return numberRangeToNumber(0, charSequenceLength(_this__u8e3s4) - 1 | 0); + } + var LazyThreadSafetyMode_SYNCHRONIZED_instance; + var LazyThreadSafetyMode_PUBLICATION_instance; + var LazyThreadSafetyMode_NONE_instance; + var LazyThreadSafetyMode_entriesInitialized; + function LazyThreadSafetyMode_initEntries() { + if (LazyThreadSafetyMode_entriesInitialized) + return Unit_instance; + LazyThreadSafetyMode_entriesInitialized = true; + LazyThreadSafetyMode_SYNCHRONIZED_instance = new LazyThreadSafetyMode('SYNCHRONIZED', 0); + LazyThreadSafetyMode_PUBLICATION_instance = new LazyThreadSafetyMode('PUBLICATION', 1); + LazyThreadSafetyMode_NONE_instance = new LazyThreadSafetyMode('NONE', 2); + } + var UNINITIALIZED_VALUE_instance; + function UNINITIALIZED_VALUE_getInstance() { + return UNINITIALIZED_VALUE_instance; + } + function LazyThreadSafetyMode_PUBLICATION_getInstance() { + LazyThreadSafetyMode_initEntries(); + return LazyThreadSafetyMode_PUBLICATION_instance; + } + function to(_this__u8e3s4, that) { + return new Pair(_this__u8e3s4, that); + } + function _UShort___init__impl__jigrne(data) { + return data; + } + function _UShort___get_data__impl__g0245($this) { + return $this; + } + function init_kotlinx_serialization_SerializationException(_this__u8e3s4) { + captureStack(_this__u8e3s4, _this__u8e3s4.$throwableCtor_4); + } + function get_nullable(_this__u8e3s4) { + var tmp; + if (_this__u8e3s4.get_descriptor_wjt6a0_k$().get_isNullable_67sy7o_k$()) { + tmp = isInterface(_this__u8e3s4, KSerializer) ? _this__u8e3s4 : THROW_CCE(); + } else { + tmp = new NullableSerializer(_this__u8e3s4); + } + return tmp; + } + function serializer(_this__u8e3s4) { + return ByteSerializer_getInstance(); + } + function ByteArraySerializer_0() { + return ByteArraySerializer_getInstance(); + } + function MapEntrySerializer_0(keySerializer, valueSerializer) { + return new MapEntrySerializer(keySerializer, valueSerializer); + } + function SetSerializer(elementSerializer) { + return new LinkedHashSetSerializer(elementSerializer); + } + function get_elementDescriptors(_this__u8e3s4) { + var tmp$ret$0; + // Inline function 'kotlin.collections.Iterable' call + tmp$ret$0 = new _no_name_provided__qut3iv(_this__u8e3s4); + return tmp$ret$0; + } + function get_elementNames(_this__u8e3s4) { + var tmp$ret$0; + // Inline function 'kotlin.collections.Iterable' call + tmp$ret$0 = new _no_name_provided__qut3iv_0(_this__u8e3s4); + return tmp$ret$0; + } + function buildSerialDescriptor(serialName, kind, typeParameters, builder) { + var tmp; + if (builder === VOID) { + tmp = buildSerialDescriptor$lambda; + } else { + tmp = builder; + } + builder = tmp; + // Inline function 'kotlin.require' call + var tmp$ret$0; + // Inline function 'kotlin.text.isNotBlank' call + var this_0 = serialName; + tmp$ret$0 = !isBlank(this_0); + var value = tmp$ret$0; + // Inline function 'kotlin.contracts.contract' call + if (!value) { + var tmp$ret$1; + // Inline function 'kotlinx.serialization.descriptors.buildSerialDescriptor.' call + tmp$ret$1 = 'Blank serial names are prohibited'; + var message = tmp$ret$1; + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$(toString_1(message)); + } + // Inline function 'kotlin.require' call + var value_0 = !equals(kind, CLASS_getInstance()); + // Inline function 'kotlin.contracts.contract' call + if (!value_0) { + var tmp$ret$2; + // Inline function 'kotlinx.serialization.descriptors.buildSerialDescriptor.' call + tmp$ret$2 = "For StructureKind.CLASS please use 'buildClassSerialDescriptor' instead"; + var message_0 = tmp$ret$2; + throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$(toString_1(message_0)); + } + var sdBuilder = new ClassSerialDescriptorBuilder(serialName); + builder(sdBuilder); + return new SerialDescriptorImpl(serialName, kind, sdBuilder.elementNames_1.get_size_woubt6_k$(), toList(typeParameters), sdBuilder); + } + function _get__hashCode__tgwhef($this) { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = $this._hashCode$delegate_1; + var thisRef = $this; + var property = _hashCode$factory(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + function SerialDescriptorImpl$_hashCode$delegate$lambda(this$0) { + return function () { + return hashCodeImpl(this$0, this$0.typeParametersDescriptors_1); + }; + } + function SerialDescriptorImpl$toString$lambda(this$0) { + return function (it) { + return this$0.getElementName_u4sqmf_k$(it) + ': ' + this$0.getElementDescriptor_ncda77_k$(it).get_serialName_u2rqhk_k$(); + }; + } + function buildSerialDescriptor$lambda($this$null) { + return Unit_instance; + } + function _hashCode$factory() { + return getPropertyCallableRef('_hashCode', 1, KProperty1, function (receiver) { + return _get__hashCode__tgwhef(receiver); + }, null); + } + var ENUM_instance; + function ENUM_getInstance() { + if (ENUM_instance === VOID) + new ENUM(); + return ENUM_instance; + } + var BOOLEAN_instance; + function BOOLEAN_getInstance() { + if (BOOLEAN_instance === VOID) + new BOOLEAN(); + return BOOLEAN_instance; + } + var BYTE_instance; + function BYTE_getInstance() { + if (BYTE_instance === VOID) + new BYTE(); + return BYTE_instance; + } + var INT_instance; + function INT_getInstance() { + if (INT_instance === VOID) + new INT(); + return INT_instance; + } + var LONG_instance; + function LONG_getInstance() { + if (LONG_instance === VOID) + new LONG(); + return LONG_instance; + } + var FLOAT_instance; + function FLOAT_getInstance() { + if (FLOAT_instance === VOID) + new FLOAT(); + return FLOAT_instance; + } + var DOUBLE_instance; + function DOUBLE_getInstance() { + if (DOUBLE_instance === VOID) + new DOUBLE(); + return DOUBLE_instance; + } + var STRING_instance; + function STRING_getInstance() { + if (STRING_instance === VOID) + new STRING(); + return STRING_instance; + } + var CLASS_instance; + function CLASS_getInstance() { + if (CLASS_instance === VOID) + new CLASS(); + return CLASS_instance; + } + var LIST_instance; + function LIST_getInstance() { + if (LIST_instance === VOID) + new LIST(); + return LIST_instance; + } + var MAP_instance; + function MAP_getInstance() { + if (MAP_instance === VOID) + new MAP(); + return MAP_instance; + } + var OBJECT_instance; + function OBJECT_getInstance() { + if (OBJECT_instance === VOID) + new OBJECT(); + return OBJECT_instance; + } + var Companion_instance_9; + function Companion_getInstance_9() { + return Companion_instance_9; + } + function readSize($this, decoder, builder) { + var size = decoder.decodeCollectionSize_l3mlkk_k$($this.get_descriptor_wjt6a0_k$()); + $this.checkCapacity_4ljkg0_k$(builder, size); + return size; + } + var Companion_instance_10; + function Companion_getInstance_10() { + if (Companion_instance_10 === VOID) + new Companion_10(); + return Companion_instance_10; + } + function prepareHighMarksArray($this, elementsCount) { + var slotsCount = (elementsCount - 1 | 0) >>> 6 | 0; + Companion_getInstance_3(); + var elementsInLastSlot = elementsCount & (64 - 1 | 0); + var highMarks = longArray(slotsCount); + if (!(elementsInLastSlot === 0)) { + highMarks[get_lastIndex_1(highMarks)] = (new Long(-1, -1)).shl_bg8if3_k$(elementsCount); + Unit_instance; + } + return highMarks; + } + function markHigh($this, index) { + var slot = (index >>> 6 | 0) - 1 | 0; + Companion_getInstance_3(); + var offsetInSlot = index & (64 - 1 | 0); + $this.highMarksArray_1[slot] = $this.highMarksArray_1[slot].or_sl8881_k$((new Long(1, 0)).shl_bg8if3_k$(offsetInSlot)); + } + function nextUnmarkedHighIndex($this) { + var inductionVariable = 0; + var last = $this.highMarksArray_1.length - 1 | 0; + if (inductionVariable <= last) + do { + var slot = inductionVariable; + inductionVariable = inductionVariable + 1 | 0; + var tmp = slot + 1 | 0; + Companion_getInstance_3(); + var slotOffset = imul(tmp, 64); + var slotMarks = $this.highMarksArray_1[slot]; + while (!slotMarks.equals(new Long(-1, -1))) { + var indexInSlot = countTrailingZeroBits(slotMarks.inv_28kx_k$()); + slotMarks = slotMarks.or_sl8881_k$((new Long(1, 0)).shl_bg8if3_k$(indexInSlot)); + var index = slotOffset + indexInSlot | 0; + if ($this.readIfAbsent_1($this.descriptor_1, index)) { + $this.highMarksArray_1[slot] = slotMarks; + return index; + } + } + $this.highMarksArray_1[slot] = slotMarks; + Unit_instance; + } + while (inductionVariable <= last); + Companion_instance_9; + return -1; + } + function _get_elementDescriptors__y23q9p($this) { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = $this.elementDescriptors$delegate_1; + var thisRef = $this; + var property = elementDescriptors$factory(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + function EnumDescriptor$elementDescriptors$delegate$lambda($elementsCount, $name, this$0) { + return function () { + var tmp = 0; + var tmp_0 = $elementsCount; + var tmp$ret$0; + // Inline function 'kotlin.arrayOfNulls' call + var size = tmp_0; + tmp$ret$0 = fillArrayVal(Array(size), null); + var tmp_1 = tmp$ret$0; + while (tmp < tmp_0) { + var tmp_2 = tmp; + var tmp$ret$1; + tmp$ret$1 = buildSerialDescriptor($name + '.' + this$0.getElementName_u4sqmf_k$(tmp_2), OBJECT_getInstance(), []); + tmp_1[tmp_2] = tmp$ret$1; + tmp = tmp + 1 | 0; + } + return tmp_1; + }; + } + function elementDescriptors$factory() { + return getPropertyCallableRef('elementDescriptors', 1, KProperty1, function (receiver) { + return _get_elementDescriptors__y23q9p(receiver); + }, null); + } + function get_EMPTY_DESCRIPTOR_ARRAY() { + _init_properties_Platform_common_kt__3qzecs(); + return EMPTY_DESCRIPTOR_ARRAY; + } + var EMPTY_DESCRIPTOR_ARRAY; + function cachedSerialNames(_this__u8e3s4) { + _init_properties_Platform_common_kt__3qzecs(); + if (isInterface(_this__u8e3s4, CachedNames)) + return _this__u8e3s4.get_serialNames_8zf3cl_k$(); + var result = HashSet.new_kotlin_collections_HashSet_9nbh5e_k$(_this__u8e3s4.get_elementsCount_288r0x_k$()); + var inductionVariable = 0; + var last = _this__u8e3s4.get_elementsCount_288r0x_k$(); + if (inductionVariable < last) + do { + var i = inductionVariable; + inductionVariable = inductionVariable + 1 | 0; + // Inline function 'kotlin.collections.plusAssign' call + var this_0 = result; + var element = _this__u8e3s4.getElementName_u4sqmf_k$(i); + this_0.add_utx5q5_k$(element); + Unit_instance; + } + while (inductionVariable < last); + return result; + } + function compactArray(_this__u8e3s4) { + _init_properties_Platform_common_kt__3qzecs(); + var tmp$ret$2; + // Inline function 'kotlin.takeUnless' call + var this_0 = _this__u8e3s4; + // Inline function 'kotlin.contracts.contract' call + var tmp; + var tmp$ret$1; + // Inline function 'kotlinx.serialization.internal.compactArray.' call + var it = this_0; + var tmp$ret$0; + // Inline function 'kotlin.collections.isNullOrEmpty' call + var this_1 = it; + // Inline function 'kotlin.contracts.contract' call + tmp$ret$0 = this_1 == null ? true : this_1.isEmpty_y1axqb_k$(); + tmp$ret$1 = tmp$ret$0; + if (!tmp$ret$1) { + tmp = this_0; + } else { + tmp = null; + } + tmp$ret$2 = tmp; + var tmp0_safe_receiver = tmp$ret$2; + var tmp_0; + if (tmp0_safe_receiver == null) { + tmp_0 = null; + } else { + var tmp$ret$3; + // Inline function 'kotlin.collections.toTypedArray' call + var this_2 = tmp0_safe_receiver; + tmp$ret$3 = copyToArray(this_2); + tmp_0 = tmp$ret$3; + } + var tmp1_elvis_lhs = tmp_0; + return tmp1_elvis_lhs == null ? get_EMPTY_DESCRIPTOR_ARRAY() : tmp1_elvis_lhs; + } + var properties_initialized_Platform_common_kt_i7q4ty; + function _init_properties_Platform_common_kt__3qzecs() { + if (properties_initialized_Platform_common_kt_i7q4ty) { + } else { + properties_initialized_Platform_common_kt_i7q4ty = true; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = []; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + EMPTY_DESCRIPTOR_ARRAY = tmp$ret$2; + } + } + function throwMissingFieldException(seen, goldenMask, descriptor) { + var tmp$ret$0; + // Inline function 'kotlin.collections.mutableListOf' call + tmp$ret$0 = ArrayList.new_kotlin_collections_ArrayList_ony0vx_k$(); + var missingFields = tmp$ret$0; + var missingFieldsBits = goldenMask & ~seen; + var inductionVariable = 0; + if (inductionVariable < 32) + do { + var i = inductionVariable; + inductionVariable = inductionVariable + 1 | 0; + if (!((missingFieldsBits & 1) === 0)) { + // Inline function 'kotlin.collections.plusAssign' call + var this_0 = missingFields; + var element = descriptor.getElementName_u4sqmf_k$(i); + this_0.add_utx5q5_k$(element); + Unit_instance; + } + missingFieldsBits = missingFieldsBits >>> 1 | 0; + } + while (inductionVariable < 32); + throw MissingFieldException.new_kotlinx_serialization_MissingFieldException_2xrfvb_k$(missingFields, descriptor.get_serialName_u2rqhk_k$()); + } + function throwArrayMissingFieldException(seenArray, goldenMaskArray, descriptor) { + var tmp$ret$0; + // Inline function 'kotlin.collections.mutableListOf' call + tmp$ret$0 = ArrayList.new_kotlin_collections_ArrayList_ony0vx_k$(); + var missingFields = tmp$ret$0; + var inductionVariable = 0; + var last = goldenMaskArray.length - 1 | 0; + if (inductionVariable <= last) + do { + var maskSlot = inductionVariable; + inductionVariable = inductionVariable + 1 | 0; + var missingFieldsBits = goldenMaskArray[maskSlot] & ~seenArray[maskSlot]; + if (!(missingFieldsBits === 0)) { + var inductionVariable_0 = 0; + if (inductionVariable_0 < 32) + do { + var i = inductionVariable_0; + inductionVariable_0 = inductionVariable_0 + 1 | 0; + if (!((missingFieldsBits & 1) === 0)) { + // Inline function 'kotlin.collections.plusAssign' call + var this_0 = missingFields; + var element = descriptor.getElementName_u4sqmf_k$(imul(maskSlot, 32) + i | 0); + this_0.add_utx5q5_k$(element); + Unit_instance; + } + missingFieldsBits = missingFieldsBits >>> 1 | 0; + } + while (inductionVariable_0 < 32); + } + } + while (inductionVariable <= last); + throw MissingFieldException.new_kotlinx_serialization_MissingFieldException_2xrfvb_k$(missingFields, descriptor.get_serialName_u2rqhk_k$()); + } + function _get_childSerializers__7vnyfa($this) { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = $this.childSerializers$delegate_1; + var thisRef = $this; + var property = childSerializers$factory(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + function _get__hashCode__tgwhef_0($this) { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = $this._hashCode$delegate_1; + var thisRef = $this; + var property = _hashCode$factory_0(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + function buildIndices($this) { + var indices = HashMap.new_kotlin_collections_HashMap_2a5kxx_k$(); + var inductionVariable = 0; + var last = $this.names_1.length - 1 | 0; + if (inductionVariable <= last) + do { + var i = inductionVariable; + inductionVariable = inductionVariable + 1 | 0; + // Inline function 'kotlin.collections.set' call + var this_0 = indices; + var key = $this.names_1[i]; + var value = i; + this_0.put_4fpzoq_k$(key, value); + Unit_instance; + } + while (inductionVariable <= last); + return indices; + } + function PluginGeneratedSerialDescriptor$childSerializers$delegate$lambda(this$0) { + return function () { + var tmp0_safe_receiver = this$0.generatedSerializer_1; + var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.childSerializers_5ghqw5_k$(); + return tmp1_elvis_lhs == null ? get_EMPTY_SERIALIZER_ARRAY() : tmp1_elvis_lhs; + }; + } + function PluginGeneratedSerialDescriptor$typeParameterDescriptors$delegate$lambda(this$0) { + return function () { + var tmp0_safe_receiver = this$0.generatedSerializer_1; + var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.typeParametersSerializers_fr94fx_k$(); + var tmp; + if (tmp1_safe_receiver == null) { + tmp = null; + } else { + var tmp$ret$2; + // Inline function 'kotlin.collections.map' call + var this_0 = tmp1_safe_receiver; + var tmp$ret$1; + // Inline function 'kotlin.collections.mapTo' call + var this_1 = this_0; + var destination = ArrayList.new_kotlin_collections_ArrayList_tdd6ob_k$(this_0.length); + var indexedObject = this_1; + var inductionVariable = 0; + var last = indexedObject.length; + while (inductionVariable < last) { + var item = indexedObject[inductionVariable]; + inductionVariable = inductionVariable + 1 | 0; + var tmp$ret$0; + // Inline function 'kotlinx.serialization.internal.PluginGeneratedSerialDescriptor.typeParameterDescriptors$delegate..' call + var it = item; + tmp$ret$0 = it.get_descriptor_wjt6a0_k$(); + destination.add_utx5q5_k$(tmp$ret$0); + Unit_instance; + } + tmp$ret$1 = destination; + tmp$ret$2 = tmp$ret$1; + tmp = tmp$ret$2; + } + return compactArray(tmp); + }; + } + function PluginGeneratedSerialDescriptor$_hashCode$delegate$lambda(this$0) { + return function () { + return hashCodeImpl(this$0, this$0.get_typeParameterDescriptors_hcpg9q_k$()); + }; + } + function PluginGeneratedSerialDescriptor$toString$lambda(this$0) { + return function (i) { + return this$0.getElementName_u4sqmf_k$(i) + ': ' + this$0.getElementDescriptor_ncda77_k$(i).get_serialName_u2rqhk_k$(); + }; + } + function hashCodeImpl(_this__u8e3s4, typeParams) { + var result = getStringHashCode(_this__u8e3s4.get_serialName_u2rqhk_k$()); + result = imul(31, result) + contentHashCode(typeParams) | 0; + var elementDescriptors = get_elementDescriptors(_this__u8e3s4); + var tmp$ret$4; + // Inline function 'kotlinx.serialization.internal.elementsHashCodeBy' call + var this_0 = elementDescriptors; + var tmp$ret$3; + // Inline function 'kotlin.collections.fold' call + var this_1 = this_0; + var initial = 1; + var accumulator = initial; + var tmp0_iterator = this_1.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$2; + // Inline function 'kotlinx.serialization.internal.elementsHashCodeBy.' call + var hash = accumulator; + var element_0 = element; + var tmp = imul(31, hash); + var tmp$ret$1; + // Inline function 'kotlin.hashCode' call + var tmp$ret$0; + // Inline function 'kotlinx.serialization.internal.hashCodeImpl.' call + var it = element_0; + tmp$ret$0 = it.get_serialName_u2rqhk_k$(); + var this_2 = tmp$ret$0; + var tmp0_safe_receiver = this_2; + var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : hashCode(tmp0_safe_receiver); + tmp$ret$1 = tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs; + tmp$ret$2 = tmp + tmp$ret$1 | 0; + accumulator = tmp$ret$2; + } + tmp$ret$3 = accumulator; + tmp$ret$4 = tmp$ret$3; + var namesHash = tmp$ret$4; + var tmp$ret$9; + // Inline function 'kotlinx.serialization.internal.elementsHashCodeBy' call + var this_3 = elementDescriptors; + var tmp$ret$8; + // Inline function 'kotlin.collections.fold' call + var this_4 = this_3; + var initial_0 = 1; + var accumulator_0 = initial_0; + var tmp0_iterator_0 = this_4.iterator_jk1svi_k$(); + while (tmp0_iterator_0.hasNext_bitz1p_k$()) { + var element_1 = tmp0_iterator_0.next_20eer_k$(); + var tmp$ret$7; + // Inline function 'kotlinx.serialization.internal.elementsHashCodeBy.' call + var hash_0 = accumulator_0; + var element_2 = element_1; + var tmp_0 = imul(31, hash_0); + var tmp$ret$6; + // Inline function 'kotlin.hashCode' call + var tmp$ret$5; + // Inline function 'kotlinx.serialization.internal.hashCodeImpl.' call + var it_0 = element_2; + tmp$ret$5 = it_0.get_kind_wop7ml_k$(); + var this_5 = tmp$ret$5; + var tmp0_safe_receiver_0 = this_5; + var tmp1_elvis_lhs_0 = tmp0_safe_receiver_0 == null ? null : hashCode(tmp0_safe_receiver_0); + tmp$ret$6 = tmp1_elvis_lhs_0 == null ? 0 : tmp1_elvis_lhs_0; + tmp$ret$7 = tmp_0 + tmp$ret$6 | 0; + accumulator_0 = tmp$ret$7; + } + tmp$ret$8 = accumulator_0; + tmp$ret$9 = tmp$ret$8; + var kindHash = tmp$ret$9; + result = imul(31, result) + namesHash | 0; + result = imul(31, result) + kindHash | 0; + return result; + } + function childSerializers$factory() { + return getPropertyCallableRef('childSerializers', 1, KProperty1, function (receiver) { + return _get_childSerializers__7vnyfa(receiver); + }, null); + } + function typeParameterDescriptors$factory() { + return getPropertyCallableRef('typeParameterDescriptors', 1, KProperty1, function (receiver) { + return receiver.get_typeParameterDescriptors_hcpg9q_k$(); + }, null); + } + function _hashCode$factory_0() { + return getPropertyCallableRef('_hashCode', 1, KProperty1, function (receiver) { + return _get__hashCode__tgwhef_0(receiver); + }, null); + } + function get_EMPTY_SERIALIZER_ARRAY() { + _init_properties_PluginHelperInterfaces_kt__xgvzfp(); + return EMPTY_SERIALIZER_ARRAY; + } + var EMPTY_SERIALIZER_ARRAY; + var properties_initialized_PluginHelperInterfaces_kt_ap8in1; + function _init_properties_PluginHelperInterfaces_kt__xgvzfp() { + if (properties_initialized_PluginHelperInterfaces_kt_ap8in1) { + } else { + properties_initialized_PluginHelperInterfaces_kt_ap8in1 = true; + var tmp$ret$2; + // Inline function 'kotlin.arrayOf' call + var elements = []; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_0 = elements; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_1 = this_0; + tmp$ret$0 = this_1; + tmp$ret$1 = tmp$ret$0; + tmp$ret$2 = tmp$ret$1; + EMPTY_SERIALIZER_ARRAY = tmp$ret$2; + } + } + var ByteArraySerializer_instance; + function ByteArraySerializer_getInstance() { + if (ByteArraySerializer_instance === VOID) + new ByteArraySerializer(); + return ByteArraySerializer_instance; + } + var StringSerializer_instance; + function StringSerializer_getInstance() { + if (StringSerializer_instance === VOID) + new StringSerializer(); + return StringSerializer_instance; + } + var DoubleSerializer_instance; + function DoubleSerializer_getInstance() { + if (DoubleSerializer_instance === VOID) + new DoubleSerializer(); + return DoubleSerializer_instance; + } + var FloatSerializer_instance; + function FloatSerializer_getInstance() { + if (FloatSerializer_instance === VOID) + new FloatSerializer(); + return FloatSerializer_instance; + } + var LongSerializer_instance; + function LongSerializer_getInstance() { + if (LongSerializer_instance === VOID) + new LongSerializer(); + return LongSerializer_instance; + } + var IntSerializer_instance; + function IntSerializer_getInstance() { + if (IntSerializer_instance === VOID) + new IntSerializer(); + return IntSerializer_instance; + } + var ByteSerializer_instance; + function ByteSerializer_getInstance() { + if (ByteSerializer_instance === VOID) + new ByteSerializer(); + return ByteSerializer_instance; + } + var BooleanSerializer_instance; + function BooleanSerializer_getInstance() { + if (BooleanSerializer_instance === VOID) + new BooleanSerializer(); + return BooleanSerializer_instance; + } + function error($this) { + throw IllegalStateException.new_kotlin_IllegalStateException_w47ei6_k$('Primitive descriptor does not have elements'); + } + function get_NULL() { + _init_properties_Tuples_kt__dz0qyd(); + return NULL; + } + var NULL; + function MapEntrySerializer$descriptor$lambda($keySerializer, $valueSerializer) { + return function ($this$buildSerialDescriptor) { + $this$buildSerialDescriptor.element$default_ey7ac9_k$('key', $keySerializer.get_descriptor_wjt6a0_k$()); + $this$buildSerialDescriptor.element$default_ey7ac9_k$('value', $valueSerializer.get_descriptor_wjt6a0_k$()); + return Unit_instance; + }; + } + var properties_initialized_Tuples_kt_3vs7ar; + function _init_properties_Tuples_kt__dz0qyd() { + if (properties_initialized_Tuples_kt_3vs7ar) { + } else { + properties_initialized_Tuples_kt_3vs7ar = true; + NULL = new Object(); + } + } + function get_EmptySerializersModuleLegacyJs() { + _init_properties_SerializersModule_kt__u78ha3(); + return EmptySerializersModule; + } + var EmptySerializersModule; + var properties_initialized_SerializersModule_kt_fjigjn; + function _init_properties_SerializersModule_kt__u78ha3() { + if (properties_initialized_SerializersModule_kt_fjigjn) { + } else { + properties_initialized_SerializersModule_kt_fjigjn = true; + EmptySerializersModule = new SerialModuleImpl(emptyMap(), emptyMap(), emptyMap(), emptyMap(), emptyMap()); + } + } + function EmptySerializersModule_0() { + return get_EmptySerializersModuleLegacyJs(); + } + function getChecked(_this__u8e3s4, index) { + if (!(0 <= index ? index <= (_this__u8e3s4.length - 1 | 0) : false)) + throw IndexOutOfBoundsException.new_kotlin_IndexOutOfBoundsException_ddr8db_k$('Index ' + index + ' out of bounds ' + get_indices(_this__u8e3s4)); + return _this__u8e3s4[index]; + } + function getChecked_0(_this__u8e3s4, index) { + if (!(0 <= index ? index <= (_this__u8e3s4.length - 1 | 0) : false)) + throw IndexOutOfBoundsException.new_kotlin_IndexOutOfBoundsException_ddr8db_k$('Index ' + index + ' out of bounds ' + get_indices_0(_this__u8e3s4)); + return _this__u8e3s4[index]; + } + var Default_instance; + function Default_getInstance() { + if (Default_instance === VOID) + new Default(); + return Default_instance; + } + var ProtoIntegerType_DEFAULT_instance; + var ProtoIntegerType_SIGNED_instance; + var ProtoIntegerType_FIXED_instance; + var ProtoIntegerType_entriesInitialized; + function ProtoIntegerType_initEntries() { + if (ProtoIntegerType_entriesInitialized) + return Unit_instance; + ProtoIntegerType_entriesInitialized = true; + ProtoIntegerType_DEFAULT_instance = new ProtoIntegerType('DEFAULT', 0, new Long(0, 0)); + ProtoIntegerType_SIGNED_instance = new ProtoIntegerType('SIGNED', 1, new Long(0, 2)); + ProtoIntegerType_FIXED_instance = new ProtoIntegerType('FIXED', 2, new Long(0, 4)); + } + function ProtoIntegerType_DEFAULT_getInstance() { + ProtoIntegerType_initEntries(); + return ProtoIntegerType_DEFAULT_instance; + } + function ProtoIntegerType_SIGNED_getInstance() { + ProtoIntegerType_initEntries(); + return ProtoIntegerType_SIGNED_instance; + } + function ProtoIntegerType_FIXED_getInstance() { + ProtoIntegerType_initEntries(); + return ProtoIntegerType_FIXED_instance; + } + function get_isPacked(_this__u8e3s4) { + return !_this__u8e3s4.and_1dc02z_k$(new Long(0, 1)).equals(new Long(0, 0)); + } + function get_isPackable(_this__u8e3s4) { + var tmp0_subject = _this__u8e3s4.get_kind_wop7ml_k$(); + var tmp; + var tmp_0; + if (equals(tmp0_subject, STRING_getInstance())) { + tmp_0 = true; + } else { + tmp_0 = !(tmp0_subject instanceof PrimitiveKind); + } + if (tmp_0) { + tmp = false; + } else { + tmp = true; + } + return tmp; + } + function get_integerType(_this__u8e3s4) { + var tmp0_subject = _this__u8e3s4.and_1dc02z_k$(new Long(0, 2147483646)); + return tmp0_subject.equals(ProtoIntegerType_DEFAULT_getInstance().signature_1) ? ProtoIntegerType_DEFAULT_getInstance() : tmp0_subject.equals(ProtoIntegerType_SIGNED_getInstance().signature_1) ? ProtoIntegerType_SIGNED_getInstance() : ProtoIntegerType_FIXED_getInstance(); + } + function extractProtoId(descriptor, index, zeroBasedDefault) { + var annotations = descriptor.getElementAnnotations_omrjs6_k$(index); + var inductionVariable = 0; + var last = annotations.get_size_woubt6_k$() - 1 | 0; + if (inductionVariable <= last) + do { + var i = inductionVariable; + inductionVariable = inductionVariable + 1 | 0; + var annotation = annotations.get_c1px32_k$(i); + if (annotation instanceof ProtoNumber) { + return annotation.number_1; + } + } + while (inductionVariable <= last); + return zeroBasedDefault ? index : index + 1 | 0; + } + function extractParameters(_this__u8e3s4, index) { + var annotations = _this__u8e3s4.getElementAnnotations_omrjs6_k$(index); + var protoId = index + 1 | 0; + var format = ProtoIntegerType_DEFAULT_getInstance(); + var protoPacked = false; + var inductionVariable = 0; + var last = annotations.get_size_woubt6_k$() - 1 | 0; + if (inductionVariable <= last) + do { + var i = inductionVariable; + inductionVariable = inductionVariable + 1 | 0; + var annotation = annotations.get_c1px32_k$(i); + if (annotation instanceof ProtoNumber) { + protoId = annotation.number_1; + } else { + if (annotation instanceof ProtoType) { + format = annotation.type_1; + } else { + if (annotation instanceof ProtoPacked) { + protoPacked = true; + } + } + } + } + while (inductionVariable <= last); + var tmp$ret$0; + // Inline function 'kotlinx.serialization.protobuf.internal.ProtoDesc' call + var protoId_0 = protoId; + var type = format; + var packed = protoPacked; + var packedBits = packed ? new Long(0, 1) : new Long(0, 0); + var signature = type.signature_1.or_sl8881_k$(packedBits); + tmp$ret$0 = signature.or_sl8881_k$(toLong_0(protoId_0)); + return tmp$ret$0; + } + function get_SIZE_DELIMITED() { + return SIZE_DELIMITED; + } + var SIZE_DELIMITED; + function get_i32() { + return i32; + } + var i32; + function get_VARINT() { + return VARINT; + } + var VARINT; + function get_i64() { + return i64; + } + var i64; + function populateCacheMap($this, descriptor, elements) { + var map = HashMap.new_kotlin_collections_HashMap_5ewlp_k$(elements); + var inductionVariable = 0; + if (inductionVariable < elements) + do { + var i = inductionVariable; + inductionVariable = inductionVariable + 1 | 0; + // Inline function 'kotlin.collections.set' call + var this_0 = map; + var key = extractProtoId(descriptor, i, false); + var value = i; + this_0.put_4fpzoq_k$(key, value); + Unit_instance; + } + while (inductionVariable < elements); + $this.sparseIndexCache_1 = map; + } + function getIndexByTag($this, protoTag) { + var array = $this.indexCache_1; + if (!(array == null)) { + var tmp$ret$1; + // Inline function 'kotlin.collections.getOrElse' call + var this_0 = array; + var index = protoTag; + var tmp; + if (index >= 0 ? index <= get_lastIndex_2(this_0) : false) { + tmp = this_0[index]; + } else { + var tmp$ret$0; + // Inline function 'kotlinx.serialization.protobuf.internal.ProtobufDecoder.getIndexByTag.' call + var it = index; + tmp$ret$0 = -1; + tmp = tmp$ret$0; + } + tmp$ret$1 = tmp; + return tmp$ret$1; + } + return getIndexByTagSlowPath($this, protoTag); + } + function getIndexByTagSlowPath($this, protoTag) { + var tmp$ret$1; + // Inline function 'kotlin.collections.getOrElse' call + var this_0 = ensureNotNull($this.sparseIndexCache_1); + var key = protoTag; + var tmp0_elvis_lhs = this_0.get_wei43m_k$(key); + var tmp; + if (tmp0_elvis_lhs == null) { + var tmp$ret$0; + // Inline function 'kotlinx.serialization.protobuf.internal.ProtobufDecoder.getIndexByTagSlowPath.' call + tmp$ret$0 = -1; + tmp = tmp$ret$0; + } else { + tmp = tmp0_elvis_lhs; + } + tmp$ret$1 = tmp; + return tmp$ret$1; + } + function findIndexByTag($this, descriptor, protoTag) { + if (protoTag < descriptor.get_elementsCount_288r0x_k$()) { + var protoId = extractProtoId(descriptor, protoTag, true); + if (protoId === protoTag) + return protoTag; + } + return findIndexByTagSlowPath($this, descriptor, protoTag); + } + function findIndexByTagSlowPath($this, desc, protoTag) { + var inductionVariable = 0; + var last = desc.get_elementsCount_288r0x_k$(); + if (inductionVariable < last) + do { + var i = inductionVariable; + inductionVariable = inductionVariable + 1 | 0; + var protoId = extractProtoId(desc, i, true); + if (protoId === protoTag) + return i; + } + while (inductionVariable < last); + throw ProtobufDecodingException.new_kotlinx_serialization_protobuf_internal_ProtobufDecodingException_yxd951_k$('' + protoTag + ' is not among valid ' + $this.descriptor_1.get_serialName_u2rqhk_k$() + ' enum proto numbers'); + } + function deserializeByteArray($this, previousValue) { + var tag = $this.get_currentTagOrDefault_711ujw_k$(); + var tmp; + if (tag.equals(get_MISSING_TAG())) { + tmp = $this.reader_1.readByteArrayNoTag_lh4cke_k$(); + } else { + tmp = $this.reader_1.readByteArray_52wnjv_k$(); + } + var array = tmp; + var tmp_0; + if (previousValue == null) { + tmp_0 = array; + } else { + var tmp$ret$0; + // Inline function 'kotlin.collections.plus' call + var this_0 = previousValue; + var elements = array; + tmp$ret$0 = primitiveArrayConcat([this_0, elements]); + tmp_0 = tmp$ret$0; + } + return tmp_0; + } + function deserializeMap($this, deserializer, previousValue) { + var serializer = deserializer instanceof MapLikeSerializer ? deserializer : THROW_CCE(); + var mapEntrySerial = MapEntrySerializer_0(serializer.keySerializer_1, serializer.valueSerializer_1); + var tmp0_safe_receiver = (!(previousValue == null) ? isInterface(previousValue, Map_0) : false) ? previousValue : null; + var oldSet = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.get_entries_p20ztl_k$(); + var setOfEntries = (new LinkedHashSetSerializer(mapEntrySerial)).merge_4lx7x7_k$($this, oldSet); + var tmp$ret$3; + // Inline function 'kotlin.collections.associateBy' call + var this_0 = setOfEntries; + var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16); + var tmp$ret$2; + // Inline function 'kotlin.collections.associateByTo' call + var this_1 = this_0; + var destination = LinkedHashMap.new_kotlin_collections_LinkedHashMap_31p40q_k$(capacity); + var tmp0_iterator = this_1.iterator_jk1svi_k$(); + while (tmp0_iterator.hasNext_bitz1p_k$()) { + var element = tmp0_iterator.next_20eer_k$(); + var tmp$ret$0; + // Inline function 'kotlinx.serialization.protobuf.internal.ProtobufDecoder.deserializeMap.' call + var it = element; + tmp$ret$0 = it.get_key_18j28a_k$(); + var tmp = tmp$ret$0; + var tmp$ret$1; + // Inline function 'kotlinx.serialization.protobuf.internal.ProtobufDecoder.deserializeMap.' call + var it_0 = element; + tmp$ret$1 = it_0.get_value_j01efc_k$(); + destination.put_4fpzoq_k$(tmp, tmp$ret$1); + Unit_instance; + } + tmp$ret$2 = destination; + tmp$ret$3 = tmp$ret$2; + var tmp_0 = tmp$ret$3; + return !(tmp_0 == null) ? tmp_0 : THROW_CCE(); + } + function readIfAbsent($this, descriptor, index) { + if (!descriptor.isElementOptional_heqq56_k$(index)) { + var elementDescriptor = descriptor.getElementDescriptor_ncda77_k$(index); + var kind = elementDescriptor.get_kind_wop7ml_k$(); + if (equals(kind, MAP_getInstance()) ? true : equals(kind, LIST_getInstance())) { + $this.nullValue_1 = false; + return true; + } else if (elementDescriptor.get_isNullable_67sy7o_k$()) { + $this.nullValue_1 = true; + return true; + } + } + return false; + } + function ProtobufDecoder$readIfAbsent$ref($boundThis) { + var l = function (p0, p1) { + return readIfAbsent($boundThis, p0, p1); + }; + l.callableName = 'readIfAbsent'; + return l; + } + function decodeListIndexNoTag($this) { + var size = $this.tagOrSize_1.unaryMinus_6uz0qp_k$(); + var tmp0_this = $this; + tmp0_this.index_1 = tmp0_this.index_1 + 1 | 0; + var idx = tmp0_this.index_1; + if (toLong_0(idx).equals(size) ? true : $this.reader_1.get_eof_18j6gd_k$()) { + Companion_instance_9; + return -1; + } + return idx; + } + function decodeTaggedListIndex($this) { + var tmp; + if ($this.index_1 === -1) { + tmp = $this.reader_1.currentId_1; + } else { + tmp = $this.reader_1.readTag_hv8kro_k$(); + } + var protoId = tmp; + var tmp_0; + var tmp$ret$0; + // Inline function 'kotlinx.serialization.protobuf.internal.protoId' call + var this_0 = $this.tagOrSize_1; + tmp$ret$0 = this_0.and_1dc02z_k$(toLong_0(IntCompanionObject_instance.MAX_VALUE)).toInt_1tsl84_k$(); + if (protoId === tmp$ret$0) { + var tmp0_this = $this; + tmp0_this.index_1 = tmp0_this.index_1 + 1 | 0; + tmp_0 = tmp0_this.index_1; + } else { + $this.reader_1.pushBackTag_y3reuh_k$(); + Companion_instance_9; + tmp_0 = -1; + } + return tmp_0; + } + function makeDelimited(decoder, parentTag) { + var tagless = parentTag.equals(get_MISSING_TAG()); + var input = tagless ? decoder.objectTaglessInput_lsdsy2_k$() : decoder.objectInput_lgltf9_k$(); + return new ProtobufReader(input); + } + function makeDelimitedForced(decoder, parentTag) { + var tagless = parentTag.equals(get_MISSING_TAG()); + var input = tagless ? decoder.objectTaglessInput_lsdsy2_k$() : decoder.objectInput_lgltf9_k$(); + return new ProtobufReader(input); + } + function serializeByteArray($this, value) { + var tag = $this.popTagOrDefault_ti4giz_k$(); + if (tag.equals(get_MISSING_TAG())) { + $this.writer_1.writeBytes_morzks_k$(value); + Unit_instance; + } else { + var tmp$ret$0; + // Inline function 'kotlinx.serialization.protobuf.internal.protoId' call + var this_0 = tag; + tmp$ret$0 = this_0.and_1dc02z_k$(toLong_0(IntCompanionObject_instance.MAX_VALUE)).toInt_1tsl84_k$(); + $this.writer_1.writeBytes_cntt0_k$(value, tmp$ret$0); + Unit_instance; + } + } + function serializeMap($this, serializer, value) { + var casted = serializer instanceof MapLikeSerializer ? serializer : THROW_CCE(); + var mapEntrySerial = MapEntrySerializer_0(casted.keySerializer_1, casted.valueSerializer_1); + var tmp = SetSerializer(mapEntrySerial); + tmp.serialize_5ase3y_k$($this, ((!(value == null) ? isInterface(value, Map_0) : false) ? value : THROW_CCE()).get_entries_p20ztl_k$()); + } + function updateIdAndType($this, header) { + var tmp; + if (header === -1) { + $this.currentId_1 = -1; + $this.currentType_1 = -1; + tmp = -1; + } else { + $this.currentId_1 = header >>> 3 | 0; + $this.currentType_1 = header & 7; + tmp = $this.currentId_1; + } + return tmp; + } + function readIntLittleEndian($this) { + var result = 0; + var inductionVariable = 0; + if (inductionVariable <= 3) + do { + var i = inductionVariable; + inductionVariable = inductionVariable + 1 | 0; + var byte = $this.input_1.read_22xsm_k$() & 255; + result = result | byte << imul(i, 8); + } + while (inductionVariable <= 3); + return result; + } + function readLongLittleEndian($this) { + var result = new Long(0, 0); + var inductionVariable = 0; + if (inductionVariable <= 7) + do { + var i = inductionVariable; + inductionVariable = inductionVariable + 1 | 0; + var byte = toLong_0($this.input_1.read_22xsm_k$() & 255); + result = result.or_sl8881_k$(byte.shl_bg8if3_k$(imul(i, 8))); + } + while (inductionVariable <= 7); + return result; + } + function checkLength($this, length) { + if (length < 0) { + throw ProtobufDecodingException.new_kotlinx_serialization_protobuf_internal_ProtobufDecodingException_yxd951_k$('Unexpected negative length: ' + length); + } + } + function decode32($this, format) { + var tmp0_subject = format; + var tmp0 = tmp0_subject.ordinal_1; + var tmp; + switch (tmp0) { + case 0: + tmp = $this.input_1.readVarint64_c1l8ax_k$(false).toInt_1tsl84_k$(); + break; + case 1: + tmp = decodeSignedVarintInt($this, $this.input_1); + break; + case 2: + tmp = readIntLittleEndian($this); + break; + default: + noWhenBranchMatchedException(); + break; + } + return tmp; + } + function decode32$default($this, format, $super) { + format = format === VOID ? ProtoIntegerType_DEFAULT_getInstance() : format; + return decode32($this, format); + } + function decode64($this, format) { + var tmp0_subject = format; + var tmp0 = tmp0_subject.ordinal_1; + var tmp; + switch (tmp0) { + case 0: + tmp = $this.input_1.readVarint64_c1l8ax_k$(false); + break; + case 1: + tmp = decodeSignedVarintLong($this, $this.input_1); + break; + case 2: + tmp = readLongLittleEndian($this); + break; + default: + noWhenBranchMatchedException(); + break; + } + return tmp; + } + function decodeSignedVarintInt($this, input) { + var raw = input.readVarint32_qfuf7h_k$(); + var temp = (raw << 31 >> 31 ^ raw) >> 1; + return temp ^ raw & -2147483648; + } + function decodeSignedVarintLong($this, input) { + var raw = input.readVarint64_c1l8ax_k$(false); + var temp = raw.shl_bg8if3_k$(63).shr_9fl3wl_k$(63).xor_gifw87_k$(raw).shr_9fl3wl_k$(1); + return temp.xor_gifw87_k$(raw.and_1dc02z_k$(new Long(0, -2147483648))); + } + function get_MISSING_TAG() { + return MISSING_TAG; + } + var MISSING_TAG; + function expand($this) { + $this.tagsStack_1 = copyOf($this.tagsStack_1, imul($this.tagsStack_1.length, 2)); + } + var NullableMode_ACCEPTABLE_instance; + var NullableMode_OPTIONAL_instance; + var NullableMode_COLLECTION_instance; + var NullableMode_NOT_NULL_instance; + var NullableMode_entriesInitialized; + function NullableMode_initEntries() { + if (NullableMode_entriesInitialized) + return Unit_instance; + NullableMode_entriesInitialized = true; + NullableMode_ACCEPTABLE_instance = new NullableMode('ACCEPTABLE', 0); + NullableMode_OPTIONAL_instance = new NullableMode('OPTIONAL', 1); + NullableMode_COLLECTION_instance = new NullableMode('COLLECTION', 2); + NullableMode_NOT_NULL_instance = new NullableMode('NOT_NULL', 3); + } + function NullableMode_ACCEPTABLE_getInstance() { + NullableMode_initEntries(); + return NullableMode_ACCEPTABLE_instance; + } + function NullableMode_OPTIONAL_getInstance() { + NullableMode_initEntries(); + return NullableMode_OPTIONAL_instance; + } + function NullableMode_COLLECTION_getInstance() { + NullableMode_initEntries(); + return NullableMode_COLLECTION_instance; + } + function NullableMode_NOT_NULL_getInstance() { + NullableMode_initEntries(); + return NullableMode_NOT_NULL_instance; + } + function encode32(_this__u8e3s4, $this, number, format) { + var tmp0_subject = format; + var tmp0 = tmp0_subject.ordinal_1; + switch (tmp0) { + case 2: + $this.out_1.writeInt_i8xgjs_k$(reverseBytes_1(number)); + Unit_instance; + break; + case 0: + _this__u8e3s4.encodeVarint64_kcevbe_k$(toLong_0(number)); + Unit_instance; + break; + case 1: + _this__u8e3s4.encodeVarint32_6iuzv9_k$(number << 1 ^ number >> 31); + Unit_instance; + break; + } + } + function encode32$default(_this__u8e3s4, $this, number, format, $super) { + format = format === VOID ? ProtoIntegerType_DEFAULT_getInstance() : format; + return encode32(_this__u8e3s4, $this, number, format); + } + function encode64(_this__u8e3s4, $this, number, format) { + var tmp0_subject = format; + var tmp0 = tmp0_subject.ordinal_1; + switch (tmp0) { + case 2: + $this.out_1.writeLong_hrcb1l_k$(reverseBytes_2(number)); + Unit_instance; + break; + case 0: + _this__u8e3s4.encodeVarint64_kcevbe_k$(number); + Unit_instance; + break; + case 1: + _this__u8e3s4.encodeVarint64_kcevbe_k$(number.shl_bg8if3_k$(1).xor_gifw87_k$(number.shr_9fl3wl_k$(63))); + Unit_instance; + break; + } + } + function encode64$default(_this__u8e3s4, $this, number, format, $super) { + format = format === VOID ? ProtoIntegerType_DEFAULT_getInstance() : format; + return encode64(_this__u8e3s4, $this, number, format); + } + function reverseBytes(_this__u8e3s4, $this) { + return reverseBytes_1(toRawBits(_this__u8e3s4)); + } + function reverseBytes_0(_this__u8e3s4, $this) { + return reverseBytes_2(toRawBits_0(_this__u8e3s4)); + } + var Companion_instance_11; + function Companion_getInstance_11() { + if (Companion_instance_11 === VOID) + new Companion_11(); + return Companion_instance_11; + } + function ensureCapacity_0($this, elementsToAppend) { + if (($this.position_1 + elementsToAppend | 0) <= $this.array_1.length) { + return Unit_instance; + } + var newArray = new Int8Array(takeHighestOneBit($this.position_1 + elementsToAppend | 0) << 1); + var tmp$ret$4; + // Inline function 'kotlin.collections.copyInto' call + var this_0 = $this.array_1; + var destination = newArray; + var destinationOffset = 0; + var startIndex = 0; + var endIndex = this_0.length; + var tmp$ret$1; + // Inline function 'kotlin.js.unsafeCast' call + var this_1 = this_0; + var tmp$ret$0; + // Inline function 'kotlin.js.asDynamic' call + var this_2 = this_1; + tmp$ret$0 = this_2; + tmp$ret$1 = tmp$ret$0; + var tmp = tmp$ret$1; + var tmp$ret$3; + // Inline function 'kotlin.js.unsafeCast' call + var this_3 = destination; + var tmp$ret$2; + // Inline function 'kotlin.js.asDynamic' call + var this_4 = this_3; + tmp$ret$2 = this_4; + tmp$ret$3 = tmp$ret$2; + arrayCopy(tmp, tmp$ret$3, destinationOffset, startIndex, endIndex); + tmp$ret$4 = destination; + Unit_instance; + $this.array_1 = newArray; + } + function encodeVarint($this, value, length) { + var current = value; + var inductionVariable = 0; + if (inductionVariable < length) + do { + var i = inductionVariable; + inductionVariable = inductionVariable + 1 | 0; + $this.array_1[$this.position_1 + i | 0] = current.and_1dc02z_k$(new Long(127, 0)).or_sl8881_k$(new Long(128, 0)).toByte_edm0nx_k$(); + current = current.ushr_z7nmq8_k$(7); + } + while (inductionVariable < length); + $this.array_1[$this.position_1 + length | 0] = current.toByte_edm0nx_k$(); + var tmp1_this = $this; + tmp1_this.position_1 = tmp1_this.position_1 + (length + 1 | 0) | 0; + } + function varIntLength($this, value) { + return Companion_getInstance_11().VAR_INT_LENGTHS_1[countLeadingZeroBits(value)]; + } + function ensureEnoughBytes($this, bytesCount) { + if (bytesCount > $this.get_availableBytes_11q47p_k$()) { + throw SerializationException.new_kotlinx_serialization_SerializationException_jj1itu_k$('Unexpected EOF, available ' + $this.get_availableBytes_11q47p_k$() + ' bytes, requested: ' + bytesCount); + } + } + function eof($this) { + throw SerializationException.new_kotlinx_serialization_SerializationException_jj1itu_k$('Unexpected EOF'); + } + function readVarint64SlowPath($this) { + var result = new Long(0, 0); + var shift = 0; + while (shift < 64) { + var byte = $this.read_22xsm_k$(); + result = result.or_sl8881_k$(toLong_0(byte & 127).shl_bg8if3_k$(shift)); + if ((byte & 128) === 0) { + return result; + } + shift = shift + 7 | 0; + } + throw SerializationException.new_kotlinx_serialization_SerializationException_jj1itu_k$('Input stream is malformed: Varint too long (exceeded 64 bits)'); + } + function readVarint32SlowPath($this) { + var result = 0; + var shift = 0; + while (shift < 32) { + var byte = $this.read_22xsm_k$(); + result = result | (byte & 127) << shift; + if ((byte & 128) === 0) { + return result; + } + shift = shift + 7 | 0; + } + throw SerializationException.new_kotlinx_serialization_SerializationException_jj1itu_k$('Input stream is malformed: Varint too long (exceeded 32 bits)'); + } + function reverseBytes_1(_this__u8e3s4) { + return reverseBytes_3(toShort(_this__u8e3s4 & 65535)) << 16 | reverseBytes_3(toShort(_this__u8e3s4 >>> 16 | 0)) & 65535; + } + function reverseBytes_2(_this__u8e3s4) { + return toLong_0(reverseBytes_1(_this__u8e3s4.and_1dc02z_k$(new Long(-1, 0)).toInt_1tsl84_k$())).shl_bg8if3_k$(32).or_sl8881_k$(toLong_0(reverseBytes_1(_this__u8e3s4.ushr_z7nmq8_k$(32).toInt_1tsl84_k$())).and_1dc02z_k$(new Long(-1, 0))); + } + function reverseBytes_3(_this__u8e3s4) { + return toShort((_this__u8e3s4 & 255) << 8 | ((_this__u8e3s4 & 65535) >>> 8 | 0)); + } + function KNeuron$simpleTrackT$lambda() { + return true; + } + var KNeuron_instance; + function KNeuron_getInstance() { + if (KNeuron_instance === VOID) + new KNeuron(); + return KNeuron_instance; + } + function get_mPlatformNeuron() { + var tmp = mPlatformNeuron; + if (!(tmp == null)) + return tmp; + else { + throwUninitializedPropertyAccessException('mPlatformNeuron'); + } + } + var mPlatformNeuron; + function injectPlatformNeuron(neuron) { + mPlatformNeuron = neuron; + } + function _get_mPlatformNeuron_$accessor$l84lya_pc869p() { + return get_mPlatformNeuron(); + } + var Companion_instance_12; + function Companion_getInstance_12() { + return Companion_instance_12; + } + var $serializer_instance; + function $serializer_getInstance() { + if ($serializer_instance === VOID) + new $serializer(); + return $serializer_instance; + } + var Companion_instance_13; + function Companion_getInstance_13() { + if (Companion_instance_13 === VOID) + new Companion_13(); + return Companion_instance_13; + } + var $serializer_instance_0; + function $serializer_getInstance_0() { + if ($serializer_instance_0 === VOID) + new $serializer_0(); + return $serializer_instance_0; + } + var Companion_instance_14; + function Companion_getInstance_14() { + if (Companion_instance_14 === VOID) + new Companion_14(); + return Companion_instance_14; + } + var $serializer_instance_1; + function $serializer_getInstance_1() { + if ($serializer_instance_1 === VOID) + new $serializer_1(); + return $serializer_instance_1; + } + var Companion_instance_15; + function Companion_getInstance_15() { + return Companion_instance_15; + } + var $serializer_instance_2; + function $serializer_getInstance_2() { + if ($serializer_instance_2 === VOID) + new $serializer_2(); + return $serializer_instance_2; + } + var Companion_instance_16; + function Companion_getInstance_16() { + return Companion_instance_16; + } + var $serializer_instance_3; + function $serializer_getInstance_3() { + if ($serializer_instance_3 === VOID) + new $serializer_3(); + return $serializer_instance_3; + } + var Companion_instance_17; + function Companion_getInstance_17() { + if (Companion_instance_17 === VOID) + new Companion_17(); + return Companion_instance_17; + } + var $serializer_instance_4; + function $serializer_getInstance_4() { + if ($serializer_instance_4 === VOID) + new $serializer_4(); + return $serializer_instance_4; + } + function _get_$cachedSerializer__te6jhj($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KCodeGeneratorResponse$KFeature$Companion$values$delegate$lambda() { + return listOf_0([KFeature_NONE_getInstance(), KFeature_PROTO3_OPTIONAL_getInstance()]); + } + function KCodeGeneratorResponse$KFeature$Companion$_anonymous__4sq3l0() { + return $serializer_getInstance_5(); + } + var KFeature_NONE_instance; + var KFeature_PROTO3_OPTIONAL_instance; + var KFeature_UNRECOGNIZED_instance; + var Companion_instance_18; + function Companion_getInstance_18() { + KFeature_initEntries(); + if (Companion_instance_18 === VOID) + new Companion_18(); + return Companion_instance_18; + } + var $serializer_instance_5; + function $serializer_getInstance_5() { + KFeature_initEntries(); + if ($serializer_instance_5 === VOID) + new $serializer_5(); + return $serializer_instance_5; + } + function values() { + return [KFeature_NONE_getInstance(), KFeature_PROTO3_OPTIONAL_getInstance(), KFeature_UNRECOGNIZED_getInstance()]; + } + function valueOf(value) { + switch (value) { + case 'NONE': + return KFeature_NONE_getInstance(); + case 'PROTO3_OPTIONAL': + return KFeature_PROTO3_OPTIONAL_getInstance(); + case 'UNRECOGNIZED': + return KFeature_UNRECOGNIZED_getInstance(); + default: + KFeature_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KFeature_entriesInitialized; + function KFeature_initEntries() { + if (KFeature_entriesInitialized) + return Unit_instance; + KFeature_entriesInitialized = true; + KFeature_NONE_instance = new KFeature('NONE', 0, 0); + KFeature_PROTO3_OPTIONAL_instance = new KFeature('PROTO3_OPTIONAL', 1, 1); + KFeature_UNRECOGNIZED_instance = new KFeature('UNRECOGNIZED', 2, -1); + Companion_getInstance_18(); + } + var Companion_instance_19; + function Companion_getInstance_19() { + return Companion_instance_19; + } + var $serializer_instance_6; + function $serializer_getInstance_6() { + if ($serializer_instance_6 === VOID) + new $serializer_6(); + return $serializer_instance_6; + } + var Companion_instance_20; + function Companion_getInstance_20() { + if (Companion_instance_20 === VOID) + new Companion_20(); + return Companion_instance_20; + } + var $serializer_instance_7; + function $serializer_getInstance_7() { + if ($serializer_instance_7 === VOID) + new $serializer_7(); + return $serializer_instance_7; + } + function KFeature_NONE_getInstance() { + KFeature_initEntries(); + return KFeature_NONE_instance; + } + function KFeature_PROTO3_OPTIONAL_getInstance() { + KFeature_initEntries(); + return KFeature_PROTO3_OPTIONAL_instance; + } + function KFeature_UNRECOGNIZED_getInstance() { + KFeature_initEntries(); + return KFeature_UNRECOGNIZED_instance; + } + function values$factory() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + var Companion_instance_21; + function Companion_getInstance_21() { + if (Companion_instance_21 === VOID) + new Companion_21(); + return Companion_instance_21; + } + var $serializer_instance_8; + function $serializer_getInstance_8() { + if ($serializer_instance_8 === VOID) + new $serializer_8(); + return $serializer_instance_8; + } + var Companion_instance_22; + function Companion_getInstance_22() { + if (Companion_instance_22 === VOID) + new Companion_22(); + return Companion_instance_22; + } + var $serializer_instance_9; + function $serializer_getInstance_9() { + if ($serializer_instance_9 === VOID) + new $serializer_9(); + return $serializer_instance_9; + } + var Companion_instance_23; + function Companion_getInstance_23() { + return Companion_instance_23; + } + var $serializer_instance_10; + function $serializer_getInstance_10() { + if ($serializer_instance_10 === VOID) + new $serializer_10(); + return $serializer_instance_10; + } + var Companion_instance_24; + function Companion_getInstance_24() { + return Companion_instance_24; + } + var $serializer_instance_11; + function $serializer_getInstance_11() { + if ($serializer_instance_11 === VOID) + new $serializer_11(); + return $serializer_instance_11; + } + var Companion_instance_25; + function Companion_getInstance_25() { + if (Companion_instance_25 === VOID) + new Companion_25(); + return Companion_instance_25; + } + var $serializer_instance_12; + function $serializer_getInstance_12() { + if ($serializer_instance_12 === VOID) + new $serializer_12(); + return $serializer_instance_12; + } + var Companion_instance_26; + function Companion_getInstance_26() { + if (Companion_instance_26 === VOID) + new Companion_26(); + return Companion_instance_26; + } + var $serializer_instance_13; + function $serializer_getInstance_13() { + if ($serializer_instance_13 === VOID) + new $serializer_13(); + return $serializer_instance_13; + } + function _get_$cachedSerializer__te6jhj_0($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KFieldDescriptorProto$KType$Companion$values$delegate$lambda() { + return listOf_0([KType_DOUBLE_getInstance(), KType_FLOAT_getInstance(), KType_INT64_getInstance(), KType_UINT64_getInstance(), KType_INT32_getInstance(), KType_FIXED64_getInstance(), KType_FIXED32_getInstance(), KType_BOOL_getInstance(), KType_STRING_getInstance(), KType_GROUP_getInstance(), KType_MESSAGE_getInstance(), KType_BYTES_getInstance(), KType_UINT32_getInstance(), KType_ENUM_getInstance(), KType_SFIXED32_getInstance(), KType_SFIXED64_getInstance(), KType_SINT32_getInstance(), KType_SINT64_getInstance()]); + } + function KFieldDescriptorProto$KType$Companion$_anonymous__3yuois() { + return $serializer_getInstance_14(); + } + var KType_DOUBLE_instance; + var KType_FLOAT_instance; + var KType_INT64_instance; + var KType_UINT64_instance; + var KType_INT32_instance; + var KType_FIXED64_instance; + var KType_FIXED32_instance; + var KType_BOOL_instance; + var KType_STRING_instance; + var KType_GROUP_instance; + var KType_MESSAGE_instance; + var KType_BYTES_instance; + var KType_UINT32_instance; + var KType_ENUM_instance; + var KType_SFIXED32_instance; + var KType_SFIXED64_instance; + var KType_SINT32_instance; + var KType_SINT64_instance; + var KType_UNRECOGNIZED_instance; + var Companion_instance_27; + function Companion_getInstance_27() { + KType_initEntries(); + if (Companion_instance_27 === VOID) + new Companion_27(); + return Companion_instance_27; + } + var $serializer_instance_14; + function $serializer_getInstance_14() { + KType_initEntries(); + if ($serializer_instance_14 === VOID) + new $serializer_14(); + return $serializer_instance_14; + } + function values_0() { + return [KType_DOUBLE_getInstance(), KType_FLOAT_getInstance(), KType_INT64_getInstance(), KType_UINT64_getInstance(), KType_INT32_getInstance(), KType_FIXED64_getInstance(), KType_FIXED32_getInstance(), KType_BOOL_getInstance(), KType_STRING_getInstance(), KType_GROUP_getInstance(), KType_MESSAGE_getInstance(), KType_BYTES_getInstance(), KType_UINT32_getInstance(), KType_ENUM_getInstance(), KType_SFIXED32_getInstance(), KType_SFIXED64_getInstance(), KType_SINT32_getInstance(), KType_SINT64_getInstance(), KType_UNRECOGNIZED_getInstance()]; + } + function valueOf_0(value) { + switch (value) { + case 'DOUBLE': + return KType_DOUBLE_getInstance(); + case 'FLOAT': + return KType_FLOAT_getInstance(); + case 'INT64': + return KType_INT64_getInstance(); + case 'UINT64': + return KType_UINT64_getInstance(); + case 'INT32': + return KType_INT32_getInstance(); + case 'FIXED64': + return KType_FIXED64_getInstance(); + case 'FIXED32': + return KType_FIXED32_getInstance(); + case 'BOOL': + return KType_BOOL_getInstance(); + case 'STRING': + return KType_STRING_getInstance(); + case 'GROUP': + return KType_GROUP_getInstance(); + case 'MESSAGE': + return KType_MESSAGE_getInstance(); + case 'BYTES': + return KType_BYTES_getInstance(); + case 'UINT32': + return KType_UINT32_getInstance(); + case 'ENUM': + return KType_ENUM_getInstance(); + case 'SFIXED32': + return KType_SFIXED32_getInstance(); + case 'SFIXED64': + return KType_SFIXED64_getInstance(); + case 'SINT32': + return KType_SINT32_getInstance(); + case 'SINT64': + return KType_SINT64_getInstance(); + case 'UNRECOGNIZED': + return KType_UNRECOGNIZED_getInstance(); + default: + KType_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KType_entriesInitialized; + function KType_initEntries() { + if (KType_entriesInitialized) + return Unit_instance; + KType_entriesInitialized = true; + KType_DOUBLE_instance = new KType('DOUBLE', 0, 1); + KType_FLOAT_instance = new KType('FLOAT', 1, 2); + KType_INT64_instance = new KType('INT64', 2, 3); + KType_UINT64_instance = new KType('UINT64', 3, 4); + KType_INT32_instance = new KType('INT32', 4, 5); + KType_FIXED64_instance = new KType('FIXED64', 5, 6); + KType_FIXED32_instance = new KType('FIXED32', 6, 7); + KType_BOOL_instance = new KType('BOOL', 7, 8); + KType_STRING_instance = new KType('STRING', 8, 9); + KType_GROUP_instance = new KType('GROUP', 9, 10); + KType_MESSAGE_instance = new KType('MESSAGE', 10, 11); + KType_BYTES_instance = new KType('BYTES', 11, 12); + KType_UINT32_instance = new KType('UINT32', 12, 13); + KType_ENUM_instance = new KType('ENUM', 13, 14); + KType_SFIXED32_instance = new KType('SFIXED32', 14, 15); + KType_SFIXED64_instance = new KType('SFIXED64', 15, 16); + KType_SINT32_instance = new KType('SINT32', 16, 17); + KType_SINT64_instance = new KType('SINT64', 17, 18); + KType_UNRECOGNIZED_instance = new KType('UNRECOGNIZED', 18, -1); + Companion_getInstance_27(); + } + function _get_$cachedSerializer__te6jhj_1($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KFieldDescriptorProto$KLabel$Companion$values$delegate$lambda() { + return listOf_0([KLabel_OPTIONAL_getInstance(), KLabel_REQUIRED_getInstance(), KLabel_REPEATED_getInstance()]); + } + function KFieldDescriptorProto$KLabel$Companion$_anonymous__txa9zo() { + return $serializer_getInstance_15(); + } + var KLabel_OPTIONAL_instance; + var KLabel_REQUIRED_instance; + var KLabel_REPEATED_instance; + var KLabel_UNRECOGNIZED_instance; + var Companion_instance_28; + function Companion_getInstance_28() { + KLabel_initEntries(); + if (Companion_instance_28 === VOID) + new Companion_28(); + return Companion_instance_28; + } + var $serializer_instance_15; + function $serializer_getInstance_15() { + KLabel_initEntries(); + if ($serializer_instance_15 === VOID) + new $serializer_15(); + return $serializer_instance_15; + } + function values_1() { + return [KLabel_OPTIONAL_getInstance(), KLabel_REQUIRED_getInstance(), KLabel_REPEATED_getInstance(), KLabel_UNRECOGNIZED_getInstance()]; + } + function valueOf_1(value) { + switch (value) { + case 'OPTIONAL': + return KLabel_OPTIONAL_getInstance(); + case 'REQUIRED': + return KLabel_REQUIRED_getInstance(); + case 'REPEATED': + return KLabel_REPEATED_getInstance(); + case 'UNRECOGNIZED': + return KLabel_UNRECOGNIZED_getInstance(); + default: + KLabel_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KLabel_entriesInitialized; + function KLabel_initEntries() { + if (KLabel_entriesInitialized) + return Unit_instance; + KLabel_entriesInitialized = true; + KLabel_OPTIONAL_instance = new KLabel('OPTIONAL', 0, 1); + KLabel_REQUIRED_instance = new KLabel('REQUIRED', 1, 2); + KLabel_REPEATED_instance = new KLabel('REPEATED', 2, 3); + KLabel_UNRECOGNIZED_instance = new KLabel('UNRECOGNIZED', 3, -1); + Companion_getInstance_28(); + } + var Companion_instance_29; + function Companion_getInstance_29() { + return Companion_instance_29; + } + var $serializer_instance_16; + function $serializer_getInstance_16() { + if ($serializer_instance_16 === VOID) + new $serializer_16(); + return $serializer_instance_16; + } + function KType_DOUBLE_getInstance() { + KType_initEntries(); + return KType_DOUBLE_instance; + } + function KType_FLOAT_getInstance() { + KType_initEntries(); + return KType_FLOAT_instance; + } + function KType_INT64_getInstance() { + KType_initEntries(); + return KType_INT64_instance; + } + function KType_UINT64_getInstance() { + KType_initEntries(); + return KType_UINT64_instance; + } + function KType_INT32_getInstance() { + KType_initEntries(); + return KType_INT32_instance; + } + function KType_FIXED64_getInstance() { + KType_initEntries(); + return KType_FIXED64_instance; + } + function KType_FIXED32_getInstance() { + KType_initEntries(); + return KType_FIXED32_instance; + } + function KType_BOOL_getInstance() { + KType_initEntries(); + return KType_BOOL_instance; + } + function KType_STRING_getInstance() { + KType_initEntries(); + return KType_STRING_instance; + } + function KType_GROUP_getInstance() { + KType_initEntries(); + return KType_GROUP_instance; + } + function KType_MESSAGE_getInstance() { + KType_initEntries(); + return KType_MESSAGE_instance; + } + function KType_BYTES_getInstance() { + KType_initEntries(); + return KType_BYTES_instance; + } + function KType_UINT32_getInstance() { + KType_initEntries(); + return KType_UINT32_instance; + } + function KType_ENUM_getInstance() { + KType_initEntries(); + return KType_ENUM_instance; + } + function KType_SFIXED32_getInstance() { + KType_initEntries(); + return KType_SFIXED32_instance; + } + function KType_SFIXED64_getInstance() { + KType_initEntries(); + return KType_SFIXED64_instance; + } + function KType_SINT32_getInstance() { + KType_initEntries(); + return KType_SINT32_instance; + } + function KType_SINT64_getInstance() { + KType_initEntries(); + return KType_SINT64_instance; + } + function KType_UNRECOGNIZED_getInstance() { + KType_initEntries(); + return KType_UNRECOGNIZED_instance; + } + function KLabel_OPTIONAL_getInstance() { + KLabel_initEntries(); + return KLabel_OPTIONAL_instance; + } + function KLabel_REQUIRED_getInstance() { + KLabel_initEntries(); + return KLabel_REQUIRED_instance; + } + function KLabel_REPEATED_getInstance() { + KLabel_initEntries(); + return KLabel_REPEATED_instance; + } + function KLabel_UNRECOGNIZED_getInstance() { + KLabel_initEntries(); + return KLabel_UNRECOGNIZED_instance; + } + var Companion_instance_30; + function Companion_getInstance_30() { + return Companion_instance_30; + } + var $serializer_instance_17; + function $serializer_getInstance_17() { + if ($serializer_instance_17 === VOID) + new $serializer_17(); + return $serializer_instance_17; + } + var Companion_instance_31; + function Companion_getInstance_31() { + return Companion_instance_31; + } + var $serializer_instance_18; + function $serializer_getInstance_18() { + if ($serializer_instance_18 === VOID) + new $serializer_18(); + return $serializer_instance_18; + } + var Companion_instance_32; + function Companion_getInstance_32() { + if (Companion_instance_32 === VOID) + new Companion_32(); + return Companion_instance_32; + } + var $serializer_instance_19; + function $serializer_getInstance_19() { + if ($serializer_instance_19 === VOID) + new $serializer_19(); + return $serializer_instance_19; + } + var Companion_instance_33; + function Companion_getInstance_33() { + return Companion_instance_33; + } + var $serializer_instance_20; + function $serializer_getInstance_20() { + if ($serializer_instance_20 === VOID) + new $serializer_20(); + return $serializer_instance_20; + } + var Companion_instance_34; + function Companion_getInstance_34() { + if (Companion_instance_34 === VOID) + new Companion_34(); + return Companion_instance_34; + } + var $serializer_instance_21; + function $serializer_getInstance_21() { + if ($serializer_instance_21 === VOID) + new $serializer_21(); + return $serializer_instance_21; + } + var Companion_instance_35; + function Companion_getInstance_35() { + return Companion_instance_35; + } + var $serializer_instance_22; + function $serializer_getInstance_22() { + if ($serializer_instance_22 === VOID) + new $serializer_22(); + return $serializer_instance_22; + } + function _get_$cachedSerializer__te6jhj_2($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KFileOptions$KOptimizeMode$Companion$values$delegate$lambda() { + return listOf_0([KOptimizeMode_SPEED_getInstance(), KOptimizeMode_CODE_SIZE_getInstance(), KOptimizeMode_LITE_RUNTIME_getInstance()]); + } + function KFileOptions$KOptimizeMode$Companion$_anonymous__emz6en() { + return $serializer_getInstance_23(); + } + var KOptimizeMode_SPEED_instance; + var KOptimizeMode_CODE_SIZE_instance; + var KOptimizeMode_LITE_RUNTIME_instance; + var KOptimizeMode_UNRECOGNIZED_instance; + var Companion_instance_36; + function Companion_getInstance_36() { + KOptimizeMode_initEntries(); + if (Companion_instance_36 === VOID) + new Companion_36(); + return Companion_instance_36; + } + var $serializer_instance_23; + function $serializer_getInstance_23() { + KOptimizeMode_initEntries(); + if ($serializer_instance_23 === VOID) + new $serializer_23(); + return $serializer_instance_23; + } + function values_2() { + return [KOptimizeMode_SPEED_getInstance(), KOptimizeMode_CODE_SIZE_getInstance(), KOptimizeMode_LITE_RUNTIME_getInstance(), KOptimizeMode_UNRECOGNIZED_getInstance()]; + } + function valueOf_2(value) { + switch (value) { + case 'SPEED': + return KOptimizeMode_SPEED_getInstance(); + case 'CODE_SIZE': + return KOptimizeMode_CODE_SIZE_getInstance(); + case 'LITE_RUNTIME': + return KOptimizeMode_LITE_RUNTIME_getInstance(); + case 'UNRECOGNIZED': + return KOptimizeMode_UNRECOGNIZED_getInstance(); + default: + KOptimizeMode_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KOptimizeMode_entriesInitialized; + function KOptimizeMode_initEntries() { + if (KOptimizeMode_entriesInitialized) + return Unit_instance; + KOptimizeMode_entriesInitialized = true; + KOptimizeMode_SPEED_instance = new KOptimizeMode('SPEED', 0, 1); + KOptimizeMode_CODE_SIZE_instance = new KOptimizeMode('CODE_SIZE', 1, 2); + KOptimizeMode_LITE_RUNTIME_instance = new KOptimizeMode('LITE_RUNTIME', 2, 3); + KOptimizeMode_UNRECOGNIZED_instance = new KOptimizeMode('UNRECOGNIZED', 3, -1); + Companion_getInstance_36(); + } + var Companion_instance_37; + function Companion_getInstance_37() { + if (Companion_instance_37 === VOID) + new Companion_37(); + return Companion_instance_37; + } + var $serializer_instance_24; + function $serializer_getInstance_24() { + if ($serializer_instance_24 === VOID) + new $serializer_24(); + return $serializer_instance_24; + } + function KOptimizeMode_SPEED_getInstance() { + KOptimizeMode_initEntries(); + return KOptimizeMode_SPEED_instance; + } + function KOptimizeMode_CODE_SIZE_getInstance() { + KOptimizeMode_initEntries(); + return KOptimizeMode_CODE_SIZE_instance; + } + function KOptimizeMode_LITE_RUNTIME_getInstance() { + KOptimizeMode_initEntries(); + return KOptimizeMode_LITE_RUNTIME_instance; + } + function KOptimizeMode_UNRECOGNIZED_getInstance() { + KOptimizeMode_initEntries(); + return KOptimizeMode_UNRECOGNIZED_instance; + } + var Companion_instance_38; + function Companion_getInstance_38() { + if (Companion_instance_38 === VOID) + new Companion_38(); + return Companion_instance_38; + } + var $serializer_instance_25; + function $serializer_getInstance_25() { + if ($serializer_instance_25 === VOID) + new $serializer_25(); + return $serializer_instance_25; + } + function _get_$cachedSerializer__te6jhj_3($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KFieldOptions$KCType$Companion$values$delegate$lambda() { + return listOf_0([KCType_STRING_getInstance(), KCType_CORD_getInstance(), KCType_STRING_PIECE_getInstance()]); + } + function KFieldOptions$KCType$Companion$_anonymous__kgjga0() { + return $serializer_getInstance_26(); + } + var KCType_STRING_instance; + var KCType_CORD_instance; + var KCType_STRING_PIECE_instance; + var KCType_UNRECOGNIZED_instance; + var Companion_instance_39; + function Companion_getInstance_39() { + KCType_initEntries(); + if (Companion_instance_39 === VOID) + new Companion_39(); + return Companion_instance_39; + } + var $serializer_instance_26; + function $serializer_getInstance_26() { + KCType_initEntries(); + if ($serializer_instance_26 === VOID) + new $serializer_26(); + return $serializer_instance_26; + } + function values_3() { + return [KCType_STRING_getInstance(), KCType_CORD_getInstance(), KCType_STRING_PIECE_getInstance(), KCType_UNRECOGNIZED_getInstance()]; + } + function valueOf_3(value) { + switch (value) { + case 'STRING': + return KCType_STRING_getInstance(); + case 'CORD': + return KCType_CORD_getInstance(); + case 'STRING_PIECE': + return KCType_STRING_PIECE_getInstance(); + case 'UNRECOGNIZED': + return KCType_UNRECOGNIZED_getInstance(); + default: + KCType_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KCType_entriesInitialized; + function KCType_initEntries() { + if (KCType_entriesInitialized) + return Unit_instance; + KCType_entriesInitialized = true; + KCType_STRING_instance = new KCType('STRING', 0, 0); + KCType_CORD_instance = new KCType('CORD', 1, 1); + KCType_STRING_PIECE_instance = new KCType('STRING_PIECE', 2, 2); + KCType_UNRECOGNIZED_instance = new KCType('UNRECOGNIZED', 3, -1); + Companion_getInstance_39(); + } + function _get_$cachedSerializer__te6jhj_4($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KFieldOptions$KJSType$Companion$values$delegate$lambda() { + return listOf_0([KJSType_JS_NORMAL_getInstance(), KJSType_JS_STRING_getInstance(), KJSType_JS_NUMBER_getInstance()]); + } + function KFieldOptions$KJSType$Companion$_anonymous__2z0v5i() { + return $serializer_getInstance_27(); + } + var KJSType_JS_NORMAL_instance; + var KJSType_JS_STRING_instance; + var KJSType_JS_NUMBER_instance; + var KJSType_UNRECOGNIZED_instance; + var Companion_instance_40; + function Companion_getInstance_40() { + KJSType_initEntries(); + if (Companion_instance_40 === VOID) + new Companion_40(); + return Companion_instance_40; + } + var $serializer_instance_27; + function $serializer_getInstance_27() { + KJSType_initEntries(); + if ($serializer_instance_27 === VOID) + new $serializer_27(); + return $serializer_instance_27; + } + function values_4() { + return [KJSType_JS_NORMAL_getInstance(), KJSType_JS_STRING_getInstance(), KJSType_JS_NUMBER_getInstance(), KJSType_UNRECOGNIZED_getInstance()]; + } + function valueOf_4(value) { + switch (value) { + case 'JS_NORMAL': + return KJSType_JS_NORMAL_getInstance(); + case 'JS_STRING': + return KJSType_JS_STRING_getInstance(); + case 'JS_NUMBER': + return KJSType_JS_NUMBER_getInstance(); + case 'UNRECOGNIZED': + return KJSType_UNRECOGNIZED_getInstance(); + default: + KJSType_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KJSType_entriesInitialized; + function KJSType_initEntries() { + if (KJSType_entriesInitialized) + return Unit_instance; + KJSType_entriesInitialized = true; + KJSType_JS_NORMAL_instance = new KJSType('JS_NORMAL', 0, 0); + KJSType_JS_STRING_instance = new KJSType('JS_STRING', 1, 1); + KJSType_JS_NUMBER_instance = new KJSType('JS_NUMBER', 2, 2); + KJSType_UNRECOGNIZED_instance = new KJSType('UNRECOGNIZED', 3, -1); + Companion_getInstance_40(); + } + var Companion_instance_41; + function Companion_getInstance_41() { + if (Companion_instance_41 === VOID) + new Companion_41(); + return Companion_instance_41; + } + var $serializer_instance_28; + function $serializer_getInstance_28() { + if ($serializer_instance_28 === VOID) + new $serializer_28(); + return $serializer_instance_28; + } + function KCType_STRING_getInstance() { + KCType_initEntries(); + return KCType_STRING_instance; + } + function KCType_CORD_getInstance() { + KCType_initEntries(); + return KCType_CORD_instance; + } + function KCType_STRING_PIECE_getInstance() { + KCType_initEntries(); + return KCType_STRING_PIECE_instance; + } + function KCType_UNRECOGNIZED_getInstance() { + KCType_initEntries(); + return KCType_UNRECOGNIZED_instance; + } + function KJSType_JS_NORMAL_getInstance() { + KJSType_initEntries(); + return KJSType_JS_NORMAL_instance; + } + function KJSType_JS_STRING_getInstance() { + KJSType_initEntries(); + return KJSType_JS_STRING_instance; + } + function KJSType_JS_NUMBER_getInstance() { + KJSType_initEntries(); + return KJSType_JS_NUMBER_instance; + } + function KJSType_UNRECOGNIZED_getInstance() { + KJSType_initEntries(); + return KJSType_UNRECOGNIZED_instance; + } + var Companion_instance_42; + function Companion_getInstance_42() { + if (Companion_instance_42 === VOID) + new Companion_42(); + return Companion_instance_42; + } + var $serializer_instance_29; + function $serializer_getInstance_29() { + if ($serializer_instance_29 === VOID) + new $serializer_29(); + return $serializer_instance_29; + } + var Companion_instance_43; + function Companion_getInstance_43() { + if (Companion_instance_43 === VOID) + new Companion_43(); + return Companion_instance_43; + } + var $serializer_instance_30; + function $serializer_getInstance_30() { + if ($serializer_instance_30 === VOID) + new $serializer_30(); + return $serializer_instance_30; + } + var Companion_instance_44; + function Companion_getInstance_44() { + if (Companion_instance_44 === VOID) + new Companion_44(); + return Companion_instance_44; + } + var $serializer_instance_31; + function $serializer_getInstance_31() { + if ($serializer_instance_31 === VOID) + new $serializer_31(); + return $serializer_instance_31; + } + var Companion_instance_45; + function Companion_getInstance_45() { + if (Companion_instance_45 === VOID) + new Companion_45(); + return Companion_instance_45; + } + var $serializer_instance_32; + function $serializer_getInstance_32() { + if ($serializer_instance_32 === VOID) + new $serializer_32(); + return $serializer_instance_32; + } + function _get_$cachedSerializer__te6jhj_5($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KMethodOptions$KIdempotencyLevel$Companion$values$delegate$lambda() { + return listOf_0([KIdempotencyLevel_IDEMPOTENCY_UNKNOWN_getInstance(), KIdempotencyLevel_NO_SIDE_EFFECTS_getInstance(), KIdempotencyLevel_IDEMPOTENT_getInstance()]); + } + function KMethodOptions$KIdempotencyLevel$Companion$_anonymous__oerigt() { + return $serializer_getInstance_33(); + } + var KIdempotencyLevel_IDEMPOTENCY_UNKNOWN_instance; + var KIdempotencyLevel_NO_SIDE_EFFECTS_instance; + var KIdempotencyLevel_IDEMPOTENT_instance; + var KIdempotencyLevel_UNRECOGNIZED_instance; + var Companion_instance_46; + function Companion_getInstance_46() { + KIdempotencyLevel_initEntries(); + if (Companion_instance_46 === VOID) + new Companion_46(); + return Companion_instance_46; + } + var $serializer_instance_33; + function $serializer_getInstance_33() { + KIdempotencyLevel_initEntries(); + if ($serializer_instance_33 === VOID) + new $serializer_33(); + return $serializer_instance_33; + } + function values_5() { + return [KIdempotencyLevel_IDEMPOTENCY_UNKNOWN_getInstance(), KIdempotencyLevel_NO_SIDE_EFFECTS_getInstance(), KIdempotencyLevel_IDEMPOTENT_getInstance(), KIdempotencyLevel_UNRECOGNIZED_getInstance()]; + } + function valueOf_5(value) { + switch (value) { + case 'IDEMPOTENCY_UNKNOWN': + return KIdempotencyLevel_IDEMPOTENCY_UNKNOWN_getInstance(); + case 'NO_SIDE_EFFECTS': + return KIdempotencyLevel_NO_SIDE_EFFECTS_getInstance(); + case 'IDEMPOTENT': + return KIdempotencyLevel_IDEMPOTENT_getInstance(); + case 'UNRECOGNIZED': + return KIdempotencyLevel_UNRECOGNIZED_getInstance(); + default: + KIdempotencyLevel_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KIdempotencyLevel_entriesInitialized; + function KIdempotencyLevel_initEntries() { + if (KIdempotencyLevel_entriesInitialized) + return Unit_instance; + KIdempotencyLevel_entriesInitialized = true; + KIdempotencyLevel_IDEMPOTENCY_UNKNOWN_instance = new KIdempotencyLevel('IDEMPOTENCY_UNKNOWN', 0, 0); + KIdempotencyLevel_NO_SIDE_EFFECTS_instance = new KIdempotencyLevel('NO_SIDE_EFFECTS', 1, 1); + KIdempotencyLevel_IDEMPOTENT_instance = new KIdempotencyLevel('IDEMPOTENT', 2, 2); + KIdempotencyLevel_UNRECOGNIZED_instance = new KIdempotencyLevel('UNRECOGNIZED', 3, -1); + Companion_getInstance_46(); + } + var Companion_instance_47; + function Companion_getInstance_47() { + if (Companion_instance_47 === VOID) + new Companion_47(); + return Companion_instance_47; + } + var $serializer_instance_34; + function $serializer_getInstance_34() { + if ($serializer_instance_34 === VOID) + new $serializer_34(); + return $serializer_instance_34; + } + function KIdempotencyLevel_IDEMPOTENCY_UNKNOWN_getInstance() { + KIdempotencyLevel_initEntries(); + return KIdempotencyLevel_IDEMPOTENCY_UNKNOWN_instance; + } + function KIdempotencyLevel_NO_SIDE_EFFECTS_getInstance() { + KIdempotencyLevel_initEntries(); + return KIdempotencyLevel_NO_SIDE_EFFECTS_instance; + } + function KIdempotencyLevel_IDEMPOTENT_getInstance() { + KIdempotencyLevel_initEntries(); + return KIdempotencyLevel_IDEMPOTENT_instance; + } + function KIdempotencyLevel_UNRECOGNIZED_getInstance() { + KIdempotencyLevel_initEntries(); + return KIdempotencyLevel_UNRECOGNIZED_instance; + } + var Companion_instance_48; + function Companion_getInstance_48() { + return Companion_instance_48; + } + var $serializer_instance_35; + function $serializer_getInstance_35() { + if ($serializer_instance_35 === VOID) + new $serializer_35(); + return $serializer_instance_35; + } + var Companion_instance_49; + function Companion_getInstance_49() { + if (Companion_instance_49 === VOID) + new Companion_49(); + return Companion_instance_49; + } + var $serializer_instance_36; + function $serializer_getInstance_36() { + if ($serializer_instance_36 === VOID) + new $serializer_36(); + return $serializer_instance_36; + } + var Companion_instance_50; + function Companion_getInstance_50() { + if (Companion_instance_50 === VOID) + new Companion_50(); + return Companion_instance_50; + } + var $serializer_instance_37; + function $serializer_getInstance_37() { + if ($serializer_instance_37 === VOID) + new $serializer_37(); + return $serializer_instance_37; + } + var Companion_instance_51; + function Companion_getInstance_51() { + if (Companion_instance_51 === VOID) + new Companion_51(); + return Companion_instance_51; + } + var $serializer_instance_38; + function $serializer_getInstance_38() { + if ($serializer_instance_38 === VOID) + new $serializer_38(); + return $serializer_instance_38; + } + var Companion_instance_52; + function Companion_getInstance_52() { + if (Companion_instance_52 === VOID) + new Companion_52(); + return Companion_instance_52; + } + var $serializer_instance_39; + function $serializer_getInstance_39() { + if ($serializer_instance_39 === VOID) + new $serializer_39(); + return $serializer_instance_39; + } + var Companion_instance_53; + function Companion_getInstance_53() { + if (Companion_instance_53 === VOID) + new Companion_53(); + return Companion_instance_53; + } + var $serializer_instance_40; + function $serializer_getInstance_40() { + if ($serializer_instance_40 === VOID) + new $serializer_40(); + return $serializer_instance_40; + } + function values$factory_0() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_1() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_2() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_3() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_4() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_5() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + var Companion_instance_54; + function Companion_getInstance_54() { + return Companion_instance_54; + } + var $serializer_instance_41; + function $serializer_getInstance_41() { + if ($serializer_instance_41 === VOID) + new $serializer_41(); + return $serializer_instance_41; + } + var Companion_instance_55; + function Companion_getInstance_55() { + return Companion_instance_55; + } + var $serializer_instance_42; + function $serializer_getInstance_42() { + if ($serializer_instance_42 === VOID) + new $serializer_42(); + return $serializer_instance_42; + } + var Companion_instance_56; + function Companion_getInstance_56() { + if (Companion_instance_56 === VOID) + new Companion_56(); + return Companion_instance_56; + } + var $serializer_instance_43; + function $serializer_getInstance_43() { + if ($serializer_instance_43 === VOID) + new $serializer_43(); + return $serializer_instance_43; + } + var Companion_instance_57; + function Companion_getInstance_57() { + return Companion_instance_57; + } + var $serializer_instance_44; + function $serializer_getInstance_44() { + if ($serializer_instance_44 === VOID) + new $serializer_44(); + return $serializer_instance_44; + } + function _get_$cachedSerializer__te6jhj_6($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KNullValue$Companion$values$delegate$lambda() { + return listOf(KNullValue_NULL_VALUE_getInstance()); + } + function KNullValue$Companion$_anonymous__safs28() { + return $serializer_getInstance_45(); + } + var KNullValue_NULL_VALUE_instance; + var KNullValue_UNRECOGNIZED_instance; + var Companion_instance_58; + function Companion_getInstance_58() { + KNullValue_initEntries(); + if (Companion_instance_58 === VOID) + new Companion_58(); + return Companion_instance_58; + } + var $serializer_instance_45; + function $serializer_getInstance_45() { + KNullValue_initEntries(); + if ($serializer_instance_45 === VOID) + new $serializer_45(); + return $serializer_instance_45; + } + function values_6() { + return [KNullValue_NULL_VALUE_getInstance(), KNullValue_UNRECOGNIZED_getInstance()]; + } + function valueOf_6(value) { + switch (value) { + case 'NULL_VALUE': + return KNullValue_NULL_VALUE_getInstance(); + case 'UNRECOGNIZED': + return KNullValue_UNRECOGNIZED_getInstance(); + default: + KNullValue_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KNullValue_entriesInitialized; + function KNullValue_initEntries() { + if (KNullValue_entriesInitialized) + return Unit_instance; + KNullValue_entriesInitialized = true; + KNullValue_NULL_VALUE_instance = new KNullValue('NULL_VALUE', 0, 0); + KNullValue_UNRECOGNIZED_instance = new KNullValue('UNRECOGNIZED', 1, -1); + Companion_getInstance_58(); + } + var Companion_instance_59; + function Companion_getInstance_59() { + return Companion_instance_59; + } + var $serializer_instance_46; + function $serializer_getInstance_46() { + if ($serializer_instance_46 === VOID) + new $serializer_46(); + return $serializer_instance_46; + } + var Companion_instance_60; + function Companion_getInstance_60() { + if (Companion_instance_60 === VOID) + new Companion_60(); + return Companion_instance_60; + } + var $serializer_instance_47; + function $serializer_getInstance_47() { + if ($serializer_instance_47 === VOID) + new $serializer_47(); + return $serializer_instance_47; + } + function KValue$Companion$kindValues$delegate$lambda() { + return listOf_0([KNullValue_getInstance(), KNumberValue_getInstance(), KStringValue_getInstance(), KBoolValue_getInstance(), KStructValue_getInstance(), KListValue_getInstance()]); + } + function _get_kindNumber__e1o5ri($this) { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = $this.kindNumber$delegate_1; + var thisRef = $this; + var property = kindNumber$factory(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + var KNullValue_instance; + function KNullValue_getInstance() { + if (KNullValue_instance === VOID) + new KNullValue_0(); + return KNullValue_instance; + } + var KNumberValue_instance; + function KNumberValue_getInstance() { + if (KNumberValue_instance === VOID) + new KNumberValue(); + return KNumberValue_instance; + } + var KStringValue_instance; + function KStringValue_getInstance() { + if (KStringValue_instance === VOID) + new KStringValue(); + return KStringValue_instance; + } + var KBoolValue_instance; + function KBoolValue_getInstance() { + if (KBoolValue_instance === VOID) + new KBoolValue(); + return KBoolValue_instance; + } + var KStructValue_instance; + function KStructValue_getInstance() { + if (KStructValue_instance === VOID) + new KStructValue(); + return KStructValue_instance; + } + var KListValue_instance; + function KListValue_getInstance() { + if (KListValue_instance === VOID) + new KListValue(); + return KListValue_instance; + } + var Companion_instance_61; + function Companion_getInstance_61() { + if (Companion_instance_61 === VOID) + new Companion_61(); + return Companion_instance_61; + } + var $serializer_instance_48; + function $serializer_getInstance_48() { + if ($serializer_instance_48 === VOID) + new $serializer_48(); + return $serializer_instance_48; + } + function KValue$kindNumber$delegate$lambda(this$0) { + return function () { + var tmp; + if (!(this$0.nullValue_1 == null)) { + tmp = 0; + } else if (!(this$0.numberValue_1 == null)) { + tmp = 1; + } else if (!(this$0.stringValue_1 == null)) { + tmp = 2; + } else if (!(this$0.boolValue_1 == null)) { + tmp = 3; + } else if (!(this$0.structValue_1 == null)) { + tmp = 4; + } else if (!(this$0.listValue_1 == null)) { + tmp = 5; + } else { + tmp = -1; + } + return tmp; + }; + } + function KValue$_init_$lambda_xxcqh1(this$0) { + return function () { + var tmp; + if (!(this$0.nullValue_1 == null)) { + tmp = 0; + } else if (!(this$0.numberValue_1 == null)) { + tmp = 1; + } else if (!(this$0.stringValue_1 == null)) { + tmp = 2; + } else if (!(this$0.boolValue_1 == null)) { + tmp = 3; + } else if (!(this$0.structValue_1 == null)) { + tmp = 4; + } else if (!(this$0.listValue_1 == null)) { + tmp = 5; + } else { + tmp = -1; + } + return tmp; + }; + } + var Companion_instance_62; + function Companion_getInstance_62() { + if (Companion_instance_62 === VOID) + new Companion_62(); + return Companion_instance_62; + } + var $serializer_instance_49; + function $serializer_getInstance_49() { + if ($serializer_instance_49 === VOID) + new $serializer_49(); + return $serializer_instance_49; + } + function KNullValue_NULL_VALUE_getInstance() { + KNullValue_initEntries(); + return KNullValue_NULL_VALUE_instance; + } + function KNullValue_UNRECOGNIZED_getInstance() { + KNullValue_initEntries(); + return KNullValue_UNRECOGNIZED_instance; + } + function values$factory_6() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function kindNumber$factory() { + return getPropertyCallableRef('kindNumber', 1, KProperty1, function (receiver) { + return _get_kindNumber__e1o5ri(receiver); + }, null); + } + function kindValues$factory() { + return getPropertyCallableRef('kindValues', 1, KProperty1, function (receiver) { + return receiver.kindValues; + }, null); + } + var Companion_instance_63; + function Companion_getInstance_63() { + return Companion_instance_63; + } + var $serializer_instance_50; + function $serializer_getInstance_50() { + if ($serializer_instance_50 === VOID) + new $serializer_50(); + return $serializer_instance_50; + } + function _get_$cachedSerializer__te6jhj_7($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KSyntax$Companion$values$delegate$lambda() { + return listOf_0([KSyntax_PROTO2_getInstance(), KSyntax_PROTO3_getInstance()]); + } + function KSyntax$Companion$_anonymous__4b87vj() { + return $serializer_getInstance_51(); + } + var KSyntax_PROTO2_instance; + var KSyntax_PROTO3_instance; + var KSyntax_UNRECOGNIZED_instance; + var Companion_instance_64; + function Companion_getInstance_64() { + KSyntax_initEntries(); + if (Companion_instance_64 === VOID) + new Companion_64(); + return Companion_instance_64; + } + var $serializer_instance_51; + function $serializer_getInstance_51() { + KSyntax_initEntries(); + if ($serializer_instance_51 === VOID) + new $serializer_51(); + return $serializer_instance_51; + } + function values_7() { + return [KSyntax_PROTO2_getInstance(), KSyntax_PROTO3_getInstance(), KSyntax_UNRECOGNIZED_getInstance()]; + } + function valueOf_7(value) { + switch (value) { + case 'PROTO2': + return KSyntax_PROTO2_getInstance(); + case 'PROTO3': + return KSyntax_PROTO3_getInstance(); + case 'UNRECOGNIZED': + return KSyntax_UNRECOGNIZED_getInstance(); + default: + KSyntax_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KSyntax_entriesInitialized; + function KSyntax_initEntries() { + if (KSyntax_entriesInitialized) + return Unit_instance; + KSyntax_entriesInitialized = true; + KSyntax_PROTO2_instance = new KSyntax('PROTO2', 0, 0); + KSyntax_PROTO3_instance = new KSyntax('PROTO3', 1, 1); + KSyntax_UNRECOGNIZED_instance = new KSyntax('UNRECOGNIZED', 2, -1); + Companion_getInstance_64(); + } + var Companion_instance_65; + function Companion_getInstance_65() { + if (Companion_instance_65 === VOID) + new Companion_65(); + return Companion_instance_65; + } + var $serializer_instance_52; + function $serializer_getInstance_52() { + if ($serializer_instance_52 === VOID) + new $serializer_52(); + return $serializer_instance_52; + } + function _get_$cachedSerializer__te6jhj_8($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KField$KKind$Companion$values$delegate$lambda() { + return listOf_0([KKind_TYPE_UNKNOWN_getInstance(), KKind_TYPE_DOUBLE_getInstance(), KKind_TYPE_FLOAT_getInstance(), KKind_TYPE_INT64_getInstance(), KKind_TYPE_UINT64_getInstance(), KKind_TYPE_INT32_getInstance(), KKind_TYPE_FIXED64_getInstance(), KKind_TYPE_FIXED32_getInstance(), KKind_TYPE_BOOL_getInstance(), KKind_TYPE_STRING_getInstance(), KKind_TYPE_GROUP_getInstance(), KKind_TYPE_MESSAGE_getInstance(), KKind_TYPE_BYTES_getInstance(), KKind_TYPE_UINT32_getInstance(), KKind_TYPE_ENUM_getInstance(), KKind_TYPE_SFIXED32_getInstance(), KKind_TYPE_SFIXED64_getInstance(), KKind_TYPE_SINT32_getInstance(), KKind_TYPE_SINT64_getInstance()]); + } + function KField$KKind$Companion$_anonymous__potuqj() { + return $serializer_getInstance_53(); + } + var KKind_TYPE_UNKNOWN_instance; + var KKind_TYPE_DOUBLE_instance; + var KKind_TYPE_FLOAT_instance; + var KKind_TYPE_INT64_instance; + var KKind_TYPE_UINT64_instance; + var KKind_TYPE_INT32_instance; + var KKind_TYPE_FIXED64_instance; + var KKind_TYPE_FIXED32_instance; + var KKind_TYPE_BOOL_instance; + var KKind_TYPE_STRING_instance; + var KKind_TYPE_GROUP_instance; + var KKind_TYPE_MESSAGE_instance; + var KKind_TYPE_BYTES_instance; + var KKind_TYPE_UINT32_instance; + var KKind_TYPE_ENUM_instance; + var KKind_TYPE_SFIXED32_instance; + var KKind_TYPE_SFIXED64_instance; + var KKind_TYPE_SINT32_instance; + var KKind_TYPE_SINT64_instance; + var KKind_UNRECOGNIZED_instance; + var Companion_instance_66; + function Companion_getInstance_66() { + KKind_initEntries(); + if (Companion_instance_66 === VOID) + new Companion_66(); + return Companion_instance_66; + } + var $serializer_instance_53; + function $serializer_getInstance_53() { + KKind_initEntries(); + if ($serializer_instance_53 === VOID) + new $serializer_53(); + return $serializer_instance_53; + } + function values_8() { + return [KKind_TYPE_UNKNOWN_getInstance(), KKind_TYPE_DOUBLE_getInstance(), KKind_TYPE_FLOAT_getInstance(), KKind_TYPE_INT64_getInstance(), KKind_TYPE_UINT64_getInstance(), KKind_TYPE_INT32_getInstance(), KKind_TYPE_FIXED64_getInstance(), KKind_TYPE_FIXED32_getInstance(), KKind_TYPE_BOOL_getInstance(), KKind_TYPE_STRING_getInstance(), KKind_TYPE_GROUP_getInstance(), KKind_TYPE_MESSAGE_getInstance(), KKind_TYPE_BYTES_getInstance(), KKind_TYPE_UINT32_getInstance(), KKind_TYPE_ENUM_getInstance(), KKind_TYPE_SFIXED32_getInstance(), KKind_TYPE_SFIXED64_getInstance(), KKind_TYPE_SINT32_getInstance(), KKind_TYPE_SINT64_getInstance(), KKind_UNRECOGNIZED_getInstance()]; + } + function valueOf_8(value) { + switch (value) { + case 'TYPE_UNKNOWN': + return KKind_TYPE_UNKNOWN_getInstance(); + case 'TYPE_DOUBLE': + return KKind_TYPE_DOUBLE_getInstance(); + case 'TYPE_FLOAT': + return KKind_TYPE_FLOAT_getInstance(); + case 'TYPE_INT64': + return KKind_TYPE_INT64_getInstance(); + case 'TYPE_UINT64': + return KKind_TYPE_UINT64_getInstance(); + case 'TYPE_INT32': + return KKind_TYPE_INT32_getInstance(); + case 'TYPE_FIXED64': + return KKind_TYPE_FIXED64_getInstance(); + case 'TYPE_FIXED32': + return KKind_TYPE_FIXED32_getInstance(); + case 'TYPE_BOOL': + return KKind_TYPE_BOOL_getInstance(); + case 'TYPE_STRING': + return KKind_TYPE_STRING_getInstance(); + case 'TYPE_GROUP': + return KKind_TYPE_GROUP_getInstance(); + case 'TYPE_MESSAGE': + return KKind_TYPE_MESSAGE_getInstance(); + case 'TYPE_BYTES': + return KKind_TYPE_BYTES_getInstance(); + case 'TYPE_UINT32': + return KKind_TYPE_UINT32_getInstance(); + case 'TYPE_ENUM': + return KKind_TYPE_ENUM_getInstance(); + case 'TYPE_SFIXED32': + return KKind_TYPE_SFIXED32_getInstance(); + case 'TYPE_SFIXED64': + return KKind_TYPE_SFIXED64_getInstance(); + case 'TYPE_SINT32': + return KKind_TYPE_SINT32_getInstance(); + case 'TYPE_SINT64': + return KKind_TYPE_SINT64_getInstance(); + case 'UNRECOGNIZED': + return KKind_UNRECOGNIZED_getInstance(); + default: + KKind_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KKind_entriesInitialized; + function KKind_initEntries() { + if (KKind_entriesInitialized) + return Unit_instance; + KKind_entriesInitialized = true; + KKind_TYPE_UNKNOWN_instance = new KKind_0('TYPE_UNKNOWN', 0, 0); + KKind_TYPE_DOUBLE_instance = new KKind_0('TYPE_DOUBLE', 1, 1); + KKind_TYPE_FLOAT_instance = new KKind_0('TYPE_FLOAT', 2, 2); + KKind_TYPE_INT64_instance = new KKind_0('TYPE_INT64', 3, 3); + KKind_TYPE_UINT64_instance = new KKind_0('TYPE_UINT64', 4, 4); + KKind_TYPE_INT32_instance = new KKind_0('TYPE_INT32', 5, 5); + KKind_TYPE_FIXED64_instance = new KKind_0('TYPE_FIXED64', 6, 6); + KKind_TYPE_FIXED32_instance = new KKind_0('TYPE_FIXED32', 7, 7); + KKind_TYPE_BOOL_instance = new KKind_0('TYPE_BOOL', 8, 8); + KKind_TYPE_STRING_instance = new KKind_0('TYPE_STRING', 9, 9); + KKind_TYPE_GROUP_instance = new KKind_0('TYPE_GROUP', 10, 10); + KKind_TYPE_MESSAGE_instance = new KKind_0('TYPE_MESSAGE', 11, 11); + KKind_TYPE_BYTES_instance = new KKind_0('TYPE_BYTES', 12, 12); + KKind_TYPE_UINT32_instance = new KKind_0('TYPE_UINT32', 13, 13); + KKind_TYPE_ENUM_instance = new KKind_0('TYPE_ENUM', 14, 14); + KKind_TYPE_SFIXED32_instance = new KKind_0('TYPE_SFIXED32', 15, 15); + KKind_TYPE_SFIXED64_instance = new KKind_0('TYPE_SFIXED64', 16, 16); + KKind_TYPE_SINT32_instance = new KKind_0('TYPE_SINT32', 17, 17); + KKind_TYPE_SINT64_instance = new KKind_0('TYPE_SINT64', 18, 18); + KKind_UNRECOGNIZED_instance = new KKind_0('UNRECOGNIZED', 19, -1); + Companion_getInstance_66(); + } + function _get_$cachedSerializer__te6jhj_9($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KField$KCardinality$Companion$values$delegate$lambda() { + return listOf_0([KCardinality_UNKNOWN_getInstance(), KCardinality_OPTIONAL_getInstance(), KCardinality_REQUIRED_getInstance(), KCardinality_REPEATED_getInstance()]); + } + function KField$KCardinality$Companion$_anonymous__j6g97t() { + return $serializer_getInstance_54(); + } + var KCardinality_UNKNOWN_instance; + var KCardinality_OPTIONAL_instance; + var KCardinality_REQUIRED_instance; + var KCardinality_REPEATED_instance; + var KCardinality_UNRECOGNIZED_instance; + var Companion_instance_67; + function Companion_getInstance_67() { + KCardinality_initEntries(); + if (Companion_instance_67 === VOID) + new Companion_67(); + return Companion_instance_67; + } + var $serializer_instance_54; + function $serializer_getInstance_54() { + KCardinality_initEntries(); + if ($serializer_instance_54 === VOID) + new $serializer_54(); + return $serializer_instance_54; + } + function values_9() { + return [KCardinality_UNKNOWN_getInstance(), KCardinality_OPTIONAL_getInstance(), KCardinality_REQUIRED_getInstance(), KCardinality_REPEATED_getInstance(), KCardinality_UNRECOGNIZED_getInstance()]; + } + function valueOf_9(value) { + switch (value) { + case 'UNKNOWN': + return KCardinality_UNKNOWN_getInstance(); + case 'OPTIONAL': + return KCardinality_OPTIONAL_getInstance(); + case 'REQUIRED': + return KCardinality_REQUIRED_getInstance(); + case 'REPEATED': + return KCardinality_REPEATED_getInstance(); + case 'UNRECOGNIZED': + return KCardinality_UNRECOGNIZED_getInstance(); + default: + KCardinality_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KCardinality_entriesInitialized; + function KCardinality_initEntries() { + if (KCardinality_entriesInitialized) + return Unit_instance; + KCardinality_entriesInitialized = true; + KCardinality_UNKNOWN_instance = new KCardinality('UNKNOWN', 0, 0); + KCardinality_OPTIONAL_instance = new KCardinality('OPTIONAL', 1, 1); + KCardinality_REQUIRED_instance = new KCardinality('REQUIRED', 2, 2); + KCardinality_REPEATED_instance = new KCardinality('REPEATED', 3, 3); + KCardinality_UNRECOGNIZED_instance = new KCardinality('UNRECOGNIZED', 4, -1); + Companion_getInstance_67(); + } + var Companion_instance_68; + function Companion_getInstance_68() { + if (Companion_instance_68 === VOID) + new Companion_68(); + return Companion_instance_68; + } + var $serializer_instance_55; + function $serializer_getInstance_55() { + if ($serializer_instance_55 === VOID) + new $serializer_55(); + return $serializer_instance_55; + } + function KKind_TYPE_UNKNOWN_getInstance() { + KKind_initEntries(); + return KKind_TYPE_UNKNOWN_instance; + } + function KKind_TYPE_DOUBLE_getInstance() { + KKind_initEntries(); + return KKind_TYPE_DOUBLE_instance; + } + function KKind_TYPE_FLOAT_getInstance() { + KKind_initEntries(); + return KKind_TYPE_FLOAT_instance; + } + function KKind_TYPE_INT64_getInstance() { + KKind_initEntries(); + return KKind_TYPE_INT64_instance; + } + function KKind_TYPE_UINT64_getInstance() { + KKind_initEntries(); + return KKind_TYPE_UINT64_instance; + } + function KKind_TYPE_INT32_getInstance() { + KKind_initEntries(); + return KKind_TYPE_INT32_instance; + } + function KKind_TYPE_FIXED64_getInstance() { + KKind_initEntries(); + return KKind_TYPE_FIXED64_instance; + } + function KKind_TYPE_FIXED32_getInstance() { + KKind_initEntries(); + return KKind_TYPE_FIXED32_instance; + } + function KKind_TYPE_BOOL_getInstance() { + KKind_initEntries(); + return KKind_TYPE_BOOL_instance; + } + function KKind_TYPE_STRING_getInstance() { + KKind_initEntries(); + return KKind_TYPE_STRING_instance; + } + function KKind_TYPE_GROUP_getInstance() { + KKind_initEntries(); + return KKind_TYPE_GROUP_instance; + } + function KKind_TYPE_MESSAGE_getInstance() { + KKind_initEntries(); + return KKind_TYPE_MESSAGE_instance; + } + function KKind_TYPE_BYTES_getInstance() { + KKind_initEntries(); + return KKind_TYPE_BYTES_instance; + } + function KKind_TYPE_UINT32_getInstance() { + KKind_initEntries(); + return KKind_TYPE_UINT32_instance; + } + function KKind_TYPE_ENUM_getInstance() { + KKind_initEntries(); + return KKind_TYPE_ENUM_instance; + } + function KKind_TYPE_SFIXED32_getInstance() { + KKind_initEntries(); + return KKind_TYPE_SFIXED32_instance; + } + function KKind_TYPE_SFIXED64_getInstance() { + KKind_initEntries(); + return KKind_TYPE_SFIXED64_instance; + } + function KKind_TYPE_SINT32_getInstance() { + KKind_initEntries(); + return KKind_TYPE_SINT32_instance; + } + function KKind_TYPE_SINT64_getInstance() { + KKind_initEntries(); + return KKind_TYPE_SINT64_instance; + } + function KKind_UNRECOGNIZED_getInstance() { + KKind_initEntries(); + return KKind_UNRECOGNIZED_instance; + } + function KCardinality_UNKNOWN_getInstance() { + KCardinality_initEntries(); + return KCardinality_UNKNOWN_instance; + } + function KCardinality_OPTIONAL_getInstance() { + KCardinality_initEntries(); + return KCardinality_OPTIONAL_instance; + } + function KCardinality_REQUIRED_getInstance() { + KCardinality_initEntries(); + return KCardinality_REQUIRED_instance; + } + function KCardinality_REPEATED_getInstance() { + KCardinality_initEntries(); + return KCardinality_REPEATED_instance; + } + function KCardinality_UNRECOGNIZED_getInstance() { + KCardinality_initEntries(); + return KCardinality_UNRECOGNIZED_instance; + } + var Companion_instance_69; + function Companion_getInstance_69() { + if (Companion_instance_69 === VOID) + new Companion_69(); + return Companion_instance_69; + } + var $serializer_instance_56; + function $serializer_getInstance_56() { + if ($serializer_instance_56 === VOID) + new $serializer_56(); + return $serializer_instance_56; + } + var Companion_instance_70; + function Companion_getInstance_70() { + if (Companion_instance_70 === VOID) + new Companion_70(); + return Companion_instance_70; + } + var $serializer_instance_57; + function $serializer_getInstance_57() { + if ($serializer_instance_57 === VOID) + new $serializer_57(); + return $serializer_instance_57; + } + var Companion_instance_71; + function Companion_getInstance_71() { + return Companion_instance_71; + } + var $serializer_instance_58; + function $serializer_getInstance_58() { + if ($serializer_instance_58 === VOID) + new $serializer_58(); + return $serializer_instance_58; + } + function KSyntax_PROTO2_getInstance() { + KSyntax_initEntries(); + return KSyntax_PROTO2_instance; + } + function KSyntax_PROTO3_getInstance() { + KSyntax_initEntries(); + return KSyntax_PROTO3_instance; + } + function KSyntax_UNRECOGNIZED_getInstance() { + KSyntax_initEntries(); + return KSyntax_UNRECOGNIZED_instance; + } + function values$factory_7() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_8() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_9() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + var Companion_instance_72; + function Companion_getInstance_72() { + return Companion_instance_72; + } + var $serializer_instance_59; + function $serializer_getInstance_59() { + if ($serializer_instance_59 === VOID) + new $serializer_59(); + return $serializer_instance_59; + } + var Companion_instance_73; + function Companion_getInstance_73() { + return Companion_instance_73; + } + var $serializer_instance_60; + function $serializer_getInstance_60() { + if ($serializer_instance_60 === VOID) + new $serializer_60(); + return $serializer_instance_60; + } + var Companion_instance_74; + function Companion_getInstance_74() { + return Companion_instance_74; + } + var $serializer_instance_61; + function $serializer_getInstance_61() { + if ($serializer_instance_61 === VOID) + new $serializer_61(); + return $serializer_instance_61; + } + var Companion_instance_75; + function Companion_getInstance_75() { + return Companion_instance_75; + } + var $serializer_instance_62; + function $serializer_getInstance_62() { + if ($serializer_instance_62 === VOID) + new $serializer_62(); + return $serializer_instance_62; + } + var Companion_instance_76; + function Companion_getInstance_76() { + return Companion_instance_76; + } + var $serializer_instance_63; + function $serializer_getInstance_63() { + if ($serializer_instance_63 === VOID) + new $serializer_63(); + return $serializer_instance_63; + } + var Companion_instance_77; + function Companion_getInstance_77() { + return Companion_instance_77; + } + var $serializer_instance_64; + function $serializer_getInstance_64() { + if ($serializer_instance_64 === VOID) + new $serializer_64(); + return $serializer_instance_64; + } + var Companion_instance_78; + function Companion_getInstance_78() { + return Companion_instance_78; + } + var $serializer_instance_65; + function $serializer_getInstance_65() { + if ($serializer_instance_65 === VOID) + new $serializer_65(); + return $serializer_instance_65; + } + var Companion_instance_79; + function Companion_getInstance_79() { + return Companion_instance_79; + } + var $serializer_instance_66; + function $serializer_getInstance_66() { + if ($serializer_instance_66 === VOID) + new $serializer_66(); + return $serializer_instance_66; + } + var Companion_instance_80; + function Companion_getInstance_80() { + return Companion_instance_80; + } + var $serializer_instance_67; + function $serializer_getInstance_67() { + if ($serializer_instance_67 === VOID) + new $serializer_67(); + return $serializer_instance_67; + } + function _get_$cachedSerializer__te6jhj_10($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KConfType$Companion$values$delegate$lambda() { + return listOf_0([KConfType_NO_TYPE_getInstance(), KConfType_FLIPCONF_getInstance(), KConfType_CASTCONF_getInstance(), KConfType_FEEDBACK_getInstance(), KConfType_SUBTITLE_getInstance(), KConfType_PLAYBACKRATE_getInstance(), KConfType_TIMEUP_getInstance(), KConfType_PLAYBACKMODE_getInstance(), KConfType_SCALEMODE_getInstance(), KConfType_BACKGROUNDPLAY_getInstance(), KConfType_LIKE_getInstance(), KConfType_DISLIKE_getInstance(), KConfType_COIN_getInstance(), KConfType_ELEC_getInstance(), KConfType_SHARE_getInstance(), KConfType_SCREENSHOT_getInstance(), KConfType_LOCKSCREEN_getInstance(), KConfType_RECOMMEND_getInstance(), KConfType_PLAYBACKSPEED_getInstance(), KConfType_DEFINITION_getInstance(), KConfType_SELECTIONS_getInstance(), KConfType_NEXT_getInstance(), KConfType_EDITDM_getInstance(), KConfType_SMALLWINDOW_getInstance(), KConfType_SHAKE_getInstance(), KConfType_OUTERDM_getInstance(), KConfType_INNERDM_getInstance(), KConfType_PANORAMA_getInstance(), KConfType_DOLBY_getInstance(), KConfType_COLORFILTER_getInstance(), KConfType_LOSSLESS_getInstance(), KConfType_FREYAENTER_getInstance(), KConfType_FREYAFULLENTER_getInstance(), KConfType_SKIPOPED_getInstance(), KConfType_RECORDSCREEN_getInstance(), KConfType_DUBBING_getInstance(), KConfType_LISTEN_getInstance()]); + } + function KConfType$Companion$_anonymous__235vuu() { + return $serializer_getInstance_68(); + } + var KConfType_NO_TYPE_instance; + var KConfType_FLIPCONF_instance; + var KConfType_CASTCONF_instance; + var KConfType_FEEDBACK_instance; + var KConfType_SUBTITLE_instance; + var KConfType_PLAYBACKRATE_instance; + var KConfType_TIMEUP_instance; + var KConfType_PLAYBACKMODE_instance; + var KConfType_SCALEMODE_instance; + var KConfType_BACKGROUNDPLAY_instance; + var KConfType_LIKE_instance; + var KConfType_DISLIKE_instance; + var KConfType_COIN_instance; + var KConfType_ELEC_instance; + var KConfType_SHARE_instance; + var KConfType_SCREENSHOT_instance; + var KConfType_LOCKSCREEN_instance; + var KConfType_RECOMMEND_instance; + var KConfType_PLAYBACKSPEED_instance; + var KConfType_DEFINITION_instance; + var KConfType_SELECTIONS_instance; + var KConfType_NEXT_instance; + var KConfType_EDITDM_instance; + var KConfType_SMALLWINDOW_instance; + var KConfType_SHAKE_instance; + var KConfType_OUTERDM_instance; + var KConfType_INNERDM_instance; + var KConfType_PANORAMA_instance; + var KConfType_DOLBY_instance; + var KConfType_COLORFILTER_instance; + var KConfType_LOSSLESS_instance; + var KConfType_FREYAENTER_instance; + var KConfType_FREYAFULLENTER_instance; + var KConfType_SKIPOPED_instance; + var KConfType_RECORDSCREEN_instance; + var KConfType_DUBBING_instance; + var KConfType_LISTEN_instance; + var KConfType_UNRECOGNIZED_instance; + var Companion_instance_81; + function Companion_getInstance_81() { + KConfType_initEntries(); + if (Companion_instance_81 === VOID) + new Companion_81(); + return Companion_instance_81; + } + var $serializer_instance_68; + function $serializer_getInstance_68() { + KConfType_initEntries(); + if ($serializer_instance_68 === VOID) + new $serializer_68(); + return $serializer_instance_68; + } + function values_10() { + return [KConfType_NO_TYPE_getInstance(), KConfType_FLIPCONF_getInstance(), KConfType_CASTCONF_getInstance(), KConfType_FEEDBACK_getInstance(), KConfType_SUBTITLE_getInstance(), KConfType_PLAYBACKRATE_getInstance(), KConfType_TIMEUP_getInstance(), KConfType_PLAYBACKMODE_getInstance(), KConfType_SCALEMODE_getInstance(), KConfType_BACKGROUNDPLAY_getInstance(), KConfType_LIKE_getInstance(), KConfType_DISLIKE_getInstance(), KConfType_COIN_getInstance(), KConfType_ELEC_getInstance(), KConfType_SHARE_getInstance(), KConfType_SCREENSHOT_getInstance(), KConfType_LOCKSCREEN_getInstance(), KConfType_RECOMMEND_getInstance(), KConfType_PLAYBACKSPEED_getInstance(), KConfType_DEFINITION_getInstance(), KConfType_SELECTIONS_getInstance(), KConfType_NEXT_getInstance(), KConfType_EDITDM_getInstance(), KConfType_SMALLWINDOW_getInstance(), KConfType_SHAKE_getInstance(), KConfType_OUTERDM_getInstance(), KConfType_INNERDM_getInstance(), KConfType_PANORAMA_getInstance(), KConfType_DOLBY_getInstance(), KConfType_COLORFILTER_getInstance(), KConfType_LOSSLESS_getInstance(), KConfType_FREYAENTER_getInstance(), KConfType_FREYAFULLENTER_getInstance(), KConfType_SKIPOPED_getInstance(), KConfType_RECORDSCREEN_getInstance(), KConfType_DUBBING_getInstance(), KConfType_LISTEN_getInstance(), KConfType_UNRECOGNIZED_getInstance()]; + } + function valueOf_10(value) { + switch (value) { + case 'NO_TYPE': + return KConfType_NO_TYPE_getInstance(); + case 'FLIPCONF': + return KConfType_FLIPCONF_getInstance(); + case 'CASTCONF': + return KConfType_CASTCONF_getInstance(); + case 'FEEDBACK': + return KConfType_FEEDBACK_getInstance(); + case 'SUBTITLE': + return KConfType_SUBTITLE_getInstance(); + case 'PLAYBACKRATE': + return KConfType_PLAYBACKRATE_getInstance(); + case 'TIMEUP': + return KConfType_TIMEUP_getInstance(); + case 'PLAYBACKMODE': + return KConfType_PLAYBACKMODE_getInstance(); + case 'SCALEMODE': + return KConfType_SCALEMODE_getInstance(); + case 'BACKGROUNDPLAY': + return KConfType_BACKGROUNDPLAY_getInstance(); + case 'LIKE': + return KConfType_LIKE_getInstance(); + case 'DISLIKE': + return KConfType_DISLIKE_getInstance(); + case 'COIN': + return KConfType_COIN_getInstance(); + case 'ELEC': + return KConfType_ELEC_getInstance(); + case 'SHARE': + return KConfType_SHARE_getInstance(); + case 'SCREENSHOT': + return KConfType_SCREENSHOT_getInstance(); + case 'LOCKSCREEN': + return KConfType_LOCKSCREEN_getInstance(); + case 'RECOMMEND': + return KConfType_RECOMMEND_getInstance(); + case 'PLAYBACKSPEED': + return KConfType_PLAYBACKSPEED_getInstance(); + case 'DEFINITION': + return KConfType_DEFINITION_getInstance(); + case 'SELECTIONS': + return KConfType_SELECTIONS_getInstance(); + case 'NEXT': + return KConfType_NEXT_getInstance(); + case 'EDITDM': + return KConfType_EDITDM_getInstance(); + case 'SMALLWINDOW': + return KConfType_SMALLWINDOW_getInstance(); + case 'SHAKE': + return KConfType_SHAKE_getInstance(); + case 'OUTERDM': + return KConfType_OUTERDM_getInstance(); + case 'INNERDM': + return KConfType_INNERDM_getInstance(); + case 'PANORAMA': + return KConfType_PANORAMA_getInstance(); + case 'DOLBY': + return KConfType_DOLBY_getInstance(); + case 'COLORFILTER': + return KConfType_COLORFILTER_getInstance(); + case 'LOSSLESS': + return KConfType_LOSSLESS_getInstance(); + case 'FREYAENTER': + return KConfType_FREYAENTER_getInstance(); + case 'FREYAFULLENTER': + return KConfType_FREYAFULLENTER_getInstance(); + case 'SKIPOPED': + return KConfType_SKIPOPED_getInstance(); + case 'RECORDSCREEN': + return KConfType_RECORDSCREEN_getInstance(); + case 'DUBBING': + return KConfType_DUBBING_getInstance(); + case 'LISTEN': + return KConfType_LISTEN_getInstance(); + case 'UNRECOGNIZED': + return KConfType_UNRECOGNIZED_getInstance(); + default: + KConfType_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KConfType_entriesInitialized; + function KConfType_initEntries() { + if (KConfType_entriesInitialized) + return Unit_instance; + KConfType_entriesInitialized = true; + KConfType_NO_TYPE_instance = new KConfType('NO_TYPE', 0, 0); + KConfType_FLIPCONF_instance = new KConfType('FLIPCONF', 1, 1); + KConfType_CASTCONF_instance = new KConfType('CASTCONF', 2, 2); + KConfType_FEEDBACK_instance = new KConfType('FEEDBACK', 3, 3); + KConfType_SUBTITLE_instance = new KConfType('SUBTITLE', 4, 4); + KConfType_PLAYBACKRATE_instance = new KConfType('PLAYBACKRATE', 5, 5); + KConfType_TIMEUP_instance = new KConfType('TIMEUP', 6, 6); + KConfType_PLAYBACKMODE_instance = new KConfType('PLAYBACKMODE', 7, 7); + KConfType_SCALEMODE_instance = new KConfType('SCALEMODE', 8, 8); + KConfType_BACKGROUNDPLAY_instance = new KConfType('BACKGROUNDPLAY', 9, 9); + KConfType_LIKE_instance = new KConfType('LIKE', 10, 10); + KConfType_DISLIKE_instance = new KConfType('DISLIKE', 11, 11); + KConfType_COIN_instance = new KConfType('COIN', 12, 12); + KConfType_ELEC_instance = new KConfType('ELEC', 13, 13); + KConfType_SHARE_instance = new KConfType('SHARE', 14, 14); + KConfType_SCREENSHOT_instance = new KConfType('SCREENSHOT', 15, 15); + KConfType_LOCKSCREEN_instance = new KConfType('LOCKSCREEN', 16, 16); + KConfType_RECOMMEND_instance = new KConfType('RECOMMEND', 17, 17); + KConfType_PLAYBACKSPEED_instance = new KConfType('PLAYBACKSPEED', 18, 18); + KConfType_DEFINITION_instance = new KConfType('DEFINITION', 19, 19); + KConfType_SELECTIONS_instance = new KConfType('SELECTIONS', 20, 20); + KConfType_NEXT_instance = new KConfType('NEXT', 21, 21); + KConfType_EDITDM_instance = new KConfType('EDITDM', 22, 22); + KConfType_SMALLWINDOW_instance = new KConfType('SMALLWINDOW', 23, 23); + KConfType_SHAKE_instance = new KConfType('SHAKE', 24, 24); + KConfType_OUTERDM_instance = new KConfType('OUTERDM', 25, 25); + KConfType_INNERDM_instance = new KConfType('INNERDM', 26, 26); + KConfType_PANORAMA_instance = new KConfType('PANORAMA', 27, 27); + KConfType_DOLBY_instance = new KConfType('DOLBY', 28, 28); + KConfType_COLORFILTER_instance = new KConfType('COLORFILTER', 29, 29); + KConfType_LOSSLESS_instance = new KConfType('LOSSLESS', 30, 30); + KConfType_FREYAENTER_instance = new KConfType('FREYAENTER', 31, 31); + KConfType_FREYAFULLENTER_instance = new KConfType('FREYAFULLENTER', 32, 32); + KConfType_SKIPOPED_instance = new KConfType('SKIPOPED', 33, 33); + KConfType_RECORDSCREEN_instance = new KConfType('RECORDSCREEN', 34, 34); + KConfType_DUBBING_instance = new KConfType('DUBBING', 35, 35); + KConfType_LISTEN_instance = new KConfType('LISTEN', 36, 36); + KConfType_UNRECOGNIZED_instance = new KConfType('UNRECOGNIZED', 37, -1); + Companion_getInstance_81(); + } + function _get_$cachedSerializer__te6jhj_11($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KUnsupportScene$Companion$values$delegate$lambda() { + return listOf_0([KUnsupportScene_UNKNOWN_SCENE_getInstance(), KUnsupportScene_PREMIERE_getInstance()]); + } + function KUnsupportScene$Companion$_anonymous__79d6i6() { + return $serializer_getInstance_69(); + } + var KUnsupportScene_UNKNOWN_SCENE_instance; + var KUnsupportScene_PREMIERE_instance; + var KUnsupportScene_UNRECOGNIZED_instance; + var Companion_instance_82; + function Companion_getInstance_82() { + KUnsupportScene_initEntries(); + if (Companion_instance_82 === VOID) + new Companion_82(); + return Companion_instance_82; + } + var $serializer_instance_69; + function $serializer_getInstance_69() { + KUnsupportScene_initEntries(); + if ($serializer_instance_69 === VOID) + new $serializer_69(); + return $serializer_instance_69; + } + function values_11() { + return [KUnsupportScene_UNKNOWN_SCENE_getInstance(), KUnsupportScene_PREMIERE_getInstance(), KUnsupportScene_UNRECOGNIZED_getInstance()]; + } + function valueOf_11(value) { + switch (value) { + case 'UNKNOWN_SCENE': + return KUnsupportScene_UNKNOWN_SCENE_getInstance(); + case 'PREMIERE': + return KUnsupportScene_PREMIERE_getInstance(); + case 'UNRECOGNIZED': + return KUnsupportScene_UNRECOGNIZED_getInstance(); + default: + KUnsupportScene_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KUnsupportScene_entriesInitialized; + function KUnsupportScene_initEntries() { + if (KUnsupportScene_entriesInitialized) + return Unit_instance; + KUnsupportScene_entriesInitialized = true; + KUnsupportScene_UNKNOWN_SCENE_instance = new KUnsupportScene('UNKNOWN_SCENE', 0, 0); + KUnsupportScene_PREMIERE_instance = new KUnsupportScene('PREMIERE', 1, 1); + KUnsupportScene_UNRECOGNIZED_instance = new KUnsupportScene('UNRECOGNIZED', 2, -1); + Companion_getInstance_82(); + } + var Companion_instance_83; + function Companion_getInstance_83() { + return Companion_instance_83; + } + var $serializer_instance_70; + function $serializer_getInstance_70() { + if ($serializer_instance_70 === VOID) + new $serializer_70(); + return $serializer_instance_70; + } + var Companion_instance_84; + function Companion_getInstance_84() { + if (Companion_instance_84 === VOID) + new Companion_84(); + return Companion_instance_84; + } + var $serializer_instance_71; + function $serializer_getInstance_71() { + if ($serializer_instance_71 === VOID) + new $serializer_71(); + return $serializer_instance_71; + } + var Companion_instance_85; + function Companion_getInstance_85() { + if (Companion_instance_85 === VOID) + new Companion_85(); + return Companion_instance_85; + } + var $serializer_instance_72; + function $serializer_getInstance_72() { + if ($serializer_instance_72 === VOID) + new $serializer_72(); + return $serializer_instance_72; + } + var Companion_instance_86; + function Companion_getInstance_86() { + return Companion_instance_86; + } + var $serializer_instance_73; + function $serializer_getInstance_73() { + if ($serializer_instance_73 === VOID) + new $serializer_73(); + return $serializer_instance_73; + } + var Companion_instance_87; + function Companion_getInstance_87() { + return Companion_instance_87; + } + var $serializer_instance_74; + function $serializer_getInstance_74() { + if ($serializer_instance_74 === VOID) + new $serializer_74(); + return $serializer_instance_74; + } + var Companion_instance_88; + function Companion_getInstance_88() { + if (Companion_instance_88 === VOID) + new Companion_88(); + return Companion_instance_88; + } + var $serializer_instance_75; + function $serializer_getInstance_75() { + if ($serializer_instance_75 === VOID) + new $serializer_75(); + return $serializer_instance_75; + } + function KConfValue$Companion$valueValues$delegate$lambda() { + return listOf_0([KSwitchVal_getInstance(), KSelectedVal_getInstance()]); + } + function _get_valueNumber__5bxiuv($this) { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = $this.valueNumber$delegate_1; + var thisRef = $this; + var property = valueNumber$factory(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + var KSwitchVal_instance; + function KSwitchVal_getInstance() { + if (KSwitchVal_instance === VOID) + new KSwitchVal(); + return KSwitchVal_instance; + } + var KSelectedVal_instance; + function KSelectedVal_getInstance() { + if (KSelectedVal_instance === VOID) + new KSelectedVal(); + return KSelectedVal_instance; + } + var Companion_instance_89; + function Companion_getInstance_89() { + if (Companion_instance_89 === VOID) + new Companion_89(); + return Companion_instance_89; + } + var $serializer_instance_76; + function $serializer_getInstance_76() { + if ($serializer_instance_76 === VOID) + new $serializer_76(); + return $serializer_instance_76; + } + function KConfValue$valueNumber$delegate$lambda(this$0) { + return function () { + var tmp; + if (!(this$0.switchVal_1 == null)) { + tmp = 0; + } else if (!(this$0.selectedVal_1 == null)) { + tmp = 1; + } else { + tmp = -1; + } + return tmp; + }; + } + function KConfValue$_init_$lambda_46ey4p(this$0) { + return function () { + var tmp; + if (!(this$0.switchVal_1 == null)) { + tmp = 0; + } else if (!(this$0.selectedVal_1 == null)) { + tmp = 1; + } else { + tmp = -1; + } + return tmp; + }; + } + var Companion_instance_90; + function Companion_getInstance_90() { + return Companion_instance_90; + } + var $serializer_instance_77; + function $serializer_getInstance_77() { + if ($serializer_instance_77 === VOID) + new $serializer_77(); + return $serializer_instance_77; + } + function KConfType_NO_TYPE_getInstance() { + KConfType_initEntries(); + return KConfType_NO_TYPE_instance; + } + function KConfType_FLIPCONF_getInstance() { + KConfType_initEntries(); + return KConfType_FLIPCONF_instance; + } + function KConfType_CASTCONF_getInstance() { + KConfType_initEntries(); + return KConfType_CASTCONF_instance; + } + function KConfType_FEEDBACK_getInstance() { + KConfType_initEntries(); + return KConfType_FEEDBACK_instance; + } + function KConfType_SUBTITLE_getInstance() { + KConfType_initEntries(); + return KConfType_SUBTITLE_instance; + } + function KConfType_PLAYBACKRATE_getInstance() { + KConfType_initEntries(); + return KConfType_PLAYBACKRATE_instance; + } + function KConfType_TIMEUP_getInstance() { + KConfType_initEntries(); + return KConfType_TIMEUP_instance; + } + function KConfType_PLAYBACKMODE_getInstance() { + KConfType_initEntries(); + return KConfType_PLAYBACKMODE_instance; + } + function KConfType_SCALEMODE_getInstance() { + KConfType_initEntries(); + return KConfType_SCALEMODE_instance; + } + function KConfType_BACKGROUNDPLAY_getInstance() { + KConfType_initEntries(); + return KConfType_BACKGROUNDPLAY_instance; + } + function KConfType_LIKE_getInstance() { + KConfType_initEntries(); + return KConfType_LIKE_instance; + } + function KConfType_DISLIKE_getInstance() { + KConfType_initEntries(); + return KConfType_DISLIKE_instance; + } + function KConfType_COIN_getInstance() { + KConfType_initEntries(); + return KConfType_COIN_instance; + } + function KConfType_ELEC_getInstance() { + KConfType_initEntries(); + return KConfType_ELEC_instance; + } + function KConfType_SHARE_getInstance() { + KConfType_initEntries(); + return KConfType_SHARE_instance; + } + function KConfType_SCREENSHOT_getInstance() { + KConfType_initEntries(); + return KConfType_SCREENSHOT_instance; + } + function KConfType_LOCKSCREEN_getInstance() { + KConfType_initEntries(); + return KConfType_LOCKSCREEN_instance; + } + function KConfType_RECOMMEND_getInstance() { + KConfType_initEntries(); + return KConfType_RECOMMEND_instance; + } + function KConfType_PLAYBACKSPEED_getInstance() { + KConfType_initEntries(); + return KConfType_PLAYBACKSPEED_instance; + } + function KConfType_DEFINITION_getInstance() { + KConfType_initEntries(); + return KConfType_DEFINITION_instance; + } + function KConfType_SELECTIONS_getInstance() { + KConfType_initEntries(); + return KConfType_SELECTIONS_instance; + } + function KConfType_NEXT_getInstance() { + KConfType_initEntries(); + return KConfType_NEXT_instance; + } + function KConfType_EDITDM_getInstance() { + KConfType_initEntries(); + return KConfType_EDITDM_instance; + } + function KConfType_SMALLWINDOW_getInstance() { + KConfType_initEntries(); + return KConfType_SMALLWINDOW_instance; + } + function KConfType_SHAKE_getInstance() { + KConfType_initEntries(); + return KConfType_SHAKE_instance; + } + function KConfType_OUTERDM_getInstance() { + KConfType_initEntries(); + return KConfType_OUTERDM_instance; + } + function KConfType_INNERDM_getInstance() { + KConfType_initEntries(); + return KConfType_INNERDM_instance; + } + function KConfType_PANORAMA_getInstance() { + KConfType_initEntries(); + return KConfType_PANORAMA_instance; + } + function KConfType_DOLBY_getInstance() { + KConfType_initEntries(); + return KConfType_DOLBY_instance; + } + function KConfType_COLORFILTER_getInstance() { + KConfType_initEntries(); + return KConfType_COLORFILTER_instance; + } + function KConfType_LOSSLESS_getInstance() { + KConfType_initEntries(); + return KConfType_LOSSLESS_instance; + } + function KConfType_FREYAENTER_getInstance() { + KConfType_initEntries(); + return KConfType_FREYAENTER_instance; + } + function KConfType_FREYAFULLENTER_getInstance() { + KConfType_initEntries(); + return KConfType_FREYAFULLENTER_instance; + } + function KConfType_SKIPOPED_getInstance() { + KConfType_initEntries(); + return KConfType_SKIPOPED_instance; + } + function KConfType_RECORDSCREEN_getInstance() { + KConfType_initEntries(); + return KConfType_RECORDSCREEN_instance; + } + function KConfType_DUBBING_getInstance() { + KConfType_initEntries(); + return KConfType_DUBBING_instance; + } + function KConfType_LISTEN_getInstance() { + KConfType_initEntries(); + return KConfType_LISTEN_instance; + } + function KConfType_UNRECOGNIZED_getInstance() { + KConfType_initEntries(); + return KConfType_UNRECOGNIZED_instance; + } + function KUnsupportScene_UNKNOWN_SCENE_getInstance() { + KUnsupportScene_initEntries(); + return KUnsupportScene_UNKNOWN_SCENE_instance; + } + function KUnsupportScene_PREMIERE_getInstance() { + KUnsupportScene_initEntries(); + return KUnsupportScene_PREMIERE_instance; + } + function KUnsupportScene_UNRECOGNIZED_getInstance() { + KUnsupportScene_initEntries(); + return KUnsupportScene_UNRECOGNIZED_instance; + } + function values$factory_10() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_11() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function valueNumber$factory() { + return getPropertyCallableRef('valueNumber', 1, KProperty1, function (receiver) { + return _get_valueNumber__5bxiuv(receiver); + }, null); + } + function valueValues$factory() { + return getPropertyCallableRef('valueValues', 1, KProperty1, function (receiver) { + return receiver.valueValues; + }, null); + } + function _get_$cachedSerializer__te6jhj_12($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KToastType$Companion$values$delegate$lambda() { + return listOf_0([KToastType_UNKNOWN_getInstance(), KToastType_VIP_CONTENT_REMIND_getInstance(), KToastType_VIP_DEFINITION_REMIND_getInstance(), KToastType_VIP_DEFINITION_GUIDE_getInstance(), KToastType_OGV_VIDEO_START_TOAST_getInstance(), KToastType_CHARGING_TOAST_getInstance(), KToastType_VIP_SKIP_FRAGMENT_TOAST_getInstance()]); + } + function KToastType$Companion$_anonymous__l9bpvr() { + return $serializer_getInstance_78(); + } + var KToastType_UNKNOWN_instance; + var KToastType_VIP_CONTENT_REMIND_instance; + var KToastType_VIP_DEFINITION_REMIND_instance; + var KToastType_VIP_DEFINITION_GUIDE_instance; + var KToastType_OGV_VIDEO_START_TOAST_instance; + var KToastType_CHARGING_TOAST_instance; + var KToastType_VIP_SKIP_FRAGMENT_TOAST_instance; + var KToastType_UNRECOGNIZED_instance; + var Companion_instance_91; + function Companion_getInstance_91() { + KToastType_initEntries(); + if (Companion_instance_91 === VOID) + new Companion_91(); + return Companion_instance_91; + } + var $serializer_instance_78; + function $serializer_getInstance_78() { + KToastType_initEntries(); + if ($serializer_instance_78 === VOID) + new $serializer_78(); + return $serializer_instance_78; + } + function values_12() { + return [KToastType_UNKNOWN_getInstance(), KToastType_VIP_CONTENT_REMIND_getInstance(), KToastType_VIP_DEFINITION_REMIND_getInstance(), KToastType_VIP_DEFINITION_GUIDE_getInstance(), KToastType_OGV_VIDEO_START_TOAST_getInstance(), KToastType_CHARGING_TOAST_getInstance(), KToastType_VIP_SKIP_FRAGMENT_TOAST_getInstance(), KToastType_UNRECOGNIZED_getInstance()]; + } + function valueOf_12(value) { + switch (value) { + case 'UNKNOWN': + return KToastType_UNKNOWN_getInstance(); + case 'VIP_CONTENT_REMIND': + return KToastType_VIP_CONTENT_REMIND_getInstance(); + case 'VIP_DEFINITION_REMIND': + return KToastType_VIP_DEFINITION_REMIND_getInstance(); + case 'VIP_DEFINITION_GUIDE': + return KToastType_VIP_DEFINITION_GUIDE_getInstance(); + case 'OGV_VIDEO_START_TOAST': + return KToastType_OGV_VIDEO_START_TOAST_getInstance(); + case 'CHARGING_TOAST': + return KToastType_CHARGING_TOAST_getInstance(); + case 'VIP_SKIP_FRAGMENT_TOAST': + return KToastType_VIP_SKIP_FRAGMENT_TOAST_getInstance(); + case 'UNRECOGNIZED': + return KToastType_UNRECOGNIZED_getInstance(); + default: + KToastType_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KToastType_entriesInitialized; + function KToastType_initEntries() { + if (KToastType_entriesInitialized) + return Unit_instance; + KToastType_entriesInitialized = true; + KToastType_UNKNOWN_instance = new KToastType('UNKNOWN', 0, 0); + KToastType_VIP_CONTENT_REMIND_instance = new KToastType('VIP_CONTENT_REMIND', 1, 1); + KToastType_VIP_DEFINITION_REMIND_instance = new KToastType('VIP_DEFINITION_REMIND', 2, 2); + KToastType_VIP_DEFINITION_GUIDE_instance = new KToastType('VIP_DEFINITION_GUIDE', 3, 3); + KToastType_OGV_VIDEO_START_TOAST_instance = new KToastType('OGV_VIDEO_START_TOAST', 4, 4); + KToastType_CHARGING_TOAST_instance = new KToastType('CHARGING_TOAST', 5, 5); + KToastType_VIP_SKIP_FRAGMENT_TOAST_instance = new KToastType('VIP_SKIP_FRAGMENT_TOAST', 6, 6); + KToastType_UNRECOGNIZED_instance = new KToastType('UNRECOGNIZED', 7, -1); + Companion_getInstance_91(); + } + function _get_$cachedSerializer__te6jhj_13($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KShowStyleType$Companion$values$delegate$lambda() { + return listOf_0([KShowStyleType_UNKNOWN_getInstance(), KShowStyleType_ORDINARY_getInstance(), KShowStyleType_RESIDENT_getInstance()]); + } + function KShowStyleType$Companion$_anonymous__pzcrro() { + return $serializer_getInstance_79(); + } + var KShowStyleType_UNKNOWN_instance; + var KShowStyleType_ORDINARY_instance; + var KShowStyleType_RESIDENT_instance; + var KShowStyleType_UNRECOGNIZED_instance; + var Companion_instance_92; + function Companion_getInstance_92() { + KShowStyleType_initEntries(); + if (Companion_instance_92 === VOID) + new Companion_92(); + return Companion_instance_92; + } + var $serializer_instance_79; + function $serializer_getInstance_79() { + KShowStyleType_initEntries(); + if ($serializer_instance_79 === VOID) + new $serializer_79(); + return $serializer_instance_79; + } + function values_13() { + return [KShowStyleType_UNKNOWN_getInstance(), KShowStyleType_ORDINARY_getInstance(), KShowStyleType_RESIDENT_getInstance(), KShowStyleType_UNRECOGNIZED_getInstance()]; + } + function valueOf_13(value) { + switch (value) { + case 'UNKNOWN': + return KShowStyleType_UNKNOWN_getInstance(); + case 'ORDINARY': + return KShowStyleType_ORDINARY_getInstance(); + case 'RESIDENT': + return KShowStyleType_RESIDENT_getInstance(); + case 'UNRECOGNIZED': + return KShowStyleType_UNRECOGNIZED_getInstance(); + default: + KShowStyleType_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KShowStyleType_entriesInitialized; + function KShowStyleType_initEntries() { + if (KShowStyleType_entriesInitialized) + return Unit_instance; + KShowStyleType_entriesInitialized = true; + KShowStyleType_UNKNOWN_instance = new KShowStyleType('UNKNOWN', 0, 0); + KShowStyleType_ORDINARY_instance = new KShowStyleType('ORDINARY', 1, 1); + KShowStyleType_RESIDENT_instance = new KShowStyleType('RESIDENT', 2, 2); + KShowStyleType_UNRECOGNIZED_instance = new KShowStyleType('UNRECOGNIZED', 3, -1); + Companion_getInstance_92(); + } + function _get_$cachedSerializer__te6jhj_14($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KGuideStyle$Companion$values$delegate$lambda() { + return listOf_0([KGuideStyle_STYLE_UNKNOWN_getInstance(), KGuideStyle_HORIZONTAL_IMAGE_getInstance(), KGuideStyle_VERTICAL_TEXT_getInstance(), KGuideStyle_SIMPLE_TEXT_getInstance(), KGuideStyle_CHARGING_TEXT_getInstance()]); + } + function KGuideStyle$Companion$_anonymous__4dklbj() { + return $serializer_getInstance_80(); + } + var KGuideStyle_STYLE_UNKNOWN_instance; + var KGuideStyle_HORIZONTAL_IMAGE_instance; + var KGuideStyle_VERTICAL_TEXT_instance; + var KGuideStyle_SIMPLE_TEXT_instance; + var KGuideStyle_CHARGING_TEXT_instance; + var KGuideStyle_UNRECOGNIZED_instance; + var Companion_instance_93; + function Companion_getInstance_93() { + KGuideStyle_initEntries(); + if (Companion_instance_93 === VOID) + new Companion_93(); + return Companion_instance_93; + } + var $serializer_instance_80; + function $serializer_getInstance_80() { + KGuideStyle_initEntries(); + if ($serializer_instance_80 === VOID) + new $serializer_80(); + return $serializer_instance_80; + } + function values_14() { + return [KGuideStyle_STYLE_UNKNOWN_getInstance(), KGuideStyle_HORIZONTAL_IMAGE_getInstance(), KGuideStyle_VERTICAL_TEXT_getInstance(), KGuideStyle_SIMPLE_TEXT_getInstance(), KGuideStyle_CHARGING_TEXT_getInstance(), KGuideStyle_UNRECOGNIZED_getInstance()]; + } + function valueOf_14(value) { + switch (value) { + case 'STYLE_UNKNOWN': + return KGuideStyle_STYLE_UNKNOWN_getInstance(); + case 'HORIZONTAL_IMAGE': + return KGuideStyle_HORIZONTAL_IMAGE_getInstance(); + case 'VERTICAL_TEXT': + return KGuideStyle_VERTICAL_TEXT_getInstance(); + case 'SIMPLE_TEXT': + return KGuideStyle_SIMPLE_TEXT_getInstance(); + case 'CHARGING_TEXT': + return KGuideStyle_CHARGING_TEXT_getInstance(); + case 'UNRECOGNIZED': + return KGuideStyle_UNRECOGNIZED_getInstance(); + default: + KGuideStyle_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KGuideStyle_entriesInitialized; + function KGuideStyle_initEntries() { + if (KGuideStyle_entriesInitialized) + return Unit_instance; + KGuideStyle_entriesInitialized = true; + KGuideStyle_STYLE_UNKNOWN_instance = new KGuideStyle('STYLE_UNKNOWN', 0, 0); + KGuideStyle_HORIZONTAL_IMAGE_instance = new KGuideStyle('HORIZONTAL_IMAGE', 1, 1); + KGuideStyle_VERTICAL_TEXT_instance = new KGuideStyle('VERTICAL_TEXT', 2, 2); + KGuideStyle_SIMPLE_TEXT_instance = new KGuideStyle('SIMPLE_TEXT', 3, 3); + KGuideStyle_CHARGING_TEXT_instance = new KGuideStyle('CHARGING_TEXT', 4, 4); + KGuideStyle_UNRECOGNIZED_instance = new KGuideStyle('UNRECOGNIZED', 5, -1); + Companion_getInstance_93(); + } + function _get_$cachedSerializer__te6jhj_15($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KPromptBarType$Companion$values$delegate$lambda() { + return listOf_0([KPromptBarType_UNKNOWN_getInstance(), KPromptBarType_OPEN_PROMPT_BAR_getInstance(), KPromptBarType_TRY_PROMPT_BAR_getInstance()]); + } + function KPromptBarType$Companion$_anonymous__k75jqn() { + return $serializer_getInstance_81(); + } + var KPromptBarType_UNKNOWN_instance; + var KPromptBarType_OPEN_PROMPT_BAR_instance; + var KPromptBarType_TRY_PROMPT_BAR_instance; + var KPromptBarType_UNRECOGNIZED_instance; + var Companion_instance_94; + function Companion_getInstance_94() { + KPromptBarType_initEntries(); + if (Companion_instance_94 === VOID) + new Companion_94(); + return Companion_instance_94; + } + var $serializer_instance_81; + function $serializer_getInstance_81() { + KPromptBarType_initEntries(); + if ($serializer_instance_81 === VOID) + new $serializer_81(); + return $serializer_instance_81; + } + function values_15() { + return [KPromptBarType_UNKNOWN_getInstance(), KPromptBarType_OPEN_PROMPT_BAR_getInstance(), KPromptBarType_TRY_PROMPT_BAR_getInstance(), KPromptBarType_UNRECOGNIZED_getInstance()]; + } + function valueOf_15(value) { + switch (value) { + case 'UNKNOWN': + return KPromptBarType_UNKNOWN_getInstance(); + case 'OPEN_PROMPT_BAR': + return KPromptBarType_OPEN_PROMPT_BAR_getInstance(); + case 'TRY_PROMPT_BAR': + return KPromptBarType_TRY_PROMPT_BAR_getInstance(); + case 'UNRECOGNIZED': + return KPromptBarType_UNRECOGNIZED_getInstance(); + default: + KPromptBarType_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KPromptBarType_entriesInitialized; + function KPromptBarType_initEntries() { + if (KPromptBarType_entriesInitialized) + return Unit_instance; + KPromptBarType_entriesInitialized = true; + KPromptBarType_UNKNOWN_instance = new KPromptBarType('UNKNOWN', 0, 0); + KPromptBarType_OPEN_PROMPT_BAR_instance = new KPromptBarType('OPEN_PROMPT_BAR', 1, 1); + KPromptBarType_TRY_PROMPT_BAR_instance = new KPromptBarType('TRY_PROMPT_BAR', 2, 2); + KPromptBarType_UNRECOGNIZED_instance = new KPromptBarType('UNRECOGNIZED', 3, -1); + Companion_getInstance_94(); + } + function _get_$cachedSerializer__te6jhj_16($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KPromptBarStyle$Companion$values$delegate$lambda() { + return listOf_0([KPromptBarStyle_UNKNOWN_getInstance(), KPromptBarStyle_TEXT_getInstance(), KPromptBarStyle_CURING_BENEFITS_getInstance(), KPromptBarStyle_CARD_OPENING_GIFT_getInstance(), KPromptBarStyle_COUNTDOWN_getInstance()]); + } + function KPromptBarStyle$Companion$_anonymous__t7opsu() { + return $serializer_getInstance_82(); + } + var KPromptBarStyle_UNKNOWN_instance; + var KPromptBarStyle_TEXT_instance; + var KPromptBarStyle_CURING_BENEFITS_instance; + var KPromptBarStyle_CARD_OPENING_GIFT_instance; + var KPromptBarStyle_COUNTDOWN_instance; + var KPromptBarStyle_UNRECOGNIZED_instance; + var Companion_instance_95; + function Companion_getInstance_95() { + KPromptBarStyle_initEntries(); + if (Companion_instance_95 === VOID) + new Companion_95(); + return Companion_instance_95; + } + var $serializer_instance_82; + function $serializer_getInstance_82() { + KPromptBarStyle_initEntries(); + if ($serializer_instance_82 === VOID) + new $serializer_82(); + return $serializer_instance_82; + } + function values_16() { + return [KPromptBarStyle_UNKNOWN_getInstance(), KPromptBarStyle_TEXT_getInstance(), KPromptBarStyle_CURING_BENEFITS_getInstance(), KPromptBarStyle_CARD_OPENING_GIFT_getInstance(), KPromptBarStyle_COUNTDOWN_getInstance(), KPromptBarStyle_UNRECOGNIZED_getInstance()]; + } + function valueOf_16(value) { + switch (value) { + case 'UNKNOWN': + return KPromptBarStyle_UNKNOWN_getInstance(); + case 'TEXT': + return KPromptBarStyle_TEXT_getInstance(); + case 'CURING_BENEFITS': + return KPromptBarStyle_CURING_BENEFITS_getInstance(); + case 'CARD_OPENING_GIFT': + return KPromptBarStyle_CARD_OPENING_GIFT_getInstance(); + case 'COUNTDOWN': + return KPromptBarStyle_COUNTDOWN_getInstance(); + case 'UNRECOGNIZED': + return KPromptBarStyle_UNRECOGNIZED_getInstance(); + default: + KPromptBarStyle_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KPromptBarStyle_entriesInitialized; + function KPromptBarStyle_initEntries() { + if (KPromptBarStyle_entriesInitialized) + return Unit_instance; + KPromptBarStyle_entriesInitialized = true; + KPromptBarStyle_UNKNOWN_instance = new KPromptBarStyle('UNKNOWN', 0, 0); + KPromptBarStyle_TEXT_instance = new KPromptBarStyle('TEXT', 1, 1); + KPromptBarStyle_CURING_BENEFITS_instance = new KPromptBarStyle('CURING_BENEFITS', 2, 2); + KPromptBarStyle_CARD_OPENING_GIFT_instance = new KPromptBarStyle('CARD_OPENING_GIFT', 3, 3); + KPromptBarStyle_COUNTDOWN_instance = new KPromptBarStyle('COUNTDOWN', 4, 4); + KPromptBarStyle_UNRECOGNIZED_instance = new KPromptBarStyle('UNRECOGNIZED', 5, -1); + Companion_getInstance_95(); + } + function _get_$cachedSerializer__te6jhj_17($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KLimitActionType$Companion$values$delegate$lambda() { + return listOf_0([KLimitActionType_LAT_UNKNOWN_getInstance(), KLimitActionType_SHOW_LIMIT_DIALOG_getInstance(), KLimitActionType_SKIP_CURRENT_EP_getInstance()]); + } + function KLimitActionType$Companion$_anonymous__m853ch() { + return $serializer_getInstance_83(); + } + var KLimitActionType_LAT_UNKNOWN_instance; + var KLimitActionType_SHOW_LIMIT_DIALOG_instance; + var KLimitActionType_SKIP_CURRENT_EP_instance; + var KLimitActionType_UNRECOGNIZED_instance; + var Companion_instance_96; + function Companion_getInstance_96() { + KLimitActionType_initEntries(); + if (Companion_instance_96 === VOID) + new Companion_96(); + return Companion_instance_96; + } + var $serializer_instance_83; + function $serializer_getInstance_83() { + KLimitActionType_initEntries(); + if ($serializer_instance_83 === VOID) + new $serializer_83(); + return $serializer_instance_83; + } + function values_17() { + return [KLimitActionType_LAT_UNKNOWN_getInstance(), KLimitActionType_SHOW_LIMIT_DIALOG_getInstance(), KLimitActionType_SKIP_CURRENT_EP_getInstance(), KLimitActionType_UNRECOGNIZED_getInstance()]; + } + function valueOf_17(value) { + switch (value) { + case 'LAT_UNKNOWN': + return KLimitActionType_LAT_UNKNOWN_getInstance(); + case 'SHOW_LIMIT_DIALOG': + return KLimitActionType_SHOW_LIMIT_DIALOG_getInstance(); + case 'SKIP_CURRENT_EP': + return KLimitActionType_SKIP_CURRENT_EP_getInstance(); + case 'UNRECOGNIZED': + return KLimitActionType_UNRECOGNIZED_getInstance(); + default: + KLimitActionType_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KLimitActionType_entriesInitialized; + function KLimitActionType_initEntries() { + if (KLimitActionType_entriesInitialized) + return Unit_instance; + KLimitActionType_entriesInitialized = true; + KLimitActionType_LAT_UNKNOWN_instance = new KLimitActionType('LAT_UNKNOWN', 0, 0); + KLimitActionType_SHOW_LIMIT_DIALOG_instance = new KLimitActionType('SHOW_LIMIT_DIALOG', 1, 1); + KLimitActionType_SKIP_CURRENT_EP_instance = new KLimitActionType('SKIP_CURRENT_EP', 2, 2); + KLimitActionType_UNRECOGNIZED_instance = new KLimitActionType('UNRECOGNIZED', 3, -1); + Companion_getInstance_96(); + } + function _get_$cachedSerializer__te6jhj_18($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KExtDataType$Companion$values$delegate$lambda() { + return listOf_0([KExtDataType_UNKNOWN_getInstance(), KExtDataType_PLAY_LIST_getInstance(), KExtDataType_BANNER_getInstance(), KExtDataType_HE_INLINE_getInstance()]); + } + function KExtDataType$Companion$_anonymous__hvr9vv() { + return $serializer_getInstance_84(); + } + var KExtDataType_UNKNOWN_instance; + var KExtDataType_PLAY_LIST_instance; + var KExtDataType_BANNER_instance; + var KExtDataType_HE_INLINE_instance; + var KExtDataType_UNRECOGNIZED_instance; + var Companion_instance_97; + function Companion_getInstance_97() { + KExtDataType_initEntries(); + if (Companion_instance_97 === VOID) + new Companion_97(); + return Companion_instance_97; + } + var $serializer_instance_84; + function $serializer_getInstance_84() { + KExtDataType_initEntries(); + if ($serializer_instance_84 === VOID) + new $serializer_84(); + return $serializer_instance_84; + } + function values_18() { + return [KExtDataType_UNKNOWN_getInstance(), KExtDataType_PLAY_LIST_getInstance(), KExtDataType_BANNER_getInstance(), KExtDataType_HE_INLINE_getInstance(), KExtDataType_UNRECOGNIZED_getInstance()]; + } + function valueOf_18(value) { + switch (value) { + case 'UNKNOWN': + return KExtDataType_UNKNOWN_getInstance(); + case 'PLAY_LIST': + return KExtDataType_PLAY_LIST_getInstance(); + case 'BANNER': + return KExtDataType_BANNER_getInstance(); + case 'HE_INLINE': + return KExtDataType_HE_INLINE_getInstance(); + case 'UNRECOGNIZED': + return KExtDataType_UNRECOGNIZED_getInstance(); + default: + KExtDataType_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KExtDataType_entriesInitialized; + function KExtDataType_initEntries() { + if (KExtDataType_entriesInitialized) + return Unit_instance; + KExtDataType_entriesInitialized = true; + KExtDataType_UNKNOWN_instance = new KExtDataType('UNKNOWN', 0, 0); + KExtDataType_PLAY_LIST_instance = new KExtDataType('PLAY_LIST', 1, 1); + KExtDataType_BANNER_instance = new KExtDataType('BANNER', 2, 2); + KExtDataType_HE_INLINE_instance = new KExtDataType('HE_INLINE', 3, 3); + KExtDataType_UNRECOGNIZED_instance = new KExtDataType('UNRECOGNIZED', 4, -1); + Companion_getInstance_97(); + } + function _get_$cachedSerializer__te6jhj_19($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KEffects$Companion$values$delegate$lambda() { + return listOf_0([KEffects_UNKNOWN_getInstance(), KEffects_GAUSSIAN_BLUR_getInstance(), KEffects_HALF_ALPHA_getInstance()]); + } + function KEffects$Companion$_anonymous__mrl5jc() { + return $serializer_getInstance_85(); + } + var KEffects_UNKNOWN_instance; + var KEffects_GAUSSIAN_BLUR_instance; + var KEffects_HALF_ALPHA_instance; + var KEffects_UNRECOGNIZED_instance; + var Companion_instance_98; + function Companion_getInstance_98() { + KEffects_initEntries(); + if (Companion_instance_98 === VOID) + new Companion_98(); + return Companion_instance_98; + } + var $serializer_instance_85; + function $serializer_getInstance_85() { + KEffects_initEntries(); + if ($serializer_instance_85 === VOID) + new $serializer_85(); + return $serializer_instance_85; + } + function values_19() { + return [KEffects_UNKNOWN_getInstance(), KEffects_GAUSSIAN_BLUR_getInstance(), KEffects_HALF_ALPHA_getInstance(), KEffects_UNRECOGNIZED_getInstance()]; + } + function valueOf_19(value) { + switch (value) { + case 'UNKNOWN': + return KEffects_UNKNOWN_getInstance(); + case 'GAUSSIAN_BLUR': + return KEffects_GAUSSIAN_BLUR_getInstance(); + case 'HALF_ALPHA': + return KEffects_HALF_ALPHA_getInstance(); + case 'UNRECOGNIZED': + return KEffects_UNRECOGNIZED_getInstance(); + default: + KEffects_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KEffects_entriesInitialized; + function KEffects_initEntries() { + if (KEffects_entriesInitialized) + return Unit_instance; + KEffects_entriesInitialized = true; + KEffects_UNKNOWN_instance = new KEffects('UNKNOWN', 0, 0); + KEffects_GAUSSIAN_BLUR_instance = new KEffects('GAUSSIAN_BLUR', 1, 1); + KEffects_HALF_ALPHA_instance = new KEffects('HALF_ALPHA', 2, 2); + KEffects_UNRECOGNIZED_instance = new KEffects('UNRECOGNIZED', 3, -1); + Companion_getInstance_98(); + } + function _get_$cachedSerializer__te6jhj_20($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KButtonAction$Companion$values$delegate$lambda() { + return listOf_0([KButtonAction_BUTTON_UNKNOWN_getInstance(), KButtonAction_PAY_getInstance(), KButtonAction_VIP_getInstance(), KButtonAction_PACK_getInstance(), KButtonAction_LINK_getInstance(), KButtonAction_COUPON_getInstance(), KButtonAction_DEMAND_getInstance(), KButtonAction_DEMAND_PACK_getInstance(), KButtonAction_FOLLOW_getInstance(), KButtonAction_APPOINTMENT_getInstance(), KButtonAction_VIP_FREE_getInstance(), KButtonAction_TASK_getInstance(), KButtonAction_CHARGINGPLUS_getInstance(), KButtonAction_BP_getInstance(), KButtonAction_PRE_SELL_getInstance(), KButtonAction_LOGIN_getInstance()]); + } + function KButtonAction$Companion$_anonymous__1jamt8() { + return $serializer_getInstance_86(); + } + var KButtonAction_BUTTON_UNKNOWN_instance; + var KButtonAction_PAY_instance; + var KButtonAction_VIP_instance; + var KButtonAction_PACK_instance; + var KButtonAction_LINK_instance; + var KButtonAction_COUPON_instance; + var KButtonAction_DEMAND_instance; + var KButtonAction_DEMAND_PACK_instance; + var KButtonAction_FOLLOW_instance; + var KButtonAction_APPOINTMENT_instance; + var KButtonAction_VIP_FREE_instance; + var KButtonAction_TASK_instance; + var KButtonAction_CHARGINGPLUS_instance; + var KButtonAction_BP_instance; + var KButtonAction_PRE_SELL_instance; + var KButtonAction_LOGIN_instance; + var KButtonAction_UNRECOGNIZED_instance; + var Companion_instance_99; + function Companion_getInstance_99() { + KButtonAction_initEntries(); + if (Companion_instance_99 === VOID) + new Companion_99(); + return Companion_instance_99; + } + var $serializer_instance_86; + function $serializer_getInstance_86() { + KButtonAction_initEntries(); + if ($serializer_instance_86 === VOID) + new $serializer_86(); + return $serializer_instance_86; + } + function values_20() { + return [KButtonAction_BUTTON_UNKNOWN_getInstance(), KButtonAction_PAY_getInstance(), KButtonAction_VIP_getInstance(), KButtonAction_PACK_getInstance(), KButtonAction_LINK_getInstance(), KButtonAction_COUPON_getInstance(), KButtonAction_DEMAND_getInstance(), KButtonAction_DEMAND_PACK_getInstance(), KButtonAction_FOLLOW_getInstance(), KButtonAction_APPOINTMENT_getInstance(), KButtonAction_VIP_FREE_getInstance(), KButtonAction_TASK_getInstance(), KButtonAction_CHARGINGPLUS_getInstance(), KButtonAction_BP_getInstance(), KButtonAction_PRE_SELL_getInstance(), KButtonAction_LOGIN_getInstance(), KButtonAction_UNRECOGNIZED_getInstance()]; + } + function valueOf_20(value) { + switch (value) { + case 'BUTTON_UNKNOWN': + return KButtonAction_BUTTON_UNKNOWN_getInstance(); + case 'PAY': + return KButtonAction_PAY_getInstance(); + case 'VIP': + return KButtonAction_VIP_getInstance(); + case 'PACK': + return KButtonAction_PACK_getInstance(); + case 'LINK': + return KButtonAction_LINK_getInstance(); + case 'COUPON': + return KButtonAction_COUPON_getInstance(); + case 'DEMAND': + return KButtonAction_DEMAND_getInstance(); + case 'DEMAND_PACK': + return KButtonAction_DEMAND_PACK_getInstance(); + case 'FOLLOW': + return KButtonAction_FOLLOW_getInstance(); + case 'APPOINTMENT': + return KButtonAction_APPOINTMENT_getInstance(); + case 'VIP_FREE': + return KButtonAction_VIP_FREE_getInstance(); + case 'TASK': + return KButtonAction_TASK_getInstance(); + case 'CHARGINGPLUS': + return KButtonAction_CHARGINGPLUS_getInstance(); + case 'BP': + return KButtonAction_BP_getInstance(); + case 'PRE_SELL': + return KButtonAction_PRE_SELL_getInstance(); + case 'LOGIN': + return KButtonAction_LOGIN_getInstance(); + case 'UNRECOGNIZED': + return KButtonAction_UNRECOGNIZED_getInstance(); + default: + KButtonAction_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KButtonAction_entriesInitialized; + function KButtonAction_initEntries() { + if (KButtonAction_entriesInitialized) + return Unit_instance; + KButtonAction_entriesInitialized = true; + KButtonAction_BUTTON_UNKNOWN_instance = new KButtonAction('BUTTON_UNKNOWN', 0, 0); + KButtonAction_PAY_instance = new KButtonAction('PAY', 1, 1); + KButtonAction_VIP_instance = new KButtonAction('VIP', 2, 2); + KButtonAction_PACK_instance = new KButtonAction('PACK', 3, 3); + KButtonAction_LINK_instance = new KButtonAction('LINK', 4, 4); + KButtonAction_COUPON_instance = new KButtonAction('COUPON', 5, 5); + KButtonAction_DEMAND_instance = new KButtonAction('DEMAND', 6, 6); + KButtonAction_DEMAND_PACK_instance = new KButtonAction('DEMAND_PACK', 7, 7); + KButtonAction_FOLLOW_instance = new KButtonAction('FOLLOW', 8, 8); + KButtonAction_APPOINTMENT_instance = new KButtonAction('APPOINTMENT', 9, 9); + KButtonAction_VIP_FREE_instance = new KButtonAction('VIP_FREE', 10, 10); + KButtonAction_TASK_instance = new KButtonAction('TASK', 11, 11); + KButtonAction_CHARGINGPLUS_instance = new KButtonAction('CHARGINGPLUS', 12, 12); + KButtonAction_BP_instance = new KButtonAction('BP', 13, 13); + KButtonAction_PRE_SELL_instance = new KButtonAction('PRE_SELL', 14, 14); + KButtonAction_LOGIN_instance = new KButtonAction('LOGIN', 15, 15); + KButtonAction_UNRECOGNIZED_instance = new KButtonAction('UNRECOGNIZED', 16, -1); + Companion_getInstance_99(); + } + var Companion_instance_100; + function Companion_getInstance_100() { + return Companion_instance_100; + } + var $serializer_instance_87; + function $serializer_getInstance_87() { + if ($serializer_instance_87 === VOID) + new $serializer_87(); + return $serializer_instance_87; + } + var Companion_instance_101; + function Companion_getInstance_101() { + if (Companion_instance_101 === VOID) + new Companion_101(); + return Companion_instance_101; + } + var $serializer_instance_88; + function $serializer_getInstance_88() { + if ($serializer_instance_88 === VOID) + new $serializer_88(); + return $serializer_instance_88; + } + var Companion_instance_102; + function Companion_getInstance_102() { + return Companion_instance_102; + } + var $serializer_instance_89; + function $serializer_getInstance_89() { + if ($serializer_instance_89 === VOID) + new $serializer_89(); + return $serializer_instance_89; + } + var Companion_instance_103; + function Companion_getInstance_103() { + if (Companion_instance_103 === VOID) + new Companion_103(); + return Companion_instance_103; + } + var $serializer_instance_90; + function $serializer_getInstance_90() { + if ($serializer_instance_90 === VOID) + new $serializer_90(); + return $serializer_instance_90; + } + var Companion_instance_104; + function Companion_getInstance_104() { + if (Companion_instance_104 === VOID) + new Companion_104(); + return Companion_instance_104; + } + var $serializer_instance_91; + function $serializer_getInstance_91() { + if ($serializer_instance_91 === VOID) + new $serializer_91(); + return $serializer_instance_91; + } + var Companion_instance_105; + function Companion_getInstance_105() { + return Companion_instance_105; + } + var $serializer_instance_92; + function $serializer_getInstance_92() { + if ($serializer_instance_92 === VOID) + new $serializer_92(); + return $serializer_instance_92; + } + var Companion_instance_106; + function Companion_getInstance_106() { + if (Companion_instance_106 === VOID) + new Companion_106(); + return Companion_instance_106; + } + var $serializer_instance_93; + function $serializer_getInstance_93() { + if ($serializer_instance_93 === VOID) + new $serializer_93(); + return $serializer_instance_93; + } + var Companion_instance_107; + function Companion_getInstance_107() { + return Companion_instance_107; + } + var $serializer_instance_94; + function $serializer_getInstance_94() { + if ($serializer_instance_94 === VOID) + new $serializer_94(); + return $serializer_instance_94; + } + var Companion_instance_108; + function Companion_getInstance_108() { + return Companion_instance_108; + } + var $serializer_instance_95; + function $serializer_getInstance_95() { + if ($serializer_instance_95 === VOID) + new $serializer_95(); + return $serializer_instance_95; + } + var Companion_instance_109; + function Companion_getInstance_109() { + return Companion_instance_109; + } + var $serializer_instance_96; + function $serializer_getInstance_96() { + if ($serializer_instance_96 === VOID) + new $serializer_96(); + return $serializer_instance_96; + } + var Companion_instance_110; + function Companion_getInstance_110() { + return Companion_instance_110; + } + var $serializer_instance_97; + function $serializer_getInstance_97() { + if ($serializer_instance_97 === VOID) + new $serializer_97(); + return $serializer_instance_97; + } + function KExtData$Companion$dataValues$delegate$lambda() { + return listOf_0([KPlayListInfo_getInstance(), KBanner_getInstance(), KEpInlineVideoInfo_getInstance()]); + } + function _get_dataNumber__hqvc14($this) { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = $this.dataNumber$delegate_1; + var thisRef = $this; + var property = dataNumber$factory(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + var KPlayListInfo_instance; + function KPlayListInfo_getInstance() { + if (KPlayListInfo_instance === VOID) + new KPlayListInfo(); + return KPlayListInfo_instance; + } + var KBanner_instance; + function KBanner_getInstance() { + if (KBanner_instance === VOID) + new KBanner(); + return KBanner_instance; + } + var KEpInlineVideoInfo_instance; + function KEpInlineVideoInfo_getInstance() { + if (KEpInlineVideoInfo_instance === VOID) + new KEpInlineVideoInfo(); + return KEpInlineVideoInfo_instance; + } + var Companion_instance_111; + function Companion_getInstance_111() { + if (Companion_instance_111 === VOID) + new Companion_111(); + return Companion_instance_111; + } + var $serializer_instance_98; + function $serializer_getInstance_98() { + if ($serializer_instance_98 === VOID) + new $serializer_98(); + return $serializer_instance_98; + } + function KExtData$dataNumber$delegate$lambda(this$0) { + return function () { + var tmp; + if (!(this$0.playListInfo_1 == null)) { + tmp = 0; + } else if (!(this$0.banner_1 == null)) { + tmp = 1; + } else if (!(this$0.epInlineVideoInfo_1 == null)) { + tmp = 2; + } else { + tmp = -1; + } + return tmp; + }; + } + function KExtData$_init_$lambda_92vcj9(this$0) { + return function () { + var tmp; + if (!(this$0.playListInfo_1 == null)) { + tmp = 0; + } else if (!(this$0.banner_1 == null)) { + tmp = 1; + } else if (!(this$0.epInlineVideoInfo_1 == null)) { + tmp = 2; + } else { + tmp = -1; + } + return tmp; + }; + } + var Companion_instance_112; + function Companion_getInstance_112() { + return Companion_instance_112; + } + var $serializer_instance_99; + function $serializer_getInstance_99() { + if ($serializer_instance_99 === VOID) + new $serializer_99(); + return $serializer_instance_99; + } + var Companion_instance_113; + function Companion_getInstance_113() { + if (Companion_instance_113 === VOID) + new Companion_113(); + return Companion_instance_113; + } + var $serializer_instance_100; + function $serializer_getInstance_100() { + if ($serializer_instance_100 === VOID) + new $serializer_100(); + return $serializer_instance_100; + } + var Companion_instance_114; + function Companion_getInstance_114() { + return Companion_instance_114; + } + var $serializer_instance_101; + function $serializer_getInstance_101() { + if ($serializer_instance_101 === VOID) + new $serializer_101(); + return $serializer_instance_101; + } + var Companion_instance_115; + function Companion_getInstance_115() { + if (Companion_instance_115 === VOID) + new Companion_115(); + return Companion_instance_115; + } + var $serializer_instance_102; + function $serializer_getInstance_102() { + if ($serializer_instance_102 === VOID) + new $serializer_102(); + return $serializer_instance_102; + } + var Companion_instance_116; + function Companion_getInstance_116() { + return Companion_instance_116; + } + var $serializer_instance_103; + function $serializer_getInstance_103() { + if ($serializer_instance_103 === VOID) + new $serializer_103(); + return $serializer_instance_103; + } + var Companion_instance_117; + function Companion_getInstance_117() { + return Companion_instance_117; + } + var $serializer_instance_104; + function $serializer_getInstance_104() { + if ($serializer_instance_104 === VOID) + new $serializer_104(); + return $serializer_instance_104; + } + var Companion_instance_118; + function Companion_getInstance_118() { + return Companion_instance_118; + } + var $serializer_instance_105; + function $serializer_getInstance_105() { + if ($serializer_instance_105 === VOID) + new $serializer_105(); + return $serializer_instance_105; + } + var Companion_instance_119; + function Companion_getInstance_119() { + return Companion_instance_119; + } + var $serializer_instance_106; + function $serializer_getInstance_106() { + if ($serializer_instance_106 === VOID) + new $serializer_106(); + return $serializer_instance_106; + } + var Companion_instance_120; + function Companion_getInstance_120() { + return Companion_instance_120; + } + var $serializer_instance_107; + function $serializer_getInstance_107() { + if ($serializer_instance_107 === VOID) + new $serializer_107(); + return $serializer_instance_107; + } + var Companion_instance_121; + function Companion_getInstance_121() { + if (Companion_instance_121 === VOID) + new Companion_121(); + return Companion_instance_121; + } + var $serializer_instance_108; + function $serializer_getInstance_108() { + if ($serializer_instance_108 === VOID) + new $serializer_108(); + return $serializer_instance_108; + } + var Companion_instance_122; + function Companion_getInstance_122() { + return Companion_instance_122; + } + var $serializer_instance_109; + function $serializer_getInstance_109() { + if ($serializer_instance_109 === VOID) + new $serializer_109(); + return $serializer_instance_109; + } + function KToastType_UNKNOWN_getInstance() { + KToastType_initEntries(); + return KToastType_UNKNOWN_instance; + } + function KToastType_VIP_CONTENT_REMIND_getInstance() { + KToastType_initEntries(); + return KToastType_VIP_CONTENT_REMIND_instance; + } + function KToastType_VIP_DEFINITION_REMIND_getInstance() { + KToastType_initEntries(); + return KToastType_VIP_DEFINITION_REMIND_instance; + } + function KToastType_VIP_DEFINITION_GUIDE_getInstance() { + KToastType_initEntries(); + return KToastType_VIP_DEFINITION_GUIDE_instance; + } + function KToastType_OGV_VIDEO_START_TOAST_getInstance() { + KToastType_initEntries(); + return KToastType_OGV_VIDEO_START_TOAST_instance; + } + function KToastType_CHARGING_TOAST_getInstance() { + KToastType_initEntries(); + return KToastType_CHARGING_TOAST_instance; + } + function KToastType_VIP_SKIP_FRAGMENT_TOAST_getInstance() { + KToastType_initEntries(); + return KToastType_VIP_SKIP_FRAGMENT_TOAST_instance; + } + function KToastType_UNRECOGNIZED_getInstance() { + KToastType_initEntries(); + return KToastType_UNRECOGNIZED_instance; + } + function KShowStyleType_UNKNOWN_getInstance() { + KShowStyleType_initEntries(); + return KShowStyleType_UNKNOWN_instance; + } + function KShowStyleType_ORDINARY_getInstance() { + KShowStyleType_initEntries(); + return KShowStyleType_ORDINARY_instance; + } + function KShowStyleType_RESIDENT_getInstance() { + KShowStyleType_initEntries(); + return KShowStyleType_RESIDENT_instance; + } + function KShowStyleType_UNRECOGNIZED_getInstance() { + KShowStyleType_initEntries(); + return KShowStyleType_UNRECOGNIZED_instance; + } + function KGuideStyle_STYLE_UNKNOWN_getInstance() { + KGuideStyle_initEntries(); + return KGuideStyle_STYLE_UNKNOWN_instance; + } + function KGuideStyle_HORIZONTAL_IMAGE_getInstance() { + KGuideStyle_initEntries(); + return KGuideStyle_HORIZONTAL_IMAGE_instance; + } + function KGuideStyle_VERTICAL_TEXT_getInstance() { + KGuideStyle_initEntries(); + return KGuideStyle_VERTICAL_TEXT_instance; + } + function KGuideStyle_SIMPLE_TEXT_getInstance() { + KGuideStyle_initEntries(); + return KGuideStyle_SIMPLE_TEXT_instance; + } + function KGuideStyle_CHARGING_TEXT_getInstance() { + KGuideStyle_initEntries(); + return KGuideStyle_CHARGING_TEXT_instance; + } + function KGuideStyle_UNRECOGNIZED_getInstance() { + KGuideStyle_initEntries(); + return KGuideStyle_UNRECOGNIZED_instance; + } + function KPromptBarType_UNKNOWN_getInstance() { + KPromptBarType_initEntries(); + return KPromptBarType_UNKNOWN_instance; + } + function KPromptBarType_OPEN_PROMPT_BAR_getInstance() { + KPromptBarType_initEntries(); + return KPromptBarType_OPEN_PROMPT_BAR_instance; + } + function KPromptBarType_TRY_PROMPT_BAR_getInstance() { + KPromptBarType_initEntries(); + return KPromptBarType_TRY_PROMPT_BAR_instance; + } + function KPromptBarType_UNRECOGNIZED_getInstance() { + KPromptBarType_initEntries(); + return KPromptBarType_UNRECOGNIZED_instance; + } + function KPromptBarStyle_UNKNOWN_getInstance() { + KPromptBarStyle_initEntries(); + return KPromptBarStyle_UNKNOWN_instance; + } + function KPromptBarStyle_TEXT_getInstance() { + KPromptBarStyle_initEntries(); + return KPromptBarStyle_TEXT_instance; + } + function KPromptBarStyle_CURING_BENEFITS_getInstance() { + KPromptBarStyle_initEntries(); + return KPromptBarStyle_CURING_BENEFITS_instance; + } + function KPromptBarStyle_CARD_OPENING_GIFT_getInstance() { + KPromptBarStyle_initEntries(); + return KPromptBarStyle_CARD_OPENING_GIFT_instance; + } + function KPromptBarStyle_COUNTDOWN_getInstance() { + KPromptBarStyle_initEntries(); + return KPromptBarStyle_COUNTDOWN_instance; + } + function KPromptBarStyle_UNRECOGNIZED_getInstance() { + KPromptBarStyle_initEntries(); + return KPromptBarStyle_UNRECOGNIZED_instance; + } + function KLimitActionType_LAT_UNKNOWN_getInstance() { + KLimitActionType_initEntries(); + return KLimitActionType_LAT_UNKNOWN_instance; + } + function KLimitActionType_SHOW_LIMIT_DIALOG_getInstance() { + KLimitActionType_initEntries(); + return KLimitActionType_SHOW_LIMIT_DIALOG_instance; + } + function KLimitActionType_SKIP_CURRENT_EP_getInstance() { + KLimitActionType_initEntries(); + return KLimitActionType_SKIP_CURRENT_EP_instance; + } + function KLimitActionType_UNRECOGNIZED_getInstance() { + KLimitActionType_initEntries(); + return KLimitActionType_UNRECOGNIZED_instance; + } + function KExtDataType_UNKNOWN_getInstance() { + KExtDataType_initEntries(); + return KExtDataType_UNKNOWN_instance; + } + function KExtDataType_PLAY_LIST_getInstance() { + KExtDataType_initEntries(); + return KExtDataType_PLAY_LIST_instance; + } + function KExtDataType_BANNER_getInstance() { + KExtDataType_initEntries(); + return KExtDataType_BANNER_instance; + } + function KExtDataType_HE_INLINE_getInstance() { + KExtDataType_initEntries(); + return KExtDataType_HE_INLINE_instance; + } + function KExtDataType_UNRECOGNIZED_getInstance() { + KExtDataType_initEntries(); + return KExtDataType_UNRECOGNIZED_instance; + } + function KEffects_UNKNOWN_getInstance() { + KEffects_initEntries(); + return KEffects_UNKNOWN_instance; + } + function KEffects_GAUSSIAN_BLUR_getInstance() { + KEffects_initEntries(); + return KEffects_GAUSSIAN_BLUR_instance; + } + function KEffects_HALF_ALPHA_getInstance() { + KEffects_initEntries(); + return KEffects_HALF_ALPHA_instance; + } + function KEffects_UNRECOGNIZED_getInstance() { + KEffects_initEntries(); + return KEffects_UNRECOGNIZED_instance; + } + function KButtonAction_BUTTON_UNKNOWN_getInstance() { + KButtonAction_initEntries(); + return KButtonAction_BUTTON_UNKNOWN_instance; + } + function KButtonAction_PAY_getInstance() { + KButtonAction_initEntries(); + return KButtonAction_PAY_instance; + } + function KButtonAction_VIP_getInstance() { + KButtonAction_initEntries(); + return KButtonAction_VIP_instance; + } + function KButtonAction_PACK_getInstance() { + KButtonAction_initEntries(); + return KButtonAction_PACK_instance; + } + function KButtonAction_LINK_getInstance() { + KButtonAction_initEntries(); + return KButtonAction_LINK_instance; + } + function KButtonAction_COUPON_getInstance() { + KButtonAction_initEntries(); + return KButtonAction_COUPON_instance; + } + function KButtonAction_DEMAND_getInstance() { + KButtonAction_initEntries(); + return KButtonAction_DEMAND_instance; + } + function KButtonAction_DEMAND_PACK_getInstance() { + KButtonAction_initEntries(); + return KButtonAction_DEMAND_PACK_instance; + } + function KButtonAction_FOLLOW_getInstance() { + KButtonAction_initEntries(); + return KButtonAction_FOLLOW_instance; + } + function KButtonAction_APPOINTMENT_getInstance() { + KButtonAction_initEntries(); + return KButtonAction_APPOINTMENT_instance; + } + function KButtonAction_VIP_FREE_getInstance() { + KButtonAction_initEntries(); + return KButtonAction_VIP_FREE_instance; + } + function KButtonAction_TASK_getInstance() { + KButtonAction_initEntries(); + return KButtonAction_TASK_instance; + } + function KButtonAction_CHARGINGPLUS_getInstance() { + KButtonAction_initEntries(); + return KButtonAction_CHARGINGPLUS_instance; + } + function KButtonAction_BP_getInstance() { + KButtonAction_initEntries(); + return KButtonAction_BP_instance; + } + function KButtonAction_PRE_SELL_getInstance() { + KButtonAction_initEntries(); + return KButtonAction_PRE_SELL_instance; + } + function KButtonAction_LOGIN_getInstance() { + KButtonAction_initEntries(); + return KButtonAction_LOGIN_instance; + } + function KButtonAction_UNRECOGNIZED_getInstance() { + KButtonAction_initEntries(); + return KButtonAction_UNRECOGNIZED_instance; + } + function values$factory_12() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_13() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_14() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_15() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_16() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_17() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_18() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_19() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_20() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function dataNumber$factory() { + return getPropertyCallableRef('dataNumber', 1, KProperty1, function (receiver) { + return _get_dataNumber__hqvc14(receiver); + }, null); + } + function dataValues$factory() { + return getPropertyCallableRef('dataValues', 1, KProperty1, function (receiver) { + return receiver.dataValues; + }, null); + } + function _get_$cachedSerializer__te6jhj_21($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KCodeType$Companion$values$delegate$lambda() { + return listOf_0([KCodeType_NOCODE_getInstance(), KCodeType_CODE264_getInstance(), KCodeType_CODE265_getInstance(), KCodeType_CODEAV1_getInstance()]); + } + function KCodeType$Companion$_anonymous__o4y9s3() { + return $serializer_getInstance_110(); + } + var KCodeType_NOCODE_instance; + var KCodeType_CODE264_instance; + var KCodeType_CODE265_instance; + var KCodeType_CODEAV1_instance; + var KCodeType_UNRECOGNIZED_instance; + var Companion_instance_123; + function Companion_getInstance_123() { + KCodeType_initEntries(); + if (Companion_instance_123 === VOID) + new Companion_123(); + return Companion_instance_123; + } + var $serializer_instance_110; + function $serializer_getInstance_110() { + KCodeType_initEntries(); + if ($serializer_instance_110 === VOID) + new $serializer_110(); + return $serializer_instance_110; + } + function values_21() { + return [KCodeType_NOCODE_getInstance(), KCodeType_CODE264_getInstance(), KCodeType_CODE265_getInstance(), KCodeType_CODEAV1_getInstance(), KCodeType_UNRECOGNIZED_getInstance()]; + } + function valueOf_21(value) { + switch (value) { + case 'NOCODE': + return KCodeType_NOCODE_getInstance(); + case 'CODE264': + return KCodeType_CODE264_getInstance(); + case 'CODE265': + return KCodeType_CODE265_getInstance(); + case 'CODEAV1': + return KCodeType_CODEAV1_getInstance(); + case 'UNRECOGNIZED': + return KCodeType_UNRECOGNIZED_getInstance(); + default: + KCodeType_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KCodeType_entriesInitialized; + function KCodeType_initEntries() { + if (KCodeType_entriesInitialized) + return Unit_instance; + KCodeType_entriesInitialized = true; + KCodeType_NOCODE_instance = new KCodeType('NOCODE', 0, 0); + KCodeType_CODE264_instance = new KCodeType('CODE264', 1, 1); + KCodeType_CODE265_instance = new KCodeType('CODE265', 2, 2); + KCodeType_CODEAV1_instance = new KCodeType('CODEAV1', 3, 3); + KCodeType_UNRECOGNIZED_instance = new KCodeType('UNRECOGNIZED', 4, -1); + Companion_getInstance_123(); + } + function _get_$cachedSerializer__te6jhj_22($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KPlayErr$Companion$values$delegate$lambda() { + return listOf_0([KPlayErr_NO_ERR_getInstance(), KPlayErr_WITH_MULTI_DEVICE_LOGIN_ERR_getInstance()]); + } + function KPlayErr$Companion$_anonymous__132ufr() { + return $serializer_getInstance_111(); + } + var KPlayErr_NO_ERR_instance; + var KPlayErr_WITH_MULTI_DEVICE_LOGIN_ERR_instance; + var KPlayErr_UNRECOGNIZED_instance; + var Companion_instance_124; + function Companion_getInstance_124() { + KPlayErr_initEntries(); + if (Companion_instance_124 === VOID) + new Companion_124(); + return Companion_instance_124; + } + var $serializer_instance_111; + function $serializer_getInstance_111() { + KPlayErr_initEntries(); + if ($serializer_instance_111 === VOID) + new $serializer_111(); + return $serializer_instance_111; + } + function values_22() { + return [KPlayErr_NO_ERR_getInstance(), KPlayErr_WITH_MULTI_DEVICE_LOGIN_ERR_getInstance(), KPlayErr_UNRECOGNIZED_getInstance()]; + } + function valueOf_22(value) { + switch (value) { + case 'NO_ERR': + return KPlayErr_NO_ERR_getInstance(); + case 'WITH_MULTI_DEVICE_LOGIN_ERR': + return KPlayErr_WITH_MULTI_DEVICE_LOGIN_ERR_getInstance(); + case 'UNRECOGNIZED': + return KPlayErr_UNRECOGNIZED_getInstance(); + default: + KPlayErr_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KPlayErr_entriesInitialized; + function KPlayErr_initEntries() { + if (KPlayErr_entriesInitialized) + return Unit_instance; + KPlayErr_entriesInitialized = true; + KPlayErr_NO_ERR_instance = new KPlayErr('NO_ERR', 0, 0); + KPlayErr_WITH_MULTI_DEVICE_LOGIN_ERR_instance = new KPlayErr('WITH_MULTI_DEVICE_LOGIN_ERR', 1, 1); + KPlayErr_UNRECOGNIZED_instance = new KPlayErr('UNRECOGNIZED', 2, -1); + Companion_getInstance_124(); + } + function _get_$cachedSerializer__te6jhj_23($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KFragmentType$Companion$values$delegate$lambda() { + return listOf_0([KFragmentType_UNKNOWN_getInstance(), KFragmentType_AD_FRAGMENT_getInstance(), KFragmentType_OGV_FRAGMENT_getInstance()]); + } + function KFragmentType$Companion$_anonymous__qo2cdi() { + return $serializer_getInstance_112(); + } + var KFragmentType_UNKNOWN_instance; + var KFragmentType_AD_FRAGMENT_instance; + var KFragmentType_OGV_FRAGMENT_instance; + var KFragmentType_UNRECOGNIZED_instance; + var Companion_instance_125; + function Companion_getInstance_125() { + KFragmentType_initEntries(); + if (Companion_instance_125 === VOID) + new Companion_125(); + return Companion_instance_125; + } + var $serializer_instance_112; + function $serializer_getInstance_112() { + KFragmentType_initEntries(); + if ($serializer_instance_112 === VOID) + new $serializer_112(); + return $serializer_instance_112; + } + function values_23() { + return [KFragmentType_UNKNOWN_getInstance(), KFragmentType_AD_FRAGMENT_getInstance(), KFragmentType_OGV_FRAGMENT_getInstance(), KFragmentType_UNRECOGNIZED_getInstance()]; + } + function valueOf_23(value) { + switch (value) { + case 'UNKNOWN': + return KFragmentType_UNKNOWN_getInstance(); + case 'AD_FRAGMENT': + return KFragmentType_AD_FRAGMENT_getInstance(); + case 'OGV_FRAGMENT': + return KFragmentType_OGV_FRAGMENT_getInstance(); + case 'UNRECOGNIZED': + return KFragmentType_UNRECOGNIZED_getInstance(); + default: + KFragmentType_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KFragmentType_entriesInitialized; + function KFragmentType_initEntries() { + if (KFragmentType_entriesInitialized) + return Unit_instance; + KFragmentType_entriesInitialized = true; + KFragmentType_UNKNOWN_instance = new KFragmentType('UNKNOWN', 0, 0); + KFragmentType_AD_FRAGMENT_instance = new KFragmentType('AD_FRAGMENT', 1, 1); + KFragmentType_OGV_FRAGMENT_instance = new KFragmentType('OGV_FRAGMENT', 2, 2); + KFragmentType_UNRECOGNIZED_instance = new KFragmentType('UNRECOGNIZED', 3, -1); + Companion_getInstance_125(); + } + function _get_$cachedSerializer__te6jhj_24($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KFragmentPosition$Companion$values$delegate$lambda() { + return listOf_0([KFragmentPosition_INVALID_getInstance(), KFragmentPosition_PRE_getInstance(), KFragmentPosition_MIDDLE_getInstance(), KFragmentPosition_POST_getInstance()]); + } + function KFragmentPosition$Companion$_anonymous__dr9rh1() { + return $serializer_getInstance_113(); + } + var KFragmentPosition_INVALID_instance; + var KFragmentPosition_PRE_instance; + var KFragmentPosition_MIDDLE_instance; + var KFragmentPosition_POST_instance; + var KFragmentPosition_UNRECOGNIZED_instance; + var Companion_instance_126; + function Companion_getInstance_126() { + KFragmentPosition_initEntries(); + if (Companion_instance_126 === VOID) + new Companion_126(); + return Companion_instance_126; + } + var $serializer_instance_113; + function $serializer_getInstance_113() { + KFragmentPosition_initEntries(); + if ($serializer_instance_113 === VOID) + new $serializer_113(); + return $serializer_instance_113; + } + function values_24() { + return [KFragmentPosition_INVALID_getInstance(), KFragmentPosition_PRE_getInstance(), KFragmentPosition_MIDDLE_getInstance(), KFragmentPosition_POST_getInstance(), KFragmentPosition_UNRECOGNIZED_getInstance()]; + } + function valueOf_24(value) { + switch (value) { + case 'INVALID': + return KFragmentPosition_INVALID_getInstance(); + case 'PRE': + return KFragmentPosition_PRE_getInstance(); + case 'MIDDLE': + return KFragmentPosition_MIDDLE_getInstance(); + case 'POST': + return KFragmentPosition_POST_getInstance(); + case 'UNRECOGNIZED': + return KFragmentPosition_UNRECOGNIZED_getInstance(); + default: + KFragmentPosition_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KFragmentPosition_entriesInitialized; + function KFragmentPosition_initEntries() { + if (KFragmentPosition_entriesInitialized) + return Unit_instance; + KFragmentPosition_entriesInitialized = true; + KFragmentPosition_INVALID_instance = new KFragmentPosition('INVALID', 0, 0); + KFragmentPosition_PRE_instance = new KFragmentPosition('PRE', 1, 1); + KFragmentPosition_MIDDLE_instance = new KFragmentPosition('MIDDLE', 2, 2); + KFragmentPosition_POST_instance = new KFragmentPosition('POST', 3, 3); + KFragmentPosition_UNRECOGNIZED_instance = new KFragmentPosition('UNRECOGNIZED', 4, -1); + Companion_getInstance_126(); + } + function _get_$cachedSerializer__te6jhj_25($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KArcType$Companion$values$delegate$lambda() { + return listOf_0([KArcType_NORMAL_getInstance(), KArcType_INTERACT_getInstance()]); + } + function KArcType$Companion$_anonymous__x4bfym() { + return $serializer_getInstance_114(); + } + var KArcType_NORMAL_instance; + var KArcType_INTERACT_instance; + var KArcType_UNRECOGNIZED_instance; + var Companion_instance_127; + function Companion_getInstance_127() { + KArcType_initEntries(); + if (Companion_instance_127 === VOID) + new Companion_127(); + return Companion_instance_127; + } + var $serializer_instance_114; + function $serializer_getInstance_114() { + KArcType_initEntries(); + if ($serializer_instance_114 === VOID) + new $serializer_114(); + return $serializer_instance_114; + } + function values_25() { + return [KArcType_NORMAL_getInstance(), KArcType_INTERACT_getInstance(), KArcType_UNRECOGNIZED_getInstance()]; + } + function valueOf_25(value) { + switch (value) { + case 'NORMAL': + return KArcType_NORMAL_getInstance(); + case 'INTERACT': + return KArcType_INTERACT_getInstance(); + case 'UNRECOGNIZED': + return KArcType_UNRECOGNIZED_getInstance(); + default: + KArcType_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KArcType_entriesInitialized; + function KArcType_initEntries() { + if (KArcType_entriesInitialized) + return Unit_instance; + KArcType_entriesInitialized = true; + KArcType_NORMAL_instance = new KArcType('NORMAL', 0, 0); + KArcType_INTERACT_instance = new KArcType('INTERACT', 1, 1); + KArcType_UNRECOGNIZED_instance = new KArcType('UNRECOGNIZED', 2, -1); + Companion_getInstance_127(); + } + function _get_$cachedSerializer__te6jhj_26($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KDrmTechType$Companion$values$delegate$lambda() { + return listOf_0([KDrmTechType_UNKNOWN_DRM_getInstance(), KDrmTechType_FAIR_PLAY_getInstance(), KDrmTechType_WIDE_VINE_getInstance(), KDrmTechType_BILI_DRM_getInstance()]); + } + function KDrmTechType$Companion$_anonymous__ig3vzp() { + return $serializer_getInstance_115(); + } + var KDrmTechType_UNKNOWN_DRM_instance; + var KDrmTechType_FAIR_PLAY_instance; + var KDrmTechType_WIDE_VINE_instance; + var KDrmTechType_BILI_DRM_instance; + var KDrmTechType_UNRECOGNIZED_instance; + var Companion_instance_128; + function Companion_getInstance_128() { + KDrmTechType_initEntries(); + if (Companion_instance_128 === VOID) + new Companion_128(); + return Companion_instance_128; + } + var $serializer_instance_115; + function $serializer_getInstance_115() { + KDrmTechType_initEntries(); + if ($serializer_instance_115 === VOID) + new $serializer_115(); + return $serializer_instance_115; + } + function values_26() { + return [KDrmTechType_UNKNOWN_DRM_getInstance(), KDrmTechType_FAIR_PLAY_getInstance(), KDrmTechType_WIDE_VINE_getInstance(), KDrmTechType_BILI_DRM_getInstance(), KDrmTechType_UNRECOGNIZED_getInstance()]; + } + function valueOf_26(value) { + switch (value) { + case 'UNKNOWN_DRM': + return KDrmTechType_UNKNOWN_DRM_getInstance(); + case 'FAIR_PLAY': + return KDrmTechType_FAIR_PLAY_getInstance(); + case 'WIDE_VINE': + return KDrmTechType_WIDE_VINE_getInstance(); + case 'BILI_DRM': + return KDrmTechType_BILI_DRM_getInstance(); + case 'UNRECOGNIZED': + return KDrmTechType_UNRECOGNIZED_getInstance(); + default: + KDrmTechType_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KDrmTechType_entriesInitialized; + function KDrmTechType_initEntries() { + if (KDrmTechType_entriesInitialized) + return Unit_instance; + KDrmTechType_entriesInitialized = true; + KDrmTechType_UNKNOWN_DRM_instance = new KDrmTechType('UNKNOWN_DRM', 0, 0); + KDrmTechType_FAIR_PLAY_instance = new KDrmTechType('FAIR_PLAY', 1, 1); + KDrmTechType_WIDE_VINE_instance = new KDrmTechType('WIDE_VINE', 2, 2); + KDrmTechType_BILI_DRM_instance = new KDrmTechType('BILI_DRM', 3, 3); + KDrmTechType_UNRECOGNIZED_instance = new KDrmTechType('UNRECOGNIZED', 4, -1); + Companion_getInstance_128(); + } + function _get_$cachedSerializer__te6jhj_27($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KBizType$Companion$values$delegate$lambda() { + return listOf_0([KBizType_UNKNOWN_getInstance(), KBizType_UGC_getInstance(), KBizType_PGC_getInstance(), KBizType_PUGV_getInstance()]); + } + function KBizType$Companion$_anonymous__qvpjhv() { + return $serializer_getInstance_116(); + } + var KBizType_UNKNOWN_instance; + var KBizType_UGC_instance; + var KBizType_PGC_instance; + var KBizType_PUGV_instance; + var KBizType_UNRECOGNIZED_instance; + var Companion_instance_129; + function Companion_getInstance_129() { + KBizType_initEntries(); + if (Companion_instance_129 === VOID) + new Companion_129(); + return Companion_instance_129; + } + var $serializer_instance_116; + function $serializer_getInstance_116() { + KBizType_initEntries(); + if ($serializer_instance_116 === VOID) + new $serializer_116(); + return $serializer_instance_116; + } + function values_27() { + return [KBizType_UNKNOWN_getInstance(), KBizType_UGC_getInstance(), KBizType_PGC_getInstance(), KBizType_PUGV_getInstance(), KBizType_UNRECOGNIZED_getInstance()]; + } + function valueOf_27(value) { + switch (value) { + case 'UNKNOWN': + return KBizType_UNKNOWN_getInstance(); + case 'UGC': + return KBizType_UGC_getInstance(); + case 'PGC': + return KBizType_PGC_getInstance(); + case 'PUGV': + return KBizType_PUGV_getInstance(); + case 'UNRECOGNIZED': + return KBizType_UNRECOGNIZED_getInstance(); + default: + KBizType_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KBizType_entriesInitialized; + function KBizType_initEntries() { + if (KBizType_entriesInitialized) + return Unit_instance; + KBizType_entriesInitialized = true; + KBizType_UNKNOWN_instance = new KBizType('UNKNOWN', 0, 0); + KBizType_UGC_instance = new KBizType('UGC', 1, 1); + KBizType_PGC_instance = new KBizType('PGC', 2, 2); + KBizType_PUGV_instance = new KBizType('PUGV', 3, 3); + KBizType_UNRECOGNIZED_instance = new KBizType('UNRECOGNIZED', 4, -1); + Companion_getInstance_129(); + } + var Companion_instance_130; + function Companion_getInstance_130() { + return Companion_instance_130; + } + var $serializer_instance_117; + function $serializer_getInstance_117() { + if ($serializer_instance_117 === VOID) + new $serializer_117(); + return $serializer_instance_117; + } + var Companion_instance_131; + function Companion_getInstance_131() { + if (Companion_instance_131 === VOID) + new Companion_131(); + return Companion_instance_131; + } + var $serializer_instance_118; + function $serializer_getInstance_118() { + if ($serializer_instance_118 === VOID) + new $serializer_118(); + return $serializer_instance_118; + } + var Companion_instance_132; + function Companion_getInstance_132() { + if (Companion_instance_132 === VOID) + new Companion_132(); + return Companion_instance_132; + } + var $serializer_instance_119; + function $serializer_getInstance_119() { + if ($serializer_instance_119 === VOID) + new $serializer_119(); + return $serializer_instance_119; + } + var Companion_instance_133; + function Companion_getInstance_133() { + return Companion_instance_133; + } + var $serializer_instance_120; + function $serializer_getInstance_120() { + if ($serializer_instance_120 === VOID) + new $serializer_120(); + return $serializer_instance_120; + } + var Companion_instance_134; + function Companion_getInstance_134() { + return Companion_instance_134; + } + var $serializer_instance_121; + function $serializer_getInstance_121() { + if ($serializer_instance_121 === VOID) + new $serializer_121(); + return $serializer_instance_121; + } + var Companion_instance_135; + function Companion_getInstance_135() { + return Companion_instance_135; + } + var $serializer_instance_122; + function $serializer_getInstance_122() { + if ($serializer_instance_122 === VOID) + new $serializer_122(); + return $serializer_instance_122; + } + function _get_$cachedSerializer__te6jhj_28($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KDolbyItem$KType$Companion$values$delegate$lambda() { + return listOf_0([KType_NONE_getInstance(), KType_COMMON_getInstance(), KType_ATMOS_getInstance()]); + } + function KDolbyItem$KType$Companion$_anonymous__newf3i() { + return $serializer_getInstance_123(); + } + var KType_NONE_instance; + var KType_COMMON_instance; + var KType_ATMOS_instance; + var KType_UNRECOGNIZED_instance_0; + var Companion_instance_136; + function Companion_getInstance_136() { + KType_initEntries_0(); + if (Companion_instance_136 === VOID) + new Companion_136(); + return Companion_instance_136; + } + var $serializer_instance_123; + function $serializer_getInstance_123() { + KType_initEntries_0(); + if ($serializer_instance_123 === VOID) + new $serializer_123(); + return $serializer_instance_123; + } + function values_28() { + return [KType_NONE_getInstance(), KType_COMMON_getInstance(), KType_ATMOS_getInstance(), KType_UNRECOGNIZED_getInstance_0()]; + } + function valueOf_28(value) { + switch (value) { + case 'NONE': + return KType_NONE_getInstance(); + case 'COMMON': + return KType_COMMON_getInstance(); + case 'ATMOS': + return KType_ATMOS_getInstance(); + case 'UNRECOGNIZED': + return KType_UNRECOGNIZED_getInstance_0(); + default: + KType_initEntries_0(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KType_entriesInitialized_0; + function KType_initEntries_0() { + if (KType_entriesInitialized_0) + return Unit_instance; + KType_entriesInitialized_0 = true; + KType_NONE_instance = new KType_1('NONE', 0, 0); + KType_COMMON_instance = new KType_1('COMMON', 1, 1); + KType_ATMOS_instance = new KType_1('ATMOS', 2, 2); + KType_UNRECOGNIZED_instance_0 = new KType_1('UNRECOGNIZED', 3, -1); + Companion_getInstance_136(); + } + var Companion_instance_137; + function Companion_getInstance_137() { + if (Companion_instance_137 === VOID) + new Companion_137(); + return Companion_instance_137; + } + var $serializer_instance_124; + function $serializer_getInstance_124() { + if ($serializer_instance_124 === VOID) + new $serializer_124(); + return $serializer_instance_124; + } + function KType_NONE_getInstance() { + KType_initEntries_0(); + return KType_NONE_instance; + } + function KType_COMMON_getInstance() { + KType_initEntries_0(); + return KType_COMMON_instance; + } + function KType_ATMOS_getInstance() { + KType_initEntries_0(); + return KType_ATMOS_instance; + } + function KType_UNRECOGNIZED_getInstance_0() { + KType_initEntries_0(); + return KType_UNRECOGNIZED_instance_0; + } + function KStream$Companion$contentValues$delegate$lambda() { + return listOf_0([KDashVideo_getInstance(), KSegmentVideo_getInstance()]); + } + function _get_contentNumber__iirtht($this) { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = $this.contentNumber$delegate_1; + var thisRef = $this; + var property = contentNumber$factory(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + var KDashVideo_instance; + function KDashVideo_getInstance() { + if (KDashVideo_instance === VOID) + new KDashVideo(); + return KDashVideo_instance; + } + var KSegmentVideo_instance; + function KSegmentVideo_getInstance() { + if (KSegmentVideo_instance === VOID) + new KSegmentVideo(); + return KSegmentVideo_instance; + } + var Companion_instance_138; + function Companion_getInstance_138() { + if (Companion_instance_138 === VOID) + new Companion_138(); + return Companion_instance_138; + } + var $serializer_instance_125; + function $serializer_getInstance_125() { + if ($serializer_instance_125 === VOID) + new $serializer_125(); + return $serializer_instance_125; + } + function KStream$contentNumber$delegate$lambda(this$0) { + return function () { + var tmp; + if (!(this$0.dashVideo_1 == null)) { + tmp = 0; + } else if (!(this$0.segmentVideo_1 == null)) { + tmp = 1; + } else { + tmp = -1; + } + return tmp; + }; + } + function KStream$_init_$lambda_te50cg(this$0) { + return function () { + var tmp; + if (!(this$0.dashVideo_1 == null)) { + tmp = 0; + } else if (!(this$0.segmentVideo_1 == null)) { + tmp = 1; + } else { + tmp = -1; + } + return tmp; + }; + } + var Companion_instance_139; + function Companion_getInstance_139() { + if (Companion_instance_139 === VOID) + new Companion_139(); + return Companion_instance_139; + } + var $serializer_instance_126; + function $serializer_getInstance_126() { + if ($serializer_instance_126 === VOID) + new $serializer_126(); + return $serializer_instance_126; + } + var Companion_instance_140; + function Companion_getInstance_140() { + return Companion_instance_140; + } + var $serializer_instance_127; + function $serializer_getInstance_127() { + if ($serializer_instance_127 === VOID) + new $serializer_127(); + return $serializer_instance_127; + } + function _get_$cachedSerializer__te6jhj_29($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KScheme$KActionType$Companion$values$delegate$lambda() { + return listOf_0([KActionType_UNKNOWN_getInstance(), KActionType_SHOW_TOAST_getInstance()]); + } + function KScheme$KActionType$Companion$_anonymous__sueum0() { + return $serializer_getInstance_128(); + } + var KActionType_UNKNOWN_instance; + var KActionType_SHOW_TOAST_instance; + var KActionType_UNRECOGNIZED_instance; + var Companion_instance_141; + function Companion_getInstance_141() { + KActionType_initEntries(); + if (Companion_instance_141 === VOID) + new Companion_141(); + return Companion_instance_141; + } + var $serializer_instance_128; + function $serializer_getInstance_128() { + KActionType_initEntries(); + if ($serializer_instance_128 === VOID) + new $serializer_128(); + return $serializer_instance_128; + } + function values_29() { + return [KActionType_UNKNOWN_getInstance(), KActionType_SHOW_TOAST_getInstance(), KActionType_UNRECOGNIZED_getInstance()]; + } + function valueOf_29(value) { + switch (value) { + case 'UNKNOWN': + return KActionType_UNKNOWN_getInstance(); + case 'SHOW_TOAST': + return KActionType_SHOW_TOAST_getInstance(); + case 'UNRECOGNIZED': + return KActionType_UNRECOGNIZED_getInstance(); + default: + KActionType_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KActionType_entriesInitialized; + function KActionType_initEntries() { + if (KActionType_entriesInitialized) + return Unit_instance; + KActionType_entriesInitialized = true; + KActionType_UNKNOWN_instance = new KActionType('UNKNOWN', 0, 0); + KActionType_SHOW_TOAST_instance = new KActionType('SHOW_TOAST', 1, 1); + KActionType_UNRECOGNIZED_instance = new KActionType('UNRECOGNIZED', 2, -1); + Companion_getInstance_141(); + } + var Companion_instance_142; + function Companion_getInstance_142() { + return Companion_instance_142; + } + var $serializer_instance_129; + function $serializer_getInstance_129() { + if ($serializer_instance_129 === VOID) + new $serializer_129(); + return $serializer_instance_129; + } + function KActionType_UNKNOWN_getInstance() { + KActionType_initEntries(); + return KActionType_UNKNOWN_instance; + } + function KActionType_SHOW_TOAST_getInstance() { + KActionType_initEntries(); + return KActionType_SHOW_TOAST_instance; + } + function KActionType_UNRECOGNIZED_getInstance() { + KActionType_initEntries(); + return KActionType_UNRECOGNIZED_instance; + } + var Companion_instance_143; + function Companion_getInstance_143() { + return Companion_instance_143; + } + var $serializer_instance_130; + function $serializer_getInstance_130() { + if ($serializer_instance_130 === VOID) + new $serializer_130(); + return $serializer_instance_130; + } + var Companion_instance_144; + function Companion_getInstance_144() { + if (Companion_instance_144 === VOID) + new Companion_144(); + return Companion_instance_144; + } + var $serializer_instance_131; + function $serializer_getInstance_131() { + if ($serializer_instance_131 === VOID) + new $serializer_131(); + return $serializer_instance_131; + } + var Companion_instance_145; + function Companion_getInstance_145() { + if (Companion_instance_145 === VOID) + new Companion_145(); + return Companion_instance_145; + } + var $serializer_instance_132; + function $serializer_getInstance_132() { + if ($serializer_instance_132 === VOID) + new $serializer_132(); + return $serializer_instance_132; + } + var Companion_instance_146; + function Companion_getInstance_146() { + if (Companion_instance_146 === VOID) + new Companion_146(); + return Companion_instance_146; + } + var $serializer_instance_133; + function $serializer_getInstance_133() { + if ($serializer_instance_133 === VOID) + new $serializer_133(); + return $serializer_instance_133; + } + var Companion_instance_147; + function Companion_getInstance_147() { + if (Companion_instance_147 === VOID) + new Companion_147(); + return Companion_instance_147; + } + var $serializer_instance_134; + function $serializer_getInstance_134() { + if ($serializer_instance_134 === VOID) + new $serializer_134(); + return $serializer_instance_134; + } + var Companion_instance_148; + function Companion_getInstance_148() { + return Companion_instance_148; + } + var $serializer_instance_135; + function $serializer_getInstance_135() { + if ($serializer_instance_135 === VOID) + new $serializer_135(); + return $serializer_instance_135; + } + var Companion_instance_149; + function Companion_getInstance_149() { + return Companion_instance_149; + } + var $serializer_instance_136; + function $serializer_getInstance_136() { + if ($serializer_instance_136 === VOID) + new $serializer_136(); + return $serializer_instance_136; + } + var Companion_instance_150; + function Companion_getInstance_150() { + return Companion_instance_150; + } + var $serializer_instance_137; + function $serializer_getInstance_137() { + if ($serializer_instance_137 === VOID) + new $serializer_137(); + return $serializer_instance_137; + } + var Companion_instance_151; + function Companion_getInstance_151() { + return Companion_instance_151; + } + var $serializer_instance_138; + function $serializer_getInstance_138() { + if ($serializer_instance_138 === VOID) + new $serializer_138(); + return $serializer_instance_138; + } + var Companion_instance_152; + function Companion_getInstance_152() { + return Companion_instance_152; + } + var $serializer_instance_139; + function $serializer_getInstance_139() { + if ($serializer_instance_139 === VOID) + new $serializer_139(); + return $serializer_instance_139; + } + var Companion_instance_153; + function Companion_getInstance_153() { + return Companion_instance_153; + } + var $serializer_instance_140; + function $serializer_getInstance_140() { + if ($serializer_instance_140 === VOID) + new $serializer_140(); + return $serializer_instance_140; + } + var Companion_instance_154; + function Companion_getInstance_154() { + return Companion_instance_154; + } + var $serializer_instance_141; + function $serializer_getInstance_141() { + if ($serializer_instance_141 === VOID) + new $serializer_141(); + return $serializer_instance_141; + } + var Companion_instance_155; + function Companion_getInstance_155() { + return Companion_instance_155; + } + var $serializer_instance_142; + function $serializer_getInstance_142() { + if ($serializer_instance_142 === VOID) + new $serializer_142(); + return $serializer_instance_142; + } + var Companion_instance_156; + function Companion_getInstance_156() { + return Companion_instance_156; + } + var $serializer_instance_143; + function $serializer_getInstance_143() { + if ($serializer_instance_143 === VOID) + new $serializer_143(); + return $serializer_instance_143; + } + var Companion_instance_157; + function Companion_getInstance_157() { + if (Companion_instance_157 === VOID) + new Companion_157(); + return Companion_instance_157; + } + var $serializer_instance_144; + function $serializer_getInstance_144() { + if ($serializer_instance_144 === VOID) + new $serializer_144(); + return $serializer_instance_144; + } + var Companion_instance_158; + function Companion_getInstance_158() { + return Companion_instance_158; + } + var $serializer_instance_145; + function $serializer_getInstance_145() { + if ($serializer_instance_145 === VOID) + new $serializer_145(); + return $serializer_instance_145; + } + var Companion_instance_159; + function Companion_getInstance_159() { + return Companion_instance_159; + } + var $serializer_instance_146; + function $serializer_getInstance_146() { + if ($serializer_instance_146 === VOID) + new $serializer_146(); + return $serializer_instance_146; + } + var Companion_instance_160; + function Companion_getInstance_160() { + if (Companion_instance_160 === VOID) + new Companion_160(); + return Companion_instance_160; + } + var $serializer_instance_147; + function $serializer_getInstance_147() { + if ($serializer_instance_147 === VOID) + new $serializer_147(); + return $serializer_instance_147; + } + var Companion_instance_161; + function Companion_getInstance_161() { + return Companion_instance_161; + } + var $serializer_instance_148; + function $serializer_getInstance_148() { + if ($serializer_instance_148 === VOID) + new $serializer_148(); + return $serializer_instance_148; + } + function KCodeType_NOCODE_getInstance() { + KCodeType_initEntries(); + return KCodeType_NOCODE_instance; + } + function KCodeType_CODE264_getInstance() { + KCodeType_initEntries(); + return KCodeType_CODE264_instance; + } + function KCodeType_CODE265_getInstance() { + KCodeType_initEntries(); + return KCodeType_CODE265_instance; + } + function KCodeType_CODEAV1_getInstance() { + KCodeType_initEntries(); + return KCodeType_CODEAV1_instance; + } + function KCodeType_UNRECOGNIZED_getInstance() { + KCodeType_initEntries(); + return KCodeType_UNRECOGNIZED_instance; + } + function KPlayErr_NO_ERR_getInstance() { + KPlayErr_initEntries(); + return KPlayErr_NO_ERR_instance; + } + function KPlayErr_WITH_MULTI_DEVICE_LOGIN_ERR_getInstance() { + KPlayErr_initEntries(); + return KPlayErr_WITH_MULTI_DEVICE_LOGIN_ERR_instance; + } + function KPlayErr_UNRECOGNIZED_getInstance() { + KPlayErr_initEntries(); + return KPlayErr_UNRECOGNIZED_instance; + } + function KFragmentType_UNKNOWN_getInstance() { + KFragmentType_initEntries(); + return KFragmentType_UNKNOWN_instance; + } + function KFragmentType_AD_FRAGMENT_getInstance() { + KFragmentType_initEntries(); + return KFragmentType_AD_FRAGMENT_instance; + } + function KFragmentType_OGV_FRAGMENT_getInstance() { + KFragmentType_initEntries(); + return KFragmentType_OGV_FRAGMENT_instance; + } + function KFragmentType_UNRECOGNIZED_getInstance() { + KFragmentType_initEntries(); + return KFragmentType_UNRECOGNIZED_instance; + } + function KFragmentPosition_INVALID_getInstance() { + KFragmentPosition_initEntries(); + return KFragmentPosition_INVALID_instance; + } + function KFragmentPosition_PRE_getInstance() { + KFragmentPosition_initEntries(); + return KFragmentPosition_PRE_instance; + } + function KFragmentPosition_MIDDLE_getInstance() { + KFragmentPosition_initEntries(); + return KFragmentPosition_MIDDLE_instance; + } + function KFragmentPosition_POST_getInstance() { + KFragmentPosition_initEntries(); + return KFragmentPosition_POST_instance; + } + function KFragmentPosition_UNRECOGNIZED_getInstance() { + KFragmentPosition_initEntries(); + return KFragmentPosition_UNRECOGNIZED_instance; + } + function KArcType_NORMAL_getInstance() { + KArcType_initEntries(); + return KArcType_NORMAL_instance; + } + function KArcType_INTERACT_getInstance() { + KArcType_initEntries(); + return KArcType_INTERACT_instance; + } + function KArcType_UNRECOGNIZED_getInstance() { + KArcType_initEntries(); + return KArcType_UNRECOGNIZED_instance; + } + function KDrmTechType_UNKNOWN_DRM_getInstance() { + KDrmTechType_initEntries(); + return KDrmTechType_UNKNOWN_DRM_instance; + } + function KDrmTechType_FAIR_PLAY_getInstance() { + KDrmTechType_initEntries(); + return KDrmTechType_FAIR_PLAY_instance; + } + function KDrmTechType_WIDE_VINE_getInstance() { + KDrmTechType_initEntries(); + return KDrmTechType_WIDE_VINE_instance; + } + function KDrmTechType_BILI_DRM_getInstance() { + KDrmTechType_initEntries(); + return KDrmTechType_BILI_DRM_instance; + } + function KDrmTechType_UNRECOGNIZED_getInstance() { + KDrmTechType_initEntries(); + return KDrmTechType_UNRECOGNIZED_instance; + } + function KBizType_UNKNOWN_getInstance() { + KBizType_initEntries(); + return KBizType_UNKNOWN_instance; + } + function KBizType_UGC_getInstance() { + KBizType_initEntries(); + return KBizType_UGC_instance; + } + function KBizType_PGC_getInstance() { + KBizType_initEntries(); + return KBizType_PGC_instance; + } + function KBizType_PUGV_getInstance() { + KBizType_initEntries(); + return KBizType_PUGV_instance; + } + function KBizType_UNRECOGNIZED_getInstance() { + KBizType_initEntries(); + return KBizType_UNRECOGNIZED_instance; + } + function values$factory_21() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_22() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_23() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_24() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_25() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_26() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_27() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_28() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function contentNumber$factory() { + return getPropertyCallableRef('contentNumber', 1, KProperty1, function (receiver) { + return _get_contentNumber__iirtht(receiver); + }, null); + } + function contentValues$factory() { + return getPropertyCallableRef('contentValues', 1, KProperty1, function (receiver) { + return receiver.contentValues; + }, null); + } + function values$factory_29() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + var Companion_instance_162; + function Companion_getInstance_162() { + return Companion_instance_162; + } + var $serializer_instance_149; + function $serializer_getInstance_149() { + if ($serializer_instance_149 === VOID) + new $serializer_149(); + return $serializer_instance_149; + } + var Companion_instance_163; + function Companion_getInstance_163() { + if (Companion_instance_163 === VOID) + new Companion_163(); + return Companion_instance_163; + } + var $serializer_instance_150; + function $serializer_getInstance_150() { + if ($serializer_instance_150 === VOID) + new $serializer_150(); + return $serializer_instance_150; + } + var Companion_instance_164; + function Companion_getInstance_164() { + return Companion_instance_164; + } + var $serializer_instance_151; + function $serializer_getInstance_151() { + if ($serializer_instance_151 === VOID) + new $serializer_151(); + return $serializer_instance_151; + } + var Companion_instance_165; + function Companion_getInstance_165() { + return Companion_instance_165; + } + var $serializer_instance_152; + function $serializer_getInstance_152() { + if ($serializer_instance_152 === VOID) + new $serializer_152(); + return $serializer_instance_152; + } + var Companion_instance_166; + function Companion_getInstance_166() { + return Companion_instance_166; + } + var $serializer_instance_153; + function $serializer_getInstance_153() { + if ($serializer_instance_153 === VOID) + new $serializer_153(); + return $serializer_instance_153; + } + function _get_$cachedSerializer__te6jhj_30($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KPositionSpec$KCoordinatePos$Companion$values$delegate$lambda() { + return listOf_0([KCoordinatePos_INVALID_COORDINATE_getInstance(), KCoordinatePos_DEFAULT_COORDINATE_getInstance(), KCoordinatePos_CENTRAL_COORDINATE_getInstance()]); + } + function KPositionSpec$KCoordinatePos$Companion$_anonymous__9ejsuv() { + return $serializer_getInstance_154(); + } + var KCoordinatePos_INVALID_COORDINATE_instance; + var KCoordinatePos_DEFAULT_COORDINATE_instance; + var KCoordinatePos_CENTRAL_COORDINATE_instance; + var KCoordinatePos_UNRECOGNIZED_instance; + var Companion_instance_167; + function Companion_getInstance_167() { + KCoordinatePos_initEntries(); + if (Companion_instance_167 === VOID) + new Companion_167(); + return Companion_instance_167; + } + var $serializer_instance_154; + function $serializer_getInstance_154() { + KCoordinatePos_initEntries(); + if ($serializer_instance_154 === VOID) + new $serializer_154(); + return $serializer_instance_154; + } + function values_30() { + return [KCoordinatePos_INVALID_COORDINATE_getInstance(), KCoordinatePos_DEFAULT_COORDINATE_getInstance(), KCoordinatePos_CENTRAL_COORDINATE_getInstance(), KCoordinatePos_UNRECOGNIZED_getInstance()]; + } + function valueOf_30(value) { + switch (value) { + case 'INVALID_COORDINATE': + return KCoordinatePos_INVALID_COORDINATE_getInstance(); + case 'DEFAULT_COORDINATE': + return KCoordinatePos_DEFAULT_COORDINATE_getInstance(); + case 'CENTRAL_COORDINATE': + return KCoordinatePos_CENTRAL_COORDINATE_getInstance(); + case 'UNRECOGNIZED': + return KCoordinatePos_UNRECOGNIZED_getInstance(); + default: + KCoordinatePos_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KCoordinatePos_entriesInitialized; + function KCoordinatePos_initEntries() { + if (KCoordinatePos_entriesInitialized) + return Unit_instance; + KCoordinatePos_entriesInitialized = true; + KCoordinatePos_INVALID_COORDINATE_instance = new KCoordinatePos('INVALID_COORDINATE', 0, 0); + KCoordinatePos_DEFAULT_COORDINATE_instance = new KCoordinatePos('DEFAULT_COORDINATE', 1, 1); + KCoordinatePos_CENTRAL_COORDINATE_instance = new KCoordinatePos('CENTRAL_COORDINATE', 2, 2); + KCoordinatePos_UNRECOGNIZED_instance = new KCoordinatePos('UNRECOGNIZED', 3, -1); + Companion_getInstance_167(); + } + var Companion_instance_168; + function Companion_getInstance_168() { + return Companion_instance_168; + } + var $serializer_instance_155; + function $serializer_getInstance_155() { + if ($serializer_instance_155 === VOID) + new $serializer_155(); + return $serializer_instance_155; + } + function KCoordinatePos_INVALID_COORDINATE_getInstance() { + KCoordinatePos_initEntries(); + return KCoordinatePos_INVALID_COORDINATE_instance; + } + function KCoordinatePos_DEFAULT_COORDINATE_getInstance() { + KCoordinatePos_initEntries(); + return KCoordinatePos_DEFAULT_COORDINATE_instance; + } + function KCoordinatePos_CENTRAL_COORDINATE_getInstance() { + KCoordinatePos_initEntries(); + return KCoordinatePos_CENTRAL_COORDINATE_instance; + } + function KCoordinatePos_UNRECOGNIZED_getInstance() { + KCoordinatePos_initEntries(); + return KCoordinatePos_UNRECOGNIZED_instance; + } + var Companion_instance_169; + function Companion_getInstance_169() { + return Companion_instance_169; + } + var $serializer_instance_156; + function $serializer_getInstance_156() { + if ($serializer_instance_156 === VOID) + new $serializer_156(); + return $serializer_instance_156; + } + var Companion_instance_170; + function Companion_getInstance_170() { + return Companion_instance_170; + } + var $serializer_instance_157; + function $serializer_getInstance_157() { + if ($serializer_instance_157 === VOID) + new $serializer_157(); + return $serializer_instance_157; + } + function KResourceSource$Companion$resValues$delegate$lambda() { + return listOf_0([KRemote_getInstance(), KLocal_getInstance(), KDraw_getInstance()]); + } + function _get_$cachedSerializer__te6jhj_31($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KResourceSource$KSourceType$Companion$values$delegate$lambda() { + return listOf_0([KSourceType_SRC_TYPE_INVALID_getInstance(), KSourceType_SRC_TYPE_URL_getInstance(), KSourceType_SRC_TYPE_LOCAL_getInstance(), KSourceType_SRC_TYPE_DRAW_getInstance()]); + } + function KResourceSource$KSourceType$Companion$_anonymous__o31r29() { + return $serializer_getInstance_158(); + } + var KSourceType_SRC_TYPE_INVALID_instance; + var KSourceType_SRC_TYPE_URL_instance; + var KSourceType_SRC_TYPE_LOCAL_instance; + var KSourceType_SRC_TYPE_DRAW_instance; + var KSourceType_UNRECOGNIZED_instance; + var Companion_instance_171; + function Companion_getInstance_171() { + KSourceType_initEntries(); + if (Companion_instance_171 === VOID) + new Companion_171(); + return Companion_instance_171; + } + var $serializer_instance_158; + function $serializer_getInstance_158() { + KSourceType_initEntries(); + if ($serializer_instance_158 === VOID) + new $serializer_158(); + return $serializer_instance_158; + } + function values_31() { + return [KSourceType_SRC_TYPE_INVALID_getInstance(), KSourceType_SRC_TYPE_URL_getInstance(), KSourceType_SRC_TYPE_LOCAL_getInstance(), KSourceType_SRC_TYPE_DRAW_getInstance(), KSourceType_UNRECOGNIZED_getInstance()]; + } + function valueOf_31(value) { + switch (value) { + case 'SRC_TYPE_INVALID': + return KSourceType_SRC_TYPE_INVALID_getInstance(); + case 'SRC_TYPE_URL': + return KSourceType_SRC_TYPE_URL_getInstance(); + case 'SRC_TYPE_LOCAL': + return KSourceType_SRC_TYPE_LOCAL_getInstance(); + case 'SRC_TYPE_DRAW': + return KSourceType_SRC_TYPE_DRAW_getInstance(); + case 'UNRECOGNIZED': + return KSourceType_UNRECOGNIZED_getInstance(); + default: + KSourceType_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KSourceType_entriesInitialized; + function KSourceType_initEntries() { + if (KSourceType_entriesInitialized) + return Unit_instance; + KSourceType_entriesInitialized = true; + KSourceType_SRC_TYPE_INVALID_instance = new KSourceType('SRC_TYPE_INVALID', 0, 0); + KSourceType_SRC_TYPE_URL_instance = new KSourceType('SRC_TYPE_URL', 1, 1); + KSourceType_SRC_TYPE_LOCAL_instance = new KSourceType('SRC_TYPE_LOCAL', 2, 2); + KSourceType_SRC_TYPE_DRAW_instance = new KSourceType('SRC_TYPE_DRAW', 3, 3); + KSourceType_UNRECOGNIZED_instance = new KSourceType('UNRECOGNIZED', 4, -1); + Companion_getInstance_171(); + } + function _get_$cachedSerializer__te6jhj_32($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KResourceSource$KLocalRes$Companion$values$delegate$lambda() { + return listOf_0([KLocalRes_INVALID_getInstance(), KLocalRes_ICON_VIP_getInstance(), KLocalRes_ICON_SMALL_VIP_getInstance(), KLocalRes_ICON_PERSONAL_VERIFY_getInstance(), KLocalRes_ICON_ENTERPRISE_VERIFY_getInstance(), KLocalRes_ICON_NFT_MAINLAND_getInstance(), KLocalRes_DEFAULT_AVATAR_getInstance()]); + } + function KResourceSource$KLocalRes$Companion$_anonymous__1s0q4h() { + return $serializer_getInstance_159(); + } + var KLocalRes_INVALID_instance; + var KLocalRes_ICON_VIP_instance; + var KLocalRes_ICON_SMALL_VIP_instance; + var KLocalRes_ICON_PERSONAL_VERIFY_instance; + var KLocalRes_ICON_ENTERPRISE_VERIFY_instance; + var KLocalRes_ICON_NFT_MAINLAND_instance; + var KLocalRes_DEFAULT_AVATAR_instance; + var KLocalRes_UNRECOGNIZED_instance; + var Companion_instance_172; + function Companion_getInstance_172() { + KLocalRes_initEntries(); + if (Companion_instance_172 === VOID) + new Companion_172(); + return Companion_instance_172; + } + var $serializer_instance_159; + function $serializer_getInstance_159() { + KLocalRes_initEntries(); + if ($serializer_instance_159 === VOID) + new $serializer_159(); + return $serializer_instance_159; + } + function values_32() { + return [KLocalRes_INVALID_getInstance(), KLocalRes_ICON_VIP_getInstance(), KLocalRes_ICON_SMALL_VIP_getInstance(), KLocalRes_ICON_PERSONAL_VERIFY_getInstance(), KLocalRes_ICON_ENTERPRISE_VERIFY_getInstance(), KLocalRes_ICON_NFT_MAINLAND_getInstance(), KLocalRes_DEFAULT_AVATAR_getInstance(), KLocalRes_UNRECOGNIZED_getInstance()]; + } + function valueOf_32(value) { + switch (value) { + case 'INVALID': + return KLocalRes_INVALID_getInstance(); + case 'ICON_VIP': + return KLocalRes_ICON_VIP_getInstance(); + case 'ICON_SMALL_VIP': + return KLocalRes_ICON_SMALL_VIP_getInstance(); + case 'ICON_PERSONAL_VERIFY': + return KLocalRes_ICON_PERSONAL_VERIFY_getInstance(); + case 'ICON_ENTERPRISE_VERIFY': + return KLocalRes_ICON_ENTERPRISE_VERIFY_getInstance(); + case 'ICON_NFT_MAINLAND': + return KLocalRes_ICON_NFT_MAINLAND_getInstance(); + case 'DEFAULT_AVATAR': + return KLocalRes_DEFAULT_AVATAR_getInstance(); + case 'UNRECOGNIZED': + return KLocalRes_UNRECOGNIZED_getInstance(); + default: + KLocalRes_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KLocalRes_entriesInitialized; + function KLocalRes_initEntries() { + if (KLocalRes_entriesInitialized) + return Unit_instance; + KLocalRes_entriesInitialized = true; + KLocalRes_INVALID_instance = new KLocalRes('INVALID', 0, 0); + KLocalRes_ICON_VIP_instance = new KLocalRes('ICON_VIP', 1, 1); + KLocalRes_ICON_SMALL_VIP_instance = new KLocalRes('ICON_SMALL_VIP', 2, 2); + KLocalRes_ICON_PERSONAL_VERIFY_instance = new KLocalRes('ICON_PERSONAL_VERIFY', 3, 3); + KLocalRes_ICON_ENTERPRISE_VERIFY_instance = new KLocalRes('ICON_ENTERPRISE_VERIFY', 4, 4); + KLocalRes_ICON_NFT_MAINLAND_instance = new KLocalRes('ICON_NFT_MAINLAND', 5, 5); + KLocalRes_DEFAULT_AVATAR_instance = new KLocalRes('DEFAULT_AVATAR', 6, 6); + KLocalRes_UNRECOGNIZED_instance = new KLocalRes('UNRECOGNIZED', 7, -1); + Companion_getInstance_172(); + } + function _get_resNumber__v3uo48($this) { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = $this.resNumber$delegate_1; + var thisRef = $this; + var property = resNumber$factory(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + var KRemote_instance; + function KRemote_getInstance() { + if (KRemote_instance === VOID) + new KRemote(); + return KRemote_instance; + } + var KLocal_instance; + function KLocal_getInstance() { + if (KLocal_instance === VOID) + new KLocal(); + return KLocal_instance; + } + var KDraw_instance; + function KDraw_getInstance() { + if (KDraw_instance === VOID) + new KDraw(); + return KDraw_instance; + } + var Companion_instance_173; + function Companion_getInstance_173() { + if (Companion_instance_173 === VOID) + new Companion_173(); + return Companion_instance_173; + } + var $serializer_instance_160; + function $serializer_getInstance_160() { + if ($serializer_instance_160 === VOID) + new $serializer_160(); + return $serializer_instance_160; + } + function KResourceSource$resNumber$delegate$lambda(this$0) { + return function () { + var tmp; + if (!(this$0.remote_1 == null)) { + tmp = 0; + } else if (!(this$0.local_1 == null)) { + tmp = 1; + } else if (!(this$0.draw_1 == null)) { + tmp = 2; + } else { + tmp = -1; + } + return tmp; + }; + } + function KResourceSource$_init_$lambda_v5xdop(this$0) { + return function () { + var tmp; + if (!(this$0.remote_1 == null)) { + tmp = 0; + } else if (!(this$0.local_1 == null)) { + tmp = 1; + } else if (!(this$0.draw_1 == null)) { + tmp = 2; + } else { + tmp = -1; + } + return tmp; + }; + } + function KSourceType_SRC_TYPE_INVALID_getInstance() { + KSourceType_initEntries(); + return KSourceType_SRC_TYPE_INVALID_instance; + } + function KSourceType_SRC_TYPE_URL_getInstance() { + KSourceType_initEntries(); + return KSourceType_SRC_TYPE_URL_instance; + } + function KSourceType_SRC_TYPE_LOCAL_getInstance() { + KSourceType_initEntries(); + return KSourceType_SRC_TYPE_LOCAL_instance; + } + function KSourceType_SRC_TYPE_DRAW_getInstance() { + KSourceType_initEntries(); + return KSourceType_SRC_TYPE_DRAW_instance; + } + function KSourceType_UNRECOGNIZED_getInstance() { + KSourceType_initEntries(); + return KSourceType_UNRECOGNIZED_instance; + } + function KLocalRes_INVALID_getInstance() { + KLocalRes_initEntries(); + return KLocalRes_INVALID_instance; + } + function KLocalRes_ICON_VIP_getInstance() { + KLocalRes_initEntries(); + return KLocalRes_ICON_VIP_instance; + } + function KLocalRes_ICON_SMALL_VIP_getInstance() { + KLocalRes_initEntries(); + return KLocalRes_ICON_SMALL_VIP_instance; + } + function KLocalRes_ICON_PERSONAL_VERIFY_getInstance() { + KLocalRes_initEntries(); + return KLocalRes_ICON_PERSONAL_VERIFY_instance; + } + function KLocalRes_ICON_ENTERPRISE_VERIFY_getInstance() { + KLocalRes_initEntries(); + return KLocalRes_ICON_ENTERPRISE_VERIFY_instance; + } + function KLocalRes_ICON_NFT_MAINLAND_getInstance() { + KLocalRes_initEntries(); + return KLocalRes_ICON_NFT_MAINLAND_instance; + } + function KLocalRes_DEFAULT_AVATAR_getInstance() { + KLocalRes_initEntries(); + return KLocalRes_DEFAULT_AVATAR_instance; + } + function KLocalRes_UNRECOGNIZED_getInstance() { + KLocalRes_initEntries(); + return KLocalRes_UNRECOGNIZED_instance; + } + var Companion_instance_174; + function Companion_getInstance_174() { + return Companion_instance_174; + } + var $serializer_instance_161; + function $serializer_getInstance_161() { + if ($serializer_instance_161 === VOID) + new $serializer_161(); + return $serializer_instance_161; + } + var Companion_instance_175; + function Companion_getInstance_175() { + return Companion_instance_175; + } + var $serializer_instance_162; + function $serializer_getInstance_162() { + if ($serializer_instance_162 === VOID) + new $serializer_162(); + return $serializer_instance_162; + } + function _get_$cachedSerializer__te6jhj_33($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KNativeDrawRes$KNativeDraw$Companion$values$delegate$lambda() { + return listOf_0([KNativeDraw_DRAW_INVALID_getInstance(), KNativeDraw_DRAW_CIRCLE_getInstance(), KNativeDraw_DRAW_RECTANGLE_getInstance()]); + } + function KNativeDrawRes$KNativeDraw$Companion$_anonymous__u137u5() { + return $serializer_getInstance_163(); + } + var KNativeDraw_DRAW_INVALID_instance; + var KNativeDraw_DRAW_CIRCLE_instance; + var KNativeDraw_DRAW_RECTANGLE_instance; + var KNativeDraw_UNRECOGNIZED_instance; + var Companion_instance_176; + function Companion_getInstance_176() { + KNativeDraw_initEntries(); + if (Companion_instance_176 === VOID) + new Companion_176(); + return Companion_instance_176; + } + var $serializer_instance_163; + function $serializer_getInstance_163() { + KNativeDraw_initEntries(); + if ($serializer_instance_163 === VOID) + new $serializer_163(); + return $serializer_instance_163; + } + function values_33() { + return [KNativeDraw_DRAW_INVALID_getInstance(), KNativeDraw_DRAW_CIRCLE_getInstance(), KNativeDraw_DRAW_RECTANGLE_getInstance(), KNativeDraw_UNRECOGNIZED_getInstance()]; + } + function valueOf_33(value) { + switch (value) { + case 'DRAW_INVALID': + return KNativeDraw_DRAW_INVALID_getInstance(); + case 'DRAW_CIRCLE': + return KNativeDraw_DRAW_CIRCLE_getInstance(); + case 'DRAW_RECTANGLE': + return KNativeDraw_DRAW_RECTANGLE_getInstance(); + case 'UNRECOGNIZED': + return KNativeDraw_UNRECOGNIZED_getInstance(); + default: + KNativeDraw_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KNativeDraw_entriesInitialized; + function KNativeDraw_initEntries() { + if (KNativeDraw_entriesInitialized) + return Unit_instance; + KNativeDraw_entriesInitialized = true; + KNativeDraw_DRAW_INVALID_instance = new KNativeDraw('DRAW_INVALID', 0, 0); + KNativeDraw_DRAW_CIRCLE_instance = new KNativeDraw('DRAW_CIRCLE', 1, 1); + KNativeDraw_DRAW_RECTANGLE_instance = new KNativeDraw('DRAW_RECTANGLE', 2, 2); + KNativeDraw_UNRECOGNIZED_instance = new KNativeDraw('UNRECOGNIZED', 3, -1); + Companion_getInstance_176(); + } + function _get_$cachedSerializer__te6jhj_34($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KNativeDrawRes$KFillMode$Companion$values$delegate$lambda() { + return listOf_0([KFillMode_INVALID_getInstance(), KFillMode_INTERNAL_getInstance(), KFillMode_EDGE_getInstance()]); + } + function KNativeDrawRes$KFillMode$Companion$_anonymous__dawma0() { + return $serializer_getInstance_164(); + } + var KFillMode_INVALID_instance; + var KFillMode_INTERNAL_instance; + var KFillMode_EDGE_instance; + var KFillMode_UNRECOGNIZED_instance; + var Companion_instance_177; + function Companion_getInstance_177() { + KFillMode_initEntries(); + if (Companion_instance_177 === VOID) + new Companion_177(); + return Companion_instance_177; + } + var $serializer_instance_164; + function $serializer_getInstance_164() { + KFillMode_initEntries(); + if ($serializer_instance_164 === VOID) + new $serializer_164(); + return $serializer_instance_164; + } + function values_34() { + return [KFillMode_INVALID_getInstance(), KFillMode_INTERNAL_getInstance(), KFillMode_EDGE_getInstance(), KFillMode_UNRECOGNIZED_getInstance()]; + } + function valueOf_34(value) { + switch (value) { + case 'INVALID': + return KFillMode_INVALID_getInstance(); + case 'INTERNAL': + return KFillMode_INTERNAL_getInstance(); + case 'EDGE': + return KFillMode_EDGE_getInstance(); + case 'UNRECOGNIZED': + return KFillMode_UNRECOGNIZED_getInstance(); + default: + KFillMode_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KFillMode_entriesInitialized; + function KFillMode_initEntries() { + if (KFillMode_entriesInitialized) + return Unit_instance; + KFillMode_entriesInitialized = true; + KFillMode_INVALID_instance = new KFillMode('INVALID', 0, 0); + KFillMode_INTERNAL_instance = new KFillMode('INTERNAL', 1, 1); + KFillMode_EDGE_instance = new KFillMode('EDGE', 2, 2); + KFillMode_UNRECOGNIZED_instance = new KFillMode('UNRECOGNIZED', 3, -1); + Companion_getInstance_177(); + } + var Companion_instance_178; + function Companion_getInstance_178() { + return Companion_instance_178; + } + var $serializer_instance_165; + function $serializer_getInstance_165() { + if ($serializer_instance_165 === VOID) + new $serializer_165(); + return $serializer_instance_165; + } + function KNativeDraw_DRAW_INVALID_getInstance() { + KNativeDraw_initEntries(); + return KNativeDraw_DRAW_INVALID_instance; + } + function KNativeDraw_DRAW_CIRCLE_getInstance() { + KNativeDraw_initEntries(); + return KNativeDraw_DRAW_CIRCLE_instance; + } + function KNativeDraw_DRAW_RECTANGLE_getInstance() { + KNativeDraw_initEntries(); + return KNativeDraw_DRAW_RECTANGLE_instance; + } + function KNativeDraw_UNRECOGNIZED_getInstance() { + KNativeDraw_initEntries(); + return KNativeDraw_UNRECOGNIZED_instance; + } + function KFillMode_INVALID_getInstance() { + KFillMode_initEntries(); + return KFillMode_INVALID_instance; + } + function KFillMode_INTERNAL_getInstance() { + KFillMode_initEntries(); + return KFillMode_INTERNAL_instance; + } + function KFillMode_EDGE_getInstance() { + KFillMode_initEntries(); + return KFillMode_EDGE_instance; + } + function KFillMode_UNRECOGNIZED_getInstance() { + KFillMode_initEntries(); + return KFillMode_UNRECOGNIZED_instance; + } + var Companion_instance_179; + function Companion_getInstance_179() { + return Companion_instance_179; + } + var $serializer_instance_166; + function $serializer_getInstance_166() { + if ($serializer_instance_166 === VOID) + new $serializer_166(); + return $serializer_instance_166; + } + var Companion_instance_180; + function Companion_getInstance_180() { + return Companion_instance_180; + } + var $serializer_instance_167; + function $serializer_getInstance_167() { + if ($serializer_instance_167 === VOID) + new $serializer_167(); + return $serializer_instance_167; + } + function values$factory_30() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function resNumber$factory() { + return getPropertyCallableRef('resNumber', 1, KProperty1, function (receiver) { + return _get_resNumber__v3uo48(receiver); + }, null); + } + function resValues$factory() { + return getPropertyCallableRef('resValues', 1, KProperty1, function (receiver) { + return receiver.resValues; + }, null); + } + function values$factory_31() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_32() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_33() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_34() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + var Companion_instance_181; + function Companion_getInstance_181() { + return Companion_instance_181; + } + var $serializer_instance_168; + function $serializer_getInstance_168() { + if ($serializer_instance_168 === VOID) + new $serializer_168(); + return $serializer_instance_168; + } + var Companion_instance_182; + function Companion_getInstance_182() { + return Companion_instance_182; + } + var $serializer_instance_169; + function $serializer_getInstance_169() { + if ($serializer_instance_169 === VOID) + new $serializer_169(); + return $serializer_instance_169; + } + var Companion_instance_183; + function Companion_getInstance_183() { + return Companion_instance_183; + } + var $serializer_instance_170; + function $serializer_getInstance_170() { + if ($serializer_instance_170 === VOID) + new $serializer_170(); + return $serializer_instance_170; + } + var Companion_instance_184; + function Companion_getInstance_184() { + if (Companion_instance_184 === VOID) + new Companion_184(); + return Companion_instance_184; + } + var $serializer_instance_171; + function $serializer_getInstance_171() { + if ($serializer_instance_171 === VOID) + new $serializer_171(); + return $serializer_instance_171; + } + var Companion_instance_185; + function Companion_getInstance_185() { + if (Companion_instance_185 === VOID) + new Companion_185(); + return Companion_instance_185; + } + var $serializer_instance_172; + function $serializer_getInstance_172() { + if ($serializer_instance_172 === VOID) + new $serializer_172(); + return $serializer_instance_172; + } + var Companion_instance_186; + function Companion_getInstance_186() { + if (Companion_instance_186 === VOID) + new Companion_186(); + return Companion_instance_186; + } + var $serializer_instance_173; + function $serializer_getInstance_173() { + if ($serializer_instance_173 === VOID) + new $serializer_173(); + return $serializer_instance_173; + } + var Companion_instance_187; + function Companion_getInstance_187() { + if (Companion_instance_187 === VOID) + new Companion_187(); + return Companion_instance_187; + } + var $serializer_instance_174; + function $serializer_getInstance_174() { + if ($serializer_instance_174 === VOID) + new $serializer_174(); + return $serializer_instance_174; + } + var Companion_instance_188; + function Companion_getInstance_188() { + if (Companion_instance_188 === VOID) + new Companion_188(); + return Companion_instance_188; + } + var $serializer_instance_175; + function $serializer_getInstance_175() { + if ($serializer_instance_175 === VOID) + new $serializer_175(); + return $serializer_instance_175; + } + var Companion_instance_189; + function Companion_getInstance_189() { + if (Companion_instance_189 === VOID) + new Companion_189(); + return Companion_instance_189; + } + var $serializer_instance_176; + function $serializer_getInstance_176() { + if ($serializer_instance_176 === VOID) + new $serializer_176(); + return $serializer_instance_176; + } + var Companion_instance_190; + function Companion_getInstance_190() { + return Companion_instance_190; + } + var $serializer_instance_177; + function $serializer_getInstance_177() { + if ($serializer_instance_177 === VOID) + new $serializer_177(); + return $serializer_instance_177; + } + var Companion_instance_191; + function Companion_getInstance_191() { + return Companion_instance_191; + } + var $serializer_instance_178; + function $serializer_getInstance_178() { + if ($serializer_instance_178 === VOID) + new $serializer_178(); + return $serializer_instance_178; + } + var Companion_instance_192; + function Companion_getInstance_192() { + return Companion_instance_192; + } + var $serializer_instance_179; + function $serializer_getInstance_179() { + if ($serializer_instance_179 === VOID) + new $serializer_179(); + return $serializer_instance_179; + } + var Companion_instance_193; + function Companion_getInstance_193() { + return Companion_instance_193; + } + var $serializer_instance_180; + function $serializer_getInstance_180() { + if ($serializer_instance_180 === VOID) + new $serializer_180(); + return $serializer_instance_180; + } + var Companion_instance_194; + function Companion_getInstance_194() { + if (Companion_instance_194 === VOID) + new Companion_194(); + return Companion_instance_194; + } + var $serializer_instance_181; + function $serializer_getInstance_181() { + if ($serializer_instance_181 === VOID) + new $serializer_181(); + return $serializer_instance_181; + } + var Companion_instance_195; + function Companion_getInstance_195() { + if (Companion_instance_195 === VOID) + new Companion_195(); + return Companion_instance_195; + } + var $serializer_instance_182; + function $serializer_getInstance_182() { + if ($serializer_instance_182 === VOID) + new $serializer_182(); + return $serializer_instance_182; + } + var Companion_instance_196; + function Companion_getInstance_196() { + return Companion_instance_196; + } + var $serializer_instance_183; + function $serializer_getInstance_183() { + if ($serializer_instance_183 === VOID) + new $serializer_183(); + return $serializer_instance_183; + } + function KBasicLayerResource$Companion$payloadValues$delegate$lambda() { + return listOf_0([KResImage_getInstance(), KResAnimation_getInstance(), KResNativeDraw_getInstance()]); + } + function _get_$cachedSerializer__te6jhj_35($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KBasicLayerResource$KResType$Companion$values$delegate$lambda() { + return listOf_0([KResType_INVALID_getInstance(), KResType_PLUGIN_getInstance(), KResType_EMPTY_getInstance(), KResType_IMAGE_getInstance(), KResType_ANIMATION_getInstance(), KResType_NATIVE_DRAW_getInstance()]); + } + function KBasicLayerResource$KResType$Companion$_anonymous__512m60() { + return $serializer_getInstance_184(); + } + var KResType_INVALID_instance; + var KResType_PLUGIN_instance; + var KResType_EMPTY_instance; + var KResType_IMAGE_instance; + var KResType_ANIMATION_instance; + var KResType_NATIVE_DRAW_instance; + var KResType_UNRECOGNIZED_instance; + var Companion_instance_197; + function Companion_getInstance_197() { + KResType_initEntries(); + if (Companion_instance_197 === VOID) + new Companion_197(); + return Companion_instance_197; + } + var $serializer_instance_184; + function $serializer_getInstance_184() { + KResType_initEntries(); + if ($serializer_instance_184 === VOID) + new $serializer_184(); + return $serializer_instance_184; + } + function values_35() { + return [KResType_INVALID_getInstance(), KResType_PLUGIN_getInstance(), KResType_EMPTY_getInstance(), KResType_IMAGE_getInstance(), KResType_ANIMATION_getInstance(), KResType_NATIVE_DRAW_getInstance(), KResType_UNRECOGNIZED_getInstance()]; + } + function valueOf_35(value) { + switch (value) { + case 'INVALID': + return KResType_INVALID_getInstance(); + case 'PLUGIN': + return KResType_PLUGIN_getInstance(); + case 'EMPTY': + return KResType_EMPTY_getInstance(); + case 'IMAGE': + return KResType_IMAGE_getInstance(); + case 'ANIMATION': + return KResType_ANIMATION_getInstance(); + case 'NATIVE_DRAW': + return KResType_NATIVE_DRAW_getInstance(); + case 'UNRECOGNIZED': + return KResType_UNRECOGNIZED_getInstance(); + default: + KResType_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KResType_entriesInitialized; + function KResType_initEntries() { + if (KResType_entriesInitialized) + return Unit_instance; + KResType_entriesInitialized = true; + KResType_INVALID_instance = new KResType('INVALID', 0, 0); + KResType_PLUGIN_instance = new KResType('PLUGIN', 1, 1); + KResType_EMPTY_instance = new KResType('EMPTY', 2, 2); + KResType_IMAGE_instance = new KResType('IMAGE', 3, 3); + KResType_ANIMATION_instance = new KResType('ANIMATION', 4, 4); + KResType_NATIVE_DRAW_instance = new KResType('NATIVE_DRAW', 5, 5); + KResType_UNRECOGNIZED_instance = new KResType('UNRECOGNIZED', 6, -1); + Companion_getInstance_197(); + } + function _get_payloadNumber__pugmre($this) { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = $this.payloadNumber$delegate_1; + var thisRef = $this; + var property = payloadNumber$factory(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + var KResImage_instance; + function KResImage_getInstance() { + if (KResImage_instance === VOID) + new KResImage(); + return KResImage_instance; + } + var KResAnimation_instance; + function KResAnimation_getInstance() { + if (KResAnimation_instance === VOID) + new KResAnimation(); + return KResAnimation_instance; + } + var KResNativeDraw_instance; + function KResNativeDraw_getInstance() { + if (KResNativeDraw_instance === VOID) + new KResNativeDraw(); + return KResNativeDraw_instance; + } + var Companion_instance_198; + function Companion_getInstance_198() { + if (Companion_instance_198 === VOID) + new Companion_198(); + return Companion_instance_198; + } + var $serializer_instance_185; + function $serializer_getInstance_185() { + if ($serializer_instance_185 === VOID) + new $serializer_185(); + return $serializer_instance_185; + } + function KBasicLayerResource$payloadNumber$delegate$lambda(this$0) { + return function () { + var tmp; + if (!(this$0.resImage_1 == null)) { + tmp = 0; + } else if (!(this$0.resAnimation_1 == null)) { + tmp = 1; + } else if (!(this$0.resNativeDraw_1 == null)) { + tmp = 2; + } else { + tmp = -1; + } + return tmp; + }; + } + function KBasicLayerResource$_init_$lambda_d0mskx(this$0) { + return function () { + var tmp; + if (!(this$0.resImage_1 == null)) { + tmp = 0; + } else if (!(this$0.resAnimation_1 == null)) { + tmp = 1; + } else if (!(this$0.resNativeDraw_1 == null)) { + tmp = 2; + } else { + tmp = -1; + } + return tmp; + }; + } + function KResType_INVALID_getInstance() { + KResType_initEntries(); + return KResType_INVALID_instance; + } + function KResType_PLUGIN_getInstance() { + KResType_initEntries(); + return KResType_PLUGIN_instance; + } + function KResType_EMPTY_getInstance() { + KResType_initEntries(); + return KResType_EMPTY_instance; + } + function KResType_IMAGE_getInstance() { + KResType_initEntries(); + return KResType_IMAGE_instance; + } + function KResType_ANIMATION_getInstance() { + KResType_initEntries(); + return KResType_ANIMATION_instance; + } + function KResType_NATIVE_DRAW_getInstance() { + KResType_initEntries(); + return KResType_NATIVE_DRAW_instance; + } + function KResType_UNRECOGNIZED_getInstance() { + KResType_initEntries(); + return KResType_UNRECOGNIZED_instance; + } + var Companion_instance_199; + function Companion_getInstance_199() { + return Companion_instance_199; + } + var $serializer_instance_186; + function $serializer_getInstance_186() { + if ($serializer_instance_186 === VOID) + new $serializer_186(); + return $serializer_instance_186; + } + var Companion_instance_200; + function Companion_getInstance_200() { + if (Companion_instance_200 === VOID) + new Companion_200(); + return Companion_instance_200; + } + var $serializer_instance_187; + function $serializer_getInstance_187() { + if ($serializer_instance_187 === VOID) + new $serializer_187(); + return $serializer_instance_187; + } + function KLayerTagConfig$Companion$configValues$delegate$lambda() { + return listOf_0([KGeneralConfig_getInstance(), KGyroConfig_getInstance(), KCommentDoubleClickConfig_getInstance(), KLiveAnimeConfig_getInstance(), KWebLiveAnimeConfig_getInstance()]); + } + function _get_$cachedSerializer__te6jhj_36($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KLayerTagConfig$KTagConfigType$Companion$values$delegate$lambda() { + return listOf_0([KTagConfigType_TAG_CFG_INVALID_getInstance(), KTagConfigType_TAG_CFG_GENERAL_getInstance(), KTagConfigType_TAG_CFG_GYRO_getInstance(), KTagConfigType_TAG_CFG_COMMENT_DOUBLE_CLICK_getInstance(), KTagConfigType_TAG_CFG_IN_LIVE_getInstance(), KTagConfigType_TAG_CFG_WEB_IN_LIVE_getInstance()]); + } + function KLayerTagConfig$KTagConfigType$Companion$_anonymous__a5fcpi() { + return $serializer_getInstance_188(); + } + var KTagConfigType_TAG_CFG_INVALID_instance; + var KTagConfigType_TAG_CFG_GENERAL_instance; + var KTagConfigType_TAG_CFG_GYRO_instance; + var KTagConfigType_TAG_CFG_COMMENT_DOUBLE_CLICK_instance; + var KTagConfigType_TAG_CFG_IN_LIVE_instance; + var KTagConfigType_TAG_CFG_WEB_IN_LIVE_instance; + var KTagConfigType_UNRECOGNIZED_instance; + var Companion_instance_201; + function Companion_getInstance_201() { + KTagConfigType_initEntries(); + if (Companion_instance_201 === VOID) + new Companion_201(); + return Companion_instance_201; + } + var $serializer_instance_188; + function $serializer_getInstance_188() { + KTagConfigType_initEntries(); + if ($serializer_instance_188 === VOID) + new $serializer_188(); + return $serializer_instance_188; + } + function values_36() { + return [KTagConfigType_TAG_CFG_INVALID_getInstance(), KTagConfigType_TAG_CFG_GENERAL_getInstance(), KTagConfigType_TAG_CFG_GYRO_getInstance(), KTagConfigType_TAG_CFG_COMMENT_DOUBLE_CLICK_getInstance(), KTagConfigType_TAG_CFG_IN_LIVE_getInstance(), KTagConfigType_TAG_CFG_WEB_IN_LIVE_getInstance(), KTagConfigType_UNRECOGNIZED_getInstance()]; + } + function valueOf_36(value) { + switch (value) { + case 'TAG_CFG_INVALID': + return KTagConfigType_TAG_CFG_INVALID_getInstance(); + case 'TAG_CFG_GENERAL': + return KTagConfigType_TAG_CFG_GENERAL_getInstance(); + case 'TAG_CFG_GYRO': + return KTagConfigType_TAG_CFG_GYRO_getInstance(); + case 'TAG_CFG_COMMENT_DOUBLE_CLICK': + return KTagConfigType_TAG_CFG_COMMENT_DOUBLE_CLICK_getInstance(); + case 'TAG_CFG_IN_LIVE': + return KTagConfigType_TAG_CFG_IN_LIVE_getInstance(); + case 'TAG_CFG_WEB_IN_LIVE': + return KTagConfigType_TAG_CFG_WEB_IN_LIVE_getInstance(); + case 'UNRECOGNIZED': + return KTagConfigType_UNRECOGNIZED_getInstance(); + default: + KTagConfigType_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KTagConfigType_entriesInitialized; + function KTagConfigType_initEntries() { + if (KTagConfigType_entriesInitialized) + return Unit_instance; + KTagConfigType_entriesInitialized = true; + KTagConfigType_TAG_CFG_INVALID_instance = new KTagConfigType('TAG_CFG_INVALID', 0, 0); + KTagConfigType_TAG_CFG_GENERAL_instance = new KTagConfigType('TAG_CFG_GENERAL', 1, 1); + KTagConfigType_TAG_CFG_GYRO_instance = new KTagConfigType('TAG_CFG_GYRO', 2, 2); + KTagConfigType_TAG_CFG_COMMENT_DOUBLE_CLICK_instance = new KTagConfigType('TAG_CFG_COMMENT_DOUBLE_CLICK', 3, 3); + KTagConfigType_TAG_CFG_IN_LIVE_instance = new KTagConfigType('TAG_CFG_IN_LIVE', 4, 4); + KTagConfigType_TAG_CFG_WEB_IN_LIVE_instance = new KTagConfigType('TAG_CFG_WEB_IN_LIVE', 5, 5); + KTagConfigType_UNRECOGNIZED_instance = new KTagConfigType('UNRECOGNIZED', 6, -1); + Companion_getInstance_201(); + } + function _get_configNumber__p2nvk0($this) { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = $this.configNumber$delegate_1; + var thisRef = $this; + var property = configNumber$factory(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + var KGeneralConfig_instance; + function KGeneralConfig_getInstance() { + if (KGeneralConfig_instance === VOID) + new KGeneralConfig(); + return KGeneralConfig_instance; + } + var KGyroConfig_instance; + function KGyroConfig_getInstance() { + if (KGyroConfig_instance === VOID) + new KGyroConfig_0(); + return KGyroConfig_instance; + } + var KCommentDoubleClickConfig_instance; + function KCommentDoubleClickConfig_getInstance() { + if (KCommentDoubleClickConfig_instance === VOID) + new KCommentDoubleClickConfig_0(); + return KCommentDoubleClickConfig_instance; + } + var KLiveAnimeConfig_instance; + function KLiveAnimeConfig_getInstance() { + if (KLiveAnimeConfig_instance === VOID) + new KLiveAnimeConfig_0(); + return KLiveAnimeConfig_instance; + } + var KWebLiveAnimeConfig_instance; + function KWebLiveAnimeConfig_getInstance() { + if (KWebLiveAnimeConfig_instance === VOID) + new KWebLiveAnimeConfig_0(); + return KWebLiveAnimeConfig_instance; + } + var Companion_instance_202; + function Companion_getInstance_202() { + if (Companion_instance_202 === VOID) + new Companion_202(); + return Companion_instance_202; + } + var $serializer_instance_189; + function $serializer_getInstance_189() { + if ($serializer_instance_189 === VOID) + new $serializer_189(); + return $serializer_instance_189; + } + function KLayerTagConfig$configNumber$delegate$lambda(this$0) { + return function () { + var tmp; + if (!(this$0.generalConfig_1 == null)) { + tmp = 0; + } else if (!(this$0.gyroConfig_1 == null)) { + tmp = 1; + } else if (!(this$0.commentDoubleClickConfig_1 == null)) { + tmp = 2; + } else if (!(this$0.liveAnimeConfig_1 == null)) { + tmp = 3; + } else if (!(this$0.webLiveAnimeConfig_1 == null)) { + tmp = 4; + } else { + tmp = -1; + } + return tmp; + }; + } + function KLayerTagConfig$_init_$lambda_x36s9h(this$0) { + return function () { + var tmp; + if (!(this$0.generalConfig_1 == null)) { + tmp = 0; + } else if (!(this$0.gyroConfig_1 == null)) { + tmp = 1; + } else if (!(this$0.commentDoubleClickConfig_1 == null)) { + tmp = 2; + } else if (!(this$0.liveAnimeConfig_1 == null)) { + tmp = 3; + } else if (!(this$0.webLiveAnimeConfig_1 == null)) { + tmp = 4; + } else { + tmp = -1; + } + return tmp; + }; + } + function KTagConfigType_TAG_CFG_INVALID_getInstance() { + KTagConfigType_initEntries(); + return KTagConfigType_TAG_CFG_INVALID_instance; + } + function KTagConfigType_TAG_CFG_GENERAL_getInstance() { + KTagConfigType_initEntries(); + return KTagConfigType_TAG_CFG_GENERAL_instance; + } + function KTagConfigType_TAG_CFG_GYRO_getInstance() { + KTagConfigType_initEntries(); + return KTagConfigType_TAG_CFG_GYRO_instance; + } + function KTagConfigType_TAG_CFG_COMMENT_DOUBLE_CLICK_getInstance() { + KTagConfigType_initEntries(); + return KTagConfigType_TAG_CFG_COMMENT_DOUBLE_CLICK_instance; + } + function KTagConfigType_TAG_CFG_IN_LIVE_getInstance() { + KTagConfigType_initEntries(); + return KTagConfigType_TAG_CFG_IN_LIVE_instance; + } + function KTagConfigType_TAG_CFG_WEB_IN_LIVE_getInstance() { + KTagConfigType_initEntries(); + return KTagConfigType_TAG_CFG_WEB_IN_LIVE_instance; + } + function KTagConfigType_UNRECOGNIZED_getInstance() { + KTagConfigType_initEntries(); + return KTagConfigType_UNRECOGNIZED_instance; + } + var Companion_instance_203; + function Companion_getInstance_203() { + return Companion_instance_203; + } + var $serializer_instance_190; + function $serializer_getInstance_190() { + if ($serializer_instance_190 === VOID) + new $serializer_190(); + return $serializer_instance_190; + } + var Companion_instance_204; + function Companion_getInstance_204() { + if (Companion_instance_204 === VOID) + new Companion_204(); + return Companion_instance_204; + } + var $serializer_instance_191; + function $serializer_getInstance_191() { + if ($serializer_instance_191 === VOID) + new $serializer_191(); + return $serializer_instance_191; + } + var Companion_instance_205; + function Companion_getInstance_205() { + return Companion_instance_205; + } + var $serializer_instance_192; + function $serializer_getInstance_192() { + if ($serializer_instance_192 === VOID) + new $serializer_192(); + return $serializer_instance_192; + } + var Companion_instance_206; + function Companion_getInstance_206() { + return Companion_instance_206; + } + var $serializer_instance_193; + function $serializer_getInstance_193() { + if ($serializer_instance_193 === VOID) + new $serializer_193(); + return $serializer_instance_193; + } + var Companion_instance_207; + function Companion_getInstance_207() { + return Companion_instance_207; + } + var $serializer_instance_194; + function $serializer_getInstance_194() { + if ($serializer_instance_194 === VOID) + new $serializer_194(); + return $serializer_instance_194; + } + function payloadNumber$factory() { + return getPropertyCallableRef('payloadNumber', 1, KProperty1, function (receiver) { + return _get_payloadNumber__pugmre(receiver); + }, null); + } + function payloadValues$factory() { + return getPropertyCallableRef('payloadValues', 1, KProperty1, function (receiver) { + return receiver.payloadValues; + }, null); + } + function values$factory_35() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function configNumber$factory() { + return getPropertyCallableRef('configNumber', 1, KProperty1, function (receiver) { + return _get_configNumber__p2nvk0(receiver); + }, null); + } + function configValues$factory() { + return getPropertyCallableRef('configValues', 1, KProperty1, function (receiver) { + return receiver.configValues; + }, null); + } + function values$factory_36() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + var Companion_instance_208; + function Companion_getInstance_208() { + return Companion_instance_208; + } + var $serializer_instance_195; + function $serializer_getInstance_195() { + if ($serializer_instance_195 === VOID) + new $serializer_195(); + return $serializer_instance_195; + } + var Companion_instance_209; + function Companion_getInstance_209() { + return Companion_instance_209; + } + var $serializer_instance_196; + function $serializer_getInstance_196() { + if ($serializer_instance_196 === VOID) + new $serializer_196(); + return $serializer_instance_196; + } + var Companion_instance_210; + function Companion_getInstance_210() { + return Companion_instance_210; + } + var $serializer_instance_197; + function $serializer_getInstance_197() { + if ($serializer_instance_197 === VOID) + new $serializer_197(); + return $serializer_instance_197; + } + var Companion_instance_211; + function Companion_getInstance_211() { + return Companion_instance_211; + } + var $serializer_instance_198; + function $serializer_getInstance_198() { + if ($serializer_instance_198 === VOID) + new $serializer_198(); + return $serializer_instance_198; + } + function _get_$cachedSerializer__te6jhj_37($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KToolType$Companion$values$delegate$lambda() { + return listOf_0([KToolType_INTERACTIVE_DANMAKU_getInstance(), KToolType_INTERACTIVE_SETTINGS_getInstance(), KToolType_TAKE_OFF_getInstance(), KToolType_UNIVERSAL_getInstance()]); + } + function KToolType$Companion$_anonymous__l9prse() { + return $serializer_getInstance_199(); + } + var KToolType_INTERACTIVE_DANMAKU_instance; + var KToolType_INTERACTIVE_SETTINGS_instance; + var KToolType_TAKE_OFF_instance; + var KToolType_UNIVERSAL_instance; + var KToolType_UNRECOGNIZED_instance; + var Companion_instance_212; + function Companion_getInstance_212() { + KToolType_initEntries(); + if (Companion_instance_212 === VOID) + new Companion_212(); + return Companion_instance_212; + } + var $serializer_instance_199; + function $serializer_getInstance_199() { + KToolType_initEntries(); + if ($serializer_instance_199 === VOID) + new $serializer_199(); + return $serializer_instance_199; + } + function values_37() { + return [KToolType_INTERACTIVE_DANMAKU_getInstance(), KToolType_INTERACTIVE_SETTINGS_getInstance(), KToolType_TAKE_OFF_getInstance(), KToolType_UNIVERSAL_getInstance(), KToolType_UNRECOGNIZED_getInstance()]; + } + function valueOf_37(value) { + switch (value) { + case 'INTERACTIVE_DANMAKU': + return KToolType_INTERACTIVE_DANMAKU_getInstance(); + case 'INTERACTIVE_SETTINGS': + return KToolType_INTERACTIVE_SETTINGS_getInstance(); + case 'TAKE_OFF': + return KToolType_TAKE_OFF_getInstance(); + case 'UNIVERSAL': + return KToolType_UNIVERSAL_getInstance(); + case 'UNRECOGNIZED': + return KToolType_UNRECOGNIZED_getInstance(); + default: + KToolType_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KToolType_entriesInitialized; + function KToolType_initEntries() { + if (KToolType_entriesInitialized) + return Unit_instance; + KToolType_entriesInitialized = true; + KToolType_INTERACTIVE_DANMAKU_instance = new KToolType('INTERACTIVE_DANMAKU', 0, 0); + KToolType_INTERACTIVE_SETTINGS_instance = new KToolType('INTERACTIVE_SETTINGS', 1, 1); + KToolType_TAKE_OFF_instance = new KToolType('TAKE_OFF', 2, 2); + KToolType_UNIVERSAL_instance = new KToolType('UNIVERSAL', 3, 3); + KToolType_UNRECOGNIZED_instance = new KToolType('UNRECOGNIZED', 4, -1); + Companion_getInstance_212(); + } + function _get_$cachedSerializer__te6jhj_38($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KExtType$Companion$values$delegate$lambda() { + return listOf_0([KExtType_EXT_NONE_getInstance(), KExtType_EXT_DATA_CENTER_getInstance(), KExtType_EXT_DATA_EARNINGS_getInstance()]); + } + function KExtType$Companion$_anonymous__qbacu7() { + return $serializer_getInstance_200(); + } + var KExtType_EXT_NONE_instance; + var KExtType_EXT_DATA_CENTER_instance; + var KExtType_EXT_DATA_EARNINGS_instance; + var KExtType_UNRECOGNIZED_instance; + var Companion_instance_213; + function Companion_getInstance_213() { + KExtType_initEntries(); + if (Companion_instance_213 === VOID) + new Companion_213(); + return Companion_instance_213; + } + var $serializer_instance_200; + function $serializer_getInstance_200() { + KExtType_initEntries(); + if ($serializer_instance_200 === VOID) + new $serializer_200(); + return $serializer_instance_200; + } + function values_38() { + return [KExtType_EXT_NONE_getInstance(), KExtType_EXT_DATA_CENTER_getInstance(), KExtType_EXT_DATA_EARNINGS_getInstance(), KExtType_UNRECOGNIZED_getInstance()]; + } + function valueOf_38(value) { + switch (value) { + case 'EXT_NONE': + return KExtType_EXT_NONE_getInstance(); + case 'EXT_DATA_CENTER': + return KExtType_EXT_DATA_CENTER_getInstance(); + case 'EXT_DATA_EARNINGS': + return KExtType_EXT_DATA_EARNINGS_getInstance(); + case 'UNRECOGNIZED': + return KExtType_UNRECOGNIZED_getInstance(); + default: + KExtType_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KExtType_entriesInitialized; + function KExtType_initEntries() { + if (KExtType_entriesInitialized) + return Unit_instance; + KExtType_entriesInitialized = true; + KExtType_EXT_NONE_instance = new KExtType('EXT_NONE', 0, 0); + KExtType_EXT_DATA_CENTER_instance = new KExtType('EXT_DATA_CENTER', 1, 1); + KExtType_EXT_DATA_EARNINGS_instance = new KExtType('EXT_DATA_EARNINGS', 2, 2); + KExtType_UNRECOGNIZED_instance = new KExtType('UNRECOGNIZED', 3, -1); + Companion_getInstance_213(); + } + function _get_$cachedSerializer__te6jhj_39($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KRelateCardType$Companion$values$delegate$lambda() { + return listOf_0([KRelateCardType_CARD_TYPE_UNKNOWN_getInstance(), KRelateCardType_AV_getInstance(), KRelateCardType_BANGUMI_getInstance(), KRelateCardType_RESOURCE_getInstance(), KRelateCardType_GAME_getInstance(), KRelateCardType_CM_getInstance(), KRelateCardType_LIVE_getInstance(), KRelateCardType_AI_RECOMMEND_getInstance(), KRelateCardType_BANGUMI_AV_getInstance(), KRelateCardType_BANGUMI_UGC_getInstance(), KRelateCardType_SPECIAL_getInstance(), KRelateCardType_COURSE_getInstance()]); + } + function KRelateCardType$Companion$_anonymous__74i6g1() { + return $serializer_getInstance_201(); + } + var KRelateCardType_CARD_TYPE_UNKNOWN_instance; + var KRelateCardType_AV_instance; + var KRelateCardType_BANGUMI_instance; + var KRelateCardType_RESOURCE_instance; + var KRelateCardType_GAME_instance; + var KRelateCardType_CM_instance; + var KRelateCardType_LIVE_instance; + var KRelateCardType_AI_RECOMMEND_instance; + var KRelateCardType_BANGUMI_AV_instance; + var KRelateCardType_BANGUMI_UGC_instance; + var KRelateCardType_SPECIAL_instance; + var KRelateCardType_COURSE_instance; + var KRelateCardType_UNRECOGNIZED_instance; + var Companion_instance_214; + function Companion_getInstance_214() { + KRelateCardType_initEntries(); + if (Companion_instance_214 === VOID) + new Companion_214(); + return Companion_instance_214; + } + var $serializer_instance_201; + function $serializer_getInstance_201() { + KRelateCardType_initEntries(); + if ($serializer_instance_201 === VOID) + new $serializer_201(); + return $serializer_instance_201; + } + function values_39() { + return [KRelateCardType_CARD_TYPE_UNKNOWN_getInstance(), KRelateCardType_AV_getInstance(), KRelateCardType_BANGUMI_getInstance(), KRelateCardType_RESOURCE_getInstance(), KRelateCardType_GAME_getInstance(), KRelateCardType_CM_getInstance(), KRelateCardType_LIVE_getInstance(), KRelateCardType_AI_RECOMMEND_getInstance(), KRelateCardType_BANGUMI_AV_getInstance(), KRelateCardType_BANGUMI_UGC_getInstance(), KRelateCardType_SPECIAL_getInstance(), KRelateCardType_COURSE_getInstance(), KRelateCardType_UNRECOGNIZED_getInstance()]; + } + function valueOf_39(value) { + switch (value) { + case 'CARD_TYPE_UNKNOWN': + return KRelateCardType_CARD_TYPE_UNKNOWN_getInstance(); + case 'AV': + return KRelateCardType_AV_getInstance(); + case 'BANGUMI': + return KRelateCardType_BANGUMI_getInstance(); + case 'RESOURCE': + return KRelateCardType_RESOURCE_getInstance(); + case 'GAME': + return KRelateCardType_GAME_getInstance(); + case 'CM': + return KRelateCardType_CM_getInstance(); + case 'LIVE': + return KRelateCardType_LIVE_getInstance(); + case 'AI_RECOMMEND': + return KRelateCardType_AI_RECOMMEND_getInstance(); + case 'BANGUMI_AV': + return KRelateCardType_BANGUMI_AV_getInstance(); + case 'BANGUMI_UGC': + return KRelateCardType_BANGUMI_UGC_getInstance(); + case 'SPECIAL': + return KRelateCardType_SPECIAL_getInstance(); + case 'COURSE': + return KRelateCardType_COURSE_getInstance(); + case 'UNRECOGNIZED': + return KRelateCardType_UNRECOGNIZED_getInstance(); + default: + KRelateCardType_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KRelateCardType_entriesInitialized; + function KRelateCardType_initEntries() { + if (KRelateCardType_entriesInitialized) + return Unit_instance; + KRelateCardType_entriesInitialized = true; + KRelateCardType_CARD_TYPE_UNKNOWN_instance = new KRelateCardType('CARD_TYPE_UNKNOWN', 0, 0); + KRelateCardType_AV_instance = new KRelateCardType('AV', 1, 1); + KRelateCardType_BANGUMI_instance = new KRelateCardType('BANGUMI', 2, 2); + KRelateCardType_RESOURCE_instance = new KRelateCardType('RESOURCE', 3, 3); + KRelateCardType_GAME_instance = new KRelateCardType('GAME', 4, 4); + KRelateCardType_CM_instance = new KRelateCardType('CM', 5, 5); + KRelateCardType_LIVE_instance = new KRelateCardType('LIVE', 6, 6); + KRelateCardType_AI_RECOMMEND_instance = new KRelateCardType('AI_RECOMMEND', 7, 7); + KRelateCardType_BANGUMI_AV_instance = new KRelateCardType('BANGUMI_AV', 8, 8); + KRelateCardType_BANGUMI_UGC_instance = new KRelateCardType('BANGUMI_UGC', 9, 9); + KRelateCardType_SPECIAL_instance = new KRelateCardType('SPECIAL', 10, 10); + KRelateCardType_COURSE_instance = new KRelateCardType('COURSE', 11, 11); + KRelateCardType_UNRECOGNIZED_instance = new KRelateCardType('UNRECOGNIZED', 12, -1); + Companion_getInstance_214(); + } + function _get_$cachedSerializer__te6jhj_40($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KJumpType$Companion$values$delegate$lambda() { + return listOf_0([KJumpType_UNKNOWN_getInstance(), KJumpType_OPEN_URL_getInstance(), KJumpType_REFRESH_getInstance(), KJumpType_HALF_SCREEN_getInstance(), KJumpType_OPEN_URL_BY_OUTER_BROWSER_getInstance()]); + } + function KJumpType$Companion$_anonymous__i5gcn8() { + return $serializer_getInstance_202(); + } + var KJumpType_UNKNOWN_instance; + var KJumpType_OPEN_URL_instance; + var KJumpType_REFRESH_instance; + var KJumpType_HALF_SCREEN_instance; + var KJumpType_OPEN_URL_BY_OUTER_BROWSER_instance; + var KJumpType_UNRECOGNIZED_instance; + var Companion_instance_215; + function Companion_getInstance_215() { + KJumpType_initEntries(); + if (Companion_instance_215 === VOID) + new Companion_215(); + return Companion_instance_215; + } + var $serializer_instance_202; + function $serializer_getInstance_202() { + KJumpType_initEntries(); + if ($serializer_instance_202 === VOID) + new $serializer_202(); + return $serializer_instance_202; + } + function values_40() { + return [KJumpType_UNKNOWN_getInstance(), KJumpType_OPEN_URL_getInstance(), KJumpType_REFRESH_getInstance(), KJumpType_HALF_SCREEN_getInstance(), KJumpType_OPEN_URL_BY_OUTER_BROWSER_getInstance(), KJumpType_UNRECOGNIZED_getInstance()]; + } + function valueOf_40(value) { + switch (value) { + case 'UNKNOWN': + return KJumpType_UNKNOWN_getInstance(); + case 'OPEN_URL': + return KJumpType_OPEN_URL_getInstance(); + case 'REFRESH': + return KJumpType_REFRESH_getInstance(); + case 'HALF_SCREEN': + return KJumpType_HALF_SCREEN_getInstance(); + case 'OPEN_URL_BY_OUTER_BROWSER': + return KJumpType_OPEN_URL_BY_OUTER_BROWSER_getInstance(); + case 'UNRECOGNIZED': + return KJumpType_UNRECOGNIZED_getInstance(); + default: + KJumpType_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KJumpType_entriesInitialized; + function KJumpType_initEntries() { + if (KJumpType_entriesInitialized) + return Unit_instance; + KJumpType_entriesInitialized = true; + KJumpType_UNKNOWN_instance = new KJumpType('UNKNOWN', 0, 0); + KJumpType_OPEN_URL_instance = new KJumpType('OPEN_URL', 1, 1); + KJumpType_REFRESH_instance = new KJumpType('REFRESH', 2, 2); + KJumpType_HALF_SCREEN_instance = new KJumpType('HALF_SCREEN', 3, 3); + KJumpType_OPEN_URL_BY_OUTER_BROWSER_instance = new KJumpType('OPEN_URL_BY_OUTER_BROWSER', 4, 4); + KJumpType_UNRECOGNIZED_instance = new KJumpType('UNRECOGNIZED', 5, -1); + Companion_getInstance_215(); + } + function _get_$cachedSerializer__te6jhj_41($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KHonorJumpType$Companion$values$delegate$lambda() { + return listOf_0([KHonorJumpType_UNKNOWN_getInstance(), KHonorJumpType_HONOR_OPEN_URL_getInstance(), KHonorJumpType_HONOR_HALF_SCREEN_getInstance(), KHonorJumpType_HONOR_POPUP_getInstance()]); + } + function KHonorJumpType$Companion$_anonymous__3jfbtk() { + return $serializer_getInstance_203(); + } + var KHonorJumpType_UNKNOWN_instance; + var KHonorJumpType_HONOR_OPEN_URL_instance; + var KHonorJumpType_HONOR_HALF_SCREEN_instance; + var KHonorJumpType_HONOR_POPUP_instance; + var KHonorJumpType_UNRECOGNIZED_instance; + var Companion_instance_216; + function Companion_getInstance_216() { + KHonorJumpType_initEntries(); + if (Companion_instance_216 === VOID) + new Companion_216(); + return Companion_instance_216; + } + var $serializer_instance_203; + function $serializer_getInstance_203() { + KHonorJumpType_initEntries(); + if ($serializer_instance_203 === VOID) + new $serializer_203(); + return $serializer_instance_203; + } + function values_41() { + return [KHonorJumpType_UNKNOWN_getInstance(), KHonorJumpType_HONOR_OPEN_URL_getInstance(), KHonorJumpType_HONOR_HALF_SCREEN_getInstance(), KHonorJumpType_HONOR_POPUP_getInstance(), KHonorJumpType_UNRECOGNIZED_getInstance()]; + } + function valueOf_41(value) { + switch (value) { + case 'UNKNOWN': + return KHonorJumpType_UNKNOWN_getInstance(); + case 'HONOR_OPEN_URL': + return KHonorJumpType_HONOR_OPEN_URL_getInstance(); + case 'HONOR_HALF_SCREEN': + return KHonorJumpType_HONOR_HALF_SCREEN_getInstance(); + case 'HONOR_POPUP': + return KHonorJumpType_HONOR_POPUP_getInstance(); + case 'UNRECOGNIZED': + return KHonorJumpType_UNRECOGNIZED_getInstance(); + default: + KHonorJumpType_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KHonorJumpType_entriesInitialized; + function KHonorJumpType_initEntries() { + if (KHonorJumpType_entriesInitialized) + return Unit_instance; + KHonorJumpType_entriesInitialized = true; + KHonorJumpType_UNKNOWN_instance = new KHonorJumpType('UNKNOWN', 0, 0); + KHonorJumpType_HONOR_OPEN_URL_instance = new KHonorJumpType('HONOR_OPEN_URL', 1, 1); + KHonorJumpType_HONOR_HALF_SCREEN_instance = new KHonorJumpType('HONOR_HALF_SCREEN', 2, 2); + KHonorJumpType_HONOR_POPUP_instance = new KHonorJumpType('HONOR_POPUP', 3, 3); + KHonorJumpType_UNRECOGNIZED_instance = new KHonorJumpType('UNRECOGNIZED', 4, -1); + Companion_getInstance_216(); + } + function _get_$cachedSerializer__te6jhj_42($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KSerialSeasonCoverStyle$Companion$values$delegate$lambda() { + return listOf_0([KSerialSeasonCoverStyle_TITLE_getInstance(), KSerialSeasonCoverStyle_PICTURE_getInstance(), KSerialSeasonCoverStyle_UNKNOWN_getInstance()]); + } + function KSerialSeasonCoverStyle$Companion$_anonymous__irhfxv() { + return $serializer_getInstance_204(); + } + var KSerialSeasonCoverStyle_TITLE_instance; + var KSerialSeasonCoverStyle_PICTURE_instance; + var KSerialSeasonCoverStyle_UNKNOWN_instance; + var KSerialSeasonCoverStyle_UNRECOGNIZED_instance; + var Companion_instance_217; + function Companion_getInstance_217() { + KSerialSeasonCoverStyle_initEntries(); + if (Companion_instance_217 === VOID) + new Companion_217(); + return Companion_instance_217; + } + var $serializer_instance_204; + function $serializer_getInstance_204() { + KSerialSeasonCoverStyle_initEntries(); + if ($serializer_instance_204 === VOID) + new $serializer_204(); + return $serializer_instance_204; + } + function values_42() { + return [KSerialSeasonCoverStyle_TITLE_getInstance(), KSerialSeasonCoverStyle_PICTURE_getInstance(), KSerialSeasonCoverStyle_UNKNOWN_getInstance(), KSerialSeasonCoverStyle_UNRECOGNIZED_getInstance()]; + } + function valueOf_42(value) { + switch (value) { + case 'TITLE': + return KSerialSeasonCoverStyle_TITLE_getInstance(); + case 'PICTURE': + return KSerialSeasonCoverStyle_PICTURE_getInstance(); + case 'UNKNOWN': + return KSerialSeasonCoverStyle_UNKNOWN_getInstance(); + case 'UNRECOGNIZED': + return KSerialSeasonCoverStyle_UNRECOGNIZED_getInstance(); + default: + KSerialSeasonCoverStyle_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KSerialSeasonCoverStyle_entriesInitialized; + function KSerialSeasonCoverStyle_initEntries() { + if (KSerialSeasonCoverStyle_entriesInitialized) + return Unit_instance; + KSerialSeasonCoverStyle_entriesInitialized = true; + KSerialSeasonCoverStyle_TITLE_instance = new KSerialSeasonCoverStyle('TITLE', 0, 0); + KSerialSeasonCoverStyle_PICTURE_instance = new KSerialSeasonCoverStyle('PICTURE', 1, 1); + KSerialSeasonCoverStyle_UNKNOWN_instance = new KSerialSeasonCoverStyle('UNKNOWN', 2, -1); + KSerialSeasonCoverStyle_UNRECOGNIZED_instance = new KSerialSeasonCoverStyle('UNRECOGNIZED', 3, -1); + Companion_getInstance_217(); + } + function _get_$cachedSerializer__te6jhj_43($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KSeasonType$Companion$values$delegate$lambda() { + return listOf_0([KSeasonType_UNKNOWN_getInstance(), KSeasonType_BASE_getInstance(), KSeasonType_GOOD_getInstance()]); + } + function KSeasonType$Companion$_anonymous__uass3r() { + return $serializer_getInstance_205(); + } + var KSeasonType_UNKNOWN_instance; + var KSeasonType_BASE_instance; + var KSeasonType_GOOD_instance; + var KSeasonType_UNRECOGNIZED_instance; + var Companion_instance_218; + function Companion_getInstance_218() { + KSeasonType_initEntries(); + if (Companion_instance_218 === VOID) + new Companion_218(); + return Companion_instance_218; + } + var $serializer_instance_205; + function $serializer_getInstance_205() { + KSeasonType_initEntries(); + if ($serializer_instance_205 === VOID) + new $serializer_205(); + return $serializer_instance_205; + } + function values_43() { + return [KSeasonType_UNKNOWN_getInstance(), KSeasonType_BASE_getInstance(), KSeasonType_GOOD_getInstance(), KSeasonType_UNRECOGNIZED_getInstance()]; + } + function valueOf_43(value) { + switch (value) { + case 'UNKNOWN': + return KSeasonType_UNKNOWN_getInstance(); + case 'BASE': + return KSeasonType_BASE_getInstance(); + case 'GOOD': + return KSeasonType_GOOD_getInstance(); + case 'UNRECOGNIZED': + return KSeasonType_UNRECOGNIZED_getInstance(); + default: + KSeasonType_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KSeasonType_entriesInitialized; + function KSeasonType_initEntries() { + if (KSeasonType_entriesInitialized) + return Unit_instance; + KSeasonType_entriesInitialized = true; + KSeasonType_UNKNOWN_instance = new KSeasonType('UNKNOWN', 0, 0); + KSeasonType_BASE_instance = new KSeasonType('BASE', 1, 1); + KSeasonType_GOOD_instance = new KSeasonType('GOOD', 2, 2); + KSeasonType_UNRECOGNIZED_instance = new KSeasonType('UNRECOGNIZED', 3, -1); + Companion_getInstance_218(); + } + function _get_$cachedSerializer__te6jhj_44($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KShowStyle$Companion$values$delegate$lambda() { + return listOf_0([KShowStyle_UNKNOWN_getInstance(), KShowStyle_ONE_ROW_ONE_COLUMN_getInstance(), KShowStyle_ONE_ROW_MULTI_COLUMN_getInstance(), KShowStyle_ONE_COLUMN_MULTI_ROW_getInstance()]); + } + function KShowStyle$Companion$_anonymous__8ys7ju() { + return $serializer_getInstance_206(); + } + var KShowStyle_UNKNOWN_instance; + var KShowStyle_ONE_ROW_ONE_COLUMN_instance; + var KShowStyle_ONE_ROW_MULTI_COLUMN_instance; + var KShowStyle_ONE_COLUMN_MULTI_ROW_instance; + var KShowStyle_UNRECOGNIZED_instance; + var Companion_instance_219; + function Companion_getInstance_219() { + KShowStyle_initEntries(); + if (Companion_instance_219 === VOID) + new Companion_219(); + return Companion_instance_219; + } + var $serializer_instance_206; + function $serializer_getInstance_206() { + KShowStyle_initEntries(); + if ($serializer_instance_206 === VOID) + new $serializer_206(); + return $serializer_instance_206; + } + function values_44() { + return [KShowStyle_UNKNOWN_getInstance(), KShowStyle_ONE_ROW_ONE_COLUMN_getInstance(), KShowStyle_ONE_ROW_MULTI_COLUMN_getInstance(), KShowStyle_ONE_COLUMN_MULTI_ROW_getInstance(), KShowStyle_UNRECOGNIZED_getInstance()]; + } + function valueOf_44(value) { + switch (value) { + case 'UNKNOWN': + return KShowStyle_UNKNOWN_getInstance(); + case 'ONE_ROW_ONE_COLUMN': + return KShowStyle_ONE_ROW_ONE_COLUMN_getInstance(); + case 'ONE_ROW_MULTI_COLUMN': + return KShowStyle_ONE_ROW_MULTI_COLUMN_getInstance(); + case 'ONE_COLUMN_MULTI_ROW': + return KShowStyle_ONE_COLUMN_MULTI_ROW_getInstance(); + case 'UNRECOGNIZED': + return KShowStyle_UNRECOGNIZED_getInstance(); + default: + KShowStyle_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KShowStyle_entriesInitialized; + function KShowStyle_initEntries() { + if (KShowStyle_entriesInitialized) + return Unit_instance; + KShowStyle_entriesInitialized = true; + KShowStyle_UNKNOWN_instance = new KShowStyle('UNKNOWN', 0, 0); + KShowStyle_ONE_ROW_ONE_COLUMN_instance = new KShowStyle('ONE_ROW_ONE_COLUMN', 1, 1); + KShowStyle_ONE_ROW_MULTI_COLUMN_instance = new KShowStyle('ONE_ROW_MULTI_COLUMN', 2, 2); + KShowStyle_ONE_COLUMN_MULTI_ROW_instance = new KShowStyle('ONE_COLUMN_MULTI_ROW', 3, 3); + KShowStyle_UNRECOGNIZED_instance = new KShowStyle('UNRECOGNIZED', 4, -1); + Companion_getInstance_219(); + } + function _get_$cachedSerializer__te6jhj_45($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KOccupationType$Companion$values$delegate$lambda() { + return listOf_0([KOccupationType_STAFF_getInstance(), KOccupationType_CAST_getInstance(), KOccupationType_UNKNOWN_TYPE_getInstance()]); + } + function KOccupationType$Companion$_anonymous__eagbj3() { + return $serializer_getInstance_207(); + } + var KOccupationType_STAFF_instance; + var KOccupationType_CAST_instance; + var KOccupationType_UNKNOWN_TYPE_instance; + var KOccupationType_UNRECOGNIZED_instance; + var Companion_instance_220; + function Companion_getInstance_220() { + KOccupationType_initEntries(); + if (Companion_instance_220 === VOID) + new Companion_220(); + return Companion_instance_220; + } + var $serializer_instance_207; + function $serializer_getInstance_207() { + KOccupationType_initEntries(); + if ($serializer_instance_207 === VOID) + new $serializer_207(); + return $serializer_instance_207; + } + function values_45() { + return [KOccupationType_STAFF_getInstance(), KOccupationType_CAST_getInstance(), KOccupationType_UNKNOWN_TYPE_getInstance(), KOccupationType_UNRECOGNIZED_getInstance()]; + } + function valueOf_45(value) { + switch (value) { + case 'STAFF': + return KOccupationType_STAFF_getInstance(); + case 'CAST': + return KOccupationType_CAST_getInstance(); + case 'UNKNOWN_TYPE': + return KOccupationType_UNKNOWN_TYPE_getInstance(); + case 'UNRECOGNIZED': + return KOccupationType_UNRECOGNIZED_getInstance(); + default: + KOccupationType_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KOccupationType_entriesInitialized; + function KOccupationType_initEntries() { + if (KOccupationType_entriesInitialized) + return Unit_instance; + KOccupationType_entriesInitialized = true; + KOccupationType_STAFF_instance = new KOccupationType('STAFF', 0, 0); + KOccupationType_CAST_instance = new KOccupationType('CAST', 1, 1); + KOccupationType_UNKNOWN_TYPE_instance = new KOccupationType('UNKNOWN_TYPE', 2, -1); + KOccupationType_UNRECOGNIZED_instance = new KOccupationType('UNRECOGNIZED', 3, -1); + Companion_getInstance_220(); + } + function _get_$cachedSerializer__te6jhj_46($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KAttentionRelationStatus$Companion$values$delegate$lambda() { + return listOf_0([KAttentionRelationStatus_ARS_NONE_getInstance(), KAttentionRelationStatus_ARS_N0RELATION_getInstance(), KAttentionRelationStatus_ARS_FOLLOWHIM_getInstance(), KAttentionRelationStatus_ARS_FOLLOWME_getInstance(), KAttentionRelationStatus_ARS_BUDDY_getInstance(), KAttentionRelationStatus_ARS_SPECIAL_getInstance(), KAttentionRelationStatus_ARS_CANCELBLOCK_getInstance()]); + } + function KAttentionRelationStatus$Companion$_anonymous__lgwxhu() { + return $serializer_getInstance_208(); + } + var KAttentionRelationStatus_ARS_NONE_instance; + var KAttentionRelationStatus_ARS_N0RELATION_instance; + var KAttentionRelationStatus_ARS_FOLLOWHIM_instance; + var KAttentionRelationStatus_ARS_FOLLOWME_instance; + var KAttentionRelationStatus_ARS_BUDDY_instance; + var KAttentionRelationStatus_ARS_SPECIAL_instance; + var KAttentionRelationStatus_ARS_CANCELBLOCK_instance; + var KAttentionRelationStatus_UNRECOGNIZED_instance; + var Companion_instance_221; + function Companion_getInstance_221() { + KAttentionRelationStatus_initEntries(); + if (Companion_instance_221 === VOID) + new Companion_221(); + return Companion_instance_221; + } + var $serializer_instance_208; + function $serializer_getInstance_208() { + KAttentionRelationStatus_initEntries(); + if ($serializer_instance_208 === VOID) + new $serializer_208(); + return $serializer_instance_208; + } + function values_46() { + return [KAttentionRelationStatus_ARS_NONE_getInstance(), KAttentionRelationStatus_ARS_N0RELATION_getInstance(), KAttentionRelationStatus_ARS_FOLLOWHIM_getInstance(), KAttentionRelationStatus_ARS_FOLLOWME_getInstance(), KAttentionRelationStatus_ARS_BUDDY_getInstance(), KAttentionRelationStatus_ARS_SPECIAL_getInstance(), KAttentionRelationStatus_ARS_CANCELBLOCK_getInstance(), KAttentionRelationStatus_UNRECOGNIZED_getInstance()]; + } + function valueOf_46(value) { + switch (value) { + case 'ARS_NONE': + return KAttentionRelationStatus_ARS_NONE_getInstance(); + case 'ARS_N0RELATION': + return KAttentionRelationStatus_ARS_N0RELATION_getInstance(); + case 'ARS_FOLLOWHIM': + return KAttentionRelationStatus_ARS_FOLLOWHIM_getInstance(); + case 'ARS_FOLLOWME': + return KAttentionRelationStatus_ARS_FOLLOWME_getInstance(); + case 'ARS_BUDDY': + return KAttentionRelationStatus_ARS_BUDDY_getInstance(); + case 'ARS_SPECIAL': + return KAttentionRelationStatus_ARS_SPECIAL_getInstance(); + case 'ARS_CANCELBLOCK': + return KAttentionRelationStatus_ARS_CANCELBLOCK_getInstance(); + case 'UNRECOGNIZED': + return KAttentionRelationStatus_UNRECOGNIZED_getInstance(); + default: + KAttentionRelationStatus_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KAttentionRelationStatus_entriesInitialized; + function KAttentionRelationStatus_initEntries() { + if (KAttentionRelationStatus_entriesInitialized) + return Unit_instance; + KAttentionRelationStatus_entriesInitialized = true; + KAttentionRelationStatus_ARS_NONE_instance = new KAttentionRelationStatus('ARS_NONE', 0, 0); + KAttentionRelationStatus_ARS_N0RELATION_instance = new KAttentionRelationStatus('ARS_N0RELATION', 1, 1); + KAttentionRelationStatus_ARS_FOLLOWHIM_instance = new KAttentionRelationStatus('ARS_FOLLOWHIM', 2, 2); + KAttentionRelationStatus_ARS_FOLLOWME_instance = new KAttentionRelationStatus('ARS_FOLLOWME', 3, 3); + KAttentionRelationStatus_ARS_BUDDY_instance = new KAttentionRelationStatus('ARS_BUDDY', 4, 4); + KAttentionRelationStatus_ARS_SPECIAL_instance = new KAttentionRelationStatus('ARS_SPECIAL', 5, 5); + KAttentionRelationStatus_ARS_CANCELBLOCK_instance = new KAttentionRelationStatus('ARS_CANCELBLOCK', 6, 6); + KAttentionRelationStatus_UNRECOGNIZED_instance = new KAttentionRelationStatus('UNRECOGNIZED', 7, -1); + Companion_getInstance_221(); + } + function _get_$cachedSerializer__te6jhj_47($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KModuleType$Companion$values$delegate$lambda() { + return listOf_0([KModuleType_UNKNOWN_getInstance(), KModuleType_OGV_INTRODUCTION_getInstance(), KModuleType_OGV_TITLE_getInstance(), KModuleType_UGC_HEADLINE_getInstance(), KModuleType_UGC_INTRODUCTION_getInstance(), KModuleType_KING_POSITION_getInstance(), KModuleType_MASTER_USER_LIST_getInstance(), KModuleType_STAFFS_getInstance(), KModuleType_HONOR_getInstance(), KModuleType_OWNER_getInstance(), KModuleType_PAGE_getInstance(), KModuleType_ACTIVITY_RESERVE_getInstance(), KModuleType_LIVE_ORDER_getInstance(), KModuleType_POSITIVE_getInstance(), KModuleType_SECTION_getInstance(), KModuleType_RELATE_getInstance(), KModuleType_PUGV_getInstance(), KModuleType_COLLECTION_CARD_getInstance(), KModuleType_ACTIVITY_getInstance(), KModuleType_CHARACTER_getInstance(), KModuleType_FOLLOW_LAYER_getInstance(), KModuleType_OGV_SEASONS_getInstance(), KModuleType_UGC_SEASON_getInstance(), KModuleType_OGV_LIVE_RESERVE_getInstance(), KModuleType_COMBINATION_EPISODE_getInstance(), KModuleType_SPONSOR_getInstance(), KModuleType_ACTIVITY_ENTRANCE_getInstance(), KModuleType_THEATRE_HOT_TOPIC_getInstance(), KModuleType_RELATED_RECOMMEND_getInstance(), KModuleType_PAY_BAR_getInstance(), KModuleType_BANNER_getInstance(), KModuleType_AUDIO_getInstance(), KModuleType_AGG_CARD_getInstance(), KModuleType_SINGLE_EP_getInstance(), KModuleType_LIKE_COMMENT_getInstance(), KModuleType_ATTENTION_RECOMMEND_getInstance(), KModuleType_COVENANTER_getInstance(), KModuleType_SPECIALTAG_getInstance(), KModuleType_UPDATA_getInstance(), KModuleType_PROFESSION_APPROVAL_getInstance(), KModuleType_PUGV_SHOPPING_NOTICE_getInstance(), KModuleType_PUGV_FAQ_getInstance(), KModuleType_PUGV_SEASON_DESCRIPTION_getInstance(), KModuleType_PUGV_SEASON_RECOMMEND_getInstance(), KModuleType_PUGV_SEASON_PUBLISHER_getInstance(), KModuleType_PUGV_SEASON_SELECTION_getInstance(), KModuleType_PUGV_SEASON_PRIMARY_INFO_getInstance(), KModuleType_PUGV_COOPERATION_APPLICATION_getInstance(), KModuleType_UP_VIDEO_TOOL_getInstance(), KModuleType_PUGV_ZONE_getInstance(), KModuleType_PUGV_SERIES_getInstance(), KModuleType_PUGV_PACKAGE_getInstance()]); + } + function KModuleType$Companion$_anonymous__lw1d6m() { + return $serializer_getInstance_209(); + } + var KModuleType_UNKNOWN_instance; + var KModuleType_OGV_INTRODUCTION_instance; + var KModuleType_OGV_TITLE_instance; + var KModuleType_UGC_HEADLINE_instance; + var KModuleType_UGC_INTRODUCTION_instance; + var KModuleType_KING_POSITION_instance; + var KModuleType_MASTER_USER_LIST_instance; + var KModuleType_STAFFS_instance; + var KModuleType_HONOR_instance; + var KModuleType_OWNER_instance; + var KModuleType_PAGE_instance; + var KModuleType_ACTIVITY_RESERVE_instance; + var KModuleType_LIVE_ORDER_instance; + var KModuleType_POSITIVE_instance; + var KModuleType_SECTION_instance; + var KModuleType_RELATE_instance; + var KModuleType_PUGV_instance; + var KModuleType_COLLECTION_CARD_instance; + var KModuleType_ACTIVITY_instance; + var KModuleType_CHARACTER_instance; + var KModuleType_FOLLOW_LAYER_instance; + var KModuleType_OGV_SEASONS_instance; + var KModuleType_UGC_SEASON_instance; + var KModuleType_OGV_LIVE_RESERVE_instance; + var KModuleType_COMBINATION_EPISODE_instance; + var KModuleType_SPONSOR_instance; + var KModuleType_ACTIVITY_ENTRANCE_instance; + var KModuleType_THEATRE_HOT_TOPIC_instance; + var KModuleType_RELATED_RECOMMEND_instance; + var KModuleType_PAY_BAR_instance; + var KModuleType_BANNER_instance; + var KModuleType_AUDIO_instance; + var KModuleType_AGG_CARD_instance; + var KModuleType_SINGLE_EP_instance; + var KModuleType_LIKE_COMMENT_instance; + var KModuleType_ATTENTION_RECOMMEND_instance; + var KModuleType_COVENANTER_instance; + var KModuleType_SPECIALTAG_instance; + var KModuleType_UPDATA_instance; + var KModuleType_PROFESSION_APPROVAL_instance; + var KModuleType_PUGV_SHOPPING_NOTICE_instance; + var KModuleType_PUGV_FAQ_instance; + var KModuleType_PUGV_SEASON_DESCRIPTION_instance; + var KModuleType_PUGV_SEASON_RECOMMEND_instance; + var KModuleType_PUGV_SEASON_PUBLISHER_instance; + var KModuleType_PUGV_SEASON_SELECTION_instance; + var KModuleType_PUGV_SEASON_PRIMARY_INFO_instance; + var KModuleType_PUGV_COOPERATION_APPLICATION_instance; + var KModuleType_UP_VIDEO_TOOL_instance; + var KModuleType_PUGV_ZONE_instance; + var KModuleType_PUGV_SERIES_instance; + var KModuleType_PUGV_PACKAGE_instance; + var KModuleType_UNRECOGNIZED_instance; + var Companion_instance_222; + function Companion_getInstance_222() { + KModuleType_initEntries(); + if (Companion_instance_222 === VOID) + new Companion_222(); + return Companion_instance_222; + } + var $serializer_instance_209; + function $serializer_getInstance_209() { + KModuleType_initEntries(); + if ($serializer_instance_209 === VOID) + new $serializer_209(); + return $serializer_instance_209; + } + function values_47() { + return [KModuleType_UNKNOWN_getInstance(), KModuleType_OGV_INTRODUCTION_getInstance(), KModuleType_OGV_TITLE_getInstance(), KModuleType_UGC_HEADLINE_getInstance(), KModuleType_UGC_INTRODUCTION_getInstance(), KModuleType_KING_POSITION_getInstance(), KModuleType_MASTER_USER_LIST_getInstance(), KModuleType_STAFFS_getInstance(), KModuleType_HONOR_getInstance(), KModuleType_OWNER_getInstance(), KModuleType_PAGE_getInstance(), KModuleType_ACTIVITY_RESERVE_getInstance(), KModuleType_LIVE_ORDER_getInstance(), KModuleType_POSITIVE_getInstance(), KModuleType_SECTION_getInstance(), KModuleType_RELATE_getInstance(), KModuleType_PUGV_getInstance(), KModuleType_COLLECTION_CARD_getInstance(), KModuleType_ACTIVITY_getInstance(), KModuleType_CHARACTER_getInstance(), KModuleType_FOLLOW_LAYER_getInstance(), KModuleType_OGV_SEASONS_getInstance(), KModuleType_UGC_SEASON_getInstance(), KModuleType_OGV_LIVE_RESERVE_getInstance(), KModuleType_COMBINATION_EPISODE_getInstance(), KModuleType_SPONSOR_getInstance(), KModuleType_ACTIVITY_ENTRANCE_getInstance(), KModuleType_THEATRE_HOT_TOPIC_getInstance(), KModuleType_RELATED_RECOMMEND_getInstance(), KModuleType_PAY_BAR_getInstance(), KModuleType_BANNER_getInstance(), KModuleType_AUDIO_getInstance(), KModuleType_AGG_CARD_getInstance(), KModuleType_SINGLE_EP_getInstance(), KModuleType_LIKE_COMMENT_getInstance(), KModuleType_ATTENTION_RECOMMEND_getInstance(), KModuleType_COVENANTER_getInstance(), KModuleType_SPECIALTAG_getInstance(), KModuleType_UPDATA_getInstance(), KModuleType_PROFESSION_APPROVAL_getInstance(), KModuleType_PUGV_SHOPPING_NOTICE_getInstance(), KModuleType_PUGV_FAQ_getInstance(), KModuleType_PUGV_SEASON_DESCRIPTION_getInstance(), KModuleType_PUGV_SEASON_RECOMMEND_getInstance(), KModuleType_PUGV_SEASON_PUBLISHER_getInstance(), KModuleType_PUGV_SEASON_SELECTION_getInstance(), KModuleType_PUGV_SEASON_PRIMARY_INFO_getInstance(), KModuleType_PUGV_COOPERATION_APPLICATION_getInstance(), KModuleType_UP_VIDEO_TOOL_getInstance(), KModuleType_PUGV_ZONE_getInstance(), KModuleType_PUGV_SERIES_getInstance(), KModuleType_PUGV_PACKAGE_getInstance(), KModuleType_UNRECOGNIZED_getInstance()]; + } + function valueOf_47(value) { + switch (value) { + case 'UNKNOWN': + return KModuleType_UNKNOWN_getInstance(); + case 'OGV_INTRODUCTION': + return KModuleType_OGV_INTRODUCTION_getInstance(); + case 'OGV_TITLE': + return KModuleType_OGV_TITLE_getInstance(); + case 'UGC_HEADLINE': + return KModuleType_UGC_HEADLINE_getInstance(); + case 'UGC_INTRODUCTION': + return KModuleType_UGC_INTRODUCTION_getInstance(); + case 'KING_POSITION': + return KModuleType_KING_POSITION_getInstance(); + case 'MASTER_USER_LIST': + return KModuleType_MASTER_USER_LIST_getInstance(); + case 'STAFFS': + return KModuleType_STAFFS_getInstance(); + case 'HONOR': + return KModuleType_HONOR_getInstance(); + case 'OWNER': + return KModuleType_OWNER_getInstance(); + case 'PAGE': + return KModuleType_PAGE_getInstance(); + case 'ACTIVITY_RESERVE': + return KModuleType_ACTIVITY_RESERVE_getInstance(); + case 'LIVE_ORDER': + return KModuleType_LIVE_ORDER_getInstance(); + case 'POSITIVE': + return KModuleType_POSITIVE_getInstance(); + case 'SECTION': + return KModuleType_SECTION_getInstance(); + case 'RELATE': + return KModuleType_RELATE_getInstance(); + case 'PUGV': + return KModuleType_PUGV_getInstance(); + case 'COLLECTION_CARD': + return KModuleType_COLLECTION_CARD_getInstance(); + case 'ACTIVITY': + return KModuleType_ACTIVITY_getInstance(); + case 'CHARACTER': + return KModuleType_CHARACTER_getInstance(); + case 'FOLLOW_LAYER': + return KModuleType_FOLLOW_LAYER_getInstance(); + case 'OGV_SEASONS': + return KModuleType_OGV_SEASONS_getInstance(); + case 'UGC_SEASON': + return KModuleType_UGC_SEASON_getInstance(); + case 'OGV_LIVE_RESERVE': + return KModuleType_OGV_LIVE_RESERVE_getInstance(); + case 'COMBINATION_EPISODE': + return KModuleType_COMBINATION_EPISODE_getInstance(); + case 'SPONSOR': + return KModuleType_SPONSOR_getInstance(); + case 'ACTIVITY_ENTRANCE': + return KModuleType_ACTIVITY_ENTRANCE_getInstance(); + case 'THEATRE_HOT_TOPIC': + return KModuleType_THEATRE_HOT_TOPIC_getInstance(); + case 'RELATED_RECOMMEND': + return KModuleType_RELATED_RECOMMEND_getInstance(); + case 'PAY_BAR': + return KModuleType_PAY_BAR_getInstance(); + case 'BANNER': + return KModuleType_BANNER_getInstance(); + case 'AUDIO': + return KModuleType_AUDIO_getInstance(); + case 'AGG_CARD': + return KModuleType_AGG_CARD_getInstance(); + case 'SINGLE_EP': + return KModuleType_SINGLE_EP_getInstance(); + case 'LIKE_COMMENT': + return KModuleType_LIKE_COMMENT_getInstance(); + case 'ATTENTION_RECOMMEND': + return KModuleType_ATTENTION_RECOMMEND_getInstance(); + case 'COVENANTER': + return KModuleType_COVENANTER_getInstance(); + case 'SPECIALTAG': + return KModuleType_SPECIALTAG_getInstance(); + case 'UPDATA': + return KModuleType_UPDATA_getInstance(); + case 'PROFESSION_APPROVAL': + return KModuleType_PROFESSION_APPROVAL_getInstance(); + case 'PUGV_SHOPPING_NOTICE': + return KModuleType_PUGV_SHOPPING_NOTICE_getInstance(); + case 'PUGV_FAQ': + return KModuleType_PUGV_FAQ_getInstance(); + case 'PUGV_SEASON_DESCRIPTION': + return KModuleType_PUGV_SEASON_DESCRIPTION_getInstance(); + case 'PUGV_SEASON_RECOMMEND': + return KModuleType_PUGV_SEASON_RECOMMEND_getInstance(); + case 'PUGV_SEASON_PUBLISHER': + return KModuleType_PUGV_SEASON_PUBLISHER_getInstance(); + case 'PUGV_SEASON_SELECTION': + return KModuleType_PUGV_SEASON_SELECTION_getInstance(); + case 'PUGV_SEASON_PRIMARY_INFO': + return KModuleType_PUGV_SEASON_PRIMARY_INFO_getInstance(); + case 'PUGV_COOPERATION_APPLICATION': + return KModuleType_PUGV_COOPERATION_APPLICATION_getInstance(); + case 'UP_VIDEO_TOOL': + return KModuleType_UP_VIDEO_TOOL_getInstance(); + case 'PUGV_ZONE': + return KModuleType_PUGV_ZONE_getInstance(); + case 'PUGV_SERIES': + return KModuleType_PUGV_SERIES_getInstance(); + case 'PUGV_PACKAGE': + return KModuleType_PUGV_PACKAGE_getInstance(); + case 'UNRECOGNIZED': + return KModuleType_UNRECOGNIZED_getInstance(); + default: + KModuleType_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KModuleType_entriesInitialized; + function KModuleType_initEntries() { + if (KModuleType_entriesInitialized) + return Unit_instance; + KModuleType_entriesInitialized = true; + KModuleType_UNKNOWN_instance = new KModuleType('UNKNOWN', 0, 0); + KModuleType_OGV_INTRODUCTION_instance = new KModuleType('OGV_INTRODUCTION', 1, 1); + KModuleType_OGV_TITLE_instance = new KModuleType('OGV_TITLE', 2, 2); + KModuleType_UGC_HEADLINE_instance = new KModuleType('UGC_HEADLINE', 3, 3); + KModuleType_UGC_INTRODUCTION_instance = new KModuleType('UGC_INTRODUCTION', 4, 4); + KModuleType_KING_POSITION_instance = new KModuleType('KING_POSITION', 5, 5); + KModuleType_MASTER_USER_LIST_instance = new KModuleType('MASTER_USER_LIST', 6, 6); + KModuleType_STAFFS_instance = new KModuleType('STAFFS', 7, 7); + KModuleType_HONOR_instance = new KModuleType('HONOR', 8, 8); + KModuleType_OWNER_instance = new KModuleType('OWNER', 9, 9); + KModuleType_PAGE_instance = new KModuleType('PAGE', 10, 10); + KModuleType_ACTIVITY_RESERVE_instance = new KModuleType('ACTIVITY_RESERVE', 11, 11); + KModuleType_LIVE_ORDER_instance = new KModuleType('LIVE_ORDER', 12, 12); + KModuleType_POSITIVE_instance = new KModuleType('POSITIVE', 13, 13); + KModuleType_SECTION_instance = new KModuleType('SECTION', 14, 14); + KModuleType_RELATE_instance = new KModuleType('RELATE', 15, 15); + KModuleType_PUGV_instance = new KModuleType('PUGV', 16, 16); + KModuleType_COLLECTION_CARD_instance = new KModuleType('COLLECTION_CARD', 17, 17); + KModuleType_ACTIVITY_instance = new KModuleType('ACTIVITY', 18, 18); + KModuleType_CHARACTER_instance = new KModuleType('CHARACTER', 19, 19); + KModuleType_FOLLOW_LAYER_instance = new KModuleType('FOLLOW_LAYER', 20, 20); + KModuleType_OGV_SEASONS_instance = new KModuleType('OGV_SEASONS', 21, 21); + KModuleType_UGC_SEASON_instance = new KModuleType('UGC_SEASON', 22, 22); + KModuleType_OGV_LIVE_RESERVE_instance = new KModuleType('OGV_LIVE_RESERVE', 23, 23); + KModuleType_COMBINATION_EPISODE_instance = new KModuleType('COMBINATION_EPISODE', 24, 24); + KModuleType_SPONSOR_instance = new KModuleType('SPONSOR', 25, 25); + KModuleType_ACTIVITY_ENTRANCE_instance = new KModuleType('ACTIVITY_ENTRANCE', 26, 26); + KModuleType_THEATRE_HOT_TOPIC_instance = new KModuleType('THEATRE_HOT_TOPIC', 27, 27); + KModuleType_RELATED_RECOMMEND_instance = new KModuleType('RELATED_RECOMMEND', 28, 28); + KModuleType_PAY_BAR_instance = new KModuleType('PAY_BAR', 29, 29); + KModuleType_BANNER_instance = new KModuleType('BANNER', 30, 30); + KModuleType_AUDIO_instance = new KModuleType('AUDIO', 31, 31); + KModuleType_AGG_CARD_instance = new KModuleType('AGG_CARD', 32, 32); + KModuleType_SINGLE_EP_instance = new KModuleType('SINGLE_EP', 33, 33); + KModuleType_LIKE_COMMENT_instance = new KModuleType('LIKE_COMMENT', 34, 34); + KModuleType_ATTENTION_RECOMMEND_instance = new KModuleType('ATTENTION_RECOMMEND', 35, 35); + KModuleType_COVENANTER_instance = new KModuleType('COVENANTER', 36, 36); + KModuleType_SPECIALTAG_instance = new KModuleType('SPECIALTAG', 37, 37); + KModuleType_UPDATA_instance = new KModuleType('UPDATA', 38, 38); + KModuleType_PROFESSION_APPROVAL_instance = new KModuleType('PROFESSION_APPROVAL', 39, 39); + KModuleType_PUGV_SHOPPING_NOTICE_instance = new KModuleType('PUGV_SHOPPING_NOTICE', 40, 40); + KModuleType_PUGV_FAQ_instance = new KModuleType('PUGV_FAQ', 41, 41); + KModuleType_PUGV_SEASON_DESCRIPTION_instance = new KModuleType('PUGV_SEASON_DESCRIPTION', 42, 42); + KModuleType_PUGV_SEASON_RECOMMEND_instance = new KModuleType('PUGV_SEASON_RECOMMEND', 43, 43); + KModuleType_PUGV_SEASON_PUBLISHER_instance = new KModuleType('PUGV_SEASON_PUBLISHER', 44, 44); + KModuleType_PUGV_SEASON_SELECTION_instance = new KModuleType('PUGV_SEASON_SELECTION', 45, 45); + KModuleType_PUGV_SEASON_PRIMARY_INFO_instance = new KModuleType('PUGV_SEASON_PRIMARY_INFO', 46, 46); + KModuleType_PUGV_COOPERATION_APPLICATION_instance = new KModuleType('PUGV_COOPERATION_APPLICATION', 47, 47); + KModuleType_UP_VIDEO_TOOL_instance = new KModuleType('UP_VIDEO_TOOL', 48, 48); + KModuleType_PUGV_ZONE_instance = new KModuleType('PUGV_ZONE', 49, 49); + KModuleType_PUGV_SERIES_instance = new KModuleType('PUGV_SERIES', 50, 50); + KModuleType_PUGV_PACKAGE_instance = new KModuleType('PUGV_PACKAGE', 51, 51); + KModuleType_UNRECOGNIZED_instance = new KModuleType('UNRECOGNIZED', 52, -1); + Companion_getInstance_222(); + } + function _get_$cachedSerializer__te6jhj_48($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KPugvSeasonPrimarySellPointType$Companion$values$delegate$lambda() { + return listOf_0([KPugvSeasonPrimarySellPointType_UNSPECIFIED_getInstance(), KPugvSeasonPrimarySellPointType_MANUAL_getInstance(), KPugvSeasonPrimarySellPointType_AUTO_getInstance()]); + } + function KPugvSeasonPrimarySellPointType$Companion$_anonymous__582ixj() { + return $serializer_getInstance_210(); + } + var KPugvSeasonPrimarySellPointType_UNSPECIFIED_instance; + var KPugvSeasonPrimarySellPointType_MANUAL_instance; + var KPugvSeasonPrimarySellPointType_AUTO_instance; + var KPugvSeasonPrimarySellPointType_UNRECOGNIZED_instance; + var Companion_instance_223; + function Companion_getInstance_223() { + KPugvSeasonPrimarySellPointType_initEntries(); + if (Companion_instance_223 === VOID) + new Companion_223(); + return Companion_instance_223; + } + var $serializer_instance_210; + function $serializer_getInstance_210() { + KPugvSeasonPrimarySellPointType_initEntries(); + if ($serializer_instance_210 === VOID) + new $serializer_210(); + return $serializer_instance_210; + } + function values_48() { + return [KPugvSeasonPrimarySellPointType_UNSPECIFIED_getInstance(), KPugvSeasonPrimarySellPointType_MANUAL_getInstance(), KPugvSeasonPrimarySellPointType_AUTO_getInstance(), KPugvSeasonPrimarySellPointType_UNRECOGNIZED_getInstance()]; + } + function valueOf_48(value) { + switch (value) { + case 'UNSPECIFIED': + return KPugvSeasonPrimarySellPointType_UNSPECIFIED_getInstance(); + case 'MANUAL': + return KPugvSeasonPrimarySellPointType_MANUAL_getInstance(); + case 'AUTO': + return KPugvSeasonPrimarySellPointType_AUTO_getInstance(); + case 'UNRECOGNIZED': + return KPugvSeasonPrimarySellPointType_UNRECOGNIZED_getInstance(); + default: + KPugvSeasonPrimarySellPointType_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KPugvSeasonPrimarySellPointType_entriesInitialized; + function KPugvSeasonPrimarySellPointType_initEntries() { + if (KPugvSeasonPrimarySellPointType_entriesInitialized) + return Unit_instance; + KPugvSeasonPrimarySellPointType_entriesInitialized = true; + KPugvSeasonPrimarySellPointType_UNSPECIFIED_instance = new KPugvSeasonPrimarySellPointType('UNSPECIFIED', 0, 0); + KPugvSeasonPrimarySellPointType_MANUAL_instance = new KPugvSeasonPrimarySellPointType('MANUAL', 1, 1); + KPugvSeasonPrimarySellPointType_AUTO_instance = new KPugvSeasonPrimarySellPointType('AUTO', 2, 2); + KPugvSeasonPrimarySellPointType_UNRECOGNIZED_instance = new KPugvSeasonPrimarySellPointType('UNRECOGNIZED', 3, -1); + Companion_getInstance_223(); + } + function _get_$cachedSerializer__te6jhj_49($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KPugvSeasonDescriptionType$Companion$values$delegate$lambda() { + return listOf_0([KPugvSeasonDescriptionType_UNSPECIFIED_getInstance(), KPugvSeasonDescriptionType_TEXT_getInstance(), KPugvSeasonDescriptionType_IMAGE_getInstance()]); + } + function KPugvSeasonDescriptionType$Companion$_anonymous__dee7ff() { + return $serializer_getInstance_211(); + } + var KPugvSeasonDescriptionType_UNSPECIFIED_instance; + var KPugvSeasonDescriptionType_TEXT_instance; + var KPugvSeasonDescriptionType_IMAGE_instance; + var KPugvSeasonDescriptionType_UNRECOGNIZED_instance; + var Companion_instance_224; + function Companion_getInstance_224() { + KPugvSeasonDescriptionType_initEntries(); + if (Companion_instance_224 === VOID) + new Companion_224(); + return Companion_instance_224; + } + var $serializer_instance_211; + function $serializer_getInstance_211() { + KPugvSeasonDescriptionType_initEntries(); + if ($serializer_instance_211 === VOID) + new $serializer_211(); + return $serializer_instance_211; + } + function values_49() { + return [KPugvSeasonDescriptionType_UNSPECIFIED_getInstance(), KPugvSeasonDescriptionType_TEXT_getInstance(), KPugvSeasonDescriptionType_IMAGE_getInstance(), KPugvSeasonDescriptionType_UNRECOGNIZED_getInstance()]; + } + function valueOf_49(value) { + switch (value) { + case 'UNSPECIFIED': + return KPugvSeasonDescriptionType_UNSPECIFIED_getInstance(); + case 'TEXT': + return KPugvSeasonDescriptionType_TEXT_getInstance(); + case 'IMAGE': + return KPugvSeasonDescriptionType_IMAGE_getInstance(); + case 'UNRECOGNIZED': + return KPugvSeasonDescriptionType_UNRECOGNIZED_getInstance(); + default: + KPugvSeasonDescriptionType_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KPugvSeasonDescriptionType_entriesInitialized; + function KPugvSeasonDescriptionType_initEntries() { + if (KPugvSeasonDescriptionType_entriesInitialized) + return Unit_instance; + KPugvSeasonDescriptionType_entriesInitialized = true; + KPugvSeasonDescriptionType_UNSPECIFIED_instance = new KPugvSeasonDescriptionType('UNSPECIFIED', 0, 0); + KPugvSeasonDescriptionType_TEXT_instance = new KPugvSeasonDescriptionType('TEXT', 1, 1); + KPugvSeasonDescriptionType_IMAGE_instance = new KPugvSeasonDescriptionType('IMAGE', 2, 2); + KPugvSeasonDescriptionType_UNRECOGNIZED_instance = new KPugvSeasonDescriptionType('UNRECOGNIZED', 3, -1); + Companion_getInstance_224(); + } + function _get_$cachedSerializer__te6jhj_50($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KPugvZoneItemType$Companion$values$delegate$lambda() { + return listOf_0([KPugvZoneItemType_UNSPECIFIED_getInstance(), KPugvZoneItemType_SEASON_getInstance(), KPugvZoneItemType_POSTGRADUATE_getInstance()]); + } + function KPugvZoneItemType$Companion$_anonymous__3nmwcp() { + return $serializer_getInstance_212(); + } + var KPugvZoneItemType_UNSPECIFIED_instance; + var KPugvZoneItemType_SEASON_instance; + var KPugvZoneItemType_POSTGRADUATE_instance; + var KPugvZoneItemType_UNRECOGNIZED_instance; + var Companion_instance_225; + function Companion_getInstance_225() { + KPugvZoneItemType_initEntries(); + if (Companion_instance_225 === VOID) + new Companion_225(); + return Companion_instance_225; + } + var $serializer_instance_212; + function $serializer_getInstance_212() { + KPugvZoneItemType_initEntries(); + if ($serializer_instance_212 === VOID) + new $serializer_212(); + return $serializer_instance_212; + } + function values_50() { + return [KPugvZoneItemType_UNSPECIFIED_getInstance(), KPugvZoneItemType_SEASON_getInstance(), KPugvZoneItemType_POSTGRADUATE_getInstance(), KPugvZoneItemType_UNRECOGNIZED_getInstance()]; + } + function valueOf_50(value) { + switch (value) { + case 'UNSPECIFIED': + return KPugvZoneItemType_UNSPECIFIED_getInstance(); + case 'SEASON': + return KPugvZoneItemType_SEASON_getInstance(); + case 'POSTGRADUATE': + return KPugvZoneItemType_POSTGRADUATE_getInstance(); + case 'UNRECOGNIZED': + return KPugvZoneItemType_UNRECOGNIZED_getInstance(); + default: + KPugvZoneItemType_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KPugvZoneItemType_entriesInitialized; + function KPugvZoneItemType_initEntries() { + if (KPugvZoneItemType_entriesInitialized) + return Unit_instance; + KPugvZoneItemType_entriesInitialized = true; + KPugvZoneItemType_UNSPECIFIED_instance = new KPugvZoneItemType('UNSPECIFIED', 0, 0); + KPugvZoneItemType_SEASON_instance = new KPugvZoneItemType('SEASON', 1, 1); + KPugvZoneItemType_POSTGRADUATE_instance = new KPugvZoneItemType('POSTGRADUATE', 2, 2); + KPugvZoneItemType_UNRECOGNIZED_instance = new KPugvZoneItemType('UNRECOGNIZED', 3, -1); + Companion_getInstance_225(); + } + function _get_$cachedSerializer__te6jhj_51($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KPugvSeriesItemState$Companion$values$delegate$lambda() { + return listOf_0([KPugvSeriesItemState_PUGV_SERIRES_ITEM_STATE_UNSPECIAL_getInstance(), KPugvSeriesItemState_PUGV_SERIRES_ITEM_STATE_NOT_START_getInstance(), KPugvSeriesItemState_PUGV_SERIRES_ITEM_STATE_START_getInstance(), KPugvSeriesItemState_PUGV_SERIRES_ITEM_STATE_END_getInstance()]); + } + function KPugvSeriesItemState$Companion$_anonymous__z86ybd() { + return $serializer_getInstance_213(); + } + var KPugvSeriesItemState_PUGV_SERIRES_ITEM_STATE_UNSPECIAL_instance; + var KPugvSeriesItemState_PUGV_SERIRES_ITEM_STATE_NOT_START_instance; + var KPugvSeriesItemState_PUGV_SERIRES_ITEM_STATE_START_instance; + var KPugvSeriesItemState_PUGV_SERIRES_ITEM_STATE_END_instance; + var KPugvSeriesItemState_UNRECOGNIZED_instance; + var Companion_instance_226; + function Companion_getInstance_226() { + KPugvSeriesItemState_initEntries(); + if (Companion_instance_226 === VOID) + new Companion_226(); + return Companion_instance_226; + } + var $serializer_instance_213; + function $serializer_getInstance_213() { + KPugvSeriesItemState_initEntries(); + if ($serializer_instance_213 === VOID) + new $serializer_213(); + return $serializer_instance_213; + } + function values_51() { + return [KPugvSeriesItemState_PUGV_SERIRES_ITEM_STATE_UNSPECIAL_getInstance(), KPugvSeriesItemState_PUGV_SERIRES_ITEM_STATE_NOT_START_getInstance(), KPugvSeriesItemState_PUGV_SERIRES_ITEM_STATE_START_getInstance(), KPugvSeriesItemState_PUGV_SERIRES_ITEM_STATE_END_getInstance(), KPugvSeriesItemState_UNRECOGNIZED_getInstance()]; + } + function valueOf_51(value) { + switch (value) { + case 'PUGV_SERIRES_ITEM_STATE_UNSPECIAL': + return KPugvSeriesItemState_PUGV_SERIRES_ITEM_STATE_UNSPECIAL_getInstance(); + case 'PUGV_SERIRES_ITEM_STATE_NOT_START': + return KPugvSeriesItemState_PUGV_SERIRES_ITEM_STATE_NOT_START_getInstance(); + case 'PUGV_SERIRES_ITEM_STATE_START': + return KPugvSeriesItemState_PUGV_SERIRES_ITEM_STATE_START_getInstance(); + case 'PUGV_SERIRES_ITEM_STATE_END': + return KPugvSeriesItemState_PUGV_SERIRES_ITEM_STATE_END_getInstance(); + case 'UNRECOGNIZED': + return KPugvSeriesItemState_UNRECOGNIZED_getInstance(); + default: + KPugvSeriesItemState_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KPugvSeriesItemState_entriesInitialized; + function KPugvSeriesItemState_initEntries() { + if (KPugvSeriesItemState_entriesInitialized) + return Unit_instance; + KPugvSeriesItemState_entriesInitialized = true; + KPugvSeriesItemState_PUGV_SERIRES_ITEM_STATE_UNSPECIAL_instance = new KPugvSeriesItemState('PUGV_SERIRES_ITEM_STATE_UNSPECIAL', 0, 0); + KPugvSeriesItemState_PUGV_SERIRES_ITEM_STATE_NOT_START_instance = new KPugvSeriesItemState('PUGV_SERIRES_ITEM_STATE_NOT_START', 1, 1); + KPugvSeriesItemState_PUGV_SERIRES_ITEM_STATE_START_instance = new KPugvSeriesItemState('PUGV_SERIRES_ITEM_STATE_START', 2, 2); + KPugvSeriesItemState_PUGV_SERIRES_ITEM_STATE_END_instance = new KPugvSeriesItemState('PUGV_SERIRES_ITEM_STATE_END', 3, 3); + KPugvSeriesItemState_UNRECOGNIZED_instance = new KPugvSeriesItemState('UNRECOGNIZED', 4, -1); + Companion_getInstance_226(); + } + function _get_$cachedSerializer__te6jhj_52($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KHonorType$Companion$values$delegate$lambda() { + return listOf_0([KHonorType_HONOR_NONE_getInstance(), KHonorType_PLAYLET_getInstance(), KHonorType_ARGUE_getInstance(), KHonorType_NOTICE_getInstance(), KHonorType_GUIDANCE_getInstance(), KHonorType_HONOR_BILI_RANK_getInstance(), KHonorType_HONOR_WEEKLY_RANK_getInstance(), KHonorType_HONOR_DAILY_RANK_getInstance(), KHonorType_HONOR_CHANNEL_getInstance(), KHonorType_HONOR_MUSIC_getInstance(), KHonorType_HONOR_REPLY_getInstance(), KHonorType_HONOR_PROFESSION_getInstance()]); + } + function KHonorType$Companion$_anonymous__eo1wzu() { + return $serializer_getInstance_214(); + } + var KHonorType_HONOR_NONE_instance; + var KHonorType_PLAYLET_instance; + var KHonorType_ARGUE_instance; + var KHonorType_NOTICE_instance; + var KHonorType_GUIDANCE_instance; + var KHonorType_HONOR_BILI_RANK_instance; + var KHonorType_HONOR_WEEKLY_RANK_instance; + var KHonorType_HONOR_DAILY_RANK_instance; + var KHonorType_HONOR_CHANNEL_instance; + var KHonorType_HONOR_MUSIC_instance; + var KHonorType_HONOR_REPLY_instance; + var KHonorType_HONOR_PROFESSION_instance; + var KHonorType_UNRECOGNIZED_instance; + var Companion_instance_227; + function Companion_getInstance_227() { + KHonorType_initEntries(); + if (Companion_instance_227 === VOID) + new Companion_227(); + return Companion_instance_227; + } + var $serializer_instance_214; + function $serializer_getInstance_214() { + KHonorType_initEntries(); + if ($serializer_instance_214 === VOID) + new $serializer_214(); + return $serializer_instance_214; + } + function values_52() { + return [KHonorType_HONOR_NONE_getInstance(), KHonorType_PLAYLET_getInstance(), KHonorType_ARGUE_getInstance(), KHonorType_NOTICE_getInstance(), KHonorType_GUIDANCE_getInstance(), KHonorType_HONOR_BILI_RANK_getInstance(), KHonorType_HONOR_WEEKLY_RANK_getInstance(), KHonorType_HONOR_DAILY_RANK_getInstance(), KHonorType_HONOR_CHANNEL_getInstance(), KHonorType_HONOR_MUSIC_getInstance(), KHonorType_HONOR_REPLY_getInstance(), KHonorType_HONOR_PROFESSION_getInstance(), KHonorType_UNRECOGNIZED_getInstance()]; + } + function valueOf_52(value) { + switch (value) { + case 'HONOR_NONE': + return KHonorType_HONOR_NONE_getInstance(); + case 'PLAYLET': + return KHonorType_PLAYLET_getInstance(); + case 'ARGUE': + return KHonorType_ARGUE_getInstance(); + case 'NOTICE': + return KHonorType_NOTICE_getInstance(); + case 'GUIDANCE': + return KHonorType_GUIDANCE_getInstance(); + case 'HONOR_BILI_RANK': + return KHonorType_HONOR_BILI_RANK_getInstance(); + case 'HONOR_WEEKLY_RANK': + return KHonorType_HONOR_WEEKLY_RANK_getInstance(); + case 'HONOR_DAILY_RANK': + return KHonorType_HONOR_DAILY_RANK_getInstance(); + case 'HONOR_CHANNEL': + return KHonorType_HONOR_CHANNEL_getInstance(); + case 'HONOR_MUSIC': + return KHonorType_HONOR_MUSIC_getInstance(); + case 'HONOR_REPLY': + return KHonorType_HONOR_REPLY_getInstance(); + case 'HONOR_PROFESSION': + return KHonorType_HONOR_PROFESSION_getInstance(); + case 'UNRECOGNIZED': + return KHonorType_UNRECOGNIZED_getInstance(); + default: + KHonorType_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KHonorType_entriesInitialized; + function KHonorType_initEntries() { + if (KHonorType_entriesInitialized) + return Unit_instance; + KHonorType_entriesInitialized = true; + KHonorType_HONOR_NONE_instance = new KHonorType('HONOR_NONE', 0, 0); + KHonorType_PLAYLET_instance = new KHonorType('PLAYLET', 1, 1); + KHonorType_ARGUE_instance = new KHonorType('ARGUE', 2, 2); + KHonorType_NOTICE_instance = new KHonorType('NOTICE', 3, 3); + KHonorType_GUIDANCE_instance = new KHonorType('GUIDANCE', 4, 4); + KHonorType_HONOR_BILI_RANK_instance = new KHonorType('HONOR_BILI_RANK', 5, 5); + KHonorType_HONOR_WEEKLY_RANK_instance = new KHonorType('HONOR_WEEKLY_RANK', 6, 6); + KHonorType_HONOR_DAILY_RANK_instance = new KHonorType('HONOR_DAILY_RANK', 7, 7); + KHonorType_HONOR_CHANNEL_instance = new KHonorType('HONOR_CHANNEL', 8, 8); + KHonorType_HONOR_MUSIC_instance = new KHonorType('HONOR_MUSIC', 9, 9); + KHonorType_HONOR_REPLY_instance = new KHonorType('HONOR_REPLY', 10, 10); + KHonorType_HONOR_PROFESSION_instance = new KHonorType('HONOR_PROFESSION', 11, 11); + KHonorType_UNRECOGNIZED_instance = new KHonorType('UNRECOGNIZED', 12, -1); + Companion_getInstance_227(); + } + function _get_$cachedSerializer__te6jhj_53($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KDescType$Companion$values$delegate$lambda() { + return listOf_0([KDescType_UNKNOWN_getInstance(), KDescType_TEXT_getInstance(), KDescType_AT_getInstance()]); + } + function KDescType$Companion$_anonymous__rshgh3() { + return $serializer_getInstance_215(); + } + var KDescType_UNKNOWN_instance; + var KDescType_TEXT_instance; + var KDescType_AT_instance; + var KDescType_UNRECOGNIZED_instance; + var Companion_instance_228; + function Companion_getInstance_228() { + KDescType_initEntries(); + if (Companion_instance_228 === VOID) + new Companion_228(); + return Companion_instance_228; + } + var $serializer_instance_215; + function $serializer_getInstance_215() { + KDescType_initEntries(); + if ($serializer_instance_215 === VOID) + new $serializer_215(); + return $serializer_instance_215; + } + function values_53() { + return [KDescType_UNKNOWN_getInstance(), KDescType_TEXT_getInstance(), KDescType_AT_getInstance(), KDescType_UNRECOGNIZED_getInstance()]; + } + function valueOf_53(value) { + switch (value) { + case 'UNKNOWN': + return KDescType_UNKNOWN_getInstance(); + case 'TEXT': + return KDescType_TEXT_getInstance(); + case 'AT': + return KDescType_AT_getInstance(); + case 'UNRECOGNIZED': + return KDescType_UNRECOGNIZED_getInstance(); + default: + KDescType_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KDescType_entriesInitialized; + function KDescType_initEntries() { + if (KDescType_entriesInitialized) + return Unit_instance; + KDescType_entriesInitialized = true; + KDescType_UNKNOWN_instance = new KDescType('UNKNOWN', 0, 0); + KDescType_TEXT_instance = new KDescType('TEXT', 1, 1); + KDescType_AT_instance = new KDescType('AT', 2, 2); + KDescType_UNRECOGNIZED_instance = new KDescType('UNRECOGNIZED', 3, -1); + Companion_getInstance_228(); + } + function _get_$cachedSerializer__te6jhj_54($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KKingPositionType$Companion$values$delegate$lambda() { + return listOf_0([KKingPositionType_KING_POS_UNSPECIFIED_getInstance(), KKingPositionType_LIKE_getInstance(), KKingPositionType_DISLIKE_getInstance(), KKingPositionType_COIN_getInstance(), KKingPositionType_FAV_getInstance(), KKingPositionType_SHARE_getInstance(), KKingPositionType_CACHE_getInstance(), KKingPositionType_DANMAKU_getInstance()]); + } + function KKingPositionType$Companion$_anonymous__3kofyi() { + return $serializer_getInstance_216(); + } + var KKingPositionType_KING_POS_UNSPECIFIED_instance; + var KKingPositionType_LIKE_instance; + var KKingPositionType_DISLIKE_instance; + var KKingPositionType_COIN_instance; + var KKingPositionType_FAV_instance; + var KKingPositionType_SHARE_instance; + var KKingPositionType_CACHE_instance; + var KKingPositionType_DANMAKU_instance; + var KKingPositionType_UNRECOGNIZED_instance; + var Companion_instance_229; + function Companion_getInstance_229() { + KKingPositionType_initEntries(); + if (Companion_instance_229 === VOID) + new Companion_229(); + return Companion_instance_229; + } + var $serializer_instance_216; + function $serializer_getInstance_216() { + KKingPositionType_initEntries(); + if ($serializer_instance_216 === VOID) + new $serializer_216(); + return $serializer_instance_216; + } + function values_54() { + return [KKingPositionType_KING_POS_UNSPECIFIED_getInstance(), KKingPositionType_LIKE_getInstance(), KKingPositionType_DISLIKE_getInstance(), KKingPositionType_COIN_getInstance(), KKingPositionType_FAV_getInstance(), KKingPositionType_SHARE_getInstance(), KKingPositionType_CACHE_getInstance(), KKingPositionType_DANMAKU_getInstance(), KKingPositionType_UNRECOGNIZED_getInstance()]; + } + function valueOf_54(value) { + switch (value) { + case 'KING_POS_UNSPECIFIED': + return KKingPositionType_KING_POS_UNSPECIFIED_getInstance(); + case 'LIKE': + return KKingPositionType_LIKE_getInstance(); + case 'DISLIKE': + return KKingPositionType_DISLIKE_getInstance(); + case 'COIN': + return KKingPositionType_COIN_getInstance(); + case 'FAV': + return KKingPositionType_FAV_getInstance(); + case 'SHARE': + return KKingPositionType_SHARE_getInstance(); + case 'CACHE': + return KKingPositionType_CACHE_getInstance(); + case 'DANMAKU': + return KKingPositionType_DANMAKU_getInstance(); + case 'UNRECOGNIZED': + return KKingPositionType_UNRECOGNIZED_getInstance(); + default: + KKingPositionType_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KKingPositionType_entriesInitialized; + function KKingPositionType_initEntries() { + if (KKingPositionType_entriesInitialized) + return Unit_instance; + KKingPositionType_entriesInitialized = true; + KKingPositionType_KING_POS_UNSPECIFIED_instance = new KKingPositionType('KING_POS_UNSPECIFIED', 0, 0); + KKingPositionType_LIKE_instance = new KKingPositionType('LIKE', 1, 1); + KKingPositionType_DISLIKE_instance = new KKingPositionType('DISLIKE', 2, 2); + KKingPositionType_COIN_instance = new KKingPositionType('COIN', 3, 3); + KKingPositionType_FAV_instance = new KKingPositionType('FAV', 4, 4); + KKingPositionType_SHARE_instance = new KKingPositionType('SHARE', 5, 5); + KKingPositionType_CACHE_instance = new KKingPositionType('CACHE', 6, 6); + KKingPositionType_DANMAKU_instance = new KKingPositionType('DANMAKU', 7, 7); + KKingPositionType_UNRECOGNIZED_instance = new KKingPositionType('UNRECOGNIZED', 8, -1); + Companion_getInstance_229(); + } + function _get_$cachedSerializer__te6jhj_55($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KReserveBizType$Companion$values$delegate$lambda() { + return listOf_0([KReserveBizType_BIZ_TYPE_NONE_getInstance(), KReserveBizType_BIZ_TYPE_RESERVE_ACTIVITY_getInstance(), KReserveBizType_BIZ_TYPE_FAV_SEASON_getInstance()]); + } + function KReserveBizType$Companion$_anonymous__szzu31() { + return $serializer_getInstance_217(); + } + var KReserveBizType_BIZ_TYPE_NONE_instance; + var KReserveBizType_BIZ_TYPE_RESERVE_ACTIVITY_instance; + var KReserveBizType_BIZ_TYPE_FAV_SEASON_instance; + var KReserveBizType_UNRECOGNIZED_instance; + var Companion_instance_230; + function Companion_getInstance_230() { + KReserveBizType_initEntries(); + if (Companion_instance_230 === VOID) + new Companion_230(); + return Companion_instance_230; + } + var $serializer_instance_217; + function $serializer_getInstance_217() { + KReserveBizType_initEntries(); + if ($serializer_instance_217 === VOID) + new $serializer_217(); + return $serializer_instance_217; + } + function values_55() { + return [KReserveBizType_BIZ_TYPE_NONE_getInstance(), KReserveBizType_BIZ_TYPE_RESERVE_ACTIVITY_getInstance(), KReserveBizType_BIZ_TYPE_FAV_SEASON_getInstance(), KReserveBizType_UNRECOGNIZED_getInstance()]; + } + function valueOf_55(value) { + switch (value) { + case 'BIZ_TYPE_NONE': + return KReserveBizType_BIZ_TYPE_NONE_getInstance(); + case 'BIZ_TYPE_RESERVE_ACTIVITY': + return KReserveBizType_BIZ_TYPE_RESERVE_ACTIVITY_getInstance(); + case 'BIZ_TYPE_FAV_SEASON': + return KReserveBizType_BIZ_TYPE_FAV_SEASON_getInstance(); + case 'UNRECOGNIZED': + return KReserveBizType_UNRECOGNIZED_getInstance(); + default: + KReserveBizType_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KReserveBizType_entriesInitialized; + function KReserveBizType_initEntries() { + if (KReserveBizType_entriesInitialized) + return Unit_instance; + KReserveBizType_entriesInitialized = true; + KReserveBizType_BIZ_TYPE_NONE_instance = new KReserveBizType('BIZ_TYPE_NONE', 0, 0); + KReserveBizType_BIZ_TYPE_RESERVE_ACTIVITY_instance = new KReserveBizType('BIZ_TYPE_RESERVE_ACTIVITY', 1, 1); + KReserveBizType_BIZ_TYPE_FAV_SEASON_instance = new KReserveBizType('BIZ_TYPE_FAV_SEASON', 2, 2); + KReserveBizType_UNRECOGNIZED_instance = new KReserveBizType('UNRECOGNIZED', 3, -1); + Companion_getInstance_230(); + } + function KModule$Companion$dataValues$delegate$lambda() { + return listOf_0([KOgvIntroduction_getInstance(), KUgcIntroduction_getInstance(), KKingPosition_getInstance(), KHeadLine_getInstance(), KOgvTitle_getInstance(), KHonor_getInstance(), KList__getInstance(), KStaffs_getInstance(), KActivityReserve_getInstance(), KLiveOrder_getInstance(), KSectionData_getInstance(), KDeliveryData_getInstance(), KFollowLayer_getInstance(), KOgvSeasons_getInstance(), KUgcSeason_getInstance(), KOgvLiveReserve_getInstance(), KCombinationEp_getInstance(), KSponsor_getInstance(), KActivityEntranceModule_getInstance(), KSerialSeason_getInstance(), KRelates_getInstance(), KBanner_getInstance_0(), KAudio_getInstance(), KLikeComment_getInstance(), KAttentionRecommend_getInstance(), KCovenanter_getInstance(), KSpecialTag_getInstance(), KUpDataModule_getInstance(), KProfessionApproval_getInstance(), KPugvShoppingNotice_getInstance(), KPugvFaq_getInstance(), KPugvSeasonDescription_getInstance(), KPugvSeasonRecommend_getInstance(), KPugvSeasonPublisher_getInstance(), KPugvSeasonSelection_getInstance(), KPugvSeasonPrimaryInfo_getInstance(), KPugvCooperationApplication_getInstance(), KUpVideoTool_getInstance(), KPugvZone_getInstance(), KPugvSeries_getInstance(), KPugvPackage_getInstance()]); + } + function _get_dataNumber__hqvc14_0($this) { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = $this.dataNumber$delegate_1; + var thisRef = $this; + var property = dataNumber$factory_0(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + var KOgvIntroduction_instance; + function KOgvIntroduction_getInstance() { + if (KOgvIntroduction_instance === VOID) + new KOgvIntroduction(); + return KOgvIntroduction_instance; + } + var KUgcIntroduction_instance; + function KUgcIntroduction_getInstance() { + if (KUgcIntroduction_instance === VOID) + new KUgcIntroduction(); + return KUgcIntroduction_instance; + } + var KKingPosition_instance; + function KKingPosition_getInstance() { + if (KKingPosition_instance === VOID) + new KKingPosition(); + return KKingPosition_instance; + } + var KHeadLine_instance; + function KHeadLine_getInstance() { + if (KHeadLine_instance === VOID) + new KHeadLine(); + return KHeadLine_instance; + } + var KOgvTitle_instance; + function KOgvTitle_getInstance() { + if (KOgvTitle_instance === VOID) + new KOgvTitle(); + return KOgvTitle_instance; + } + var KHonor_instance; + function KHonor_getInstance() { + if (KHonor_instance === VOID) + new KHonor(); + return KHonor_instance; + } + var KList__instance; + function KList__getInstance() { + if (KList__instance === VOID) + new KList_(); + return KList__instance; + } + var KStaffs_instance; + function KStaffs_getInstance() { + if (KStaffs_instance === VOID) + new KStaffs(); + return KStaffs_instance; + } + var KActivityReserve_instance; + function KActivityReserve_getInstance() { + if (KActivityReserve_instance === VOID) + new KActivityReserve(); + return KActivityReserve_instance; + } + var KLiveOrder_instance; + function KLiveOrder_getInstance() { + if (KLiveOrder_instance === VOID) + new KLiveOrder(); + return KLiveOrder_instance; + } + var KSectionData_instance; + function KSectionData_getInstance() { + if (KSectionData_instance === VOID) + new KSectionData(); + return KSectionData_instance; + } + var KDeliveryData_instance; + function KDeliveryData_getInstance() { + if (KDeliveryData_instance === VOID) + new KDeliveryData(); + return KDeliveryData_instance; + } + var KFollowLayer_instance; + function KFollowLayer_getInstance() { + if (KFollowLayer_instance === VOID) + new KFollowLayer(); + return KFollowLayer_instance; + } + var KOgvSeasons_instance; + function KOgvSeasons_getInstance() { + if (KOgvSeasons_instance === VOID) + new KOgvSeasons(); + return KOgvSeasons_instance; + } + var KUgcSeason_instance; + function KUgcSeason_getInstance() { + if (KUgcSeason_instance === VOID) + new KUgcSeason(); + return KUgcSeason_instance; + } + var KOgvLiveReserve_instance; + function KOgvLiveReserve_getInstance() { + if (KOgvLiveReserve_instance === VOID) + new KOgvLiveReserve(); + return KOgvLiveReserve_instance; + } + var KCombinationEp_instance; + function KCombinationEp_getInstance() { + if (KCombinationEp_instance === VOID) + new KCombinationEp(); + return KCombinationEp_instance; + } + var KSponsor_instance; + function KSponsor_getInstance() { + if (KSponsor_instance === VOID) + new KSponsor(); + return KSponsor_instance; + } + var KActivityEntranceModule_instance; + function KActivityEntranceModule_getInstance() { + if (KActivityEntranceModule_instance === VOID) + new KActivityEntranceModule(); + return KActivityEntranceModule_instance; + } + var KSerialSeason_instance; + function KSerialSeason_getInstance() { + if (KSerialSeason_instance === VOID) + new KSerialSeason(); + return KSerialSeason_instance; + } + var KRelates_instance; + function KRelates_getInstance() { + if (KRelates_instance === VOID) + new KRelates(); + return KRelates_instance; + } + var KBanner_instance_0; + function KBanner_getInstance_0() { + if (KBanner_instance_0 === VOID) + new KBanner_1(); + return KBanner_instance_0; + } + var KAudio_instance; + function KAudio_getInstance() { + if (KAudio_instance === VOID) + new KAudio(); + return KAudio_instance; + } + var KLikeComment_instance; + function KLikeComment_getInstance() { + if (KLikeComment_instance === VOID) + new KLikeComment(); + return KLikeComment_instance; + } + var KAttentionRecommend_instance; + function KAttentionRecommend_getInstance() { + if (KAttentionRecommend_instance === VOID) + new KAttentionRecommend(); + return KAttentionRecommend_instance; + } + var KCovenanter_instance; + function KCovenanter_getInstance() { + if (KCovenanter_instance === VOID) + new KCovenanter(); + return KCovenanter_instance; + } + var KSpecialTag_instance; + function KSpecialTag_getInstance() { + if (KSpecialTag_instance === VOID) + new KSpecialTag(); + return KSpecialTag_instance; + } + var KUpDataModule_instance; + function KUpDataModule_getInstance() { + if (KUpDataModule_instance === VOID) + new KUpDataModule(); + return KUpDataModule_instance; + } + var KProfessionApproval_instance; + function KProfessionApproval_getInstance() { + if (KProfessionApproval_instance === VOID) + new KProfessionApproval(); + return KProfessionApproval_instance; + } + var KPugvShoppingNotice_instance; + function KPugvShoppingNotice_getInstance() { + if (KPugvShoppingNotice_instance === VOID) + new KPugvShoppingNotice(); + return KPugvShoppingNotice_instance; + } + var KPugvFaq_instance; + function KPugvFaq_getInstance() { + if (KPugvFaq_instance === VOID) + new KPugvFaq(); + return KPugvFaq_instance; + } + var KPugvSeasonDescription_instance; + function KPugvSeasonDescription_getInstance() { + if (KPugvSeasonDescription_instance === VOID) + new KPugvSeasonDescription(); + return KPugvSeasonDescription_instance; + } + var KPugvSeasonRecommend_instance; + function KPugvSeasonRecommend_getInstance() { + if (KPugvSeasonRecommend_instance === VOID) + new KPugvSeasonRecommend(); + return KPugvSeasonRecommend_instance; + } + var KPugvSeasonPublisher_instance; + function KPugvSeasonPublisher_getInstance() { + if (KPugvSeasonPublisher_instance === VOID) + new KPugvSeasonPublisher(); + return KPugvSeasonPublisher_instance; + } + var KPugvSeasonSelection_instance; + function KPugvSeasonSelection_getInstance() { + if (KPugvSeasonSelection_instance === VOID) + new KPugvSeasonSelection(); + return KPugvSeasonSelection_instance; + } + var KPugvSeasonPrimaryInfo_instance; + function KPugvSeasonPrimaryInfo_getInstance() { + if (KPugvSeasonPrimaryInfo_instance === VOID) + new KPugvSeasonPrimaryInfo(); + return KPugvSeasonPrimaryInfo_instance; + } + var KPugvCooperationApplication_instance; + function KPugvCooperationApplication_getInstance() { + if (KPugvCooperationApplication_instance === VOID) + new KPugvCooperationApplication(); + return KPugvCooperationApplication_instance; + } + var KUpVideoTool_instance; + function KUpVideoTool_getInstance() { + if (KUpVideoTool_instance === VOID) + new KUpVideoTool(); + return KUpVideoTool_instance; + } + var KPugvZone_instance; + function KPugvZone_getInstance() { + if (KPugvZone_instance === VOID) + new KPugvZone(); + return KPugvZone_instance; + } + var KPugvSeries_instance; + function KPugvSeries_getInstance() { + if (KPugvSeries_instance === VOID) + new KPugvSeries(); + return KPugvSeries_instance; + } + var KPugvPackage_instance; + function KPugvPackage_getInstance() { + if (KPugvPackage_instance === VOID) + new KPugvPackage(); + return KPugvPackage_instance; + } + var Companion_instance_231; + function Companion_getInstance_231() { + if (Companion_instance_231 === VOID) + new Companion_231(); + return Companion_instance_231; + } + var $serializer_instance_218; + function $serializer_getInstance_218() { + if ($serializer_instance_218 === VOID) + new $serializer_218(); + return $serializer_instance_218; + } + function KModule$dataNumber$delegate$lambda(this$0) { + return function () { + var tmp; + if (!(this$0.ogvIntroduction_1 == null)) { + tmp = 0; + } else if (!(this$0.ugcIntroduction_1 == null)) { + tmp = 1; + } else if (!(this$0.kingPosition_1 == null)) { + tmp = 2; + } else if (!(this$0.headLine_1 == null)) { + tmp = 3; + } else if (!(this$0.ogvTitle_1 == null)) { + tmp = 4; + } else if (!(this$0.honor_1 == null)) { + tmp = 5; + } else if (!(this$0.list_1 == null)) { + tmp = 6; + } else if (!(this$0.staffs_1 == null)) { + tmp = 7; + } else if (!(this$0.activityReserve_1 == null)) { + tmp = 8; + } else if (!(this$0.liveOrder_1 == null)) { + tmp = 9; + } else if (!(this$0.sectionData_1 == null)) { + tmp = 10; + } else if (!(this$0.deliveryData_1 == null)) { + tmp = 11; + } else if (!(this$0.followLayer_1 == null)) { + tmp = 12; + } else if (!(this$0.ogvSeasons_1 == null)) { + tmp = 13; + } else if (!(this$0.ugcSeason_1 == null)) { + tmp = 14; + } else if (!(this$0.ogvLiveReserve_1 == null)) { + tmp = 15; + } else if (!(this$0.combinationEp_1 == null)) { + tmp = 16; + } else if (!(this$0.sponsor_1 == null)) { + tmp = 17; + } else if (!(this$0.activityEntranceModule_1 == null)) { + tmp = 18; + } else if (!(this$0.serialSeason_1 == null)) { + tmp = 19; + } else if (!(this$0.relates_1 == null)) { + tmp = 20; + } else if (!(this$0.banner_1 == null)) { + tmp = 21; + } else if (!(this$0.audio_1 == null)) { + tmp = 22; + } else if (!(this$0.likeComment_1 == null)) { + tmp = 23; + } else if (!(this$0.attentionRecommend_1 == null)) { + tmp = 24; + } else if (!(this$0.covenanter_1 == null)) { + tmp = 25; + } else if (!(this$0.specialTag_1 == null)) { + tmp = 26; + } else if (!(this$0.upDataModule_1 == null)) { + tmp = 27; + } else if (!(this$0.professionApproval_1 == null)) { + tmp = 28; + } else if (!(this$0.pugvShoppingNotice_1 == null)) { + tmp = 29; + } else if (!(this$0.pugvFaq_1 == null)) { + tmp = 30; + } else if (!(this$0.pugvSeasonDescription_1 == null)) { + tmp = 31; + } else if (!(this$0.pugvSeasonRecommend_1 == null)) { + tmp = 32; + } else if (!(this$0.pugvSeasonPublisher_1 == null)) { + tmp = 33; + } else if (!(this$0.pugvSeasonSelection_1 == null)) { + tmp = 34; + } else if (!(this$0.pugvSeasonPrimaryInfo_1 == null)) { + tmp = 35; + } else if (!(this$0.pugvCooperationApplication_1 == null)) { + tmp = 36; + } else if (!(this$0.upVideoTool_1 == null)) { + tmp = 37; + } else if (!(this$0.pugvZone_1 == null)) { + tmp = 38; + } else if (!(this$0.pugvSeries_1 == null)) { + tmp = 39; + } else if (!(this$0.pugvPackage_1 == null)) { + tmp = 40; + } else { + tmp = -1; + } + return tmp; + }; + } + function KModule$_init_$lambda_mh1hbg(this$0) { + return function () { + var tmp; + if (!(this$0.ogvIntroduction_1 == null)) { + tmp = 0; + } else if (!(this$0.ugcIntroduction_1 == null)) { + tmp = 1; + } else if (!(this$0.kingPosition_1 == null)) { + tmp = 2; + } else if (!(this$0.headLine_1 == null)) { + tmp = 3; + } else if (!(this$0.ogvTitle_1 == null)) { + tmp = 4; + } else if (!(this$0.honor_1 == null)) { + tmp = 5; + } else if (!(this$0.list_1 == null)) { + tmp = 6; + } else if (!(this$0.staffs_1 == null)) { + tmp = 7; + } else if (!(this$0.activityReserve_1 == null)) { + tmp = 8; + } else if (!(this$0.liveOrder_1 == null)) { + tmp = 9; + } else if (!(this$0.sectionData_1 == null)) { + tmp = 10; + } else if (!(this$0.deliveryData_1 == null)) { + tmp = 11; + } else if (!(this$0.followLayer_1 == null)) { + tmp = 12; + } else if (!(this$0.ogvSeasons_1 == null)) { + tmp = 13; + } else if (!(this$0.ugcSeason_1 == null)) { + tmp = 14; + } else if (!(this$0.ogvLiveReserve_1 == null)) { + tmp = 15; + } else if (!(this$0.combinationEp_1 == null)) { + tmp = 16; + } else if (!(this$0.sponsor_1 == null)) { + tmp = 17; + } else if (!(this$0.activityEntranceModule_1 == null)) { + tmp = 18; + } else if (!(this$0.serialSeason_1 == null)) { + tmp = 19; + } else if (!(this$0.relates_1 == null)) { + tmp = 20; + } else if (!(this$0.banner_1 == null)) { + tmp = 21; + } else if (!(this$0.audio_1 == null)) { + tmp = 22; + } else if (!(this$0.likeComment_1 == null)) { + tmp = 23; + } else if (!(this$0.attentionRecommend_1 == null)) { + tmp = 24; + } else if (!(this$0.covenanter_1 == null)) { + tmp = 25; + } else if (!(this$0.specialTag_1 == null)) { + tmp = 26; + } else if (!(this$0.upDataModule_1 == null)) { + tmp = 27; + } else if (!(this$0.professionApproval_1 == null)) { + tmp = 28; + } else if (!(this$0.pugvShoppingNotice_1 == null)) { + tmp = 29; + } else if (!(this$0.pugvFaq_1 == null)) { + tmp = 30; + } else if (!(this$0.pugvSeasonDescription_1 == null)) { + tmp = 31; + } else if (!(this$0.pugvSeasonRecommend_1 == null)) { + tmp = 32; + } else if (!(this$0.pugvSeasonPublisher_1 == null)) { + tmp = 33; + } else if (!(this$0.pugvSeasonSelection_1 == null)) { + tmp = 34; + } else if (!(this$0.pugvSeasonPrimaryInfo_1 == null)) { + tmp = 35; + } else if (!(this$0.pugvCooperationApplication_1 == null)) { + tmp = 36; + } else if (!(this$0.upVideoTool_1 == null)) { + tmp = 37; + } else if (!(this$0.pugvZone_1 == null)) { + tmp = 38; + } else if (!(this$0.pugvSeries_1 == null)) { + tmp = 39; + } else if (!(this$0.pugvPackage_1 == null)) { + tmp = 40; + } else { + tmp = -1; + } + return tmp; + }; + } + var Companion_instance_232; + function Companion_getInstance_232() { + if (Companion_instance_232 === VOID) + new Companion_232(); + return Companion_instance_232; + } + var $serializer_instance_219; + function $serializer_getInstance_219() { + if ($serializer_instance_219 === VOID) + new $serializer_219(); + return $serializer_instance_219; + } + var Companion_instance_233; + function Companion_getInstance_233() { + return Companion_instance_233; + } + var $serializer_instance_220; + function $serializer_getInstance_220() { + if ($serializer_instance_220 === VOID) + new $serializer_220(); + return $serializer_instance_220; + } + var Companion_instance_234; + function Companion_getInstance_234() { + if (Companion_instance_234 === VOID) + new Companion_234(); + return Companion_instance_234; + } + var $serializer_instance_221; + function $serializer_getInstance_221() { + if ($serializer_instance_221 === VOID) + new $serializer_221(); + return $serializer_instance_221; + } + var Companion_instance_235; + function Companion_getInstance_235() { + return Companion_instance_235; + } + var $serializer_instance_222; + function $serializer_getInstance_222() { + if ($serializer_instance_222 === VOID) + new $serializer_222(); + return $serializer_instance_222; + } + var Companion_instance_236; + function Companion_getInstance_236() { + if (Companion_instance_236 === VOID) + new Companion_236(); + return Companion_instance_236; + } + var $serializer_instance_223; + function $serializer_getInstance_223() { + if ($serializer_instance_223 === VOID) + new $serializer_223(); + return $serializer_instance_223; + } + var Companion_instance_237; + function Companion_getInstance_237() { + return Companion_instance_237; + } + var $serializer_instance_224; + function $serializer_getInstance_224() { + if ($serializer_instance_224 === VOID) + new $serializer_224(); + return $serializer_instance_224; + } + var Companion_instance_238; + function Companion_getInstance_238() { + return Companion_instance_238; + } + var $serializer_instance_225; + function $serializer_getInstance_225() { + if ($serializer_instance_225 === VOID) + new $serializer_225(); + return $serializer_instance_225; + } + var Companion_instance_239; + function Companion_getInstance_239() { + return Companion_instance_239; + } + var $serializer_instance_226; + function $serializer_getInstance_226() { + if ($serializer_instance_226 === VOID) + new $serializer_226(); + return $serializer_instance_226; + } + var Companion_instance_240; + function Companion_getInstance_240() { + return Companion_instance_240; + } + var $serializer_instance_227; + function $serializer_getInstance_227() { + if ($serializer_instance_227 === VOID) + new $serializer_227(); + return $serializer_instance_227; + } + var Companion_instance_241; + function Companion_getInstance_241() { + if (Companion_instance_241 === VOID) + new Companion_241(); + return Companion_instance_241; + } + var $serializer_instance_228; + function $serializer_getInstance_228() { + if ($serializer_instance_228 === VOID) + new $serializer_228(); + return $serializer_instance_228; + } + var Companion_instance_242; + function Companion_getInstance_242() { + return Companion_instance_242; + } + var $serializer_instance_229; + function $serializer_getInstance_229() { + if ($serializer_instance_229 === VOID) + new $serializer_229(); + return $serializer_instance_229; + } + var Companion_instance_243; + function Companion_getInstance_243() { + if (Companion_instance_243 === VOID) + new Companion_243(); + return Companion_instance_243; + } + var $serializer_instance_230; + function $serializer_getInstance_230() { + if ($serializer_instance_230 === VOID) + new $serializer_230(); + return $serializer_instance_230; + } + var Companion_instance_244; + function Companion_getInstance_244() { + return Companion_instance_244; + } + var $serializer_instance_231; + function $serializer_getInstance_231() { + if ($serializer_instance_231 === VOID) + new $serializer_231(); + return $serializer_instance_231; + } + var Companion_instance_245; + function Companion_getInstance_245() { + if (Companion_instance_245 === VOID) + new Companion_245(); + return Companion_instance_245; + } + var $serializer_instance_232; + function $serializer_getInstance_232() { + if ($serializer_instance_232 === VOID) + new $serializer_232(); + return $serializer_instance_232; + } + var Companion_instance_246; + function Companion_getInstance_246() { + return Companion_instance_246; + } + var $serializer_instance_233; + function $serializer_getInstance_233() { + if ($serializer_instance_233 === VOID) + new $serializer_233(); + return $serializer_instance_233; + } + var Companion_instance_247; + function Companion_getInstance_247() { + if (Companion_instance_247 === VOID) + new Companion_247(); + return Companion_instance_247; + } + var $serializer_instance_234; + function $serializer_getInstance_234() { + if ($serializer_instance_234 === VOID) + new $serializer_234(); + return $serializer_instance_234; + } + var Companion_instance_248; + function Companion_getInstance_248() { + return Companion_instance_248; + } + var $serializer_instance_235; + function $serializer_getInstance_235() { + if ($serializer_instance_235 === VOID) + new $serializer_235(); + return $serializer_instance_235; + } + var Companion_instance_249; + function Companion_getInstance_249() { + if (Companion_instance_249 === VOID) + new Companion_249(); + return Companion_instance_249; + } + var $serializer_instance_236; + function $serializer_getInstance_236() { + if ($serializer_instance_236 === VOID) + new $serializer_236(); + return $serializer_instance_236; + } + var Companion_instance_250; + function Companion_getInstance_250() { + if (Companion_instance_250 === VOID) + new Companion_250(); + return Companion_instance_250; + } + var $serializer_instance_237; + function $serializer_getInstance_237() { + if ($serializer_instance_237 === VOID) + new $serializer_237(); + return $serializer_instance_237; + } + var Companion_instance_251; + function Companion_getInstance_251() { + return Companion_instance_251; + } + var $serializer_instance_238; + function $serializer_getInstance_238() { + if ($serializer_instance_238 === VOID) + new $serializer_238(); + return $serializer_instance_238; + } + var Companion_instance_252; + function Companion_getInstance_252() { + return Companion_instance_252; + } + var $serializer_instance_239; + function $serializer_getInstance_239() { + if ($serializer_instance_239 === VOID) + new $serializer_239(); + return $serializer_instance_239; + } + var Companion_instance_253; + function Companion_getInstance_253() { + return Companion_instance_253; + } + var $serializer_instance_240; + function $serializer_getInstance_240() { + if ($serializer_instance_240 === VOID) + new $serializer_240(); + return $serializer_instance_240; + } + var Companion_instance_254; + function Companion_getInstance_254() { + if (Companion_instance_254 === VOID) + new Companion_254(); + return Companion_instance_254; + } + var $serializer_instance_241; + function $serializer_getInstance_241() { + if ($serializer_instance_241 === VOID) + new $serializer_241(); + return $serializer_instance_241; + } + var Companion_instance_255; + function Companion_getInstance_255() { + return Companion_instance_255; + } + var $serializer_instance_242; + function $serializer_getInstance_242() { + if ($serializer_instance_242 === VOID) + new $serializer_242(); + return $serializer_instance_242; + } + function KRelateCard$Companion$cardValues$delegate$lambda() { + return listOf_0([KAv_getInstance(), KBangumi_getInstance(), KResource_getInstance(), KGame_getInstance(), KCm_getInstance(), KLive_getInstance(), KBangumiAv_getInstance(), KAiCard_getInstance(), KBangumiUgc_getInstance(), KSpecial_getInstance(), KCourse_getInstance()]); + } + function _get_cardNumber__g5uxbm($this) { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = $this.cardNumber$delegate_1; + var thisRef = $this; + var property = cardNumber$factory(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + var KAv_instance; + function KAv_getInstance() { + if (KAv_instance === VOID) + new KAv(); + return KAv_instance; + } + var KBangumi_instance; + function KBangumi_getInstance() { + if (KBangumi_instance === VOID) + new KBangumi(); + return KBangumi_instance; + } + var KResource_instance; + function KResource_getInstance() { + if (KResource_instance === VOID) + new KResource(); + return KResource_instance; + } + var KGame_instance; + function KGame_getInstance() { + if (KGame_instance === VOID) + new KGame(); + return KGame_instance; + } + var KCm_instance; + function KCm_getInstance() { + if (KCm_instance === VOID) + new KCm(); + return KCm_instance; + } + var KLive_instance; + function KLive_getInstance() { + if (KLive_instance === VOID) + new KLive(); + return KLive_instance; + } + var KBangumiAv_instance; + function KBangumiAv_getInstance() { + if (KBangumiAv_instance === VOID) + new KBangumiAv(); + return KBangumiAv_instance; + } + var KAiCard_instance; + function KAiCard_getInstance() { + if (KAiCard_instance === VOID) + new KAiCard(); + return KAiCard_instance; + } + var KBangumiUgc_instance; + function KBangumiUgc_getInstance() { + if (KBangumiUgc_instance === VOID) + new KBangumiUgc(); + return KBangumiUgc_instance; + } + var KSpecial_instance; + function KSpecial_getInstance() { + if (KSpecial_instance === VOID) + new KSpecial(); + return KSpecial_instance; + } + var KCourse_instance; + function KCourse_getInstance() { + if (KCourse_instance === VOID) + new KCourse(); + return KCourse_instance; + } + var Companion_instance_256; + function Companion_getInstance_256() { + if (Companion_instance_256 === VOID) + new Companion_256(); + return Companion_instance_256; + } + var $serializer_instance_243; + function $serializer_getInstance_243() { + if ($serializer_instance_243 === VOID) + new $serializer_243(); + return $serializer_instance_243; + } + function KRelateCard$cardNumber$delegate$lambda(this$0) { + return function () { + var tmp; + if (!(this$0.av_1 == null)) { + tmp = 0; + } else if (!(this$0.bangumi_1 == null)) { + tmp = 1; + } else if (!(this$0.resource_1 == null)) { + tmp = 2; + } else if (!(this$0.game_1 == null)) { + tmp = 3; + } else if (!(this$0.cm_1 == null)) { + tmp = 4; + } else if (!(this$0.live_1 == null)) { + tmp = 5; + } else if (!(this$0.bangumiAv_1 == null)) { + tmp = 6; + } else if (!(this$0.aiCard_1 == null)) { + tmp = 7; + } else if (!(this$0.bangumiUgc_1 == null)) { + tmp = 8; + } else if (!(this$0.special_1 == null)) { + tmp = 9; + } else if (!(this$0.course_1 == null)) { + tmp = 10; + } else { + tmp = -1; + } + return tmp; + }; + } + function KRelateCard$_init_$lambda_tre349(this$0) { + return function () { + var tmp; + if (!(this$0.av_1 == null)) { + tmp = 0; + } else if (!(this$0.bangumi_1 == null)) { + tmp = 1; + } else if (!(this$0.resource_1 == null)) { + tmp = 2; + } else if (!(this$0.game_1 == null)) { + tmp = 3; + } else if (!(this$0.cm_1 == null)) { + tmp = 4; + } else if (!(this$0.live_1 == null)) { + tmp = 5; + } else if (!(this$0.bangumiAv_1 == null)) { + tmp = 6; + } else if (!(this$0.aiCard_1 == null)) { + tmp = 7; + } else if (!(this$0.bangumiUgc_1 == null)) { + tmp = 8; + } else if (!(this$0.special_1 == null)) { + tmp = 9; + } else if (!(this$0.course_1 == null)) { + tmp = 10; + } else { + tmp = -1; + } + return tmp; + }; + } + var Companion_instance_257; + function Companion_getInstance_257() { + return Companion_instance_257; + } + var $serializer_instance_244; + function $serializer_getInstance_244() { + if ($serializer_instance_244 === VOID) + new $serializer_244(); + return $serializer_instance_244; + } + var Companion_instance_258; + function Companion_getInstance_258() { + return Companion_instance_258; + } + var $serializer_instance_245; + function $serializer_getInstance_245() { + if ($serializer_instance_245 === VOID) + new $serializer_245(); + return $serializer_instance_245; + } + var Companion_instance_259; + function Companion_getInstance_259() { + if (Companion_instance_259 === VOID) + new Companion_259(); + return Companion_instance_259; + } + var $serializer_instance_246; + function $serializer_getInstance_246() { + if ($serializer_instance_246 === VOID) + new $serializer_246(); + return $serializer_instance_246; + } + var Companion_instance_260; + function Companion_getInstance_260() { + return Companion_instance_260; + } + var $serializer_instance_247; + function $serializer_getInstance_247() { + if ($serializer_instance_247 === VOID) + new $serializer_247(); + return $serializer_instance_247; + } + var Companion_instance_261; + function Companion_getInstance_261() { + if (Companion_instance_261 === VOID) + new Companion_261(); + return Companion_instance_261; + } + var $serializer_instance_248; + function $serializer_getInstance_248() { + if ($serializer_instance_248 === VOID) + new $serializer_248(); + return $serializer_instance_248; + } + var Companion_instance_262; + function Companion_getInstance_262() { + return Companion_instance_262; + } + var $serializer_instance_249; + function $serializer_getInstance_249() { + if ($serializer_instance_249 === VOID) + new $serializer_249(); + return $serializer_instance_249; + } + var Companion_instance_263; + function Companion_getInstance_263() { + return Companion_instance_263; + } + var $serializer_instance_250; + function $serializer_getInstance_250() { + if ($serializer_instance_250 === VOID) + new $serializer_250(); + return $serializer_instance_250; + } + var Companion_instance_264; + function Companion_getInstance_264() { + return Companion_instance_264; + } + var $serializer_instance_251; + function $serializer_getInstance_251() { + if ($serializer_instance_251 === VOID) + new $serializer_251(); + return $serializer_instance_251; + } + var Companion_instance_265; + function Companion_getInstance_265() { + return Companion_instance_265; + } + var $serializer_instance_252; + function $serializer_getInstance_252() { + if ($serializer_instance_252 === VOID) + new $serializer_252(); + return $serializer_instance_252; + } + var Companion_instance_266; + function Companion_getInstance_266() { + return Companion_instance_266; + } + var $serializer_instance_253; + function $serializer_getInstance_253() { + if ($serializer_instance_253 === VOID) + new $serializer_253(); + return $serializer_instance_253; + } + var Companion_instance_267; + function Companion_getInstance_267() { + if (Companion_instance_267 === VOID) + new Companion_267(); + return Companion_instance_267; + } + var $serializer_instance_254; + function $serializer_getInstance_254() { + if ($serializer_instance_254 === VOID) + new $serializer_254(); + return $serializer_instance_254; + } + var Companion_instance_268; + function Companion_getInstance_268() { + return Companion_instance_268; + } + var $serializer_instance_255; + function $serializer_getInstance_255() { + if ($serializer_instance_255 === VOID) + new $serializer_255(); + return $serializer_instance_255; + } + var Companion_instance_269; + function Companion_getInstance_269() { + return Companion_instance_269; + } + var $serializer_instance_256; + function $serializer_getInstance_256() { + if ($serializer_instance_256 === VOID) + new $serializer_256(); + return $serializer_instance_256; + } + var Companion_instance_270; + function Companion_getInstance_270() { + return Companion_instance_270; + } + var $serializer_instance_257; + function $serializer_getInstance_257() { + if ($serializer_instance_257 === VOID) + new $serializer_257(); + return $serializer_instance_257; + } + var Companion_instance_271; + function Companion_getInstance_271() { + return Companion_instance_271; + } + var $serializer_instance_258; + function $serializer_getInstance_258() { + if ($serializer_instance_258 === VOID) + new $serializer_258(); + return $serializer_instance_258; + } + var Companion_instance_272; + function Companion_getInstance_272() { + if (Companion_instance_272 === VOID) + new Companion_272(); + return Companion_instance_272; + } + var $serializer_instance_259; + function $serializer_getInstance_259() { + if ($serializer_instance_259 === VOID) + new $serializer_259(); + return $serializer_instance_259; + } + var Companion_instance_273; + function Companion_getInstance_273() { + return Companion_instance_273; + } + var $serializer_instance_260; + function $serializer_getInstance_260() { + if ($serializer_instance_260 === VOID) + new $serializer_260(); + return $serializer_instance_260; + } + var Companion_instance_274; + function Companion_getInstance_274() { + return Companion_instance_274; + } + var $serializer_instance_261; + function $serializer_getInstance_261() { + if ($serializer_instance_261 === VOID) + new $serializer_261(); + return $serializer_instance_261; + } + var Companion_instance_275; + function Companion_getInstance_275() { + return Companion_instance_275; + } + var $serializer_instance_262; + function $serializer_getInstance_262() { + if ($serializer_instance_262 === VOID) + new $serializer_262(); + return $serializer_instance_262; + } + var Companion_instance_276; + function Companion_getInstance_276() { + return Companion_instance_276; + } + var $serializer_instance_263; + function $serializer_getInstance_263() { + if ($serializer_instance_263 === VOID) + new $serializer_263(); + return $serializer_instance_263; + } + var Companion_instance_277; + function Companion_getInstance_277() { + return Companion_instance_277; + } + var $serializer_instance_264; + function $serializer_getInstance_264() { + if ($serializer_instance_264 === VOID) + new $serializer_264(); + return $serializer_instance_264; + } + var Companion_instance_278; + function Companion_getInstance_278() { + return Companion_instance_278; + } + var $serializer_instance_265; + function $serializer_getInstance_265() { + if ($serializer_instance_265 === VOID) + new $serializer_265(); + return $serializer_instance_265; + } + var Companion_instance_279; + function Companion_getInstance_279() { + return Companion_instance_279; + } + var $serializer_instance_266; + function $serializer_getInstance_266() { + if ($serializer_instance_266 === VOID) + new $serializer_266(); + return $serializer_instance_266; + } + var Companion_instance_280; + function Companion_getInstance_280() { + if (Companion_instance_280 === VOID) + new Companion_280(); + return Companion_instance_280; + } + var $serializer_instance_267; + function $serializer_getInstance_267() { + if ($serializer_instance_267 === VOID) + new $serializer_267(); + return $serializer_instance_267; + } + var Companion_instance_281; + function Companion_getInstance_281() { + if (Companion_instance_281 === VOID) + new Companion_281(); + return Companion_instance_281; + } + var $serializer_instance_268; + function $serializer_getInstance_268() { + if ($serializer_instance_268 === VOID) + new $serializer_268(); + return $serializer_instance_268; + } + var Companion_instance_282; + function Companion_getInstance_282() { + if (Companion_instance_282 === VOID) + new Companion_282(); + return Companion_instance_282; + } + var $serializer_instance_269; + function $serializer_getInstance_269() { + if ($serializer_instance_269 === VOID) + new $serializer_269(); + return $serializer_instance_269; + } + var Companion_instance_283; + function Companion_getInstance_283() { + return Companion_instance_283; + } + var $serializer_instance_270; + function $serializer_getInstance_270() { + if ($serializer_instance_270 === VOID) + new $serializer_270(); + return $serializer_instance_270; + } + var Companion_instance_284; + function Companion_getInstance_284() { + if (Companion_instance_284 === VOID) + new Companion_284(); + return Companion_instance_284; + } + var $serializer_instance_271; + function $serializer_getInstance_271() { + if ($serializer_instance_271 === VOID) + new $serializer_271(); + return $serializer_instance_271; + } + var Companion_instance_285; + function Companion_getInstance_285() { + return Companion_instance_285; + } + var $serializer_instance_272; + function $serializer_getInstance_272() { + if ($serializer_instance_272 === VOID) + new $serializer_272(); + return $serializer_instance_272; + } + var Companion_instance_286; + function Companion_getInstance_286() { + return Companion_instance_286; + } + var $serializer_instance_273; + function $serializer_getInstance_273() { + if ($serializer_instance_273 === VOID) + new $serializer_273(); + return $serializer_instance_273; + } + var Companion_instance_287; + function Companion_getInstance_287() { + return Companion_instance_287; + } + var $serializer_instance_274; + function $serializer_getInstance_274() { + if ($serializer_instance_274 === VOID) + new $serializer_274(); + return $serializer_instance_274; + } + var Companion_instance_288; + function Companion_getInstance_288() { + return Companion_instance_288; + } + var $serializer_instance_275; + function $serializer_getInstance_275() { + if ($serializer_instance_275 === VOID) + new $serializer_275(); + return $serializer_instance_275; + } + var Companion_instance_289; + function Companion_getInstance_289() { + return Companion_instance_289; + } + var $serializer_instance_276; + function $serializer_getInstance_276() { + if ($serializer_instance_276 === VOID) + new $serializer_276(); + return $serializer_instance_276; + } + var Companion_instance_290; + function Companion_getInstance_290() { + if (Companion_instance_290 === VOID) + new Companion_290(); + return Companion_instance_290; + } + var $serializer_instance_277; + function $serializer_getInstance_277() { + if ($serializer_instance_277 === VOID) + new $serializer_277(); + return $serializer_instance_277; + } + var Companion_instance_291; + function Companion_getInstance_291() { + return Companion_instance_291; + } + var $serializer_instance_278; + function $serializer_getInstance_278() { + if ($serializer_instance_278 === VOID) + new $serializer_278(); + return $serializer_instance_278; + } + var Companion_instance_292; + function Companion_getInstance_292() { + return Companion_instance_292; + } + var $serializer_instance_279; + function $serializer_getInstance_279() { + if ($serializer_instance_279 === VOID) + new $serializer_279(); + return $serializer_instance_279; + } + var Companion_instance_293; + function Companion_getInstance_293() { + if (Companion_instance_293 === VOID) + new Companion_293(); + return Companion_instance_293; + } + var $serializer_instance_280; + function $serializer_getInstance_280() { + if ($serializer_instance_280 === VOID) + new $serializer_280(); + return $serializer_instance_280; + } + var Companion_instance_294; + function Companion_getInstance_294() { + return Companion_instance_294; + } + var $serializer_instance_281; + function $serializer_getInstance_281() { + if ($serializer_instance_281 === VOID) + new $serializer_281(); + return $serializer_instance_281; + } + var Companion_instance_295; + function Companion_getInstance_295() { + return Companion_instance_295; + } + var $serializer_instance_282; + function $serializer_getInstance_282() { + if ($serializer_instance_282 === VOID) + new $serializer_282(); + return $serializer_instance_282; + } + var Companion_instance_296; + function Companion_getInstance_296() { + if (Companion_instance_296 === VOID) + new Companion_296(); + return Companion_instance_296; + } + var $serializer_instance_283; + function $serializer_getInstance_283() { + if ($serializer_instance_283 === VOID) + new $serializer_283(); + return $serializer_instance_283; + } + var Companion_instance_297; + function Companion_getInstance_297() { + return Companion_instance_297; + } + var $serializer_instance_284; + function $serializer_getInstance_284() { + if ($serializer_instance_284 === VOID) + new $serializer_284(); + return $serializer_instance_284; + } + var Companion_instance_298; + function Companion_getInstance_298() { + if (Companion_instance_298 === VOID) + new Companion_298(); + return Companion_instance_298; + } + var $serializer_instance_285; + function $serializer_getInstance_285() { + if ($serializer_instance_285 === VOID) + new $serializer_285(); + return $serializer_instance_285; + } + function KDeliveryData$Companion$dataValues$delegate$lambda() { + return listOf_0([KActivity_getInstance(), KCharacters_getInstance(), KTheatreHotTopic_getInstance(), KAggEps_getInstance(), KActPageItems_getInstance()]); + } + var Companion_instance_299; + function Companion_getInstance_299() { + return Companion_instance_299; + } + var $serializer_instance_286; + function $serializer_getInstance_286() { + if ($serializer_instance_286 === VOID) + new $serializer_286(); + return $serializer_instance_286; + } + function _get_dataNumber__hqvc14_1($this) { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = $this.dataNumber$delegate_1; + var thisRef = $this; + var property = dataNumber$factory_1(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + var KActivity_instance; + function KActivity_getInstance() { + if (KActivity_instance === VOID) + new KActivity(); + return KActivity_instance; + } + var KCharacters_instance; + function KCharacters_getInstance() { + if (KCharacters_instance === VOID) + new KCharacters(); + return KCharacters_instance; + } + var KTheatreHotTopic_instance; + function KTheatreHotTopic_getInstance() { + if (KTheatreHotTopic_instance === VOID) + new KTheatreHotTopic(); + return KTheatreHotTopic_instance; + } + var KAggEps_instance; + function KAggEps_getInstance() { + if (KAggEps_instance === VOID) + new KAggEps(); + return KAggEps_instance; + } + var KActPageItems_instance; + function KActPageItems_getInstance() { + if (KActPageItems_instance === VOID) + new KActPageItems(); + return KActPageItems_instance; + } + var Companion_instance_300; + function Companion_getInstance_300() { + if (Companion_instance_300 === VOID) + new Companion_300(); + return Companion_instance_300; + } + var $serializer_instance_287; + function $serializer_getInstance_287() { + if ($serializer_instance_287 === VOID) + new $serializer_287(); + return $serializer_instance_287; + } + function KDeliveryData$dataNumber$delegate$lambda(this$0) { + return function () { + var tmp; + if (!(this$0.activity_1 == null)) { + tmp = 0; + } else if (!(this$0.characters_1 == null)) { + tmp = 1; + } else if (!(this$0.theatreHotTopic_1 == null)) { + tmp = 2; + } else if (!(this$0.aggEps_1 == null)) { + tmp = 3; + } else if (!(this$0.actPageItems_1 == null)) { + tmp = 4; + } else { + tmp = -1; + } + return tmp; + }; + } + function KDeliveryData$_init_$lambda_4tjlvi(this$0) { + return function () { + var tmp; + if (!(this$0.activity_1 == null)) { + tmp = 0; + } else if (!(this$0.characters_1 == null)) { + tmp = 1; + } else if (!(this$0.theatreHotTopic_1 == null)) { + tmp = 2; + } else if (!(this$0.aggEps_1 == null)) { + tmp = 3; + } else if (!(this$0.actPageItems_1 == null)) { + tmp = 4; + } else { + tmp = -1; + } + return tmp; + }; + } + var Companion_instance_301; + function Companion_getInstance_301() { + if (Companion_instance_301 === VOID) + new Companion_301(); + return Companion_instance_301; + } + var $serializer_instance_288; + function $serializer_getInstance_288() { + if ($serializer_instance_288 === VOID) + new $serializer_288(); + return $serializer_instance_288; + } + var Companion_instance_302; + function Companion_getInstance_302() { + return Companion_instance_302; + } + var $serializer_instance_289; + function $serializer_getInstance_289() { + if ($serializer_instance_289 === VOID) + new $serializer_289(); + return $serializer_instance_289; + } + var Companion_instance_303; + function Companion_getInstance_303() { + return Companion_instance_303; + } + var $serializer_instance_290; + function $serializer_getInstance_290() { + if ($serializer_instance_290 === VOID) + new $serializer_290(); + return $serializer_instance_290; + } + var Companion_instance_304; + function Companion_getInstance_304() { + if (Companion_instance_304 === VOID) + new Companion_304(); + return Companion_instance_304; + } + var $serializer_instance_291; + function $serializer_getInstance_291() { + if ($serializer_instance_291 === VOID) + new $serializer_291(); + return $serializer_instance_291; + } + var Companion_instance_305; + function Companion_getInstance_305() { + if (Companion_instance_305 === VOID) + new Companion_305(); + return Companion_instance_305; + } + var $serializer_instance_292; + function $serializer_getInstance_292() { + if ($serializer_instance_292 === VOID) + new $serializer_292(); + return $serializer_instance_292; + } + var Companion_instance_306; + function Companion_getInstance_306() { + if (Companion_instance_306 === VOID) + new Companion_306(); + return Companion_instance_306; + } + var $serializer_instance_293; + function $serializer_getInstance_293() { + if ($serializer_instance_293 === VOID) + new $serializer_293(); + return $serializer_instance_293; + } + var Companion_instance_307; + function Companion_getInstance_307() { + return Companion_instance_307; + } + var $serializer_instance_294; + function $serializer_getInstance_294() { + if ($serializer_instance_294 === VOID) + new $serializer_294(); + return $serializer_instance_294; + } + var Companion_instance_308; + function Companion_getInstance_308() { + return Companion_instance_308; + } + var $serializer_instance_295; + function $serializer_getInstance_295() { + if ($serializer_instance_295 === VOID) + new $serializer_295(); + return $serializer_instance_295; + } + var Companion_instance_309; + function Companion_getInstance_309() { + return Companion_instance_309; + } + var $serializer_instance_296; + function $serializer_getInstance_296() { + if ($serializer_instance_296 === VOID) + new $serializer_296(); + return $serializer_instance_296; + } + var Companion_instance_310; + function Companion_getInstance_310() { + if (Companion_instance_310 === VOID) + new Companion_310(); + return Companion_instance_310; + } + var $serializer_instance_297; + function $serializer_getInstance_297() { + if ($serializer_instance_297 === VOID) + new $serializer_297(); + return $serializer_instance_297; + } + var Companion_instance_311; + function Companion_getInstance_311() { + if (Companion_instance_311 === VOID) + new Companion_311(); + return Companion_instance_311; + } + var $serializer_instance_298; + function $serializer_getInstance_298() { + if ($serializer_instance_298 === VOID) + new $serializer_298(); + return $serializer_instance_298; + } + var Companion_instance_312; + function Companion_getInstance_312() { + return Companion_instance_312; + } + var $serializer_instance_299; + function $serializer_getInstance_299() { + if ($serializer_instance_299 === VOID) + new $serializer_299(); + return $serializer_instance_299; + } + var Companion_instance_313; + function Companion_getInstance_313() { + if (Companion_instance_313 === VOID) + new Companion_313(); + return Companion_instance_313; + } + var $serializer_instance_300; + function $serializer_getInstance_300() { + if ($serializer_instance_300 === VOID) + new $serializer_300(); + return $serializer_instance_300; + } + var Companion_instance_314; + function Companion_getInstance_314() { + if (Companion_instance_314 === VOID) + new Companion_314(); + return Companion_instance_314; + } + var $serializer_instance_301; + function $serializer_getInstance_301() { + if ($serializer_instance_301 === VOID) + new $serializer_301(); + return $serializer_instance_301; + } + var Companion_instance_315; + function Companion_getInstance_315() { + return Companion_instance_315; + } + var $serializer_instance_302; + function $serializer_getInstance_302() { + if ($serializer_instance_302 === VOID) + new $serializer_302(); + return $serializer_instance_302; + } + var Companion_instance_316; + function Companion_getInstance_316() { + return Companion_instance_316; + } + var $serializer_instance_303; + function $serializer_getInstance_303() { + if ($serializer_instance_303 === VOID) + new $serializer_303(); + return $serializer_instance_303; + } + var Companion_instance_317; + function Companion_getInstance_317() { + if (Companion_instance_317 === VOID) + new Companion_317(); + return Companion_instance_317; + } + var $serializer_instance_304; + function $serializer_getInstance_304() { + if ($serializer_instance_304 === VOID) + new $serializer_304(); + return $serializer_instance_304; + } + var Companion_instance_318; + function Companion_getInstance_318() { + return Companion_instance_318; + } + var $serializer_instance_305; + function $serializer_getInstance_305() { + if ($serializer_instance_305 === VOID) + new $serializer_305(); + return $serializer_instance_305; + } + var Companion_instance_319; + function Companion_getInstance_319() { + return Companion_instance_319; + } + var $serializer_instance_306; + function $serializer_getInstance_306() { + if ($serializer_instance_306 === VOID) + new $serializer_306(); + return $serializer_instance_306; + } + var Companion_instance_320; + function Companion_getInstance_320() { + return Companion_instance_320; + } + var $serializer_instance_307; + function $serializer_getInstance_307() { + if ($serializer_instance_307 === VOID) + new $serializer_307(); + return $serializer_instance_307; + } + var Companion_instance_321; + function Companion_getInstance_321() { + return Companion_instance_321; + } + var $serializer_instance_308; + function $serializer_getInstance_308() { + if ($serializer_instance_308 === VOID) + new $serializer_308(); + return $serializer_instance_308; + } + var Companion_instance_322; + function Companion_getInstance_322() { + return Companion_instance_322; + } + var $serializer_instance_309; + function $serializer_getInstance_309() { + if ($serializer_instance_309 === VOID) + new $serializer_309(); + return $serializer_instance_309; + } + var Companion_instance_323; + function Companion_getInstance_323() { + return Companion_instance_323; + } + var $serializer_instance_310; + function $serializer_getInstance_310() { + if ($serializer_instance_310 === VOID) + new $serializer_310(); + return $serializer_instance_310; + } + var Companion_instance_324; + function Companion_getInstance_324() { + return Companion_instance_324; + } + var $serializer_instance_311; + function $serializer_getInstance_311() { + if ($serializer_instance_311 === VOID) + new $serializer_311(); + return $serializer_instance_311; + } + var Companion_instance_325; + function Companion_getInstance_325() { + return Companion_instance_325; + } + var $serializer_instance_312; + function $serializer_getInstance_312() { + if ($serializer_instance_312 === VOID) + new $serializer_312(); + return $serializer_instance_312; + } + function KReserveButton$Companion$orderParamValues$delegate$lambda() { + return listOf_0([KReserve_getInstance(), KFav_getInstance()]); + } + function _get_orderParamNumber__ykhf0d($this) { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = $this.orderParamNumber$delegate_1; + var thisRef = $this; + var property = orderParamNumber$factory(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + var KReserve_instance; + function KReserve_getInstance() { + if (KReserve_instance === VOID) + new KReserve(); + return KReserve_instance; + } + var KFav_instance; + function KFav_getInstance() { + if (KFav_instance === VOID) + new KFav(); + return KFav_instance; + } + var Companion_instance_326; + function Companion_getInstance_326() { + if (Companion_instance_326 === VOID) + new Companion_326(); + return Companion_instance_326; + } + var $serializer_instance_313; + function $serializer_getInstance_313() { + if ($serializer_instance_313 === VOID) + new $serializer_313(); + return $serializer_instance_313; + } + function KReserveButton$orderParamNumber$delegate$lambda(this$0) { + return function () { + var tmp; + if (!(this$0.reserve_1 == null)) { + tmp = 0; + } else if (!(this$0.fav_1 == null)) { + tmp = 1; + } else { + tmp = -1; + } + return tmp; + }; + } + function KReserveButton$_init_$lambda_javns8(this$0) { + return function () { + var tmp; + if (!(this$0.reserve_1 == null)) { + tmp = 0; + } else if (!(this$0.fav_1 == null)) { + tmp = 1; + } else { + tmp = -1; + } + return tmp; + }; + } + var Companion_instance_327; + function Companion_getInstance_327() { + return Companion_instance_327; + } + var $serializer_instance_314; + function $serializer_getInstance_314() { + if ($serializer_instance_314 === VOID) + new $serializer_314(); + return $serializer_instance_314; + } + var Companion_instance_328; + function Companion_getInstance_328() { + return Companion_instance_328; + } + var $serializer_instance_315; + function $serializer_getInstance_315() { + if ($serializer_instance_315 === VOID) + new $serializer_315(); + return $serializer_instance_315; + } + var Companion_instance_329; + function Companion_getInstance_329() { + if (Companion_instance_329 === VOID) + new Companion_329(); + return Companion_instance_329; + } + var $serializer_instance_316; + function $serializer_getInstance_316() { + if ($serializer_instance_316 === VOID) + new $serializer_316(); + return $serializer_instance_316; + } + var Companion_instance_330; + function Companion_getInstance_330() { + return Companion_instance_330; + } + var $serializer_instance_317; + function $serializer_getInstance_317() { + if ($serializer_instance_317 === VOID) + new $serializer_317(); + return $serializer_instance_317; + } + var Companion_instance_331; + function Companion_getInstance_331() { + return Companion_instance_331; + } + var $serializer_instance_318; + function $serializer_getInstance_318() { + if ($serializer_instance_318 === VOID) + new $serializer_318(); + return $serializer_instance_318; + } + var Companion_instance_332; + function Companion_getInstance_332() { + if (Companion_instance_332 === VOID) + new Companion_332(); + return Companion_instance_332; + } + var $serializer_instance_319; + function $serializer_getInstance_319() { + if ($serializer_instance_319 === VOID) + new $serializer_319(); + return $serializer_instance_319; + } + var Companion_instance_333; + function Companion_getInstance_333() { + return Companion_instance_333; + } + var $serializer_instance_320; + function $serializer_getInstance_320() { + if ($serializer_instance_320 === VOID) + new $serializer_320(); + return $serializer_instance_320; + } + var Companion_instance_334; + function Companion_getInstance_334() { + return Companion_instance_334; + } + var $serializer_instance_321; + function $serializer_getInstance_321() { + if ($serializer_instance_321 === VOID) + new $serializer_321(); + return $serializer_instance_321; + } + var Companion_instance_335; + function Companion_getInstance_335() { + return Companion_instance_335; + } + var $serializer_instance_322; + function $serializer_getInstance_322() { + if ($serializer_instance_322 === VOID) + new $serializer_322(); + return $serializer_instance_322; + } + var Companion_instance_336; + function Companion_getInstance_336() { + return Companion_instance_336; + } + var $serializer_instance_323; + function $serializer_getInstance_323() { + if ($serializer_instance_323 === VOID) + new $serializer_323(); + return $serializer_instance_323; + } + var Companion_instance_337; + function Companion_getInstance_337() { + return Companion_instance_337; + } + var $serializer_instance_324; + function $serializer_getInstance_324() { + if ($serializer_instance_324 === VOID) + new $serializer_324(); + return $serializer_instance_324; + } + var Companion_instance_338; + function Companion_getInstance_338() { + if (Companion_instance_338 === VOID) + new Companion_338(); + return Companion_instance_338; + } + var $serializer_instance_325; + function $serializer_getInstance_325() { + if ($serializer_instance_325 === VOID) + new $serializer_325(); + return $serializer_instance_325; + } + var Companion_instance_339; + function Companion_getInstance_339() { + if (Companion_instance_339 === VOID) + new Companion_339(); + return Companion_instance_339; + } + var $serializer_instance_326; + function $serializer_getInstance_326() { + if ($serializer_instance_326 === VOID) + new $serializer_326(); + return $serializer_instance_326; + } + var Companion_instance_340; + function Companion_getInstance_340() { + return Companion_instance_340; + } + var $serializer_instance_327; + function $serializer_getInstance_327() { + if ($serializer_instance_327 === VOID) + new $serializer_327(); + return $serializer_instance_327; + } + var Companion_instance_341; + function Companion_getInstance_341() { + return Companion_instance_341; + } + var $serializer_instance_328; + function $serializer_getInstance_328() { + if ($serializer_instance_328 === VOID) + new $serializer_328(); + return $serializer_instance_328; + } + var Companion_instance_342; + function Companion_getInstance_342() { + return Companion_instance_342; + } + var $serializer_instance_329; + function $serializer_getInstance_329() { + if ($serializer_instance_329 === VOID) + new $serializer_329(); + return $serializer_instance_329; + } + var Companion_instance_343; + function Companion_getInstance_343() { + return Companion_instance_343; + } + var $serializer_instance_330; + function $serializer_getInstance_330() { + if ($serializer_instance_330 === VOID) + new $serializer_330(); + return $serializer_instance_330; + } + var Companion_instance_344; + function Companion_getInstance_344() { + return Companion_instance_344; + } + var $serializer_instance_331; + function $serializer_getInstance_331() { + if ($serializer_instance_331 === VOID) + new $serializer_331(); + return $serializer_instance_331; + } + var Companion_instance_345; + function Companion_getInstance_345() { + if (Companion_instance_345 === VOID) + new Companion_345(); + return Companion_instance_345; + } + var $serializer_instance_332; + function $serializer_getInstance_332() { + if ($serializer_instance_332 === VOID) + new $serializer_332(); + return $serializer_instance_332; + } + var Companion_instance_346; + function Companion_getInstance_346() { + return Companion_instance_346; + } + var $serializer_instance_333; + function $serializer_getInstance_333() { + if ($serializer_instance_333 === VOID) + new $serializer_333(); + return $serializer_instance_333; + } + var Companion_instance_347; + function Companion_getInstance_347() { + return Companion_instance_347; + } + var $serializer_instance_334; + function $serializer_getInstance_334() { + if ($serializer_instance_334 === VOID) + new $serializer_334(); + return $serializer_instance_334; + } + var Companion_instance_348; + function Companion_getInstance_348() { + return Companion_instance_348; + } + var $serializer_instance_335; + function $serializer_getInstance_335() { + if ($serializer_instance_335 === VOID) + new $serializer_335(); + return $serializer_instance_335; + } + var Companion_instance_349; + function Companion_getInstance_349() { + return Companion_instance_349; + } + var $serializer_instance_336; + function $serializer_getInstance_336() { + if ($serializer_instance_336 === VOID) + new $serializer_336(); + return $serializer_instance_336; + } + var Companion_instance_350; + function Companion_getInstance_350() { + return Companion_instance_350; + } + var $serializer_instance_337; + function $serializer_getInstance_337() { + if ($serializer_instance_337 === VOID) + new $serializer_337(); + return $serializer_instance_337; + } + var Companion_instance_351; + function Companion_getInstance_351() { + if (Companion_instance_351 === VOID) + new Companion_351(); + return Companion_instance_351; + } + var $serializer_instance_338; + function $serializer_getInstance_338() { + if ($serializer_instance_338 === VOID) + new $serializer_338(); + return $serializer_instance_338; + } + var Companion_instance_352; + function Companion_getInstance_352() { + return Companion_instance_352; + } + var $serializer_instance_339; + function $serializer_getInstance_339() { + if ($serializer_instance_339 === VOID) + new $serializer_339(); + return $serializer_instance_339; + } + var Companion_instance_353; + function Companion_getInstance_353() { + if (Companion_instance_353 === VOID) + new Companion_353(); + return Companion_instance_353; + } + var $serializer_instance_340; + function $serializer_getInstance_340() { + if ($serializer_instance_340 === VOID) + new $serializer_340(); + return $serializer_instance_340; + } + var Companion_instance_354; + function Companion_getInstance_354() { + return Companion_instance_354; + } + var $serializer_instance_341; + function $serializer_getInstance_341() { + if ($serializer_instance_341 === VOID) + new $serializer_341(); + return $serializer_instance_341; + } + var Companion_instance_355; + function Companion_getInstance_355() { + if (Companion_instance_355 === VOID) + new Companion_355(); + return Companion_instance_355; + } + var $serializer_instance_342; + function $serializer_getInstance_342() { + if ($serializer_instance_342 === VOID) + new $serializer_342(); + return $serializer_instance_342; + } + var Companion_instance_356; + function Companion_getInstance_356() { + return Companion_instance_356; + } + var $serializer_instance_343; + function $serializer_getInstance_343() { + if ($serializer_instance_343 === VOID) + new $serializer_343(); + return $serializer_instance_343; + } + var Companion_instance_357; + function Companion_getInstance_357() { + return Companion_instance_357; + } + var $serializer_instance_344; + function $serializer_getInstance_344() { + if ($serializer_instance_344 === VOID) + new $serializer_344(); + return $serializer_instance_344; + } + var Companion_instance_358; + function Companion_getInstance_358() { + if (Companion_instance_358 === VOID) + new Companion_358(); + return Companion_instance_358; + } + var $serializer_instance_345; + function $serializer_getInstance_345() { + if ($serializer_instance_345 === VOID) + new $serializer_345(); + return $serializer_instance_345; + } + var Companion_instance_359; + function Companion_getInstance_359() { + return Companion_instance_359; + } + var $serializer_instance_346; + function $serializer_getInstance_346() { + if ($serializer_instance_346 === VOID) + new $serializer_346(); + return $serializer_instance_346; + } + var Companion_instance_360; + function Companion_getInstance_360() { + if (Companion_instance_360 === VOID) + new Companion_360(); + return Companion_instance_360; + } + var $serializer_instance_347; + function $serializer_getInstance_347() { + if ($serializer_instance_347 === VOID) + new $serializer_347(); + return $serializer_instance_347; + } + var Companion_instance_361; + function Companion_getInstance_361() { + return Companion_instance_361; + } + var $serializer_instance_348; + function $serializer_getInstance_348() { + if ($serializer_instance_348 === VOID) + new $serializer_348(); + return $serializer_instance_348; + } + function KPugvSeasonDescription$Companion$contentValues$delegate$lambda() { + return listOf_0([KText_getInstance(), KImage_getInstance()]); + } + function _get_contentNumber__iirtht_0($this) { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = $this.contentNumber$delegate_1; + var thisRef = $this; + var property = contentNumber$factory_0(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + var KText_instance; + function KText_getInstance() { + if (KText_instance === VOID) + new KText(); + return KText_instance; + } + var KImage_instance; + function KImage_getInstance() { + if (KImage_instance === VOID) + new KImage(); + return KImage_instance; + } + var Companion_instance_362; + function Companion_getInstance_362() { + if (Companion_instance_362 === VOID) + new Companion_362(); + return Companion_instance_362; + } + var $serializer_instance_349; + function $serializer_getInstance_349() { + if ($serializer_instance_349 === VOID) + new $serializer_349(); + return $serializer_instance_349; + } + function KPugvSeasonDescription$contentNumber$delegate$lambda(this$0) { + return function () { + var tmp; + if (!(this$0.text_1 == null)) { + tmp = 0; + } else if (!(this$0.image_1 == null)) { + tmp = 1; + } else { + tmp = -1; + } + return tmp; + }; + } + function KPugvSeasonDescription$_init_$lambda_q4ze7l(this$0) { + return function () { + var tmp; + if (!(this$0.text_1 == null)) { + tmp = 0; + } else if (!(this$0.image_1 == null)) { + tmp = 1; + } else { + tmp = -1; + } + return tmp; + }; + } + var Companion_instance_363; + function Companion_getInstance_363() { + return Companion_instance_363; + } + var $serializer_instance_350; + function $serializer_getInstance_350() { + if ($serializer_instance_350 === VOID) + new $serializer_350(); + return $serializer_instance_350; + } + var Companion_instance_364; + function Companion_getInstance_364() { + if (Companion_instance_364 === VOID) + new Companion_364(); + return Companion_instance_364; + } + var $serializer_instance_351; + function $serializer_getInstance_351() { + if ($serializer_instance_351 === VOID) + new $serializer_351(); + return $serializer_instance_351; + } + var Companion_instance_365; + function Companion_getInstance_365() { + return Companion_instance_365; + } + var $serializer_instance_352; + function $serializer_getInstance_352() { + if ($serializer_instance_352 === VOID) + new $serializer_352(); + return $serializer_instance_352; + } + var Companion_instance_366; + function Companion_getInstance_366() { + if (Companion_instance_366 === VOID) + new Companion_366(); + return Companion_instance_366; + } + var $serializer_instance_353; + function $serializer_getInstance_353() { + if ($serializer_instance_353 === VOID) + new $serializer_353(); + return $serializer_instance_353; + } + var Companion_instance_367; + function Companion_getInstance_367() { + return Companion_instance_367; + } + var $serializer_instance_354; + function $serializer_getInstance_354() { + if ($serializer_instance_354 === VOID) + new $serializer_354(); + return $serializer_instance_354; + } + var Companion_instance_368; + function Companion_getInstance_368() { + if (Companion_instance_368 === VOID) + new Companion_368(); + return Companion_instance_368; + } + var $serializer_instance_355; + function $serializer_getInstance_355() { + if ($serializer_instance_355 === VOID) + new $serializer_355(); + return $serializer_instance_355; + } + var Companion_instance_369; + function Companion_getInstance_369() { + return Companion_instance_369; + } + var $serializer_instance_356; + function $serializer_getInstance_356() { + if ($serializer_instance_356 === VOID) + new $serializer_356(); + return $serializer_instance_356; + } + var Companion_instance_370; + function Companion_getInstance_370() { + if (Companion_instance_370 === VOID) + new Companion_370(); + return Companion_instance_370; + } + var $serializer_instance_357; + function $serializer_getInstance_357() { + if ($serializer_instance_357 === VOID) + new $serializer_357(); + return $serializer_instance_357; + } + var Companion_instance_371; + function Companion_getInstance_371() { + return Companion_instance_371; + } + var $serializer_instance_358; + function $serializer_getInstance_358() { + if ($serializer_instance_358 === VOID) + new $serializer_358(); + return $serializer_instance_358; + } + var Companion_instance_372; + function Companion_getInstance_372() { + return Companion_instance_372; + } + var $serializer_instance_359; + function $serializer_getInstance_359() { + if ($serializer_instance_359 === VOID) + new $serializer_359(); + return $serializer_instance_359; + } + function KHonor$Companion$extendValues$delegate$lambda() { + return listOf(KProfessionExt_getInstance()); + } + var Companion_instance_373; + function Companion_getInstance_373() { + return Companion_instance_373; + } + var $serializer_instance_360; + function $serializer_getInstance_360() { + if ($serializer_instance_360 === VOID) + new $serializer_360(); + return $serializer_instance_360; + } + function _get_extendNumber__l91wt4($this) { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = $this.extendNumber$delegate_1; + var thisRef = $this; + var property = extendNumber$factory(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + var KProfessionExt_instance; + function KProfessionExt_getInstance() { + if (KProfessionExt_instance === VOID) + new KProfessionExt(); + return KProfessionExt_instance; + } + var Companion_instance_374; + function Companion_getInstance_374() { + if (Companion_instance_374 === VOID) + new Companion_374(); + return Companion_instance_374; + } + var $serializer_instance_361; + function $serializer_getInstance_361() { + if ($serializer_instance_361 === VOID) + new $serializer_361(); + return $serializer_instance_361; + } + function KHonor$extendNumber$delegate$lambda(this$0) { + return function () { + var tmp; + if (!(this$0.professionExt_1 == null)) { + tmp = 0; + } else { + tmp = -1; + } + return tmp; + }; + } + function KHonor$_init_$lambda_4vfdu4(this$0) { + return function () { + var tmp; + if (!(this$0.professionExt_1 == null)) { + tmp = 0; + } else { + tmp = -1; + } + return tmp; + }; + } + var Companion_instance_375; + function Companion_getInstance_375() { + if (Companion_instance_375 === VOID) + new Companion_375(); + return Companion_instance_375; + } + var $serializer_instance_362; + function $serializer_getInstance_362() { + if ($serializer_instance_362 === VOID) + new $serializer_362(); + return $serializer_instance_362; + } + var Companion_instance_376; + function Companion_getInstance_376() { + return Companion_instance_376; + } + var $serializer_instance_363; + function $serializer_getInstance_363() { + if ($serializer_instance_363 === VOID) + new $serializer_363(); + return $serializer_instance_363; + } + var Companion_instance_377; + function Companion_getInstance_377() { + return Companion_instance_377; + } + var $serializer_instance_364; + function $serializer_getInstance_364() { + if ($serializer_instance_364 === VOID) + new $serializer_364(); + return $serializer_instance_364; + } + var Companion_instance_378; + function Companion_getInstance_378() { + if (Companion_instance_378 === VOID) + new Companion_378(); + return Companion_instance_378; + } + var $serializer_instance_365; + function $serializer_getInstance_365() { + if ($serializer_instance_365 === VOID) + new $serializer_365(); + return $serializer_instance_365; + } + var Companion_instance_379; + function Companion_getInstance_379() { + return Companion_instance_379; + } + var $serializer_instance_366; + function $serializer_getInstance_366() { + if ($serializer_instance_366 === VOID) + new $serializer_366(); + return $serializer_instance_366; + } + var Companion_instance_380; + function Companion_getInstance_380() { + return Companion_instance_380; + } + var $serializer_instance_367; + function $serializer_getInstance_367() { + if ($serializer_instance_367 === VOID) + new $serializer_367(); + return $serializer_instance_367; + } + var Companion_instance_381; + function Companion_getInstance_381() { + return Companion_instance_381; + } + var $serializer_instance_368; + function $serializer_getInstance_368() { + if ($serializer_instance_368 === VOID) + new $serializer_368(); + return $serializer_instance_368; + } + var Companion_instance_382; + function Companion_getInstance_382() { + return Companion_instance_382; + } + var $serializer_instance_369; + function $serializer_getInstance_369() { + if ($serializer_instance_369 === VOID) + new $serializer_369(); + return $serializer_instance_369; + } + var Companion_instance_383; + function Companion_getInstance_383() { + if (Companion_instance_383 === VOID) + new Companion_383(); + return Companion_instance_383; + } + var $serializer_instance_370; + function $serializer_getInstance_370() { + if ($serializer_instance_370 === VOID) + new $serializer_370(); + return $serializer_instance_370; + } + var Companion_instance_384; + function Companion_getInstance_384() { + return Companion_instance_384; + } + var $serializer_instance_371; + function $serializer_getInstance_371() { + if ($serializer_instance_371 === VOID) + new $serializer_371(); + return $serializer_instance_371; + } + var Companion_instance_385; + function Companion_getInstance_385() { + return Companion_instance_385; + } + var $serializer_instance_372; + function $serializer_getInstance_372() { + if ($serializer_instance_372 === VOID) + new $serializer_372(); + return $serializer_instance_372; + } + var Companion_instance_386; + function Companion_getInstance_386() { + return Companion_instance_386; + } + var $serializer_instance_373; + function $serializer_getInstance_373() { + if ($serializer_instance_373 === VOID) + new $serializer_373(); + return $serializer_instance_373; + } + var Companion_instance_387; + function Companion_getInstance_387() { + return Companion_instance_387; + } + var $serializer_instance_374; + function $serializer_getInstance_374() { + if ($serializer_instance_374 === VOID) + new $serializer_374(); + return $serializer_instance_374; + } + var Companion_instance_388; + function Companion_getInstance_388() { + return Companion_instance_388; + } + var $serializer_instance_375; + function $serializer_getInstance_375() { + if ($serializer_instance_375 === VOID) + new $serializer_375(); + return $serializer_instance_375; + } + function KKingPos$Companion$extendValues$delegate$lambda() { + return listOf_0([KLike_getInstance(), KCoin_getInstance()]); + } + function _get_extendNumber__l91wt4_0($this) { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = $this.extendNumber$delegate_1; + var thisRef = $this; + var property = extendNumber$factory_0(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + var KLike_instance; + function KLike_getInstance() { + if (KLike_instance === VOID) + new KLike(); + return KLike_instance; + } + var KCoin_instance; + function KCoin_getInstance() { + if (KCoin_instance === VOID) + new KCoin(); + return KCoin_instance; + } + var Companion_instance_389; + function Companion_getInstance_389() { + if (Companion_instance_389 === VOID) + new Companion_389(); + return Companion_instance_389; + } + var $serializer_instance_376; + function $serializer_getInstance_376() { + if ($serializer_instance_376 === VOID) + new $serializer_376(); + return $serializer_instance_376; + } + function KKingPos$extendNumber$delegate$lambda(this$0) { + return function () { + var tmp; + if (!(this$0.like_1 == null)) { + tmp = 0; + } else if (!(this$0.coin_1 == null)) { + tmp = 1; + } else { + tmp = -1; + } + return tmp; + }; + } + function KKingPos$_init_$lambda_wrfjwn(this$0) { + return function () { + var tmp; + if (!(this$0.like_1 == null)) { + tmp = 0; + } else if (!(this$0.coin_1 == null)) { + tmp = 1; + } else { + tmp = -1; + } + return tmp; + }; + } + var Companion_instance_390; + function Companion_getInstance_390() { + return Companion_instance_390; + } + var $serializer_instance_377; + function $serializer_getInstance_377() { + if ($serializer_instance_377 === VOID) + new $serializer_377(); + return $serializer_instance_377; + } + var Companion_instance_391; + function Companion_getInstance_391() { + return Companion_instance_391; + } + var $serializer_instance_378; + function $serializer_getInstance_378() { + if ($serializer_instance_378 === VOID) + new $serializer_378(); + return $serializer_instance_378; + } + var Companion_instance_392; + function Companion_getInstance_392() { + return Companion_instance_392; + } + var $serializer_instance_379; + function $serializer_getInstance_379() { + if ($serializer_instance_379 === VOID) + new $serializer_379(); + return $serializer_instance_379; + } + var Companion_instance_393; + function Companion_getInstance_393() { + return Companion_instance_393; + } + var $serializer_instance_380; + function $serializer_getInstance_380() { + if ($serializer_instance_380 === VOID) + new $serializer_380(); + return $serializer_instance_380; + } + var Companion_instance_394; + function Companion_getInstance_394() { + return Companion_instance_394; + } + var $serializer_instance_381; + function $serializer_getInstance_381() { + if ($serializer_instance_381 === VOID) + new $serializer_381(); + return $serializer_instance_381; + } + var Companion_instance_395; + function Companion_getInstance_395() { + return Companion_instance_395; + } + var $serializer_instance_382; + function $serializer_getInstance_382() { + if ($serializer_instance_382 === VOID) + new $serializer_382(); + return $serializer_instance_382; + } + var Companion_instance_396; + function Companion_getInstance_396() { + return Companion_instance_396; + } + var $serializer_instance_383; + function $serializer_getInstance_383() { + if ($serializer_instance_383 === VOID) + new $serializer_383(); + return $serializer_instance_383; + } + var Companion_instance_397; + function Companion_getInstance_397() { + return Companion_instance_397; + } + var $serializer_instance_384; + function $serializer_getInstance_384() { + if ($serializer_instance_384 === VOID) + new $serializer_384(); + return $serializer_instance_384; + } + var Companion_instance_398; + function Companion_getInstance_398() { + return Companion_instance_398; + } + var $serializer_instance_385; + function $serializer_getInstance_385() { + if ($serializer_instance_385 === VOID) + new $serializer_385(); + return $serializer_instance_385; + } + var Companion_instance_399; + function Companion_getInstance_399() { + return Companion_instance_399; + } + var $serializer_instance_386; + function $serializer_getInstance_386() { + if ($serializer_instance_386 === VOID) + new $serializer_386(); + return $serializer_instance_386; + } + var Companion_instance_400; + function Companion_getInstance_400() { + return Companion_instance_400; + } + var $serializer_instance_387; + function $serializer_getInstance_387() { + if ($serializer_instance_387 === VOID) + new $serializer_387(); + return $serializer_instance_387; + } + var Companion_instance_401; + function Companion_getInstance_401() { + return Companion_instance_401; + } + var $serializer_instance_388; + function $serializer_getInstance_388() { + if ($serializer_instance_388 === VOID) + new $serializer_388(); + return $serializer_instance_388; + } + var Companion_instance_402; + function Companion_getInstance_402() { + return Companion_instance_402; + } + var $serializer_instance_389; + function $serializer_getInstance_389() { + if ($serializer_instance_389 === VOID) + new $serializer_389(); + return $serializer_instance_389; + } + var Companion_instance_403; + function Companion_getInstance_403() { + return Companion_instance_403; + } + var $serializer_instance_390; + function $serializer_getInstance_390() { + if ($serializer_instance_390 === VOID) + new $serializer_390(); + return $serializer_instance_390; + } + var Companion_instance_404; + function Companion_getInstance_404() { + return Companion_instance_404; + } + var $serializer_instance_391; + function $serializer_getInstance_391() { + if ($serializer_instance_391 === VOID) + new $serializer_391(); + return $serializer_instance_391; + } + var Companion_instance_405; + function Companion_getInstance_405() { + return Companion_instance_405; + } + var $serializer_instance_392; + function $serializer_getInstance_392() { + if ($serializer_instance_392 === VOID) + new $serializer_392(); + return $serializer_instance_392; + } + var Companion_instance_406; + function Companion_getInstance_406() { + return Companion_instance_406; + } + var $serializer_instance_393; + function $serializer_getInstance_393() { + if ($serializer_instance_393 === VOID) + new $serializer_393(); + return $serializer_instance_393; + } + var Companion_instance_407; + function Companion_getInstance_407() { + return Companion_instance_407; + } + var $serializer_instance_394; + function $serializer_getInstance_394() { + if ($serializer_instance_394 === VOID) + new $serializer_394(); + return $serializer_instance_394; + } + function KToolType_INTERACTIVE_DANMAKU_getInstance() { + KToolType_initEntries(); + return KToolType_INTERACTIVE_DANMAKU_instance; + } + function KToolType_INTERACTIVE_SETTINGS_getInstance() { + KToolType_initEntries(); + return KToolType_INTERACTIVE_SETTINGS_instance; + } + function KToolType_TAKE_OFF_getInstance() { + KToolType_initEntries(); + return KToolType_TAKE_OFF_instance; + } + function KToolType_UNIVERSAL_getInstance() { + KToolType_initEntries(); + return KToolType_UNIVERSAL_instance; + } + function KToolType_UNRECOGNIZED_getInstance() { + KToolType_initEntries(); + return KToolType_UNRECOGNIZED_instance; + } + function KExtType_EXT_NONE_getInstance() { + KExtType_initEntries(); + return KExtType_EXT_NONE_instance; + } + function KExtType_EXT_DATA_CENTER_getInstance() { + KExtType_initEntries(); + return KExtType_EXT_DATA_CENTER_instance; + } + function KExtType_EXT_DATA_EARNINGS_getInstance() { + KExtType_initEntries(); + return KExtType_EXT_DATA_EARNINGS_instance; + } + function KExtType_UNRECOGNIZED_getInstance() { + KExtType_initEntries(); + return KExtType_UNRECOGNIZED_instance; + } + function KRelateCardType_CARD_TYPE_UNKNOWN_getInstance() { + KRelateCardType_initEntries(); + return KRelateCardType_CARD_TYPE_UNKNOWN_instance; + } + function KRelateCardType_AV_getInstance() { + KRelateCardType_initEntries(); + return KRelateCardType_AV_instance; + } + function KRelateCardType_BANGUMI_getInstance() { + KRelateCardType_initEntries(); + return KRelateCardType_BANGUMI_instance; + } + function KRelateCardType_RESOURCE_getInstance() { + KRelateCardType_initEntries(); + return KRelateCardType_RESOURCE_instance; + } + function KRelateCardType_GAME_getInstance() { + KRelateCardType_initEntries(); + return KRelateCardType_GAME_instance; + } + function KRelateCardType_CM_getInstance() { + KRelateCardType_initEntries(); + return KRelateCardType_CM_instance; + } + function KRelateCardType_LIVE_getInstance() { + KRelateCardType_initEntries(); + return KRelateCardType_LIVE_instance; + } + function KRelateCardType_AI_RECOMMEND_getInstance() { + KRelateCardType_initEntries(); + return KRelateCardType_AI_RECOMMEND_instance; + } + function KRelateCardType_BANGUMI_AV_getInstance() { + KRelateCardType_initEntries(); + return KRelateCardType_BANGUMI_AV_instance; + } + function KRelateCardType_BANGUMI_UGC_getInstance() { + KRelateCardType_initEntries(); + return KRelateCardType_BANGUMI_UGC_instance; + } + function KRelateCardType_SPECIAL_getInstance() { + KRelateCardType_initEntries(); + return KRelateCardType_SPECIAL_instance; + } + function KRelateCardType_COURSE_getInstance() { + KRelateCardType_initEntries(); + return KRelateCardType_COURSE_instance; + } + function KRelateCardType_UNRECOGNIZED_getInstance() { + KRelateCardType_initEntries(); + return KRelateCardType_UNRECOGNIZED_instance; + } + function KJumpType_UNKNOWN_getInstance() { + KJumpType_initEntries(); + return KJumpType_UNKNOWN_instance; + } + function KJumpType_OPEN_URL_getInstance() { + KJumpType_initEntries(); + return KJumpType_OPEN_URL_instance; + } + function KJumpType_REFRESH_getInstance() { + KJumpType_initEntries(); + return KJumpType_REFRESH_instance; + } + function KJumpType_HALF_SCREEN_getInstance() { + KJumpType_initEntries(); + return KJumpType_HALF_SCREEN_instance; + } + function KJumpType_OPEN_URL_BY_OUTER_BROWSER_getInstance() { + KJumpType_initEntries(); + return KJumpType_OPEN_URL_BY_OUTER_BROWSER_instance; + } + function KJumpType_UNRECOGNIZED_getInstance() { + KJumpType_initEntries(); + return KJumpType_UNRECOGNIZED_instance; + } + function KHonorJumpType_UNKNOWN_getInstance() { + KHonorJumpType_initEntries(); + return KHonorJumpType_UNKNOWN_instance; + } + function KHonorJumpType_HONOR_OPEN_URL_getInstance() { + KHonorJumpType_initEntries(); + return KHonorJumpType_HONOR_OPEN_URL_instance; + } + function KHonorJumpType_HONOR_HALF_SCREEN_getInstance() { + KHonorJumpType_initEntries(); + return KHonorJumpType_HONOR_HALF_SCREEN_instance; + } + function KHonorJumpType_HONOR_POPUP_getInstance() { + KHonorJumpType_initEntries(); + return KHonorJumpType_HONOR_POPUP_instance; + } + function KHonorJumpType_UNRECOGNIZED_getInstance() { + KHonorJumpType_initEntries(); + return KHonorJumpType_UNRECOGNIZED_instance; + } + function KSerialSeasonCoverStyle_TITLE_getInstance() { + KSerialSeasonCoverStyle_initEntries(); + return KSerialSeasonCoverStyle_TITLE_instance; + } + function KSerialSeasonCoverStyle_PICTURE_getInstance() { + KSerialSeasonCoverStyle_initEntries(); + return KSerialSeasonCoverStyle_PICTURE_instance; + } + function KSerialSeasonCoverStyle_UNKNOWN_getInstance() { + KSerialSeasonCoverStyle_initEntries(); + return KSerialSeasonCoverStyle_UNKNOWN_instance; + } + function KSerialSeasonCoverStyle_UNRECOGNIZED_getInstance() { + KSerialSeasonCoverStyle_initEntries(); + return KSerialSeasonCoverStyle_UNRECOGNIZED_instance; + } + function KSeasonType_UNKNOWN_getInstance() { + KSeasonType_initEntries(); + return KSeasonType_UNKNOWN_instance; + } + function KSeasonType_BASE_getInstance() { + KSeasonType_initEntries(); + return KSeasonType_BASE_instance; + } + function KSeasonType_GOOD_getInstance() { + KSeasonType_initEntries(); + return KSeasonType_GOOD_instance; + } + function KSeasonType_UNRECOGNIZED_getInstance() { + KSeasonType_initEntries(); + return KSeasonType_UNRECOGNIZED_instance; + } + function KShowStyle_UNKNOWN_getInstance() { + KShowStyle_initEntries(); + return KShowStyle_UNKNOWN_instance; + } + function KShowStyle_ONE_ROW_ONE_COLUMN_getInstance() { + KShowStyle_initEntries(); + return KShowStyle_ONE_ROW_ONE_COLUMN_instance; + } + function KShowStyle_ONE_ROW_MULTI_COLUMN_getInstance() { + KShowStyle_initEntries(); + return KShowStyle_ONE_ROW_MULTI_COLUMN_instance; + } + function KShowStyle_ONE_COLUMN_MULTI_ROW_getInstance() { + KShowStyle_initEntries(); + return KShowStyle_ONE_COLUMN_MULTI_ROW_instance; + } + function KShowStyle_UNRECOGNIZED_getInstance() { + KShowStyle_initEntries(); + return KShowStyle_UNRECOGNIZED_instance; + } + function KOccupationType_STAFF_getInstance() { + KOccupationType_initEntries(); + return KOccupationType_STAFF_instance; + } + function KOccupationType_CAST_getInstance() { + KOccupationType_initEntries(); + return KOccupationType_CAST_instance; + } + function KOccupationType_UNKNOWN_TYPE_getInstance() { + KOccupationType_initEntries(); + return KOccupationType_UNKNOWN_TYPE_instance; + } + function KOccupationType_UNRECOGNIZED_getInstance() { + KOccupationType_initEntries(); + return KOccupationType_UNRECOGNIZED_instance; + } + function KAttentionRelationStatus_ARS_NONE_getInstance() { + KAttentionRelationStatus_initEntries(); + return KAttentionRelationStatus_ARS_NONE_instance; + } + function KAttentionRelationStatus_ARS_N0RELATION_getInstance() { + KAttentionRelationStatus_initEntries(); + return KAttentionRelationStatus_ARS_N0RELATION_instance; + } + function KAttentionRelationStatus_ARS_FOLLOWHIM_getInstance() { + KAttentionRelationStatus_initEntries(); + return KAttentionRelationStatus_ARS_FOLLOWHIM_instance; + } + function KAttentionRelationStatus_ARS_FOLLOWME_getInstance() { + KAttentionRelationStatus_initEntries(); + return KAttentionRelationStatus_ARS_FOLLOWME_instance; + } + function KAttentionRelationStatus_ARS_BUDDY_getInstance() { + KAttentionRelationStatus_initEntries(); + return KAttentionRelationStatus_ARS_BUDDY_instance; + } + function KAttentionRelationStatus_ARS_SPECIAL_getInstance() { + KAttentionRelationStatus_initEntries(); + return KAttentionRelationStatus_ARS_SPECIAL_instance; + } + function KAttentionRelationStatus_ARS_CANCELBLOCK_getInstance() { + KAttentionRelationStatus_initEntries(); + return KAttentionRelationStatus_ARS_CANCELBLOCK_instance; + } + function KAttentionRelationStatus_UNRECOGNIZED_getInstance() { + KAttentionRelationStatus_initEntries(); + return KAttentionRelationStatus_UNRECOGNIZED_instance; + } + function KModuleType_UNKNOWN_getInstance() { + KModuleType_initEntries(); + return KModuleType_UNKNOWN_instance; + } + function KModuleType_OGV_INTRODUCTION_getInstance() { + KModuleType_initEntries(); + return KModuleType_OGV_INTRODUCTION_instance; + } + function KModuleType_OGV_TITLE_getInstance() { + KModuleType_initEntries(); + return KModuleType_OGV_TITLE_instance; + } + function KModuleType_UGC_HEADLINE_getInstance() { + KModuleType_initEntries(); + return KModuleType_UGC_HEADLINE_instance; + } + function KModuleType_UGC_INTRODUCTION_getInstance() { + KModuleType_initEntries(); + return KModuleType_UGC_INTRODUCTION_instance; + } + function KModuleType_KING_POSITION_getInstance() { + KModuleType_initEntries(); + return KModuleType_KING_POSITION_instance; + } + function KModuleType_MASTER_USER_LIST_getInstance() { + KModuleType_initEntries(); + return KModuleType_MASTER_USER_LIST_instance; + } + function KModuleType_STAFFS_getInstance() { + KModuleType_initEntries(); + return KModuleType_STAFFS_instance; + } + function KModuleType_HONOR_getInstance() { + KModuleType_initEntries(); + return KModuleType_HONOR_instance; + } + function KModuleType_OWNER_getInstance() { + KModuleType_initEntries(); + return KModuleType_OWNER_instance; + } + function KModuleType_PAGE_getInstance() { + KModuleType_initEntries(); + return KModuleType_PAGE_instance; + } + function KModuleType_ACTIVITY_RESERVE_getInstance() { + KModuleType_initEntries(); + return KModuleType_ACTIVITY_RESERVE_instance; + } + function KModuleType_LIVE_ORDER_getInstance() { + KModuleType_initEntries(); + return KModuleType_LIVE_ORDER_instance; + } + function KModuleType_POSITIVE_getInstance() { + KModuleType_initEntries(); + return KModuleType_POSITIVE_instance; + } + function KModuleType_SECTION_getInstance() { + KModuleType_initEntries(); + return KModuleType_SECTION_instance; + } + function KModuleType_RELATE_getInstance() { + KModuleType_initEntries(); + return KModuleType_RELATE_instance; + } + function KModuleType_PUGV_getInstance() { + KModuleType_initEntries(); + return KModuleType_PUGV_instance; + } + function KModuleType_COLLECTION_CARD_getInstance() { + KModuleType_initEntries(); + return KModuleType_COLLECTION_CARD_instance; + } + function KModuleType_ACTIVITY_getInstance() { + KModuleType_initEntries(); + return KModuleType_ACTIVITY_instance; + } + function KModuleType_CHARACTER_getInstance() { + KModuleType_initEntries(); + return KModuleType_CHARACTER_instance; + } + function KModuleType_FOLLOW_LAYER_getInstance() { + KModuleType_initEntries(); + return KModuleType_FOLLOW_LAYER_instance; + } + function KModuleType_OGV_SEASONS_getInstance() { + KModuleType_initEntries(); + return KModuleType_OGV_SEASONS_instance; + } + function KModuleType_UGC_SEASON_getInstance() { + KModuleType_initEntries(); + return KModuleType_UGC_SEASON_instance; + } + function KModuleType_OGV_LIVE_RESERVE_getInstance() { + KModuleType_initEntries(); + return KModuleType_OGV_LIVE_RESERVE_instance; + } + function KModuleType_COMBINATION_EPISODE_getInstance() { + KModuleType_initEntries(); + return KModuleType_COMBINATION_EPISODE_instance; + } + function KModuleType_SPONSOR_getInstance() { + KModuleType_initEntries(); + return KModuleType_SPONSOR_instance; + } + function KModuleType_ACTIVITY_ENTRANCE_getInstance() { + KModuleType_initEntries(); + return KModuleType_ACTIVITY_ENTRANCE_instance; + } + function KModuleType_THEATRE_HOT_TOPIC_getInstance() { + KModuleType_initEntries(); + return KModuleType_THEATRE_HOT_TOPIC_instance; + } + function KModuleType_RELATED_RECOMMEND_getInstance() { + KModuleType_initEntries(); + return KModuleType_RELATED_RECOMMEND_instance; + } + function KModuleType_PAY_BAR_getInstance() { + KModuleType_initEntries(); + return KModuleType_PAY_BAR_instance; + } + function KModuleType_BANNER_getInstance() { + KModuleType_initEntries(); + return KModuleType_BANNER_instance; + } + function KModuleType_AUDIO_getInstance() { + KModuleType_initEntries(); + return KModuleType_AUDIO_instance; + } + function KModuleType_AGG_CARD_getInstance() { + KModuleType_initEntries(); + return KModuleType_AGG_CARD_instance; + } + function KModuleType_SINGLE_EP_getInstance() { + KModuleType_initEntries(); + return KModuleType_SINGLE_EP_instance; + } + function KModuleType_LIKE_COMMENT_getInstance() { + KModuleType_initEntries(); + return KModuleType_LIKE_COMMENT_instance; + } + function KModuleType_ATTENTION_RECOMMEND_getInstance() { + KModuleType_initEntries(); + return KModuleType_ATTENTION_RECOMMEND_instance; + } + function KModuleType_COVENANTER_getInstance() { + KModuleType_initEntries(); + return KModuleType_COVENANTER_instance; + } + function KModuleType_SPECIALTAG_getInstance() { + KModuleType_initEntries(); + return KModuleType_SPECIALTAG_instance; + } + function KModuleType_UPDATA_getInstance() { + KModuleType_initEntries(); + return KModuleType_UPDATA_instance; + } + function KModuleType_PROFESSION_APPROVAL_getInstance() { + KModuleType_initEntries(); + return KModuleType_PROFESSION_APPROVAL_instance; + } + function KModuleType_PUGV_SHOPPING_NOTICE_getInstance() { + KModuleType_initEntries(); + return KModuleType_PUGV_SHOPPING_NOTICE_instance; + } + function KModuleType_PUGV_FAQ_getInstance() { + KModuleType_initEntries(); + return KModuleType_PUGV_FAQ_instance; + } + function KModuleType_PUGV_SEASON_DESCRIPTION_getInstance() { + KModuleType_initEntries(); + return KModuleType_PUGV_SEASON_DESCRIPTION_instance; + } + function KModuleType_PUGV_SEASON_RECOMMEND_getInstance() { + KModuleType_initEntries(); + return KModuleType_PUGV_SEASON_RECOMMEND_instance; + } + function KModuleType_PUGV_SEASON_PUBLISHER_getInstance() { + KModuleType_initEntries(); + return KModuleType_PUGV_SEASON_PUBLISHER_instance; + } + function KModuleType_PUGV_SEASON_SELECTION_getInstance() { + KModuleType_initEntries(); + return KModuleType_PUGV_SEASON_SELECTION_instance; + } + function KModuleType_PUGV_SEASON_PRIMARY_INFO_getInstance() { + KModuleType_initEntries(); + return KModuleType_PUGV_SEASON_PRIMARY_INFO_instance; + } + function KModuleType_PUGV_COOPERATION_APPLICATION_getInstance() { + KModuleType_initEntries(); + return KModuleType_PUGV_COOPERATION_APPLICATION_instance; + } + function KModuleType_UP_VIDEO_TOOL_getInstance() { + KModuleType_initEntries(); + return KModuleType_UP_VIDEO_TOOL_instance; + } + function KModuleType_PUGV_ZONE_getInstance() { + KModuleType_initEntries(); + return KModuleType_PUGV_ZONE_instance; + } + function KModuleType_PUGV_SERIES_getInstance() { + KModuleType_initEntries(); + return KModuleType_PUGV_SERIES_instance; + } + function KModuleType_PUGV_PACKAGE_getInstance() { + KModuleType_initEntries(); + return KModuleType_PUGV_PACKAGE_instance; + } + function KModuleType_UNRECOGNIZED_getInstance() { + KModuleType_initEntries(); + return KModuleType_UNRECOGNIZED_instance; + } + function KPugvSeasonPrimarySellPointType_UNSPECIFIED_getInstance() { + KPugvSeasonPrimarySellPointType_initEntries(); + return KPugvSeasonPrimarySellPointType_UNSPECIFIED_instance; + } + function KPugvSeasonPrimarySellPointType_MANUAL_getInstance() { + KPugvSeasonPrimarySellPointType_initEntries(); + return KPugvSeasonPrimarySellPointType_MANUAL_instance; + } + function KPugvSeasonPrimarySellPointType_AUTO_getInstance() { + KPugvSeasonPrimarySellPointType_initEntries(); + return KPugvSeasonPrimarySellPointType_AUTO_instance; + } + function KPugvSeasonPrimarySellPointType_UNRECOGNIZED_getInstance() { + KPugvSeasonPrimarySellPointType_initEntries(); + return KPugvSeasonPrimarySellPointType_UNRECOGNIZED_instance; + } + function KPugvSeasonDescriptionType_UNSPECIFIED_getInstance() { + KPugvSeasonDescriptionType_initEntries(); + return KPugvSeasonDescriptionType_UNSPECIFIED_instance; + } + function KPugvSeasonDescriptionType_TEXT_getInstance() { + KPugvSeasonDescriptionType_initEntries(); + return KPugvSeasonDescriptionType_TEXT_instance; + } + function KPugvSeasonDescriptionType_IMAGE_getInstance() { + KPugvSeasonDescriptionType_initEntries(); + return KPugvSeasonDescriptionType_IMAGE_instance; + } + function KPugvSeasonDescriptionType_UNRECOGNIZED_getInstance() { + KPugvSeasonDescriptionType_initEntries(); + return KPugvSeasonDescriptionType_UNRECOGNIZED_instance; + } + function KPugvZoneItemType_UNSPECIFIED_getInstance() { + KPugvZoneItemType_initEntries(); + return KPugvZoneItemType_UNSPECIFIED_instance; + } + function KPugvZoneItemType_SEASON_getInstance() { + KPugvZoneItemType_initEntries(); + return KPugvZoneItemType_SEASON_instance; + } + function KPugvZoneItemType_POSTGRADUATE_getInstance() { + KPugvZoneItemType_initEntries(); + return KPugvZoneItemType_POSTGRADUATE_instance; + } + function KPugvZoneItemType_UNRECOGNIZED_getInstance() { + KPugvZoneItemType_initEntries(); + return KPugvZoneItemType_UNRECOGNIZED_instance; + } + function KPugvSeriesItemState_PUGV_SERIRES_ITEM_STATE_UNSPECIAL_getInstance() { + KPugvSeriesItemState_initEntries(); + return KPugvSeriesItemState_PUGV_SERIRES_ITEM_STATE_UNSPECIAL_instance; + } + function KPugvSeriesItemState_PUGV_SERIRES_ITEM_STATE_NOT_START_getInstance() { + KPugvSeriesItemState_initEntries(); + return KPugvSeriesItemState_PUGV_SERIRES_ITEM_STATE_NOT_START_instance; + } + function KPugvSeriesItemState_PUGV_SERIRES_ITEM_STATE_START_getInstance() { + KPugvSeriesItemState_initEntries(); + return KPugvSeriesItemState_PUGV_SERIRES_ITEM_STATE_START_instance; + } + function KPugvSeriesItemState_PUGV_SERIRES_ITEM_STATE_END_getInstance() { + KPugvSeriesItemState_initEntries(); + return KPugvSeriesItemState_PUGV_SERIRES_ITEM_STATE_END_instance; + } + function KPugvSeriesItemState_UNRECOGNIZED_getInstance() { + KPugvSeriesItemState_initEntries(); + return KPugvSeriesItemState_UNRECOGNIZED_instance; + } + function KHonorType_HONOR_NONE_getInstance() { + KHonorType_initEntries(); + return KHonorType_HONOR_NONE_instance; + } + function KHonorType_PLAYLET_getInstance() { + KHonorType_initEntries(); + return KHonorType_PLAYLET_instance; + } + function KHonorType_ARGUE_getInstance() { + KHonorType_initEntries(); + return KHonorType_ARGUE_instance; + } + function KHonorType_NOTICE_getInstance() { + KHonorType_initEntries(); + return KHonorType_NOTICE_instance; + } + function KHonorType_GUIDANCE_getInstance() { + KHonorType_initEntries(); + return KHonorType_GUIDANCE_instance; + } + function KHonorType_HONOR_BILI_RANK_getInstance() { + KHonorType_initEntries(); + return KHonorType_HONOR_BILI_RANK_instance; + } + function KHonorType_HONOR_WEEKLY_RANK_getInstance() { + KHonorType_initEntries(); + return KHonorType_HONOR_WEEKLY_RANK_instance; + } + function KHonorType_HONOR_DAILY_RANK_getInstance() { + KHonorType_initEntries(); + return KHonorType_HONOR_DAILY_RANK_instance; + } + function KHonorType_HONOR_CHANNEL_getInstance() { + KHonorType_initEntries(); + return KHonorType_HONOR_CHANNEL_instance; + } + function KHonorType_HONOR_MUSIC_getInstance() { + KHonorType_initEntries(); + return KHonorType_HONOR_MUSIC_instance; + } + function KHonorType_HONOR_REPLY_getInstance() { + KHonorType_initEntries(); + return KHonorType_HONOR_REPLY_instance; + } + function KHonorType_HONOR_PROFESSION_getInstance() { + KHonorType_initEntries(); + return KHonorType_HONOR_PROFESSION_instance; + } + function KHonorType_UNRECOGNIZED_getInstance() { + KHonorType_initEntries(); + return KHonorType_UNRECOGNIZED_instance; + } + function KDescType_UNKNOWN_getInstance() { + KDescType_initEntries(); + return KDescType_UNKNOWN_instance; + } + function KDescType_TEXT_getInstance() { + KDescType_initEntries(); + return KDescType_TEXT_instance; + } + function KDescType_AT_getInstance() { + KDescType_initEntries(); + return KDescType_AT_instance; + } + function KDescType_UNRECOGNIZED_getInstance() { + KDescType_initEntries(); + return KDescType_UNRECOGNIZED_instance; + } + function KKingPositionType_KING_POS_UNSPECIFIED_getInstance() { + KKingPositionType_initEntries(); + return KKingPositionType_KING_POS_UNSPECIFIED_instance; + } + function KKingPositionType_LIKE_getInstance() { + KKingPositionType_initEntries(); + return KKingPositionType_LIKE_instance; + } + function KKingPositionType_DISLIKE_getInstance() { + KKingPositionType_initEntries(); + return KKingPositionType_DISLIKE_instance; + } + function KKingPositionType_COIN_getInstance() { + KKingPositionType_initEntries(); + return KKingPositionType_COIN_instance; + } + function KKingPositionType_FAV_getInstance() { + KKingPositionType_initEntries(); + return KKingPositionType_FAV_instance; + } + function KKingPositionType_SHARE_getInstance() { + KKingPositionType_initEntries(); + return KKingPositionType_SHARE_instance; + } + function KKingPositionType_CACHE_getInstance() { + KKingPositionType_initEntries(); + return KKingPositionType_CACHE_instance; + } + function KKingPositionType_DANMAKU_getInstance() { + KKingPositionType_initEntries(); + return KKingPositionType_DANMAKU_instance; + } + function KKingPositionType_UNRECOGNIZED_getInstance() { + KKingPositionType_initEntries(); + return KKingPositionType_UNRECOGNIZED_instance; + } + function KReserveBizType_BIZ_TYPE_NONE_getInstance() { + KReserveBizType_initEntries(); + return KReserveBizType_BIZ_TYPE_NONE_instance; + } + function KReserveBizType_BIZ_TYPE_RESERVE_ACTIVITY_getInstance() { + KReserveBizType_initEntries(); + return KReserveBizType_BIZ_TYPE_RESERVE_ACTIVITY_instance; + } + function KReserveBizType_BIZ_TYPE_FAV_SEASON_getInstance() { + KReserveBizType_initEntries(); + return KReserveBizType_BIZ_TYPE_FAV_SEASON_instance; + } + function KReserveBizType_UNRECOGNIZED_getInstance() { + KReserveBizType_initEntries(); + return KReserveBizType_UNRECOGNIZED_instance; + } + function values$factory_37() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_38() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_39() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_40() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_41() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_42() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_43() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_44() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_45() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_46() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_47() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_48() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_49() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_50() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_51() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_52() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_53() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_54() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_55() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function dataNumber$factory_0() { + return getPropertyCallableRef('dataNumber', 1, KProperty1, function (receiver) { + return _get_dataNumber__hqvc14_0(receiver); + }, null); + } + function dataValues$factory_0() { + return getPropertyCallableRef('dataValues', 1, KProperty1, function (receiver) { + return receiver.dataValues; + }, null); + } + function cardNumber$factory() { + return getPropertyCallableRef('cardNumber', 1, KProperty1, function (receiver) { + return _get_cardNumber__g5uxbm(receiver); + }, null); + } + function cardValues$factory() { + return getPropertyCallableRef('cardValues', 1, KProperty1, function (receiver) { + return receiver.cardValues; + }, null); + } + function dataNumber$factory_1() { + return getPropertyCallableRef('dataNumber', 1, KProperty1, function (receiver) { + return _get_dataNumber__hqvc14_1(receiver); + }, null); + } + function dataValues$factory_1() { + return getPropertyCallableRef('dataValues', 1, KProperty1, function (receiver) { + return receiver.dataValues; + }, null); + } + function orderParamNumber$factory() { + return getPropertyCallableRef('orderParamNumber', 1, KProperty1, function (receiver) { + return _get_orderParamNumber__ykhf0d(receiver); + }, null); + } + function orderParamValues$factory() { + return getPropertyCallableRef('orderParamValues', 1, KProperty1, function (receiver) { + return receiver.orderParamValues; + }, null); + } + function contentNumber$factory_0() { + return getPropertyCallableRef('contentNumber', 1, KProperty1, function (receiver) { + return _get_contentNumber__iirtht_0(receiver); + }, null); + } + function contentValues$factory_0() { + return getPropertyCallableRef('contentValues', 1, KProperty1, function (receiver) { + return receiver.contentValues; + }, null); + } + function extendNumber$factory() { + return getPropertyCallableRef('extendNumber', 1, KProperty1, function (receiver) { + return _get_extendNumber__l91wt4(receiver); + }, null); + } + function extendValues$factory() { + return getPropertyCallableRef('extendValues', 1, KProperty1, function (receiver) { + return receiver.extendValues; + }, null); + } + function extendNumber$factory_0() { + return getPropertyCallableRef('extendNumber', 1, KProperty1, function (receiver) { + return _get_extendNumber__l91wt4_0(receiver); + }, null); + } + function extendValues$factory_0() { + return getPropertyCallableRef('extendValues', 1, KProperty1, function (receiver) { + return receiver.extendValues; + }, null); + } + function _get_$cachedSerializer__te6jhj_56($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KECode$Companion$values$delegate$lambda() { + return listOf_0([KECode_CODE_DEFAULT_getInstance(), KECode_CODE_404_getInstance(), KECode_CODE_TEENAGER_getInstance()]); + } + function KECode$Companion$_anonymous__of9it4() { + return $serializer_getInstance_395(); + } + var KECode_CODE_DEFAULT_instance; + var KECode_CODE_404_instance; + var KECode_CODE_TEENAGER_instance; + var KECode_UNRECOGNIZED_instance; + var Companion_instance_408; + function Companion_getInstance_408() { + KECode_initEntries(); + if (Companion_instance_408 === VOID) + new Companion_408(); + return Companion_instance_408; + } + var $serializer_instance_395; + function $serializer_getInstance_395() { + KECode_initEntries(); + if ($serializer_instance_395 === VOID) + new $serializer_395(); + return $serializer_instance_395; + } + function values_56() { + return [KECode_CODE_DEFAULT_getInstance(), KECode_CODE_404_getInstance(), KECode_CODE_TEENAGER_getInstance(), KECode_UNRECOGNIZED_getInstance()]; + } + function valueOf_56(value) { + switch (value) { + case 'CODE_DEFAULT': + return KECode_CODE_DEFAULT_getInstance(); + case 'CODE_404': + return KECode_CODE_404_getInstance(); + case 'CODE_TEENAGER': + return KECode_CODE_TEENAGER_getInstance(); + case 'UNRECOGNIZED': + return KECode_UNRECOGNIZED_getInstance(); + default: + KECode_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KECode_entriesInitialized; + function KECode_initEntries() { + if (KECode_entriesInitialized) + return Unit_instance; + KECode_entriesInitialized = true; + KECode_CODE_DEFAULT_instance = new KECode('CODE_DEFAULT', 0, 0); + KECode_CODE_404_instance = new KECode('CODE_404', 1, 1); + KECode_CODE_TEENAGER_instance = new KECode('CODE_TEENAGER', 2, 78301); + KECode_UNRECOGNIZED_instance = new KECode('UNRECOGNIZED', 3, -1); + Companion_getInstance_408(); + } + function _get_$cachedSerializer__te6jhj_57($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KPlayToastEnum$Companion$values$delegate$lambda() { + return listOf_0([KPlayToastEnum_PLAYTOAST_UNKNOWN_getInstance(), KPlayToastEnum_PLAYTOAST_CHARGINGPLUS_getInstance()]); + } + function KPlayToastEnum$Companion$_anonymous__7x2txi() { + return $serializer_getInstance_396(); + } + var KPlayToastEnum_PLAYTOAST_UNKNOWN_instance; + var KPlayToastEnum_PLAYTOAST_CHARGINGPLUS_instance; + var KPlayToastEnum_UNRECOGNIZED_instance; + var Companion_instance_409; + function Companion_getInstance_409() { + KPlayToastEnum_initEntries(); + if (Companion_instance_409 === VOID) + new Companion_409(); + return Companion_instance_409; + } + var $serializer_instance_396; + function $serializer_getInstance_396() { + KPlayToastEnum_initEntries(); + if ($serializer_instance_396 === VOID) + new $serializer_396(); + return $serializer_instance_396; + } + function values_57() { + return [KPlayToastEnum_PLAYTOAST_UNKNOWN_getInstance(), KPlayToastEnum_PLAYTOAST_CHARGINGPLUS_getInstance(), KPlayToastEnum_UNRECOGNIZED_getInstance()]; + } + function valueOf_57(value) { + switch (value) { + case 'PLAYTOAST_UNKNOWN': + return KPlayToastEnum_PLAYTOAST_UNKNOWN_getInstance(); + case 'PLAYTOAST_CHARGINGPLUS': + return KPlayToastEnum_PLAYTOAST_CHARGINGPLUS_getInstance(); + case 'UNRECOGNIZED': + return KPlayToastEnum_UNRECOGNIZED_getInstance(); + default: + KPlayToastEnum_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KPlayToastEnum_entriesInitialized; + function KPlayToastEnum_initEntries() { + if (KPlayToastEnum_entriesInitialized) + return Unit_instance; + KPlayToastEnum_entriesInitialized = true; + KPlayToastEnum_PLAYTOAST_UNKNOWN_instance = new KPlayToastEnum('PLAYTOAST_UNKNOWN', 0, 0); + KPlayToastEnum_PLAYTOAST_CHARGINGPLUS_instance = new KPlayToastEnum('PLAYTOAST_CHARGINGPLUS', 1, 1); + KPlayToastEnum_UNRECOGNIZED_instance = new KPlayToastEnum('UNRECOGNIZED', 2, -1); + Companion_getInstance_409(); + } + function _get_$cachedSerializer__te6jhj_58($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KJumpShowType$Companion$values$delegate$lambda() { + return listOf_0([KJumpShowType_JST_DEFAULT_getInstance(), KJumpShowType_JST_FULLSCREEN_getInstance(), KJumpShowType_JST_HALFSCREEN_getInstance()]); + } + function KJumpShowType$Companion$_anonymous__3ecr6n() { + return $serializer_getInstance_397(); + } + var KJumpShowType_JST_DEFAULT_instance; + var KJumpShowType_JST_FULLSCREEN_instance; + var KJumpShowType_JST_HALFSCREEN_instance; + var KJumpShowType_UNRECOGNIZED_instance; + var Companion_instance_410; + function Companion_getInstance_410() { + KJumpShowType_initEntries(); + if (Companion_instance_410 === VOID) + new Companion_410(); + return Companion_instance_410; + } + var $serializer_instance_397; + function $serializer_getInstance_397() { + KJumpShowType_initEntries(); + if ($serializer_instance_397 === VOID) + new $serializer_397(); + return $serializer_instance_397; + } + function values_58() { + return [KJumpShowType_JST_DEFAULT_getInstance(), KJumpShowType_JST_FULLSCREEN_getInstance(), KJumpShowType_JST_HALFSCREEN_getInstance(), KJumpShowType_UNRECOGNIZED_getInstance()]; + } + function valueOf_58(value) { + switch (value) { + case 'JST_DEFAULT': + return KJumpShowType_JST_DEFAULT_getInstance(); + case 'JST_FULLSCREEN': + return KJumpShowType_JST_FULLSCREEN_getInstance(); + case 'JST_HALFSCREEN': + return KJumpShowType_JST_HALFSCREEN_getInstance(); + case 'UNRECOGNIZED': + return KJumpShowType_UNRECOGNIZED_getInstance(); + default: + KJumpShowType_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KJumpShowType_entriesInitialized; + function KJumpShowType_initEntries() { + if (KJumpShowType_entriesInitialized) + return Unit_instance; + KJumpShowType_entriesInitialized = true; + KJumpShowType_JST_DEFAULT_instance = new KJumpShowType('JST_DEFAULT', 0, 0); + KJumpShowType_JST_FULLSCREEN_instance = new KJumpShowType('JST_FULLSCREEN', 1, 1); + KJumpShowType_JST_HALFSCREEN_instance = new KJumpShowType('JST_HALFSCREEN', 2, 2); + KJumpShowType_UNRECOGNIZED_instance = new KJumpShowType('UNRECOGNIZED', 3, -1); + Companion_getInstance_410(); + } + function _get_$cachedSerializer__te6jhj_59($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KTabType$Companion$values$delegate$lambda() { + return listOf_0([KTabType_TAB_NONE_getInstance(), KTabType_TAB_INTRODUCTION_getInstance(), KTabType_TAB_REPLY_getInstance(), KTabType_TAB_OGV_ACTIVITY_getInstance(), KTabType_TAB_CATALOG_getInstance()]); + } + function KTabType$Companion$_anonymous__rajoqd() { + return $serializer_getInstance_398(); + } + var KTabType_TAB_NONE_instance; + var KTabType_TAB_INTRODUCTION_instance; + var KTabType_TAB_REPLY_instance; + var KTabType_TAB_OGV_ACTIVITY_instance; + var KTabType_TAB_CATALOG_instance; + var KTabType_UNRECOGNIZED_instance; + var Companion_instance_411; + function Companion_getInstance_411() { + KTabType_initEntries(); + if (Companion_instance_411 === VOID) + new Companion_411(); + return Companion_instance_411; + } + var $serializer_instance_398; + function $serializer_getInstance_398() { + KTabType_initEntries(); + if ($serializer_instance_398 === VOID) + new $serializer_398(); + return $serializer_instance_398; + } + function values_59() { + return [KTabType_TAB_NONE_getInstance(), KTabType_TAB_INTRODUCTION_getInstance(), KTabType_TAB_REPLY_getInstance(), KTabType_TAB_OGV_ACTIVITY_getInstance(), KTabType_TAB_CATALOG_getInstance(), KTabType_UNRECOGNIZED_getInstance()]; + } + function valueOf_59(value) { + switch (value) { + case 'TAB_NONE': + return KTabType_TAB_NONE_getInstance(); + case 'TAB_INTRODUCTION': + return KTabType_TAB_INTRODUCTION_getInstance(); + case 'TAB_REPLY': + return KTabType_TAB_REPLY_getInstance(); + case 'TAB_OGV_ACTIVITY': + return KTabType_TAB_OGV_ACTIVITY_getInstance(); + case 'TAB_CATALOG': + return KTabType_TAB_CATALOG_getInstance(); + case 'UNRECOGNIZED': + return KTabType_UNRECOGNIZED_getInstance(); + default: + KTabType_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KTabType_entriesInitialized; + function KTabType_initEntries() { + if (KTabType_entriesInitialized) + return Unit_instance; + KTabType_entriesInitialized = true; + KTabType_TAB_NONE_instance = new KTabType('TAB_NONE', 0, 0); + KTabType_TAB_INTRODUCTION_instance = new KTabType('TAB_INTRODUCTION', 1, 1); + KTabType_TAB_REPLY_instance = new KTabType('TAB_REPLY', 2, 2); + KTabType_TAB_OGV_ACTIVITY_instance = new KTabType('TAB_OGV_ACTIVITY', 3, 3); + KTabType_TAB_CATALOG_instance = new KTabType('TAB_CATALOG', 4, 4); + KTabType_UNRECOGNIZED_instance = new KTabType('UNRECOGNIZED', 5, -1); + Companion_getInstance_411(); + } + function _get_$cachedSerializer__te6jhj_60($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KPageCategory$Companion$values$delegate$lambda() { + return listOf_0([KPageCategory_COMMON_PAGE_getInstance(), KPageCategory_ACTIVITY_PAGE_getInstance()]); + } + function KPageCategory$Companion$_anonymous__l2pclz() { + return $serializer_getInstance_399(); + } + var KPageCategory_COMMON_PAGE_instance; + var KPageCategory_ACTIVITY_PAGE_instance; + var KPageCategory_UNRECOGNIZED_instance; + var Companion_instance_412; + function Companion_getInstance_412() { + KPageCategory_initEntries(); + if (Companion_instance_412 === VOID) + new Companion_412(); + return Companion_instance_412; + } + var $serializer_instance_399; + function $serializer_getInstance_399() { + KPageCategory_initEntries(); + if ($serializer_instance_399 === VOID) + new $serializer_399(); + return $serializer_instance_399; + } + function values_60() { + return [KPageCategory_COMMON_PAGE_getInstance(), KPageCategory_ACTIVITY_PAGE_getInstance(), KPageCategory_UNRECOGNIZED_getInstance()]; + } + function valueOf_60(value) { + switch (value) { + case 'COMMON_PAGE': + return KPageCategory_COMMON_PAGE_getInstance(); + case 'ACTIVITY_PAGE': + return KPageCategory_ACTIVITY_PAGE_getInstance(); + case 'UNRECOGNIZED': + return KPageCategory_UNRECOGNIZED_getInstance(); + default: + KPageCategory_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KPageCategory_entriesInitialized; + function KPageCategory_initEntries() { + if (KPageCategory_entriesInitialized) + return Unit_instance; + KPageCategory_entriesInitialized = true; + KPageCategory_COMMON_PAGE_instance = new KPageCategory('COMMON_PAGE', 0, 0); + KPageCategory_ACTIVITY_PAGE_instance = new KPageCategory('ACTIVITY_PAGE', 1, 1); + KPageCategory_UNRECOGNIZED_instance = new KPageCategory('UNRECOGNIZED', 2, -1); + Companion_getInstance_412(); + } + function _get_$cachedSerializer__te6jhj_61($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KBizType$Companion$values$delegate$lambda_0() { + return listOf_0([KBizType_NONE_getInstance(), KBizType_FOLLOW_VIDEO_getInstance(), KBizType_RESERVE_ACTIVITY_getInstance(), KBizType_JUMP_LINK_getInstance(), KBizType_FAV_SEASON_getInstance(), KBizType_RESERVE_GAME_getInstance()]); + } + function KBizType$Companion$_anonymous__qvpjhv_0() { + return $serializer_getInstance_400(); + } + var KBizType_NONE_instance; + var KBizType_FOLLOW_VIDEO_instance; + var KBizType_RESERVE_ACTIVITY_instance; + var KBizType_JUMP_LINK_instance; + var KBizType_FAV_SEASON_instance; + var KBizType_RESERVE_GAME_instance; + var KBizType_UNRECOGNIZED_instance_0; + var Companion_instance_413; + function Companion_getInstance_413() { + KBizType_initEntries_0(); + if (Companion_instance_413 === VOID) + new Companion_413(); + return Companion_instance_413; + } + var $serializer_instance_400; + function $serializer_getInstance_400() { + KBizType_initEntries_0(); + if ($serializer_instance_400 === VOID) + new $serializer_400(); + return $serializer_instance_400; + } + function values_61() { + return [KBizType_NONE_getInstance(), KBizType_FOLLOW_VIDEO_getInstance(), KBizType_RESERVE_ACTIVITY_getInstance(), KBizType_JUMP_LINK_getInstance(), KBizType_FAV_SEASON_getInstance(), KBizType_RESERVE_GAME_getInstance(), KBizType_UNRECOGNIZED_getInstance_0()]; + } + function valueOf_61(value) { + switch (value) { + case 'NONE': + return KBizType_NONE_getInstance(); + case 'FOLLOW_VIDEO': + return KBizType_FOLLOW_VIDEO_getInstance(); + case 'RESERVE_ACTIVITY': + return KBizType_RESERVE_ACTIVITY_getInstance(); + case 'JUMP_LINK': + return KBizType_JUMP_LINK_getInstance(); + case 'FAV_SEASON': + return KBizType_FAV_SEASON_getInstance(); + case 'RESERVE_GAME': + return KBizType_RESERVE_GAME_getInstance(); + case 'UNRECOGNIZED': + return KBizType_UNRECOGNIZED_getInstance_0(); + default: + KBizType_initEntries_0(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KBizType_entriesInitialized_0; + function KBizType_initEntries_0() { + if (KBizType_entriesInitialized_0) + return Unit_instance; + KBizType_entriesInitialized_0 = true; + KBizType_NONE_instance = new KBizType_0('NONE', 0, 0); + KBizType_FOLLOW_VIDEO_instance = new KBizType_0('FOLLOW_VIDEO', 1, 1); + KBizType_RESERVE_ACTIVITY_instance = new KBizType_0('RESERVE_ACTIVITY', 2, 2); + KBizType_JUMP_LINK_instance = new KBizType_0('JUMP_LINK', 3, 3); + KBizType_FAV_SEASON_instance = new KBizType_0('FAV_SEASON', 4, 4); + KBizType_RESERVE_GAME_instance = new KBizType_0('RESERVE_GAME', 5, 5); + KBizType_UNRECOGNIZED_instance_0 = new KBizType_0('UNRECOGNIZED', 6, -1); + Companion_getInstance_413(); + } + function _get_$cachedSerializer__te6jhj_62($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KPageType$Companion$values$delegate$lambda() { + return listOf_0([KPageType_H5_getInstance(), KPageType_NA_getInstance()]); + } + function KPageType$Companion$_anonymous__4he9cr() { + return $serializer_getInstance_401(); + } + var KPageType_H5_instance; + var KPageType_NA_instance; + var KPageType_UNRECOGNIZED_instance; + var Companion_instance_414; + function Companion_getInstance_414() { + KPageType_initEntries(); + if (Companion_instance_414 === VOID) + new Companion_414(); + return Companion_instance_414; + } + var $serializer_instance_401; + function $serializer_getInstance_401() { + KPageType_initEntries(); + if ($serializer_instance_401 === VOID) + new $serializer_401(); + return $serializer_instance_401; + } + function values_62() { + return [KPageType_H5_getInstance(), KPageType_NA_getInstance(), KPageType_UNRECOGNIZED_getInstance()]; + } + function valueOf_62(value) { + switch (value) { + case 'H5': + return KPageType_H5_getInstance(); + case 'NA': + return KPageType_NA_getInstance(); + case 'UNRECOGNIZED': + return KPageType_UNRECOGNIZED_getInstance(); + default: + KPageType_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KPageType_entriesInitialized; + function KPageType_initEntries() { + if (KPageType_entriesInitialized) + return Unit_instance; + KPageType_entriesInitialized = true; + KPageType_H5_instance = new KPageType('H5', 0, 0); + KPageType_NA_instance = new KPageType('NA', 1, 1); + KPageType_UNRECOGNIZED_instance = new KPageType('UNRECOGNIZED', 2, -1); + Companion_getInstance_414(); + } + function _get_$cachedSerializer__te6jhj_63($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KUnionType$Companion$values$delegate$lambda() { + return listOf_0([KUnionType_UGC_getInstance(), KUnionType_OGV_getInstance(), KUnionType_PUGV_getInstance()]); + } + function KUnionType$Companion$_anonymous__v0w80h() { + return $serializer_getInstance_402(); + } + var KUnionType_UGC_instance; + var KUnionType_OGV_instance; + var KUnionType_PUGV_instance; + var KUnionType_UNRECOGNIZED_instance; + var Companion_instance_415; + function Companion_getInstance_415() { + KUnionType_initEntries(); + if (Companion_instance_415 === VOID) + new Companion_415(); + return Companion_instance_415; + } + var $serializer_instance_402; + function $serializer_getInstance_402() { + KUnionType_initEntries(); + if ($serializer_instance_402 === VOID) + new $serializer_402(); + return $serializer_instance_402; + } + function values_63() { + return [KUnionType_UGC_getInstance(), KUnionType_OGV_getInstance(), KUnionType_PUGV_getInstance(), KUnionType_UNRECOGNIZED_getInstance()]; + } + function valueOf_63(value) { + switch (value) { + case 'UGC': + return KUnionType_UGC_getInstance(); + case 'OGV': + return KUnionType_OGV_getInstance(); + case 'PUGV': + return KUnionType_PUGV_getInstance(); + case 'UNRECOGNIZED': + return KUnionType_UNRECOGNIZED_getInstance(); + default: + KUnionType_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KUnionType_entriesInitialized; + function KUnionType_initEntries() { + if (KUnionType_entriesInitialized) + return Unit_instance; + KUnionType_entriesInitialized = true; + KUnionType_UGC_instance = new KUnionType('UGC', 0, 0); + KUnionType_OGV_instance = new KUnionType('OGV', 1, 1); + KUnionType_PUGV_instance = new KUnionType('PUGV', 2, 2); + KUnionType_UNRECOGNIZED_instance = new KUnionType('UNRECOGNIZED', 3, -1); + Companion_getInstance_415(); + } + function _get_$cachedSerializer__te6jhj_64($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KMaterialSource$Companion$values$delegate$lambda() { + return listOf_0([KMaterialSource_DEFAULT_getInstance(), KMaterialSource_BIJIAN_getInstance()]); + } + function KMaterialSource$Companion$_anonymous__a7cl3y() { + return $serializer_getInstance_403(); + } + var KMaterialSource_DEFAULT_instance; + var KMaterialSource_BIJIAN_instance; + var KMaterialSource_UNRECOGNIZED_instance; + var Companion_instance_416; + function Companion_getInstance_416() { + KMaterialSource_initEntries(); + if (Companion_instance_416 === VOID) + new Companion_416(); + return Companion_instance_416; + } + var $serializer_instance_403; + function $serializer_getInstance_403() { + KMaterialSource_initEntries(); + if ($serializer_instance_403 === VOID) + new $serializer_403(); + return $serializer_instance_403; + } + function values_64() { + return [KMaterialSource_DEFAULT_getInstance(), KMaterialSource_BIJIAN_getInstance(), KMaterialSource_UNRECOGNIZED_getInstance()]; + } + function valueOf_64(value) { + switch (value) { + case 'DEFAULT': + return KMaterialSource_DEFAULT_getInstance(); + case 'BIJIAN': + return KMaterialSource_BIJIAN_getInstance(); + case 'UNRECOGNIZED': + return KMaterialSource_UNRECOGNIZED_getInstance(); + default: + KMaterialSource_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KMaterialSource_entriesInitialized; + function KMaterialSource_initEntries() { + if (KMaterialSource_entriesInitialized) + return Unit_instance; + KMaterialSource_entriesInitialized = true; + KMaterialSource_DEFAULT_instance = new KMaterialSource('DEFAULT', 0, 0); + KMaterialSource_BIJIAN_instance = new KMaterialSource('BIJIAN', 1, 1); + KMaterialSource_UNRECOGNIZED_instance = new KMaterialSource('UNRECOGNIZED', 2, -1); + Companion_getInstance_416(); + } + function _get_$cachedSerializer__te6jhj_65($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KMaterialBizType$Companion$values$delegate$lambda() { + return listOf_0([KMaterialBizType_NONE_getInstance(), KMaterialBizType_ACTIVITY_getInstance(), KMaterialBizType_BGM_getInstance(), KMaterialBizType_EFFECT_getInstance(), KMaterialBizType_SHOOT_SAME_getInstance(), KMaterialBizType_SHOOT_TOGETHER_getInstance(), KMaterialBizType_ACTIVITY_ICON_getInstance(), KMaterialBizType_NEW_BGM_getInstance(), KMaterialBizType_GENERAL_TYPE_getInstance()]); + } + function KMaterialBizType$Companion$_anonymous__xqgp3g() { + return $serializer_getInstance_404(); + } + var KMaterialBizType_NONE_instance; + var KMaterialBizType_ACTIVITY_instance; + var KMaterialBizType_BGM_instance; + var KMaterialBizType_EFFECT_instance; + var KMaterialBizType_SHOOT_SAME_instance; + var KMaterialBizType_SHOOT_TOGETHER_instance; + var KMaterialBizType_ACTIVITY_ICON_instance; + var KMaterialBizType_NEW_BGM_instance; + var KMaterialBizType_GENERAL_TYPE_instance; + var KMaterialBizType_UNRECOGNIZED_instance; + var Companion_instance_417; + function Companion_getInstance_417() { + KMaterialBizType_initEntries(); + if (Companion_instance_417 === VOID) + new Companion_417(); + return Companion_instance_417; + } + var $serializer_instance_404; + function $serializer_getInstance_404() { + KMaterialBizType_initEntries(); + if ($serializer_instance_404 === VOID) + new $serializer_404(); + return $serializer_instance_404; + } + function values_65() { + return [KMaterialBizType_NONE_getInstance(), KMaterialBizType_ACTIVITY_getInstance(), KMaterialBizType_BGM_getInstance(), KMaterialBizType_EFFECT_getInstance(), KMaterialBizType_SHOOT_SAME_getInstance(), KMaterialBizType_SHOOT_TOGETHER_getInstance(), KMaterialBizType_ACTIVITY_ICON_getInstance(), KMaterialBizType_NEW_BGM_getInstance(), KMaterialBizType_GENERAL_TYPE_getInstance(), KMaterialBizType_UNRECOGNIZED_getInstance()]; + } + function valueOf_65(value) { + switch (value) { + case 'NONE': + return KMaterialBizType_NONE_getInstance(); + case 'ACTIVITY': + return KMaterialBizType_ACTIVITY_getInstance(); + case 'BGM': + return KMaterialBizType_BGM_getInstance(); + case 'EFFECT': + return KMaterialBizType_EFFECT_getInstance(); + case 'SHOOT_SAME': + return KMaterialBizType_SHOOT_SAME_getInstance(); + case 'SHOOT_TOGETHER': + return KMaterialBizType_SHOOT_TOGETHER_getInstance(); + case 'ACTIVITY_ICON': + return KMaterialBizType_ACTIVITY_ICON_getInstance(); + case 'NEW_BGM': + return KMaterialBizType_NEW_BGM_getInstance(); + case 'GENERAL_TYPE': + return KMaterialBizType_GENERAL_TYPE_getInstance(); + case 'UNRECOGNIZED': + return KMaterialBizType_UNRECOGNIZED_getInstance(); + default: + KMaterialBizType_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KMaterialBizType_entriesInitialized; + function KMaterialBizType_initEntries() { + if (KMaterialBizType_entriesInitialized) + return Unit_instance; + KMaterialBizType_entriesInitialized = true; + KMaterialBizType_NONE_instance = new KMaterialBizType('NONE', 0, 0); + KMaterialBizType_ACTIVITY_instance = new KMaterialBizType('ACTIVITY', 1, 1); + KMaterialBizType_BGM_instance = new KMaterialBizType('BGM', 2, 2); + KMaterialBizType_EFFECT_instance = new KMaterialBizType('EFFECT', 3, 3); + KMaterialBizType_SHOOT_SAME_instance = new KMaterialBizType('SHOOT_SAME', 4, 4); + KMaterialBizType_SHOOT_TOGETHER_instance = new KMaterialBizType('SHOOT_TOGETHER', 5, 5); + KMaterialBizType_ACTIVITY_ICON_instance = new KMaterialBizType('ACTIVITY_ICON', 6, 6); + KMaterialBizType_NEW_BGM_instance = new KMaterialBizType('NEW_BGM', 7, 7); + KMaterialBizType_GENERAL_TYPE_instance = new KMaterialBizType('GENERAL_TYPE', 8, 8); + KMaterialBizType_UNRECOGNIZED_instance = new KMaterialBizType('UNRECOGNIZED', 9, -1); + Companion_getInstance_417(); + } + var Companion_instance_418; + function Companion_getInstance_418() { + return Companion_instance_418; + } + var $serializer_instance_405; + function $serializer_getInstance_405() { + if ($serializer_instance_405 === VOID) + new $serializer_405(); + return $serializer_instance_405; + } + var Companion_instance_419; + function Companion_getInstance_419() { + if (Companion_instance_419 === VOID) + new Companion_419(); + return Companion_instance_419; + } + var $serializer_instance_406; + function $serializer_getInstance_406() { + if ($serializer_instance_406 === VOID) + new $serializer_406(); + return $serializer_instance_406; + } + var Companion_instance_420; + function Companion_getInstance_420() { + return Companion_instance_420; + } + var $serializer_instance_407; + function $serializer_getInstance_407() { + if ($serializer_instance_407 === VOID) + new $serializer_407(); + return $serializer_instance_407; + } + var Companion_instance_421; + function Companion_getInstance_421() { + return Companion_instance_421; + } + var $serializer_instance_408; + function $serializer_getInstance_408() { + if ($serializer_instance_408 === VOID) + new $serializer_408(); + return $serializer_instance_408; + } + var Companion_instance_422; + function Companion_getInstance_422() { + return Companion_instance_422; + } + var $serializer_instance_409; + function $serializer_getInstance_409() { + if ($serializer_instance_409 === VOID) + new $serializer_409(); + return $serializer_instance_409; + } + var Companion_instance_423; + function Companion_getInstance_423() { + return Companion_instance_423; + } + var $serializer_instance_410; + function $serializer_getInstance_410() { + if ($serializer_instance_410 === VOID) + new $serializer_410(); + return $serializer_instance_410; + } + var Companion_instance_424; + function Companion_getInstance_424() { + return Companion_instance_424; + } + var $serializer_instance_411; + function $serializer_getInstance_411() { + if ($serializer_instance_411 === VOID) + new $serializer_411(); + return $serializer_instance_411; + } + var Companion_instance_425; + function Companion_getInstance_425() { + return Companion_instance_425; + } + var $serializer_instance_412; + function $serializer_getInstance_412() { + if ($serializer_instance_412 === VOID) + new $serializer_412(); + return $serializer_instance_412; + } + var Companion_instance_426; + function Companion_getInstance_426() { + return Companion_instance_426; + } + var $serializer_instance_413; + function $serializer_getInstance_413() { + if ($serializer_instance_413 === VOID) + new $serializer_413(); + return $serializer_instance_413; + } + var Companion_instance_427; + function Companion_getInstance_427() { + if (Companion_instance_427 === VOID) + new Companion_427(); + return Companion_instance_427; + } + var $serializer_instance_414; + function $serializer_getInstance_414() { + if ($serializer_instance_414 === VOID) + new $serializer_414(); + return $serializer_instance_414; + } + var Companion_instance_428; + function Companion_getInstance_428() { + return Companion_instance_428; + } + var $serializer_instance_415; + function $serializer_getInstance_415() { + if ($serializer_instance_415 === VOID) + new $serializer_415(); + return $serializer_instance_415; + } + var Companion_instance_429; + function Companion_getInstance_429() { + return Companion_instance_429; + } + var $serializer_instance_416; + function $serializer_getInstance_416() { + if ($serializer_instance_416 === VOID) + new $serializer_416(); + return $serializer_instance_416; + } + var Companion_instance_430; + function Companion_getInstance_430() { + if (Companion_instance_430 === VOID) + new Companion_430(); + return Companion_instance_430; + } + var $serializer_instance_417; + function $serializer_getInstance_417() { + if ($serializer_instance_417 === VOID) + new $serializer_417(); + return $serializer_instance_417; + } + var Companion_instance_431; + function Companion_getInstance_431() { + return Companion_instance_431; + } + var $serializer_instance_418; + function $serializer_getInstance_418() { + if ($serializer_instance_418 === VOID) + new $serializer_418(); + return $serializer_instance_418; + } + var Companion_instance_432; + function Companion_getInstance_432() { + if (Companion_instance_432 === VOID) + new Companion_432(); + return Companion_instance_432; + } + var $serializer_instance_419; + function $serializer_getInstance_419() { + if ($serializer_instance_419 === VOID) + new $serializer_419(); + return $serializer_instance_419; + } + var Companion_instance_433; + function Companion_getInstance_433() { + if (Companion_instance_433 === VOID) + new Companion_433(); + return Companion_instance_433; + } + var $serializer_instance_420; + function $serializer_getInstance_420() { + if ($serializer_instance_420 === VOID) + new $serializer_420(); + return $serializer_instance_420; + } + var Companion_instance_434; + function Companion_getInstance_434() { + return Companion_instance_434; + } + var $serializer_instance_421; + function $serializer_getInstance_421() { + if ($serializer_instance_421 === VOID) + new $serializer_421(); + return $serializer_instance_421; + } + var Companion_instance_435; + function Companion_getInstance_435() { + return Companion_instance_435; + } + var $serializer_instance_422; + function $serializer_getInstance_422() { + if ($serializer_instance_422 === VOID) + new $serializer_422(); + return $serializer_instance_422; + } + var Companion_instance_436; + function Companion_getInstance_436() { + return Companion_instance_436; + } + var $serializer_instance_423; + function $serializer_getInstance_423() { + if ($serializer_instance_423 === VOID) + new $serializer_423(); + return $serializer_instance_423; + } + var Companion_instance_437; + function Companion_getInstance_437() { + if (Companion_instance_437 === VOID) + new Companion_437(); + return Companion_instance_437; + } + var $serializer_instance_424; + function $serializer_getInstance_424() { + if ($serializer_instance_424 === VOID) + new $serializer_424(); + return $serializer_instance_424; + } + var Companion_instance_438; + function Companion_getInstance_438() { + return Companion_instance_438; + } + var $serializer_instance_425; + function $serializer_getInstance_425() { + if ($serializer_instance_425 === VOID) + new $serializer_425(); + return $serializer_instance_425; + } + var Companion_instance_439; + function Companion_getInstance_439() { + return Companion_instance_439; + } + var $serializer_instance_426; + function $serializer_getInstance_426() { + if ($serializer_instance_426 === VOID) + new $serializer_426(); + return $serializer_instance_426; + } + function KTabModule$Companion$tabValues$delegate$lambda() { + return listOf_0([KIntroduction_getInstance(), KReply_getInstance(), KActivityTab_getInstance(), KCatalog_getInstance()]); + } + function _get_tabNumber__i5nr9v($this) { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = $this.tabNumber$delegate_1; + var thisRef = $this; + var property = tabNumber$factory(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + var KIntroduction_instance; + function KIntroduction_getInstance() { + if (KIntroduction_instance === VOID) + new KIntroduction(); + return KIntroduction_instance; + } + var KReply_instance; + function KReply_getInstance() { + if (KReply_instance === VOID) + new KReply(); + return KReply_instance; + } + var KActivityTab_instance; + function KActivityTab_getInstance() { + if (KActivityTab_instance === VOID) + new KActivityTab_0(); + return KActivityTab_instance; + } + var KCatalog_instance; + function KCatalog_getInstance() { + if (KCatalog_instance === VOID) + new KCatalog(); + return KCatalog_instance; + } + var Companion_instance_440; + function Companion_getInstance_440() { + if (Companion_instance_440 === VOID) + new Companion_440(); + return Companion_instance_440; + } + var $serializer_instance_427; + function $serializer_getInstance_427() { + if ($serializer_instance_427 === VOID) + new $serializer_427(); + return $serializer_instance_427; + } + function KTabModule$tabNumber$delegate$lambda(this$0) { + return function () { + var tmp; + if (!(this$0.introduction_1 == null)) { + tmp = 0; + } else if (!(this$0.reply_1 == null)) { + tmp = 1; + } else if (!(this$0.activityTab_1 == null)) { + tmp = 2; + } else if (!(this$0.catalog_1 == null)) { + tmp = 3; + } else { + tmp = -1; + } + return tmp; + }; + } + function KTabModule$_init_$lambda_stfjx1(this$0) { + return function () { + var tmp; + if (!(this$0.introduction_1 == null)) { + tmp = 0; + } else if (!(this$0.reply_1 == null)) { + tmp = 1; + } else if (!(this$0.activityTab_1 == null)) { + tmp = 2; + } else if (!(this$0.catalog_1 == null)) { + tmp = 3; + } else { + tmp = -1; + } + return tmp; + }; + } + var Companion_instance_441; + function Companion_getInstance_441() { + if (Companion_instance_441 === VOID) + new Companion_441(); + return Companion_instance_441; + } + var $serializer_instance_428; + function $serializer_getInstance_428() { + if ($serializer_instance_428 === VOID) + new $serializer_428(); + return $serializer_instance_428; + } + var Companion_instance_442; + function Companion_getInstance_442() { + return Companion_instance_442; + } + var $serializer_instance_429; + function $serializer_getInstance_429() { + if ($serializer_instance_429 === VOID) + new $serializer_429(); + return $serializer_instance_429; + } + var Companion_instance_443; + function Companion_getInstance_443() { + return Companion_instance_443; + } + var $serializer_instance_430; + function $serializer_getInstance_430() { + if ($serializer_instance_430 === VOID) + new $serializer_430(); + return $serializer_instance_430; + } + var Companion_instance_444; + function Companion_getInstance_444() { + return Companion_instance_444; + } + var $serializer_instance_431; + function $serializer_getInstance_431() { + if ($serializer_instance_431 === VOID) + new $serializer_431(); + return $serializer_instance_431; + } + var Companion_instance_445; + function Companion_getInstance_445() { + return Companion_instance_445; + } + var $serializer_instance_432; + function $serializer_getInstance_432() { + if ($serializer_instance_432 === VOID) + new $serializer_432(); + return $serializer_instance_432; + } + var Companion_instance_446; + function Companion_getInstance_446() { + return Companion_instance_446; + } + var $serializer_instance_433; + function $serializer_getInstance_433() { + if ($serializer_instance_433 === VOID) + new $serializer_433(); + return $serializer_instance_433; + } + var Companion_instance_447; + function Companion_getInstance_447() { + return Companion_instance_447; + } + var $serializer_instance_434; + function $serializer_getInstance_434() { + if ($serializer_instance_434 === VOID) + new $serializer_434(); + return $serializer_instance_434; + } + var Companion_instance_448; + function Companion_getInstance_448() { + return Companion_instance_448; + } + var $serializer_instance_435; + function $serializer_getInstance_435() { + if ($serializer_instance_435 === VOID) + new $serializer_435(); + return $serializer_instance_435; + } + var Companion_instance_449; + function Companion_getInstance_449() { + return Companion_instance_449; + } + var $serializer_instance_436; + function $serializer_getInstance_436() { + if ($serializer_instance_436 === VOID) + new $serializer_436(); + return $serializer_instance_436; + } + var Companion_instance_450; + function Companion_getInstance_450() { + return Companion_instance_450; + } + var $serializer_instance_437; + function $serializer_getInstance_437() { + if ($serializer_instance_437 === VOID) + new $serializer_437(); + return $serializer_instance_437; + } + var Companion_instance_451; + function Companion_getInstance_451() { + return Companion_instance_451; + } + var $serializer_instance_438; + function $serializer_getInstance_438() { + if ($serializer_instance_438 === VOID) + new $serializer_438(); + return $serializer_instance_438; + } + var Companion_instance_452; + function Companion_getInstance_452() { + return Companion_instance_452; + } + var $serializer_instance_439; + function $serializer_getInstance_439() { + if ($serializer_instance_439 === VOID) + new $serializer_439(); + return $serializer_instance_439; + } + var Companion_instance_453; + function Companion_getInstance_453() { + return Companion_instance_453; + } + var $serializer_instance_440; + function $serializer_getInstance_440() { + if ($serializer_instance_440 === VOID) + new $serializer_440(); + return $serializer_instance_440; + } + var Companion_instance_454; + function Companion_getInstance_454() { + return Companion_instance_454; + } + var $serializer_instance_441; + function $serializer_getInstance_441() { + if ($serializer_instance_441 === VOID) + new $serializer_441(); + return $serializer_instance_441; + } + var Companion_instance_455; + function Companion_getInstance_455() { + return Companion_instance_455; + } + var $serializer_instance_442; + function $serializer_getInstance_442() { + if ($serializer_instance_442 === VOID) + new $serializer_442(); + return $serializer_instance_442; + } + var Companion_instance_456; + function Companion_getInstance_456() { + return Companion_instance_456; + } + var $serializer_instance_443; + function $serializer_getInstance_443() { + if ($serializer_instance_443 === VOID) + new $serializer_443(); + return $serializer_instance_443; + } + var Companion_instance_457; + function Companion_getInstance_457() { + if (Companion_instance_457 === VOID) + new Companion_457(); + return Companion_instance_457; + } + var $serializer_instance_444; + function $serializer_getInstance_444() { + if ($serializer_instance_444 === VOID) + new $serializer_444(); + return $serializer_instance_444; + } + var Companion_instance_458; + function Companion_getInstance_458() { + return Companion_instance_458; + } + var $serializer_instance_445; + function $serializer_getInstance_445() { + if ($serializer_instance_445 === VOID) + new $serializer_445(); + return $serializer_instance_445; + } + var Companion_instance_459; + function Companion_getInstance_459() { + return Companion_instance_459; + } + var $serializer_instance_446; + function $serializer_getInstance_446() { + if ($serializer_instance_446 === VOID) + new $serializer_446(); + return $serializer_instance_446; + } + var Companion_instance_460; + function Companion_getInstance_460() { + return Companion_instance_460; + } + var $serializer_instance_447; + function $serializer_getInstance_447() { + if ($serializer_instance_447 === VOID) + new $serializer_447(); + return $serializer_instance_447; + } + var Companion_instance_461; + function Companion_getInstance_461() { + return Companion_instance_461; + } + var $serializer_instance_448; + function $serializer_getInstance_448() { + if ($serializer_instance_448 === VOID) + new $serializer_448(); + return $serializer_instance_448; + } + var Companion_instance_462; + function Companion_getInstance_462() { + if (Companion_instance_462 === VOID) + new Companion_462(); + return Companion_instance_462; + } + var $serializer_instance_449; + function $serializer_getInstance_449() { + if ($serializer_instance_449 === VOID) + new $serializer_449(); + return $serializer_instance_449; + } + var Companion_instance_463; + function Companion_getInstance_463() { + if (Companion_instance_463 === VOID) + new Companion_463(); + return Companion_instance_463; + } + var $serializer_instance_450; + function $serializer_getInstance_450() { + if ($serializer_instance_450 === VOID) + new $serializer_450(); + return $serializer_instance_450; + } + function KOperationCard$Companion$paramValues$delegate$lambda() { + return listOf_0([KFollow_getInstance(), KReserve_getInstance_0(), KJump_getInstance(), KGame_getInstance_0()]); + } + function _get_paramNumber__k3t7h7($this) { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = $this.paramNumber$delegate_1; + var thisRef = $this; + var property = paramNumber$factory(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + var KFollow_instance; + function KFollow_getInstance() { + if (KFollow_instance === VOID) + new KFollow(); + return KFollow_instance; + } + var KReserve_instance_0; + function KReserve_getInstance_0() { + if (KReserve_instance_0 === VOID) + new KReserve_0(); + return KReserve_instance_0; + } + var KJump_instance; + function KJump_getInstance() { + if (KJump_instance === VOID) + new KJump(); + return KJump_instance; + } + var KGame_instance_0; + function KGame_getInstance_0() { + if (KGame_instance_0 === VOID) + new KGame_0(); + return KGame_instance_0; + } + var Companion_instance_464; + function Companion_getInstance_464() { + if (Companion_instance_464 === VOID) + new Companion_464(); + return Companion_instance_464; + } + var $serializer_instance_451; + function $serializer_getInstance_451() { + if ($serializer_instance_451 === VOID) + new $serializer_451(); + return $serializer_instance_451; + } + function KOperationCard$paramNumber$delegate$lambda(this$0) { + return function () { + var tmp; + if (!(this$0.follow_1 == null)) { + tmp = 0; + } else if (!(this$0.reserve_1 == null)) { + tmp = 1; + } else if (!(this$0.jump_1 == null)) { + tmp = 2; + } else if (!(this$0.game_1 == null)) { + tmp = 3; + } else { + tmp = -1; + } + return tmp; + }; + } + function KOperationCard$_init_$lambda_wtkzj3(this$0) { + return function () { + var tmp; + if (!(this$0.follow_1 == null)) { + tmp = 0; + } else if (!(this$0.reserve_1 == null)) { + tmp = 1; + } else if (!(this$0.jump_1 == null)) { + tmp = 2; + } else if (!(this$0.game_1 == null)) { + tmp = 3; + } else { + tmp = -1; + } + return tmp; + }; + } + var Companion_instance_465; + function Companion_getInstance_465() { + return Companion_instance_465; + } + var $serializer_instance_452; + function $serializer_getInstance_452() { + if ($serializer_instance_452 === VOID) + new $serializer_452(); + return $serializer_instance_452; + } + var Companion_instance_466; + function Companion_getInstance_466() { + return Companion_instance_466; + } + var $serializer_instance_453; + function $serializer_getInstance_453() { + if ($serializer_instance_453 === VOID) + new $serializer_453(); + return $serializer_instance_453; + } + var Companion_instance_467; + function Companion_getInstance_467() { + return Companion_instance_467; + } + var $serializer_instance_454; + function $serializer_getInstance_454() { + if ($serializer_instance_454 === VOID) + new $serializer_454(); + return $serializer_instance_454; + } + var Companion_instance_468; + function Companion_getInstance_468() { + return Companion_instance_468; + } + var $serializer_instance_455; + function $serializer_getInstance_455() { + if ($serializer_instance_455 === VOID) + new $serializer_455(); + return $serializer_instance_455; + } + var Companion_instance_469; + function Companion_getInstance_469() { + return Companion_instance_469; + } + var $serializer_instance_456; + function $serializer_getInstance_456() { + if ($serializer_instance_456 === VOID) + new $serializer_456(); + return $serializer_instance_456; + } + var Companion_instance_470; + function Companion_getInstance_470() { + if (Companion_instance_470 === VOID) + new Companion_470(); + return Companion_instance_470; + } + var $serializer_instance_457; + function $serializer_getInstance_457() { + if ($serializer_instance_457 === VOID) + new $serializer_457(); + return $serializer_instance_457; + } + var Companion_instance_471; + function Companion_getInstance_471() { + if (Companion_instance_471 === VOID) + new Companion_471(); + return Companion_instance_471; + } + var $serializer_instance_458; + function $serializer_getInstance_458() { + if ($serializer_instance_458 === VOID) + new $serializer_458(); + return $serializer_instance_458; + } + var Companion_instance_472; + function Companion_getInstance_472() { + return Companion_instance_472; + } + var $serializer_instance_459; + function $serializer_getInstance_459() { + if ($serializer_instance_459 === VOID) + new $serializer_459(); + return $serializer_instance_459; + } + var Companion_instance_473; + function Companion_getInstance_473() { + return Companion_instance_473; + } + var $serializer_instance_460; + function $serializer_getInstance_460() { + if ($serializer_instance_460 === VOID) + new $serializer_460(); + return $serializer_instance_460; + } + var Companion_instance_474; + function Companion_getInstance_474() { + if (Companion_instance_474 === VOID) + new Companion_474(); + return Companion_instance_474; + } + var $serializer_instance_461; + function $serializer_getInstance_461() { + if ($serializer_instance_461 === VOID) + new $serializer_461(); + return $serializer_instance_461; + } + var Companion_instance_475; + function Companion_getInstance_475() { + if (Companion_instance_475 === VOID) + new Companion_475(); + return Companion_instance_475; + } + var $serializer_instance_462; + function $serializer_getInstance_462() { + if ($serializer_instance_462 === VOID) + new $serializer_462(); + return $serializer_instance_462; + } + var Companion_instance_476; + function Companion_getInstance_476() { + return Companion_instance_476; + } + var $serializer_instance_463; + function $serializer_getInstance_463() { + if ($serializer_instance_463 === VOID) + new $serializer_463(); + return $serializer_instance_463; + } + var Companion_instance_477; + function Companion_getInstance_477() { + return Companion_instance_477; + } + var $serializer_instance_464; + function $serializer_getInstance_464() { + if ($serializer_instance_464 === VOID) + new $serializer_464(); + return $serializer_instance_464; + } + var Companion_instance_478; + function Companion_getInstance_478() { + return Companion_instance_478; + } + var $serializer_instance_465; + function $serializer_getInstance_465() { + if ($serializer_instance_465 === VOID) + new $serializer_465(); + return $serializer_instance_465; + } + var Companion_instance_479; + function Companion_getInstance_479() { + return Companion_instance_479; + } + var $serializer_instance_466; + function $serializer_getInstance_466() { + if ($serializer_instance_466 === VOID) + new $serializer_466(); + return $serializer_instance_466; + } + var Companion_instance_480; + function Companion_getInstance_480() { + return Companion_instance_480; + } + var $serializer_instance_467; + function $serializer_getInstance_467() { + if ($serializer_instance_467 === VOID) + new $serializer_467(); + return $serializer_instance_467; + } + var Companion_instance_481; + function Companion_getInstance_481() { + return Companion_instance_481; + } + var $serializer_instance_468; + function $serializer_getInstance_468() { + if ($serializer_instance_468 === VOID) + new $serializer_468(); + return $serializer_instance_468; + } + var Companion_instance_482; + function Companion_getInstance_482() { + return Companion_instance_482; + } + var $serializer_instance_469; + function $serializer_getInstance_469() { + if ($serializer_instance_469 === VOID) + new $serializer_469(); + return $serializer_instance_469; + } + var Companion_instance_483; + function Companion_getInstance_483() { + if (Companion_instance_483 === VOID) + new Companion_483(); + return Companion_instance_483; + } + var $serializer_instance_470; + function $serializer_getInstance_470() { + if ($serializer_instance_470 === VOID) + new $serializer_470(); + return $serializer_instance_470; + } + function KECode_CODE_DEFAULT_getInstance() { + KECode_initEntries(); + return KECode_CODE_DEFAULT_instance; + } + function KECode_CODE_404_getInstance() { + KECode_initEntries(); + return KECode_CODE_404_instance; + } + function KECode_CODE_TEENAGER_getInstance() { + KECode_initEntries(); + return KECode_CODE_TEENAGER_instance; + } + function KECode_UNRECOGNIZED_getInstance() { + KECode_initEntries(); + return KECode_UNRECOGNIZED_instance; + } + function KPlayToastEnum_PLAYTOAST_UNKNOWN_getInstance() { + KPlayToastEnum_initEntries(); + return KPlayToastEnum_PLAYTOAST_UNKNOWN_instance; + } + function KPlayToastEnum_PLAYTOAST_CHARGINGPLUS_getInstance() { + KPlayToastEnum_initEntries(); + return KPlayToastEnum_PLAYTOAST_CHARGINGPLUS_instance; + } + function KPlayToastEnum_UNRECOGNIZED_getInstance() { + KPlayToastEnum_initEntries(); + return KPlayToastEnum_UNRECOGNIZED_instance; + } + function KJumpShowType_JST_DEFAULT_getInstance() { + KJumpShowType_initEntries(); + return KJumpShowType_JST_DEFAULT_instance; + } + function KJumpShowType_JST_FULLSCREEN_getInstance() { + KJumpShowType_initEntries(); + return KJumpShowType_JST_FULLSCREEN_instance; + } + function KJumpShowType_JST_HALFSCREEN_getInstance() { + KJumpShowType_initEntries(); + return KJumpShowType_JST_HALFSCREEN_instance; + } + function KJumpShowType_UNRECOGNIZED_getInstance() { + KJumpShowType_initEntries(); + return KJumpShowType_UNRECOGNIZED_instance; + } + function KTabType_TAB_NONE_getInstance() { + KTabType_initEntries(); + return KTabType_TAB_NONE_instance; + } + function KTabType_TAB_INTRODUCTION_getInstance() { + KTabType_initEntries(); + return KTabType_TAB_INTRODUCTION_instance; + } + function KTabType_TAB_REPLY_getInstance() { + KTabType_initEntries(); + return KTabType_TAB_REPLY_instance; + } + function KTabType_TAB_OGV_ACTIVITY_getInstance() { + KTabType_initEntries(); + return KTabType_TAB_OGV_ACTIVITY_instance; + } + function KTabType_TAB_CATALOG_getInstance() { + KTabType_initEntries(); + return KTabType_TAB_CATALOG_instance; + } + function KTabType_UNRECOGNIZED_getInstance() { + KTabType_initEntries(); + return KTabType_UNRECOGNIZED_instance; + } + function KPageCategory_COMMON_PAGE_getInstance() { + KPageCategory_initEntries(); + return KPageCategory_COMMON_PAGE_instance; + } + function KPageCategory_ACTIVITY_PAGE_getInstance() { + KPageCategory_initEntries(); + return KPageCategory_ACTIVITY_PAGE_instance; + } + function KPageCategory_UNRECOGNIZED_getInstance() { + KPageCategory_initEntries(); + return KPageCategory_UNRECOGNIZED_instance; + } + function KBizType_NONE_getInstance() { + KBizType_initEntries_0(); + return KBizType_NONE_instance; + } + function KBizType_FOLLOW_VIDEO_getInstance() { + KBizType_initEntries_0(); + return KBizType_FOLLOW_VIDEO_instance; + } + function KBizType_RESERVE_ACTIVITY_getInstance() { + KBizType_initEntries_0(); + return KBizType_RESERVE_ACTIVITY_instance; + } + function KBizType_JUMP_LINK_getInstance() { + KBizType_initEntries_0(); + return KBizType_JUMP_LINK_instance; + } + function KBizType_FAV_SEASON_getInstance() { + KBizType_initEntries_0(); + return KBizType_FAV_SEASON_instance; + } + function KBizType_RESERVE_GAME_getInstance() { + KBizType_initEntries_0(); + return KBizType_RESERVE_GAME_instance; + } + function KBizType_UNRECOGNIZED_getInstance_0() { + KBizType_initEntries_0(); + return KBizType_UNRECOGNIZED_instance_0; + } + function KPageType_H5_getInstance() { + KPageType_initEntries(); + return KPageType_H5_instance; + } + function KPageType_NA_getInstance() { + KPageType_initEntries(); + return KPageType_NA_instance; + } + function KPageType_UNRECOGNIZED_getInstance() { + KPageType_initEntries(); + return KPageType_UNRECOGNIZED_instance; + } + function KUnionType_UGC_getInstance() { + KUnionType_initEntries(); + return KUnionType_UGC_instance; + } + function KUnionType_OGV_getInstance() { + KUnionType_initEntries(); + return KUnionType_OGV_instance; + } + function KUnionType_PUGV_getInstance() { + KUnionType_initEntries(); + return KUnionType_PUGV_instance; + } + function KUnionType_UNRECOGNIZED_getInstance() { + KUnionType_initEntries(); + return KUnionType_UNRECOGNIZED_instance; + } + function KMaterialSource_DEFAULT_getInstance() { + KMaterialSource_initEntries(); + return KMaterialSource_DEFAULT_instance; + } + function KMaterialSource_BIJIAN_getInstance() { + KMaterialSource_initEntries(); + return KMaterialSource_BIJIAN_instance; + } + function KMaterialSource_UNRECOGNIZED_getInstance() { + KMaterialSource_initEntries(); + return KMaterialSource_UNRECOGNIZED_instance; + } + function KMaterialBizType_NONE_getInstance() { + KMaterialBizType_initEntries(); + return KMaterialBizType_NONE_instance; + } + function KMaterialBizType_ACTIVITY_getInstance() { + KMaterialBizType_initEntries(); + return KMaterialBizType_ACTIVITY_instance; + } + function KMaterialBizType_BGM_getInstance() { + KMaterialBizType_initEntries(); + return KMaterialBizType_BGM_instance; + } + function KMaterialBizType_EFFECT_getInstance() { + KMaterialBizType_initEntries(); + return KMaterialBizType_EFFECT_instance; + } + function KMaterialBizType_SHOOT_SAME_getInstance() { + KMaterialBizType_initEntries(); + return KMaterialBizType_SHOOT_SAME_instance; + } + function KMaterialBizType_SHOOT_TOGETHER_getInstance() { + KMaterialBizType_initEntries(); + return KMaterialBizType_SHOOT_TOGETHER_instance; + } + function KMaterialBizType_ACTIVITY_ICON_getInstance() { + KMaterialBizType_initEntries(); + return KMaterialBizType_ACTIVITY_ICON_instance; + } + function KMaterialBizType_NEW_BGM_getInstance() { + KMaterialBizType_initEntries(); + return KMaterialBizType_NEW_BGM_instance; + } + function KMaterialBizType_GENERAL_TYPE_getInstance() { + KMaterialBizType_initEntries(); + return KMaterialBizType_GENERAL_TYPE_instance; + } + function KMaterialBizType_UNRECOGNIZED_getInstance() { + KMaterialBizType_initEntries(); + return KMaterialBizType_UNRECOGNIZED_instance; + } + function values$factory_56() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_57() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_58() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_59() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_60() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_61() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_62() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_63() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_64() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_65() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function tabNumber$factory() { + return getPropertyCallableRef('tabNumber', 1, KProperty1, function (receiver) { + return _get_tabNumber__i5nr9v(receiver); + }, null); + } + function tabValues$factory() { + return getPropertyCallableRef('tabValues', 1, KProperty1, function (receiver) { + return receiver.tabValues; + }, null); + } + function paramNumber$factory() { + return getPropertyCallableRef('paramNumber', 1, KProperty1, function (receiver) { + return _get_paramNumber__k3t7h7(receiver); + }, null); + } + function paramValues$factory() { + return getPropertyCallableRef('paramValues', 1, KProperty1, function (receiver) { + return receiver.paramValues; + }, null); + } + function _get_$cachedSerializer__te6jhj_66($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KSort$Companion$values$delegate$lambda() { + return listOf_0([KSort_DEFAULT_getInstance(), KSort_VIEW_COUNT_getInstance(), KSort_PUBLISH_TIME_getInstance(), KSort_DANMAKU_COUNT_getInstance()]); + } + function KSort$Companion$_anonymous__qzigii() { + return $serializer_getInstance_471(); + } + var KSort_DEFAULT_instance; + var KSort_VIEW_COUNT_instance; + var KSort_PUBLISH_TIME_instance; + var KSort_DANMAKU_COUNT_instance; + var KSort_UNRECOGNIZED_instance; + var Companion_instance_484; + function Companion_getInstance_484() { + KSort_initEntries(); + if (Companion_instance_484 === VOID) + new Companion_484(); + return Companion_instance_484; + } + var $serializer_instance_471; + function $serializer_getInstance_471() { + KSort_initEntries(); + if ($serializer_instance_471 === VOID) + new $serializer_471(); + return $serializer_instance_471; + } + function values_66() { + return [KSort_DEFAULT_getInstance(), KSort_VIEW_COUNT_getInstance(), KSort_PUBLISH_TIME_getInstance(), KSort_DANMAKU_COUNT_getInstance(), KSort_UNRECOGNIZED_getInstance()]; + } + function valueOf_66(value) { + switch (value) { + case 'DEFAULT': + return KSort_DEFAULT_getInstance(); + case 'VIEW_COUNT': + return KSort_VIEW_COUNT_getInstance(); + case 'PUBLISH_TIME': + return KSort_PUBLISH_TIME_getInstance(); + case 'DANMAKU_COUNT': + return KSort_DANMAKU_COUNT_getInstance(); + case 'UNRECOGNIZED': + return KSort_UNRECOGNIZED_getInstance(); + default: + KSort_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KSort_entriesInitialized; + function KSort_initEntries() { + if (KSort_entriesInitialized) + return Unit_instance; + KSort_entriesInitialized = true; + KSort_DEFAULT_instance = new KSort('DEFAULT', 0, 0); + KSort_VIEW_COUNT_instance = new KSort('VIEW_COUNT', 1, 1); + KSort_PUBLISH_TIME_instance = new KSort('PUBLISH_TIME', 2, 2); + KSort_DANMAKU_COUNT_instance = new KSort('DANMAKU_COUNT', 3, 3); + KSort_UNRECOGNIZED_instance = new KSort('UNRECOGNIZED', 4, -1); + Companion_getInstance_484(); + } + function _get_$cachedSerializer__te6jhj_67($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KCategorySort$Companion$values$delegate$lambda() { + return listOf_0([KCategorySort_DEFAULT_getInstance(), KCategorySort_PUBLISH_TIME_getInstance(), KCategorySort_CLICK_COUNT_getInstance(), KCategorySort_COMMENT_COUNT_getInstance(), KCategorySort_LIKE_COUNT_getInstance()]); + } + function KCategorySort$Companion$_anonymous__92s66g() { + return $serializer_getInstance_472(); + } + var KCategorySort_DEFAULT_instance; + var KCategorySort_PUBLISH_TIME_instance; + var KCategorySort_CLICK_COUNT_instance; + var KCategorySort_COMMENT_COUNT_instance; + var KCategorySort_LIKE_COUNT_instance; + var KCategorySort_UNRECOGNIZED_instance; + var Companion_instance_485; + function Companion_getInstance_485() { + KCategorySort_initEntries(); + if (Companion_instance_485 === VOID) + new Companion_485(); + return Companion_instance_485; + } + var $serializer_instance_472; + function $serializer_getInstance_472() { + KCategorySort_initEntries(); + if ($serializer_instance_472 === VOID) + new $serializer_472(); + return $serializer_instance_472; + } + function values_67() { + return [KCategorySort_DEFAULT_getInstance(), KCategorySort_PUBLISH_TIME_getInstance(), KCategorySort_CLICK_COUNT_getInstance(), KCategorySort_COMMENT_COUNT_getInstance(), KCategorySort_LIKE_COUNT_getInstance(), KCategorySort_UNRECOGNIZED_getInstance()]; + } + function valueOf_67(value) { + switch (value) { + case 'DEFAULT': + return KCategorySort_DEFAULT_getInstance(); + case 'PUBLISH_TIME': + return KCategorySort_PUBLISH_TIME_getInstance(); + case 'CLICK_COUNT': + return KCategorySort_CLICK_COUNT_getInstance(); + case 'COMMENT_COUNT': + return KCategorySort_COMMENT_COUNT_getInstance(); + case 'LIKE_COUNT': + return KCategorySort_LIKE_COUNT_getInstance(); + case 'UNRECOGNIZED': + return KCategorySort_UNRECOGNIZED_getInstance(); + default: + KCategorySort_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KCategorySort_entriesInitialized; + function KCategorySort_initEntries() { + if (KCategorySort_entriesInitialized) + return Unit_instance; + KCategorySort_entriesInitialized = true; + KCategorySort_DEFAULT_instance = new KCategorySort('DEFAULT', 0, 0); + KCategorySort_PUBLISH_TIME_instance = new KCategorySort('PUBLISH_TIME', 1, 1); + KCategorySort_CLICK_COUNT_instance = new KCategorySort('CLICK_COUNT', 2, 2); + KCategorySort_COMMENT_COUNT_instance = new KCategorySort('COMMENT_COUNT', 3, 3); + KCategorySort_LIKE_COUNT_instance = new KCategorySort('LIKE_COUNT', 4, 4); + KCategorySort_UNRECOGNIZED_instance = new KCategorySort('UNRECOGNIZED', 5, -1); + Companion_getInstance_485(); + } + function _get_$cachedSerializer__te6jhj_68($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KUserType$Companion$values$delegate$lambda() { + return listOf_0([KUserType_ALL_getInstance(), KUserType_UP_getInstance(), KUserType_NORMAL_USER_getInstance(), KUserType_AUTHENTICATED_USER_getInstance()]); + } + function KUserType$Companion$_anonymous__88iba7() { + return $serializer_getInstance_473(); + } + var KUserType_ALL_instance; + var KUserType_UP_instance; + var KUserType_NORMAL_USER_instance; + var KUserType_AUTHENTICATED_USER_instance; + var KUserType_UNRECOGNIZED_instance; + var Companion_instance_486; + function Companion_getInstance_486() { + KUserType_initEntries(); + if (Companion_instance_486 === VOID) + new Companion_486(); + return Companion_instance_486; + } + var $serializer_instance_473; + function $serializer_getInstance_473() { + KUserType_initEntries(); + if ($serializer_instance_473 === VOID) + new $serializer_473(); + return $serializer_instance_473; + } + function values_68() { + return [KUserType_ALL_getInstance(), KUserType_UP_getInstance(), KUserType_NORMAL_USER_getInstance(), KUserType_AUTHENTICATED_USER_getInstance(), KUserType_UNRECOGNIZED_getInstance()]; + } + function valueOf_68(value) { + switch (value) { + case 'ALL': + return KUserType_ALL_getInstance(); + case 'UP': + return KUserType_UP_getInstance(); + case 'NORMAL_USER': + return KUserType_NORMAL_USER_getInstance(); + case 'AUTHENTICATED_USER': + return KUserType_AUTHENTICATED_USER_getInstance(); + case 'UNRECOGNIZED': + return KUserType_UNRECOGNIZED_getInstance(); + default: + KUserType_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KUserType_entriesInitialized; + function KUserType_initEntries() { + if (KUserType_entriesInitialized) + return Unit_instance; + KUserType_entriesInitialized = true; + KUserType_ALL_instance = new KUserType('ALL', 0, 0); + KUserType_UP_instance = new KUserType('UP', 1, 1); + KUserType_NORMAL_USER_instance = new KUserType('NORMAL_USER', 2, 2); + KUserType_AUTHENTICATED_USER_instance = new KUserType('AUTHENTICATED_USER', 3, 3); + KUserType_UNRECOGNIZED_instance = new KUserType('UNRECOGNIZED', 4, -1); + Companion_getInstance_486(); + } + function _get_$cachedSerializer__te6jhj_69($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KUserSort$Companion$values$delegate$lambda() { + return listOf_0([KUserSort_DEFAULT_getInstance(), KUserSort_FANS_DESCEND_getInstance(), KUserSort_FANS_ASCEND_getInstance(), KUserSort_LEVEL_DESCEND_getInstance(), KUserSort_LEVEL_ASCEND_getInstance()]); + } + function KUserSort$Companion$_anonymous__22wclh() { + return $serializer_getInstance_474(); + } + var KUserSort_DEFAULT_instance; + var KUserSort_FANS_DESCEND_instance; + var KUserSort_FANS_ASCEND_instance; + var KUserSort_LEVEL_DESCEND_instance; + var KUserSort_LEVEL_ASCEND_instance; + var KUserSort_UNRECOGNIZED_instance; + var Companion_instance_487; + function Companion_getInstance_487() { + KUserSort_initEntries(); + if (Companion_instance_487 === VOID) + new Companion_487(); + return Companion_instance_487; + } + var $serializer_instance_474; + function $serializer_getInstance_474() { + KUserSort_initEntries(); + if ($serializer_instance_474 === VOID) + new $serializer_474(); + return $serializer_instance_474; + } + function values_69() { + return [KUserSort_DEFAULT_getInstance(), KUserSort_FANS_DESCEND_getInstance(), KUserSort_FANS_ASCEND_getInstance(), KUserSort_LEVEL_DESCEND_getInstance(), KUserSort_LEVEL_ASCEND_getInstance(), KUserSort_UNRECOGNIZED_getInstance()]; + } + function valueOf_69(value) { + switch (value) { + case 'DEFAULT': + return KUserSort_DEFAULT_getInstance(); + case 'FANS_DESCEND': + return KUserSort_FANS_DESCEND_getInstance(); + case 'FANS_ASCEND': + return KUserSort_FANS_ASCEND_getInstance(); + case 'LEVEL_DESCEND': + return KUserSort_LEVEL_DESCEND_getInstance(); + case 'LEVEL_ASCEND': + return KUserSort_LEVEL_ASCEND_getInstance(); + case 'UNRECOGNIZED': + return KUserSort_UNRECOGNIZED_getInstance(); + default: + KUserSort_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KUserSort_entriesInitialized; + function KUserSort_initEntries() { + if (KUserSort_entriesInitialized) + return Unit_instance; + KUserSort_entriesInitialized = true; + KUserSort_DEFAULT_instance = new KUserSort('DEFAULT', 0, 0); + KUserSort_FANS_DESCEND_instance = new KUserSort('FANS_DESCEND', 1, 1); + KUserSort_FANS_ASCEND_instance = new KUserSort('FANS_ASCEND', 2, 2); + KUserSort_LEVEL_DESCEND_instance = new KUserSort('LEVEL_DESCEND', 3, 3); + KUserSort_LEVEL_ASCEND_instance = new KUserSort('LEVEL_ASCEND', 4, 4); + KUserSort_UNRECOGNIZED_instance = new KUserSort('UNRECOGNIZED', 5, -1); + Companion_getInstance_487(); + } + var Companion_instance_488; + function Companion_getInstance_488() { + return Companion_instance_488; + } + var $serializer_instance_475; + function $serializer_getInstance_475() { + if ($serializer_instance_475 === VOID) + new $serializer_475(); + return $serializer_instance_475; + } + var Companion_instance_489; + function Companion_getInstance_489() { + if (Companion_instance_489 === VOID) + new Companion_489(); + return Companion_instance_489; + } + var $serializer_instance_476; + function $serializer_getInstance_476() { + if ($serializer_instance_476 === VOID) + new $serializer_476(); + return $serializer_instance_476; + } + var Companion_instance_490; + function Companion_getInstance_490() { + return Companion_instance_490; + } + var $serializer_instance_477; + function $serializer_getInstance_477() { + if ($serializer_instance_477 === VOID) + new $serializer_477(); + return $serializer_instance_477; + } + var Companion_instance_491; + function Companion_getInstance_491() { + return Companion_instance_491; + } + var $serializer_instance_478; + function $serializer_getInstance_478() { + if ($serializer_instance_478 === VOID) + new $serializer_478(); + return $serializer_instance_478; + } + var Companion_instance_492; + function Companion_getInstance_492() { + return Companion_instance_492; + } + var $serializer_instance_479; + function $serializer_getInstance_479() { + if ($serializer_instance_479 === VOID) + new $serializer_479(); + return $serializer_instance_479; + } + var Companion_instance_493; + function Companion_getInstance_493() { + if (Companion_instance_493 === VOID) + new Companion_493(); + return Companion_instance_493; + } + var $serializer_instance_480; + function $serializer_getInstance_480() { + if ($serializer_instance_480 === VOID) + new $serializer_480(); + return $serializer_instance_480; + } + var Companion_instance_494; + function Companion_getInstance_494() { + return Companion_instance_494; + } + var $serializer_instance_481; + function $serializer_getInstance_481() { + if ($serializer_instance_481 === VOID) + new $serializer_481(); + return $serializer_instance_481; + } + var Companion_instance_495; + function Companion_getInstance_495() { + return Companion_instance_495; + } + var $serializer_instance_482; + function $serializer_getInstance_482() { + if ($serializer_instance_482 === VOID) + new $serializer_482(); + return $serializer_instance_482; + } + var Companion_instance_496; + function Companion_getInstance_496() { + if (Companion_instance_496 === VOID) + new Companion_496(); + return Companion_instance_496; + } + var $serializer_instance_483; + function $serializer_getInstance_483() { + if ($serializer_instance_483 === VOID) + new $serializer_483(); + return $serializer_instance_483; + } + var Companion_instance_497; + function Companion_getInstance_497() { + return Companion_instance_497; + } + var $serializer_instance_484; + function $serializer_getInstance_484() { + if ($serializer_instance_484 === VOID) + new $serializer_484(); + return $serializer_instance_484; + } + var Companion_instance_498; + function Companion_getInstance_498() { + if (Companion_instance_498 === VOID) + new Companion_498(); + return Companion_instance_498; + } + var $serializer_instance_485; + function $serializer_getInstance_485() { + if ($serializer_instance_485 === VOID) + new $serializer_485(); + return $serializer_instance_485; + } + function KItem$Companion$cardItemValues$delegate$lambda() { + return listOf_0([KSpecial_getInstance_0(), KArticle_getInstance(), KBanner_getInstance_1(), KLive_getInstance_0(), KGame_getInstance_1(), KPurchase_getInstance(), KRecommendWord_getInstance(), KDynamic_getInstance(), KSuggestKeyword_getInstance(), KSpecialGuide_getInstance(), KComic_getInstance(), KChannelNew_getInstance(), KOgvCard_getInstance(), KBangumiRelates_getInstance(), KFindMore_getInstance(), KEsport_getInstance(), KAuthorNew_getInstance(), KTips_getInstance(), KCm_getInstance_0(), KPediaCard_getInstance(), KUgcInline_getInstance(), KLiveInline_getInstance(), KTopGame_getInstance(), KSports_getInstance(), KPediaCardInline_getInstance(), KRecommendTips_getInstance(), KCollectionCard_getInstance(), KOgvChannel_getInstance(), KOgvInline_getInstance(), KAuthor_getInstance(), KAv_getInstance_0(), KBangumi_getInstance_0(), KEsportsInline_getInstance(), KHotBanner_getInstance(), KSubject_getInstance(), KDynamicNew_getInstance(), KArticleNew_getInstance(), KPediaCardPic_getInstance(), KNpsCard_getInstance(), KChatGpt_getInstance(), KHotRecommend_getInstance(), KLiveMaster_getInstance(), KLiveRoomTitle_getInstance(), KLiveRoom_getInstance(), KCheese_getInstance(), KRelatedSearch_getInstance()]); + } + function _get_cardItemNumber__9vvfof($this) { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = $this.cardItemNumber$delegate_1; + var thisRef = $this; + var property = cardItemNumber$factory(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + var KSpecial_instance_0; + function KSpecial_getInstance_0() { + if (KSpecial_instance_0 === VOID) + new KSpecial_0(); + return KSpecial_instance_0; + } + var KArticle_instance; + function KArticle_getInstance() { + if (KArticle_instance === VOID) + new KArticle(); + return KArticle_instance; + } + var KBanner_instance_1; + function KBanner_getInstance_1() { + if (KBanner_instance_1 === VOID) + new KBanner_3(); + return KBanner_instance_1; + } + var KLive_instance_0; + function KLive_getInstance_0() { + if (KLive_instance_0 === VOID) + new KLive_1(); + return KLive_instance_0; + } + var KGame_instance_1; + function KGame_getInstance_1() { + if (KGame_instance_1 === VOID) + new KGame_1(); + return KGame_instance_1; + } + var KPurchase_instance; + function KPurchase_getInstance() { + if (KPurchase_instance === VOID) + new KPurchase(); + return KPurchase_instance; + } + var KRecommendWord_instance; + function KRecommendWord_getInstance() { + if (KRecommendWord_instance === VOID) + new KRecommendWord(); + return KRecommendWord_instance; + } + var KDynamic_instance; + function KDynamic_getInstance() { + if (KDynamic_instance === VOID) + new KDynamic(); + return KDynamic_instance; + } + var KSuggestKeyword_instance; + function KSuggestKeyword_getInstance() { + if (KSuggestKeyword_instance === VOID) + new KSuggestKeyword(); + return KSuggestKeyword_instance; + } + var KSpecialGuide_instance; + function KSpecialGuide_getInstance() { + if (KSpecialGuide_instance === VOID) + new KSpecialGuide(); + return KSpecialGuide_instance; + } + var KComic_instance; + function KComic_getInstance() { + if (KComic_instance === VOID) + new KComic(); + return KComic_instance; + } + var KChannelNew_instance; + function KChannelNew_getInstance() { + if (KChannelNew_instance === VOID) + new KChannelNew(); + return KChannelNew_instance; + } + var KOgvCard_instance; + function KOgvCard_getInstance() { + if (KOgvCard_instance === VOID) + new KOgvCard(); + return KOgvCard_instance; + } + var KBangumiRelates_instance; + function KBangumiRelates_getInstance() { + if (KBangumiRelates_instance === VOID) + new KBangumiRelates(); + return KBangumiRelates_instance; + } + var KFindMore_instance; + function KFindMore_getInstance() { + if (KFindMore_instance === VOID) + new KFindMore(); + return KFindMore_instance; + } + var KEsport_instance; + function KEsport_getInstance() { + if (KEsport_instance === VOID) + new KEsport(); + return KEsport_instance; + } + var KAuthorNew_instance; + function KAuthorNew_getInstance() { + if (KAuthorNew_instance === VOID) + new KAuthorNew(); + return KAuthorNew_instance; + } + var KTips_instance; + function KTips_getInstance() { + if (KTips_instance === VOID) + new KTips(); + return KTips_instance; + } + var KCm_instance_0; + function KCm_getInstance_0() { + if (KCm_instance_0 === VOID) + new KCm_0(); + return KCm_instance_0; + } + var KPediaCard_instance; + function KPediaCard_getInstance() { + if (KPediaCard_instance === VOID) + new KPediaCard(); + return KPediaCard_instance; + } + var KUgcInline_instance; + function KUgcInline_getInstance() { + if (KUgcInline_instance === VOID) + new KUgcInline(); + return KUgcInline_instance; + } + var KLiveInline_instance; + function KLiveInline_getInstance() { + if (KLiveInline_instance === VOID) + new KLiveInline(); + return KLiveInline_instance; + } + var KTopGame_instance; + function KTopGame_getInstance() { + if (KTopGame_instance === VOID) + new KTopGame(); + return KTopGame_instance; + } + var KSports_instance; + function KSports_getInstance() { + if (KSports_instance === VOID) + new KSports(); + return KSports_instance; + } + var KPediaCardInline_instance; + function KPediaCardInline_getInstance() { + if (KPediaCardInline_instance === VOID) + new KPediaCardInline(); + return KPediaCardInline_instance; + } + var KRecommendTips_instance; + function KRecommendTips_getInstance() { + if (KRecommendTips_instance === VOID) + new KRecommendTips(); + return KRecommendTips_instance; + } + var KCollectionCard_instance; + function KCollectionCard_getInstance() { + if (KCollectionCard_instance === VOID) + new KCollectionCard(); + return KCollectionCard_instance; + } + var KOgvChannel_instance; + function KOgvChannel_getInstance() { + if (KOgvChannel_instance === VOID) + new KOgvChannel(); + return KOgvChannel_instance; + } + var KOgvInline_instance; + function KOgvInline_getInstance() { + if (KOgvInline_instance === VOID) + new KOgvInline(); + return KOgvInline_instance; + } + var KAuthor_instance; + function KAuthor_getInstance() { + if (KAuthor_instance === VOID) + new KAuthor(); + return KAuthor_instance; + } + var KAv_instance_0; + function KAv_getInstance_0() { + if (KAv_instance_0 === VOID) + new KAv_0(); + return KAv_instance_0; + } + var KBangumi_instance_0; + function KBangumi_getInstance_0() { + if (KBangumi_instance_0 === VOID) + new KBangumi_0(); + return KBangumi_instance_0; + } + var KEsportsInline_instance; + function KEsportsInline_getInstance() { + if (KEsportsInline_instance === VOID) + new KEsportsInline(); + return KEsportsInline_instance; + } + var KHotBanner_instance; + function KHotBanner_getInstance() { + if (KHotBanner_instance === VOID) + new KHotBanner(); + return KHotBanner_instance; + } + var KSubject_instance; + function KSubject_getInstance() { + if (KSubject_instance === VOID) + new KSubject(); + return KSubject_instance; + } + var KDynamicNew_instance; + function KDynamicNew_getInstance() { + if (KDynamicNew_instance === VOID) + new KDynamicNew(); + return KDynamicNew_instance; + } + var KArticleNew_instance; + function KArticleNew_getInstance() { + if (KArticleNew_instance === VOID) + new KArticleNew(); + return KArticleNew_instance; + } + var KPediaCardPic_instance; + function KPediaCardPic_getInstance() { + if (KPediaCardPic_instance === VOID) + new KPediaCardPic(); + return KPediaCardPic_instance; + } + var KNpsCard_instance; + function KNpsCard_getInstance() { + if (KNpsCard_instance === VOID) + new KNpsCard(); + return KNpsCard_instance; + } + var KChatGpt_instance; + function KChatGpt_getInstance() { + if (KChatGpt_instance === VOID) + new KChatGpt(); + return KChatGpt_instance; + } + var KHotRecommend_instance; + function KHotRecommend_getInstance() { + if (KHotRecommend_instance === VOID) + new KHotRecommend(); + return KHotRecommend_instance; + } + var KLiveMaster_instance; + function KLiveMaster_getInstance() { + if (KLiveMaster_instance === VOID) + new KLiveMaster(); + return KLiveMaster_instance; + } + var KLiveRoomTitle_instance; + function KLiveRoomTitle_getInstance() { + if (KLiveRoomTitle_instance === VOID) + new KLiveRoomTitle(); + return KLiveRoomTitle_instance; + } + var KLiveRoom_instance; + function KLiveRoom_getInstance() { + if (KLiveRoom_instance === VOID) + new KLiveRoom(); + return KLiveRoom_instance; + } + var KCheese_instance; + function KCheese_getInstance() { + if (KCheese_instance === VOID) + new KCheese(); + return KCheese_instance; + } + var KRelatedSearch_instance; + function KRelatedSearch_getInstance() { + if (KRelatedSearch_instance === VOID) + new KRelatedSearch(); + return KRelatedSearch_instance; + } + var Companion_instance_499; + function Companion_getInstance_499() { + if (Companion_instance_499 === VOID) + new Companion_499(); + return Companion_instance_499; + } + var $serializer_instance_486; + function $serializer_getInstance_486() { + if ($serializer_instance_486 === VOID) + new $serializer_486(); + return $serializer_instance_486; + } + function KItem$cardItemNumber$delegate$lambda(this$0) { + return function () { + var tmp; + if (!(this$0.special_1 == null)) { + tmp = 0; + } else if (!(this$0.article_1 == null)) { + tmp = 1; + } else if (!(this$0.banner_1 == null)) { + tmp = 2; + } else if (!(this$0.live_1 == null)) { + tmp = 3; + } else if (!(this$0.game_1 == null)) { + tmp = 4; + } else if (!(this$0.purchase_1 == null)) { + tmp = 5; + } else if (!(this$0.recommendWord_1 == null)) { + tmp = 6; + } else if (!(this$0.dynamic_1 == null)) { + tmp = 7; + } else if (!(this$0.suggestKeyword_1 == null)) { + tmp = 8; + } else if (!(this$0.specialGuide_1 == null)) { + tmp = 9; + } else if (!(this$0.comic_1 == null)) { + tmp = 10; + } else if (!(this$0.channelNew_1 == null)) { + tmp = 11; + } else if (!(this$0.ogvCard_1 == null)) { + tmp = 12; + } else if (!(this$0.bangumiRelates_1 == null)) { + tmp = 13; + } else if (!(this$0.findMore_1 == null)) { + tmp = 14; + } else if (!(this$0.esport_1 == null)) { + tmp = 15; + } else if (!(this$0.authorNew_1 == null)) { + tmp = 16; + } else if (!(this$0.tips_1 == null)) { + tmp = 17; + } else if (!(this$0.cm_1 == null)) { + tmp = 18; + } else if (!(this$0.pediaCard_1 == null)) { + tmp = 19; + } else if (!(this$0.ugcInline_1 == null)) { + tmp = 20; + } else if (!(this$0.liveInline_1 == null)) { + tmp = 21; + } else if (!(this$0.topGame_1 == null)) { + tmp = 22; + } else if (!(this$0.sports_1 == null)) { + tmp = 23; + } else if (!(this$0.pediaCardInline_1 == null)) { + tmp = 24; + } else if (!(this$0.recommendTips_1 == null)) { + tmp = 25; + } else if (!(this$0.collectionCard_1 == null)) { + tmp = 26; + } else if (!(this$0.ogvChannel_1 == null)) { + tmp = 27; + } else if (!(this$0.ogvInline_1 == null)) { + tmp = 28; + } else if (!(this$0.author_1 == null)) { + tmp = 29; + } else if (!(this$0.av_1 == null)) { + tmp = 30; + } else if (!(this$0.bangumi_1 == null)) { + tmp = 31; + } else if (!(this$0.esportsInline_1 == null)) { + tmp = 32; + } else if (!(this$0.hotBanner_1 == null)) { + tmp = 33; + } else if (!(this$0.subject_1 == null)) { + tmp = 34; + } else if (!(this$0.dynamicNew_1 == null)) { + tmp = 35; + } else if (!(this$0.articleNew_1 == null)) { + tmp = 36; + } else if (!(this$0.pediaCardPic_1 == null)) { + tmp = 37; + } else if (!(this$0.npsCard_1 == null)) { + tmp = 38; + } else if (!(this$0.chatGpt_1 == null)) { + tmp = 39; + } else if (!(this$0.hotRecommend_1 == null)) { + tmp = 40; + } else if (!(this$0.liveMaster_1 == null)) { + tmp = 41; + } else if (!(this$0.liveRoomTitle_1 == null)) { + tmp = 42; + } else if (!(this$0.liveRoom_1 == null)) { + tmp = 43; + } else if (!(this$0.cheese_1 == null)) { + tmp = 44; + } else if (!(this$0.relatedSearch_1 == null)) { + tmp = 45; + } else { + tmp = -1; + } + return tmp; + }; + } + function KItem$_init_$lambda_qja2gd(this$0) { + return function () { + var tmp; + if (!(this$0.special_1 == null)) { + tmp = 0; + } else if (!(this$0.article_1 == null)) { + tmp = 1; + } else if (!(this$0.banner_1 == null)) { + tmp = 2; + } else if (!(this$0.live_1 == null)) { + tmp = 3; + } else if (!(this$0.game_1 == null)) { + tmp = 4; + } else if (!(this$0.purchase_1 == null)) { + tmp = 5; + } else if (!(this$0.recommendWord_1 == null)) { + tmp = 6; + } else if (!(this$0.dynamic_1 == null)) { + tmp = 7; + } else if (!(this$0.suggestKeyword_1 == null)) { + tmp = 8; + } else if (!(this$0.specialGuide_1 == null)) { + tmp = 9; + } else if (!(this$0.comic_1 == null)) { + tmp = 10; + } else if (!(this$0.channelNew_1 == null)) { + tmp = 11; + } else if (!(this$0.ogvCard_1 == null)) { + tmp = 12; + } else if (!(this$0.bangumiRelates_1 == null)) { + tmp = 13; + } else if (!(this$0.findMore_1 == null)) { + tmp = 14; + } else if (!(this$0.esport_1 == null)) { + tmp = 15; + } else if (!(this$0.authorNew_1 == null)) { + tmp = 16; + } else if (!(this$0.tips_1 == null)) { + tmp = 17; + } else if (!(this$0.cm_1 == null)) { + tmp = 18; + } else if (!(this$0.pediaCard_1 == null)) { + tmp = 19; + } else if (!(this$0.ugcInline_1 == null)) { + tmp = 20; + } else if (!(this$0.liveInline_1 == null)) { + tmp = 21; + } else if (!(this$0.topGame_1 == null)) { + tmp = 22; + } else if (!(this$0.sports_1 == null)) { + tmp = 23; + } else if (!(this$0.pediaCardInline_1 == null)) { + tmp = 24; + } else if (!(this$0.recommendTips_1 == null)) { + tmp = 25; + } else if (!(this$0.collectionCard_1 == null)) { + tmp = 26; + } else if (!(this$0.ogvChannel_1 == null)) { + tmp = 27; + } else if (!(this$0.ogvInline_1 == null)) { + tmp = 28; + } else if (!(this$0.author_1 == null)) { + tmp = 29; + } else if (!(this$0.av_1 == null)) { + tmp = 30; + } else if (!(this$0.bangumi_1 == null)) { + tmp = 31; + } else if (!(this$0.esportsInline_1 == null)) { + tmp = 32; + } else if (!(this$0.hotBanner_1 == null)) { + tmp = 33; + } else if (!(this$0.subject_1 == null)) { + tmp = 34; + } else if (!(this$0.dynamicNew_1 == null)) { + tmp = 35; + } else if (!(this$0.articleNew_1 == null)) { + tmp = 36; + } else if (!(this$0.pediaCardPic_1 == null)) { + tmp = 37; + } else if (!(this$0.npsCard_1 == null)) { + tmp = 38; + } else if (!(this$0.chatGpt_1 == null)) { + tmp = 39; + } else if (!(this$0.hotRecommend_1 == null)) { + tmp = 40; + } else if (!(this$0.liveMaster_1 == null)) { + tmp = 41; + } else if (!(this$0.liveRoomTitle_1 == null)) { + tmp = 42; + } else if (!(this$0.liveRoom_1 == null)) { + tmp = 43; + } else if (!(this$0.cheese_1 == null)) { + tmp = 44; + } else if (!(this$0.relatedSearch_1 == null)) { + tmp = 45; + } else { + tmp = -1; + } + return tmp; + }; + } + var Companion_instance_500; + function Companion_getInstance_500() { + if (Companion_instance_500 === VOID) + new Companion_500(); + return Companion_instance_500; + } + var $serializer_instance_487; + function $serializer_getInstance_487() { + if ($serializer_instance_487 === VOID) + new $serializer_487(); + return $serializer_instance_487; + } + var Companion_instance_501; + function Companion_getInstance_501() { + if (Companion_instance_501 === VOID) + new Companion_501(); + return Companion_instance_501; + } + var $serializer_instance_488; + function $serializer_getInstance_488() { + if ($serializer_instance_488 === VOID) + new $serializer_488(); + return $serializer_instance_488; + } + var Companion_instance_502; + function Companion_getInstance_502() { + if (Companion_instance_502 === VOID) + new Companion_502(); + return Companion_instance_502; + } + var $serializer_instance_489; + function $serializer_getInstance_489() { + if ($serializer_instance_489 === VOID) + new $serializer_489(); + return $serializer_instance_489; + } + var Companion_instance_503; + function Companion_getInstance_503() { + return Companion_instance_503; + } + var $serializer_instance_490; + function $serializer_getInstance_490() { + if ($serializer_instance_490 === VOID) + new $serializer_490(); + return $serializer_instance_490; + } + var Companion_instance_504; + function Companion_getInstance_504() { + if (Companion_instance_504 === VOID) + new Companion_504(); + return Companion_instance_504; + } + var $serializer_instance_491; + function $serializer_getInstance_491() { + if ($serializer_instance_491 === VOID) + new $serializer_491(); + return $serializer_instance_491; + } + var Companion_instance_505; + function Companion_getInstance_505() { + if (Companion_instance_505 === VOID) + new Companion_505(); + return Companion_instance_505; + } + var $serializer_instance_492; + function $serializer_getInstance_492() { + if ($serializer_instance_492 === VOID) + new $serializer_492(); + return $serializer_instance_492; + } + var Companion_instance_506; + function Companion_getInstance_506() { + if (Companion_instance_506 === VOID) + new Companion_506(); + return Companion_instance_506; + } + var $serializer_instance_493; + function $serializer_getInstance_493() { + if ($serializer_instance_493 === VOID) + new $serializer_493(); + return $serializer_instance_493; + } + var Companion_instance_507; + function Companion_getInstance_507() { + return Companion_instance_507; + } + var $serializer_instance_494; + function $serializer_getInstance_494() { + if ($serializer_instance_494 === VOID) + new $serializer_494(); + return $serializer_instance_494; + } + var Companion_instance_508; + function Companion_getInstance_508() { + return Companion_instance_508; + } + var $serializer_instance_495; + function $serializer_getInstance_495() { + if ($serializer_instance_495 === VOID) + new $serializer_495(); + return $serializer_instance_495; + } + var Companion_instance_509; + function Companion_getInstance_509() { + return Companion_instance_509; + } + var $serializer_instance_496; + function $serializer_getInstance_496() { + if ($serializer_instance_496 === VOID) + new $serializer_496(); + return $serializer_instance_496; + } + var Companion_instance_510; + function Companion_getInstance_510() { + return Companion_instance_510; + } + var $serializer_instance_497; + function $serializer_getInstance_497() { + if ($serializer_instance_497 === VOID) + new $serializer_497(); + return $serializer_instance_497; + } + var Companion_instance_511; + function Companion_getInstance_511() { + if (Companion_instance_511 === VOID) + new Companion_511(); + return Companion_instance_511; + } + var $serializer_instance_498; + function $serializer_getInstance_498() { + if ($serializer_instance_498 === VOID) + new $serializer_498(); + return $serializer_instance_498; + } + var Companion_instance_512; + function Companion_getInstance_512() { + if (Companion_instance_512 === VOID) + new Companion_512(); + return Companion_instance_512; + } + var $serializer_instance_499; + function $serializer_getInstance_499() { + if ($serializer_instance_499 === VOID) + new $serializer_499(); + return $serializer_instance_499; + } + var Companion_instance_513; + function Companion_getInstance_513() { + return Companion_instance_513; + } + var $serializer_instance_500; + function $serializer_getInstance_500() { + if ($serializer_instance_500 === VOID) + new $serializer_500(); + return $serializer_instance_500; + } + var Companion_instance_514; + function Companion_getInstance_514() { + return Companion_instance_514; + } + var $serializer_instance_501; + function $serializer_getInstance_501() { + if ($serializer_instance_501 === VOID) + new $serializer_501(); + return $serializer_instance_501; + } + var Companion_instance_515; + function Companion_getInstance_515() { + return Companion_instance_515; + } + var $serializer_instance_502; + function $serializer_getInstance_502() { + if ($serializer_instance_502 === VOID) + new $serializer_502(); + return $serializer_instance_502; + } + var Companion_instance_516; + function Companion_getInstance_516() { + if (Companion_instance_516 === VOID) + new Companion_516(); + return Companion_instance_516; + } + var $serializer_instance_503; + function $serializer_getInstance_503() { + if ($serializer_instance_503 === VOID) + new $serializer_503(); + return $serializer_instance_503; + } + var Companion_instance_517; + function Companion_getInstance_517() { + if (Companion_instance_517 === VOID) + new Companion_517(); + return Companion_instance_517; + } + var $serializer_instance_504; + function $serializer_getInstance_504() { + if ($serializer_instance_504 === VOID) + new $serializer_504(); + return $serializer_instance_504; + } + var Companion_instance_518; + function Companion_getInstance_518() { + return Companion_instance_518; + } + var $serializer_instance_505; + function $serializer_getInstance_505() { + if ($serializer_instance_505 === VOID) + new $serializer_505(); + return $serializer_instance_505; + } + var Companion_instance_519; + function Companion_getInstance_519() { + return Companion_instance_519; + } + var $serializer_instance_506; + function $serializer_getInstance_506() { + if ($serializer_instance_506 === VOID) + new $serializer_506(); + return $serializer_instance_506; + } + var Companion_instance_520; + function Companion_getInstance_520() { + if (Companion_instance_520 === VOID) + new Companion_520(); + return Companion_instance_520; + } + var $serializer_instance_507; + function $serializer_getInstance_507() { + if ($serializer_instance_507 === VOID) + new $serializer_507(); + return $serializer_instance_507; + } + var Companion_instance_521; + function Companion_getInstance_521() { + return Companion_instance_521; + } + var $serializer_instance_508; + function $serializer_getInstance_508() { + if ($serializer_instance_508 === VOID) + new $serializer_508(); + return $serializer_instance_508; + } + var Companion_instance_522; + function Companion_getInstance_522() { + if (Companion_instance_522 === VOID) + new Companion_522(); + return Companion_instance_522; + } + var $serializer_instance_509; + function $serializer_getInstance_509() { + if ($serializer_instance_509 === VOID) + new $serializer_509(); + return $serializer_instance_509; + } + var Companion_instance_523; + function Companion_getInstance_523() { + if (Companion_instance_523 === VOID) + new Companion_523(); + return Companion_instance_523; + } + var $serializer_instance_510; + function $serializer_getInstance_510() { + if ($serializer_instance_510 === VOID) + new $serializer_510(); + return $serializer_instance_510; + } + var Companion_instance_524; + function Companion_getInstance_524() { + return Companion_instance_524; + } + var $serializer_instance_511; + function $serializer_getInstance_511() { + if ($serializer_instance_511 === VOID) + new $serializer_511(); + return $serializer_instance_511; + } + var Companion_instance_525; + function Companion_getInstance_525() { + if (Companion_instance_525 === VOID) + new Companion_525(); + return Companion_instance_525; + } + var $serializer_instance_512; + function $serializer_getInstance_512() { + if ($serializer_instance_512 === VOID) + new $serializer_512(); + return $serializer_instance_512; + } + var Companion_instance_526; + function Companion_getInstance_526() { + if (Companion_instance_526 === VOID) + new Companion_526(); + return Companion_instance_526; + } + var $serializer_instance_513; + function $serializer_getInstance_513() { + if ($serializer_instance_513 === VOID) + new $serializer_513(); + return $serializer_instance_513; + } + var Companion_instance_527; + function Companion_getInstance_527() { + return Companion_instance_527; + } + var $serializer_instance_514; + function $serializer_getInstance_514() { + if ($serializer_instance_514 === VOID) + new $serializer_514(); + return $serializer_instance_514; + } + var Companion_instance_528; + function Companion_getInstance_528() { + return Companion_instance_528; + } + var $serializer_instance_515; + function $serializer_getInstance_515() { + if ($serializer_instance_515 === VOID) + new $serializer_515(); + return $serializer_instance_515; + } + var Companion_instance_529; + function Companion_getInstance_529() { + if (Companion_instance_529 === VOID) + new Companion_529(); + return Companion_instance_529; + } + var $serializer_instance_516; + function $serializer_getInstance_516() { + if ($serializer_instance_516 === VOID) + new $serializer_516(); + return $serializer_instance_516; + } + var Companion_instance_530; + function Companion_getInstance_530() { + return Companion_instance_530; + } + var $serializer_instance_517; + function $serializer_getInstance_517() { + if ($serializer_instance_517 === VOID) + new $serializer_517(); + return $serializer_instance_517; + } + var Companion_instance_531; + function Companion_getInstance_531() { + return Companion_instance_531; + } + var $serializer_instance_518; + function $serializer_getInstance_518() { + if ($serializer_instance_518 === VOID) + new $serializer_518(); + return $serializer_instance_518; + } + var Companion_instance_532; + function Companion_getInstance_532() { + if (Companion_instance_532 === VOID) + new Companion_532(); + return Companion_instance_532; + } + var $serializer_instance_519; + function $serializer_getInstance_519() { + if ($serializer_instance_519 === VOID) + new $serializer_519(); + return $serializer_instance_519; + } + var Companion_instance_533; + function Companion_getInstance_533() { + if (Companion_instance_533 === VOID) + new Companion_533(); + return Companion_instance_533; + } + var $serializer_instance_520; + function $serializer_getInstance_520() { + if ($serializer_instance_520 === VOID) + new $serializer_520(); + return $serializer_instance_520; + } + var Companion_instance_534; + function Companion_getInstance_534() { + return Companion_instance_534; + } + var $serializer_instance_521; + function $serializer_getInstance_521() { + if ($serializer_instance_521 === VOID) + new $serializer_521(); + return $serializer_instance_521; + } + var Companion_instance_535; + function Companion_getInstance_535() { + return Companion_instance_535; + } + var $serializer_instance_522; + function $serializer_getInstance_522() { + if ($serializer_instance_522 === VOID) + new $serializer_522(); + return $serializer_instance_522; + } + var Companion_instance_536; + function Companion_getInstance_536() { + return Companion_instance_536; + } + var $serializer_instance_523; + function $serializer_getInstance_523() { + if ($serializer_instance_523 === VOID) + new $serializer_523(); + return $serializer_instance_523; + } + var Companion_instance_537; + function Companion_getInstance_537() { + return Companion_instance_537; + } + var $serializer_instance_524; + function $serializer_getInstance_524() { + if ($serializer_instance_524 === VOID) + new $serializer_524(); + return $serializer_instance_524; + } + var Companion_instance_538; + function Companion_getInstance_538() { + return Companion_instance_538; + } + var $serializer_instance_525; + function $serializer_getInstance_525() { + if ($serializer_instance_525 === VOID) + new $serializer_525(); + return $serializer_instance_525; + } + var Companion_instance_539; + function Companion_getInstance_539() { + return Companion_instance_539; + } + var $serializer_instance_526; + function $serializer_getInstance_526() { + if ($serializer_instance_526 === VOID) + new $serializer_526(); + return $serializer_instance_526; + } + var Companion_instance_540; + function Companion_getInstance_540() { + return Companion_instance_540; + } + var $serializer_instance_527; + function $serializer_getInstance_527() { + if ($serializer_instance_527 === VOID) + new $serializer_527(); + return $serializer_instance_527; + } + var Companion_instance_541; + function Companion_getInstance_541() { + if (Companion_instance_541 === VOID) + new Companion_541(); + return Companion_instance_541; + } + var $serializer_instance_528; + function $serializer_getInstance_528() { + if ($serializer_instance_528 === VOID) + new $serializer_528(); + return $serializer_instance_528; + } + var Companion_instance_542; + function Companion_getInstance_542() { + return Companion_instance_542; + } + var $serializer_instance_529; + function $serializer_getInstance_529() { + if ($serializer_instance_529 === VOID) + new $serializer_529(); + return $serializer_instance_529; + } + var Companion_instance_543; + function Companion_getInstance_543() { + if (Companion_instance_543 === VOID) + new Companion_543(); + return Companion_instance_543; + } + var $serializer_instance_530; + function $serializer_getInstance_530() { + if ($serializer_instance_530 === VOID) + new $serializer_530(); + return $serializer_instance_530; + } + var Companion_instance_544; + function Companion_getInstance_544() { + return Companion_instance_544; + } + var $serializer_instance_531; + function $serializer_getInstance_531() { + if ($serializer_instance_531 === VOID) + new $serializer_531(); + return $serializer_instance_531; + } + var Companion_instance_545; + function Companion_getInstance_545() { + return Companion_instance_545; + } + var $serializer_instance_532; + function $serializer_getInstance_532() { + if ($serializer_instance_532 === VOID) + new $serializer_532(); + return $serializer_instance_532; + } + var Companion_instance_546; + function Companion_getInstance_546() { + if (Companion_instance_546 === VOID) + new Companion_546(); + return Companion_instance_546; + } + var $serializer_instance_533; + function $serializer_getInstance_533() { + if ($serializer_instance_533 === VOID) + new $serializer_533(); + return $serializer_instance_533; + } + var Companion_instance_547; + function Companion_getInstance_547() { + if (Companion_instance_547 === VOID) + new Companion_547(); + return Companion_instance_547; + } + var $serializer_instance_534; + function $serializer_getInstance_534() { + if ($serializer_instance_534 === VOID) + new $serializer_534(); + return $serializer_instance_534; + } + var Companion_instance_548; + function Companion_getInstance_548() { + if (Companion_instance_548 === VOID) + new Companion_548(); + return Companion_instance_548; + } + var $serializer_instance_535; + function $serializer_getInstance_535() { + if ($serializer_instance_535 === VOID) + new $serializer_535(); + return $serializer_instance_535; + } + var Companion_instance_549; + function Companion_getInstance_549() { + if (Companion_instance_549 === VOID) + new Companion_549(); + return Companion_instance_549; + } + var $serializer_instance_536; + function $serializer_getInstance_536() { + if ($serializer_instance_536 === VOID) + new $serializer_536(); + return $serializer_instance_536; + } + var Companion_instance_550; + function Companion_getInstance_550() { + return Companion_instance_550; + } + var $serializer_instance_537; + function $serializer_getInstance_537() { + if ($serializer_instance_537 === VOID) + new $serializer_537(); + return $serializer_instance_537; + } + var Companion_instance_551; + function Companion_getInstance_551() { + if (Companion_instance_551 === VOID) + new Companion_551(); + return Companion_instance_551; + } + var $serializer_instance_538; + function $serializer_getInstance_538() { + if ($serializer_instance_538 === VOID) + new $serializer_538(); + return $serializer_instance_538; + } + var Companion_instance_552; + function Companion_getInstance_552() { + if (Companion_instance_552 === VOID) + new Companion_552(); + return Companion_instance_552; + } + var $serializer_instance_539; + function $serializer_getInstance_539() { + if ($serializer_instance_539 === VOID) + new $serializer_539(); + return $serializer_instance_539; + } + var Companion_instance_553; + function Companion_getInstance_553() { + return Companion_instance_553; + } + var $serializer_instance_540; + function $serializer_getInstance_540() { + if ($serializer_instance_540 === VOID) + new $serializer_540(); + return $serializer_instance_540; + } + var Companion_instance_554; + function Companion_getInstance_554() { + return Companion_instance_554; + } + var $serializer_instance_541; + function $serializer_getInstance_541() { + if ($serializer_instance_541 === VOID) + new $serializer_541(); + return $serializer_instance_541; + } + var Companion_instance_555; + function Companion_getInstance_555() { + return Companion_instance_555; + } + var $serializer_instance_542; + function $serializer_getInstance_542() { + if ($serializer_instance_542 === VOID) + new $serializer_542(); + return $serializer_instance_542; + } + var Companion_instance_556; + function Companion_getInstance_556() { + return Companion_instance_556; + } + var $serializer_instance_543; + function $serializer_getInstance_543() { + if ($serializer_instance_543 === VOID) + new $serializer_543(); + return $serializer_instance_543; + } + var Companion_instance_557; + function Companion_getInstance_557() { + return Companion_instance_557; + } + var $serializer_instance_544; + function $serializer_getInstance_544() { + if ($serializer_instance_544 === VOID) + new $serializer_544(); + return $serializer_instance_544; + } + var Companion_instance_558; + function Companion_getInstance_558() { + return Companion_instance_558; + } + var $serializer_instance_545; + function $serializer_getInstance_545() { + if ($serializer_instance_545 === VOID) + new $serializer_545(); + return $serializer_instance_545; + } + var Companion_instance_559; + function Companion_getInstance_559() { + return Companion_instance_559; + } + var $serializer_instance_546; + function $serializer_getInstance_546() { + if ($serializer_instance_546 === VOID) + new $serializer_546(); + return $serializer_instance_546; + } + var Companion_instance_560; + function Companion_getInstance_560() { + return Companion_instance_560; + } + var $serializer_instance_547; + function $serializer_getInstance_547() { + if ($serializer_instance_547 === VOID) + new $serializer_547(); + return $serializer_instance_547; + } + var Companion_instance_561; + function Companion_getInstance_561() { + return Companion_instance_561; + } + var $serializer_instance_548; + function $serializer_getInstance_548() { + if ($serializer_instance_548 === VOID) + new $serializer_548(); + return $serializer_instance_548; + } + var Companion_instance_562; + function Companion_getInstance_562() { + return Companion_instance_562; + } + var $serializer_instance_549; + function $serializer_getInstance_549() { + if ($serializer_instance_549 === VOID) + new $serializer_549(); + return $serializer_instance_549; + } + var Companion_instance_563; + function Companion_getInstance_563() { + return Companion_instance_563; + } + var $serializer_instance_550; + function $serializer_getInstance_550() { + if ($serializer_instance_550 === VOID) + new $serializer_550(); + return $serializer_instance_550; + } + var Companion_instance_564; + function Companion_getInstance_564() { + return Companion_instance_564; + } + var $serializer_instance_551; + function $serializer_getInstance_551() { + if ($serializer_instance_551 === VOID) + new $serializer_551(); + return $serializer_instance_551; + } + var Companion_instance_565; + function Companion_getInstance_565() { + return Companion_instance_565; + } + var $serializer_instance_552; + function $serializer_getInstance_552() { + if ($serializer_instance_552 === VOID) + new $serializer_552(); + return $serializer_instance_552; + } + var Companion_instance_566; + function Companion_getInstance_566() { + return Companion_instance_566; + } + var $serializer_instance_553; + function $serializer_getInstance_553() { + if ($serializer_instance_553 === VOID) + new $serializer_553(); + return $serializer_instance_553; + } + var Companion_instance_567; + function Companion_getInstance_567() { + return Companion_instance_567; + } + var $serializer_instance_554; + function $serializer_getInstance_554() { + if ($serializer_instance_554 === VOID) + new $serializer_554(); + return $serializer_instance_554; + } + var Companion_instance_568; + function Companion_getInstance_568() { + return Companion_instance_568; + } + var $serializer_instance_555; + function $serializer_getInstance_555() { + if ($serializer_instance_555 === VOID) + new $serializer_555(); + return $serializer_instance_555; + } + var Companion_instance_569; + function Companion_getInstance_569() { + if (Companion_instance_569 === VOID) + new Companion_569(); + return Companion_instance_569; + } + var $serializer_instance_556; + function $serializer_getInstance_556() { + if ($serializer_instance_556 === VOID) + new $serializer_556(); + return $serializer_instance_556; + } + var Companion_instance_570; + function Companion_getInstance_570() { + return Companion_instance_570; + } + var $serializer_instance_557; + function $serializer_getInstance_557() { + if ($serializer_instance_557 === VOID) + new $serializer_557(); + return $serializer_instance_557; + } + var Companion_instance_571; + function Companion_getInstance_571() { + return Companion_instance_571; + } + var $serializer_instance_558; + function $serializer_getInstance_558() { + if ($serializer_instance_558 === VOID) + new $serializer_558(); + return $serializer_instance_558; + } + var Companion_instance_572; + function Companion_getInstance_572() { + return Companion_instance_572; + } + var $serializer_instance_559; + function $serializer_getInstance_559() { + if ($serializer_instance_559 === VOID) + new $serializer_559(); + return $serializer_instance_559; + } + var Companion_instance_573; + function Companion_getInstance_573() { + return Companion_instance_573; + } + var $serializer_instance_560; + function $serializer_getInstance_560() { + if ($serializer_instance_560 === VOID) + new $serializer_560(); + return $serializer_instance_560; + } + var Companion_instance_574; + function Companion_getInstance_574() { + return Companion_instance_574; + } + var $serializer_instance_561; + function $serializer_getInstance_561() { + if ($serializer_instance_561 === VOID) + new $serializer_561(); + return $serializer_instance_561; + } + var Companion_instance_575; + function Companion_getInstance_575() { + return Companion_instance_575; + } + var $serializer_instance_562; + function $serializer_getInstance_562() { + if ($serializer_instance_562 === VOID) + new $serializer_562(); + return $serializer_instance_562; + } + var Companion_instance_576; + function Companion_getInstance_576() { + return Companion_instance_576; + } + var $serializer_instance_563; + function $serializer_getInstance_563() { + if ($serializer_instance_563 === VOID) + new $serializer_563(); + return $serializer_instance_563; + } + var Companion_instance_577; + function Companion_getInstance_577() { + return Companion_instance_577; + } + var $serializer_instance_564; + function $serializer_getInstance_564() { + if ($serializer_instance_564 === VOID) + new $serializer_564(); + return $serializer_instance_564; + } + var Companion_instance_578; + function Companion_getInstance_578() { + return Companion_instance_578; + } + var $serializer_instance_565; + function $serializer_getInstance_565() { + if ($serializer_instance_565 === VOID) + new $serializer_565(); + return $serializer_instance_565; + } + var Companion_instance_579; + function Companion_getInstance_579() { + return Companion_instance_579; + } + var $serializer_instance_566; + function $serializer_getInstance_566() { + if ($serializer_instance_566 === VOID) + new $serializer_566(); + return $serializer_instance_566; + } + var Companion_instance_580; + function Companion_getInstance_580() { + return Companion_instance_580; + } + var $serializer_instance_567; + function $serializer_getInstance_567() { + if ($serializer_instance_567 === VOID) + new $serializer_567(); + return $serializer_instance_567; + } + var Companion_instance_581; + function Companion_getInstance_581() { + return Companion_instance_581; + } + var $serializer_instance_568; + function $serializer_getInstance_568() { + if ($serializer_instance_568 === VOID) + new $serializer_568(); + return $serializer_instance_568; + } + var Companion_instance_582; + function Companion_getInstance_582() { + return Companion_instance_582; + } + var $serializer_instance_569; + function $serializer_getInstance_569() { + if ($serializer_instance_569 === VOID) + new $serializer_569(); + return $serializer_instance_569; + } + var Companion_instance_583; + function Companion_getInstance_583() { + return Companion_instance_583; + } + var $serializer_instance_570; + function $serializer_getInstance_570() { + if ($serializer_instance_570 === VOID) + new $serializer_570(); + return $serializer_instance_570; + } + var Companion_instance_584; + function Companion_getInstance_584() { + return Companion_instance_584; + } + var $serializer_instance_571; + function $serializer_getInstance_571() { + if ($serializer_instance_571 === VOID) + new $serializer_571(); + return $serializer_instance_571; + } + var Companion_instance_585; + function Companion_getInstance_585() { + return Companion_instance_585; + } + var $serializer_instance_572; + function $serializer_getInstance_572() { + if ($serializer_instance_572 === VOID) + new $serializer_572(); + return $serializer_instance_572; + } + var Companion_instance_586; + function Companion_getInstance_586() { + return Companion_instance_586; + } + var $serializer_instance_573; + function $serializer_getInstance_573() { + if ($serializer_instance_573 === VOID) + new $serializer_573(); + return $serializer_instance_573; + } + var Companion_instance_587; + function Companion_getInstance_587() { + return Companion_instance_587; + } + var $serializer_instance_574; + function $serializer_getInstance_574() { + if ($serializer_instance_574 === VOID) + new $serializer_574(); + return $serializer_instance_574; + } + var Companion_instance_588; + function Companion_getInstance_588() { + return Companion_instance_588; + } + var $serializer_instance_575; + function $serializer_getInstance_575() { + if ($serializer_instance_575 === VOID) + new $serializer_575(); + return $serializer_instance_575; + } + var Companion_instance_589; + function Companion_getInstance_589() { + return Companion_instance_589; + } + var $serializer_instance_576; + function $serializer_getInstance_576() { + if ($serializer_instance_576 === VOID) + new $serializer_576(); + return $serializer_instance_576; + } + var Companion_instance_590; + function Companion_getInstance_590() { + if (Companion_instance_590 === VOID) + new Companion_590(); + return Companion_instance_590; + } + var $serializer_instance_577; + function $serializer_getInstance_577() { + if ($serializer_instance_577 === VOID) + new $serializer_577(); + return $serializer_instance_577; + } + var Companion_instance_591; + function Companion_getInstance_591() { + if (Companion_instance_591 === VOID) + new Companion_591(); + return Companion_instance_591; + } + var $serializer_instance_578; + function $serializer_getInstance_578() { + if ($serializer_instance_578 === VOID) + new $serializer_578(); + return $serializer_instance_578; + } + var Companion_instance_592; + function Companion_getInstance_592() { + return Companion_instance_592; + } + var $serializer_instance_579; + function $serializer_getInstance_579() { + if ($serializer_instance_579 === VOID) + new $serializer_579(); + return $serializer_instance_579; + } + var Companion_instance_593; + function Companion_getInstance_593() { + return Companion_instance_593; + } + var $serializer_instance_580; + function $serializer_getInstance_580() { + if ($serializer_instance_580 === VOID) + new $serializer_580(); + return $serializer_instance_580; + } + var Companion_instance_594; + function Companion_getInstance_594() { + if (Companion_instance_594 === VOID) + new Companion_594(); + return Companion_instance_594; + } + var $serializer_instance_581; + function $serializer_getInstance_581() { + if ($serializer_instance_581 === VOID) + new $serializer_581(); + return $serializer_instance_581; + } + var Companion_instance_595; + function Companion_getInstance_595() { + return Companion_instance_595; + } + var $serializer_instance_582; + function $serializer_getInstance_582() { + if ($serializer_instance_582 === VOID) + new $serializer_582(); + return $serializer_instance_582; + } + var Companion_instance_596; + function Companion_getInstance_596() { + return Companion_instance_596; + } + var $serializer_instance_583; + function $serializer_getInstance_583() { + if ($serializer_instance_583 === VOID) + new $serializer_583(); + return $serializer_instance_583; + } + var Companion_instance_597; + function Companion_getInstance_597() { + return Companion_instance_597; + } + var $serializer_instance_584; + function $serializer_getInstance_584() { + if ($serializer_instance_584 === VOID) + new $serializer_584(); + return $serializer_instance_584; + } + var Companion_instance_598; + function Companion_getInstance_598() { + return Companion_instance_598; + } + var $serializer_instance_585; + function $serializer_getInstance_585() { + if ($serializer_instance_585 === VOID) + new $serializer_585(); + return $serializer_instance_585; + } + var Companion_instance_599; + function Companion_getInstance_599() { + return Companion_instance_599; + } + var $serializer_instance_586; + function $serializer_getInstance_586() { + if ($serializer_instance_586 === VOID) + new $serializer_586(); + return $serializer_instance_586; + } + var Companion_instance_600; + function Companion_getInstance_600() { + if (Companion_instance_600 === VOID) + new Companion_600(); + return Companion_instance_600; + } + var $serializer_instance_587; + function $serializer_getInstance_587() { + if ($serializer_instance_587 === VOID) + new $serializer_587(); + return $serializer_instance_587; + } + var Companion_instance_601; + function Companion_getInstance_601() { + return Companion_instance_601; + } + var $serializer_instance_588; + function $serializer_getInstance_588() { + if ($serializer_instance_588 === VOID) + new $serializer_588(); + return $serializer_instance_588; + } + var Companion_instance_602; + function Companion_getInstance_602() { + return Companion_instance_602; + } + var $serializer_instance_589; + function $serializer_getInstance_589() { + if ($serializer_instance_589 === VOID) + new $serializer_589(); + return $serializer_instance_589; + } + var Companion_instance_603; + function Companion_getInstance_603() { + return Companion_instance_603; + } + var $serializer_instance_590; + function $serializer_getInstance_590() { + if ($serializer_instance_590 === VOID) + new $serializer_590(); + return $serializer_instance_590; + } + var Companion_instance_604; + function Companion_getInstance_604() { + if (Companion_instance_604 === VOID) + new Companion_604(); + return Companion_instance_604; + } + var $serializer_instance_591; + function $serializer_getInstance_591() { + if ($serializer_instance_591 === VOID) + new $serializer_591(); + return $serializer_instance_591; + } + var Companion_instance_605; + function Companion_getInstance_605() { + return Companion_instance_605; + } + var $serializer_instance_592; + function $serializer_getInstance_592() { + if ($serializer_instance_592 === VOID) + new $serializer_592(); + return $serializer_instance_592; + } + var Companion_instance_606; + function Companion_getInstance_606() { + return Companion_instance_606; + } + var $serializer_instance_593; + function $serializer_getInstance_593() { + if ($serializer_instance_593 === VOID) + new $serializer_593(); + return $serializer_instance_593; + } + var Companion_instance_607; + function Companion_getInstance_607() { + if (Companion_instance_607 === VOID) + new Companion_607(); + return Companion_instance_607; + } + var $serializer_instance_594; + function $serializer_getInstance_594() { + if ($serializer_instance_594 === VOID) + new $serializer_594(); + return $serializer_instance_594; + } + var Companion_instance_608; + function Companion_getInstance_608() { + return Companion_instance_608; + } + var $serializer_instance_595; + function $serializer_getInstance_595() { + if ($serializer_instance_595 === VOID) + new $serializer_595(); + return $serializer_instance_595; + } + var Companion_instance_609; + function Companion_getInstance_609() { + return Companion_instance_609; + } + var $serializer_instance_596; + function $serializer_getInstance_596() { + if ($serializer_instance_596 === VOID) + new $serializer_596(); + return $serializer_instance_596; + } + var Companion_instance_610; + function Companion_getInstance_610() { + return Companion_instance_610; + } + var $serializer_instance_597; + function $serializer_getInstance_597() { + if ($serializer_instance_597 === VOID) + new $serializer_597(); + return $serializer_instance_597; + } + var Companion_instance_611; + function Companion_getInstance_611() { + return Companion_instance_611; + } + var $serializer_instance_598; + function $serializer_getInstance_598() { + if ($serializer_instance_598 === VOID) + new $serializer_598(); + return $serializer_instance_598; + } + var Companion_instance_612; + function Companion_getInstance_612() { + return Companion_instance_612; + } + var $serializer_instance_599; + function $serializer_getInstance_599() { + if ($serializer_instance_599 === VOID) + new $serializer_599(); + return $serializer_instance_599; + } + var Companion_instance_613; + function Companion_getInstance_613() { + return Companion_instance_613; + } + var $serializer_instance_600; + function $serializer_getInstance_600() { + if ($serializer_instance_600 === VOID) + new $serializer_600(); + return $serializer_instance_600; + } + var Companion_instance_614; + function Companion_getInstance_614() { + return Companion_instance_614; + } + var $serializer_instance_601; + function $serializer_getInstance_601() { + if ($serializer_instance_601 === VOID) + new $serializer_601(); + return $serializer_instance_601; + } + var Companion_instance_615; + function Companion_getInstance_615() { + return Companion_instance_615; + } + var $serializer_instance_602; + function $serializer_getInstance_602() { + if ($serializer_instance_602 === VOID) + new $serializer_602(); + return $serializer_instance_602; + } + var Companion_instance_616; + function Companion_getInstance_616() { + return Companion_instance_616; + } + var $serializer_instance_603; + function $serializer_getInstance_603() { + if ($serializer_instance_603 === VOID) + new $serializer_603(); + return $serializer_instance_603; + } + var Companion_instance_617; + function Companion_getInstance_617() { + return Companion_instance_617; + } + var $serializer_instance_604; + function $serializer_getInstance_604() { + if ($serializer_instance_604 === VOID) + new $serializer_604(); + return $serializer_instance_604; + } + var Companion_instance_618; + function Companion_getInstance_618() { + return Companion_instance_618; + } + var $serializer_instance_605; + function $serializer_getInstance_605() { + if ($serializer_instance_605 === VOID) + new $serializer_605(); + return $serializer_instance_605; + } + var Companion_instance_619; + function Companion_getInstance_619() { + return Companion_instance_619; + } + var $serializer_instance_606; + function $serializer_getInstance_606() { + if ($serializer_instance_606 === VOID) + new $serializer_606(); + return $serializer_instance_606; + } + var Companion_instance_620; + function Companion_getInstance_620() { + return Companion_instance_620; + } + var $serializer_instance_607; + function $serializer_getInstance_607() { + if ($serializer_instance_607 === VOID) + new $serializer_607(); + return $serializer_instance_607; + } + var Companion_instance_621; + function Companion_getInstance_621() { + return Companion_instance_621; + } + var $serializer_instance_608; + function $serializer_getInstance_608() { + if ($serializer_instance_608 === VOID) + new $serializer_608(); + return $serializer_instance_608; + } + var Companion_instance_622; + function Companion_getInstance_622() { + return Companion_instance_622; + } + var $serializer_instance_609; + function $serializer_getInstance_609() { + if ($serializer_instance_609 === VOID) + new $serializer_609(); + return $serializer_instance_609; + } + var Companion_instance_623; + function Companion_getInstance_623() { + if (Companion_instance_623 === VOID) + new Companion_623(); + return Companion_instance_623; + } + var $serializer_instance_610; + function $serializer_getInstance_610() { + if ($serializer_instance_610 === VOID) + new $serializer_610(); + return $serializer_instance_610; + } + var Companion_instance_624; + function Companion_getInstance_624() { + if (Companion_instance_624 === VOID) + new Companion_624(); + return Companion_instance_624; + } + var $serializer_instance_611; + function $serializer_getInstance_611() { + if ($serializer_instance_611 === VOID) + new $serializer_611(); + return $serializer_instance_611; + } + var Companion_instance_625; + function Companion_getInstance_625() { + return Companion_instance_625; + } + var $serializer_instance_612; + function $serializer_getInstance_612() { + if ($serializer_instance_612 === VOID) + new $serializer_612(); + return $serializer_instance_612; + } + var Companion_instance_626; + function Companion_getInstance_626() { + return Companion_instance_626; + } + var $serializer_instance_613; + function $serializer_getInstance_613() { + if ($serializer_instance_613 === VOID) + new $serializer_613(); + return $serializer_instance_613; + } + var Companion_instance_627; + function Companion_getInstance_627() { + return Companion_instance_627; + } + var $serializer_instance_614; + function $serializer_getInstance_614() { + if ($serializer_instance_614 === VOID) + new $serializer_614(); + return $serializer_instance_614; + } + var Companion_instance_628; + function Companion_getInstance_628() { + return Companion_instance_628; + } + var $serializer_instance_615; + function $serializer_getInstance_615() { + if ($serializer_instance_615 === VOID) + new $serializer_615(); + return $serializer_instance_615; + } + var Companion_instance_629; + function Companion_getInstance_629() { + return Companion_instance_629; + } + var $serializer_instance_616; + function $serializer_getInstance_616() { + if ($serializer_instance_616 === VOID) + new $serializer_616(); + return $serializer_instance_616; + } + var Companion_instance_630; + function Companion_getInstance_630() { + return Companion_instance_630; + } + var $serializer_instance_617; + function $serializer_getInstance_617() { + if ($serializer_instance_617 === VOID) + new $serializer_617(); + return $serializer_instance_617; + } + var Companion_instance_631; + function Companion_getInstance_631() { + if (Companion_instance_631 === VOID) + new Companion_631(); + return Companion_instance_631; + } + var $serializer_instance_618; + function $serializer_getInstance_618() { + if ($serializer_instance_618 === VOID) + new $serializer_618(); + return $serializer_instance_618; + } + var Companion_instance_632; + function Companion_getInstance_632() { + if (Companion_instance_632 === VOID) + new Companion_632(); + return Companion_instance_632; + } + var $serializer_instance_619; + function $serializer_getInstance_619() { + if ($serializer_instance_619 === VOID) + new $serializer_619(); + return $serializer_instance_619; + } + var Companion_instance_633; + function Companion_getInstance_633() { + if (Companion_instance_633 === VOID) + new Companion_633(); + return Companion_instance_633; + } + var $serializer_instance_620; + function $serializer_getInstance_620() { + if ($serializer_instance_620 === VOID) + new $serializer_620(); + return $serializer_instance_620; + } + var Companion_instance_634; + function Companion_getInstance_634() { + return Companion_instance_634; + } + var $serializer_instance_621; + function $serializer_getInstance_621() { + if ($serializer_instance_621 === VOID) + new $serializer_621(); + return $serializer_instance_621; + } + var Companion_instance_635; + function Companion_getInstance_635() { + if (Companion_instance_635 === VOID) + new Companion_635(); + return Companion_instance_635; + } + var $serializer_instance_622; + function $serializer_getInstance_622() { + if ($serializer_instance_622 === VOID) + new $serializer_622(); + return $serializer_instance_622; + } + var Companion_instance_636; + function Companion_getInstance_636() { + return Companion_instance_636; + } + var $serializer_instance_623; + function $serializer_getInstance_623() { + if ($serializer_instance_623 === VOID) + new $serializer_623(); + return $serializer_instance_623; + } + var Companion_instance_637; + function Companion_getInstance_637() { + if (Companion_instance_637 === VOID) + new Companion_637(); + return Companion_instance_637; + } + var $serializer_instance_624; + function $serializer_getInstance_624() { + if ($serializer_instance_624 === VOID) + new $serializer_624(); + return $serializer_instance_624; + } + var Companion_instance_638; + function Companion_getInstance_638() { + return Companion_instance_638; + } + var $serializer_instance_625; + function $serializer_getInstance_625() { + if ($serializer_instance_625 === VOID) + new $serializer_625(); + return $serializer_instance_625; + } + var Companion_instance_639; + function Companion_getInstance_639() { + return Companion_instance_639; + } + var $serializer_instance_626; + function $serializer_getInstance_626() { + if ($serializer_instance_626 === VOID) + new $serializer_626(); + return $serializer_instance_626; + } + var Companion_instance_640; + function Companion_getInstance_640() { + return Companion_instance_640; + } + var $serializer_instance_627; + function $serializer_getInstance_627() { + if ($serializer_instance_627 === VOID) + new $serializer_627(); + return $serializer_instance_627; + } + var Companion_instance_641; + function Companion_getInstance_641() { + return Companion_instance_641; + } + var $serializer_instance_628; + function $serializer_getInstance_628() { + if ($serializer_instance_628 === VOID) + new $serializer_628(); + return $serializer_instance_628; + } + var Companion_instance_642; + function Companion_getInstance_642() { + return Companion_instance_642; + } + var $serializer_instance_629; + function $serializer_getInstance_629() { + if ($serializer_instance_629 === VOID) + new $serializer_629(); + return $serializer_instance_629; + } + var Companion_instance_643; + function Companion_getInstance_643() { + if (Companion_instance_643 === VOID) + new Companion_643(); + return Companion_instance_643; + } + var $serializer_instance_630; + function $serializer_getInstance_630() { + if ($serializer_instance_630 === VOID) + new $serializer_630(); + return $serializer_instance_630; + } + var Companion_instance_644; + function Companion_getInstance_644() { + return Companion_instance_644; + } + var $serializer_instance_631; + function $serializer_getInstance_631() { + if ($serializer_instance_631 === VOID) + new $serializer_631(); + return $serializer_instance_631; + } + var Companion_instance_645; + function Companion_getInstance_645() { + if (Companion_instance_645 === VOID) + new Companion_645(); + return Companion_instance_645; + } + var $serializer_instance_632; + function $serializer_getInstance_632() { + if ($serializer_instance_632 === VOID) + new $serializer_632(); + return $serializer_instance_632; + } + var Companion_instance_646; + function Companion_getInstance_646() { + return Companion_instance_646; + } + var $serializer_instance_633; + function $serializer_getInstance_633() { + if ($serializer_instance_633 === VOID) + new $serializer_633(); + return $serializer_instance_633; + } + var Companion_instance_647; + function Companion_getInstance_647() { + return Companion_instance_647; + } + var $serializer_instance_634; + function $serializer_getInstance_634() { + if ($serializer_instance_634 === VOID) + new $serializer_634(); + return $serializer_instance_634; + } + function KSort_DEFAULT_getInstance() { + KSort_initEntries(); + return KSort_DEFAULT_instance; + } + function KSort_VIEW_COUNT_getInstance() { + KSort_initEntries(); + return KSort_VIEW_COUNT_instance; + } + function KSort_PUBLISH_TIME_getInstance() { + KSort_initEntries(); + return KSort_PUBLISH_TIME_instance; + } + function KSort_DANMAKU_COUNT_getInstance() { + KSort_initEntries(); + return KSort_DANMAKU_COUNT_instance; + } + function KSort_UNRECOGNIZED_getInstance() { + KSort_initEntries(); + return KSort_UNRECOGNIZED_instance; + } + function KCategorySort_DEFAULT_getInstance() { + KCategorySort_initEntries(); + return KCategorySort_DEFAULT_instance; + } + function KCategorySort_PUBLISH_TIME_getInstance() { + KCategorySort_initEntries(); + return KCategorySort_PUBLISH_TIME_instance; + } + function KCategorySort_CLICK_COUNT_getInstance() { + KCategorySort_initEntries(); + return KCategorySort_CLICK_COUNT_instance; + } + function KCategorySort_COMMENT_COUNT_getInstance() { + KCategorySort_initEntries(); + return KCategorySort_COMMENT_COUNT_instance; + } + function KCategorySort_LIKE_COUNT_getInstance() { + KCategorySort_initEntries(); + return KCategorySort_LIKE_COUNT_instance; + } + function KCategorySort_UNRECOGNIZED_getInstance() { + KCategorySort_initEntries(); + return KCategorySort_UNRECOGNIZED_instance; + } + function KUserType_ALL_getInstance() { + KUserType_initEntries(); + return KUserType_ALL_instance; + } + function KUserType_UP_getInstance() { + KUserType_initEntries(); + return KUserType_UP_instance; + } + function KUserType_NORMAL_USER_getInstance() { + KUserType_initEntries(); + return KUserType_NORMAL_USER_instance; + } + function KUserType_AUTHENTICATED_USER_getInstance() { + KUserType_initEntries(); + return KUserType_AUTHENTICATED_USER_instance; + } + function KUserType_UNRECOGNIZED_getInstance() { + KUserType_initEntries(); + return KUserType_UNRECOGNIZED_instance; + } + function KUserSort_DEFAULT_getInstance() { + KUserSort_initEntries(); + return KUserSort_DEFAULT_instance; + } + function KUserSort_FANS_DESCEND_getInstance() { + KUserSort_initEntries(); + return KUserSort_FANS_DESCEND_instance; + } + function KUserSort_FANS_ASCEND_getInstance() { + KUserSort_initEntries(); + return KUserSort_FANS_ASCEND_instance; + } + function KUserSort_LEVEL_DESCEND_getInstance() { + KUserSort_initEntries(); + return KUserSort_LEVEL_DESCEND_instance; + } + function KUserSort_LEVEL_ASCEND_getInstance() { + KUserSort_initEntries(); + return KUserSort_LEVEL_ASCEND_instance; + } + function KUserSort_UNRECOGNIZED_getInstance() { + KUserSort_initEntries(); + return KUserSort_UNRECOGNIZED_instance; + } + function values$factory_66() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_67() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_68() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_69() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function cardItemNumber$factory() { + return getPropertyCallableRef('cardItemNumber', 1, KProperty1, function (receiver) { + return _get_cardItemNumber__9vvfof(receiver); + }, null); + } + function cardItemValues$factory() { + return getPropertyCallableRef('cardItemValues', 1, KProperty1, function (receiver) { + return receiver.cardItemValues; + }, null); + } + var Companion_instance_648; + function Companion_getInstance_648() { + if (Companion_instance_648 === VOID) + new Companion_648(); + return Companion_instance_648; + } + var $serializer_instance_635; + function $serializer_getInstance_635() { + if ($serializer_instance_635 === VOID) + new $serializer_635(); + return $serializer_instance_635; + } + var Companion_instance_649; + function Companion_getInstance_649() { + return Companion_instance_649; + } + var $serializer_instance_636; + function $serializer_getInstance_636() { + if ($serializer_instance_636 === VOID) + new $serializer_636(); + return $serializer_instance_636; + } + var Companion_instance_650; + function Companion_getInstance_650() { + return Companion_instance_650; + } + var $serializer_instance_637; + function $serializer_getInstance_637() { + if ($serializer_instance_637 === VOID) + new $serializer_637(); + return $serializer_instance_637; + } + var Companion_instance_651; + function Companion_getInstance_651() { + return Companion_instance_651; + } + var $serializer_instance_638; + function $serializer_getInstance_638() { + if ($serializer_instance_638 === VOID) + new $serializer_638(); + return $serializer_instance_638; + } + var Companion_instance_652; + function Companion_getInstance_652() { + return Companion_instance_652; + } + var $serializer_instance_639; + function $serializer_getInstance_639() { + if ($serializer_instance_639 === VOID) + new $serializer_639(); + return $serializer_instance_639; + } + var Companion_instance_653; + function Companion_getInstance_653() { + return Companion_instance_653; + } + var $serializer_instance_640; + function $serializer_getInstance_640() { + if ($serializer_instance_640 === VOID) + new $serializer_640(); + return $serializer_instance_640; + } + var Companion_instance_654; + function Companion_getInstance_654() { + return Companion_instance_654; + } + var $serializer_instance_641; + function $serializer_getInstance_641() { + if ($serializer_instance_641 === VOID) + new $serializer_641(); + return $serializer_instance_641; + } + var Companion_instance_655; + function Companion_getInstance_655() { + return Companion_instance_655; + } + var $serializer_instance_642; + function $serializer_getInstance_642() { + if ($serializer_instance_642 === VOID) + new $serializer_642(); + return $serializer_instance_642; + } + var Companion_instance_656; + function Companion_getInstance_656() { + return Companion_instance_656; + } + var $serializer_instance_643; + function $serializer_getInstance_643() { + if ($serializer_instance_643 === VOID) + new $serializer_643(); + return $serializer_instance_643; + } + var Companion_instance_657; + function Companion_getInstance_657() { + return Companion_instance_657; + } + var $serializer_instance_644; + function $serializer_getInstance_644() { + if ($serializer_instance_644 === VOID) + new $serializer_644(); + return $serializer_instance_644; + } + function KCard$Companion$itemValues$delegate$lambda() { + return listOf_0([KSmallCoverV5_getInstance(), KLargeCoverV1_getInstance(), KThreeItemAllV2_getInstance(), KThreeItemV1_getInstance(), KHotTopic_getInstance(), KThreeItemHV5_getInstance(), KMiddleCoverV3_getInstance(), KLargeCoverV4_getInstance(), KPopularTopEntrance_getInstance(), KRcmdOneItem_getInstance(), KSmallCoverV5Ad_getInstance(), KTopicList_getInstance()]); + } + function _get_itemNumber__22vn01($this) { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = $this.itemNumber$delegate_1; + var thisRef = $this; + var property = itemNumber$factory(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + var KSmallCoverV5_instance; + function KSmallCoverV5_getInstance() { + if (KSmallCoverV5_instance === VOID) + new KSmallCoverV5(); + return KSmallCoverV5_instance; + } + var KLargeCoverV1_instance; + function KLargeCoverV1_getInstance() { + if (KLargeCoverV1_instance === VOID) + new KLargeCoverV1(); + return KLargeCoverV1_instance; + } + var KThreeItemAllV2_instance; + function KThreeItemAllV2_getInstance() { + if (KThreeItemAllV2_instance === VOID) + new KThreeItemAllV2(); + return KThreeItemAllV2_instance; + } + var KThreeItemV1_instance; + function KThreeItemV1_getInstance() { + if (KThreeItemV1_instance === VOID) + new KThreeItemV1(); + return KThreeItemV1_instance; + } + var KHotTopic_instance; + function KHotTopic_getInstance() { + if (KHotTopic_instance === VOID) + new KHotTopic(); + return KHotTopic_instance; + } + var KThreeItemHV5_instance; + function KThreeItemHV5_getInstance() { + if (KThreeItemHV5_instance === VOID) + new KThreeItemHV5(); + return KThreeItemHV5_instance; + } + var KMiddleCoverV3_instance; + function KMiddleCoverV3_getInstance() { + if (KMiddleCoverV3_instance === VOID) + new KMiddleCoverV3(); + return KMiddleCoverV3_instance; + } + var KLargeCoverV4_instance; + function KLargeCoverV4_getInstance() { + if (KLargeCoverV4_instance === VOID) + new KLargeCoverV4(); + return KLargeCoverV4_instance; + } + var KPopularTopEntrance_instance; + function KPopularTopEntrance_getInstance() { + if (KPopularTopEntrance_instance === VOID) + new KPopularTopEntrance(); + return KPopularTopEntrance_instance; + } + var KRcmdOneItem_instance; + function KRcmdOneItem_getInstance() { + if (KRcmdOneItem_instance === VOID) + new KRcmdOneItem(); + return KRcmdOneItem_instance; + } + var KSmallCoverV5Ad_instance; + function KSmallCoverV5Ad_getInstance() { + if (KSmallCoverV5Ad_instance === VOID) + new KSmallCoverV5Ad(); + return KSmallCoverV5Ad_instance; + } + var KTopicList_instance; + function KTopicList_getInstance() { + if (KTopicList_instance === VOID) + new KTopicList(); + return KTopicList_instance; + } + var Companion_instance_658; + function Companion_getInstance_658() { + if (Companion_instance_658 === VOID) + new Companion_658(); + return Companion_instance_658; + } + var $serializer_instance_645; + function $serializer_getInstance_645() { + if ($serializer_instance_645 === VOID) + new $serializer_645(); + return $serializer_instance_645; + } + function KCard$itemNumber$delegate$lambda(this$0) { + return function () { + var tmp; + if (!(this$0.smallCoverV5__1 == null)) { + tmp = 0; + } else if (!(this$0.largeCoverV1__1 == null)) { + tmp = 1; + } else if (!(this$0.threeItemAllV2__1 == null)) { + tmp = 2; + } else if (!(this$0.threeItemV1__1 == null)) { + tmp = 3; + } else if (!(this$0.hotTopic_1 == null)) { + tmp = 4; + } else if (!(this$0.threeItemHV5__1 == null)) { + tmp = 5; + } else if (!(this$0.middleCoverV3__1 == null)) { + tmp = 6; + } else if (!(this$0.largeCoverV4__1 == null)) { + tmp = 7; + } else if (!(this$0.popularTopEntrance_1 == null)) { + tmp = 8; + } else if (!(this$0.rcmdOneItem_1 == null)) { + tmp = 9; + } else if (!(this$0.smallCoverV5Ad_1 == null)) { + tmp = 10; + } else if (!(this$0.topicList_1 == null)) { + tmp = 11; + } else { + tmp = -1; + } + return tmp; + }; + } + function KCard$_init_$lambda_nbd3rk(this$0) { + return function () { + var tmp; + if (!(this$0.smallCoverV5__1 == null)) { + tmp = 0; + } else if (!(this$0.largeCoverV1__1 == null)) { + tmp = 1; + } else if (!(this$0.threeItemAllV2__1 == null)) { + tmp = 2; + } else if (!(this$0.threeItemV1__1 == null)) { + tmp = 3; + } else if (!(this$0.hotTopic_1 == null)) { + tmp = 4; + } else if (!(this$0.threeItemHV5__1 == null)) { + tmp = 5; + } else if (!(this$0.middleCoverV3__1 == null)) { + tmp = 6; + } else if (!(this$0.largeCoverV4__1 == null)) { + tmp = 7; + } else if (!(this$0.popularTopEntrance_1 == null)) { + tmp = 8; + } else if (!(this$0.rcmdOneItem_1 == null)) { + tmp = 9; + } else if (!(this$0.smallCoverV5Ad_1 == null)) { + tmp = 10; + } else if (!(this$0.topicList_1 == null)) { + tmp = 11; + } else { + tmp = -1; + } + return tmp; + }; + } + function itemNumber$factory() { + return getPropertyCallableRef('itemNumber', 1, KProperty1, function (receiver) { + return _get_itemNumber__22vn01(receiver); + }, null); + } + function itemValues$factory() { + return getPropertyCallableRef('itemValues', 1, KProperty1, function (receiver) { + return receiver.itemValues; + }, null); + } + var Companion_instance_659; + function Companion_getInstance_659() { + if (Companion_instance_659 === VOID) + new Companion_659(); + return Companion_instance_659; + } + var $serializer_instance_646; + function $serializer_getInstance_646() { + if ($serializer_instance_646 === VOID) + new $serializer_646(); + return $serializer_instance_646; + } + var Companion_instance_660; + function Companion_getInstance_660() { + return Companion_instance_660; + } + var $serializer_instance_647; + function $serializer_getInstance_647() { + if ($serializer_instance_647 === VOID) + new $serializer_647(); + return $serializer_instance_647; + } + var Companion_instance_661; + function Companion_getInstance_661() { + return Companion_instance_661; + } + var $serializer_instance_648; + function $serializer_getInstance_648() { + if ($serializer_instance_648 === VOID) + new $serializer_648(); + return $serializer_instance_648; + } + var Companion_instance_662; + function Companion_getInstance_662() { + if (Companion_instance_662 === VOID) + new Companion_662(); + return Companion_instance_662; + } + var $serializer_instance_649; + function $serializer_getInstance_649() { + if ($serializer_instance_649 === VOID) + new $serializer_649(); + return $serializer_instance_649; + } + var Companion_instance_663; + function Companion_getInstance_663() { + return Companion_instance_663; + } + var $serializer_instance_650; + function $serializer_getInstance_650() { + if ($serializer_instance_650 === VOID) + new $serializer_650(); + return $serializer_instance_650; + } + var Companion_instance_664; + function Companion_getInstance_664() { + return Companion_instance_664; + } + var $serializer_instance_651; + function $serializer_getInstance_651() { + if ($serializer_instance_651 === VOID) + new $serializer_651(); + return $serializer_instance_651; + } + var Companion_instance_665; + function Companion_getInstance_665() { + return Companion_instance_665; + } + var $serializer_instance_652; + function $serializer_getInstance_652() { + if ($serializer_instance_652 === VOID) + new $serializer_652(); + return $serializer_instance_652; + } + var Companion_instance_666; + function Companion_getInstance_666() { + return Companion_instance_666; + } + var $serializer_instance_653; + function $serializer_getInstance_653() { + if ($serializer_instance_653 === VOID) + new $serializer_653(); + return $serializer_instance_653; + } + var Companion_instance_667; + function Companion_getInstance_667() { + return Companion_instance_667; + } + var $serializer_instance_654; + function $serializer_getInstance_654() { + if ($serializer_instance_654 === VOID) + new $serializer_654(); + return $serializer_instance_654; + } + var Companion_instance_668; + function Companion_getInstance_668() { + if (Companion_instance_668 === VOID) + new Companion_668(); + return Companion_instance_668; + } + var $serializer_instance_655; + function $serializer_getInstance_655() { + if ($serializer_instance_655 === VOID) + new $serializer_655(); + return $serializer_instance_655; + } + var Companion_instance_669; + function Companion_getInstance_669() { + if (Companion_instance_669 === VOID) + new Companion_669(); + return Companion_instance_669; + } + var $serializer_instance_656; + function $serializer_getInstance_656() { + if ($serializer_instance_656 === VOID) + new $serializer_656(); + return $serializer_instance_656; + } + var Companion_instance_670; + function Companion_getInstance_670() { + return Companion_instance_670; + } + var $serializer_instance_657; + function $serializer_getInstance_657() { + if ($serializer_instance_657 === VOID) + new $serializer_657(); + return $serializer_instance_657; + } + var Companion_instance_671; + function Companion_getInstance_671() { + return Companion_instance_671; + } + var $serializer_instance_658; + function $serializer_getInstance_658() { + if ($serializer_instance_658 === VOID) + new $serializer_658(); + return $serializer_instance_658; + } + var Companion_instance_672; + function Companion_getInstance_672() { + if (Companion_instance_672 === VOID) + new Companion_672(); + return Companion_instance_672; + } + var $serializer_instance_659; + function $serializer_getInstance_659() { + if ($serializer_instance_659 === VOID) + new $serializer_659(); + return $serializer_instance_659; + } + var Companion_instance_673; + function Companion_getInstance_673() { + return Companion_instance_673; + } + var $serializer_instance_660; + function $serializer_getInstance_660() { + if ($serializer_instance_660 === VOID) + new $serializer_660(); + return $serializer_instance_660; + } + var Companion_instance_674; + function Companion_getInstance_674() { + return Companion_instance_674; + } + var $serializer_instance_661; + function $serializer_getInstance_661() { + if ($serializer_instance_661 === VOID) + new $serializer_661(); + return $serializer_instance_661; + } + var Companion_instance_675; + function Companion_getInstance_675() { + return Companion_instance_675; + } + var $serializer_instance_662; + function $serializer_getInstance_662() { + if ($serializer_instance_662 === VOID) + new $serializer_662(); + return $serializer_instance_662; + } + var Companion_instance_676; + function Companion_getInstance_676() { + return Companion_instance_676; + } + var $serializer_instance_663; + function $serializer_getInstance_663() { + if ($serializer_instance_663 === VOID) + new $serializer_663(); + return $serializer_instance_663; + } + var Companion_instance_677; + function Companion_getInstance_677() { + return Companion_instance_677; + } + var $serializer_instance_664; + function $serializer_getInstance_664() { + if ($serializer_instance_664 === VOID) + new $serializer_664(); + return $serializer_instance_664; + } + var Companion_instance_678; + function Companion_getInstance_678() { + return Companion_instance_678; + } + var $serializer_instance_665; + function $serializer_getInstance_665() { + if ($serializer_instance_665 === VOID) + new $serializer_665(); + return $serializer_instance_665; + } + var Companion_instance_679; + function Companion_getInstance_679() { + if (Companion_instance_679 === VOID) + new Companion_679(); + return Companion_instance_679; + } + var $serializer_instance_666; + function $serializer_getInstance_666() { + if ($serializer_instance_666 === VOID) + new $serializer_666(); + return $serializer_instance_666; + } + var Companion_instance_680; + function Companion_getInstance_680() { + if (Companion_instance_680 === VOID) + new Companion_680(); + return Companion_instance_680; + } + var $serializer_instance_667; + function $serializer_getInstance_667() { + if ($serializer_instance_667 === VOID) + new $serializer_667(); + return $serializer_instance_667; + } + var Companion_instance_681; + function Companion_getInstance_681() { + return Companion_instance_681; + } + var $serializer_instance_668; + function $serializer_getInstance_668() { + if ($serializer_instance_668 === VOID) + new $serializer_668(); + return $serializer_instance_668; + } + function KDoubleCards$Companion$cardValues$delegate$lambda() { + return listOf_0([KSmallCoverV2_getInstance(), KOnePicV2_getInstance(), KThreePicV2_getInstance()]); + } + function _get_cardNumber__g5uxbm_0($this) { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = $this.cardNumber$delegate_1; + var thisRef = $this; + var property = cardNumber$factory_0(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + var KSmallCoverV2_instance; + function KSmallCoverV2_getInstance() { + if (KSmallCoverV2_instance === VOID) + new KSmallCoverV2(); + return KSmallCoverV2_instance; + } + var KOnePicV2_instance; + function KOnePicV2_getInstance() { + if (KOnePicV2_instance === VOID) + new KOnePicV2(); + return KOnePicV2_instance; + } + var KThreePicV2_instance; + function KThreePicV2_getInstance() { + if (KThreePicV2_instance === VOID) + new KThreePicV2(); + return KThreePicV2_instance; + } + var Companion_instance_682; + function Companion_getInstance_682() { + if (Companion_instance_682 === VOID) + new Companion_682(); + return Companion_instance_682; + } + var $serializer_instance_669; + function $serializer_getInstance_669() { + if ($serializer_instance_669 === VOID) + new $serializer_669(); + return $serializer_instance_669; + } + function KDoubleCards$cardNumber$delegate$lambda(this$0) { + return function () { + var tmp; + if (!(this$0.smallCoverV2__1 == null)) { + tmp = 0; + } else if (!(this$0.onePicV2__1 == null)) { + tmp = 1; + } else if (!(this$0.threePicV2__1 == null)) { + tmp = 2; + } else { + tmp = -1; + } + return tmp; + }; + } + function KDoubleCards$_init_$lambda_hv1rmk(this$0) { + return function () { + var tmp; + if (!(this$0.smallCoverV2__1 == null)) { + tmp = 0; + } else if (!(this$0.onePicV2__1 == null)) { + tmp = 1; + } else if (!(this$0.threePicV2__1 == null)) { + tmp = 2; + } else { + tmp = -1; + } + return tmp; + }; + } + var Companion_instance_683; + function Companion_getInstance_683() { + return Companion_instance_683; + } + var $serializer_instance_670; + function $serializer_getInstance_670() { + if ($serializer_instance_670 === VOID) + new $serializer_670(); + return $serializer_instance_670; + } + var Companion_instance_684; + function Companion_getInstance_684() { + return Companion_instance_684; + } + var $serializer_instance_671; + function $serializer_getInstance_671() { + if ($serializer_instance_671 === VOID) + new $serializer_671(); + return $serializer_instance_671; + } + var Companion_instance_685; + function Companion_getInstance_685() { + return Companion_instance_685; + } + var $serializer_instance_672; + function $serializer_getInstance_672() { + if ($serializer_instance_672 === VOID) + new $serializer_672(); + return $serializer_instance_672; + } + var Companion_instance_686; + function Companion_getInstance_686() { + return Companion_instance_686; + } + var $serializer_instance_673; + function $serializer_getInstance_673() { + if ($serializer_instance_673 === VOID) + new $serializer_673(); + return $serializer_instance_673; + } + var Companion_instance_687; + function Companion_getInstance_687() { + if (Companion_instance_687 === VOID) + new Companion_687(); + return Companion_instance_687; + } + var $serializer_instance_674; + function $serializer_getInstance_674() { + if ($serializer_instance_674 === VOID) + new $serializer_674(); + return $serializer_instance_674; + } + var Companion_instance_688; + function Companion_getInstance_688() { + return Companion_instance_688; + } + var $serializer_instance_675; + function $serializer_getInstance_675() { + if ($serializer_instance_675 === VOID) + new $serializer_675(); + return $serializer_instance_675; + } + var Companion_instance_689; + function Companion_getInstance_689() { + return Companion_instance_689; + } + var $serializer_instance_676; + function $serializer_getInstance_676() { + if ($serializer_instance_676 === VOID) + new $serializer_676(); + return $serializer_instance_676; + } + var Companion_instance_690; + function Companion_getInstance_690() { + if (Companion_instance_690 === VOID) + new Companion_690(); + return Companion_instance_690; + } + var $serializer_instance_677; + function $serializer_getInstance_677() { + if ($serializer_instance_677 === VOID) + new $serializer_677(); + return $serializer_instance_677; + } + var Companion_instance_691; + function Companion_getInstance_691() { + return Companion_instance_691; + } + var $serializer_instance_678; + function $serializer_getInstance_678() { + if ($serializer_instance_678 === VOID) + new $serializer_678(); + return $serializer_instance_678; + } + var Companion_instance_692; + function Companion_getInstance_692() { + if (Companion_instance_692 === VOID) + new Companion_692(); + return Companion_instance_692; + } + var $serializer_instance_679; + function $serializer_getInstance_679() { + if ($serializer_instance_679 === VOID) + new $serializer_679(); + return $serializer_instance_679; + } + var Companion_instance_693; + function Companion_getInstance_693() { + return Companion_instance_693; + } + var $serializer_instance_680; + function $serializer_getInstance_680() { + if ($serializer_instance_680 === VOID) + new $serializer_680(); + return $serializer_instance_680; + } + var Companion_instance_694; + function Companion_getInstance_694() { + return Companion_instance_694; + } + var $serializer_instance_681; + function $serializer_getInstance_681() { + if ($serializer_instance_681 === VOID) + new $serializer_681(); + return $serializer_instance_681; + } + var Companion_instance_695; + function Companion_getInstance_695() { + return Companion_instance_695; + } + var $serializer_instance_682; + function $serializer_getInstance_682() { + if ($serializer_instance_682 === VOID) + new $serializer_682(); + return $serializer_instance_682; + } + var Companion_instance_696; + function Companion_getInstance_696() { + return Companion_instance_696; + } + var $serializer_instance_683; + function $serializer_getInstance_683() { + if ($serializer_instance_683 === VOID) + new $serializer_683(); + return $serializer_instance_683; + } + var Companion_instance_697; + function Companion_getInstance_697() { + return Companion_instance_697; + } + var $serializer_instance_684; + function $serializer_getInstance_684() { + if ($serializer_instance_684 === VOID) + new $serializer_684(); + return $serializer_instance_684; + } + var Companion_instance_698; + function Companion_getInstance_698() { + return Companion_instance_698; + } + var $serializer_instance_685; + function $serializer_getInstance_685() { + if ($serializer_instance_685 === VOID) + new $serializer_685(); + return $serializer_instance_685; + } + var Companion_instance_699; + function Companion_getInstance_699() { + return Companion_instance_699; + } + var $serializer_instance_686; + function $serializer_getInstance_686() { + if ($serializer_instance_686 === VOID) + new $serializer_686(); + return $serializer_instance_686; + } + var Companion_instance_700; + function Companion_getInstance_700() { + return Companion_instance_700; + } + var $serializer_instance_687; + function $serializer_getInstance_687() { + if ($serializer_instance_687 === VOID) + new $serializer_687(); + return $serializer_instance_687; + } + var Companion_instance_701; + function Companion_getInstance_701() { + return Companion_instance_701; + } + var $serializer_instance_688; + function $serializer_getInstance_688() { + if ($serializer_instance_688 === VOID) + new $serializer_688(); + return $serializer_instance_688; + } + function cardNumber$factory_0() { + return getPropertyCallableRef('cardNumber', 1, KProperty1, function (receiver) { + return _get_cardNumber__g5uxbm_0(receiver); + }, null); + } + function cardValues$factory_0() { + return getPropertyCallableRef('cardValues', 1, KProperty1, function (receiver) { + return receiver.cardValues; + }, null); + } + var Companion_instance_702; + function Companion_getInstance_702() { + return Companion_instance_702; + } + var $serializer_instance_689; + function $serializer_getInstance_689() { + if ($serializer_instance_689 === VOID) + new $serializer_689(); + return $serializer_instance_689; + } + var Companion_instance_703; + function Companion_getInstance_703() { + return Companion_instance_703; + } + var $serializer_instance_690; + function $serializer_getInstance_690() { + if ($serializer_instance_690 === VOID) + new $serializer_690(); + return $serializer_instance_690; + } + var Companion_instance_704; + function Companion_getInstance_704() { + return Companion_instance_704; + } + var $serializer_instance_691; + function $serializer_getInstance_691() { + if ($serializer_instance_691 === VOID) + new $serializer_691(); + return $serializer_instance_691; + } + var Companion_instance_705; + function Companion_getInstance_705() { + return Companion_instance_705; + } + var $serializer_instance_692; + function $serializer_getInstance_692() { + if ($serializer_instance_692 === VOID) + new $serializer_692(); + return $serializer_instance_692; + } + var Companion_instance_706; + function Companion_getInstance_706() { + if (Companion_instance_706 === VOID) + new Companion_706(); + return Companion_instance_706; + } + var $serializer_instance_693; + function $serializer_getInstance_693() { + if ($serializer_instance_693 === VOID) + new $serializer_693(); + return $serializer_instance_693; + } + var Companion_instance_707; + function Companion_getInstance_707() { + return Companion_instance_707; + } + var $serializer_instance_694; + function $serializer_getInstance_694() { + if ($serializer_instance_694 === VOID) + new $serializer_694(); + return $serializer_instance_694; + } + var Companion_instance_708; + function Companion_getInstance_708() { + return Companion_instance_708; + } + var $serializer_instance_695; + function $serializer_getInstance_695() { + if ($serializer_instance_695 === VOID) + new $serializer_695(); + return $serializer_instance_695; + } + var Companion_instance_709; + function Companion_getInstance_709() { + return Companion_instance_709; + } + var $serializer_instance_696; + function $serializer_getInstance_696() { + if ($serializer_instance_696 === VOID) + new $serializer_696(); + return $serializer_instance_696; + } + var Companion_instance_710; + function Companion_getInstance_710() { + if (Companion_instance_710 === VOID) + new Companion_710(); + return Companion_instance_710; + } + var $serializer_instance_697; + function $serializer_getInstance_697() { + if ($serializer_instance_697 === VOID) + new $serializer_697(); + return $serializer_instance_697; + } + var Companion_instance_711; + function Companion_getInstance_711() { + return Companion_instance_711; + } + var $serializer_instance_698; + function $serializer_getInstance_698() { + if ($serializer_instance_698 === VOID) + new $serializer_698(); + return $serializer_instance_698; + } + var Companion_instance_712; + function Companion_getInstance_712() { + if (Companion_instance_712 === VOID) + new Companion_712(); + return Companion_instance_712; + } + var $serializer_instance_699; + function $serializer_getInstance_699() { + if ($serializer_instance_699 === VOID) + new $serializer_699(); + return $serializer_instance_699; + } + var Companion_instance_713; + function Companion_getInstance_713() { + return Companion_instance_713; + } + var $serializer_instance_700; + function $serializer_getInstance_700() { + if ($serializer_instance_700 === VOID) + new $serializer_700(); + return $serializer_instance_700; + } + var Companion_instance_714; + function Companion_getInstance_714() { + if (Companion_instance_714 === VOID) + new Companion_714(); + return Companion_instance_714; + } + var $serializer_instance_701; + function $serializer_getInstance_701() { + if ($serializer_instance_701 === VOID) + new $serializer_701(); + return $serializer_instance_701; + } + var Companion_instance_715; + function Companion_getInstance_715() { + return Companion_instance_715; + } + var $serializer_instance_702; + function $serializer_getInstance_702() { + if ($serializer_instance_702 === VOID) + new $serializer_702(); + return $serializer_instance_702; + } + var Companion_instance_716; + function Companion_getInstance_716() { + return Companion_instance_716; + } + var $serializer_instance_703; + function $serializer_getInstance_703() { + if ($serializer_instance_703 === VOID) + new $serializer_703(); + return $serializer_instance_703; + } + var Companion_instance_717; + function Companion_getInstance_717() { + if (Companion_instance_717 === VOID) + new Companion_717(); + return Companion_instance_717; + } + var $serializer_instance_704; + function $serializer_getInstance_704() { + if ($serializer_instance_704 === VOID) + new $serializer_704(); + return $serializer_instance_704; + } + var Companion_instance_718; + function Companion_getInstance_718() { + return Companion_instance_718; + } + var $serializer_instance_705; + function $serializer_getInstance_705() { + if ($serializer_instance_705 === VOID) + new $serializer_705(); + return $serializer_instance_705; + } + var Companion_instance_719; + function Companion_getInstance_719() { + return Companion_instance_719; + } + var $serializer_instance_706; + function $serializer_getInstance_706() { + if ($serializer_instance_706 === VOID) + new $serializer_706(); + return $serializer_instance_706; + } + var Companion_instance_720; + function Companion_getInstance_720() { + if (Companion_instance_720 === VOID) + new Companion_720(); + return Companion_instance_720; + } + var $serializer_instance_707; + function $serializer_getInstance_707() { + if ($serializer_instance_707 === VOID) + new $serializer_707(); + return $serializer_instance_707; + } + var Companion_instance_721; + function Companion_getInstance_721() { + return Companion_instance_721; + } + var $serializer_instance_708; + function $serializer_getInstance_708() { + if ($serializer_instance_708 === VOID) + new $serializer_708(); + return $serializer_instance_708; + } + var Companion_instance_722; + function Companion_getInstance_722() { + return Companion_instance_722; + } + var $serializer_instance_709; + function $serializer_getInstance_709() { + if ($serializer_instance_709 === VOID) + new $serializer_709(); + return $serializer_instance_709; + } + function _get_$cachedSerializer__te6jhj_70($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KWHRatio$Companion$values$delegate$lambda() { + return listOf_0([KWHRatio_W_H_RATIO_1_1_getInstance(), KWHRatio_W_H_RATIO_16_9_getInstance(), KWHRatio_W_H_RATIO_3_4_getInstance(), KWHRatio_W_H_RATIO_CUSTOM_getInstance()]); + } + function KWHRatio$Companion$_anonymous__kh9k4g() { + return $serializer_getInstance_710(); + } + var KWHRatio_W_H_RATIO_1_1_instance; + var KWHRatio_W_H_RATIO_16_9_instance; + var KWHRatio_W_H_RATIO_3_4_instance; + var KWHRatio_W_H_RATIO_CUSTOM_instance; + var KWHRatio_UNRECOGNIZED_instance; + var Companion_instance_723; + function Companion_getInstance_723() { + KWHRatio_initEntries(); + if (Companion_instance_723 === VOID) + new Companion_723(); + return Companion_instance_723; + } + var $serializer_instance_710; + function $serializer_getInstance_710() { + KWHRatio_initEntries(); + if ($serializer_instance_710 === VOID) + new $serializer_710(); + return $serializer_instance_710; + } + function values_70() { + return [KWHRatio_W_H_RATIO_1_1_getInstance(), KWHRatio_W_H_RATIO_16_9_getInstance(), KWHRatio_W_H_RATIO_3_4_getInstance(), KWHRatio_W_H_RATIO_CUSTOM_getInstance(), KWHRatio_UNRECOGNIZED_getInstance()]; + } + function valueOf_70(value) { + switch (value) { + case 'W_H_RATIO_1_1': + return KWHRatio_W_H_RATIO_1_1_getInstance(); + case 'W_H_RATIO_16_9': + return KWHRatio_W_H_RATIO_16_9_getInstance(); + case 'W_H_RATIO_3_4': + return KWHRatio_W_H_RATIO_3_4_getInstance(); + case 'W_H_RATIO_CUSTOM': + return KWHRatio_W_H_RATIO_CUSTOM_getInstance(); + case 'UNRECOGNIZED': + return KWHRatio_UNRECOGNIZED_getInstance(); + default: + KWHRatio_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KWHRatio_entriesInitialized; + function KWHRatio_initEntries() { + if (KWHRatio_entriesInitialized) + return Unit_instance; + KWHRatio_entriesInitialized = true; + KWHRatio_W_H_RATIO_1_1_instance = new KWHRatio('W_H_RATIO_1_1', 0, 0); + KWHRatio_W_H_RATIO_16_9_instance = new KWHRatio('W_H_RATIO_16_9', 1, 1); + KWHRatio_W_H_RATIO_3_4_instance = new KWHRatio('W_H_RATIO_3_4', 2, 2); + KWHRatio_W_H_RATIO_CUSTOM_instance = new KWHRatio('W_H_RATIO_CUSTOM', 3, 3); + KWHRatio_UNRECOGNIZED_instance = new KWHRatio('UNRECOGNIZED', 4, -1); + Companion_getInstance_723(); + } + var Companion_instance_724; + function Companion_getInstance_724() { + return Companion_instance_724; + } + var $serializer_instance_711; + function $serializer_getInstance_711() { + if ($serializer_instance_711 === VOID) + new $serializer_711(); + return $serializer_instance_711; + } + function KWHRatio_W_H_RATIO_1_1_getInstance() { + KWHRatio_initEntries(); + return KWHRatio_W_H_RATIO_1_1_instance; + } + function KWHRatio_W_H_RATIO_16_9_getInstance() { + KWHRatio_initEntries(); + return KWHRatio_W_H_RATIO_16_9_instance; + } + function KWHRatio_W_H_RATIO_3_4_getInstance() { + KWHRatio_initEntries(); + return KWHRatio_W_H_RATIO_3_4_instance; + } + function KWHRatio_W_H_RATIO_CUSTOM_getInstance() { + KWHRatio_initEntries(); + return KWHRatio_W_H_RATIO_CUSTOM_instance; + } + function KWHRatio_UNRECOGNIZED_getInstance() { + KWHRatio_initEntries(); + return KWHRatio_UNRECOGNIZED_instance; + } + function values$factory_70() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function _get_$cachedSerializer__te6jhj_71($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KWFItemType$Companion$values$delegate$lambda() { + return listOf_0([KWFItemType_WATER_FLOW_TYPE_NONE_getInstance(), KWFItemType_WATER_FLOW_TYPE_ARCHIVE_getInstance(), KWFItemType_WATER_FLOW_TYPE_DYNAMIC_getInstance()]); + } + function KWFItemType$Companion$_anonymous__pswjuw() { + return $serializer_getInstance_712(); + } + var KWFItemType_WATER_FLOW_TYPE_NONE_instance; + var KWFItemType_WATER_FLOW_TYPE_ARCHIVE_instance; + var KWFItemType_WATER_FLOW_TYPE_DYNAMIC_instance; + var KWFItemType_UNRECOGNIZED_instance; + var Companion_instance_725; + function Companion_getInstance_725() { + KWFItemType_initEntries(); + if (Companion_instance_725 === VOID) + new Companion_725(); + return Companion_instance_725; + } + var $serializer_instance_712; + function $serializer_getInstance_712() { + KWFItemType_initEntries(); + if ($serializer_instance_712 === VOID) + new $serializer_712(); + return $serializer_instance_712; + } + function values_71() { + return [KWFItemType_WATER_FLOW_TYPE_NONE_getInstance(), KWFItemType_WATER_FLOW_TYPE_ARCHIVE_getInstance(), KWFItemType_WATER_FLOW_TYPE_DYNAMIC_getInstance(), KWFItemType_UNRECOGNIZED_getInstance()]; + } + function valueOf_71(value) { + switch (value) { + case 'WATER_FLOW_TYPE_NONE': + return KWFItemType_WATER_FLOW_TYPE_NONE_getInstance(); + case 'WATER_FLOW_TYPE_ARCHIVE': + return KWFItemType_WATER_FLOW_TYPE_ARCHIVE_getInstance(); + case 'WATER_FLOW_TYPE_DYNAMIC': + return KWFItemType_WATER_FLOW_TYPE_DYNAMIC_getInstance(); + case 'UNRECOGNIZED': + return KWFItemType_UNRECOGNIZED_getInstance(); + default: + KWFItemType_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KWFItemType_entriesInitialized; + function KWFItemType_initEntries() { + if (KWFItemType_entriesInitialized) + return Unit_instance; + KWFItemType_entriesInitialized = true; + KWFItemType_WATER_FLOW_TYPE_NONE_instance = new KWFItemType('WATER_FLOW_TYPE_NONE', 0, 0); + KWFItemType_WATER_FLOW_TYPE_ARCHIVE_instance = new KWFItemType('WATER_FLOW_TYPE_ARCHIVE', 1, 1); + KWFItemType_WATER_FLOW_TYPE_DYNAMIC_instance = new KWFItemType('WATER_FLOW_TYPE_DYNAMIC', 2, 2); + KWFItemType_UNRECOGNIZED_instance = new KWFItemType('UNRECOGNIZED', 3, -1); + Companion_getInstance_725(); + } + var Companion_instance_726; + function Companion_getInstance_726() { + return Companion_instance_726; + } + var $serializer_instance_713; + function $serializer_getInstance_713() { + if ($serializer_instance_713 === VOID) + new $serializer_713(); + return $serializer_instance_713; + } + var Companion_instance_727; + function Companion_getInstance_727() { + if (Companion_instance_727 === VOID) + new Companion_727(); + return Companion_instance_727; + } + var $serializer_instance_714; + function $serializer_getInstance_714() { + if ($serializer_instance_714 === VOID) + new $serializer_714(); + return $serializer_instance_714; + } + function KCampusWaterFlowItem$Companion$flowItemValues$delegate$lambda() { + return listOf(KItemDefault_getInstance()); + } + function _get_flowItemNumber__n79zun($this) { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = $this.flowItemNumber$delegate_1; + var thisRef = $this; + var property = flowItemNumber$factory(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + var KItemDefault_instance; + function KItemDefault_getInstance() { + if (KItemDefault_instance === VOID) + new KItemDefault(); + return KItemDefault_instance; + } + var Companion_instance_728; + function Companion_getInstance_728() { + if (Companion_instance_728 === VOID) + new Companion_728(); + return Companion_instance_728; + } + var $serializer_instance_715; + function $serializer_getInstance_715() { + if ($serializer_instance_715 === VOID) + new $serializer_715(); + return $serializer_instance_715; + } + function KCampusWaterFlowItem$flowItemNumber$delegate$lambda(this$0) { + return function () { + var tmp; + if (!(this$0.itemDefault_1 == null)) { + tmp = 0; + } else { + tmp = -1; + } + return tmp; + }; + } + function KCampusWaterFlowItem$_init_$lambda_hm2vct(this$0) { + return function () { + var tmp; + if (!(this$0.itemDefault_1 == null)) { + tmp = 0; + } else { + tmp = -1; + } + return tmp; + }; + } + var Companion_instance_729; + function Companion_getInstance_729() { + return Companion_instance_729; + } + var $serializer_instance_716; + function $serializer_getInstance_716() { + if ($serializer_instance_716 === VOID) + new $serializer_716(); + return $serializer_instance_716; + } + var Companion_instance_730; + function Companion_getInstance_730() { + if (Companion_instance_730 === VOID) + new Companion_730(); + return Companion_instance_730; + } + var $serializer_instance_717; + function $serializer_getInstance_717() { + if ($serializer_instance_717 === VOID) + new $serializer_717(); + return $serializer_instance_717; + } + function KWFItemType_WATER_FLOW_TYPE_NONE_getInstance() { + KWFItemType_initEntries(); + return KWFItemType_WATER_FLOW_TYPE_NONE_instance; + } + function KWFItemType_WATER_FLOW_TYPE_ARCHIVE_getInstance() { + KWFItemType_initEntries(); + return KWFItemType_WATER_FLOW_TYPE_ARCHIVE_instance; + } + function KWFItemType_WATER_FLOW_TYPE_DYNAMIC_getInstance() { + KWFItemType_initEntries(); + return KWFItemType_WATER_FLOW_TYPE_DYNAMIC_instance; + } + function KWFItemType_UNRECOGNIZED_getInstance() { + KWFItemType_initEntries(); + return KWFItemType_UNRECOGNIZED_instance; + } + function values$factory_71() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function flowItemNumber$factory() { + return getPropertyCallableRef('flowItemNumber', 1, KProperty1, function (receiver) { + return _get_flowItemNumber__n79zun(receiver); + }, null); + } + function flowItemValues$factory() { + return getPropertyCallableRef('flowItemValues', 1, KProperty1, function (receiver) { + return receiver.flowItemValues; + }, null); + } + function _get_$cachedSerializer__te6jhj_72($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KRefresh$Companion$values$delegate$lambda() { + return listOf_0([KRefresh_NEW_getInstance(), KRefresh_HISTORY_getInstance()]); + } + function KRefresh$Companion$_anonymous__uofk2p() { + return $serializer_getInstance_718(); + } + var KRefresh_NEW_instance; + var KRefresh_HISTORY_instance; + var KRefresh_UNRECOGNIZED_instance; + var Companion_instance_731; + function Companion_getInstance_731() { + KRefresh_initEntries(); + if (Companion_instance_731 === VOID) + new Companion_731(); + return Companion_instance_731; + } + var $serializer_instance_718; + function $serializer_getInstance_718() { + KRefresh_initEntries(); + if ($serializer_instance_718 === VOID) + new $serializer_718(); + return $serializer_instance_718; + } + function values_72() { + return [KRefresh_NEW_getInstance(), KRefresh_HISTORY_getInstance(), KRefresh_UNRECOGNIZED_getInstance()]; + } + function valueOf_72(value) { + switch (value) { + case 'NEW': + return KRefresh_NEW_getInstance(); + case 'HISTORY': + return KRefresh_HISTORY_getInstance(); + case 'UNRECOGNIZED': + return KRefresh_UNRECOGNIZED_getInstance(); + default: + KRefresh_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KRefresh_entriesInitialized; + function KRefresh_initEntries() { + if (KRefresh_entriesInitialized) + return Unit_instance; + KRefresh_entriesInitialized = true; + KRefresh_NEW_instance = new KRefresh('NEW', 0, 0); + KRefresh_HISTORY_instance = new KRefresh('HISTORY', 1, 1); + KRefresh_UNRECOGNIZED_instance = new KRefresh('UNRECOGNIZED', 2, -1); + Companion_getInstance_731(); + } + function _get_$cachedSerializer__te6jhj_73($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KStyleType$Companion$values$delegate$lambda() { + return listOf_0([KStyleType_NONE_getInstance(), KStyleType_LIVE_getInstance(), KStyleType_DYN_UP_getInstance()]); + } + function KStyleType$Companion$_anonymous__belnf5() { + return $serializer_getInstance_719(); + } + var KStyleType_NONE_instance; + var KStyleType_LIVE_instance; + var KStyleType_DYN_UP_instance; + var KStyleType_UNRECOGNIZED_instance; + var Companion_instance_732; + function Companion_getInstance_732() { + KStyleType_initEntries(); + if (Companion_instance_732 === VOID) + new Companion_732(); + return Companion_instance_732; + } + var $serializer_instance_719; + function $serializer_getInstance_719() { + KStyleType_initEntries(); + if ($serializer_instance_719 === VOID) + new $serializer_719(); + return $serializer_instance_719; + } + function values_73() { + return [KStyleType_NONE_getInstance(), KStyleType_LIVE_getInstance(), KStyleType_DYN_UP_getInstance(), KStyleType_UNRECOGNIZED_getInstance()]; + } + function valueOf_73(value) { + switch (value) { + case 'NONE': + return KStyleType_NONE_getInstance(); + case 'LIVE': + return KStyleType_LIVE_getInstance(); + case 'DYN_UP': + return KStyleType_DYN_UP_getInstance(); + case 'UNRECOGNIZED': + return KStyleType_UNRECOGNIZED_getInstance(); + default: + KStyleType_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KStyleType_entriesInitialized; + function KStyleType_initEntries() { + if (KStyleType_entriesInitialized) + return Unit_instance; + KStyleType_entriesInitialized = true; + KStyleType_NONE_instance = new KStyleType('NONE', 0, 0); + KStyleType_LIVE_instance = new KStyleType('LIVE', 1, 1); + KStyleType_DYN_UP_instance = new KStyleType('DYN_UP', 2, 2); + KStyleType_UNRECOGNIZED_instance = new KStyleType('UNRECOGNIZED', 3, -1); + Companion_getInstance_732(); + } + function _get_$cachedSerializer__te6jhj_74($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KUserItemType$Companion$values$delegate$lambda() { + return listOf_0([KUserItemType_NONE_getInstance(), KUserItemType_LIVE_getInstance(), KUserItemType_LIVE_CUSTOM_getInstance(), KUserItemType_NORMAL_getInstance(), KUserItemType_EXTEND_getInstance(), KUserItemType_PREMIERE_RESERVE_getInstance(), KUserItemType_PREMIERE_getInstance(), KUserItemType_LIVE_CARD_getInstance(), KUserItemType_OGV_SEASON_getInstance(), KUserItemType_UGC_SEASON_getInstance()]); + } + function KUserItemType$Companion$_anonymous__gj8g8c() { + return $serializer_getInstance_720(); + } + var KUserItemType_NONE_instance; + var KUserItemType_LIVE_instance; + var KUserItemType_LIVE_CUSTOM_instance; + var KUserItemType_NORMAL_instance; + var KUserItemType_EXTEND_instance; + var KUserItemType_PREMIERE_RESERVE_instance; + var KUserItemType_PREMIERE_instance; + var KUserItemType_LIVE_CARD_instance; + var KUserItemType_OGV_SEASON_instance; + var KUserItemType_UGC_SEASON_instance; + var KUserItemType_UNRECOGNIZED_instance; + var Companion_instance_733; + function Companion_getInstance_733() { + KUserItemType_initEntries(); + if (Companion_instance_733 === VOID) + new Companion_733(); + return Companion_instance_733; + } + var $serializer_instance_720; + function $serializer_getInstance_720() { + KUserItemType_initEntries(); + if ($serializer_instance_720 === VOID) + new $serializer_720(); + return $serializer_instance_720; + } + function values_74() { + return [KUserItemType_NONE_getInstance(), KUserItemType_LIVE_getInstance(), KUserItemType_LIVE_CUSTOM_getInstance(), KUserItemType_NORMAL_getInstance(), KUserItemType_EXTEND_getInstance(), KUserItemType_PREMIERE_RESERVE_getInstance(), KUserItemType_PREMIERE_getInstance(), KUserItemType_LIVE_CARD_getInstance(), KUserItemType_OGV_SEASON_getInstance(), KUserItemType_UGC_SEASON_getInstance(), KUserItemType_UNRECOGNIZED_getInstance()]; + } + function valueOf_74(value) { + switch (value) { + case 'NONE': + return KUserItemType_NONE_getInstance(); + case 'LIVE': + return KUserItemType_LIVE_getInstance(); + case 'LIVE_CUSTOM': + return KUserItemType_LIVE_CUSTOM_getInstance(); + case 'NORMAL': + return KUserItemType_NORMAL_getInstance(); + case 'EXTEND': + return KUserItemType_EXTEND_getInstance(); + case 'PREMIERE_RESERVE': + return KUserItemType_PREMIERE_RESERVE_getInstance(); + case 'PREMIERE': + return KUserItemType_PREMIERE_getInstance(); + case 'LIVE_CARD': + return KUserItemType_LIVE_CARD_getInstance(); + case 'OGV_SEASON': + return KUserItemType_OGV_SEASON_getInstance(); + case 'UGC_SEASON': + return KUserItemType_UGC_SEASON_getInstance(); + case 'UNRECOGNIZED': + return KUserItemType_UNRECOGNIZED_getInstance(); + default: + KUserItemType_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KUserItemType_entriesInitialized; + function KUserItemType_initEntries() { + if (KUserItemType_entriesInitialized) + return Unit_instance; + KUserItemType_entriesInitialized = true; + KUserItemType_NONE_instance = new KUserItemType('NONE', 0, 0); + KUserItemType_LIVE_instance = new KUserItemType('LIVE', 1, 1); + KUserItemType_LIVE_CUSTOM_instance = new KUserItemType('LIVE_CUSTOM', 2, 2); + KUserItemType_NORMAL_instance = new KUserItemType('NORMAL', 3, 3); + KUserItemType_EXTEND_instance = new KUserItemType('EXTEND', 4, 4); + KUserItemType_PREMIERE_RESERVE_instance = new KUserItemType('PREMIERE_RESERVE', 5, 5); + KUserItemType_PREMIERE_instance = new KUserItemType('PREMIERE', 6, 6); + KUserItemType_LIVE_CARD_instance = new KUserItemType('LIVE_CARD', 7, 7); + KUserItemType_OGV_SEASON_instance = new KUserItemType('OGV_SEASON', 8, 8); + KUserItemType_UGC_SEASON_instance = new KUserItemType('UGC_SEASON', 9, 9); + KUserItemType_UNRECOGNIZED_instance = new KUserItemType('UNRECOGNIZED', 10, -1); + Companion_getInstance_733(); + } + function _get_$cachedSerializer__te6jhj_75($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KFollowType$Companion$values$delegate$lambda() { + return listOf_0([KFollowType_FT_NOT_FOLLOW_getInstance(), KFollowType_FT_FOLLOW_getInstance()]); + } + function KFollowType$Companion$_anonymous__rm4g07() { + return $serializer_getInstance_721(); + } + var KFollowType_FT_NOT_FOLLOW_instance; + var KFollowType_FT_FOLLOW_instance; + var KFollowType_UNRECOGNIZED_instance; + var Companion_instance_734; + function Companion_getInstance_734() { + KFollowType_initEntries(); + if (Companion_instance_734 === VOID) + new Companion_734(); + return Companion_instance_734; + } + var $serializer_instance_721; + function $serializer_getInstance_721() { + KFollowType_initEntries(); + if ($serializer_instance_721 === VOID) + new $serializer_721(); + return $serializer_instance_721; + } + function values_75() { + return [KFollowType_FT_NOT_FOLLOW_getInstance(), KFollowType_FT_FOLLOW_getInstance(), KFollowType_UNRECOGNIZED_getInstance()]; + } + function valueOf_75(value) { + switch (value) { + case 'FT_NOT_FOLLOW': + return KFollowType_FT_NOT_FOLLOW_getInstance(); + case 'FT_FOLLOW': + return KFollowType_FT_FOLLOW_getInstance(); + case 'UNRECOGNIZED': + return KFollowType_UNRECOGNIZED_getInstance(); + default: + KFollowType_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KFollowType_entriesInitialized; + function KFollowType_initEntries() { + if (KFollowType_entriesInitialized) + return Unit_instance; + KFollowType_entriesInitialized = true; + KFollowType_FT_NOT_FOLLOW_instance = new KFollowType('FT_NOT_FOLLOW', 0, 0); + KFollowType_FT_FOLLOW_instance = new KFollowType('FT_FOLLOW', 1, 1); + KFollowType_UNRECOGNIZED_instance = new KFollowType('UNRECOGNIZED', 2, -1); + Companion_getInstance_734(); + } + function _get_$cachedSerializer__te6jhj_76($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KThumbType$Companion$values$delegate$lambda() { + return listOf_0([KThumbType_CANCEL_getInstance(), KThumbType_THUMB_getInstance()]); + } + function KThumbType$Companion$_anonymous__bs4bpm() { + return $serializer_getInstance_722(); + } + var KThumbType_CANCEL_instance; + var KThumbType_THUMB_instance; + var KThumbType_UNRECOGNIZED_instance; + var Companion_instance_735; + function Companion_getInstance_735() { + KThumbType_initEntries(); + if (Companion_instance_735 === VOID) + new Companion_735(); + return Companion_instance_735; + } + var $serializer_instance_722; + function $serializer_getInstance_722() { + KThumbType_initEntries(); + if ($serializer_instance_722 === VOID) + new $serializer_722(); + return $serializer_instance_722; + } + function values_76() { + return [KThumbType_CANCEL_getInstance(), KThumbType_THUMB_getInstance(), KThumbType_UNRECOGNIZED_getInstance()]; + } + function valueOf_76(value) { + switch (value) { + case 'CANCEL': + return KThumbType_CANCEL_getInstance(); + case 'THUMB': + return KThumbType_THUMB_getInstance(); + case 'UNRECOGNIZED': + return KThumbType_UNRECOGNIZED_getInstance(); + default: + KThumbType_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KThumbType_entriesInitialized; + function KThumbType_initEntries() { + if (KThumbType_entriesInitialized) + return Unit_instance; + KThumbType_entriesInitialized = true; + KThumbType_CANCEL_instance = new KThumbType('CANCEL', 0, 0); + KThumbType_THUMB_instance = new KThumbType('THUMB', 1, 1); + KThumbType_UNRECOGNIZED_instance = new KThumbType('UNRECOGNIZED', 2, -1); + Companion_getInstance_735(); + } + function _get_$cachedSerializer__te6jhj_77($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KVoteStatus$Companion$values$delegate$lambda() { + return listOf_0([KVoteStatus_NORMAL_getInstance(), KVoteStatus_ANONYMOUS_getInstance()]); + } + function KVoteStatus$Companion$_anonymous__jcyiig() { + return $serializer_getInstance_723(); + } + var KVoteStatus_NORMAL_instance; + var KVoteStatus_ANONYMOUS_instance; + var KVoteStatus_UNRECOGNIZED_instance; + var Companion_instance_736; + function Companion_getInstance_736() { + KVoteStatus_initEntries(); + if (Companion_instance_736 === VOID) + new Companion_736(); + return Companion_instance_736; + } + var $serializer_instance_723; + function $serializer_getInstance_723() { + KVoteStatus_initEntries(); + if ($serializer_instance_723 === VOID) + new $serializer_723(); + return $serializer_instance_723; + } + function values_77() { + return [KVoteStatus_NORMAL_getInstance(), KVoteStatus_ANONYMOUS_getInstance(), KVoteStatus_UNRECOGNIZED_getInstance()]; + } + function valueOf_77(value) { + switch (value) { + case 'NORMAL': + return KVoteStatus_NORMAL_getInstance(); + case 'ANONYMOUS': + return KVoteStatus_ANONYMOUS_getInstance(); + case 'UNRECOGNIZED': + return KVoteStatus_UNRECOGNIZED_getInstance(); + default: + KVoteStatus_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KVoteStatus_entriesInitialized; + function KVoteStatus_initEntries() { + if (KVoteStatus_entriesInitialized) + return Unit_instance; + KVoteStatus_entriesInitialized = true; + KVoteStatus_NORMAL_instance = new KVoteStatus('NORMAL', 0, 0); + KVoteStatus_ANONYMOUS_instance = new KVoteStatus('ANONYMOUS', 1, 1); + KVoteStatus_UNRECOGNIZED_instance = new KVoteStatus('UNRECOGNIZED', 2, -1); + Companion_getInstance_736(); + } + function _get_$cachedSerializer__te6jhj_78($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KLightFromType$Companion$values$delegate$lambda() { + return listOf_0([KLightFromType_FROM_LOGIN_getInstance(), KLightFromType_FROM_UNLOGIN_getInstance()]); + } + function KLightFromType$Companion$_anonymous__4fc4zk() { + return $serializer_getInstance_724(); + } + var KLightFromType_FROM_LOGIN_instance; + var KLightFromType_FROM_UNLOGIN_instance; + var KLightFromType_UNRECOGNIZED_instance; + var Companion_instance_737; + function Companion_getInstance_737() { + KLightFromType_initEntries(); + if (Companion_instance_737 === VOID) + new Companion_737(); + return Companion_instance_737; + } + var $serializer_instance_724; + function $serializer_getInstance_724() { + KLightFromType_initEntries(); + if ($serializer_instance_724 === VOID) + new $serializer_724(); + return $serializer_instance_724; + } + function values_78() { + return [KLightFromType_FROM_LOGIN_getInstance(), KLightFromType_FROM_UNLOGIN_getInstance(), KLightFromType_UNRECOGNIZED_getInstance()]; + } + function valueOf_78(value) { + switch (value) { + case 'FROM_LOGIN': + return KLightFromType_FROM_LOGIN_getInstance(); + case 'FROM_UNLOGIN': + return KLightFromType_FROM_UNLOGIN_getInstance(); + case 'UNRECOGNIZED': + return KLightFromType_UNRECOGNIZED_getInstance(); + default: + KLightFromType_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KLightFromType_entriesInitialized; + function KLightFromType_initEntries() { + if (KLightFromType_entriesInitialized) + return Unit_instance; + KLightFromType_entriesInitialized = true; + KLightFromType_FROM_LOGIN_instance = new KLightFromType('FROM_LOGIN', 0, 0); + KLightFromType_FROM_UNLOGIN_instance = new KLightFromType('FROM_UNLOGIN', 1, 1); + KLightFromType_UNRECOGNIZED_instance = new KLightFromType('UNRECOGNIZED', 2, -1); + Companion_getInstance_737(); + } + function _get_$cachedSerializer__te6jhj_79($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KRepostType$Companion$values$delegate$lambda() { + return listOf_0([KRepostType_REPOST_HOT_getInstance(), KRepostType_REPOST_GENERAL_getInstance()]); + } + function KRepostType$Companion$_anonymous__wk8o9j() { + return $serializer_getInstance_725(); + } + var KRepostType_REPOST_HOT_instance; + var KRepostType_REPOST_GENERAL_instance; + var KRepostType_UNRECOGNIZED_instance; + var Companion_instance_738; + function Companion_getInstance_738() { + KRepostType_initEntries(); + if (Companion_instance_738 === VOID) + new Companion_738(); + return Companion_instance_738; + } + var $serializer_instance_725; + function $serializer_getInstance_725() { + KRepostType_initEntries(); + if ($serializer_instance_725 === VOID) + new $serializer_725(); + return $serializer_instance_725; + } + function values_79() { + return [KRepostType_REPOST_HOT_getInstance(), KRepostType_REPOST_GENERAL_getInstance(), KRepostType_UNRECOGNIZED_getInstance()]; + } + function valueOf_79(value) { + switch (value) { + case 'REPOST_HOT': + return KRepostType_REPOST_HOT_getInstance(); + case 'REPOST_GENERAL': + return KRepostType_REPOST_GENERAL_getInstance(); + case 'UNRECOGNIZED': + return KRepostType_UNRECOGNIZED_getInstance(); + default: + KRepostType_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KRepostType_entriesInitialized; + function KRepostType_initEntries() { + if (KRepostType_entriesInitialized) + return Unit_instance; + KRepostType_entriesInitialized = true; + KRepostType_REPOST_HOT_instance = new KRepostType('REPOST_HOT', 0, 0); + KRepostType_REPOST_GENERAL_instance = new KRepostType('REPOST_GENERAL', 1, 1); + KRepostType_UNRECOGNIZED_instance = new KRepostType('UNRECOGNIZED', 2, -1); + Companion_getInstance_738(); + } + function _get_$cachedSerializer__te6jhj_80($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KRcmdReasonStyle$Companion$values$delegate$lambda() { + return listOf_0([KRcmdReasonStyle_NONE_getInstance(), KRcmdReasonStyle_CAMPUS_NEARBY_getInstance(), KRcmdReasonStyle_CAMPUS_UP_getInstance(), KRcmdReasonStyle_CAMPUS_NEAR_UP_MIX_getInstance()]); + } + function KRcmdReasonStyle$Companion$_anonymous__sn2be3() { + return $serializer_getInstance_726(); + } + var KRcmdReasonStyle_NONE_instance; + var KRcmdReasonStyle_CAMPUS_NEARBY_instance; + var KRcmdReasonStyle_CAMPUS_UP_instance; + var KRcmdReasonStyle_CAMPUS_NEAR_UP_MIX_instance; + var KRcmdReasonStyle_UNRECOGNIZED_instance; + var Companion_instance_739; + function Companion_getInstance_739() { + KRcmdReasonStyle_initEntries(); + if (Companion_instance_739 === VOID) + new Companion_739(); + return Companion_instance_739; + } + var $serializer_instance_726; + function $serializer_getInstance_726() { + KRcmdReasonStyle_initEntries(); + if ($serializer_instance_726 === VOID) + new $serializer_726(); + return $serializer_instance_726; + } + function values_80() { + return [KRcmdReasonStyle_NONE_getInstance(), KRcmdReasonStyle_CAMPUS_NEARBY_getInstance(), KRcmdReasonStyle_CAMPUS_UP_getInstance(), KRcmdReasonStyle_CAMPUS_NEAR_UP_MIX_getInstance(), KRcmdReasonStyle_UNRECOGNIZED_getInstance()]; + } + function valueOf_80(value) { + switch (value) { + case 'NONE': + return KRcmdReasonStyle_NONE_getInstance(); + case 'CAMPUS_NEARBY': + return KRcmdReasonStyle_CAMPUS_NEARBY_getInstance(); + case 'CAMPUS_UP': + return KRcmdReasonStyle_CAMPUS_UP_getInstance(); + case 'CAMPUS_NEAR_UP_MIX': + return KRcmdReasonStyle_CAMPUS_NEAR_UP_MIX_getInstance(); + case 'UNRECOGNIZED': + return KRcmdReasonStyle_UNRECOGNIZED_getInstance(); + default: + KRcmdReasonStyle_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KRcmdReasonStyle_entriesInitialized; + function KRcmdReasonStyle_initEntries() { + if (KRcmdReasonStyle_entriesInitialized) + return Unit_instance; + KRcmdReasonStyle_entriesInitialized = true; + KRcmdReasonStyle_NONE_instance = new KRcmdReasonStyle('NONE', 0, 0); + KRcmdReasonStyle_CAMPUS_NEARBY_instance = new KRcmdReasonStyle('CAMPUS_NEARBY', 1, 1); + KRcmdReasonStyle_CAMPUS_UP_instance = new KRcmdReasonStyle('CAMPUS_UP', 2, 2); + KRcmdReasonStyle_CAMPUS_NEAR_UP_MIX_instance = new KRcmdReasonStyle('CAMPUS_NEAR_UP_MIX', 3, 3); + KRcmdReasonStyle_UNRECOGNIZED_instance = new KRcmdReasonStyle('UNRECOGNIZED', 4, -1); + Companion_getInstance_739(); + } + function _get_$cachedSerializer__te6jhj_81($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KCampusTabType$Companion$values$delegate$lambda() { + return listOf_0([KCampusTabType_CAMPUS_NONE_getInstance(), KCampusTabType_CAMPUS_SCHOOL_getInstance(), KCampusTabType_CAMPUS_DYNAMIC_getInstance(), KCampusTabType_CAMPUS_ACCOUNT_getInstance(), KCampusTabType_CAMPUS_BILLBOARD_getInstance(), KCampusTabType_CAMPUS_TOPIC_getInstance(), KCampusTabType_CAMPUES_OTHER_getInstance()]); + } + function KCampusTabType$Companion$_anonymous__oeukk6() { + return $serializer_getInstance_727(); + } + var KCampusTabType_CAMPUS_NONE_instance; + var KCampusTabType_CAMPUS_SCHOOL_instance; + var KCampusTabType_CAMPUS_DYNAMIC_instance; + var KCampusTabType_CAMPUS_ACCOUNT_instance; + var KCampusTabType_CAMPUS_BILLBOARD_instance; + var KCampusTabType_CAMPUS_TOPIC_instance; + var KCampusTabType_CAMPUES_OTHER_instance; + var KCampusTabType_UNRECOGNIZED_instance; + var Companion_instance_740; + function Companion_getInstance_740() { + KCampusTabType_initEntries(); + if (Companion_instance_740 === VOID) + new Companion_740(); + return Companion_instance_740; + } + var $serializer_instance_727; + function $serializer_getInstance_727() { + KCampusTabType_initEntries(); + if ($serializer_instance_727 === VOID) + new $serializer_727(); + return $serializer_instance_727; + } + function values_81() { + return [KCampusTabType_CAMPUS_NONE_getInstance(), KCampusTabType_CAMPUS_SCHOOL_getInstance(), KCampusTabType_CAMPUS_DYNAMIC_getInstance(), KCampusTabType_CAMPUS_ACCOUNT_getInstance(), KCampusTabType_CAMPUS_BILLBOARD_getInstance(), KCampusTabType_CAMPUS_TOPIC_getInstance(), KCampusTabType_CAMPUES_OTHER_getInstance(), KCampusTabType_UNRECOGNIZED_getInstance()]; + } + function valueOf_81(value) { + switch (value) { + case 'CAMPUS_NONE': + return KCampusTabType_CAMPUS_NONE_getInstance(); + case 'CAMPUS_SCHOOL': + return KCampusTabType_CAMPUS_SCHOOL_getInstance(); + case 'CAMPUS_DYNAMIC': + return KCampusTabType_CAMPUS_DYNAMIC_getInstance(); + case 'CAMPUS_ACCOUNT': + return KCampusTabType_CAMPUS_ACCOUNT_getInstance(); + case 'CAMPUS_BILLBOARD': + return KCampusTabType_CAMPUS_BILLBOARD_getInstance(); + case 'CAMPUS_TOPIC': + return KCampusTabType_CAMPUS_TOPIC_getInstance(); + case 'CAMPUES_OTHER': + return KCampusTabType_CAMPUES_OTHER_getInstance(); + case 'UNRECOGNIZED': + return KCampusTabType_UNRECOGNIZED_getInstance(); + default: + KCampusTabType_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KCampusTabType_entriesInitialized; + function KCampusTabType_initEntries() { + if (KCampusTabType_entriesInitialized) + return Unit_instance; + KCampusTabType_entriesInitialized = true; + KCampusTabType_CAMPUS_NONE_instance = new KCampusTabType('CAMPUS_NONE', 0, 0); + KCampusTabType_CAMPUS_SCHOOL_instance = new KCampusTabType('CAMPUS_SCHOOL', 1, 1); + KCampusTabType_CAMPUS_DYNAMIC_instance = new KCampusTabType('CAMPUS_DYNAMIC', 2, 2); + KCampusTabType_CAMPUS_ACCOUNT_instance = new KCampusTabType('CAMPUS_ACCOUNT', 3, 3); + KCampusTabType_CAMPUS_BILLBOARD_instance = new KCampusTabType('CAMPUS_BILLBOARD', 4, 4); + KCampusTabType_CAMPUS_TOPIC_instance = new KCampusTabType('CAMPUS_TOPIC', 5, 5); + KCampusTabType_CAMPUES_OTHER_instance = new KCampusTabType('CAMPUES_OTHER', 6, 6); + KCampusTabType_UNRECOGNIZED_instance = new KCampusTabType('UNRECOGNIZED', 7, -1); + Companion_getInstance_740(); + } + function _get_$cachedSerializer__te6jhj_82($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KShowType$Companion$values$delegate$lambda() { + return listOf_0([KShowType_NONE_getInstance(), KShowType_BACKUP_getInstance()]); + } + function KShowType$Companion$_anonymous__qa3x7x() { + return $serializer_getInstance_728(); + } + var KShowType_NONE_instance; + var KShowType_BACKUP_instance; + var KShowType_UNRECOGNIZED_instance; + var Companion_instance_741; + function Companion_getInstance_741() { + KShowType_initEntries(); + if (Companion_instance_741 === VOID) + new Companion_741(); + return Companion_instance_741; + } + var $serializer_instance_728; + function $serializer_getInstance_728() { + KShowType_initEntries(); + if ($serializer_instance_728 === VOID) + new $serializer_728(); + return $serializer_instance_728; + } + function values_82() { + return [KShowType_NONE_getInstance(), KShowType_BACKUP_getInstance(), KShowType_UNRECOGNIZED_getInstance()]; + } + function valueOf_82(value) { + switch (value) { + case 'NONE': + return KShowType_NONE_getInstance(); + case 'BACKUP': + return KShowType_BACKUP_getInstance(); + case 'UNRECOGNIZED': + return KShowType_UNRECOGNIZED_getInstance(); + default: + KShowType_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KShowType_entriesInitialized; + function KShowType_initEntries() { + if (KShowType_entriesInitialized) + return Unit_instance; + KShowType_entriesInitialized = true; + KShowType_NONE_instance = new KShowType('NONE', 0, 0); + KShowType_BACKUP_instance = new KShowType('BACKUP', 1, 1); + KShowType_UNRECOGNIZED_instance = new KShowType('UNRECOGNIZED', 2, -1); + Companion_getInstance_741(); + } + function _get_$cachedSerializer__te6jhj_83($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KNetworkType$Companion$values$delegate$lambda() { + return listOf_0([KNetworkType_NT_UNKNOWN_getInstance(), KNetworkType_WIFI_getInstance(), KNetworkType_CELLULAR_getInstance(), KNetworkType_OFFLINE_getInstance(), KNetworkType_OTHERNET_getInstance(), KNetworkType_ETHERNET_getInstance()]); + } + function KNetworkType$Companion$_anonymous__mom5e6() { + return $serializer_getInstance_729(); + } + var KNetworkType_NT_UNKNOWN_instance; + var KNetworkType_WIFI_instance; + var KNetworkType_CELLULAR_instance; + var KNetworkType_OFFLINE_instance; + var KNetworkType_OTHERNET_instance; + var KNetworkType_ETHERNET_instance; + var KNetworkType_UNRECOGNIZED_instance; + var Companion_instance_742; + function Companion_getInstance_742() { + KNetworkType_initEntries(); + if (Companion_instance_742 === VOID) + new Companion_742(); + return Companion_instance_742; + } + var $serializer_instance_729; + function $serializer_getInstance_729() { + KNetworkType_initEntries(); + if ($serializer_instance_729 === VOID) + new $serializer_729(); + return $serializer_instance_729; + } + function values_83() { + return [KNetworkType_NT_UNKNOWN_getInstance(), KNetworkType_WIFI_getInstance(), KNetworkType_CELLULAR_getInstance(), KNetworkType_OFFLINE_getInstance(), KNetworkType_OTHERNET_getInstance(), KNetworkType_ETHERNET_getInstance(), KNetworkType_UNRECOGNIZED_getInstance()]; + } + function valueOf_83(value) { + switch (value) { + case 'NT_UNKNOWN': + return KNetworkType_NT_UNKNOWN_getInstance(); + case 'WIFI': + return KNetworkType_WIFI_getInstance(); + case 'CELLULAR': + return KNetworkType_CELLULAR_getInstance(); + case 'OFFLINE': + return KNetworkType_OFFLINE_getInstance(); + case 'OTHERNET': + return KNetworkType_OTHERNET_getInstance(); + case 'ETHERNET': + return KNetworkType_ETHERNET_getInstance(); + case 'UNRECOGNIZED': + return KNetworkType_UNRECOGNIZED_getInstance(); + default: + KNetworkType_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KNetworkType_entriesInitialized; + function KNetworkType_initEntries() { + if (KNetworkType_entriesInitialized) + return Unit_instance; + KNetworkType_entriesInitialized = true; + KNetworkType_NT_UNKNOWN_instance = new KNetworkType('NT_UNKNOWN', 0, 0); + KNetworkType_WIFI_instance = new KNetworkType('WIFI', 1, 1); + KNetworkType_CELLULAR_instance = new KNetworkType('CELLULAR', 2, 2); + KNetworkType_OFFLINE_instance = new KNetworkType('OFFLINE', 3, 3); + KNetworkType_OTHERNET_instance = new KNetworkType('OTHERNET', 4, 4); + KNetworkType_ETHERNET_instance = new KNetworkType('ETHERNET', 5, 5); + KNetworkType_UNRECOGNIZED_instance = new KNetworkType('UNRECOGNIZED', 6, -1); + Companion_getInstance_742(); + } + function _get_$cachedSerializer__te6jhj_84($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KTFType$Companion$values$delegate$lambda() { + return listOf_0([KTFType_TF_UNKNOWN_getInstance(), KTFType_U_CARD_getInstance(), KTFType_U_PKG_getInstance(), KTFType_C_CARD_getInstance(), KTFType_C_PKG_getInstance(), KTFType_T_CARD_getInstance(), KTFType_T_PKG_getInstance()]); + } + function KTFType$Companion$_anonymous__gs7c2w() { + return $serializer_getInstance_730(); + } + var KTFType_TF_UNKNOWN_instance; + var KTFType_U_CARD_instance; + var KTFType_U_PKG_instance; + var KTFType_C_CARD_instance; + var KTFType_C_PKG_instance; + var KTFType_T_CARD_instance; + var KTFType_T_PKG_instance; + var KTFType_UNRECOGNIZED_instance; + var Companion_instance_743; + function Companion_getInstance_743() { + KTFType_initEntries(); + if (Companion_instance_743 === VOID) + new Companion_743(); + return Companion_instance_743; + } + var $serializer_instance_730; + function $serializer_getInstance_730() { + KTFType_initEntries(); + if ($serializer_instance_730 === VOID) + new $serializer_730(); + return $serializer_instance_730; + } + function values_84() { + return [KTFType_TF_UNKNOWN_getInstance(), KTFType_U_CARD_getInstance(), KTFType_U_PKG_getInstance(), KTFType_C_CARD_getInstance(), KTFType_C_PKG_getInstance(), KTFType_T_CARD_getInstance(), KTFType_T_PKG_getInstance(), KTFType_UNRECOGNIZED_getInstance()]; + } + function valueOf_84(value) { + switch (value) { + case 'TF_UNKNOWN': + return KTFType_TF_UNKNOWN_getInstance(); + case 'U_CARD': + return KTFType_U_CARD_getInstance(); + case 'U_PKG': + return KTFType_U_PKG_getInstance(); + case 'C_CARD': + return KTFType_C_CARD_getInstance(); + case 'C_PKG': + return KTFType_C_PKG_getInstance(); + case 'T_CARD': + return KTFType_T_CARD_getInstance(); + case 'T_PKG': + return KTFType_T_PKG_getInstance(); + case 'UNRECOGNIZED': + return KTFType_UNRECOGNIZED_getInstance(); + default: + KTFType_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KTFType_entriesInitialized; + function KTFType_initEntries() { + if (KTFType_entriesInitialized) + return Unit_instance; + KTFType_entriesInitialized = true; + KTFType_TF_UNKNOWN_instance = new KTFType('TF_UNKNOWN', 0, 0); + KTFType_U_CARD_instance = new KTFType('U_CARD', 1, 1); + KTFType_U_PKG_instance = new KTFType('U_PKG', 2, 2); + KTFType_C_CARD_instance = new KTFType('C_CARD', 3, 3); + KTFType_C_PKG_instance = new KTFType('C_PKG', 4, 4); + KTFType_T_CARD_instance = new KTFType('T_CARD', 5, 5); + KTFType_T_PKG_instance = new KTFType('T_PKG', 6, 6); + KTFType_UNRECOGNIZED_instance = new KTFType('UNRECOGNIZED', 7, -1); + Companion_getInstance_743(); + } + function _get_$cachedSerializer__te6jhj_85($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KHomePageTabSttingStatus$Companion$values$delegate$lambda() { + return listOf_0([KHomePageTabSttingStatus_SETTING_INVALID_getInstance(), KHomePageTabSttingStatus_SETTING_OPEN_getInstance(), KHomePageTabSttingStatus_SETTING_CLOSE_getInstance()]); + } + function KHomePageTabSttingStatus$Companion$_anonymous__10ug5u() { + return $serializer_getInstance_731(); + } + var KHomePageTabSttingStatus_SETTING_INVALID_instance; + var KHomePageTabSttingStatus_SETTING_OPEN_instance; + var KHomePageTabSttingStatus_SETTING_CLOSE_instance; + var KHomePageTabSttingStatus_UNRECOGNIZED_instance; + var Companion_instance_744; + function Companion_getInstance_744() { + KHomePageTabSttingStatus_initEntries(); + if (Companion_instance_744 === VOID) + new Companion_744(); + return Companion_instance_744; + } + var $serializer_instance_731; + function $serializer_getInstance_731() { + KHomePageTabSttingStatus_initEntries(); + if ($serializer_instance_731 === VOID) + new $serializer_731(); + return $serializer_instance_731; + } + function values_85() { + return [KHomePageTabSttingStatus_SETTING_INVALID_getInstance(), KHomePageTabSttingStatus_SETTING_OPEN_getInstance(), KHomePageTabSttingStatus_SETTING_CLOSE_getInstance(), KHomePageTabSttingStatus_UNRECOGNIZED_getInstance()]; + } + function valueOf_85(value) { + switch (value) { + case 'SETTING_INVALID': + return KHomePageTabSttingStatus_SETTING_INVALID_getInstance(); + case 'SETTING_OPEN': + return KHomePageTabSttingStatus_SETTING_OPEN_getInstance(); + case 'SETTING_CLOSE': + return KHomePageTabSttingStatus_SETTING_CLOSE_getInstance(); + case 'UNRECOGNIZED': + return KHomePageTabSttingStatus_UNRECOGNIZED_getInstance(); + default: + KHomePageTabSttingStatus_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KHomePageTabSttingStatus_entriesInitialized; + function KHomePageTabSttingStatus_initEntries() { + if (KHomePageTabSttingStatus_entriesInitialized) + return Unit_instance; + KHomePageTabSttingStatus_entriesInitialized = true; + KHomePageTabSttingStatus_SETTING_INVALID_instance = new KHomePageTabSttingStatus('SETTING_INVALID', 0, 0); + KHomePageTabSttingStatus_SETTING_OPEN_instance = new KHomePageTabSttingStatus('SETTING_OPEN', 1, 1); + KHomePageTabSttingStatus_SETTING_CLOSE_instance = new KHomePageTabSttingStatus('SETTING_CLOSE', 2, 2); + KHomePageTabSttingStatus_UNRECOGNIZED_instance = new KHomePageTabSttingStatus('UNRECOGNIZED', 3, -1); + Companion_getInstance_744(); + } + function _get_$cachedSerializer__te6jhj_86($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KCampusHomePageType$Companion$values$delegate$lambda() { + return listOf_0([KCampusHomePageType_PAGE_MAJOR_getInstance(), KCampusHomePageType_PAGE_SUBORDINATE_getInstance(), KCampusHomePageType_PAGE_MAJOR_DETAIL_getInstance()]); + } + function KCampusHomePageType$Companion$_anonymous__nfxtur() { + return $serializer_getInstance_732(); + } + var KCampusHomePageType_PAGE_MAJOR_instance; + var KCampusHomePageType_PAGE_SUBORDINATE_instance; + var KCampusHomePageType_PAGE_MAJOR_DETAIL_instance; + var KCampusHomePageType_UNRECOGNIZED_instance; + var Companion_instance_745; + function Companion_getInstance_745() { + KCampusHomePageType_initEntries(); + if (Companion_instance_745 === VOID) + new Companion_745(); + return Companion_instance_745; + } + var $serializer_instance_732; + function $serializer_getInstance_732() { + KCampusHomePageType_initEntries(); + if ($serializer_instance_732 === VOID) + new $serializer_732(); + return $serializer_instance_732; + } + function values_86() { + return [KCampusHomePageType_PAGE_MAJOR_getInstance(), KCampusHomePageType_PAGE_SUBORDINATE_getInstance(), KCampusHomePageType_PAGE_MAJOR_DETAIL_getInstance(), KCampusHomePageType_UNRECOGNIZED_getInstance()]; + } + function valueOf_86(value) { + switch (value) { + case 'PAGE_MAJOR': + return KCampusHomePageType_PAGE_MAJOR_getInstance(); + case 'PAGE_SUBORDINATE': + return KCampusHomePageType_PAGE_SUBORDINATE_getInstance(); + case 'PAGE_MAJOR_DETAIL': + return KCampusHomePageType_PAGE_MAJOR_DETAIL_getInstance(); + case 'UNRECOGNIZED': + return KCampusHomePageType_UNRECOGNIZED_getInstance(); + default: + KCampusHomePageType_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KCampusHomePageType_entriesInitialized; + function KCampusHomePageType_initEntries() { + if (KCampusHomePageType_entriesInitialized) + return Unit_instance; + KCampusHomePageType_entriesInitialized = true; + KCampusHomePageType_PAGE_MAJOR_instance = new KCampusHomePageType('PAGE_MAJOR', 0, 0); + KCampusHomePageType_PAGE_SUBORDINATE_instance = new KCampusHomePageType('PAGE_SUBORDINATE', 1, 1); + KCampusHomePageType_PAGE_MAJOR_DETAIL_instance = new KCampusHomePageType('PAGE_MAJOR_DETAIL', 2, 2); + KCampusHomePageType_UNRECOGNIZED_instance = new KCampusHomePageType('UNRECOGNIZED', 3, -1); + Companion_getInstance_745(); + } + function _get_$cachedSerializer__te6jhj_87($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KCampusReqFromType$Companion$values$delegate$lambda() { + return listOf_0([KCampusReqFromType_DYNAMIC_getInstance(), KCampusReqFromType_HOME_getInstance()]); + } + function KCampusReqFromType$Companion$_anonymous__dm3xav() { + return $serializer_getInstance_733(); + } + var KCampusReqFromType_DYNAMIC_instance; + var KCampusReqFromType_HOME_instance; + var KCampusReqFromType_UNRECOGNIZED_instance; + var Companion_instance_746; + function Companion_getInstance_746() { + KCampusReqFromType_initEntries(); + if (Companion_instance_746 === VOID) + new Companion_746(); + return Companion_instance_746; + } + var $serializer_instance_733; + function $serializer_getInstance_733() { + KCampusReqFromType_initEntries(); + if ($serializer_instance_733 === VOID) + new $serializer_733(); + return $serializer_instance_733; + } + function values_87() { + return [KCampusReqFromType_DYNAMIC_getInstance(), KCampusReqFromType_HOME_getInstance(), KCampusReqFromType_UNRECOGNIZED_getInstance()]; + } + function valueOf_87(value) { + switch (value) { + case 'DYNAMIC': + return KCampusReqFromType_DYNAMIC_getInstance(); + case 'HOME': + return KCampusReqFromType_HOME_getInstance(); + case 'UNRECOGNIZED': + return KCampusReqFromType_UNRECOGNIZED_getInstance(); + default: + KCampusReqFromType_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KCampusReqFromType_entriesInitialized; + function KCampusReqFromType_initEntries() { + if (KCampusReqFromType_entriesInitialized) + return Unit_instance; + KCampusReqFromType_entriesInitialized = true; + KCampusReqFromType_DYNAMIC_instance = new KCampusReqFromType('DYNAMIC', 0, 0); + KCampusReqFromType_HOME_instance = new KCampusReqFromType('HOME', 1, 1); + KCampusReqFromType_UNRECOGNIZED_instance = new KCampusReqFromType('UNRECOGNIZED', 2, -1); + Companion_getInstance_746(); + } + function _get_$cachedSerializer__te6jhj_88($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KCampusRcmdReqFrom$Companion$values$delegate$lambda() { + return listOf_0([KCampusRcmdReqFrom_CAMPUS_RCMD_FROM_UNKNOWN_getInstance(), KCampusRcmdReqFrom_CAMPUS_RCMD_FROM_HOME_UN_OPEN_getInstance(), KCampusRcmdReqFrom_CAMPUS_RCMD_FROM_VISIT_OTHER_getInstance(), KCampusRcmdReqFrom_CAMPUS_RCMD_FROM_HOME_MOMENT_getInstance(), KCampusRcmdReqFrom_CAMPUS_RCMD_FROM_DYN_MOMENT_getInstance(), KCampusRcmdReqFrom_CAMPUS_RCMD_FROM_PAGE_SUBORDINATE_MOMENT_getInstance()]); + } + function KCampusRcmdReqFrom$Companion$_anonymous__v8syzr() { + return $serializer_getInstance_734(); + } + var KCampusRcmdReqFrom_CAMPUS_RCMD_FROM_UNKNOWN_instance; + var KCampusRcmdReqFrom_CAMPUS_RCMD_FROM_HOME_UN_OPEN_instance; + var KCampusRcmdReqFrom_CAMPUS_RCMD_FROM_VISIT_OTHER_instance; + var KCampusRcmdReqFrom_CAMPUS_RCMD_FROM_HOME_MOMENT_instance; + var KCampusRcmdReqFrom_CAMPUS_RCMD_FROM_DYN_MOMENT_instance; + var KCampusRcmdReqFrom_CAMPUS_RCMD_FROM_PAGE_SUBORDINATE_MOMENT_instance; + var KCampusRcmdReqFrom_UNRECOGNIZED_instance; + var Companion_instance_747; + function Companion_getInstance_747() { + KCampusRcmdReqFrom_initEntries(); + if (Companion_instance_747 === VOID) + new Companion_747(); + return Companion_instance_747; + } + var $serializer_instance_734; + function $serializer_getInstance_734() { + KCampusRcmdReqFrom_initEntries(); + if ($serializer_instance_734 === VOID) + new $serializer_734(); + return $serializer_instance_734; + } + function values_88() { + return [KCampusRcmdReqFrom_CAMPUS_RCMD_FROM_UNKNOWN_getInstance(), KCampusRcmdReqFrom_CAMPUS_RCMD_FROM_HOME_UN_OPEN_getInstance(), KCampusRcmdReqFrom_CAMPUS_RCMD_FROM_VISIT_OTHER_getInstance(), KCampusRcmdReqFrom_CAMPUS_RCMD_FROM_HOME_MOMENT_getInstance(), KCampusRcmdReqFrom_CAMPUS_RCMD_FROM_DYN_MOMENT_getInstance(), KCampusRcmdReqFrom_CAMPUS_RCMD_FROM_PAGE_SUBORDINATE_MOMENT_getInstance(), KCampusRcmdReqFrom_UNRECOGNIZED_getInstance()]; + } + function valueOf_88(value) { + switch (value) { + case 'CAMPUS_RCMD_FROM_UNKNOWN': + return KCampusRcmdReqFrom_CAMPUS_RCMD_FROM_UNKNOWN_getInstance(); + case 'CAMPUS_RCMD_FROM_HOME_UN_OPEN': + return KCampusRcmdReqFrom_CAMPUS_RCMD_FROM_HOME_UN_OPEN_getInstance(); + case 'CAMPUS_RCMD_FROM_VISIT_OTHER': + return KCampusRcmdReqFrom_CAMPUS_RCMD_FROM_VISIT_OTHER_getInstance(); + case 'CAMPUS_RCMD_FROM_HOME_MOMENT': + return KCampusRcmdReqFrom_CAMPUS_RCMD_FROM_HOME_MOMENT_getInstance(); + case 'CAMPUS_RCMD_FROM_DYN_MOMENT': + return KCampusRcmdReqFrom_CAMPUS_RCMD_FROM_DYN_MOMENT_getInstance(); + case 'CAMPUS_RCMD_FROM_PAGE_SUBORDINATE_MOMENT': + return KCampusRcmdReqFrom_CAMPUS_RCMD_FROM_PAGE_SUBORDINATE_MOMENT_getInstance(); + case 'UNRECOGNIZED': + return KCampusRcmdReqFrom_UNRECOGNIZED_getInstance(); + default: + KCampusRcmdReqFrom_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KCampusRcmdReqFrom_entriesInitialized; + function KCampusRcmdReqFrom_initEntries() { + if (KCampusRcmdReqFrom_entriesInitialized) + return Unit_instance; + KCampusRcmdReqFrom_entriesInitialized = true; + KCampusRcmdReqFrom_CAMPUS_RCMD_FROM_UNKNOWN_instance = new KCampusRcmdReqFrom('CAMPUS_RCMD_FROM_UNKNOWN', 0, 0); + KCampusRcmdReqFrom_CAMPUS_RCMD_FROM_HOME_UN_OPEN_instance = new KCampusRcmdReqFrom('CAMPUS_RCMD_FROM_HOME_UN_OPEN', 1, 1); + KCampusRcmdReqFrom_CAMPUS_RCMD_FROM_VISIT_OTHER_instance = new KCampusRcmdReqFrom('CAMPUS_RCMD_FROM_VISIT_OTHER', 2, 2); + KCampusRcmdReqFrom_CAMPUS_RCMD_FROM_HOME_MOMENT_instance = new KCampusRcmdReqFrom('CAMPUS_RCMD_FROM_HOME_MOMENT', 3, 3); + KCampusRcmdReqFrom_CAMPUS_RCMD_FROM_DYN_MOMENT_instance = new KCampusRcmdReqFrom('CAMPUS_RCMD_FROM_DYN_MOMENT', 4, 4); + KCampusRcmdReqFrom_CAMPUS_RCMD_FROM_PAGE_SUBORDINATE_MOMENT_instance = new KCampusRcmdReqFrom('CAMPUS_RCMD_FROM_PAGE_SUBORDINATE_MOMENT', 5, 5); + KCampusRcmdReqFrom_UNRECOGNIZED_instance = new KCampusRcmdReqFrom('UNRECOGNIZED', 6, -1); + Companion_getInstance_747(); + } + function _get_$cachedSerializer__te6jhj_89($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KCampusEntryType$Companion$values$delegate$lambda() { + return listOf_0([KCampusEntryType_NONE_getInstance(), KCampusEntryType_ENTRY_DYNAMIC_getInstance(), KCampusEntryType_ENTRY_HOME_getInstance()]); + } + function KCampusEntryType$Companion$_anonymous__oj1bcj() { + return $serializer_getInstance_735(); + } + var KCampusEntryType_NONE_instance; + var KCampusEntryType_ENTRY_DYNAMIC_instance; + var KCampusEntryType_ENTRY_HOME_instance; + var KCampusEntryType_UNRECOGNIZED_instance; + var Companion_instance_748; + function Companion_getInstance_748() { + KCampusEntryType_initEntries(); + if (Companion_instance_748 === VOID) + new Companion_748(); + return Companion_instance_748; + } + var $serializer_instance_735; + function $serializer_getInstance_735() { + KCampusEntryType_initEntries(); + if ($serializer_instance_735 === VOID) + new $serializer_735(); + return $serializer_instance_735; + } + function values_89() { + return [KCampusEntryType_NONE_getInstance(), KCampusEntryType_ENTRY_DYNAMIC_getInstance(), KCampusEntryType_ENTRY_HOME_getInstance(), KCampusEntryType_UNRECOGNIZED_getInstance()]; + } + function valueOf_89(value) { + switch (value) { + case 'NONE': + return KCampusEntryType_NONE_getInstance(); + case 'ENTRY_DYNAMIC': + return KCampusEntryType_ENTRY_DYNAMIC_getInstance(); + case 'ENTRY_HOME': + return KCampusEntryType_ENTRY_HOME_getInstance(); + case 'UNRECOGNIZED': + return KCampusEntryType_UNRECOGNIZED_getInstance(); + default: + KCampusEntryType_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KCampusEntryType_entriesInitialized; + function KCampusEntryType_initEntries() { + if (KCampusEntryType_entriesInitialized) + return Unit_instance; + KCampusEntryType_entriesInitialized = true; + KCampusEntryType_NONE_instance = new KCampusEntryType('NONE', 0, 0); + KCampusEntryType_ENTRY_DYNAMIC_instance = new KCampusEntryType('ENTRY_DYNAMIC', 1, 1); + KCampusEntryType_ENTRY_HOME_instance = new KCampusEntryType('ENTRY_HOME', 2, 2); + KCampusEntryType_UNRECOGNIZED_instance = new KCampusEntryType('UNRECOGNIZED', 3, -1); + Companion_getInstance_748(); + } + function _get_$cachedSerializer__te6jhj_90($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KCampusOnlineStatus$Companion$values$delegate$lambda() { + return listOf_0([KCampusOnlineStatus_CAMPUS_ONLINE_OFFLINE_getInstance(), KCampusOnlineStatus_CAMPUS_ONLINE_ONLINE_getInstance()]); + } + function KCampusOnlineStatus$Companion$_anonymous__4mtyzk() { + return $serializer_getInstance_736(); + } + var KCampusOnlineStatus_CAMPUS_ONLINE_OFFLINE_instance; + var KCampusOnlineStatus_CAMPUS_ONLINE_ONLINE_instance; + var KCampusOnlineStatus_UNRECOGNIZED_instance; + var Companion_instance_749; + function Companion_getInstance_749() { + KCampusOnlineStatus_initEntries(); + if (Companion_instance_749 === VOID) + new Companion_749(); + return Companion_instance_749; + } + var $serializer_instance_736; + function $serializer_getInstance_736() { + KCampusOnlineStatus_initEntries(); + if ($serializer_instance_736 === VOID) + new $serializer_736(); + return $serializer_instance_736; + } + function values_90() { + return [KCampusOnlineStatus_CAMPUS_ONLINE_OFFLINE_getInstance(), KCampusOnlineStatus_CAMPUS_ONLINE_ONLINE_getInstance(), KCampusOnlineStatus_UNRECOGNIZED_getInstance()]; + } + function valueOf_90(value) { + switch (value) { + case 'CAMPUS_ONLINE_OFFLINE': + return KCampusOnlineStatus_CAMPUS_ONLINE_OFFLINE_getInstance(); + case 'CAMPUS_ONLINE_ONLINE': + return KCampusOnlineStatus_CAMPUS_ONLINE_ONLINE_getInstance(); + case 'UNRECOGNIZED': + return KCampusOnlineStatus_UNRECOGNIZED_getInstance(); + default: + KCampusOnlineStatus_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KCampusOnlineStatus_entriesInitialized; + function KCampusOnlineStatus_initEntries() { + if (KCampusOnlineStatus_entriesInitialized) + return Unit_instance; + KCampusOnlineStatus_entriesInitialized = true; + KCampusOnlineStatus_CAMPUS_ONLINE_OFFLINE_instance = new KCampusOnlineStatus('CAMPUS_ONLINE_OFFLINE', 0, 0); + KCampusOnlineStatus_CAMPUS_ONLINE_ONLINE_instance = new KCampusOnlineStatus('CAMPUS_ONLINE_ONLINE', 1, 1); + KCampusOnlineStatus_UNRECOGNIZED_instance = new KCampusOnlineStatus('UNRECOGNIZED', 2, -1); + Companion_getInstance_749(); + } + function _get_$cachedSerializer__te6jhj_91($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KCampusMngAuditStatus$Companion$values$delegate$lambda() { + return listOf_0([KCampusMngAuditStatus_CAMPUS_MNG_AUDIT_NONE_getInstance(), KCampusMngAuditStatus_CAMPUS_MNG_AUDIT_IN_PROCESS_getInstance(), KCampusMngAuditStatus_CAMPUS_MNG_AUDIT_FAILED_getInstance()]); + } + function KCampusMngAuditStatus$Companion$_anonymous__d110pq() { + return $serializer_getInstance_737(); + } + var KCampusMngAuditStatus_CAMPUS_MNG_AUDIT_NONE_instance; + var KCampusMngAuditStatus_CAMPUS_MNG_AUDIT_IN_PROCESS_instance; + var KCampusMngAuditStatus_CAMPUS_MNG_AUDIT_FAILED_instance; + var KCampusMngAuditStatus_UNRECOGNIZED_instance; + var Companion_instance_750; + function Companion_getInstance_750() { + KCampusMngAuditStatus_initEntries(); + if (Companion_instance_750 === VOID) + new Companion_750(); + return Companion_instance_750; + } + var $serializer_instance_737; + function $serializer_getInstance_737() { + KCampusMngAuditStatus_initEntries(); + if ($serializer_instance_737 === VOID) + new $serializer_737(); + return $serializer_instance_737; + } + function values_91() { + return [KCampusMngAuditStatus_CAMPUS_MNG_AUDIT_NONE_getInstance(), KCampusMngAuditStatus_CAMPUS_MNG_AUDIT_IN_PROCESS_getInstance(), KCampusMngAuditStatus_CAMPUS_MNG_AUDIT_FAILED_getInstance(), KCampusMngAuditStatus_UNRECOGNIZED_getInstance()]; + } + function valueOf_91(value) { + switch (value) { + case 'CAMPUS_MNG_AUDIT_NONE': + return KCampusMngAuditStatus_CAMPUS_MNG_AUDIT_NONE_getInstance(); + case 'CAMPUS_MNG_AUDIT_IN_PROCESS': + return KCampusMngAuditStatus_CAMPUS_MNG_AUDIT_IN_PROCESS_getInstance(); + case 'CAMPUS_MNG_AUDIT_FAILED': + return KCampusMngAuditStatus_CAMPUS_MNG_AUDIT_FAILED_getInstance(); + case 'UNRECOGNIZED': + return KCampusMngAuditStatus_UNRECOGNIZED_getInstance(); + default: + KCampusMngAuditStatus_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KCampusMngAuditStatus_entriesInitialized; + function KCampusMngAuditStatus_initEntries() { + if (KCampusMngAuditStatus_entriesInitialized) + return Unit_instance; + KCampusMngAuditStatus_entriesInitialized = true; + KCampusMngAuditStatus_CAMPUS_MNG_AUDIT_NONE_instance = new KCampusMngAuditStatus('CAMPUS_MNG_AUDIT_NONE', 0, 0); + KCampusMngAuditStatus_CAMPUS_MNG_AUDIT_IN_PROCESS_instance = new KCampusMngAuditStatus('CAMPUS_MNG_AUDIT_IN_PROCESS', 1, 1); + KCampusMngAuditStatus_CAMPUS_MNG_AUDIT_FAILED_instance = new KCampusMngAuditStatus('CAMPUS_MNG_AUDIT_FAILED', 2, 2); + KCampusMngAuditStatus_UNRECOGNIZED_instance = new KCampusMngAuditStatus('UNRECOGNIZED', 3, -1); + Companion_getInstance_750(); + } + function _get_$cachedSerializer__te6jhj_92($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KCampusMngItemType$Companion$values$delegate$lambda() { + return listOf_0([KCampusMngItemType_CAMPUS_MNG_NONE_getInstance(), KCampusMngItemType_CAMPUS_MNG_BASIC_INFO_getInstance(), KCampusMngItemType_CAMPUS_MNG_BADGE_getInstance(), KCampusMngItemType_CAMPUS_MNG_SLOGAN_getInstance(), KCampusMngItemType_CAMPUS_MNG_QUIZ_getInstance()]); + } + function KCampusMngItemType$Companion$_anonymous__hfcly2() { + return $serializer_getInstance_738(); + } + var KCampusMngItemType_CAMPUS_MNG_NONE_instance; + var KCampusMngItemType_CAMPUS_MNG_BASIC_INFO_instance; + var KCampusMngItemType_CAMPUS_MNG_BADGE_instance; + var KCampusMngItemType_CAMPUS_MNG_SLOGAN_instance; + var KCampusMngItemType_CAMPUS_MNG_QUIZ_instance; + var KCampusMngItemType_UNRECOGNIZED_instance; + var Companion_instance_751; + function Companion_getInstance_751() { + KCampusMngItemType_initEntries(); + if (Companion_instance_751 === VOID) + new Companion_751(); + return Companion_instance_751; + } + var $serializer_instance_738; + function $serializer_getInstance_738() { + KCampusMngItemType_initEntries(); + if ($serializer_instance_738 === VOID) + new $serializer_738(); + return $serializer_instance_738; + } + function values_92() { + return [KCampusMngItemType_CAMPUS_MNG_NONE_getInstance(), KCampusMngItemType_CAMPUS_MNG_BASIC_INFO_getInstance(), KCampusMngItemType_CAMPUS_MNG_BADGE_getInstance(), KCampusMngItemType_CAMPUS_MNG_SLOGAN_getInstance(), KCampusMngItemType_CAMPUS_MNG_QUIZ_getInstance(), KCampusMngItemType_UNRECOGNIZED_getInstance()]; + } + function valueOf_92(value) { + switch (value) { + case 'CAMPUS_MNG_NONE': + return KCampusMngItemType_CAMPUS_MNG_NONE_getInstance(); + case 'CAMPUS_MNG_BASIC_INFO': + return KCampusMngItemType_CAMPUS_MNG_BASIC_INFO_getInstance(); + case 'CAMPUS_MNG_BADGE': + return KCampusMngItemType_CAMPUS_MNG_BADGE_getInstance(); + case 'CAMPUS_MNG_SLOGAN': + return KCampusMngItemType_CAMPUS_MNG_SLOGAN_getInstance(); + case 'CAMPUS_MNG_QUIZ': + return KCampusMngItemType_CAMPUS_MNG_QUIZ_getInstance(); + case 'UNRECOGNIZED': + return KCampusMngItemType_UNRECOGNIZED_getInstance(); + default: + KCampusMngItemType_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KCampusMngItemType_entriesInitialized; + function KCampusMngItemType_initEntries() { + if (KCampusMngItemType_entriesInitialized) + return Unit_instance; + KCampusMngItemType_entriesInitialized = true; + KCampusMngItemType_CAMPUS_MNG_NONE_instance = new KCampusMngItemType('CAMPUS_MNG_NONE', 0, 0); + KCampusMngItemType_CAMPUS_MNG_BASIC_INFO_instance = new KCampusMngItemType('CAMPUS_MNG_BASIC_INFO', 1, 1); + KCampusMngItemType_CAMPUS_MNG_BADGE_instance = new KCampusMngItemType('CAMPUS_MNG_BADGE', 2, 2); + KCampusMngItemType_CAMPUS_MNG_SLOGAN_instance = new KCampusMngItemType('CAMPUS_MNG_SLOGAN', 3, 3); + KCampusMngItemType_CAMPUS_MNG_QUIZ_instance = new KCampusMngItemType('CAMPUS_MNG_QUIZ', 4, 4); + KCampusMngItemType_UNRECOGNIZED_instance = new KCampusMngItemType('UNRECOGNIZED', 5, -1); + Companion_getInstance_751(); + } + function _get_$cachedSerializer__te6jhj_93($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KCampusMngQuizAction$Companion$values$delegate$lambda() { + return listOf_0([KCampusMngQuizAction_CAMPUS_MNG_QUIZ_ACT_LIST_getInstance(), KCampusMngQuizAction_CAMPUS_MNG_QUIZ_ACT_ADD_getInstance(), KCampusMngQuizAction_CAMPUS_MNG_QUIZ_ACT_DEL_getInstance()]); + } + function KCampusMngQuizAction$Companion$_anonymous__9jlztk() { + return $serializer_getInstance_739(); + } + var KCampusMngQuizAction_CAMPUS_MNG_QUIZ_ACT_LIST_instance; + var KCampusMngQuizAction_CAMPUS_MNG_QUIZ_ACT_ADD_instance; + var KCampusMngQuizAction_CAMPUS_MNG_QUIZ_ACT_DEL_instance; + var KCampusMngQuizAction_UNRECOGNIZED_instance; + var Companion_instance_752; + function Companion_getInstance_752() { + KCampusMngQuizAction_initEntries(); + if (Companion_instance_752 === VOID) + new Companion_752(); + return Companion_instance_752; + } + var $serializer_instance_739; + function $serializer_getInstance_739() { + KCampusMngQuizAction_initEntries(); + if ($serializer_instance_739 === VOID) + new $serializer_739(); + return $serializer_instance_739; + } + function values_93() { + return [KCampusMngQuizAction_CAMPUS_MNG_QUIZ_ACT_LIST_getInstance(), KCampusMngQuizAction_CAMPUS_MNG_QUIZ_ACT_ADD_getInstance(), KCampusMngQuizAction_CAMPUS_MNG_QUIZ_ACT_DEL_getInstance(), KCampusMngQuizAction_UNRECOGNIZED_getInstance()]; + } + function valueOf_93(value) { + switch (value) { + case 'CAMPUS_MNG_QUIZ_ACT_LIST': + return KCampusMngQuizAction_CAMPUS_MNG_QUIZ_ACT_LIST_getInstance(); + case 'CAMPUS_MNG_QUIZ_ACT_ADD': + return KCampusMngQuizAction_CAMPUS_MNG_QUIZ_ACT_ADD_getInstance(); + case 'CAMPUS_MNG_QUIZ_ACT_DEL': + return KCampusMngQuizAction_CAMPUS_MNG_QUIZ_ACT_DEL_getInstance(); + case 'UNRECOGNIZED': + return KCampusMngQuizAction_UNRECOGNIZED_getInstance(); + default: + KCampusMngQuizAction_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KCampusMngQuizAction_entriesInitialized; + function KCampusMngQuizAction_initEntries() { + if (KCampusMngQuizAction_entriesInitialized) + return Unit_instance; + KCampusMngQuizAction_entriesInitialized = true; + KCampusMngQuizAction_CAMPUS_MNG_QUIZ_ACT_LIST_instance = new KCampusMngQuizAction('CAMPUS_MNG_QUIZ_ACT_LIST', 0, 0); + KCampusMngQuizAction_CAMPUS_MNG_QUIZ_ACT_ADD_instance = new KCampusMngQuizAction('CAMPUS_MNG_QUIZ_ACT_ADD', 1, 1); + KCampusMngQuizAction_CAMPUS_MNG_QUIZ_ACT_DEL_instance = new KCampusMngQuizAction('CAMPUS_MNG_QUIZ_ACT_DEL', 2, 2); + KCampusMngQuizAction_UNRECOGNIZED_instance = new KCampusMngQuizAction('UNRECOGNIZED', 3, -1); + Companion_getInstance_752(); + } + var Companion_instance_753; + function Companion_getInstance_753() { + return Companion_instance_753; + } + var $serializer_instance_740; + function $serializer_getInstance_740() { + if ($serializer_instance_740 === VOID) + new $serializer_740(); + return $serializer_instance_740; + } + var Companion_instance_754; + function Companion_getInstance_754() { + return Companion_instance_754; + } + var $serializer_instance_741; + function $serializer_getInstance_741() { + if ($serializer_instance_741 === VOID) + new $serializer_741(); + return $serializer_instance_741; + } + var Companion_instance_755; + function Companion_getInstance_755() { + return Companion_instance_755; + } + var $serializer_instance_742; + function $serializer_getInstance_742() { + if ($serializer_instance_742 === VOID) + new $serializer_742(); + return $serializer_instance_742; + } + var Companion_instance_756; + function Companion_getInstance_756() { + return Companion_instance_756; + } + var $serializer_instance_743; + function $serializer_getInstance_743() { + if ($serializer_instance_743 === VOID) + new $serializer_743(); + return $serializer_instance_743; + } + var Companion_instance_757; + function Companion_getInstance_757() { + return Companion_instance_757; + } + var $serializer_instance_744; + function $serializer_getInstance_744() { + if ($serializer_instance_744 === VOID) + new $serializer_744(); + return $serializer_instance_744; + } + var Companion_instance_758; + function Companion_getInstance_758() { + if (Companion_instance_758 === VOID) + new Companion_758(); + return Companion_instance_758; + } + var $serializer_instance_745; + function $serializer_getInstance_745() { + if ($serializer_instance_745 === VOID) + new $serializer_745(); + return $serializer_instance_745; + } + var Companion_instance_759; + function Companion_getInstance_759() { + return Companion_instance_759; + } + var $serializer_instance_746; + function $serializer_getInstance_746() { + if ($serializer_instance_746 === VOID) + new $serializer_746(); + return $serializer_instance_746; + } + var Companion_instance_760; + function Companion_getInstance_760() { + return Companion_instance_760; + } + var $serializer_instance_747; + function $serializer_getInstance_747() { + if ($serializer_instance_747 === VOID) + new $serializer_747(); + return $serializer_instance_747; + } + var Companion_instance_761; + function Companion_getInstance_761() { + return Companion_instance_761; + } + var $serializer_instance_748; + function $serializer_getInstance_748() { + if ($serializer_instance_748 === VOID) + new $serializer_748(); + return $serializer_instance_748; + } + var Companion_instance_762; + function Companion_getInstance_762() { + return Companion_instance_762; + } + var $serializer_instance_749; + function $serializer_getInstance_749() { + if ($serializer_instance_749 === VOID) + new $serializer_749(); + return $serializer_instance_749; + } + var Companion_instance_763; + function Companion_getInstance_763() { + if (Companion_instance_763 === VOID) + new Companion_763(); + return Companion_instance_763; + } + var $serializer_instance_750; + function $serializer_getInstance_750() { + if ($serializer_instance_750 === VOID) + new $serializer_750(); + return $serializer_instance_750; + } + var Companion_instance_764; + function Companion_getInstance_764() { + return Companion_instance_764; + } + var $serializer_instance_751; + function $serializer_getInstance_751() { + if ($serializer_instance_751 === VOID) + new $serializer_751(); + return $serializer_instance_751; + } + var Companion_instance_765; + function Companion_getInstance_765() { + if (Companion_instance_765 === VOID) + new Companion_765(); + return Companion_instance_765; + } + var $serializer_instance_752; + function $serializer_getInstance_752() { + if ($serializer_instance_752 === VOID) + new $serializer_752(); + return $serializer_instance_752; + } + var Companion_instance_766; + function Companion_getInstance_766() { + return Companion_instance_766; + } + var $serializer_instance_753; + function $serializer_getInstance_753() { + if ($serializer_instance_753 === VOID) + new $serializer_753(); + return $serializer_instance_753; + } + var Companion_instance_767; + function Companion_getInstance_767() { + return Companion_instance_767; + } + var $serializer_instance_754; + function $serializer_getInstance_754() { + if ($serializer_instance_754 === VOID) + new $serializer_754(); + return $serializer_instance_754; + } + var Companion_instance_768; + function Companion_getInstance_768() { + if (Companion_instance_768 === VOID) + new Companion_768(); + return Companion_instance_768; + } + var $serializer_instance_755; + function $serializer_getInstance_755() { + if ($serializer_instance_755 === VOID) + new $serializer_755(); + return $serializer_instance_755; + } + var Companion_instance_769; + function Companion_getInstance_769() { + if (Companion_instance_769 === VOID) + new Companion_769(); + return Companion_instance_769; + } + var $serializer_instance_756; + function $serializer_getInstance_756() { + if ($serializer_instance_756 === VOID) + new $serializer_756(); + return $serializer_instance_756; + } + var Companion_instance_770; + function Companion_getInstance_770() { + return Companion_instance_770; + } + var $serializer_instance_757; + function $serializer_getInstance_757() { + if ($serializer_instance_757 === VOID) + new $serializer_757(); + return $serializer_instance_757; + } + var Companion_instance_771; + function Companion_getInstance_771() { + return Companion_instance_771; + } + var $serializer_instance_758; + function $serializer_getInstance_758() { + if ($serializer_instance_758 === VOID) + new $serializer_758(); + return $serializer_instance_758; + } + var Companion_instance_772; + function Companion_getInstance_772() { + if (Companion_instance_772 === VOID) + new Companion_772(); + return Companion_instance_772; + } + var $serializer_instance_759; + function $serializer_getInstance_759() { + if ($serializer_instance_759 === VOID) + new $serializer_759(); + return $serializer_instance_759; + } + var Companion_instance_773; + function Companion_getInstance_773() { + return Companion_instance_773; + } + var $serializer_instance_760; + function $serializer_getInstance_760() { + if ($serializer_instance_760 === VOID) + new $serializer_760(); + return $serializer_instance_760; + } + var Companion_instance_774; + function Companion_getInstance_774() { + return Companion_instance_774; + } + var $serializer_instance_761; + function $serializer_getInstance_761() { + if ($serializer_instance_761 === VOID) + new $serializer_761(); + return $serializer_instance_761; + } + var Companion_instance_775; + function Companion_getInstance_775() { + if (Companion_instance_775 === VOID) + new Companion_775(); + return Companion_instance_775; + } + var $serializer_instance_762; + function $serializer_getInstance_762() { + if ($serializer_instance_762 === VOID) + new $serializer_762(); + return $serializer_instance_762; + } + var Companion_instance_776; + function Companion_getInstance_776() { + return Companion_instance_776; + } + var $serializer_instance_763; + function $serializer_getInstance_763() { + if ($serializer_instance_763 === VOID) + new $serializer_763(); + return $serializer_instance_763; + } + var Companion_instance_777; + function Companion_getInstance_777() { + if (Companion_instance_777 === VOID) + new Companion_777(); + return Companion_instance_777; + } + var $serializer_instance_764; + function $serializer_getInstance_764() { + if ($serializer_instance_764 === VOID) + new $serializer_764(); + return $serializer_instance_764; + } + var Companion_instance_778; + function Companion_getInstance_778() { + return Companion_instance_778; + } + var $serializer_instance_765; + function $serializer_getInstance_765() { + if ($serializer_instance_765 === VOID) + new $serializer_765(); + return $serializer_instance_765; + } + var Companion_instance_779; + function Companion_getInstance_779() { + if (Companion_instance_779 === VOID) + new Companion_779(); + return Companion_instance_779; + } + var $serializer_instance_766; + function $serializer_getInstance_766() { + if ($serializer_instance_766 === VOID) + new $serializer_766(); + return $serializer_instance_766; + } + var Companion_instance_780; + function Companion_getInstance_780() { + return Companion_instance_780; + } + var $serializer_instance_767; + function $serializer_getInstance_767() { + if ($serializer_instance_767 === VOID) + new $serializer_767(); + return $serializer_instance_767; + } + var Companion_instance_781; + function Companion_getInstance_781() { + return Companion_instance_781; + } + var $serializer_instance_768; + function $serializer_getInstance_768() { + if ($serializer_instance_768 === VOID) + new $serializer_768(); + return $serializer_instance_768; + } + var Companion_instance_782; + function Companion_getInstance_782() { + return Companion_instance_782; + } + var $serializer_instance_769; + function $serializer_getInstance_769() { + if ($serializer_instance_769 === VOID) + new $serializer_769(); + return $serializer_instance_769; + } + var Companion_instance_783; + function Companion_getInstance_783() { + if (Companion_instance_783 === VOID) + new Companion_783(); + return Companion_instance_783; + } + var $serializer_instance_770; + function $serializer_getInstance_770() { + if ($serializer_instance_770 === VOID) + new $serializer_770(); + return $serializer_instance_770; + } + var Companion_instance_784; + function Companion_getInstance_784() { + return Companion_instance_784; + } + var $serializer_instance_771; + function $serializer_getInstance_771() { + if ($serializer_instance_771 === VOID) + new $serializer_771(); + return $serializer_instance_771; + } + var Companion_instance_785; + function Companion_getInstance_785() { + return Companion_instance_785; + } + var $serializer_instance_772; + function $serializer_getInstance_772() { + if ($serializer_instance_772 === VOID) + new $serializer_772(); + return $serializer_instance_772; + } + var Companion_instance_786; + function Companion_getInstance_786() { + return Companion_instance_786; + } + var $serializer_instance_773; + function $serializer_getInstance_773() { + if ($serializer_instance_773 === VOID) + new $serializer_773(); + return $serializer_instance_773; + } + var Companion_instance_787; + function Companion_getInstance_787() { + return Companion_instance_787; + } + var $serializer_instance_774; + function $serializer_getInstance_774() { + if ($serializer_instance_774 === VOID) + new $serializer_774(); + return $serializer_instance_774; + } + var Companion_instance_788; + function Companion_getInstance_788() { + return Companion_instance_788; + } + var $serializer_instance_775; + function $serializer_getInstance_775() { + if ($serializer_instance_775 === VOID) + new $serializer_775(); + return $serializer_instance_775; + } + var Companion_instance_789; + function Companion_getInstance_789() { + return Companion_instance_789; + } + var $serializer_instance_776; + function $serializer_getInstance_776() { + if ($serializer_instance_776 === VOID) + new $serializer_776(); + return $serializer_instance_776; + } + var Companion_instance_790; + function Companion_getInstance_790() { + return Companion_instance_790; + } + var $serializer_instance_777; + function $serializer_getInstance_777() { + if ($serializer_instance_777 === VOID) + new $serializer_777(); + return $serializer_instance_777; + } + var Companion_instance_791; + function Companion_getInstance_791() { + return Companion_instance_791; + } + var $serializer_instance_778; + function $serializer_getInstance_778() { + if ($serializer_instance_778 === VOID) + new $serializer_778(); + return $serializer_instance_778; + } + var Companion_instance_792; + function Companion_getInstance_792() { + return Companion_instance_792; + } + var $serializer_instance_779; + function $serializer_getInstance_779() { + if ($serializer_instance_779 === VOID) + new $serializer_779(); + return $serializer_instance_779; + } + var Companion_instance_793; + function Companion_getInstance_793() { + return Companion_instance_793; + } + var $serializer_instance_780; + function $serializer_getInstance_780() { + if ($serializer_instance_780 === VOID) + new $serializer_780(); + return $serializer_instance_780; + } + var Companion_instance_794; + function Companion_getInstance_794() { + if (Companion_instance_794 === VOID) + new Companion_794(); + return Companion_instance_794; + } + var $serializer_instance_781; + function $serializer_getInstance_781() { + if ($serializer_instance_781 === VOID) + new $serializer_781(); + return $serializer_instance_781; + } + var Companion_instance_795; + function Companion_getInstance_795() { + if (Companion_instance_795 === VOID) + new Companion_795(); + return Companion_instance_795; + } + var $serializer_instance_782; + function $serializer_getInstance_782() { + if ($serializer_instance_782 === VOID) + new $serializer_782(); + return $serializer_instance_782; + } + var Companion_instance_796; + function Companion_getInstance_796() { + return Companion_instance_796; + } + var $serializer_instance_783; + function $serializer_getInstance_783() { + if ($serializer_instance_783 === VOID) + new $serializer_783(); + return $serializer_instance_783; + } + var Companion_instance_797; + function Companion_getInstance_797() { + if (Companion_instance_797 === VOID) + new Companion_797(); + return Companion_instance_797; + } + var $serializer_instance_784; + function $serializer_getInstance_784() { + if ($serializer_instance_784 === VOID) + new $serializer_784(); + return $serializer_instance_784; + } + var Companion_instance_798; + function Companion_getInstance_798() { + return Companion_instance_798; + } + var $serializer_instance_785; + function $serializer_getInstance_785() { + if ($serializer_instance_785 === VOID) + new $serializer_785(); + return $serializer_instance_785; + } + var Companion_instance_799; + function Companion_getInstance_799() { + return Companion_instance_799; + } + var $serializer_instance_786; + function $serializer_getInstance_786() { + if ($serializer_instance_786 === VOID) + new $serializer_786(); + return $serializer_instance_786; + } + var Companion_instance_800; + function Companion_getInstance_800() { + return Companion_instance_800; + } + var $serializer_instance_787; + function $serializer_getInstance_787() { + if ($serializer_instance_787 === VOID) + new $serializer_787(); + return $serializer_instance_787; + } + var Companion_instance_801; + function Companion_getInstance_801() { + return Companion_instance_801; + } + var $serializer_instance_788; + function $serializer_getInstance_788() { + if ($serializer_instance_788 === VOID) + new $serializer_788(); + return $serializer_instance_788; + } + var Companion_instance_802; + function Companion_getInstance_802() { + return Companion_instance_802; + } + var $serializer_instance_789; + function $serializer_getInstance_789() { + if ($serializer_instance_789 === VOID) + new $serializer_789(); + return $serializer_instance_789; + } + var Companion_instance_803; + function Companion_getInstance_803() { + if (Companion_instance_803 === VOID) + new Companion_803(); + return Companion_instance_803; + } + var $serializer_instance_790; + function $serializer_getInstance_790() { + if ($serializer_instance_790 === VOID) + new $serializer_790(); + return $serializer_instance_790; + } + var Companion_instance_804; + function Companion_getInstance_804() { + return Companion_instance_804; + } + var $serializer_instance_791; + function $serializer_getInstance_791() { + if ($serializer_instance_791 === VOID) + new $serializer_791(); + return $serializer_instance_791; + } + var Companion_instance_805; + function Companion_getInstance_805() { + if (Companion_instance_805 === VOID) + new Companion_805(); + return Companion_instance_805; + } + var $serializer_instance_792; + function $serializer_getInstance_792() { + if ($serializer_instance_792 === VOID) + new $serializer_792(); + return $serializer_instance_792; + } + var Companion_instance_806; + function Companion_getInstance_806() { + return Companion_instance_806; + } + var $serializer_instance_793; + function $serializer_getInstance_793() { + if ($serializer_instance_793 === VOID) + new $serializer_793(); + return $serializer_instance_793; + } + var Companion_instance_807; + function Companion_getInstance_807() { + return Companion_instance_807; + } + var $serializer_instance_794; + function $serializer_getInstance_794() { + if ($serializer_instance_794 === VOID) + new $serializer_794(); + return $serializer_instance_794; + } + var Companion_instance_808; + function Companion_getInstance_808() { + return Companion_instance_808; + } + var $serializer_instance_795; + function $serializer_getInstance_795() { + if ($serializer_instance_795 === VOID) + new $serializer_795(); + return $serializer_instance_795; + } + var Companion_instance_809; + function Companion_getInstance_809() { + return Companion_instance_809; + } + var $serializer_instance_796; + function $serializer_getInstance_796() { + if ($serializer_instance_796 === VOID) + new $serializer_796(); + return $serializer_instance_796; + } + var Companion_instance_810; + function Companion_getInstance_810() { + return Companion_instance_810; + } + var $serializer_instance_797; + function $serializer_getInstance_797() { + if ($serializer_instance_797 === VOID) + new $serializer_797(); + return $serializer_instance_797; + } + var Companion_instance_811; + function Companion_getInstance_811() { + if (Companion_instance_811 === VOID) + new Companion_811(); + return Companion_instance_811; + } + var $serializer_instance_798; + function $serializer_getInstance_798() { + if ($serializer_instance_798 === VOID) + new $serializer_798(); + return $serializer_instance_798; + } + var Companion_instance_812; + function Companion_getInstance_812() { + return Companion_instance_812; + } + var $serializer_instance_799; + function $serializer_getInstance_799() { + if ($serializer_instance_799 === VOID) + new $serializer_799(); + return $serializer_instance_799; + } + var Companion_instance_813; + function Companion_getInstance_813() { + if (Companion_instance_813 === VOID) + new Companion_813(); + return Companion_instance_813; + } + var $serializer_instance_800; + function $serializer_getInstance_800() { + if ($serializer_instance_800 === VOID) + new $serializer_800(); + return $serializer_instance_800; + } + var Companion_instance_814; + function Companion_getInstance_814() { + return Companion_instance_814; + } + var $serializer_instance_801; + function $serializer_getInstance_801() { + if ($serializer_instance_801 === VOID) + new $serializer_801(); + return $serializer_instance_801; + } + var Companion_instance_815; + function Companion_getInstance_815() { + if (Companion_instance_815 === VOID) + new Companion_815(); + return Companion_instance_815; + } + var $serializer_instance_802; + function $serializer_getInstance_802() { + if ($serializer_instance_802 === VOID) + new $serializer_802(); + return $serializer_instance_802; + } + var Companion_instance_816; + function Companion_getInstance_816() { + return Companion_instance_816; + } + var $serializer_instance_803; + function $serializer_getInstance_803() { + if ($serializer_instance_803 === VOID) + new $serializer_803(); + return $serializer_instance_803; + } + var Companion_instance_817; + function Companion_getInstance_817() { + return Companion_instance_817; + } + var $serializer_instance_804; + function $serializer_getInstance_804() { + if ($serializer_instance_804 === VOID) + new $serializer_804(); + return $serializer_instance_804; + } + var Companion_instance_818; + function Companion_getInstance_818() { + if (Companion_instance_818 === VOID) + new Companion_818(); + return Companion_instance_818; + } + var $serializer_instance_805; + function $serializer_getInstance_805() { + if ($serializer_instance_805 === VOID) + new $serializer_805(); + return $serializer_instance_805; + } + var Companion_instance_819; + function Companion_getInstance_819() { + return Companion_instance_819; + } + var $serializer_instance_806; + function $serializer_getInstance_806() { + if ($serializer_instance_806 === VOID) + new $serializer_806(); + return $serializer_instance_806; + } + var Companion_instance_820; + function Companion_getInstance_820() { + if (Companion_instance_820 === VOID) + new Companion_820(); + return Companion_instance_820; + } + var $serializer_instance_807; + function $serializer_getInstance_807() { + if ($serializer_instance_807 === VOID) + new $serializer_807(); + return $serializer_instance_807; + } + var Companion_instance_821; + function Companion_getInstance_821() { + if (Companion_instance_821 === VOID) + new Companion_821(); + return Companion_instance_821; + } + var $serializer_instance_808; + function $serializer_getInstance_808() { + if ($serializer_instance_808 === VOID) + new $serializer_808(); + return $serializer_instance_808; + } + var Companion_instance_822; + function Companion_getInstance_822() { + return Companion_instance_822; + } + var $serializer_instance_809; + function $serializer_getInstance_809() { + if ($serializer_instance_809 === VOID) + new $serializer_809(); + return $serializer_instance_809; + } + function KRcmdItem$Companion$rcmdItemValues$delegate$lambda() { + return listOf(KRcmdArchive_getInstance()); + } + function _get_rcmdItemNumber__ys0evt($this) { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = $this.rcmdItemNumber$delegate_1; + var thisRef = $this; + var property = rcmdItemNumber$factory(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + var KRcmdArchive_instance; + function KRcmdArchive_getInstance() { + if (KRcmdArchive_instance === VOID) + new KRcmdArchive(); + return KRcmdArchive_instance; + } + var Companion_instance_823; + function Companion_getInstance_823() { + if (Companion_instance_823 === VOID) + new Companion_823(); + return Companion_instance_823; + } + var $serializer_instance_810; + function $serializer_getInstance_810() { + if ($serializer_instance_810 === VOID) + new $serializer_810(); + return $serializer_instance_810; + } + function KRcmdItem$rcmdItemNumber$delegate$lambda(this$0) { + return function () { + var tmp; + if (!(this$0.rcmdArchive_1 == null)) { + tmp = 0; + } else { + tmp = -1; + } + return tmp; + }; + } + function KRcmdItem$_init_$lambda_2c6sl7(this$0) { + return function () { + var tmp; + if (!(this$0.rcmdArchive_1 == null)) { + tmp = 0; + } else { + tmp = -1; + } + return tmp; + }; + } + var Companion_instance_824; + function Companion_getInstance_824() { + return Companion_instance_824; + } + var $serializer_instance_811; + function $serializer_getInstance_811() { + if ($serializer_instance_811 === VOID) + new $serializer_811(); + return $serializer_instance_811; + } + var Companion_instance_825; + function Companion_getInstance_825() { + return Companion_instance_825; + } + var $serializer_instance_812; + function $serializer_getInstance_812() { + if ($serializer_instance_812 === VOID) + new $serializer_812(); + return $serializer_instance_812; + } + var Companion_instance_826; + function Companion_getInstance_826() { + if (Companion_instance_826 === VOID) + new Companion_826(); + return Companion_instance_826; + } + var $serializer_instance_813; + function $serializer_getInstance_813() { + if ($serializer_instance_813 === VOID) + new $serializer_813(); + return $serializer_instance_813; + } + var Companion_instance_827; + function Companion_getInstance_827() { + return Companion_instance_827; + } + var $serializer_instance_814; + function $serializer_getInstance_814() { + if ($serializer_instance_814 === VOID) + new $serializer_814(); + return $serializer_instance_814; + } + var Companion_instance_828; + function Companion_getInstance_828() { + if (Companion_instance_828 === VOID) + new Companion_828(); + return Companion_instance_828; + } + var $serializer_instance_815; + function $serializer_getInstance_815() { + if ($serializer_instance_815 === VOID) + new $serializer_815(); + return $serializer_instance_815; + } + var Companion_instance_829; + function Companion_getInstance_829() { + return Companion_instance_829; + } + var $serializer_instance_816; + function $serializer_getInstance_816() { + if ($serializer_instance_816 === VOID) + new $serializer_816(); + return $serializer_instance_816; + } + var Companion_instance_830; + function Companion_getInstance_830() { + return Companion_instance_830; + } + var $serializer_instance_817; + function $serializer_getInstance_817() { + if ($serializer_instance_817 === VOID) + new $serializer_817(); + return $serializer_instance_817; + } + var Companion_instance_831; + function Companion_getInstance_831() { + if (Companion_instance_831 === VOID) + new Companion_831(); + return Companion_instance_831; + } + var $serializer_instance_818; + function $serializer_getInstance_818() { + if ($serializer_instance_818 === VOID) + new $serializer_818(); + return $serializer_instance_818; + } + var Companion_instance_832; + function Companion_getInstance_832() { + if (Companion_instance_832 === VOID) + new Companion_832(); + return Companion_instance_832; + } + var $serializer_instance_819; + function $serializer_getInstance_819() { + if ($serializer_instance_819 === VOID) + new $serializer_819(); + return $serializer_instance_819; + } + var Companion_instance_833; + function Companion_getInstance_833() { + return Companion_instance_833; + } + var $serializer_instance_820; + function $serializer_getInstance_820() { + if ($serializer_instance_820 === VOID) + new $serializer_820(); + return $serializer_instance_820; + } + var Companion_instance_834; + function Companion_getInstance_834() { + return Companion_instance_834; + } + var $serializer_instance_821; + function $serializer_getInstance_821() { + if ($serializer_instance_821 === VOID) + new $serializer_821(); + return $serializer_instance_821; + } + var Companion_instance_835; + function Companion_getInstance_835() { + if (Companion_instance_835 === VOID) + new Companion_835(); + return Companion_instance_835; + } + var $serializer_instance_822; + function $serializer_getInstance_822() { + if ($serializer_instance_822 === VOID) + new $serializer_822(); + return $serializer_instance_822; + } + var Companion_instance_836; + function Companion_getInstance_836() { + if (Companion_instance_836 === VOID) + new Companion_836(); + return Companion_instance_836; + } + var $serializer_instance_823; + function $serializer_getInstance_823() { + if ($serializer_instance_823 === VOID) + new $serializer_823(); + return $serializer_instance_823; + } + var Companion_instance_837; + function Companion_getInstance_837() { + return Companion_instance_837; + } + var $serializer_instance_824; + function $serializer_getInstance_824() { + if ($serializer_instance_824 === VOID) + new $serializer_824(); + return $serializer_instance_824; + } + var Companion_instance_838; + function Companion_getInstance_838() { + if (Companion_instance_838 === VOID) + new Companion_838(); + return Companion_instance_838; + } + var $serializer_instance_825; + function $serializer_getInstance_825() { + if ($serializer_instance_825 === VOID) + new $serializer_825(); + return $serializer_instance_825; + } + var Companion_instance_839; + function Companion_getInstance_839() { + return Companion_instance_839; + } + var $serializer_instance_826; + function $serializer_getInstance_826() { + if ($serializer_instance_826 === VOID) + new $serializer_826(); + return $serializer_instance_826; + } + var Companion_instance_840; + function Companion_getInstance_840() { + return Companion_instance_840; + } + var $serializer_instance_827; + function $serializer_getInstance_827() { + if ($serializer_instance_827 === VOID) + new $serializer_827(); + return $serializer_instance_827; + } + var Companion_instance_841; + function Companion_getInstance_841() { + return Companion_instance_841; + } + var $serializer_instance_828; + function $serializer_getInstance_828() { + if ($serializer_instance_828 === VOID) + new $serializer_828(); + return $serializer_instance_828; + } + var Companion_instance_842; + function Companion_getInstance_842() { + return Companion_instance_842; + } + var $serializer_instance_829; + function $serializer_getInstance_829() { + if ($serializer_instance_829 === VOID) + new $serializer_829(); + return $serializer_instance_829; + } + var Companion_instance_843; + function Companion_getInstance_843() { + if (Companion_instance_843 === VOID) + new Companion_843(); + return Companion_instance_843; + } + var $serializer_instance_830; + function $serializer_getInstance_830() { + if ($serializer_instance_830 === VOID) + new $serializer_830(); + return $serializer_instance_830; + } + var Companion_instance_844; + function Companion_getInstance_844() { + return Companion_instance_844; + } + var $serializer_instance_831; + function $serializer_getInstance_831() { + if ($serializer_instance_831 === VOID) + new $serializer_831(); + return $serializer_instance_831; + } + var Companion_instance_845; + function Companion_getInstance_845() { + return Companion_instance_845; + } + var $serializer_instance_832; + function $serializer_getInstance_832() { + if ($serializer_instance_832 === VOID) + new $serializer_832(); + return $serializer_instance_832; + } + var Companion_instance_846; + function Companion_getInstance_846() { + return Companion_instance_846; + } + var $serializer_instance_833; + function $serializer_getInstance_833() { + if ($serializer_instance_833 === VOID) + new $serializer_833(); + return $serializer_instance_833; + } + var Companion_instance_847; + function Companion_getInstance_847() { + return Companion_instance_847; + } + var $serializer_instance_834; + function $serializer_getInstance_834() { + if ($serializer_instance_834 === VOID) + new $serializer_834(); + return $serializer_instance_834; + } + var Companion_instance_848; + function Companion_getInstance_848() { + if (Companion_instance_848 === VOID) + new Companion_848(); + return Companion_instance_848; + } + var $serializer_instance_835; + function $serializer_getInstance_835() { + if ($serializer_instance_835 === VOID) + new $serializer_835(); + return $serializer_instance_835; + } + var Companion_instance_849; + function Companion_getInstance_849() { + if (Companion_instance_849 === VOID) + new Companion_849(); + return Companion_instance_849; + } + var $serializer_instance_836; + function $serializer_getInstance_836() { + if ($serializer_instance_836 === VOID) + new $serializer_836(); + return $serializer_instance_836; + } + var Companion_instance_850; + function Companion_getInstance_850() { + return Companion_instance_850; + } + var $serializer_instance_837; + function $serializer_getInstance_837() { + if ($serializer_instance_837 === VOID) + new $serializer_837(); + return $serializer_instance_837; + } + var Companion_instance_851; + function Companion_getInstance_851() { + return Companion_instance_851; + } + var $serializer_instance_838; + function $serializer_getInstance_838() { + if ($serializer_instance_838 === VOID) + new $serializer_838(); + return $serializer_instance_838; + } + var Companion_instance_852; + function Companion_getInstance_852() { + return Companion_instance_852; + } + var $serializer_instance_839; + function $serializer_getInstance_839() { + if ($serializer_instance_839 === VOID) + new $serializer_839(); + return $serializer_instance_839; + } + var Companion_instance_853; + function Companion_getInstance_853() { + return Companion_instance_853; + } + var $serializer_instance_840; + function $serializer_getInstance_840() { + if ($serializer_instance_840 === VOID) + new $serializer_840(); + return $serializer_instance_840; + } + var Companion_instance_854; + function Companion_getInstance_854() { + if (Companion_instance_854 === VOID) + new Companion_854(); + return Companion_instance_854; + } + var $serializer_instance_841; + function $serializer_getInstance_841() { + if ($serializer_instance_841 === VOID) + new $serializer_841(); + return $serializer_instance_841; + } + var Companion_instance_855; + function Companion_getInstance_855() { + return Companion_instance_855; + } + var $serializer_instance_842; + function $serializer_getInstance_842() { + if ($serializer_instance_842 === VOID) + new $serializer_842(); + return $serializer_instance_842; + } + var Companion_instance_856; + function Companion_getInstance_856() { + return Companion_instance_856; + } + var $serializer_instance_843; + function $serializer_getInstance_843() { + if ($serializer_instance_843 === VOID) + new $serializer_843(); + return $serializer_instance_843; + } + var Companion_instance_857; + function Companion_getInstance_857() { + return Companion_instance_857; + } + var $serializer_instance_844; + function $serializer_getInstance_844() { + if ($serializer_instance_844 === VOID) + new $serializer_844(); + return $serializer_instance_844; + } + var Companion_instance_858; + function Companion_getInstance_858() { + return Companion_instance_858; + } + var $serializer_instance_845; + function $serializer_getInstance_845() { + if ($serializer_instance_845 === VOID) + new $serializer_845(); + return $serializer_instance_845; + } + var Companion_instance_859; + function Companion_getInstance_859() { + if (Companion_instance_859 === VOID) + new Companion_859(); + return Companion_instance_859; + } + var $serializer_instance_846; + function $serializer_getInstance_846() { + if ($serializer_instance_846 === VOID) + new $serializer_846(); + return $serializer_instance_846; + } + var Companion_instance_860; + function Companion_getInstance_860() { + return Companion_instance_860; + } + var $serializer_instance_847; + function $serializer_getInstance_847() { + if ($serializer_instance_847 === VOID) + new $serializer_847(); + return $serializer_instance_847; + } + var Companion_instance_861; + function Companion_getInstance_861() { + return Companion_instance_861; + } + var $serializer_instance_848; + function $serializer_getInstance_848() { + if ($serializer_instance_848 === VOID) + new $serializer_848(); + return $serializer_instance_848; + } + var Companion_instance_862; + function Companion_getInstance_862() { + return Companion_instance_862; + } + var $serializer_instance_849; + function $serializer_getInstance_849() { + if ($serializer_instance_849 === VOID) + new $serializer_849(); + return $serializer_instance_849; + } + var Companion_instance_863; + function Companion_getInstance_863() { + if (Companion_instance_863 === VOID) + new Companion_863(); + return Companion_instance_863; + } + var $serializer_instance_850; + function $serializer_getInstance_850() { + if ($serializer_instance_850 === VOID) + new $serializer_850(); + return $serializer_instance_850; + } + var Companion_instance_864; + function Companion_getInstance_864() { + if (Companion_instance_864 === VOID) + new Companion_864(); + return Companion_instance_864; + } + var $serializer_instance_851; + function $serializer_getInstance_851() { + if ($serializer_instance_851 === VOID) + new $serializer_851(); + return $serializer_instance_851; + } + var Companion_instance_865; + function Companion_getInstance_865() { + return Companion_instance_865; + } + var $serializer_instance_852; + function $serializer_getInstance_852() { + if ($serializer_instance_852 === VOID) + new $serializer_852(); + return $serializer_instance_852; + } + var Companion_instance_866; + function Companion_getInstance_866() { + if (Companion_instance_866 === VOID) + new Companion_866(); + return Companion_instance_866; + } + var $serializer_instance_853; + function $serializer_getInstance_853() { + if ($serializer_instance_853 === VOID) + new $serializer_853(); + return $serializer_instance_853; + } + var Companion_instance_867; + function Companion_getInstance_867() { + return Companion_instance_867; + } + var $serializer_instance_854; + function $serializer_getInstance_854() { + if ($serializer_instance_854 === VOID) + new $serializer_854(); + return $serializer_instance_854; + } + var Companion_instance_868; + function Companion_getInstance_868() { + if (Companion_instance_868 === VOID) + new Companion_868(); + return Companion_instance_868; + } + var $serializer_instance_855; + function $serializer_getInstance_855() { + if ($serializer_instance_855 === VOID) + new $serializer_855(); + return $serializer_instance_855; + } + var Companion_instance_869; + function Companion_getInstance_869() { + return Companion_instance_869; + } + var $serializer_instance_856; + function $serializer_getInstance_856() { + if ($serializer_instance_856 === VOID) + new $serializer_856(); + return $serializer_instance_856; + } + var Companion_instance_870; + function Companion_getInstance_870() { + return Companion_instance_870; + } + var $serializer_instance_857; + function $serializer_getInstance_857() { + if ($serializer_instance_857 === VOID) + new $serializer_857(); + return $serializer_instance_857; + } + var Companion_instance_871; + function Companion_getInstance_871() { + if (Companion_instance_871 === VOID) + new Companion_871(); + return Companion_instance_871; + } + var $serializer_instance_858; + function $serializer_getInstance_858() { + if ($serializer_instance_858 === VOID) + new $serializer_858(); + return $serializer_instance_858; + } + function KOfficialItem$Companion$rcmdItemValues$delegate$lambda() { + return listOf_0([KRcmdArchive_getInstance_0(), KRcmdDynamic_getInstance()]); + } + function _get_rcmdItemNumber__ys0evt_0($this) { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = $this.rcmdItemNumber$delegate_1; + var thisRef = $this; + var property = rcmdItemNumber$factory_0(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + var KRcmdArchive_instance_0; + function KRcmdArchive_getInstance_0() { + if (KRcmdArchive_instance_0 === VOID) + new KRcmdArchive_1(); + return KRcmdArchive_instance_0; + } + var KRcmdDynamic_instance; + function KRcmdDynamic_getInstance() { + if (KRcmdDynamic_instance === VOID) + new KRcmdDynamic(); + return KRcmdDynamic_instance; + } + var Companion_instance_872; + function Companion_getInstance_872() { + if (Companion_instance_872 === VOID) + new Companion_872(); + return Companion_instance_872; + } + var $serializer_instance_859; + function $serializer_getInstance_859() { + if ($serializer_instance_859 === VOID) + new $serializer_859(); + return $serializer_instance_859; + } + function KOfficialItem$rcmdItemNumber$delegate$lambda(this$0) { + return function () { + var tmp; + if (!(this$0.rcmdArchive_1 == null)) { + tmp = 0; + } else if (!(this$0.rcmdDynamic_1 == null)) { + tmp = 1; + } else { + tmp = -1; + } + return tmp; + }; + } + function KOfficialItem$_init_$lambda_2gnh5u(this$0) { + return function () { + var tmp; + if (!(this$0.rcmdArchive_1 == null)) { + tmp = 0; + } else if (!(this$0.rcmdDynamic_1 == null)) { + tmp = 1; + } else { + tmp = -1; + } + return tmp; + }; + } + var Companion_instance_873; + function Companion_getInstance_873() { + return Companion_instance_873; + } + var $serializer_instance_860; + function $serializer_getInstance_860() { + if ($serializer_instance_860 === VOID) + new $serializer_860(); + return $serializer_instance_860; + } + var Companion_instance_874; + function Companion_getInstance_874() { + return Companion_instance_874; + } + var $serializer_instance_861; + function $serializer_getInstance_861() { + if ($serializer_instance_861 === VOID) + new $serializer_861(); + return $serializer_instance_861; + } + var Companion_instance_875; + function Companion_getInstance_875() { + return Companion_instance_875; + } + var $serializer_instance_862; + function $serializer_getInstance_862() { + if ($serializer_instance_862 === VOID) + new $serializer_862(); + return $serializer_instance_862; + } + var Companion_instance_876; + function Companion_getInstance_876() { + return Companion_instance_876; + } + var $serializer_instance_863; + function $serializer_getInstance_863() { + if ($serializer_instance_863 === VOID) + new $serializer_863(); + return $serializer_instance_863; + } + var Companion_instance_877; + function Companion_getInstance_877() { + return Companion_instance_877; + } + var $serializer_instance_864; + function $serializer_getInstance_864() { + if ($serializer_instance_864 === VOID) + new $serializer_864(); + return $serializer_instance_864; + } + var Companion_instance_878; + function Companion_getInstance_878() { + if (Companion_instance_878 === VOID) + new Companion_878(); + return Companion_instance_878; + } + var $serializer_instance_865; + function $serializer_getInstance_865() { + if ($serializer_instance_865 === VOID) + new $serializer_865(); + return $serializer_instance_865; + } + var Companion_instance_879; + function Companion_getInstance_879() { + return Companion_instance_879; + } + var $serializer_instance_866; + function $serializer_getInstance_866() { + if ($serializer_instance_866 === VOID) + new $serializer_866(); + return $serializer_instance_866; + } + var Companion_instance_880; + function Companion_getInstance_880() { + return Companion_instance_880; + } + var $serializer_instance_867; + function $serializer_getInstance_867() { + if ($serializer_instance_867 === VOID) + new $serializer_867(); + return $serializer_instance_867; + } + var Companion_instance_881; + function Companion_getInstance_881() { + return Companion_instance_881; + } + var $serializer_instance_868; + function $serializer_getInstance_868() { + if ($serializer_instance_868 === VOID) + new $serializer_868(); + return $serializer_instance_868; + } + var Companion_instance_882; + function Companion_getInstance_882() { + return Companion_instance_882; + } + var $serializer_instance_869; + function $serializer_getInstance_869() { + if ($serializer_instance_869 === VOID) + new $serializer_869(); + return $serializer_instance_869; + } + var Companion_instance_883; + function Companion_getInstance_883() { + return Companion_instance_883; + } + var $serializer_instance_870; + function $serializer_getInstance_870() { + if ($serializer_instance_870 === VOID) + new $serializer_870(); + return $serializer_instance_870; + } + var Companion_instance_884; + function Companion_getInstance_884() { + return Companion_instance_884; + } + var $serializer_instance_871; + function $serializer_getInstance_871() { + if ($serializer_instance_871 === VOID) + new $serializer_871(); + return $serializer_instance_871; + } + var Companion_instance_885; + function Companion_getInstance_885() { + if (Companion_instance_885 === VOID) + new Companion_885(); + return Companion_instance_885; + } + var $serializer_instance_872; + function $serializer_getInstance_872() { + if ($serializer_instance_872 === VOID) + new $serializer_872(); + return $serializer_instance_872; + } + var Companion_instance_886; + function Companion_getInstance_886() { + return Companion_instance_886; + } + var $serializer_instance_873; + function $serializer_getInstance_873() { + if ($serializer_instance_873 === VOID) + new $serializer_873(); + return $serializer_instance_873; + } + var Companion_instance_887; + function Companion_getInstance_887() { + if (Companion_instance_887 === VOID) + new Companion_887(); + return Companion_instance_887; + } + var $serializer_instance_874; + function $serializer_getInstance_874() { + if ($serializer_instance_874 === VOID) + new $serializer_874(); + return $serializer_instance_874; + } + var Companion_instance_888; + function Companion_getInstance_888() { + if (Companion_instance_888 === VOID) + new Companion_888(); + return Companion_instance_888; + } + var $serializer_instance_875; + function $serializer_getInstance_875() { + if ($serializer_instance_875 === VOID) + new $serializer_875(); + return $serializer_instance_875; + } + var Companion_instance_889; + function Companion_getInstance_889() { + return Companion_instance_889; + } + var $serializer_instance_876; + function $serializer_getInstance_876() { + if ($serializer_instance_876 === VOID) + new $serializer_876(); + return $serializer_instance_876; + } + var Companion_instance_890; + function Companion_getInstance_890() { + return Companion_instance_890; + } + var $serializer_instance_877; + function $serializer_getInstance_877() { + if ($serializer_instance_877 === VOID) + new $serializer_877(); + return $serializer_instance_877; + } + var Companion_instance_891; + function Companion_getInstance_891() { + return Companion_instance_891; + } + var $serializer_instance_878; + function $serializer_getInstance_878() { + if ($serializer_instance_878 === VOID) + new $serializer_878(); + return $serializer_instance_878; + } + var Companion_instance_892; + function Companion_getInstance_892() { + return Companion_instance_892; + } + var $serializer_instance_879; + function $serializer_getInstance_879() { + if ($serializer_instance_879 === VOID) + new $serializer_879(); + return $serializer_instance_879; + } + var Companion_instance_893; + function Companion_getInstance_893() { + if (Companion_instance_893 === VOID) + new Companion_893(); + return Companion_instance_893; + } + var $serializer_instance_880; + function $serializer_getInstance_880() { + if ($serializer_instance_880 === VOID) + new $serializer_880(); + return $serializer_instance_880; + } + var Companion_instance_894; + function Companion_getInstance_894() { + return Companion_instance_894; + } + var $serializer_instance_881; + function $serializer_getInstance_881() { + if ($serializer_instance_881 === VOID) + new $serializer_881(); + return $serializer_instance_881; + } + var Companion_instance_895; + function Companion_getInstance_895() { + return Companion_instance_895; + } + var $serializer_instance_882; + function $serializer_getInstance_882() { + if ($serializer_instance_882 === VOID) + new $serializer_882(); + return $serializer_instance_882; + } + var Companion_instance_896; + function Companion_getInstance_896() { + if (Companion_instance_896 === VOID) + new Companion_896(); + return Companion_instance_896; + } + var $serializer_instance_883; + function $serializer_getInstance_883() { + if ($serializer_instance_883 === VOID) + new $serializer_883(); + return $serializer_instance_883; + } + var Companion_instance_897; + function Companion_getInstance_897() { + return Companion_instance_897; + } + var $serializer_instance_884; + function $serializer_getInstance_884() { + if ($serializer_instance_884 === VOID) + new $serializer_884(); + return $serializer_instance_884; + } + var Companion_instance_898; + function Companion_getInstance_898() { + return Companion_instance_898; + } + var $serializer_instance_885; + function $serializer_getInstance_885() { + if ($serializer_instance_885 === VOID) + new $serializer_885(); + return $serializer_instance_885; + } + var Companion_instance_899; + function Companion_getInstance_899() { + return Companion_instance_899; + } + var $serializer_instance_886; + function $serializer_getInstance_886() { + if ($serializer_instance_886 === VOID) + new $serializer_886(); + return $serializer_instance_886; + } + var Companion_instance_900; + function Companion_getInstance_900() { + return Companion_instance_900; + } + var $serializer_instance_887; + function $serializer_getInstance_887() { + if ($serializer_instance_887 === VOID) + new $serializer_887(); + return $serializer_instance_887; + } + var Companion_instance_901; + function Companion_getInstance_901() { + if (Companion_instance_901 === VOID) + new Companion_901(); + return Companion_instance_901; + } + var $serializer_instance_888; + function $serializer_getInstance_888() { + if ($serializer_instance_888 === VOID) + new $serializer_888(); + return $serializer_instance_888; + } + var Companion_instance_902; + function Companion_getInstance_902() { + return Companion_instance_902; + } + var $serializer_instance_889; + function $serializer_getInstance_889() { + if ($serializer_instance_889 === VOID) + new $serializer_889(); + return $serializer_instance_889; + } + var Companion_instance_903; + function Companion_getInstance_903() { + return Companion_instance_903; + } + var $serializer_instance_890; + function $serializer_getInstance_890() { + if ($serializer_instance_890 === VOID) + new $serializer_890(); + return $serializer_instance_890; + } + var Companion_instance_904; + function Companion_getInstance_904() { + if (Companion_instance_904 === VOID) + new Companion_904(); + return Companion_instance_904; + } + var $serializer_instance_891; + function $serializer_getInstance_891() { + if ($serializer_instance_891 === VOID) + new $serializer_891(); + return $serializer_instance_891; + } + var Companion_instance_905; + function Companion_getInstance_905() { + return Companion_instance_905; + } + var $serializer_instance_892; + function $serializer_getInstance_892() { + if ($serializer_instance_892 === VOID) + new $serializer_892(); + return $serializer_instance_892; + } + var Companion_instance_906; + function Companion_getInstance_906() { + return Companion_instance_906; + } + var $serializer_instance_893; + function $serializer_getInstance_893() { + if ($serializer_instance_893 === VOID) + new $serializer_893(); + return $serializer_instance_893; + } + var Companion_instance_907; + function Companion_getInstance_907() { + return Companion_instance_907; + } + var $serializer_instance_894; + function $serializer_getInstance_894() { + if ($serializer_instance_894 === VOID) + new $serializer_894(); + return $serializer_instance_894; + } + var Companion_instance_908; + function Companion_getInstance_908() { + return Companion_instance_908; + } + var $serializer_instance_895; + function $serializer_getInstance_895() { + if ($serializer_instance_895 === VOID) + new $serializer_895(); + return $serializer_instance_895; + } + var Companion_instance_909; + function Companion_getInstance_909() { + if (Companion_instance_909 === VOID) + new Companion_909(); + return Companion_instance_909; + } + var $serializer_instance_896; + function $serializer_getInstance_896() { + if ($serializer_instance_896 === VOID) + new $serializer_896(); + return $serializer_instance_896; + } + var Companion_instance_910; + function Companion_getInstance_910() { + return Companion_instance_910; + } + var $serializer_instance_897; + function $serializer_getInstance_897() { + if ($serializer_instance_897 === VOID) + new $serializer_897(); + return $serializer_instance_897; + } + var Companion_instance_911; + function Companion_getInstance_911() { + return Companion_instance_911; + } + var $serializer_instance_898; + function $serializer_getInstance_898() { + if ($serializer_instance_898 === VOID) + new $serializer_898(); + return $serializer_instance_898; + } + var Companion_instance_912; + function Companion_getInstance_912() { + return Companion_instance_912; + } + var $serializer_instance_899; + function $serializer_getInstance_899() { + if ($serializer_instance_899 === VOID) + new $serializer_899(); + return $serializer_instance_899; + } + var Companion_instance_913; + function Companion_getInstance_913() { + if (Companion_instance_913 === VOID) + new Companion_913(); + return Companion_instance_913; + } + var $serializer_instance_900; + function $serializer_getInstance_900() { + if ($serializer_instance_900 === VOID) + new $serializer_900(); + return $serializer_instance_900; + } + var Companion_instance_914; + function Companion_getInstance_914() { + if (Companion_instance_914 === VOID) + new Companion_914(); + return Companion_instance_914; + } + var $serializer_instance_901; + function $serializer_getInstance_901() { + if ($serializer_instance_901 === VOID) + new $serializer_901(); + return $serializer_instance_901; + } + var Companion_instance_915; + function Companion_getInstance_915() { + return Companion_instance_915; + } + var $serializer_instance_902; + function $serializer_getInstance_902() { + if ($serializer_instance_902 === VOID) + new $serializer_902(); + return $serializer_instance_902; + } + var Companion_instance_916; + function Companion_getInstance_916() { + if (Companion_instance_916 === VOID) + new Companion_916(); + return Companion_instance_916; + } + var $serializer_instance_903; + function $serializer_getInstance_903() { + if ($serializer_instance_903 === VOID) + new $serializer_903(); + return $serializer_instance_903; + } + var Companion_instance_917; + function Companion_getInstance_917() { + return Companion_instance_917; + } + var $serializer_instance_904; + function $serializer_getInstance_904() { + if ($serializer_instance_904 === VOID) + new $serializer_904(); + return $serializer_instance_904; + } + var Companion_instance_918; + function Companion_getInstance_918() { + if (Companion_instance_918 === VOID) + new Companion_918(); + return Companion_instance_918; + } + var $serializer_instance_905; + function $serializer_getInstance_905() { + if ($serializer_instance_905 === VOID) + new $serializer_905(); + return $serializer_instance_905; + } + function KCampusMngItem$Companion$itemValues$delegate$lambda() { + return listOf_0([KBasicInfo_getInstance(), KBadge_getInstance(), KSlogan_getInstance(), KQuiz_getInstance()]); + } + function _get_itemNumber__22vn01_0($this) { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = $this.itemNumber$delegate_1; + var thisRef = $this; + var property = itemNumber$factory_0(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + var KBasicInfo_instance; + function KBasicInfo_getInstance() { + if (KBasicInfo_instance === VOID) + new KBasicInfo(); + return KBasicInfo_instance; + } + var KBadge_instance; + function KBadge_getInstance() { + if (KBadge_instance === VOID) + new KBadge_0(); + return KBadge_instance; + } + var KSlogan_instance; + function KSlogan_getInstance() { + if (KSlogan_instance === VOID) + new KSlogan(); + return KSlogan_instance; + } + var KQuiz_instance; + function KQuiz_getInstance() { + if (KQuiz_instance === VOID) + new KQuiz(); + return KQuiz_instance; + } + var Companion_instance_919; + function Companion_getInstance_919() { + if (Companion_instance_919 === VOID) + new Companion_919(); + return Companion_instance_919; + } + var $serializer_instance_906; + function $serializer_getInstance_906() { + if ($serializer_instance_906 === VOID) + new $serializer_906(); + return $serializer_instance_906; + } + function KCampusMngItem$itemNumber$delegate$lambda(this$0) { + return function () { + var tmp; + if (!(this$0.basicInfo_1 == null)) { + tmp = 0; + } else if (!(this$0.badge_1 == null)) { + tmp = 1; + } else if (!(this$0.slogan_1 == null)) { + tmp = 2; + } else if (!(this$0.quiz_1 == null)) { + tmp = 3; + } else { + tmp = -1; + } + return tmp; + }; + } + function KCampusMngItem$_init_$lambda_upe0ho(this$0) { + return function () { + var tmp; + if (!(this$0.basicInfo_1 == null)) { + tmp = 0; + } else if (!(this$0.badge_1 == null)) { + tmp = 1; + } else if (!(this$0.slogan_1 == null)) { + tmp = 2; + } else if (!(this$0.quiz_1 == null)) { + tmp = 3; + } else { + tmp = -1; + } + return tmp; + }; + } + var Companion_instance_920; + function Companion_getInstance_920() { + return Companion_instance_920; + } + var $serializer_instance_907; + function $serializer_getInstance_907() { + if ($serializer_instance_907 === VOID) + new $serializer_907(); + return $serializer_instance_907; + } + var Companion_instance_921; + function Companion_getInstance_921() { + return Companion_instance_921; + } + var $serializer_instance_908; + function $serializer_getInstance_908() { + if ($serializer_instance_908 === VOID) + new $serializer_908(); + return $serializer_instance_908; + } + var Companion_instance_922; + function Companion_getInstance_922() { + return Companion_instance_922; + } + var $serializer_instance_909; + function $serializer_getInstance_909() { + if ($serializer_instance_909 === VOID) + new $serializer_909(); + return $serializer_instance_909; + } + var Companion_instance_923; + function Companion_getInstance_923() { + return Companion_instance_923; + } + var $serializer_instance_910; + function $serializer_getInstance_910() { + if ($serializer_instance_910 === VOID) + new $serializer_910(); + return $serializer_instance_910; + } + var Companion_instance_924; + function Companion_getInstance_924() { + if (Companion_instance_924 === VOID) + new Companion_924(); + return Companion_instance_924; + } + var $serializer_instance_911; + function $serializer_getInstance_911() { + if ($serializer_instance_911 === VOID) + new $serializer_911(); + return $serializer_instance_911; + } + var Companion_instance_925; + function Companion_getInstance_925() { + return Companion_instance_925; + } + var $serializer_instance_912; + function $serializer_getInstance_912() { + if ($serializer_instance_912 === VOID) + new $serializer_912(); + return $serializer_instance_912; + } + var Companion_instance_926; + function Companion_getInstance_926() { + if (Companion_instance_926 === VOID) + new Companion_926(); + return Companion_instance_926; + } + var $serializer_instance_913; + function $serializer_getInstance_913() { + if ($serializer_instance_913 === VOID) + new $serializer_913(); + return $serializer_instance_913; + } + var Companion_instance_927; + function Companion_getInstance_927() { + if (Companion_instance_927 === VOID) + new Companion_927(); + return Companion_instance_927; + } + var $serializer_instance_914; + function $serializer_getInstance_914() { + if ($serializer_instance_914 === VOID) + new $serializer_914(); + return $serializer_instance_914; + } + var Companion_instance_928; + function Companion_getInstance_928() { + if (Companion_instance_928 === VOID) + new Companion_928(); + return Companion_instance_928; + } + var $serializer_instance_915; + function $serializer_getInstance_915() { + if ($serializer_instance_915 === VOID) + new $serializer_915(); + return $serializer_instance_915; + } + var Companion_instance_929; + function Companion_getInstance_929() { + return Companion_instance_929; + } + var $serializer_instance_916; + function $serializer_getInstance_916() { + if ($serializer_instance_916 === VOID) + new $serializer_916(); + return $serializer_instance_916; + } + var Companion_instance_930; + function Companion_getInstance_930() { + if (Companion_instance_930 === VOID) + new Companion_930(); + return Companion_instance_930; + } + var $serializer_instance_917; + function $serializer_getInstance_917() { + if ($serializer_instance_917 === VOID) + new $serializer_917(); + return $serializer_instance_917; + } + var Companion_instance_931; + function Companion_getInstance_931() { + return Companion_instance_931; + } + var $serializer_instance_918; + function $serializer_getInstance_918() { + if ($serializer_instance_918 === VOID) + new $serializer_918(); + return $serializer_instance_918; + } + var Companion_instance_932; + function Companion_getInstance_932() { + if (Companion_instance_932 === VOID) + new Companion_932(); + return Companion_instance_932; + } + var $serializer_instance_919; + function $serializer_getInstance_919() { + if ($serializer_instance_919 === VOID) + new $serializer_919(); + return $serializer_instance_919; + } + var Companion_instance_933; + function Companion_getInstance_933() { + return Companion_instance_933; + } + var $serializer_instance_920; + function $serializer_getInstance_920() { + if ($serializer_instance_920 === VOID) + new $serializer_920(); + return $serializer_instance_920; + } + var Companion_instance_934; + function Companion_getInstance_934() { + if (Companion_instance_934 === VOID) + new Companion_934(); + return Companion_instance_934; + } + var $serializer_instance_921; + function $serializer_getInstance_921() { + if ($serializer_instance_921 === VOID) + new $serializer_921(); + return $serializer_instance_921; + } + var Companion_instance_935; + function Companion_getInstance_935() { + return Companion_instance_935; + } + var $serializer_instance_922; + function $serializer_getInstance_922() { + if ($serializer_instance_922 === VOID) + new $serializer_922(); + return $serializer_instance_922; + } + function KRefresh_NEW_getInstance() { + KRefresh_initEntries(); + return KRefresh_NEW_instance; + } + function KRefresh_HISTORY_getInstance() { + KRefresh_initEntries(); + return KRefresh_HISTORY_instance; + } + function KRefresh_UNRECOGNIZED_getInstance() { + KRefresh_initEntries(); + return KRefresh_UNRECOGNIZED_instance; + } + function KStyleType_NONE_getInstance() { + KStyleType_initEntries(); + return KStyleType_NONE_instance; + } + function KStyleType_LIVE_getInstance() { + KStyleType_initEntries(); + return KStyleType_LIVE_instance; + } + function KStyleType_DYN_UP_getInstance() { + KStyleType_initEntries(); + return KStyleType_DYN_UP_instance; + } + function KStyleType_UNRECOGNIZED_getInstance() { + KStyleType_initEntries(); + return KStyleType_UNRECOGNIZED_instance; + } + function KUserItemType_NONE_getInstance() { + KUserItemType_initEntries(); + return KUserItemType_NONE_instance; + } + function KUserItemType_LIVE_getInstance() { + KUserItemType_initEntries(); + return KUserItemType_LIVE_instance; + } + function KUserItemType_LIVE_CUSTOM_getInstance() { + KUserItemType_initEntries(); + return KUserItemType_LIVE_CUSTOM_instance; + } + function KUserItemType_NORMAL_getInstance() { + KUserItemType_initEntries(); + return KUserItemType_NORMAL_instance; + } + function KUserItemType_EXTEND_getInstance() { + KUserItemType_initEntries(); + return KUserItemType_EXTEND_instance; + } + function KUserItemType_PREMIERE_RESERVE_getInstance() { + KUserItemType_initEntries(); + return KUserItemType_PREMIERE_RESERVE_instance; + } + function KUserItemType_PREMIERE_getInstance() { + KUserItemType_initEntries(); + return KUserItemType_PREMIERE_instance; + } + function KUserItemType_LIVE_CARD_getInstance() { + KUserItemType_initEntries(); + return KUserItemType_LIVE_CARD_instance; + } + function KUserItemType_OGV_SEASON_getInstance() { + KUserItemType_initEntries(); + return KUserItemType_OGV_SEASON_instance; + } + function KUserItemType_UGC_SEASON_getInstance() { + KUserItemType_initEntries(); + return KUserItemType_UGC_SEASON_instance; + } + function KUserItemType_UNRECOGNIZED_getInstance() { + KUserItemType_initEntries(); + return KUserItemType_UNRECOGNIZED_instance; + } + function KFollowType_FT_NOT_FOLLOW_getInstance() { + KFollowType_initEntries(); + return KFollowType_FT_NOT_FOLLOW_instance; + } + function KFollowType_FT_FOLLOW_getInstance() { + KFollowType_initEntries(); + return KFollowType_FT_FOLLOW_instance; + } + function KFollowType_UNRECOGNIZED_getInstance() { + KFollowType_initEntries(); + return KFollowType_UNRECOGNIZED_instance; + } + function KThumbType_CANCEL_getInstance() { + KThumbType_initEntries(); + return KThumbType_CANCEL_instance; + } + function KThumbType_THUMB_getInstance() { + KThumbType_initEntries(); + return KThumbType_THUMB_instance; + } + function KThumbType_UNRECOGNIZED_getInstance() { + KThumbType_initEntries(); + return KThumbType_UNRECOGNIZED_instance; + } + function KVoteStatus_NORMAL_getInstance() { + KVoteStatus_initEntries(); + return KVoteStatus_NORMAL_instance; + } + function KVoteStatus_ANONYMOUS_getInstance() { + KVoteStatus_initEntries(); + return KVoteStatus_ANONYMOUS_instance; + } + function KVoteStatus_UNRECOGNIZED_getInstance() { + KVoteStatus_initEntries(); + return KVoteStatus_UNRECOGNIZED_instance; + } + function KLightFromType_FROM_LOGIN_getInstance() { + KLightFromType_initEntries(); + return KLightFromType_FROM_LOGIN_instance; + } + function KLightFromType_FROM_UNLOGIN_getInstance() { + KLightFromType_initEntries(); + return KLightFromType_FROM_UNLOGIN_instance; + } + function KLightFromType_UNRECOGNIZED_getInstance() { + KLightFromType_initEntries(); + return KLightFromType_UNRECOGNIZED_instance; + } + function KRepostType_REPOST_HOT_getInstance() { + KRepostType_initEntries(); + return KRepostType_REPOST_HOT_instance; + } + function KRepostType_REPOST_GENERAL_getInstance() { + KRepostType_initEntries(); + return KRepostType_REPOST_GENERAL_instance; + } + function KRepostType_UNRECOGNIZED_getInstance() { + KRepostType_initEntries(); + return KRepostType_UNRECOGNIZED_instance; + } + function KRcmdReasonStyle_NONE_getInstance() { + KRcmdReasonStyle_initEntries(); + return KRcmdReasonStyle_NONE_instance; + } + function KRcmdReasonStyle_CAMPUS_NEARBY_getInstance() { + KRcmdReasonStyle_initEntries(); + return KRcmdReasonStyle_CAMPUS_NEARBY_instance; + } + function KRcmdReasonStyle_CAMPUS_UP_getInstance() { + KRcmdReasonStyle_initEntries(); + return KRcmdReasonStyle_CAMPUS_UP_instance; + } + function KRcmdReasonStyle_CAMPUS_NEAR_UP_MIX_getInstance() { + KRcmdReasonStyle_initEntries(); + return KRcmdReasonStyle_CAMPUS_NEAR_UP_MIX_instance; + } + function KRcmdReasonStyle_UNRECOGNIZED_getInstance() { + KRcmdReasonStyle_initEntries(); + return KRcmdReasonStyle_UNRECOGNIZED_instance; + } + function KCampusTabType_CAMPUS_NONE_getInstance() { + KCampusTabType_initEntries(); + return KCampusTabType_CAMPUS_NONE_instance; + } + function KCampusTabType_CAMPUS_SCHOOL_getInstance() { + KCampusTabType_initEntries(); + return KCampusTabType_CAMPUS_SCHOOL_instance; + } + function KCampusTabType_CAMPUS_DYNAMIC_getInstance() { + KCampusTabType_initEntries(); + return KCampusTabType_CAMPUS_DYNAMIC_instance; + } + function KCampusTabType_CAMPUS_ACCOUNT_getInstance() { + KCampusTabType_initEntries(); + return KCampusTabType_CAMPUS_ACCOUNT_instance; + } + function KCampusTabType_CAMPUS_BILLBOARD_getInstance() { + KCampusTabType_initEntries(); + return KCampusTabType_CAMPUS_BILLBOARD_instance; + } + function KCampusTabType_CAMPUS_TOPIC_getInstance() { + KCampusTabType_initEntries(); + return KCampusTabType_CAMPUS_TOPIC_instance; + } + function KCampusTabType_CAMPUES_OTHER_getInstance() { + KCampusTabType_initEntries(); + return KCampusTabType_CAMPUES_OTHER_instance; + } + function KCampusTabType_UNRECOGNIZED_getInstance() { + KCampusTabType_initEntries(); + return KCampusTabType_UNRECOGNIZED_instance; + } + function KShowType_NONE_getInstance() { + KShowType_initEntries(); + return KShowType_NONE_instance; + } + function KShowType_BACKUP_getInstance() { + KShowType_initEntries(); + return KShowType_BACKUP_instance; + } + function KShowType_UNRECOGNIZED_getInstance() { + KShowType_initEntries(); + return KShowType_UNRECOGNIZED_instance; + } + function KNetworkType_NT_UNKNOWN_getInstance() { + KNetworkType_initEntries(); + return KNetworkType_NT_UNKNOWN_instance; + } + function KNetworkType_WIFI_getInstance() { + KNetworkType_initEntries(); + return KNetworkType_WIFI_instance; + } + function KNetworkType_CELLULAR_getInstance() { + KNetworkType_initEntries(); + return KNetworkType_CELLULAR_instance; + } + function KNetworkType_OFFLINE_getInstance() { + KNetworkType_initEntries(); + return KNetworkType_OFFLINE_instance; + } + function KNetworkType_OTHERNET_getInstance() { + KNetworkType_initEntries(); + return KNetworkType_OTHERNET_instance; + } + function KNetworkType_ETHERNET_getInstance() { + KNetworkType_initEntries(); + return KNetworkType_ETHERNET_instance; + } + function KNetworkType_UNRECOGNIZED_getInstance() { + KNetworkType_initEntries(); + return KNetworkType_UNRECOGNIZED_instance; + } + function KTFType_TF_UNKNOWN_getInstance() { + KTFType_initEntries(); + return KTFType_TF_UNKNOWN_instance; + } + function KTFType_U_CARD_getInstance() { + KTFType_initEntries(); + return KTFType_U_CARD_instance; + } + function KTFType_U_PKG_getInstance() { + KTFType_initEntries(); + return KTFType_U_PKG_instance; + } + function KTFType_C_CARD_getInstance() { + KTFType_initEntries(); + return KTFType_C_CARD_instance; + } + function KTFType_C_PKG_getInstance() { + KTFType_initEntries(); + return KTFType_C_PKG_instance; + } + function KTFType_T_CARD_getInstance() { + KTFType_initEntries(); + return KTFType_T_CARD_instance; + } + function KTFType_T_PKG_getInstance() { + KTFType_initEntries(); + return KTFType_T_PKG_instance; + } + function KTFType_UNRECOGNIZED_getInstance() { + KTFType_initEntries(); + return KTFType_UNRECOGNIZED_instance; + } + function KHomePageTabSttingStatus_SETTING_INVALID_getInstance() { + KHomePageTabSttingStatus_initEntries(); + return KHomePageTabSttingStatus_SETTING_INVALID_instance; + } + function KHomePageTabSttingStatus_SETTING_OPEN_getInstance() { + KHomePageTabSttingStatus_initEntries(); + return KHomePageTabSttingStatus_SETTING_OPEN_instance; + } + function KHomePageTabSttingStatus_SETTING_CLOSE_getInstance() { + KHomePageTabSttingStatus_initEntries(); + return KHomePageTabSttingStatus_SETTING_CLOSE_instance; + } + function KHomePageTabSttingStatus_UNRECOGNIZED_getInstance() { + KHomePageTabSttingStatus_initEntries(); + return KHomePageTabSttingStatus_UNRECOGNIZED_instance; + } + function KCampusHomePageType_PAGE_MAJOR_getInstance() { + KCampusHomePageType_initEntries(); + return KCampusHomePageType_PAGE_MAJOR_instance; + } + function KCampusHomePageType_PAGE_SUBORDINATE_getInstance() { + KCampusHomePageType_initEntries(); + return KCampusHomePageType_PAGE_SUBORDINATE_instance; + } + function KCampusHomePageType_PAGE_MAJOR_DETAIL_getInstance() { + KCampusHomePageType_initEntries(); + return KCampusHomePageType_PAGE_MAJOR_DETAIL_instance; + } + function KCampusHomePageType_UNRECOGNIZED_getInstance() { + KCampusHomePageType_initEntries(); + return KCampusHomePageType_UNRECOGNIZED_instance; + } + function KCampusReqFromType_DYNAMIC_getInstance() { + KCampusReqFromType_initEntries(); + return KCampusReqFromType_DYNAMIC_instance; + } + function KCampusReqFromType_HOME_getInstance() { + KCampusReqFromType_initEntries(); + return KCampusReqFromType_HOME_instance; + } + function KCampusReqFromType_UNRECOGNIZED_getInstance() { + KCampusReqFromType_initEntries(); + return KCampusReqFromType_UNRECOGNIZED_instance; + } + function KCampusRcmdReqFrom_CAMPUS_RCMD_FROM_UNKNOWN_getInstance() { + KCampusRcmdReqFrom_initEntries(); + return KCampusRcmdReqFrom_CAMPUS_RCMD_FROM_UNKNOWN_instance; + } + function KCampusRcmdReqFrom_CAMPUS_RCMD_FROM_HOME_UN_OPEN_getInstance() { + KCampusRcmdReqFrom_initEntries(); + return KCampusRcmdReqFrom_CAMPUS_RCMD_FROM_HOME_UN_OPEN_instance; + } + function KCampusRcmdReqFrom_CAMPUS_RCMD_FROM_VISIT_OTHER_getInstance() { + KCampusRcmdReqFrom_initEntries(); + return KCampusRcmdReqFrom_CAMPUS_RCMD_FROM_VISIT_OTHER_instance; + } + function KCampusRcmdReqFrom_CAMPUS_RCMD_FROM_HOME_MOMENT_getInstance() { + KCampusRcmdReqFrom_initEntries(); + return KCampusRcmdReqFrom_CAMPUS_RCMD_FROM_HOME_MOMENT_instance; + } + function KCampusRcmdReqFrom_CAMPUS_RCMD_FROM_DYN_MOMENT_getInstance() { + KCampusRcmdReqFrom_initEntries(); + return KCampusRcmdReqFrom_CAMPUS_RCMD_FROM_DYN_MOMENT_instance; + } + function KCampusRcmdReqFrom_CAMPUS_RCMD_FROM_PAGE_SUBORDINATE_MOMENT_getInstance() { + KCampusRcmdReqFrom_initEntries(); + return KCampusRcmdReqFrom_CAMPUS_RCMD_FROM_PAGE_SUBORDINATE_MOMENT_instance; + } + function KCampusRcmdReqFrom_UNRECOGNIZED_getInstance() { + KCampusRcmdReqFrom_initEntries(); + return KCampusRcmdReqFrom_UNRECOGNIZED_instance; + } + function KCampusEntryType_NONE_getInstance() { + KCampusEntryType_initEntries(); + return KCampusEntryType_NONE_instance; + } + function KCampusEntryType_ENTRY_DYNAMIC_getInstance() { + KCampusEntryType_initEntries(); + return KCampusEntryType_ENTRY_DYNAMIC_instance; + } + function KCampusEntryType_ENTRY_HOME_getInstance() { + KCampusEntryType_initEntries(); + return KCampusEntryType_ENTRY_HOME_instance; + } + function KCampusEntryType_UNRECOGNIZED_getInstance() { + KCampusEntryType_initEntries(); + return KCampusEntryType_UNRECOGNIZED_instance; + } + function KCampusOnlineStatus_CAMPUS_ONLINE_OFFLINE_getInstance() { + KCampusOnlineStatus_initEntries(); + return KCampusOnlineStatus_CAMPUS_ONLINE_OFFLINE_instance; + } + function KCampusOnlineStatus_CAMPUS_ONLINE_ONLINE_getInstance() { + KCampusOnlineStatus_initEntries(); + return KCampusOnlineStatus_CAMPUS_ONLINE_ONLINE_instance; + } + function KCampusOnlineStatus_UNRECOGNIZED_getInstance() { + KCampusOnlineStatus_initEntries(); + return KCampusOnlineStatus_UNRECOGNIZED_instance; + } + function KCampusMngAuditStatus_CAMPUS_MNG_AUDIT_NONE_getInstance() { + KCampusMngAuditStatus_initEntries(); + return KCampusMngAuditStatus_CAMPUS_MNG_AUDIT_NONE_instance; + } + function KCampusMngAuditStatus_CAMPUS_MNG_AUDIT_IN_PROCESS_getInstance() { + KCampusMngAuditStatus_initEntries(); + return KCampusMngAuditStatus_CAMPUS_MNG_AUDIT_IN_PROCESS_instance; + } + function KCampusMngAuditStatus_CAMPUS_MNG_AUDIT_FAILED_getInstance() { + KCampusMngAuditStatus_initEntries(); + return KCampusMngAuditStatus_CAMPUS_MNG_AUDIT_FAILED_instance; + } + function KCampusMngAuditStatus_UNRECOGNIZED_getInstance() { + KCampusMngAuditStatus_initEntries(); + return KCampusMngAuditStatus_UNRECOGNIZED_instance; + } + function KCampusMngItemType_CAMPUS_MNG_NONE_getInstance() { + KCampusMngItemType_initEntries(); + return KCampusMngItemType_CAMPUS_MNG_NONE_instance; + } + function KCampusMngItemType_CAMPUS_MNG_BASIC_INFO_getInstance() { + KCampusMngItemType_initEntries(); + return KCampusMngItemType_CAMPUS_MNG_BASIC_INFO_instance; + } + function KCampusMngItemType_CAMPUS_MNG_BADGE_getInstance() { + KCampusMngItemType_initEntries(); + return KCampusMngItemType_CAMPUS_MNG_BADGE_instance; + } + function KCampusMngItemType_CAMPUS_MNG_SLOGAN_getInstance() { + KCampusMngItemType_initEntries(); + return KCampusMngItemType_CAMPUS_MNG_SLOGAN_instance; + } + function KCampusMngItemType_CAMPUS_MNG_QUIZ_getInstance() { + KCampusMngItemType_initEntries(); + return KCampusMngItemType_CAMPUS_MNG_QUIZ_instance; + } + function KCampusMngItemType_UNRECOGNIZED_getInstance() { + KCampusMngItemType_initEntries(); + return KCampusMngItemType_UNRECOGNIZED_instance; + } + function KCampusMngQuizAction_CAMPUS_MNG_QUIZ_ACT_LIST_getInstance() { + KCampusMngQuizAction_initEntries(); + return KCampusMngQuizAction_CAMPUS_MNG_QUIZ_ACT_LIST_instance; + } + function KCampusMngQuizAction_CAMPUS_MNG_QUIZ_ACT_ADD_getInstance() { + KCampusMngQuizAction_initEntries(); + return KCampusMngQuizAction_CAMPUS_MNG_QUIZ_ACT_ADD_instance; + } + function KCampusMngQuizAction_CAMPUS_MNG_QUIZ_ACT_DEL_getInstance() { + KCampusMngQuizAction_initEntries(); + return KCampusMngQuizAction_CAMPUS_MNG_QUIZ_ACT_DEL_instance; + } + function KCampusMngQuizAction_UNRECOGNIZED_getInstance() { + KCampusMngQuizAction_initEntries(); + return KCampusMngQuizAction_UNRECOGNIZED_instance; + } + function values$factory_72() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_73() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_74() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_75() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_76() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_77() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_78() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_79() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_80() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_81() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_82() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_83() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_84() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_85() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_86() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_87() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_88() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_89() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_90() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_91() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_92() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_93() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function rcmdItemNumber$factory() { + return getPropertyCallableRef('rcmdItemNumber', 1, KProperty1, function (receiver) { + return _get_rcmdItemNumber__ys0evt(receiver); + }, null); + } + function rcmdItemValues$factory() { + return getPropertyCallableRef('rcmdItemValues', 1, KProperty1, function (receiver) { + return receiver.rcmdItemValues; + }, null); + } + function rcmdItemNumber$factory_0() { + return getPropertyCallableRef('rcmdItemNumber', 1, KProperty1, function (receiver) { + return _get_rcmdItemNumber__ys0evt_0(receiver); + }, null); + } + function rcmdItemValues$factory_0() { + return getPropertyCallableRef('rcmdItemValues', 1, KProperty1, function (receiver) { + return receiver.rcmdItemValues; + }, null); + } + function itemNumber$factory_0() { + return getPropertyCallableRef('itemNumber', 1, KProperty1, function (receiver) { + return _get_itemNumber__22vn01_0(receiver); + }, null); + } + function itemValues$factory_0() { + return getPropertyCallableRef('itemValues', 1, KProperty1, function (receiver) { + return receiver.itemValues; + }, null); + } + function _get_$cachedSerializer__te6jhj_94($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KDynamicType$Companion$values$delegate$lambda() { + return listOf_0([KDynamicType_DYN_NONE_getInstance(), KDynamicType_FORWARD_getInstance(), KDynamicType_AV_getInstance(), KDynamicType_PGC_getInstance(), KDynamicType_COURSES_getInstance(), KDynamicType_FOLD_getInstance(), KDynamicType_WORD_getInstance(), KDynamicType_DRAW_getInstance(), KDynamicType_ARTICLE_getInstance(), KDynamicType_MUSIC_getInstance(), KDynamicType_COMMON_SQUARE_getInstance(), KDynamicType_COMMON_VERTICAL_getInstance(), KDynamicType_LIVE_getInstance(), KDynamicType_MEDIALIST_getInstance(), KDynamicType_COURSES_SEASON_getInstance(), KDynamicType_AD_getInstance(), KDynamicType_APPLET_getInstance(), KDynamicType_SUBSCRIPTION_getInstance(), KDynamicType_LIVE_RCMD_getInstance(), KDynamicType_BANNER_getInstance(), KDynamicType_UGC_SEASON_getInstance(), KDynamicType_SUBSCRIPTION_NEW_getInstance(), KDynamicType_STORY_getInstance(), KDynamicType_TOPIC_RCMD_getInstance(), KDynamicType_COUR_UP_getInstance(), KDynamicType_TOPIC_SET_getInstance(), KDynamicType_NOTICE_getInstance(), KDynamicType_TEXT_NOTICE_getInstance(), KDynamicType_ONETIME_NOTICE_getInstance()]); + } + function KDynamicType$Companion$_anonymous__60svvl() { + return $serializer_getInstance_923(); + } + var KDynamicType_DYN_NONE_instance; + var KDynamicType_FORWARD_instance; + var KDynamicType_AV_instance; + var KDynamicType_PGC_instance; + var KDynamicType_COURSES_instance; + var KDynamicType_FOLD_instance; + var KDynamicType_WORD_instance; + var KDynamicType_DRAW_instance; + var KDynamicType_ARTICLE_instance; + var KDynamicType_MUSIC_instance; + var KDynamicType_COMMON_SQUARE_instance; + var KDynamicType_COMMON_VERTICAL_instance; + var KDynamicType_LIVE_instance; + var KDynamicType_MEDIALIST_instance; + var KDynamicType_COURSES_SEASON_instance; + var KDynamicType_AD_instance; + var KDynamicType_APPLET_instance; + var KDynamicType_SUBSCRIPTION_instance; + var KDynamicType_LIVE_RCMD_instance; + var KDynamicType_BANNER_instance; + var KDynamicType_UGC_SEASON_instance; + var KDynamicType_SUBSCRIPTION_NEW_instance; + var KDynamicType_STORY_instance; + var KDynamicType_TOPIC_RCMD_instance; + var KDynamicType_COUR_UP_instance; + var KDynamicType_TOPIC_SET_instance; + var KDynamicType_NOTICE_instance; + var KDynamicType_TEXT_NOTICE_instance; + var KDynamicType_ONETIME_NOTICE_instance; + var KDynamicType_UNRECOGNIZED_instance; + var Companion_instance_936; + function Companion_getInstance_936() { + KDynamicType_initEntries(); + if (Companion_instance_936 === VOID) + new Companion_936(); + return Companion_instance_936; + } + var $serializer_instance_923; + function $serializer_getInstance_923() { + KDynamicType_initEntries(); + if ($serializer_instance_923 === VOID) + new $serializer_923(); + return $serializer_instance_923; + } + function values_94() { + return [KDynamicType_DYN_NONE_getInstance(), KDynamicType_FORWARD_getInstance(), KDynamicType_AV_getInstance(), KDynamicType_PGC_getInstance(), KDynamicType_COURSES_getInstance(), KDynamicType_FOLD_getInstance(), KDynamicType_WORD_getInstance(), KDynamicType_DRAW_getInstance(), KDynamicType_ARTICLE_getInstance(), KDynamicType_MUSIC_getInstance(), KDynamicType_COMMON_SQUARE_getInstance(), KDynamicType_COMMON_VERTICAL_getInstance(), KDynamicType_LIVE_getInstance(), KDynamicType_MEDIALIST_getInstance(), KDynamicType_COURSES_SEASON_getInstance(), KDynamicType_AD_getInstance(), KDynamicType_APPLET_getInstance(), KDynamicType_SUBSCRIPTION_getInstance(), KDynamicType_LIVE_RCMD_getInstance(), KDynamicType_BANNER_getInstance(), KDynamicType_UGC_SEASON_getInstance(), KDynamicType_SUBSCRIPTION_NEW_getInstance(), KDynamicType_STORY_getInstance(), KDynamicType_TOPIC_RCMD_getInstance(), KDynamicType_COUR_UP_getInstance(), KDynamicType_TOPIC_SET_getInstance(), KDynamicType_NOTICE_getInstance(), KDynamicType_TEXT_NOTICE_getInstance(), KDynamicType_ONETIME_NOTICE_getInstance(), KDynamicType_UNRECOGNIZED_getInstance()]; + } + function valueOf_94(value) { + switch (value) { + case 'DYN_NONE': + return KDynamicType_DYN_NONE_getInstance(); + case 'FORWARD': + return KDynamicType_FORWARD_getInstance(); + case 'AV': + return KDynamicType_AV_getInstance(); + case 'PGC': + return KDynamicType_PGC_getInstance(); + case 'COURSES': + return KDynamicType_COURSES_getInstance(); + case 'FOLD': + return KDynamicType_FOLD_getInstance(); + case 'WORD': + return KDynamicType_WORD_getInstance(); + case 'DRAW': + return KDynamicType_DRAW_getInstance(); + case 'ARTICLE': + return KDynamicType_ARTICLE_getInstance(); + case 'MUSIC': + return KDynamicType_MUSIC_getInstance(); + case 'COMMON_SQUARE': + return KDynamicType_COMMON_SQUARE_getInstance(); + case 'COMMON_VERTICAL': + return KDynamicType_COMMON_VERTICAL_getInstance(); + case 'LIVE': + return KDynamicType_LIVE_getInstance(); + case 'MEDIALIST': + return KDynamicType_MEDIALIST_getInstance(); + case 'COURSES_SEASON': + return KDynamicType_COURSES_SEASON_getInstance(); + case 'AD': + return KDynamicType_AD_getInstance(); + case 'APPLET': + return KDynamicType_APPLET_getInstance(); + case 'SUBSCRIPTION': + return KDynamicType_SUBSCRIPTION_getInstance(); + case 'LIVE_RCMD': + return KDynamicType_LIVE_RCMD_getInstance(); + case 'BANNER': + return KDynamicType_BANNER_getInstance(); + case 'UGC_SEASON': + return KDynamicType_UGC_SEASON_getInstance(); + case 'SUBSCRIPTION_NEW': + return KDynamicType_SUBSCRIPTION_NEW_getInstance(); + case 'STORY': + return KDynamicType_STORY_getInstance(); + case 'TOPIC_RCMD': + return KDynamicType_TOPIC_RCMD_getInstance(); + case 'COUR_UP': + return KDynamicType_COUR_UP_getInstance(); + case 'TOPIC_SET': + return KDynamicType_TOPIC_SET_getInstance(); + case 'NOTICE': + return KDynamicType_NOTICE_getInstance(); + case 'TEXT_NOTICE': + return KDynamicType_TEXT_NOTICE_getInstance(); + case 'ONETIME_NOTICE': + return KDynamicType_ONETIME_NOTICE_getInstance(); + case 'UNRECOGNIZED': + return KDynamicType_UNRECOGNIZED_getInstance(); + default: + KDynamicType_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KDynamicType_entriesInitialized; + function KDynamicType_initEntries() { + if (KDynamicType_entriesInitialized) + return Unit_instance; + KDynamicType_entriesInitialized = true; + KDynamicType_DYN_NONE_instance = new KDynamicType('DYN_NONE', 0, 0); + KDynamicType_FORWARD_instance = new KDynamicType('FORWARD', 1, 1); + KDynamicType_AV_instance = new KDynamicType('AV', 2, 2); + KDynamicType_PGC_instance = new KDynamicType('PGC', 3, 3); + KDynamicType_COURSES_instance = new KDynamicType('COURSES', 4, 4); + KDynamicType_FOLD_instance = new KDynamicType('FOLD', 5, 5); + KDynamicType_WORD_instance = new KDynamicType('WORD', 6, 6); + KDynamicType_DRAW_instance = new KDynamicType('DRAW', 7, 7); + KDynamicType_ARTICLE_instance = new KDynamicType('ARTICLE', 8, 8); + KDynamicType_MUSIC_instance = new KDynamicType('MUSIC', 9, 9); + KDynamicType_COMMON_SQUARE_instance = new KDynamicType('COMMON_SQUARE', 10, 10); + KDynamicType_COMMON_VERTICAL_instance = new KDynamicType('COMMON_VERTICAL', 11, 11); + KDynamicType_LIVE_instance = new KDynamicType('LIVE', 12, 12); + KDynamicType_MEDIALIST_instance = new KDynamicType('MEDIALIST', 13, 13); + KDynamicType_COURSES_SEASON_instance = new KDynamicType('COURSES_SEASON', 14, 14); + KDynamicType_AD_instance = new KDynamicType('AD', 15, 15); + KDynamicType_APPLET_instance = new KDynamicType('APPLET', 16, 16); + KDynamicType_SUBSCRIPTION_instance = new KDynamicType('SUBSCRIPTION', 17, 17); + KDynamicType_LIVE_RCMD_instance = new KDynamicType('LIVE_RCMD', 18, 18); + KDynamicType_BANNER_instance = new KDynamicType('BANNER', 19, 19); + KDynamicType_UGC_SEASON_instance = new KDynamicType('UGC_SEASON', 20, 20); + KDynamicType_SUBSCRIPTION_NEW_instance = new KDynamicType('SUBSCRIPTION_NEW', 21, 21); + KDynamicType_STORY_instance = new KDynamicType('STORY', 22, 22); + KDynamicType_TOPIC_RCMD_instance = new KDynamicType('TOPIC_RCMD', 23, 23); + KDynamicType_COUR_UP_instance = new KDynamicType('COUR_UP', 24, 24); + KDynamicType_TOPIC_SET_instance = new KDynamicType('TOPIC_SET', 25, 25); + KDynamicType_NOTICE_instance = new KDynamicType('NOTICE', 26, 26); + KDynamicType_TEXT_NOTICE_instance = new KDynamicType('TEXT_NOTICE', 27, 27); + KDynamicType_ONETIME_NOTICE_instance = new KDynamicType('ONETIME_NOTICE', 28, 28); + KDynamicType_UNRECOGNIZED_instance = new KDynamicType('UNRECOGNIZED', 29, -1); + Companion_getInstance_936(); + } + function _get_$cachedSerializer__te6jhj_95($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KDynModuleType$Companion$values$delegate$lambda() { + return listOf_0([KDynModuleType_MODULE_NONE_getInstance(), KDynModuleType_MODULE_AUTHOR_getInstance(), KDynModuleType_MODULE_DISPUTE_getInstance(), KDynModuleType_MODULE_DESC_getInstance(), KDynModuleType_MODULE_DYNAMIC_getInstance(), KDynModuleType_MODULE_FORWARD_getInstance(), KDynModuleType_MODULE_LIKE_USER_getInstance(), KDynModuleType_MODULE_EXTEND_getInstance(), KDynModuleType_MODULE_ADDITIONAL_getInstance(), KDynModuleType_MODULE_STAT_getInstance(), KDynModuleType_MODULE_FOLD_getInstance(), KDynModuleType_MODULE_COMMENT_getInstance(), KDynModuleType_MODULE_INTERACTION_getInstance(), KDynModuleType_MODULE_AUTHOR_FORWARD_getInstance(), KDynModuleType_MODULE_AD_getInstance(), KDynModuleType_MODULE_BANNER_getInstance(), KDynModuleType_MODULE_ITEM_NULL_getInstance(), KDynModuleType_MODULE_SHARE_INFO_getInstance(), KDynModuleType_MODULE_RECOMMEND_getInstance(), KDynModuleType_MODULE_STAT_FORWARD_getInstance(), KDynModuleType_MODULE_TOP_getInstance(), KDynModuleType_MODULE_BOTTOM_getInstance(), KDynModuleType_MODULE_STORY_getInstance(), KDynModuleType_MODULE_TOPIC_getInstance(), KDynModuleType_MODULE_TOPIC_DETAILS_EXT_getInstance(), KDynModuleType_MODULE_TOP_TAG_getInstance(), KDynModuleType_MODULE_TOPIC_BRIEF_getInstance(), KDynModuleType_MODULE_TITLE_getInstance(), KDynModuleType_MODULE_BUTTON_getInstance(), KDynModuleType_MODULE_NOTICE_getInstance(), KDynModuleType_MODULE_OPUS_SUMMARY_getInstance(), KDynModuleType_MODULE_COPYRIGHT_getInstance(), KDynModuleType_MODULE_PARAGRAPH_getInstance(), KDynModuleType_MODULE_BLOCKED_getInstance(), KDynModuleType_MODULE_TEXT_NOTICE_getInstance(), KDynModuleType_MODULE_OPUS_COLLECTION_getInstance(), KDynModuleType_MODULE_ONETIME_NOTICE_getInstance()]); + } + function KDynModuleType$Companion$_anonymous__bknf8l() { + return $serializer_getInstance_924(); + } + var KDynModuleType_MODULE_NONE_instance; + var KDynModuleType_MODULE_AUTHOR_instance; + var KDynModuleType_MODULE_DISPUTE_instance; + var KDynModuleType_MODULE_DESC_instance; + var KDynModuleType_MODULE_DYNAMIC_instance; + var KDynModuleType_MODULE_FORWARD_instance; + var KDynModuleType_MODULE_LIKE_USER_instance; + var KDynModuleType_MODULE_EXTEND_instance; + var KDynModuleType_MODULE_ADDITIONAL_instance; + var KDynModuleType_MODULE_STAT_instance; + var KDynModuleType_MODULE_FOLD_instance; + var KDynModuleType_MODULE_COMMENT_instance; + var KDynModuleType_MODULE_INTERACTION_instance; + var KDynModuleType_MODULE_AUTHOR_FORWARD_instance; + var KDynModuleType_MODULE_AD_instance; + var KDynModuleType_MODULE_BANNER_instance; + var KDynModuleType_MODULE_ITEM_NULL_instance; + var KDynModuleType_MODULE_SHARE_INFO_instance; + var KDynModuleType_MODULE_RECOMMEND_instance; + var KDynModuleType_MODULE_STAT_FORWARD_instance; + var KDynModuleType_MODULE_TOP_instance; + var KDynModuleType_MODULE_BOTTOM_instance; + var KDynModuleType_MODULE_STORY_instance; + var KDynModuleType_MODULE_TOPIC_instance; + var KDynModuleType_MODULE_TOPIC_DETAILS_EXT_instance; + var KDynModuleType_MODULE_TOP_TAG_instance; + var KDynModuleType_MODULE_TOPIC_BRIEF_instance; + var KDynModuleType_MODULE_TITLE_instance; + var KDynModuleType_MODULE_BUTTON_instance; + var KDynModuleType_MODULE_NOTICE_instance; + var KDynModuleType_MODULE_OPUS_SUMMARY_instance; + var KDynModuleType_MODULE_COPYRIGHT_instance; + var KDynModuleType_MODULE_PARAGRAPH_instance; + var KDynModuleType_MODULE_BLOCKED_instance; + var KDynModuleType_MODULE_TEXT_NOTICE_instance; + var KDynModuleType_MODULE_OPUS_COLLECTION_instance; + var KDynModuleType_MODULE_ONETIME_NOTICE_instance; + var KDynModuleType_UNRECOGNIZED_instance; + var Companion_instance_937; + function Companion_getInstance_937() { + KDynModuleType_initEntries(); + if (Companion_instance_937 === VOID) + new Companion_937(); + return Companion_instance_937; + } + var $serializer_instance_924; + function $serializer_getInstance_924() { + KDynModuleType_initEntries(); + if ($serializer_instance_924 === VOID) + new $serializer_924(); + return $serializer_instance_924; + } + function values_95() { + return [KDynModuleType_MODULE_NONE_getInstance(), KDynModuleType_MODULE_AUTHOR_getInstance(), KDynModuleType_MODULE_DISPUTE_getInstance(), KDynModuleType_MODULE_DESC_getInstance(), KDynModuleType_MODULE_DYNAMIC_getInstance(), KDynModuleType_MODULE_FORWARD_getInstance(), KDynModuleType_MODULE_LIKE_USER_getInstance(), KDynModuleType_MODULE_EXTEND_getInstance(), KDynModuleType_MODULE_ADDITIONAL_getInstance(), KDynModuleType_MODULE_STAT_getInstance(), KDynModuleType_MODULE_FOLD_getInstance(), KDynModuleType_MODULE_COMMENT_getInstance(), KDynModuleType_MODULE_INTERACTION_getInstance(), KDynModuleType_MODULE_AUTHOR_FORWARD_getInstance(), KDynModuleType_MODULE_AD_getInstance(), KDynModuleType_MODULE_BANNER_getInstance(), KDynModuleType_MODULE_ITEM_NULL_getInstance(), KDynModuleType_MODULE_SHARE_INFO_getInstance(), KDynModuleType_MODULE_RECOMMEND_getInstance(), KDynModuleType_MODULE_STAT_FORWARD_getInstance(), KDynModuleType_MODULE_TOP_getInstance(), KDynModuleType_MODULE_BOTTOM_getInstance(), KDynModuleType_MODULE_STORY_getInstance(), KDynModuleType_MODULE_TOPIC_getInstance(), KDynModuleType_MODULE_TOPIC_DETAILS_EXT_getInstance(), KDynModuleType_MODULE_TOP_TAG_getInstance(), KDynModuleType_MODULE_TOPIC_BRIEF_getInstance(), KDynModuleType_MODULE_TITLE_getInstance(), KDynModuleType_MODULE_BUTTON_getInstance(), KDynModuleType_MODULE_NOTICE_getInstance(), KDynModuleType_MODULE_OPUS_SUMMARY_getInstance(), KDynModuleType_MODULE_COPYRIGHT_getInstance(), KDynModuleType_MODULE_PARAGRAPH_getInstance(), KDynModuleType_MODULE_BLOCKED_getInstance(), KDynModuleType_MODULE_TEXT_NOTICE_getInstance(), KDynModuleType_MODULE_OPUS_COLLECTION_getInstance(), KDynModuleType_MODULE_ONETIME_NOTICE_getInstance(), KDynModuleType_UNRECOGNIZED_getInstance()]; + } + function valueOf_95(value) { + switch (value) { + case 'MODULE_NONE': + return KDynModuleType_MODULE_NONE_getInstance(); + case 'MODULE_AUTHOR': + return KDynModuleType_MODULE_AUTHOR_getInstance(); + case 'MODULE_DISPUTE': + return KDynModuleType_MODULE_DISPUTE_getInstance(); + case 'MODULE_DESC': + return KDynModuleType_MODULE_DESC_getInstance(); + case 'MODULE_DYNAMIC': + return KDynModuleType_MODULE_DYNAMIC_getInstance(); + case 'MODULE_FORWARD': + return KDynModuleType_MODULE_FORWARD_getInstance(); + case 'MODULE_LIKE_USER': + return KDynModuleType_MODULE_LIKE_USER_getInstance(); + case 'MODULE_EXTEND': + return KDynModuleType_MODULE_EXTEND_getInstance(); + case 'MODULE_ADDITIONAL': + return KDynModuleType_MODULE_ADDITIONAL_getInstance(); + case 'MODULE_STAT': + return KDynModuleType_MODULE_STAT_getInstance(); + case 'MODULE_FOLD': + return KDynModuleType_MODULE_FOLD_getInstance(); + case 'MODULE_COMMENT': + return KDynModuleType_MODULE_COMMENT_getInstance(); + case 'MODULE_INTERACTION': + return KDynModuleType_MODULE_INTERACTION_getInstance(); + case 'MODULE_AUTHOR_FORWARD': + return KDynModuleType_MODULE_AUTHOR_FORWARD_getInstance(); + case 'MODULE_AD': + return KDynModuleType_MODULE_AD_getInstance(); + case 'MODULE_BANNER': + return KDynModuleType_MODULE_BANNER_getInstance(); + case 'MODULE_ITEM_NULL': + return KDynModuleType_MODULE_ITEM_NULL_getInstance(); + case 'MODULE_SHARE_INFO': + return KDynModuleType_MODULE_SHARE_INFO_getInstance(); + case 'MODULE_RECOMMEND': + return KDynModuleType_MODULE_RECOMMEND_getInstance(); + case 'MODULE_STAT_FORWARD': + return KDynModuleType_MODULE_STAT_FORWARD_getInstance(); + case 'MODULE_TOP': + return KDynModuleType_MODULE_TOP_getInstance(); + case 'MODULE_BOTTOM': + return KDynModuleType_MODULE_BOTTOM_getInstance(); + case 'MODULE_STORY': + return KDynModuleType_MODULE_STORY_getInstance(); + case 'MODULE_TOPIC': + return KDynModuleType_MODULE_TOPIC_getInstance(); + case 'MODULE_TOPIC_DETAILS_EXT': + return KDynModuleType_MODULE_TOPIC_DETAILS_EXT_getInstance(); + case 'MODULE_TOP_TAG': + return KDynModuleType_MODULE_TOP_TAG_getInstance(); + case 'MODULE_TOPIC_BRIEF': + return KDynModuleType_MODULE_TOPIC_BRIEF_getInstance(); + case 'MODULE_TITLE': + return KDynModuleType_MODULE_TITLE_getInstance(); + case 'MODULE_BUTTON': + return KDynModuleType_MODULE_BUTTON_getInstance(); + case 'MODULE_NOTICE': + return KDynModuleType_MODULE_NOTICE_getInstance(); + case 'MODULE_OPUS_SUMMARY': + return KDynModuleType_MODULE_OPUS_SUMMARY_getInstance(); + case 'MODULE_COPYRIGHT': + return KDynModuleType_MODULE_COPYRIGHT_getInstance(); + case 'MODULE_PARAGRAPH': + return KDynModuleType_MODULE_PARAGRAPH_getInstance(); + case 'MODULE_BLOCKED': + return KDynModuleType_MODULE_BLOCKED_getInstance(); + case 'MODULE_TEXT_NOTICE': + return KDynModuleType_MODULE_TEXT_NOTICE_getInstance(); + case 'MODULE_OPUS_COLLECTION': + return KDynModuleType_MODULE_OPUS_COLLECTION_getInstance(); + case 'MODULE_ONETIME_NOTICE': + return KDynModuleType_MODULE_ONETIME_NOTICE_getInstance(); + case 'UNRECOGNIZED': + return KDynModuleType_UNRECOGNIZED_getInstance(); + default: + KDynModuleType_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KDynModuleType_entriesInitialized; + function KDynModuleType_initEntries() { + if (KDynModuleType_entriesInitialized) + return Unit_instance; + KDynModuleType_entriesInitialized = true; + KDynModuleType_MODULE_NONE_instance = new KDynModuleType('MODULE_NONE', 0, 0); + KDynModuleType_MODULE_AUTHOR_instance = new KDynModuleType('MODULE_AUTHOR', 1, 1); + KDynModuleType_MODULE_DISPUTE_instance = new KDynModuleType('MODULE_DISPUTE', 2, 2); + KDynModuleType_MODULE_DESC_instance = new KDynModuleType('MODULE_DESC', 3, 3); + KDynModuleType_MODULE_DYNAMIC_instance = new KDynModuleType('MODULE_DYNAMIC', 4, 4); + KDynModuleType_MODULE_FORWARD_instance = new KDynModuleType('MODULE_FORWARD', 5, 5); + KDynModuleType_MODULE_LIKE_USER_instance = new KDynModuleType('MODULE_LIKE_USER', 6, 6); + KDynModuleType_MODULE_EXTEND_instance = new KDynModuleType('MODULE_EXTEND', 7, 7); + KDynModuleType_MODULE_ADDITIONAL_instance = new KDynModuleType('MODULE_ADDITIONAL', 8, 8); + KDynModuleType_MODULE_STAT_instance = new KDynModuleType('MODULE_STAT', 9, 9); + KDynModuleType_MODULE_FOLD_instance = new KDynModuleType('MODULE_FOLD', 10, 10); + KDynModuleType_MODULE_COMMENT_instance = new KDynModuleType('MODULE_COMMENT', 11, 11); + KDynModuleType_MODULE_INTERACTION_instance = new KDynModuleType('MODULE_INTERACTION', 12, 12); + KDynModuleType_MODULE_AUTHOR_FORWARD_instance = new KDynModuleType('MODULE_AUTHOR_FORWARD', 13, 13); + KDynModuleType_MODULE_AD_instance = new KDynModuleType('MODULE_AD', 14, 14); + KDynModuleType_MODULE_BANNER_instance = new KDynModuleType('MODULE_BANNER', 15, 15); + KDynModuleType_MODULE_ITEM_NULL_instance = new KDynModuleType('MODULE_ITEM_NULL', 16, 16); + KDynModuleType_MODULE_SHARE_INFO_instance = new KDynModuleType('MODULE_SHARE_INFO', 17, 17); + KDynModuleType_MODULE_RECOMMEND_instance = new KDynModuleType('MODULE_RECOMMEND', 18, 18); + KDynModuleType_MODULE_STAT_FORWARD_instance = new KDynModuleType('MODULE_STAT_FORWARD', 19, 19); + KDynModuleType_MODULE_TOP_instance = new KDynModuleType('MODULE_TOP', 20, 20); + KDynModuleType_MODULE_BOTTOM_instance = new KDynModuleType('MODULE_BOTTOM', 21, 21); + KDynModuleType_MODULE_STORY_instance = new KDynModuleType('MODULE_STORY', 22, 22); + KDynModuleType_MODULE_TOPIC_instance = new KDynModuleType('MODULE_TOPIC', 23, 23); + KDynModuleType_MODULE_TOPIC_DETAILS_EXT_instance = new KDynModuleType('MODULE_TOPIC_DETAILS_EXT', 24, 24); + KDynModuleType_MODULE_TOP_TAG_instance = new KDynModuleType('MODULE_TOP_TAG', 25, 25); + KDynModuleType_MODULE_TOPIC_BRIEF_instance = new KDynModuleType('MODULE_TOPIC_BRIEF', 26, 26); + KDynModuleType_MODULE_TITLE_instance = new KDynModuleType('MODULE_TITLE', 27, 27); + KDynModuleType_MODULE_BUTTON_instance = new KDynModuleType('MODULE_BUTTON', 28, 28); + KDynModuleType_MODULE_NOTICE_instance = new KDynModuleType('MODULE_NOTICE', 29, 29); + KDynModuleType_MODULE_OPUS_SUMMARY_instance = new KDynModuleType('MODULE_OPUS_SUMMARY', 30, 30); + KDynModuleType_MODULE_COPYRIGHT_instance = new KDynModuleType('MODULE_COPYRIGHT', 31, 31); + KDynModuleType_MODULE_PARAGRAPH_instance = new KDynModuleType('MODULE_PARAGRAPH', 32, 32); + KDynModuleType_MODULE_BLOCKED_instance = new KDynModuleType('MODULE_BLOCKED', 33, 33); + KDynModuleType_MODULE_TEXT_NOTICE_instance = new KDynModuleType('MODULE_TEXT_NOTICE', 34, 34); + KDynModuleType_MODULE_OPUS_COLLECTION_instance = new KDynModuleType('MODULE_OPUS_COLLECTION', 35, 35); + KDynModuleType_MODULE_ONETIME_NOTICE_instance = new KDynModuleType('MODULE_ONETIME_NOTICE', 36, 36); + KDynModuleType_UNRECOGNIZED_instance = new KDynModuleType('UNRECOGNIZED', 37, -1); + Companion_getInstance_937(); + } + function _get_$cachedSerializer__te6jhj_96($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KDescType$Companion$values$delegate$lambda_0() { + return listOf_0([KDescType_NONE_getInstance(), KDescType_TEXT_getInstance_0(), KDescType_AITE_getInstance(), KDescType_LOTTERY_getInstance(), KDescType_VOTE_getInstance(), KDescType_TOPIC_getInstance(), KDescType_GOODS_getInstance(), KDescType_BV_getInstance(), KDescType_AV_getInstance(), KDescType_EMOJI_getInstance(), KDescType_USER_getInstance(), KDescType_CV_getInstance(), KDescType_VC_getInstance(), KDescType_WEB_getInstance(), KDescType_TAOBAO_getInstance(), KDescType_MAIL_getInstance(), KDescType_OGV_SEASON_getInstance(), KDescType_OGV_EP_getInstance(), KDescType_SEARCH_WORD_getInstance()]); + } + function KDescType$Companion$_anonymous__rshgh3_0() { + return $serializer_getInstance_925(); + } + var KDescType_NONE_instance; + var KDescType_TEXT_instance_0; + var KDescType_AITE_instance; + var KDescType_LOTTERY_instance; + var KDescType_VOTE_instance; + var KDescType_TOPIC_instance; + var KDescType_GOODS_instance; + var KDescType_BV_instance; + var KDescType_AV_instance; + var KDescType_EMOJI_instance; + var KDescType_USER_instance; + var KDescType_CV_instance; + var KDescType_VC_instance; + var KDescType_WEB_instance; + var KDescType_TAOBAO_instance; + var KDescType_MAIL_instance; + var KDescType_OGV_SEASON_instance; + var KDescType_OGV_EP_instance; + var KDescType_SEARCH_WORD_instance; + var KDescType_UNRECOGNIZED_instance_0; + var Companion_instance_938; + function Companion_getInstance_938() { + KDescType_initEntries_0(); + if (Companion_instance_938 === VOID) + new Companion_938(); + return Companion_instance_938; + } + var $serializer_instance_925; + function $serializer_getInstance_925() { + KDescType_initEntries_0(); + if ($serializer_instance_925 === VOID) + new $serializer_925(); + return $serializer_instance_925; + } + function values_96() { + return [KDescType_NONE_getInstance(), KDescType_TEXT_getInstance_0(), KDescType_AITE_getInstance(), KDescType_LOTTERY_getInstance(), KDescType_VOTE_getInstance(), KDescType_TOPIC_getInstance(), KDescType_GOODS_getInstance(), KDescType_BV_getInstance(), KDescType_AV_getInstance(), KDescType_EMOJI_getInstance(), KDescType_USER_getInstance(), KDescType_CV_getInstance(), KDescType_VC_getInstance(), KDescType_WEB_getInstance(), KDescType_TAOBAO_getInstance(), KDescType_MAIL_getInstance(), KDescType_OGV_SEASON_getInstance(), KDescType_OGV_EP_getInstance(), KDescType_SEARCH_WORD_getInstance(), KDescType_UNRECOGNIZED_getInstance_0()]; + } + function valueOf_96(value) { + switch (value) { + case 'NONE': + return KDescType_NONE_getInstance(); + case 'TEXT': + return KDescType_TEXT_getInstance_0(); + case 'AITE': + return KDescType_AITE_getInstance(); + case 'LOTTERY': + return KDescType_LOTTERY_getInstance(); + case 'VOTE': + return KDescType_VOTE_getInstance(); + case 'TOPIC': + return KDescType_TOPIC_getInstance(); + case 'GOODS': + return KDescType_GOODS_getInstance(); + case 'BV': + return KDescType_BV_getInstance(); + case 'AV': + return KDescType_AV_getInstance(); + case 'EMOJI': + return KDescType_EMOJI_getInstance(); + case 'USER': + return KDescType_USER_getInstance(); + case 'CV': + return KDescType_CV_getInstance(); + case 'VC': + return KDescType_VC_getInstance(); + case 'WEB': + return KDescType_WEB_getInstance(); + case 'TAOBAO': + return KDescType_TAOBAO_getInstance(); + case 'MAIL': + return KDescType_MAIL_getInstance(); + case 'OGV_SEASON': + return KDescType_OGV_SEASON_getInstance(); + case 'OGV_EP': + return KDescType_OGV_EP_getInstance(); + case 'SEARCH_WORD': + return KDescType_SEARCH_WORD_getInstance(); + case 'UNRECOGNIZED': + return KDescType_UNRECOGNIZED_getInstance_0(); + default: + KDescType_initEntries_0(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KDescType_entriesInitialized_0; + function KDescType_initEntries_0() { + if (KDescType_entriesInitialized_0) + return Unit_instance; + KDescType_entriesInitialized_0 = true; + KDescType_NONE_instance = new KDescType_0('NONE', 0, 0); + KDescType_TEXT_instance_0 = new KDescType_0('TEXT', 1, 1); + KDescType_AITE_instance = new KDescType_0('AITE', 2, 2); + KDescType_LOTTERY_instance = new KDescType_0('LOTTERY', 3, 3); + KDescType_VOTE_instance = new KDescType_0('VOTE', 4, 4); + KDescType_TOPIC_instance = new KDescType_0('TOPIC', 5, 5); + KDescType_GOODS_instance = new KDescType_0('GOODS', 6, 6); + KDescType_BV_instance = new KDescType_0('BV', 7, 7); + KDescType_AV_instance = new KDescType_0('AV', 8, 8); + KDescType_EMOJI_instance = new KDescType_0('EMOJI', 9, 9); + KDescType_USER_instance = new KDescType_0('USER', 10, 10); + KDescType_CV_instance = new KDescType_0('CV', 11, 11); + KDescType_VC_instance = new KDescType_0('VC', 12, 12); + KDescType_WEB_instance = new KDescType_0('WEB', 13, 13); + KDescType_TAOBAO_instance = new KDescType_0('TAOBAO', 14, 14); + KDescType_MAIL_instance = new KDescType_0('MAIL', 15, 15); + KDescType_OGV_SEASON_instance = new KDescType_0('OGV_SEASON', 16, 16); + KDescType_OGV_EP_instance = new KDescType_0('OGV_EP', 17, 17); + KDescType_SEARCH_WORD_instance = new KDescType_0('SEARCH_WORD', 18, 18); + KDescType_UNRECOGNIZED_instance_0 = new KDescType_0('UNRECOGNIZED', 19, -1); + Companion_getInstance_938(); + } + function _get_$cachedSerializer__te6jhj_97($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KEmojiType$Companion$values$delegate$lambda() { + return listOf_0([KEmojiType_EMOJI_NONE_getInstance(), KEmojiType_EMOJI_OLD_getInstance(), KEmojiType_EMOJI_NEW_getInstance(), KEmojiType_VIP_getInstance()]); + } + function KEmojiType$Companion$_anonymous__sciucm() { + return $serializer_getInstance_926(); + } + var KEmojiType_EMOJI_NONE_instance; + var KEmojiType_EMOJI_OLD_instance; + var KEmojiType_EMOJI_NEW_instance; + var KEmojiType_VIP_instance; + var KEmojiType_UNRECOGNIZED_instance; + var Companion_instance_939; + function Companion_getInstance_939() { + KEmojiType_initEntries(); + if (Companion_instance_939 === VOID) + new Companion_939(); + return Companion_instance_939; + } + var $serializer_instance_926; + function $serializer_getInstance_926() { + KEmojiType_initEntries(); + if ($serializer_instance_926 === VOID) + new $serializer_926(); + return $serializer_instance_926; + } + function values_97() { + return [KEmojiType_EMOJI_NONE_getInstance(), KEmojiType_EMOJI_OLD_getInstance(), KEmojiType_EMOJI_NEW_getInstance(), KEmojiType_VIP_getInstance(), KEmojiType_UNRECOGNIZED_getInstance()]; + } + function valueOf_97(value) { + switch (value) { + case 'EMOJI_NONE': + return KEmojiType_EMOJI_NONE_getInstance(); + case 'EMOJI_OLD': + return KEmojiType_EMOJI_OLD_getInstance(); + case 'EMOJI_NEW': + return KEmojiType_EMOJI_NEW_getInstance(); + case 'VIP': + return KEmojiType_VIP_getInstance(); + case 'UNRECOGNIZED': + return KEmojiType_UNRECOGNIZED_getInstance(); + default: + KEmojiType_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KEmojiType_entriesInitialized; + function KEmojiType_initEntries() { + if (KEmojiType_entriesInitialized) + return Unit_instance; + KEmojiType_entriesInitialized = true; + KEmojiType_EMOJI_NONE_instance = new KEmojiType('EMOJI_NONE', 0, 0); + KEmojiType_EMOJI_OLD_instance = new KEmojiType('EMOJI_OLD', 1, 1); + KEmojiType_EMOJI_NEW_instance = new KEmojiType('EMOJI_NEW', 2, 2); + KEmojiType_VIP_instance = new KEmojiType('VIP', 3, 3); + KEmojiType_UNRECOGNIZED_instance = new KEmojiType('UNRECOGNIZED', 4, -1); + Companion_getInstance_939(); + } + function _get_$cachedSerializer__te6jhj_98($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KNFTRegionType$Companion$values$delegate$lambda() { + return listOf_0([KNFTRegionType_NFT_REGION_DEFAULT_getInstance(), KNFTRegionType_NFT_REGION_MAINLANG_getInstance(), KNFTRegionType_NFT_REGION_GAT_getInstance()]); + } + function KNFTRegionType$Companion$_anonymous__1u92z4() { + return $serializer_getInstance_927(); + } + var KNFTRegionType_NFT_REGION_DEFAULT_instance; + var KNFTRegionType_NFT_REGION_MAINLANG_instance; + var KNFTRegionType_NFT_REGION_GAT_instance; + var KNFTRegionType_UNRECOGNIZED_instance; + var Companion_instance_940; + function Companion_getInstance_940() { + KNFTRegionType_initEntries(); + if (Companion_instance_940 === VOID) + new Companion_940(); + return Companion_instance_940; + } + var $serializer_instance_927; + function $serializer_getInstance_927() { + KNFTRegionType_initEntries(); + if ($serializer_instance_927 === VOID) + new $serializer_927(); + return $serializer_instance_927; + } + function values_98() { + return [KNFTRegionType_NFT_REGION_DEFAULT_getInstance(), KNFTRegionType_NFT_REGION_MAINLANG_getInstance(), KNFTRegionType_NFT_REGION_GAT_getInstance(), KNFTRegionType_UNRECOGNIZED_getInstance()]; + } + function valueOf_98(value) { + switch (value) { + case 'NFT_REGION_DEFAULT': + return KNFTRegionType_NFT_REGION_DEFAULT_getInstance(); + case 'NFT_REGION_MAINLANG': + return KNFTRegionType_NFT_REGION_MAINLANG_getInstance(); + case 'NFT_REGION_GAT': + return KNFTRegionType_NFT_REGION_GAT_getInstance(); + case 'UNRECOGNIZED': + return KNFTRegionType_UNRECOGNIZED_getInstance(); + default: + KNFTRegionType_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KNFTRegionType_entriesInitialized; + function KNFTRegionType_initEntries() { + if (KNFTRegionType_entriesInitialized) + return Unit_instance; + KNFTRegionType_entriesInitialized = true; + KNFTRegionType_NFT_REGION_DEFAULT_instance = new KNFTRegionType('NFT_REGION_DEFAULT', 0, 0); + KNFTRegionType_NFT_REGION_MAINLANG_instance = new KNFTRegionType('NFT_REGION_MAINLANG', 1, 1); + KNFTRegionType_NFT_REGION_GAT_instance = new KNFTRegionType('NFT_REGION_GAT', 2, 2); + KNFTRegionType_UNRECOGNIZED_instance = new KNFTRegionType('UNRECOGNIZED', 3, -1); + Companion_getInstance_940(); + } + function _get_$cachedSerializer__te6jhj_99($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KNFTShowStatus$Companion$values$delegate$lambda() { + return listOf_0([KNFTShowStatus_NFT_SHOW_DEFAULT_getInstance(), KNFTShowStatus_NFT_SHOW_ZOOMINMAINLANG_getInstance(), KNFTShowStatus_NFT_SHOW_RAW_getInstance()]); + } + function KNFTShowStatus$Companion$_anonymous__xlf0un() { + return $serializer_getInstance_928(); + } + var KNFTShowStatus_NFT_SHOW_DEFAULT_instance; + var KNFTShowStatus_NFT_SHOW_ZOOMINMAINLANG_instance; + var KNFTShowStatus_NFT_SHOW_RAW_instance; + var KNFTShowStatus_UNRECOGNIZED_instance; + var Companion_instance_941; + function Companion_getInstance_941() { + KNFTShowStatus_initEntries(); + if (Companion_instance_941 === VOID) + new Companion_941(); + return Companion_instance_941; + } + var $serializer_instance_928; + function $serializer_getInstance_928() { + KNFTShowStatus_initEntries(); + if ($serializer_instance_928 === VOID) + new $serializer_928(); + return $serializer_instance_928; + } + function values_99() { + return [KNFTShowStatus_NFT_SHOW_DEFAULT_getInstance(), KNFTShowStatus_NFT_SHOW_ZOOMINMAINLANG_getInstance(), KNFTShowStatus_NFT_SHOW_RAW_getInstance(), KNFTShowStatus_UNRECOGNIZED_getInstance()]; + } + function valueOf_99(value) { + switch (value) { + case 'NFT_SHOW_DEFAULT': + return KNFTShowStatus_NFT_SHOW_DEFAULT_getInstance(); + case 'NFT_SHOW_ZOOMINMAINLANG': + return KNFTShowStatus_NFT_SHOW_ZOOMINMAINLANG_getInstance(); + case 'NFT_SHOW_RAW': + return KNFTShowStatus_NFT_SHOW_RAW_getInstance(); + case 'UNRECOGNIZED': + return KNFTShowStatus_UNRECOGNIZED_getInstance(); + default: + KNFTShowStatus_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KNFTShowStatus_entriesInitialized; + function KNFTShowStatus_initEntries() { + if (KNFTShowStatus_entriesInitialized) + return Unit_instance; + KNFTShowStatus_entriesInitialized = true; + KNFTShowStatus_NFT_SHOW_DEFAULT_instance = new KNFTShowStatus('NFT_SHOW_DEFAULT', 0, 0); + KNFTShowStatus_NFT_SHOW_ZOOMINMAINLANG_instance = new KNFTShowStatus('NFT_SHOW_ZOOMINMAINLANG', 1, 1); + KNFTShowStatus_NFT_SHOW_RAW_instance = new KNFTShowStatus('NFT_SHOW_RAW', 2, 2); + KNFTShowStatus_UNRECOGNIZED_instance = new KNFTShowStatus('UNRECOGNIZED', 3, -1); + Companion_getInstance_941(); + } + function _get_$cachedSerializer__te6jhj_100($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KModuleAuthorBadgeType$Companion$values$delegate$lambda() { + return listOf_0([KModuleAuthorBadgeType_NONE_getInstance(), KModuleAuthorBadgeType_THREE_POINT_getInstance(), KModuleAuthorBadgeType_BUTTON_getInstance(), KModuleAuthorBadgeType_WEIGHT_getInstance()]); + } + function KModuleAuthorBadgeType$Companion$_anonymous__kv9nis() { + return $serializer_getInstance_929(); + } + var KModuleAuthorBadgeType_NONE_instance; + var KModuleAuthorBadgeType_THREE_POINT_instance; + var KModuleAuthorBadgeType_BUTTON_instance; + var KModuleAuthorBadgeType_WEIGHT_instance; + var KModuleAuthorBadgeType_UNRECOGNIZED_instance; + var Companion_instance_942; + function Companion_getInstance_942() { + KModuleAuthorBadgeType_initEntries(); + if (Companion_instance_942 === VOID) + new Companion_942(); + return Companion_instance_942; + } + var $serializer_instance_929; + function $serializer_getInstance_929() { + KModuleAuthorBadgeType_initEntries(); + if ($serializer_instance_929 === VOID) + new $serializer_929(); + return $serializer_instance_929; + } + function values_100() { + return [KModuleAuthorBadgeType_NONE_getInstance(), KModuleAuthorBadgeType_THREE_POINT_getInstance(), KModuleAuthorBadgeType_BUTTON_getInstance(), KModuleAuthorBadgeType_WEIGHT_getInstance(), KModuleAuthorBadgeType_UNRECOGNIZED_getInstance()]; + } + function valueOf_100(value) { + switch (value) { + case 'NONE': + return KModuleAuthorBadgeType_NONE_getInstance(); + case 'THREE_POINT': + return KModuleAuthorBadgeType_THREE_POINT_getInstance(); + case 'BUTTON': + return KModuleAuthorBadgeType_BUTTON_getInstance(); + case 'WEIGHT': + return KModuleAuthorBadgeType_WEIGHT_getInstance(); + case 'UNRECOGNIZED': + return KModuleAuthorBadgeType_UNRECOGNIZED_getInstance(); + default: + KModuleAuthorBadgeType_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KModuleAuthorBadgeType_entriesInitialized; + function KModuleAuthorBadgeType_initEntries() { + if (KModuleAuthorBadgeType_entriesInitialized) + return Unit_instance; + KModuleAuthorBadgeType_entriesInitialized = true; + KModuleAuthorBadgeType_NONE_instance = new KModuleAuthorBadgeType('NONE', 0, 0); + KModuleAuthorBadgeType_THREE_POINT_instance = new KModuleAuthorBadgeType('THREE_POINT', 1, 1); + KModuleAuthorBadgeType_BUTTON_instance = new KModuleAuthorBadgeType('BUTTON', 2, 2); + KModuleAuthorBadgeType_WEIGHT_instance = new KModuleAuthorBadgeType('WEIGHT', 3, 3); + KModuleAuthorBadgeType_UNRECOGNIZED_instance = new KModuleAuthorBadgeType('UNRECOGNIZED', 4, -1); + Companion_getInstance_942(); + } + function _get_$cachedSerializer__te6jhj_101($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KRelationStatus$Companion$values$delegate$lambda() { + return listOf_0([KRelationStatus_NONE_getInstance(), KRelationStatus_NOFOLLOW_getInstance(), KRelationStatus_FOLLOW_getInstance(), KRelationStatus_FOLLOWED_getInstance(), KRelationStatus_MUTUAL_CONCERN_getInstance(), KRelationStatus_SPECIAL_getInstance()]); + } + function KRelationStatus$Companion$_anonymous__p1t22y() { + return $serializer_getInstance_930(); + } + var KRelationStatus_NONE_instance; + var KRelationStatus_NOFOLLOW_instance; + var KRelationStatus_FOLLOW_instance; + var KRelationStatus_FOLLOWED_instance; + var KRelationStatus_MUTUAL_CONCERN_instance; + var KRelationStatus_SPECIAL_instance; + var KRelationStatus_UNRECOGNIZED_instance; + var Companion_instance_943; + function Companion_getInstance_943() { + KRelationStatus_initEntries(); + if (Companion_instance_943 === VOID) + new Companion_943(); + return Companion_instance_943; + } + var $serializer_instance_930; + function $serializer_getInstance_930() { + KRelationStatus_initEntries(); + if ($serializer_instance_930 === VOID) + new $serializer_930(); + return $serializer_instance_930; + } + function values_101() { + return [KRelationStatus_NONE_getInstance(), KRelationStatus_NOFOLLOW_getInstance(), KRelationStatus_FOLLOW_getInstance(), KRelationStatus_FOLLOWED_getInstance(), KRelationStatus_MUTUAL_CONCERN_getInstance(), KRelationStatus_SPECIAL_getInstance(), KRelationStatus_UNRECOGNIZED_getInstance()]; + } + function valueOf_101(value) { + switch (value) { + case 'NONE': + return KRelationStatus_NONE_getInstance(); + case 'NOFOLLOW': + return KRelationStatus_NOFOLLOW_getInstance(); + case 'FOLLOW': + return KRelationStatus_FOLLOW_getInstance(); + case 'FOLLOWED': + return KRelationStatus_FOLLOWED_getInstance(); + case 'MUTUAL_CONCERN': + return KRelationStatus_MUTUAL_CONCERN_getInstance(); + case 'SPECIAL': + return KRelationStatus_SPECIAL_getInstance(); + case 'UNRECOGNIZED': + return KRelationStatus_UNRECOGNIZED_getInstance(); + default: + KRelationStatus_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KRelationStatus_entriesInitialized; + function KRelationStatus_initEntries() { + if (KRelationStatus_entriesInitialized) + return Unit_instance; + KRelationStatus_entriesInitialized = true; + KRelationStatus_NONE_instance = new KRelationStatus('NONE', 0, 0); + KRelationStatus_NOFOLLOW_instance = new KRelationStatus('NOFOLLOW', 1, 1); + KRelationStatus_FOLLOW_instance = new KRelationStatus('FOLLOW', 2, 2); + KRelationStatus_FOLLOWED_instance = new KRelationStatus('FOLLOWED', 3, 3); + KRelationStatus_MUTUAL_CONCERN_instance = new KRelationStatus('MUTUAL_CONCERN', 4, 4); + KRelationStatus_SPECIAL_instance = new KRelationStatus('SPECIAL', 5, 5); + KRelationStatus_UNRECOGNIZED_instance = new KRelationStatus('UNRECOGNIZED', 6, -1); + Companion_getInstance_943(); + } + function _get_$cachedSerializer__te6jhj_102($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KWeightType$Companion$values$delegate$lambda() { + return listOf_0([KWeightType_WEIGHT_NONE_getInstance(), KWeightType_WEIGHT_DISLIKE_getInstance(), KWeightType_WEIGHT_JUMP_getInstance()]); + } + function KWeightType$Companion$_anonymous__wctng2() { + return $serializer_getInstance_931(); + } + var KWeightType_WEIGHT_NONE_instance; + var KWeightType_WEIGHT_DISLIKE_instance; + var KWeightType_WEIGHT_JUMP_instance; + var KWeightType_UNRECOGNIZED_instance; + var Companion_instance_944; + function Companion_getInstance_944() { + KWeightType_initEntries(); + if (Companion_instance_944 === VOID) + new Companion_944(); + return Companion_instance_944; + } + var $serializer_instance_931; + function $serializer_getInstance_931() { + KWeightType_initEntries(); + if ($serializer_instance_931 === VOID) + new $serializer_931(); + return $serializer_instance_931; + } + function values_102() { + return [KWeightType_WEIGHT_NONE_getInstance(), KWeightType_WEIGHT_DISLIKE_getInstance(), KWeightType_WEIGHT_JUMP_getInstance(), KWeightType_UNRECOGNIZED_getInstance()]; + } + function valueOf_102(value) { + switch (value) { + case 'WEIGHT_NONE': + return KWeightType_WEIGHT_NONE_getInstance(); + case 'WEIGHT_DISLIKE': + return KWeightType_WEIGHT_DISLIKE_getInstance(); + case 'WEIGHT_JUMP': + return KWeightType_WEIGHT_JUMP_getInstance(); + case 'UNRECOGNIZED': + return KWeightType_UNRECOGNIZED_getInstance(); + default: + KWeightType_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KWeightType_entriesInitialized; + function KWeightType_initEntries() { + if (KWeightType_entriesInitialized) + return Unit_instance; + KWeightType_entriesInitialized = true; + KWeightType_WEIGHT_NONE_instance = new KWeightType('WEIGHT_NONE', 0, 0); + KWeightType_WEIGHT_DISLIKE_instance = new KWeightType('WEIGHT_DISLIKE', 1, 1); + KWeightType_WEIGHT_JUMP_instance = new KWeightType('WEIGHT_JUMP', 2, 2); + KWeightType_UNRECOGNIZED_instance = new KWeightType('UNRECOGNIZED', 3, -1); + Companion_getInstance_944(); + } + function _get_$cachedSerializer__te6jhj_103($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KThreePointType$Companion$values$delegate$lambda() { + return listOf_0([KThreePointType_TP_NONE_getInstance(), KThreePointType_BACKGROUND_getInstance(), KThreePointType_AUTO_PLAY_getInstance(), KThreePointType_SHARE_getInstance(), KThreePointType_WAIT_getInstance(), KThreePointType_ATTENTION_getInstance(), KThreePointType_REPORT_getInstance(), KThreePointType_DELETE_getInstance(), KThreePointType_DISLIKE_getInstance(), KThreePointType_FAVORITE_getInstance(), KThreePointType_TOP_getInstance(), KThreePointType_COMMENT_getInstance(), KThreePointType_HIDE_getInstance(), KThreePointType_CAMPUS_DELETE_getInstance(), KThreePointType_TOPIC_IRRELEVANT_getInstance(), KThreePointType_BATCH_CANCEL_getInstance(), KThreePointType_TOPIC_SET_CANCEL_getInstance(), KThreePointType_DYNAMIC_EDIT_getInstance(), KThreePointType_CREATE_VIDEO_getInstance(), KThreePointType_COIN_getInstance(), KThreePointType_OGV_SUBSCRIBE_getInstance()]); + } + function KThreePointType$Companion$_anonymous__40m4t4() { + return $serializer_getInstance_932(); + } + var KThreePointType_TP_NONE_instance; + var KThreePointType_BACKGROUND_instance; + var KThreePointType_AUTO_PLAY_instance; + var KThreePointType_SHARE_instance; + var KThreePointType_WAIT_instance; + var KThreePointType_ATTENTION_instance; + var KThreePointType_REPORT_instance; + var KThreePointType_DELETE_instance; + var KThreePointType_DISLIKE_instance; + var KThreePointType_FAVORITE_instance; + var KThreePointType_TOP_instance; + var KThreePointType_COMMENT_instance; + var KThreePointType_HIDE_instance; + var KThreePointType_CAMPUS_DELETE_instance; + var KThreePointType_TOPIC_IRRELEVANT_instance; + var KThreePointType_BATCH_CANCEL_instance; + var KThreePointType_TOPIC_SET_CANCEL_instance; + var KThreePointType_DYNAMIC_EDIT_instance; + var KThreePointType_CREATE_VIDEO_instance; + var KThreePointType_COIN_instance; + var KThreePointType_OGV_SUBSCRIBE_instance; + var KThreePointType_UNRECOGNIZED_instance; + var Companion_instance_945; + function Companion_getInstance_945() { + KThreePointType_initEntries(); + if (Companion_instance_945 === VOID) + new Companion_945(); + return Companion_instance_945; + } + var $serializer_instance_932; + function $serializer_getInstance_932() { + KThreePointType_initEntries(); + if ($serializer_instance_932 === VOID) + new $serializer_932(); + return $serializer_instance_932; + } + function values_103() { + return [KThreePointType_TP_NONE_getInstance(), KThreePointType_BACKGROUND_getInstance(), KThreePointType_AUTO_PLAY_getInstance(), KThreePointType_SHARE_getInstance(), KThreePointType_WAIT_getInstance(), KThreePointType_ATTENTION_getInstance(), KThreePointType_REPORT_getInstance(), KThreePointType_DELETE_getInstance(), KThreePointType_DISLIKE_getInstance(), KThreePointType_FAVORITE_getInstance(), KThreePointType_TOP_getInstance(), KThreePointType_COMMENT_getInstance(), KThreePointType_HIDE_getInstance(), KThreePointType_CAMPUS_DELETE_getInstance(), KThreePointType_TOPIC_IRRELEVANT_getInstance(), KThreePointType_BATCH_CANCEL_getInstance(), KThreePointType_TOPIC_SET_CANCEL_getInstance(), KThreePointType_DYNAMIC_EDIT_getInstance(), KThreePointType_CREATE_VIDEO_getInstance(), KThreePointType_COIN_getInstance(), KThreePointType_OGV_SUBSCRIBE_getInstance(), KThreePointType_UNRECOGNIZED_getInstance()]; + } + function valueOf_103(value) { + switch (value) { + case 'TP_NONE': + return KThreePointType_TP_NONE_getInstance(); + case 'BACKGROUND': + return KThreePointType_BACKGROUND_getInstance(); + case 'AUTO_PLAY': + return KThreePointType_AUTO_PLAY_getInstance(); + case 'SHARE': + return KThreePointType_SHARE_getInstance(); + case 'WAIT': + return KThreePointType_WAIT_getInstance(); + case 'ATTENTION': + return KThreePointType_ATTENTION_getInstance(); + case 'REPORT': + return KThreePointType_REPORT_getInstance(); + case 'DELETE': + return KThreePointType_DELETE_getInstance(); + case 'DISLIKE': + return KThreePointType_DISLIKE_getInstance(); + case 'FAVORITE': + return KThreePointType_FAVORITE_getInstance(); + case 'TOP': + return KThreePointType_TOP_getInstance(); + case 'COMMENT': + return KThreePointType_COMMENT_getInstance(); + case 'HIDE': + return KThreePointType_HIDE_getInstance(); + case 'CAMPUS_DELETE': + return KThreePointType_CAMPUS_DELETE_getInstance(); + case 'TOPIC_IRRELEVANT': + return KThreePointType_TOPIC_IRRELEVANT_getInstance(); + case 'BATCH_CANCEL': + return KThreePointType_BATCH_CANCEL_getInstance(); + case 'TOPIC_SET_CANCEL': + return KThreePointType_TOPIC_SET_CANCEL_getInstance(); + case 'DYNAMIC_EDIT': + return KThreePointType_DYNAMIC_EDIT_getInstance(); + case 'CREATE_VIDEO': + return KThreePointType_CREATE_VIDEO_getInstance(); + case 'COIN': + return KThreePointType_COIN_getInstance(); + case 'OGV_SUBSCRIBE': + return KThreePointType_OGV_SUBSCRIBE_getInstance(); + case 'UNRECOGNIZED': + return KThreePointType_UNRECOGNIZED_getInstance(); + default: + KThreePointType_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KThreePointType_entriesInitialized; + function KThreePointType_initEntries() { + if (KThreePointType_entriesInitialized) + return Unit_instance; + KThreePointType_entriesInitialized = true; + KThreePointType_TP_NONE_instance = new KThreePointType('TP_NONE', 0, 0); + KThreePointType_BACKGROUND_instance = new KThreePointType('BACKGROUND', 1, 1); + KThreePointType_AUTO_PLAY_instance = new KThreePointType('AUTO_PLAY', 2, 2); + KThreePointType_SHARE_instance = new KThreePointType('SHARE', 3, 3); + KThreePointType_WAIT_instance = new KThreePointType('WAIT', 4, 4); + KThreePointType_ATTENTION_instance = new KThreePointType('ATTENTION', 5, 5); + KThreePointType_REPORT_instance = new KThreePointType('REPORT', 6, 6); + KThreePointType_DELETE_instance = new KThreePointType('DELETE', 7, 7); + KThreePointType_DISLIKE_instance = new KThreePointType('DISLIKE', 8, 8); + KThreePointType_FAVORITE_instance = new KThreePointType('FAVORITE', 9, 9); + KThreePointType_TOP_instance = new KThreePointType('TOP', 10, 10); + KThreePointType_COMMENT_instance = new KThreePointType('COMMENT', 11, 11); + KThreePointType_HIDE_instance = new KThreePointType('HIDE', 12, 12); + KThreePointType_CAMPUS_DELETE_instance = new KThreePointType('CAMPUS_DELETE', 13, 13); + KThreePointType_TOPIC_IRRELEVANT_instance = new KThreePointType('TOPIC_IRRELEVANT', 14, 14); + KThreePointType_BATCH_CANCEL_instance = new KThreePointType('BATCH_CANCEL', 15, 15); + KThreePointType_TOPIC_SET_CANCEL_instance = new KThreePointType('TOPIC_SET_CANCEL', 16, 16); + KThreePointType_DYNAMIC_EDIT_instance = new KThreePointType('DYNAMIC_EDIT', 17, 17); + KThreePointType_CREATE_VIDEO_instance = new KThreePointType('CREATE_VIDEO', 18, 18); + KThreePointType_COIN_instance = new KThreePointType('COIN', 19, 19); + KThreePointType_OGV_SUBSCRIBE_instance = new KThreePointType('OGV_SUBSCRIBE', 20, 20); + KThreePointType_UNRECOGNIZED_instance = new KThreePointType('UNRECOGNIZED', 21, -1); + Companion_getInstance_945(); + } + function _get_$cachedSerializer__te6jhj_104($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KThreePointAttentionStatus$Companion$values$delegate$lambda() { + return listOf_0([KThreePointAttentionStatus_TP_NOT_ATTENTION_getInstance(), KThreePointAttentionStatus_TP_ATTENTION_getInstance()]); + } + function KThreePointAttentionStatus$Companion$_anonymous__kh76pw() { + return $serializer_getInstance_933(); + } + var KThreePointAttentionStatus_TP_NOT_ATTENTION_instance; + var KThreePointAttentionStatus_TP_ATTENTION_instance; + var KThreePointAttentionStatus_UNRECOGNIZED_instance; + var Companion_instance_946; + function Companion_getInstance_946() { + KThreePointAttentionStatus_initEntries(); + if (Companion_instance_946 === VOID) + new Companion_946(); + return Companion_instance_946; + } + var $serializer_instance_933; + function $serializer_getInstance_933() { + KThreePointAttentionStatus_initEntries(); + if ($serializer_instance_933 === VOID) + new $serializer_933(); + return $serializer_instance_933; + } + function values_104() { + return [KThreePointAttentionStatus_TP_NOT_ATTENTION_getInstance(), KThreePointAttentionStatus_TP_ATTENTION_getInstance(), KThreePointAttentionStatus_UNRECOGNIZED_getInstance()]; + } + function valueOf_104(value) { + switch (value) { + case 'TP_NOT_ATTENTION': + return KThreePointAttentionStatus_TP_NOT_ATTENTION_getInstance(); + case 'TP_ATTENTION': + return KThreePointAttentionStatus_TP_ATTENTION_getInstance(); + case 'UNRECOGNIZED': + return KThreePointAttentionStatus_UNRECOGNIZED_getInstance(); + default: + KThreePointAttentionStatus_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KThreePointAttentionStatus_entriesInitialized; + function KThreePointAttentionStatus_initEntries() { + if (KThreePointAttentionStatus_entriesInitialized) + return Unit_instance; + KThreePointAttentionStatus_entriesInitialized = true; + KThreePointAttentionStatus_TP_NOT_ATTENTION_instance = new KThreePointAttentionStatus('TP_NOT_ATTENTION', 0, 0); + KThreePointAttentionStatus_TP_ATTENTION_instance = new KThreePointAttentionStatus('TP_ATTENTION', 1, 1); + KThreePointAttentionStatus_UNRECOGNIZED_instance = new KThreePointAttentionStatus('UNRECOGNIZED', 2, -1); + Companion_getInstance_946(); + } + function _get_$cachedSerializer__te6jhj_105($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KTopType$Companion$values$delegate$lambda() { + return listOf_0([KTopType_TOP_NONE_getInstance(), KTopType_TOP_CANCEL_getInstance()]); + } + function KTopType$Companion$_anonymous__m4sr4b() { + return $serializer_getInstance_934(); + } + var KTopType_TOP_NONE_instance; + var KTopType_TOP_CANCEL_instance; + var KTopType_UNRECOGNIZED_instance; + var Companion_instance_947; + function Companion_getInstance_947() { + KTopType_initEntries(); + if (Companion_instance_947 === VOID) + new Companion_947(); + return Companion_instance_947; + } + var $serializer_instance_934; + function $serializer_getInstance_934() { + KTopType_initEntries(); + if ($serializer_instance_934 === VOID) + new $serializer_934(); + return $serializer_instance_934; + } + function values_105() { + return [KTopType_TOP_NONE_getInstance(), KTopType_TOP_CANCEL_getInstance(), KTopType_UNRECOGNIZED_getInstance()]; + } + function valueOf_105(value) { + switch (value) { + case 'TOP_NONE': + return KTopType_TOP_NONE_getInstance(); + case 'TOP_CANCEL': + return KTopType_TOP_CANCEL_getInstance(); + case 'UNRECOGNIZED': + return KTopType_UNRECOGNIZED_getInstance(); + default: + KTopType_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KTopType_entriesInitialized; + function KTopType_initEntries() { + if (KTopType_entriesInitialized) + return Unit_instance; + KTopType_entriesInitialized = true; + KTopType_TOP_NONE_instance = new KTopType('TOP_NONE', 0, 0); + KTopType_TOP_CANCEL_instance = new KTopType('TOP_CANCEL', 1, 1); + KTopType_UNRECOGNIZED_instance = new KTopType('UNRECOGNIZED', 2, -1); + Companion_getInstance_947(); + } + function _get_$cachedSerializer__te6jhj_106($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KModuleDynamicType$Companion$values$delegate$lambda() { + return listOf_0([KModuleDynamicType_MDL_DYN_ARCHIVE_getInstance(), KModuleDynamicType_MDL_DYN_PGC_getInstance(), KModuleDynamicType_MDL_DYN_COUR_SEASON_getInstance(), KModuleDynamicType_MDL_DYN_COUR_BATCH_getInstance(), KModuleDynamicType_MDL_DYN_FORWARD_getInstance(), KModuleDynamicType_MDL_DYN_DRAW_getInstance(), KModuleDynamicType_MDL_DYN_ARTICLE_getInstance(), KModuleDynamicType_MDL_DYN_MUSIC_getInstance(), KModuleDynamicType_MDL_DYN_COMMON_getInstance(), KModuleDynamicType_MDL_DYN_LIVE_getInstance(), KModuleDynamicType_MDL_DYN_MEDIALIST_getInstance(), KModuleDynamicType_MDL_DYN_APPLET_getInstance(), KModuleDynamicType_MDL_DYN_SUBSCRIPTION_getInstance(), KModuleDynamicType_MDL_DYN_LIVE_RCMD_getInstance(), KModuleDynamicType_MDL_DYN_UGC_SEASON_getInstance(), KModuleDynamicType_MDL_DYN_SUBSCRIPTION_NEW_getInstance(), KModuleDynamicType_MDL_DYN_COUR_UP_getInstance(), KModuleDynamicType_MDL_DYN_TOPIC_SET_getInstance()]); + } + function KModuleDynamicType$Companion$_anonymous__zbiocz() { + return $serializer_getInstance_935(); + } + var KModuleDynamicType_MDL_DYN_ARCHIVE_instance; + var KModuleDynamicType_MDL_DYN_PGC_instance; + var KModuleDynamicType_MDL_DYN_COUR_SEASON_instance; + var KModuleDynamicType_MDL_DYN_COUR_BATCH_instance; + var KModuleDynamicType_MDL_DYN_FORWARD_instance; + var KModuleDynamicType_MDL_DYN_DRAW_instance; + var KModuleDynamicType_MDL_DYN_ARTICLE_instance; + var KModuleDynamicType_MDL_DYN_MUSIC_instance; + var KModuleDynamicType_MDL_DYN_COMMON_instance; + var KModuleDynamicType_MDL_DYN_LIVE_instance; + var KModuleDynamicType_MDL_DYN_MEDIALIST_instance; + var KModuleDynamicType_MDL_DYN_APPLET_instance; + var KModuleDynamicType_MDL_DYN_SUBSCRIPTION_instance; + var KModuleDynamicType_MDL_DYN_LIVE_RCMD_instance; + var KModuleDynamicType_MDL_DYN_UGC_SEASON_instance; + var KModuleDynamicType_MDL_DYN_SUBSCRIPTION_NEW_instance; + var KModuleDynamicType_MDL_DYN_COUR_UP_instance; + var KModuleDynamicType_MDL_DYN_TOPIC_SET_instance; + var KModuleDynamicType_UNRECOGNIZED_instance; + var Companion_instance_948; + function Companion_getInstance_948() { + KModuleDynamicType_initEntries(); + if (Companion_instance_948 === VOID) + new Companion_948(); + return Companion_instance_948; + } + var $serializer_instance_935; + function $serializer_getInstance_935() { + KModuleDynamicType_initEntries(); + if ($serializer_instance_935 === VOID) + new $serializer_935(); + return $serializer_instance_935; + } + function values_106() { + return [KModuleDynamicType_MDL_DYN_ARCHIVE_getInstance(), KModuleDynamicType_MDL_DYN_PGC_getInstance(), KModuleDynamicType_MDL_DYN_COUR_SEASON_getInstance(), KModuleDynamicType_MDL_DYN_COUR_BATCH_getInstance(), KModuleDynamicType_MDL_DYN_FORWARD_getInstance(), KModuleDynamicType_MDL_DYN_DRAW_getInstance(), KModuleDynamicType_MDL_DYN_ARTICLE_getInstance(), KModuleDynamicType_MDL_DYN_MUSIC_getInstance(), KModuleDynamicType_MDL_DYN_COMMON_getInstance(), KModuleDynamicType_MDL_DYN_LIVE_getInstance(), KModuleDynamicType_MDL_DYN_MEDIALIST_getInstance(), KModuleDynamicType_MDL_DYN_APPLET_getInstance(), KModuleDynamicType_MDL_DYN_SUBSCRIPTION_getInstance(), KModuleDynamicType_MDL_DYN_LIVE_RCMD_getInstance(), KModuleDynamicType_MDL_DYN_UGC_SEASON_getInstance(), KModuleDynamicType_MDL_DYN_SUBSCRIPTION_NEW_getInstance(), KModuleDynamicType_MDL_DYN_COUR_UP_getInstance(), KModuleDynamicType_MDL_DYN_TOPIC_SET_getInstance(), KModuleDynamicType_UNRECOGNIZED_getInstance()]; + } + function valueOf_106(value) { + switch (value) { + case 'MDL_DYN_ARCHIVE': + return KModuleDynamicType_MDL_DYN_ARCHIVE_getInstance(); + case 'MDL_DYN_PGC': + return KModuleDynamicType_MDL_DYN_PGC_getInstance(); + case 'MDL_DYN_COUR_SEASON': + return KModuleDynamicType_MDL_DYN_COUR_SEASON_getInstance(); + case 'MDL_DYN_COUR_BATCH': + return KModuleDynamicType_MDL_DYN_COUR_BATCH_getInstance(); + case 'MDL_DYN_FORWARD': + return KModuleDynamicType_MDL_DYN_FORWARD_getInstance(); + case 'MDL_DYN_DRAW': + return KModuleDynamicType_MDL_DYN_DRAW_getInstance(); + case 'MDL_DYN_ARTICLE': + return KModuleDynamicType_MDL_DYN_ARTICLE_getInstance(); + case 'MDL_DYN_MUSIC': + return KModuleDynamicType_MDL_DYN_MUSIC_getInstance(); + case 'MDL_DYN_COMMON': + return KModuleDynamicType_MDL_DYN_COMMON_getInstance(); + case 'MDL_DYN_LIVE': + return KModuleDynamicType_MDL_DYN_LIVE_getInstance(); + case 'MDL_DYN_MEDIALIST': + return KModuleDynamicType_MDL_DYN_MEDIALIST_getInstance(); + case 'MDL_DYN_APPLET': + return KModuleDynamicType_MDL_DYN_APPLET_getInstance(); + case 'MDL_DYN_SUBSCRIPTION': + return KModuleDynamicType_MDL_DYN_SUBSCRIPTION_getInstance(); + case 'MDL_DYN_LIVE_RCMD': + return KModuleDynamicType_MDL_DYN_LIVE_RCMD_getInstance(); + case 'MDL_DYN_UGC_SEASON': + return KModuleDynamicType_MDL_DYN_UGC_SEASON_getInstance(); + case 'MDL_DYN_SUBSCRIPTION_NEW': + return KModuleDynamicType_MDL_DYN_SUBSCRIPTION_NEW_getInstance(); + case 'MDL_DYN_COUR_UP': + return KModuleDynamicType_MDL_DYN_COUR_UP_getInstance(); + case 'MDL_DYN_TOPIC_SET': + return KModuleDynamicType_MDL_DYN_TOPIC_SET_getInstance(); + case 'UNRECOGNIZED': + return KModuleDynamicType_UNRECOGNIZED_getInstance(); + default: + KModuleDynamicType_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KModuleDynamicType_entriesInitialized; + function KModuleDynamicType_initEntries() { + if (KModuleDynamicType_entriesInitialized) + return Unit_instance; + KModuleDynamicType_entriesInitialized = true; + KModuleDynamicType_MDL_DYN_ARCHIVE_instance = new KModuleDynamicType('MDL_DYN_ARCHIVE', 0, 0); + KModuleDynamicType_MDL_DYN_PGC_instance = new KModuleDynamicType('MDL_DYN_PGC', 1, 1); + KModuleDynamicType_MDL_DYN_COUR_SEASON_instance = new KModuleDynamicType('MDL_DYN_COUR_SEASON', 2, 2); + KModuleDynamicType_MDL_DYN_COUR_BATCH_instance = new KModuleDynamicType('MDL_DYN_COUR_BATCH', 3, 3); + KModuleDynamicType_MDL_DYN_FORWARD_instance = new KModuleDynamicType('MDL_DYN_FORWARD', 4, 4); + KModuleDynamicType_MDL_DYN_DRAW_instance = new KModuleDynamicType('MDL_DYN_DRAW', 5, 5); + KModuleDynamicType_MDL_DYN_ARTICLE_instance = new KModuleDynamicType('MDL_DYN_ARTICLE', 6, 6); + KModuleDynamicType_MDL_DYN_MUSIC_instance = new KModuleDynamicType('MDL_DYN_MUSIC', 7, 7); + KModuleDynamicType_MDL_DYN_COMMON_instance = new KModuleDynamicType('MDL_DYN_COMMON', 8, 8); + KModuleDynamicType_MDL_DYN_LIVE_instance = new KModuleDynamicType('MDL_DYN_LIVE', 9, 9); + KModuleDynamicType_MDL_DYN_MEDIALIST_instance = new KModuleDynamicType('MDL_DYN_MEDIALIST', 10, 10); + KModuleDynamicType_MDL_DYN_APPLET_instance = new KModuleDynamicType('MDL_DYN_APPLET', 11, 11); + KModuleDynamicType_MDL_DYN_SUBSCRIPTION_instance = new KModuleDynamicType('MDL_DYN_SUBSCRIPTION', 12, 12); + KModuleDynamicType_MDL_DYN_LIVE_RCMD_instance = new KModuleDynamicType('MDL_DYN_LIVE_RCMD', 13, 13); + KModuleDynamicType_MDL_DYN_UGC_SEASON_instance = new KModuleDynamicType('MDL_DYN_UGC_SEASON', 14, 14); + KModuleDynamicType_MDL_DYN_SUBSCRIPTION_NEW_instance = new KModuleDynamicType('MDL_DYN_SUBSCRIPTION_NEW', 15, 15); + KModuleDynamicType_MDL_DYN_COUR_UP_instance = new KModuleDynamicType('MDL_DYN_COUR_UP', 16, 16); + KModuleDynamicType_MDL_DYN_TOPIC_SET_instance = new KModuleDynamicType('MDL_DYN_TOPIC_SET', 17, 17); + KModuleDynamicType_UNRECOGNIZED_instance = new KModuleDynamicType('UNRECOGNIZED', 18, -1); + Companion_getInstance_948(); + } + function _get_$cachedSerializer__te6jhj_107($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KDynExtendType$Companion$values$delegate$lambda() { + return listOf_0([KDynExtendType_DYN_EXT_TYPE_NONE_getInstance(), KDynExtendType_DYN_EXT_TYPE_TOPIC_getInstance(), KDynExtendType_DYN_EXT_TYPE_LBS_getInstance(), KDynExtendType_DYN_EXT_TYPE_HOT_getInstance(), KDynExtendType_DYN_EXT_TYPE_GAME_getInstance(), KDynExtendType_DYN_EXT_TYPE_COMMON_getInstance(), KDynExtendType_DYN_EXT_TYPE_BILI_CUT_getInstance(), KDynExtendType_DYN_EXT_TYPE_OGV_getInstance(), KDynExtendType_DYN_EXT_TYPE_AUTO_OGV_getInstance()]); + } + function KDynExtendType$Companion$_anonymous__h29xil() { + return $serializer_getInstance_936(); + } + var KDynExtendType_DYN_EXT_TYPE_NONE_instance; + var KDynExtendType_DYN_EXT_TYPE_TOPIC_instance; + var KDynExtendType_DYN_EXT_TYPE_LBS_instance; + var KDynExtendType_DYN_EXT_TYPE_HOT_instance; + var KDynExtendType_DYN_EXT_TYPE_GAME_instance; + var KDynExtendType_DYN_EXT_TYPE_COMMON_instance; + var KDynExtendType_DYN_EXT_TYPE_BILI_CUT_instance; + var KDynExtendType_DYN_EXT_TYPE_OGV_instance; + var KDynExtendType_DYN_EXT_TYPE_AUTO_OGV_instance; + var KDynExtendType_UNRECOGNIZED_instance; + var Companion_instance_949; + function Companion_getInstance_949() { + KDynExtendType_initEntries(); + if (Companion_instance_949 === VOID) + new Companion_949(); + return Companion_instance_949; + } + var $serializer_instance_936; + function $serializer_getInstance_936() { + KDynExtendType_initEntries(); + if ($serializer_instance_936 === VOID) + new $serializer_936(); + return $serializer_instance_936; + } + function values_107() { + return [KDynExtendType_DYN_EXT_TYPE_NONE_getInstance(), KDynExtendType_DYN_EXT_TYPE_TOPIC_getInstance(), KDynExtendType_DYN_EXT_TYPE_LBS_getInstance(), KDynExtendType_DYN_EXT_TYPE_HOT_getInstance(), KDynExtendType_DYN_EXT_TYPE_GAME_getInstance(), KDynExtendType_DYN_EXT_TYPE_COMMON_getInstance(), KDynExtendType_DYN_EXT_TYPE_BILI_CUT_getInstance(), KDynExtendType_DYN_EXT_TYPE_OGV_getInstance(), KDynExtendType_DYN_EXT_TYPE_AUTO_OGV_getInstance(), KDynExtendType_UNRECOGNIZED_getInstance()]; + } + function valueOf_107(value) { + switch (value) { + case 'DYN_EXT_TYPE_NONE': + return KDynExtendType_DYN_EXT_TYPE_NONE_getInstance(); + case 'DYN_EXT_TYPE_TOPIC': + return KDynExtendType_DYN_EXT_TYPE_TOPIC_getInstance(); + case 'DYN_EXT_TYPE_LBS': + return KDynExtendType_DYN_EXT_TYPE_LBS_getInstance(); + case 'DYN_EXT_TYPE_HOT': + return KDynExtendType_DYN_EXT_TYPE_HOT_getInstance(); + case 'DYN_EXT_TYPE_GAME': + return KDynExtendType_DYN_EXT_TYPE_GAME_getInstance(); + case 'DYN_EXT_TYPE_COMMON': + return KDynExtendType_DYN_EXT_TYPE_COMMON_getInstance(); + case 'DYN_EXT_TYPE_BILI_CUT': + return KDynExtendType_DYN_EXT_TYPE_BILI_CUT_getInstance(); + case 'DYN_EXT_TYPE_OGV': + return KDynExtendType_DYN_EXT_TYPE_OGV_getInstance(); + case 'DYN_EXT_TYPE_AUTO_OGV': + return KDynExtendType_DYN_EXT_TYPE_AUTO_OGV_getInstance(); + case 'UNRECOGNIZED': + return KDynExtendType_UNRECOGNIZED_getInstance(); + default: + KDynExtendType_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KDynExtendType_entriesInitialized; + function KDynExtendType_initEntries() { + if (KDynExtendType_entriesInitialized) + return Unit_instance; + KDynExtendType_entriesInitialized = true; + KDynExtendType_DYN_EXT_TYPE_NONE_instance = new KDynExtendType('DYN_EXT_TYPE_NONE', 0, 0); + KDynExtendType_DYN_EXT_TYPE_TOPIC_instance = new KDynExtendType('DYN_EXT_TYPE_TOPIC', 1, 1); + KDynExtendType_DYN_EXT_TYPE_LBS_instance = new KDynExtendType('DYN_EXT_TYPE_LBS', 2, 2); + KDynExtendType_DYN_EXT_TYPE_HOT_instance = new KDynExtendType('DYN_EXT_TYPE_HOT', 3, 3); + KDynExtendType_DYN_EXT_TYPE_GAME_instance = new KDynExtendType('DYN_EXT_TYPE_GAME', 4, 4); + KDynExtendType_DYN_EXT_TYPE_COMMON_instance = new KDynExtendType('DYN_EXT_TYPE_COMMON', 5, 5); + KDynExtendType_DYN_EXT_TYPE_BILI_CUT_instance = new KDynExtendType('DYN_EXT_TYPE_BILI_CUT', 6, 6); + KDynExtendType_DYN_EXT_TYPE_OGV_instance = new KDynExtendType('DYN_EXT_TYPE_OGV', 7, 7); + KDynExtendType_DYN_EXT_TYPE_AUTO_OGV_instance = new KDynExtendType('DYN_EXT_TYPE_AUTO_OGV', 8, 8); + KDynExtendType_UNRECOGNIZED_instance = new KDynExtendType('UNRECOGNIZED', 9, -1); + Companion_getInstance_949(); + } + function _get_$cachedSerializer__te6jhj_108($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KFoldType$Companion$values$delegate$lambda() { + return listOf_0([KFoldType_ZORE_getInstance(), KFoldType_PUBLISH_getInstance(), KFoldType_FREQUENT_getInstance(), KFoldType_UNITE_getInstance(), KFoldType_LIMIT_getInstance(), KFoldType_TOPIC_MERGED_getInstance()]); + } + function KFoldType$Companion$_anonymous__ownxex() { + return $serializer_getInstance_937(); + } + var KFoldType_ZORE_instance; + var KFoldType_PUBLISH_instance; + var KFoldType_FREQUENT_instance; + var KFoldType_UNITE_instance; + var KFoldType_LIMIT_instance; + var KFoldType_TOPIC_MERGED_instance; + var KFoldType_UNRECOGNIZED_instance; + var Companion_instance_950; + function Companion_getInstance_950() { + KFoldType_initEntries(); + if (Companion_instance_950 === VOID) + new Companion_950(); + return Companion_instance_950; + } + var $serializer_instance_937; + function $serializer_getInstance_937() { + KFoldType_initEntries(); + if ($serializer_instance_937 === VOID) + new $serializer_937(); + return $serializer_instance_937; + } + function values_108() { + return [KFoldType_ZORE_getInstance(), KFoldType_PUBLISH_getInstance(), KFoldType_FREQUENT_getInstance(), KFoldType_UNITE_getInstance(), KFoldType_LIMIT_getInstance(), KFoldType_TOPIC_MERGED_getInstance(), KFoldType_UNRECOGNIZED_getInstance()]; + } + function valueOf_108(value) { + switch (value) { + case 'ZORE': + return KFoldType_ZORE_getInstance(); + case 'PUBLISH': + return KFoldType_PUBLISH_getInstance(); + case 'FREQUENT': + return KFoldType_FREQUENT_getInstance(); + case 'UNITE': + return KFoldType_UNITE_getInstance(); + case 'LIMIT': + return KFoldType_LIMIT_getInstance(); + case 'TOPIC_MERGED': + return KFoldType_TOPIC_MERGED_getInstance(); + case 'UNRECOGNIZED': + return KFoldType_UNRECOGNIZED_getInstance(); + default: + KFoldType_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KFoldType_entriesInitialized; + function KFoldType_initEntries() { + if (KFoldType_entriesInitialized) + return Unit_instance; + KFoldType_entriesInitialized = true; + KFoldType_ZORE_instance = new KFoldType('ZORE', 0, 0); + KFoldType_PUBLISH_instance = new KFoldType('PUBLISH', 1, 1); + KFoldType_FREQUENT_instance = new KFoldType('FREQUENT', 2, 2); + KFoldType_UNITE_instance = new KFoldType('UNITE', 3, 3); + KFoldType_LIMIT_instance = new KFoldType('LIMIT', 4, 4); + KFoldType_TOPIC_MERGED_instance = new KFoldType('TOPIC_MERGED', 5, 5); + KFoldType_UNRECOGNIZED_instance = new KFoldType('UNRECOGNIZED', 6, -1); + Companion_getInstance_950(); + } + function _get_$cachedSerializer__te6jhj_109($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KLocalIconType$Companion$values$delegate$lambda() { + return listOf_0([KLocalIconType_LOCAL_ICON_COMMENT_getInstance(), KLocalIconType_LOCAL_ICON_LIKE_getInstance(), KLocalIconType_LOCAL_ICON_AVATAR_getInstance(), KLocalIconType_LOCAL_ICON_COVER_getInstance(), KLocalIconType_LOCAL_ICON_LIKE_AND_FORWARD_getInstance()]); + } + function KLocalIconType$Companion$_anonymous__bins0s() { + return $serializer_getInstance_938(); + } + var KLocalIconType_LOCAL_ICON_COMMENT_instance; + var KLocalIconType_LOCAL_ICON_LIKE_instance; + var KLocalIconType_LOCAL_ICON_AVATAR_instance; + var KLocalIconType_LOCAL_ICON_COVER_instance; + var KLocalIconType_LOCAL_ICON_LIKE_AND_FORWARD_instance; + var KLocalIconType_UNRECOGNIZED_instance; + var Companion_instance_951; + function Companion_getInstance_951() { + KLocalIconType_initEntries(); + if (Companion_instance_951 === VOID) + new Companion_951(); + return Companion_instance_951; + } + var $serializer_instance_938; + function $serializer_getInstance_938() { + KLocalIconType_initEntries(); + if ($serializer_instance_938 === VOID) + new $serializer_938(); + return $serializer_instance_938; + } + function values_109() { + return [KLocalIconType_LOCAL_ICON_COMMENT_getInstance(), KLocalIconType_LOCAL_ICON_LIKE_getInstance(), KLocalIconType_LOCAL_ICON_AVATAR_getInstance(), KLocalIconType_LOCAL_ICON_COVER_getInstance(), KLocalIconType_LOCAL_ICON_LIKE_AND_FORWARD_getInstance(), KLocalIconType_UNRECOGNIZED_getInstance()]; + } + function valueOf_109(value) { + switch (value) { + case 'LOCAL_ICON_COMMENT': + return KLocalIconType_LOCAL_ICON_COMMENT_getInstance(); + case 'LOCAL_ICON_LIKE': + return KLocalIconType_LOCAL_ICON_LIKE_getInstance(); + case 'LOCAL_ICON_AVATAR': + return KLocalIconType_LOCAL_ICON_AVATAR_getInstance(); + case 'LOCAL_ICON_COVER': + return KLocalIconType_LOCAL_ICON_COVER_getInstance(); + case 'LOCAL_ICON_LIKE_AND_FORWARD': + return KLocalIconType_LOCAL_ICON_LIKE_AND_FORWARD_getInstance(); + case 'UNRECOGNIZED': + return KLocalIconType_UNRECOGNIZED_getInstance(); + default: + KLocalIconType_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KLocalIconType_entriesInitialized; + function KLocalIconType_initEntries() { + if (KLocalIconType_entriesInitialized) + return Unit_instance; + KLocalIconType_entriesInitialized = true; + KLocalIconType_LOCAL_ICON_COMMENT_instance = new KLocalIconType('LOCAL_ICON_COMMENT', 0, 0); + KLocalIconType_LOCAL_ICON_LIKE_instance = new KLocalIconType('LOCAL_ICON_LIKE', 1, 1); + KLocalIconType_LOCAL_ICON_AVATAR_instance = new KLocalIconType('LOCAL_ICON_AVATAR', 2, 2); + KLocalIconType_LOCAL_ICON_COVER_instance = new KLocalIconType('LOCAL_ICON_COVER', 3, 3); + KLocalIconType_LOCAL_ICON_LIKE_AND_FORWARD_instance = new KLocalIconType('LOCAL_ICON_LIKE_AND_FORWARD', 4, 4); + KLocalIconType_UNRECOGNIZED_instance = new KLocalIconType('UNRECOGNIZED', 5, -1); + Companion_getInstance_951(); + } + function _get_$cachedSerializer__te6jhj_110($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KModuleBannerType$Companion$values$delegate$lambda() { + return listOf_0([KModuleBannerType_NONE_getInstance(), KModuleBannerType_USER_getInstance()]); + } + function KModuleBannerType$Companion$_anonymous__tmgu0i() { + return $serializer_getInstance_939(); + } + var KModuleBannerType_NONE_instance; + var KModuleBannerType_USER_instance; + var KModuleBannerType_UNRECOGNIZED_instance; + var Companion_instance_952; + function Companion_getInstance_952() { + KModuleBannerType_initEntries(); + if (Companion_instance_952 === VOID) + new Companion_952(); + return Companion_instance_952; + } + var $serializer_instance_939; + function $serializer_getInstance_939() { + KModuleBannerType_initEntries(); + if ($serializer_instance_939 === VOID) + new $serializer_939(); + return $serializer_instance_939; + } + function values_110() { + return [KModuleBannerType_NONE_getInstance(), KModuleBannerType_USER_getInstance(), KModuleBannerType_UNRECOGNIZED_getInstance()]; + } + function valueOf_110(value) { + switch (value) { + case 'NONE': + return KModuleBannerType_NONE_getInstance(); + case 'USER': + return KModuleBannerType_USER_getInstance(); + case 'UNRECOGNIZED': + return KModuleBannerType_UNRECOGNIZED_getInstance(); + default: + KModuleBannerType_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KModuleBannerType_entriesInitialized; + function KModuleBannerType_initEntries() { + if (KModuleBannerType_entriesInitialized) + return Unit_instance; + KModuleBannerType_entriesInitialized = true; + KModuleBannerType_NONE_instance = new KModuleBannerType('NONE', 0, 0); + KModuleBannerType_USER_instance = new KModuleBannerType('USER', 1, 1); + KModuleBannerType_UNRECOGNIZED_instance = new KModuleBannerType('UNRECOGNIZED', 2, -1); + Companion_getInstance_952(); + } + function _get_$cachedSerializer__te6jhj_111($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KRcmdType$Companion$values$delegate$lambda() { + return listOf_0([KRcmdType_RCMD_ARCHIVE_getInstance(), KRcmdType_RCMD_DYNAMIC_getInstance()]); + } + function KRcmdType$Companion$_anonymous__md42si() { + return $serializer_getInstance_940(); + } + var KRcmdType_RCMD_ARCHIVE_instance; + var KRcmdType_RCMD_DYNAMIC_instance; + var KRcmdType_UNRECOGNIZED_instance; + var Companion_instance_953; + function Companion_getInstance_953() { + KRcmdType_initEntries(); + if (Companion_instance_953 === VOID) + new Companion_953(); + return Companion_instance_953; + } + var $serializer_instance_940; + function $serializer_getInstance_940() { + KRcmdType_initEntries(); + if ($serializer_instance_940 === VOID) + new $serializer_940(); + return $serializer_instance_940; + } + function values_111() { + return [KRcmdType_RCMD_ARCHIVE_getInstance(), KRcmdType_RCMD_DYNAMIC_getInstance(), KRcmdType_UNRECOGNIZED_getInstance()]; + } + function valueOf_111(value) { + switch (value) { + case 'RCMD_ARCHIVE': + return KRcmdType_RCMD_ARCHIVE_getInstance(); + case 'RCMD_DYNAMIC': + return KRcmdType_RCMD_DYNAMIC_getInstance(); + case 'UNRECOGNIZED': + return KRcmdType_UNRECOGNIZED_getInstance(); + default: + KRcmdType_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KRcmdType_entriesInitialized; + function KRcmdType_initEntries() { + if (KRcmdType_entriesInitialized) + return Unit_instance; + KRcmdType_entriesInitialized = true; + KRcmdType_RCMD_ARCHIVE_instance = new KRcmdType('RCMD_ARCHIVE', 0, 0); + KRcmdType_RCMD_DYNAMIC_instance = new KRcmdType('RCMD_DYNAMIC', 1, 1); + KRcmdType_UNRECOGNIZED_instance = new KRcmdType('UNRECOGNIZED', 2, -1); + Companion_getInstance_953(); + } + function _get_$cachedSerializer__te6jhj_112($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KMdlBlockedStyle$Companion$values$delegate$lambda() { + return listOf_0([KMdlBlockedStyle_BLOCKED_STYLE_DEFAULT_getInstance(), KMdlBlockedStyle_BLOCKED_STYLE_IN_AUDIT_getInstance(), KMdlBlockedStyle_BLOCKED_STYLE_ONLY_FANS_LIST_getInstance(), KMdlBlockedStyle_BLOCKED_STYLE_ONLY_FANS_VIDEO_getInstance()]); + } + function KMdlBlockedStyle$Companion$_anonymous__ci2oqo() { + return $serializer_getInstance_941(); + } + var KMdlBlockedStyle_BLOCKED_STYLE_DEFAULT_instance; + var KMdlBlockedStyle_BLOCKED_STYLE_IN_AUDIT_instance; + var KMdlBlockedStyle_BLOCKED_STYLE_ONLY_FANS_LIST_instance; + var KMdlBlockedStyle_BLOCKED_STYLE_ONLY_FANS_VIDEO_instance; + var KMdlBlockedStyle_UNRECOGNIZED_instance; + var Companion_instance_954; + function Companion_getInstance_954() { + KMdlBlockedStyle_initEntries(); + if (Companion_instance_954 === VOID) + new Companion_954(); + return Companion_instance_954; + } + var $serializer_instance_941; + function $serializer_getInstance_941() { + KMdlBlockedStyle_initEntries(); + if ($serializer_instance_941 === VOID) + new $serializer_941(); + return $serializer_instance_941; + } + function values_112() { + return [KMdlBlockedStyle_BLOCKED_STYLE_DEFAULT_getInstance(), KMdlBlockedStyle_BLOCKED_STYLE_IN_AUDIT_getInstance(), KMdlBlockedStyle_BLOCKED_STYLE_ONLY_FANS_LIST_getInstance(), KMdlBlockedStyle_BLOCKED_STYLE_ONLY_FANS_VIDEO_getInstance(), KMdlBlockedStyle_UNRECOGNIZED_getInstance()]; + } + function valueOf_112(value) { + switch (value) { + case 'BLOCKED_STYLE_DEFAULT': + return KMdlBlockedStyle_BLOCKED_STYLE_DEFAULT_getInstance(); + case 'BLOCKED_STYLE_IN_AUDIT': + return KMdlBlockedStyle_BLOCKED_STYLE_IN_AUDIT_getInstance(); + case 'BLOCKED_STYLE_ONLY_FANS_LIST': + return KMdlBlockedStyle_BLOCKED_STYLE_ONLY_FANS_LIST_getInstance(); + case 'BLOCKED_STYLE_ONLY_FANS_VIDEO': + return KMdlBlockedStyle_BLOCKED_STYLE_ONLY_FANS_VIDEO_getInstance(); + case 'UNRECOGNIZED': + return KMdlBlockedStyle_UNRECOGNIZED_getInstance(); + default: + KMdlBlockedStyle_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KMdlBlockedStyle_entriesInitialized; + function KMdlBlockedStyle_initEntries() { + if (KMdlBlockedStyle_entriesInitialized) + return Unit_instance; + KMdlBlockedStyle_entriesInitialized = true; + KMdlBlockedStyle_BLOCKED_STYLE_DEFAULT_instance = new KMdlBlockedStyle('BLOCKED_STYLE_DEFAULT', 0, 0); + KMdlBlockedStyle_BLOCKED_STYLE_IN_AUDIT_instance = new KMdlBlockedStyle('BLOCKED_STYLE_IN_AUDIT', 1, 1); + KMdlBlockedStyle_BLOCKED_STYLE_ONLY_FANS_LIST_instance = new KMdlBlockedStyle('BLOCKED_STYLE_ONLY_FANS_LIST', 2, 2); + KMdlBlockedStyle_BLOCKED_STYLE_ONLY_FANS_VIDEO_instance = new KMdlBlockedStyle('BLOCKED_STYLE_ONLY_FANS_VIDEO', 3, 3); + KMdlBlockedStyle_UNRECOGNIZED_instance = new KMdlBlockedStyle('UNRECOGNIZED', 4, -1); + Companion_getInstance_954(); + } + var Companion_instance_955; + function Companion_getInstance_955() { + if (Companion_instance_955 === VOID) + new Companion_955(); + return Companion_instance_955; + } + var $serializer_instance_942; + function $serializer_getInstance_942() { + if ($serializer_instance_942 === VOID) + new $serializer_942(); + return $serializer_instance_942; + } + function KModule$Companion$moduleItemValues$delegate$lambda() { + return listOf_0([KModuleAuthor_getInstance(), KModuleDispute_getInstance(), KModuleDesc_getInstance(), KModuleDynamic_getInstance(), KModuleLikeUser_getInstance(), KModuleExtend_getInstance(), KModuleAdditional_getInstance(), KModuleStat_getInstance(), KModuleFold_getInstance(), KModuleComment_getInstance(), KModuleInteraction_getInstance(), KModuleAuthorForward_getInstance(), KModuleAd_getInstance(), KModuleBanner_getInstance(), KModuleItemNull_getInstance(), KModuleShareInfo_getInstance(), KModuleRecommend_getInstance(), KModuleTop_getInstance(), KModuleButtom_getInstance(), KModuleStatForward_getInstance(), KModuleStory_getInstance(), KModuleTopic_getInstance(), KModuleTopicDetailsExt_getInstance(), KModuleTopTag_getInstance(), KModuleTopicBrief_getInstance(), KModuleTitle_getInstance(), KModuleButton_getInstance(), KModuleNotice_getInstance(), KModuleOpusSummary_getInstance(), KModuleCopyright_getInstance(), KModuleParagraph_getInstance(), KModuleBlocked_getInstance(), KModuleTextNotice_getInstance(), KModuleOpusCollection_getInstance(), KModuleOnetimeNotice_getInstance()]); + } + function _get_moduleItemNumber__nvmghp($this) { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = $this.moduleItemNumber$delegate_1; + var thisRef = $this; + var property = moduleItemNumber$factory(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + var KModuleAuthor_instance; + function KModuleAuthor_getInstance() { + if (KModuleAuthor_instance === VOID) + new KModuleAuthor(); + return KModuleAuthor_instance; + } + var KModuleDispute_instance; + function KModuleDispute_getInstance() { + if (KModuleDispute_instance === VOID) + new KModuleDispute(); + return KModuleDispute_instance; + } + var KModuleDesc_instance; + function KModuleDesc_getInstance() { + if (KModuleDesc_instance === VOID) + new KModuleDesc(); + return KModuleDesc_instance; + } + var KModuleDynamic_instance; + function KModuleDynamic_getInstance() { + if (KModuleDynamic_instance === VOID) + new KModuleDynamic(); + return KModuleDynamic_instance; + } + var KModuleLikeUser_instance; + function KModuleLikeUser_getInstance() { + if (KModuleLikeUser_instance === VOID) + new KModuleLikeUser(); + return KModuleLikeUser_instance; + } + var KModuleExtend_instance; + function KModuleExtend_getInstance() { + if (KModuleExtend_instance === VOID) + new KModuleExtend(); + return KModuleExtend_instance; + } + var KModuleAdditional_instance; + function KModuleAdditional_getInstance() { + if (KModuleAdditional_instance === VOID) + new KModuleAdditional(); + return KModuleAdditional_instance; + } + var KModuleStat_instance; + function KModuleStat_getInstance() { + if (KModuleStat_instance === VOID) + new KModuleStat(); + return KModuleStat_instance; + } + var KModuleFold_instance; + function KModuleFold_getInstance() { + if (KModuleFold_instance === VOID) + new KModuleFold(); + return KModuleFold_instance; + } + var KModuleComment_instance; + function KModuleComment_getInstance() { + if (KModuleComment_instance === VOID) + new KModuleComment(); + return KModuleComment_instance; + } + var KModuleInteraction_instance; + function KModuleInteraction_getInstance() { + if (KModuleInteraction_instance === VOID) + new KModuleInteraction(); + return KModuleInteraction_instance; + } + var KModuleAuthorForward_instance; + function KModuleAuthorForward_getInstance() { + if (KModuleAuthorForward_instance === VOID) + new KModuleAuthorForward(); + return KModuleAuthorForward_instance; + } + var KModuleAd_instance; + function KModuleAd_getInstance() { + if (KModuleAd_instance === VOID) + new KModuleAd(); + return KModuleAd_instance; + } + var KModuleBanner_instance; + function KModuleBanner_getInstance() { + if (KModuleBanner_instance === VOID) + new KModuleBanner(); + return KModuleBanner_instance; + } + var KModuleItemNull_instance; + function KModuleItemNull_getInstance() { + if (KModuleItemNull_instance === VOID) + new KModuleItemNull(); + return KModuleItemNull_instance; + } + var KModuleShareInfo_instance; + function KModuleShareInfo_getInstance() { + if (KModuleShareInfo_instance === VOID) + new KModuleShareInfo(); + return KModuleShareInfo_instance; + } + var KModuleRecommend_instance; + function KModuleRecommend_getInstance() { + if (KModuleRecommend_instance === VOID) + new KModuleRecommend(); + return KModuleRecommend_instance; + } + var KModuleTop_instance; + function KModuleTop_getInstance() { + if (KModuleTop_instance === VOID) + new KModuleTop(); + return KModuleTop_instance; + } + var KModuleButtom_instance; + function KModuleButtom_getInstance() { + if (KModuleButtom_instance === VOID) + new KModuleButtom(); + return KModuleButtom_instance; + } + var KModuleStatForward_instance; + function KModuleStatForward_getInstance() { + if (KModuleStatForward_instance === VOID) + new KModuleStatForward(); + return KModuleStatForward_instance; + } + var KModuleStory_instance; + function KModuleStory_getInstance() { + if (KModuleStory_instance === VOID) + new KModuleStory(); + return KModuleStory_instance; + } + var KModuleTopic_instance; + function KModuleTopic_getInstance() { + if (KModuleTopic_instance === VOID) + new KModuleTopic(); + return KModuleTopic_instance; + } + var KModuleTopicDetailsExt_instance; + function KModuleTopicDetailsExt_getInstance() { + if (KModuleTopicDetailsExt_instance === VOID) + new KModuleTopicDetailsExt(); + return KModuleTopicDetailsExt_instance; + } + var KModuleTopTag_instance; + function KModuleTopTag_getInstance() { + if (KModuleTopTag_instance === VOID) + new KModuleTopTag(); + return KModuleTopTag_instance; + } + var KModuleTopicBrief_instance; + function KModuleTopicBrief_getInstance() { + if (KModuleTopicBrief_instance === VOID) + new KModuleTopicBrief(); + return KModuleTopicBrief_instance; + } + var KModuleTitle_instance; + function KModuleTitle_getInstance() { + if (KModuleTitle_instance === VOID) + new KModuleTitle(); + return KModuleTitle_instance; + } + var KModuleButton_instance; + function KModuleButton_getInstance() { + if (KModuleButton_instance === VOID) + new KModuleButton(); + return KModuleButton_instance; + } + var KModuleNotice_instance; + function KModuleNotice_getInstance() { + if (KModuleNotice_instance === VOID) + new KModuleNotice(); + return KModuleNotice_instance; + } + var KModuleOpusSummary_instance; + function KModuleOpusSummary_getInstance() { + if (KModuleOpusSummary_instance === VOID) + new KModuleOpusSummary(); + return KModuleOpusSummary_instance; + } + var KModuleCopyright_instance; + function KModuleCopyright_getInstance() { + if (KModuleCopyright_instance === VOID) + new KModuleCopyright(); + return KModuleCopyright_instance; + } + var KModuleParagraph_instance; + function KModuleParagraph_getInstance() { + if (KModuleParagraph_instance === VOID) + new KModuleParagraph(); + return KModuleParagraph_instance; + } + var KModuleBlocked_instance; + function KModuleBlocked_getInstance() { + if (KModuleBlocked_instance === VOID) + new KModuleBlocked(); + return KModuleBlocked_instance; + } + var KModuleTextNotice_instance; + function KModuleTextNotice_getInstance() { + if (KModuleTextNotice_instance === VOID) + new KModuleTextNotice(); + return KModuleTextNotice_instance; + } + var KModuleOpusCollection_instance; + function KModuleOpusCollection_getInstance() { + if (KModuleOpusCollection_instance === VOID) + new KModuleOpusCollection(); + return KModuleOpusCollection_instance; + } + var KModuleOnetimeNotice_instance; + function KModuleOnetimeNotice_getInstance() { + if (KModuleOnetimeNotice_instance === VOID) + new KModuleOnetimeNotice(); + return KModuleOnetimeNotice_instance; + } + var Companion_instance_956; + function Companion_getInstance_956() { + if (Companion_instance_956 === VOID) + new Companion_956(); + return Companion_instance_956; + } + var $serializer_instance_943; + function $serializer_getInstance_943() { + if ($serializer_instance_943 === VOID) + new $serializer_943(); + return $serializer_instance_943; + } + function KModule$moduleItemNumber$delegate$lambda(this$0) { + return function () { + var tmp; + if (!(this$0.moduleAuthor_1 == null)) { + tmp = 0; + } else if (!(this$0.moduleDispute_1 == null)) { + tmp = 1; + } else if (!(this$0.moduleDesc_1 == null)) { + tmp = 2; + } else if (!(this$0.moduleDynamic_1 == null)) { + tmp = 3; + } else if (!(this$0.moduleLikeUser_1 == null)) { + tmp = 4; + } else if (!(this$0.moduleExtend_1 == null)) { + tmp = 5; + } else if (!(this$0.moduleAdditional_1 == null)) { + tmp = 6; + } else if (!(this$0.moduleStat_1 == null)) { + tmp = 7; + } else if (!(this$0.moduleFold_1 == null)) { + tmp = 8; + } else if (!(this$0.moduleComment_1 == null)) { + tmp = 9; + } else if (!(this$0.moduleInteraction_1 == null)) { + tmp = 10; + } else if (!(this$0.moduleAuthorForward_1 == null)) { + tmp = 11; + } else if (!(this$0.moduleAd_1 == null)) { + tmp = 12; + } else if (!(this$0.moduleBanner_1 == null)) { + tmp = 13; + } else if (!(this$0.moduleItemNull_1 == null)) { + tmp = 14; + } else if (!(this$0.moduleShareInfo_1 == null)) { + tmp = 15; + } else if (!(this$0.moduleRecommend_1 == null)) { + tmp = 16; + } else if (!(this$0.moduleTop_1 == null)) { + tmp = 17; + } else if (!(this$0.moduleButtom_1 == null)) { + tmp = 18; + } else if (!(this$0.moduleStatForward_1 == null)) { + tmp = 19; + } else if (!(this$0.moduleStory_1 == null)) { + tmp = 20; + } else if (!(this$0.moduleTopic_1 == null)) { + tmp = 21; + } else if (!(this$0.moduleTopicDetailsExt_1 == null)) { + tmp = 22; + } else if (!(this$0.moduleTopTag_1 == null)) { + tmp = 23; + } else if (!(this$0.moduleTopicBrief_1 == null)) { + tmp = 24; + } else if (!(this$0.moduleTitle_1 == null)) { + tmp = 25; + } else if (!(this$0.moduleButton_1 == null)) { + tmp = 26; + } else if (!(this$0.moduleNotice_1 == null)) { + tmp = 27; + } else if (!(this$0.moduleOpusSummary_1 == null)) { + tmp = 28; + } else if (!(this$0.moduleCopyright_1 == null)) { + tmp = 29; + } else if (!(this$0.moduleParagraph_1 == null)) { + tmp = 30; + } else if (!(this$0.moduleBlocked_1 == null)) { + tmp = 31; + } else if (!(this$0.moduleTextNotice_1 == null)) { + tmp = 32; + } else if (!(this$0.moduleOpusCollection_1 == null)) { + tmp = 33; + } else if (!(this$0.moduleOnetimeNotice_1 == null)) { + tmp = 34; + } else { + tmp = -1; + } + return tmp; + }; + } + function KModule$_init_$lambda_mh1hbg_0(this$0) { + return function () { + var tmp; + if (!(this$0.moduleAuthor_1 == null)) { + tmp = 0; + } else if (!(this$0.moduleDispute_1 == null)) { + tmp = 1; + } else if (!(this$0.moduleDesc_1 == null)) { + tmp = 2; + } else if (!(this$0.moduleDynamic_1 == null)) { + tmp = 3; + } else if (!(this$0.moduleLikeUser_1 == null)) { + tmp = 4; + } else if (!(this$0.moduleExtend_1 == null)) { + tmp = 5; + } else if (!(this$0.moduleAdditional_1 == null)) { + tmp = 6; + } else if (!(this$0.moduleStat_1 == null)) { + tmp = 7; + } else if (!(this$0.moduleFold_1 == null)) { + tmp = 8; + } else if (!(this$0.moduleComment_1 == null)) { + tmp = 9; + } else if (!(this$0.moduleInteraction_1 == null)) { + tmp = 10; + } else if (!(this$0.moduleAuthorForward_1 == null)) { + tmp = 11; + } else if (!(this$0.moduleAd_1 == null)) { + tmp = 12; + } else if (!(this$0.moduleBanner_1 == null)) { + tmp = 13; + } else if (!(this$0.moduleItemNull_1 == null)) { + tmp = 14; + } else if (!(this$0.moduleShareInfo_1 == null)) { + tmp = 15; + } else if (!(this$0.moduleRecommend_1 == null)) { + tmp = 16; + } else if (!(this$0.moduleTop_1 == null)) { + tmp = 17; + } else if (!(this$0.moduleButtom_1 == null)) { + tmp = 18; + } else if (!(this$0.moduleStatForward_1 == null)) { + tmp = 19; + } else if (!(this$0.moduleStory_1 == null)) { + tmp = 20; + } else if (!(this$0.moduleTopic_1 == null)) { + tmp = 21; + } else if (!(this$0.moduleTopicDetailsExt_1 == null)) { + tmp = 22; + } else if (!(this$0.moduleTopTag_1 == null)) { + tmp = 23; + } else if (!(this$0.moduleTopicBrief_1 == null)) { + tmp = 24; + } else if (!(this$0.moduleTitle_1 == null)) { + tmp = 25; + } else if (!(this$0.moduleButton_1 == null)) { + tmp = 26; + } else if (!(this$0.moduleNotice_1 == null)) { + tmp = 27; + } else if (!(this$0.moduleOpusSummary_1 == null)) { + tmp = 28; + } else if (!(this$0.moduleCopyright_1 == null)) { + tmp = 29; + } else if (!(this$0.moduleParagraph_1 == null)) { + tmp = 30; + } else if (!(this$0.moduleBlocked_1 == null)) { + tmp = 31; + } else if (!(this$0.moduleTextNotice_1 == null)) { + tmp = 32; + } else if (!(this$0.moduleOpusCollection_1 == null)) { + tmp = 33; + } else if (!(this$0.moduleOnetimeNotice_1 == null)) { + tmp = 34; + } else { + tmp = -1; + } + return tmp; + }; + } + var Companion_instance_957; + function Companion_getInstance_957() { + return Companion_instance_957; + } + var $serializer_instance_944; + function $serializer_getInstance_944() { + if ($serializer_instance_944 === VOID) + new $serializer_944(); + return $serializer_instance_944; + } + var Companion_instance_958; + function Companion_getInstance_958() { + if (Companion_instance_958 === VOID) + new Companion_958(); + return Companion_instance_958; + } + var $serializer_instance_945; + function $serializer_getInstance_945() { + if ($serializer_instance_945 === VOID) + new $serializer_945(); + return $serializer_instance_945; + } + var Companion_instance_959; + function Companion_getInstance_959() { + return Companion_instance_959; + } + var $serializer_instance_946; + function $serializer_getInstance_946() { + if ($serializer_instance_946 === VOID) + new $serializer_946(); + return $serializer_instance_946; + } + var Companion_instance_960; + function Companion_getInstance_960() { + return Companion_instance_960; + } + var $serializer_instance_947; + function $serializer_getInstance_947() { + if ($serializer_instance_947 === VOID) + new $serializer_947(); + return $serializer_instance_947; + } + var Companion_instance_961; + function Companion_getInstance_961() { + if (Companion_instance_961 === VOID) + new Companion_961(); + return Companion_instance_961; + } + var $serializer_instance_948; + function $serializer_getInstance_948() { + if ($serializer_instance_948 === VOID) + new $serializer_948(); + return $serializer_instance_948; + } + var Companion_instance_962; + function Companion_getInstance_962() { + return Companion_instance_962; + } + var $serializer_instance_949; + function $serializer_getInstance_949() { + if ($serializer_instance_949 === VOID) + new $serializer_949(); + return $serializer_instance_949; + } + var Companion_instance_963; + function Companion_getInstance_963() { + return Companion_instance_963; + } + var $serializer_instance_950; + function $serializer_getInstance_950() { + if ($serializer_instance_950 === VOID) + new $serializer_950(); + return $serializer_instance_950; + } + var Companion_instance_964; + function Companion_getInstance_964() { + return Companion_instance_964; + } + var $serializer_instance_951; + function $serializer_getInstance_951() { + if ($serializer_instance_951 === VOID) + new $serializer_951(); + return $serializer_instance_951; + } + var Companion_instance_965; + function Companion_getInstance_965() { + if (Companion_instance_965 === VOID) + new Companion_965(); + return Companion_instance_965; + } + var $serializer_instance_952; + function $serializer_getInstance_952() { + if ($serializer_instance_952 === VOID) + new $serializer_952(); + return $serializer_instance_952; + } + var Companion_instance_966; + function Companion_getInstance_966() { + if (Companion_instance_966 === VOID) + new Companion_966(); + return Companion_instance_966; + } + var $serializer_instance_953; + function $serializer_getInstance_953() { + if ($serializer_instance_953 === VOID) + new $serializer_953(); + return $serializer_instance_953; + } + var Companion_instance_967; + function Companion_getInstance_967() { + return Companion_instance_967; + } + var $serializer_instance_954; + function $serializer_getInstance_954() { + if ($serializer_instance_954 === VOID) + new $serializer_954(); + return $serializer_instance_954; + } + var Companion_instance_968; + function Companion_getInstance_968() { + return Companion_instance_968; + } + var $serializer_instance_955; + function $serializer_getInstance_955() { + if ($serializer_instance_955 === VOID) + new $serializer_955(); + return $serializer_instance_955; + } + var Companion_instance_969; + function Companion_getInstance_969() { + return Companion_instance_969; + } + var $serializer_instance_956; + function $serializer_getInstance_956() { + if ($serializer_instance_956 === VOID) + new $serializer_956(); + return $serializer_instance_956; + } + var Companion_instance_970; + function Companion_getInstance_970() { + return Companion_instance_970; + } + var $serializer_instance_957; + function $serializer_getInstance_957() { + if ($serializer_instance_957 === VOID) + new $serializer_957(); + return $serializer_instance_957; + } + var Companion_instance_971; + function Companion_getInstance_971() { + return Companion_instance_971; + } + var $serializer_instance_958; + function $serializer_getInstance_958() { + if ($serializer_instance_958 === VOID) + new $serializer_958(); + return $serializer_instance_958; + } + var Companion_instance_972; + function Companion_getInstance_972() { + return Companion_instance_972; + } + var $serializer_instance_959; + function $serializer_getInstance_959() { + if ($serializer_instance_959 === VOID) + new $serializer_959(); + return $serializer_instance_959; + } + var Companion_instance_973; + function Companion_getInstance_973() { + return Companion_instance_973; + } + var $serializer_instance_960; + function $serializer_getInstance_960() { + if ($serializer_instance_960 === VOID) + new $serializer_960(); + return $serializer_instance_960; + } + var Companion_instance_974; + function Companion_getInstance_974() { + return Companion_instance_974; + } + var $serializer_instance_961; + function $serializer_getInstance_961() { + if ($serializer_instance_961 === VOID) + new $serializer_961(); + return $serializer_instance_961; + } + var Companion_instance_975; + function Companion_getInstance_975() { + return Companion_instance_975; + } + var $serializer_instance_962; + function $serializer_getInstance_962() { + if ($serializer_instance_962 === VOID) + new $serializer_962(); + return $serializer_instance_962; + } + var Companion_instance_976; + function Companion_getInstance_976() { + return Companion_instance_976; + } + var $serializer_instance_963; + function $serializer_getInstance_963() { + if ($serializer_instance_963 === VOID) + new $serializer_963(); + return $serializer_instance_963; + } + var Companion_instance_977; + function Companion_getInstance_977() { + return Companion_instance_977; + } + var $serializer_instance_964; + function $serializer_getInstance_964() { + if ($serializer_instance_964 === VOID) + new $serializer_964(); + return $serializer_instance_964; + } + var Companion_instance_978; + function Companion_getInstance_978() { + return Companion_instance_978; + } + var $serializer_instance_965; + function $serializer_getInstance_965() { + if ($serializer_instance_965 === VOID) + new $serializer_965(); + return $serializer_instance_965; + } + var Companion_instance_979; + function Companion_getInstance_979() { + return Companion_instance_979; + } + var $serializer_instance_966; + function $serializer_getInstance_966() { + if ($serializer_instance_966 === VOID) + new $serializer_966(); + return $serializer_instance_966; + } + var Companion_instance_980; + function Companion_getInstance_980() { + return Companion_instance_980; + } + var $serializer_instance_967; + function $serializer_getInstance_967() { + if ($serializer_instance_967 === VOID) + new $serializer_967(); + return $serializer_instance_967; + } + var Companion_instance_981; + function Companion_getInstance_981() { + if (Companion_instance_981 === VOID) + new Companion_981(); + return Companion_instance_981; + } + var $serializer_instance_968; + function $serializer_getInstance_968() { + if ($serializer_instance_968 === VOID) + new $serializer_968(); + return $serializer_instance_968; + } + function KWeightItem$Companion$itemValues$delegate$lambda() { + return listOf_0([KButton_getInstance(), KDislike_getInstance()]); + } + function _get_itemNumber__22vn01_1($this) { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = $this.itemNumber$delegate_1; + var thisRef = $this; + var property = itemNumber$factory_1(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + var KButton_instance; + function KButton_getInstance() { + if (KButton_instance === VOID) + new KButton_4(); + return KButton_instance; + } + var KDislike_instance; + function KDislike_getInstance() { + if (KDislike_instance === VOID) + new KDislike(); + return KDislike_instance; + } + var Companion_instance_982; + function Companion_getInstance_982() { + if (Companion_instance_982 === VOID) + new Companion_982(); + return Companion_instance_982; + } + var $serializer_instance_969; + function $serializer_getInstance_969() { + if ($serializer_instance_969 === VOID) + new $serializer_969(); + return $serializer_instance_969; + } + function KWeightItem$itemNumber$delegate$lambda(this$0) { + return function () { + var tmp; + if (!(this$0.button_1 == null)) { + tmp = 0; + } else if (!(this$0.dislike_1 == null)) { + tmp = 1; + } else { + tmp = -1; + } + return tmp; + }; + } + function KWeightItem$_init_$lambda_vwbfyt(this$0) { + return function () { + var tmp; + if (!(this$0.button_1 == null)) { + tmp = 0; + } else if (!(this$0.dislike_1 == null)) { + tmp = 1; + } else { + tmp = -1; + } + return tmp; + }; + } + var Companion_instance_983; + function Companion_getInstance_983() { + return Companion_instance_983; + } + var $serializer_instance_970; + function $serializer_getInstance_970() { + if ($serializer_instance_970 === VOID) + new $serializer_970(); + return $serializer_instance_970; + } + var Companion_instance_984; + function Companion_getInstance_984() { + return Companion_instance_984; + } + var $serializer_instance_971; + function $serializer_getInstance_971() { + if ($serializer_instance_971 === VOID) + new $serializer_971(); + return $serializer_instance_971; + } + function KThreePointItem$Companion$itemValues$delegate$lambda() { + return listOf_0([KDefault_getInstance(), KAutoPlayer_getInstance(), KShare_getInstance(), KAttention_getInstance(), KWait_getInstance(), KDislike_getInstance_0(), KFavorite_getInstance(), KTop_getInstance(), KComment_getInstance(), KHide_getInstance(), KTopicIrrelevant_getInstance(), KDynEdit_getInstance(), KCoin_getInstance_0()]); + } + function _get_itemNumber__22vn01_2($this) { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = $this.itemNumber$delegate_1; + var thisRef = $this; + var property = itemNumber$factory_2(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + var KDefault_instance; + function KDefault_getInstance() { + if (KDefault_instance === VOID) + new KDefault(); + return KDefault_instance; + } + var KAutoPlayer_instance; + function KAutoPlayer_getInstance() { + if (KAutoPlayer_instance === VOID) + new KAutoPlayer(); + return KAutoPlayer_instance; + } + var KShare_instance; + function KShare_getInstance() { + if (KShare_instance === VOID) + new KShare_0(); + return KShare_instance; + } + var KAttention_instance; + function KAttention_getInstance() { + if (KAttention_instance === VOID) + new KAttention(); + return KAttention_instance; + } + var KWait_instance; + function KWait_getInstance() { + if (KWait_instance === VOID) + new KWait(); + return KWait_instance; + } + var KDislike_instance_0; + function KDislike_getInstance_0() { + if (KDislike_instance_0 === VOID) + new KDislike_0(); + return KDislike_instance_0; + } + var KFavorite_instance; + function KFavorite_getInstance() { + if (KFavorite_instance === VOID) + new KFavorite(); + return KFavorite_instance; + } + var KTop_instance; + function KTop_getInstance() { + if (KTop_instance === VOID) + new KTop(); + return KTop_instance; + } + var KComment_instance; + function KComment_getInstance() { + if (KComment_instance === VOID) + new KComment(); + return KComment_instance; + } + var KHide_instance; + function KHide_getInstance() { + if (KHide_instance === VOID) + new KHide(); + return KHide_instance; + } + var KTopicIrrelevant_instance; + function KTopicIrrelevant_getInstance() { + if (KTopicIrrelevant_instance === VOID) + new KTopicIrrelevant(); + return KTopicIrrelevant_instance; + } + var KDynEdit_instance; + function KDynEdit_getInstance() { + if (KDynEdit_instance === VOID) + new KDynEdit(); + return KDynEdit_instance; + } + var KCoin_instance_0; + function KCoin_getInstance_0() { + if (KCoin_instance_0 === VOID) + new KCoin_0(); + return KCoin_instance_0; + } + var Companion_instance_985; + function Companion_getInstance_985() { + if (Companion_instance_985 === VOID) + new Companion_985(); + return Companion_instance_985; + } + var $serializer_instance_972; + function $serializer_getInstance_972() { + if ($serializer_instance_972 === VOID) + new $serializer_972(); + return $serializer_instance_972; + } + function KThreePointItem$itemNumber$delegate$lambda(this$0) { + return function () { + var tmp; + if (!(this$0.default_1 == null)) { + tmp = 0; + } else if (!(this$0.autoPlayer_1 == null)) { + tmp = 1; + } else if (!(this$0.share_1 == null)) { + tmp = 2; + } else if (!(this$0.attention_1 == null)) { + tmp = 3; + } else if (!(this$0.wait_1 == null)) { + tmp = 4; + } else if (!(this$0.dislike_1 == null)) { + tmp = 5; + } else if (!(this$0.favorite_1 == null)) { + tmp = 6; + } else if (!(this$0.top_1 == null)) { + tmp = 7; + } else if (!(this$0.comment_1 == null)) { + tmp = 8; + } else if (!(this$0.hide_1 == null)) { + tmp = 9; + } else if (!(this$0.topicIrrelevant_1 == null)) { + tmp = 10; + } else if (!(this$0.dynEdit_1 == null)) { + tmp = 11; + } else if (!(this$0.coin_1 == null)) { + tmp = 12; + } else { + tmp = -1; + } + return tmp; + }; + } + function KThreePointItem$_init_$lambda_tqx7cr(this$0) { + return function () { + var tmp; + if (!(this$0.default_1 == null)) { + tmp = 0; + } else if (!(this$0.autoPlayer_1 == null)) { + tmp = 1; + } else if (!(this$0.share_1 == null)) { + tmp = 2; + } else if (!(this$0.attention_1 == null)) { + tmp = 3; + } else if (!(this$0.wait_1 == null)) { + tmp = 4; + } else if (!(this$0.dislike_1 == null)) { + tmp = 5; + } else if (!(this$0.favorite_1 == null)) { + tmp = 6; + } else if (!(this$0.top_1 == null)) { + tmp = 7; + } else if (!(this$0.comment_1 == null)) { + tmp = 8; + } else if (!(this$0.hide_1 == null)) { + tmp = 9; + } else if (!(this$0.topicIrrelevant_1 == null)) { + tmp = 10; + } else if (!(this$0.dynEdit_1 == null)) { + tmp = 11; + } else if (!(this$0.coin_1 == null)) { + tmp = 12; + } else { + tmp = -1; + } + return tmp; + }; + } + var Companion_instance_986; + function Companion_getInstance_986() { + return Companion_instance_986; + } + var $serializer_instance_973; + function $serializer_getInstance_973() { + if ($serializer_instance_973 === VOID) + new $serializer_973(); + return $serializer_instance_973; + } + var Companion_instance_987; + function Companion_getInstance_987() { + return Companion_instance_987; + } + var $serializer_instance_974; + function $serializer_getInstance_974() { + if ($serializer_instance_974 === VOID) + new $serializer_974(); + return $serializer_instance_974; + } + var Companion_instance_988; + function Companion_getInstance_988() { + return Companion_instance_988; + } + var $serializer_instance_975; + function $serializer_getInstance_975() { + if ($serializer_instance_975 === VOID) + new $serializer_975(); + return $serializer_instance_975; + } + var Companion_instance_989; + function Companion_getInstance_989() { + if (Companion_instance_989 === VOID) + new Companion_989(); + return Companion_instance_989; + } + var $serializer_instance_976; + function $serializer_getInstance_976() { + if ($serializer_instance_976 === VOID) + new $serializer_976(); + return $serializer_instance_976; + } + var Companion_instance_990; + function Companion_getInstance_990() { + return Companion_instance_990; + } + var $serializer_instance_977; + function $serializer_getInstance_977() { + if ($serializer_instance_977 === VOID) + new $serializer_977(); + return $serializer_instance_977; + } + var Companion_instance_991; + function Companion_getInstance_991() { + return Companion_instance_991; + } + var $serializer_instance_978; + function $serializer_getInstance_978() { + if ($serializer_instance_978 === VOID) + new $serializer_978(); + return $serializer_instance_978; + } + var Companion_instance_992; + function Companion_getInstance_992() { + return Companion_instance_992; + } + var $serializer_instance_979; + function $serializer_getInstance_979() { + if ($serializer_instance_979 === VOID) + new $serializer_979(); + return $serializer_instance_979; + } + var Companion_instance_993; + function Companion_getInstance_993() { + return Companion_instance_993; + } + var $serializer_instance_980; + function $serializer_getInstance_980() { + if ($serializer_instance_980 === VOID) + new $serializer_980(); + return $serializer_instance_980; + } + var Companion_instance_994; + function Companion_getInstance_994() { + return Companion_instance_994; + } + var $serializer_instance_981; + function $serializer_getInstance_981() { + if ($serializer_instance_981 === VOID) + new $serializer_981(); + return $serializer_instance_981; + } + var Companion_instance_995; + function Companion_getInstance_995() { + return Companion_instance_995; + } + var $serializer_instance_982; + function $serializer_getInstance_982() { + if ($serializer_instance_982 === VOID) + new $serializer_982(); + return $serializer_instance_982; + } + var Companion_instance_996; + function Companion_getInstance_996() { + return Companion_instance_996; + } + var $serializer_instance_983; + function $serializer_getInstance_983() { + if ($serializer_instance_983 === VOID) + new $serializer_983(); + return $serializer_instance_983; + } + var Companion_instance_997; + function Companion_getInstance_997() { + return Companion_instance_997; + } + var $serializer_instance_984; + function $serializer_getInstance_984() { + if ($serializer_instance_984 === VOID) + new $serializer_984(); + return $serializer_instance_984; + } + var Companion_instance_998; + function Companion_getInstance_998() { + return Companion_instance_998; + } + var $serializer_instance_985; + function $serializer_getInstance_985() { + if ($serializer_instance_985 === VOID) + new $serializer_985(); + return $serializer_instance_985; + } + var Companion_instance_999; + function Companion_getInstance_999() { + return Companion_instance_999; + } + var $serializer_instance_986; + function $serializer_getInstance_986() { + if ($serializer_instance_986 === VOID) + new $serializer_986(); + return $serializer_instance_986; + } + var Companion_instance_1000; + function Companion_getInstance_1000() { + return Companion_instance_1000; + } + var $serializer_instance_987; + function $serializer_getInstance_987() { + if ($serializer_instance_987 === VOID) + new $serializer_987(); + return $serializer_instance_987; + } + var Companion_instance_1001; + function Companion_getInstance_1001() { + return Companion_instance_1001; + } + var $serializer_instance_988; + function $serializer_getInstance_988() { + if ($serializer_instance_988 === VOID) + new $serializer_988(); + return $serializer_instance_988; + } + var Companion_instance_1002; + function Companion_getInstance_1002() { + return Companion_instance_1002; + } + var $serializer_instance_989; + function $serializer_getInstance_989() { + if ($serializer_instance_989 === VOID) + new $serializer_989(); + return $serializer_instance_989; + } + var Companion_instance_1003; + function Companion_getInstance_1003() { + return Companion_instance_1003; + } + var $serializer_instance_990; + function $serializer_getInstance_990() { + if ($serializer_instance_990 === VOID) + new $serializer_990(); + return $serializer_instance_990; + } + var Companion_instance_1004; + function Companion_getInstance_1004() { + return Companion_instance_1004; + } + var $serializer_instance_991; + function $serializer_getInstance_991() { + if ($serializer_instance_991 === VOID) + new $serializer_991(); + return $serializer_instance_991; + } + var Companion_instance_1005; + function Companion_getInstance_1005() { + if (Companion_instance_1005 === VOID) + new Companion_1005(); + return Companion_instance_1005; + } + var $serializer_instance_992; + function $serializer_getInstance_992() { + if ($serializer_instance_992 === VOID) + new $serializer_992(); + return $serializer_instance_992; + } + function KModuleDynamic$Companion$moduleItemValues$delegate$lambda() { + return listOf_0([KDynArchive_getInstance(), KDynPgc_getInstance(), KDynCourSeason_getInstance(), KDynCourBatch_getInstance(), KDynForward_getInstance(), KDynDraw_getInstance(), KDynArticle_getInstance(), KDynMusic_getInstance(), KDynCommon_getInstance(), KDynCommonLive_getInstance(), KDynMedialist_getInstance(), KDynApplet_getInstance(), KDynSubscription_getInstance(), KDynLiveRcmd_getInstance(), KDynUgcSeason_getInstance(), KDynSubscriptionNew_getInstance(), KDynCourBatchUp_getInstance(), KDynTopicSet_getInstance()]); + } + function _get_moduleItemNumber__nvmghp_0($this) { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = $this.moduleItemNumber$delegate_1; + var thisRef = $this; + var property = moduleItemNumber$factory_0(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + var KDynArchive_instance; + function KDynArchive_getInstance() { + if (KDynArchive_instance === VOID) + new KDynArchive(); + return KDynArchive_instance; + } + var KDynPgc_instance; + function KDynPgc_getInstance() { + if (KDynPgc_instance === VOID) + new KDynPgc(); + return KDynPgc_instance; + } + var KDynCourSeason_instance; + function KDynCourSeason_getInstance() { + if (KDynCourSeason_instance === VOID) + new KDynCourSeason(); + return KDynCourSeason_instance; + } + var KDynCourBatch_instance; + function KDynCourBatch_getInstance() { + if (KDynCourBatch_instance === VOID) + new KDynCourBatch(); + return KDynCourBatch_instance; + } + var KDynForward_instance; + function KDynForward_getInstance() { + if (KDynForward_instance === VOID) + new KDynForward(); + return KDynForward_instance; + } + var KDynDraw_instance; + function KDynDraw_getInstance() { + if (KDynDraw_instance === VOID) + new KDynDraw(); + return KDynDraw_instance; + } + var KDynArticle_instance; + function KDynArticle_getInstance() { + if (KDynArticle_instance === VOID) + new KDynArticle(); + return KDynArticle_instance; + } + var KDynMusic_instance; + function KDynMusic_getInstance() { + if (KDynMusic_instance === VOID) + new KDynMusic(); + return KDynMusic_instance; + } + var KDynCommon_instance; + function KDynCommon_getInstance() { + if (KDynCommon_instance === VOID) + new KDynCommon(); + return KDynCommon_instance; + } + var KDynCommonLive_instance; + function KDynCommonLive_getInstance() { + if (KDynCommonLive_instance === VOID) + new KDynCommonLive(); + return KDynCommonLive_instance; + } + var KDynMedialist_instance; + function KDynMedialist_getInstance() { + if (KDynMedialist_instance === VOID) + new KDynMedialist(); + return KDynMedialist_instance; + } + var KDynApplet_instance; + function KDynApplet_getInstance() { + if (KDynApplet_instance === VOID) + new KDynApplet(); + return KDynApplet_instance; + } + var KDynSubscription_instance; + function KDynSubscription_getInstance() { + if (KDynSubscription_instance === VOID) + new KDynSubscription(); + return KDynSubscription_instance; + } + var KDynLiveRcmd_instance; + function KDynLiveRcmd_getInstance() { + if (KDynLiveRcmd_instance === VOID) + new KDynLiveRcmd(); + return KDynLiveRcmd_instance; + } + var KDynUgcSeason_instance; + function KDynUgcSeason_getInstance() { + if (KDynUgcSeason_instance === VOID) + new KDynUgcSeason(); + return KDynUgcSeason_instance; + } + var KDynSubscriptionNew_instance; + function KDynSubscriptionNew_getInstance() { + if (KDynSubscriptionNew_instance === VOID) + new KDynSubscriptionNew(); + return KDynSubscriptionNew_instance; + } + var KDynCourBatchUp_instance; + function KDynCourBatchUp_getInstance() { + if (KDynCourBatchUp_instance === VOID) + new KDynCourBatchUp(); + return KDynCourBatchUp_instance; + } + var KDynTopicSet_instance; + function KDynTopicSet_getInstance() { + if (KDynTopicSet_instance === VOID) + new KDynTopicSet(); + return KDynTopicSet_instance; + } + var Companion_instance_1006; + function Companion_getInstance_1006() { + if (Companion_instance_1006 === VOID) + new Companion_1006(); + return Companion_instance_1006; + } + var $serializer_instance_993; + function $serializer_getInstance_993() { + if ($serializer_instance_993 === VOID) + new $serializer_993(); + return $serializer_instance_993; + } + function KModuleDynamic$moduleItemNumber$delegate$lambda(this$0) { + return function () { + var tmp; + if (!(this$0.dynArchive_1 == null)) { + tmp = 0; + } else if (!(this$0.dynPgc_1 == null)) { + tmp = 1; + } else if (!(this$0.dynCourSeason_1 == null)) { + tmp = 2; + } else if (!(this$0.dynCourBatch_1 == null)) { + tmp = 3; + } else if (!(this$0.dynForward_1 == null)) { + tmp = 4; + } else if (!(this$0.dynDraw_1 == null)) { + tmp = 5; + } else if (!(this$0.dynArticle_1 == null)) { + tmp = 6; + } else if (!(this$0.dynMusic_1 == null)) { + tmp = 7; + } else if (!(this$0.dynCommon_1 == null)) { + tmp = 8; + } else if (!(this$0.dynCommonLive_1 == null)) { + tmp = 9; + } else if (!(this$0.dynMedialist_1 == null)) { + tmp = 10; + } else if (!(this$0.dynApplet_1 == null)) { + tmp = 11; + } else if (!(this$0.dynSubscription_1 == null)) { + tmp = 12; + } else if (!(this$0.dynLiveRcmd_1 == null)) { + tmp = 13; + } else if (!(this$0.dynUgcSeason_1 == null)) { + tmp = 14; + } else if (!(this$0.dynSubscriptionNew_1 == null)) { + tmp = 15; + } else if (!(this$0.dynCourBatchUp_1 == null)) { + tmp = 16; + } else if (!(this$0.dynTopicSet_1 == null)) { + tmp = 17; + } else { + tmp = -1; + } + return tmp; + }; + } + function KModuleDynamic$_init_$lambda_t8fc8z(this$0) { + return function () { + var tmp; + if (!(this$0.dynArchive_1 == null)) { + tmp = 0; + } else if (!(this$0.dynPgc_1 == null)) { + tmp = 1; + } else if (!(this$0.dynCourSeason_1 == null)) { + tmp = 2; + } else if (!(this$0.dynCourBatch_1 == null)) { + tmp = 3; + } else if (!(this$0.dynForward_1 == null)) { + tmp = 4; + } else if (!(this$0.dynDraw_1 == null)) { + tmp = 5; + } else if (!(this$0.dynArticle_1 == null)) { + tmp = 6; + } else if (!(this$0.dynMusic_1 == null)) { + tmp = 7; + } else if (!(this$0.dynCommon_1 == null)) { + tmp = 8; + } else if (!(this$0.dynCommonLive_1 == null)) { + tmp = 9; + } else if (!(this$0.dynMedialist_1 == null)) { + tmp = 10; + } else if (!(this$0.dynApplet_1 == null)) { + tmp = 11; + } else if (!(this$0.dynSubscription_1 == null)) { + tmp = 12; + } else if (!(this$0.dynLiveRcmd_1 == null)) { + tmp = 13; + } else if (!(this$0.dynUgcSeason_1 == null)) { + tmp = 14; + } else if (!(this$0.dynSubscriptionNew_1 == null)) { + tmp = 15; + } else if (!(this$0.dynCourBatchUp_1 == null)) { + tmp = 16; + } else if (!(this$0.dynTopicSet_1 == null)) { + tmp = 17; + } else { + tmp = -1; + } + return tmp; + }; + } + var Companion_instance_1007; + function Companion_getInstance_1007() { + return Companion_instance_1007; + } + var $serializer_instance_994; + function $serializer_getInstance_994() { + if ($serializer_instance_994 === VOID) + new $serializer_994(); + return $serializer_instance_994; + } + var Companion_instance_1008; + function Companion_getInstance_1008() { + if (Companion_instance_1008 === VOID) + new Companion_1008(); + return Companion_instance_1008; + } + var $serializer_instance_995; + function $serializer_getInstance_995() { + if ($serializer_instance_995 === VOID) + new $serializer_995(); + return $serializer_instance_995; + } + var Companion_instance_1009; + function Companion_getInstance_1009() { + return Companion_instance_1009; + } + var $serializer_instance_996; + function $serializer_getInstance_996() { + if ($serializer_instance_996 === VOID) + new $serializer_996(); + return $serializer_instance_996; + } + var Companion_instance_1010; + function Companion_getInstance_1010() { + if (Companion_instance_1010 === VOID) + new Companion_1010(); + return Companion_instance_1010; + } + var $serializer_instance_997; + function $serializer_getInstance_997() { + if ($serializer_instance_997 === VOID) + new $serializer_997(); + return $serializer_instance_997; + } + function KModuleExtendItem$Companion$extendValues$delegate$lambda() { + return listOf_0([KExtInfoTopic_getInstance(), KExtInfoLbs_getInstance(), KExtInfoHot_getInstance(), KExtInfoGame_getInstance(), KExtInfoCommon_getInstance(), KExtInfoOgv_getInstance()]); + } + function _get_extendNumber__l91wt4_1($this) { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = $this.extendNumber$delegate_1; + var thisRef = $this; + var property = extendNumber$factory_1(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + var KExtInfoTopic_instance; + function KExtInfoTopic_getInstance() { + if (KExtInfoTopic_instance === VOID) + new KExtInfoTopic(); + return KExtInfoTopic_instance; + } + var KExtInfoLbs_instance; + function KExtInfoLbs_getInstance() { + if (KExtInfoLbs_instance === VOID) + new KExtInfoLbs(); + return KExtInfoLbs_instance; + } + var KExtInfoHot_instance; + function KExtInfoHot_getInstance() { + if (KExtInfoHot_instance === VOID) + new KExtInfoHot(); + return KExtInfoHot_instance; + } + var KExtInfoGame_instance; + function KExtInfoGame_getInstance() { + if (KExtInfoGame_instance === VOID) + new KExtInfoGame(); + return KExtInfoGame_instance; + } + var KExtInfoCommon_instance; + function KExtInfoCommon_getInstance() { + if (KExtInfoCommon_instance === VOID) + new KExtInfoCommon(); + return KExtInfoCommon_instance; + } + var KExtInfoOgv_instance; + function KExtInfoOgv_getInstance() { + if (KExtInfoOgv_instance === VOID) + new KExtInfoOgv(); + return KExtInfoOgv_instance; + } + var Companion_instance_1011; + function Companion_getInstance_1011() { + if (Companion_instance_1011 === VOID) + new Companion_1011(); + return Companion_instance_1011; + } + var $serializer_instance_998; + function $serializer_getInstance_998() { + if ($serializer_instance_998 === VOID) + new $serializer_998(); + return $serializer_instance_998; + } + function KModuleExtendItem$extendNumber$delegate$lambda(this$0) { + return function () { + var tmp; + if (!(this$0.extInfoTopic_1 == null)) { + tmp = 0; + } else if (!(this$0.extInfoLbs_1 == null)) { + tmp = 1; + } else if (!(this$0.extInfoHot_1 == null)) { + tmp = 2; + } else if (!(this$0.extInfoGame_1 == null)) { + tmp = 3; + } else if (!(this$0.extInfoCommon_1 == null)) { + tmp = 4; + } else if (!(this$0.extInfoOgv_1 == null)) { + tmp = 5; + } else { + tmp = -1; + } + return tmp; + }; + } + function KModuleExtendItem$_init_$lambda_lqtryx(this$0) { + return function () { + var tmp; + if (!(this$0.extInfoTopic_1 == null)) { + tmp = 0; + } else if (!(this$0.extInfoLbs_1 == null)) { + tmp = 1; + } else if (!(this$0.extInfoHot_1 == null)) { + tmp = 2; + } else if (!(this$0.extInfoGame_1 == null)) { + tmp = 3; + } else if (!(this$0.extInfoCommon_1 == null)) { + tmp = 4; + } else if (!(this$0.extInfoOgv_1 == null)) { + tmp = 5; + } else { + tmp = -1; + } + return tmp; + }; + } + var Companion_instance_1012; + function Companion_getInstance_1012() { + return Companion_instance_1012; + } + var $serializer_instance_999; + function $serializer_getInstance_999() { + if ($serializer_instance_999 === VOID) + new $serializer_999(); + return $serializer_instance_999; + } + var Companion_instance_1013; + function Companion_getInstance_1013() { + return Companion_instance_1013; + } + var $serializer_instance_1000; + function $serializer_getInstance_1000() { + if ($serializer_instance_1000 === VOID) + new $serializer_1000(); + return $serializer_instance_1000; + } + var Companion_instance_1014; + function Companion_getInstance_1014() { + return Companion_instance_1014; + } + var $serializer_instance_1001; + function $serializer_getInstance_1001() { + if ($serializer_instance_1001 === VOID) + new $serializer_1001(); + return $serializer_instance_1001; + } + var Companion_instance_1015; + function Companion_getInstance_1015() { + return Companion_instance_1015; + } + var $serializer_instance_1002; + function $serializer_getInstance_1002() { + if ($serializer_instance_1002 === VOID) + new $serializer_1002(); + return $serializer_instance_1002; + } + var Companion_instance_1016; + function Companion_getInstance_1016() { + return Companion_instance_1016; + } + var $serializer_instance_1003; + function $serializer_getInstance_1003() { + if ($serializer_instance_1003 === VOID) + new $serializer_1003(); + return $serializer_instance_1003; + } + var Companion_instance_1017; + function Companion_getInstance_1017() { + if (Companion_instance_1017 === VOID) + new Companion_1017(); + return Companion_instance_1017; + } + var $serializer_instance_1004; + function $serializer_getInstance_1004() { + if ($serializer_instance_1004 === VOID) + new $serializer_1004(); + return $serializer_instance_1004; + } + var Companion_instance_1018; + function Companion_getInstance_1018() { + return Companion_instance_1018; + } + var $serializer_instance_1005; + function $serializer_getInstance_1005() { + if ($serializer_instance_1005 === VOID) + new $serializer_1005(); + return $serializer_instance_1005; + } + var Companion_instance_1019; + function Companion_getInstance_1019() { + return Companion_instance_1019; + } + var $serializer_instance_1006; + function $serializer_getInstance_1006() { + if ($serializer_instance_1006 === VOID) + new $serializer_1006(); + return $serializer_instance_1006; + } + var Companion_instance_1020; + function Companion_getInstance_1020() { + return Companion_instance_1020; + } + var $serializer_instance_1007; + function $serializer_getInstance_1007() { + if ($serializer_instance_1007 === VOID) + new $serializer_1007(); + return $serializer_instance_1007; + } + var Companion_instance_1021; + function Companion_getInstance_1021() { + return Companion_instance_1021; + } + var $serializer_instance_1008; + function $serializer_getInstance_1008() { + if ($serializer_instance_1008 === VOID) + new $serializer_1008(); + return $serializer_instance_1008; + } + var Companion_instance_1022; + function Companion_getInstance_1022() { + if (Companion_instance_1022 === VOID) + new Companion_1022(); + return Companion_instance_1022; + } + var $serializer_instance_1009; + function $serializer_getInstance_1009() { + if ($serializer_instance_1009 === VOID) + new $serializer_1009(); + return $serializer_instance_1009; + } + var Companion_instance_1023; + function Companion_getInstance_1023() { + return Companion_instance_1023; + } + var $serializer_instance_1010; + function $serializer_getInstance_1010() { + if ($serializer_instance_1010 === VOID) + new $serializer_1010(); + return $serializer_instance_1010; + } + var Companion_instance_1024; + function Companion_getInstance_1024() { + if (Companion_instance_1024 === VOID) + new Companion_1024(); + return Companion_instance_1024; + } + var $serializer_instance_1011; + function $serializer_getInstance_1011() { + if ($serializer_instance_1011 === VOID) + new $serializer_1011(); + return $serializer_instance_1011; + } + var Companion_instance_1025; + function Companion_getInstance_1025() { + return Companion_instance_1025; + } + var $serializer_instance_1012; + function $serializer_getInstance_1012() { + if ($serializer_instance_1012 === VOID) + new $serializer_1012(); + return $serializer_instance_1012; + } + var Companion_instance_1026; + function Companion_getInstance_1026() { + if (Companion_instance_1026 === VOID) + new Companion_1026(); + return Companion_instance_1026; + } + var $serializer_instance_1013; + function $serializer_getInstance_1013() { + if ($serializer_instance_1013 === VOID) + new $serializer_1013(); + return $serializer_instance_1013; + } + var Companion_instance_1027; + function Companion_getInstance_1027() { + return Companion_instance_1027; + } + var $serializer_instance_1014; + function $serializer_getInstance_1014() { + if ($serializer_instance_1014 === VOID) + new $serializer_1014(); + return $serializer_instance_1014; + } + var Companion_instance_1028; + function Companion_getInstance_1028() { + if (Companion_instance_1028 === VOID) + new Companion_1028(); + return Companion_instance_1028; + } + var $serializer_instance_1015; + function $serializer_getInstance_1015() { + if ($serializer_instance_1015 === VOID) + new $serializer_1015(); + return $serializer_instance_1015; + } + var Companion_instance_1029; + function Companion_getInstance_1029() { + return Companion_instance_1029; + } + var $serializer_instance_1016; + function $serializer_getInstance_1016() { + if ($serializer_instance_1016 === VOID) + new $serializer_1016(); + return $serializer_instance_1016; + } + var Companion_instance_1030; + function Companion_getInstance_1030() { + return Companion_instance_1030; + } + var $serializer_instance_1017; + function $serializer_getInstance_1017() { + if ($serializer_instance_1017 === VOID) + new $serializer_1017(); + return $serializer_instance_1017; + } + var Companion_instance_1031; + function Companion_getInstance_1031() { + if (Companion_instance_1031 === VOID) + new Companion_1031(); + return Companion_instance_1031; + } + var $serializer_instance_1018; + function $serializer_getInstance_1018() { + if ($serializer_instance_1018 === VOID) + new $serializer_1018(); + return $serializer_instance_1018; + } + var Companion_instance_1032; + function Companion_getInstance_1032() { + return Companion_instance_1032; + } + var $serializer_instance_1019; + function $serializer_getInstance_1019() { + if ($serializer_instance_1019 === VOID) + new $serializer_1019(); + return $serializer_instance_1019; + } + var Companion_instance_1033; + function Companion_getInstance_1033() { + return Companion_instance_1033; + } + var $serializer_instance_1020; + function $serializer_getInstance_1020() { + if ($serializer_instance_1020 === VOID) + new $serializer_1020(); + return $serializer_instance_1020; + } + function KModuleBanner$Companion$itemValues$delegate$lambda() { + return listOf(KUser_getInstance()); + } + function _get_itemNumber__22vn01_3($this) { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = $this.itemNumber$delegate_1; + var thisRef = $this; + var property = itemNumber$factory_3(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + var KUser_instance; + function KUser_getInstance() { + if (KUser_instance === VOID) + new KUser_0(); + return KUser_instance; + } + var Companion_instance_1034; + function Companion_getInstance_1034() { + if (Companion_instance_1034 === VOID) + new Companion_1034(); + return Companion_instance_1034; + } + var $serializer_instance_1021; + function $serializer_getInstance_1021() { + if ($serializer_instance_1021 === VOID) + new $serializer_1021(); + return $serializer_instance_1021; + } + function KModuleBanner$itemNumber$delegate$lambda(this$0) { + return function () { + var tmp; + if (!(this$0.user_1 == null)) { + tmp = 0; + } else { + tmp = -1; + } + return tmp; + }; + } + function KModuleBanner$_init_$lambda_2042yg(this$0) { + return function () { + var tmp; + if (!(this$0.user_1 == null)) { + tmp = 0; + } else { + tmp = -1; + } + return tmp; + }; + } + var Companion_instance_1035; + function Companion_getInstance_1035() { + if (Companion_instance_1035 === VOID) + new Companion_1035(); + return Companion_instance_1035; + } + var $serializer_instance_1022; + function $serializer_getInstance_1022() { + if ($serializer_instance_1022 === VOID) + new $serializer_1022(); + return $serializer_instance_1022; + } + var Companion_instance_1036; + function Companion_getInstance_1036() { + return Companion_instance_1036; + } + var $serializer_instance_1023; + function $serializer_getInstance_1023() { + if ($serializer_instance_1023 === VOID) + new $serializer_1023(); + return $serializer_instance_1023; + } + var Companion_instance_1037; + function Companion_getInstance_1037() { + return Companion_instance_1037; + } + var $serializer_instance_1024; + function $serializer_getInstance_1024() { + if ($serializer_instance_1024 === VOID) + new $serializer_1024(); + return $serializer_instance_1024; + } + var Companion_instance_1038; + function Companion_getInstance_1038() { + if (Companion_instance_1038 === VOID) + new Companion_1038(); + return Companion_instance_1038; + } + var $serializer_instance_1025; + function $serializer_getInstance_1025() { + if ($serializer_instance_1025 === VOID) + new $serializer_1025(); + return $serializer_instance_1025; + } + var Companion_instance_1039; + function Companion_getInstance_1039() { + return Companion_instance_1039; + } + var $serializer_instance_1026; + function $serializer_getInstance_1026() { + if ($serializer_instance_1026 === VOID) + new $serializer_1026(); + return $serializer_instance_1026; + } + var Companion_instance_1040; + function Companion_getInstance_1040() { + if (Companion_instance_1040 === VOID) + new Companion_1040(); + return Companion_instance_1040; + } + var $serializer_instance_1027; + function $serializer_getInstance_1027() { + if ($serializer_instance_1027 === VOID) + new $serializer_1027(); + return $serializer_instance_1027; + } + var Companion_instance_1041; + function Companion_getInstance_1041() { + if (Companion_instance_1041 === VOID) + new Companion_1041(); + return Companion_instance_1041; + } + var $serializer_instance_1028; + function $serializer_getInstance_1028() { + if ($serializer_instance_1028 === VOID) + new $serializer_1028(); + return $serializer_instance_1028; + } + function _get_$cachedSerializer__te6jhj_113($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KModuleButtom$KInteractionIcon$Companion$values$delegate$lambda() { + return listOf_0([KInteractionIcon_ICON_INVALID_getInstance(), KInteractionIcon_ICON_FORWARD_getInstance(), KInteractionIcon_ICON_COMMENT_getInstance(), KInteractionIcon_ICON_FAVORITE_getInstance(), KInteractionIcon_ICON_LIKE_getInstance()]); + } + function KModuleButtom$KInteractionIcon$Companion$_anonymous__vt7q25() { + return $serializer_getInstance_1029(); + } + var KInteractionIcon_ICON_INVALID_instance; + var KInteractionIcon_ICON_FORWARD_instance; + var KInteractionIcon_ICON_COMMENT_instance; + var KInteractionIcon_ICON_FAVORITE_instance; + var KInteractionIcon_ICON_LIKE_instance; + var KInteractionIcon_UNRECOGNIZED_instance; + var Companion_instance_1042; + function Companion_getInstance_1042() { + KInteractionIcon_initEntries(); + if (Companion_instance_1042 === VOID) + new Companion_1042(); + return Companion_instance_1042; + } + var $serializer_instance_1029; + function $serializer_getInstance_1029() { + KInteractionIcon_initEntries(); + if ($serializer_instance_1029 === VOID) + new $serializer_1029(); + return $serializer_instance_1029; + } + function values_113() { + return [KInteractionIcon_ICON_INVALID_getInstance(), KInteractionIcon_ICON_FORWARD_getInstance(), KInteractionIcon_ICON_COMMENT_getInstance(), KInteractionIcon_ICON_FAVORITE_getInstance(), KInteractionIcon_ICON_LIKE_getInstance(), KInteractionIcon_UNRECOGNIZED_getInstance()]; + } + function valueOf_113(value) { + switch (value) { + case 'ICON_INVALID': + return KInteractionIcon_ICON_INVALID_getInstance(); + case 'ICON_FORWARD': + return KInteractionIcon_ICON_FORWARD_getInstance(); + case 'ICON_COMMENT': + return KInteractionIcon_ICON_COMMENT_getInstance(); + case 'ICON_FAVORITE': + return KInteractionIcon_ICON_FAVORITE_getInstance(); + case 'ICON_LIKE': + return KInteractionIcon_ICON_LIKE_getInstance(); + case 'UNRECOGNIZED': + return KInteractionIcon_UNRECOGNIZED_getInstance(); + default: + KInteractionIcon_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KInteractionIcon_entriesInitialized; + function KInteractionIcon_initEntries() { + if (KInteractionIcon_entriesInitialized) + return Unit_instance; + KInteractionIcon_entriesInitialized = true; + KInteractionIcon_ICON_INVALID_instance = new KInteractionIcon('ICON_INVALID', 0, 0); + KInteractionIcon_ICON_FORWARD_instance = new KInteractionIcon('ICON_FORWARD', 1, 1); + KInteractionIcon_ICON_COMMENT_instance = new KInteractionIcon('ICON_COMMENT', 2, 2); + KInteractionIcon_ICON_FAVORITE_instance = new KInteractionIcon('ICON_FAVORITE', 3, 3); + KInteractionIcon_ICON_LIKE_instance = new KInteractionIcon('ICON_LIKE', 4, 4); + KInteractionIcon_UNRECOGNIZED_instance = new KInteractionIcon('UNRECOGNIZED', 5, -1); + Companion_getInstance_1042(); + } + var Companion_instance_1043; + function Companion_getInstance_1043() { + if (Companion_instance_1043 === VOID) + new Companion_1043(); + return Companion_instance_1043; + } + var $serializer_instance_1030; + function $serializer_getInstance_1030() { + if ($serializer_instance_1030 === VOID) + new $serializer_1030(); + return $serializer_instance_1030; + } + function KInteractionIcon_ICON_INVALID_getInstance() { + KInteractionIcon_initEntries(); + return KInteractionIcon_ICON_INVALID_instance; + } + function KInteractionIcon_ICON_FORWARD_getInstance() { + KInteractionIcon_initEntries(); + return KInteractionIcon_ICON_FORWARD_instance; + } + function KInteractionIcon_ICON_COMMENT_getInstance() { + KInteractionIcon_initEntries(); + return KInteractionIcon_ICON_COMMENT_instance; + } + function KInteractionIcon_ICON_FAVORITE_getInstance() { + KInteractionIcon_initEntries(); + return KInteractionIcon_ICON_FAVORITE_instance; + } + function KInteractionIcon_ICON_LIKE_getInstance() { + KInteractionIcon_initEntries(); + return KInteractionIcon_ICON_LIKE_instance; + } + function KInteractionIcon_UNRECOGNIZED_getInstance() { + KInteractionIcon_initEntries(); + return KInteractionIcon_UNRECOGNIZED_instance; + } + var Companion_instance_1044; + function Companion_getInstance_1044() { + if (Companion_instance_1044 === VOID) + new Companion_1044(); + return Companion_instance_1044; + } + var $serializer_instance_1031; + function $serializer_getInstance_1031() { + if ($serializer_instance_1031 === VOID) + new $serializer_1031(); + return $serializer_instance_1031; + } + function KStoryItem$Companion$rcmdItemValues$delegate$lambda() { + return listOf(KStoryArchive_getInstance()); + } + function _get_rcmdItemNumber__ys0evt_1($this) { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = $this.rcmdItemNumber$delegate_1; + var thisRef = $this; + var property = rcmdItemNumber$factory_1(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + var KStoryArchive_instance; + function KStoryArchive_getInstance() { + if (KStoryArchive_instance === VOID) + new KStoryArchive(); + return KStoryArchive_instance; + } + var Companion_instance_1045; + function Companion_getInstance_1045() { + if (Companion_instance_1045 === VOID) + new Companion_1045(); + return Companion_instance_1045; + } + var $serializer_instance_1032; + function $serializer_getInstance_1032() { + if ($serializer_instance_1032 === VOID) + new $serializer_1032(); + return $serializer_instance_1032; + } + function KStoryItem$rcmdItemNumber$delegate$lambda(this$0) { + return function () { + var tmp; + if (!(this$0.storyArchive_1 == null)) { + tmp = 0; + } else { + tmp = -1; + } + return tmp; + }; + } + function KStoryItem$_init_$lambda_2cxoqa(this$0) { + return function () { + var tmp; + if (!(this$0.storyArchive_1 == null)) { + tmp = 0; + } else { + tmp = -1; + } + return tmp; + }; + } + var Companion_instance_1046; + function Companion_getInstance_1046() { + return Companion_instance_1046; + } + var $serializer_instance_1033; + function $serializer_getInstance_1033() { + if ($serializer_instance_1033 === VOID) + new $serializer_1033(); + return $serializer_instance_1033; + } + var Companion_instance_1047; + function Companion_getInstance_1047() { + return Companion_instance_1047; + } + var $serializer_instance_1034; + function $serializer_getInstance_1034() { + if ($serializer_instance_1034 === VOID) + new $serializer_1034(); + return $serializer_instance_1034; + } + var Companion_instance_1048; + function Companion_getInstance_1048() { + return Companion_instance_1048; + } + var $serializer_instance_1035; + function $serializer_getInstance_1035() { + if ($serializer_instance_1035 === VOID) + new $serializer_1035(); + return $serializer_instance_1035; + } + var Companion_instance_1049; + function Companion_getInstance_1049() { + return Companion_instance_1049; + } + var $serializer_instance_1036; + function $serializer_getInstance_1036() { + if ($serializer_instance_1036 === VOID) + new $serializer_1036(); + return $serializer_instance_1036; + } + var Companion_instance_1050; + function Companion_getInstance_1050() { + return Companion_instance_1050; + } + var $serializer_instance_1037; + function $serializer_getInstance_1037() { + if ($serializer_instance_1037 === VOID) + new $serializer_1037(); + return $serializer_instance_1037; + } + var Companion_instance_1051; + function Companion_getInstance_1051() { + return Companion_instance_1051; + } + var $serializer_instance_1038; + function $serializer_getInstance_1038() { + if ($serializer_instance_1038 === VOID) + new $serializer_1038(); + return $serializer_instance_1038; + } + var Companion_instance_1052; + function Companion_getInstance_1052() { + return Companion_instance_1052; + } + var $serializer_instance_1039; + function $serializer_getInstance_1039() { + if ($serializer_instance_1039 === VOID) + new $serializer_1039(); + return $serializer_instance_1039; + } + var Companion_instance_1053; + function Companion_getInstance_1053() { + return Companion_instance_1053; + } + var $serializer_instance_1040; + function $serializer_getInstance_1040() { + if ($serializer_instance_1040 === VOID) + new $serializer_1040(); + return $serializer_instance_1040; + } + var Companion_instance_1054; + function Companion_getInstance_1054() { + if (Companion_instance_1054 === VOID) + new Companion_1054(); + return Companion_instance_1054; + } + var $serializer_instance_1041; + function $serializer_getInstance_1041() { + if ($serializer_instance_1041 === VOID) + new $serializer_1041(); + return $serializer_instance_1041; + } + var Companion_instance_1055; + function Companion_getInstance_1055() { + return Companion_instance_1055; + } + var $serializer_instance_1042; + function $serializer_getInstance_1042() { + if ($serializer_instance_1042 === VOID) + new $serializer_1042(); + return $serializer_instance_1042; + } + var Companion_instance_1056; + function Companion_getInstance_1056() { + return Companion_instance_1056; + } + var $serializer_instance_1043; + function $serializer_getInstance_1043() { + if ($serializer_instance_1043 === VOID) + new $serializer_1043(); + return $serializer_instance_1043; + } + var Companion_instance_1057; + function Companion_getInstance_1057() { + return Companion_instance_1057; + } + var $serializer_instance_1044; + function $serializer_getInstance_1044() { + if ($serializer_instance_1044 === VOID) + new $serializer_1044(); + return $serializer_instance_1044; + } + var Companion_instance_1058; + function Companion_getInstance_1058() { + return Companion_instance_1058; + } + var $serializer_instance_1045; + function $serializer_getInstance_1045() { + if ($serializer_instance_1045 === VOID) + new $serializer_1045(); + return $serializer_instance_1045; + } + function KDynamicType_DYN_NONE_getInstance() { + KDynamicType_initEntries(); + return KDynamicType_DYN_NONE_instance; + } + function KDynamicType_FORWARD_getInstance() { + KDynamicType_initEntries(); + return KDynamicType_FORWARD_instance; + } + function KDynamicType_AV_getInstance() { + KDynamicType_initEntries(); + return KDynamicType_AV_instance; + } + function KDynamicType_PGC_getInstance() { + KDynamicType_initEntries(); + return KDynamicType_PGC_instance; + } + function KDynamicType_COURSES_getInstance() { + KDynamicType_initEntries(); + return KDynamicType_COURSES_instance; + } + function KDynamicType_FOLD_getInstance() { + KDynamicType_initEntries(); + return KDynamicType_FOLD_instance; + } + function KDynamicType_WORD_getInstance() { + KDynamicType_initEntries(); + return KDynamicType_WORD_instance; + } + function KDynamicType_DRAW_getInstance() { + KDynamicType_initEntries(); + return KDynamicType_DRAW_instance; + } + function KDynamicType_ARTICLE_getInstance() { + KDynamicType_initEntries(); + return KDynamicType_ARTICLE_instance; + } + function KDynamicType_MUSIC_getInstance() { + KDynamicType_initEntries(); + return KDynamicType_MUSIC_instance; + } + function KDynamicType_COMMON_SQUARE_getInstance() { + KDynamicType_initEntries(); + return KDynamicType_COMMON_SQUARE_instance; + } + function KDynamicType_COMMON_VERTICAL_getInstance() { + KDynamicType_initEntries(); + return KDynamicType_COMMON_VERTICAL_instance; + } + function KDynamicType_LIVE_getInstance() { + KDynamicType_initEntries(); + return KDynamicType_LIVE_instance; + } + function KDynamicType_MEDIALIST_getInstance() { + KDynamicType_initEntries(); + return KDynamicType_MEDIALIST_instance; + } + function KDynamicType_COURSES_SEASON_getInstance() { + KDynamicType_initEntries(); + return KDynamicType_COURSES_SEASON_instance; + } + function KDynamicType_AD_getInstance() { + KDynamicType_initEntries(); + return KDynamicType_AD_instance; + } + function KDynamicType_APPLET_getInstance() { + KDynamicType_initEntries(); + return KDynamicType_APPLET_instance; + } + function KDynamicType_SUBSCRIPTION_getInstance() { + KDynamicType_initEntries(); + return KDynamicType_SUBSCRIPTION_instance; + } + function KDynamicType_LIVE_RCMD_getInstance() { + KDynamicType_initEntries(); + return KDynamicType_LIVE_RCMD_instance; + } + function KDynamicType_BANNER_getInstance() { + KDynamicType_initEntries(); + return KDynamicType_BANNER_instance; + } + function KDynamicType_UGC_SEASON_getInstance() { + KDynamicType_initEntries(); + return KDynamicType_UGC_SEASON_instance; + } + function KDynamicType_SUBSCRIPTION_NEW_getInstance() { + KDynamicType_initEntries(); + return KDynamicType_SUBSCRIPTION_NEW_instance; + } + function KDynamicType_STORY_getInstance() { + KDynamicType_initEntries(); + return KDynamicType_STORY_instance; + } + function KDynamicType_TOPIC_RCMD_getInstance() { + KDynamicType_initEntries(); + return KDynamicType_TOPIC_RCMD_instance; + } + function KDynamicType_COUR_UP_getInstance() { + KDynamicType_initEntries(); + return KDynamicType_COUR_UP_instance; + } + function KDynamicType_TOPIC_SET_getInstance() { + KDynamicType_initEntries(); + return KDynamicType_TOPIC_SET_instance; + } + function KDynamicType_NOTICE_getInstance() { + KDynamicType_initEntries(); + return KDynamicType_NOTICE_instance; + } + function KDynamicType_TEXT_NOTICE_getInstance() { + KDynamicType_initEntries(); + return KDynamicType_TEXT_NOTICE_instance; + } + function KDynamicType_ONETIME_NOTICE_getInstance() { + KDynamicType_initEntries(); + return KDynamicType_ONETIME_NOTICE_instance; + } + function KDynamicType_UNRECOGNIZED_getInstance() { + KDynamicType_initEntries(); + return KDynamicType_UNRECOGNIZED_instance; + } + function KDynModuleType_MODULE_NONE_getInstance() { + KDynModuleType_initEntries(); + return KDynModuleType_MODULE_NONE_instance; + } + function KDynModuleType_MODULE_AUTHOR_getInstance() { + KDynModuleType_initEntries(); + return KDynModuleType_MODULE_AUTHOR_instance; + } + function KDynModuleType_MODULE_DISPUTE_getInstance() { + KDynModuleType_initEntries(); + return KDynModuleType_MODULE_DISPUTE_instance; + } + function KDynModuleType_MODULE_DESC_getInstance() { + KDynModuleType_initEntries(); + return KDynModuleType_MODULE_DESC_instance; + } + function KDynModuleType_MODULE_DYNAMIC_getInstance() { + KDynModuleType_initEntries(); + return KDynModuleType_MODULE_DYNAMIC_instance; + } + function KDynModuleType_MODULE_FORWARD_getInstance() { + KDynModuleType_initEntries(); + return KDynModuleType_MODULE_FORWARD_instance; + } + function KDynModuleType_MODULE_LIKE_USER_getInstance() { + KDynModuleType_initEntries(); + return KDynModuleType_MODULE_LIKE_USER_instance; + } + function KDynModuleType_MODULE_EXTEND_getInstance() { + KDynModuleType_initEntries(); + return KDynModuleType_MODULE_EXTEND_instance; + } + function KDynModuleType_MODULE_ADDITIONAL_getInstance() { + KDynModuleType_initEntries(); + return KDynModuleType_MODULE_ADDITIONAL_instance; + } + function KDynModuleType_MODULE_STAT_getInstance() { + KDynModuleType_initEntries(); + return KDynModuleType_MODULE_STAT_instance; + } + function KDynModuleType_MODULE_FOLD_getInstance() { + KDynModuleType_initEntries(); + return KDynModuleType_MODULE_FOLD_instance; + } + function KDynModuleType_MODULE_COMMENT_getInstance() { + KDynModuleType_initEntries(); + return KDynModuleType_MODULE_COMMENT_instance; + } + function KDynModuleType_MODULE_INTERACTION_getInstance() { + KDynModuleType_initEntries(); + return KDynModuleType_MODULE_INTERACTION_instance; + } + function KDynModuleType_MODULE_AUTHOR_FORWARD_getInstance() { + KDynModuleType_initEntries(); + return KDynModuleType_MODULE_AUTHOR_FORWARD_instance; + } + function KDynModuleType_MODULE_AD_getInstance() { + KDynModuleType_initEntries(); + return KDynModuleType_MODULE_AD_instance; + } + function KDynModuleType_MODULE_BANNER_getInstance() { + KDynModuleType_initEntries(); + return KDynModuleType_MODULE_BANNER_instance; + } + function KDynModuleType_MODULE_ITEM_NULL_getInstance() { + KDynModuleType_initEntries(); + return KDynModuleType_MODULE_ITEM_NULL_instance; + } + function KDynModuleType_MODULE_SHARE_INFO_getInstance() { + KDynModuleType_initEntries(); + return KDynModuleType_MODULE_SHARE_INFO_instance; + } + function KDynModuleType_MODULE_RECOMMEND_getInstance() { + KDynModuleType_initEntries(); + return KDynModuleType_MODULE_RECOMMEND_instance; + } + function KDynModuleType_MODULE_STAT_FORWARD_getInstance() { + KDynModuleType_initEntries(); + return KDynModuleType_MODULE_STAT_FORWARD_instance; + } + function KDynModuleType_MODULE_TOP_getInstance() { + KDynModuleType_initEntries(); + return KDynModuleType_MODULE_TOP_instance; + } + function KDynModuleType_MODULE_BOTTOM_getInstance() { + KDynModuleType_initEntries(); + return KDynModuleType_MODULE_BOTTOM_instance; + } + function KDynModuleType_MODULE_STORY_getInstance() { + KDynModuleType_initEntries(); + return KDynModuleType_MODULE_STORY_instance; + } + function KDynModuleType_MODULE_TOPIC_getInstance() { + KDynModuleType_initEntries(); + return KDynModuleType_MODULE_TOPIC_instance; + } + function KDynModuleType_MODULE_TOPIC_DETAILS_EXT_getInstance() { + KDynModuleType_initEntries(); + return KDynModuleType_MODULE_TOPIC_DETAILS_EXT_instance; + } + function KDynModuleType_MODULE_TOP_TAG_getInstance() { + KDynModuleType_initEntries(); + return KDynModuleType_MODULE_TOP_TAG_instance; + } + function KDynModuleType_MODULE_TOPIC_BRIEF_getInstance() { + KDynModuleType_initEntries(); + return KDynModuleType_MODULE_TOPIC_BRIEF_instance; + } + function KDynModuleType_MODULE_TITLE_getInstance() { + KDynModuleType_initEntries(); + return KDynModuleType_MODULE_TITLE_instance; + } + function KDynModuleType_MODULE_BUTTON_getInstance() { + KDynModuleType_initEntries(); + return KDynModuleType_MODULE_BUTTON_instance; + } + function KDynModuleType_MODULE_NOTICE_getInstance() { + KDynModuleType_initEntries(); + return KDynModuleType_MODULE_NOTICE_instance; + } + function KDynModuleType_MODULE_OPUS_SUMMARY_getInstance() { + KDynModuleType_initEntries(); + return KDynModuleType_MODULE_OPUS_SUMMARY_instance; + } + function KDynModuleType_MODULE_COPYRIGHT_getInstance() { + KDynModuleType_initEntries(); + return KDynModuleType_MODULE_COPYRIGHT_instance; + } + function KDynModuleType_MODULE_PARAGRAPH_getInstance() { + KDynModuleType_initEntries(); + return KDynModuleType_MODULE_PARAGRAPH_instance; + } + function KDynModuleType_MODULE_BLOCKED_getInstance() { + KDynModuleType_initEntries(); + return KDynModuleType_MODULE_BLOCKED_instance; + } + function KDynModuleType_MODULE_TEXT_NOTICE_getInstance() { + KDynModuleType_initEntries(); + return KDynModuleType_MODULE_TEXT_NOTICE_instance; + } + function KDynModuleType_MODULE_OPUS_COLLECTION_getInstance() { + KDynModuleType_initEntries(); + return KDynModuleType_MODULE_OPUS_COLLECTION_instance; + } + function KDynModuleType_MODULE_ONETIME_NOTICE_getInstance() { + KDynModuleType_initEntries(); + return KDynModuleType_MODULE_ONETIME_NOTICE_instance; + } + function KDynModuleType_UNRECOGNIZED_getInstance() { + KDynModuleType_initEntries(); + return KDynModuleType_UNRECOGNIZED_instance; + } + function KDescType_NONE_getInstance() { + KDescType_initEntries_0(); + return KDescType_NONE_instance; + } + function KDescType_TEXT_getInstance_0() { + KDescType_initEntries_0(); + return KDescType_TEXT_instance_0; + } + function KDescType_AITE_getInstance() { + KDescType_initEntries_0(); + return KDescType_AITE_instance; + } + function KDescType_LOTTERY_getInstance() { + KDescType_initEntries_0(); + return KDescType_LOTTERY_instance; + } + function KDescType_VOTE_getInstance() { + KDescType_initEntries_0(); + return KDescType_VOTE_instance; + } + function KDescType_TOPIC_getInstance() { + KDescType_initEntries_0(); + return KDescType_TOPIC_instance; + } + function KDescType_GOODS_getInstance() { + KDescType_initEntries_0(); + return KDescType_GOODS_instance; + } + function KDescType_BV_getInstance() { + KDescType_initEntries_0(); + return KDescType_BV_instance; + } + function KDescType_AV_getInstance() { + KDescType_initEntries_0(); + return KDescType_AV_instance; + } + function KDescType_EMOJI_getInstance() { + KDescType_initEntries_0(); + return KDescType_EMOJI_instance; + } + function KDescType_USER_getInstance() { + KDescType_initEntries_0(); + return KDescType_USER_instance; + } + function KDescType_CV_getInstance() { + KDescType_initEntries_0(); + return KDescType_CV_instance; + } + function KDescType_VC_getInstance() { + KDescType_initEntries_0(); + return KDescType_VC_instance; + } + function KDescType_WEB_getInstance() { + KDescType_initEntries_0(); + return KDescType_WEB_instance; + } + function KDescType_TAOBAO_getInstance() { + KDescType_initEntries_0(); + return KDescType_TAOBAO_instance; + } + function KDescType_MAIL_getInstance() { + KDescType_initEntries_0(); + return KDescType_MAIL_instance; + } + function KDescType_OGV_SEASON_getInstance() { + KDescType_initEntries_0(); + return KDescType_OGV_SEASON_instance; + } + function KDescType_OGV_EP_getInstance() { + KDescType_initEntries_0(); + return KDescType_OGV_EP_instance; + } + function KDescType_SEARCH_WORD_getInstance() { + KDescType_initEntries_0(); + return KDescType_SEARCH_WORD_instance; + } + function KDescType_UNRECOGNIZED_getInstance_0() { + KDescType_initEntries_0(); + return KDescType_UNRECOGNIZED_instance_0; + } + function KEmojiType_EMOJI_NONE_getInstance() { + KEmojiType_initEntries(); + return KEmojiType_EMOJI_NONE_instance; + } + function KEmojiType_EMOJI_OLD_getInstance() { + KEmojiType_initEntries(); + return KEmojiType_EMOJI_OLD_instance; + } + function KEmojiType_EMOJI_NEW_getInstance() { + KEmojiType_initEntries(); + return KEmojiType_EMOJI_NEW_instance; + } + function KEmojiType_VIP_getInstance() { + KEmojiType_initEntries(); + return KEmojiType_VIP_instance; + } + function KEmojiType_UNRECOGNIZED_getInstance() { + KEmojiType_initEntries(); + return KEmojiType_UNRECOGNIZED_instance; + } + function KNFTRegionType_NFT_REGION_DEFAULT_getInstance() { + KNFTRegionType_initEntries(); + return KNFTRegionType_NFT_REGION_DEFAULT_instance; + } + function KNFTRegionType_NFT_REGION_MAINLANG_getInstance() { + KNFTRegionType_initEntries(); + return KNFTRegionType_NFT_REGION_MAINLANG_instance; + } + function KNFTRegionType_NFT_REGION_GAT_getInstance() { + KNFTRegionType_initEntries(); + return KNFTRegionType_NFT_REGION_GAT_instance; + } + function KNFTRegionType_UNRECOGNIZED_getInstance() { + KNFTRegionType_initEntries(); + return KNFTRegionType_UNRECOGNIZED_instance; + } + function KNFTShowStatus_NFT_SHOW_DEFAULT_getInstance() { + KNFTShowStatus_initEntries(); + return KNFTShowStatus_NFT_SHOW_DEFAULT_instance; + } + function KNFTShowStatus_NFT_SHOW_ZOOMINMAINLANG_getInstance() { + KNFTShowStatus_initEntries(); + return KNFTShowStatus_NFT_SHOW_ZOOMINMAINLANG_instance; + } + function KNFTShowStatus_NFT_SHOW_RAW_getInstance() { + KNFTShowStatus_initEntries(); + return KNFTShowStatus_NFT_SHOW_RAW_instance; + } + function KNFTShowStatus_UNRECOGNIZED_getInstance() { + KNFTShowStatus_initEntries(); + return KNFTShowStatus_UNRECOGNIZED_instance; + } + function KModuleAuthorBadgeType_NONE_getInstance() { + KModuleAuthorBadgeType_initEntries(); + return KModuleAuthorBadgeType_NONE_instance; + } + function KModuleAuthorBadgeType_THREE_POINT_getInstance() { + KModuleAuthorBadgeType_initEntries(); + return KModuleAuthorBadgeType_THREE_POINT_instance; + } + function KModuleAuthorBadgeType_BUTTON_getInstance() { + KModuleAuthorBadgeType_initEntries(); + return KModuleAuthorBadgeType_BUTTON_instance; + } + function KModuleAuthorBadgeType_WEIGHT_getInstance() { + KModuleAuthorBadgeType_initEntries(); + return KModuleAuthorBadgeType_WEIGHT_instance; + } + function KModuleAuthorBadgeType_UNRECOGNIZED_getInstance() { + KModuleAuthorBadgeType_initEntries(); + return KModuleAuthorBadgeType_UNRECOGNIZED_instance; + } + function KRelationStatus_NONE_getInstance() { + KRelationStatus_initEntries(); + return KRelationStatus_NONE_instance; + } + function KRelationStatus_NOFOLLOW_getInstance() { + KRelationStatus_initEntries(); + return KRelationStatus_NOFOLLOW_instance; + } + function KRelationStatus_FOLLOW_getInstance() { + KRelationStatus_initEntries(); + return KRelationStatus_FOLLOW_instance; + } + function KRelationStatus_FOLLOWED_getInstance() { + KRelationStatus_initEntries(); + return KRelationStatus_FOLLOWED_instance; + } + function KRelationStatus_MUTUAL_CONCERN_getInstance() { + KRelationStatus_initEntries(); + return KRelationStatus_MUTUAL_CONCERN_instance; + } + function KRelationStatus_SPECIAL_getInstance() { + KRelationStatus_initEntries(); + return KRelationStatus_SPECIAL_instance; + } + function KRelationStatus_UNRECOGNIZED_getInstance() { + KRelationStatus_initEntries(); + return KRelationStatus_UNRECOGNIZED_instance; + } + function KWeightType_WEIGHT_NONE_getInstance() { + KWeightType_initEntries(); + return KWeightType_WEIGHT_NONE_instance; + } + function KWeightType_WEIGHT_DISLIKE_getInstance() { + KWeightType_initEntries(); + return KWeightType_WEIGHT_DISLIKE_instance; + } + function KWeightType_WEIGHT_JUMP_getInstance() { + KWeightType_initEntries(); + return KWeightType_WEIGHT_JUMP_instance; + } + function KWeightType_UNRECOGNIZED_getInstance() { + KWeightType_initEntries(); + return KWeightType_UNRECOGNIZED_instance; + } + function KThreePointType_TP_NONE_getInstance() { + KThreePointType_initEntries(); + return KThreePointType_TP_NONE_instance; + } + function KThreePointType_BACKGROUND_getInstance() { + KThreePointType_initEntries(); + return KThreePointType_BACKGROUND_instance; + } + function KThreePointType_AUTO_PLAY_getInstance() { + KThreePointType_initEntries(); + return KThreePointType_AUTO_PLAY_instance; + } + function KThreePointType_SHARE_getInstance() { + KThreePointType_initEntries(); + return KThreePointType_SHARE_instance; + } + function KThreePointType_WAIT_getInstance() { + KThreePointType_initEntries(); + return KThreePointType_WAIT_instance; + } + function KThreePointType_ATTENTION_getInstance() { + KThreePointType_initEntries(); + return KThreePointType_ATTENTION_instance; + } + function KThreePointType_REPORT_getInstance() { + KThreePointType_initEntries(); + return KThreePointType_REPORT_instance; + } + function KThreePointType_DELETE_getInstance() { + KThreePointType_initEntries(); + return KThreePointType_DELETE_instance; + } + function KThreePointType_DISLIKE_getInstance() { + KThreePointType_initEntries(); + return KThreePointType_DISLIKE_instance; + } + function KThreePointType_FAVORITE_getInstance() { + KThreePointType_initEntries(); + return KThreePointType_FAVORITE_instance; + } + function KThreePointType_TOP_getInstance() { + KThreePointType_initEntries(); + return KThreePointType_TOP_instance; + } + function KThreePointType_COMMENT_getInstance() { + KThreePointType_initEntries(); + return KThreePointType_COMMENT_instance; + } + function KThreePointType_HIDE_getInstance() { + KThreePointType_initEntries(); + return KThreePointType_HIDE_instance; + } + function KThreePointType_CAMPUS_DELETE_getInstance() { + KThreePointType_initEntries(); + return KThreePointType_CAMPUS_DELETE_instance; + } + function KThreePointType_TOPIC_IRRELEVANT_getInstance() { + KThreePointType_initEntries(); + return KThreePointType_TOPIC_IRRELEVANT_instance; + } + function KThreePointType_BATCH_CANCEL_getInstance() { + KThreePointType_initEntries(); + return KThreePointType_BATCH_CANCEL_instance; + } + function KThreePointType_TOPIC_SET_CANCEL_getInstance() { + KThreePointType_initEntries(); + return KThreePointType_TOPIC_SET_CANCEL_instance; + } + function KThreePointType_DYNAMIC_EDIT_getInstance() { + KThreePointType_initEntries(); + return KThreePointType_DYNAMIC_EDIT_instance; + } + function KThreePointType_CREATE_VIDEO_getInstance() { + KThreePointType_initEntries(); + return KThreePointType_CREATE_VIDEO_instance; + } + function KThreePointType_COIN_getInstance() { + KThreePointType_initEntries(); + return KThreePointType_COIN_instance; + } + function KThreePointType_OGV_SUBSCRIBE_getInstance() { + KThreePointType_initEntries(); + return KThreePointType_OGV_SUBSCRIBE_instance; + } + function KThreePointType_UNRECOGNIZED_getInstance() { + KThreePointType_initEntries(); + return KThreePointType_UNRECOGNIZED_instance; + } + function KThreePointAttentionStatus_TP_NOT_ATTENTION_getInstance() { + KThreePointAttentionStatus_initEntries(); + return KThreePointAttentionStatus_TP_NOT_ATTENTION_instance; + } + function KThreePointAttentionStatus_TP_ATTENTION_getInstance() { + KThreePointAttentionStatus_initEntries(); + return KThreePointAttentionStatus_TP_ATTENTION_instance; + } + function KThreePointAttentionStatus_UNRECOGNIZED_getInstance() { + KThreePointAttentionStatus_initEntries(); + return KThreePointAttentionStatus_UNRECOGNIZED_instance; + } + function KTopType_TOP_NONE_getInstance() { + KTopType_initEntries(); + return KTopType_TOP_NONE_instance; + } + function KTopType_TOP_CANCEL_getInstance() { + KTopType_initEntries(); + return KTopType_TOP_CANCEL_instance; + } + function KTopType_UNRECOGNIZED_getInstance() { + KTopType_initEntries(); + return KTopType_UNRECOGNIZED_instance; + } + function KModuleDynamicType_MDL_DYN_ARCHIVE_getInstance() { + KModuleDynamicType_initEntries(); + return KModuleDynamicType_MDL_DYN_ARCHIVE_instance; + } + function KModuleDynamicType_MDL_DYN_PGC_getInstance() { + KModuleDynamicType_initEntries(); + return KModuleDynamicType_MDL_DYN_PGC_instance; + } + function KModuleDynamicType_MDL_DYN_COUR_SEASON_getInstance() { + KModuleDynamicType_initEntries(); + return KModuleDynamicType_MDL_DYN_COUR_SEASON_instance; + } + function KModuleDynamicType_MDL_DYN_COUR_BATCH_getInstance() { + KModuleDynamicType_initEntries(); + return KModuleDynamicType_MDL_DYN_COUR_BATCH_instance; + } + function KModuleDynamicType_MDL_DYN_FORWARD_getInstance() { + KModuleDynamicType_initEntries(); + return KModuleDynamicType_MDL_DYN_FORWARD_instance; + } + function KModuleDynamicType_MDL_DYN_DRAW_getInstance() { + KModuleDynamicType_initEntries(); + return KModuleDynamicType_MDL_DYN_DRAW_instance; + } + function KModuleDynamicType_MDL_DYN_ARTICLE_getInstance() { + KModuleDynamicType_initEntries(); + return KModuleDynamicType_MDL_DYN_ARTICLE_instance; + } + function KModuleDynamicType_MDL_DYN_MUSIC_getInstance() { + KModuleDynamicType_initEntries(); + return KModuleDynamicType_MDL_DYN_MUSIC_instance; + } + function KModuleDynamicType_MDL_DYN_COMMON_getInstance() { + KModuleDynamicType_initEntries(); + return KModuleDynamicType_MDL_DYN_COMMON_instance; + } + function KModuleDynamicType_MDL_DYN_LIVE_getInstance() { + KModuleDynamicType_initEntries(); + return KModuleDynamicType_MDL_DYN_LIVE_instance; + } + function KModuleDynamicType_MDL_DYN_MEDIALIST_getInstance() { + KModuleDynamicType_initEntries(); + return KModuleDynamicType_MDL_DYN_MEDIALIST_instance; + } + function KModuleDynamicType_MDL_DYN_APPLET_getInstance() { + KModuleDynamicType_initEntries(); + return KModuleDynamicType_MDL_DYN_APPLET_instance; + } + function KModuleDynamicType_MDL_DYN_SUBSCRIPTION_getInstance() { + KModuleDynamicType_initEntries(); + return KModuleDynamicType_MDL_DYN_SUBSCRIPTION_instance; + } + function KModuleDynamicType_MDL_DYN_LIVE_RCMD_getInstance() { + KModuleDynamicType_initEntries(); + return KModuleDynamicType_MDL_DYN_LIVE_RCMD_instance; + } + function KModuleDynamicType_MDL_DYN_UGC_SEASON_getInstance() { + KModuleDynamicType_initEntries(); + return KModuleDynamicType_MDL_DYN_UGC_SEASON_instance; + } + function KModuleDynamicType_MDL_DYN_SUBSCRIPTION_NEW_getInstance() { + KModuleDynamicType_initEntries(); + return KModuleDynamicType_MDL_DYN_SUBSCRIPTION_NEW_instance; + } + function KModuleDynamicType_MDL_DYN_COUR_UP_getInstance() { + KModuleDynamicType_initEntries(); + return KModuleDynamicType_MDL_DYN_COUR_UP_instance; + } + function KModuleDynamicType_MDL_DYN_TOPIC_SET_getInstance() { + KModuleDynamicType_initEntries(); + return KModuleDynamicType_MDL_DYN_TOPIC_SET_instance; + } + function KModuleDynamicType_UNRECOGNIZED_getInstance() { + KModuleDynamicType_initEntries(); + return KModuleDynamicType_UNRECOGNIZED_instance; + } + function KDynExtendType_DYN_EXT_TYPE_NONE_getInstance() { + KDynExtendType_initEntries(); + return KDynExtendType_DYN_EXT_TYPE_NONE_instance; + } + function KDynExtendType_DYN_EXT_TYPE_TOPIC_getInstance() { + KDynExtendType_initEntries(); + return KDynExtendType_DYN_EXT_TYPE_TOPIC_instance; + } + function KDynExtendType_DYN_EXT_TYPE_LBS_getInstance() { + KDynExtendType_initEntries(); + return KDynExtendType_DYN_EXT_TYPE_LBS_instance; + } + function KDynExtendType_DYN_EXT_TYPE_HOT_getInstance() { + KDynExtendType_initEntries(); + return KDynExtendType_DYN_EXT_TYPE_HOT_instance; + } + function KDynExtendType_DYN_EXT_TYPE_GAME_getInstance() { + KDynExtendType_initEntries(); + return KDynExtendType_DYN_EXT_TYPE_GAME_instance; + } + function KDynExtendType_DYN_EXT_TYPE_COMMON_getInstance() { + KDynExtendType_initEntries(); + return KDynExtendType_DYN_EXT_TYPE_COMMON_instance; + } + function KDynExtendType_DYN_EXT_TYPE_BILI_CUT_getInstance() { + KDynExtendType_initEntries(); + return KDynExtendType_DYN_EXT_TYPE_BILI_CUT_instance; + } + function KDynExtendType_DYN_EXT_TYPE_OGV_getInstance() { + KDynExtendType_initEntries(); + return KDynExtendType_DYN_EXT_TYPE_OGV_instance; + } + function KDynExtendType_DYN_EXT_TYPE_AUTO_OGV_getInstance() { + KDynExtendType_initEntries(); + return KDynExtendType_DYN_EXT_TYPE_AUTO_OGV_instance; + } + function KDynExtendType_UNRECOGNIZED_getInstance() { + KDynExtendType_initEntries(); + return KDynExtendType_UNRECOGNIZED_instance; + } + function KFoldType_ZORE_getInstance() { + KFoldType_initEntries(); + return KFoldType_ZORE_instance; + } + function KFoldType_PUBLISH_getInstance() { + KFoldType_initEntries(); + return KFoldType_PUBLISH_instance; + } + function KFoldType_FREQUENT_getInstance() { + KFoldType_initEntries(); + return KFoldType_FREQUENT_instance; + } + function KFoldType_UNITE_getInstance() { + KFoldType_initEntries(); + return KFoldType_UNITE_instance; + } + function KFoldType_LIMIT_getInstance() { + KFoldType_initEntries(); + return KFoldType_LIMIT_instance; + } + function KFoldType_TOPIC_MERGED_getInstance() { + KFoldType_initEntries(); + return KFoldType_TOPIC_MERGED_instance; + } + function KFoldType_UNRECOGNIZED_getInstance() { + KFoldType_initEntries(); + return KFoldType_UNRECOGNIZED_instance; + } + function KLocalIconType_LOCAL_ICON_COMMENT_getInstance() { + KLocalIconType_initEntries(); + return KLocalIconType_LOCAL_ICON_COMMENT_instance; + } + function KLocalIconType_LOCAL_ICON_LIKE_getInstance() { + KLocalIconType_initEntries(); + return KLocalIconType_LOCAL_ICON_LIKE_instance; + } + function KLocalIconType_LOCAL_ICON_AVATAR_getInstance() { + KLocalIconType_initEntries(); + return KLocalIconType_LOCAL_ICON_AVATAR_instance; + } + function KLocalIconType_LOCAL_ICON_COVER_getInstance() { + KLocalIconType_initEntries(); + return KLocalIconType_LOCAL_ICON_COVER_instance; + } + function KLocalIconType_LOCAL_ICON_LIKE_AND_FORWARD_getInstance() { + KLocalIconType_initEntries(); + return KLocalIconType_LOCAL_ICON_LIKE_AND_FORWARD_instance; + } + function KLocalIconType_UNRECOGNIZED_getInstance() { + KLocalIconType_initEntries(); + return KLocalIconType_UNRECOGNIZED_instance; + } + function KModuleBannerType_NONE_getInstance() { + KModuleBannerType_initEntries(); + return KModuleBannerType_NONE_instance; + } + function KModuleBannerType_USER_getInstance() { + KModuleBannerType_initEntries(); + return KModuleBannerType_USER_instance; + } + function KModuleBannerType_UNRECOGNIZED_getInstance() { + KModuleBannerType_initEntries(); + return KModuleBannerType_UNRECOGNIZED_instance; + } + function KRcmdType_RCMD_ARCHIVE_getInstance() { + KRcmdType_initEntries(); + return KRcmdType_RCMD_ARCHIVE_instance; + } + function KRcmdType_RCMD_DYNAMIC_getInstance() { + KRcmdType_initEntries(); + return KRcmdType_RCMD_DYNAMIC_instance; + } + function KRcmdType_UNRECOGNIZED_getInstance() { + KRcmdType_initEntries(); + return KRcmdType_UNRECOGNIZED_instance; + } + function KMdlBlockedStyle_BLOCKED_STYLE_DEFAULT_getInstance() { + KMdlBlockedStyle_initEntries(); + return KMdlBlockedStyle_BLOCKED_STYLE_DEFAULT_instance; + } + function KMdlBlockedStyle_BLOCKED_STYLE_IN_AUDIT_getInstance() { + KMdlBlockedStyle_initEntries(); + return KMdlBlockedStyle_BLOCKED_STYLE_IN_AUDIT_instance; + } + function KMdlBlockedStyle_BLOCKED_STYLE_ONLY_FANS_LIST_getInstance() { + KMdlBlockedStyle_initEntries(); + return KMdlBlockedStyle_BLOCKED_STYLE_ONLY_FANS_LIST_instance; + } + function KMdlBlockedStyle_BLOCKED_STYLE_ONLY_FANS_VIDEO_getInstance() { + KMdlBlockedStyle_initEntries(); + return KMdlBlockedStyle_BLOCKED_STYLE_ONLY_FANS_VIDEO_instance; + } + function KMdlBlockedStyle_UNRECOGNIZED_getInstance() { + KMdlBlockedStyle_initEntries(); + return KMdlBlockedStyle_UNRECOGNIZED_instance; + } + function values$factory_94() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_95() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_96() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_97() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_98() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_99() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_100() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_101() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_102() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_103() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_104() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_105() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_106() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_107() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_108() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_109() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_110() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_111() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_112() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function moduleItemNumber$factory() { + return getPropertyCallableRef('moduleItemNumber', 1, KProperty1, function (receiver) { + return _get_moduleItemNumber__nvmghp(receiver); + }, null); + } + function moduleItemValues$factory() { + return getPropertyCallableRef('moduleItemValues', 1, KProperty1, function (receiver) { + return receiver.moduleItemValues; + }, null); + } + function itemNumber$factory_1() { + return getPropertyCallableRef('itemNumber', 1, KProperty1, function (receiver) { + return _get_itemNumber__22vn01_1(receiver); + }, null); + } + function itemValues$factory_1() { + return getPropertyCallableRef('itemValues', 1, KProperty1, function (receiver) { + return receiver.itemValues; + }, null); + } + function itemNumber$factory_2() { + return getPropertyCallableRef('itemNumber', 1, KProperty1, function (receiver) { + return _get_itemNumber__22vn01_2(receiver); + }, null); + } + function itemValues$factory_2() { + return getPropertyCallableRef('itemValues', 1, KProperty1, function (receiver) { + return receiver.itemValues; + }, null); + } + function moduleItemNumber$factory_0() { + return getPropertyCallableRef('moduleItemNumber', 1, KProperty1, function (receiver) { + return _get_moduleItemNumber__nvmghp_0(receiver); + }, null); + } + function moduleItemValues$factory_0() { + return getPropertyCallableRef('moduleItemValues', 1, KProperty1, function (receiver) { + return receiver.moduleItemValues; + }, null); + } + function extendNumber$factory_1() { + return getPropertyCallableRef('extendNumber', 1, KProperty1, function (receiver) { + return _get_extendNumber__l91wt4_1(receiver); + }, null); + } + function extendValues$factory_1() { + return getPropertyCallableRef('extendValues', 1, KProperty1, function (receiver) { + return receiver.extendValues; + }, null); + } + function itemNumber$factory_3() { + return getPropertyCallableRef('itemNumber', 1, KProperty1, function (receiver) { + return _get_itemNumber__22vn01_3(receiver); + }, null); + } + function itemValues$factory_3() { + return getPropertyCallableRef('itemValues', 1, KProperty1, function (receiver) { + return receiver.itemValues; + }, null); + } + function values$factory_113() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function rcmdItemNumber$factory_1() { + return getPropertyCallableRef('rcmdItemNumber', 1, KProperty1, function (receiver) { + return _get_rcmdItemNumber__ys0evt_1(receiver); + }, null); + } + function rcmdItemValues$factory_1() { + return getPropertyCallableRef('rcmdItemValues', 1, KProperty1, function (receiver) { + return receiver.rcmdItemValues; + }, null); + } + function _get_$cachedSerializer__te6jhj_114($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KMediaType$Companion$values$delegate$lambda() { + return listOf_0([KMediaType_NONE_getInstance(), KMediaType_UGC_getInstance(), KMediaType_PGC_getInstance(), KMediaType_LIVE_getInstance(), KMediaType_VCS_getInstance()]); + } + function KMediaType$Companion$_anonymous__xrzr98() { + return $serializer_getInstance_1046(); + } + var KMediaType_NONE_instance; + var KMediaType_UGC_instance; + var KMediaType_PGC_instance; + var KMediaType_LIVE_instance; + var KMediaType_VCS_instance; + var KMediaType_UNRECOGNIZED_instance; + var Companion_instance_1059; + function Companion_getInstance_1059() { + KMediaType_initEntries(); + if (Companion_instance_1059 === VOID) + new Companion_1059(); + return Companion_instance_1059; + } + var $serializer_instance_1046; + function $serializer_getInstance_1046() { + KMediaType_initEntries(); + if ($serializer_instance_1046 === VOID) + new $serializer_1046(); + return $serializer_instance_1046; + } + function values_114() { + return [KMediaType_NONE_getInstance(), KMediaType_UGC_getInstance(), KMediaType_PGC_getInstance(), KMediaType_LIVE_getInstance(), KMediaType_VCS_getInstance(), KMediaType_UNRECOGNIZED_getInstance()]; + } + function valueOf_114(value) { + switch (value) { + case 'NONE': + return KMediaType_NONE_getInstance(); + case 'UGC': + return KMediaType_UGC_getInstance(); + case 'PGC': + return KMediaType_PGC_getInstance(); + case 'LIVE': + return KMediaType_LIVE_getInstance(); + case 'VCS': + return KMediaType_VCS_getInstance(); + case 'UNRECOGNIZED': + return KMediaType_UNRECOGNIZED_getInstance(); + default: + KMediaType_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KMediaType_entriesInitialized; + function KMediaType_initEntries() { + if (KMediaType_entriesInitialized) + return Unit_instance; + KMediaType_entriesInitialized = true; + KMediaType_NONE_instance = new KMediaType('NONE', 0, 0); + KMediaType_UGC_instance = new KMediaType('UGC', 1, 1); + KMediaType_PGC_instance = new KMediaType('PGC', 2, 2); + KMediaType_LIVE_instance = new KMediaType('LIVE', 3, 3); + KMediaType_VCS_instance = new KMediaType('VCS', 4, 4); + KMediaType_UNRECOGNIZED_instance = new KMediaType('UNRECOGNIZED', 5, -1); + Companion_getInstance_1059(); + } + function _get_$cachedSerializer__te6jhj_115($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KReserveType$Companion$values$delegate$lambda() { + return listOf_0([KReserveType_RESERVE_NONE_getInstance(), KReserveType_RESERVE_RECALL_getInstance()]); + } + function KReserveType$Companion$_anonymous__49ldr0() { + return $serializer_getInstance_1047(); + } + var KReserveType_RESERVE_NONE_instance; + var KReserveType_RESERVE_RECALL_instance; + var KReserveType_UNRECOGNIZED_instance; + var Companion_instance_1060; + function Companion_getInstance_1060() { + KReserveType_initEntries(); + if (Companion_instance_1060 === VOID) + new Companion_1060(); + return Companion_instance_1060; + } + var $serializer_instance_1047; + function $serializer_getInstance_1047() { + KReserveType_initEntries(); + if ($serializer_instance_1047 === VOID) + new $serializer_1047(); + return $serializer_instance_1047; + } + function values_115() { + return [KReserveType_RESERVE_NONE_getInstance(), KReserveType_RESERVE_RECALL_getInstance(), KReserveType_UNRECOGNIZED_getInstance()]; + } + function valueOf_115(value) { + switch (value) { + case 'RESERVE_NONE': + return KReserveType_RESERVE_NONE_getInstance(); + case 'RESERVE_RECALL': + return KReserveType_RESERVE_RECALL_getInstance(); + case 'UNRECOGNIZED': + return KReserveType_UNRECOGNIZED_getInstance(); + default: + KReserveType_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KReserveType_entriesInitialized; + function KReserveType_initEntries() { + if (KReserveType_entriesInitialized) + return Unit_instance; + KReserveType_entriesInitialized = true; + KReserveType_RESERVE_NONE_instance = new KReserveType('RESERVE_NONE', 0, 0); + KReserveType_RESERVE_RECALL_instance = new KReserveType('RESERVE_RECALL', 1, 1); + KReserveType_UNRECOGNIZED_instance = new KReserveType('UNRECOGNIZED', 2, -1); + Companion_getInstance_1060(); + } + function _get_$cachedSerializer__te6jhj_116($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KIconResLocal$Companion$values$delegate$lambda() { + return listOf_0([KIconResLocal_NONE_getInstance(), KIconResLocal_LIVE_getInstance()]); + } + function KIconResLocal$Companion$_anonymous__ynoukg() { + return $serializer_getInstance_1048(); + } + var KIconResLocal_NONE_instance; + var KIconResLocal_LIVE_instance; + var KIconResLocal_UNRECOGNIZED_instance; + var Companion_instance_1061; + function Companion_getInstance_1061() { + KIconResLocal_initEntries(); + if (Companion_instance_1061 === VOID) + new Companion_1061(); + return Companion_instance_1061; + } + var $serializer_instance_1048; + function $serializer_getInstance_1048() { + KIconResLocal_initEntries(); + if ($serializer_instance_1048 === VOID) + new $serializer_1048(); + return $serializer_instance_1048; + } + function values_116() { + return [KIconResLocal_NONE_getInstance(), KIconResLocal_LIVE_getInstance(), KIconResLocal_UNRECOGNIZED_getInstance()]; + } + function valueOf_116(value) { + switch (value) { + case 'NONE': + return KIconResLocal_NONE_getInstance(); + case 'LIVE': + return KIconResLocal_LIVE_getInstance(); + case 'UNRECOGNIZED': + return KIconResLocal_UNRECOGNIZED_getInstance(); + default: + KIconResLocal_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KIconResLocal_entriesInitialized; + function KIconResLocal_initEntries() { + if (KIconResLocal_entriesInitialized) + return Unit_instance; + KIconResLocal_entriesInitialized = true; + KIconResLocal_NONE_instance = new KIconResLocal('NONE', 0, 0); + KIconResLocal_LIVE_instance = new KIconResLocal('LIVE', 1, 1); + KIconResLocal_UNRECOGNIZED_instance = new KIconResLocal('UNRECOGNIZED', 2, -1); + Companion_getInstance_1061(); + } + function _get_$cachedSerializer__te6jhj_117($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KVideoType$Companion$values$delegate$lambda() { + return listOf_0([KVideoType_GENERAL_getInstance(), KVideoType_DYNAMIC_getInstance(), KVideoType_PLAYBACK_getInstance(), KVideoType_STORY_getInstance()]); + } + function KVideoType$Companion$_anonymous__pfucit() { + return $serializer_getInstance_1049(); + } + var KVideoType_GENERAL_instance; + var KVideoType_DYNAMIC_instance; + var KVideoType_PLAYBACK_instance; + var KVideoType_STORY_instance; + var KVideoType_UNRECOGNIZED_instance; + var Companion_instance_1062; + function Companion_getInstance_1062() { + KVideoType_initEntries(); + if (Companion_instance_1062 === VOID) + new Companion_1062(); + return Companion_instance_1062; + } + var $serializer_instance_1049; + function $serializer_getInstance_1049() { + KVideoType_initEntries(); + if ($serializer_instance_1049 === VOID) + new $serializer_1049(); + return $serializer_instance_1049; + } + function values_117() { + return [KVideoType_GENERAL_getInstance(), KVideoType_DYNAMIC_getInstance(), KVideoType_PLAYBACK_getInstance(), KVideoType_STORY_getInstance(), KVideoType_UNRECOGNIZED_getInstance()]; + } + function valueOf_117(value) { + switch (value) { + case 'GENERAL': + return KVideoType_GENERAL_getInstance(); + case 'DYNAMIC': + return KVideoType_DYNAMIC_getInstance(); + case 'PLAYBACK': + return KVideoType_PLAYBACK_getInstance(); + case 'STORY': + return KVideoType_STORY_getInstance(); + case 'UNRECOGNIZED': + return KVideoType_UNRECOGNIZED_getInstance(); + default: + KVideoType_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KVideoType_entriesInitialized; + function KVideoType_initEntries() { + if (KVideoType_entriesInitialized) + return Unit_instance; + KVideoType_entriesInitialized = true; + KVideoType_GENERAL_instance = new KVideoType('GENERAL', 0, 0); + KVideoType_DYNAMIC_instance = new KVideoType('DYNAMIC', 1, 1); + KVideoType_PLAYBACK_instance = new KVideoType('PLAYBACK', 2, 2); + KVideoType_STORY_instance = new KVideoType('STORY', 3, 3); + KVideoType_UNRECOGNIZED_instance = new KVideoType('UNRECOGNIZED', 4, -1); + Companion_getInstance_1062(); + } + function _get_$cachedSerializer__te6jhj_118($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KVideoSubType$Companion$values$delegate$lambda() { + return listOf_0([KVideoSubType_NONE_getInstance(), KVideoSubType_BANGUMI_getInstance(), KVideoSubType_MOVIE_getInstance(), KVideoSubType_DOCUMENTARY_getInstance(), KVideoSubType_DOMESTIC_getInstance(), KVideoSubType_TELEPLAY_getInstance()]); + } + function KVideoSubType$Companion$_anonymous__9zhsx1() { + return $serializer_getInstance_1050(); + } + var KVideoSubType_NONE_instance; + var KVideoSubType_BANGUMI_instance; + var KVideoSubType_MOVIE_instance; + var KVideoSubType_DOCUMENTARY_instance; + var KVideoSubType_DOMESTIC_instance; + var KVideoSubType_TELEPLAY_instance; + var KVideoSubType_UNRECOGNIZED_instance; + var Companion_instance_1063; + function Companion_getInstance_1063() { + KVideoSubType_initEntries(); + if (Companion_instance_1063 === VOID) + new Companion_1063(); + return Companion_instance_1063; + } + var $serializer_instance_1050; + function $serializer_getInstance_1050() { + KVideoSubType_initEntries(); + if ($serializer_instance_1050 === VOID) + new $serializer_1050(); + return $serializer_instance_1050; + } + function values_118() { + return [KVideoSubType_NONE_getInstance(), KVideoSubType_BANGUMI_getInstance(), KVideoSubType_MOVIE_getInstance(), KVideoSubType_DOCUMENTARY_getInstance(), KVideoSubType_DOMESTIC_getInstance(), KVideoSubType_TELEPLAY_getInstance(), KVideoSubType_UNRECOGNIZED_getInstance()]; + } + function valueOf_118(value) { + switch (value) { + case 'NONE': + return KVideoSubType_NONE_getInstance(); + case 'BANGUMI': + return KVideoSubType_BANGUMI_getInstance(); + case 'MOVIE': + return KVideoSubType_MOVIE_getInstance(); + case 'DOCUMENTARY': + return KVideoSubType_DOCUMENTARY_getInstance(); + case 'DOMESTIC': + return KVideoSubType_DOMESTIC_getInstance(); + case 'TELEPLAY': + return KVideoSubType_TELEPLAY_getInstance(); + case 'UNRECOGNIZED': + return KVideoSubType_UNRECOGNIZED_getInstance(); + default: + KVideoSubType_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KVideoSubType_entriesInitialized; + function KVideoSubType_initEntries() { + if (KVideoSubType_entriesInitialized) + return Unit_instance; + KVideoSubType_entriesInitialized = true; + KVideoSubType_NONE_instance = new KVideoSubType('NONE', 0, 0); + KVideoSubType_BANGUMI_instance = new KVideoSubType('BANGUMI', 1, 1); + KVideoSubType_MOVIE_instance = new KVideoSubType('MOVIE', 2, 2); + KVideoSubType_DOCUMENTARY_instance = new KVideoSubType('DOCUMENTARY', 3, 3); + KVideoSubType_DOMESTIC_instance = new KVideoSubType('DOMESTIC', 4, 4); + KVideoSubType_TELEPLAY_instance = new KVideoSubType('TELEPLAY', 5, 5); + KVideoSubType_UNRECOGNIZED_instance = new KVideoSubType('UNRECOGNIZED', 6, -1); + Companion_getInstance_1063(); + } + function _get_$cachedSerializer__te6jhj_119($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KMdlDynDrawTagType$Companion$values$delegate$lambda() { + return listOf_0([KMdlDynDrawTagType_MDL_DRAW_TAG_NONE_getInstance(), KMdlDynDrawTagType_MDL_DRAW_TAG_COMMON_getInstance(), KMdlDynDrawTagType_MDL_DRAW_TAG_GOODS_getInstance(), KMdlDynDrawTagType_MDL_DRAW_TAG_USER_getInstance(), KMdlDynDrawTagType_MDL_DRAW_TAG_TOPIC_getInstance(), KMdlDynDrawTagType_MDL_DRAW_TAG_LBS_getInstance()]); + } + function KMdlDynDrawTagType$Companion$_anonymous__o8kmmm() { + return $serializer_getInstance_1051(); + } + var KMdlDynDrawTagType_MDL_DRAW_TAG_NONE_instance; + var KMdlDynDrawTagType_MDL_DRAW_TAG_COMMON_instance; + var KMdlDynDrawTagType_MDL_DRAW_TAG_GOODS_instance; + var KMdlDynDrawTagType_MDL_DRAW_TAG_USER_instance; + var KMdlDynDrawTagType_MDL_DRAW_TAG_TOPIC_instance; + var KMdlDynDrawTagType_MDL_DRAW_TAG_LBS_instance; + var KMdlDynDrawTagType_UNRECOGNIZED_instance; + var Companion_instance_1064; + function Companion_getInstance_1064() { + KMdlDynDrawTagType_initEntries(); + if (Companion_instance_1064 === VOID) + new Companion_1064(); + return Companion_instance_1064; + } + var $serializer_instance_1051; + function $serializer_getInstance_1051() { + KMdlDynDrawTagType_initEntries(); + if ($serializer_instance_1051 === VOID) + new $serializer_1051(); + return $serializer_instance_1051; + } + function values_119() { + return [KMdlDynDrawTagType_MDL_DRAW_TAG_NONE_getInstance(), KMdlDynDrawTagType_MDL_DRAW_TAG_COMMON_getInstance(), KMdlDynDrawTagType_MDL_DRAW_TAG_GOODS_getInstance(), KMdlDynDrawTagType_MDL_DRAW_TAG_USER_getInstance(), KMdlDynDrawTagType_MDL_DRAW_TAG_TOPIC_getInstance(), KMdlDynDrawTagType_MDL_DRAW_TAG_LBS_getInstance(), KMdlDynDrawTagType_UNRECOGNIZED_getInstance()]; + } + function valueOf_119(value) { + switch (value) { + case 'MDL_DRAW_TAG_NONE': + return KMdlDynDrawTagType_MDL_DRAW_TAG_NONE_getInstance(); + case 'MDL_DRAW_TAG_COMMON': + return KMdlDynDrawTagType_MDL_DRAW_TAG_COMMON_getInstance(); + case 'MDL_DRAW_TAG_GOODS': + return KMdlDynDrawTagType_MDL_DRAW_TAG_GOODS_getInstance(); + case 'MDL_DRAW_TAG_USER': + return KMdlDynDrawTagType_MDL_DRAW_TAG_USER_getInstance(); + case 'MDL_DRAW_TAG_TOPIC': + return KMdlDynDrawTagType_MDL_DRAW_TAG_TOPIC_getInstance(); + case 'MDL_DRAW_TAG_LBS': + return KMdlDynDrawTagType_MDL_DRAW_TAG_LBS_getInstance(); + case 'UNRECOGNIZED': + return KMdlDynDrawTagType_UNRECOGNIZED_getInstance(); + default: + KMdlDynDrawTagType_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KMdlDynDrawTagType_entriesInitialized; + function KMdlDynDrawTagType_initEntries() { + if (KMdlDynDrawTagType_entriesInitialized) + return Unit_instance; + KMdlDynDrawTagType_entriesInitialized = true; + KMdlDynDrawTagType_MDL_DRAW_TAG_NONE_instance = new KMdlDynDrawTagType('MDL_DRAW_TAG_NONE', 0, 0); + KMdlDynDrawTagType_MDL_DRAW_TAG_COMMON_instance = new KMdlDynDrawTagType('MDL_DRAW_TAG_COMMON', 1, 1); + KMdlDynDrawTagType_MDL_DRAW_TAG_GOODS_instance = new KMdlDynDrawTagType('MDL_DRAW_TAG_GOODS', 2, 2); + KMdlDynDrawTagType_MDL_DRAW_TAG_USER_instance = new KMdlDynDrawTagType('MDL_DRAW_TAG_USER', 3, 3); + KMdlDynDrawTagType_MDL_DRAW_TAG_TOPIC_instance = new KMdlDynDrawTagType('MDL_DRAW_TAG_TOPIC', 4, 4); + KMdlDynDrawTagType_MDL_DRAW_TAG_LBS_instance = new KMdlDynDrawTagType('MDL_DRAW_TAG_LBS', 5, 5); + KMdlDynDrawTagType_UNRECOGNIZED_instance = new KMdlDynDrawTagType('UNRECOGNIZED', 6, -1); + Companion_getInstance_1064(); + } + function _get_$cachedSerializer__te6jhj_120($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KAddButtonType$Companion$values$delegate$lambda() { + return listOf_0([KAddButtonType_BT_NONE_getInstance(), KAddButtonType_BT_JUMP_getInstance(), KAddButtonType_BT_BUTTON_getInstance()]); + } + function KAddButtonType$Companion$_anonymous__r9wh8z() { + return $serializer_getInstance_1052(); + } + var KAddButtonType_BT_NONE_instance; + var KAddButtonType_BT_JUMP_instance; + var KAddButtonType_BT_BUTTON_instance; + var KAddButtonType_UNRECOGNIZED_instance; + var Companion_instance_1065; + function Companion_getInstance_1065() { + KAddButtonType_initEntries(); + if (Companion_instance_1065 === VOID) + new Companion_1065(); + return Companion_instance_1065; + } + var $serializer_instance_1052; + function $serializer_getInstance_1052() { + KAddButtonType_initEntries(); + if ($serializer_instance_1052 === VOID) + new $serializer_1052(); + return $serializer_instance_1052; + } + function values_120() { + return [KAddButtonType_BT_NONE_getInstance(), KAddButtonType_BT_JUMP_getInstance(), KAddButtonType_BT_BUTTON_getInstance(), KAddButtonType_UNRECOGNIZED_getInstance()]; + } + function valueOf_120(value) { + switch (value) { + case 'BT_NONE': + return KAddButtonType_BT_NONE_getInstance(); + case 'BT_JUMP': + return KAddButtonType_BT_JUMP_getInstance(); + case 'BT_BUTTON': + return KAddButtonType_BT_BUTTON_getInstance(); + case 'UNRECOGNIZED': + return KAddButtonType_UNRECOGNIZED_getInstance(); + default: + KAddButtonType_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KAddButtonType_entriesInitialized; + function KAddButtonType_initEntries() { + if (KAddButtonType_entriesInitialized) + return Unit_instance; + KAddButtonType_entriesInitialized = true; + KAddButtonType_BT_NONE_instance = new KAddButtonType('BT_NONE', 0, 0); + KAddButtonType_BT_JUMP_instance = new KAddButtonType('BT_JUMP', 1, 1); + KAddButtonType_BT_BUTTON_instance = new KAddButtonType('BT_BUTTON', 2, 2); + KAddButtonType_UNRECOGNIZED_instance = new KAddButtonType('UNRECOGNIZED', 3, -1); + Companion_getInstance_1065(); + } + function _get_$cachedSerializer__te6jhj_121($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KAdditionalButtonStatus$Companion$values$delegate$lambda() { + return listOf_0([KAdditionalButtonStatus_NONE_getInstance(), KAdditionalButtonStatus_UNCHECK_getInstance(), KAdditionalButtonStatus_CHECK_getInstance()]); + } + function KAdditionalButtonStatus$Companion$_anonymous__s2uavb() { + return $serializer_getInstance_1053(); + } + var KAdditionalButtonStatus_NONE_instance; + var KAdditionalButtonStatus_UNCHECK_instance; + var KAdditionalButtonStatus_CHECK_instance; + var KAdditionalButtonStatus_UNRECOGNIZED_instance; + var Companion_instance_1066; + function Companion_getInstance_1066() { + KAdditionalButtonStatus_initEntries(); + if (Companion_instance_1066 === VOID) + new Companion_1066(); + return Companion_instance_1066; + } + var $serializer_instance_1053; + function $serializer_getInstance_1053() { + KAdditionalButtonStatus_initEntries(); + if ($serializer_instance_1053 === VOID) + new $serializer_1053(); + return $serializer_instance_1053; + } + function values_121() { + return [KAdditionalButtonStatus_NONE_getInstance(), KAdditionalButtonStatus_UNCHECK_getInstance(), KAdditionalButtonStatus_CHECK_getInstance(), KAdditionalButtonStatus_UNRECOGNIZED_getInstance()]; + } + function valueOf_121(value) { + switch (value) { + case 'NONE': + return KAdditionalButtonStatus_NONE_getInstance(); + case 'UNCHECK': + return KAdditionalButtonStatus_UNCHECK_getInstance(); + case 'CHECK': + return KAdditionalButtonStatus_CHECK_getInstance(); + case 'UNRECOGNIZED': + return KAdditionalButtonStatus_UNRECOGNIZED_getInstance(); + default: + KAdditionalButtonStatus_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KAdditionalButtonStatus_entriesInitialized; + function KAdditionalButtonStatus_initEntries() { + if (KAdditionalButtonStatus_entriesInitialized) + return Unit_instance; + KAdditionalButtonStatus_entriesInitialized = true; + KAdditionalButtonStatus_NONE_instance = new KAdditionalButtonStatus('NONE', 0, 0); + KAdditionalButtonStatus_UNCHECK_instance = new KAdditionalButtonStatus('UNCHECK', 1, 1); + KAdditionalButtonStatus_CHECK_instance = new KAdditionalButtonStatus('CHECK', 2, 2); + KAdditionalButtonStatus_UNRECOGNIZED_instance = new KAdditionalButtonStatus('UNRECOGNIZED', 3, -1); + Companion_getInstance_1066(); + } + function _get_$cachedSerializer__te6jhj_122($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KAdditionalButtonClickType$Companion$values$delegate$lambda() { + return listOf_0([KAdditionalButtonClickType_CLICK_NONE_getInstance(), KAdditionalButtonClickType_CLICK_UP_getInstance()]); + } + function KAdditionalButtonClickType$Companion$_anonymous__6m4kgh() { + return $serializer_getInstance_1054(); + } + var KAdditionalButtonClickType_CLICK_NONE_instance; + var KAdditionalButtonClickType_CLICK_UP_instance; + var KAdditionalButtonClickType_UNRECOGNIZED_instance; + var Companion_instance_1067; + function Companion_getInstance_1067() { + KAdditionalButtonClickType_initEntries(); + if (Companion_instance_1067 === VOID) + new Companion_1067(); + return Companion_instance_1067; + } + var $serializer_instance_1054; + function $serializer_getInstance_1054() { + KAdditionalButtonClickType_initEntries(); + if ($serializer_instance_1054 === VOID) + new $serializer_1054(); + return $serializer_instance_1054; + } + function values_122() { + return [KAdditionalButtonClickType_CLICK_NONE_getInstance(), KAdditionalButtonClickType_CLICK_UP_getInstance(), KAdditionalButtonClickType_UNRECOGNIZED_getInstance()]; + } + function valueOf_122(value) { + switch (value) { + case 'CLICK_NONE': + return KAdditionalButtonClickType_CLICK_NONE_getInstance(); + case 'CLICK_UP': + return KAdditionalButtonClickType_CLICK_UP_getInstance(); + case 'UNRECOGNIZED': + return KAdditionalButtonClickType_UNRECOGNIZED_getInstance(); + default: + KAdditionalButtonClickType_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KAdditionalButtonClickType_entriesInitialized; + function KAdditionalButtonClickType_initEntries() { + if (KAdditionalButtonClickType_entriesInitialized) + return Unit_instance; + KAdditionalButtonClickType_entriesInitialized = true; + KAdditionalButtonClickType_CLICK_NONE_instance = new KAdditionalButtonClickType('CLICK_NONE', 0, 0); + KAdditionalButtonClickType_CLICK_UP_instance = new KAdditionalButtonClickType('CLICK_UP', 1, 1); + KAdditionalButtonClickType_UNRECOGNIZED_instance = new KAdditionalButtonClickType('UNRECOGNIZED', 2, -1); + Companion_getInstance_1067(); + } + function _get_$cachedSerializer__te6jhj_123($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KAdditionalShareShowType$Companion$values$delegate$lambda() { + return listOf_0([KAdditionalShareShowType_ST_NONE_getInstance(), KAdditionalShareShowType_ST_SHOW_getInstance()]); + } + function KAdditionalShareShowType$Companion$_anonymous__zeugz9() { + return $serializer_getInstance_1055(); + } + var KAdditionalShareShowType_ST_NONE_instance; + var KAdditionalShareShowType_ST_SHOW_instance; + var KAdditionalShareShowType_UNRECOGNIZED_instance; + var Companion_instance_1068; + function Companion_getInstance_1068() { + KAdditionalShareShowType_initEntries(); + if (Companion_instance_1068 === VOID) + new Companion_1068(); + return Companion_instance_1068; + } + var $serializer_instance_1055; + function $serializer_getInstance_1055() { + KAdditionalShareShowType_initEntries(); + if ($serializer_instance_1055 === VOID) + new $serializer_1055(); + return $serializer_instance_1055; + } + function values_123() { + return [KAdditionalShareShowType_ST_NONE_getInstance(), KAdditionalShareShowType_ST_SHOW_getInstance(), KAdditionalShareShowType_UNRECOGNIZED_getInstance()]; + } + function valueOf_123(value) { + switch (value) { + case 'ST_NONE': + return KAdditionalShareShowType_ST_NONE_getInstance(); + case 'ST_SHOW': + return KAdditionalShareShowType_ST_SHOW_getInstance(); + case 'UNRECOGNIZED': + return KAdditionalShareShowType_UNRECOGNIZED_getInstance(); + default: + KAdditionalShareShowType_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KAdditionalShareShowType_entriesInitialized; + function KAdditionalShareShowType_initEntries() { + if (KAdditionalShareShowType_entriesInitialized) + return Unit_instance; + KAdditionalShareShowType_entriesInitialized = true; + KAdditionalShareShowType_ST_NONE_instance = new KAdditionalShareShowType('ST_NONE', 0, 0); + KAdditionalShareShowType_ST_SHOW_instance = new KAdditionalShareShowType('ST_SHOW', 1, 1); + KAdditionalShareShowType_UNRECOGNIZED_instance = new KAdditionalShareShowType('UNRECOGNIZED', 2, -1); + Companion_getInstance_1068(); + } + function _get_$cachedSerializer__te6jhj_124($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KDisableState$Companion$values$delegate$lambda() { + return listOf_0([KDisableState_HIGHLIGHT_getInstance(), KDisableState_GARY_getInstance()]); + } + function KDisableState$Companion$_anonymous__tqbfi3() { + return $serializer_getInstance_1056(); + } + var KDisableState_HIGHLIGHT_instance; + var KDisableState_GARY_instance; + var KDisableState_UNRECOGNIZED_instance; + var Companion_instance_1069; + function Companion_getInstance_1069() { + KDisableState_initEntries(); + if (Companion_instance_1069 === VOID) + new Companion_1069(); + return Companion_instance_1069; + } + var $serializer_instance_1056; + function $serializer_getInstance_1056() { + KDisableState_initEntries(); + if ($serializer_instance_1056 === VOID) + new $serializer_1056(); + return $serializer_instance_1056; + } + function values_124() { + return [KDisableState_HIGHLIGHT_getInstance(), KDisableState_GARY_getInstance(), KDisableState_UNRECOGNIZED_getInstance()]; + } + function valueOf_124(value) { + switch (value) { + case 'HIGHLIGHT': + return KDisableState_HIGHLIGHT_getInstance(); + case 'GARY': + return KDisableState_GARY_getInstance(); + case 'UNRECOGNIZED': + return KDisableState_UNRECOGNIZED_getInstance(); + default: + KDisableState_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KDisableState_entriesInitialized; + function KDisableState_initEntries() { + if (KDisableState_entriesInitialized) + return Unit_instance; + KDisableState_entriesInitialized = true; + KDisableState_HIGHLIGHT_instance = new KDisableState('HIGHLIGHT', 0, 0); + KDisableState_GARY_instance = new KDisableState('GARY', 1, 1); + KDisableState_UNRECOGNIZED_instance = new KDisableState('UNRECOGNIZED', 2, -1); + Companion_getInstance_1069(); + } + function _get_$cachedSerializer__te6jhj_125($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KAddButtonBgStyle$Companion$values$delegate$lambda() { + return listOf_0([KAddButtonBgStyle_FILL_getInstance(), KAddButtonBgStyle_STROKE_getInstance(), KAddButtonBgStyle_GRAY_getInstance()]); + } + function KAddButtonBgStyle$Companion$_anonymous__64tawl() { + return $serializer_getInstance_1057(); + } + var KAddButtonBgStyle_FILL_instance; + var KAddButtonBgStyle_STROKE_instance; + var KAddButtonBgStyle_GRAY_instance; + var KAddButtonBgStyle_UNRECOGNIZED_instance; + var Companion_instance_1070; + function Companion_getInstance_1070() { + KAddButtonBgStyle_initEntries(); + if (Companion_instance_1070 === VOID) + new Companion_1070(); + return Companion_instance_1070; + } + var $serializer_instance_1057; + function $serializer_getInstance_1057() { + KAddButtonBgStyle_initEntries(); + if ($serializer_instance_1057 === VOID) + new $serializer_1057(); + return $serializer_instance_1057; + } + function values_125() { + return [KAddButtonBgStyle_FILL_getInstance(), KAddButtonBgStyle_STROKE_getInstance(), KAddButtonBgStyle_GRAY_getInstance(), KAddButtonBgStyle_UNRECOGNIZED_getInstance()]; + } + function valueOf_125(value) { + switch (value) { + case 'FILL': + return KAddButtonBgStyle_FILL_getInstance(); + case 'STROKE': + return KAddButtonBgStyle_STROKE_getInstance(); + case 'GRAY': + return KAddButtonBgStyle_GRAY_getInstance(); + case 'UNRECOGNIZED': + return KAddButtonBgStyle_UNRECOGNIZED_getInstance(); + default: + KAddButtonBgStyle_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KAddButtonBgStyle_entriesInitialized; + function KAddButtonBgStyle_initEntries() { + if (KAddButtonBgStyle_entriesInitialized) + return Unit_instance; + KAddButtonBgStyle_entriesInitialized = true; + KAddButtonBgStyle_FILL_instance = new KAddButtonBgStyle('FILL', 0, 0); + KAddButtonBgStyle_STROKE_instance = new KAddButtonBgStyle('STROKE', 1, 1); + KAddButtonBgStyle_GRAY_instance = new KAddButtonBgStyle('GRAY', 2, 2); + KAddButtonBgStyle_UNRECOGNIZED_instance = new KAddButtonBgStyle('UNRECOGNIZED', 3, -1); + Companion_getInstance_1070(); + } + function _get_$cachedSerializer__te6jhj_126($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KMdlDynCommonType$Companion$values$delegate$lambda() { + return listOf_0([KMdlDynCommonType_MDL_DYN_COMMON_NONE_getInstance(), KMdlDynCommonType_MDL_DYN_COMMON_SQUARE_getInstance(), KMdlDynCommonType_MDL_DYN_COMMON_VERTICA_getInstance()]); + } + function KMdlDynCommonType$Companion$_anonymous__gsp7hh() { + return $serializer_getInstance_1058(); + } + var KMdlDynCommonType_MDL_DYN_COMMON_NONE_instance; + var KMdlDynCommonType_MDL_DYN_COMMON_SQUARE_instance; + var KMdlDynCommonType_MDL_DYN_COMMON_VERTICA_instance; + var KMdlDynCommonType_UNRECOGNIZED_instance; + var Companion_instance_1071; + function Companion_getInstance_1071() { + KMdlDynCommonType_initEntries(); + if (Companion_instance_1071 === VOID) + new Companion_1071(); + return Companion_instance_1071; + } + var $serializer_instance_1058; + function $serializer_getInstance_1058() { + KMdlDynCommonType_initEntries(); + if ($serializer_instance_1058 === VOID) + new $serializer_1058(); + return $serializer_instance_1058; + } + function values_126() { + return [KMdlDynCommonType_MDL_DYN_COMMON_NONE_getInstance(), KMdlDynCommonType_MDL_DYN_COMMON_SQUARE_getInstance(), KMdlDynCommonType_MDL_DYN_COMMON_VERTICA_getInstance(), KMdlDynCommonType_UNRECOGNIZED_getInstance()]; + } + function valueOf_126(value) { + switch (value) { + case 'MDL_DYN_COMMON_NONE': + return KMdlDynCommonType_MDL_DYN_COMMON_NONE_getInstance(); + case 'MDL_DYN_COMMON_SQUARE': + return KMdlDynCommonType_MDL_DYN_COMMON_SQUARE_getInstance(); + case 'MDL_DYN_COMMON_VERTICA': + return KMdlDynCommonType_MDL_DYN_COMMON_VERTICA_getInstance(); + case 'UNRECOGNIZED': + return KMdlDynCommonType_UNRECOGNIZED_getInstance(); + default: + KMdlDynCommonType_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KMdlDynCommonType_entriesInitialized; + function KMdlDynCommonType_initEntries() { + if (KMdlDynCommonType_entriesInitialized) + return Unit_instance; + KMdlDynCommonType_entriesInitialized = true; + KMdlDynCommonType_MDL_DYN_COMMON_NONE_instance = new KMdlDynCommonType('MDL_DYN_COMMON_NONE', 0, 0); + KMdlDynCommonType_MDL_DYN_COMMON_SQUARE_instance = new KMdlDynCommonType('MDL_DYN_COMMON_SQUARE', 1, 1); + KMdlDynCommonType_MDL_DYN_COMMON_VERTICA_instance = new KMdlDynCommonType('MDL_DYN_COMMON_VERTICA', 2, 2); + KMdlDynCommonType_UNRECOGNIZED_instance = new KMdlDynCommonType('UNRECOGNIZED', 3, -1); + Companion_getInstance_1071(); + } + function _get_$cachedSerializer__te6jhj_127($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KLiveState$Companion$values$delegate$lambda() { + return listOf_0([KLiveState_LIVE_NONE_getInstance(), KLiveState_LIVE_LIVE_getInstance(), KLiveState_LIVE_ROTATION_getInstance()]); + } + function KLiveState$Companion$_anonymous__gtmuvf() { + return $serializer_getInstance_1059(); + } + var KLiveState_LIVE_NONE_instance; + var KLiveState_LIVE_LIVE_instance; + var KLiveState_LIVE_ROTATION_instance; + var KLiveState_UNRECOGNIZED_instance; + var Companion_instance_1072; + function Companion_getInstance_1072() { + KLiveState_initEntries(); + if (Companion_instance_1072 === VOID) + new Companion_1072(); + return Companion_instance_1072; + } + var $serializer_instance_1059; + function $serializer_getInstance_1059() { + KLiveState_initEntries(); + if ($serializer_instance_1059 === VOID) + new $serializer_1059(); + return $serializer_instance_1059; + } + function values_127() { + return [KLiveState_LIVE_NONE_getInstance(), KLiveState_LIVE_LIVE_getInstance(), KLiveState_LIVE_ROTATION_getInstance(), KLiveState_UNRECOGNIZED_getInstance()]; + } + function valueOf_127(value) { + switch (value) { + case 'LIVE_NONE': + return KLiveState_LIVE_NONE_getInstance(); + case 'LIVE_LIVE': + return KLiveState_LIVE_LIVE_getInstance(); + case 'LIVE_ROTATION': + return KLiveState_LIVE_ROTATION_getInstance(); + case 'UNRECOGNIZED': + return KLiveState_UNRECOGNIZED_getInstance(); + default: + KLiveState_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KLiveState_entriesInitialized; + function KLiveState_initEntries() { + if (KLiveState_entriesInitialized) + return Unit_instance; + KLiveState_entriesInitialized = true; + KLiveState_LIVE_NONE_instance = new KLiveState('LIVE_NONE', 0, 0); + KLiveState_LIVE_LIVE_instance = new KLiveState('LIVE_LIVE', 1, 1); + KLiveState_LIVE_ROTATION_instance = new KLiveState('LIVE_ROTATION', 2, 2); + KLiveState_UNRECOGNIZED_instance = new KLiveState('UNRECOGNIZED', 3, -1); + Companion_getInstance_1072(); + } + function _get_$cachedSerializer__te6jhj_128($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KMdlDynSubscriptionNewStyle$Companion$values$delegate$lambda() { + return listOf_0([KMdlDynSubscriptionNewStyle_NONT_getInstance(), KMdlDynSubscriptionNewStyle_LIVE_getInstance(), KMdlDynSubscriptionNewStyle_DRAW_getInstance()]); + } + function KMdlDynSubscriptionNewStyle$Companion$_anonymous__tmum0i() { + return $serializer_getInstance_1060(); + } + var KMdlDynSubscriptionNewStyle_NONT_instance; + var KMdlDynSubscriptionNewStyle_LIVE_instance; + var KMdlDynSubscriptionNewStyle_DRAW_instance; + var KMdlDynSubscriptionNewStyle_UNRECOGNIZED_instance; + var Companion_instance_1073; + function Companion_getInstance_1073() { + KMdlDynSubscriptionNewStyle_initEntries(); + if (Companion_instance_1073 === VOID) + new Companion_1073(); + return Companion_instance_1073; + } + var $serializer_instance_1060; + function $serializer_getInstance_1060() { + KMdlDynSubscriptionNewStyle_initEntries(); + if ($serializer_instance_1060 === VOID) + new $serializer_1060(); + return $serializer_instance_1060; + } + function values_128() { + return [KMdlDynSubscriptionNewStyle_NONT_getInstance(), KMdlDynSubscriptionNewStyle_LIVE_getInstance(), KMdlDynSubscriptionNewStyle_DRAW_getInstance(), KMdlDynSubscriptionNewStyle_UNRECOGNIZED_getInstance()]; + } + function valueOf_128(value) { + switch (value) { + case 'NONT': + return KMdlDynSubscriptionNewStyle_NONT_getInstance(); + case 'LIVE': + return KMdlDynSubscriptionNewStyle_LIVE_getInstance(); + case 'DRAW': + return KMdlDynSubscriptionNewStyle_DRAW_getInstance(); + case 'UNRECOGNIZED': + return KMdlDynSubscriptionNewStyle_UNRECOGNIZED_getInstance(); + default: + KMdlDynSubscriptionNewStyle_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KMdlDynSubscriptionNewStyle_entriesInitialized; + function KMdlDynSubscriptionNewStyle_initEntries() { + if (KMdlDynSubscriptionNewStyle_entriesInitialized) + return Unit_instance; + KMdlDynSubscriptionNewStyle_entriesInitialized = true; + KMdlDynSubscriptionNewStyle_NONT_instance = new KMdlDynSubscriptionNewStyle('NONT', 0, 0); + KMdlDynSubscriptionNewStyle_LIVE_instance = new KMdlDynSubscriptionNewStyle('LIVE', 1, 1); + KMdlDynSubscriptionNewStyle_DRAW_instance = new KMdlDynSubscriptionNewStyle('DRAW', 2, 2); + KMdlDynSubscriptionNewStyle_UNRECOGNIZED_instance = new KMdlDynSubscriptionNewStyle('UNRECOGNIZED', 3, -1); + Companion_getInstance_1073(); + } + function _get_$cachedSerializer__te6jhj_129($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KRouterAction$Companion$values$delegate$lambda() { + return listOf_0([KRouterAction_OPEN_getInstance(), KRouterAction_EMBED_getInstance()]); + } + function KRouterAction$Companion$_anonymous__umqj() { + return $serializer_getInstance_1061(); + } + var KRouterAction_OPEN_instance; + var KRouterAction_EMBED_instance; + var KRouterAction_UNRECOGNIZED_instance; + var Companion_instance_1074; + function Companion_getInstance_1074() { + KRouterAction_initEntries(); + if (Companion_instance_1074 === VOID) + new Companion_1074(); + return Companion_instance_1074; + } + var $serializer_instance_1061; + function $serializer_getInstance_1061() { + KRouterAction_initEntries(); + if ($serializer_instance_1061 === VOID) + new $serializer_1061(); + return $serializer_instance_1061; + } + function values_129() { + return [KRouterAction_OPEN_getInstance(), KRouterAction_EMBED_getInstance(), KRouterAction_UNRECOGNIZED_getInstance()]; + } + function valueOf_129(value) { + switch (value) { + case 'OPEN': + return KRouterAction_OPEN_getInstance(); + case 'EMBED': + return KRouterAction_EMBED_getInstance(); + case 'UNRECOGNIZED': + return KRouterAction_UNRECOGNIZED_getInstance(); + default: + KRouterAction_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KRouterAction_entriesInitialized; + function KRouterAction_initEntries() { + if (KRouterAction_entriesInitialized) + return Unit_instance; + KRouterAction_entriesInitialized = true; + KRouterAction_OPEN_instance = new KRouterAction('OPEN', 0, 0); + KRouterAction_EMBED_instance = new KRouterAction('EMBED', 1, 1); + KRouterAction_UNRECOGNIZED_instance = new KRouterAction('UNRECOGNIZED', 2, -1); + Companion_getInstance_1074(); + } + function _get_$cachedSerializer__te6jhj_130($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KAdditionalType$Companion$values$delegate$lambda() { + return listOf_0([KAdditionalType_ADDITIONAL_NONE_getInstance(), KAdditionalType_PGC_getInstance(), KAdditionalType_GOODS_getInstance(), KAdditionalType_VOTE_getInstance(), KAdditionalType_COMMON_getInstance(), KAdditionalType_ESPORT_getInstance(), KAdditionalType_UP_RCMD_getInstance(), KAdditionalType_UGC_getInstance(), KAdditionalType_UP_RESERVATION_getInstance(), KAdditionalType_ARTICLE_getInstance(), KAdditionalType_LIVE_ROOM_getInstance(), KAdditionalType_MUSIC_getInstance()]); + } + function KAdditionalType$Companion$_anonymous__a031q5() { + return $serializer_getInstance_1062(); + } + var KAdditionalType_ADDITIONAL_NONE_instance; + var KAdditionalType_PGC_instance; + var KAdditionalType_GOODS_instance; + var KAdditionalType_VOTE_instance; + var KAdditionalType_COMMON_instance; + var KAdditionalType_ESPORT_instance; + var KAdditionalType_UP_RCMD_instance; + var KAdditionalType_UGC_instance; + var KAdditionalType_UP_RESERVATION_instance; + var KAdditionalType_ARTICLE_instance; + var KAdditionalType_LIVE_ROOM_instance; + var KAdditionalType_MUSIC_instance; + var KAdditionalType_UNRECOGNIZED_instance; + var Companion_instance_1075; + function Companion_getInstance_1075() { + KAdditionalType_initEntries(); + if (Companion_instance_1075 === VOID) + new Companion_1075(); + return Companion_instance_1075; + } + var $serializer_instance_1062; + function $serializer_getInstance_1062() { + KAdditionalType_initEntries(); + if ($serializer_instance_1062 === VOID) + new $serializer_1062(); + return $serializer_instance_1062; + } + function values_130() { + return [KAdditionalType_ADDITIONAL_NONE_getInstance(), KAdditionalType_PGC_getInstance(), KAdditionalType_GOODS_getInstance(), KAdditionalType_VOTE_getInstance(), KAdditionalType_COMMON_getInstance(), KAdditionalType_ESPORT_getInstance(), KAdditionalType_UP_RCMD_getInstance(), KAdditionalType_UGC_getInstance(), KAdditionalType_UP_RESERVATION_getInstance(), KAdditionalType_ARTICLE_getInstance(), KAdditionalType_LIVE_ROOM_getInstance(), KAdditionalType_MUSIC_getInstance(), KAdditionalType_UNRECOGNIZED_getInstance()]; + } + function valueOf_130(value) { + switch (value) { + case 'ADDITIONAL_NONE': + return KAdditionalType_ADDITIONAL_NONE_getInstance(); + case 'PGC': + return KAdditionalType_PGC_getInstance(); + case 'GOODS': + return KAdditionalType_GOODS_getInstance(); + case 'VOTE': + return KAdditionalType_VOTE_getInstance(); + case 'COMMON': + return KAdditionalType_COMMON_getInstance(); + case 'ESPORT': + return KAdditionalType_ESPORT_getInstance(); + case 'UP_RCMD': + return KAdditionalType_UP_RCMD_getInstance(); + case 'UGC': + return KAdditionalType_UGC_getInstance(); + case 'UP_RESERVATION': + return KAdditionalType_UP_RESERVATION_getInstance(); + case 'ARTICLE': + return KAdditionalType_ARTICLE_getInstance(); + case 'LIVE_ROOM': + return KAdditionalType_LIVE_ROOM_getInstance(); + case 'MUSIC': + return KAdditionalType_MUSIC_getInstance(); + case 'UNRECOGNIZED': + return KAdditionalType_UNRECOGNIZED_getInstance(); + default: + KAdditionalType_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KAdditionalType_entriesInitialized; + function KAdditionalType_initEntries() { + if (KAdditionalType_entriesInitialized) + return Unit_instance; + KAdditionalType_entriesInitialized = true; + KAdditionalType_ADDITIONAL_NONE_instance = new KAdditionalType('ADDITIONAL_NONE', 0, 0); + KAdditionalType_PGC_instance = new KAdditionalType('PGC', 1, 1); + KAdditionalType_GOODS_instance = new KAdditionalType('GOODS', 2, 2); + KAdditionalType_VOTE_instance = new KAdditionalType('VOTE', 3, 3); + KAdditionalType_COMMON_instance = new KAdditionalType('COMMON', 4, 4); + KAdditionalType_ESPORT_instance = new KAdditionalType('ESPORT', 5, 5); + KAdditionalType_UP_RCMD_instance = new KAdditionalType('UP_RCMD', 6, 6); + KAdditionalType_UGC_instance = new KAdditionalType('UGC', 7, 7); + KAdditionalType_UP_RESERVATION_instance = new KAdditionalType('UP_RESERVATION', 8, 8); + KAdditionalType_ARTICLE_instance = new KAdditionalType('ARTICLE', 9, 9); + KAdditionalType_LIVE_ROOM_instance = new KAdditionalType('LIVE_ROOM', 10, 10); + KAdditionalType_MUSIC_instance = new KAdditionalType('MUSIC', 11, 11); + KAdditionalType_UNRECOGNIZED_instance = new KAdditionalType('UNRECOGNIZED', 12, -1); + Companion_getInstance_1075(); + } + function _get_$cachedSerializer__te6jhj_131($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KImageStyle$Companion$values$delegate$lambda() { + return listOf_0([KImageStyle_ADD_STYLE_VERTICAL_getInstance(), KImageStyle_ADD_STYLE_SQUARE_getInstance()]); + } + function KImageStyle$Companion$_anonymous__dcs1pq() { + return $serializer_getInstance_1063(); + } + var KImageStyle_ADD_STYLE_VERTICAL_instance; + var KImageStyle_ADD_STYLE_SQUARE_instance; + var KImageStyle_UNRECOGNIZED_instance; + var Companion_instance_1076; + function Companion_getInstance_1076() { + KImageStyle_initEntries(); + if (Companion_instance_1076 === VOID) + new Companion_1076(); + return Companion_instance_1076; + } + var $serializer_instance_1063; + function $serializer_getInstance_1063() { + KImageStyle_initEntries(); + if ($serializer_instance_1063 === VOID) + new $serializer_1063(); + return $serializer_instance_1063; + } + function values_131() { + return [KImageStyle_ADD_STYLE_VERTICAL_getInstance(), KImageStyle_ADD_STYLE_SQUARE_getInstance(), KImageStyle_UNRECOGNIZED_getInstance()]; + } + function valueOf_131(value) { + switch (value) { + case 'ADD_STYLE_VERTICAL': + return KImageStyle_ADD_STYLE_VERTICAL_getInstance(); + case 'ADD_STYLE_SQUARE': + return KImageStyle_ADD_STYLE_SQUARE_getInstance(); + case 'UNRECOGNIZED': + return KImageStyle_UNRECOGNIZED_getInstance(); + default: + KImageStyle_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KImageStyle_entriesInitialized; + function KImageStyle_initEntries() { + if (KImageStyle_entriesInitialized) + return Unit_instance; + KImageStyle_entriesInitialized = true; + KImageStyle_ADD_STYLE_VERTICAL_instance = new KImageStyle('ADD_STYLE_VERTICAL', 0, 0); + KImageStyle_ADD_STYLE_SQUARE_instance = new KImageStyle('ADD_STYLE_SQUARE', 1, 1); + KImageStyle_UNRECOGNIZED_instance = new KImageStyle('UNRECOGNIZED', 2, -1); + Companion_getInstance_1076(); + } + function _get_$cachedSerializer__te6jhj_132($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KGoodsJumpType$Companion$values$delegate$lambda() { + return listOf_0([KGoodsJumpType_GOODS_NONE_getInstance(), KGoodsJumpType_GOODS_SCHEMA_getInstance(), KGoodsJumpType_GOODS_URL_getInstance()]); + } + function KGoodsJumpType$Companion$_anonymous__q8tnyc() { + return $serializer_getInstance_1064(); + } + var KGoodsJumpType_GOODS_NONE_instance; + var KGoodsJumpType_GOODS_SCHEMA_instance; + var KGoodsJumpType_GOODS_URL_instance; + var KGoodsJumpType_UNRECOGNIZED_instance; + var Companion_instance_1077; + function Companion_getInstance_1077() { + KGoodsJumpType_initEntries(); + if (Companion_instance_1077 === VOID) + new Companion_1077(); + return Companion_instance_1077; + } + var $serializer_instance_1064; + function $serializer_getInstance_1064() { + KGoodsJumpType_initEntries(); + if ($serializer_instance_1064 === VOID) + new $serializer_1064(); + return $serializer_instance_1064; + } + function values_132() { + return [KGoodsJumpType_GOODS_NONE_getInstance(), KGoodsJumpType_GOODS_SCHEMA_getInstance(), KGoodsJumpType_GOODS_URL_getInstance(), KGoodsJumpType_UNRECOGNIZED_getInstance()]; + } + function valueOf_132(value) { + switch (value) { + case 'GOODS_NONE': + return KGoodsJumpType_GOODS_NONE_getInstance(); + case 'GOODS_SCHEMA': + return KGoodsJumpType_GOODS_SCHEMA_getInstance(); + case 'GOODS_URL': + return KGoodsJumpType_GOODS_URL_getInstance(); + case 'UNRECOGNIZED': + return KGoodsJumpType_UNRECOGNIZED_getInstance(); + default: + KGoodsJumpType_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KGoodsJumpType_entriesInitialized; + function KGoodsJumpType_initEntries() { + if (KGoodsJumpType_entriesInitialized) + return Unit_instance; + KGoodsJumpType_entriesInitialized = true; + KGoodsJumpType_GOODS_NONE_instance = new KGoodsJumpType('GOODS_NONE', 0, 0); + KGoodsJumpType_GOODS_SCHEMA_instance = new KGoodsJumpType('GOODS_SCHEMA', 1, 1); + KGoodsJumpType_GOODS_URL_instance = new KGoodsJumpType('GOODS_URL', 2, 2); + KGoodsJumpType_UNRECOGNIZED_instance = new KGoodsJumpType('UNRECOGNIZED', 3, -1); + Companion_getInstance_1077(); + } + function _get_$cachedSerializer__te6jhj_133($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KEspaceStyle$Companion$values$delegate$lambda() { + return listOf(KEspaceStyle_MOBA_getInstance()); + } + function KEspaceStyle$Companion$_anonymous__ke1ah6() { + return $serializer_getInstance_1065(); + } + var KEspaceStyle_MOBA_instance; + var KEspaceStyle_UNRECOGNIZED_instance; + var Companion_instance_1078; + function Companion_getInstance_1078() { + KEspaceStyle_initEntries(); + if (Companion_instance_1078 === VOID) + new Companion_1078(); + return Companion_instance_1078; + } + var $serializer_instance_1065; + function $serializer_getInstance_1065() { + KEspaceStyle_initEntries(); + if ($serializer_instance_1065 === VOID) + new $serializer_1065(); + return $serializer_instance_1065; + } + function values_133() { + return [KEspaceStyle_MOBA_getInstance(), KEspaceStyle_UNRECOGNIZED_getInstance()]; + } + function valueOf_133(value) { + switch (value) { + case 'MOBA': + return KEspaceStyle_MOBA_getInstance(); + case 'UNRECOGNIZED': + return KEspaceStyle_UNRECOGNIZED_getInstance(); + default: + KEspaceStyle_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KEspaceStyle_entriesInitialized; + function KEspaceStyle_initEntries() { + if (KEspaceStyle_entriesInitialized) + return Unit_instance; + KEspaceStyle_entriesInitialized = true; + KEspaceStyle_MOBA_instance = new KEspaceStyle('MOBA', 0, 0); + KEspaceStyle_UNRECOGNIZED_instance = new KEspaceStyle('UNRECOGNIZED', 1, -1); + Companion_getInstance_1078(); + } + function _get_$cachedSerializer__te6jhj_134($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KHighlightTextStyle$Companion$values$delegate$lambda() { + return listOf_0([KHighlightTextStyle_STYLE_NONE_getInstance(), KHighlightTextStyle_STYLE_HIGHLIGHT_getInstance()]); + } + function KHighlightTextStyle$Companion$_anonymous__9b7jf8() { + return $serializer_getInstance_1066(); + } + var KHighlightTextStyle_STYLE_NONE_instance; + var KHighlightTextStyle_STYLE_HIGHLIGHT_instance; + var KHighlightTextStyle_UNRECOGNIZED_instance; + var Companion_instance_1079; + function Companion_getInstance_1079() { + KHighlightTextStyle_initEntries(); + if (Companion_instance_1079 === VOID) + new Companion_1079(); + return Companion_instance_1079; + } + var $serializer_instance_1066; + function $serializer_getInstance_1066() { + KHighlightTextStyle_initEntries(); + if ($serializer_instance_1066 === VOID) + new $serializer_1066(); + return $serializer_instance_1066; + } + function values_134() { + return [KHighlightTextStyle_STYLE_NONE_getInstance(), KHighlightTextStyle_STYLE_HIGHLIGHT_getInstance(), KHighlightTextStyle_UNRECOGNIZED_getInstance()]; + } + function valueOf_134(value) { + switch (value) { + case 'STYLE_NONE': + return KHighlightTextStyle_STYLE_NONE_getInstance(); + case 'STYLE_HIGHLIGHT': + return KHighlightTextStyle_STYLE_HIGHLIGHT_getInstance(); + case 'UNRECOGNIZED': + return KHighlightTextStyle_UNRECOGNIZED_getInstance(); + default: + KHighlightTextStyle_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KHighlightTextStyle_entriesInitialized; + function KHighlightTextStyle_initEntries() { + if (KHighlightTextStyle_entriesInitialized) + return Unit_instance; + KHighlightTextStyle_entriesInitialized = true; + KHighlightTextStyle_STYLE_NONE_instance = new KHighlightTextStyle('STYLE_NONE', 0, 0); + KHighlightTextStyle_STYLE_HIGHLIGHT_instance = new KHighlightTextStyle('STYLE_HIGHLIGHT', 1, 1); + KHighlightTextStyle_UNRECOGNIZED_instance = new KHighlightTextStyle('UNRECOGNIZED', 2, -1); + Companion_getInstance_1079(); + } + function _get_$cachedSerializer__te6jhj_135($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KReserveRelationLotteryType$Companion$values$delegate$lambda() { + return listOf_0([KReserveRelationLotteryType_DEFAULT_getInstance(), KReserveRelationLotteryType_CRON_getInstance()]); + } + function KReserveRelationLotteryType$Companion$_anonymous__gg3c13() { + return $serializer_getInstance_1067(); + } + var KReserveRelationLotteryType_DEFAULT_instance; + var KReserveRelationLotteryType_CRON_instance; + var KReserveRelationLotteryType_UNRECOGNIZED_instance; + var Companion_instance_1080; + function Companion_getInstance_1080() { + KReserveRelationLotteryType_initEntries(); + if (Companion_instance_1080 === VOID) + new Companion_1080(); + return Companion_instance_1080; + } + var $serializer_instance_1067; + function $serializer_getInstance_1067() { + KReserveRelationLotteryType_initEntries(); + if ($serializer_instance_1067 === VOID) + new $serializer_1067(); + return $serializer_instance_1067; + } + function values_135() { + return [KReserveRelationLotteryType_DEFAULT_getInstance(), KReserveRelationLotteryType_CRON_getInstance(), KReserveRelationLotteryType_UNRECOGNIZED_getInstance()]; + } + function valueOf_135(value) { + switch (value) { + case 'DEFAULT': + return KReserveRelationLotteryType_DEFAULT_getInstance(); + case 'CRON': + return KReserveRelationLotteryType_CRON_getInstance(); + case 'UNRECOGNIZED': + return KReserveRelationLotteryType_UNRECOGNIZED_getInstance(); + default: + KReserveRelationLotteryType_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KReserveRelationLotteryType_entriesInitialized; + function KReserveRelationLotteryType_initEntries() { + if (KReserveRelationLotteryType_entriesInitialized) + return Unit_instance; + KReserveRelationLotteryType_entriesInitialized = true; + KReserveRelationLotteryType_DEFAULT_instance = new KReserveRelationLotteryType('DEFAULT', 0, 0); + KReserveRelationLotteryType_CRON_instance = new KReserveRelationLotteryType('CRON', 1, 1); + KReserveRelationLotteryType_UNRECOGNIZED_instance = new KReserveRelationLotteryType('UNRECOGNIZED', 2, -1); + Companion_getInstance_1080(); + } + function _get_$cachedSerializer__te6jhj_136($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KCoverIcon$Companion$values$delegate$lambda() { + return listOf_0([KCoverIcon_NONE_getInstance(), KCoverIcon_PLAY_getInstance(), KCoverIcon_DANMAKU_getInstance(), KCoverIcon_UP_getInstance(), KCoverIcon_VT_getInstance(), KCoverIcon_VIEW_CNT_getInstance(), KCoverIcon_THUMB_UP_getInstance()]); + } + function KCoverIcon$Companion$_anonymous__9gmpbe() { + return $serializer_getInstance_1068(); + } + var KCoverIcon_NONE_instance; + var KCoverIcon_PLAY_instance; + var KCoverIcon_DANMAKU_instance; + var KCoverIcon_UP_instance; + var KCoverIcon_VT_instance; + var KCoverIcon_VIEW_CNT_instance; + var KCoverIcon_THUMB_UP_instance; + var KCoverIcon_UNRECOGNIZED_instance; + var Companion_instance_1081; + function Companion_getInstance_1081() { + KCoverIcon_initEntries(); + if (Companion_instance_1081 === VOID) + new Companion_1081(); + return Companion_instance_1081; + } + var $serializer_instance_1068; + function $serializer_getInstance_1068() { + KCoverIcon_initEntries(); + if ($serializer_instance_1068 === VOID) + new $serializer_1068(); + return $serializer_instance_1068; + } + function values_136() { + return [KCoverIcon_NONE_getInstance(), KCoverIcon_PLAY_getInstance(), KCoverIcon_DANMAKU_getInstance(), KCoverIcon_UP_getInstance(), KCoverIcon_VT_getInstance(), KCoverIcon_VIEW_CNT_getInstance(), KCoverIcon_THUMB_UP_getInstance(), KCoverIcon_UNRECOGNIZED_getInstance()]; + } + function valueOf_136(value) { + switch (value) { + case 'NONE': + return KCoverIcon_NONE_getInstance(); + case 'PLAY': + return KCoverIcon_PLAY_getInstance(); + case 'DANMAKU': + return KCoverIcon_DANMAKU_getInstance(); + case 'UP': + return KCoverIcon_UP_getInstance(); + case 'VT': + return KCoverIcon_VT_getInstance(); + case 'VIEW_CNT': + return KCoverIcon_VIEW_CNT_getInstance(); + case 'THUMB_UP': + return KCoverIcon_THUMB_UP_getInstance(); + case 'UNRECOGNIZED': + return KCoverIcon_UNRECOGNIZED_getInstance(); + default: + KCoverIcon_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KCoverIcon_entriesInitialized; + function KCoverIcon_initEntries() { + if (KCoverIcon_entriesInitialized) + return Unit_instance; + KCoverIcon_entriesInitialized = true; + KCoverIcon_NONE_instance = new KCoverIcon('NONE', 0, 0); + KCoverIcon_PLAY_instance = new KCoverIcon('PLAY', 1, 1); + KCoverIcon_DANMAKU_instance = new KCoverIcon('DANMAKU', 2, 2); + KCoverIcon_UP_instance = new KCoverIcon('UP', 3, 3); + KCoverIcon_VT_instance = new KCoverIcon('VT', 4, 4); + KCoverIcon_VIEW_CNT_instance = new KCoverIcon('VIEW_CNT', 5, 5); + KCoverIcon_THUMB_UP_instance = new KCoverIcon('THUMB_UP', 6, 6); + KCoverIcon_UNRECOGNIZED_instance = new KCoverIcon('UNRECOGNIZED', 7, -1); + Companion_getInstance_1081(); + } + function _get_$cachedSerializer__te6jhj_137($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KAdditionVoteType$Companion$values$delegate$lambda() { + return listOf_0([KAdditionVoteType_NONE_getInstance(), KAdditionVoteType_WORD_getInstance(), KAdditionVoteType_PIC_getInstance(), KAdditionVoteType_DEFAULT_getInstance()]); + } + function KAdditionVoteType$Companion$_anonymous__xbjjfo() { + return $serializer_getInstance_1069(); + } + var KAdditionVoteType_NONE_instance; + var KAdditionVoteType_WORD_instance; + var KAdditionVoteType_PIC_instance; + var KAdditionVoteType_DEFAULT_instance; + var KAdditionVoteType_UNRECOGNIZED_instance; + var Companion_instance_1082; + function Companion_getInstance_1082() { + KAdditionVoteType_initEntries(); + if (Companion_instance_1082 === VOID) + new Companion_1082(); + return Companion_instance_1082; + } + var $serializer_instance_1069; + function $serializer_getInstance_1069() { + KAdditionVoteType_initEntries(); + if ($serializer_instance_1069 === VOID) + new $serializer_1069(); + return $serializer_instance_1069; + } + function values_137() { + return [KAdditionVoteType_NONE_getInstance(), KAdditionVoteType_WORD_getInstance(), KAdditionVoteType_PIC_getInstance(), KAdditionVoteType_DEFAULT_getInstance(), KAdditionVoteType_UNRECOGNIZED_getInstance()]; + } + function valueOf_137(value) { + switch (value) { + case 'NONE': + return KAdditionVoteType_NONE_getInstance(); + case 'WORD': + return KAdditionVoteType_WORD_getInstance(); + case 'PIC': + return KAdditionVoteType_PIC_getInstance(); + case 'DEFAULT': + return KAdditionVoteType_DEFAULT_getInstance(); + case 'UNRECOGNIZED': + return KAdditionVoteType_UNRECOGNIZED_getInstance(); + default: + KAdditionVoteType_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KAdditionVoteType_entriesInitialized; + function KAdditionVoteType_initEntries() { + if (KAdditionVoteType_entriesInitialized) + return Unit_instance; + KAdditionVoteType_entriesInitialized = true; + KAdditionVoteType_NONE_instance = new KAdditionVoteType('NONE', 0, 0); + KAdditionVoteType_WORD_instance = new KAdditionVoteType('WORD', 1, 1); + KAdditionVoteType_PIC_instance = new KAdditionVoteType('PIC', 2, 2); + KAdditionVoteType_DEFAULT_instance = new KAdditionVoteType('DEFAULT', 3, 3); + KAdditionVoteType_UNRECOGNIZED_instance = new KAdditionVoteType('UNRECOGNIZED', 4, -1); + Companion_getInstance_1082(); + } + function _get_$cachedSerializer__te6jhj_138($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KAdditionVoteState$Companion$values$delegate$lambda() { + return listOf_0([KAdditionVoteState_NONE_getInstance(), KAdditionVoteState_OPEN_getInstance(), KAdditionVoteState_CLOSE_getInstance()]); + } + function KAdditionVoteState$Companion$_anonymous__wxml5b() { + return $serializer_getInstance_1070(); + } + var KAdditionVoteState_NONE_instance; + var KAdditionVoteState_OPEN_instance; + var KAdditionVoteState_CLOSE_instance; + var KAdditionVoteState_UNRECOGNIZED_instance; + var Companion_instance_1083; + function Companion_getInstance_1083() { + KAdditionVoteState_initEntries(); + if (Companion_instance_1083 === VOID) + new Companion_1083(); + return Companion_instance_1083; + } + var $serializer_instance_1070; + function $serializer_getInstance_1070() { + KAdditionVoteState_initEntries(); + if ($serializer_instance_1070 === VOID) + new $serializer_1070(); + return $serializer_instance_1070; + } + function values_138() { + return [KAdditionVoteState_NONE_getInstance(), KAdditionVoteState_OPEN_getInstance(), KAdditionVoteState_CLOSE_getInstance(), KAdditionVoteState_UNRECOGNIZED_getInstance()]; + } + function valueOf_138(value) { + switch (value) { + case 'NONE': + return KAdditionVoteState_NONE_getInstance(); + case 'OPEN': + return KAdditionVoteState_OPEN_getInstance(); + case 'CLOSE': + return KAdditionVoteState_CLOSE_getInstance(); + case 'UNRECOGNIZED': + return KAdditionVoteState_UNRECOGNIZED_getInstance(); + default: + KAdditionVoteState_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KAdditionVoteState_entriesInitialized; + function KAdditionVoteState_initEntries() { + if (KAdditionVoteState_entriesInitialized) + return Unit_instance; + KAdditionVoteState_entriesInitialized = true; + KAdditionVoteState_NONE_instance = new KAdditionVoteState('NONE', 0, 0); + KAdditionVoteState_OPEN_instance = new KAdditionVoteState('OPEN', 1, 1); + KAdditionVoteState_CLOSE_instance = new KAdditionVoteState('CLOSE', 2, 2); + KAdditionVoteState_UNRECOGNIZED_instance = new KAdditionVoteState('UNRECOGNIZED', 3, -1); + Companion_getInstance_1083(); + } + var Companion_instance_1084; + function Companion_getInstance_1084() { + if (Companion_instance_1084 === VOID) + new Companion_1084(); + return Companion_instance_1084; + } + var $serializer_instance_1071; + function $serializer_getInstance_1071() { + if ($serializer_instance_1071 === VOID) + new $serializer_1071(); + return $serializer_instance_1071; + } + var Companion_instance_1085; + function Companion_getInstance_1085() { + return Companion_instance_1085; + } + var $serializer_instance_1072; + function $serializer_getInstance_1072() { + if ($serializer_instance_1072 === VOID) + new $serializer_1072(); + return $serializer_instance_1072; + } + var Companion_instance_1086; + function Companion_getInstance_1086() { + return Companion_instance_1086; + } + var $serializer_instance_1073; + function $serializer_getInstance_1073() { + if ($serializer_instance_1073 === VOID) + new $serializer_1073(); + return $serializer_instance_1073; + } + var Companion_instance_1087; + function Companion_getInstance_1087() { + if (Companion_instance_1087 === VOID) + new Companion_1087(); + return Companion_instance_1087; + } + var $serializer_instance_1074; + function $serializer_getInstance_1074() { + if ($serializer_instance_1074 === VOID) + new $serializer_1074(); + return $serializer_instance_1074; + } + var Companion_instance_1088; + function Companion_getInstance_1088() { + return Companion_instance_1088; + } + var $serializer_instance_1075; + function $serializer_getInstance_1075() { + if ($serializer_instance_1075 === VOID) + new $serializer_1075(); + return $serializer_instance_1075; + } + var Companion_instance_1089; + function Companion_getInstance_1089() { + return Companion_instance_1089; + } + var $serializer_instance_1076; + function $serializer_getInstance_1076() { + if ($serializer_instance_1076 === VOID) + new $serializer_1076(); + return $serializer_instance_1076; + } + var Companion_instance_1090; + function Companion_getInstance_1090() { + return Companion_instance_1090; + } + var $serializer_instance_1077; + function $serializer_getInstance_1077() { + if ($serializer_instance_1077 === VOID) + new $serializer_1077(); + return $serializer_instance_1077; + } + var Companion_instance_1091; + function Companion_getInstance_1091() { + if (Companion_instance_1091 === VOID) + new Companion_1091(); + return Companion_instance_1091; + } + var $serializer_instance_1078; + function $serializer_getInstance_1078() { + if ($serializer_instance_1078 === VOID) + new $serializer_1078(); + return $serializer_instance_1078; + } + var Companion_instance_1092; + function Companion_getInstance_1092() { + if (Companion_instance_1092 === VOID) + new Companion_1092(); + return Companion_instance_1092; + } + var $serializer_instance_1079; + function $serializer_getInstance_1079() { + if ($serializer_instance_1079 === VOID) + new $serializer_1079(); + return $serializer_instance_1079; + } + var Companion_instance_1093; + function Companion_getInstance_1093() { + return Companion_instance_1093; + } + var $serializer_instance_1080; + function $serializer_getInstance_1080() { + if ($serializer_instance_1080 === VOID) + new $serializer_1080(); + return $serializer_instance_1080; + } + var Companion_instance_1094; + function Companion_getInstance_1094() { + return Companion_instance_1094; + } + var $serializer_instance_1081; + function $serializer_getInstance_1081() { + if ($serializer_instance_1081 === VOID) + new $serializer_1081(); + return $serializer_instance_1081; + } + var Companion_instance_1095; + function Companion_getInstance_1095() { + if (Companion_instance_1095 === VOID) + new Companion_1095(); + return Companion_instance_1095; + } + var $serializer_instance_1082; + function $serializer_getInstance_1082() { + if ($serializer_instance_1082 === VOID) + new $serializer_1082(); + return $serializer_instance_1082; + } + var Companion_instance_1096; + function Companion_getInstance_1096() { + return Companion_instance_1096; + } + var $serializer_instance_1083; + function $serializer_getInstance_1083() { + if ($serializer_instance_1083 === VOID) + new $serializer_1083(); + return $serializer_instance_1083; + } + var Companion_instance_1097; + function Companion_getInstance_1097() { + if (Companion_instance_1097 === VOID) + new Companion_1097(); + return Companion_instance_1097; + } + var $serializer_instance_1084; + function $serializer_getInstance_1084() { + if ($serializer_instance_1084 === VOID) + new $serializer_1084(); + return $serializer_instance_1084; + } + var Companion_instance_1098; + function Companion_getInstance_1098() { + return Companion_instance_1098; + } + var $serializer_instance_1085; + function $serializer_getInstance_1085() { + if ($serializer_instance_1085 === VOID) + new $serializer_1085(); + return $serializer_instance_1085; + } + var Companion_instance_1099; + function Companion_getInstance_1099() { + return Companion_instance_1099; + } + var $serializer_instance_1086; + function $serializer_getInstance_1086() { + if ($serializer_instance_1086 === VOID) + new $serializer_1086(); + return $serializer_instance_1086; + } + var Companion_instance_1100; + function Companion_getInstance_1100() { + return Companion_instance_1100; + } + var $serializer_instance_1087; + function $serializer_getInstance_1087() { + if ($serializer_instance_1087 === VOID) + new $serializer_1087(); + return $serializer_instance_1087; + } + var Companion_instance_1101; + function Companion_getInstance_1101() { + return Companion_instance_1101; + } + var $serializer_instance_1088; + function $serializer_getInstance_1088() { + if ($serializer_instance_1088 === VOID) + new $serializer_1088(); + return $serializer_instance_1088; + } + var Companion_instance_1102; + function Companion_getInstance_1102() { + return Companion_instance_1102; + } + var $serializer_instance_1089; + function $serializer_getInstance_1089() { + if ($serializer_instance_1089 === VOID) + new $serializer_1089(); + return $serializer_instance_1089; + } + var Companion_instance_1103; + function Companion_getInstance_1103() { + return Companion_instance_1103; + } + var $serializer_instance_1090; + function $serializer_getInstance_1090() { + if ($serializer_instance_1090 === VOID) + new $serializer_1090(); + return $serializer_instance_1090; + } + var Companion_instance_1104; + function Companion_getInstance_1104() { + return Companion_instance_1104; + } + var $serializer_instance_1091; + function $serializer_getInstance_1091() { + if ($serializer_instance_1091 === VOID) + new $serializer_1091(); + return $serializer_instance_1091; + } + var Companion_instance_1105; + function Companion_getInstance_1105() { + return Companion_instance_1105; + } + var $serializer_instance_1092; + function $serializer_getInstance_1092() { + if ($serializer_instance_1092 === VOID) + new $serializer_1092(); + return $serializer_instance_1092; + } + var Companion_instance_1106; + function Companion_getInstance_1106() { + return Companion_instance_1106; + } + var $serializer_instance_1093; + function $serializer_getInstance_1093() { + if ($serializer_instance_1093 === VOID) + new $serializer_1093(); + return $serializer_instance_1093; + } + var Companion_instance_1107; + function Companion_getInstance_1107() { + return Companion_instance_1107; + } + var $serializer_instance_1094; + function $serializer_getInstance_1094() { + if ($serializer_instance_1094 === VOID) + new $serializer_1094(); + return $serializer_instance_1094; + } + var Companion_instance_1108; + function Companion_getInstance_1108() { + if (Companion_instance_1108 === VOID) + new Companion_1108(); + return Companion_instance_1108; + } + var $serializer_instance_1095; + function $serializer_getInstance_1095() { + if ($serializer_instance_1095 === VOID) + new $serializer_1095(); + return $serializer_instance_1095; + } + function KMdlDynSubscriptionNew$Companion$itemValues$delegate$lambda() { + return listOf_0([KDynSubscription_getInstance_0(), KDynLiveRcmd_getInstance_0()]); + } + function _get_itemNumber__22vn01_4($this) { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = $this.itemNumber$delegate_1; + var thisRef = $this; + var property = itemNumber$factory_4(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + var KDynSubscription_instance_0; + function KDynSubscription_getInstance_0() { + if (KDynSubscription_instance_0 === VOID) + new KDynSubscription_0(); + return KDynSubscription_instance_0; + } + var KDynLiveRcmd_instance_0; + function KDynLiveRcmd_getInstance_0() { + if (KDynLiveRcmd_instance_0 === VOID) + new KDynLiveRcmd_0(); + return KDynLiveRcmd_instance_0; + } + var Companion_instance_1109; + function Companion_getInstance_1109() { + if (Companion_instance_1109 === VOID) + new Companion_1109(); + return Companion_instance_1109; + } + var $serializer_instance_1096; + function $serializer_getInstance_1096() { + if ($serializer_instance_1096 === VOID) + new $serializer_1096(); + return $serializer_instance_1096; + } + function KMdlDynSubscriptionNew$itemNumber$delegate$lambda(this$0) { + return function () { + var tmp; + if (!(this$0.dynSubscription_1 == null)) { + tmp = 0; + } else if (!(this$0.dynLiveRcmd_1 == null)) { + tmp = 1; + } else { + tmp = -1; + } + return tmp; + }; + } + function KMdlDynSubscriptionNew$_init_$lambda_q2dmax(this$0) { + return function () { + var tmp; + if (!(this$0.dynSubscription_1 == null)) { + tmp = 0; + } else if (!(this$0.dynLiveRcmd_1 == null)) { + tmp = 1; + } else { + tmp = -1; + } + return tmp; + }; + } + var Companion_instance_1110; + function Companion_getInstance_1110() { + return Companion_instance_1110; + } + var $serializer_instance_1097; + function $serializer_getInstance_1097() { + if ($serializer_instance_1097 === VOID) + new $serializer_1097(); + return $serializer_instance_1097; + } + var Companion_instance_1111; + function Companion_getInstance_1111() { + if (Companion_instance_1111 === VOID) + new Companion_1111(); + return Companion_instance_1111; + } + var $serializer_instance_1098; + function $serializer_getInstance_1098() { + if ($serializer_instance_1098 === VOID) + new $serializer_1098(); + return $serializer_instance_1098; + } + var Companion_instance_1112; + function Companion_getInstance_1112() { + return Companion_instance_1112; + } + var $serializer_instance_1099; + function $serializer_getInstance_1099() { + if ($serializer_instance_1099 === VOID) + new $serializer_1099(); + return $serializer_instance_1099; + } + var Companion_instance_1113; + function Companion_getInstance_1113() { + return Companion_instance_1113; + } + var $serializer_instance_1100; + function $serializer_getInstance_1100() { + if ($serializer_instance_1100 === VOID) + new $serializer_1100(); + return $serializer_instance_1100; + } + function KModuleAdditional$Companion$itemValues$delegate$lambda() { + return listOf_0([KPgc_getInstance(), KGoods_getInstance(), KVote_getInstance(), KCommon_getInstance(), KEsport_getInstance_0(), KVote2_getInstance(), KUgc_getInstance(), KUp_getInstance(), KArticle_getInstance_0(), KLive_getInstance_1(), KMusic_getInstance()]); + } + function _get_itemNumber__22vn01_5($this) { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = $this.itemNumber$delegate_1; + var thisRef = $this; + var property = itemNumber$factory_5(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + var KPgc_instance; + function KPgc_getInstance() { + if (KPgc_instance === VOID) + new KPgc(); + return KPgc_instance; + } + var KGoods_instance; + function KGoods_getInstance() { + if (KGoods_instance === VOID) + new KGoods(); + return KGoods_instance; + } + var KVote_instance; + function KVote_getInstance() { + if (KVote_instance === VOID) + new KVote(); + return KVote_instance; + } + var KCommon_instance; + function KCommon_getInstance() { + if (KCommon_instance === VOID) + new KCommon(); + return KCommon_instance; + } + var KEsport_instance_0; + function KEsport_getInstance_0() { + if (KEsport_instance_0 === VOID) + new KEsport_0(); + return KEsport_instance_0; + } + var KVote2_instance; + function KVote2_getInstance() { + if (KVote2_instance === VOID) + new KVote2(); + return KVote2_instance; + } + var KUgc_instance; + function KUgc_getInstance() { + if (KUgc_instance === VOID) + new KUgc(); + return KUgc_instance; + } + var KUp_instance; + function KUp_getInstance() { + if (KUp_instance === VOID) + new KUp_0(); + return KUp_instance; + } + var KArticle_instance_0; + function KArticle_getInstance_0() { + if (KArticle_instance_0 === VOID) + new KArticle_0(); + return KArticle_instance_0; + } + var KLive_instance_1; + function KLive_getInstance_1() { + if (KLive_instance_1 === VOID) + new KLive_2(); + return KLive_instance_1; + } + var KMusic_instance; + function KMusic_getInstance() { + if (KMusic_instance === VOID) + new KMusic(); + return KMusic_instance; + } + var Companion_instance_1114; + function Companion_getInstance_1114() { + if (Companion_instance_1114 === VOID) + new Companion_1114(); + return Companion_instance_1114; + } + var $serializer_instance_1101; + function $serializer_getInstance_1101() { + if ($serializer_instance_1101 === VOID) + new $serializer_1101(); + return $serializer_instance_1101; + } + function KModuleAdditional$itemNumber$delegate$lambda(this$0) { + return function () { + var tmp; + if (!(this$0.pgc_1 == null)) { + tmp = 0; + } else if (!(this$0.goods_1 == null)) { + tmp = 1; + } else if (!(this$0.vote_1 == null)) { + tmp = 2; + } else if (!(this$0.common_1 == null)) { + tmp = 3; + } else if (!(this$0.esport_1 == null)) { + tmp = 4; + } else if (!(this$0.vote2__1 == null)) { + tmp = 5; + } else if (!(this$0.ugc_1 == null)) { + tmp = 6; + } else if (!(this$0.up_1 == null)) { + tmp = 7; + } else if (!(this$0.article_1 == null)) { + tmp = 8; + } else if (!(this$0.live_1 == null)) { + tmp = 9; + } else if (!(this$0.music_1 == null)) { + tmp = 10; + } else { + tmp = -1; + } + return tmp; + }; + } + function KModuleAdditional$_init_$lambda_fkze43(this$0) { + return function () { + var tmp; + if (!(this$0.pgc_1 == null)) { + tmp = 0; + } else if (!(this$0.goods_1 == null)) { + tmp = 1; + } else if (!(this$0.vote_1 == null)) { + tmp = 2; + } else if (!(this$0.common_1 == null)) { + tmp = 3; + } else if (!(this$0.esport_1 == null)) { + tmp = 4; + } else if (!(this$0.vote2__1 == null)) { + tmp = 5; + } else if (!(this$0.ugc_1 == null)) { + tmp = 6; + } else if (!(this$0.up_1 == null)) { + tmp = 7; + } else if (!(this$0.article_1 == null)) { + tmp = 8; + } else if (!(this$0.live_1 == null)) { + tmp = 9; + } else if (!(this$0.music_1 == null)) { + tmp = 10; + } else { + tmp = -1; + } + return tmp; + }; + } + var Companion_instance_1115; + function Companion_getInstance_1115() { + return Companion_instance_1115; + } + var $serializer_instance_1102; + function $serializer_getInstance_1102() { + if ($serializer_instance_1102 === VOID) + new $serializer_1102(); + return $serializer_instance_1102; + } + var Companion_instance_1116; + function Companion_getInstance_1116() { + if (Companion_instance_1116 === VOID) + new Companion_1116(); + return Companion_instance_1116; + } + var $serializer_instance_1103; + function $serializer_getInstance_1103() { + if ($serializer_instance_1103 === VOID) + new $serializer_1103(); + return $serializer_instance_1103; + } + var Companion_instance_1117; + function Companion_getInstance_1117() { + if (Companion_instance_1117 === VOID) + new Companion_1117(); + return Companion_instance_1117; + } + var $serializer_instance_1104; + function $serializer_getInstance_1104() { + if ($serializer_instance_1104 === VOID) + new $serializer_1104(); + return $serializer_instance_1104; + } + var Companion_instance_1118; + function Companion_getInstance_1118() { + return Companion_instance_1118; + } + var $serializer_instance_1105; + function $serializer_getInstance_1105() { + if ($serializer_instance_1105 === VOID) + new $serializer_1105(); + return $serializer_instance_1105; + } + var Companion_instance_1119; + function Companion_getInstance_1119() { + return Companion_instance_1119; + } + var $serializer_instance_1106; + function $serializer_getInstance_1106() { + if ($serializer_instance_1106 === VOID) + new $serializer_1106(); + return $serializer_instance_1106; + } + var Companion_instance_1120; + function Companion_getInstance_1120() { + return Companion_instance_1120; + } + var $serializer_instance_1107; + function $serializer_getInstance_1107() { + if ($serializer_instance_1107 === VOID) + new $serializer_1107(); + return $serializer_instance_1107; + } + function KAdditionEsport$Companion$itemValues$delegate$lambda() { + return listOf(KAdditionEsportMoba_getInstance()); + } + function _get_itemNumber__22vn01_6($this) { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = $this.itemNumber$delegate_1; + var thisRef = $this; + var property = itemNumber$factory_6(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + var KAdditionEsportMoba_instance; + function KAdditionEsportMoba_getInstance() { + if (KAdditionEsportMoba_instance === VOID) + new KAdditionEsportMoba(); + return KAdditionEsportMoba_instance; + } + var Companion_instance_1121; + function Companion_getInstance_1121() { + if (Companion_instance_1121 === VOID) + new Companion_1121(); + return Companion_instance_1121; + } + var $serializer_instance_1108; + function $serializer_getInstance_1108() { + if ($serializer_instance_1108 === VOID) + new $serializer_1108(); + return $serializer_instance_1108; + } + function KAdditionEsport$itemNumber$delegate$lambda(this$0) { + return function () { + var tmp; + if (!(this$0.additionEsportMoba_1 == null)) { + tmp = 0; + } else { + tmp = -1; + } + return tmp; + }; + } + function KAdditionEsport$_init_$lambda_tk2kcr(this$0) { + return function () { + var tmp; + if (!(this$0.additionEsportMoba_1 == null)) { + tmp = 0; + } else { + tmp = -1; + } + return tmp; + }; + } + var Companion_instance_1122; + function Companion_getInstance_1122() { + if (Companion_instance_1122 === VOID) + new Companion_1122(); + return Companion_instance_1122; + } + var $serializer_instance_1109; + function $serializer_getInstance_1109() { + if ($serializer_instance_1109 === VOID) + new $serializer_1109(); + return $serializer_instance_1109; + } + var Companion_instance_1123; + function Companion_getInstance_1123() { + if (Companion_instance_1123 === VOID) + new Companion_1123(); + return Companion_instance_1123; + } + var $serializer_instance_1110; + function $serializer_getInstance_1110() { + if ($serializer_instance_1110 === VOID) + new $serializer_1110(); + return $serializer_instance_1110; + } + var Companion_instance_1124; + function Companion_getInstance_1124() { + return Companion_instance_1124; + } + var $serializer_instance_1111; + function $serializer_getInstance_1111() { + if ($serializer_instance_1111 === VOID) + new $serializer_1111(); + return $serializer_instance_1111; + } + var Companion_instance_1125; + function Companion_getInstance_1125() { + return Companion_instance_1125; + } + var $serializer_instance_1112; + function $serializer_getInstance_1112() { + if ($serializer_instance_1112 === VOID) + new $serializer_1112(); + return $serializer_instance_1112; + } + var Companion_instance_1126; + function Companion_getInstance_1126() { + return Companion_instance_1126; + } + var $serializer_instance_1113; + function $serializer_getInstance_1113() { + if ($serializer_instance_1113 === VOID) + new $serializer_1113(); + return $serializer_instance_1113; + } + var Companion_instance_1127; + function Companion_getInstance_1127() { + return Companion_instance_1127; + } + var $serializer_instance_1114; + function $serializer_getInstance_1114() { + if ($serializer_instance_1114 === VOID) + new $serializer_1114(); + return $serializer_instance_1114; + } + var Companion_instance_1128; + function Companion_getInstance_1128() { + return Companion_instance_1128; + } + var $serializer_instance_1115; + function $serializer_getInstance_1115() { + if ($serializer_instance_1115 === VOID) + new $serializer_1115(); + return $serializer_instance_1115; + } + var Companion_instance_1129; + function Companion_getInstance_1129() { + return Companion_instance_1129; + } + var $serializer_instance_1116; + function $serializer_getInstance_1116() { + if ($serializer_instance_1116 === VOID) + new $serializer_1116(); + return $serializer_instance_1116; + } + var Companion_instance_1130; + function Companion_getInstance_1130() { + return Companion_instance_1130; + } + var $serializer_instance_1117; + function $serializer_getInstance_1117() { + if ($serializer_instance_1117 === VOID) + new $serializer_1117(); + return $serializer_instance_1117; + } + var Companion_instance_1131; + function Companion_getInstance_1131() { + return Companion_instance_1131; + } + var $serializer_instance_1118; + function $serializer_getInstance_1118() { + if ($serializer_instance_1118 === VOID) + new $serializer_1118(); + return $serializer_instance_1118; + } + var Companion_instance_1132; + function Companion_getInstance_1132() { + return Companion_instance_1132; + } + var $serializer_instance_1119; + function $serializer_getInstance_1119() { + if ($serializer_instance_1119 === VOID) + new $serializer_1119(); + return $serializer_instance_1119; + } + var Companion_instance_1133; + function Companion_getInstance_1133() { + return Companion_instance_1133; + } + var $serializer_instance_1120; + function $serializer_getInstance_1120() { + if ($serializer_instance_1120 === VOID) + new $serializer_1120(); + return $serializer_instance_1120; + } + function KAdditionVote2$Companion$itemValues$delegate$lambda() { + return listOf_0([KAdditionVoteWord_getInstance(), KAdditionVotePic_getInstance(), KAdditionVoteDefaule_getInstance()]); + } + function _get_itemNumber__22vn01_7($this) { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = $this.itemNumber$delegate_1; + var thisRef = $this; + var property = itemNumber$factory_7(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + var KAdditionVoteWord_instance; + function KAdditionVoteWord_getInstance() { + if (KAdditionVoteWord_instance === VOID) + new KAdditionVoteWord(); + return KAdditionVoteWord_instance; + } + var KAdditionVotePic_instance; + function KAdditionVotePic_getInstance() { + if (KAdditionVotePic_instance === VOID) + new KAdditionVotePic(); + return KAdditionVotePic_instance; + } + var KAdditionVoteDefaule_instance; + function KAdditionVoteDefaule_getInstance() { + if (KAdditionVoteDefaule_instance === VOID) + new KAdditionVoteDefaule(); + return KAdditionVoteDefaule_instance; + } + var Companion_instance_1134; + function Companion_getInstance_1134() { + if (Companion_instance_1134 === VOID) + new Companion_1134(); + return Companion_instance_1134; + } + var $serializer_instance_1121; + function $serializer_getInstance_1121() { + if ($serializer_instance_1121 === VOID) + new $serializer_1121(); + return $serializer_instance_1121; + } + function KAdditionVote2$itemNumber$delegate$lambda(this$0) { + return function () { + var tmp; + if (!(this$0.additionVoteWord_1 == null)) { + tmp = 0; + } else if (!(this$0.additionVotePic_1 == null)) { + tmp = 1; + } else if (!(this$0.additionVoteDefaule_1 == null)) { + tmp = 2; + } else { + tmp = -1; + } + return tmp; + }; + } + function KAdditionVote2$_init_$lambda_wewf62(this$0) { + return function () { + var tmp; + if (!(this$0.additionVoteWord_1 == null)) { + tmp = 0; + } else if (!(this$0.additionVotePic_1 == null)) { + tmp = 1; + } else if (!(this$0.additionVoteDefaule_1 == null)) { + tmp = 2; + } else { + tmp = -1; + } + return tmp; + }; + } + var Companion_instance_1135; + function Companion_getInstance_1135() { + if (Companion_instance_1135 === VOID) + new Companion_1135(); + return Companion_instance_1135; + } + var $serializer_instance_1122; + function $serializer_getInstance_1122() { + if ($serializer_instance_1122 === VOID) + new $serializer_1122(); + return $serializer_instance_1122; + } + var Companion_instance_1136; + function Companion_getInstance_1136() { + return Companion_instance_1136; + } + var $serializer_instance_1123; + function $serializer_getInstance_1123() { + if ($serializer_instance_1123 === VOID) + new $serializer_1123(); + return $serializer_instance_1123; + } + var Companion_instance_1137; + function Companion_getInstance_1137() { + if (Companion_instance_1137 === VOID) + new Companion_1137(); + return Companion_instance_1137; + } + var $serializer_instance_1124; + function $serializer_getInstance_1124() { + if ($serializer_instance_1124 === VOID) + new $serializer_1124(); + return $serializer_instance_1124; + } + var Companion_instance_1138; + function Companion_getInstance_1138() { + return Companion_instance_1138; + } + var $serializer_instance_1125; + function $serializer_getInstance_1125() { + if ($serializer_instance_1125 === VOID) + new $serializer_1125(); + return $serializer_instance_1125; + } + var Companion_instance_1139; + function Companion_getInstance_1139() { + if (Companion_instance_1139 === VOID) + new Companion_1139(); + return Companion_instance_1139; + } + var $serializer_instance_1126; + function $serializer_getInstance_1126() { + if ($serializer_instance_1126 === VOID) + new $serializer_1126(); + return $serializer_instance_1126; + } + function KMediaType_NONE_getInstance() { + KMediaType_initEntries(); + return KMediaType_NONE_instance; + } + function KMediaType_UGC_getInstance() { + KMediaType_initEntries(); + return KMediaType_UGC_instance; + } + function KMediaType_PGC_getInstance() { + KMediaType_initEntries(); + return KMediaType_PGC_instance; + } + function KMediaType_LIVE_getInstance() { + KMediaType_initEntries(); + return KMediaType_LIVE_instance; + } + function KMediaType_VCS_getInstance() { + KMediaType_initEntries(); + return KMediaType_VCS_instance; + } + function KMediaType_UNRECOGNIZED_getInstance() { + KMediaType_initEntries(); + return KMediaType_UNRECOGNIZED_instance; + } + function KReserveType_RESERVE_NONE_getInstance() { + KReserveType_initEntries(); + return KReserveType_RESERVE_NONE_instance; + } + function KReserveType_RESERVE_RECALL_getInstance() { + KReserveType_initEntries(); + return KReserveType_RESERVE_RECALL_instance; + } + function KReserveType_UNRECOGNIZED_getInstance() { + KReserveType_initEntries(); + return KReserveType_UNRECOGNIZED_instance; + } + function KIconResLocal_NONE_getInstance() { + KIconResLocal_initEntries(); + return KIconResLocal_NONE_instance; + } + function KIconResLocal_LIVE_getInstance() { + KIconResLocal_initEntries(); + return KIconResLocal_LIVE_instance; + } + function KIconResLocal_UNRECOGNIZED_getInstance() { + KIconResLocal_initEntries(); + return KIconResLocal_UNRECOGNIZED_instance; + } + function KVideoType_GENERAL_getInstance() { + KVideoType_initEntries(); + return KVideoType_GENERAL_instance; + } + function KVideoType_DYNAMIC_getInstance() { + KVideoType_initEntries(); + return KVideoType_DYNAMIC_instance; + } + function KVideoType_PLAYBACK_getInstance() { + KVideoType_initEntries(); + return KVideoType_PLAYBACK_instance; + } + function KVideoType_STORY_getInstance() { + KVideoType_initEntries(); + return KVideoType_STORY_instance; + } + function KVideoType_UNRECOGNIZED_getInstance() { + KVideoType_initEntries(); + return KVideoType_UNRECOGNIZED_instance; + } + function KVideoSubType_NONE_getInstance() { + KVideoSubType_initEntries(); + return KVideoSubType_NONE_instance; + } + function KVideoSubType_BANGUMI_getInstance() { + KVideoSubType_initEntries(); + return KVideoSubType_BANGUMI_instance; + } + function KVideoSubType_MOVIE_getInstance() { + KVideoSubType_initEntries(); + return KVideoSubType_MOVIE_instance; + } + function KVideoSubType_DOCUMENTARY_getInstance() { + KVideoSubType_initEntries(); + return KVideoSubType_DOCUMENTARY_instance; + } + function KVideoSubType_DOMESTIC_getInstance() { + KVideoSubType_initEntries(); + return KVideoSubType_DOMESTIC_instance; + } + function KVideoSubType_TELEPLAY_getInstance() { + KVideoSubType_initEntries(); + return KVideoSubType_TELEPLAY_instance; + } + function KVideoSubType_UNRECOGNIZED_getInstance() { + KVideoSubType_initEntries(); + return KVideoSubType_UNRECOGNIZED_instance; + } + function KMdlDynDrawTagType_MDL_DRAW_TAG_NONE_getInstance() { + KMdlDynDrawTagType_initEntries(); + return KMdlDynDrawTagType_MDL_DRAW_TAG_NONE_instance; + } + function KMdlDynDrawTagType_MDL_DRAW_TAG_COMMON_getInstance() { + KMdlDynDrawTagType_initEntries(); + return KMdlDynDrawTagType_MDL_DRAW_TAG_COMMON_instance; + } + function KMdlDynDrawTagType_MDL_DRAW_TAG_GOODS_getInstance() { + KMdlDynDrawTagType_initEntries(); + return KMdlDynDrawTagType_MDL_DRAW_TAG_GOODS_instance; + } + function KMdlDynDrawTagType_MDL_DRAW_TAG_USER_getInstance() { + KMdlDynDrawTagType_initEntries(); + return KMdlDynDrawTagType_MDL_DRAW_TAG_USER_instance; + } + function KMdlDynDrawTagType_MDL_DRAW_TAG_TOPIC_getInstance() { + KMdlDynDrawTagType_initEntries(); + return KMdlDynDrawTagType_MDL_DRAW_TAG_TOPIC_instance; + } + function KMdlDynDrawTagType_MDL_DRAW_TAG_LBS_getInstance() { + KMdlDynDrawTagType_initEntries(); + return KMdlDynDrawTagType_MDL_DRAW_TAG_LBS_instance; + } + function KMdlDynDrawTagType_UNRECOGNIZED_getInstance() { + KMdlDynDrawTagType_initEntries(); + return KMdlDynDrawTagType_UNRECOGNIZED_instance; + } + function KAddButtonType_BT_NONE_getInstance() { + KAddButtonType_initEntries(); + return KAddButtonType_BT_NONE_instance; + } + function KAddButtonType_BT_JUMP_getInstance() { + KAddButtonType_initEntries(); + return KAddButtonType_BT_JUMP_instance; + } + function KAddButtonType_BT_BUTTON_getInstance() { + KAddButtonType_initEntries(); + return KAddButtonType_BT_BUTTON_instance; + } + function KAddButtonType_UNRECOGNIZED_getInstance() { + KAddButtonType_initEntries(); + return KAddButtonType_UNRECOGNIZED_instance; + } + function KAdditionalButtonStatus_NONE_getInstance() { + KAdditionalButtonStatus_initEntries(); + return KAdditionalButtonStatus_NONE_instance; + } + function KAdditionalButtonStatus_UNCHECK_getInstance() { + KAdditionalButtonStatus_initEntries(); + return KAdditionalButtonStatus_UNCHECK_instance; + } + function KAdditionalButtonStatus_CHECK_getInstance() { + KAdditionalButtonStatus_initEntries(); + return KAdditionalButtonStatus_CHECK_instance; + } + function KAdditionalButtonStatus_UNRECOGNIZED_getInstance() { + KAdditionalButtonStatus_initEntries(); + return KAdditionalButtonStatus_UNRECOGNIZED_instance; + } + function KAdditionalButtonClickType_CLICK_NONE_getInstance() { + KAdditionalButtonClickType_initEntries(); + return KAdditionalButtonClickType_CLICK_NONE_instance; + } + function KAdditionalButtonClickType_CLICK_UP_getInstance() { + KAdditionalButtonClickType_initEntries(); + return KAdditionalButtonClickType_CLICK_UP_instance; + } + function KAdditionalButtonClickType_UNRECOGNIZED_getInstance() { + KAdditionalButtonClickType_initEntries(); + return KAdditionalButtonClickType_UNRECOGNIZED_instance; + } + function KAdditionalShareShowType_ST_NONE_getInstance() { + KAdditionalShareShowType_initEntries(); + return KAdditionalShareShowType_ST_NONE_instance; + } + function KAdditionalShareShowType_ST_SHOW_getInstance() { + KAdditionalShareShowType_initEntries(); + return KAdditionalShareShowType_ST_SHOW_instance; + } + function KAdditionalShareShowType_UNRECOGNIZED_getInstance() { + KAdditionalShareShowType_initEntries(); + return KAdditionalShareShowType_UNRECOGNIZED_instance; + } + function KDisableState_HIGHLIGHT_getInstance() { + KDisableState_initEntries(); + return KDisableState_HIGHLIGHT_instance; + } + function KDisableState_GARY_getInstance() { + KDisableState_initEntries(); + return KDisableState_GARY_instance; + } + function KDisableState_UNRECOGNIZED_getInstance() { + KDisableState_initEntries(); + return KDisableState_UNRECOGNIZED_instance; + } + function KAddButtonBgStyle_FILL_getInstance() { + KAddButtonBgStyle_initEntries(); + return KAddButtonBgStyle_FILL_instance; + } + function KAddButtonBgStyle_STROKE_getInstance() { + KAddButtonBgStyle_initEntries(); + return KAddButtonBgStyle_STROKE_instance; + } + function KAddButtonBgStyle_GRAY_getInstance() { + KAddButtonBgStyle_initEntries(); + return KAddButtonBgStyle_GRAY_instance; + } + function KAddButtonBgStyle_UNRECOGNIZED_getInstance() { + KAddButtonBgStyle_initEntries(); + return KAddButtonBgStyle_UNRECOGNIZED_instance; + } + function KMdlDynCommonType_MDL_DYN_COMMON_NONE_getInstance() { + KMdlDynCommonType_initEntries(); + return KMdlDynCommonType_MDL_DYN_COMMON_NONE_instance; + } + function KMdlDynCommonType_MDL_DYN_COMMON_SQUARE_getInstance() { + KMdlDynCommonType_initEntries(); + return KMdlDynCommonType_MDL_DYN_COMMON_SQUARE_instance; + } + function KMdlDynCommonType_MDL_DYN_COMMON_VERTICA_getInstance() { + KMdlDynCommonType_initEntries(); + return KMdlDynCommonType_MDL_DYN_COMMON_VERTICA_instance; + } + function KMdlDynCommonType_UNRECOGNIZED_getInstance() { + KMdlDynCommonType_initEntries(); + return KMdlDynCommonType_UNRECOGNIZED_instance; + } + function KLiveState_LIVE_NONE_getInstance() { + KLiveState_initEntries(); + return KLiveState_LIVE_NONE_instance; + } + function KLiveState_LIVE_LIVE_getInstance() { + KLiveState_initEntries(); + return KLiveState_LIVE_LIVE_instance; + } + function KLiveState_LIVE_ROTATION_getInstance() { + KLiveState_initEntries(); + return KLiveState_LIVE_ROTATION_instance; + } + function KLiveState_UNRECOGNIZED_getInstance() { + KLiveState_initEntries(); + return KLiveState_UNRECOGNIZED_instance; + } + function KMdlDynSubscriptionNewStyle_NONT_getInstance() { + KMdlDynSubscriptionNewStyle_initEntries(); + return KMdlDynSubscriptionNewStyle_NONT_instance; + } + function KMdlDynSubscriptionNewStyle_LIVE_getInstance() { + KMdlDynSubscriptionNewStyle_initEntries(); + return KMdlDynSubscriptionNewStyle_LIVE_instance; + } + function KMdlDynSubscriptionNewStyle_DRAW_getInstance() { + KMdlDynSubscriptionNewStyle_initEntries(); + return KMdlDynSubscriptionNewStyle_DRAW_instance; + } + function KMdlDynSubscriptionNewStyle_UNRECOGNIZED_getInstance() { + KMdlDynSubscriptionNewStyle_initEntries(); + return KMdlDynSubscriptionNewStyle_UNRECOGNIZED_instance; + } + function KRouterAction_OPEN_getInstance() { + KRouterAction_initEntries(); + return KRouterAction_OPEN_instance; + } + function KRouterAction_EMBED_getInstance() { + KRouterAction_initEntries(); + return KRouterAction_EMBED_instance; + } + function KRouterAction_UNRECOGNIZED_getInstance() { + KRouterAction_initEntries(); + return KRouterAction_UNRECOGNIZED_instance; + } + function KAdditionalType_ADDITIONAL_NONE_getInstance() { + KAdditionalType_initEntries(); + return KAdditionalType_ADDITIONAL_NONE_instance; + } + function KAdditionalType_PGC_getInstance() { + KAdditionalType_initEntries(); + return KAdditionalType_PGC_instance; + } + function KAdditionalType_GOODS_getInstance() { + KAdditionalType_initEntries(); + return KAdditionalType_GOODS_instance; + } + function KAdditionalType_VOTE_getInstance() { + KAdditionalType_initEntries(); + return KAdditionalType_VOTE_instance; + } + function KAdditionalType_COMMON_getInstance() { + KAdditionalType_initEntries(); + return KAdditionalType_COMMON_instance; + } + function KAdditionalType_ESPORT_getInstance() { + KAdditionalType_initEntries(); + return KAdditionalType_ESPORT_instance; + } + function KAdditionalType_UP_RCMD_getInstance() { + KAdditionalType_initEntries(); + return KAdditionalType_UP_RCMD_instance; + } + function KAdditionalType_UGC_getInstance() { + KAdditionalType_initEntries(); + return KAdditionalType_UGC_instance; + } + function KAdditionalType_UP_RESERVATION_getInstance() { + KAdditionalType_initEntries(); + return KAdditionalType_UP_RESERVATION_instance; + } + function KAdditionalType_ARTICLE_getInstance() { + KAdditionalType_initEntries(); + return KAdditionalType_ARTICLE_instance; + } + function KAdditionalType_LIVE_ROOM_getInstance() { + KAdditionalType_initEntries(); + return KAdditionalType_LIVE_ROOM_instance; + } + function KAdditionalType_MUSIC_getInstance() { + KAdditionalType_initEntries(); + return KAdditionalType_MUSIC_instance; + } + function KAdditionalType_UNRECOGNIZED_getInstance() { + KAdditionalType_initEntries(); + return KAdditionalType_UNRECOGNIZED_instance; + } + function KImageStyle_ADD_STYLE_VERTICAL_getInstance() { + KImageStyle_initEntries(); + return KImageStyle_ADD_STYLE_VERTICAL_instance; + } + function KImageStyle_ADD_STYLE_SQUARE_getInstance() { + KImageStyle_initEntries(); + return KImageStyle_ADD_STYLE_SQUARE_instance; + } + function KImageStyle_UNRECOGNIZED_getInstance() { + KImageStyle_initEntries(); + return KImageStyle_UNRECOGNIZED_instance; + } + function KGoodsJumpType_GOODS_NONE_getInstance() { + KGoodsJumpType_initEntries(); + return KGoodsJumpType_GOODS_NONE_instance; + } + function KGoodsJumpType_GOODS_SCHEMA_getInstance() { + KGoodsJumpType_initEntries(); + return KGoodsJumpType_GOODS_SCHEMA_instance; + } + function KGoodsJumpType_GOODS_URL_getInstance() { + KGoodsJumpType_initEntries(); + return KGoodsJumpType_GOODS_URL_instance; + } + function KGoodsJumpType_UNRECOGNIZED_getInstance() { + KGoodsJumpType_initEntries(); + return KGoodsJumpType_UNRECOGNIZED_instance; + } + function KEspaceStyle_MOBA_getInstance() { + KEspaceStyle_initEntries(); + return KEspaceStyle_MOBA_instance; + } + function KEspaceStyle_UNRECOGNIZED_getInstance() { + KEspaceStyle_initEntries(); + return KEspaceStyle_UNRECOGNIZED_instance; + } + function KHighlightTextStyle_STYLE_NONE_getInstance() { + KHighlightTextStyle_initEntries(); + return KHighlightTextStyle_STYLE_NONE_instance; + } + function KHighlightTextStyle_STYLE_HIGHLIGHT_getInstance() { + KHighlightTextStyle_initEntries(); + return KHighlightTextStyle_STYLE_HIGHLIGHT_instance; + } + function KHighlightTextStyle_UNRECOGNIZED_getInstance() { + KHighlightTextStyle_initEntries(); + return KHighlightTextStyle_UNRECOGNIZED_instance; + } + function KReserveRelationLotteryType_DEFAULT_getInstance() { + KReserveRelationLotteryType_initEntries(); + return KReserveRelationLotteryType_DEFAULT_instance; + } + function KReserveRelationLotteryType_CRON_getInstance() { + KReserveRelationLotteryType_initEntries(); + return KReserveRelationLotteryType_CRON_instance; + } + function KReserveRelationLotteryType_UNRECOGNIZED_getInstance() { + KReserveRelationLotteryType_initEntries(); + return KReserveRelationLotteryType_UNRECOGNIZED_instance; + } + function KCoverIcon_NONE_getInstance() { + KCoverIcon_initEntries(); + return KCoverIcon_NONE_instance; + } + function KCoverIcon_PLAY_getInstance() { + KCoverIcon_initEntries(); + return KCoverIcon_PLAY_instance; + } + function KCoverIcon_DANMAKU_getInstance() { + KCoverIcon_initEntries(); + return KCoverIcon_DANMAKU_instance; + } + function KCoverIcon_UP_getInstance() { + KCoverIcon_initEntries(); + return KCoverIcon_UP_instance; + } + function KCoverIcon_VT_getInstance() { + KCoverIcon_initEntries(); + return KCoverIcon_VT_instance; + } + function KCoverIcon_VIEW_CNT_getInstance() { + KCoverIcon_initEntries(); + return KCoverIcon_VIEW_CNT_instance; + } + function KCoverIcon_THUMB_UP_getInstance() { + KCoverIcon_initEntries(); + return KCoverIcon_THUMB_UP_instance; + } + function KCoverIcon_UNRECOGNIZED_getInstance() { + KCoverIcon_initEntries(); + return KCoverIcon_UNRECOGNIZED_instance; + } + function KAdditionVoteType_NONE_getInstance() { + KAdditionVoteType_initEntries(); + return KAdditionVoteType_NONE_instance; + } + function KAdditionVoteType_WORD_getInstance() { + KAdditionVoteType_initEntries(); + return KAdditionVoteType_WORD_instance; + } + function KAdditionVoteType_PIC_getInstance() { + KAdditionVoteType_initEntries(); + return KAdditionVoteType_PIC_instance; + } + function KAdditionVoteType_DEFAULT_getInstance() { + KAdditionVoteType_initEntries(); + return KAdditionVoteType_DEFAULT_instance; + } + function KAdditionVoteType_UNRECOGNIZED_getInstance() { + KAdditionVoteType_initEntries(); + return KAdditionVoteType_UNRECOGNIZED_instance; + } + function KAdditionVoteState_NONE_getInstance() { + KAdditionVoteState_initEntries(); + return KAdditionVoteState_NONE_instance; + } + function KAdditionVoteState_OPEN_getInstance() { + KAdditionVoteState_initEntries(); + return KAdditionVoteState_OPEN_instance; + } + function KAdditionVoteState_CLOSE_getInstance() { + KAdditionVoteState_initEntries(); + return KAdditionVoteState_CLOSE_instance; + } + function KAdditionVoteState_UNRECOGNIZED_getInstance() { + KAdditionVoteState_initEntries(); + return KAdditionVoteState_UNRECOGNIZED_instance; + } + function values$factory_114() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_115() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_116() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_117() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_118() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_119() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_120() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_121() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_122() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_123() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_124() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_125() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_126() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_127() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_128() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_129() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_130() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_131() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_132() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_133() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_134() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_135() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_136() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_137() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_138() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function itemNumber$factory_4() { + return getPropertyCallableRef('itemNumber', 1, KProperty1, function (receiver) { + return _get_itemNumber__22vn01_4(receiver); + }, null); + } + function itemValues$factory_4() { + return getPropertyCallableRef('itemValues', 1, KProperty1, function (receiver) { + return receiver.itemValues; + }, null); + } + function itemNumber$factory_5() { + return getPropertyCallableRef('itemNumber', 1, KProperty1, function (receiver) { + return _get_itemNumber__22vn01_5(receiver); + }, null); + } + function itemValues$factory_5() { + return getPropertyCallableRef('itemValues', 1, KProperty1, function (receiver) { + return receiver.itemValues; + }, null); + } + function itemNumber$factory_6() { + return getPropertyCallableRef('itemNumber', 1, KProperty1, function (receiver) { + return _get_itemNumber__22vn01_6(receiver); + }, null); + } + function itemValues$factory_6() { + return getPropertyCallableRef('itemValues', 1, KProperty1, function (receiver) { + return receiver.itemValues; + }, null); + } + function itemNumber$factory_7() { + return getPropertyCallableRef('itemNumber', 1, KProperty1, function (receiver) { + return _get_itemNumber__22vn01_7(receiver); + }, null); + } + function itemValues$factory_7() { + return getPropertyCallableRef('itemValues', 1, KProperty1, function (receiver) { + return receiver.itemValues; + }, null); + } + function _get_$cachedSerializer__te6jhj_139($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KOpusType$Companion$values$delegate$lambda() { + return listOf_0([KOpusType_DYN_getInstance(), KOpusType_ARTICLE_getInstance(), KOpusType_NOTE_getInstance(), KOpusType_WORD_getInstance()]); + } + function KOpusType$Companion$_anonymous__o7vqcr() { + return $serializer_getInstance_1127(); + } + var KOpusType_DYN_instance; + var KOpusType_ARTICLE_instance; + var KOpusType_NOTE_instance; + var KOpusType_WORD_instance; + var KOpusType_UNRECOGNIZED_instance; + var Companion_instance_1140; + function Companion_getInstance_1140() { + KOpusType_initEntries(); + if (Companion_instance_1140 === VOID) + new Companion_1140(); + return Companion_instance_1140; + } + var $serializer_instance_1127; + function $serializer_getInstance_1127() { + KOpusType_initEntries(); + if ($serializer_instance_1127 === VOID) + new $serializer_1127(); + return $serializer_instance_1127; + } + function values_139() { + return [KOpusType_DYN_getInstance(), KOpusType_ARTICLE_getInstance(), KOpusType_NOTE_getInstance(), KOpusType_WORD_getInstance(), KOpusType_UNRECOGNIZED_getInstance()]; + } + function valueOf_139(value) { + switch (value) { + case 'DYN': + return KOpusType_DYN_getInstance(); + case 'ARTICLE': + return KOpusType_ARTICLE_getInstance(); + case 'NOTE': + return KOpusType_NOTE_getInstance(); + case 'WORD': + return KOpusType_WORD_getInstance(); + case 'UNRECOGNIZED': + return KOpusType_UNRECOGNIZED_getInstance(); + default: + KOpusType_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KOpusType_entriesInitialized; + function KOpusType_initEntries() { + if (KOpusType_entriesInitialized) + return Unit_instance; + KOpusType_entriesInitialized = true; + KOpusType_DYN_instance = new KOpusType('DYN', 0, 0); + KOpusType_ARTICLE_instance = new KOpusType('ARTICLE', 1, 1); + KOpusType_NOTE_instance = new KOpusType('NOTE', 2, 2); + KOpusType_WORD_instance = new KOpusType('WORD', 3, 3); + KOpusType_UNRECOGNIZED_instance = new KOpusType('UNRECOGNIZED', 4, -1); + Companion_getInstance_1140(); + } + function _get_$cachedSerializer__te6jhj_140($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KFlowItemType$Companion$values$delegate$lambda() { + return listOf_0([KFlowItemType_INVALID_getInstance(), KFlowItemType_OPUS_getInstance()]); + } + function KFlowItemType$Companion$_anonymous__xlfqwn() { + return $serializer_getInstance_1128(); + } + var KFlowItemType_INVALID_instance; + var KFlowItemType_OPUS_instance; + var KFlowItemType_UNRECOGNIZED_instance; + var Companion_instance_1141; + function Companion_getInstance_1141() { + KFlowItemType_initEntries(); + if (Companion_instance_1141 === VOID) + new Companion_1141(); + return Companion_instance_1141; + } + var $serializer_instance_1128; + function $serializer_getInstance_1128() { + KFlowItemType_initEntries(); + if ($serializer_instance_1128 === VOID) + new $serializer_1128(); + return $serializer_instance_1128; + } + function values_140() { + return [KFlowItemType_INVALID_getInstance(), KFlowItemType_OPUS_getInstance(), KFlowItemType_UNRECOGNIZED_getInstance()]; + } + function valueOf_140(value) { + switch (value) { + case 'INVALID': + return KFlowItemType_INVALID_getInstance(); + case 'OPUS': + return KFlowItemType_OPUS_getInstance(); + case 'UNRECOGNIZED': + return KFlowItemType_UNRECOGNIZED_getInstance(); + default: + KFlowItemType_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KFlowItemType_entriesInitialized; + function KFlowItemType_initEntries() { + if (KFlowItemType_entriesInitialized) + return Unit_instance; + KFlowItemType_entriesInitialized = true; + KFlowItemType_INVALID_instance = new KFlowItemType('INVALID', 0, 0); + KFlowItemType_OPUS_instance = new KFlowItemType('OPUS', 1, 1); + KFlowItemType_UNRECOGNIZED_instance = new KFlowItemType('UNRECOGNIZED', 2, -1); + Companion_getInstance_1141(); + } + var Companion_instance_1142; + function Companion_getInstance_1142() { + if (Companion_instance_1142 === VOID) + new Companion_1142(); + return Companion_instance_1142; + } + var $serializer_instance_1129; + function $serializer_getInstance_1129() { + if ($serializer_instance_1129 === VOID) + new $serializer_1129(); + return $serializer_instance_1129; + } + var Companion_instance_1143; + function Companion_getInstance_1143() { + return Companion_instance_1143; + } + var $serializer_instance_1130; + function $serializer_getInstance_1130() { + if ($serializer_instance_1130 === VOID) + new $serializer_1130(); + return $serializer_instance_1130; + } + function KOpusFlowItem$Companion$dataValues$delegate$lambda() { + return listOf(KFlowItemOpus_getInstance()); + } + function _get_dataNumber__hqvc14_2($this) { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = $this.dataNumber$delegate_1; + var thisRef = $this; + var property = dataNumber$factory_2(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + var KFlowItemOpus_instance; + function KFlowItemOpus_getInstance() { + if (KFlowItemOpus_instance === VOID) + new KFlowItemOpus(); + return KFlowItemOpus_instance; + } + var Companion_instance_1144; + function Companion_getInstance_1144() { + if (Companion_instance_1144 === VOID) + new Companion_1144(); + return Companion_instance_1144; + } + var $serializer_instance_1131; + function $serializer_getInstance_1131() { + if ($serializer_instance_1131 === VOID) + new $serializer_1131(); + return $serializer_instance_1131; + } + function KOpusFlowItem$dataNumber$delegate$lambda(this$0) { + return function () { + var tmp; + if (!(this$0.flowItemOpus_1 == null)) { + tmp = 0; + } else { + tmp = -1; + } + return tmp; + }; + } + function KOpusFlowItem$_init_$lambda_enygow(this$0) { + return function () { + var tmp; + if (!(this$0.flowItemOpus_1 == null)) { + tmp = 0; + } else { + tmp = -1; + } + return tmp; + }; + } + var Companion_instance_1145; + function Companion_getInstance_1145() { + return Companion_instance_1145; + } + var $serializer_instance_1132; + function $serializer_getInstance_1132() { + if ($serializer_instance_1132 === VOID) + new $serializer_1132(); + return $serializer_instance_1132; + } + var Companion_instance_1146; + function Companion_getInstance_1146() { + if (Companion_instance_1146 === VOID) + new Companion_1146(); + return Companion_instance_1146; + } + var $serializer_instance_1133; + function $serializer_getInstance_1133() { + if ($serializer_instance_1133 === VOID) + new $serializer_1133(); + return $serializer_instance_1133; + } + var Companion_instance_1147; + function Companion_getInstance_1147() { + return Companion_instance_1147; + } + var $serializer_instance_1134; + function $serializer_getInstance_1134() { + if ($serializer_instance_1134 === VOID) + new $serializer_1134(); + return $serializer_instance_1134; + } + var Companion_instance_1148; + function Companion_getInstance_1148() { + return Companion_instance_1148; + } + var $serializer_instance_1135; + function $serializer_getInstance_1135() { + if ($serializer_instance_1135 === VOID) + new $serializer_1135(); + return $serializer_instance_1135; + } + function KOpusType_DYN_getInstance() { + KOpusType_initEntries(); + return KOpusType_DYN_instance; + } + function KOpusType_ARTICLE_getInstance() { + KOpusType_initEntries(); + return KOpusType_ARTICLE_instance; + } + function KOpusType_NOTE_getInstance() { + KOpusType_initEntries(); + return KOpusType_NOTE_instance; + } + function KOpusType_WORD_getInstance() { + KOpusType_initEntries(); + return KOpusType_WORD_instance; + } + function KOpusType_UNRECOGNIZED_getInstance() { + KOpusType_initEntries(); + return KOpusType_UNRECOGNIZED_instance; + } + function KFlowItemType_INVALID_getInstance() { + KFlowItemType_initEntries(); + return KFlowItemType_INVALID_instance; + } + function KFlowItemType_OPUS_getInstance() { + KFlowItemType_initEntries(); + return KFlowItemType_OPUS_instance; + } + function KFlowItemType_UNRECOGNIZED_getInstance() { + KFlowItemType_initEntries(); + return KFlowItemType_UNRECOGNIZED_instance; + } + function values$factory_139() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_140() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function dataNumber$factory_2() { + return getPropertyCallableRef('dataNumber', 1, KProperty1, function (receiver) { + return _get_dataNumber__hqvc14_2(receiver); + }, null); + } + function dataValues$factory_2() { + return getPropertyCallableRef('dataValues', 1, KProperty1, function (receiver) { + return receiver.dataValues; + }, null); + } + var Companion_instance_1149; + function Companion_getInstance_1149() { + return Companion_instance_1149; + } + var $serializer_instance_1136; + function $serializer_getInstance_1136() { + if ($serializer_instance_1136 === VOID) + new $serializer_1136(); + return $serializer_instance_1136; + } + var Companion_instance_1150; + function Companion_getInstance_1150() { + return Companion_instance_1150; + } + var $serializer_instance_1137; + function $serializer_getInstance_1137() { + if ($serializer_instance_1137 === VOID) + new $serializer_1137(); + return $serializer_instance_1137; + } + var Companion_instance_1151; + function Companion_getInstance_1151() { + return Companion_instance_1151; + } + var $serializer_instance_1138; + function $serializer_getInstance_1138() { + if ($serializer_instance_1138 === VOID) + new $serializer_1138(); + return $serializer_instance_1138; + } + var Companion_instance_1152; + function Companion_getInstance_1152() { + if (Companion_instance_1152 === VOID) + new Companion_1152(); + return Companion_instance_1152; + } + var $serializer_instance_1139; + function $serializer_getInstance_1139() { + if ($serializer_instance_1139 === VOID) + new $serializer_1139(); + return $serializer_instance_1139; + } + var Companion_instance_1153; + function Companion_getInstance_1153() { + return Companion_instance_1153; + } + var $serializer_instance_1140; + function $serializer_getInstance_1140() { + if ($serializer_instance_1140 === VOID) + new $serializer_1140(); + return $serializer_instance_1140; + } + var Companion_instance_1154; + function Companion_getInstance_1154() { + return Companion_instance_1154; + } + var $serializer_instance_1141; + function $serializer_getInstance_1141() { + if ($serializer_instance_1141 === VOID) + new $serializer_1141(); + return $serializer_instance_1141; + } + var Companion_instance_1155; + function Companion_getInstance_1155() { + if (Companion_instance_1155 === VOID) + new Companion_1155(); + return Companion_instance_1155; + } + var $serializer_instance_1142; + function $serializer_getInstance_1142() { + if ($serializer_instance_1142 === VOID) + new $serializer_1142(); + return $serializer_instance_1142; + } + var Companion_instance_1156; + function Companion_getInstance_1156() { + return Companion_instance_1156; + } + var $serializer_instance_1143; + function $serializer_getInstance_1143() { + if ($serializer_instance_1143 === VOID) + new $serializer_1143(); + return $serializer_instance_1143; + } + var Companion_instance_1157; + function Companion_getInstance_1157() { + return Companion_instance_1157; + } + var $serializer_instance_1144; + function $serializer_getInstance_1144() { + if ($serializer_instance_1144 === VOID) + new $serializer_1144(); + return $serializer_instance_1144; + } + var Companion_instance_1158; + function Companion_getInstance_1158() { + return Companion_instance_1158; + } + var $serializer_instance_1145; + function $serializer_getInstance_1145() { + if ($serializer_instance_1145 === VOID) + new $serializer_1145(); + return $serializer_instance_1145; + } + var Companion_instance_1159; + function Companion_getInstance_1159() { + return Companion_instance_1159; + } + var $serializer_instance_1146; + function $serializer_getInstance_1146() { + if ($serializer_instance_1146 === VOID) + new $serializer_1146(); + return $serializer_instance_1146; + } + var Companion_instance_1160; + function Companion_getInstance_1160() { + if (Companion_instance_1160 === VOID) + new Companion_1160(); + return Companion_instance_1160; + } + var $serializer_instance_1147; + function $serializer_getInstance_1147() { + if ($serializer_instance_1147 === VOID) + new $serializer_1147(); + return $serializer_instance_1147; + } + var Companion_instance_1161; + function Companion_getInstance_1161() { + return Companion_instance_1161; + } + var $serializer_instance_1148; + function $serializer_getInstance_1148() { + if ($serializer_instance_1148 === VOID) + new $serializer_1148(); + return $serializer_instance_1148; + } + var Companion_instance_1162; + function Companion_getInstance_1162() { + if (Companion_instance_1162 === VOID) + new Companion_1162(); + return Companion_instance_1162; + } + var $serializer_instance_1149; + function $serializer_getInstance_1149() { + if ($serializer_instance_1149 === VOID) + new $serializer_1149(); + return $serializer_instance_1149; + } + function _get_$cachedSerializer__te6jhj_141($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KLinkNodeType$Companion$values$delegate$lambda() { + return listOf_0([KLinkNodeType_INVALID_getInstance(), KLinkNodeType_VIDEO_getInstance(), KLinkNodeType_RESERVE_getInstance(), KLinkNodeType_VOTE_getInstance(), KLinkNodeType_LIVE_getInstance(), KLinkNodeType_LOTTERY_getInstance(), KLinkNodeType_MATCH_getInstance(), KLinkNodeType_GOODS_getInstance(), KLinkNodeType_OGV_SS_getInstance(), KLinkNodeType_OGV_EP_getInstance(), KLinkNodeType_MANGA_getInstance(), KLinkNodeType_CHEESE_getInstance(), KLinkNodeType_VIDEO_TS_getInstance(), KLinkNodeType_AT_getInstance(), KLinkNodeType_HASH_TAG_getInstance(), KLinkNodeType_ARTICLE_getInstance(), KLinkNodeType_URL_getInstance(), KLinkNodeType_MAIL_getInstance(), KLinkNodeType_LBS_getInstance(), KLinkNodeType_ACTIVITY_getInstance(), KLinkNodeType_ATTACH_CARD_OFFICIAL_ACTIVITY_getInstance(), KLinkNodeType_GAME_getInstance(), KLinkNodeType_DECORATION_getInstance(), KLinkNodeType_UP_TOPIC_getInstance(), KLinkNodeType_UP_ACTIVITY_getInstance(), KLinkNodeType_UP_MAOER_getInstance(), KLinkNodeType_MEMBER_GOODS_getInstance(), KLinkNodeType_OPENMALL_UP_ITEMS_getInstance(), KLinkNodeType_SEARCH_getInstance(), KLinkNodeType_MUSIC_getInstance(), KLinkNodeType_GPT_RCMD_QUESTION_getInstance(), KLinkNodeType_MEMBER_TICKET_getInstance()]); + } + function KLinkNodeType$Companion$_anonymous__rxganm() { + return $serializer_getInstance_1150(); + } + var KLinkNodeType_INVALID_instance; + var KLinkNodeType_VIDEO_instance; + var KLinkNodeType_RESERVE_instance; + var KLinkNodeType_VOTE_instance; + var KLinkNodeType_LIVE_instance; + var KLinkNodeType_LOTTERY_instance; + var KLinkNodeType_MATCH_instance; + var KLinkNodeType_GOODS_instance; + var KLinkNodeType_OGV_SS_instance; + var KLinkNodeType_OGV_EP_instance; + var KLinkNodeType_MANGA_instance; + var KLinkNodeType_CHEESE_instance; + var KLinkNodeType_VIDEO_TS_instance; + var KLinkNodeType_AT_instance; + var KLinkNodeType_HASH_TAG_instance; + var KLinkNodeType_ARTICLE_instance; + var KLinkNodeType_URL_instance; + var KLinkNodeType_MAIL_instance; + var KLinkNodeType_LBS_instance; + var KLinkNodeType_ACTIVITY_instance; + var KLinkNodeType_ATTACH_CARD_OFFICIAL_ACTIVITY_instance; + var KLinkNodeType_GAME_instance; + var KLinkNodeType_DECORATION_instance; + var KLinkNodeType_UP_TOPIC_instance; + var KLinkNodeType_UP_ACTIVITY_instance; + var KLinkNodeType_UP_MAOER_instance; + var KLinkNodeType_MEMBER_GOODS_instance; + var KLinkNodeType_OPENMALL_UP_ITEMS_instance; + var KLinkNodeType_SEARCH_instance; + var KLinkNodeType_MUSIC_instance; + var KLinkNodeType_GPT_RCMD_QUESTION_instance; + var KLinkNodeType_MEMBER_TICKET_instance; + var KLinkNodeType_UNRECOGNIZED_instance; + var Companion_instance_1163; + function Companion_getInstance_1163() { + KLinkNodeType_initEntries(); + if (Companion_instance_1163 === VOID) + new Companion_1163(); + return Companion_instance_1163; + } + var $serializer_instance_1150; + function $serializer_getInstance_1150() { + KLinkNodeType_initEntries(); + if ($serializer_instance_1150 === VOID) + new $serializer_1150(); + return $serializer_instance_1150; + } + function values_141() { + return [KLinkNodeType_INVALID_getInstance(), KLinkNodeType_VIDEO_getInstance(), KLinkNodeType_RESERVE_getInstance(), KLinkNodeType_VOTE_getInstance(), KLinkNodeType_LIVE_getInstance(), KLinkNodeType_LOTTERY_getInstance(), KLinkNodeType_MATCH_getInstance(), KLinkNodeType_GOODS_getInstance(), KLinkNodeType_OGV_SS_getInstance(), KLinkNodeType_OGV_EP_getInstance(), KLinkNodeType_MANGA_getInstance(), KLinkNodeType_CHEESE_getInstance(), KLinkNodeType_VIDEO_TS_getInstance(), KLinkNodeType_AT_getInstance(), KLinkNodeType_HASH_TAG_getInstance(), KLinkNodeType_ARTICLE_getInstance(), KLinkNodeType_URL_getInstance(), KLinkNodeType_MAIL_getInstance(), KLinkNodeType_LBS_getInstance(), KLinkNodeType_ACTIVITY_getInstance(), KLinkNodeType_ATTACH_CARD_OFFICIAL_ACTIVITY_getInstance(), KLinkNodeType_GAME_getInstance(), KLinkNodeType_DECORATION_getInstance(), KLinkNodeType_UP_TOPIC_getInstance(), KLinkNodeType_UP_ACTIVITY_getInstance(), KLinkNodeType_UP_MAOER_getInstance(), KLinkNodeType_MEMBER_GOODS_getInstance(), KLinkNodeType_OPENMALL_UP_ITEMS_getInstance(), KLinkNodeType_SEARCH_getInstance(), KLinkNodeType_MUSIC_getInstance(), KLinkNodeType_GPT_RCMD_QUESTION_getInstance(), KLinkNodeType_MEMBER_TICKET_getInstance(), KLinkNodeType_UNRECOGNIZED_getInstance()]; + } + function valueOf_141(value) { + switch (value) { + case 'INVALID': + return KLinkNodeType_INVALID_getInstance(); + case 'VIDEO': + return KLinkNodeType_VIDEO_getInstance(); + case 'RESERVE': + return KLinkNodeType_RESERVE_getInstance(); + case 'VOTE': + return KLinkNodeType_VOTE_getInstance(); + case 'LIVE': + return KLinkNodeType_LIVE_getInstance(); + case 'LOTTERY': + return KLinkNodeType_LOTTERY_getInstance(); + case 'MATCH': + return KLinkNodeType_MATCH_getInstance(); + case 'GOODS': + return KLinkNodeType_GOODS_getInstance(); + case 'OGV_SS': + return KLinkNodeType_OGV_SS_getInstance(); + case 'OGV_EP': + return KLinkNodeType_OGV_EP_getInstance(); + case 'MANGA': + return KLinkNodeType_MANGA_getInstance(); + case 'CHEESE': + return KLinkNodeType_CHEESE_getInstance(); + case 'VIDEO_TS': + return KLinkNodeType_VIDEO_TS_getInstance(); + case 'AT': + return KLinkNodeType_AT_getInstance(); + case 'HASH_TAG': + return KLinkNodeType_HASH_TAG_getInstance(); + case 'ARTICLE': + return KLinkNodeType_ARTICLE_getInstance(); + case 'URL': + return KLinkNodeType_URL_getInstance(); + case 'MAIL': + return KLinkNodeType_MAIL_getInstance(); + case 'LBS': + return KLinkNodeType_LBS_getInstance(); + case 'ACTIVITY': + return KLinkNodeType_ACTIVITY_getInstance(); + case 'ATTACH_CARD_OFFICIAL_ACTIVITY': + return KLinkNodeType_ATTACH_CARD_OFFICIAL_ACTIVITY_getInstance(); + case 'GAME': + return KLinkNodeType_GAME_getInstance(); + case 'DECORATION': + return KLinkNodeType_DECORATION_getInstance(); + case 'UP_TOPIC': + return KLinkNodeType_UP_TOPIC_getInstance(); + case 'UP_ACTIVITY': + return KLinkNodeType_UP_ACTIVITY_getInstance(); + case 'UP_MAOER': + return KLinkNodeType_UP_MAOER_getInstance(); + case 'MEMBER_GOODS': + return KLinkNodeType_MEMBER_GOODS_getInstance(); + case 'OPENMALL_UP_ITEMS': + return KLinkNodeType_OPENMALL_UP_ITEMS_getInstance(); + case 'SEARCH': + return KLinkNodeType_SEARCH_getInstance(); + case 'MUSIC': + return KLinkNodeType_MUSIC_getInstance(); + case 'GPT_RCMD_QUESTION': + return KLinkNodeType_GPT_RCMD_QUESTION_getInstance(); + case 'MEMBER_TICKET': + return KLinkNodeType_MEMBER_TICKET_getInstance(); + case 'UNRECOGNIZED': + return KLinkNodeType_UNRECOGNIZED_getInstance(); + default: + KLinkNodeType_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KLinkNodeType_entriesInitialized; + function KLinkNodeType_initEntries() { + if (KLinkNodeType_entriesInitialized) + return Unit_instance; + KLinkNodeType_entriesInitialized = true; + KLinkNodeType_INVALID_instance = new KLinkNodeType('INVALID', 0, 0); + KLinkNodeType_VIDEO_instance = new KLinkNodeType('VIDEO', 1, 1); + KLinkNodeType_RESERVE_instance = new KLinkNodeType('RESERVE', 2, 2); + KLinkNodeType_VOTE_instance = new KLinkNodeType('VOTE', 3, 3); + KLinkNodeType_LIVE_instance = new KLinkNodeType('LIVE', 4, 4); + KLinkNodeType_LOTTERY_instance = new KLinkNodeType('LOTTERY', 5, 5); + KLinkNodeType_MATCH_instance = new KLinkNodeType('MATCH', 6, 6); + KLinkNodeType_GOODS_instance = new KLinkNodeType('GOODS', 7, 7); + KLinkNodeType_OGV_SS_instance = new KLinkNodeType('OGV_SS', 8, 8); + KLinkNodeType_OGV_EP_instance = new KLinkNodeType('OGV_EP', 9, 9); + KLinkNodeType_MANGA_instance = new KLinkNodeType('MANGA', 10, 10); + KLinkNodeType_CHEESE_instance = new KLinkNodeType('CHEESE', 11, 11); + KLinkNodeType_VIDEO_TS_instance = new KLinkNodeType('VIDEO_TS', 12, 12); + KLinkNodeType_AT_instance = new KLinkNodeType('AT', 13, 13); + KLinkNodeType_HASH_TAG_instance = new KLinkNodeType('HASH_TAG', 14, 14); + KLinkNodeType_ARTICLE_instance = new KLinkNodeType('ARTICLE', 15, 15); + KLinkNodeType_URL_instance = new KLinkNodeType('URL', 16, 16); + KLinkNodeType_MAIL_instance = new KLinkNodeType('MAIL', 17, 17); + KLinkNodeType_LBS_instance = new KLinkNodeType('LBS', 18, 18); + KLinkNodeType_ACTIVITY_instance = new KLinkNodeType('ACTIVITY', 19, 19); + KLinkNodeType_ATTACH_CARD_OFFICIAL_ACTIVITY_instance = new KLinkNodeType('ATTACH_CARD_OFFICIAL_ACTIVITY', 20, 20); + KLinkNodeType_GAME_instance = new KLinkNodeType('GAME', 21, 21); + KLinkNodeType_DECORATION_instance = new KLinkNodeType('DECORATION', 22, 22); + KLinkNodeType_UP_TOPIC_instance = new KLinkNodeType('UP_TOPIC', 23, 23); + KLinkNodeType_UP_ACTIVITY_instance = new KLinkNodeType('UP_ACTIVITY', 24, 24); + KLinkNodeType_UP_MAOER_instance = new KLinkNodeType('UP_MAOER', 25, 25); + KLinkNodeType_MEMBER_GOODS_instance = new KLinkNodeType('MEMBER_GOODS', 26, 26); + KLinkNodeType_OPENMALL_UP_ITEMS_instance = new KLinkNodeType('OPENMALL_UP_ITEMS', 27, 27); + KLinkNodeType_SEARCH_instance = new KLinkNodeType('SEARCH', 28, 28); + KLinkNodeType_MUSIC_instance = new KLinkNodeType('MUSIC', 29, 29); + KLinkNodeType_GPT_RCMD_QUESTION_instance = new KLinkNodeType('GPT_RCMD_QUESTION', 30, 30); + KLinkNodeType_MEMBER_TICKET_instance = new KLinkNodeType('MEMBER_TICKET', 31, 31); + KLinkNodeType_UNRECOGNIZED_instance = new KLinkNodeType('UNRECOGNIZED', 32, -1); + Companion_getInstance_1163(); + } + function KParagraph$Companion$contentValues$delegate$lambda() { + return listOf_0([KText_getInstance_0(), KPic_getInstance(), KLine_getInstance(), KLinkCard_getInstance(), KCode_getInstance()]); + } + function _get_$cachedSerializer__te6jhj_142($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KParagraph$KParagraphType$Companion$values$delegate$lambda() { + return listOf_0([KParagraphType_INVALID_getInstance(), KParagraphType_TEXT_getInstance(), KParagraphType_PICTURES_getInstance(), KParagraphType_LINE_getInstance(), KParagraphType_REFERENCE_getInstance(), KParagraphType_SORTED_LIST_getInstance(), KParagraphType_UNSORTED_LIST_getInstance(), KParagraphType_LINK_CARD_getInstance(), KParagraphType_CODE_getInstance()]); + } + function KParagraph$KParagraphType$Companion$_anonymous__4wztzl() { + return $serializer_getInstance_1151(); + } + var KParagraphType_INVALID_instance; + var KParagraphType_TEXT_instance; + var KParagraphType_PICTURES_instance; + var KParagraphType_LINE_instance; + var KParagraphType_REFERENCE_instance; + var KParagraphType_SORTED_LIST_instance; + var KParagraphType_UNSORTED_LIST_instance; + var KParagraphType_LINK_CARD_instance; + var KParagraphType_CODE_instance; + var KParagraphType_UNRECOGNIZED_instance; + var Companion_instance_1164; + function Companion_getInstance_1164() { + KParagraphType_initEntries(); + if (Companion_instance_1164 === VOID) + new Companion_1164(); + return Companion_instance_1164; + } + var $serializer_instance_1151; + function $serializer_getInstance_1151() { + KParagraphType_initEntries(); + if ($serializer_instance_1151 === VOID) + new $serializer_1151(); + return $serializer_instance_1151; + } + function values_142() { + return [KParagraphType_INVALID_getInstance(), KParagraphType_TEXT_getInstance(), KParagraphType_PICTURES_getInstance(), KParagraphType_LINE_getInstance(), KParagraphType_REFERENCE_getInstance(), KParagraphType_SORTED_LIST_getInstance(), KParagraphType_UNSORTED_LIST_getInstance(), KParagraphType_LINK_CARD_getInstance(), KParagraphType_CODE_getInstance(), KParagraphType_UNRECOGNIZED_getInstance()]; + } + function valueOf_142(value) { + switch (value) { + case 'INVALID': + return KParagraphType_INVALID_getInstance(); + case 'TEXT': + return KParagraphType_TEXT_getInstance(); + case 'PICTURES': + return KParagraphType_PICTURES_getInstance(); + case 'LINE': + return KParagraphType_LINE_getInstance(); + case 'REFERENCE': + return KParagraphType_REFERENCE_getInstance(); + case 'SORTED_LIST': + return KParagraphType_SORTED_LIST_getInstance(); + case 'UNSORTED_LIST': + return KParagraphType_UNSORTED_LIST_getInstance(); + case 'LINK_CARD': + return KParagraphType_LINK_CARD_getInstance(); + case 'CODE': + return KParagraphType_CODE_getInstance(); + case 'UNRECOGNIZED': + return KParagraphType_UNRECOGNIZED_getInstance(); + default: + KParagraphType_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KParagraphType_entriesInitialized; + function KParagraphType_initEntries() { + if (KParagraphType_entriesInitialized) + return Unit_instance; + KParagraphType_entriesInitialized = true; + KParagraphType_INVALID_instance = new KParagraphType('INVALID', 0, 0); + KParagraphType_TEXT_instance = new KParagraphType('TEXT', 1, 1); + KParagraphType_PICTURES_instance = new KParagraphType('PICTURES', 2, 2); + KParagraphType_LINE_instance = new KParagraphType('LINE', 3, 3); + KParagraphType_REFERENCE_instance = new KParagraphType('REFERENCE', 4, 4); + KParagraphType_SORTED_LIST_instance = new KParagraphType('SORTED_LIST', 5, 5); + KParagraphType_UNSORTED_LIST_instance = new KParagraphType('UNSORTED_LIST', 6, 6); + KParagraphType_LINK_CARD_instance = new KParagraphType('LINK_CARD', 7, 7); + KParagraphType_CODE_instance = new KParagraphType('CODE', 8, 8); + KParagraphType_UNRECOGNIZED_instance = new KParagraphType('UNRECOGNIZED', 9, -1); + Companion_getInstance_1164(); + } + function _get_$cachedSerializer__te6jhj_143($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KParagraph$KParagraphAlign$Companion$values$delegate$lambda() { + return listOf_0([KParagraphAlign_LEFT_getInstance(), KParagraphAlign_MIDDLE_getInstance(), KParagraphAlign_RIGHT_getInstance()]); + } + function KParagraph$KParagraphAlign$Companion$_anonymous__f4rf4e() { + return $serializer_getInstance_1152(); + } + var KParagraphAlign_LEFT_instance; + var KParagraphAlign_MIDDLE_instance; + var KParagraphAlign_RIGHT_instance; + var KParagraphAlign_UNRECOGNIZED_instance; + var Companion_instance_1165; + function Companion_getInstance_1165() { + KParagraphAlign_initEntries(); + if (Companion_instance_1165 === VOID) + new Companion_1165(); + return Companion_instance_1165; + } + var $serializer_instance_1152; + function $serializer_getInstance_1152() { + KParagraphAlign_initEntries(); + if ($serializer_instance_1152 === VOID) + new $serializer_1152(); + return $serializer_instance_1152; + } + function values_143() { + return [KParagraphAlign_LEFT_getInstance(), KParagraphAlign_MIDDLE_getInstance(), KParagraphAlign_RIGHT_getInstance(), KParagraphAlign_UNRECOGNIZED_getInstance()]; + } + function valueOf_143(value) { + switch (value) { + case 'LEFT': + return KParagraphAlign_LEFT_getInstance(); + case 'MIDDLE': + return KParagraphAlign_MIDDLE_getInstance(); + case 'RIGHT': + return KParagraphAlign_RIGHT_getInstance(); + case 'UNRECOGNIZED': + return KParagraphAlign_UNRECOGNIZED_getInstance(); + default: + KParagraphAlign_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KParagraphAlign_entriesInitialized; + function KParagraphAlign_initEntries() { + if (KParagraphAlign_entriesInitialized) + return Unit_instance; + KParagraphAlign_entriesInitialized = true; + KParagraphAlign_LEFT_instance = new KParagraphAlign('LEFT', 0, 0); + KParagraphAlign_MIDDLE_instance = new KParagraphAlign('MIDDLE', 1, 1); + KParagraphAlign_RIGHT_instance = new KParagraphAlign('RIGHT', 2, 2); + KParagraphAlign_UNRECOGNIZED_instance = new KParagraphAlign('UNRECOGNIZED', 3, -1); + Companion_getInstance_1165(); + } + var Companion_instance_1166; + function Companion_getInstance_1166() { + return Companion_instance_1166; + } + var $serializer_instance_1153; + function $serializer_getInstance_1153() { + if ($serializer_instance_1153 === VOID) + new $serializer_1153(); + return $serializer_instance_1153; + } + var Companion_instance_1167; + function Companion_getInstance_1167() { + return Companion_instance_1167; + } + var $serializer_instance_1154; + function $serializer_getInstance_1154() { + if ($serializer_instance_1154 === VOID) + new $serializer_1154(); + return $serializer_instance_1154; + } + function _get_contentNumber__iirtht_1($this) { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = $this.contentNumber$delegate_1; + var thisRef = $this; + var property = contentNumber$factory_1(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + var KText_instance_0; + function KText_getInstance_0() { + if (KText_instance_0 === VOID) + new KText_0(); + return KText_instance_0; + } + var KPic_instance; + function KPic_getInstance() { + if (KPic_instance === VOID) + new KPic(); + return KPic_instance; + } + var KLine_instance; + function KLine_getInstance() { + if (KLine_instance === VOID) + new KLine(); + return KLine_instance; + } + var KLinkCard_instance; + function KLinkCard_getInstance() { + if (KLinkCard_instance === VOID) + new KLinkCard(); + return KLinkCard_instance; + } + var KCode_instance; + function KCode_getInstance() { + if (KCode_instance === VOID) + new KCode(); + return KCode_instance; + } + var Companion_instance_1168; + function Companion_getInstance_1168() { + if (Companion_instance_1168 === VOID) + new Companion_1168(); + return Companion_instance_1168; + } + var $serializer_instance_1155; + function $serializer_getInstance_1155() { + if ($serializer_instance_1155 === VOID) + new $serializer_1155(); + return $serializer_instance_1155; + } + function KParagraph$contentNumber$delegate$lambda(this$0) { + return function () { + var tmp; + if (!(this$0.text_1 == null)) { + tmp = 0; + } else if (!(this$0.pic_1 == null)) { + tmp = 1; + } else if (!(this$0.line_1 == null)) { + tmp = 2; + } else if (!(this$0.linkCard_1 == null)) { + tmp = 3; + } else if (!(this$0.code_1 == null)) { + tmp = 4; + } else { + tmp = -1; + } + return tmp; + }; + } + function KParagraph$_init_$lambda_5vqxjc(this$0) { + return function () { + var tmp; + if (!(this$0.text_1 == null)) { + tmp = 0; + } else if (!(this$0.pic_1 == null)) { + tmp = 1; + } else if (!(this$0.line_1 == null)) { + tmp = 2; + } else if (!(this$0.linkCard_1 == null)) { + tmp = 3; + } else if (!(this$0.code_1 == null)) { + tmp = 4; + } else { + tmp = -1; + } + return tmp; + }; + } + function KParagraphType_INVALID_getInstance() { + KParagraphType_initEntries(); + return KParagraphType_INVALID_instance; + } + function KParagraphType_TEXT_getInstance() { + KParagraphType_initEntries(); + return KParagraphType_TEXT_instance; + } + function KParagraphType_PICTURES_getInstance() { + KParagraphType_initEntries(); + return KParagraphType_PICTURES_instance; + } + function KParagraphType_LINE_getInstance() { + KParagraphType_initEntries(); + return KParagraphType_LINE_instance; + } + function KParagraphType_REFERENCE_getInstance() { + KParagraphType_initEntries(); + return KParagraphType_REFERENCE_instance; + } + function KParagraphType_SORTED_LIST_getInstance() { + KParagraphType_initEntries(); + return KParagraphType_SORTED_LIST_instance; + } + function KParagraphType_UNSORTED_LIST_getInstance() { + KParagraphType_initEntries(); + return KParagraphType_UNSORTED_LIST_instance; + } + function KParagraphType_LINK_CARD_getInstance() { + KParagraphType_initEntries(); + return KParagraphType_LINK_CARD_instance; + } + function KParagraphType_CODE_getInstance() { + KParagraphType_initEntries(); + return KParagraphType_CODE_instance; + } + function KParagraphType_UNRECOGNIZED_getInstance() { + KParagraphType_initEntries(); + return KParagraphType_UNRECOGNIZED_instance; + } + function KParagraphAlign_LEFT_getInstance() { + KParagraphAlign_initEntries(); + return KParagraphAlign_LEFT_instance; + } + function KParagraphAlign_MIDDLE_getInstance() { + KParagraphAlign_initEntries(); + return KParagraphAlign_MIDDLE_instance; + } + function KParagraphAlign_RIGHT_getInstance() { + KParagraphAlign_initEntries(); + return KParagraphAlign_RIGHT_instance; + } + function KParagraphAlign_UNRECOGNIZED_getInstance() { + KParagraphAlign_initEntries(); + return KParagraphAlign_UNRECOGNIZED_instance; + } + function _get_$cachedSerializer__te6jhj_144($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KPicParagraph$KPicParagraphStyle$Companion$values$delegate$lambda() { + return listOf_0([KPicParagraphStyle_INVALID_getInstance(), KPicParagraphStyle_NINE_CELL_getInstance(), KPicParagraphStyle_BIG_SCROLL_getInstance()]); + } + function KPicParagraph$KPicParagraphStyle$Companion$_anonymous__p8xuco() { + return $serializer_getInstance_1156(); + } + var KPicParagraphStyle_INVALID_instance; + var KPicParagraphStyle_NINE_CELL_instance; + var KPicParagraphStyle_BIG_SCROLL_instance; + var KPicParagraphStyle_UNRECOGNIZED_instance; + var Companion_instance_1169; + function Companion_getInstance_1169() { + KPicParagraphStyle_initEntries(); + if (Companion_instance_1169 === VOID) + new Companion_1169(); + return Companion_instance_1169; + } + var $serializer_instance_1156; + function $serializer_getInstance_1156() { + KPicParagraphStyle_initEntries(); + if ($serializer_instance_1156 === VOID) + new $serializer_1156(); + return $serializer_instance_1156; + } + function values_144() { + return [KPicParagraphStyle_INVALID_getInstance(), KPicParagraphStyle_NINE_CELL_getInstance(), KPicParagraphStyle_BIG_SCROLL_getInstance(), KPicParagraphStyle_UNRECOGNIZED_getInstance()]; + } + function valueOf_144(value) { + switch (value) { + case 'INVALID': + return KPicParagraphStyle_INVALID_getInstance(); + case 'NINE_CELL': + return KPicParagraphStyle_NINE_CELL_getInstance(); + case 'BIG_SCROLL': + return KPicParagraphStyle_BIG_SCROLL_getInstance(); + case 'UNRECOGNIZED': + return KPicParagraphStyle_UNRECOGNIZED_getInstance(); + default: + KPicParagraphStyle_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KPicParagraphStyle_entriesInitialized; + function KPicParagraphStyle_initEntries() { + if (KPicParagraphStyle_entriesInitialized) + return Unit_instance; + KPicParagraphStyle_entriesInitialized = true; + KPicParagraphStyle_INVALID_instance = new KPicParagraphStyle('INVALID', 0, 0); + KPicParagraphStyle_NINE_CELL_instance = new KPicParagraphStyle('NINE_CELL', 1, 1); + KPicParagraphStyle_BIG_SCROLL_instance = new KPicParagraphStyle('BIG_SCROLL', 2, 2); + KPicParagraphStyle_UNRECOGNIZED_instance = new KPicParagraphStyle('UNRECOGNIZED', 3, -1); + Companion_getInstance_1169(); + } + var Companion_instance_1170; + function Companion_getInstance_1170() { + return Companion_instance_1170; + } + var $serializer_instance_1157; + function $serializer_getInstance_1157() { + if ($serializer_instance_1157 === VOID) + new $serializer_1157(); + return $serializer_instance_1157; + } + function KPicParagraphStyle_INVALID_getInstance() { + KPicParagraphStyle_initEntries(); + return KPicParagraphStyle_INVALID_instance; + } + function KPicParagraphStyle_NINE_CELL_getInstance() { + KPicParagraphStyle_initEntries(); + return KPicParagraphStyle_NINE_CELL_instance; + } + function KPicParagraphStyle_BIG_SCROLL_getInstance() { + KPicParagraphStyle_initEntries(); + return KPicParagraphStyle_BIG_SCROLL_instance; + } + function KPicParagraphStyle_UNRECOGNIZED_getInstance() { + KPicParagraphStyle_initEntries(); + return KPicParagraphStyle_UNRECOGNIZED_instance; + } + var Companion_instance_1171; + function Companion_getInstance_1171() { + return Companion_instance_1171; + } + var $serializer_instance_1158; + function $serializer_getInstance_1158() { + if ($serializer_instance_1158 === VOID) + new $serializer_1158(); + return $serializer_instance_1158; + } + var Companion_instance_1172; + function Companion_getInstance_1172() { + if (Companion_instance_1172 === VOID) + new Companion_1172(); + return Companion_instance_1172; + } + var $serializer_instance_1159; + function $serializer_getInstance_1159() { + if ($serializer_instance_1159 === VOID) + new $serializer_1159(); + return $serializer_instance_1159; + } + function KTextNode$Companion$textValues$delegate$lambda() { + return listOf_0([KWord_getInstance(), KEmote_getInstance(), KLink_getInstance(), KFormula_getInstance()]); + } + function _get_$cachedSerializer__te6jhj_145($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KTextNode$KTextNodeType$Companion$values$delegate$lambda() { + return listOf_0([KTextNodeType_INVALID_getInstance(), KTextNodeType_WORDS_getInstance(), KTextNodeType_EMOTE_getInstance(), KTextNodeType_AT_getInstance(), KTextNodeType_BIZ_LINK_getInstance(), KTextNodeType_FORMULA_getInstance()]); + } + function KTextNode$KTextNodeType$Companion$_anonymous__7fczuj() { + return $serializer_getInstance_1160(); + } + var KTextNodeType_INVALID_instance; + var KTextNodeType_WORDS_instance; + var KTextNodeType_EMOTE_instance; + var KTextNodeType_AT_instance; + var KTextNodeType_BIZ_LINK_instance; + var KTextNodeType_FORMULA_instance; + var KTextNodeType_UNRECOGNIZED_instance; + var Companion_instance_1173; + function Companion_getInstance_1173() { + KTextNodeType_initEntries(); + if (Companion_instance_1173 === VOID) + new Companion_1173(); + return Companion_instance_1173; + } + var $serializer_instance_1160; + function $serializer_getInstance_1160() { + KTextNodeType_initEntries(); + if ($serializer_instance_1160 === VOID) + new $serializer_1160(); + return $serializer_instance_1160; + } + function values_145() { + return [KTextNodeType_INVALID_getInstance(), KTextNodeType_WORDS_getInstance(), KTextNodeType_EMOTE_getInstance(), KTextNodeType_AT_getInstance(), KTextNodeType_BIZ_LINK_getInstance(), KTextNodeType_FORMULA_getInstance(), KTextNodeType_UNRECOGNIZED_getInstance()]; + } + function valueOf_145(value) { + switch (value) { + case 'INVALID': + return KTextNodeType_INVALID_getInstance(); + case 'WORDS': + return KTextNodeType_WORDS_getInstance(); + case 'EMOTE': + return KTextNodeType_EMOTE_getInstance(); + case 'AT': + return KTextNodeType_AT_getInstance(); + case 'BIZ_LINK': + return KTextNodeType_BIZ_LINK_getInstance(); + case 'FORMULA': + return KTextNodeType_FORMULA_getInstance(); + case 'UNRECOGNIZED': + return KTextNodeType_UNRECOGNIZED_getInstance(); + default: + KTextNodeType_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KTextNodeType_entriesInitialized; + function KTextNodeType_initEntries() { + if (KTextNodeType_entriesInitialized) + return Unit_instance; + KTextNodeType_entriesInitialized = true; + KTextNodeType_INVALID_instance = new KTextNodeType('INVALID', 0, 0); + KTextNodeType_WORDS_instance = new KTextNodeType('WORDS', 1, 1); + KTextNodeType_EMOTE_instance = new KTextNodeType('EMOTE', 2, 2); + KTextNodeType_AT_instance = new KTextNodeType('AT', 3, 3); + KTextNodeType_BIZ_LINK_instance = new KTextNodeType('BIZ_LINK', 4, 4); + KTextNodeType_FORMULA_instance = new KTextNodeType('FORMULA', 5, 5); + KTextNodeType_UNRECOGNIZED_instance = new KTextNodeType('UNRECOGNIZED', 6, -1); + Companion_getInstance_1173(); + } + function _get_textNumber__752owb($this) { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = $this.textNumber$delegate_1; + var thisRef = $this; + var property = textNumber$factory(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + var KWord_instance; + function KWord_getInstance() { + if (KWord_instance === VOID) + new KWord(); + return KWord_instance; + } + var KEmote_instance; + function KEmote_getInstance() { + if (KEmote_instance === VOID) + new KEmote(); + return KEmote_instance; + } + var KLink_instance; + function KLink_getInstance() { + if (KLink_instance === VOID) + new KLink(); + return KLink_instance; + } + var KFormula_instance; + function KFormula_getInstance() { + if (KFormula_instance === VOID) + new KFormula(); + return KFormula_instance; + } + var Companion_instance_1174; + function Companion_getInstance_1174() { + if (Companion_instance_1174 === VOID) + new Companion_1174(); + return Companion_instance_1174; + } + var $serializer_instance_1161; + function $serializer_getInstance_1161() { + if ($serializer_instance_1161 === VOID) + new $serializer_1161(); + return $serializer_instance_1161; + } + function KTextNode$textNumber$delegate$lambda(this$0) { + return function () { + var tmp; + if (!(this$0.word_1 == null)) { + tmp = 0; + } else if (!(this$0.emote_1 == null)) { + tmp = 1; + } else if (!(this$0.link_1 == null)) { + tmp = 2; + } else if (!(this$0.formula_1 == null)) { + tmp = 3; + } else { + tmp = -1; + } + return tmp; + }; + } + function KTextNode$_init_$lambda_uyzbg1(this$0) { + return function () { + var tmp; + if (!(this$0.word_1 == null)) { + tmp = 0; + } else if (!(this$0.emote_1 == null)) { + tmp = 1; + } else if (!(this$0.link_1 == null)) { + tmp = 2; + } else if (!(this$0.formula_1 == null)) { + tmp = 3; + } else { + tmp = -1; + } + return tmp; + }; + } + function KTextNodeType_INVALID_getInstance() { + KTextNodeType_initEntries(); + return KTextNodeType_INVALID_instance; + } + function KTextNodeType_WORDS_getInstance() { + KTextNodeType_initEntries(); + return KTextNodeType_WORDS_instance; + } + function KTextNodeType_EMOTE_getInstance() { + KTextNodeType_initEntries(); + return KTextNodeType_EMOTE_instance; + } + function KTextNodeType_AT_getInstance() { + KTextNodeType_initEntries(); + return KTextNodeType_AT_instance; + } + function KTextNodeType_BIZ_LINK_getInstance() { + KTextNodeType_initEntries(); + return KTextNodeType_BIZ_LINK_instance; + } + function KTextNodeType_FORMULA_getInstance() { + KTextNodeType_initEntries(); + return KTextNodeType_FORMULA_instance; + } + function KTextNodeType_UNRECOGNIZED_getInstance() { + KTextNodeType_initEntries(); + return KTextNodeType_UNRECOGNIZED_instance; + } + var Companion_instance_1175; + function Companion_getInstance_1175() { + return Companion_instance_1175; + } + var $serializer_instance_1162; + function $serializer_getInstance_1162() { + if ($serializer_instance_1162 === VOID) + new $serializer_1162(); + return $serializer_instance_1162; + } + var Companion_instance_1176; + function Companion_getInstance_1176() { + return Companion_instance_1176; + } + var $serializer_instance_1163; + function $serializer_getInstance_1163() { + if ($serializer_instance_1163 === VOID) + new $serializer_1163(); + return $serializer_instance_1163; + } + var Companion_instance_1177; + function Companion_getInstance_1177() { + return Companion_instance_1177; + } + var $serializer_instance_1164; + function $serializer_getInstance_1164() { + if ($serializer_instance_1164 === VOID) + new $serializer_1164(); + return $serializer_instance_1164; + } + var Companion_instance_1178; + function Companion_getInstance_1178() { + return Companion_instance_1178; + } + var $serializer_instance_1165; + function $serializer_getInstance_1165() { + if ($serializer_instance_1165 === VOID) + new $serializer_1165(); + return $serializer_instance_1165; + } + var Companion_instance_1179; + function Companion_getInstance_1179() { + return Companion_instance_1179; + } + var $serializer_instance_1166; + function $serializer_getInstance_1166() { + if ($serializer_instance_1166 === VOID) + new $serializer_1166(); + return $serializer_instance_1166; + } + var Companion_instance_1180; + function Companion_getInstance_1180() { + return Companion_instance_1180; + } + var $serializer_instance_1167; + function $serializer_getInstance_1167() { + if ($serializer_instance_1167 === VOID) + new $serializer_1167(); + return $serializer_instance_1167; + } + var Companion_instance_1181; + function Companion_getInstance_1181() { + return Companion_instance_1181; + } + var $serializer_instance_1168; + function $serializer_getInstance_1168() { + if ($serializer_instance_1168 === VOID) + new $serializer_1168(); + return $serializer_instance_1168; + } + var Companion_instance_1182; + function Companion_getInstance_1182() { + return Companion_instance_1182; + } + var $serializer_instance_1169; + function $serializer_getInstance_1169() { + if ($serializer_instance_1169 === VOID) + new $serializer_1169(); + return $serializer_instance_1169; + } + var Companion_instance_1183; + function Companion_getInstance_1183() { + return Companion_instance_1183; + } + var $serializer_instance_1170; + function $serializer_getInstance_1170() { + if ($serializer_instance_1170 === VOID) + new $serializer_1170(); + return $serializer_instance_1170; + } + var Companion_instance_1184; + function Companion_getInstance_1184() { + return Companion_instance_1184; + } + var $serializer_instance_1171; + function $serializer_getInstance_1171() { + if ($serializer_instance_1171 === VOID) + new $serializer_1171(); + return $serializer_instance_1171; + } + var Companion_instance_1185; + function Companion_getInstance_1185() { + return Companion_instance_1185; + } + var $serializer_instance_1172; + function $serializer_getInstance_1172() { + if ($serializer_instance_1172 === VOID) + new $serializer_1172(); + return $serializer_instance_1172; + } + function KLinkNodeType_INVALID_getInstance() { + KLinkNodeType_initEntries(); + return KLinkNodeType_INVALID_instance; + } + function KLinkNodeType_VIDEO_getInstance() { + KLinkNodeType_initEntries(); + return KLinkNodeType_VIDEO_instance; + } + function KLinkNodeType_RESERVE_getInstance() { + KLinkNodeType_initEntries(); + return KLinkNodeType_RESERVE_instance; + } + function KLinkNodeType_VOTE_getInstance() { + KLinkNodeType_initEntries(); + return KLinkNodeType_VOTE_instance; + } + function KLinkNodeType_LIVE_getInstance() { + KLinkNodeType_initEntries(); + return KLinkNodeType_LIVE_instance; + } + function KLinkNodeType_LOTTERY_getInstance() { + KLinkNodeType_initEntries(); + return KLinkNodeType_LOTTERY_instance; + } + function KLinkNodeType_MATCH_getInstance() { + KLinkNodeType_initEntries(); + return KLinkNodeType_MATCH_instance; + } + function KLinkNodeType_GOODS_getInstance() { + KLinkNodeType_initEntries(); + return KLinkNodeType_GOODS_instance; + } + function KLinkNodeType_OGV_SS_getInstance() { + KLinkNodeType_initEntries(); + return KLinkNodeType_OGV_SS_instance; + } + function KLinkNodeType_OGV_EP_getInstance() { + KLinkNodeType_initEntries(); + return KLinkNodeType_OGV_EP_instance; + } + function KLinkNodeType_MANGA_getInstance() { + KLinkNodeType_initEntries(); + return KLinkNodeType_MANGA_instance; + } + function KLinkNodeType_CHEESE_getInstance() { + KLinkNodeType_initEntries(); + return KLinkNodeType_CHEESE_instance; + } + function KLinkNodeType_VIDEO_TS_getInstance() { + KLinkNodeType_initEntries(); + return KLinkNodeType_VIDEO_TS_instance; + } + function KLinkNodeType_AT_getInstance() { + KLinkNodeType_initEntries(); + return KLinkNodeType_AT_instance; + } + function KLinkNodeType_HASH_TAG_getInstance() { + KLinkNodeType_initEntries(); + return KLinkNodeType_HASH_TAG_instance; + } + function KLinkNodeType_ARTICLE_getInstance() { + KLinkNodeType_initEntries(); + return KLinkNodeType_ARTICLE_instance; + } + function KLinkNodeType_URL_getInstance() { + KLinkNodeType_initEntries(); + return KLinkNodeType_URL_instance; + } + function KLinkNodeType_MAIL_getInstance() { + KLinkNodeType_initEntries(); + return KLinkNodeType_MAIL_instance; + } + function KLinkNodeType_LBS_getInstance() { + KLinkNodeType_initEntries(); + return KLinkNodeType_LBS_instance; + } + function KLinkNodeType_ACTIVITY_getInstance() { + KLinkNodeType_initEntries(); + return KLinkNodeType_ACTIVITY_instance; + } + function KLinkNodeType_ATTACH_CARD_OFFICIAL_ACTIVITY_getInstance() { + KLinkNodeType_initEntries(); + return KLinkNodeType_ATTACH_CARD_OFFICIAL_ACTIVITY_instance; + } + function KLinkNodeType_GAME_getInstance() { + KLinkNodeType_initEntries(); + return KLinkNodeType_GAME_instance; + } + function KLinkNodeType_DECORATION_getInstance() { + KLinkNodeType_initEntries(); + return KLinkNodeType_DECORATION_instance; + } + function KLinkNodeType_UP_TOPIC_getInstance() { + KLinkNodeType_initEntries(); + return KLinkNodeType_UP_TOPIC_instance; + } + function KLinkNodeType_UP_ACTIVITY_getInstance() { + KLinkNodeType_initEntries(); + return KLinkNodeType_UP_ACTIVITY_instance; + } + function KLinkNodeType_UP_MAOER_getInstance() { + KLinkNodeType_initEntries(); + return KLinkNodeType_UP_MAOER_instance; + } + function KLinkNodeType_MEMBER_GOODS_getInstance() { + KLinkNodeType_initEntries(); + return KLinkNodeType_MEMBER_GOODS_instance; + } + function KLinkNodeType_OPENMALL_UP_ITEMS_getInstance() { + KLinkNodeType_initEntries(); + return KLinkNodeType_OPENMALL_UP_ITEMS_instance; + } + function KLinkNodeType_SEARCH_getInstance() { + KLinkNodeType_initEntries(); + return KLinkNodeType_SEARCH_instance; + } + function KLinkNodeType_MUSIC_getInstance() { + KLinkNodeType_initEntries(); + return KLinkNodeType_MUSIC_instance; + } + function KLinkNodeType_GPT_RCMD_QUESTION_getInstance() { + KLinkNodeType_initEntries(); + return KLinkNodeType_GPT_RCMD_QUESTION_instance; + } + function KLinkNodeType_MEMBER_TICKET_getInstance() { + KLinkNodeType_initEntries(); + return KLinkNodeType_MEMBER_TICKET_instance; + } + function KLinkNodeType_UNRECOGNIZED_getInstance() { + KLinkNodeType_initEntries(); + return KLinkNodeType_UNRECOGNIZED_instance; + } + function values$factory_141() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function contentNumber$factory_1() { + return getPropertyCallableRef('contentNumber', 1, KProperty1, function (receiver) { + return _get_contentNumber__iirtht_1(receiver); + }, null); + } + function contentValues$factory_1() { + return getPropertyCallableRef('contentValues', 1, KProperty1, function (receiver) { + return receiver.contentValues; + }, null); + } + function values$factory_142() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_143() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_144() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function textNumber$factory() { + return getPropertyCallableRef('textNumber', 1, KProperty1, function (receiver) { + return _get_textNumber__752owb(receiver); + }, null); + } + function textValues$factory() { + return getPropertyCallableRef('textValues', 1, KProperty1, function (receiver) { + return receiver.textValues; + }, null); + } + function values$factory_145() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function _get_$cachedSerializer__te6jhj_146($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KHistorySource$Companion$values$delegate$lambda() { + return listOf_0([KHistorySource_HISTORY_getInstance(), KHistorySource_SHOPPING_getInstance()]); + } + function KHistorySource$Companion$_anonymous__re98yd() { + return $serializer_getInstance_1173(); + } + var KHistorySource_HISTORY_instance; + var KHistorySource_SHOPPING_instance; + var KHistorySource_UNRECOGNIZED_instance; + var Companion_instance_1186; + function Companion_getInstance_1186() { + KHistorySource_initEntries(); + if (Companion_instance_1186 === VOID) + new Companion_1186(); + return Companion_instance_1186; + } + var $serializer_instance_1173; + function $serializer_getInstance_1173() { + KHistorySource_initEntries(); + if ($serializer_instance_1173 === VOID) + new $serializer_1173(); + return $serializer_instance_1173; + } + function values_146() { + return [KHistorySource_HISTORY_getInstance(), KHistorySource_SHOPPING_getInstance(), KHistorySource_UNRECOGNIZED_getInstance()]; + } + function valueOf_146(value) { + switch (value) { + case 'HISTORY': + return KHistorySource_HISTORY_getInstance(); + case 'SHOPPING': + return KHistorySource_SHOPPING_getInstance(); + case 'UNRECOGNIZED': + return KHistorySource_UNRECOGNIZED_getInstance(); + default: + KHistorySource_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KHistorySource_entriesInitialized; + function KHistorySource_initEntries() { + if (KHistorySource_entriesInitialized) + return Unit_instance; + KHistorySource_entriesInitialized = true; + KHistorySource_HISTORY_instance = new KHistorySource('HISTORY', 0, 0); + KHistorySource_SHOPPING_instance = new KHistorySource('SHOPPING', 1, 1); + KHistorySource_UNRECOGNIZED_instance = new KHistorySource('UNRECOGNIZED', 2, -1); + Companion_getInstance_1186(); + } + function _get_$cachedSerializer__te6jhj_147($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KDT$Companion$values$delegate$lambda() { + return listOf_0([KDT_UNKNOWN_getInstance(), KDT_PHONE_getInstance(), KDT_PAD_getInstance(), KDT_PC_getInstance(), KDT_TV_getInstance(), KDT_CAR_getInstance(), KDT_IOT_getInstance(), KDT_AND_PAD_getInstance()]); + } + function KDT$Companion$_anonymous__b5retw() { + return $serializer_getInstance_1174(); + } + var KDT_UNKNOWN_instance; + var KDT_PHONE_instance; + var KDT_PAD_instance; + var KDT_PC_instance; + var KDT_TV_instance; + var KDT_CAR_instance; + var KDT_IOT_instance; + var KDT_AND_PAD_instance; + var KDT_UNRECOGNIZED_instance; + var Companion_instance_1187; + function Companion_getInstance_1187() { + KDT_initEntries(); + if (Companion_instance_1187 === VOID) + new Companion_1187(); + return Companion_instance_1187; + } + var $serializer_instance_1174; + function $serializer_getInstance_1174() { + KDT_initEntries(); + if ($serializer_instance_1174 === VOID) + new $serializer_1174(); + return $serializer_instance_1174; + } + function values_147() { + return [KDT_UNKNOWN_getInstance(), KDT_PHONE_getInstance(), KDT_PAD_getInstance(), KDT_PC_getInstance(), KDT_TV_getInstance(), KDT_CAR_getInstance(), KDT_IOT_getInstance(), KDT_AND_PAD_getInstance(), KDT_UNRECOGNIZED_getInstance()]; + } + function valueOf_147(value) { + switch (value) { + case 'UNKNOWN': + return KDT_UNKNOWN_getInstance(); + case 'PHONE': + return KDT_PHONE_getInstance(); + case 'PAD': + return KDT_PAD_getInstance(); + case 'PC': + return KDT_PC_getInstance(); + case 'TV': + return KDT_TV_getInstance(); + case 'CAR': + return KDT_CAR_getInstance(); + case 'IOT': + return KDT_IOT_getInstance(); + case 'AND_PAD': + return KDT_AND_PAD_getInstance(); + case 'UNRECOGNIZED': + return KDT_UNRECOGNIZED_getInstance(); + default: + KDT_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KDT_entriesInitialized; + function KDT_initEntries() { + if (KDT_entriesInitialized) + return Unit_instance; + KDT_entriesInitialized = true; + KDT_UNKNOWN_instance = new KDT('UNKNOWN', 0, 0); + KDT_PHONE_instance = new KDT('PHONE', 1, 1); + KDT_PAD_instance = new KDT('PAD', 2, 2); + KDT_PC_instance = new KDT('PC', 3, 3); + KDT_TV_instance = new KDT('TV', 4, 4); + KDT_CAR_instance = new KDT('CAR', 5, 5); + KDT_IOT_instance = new KDT('IOT', 6, 6); + KDT_AND_PAD_instance = new KDT('AND_PAD', 7, 7); + KDT_UNRECOGNIZED_instance = new KDT('UNRECOGNIZED', 8, -1); + Companion_getInstance_1187(); + } + var Companion_instance_1188; + function Companion_getInstance_1188() { + return Companion_instance_1188; + } + var $serializer_instance_1175; + function $serializer_getInstance_1175() { + if ($serializer_instance_1175 === VOID) + new $serializer_1175(); + return $serializer_instance_1175; + } + var Companion_instance_1189; + function Companion_getInstance_1189() { + if (Companion_instance_1189 === VOID) + new Companion_1189(); + return Companion_instance_1189; + } + var $serializer_instance_1176; + function $serializer_getInstance_1176() { + if ($serializer_instance_1176 === VOID) + new $serializer_1176(); + return $serializer_instance_1176; + } + var Companion_instance_1190; + function Companion_getInstance_1190() { + return Companion_instance_1190; + } + var $serializer_instance_1177; + function $serializer_getInstance_1177() { + if ($serializer_instance_1177 === VOID) + new $serializer_1177(); + return $serializer_instance_1177; + } + var Companion_instance_1191; + function Companion_getInstance_1191() { + if (Companion_instance_1191 === VOID) + new Companion_1191(); + return Companion_instance_1191; + } + var $serializer_instance_1178; + function $serializer_getInstance_1178() { + if ($serializer_instance_1178 === VOID) + new $serializer_1178(); + return $serializer_instance_1178; + } + var Companion_instance_1192; + function Companion_getInstance_1192() { + return Companion_instance_1192; + } + var $serializer_instance_1179; + function $serializer_getInstance_1179() { + if ($serializer_instance_1179 === VOID) + new $serializer_1179(); + return $serializer_instance_1179; + } + var Companion_instance_1193; + function Companion_getInstance_1193() { + if (Companion_instance_1193 === VOID) + new Companion_1193(); + return Companion_instance_1193; + } + var $serializer_instance_1180; + function $serializer_getInstance_1180() { + if ($serializer_instance_1180 === VOID) + new $serializer_1180(); + return $serializer_instance_1180; + } + function KCursorItem$Companion$cardItemValues$delegate$lambda() { + return listOf_0([KCardUgc_getInstance(), KCardOgv_getInstance(), KCardArticle_getInstance(), KCardLive_getInstance(), KCardCheese_getInstance()]); + } + function _get_cardItemNumber__9vvfof_0($this) { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = $this.cardItemNumber$delegate_1; + var thisRef = $this; + var property = cardItemNumber$factory_0(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + var KCardUgc_instance; + function KCardUgc_getInstance() { + if (KCardUgc_instance === VOID) + new KCardUgc(); + return KCardUgc_instance; + } + var KCardOgv_instance; + function KCardOgv_getInstance() { + if (KCardOgv_instance === VOID) + new KCardOgv(); + return KCardOgv_instance; + } + var KCardArticle_instance; + function KCardArticle_getInstance() { + if (KCardArticle_instance === VOID) + new KCardArticle(); + return KCardArticle_instance; + } + var KCardLive_instance; + function KCardLive_getInstance() { + if (KCardLive_instance === VOID) + new KCardLive(); + return KCardLive_instance; + } + var KCardCheese_instance; + function KCardCheese_getInstance() { + if (KCardCheese_instance === VOID) + new KCardCheese(); + return KCardCheese_instance; + } + var Companion_instance_1194; + function Companion_getInstance_1194() { + if (Companion_instance_1194 === VOID) + new Companion_1194(); + return Companion_instance_1194; + } + var $serializer_instance_1181; + function $serializer_getInstance_1181() { + if ($serializer_instance_1181 === VOID) + new $serializer_1181(); + return $serializer_instance_1181; + } + function KCursorItem$cardItemNumber$delegate$lambda(this$0) { + return function () { + var tmp; + if (!(this$0.cardUgc_1 == null)) { + tmp = 0; + } else if (!(this$0.cardOgv_1 == null)) { + tmp = 1; + } else if (!(this$0.cardArticle_1 == null)) { + tmp = 2; + } else if (!(this$0.cardLive_1 == null)) { + tmp = 3; + } else if (!(this$0.cardCheese_1 == null)) { + tmp = 4; + } else { + tmp = -1; + } + return tmp; + }; + } + function KCursorItem$_init_$lambda_w6vad3(this$0) { + return function () { + var tmp; + if (!(this$0.cardUgc_1 == null)) { + tmp = 0; + } else if (!(this$0.cardOgv_1 == null)) { + tmp = 1; + } else if (!(this$0.cardArticle_1 == null)) { + tmp = 2; + } else if (!(this$0.cardLive_1 == null)) { + tmp = 3; + } else if (!(this$0.cardCheese_1 == null)) { + tmp = 4; + } else { + tmp = -1; + } + return tmp; + }; + } + var Companion_instance_1195; + function Companion_getInstance_1195() { + return Companion_instance_1195; + } + var $serializer_instance_1182; + function $serializer_getInstance_1182() { + if ($serializer_instance_1182 === VOID) + new $serializer_1182(); + return $serializer_instance_1182; + } + var Companion_instance_1196; + function Companion_getInstance_1196() { + return Companion_instance_1196; + } + var $serializer_instance_1183; + function $serializer_getInstance_1183() { + if ($serializer_instance_1183 === VOID) + new $serializer_1183(); + return $serializer_instance_1183; + } + var Companion_instance_1197; + function Companion_getInstance_1197() { + if (Companion_instance_1197 === VOID) + new Companion_1197(); + return Companion_instance_1197; + } + var $serializer_instance_1184; + function $serializer_getInstance_1184() { + if ($serializer_instance_1184 === VOID) + new $serializer_1184(); + return $serializer_instance_1184; + } + var Companion_instance_1198; + function Companion_getInstance_1198() { + return Companion_instance_1198; + } + var $serializer_instance_1185; + function $serializer_getInstance_1185() { + if ($serializer_instance_1185 === VOID) + new $serializer_1185(); + return $serializer_instance_1185; + } + var Companion_instance_1199; + function Companion_getInstance_1199() { + return Companion_instance_1199; + } + var $serializer_instance_1186; + function $serializer_getInstance_1186() { + if ($serializer_instance_1186 === VOID) + new $serializer_1186(); + return $serializer_instance_1186; + } + var Companion_instance_1200; + function Companion_getInstance_1200() { + return Companion_instance_1200; + } + var $serializer_instance_1187; + function $serializer_getInstance_1187() { + if ($serializer_instance_1187 === VOID) + new $serializer_1187(); + return $serializer_instance_1187; + } + var Companion_instance_1201; + function Companion_getInstance_1201() { + return Companion_instance_1201; + } + var $serializer_instance_1188; + function $serializer_getInstance_1188() { + if ($serializer_instance_1188 === VOID) + new $serializer_1188(); + return $serializer_instance_1188; + } + var Companion_instance_1202; + function Companion_getInstance_1202() { + if (Companion_instance_1202 === VOID) + new Companion_1202(); + return Companion_instance_1202; + } + var $serializer_instance_1189; + function $serializer_getInstance_1189() { + if ($serializer_instance_1189 === VOID) + new $serializer_1189(); + return $serializer_instance_1189; + } + var Companion_instance_1203; + function Companion_getInstance_1203() { + return Companion_instance_1203; + } + var $serializer_instance_1190; + function $serializer_getInstance_1190() { + if ($serializer_instance_1190 === VOID) + new $serializer_1190(); + return $serializer_instance_1190; + } + var Companion_instance_1204; + function Companion_getInstance_1204() { + return Companion_instance_1204; + } + var $serializer_instance_1191; + function $serializer_getInstance_1191() { + if ($serializer_instance_1191 === VOID) + new $serializer_1191(); + return $serializer_instance_1191; + } + var Companion_instance_1205; + function Companion_getInstance_1205() { + return Companion_instance_1205; + } + var $serializer_instance_1192; + function $serializer_getInstance_1192() { + if ($serializer_instance_1192 === VOID) + new $serializer_1192(); + return $serializer_instance_1192; + } + var Companion_instance_1206; + function Companion_getInstance_1206() { + return Companion_instance_1206; + } + var $serializer_instance_1193; + function $serializer_getInstance_1193() { + if ($serializer_instance_1193 === VOID) + new $serializer_1193(); + return $serializer_instance_1193; + } + var Companion_instance_1207; + function Companion_getInstance_1207() { + return Companion_instance_1207; + } + var $serializer_instance_1194; + function $serializer_getInstance_1194() { + if ($serializer_instance_1194 === VOID) + new $serializer_1194(); + return $serializer_instance_1194; + } + var Companion_instance_1208; + function Companion_getInstance_1208() { + if (Companion_instance_1208 === VOID) + new Companion_1208(); + return Companion_instance_1208; + } + var $serializer_instance_1195; + function $serializer_getInstance_1195() { + if ($serializer_instance_1195 === VOID) + new $serializer_1195(); + return $serializer_instance_1195; + } + var Companion_instance_1209; + function Companion_getInstance_1209() { + return Companion_instance_1209; + } + var $serializer_instance_1196; + function $serializer_getInstance_1196() { + if ($serializer_instance_1196 === VOID) + new $serializer_1196(); + return $serializer_instance_1196; + } + var Companion_instance_1210; + function Companion_getInstance_1210() { + return Companion_instance_1210; + } + var $serializer_instance_1197; + function $serializer_getInstance_1197() { + if ($serializer_instance_1197 === VOID) + new $serializer_1197(); + return $serializer_instance_1197; + } + var Companion_instance_1211; + function Companion_getInstance_1211() { + return Companion_instance_1211; + } + var $serializer_instance_1198; + function $serializer_getInstance_1198() { + if ($serializer_instance_1198 === VOID) + new $serializer_1198(); + return $serializer_instance_1198; + } + var Companion_instance_1212; + function Companion_getInstance_1212() { + return Companion_instance_1212; + } + var $serializer_instance_1199; + function $serializer_getInstance_1199() { + if ($serializer_instance_1199 === VOID) + new $serializer_1199(); + return $serializer_instance_1199; + } + var Companion_instance_1213; + function Companion_getInstance_1213() { + return Companion_instance_1213; + } + var $serializer_instance_1200; + function $serializer_getInstance_1200() { + if ($serializer_instance_1200 === VOID) + new $serializer_1200(); + return $serializer_instance_1200; + } + function KHistorySource_HISTORY_getInstance() { + KHistorySource_initEntries(); + return KHistorySource_HISTORY_instance; + } + function KHistorySource_SHOPPING_getInstance() { + KHistorySource_initEntries(); + return KHistorySource_SHOPPING_instance; + } + function KHistorySource_UNRECOGNIZED_getInstance() { + KHistorySource_initEntries(); + return KHistorySource_UNRECOGNIZED_instance; + } + function KDT_UNKNOWN_getInstance() { + KDT_initEntries(); + return KDT_UNKNOWN_instance; + } + function KDT_PHONE_getInstance() { + KDT_initEntries(); + return KDT_PHONE_instance; + } + function KDT_PAD_getInstance() { + KDT_initEntries(); + return KDT_PAD_instance; + } + function KDT_PC_getInstance() { + KDT_initEntries(); + return KDT_PC_instance; + } + function KDT_TV_getInstance() { + KDT_initEntries(); + return KDT_TV_instance; + } + function KDT_CAR_getInstance() { + KDT_initEntries(); + return KDT_CAR_instance; + } + function KDT_IOT_getInstance() { + KDT_initEntries(); + return KDT_IOT_instance; + } + function KDT_AND_PAD_getInstance() { + KDT_initEntries(); + return KDT_AND_PAD_instance; + } + function KDT_UNRECOGNIZED_getInstance() { + KDT_initEntries(); + return KDT_UNRECOGNIZED_instance; + } + function values$factory_146() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_147() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function cardItemNumber$factory_0() { + return getPropertyCallableRef('cardItemNumber', 1, KProperty1, function (receiver) { + return _get_cardItemNumber__9vvfof_0(receiver); + }, null); + } + function cardItemValues$factory_0() { + return getPropertyCallableRef('cardItemValues', 1, KProperty1, function (receiver) { + return receiver.cardItemValues; + }, null); + } + function _get_$cachedSerializer__te6jhj_148($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KCommentType$Companion$values$delegate$lambda() { + return listOf_0([KCommentType_NONE_getInstance(), KCommentType_REDIRECT_getInstance(), KCommentType_JUDGE_getInstance()]); + } + function KCommentType$Companion$_anonymous__jcfhdr() { + return $serializer_getInstance_1201(); + } + var KCommentType_NONE_instance; + var KCommentType_REDIRECT_instance; + var KCommentType_JUDGE_instance; + var KCommentType_UNRECOGNIZED_instance; + var Companion_instance_1214; + function Companion_getInstance_1214() { + KCommentType_initEntries(); + if (Companion_instance_1214 === VOID) + new Companion_1214(); + return Companion_instance_1214; + } + var $serializer_instance_1201; + function $serializer_getInstance_1201() { + KCommentType_initEntries(); + if ($serializer_instance_1201 === VOID) + new $serializer_1201(); + return $serializer_instance_1201; + } + function values_148() { + return [KCommentType_NONE_getInstance(), KCommentType_REDIRECT_getInstance(), KCommentType_JUDGE_getInstance(), KCommentType_UNRECOGNIZED_getInstance()]; + } + function valueOf_148(value) { + switch (value) { + case 'NONE': + return KCommentType_NONE_getInstance(); + case 'REDIRECT': + return KCommentType_REDIRECT_getInstance(); + case 'JUDGE': + return KCommentType_JUDGE_getInstance(); + case 'UNRECOGNIZED': + return KCommentType_UNRECOGNIZED_getInstance(); + default: + KCommentType_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KCommentType_entriesInitialized; + function KCommentType_initEntries() { + if (KCommentType_entriesInitialized) + return Unit_instance; + KCommentType_entriesInitialized = true; + KCommentType_NONE_instance = new KCommentType('NONE', 0, 0); + KCommentType_REDIRECT_instance = new KCommentType('REDIRECT', 1, 1); + KCommentType_JUDGE_instance = new KCommentType('JUDGE', 2, 2); + KCommentType_UNRECOGNIZED_instance = new KCommentType('UNRECOGNIZED', 3, -1); + Companion_getInstance_1214(); + } + function _get_$cachedSerializer__te6jhj_149($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KButType$Companion$values$delegate$lambda() { + return listOf_0([KButType_BUT_INVALID_getInstance(), KButType_BUT_REDIRECT_getInstance(), KButType_BUT_LIKE_getInstance()]); + } + function KButType$Companion$_anonymous__myumzl() { + return $serializer_getInstance_1202(); + } + var KButType_BUT_INVALID_instance; + var KButType_BUT_REDIRECT_instance; + var KButType_BUT_LIKE_instance; + var KButType_UNRECOGNIZED_instance; + var Companion_instance_1215; + function Companion_getInstance_1215() { + KButType_initEntries(); + if (Companion_instance_1215 === VOID) + new Companion_1215(); + return Companion_instance_1215; + } + var $serializer_instance_1202; + function $serializer_getInstance_1202() { + KButType_initEntries(); + if ($serializer_instance_1202 === VOID) + new $serializer_1202(); + return $serializer_instance_1202; + } + function values_149() { + return [KButType_BUT_INVALID_getInstance(), KButType_BUT_REDIRECT_getInstance(), KButType_BUT_LIKE_getInstance(), KButType_UNRECOGNIZED_getInstance()]; + } + function valueOf_149(value) { + switch (value) { + case 'BUT_INVALID': + return KButType_BUT_INVALID_getInstance(); + case 'BUT_REDIRECT': + return KButType_BUT_REDIRECT_getInstance(); + case 'BUT_LIKE': + return KButType_BUT_LIKE_getInstance(); + case 'UNRECOGNIZED': + return KButType_UNRECOGNIZED_getInstance(); + default: + KButType_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KButType_entriesInitialized; + function KButType_initEntries() { + if (KButType_entriesInitialized) + return Unit_instance; + KButType_entriesInitialized = true; + KButType_BUT_INVALID_instance = new KButType('BUT_INVALID', 0, 0); + KButType_BUT_REDIRECT_instance = new KButType('BUT_REDIRECT', 1, 1); + KButType_BUT_LIKE_instance = new KButType('BUT_LIKE', 2, 2); + KButType_UNRECOGNIZED_instance = new KButType('UNRECOGNIZED', 3, -1); + Companion_getInstance_1215(); + } + function _get_$cachedSerializer__te6jhj_150($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KTabType$Companion$values$delegate$lambda_0() { + return listOf_0([KTabType_TAB_INVALID_getInstance(), KTabType_TAB_OGV_DETAIL_getInstance(), KTabType_TAB_OGV_REPLY_getInstance(), KTabType_TAB_FEED_BID_getInstance(), KTabType_TAB_FEED_SMALL_getInstance()]); + } + function KTabType$Companion$_anonymous__rajoqd_0() { + return $serializer_getInstance_1203(); + } + var KTabType_TAB_INVALID_instance; + var KTabType_TAB_OGV_DETAIL_instance; + var KTabType_TAB_OGV_REPLY_instance; + var KTabType_TAB_FEED_BID_instance; + var KTabType_TAB_FEED_SMALL_instance; + var KTabType_UNRECOGNIZED_instance_0; + var Companion_instance_1216; + function Companion_getInstance_1216() { + KTabType_initEntries_0(); + if (Companion_instance_1216 === VOID) + new Companion_1216(); + return Companion_instance_1216; + } + var $serializer_instance_1203; + function $serializer_getInstance_1203() { + KTabType_initEntries_0(); + if ($serializer_instance_1203 === VOID) + new $serializer_1203(); + return $serializer_instance_1203; + } + function values_150() { + return [KTabType_TAB_INVALID_getInstance(), KTabType_TAB_OGV_DETAIL_getInstance(), KTabType_TAB_OGV_REPLY_getInstance(), KTabType_TAB_FEED_BID_getInstance(), KTabType_TAB_FEED_SMALL_getInstance(), KTabType_UNRECOGNIZED_getInstance_0()]; + } + function valueOf_150(value) { + switch (value) { + case 'TAB_INVALID': + return KTabType_TAB_INVALID_getInstance(); + case 'TAB_OGV_DETAIL': + return KTabType_TAB_OGV_DETAIL_getInstance(); + case 'TAB_OGV_REPLY': + return KTabType_TAB_OGV_REPLY_getInstance(); + case 'TAB_FEED_BID': + return KTabType_TAB_FEED_BID_getInstance(); + case 'TAB_FEED_SMALL': + return KTabType_TAB_FEED_SMALL_getInstance(); + case 'UNRECOGNIZED': + return KTabType_UNRECOGNIZED_getInstance_0(); + default: + KTabType_initEntries_0(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KTabType_entriesInitialized_0; + function KTabType_initEntries_0() { + if (KTabType_entriesInitialized_0) + return Unit_instance; + KTabType_entriesInitialized_0 = true; + KTabType_TAB_INVALID_instance = new KTabType_0('TAB_INVALID', 0, 0); + KTabType_TAB_OGV_DETAIL_instance = new KTabType_0('TAB_OGV_DETAIL', 1, 6); + KTabType_TAB_OGV_REPLY_instance = new KTabType_0('TAB_OGV_REPLY', 2, 7); + KTabType_TAB_FEED_BID_instance = new KTabType_0('TAB_FEED_BID', 3, 8); + KTabType_TAB_FEED_SMALL_instance = new KTabType_0('TAB_FEED_SMALL', 4, 9); + KTabType_UNRECOGNIZED_instance_0 = new KTabType_0('UNRECOGNIZED', 5, -1); + Companion_getInstance_1216(); + } + var Companion_instance_1217; + function Companion_getInstance_1217() { + return Companion_instance_1217; + } + var $serializer_instance_1204; + function $serializer_getInstance_1204() { + if ($serializer_instance_1204 === VOID) + new $serializer_1204(); + return $serializer_instance_1204; + } + var Companion_instance_1218; + function Companion_getInstance_1218() { + return Companion_instance_1218; + } + var $serializer_instance_1205; + function $serializer_getInstance_1205() { + if ($serializer_instance_1205 === VOID) + new $serializer_1205(); + return $serializer_instance_1205; + } + var Companion_instance_1219; + function Companion_getInstance_1219() { + return Companion_instance_1219; + } + var $serializer_instance_1206; + function $serializer_getInstance_1206() { + if ($serializer_instance_1206 === VOID) + new $serializer_1206(); + return $serializer_instance_1206; + } + var Companion_instance_1220; + function Companion_getInstance_1220() { + return Companion_instance_1220; + } + var $serializer_instance_1207; + function $serializer_getInstance_1207() { + if ($serializer_instance_1207 === VOID) + new $serializer_1207(); + return $serializer_instance_1207; + } + var Companion_instance_1221; + function Companion_getInstance_1221() { + if (Companion_instance_1221 === VOID) + new Companion_1221(); + return Companion_instance_1221; + } + var $serializer_instance_1208; + function $serializer_getInstance_1208() { + if ($serializer_instance_1208 === VOID) + new $serializer_1208(); + return $serializer_instance_1208; + } + var Companion_instance_1222; + function Companion_getInstance_1222() { + return Companion_instance_1222; + } + var $serializer_instance_1209; + function $serializer_getInstance_1209() { + if ($serializer_instance_1209 === VOID) + new $serializer_1209(); + return $serializer_instance_1209; + } + var Companion_instance_1223; + function Companion_getInstance_1223() { + return Companion_instance_1223; + } + var $serializer_instance_1210; + function $serializer_getInstance_1210() { + if ($serializer_instance_1210 === VOID) + new $serializer_1210(); + return $serializer_instance_1210; + } + var Companion_instance_1224; + function Companion_getInstance_1224() { + return Companion_instance_1224; + } + var $serializer_instance_1211; + function $serializer_getInstance_1211() { + if ($serializer_instance_1211 === VOID) + new $serializer_1211(); + return $serializer_instance_1211; + } + var Companion_instance_1225; + function Companion_getInstance_1225() { + if (Companion_instance_1225 === VOID) + new Companion_1225(); + return Companion_instance_1225; + } + var $serializer_instance_1212; + function $serializer_getInstance_1212() { + if ($serializer_instance_1212 === VOID) + new $serializer_1212(); + return $serializer_instance_1212; + } + var Companion_instance_1226; + function Companion_getInstance_1226() { + return Companion_instance_1226; + } + var $serializer_instance_1213; + function $serializer_getInstance_1213() { + if ($serializer_instance_1213 === VOID) + new $serializer_1213(); + return $serializer_instance_1213; + } + var Companion_instance_1227; + function Companion_getInstance_1227() { + return Companion_instance_1227; + } + var $serializer_instance_1214; + function $serializer_getInstance_1214() { + if ($serializer_instance_1214 === VOID) + new $serializer_1214(); + return $serializer_instance_1214; + } + var Companion_instance_1228; + function Companion_getInstance_1228() { + return Companion_instance_1228; + } + var $serializer_instance_1215; + function $serializer_getInstance_1215() { + if ($serializer_instance_1215 === VOID) + new $serializer_1215(); + return $serializer_instance_1215; + } + var Companion_instance_1229; + function Companion_getInstance_1229() { + return Companion_instance_1229; + } + var $serializer_instance_1216; + function $serializer_getInstance_1216() { + if ($serializer_instance_1216 === VOID) + new $serializer_1216(); + return $serializer_instance_1216; + } + var Companion_instance_1230; + function Companion_getInstance_1230() { + return Companion_instance_1230; + } + var $serializer_instance_1217; + function $serializer_getInstance_1217() { + if ($serializer_instance_1217 === VOID) + new $serializer_1217(); + return $serializer_instance_1217; + } + var Companion_instance_1231; + function Companion_getInstance_1231() { + return Companion_instance_1231; + } + var $serializer_instance_1218; + function $serializer_getInstance_1218() { + if ($serializer_instance_1218 === VOID) + new $serializer_1218(); + return $serializer_instance_1218; + } + var Companion_instance_1232; + function Companion_getInstance_1232() { + return Companion_instance_1232; + } + var $serializer_instance_1219; + function $serializer_getInstance_1219() { + if ($serializer_instance_1219 === VOID) + new $serializer_1219(); + return $serializer_instance_1219; + } + var Companion_instance_1233; + function Companion_getInstance_1233() { + return Companion_instance_1233; + } + var $serializer_instance_1220; + function $serializer_getInstance_1220() { + if ($serializer_instance_1220 === VOID) + new $serializer_1220(); + return $serializer_instance_1220; + } + var Companion_instance_1234; + function Companion_getInstance_1234() { + return Companion_instance_1234; + } + var $serializer_instance_1221; + function $serializer_getInstance_1221() { + if ($serializer_instance_1221 === VOID) + new $serializer_1221(); + return $serializer_instance_1221; + } + var Companion_instance_1235; + function Companion_getInstance_1235() { + return Companion_instance_1235; + } + var $serializer_instance_1222; + function $serializer_getInstance_1222() { + if ($serializer_instance_1222 === VOID) + new $serializer_1222(); + return $serializer_instance_1222; + } + var Companion_instance_1236; + function Companion_getInstance_1236() { + if (Companion_instance_1236 === VOID) + new Companion_1236(); + return Companion_instance_1236; + } + var $serializer_instance_1223; + function $serializer_getInstance_1223() { + if ($serializer_instance_1223 === VOID) + new $serializer_1223(); + return $serializer_instance_1223; + } + var Companion_instance_1237; + function Companion_getInstance_1237() { + return Companion_instance_1237; + } + var $serializer_instance_1224; + function $serializer_getInstance_1224() { + if ($serializer_instance_1224 === VOID) + new $serializer_1224(); + return $serializer_instance_1224; + } + var Companion_instance_1238; + function Companion_getInstance_1238() { + return Companion_instance_1238; + } + var $serializer_instance_1225; + function $serializer_getInstance_1225() { + if ($serializer_instance_1225 === VOID) + new $serializer_1225(); + return $serializer_instance_1225; + } + var Companion_instance_1239; + function Companion_getInstance_1239() { + if (Companion_instance_1239 === VOID) + new Companion_1239(); + return Companion_instance_1239; + } + var $serializer_instance_1226; + function $serializer_getInstance_1226() { + if ($serializer_instance_1226 === VOID) + new $serializer_1226(); + return $serializer_instance_1226; + } + var Companion_instance_1240; + function Companion_getInstance_1240() { + return Companion_instance_1240; + } + var $serializer_instance_1227; + function $serializer_getInstance_1227() { + if ($serializer_instance_1227 === VOID) + new $serializer_1227(); + return $serializer_instance_1227; + } + var Companion_instance_1241; + function Companion_getInstance_1241() { + return Companion_instance_1241; + } + var $serializer_instance_1228; + function $serializer_getInstance_1228() { + if ($serializer_instance_1228 === VOID) + new $serializer_1228(); + return $serializer_instance_1228; + } + var Companion_instance_1242; + function Companion_getInstance_1242() { + if (Companion_instance_1242 === VOID) + new Companion_1242(); + return Companion_instance_1242; + } + var $serializer_instance_1229; + function $serializer_getInstance_1229() { + if ($serializer_instance_1229 === VOID) + new $serializer_1229(); + return $serializer_instance_1229; + } + var Companion_instance_1243; + function Companion_getInstance_1243() { + return Companion_instance_1243; + } + var $serializer_instance_1230; + function $serializer_getInstance_1230() { + if ($serializer_instance_1230 === VOID) + new $serializer_1230(); + return $serializer_instance_1230; + } + var Companion_instance_1244; + function Companion_getInstance_1244() { + return Companion_instance_1244; + } + var $serializer_instance_1231; + function $serializer_getInstance_1231() { + if ($serializer_instance_1231 === VOID) + new $serializer_1231(); + return $serializer_instance_1231; + } + var Companion_instance_1245; + function Companion_getInstance_1245() { + if (Companion_instance_1245 === VOID) + new Companion_1245(); + return Companion_instance_1245; + } + var $serializer_instance_1232; + function $serializer_getInstance_1232() { + if ($serializer_instance_1232 === VOID) + new $serializer_1232(); + return $serializer_instance_1232; + } + var Companion_instance_1246; + function Companion_getInstance_1246() { + return Companion_instance_1246; + } + var $serializer_instance_1233; + function $serializer_getInstance_1233() { + if ($serializer_instance_1233 === VOID) + new $serializer_1233(); + return $serializer_instance_1233; + } + function KCommentType_NONE_getInstance() { + KCommentType_initEntries(); + return KCommentType_NONE_instance; + } + function KCommentType_REDIRECT_getInstance() { + KCommentType_initEntries(); + return KCommentType_REDIRECT_instance; + } + function KCommentType_JUDGE_getInstance() { + KCommentType_initEntries(); + return KCommentType_JUDGE_instance; + } + function KCommentType_UNRECOGNIZED_getInstance() { + KCommentType_initEntries(); + return KCommentType_UNRECOGNIZED_instance; + } + function KButType_BUT_INVALID_getInstance() { + KButType_initEntries(); + return KButType_BUT_INVALID_instance; + } + function KButType_BUT_REDIRECT_getInstance() { + KButType_initEntries(); + return KButType_BUT_REDIRECT_instance; + } + function KButType_BUT_LIKE_getInstance() { + KButType_initEntries(); + return KButType_BUT_LIKE_instance; + } + function KButType_UNRECOGNIZED_getInstance() { + KButType_initEntries(); + return KButType_UNRECOGNIZED_instance; + } + function KTabType_TAB_INVALID_getInstance() { + KTabType_initEntries_0(); + return KTabType_TAB_INVALID_instance; + } + function KTabType_TAB_OGV_DETAIL_getInstance() { + KTabType_initEntries_0(); + return KTabType_TAB_OGV_DETAIL_instance; + } + function KTabType_TAB_OGV_REPLY_getInstance() { + KTabType_initEntries_0(); + return KTabType_TAB_OGV_REPLY_instance; + } + function KTabType_TAB_FEED_BID_getInstance() { + KTabType_initEntries_0(); + return KTabType_TAB_FEED_BID_instance; + } + function KTabType_TAB_FEED_SMALL_getInstance() { + KTabType_initEntries_0(); + return KTabType_TAB_FEED_SMALL_instance; + } + function KTabType_UNRECOGNIZED_getInstance_0() { + KTabType_initEntries_0(); + return KTabType_UNRECOGNIZED_instance_0; + } + function values$factory_148() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_149() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_150() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + var Companion_instance_1247; + function Companion_getInstance_1247() { + return Companion_instance_1247; + } + var $serializer_instance_1234; + function $serializer_getInstance_1234() { + if ($serializer_instance_1234 === VOID) + new $serializer_1234(); + return $serializer_instance_1234; + } + var Companion_instance_1248; + function Companion_getInstance_1248() { + return Companion_instance_1248; + } + var $serializer_instance_1235; + function $serializer_getInstance_1235() { + if ($serializer_instance_1235 === VOID) + new $serializer_1235(); + return $serializer_instance_1235; + } + var Companion_instance_1249; + function Companion_getInstance_1249() { + return Companion_instance_1249; + } + var $serializer_instance_1236; + function $serializer_getInstance_1236() { + if ($serializer_instance_1236 === VOID) + new $serializer_1236(); + return $serializer_instance_1236; + } + var Companion_instance_1250; + function Companion_getInstance_1250() { + if (Companion_instance_1250 === VOID) + new Companion_1250(); + return Companion_instance_1250; + } + var $serializer_instance_1237; + function $serializer_getInstance_1237() { + if ($serializer_instance_1237 === VOID) + new $serializer_1237(); + return $serializer_instance_1237; + } + var Companion_instance_1251; + function Companion_getInstance_1251() { + if (Companion_instance_1251 === VOID) + new Companion_1251(); + return Companion_instance_1251; + } + var $serializer_instance_1238; + function $serializer_getInstance_1238() { + if ($serializer_instance_1238 === VOID) + new $serializer_1238(); + return $serializer_instance_1238; + } + var Companion_instance_1252; + function Companion_getInstance_1252() { + return Companion_instance_1252; + } + var $serializer_instance_1239; + function $serializer_getInstance_1239() { + if ($serializer_instance_1239 === VOID) + new $serializer_1239(); + return $serializer_instance_1239; + } + var Companion_instance_1253; + function Companion_getInstance_1253() { + return Companion_instance_1253; + } + var $serializer_instance_1240; + function $serializer_getInstance_1240() { + if ($serializer_instance_1240 === VOID) + new $serializer_1240(); + return $serializer_instance_1240; + } + var Companion_instance_1254; + function Companion_getInstance_1254() { + return Companion_instance_1254; + } + var $serializer_instance_1241; + function $serializer_getInstance_1241() { + if ($serializer_instance_1241 === VOID) + new $serializer_1241(); + return $serializer_instance_1241; + } + function _get_$cachedSerializer__te6jhj_151($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KFrom$Companion$values$delegate$lambda() { + return listOf_0([KFrom_ARCHIVE_TAB_getInstance(), KFrom_DYNAMIC_TAB_getInstance()]); + } + function KFrom$Companion$_anonymous__afespm() { + return $serializer_getInstance_1242(); + } + var KFrom_ARCHIVE_TAB_instance; + var KFrom_DYNAMIC_TAB_instance; + var KFrom_UNRECOGNIZED_instance; + var Companion_instance_1255; + function Companion_getInstance_1255() { + KFrom_initEntries(); + if (Companion_instance_1255 === VOID) + new Companion_1255(); + return Companion_instance_1255; + } + var $serializer_instance_1242; + function $serializer_getInstance_1242() { + KFrom_initEntries(); + if ($serializer_instance_1242 === VOID) + new $serializer_1242(); + return $serializer_instance_1242; + } + function values_151() { + return [KFrom_ARCHIVE_TAB_getInstance(), KFrom_DYNAMIC_TAB_getInstance(), KFrom_UNRECOGNIZED_getInstance()]; + } + function valueOf_151(value) { + switch (value) { + case 'ARCHIVE_TAB': + return KFrom_ARCHIVE_TAB_getInstance(); + case 'DYNAMIC_TAB': + return KFrom_DYNAMIC_TAB_getInstance(); + case 'UNRECOGNIZED': + return KFrom_UNRECOGNIZED_getInstance(); + default: + KFrom_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KFrom_entriesInitialized; + function KFrom_initEntries() { + if (KFrom_entriesInitialized) + return Unit_instance; + KFrom_entriesInitialized = true; + KFrom_ARCHIVE_TAB_instance = new KFrom('ARCHIVE_TAB', 0, 0); + KFrom_DYNAMIC_TAB_instance = new KFrom('DYNAMIC_TAB', 1, 1); + KFrom_UNRECOGNIZED_instance = new KFrom('UNRECOGNIZED', 2, -1); + Companion_getInstance_1255(); + } + var Companion_instance_1256; + function Companion_getInstance_1256() { + return Companion_instance_1256; + } + var $serializer_instance_1243; + function $serializer_getInstance_1243() { + if ($serializer_instance_1243 === VOID) + new $serializer_1243(); + return $serializer_instance_1243; + } + var Companion_instance_1257; + function Companion_getInstance_1257() { + if (Companion_instance_1257 === VOID) + new Companion_1257(); + return Companion_instance_1257; + } + var $serializer_instance_1244; + function $serializer_getInstance_1244() { + if ($serializer_instance_1244 === VOID) + new $serializer_1244(); + return $serializer_instance_1244; + } + var Companion_instance_1258; + function Companion_getInstance_1258() { + return Companion_instance_1258; + } + var $serializer_instance_1245; + function $serializer_getInstance_1245() { + if ($serializer_instance_1245 === VOID) + new $serializer_1245(); + return $serializer_instance_1245; + } + var Companion_instance_1259; + function Companion_getInstance_1259() { + return Companion_instance_1259; + } + var $serializer_instance_1246; + function $serializer_getInstance_1246() { + if ($serializer_instance_1246 === VOID) + new $serializer_1246(); + return $serializer_instance_1246; + } + var Companion_instance_1260; + function Companion_getInstance_1260() { + if (Companion_instance_1260 === VOID) + new Companion_1260(); + return Companion_instance_1260; + } + var $serializer_instance_1247; + function $serializer_getInstance_1247() { + if ($serializer_instance_1247 === VOID) + new $serializer_1247(); + return $serializer_instance_1247; + } + var Companion_instance_1261; + function Companion_getInstance_1261() { + if (Companion_instance_1261 === VOID) + new Companion_1261(); + return Companion_instance_1261; + } + var $serializer_instance_1248; + function $serializer_getInstance_1248() { + if ($serializer_instance_1248 === VOID) + new $serializer_1248(); + return $serializer_instance_1248; + } + var Companion_instance_1262; + function Companion_getInstance_1262() { + return Companion_instance_1262; + } + var $serializer_instance_1249; + function $serializer_getInstance_1249() { + if ($serializer_instance_1249 === VOID) + new $serializer_1249(); + return $serializer_instance_1249; + } + var Companion_instance_1263; + function Companion_getInstance_1263() { + if (Companion_instance_1263 === VOID) + new Companion_1263(); + return Companion_instance_1263; + } + var $serializer_instance_1250; + function $serializer_getInstance_1250() { + if ($serializer_instance_1250 === VOID) + new $serializer_1250(); + return $serializer_instance_1250; + } + var Companion_instance_1264; + function Companion_getInstance_1264() { + return Companion_instance_1264; + } + var $serializer_instance_1251; + function $serializer_getInstance_1251() { + if ($serializer_instance_1251 === VOID) + new $serializer_1251(); + return $serializer_instance_1251; + } + function KFrom_ARCHIVE_TAB_getInstance() { + KFrom_initEntries(); + return KFrom_ARCHIVE_TAB_instance; + } + function KFrom_DYNAMIC_TAB_getInstance() { + KFrom_initEntries(); + return KFrom_DYNAMIC_TAB_instance; + } + function KFrom_UNRECOGNIZED_getInstance() { + KFrom_initEntries(); + return KFrom_UNRECOGNIZED_instance; + } + function values$factory_151() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function _get_$cachedSerializer__te6jhj_152($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KPwdFrom$Companion$values$delegate$lambda() { + return listOf_0([KPwdFrom_UNKNOWN_FROM_getInstance(), KPwdFrom_TEENAGERS_ANTI_ADDICTION_FROM_getInstance(), KPwdFrom_TEENAGERS_CURFEW_FROM_getInstance(), KPwdFrom_TEENAGERS_LOGIN_FROM_getInstance(), KPwdFrom_TEENAGERS_LOG_OUT_FROM_getInstance(), KPwdFrom_FAMILY_ANTI_ADDICTION_FROM_getInstance(), KPwdFrom_FAMILY_CURFEW_FROM_getInstance(), KPwdFrom_FAMILY_LOG_OUT_FROM_getInstance(), KPwdFrom_FAMILY_TIME_LOCK_FROM_getInstance(), KPwdFrom_TEENAGERS_QUIT_PWD_FROM_getInstance(), KPwdFrom_TEENAGERS_MODIFY_PWD_FROM_getInstance(), KPwdFrom_FAMILY_QUIT_FROM_getInstance()]); + } + function KPwdFrom$Companion$_anonymous__zi18mr() { + return $serializer_getInstance_1252(); + } + var KPwdFrom_UNKNOWN_FROM_instance; + var KPwdFrom_TEENAGERS_ANTI_ADDICTION_FROM_instance; + var KPwdFrom_TEENAGERS_CURFEW_FROM_instance; + var KPwdFrom_TEENAGERS_LOGIN_FROM_instance; + var KPwdFrom_TEENAGERS_LOG_OUT_FROM_instance; + var KPwdFrom_FAMILY_ANTI_ADDICTION_FROM_instance; + var KPwdFrom_FAMILY_CURFEW_FROM_instance; + var KPwdFrom_FAMILY_LOG_OUT_FROM_instance; + var KPwdFrom_FAMILY_TIME_LOCK_FROM_instance; + var KPwdFrom_TEENAGERS_QUIT_PWD_FROM_instance; + var KPwdFrom_TEENAGERS_MODIFY_PWD_FROM_instance; + var KPwdFrom_FAMILY_QUIT_FROM_instance; + var KPwdFrom_UNRECOGNIZED_instance; + var Companion_instance_1265; + function Companion_getInstance_1265() { + KPwdFrom_initEntries(); + if (Companion_instance_1265 === VOID) + new Companion_1265(); + return Companion_instance_1265; + } + var $serializer_instance_1252; + function $serializer_getInstance_1252() { + KPwdFrom_initEntries(); + if ($serializer_instance_1252 === VOID) + new $serializer_1252(); + return $serializer_instance_1252; + } + function values_152() { + return [KPwdFrom_UNKNOWN_FROM_getInstance(), KPwdFrom_TEENAGERS_ANTI_ADDICTION_FROM_getInstance(), KPwdFrom_TEENAGERS_CURFEW_FROM_getInstance(), KPwdFrom_TEENAGERS_LOGIN_FROM_getInstance(), KPwdFrom_TEENAGERS_LOG_OUT_FROM_getInstance(), KPwdFrom_FAMILY_ANTI_ADDICTION_FROM_getInstance(), KPwdFrom_FAMILY_CURFEW_FROM_getInstance(), KPwdFrom_FAMILY_LOG_OUT_FROM_getInstance(), KPwdFrom_FAMILY_TIME_LOCK_FROM_getInstance(), KPwdFrom_TEENAGERS_QUIT_PWD_FROM_getInstance(), KPwdFrom_TEENAGERS_MODIFY_PWD_FROM_getInstance(), KPwdFrom_FAMILY_QUIT_FROM_getInstance(), KPwdFrom_UNRECOGNIZED_getInstance()]; + } + function valueOf_152(value) { + switch (value) { + case 'UNKNOWN_FROM': + return KPwdFrom_UNKNOWN_FROM_getInstance(); + case 'TEENAGERS_ANTI_ADDICTION_FROM': + return KPwdFrom_TEENAGERS_ANTI_ADDICTION_FROM_getInstance(); + case 'TEENAGERS_CURFEW_FROM': + return KPwdFrom_TEENAGERS_CURFEW_FROM_getInstance(); + case 'TEENAGERS_LOGIN_FROM': + return KPwdFrom_TEENAGERS_LOGIN_FROM_getInstance(); + case 'TEENAGERS_LOG_OUT_FROM': + return KPwdFrom_TEENAGERS_LOG_OUT_FROM_getInstance(); + case 'FAMILY_ANTI_ADDICTION_FROM': + return KPwdFrom_FAMILY_ANTI_ADDICTION_FROM_getInstance(); + case 'FAMILY_CURFEW_FROM': + return KPwdFrom_FAMILY_CURFEW_FROM_getInstance(); + case 'FAMILY_LOG_OUT_FROM': + return KPwdFrom_FAMILY_LOG_OUT_FROM_getInstance(); + case 'FAMILY_TIME_LOCK_FROM': + return KPwdFrom_FAMILY_TIME_LOCK_FROM_getInstance(); + case 'TEENAGERS_QUIT_PWD_FROM': + return KPwdFrom_TEENAGERS_QUIT_PWD_FROM_getInstance(); + case 'TEENAGERS_MODIFY_PWD_FROM': + return KPwdFrom_TEENAGERS_MODIFY_PWD_FROM_getInstance(); + case 'FAMILY_QUIT_FROM': + return KPwdFrom_FAMILY_QUIT_FROM_getInstance(); + case 'UNRECOGNIZED': + return KPwdFrom_UNRECOGNIZED_getInstance(); + default: + KPwdFrom_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KPwdFrom_entriesInitialized; + function KPwdFrom_initEntries() { + if (KPwdFrom_entriesInitialized) + return Unit_instance; + KPwdFrom_entriesInitialized = true; + KPwdFrom_UNKNOWN_FROM_instance = new KPwdFrom('UNKNOWN_FROM', 0, 0); + KPwdFrom_TEENAGERS_ANTI_ADDICTION_FROM_instance = new KPwdFrom('TEENAGERS_ANTI_ADDICTION_FROM', 1, 1); + KPwdFrom_TEENAGERS_CURFEW_FROM_instance = new KPwdFrom('TEENAGERS_CURFEW_FROM', 2, 2); + KPwdFrom_TEENAGERS_LOGIN_FROM_instance = new KPwdFrom('TEENAGERS_LOGIN_FROM', 3, 3); + KPwdFrom_TEENAGERS_LOG_OUT_FROM_instance = new KPwdFrom('TEENAGERS_LOG_OUT_FROM', 4, 4); + KPwdFrom_FAMILY_ANTI_ADDICTION_FROM_instance = new KPwdFrom('FAMILY_ANTI_ADDICTION_FROM', 5, 5); + KPwdFrom_FAMILY_CURFEW_FROM_instance = new KPwdFrom('FAMILY_CURFEW_FROM', 6, 6); + KPwdFrom_FAMILY_LOG_OUT_FROM_instance = new KPwdFrom('FAMILY_LOG_OUT_FROM', 7, 7); + KPwdFrom_FAMILY_TIME_LOCK_FROM_instance = new KPwdFrom('FAMILY_TIME_LOCK_FROM', 8, 8); + KPwdFrom_TEENAGERS_QUIT_PWD_FROM_instance = new KPwdFrom('TEENAGERS_QUIT_PWD_FROM', 9, 9); + KPwdFrom_TEENAGERS_MODIFY_PWD_FROM_instance = new KPwdFrom('TEENAGERS_MODIFY_PWD_FROM', 10, 10); + KPwdFrom_FAMILY_QUIT_FROM_instance = new KPwdFrom('FAMILY_QUIT_FROM', 11, 11); + KPwdFrom_UNRECOGNIZED_instance = new KPwdFrom('UNRECOGNIZED', 12, -1); + Companion_getInstance_1265(); + } + function _get_$cachedSerializer__te6jhj_153($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KModelStatus$Companion$values$delegate$lambda() { + return listOf_0([KModelStatus_CLOSE_STATUS_getInstance(), KModelStatus_OPEN_STATUS_getInstance(), KModelStatus_NOT_SET_STATUS_getInstance()]); + } + function KModelStatus$Companion$_anonymous__ojkk1r() { + return $serializer_getInstance_1253(); + } + var KModelStatus_CLOSE_STATUS_instance; + var KModelStatus_OPEN_STATUS_instance; + var KModelStatus_NOT_SET_STATUS_instance; + var KModelStatus_UNRECOGNIZED_instance; + var Companion_instance_1266; + function Companion_getInstance_1266() { + KModelStatus_initEntries(); + if (Companion_instance_1266 === VOID) + new Companion_1266(); + return Companion_instance_1266; + } + var $serializer_instance_1253; + function $serializer_getInstance_1253() { + KModelStatus_initEntries(); + if ($serializer_instance_1253 === VOID) + new $serializer_1253(); + return $serializer_instance_1253; + } + function values_153() { + return [KModelStatus_CLOSE_STATUS_getInstance(), KModelStatus_OPEN_STATUS_getInstance(), KModelStatus_NOT_SET_STATUS_getInstance(), KModelStatus_UNRECOGNIZED_getInstance()]; + } + function valueOf_153(value) { + switch (value) { + case 'CLOSE_STATUS': + return KModelStatus_CLOSE_STATUS_getInstance(); + case 'OPEN_STATUS': + return KModelStatus_OPEN_STATUS_getInstance(); + case 'NOT_SET_STATUS': + return KModelStatus_NOT_SET_STATUS_getInstance(); + case 'UNRECOGNIZED': + return KModelStatus_UNRECOGNIZED_getInstance(); + default: + KModelStatus_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KModelStatus_entriesInitialized; + function KModelStatus_initEntries() { + if (KModelStatus_entriesInitialized) + return Unit_instance; + KModelStatus_entriesInitialized = true; + KModelStatus_CLOSE_STATUS_instance = new KModelStatus('CLOSE_STATUS', 0, 0); + KModelStatus_OPEN_STATUS_instance = new KModelStatus('OPEN_STATUS', 1, 1); + KModelStatus_NOT_SET_STATUS_instance = new KModelStatus('NOT_SET_STATUS', 2, 2); + KModelStatus_UNRECOGNIZED_instance = new KModelStatus('UNRECOGNIZED', 3, -1); + Companion_getInstance_1266(); + } + function _get_$cachedSerializer__te6jhj_154($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KFacialRecognitionVerifyFrom$Companion$values$delegate$lambda() { + return listOf_0([KFacialRecognitionVerifyFrom_VERIFY_UNKNOWN_FROM_getInstance(), KFacialRecognitionVerifyFrom_VERIFY_FROM_GUARDIAN_getInstance(), KFacialRecognitionVerifyFrom_VERIFY_FROM_APPEAL_getInstance()]); + } + function KFacialRecognitionVerifyFrom$Companion$_anonymous__4k93yk() { + return $serializer_getInstance_1254(); + } + var KFacialRecognitionVerifyFrom_VERIFY_UNKNOWN_FROM_instance; + var KFacialRecognitionVerifyFrom_VERIFY_FROM_GUARDIAN_instance; + var KFacialRecognitionVerifyFrom_VERIFY_FROM_APPEAL_instance; + var KFacialRecognitionVerifyFrom_UNRECOGNIZED_instance; + var Companion_instance_1267; + function Companion_getInstance_1267() { + KFacialRecognitionVerifyFrom_initEntries(); + if (Companion_instance_1267 === VOID) + new Companion_1267(); + return Companion_instance_1267; + } + var $serializer_instance_1254; + function $serializer_getInstance_1254() { + KFacialRecognitionVerifyFrom_initEntries(); + if ($serializer_instance_1254 === VOID) + new $serializer_1254(); + return $serializer_instance_1254; + } + function values_154() { + return [KFacialRecognitionVerifyFrom_VERIFY_UNKNOWN_FROM_getInstance(), KFacialRecognitionVerifyFrom_VERIFY_FROM_GUARDIAN_getInstance(), KFacialRecognitionVerifyFrom_VERIFY_FROM_APPEAL_getInstance(), KFacialRecognitionVerifyFrom_UNRECOGNIZED_getInstance()]; + } + function valueOf_154(value) { + switch (value) { + case 'VERIFY_UNKNOWN_FROM': + return KFacialRecognitionVerifyFrom_VERIFY_UNKNOWN_FROM_getInstance(); + case 'VERIFY_FROM_GUARDIAN': + return KFacialRecognitionVerifyFrom_VERIFY_FROM_GUARDIAN_getInstance(); + case 'VERIFY_FROM_APPEAL': + return KFacialRecognitionVerifyFrom_VERIFY_FROM_APPEAL_getInstance(); + case 'UNRECOGNIZED': + return KFacialRecognitionVerifyFrom_UNRECOGNIZED_getInstance(); + default: + KFacialRecognitionVerifyFrom_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KFacialRecognitionVerifyFrom_entriesInitialized; + function KFacialRecognitionVerifyFrom_initEntries() { + if (KFacialRecognitionVerifyFrom_entriesInitialized) + return Unit_instance; + KFacialRecognitionVerifyFrom_entriesInitialized = true; + KFacialRecognitionVerifyFrom_VERIFY_UNKNOWN_FROM_instance = new KFacialRecognitionVerifyFrom('VERIFY_UNKNOWN_FROM', 0, 0); + KFacialRecognitionVerifyFrom_VERIFY_FROM_GUARDIAN_instance = new KFacialRecognitionVerifyFrom('VERIFY_FROM_GUARDIAN', 1, 1); + KFacialRecognitionVerifyFrom_VERIFY_FROM_APPEAL_instance = new KFacialRecognitionVerifyFrom('VERIFY_FROM_APPEAL', 2, 2); + KFacialRecognitionVerifyFrom_UNRECOGNIZED_instance = new KFacialRecognitionVerifyFrom('UNRECOGNIZED', 3, -1); + Companion_getInstance_1267(); + } + var Companion_instance_1268; + function Companion_getInstance_1268() { + return Companion_instance_1268; + } + var $serializer_instance_1255; + function $serializer_getInstance_1255() { + if ($serializer_instance_1255 === VOID) + new $serializer_1255(); + return $serializer_instance_1255; + } + var Companion_instance_1269; + function Companion_getInstance_1269() { + return Companion_instance_1269; + } + var $serializer_instance_1256; + function $serializer_getInstance_1256() { + if ($serializer_instance_1256 === VOID) + new $serializer_1256(); + return $serializer_instance_1256; + } + var Companion_instance_1270; + function Companion_getInstance_1270() { + return Companion_instance_1270; + } + var $serializer_instance_1257; + function $serializer_getInstance_1257() { + if ($serializer_instance_1257 === VOID) + new $serializer_1257(); + return $serializer_instance_1257; + } + var Companion_instance_1271; + function Companion_getInstance_1271() { + return Companion_instance_1271; + } + var $serializer_instance_1258; + function $serializer_getInstance_1258() { + if ($serializer_instance_1258 === VOID) + new $serializer_1258(); + return $serializer_instance_1258; + } + var Companion_instance_1272; + function Companion_getInstance_1272() { + return Companion_instance_1272; + } + var $serializer_instance_1259; + function $serializer_getInstance_1259() { + if ($serializer_instance_1259 === VOID) + new $serializer_1259(); + return $serializer_instance_1259; + } + var Companion_instance_1273; + function Companion_getInstance_1273() { + return Companion_instance_1273; + } + var $serializer_instance_1260; + function $serializer_getInstance_1260() { + if ($serializer_instance_1260 === VOID) + new $serializer_1260(); + return $serializer_instance_1260; + } + var Companion_instance_1274; + function Companion_getInstance_1274() { + return Companion_instance_1274; + } + var $serializer_instance_1261; + function $serializer_getInstance_1261() { + if ($serializer_instance_1261 === VOID) + new $serializer_1261(); + return $serializer_instance_1261; + } + var Companion_instance_1275; + function Companion_getInstance_1275() { + if (Companion_instance_1275 === VOID) + new Companion_1275(); + return Companion_instance_1275; + } + var $serializer_instance_1262; + function $serializer_getInstance_1262() { + if ($serializer_instance_1262 === VOID) + new $serializer_1262(); + return $serializer_instance_1262; + } + var Companion_instance_1276; + function Companion_getInstance_1276() { + return Companion_instance_1276; + } + var $serializer_instance_1263; + function $serializer_getInstance_1263() { + if ($serializer_instance_1263 === VOID) + new $serializer_1263(); + return $serializer_instance_1263; + } + var Companion_instance_1277; + function Companion_getInstance_1277() { + return Companion_instance_1277; + } + var $serializer_instance_1264; + function $serializer_getInstance_1264() { + if ($serializer_instance_1264 === VOID) + new $serializer_1264(); + return $serializer_instance_1264; + } + var Companion_instance_1278; + function Companion_getInstance_1278() { + return Companion_instance_1278; + } + var $serializer_instance_1265; + function $serializer_getInstance_1265() { + if ($serializer_instance_1265 === VOID) + new $serializer_1265(); + return $serializer_instance_1265; + } + var Companion_instance_1279; + function Companion_getInstance_1279() { + return Companion_instance_1279; + } + var $serializer_instance_1266; + function $serializer_getInstance_1266() { + if ($serializer_instance_1266 === VOID) + new $serializer_1266(); + return $serializer_instance_1266; + } + function KPwdFrom_UNKNOWN_FROM_getInstance() { + KPwdFrom_initEntries(); + return KPwdFrom_UNKNOWN_FROM_instance; + } + function KPwdFrom_TEENAGERS_ANTI_ADDICTION_FROM_getInstance() { + KPwdFrom_initEntries(); + return KPwdFrom_TEENAGERS_ANTI_ADDICTION_FROM_instance; + } + function KPwdFrom_TEENAGERS_CURFEW_FROM_getInstance() { + KPwdFrom_initEntries(); + return KPwdFrom_TEENAGERS_CURFEW_FROM_instance; + } + function KPwdFrom_TEENAGERS_LOGIN_FROM_getInstance() { + KPwdFrom_initEntries(); + return KPwdFrom_TEENAGERS_LOGIN_FROM_instance; + } + function KPwdFrom_TEENAGERS_LOG_OUT_FROM_getInstance() { + KPwdFrom_initEntries(); + return KPwdFrom_TEENAGERS_LOG_OUT_FROM_instance; + } + function KPwdFrom_FAMILY_ANTI_ADDICTION_FROM_getInstance() { + KPwdFrom_initEntries(); + return KPwdFrom_FAMILY_ANTI_ADDICTION_FROM_instance; + } + function KPwdFrom_FAMILY_CURFEW_FROM_getInstance() { + KPwdFrom_initEntries(); + return KPwdFrom_FAMILY_CURFEW_FROM_instance; + } + function KPwdFrom_FAMILY_LOG_OUT_FROM_getInstance() { + KPwdFrom_initEntries(); + return KPwdFrom_FAMILY_LOG_OUT_FROM_instance; + } + function KPwdFrom_FAMILY_TIME_LOCK_FROM_getInstance() { + KPwdFrom_initEntries(); + return KPwdFrom_FAMILY_TIME_LOCK_FROM_instance; + } + function KPwdFrom_TEENAGERS_QUIT_PWD_FROM_getInstance() { + KPwdFrom_initEntries(); + return KPwdFrom_TEENAGERS_QUIT_PWD_FROM_instance; + } + function KPwdFrom_TEENAGERS_MODIFY_PWD_FROM_getInstance() { + KPwdFrom_initEntries(); + return KPwdFrom_TEENAGERS_MODIFY_PWD_FROM_instance; + } + function KPwdFrom_FAMILY_QUIT_FROM_getInstance() { + KPwdFrom_initEntries(); + return KPwdFrom_FAMILY_QUIT_FROM_instance; + } + function KPwdFrom_UNRECOGNIZED_getInstance() { + KPwdFrom_initEntries(); + return KPwdFrom_UNRECOGNIZED_instance; + } + function KModelStatus_CLOSE_STATUS_getInstance() { + KModelStatus_initEntries(); + return KModelStatus_CLOSE_STATUS_instance; + } + function KModelStatus_OPEN_STATUS_getInstance() { + KModelStatus_initEntries(); + return KModelStatus_OPEN_STATUS_instance; + } + function KModelStatus_NOT_SET_STATUS_getInstance() { + KModelStatus_initEntries(); + return KModelStatus_NOT_SET_STATUS_instance; + } + function KModelStatus_UNRECOGNIZED_getInstance() { + KModelStatus_initEntries(); + return KModelStatus_UNRECOGNIZED_instance; + } + function KFacialRecognitionVerifyFrom_VERIFY_UNKNOWN_FROM_getInstance() { + KFacialRecognitionVerifyFrom_initEntries(); + return KFacialRecognitionVerifyFrom_VERIFY_UNKNOWN_FROM_instance; + } + function KFacialRecognitionVerifyFrom_VERIFY_FROM_GUARDIAN_getInstance() { + KFacialRecognitionVerifyFrom_initEntries(); + return KFacialRecognitionVerifyFrom_VERIFY_FROM_GUARDIAN_instance; + } + function KFacialRecognitionVerifyFrom_VERIFY_FROM_APPEAL_getInstance() { + KFacialRecognitionVerifyFrom_initEntries(); + return KFacialRecognitionVerifyFrom_VERIFY_FROM_APPEAL_instance; + } + function KFacialRecognitionVerifyFrom_UNRECOGNIZED_getInstance() { + KFacialRecognitionVerifyFrom_initEntries(); + return KFacialRecognitionVerifyFrom_UNRECOGNIZED_instance; + } + function values$factory_152() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_153() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_154() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function _get_$cachedSerializer__te6jhj_155($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KDetailListScene$Companion$values$delegate$lambda() { + return listOf_0([KDetailListScene_REPLY_getInstance(), KDetailListScene_MSG_FEED_getInstance(), KDetailListScene_NOTIFY_getInstance()]); + } + function KDetailListScene$Companion$_anonymous__uhulvn() { + return $serializer_getInstance_1267(); + } + var KDetailListScene_REPLY_instance; + var KDetailListScene_MSG_FEED_instance; + var KDetailListScene_NOTIFY_instance; + var KDetailListScene_UNRECOGNIZED_instance; + var Companion_instance_1280; + function Companion_getInstance_1280() { + KDetailListScene_initEntries(); + if (Companion_instance_1280 === VOID) + new Companion_1280(); + return Companion_instance_1280; + } + var $serializer_instance_1267; + function $serializer_getInstance_1267() { + KDetailListScene_initEntries(); + if ($serializer_instance_1267 === VOID) + new $serializer_1267(); + return $serializer_instance_1267; + } + function values_155() { + return [KDetailListScene_REPLY_getInstance(), KDetailListScene_MSG_FEED_getInstance(), KDetailListScene_NOTIFY_getInstance(), KDetailListScene_UNRECOGNIZED_getInstance()]; + } + function valueOf_155(value) { + switch (value) { + case 'REPLY': + return KDetailListScene_REPLY_getInstance(); + case 'MSG_FEED': + return KDetailListScene_MSG_FEED_getInstance(); + case 'NOTIFY': + return KDetailListScene_NOTIFY_getInstance(); + case 'UNRECOGNIZED': + return KDetailListScene_UNRECOGNIZED_getInstance(); + default: + KDetailListScene_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KDetailListScene_entriesInitialized; + function KDetailListScene_initEntries() { + if (KDetailListScene_entriesInitialized) + return Unit_instance; + KDetailListScene_entriesInitialized = true; + KDetailListScene_REPLY_instance = new KDetailListScene('REPLY', 0, 0); + KDetailListScene_MSG_FEED_instance = new KDetailListScene('MSG_FEED', 1, 1); + KDetailListScene_NOTIFY_instance = new KDetailListScene('NOTIFY', 2, 2); + KDetailListScene_UNRECOGNIZED_instance = new KDetailListScene('UNRECOGNIZED', 3, -1); + Companion_getInstance_1280(); + } + function _get_$cachedSerializer__te6jhj_156($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KMode$Companion$values$delegate$lambda() { + return listOf_0([KMode_DEFAULT_getInstance(), KMode_UNSPECIFIED_getInstance(), KMode_MAIN_LIST_TIME_getInstance(), KMode_MAIN_LIST_HOT_getInstance()]); + } + function KMode$Companion$_anonymous__er5s9r() { + return $serializer_getInstance_1268(); + } + var KMode_DEFAULT_instance; + var KMode_UNSPECIFIED_instance; + var KMode_MAIN_LIST_TIME_instance; + var KMode_MAIN_LIST_HOT_instance; + var KMode_UNRECOGNIZED_instance; + var Companion_instance_1281; + function Companion_getInstance_1281() { + KMode_initEntries(); + if (Companion_instance_1281 === VOID) + new Companion_1281(); + return Companion_instance_1281; + } + var $serializer_instance_1268; + function $serializer_getInstance_1268() { + KMode_initEntries(); + if ($serializer_instance_1268 === VOID) + new $serializer_1268(); + return $serializer_instance_1268; + } + function values_156() { + return [KMode_DEFAULT_getInstance(), KMode_UNSPECIFIED_getInstance(), KMode_MAIN_LIST_TIME_getInstance(), KMode_MAIN_LIST_HOT_getInstance(), KMode_UNRECOGNIZED_getInstance()]; + } + function valueOf_156(value) { + switch (value) { + case 'DEFAULT': + return KMode_DEFAULT_getInstance(); + case 'UNSPECIFIED': + return KMode_UNSPECIFIED_getInstance(); + case 'MAIN_LIST_TIME': + return KMode_MAIN_LIST_TIME_getInstance(); + case 'MAIN_LIST_HOT': + return KMode_MAIN_LIST_HOT_getInstance(); + case 'UNRECOGNIZED': + return KMode_UNRECOGNIZED_getInstance(); + default: + KMode_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KMode_entriesInitialized; + function KMode_initEntries() { + if (KMode_entriesInitialized) + return Unit_instance; + KMode_entriesInitialized = true; + KMode_DEFAULT_instance = new KMode('DEFAULT', 0, 0); + KMode_UNSPECIFIED_instance = new KMode('UNSPECIFIED', 1, 1); + KMode_MAIN_LIST_TIME_instance = new KMode('MAIN_LIST_TIME', 2, 2); + KMode_MAIN_LIST_HOT_instance = new KMode('MAIN_LIST_HOT', 3, 3); + KMode_UNRECOGNIZED_instance = new KMode('UNRECOGNIZED', 4, -1); + Companion_getInstance_1281(); + } + function _get_$cachedSerializer__te6jhj_157($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KEditorIconState$Companion$values$delegate$lambda() { + return listOf_0([KEditorIconState_DEFAULT_getInstance(), KEditorIconState_ENABLE_getInstance(), KEditorIconState_DISABLE_getInstance(), KEditorIconState_HIDE_getInstance()]); + } + function KEditorIconState$Companion$_anonymous__jlsurz() { + return $serializer_getInstance_1269(); + } + var KEditorIconState_DEFAULT_instance; + var KEditorIconState_ENABLE_instance; + var KEditorIconState_DISABLE_instance; + var KEditorIconState_HIDE_instance; + var KEditorIconState_UNRECOGNIZED_instance; + var Companion_instance_1282; + function Companion_getInstance_1282() { + KEditorIconState_initEntries(); + if (Companion_instance_1282 === VOID) + new Companion_1282(); + return Companion_instance_1282; + } + var $serializer_instance_1269; + function $serializer_getInstance_1269() { + KEditorIconState_initEntries(); + if ($serializer_instance_1269 === VOID) + new $serializer_1269(); + return $serializer_instance_1269; + } + function values_157() { + return [KEditorIconState_DEFAULT_getInstance(), KEditorIconState_ENABLE_getInstance(), KEditorIconState_DISABLE_getInstance(), KEditorIconState_HIDE_getInstance(), KEditorIconState_UNRECOGNIZED_getInstance()]; + } + function valueOf_157(value) { + switch (value) { + case 'DEFAULT': + return KEditorIconState_DEFAULT_getInstance(); + case 'ENABLE': + return KEditorIconState_ENABLE_getInstance(); + case 'DISABLE': + return KEditorIconState_DISABLE_getInstance(); + case 'HIDE': + return KEditorIconState_HIDE_getInstance(); + case 'UNRECOGNIZED': + return KEditorIconState_UNRECOGNIZED_getInstance(); + default: + KEditorIconState_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KEditorIconState_entriesInitialized; + function KEditorIconState_initEntries() { + if (KEditorIconState_entriesInitialized) + return Unit_instance; + KEditorIconState_entriesInitialized = true; + KEditorIconState_DEFAULT_instance = new KEditorIconState('DEFAULT', 0, 0); + KEditorIconState_ENABLE_instance = new KEditorIconState('ENABLE', 1, 1); + KEditorIconState_DISABLE_instance = new KEditorIconState('DISABLE', 2, 2); + KEditorIconState_HIDE_instance = new KEditorIconState('HIDE', 3, 3); + KEditorIconState_UNRECOGNIZED_instance = new KEditorIconState('UNRECOGNIZED', 4, -1); + Companion_getInstance_1282(); + } + function _get_$cachedSerializer__te6jhj_158($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KSearchItemType$Companion$values$delegate$lambda() { + return listOf_0([KSearchItemType_DEFAULT_ITEM_TYPE_getInstance(), KSearchItemType_GOODS_getInstance(), KSearchItemType_VIDEO_getInstance(), KSearchItemType_ARTICLE_getInstance()]); + } + function KSearchItemType$Companion$_anonymous__aw767l() { + return $serializer_getInstance_1270(); + } + var KSearchItemType_DEFAULT_ITEM_TYPE_instance; + var KSearchItemType_GOODS_instance; + var KSearchItemType_VIDEO_instance; + var KSearchItemType_ARTICLE_instance; + var KSearchItemType_UNRECOGNIZED_instance; + var Companion_instance_1283; + function Companion_getInstance_1283() { + KSearchItemType_initEntries(); + if (Companion_instance_1283 === VOID) + new Companion_1283(); + return Companion_instance_1283; + } + var $serializer_instance_1270; + function $serializer_getInstance_1270() { + KSearchItemType_initEntries(); + if ($serializer_instance_1270 === VOID) + new $serializer_1270(); + return $serializer_instance_1270; + } + function values_158() { + return [KSearchItemType_DEFAULT_ITEM_TYPE_getInstance(), KSearchItemType_GOODS_getInstance(), KSearchItemType_VIDEO_getInstance(), KSearchItemType_ARTICLE_getInstance(), KSearchItemType_UNRECOGNIZED_getInstance()]; + } + function valueOf_158(value) { + switch (value) { + case 'DEFAULT_ITEM_TYPE': + return KSearchItemType_DEFAULT_ITEM_TYPE_getInstance(); + case 'GOODS': + return KSearchItemType_GOODS_getInstance(); + case 'VIDEO': + return KSearchItemType_VIDEO_getInstance(); + case 'ARTICLE': + return KSearchItemType_ARTICLE_getInstance(); + case 'UNRECOGNIZED': + return KSearchItemType_UNRECOGNIZED_getInstance(); + default: + KSearchItemType_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KSearchItemType_entriesInitialized; + function KSearchItemType_initEntries() { + if (KSearchItemType_entriesInitialized) + return Unit_instance; + KSearchItemType_entriesInitialized = true; + KSearchItemType_DEFAULT_ITEM_TYPE_instance = new KSearchItemType('DEFAULT_ITEM_TYPE', 0, 0); + KSearchItemType_GOODS_instance = new KSearchItemType('GOODS', 1, 1); + KSearchItemType_VIDEO_instance = new KSearchItemType('VIDEO', 2, 2); + KSearchItemType_ARTICLE_instance = new KSearchItemType('ARTICLE', 3, 3); + KSearchItemType_UNRECOGNIZED_instance = new KSearchItemType('UNRECOGNIZED', 4, -1); + Companion_getInstance_1283(); + } + function _get_$cachedSerializer__te6jhj_159($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KSearchItemVideoSubType$Companion$values$delegate$lambda() { + return listOf_0([KSearchItemVideoSubType_UGC_getInstance(), KSearchItemVideoSubType_PGC_getInstance()]); + } + function KSearchItemVideoSubType$Companion$_anonymous__h1ticq() { + return $serializer_getInstance_1271(); + } + var KSearchItemVideoSubType_UGC_instance; + var KSearchItemVideoSubType_PGC_instance; + var KSearchItemVideoSubType_UNRECOGNIZED_instance; + var Companion_instance_1284; + function Companion_getInstance_1284() { + KSearchItemVideoSubType_initEntries(); + if (Companion_instance_1284 === VOID) + new Companion_1284(); + return Companion_instance_1284; + } + var $serializer_instance_1271; + function $serializer_getInstance_1271() { + KSearchItemVideoSubType_initEntries(); + if ($serializer_instance_1271 === VOID) + new $serializer_1271(); + return $serializer_instance_1271; + } + function values_159() { + return [KSearchItemVideoSubType_UGC_getInstance(), KSearchItemVideoSubType_PGC_getInstance(), KSearchItemVideoSubType_UNRECOGNIZED_getInstance()]; + } + function valueOf_159(value) { + switch (value) { + case 'UGC': + return KSearchItemVideoSubType_UGC_getInstance(); + case 'PGC': + return KSearchItemVideoSubType_PGC_getInstance(); + case 'UNRECOGNIZED': + return KSearchItemVideoSubType_UNRECOGNIZED_getInstance(); + default: + KSearchItemVideoSubType_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KSearchItemVideoSubType_entriesInitialized; + function KSearchItemVideoSubType_initEntries() { + if (KSearchItemVideoSubType_entriesInitialized) + return Unit_instance; + KSearchItemVideoSubType_entriesInitialized = true; + KSearchItemVideoSubType_UGC_instance = new KSearchItemVideoSubType('UGC', 0, 0); + KSearchItemVideoSubType_PGC_instance = new KSearchItemVideoSubType('PGC', 1, 1); + KSearchItemVideoSubType_UNRECOGNIZED_instance = new KSearchItemVideoSubType('UNRECOGNIZED', 2, -1); + Companion_getInstance_1284(); + } + function _get_$cachedSerializer__te6jhj_160($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KUserCallbackAction$Companion$values$delegate$lambda() { + return listOf(KUserCallbackAction_DISMISS_getInstance()); + } + function KUserCallbackAction$Companion$_anonymous__gbeybi() { + return $serializer_getInstance_1272(); + } + var KUserCallbackAction_DISMISS_instance; + var KUserCallbackAction_UNRECOGNIZED_instance; + var Companion_instance_1285; + function Companion_getInstance_1285() { + KUserCallbackAction_initEntries(); + if (Companion_instance_1285 === VOID) + new Companion_1285(); + return Companion_instance_1285; + } + var $serializer_instance_1272; + function $serializer_getInstance_1272() { + KUserCallbackAction_initEntries(); + if ($serializer_instance_1272 === VOID) + new $serializer_1272(); + return $serializer_instance_1272; + } + function values_160() { + return [KUserCallbackAction_DISMISS_getInstance(), KUserCallbackAction_UNRECOGNIZED_getInstance()]; + } + function valueOf_160(value) { + switch (value) { + case 'DISMISS': + return KUserCallbackAction_DISMISS_getInstance(); + case 'UNRECOGNIZED': + return KUserCallbackAction_UNRECOGNIZED_getInstance(); + default: + KUserCallbackAction_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KUserCallbackAction_entriesInitialized; + function KUserCallbackAction_initEntries() { + if (KUserCallbackAction_entriesInitialized) + return Unit_instance; + KUserCallbackAction_entriesInitialized = true; + KUserCallbackAction_DISMISS_instance = new KUserCallbackAction('DISMISS', 0, 0); + KUserCallbackAction_UNRECOGNIZED_instance = new KUserCallbackAction('UNRECOGNIZED', 1, -1); + Companion_getInstance_1285(); + } + function _get_$cachedSerializer__te6jhj_161($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KUserCallbackScene$Companion$values$delegate$lambda() { + return listOf_0([KUserCallbackScene_INSERT_getInstance(), KUserCallbackScene_RECOMMEND_SUPERB_REPLY_getInstance()]); + } + function KUserCallbackScene$Companion$_anonymous__aiyf5q() { + return $serializer_getInstance_1273(); + } + var KUserCallbackScene_INSERT_instance; + var KUserCallbackScene_RECOMMEND_SUPERB_REPLY_instance; + var KUserCallbackScene_UNRECOGNIZED_instance; + var Companion_instance_1286; + function Companion_getInstance_1286() { + KUserCallbackScene_initEntries(); + if (Companion_instance_1286 === VOID) + new Companion_1286(); + return Companion_instance_1286; + } + var $serializer_instance_1273; + function $serializer_getInstance_1273() { + KUserCallbackScene_initEntries(); + if ($serializer_instance_1273 === VOID) + new $serializer_1273(); + return $serializer_instance_1273; + } + function values_161() { + return [KUserCallbackScene_INSERT_getInstance(), KUserCallbackScene_RECOMMEND_SUPERB_REPLY_getInstance(), KUserCallbackScene_UNRECOGNIZED_getInstance()]; + } + function valueOf_161(value) { + switch (value) { + case 'INSERT': + return KUserCallbackScene_INSERT_getInstance(); + case 'RECOMMEND_SUPERB_REPLY': + return KUserCallbackScene_RECOMMEND_SUPERB_REPLY_getInstance(); + case 'UNRECOGNIZED': + return KUserCallbackScene_UNRECOGNIZED_getInstance(); + default: + KUserCallbackScene_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KUserCallbackScene_entriesInitialized; + function KUserCallbackScene_initEntries() { + if (KUserCallbackScene_entriesInitialized) + return Unit_instance; + KUserCallbackScene_entriesInitialized = true; + KUserCallbackScene_INSERT_instance = new KUserCallbackScene('INSERT', 0, 0); + KUserCallbackScene_RECOMMEND_SUPERB_REPLY_instance = new KUserCallbackScene('RECOMMEND_SUPERB_REPLY', 1, 1); + KUserCallbackScene_UNRECOGNIZED_instance = new KUserCallbackScene('UNRECOGNIZED', 2, -1); + Companion_getInstance_1286(); + } + var Companion_instance_1287; + function Companion_getInstance_1287() { + return Companion_instance_1287; + } + var $serializer_instance_1274; + function $serializer_getInstance_1274() { + if ($serializer_instance_1274 === VOID) + new $serializer_1274(); + return $serializer_instance_1274; + } + var Companion_instance_1288; + function Companion_getInstance_1288() { + return Companion_instance_1288; + } + var $serializer_instance_1275; + function $serializer_getInstance_1275() { + if ($serializer_instance_1275 === VOID) + new $serializer_1275(); + return $serializer_instance_1275; + } + var Companion_instance_1289; + function Companion_getInstance_1289() { + if (Companion_instance_1289 === VOID) + new Companion_1289(); + return Companion_instance_1289; + } + var $serializer_instance_1276; + function $serializer_getInstance_1276() { + if ($serializer_instance_1276 === VOID) + new $serializer_1276(); + return $serializer_instance_1276; + } + var Companion_instance_1290; + function Companion_getInstance_1290() { + return Companion_instance_1290; + } + var $serializer_instance_1277; + function $serializer_getInstance_1277() { + if ($serializer_instance_1277 === VOID) + new $serializer_1277(); + return $serializer_instance_1277; + } + var Companion_instance_1291; + function Companion_getInstance_1291() { + return Companion_instance_1291; + } + var $serializer_instance_1278; + function $serializer_getInstance_1278() { + if ($serializer_instance_1278 === VOID) + new $serializer_1278(); + return $serializer_instance_1278; + } + var Companion_instance_1292; + function Companion_getInstance_1292() { + return Companion_instance_1292; + } + var $serializer_instance_1279; + function $serializer_getInstance_1279() { + if ($serializer_instance_1279 === VOID) + new $serializer_1279(); + return $serializer_instance_1279; + } + var Companion_instance_1293; + function Companion_getInstance_1293() { + if (Companion_instance_1293 === VOID) + new Companion_1293(); + return Companion_instance_1293; + } + var $serializer_instance_1280; + function $serializer_getInstance_1280() { + if ($serializer_instance_1280 === VOID) + new $serializer_1280(); + return $serializer_instance_1280; + } + var Companion_instance_1294; + function Companion_getInstance_1294() { + if (Companion_instance_1294 === VOID) + new Companion_1294(); + return Companion_instance_1294; + } + var $serializer_instance_1281; + function $serializer_getInstance_1281() { + if ($serializer_instance_1281 === VOID) + new $serializer_1281(); + return $serializer_instance_1281; + } + var Companion_instance_1295; + function Companion_getInstance_1295() { + return Companion_instance_1295; + } + var $serializer_instance_1282; + function $serializer_getInstance_1282() { + if ($serializer_instance_1282 === VOID) + new $serializer_1282(); + return $serializer_instance_1282; + } + var Companion_instance_1296; + function Companion_getInstance_1296() { + return Companion_instance_1296; + } + var $serializer_instance_1283; + function $serializer_getInstance_1283() { + if ($serializer_instance_1283 === VOID) + new $serializer_1283(); + return $serializer_instance_1283; + } + var Companion_instance_1297; + function Companion_getInstance_1297() { + if (Companion_instance_1297 === VOID) + new Companion_1297(); + return Companion_instance_1297; + } + var $serializer_instance_1284; + function $serializer_getInstance_1284() { + if ($serializer_instance_1284 === VOID) + new $serializer_1284(); + return $serializer_instance_1284; + } + var Companion_instance_1298; + function Companion_getInstance_1298() { + return Companion_instance_1298; + } + var $serializer_instance_1285; + function $serializer_getInstance_1285() { + if ($serializer_instance_1285 === VOID) + new $serializer_1285(); + return $serializer_instance_1285; + } + var Companion_instance_1299; + function Companion_getInstance_1299() { + if (Companion_instance_1299 === VOID) + new Companion_1299(); + return Companion_instance_1299; + } + var $serializer_instance_1286; + function $serializer_getInstance_1286() { + if ($serializer_instance_1286 === VOID) + new $serializer_1286(); + return $serializer_instance_1286; + } + var Companion_instance_1300; + function Companion_getInstance_1300() { + return Companion_instance_1300; + } + var $serializer_instance_1287; + function $serializer_getInstance_1287() { + if ($serializer_instance_1287 === VOID) + new $serializer_1287(); + return $serializer_instance_1287; + } + var Companion_instance_1301; + function Companion_getInstance_1301() { + return Companion_instance_1301; + } + var $serializer_instance_1288; + function $serializer_getInstance_1288() { + if ($serializer_instance_1288 === VOID) + new $serializer_1288(); + return $serializer_instance_1288; + } + var Companion_instance_1302; + function Companion_getInstance_1302() { + return Companion_instance_1302; + } + var $serializer_instance_1289; + function $serializer_getInstance_1289() { + if ($serializer_instance_1289 === VOID) + new $serializer_1289(); + return $serializer_instance_1289; + } + var Companion_instance_1303; + function Companion_getInstance_1303() { + return Companion_instance_1303; + } + var $serializer_instance_1290; + function $serializer_getInstance_1290() { + if ($serializer_instance_1290 === VOID) + new $serializer_1290(); + return $serializer_instance_1290; + } + var Companion_instance_1304; + function Companion_getInstance_1304() { + return Companion_instance_1304; + } + var $serializer_instance_1291; + function $serializer_getInstance_1291() { + if ($serializer_instance_1291 === VOID) + new $serializer_1291(); + return $serializer_instance_1291; + } + var Companion_instance_1305; + function Companion_getInstance_1305() { + return Companion_instance_1305; + } + var $serializer_instance_1292; + function $serializer_getInstance_1292() { + if ($serializer_instance_1292 === VOID) + new $serializer_1292(); + return $serializer_instance_1292; + } + var Companion_instance_1306; + function Companion_getInstance_1306() { + return Companion_instance_1306; + } + var $serializer_instance_1293; + function $serializer_getInstance_1293() { + if ($serializer_instance_1293 === VOID) + new $serializer_1293(); + return $serializer_instance_1293; + } + function _get_$cachedSerializer__te6jhj_162($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KTextStyle$KFontStyle$Companion$values$delegate$lambda() { + return listOf_0([KFontStyle_NORMAL_getInstance(), KFontStyle_BOLD_getInstance()]); + } + function KTextStyle$KFontStyle$Companion$_anonymous__lrx8y5() { + return $serializer_getInstance_1294(); + } + var KFontStyle_NORMAL_instance; + var KFontStyle_BOLD_instance; + var KFontStyle_UNRECOGNIZED_instance; + var Companion_instance_1307; + function Companion_getInstance_1307() { + KFontStyle_initEntries(); + if (Companion_instance_1307 === VOID) + new Companion_1307(); + return Companion_instance_1307; + } + var $serializer_instance_1294; + function $serializer_getInstance_1294() { + KFontStyle_initEntries(); + if ($serializer_instance_1294 === VOID) + new $serializer_1294(); + return $serializer_instance_1294; + } + function values_162() { + return [KFontStyle_NORMAL_getInstance(), KFontStyle_BOLD_getInstance(), KFontStyle_UNRECOGNIZED_getInstance()]; + } + function valueOf_162(value) { + switch (value) { + case 'NORMAL': + return KFontStyle_NORMAL_getInstance(); + case 'BOLD': + return KFontStyle_BOLD_getInstance(); + case 'UNRECOGNIZED': + return KFontStyle_UNRECOGNIZED_getInstance(); + default: + KFontStyle_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KFontStyle_entriesInitialized; + function KFontStyle_initEntries() { + if (KFontStyle_entriesInitialized) + return Unit_instance; + KFontStyle_entriesInitialized = true; + KFontStyle_NORMAL_instance = new KFontStyle('NORMAL', 0, 0); + KFontStyle_BOLD_instance = new KFontStyle('BOLD', 1, 1); + KFontStyle_UNRECOGNIZED_instance = new KFontStyle('UNRECOGNIZED', 2, -1); + Companion_getInstance_1307(); + } + var Companion_instance_1308; + function Companion_getInstance_1308() { + return Companion_instance_1308; + } + var $serializer_instance_1295; + function $serializer_getInstance_1295() { + if ($serializer_instance_1295 === VOID) + new $serializer_1295(); + return $serializer_instance_1295; + } + function KFontStyle_NORMAL_getInstance() { + KFontStyle_initEntries(); + return KFontStyle_NORMAL_instance; + } + function KFontStyle_BOLD_getInstance() { + KFontStyle_initEntries(); + return KFontStyle_BOLD_instance; + } + function KFontStyle_UNRECOGNIZED_getInstance() { + KFontStyle_initEntries(); + return KFontStyle_UNRECOGNIZED_instance; + } + function _get_$cachedSerializer__te6jhj_163($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KEmptyPage$KAction$Companion$values$delegate$lambda() { + return listOf_0([KAction_UNAVAILABLE_getInstance(), KAction_SHOW_KEYBOARD_getInstance(), KAction_SEND_REPLY_WITH_BOLD_TEXT_getInstance()]); + } + function KEmptyPage$KAction$Companion$_anonymous__s0kvzz() { + return $serializer_getInstance_1296(); + } + var KAction_UNAVAILABLE_instance; + var KAction_SHOW_KEYBOARD_instance; + var KAction_SEND_REPLY_WITH_BOLD_TEXT_instance; + var KAction_UNRECOGNIZED_instance; + var Companion_instance_1309; + function Companion_getInstance_1309() { + KAction_initEntries(); + if (Companion_instance_1309 === VOID) + new Companion_1309(); + return Companion_instance_1309; + } + var $serializer_instance_1296; + function $serializer_getInstance_1296() { + KAction_initEntries(); + if ($serializer_instance_1296 === VOID) + new $serializer_1296(); + return $serializer_instance_1296; + } + function values_163() { + return [KAction_UNAVAILABLE_getInstance(), KAction_SHOW_KEYBOARD_getInstance(), KAction_SEND_REPLY_WITH_BOLD_TEXT_getInstance(), KAction_UNRECOGNIZED_getInstance()]; + } + function valueOf_163(value) { + switch (value) { + case 'UNAVAILABLE': + return KAction_UNAVAILABLE_getInstance(); + case 'SHOW_KEYBOARD': + return KAction_SHOW_KEYBOARD_getInstance(); + case 'SEND_REPLY_WITH_BOLD_TEXT': + return KAction_SEND_REPLY_WITH_BOLD_TEXT_getInstance(); + case 'UNRECOGNIZED': + return KAction_UNRECOGNIZED_getInstance(); + default: + KAction_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KAction_entriesInitialized; + function KAction_initEntries() { + if (KAction_entriesInitialized) + return Unit_instance; + KAction_entriesInitialized = true; + KAction_UNAVAILABLE_instance = new KAction('UNAVAILABLE', 0, 0); + KAction_SHOW_KEYBOARD_instance = new KAction('SHOW_KEYBOARD', 1, 1); + KAction_SEND_REPLY_WITH_BOLD_TEXT_instance = new KAction('SEND_REPLY_WITH_BOLD_TEXT', 2, 2); + KAction_UNRECOGNIZED_instance = new KAction('UNRECOGNIZED', 3, -1); + Companion_getInstance_1309(); + } + var Companion_instance_1310; + function Companion_getInstance_1310() { + return Companion_instance_1310; + } + var $serializer_instance_1297; + function $serializer_getInstance_1297() { + if ($serializer_instance_1297 === VOID) + new $serializer_1297(); + return $serializer_instance_1297; + } + var Companion_instance_1311; + function Companion_getInstance_1311() { + return Companion_instance_1311; + } + var $serializer_instance_1298; + function $serializer_getInstance_1298() { + if ($serializer_instance_1298 === VOID) + new $serializer_1298(); + return $serializer_instance_1298; + } + var Companion_instance_1312; + function Companion_getInstance_1312() { + if (Companion_instance_1312 === VOID) + new Companion_1312(); + return Companion_instance_1312; + } + var $serializer_instance_1299; + function $serializer_getInstance_1299() { + if ($serializer_instance_1299 === VOID) + new $serializer_1299(); + return $serializer_instance_1299; + } + function KAction_UNAVAILABLE_getInstance() { + KAction_initEntries(); + return KAction_UNAVAILABLE_instance; + } + function KAction_SHOW_KEYBOARD_getInstance() { + KAction_initEntries(); + return KAction_SHOW_KEYBOARD_instance; + } + function KAction_SEND_REPLY_WITH_BOLD_TEXT_getInstance() { + KAction_initEntries(); + return KAction_SEND_REPLY_WITH_BOLD_TEXT_instance; + } + function KAction_UNRECOGNIZED_getInstance() { + KAction_initEntries(); + return KAction_UNRECOGNIZED_instance; + } + var Companion_instance_1313; + function Companion_getInstance_1313() { + return Companion_instance_1313; + } + var $serializer_instance_1300; + function $serializer_getInstance_1300() { + if ($serializer_instance_1300 === VOID) + new $serializer_1300(); + return $serializer_instance_1300; + } + var Companion_instance_1314; + function Companion_getInstance_1314() { + return Companion_instance_1314; + } + var $serializer_instance_1301; + function $serializer_getInstance_1301() { + if ($serializer_instance_1301 === VOID) + new $serializer_1301(); + return $serializer_instance_1301; + } + var Companion_instance_1315; + function Companion_getInstance_1315() { + if (Companion_instance_1315 === VOID) + new Companion_1315(); + return Companion_instance_1315; + } + var $serializer_instance_1302; + function $serializer_getInstance_1302() { + if ($serializer_instance_1302 === VOID) + new $serializer_1302(); + return $serializer_instance_1302; + } + var Companion_instance_1316; + function Companion_getInstance_1316() { + return Companion_instance_1316; + } + var $serializer_instance_1303; + function $serializer_getInstance_1303() { + if ($serializer_instance_1303 === VOID) + new $serializer_1303(); + return $serializer_instance_1303; + } + var Companion_instance_1317; + function Companion_getInstance_1317() { + return Companion_instance_1317; + } + var $serializer_instance_1304; + function $serializer_getInstance_1304() { + if ($serializer_instance_1304 === VOID) + new $serializer_1304(); + return $serializer_instance_1304; + } + var Companion_instance_1318; + function Companion_getInstance_1318() { + return Companion_instance_1318; + } + var $serializer_instance_1305; + function $serializer_getInstance_1305() { + if ($serializer_instance_1305 === VOID) + new $serializer_1305(); + return $serializer_instance_1305; + } + var Companion_instance_1319; + function Companion_getInstance_1319() { + return Companion_instance_1319; + } + var $serializer_instance_1306; + function $serializer_getInstance_1306() { + if ($serializer_instance_1306 === VOID) + new $serializer_1306(); + return $serializer_instance_1306; + } + var Companion_instance_1320; + function Companion_getInstance_1320() { + return Companion_instance_1320; + } + var $serializer_instance_1307; + function $serializer_getInstance_1307() { + if ($serializer_instance_1307 === VOID) + new $serializer_1307(); + return $serializer_instance_1307; + } + var Companion_instance_1321; + function Companion_getInstance_1321() { + return Companion_instance_1321; + } + var $serializer_instance_1308; + function $serializer_getInstance_1308() { + if ($serializer_instance_1308 === VOID) + new $serializer_1308(); + return $serializer_instance_1308; + } + var Companion_instance_1322; + function Companion_getInstance_1322() { + return Companion_instance_1322; + } + var $serializer_instance_1309; + function $serializer_getInstance_1309() { + if ($serializer_instance_1309 === VOID) + new $serializer_1309(); + return $serializer_instance_1309; + } + var Companion_instance_1323; + function Companion_getInstance_1323() { + if (Companion_instance_1323 === VOID) + new Companion_1323(); + return Companion_instance_1323; + } + var $serializer_instance_1310; + function $serializer_getInstance_1310() { + if ($serializer_instance_1310 === VOID) + new $serializer_1310(); + return $serializer_instance_1310; + } + var Companion_instance_1324; + function Companion_getInstance_1324() { + return Companion_instance_1324; + } + var $serializer_instance_1311; + function $serializer_getInstance_1311() { + if ($serializer_instance_1311 === VOID) + new $serializer_1311(); + return $serializer_instance_1311; + } + var Companion_instance_1325; + function Companion_getInstance_1325() { + if (Companion_instance_1325 === VOID) + new Companion_1325(); + return Companion_instance_1325; + } + var $serializer_instance_1312; + function $serializer_getInstance_1312() { + if ($serializer_instance_1312 === VOID) + new $serializer_1312(); + return $serializer_instance_1312; + } + function KRichText$Companion$itemValues$delegate$lambda() { + return listOf_0([KNote_getInstance(), KOpus_getInstance()]); + } + function _get_itemNumber__22vn01_8($this) { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = $this.itemNumber$delegate_1; + var thisRef = $this; + var property = itemNumber$factory_8(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + var KNote_instance; + function KNote_getInstance() { + if (KNote_instance === VOID) + new KNote(); + return KNote_instance; + } + var KOpus_instance; + function KOpus_getInstance() { + if (KOpus_instance === VOID) + new KOpus(); + return KOpus_instance; + } + var Companion_instance_1326; + function Companion_getInstance_1326() { + if (Companion_instance_1326 === VOID) + new Companion_1326(); + return Companion_instance_1326; + } + var $serializer_instance_1313; + function $serializer_getInstance_1313() { + if ($serializer_instance_1313 === VOID) + new $serializer_1313(); + return $serializer_instance_1313; + } + function KRichText$itemNumber$delegate$lambda(this$0) { + return function () { + var tmp; + if (!(this$0.note_1 == null)) { + tmp = 0; + } else if (!(this$0.opus_1 == null)) { + tmp = 1; + } else { + tmp = -1; + } + return tmp; + }; + } + function KRichText$_init_$lambda_t9r9rd(this$0) { + return function () { + var tmp; + if (!(this$0.note_1 == null)) { + tmp = 0; + } else if (!(this$0.opus_1 == null)) { + tmp = 1; + } else { + tmp = -1; + } + return tmp; + }; + } + function _get_$cachedSerializer__te6jhj_164($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KReplyControl$KVoteOption$KLabelKind$Companion$values$delegate$lambda() { + return listOf_0([KLabelKind_DEFAULT_getInstance(), KLabelKind_RED_getInstance(), KLabelKind_BLUE_getInstance(), KLabelKind_PLAIN_getInstance()]); + } + function KReplyControl$KVoteOption$KLabelKind$Companion$_anonymous__r3mib6() { + return $serializer_getInstance_1314(); + } + var KLabelKind_DEFAULT_instance; + var KLabelKind_RED_instance; + var KLabelKind_BLUE_instance; + var KLabelKind_PLAIN_instance; + var KLabelKind_UNRECOGNIZED_instance; + var Companion_instance_1327; + function Companion_getInstance_1327() { + KLabelKind_initEntries(); + if (Companion_instance_1327 === VOID) + new Companion_1327(); + return Companion_instance_1327; + } + var $serializer_instance_1314; + function $serializer_getInstance_1314() { + KLabelKind_initEntries(); + if ($serializer_instance_1314 === VOID) + new $serializer_1314(); + return $serializer_instance_1314; + } + function values_164() { + return [KLabelKind_DEFAULT_getInstance(), KLabelKind_RED_getInstance(), KLabelKind_BLUE_getInstance(), KLabelKind_PLAIN_getInstance(), KLabelKind_UNRECOGNIZED_getInstance()]; + } + function valueOf_164(value) { + switch (value) { + case 'DEFAULT': + return KLabelKind_DEFAULT_getInstance(); + case 'RED': + return KLabelKind_RED_getInstance(); + case 'BLUE': + return KLabelKind_BLUE_getInstance(); + case 'PLAIN': + return KLabelKind_PLAIN_getInstance(); + case 'UNRECOGNIZED': + return KLabelKind_UNRECOGNIZED_getInstance(); + default: + KLabelKind_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KLabelKind_entriesInitialized; + function KLabelKind_initEntries() { + if (KLabelKind_entriesInitialized) + return Unit_instance; + KLabelKind_entriesInitialized = true; + KLabelKind_DEFAULT_instance = new KLabelKind('DEFAULT', 0, 0); + KLabelKind_RED_instance = new KLabelKind('RED', 1, 1); + KLabelKind_BLUE_instance = new KLabelKind('BLUE', 2, 2); + KLabelKind_PLAIN_instance = new KLabelKind('PLAIN', 3, 3); + KLabelKind_UNRECOGNIZED_instance = new KLabelKind('UNRECOGNIZED', 4, -1); + Companion_getInstance_1327(); + } + var Companion_instance_1328; + function Companion_getInstance_1328() { + return Companion_instance_1328; + } + var $serializer_instance_1315; + function $serializer_getInstance_1315() { + if ($serializer_instance_1315 === VOID) + new $serializer_1315(); + return $serializer_instance_1315; + } + function KLabelKind_DEFAULT_getInstance() { + KLabelKind_initEntries(); + return KLabelKind_DEFAULT_instance; + } + function KLabelKind_RED_getInstance() { + KLabelKind_initEntries(); + return KLabelKind_RED_instance; + } + function KLabelKind_BLUE_getInstance() { + KLabelKind_initEntries(); + return KLabelKind_BLUE_instance; + } + function KLabelKind_PLAIN_getInstance() { + KLabelKind_initEntries(); + return KLabelKind_PLAIN_instance; + } + function KLabelKind_UNRECOGNIZED_getInstance() { + KLabelKind_initEntries(); + return KLabelKind_UNRECOGNIZED_instance; + } + var Companion_instance_1329; + function Companion_getInstance_1329() { + return Companion_instance_1329; + } + var $serializer_instance_1316; + function $serializer_getInstance_1316() { + if ($serializer_instance_1316 === VOID) + new $serializer_1316(); + return $serializer_instance_1316; + } + var Companion_instance_1330; + function Companion_getInstance_1330() { + if (Companion_instance_1330 === VOID) + new Companion_1330(); + return Companion_instance_1330; + } + var $serializer_instance_1317; + function $serializer_getInstance_1317() { + if ($serializer_instance_1317 === VOID) + new $serializer_1317(); + return $serializer_instance_1317; + } + var Companion_instance_1331; + function Companion_getInstance_1331() { + return Companion_instance_1331; + } + var $serializer_instance_1318; + function $serializer_getInstance_1318() { + if ($serializer_instance_1318 === VOID) + new $serializer_1318(); + return $serializer_instance_1318; + } + var Companion_instance_1332; + function Companion_getInstance_1332() { + if (Companion_instance_1332 === VOID) + new Companion_1332(); + return Companion_instance_1332; + } + var $serializer_instance_1319; + function $serializer_getInstance_1319() { + if ($serializer_instance_1319 === VOID) + new $serializer_1319(); + return $serializer_instance_1319; + } + function _get_$cachedSerializer__te6jhj_165($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KReplyCardLabel$KType$Companion$values$delegate$lambda() { + return listOf_0([KType_UNDERLINE_getInstance(), KType_BACKGROUND_getInstance()]); + } + function KReplyCardLabel$KType$Companion$_anonymous__vnw8cp() { + return $serializer_getInstance_1320(); + } + var KType_UNDERLINE_instance; + var KType_BACKGROUND_instance; + var KType_UNRECOGNIZED_instance_1; + var Companion_instance_1333; + function Companion_getInstance_1333() { + KType_initEntries_1(); + if (Companion_instance_1333 === VOID) + new Companion_1333(); + return Companion_instance_1333; + } + var $serializer_instance_1320; + function $serializer_getInstance_1320() { + KType_initEntries_1(); + if ($serializer_instance_1320 === VOID) + new $serializer_1320(); + return $serializer_instance_1320; + } + function values_165() { + return [KType_UNDERLINE_getInstance(), KType_BACKGROUND_getInstance(), KType_UNRECOGNIZED_getInstance_1()]; + } + function valueOf_165(value) { + switch (value) { + case 'UNDERLINE': + return KType_UNDERLINE_getInstance(); + case 'BACKGROUND': + return KType_BACKGROUND_getInstance(); + case 'UNRECOGNIZED': + return KType_UNRECOGNIZED_getInstance_1(); + default: + KType_initEntries_1(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KType_entriesInitialized_1; + function KType_initEntries_1() { + if (KType_entriesInitialized_1) + return Unit_instance; + KType_entriesInitialized_1 = true; + KType_UNDERLINE_instance = new KType_2('UNDERLINE', 0, 0); + KType_BACKGROUND_instance = new KType_2('BACKGROUND', 1, 1); + KType_UNRECOGNIZED_instance_1 = new KType_2('UNRECOGNIZED', 2, -1); + Companion_getInstance_1333(); + } + var Companion_instance_1334; + function Companion_getInstance_1334() { + return Companion_instance_1334; + } + var $serializer_instance_1321; + function $serializer_getInstance_1321() { + if ($serializer_instance_1321 === VOID) + new $serializer_1321(); + return $serializer_instance_1321; + } + function KType_UNDERLINE_getInstance() { + KType_initEntries_1(); + return KType_UNDERLINE_instance; + } + function KType_BACKGROUND_getInstance() { + KType_initEntries_1(); + return KType_BACKGROUND_instance; + } + function KType_UNRECOGNIZED_getInstance_1() { + KType_initEntries_1(); + return KType_UNRECOGNIZED_instance_1; + } + function _get_$cachedSerializer__te6jhj_166($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KUrl$KIconPosition$Companion$values$delegate$lambda() { + return listOf_0([KIconPosition_PREFIX_getInstance(), KIconPosition_SUFFIX_getInstance()]); + } + function KUrl$KIconPosition$Companion$_anonymous__otnsfy() { + return $serializer_getInstance_1322(); + } + var KIconPosition_PREFIX_instance; + var KIconPosition_SUFFIX_instance; + var KIconPosition_UNRECOGNIZED_instance; + var Companion_instance_1335; + function Companion_getInstance_1335() { + KIconPosition_initEntries(); + if (Companion_instance_1335 === VOID) + new Companion_1335(); + return Companion_instance_1335; + } + var $serializer_instance_1322; + function $serializer_getInstance_1322() { + KIconPosition_initEntries(); + if ($serializer_instance_1322 === VOID) + new $serializer_1322(); + return $serializer_instance_1322; + } + function values_166() { + return [KIconPosition_PREFIX_getInstance(), KIconPosition_SUFFIX_getInstance(), KIconPosition_UNRECOGNIZED_getInstance()]; + } + function valueOf_166(value) { + switch (value) { + case 'PREFIX': + return KIconPosition_PREFIX_getInstance(); + case 'SUFFIX': + return KIconPosition_SUFFIX_getInstance(); + case 'UNRECOGNIZED': + return KIconPosition_UNRECOGNIZED_getInstance(); + default: + KIconPosition_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KIconPosition_entriesInitialized; + function KIconPosition_initEntries() { + if (KIconPosition_entriesInitialized) + return Unit_instance; + KIconPosition_entriesInitialized = true; + KIconPosition_PREFIX_instance = new KIconPosition('PREFIX', 0, 0); + KIconPosition_SUFFIX_instance = new KIconPosition('SUFFIX', 1, 1); + KIconPosition_UNRECOGNIZED_instance = new KIconPosition('UNRECOGNIZED', 2, -1); + Companion_getInstance_1335(); + } + function _get_$cachedSerializer__te6jhj_167($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KUrl$KExtra$KGoodsShowType$Companion$values$delegate$lambda() { + return listOf_0([KGoodsShowType_POPUP_getInstance(), KGoodsShowType_FULL_SCREEN_getInstance(), KGoodsShowType_HALF_SCREEN_getInstance()]); + } + function KUrl$KExtra$KGoodsShowType$Companion$_anonymous__r5u69a() { + return $serializer_getInstance_1323(); + } + var KGoodsShowType_POPUP_instance; + var KGoodsShowType_FULL_SCREEN_instance; + var KGoodsShowType_HALF_SCREEN_instance; + var KGoodsShowType_UNRECOGNIZED_instance; + var Companion_instance_1336; + function Companion_getInstance_1336() { + KGoodsShowType_initEntries(); + if (Companion_instance_1336 === VOID) + new Companion_1336(); + return Companion_instance_1336; + } + var $serializer_instance_1323; + function $serializer_getInstance_1323() { + KGoodsShowType_initEntries(); + if ($serializer_instance_1323 === VOID) + new $serializer_1323(); + return $serializer_instance_1323; + } + function values_167() { + return [KGoodsShowType_POPUP_getInstance(), KGoodsShowType_FULL_SCREEN_getInstance(), KGoodsShowType_HALF_SCREEN_getInstance(), KGoodsShowType_UNRECOGNIZED_getInstance()]; + } + function valueOf_167(value) { + switch (value) { + case 'POPUP': + return KGoodsShowType_POPUP_getInstance(); + case 'FULL_SCREEN': + return KGoodsShowType_FULL_SCREEN_getInstance(); + case 'HALF_SCREEN': + return KGoodsShowType_HALF_SCREEN_getInstance(); + case 'UNRECOGNIZED': + return KGoodsShowType_UNRECOGNIZED_getInstance(); + default: + KGoodsShowType_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KGoodsShowType_entriesInitialized; + function KGoodsShowType_initEntries() { + if (KGoodsShowType_entriesInitialized) + return Unit_instance; + KGoodsShowType_entriesInitialized = true; + KGoodsShowType_POPUP_instance = new KGoodsShowType('POPUP', 0, 0); + KGoodsShowType_FULL_SCREEN_instance = new KGoodsShowType('FULL_SCREEN', 1, 1); + KGoodsShowType_HALF_SCREEN_instance = new KGoodsShowType('HALF_SCREEN', 2, 2); + KGoodsShowType_UNRECOGNIZED_instance = new KGoodsShowType('UNRECOGNIZED', 3, -1); + Companion_getInstance_1336(); + } + var Companion_instance_1337; + function Companion_getInstance_1337() { + return Companion_instance_1337; + } + var $serializer_instance_1324; + function $serializer_getInstance_1324() { + if ($serializer_instance_1324 === VOID) + new $serializer_1324(); + return $serializer_instance_1324; + } + function KGoodsShowType_POPUP_getInstance() { + KGoodsShowType_initEntries(); + return KGoodsShowType_POPUP_instance; + } + function KGoodsShowType_FULL_SCREEN_getInstance() { + KGoodsShowType_initEntries(); + return KGoodsShowType_FULL_SCREEN_instance; + } + function KGoodsShowType_HALF_SCREEN_getInstance() { + KGoodsShowType_initEntries(); + return KGoodsShowType_HALF_SCREEN_instance; + } + function KGoodsShowType_UNRECOGNIZED_getInstance() { + KGoodsShowType_initEntries(); + return KGoodsShowType_UNRECOGNIZED_instance; + } + var Companion_instance_1338; + function Companion_getInstance_1338() { + return Companion_instance_1338; + } + var $serializer_instance_1325; + function $serializer_getInstance_1325() { + if ($serializer_instance_1325 === VOID) + new $serializer_1325(); + return $serializer_instance_1325; + } + function KIconPosition_PREFIX_getInstance() { + KIconPosition_initEntries(); + return KIconPosition_PREFIX_instance; + } + function KIconPosition_SUFFIX_getInstance() { + KIconPosition_initEntries(); + return KIconPosition_SUFFIX_instance; + } + function KIconPosition_UNRECOGNIZED_getInstance() { + KIconPosition_initEntries(); + return KIconPosition_UNRECOGNIZED_instance; + } + var Companion_instance_1339; + function Companion_getInstance_1339() { + return Companion_instance_1339; + } + var $serializer_instance_1326; + function $serializer_getInstance_1326() { + if ($serializer_instance_1326 === VOID) + new $serializer_1326(); + return $serializer_instance_1326; + } + var Companion_instance_1340; + function Companion_getInstance_1340() { + return Companion_instance_1340; + } + var $serializer_instance_1327; + function $serializer_getInstance_1327() { + if ($serializer_instance_1327 === VOID) + new $serializer_1327(); + return $serializer_instance_1327; + } + var Companion_instance_1341; + function Companion_getInstance_1341() { + return Companion_instance_1341; + } + var $serializer_instance_1328; + function $serializer_getInstance_1328() { + if ($serializer_instance_1328 === VOID) + new $serializer_1328(); + return $serializer_instance_1328; + } + var Companion_instance_1342; + function Companion_getInstance_1342() { + return Companion_instance_1342; + } + var $serializer_instance_1329; + function $serializer_getInstance_1329() { + if ($serializer_instance_1329 === VOID) + new $serializer_1329(); + return $serializer_instance_1329; + } + var Companion_instance_1343; + function Companion_getInstance_1343() { + return Companion_instance_1343; + } + var $serializer_instance_1330; + function $serializer_getInstance_1330() { + if ($serializer_instance_1330 === VOID) + new $serializer_1330(); + return $serializer_instance_1330; + } + var Companion_instance_1344; + function Companion_getInstance_1344() { + return Companion_instance_1344; + } + var $serializer_instance_1331; + function $serializer_getInstance_1331() { + if ($serializer_instance_1331 === VOID) + new $serializer_1331(); + return $serializer_instance_1331; + } + var Companion_instance_1345; + function Companion_getInstance_1345() { + return Companion_instance_1345; + } + var $serializer_instance_1332; + function $serializer_getInstance_1332() { + if ($serializer_instance_1332 === VOID) + new $serializer_1332(); + return $serializer_instance_1332; + } + var Companion_instance_1346; + function Companion_getInstance_1346() { + return Companion_instance_1346; + } + var $serializer_instance_1333; + function $serializer_getInstance_1333() { + if ($serializer_instance_1333 === VOID) + new $serializer_1333(); + return $serializer_instance_1333; + } + function _get_$cachedSerializer__te6jhj_168($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KMemberV2$KNft$KInteraction$KRegionType$Companion$values$delegate$lambda() { + return listOf_0([KRegionType_DEFAULT_getInstance(), KRegionType_MAINLAND_getInstance(), KRegionType_GAT_getInstance()]); + } + function KMemberV2$KNft$KInteraction$KRegionType$Companion$_anonymous__ddxx8d() { + return $serializer_getInstance_1334(); + } + var KRegionType_DEFAULT_instance; + var KRegionType_MAINLAND_instance; + var KRegionType_GAT_instance; + var KRegionType_UNRECOGNIZED_instance; + var Companion_instance_1347; + function Companion_getInstance_1347() { + KRegionType_initEntries(); + if (Companion_instance_1347 === VOID) + new Companion_1347(); + return Companion_instance_1347; + } + var $serializer_instance_1334; + function $serializer_getInstance_1334() { + KRegionType_initEntries(); + if ($serializer_instance_1334 === VOID) + new $serializer_1334(); + return $serializer_instance_1334; + } + function values_168() { + return [KRegionType_DEFAULT_getInstance(), KRegionType_MAINLAND_getInstance(), KRegionType_GAT_getInstance(), KRegionType_UNRECOGNIZED_getInstance()]; + } + function valueOf_168(value) { + switch (value) { + case 'DEFAULT': + return KRegionType_DEFAULT_getInstance(); + case 'MAINLAND': + return KRegionType_MAINLAND_getInstance(); + case 'GAT': + return KRegionType_GAT_getInstance(); + case 'UNRECOGNIZED': + return KRegionType_UNRECOGNIZED_getInstance(); + default: + KRegionType_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KRegionType_entriesInitialized; + function KRegionType_initEntries() { + if (KRegionType_entriesInitialized) + return Unit_instance; + KRegionType_entriesInitialized = true; + KRegionType_DEFAULT_instance = new KRegionType('DEFAULT', 0, 0); + KRegionType_MAINLAND_instance = new KRegionType('MAINLAND', 1, 1); + KRegionType_GAT_instance = new KRegionType('GAT', 2, 2); + KRegionType_UNRECOGNIZED_instance = new KRegionType('UNRECOGNIZED', 3, -1); + Companion_getInstance_1347(); + } + function _get_$cachedSerializer__te6jhj_169($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KMemberV2$KNft$KInteraction$KShowStatus$Companion$values$delegate$lambda() { + return listOf_0([KShowStatus_SHOWDEFAULT_getInstance(), KShowStatus_ZOOMINMAINLAND_getInstance(), KShowStatus_RAW_getInstance()]); + } + function KMemberV2$KNft$KInteraction$KShowStatus$Companion$_anonymous__id80n6() { + return $serializer_getInstance_1335(); + } + var KShowStatus_SHOWDEFAULT_instance; + var KShowStatus_ZOOMINMAINLAND_instance; + var KShowStatus_RAW_instance; + var KShowStatus_UNRECOGNIZED_instance; + var Companion_instance_1348; + function Companion_getInstance_1348() { + KShowStatus_initEntries(); + if (Companion_instance_1348 === VOID) + new Companion_1348(); + return Companion_instance_1348; + } + var $serializer_instance_1335; + function $serializer_getInstance_1335() { + KShowStatus_initEntries(); + if ($serializer_instance_1335 === VOID) + new $serializer_1335(); + return $serializer_instance_1335; + } + function values_169() { + return [KShowStatus_SHOWDEFAULT_getInstance(), KShowStatus_ZOOMINMAINLAND_getInstance(), KShowStatus_RAW_getInstance(), KShowStatus_UNRECOGNIZED_getInstance()]; + } + function valueOf_169(value) { + switch (value) { + case 'SHOWDEFAULT': + return KShowStatus_SHOWDEFAULT_getInstance(); + case 'ZOOMINMAINLAND': + return KShowStatus_ZOOMINMAINLAND_getInstance(); + case 'RAW': + return KShowStatus_RAW_getInstance(); + case 'UNRECOGNIZED': + return KShowStatus_UNRECOGNIZED_getInstance(); + default: + KShowStatus_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KShowStatus_entriesInitialized; + function KShowStatus_initEntries() { + if (KShowStatus_entriesInitialized) + return Unit_instance; + KShowStatus_entriesInitialized = true; + KShowStatus_SHOWDEFAULT_instance = new KShowStatus('SHOWDEFAULT', 0, 0); + KShowStatus_ZOOMINMAINLAND_instance = new KShowStatus('ZOOMINMAINLAND', 1, 1); + KShowStatus_RAW_instance = new KShowStatus('RAW', 2, 2); + KShowStatus_UNRECOGNIZED_instance = new KShowStatus('UNRECOGNIZED', 3, -1); + Companion_getInstance_1348(); + } + var Companion_instance_1349; + function Companion_getInstance_1349() { + return Companion_instance_1349; + } + var $serializer_instance_1336; + function $serializer_getInstance_1336() { + if ($serializer_instance_1336 === VOID) + new $serializer_1336(); + return $serializer_instance_1336; + } + var Companion_instance_1350; + function Companion_getInstance_1350() { + return Companion_instance_1350; + } + var $serializer_instance_1337; + function $serializer_getInstance_1337() { + if ($serializer_instance_1337 === VOID) + new $serializer_1337(); + return $serializer_instance_1337; + } + function KRegionType_DEFAULT_getInstance() { + KRegionType_initEntries(); + return KRegionType_DEFAULT_instance; + } + function KRegionType_MAINLAND_getInstance() { + KRegionType_initEntries(); + return KRegionType_MAINLAND_instance; + } + function KRegionType_GAT_getInstance() { + KRegionType_initEntries(); + return KRegionType_GAT_instance; + } + function KRegionType_UNRECOGNIZED_getInstance() { + KRegionType_initEntries(); + return KRegionType_UNRECOGNIZED_instance; + } + function KShowStatus_SHOWDEFAULT_getInstance() { + KShowStatus_initEntries(); + return KShowStatus_SHOWDEFAULT_instance; + } + function KShowStatus_ZOOMINMAINLAND_getInstance() { + KShowStatus_initEntries(); + return KShowStatus_ZOOMINMAINLAND_instance; + } + function KShowStatus_RAW_getInstance() { + KShowStatus_initEntries(); + return KShowStatus_RAW_instance; + } + function KShowStatus_UNRECOGNIZED_getInstance() { + KShowStatus_initEntries(); + return KShowStatus_UNRECOGNIZED_instance; + } + var Companion_instance_1351; + function Companion_getInstance_1351() { + return Companion_instance_1351; + } + var $serializer_instance_1338; + function $serializer_getInstance_1338() { + if ($serializer_instance_1338 === VOID) + new $serializer_1338(); + return $serializer_instance_1338; + } + function _get_$cachedSerializer__te6jhj_170($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KMemberV2$KSenior$KStatus$Companion$values$delegate$lambda() { + return listOf_0([KStatus_NORMAL_getInstance(), KStatus_PENDING_getInstance(), KStatus_SENIOR_getInstance(), KStatus_WILL_EXPIRE_getInstance(), KStatus_EXPIRED_getInstance()]); + } + function KMemberV2$KSenior$KStatus$Companion$_anonymous__bg0dlu() { + return $serializer_getInstance_1339(); + } + var KStatus_NORMAL_instance; + var KStatus_PENDING_instance; + var KStatus_SENIOR_instance; + var KStatus_WILL_EXPIRE_instance; + var KStatus_EXPIRED_instance; + var KStatus_UNRECOGNIZED_instance; + var Companion_instance_1352; + function Companion_getInstance_1352() { + KStatus_initEntries(); + if (Companion_instance_1352 === VOID) + new Companion_1352(); + return Companion_instance_1352; + } + var $serializer_instance_1339; + function $serializer_getInstance_1339() { + KStatus_initEntries(); + if ($serializer_instance_1339 === VOID) + new $serializer_1339(); + return $serializer_instance_1339; + } + function values_170() { + return [KStatus_NORMAL_getInstance(), KStatus_PENDING_getInstance(), KStatus_SENIOR_getInstance(), KStatus_WILL_EXPIRE_getInstance(), KStatus_EXPIRED_getInstance(), KStatus_UNRECOGNIZED_getInstance()]; + } + function valueOf_170(value) { + switch (value) { + case 'NORMAL': + return KStatus_NORMAL_getInstance(); + case 'PENDING': + return KStatus_PENDING_getInstance(); + case 'SENIOR': + return KStatus_SENIOR_getInstance(); + case 'WILL_EXPIRE': + return KStatus_WILL_EXPIRE_getInstance(); + case 'EXPIRED': + return KStatus_EXPIRED_getInstance(); + case 'UNRECOGNIZED': + return KStatus_UNRECOGNIZED_getInstance(); + default: + KStatus_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KStatus_entriesInitialized; + function KStatus_initEntries() { + if (KStatus_entriesInitialized) + return Unit_instance; + KStatus_entriesInitialized = true; + KStatus_NORMAL_instance = new KStatus('NORMAL', 0, 0); + KStatus_PENDING_instance = new KStatus('PENDING', 1, 1); + KStatus_SENIOR_instance = new KStatus('SENIOR', 2, 2); + KStatus_WILL_EXPIRE_instance = new KStatus('WILL_EXPIRE', 3, 3); + KStatus_EXPIRED_instance = new KStatus('EXPIRED', 4, 4); + KStatus_UNRECOGNIZED_instance = new KStatus('UNRECOGNIZED', 5, -1); + Companion_getInstance_1352(); + } + var Companion_instance_1353; + function Companion_getInstance_1353() { + return Companion_instance_1353; + } + var $serializer_instance_1340; + function $serializer_getInstance_1340() { + if ($serializer_instance_1340 === VOID) + new $serializer_1340(); + return $serializer_instance_1340; + } + function KStatus_NORMAL_getInstance() { + KStatus_initEntries(); + return KStatus_NORMAL_instance; + } + function KStatus_PENDING_getInstance() { + KStatus_initEntries(); + return KStatus_PENDING_instance; + } + function KStatus_SENIOR_getInstance() { + KStatus_initEntries(); + return KStatus_SENIOR_instance; + } + function KStatus_WILL_EXPIRE_getInstance() { + KStatus_initEntries(); + return KStatus_WILL_EXPIRE_instance; + } + function KStatus_EXPIRED_getInstance() { + KStatus_initEntries(); + return KStatus_EXPIRED_instance; + } + function KStatus_UNRECOGNIZED_getInstance() { + KStatus_initEntries(); + return KStatus_UNRECOGNIZED_instance; + } + var Companion_instance_1354; + function Companion_getInstance_1354() { + return Companion_instance_1354; + } + var $serializer_instance_1341; + function $serializer_getInstance_1341() { + if ($serializer_instance_1341 === VOID) + new $serializer_1341(); + return $serializer_instance_1341; + } + var Companion_instance_1355; + function Companion_getInstance_1355() { + return Companion_instance_1355; + } + var $serializer_instance_1342; + function $serializer_getInstance_1342() { + if ($serializer_instance_1342 === VOID) + new $serializer_1342(); + return $serializer_instance_1342; + } + function _get_$cachedSerializer__te6jhj_171($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KMember$KNftInteraction$KRegionType$Companion$values$delegate$lambda() { + return listOf_0([KRegionType_DEFAULT_getInstance_0(), KRegionType_MAINLAND_getInstance_0(), KRegionType_GAT_getInstance_0()]); + } + function KMember$KNftInteraction$KRegionType$Companion$_anonymous__9rdgtk() { + return $serializer_getInstance_1343(); + } + var KRegionType_DEFAULT_instance_0; + var KRegionType_MAINLAND_instance_0; + var KRegionType_GAT_instance_0; + var KRegionType_UNRECOGNIZED_instance_0; + var Companion_instance_1356; + function Companion_getInstance_1356() { + KRegionType_initEntries_0(); + if (Companion_instance_1356 === VOID) + new Companion_1356(); + return Companion_instance_1356; + } + var $serializer_instance_1343; + function $serializer_getInstance_1343() { + KRegionType_initEntries_0(); + if ($serializer_instance_1343 === VOID) + new $serializer_1343(); + return $serializer_instance_1343; + } + function values_171() { + return [KRegionType_DEFAULT_getInstance_0(), KRegionType_MAINLAND_getInstance_0(), KRegionType_GAT_getInstance_0(), KRegionType_UNRECOGNIZED_getInstance_0()]; + } + function valueOf_171(value) { + switch (value) { + case 'DEFAULT': + return KRegionType_DEFAULT_getInstance_0(); + case 'MAINLAND': + return KRegionType_MAINLAND_getInstance_0(); + case 'GAT': + return KRegionType_GAT_getInstance_0(); + case 'UNRECOGNIZED': + return KRegionType_UNRECOGNIZED_getInstance_0(); + default: + KRegionType_initEntries_0(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KRegionType_entriesInitialized_0; + function KRegionType_initEntries_0() { + if (KRegionType_entriesInitialized_0) + return Unit_instance; + KRegionType_entriesInitialized_0 = true; + KRegionType_DEFAULT_instance_0 = new KRegionType_0('DEFAULT', 0, 0); + KRegionType_MAINLAND_instance_0 = new KRegionType_0('MAINLAND', 1, 1); + KRegionType_GAT_instance_0 = new KRegionType_0('GAT', 2, 2); + KRegionType_UNRECOGNIZED_instance_0 = new KRegionType_0('UNRECOGNIZED', 3, -1); + Companion_getInstance_1356(); + } + function _get_$cachedSerializer__te6jhj_172($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KMember$KNftInteraction$KShowStatus$Companion$values$delegate$lambda() { + return listOf_0([KShowStatus_SHOWDEFAULT_getInstance_0(), KShowStatus_ZOOMINMAINLAND_getInstance_0(), KShowStatus_RAW_getInstance_0()]); + } + function KMember$KNftInteraction$KShowStatus$Companion$_anonymous__lzsh1z() { + return $serializer_getInstance_1344(); + } + var KShowStatus_SHOWDEFAULT_instance_0; + var KShowStatus_ZOOMINMAINLAND_instance_0; + var KShowStatus_RAW_instance_0; + var KShowStatus_UNRECOGNIZED_instance_0; + var Companion_instance_1357; + function Companion_getInstance_1357() { + KShowStatus_initEntries_0(); + if (Companion_instance_1357 === VOID) + new Companion_1357(); + return Companion_instance_1357; + } + var $serializer_instance_1344; + function $serializer_getInstance_1344() { + KShowStatus_initEntries_0(); + if ($serializer_instance_1344 === VOID) + new $serializer_1344(); + return $serializer_instance_1344; + } + function values_172() { + return [KShowStatus_SHOWDEFAULT_getInstance_0(), KShowStatus_ZOOMINMAINLAND_getInstance_0(), KShowStatus_RAW_getInstance_0(), KShowStatus_UNRECOGNIZED_getInstance_0()]; + } + function valueOf_172(value) { + switch (value) { + case 'SHOWDEFAULT': + return KShowStatus_SHOWDEFAULT_getInstance_0(); + case 'ZOOMINMAINLAND': + return KShowStatus_ZOOMINMAINLAND_getInstance_0(); + case 'RAW': + return KShowStatus_RAW_getInstance_0(); + case 'UNRECOGNIZED': + return KShowStatus_UNRECOGNIZED_getInstance_0(); + default: + KShowStatus_initEntries_0(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KShowStatus_entriesInitialized_0; + function KShowStatus_initEntries_0() { + if (KShowStatus_entriesInitialized_0) + return Unit_instance; + KShowStatus_entriesInitialized_0 = true; + KShowStatus_SHOWDEFAULT_instance_0 = new KShowStatus_0('SHOWDEFAULT', 0, 0); + KShowStatus_ZOOMINMAINLAND_instance_0 = new KShowStatus_0('ZOOMINMAINLAND', 1, 1); + KShowStatus_RAW_instance_0 = new KShowStatus_0('RAW', 2, 2); + KShowStatus_UNRECOGNIZED_instance_0 = new KShowStatus_0('UNRECOGNIZED', 3, -1); + Companion_getInstance_1357(); + } + var Companion_instance_1358; + function Companion_getInstance_1358() { + return Companion_instance_1358; + } + var $serializer_instance_1345; + function $serializer_getInstance_1345() { + if ($serializer_instance_1345 === VOID) + new $serializer_1345(); + return $serializer_instance_1345; + } + var Companion_instance_1359; + function Companion_getInstance_1359() { + return Companion_instance_1359; + } + var $serializer_instance_1346; + function $serializer_getInstance_1346() { + if ($serializer_instance_1346 === VOID) + new $serializer_1346(); + return $serializer_instance_1346; + } + function KRegionType_DEFAULT_getInstance_0() { + KRegionType_initEntries_0(); + return KRegionType_DEFAULT_instance_0; + } + function KRegionType_MAINLAND_getInstance_0() { + KRegionType_initEntries_0(); + return KRegionType_MAINLAND_instance_0; + } + function KRegionType_GAT_getInstance_0() { + KRegionType_initEntries_0(); + return KRegionType_GAT_instance_0; + } + function KRegionType_UNRECOGNIZED_getInstance_0() { + KRegionType_initEntries_0(); + return KRegionType_UNRECOGNIZED_instance_0; + } + function KShowStatus_SHOWDEFAULT_getInstance_0() { + KShowStatus_initEntries_0(); + return KShowStatus_SHOWDEFAULT_instance_0; + } + function KShowStatus_ZOOMINMAINLAND_getInstance_0() { + KShowStatus_initEntries_0(); + return KShowStatus_ZOOMINMAINLAND_instance_0; + } + function KShowStatus_RAW_getInstance_0() { + KShowStatus_initEntries_0(); + return KShowStatus_RAW_instance_0; + } + function KShowStatus_UNRECOGNIZED_getInstance_0() { + KShowStatus_initEntries_0(); + return KShowStatus_UNRECOGNIZED_instance_0; + } + var Companion_instance_1360; + function Companion_getInstance_1360() { + return Companion_instance_1360; + } + var $serializer_instance_1347; + function $serializer_getInstance_1347() { + if ($serializer_instance_1347 === VOID) + new $serializer_1347(); + return $serializer_instance_1347; + } + var Companion_instance_1361; + function Companion_getInstance_1361() { + return Companion_instance_1361; + } + var $serializer_instance_1348; + function $serializer_getInstance_1348() { + if ($serializer_instance_1348 === VOID) + new $serializer_1348(); + return $serializer_instance_1348; + } + var Companion_instance_1362; + function Companion_getInstance_1362() { + if (Companion_instance_1362 === VOID) + new Companion_1362(); + return Companion_instance_1362; + } + var $serializer_instance_1349; + function $serializer_getInstance_1349() { + if ($serializer_instance_1349 === VOID) + new $serializer_1349(); + return $serializer_instance_1349; + } + var Companion_instance_1363; + function Companion_getInstance_1363() { + return Companion_instance_1363; + } + var $serializer_instance_1350; + function $serializer_getInstance_1350() { + if ($serializer_instance_1350 === VOID) + new $serializer_1350(); + return $serializer_instance_1350; + } + var Companion_instance_1364; + function Companion_getInstance_1364() { + return Companion_instance_1364; + } + var $serializer_instance_1351; + function $serializer_getInstance_1351() { + if ($serializer_instance_1351 === VOID) + new $serializer_1351(); + return $serializer_instance_1351; + } + var Companion_instance_1365; + function Companion_getInstance_1365() { + if (Companion_instance_1365 === VOID) + new Companion_1365(); + return Companion_instance_1365; + } + var $serializer_instance_1352; + function $serializer_getInstance_1352() { + if ($serializer_instance_1352 === VOID) + new $serializer_1352(); + return $serializer_instance_1352; + } + var Companion_instance_1366; + function Companion_getInstance_1366() { + return Companion_instance_1366; + } + var $serializer_instance_1353; + function $serializer_getInstance_1353() { + if ($serializer_instance_1353 === VOID) + new $serializer_1353(); + return $serializer_instance_1353; + } + var Companion_instance_1367; + function Companion_getInstance_1367() { + return Companion_instance_1367; + } + var $serializer_instance_1354; + function $serializer_getInstance_1354() { + if ($serializer_instance_1354 === VOID) + new $serializer_1354(); + return $serializer_instance_1354; + } + function KSearchItem$Companion$itemValues$delegate$lambda() { + return listOf_0([KGoods_getInstance_0(), KVideo_getInstance(), KArticle_getInstance_1()]); + } + function _get_itemNumber__22vn01_9($this) { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = $this.itemNumber$delegate_1; + var thisRef = $this; + var property = itemNumber$factory_9(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + var KGoods_instance_0; + function KGoods_getInstance_0() { + if (KGoods_instance_0 === VOID) + new KGoods_0(); + return KGoods_instance_0; + } + var KVideo_instance; + function KVideo_getInstance() { + if (KVideo_instance === VOID) + new KVideo_0(); + return KVideo_instance; + } + var KArticle_instance_1; + function KArticle_getInstance_1() { + if (KArticle_instance_1 === VOID) + new KArticle_1(); + return KArticle_instance_1; + } + var Companion_instance_1368; + function Companion_getInstance_1368() { + if (Companion_instance_1368 === VOID) + new Companion_1368(); + return Companion_instance_1368; + } + var $serializer_instance_1355; + function $serializer_getInstance_1355() { + if ($serializer_instance_1355 === VOID) + new $serializer_1355(); + return $serializer_instance_1355; + } + function KSearchItem$itemNumber$delegate$lambda(this$0) { + return function () { + var tmp; + if (!(this$0.goods_1 == null)) { + tmp = 0; + } else if (!(this$0.video_1 == null)) { + tmp = 1; + } else if (!(this$0.article_1 == null)) { + tmp = 2; + } else { + tmp = -1; + } + return tmp; + }; + } + function KSearchItem$_init_$lambda_f6s50l(this$0) { + return function () { + var tmp; + if (!(this$0.goods_1 == null)) { + tmp = 0; + } else if (!(this$0.video_1 == null)) { + tmp = 1; + } else if (!(this$0.article_1 == null)) { + tmp = 2; + } else { + tmp = -1; + } + return tmp; + }; + } + var Companion_instance_1369; + function Companion_getInstance_1369() { + return Companion_instance_1369; + } + var $serializer_instance_1356; + function $serializer_getInstance_1356() { + if ($serializer_instance_1356 === VOID) + new $serializer_1356(); + return $serializer_instance_1356; + } + function KVideoSearchItem$Companion$videoItemValues$delegate$lambda() { + return listOf_0([KUgc_getInstance_0(), KPgc_getInstance_0()]); + } + function _get_videoItemNumber__bwp1k6($this) { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = $this.videoItemNumber$delegate_1; + var thisRef = $this; + var property = videoItemNumber$factory(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + var KUgc_instance_0; + function KUgc_getInstance_0() { + if (KUgc_instance_0 === VOID) + new KUgc_0(); + return KUgc_instance_0; + } + var KPgc_instance_0; + function KPgc_getInstance_0() { + if (KPgc_instance_0 === VOID) + new KPgc_0(); + return KPgc_instance_0; + } + var Companion_instance_1370; + function Companion_getInstance_1370() { + if (Companion_instance_1370 === VOID) + new Companion_1370(); + return Companion_instance_1370; + } + var $serializer_instance_1357; + function $serializer_getInstance_1357() { + if ($serializer_instance_1357 === VOID) + new $serializer_1357(); + return $serializer_instance_1357; + } + function KVideoSearchItem$videoItemNumber$delegate$lambda(this$0) { + return function () { + var tmp; + if (!(this$0.ugc_1 == null)) { + tmp = 0; + } else if (!(this$0.pgc_1 == null)) { + tmp = 1; + } else { + tmp = -1; + } + return tmp; + }; + } + function KVideoSearchItem$_init_$lambda_ob7rcw(this$0) { + return function () { + var tmp; + if (!(this$0.ugc_1 == null)) { + tmp = 0; + } else if (!(this$0.pgc_1 == null)) { + tmp = 1; + } else { + tmp = -1; + } + return tmp; + }; + } + var Companion_instance_1371; + function Companion_getInstance_1371() { + return Companion_instance_1371; + } + var $serializer_instance_1358; + function $serializer_getInstance_1358() { + if ($serializer_instance_1358 === VOID) + new $serializer_1358(); + return $serializer_instance_1358; + } + var Companion_instance_1372; + function Companion_getInstance_1372() { + return Companion_instance_1372; + } + var $serializer_instance_1359; + function $serializer_getInstance_1359() { + if ($serializer_instance_1359 === VOID) + new $serializer_1359(); + return $serializer_instance_1359; + } + var Companion_instance_1373; + function Companion_getInstance_1373() { + if (Companion_instance_1373 === VOID) + new Companion_1373(); + return Companion_instance_1373; + } + var $serializer_instance_1360; + function $serializer_getInstance_1360() { + if ($serializer_instance_1360 === VOID) + new $serializer_1360(); + return $serializer_instance_1360; + } + var Companion_instance_1374; + function Companion_getInstance_1374() { + return Companion_instance_1374; + } + var $serializer_instance_1361; + function $serializer_getInstance_1361() { + if ($serializer_instance_1361 === VOID) + new $serializer_1361(); + return $serializer_instance_1361; + } + function _get_$cachedSerializer__te6jhj_173($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KOperation$KType$Companion$values$delegate$lambda() { + return listOf_0([KType_UNKNOWN_getInstance(), KType_NOTE_getInstance(), KType_TOPIC_getInstance(), KType_NOTICE_getInstance()]); + } + function KOperation$KType$Companion$_anonymous__ofnv5a() { + return $serializer_getInstance_1362(); + } + var KType_UNKNOWN_instance; + var KType_NOTE_instance; + var KType_TOPIC_instance; + var KType_NOTICE_instance; + var KType_UNRECOGNIZED_instance_2; + var Companion_instance_1375; + function Companion_getInstance_1375() { + KType_initEntries_2(); + if (Companion_instance_1375 === VOID) + new Companion_1375(); + return Companion_instance_1375; + } + var $serializer_instance_1362; + function $serializer_getInstance_1362() { + KType_initEntries_2(); + if ($serializer_instance_1362 === VOID) + new $serializer_1362(); + return $serializer_instance_1362; + } + function values_173() { + return [KType_UNKNOWN_getInstance(), KType_NOTE_getInstance(), KType_TOPIC_getInstance(), KType_NOTICE_getInstance(), KType_UNRECOGNIZED_getInstance_2()]; + } + function valueOf_173(value) { + switch (value) { + case 'UNKNOWN': + return KType_UNKNOWN_getInstance(); + case 'NOTE': + return KType_NOTE_getInstance(); + case 'TOPIC': + return KType_TOPIC_getInstance(); + case 'NOTICE': + return KType_NOTICE_getInstance(); + case 'UNRECOGNIZED': + return KType_UNRECOGNIZED_getInstance_2(); + default: + KType_initEntries_2(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KType_entriesInitialized_2; + function KType_initEntries_2() { + if (KType_entriesInitialized_2) + return Unit_instance; + KType_entriesInitialized_2 = true; + KType_UNKNOWN_instance = new KType_3('UNKNOWN', 0, 0); + KType_NOTE_instance = new KType_3('NOTE', 1, 1); + KType_TOPIC_instance = new KType_3('TOPIC', 2, 2); + KType_NOTICE_instance = new KType_3('NOTICE', 3, 3); + KType_UNRECOGNIZED_instance_2 = new KType_3('UNRECOGNIZED', 4, -1); + Companion_getInstance_1375(); + } + var Companion_instance_1376; + function Companion_getInstance_1376() { + return Companion_instance_1376; + } + var $serializer_instance_1363; + function $serializer_getInstance_1363() { + if ($serializer_instance_1363 === VOID) + new $serializer_1363(); + return $serializer_instance_1363; + } + function KType_UNKNOWN_getInstance() { + KType_initEntries_2(); + return KType_UNKNOWN_instance; + } + function KType_NOTE_getInstance() { + KType_initEntries_2(); + return KType_NOTE_instance; + } + function KType_TOPIC_getInstance() { + KType_initEntries_2(); + return KType_TOPIC_instance; + } + function KType_NOTICE_getInstance() { + KType_initEntries_2(); + return KType_NOTICE_instance; + } + function KType_UNRECOGNIZED_getInstance_2() { + KType_initEntries_2(); + return KType_UNRECOGNIZED_instance_2; + } + function _get_$cachedSerializer__te6jhj_174($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KOperationV2$KType$Companion$values$delegate$lambda() { + return listOf_0([KType_UNKNOWN_getInstance_0(), KType_NOTE_getInstance_0(), KType_TOPIC_getInstance_0(), KType_SEARCH_getInstance()]); + } + function KOperationV2$KType$Companion$_anonymous__pp2q6i() { + return $serializer_getInstance_1364(); + } + var KType_UNKNOWN_instance_0; + var KType_NOTE_instance_0; + var KType_TOPIC_instance_0; + var KType_SEARCH_instance; + var KType_UNRECOGNIZED_instance_3; + var Companion_instance_1377; + function Companion_getInstance_1377() { + KType_initEntries_3(); + if (Companion_instance_1377 === VOID) + new Companion_1377(); + return Companion_instance_1377; + } + var $serializer_instance_1364; + function $serializer_getInstance_1364() { + KType_initEntries_3(); + if ($serializer_instance_1364 === VOID) + new $serializer_1364(); + return $serializer_instance_1364; + } + function values_174() { + return [KType_UNKNOWN_getInstance_0(), KType_NOTE_getInstance_0(), KType_TOPIC_getInstance_0(), KType_SEARCH_getInstance(), KType_UNRECOGNIZED_getInstance_3()]; + } + function valueOf_174(value) { + switch (value) { + case 'UNKNOWN': + return KType_UNKNOWN_getInstance_0(); + case 'NOTE': + return KType_NOTE_getInstance_0(); + case 'TOPIC': + return KType_TOPIC_getInstance_0(); + case 'SEARCH': + return KType_SEARCH_getInstance(); + case 'UNRECOGNIZED': + return KType_UNRECOGNIZED_getInstance_3(); + default: + KType_initEntries_3(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KType_entriesInitialized_3; + function KType_initEntries_3() { + if (KType_entriesInitialized_3) + return Unit_instance; + KType_entriesInitialized_3 = true; + KType_UNKNOWN_instance_0 = new KType_4('UNKNOWN', 0, 0); + KType_NOTE_instance_0 = new KType_4('NOTE', 1, 1); + KType_TOPIC_instance_0 = new KType_4('TOPIC', 2, 2); + KType_SEARCH_instance = new KType_4('SEARCH', 3, 4); + KType_UNRECOGNIZED_instance_3 = new KType_4('UNRECOGNIZED', 4, -1); + Companion_getInstance_1377(); + } + function _get_$cachedSerializer__te6jhj_175($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KOperationV2$KIcon$KPosition$Companion$values$delegate$lambda() { + return listOf_0([KPosition_PREFIX_getInstance(), KPosition_SUFFIX_getInstance()]); + } + function KOperationV2$KIcon$KPosition$Companion$_anonymous__3d3x15() { + return $serializer_getInstance_1365(); + } + var KPosition_PREFIX_instance; + var KPosition_SUFFIX_instance; + var KPosition_UNRECOGNIZED_instance; + var Companion_instance_1378; + function Companion_getInstance_1378() { + KPosition_initEntries(); + if (Companion_instance_1378 === VOID) + new Companion_1378(); + return Companion_instance_1378; + } + var $serializer_instance_1365; + function $serializer_getInstance_1365() { + KPosition_initEntries(); + if ($serializer_instance_1365 === VOID) + new $serializer_1365(); + return $serializer_instance_1365; + } + function values_175() { + return [KPosition_PREFIX_getInstance(), KPosition_SUFFIX_getInstance(), KPosition_UNRECOGNIZED_getInstance()]; + } + function valueOf_175(value) { + switch (value) { + case 'PREFIX': + return KPosition_PREFIX_getInstance(); + case 'SUFFIX': + return KPosition_SUFFIX_getInstance(); + case 'UNRECOGNIZED': + return KPosition_UNRECOGNIZED_getInstance(); + default: + KPosition_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KPosition_entriesInitialized; + function KPosition_initEntries() { + if (KPosition_entriesInitialized) + return Unit_instance; + KPosition_entriesInitialized = true; + KPosition_PREFIX_instance = new KPosition('PREFIX', 0, 0); + KPosition_SUFFIX_instance = new KPosition('SUFFIX', 1, 1); + KPosition_UNRECOGNIZED_instance = new KPosition('UNRECOGNIZED', 2, -1); + Companion_getInstance_1378(); + } + var Companion_instance_1379; + function Companion_getInstance_1379() { + return Companion_instance_1379; + } + var $serializer_instance_1366; + function $serializer_getInstance_1366() { + if ($serializer_instance_1366 === VOID) + new $serializer_1366(); + return $serializer_instance_1366; + } + function KPosition_PREFIX_getInstance() { + KPosition_initEntries(); + return KPosition_PREFIX_instance; + } + function KPosition_SUFFIX_getInstance() { + KPosition_initEntries(); + return KPosition_SUFFIX_instance; + } + function KPosition_UNRECOGNIZED_getInstance() { + KPosition_initEntries(); + return KPosition_UNRECOGNIZED_instance; + } + var Companion_instance_1380; + function Companion_getInstance_1380() { + return Companion_instance_1380; + } + var $serializer_instance_1367; + function $serializer_getInstance_1367() { + if ($serializer_instance_1367 === VOID) + new $serializer_1367(); + return $serializer_instance_1367; + } + function KType_UNKNOWN_getInstance_0() { + KType_initEntries_3(); + return KType_UNKNOWN_instance_0; + } + function KType_NOTE_getInstance_0() { + KType_initEntries_3(); + return KType_NOTE_instance_0; + } + function KType_TOPIC_getInstance_0() { + KType_initEntries_3(); + return KType_TOPIC_instance_0; + } + function KType_SEARCH_getInstance() { + KType_initEntries_3(); + return KType_SEARCH_instance; + } + function KType_UNRECOGNIZED_getInstance_3() { + KType_initEntries_3(); + return KType_UNRECOGNIZED_instance_3; + } + var Companion_instance_1381; + function Companion_getInstance_1381() { + return Companion_instance_1381; + } + var $serializer_instance_1368; + function $serializer_getInstance_1368() { + if ($serializer_instance_1368 === VOID) + new $serializer_1368(); + return $serializer_instance_1368; + } + var Companion_instance_1382; + function Companion_getInstance_1382() { + if (Companion_instance_1382 === VOID) + new Companion_1382(); + return Companion_instance_1382; + } + var $serializer_instance_1369; + function $serializer_getInstance_1369() { + if ($serializer_instance_1369 === VOID) + new $serializer_1369(); + return $serializer_instance_1369; + } + var Companion_instance_1383; + function Companion_getInstance_1383() { + return Companion_instance_1383; + } + var $serializer_instance_1370; + function $serializer_getInstance_1370() { + if ($serializer_instance_1370 === VOID) + new $serializer_1370(); + return $serializer_instance_1370; + } + var Companion_instance_1384; + function Companion_getInstance_1384() { + return Companion_instance_1384; + } + var $serializer_instance_1371; + function $serializer_getInstance_1371() { + if ($serializer_instance_1371 === VOID) + new $serializer_1371(); + return $serializer_instance_1371; + } + var Companion_instance_1385; + function Companion_getInstance_1385() { + return Companion_instance_1385; + } + var $serializer_instance_1372; + function $serializer_getInstance_1372() { + if ($serializer_instance_1372 === VOID) + new $serializer_1372(); + return $serializer_instance_1372; + } + function _get_$cachedSerializer__te6jhj_176($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KAtGroup$KType$Companion$values$delegate$lambda() { + return listOf_0([KType_DEFAULT_getInstance(), KType_RECENT_getInstance(), KType_FOLLOW_getInstance(), KType_FANS_getInstance(), KType_OTHERS_getInstance()]); + } + function KAtGroup$KType$Companion$_anonymous__2mgqb1() { + return $serializer_getInstance_1373(); + } + var KType_DEFAULT_instance; + var KType_RECENT_instance; + var KType_FOLLOW_instance; + var KType_FANS_instance; + var KType_OTHERS_instance; + var KType_UNRECOGNIZED_instance_4; + var Companion_instance_1386; + function Companion_getInstance_1386() { + KType_initEntries_4(); + if (Companion_instance_1386 === VOID) + new Companion_1386(); + return Companion_instance_1386; + } + var $serializer_instance_1373; + function $serializer_getInstance_1373() { + KType_initEntries_4(); + if ($serializer_instance_1373 === VOID) + new $serializer_1373(); + return $serializer_instance_1373; + } + function values_176() { + return [KType_DEFAULT_getInstance(), KType_RECENT_getInstance(), KType_FOLLOW_getInstance(), KType_FANS_getInstance(), KType_OTHERS_getInstance(), KType_UNRECOGNIZED_getInstance_4()]; + } + function valueOf_176(value) { + switch (value) { + case 'DEFAULT': + return KType_DEFAULT_getInstance(); + case 'RECENT': + return KType_RECENT_getInstance(); + case 'FOLLOW': + return KType_FOLLOW_getInstance(); + case 'FANS': + return KType_FANS_getInstance(); + case 'OTHERS': + return KType_OTHERS_getInstance(); + case 'UNRECOGNIZED': + return KType_UNRECOGNIZED_getInstance_4(); + default: + KType_initEntries_4(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KType_entriesInitialized_4; + function KType_initEntries_4() { + if (KType_entriesInitialized_4) + return Unit_instance; + KType_entriesInitialized_4 = true; + KType_DEFAULT_instance = new KType_5('DEFAULT', 0, 0); + KType_RECENT_instance = new KType_5('RECENT', 1, 1); + KType_FOLLOW_instance = new KType_5('FOLLOW', 2, 2); + KType_FANS_instance = new KType_5('FANS', 3, 3); + KType_OTHERS_instance = new KType_5('OTHERS', 4, 4); + KType_UNRECOGNIZED_instance_4 = new KType_5('UNRECOGNIZED', 5, -1); + Companion_getInstance_1386(); + } + var Companion_instance_1387; + function Companion_getInstance_1387() { + if (Companion_instance_1387 === VOID) + new Companion_1387(); + return Companion_instance_1387; + } + var $serializer_instance_1374; + function $serializer_getInstance_1374() { + if ($serializer_instance_1374 === VOID) + new $serializer_1374(); + return $serializer_instance_1374; + } + function KType_DEFAULT_getInstance() { + KType_initEntries_4(); + return KType_DEFAULT_instance; + } + function KType_RECENT_getInstance() { + KType_initEntries_4(); + return KType_RECENT_instance; + } + function KType_FOLLOW_getInstance() { + KType_initEntries_4(); + return KType_FOLLOW_instance; + } + function KType_FANS_getInstance() { + KType_initEntries_4(); + return KType_FANS_instance; + } + function KType_OTHERS_getInstance() { + KType_initEntries_4(); + return KType_OTHERS_instance; + } + function KType_UNRECOGNIZED_getInstance_4() { + KType_initEntries_4(); + return KType_UNRECOGNIZED_instance_4; + } + var Companion_instance_1388; + function Companion_getInstance_1388() { + if (Companion_instance_1388 === VOID) + new Companion_1388(); + return Companion_instance_1388; + } + var $serializer_instance_1375; + function $serializer_getInstance_1375() { + if ($serializer_instance_1375 === VOID) + new $serializer_1375(); + return $serializer_instance_1375; + } + function _get_$cachedSerializer__te6jhj_177($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KReplyInfoReq$KReplyInfoScene$Companion$values$delegate$lambda() { + return listOf(KReplyInfoScene_INSERT_getInstance()); + } + function KReplyInfoReq$KReplyInfoScene$Companion$_anonymous__yd88xp() { + return $serializer_getInstance_1376(); + } + var KReplyInfoScene_INSERT_instance; + var KReplyInfoScene_UNRECOGNIZED_instance; + var Companion_instance_1389; + function Companion_getInstance_1389() { + KReplyInfoScene_initEntries(); + if (Companion_instance_1389 === VOID) + new Companion_1389(); + return Companion_instance_1389; + } + var $serializer_instance_1376; + function $serializer_getInstance_1376() { + KReplyInfoScene_initEntries(); + if ($serializer_instance_1376 === VOID) + new $serializer_1376(); + return $serializer_instance_1376; + } + function values_177() { + return [KReplyInfoScene_INSERT_getInstance(), KReplyInfoScene_UNRECOGNIZED_getInstance()]; + } + function valueOf_177(value) { + switch (value) { + case 'INSERT': + return KReplyInfoScene_INSERT_getInstance(); + case 'UNRECOGNIZED': + return KReplyInfoScene_UNRECOGNIZED_getInstance(); + default: + KReplyInfoScene_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KReplyInfoScene_entriesInitialized; + function KReplyInfoScene_initEntries() { + if (KReplyInfoScene_entriesInitialized) + return Unit_instance; + KReplyInfoScene_entriesInitialized = true; + KReplyInfoScene_INSERT_instance = new KReplyInfoScene('INSERT', 0, 0); + KReplyInfoScene_UNRECOGNIZED_instance = new KReplyInfoScene('UNRECOGNIZED', 1, -1); + Companion_getInstance_1389(); + } + var Companion_instance_1390; + function Companion_getInstance_1390() { + return Companion_instance_1390; + } + var $serializer_instance_1377; + function $serializer_getInstance_1377() { + if ($serializer_instance_1377 === VOID) + new $serializer_1377(); + return $serializer_instance_1377; + } + function KReplyInfoScene_INSERT_getInstance() { + KReplyInfoScene_initEntries(); + return KReplyInfoScene_INSERT_instance; + } + function KReplyInfoScene_UNRECOGNIZED_getInstance() { + KReplyInfoScene_initEntries(); + return KReplyInfoScene_UNRECOGNIZED_instance; + } + var Companion_instance_1391; + function Companion_getInstance_1391() { + return Companion_instance_1391; + } + var $serializer_instance_1378; + function $serializer_getInstance_1378() { + if ($serializer_instance_1378 === VOID) + new $serializer_1378(); + return $serializer_instance_1378; + } + var Companion_instance_1392; + function Companion_getInstance_1392() { + if (Companion_instance_1392 === VOID) + new Companion_1392(); + return Companion_instance_1392; + } + var $serializer_instance_1379; + function $serializer_getInstance_1379() { + if ($serializer_instance_1379 === VOID) + new $serializer_1379(); + return $serializer_instance_1379; + } + var Companion_instance_1393; + function Companion_getInstance_1393() { + if (Companion_instance_1393 === VOID) + new Companion_1393(); + return Companion_instance_1393; + } + var $serializer_instance_1380; + function $serializer_getInstance_1380() { + if ($serializer_instance_1380 === VOID) + new $serializer_1380(); + return $serializer_instance_1380; + } + var Companion_instance_1394; + function Companion_getInstance_1394() { + if (Companion_instance_1394 === VOID) + new Companion_1394(); + return Companion_instance_1394; + } + var $serializer_instance_1381; + function $serializer_getInstance_1381() { + if ($serializer_instance_1381 === VOID) + new $serializer_1381(); + return $serializer_instance_1381; + } + var Companion_instance_1395; + function Companion_getInstance_1395() { + if (Companion_instance_1395 === VOID) + new Companion_1395(); + return Companion_instance_1395; + } + var $serializer_instance_1382; + function $serializer_getInstance_1382() { + if ($serializer_instance_1382 === VOID) + new $serializer_1382(); + return $serializer_instance_1382; + } + var Companion_instance_1396; + function Companion_getInstance_1396() { + return Companion_instance_1396; + } + var $serializer_instance_1383; + function $serializer_getInstance_1383() { + if ($serializer_instance_1383 === VOID) + new $serializer_1383(); + return $serializer_instance_1383; + } + var Companion_instance_1397; + function Companion_getInstance_1397() { + if (Companion_instance_1397 === VOID) + new Companion_1397(); + return Companion_instance_1397; + } + var $serializer_instance_1384; + function $serializer_getInstance_1384() { + if ($serializer_instance_1384 === VOID) + new $serializer_1384(); + return $serializer_instance_1384; + } + var Companion_instance_1398; + function Companion_getInstance_1398() { + return Companion_instance_1398; + } + var $serializer_instance_1385; + function $serializer_getInstance_1385() { + if ($serializer_instance_1385 === VOID) + new $serializer_1385(); + return $serializer_instance_1385; + } + var Companion_instance_1399; + function Companion_getInstance_1399() { + if (Companion_instance_1399 === VOID) + new Companion_1399(); + return Companion_instance_1399; + } + var $serializer_instance_1386; + function $serializer_getInstance_1386() { + if ($serializer_instance_1386 === VOID) + new $serializer_1386(); + return $serializer_instance_1386; + } + var Companion_instance_1400; + function Companion_getInstance_1400() { + return Companion_instance_1400; + } + var $serializer_instance_1387; + function $serializer_getInstance_1387() { + if ($serializer_instance_1387 === VOID) + new $serializer_1387(); + return $serializer_instance_1387; + } + var Companion_instance_1401; + function Companion_getInstance_1401() { + if (Companion_instance_1401 === VOID) + new Companion_1401(); + return Companion_instance_1401; + } + var $serializer_instance_1388; + function $serializer_getInstance_1388() { + if ($serializer_instance_1388 === VOID) + new $serializer_1388(); + return $serializer_instance_1388; + } + var Companion_instance_1402; + function Companion_getInstance_1402() { + return Companion_instance_1402; + } + var $serializer_instance_1389; + function $serializer_getInstance_1389() { + if ($serializer_instance_1389 === VOID) + new $serializer_1389(); + return $serializer_instance_1389; + } + var Companion_instance_1403; + function Companion_getInstance_1403() { + return Companion_instance_1403; + } + var $serializer_instance_1390; + function $serializer_getInstance_1390() { + if ($serializer_instance_1390 === VOID) + new $serializer_1390(); + return $serializer_instance_1390; + } + var Companion_instance_1404; + function Companion_getInstance_1404() { + return Companion_instance_1404; + } + var $serializer_instance_1391; + function $serializer_getInstance_1391() { + if ($serializer_instance_1391 === VOID) + new $serializer_1391(); + return $serializer_instance_1391; + } + var Companion_instance_1405; + function Companion_getInstance_1405() { + if (Companion_instance_1405 === VOID) + new Companion_1405(); + return Companion_instance_1405; + } + var $serializer_instance_1392; + function $serializer_getInstance_1392() { + if ($serializer_instance_1392 === VOID) + new $serializer_1392(); + return $serializer_instance_1392; + } + var Companion_instance_1406; + function Companion_getInstance_1406() { + return Companion_instance_1406; + } + var $serializer_instance_1393; + function $serializer_getInstance_1393() { + if ($serializer_instance_1393 === VOID) + new $serializer_1393(); + return $serializer_instance_1393; + } + var Companion_instance_1407; + function Companion_getInstance_1407() { + return Companion_instance_1407; + } + var $serializer_instance_1394; + function $serializer_getInstance_1394() { + if ($serializer_instance_1394 === VOID) + new $serializer_1394(); + return $serializer_instance_1394; + } + var Companion_instance_1408; + function Companion_getInstance_1408() { + return Companion_instance_1408; + } + var $serializer_instance_1395; + function $serializer_getInstance_1395() { + if ($serializer_instance_1395 === VOID) + new $serializer_1395(); + return $serializer_instance_1395; + } + var Companion_instance_1409; + function Companion_getInstance_1409() { + return Companion_instance_1409; + } + var $serializer_instance_1396; + function $serializer_getInstance_1396() { + if ($serializer_instance_1396 === VOID) + new $serializer_1396(); + return $serializer_instance_1396; + } + var Companion_instance_1410; + function Companion_getInstance_1410() { + return Companion_instance_1410; + } + var $serializer_instance_1397; + function $serializer_getInstance_1397() { + if ($serializer_instance_1397 === VOID) + new $serializer_1397(); + return $serializer_instance_1397; + } + var Companion_instance_1411; + function Companion_getInstance_1411() { + return Companion_instance_1411; + } + var $serializer_instance_1398; + function $serializer_getInstance_1398() { + if ($serializer_instance_1398 === VOID) + new $serializer_1398(); + return $serializer_instance_1398; + } + function KShareReplyMaterialResp$KSubjectMaterial$Companion$itemValues$delegate$lambda() { + return listOf_0([KArchiveMaterial_getInstance(), KDynamicMaterial_getInstance(), KArticleMaterial_getInstance()]); + } + function _get_itemNumber__22vn01_10($this) { + var tmp$ret$0; + // Inline function 'kotlin.getValue' call + var this_0 = $this.itemNumber$delegate_1; + var thisRef = $this; + var property = itemNumber$factory_10(); + tmp$ret$0 = this_0.get_value_j01efc_k$(); + return tmp$ret$0; + } + var KArchiveMaterial_instance; + function KArchiveMaterial_getInstance() { + if (KArchiveMaterial_instance === VOID) + new KArchiveMaterial(); + return KArchiveMaterial_instance; + } + var KDynamicMaterial_instance; + function KDynamicMaterial_getInstance() { + if (KDynamicMaterial_instance === VOID) + new KDynamicMaterial(); + return KDynamicMaterial_instance; + } + var KArticleMaterial_instance; + function KArticleMaterial_getInstance() { + if (KArticleMaterial_instance === VOID) + new KArticleMaterial(); + return KArticleMaterial_instance; + } + var Companion_instance_1412; + function Companion_getInstance_1412() { + if (Companion_instance_1412 === VOID) + new Companion_1412(); + return Companion_instance_1412; + } + var $serializer_instance_1399; + function $serializer_getInstance_1399() { + if ($serializer_instance_1399 === VOID) + new $serializer_1399(); + return $serializer_instance_1399; + } + function KShareReplyMaterialResp$KSubjectMaterial$itemNumber$delegate$lambda(this$0) { + return function () { + var tmp; + if (!(this$0.archiveMaterial_1 == null)) { + tmp = 0; + } else if (!(this$0.dynamicMaterial_1 == null)) { + tmp = 1; + } else if (!(this$0.articleMaterial_1 == null)) { + tmp = 2; + } else { + tmp = -1; + } + return tmp; + }; + } + function KShareReplyMaterialResp$KSubjectMaterial$_init_$lambda_ghhii4(this$0) { + return function () { + var tmp; + if (!(this$0.archiveMaterial_1 == null)) { + tmp = 0; + } else if (!(this$0.dynamicMaterial_1 == null)) { + tmp = 1; + } else if (!(this$0.articleMaterial_1 == null)) { + tmp = 2; + } else { + tmp = -1; + } + return tmp; + }; + } + var Companion_instance_1413; + function Companion_getInstance_1413() { + return Companion_instance_1413; + } + var $serializer_instance_1400; + function $serializer_getInstance_1400() { + if ($serializer_instance_1400 === VOID) + new $serializer_1400(); + return $serializer_instance_1400; + } + var Companion_instance_1414; + function Companion_getInstance_1414() { + return Companion_instance_1414; + } + var $serializer_instance_1401; + function $serializer_getInstance_1401() { + if ($serializer_instance_1401 === VOID) + new $serializer_1401(); + return $serializer_instance_1401; + } + function KDetailListScene_REPLY_getInstance() { + KDetailListScene_initEntries(); + return KDetailListScene_REPLY_instance; + } + function KDetailListScene_MSG_FEED_getInstance() { + KDetailListScene_initEntries(); + return KDetailListScene_MSG_FEED_instance; + } + function KDetailListScene_NOTIFY_getInstance() { + KDetailListScene_initEntries(); + return KDetailListScene_NOTIFY_instance; + } + function KDetailListScene_UNRECOGNIZED_getInstance() { + KDetailListScene_initEntries(); + return KDetailListScene_UNRECOGNIZED_instance; + } + function KMode_DEFAULT_getInstance() { + KMode_initEntries(); + return KMode_DEFAULT_instance; + } + function KMode_UNSPECIFIED_getInstance() { + KMode_initEntries(); + return KMode_UNSPECIFIED_instance; + } + function KMode_MAIN_LIST_TIME_getInstance() { + KMode_initEntries(); + return KMode_MAIN_LIST_TIME_instance; + } + function KMode_MAIN_LIST_HOT_getInstance() { + KMode_initEntries(); + return KMode_MAIN_LIST_HOT_instance; + } + function KMode_UNRECOGNIZED_getInstance() { + KMode_initEntries(); + return KMode_UNRECOGNIZED_instance; + } + function KEditorIconState_DEFAULT_getInstance() { + KEditorIconState_initEntries(); + return KEditorIconState_DEFAULT_instance; + } + function KEditorIconState_ENABLE_getInstance() { + KEditorIconState_initEntries(); + return KEditorIconState_ENABLE_instance; + } + function KEditorIconState_DISABLE_getInstance() { + KEditorIconState_initEntries(); + return KEditorIconState_DISABLE_instance; + } + function KEditorIconState_HIDE_getInstance() { + KEditorIconState_initEntries(); + return KEditorIconState_HIDE_instance; + } + function KEditorIconState_UNRECOGNIZED_getInstance() { + KEditorIconState_initEntries(); + return KEditorIconState_UNRECOGNIZED_instance; + } + function KSearchItemType_DEFAULT_ITEM_TYPE_getInstance() { + KSearchItemType_initEntries(); + return KSearchItemType_DEFAULT_ITEM_TYPE_instance; + } + function KSearchItemType_GOODS_getInstance() { + KSearchItemType_initEntries(); + return KSearchItemType_GOODS_instance; + } + function KSearchItemType_VIDEO_getInstance() { + KSearchItemType_initEntries(); + return KSearchItemType_VIDEO_instance; + } + function KSearchItemType_ARTICLE_getInstance() { + KSearchItemType_initEntries(); + return KSearchItemType_ARTICLE_instance; + } + function KSearchItemType_UNRECOGNIZED_getInstance() { + KSearchItemType_initEntries(); + return KSearchItemType_UNRECOGNIZED_instance; + } + function KSearchItemVideoSubType_UGC_getInstance() { + KSearchItemVideoSubType_initEntries(); + return KSearchItemVideoSubType_UGC_instance; + } + function KSearchItemVideoSubType_PGC_getInstance() { + KSearchItemVideoSubType_initEntries(); + return KSearchItemVideoSubType_PGC_instance; + } + function KSearchItemVideoSubType_UNRECOGNIZED_getInstance() { + KSearchItemVideoSubType_initEntries(); + return KSearchItemVideoSubType_UNRECOGNIZED_instance; + } + function KUserCallbackAction_DISMISS_getInstance() { + KUserCallbackAction_initEntries(); + return KUserCallbackAction_DISMISS_instance; + } + function KUserCallbackAction_UNRECOGNIZED_getInstance() { + KUserCallbackAction_initEntries(); + return KUserCallbackAction_UNRECOGNIZED_instance; + } + function KUserCallbackScene_INSERT_getInstance() { + KUserCallbackScene_initEntries(); + return KUserCallbackScene_INSERT_instance; + } + function KUserCallbackScene_RECOMMEND_SUPERB_REPLY_getInstance() { + KUserCallbackScene_initEntries(); + return KUserCallbackScene_RECOMMEND_SUPERB_REPLY_instance; + } + function KUserCallbackScene_UNRECOGNIZED_getInstance() { + KUserCallbackScene_initEntries(); + return KUserCallbackScene_UNRECOGNIZED_instance; + } + function values$factory_155() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_156() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_157() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_158() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_159() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_160() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_161() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_162() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_163() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function itemNumber$factory_8() { + return getPropertyCallableRef('itemNumber', 1, KProperty1, function (receiver) { + return _get_itemNumber__22vn01_8(receiver); + }, null); + } + function itemValues$factory_8() { + return getPropertyCallableRef('itemValues', 1, KProperty1, function (receiver) { + return receiver.itemValues; + }, null); + } + function values$factory_164() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_165() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_166() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_167() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_168() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_169() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_170() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_171() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_172() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function itemNumber$factory_9() { + return getPropertyCallableRef('itemNumber', 1, KProperty1, function (receiver) { + return _get_itemNumber__22vn01_9(receiver); + }, null); + } + function itemValues$factory_9() { + return getPropertyCallableRef('itemValues', 1, KProperty1, function (receiver) { + return receiver.itemValues; + }, null); + } + function videoItemNumber$factory() { + return getPropertyCallableRef('videoItemNumber', 1, KProperty1, function (receiver) { + return _get_videoItemNumber__bwp1k6(receiver); + }, null); + } + function videoItemValues$factory() { + return getPropertyCallableRef('videoItemValues', 1, KProperty1, function (receiver) { + return receiver.videoItemValues; + }, null); + } + function values$factory_173() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_174() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_175() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_176() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_177() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function itemNumber$factory_10() { + return getPropertyCallableRef('itemNumber', 1, KProperty1, function (receiver) { + return _get_itemNumber__22vn01_10(receiver); + }, null); + } + function itemValues$factory_10() { + return getPropertyCallableRef('itemValues', 1, KProperty1, function (receiver) { + return receiver.itemValues; + }, null); + } + function _get_$cachedSerializer__te6jhj_178($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KMode$Companion$values$delegate$lambda_0() { + return listOf_0([KMode_DEFAULT_getInstance_0(), KMode_TIME_getInstance(), KMode_HOT_getInstance()]); + } + function KMode$Companion$_anonymous__er5s9r_0() { + return $serializer_getInstance_1402(); + } + var KMode_DEFAULT_instance_0; + var KMode_TIME_instance; + var KMode_HOT_instance; + var KMode_UNRECOGNIZED_instance_0; + var Companion_instance_1415; + function Companion_getInstance_1415() { + KMode_initEntries_0(); + if (Companion_instance_1415 === VOID) + new Companion_1415(); + return Companion_instance_1415; + } + var $serializer_instance_1402; + function $serializer_getInstance_1402() { + KMode_initEntries_0(); + if ($serializer_instance_1402 === VOID) + new $serializer_1402(); + return $serializer_instance_1402; + } + function values_178() { + return [KMode_DEFAULT_getInstance_0(), KMode_TIME_getInstance(), KMode_HOT_getInstance(), KMode_UNRECOGNIZED_getInstance_0()]; + } + function valueOf_178(value) { + switch (value) { + case 'DEFAULT': + return KMode_DEFAULT_getInstance_0(); + case 'TIME': + return KMode_TIME_getInstance(); + case 'HOT': + return KMode_HOT_getInstance(); + case 'UNRECOGNIZED': + return KMode_UNRECOGNIZED_getInstance_0(); + default: + KMode_initEntries_0(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KMode_entriesInitialized_0; + function KMode_initEntries_0() { + if (KMode_entriesInitialized_0) + return Unit_instance; + KMode_entriesInitialized_0 = true; + KMode_DEFAULT_instance_0 = new KMode_0('DEFAULT', 0, 0); + KMode_TIME_instance = new KMode_0('TIME', 1, 2); + KMode_HOT_instance = new KMode_0('HOT', 2, 3); + KMode_UNRECOGNIZED_instance_0 = new KMode_0('UNRECOGNIZED', 3, -1); + Companion_getInstance_1415(); + } + function _get_$cachedSerializer__te6jhj_179($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KUserCallbackScene$Companion$values$delegate$lambda_0() { + return listOf_0([KUserCallbackScene_DEFAULT_getInstance(), KUserCallbackScene_INSERT_getInstance_0(), KUserCallbackScene_RECOMMEND_SUPERB_REPLY_getInstance_0()]); + } + function KUserCallbackScene$Companion$_anonymous__aiyf5q_0() { + return $serializer_getInstance_1403(); + } + var KUserCallbackScene_DEFAULT_instance; + var KUserCallbackScene_INSERT_instance_0; + var KUserCallbackScene_RECOMMEND_SUPERB_REPLY_instance_0; + var KUserCallbackScene_UNRECOGNIZED_instance_0; + var Companion_instance_1416; + function Companion_getInstance_1416() { + KUserCallbackScene_initEntries_0(); + if (Companion_instance_1416 === VOID) + new Companion_1416(); + return Companion_instance_1416; + } + var $serializer_instance_1403; + function $serializer_getInstance_1403() { + KUserCallbackScene_initEntries_0(); + if ($serializer_instance_1403 === VOID) + new $serializer_1403(); + return $serializer_instance_1403; + } + function values_179() { + return [KUserCallbackScene_DEFAULT_getInstance(), KUserCallbackScene_INSERT_getInstance_0(), KUserCallbackScene_RECOMMEND_SUPERB_REPLY_getInstance_0(), KUserCallbackScene_UNRECOGNIZED_getInstance_0()]; + } + function valueOf_179(value) { + switch (value) { + case 'DEFAULT': + return KUserCallbackScene_DEFAULT_getInstance(); + case 'INSERT': + return KUserCallbackScene_INSERT_getInstance_0(); + case 'RECOMMEND_SUPERB_REPLY': + return KUserCallbackScene_RECOMMEND_SUPERB_REPLY_getInstance_0(); + case 'UNRECOGNIZED': + return KUserCallbackScene_UNRECOGNIZED_getInstance_0(); + default: + KUserCallbackScene_initEntries_0(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KUserCallbackScene_entriesInitialized_0; + function KUserCallbackScene_initEntries_0() { + if (KUserCallbackScene_entriesInitialized_0) + return Unit_instance; + KUserCallbackScene_entriesInitialized_0 = true; + KUserCallbackScene_DEFAULT_instance = new KUserCallbackScene_0('DEFAULT', 0, 0); + KUserCallbackScene_INSERT_instance_0 = new KUserCallbackScene_0('INSERT', 1, 1); + KUserCallbackScene_RECOMMEND_SUPERB_REPLY_instance_0 = new KUserCallbackScene_0('RECOMMEND_SUPERB_REPLY', 2, 2); + KUserCallbackScene_UNRECOGNIZED_instance_0 = new KUserCallbackScene_0('UNRECOGNIZED', 3, -1); + Companion_getInstance_1416(); + } + function _get_$cachedSerializer__te6jhj_180($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KUserCallbackAction$Companion$values$delegate$lambda_0() { + return listOf_0([KUserCallbackAction_DEFAULT_getInstance(), KUserCallbackAction_DISMISS_getInstance_0()]); + } + function KUserCallbackAction$Companion$_anonymous__gbeybi_0() { + return $serializer_getInstance_1404(); + } + var KUserCallbackAction_DEFAULT_instance; + var KUserCallbackAction_DISMISS_instance_0; + var KUserCallbackAction_UNRECOGNIZED_instance_0; + var Companion_instance_1417; + function Companion_getInstance_1417() { + KUserCallbackAction_initEntries_0(); + if (Companion_instance_1417 === VOID) + new Companion_1417(); + return Companion_instance_1417; + } + var $serializer_instance_1404; + function $serializer_getInstance_1404() { + KUserCallbackAction_initEntries_0(); + if ($serializer_instance_1404 === VOID) + new $serializer_1404(); + return $serializer_instance_1404; + } + function values_180() { + return [KUserCallbackAction_DEFAULT_getInstance(), KUserCallbackAction_DISMISS_getInstance_0(), KUserCallbackAction_UNRECOGNIZED_getInstance_0()]; + } + function valueOf_180(value) { + switch (value) { + case 'DEFAULT': + return KUserCallbackAction_DEFAULT_getInstance(); + case 'DISMISS': + return KUserCallbackAction_DISMISS_getInstance_0(); + case 'UNRECOGNIZED': + return KUserCallbackAction_UNRECOGNIZED_getInstance_0(); + default: + KUserCallbackAction_initEntries_0(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KUserCallbackAction_entriesInitialized_0; + function KUserCallbackAction_initEntries_0() { + if (KUserCallbackAction_entriesInitialized_0) + return Unit_instance; + KUserCallbackAction_entriesInitialized_0 = true; + KUserCallbackAction_DEFAULT_instance = new KUserCallbackAction_0('DEFAULT', 0, 0); + KUserCallbackAction_DISMISS_instance_0 = new KUserCallbackAction_0('DISMISS', 1, 1); + KUserCallbackAction_UNRECOGNIZED_instance_0 = new KUserCallbackAction_0('UNRECOGNIZED', 2, -1); + Companion_getInstance_1417(); + } + function _get_$cachedSerializer__te6jhj_181($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KEditorIconState$Companion$values$delegate$lambda_0() { + return listOf_0([KEditorIconState_DEFAULT_getInstance_0(), KEditorIconState_ENABLE_getInstance_0(), KEditorIconState_DISABLE_getInstance_0(), KEditorIconState_HIDE_getInstance_0()]); + } + function KEditorIconState$Companion$_anonymous__jlsurz_0() { + return $serializer_getInstance_1405(); + } + var KEditorIconState_DEFAULT_instance_0; + var KEditorIconState_ENABLE_instance_0; + var KEditorIconState_DISABLE_instance_0; + var KEditorIconState_HIDE_instance_0; + var KEditorIconState_UNRECOGNIZED_instance_0; + var Companion_instance_1418; + function Companion_getInstance_1418() { + KEditorIconState_initEntries_0(); + if (Companion_instance_1418 === VOID) + new Companion_1418(); + return Companion_instance_1418; + } + var $serializer_instance_1405; + function $serializer_getInstance_1405() { + KEditorIconState_initEntries_0(); + if ($serializer_instance_1405 === VOID) + new $serializer_1405(); + return $serializer_instance_1405; + } + function values_181() { + return [KEditorIconState_DEFAULT_getInstance_0(), KEditorIconState_ENABLE_getInstance_0(), KEditorIconState_DISABLE_getInstance_0(), KEditorIconState_HIDE_getInstance_0(), KEditorIconState_UNRECOGNIZED_getInstance_0()]; + } + function valueOf_181(value) { + switch (value) { + case 'DEFAULT': + return KEditorIconState_DEFAULT_getInstance_0(); + case 'ENABLE': + return KEditorIconState_ENABLE_getInstance_0(); + case 'DISABLE': + return KEditorIconState_DISABLE_getInstance_0(); + case 'HIDE': + return KEditorIconState_HIDE_getInstance_0(); + case 'UNRECOGNIZED': + return KEditorIconState_UNRECOGNIZED_getInstance_0(); + default: + KEditorIconState_initEntries_0(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KEditorIconState_entriesInitialized_0; + function KEditorIconState_initEntries_0() { + if (KEditorIconState_entriesInitialized_0) + return Unit_instance; + KEditorIconState_entriesInitialized_0 = true; + KEditorIconState_DEFAULT_instance_0 = new KEditorIconState_0('DEFAULT', 0, 0); + KEditorIconState_ENABLE_instance_0 = new KEditorIconState_0('ENABLE', 1, 1); + KEditorIconState_DISABLE_instance_0 = new KEditorIconState_0('DISABLE', 2, 2); + KEditorIconState_HIDE_instance_0 = new KEditorIconState_0('HIDE', 3, 3); + KEditorIconState_UNRECOGNIZED_instance_0 = new KEditorIconState_0('UNRECOGNIZED', 4, -1); + Companion_getInstance_1418(); + } + var Companion_instance_1419; + function Companion_getInstance_1419() { + return Companion_instance_1419; + } + var $serializer_instance_1406; + function $serializer_getInstance_1406() { + if ($serializer_instance_1406 === VOID) + new $serializer_1406(); + return $serializer_instance_1406; + } + var Companion_instance_1420; + function Companion_getInstance_1420() { + return Companion_instance_1420; + } + var $serializer_instance_1407; + function $serializer_getInstance_1407() { + if ($serializer_instance_1407 === VOID) + new $serializer_1407(); + return $serializer_instance_1407; + } + var Companion_instance_1421; + function Companion_getInstance_1421() { + return Companion_instance_1421; + } + var $serializer_instance_1408; + function $serializer_getInstance_1408() { + if ($serializer_instance_1408 === VOID) + new $serializer_1408(); + return $serializer_instance_1408; + } + var Companion_instance_1422; + function Companion_getInstance_1422() { + if (Companion_instance_1422 === VOID) + new Companion_1422(); + return Companion_instance_1422; + } + var $serializer_instance_1409; + function $serializer_getInstance_1409() { + if ($serializer_instance_1409 === VOID) + new $serializer_1409(); + return $serializer_instance_1409; + } + var Companion_instance_1423; + function Companion_getInstance_1423() { + return Companion_instance_1423; + } + var $serializer_instance_1410; + function $serializer_getInstance_1410() { + if ($serializer_instance_1410 === VOID) + new $serializer_1410(); + return $serializer_instance_1410; + } + var Companion_instance_1424; + function Companion_getInstance_1424() { + if (Companion_instance_1424 === VOID) + new Companion_1424(); + return Companion_instance_1424; + } + var $serializer_instance_1411; + function $serializer_getInstance_1411() { + if ($serializer_instance_1411 === VOID) + new $serializer_1411(); + return $serializer_instance_1411; + } + var Companion_instance_1425; + function Companion_getInstance_1425() { + return Companion_instance_1425; + } + var $serializer_instance_1412; + function $serializer_getInstance_1412() { + if ($serializer_instance_1412 === VOID) + new $serializer_1412(); + return $serializer_instance_1412; + } + var Companion_instance_1426; + function Companion_getInstance_1426() { + if (Companion_instance_1426 === VOID) + new Companion_1426(); + return Companion_instance_1426; + } + var $serializer_instance_1413; + function $serializer_getInstance_1413() { + if ($serializer_instance_1413 === VOID) + new $serializer_1413(); + return $serializer_instance_1413; + } + var Companion_instance_1427; + function Companion_getInstance_1427() { + return Companion_instance_1427; + } + var $serializer_instance_1414; + function $serializer_getInstance_1414() { + if ($serializer_instance_1414 === VOID) + new $serializer_1414(); + return $serializer_instance_1414; + } + var Companion_instance_1428; + function Companion_getInstance_1428() { + return Companion_instance_1428; + } + var $serializer_instance_1415; + function $serializer_getInstance_1415() { + if ($serializer_instance_1415 === VOID) + new $serializer_1415(); + return $serializer_instance_1415; + } + var Companion_instance_1429; + function Companion_getInstance_1429() { + return Companion_instance_1429; + } + var $serializer_instance_1416; + function $serializer_getInstance_1416() { + if ($serializer_instance_1416 === VOID) + new $serializer_1416(); + return $serializer_instance_1416; + } + function _get_$cachedSerializer__te6jhj_182($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KTextStyle$KFontStyle$Companion$values$delegate$lambda_0() { + return listOf_0([KFontStyle_NORMAL_getInstance_0(), KFontStyle_BOLD_getInstance_0()]); + } + function KTextStyle$KFontStyle$Companion$_anonymous__lrx8y5_0() { + return $serializer_getInstance_1417(); + } + var KFontStyle_NORMAL_instance_0; + var KFontStyle_BOLD_instance_0; + var KFontStyle_UNRECOGNIZED_instance_0; + var Companion_instance_1430; + function Companion_getInstance_1430() { + KFontStyle_initEntries_0(); + if (Companion_instance_1430 === VOID) + new Companion_1430(); + return Companion_instance_1430; + } + var $serializer_instance_1417; + function $serializer_getInstance_1417() { + KFontStyle_initEntries_0(); + if ($serializer_instance_1417 === VOID) + new $serializer_1417(); + return $serializer_instance_1417; + } + function values_182() { + return [KFontStyle_NORMAL_getInstance_0(), KFontStyle_BOLD_getInstance_0(), KFontStyle_UNRECOGNIZED_getInstance_0()]; + } + function valueOf_182(value) { + switch (value) { + case 'NORMAL': + return KFontStyle_NORMAL_getInstance_0(); + case 'BOLD': + return KFontStyle_BOLD_getInstance_0(); + case 'UNRECOGNIZED': + return KFontStyle_UNRECOGNIZED_getInstance_0(); + default: + KFontStyle_initEntries_0(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KFontStyle_entriesInitialized_0; + function KFontStyle_initEntries_0() { + if (KFontStyle_entriesInitialized_0) + return Unit_instance; + KFontStyle_entriesInitialized_0 = true; + KFontStyle_NORMAL_instance_0 = new KFontStyle_0('NORMAL', 0, 0); + KFontStyle_BOLD_instance_0 = new KFontStyle_0('BOLD', 1, 1); + KFontStyle_UNRECOGNIZED_instance_0 = new KFontStyle_0('UNRECOGNIZED', 2, -1); + Companion_getInstance_1430(); + } + var Companion_instance_1431; + function Companion_getInstance_1431() { + return Companion_instance_1431; + } + var $serializer_instance_1418; + function $serializer_getInstance_1418() { + if ($serializer_instance_1418 === VOID) + new $serializer_1418(); + return $serializer_instance_1418; + } + function KFontStyle_NORMAL_getInstance_0() { + KFontStyle_initEntries_0(); + return KFontStyle_NORMAL_instance_0; + } + function KFontStyle_BOLD_getInstance_0() { + KFontStyle_initEntries_0(); + return KFontStyle_BOLD_instance_0; + } + function KFontStyle_UNRECOGNIZED_getInstance_0() { + KFontStyle_initEntries_0(); + return KFontStyle_UNRECOGNIZED_instance_0; + } + function _get_$cachedSerializer__te6jhj_183($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KEmptyPage$KAction$Companion$values$delegate$lambda_0() { + return listOf_0([KAction_UNAVAILABLE_getInstance_0(), KAction_SHOW_KEYBOARD_getInstance_0(), KAction_SEND_REPLY_WITH_BOLD_TEXT_getInstance_0()]); + } + function KEmptyPage$KAction$Companion$_anonymous__s0kvzz_0() { + return $serializer_getInstance_1419(); + } + var KAction_UNAVAILABLE_instance_0; + var KAction_SHOW_KEYBOARD_instance_0; + var KAction_SEND_REPLY_WITH_BOLD_TEXT_instance_0; + var KAction_UNRECOGNIZED_instance_0; + var Companion_instance_1432; + function Companion_getInstance_1432() { + KAction_initEntries_0(); + if (Companion_instance_1432 === VOID) + new Companion_1432(); + return Companion_instance_1432; + } + var $serializer_instance_1419; + function $serializer_getInstance_1419() { + KAction_initEntries_0(); + if ($serializer_instance_1419 === VOID) + new $serializer_1419(); + return $serializer_instance_1419; + } + function values_183() { + return [KAction_UNAVAILABLE_getInstance_0(), KAction_SHOW_KEYBOARD_getInstance_0(), KAction_SEND_REPLY_WITH_BOLD_TEXT_getInstance_0(), KAction_UNRECOGNIZED_getInstance_0()]; + } + function valueOf_183(value) { + switch (value) { + case 'UNAVAILABLE': + return KAction_UNAVAILABLE_getInstance_0(); + case 'SHOW_KEYBOARD': + return KAction_SHOW_KEYBOARD_getInstance_0(); + case 'SEND_REPLY_WITH_BOLD_TEXT': + return KAction_SEND_REPLY_WITH_BOLD_TEXT_getInstance_0(); + case 'UNRECOGNIZED': + return KAction_UNRECOGNIZED_getInstance_0(); + default: + KAction_initEntries_0(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KAction_entriesInitialized_0; + function KAction_initEntries_0() { + if (KAction_entriesInitialized_0) + return Unit_instance; + KAction_entriesInitialized_0 = true; + KAction_UNAVAILABLE_instance_0 = new KAction_0('UNAVAILABLE', 0, 0); + KAction_SHOW_KEYBOARD_instance_0 = new KAction_0('SHOW_KEYBOARD', 1, 1); + KAction_SEND_REPLY_WITH_BOLD_TEXT_instance_0 = new KAction_0('SEND_REPLY_WITH_BOLD_TEXT', 2, 2); + KAction_UNRECOGNIZED_instance_0 = new KAction_0('UNRECOGNIZED', 3, -1); + Companion_getInstance_1432(); + } + var Companion_instance_1433; + function Companion_getInstance_1433() { + return Companion_instance_1433; + } + var $serializer_instance_1420; + function $serializer_getInstance_1420() { + if ($serializer_instance_1420 === VOID) + new $serializer_1420(); + return $serializer_instance_1420; + } + var Companion_instance_1434; + function Companion_getInstance_1434() { + return Companion_instance_1434; + } + var $serializer_instance_1421; + function $serializer_getInstance_1421() { + if ($serializer_instance_1421 === VOID) + new $serializer_1421(); + return $serializer_instance_1421; + } + var Companion_instance_1435; + function Companion_getInstance_1435() { + if (Companion_instance_1435 === VOID) + new Companion_1435(); + return Companion_instance_1435; + } + var $serializer_instance_1422; + function $serializer_getInstance_1422() { + if ($serializer_instance_1422 === VOID) + new $serializer_1422(); + return $serializer_instance_1422; + } + function KAction_UNAVAILABLE_getInstance_0() { + KAction_initEntries_0(); + return KAction_UNAVAILABLE_instance_0; + } + function KAction_SHOW_KEYBOARD_getInstance_0() { + KAction_initEntries_0(); + return KAction_SHOW_KEYBOARD_instance_0; + } + function KAction_SEND_REPLY_WITH_BOLD_TEXT_getInstance_0() { + KAction_initEntries_0(); + return KAction_SEND_REPLY_WITH_BOLD_TEXT_instance_0; + } + function KAction_UNRECOGNIZED_getInstance_0() { + KAction_initEntries_0(); + return KAction_UNRECOGNIZED_instance_0; + } + var Companion_instance_1436; + function Companion_getInstance_1436() { + return Companion_instance_1436; + } + var $serializer_instance_1423; + function $serializer_getInstance_1423() { + if ($serializer_instance_1423 === VOID) + new $serializer_1423(); + return $serializer_instance_1423; + } + function _get_$cachedSerializer__te6jhj_184($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KResource$KBizKind$Companion$values$delegate$lambda() { + return listOf_0([KBizKind_UNKNOWN_getInstance(), KBizKind_LIKE_SUCCESS_getInstance(), KBizKind_REPLY_SUCCESS_getInstance(), KBizKind_REPLY_EASTER_EGG_getInstance()]); + } + function KResource$KBizKind$Companion$_anonymous__7sp8rs() { + return $serializer_getInstance_1424(); + } + var KBizKind_UNKNOWN_instance; + var KBizKind_LIKE_SUCCESS_instance; + var KBizKind_REPLY_SUCCESS_instance; + var KBizKind_REPLY_EASTER_EGG_instance; + var KBizKind_UNRECOGNIZED_instance; + var Companion_instance_1437; + function Companion_getInstance_1437() { + KBizKind_initEntries(); + if (Companion_instance_1437 === VOID) + new Companion_1437(); + return Companion_instance_1437; + } + var $serializer_instance_1424; + function $serializer_getInstance_1424() { + KBizKind_initEntries(); + if ($serializer_instance_1424 === VOID) + new $serializer_1424(); + return $serializer_instance_1424; + } + function values_184() { + return [KBizKind_UNKNOWN_getInstance(), KBizKind_LIKE_SUCCESS_getInstance(), KBizKind_REPLY_SUCCESS_getInstance(), KBizKind_REPLY_EASTER_EGG_getInstance(), KBizKind_UNRECOGNIZED_getInstance()]; + } + function valueOf_184(value) { + switch (value) { + case 'UNKNOWN': + return KBizKind_UNKNOWN_getInstance(); + case 'LIKE_SUCCESS': + return KBizKind_LIKE_SUCCESS_getInstance(); + case 'REPLY_SUCCESS': + return KBizKind_REPLY_SUCCESS_getInstance(); + case 'REPLY_EASTER_EGG': + return KBizKind_REPLY_EASTER_EGG_getInstance(); + case 'UNRECOGNIZED': + return KBizKind_UNRECOGNIZED_getInstance(); + default: + KBizKind_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KBizKind_entriesInitialized; + function KBizKind_initEntries() { + if (KBizKind_entriesInitialized) + return Unit_instance; + KBizKind_entriesInitialized = true; + KBizKind_UNKNOWN_instance = new KBizKind('UNKNOWN', 0, 0); + KBizKind_LIKE_SUCCESS_instance = new KBizKind('LIKE_SUCCESS', 1, 1); + KBizKind_REPLY_SUCCESS_instance = new KBizKind('REPLY_SUCCESS', 2, 2); + KBizKind_REPLY_EASTER_EGG_instance = new KBizKind('REPLY_EASTER_EGG', 3, 3); + KBizKind_UNRECOGNIZED_instance = new KBizKind('UNRECOGNIZED', 4, -1); + Companion_getInstance_1437(); + } + var Companion_instance_1438; + function Companion_getInstance_1438() { + return Companion_instance_1438; + } + var $serializer_instance_1425; + function $serializer_getInstance_1425() { + if ($serializer_instance_1425 === VOID) + new $serializer_1425(); + return $serializer_instance_1425; + } + function KBizKind_UNKNOWN_getInstance() { + KBizKind_initEntries(); + return KBizKind_UNKNOWN_instance; + } + function KBizKind_LIKE_SUCCESS_getInstance() { + KBizKind_initEntries(); + return KBizKind_LIKE_SUCCESS_instance; + } + function KBizKind_REPLY_SUCCESS_getInstance() { + KBizKind_initEntries(); + return KBizKind_REPLY_SUCCESS_instance; + } + function KBizKind_REPLY_EASTER_EGG_getInstance() { + KBizKind_initEntries(); + return KBizKind_REPLY_EASTER_EGG_instance; + } + function KBizKind_UNRECOGNIZED_getInstance() { + KBizKind_initEntries(); + return KBizKind_UNRECOGNIZED_instance; + } + function KMode_DEFAULT_getInstance_0() { + KMode_initEntries_0(); + return KMode_DEFAULT_instance_0; + } + function KMode_TIME_getInstance() { + KMode_initEntries_0(); + return KMode_TIME_instance; + } + function KMode_HOT_getInstance() { + KMode_initEntries_0(); + return KMode_HOT_instance; + } + function KMode_UNRECOGNIZED_getInstance_0() { + KMode_initEntries_0(); + return KMode_UNRECOGNIZED_instance_0; + } + function KUserCallbackScene_DEFAULT_getInstance() { + KUserCallbackScene_initEntries_0(); + return KUserCallbackScene_DEFAULT_instance; + } + function KUserCallbackScene_INSERT_getInstance_0() { + KUserCallbackScene_initEntries_0(); + return KUserCallbackScene_INSERT_instance_0; + } + function KUserCallbackScene_RECOMMEND_SUPERB_REPLY_getInstance_0() { + KUserCallbackScene_initEntries_0(); + return KUserCallbackScene_RECOMMEND_SUPERB_REPLY_instance_0; + } + function KUserCallbackScene_UNRECOGNIZED_getInstance_0() { + KUserCallbackScene_initEntries_0(); + return KUserCallbackScene_UNRECOGNIZED_instance_0; + } + function KUserCallbackAction_DEFAULT_getInstance() { + KUserCallbackAction_initEntries_0(); + return KUserCallbackAction_DEFAULT_instance; + } + function KUserCallbackAction_DISMISS_getInstance_0() { + KUserCallbackAction_initEntries_0(); + return KUserCallbackAction_DISMISS_instance_0; + } + function KUserCallbackAction_UNRECOGNIZED_getInstance_0() { + KUserCallbackAction_initEntries_0(); + return KUserCallbackAction_UNRECOGNIZED_instance_0; + } + function KEditorIconState_DEFAULT_getInstance_0() { + KEditorIconState_initEntries_0(); + return KEditorIconState_DEFAULT_instance_0; + } + function KEditorIconState_ENABLE_getInstance_0() { + KEditorIconState_initEntries_0(); + return KEditorIconState_ENABLE_instance_0; + } + function KEditorIconState_DISABLE_getInstance_0() { + KEditorIconState_initEntries_0(); + return KEditorIconState_DISABLE_instance_0; + } + function KEditorIconState_HIDE_getInstance_0() { + KEditorIconState_initEntries_0(); + return KEditorIconState_HIDE_instance_0; + } + function KEditorIconState_UNRECOGNIZED_getInstance_0() { + KEditorIconState_initEntries_0(); + return KEditorIconState_UNRECOGNIZED_instance_0; + } + function values$factory_178() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_179() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_180() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_181() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_182() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_183() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function values$factory_184() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + var Companion_instance_1439; + function Companion_getInstance_1439() { + return Companion_instance_1439; + } + var $serializer_instance_1426; + function $serializer_getInstance_1426() { + if ($serializer_instance_1426 === VOID) + new $serializer_1426(); + return $serializer_instance_1426; + } + var Companion_instance_1440; + function Companion_getInstance_1440() { + return Companion_instance_1440; + } + var $serializer_instance_1427; + function $serializer_getInstance_1427() { + if ($serializer_instance_1427 === VOID) + new $serializer_1427(); + return $serializer_instance_1427; + } + var Companion_instance_1441; + function Companion_getInstance_1441() { + if (Companion_instance_1441 === VOID) + new Companion_1441(); + return Companion_instance_1441; + } + var $serializer_instance_1428; + function $serializer_getInstance_1428() { + if ($serializer_instance_1428 === VOID) + new $serializer_1428(); + return $serializer_instance_1428; + } + var Companion_instance_1442; + function Companion_getInstance_1442() { + if (Companion_instance_1442 === VOID) + new Companion_1442(); + return Companion_instance_1442; + } + var $serializer_instance_1429; + function $serializer_getInstance_1429() { + if ($serializer_instance_1429 === VOID) + new $serializer_1429(); + return $serializer_instance_1429; + } + var Companion_instance_1443; + function Companion_getInstance_1443() { + return Companion_instance_1443; + } + var $serializer_instance_1430; + function $serializer_getInstance_1430() { + if ($serializer_instance_1430 === VOID) + new $serializer_1430(); + return $serializer_instance_1430; + } + var Companion_instance_1444; + function Companion_getInstance_1444() { + return Companion_instance_1444; + } + var $serializer_instance_1431; + function $serializer_getInstance_1431() { + if ($serializer_instance_1431 === VOID) + new $serializer_1431(); + return $serializer_instance_1431; + } + function _get_$cachedSerializer__te6jhj_185($this) { + return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$(); + } + function KPremiereState$Companion$values$delegate$lambda() { + return listOf_0([KPremiereState_PREMIERE_NONE_getInstance(), KPremiereState_PREMIERE_BEFORE_getInstance(), KPremiereState_PREMIERE_IN_getInstance(), KPremiereState_PREMIERE_AFTER_getInstance()]); + } + function KPremiereState$Companion$_anonymous__77hw2m() { + return $serializer_getInstance_1432(); + } + var KPremiereState_PREMIERE_NONE_instance; + var KPremiereState_PREMIERE_BEFORE_instance; + var KPremiereState_PREMIERE_IN_instance; + var KPremiereState_PREMIERE_AFTER_instance; + var KPremiereState_UNRECOGNIZED_instance; + var Companion_instance_1445; + function Companion_getInstance_1445() { + KPremiereState_initEntries(); + if (Companion_instance_1445 === VOID) + new Companion_1445(); + return Companion_instance_1445; + } + var $serializer_instance_1432; + function $serializer_getInstance_1432() { + KPremiereState_initEntries(); + if ($serializer_instance_1432 === VOID) + new $serializer_1432(); + return $serializer_instance_1432; + } + function values_185() { + return [KPremiereState_PREMIERE_NONE_getInstance(), KPremiereState_PREMIERE_BEFORE_getInstance(), KPremiereState_PREMIERE_IN_getInstance(), KPremiereState_PREMIERE_AFTER_getInstance(), KPremiereState_UNRECOGNIZED_getInstance()]; + } + function valueOf_185(value) { + switch (value) { + case 'PREMIERE_NONE': + return KPremiereState_PREMIERE_NONE_getInstance(); + case 'PREMIERE_BEFORE': + return KPremiereState_PREMIERE_BEFORE_getInstance(); + case 'PREMIERE_IN': + return KPremiereState_PREMIERE_IN_getInstance(); + case 'PREMIERE_AFTER': + return KPremiereState_PREMIERE_AFTER_getInstance(); + case 'UNRECOGNIZED': + return KPremiereState_UNRECOGNIZED_getInstance(); + default: + KPremiereState_initEntries(); + THROW_IAE('No enum constant value.'); + break; + } + } + var KPremiereState_entriesInitialized; + function KPremiereState_initEntries() { + if (KPremiereState_entriesInitialized) + return Unit_instance; + KPremiereState_entriesInitialized = true; + KPremiereState_PREMIERE_NONE_instance = new KPremiereState('PREMIERE_NONE', 0, 0); + KPremiereState_PREMIERE_BEFORE_instance = new KPremiereState('PREMIERE_BEFORE', 1, 1); + KPremiereState_PREMIERE_IN_instance = new KPremiereState('PREMIERE_IN', 2, 2); + KPremiereState_PREMIERE_AFTER_instance = new KPremiereState('PREMIERE_AFTER', 3, 3); + KPremiereState_UNRECOGNIZED_instance = new KPremiereState('UNRECOGNIZED', 4, -1); + Companion_getInstance_1445(); + } + var Companion_instance_1446; + function Companion_getInstance_1446() { + if (Companion_instance_1446 === VOID) + new Companion_1446(); + return Companion_instance_1446; + } + var $serializer_instance_1433; + function $serializer_getInstance_1433() { + if ($serializer_instance_1433 === VOID) + new $serializer_1433(); + return $serializer_instance_1433; + } + var Companion_instance_1447; + function Companion_getInstance_1447() { + return Companion_instance_1447; + } + var $serializer_instance_1434; + function $serializer_getInstance_1434() { + if ($serializer_instance_1434 === VOID) + new $serializer_1434(); + return $serializer_instance_1434; + } + var Companion_instance_1448; + function Companion_getInstance_1448() { + return Companion_instance_1448; + } + var $serializer_instance_1435; + function $serializer_getInstance_1435() { + if ($serializer_instance_1435 === VOID) + new $serializer_1435(); + return $serializer_instance_1435; + } + var Companion_instance_1449; + function Companion_getInstance_1449() { + if (Companion_instance_1449 === VOID) + new Companion_1449(); + return Companion_instance_1449; + } + var $serializer_instance_1436; + function $serializer_getInstance_1436() { + if ($serializer_instance_1436 === VOID) + new $serializer_1436(); + return $serializer_instance_1436; + } + var Companion_instance_1450; + function Companion_getInstance_1450() { + return Companion_instance_1450; + } + var $serializer_instance_1437; + function $serializer_getInstance_1437() { + if ($serializer_instance_1437 === VOID) + new $serializer_1437(); + return $serializer_instance_1437; + } + var Companion_instance_1451; + function Companion_getInstance_1451() { + if (Companion_instance_1451 === VOID) + new Companion_1451(); + return Companion_instance_1451; + } + var $serializer_instance_1438; + function $serializer_getInstance_1438() { + if ($serializer_instance_1438 === VOID) + new $serializer_1438(); + return $serializer_instance_1438; + } + var Companion_instance_1452; + function Companion_getInstance_1452() { + return Companion_instance_1452; + } + var $serializer_instance_1439; + function $serializer_getInstance_1439() { + if ($serializer_instance_1439 === VOID) + new $serializer_1439(); + return $serializer_instance_1439; + } + var Companion_instance_1453; + function Companion_getInstance_1453() { + return Companion_instance_1453; + } + var $serializer_instance_1440; + function $serializer_getInstance_1440() { + if ($serializer_instance_1440 === VOID) + new $serializer_1440(); + return $serializer_instance_1440; + } + var Companion_instance_1454; + function Companion_getInstance_1454() { + return Companion_instance_1454; + } + var $serializer_instance_1441; + function $serializer_getInstance_1441() { + if ($serializer_instance_1441 === VOID) + new $serializer_1441(); + return $serializer_instance_1441; + } + var Companion_instance_1455; + function Companion_getInstance_1455() { + return Companion_instance_1455; + } + var $serializer_instance_1442; + function $serializer_getInstance_1442() { + if ($serializer_instance_1442 === VOID) + new $serializer_1442(); + return $serializer_instance_1442; + } + var Companion_instance_1456; + function Companion_getInstance_1456() { + return Companion_instance_1456; + } + var $serializer_instance_1443; + function $serializer_getInstance_1443() { + if ($serializer_instance_1443 === VOID) + new $serializer_1443(); + return $serializer_instance_1443; + } + function KPremiereState_PREMIERE_NONE_getInstance() { + KPremiereState_initEntries(); + return KPremiereState_PREMIERE_NONE_instance; + } + function KPremiereState_PREMIERE_BEFORE_getInstance() { + KPremiereState_initEntries(); + return KPremiereState_PREMIERE_BEFORE_instance; + } + function KPremiereState_PREMIERE_IN_getInstance() { + KPremiereState_initEntries(); + return KPremiereState_PREMIERE_IN_instance; + } + function KPremiereState_PREMIERE_AFTER_getInstance() { + KPremiereState_initEntries(); + return KPremiereState_PREMIERE_AFTER_instance; + } + function KPremiereState_UNRECOGNIZED_getInstance() { + KPremiereState_initEntries(); + return KPremiereState_UNRECOGNIZED_instance; + } + function values$factory_185() { + return getPropertyCallableRef('values', 1, KProperty1, function (receiver) { + return receiver.values; + }, null); + } + function mapToJsMap(map) { + var tmp$ret$0; + // Inline function 'kotlin.collections.toTypedArray' call + var this_0 = map.get_keys_wop4xp_k$(); + tmp$ret$0 = copyToArray(this_0); + var tmp = tmp$ret$0; + var tmp$ret$1; + // Inline function 'kotlin.collections.toTypedArray' call + var this_1 = map.get_values_ksazhn_k$(); + tmp$ret$1 = copyToArray(this_1); + return new JsMap(tmp, tmp$ret$1); + } + function listToArray(list) { + var tmp$ret$0; + // Inline function 'kotlin.collections.toTypedArray' call + var this_0 = list; + tmp$ret$0 = copyToArray(this_0); + return tmp$ret$0; + } + function arrayToList(array) { + return toList(array); + } + function stringToLong(str) { + return toLong(str); + } + function longToString(l) { + return l.toString(); + } + function suggestionResult3ReqToByteArray(instance) { + return Default_getInstance().encodeToByteArray_n90khx_k$(Companion_instance_1249.serializer_9w0wvi_k$(), instance); + } + function suggestionResult3ReplyFromByteArray(bytes) { + return Default_getInstance().decodeFromByteArray_8opj5c_k$(Companion_getInstance_1250().serializer_9w0wvi_k$(), bytes); + } + function defaultWordsReqToByteArray(instance) { + return Default_getInstance().encodeToByteArray_n90khx_k$(Companion_instance_1247.serializer_9w0wvi_k$(), instance); + } + function defaultWordsReplyFromByteArray(bytes) { + return Default_getInstance().decodeFromByteArray_8opj5c_k$(Companion_instance_1248.serializer_9w0wvi_k$(), bytes); + } + function searchAllRequestToByteArray(instance) { + return Default_getInstance().encodeToByteArray_n90khx_k$(Companion_getInstance_489().serializer_9w0wvi_k$(), instance); + } + function searchAllResponseFromByteArray(bytes) { + return Default_getInstance().decodeFromByteArray_8opj5c_k$(Companion_getInstance_496().serializer_9w0wvi_k$(), bytes); + } + function searchByTypeRequestToByteArray(instance) { + return Default_getInstance().encodeToByteArray_n90khx_k$(Companion_instance_491.serializer_9w0wvi_k$(), instance); + } + function searchByTypeResponseFromByteArray(bytes) { + return Default_getInstance().decodeFromByteArray_8opj5c_k$(Companion_getInstance_498().serializer_9w0wvi_k$(), bytes); + } + function playViewUniteReqToByteArray(instance) { + return Default_getInstance().encodeToByteArray_n90khx_k$(Companion_getInstance_163().serializer_9w0wvi_k$(), instance); + } + function playViewUniteReplyFromByteArray(bytes) { + return Default_getInstance().decodeFromByteArray_8opj5c_k$(Companion_instance_164.serializer_9w0wvi_k$(), bytes); + } + function viewReqToByteArray(instance) { + return Default_getInstance().encodeToByteArray_n90khx_k$(Companion_getInstance_427().serializer_9w0wvi_k$(), instance); + } + function viewReplyFromByteArray(bytes) { + return Default_getInstance().decodeFromByteArray_8opj5c_k$(Companion_getInstance_430().serializer_9w0wvi_k$(), bytes); + } + function mainListReqToByteArray(instance) { + return Default_getInstance().encodeToByteArray_n90khx_k$(Companion_getInstance_1294().serializer_9w0wvi_k$(), instance); + } + function mainListReplyFromByteArray(bytes) { + return Default_getInstance().decodeFromByteArray_8opj5c_k$(Companion_getInstance_1299().serializer_9w0wvi_k$(), bytes); + } + function detailListReqToByteArray(instance) { + return Default_getInstance().encodeToByteArray_n90khx_k$(Companion_instance_1290.serializer_9w0wvi_k$(), instance); + } + function detailListReplyFromByteArray(bytes) { + return Default_getInstance().decodeFromByteArray_8opj5c_k$(Companion_instance_1291.serializer_9w0wvi_k$(), bytes); + } + function dialogListReqToByteArray(instance) { + return Default_getInstance().encodeToByteArray_n90khx_k$(Companion_instance_1288.serializer_9w0wvi_k$(), instance); + } + function dialogListReplyFromByteArray(bytes) { + return Default_getInstance().decodeFromByteArray_8opj5c_k$(Companion_getInstance_1289().serializer_9w0wvi_k$(), bytes); + } + function replyInfoReqToByteArray(instance) { + return Default_getInstance().encodeToByteArray_n90khx_k$(Companion_instance_1390.serializer_9w0wvi_k$(), instance); + } + function replyInfoReplyFromByteArray(bytes) { + return Default_getInstance().decodeFromByteArray_8opj5c_k$(Companion_instance_1391.serializer_9w0wvi_k$(), bytes); + } + function suggestEmotesReqToByteArray(instance) { + return Default_getInstance().encodeToByteArray_n90khx_k$(Companion_instance_1404.serializer_9w0wvi_k$(), instance); + } + function suggestEmotesRespFromByteArray(bytes) { + return Default_getInstance().decodeFromByteArray_8opj5c_k$(Companion_getInstance_1405().serializer_9w0wvi_k$(), bytes); + } + function subjectDescriptionReqToByteArray(instance) { + return Default_getInstance().encodeToByteArray_n90khx_k$(Companion_instance_1419.serializer_9w0wvi_k$(), instance); + } + function subjectDescriptionReplyFromByteArray(bytes) { + return Default_getInstance().decodeFromByteArray_8opj5c_k$(Companion_getInstance_1426().serializer_9w0wvi_k$(), bytes); + } + function popularResultReqToByteArray(instance) { + return Default_getInstance().encodeToByteArray_n90khx_k$(Companion_instance_1439.serializer_9w0wvi_k$(), instance); + } + function popularReplyFromByteArray(bytes) { + return Default_getInstance().decodeFromByteArray_8opj5c_k$(Companion_getInstance_1441().serializer_9w0wvi_k$(), bytes); + } + function historyTabReqToByteArray(instance) { + return Default_getInstance().encodeToByteArray_n90khx_k$(Companion_instance_1188.serializer_9w0wvi_k$(), instance); + } + function historyTabReplyFromByteArray(bytes) { + return Default_getInstance().decodeFromByteArray_8opj5c_k$(Companion_getInstance_1189().serializer_9w0wvi_k$(), bytes); + } + function cursorV2ReqToByteArray(instance) { + return Default_getInstance().encodeToByteArray_n90khx_k$(Companion_instance_1192.serializer_9w0wvi_k$(), instance); + } + function cursorV2ReplyFromByteArray(bytes) { + return Default_getInstance().decodeFromByteArray_8opj5c_k$(Companion_getInstance_1193().serializer_9w0wvi_k$(), bytes); + } + function dynAllReqToByteArray(instance) { + return Default_getInstance().encodeToByteArray_n90khx_k$(Companion_instance_759.serializer_9w0wvi_k$(), instance); + } + function dynAllReplyFromByteArray(bytes) { + return Default_getInstance().decodeFromByteArray_8opj5c_k$(Companion_instance_764.serializer_9w0wvi_k$(), bytes); + } + function relatesFeedReqToByteArray(instance) { + return Default_getInstance().encodeToByteArray_n90khx_k$(Companion_instance_418.serializer_9w0wvi_k$(), instance); + } + function relatesFeedReplyFromByteArray(bytes) { + return Default_getInstance().decodeFromByteArray_8opj5c_k$(Companion_getInstance_419().serializer_9w0wvi_k$(), bytes); + } + //region block: post-declaration + setMetadataFor(CharSequence, 'CharSequence', interfaceMeta); + setMetadataFor(Number_0, 'Number', classMeta); + setMetadataFor(Unit, 'Unit', objectMeta); + setMetadataFor(ByteCompanionObject, 'ByteCompanionObject', objectMeta); + setMetadataFor(IntCompanionObject, 'IntCompanionObject', objectMeta); + setMetadataFor(FloatCompanionObject, 'FloatCompanionObject', objectMeta); + setMetadataFor(DoubleCompanionObject, 'DoubleCompanionObject', objectMeta); + setMetadataFor(Collection, 'Collection', interfaceMeta); + setMetadataFor(AbstractCollection, 'AbstractCollection', classMeta, VOID, [Collection]); + setMetadataFor(AbstractMutableCollection, 'AbstractMutableCollection', classMeta, VOID, [AbstractCollection, Collection]); + setMetadataFor(IteratorImpl, 'IteratorImpl', classMeta); + setMetadataFor(List, 'List', interfaceMeta, VOID, [Collection]); + setMetadataFor(AbstractMutableList, 'AbstractMutableList', classMeta, VOID, [AbstractMutableCollection, List, Collection]); + setMetadataFor(Map_0, 'Map', interfaceMeta); + setMetadataFor(AbstractMap, 'AbstractMap', classMeta, VOID, [Map_0]); + setMetadataFor(MutableMap, 'MutableMap', interfaceMeta, VOID, [Map_0]); + setMetadataFor(AbstractMutableMap, 'AbstractMutableMap', classMeta, VOID, [AbstractMap, MutableMap]); + setMetadataFor(Set, 'Set', interfaceMeta, VOID, [Collection]); + setMetadataFor(AbstractMutableSet, 'AbstractMutableSet', classMeta, VOID, [AbstractMutableCollection, Collection, Set]); + setMetadataFor(Companion, 'Companion', objectMeta); + setMetadataFor(ArrayList, 'ArrayList', classMeta, VOID, [AbstractMutableList, List, Collection], ArrayList.new_kotlin_collections_ArrayList_ony0vx_k$); + setMetadataFor(HashMap, 'HashMap', classMeta, VOID, [AbstractMutableMap, MutableMap], HashMap.new_kotlin_collections_HashMap_2a5kxx_k$); + setMetadataFor(HashMapKeys, 'HashMapKeys', classMeta, VOID, [Collection, Set, AbstractMutableSet]); + setMetadataFor(HashMapValues, 'HashMapValues', classMeta, VOID, [Collection, AbstractMutableCollection]); + setMetadataFor(HashMapEntrySetBase, 'HashMapEntrySetBase', classMeta, VOID, [Collection, Set, AbstractMutableSet]); + setMetadataFor(HashMapEntrySet, 'HashMapEntrySet', classMeta); + setMetadataFor(HashMapKeysDefault$iterator$1, VOID, classMeta); + setMetadataFor(HashMapKeysDefault, 'HashMapKeysDefault', classMeta); + setMetadataFor(HashMapValuesDefault$iterator$1, VOID, classMeta); + setMetadataFor(HashMapValuesDefault, 'HashMapValuesDefault', classMeta); + setMetadataFor(HashSet, 'HashSet', classMeta, VOID, [AbstractMutableSet, Collection, Set], HashSet.new_kotlin_collections_HashSet_ovxcsm_k$); + setMetadataFor(Companion_0, 'Companion', objectMeta); + setMetadataFor(Itr, 'Itr', classMeta); + setMetadataFor(KeysItr, 'KeysItr', classMeta); + setMetadataFor(ValuesItr, 'ValuesItr', classMeta); + setMetadataFor(EntriesItr, 'EntriesItr', classMeta); + setMetadataFor(Entry, 'Entry', interfaceMeta); + setMetadataFor(EntryRef, 'EntryRef', classMeta, VOID, [Entry]); + setMetadataFor(InternalMap, 'InternalMap', interfaceMeta); + protoOf(InternalHashMap).containsAllEntries_m9iqdx_k$ = containsAllEntries; + setMetadataFor(InternalHashMap, 'InternalHashMap', classMeta, VOID, [InternalMap], InternalHashMap.new_kotlin_collections_InternalHashMap_iefrky_k$); + setMetadataFor(LinkedHashMap, 'LinkedHashMap', classMeta, VOID, [HashMap, MutableMap], LinkedHashMap.new_kotlin_collections_LinkedHashMap_ga0any_k$); + setMetadataFor(LinkedHashSet, 'LinkedHashSet', classMeta, VOID, [HashSet, Collection, Set], LinkedHashSet.new_kotlin_collections_LinkedHashSet_ahyf7j_k$); + setMetadataFor(KClass, 'KClass', interfaceMeta); + setMetadataFor(KClassImpl, 'KClassImpl', classMeta, VOID, [KClass]); + setMetadataFor(NothingKClassImpl, 'NothingKClassImpl', objectMeta); + setMetadataFor(ErrorKClass, 'ErrorKClass', classMeta, VOID, [KClass], ErrorKClass); + setMetadataFor(PrimitiveKClassImpl, 'PrimitiveKClassImpl', classMeta); + setMetadataFor(SimpleKClassImpl, 'SimpleKClassImpl', classMeta); + setMetadataFor(KProperty1, 'KProperty1', interfaceMeta); + setMetadataFor(PrimitiveClasses, 'PrimitiveClasses', objectMeta); + setMetadataFor(Exception, 'Exception', classMeta, VOID, VOID, Exception.new_kotlin_Exception_f32mds_k$); + setMetadataFor(CharacterCodingException, 'CharacterCodingException', classMeta, VOID, VOID, CharacterCodingException.new_kotlin_text_CharacterCodingException_el5v5_k$); + setMetadataFor(StringBuilder, 'StringBuilder', classMeta, VOID, [CharSequence], StringBuilder.new_kotlin_text_StringBuilder_u46mrb_k$); + setMetadataFor(sam$kotlin_Comparator$0, 'sam$kotlin_Comparator$0', classMeta); + setMetadataFor(Companion_1, 'Companion', objectMeta); + setMetadataFor(Char, 'Char', classMeta); + setMetadataFor(Companion_2, 'Companion', objectMeta); + setMetadataFor(Enum, 'Enum', classMeta); + setMetadataFor(arrayIterator$1, VOID, classMeta); + setMetadataFor(Companion_3, 'Companion', objectMeta); + setMetadataFor(Long, 'Long', classMeta); + setMetadataFor(Digit, 'Digit', objectMeta); + setMetadataFor(RuntimeException, 'RuntimeException', classMeta, VOID, VOID, RuntimeException.new_kotlin_RuntimeException_29f9zq_k$); + setMetadataFor(IllegalArgumentException, 'IllegalArgumentException', classMeta, VOID, VOID, IllegalArgumentException.new_kotlin_IllegalArgumentException_pv5o3f_k$); + setMetadataFor(IndexOutOfBoundsException, 'IndexOutOfBoundsException', classMeta, VOID, VOID, IndexOutOfBoundsException.new_kotlin_IndexOutOfBoundsException_cc7xqw_k$); + setMetadataFor(IllegalStateException, 'IllegalStateException', classMeta, VOID, VOID, IllegalStateException.new_kotlin_IllegalStateException_1wtnp1_k$); + setMetadataFor(UnsupportedOperationException, 'UnsupportedOperationException', classMeta, VOID, VOID, UnsupportedOperationException.new_kotlin_UnsupportedOperationException_cv3bvm_k$); + setMetadataFor(NoSuchElementException, 'NoSuchElementException', classMeta, VOID, VOID, NoSuchElementException.new_kotlin_NoSuchElementException_wy3d4q_k$); + setMetadataFor(ConcurrentModificationException, 'ConcurrentModificationException', classMeta, VOID, VOID, ConcurrentModificationException.new_kotlin_ConcurrentModificationException_fy07nh_k$); + setMetadataFor(NumberFormatException, 'NumberFormatException', classMeta, VOID, VOID, NumberFormatException.new_kotlin_NumberFormatException_rswu7k_k$); + setMetadataFor(ArithmeticException, 'ArithmeticException', classMeta, VOID, VOID, ArithmeticException.new_kotlin_ArithmeticException_t7nj4q_k$); + setMetadataFor(NullPointerException, 'NullPointerException', classMeta, VOID, VOID, NullPointerException.new_kotlin_NullPointerException_q6jd54_k$); + setMetadataFor(NoWhenBranchMatchedException, 'NoWhenBranchMatchedException', classMeta, VOID, VOID, NoWhenBranchMatchedException.new_kotlin_NoWhenBranchMatchedException_9ooqm1_k$); + setMetadataFor(ClassCastException, 'ClassCastException', classMeta, VOID, VOID, ClassCastException.new_kotlin_ClassCastException_zhuhe1_k$); + setMetadataFor(UninitializedPropertyAccessException, 'UninitializedPropertyAccessException', classMeta, VOID, VOID, UninitializedPropertyAccessException.new_kotlin_UninitializedPropertyAccessException_l975ei_k$); + setMetadataFor(Companion_4, 'Companion', objectMeta); + setMetadataFor(AbstractMap$keys$1$iterator$1, VOID, classMeta); + setMetadataFor(AbstractMap$values$1$iterator$1, VOID, classMeta); + setMetadataFor(Companion_5, 'Companion', objectMeta); + setMetadataFor(AbstractSet, 'AbstractSet', classMeta, VOID, [AbstractCollection, Set]); + setMetadataFor(AbstractMap$keys$1, VOID, classMeta); + setMetadataFor(AbstractMap$values$1, VOID, classMeta); + setMetadataFor(Companion_6, 'Companion', objectMeta); + setMetadataFor(EmptyList, 'EmptyList', objectMeta, VOID, [List]); + setMetadataFor(ArrayAsCollection, 'ArrayAsCollection', classMeta, VOID, [Collection]); + setMetadataFor(EmptyIterator, 'EmptyIterator', objectMeta); + setMetadataFor(IndexedValue, 'IndexedValue', classMeta); + setMetadataFor(IndexingIterable, 'IndexingIterable', classMeta); + setMetadataFor(IndexingIterator, 'IndexingIterator', classMeta); + setMetadataFor(MapWithDefault, 'MapWithDefault', interfaceMeta, VOID, [Map_0]); + setMetadataFor(EmptyMap, 'EmptyMap', objectMeta, VOID, [Map_0]); + setMetadataFor(IntIterator, 'IntIterator', classMeta); + setMetadataFor(EmptySet, 'EmptySet', objectMeta, VOID, [Set]); + setMetadataFor(Companion_7, 'Companion', objectMeta); + setMetadataFor(IntProgression, 'IntProgression', classMeta); + setMetadataFor(IntRange, 'IntRange', classMeta); + setMetadataFor(IntProgressionIterator, 'IntProgressionIterator', classMeta); + setMetadataFor(Companion_8, 'Companion', objectMeta); + setMetadataFor(LazyThreadSafetyMode, 'LazyThreadSafetyMode', classMeta); + setMetadataFor(UnsafeLazyImpl, 'UnsafeLazyImpl', classMeta); + setMetadataFor(UNINITIALIZED_VALUE, 'UNINITIALIZED_VALUE', objectMeta); + setMetadataFor(Pair, 'Pair', classMeta); + setMetadataFor(SerializationStrategy, 'SerializationStrategy', interfaceMeta); + setMetadataFor(DeserializationStrategy, 'DeserializationStrategy', interfaceMeta); + setMetadataFor(KSerializer, 'KSerializer', interfaceMeta, VOID, [SerializationStrategy, DeserializationStrategy]); + setMetadataFor(SerializationException, 'SerializationException', classMeta, VOID, VOID, SerializationException.new_kotlinx_serialization_SerializationException_ux6c97_k$); + setMetadataFor(UnknownFieldException, 'UnknownFieldException', classMeta); + setMetadataFor(MissingFieldException, 'MissingFieldException', classMeta); + setMetadataFor(SerialDescriptor, 'SerialDescriptor', interfaceMeta); + setMetadataFor(elementDescriptors$1$1, VOID, classMeta); + setMetadataFor(_no_name_provided__qut3iv, VOID, classMeta); + setMetadataFor(elementNames$1$1, VOID, classMeta); + setMetadataFor(_no_name_provided__qut3iv_0, VOID, classMeta); + setMetadataFor(ClassSerialDescriptorBuilder, 'ClassSerialDescriptorBuilder', classMeta); + setMetadataFor(CachedNames, 'CachedNames', interfaceMeta); + protoOf(SerialDescriptorImpl).get_isNullable_67sy7o_k$ = get_isNullable; + setMetadataFor(SerialDescriptorImpl, 'SerialDescriptorImpl', classMeta, VOID, [SerialDescriptor, CachedNames]); + setMetadataFor(SerialKind, 'SerialKind', classMeta); + setMetadataFor(ENUM, 'ENUM', objectMeta); + setMetadataFor(PrimitiveKind, 'PrimitiveKind', classMeta); + setMetadataFor(BOOLEAN, 'BOOLEAN', objectMeta); + setMetadataFor(BYTE, 'BYTE', objectMeta); + setMetadataFor(INT, 'INT', objectMeta); + setMetadataFor(LONG, 'LONG', objectMeta); + setMetadataFor(FLOAT, 'FLOAT', objectMeta); + setMetadataFor(DOUBLE, 'DOUBLE', objectMeta); + setMetadataFor(STRING, 'STRING', objectMeta); + setMetadataFor(StructureKind, 'StructureKind', classMeta); + setMetadataFor(CLASS, 'CLASS', objectMeta); + setMetadataFor(LIST, 'LIST', objectMeta); + setMetadataFor(MAP, 'MAP', objectMeta); + setMetadataFor(OBJECT, 'OBJECT', objectMeta); + setMetadataFor(PolymorphicKind, 'PolymorphicKind', classMeta); + setMetadataFor(Decoder, 'Decoder', interfaceMeta); + setMetadataFor(Companion_9, 'Companion', objectMeta); + setMetadataFor(CompositeDecoder, 'CompositeDecoder', interfaceMeta); + setMetadataFor(Encoder, 'Encoder', interfaceMeta); + setMetadataFor(CompositeEncoder, 'CompositeEncoder', interfaceMeta); + protoOf(ListLikeDescriptor).get_isNullable_67sy7o_k$ = get_isNullable; + setMetadataFor(ListLikeDescriptor, 'ListLikeDescriptor', classMeta, VOID, [SerialDescriptor]); + setMetadataFor(ArrayListClassDesc, 'ArrayListClassDesc', classMeta); + setMetadataFor(LinkedHashSetClassDesc, 'LinkedHashSetClassDesc', classMeta); + protoOf(MapLikeDescriptor).get_isNullable_67sy7o_k$ = get_isNullable; + setMetadataFor(MapLikeDescriptor, 'MapLikeDescriptor', classMeta, VOID, [SerialDescriptor]); + setMetadataFor(LinkedHashMapClassDesc, 'LinkedHashMapClassDesc', classMeta); + setMetadataFor(PrimitiveArrayDescriptor, 'PrimitiveArrayDescriptor', classMeta); + setMetadataFor(AbstractCollectionSerializer, 'AbstractCollectionSerializer', classMeta, VOID, [KSerializer]); + setMetadataFor(CollectionLikeSerializer, 'CollectionLikeSerializer', classMeta); + setMetadataFor(CollectionSerializer, 'CollectionSerializer', classMeta); + setMetadataFor(ArrayListSerializer, 'ArrayListSerializer', classMeta); + setMetadataFor(LinkedHashSetSerializer, 'LinkedHashSetSerializer', classMeta); + setMetadataFor(MapLikeSerializer, 'MapLikeSerializer', classMeta); + setMetadataFor(LinkedHashMapSerializer, 'LinkedHashMapSerializer', classMeta); + setMetadataFor(PrimitiveArraySerializer, 'PrimitiveArraySerializer', classMeta); + setMetadataFor(PrimitiveArrayBuilder, 'PrimitiveArrayBuilder', classMeta); + setMetadataFor(Companion_10, 'Companion', objectMeta); + setMetadataFor(ElementMarker, 'ElementMarker', classMeta); + protoOf(PluginGeneratedSerialDescriptor).get_isNullable_67sy7o_k$ = get_isNullable; + setMetadataFor(PluginGeneratedSerialDescriptor, 'PluginGeneratedSerialDescriptor', classMeta, VOID, [SerialDescriptor, CachedNames]); + setMetadataFor(EnumDescriptor, 'EnumDescriptor', classMeta); + setMetadataFor(NullableSerializer, 'NullableSerializer', classMeta, VOID, [KSerializer]); + setMetadataFor(SerialDescriptorForNullable, 'SerialDescriptorForNullable', classMeta, VOID, [SerialDescriptor, CachedNames]); + setMetadataFor(GeneratedSerializer, 'GeneratedSerializer', interfaceMeta, VOID, [KSerializer]); + setMetadataFor(ByteArraySerializer, 'ByteArraySerializer', objectMeta, VOID, [KSerializer, PrimitiveArraySerializer]); + setMetadataFor(ByteArrayBuilder, 'ByteArrayBuilder', classMeta); + setMetadataFor(StringSerializer, 'StringSerializer', objectMeta, VOID, [KSerializer]); + setMetadataFor(DoubleSerializer, 'DoubleSerializer', objectMeta, VOID, [KSerializer]); + setMetadataFor(FloatSerializer, 'FloatSerializer', objectMeta, VOID, [KSerializer]); + setMetadataFor(LongSerializer, 'LongSerializer', objectMeta, VOID, [KSerializer]); + setMetadataFor(IntSerializer, 'IntSerializer', objectMeta, VOID, [KSerializer]); + setMetadataFor(ByteSerializer, 'ByteSerializer', objectMeta, VOID, [KSerializer]); + setMetadataFor(BooleanSerializer, 'BooleanSerializer', objectMeta, VOID, [KSerializer]); + protoOf(PrimitiveSerialDescriptor).get_isNullable_67sy7o_k$ = get_isNullable; + setMetadataFor(PrimitiveSerialDescriptor, 'PrimitiveSerialDescriptor', classMeta, VOID, [SerialDescriptor]); + setMetadataFor(MapEntry, 'MapEntry', classMeta, VOID, [Entry]); + setMetadataFor(KeyValueSerializer, 'KeyValueSerializer', classMeta, VOID, [KSerializer]); + setMetadataFor(MapEntrySerializer, 'MapEntrySerializer', classMeta); + setMetadataFor(SerializersModule, 'SerializersModule', classMeta); + setMetadataFor(SerialModuleImpl, 'SerialModuleImpl', classMeta); + setMetadataFor(SerializableWith, 'SerializableWith', classMeta, VOID, VOID, VOID, 0); + setMetadataFor(ProtoBuf, 'ProtoBuf', classMeta); + setMetadataFor(Default, 'Default', objectMeta); + setMetadataFor(ProtoNumber, 'ProtoNumber', classMeta); + setMetadataFor(ProtoPacked, 'ProtoPacked', classMeta); + setMetadataFor(ProtoIntegerType, 'ProtoIntegerType', classMeta); + setMetadataFor(ProtoType, 'ProtoType', classMeta); + setMetadataFor(ProtobufDecodingException, 'ProtobufDecodingException', classMeta); + setMetadataFor(ProtobufTaggedBase, 'ProtobufTaggedBase', classMeta); + protoOf(ProtobufTaggedDecoder).decodeSerializableElement$default_j0zaoi_k$ = decodeSerializableElement$default; + protoOf(ProtobufTaggedDecoder).decodeSerializableValue_xpnpad_k$ = decodeSerializableValue; + protoOf(ProtobufTaggedDecoder).decodeSequentially_xlblqy_k$ = decodeSequentially; + protoOf(ProtobufTaggedDecoder).decodeCollectionSize_l3mlkk_k$ = decodeCollectionSize; + setMetadataFor(ProtobufTaggedDecoder, 'ProtobufTaggedDecoder', classMeta, VOID, [ProtobufTaggedBase, Decoder, CompositeDecoder]); + setMetadataFor(ProtobufDecoder, 'ProtobufDecoder', classMeta); + setMetadataFor(PackedArrayDecoder, 'PackedArrayDecoder', classMeta); + protoOf(ProtobufTaggedEncoder).encodeNotNullMark_415a1t_k$ = encodeNotNullMark; + protoOf(ProtobufTaggedEncoder).beginCollection_9edss2_k$ = beginCollection; + protoOf(ProtobufTaggedEncoder).encodeSerializableValue_3uuzip_k$ = encodeSerializableValue; + protoOf(ProtobufTaggedEncoder).encodeNullableSerializableValue_ibrab1_k$ = encodeNullableSerializableValue; + protoOf(ProtobufTaggedEncoder).shouldEncodeElementDefault_x8eyid_k$ = shouldEncodeElementDefault; + setMetadataFor(ProtobufTaggedEncoder, 'ProtobufTaggedEncoder', classMeta, VOID, [ProtobufTaggedBase, Encoder, CompositeEncoder]); + setMetadataFor(ProtobufEncoder, 'ProtobufEncoder', classMeta); + setMetadataFor(NestedRepeatedEncoder, 'NestedRepeatedEncoder', classMeta); + setMetadataFor(PackedArrayEncoder, 'PackedArrayEncoder', classMeta); + setMetadataFor(RepeatedDecoder, 'RepeatedDecoder', classMeta); + setMetadataFor(MapEntryReader, 'MapEntryReader', classMeta); + setMetadataFor(RepeatedEncoder, 'RepeatedEncoder', classMeta); + setMetadataFor(ObjectEncoder, 'ObjectEncoder', classMeta); + setMetadataFor(MapRepeatedEncoder, 'MapRepeatedEncoder', classMeta); + setMetadataFor(ProtobufReader, 'ProtobufReader', classMeta); + setMetadataFor(NullableMode, 'NullableMode', classMeta); + setMetadataFor(ProtobufWriter, 'ProtobufWriter', classMeta); + setMetadataFor(Companion_11, 'Companion', objectMeta); + setMetadataFor(ByteArrayOutput, 'ByteArrayOutput', classMeta, VOID, VOID, ByteArrayOutput); + setMetadataFor(ByteArrayInput, 'ByteArrayInput', classMeta); + setMetadataFor(IPlatformNeuron, 'IPlatformNeuron', interfaceMeta); + protoOf(KNeuron).reportClick$default_gb8z29_k$ = reportClick$default; + protoOf(KNeuron).reportExposure$default_vqt2rc_k$ = reportExposure$default; + setMetadataFor(KNeuron, 'KNeuron', objectMeta, VOID, [IPlatformNeuron]); + setMetadataFor(Companion_12, 'Companion', objectMeta); + protoOf($serializer).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KAny, 'KAny', classMeta, VOID, VOID, KAny, VOID, {0: $serializer_getInstance}); + setMetadataFor(Companion_13, 'Companion', objectMeta); + protoOf($serializer_0).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_0, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KApi, 'KApi', classMeta, VOID, VOID, KApi, VOID, {0: $serializer_getInstance_0}); + setMetadataFor(Companion_14, 'Companion', objectMeta); + protoOf($serializer_1).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KMethod, 'KMethod', classMeta, VOID, VOID, KMethod, VOID, {0: $serializer_getInstance_1}); + setMetadataFor(Companion_15, 'Companion', objectMeta); + protoOf($serializer_2).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_2, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KMixin, 'KMixin', classMeta, VOID, VOID, KMixin, VOID, {0: $serializer_getInstance_2}); + setMetadataFor(Companion_16, 'Companion', objectMeta); + protoOf($serializer_3).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_3, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KVersion, 'KVersion', classMeta, VOID, VOID, KVersion, VOID, {0: $serializer_getInstance_3}); + setMetadataFor(Companion_17, 'Companion', objectMeta); + protoOf($serializer_4).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_4, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCodeGeneratorRequest, 'KCodeGeneratorRequest', classMeta, VOID, VOID, KCodeGeneratorRequest, VOID, {0: $serializer_getInstance_4}); + setMetadataFor(Companion_18, 'Companion', objectMeta); + protoOf($serializer_5).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_5, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(Companion_19, 'Companion', objectMeta); + protoOf($serializer_6).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_6, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KFeature, 'KFeature', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_18}); + setMetadataFor(KFile, 'KFile', classMeta, VOID, VOID, KFile, VOID, {0: $serializer_getInstance_6}); + setMetadataFor(Companion_20, 'Companion', objectMeta); + protoOf($serializer_7).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_7, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCodeGeneratorResponse, 'KCodeGeneratorResponse', classMeta, VOID, VOID, KCodeGeneratorResponse, VOID, {0: $serializer_getInstance_7}); + setMetadataFor(Companion_21, 'Companion', objectMeta); + protoOf($serializer_8).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_8, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KFileDescriptorSet, 'KFileDescriptorSet', classMeta, VOID, VOID, KFileDescriptorSet, VOID, {0: $serializer_getInstance_8}); + setMetadataFor(Companion_22, 'Companion', objectMeta); + protoOf($serializer_9).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_9, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KFileDescriptorProto, 'KFileDescriptorProto', classMeta, VOID, VOID, KFileDescriptorProto, VOID, {0: $serializer_getInstance_9}); + setMetadataFor(Companion_23, 'Companion', objectMeta); + protoOf($serializer_10).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_10, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(Companion_24, 'Companion', objectMeta); + protoOf($serializer_11).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_11, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KExtensionRange, 'KExtensionRange', classMeta, VOID, VOID, KExtensionRange, VOID, {0: $serializer_getInstance_10}); + setMetadataFor(KReservedRange, 'KReservedRange', classMeta, VOID, VOID, KReservedRange, VOID, {0: $serializer_getInstance_11}); + setMetadataFor(Companion_25, 'Companion', objectMeta); + protoOf($serializer_12).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_12, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KDescriptorProto, 'KDescriptorProto', classMeta, VOID, VOID, KDescriptorProto, VOID, {0: $serializer_getInstance_12}); + setMetadataFor(Companion_26, 'Companion', objectMeta); + protoOf($serializer_13).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_13, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KExtensionRangeOptions, 'KExtensionRangeOptions', classMeta, VOID, VOID, KExtensionRangeOptions, VOID, {0: $serializer_getInstance_13}); + setMetadataFor(Companion_27, 'Companion', objectMeta); + protoOf($serializer_14).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_14, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(Companion_28, 'Companion', objectMeta); + protoOf($serializer_15).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_15, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KType, 'KType', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_27}); + setMetadataFor(KLabel, 'KLabel', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_28}); + setMetadataFor(Companion_29, 'Companion', objectMeta); + protoOf($serializer_16).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_16, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KFieldDescriptorProto, 'KFieldDescriptorProto', classMeta, VOID, VOID, KFieldDescriptorProto, VOID, {0: $serializer_getInstance_16}); + setMetadataFor(Companion_30, 'Companion', objectMeta); + protoOf($serializer_17).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_17, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KOneofDescriptorProto, 'KOneofDescriptorProto', classMeta, VOID, VOID, KOneofDescriptorProto, VOID, {0: $serializer_getInstance_17}); + setMetadataFor(Companion_31, 'Companion', objectMeta); + protoOf($serializer_18).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_18, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KEnumReservedRange, 'KEnumReservedRange', classMeta, VOID, VOID, KEnumReservedRange, VOID, {0: $serializer_getInstance_18}); + setMetadataFor(Companion_32, 'Companion', objectMeta); + protoOf($serializer_19).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_19, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KEnumDescriptorProto, 'KEnumDescriptorProto', classMeta, VOID, VOID, KEnumDescriptorProto, VOID, {0: $serializer_getInstance_19}); + setMetadataFor(Companion_33, 'Companion', objectMeta); + protoOf($serializer_20).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_20, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KEnumValueDescriptorProto, 'KEnumValueDescriptorProto', classMeta, VOID, VOID, KEnumValueDescriptorProto, VOID, {0: $serializer_getInstance_20}); + setMetadataFor(Companion_34, 'Companion', objectMeta); + protoOf($serializer_21).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_21, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KServiceDescriptorProto, 'KServiceDescriptorProto', classMeta, VOID, VOID, KServiceDescriptorProto, VOID, {0: $serializer_getInstance_21}); + setMetadataFor(Companion_35, 'Companion', objectMeta); + protoOf($serializer_22).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_22, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KMethodDescriptorProto, 'KMethodDescriptorProto', classMeta, VOID, VOID, KMethodDescriptorProto, VOID, {0: $serializer_getInstance_22}); + setMetadataFor(Companion_36, 'Companion', objectMeta); + protoOf($serializer_23).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_23, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KOptimizeMode, 'KOptimizeMode', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_36}); + setMetadataFor(Companion_37, 'Companion', objectMeta); + protoOf($serializer_24).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_24, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KFileOptions, 'KFileOptions', classMeta, VOID, VOID, KFileOptions, VOID, {0: $serializer_getInstance_24}); + setMetadataFor(Companion_38, 'Companion', objectMeta); + protoOf($serializer_25).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_25, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KMessageOptions, 'KMessageOptions', classMeta, VOID, VOID, KMessageOptions, VOID, {0: $serializer_getInstance_25}); + setMetadataFor(Companion_39, 'Companion', objectMeta); + protoOf($serializer_26).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_26, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(Companion_40, 'Companion', objectMeta); + protoOf($serializer_27).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_27, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCType, 'KCType', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_39}); + setMetadataFor(KJSType, 'KJSType', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_40}); + setMetadataFor(Companion_41, 'Companion', objectMeta); + protoOf($serializer_28).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_28, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KFieldOptions, 'KFieldOptions', classMeta, VOID, VOID, KFieldOptions, VOID, {0: $serializer_getInstance_28}); + setMetadataFor(Companion_42, 'Companion', objectMeta); + protoOf($serializer_29).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_29, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KOneofOptions, 'KOneofOptions', classMeta, VOID, VOID, KOneofOptions, VOID, {0: $serializer_getInstance_29}); + setMetadataFor(Companion_43, 'Companion', objectMeta); + protoOf($serializer_30).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_30, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KEnumOptions, 'KEnumOptions', classMeta, VOID, VOID, KEnumOptions, VOID, {0: $serializer_getInstance_30}); + setMetadataFor(Companion_44, 'Companion', objectMeta); + protoOf($serializer_31).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_31, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KEnumValueOptions, 'KEnumValueOptions', classMeta, VOID, VOID, KEnumValueOptions, VOID, {0: $serializer_getInstance_31}); + setMetadataFor(Companion_45, 'Companion', objectMeta); + protoOf($serializer_32).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_32, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KServiceOptions, 'KServiceOptions', classMeta, VOID, VOID, KServiceOptions, VOID, {0: $serializer_getInstance_32}); + setMetadataFor(Companion_46, 'Companion', objectMeta); + protoOf($serializer_33).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_33, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KIdempotencyLevel, 'KIdempotencyLevel', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_46}); + setMetadataFor(Companion_47, 'Companion', objectMeta); + protoOf($serializer_34).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_34, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KMethodOptions, 'KMethodOptions', classMeta, VOID, VOID, KMethodOptions, VOID, {0: $serializer_getInstance_34}); + setMetadataFor(Companion_48, 'Companion', objectMeta); + protoOf($serializer_35).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_35, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KNamePart, 'KNamePart', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_35}); + setMetadataFor(Companion_49, 'Companion', objectMeta); + protoOf($serializer_36).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_36, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KUninterpretedOption, 'KUninterpretedOption', classMeta, VOID, VOID, KUninterpretedOption, VOID, {0: $serializer_getInstance_36}); + setMetadataFor(Companion_50, 'Companion', objectMeta); + protoOf($serializer_37).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_37, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KLocation, 'KLocation', classMeta, VOID, VOID, KLocation, VOID, {0: $serializer_getInstance_37}); + setMetadataFor(Companion_51, 'Companion', objectMeta); + protoOf($serializer_38).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_38, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSourceCodeInfo, 'KSourceCodeInfo', classMeta, VOID, VOID, KSourceCodeInfo, VOID, {0: $serializer_getInstance_38}); + setMetadataFor(Companion_52, 'Companion', objectMeta); + protoOf($serializer_39).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_39, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KAnnotation, 'KAnnotation', classMeta, VOID, VOID, KAnnotation, VOID, {0: $serializer_getInstance_39}); + setMetadataFor(Companion_53, 'Companion', objectMeta); + protoOf($serializer_40).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_40, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KGeneratedCodeInfo, 'KGeneratedCodeInfo', classMeta, VOID, VOID, KGeneratedCodeInfo, VOID, {0: $serializer_getInstance_40}); + setMetadataFor(Companion_54, 'Companion', objectMeta); + protoOf($serializer_41).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_41, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KDuration, 'KDuration', classMeta, VOID, VOID, KDuration, VOID, {0: $serializer_getInstance_41}); + setMetadataFor(Companion_55, 'Companion', objectMeta); + protoOf($serializer_42).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_42, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KEmpty, 'KEmpty', classMeta, VOID, VOID, KEmpty, VOID, {0: $serializer_getInstance_42}); + setMetadataFor(Companion_56, 'Companion', objectMeta); + protoOf($serializer_43).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_43, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KFieldMask, 'KFieldMask', classMeta, VOID, VOID, KFieldMask, VOID, {0: $serializer_getInstance_43}); + setMetadataFor(Companion_57, 'Companion', objectMeta); + protoOf($serializer_44).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_44, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSourceContext, 'KSourceContext', classMeta, VOID, VOID, KSourceContext, VOID, {0: $serializer_getInstance_44}); + setMetadataFor(Companion_58, 'Companion', objectMeta); + protoOf($serializer_45).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_45, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KNullValue, 'KNullValue', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_58}); + setMetadataFor(Companion_59, 'Companion', objectMeta); + protoOf($serializer_46).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_46, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KFieldsEntry, 'KFieldsEntry', classMeta, VOID, VOID, KFieldsEntry, VOID, {0: $serializer_getInstance_46}); + setMetadataFor(Companion_60, 'Companion', objectMeta); + protoOf($serializer_47).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_47, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KStruct, 'KStruct', classMeta, VOID, VOID, KStruct, VOID, {0: $serializer_getInstance_47}); + setMetadataFor(KKind, 'KKind', classMeta); + setMetadataFor(KNullValue_0, 'KNullValue', objectMeta); + setMetadataFor(KNumberValue, 'KNumberValue', objectMeta); + setMetadataFor(KStringValue, 'KStringValue', objectMeta); + setMetadataFor(KBoolValue, 'KBoolValue', objectMeta); + setMetadataFor(KStructValue, 'KStructValue', objectMeta); + setMetadataFor(KListValue, 'KListValue', objectMeta); + setMetadataFor(Companion_61, 'Companion', objectMeta); + protoOf($serializer_48).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_48, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KValue, 'KValue', classMeta, VOID, VOID, KValue, VOID, {0: $serializer_getInstance_48}); + setMetadataFor(Companion_62, 'Companion', objectMeta); + protoOf($serializer_49).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_49, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KListValue_0, 'KListValue', classMeta, VOID, VOID, KListValue_0, VOID, {0: $serializer_getInstance_49}); + setMetadataFor(Companion_63, 'Companion', objectMeta); + protoOf($serializer_50).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_50, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KTimestamp, 'KTimestamp', classMeta, VOID, VOID, KTimestamp, VOID, {0: $serializer_getInstance_50}); + setMetadataFor(Companion_64, 'Companion', objectMeta); + protoOf($serializer_51).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_51, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSyntax, 'KSyntax', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_64}); + setMetadataFor(Companion_65, 'Companion', objectMeta); + protoOf($serializer_52).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_52, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KType_0, 'KType', classMeta, VOID, VOID, KType_0, VOID, {0: $serializer_getInstance_52}); + setMetadataFor(Companion_66, 'Companion', objectMeta); + protoOf($serializer_53).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_53, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(Companion_67, 'Companion', objectMeta); + protoOf($serializer_54).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_54, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KKind_0, 'KKind', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_66}); + setMetadataFor(KCardinality, 'KCardinality', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_67}); + setMetadataFor(Companion_68, 'Companion', objectMeta); + protoOf($serializer_55).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_55, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KField, 'KField', classMeta, VOID, VOID, KField, VOID, {0: $serializer_getInstance_55}); + setMetadataFor(Companion_69, 'Companion', objectMeta); + protoOf($serializer_56).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_56, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KEnum, 'KEnum', classMeta, VOID, VOID, KEnum, VOID, {0: $serializer_getInstance_56}); + setMetadataFor(Companion_70, 'Companion', objectMeta); + protoOf($serializer_57).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_57, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KEnumValue, 'KEnumValue', classMeta, VOID, VOID, KEnumValue, VOID, {0: $serializer_getInstance_57}); + setMetadataFor(Companion_71, 'Companion', objectMeta); + protoOf($serializer_58).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_58, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KOption, 'KOption', classMeta, VOID, VOID, KOption, VOID, {0: $serializer_getInstance_58}); + setMetadataFor(Companion_72, 'Companion', objectMeta); + protoOf($serializer_59).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_59, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KDoubleValue, 'KDoubleValue', classMeta, VOID, VOID, KDoubleValue, VOID, {0: $serializer_getInstance_59}); + setMetadataFor(Companion_73, 'Companion', objectMeta); + protoOf($serializer_60).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_60, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KFloatValue, 'KFloatValue', classMeta, VOID, VOID, KFloatValue, VOID, {0: $serializer_getInstance_60}); + setMetadataFor(Companion_74, 'Companion', objectMeta); + protoOf($serializer_61).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_61, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KInt64Value, 'KInt64Value', classMeta, VOID, VOID, KInt64Value, VOID, {0: $serializer_getInstance_61}); + setMetadataFor(Companion_75, 'Companion', objectMeta); + protoOf($serializer_62).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_62, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KUInt64Value, 'KUInt64Value', classMeta, VOID, VOID, KUInt64Value, VOID, {0: $serializer_getInstance_62}); + setMetadataFor(Companion_76, 'Companion', objectMeta); + protoOf($serializer_63).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_63, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KInt32Value, 'KInt32Value', classMeta, VOID, VOID, KInt32Value, VOID, {0: $serializer_getInstance_63}); + setMetadataFor(Companion_77, 'Companion', objectMeta); + protoOf($serializer_64).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_64, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KUInt32Value, 'KUInt32Value', classMeta, VOID, VOID, KUInt32Value, VOID, {0: $serializer_getInstance_64}); + setMetadataFor(Companion_78, 'Companion', objectMeta); + protoOf($serializer_65).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_65, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KBoolValue_0, 'KBoolValue', classMeta, VOID, VOID, KBoolValue_0, VOID, {0: $serializer_getInstance_65}); + setMetadataFor(Companion_79, 'Companion', objectMeta); + protoOf($serializer_66).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_66, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KStringValue_0, 'KStringValue', classMeta, VOID, VOID, KStringValue_0, VOID, {0: $serializer_getInstance_66}); + setMetadataFor(Companion_80, 'Companion', objectMeta); + protoOf($serializer_67).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_67, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KBytesValue, 'KBytesValue', classMeta, VOID, VOID, KBytesValue, VOID, {0: $serializer_getInstance_67}); + setMetadataFor(Companion_81, 'Companion', objectMeta); + protoOf($serializer_68).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_68, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KConfType, 'KConfType', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_81}); + setMetadataFor(Companion_82, 'Companion', objectMeta); + protoOf($serializer_69).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_69, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KUnsupportScene, 'KUnsupportScene', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_82}); + setMetadataFor(Companion_83, 'Companion', objectMeta); + protoOf($serializer_70).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_70, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KArcConfsEntry, 'KArcConfsEntry', classMeta, VOID, VOID, KArcConfsEntry, VOID, {0: $serializer_getInstance_70}); + setMetadataFor(Companion_84, 'Companion', objectMeta); + protoOf($serializer_71).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_71, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KPlayArcConf, 'KPlayArcConf', classMeta, VOID, VOID, KPlayArcConf, VOID, {0: $serializer_getInstance_71}); + setMetadataFor(Companion_85, 'Companion', objectMeta); + protoOf($serializer_72).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_72, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KArcConf, 'KArcConf', classMeta, VOID, VOID, KArcConf, VOID, {0: $serializer_getInstance_72}); + setMetadataFor(Companion_86, 'Companion', objectMeta); + protoOf($serializer_73).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_73, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KExtraContent, 'KExtraContent', classMeta, VOID, VOID, KExtraContent, VOID, {0: $serializer_getInstance_73}); + setMetadataFor(Companion_87, 'Companion', objectMeta); + protoOf($serializer_74).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_74, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KDeviceConfsEntry, 'KDeviceConfsEntry', classMeta, VOID, VOID, KDeviceConfsEntry, VOID, {0: $serializer_getInstance_74}); + setMetadataFor(Companion_88, 'Companion', objectMeta); + protoOf($serializer_75).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_75, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KPlayDeviceConf, 'KPlayDeviceConf', classMeta, VOID, VOID, KPlayDeviceConf, VOID, {0: $serializer_getInstance_75}); + setMetadataFor(KValue_0, 'KValue', classMeta); + setMetadataFor(KSwitchVal, 'KSwitchVal', objectMeta); + setMetadataFor(KSelectedVal, 'KSelectedVal', objectMeta); + setMetadataFor(Companion_89, 'Companion', objectMeta); + protoOf($serializer_76).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_76, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KConfValue, 'KConfValue', classMeta, VOID, VOID, KConfValue, VOID, {0: $serializer_getInstance_76}); + setMetadataFor(Companion_90, 'Companion', objectMeta); + protoOf($serializer_77).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_77, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KDeviceConf, 'KDeviceConf', classMeta, VOID, VOID, KDeviceConf, VOID, {0: $serializer_getInstance_77}); + setMetadataFor(Companion_91, 'Companion', objectMeta); + protoOf($serializer_78).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_78, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KToastType, 'KToastType', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_91}); + setMetadataFor(Companion_92, 'Companion', objectMeta); + protoOf($serializer_79).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_79, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KShowStyleType, 'KShowStyleType', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_92}); + setMetadataFor(Companion_93, 'Companion', objectMeta); + protoOf($serializer_80).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_80, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KGuideStyle, 'KGuideStyle', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_93}); + setMetadataFor(Companion_94, 'Companion', objectMeta); + protoOf($serializer_81).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_81, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KPromptBarType, 'KPromptBarType', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_94}); + setMetadataFor(Companion_95, 'Companion', objectMeta); + protoOf($serializer_82).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_82, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KPromptBarStyle, 'KPromptBarStyle', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_95}); + setMetadataFor(Companion_96, 'Companion', objectMeta); + protoOf($serializer_83).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_83, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KLimitActionType, 'KLimitActionType', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_96}); + setMetadataFor(Companion_97, 'Companion', objectMeta); + protoOf($serializer_84).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_84, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KExtDataType, 'KExtDataType', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_97}); + setMetadataFor(Companion_98, 'Companion', objectMeta); + protoOf($serializer_85).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_85, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KEffects, 'KEffects', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_98}); + setMetadataFor(Companion_99, 'Companion', objectMeta); + protoOf($serializer_86).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_86, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KButtonAction, 'KButtonAction', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_99}); + setMetadataFor(Companion_100, 'Companion', objectMeta); + protoOf($serializer_87).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_87, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KDialogMapEntry, 'KDialogMapEntry', classMeta, VOID, VOID, KDialogMapEntry, VOID, {0: $serializer_getInstance_87}); + setMetadataFor(Companion_101, 'Companion', objectMeta); + protoOf($serializer_88).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_88, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KViewInfo, 'KViewInfo', classMeta, VOID, VOID, KViewInfo, VOID, {0: $serializer_getInstance_88}); + setMetadataFor(Companion_102, 'Companion', objectMeta); + protoOf($serializer_89).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_89, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KOrderReportParamsEntry, 'KOrderReportParamsEntry', classMeta, VOID, VOID, KOrderReportParamsEntry, VOID, {0: $serializer_getInstance_89}); + setMetadataFor(Companion_103, 'Companion', objectMeta); + protoOf($serializer_90).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_90, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KComprehensiveToast, 'KComprehensiveToast', classMeta, VOID, VOID, KComprehensiveToast, VOID, {0: $serializer_getInstance_90}); + setMetadataFor(Companion_104, 'Companion', objectMeta); + protoOf($serializer_91).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_91, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KPromptBar, 'KPromptBar', classMeta, VOID, VOID, KPromptBar, VOID, {0: $serializer_getInstance_91}); + setMetadataFor(Companion_105, 'Companion', objectMeta); + protoOf($serializer_92).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_92, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KBenefitInfo, 'KBenefitInfo', classMeta, VOID, VOID, KBenefitInfo, VOID, {0: $serializer_getInstance_92}); + setMetadataFor(Companion_106, 'Companion', objectMeta); + protoOf($serializer_93).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_93, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KDialog, 'KDialog', classMeta, VOID, VOID, KDialog, VOID, {0: $serializer_getInstance_93}); + setMetadataFor(Companion_107, 'Companion', objectMeta); + protoOf($serializer_94).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_94, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KBottomDisplay, 'KBottomDisplay', classMeta, VOID, VOID, KBottomDisplay, VOID, {0: $serializer_getInstance_94}); + setMetadataFor(Companion_108, 'Companion', objectMeta); + protoOf($serializer_95).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_95, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KReport, 'KReport', classMeta, VOID, VOID, KReport, VOID, {0: $serializer_getInstance_95}); + setMetadataFor(Companion_109, 'Companion', objectMeta); + protoOf($serializer_96).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_96, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KTextInfo, 'KTextInfo', classMeta, VOID, VOID, KTextInfo, VOID, {0: $serializer_getInstance_96}); + setMetadataFor(Companion_110, 'Companion', objectMeta); + protoOf($serializer_97).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_97, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KImageInfo, 'KImageInfo', classMeta, VOID, VOID, KImageInfo, VOID, {0: $serializer_getInstance_97}); + setMetadataFor(KData, 'KData', classMeta); + setMetadataFor(KPlayListInfo, 'KPlayListInfo', objectMeta); + setMetadataFor(KBanner, 'KBanner', objectMeta); + setMetadataFor(KEpInlineVideoInfo, 'KEpInlineVideoInfo', objectMeta); + setMetadataFor(Companion_111, 'Companion', objectMeta); + protoOf($serializer_98).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_98, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KExtData, 'KExtData', classMeta, VOID, VOID, KExtData, VOID, {0: $serializer_getInstance_98}); + setMetadataFor(Companion_112, 'Companion', objectMeta); + protoOf($serializer_99).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_99, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KBanner_0, 'KBanner', classMeta, VOID, VOID, KBanner_0, VOID, {0: $serializer_getInstance_99}); + setMetadataFor(Companion_113, 'Companion', objectMeta); + protoOf($serializer_100).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_100, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KEpInlineVideoInfo_0, 'KEpInlineVideoInfo', classMeta, VOID, VOID, KEpInlineVideoInfo_0, VOID, {0: $serializer_getInstance_100}); + setMetadataFor(Companion_114, 'Companion', objectMeta); + protoOf($serializer_101).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_101, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KEpInlineVideo, 'KEpInlineVideo', classMeta, VOID, VOID, KEpInlineVideo, VOID, {0: $serializer_getInstance_101}); + setMetadataFor(Companion_115, 'Companion', objectMeta); + protoOf($serializer_102).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_102, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KPlayListInfo_0, 'KPlayListInfo', classMeta, VOID, VOID, KPlayListInfo_0, VOID, {0: $serializer_getInstance_102}); + setMetadataFor(Companion_116, 'Companion', objectMeta); + protoOf($serializer_103).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_103, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KPlayList, 'KPlayList', classMeta, VOID, VOID, KPlayList, VOID, {0: $serializer_getInstance_103}); + setMetadataFor(Companion_117, 'Companion', objectMeta); + protoOf($serializer_104).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_104, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KBadgeInfo, 'KBadgeInfo', classMeta, VOID, VOID, KBadgeInfo, VOID, {0: $serializer_getInstance_104}); + setMetadataFor(Companion_118, 'Companion', objectMeta); + protoOf($serializer_105).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_105, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KGradientColor, 'KGradientColor', classMeta, VOID, VOID, KGradientColor, VOID, {0: $serializer_getInstance_105}); + setMetadataFor(Companion_119, 'Companion', objectMeta); + protoOf($serializer_106).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_106, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KBackgroundInfo, 'KBackgroundInfo', classMeta, VOID, VOID, KBackgroundInfo, VOID, {0: $serializer_getInstance_106}); + setMetadataFor(Companion_120, 'Companion', objectMeta); + protoOf($serializer_107).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_107, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KOrderReportParamsEntry_0, 'KOrderReportParamsEntry', classMeta, VOID, VOID, KOrderReportParamsEntry_0, VOID, {0: $serializer_getInstance_107}); + setMetadataFor(Companion_121, 'Companion', objectMeta); + protoOf($serializer_108).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_108, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KButtonInfo, 'KButtonInfo', classMeta, VOID, VOID, KButtonInfo, VOID, {0: $serializer_getInstance_108}); + setMetadataFor(Companion_122, 'Companion', objectMeta); + protoOf($serializer_109).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_109, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KTaskParam, 'KTaskParam', classMeta, VOID, VOID, KTaskParam, VOID, {0: $serializer_getInstance_109}); + setMetadataFor(Companion_123, 'Companion', objectMeta); + protoOf($serializer_110).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_110, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCodeType, 'KCodeType', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_123}); + setMetadataFor(Companion_124, 'Companion', objectMeta); + protoOf($serializer_111).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_111, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KPlayErr, 'KPlayErr', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_124}); + setMetadataFor(Companion_125, 'Companion', objectMeta); + protoOf($serializer_112).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_112, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KFragmentType, 'KFragmentType', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_125}); + setMetadataFor(Companion_126, 'Companion', objectMeta); + protoOf($serializer_113).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_113, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KFragmentPosition, 'KFragmentPosition', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_126}); + setMetadataFor(Companion_127, 'Companion', objectMeta); + protoOf($serializer_114).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_114, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KArcType, 'KArcType', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_127}); + setMetadataFor(Companion_128, 'Companion', objectMeta); + protoOf($serializer_115).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_115, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KDrmTechType, 'KDrmTechType', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_128}); + setMetadataFor(Companion_129, 'Companion', objectMeta); + protoOf($serializer_116).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_116, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KBizType, 'KBizType', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_129}); + setMetadataFor(Companion_130, 'Companion', objectMeta); + protoOf($serializer_117).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_117, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KVideoVod, 'KVideoVod', classMeta, VOID, VOID, KVideoVod, VOID, {0: $serializer_getInstance_117}); + setMetadataFor(Companion_131, 'Companion', objectMeta); + protoOf($serializer_118).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_118, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KVodInfo, 'KVodInfo', classMeta, VOID, VOID, KVodInfo, VOID, {0: $serializer_getInstance_118}); + setMetadataFor(Companion_132, 'Companion', objectMeta); + protoOf($serializer_119).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_119, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KFragmentVideo, 'KFragmentVideo', classMeta, VOID, VOID, KFragmentVideo, VOID, {0: $serializer_getInstance_119}); + setMetadataFor(Companion_133, 'Companion', objectMeta); + protoOf($serializer_120).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_120, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KFragmentVideoInfo, 'KFragmentVideoInfo', classMeta, VOID, VOID, KFragmentVideoInfo, VOID, {0: $serializer_getInstance_120}); + setMetadataFor(Companion_134, 'Companion', objectMeta); + protoOf($serializer_121).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_121, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KLossLessItem, 'KLossLessItem', classMeta, VOID, VOID, KLossLessItem, VOID, {0: $serializer_getInstance_121}); + setMetadataFor(Companion_135, 'Companion', objectMeta); + protoOf($serializer_122).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_122, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KVolumeInfo, 'KVolumeInfo', classMeta, VOID, VOID, KVolumeInfo, VOID, {0: $serializer_getInstance_122}); + setMetadataFor(Companion_136, 'Companion', objectMeta); + protoOf($serializer_123).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_123, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KType_1, 'KType', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_136}); + setMetadataFor(Companion_137, 'Companion', objectMeta); + protoOf($serializer_124).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_124, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KDolbyItem, 'KDolbyItem', classMeta, VOID, VOID, KDolbyItem, VOID, {0: $serializer_getInstance_124}); + setMetadataFor(KContent, 'KContent', classMeta); + setMetadataFor(KDashVideo, 'KDashVideo', objectMeta); + setMetadataFor(KSegmentVideo, 'KSegmentVideo', objectMeta); + setMetadataFor(Companion_138, 'Companion', objectMeta); + protoOf($serializer_125).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_125, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KStream, 'KStream', classMeta, VOID, VOID, KStream, VOID, {0: $serializer_getInstance_125}); + setMetadataFor(Companion_139, 'Companion', objectMeta); + protoOf($serializer_126).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_126, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSegmentVideo_0, 'KSegmentVideo', classMeta, VOID, VOID, KSegmentVideo_0, VOID, {0: $serializer_getInstance_126}); + setMetadataFor(Companion_140, 'Companion', objectMeta); + protoOf($serializer_127).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_127, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KStreamInfo, 'KStreamInfo', classMeta, VOID, VOID, KStreamInfo, VOID, {0: $serializer_getInstance_127}); + setMetadataFor(Companion_141, 'Companion', objectMeta); + protoOf($serializer_128).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_128, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KActionType, 'KActionType', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_141}); + setMetadataFor(Companion_142, 'Companion', objectMeta); + protoOf($serializer_129).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_129, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KScheme, 'KScheme', classMeta, VOID, VOID, KScheme, VOID, {0: $serializer_getInstance_129}); + setMetadataFor(Companion_143, 'Companion', objectMeta); + protoOf($serializer_130).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_130, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KStreamLimit, 'KStreamLimit', classMeta, VOID, VOID, KStreamLimit, VOID, {0: $serializer_getInstance_130}); + setMetadataFor(Companion_144, 'Companion', objectMeta); + protoOf($serializer_131).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_131, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KDashVideo_0, 'KDashVideo', classMeta, VOID, VOID, KDashVideo_0, VOID, {0: $serializer_getInstance_131}); + setMetadataFor(Companion_145, 'Companion', objectMeta); + protoOf($serializer_132).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_132, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KResponseDash, 'KResponseDash', classMeta, VOID, VOID, KResponseDash, VOID, {0: $serializer_getInstance_132}); + setMetadataFor(Companion_146, 'Companion', objectMeta); + protoOf($serializer_133).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_133, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KDashItem, 'KDashItem', classMeta, VOID, VOID, KDashItem, VOID, {0: $serializer_getInstance_133}); + setMetadataFor(Companion_147, 'Companion', objectMeta); + protoOf($serializer_134).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_134, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KResponseUrl, 'KResponseUrl', classMeta, VOID, VOID, KResponseUrl, VOID, {0: $serializer_getInstance_134}); + setMetadataFor(Companion_148, 'Companion', objectMeta); + protoOf($serializer_135).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_135, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KPlayArc, 'KPlayArc', classMeta, VOID, VOID, KPlayArc, VOID, {0: $serializer_getInstance_135}); + setMetadataFor(Companion_149, 'Companion', objectMeta); + protoOf($serializer_136).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_136, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KDimension, 'KDimension', classMeta, VOID, VOID, KDimension, VOID, {0: $serializer_getInstance_136}); + setMetadataFor(Companion_150, 'Companion', objectMeta); + protoOf($serializer_137).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_137, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KInteraction, 'KInteraction', classMeta, VOID, VOID, KInteraction, VOID, {0: $serializer_getInstance_137}); + setMetadataFor(Companion_151, 'Companion', objectMeta); + protoOf($serializer_138).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_138, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KNode, 'KNode', classMeta, VOID, VOID, KNode, VOID, {0: $serializer_getInstance_138}); + setMetadataFor(Companion_152, 'Companion', objectMeta); + protoOf($serializer_139).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_139, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KEvent, 'KEvent', classMeta, VOID, VOID, KEvent, VOID, {0: $serializer_getInstance_139}); + setMetadataFor(Companion_153, 'Companion', objectMeta); + protoOf($serializer_140).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_140, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KShake, 'KShake', classMeta, VOID, VOID, KShake, VOID, {0: $serializer_getInstance_140}); + setMetadataFor(Companion_154, 'Companion', objectMeta); + protoOf($serializer_141).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_141, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KQnTrialInfo, 'KQnTrialInfo', classMeta, VOID, VOID, KQnTrialInfo, VOID, {0: $serializer_getInstance_141}); + setMetadataFor(Companion_155, 'Companion', objectMeta); + protoOf($serializer_142).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_142, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KToast, 'KToast', classMeta, VOID, VOID, KToast, VOID, {0: $serializer_getInstance_142}); + setMetadataFor(Companion_156, 'Companion', objectMeta); + protoOf($serializer_143).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_143, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KReportParamsEntry, 'KReportParamsEntry', classMeta, VOID, VOID, KReportParamsEntry, VOID, {0: $serializer_getInstance_143}); + setMetadataFor(Companion_157, 'Companion', objectMeta); + protoOf($serializer_144).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_144, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KButton, 'KButton', classMeta, VOID, VOID, KButton, VOID, {0: $serializer_getInstance_144}); + setMetadataFor(Companion_158, 'Companion', objectMeta); + protoOf($serializer_145).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_145, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KHistory, 'KHistory', classMeta, VOID, VOID, KHistory, VOID, {0: $serializer_getInstance_145}); + setMetadataFor(Companion_159, 'Companion', objectMeta); + protoOf($serializer_146).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_146, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KHistoryInfo, 'KHistoryInfo', classMeta, VOID, VOID, KHistoryInfo, VOID, {0: $serializer_getInstance_146}); + setMetadataFor(Companion_160, 'Companion', objectMeta); + protoOf($serializer_147).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_147, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KFragment, 'KFragment', classMeta, VOID, VOID, KFragment, VOID, {0: $serializer_getInstance_147}); + setMetadataFor(Companion_161, 'Companion', objectMeta); + protoOf($serializer_148).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_148, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KFragmentInfo, 'KFragmentInfo', classMeta, VOID, VOID, KFragmentInfo, VOID, {0: $serializer_getInstance_148}); + setMetadataFor(Companion_162, 'Companion', objectMeta); + protoOf($serializer_149).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_149, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KExtraContentEntry, 'KExtraContentEntry', classMeta, VOID, VOID, KExtraContentEntry, VOID, {0: $serializer_getInstance_149}); + setMetadataFor(Companion_163, 'Companion', objectMeta); + protoOf($serializer_150).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_150, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KPlayViewUniteReq, 'KPlayViewUniteReq', classMeta, VOID, VOID, KPlayViewUniteReq, VOID, {0: $serializer_getInstance_150}); + setMetadataFor(Companion_164, 'Companion', objectMeta); + protoOf($serializer_151).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_151, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KPlayViewUniteReply, 'KPlayViewUniteReply', classMeta, VOID, VOID, KPlayViewUniteReply, VOID, {0: $serializer_getInstance_151}); + setMetadataFor(Companion_165, 'Companion', objectMeta); + protoOf($serializer_152).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_152, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KPlayerArgs, 'KPlayerArgs', classMeta, VOID, VOID, KPlayerArgs, VOID, {0: $serializer_getInstance_152}); + setMetadataFor(Companion_166, 'Companion', objectMeta); + protoOf($serializer_153).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_153, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSizeSpec, 'KSizeSpec', classMeta, VOID, VOID, KSizeSpec, VOID, {0: $serializer_getInstance_153}); + setMetadataFor(Companion_167, 'Companion', objectMeta); + protoOf($serializer_154).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_154, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCoordinatePos, 'KCoordinatePos', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_167}); + setMetadataFor(Companion_168, 'Companion', objectMeta); + protoOf($serializer_155).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_155, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KPositionSpec, 'KPositionSpec', classMeta, VOID, VOID, KPositionSpec, VOID, {0: $serializer_getInstance_155}); + setMetadataFor(Companion_169, 'Companion', objectMeta); + protoOf($serializer_156).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_156, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KBasicRenderSpec, 'KBasicRenderSpec', classMeta, VOID, VOID, KBasicRenderSpec, VOID, {0: $serializer_getInstance_156}); + setMetadataFor(Companion_170, 'Companion', objectMeta); + protoOf($serializer_157).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_157, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KLayerGeneralSpec, 'KLayerGeneralSpec', classMeta, VOID, VOID, KLayerGeneralSpec, VOID, {0: $serializer_getInstance_157}); + setMetadataFor(Companion_171, 'Companion', objectMeta); + protoOf($serializer_158).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_158, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(Companion_172, 'Companion', objectMeta); + protoOf($serializer_159).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_159, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KRes, 'KRes', classMeta); + setMetadataFor(KRemote, 'KRemote', objectMeta); + setMetadataFor(KLocal, 'KLocal', objectMeta); + setMetadataFor(KDraw, 'KDraw', objectMeta); + setMetadataFor(Companion_173, 'Companion', objectMeta); + setMetadataFor(KSourceType, 'KSourceType', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_171}); + setMetadataFor(KLocalRes, 'KLocalRes', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_172}); + protoOf($serializer_160).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_160, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KResourceSource, 'KResourceSource', classMeta, VOID, VOID, KResourceSource, VOID, {0: $serializer_getInstance_160}); + setMetadataFor(Companion_174, 'Companion', objectMeta); + protoOf($serializer_161).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_161, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KMaskProperty, 'KMaskProperty', classMeta, VOID, VOID, KMaskProperty, VOID, {0: $serializer_getInstance_161}); + setMetadataFor(Companion_175, 'Companion', objectMeta); + protoOf($serializer_162).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_162, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KRemoteRes, 'KRemoteRes', classMeta, VOID, VOID, KRemoteRes, VOID, {0: $serializer_getInstance_162}); + setMetadataFor(Companion_176, 'Companion', objectMeta); + protoOf($serializer_163).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_163, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(Companion_177, 'Companion', objectMeta); + protoOf($serializer_164).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_164, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KNativeDraw, 'KNativeDraw', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_176}); + setMetadataFor(KFillMode, 'KFillMode', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_177}); + setMetadataFor(Companion_178, 'Companion', objectMeta); + protoOf($serializer_165).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_165, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KNativeDrawRes, 'KNativeDrawRes', classMeta, VOID, VOID, KNativeDrawRes, VOID, {0: $serializer_getInstance_165}); + setMetadataFor(Companion_179, 'Companion', objectMeta); + protoOf($serializer_166).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_166, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KColorConfig, 'KColorConfig', classMeta, VOID, VOID, KColorConfig, VOID, {0: $serializer_getInstance_166}); + setMetadataFor(Companion_180, 'Companion', objectMeta); + protoOf($serializer_167).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_167, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KColorSpec, 'KColorSpec', classMeta, VOID, VOID, KColorSpec, VOID, {0: $serializer_getInstance_167}); + setMetadataFor(Companion_181, 'Companion', objectMeta); + protoOf($serializer_168).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_168, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCommentDoubleClickConfig, 'KCommentDoubleClickConfig', classMeta, VOID, VOID, KCommentDoubleClickConfig, VOID, {0: $serializer_getInstance_168}); + setMetadataFor(Companion_182, 'Companion', objectMeta); + protoOf($serializer_169).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_169, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KInteraction_0, 'KInteraction', classMeta, VOID, VOID, KInteraction_0, VOID, {0: $serializer_getInstance_169}); + setMetadataFor(Companion_183, 'Companion', objectMeta); + protoOf($serializer_170).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_170, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KGyroConfig, 'KGyroConfig', classMeta, VOID, VOID, KGyroConfig, VOID, {0: $serializer_getInstance_170}); + setMetadataFor(Companion_184, 'Companion', objectMeta); + protoOf($serializer_171).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_171, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KNFTImageV2, 'KNFTImageV2', classMeta, VOID, VOID, KNFTImageV2, VOID, {0: $serializer_getInstance_171}); + setMetadataFor(Companion_185, 'Companion', objectMeta); + protoOf($serializer_172).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_172, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KGyroscopeEntityV2, 'KGyroscopeEntityV2', classMeta, VOID, VOID, KGyroscopeEntityV2, VOID, {0: $serializer_getInstance_172}); + setMetadataFor(Companion_186, 'Companion', objectMeta); + protoOf($serializer_173).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_173, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KGyroscopeContentV2, 'KGyroscopeContentV2', classMeta, VOID, VOID, KGyroscopeContentV2, VOID, {0: $serializer_getInstance_173}); + setMetadataFor(Companion_187, 'Companion', objectMeta); + protoOf($serializer_174).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_174, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KPhysicalOrientationV2, 'KPhysicalOrientationV2', classMeta, VOID, VOID, KPhysicalOrientationV2, VOID, {0: $serializer_getInstance_174}); + setMetadataFor(Companion_188, 'Companion', objectMeta); + protoOf($serializer_175).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_175, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KPhysicalOrientationAnimation, 'KPhysicalOrientationAnimation', classMeta, VOID, VOID, KPhysicalOrientationAnimation, VOID, {0: $serializer_getInstance_175}); + setMetadataFor(Companion_189, 'Companion', objectMeta); + protoOf($serializer_176).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_176, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KLiveAnimeConfig, 'KLiveAnimeConfig', classMeta, VOID, VOID, KLiveAnimeConfig, VOID, {0: $serializer_getInstance_176}); + setMetadataFor(Companion_190, 'Companion', objectMeta); + protoOf($serializer_177).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_177, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KBorderConfig, 'KBorderConfig', classMeta, VOID, VOID, KBorderConfig, VOID, {0: $serializer_getInstance_177}); + setMetadataFor(Companion_191, 'Companion', objectMeta); + protoOf($serializer_178).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_178, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KLiveTextConfig, 'KLiveTextConfig', classMeta, VOID, VOID, KLiveTextConfig, VOID, {0: $serializer_getInstance_178}); + setMetadataFor(Companion_192, 'Companion', objectMeta); + protoOf($serializer_179).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_179, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KLiveAnimeItem, 'KLiveAnimeItem', classMeta, VOID, VOID, KLiveAnimeItem, VOID, {0: $serializer_getInstance_179}); + setMetadataFor(Companion_193, 'Companion', objectMeta); + protoOf($serializer_180).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_180, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KWebLiveAnimeConfig, 'KWebLiveAnimeConfig', classMeta, VOID, VOID, KWebLiveAnimeConfig, VOID, {0: $serializer_getInstance_180}); + setMetadataFor(Companion_194, 'Companion', objectMeta); + protoOf($serializer_181).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_181, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KAvatarItem, 'KAvatarItem', classMeta, VOID, VOID, KAvatarItem, VOID, {0: $serializer_getInstance_181}); + setMetadataFor(Companion_195, 'Companion', objectMeta); + protoOf($serializer_182).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_182, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KLayerGroup, 'KLayerGroup', classMeta, VOID, VOID, KLayerGroup, VOID, {0: $serializer_getInstance_182}); + setMetadataFor(Companion_196, 'Companion', objectMeta); + protoOf($serializer_183).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_183, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KLayer, 'KLayer', classMeta, VOID, VOID, KLayer, VOID, {0: $serializer_getInstance_183}); + setMetadataFor(Companion_197, 'Companion', objectMeta); + protoOf($serializer_184).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_184, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KPayload, 'KPayload', classMeta); + setMetadataFor(KResImage, 'KResImage', objectMeta); + setMetadataFor(KResAnimation, 'KResAnimation', objectMeta); + setMetadataFor(KResNativeDraw, 'KResNativeDraw', objectMeta); + setMetadataFor(Companion_198, 'Companion', objectMeta); + setMetadataFor(KResType, 'KResType', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_197}); + protoOf($serializer_185).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_185, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KBasicLayerResource, 'KBasicLayerResource', classMeta, VOID, VOID, KBasicLayerResource, VOID, {0: $serializer_getInstance_185}); + setMetadataFor(Companion_199, 'Companion', objectMeta); + protoOf($serializer_186).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_186, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KTagsEntry, 'KTagsEntry', classMeta, VOID, VOID, KTagsEntry, VOID, {0: $serializer_getInstance_186}); + setMetadataFor(Companion_200, 'Companion', objectMeta); + protoOf($serializer_187).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_187, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KLayerConfig, 'KLayerConfig', classMeta, VOID, VOID, KLayerConfig, VOID, {0: $serializer_getInstance_187}); + setMetadataFor(Companion_201, 'Companion', objectMeta); + protoOf($serializer_188).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_188, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KConfig, 'KConfig', classMeta); + setMetadataFor(KGeneralConfig, 'KGeneralConfig', objectMeta); + setMetadataFor(KGyroConfig_0, 'KGyroConfig', objectMeta); + setMetadataFor(KCommentDoubleClickConfig_0, 'KCommentDoubleClickConfig', objectMeta); + setMetadataFor(KLiveAnimeConfig_0, 'KLiveAnimeConfig', objectMeta); + setMetadataFor(KWebLiveAnimeConfig_0, 'KWebLiveAnimeConfig', objectMeta); + setMetadataFor(Companion_202, 'Companion', objectMeta); + setMetadataFor(KTagConfigType, 'KTagConfigType', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_201}); + protoOf($serializer_189).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_189, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KLayerTagConfig, 'KLayerTagConfig', classMeta, VOID, VOID, KLayerTagConfig, VOID, {0: $serializer_getInstance_189}); + setMetadataFor(Companion_203, 'Companion', objectMeta); + protoOf($serializer_190).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_190, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KWebCssStyleEntry, 'KWebCssStyleEntry', classMeta, VOID, VOID, KWebCssStyleEntry, VOID, {0: $serializer_getInstance_190}); + setMetadataFor(Companion_204, 'Companion', objectMeta); + protoOf($serializer_191).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_191, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KGeneralConfig_0, 'KGeneralConfig', classMeta, VOID, VOID, KGeneralConfig_0, VOID, {0: $serializer_getInstance_191}); + setMetadataFor(Companion_205, 'Companion', objectMeta); + protoOf($serializer_192).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_192, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KResImage_0, 'KResImage', classMeta, VOID, VOID, KResImage_0, VOID, {0: $serializer_getInstance_192}); + setMetadataFor(Companion_206, 'Companion', objectMeta); + protoOf($serializer_193).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_193, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KResAnimation_0, 'KResAnimation', classMeta, VOID, VOID, KResAnimation_0, VOID, {0: $serializer_getInstance_193}); + setMetadataFor(Companion_207, 'Companion', objectMeta); + protoOf($serializer_194).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_194, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KResNativeDraw_0, 'KResNativeDraw', classMeta, VOID, VOID, KResNativeDraw_0, VOID, {0: $serializer_getInstance_194}); + setMetadataFor(Companion_208, 'Companion', objectMeta); + protoOf($serializer_195).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_195, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KPagination, 'KPagination', classMeta, VOID, VOID, KPagination, VOID, {0: $serializer_getInstance_195}); + setMetadataFor(Companion_209, 'Companion', objectMeta); + protoOf($serializer_196).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_196, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KPaginationReply, 'KPaginationReply', classMeta, VOID, VOID, KPaginationReply, VOID, {0: $serializer_getInstance_196}); + setMetadataFor(Companion_210, 'Companion', objectMeta); + protoOf($serializer_197).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_197, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KFeedPagination, 'KFeedPagination', classMeta, VOID, VOID, KFeedPagination, VOID, {0: $serializer_getInstance_197}); + setMetadataFor(Companion_211, 'Companion', objectMeta); + protoOf($serializer_198).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_198, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KFeedPaginationReply, 'KFeedPaginationReply', classMeta, VOID, VOID, KFeedPaginationReply, VOID, {0: $serializer_getInstance_198}); + setMetadataFor(Companion_212, 'Companion', objectMeta); + protoOf($serializer_199).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_199, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KToolType, 'KToolType', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_212}); + setMetadataFor(Companion_213, 'Companion', objectMeta); + protoOf($serializer_200).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_200, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KExtType, 'KExtType', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_213}); + setMetadataFor(Companion_214, 'Companion', objectMeta); + protoOf($serializer_201).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_201, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KRelateCardType, 'KRelateCardType', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_214}); + setMetadataFor(Companion_215, 'Companion', objectMeta); + protoOf($serializer_202).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_202, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KJumpType, 'KJumpType', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_215}); + setMetadataFor(Companion_216, 'Companion', objectMeta); + protoOf($serializer_203).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_203, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KHonorJumpType, 'KHonorJumpType', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_216}); + setMetadataFor(Companion_217, 'Companion', objectMeta); + protoOf($serializer_204).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_204, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSerialSeasonCoverStyle, 'KSerialSeasonCoverStyle', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_217}); + setMetadataFor(Companion_218, 'Companion', objectMeta); + protoOf($serializer_205).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_205, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSeasonType, 'KSeasonType', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_218}); + setMetadataFor(Companion_219, 'Companion', objectMeta); + protoOf($serializer_206).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_206, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KShowStyle, 'KShowStyle', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_219}); + setMetadataFor(Companion_220, 'Companion', objectMeta); + protoOf($serializer_207).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_207, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KOccupationType, 'KOccupationType', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_220}); + setMetadataFor(Companion_221, 'Companion', objectMeta); + protoOf($serializer_208).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_208, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KAttentionRelationStatus, 'KAttentionRelationStatus', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_221}); + setMetadataFor(Companion_222, 'Companion', objectMeta); + protoOf($serializer_209).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_209, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KModuleType, 'KModuleType', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_222}); + setMetadataFor(Companion_223, 'Companion', objectMeta); + protoOf($serializer_210).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_210, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KPugvSeasonPrimarySellPointType, 'KPugvSeasonPrimarySellPointType', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_223}); + setMetadataFor(Companion_224, 'Companion', objectMeta); + protoOf($serializer_211).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_211, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KPugvSeasonDescriptionType, 'KPugvSeasonDescriptionType', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_224}); + setMetadataFor(Companion_225, 'Companion', objectMeta); + protoOf($serializer_212).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_212, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KPugvZoneItemType, 'KPugvZoneItemType', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_225}); + setMetadataFor(Companion_226, 'Companion', objectMeta); + protoOf($serializer_213).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_213, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KPugvSeriesItemState, 'KPugvSeriesItemState', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_226}); + setMetadataFor(Companion_227, 'Companion', objectMeta); + protoOf($serializer_214).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_214, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KHonorType, 'KHonorType', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_227}); + setMetadataFor(Companion_228, 'Companion', objectMeta); + protoOf($serializer_215).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_215, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KDescType, 'KDescType', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_228}); + setMetadataFor(Companion_229, 'Companion', objectMeta); + protoOf($serializer_216).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_216, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KKingPositionType, 'KKingPositionType', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_229}); + setMetadataFor(Companion_230, 'Companion', objectMeta); + protoOf($serializer_217).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_217, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KReserveBizType, 'KReserveBizType', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_230}); + setMetadataFor(KData_0, 'KData', classMeta); + setMetadataFor(KOgvIntroduction, 'KOgvIntroduction', objectMeta); + setMetadataFor(KUgcIntroduction, 'KUgcIntroduction', objectMeta); + setMetadataFor(KKingPosition, 'KKingPosition', objectMeta); + setMetadataFor(KHeadLine, 'KHeadLine', objectMeta); + setMetadataFor(KOgvTitle, 'KOgvTitle', objectMeta); + setMetadataFor(KHonor, 'KHonor', objectMeta); + setMetadataFor(KList_, 'KList_', objectMeta); + setMetadataFor(KStaffs, 'KStaffs', objectMeta); + setMetadataFor(KActivityReserve, 'KActivityReserve', objectMeta); + setMetadataFor(KLiveOrder, 'KLiveOrder', objectMeta); + setMetadataFor(KSectionData, 'KSectionData', objectMeta); + setMetadataFor(KDeliveryData, 'KDeliveryData', objectMeta); + setMetadataFor(KFollowLayer, 'KFollowLayer', objectMeta); + setMetadataFor(KOgvSeasons, 'KOgvSeasons', objectMeta); + setMetadataFor(KUgcSeason, 'KUgcSeason', objectMeta); + setMetadataFor(KOgvLiveReserve, 'KOgvLiveReserve', objectMeta); + setMetadataFor(KCombinationEp, 'KCombinationEp', objectMeta); + setMetadataFor(KSponsor, 'KSponsor', objectMeta); + setMetadataFor(KActivityEntranceModule, 'KActivityEntranceModule', objectMeta); + setMetadataFor(KSerialSeason, 'KSerialSeason', objectMeta); + setMetadataFor(KRelates, 'KRelates', objectMeta); + setMetadataFor(KBanner_1, 'KBanner', objectMeta); + setMetadataFor(KAudio, 'KAudio', objectMeta); + setMetadataFor(KLikeComment, 'KLikeComment', objectMeta); + setMetadataFor(KAttentionRecommend, 'KAttentionRecommend', objectMeta); + setMetadataFor(KCovenanter, 'KCovenanter', objectMeta); + setMetadataFor(KSpecialTag, 'KSpecialTag', objectMeta); + setMetadataFor(KUpDataModule, 'KUpDataModule', objectMeta); + setMetadataFor(KProfessionApproval, 'KProfessionApproval', objectMeta); + setMetadataFor(KPugvShoppingNotice, 'KPugvShoppingNotice', objectMeta); + setMetadataFor(KPugvFaq, 'KPugvFaq', objectMeta); + setMetadataFor(KPugvSeasonDescription, 'KPugvSeasonDescription', objectMeta); + setMetadataFor(KPugvSeasonRecommend, 'KPugvSeasonRecommend', objectMeta); + setMetadataFor(KPugvSeasonPublisher, 'KPugvSeasonPublisher', objectMeta); + setMetadataFor(KPugvSeasonSelection, 'KPugvSeasonSelection', objectMeta); + setMetadataFor(KPugvSeasonPrimaryInfo, 'KPugvSeasonPrimaryInfo', objectMeta); + setMetadataFor(KPugvCooperationApplication, 'KPugvCooperationApplication', objectMeta); + setMetadataFor(KUpVideoTool, 'KUpVideoTool', objectMeta); + setMetadataFor(KPugvZone, 'KPugvZone', objectMeta); + setMetadataFor(KPugvSeries, 'KPugvSeries', objectMeta); + setMetadataFor(KPugvPackage, 'KPugvPackage', objectMeta); + setMetadataFor(Companion_231, 'Companion', objectMeta); + protoOf($serializer_218).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_218, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KModule, 'KModule', classMeta, VOID, VOID, KModule, VOID, {0: $serializer_getInstance_218}); + setMetadataFor(Companion_232, 'Companion', objectMeta); + protoOf($serializer_219).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_219, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KUpVideoTool_0, 'KUpVideoTool', classMeta, VOID, VOID, KUpVideoTool_0, VOID, {0: $serializer_getInstance_219}); + setMetadataFor(Companion_233, 'Companion', objectMeta); + protoOf($serializer_220).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_220, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KUpTool, 'KUpTool', classMeta, VOID, VOID, KUpTool, VOID, {0: $serializer_getInstance_220}); + setMetadataFor(Companion_234, 'Companion', objectMeta); + protoOf($serializer_221).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_221, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KUpDataModule_0, 'KUpDataModule', classMeta, VOID, VOID, KUpDataModule_0, VOID, {0: $serializer_getInstance_221}); + setMetadataFor(Companion_235, 'Companion', objectMeta); + protoOf($serializer_222).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_222, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KExtTab, 'KExtTab', classMeta, VOID, VOID, KExtTab, VOID, {0: $serializer_getInstance_222}); + setMetadataFor(Companion_236, 'Companion', objectMeta); + protoOf($serializer_223).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_223, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSpecialTag_0, 'KSpecialTag', classMeta, VOID, VOID, KSpecialTag_0, VOID, {0: $serializer_getInstance_223}); + setMetadataFor(Companion_237, 'Companion', objectMeta); + protoOf($serializer_224).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_224, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KAttentionRecommend_0, 'KAttentionRecommend', classMeta, VOID, VOID, KAttentionRecommend_0, VOID, {0: $serializer_getInstance_224}); + setMetadataFor(Companion_238, 'Companion', objectMeta); + protoOf($serializer_225).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_225, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCovenanter_0, 'KCovenanter', classMeta, VOID, VOID, KCovenanter_0, VOID, {0: $serializer_getInstance_225}); + setMetadataFor(Companion_239, 'Companion', objectMeta); + protoOf($serializer_226).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_226, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KContractText, 'KContractText', classMeta, VOID, VOID, KContractText, VOID, {0: $serializer_getInstance_226}); + setMetadataFor(Companion_240, 'Companion', objectMeta); + protoOf($serializer_227).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_227, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KAudioInfoEntry, 'KAudioInfoEntry', classMeta, VOID, VOID, KAudioInfoEntry, VOID, {0: $serializer_getInstance_227}); + setMetadataFor(Companion_241, 'Companion', objectMeta); + protoOf($serializer_228).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_228, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KAudio_0, 'KAudio', classMeta, VOID, VOID, KAudio_0, VOID, {0: $serializer_getInstance_228}); + setMetadataFor(Companion_242, 'Companion', objectMeta); + protoOf($serializer_229).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_229, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KAudioInfo, 'KAudioInfo', classMeta, VOID, VOID, KAudioInfo, VOID, {0: $serializer_getInstance_229}); + setMetadataFor(Companion_243, 'Companion', objectMeta); + protoOf($serializer_230).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_230, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KBanner_2, 'KBanner', classMeta, VOID, VOID, KBanner_2, VOID, {0: $serializer_getInstance_230}); + setMetadataFor(Companion_244, 'Companion', objectMeta); + protoOf($serializer_231).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_231, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KReportEntry, 'KReportEntry', classMeta, VOID, VOID, KReportEntry, VOID, {0: $serializer_getInstance_231}); + setMetadataFor(Companion_245, 'Companion', objectMeta); + protoOf($serializer_232).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_232, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KActBannerItem, 'KActBannerItem', classMeta, VOID, VOID, KActBannerItem, VOID, {0: $serializer_getInstance_232}); + setMetadataFor(Companion_246, 'Companion', objectMeta); + protoOf($serializer_233).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_233, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KRelateItem, 'KRelateItem', classMeta, VOID, VOID, KRelateItem, VOID, {0: $serializer_getInstance_233}); + setMetadataFor(Companion_247, 'Companion', objectMeta); + protoOf($serializer_234).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_234, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KActivityEntranceModule_0, 'KActivityEntranceModule', classMeta, VOID, VOID, KActivityEntranceModule_0, VOID, {0: $serializer_getInstance_234}); + setMetadataFor(Companion_248, 'Companion', objectMeta); + protoOf($serializer_235).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_235, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KReportEntry_0, 'KReportEntry', classMeta, VOID, VOID, KReportEntry_0, VOID, {0: $serializer_getInstance_235}); + setMetadataFor(Companion_249, 'Companion', objectMeta); + protoOf($serializer_236).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_236, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KActivityEntrance, 'KActivityEntrance', classMeta, VOID, VOID, KActivityEntrance, VOID, {0: $serializer_getInstance_236}); + setMetadataFor(Companion_250, 'Companion', objectMeta); + protoOf($serializer_237).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_237, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSponsor_0, 'KSponsor', classMeta, VOID, VOID, KSponsor_0, VOID, {0: $serializer_getInstance_237}); + setMetadataFor(Companion_251, 'Companion', objectMeta); + protoOf($serializer_238).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_238, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KPointActivity, 'KPointActivity', classMeta, VOID, VOID, KPointActivity, VOID, {0: $serializer_getInstance_238}); + setMetadataFor(Companion_252, 'Companion', objectMeta); + protoOf($serializer_239).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_239, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSponsorRank, 'KSponsorRank', classMeta, VOID, VOID, KSponsorRank, VOID, {0: $serializer_getInstance_239}); + setMetadataFor(Companion_253, 'Companion', objectMeta); + protoOf($serializer_240).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_240, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KMine, 'KMine', classMeta, VOID, VOID, KMine, VOID, {0: $serializer_getInstance_240}); + setMetadataFor(Companion_254, 'Companion', objectMeta); + protoOf($serializer_241).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_241, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KRelates_0, 'KRelates', classMeta, VOID, VOID, KRelates_0, VOID, {0: $serializer_getInstance_241}); + setMetadataFor(Companion_255, 'Companion', objectMeta); + protoOf($serializer_242).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_242, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KRelateConfig, 'KRelateConfig', classMeta, VOID, VOID, KRelateConfig, VOID, {0: $serializer_getInstance_242}); + setMetadataFor(KCard, 'KCard', classMeta); + setMetadataFor(KAv, 'KAv', objectMeta); + setMetadataFor(KBangumi, 'KBangumi', objectMeta); + setMetadataFor(KResource, 'KResource', objectMeta); + setMetadataFor(KGame, 'KGame', objectMeta); + setMetadataFor(KCm, 'KCm', objectMeta); + setMetadataFor(KLive, 'KLive', objectMeta); + setMetadataFor(KBangumiAv, 'KBangumiAv', objectMeta); + setMetadataFor(KAiCard, 'KAiCard', objectMeta); + setMetadataFor(KBangumiUgc, 'KBangumiUgc', objectMeta); + setMetadataFor(KSpecial, 'KSpecial', objectMeta); + setMetadataFor(KCourse, 'KCourse', objectMeta); + setMetadataFor(Companion_256, 'Companion', objectMeta); + protoOf($serializer_243).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_243, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KRelateCard, 'KRelateCard', classMeta, VOID, VOID, KRelateCard, VOID, {0: $serializer_getInstance_243}); + setMetadataFor(Companion_257, 'Companion', objectMeta); + protoOf($serializer_244).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_244, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KRelateSpecial, 'KRelateSpecial', classMeta, VOID, VOID, KRelateSpecial, VOID, {0: $serializer_getInstance_244}); + setMetadataFor(Companion_258, 'Companion', objectMeta); + protoOf($serializer_245).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_245, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KReportEntry_1, 'KReportEntry', classMeta, VOID, VOID, KReportEntry_1, VOID, {0: $serializer_getInstance_245}); + setMetadataFor(Companion_259, 'Companion', objectMeta); + protoOf($serializer_246).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_246, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KRelatedAICard, 'KRelatedAICard', classMeta, VOID, VOID, KRelatedAICard, VOID, {0: $serializer_getInstance_246}); + setMetadataFor(Companion_260, 'Companion', objectMeta); + protoOf($serializer_247).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_247, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KRelateThreePoint, 'KRelateThreePoint', classMeta, VOID, VOID, KRelateThreePoint, VOID, {0: $serializer_getInstance_247}); + setMetadataFor(Companion_261, 'Companion', objectMeta); + protoOf($serializer_248).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_248, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KRelateDislike, 'KRelateDislike', classMeta, VOID, VOID, KRelateDislike, VOID, {0: $serializer_getInstance_248}); + setMetadataFor(Companion_262, 'Companion', objectMeta); + protoOf($serializer_249).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_249, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCardBasicInfo, 'KCardBasicInfo', classMeta, VOID, VOID, KCardBasicInfo, VOID, {0: $serializer_getInstance_249}); + setMetadataFor(Companion_263, 'Companion', objectMeta); + protoOf($serializer_250).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_250, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KRelateBangumiAvCard, 'KRelateBangumiAvCard', classMeta, VOID, VOID, KRelateBangumiAvCard, VOID, {0: $serializer_getInstance_250}); + setMetadataFor(Companion_264, 'Companion', objectMeta); + protoOf($serializer_251).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_251, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KRelateAVCard, 'KRelateAVCard', classMeta, VOID, VOID, KRelateAVCard, VOID, {0: $serializer_getInstance_251}); + setMetadataFor(Companion_265, 'Companion', objectMeta); + protoOf($serializer_252).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_252, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KRelateCourseCard, 'KRelateCourseCard', classMeta, VOID, VOID, KRelateCourseCard, VOID, {0: $serializer_getInstance_252}); + setMetadataFor(Companion_266, 'Companion', objectMeta); + protoOf($serializer_253).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_253, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KReportEntry_2, 'KReportEntry', classMeta, VOID, VOID, KReportEntry_2, VOID, {0: $serializer_getInstance_253}); + setMetadataFor(Companion_267, 'Companion', objectMeta); + protoOf($serializer_254).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_254, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KRelateBangumiCard, 'KRelateBangumiCard', classMeta, VOID, VOID, KRelateBangumiCard, VOID, {0: $serializer_getInstance_254}); + setMetadataFor(Companion_268, 'Companion', objectMeta); + protoOf($serializer_255).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_255, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KRelateBangumiUGCCard, 'KRelateBangumiUGCCard', classMeta, VOID, VOID, KRelateBangumiUGCCard, VOID, {0: $serializer_getInstance_255}); + setMetadataFor(Companion_269, 'Companion', objectMeta); + protoOf($serializer_256).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_256, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KIconFont, 'KIconFont', classMeta, VOID, VOID, KIconFont, VOID, {0: $serializer_getInstance_256}); + setMetadataFor(Companion_270, 'Companion', objectMeta); + protoOf($serializer_257).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_257, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KUserStatus, 'KUserStatus', classMeta, VOID, VOID, KUserStatus, VOID, {0: $serializer_getInstance_257}); + setMetadataFor(Companion_271, 'Companion', objectMeta); + protoOf($serializer_258).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_258, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KReportEntry_3, 'KReportEntry', classMeta, VOID, VOID, KReportEntry_3, VOID, {0: $serializer_getInstance_258}); + setMetadataFor(Companion_272, 'Companion', objectMeta); + protoOf($serializer_259).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_259, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KRelateBangumiResourceCard, 'KRelateBangumiResourceCard', classMeta, VOID, VOID, KRelateBangumiResourceCard, VOID, {0: $serializer_getInstance_259}); + setMetadataFor(Companion_273, 'Companion', objectMeta); + protoOf($serializer_260).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_260, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KRelateGameCard, 'KRelateGameCard', classMeta, VOID, VOID, KRelateGameCard, VOID, {0: $serializer_getInstance_260}); + setMetadataFor(Companion_274, 'Companion', objectMeta); + protoOf($serializer_261).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_261, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KWikiInfo, 'KWikiInfo', classMeta, VOID, VOID, KWikiInfo, VOID, {0: $serializer_getInstance_261}); + setMetadataFor(Companion_275, 'Companion', objectMeta); + protoOf($serializer_262).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_262, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KPowerIconStyle, 'KPowerIconStyle', classMeta, VOID, VOID, KPowerIconStyle, VOID, {0: $serializer_getInstance_262}); + setMetadataFor(Companion_276, 'Companion', objectMeta); + protoOf($serializer_263).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_263, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KRankInfo, 'KRankInfo', classMeta, VOID, VOID, KRankInfo, VOID, {0: $serializer_getInstance_263}); + setMetadataFor(Companion_277, 'Companion', objectMeta); + protoOf($serializer_264).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_264, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KRelateCMCard, 'KRelateCMCard', classMeta, VOID, VOID, KRelateCMCard, VOID, {0: $serializer_getInstance_264}); + setMetadataFor(Companion_278, 'Companion', objectMeta); + protoOf($serializer_265).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_265, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KRelateLiveCard, 'KRelateLiveCard', classMeta, VOID, VOID, KRelateLiveCard, VOID, {0: $serializer_getInstance_265}); + setMetadataFor(Companion_279, 'Companion', objectMeta); + protoOf($serializer_266).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_266, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KReportEntry_4, 'KReportEntry', classMeta, VOID, VOID, KReportEntry_4, VOID, {0: $serializer_getInstance_266}); + setMetadataFor(Companion_280, 'Companion', objectMeta); + protoOf($serializer_267).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_267, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KOgvLiveReserve_0, 'KOgvLiveReserve', classMeta, VOID, VOID, KOgvLiveReserve_0, VOID, {0: $serializer_getInstance_267}); + setMetadataFor(Companion_281, 'Companion', objectMeta); + protoOf($serializer_268).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_268, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KOgvSeasons_0, 'KOgvSeasons', classMeta, VOID, VOID, KOgvSeasons_0, VOID, {0: $serializer_getInstance_268}); + setMetadataFor(Companion_282, 'Companion', objectMeta); + protoOf($serializer_269).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_269, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KUgcSeasons, 'KUgcSeasons', classMeta, VOID, VOID, KUgcSeasons, VOID, {0: $serializer_getInstance_269}); + setMetadataFor(Companion_283, 'Companion', objectMeta); + protoOf($serializer_270).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_270, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSeasonHead, 'KSeasonHead', classMeta, VOID, VOID, KSeasonHead, VOID, {0: $serializer_getInstance_270}); + setMetadataFor(Companion_284, 'Companion', objectMeta); + protoOf($serializer_271).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_271, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KUgcSection, 'KUgcSection', classMeta, VOID, VOID, KUgcSection, VOID, {0: $serializer_getInstance_271}); + setMetadataFor(Companion_285, 'Companion', objectMeta); + protoOf($serializer_272).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_272, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KUgcEpisode, 'KUgcEpisode', classMeta, VOID, VOID, KUgcEpisode, VOID, {0: $serializer_getInstance_272}); + setMetadataFor(Companion_286, 'Companion', objectMeta); + protoOf($serializer_273).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_273, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KUgcSeasonActivity, 'KUgcSeasonActivity', classMeta, VOID, VOID, KUgcSeasonActivity, VOID, {0: $serializer_getInstance_273}); + setMetadataFor(Companion_287, 'Companion', objectMeta); + protoOf($serializer_274).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_274, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KUserActivity, 'KUserActivity', classMeta, VOID, VOID, KUserActivity, VOID, {0: $serializer_getInstance_274}); + setMetadataFor(Companion_288, 'Companion', objectMeta); + protoOf($serializer_275).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_275, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSeasonShow, 'KSeasonShow', classMeta, VOID, VOID, KSeasonShow, VOID, {0: $serializer_getInstance_275}); + setMetadataFor(Companion_289, 'Companion', objectMeta); + protoOf($serializer_276).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_276, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KReportEntry_5, 'KReportEntry', classMeta, VOID, VOID, KReportEntry_5, VOID, {0: $serializer_getInstance_276}); + setMetadataFor(Companion_290, 'Companion', objectMeta); + protoOf($serializer_277).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_277, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSerialSeason_0, 'KSerialSeason', classMeta, VOID, VOID, KSerialSeason_0, VOID, {0: $serializer_getInstance_277}); + setMetadataFor(Companion_291, 'Companion', objectMeta); + protoOf($serializer_278).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_278, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KNewEp, 'KNewEp', classMeta, VOID, VOID, KNewEp, VOID, {0: $serializer_getInstance_278}); + setMetadataFor(Companion_292, 'Companion', objectMeta); + protoOf($serializer_279).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_279, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KReportEntry_6, 'KReportEntry', classMeta, VOID, VOID, KReportEntry_6, VOID, {0: $serializer_getInstance_279}); + setMetadataFor(Companion_293, 'Companion', objectMeta); + protoOf($serializer_280).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_280, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KFollowLayer_0, 'KFollowLayer', classMeta, VOID, VOID, KFollowLayer_0, VOID, {0: $serializer_getInstance_280}); + setMetadataFor(Companion_294, 'Companion', objectMeta); + protoOf($serializer_281).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_281, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KDesc, 'KDesc', classMeta, VOID, VOID, KDesc, VOID, {0: $serializer_getInstance_281}); + setMetadataFor(Companion_295, 'Companion', objectMeta); + protoOf($serializer_282).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_282, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KReportEntry_7, 'KReportEntry', classMeta, VOID, VOID, KReportEntry_7, VOID, {0: $serializer_getInstance_282}); + setMetadataFor(Companion_296, 'Companion', objectMeta); + protoOf($serializer_283).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_283, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSectionData_0, 'KSectionData', classMeta, VOID, VOID, KSectionData_0, VOID, {0: $serializer_getInstance_283}); + setMetadataFor(Companion_297, 'Companion', objectMeta); + protoOf($serializer_284).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_284, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KButton_0, 'KButton', classMeta, VOID, VOID, KButton_0, VOID, {0: $serializer_getInstance_284}); + setMetadataFor(Companion_298, 'Companion', objectMeta); + protoOf($serializer_285).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_285, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCombinationEp_0, 'KCombinationEp', classMeta, VOID, VOID, KCombinationEp_0, VOID, {0: $serializer_getInstance_285}); + setMetadataFor(Companion_299, 'Companion', objectMeta); + protoOf($serializer_286).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_286, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KData_1, 'KData', classMeta); + setMetadataFor(KActivity, 'KActivity', objectMeta); + setMetadataFor(KCharacters, 'KCharacters', objectMeta); + setMetadataFor(KTheatreHotTopic, 'KTheatreHotTopic', objectMeta); + setMetadataFor(KAggEps, 'KAggEps', objectMeta); + setMetadataFor(KActPageItems, 'KActPageItems', objectMeta); + setMetadataFor(Companion_300, 'Companion', objectMeta); + setMetadataFor(KReportEntry_8, 'KReportEntry', classMeta, VOID, VOID, KReportEntry_8, VOID, {0: $serializer_getInstance_286}); + protoOf($serializer_287).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_287, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KDeliveryData_0, 'KDeliveryData', classMeta, VOID, VOID, KDeliveryData_0, VOID, {0: $serializer_getInstance_287}); + setMetadataFor(Companion_301, 'Companion', objectMeta); + protoOf($serializer_288).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_288, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KAggEps_0, 'KAggEps', classMeta, VOID, VOID, KAggEps_0, VOID, {0: $serializer_getInstance_288}); + setMetadataFor(Companion_302, 'Companion', objectMeta); + protoOf($serializer_289).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_289, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KAggEpCard, 'KAggEpCard', classMeta, VOID, VOID, KAggEpCard, VOID, {0: $serializer_getInstance_289}); + setMetadataFor(Companion_303, 'Companion', objectMeta); + protoOf($serializer_290).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_290, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KReportEntry_9, 'KReportEntry', classMeta, VOID, VOID, KReportEntry_9, VOID, {0: $serializer_getInstance_290}); + setMetadataFor(Companion_304, 'Companion', objectMeta); + protoOf($serializer_291).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_291, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KTheatreHotTopic_0, 'KTheatreHotTopic', classMeta, VOID, VOID, KTheatreHotTopic_0, VOID, {0: $serializer_getInstance_291}); + setMetadataFor(Companion_305, 'Companion', objectMeta); + protoOf($serializer_292).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_292, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KActPageItems_0, 'KActPageItems', classMeta, VOID, VOID, KActPageItems_0, VOID, {0: $serializer_getInstance_292}); + setMetadataFor(Companion_306, 'Companion', objectMeta); + protoOf($serializer_293).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_293, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KActivity_0, 'KActivity', classMeta, VOID, VOID, KActivity_0, VOID, {0: $serializer_getInstance_293}); + setMetadataFor(Companion_307, 'Companion', objectMeta); + protoOf($serializer_294).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_294, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KPendant, 'KPendant', classMeta, VOID, VOID, KPendant, VOID, {0: $serializer_getInstance_294}); + setMetadataFor(Companion_308, 'Companion', objectMeta); + protoOf($serializer_295).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_295, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KThreshold, 'KThreshold', classMeta, VOID, VOID, KThreshold, VOID, {0: $serializer_getInstance_295}); + setMetadataFor(Companion_309, 'Companion', objectMeta); + protoOf($serializer_296).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_296, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KItem, 'KItem', classMeta, VOID, VOID, KItem, VOID, {0: $serializer_getInstance_296}); + setMetadataFor(Companion_310, 'Companion', objectMeta); + protoOf($serializer_297).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_297, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCharacters_0, 'KCharacters', classMeta, VOID, VOID, KCharacters_0, VOID, {0: $serializer_getInstance_297}); + setMetadataFor(Companion_311, 'Companion', objectMeta); + protoOf($serializer_298).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_298, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCharacterGroup, 'KCharacterGroup', classMeta, VOID, VOID, KCharacterGroup, VOID, {0: $serializer_getInstance_298}); + setMetadataFor(Companion_312, 'Companion', objectMeta); + protoOf($serializer_299).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_299, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KReportEntry_10, 'KReportEntry', classMeta, VOID, VOID, KReportEntry_10, VOID, {0: $serializer_getInstance_299}); + setMetadataFor(Companion_313, 'Companion', objectMeta); + protoOf($serializer_300).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_300, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCelebrity, 'KCelebrity', classMeta, VOID, VOID, KCelebrity, VOID, {0: $serializer_getInstance_300}); + setMetadataFor(Companion_314, 'Companion', objectMeta); + protoOf($serializer_301).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_301, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KStyle, 'KStyle', classMeta, VOID, VOID, KStyle, VOID, {0: $serializer_getInstance_301}); + setMetadataFor(Companion_315, 'Companion', objectMeta); + protoOf($serializer_302).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_302, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCardStyle, 'KCardStyle', classMeta, VOID, VOID, KCardStyle, VOID, {0: $serializer_getInstance_302}); + setMetadataFor(Companion_316, 'Companion', objectMeta); + protoOf($serializer_303).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_303, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KReportEntry_11, 'KReportEntry', classMeta, VOID, VOID, KReportEntry_11, VOID, {0: $serializer_getInstance_303}); + setMetadataFor(Companion_317, 'Companion', objectMeta); + protoOf($serializer_304).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_304, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KViewEpisode, 'KViewEpisode', classMeta, VOID, VOID, KViewEpisode, VOID, {0: $serializer_getInstance_304}); + setMetadataFor(Companion_318, 'Companion', objectMeta); + protoOf($serializer_305).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_305, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KRights, 'KRights', classMeta, VOID, VOID, KRights, VOID, {0: $serializer_getInstance_305}); + setMetadataFor(Companion_319, 'Companion', objectMeta); + protoOf($serializer_306).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_306, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KInteraction_1, 'KInteraction', classMeta, VOID, VOID, KInteraction_1, VOID, {0: $serializer_getInstance_306}); + setMetadataFor(Companion_320, 'Companion', objectMeta); + protoOf($serializer_307).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_307, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KHistoryNode, 'KHistoryNode', classMeta, VOID, VOID, KHistoryNode, VOID, {0: $serializer_getInstance_307}); + setMetadataFor(Companion_321, 'Companion', objectMeta); + protoOf($serializer_308).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_308, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSkipRange, 'KSkipRange', classMeta, VOID, VOID, KSkipRange, VOID, {0: $serializer_getInstance_308}); + setMetadataFor(Companion_322, 'Companion', objectMeta); + protoOf($serializer_309).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_309, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KMultiViewEp, 'KMultiViewEp', classMeta, VOID, VOID, KMultiViewEp, VOID, {0: $serializer_getInstance_309}); + setMetadataFor(Companion_323, 'Companion', objectMeta); + protoOf($serializer_310).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_310, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KLikeComment_0, 'KLikeComment', classMeta, VOID, VOID, KLikeComment_0, VOID, {0: $serializer_getInstance_310}); + setMetadataFor(Companion_324, 'Companion', objectMeta); + protoOf($serializer_311).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_311, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KLiveOrder_0, 'KLiveOrder', classMeta, VOID, VOID, KLiveOrder_0, VOID, {0: $serializer_getInstance_311}); + setMetadataFor(Companion_325, 'Companion', objectMeta); + protoOf($serializer_312).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_312, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KActivityReserve_0, 'KActivityReserve', classMeta, VOID, VOID, KActivityReserve_0, VOID, {0: $serializer_getInstance_312}); + setMetadataFor(KOrderParam, 'KOrderParam', classMeta); + setMetadataFor(KReserve, 'KReserve', objectMeta); + setMetadataFor(KFav, 'KFav', objectMeta); + setMetadataFor(Companion_326, 'Companion', objectMeta); + protoOf($serializer_313).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_313, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KReserveButton, 'KReserveButton', classMeta, VOID, VOID, KReserveButton, VOID, {0: $serializer_getInstance_313}); + setMetadataFor(Companion_327, 'Companion', objectMeta); + protoOf($serializer_314).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_314, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KOgvTitle_0, 'KOgvTitle', classMeta, VOID, VOID, KOgvTitle_0, VOID, {0: $serializer_getInstance_314}); + setMetadataFor(Companion_328, 'Companion', objectMeta); + protoOf($serializer_315).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_315, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KReportEntry_12, 'KReportEntry', classMeta, VOID, VOID, KReportEntry_12, VOID, {0: $serializer_getInstance_315}); + setMetadataFor(Companion_329, 'Companion', objectMeta); + protoOf($serializer_316).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_316, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KTitleDeliveryButton, 'KTitleDeliveryButton', classMeta, VOID, VOID, KTitleDeliveryButton, VOID, {0: $serializer_getInstance_316}); + setMetadataFor(Companion_330, 'Companion', objectMeta); + protoOf($serializer_317).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_317, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCatalogTab, 'KCatalogTab', classMeta, VOID, VOID, KCatalogTab, VOID, {0: $serializer_getInstance_317}); + setMetadataFor(Companion_331, 'Companion', objectMeta); + protoOf($serializer_318).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_318, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KReportEntry_13, 'KReportEntry', classMeta, VOID, VOID, KReportEntry_13, VOID, {0: $serializer_getInstance_318}); + setMetadataFor(Companion_332, 'Companion', objectMeta); + protoOf($serializer_319).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_319, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KActivityTab, 'KActivityTab', classMeta, VOID, VOID, KActivityTab, VOID, {0: $serializer_getInstance_319}); + setMetadataFor(Companion_333, 'Companion', objectMeta); + protoOf($serializer_320).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_320, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KDimension_0, 'KDimension', classMeta, VOID, VOID, KDimension_0, VOID, {0: $serializer_getInstance_320}); + setMetadataFor(Companion_334, 'Companion', objectMeta); + protoOf($serializer_321).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_321, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KStaff, 'KStaff', classMeta, VOID, VOID, KStaff, VOID, {0: $serializer_getInstance_321}); + setMetadataFor(Companion_335, 'Companion', objectMeta); + protoOf($serializer_322).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_322, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KVip, 'KVip', classMeta, VOID, VOID, KVip, VOID, {0: $serializer_getInstance_322}); + setMetadataFor(Companion_336, 'Companion', objectMeta); + protoOf($serializer_323).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_323, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KVipLabel, 'KVipLabel', classMeta, VOID, VOID, KVipLabel, VOID, {0: $serializer_getInstance_323}); + setMetadataFor(Companion_337, 'Companion', objectMeta); + protoOf($serializer_324).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_324, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KOfficialVerify, 'KOfficialVerify', classMeta, VOID, VOID, KOfficialVerify, VOID, {0: $serializer_getInstance_324}); + setMetadataFor(Companion_338, 'Companion', objectMeta); + protoOf($serializer_325).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_325, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KStaffs_0, 'KStaffs', classMeta, VOID, VOID, KStaffs_0, VOID, {0: $serializer_getInstance_325}); + setMetadataFor(Companion_339, 'Companion', objectMeta); + protoOf($serializer_326).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_326, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KOwner, 'KOwner', classMeta, VOID, VOID, KOwner, VOID, {0: $serializer_getInstance_326}); + setMetadataFor(Companion_340, 'Companion', objectMeta); + protoOf($serializer_327).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_327, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KLive_0, 'KLive', classMeta, VOID, VOID, KLive_0, VOID, {0: $serializer_getInstance_327}); + setMetadataFor(Companion_341, 'Companion', objectMeta); + protoOf($serializer_328).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_328, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KPugvSeasonSelection_0, 'KPugvSeasonSelection', classMeta, VOID, VOID, KPugvSeasonSelection_0, VOID, {0: $serializer_getInstance_328}); + setMetadataFor(Companion_342, 'Companion', objectMeta); + protoOf($serializer_329).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_329, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KPugvSeasonPrimaryHotRank, 'KPugvSeasonPrimaryHotRank', classMeta, VOID, VOID, KPugvSeasonPrimaryHotRank, VOID, {0: $serializer_getInstance_329}); + setMetadataFor(Companion_343, 'Companion', objectMeta); + protoOf($serializer_330).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_330, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KPugvSeasonPrimaryBadge, 'KPugvSeasonPrimaryBadge', classMeta, VOID, VOID, KPugvSeasonPrimaryBadge, VOID, {0: $serializer_getInstance_330}); + setMetadataFor(Companion_344, 'Companion', objectMeta); + protoOf($serializer_331).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_331, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KPugvSeasonPrimaryRankInfo, 'KPugvSeasonPrimaryRankInfo', classMeta, VOID, VOID, KPugvSeasonPrimaryRankInfo, VOID, {0: $serializer_getInstance_331}); + setMetadataFor(Companion_345, 'Companion', objectMeta); + protoOf($serializer_332).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_332, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KPugvSeasonPrimarySellPointInfo, 'KPugvSeasonPrimarySellPointInfo', classMeta, VOID, VOID, KPugvSeasonPrimarySellPointInfo, VOID, {0: $serializer_getInstance_332}); + setMetadataFor(Companion_346, 'Companion', objectMeta); + protoOf($serializer_333).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_333, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KPugvSeasonPrimarySellPoint, 'KPugvSeasonPrimarySellPoint', classMeta, VOID, VOID, KPugvSeasonPrimarySellPoint, VOID, {0: $serializer_getInstance_333}); + setMetadataFor(Companion_347, 'Companion', objectMeta); + protoOf($serializer_334).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_334, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KPugvSeasonPrimaryCustomInfo, 'KPugvSeasonPrimaryCustomInfo', classMeta, VOID, VOID, KPugvSeasonPrimaryCustomInfo, VOID, {0: $serializer_getInstance_334}); + setMetadataFor(Companion_348, 'Companion', objectMeta); + protoOf($serializer_335).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_335, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KPugvSeasonPrimaryInfo_0, 'KPugvSeasonPrimaryInfo', classMeta, VOID, VOID, KPugvSeasonPrimaryInfo_0, VOID, {0: $serializer_getInstance_335}); + setMetadataFor(Companion_349, 'Companion', objectMeta); + protoOf($serializer_336).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_336, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KPugvCooperationApplication_0, 'KPugvCooperationApplication', classMeta, VOID, VOID, KPugvCooperationApplication_0, VOID, {0: $serializer_getInstance_336}); + setMetadataFor(Companion_350, 'Companion', objectMeta); + protoOf($serializer_337).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_337, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KPugvSeasonNav, 'KPugvSeasonNav', classMeta, VOID, VOID, KPugvSeasonNav, VOID, {0: $serializer_getInstance_337}); + setMetadataFor(Companion_351, 'Companion', objectMeta); + protoOf($serializer_338).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_338, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KPugvShoppingNotice_0, 'KPugvShoppingNotice', classMeta, VOID, VOID, KPugvShoppingNotice_0, VOID, {0: $serializer_getInstance_338}); + setMetadataFor(Companion_352, 'Companion', objectMeta); + protoOf($serializer_339).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_339, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KPugvShoppingNoticeContent, 'KPugvShoppingNoticeContent', classMeta, VOID, VOID, KPugvShoppingNoticeContent, VOID, {0: $serializer_getInstance_339}); + setMetadataFor(Companion_353, 'Companion', objectMeta); + protoOf($serializer_340).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_340, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KPugvFaq_0, 'KPugvFaq', classMeta, VOID, VOID, KPugvFaq_0, VOID, {0: $serializer_getInstance_340}); + setMetadataFor(Companion_354, 'Companion', objectMeta); + protoOf($serializer_341).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_341, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KPugvFaqContent, 'KPugvFaqContent', classMeta, VOID, VOID, KPugvFaqContent, VOID, {0: $serializer_getInstance_341}); + setMetadataFor(Companion_355, 'Companion', objectMeta); + protoOf($serializer_342).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_342, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KPugvSeasonRecommend_0, 'KPugvSeasonRecommend', classMeta, VOID, VOID, KPugvSeasonRecommend_0, VOID, {0: $serializer_getInstance_342}); + setMetadataFor(Companion_356, 'Companion', objectMeta); + protoOf($serializer_343).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_343, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KPugvSeasonRecommendContent, 'KPugvSeasonRecommendContent', classMeta, VOID, VOID, KPugvSeasonRecommendContent, VOID, {0: $serializer_getInstance_343}); + setMetadataFor(Companion_357, 'Companion', objectMeta); + protoOf($serializer_344).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_344, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KPugvSeasonRecommendMore, 'KPugvSeasonRecommendMore', classMeta, VOID, VOID, KPugvSeasonRecommendMore, VOID, {0: $serializer_getInstance_344}); + setMetadataFor(Companion_358, 'Companion', objectMeta); + protoOf($serializer_345).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_345, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KPugvSeasonPublisher_0, 'KPugvSeasonPublisher', classMeta, VOID, VOID, KPugvSeasonPublisher_0, VOID, {0: $serializer_getInstance_345}); + setMetadataFor(Companion_359, 'Companion', objectMeta); + protoOf($serializer_346).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_346, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KPugvSeasonCooperator, 'KPugvSeasonCooperator', classMeta, VOID, VOID, KPugvSeasonCooperator, VOID, {0: $serializer_getInstance_346}); + setMetadataFor(Companion_360, 'Companion', objectMeta); + protoOf($serializer_347).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_347, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KPugvSeasonPublisherSkuContent, 'KPugvSeasonPublisherSkuContent', classMeta, VOID, VOID, KPugvSeasonPublisherSkuContent, VOID, {0: $serializer_getInstance_347}); + setMetadataFor(Companion_361, 'Companion', objectMeta); + protoOf($serializer_348).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_348, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KPugvSeasonPublisherSkuContentItem, 'KPugvSeasonPublisherSkuContentItem', classMeta, VOID, VOID, KPugvSeasonPublisherSkuContentItem, VOID, {0: $serializer_getInstance_348}); + setMetadataFor(KContent_0, 'KContent', classMeta); + setMetadataFor(KText, 'KText', objectMeta); + setMetadataFor(KImage, 'KImage', objectMeta); + setMetadataFor(Companion_362, 'Companion', objectMeta); + protoOf($serializer_349).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_349, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KPugvSeasonDescription_0, 'KPugvSeasonDescription', classMeta, VOID, VOID, KPugvSeasonDescription_0, VOID, {0: $serializer_getInstance_349}); + setMetadataFor(Companion_363, 'Companion', objectMeta); + protoOf($serializer_350).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_350, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KPugvSeasonDescriptionText, 'KPugvSeasonDescriptionText', classMeta, VOID, VOID, KPugvSeasonDescriptionText, VOID, {0: $serializer_getInstance_350}); + setMetadataFor(Companion_364, 'Companion', objectMeta); + protoOf($serializer_351).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_351, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KPugvSeasonDescriptionImage, 'KPugvSeasonDescriptionImage', classMeta, VOID, VOID, KPugvSeasonDescriptionImage, VOID, {0: $serializer_getInstance_351}); + setMetadataFor(Companion_365, 'Companion', objectMeta); + protoOf($serializer_352).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_352, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KPugvSeasonDescriptionImageItem, 'KPugvSeasonDescriptionImageItem', classMeta, VOID, VOID, KPugvSeasonDescriptionImageItem, VOID, {0: $serializer_getInstance_352}); + setMetadataFor(Companion_366, 'Companion', objectMeta); + protoOf($serializer_353).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_353, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KPugvZone_0, 'KPugvZone', classMeta, VOID, VOID, KPugvZone_0, VOID, {0: $serializer_getInstance_353}); + setMetadataFor(Companion_367, 'Companion', objectMeta); + protoOf($serializer_354).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_354, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KPugvZoneItem, 'KPugvZoneItem', classMeta, VOID, VOID, KPugvZoneItem, VOID, {0: $serializer_getInstance_354}); + setMetadataFor(Companion_368, 'Companion', objectMeta); + protoOf($serializer_355).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_355, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KPugvSeries_0, 'KPugvSeries', classMeta, VOID, VOID, KPugvSeries_0, VOID, {0: $serializer_getInstance_355}); + setMetadataFor(Companion_369, 'Companion', objectMeta); + protoOf($serializer_356).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_356, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KPugvSeriesItem, 'KPugvSeriesItem', classMeta, VOID, VOID, KPugvSeriesItem, VOID, {0: $serializer_getInstance_356}); + setMetadataFor(Companion_370, 'Companion', objectMeta); + protoOf($serializer_357).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_357, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KPugvPackage_0, 'KPugvPackage', classMeta, VOID, VOID, KPugvPackage_0, VOID, {0: $serializer_getInstance_357}); + setMetadataFor(Companion_371, 'Companion', objectMeta); + protoOf($serializer_358).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_358, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KPugvPackageItem, 'KPugvPackageItem', classMeta, VOID, VOID, KPugvPackageItem, VOID, {0: $serializer_getInstance_358}); + setMetadataFor(Companion_372, 'Companion', objectMeta); + protoOf($serializer_359).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_359, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KProfessionApproval_0, 'KProfessionApproval', classMeta, VOID, VOID, KProfessionApproval_0, VOID, {0: $serializer_getInstance_359}); + setMetadataFor(Companion_373, 'Companion', objectMeta); + protoOf($serializer_360).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_360, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KExtend, 'KExtend', classMeta); + setMetadataFor(KProfessionExt, 'KProfessionExt', objectMeta); + setMetadataFor(Companion_374, 'Companion', objectMeta); + setMetadataFor(KReportEntry_14, 'KReportEntry', classMeta, VOID, VOID, KReportEntry_14, VOID, {0: $serializer_getInstance_360}); + protoOf($serializer_361).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_361, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KHonor_0, 'KHonor', classMeta, VOID, VOID, KHonor_0, VOID, {0: $serializer_getInstance_361}); + setMetadataFor(Companion_375, 'Companion', objectMeta); + protoOf($serializer_362).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_362, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KUserList, 'KUserList', classMeta, VOID, VOID, KUserList, VOID, {0: $serializer_getInstance_362}); + setMetadataFor(Companion_376, 'Companion', objectMeta); + protoOf($serializer_363).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_363, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KUser, 'KUser', classMeta, VOID, VOID, KUser, VOID, {0: $serializer_getInstance_363}); + setMetadataFor(Companion_377, 'Companion', objectMeta); + protoOf($serializer_364).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_364, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KOgvIntroduction_0, 'KOgvIntroduction', classMeta, VOID, VOID, KOgvIntroduction_0, VOID, {0: $serializer_getInstance_364}); + setMetadataFor(Companion_378, 'Companion', objectMeta); + protoOf($serializer_365).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_365, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KUgcIntroduction_0, 'KUgcIntroduction', classMeta, VOID, VOID, KUgcIntroduction_0, VOID, {0: $serializer_getInstance_365}); + setMetadataFor(Companion_379, 'Companion', objectMeta); + protoOf($serializer_366).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_366, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KNeutral, 'KNeutral', classMeta, VOID, VOID, KNeutral, VOID, {0: $serializer_getInstance_366}); + setMetadataFor(Companion_380, 'Companion', objectMeta); + protoOf($serializer_367).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_367, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KStatInfo, 'KStatInfo', classMeta, VOID, VOID, KStatInfo, VOID, {0: $serializer_getInstance_367}); + setMetadataFor(Companion_381, 'Companion', objectMeta); + protoOf($serializer_368).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_368, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KDescV2, 'KDescV2', classMeta, VOID, VOID, KDescV2, VOID, {0: $serializer_getInstance_368}); + setMetadataFor(Companion_382, 'Companion', objectMeta); + protoOf($serializer_369).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_369, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KRank, 'KRank', classMeta, VOID, VOID, KRank, VOID, {0: $serializer_getInstance_369}); + setMetadataFor(Companion_383, 'Companion', objectMeta); + protoOf($serializer_370).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_370, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KKingPosition_0, 'KKingPosition', classMeta, VOID, VOID, KKingPosition_0, VOID, {0: $serializer_getInstance_370}); + setMetadataFor(Companion_384, 'Companion', objectMeta); + protoOf($serializer_371).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_371, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KRating, 'KRating', classMeta, VOID, VOID, KRating, VOID, {0: $serializer_getInstance_371}); + setMetadataFor(Companion_385, 'Companion', objectMeta); + protoOf($serializer_372).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_372, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KViewMaterial, 'KViewMaterial', classMeta, VOID, VOID, KViewMaterial, VOID, {0: $serializer_getInstance_372}); + setMetadataFor(Companion_386, 'Companion', objectMeta); + protoOf($serializer_373).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_373, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KHeadline, 'KHeadline', classMeta, VOID, VOID, KHeadline, VOID, {0: $serializer_getInstance_373}); + setMetadataFor(Companion_387, 'Companion', objectMeta); + protoOf($serializer_374).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_374, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KLabel_0, 'KLabel', classMeta, VOID, VOID, KLabel_0, VOID, {0: $serializer_getInstance_374}); + setMetadataFor(Companion_388, 'Companion', objectMeta); + protoOf($serializer_375).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_375, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KTag, 'KTag', classMeta, VOID, VOID, KTag, VOID, {0: $serializer_getInstance_375}); + setMetadataFor(KExtend_0, 'KExtend', classMeta); + setMetadataFor(KLike, 'KLike', objectMeta); + setMetadataFor(KCoin, 'KCoin', objectMeta); + setMetadataFor(Companion_389, 'Companion', objectMeta); + protoOf($serializer_376).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_376, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KKingPos, 'KKingPos', classMeta, VOID, VOID, KKingPos, VOID, {0: $serializer_getInstance_376}); + setMetadataFor(Companion_390, 'Companion', objectMeta); + protoOf($serializer_377).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_377, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KBadgeInfo_0, 'KBadgeInfo', classMeta, VOID, VOID, KBadgeInfo_0, VOID, {0: $serializer_getInstance_377}); + setMetadataFor(Companion_391, 'Companion', objectMeta); + protoOf($serializer_378).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_378, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCoinExtend, 'KCoinExtend', classMeta, VOID, VOID, KCoinExtend, VOID, {0: $serializer_getInstance_378}); + setMetadataFor(Companion_392, 'Companion', objectMeta); + protoOf($serializer_379).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_379, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KLikeExtend, 'KLikeExtend', classMeta, VOID, VOID, KLikeExtend, VOID, {0: $serializer_getInstance_379}); + setMetadataFor(Companion_393, 'Companion', objectMeta); + protoOf($serializer_380).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_380, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KActivityResource, 'KActivityResource', classMeta, VOID, VOID, KActivityResource, VOID, {0: $serializer_getInstance_380}); + setMetadataFor(Companion_394, 'Companion', objectMeta); + protoOf($serializer_381).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_381, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KPlayerAnimation, 'KPlayerAnimation', classMeta, VOID, VOID, KPlayerAnimation, VOID, {0: $serializer_getInstance_381}); + setMetadataFor(Companion_395, 'Companion', objectMeta); + protoOf($serializer_382).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_382, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KDislikeReasons, 'KDislikeReasons', classMeta, VOID, VOID, KDislikeReasons, VOID, {0: $serializer_getInstance_382}); + setMetadataFor(Companion_396, 'Companion', objectMeta); + protoOf($serializer_383).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_383, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KUpLikeImg, 'KUpLikeImg', classMeta, VOID, VOID, KUpLikeImg, VOID, {0: $serializer_getInstance_383}); + setMetadataFor(Companion_397, 'Companion', objectMeta); + protoOf($serializer_384).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_384, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KBizReserveActivityParam, 'KBizReserveActivityParam', classMeta, VOID, VOID, KBizReserveActivityParam, VOID, {0: $serializer_getInstance_384}); + setMetadataFor(Companion_398, 'Companion', objectMeta); + protoOf($serializer_385).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_385, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KBizFavParam, 'KBizFavParam', classMeta, VOID, VOID, KBizFavParam, VOID, {0: $serializer_getInstance_385}); + setMetadataFor(Companion_399, 'Companion', objectMeta); + protoOf($serializer_386).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_386, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KPage, 'KPage', classMeta, VOID, VOID, KPage, VOID, {0: $serializer_getInstance_386}); + setMetadataFor(Companion_400, 'Companion', objectMeta); + protoOf($serializer_387).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_387, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KStat, 'KStat', classMeta, VOID, VOID, KStat, VOID, {0: $serializer_getInstance_387}); + setMetadataFor(Companion_401, 'Companion', objectMeta); + protoOf($serializer_388).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_388, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSpecialCell, 'KSpecialCell', classMeta, VOID, VOID, KSpecialCell, VOID, {0: $serializer_getInstance_388}); + setMetadataFor(Companion_402, 'Companion', objectMeta); + protoOf($serializer_389).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_389, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCellFluid, 'KCellFluid', classMeta, VOID, VOID, KCellFluid, VOID, {0: $serializer_getInstance_389}); + setMetadataFor(Companion_403, 'Companion', objectMeta); + protoOf($serializer_390).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_390, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KProfessionHonorExtend, 'KProfessionHonorExtend', classMeta, VOID, VOID, KProfessionHonorExtend, VOID, {0: $serializer_getInstance_390}); + setMetadataFor(Companion_404, 'Companion', objectMeta); + protoOf($serializer_391).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_391, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KProfessionPopup, 'KProfessionPopup', classMeta, VOID, VOID, KProfessionPopup, VOID, {0: $serializer_getInstance_391}); + setMetadataFor(Companion_405, 'Companion', objectMeta); + protoOf($serializer_392).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_392, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KReserveCalendarInfo, 'KReserveCalendarInfo', classMeta, VOID, VOID, KReserveCalendarInfo, VOID, {0: $serializer_getInstance_392}); + setMetadataFor(Companion_406, 'Companion', objectMeta); + protoOf($serializer_393).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_393, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KEpBgInfo, 'KEpBgInfo', classMeta, VOID, VOID, KEpBgInfo, VOID, {0: $serializer_getInstance_393}); + setMetadataFor(Companion_407, 'Companion', objectMeta); + protoOf($serializer_394).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_394, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KBgInfo, 'KBgInfo', classMeta, VOID, VOID, KBgInfo, VOID, {0: $serializer_getInstance_394}); + setMetadataFor(Companion_408, 'Companion', objectMeta); + protoOf($serializer_395).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_395, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KECode, 'KECode', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_408}); + setMetadataFor(Companion_409, 'Companion', objectMeta); + protoOf($serializer_396).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_396, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KPlayToastEnum, 'KPlayToastEnum', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_409}); + setMetadataFor(Companion_410, 'Companion', objectMeta); + protoOf($serializer_397).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_397, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KJumpShowType, 'KJumpShowType', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_410}); + setMetadataFor(Companion_411, 'Companion', objectMeta); + protoOf($serializer_398).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_398, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KTabType, 'KTabType', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_411}); + setMetadataFor(Companion_412, 'Companion', objectMeta); + protoOf($serializer_399).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_399, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KPageCategory, 'KPageCategory', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_412}); + setMetadataFor(Companion_413, 'Companion', objectMeta); + protoOf($serializer_400).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_400, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KBizType_0, 'KBizType', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_413}); + setMetadataFor(Companion_414, 'Companion', objectMeta); + protoOf($serializer_401).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_401, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KPageType, 'KPageType', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_414}); + setMetadataFor(Companion_415, 'Companion', objectMeta); + protoOf($serializer_402).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_402, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KUnionType, 'KUnionType', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_415}); + setMetadataFor(Companion_416, 'Companion', objectMeta); + protoOf($serializer_403).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_403, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KMaterialSource, 'KMaterialSource', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_416}); + setMetadataFor(Companion_417, 'Companion', objectMeta); + protoOf($serializer_404).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_404, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KMaterialBizType, 'KMaterialBizType', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_417}); + setMetadataFor(Companion_418, 'Companion', objectMeta); + protoOf($serializer_405).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_405, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KRelatesFeedReq, 'KRelatesFeedReq', classMeta, VOID, VOID, KRelatesFeedReq, VOID, {0: $serializer_getInstance_405}); + setMetadataFor(Companion_419, 'Companion', objectMeta); + protoOf($serializer_406).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_406, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KRelatesFeedReply, 'KRelatesFeedReply', classMeta, VOID, VOID, KRelatesFeedReply, VOID, {0: $serializer_getInstance_406}); + setMetadataFor(Companion_420, 'Companion', objectMeta); + protoOf($serializer_407).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_407, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KArcRefreshReq, 'KArcRefreshReq', classMeta, VOID, VOID, KArcRefreshReq, VOID, {0: $serializer_getInstance_407}); + setMetadataFor(Companion_421, 'Companion', objectMeta); + protoOf($serializer_408).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_408, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KArcRefreshReply, 'KArcRefreshReply', classMeta, VOID, VOID, KArcRefreshReply, VOID, {0: $serializer_getInstance_408}); + setMetadataFor(Companion_422, 'Companion', objectMeta); + protoOf($serializer_409).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_409, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSimpleOwner, 'KSimpleOwner', classMeta, VOID, VOID, KSimpleOwner, VOID, {0: $serializer_getInstance_409}); + setMetadataFor(Companion_423, 'Companion', objectMeta); + protoOf($serializer_410).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_410, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KLikeConfig, 'KLikeConfig', classMeta, VOID, VOID, KLikeConfig, VOID, {0: $serializer_getInstance_410}); + setMetadataFor(Companion_424, 'Companion', objectMeta); + protoOf($serializer_411).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_411, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSimpleArc, 'KSimpleArc', classMeta, VOID, VOID, KSimpleArc, VOID, {0: $serializer_getInstance_411}); + setMetadataFor(Companion_425, 'Companion', objectMeta); + protoOf($serializer_412).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_412, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSimpleReqUser, 'KSimpleReqUser', classMeta, VOID, VOID, KSimpleReqUser, VOID, {0: $serializer_getInstance_412}); + setMetadataFor(Companion_426, 'Companion', objectMeta); + protoOf($serializer_413).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_413, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KExtraContentEntry_0, 'KExtraContentEntry', classMeta, VOID, VOID, KExtraContentEntry_0, VOID, {0: $serializer_getInstance_413}); + setMetadataFor(Companion_427, 'Companion', objectMeta); + protoOf($serializer_414).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_414, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KViewReq, 'KViewReq', classMeta, VOID, VOID, KViewReq, VOID, {0: $serializer_getInstance_414}); + setMetadataFor(Companion_428, 'Companion', objectMeta); + protoOf($serializer_415).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_415, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KRelate, 'KRelate', classMeta, VOID, VOID, KRelate, VOID, {0: $serializer_getInstance_415}); + setMetadataFor(Companion_429, 'Companion', objectMeta); + protoOf($serializer_416).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_416, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KReportEntry_15, 'KReportEntry', classMeta, VOID, VOID, KReportEntry_15, VOID, {0: $serializer_getInstance_416}); + setMetadataFor(Companion_430, 'Companion', objectMeta); + protoOf($serializer_417).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_417, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KViewReply, 'KViewReply', classMeta, VOID, VOID, KViewReply, VOID, {0: $serializer_getInstance_417}); + setMetadataFor(Companion_431, 'Companion', objectMeta); + protoOf($serializer_418).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_418, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KECodeConfig, 'KECodeConfig', classMeta, VOID, VOID, KECodeConfig, VOID, {0: $serializer_getInstance_418}); + setMetadataFor(Companion_432, 'Companion', objectMeta); + protoOf($serializer_419).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_419, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCM, 'KCM', classMeta, VOID, VOID, KCM, VOID, {0: $serializer_getInstance_419}); + setMetadataFor(Companion_433, 'Companion', objectMeta); + protoOf($serializer_420).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_420, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KTab, 'KTab', classMeta, VOID, VOID, KTab, VOID, {0: $serializer_getInstance_420}); + setMetadataFor(Companion_434, 'Companion', objectMeta); + protoOf($serializer_421).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_421, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KTabControl, 'KTabControl', classMeta, VOID, VOID, KTabControl, VOID, {0: $serializer_getInstance_421}); + setMetadataFor(Companion_435, 'Companion', objectMeta); + protoOf($serializer_422).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_422, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KReqUser, 'KReqUser', classMeta, VOID, VOID, KReqUser, VOID, {0: $serializer_getInstance_422}); + setMetadataFor(Companion_436, 'Companion', objectMeta); + protoOf($serializer_423).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_423, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KReqUserExtra, 'KReqUserExtra', classMeta, VOID, VOID, KReqUserExtra, VOID, {0: $serializer_getInstance_423}); + setMetadataFor(Companion_437, 'Companion', objectMeta); + protoOf($serializer_424).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_424, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KChargingPlus, 'KChargingPlus', classMeta, VOID, VOID, KChargingPlus, VOID, {0: $serializer_getInstance_424}); + setMetadataFor(Companion_438, 'Companion', objectMeta); + protoOf($serializer_425).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_425, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KPlayToast, 'KPlayToast', classMeta, VOID, VOID, KPlayToast, VOID, {0: $serializer_getInstance_425}); + setMetadataFor(Companion_439, 'Companion', objectMeta); + protoOf($serializer_426).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_426, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KButton_1, 'KButton', classMeta, VOID, VOID, KButton_1, VOID, {0: $serializer_getInstance_426}); + setMetadataFor(KTab_0, 'KTab', classMeta); + setMetadataFor(KIntroduction, 'KIntroduction', objectMeta); + setMetadataFor(KReply, 'KReply', objectMeta); + setMetadataFor(KActivityTab_0, 'KActivityTab', objectMeta); + setMetadataFor(KCatalog, 'KCatalog', objectMeta); + setMetadataFor(Companion_440, 'Companion', objectMeta); + protoOf($serializer_427).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_427, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KTabModule, 'KTabModule', classMeta, VOID, VOID, KTabModule, VOID, {0: $serializer_getInstance_427}); + setMetadataFor(Companion_441, 'Companion', objectMeta); + protoOf($serializer_428).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_428, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KIntroductionTab, 'KIntroductionTab', classMeta, VOID, VOID, KIntroductionTab, VOID, {0: $serializer_getInstance_428}); + setMetadataFor(Companion_442, 'Companion', objectMeta); + protoOf($serializer_429).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_429, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KReplyTab, 'KReplyTab', classMeta, VOID, VOID, KReplyTab, VOID, {0: $serializer_getInstance_429}); + setMetadataFor(Companion_443, 'Companion', objectMeta); + protoOf($serializer_430).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_430, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KReplyStyle, 'KReplyStyle', classMeta, VOID, VOID, KReplyStyle, VOID, {0: $serializer_getInstance_430}); + setMetadataFor(Companion_444, 'Companion', objectMeta); + protoOf($serializer_431).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_431, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KViewBase, 'KViewBase', classMeta, VOID, VOID, KViewBase, VOID, {0: $serializer_getInstance_431}); + setMetadataFor(Companion_445, 'Companion', objectMeta); + protoOf($serializer_432).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_432, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KConfig_0, 'KConfig', classMeta, VOID, VOID, KConfig_0, VOID, {0: $serializer_getInstance_432}); + setMetadataFor(Companion_446, 'Companion', objectMeta); + protoOf($serializer_433).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_433, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KBgPlayNotice, 'KBgPlayNotice', classMeta, VOID, VOID, KBgPlayNotice, VOID, {0: $serializer_getInstance_433}); + setMetadataFor(Companion_447, 'Companion', objectMeta); + protoOf($serializer_434).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_434, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KStoryEntrance, 'KStoryEntrance', classMeta, VOID, VOID, KStoryEntrance, VOID, {0: $serializer_getInstance_434}); + setMetadataFor(Companion_448, 'Companion', objectMeta); + protoOf($serializer_435).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_435, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KPlayerIcon, 'KPlayerIcon', classMeta, VOID, VOID, KPlayerIcon, VOID, {0: $serializer_getInstance_435}); + setMetadataFor(Companion_449, 'Companion', objectMeta); + protoOf($serializer_436).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_436, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KIconData, 'KIconData', classMeta, VOID, VOID, KIconData, VOID, {0: $serializer_getInstance_436}); + setMetadataFor(Companion_450, 'Companion', objectMeta); + protoOf($serializer_437).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_437, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KOnline, 'KOnline', classMeta, VOID, VOID, KOnline, VOID, {0: $serializer_getInstance_437}); + setMetadataFor(Companion_451, 'Companion', objectMeta); + protoOf($serializer_438).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_438, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KPageControl, 'KPageControl', classMeta, VOID, VOID, KPageControl, VOID, {0: $serializer_getInstance_438}); + setMetadataFor(Companion_452, 'Companion', objectMeta); + protoOf($serializer_439).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_439, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KControl, 'KControl', classMeta, VOID, VOID, KControl, VOID, {0: $serializer_getInstance_439}); + setMetadataFor(Companion_453, 'Companion', objectMeta); + protoOf($serializer_440).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_440, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KActivityResource_0, 'KActivityResource', classMeta, VOID, VOID, KActivityResource_0, VOID, {0: $serializer_getInstance_440}); + setMetadataFor(Companion_454, 'Companion', objectMeta); + protoOf($serializer_441).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_441, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KArc, 'KArc', classMeta, VOID, VOID, KArc, VOID, {0: $serializer_getInstance_441}); + setMetadataFor(Companion_455, 'Companion', objectMeta); + protoOf($serializer_442).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_442, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KRights_0, 'KRights', classMeta, VOID, VOID, KRights_0, VOID, {0: $serializer_getInstance_442}); + setMetadataFor(Companion_456, 'Companion', objectMeta); + protoOf($serializer_443).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_443, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KViewProgressReq, 'KViewProgressReq', classMeta, VOID, VOID, KViewProgressReq, VOID, {0: $serializer_getInstance_443}); + setMetadataFor(Companion_457, 'Companion', objectMeta); + protoOf($serializer_444).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_444, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KFragmentParam, 'KFragmentParam', classMeta, VOID, VOID, KFragmentParam, VOID, {0: $serializer_getInstance_444}); + setMetadataFor(Companion_458, 'Companion', objectMeta); + protoOf($serializer_445).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_445, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KFragmentArc, 'KFragmentArc', classMeta, VOID, VOID, KFragmentArc, VOID, {0: $serializer_getInstance_445}); + setMetadataFor(Companion_459, 'Companion', objectMeta); + protoOf($serializer_446).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_446, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KChronosParam, 'KChronosParam', classMeta, VOID, VOID, KChronosParam, VOID, {0: $serializer_getInstance_446}); + setMetadataFor(Companion_460, 'Companion', objectMeta); + protoOf($serializer_447).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_447, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KViewProgressReply, 'KViewProgressReply', classMeta, VOID, VOID, KViewProgressReply, VOID, {0: $serializer_getInstance_447}); + setMetadataFor(Companion_461, 'Companion', objectMeta); + protoOf($serializer_448).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_448, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KVideoShotEntry, 'KVideoShotEntry', classMeta, VOID, VOID, KVideoShotEntry, VOID, {0: $serializer_getInstance_448}); + setMetadataFor(Companion_462, 'Companion', objectMeta); + protoOf($serializer_449).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_449, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KFragmentRes, 'KFragmentRes', classMeta, VOID, VOID, KFragmentRes, VOID, {0: $serializer_getInstance_449}); + setMetadataFor(Companion_463, 'Companion', objectMeta); + protoOf($serializer_450).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_450, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KDmResource, 'KDmResource', classMeta, VOID, VOID, KDmResource, VOID, {0: $serializer_getInstance_450}); + setMetadataFor(KParam, 'KParam', classMeta); + setMetadataFor(KFollow, 'KFollow', objectMeta); + setMetadataFor(KReserve_0, 'KReserve', objectMeta); + setMetadataFor(KJump, 'KJump', objectMeta); + setMetadataFor(KGame_0, 'KGame', objectMeta); + setMetadataFor(Companion_464, 'Companion', objectMeta); + protoOf($serializer_451).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_451, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KOperationCard, 'KOperationCard', classMeta, VOID, VOID, KOperationCard, VOID, {0: $serializer_getInstance_451}); + setMetadataFor(Companion_465, 'Companion', objectMeta); + protoOf($serializer_452).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_452, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KBizFollowVideoParam, 'KBizFollowVideoParam', classMeta, VOID, VOID, KBizFollowVideoParam, VOID, {0: $serializer_getInstance_452}); + setMetadataFor(Companion_466, 'Companion', objectMeta); + protoOf($serializer_453).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_453, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KBizReserveActivityParam_0, 'KBizReserveActivityParam', classMeta, VOID, VOID, KBizReserveActivityParam_0, VOID, {0: $serializer_getInstance_453}); + setMetadataFor(Companion_467, 'Companion', objectMeta); + protoOf($serializer_454).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_454, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KBizJumpLinkParam, 'KBizJumpLinkParam', classMeta, VOID, VOID, KBizJumpLinkParam, VOID, {0: $serializer_getInstance_454}); + setMetadataFor(Companion_468, 'Companion', objectMeta); + protoOf($serializer_455).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_455, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KBizReserveGameParam, 'KBizReserveGameParam', classMeta, VOID, VOID, KBizReserveGameParam, VOID, {0: $serializer_getInstance_455}); + setMetadataFor(Companion_469, 'Companion', objectMeta); + protoOf($serializer_456).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_456, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KOperationCardContent, 'KOperationCardContent', classMeta, VOID, VOID, KOperationCardContent, VOID, {0: $serializer_getInstance_456}); + setMetadataFor(Companion_470, 'Companion', objectMeta); + protoOf($serializer_457).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_457, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KVideoViewPoint, 'KVideoViewPoint', classMeta, VOID, VOID, KVideoViewPoint, VOID, {0: $serializer_getInstance_457}); + setMetadataFor(Companion_471, 'Companion', objectMeta); + protoOf($serializer_458).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_458, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KVideoShot, 'KVideoShot', classMeta, VOID, VOID, KVideoShot, VOID, {0: $serializer_getInstance_458}); + setMetadataFor(Companion_472, 'Companion', objectMeta); + protoOf($serializer_459).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_459, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KVideoPoint, 'KVideoPoint', classMeta, VOID, VOID, KVideoPoint, VOID, {0: $serializer_getInstance_459}); + setMetadataFor(Companion_473, 'Companion', objectMeta); + protoOf($serializer_460).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_460, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KChronos, 'KChronos', classMeta, VOID, VOID, KChronos, VOID, {0: $serializer_getInstance_460}); + setMetadataFor(Companion_474, 'Companion', objectMeta); + protoOf($serializer_461).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_461, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KVideoGuide, 'KVideoGuide', classMeta, VOID, VOID, KVideoGuide, VOID, {0: $serializer_getInstance_461}); + setMetadataFor(Companion_475, 'Companion', objectMeta); + protoOf($serializer_462).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_462, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KAttentionCard, 'KAttentionCard', classMeta, VOID, VOID, KAttentionCard, VOID, {0: $serializer_getInstance_462}); + setMetadataFor(Companion_476, 'Companion', objectMeta); + protoOf($serializer_463).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_463, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KContractCard, 'KContractCard', classMeta, VOID, VOID, KContractCard, VOID, {0: $serializer_getInstance_463}); + setMetadataFor(Companion_477, 'Companion', objectMeta); + protoOf($serializer_464).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_464, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KContractText_0, 'KContractText', classMeta, VOID, VOID, KContractText_0, VOID, {0: $serializer_getInstance_464}); + setMetadataFor(Companion_478, 'Companion', objectMeta); + protoOf($serializer_465).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_465, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KUpperInfos, 'KUpperInfos', classMeta, VOID, VOID, KUpperInfos, VOID, {0: $serializer_getInstance_465}); + setMetadataFor(Companion_479, 'Companion', objectMeta); + protoOf($serializer_466).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_466, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCommandDm, 'KCommandDm', classMeta, VOID, VOID, KCommandDm, VOID, {0: $serializer_getInstance_466}); + setMetadataFor(Companion_480, 'Companion', objectMeta); + protoOf($serializer_467).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_467, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KShowTime, 'KShowTime', classMeta, VOID, VOID, KShowTime, VOID, {0: $serializer_getInstance_467}); + setMetadataFor(Companion_481, 'Companion', objectMeta); + protoOf($serializer_468).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_468, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KPointMaterial, 'KPointMaterial', classMeta, VOID, VOID, KPointMaterial, VOID, {0: $serializer_getInstance_468}); + setMetadataFor(Companion_482, 'Companion', objectMeta); + protoOf($serializer_469).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_469, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KReportEntry_16, 'KReportEntry', classMeta, VOID, VOID, KReportEntry_16, VOID, {0: $serializer_getInstance_469}); + setMetadataFor(Companion_483, 'Companion', objectMeta); + protoOf($serializer_470).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_470, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KMaterial, 'KMaterial', classMeta, VOID, VOID, KMaterial, VOID, {0: $serializer_getInstance_470}); + setMetadataFor(Companion_484, 'Companion', objectMeta); + protoOf($serializer_471).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_471, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSort, 'KSort', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_484}); + setMetadataFor(Companion_485, 'Companion', objectMeta); + protoOf($serializer_472).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_472, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCategorySort, 'KCategorySort', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_485}); + setMetadataFor(Companion_486, 'Companion', objectMeta); + protoOf($serializer_473).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_473, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KUserType, 'KUserType', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_486}); + setMetadataFor(Companion_487, 'Companion', objectMeta); + protoOf($serializer_474).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_474, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KUserSort, 'KUserSort', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_487}); + setMetadataFor(Companion_488, 'Companion', objectMeta); + protoOf($serializer_475).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_475, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KFromExtraEntry, 'KFromExtraEntry', classMeta, VOID, VOID, KFromExtraEntry, VOID, {0: $serializer_getInstance_475}); + setMetadataFor(Companion_489, 'Companion', objectMeta); + protoOf($serializer_476).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_476, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSearchAllRequest, 'KSearchAllRequest', classMeta, VOID, VOID, KSearchAllRequest, VOID, {0: $serializer_getInstance_476}); + setMetadataFor(Companion_490, 'Companion', objectMeta); + protoOf($serializer_477).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_477, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSearchComicRequest, 'KSearchComicRequest', classMeta, VOID, VOID, KSearchComicRequest, VOID, {0: $serializer_getInstance_477}); + setMetadataFor(Companion_491, 'Companion', objectMeta); + protoOf($serializer_478).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_478, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSearchByTypeRequest, 'KSearchByTypeRequest', classMeta, VOID, VOID, KSearchByTypeRequest, VOID, {0: $serializer_getInstance_478}); + setMetadataFor(Companion_492, 'Companion', objectMeta); + protoOf($serializer_479).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_479, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KPageOffset, 'KPageOffset', classMeta, VOID, VOID, KPageOffset, VOID, {0: $serializer_getInstance_479}); + setMetadataFor(Companion_493, 'Companion', objectMeta); + protoOf($serializer_480).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_480, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSearchComicResponse, 'KSearchComicResponse', classMeta, VOID, VOID, KSearchComicResponse, VOID, {0: $serializer_getInstance_480}); + setMetadataFor(Companion_494, 'Companion', objectMeta); + protoOf($serializer_481).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_481, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSearchComicInfo, 'KSearchComicInfo', classMeta, VOID, VOID, KSearchComicInfo, VOID, {0: $serializer_getInstance_481}); + setMetadataFor(Companion_495, 'Companion', objectMeta); + protoOf($serializer_482).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_482, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KAnnotationEntry, 'KAnnotationEntry', classMeta, VOID, VOID, KAnnotationEntry, VOID, {0: $serializer_getInstance_482}); + setMetadataFor(Companion_496, 'Companion', objectMeta); + protoOf($serializer_483).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_483, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSearchAllResponse, 'KSearchAllResponse', classMeta, VOID, VOID, KSearchAllResponse, VOID, {0: $serializer_getInstance_483}); + setMetadataFor(Companion_497, 'Companion', objectMeta); + protoOf($serializer_484).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_484, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KAnnotationEntry_0, 'KAnnotationEntry', classMeta, VOID, VOID, KAnnotationEntry_0, VOID, {0: $serializer_getInstance_484}); + setMetadataFor(Companion_498, 'Companion', objectMeta); + protoOf($serializer_485).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_485, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSearchByTypeResponse, 'KSearchByTypeResponse', classMeta, VOID, VOID, KSearchByTypeResponse, VOID, {0: $serializer_getInstance_485}); + setMetadataFor(KCardItem, 'KCardItem', classMeta); + setMetadataFor(KSpecial_0, 'KSpecial', objectMeta); + setMetadataFor(KArticle, 'KArticle', objectMeta); + setMetadataFor(KBanner_3, 'KBanner', objectMeta); + setMetadataFor(KLive_1, 'KLive', objectMeta); + setMetadataFor(KGame_1, 'KGame', objectMeta); + setMetadataFor(KPurchase, 'KPurchase', objectMeta); + setMetadataFor(KRecommendWord, 'KRecommendWord', objectMeta); + setMetadataFor(KDynamic, 'KDynamic', objectMeta); + setMetadataFor(KSuggestKeyword, 'KSuggestKeyword', objectMeta); + setMetadataFor(KSpecialGuide, 'KSpecialGuide', objectMeta); + setMetadataFor(KComic, 'KComic', objectMeta); + setMetadataFor(KChannelNew, 'KChannelNew', objectMeta); + setMetadataFor(KOgvCard, 'KOgvCard', objectMeta); + setMetadataFor(KBangumiRelates, 'KBangumiRelates', objectMeta); + setMetadataFor(KFindMore, 'KFindMore', objectMeta); + setMetadataFor(KEsport, 'KEsport', objectMeta); + setMetadataFor(KAuthorNew, 'KAuthorNew', objectMeta); + setMetadataFor(KTips, 'KTips', objectMeta); + setMetadataFor(KCm_0, 'KCm', objectMeta); + setMetadataFor(KPediaCard, 'KPediaCard', objectMeta); + setMetadataFor(KUgcInline, 'KUgcInline', objectMeta); + setMetadataFor(KLiveInline, 'KLiveInline', objectMeta); + setMetadataFor(KTopGame, 'KTopGame', objectMeta); + setMetadataFor(KSports, 'KSports', objectMeta); + setMetadataFor(KPediaCardInline, 'KPediaCardInline', objectMeta); + setMetadataFor(KRecommendTips, 'KRecommendTips', objectMeta); + setMetadataFor(KCollectionCard, 'KCollectionCard', objectMeta); + setMetadataFor(KOgvChannel, 'KOgvChannel', objectMeta); + setMetadataFor(KOgvInline, 'KOgvInline', objectMeta); + setMetadataFor(KAuthor, 'KAuthor', objectMeta); + setMetadataFor(KAv_0, 'KAv', objectMeta); + setMetadataFor(KBangumi_0, 'KBangumi', objectMeta); + setMetadataFor(KEsportsInline, 'KEsportsInline', objectMeta); + setMetadataFor(KHotBanner, 'KHotBanner', objectMeta); + setMetadataFor(KSubject, 'KSubject', objectMeta); + setMetadataFor(KDynamicNew, 'KDynamicNew', objectMeta); + setMetadataFor(KArticleNew, 'KArticleNew', objectMeta); + setMetadataFor(KPediaCardPic, 'KPediaCardPic', objectMeta); + setMetadataFor(KNpsCard, 'KNpsCard', objectMeta); + setMetadataFor(KChatGpt, 'KChatGpt', objectMeta); + setMetadataFor(KHotRecommend, 'KHotRecommend', objectMeta); + setMetadataFor(KLiveMaster, 'KLiveMaster', objectMeta); + setMetadataFor(KLiveRoomTitle, 'KLiveRoomTitle', objectMeta); + setMetadataFor(KLiveRoom, 'KLiveRoom', objectMeta); + setMetadataFor(KCheese, 'KCheese', objectMeta); + setMetadataFor(KRelatedSearch, 'KRelatedSearch', objectMeta); + setMetadataFor(Companion_499, 'Companion', objectMeta); + protoOf($serializer_486).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_486, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KItem_0, 'KItem', classMeta, VOID, VOID, KItem_0, VOID, {0: $serializer_getInstance_486}); + setMetadataFor(Companion_500, 'Companion', objectMeta); + protoOf($serializer_487).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_487, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSearchUpperCard, 'KSearchUpperCard', classMeta, VOID, VOID, KSearchUpperCard, VOID, {0: $serializer_getInstance_487}); + setMetadataFor(Companion_501, 'Companion', objectMeta); + protoOf($serializer_488).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_488, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSearchVideoCard, 'KSearchVideoCard', classMeta, VOID, VOID, KSearchVideoCard, VOID, {0: $serializer_getInstance_488}); + setMetadataFor(Companion_502, 'Companion', objectMeta); + protoOf($serializer_489).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_489, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KTimeLine, 'KTimeLine', classMeta, VOID, VOID, KTimeLine, VOID, {0: $serializer_getInstance_489}); + setMetadataFor(Companion_503, 'Companion', objectMeta); + protoOf($serializer_490).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_490, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KVideoTextItem, 'KVideoTextItem', classMeta, VOID, VOID, KVideoTextItem, VOID, {0: $serializer_getInstance_490}); + setMetadataFor(Companion_504, 'Companion', objectMeta); + protoOf($serializer_491).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_491, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSearchBangumiCard, 'KSearchBangumiCard', classMeta, VOID, VOID, KSearchBangumiCard, VOID, {0: $serializer_getInstance_491}); + setMetadataFor(Companion_505, 'Companion', objectMeta); + protoOf($serializer_492).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_492, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSearchSpecialCard, 'KSearchSpecialCard', classMeta, VOID, VOID, KSearchSpecialCard, VOID, {0: $serializer_getInstance_492}); + setMetadataFor(Companion_506, 'Companion', objectMeta); + protoOf($serializer_493).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_493, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSearchArticleCard, 'KSearchArticleCard', classMeta, VOID, VOID, KSearchArticleCard, VOID, {0: $serializer_getInstance_493}); + setMetadataFor(Companion_507, 'Companion', objectMeta); + protoOf($serializer_494).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_494, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSearchBannerCard, 'KSearchBannerCard', classMeta, VOID, VOID, KSearchBannerCard, VOID, {0: $serializer_getInstance_494}); + setMetadataFor(Companion_508, 'Companion', objectMeta); + protoOf($serializer_495).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_495, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSearchLiveCard, 'KSearchLiveCard', classMeta, VOID, VOID, KSearchLiveCard, VOID, {0: $serializer_getInstance_495}); + setMetadataFor(Companion_509, 'Companion', objectMeta); + protoOf($serializer_496).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_496, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSearchGameCard, 'KSearchGameCard', classMeta, VOID, VOID, KSearchGameCard, VOID, {0: $serializer_getInstance_496}); + setMetadataFor(Companion_510, 'Companion', objectMeta); + protoOf($serializer_497).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_497, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSearchPurchaseCard, 'KSearchPurchaseCard', classMeta, VOID, VOID, KSearchPurchaseCard, VOID, {0: $serializer_getInstance_497}); + setMetadataFor(Companion_511, 'Companion', objectMeta); + protoOf($serializer_498).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_498, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSearchRecommendWordCard, 'KSearchRecommendWordCard', classMeta, VOID, VOID, KSearchRecommendWordCard, VOID, {0: $serializer_getInstance_498}); + setMetadataFor(Companion_512, 'Companion', objectMeta); + protoOf($serializer_499).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_499, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSearchDynamicCard, 'KSearchDynamicCard', classMeta, VOID, VOID, KSearchDynamicCard, VOID, {0: $serializer_getInstance_499}); + setMetadataFor(Companion_513, 'Companion', objectMeta); + protoOf($serializer_500).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_500, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSearchNoResultSuggestWordCard, 'KSearchNoResultSuggestWordCard', classMeta, VOID, VOID, KSearchNoResultSuggestWordCard, VOID, {0: $serializer_getInstance_500}); + setMetadataFor(Companion_514, 'Companion', objectMeta); + protoOf($serializer_501).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_501, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSearchSpecialGuideCard, 'KSearchSpecialGuideCard', classMeta, VOID, VOID, KSearchSpecialGuideCard, VOID, {0: $serializer_getInstance_501}); + setMetadataFor(Companion_515, 'Companion', objectMeta); + protoOf($serializer_502).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_502, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSearchComicCard, 'KSearchComicCard', classMeta, VOID, VOID, KSearchComicCard, VOID, {0: $serializer_getInstance_502}); + setMetadataFor(Companion_516, 'Companion', objectMeta); + protoOf($serializer_503).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_503, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSearchNewChannelCard, 'KSearchNewChannelCard', classMeta, VOID, VOID, KSearchNewChannelCard, VOID, {0: $serializer_getInstance_503}); + setMetadataFor(Companion_517, 'Companion', objectMeta); + protoOf($serializer_504).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_504, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSearchOgvRelationCard, 'KSearchOgvRelationCard', classMeta, VOID, VOID, KSearchOgvRelationCard, VOID, {0: $serializer_getInstance_504}); + setMetadataFor(Companion_518, 'Companion', objectMeta); + protoOf($serializer_505).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_505, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KOgvCardUI, 'KOgvCardUI', classMeta, VOID, VOID, KOgvCardUI, VOID, {0: $serializer_getInstance_505}); + setMetadataFor(Companion_519, 'Companion', objectMeta); + protoOf($serializer_506).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_506, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KDetailsRelationItem, 'KDetailsRelationItem', classMeta, VOID, VOID, KDetailsRelationItem, VOID, {0: $serializer_getInstance_506}); + setMetadataFor(Companion_520, 'Companion', objectMeta); + protoOf($serializer_507).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_507, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSearchOgvRecommendCard, 'KSearchOgvRecommendCard', classMeta, VOID, VOID, KSearchOgvRecommendCard, VOID, {0: $serializer_getInstance_507}); + setMetadataFor(Companion_521, 'Companion', objectMeta); + protoOf($serializer_508).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_508, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KOgvRecommendWord, 'KOgvRecommendWord', classMeta, VOID, VOID, KOgvRecommendWord, VOID, {0: $serializer_getInstance_508}); + setMetadataFor(Companion_522, 'Companion', objectMeta); + protoOf($serializer_509).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_509, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSearchSportCard, 'KSearchSportCard', classMeta, VOID, VOID, KSearchSportCard, VOID, {0: $serializer_getInstance_509}); + setMetadataFor(Companion_523, 'Companion', objectMeta); + protoOf($serializer_510).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_510, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSearchSportInlineCard, 'KSearchSportInlineCard', classMeta, VOID, VOID, KSearchSportInlineCard, VOID, {0: $serializer_getInstance_510}); + setMetadataFor(Companion_524, 'Companion', objectMeta); + protoOf($serializer_511).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_511, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSearchHotBannerCard, 'KSearchHotBannerCard', classMeta, VOID, VOID, KSearchHotBannerCard, VOID, {0: $serializer_getInstance_511}); + setMetadataFor(Companion_525, 'Companion', objectMeta); + protoOf($serializer_512).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_512, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSearchSubjectCard, 'KSearchSubjectCard', classMeta, VOID, VOID, KSearchSubjectCard, VOID, {0: $serializer_getInstance_512}); + setMetadataFor(Companion_526, 'Companion', objectMeta); + protoOf($serializer_513).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_513, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSearchPediaPicCard, 'KSearchPediaPicCard', classMeta, VOID, VOID, KSearchPediaPicCard, VOID, {0: $serializer_getInstance_513}); + setMetadataFor(Companion_527, 'Companion', objectMeta); + protoOf($serializer_514).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_514, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KTopicItem, 'KTopicItem', classMeta, VOID, VOID, KTopicItem, VOID, {0: $serializer_getInstance_514}); + setMetadataFor(Companion_528, 'Companion', objectMeta); + protoOf($serializer_515).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_515, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KMatchInfoObj, 'KMatchInfoObj', classMeta, VOID, VOID, KMatchInfoObj, VOID, {0: $serializer_getInstance_515}); + setMetadataFor(Companion_529, 'Companion', objectMeta); + protoOf($serializer_516).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_516, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSearchAuthorNewCard, 'KSearchAuthorNewCard', classMeta, VOID, VOID, KSearchAuthorNewCard, VOID, {0: $serializer_getInstance_516}); + setMetadataFor(Companion_530, 'Companion', objectMeta); + protoOf($serializer_517).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_517, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KAvatar, 'KAvatar', classMeta, VOID, VOID, KAvatar, VOID, {0: $serializer_getInstance_517}); + setMetadataFor(Companion_531, 'Companion', objectMeta); + protoOf($serializer_518).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_518, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KArgs, 'KArgs', classMeta, VOID, VOID, KArgs, VOID, {0: $serializer_getInstance_518}); + setMetadataFor(Companion_532, 'Companion', objectMeta); + protoOf($serializer_519).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_519, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KInlineThreePointPanel, 'KInlineThreePointPanel', classMeta, VOID, VOID, KInlineThreePointPanel, VOID, {0: $serializer_getInstance_519}); + setMetadataFor(Companion_533, 'Companion', objectMeta); + protoOf($serializer_520).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_520, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KShareButtonItem, 'KShareButtonItem', classMeta, VOID, VOID, KShareButtonItem, VOID, {0: $serializer_getInstance_520}); + setMetadataFor(Companion_534, 'Companion', objectMeta); + protoOf($serializer_521).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_521, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KButtonMeta, 'KButtonMeta', classMeta, VOID, VOID, KButtonMeta, VOID, {0: $serializer_getInstance_521}); + setMetadataFor(Companion_535, 'Companion', objectMeta); + protoOf($serializer_522).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_522, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSearchLikeButtonItem, 'KSearchLikeButtonItem', classMeta, VOID, VOID, KSearchLikeButtonItem, VOID, {0: $serializer_getInstance_522}); + setMetadataFor(Companion_536, 'Companion', objectMeta); + protoOf($serializer_523).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_523, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KLikeResource, 'KLikeResource', classMeta, VOID, VOID, KLikeResource, VOID, {0: $serializer_getInstance_523}); + setMetadataFor(Companion_537, 'Companion', objectMeta); + protoOf($serializer_524).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_524, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSpace, 'KSpace', classMeta, VOID, VOID, KSpace, VOID, {0: $serializer_getInstance_524}); + setMetadataFor(Companion_538, 'Companion', objectMeta); + protoOf($serializer_525).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_525, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KAvItem, 'KAvItem', classMeta, VOID, VOID, KAvItem, VOID, {0: $serializer_getInstance_525}); + setMetadataFor(Companion_539, 'Companion', objectMeta); + protoOf($serializer_526).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_526, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSearchTipsCard, 'KSearchTipsCard', classMeta, VOID, VOID, KSearchTipsCard, VOID, {0: $serializer_getInstance_526}); + setMetadataFor(Companion_540, 'Companion', objectMeta); + protoOf($serializer_527).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_527, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSearchAdCard, 'KSearchAdCard', classMeta, VOID, VOID, KSearchAdCard, VOID, {0: $serializer_getInstance_527}); + setMetadataFor(Companion_541, 'Companion', objectMeta); + protoOf($serializer_528).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_528, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSearchPediaCard, 'KSearchPediaCard', classMeta, VOID, VOID, KSearchPediaCard, VOID, {0: $serializer_getInstance_528}); + setMetadataFor(Companion_542, 'Companion', objectMeta); + protoOf($serializer_529).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_529, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSearchUgcInlineCard, 'KSearchUgcInlineCard', classMeta, VOID, VOID, KSearchUgcInlineCard, VOID, {0: $serializer_getInstance_529}); + setMetadataFor(Companion_543, 'Companion', objectMeta); + protoOf($serializer_530).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_530, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSearchInlineData, 'KSearchInlineData', classMeta, VOID, VOID, KSearchInlineData, VOID, {0: $serializer_getInstance_530}); + setMetadataFor(Companion_544, 'Companion', objectMeta); + protoOf($serializer_531).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_531, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSearchLiveInlineCard, 'KSearchLiveInlineCard', classMeta, VOID, VOID, KSearchLiveInlineCard, VOID, {0: $serializer_getInstance_531}); + setMetadataFor(Companion_545, 'Companion', objectMeta); + protoOf($serializer_532).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_532, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KPlayerWidget, 'KPlayerWidget', classMeta, VOID, VOID, KPlayerWidget, VOID, {0: $serializer_getInstance_532}); + setMetadataFor(Companion_546, 'Companion', objectMeta); + protoOf($serializer_533).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_533, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSearchOgvInlineCard, 'KSearchOgvInlineCard', classMeta, VOID, VOID, KSearchOgvInlineCard, VOID, {0: $serializer_getInstance_533}); + setMetadataFor(Companion_547, 'Companion', objectMeta); + protoOf($serializer_534).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_534, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSearchTopGameCard, 'KSearchTopGameCard', classMeta, VOID, VOID, KSearchTopGameCard, VOID, {0: $serializer_getInstance_534}); + setMetadataFor(Companion_548, 'Companion', objectMeta); + protoOf($serializer_535).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_535, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSearchOlympicGameCard, 'KSearchOlympicGameCard', classMeta, VOID, VOID, KSearchOlympicGameCard, VOID, {0: $serializer_getInstance_535}); + setMetadataFor(Companion_549, 'Companion', objectMeta); + protoOf($serializer_536).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_536, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSearchOlympicWikiCard, 'KSearchOlympicWikiCard', classMeta, VOID, VOID, KSearchOlympicWikiCard, VOID, {0: $serializer_getInstance_536}); + setMetadataFor(Companion_550, 'Companion', objectMeta); + protoOf($serializer_537).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_537, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSearchRecommendTipCard, 'KSearchRecommendTipCard', classMeta, VOID, VOID, KSearchRecommendTipCard, VOID, {0: $serializer_getInstance_537}); + setMetadataFor(Companion_551, 'Companion', objectMeta); + protoOf($serializer_538).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_538, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSearchCollectionCard, 'KSearchCollectionCard', classMeta, VOID, VOID, KSearchCollectionCard, VOID, {0: $serializer_getInstance_538}); + setMetadataFor(Companion_552, 'Companion', objectMeta); + protoOf($serializer_539).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_539, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSearchOgvChannelCard, 'KSearchOgvChannelCard', classMeta, VOID, VOID, KSearchOgvChannelCard, VOID, {0: $serializer_getInstance_539}); + setMetadataFor(Companion_553, 'Companion', objectMeta); + protoOf($serializer_540).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_540, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSearchOgvCard, 'KSearchOgvCard', classMeta, VOID, VOID, KSearchOgvCard, VOID, {0: $serializer_getInstance_540}); + setMetadataFor(Companion_554, 'Companion', objectMeta); + protoOf($serializer_541).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_541, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KRecommendWord_0, 'KRecommendWord', classMeta, VOID, VOID, KRecommendWord_0, VOID, {0: $serializer_getInstance_541}); + setMetadataFor(Companion_555, 'Companion', objectMeta); + protoOf($serializer_542).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_542, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KEasterEgg, 'KEasterEgg', classMeta, VOID, VOID, KEasterEgg, VOID, {0: $serializer_getInstance_542}); + setMetadataFor(Companion_556, 'Companion', objectMeta); + protoOf($serializer_543).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_543, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KNav, 'KNav', classMeta, VOID, VOID, KNav, VOID, {0: $serializer_getInstance_543}); + setMetadataFor(Companion_557, 'Companion', objectMeta); + protoOf($serializer_544).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_544, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KVideo, 'KVideo', classMeta, VOID, VOID, KVideo, VOID, {0: $serializer_getInstance_544}); + setMetadataFor(Companion_558, 'Companion', objectMeta); + protoOf($serializer_545).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_545, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KNavigation, 'KNavigation', classMeta, VOID, VOID, KNavigation, VOID, {0: $serializer_getInstance_545}); + setMetadataFor(Companion_559, 'Companion', objectMeta); + protoOf($serializer_546).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_546, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KNavigationButton, 'KNavigationButton', classMeta, VOID, VOID, KNavigationButton, VOID, {0: $serializer_getInstance_546}); + setMetadataFor(Companion_560, 'Companion', objectMeta); + protoOf($serializer_547).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_547, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KPediaCover, 'KPediaCover', classMeta, VOID, VOID, KPediaCover, VOID, {0: $serializer_getInstance_547}); + setMetadataFor(Companion_561, 'Companion', objectMeta); + protoOf($serializer_548).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_548, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KTabInfo, 'KTabInfo', classMeta, VOID, VOID, KTabInfo, VOID, {0: $serializer_getInstance_548}); + setMetadataFor(Companion_562, 'Companion', objectMeta); + protoOf($serializer_549).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_549, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KTopGameUI, 'KTopGameUI', classMeta, VOID, VOID, KTopGameUI, VOID, {0: $serializer_getInstance_549}); + setMetadataFor(Companion_563, 'Companion', objectMeta); + protoOf($serializer_550).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_550, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCardBusinessBadge, 'KCardBusinessBadge', classMeta, VOID, VOID, KCardBusinessBadge, VOID, {0: $serializer_getInstance_550}); + setMetadataFor(Companion_564, 'Companion', objectMeta); + protoOf($serializer_551).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_551, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KGotoIcon, 'KGotoIcon', classMeta, VOID, VOID, KGotoIcon, VOID, {0: $serializer_getInstance_551}); + setMetadataFor(Companion_565, 'Companion', objectMeta); + protoOf($serializer_552).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_552, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KBrandADAccount, 'KBrandADAccount', classMeta, VOID, VOID, KBrandADAccount, VOID, {0: $serializer_getInstance_552}); + setMetadataFor(Companion_566, 'Companion', objectMeta); + protoOf($serializer_553).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_553, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KBrandADArc, 'KBrandADArc', classMeta, VOID, VOID, KBrandADArc, VOID, {0: $serializer_getInstance_553}); + setMetadataFor(Companion_567, 'Companion', objectMeta); + protoOf($serializer_554).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_554, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSportsMatchItem, 'KSportsMatchItem', classMeta, VOID, VOID, KSportsMatchItem, VOID, {0: $serializer_getInstance_554}); + setMetadataFor(Companion_568, 'Companion', objectMeta); + protoOf($serializer_555).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_555, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KShare, 'KShare', classMeta, VOID, VOID, KShare, VOID, {0: $serializer_getInstance_555}); + setMetadataFor(Companion_569, 'Companion', objectMeta); + protoOf($serializer_556).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_556, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KEpisode, 'KEpisode', classMeta, VOID, VOID, KEpisode, VOID, {0: $serializer_getInstance_556}); + setMetadataFor(Companion_570, 'Companion', objectMeta); + protoOf($serializer_557).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_557, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KUpper, 'KUpper', classMeta, VOID, VOID, KUpper, VOID, {0: $serializer_getInstance_557}); + setMetadataFor(Companion_571, 'Companion', objectMeta); + protoOf($serializer_558).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_558, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KStat_0, 'KStat', classMeta, VOID, VOID, KStat_0, VOID, {0: $serializer_getInstance_558}); + setMetadataFor(Companion_572, 'Companion', objectMeta); + protoOf($serializer_559).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_559, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KDyTopic, 'KDyTopic', classMeta, VOID, VOID, KDyTopic, VOID, {0: $serializer_getInstance_559}); + setMetadataFor(Companion_573, 'Companion', objectMeta); + protoOf($serializer_560).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_560, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KTextLabel, 'KTextLabel', classMeta, VOID, VOID, KTextLabel, VOID, {0: $serializer_getInstance_560}); + setMetadataFor(Companion_574, 'Companion', objectMeta); + protoOf($serializer_561).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_561, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KTextButton, 'KTextButton', classMeta, VOID, VOID, KTextButton, VOID, {0: $serializer_getInstance_561}); + setMetadataFor(Companion_575, 'Companion', objectMeta); + protoOf($serializer_562).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_562, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KChannelMixedItem, 'KChannelMixedItem', classMeta, VOID, VOID, KChannelMixedItem, VOID, {0: $serializer_getInstance_562}); + setMetadataFor(Companion_576, 'Companion', objectMeta); + protoOf($serializer_563).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_563, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KBadge2, 'KBadge2', classMeta, VOID, VOID, KBadge2, VOID, {0: $serializer_getInstance_563}); + setMetadataFor(Companion_577, 'Companion', objectMeta); + protoOf($serializer_564).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_564, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KBottomButton, 'KBottomButton', classMeta, VOID, VOID, KBottomButton, VOID, {0: $serializer_getInstance_564}); + setMetadataFor(Companion_578, 'Companion', objectMeta); + protoOf($serializer_565).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_565, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KOgvClipInfo, 'KOgvClipInfo', classMeta, VOID, VOID, KOgvClipInfo, VOID, {0: $serializer_getInstance_565}); + setMetadataFor(Companion_579, 'Companion', objectMeta); + protoOf($serializer_566).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_566, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KThreePoint, 'KThreePoint', classMeta, VOID, VOID, KThreePoint, VOID, {0: $serializer_getInstance_566}); + setMetadataFor(Companion_580, 'Companion', objectMeta); + protoOf($serializer_567).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_567, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KRelation, 'KRelation', classMeta, VOID, VOID, KRelation, VOID, {0: $serializer_getInstance_567}); + setMetadataFor(Companion_581, 'Companion', objectMeta); + protoOf($serializer_568).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_568, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KBadge, 'KBadge', classMeta, VOID, VOID, KBadge, VOID, {0: $serializer_getInstance_568}); + setMetadataFor(Companion_582, 'Companion', objectMeta); + protoOf($serializer_569).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_569, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KChannelLabel, 'KChannelLabel', classMeta, VOID, VOID, KChannelLabel, VOID, {0: $serializer_getInstance_569}); + setMetadataFor(Companion_583, 'Companion', objectMeta); + protoOf($serializer_570).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_570, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KExtraLink, 'KExtraLink', classMeta, VOID, VOID, KExtraLink, VOID, {0: $serializer_getInstance_570}); + setMetadataFor(Companion_584, 'Companion', objectMeta); + protoOf($serializer_571).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_571, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KMatchTeam, 'KMatchTeam', classMeta, VOID, VOID, KMatchTeam, VOID, {0: $serializer_getInstance_571}); + setMetadataFor(Companion_585, 'Companion', objectMeta); + protoOf($serializer_572).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_572, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KMatchItem, 'KMatchItem', classMeta, VOID, VOID, KMatchItem, VOID, {0: $serializer_getInstance_572}); + setMetadataFor(Companion_586, 'Companion', objectMeta); + protoOf($serializer_573).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_573, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KTexts, 'KTexts', classMeta, VOID, VOID, KTexts, VOID, {0: $serializer_getInstance_573}); + setMetadataFor(Companion_587, 'Companion', objectMeta); + protoOf($serializer_574).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_574, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KUpArgs, 'KUpArgs', classMeta, VOID, VOID, KUpArgs, VOID, {0: $serializer_getInstance_574}); + setMetadataFor(Companion_588, 'Companion', objectMeta); + protoOf($serializer_575).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_575, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KThreePointV4, 'KThreePointV4', classMeta, VOID, VOID, KThreePointV4, VOID, {0: $serializer_getInstance_575}); + setMetadataFor(Companion_589, 'Companion', objectMeta); + protoOf($serializer_576).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_576, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KWatchLater, 'KWatchLater', classMeta, VOID, VOID, KWatchLater, VOID, {0: $serializer_getInstance_576}); + setMetadataFor(Companion_590, 'Companion', objectMeta); + protoOf($serializer_577).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_577, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KThreePointV3, 'KThreePointV3', classMeta, VOID, VOID, KThreePointV3, VOID, {0: $serializer_getInstance_577}); + setMetadataFor(Companion_591, 'Companion', objectMeta); + protoOf($serializer_578).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_578, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KThreePointV2, 'KThreePointV2', classMeta, VOID, VOID, KThreePointV2, VOID, {0: $serializer_getInstance_578}); + setMetadataFor(Companion_592, 'Companion', objectMeta); + protoOf($serializer_579).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_579, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KMask, 'KMask', classMeta, VOID, VOID, KMask, VOID, {0: $serializer_getInstance_579}); + setMetadataFor(Companion_593, 'Companion', objectMeta); + protoOf($serializer_580).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_580, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KButton_2, 'KButton', classMeta, VOID, VOID, KButton_2, VOID, {0: $serializer_getInstance_580}); + setMetadataFor(Companion_594, 'Companion', objectMeta); + protoOf($serializer_581).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_581, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KThreePoint2, 'KThreePoint2', classMeta, VOID, VOID, KThreePoint2, VOID, {0: $serializer_getInstance_581}); + setMetadataFor(Companion_595, 'Companion', objectMeta); + protoOf($serializer_582).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_582, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KDislikeReason, 'KDislikeReason', classMeta, VOID, VOID, KDislikeReason, VOID, {0: $serializer_getInstance_582}); + setMetadataFor(Companion_596, 'Companion', objectMeta); + protoOf($serializer_583).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_583, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KPlayerArgs_0, 'KPlayerArgs', classMeta, VOID, VOID, KPlayerArgs_0, VOID, {0: $serializer_getInstance_583}); + setMetadataFor(Companion_597, 'Companion', objectMeta); + protoOf($serializer_584).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_584, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KRightTopLiveBadge, 'KRightTopLiveBadge', classMeta, VOID, VOID, KRightTopLiveBadge, VOID, {0: $serializer_getInstance_584}); + setMetadataFor(Companion_598, 'Companion', objectMeta); + protoOf($serializer_585).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_585, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KInlineProgressBar, 'KInlineProgressBar', classMeta, VOID, VOID, KInlineProgressBar, VOID, {0: $serializer_getInstance_585}); + setMetadataFor(Companion_599, 'Companion', objectMeta); + protoOf($serializer_586).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_586, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KLiveBadgeResource, 'KLiveBadgeResource', classMeta, VOID, VOID, KLiveBadgeResource, VOID, {0: $serializer_getInstance_586}); + setMetadataFor(Companion_600, 'Companion', objectMeta); + protoOf($serializer_587).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_587, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KTrafficConfig, 'KTrafficConfig', classMeta, VOID, VOID, KTrafficConfig, VOID, {0: $serializer_getInstance_587}); + setMetadataFor(Companion_601, 'Companion', objectMeta); + protoOf($serializer_588).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_588, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KTrafficConfigOption, 'KTrafficConfigOption', classMeta, VOID, VOID, KTrafficConfigOption, VOID, {0: $serializer_getInstance_588}); + setMetadataFor(Companion_602, 'Companion', objectMeta); + protoOf($serializer_589).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_589, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCloudGameParams, 'KCloudGameParams', classMeta, VOID, VOID, KCloudGameParams, VOID, {0: $serializer_getInstance_589}); + setMetadataFor(Companion_603, 'Companion', objectMeta); + protoOf($serializer_590).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_590, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KRankInfo_0, 'KRankInfo', classMeta, VOID, VOID, KRankInfo_0, VOID, {0: $serializer_getInstance_590}); + setMetadataFor(Companion_604, 'Companion', objectMeta); + protoOf($serializer_591).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_591, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KEpisodeNew, 'KEpisodeNew', classMeta, VOID, VOID, KEpisodeNew, VOID, {0: $serializer_getInstance_591}); + setMetadataFor(Companion_605, 'Companion', objectMeta); + protoOf($serializer_592).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_592, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCheckMore, 'KCheckMore', classMeta, VOID, VOID, KCheckMore, VOID, {0: $serializer_getInstance_592}); + setMetadataFor(Companion_606, 'Companion', objectMeta); + protoOf($serializer_593).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_593, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KTextsEntry, 'KTextsEntry', classMeta, VOID, VOID, KTextsEntry, VOID, {0: $serializer_getInstance_593}); + setMetadataFor(Companion_607, 'Companion', objectMeta); + protoOf($serializer_594).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_594, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KFollowButton, 'KFollowButton', classMeta, VOID, VOID, KFollowButton, VOID, {0: $serializer_getInstance_594}); + setMetadataFor(Companion_608, 'Companion', objectMeta); + protoOf($serializer_595).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_595, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KPurchaseButton, 'KPurchaseButton', classMeta, VOID, VOID, KPurchaseButton, VOID, {0: $serializer_getInstance_595}); + setMetadataFor(Companion_609, 'Companion', objectMeta); + protoOf($serializer_596).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_596, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KWatchButton, 'KWatchButton', classMeta, VOID, VOID, KWatchButton, VOID, {0: $serializer_getInstance_596}); + setMetadataFor(Companion_610, 'Companion', objectMeta); + protoOf($serializer_597).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_597, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KRcmdReason, 'KRcmdReason', classMeta, VOID, VOID, KRcmdReason, VOID, {0: $serializer_getInstance_597}); + setMetadataFor(Companion_611, 'Companion', objectMeta); + protoOf($serializer_598).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_598, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KWatchedShow, 'KWatchedShow', classMeta, VOID, VOID, KWatchedShow, VOID, {0: $serializer_getInstance_598}); + setMetadataFor(Companion_612, 'Companion', objectMeta); + protoOf($serializer_599).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_599, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KNotice, 'KNotice', classMeta, VOID, VOID, KNotice, VOID, {0: $serializer_getInstance_599}); + setMetadataFor(Companion_613, 'Companion', objectMeta); + protoOf($serializer_600).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_600, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KBackground, 'KBackground', classMeta, VOID, VOID, KBackground, VOID, {0: $serializer_getInstance_600}); + setMetadataFor(Companion_614, 'Companion', objectMeta); + protoOf($serializer_601).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_601, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KNftFaceIcon, 'KNftFaceIcon', classMeta, VOID, VOID, KNftFaceIcon, VOID, {0: $serializer_getInstance_601}); + setMetadataFor(Companion_615, 'Companion', objectMeta); + protoOf($serializer_602).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_602, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KVipInfo, 'KVipInfo', classMeta, VOID, VOID, KVipInfo, VOID, {0: $serializer_getInstance_602}); + setMetadataFor(Companion_616, 'Companion', objectMeta); + protoOf($serializer_603).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_603, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KVipLabel_0, 'KVipLabel', classMeta, VOID, VOID, KVipLabel_0, VOID, {0: $serializer_getInstance_603}); + setMetadataFor(Companion_617, 'Companion', objectMeta); + protoOf($serializer_604).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_604, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KOfficialVerify_0, 'KOfficialVerify', classMeta, VOID, VOID, KOfficialVerify_0, VOID, {0: $serializer_getInstance_604}); + setMetadataFor(Companion_618, 'Companion', objectMeta); + protoOf($serializer_605).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_605, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KFullTextResult, 'KFullTextResult', classMeta, VOID, VOID, KFullTextResult, VOID, {0: $serializer_getInstance_605}); + setMetadataFor(Companion_619, 'Companion', objectMeta); + protoOf($serializer_606).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_606, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KReasonStyle, 'KReasonStyle', classMeta, VOID, VOID, KReasonStyle, VOID, {0: $serializer_getInstance_606}); + setMetadataFor(Companion_620, 'Companion', objectMeta); + protoOf($serializer_607).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_607, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSharePlane, 'KSharePlane', classMeta, VOID, VOID, KSharePlane, VOID, {0: $serializer_getInstance_607}); + setMetadataFor(Companion_621, 'Companion', objectMeta); + protoOf($serializer_608).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_608, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KShareTo, 'KShareTo', classMeta, VOID, VOID, KShareTo, VOID, {0: $serializer_getInstance_608}); + setMetadataFor(Companion_622, 'Companion', objectMeta); + protoOf($serializer_609).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_609, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KDisplayOption, 'KDisplayOption', classMeta, VOID, VOID, KDisplayOption, VOID, {0: $serializer_getInstance_609}); + setMetadataFor(Companion_623, 'Companion', objectMeta); + protoOf($serializer_610).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_610, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KFeedback, 'KFeedback', classMeta, VOID, VOID, KFeedback, VOID, {0: $serializer_getInstance_610}); + setMetadataFor(Companion_624, 'Companion', objectMeta); + protoOf($serializer_611).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_611, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KFeedbackSection, 'KFeedbackSection', classMeta, VOID, VOID, KFeedbackSection, VOID, {0: $serializer_getInstance_611}); + setMetadataFor(Companion_625, 'Companion', objectMeta); + protoOf($serializer_612).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_612, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KFeedbackItem, 'KFeedbackItem', classMeta, VOID, VOID, KFeedbackItem, VOID, {0: $serializer_getInstance_612}); + setMetadataFor(Companion_626, 'Companion', objectMeta); + protoOf($serializer_613).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_613, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KPicNavigation, 'KPicNavigation', classMeta, VOID, VOID, KPicNavigation, VOID, {0: $serializer_getInstance_613}); + setMetadataFor(Companion_627, 'Companion', objectMeta); + protoOf($serializer_614).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_614, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KReserveInfo, 'KReserveInfo', classMeta, VOID, VOID, KReserveInfo, VOID, {0: $serializer_getInstance_614}); + setMetadataFor(Companion_628, 'Companion', objectMeta); + protoOf($serializer_615).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_615, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSearchReserveRequest, 'KSearchReserveRequest', classMeta, VOID, VOID, KSearchReserveRequest, VOID, {0: $serializer_getInstance_615}); + setMetadataFor(Companion_629, 'Companion', objectMeta); + protoOf($serializer_616).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_616, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSearchReserveResponse, 'KSearchReserveResponse', classMeta, VOID, VOID, KSearchReserveResponse, VOID, {0: $serializer_getInstance_616}); + setMetadataFor(Companion_630, 'Companion', objectMeta); + protoOf($serializer_617).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_617, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KOption_0, 'KOption', classMeta, VOID, VOID, KOption_0, VOID, {0: $serializer_getInstance_617}); + setMetadataFor(Companion_631, 'Companion', objectMeta); + protoOf($serializer_618).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_618, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSearchNPSCard, 'KSearchNPSCard', classMeta, VOID, VOID, KSearchNPSCard, VOID, {0: $serializer_getInstance_618}); + setMetadataFor(Companion_632, 'Companion', objectMeta); + protoOf($serializer_619).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_619, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KFoldingTimeLine, 'KFoldingTimeLine', classMeta, VOID, VOID, KFoldingTimeLine, VOID, {0: $serializer_getInstance_619}); + setMetadataFor(Companion_633, 'Companion', objectMeta); + protoOf($serializer_620).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_620, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSearchChatGPTCard, 'KSearchChatGPTCard', classMeta, VOID, VOID, KSearchChatGPTCard, VOID, {0: $serializer_getInstance_620}); + setMetadataFor(Companion_634, 'Companion', objectMeta); + protoOf($serializer_621).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_621, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KItem_1, 'KItem', classMeta, VOID, VOID, KItem_1, VOID, {0: $serializer_getInstance_621}); + setMetadataFor(Companion_635, 'Companion', objectMeta); + protoOf($serializer_622).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_622, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KDisclaimer, 'KDisclaimer', classMeta, VOID, VOID, KDisclaimer, VOID, {0: $serializer_getInstance_622}); + setMetadataFor(Companion_636, 'Companion', objectMeta); + protoOf($serializer_623).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_623, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSearchHotRecommend, 'KSearchHotRecommend', classMeta, VOID, VOID, KSearchHotRecommend, VOID, {0: $serializer_getInstance_623}); + setMetadataFor(Companion_637, 'Companion', objectMeta); + protoOf($serializer_624).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_624, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KGloryInfo, 'KGloryInfo', classMeta, VOID, VOID, KGloryInfo, VOID, {0: $serializer_getInstance_624}); + setMetadataFor(Companion_638, 'Companion', objectMeta); + protoOf($serializer_625).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_625, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KGloryItem, 'KGloryItem', classMeta, VOID, VOID, KGloryItem, VOID, {0: $serializer_getInstance_625}); + setMetadataFor(Companion_639, 'Companion', objectMeta); + protoOf($serializer_626).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_626, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSearchLiveMaster, 'KSearchLiveMaster', classMeta, VOID, VOID, KSearchLiveMaster, VOID, {0: $serializer_getInstance_626}); + setMetadataFor(Companion_640, 'Companion', objectMeta); + protoOf($serializer_627).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_627, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSearchLiveRoomTitle, 'KSearchLiveRoomTitle', classMeta, VOID, VOID, KSearchLiveRoomTitle, VOID, {0: $serializer_getInstance_627}); + setMetadataFor(Companion_641, 'Companion', objectMeta); + protoOf($serializer_628).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_628, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSearchLiveRoom, 'KSearchLiveRoom', classMeta, VOID, VOID, KSearchLiveRoom, VOID, {0: $serializer_getInstance_628}); + setMetadataFor(Companion_642, 'Companion', objectMeta); + protoOf($serializer_629).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_629, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KLabelStyle, 'KLabelStyle', classMeta, VOID, VOID, KLabelStyle, VOID, {0: $serializer_getInstance_629}); + setMetadataFor(Companion_643, 'Companion', objectMeta); + protoOf($serializer_630).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_630, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSearchCheese, 'KSearchCheese', classMeta, VOID, VOID, KSearchCheese, VOID, {0: $serializer_getInstance_630}); + setMetadataFor(Companion_644, 'Companion', objectMeta); + protoOf($serializer_631).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_631, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KRelatedQuery, 'KRelatedQuery', classMeta, VOID, VOID, KRelatedQuery, VOID, {0: $serializer_getInstance_631}); + setMetadataFor(Companion_645, 'Companion', objectMeta); + protoOf($serializer_632).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_632, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSearchRelatedSearch, 'KSearchRelatedSearch', classMeta, VOID, VOID, KSearchRelatedSearch, VOID, {0: $serializer_getInstance_632}); + setMetadataFor(Companion_646, 'Companion', objectMeta); + protoOf($serializer_633).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_633, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCardLayout, 'KCardLayout', classMeta, VOID, VOID, KCardLayout, VOID, {0: $serializer_getInstance_633}); + setMetadataFor(Companion_647, 'Companion', objectMeta); + protoOf($serializer_634).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_634, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSaleInfo, 'KSaleInfo', classMeta, VOID, VOID, KSaleInfo, VOID, {0: $serializer_getInstance_634}); + setMetadataFor(Companion_648, 'Companion', objectMeta); + protoOf($serializer_635).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_635, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KArc_0, 'KArc', classMeta, VOID, VOID, KArc_0, VOID, {0: $serializer_getInstance_635}); + setMetadataFor(Companion_649, 'Companion', objectMeta); + protoOf($serializer_636).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_636, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSeasonTheme, 'KSeasonTheme', classMeta, VOID, VOID, KSeasonTheme, VOID, {0: $serializer_getInstance_636}); + setMetadataFor(Companion_650, 'Companion', objectMeta); + protoOf($serializer_637).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_637, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KStaffInfo, 'KStaffInfo', classMeta, VOID, VOID, KStaffInfo, VOID, {0: $serializer_getInstance_637}); + setMetadataFor(Companion_651, 'Companion', objectMeta); + protoOf($serializer_638).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_638, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KDimension_1, 'KDimension', classMeta, VOID, VOID, KDimension_1, VOID, {0: $serializer_getInstance_638}); + setMetadataFor(Companion_652, 'Companion', objectMeta); + protoOf($serializer_639).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_639, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KRights_1, 'KRights', classMeta, VOID, VOID, KRights_1, VOID, {0: $serializer_getInstance_639}); + setMetadataFor(Companion_653, 'Companion', objectMeta); + protoOf($serializer_640).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_640, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KAuthor_0, 'KAuthor', classMeta, VOID, VOID, KAuthor_0, VOID, {0: $serializer_getInstance_640}); + setMetadataFor(Companion_654, 'Companion', objectMeta); + protoOf($serializer_641).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_641, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KStat_1, 'KStat', classMeta, VOID, VOID, KStat_1, VOID, {0: $serializer_getInstance_641}); + setMetadataFor(Companion_655, 'Companion', objectMeta); + protoOf($serializer_642).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_642, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KPage_0, 'KPage', classMeta, VOID, VOID, KPage_0, VOID, {0: $serializer_getInstance_642}); + setMetadataFor(Companion_656, 'Companion', objectMeta); + protoOf($serializer_643).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_643, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KAdInfo, 'KAdInfo', classMeta, VOID, VOID, KAdInfo, VOID, {0: $serializer_getInstance_643}); + setMetadataFor(Companion_657, 'Companion', objectMeta); + protoOf($serializer_644).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_644, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCreativeContent, 'KCreativeContent', classMeta, VOID, VOID, KCreativeContent, VOID, {0: $serializer_getInstance_644}); + setMetadataFor(KItem_2, 'KItem', classMeta); + setMetadataFor(KSmallCoverV5, 'KSmallCoverV5', objectMeta); + setMetadataFor(KLargeCoverV1, 'KLargeCoverV1', objectMeta); + setMetadataFor(KThreeItemAllV2, 'KThreeItemAllV2', objectMeta); + setMetadataFor(KThreeItemV1, 'KThreeItemV1', objectMeta); + setMetadataFor(KHotTopic, 'KHotTopic', objectMeta); + setMetadataFor(KThreeItemHV5, 'KThreeItemHV5', objectMeta); + setMetadataFor(KMiddleCoverV3, 'KMiddleCoverV3', objectMeta); + setMetadataFor(KLargeCoverV4, 'KLargeCoverV4', objectMeta); + setMetadataFor(KPopularTopEntrance, 'KPopularTopEntrance', objectMeta); + setMetadataFor(KRcmdOneItem, 'KRcmdOneItem', objectMeta); + setMetadataFor(KSmallCoverV5Ad, 'KSmallCoverV5Ad', objectMeta); + setMetadataFor(KTopicList, 'KTopicList', objectMeta); + setMetadataFor(Companion_658, 'Companion', objectMeta); + protoOf($serializer_645).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_645, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCard_0, 'KCard', classMeta, VOID, VOID, KCard_0, VOID, {0: $serializer_getInstance_645}); + setMetadataFor(Companion_659, 'Companion', objectMeta); + protoOf($serializer_646).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_646, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KBase, 'KBase', classMeta, VOID, VOID, KBase, VOID, {0: $serializer_getInstance_646}); + setMetadataFor(Companion_660, 'Companion', objectMeta); + protoOf($serializer_647).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_647, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KUpArgs_0, 'KUpArgs', classMeta, VOID, VOID, KUpArgs_0, VOID, {0: $serializer_getInstance_647}); + setMetadataFor(Companion_661, 'Companion', objectMeta); + protoOf($serializer_648).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_648, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KButton_3, 'KButton', classMeta, VOID, VOID, KButton_3, VOID, {0: $serializer_getInstance_648}); + setMetadataFor(Companion_662, 'Companion', objectMeta); + protoOf($serializer_649).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_649, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KThreePoint_0, 'KThreePoint', classMeta, VOID, VOID, KThreePoint_0, VOID, {0: $serializer_getInstance_649}); + setMetadataFor(Companion_663, 'Companion', objectMeta); + protoOf($serializer_650).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_650, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KDislikeReason_0, 'KDislikeReason', classMeta, VOID, VOID, KDislikeReason_0, VOID, {0: $serializer_getInstance_650}); + setMetadataFor(Companion_664, 'Companion', objectMeta); + protoOf($serializer_651).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_651, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KArgs_0, 'KArgs', classMeta, VOID, VOID, KArgs_0, VOID, {0: $serializer_getInstance_651}); + setMetadataFor(Companion_665, 'Companion', objectMeta); + protoOf($serializer_652).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_652, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KPlayerArgs_1, 'KPlayerArgs', classMeta, VOID, VOID, KPlayerArgs_1, VOID, {0: $serializer_getInstance_652}); + setMetadataFor(Companion_666, 'Companion', objectMeta); + protoOf($serializer_653).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_653, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KMask_0, 'KMask', classMeta, VOID, VOID, KMask_0, VOID, {0: $serializer_getInstance_653}); + setMetadataFor(Companion_667, 'Companion', objectMeta); + protoOf($serializer_654).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_654, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KAvatar_0, 'KAvatar', classMeta, VOID, VOID, KAvatar_0, VOID, {0: $serializer_getInstance_654}); + setMetadataFor(Companion_668, 'Companion', objectMeta); + protoOf($serializer_655).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_655, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KThreePointV2_0, 'KThreePointV2', classMeta, VOID, VOID, KThreePointV2_0, VOID, {0: $serializer_getInstance_655}); + setMetadataFor(Companion_669, 'Companion', objectMeta); + protoOf($serializer_656).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_656, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KThreePointV3_0, 'KThreePointV3', classMeta, VOID, VOID, KThreePointV3_0, VOID, {0: $serializer_getInstance_656}); + setMetadataFor(Companion_670, 'Companion', objectMeta); + protoOf($serializer_657).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_657, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KThreePointV4_0, 'KThreePointV4', classMeta, VOID, VOID, KThreePointV4_0, VOID, {0: $serializer_getInstance_657}); + setMetadataFor(Companion_671, 'Companion', objectMeta); + protoOf($serializer_658).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_658, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KShareToEntry, 'KShareToEntry', classMeta, VOID, VOID, KShareToEntry, VOID, {0: $serializer_getInstance_658}); + setMetadataFor(Companion_672, 'Companion', objectMeta); + protoOf($serializer_659).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_659, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSharePlane_0, 'KSharePlane', classMeta, VOID, VOID, KSharePlane_0, VOID, {0: $serializer_getInstance_659}); + setMetadataFor(Companion_673, 'Companion', objectMeta); + protoOf($serializer_660).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_660, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KInlineProgressBar_0, 'KInlineProgressBar', classMeta, VOID, VOID, KInlineProgressBar_0, VOID, {0: $serializer_getInstance_660}); + setMetadataFor(Companion_674, 'Companion', objectMeta); + protoOf($serializer_661).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_661, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KWatchLater_0, 'KWatchLater', classMeta, VOID, VOID, KWatchLater_0, VOID, {0: $serializer_getInstance_661}); + setMetadataFor(Companion_675, 'Companion', objectMeta); + protoOf($serializer_662).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_662, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KReasonStyle_0, 'KReasonStyle', classMeta, VOID, VOID, KReasonStyle_0, VOID, {0: $serializer_getInstance_662}); + setMetadataFor(Companion_676, 'Companion', objectMeta); + protoOf($serializer_663).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_663, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KLikeButton, 'KLikeButton', classMeta, VOID, VOID, KLikeButton, VOID, {0: $serializer_getInstance_663}); + setMetadataFor(Companion_677, 'Companion', objectMeta); + protoOf($serializer_664).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_664, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KUp, 'KUp', classMeta, VOID, VOID, KUp, VOID, {0: $serializer_getInstance_664}); + setMetadataFor(Companion_678, 'Companion', objectMeta); + protoOf($serializer_665).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_665, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KRelation_0, 'KRelation', classMeta, VOID, VOID, KRelation_0, VOID, {0: $serializer_getInstance_665}); + setMetadataFor(Companion_679, 'Companion', objectMeta); + protoOf($serializer_666).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_666, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KPanelMeta, 'KPanelMeta', classMeta, VOID, VOID, KPanelMeta, VOID, {0: $serializer_getInstance_666}); + setMetadataFor(Companion_680, 'Companion', objectMeta); + protoOf($serializer_667).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_667, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KFunctionalButton, 'KFunctionalButton', classMeta, VOID, VOID, KFunctionalButton, VOID, {0: $serializer_getInstance_667}); + setMetadataFor(Companion_681, 'Companion', objectMeta); + protoOf($serializer_668).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_668, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KFunctionalButtonMeta, 'KFunctionalButtonMeta', classMeta, VOID, VOID, KFunctionalButtonMeta, VOID, {0: $serializer_getInstance_668}); + setMetadataFor(KCard_1, 'KCard', classMeta); + setMetadataFor(KSmallCoverV2, 'KSmallCoverV2', objectMeta); + setMetadataFor(KOnePicV2, 'KOnePicV2', objectMeta); + setMetadataFor(KThreePicV2, 'KThreePicV2', objectMeta); + setMetadataFor(Companion_682, 'Companion', objectMeta); + protoOf($serializer_669).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_669, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KDoubleCards, 'KDoubleCards', classMeta, VOID, VOID, KDoubleCards, VOID, {0: $serializer_getInstance_669}); + setMetadataFor(Companion_683, 'Companion', objectMeta); + protoOf($serializer_670).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_670, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSmallCoverV2_0, 'KSmallCoverV2', classMeta, VOID, VOID, KSmallCoverV2_0, VOID, {0: $serializer_getInstance_670}); + setMetadataFor(Companion_684, 'Companion', objectMeta); + protoOf($serializer_671).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_671, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSmallCoverV3, 'KSmallCoverV3', classMeta, VOID, VOID, KSmallCoverV3, VOID, {0: $serializer_getInstance_671}); + setMetadataFor(Companion_685, 'Companion', objectMeta); + protoOf($serializer_672).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_672, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KMiddleCoverV2, 'KMiddleCoverV2', classMeta, VOID, VOID, KMiddleCoverV2, VOID, {0: $serializer_getInstance_672}); + setMetadataFor(Companion_686, 'Companion', objectMeta); + protoOf($serializer_673).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_673, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KLargeCoverV2, 'KLargeCoverV2', classMeta, VOID, VOID, KLargeCoverV2, VOID, {0: $serializer_getInstance_673}); + setMetadataFor(Companion_687, 'Companion', objectMeta); + protoOf($serializer_674).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_674, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KThreeItemV2, 'KThreeItemV2', classMeta, VOID, VOID, KThreeItemV2, VOID, {0: $serializer_getInstance_674}); + setMetadataFor(Companion_688, 'Companion', objectMeta); + protoOf($serializer_675).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_675, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KThreeItemV2Item, 'KThreeItemV2Item', classMeta, VOID, VOID, KThreeItemV2Item, VOID, {0: $serializer_getInstance_675}); + setMetadataFor(Companion_689, 'Companion', objectMeta); + protoOf($serializer_676).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_676, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSmallCoverV4, 'KSmallCoverV4', classMeta, VOID, VOID, KSmallCoverV4, VOID, {0: $serializer_getInstance_676}); + setMetadataFor(Companion_690, 'Companion', objectMeta); + protoOf($serializer_677).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_677, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KTwoItemV2, 'KTwoItemV2', classMeta, VOID, VOID, KTwoItemV2, VOID, {0: $serializer_getInstance_677}); + setMetadataFor(Companion_691, 'Companion', objectMeta); + protoOf($serializer_678).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_678, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KTwoItemV2Item, 'KTwoItemV2Item', classMeta, VOID, VOID, KTwoItemV2Item, VOID, {0: $serializer_getInstance_678}); + setMetadataFor(Companion_692, 'Companion', objectMeta); + protoOf($serializer_679).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_679, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KMultiItem, 'KMultiItem', classMeta, VOID, VOID, KMultiItem, VOID, {0: $serializer_getInstance_679}); + setMetadataFor(Companion_693, 'Companion', objectMeta); + protoOf($serializer_680).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_680, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KThreePicV2_0, 'KThreePicV2', classMeta, VOID, VOID, KThreePicV2_0, VOID, {0: $serializer_getInstance_680}); + setMetadataFor(Companion_694, 'Companion', objectMeta); + protoOf($serializer_681).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_681, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KOnePicV2_0, 'KOnePicV2', classMeta, VOID, VOID, KOnePicV2_0, VOID, {0: $serializer_getInstance_681}); + setMetadataFor(Companion_695, 'Companion', objectMeta); + protoOf($serializer_682).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_682, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KLargeCoverV3, 'KLargeCoverV3', classMeta, VOID, VOID, KLargeCoverV3, VOID, {0: $serializer_getInstance_682}); + setMetadataFor(Companion_696, 'Companion', objectMeta); + protoOf($serializer_683).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_683, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KThreePicV3, 'KThreePicV3', classMeta, VOID, VOID, KThreePicV3, VOID, {0: $serializer_getInstance_683}); + setMetadataFor(Companion_697, 'Companion', objectMeta); + protoOf($serializer_684).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_684, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KOnePicV3, 'KOnePicV3', classMeta, VOID, VOID, KOnePicV3, VOID, {0: $serializer_getInstance_684}); + setMetadataFor(Companion_698, 'Companion', objectMeta); + protoOf($serializer_685).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_685, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSmallCoverV7, 'KSmallCoverV7', classMeta, VOID, VOID, KSmallCoverV7, VOID, {0: $serializer_getInstance_685}); + setMetadataFor(Companion_699, 'Companion', objectMeta); + protoOf($serializer_686).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_686, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSmallCoverV9, 'KSmallCoverV9', classMeta, VOID, VOID, KSmallCoverV9, VOID, {0: $serializer_getInstance_686}); + setMetadataFor(Companion_700, 'Companion', objectMeta); + protoOf($serializer_687).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_687, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSmallCoverConvergeV2, 'KSmallCoverConvergeV2', classMeta, VOID, VOID, KSmallCoverConvergeV2, VOID, {0: $serializer_getInstance_687}); + setMetadataFor(Companion_701, 'Companion', objectMeta); + protoOf($serializer_688).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_688, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSmallChannelSpecial, 'KSmallChannelSpecial', classMeta, VOID, VOID, KSmallChannelSpecial, VOID, {0: $serializer_getInstance_688}); + setMetadataFor(Companion_702, 'Companion', objectMeta); + protoOf($serializer_689).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_689, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSmallCoverV5Ad_0, 'KSmallCoverV5Ad', classMeta, VOID, VOID, KSmallCoverV5Ad_0, VOID, {0: $serializer_getInstance_689}); + setMetadataFor(Companion_703, 'Companion', objectMeta); + protoOf($serializer_690).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_690, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSmallCoverV5_0, 'KSmallCoverV5', classMeta, VOID, VOID, KSmallCoverV5_0, VOID, {0: $serializer_getInstance_690}); + setMetadataFor(Companion_704, 'Companion', objectMeta); + protoOf($serializer_691).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_691, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KHotwordEntrance, 'KHotwordEntrance', classMeta, VOID, VOID, KHotwordEntrance, VOID, {0: $serializer_getInstance_691}); + setMetadataFor(Companion_705, 'Companion', objectMeta); + protoOf($serializer_692).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_692, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KLargeCoverV1_0, 'KLargeCoverV1', classMeta, VOID, VOID, KLargeCoverV1_0, VOID, {0: $serializer_getInstance_692}); + setMetadataFor(Companion_706, 'Companion', objectMeta); + protoOf($serializer_693).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_693, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KThreeItemAllV2_0, 'KThreeItemAllV2', classMeta, VOID, VOID, KThreeItemAllV2_0, VOID, {0: $serializer_getInstance_693}); + setMetadataFor(Companion_707, 'Companion', objectMeta); + protoOf($serializer_694).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_694, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KTwoItemHV1Item, 'KTwoItemHV1Item', classMeta, VOID, VOID, KTwoItemHV1Item, VOID, {0: $serializer_getInstance_694}); + setMetadataFor(Companion_708, 'Companion', objectMeta); + protoOf($serializer_695).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_695, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KRcmdOneItem_0, 'KRcmdOneItem', classMeta, VOID, VOID, KRcmdOneItem_0, VOID, {0: $serializer_getInstance_695}); + setMetadataFor(Companion_709, 'Companion', objectMeta); + protoOf($serializer_696).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_696, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSmallCoverRcmdItem, 'KSmallCoverRcmdItem', classMeta, VOID, VOID, KSmallCoverRcmdItem, VOID, {0: $serializer_getInstance_696}); + setMetadataFor(Companion_710, 'Companion', objectMeta); + protoOf($serializer_697).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_697, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KThreeItemV1_0, 'KThreeItemV1', classMeta, VOID, VOID, KThreeItemV1_0, VOID, {0: $serializer_getInstance_697}); + setMetadataFor(Companion_711, 'Companion', objectMeta); + protoOf($serializer_698).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_698, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KThreeItemV1Item, 'KThreeItemV1Item', classMeta, VOID, VOID, KThreeItemV1Item, VOID, {0: $serializer_getInstance_698}); + setMetadataFor(Companion_712, 'Companion', objectMeta); + protoOf($serializer_699).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_699, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KHotTopic_0, 'KHotTopic', classMeta, VOID, VOID, KHotTopic_0, VOID, {0: $serializer_getInstance_699}); + setMetadataFor(Companion_713, 'Companion', objectMeta); + protoOf($serializer_700).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_700, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KHotTopicItem, 'KHotTopicItem', classMeta, VOID, VOID, KHotTopicItem, VOID, {0: $serializer_getInstance_700}); + setMetadataFor(Companion_714, 'Companion', objectMeta); + protoOf($serializer_701).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_701, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KDynamicHot, 'KDynamicHot', classMeta, VOID, VOID, KDynamicHot, VOID, {0: $serializer_getInstance_701}); + setMetadataFor(Companion_715, 'Companion', objectMeta); + protoOf($serializer_702).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_702, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KMiddleCoverV3_0, 'KMiddleCoverV3', classMeta, VOID, VOID, KMiddleCoverV3_0, VOID, {0: $serializer_getInstance_702}); + setMetadataFor(Companion_716, 'Companion', objectMeta); + protoOf($serializer_703).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_703, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KLargeCoverV4_0, 'KLargeCoverV4', classMeta, VOID, VOID, KLargeCoverV4_0, VOID, {0: $serializer_getInstance_703}); + setMetadataFor(Companion_717, 'Companion', objectMeta); + protoOf($serializer_704).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_704, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KPopularTopEntrance_0, 'KPopularTopEntrance', classMeta, VOID, VOID, KPopularTopEntrance_0, VOID, {0: $serializer_getInstance_704}); + setMetadataFor(Companion_718, 'Companion', objectMeta); + protoOf($serializer_705).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_705, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KEntranceItem, 'KEntranceItem', classMeta, VOID, VOID, KEntranceItem, VOID, {0: $serializer_getInstance_705}); + setMetadataFor(Companion_719, 'Companion', objectMeta); + protoOf($serializer_706).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_706, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KBubble, 'KBubble', classMeta, VOID, VOID, KBubble, VOID, {0: $serializer_getInstance_706}); + setMetadataFor(Companion_720, 'Companion', objectMeta); + protoOf($serializer_707).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_707, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KTopicList_0, 'KTopicList', classMeta, VOID, VOID, KTopicList_0, VOID, {0: $serializer_getInstance_707}); + setMetadataFor(Companion_721, 'Companion', objectMeta); + protoOf($serializer_708).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_708, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KTopicListItem, 'KTopicListItem', classMeta, VOID, VOID, KTopicListItem, VOID, {0: $serializer_getInstance_708}); + setMetadataFor(Companion_722, 'Companion', objectMeta); + protoOf($serializer_709).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_709, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KTopicButton, 'KTopicButton', classMeta, VOID, VOID, KTopicButton, VOID, {0: $serializer_getInstance_709}); + setMetadataFor(Companion_723, 'Companion', objectMeta); + protoOf($serializer_710).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_710, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KWHRatio, 'KWHRatio', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_723}); + setMetadataFor(Companion_724, 'Companion', objectMeta); + protoOf($serializer_711).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_711, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KItemWHRatio, 'KItemWHRatio', classMeta, VOID, VOID, KItemWHRatio, VOID, {0: $serializer_getInstance_711}); + setMetadataFor(Companion_725, 'Companion', objectMeta); + protoOf($serializer_712).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_712, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KWFItemType, 'KWFItemType', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_725}); + setMetadataFor(Companion_726, 'Companion', objectMeta); + protoOf($serializer_713).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_713, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KAnnotationsEntry, 'KAnnotationsEntry', classMeta, VOID, VOID, KAnnotationsEntry, VOID, {0: $serializer_getInstance_713}); + setMetadataFor(Companion_727, 'Companion', objectMeta); + protoOf($serializer_714).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_714, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KWFItemDefault, 'KWFItemDefault', classMeta, VOID, VOID, KWFItemDefault, VOID, {0: $serializer_getInstance_714}); + setMetadataFor(KFlowItem, 'KFlowItem', classMeta); + setMetadataFor(KItemDefault, 'KItemDefault', objectMeta); + setMetadataFor(Companion_728, 'Companion', objectMeta); + protoOf($serializer_715).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_715, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCampusWaterFlowItem, 'KCampusWaterFlowItem', classMeta, VOID, VOID, KCampusWaterFlowItem, VOID, {0: $serializer_getInstance_715}); + setMetadataFor(Companion_729, 'Companion', objectMeta); + protoOf($serializer_716).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_716, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KWaterFlowRcmdReq, 'KWaterFlowRcmdReq', classMeta, VOID, VOID, KWaterFlowRcmdReq, VOID, {0: $serializer_getInstance_716}); + setMetadataFor(Companion_730, 'Companion', objectMeta); + protoOf($serializer_717).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_717, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KWaterFlowRcmdResp, 'KWaterFlowRcmdResp', classMeta, VOID, VOID, KWaterFlowRcmdResp, VOID, {0: $serializer_getInstance_717}); + setMetadataFor(Companion_731, 'Companion', objectMeta); + protoOf($serializer_718).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_718, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KRefresh, 'KRefresh', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_731}); + setMetadataFor(Companion_732, 'Companion', objectMeta); + protoOf($serializer_719).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_719, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KStyleType, 'KStyleType', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_732}); + setMetadataFor(Companion_733, 'Companion', objectMeta); + protoOf($serializer_720).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_720, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KUserItemType, 'KUserItemType', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_733}); + setMetadataFor(Companion_734, 'Companion', objectMeta); + protoOf($serializer_721).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_721, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KFollowType, 'KFollowType', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_734}); + setMetadataFor(Companion_735, 'Companion', objectMeta); + protoOf($serializer_722).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_722, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KThumbType, 'KThumbType', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_735}); + setMetadataFor(Companion_736, 'Companion', objectMeta); + protoOf($serializer_723).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_723, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KVoteStatus, 'KVoteStatus', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_736}); + setMetadataFor(Companion_737, 'Companion', objectMeta); + protoOf($serializer_724).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_724, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KLightFromType, 'KLightFromType', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_737}); + setMetadataFor(Companion_738, 'Companion', objectMeta); + protoOf($serializer_725).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_725, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KRepostType, 'KRepostType', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_738}); + setMetadataFor(Companion_739, 'Companion', objectMeta); + protoOf($serializer_726).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_726, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KRcmdReasonStyle, 'KRcmdReasonStyle', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_739}); + setMetadataFor(Companion_740, 'Companion', objectMeta); + protoOf($serializer_727).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_727, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCampusTabType, 'KCampusTabType', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_740}); + setMetadataFor(Companion_741, 'Companion', objectMeta); + protoOf($serializer_728).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_728, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KShowType, 'KShowType', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_741}); + setMetadataFor(Companion_742, 'Companion', objectMeta); + protoOf($serializer_729).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_729, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KNetworkType, 'KNetworkType', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_742}); + setMetadataFor(Companion_743, 'Companion', objectMeta); + protoOf($serializer_730).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_730, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KTFType, 'KTFType', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_743}); + setMetadataFor(Companion_744, 'Companion', objectMeta); + protoOf($serializer_731).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_731, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KHomePageTabSttingStatus, 'KHomePageTabSttingStatus', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_744}); + setMetadataFor(Companion_745, 'Companion', objectMeta); + protoOf($serializer_732).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_732, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCampusHomePageType, 'KCampusHomePageType', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_745}); + setMetadataFor(Companion_746, 'Companion', objectMeta); + protoOf($serializer_733).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_733, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCampusReqFromType, 'KCampusReqFromType', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_746}); + setMetadataFor(Companion_747, 'Companion', objectMeta); + protoOf($serializer_734).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_734, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCampusRcmdReqFrom, 'KCampusRcmdReqFrom', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_747}); + setMetadataFor(Companion_748, 'Companion', objectMeta); + protoOf($serializer_735).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_735, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCampusEntryType, 'KCampusEntryType', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_748}); + setMetadataFor(Companion_749, 'Companion', objectMeta); + protoOf($serializer_736).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_736, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCampusOnlineStatus, 'KCampusOnlineStatus', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_749}); + setMetadataFor(Companion_750, 'Companion', objectMeta); + protoOf($serializer_737).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_737, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCampusMngAuditStatus, 'KCampusMngAuditStatus', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_750}); + setMetadataFor(Companion_751, 'Companion', objectMeta); + protoOf($serializer_738).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_738, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCampusMngItemType, 'KCampusMngItemType', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_751}); + setMetadataFor(Companion_752, 'Companion', objectMeta); + protoOf($serializer_739).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_739, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCampusMngQuizAction, 'KCampusMngQuizAction', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_752}); + setMetadataFor(Companion_753, 'Companion', objectMeta); + protoOf($serializer_740).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_740, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KNoReq, 'KNoReq', classMeta, VOID, VOID, KNoReq, VOID, {0: $serializer_getInstance_740}); + setMetadataFor(Companion_754, 'Companion', objectMeta); + protoOf($serializer_741).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_741, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KNoReply, 'KNoReply', classMeta, VOID, VOID, KNoReply, VOID, {0: $serializer_getInstance_741}); + setMetadataFor(Companion_755, 'Companion', objectMeta); + protoOf($serializer_742).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_742, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KDynVideoReq, 'KDynVideoReq', classMeta, VOID, VOID, KDynVideoReq, VOID, {0: $serializer_getInstance_742}); + setMetadataFor(Companion_756, 'Companion', objectMeta); + protoOf($serializer_743).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_743, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KPlayurlParam, 'KPlayurlParam', classMeta, VOID, VOID, KPlayurlParam, VOID, {0: $serializer_getInstance_743}); + setMetadataFor(Companion_757, 'Companion', objectMeta); + protoOf($serializer_744).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_744, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KDynVideoReply, 'KDynVideoReply', classMeta, VOID, VOID, KDynVideoReply, VOID, {0: $serializer_getInstance_744}); + setMetadataFor(Companion_758, 'Companion', objectMeta); + protoOf($serializer_745).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_745, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCardVideoDynList, 'KCardVideoDynList', classMeta, VOID, VOID, KCardVideoDynList, VOID, {0: $serializer_getInstance_745}); + setMetadataFor(Companion_759, 'Companion', objectMeta); + protoOf($serializer_746).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_746, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KDynAllReq, 'KDynAllReq', classMeta, VOID, VOID, KDynAllReq, VOID, {0: $serializer_getInstance_746}); + setMetadataFor(Companion_760, 'Companion', objectMeta); + protoOf($serializer_747).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_747, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KRcmdUPsParam, 'KRcmdUPsParam', classMeta, VOID, VOID, KRcmdUPsParam, VOID, {0: $serializer_getInstance_747}); + setMetadataFor(Companion_761, 'Companion', objectMeta); + protoOf($serializer_748).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_748, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KAdParam, 'KAdParam', classMeta, VOID, VOID, KAdParam, VOID, {0: $serializer_getInstance_748}); + setMetadataFor(Companion_762, 'Companion', objectMeta); + protoOf($serializer_749).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_749, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KExtraRouterKvsEntry, 'KExtraRouterKvsEntry', classMeta, VOID, VOID, KExtraRouterKvsEntry, VOID, {0: $serializer_getInstance_749}); + setMetadataFor(Companion_763, 'Companion', objectMeta); + protoOf($serializer_750).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_750, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KConfig_1, 'KConfig', classMeta, VOID, VOID, KConfig_1, VOID, {0: $serializer_getInstance_750}); + setMetadataFor(Companion_764, 'Companion', objectMeta); + protoOf($serializer_751).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_751, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KDynAllReply, 'KDynAllReply', classMeta, VOID, VOID, KDynAllReply, VOID, {0: $serializer_getInstance_751}); + setMetadataFor(Companion_765, 'Companion', objectMeta); + protoOf($serializer_752).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_752, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KFeedSortConfig, 'KFeedSortConfig', classMeta, VOID, VOID, KFeedSortConfig, VOID, {0: $serializer_getInstance_752}); + setMetadataFor(Companion_766, 'Companion', objectMeta); + protoOf($serializer_753).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_753, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KFeedSortOption, 'KFeedSortOption', classMeta, VOID, VOID, KFeedSortOption, VOID, {0: $serializer_getInstance_753}); + setMetadataFor(Companion_767, 'Companion', objectMeta); + protoOf($serializer_754).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_754, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KFeedSortOptionReq, 'KFeedSortOptionReq', classMeta, VOID, VOID, KFeedSortOptionReq, VOID, {0: $serializer_getInstance_754}); + setMetadataFor(Companion_768, 'Companion', objectMeta); + protoOf($serializer_755).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_755, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KDynamicList, 'KDynamicList', classMeta, VOID, VOID, KDynamicList, VOID, {0: $serializer_getInstance_755}); + setMetadataFor(Companion_769, 'Companion', objectMeta); + protoOf($serializer_756).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_756, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KTopicList_1, 'KTopicList', classMeta, VOID, VOID, KTopicList_1, VOID, {0: $serializer_getInstance_756}); + setMetadataFor(Companion_770, 'Companion', objectMeta); + protoOf($serializer_757).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_757, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KTopicListItem_0, 'KTopicListItem', classMeta, VOID, VOID, KTopicListItem_0, VOID, {0: $serializer_getInstance_757}); + setMetadataFor(Companion_771, 'Companion', objectMeta); + protoOf($serializer_758).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_758, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KTopicButton_0, 'KTopicButton', classMeta, VOID, VOID, KTopicButton_0, VOID, {0: $serializer_getInstance_758}); + setMetadataFor(Companion_772, 'Companion', objectMeta); + protoOf($serializer_759).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_759, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KUnfollow, 'KUnfollow', classMeta, VOID, VOID, KUnfollow, VOID, {0: $serializer_getInstance_759}); + setMetadataFor(Companion_773, 'Companion', objectMeta); + protoOf($serializer_760).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_760, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KUnfollowUserItem, 'KUnfollowUserItem', classMeta, VOID, VOID, KUnfollowUserItem, VOID, {0: $serializer_getInstance_760}); + setMetadataFor(Companion_774, 'Companion', objectMeta); + protoOf($serializer_761).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_761, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KDynDetailsReq, 'KDynDetailsReq', classMeta, VOID, VOID, KDynDetailsReq, VOID, {0: $serializer_getInstance_761}); + setMetadataFor(Companion_775, 'Companion', objectMeta); + protoOf($serializer_762).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_762, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KDynDetailsReply, 'KDynDetailsReply', classMeta, VOID, VOID, KDynDetailsReply, VOID, {0: $serializer_getInstance_762}); + setMetadataFor(Companion_776, 'Companion', objectMeta); + protoOf($serializer_763).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_763, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KDynVideoPersonalReq, 'KDynVideoPersonalReq', classMeta, VOID, VOID, KDynVideoPersonalReq, VOID, {0: $serializer_getInstance_763}); + setMetadataFor(Companion_777, 'Companion', objectMeta); + protoOf($serializer_764).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_764, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KDynVideoPersonalReply, 'KDynVideoPersonalReply', classMeta, VOID, VOID, KDynVideoPersonalReply, VOID, {0: $serializer_getInstance_764}); + setMetadataFor(Companion_778, 'Companion', objectMeta); + protoOf($serializer_765).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_765, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KDynVideoUpdOffsetReq, 'KDynVideoUpdOffsetReq', classMeta, VOID, VOID, KDynVideoUpdOffsetReq, VOID, {0: $serializer_getInstance_765}); + setMetadataFor(Companion_779, 'Companion', objectMeta); + protoOf($serializer_766).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_766, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCardVideoUpList, 'KCardVideoUpList', classMeta, VOID, VOID, KCardVideoUpList, VOID, {0: $serializer_getInstance_766}); + setMetadataFor(Companion_780, 'Companion', objectMeta); + protoOf($serializer_767).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_767, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KUpListMoreLabel, 'KUpListMoreLabel', classMeta, VOID, VOID, KUpListMoreLabel, VOID, {0: $serializer_getInstance_767}); + setMetadataFor(Companion_781, 'Companion', objectMeta); + protoOf($serializer_768).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_768, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KUpListItem, 'KUpListItem', classMeta, VOID, VOID, KUpListItem, VOID, {0: $serializer_getInstance_768}); + setMetadataFor(Companion_782, 'Companion', objectMeta); + protoOf($serializer_769).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_769, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KUserItemStyle, 'KUserItemStyle', classMeta, VOID, VOID, KUserItemStyle, VOID, {0: $serializer_getInstance_769}); + setMetadataFor(Companion_783, 'Companion', objectMeta); + protoOf($serializer_770).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_770, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCardVideoFollowList, 'KCardVideoFollowList', classMeta, VOID, VOID, KCardVideoFollowList, VOID, {0: $serializer_getInstance_770}); + setMetadataFor(Companion_784, 'Companion', objectMeta); + protoOf($serializer_771).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_771, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KFollowListItem, 'KFollowListItem', classMeta, VOID, VOID, KFollowListItem, VOID, {0: $serializer_getInstance_771}); + setMetadataFor(Companion_785, 'Companion', objectMeta); + protoOf($serializer_772).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_772, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KNewEP, 'KNewEP', classMeta, VOID, VOID, KNewEP, VOID, {0: $serializer_getInstance_772}); + setMetadataFor(Companion_786, 'Companion', objectMeta); + protoOf($serializer_773).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_773, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KDynAdditionCommonFollowReq, 'KDynAdditionCommonFollowReq', classMeta, VOID, VOID, KDynAdditionCommonFollowReq, VOID, {0: $serializer_getInstance_773}); + setMetadataFor(Companion_787, 'Companion', objectMeta); + protoOf($serializer_774).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_774, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KDynAdditionCommonFollowReply, 'KDynAdditionCommonFollowReply', classMeta, VOID, VOID, KDynAdditionCommonFollowReply, VOID, {0: $serializer_getInstance_774}); + setMetadataFor(Companion_788, 'Companion', objectMeta); + protoOf($serializer_775).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_775, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KDynThumbReq, 'KDynThumbReq', classMeta, VOID, VOID, KDynThumbReq, VOID, {0: $serializer_getInstance_775}); + setMetadataFor(Companion_789, 'Companion', objectMeta); + protoOf($serializer_776).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_776, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KDynFakeCardReq, 'KDynFakeCardReq', classMeta, VOID, VOID, KDynFakeCardReq, VOID, {0: $serializer_getInstance_776}); + setMetadataFor(Companion_790, 'Companion', objectMeta); + protoOf($serializer_777).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_777, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KDynFakeCardReply, 'KDynFakeCardReply', classMeta, VOID, VOID, KDynFakeCardReply, VOID, {0: $serializer_getInstance_777}); + setMetadataFor(Companion_791, 'Companion', objectMeta); + protoOf($serializer_778).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_778, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KDynRcmdUpExchangeReq, 'KDynRcmdUpExchangeReq', classMeta, VOID, VOID, KDynRcmdUpExchangeReq, VOID, {0: $serializer_getInstance_778}); + setMetadataFor(Companion_792, 'Companion', objectMeta); + protoOf($serializer_779).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_779, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KDynRcmdUpExchangeReply, 'KDynRcmdUpExchangeReply', classMeta, VOID, VOID, KDynRcmdUpExchangeReply, VOID, {0: $serializer_getInstance_779}); + setMetadataFor(Companion_793, 'Companion', objectMeta); + protoOf($serializer_780).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_780, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KDynAllPersonalReq, 'KDynAllPersonalReq', classMeta, VOID, VOID, KDynAllPersonalReq, VOID, {0: $serializer_getInstance_780}); + setMetadataFor(Companion_794, 'Companion', objectMeta); + protoOf($serializer_781).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_781, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KDynAllPersonalReply, 'KDynAllPersonalReply', classMeta, VOID, VOID, KDynAllPersonalReply, VOID, {0: $serializer_getInstance_781}); + setMetadataFor(Companion_795, 'Companion', objectMeta); + protoOf($serializer_782).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_782, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KTopAdditionUP, 'KTopAdditionUP', classMeta, VOID, VOID, KTopAdditionUP, VOID, {0: $serializer_getInstance_782}); + setMetadataFor(Companion_796, 'Companion', objectMeta); + protoOf($serializer_783).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_783, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KDynAllUpdOffsetReq, 'KDynAllUpdOffsetReq', classMeta, VOID, VOID, KDynAllUpdOffsetReq, VOID, {0: $serializer_getInstance_783}); + setMetadataFor(Companion_797, 'Companion', objectMeta); + protoOf($serializer_784).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_784, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KDynVoteReq, 'KDynVoteReq', classMeta, VOID, VOID, KDynVoteReq, VOID, {0: $serializer_getInstance_784}); + setMetadataFor(Companion_798, 'Companion', objectMeta); + protoOf($serializer_785).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_785, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KDynVoteReply, 'KDynVoteReply', classMeta, VOID, VOID, KDynVoteReply, VOID, {0: $serializer_getInstance_785}); + setMetadataFor(Companion_799, 'Companion', objectMeta); + protoOf($serializer_786).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_786, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KMixUpListLiveItem, 'KMixUpListLiveItem', classMeta, VOID, VOID, KMixUpListLiveItem, VOID, {0: $serializer_getInstance_786}); + setMetadataFor(Companion_800, 'Companion', objectMeta); + protoOf($serializer_787).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_787, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KMixUpListItem, 'KMixUpListItem', classMeta, VOID, VOID, KMixUpListItem, VOID, {0: $serializer_getInstance_787}); + setMetadataFor(Companion_801, 'Companion', objectMeta); + protoOf($serializer_788).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_788, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KDynMixUpListViewMoreReq, 'KDynMixUpListViewMoreReq', classMeta, VOID, VOID, KDynMixUpListViewMoreReq, VOID, {0: $serializer_getInstance_788}); + setMetadataFor(Companion_802, 'Companion', objectMeta); + protoOf($serializer_789).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_789, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSortType, 'KSortType', classMeta, VOID, VOID, KSortType, VOID, {0: $serializer_getInstance_789}); + setMetadataFor(Companion_803, 'Companion', objectMeta); + protoOf($serializer_790).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_790, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KDynMixUpListViewMoreReply, 'KDynMixUpListViewMoreReply', classMeta, VOID, VOID, KDynMixUpListViewMoreReply, VOID, {0: $serializer_getInstance_790}); + setMetadataFor(Companion_804, 'Companion', objectMeta); + protoOf($serializer_791).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_791, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KDynMixUpListSearchReq, 'KDynMixUpListSearchReq', classMeta, VOID, VOID, KDynMixUpListSearchReq, VOID, {0: $serializer_getInstance_791}); + setMetadataFor(Companion_805, 'Companion', objectMeta); + protoOf($serializer_792).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_792, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KDynMixUpListSearchReply, 'KDynMixUpListSearchReply', classMeta, VOID, VOID, KDynMixUpListSearchReply, VOID, {0: $serializer_getInstance_792}); + setMetadataFor(Companion_806, 'Companion', objectMeta); + protoOf($serializer_793).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_793, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KDynLightReq, 'KDynLightReq', classMeta, VOID, VOID, KDynLightReq, VOID, {0: $serializer_getInstance_793}); + setMetadataFor(Companion_807, 'Companion', objectMeta); + protoOf($serializer_794).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_794, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KDynLightReply, 'KDynLightReply', classMeta, VOID, VOID, KDynLightReply, VOID, {0: $serializer_getInstance_794}); + setMetadataFor(Companion_808, 'Companion', objectMeta); + protoOf($serializer_795).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_795, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KDynDetailReq, 'KDynDetailReq', classMeta, VOID, VOID, KDynDetailReq, VOID, {0: $serializer_getInstance_795}); + setMetadataFor(Companion_809, 'Companion', objectMeta); + protoOf($serializer_796).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_796, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KDynDetailReply, 'KDynDetailReply', classMeta, VOID, VOID, KDynDetailReply, VOID, {0: $serializer_getInstance_796}); + setMetadataFor(Companion_810, 'Companion', objectMeta); + protoOf($serializer_797).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_797, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KLikeListReq, 'KLikeListReq', classMeta, VOID, VOID, KLikeListReq, VOID, {0: $serializer_getInstance_797}); + setMetadataFor(Companion_811, 'Companion', objectMeta); + protoOf($serializer_798).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_798, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KLikeListReply, 'KLikeListReply', classMeta, VOID, VOID, KLikeListReply, VOID, {0: $serializer_getInstance_798}); + setMetadataFor(Companion_812, 'Companion', objectMeta); + protoOf($serializer_799).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_799, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KRepostListReq, 'KRepostListReq', classMeta, VOID, VOID, KRepostListReq, VOID, {0: $serializer_getInstance_799}); + setMetadataFor(Companion_813, 'Companion', objectMeta); + protoOf($serializer_800).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_800, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KRepostListRsp, 'KRepostListRsp', classMeta, VOID, VOID, KRepostListRsp, VOID, {0: $serializer_getInstance_800}); + setMetadataFor(Companion_814, 'Companion', objectMeta); + protoOf($serializer_801).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_801, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KDynSpaceReq, 'KDynSpaceReq', classMeta, VOID, VOID, KDynSpaceReq, VOID, {0: $serializer_getInstance_801}); + setMetadataFor(Companion_815, 'Companion', objectMeta); + protoOf($serializer_802).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_802, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KDynSpaceRsp, 'KDynSpaceRsp', classMeta, VOID, VOID, KDynSpaceRsp, VOID, {0: $serializer_getInstance_802}); + setMetadataFor(Companion_816, 'Companion', objectMeta); + protoOf($serializer_803).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_803, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KDynRcmdReq, 'KDynRcmdReq', classMeta, VOID, VOID, KDynRcmdReq, VOID, {0: $serializer_getInstance_803}); + setMetadataFor(Companion_817, 'Companion', objectMeta); + protoOf($serializer_804).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_804, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KDynRcmdReply, 'KDynRcmdReply', classMeta, VOID, VOID, KDynRcmdReply, VOID, {0: $serializer_getInstance_804}); + setMetadataFor(Companion_818, 'Companion', objectMeta); + protoOf($serializer_805).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_805, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KDynRegionRcmd, 'KDynRegionRcmd', classMeta, VOID, VOID, KDynRegionRcmd, VOID, {0: $serializer_getInstance_805}); + setMetadataFor(Companion_819, 'Companion', objectMeta); + protoOf($serializer_806).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_806, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KRcmdOption, 'KRcmdOption', classMeta, VOID, VOID, KRcmdOption, VOID, {0: $serializer_getInstance_806}); + setMetadataFor(Companion_820, 'Companion', objectMeta); + protoOf($serializer_807).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_807, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KDynRegionRcmdItem, 'KDynRegionRcmdItem', classMeta, VOID, VOID, KDynRegionRcmdItem, VOID, {0: $serializer_getInstance_807}); + setMetadataFor(Companion_821, 'Companion', objectMeta); + protoOf($serializer_808).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_808, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KModuleRcmd, 'KModuleRcmd', classMeta, VOID, VOID, KModuleRcmd, VOID, {0: $serializer_getInstance_808}); + setMetadataFor(Companion_822, 'Companion', objectMeta); + protoOf($serializer_809).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_809, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KRcmdAuthor, 'KRcmdAuthor', classMeta, VOID, VOID, KRcmdAuthor, VOID, {0: $serializer_getInstance_809}); + setMetadataFor(KRcmdItem, 'KRcmdItem', classMeta); + setMetadataFor(KRcmdArchive, 'KRcmdArchive', objectMeta); + setMetadataFor(Companion_823, 'Companion', objectMeta); + protoOf($serializer_810).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_810, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KRcmdItem_0, 'KRcmdItem', classMeta, VOID, VOID, KRcmdItem_0, VOID, {0: $serializer_getInstance_810}); + setMetadataFor(Companion_824, 'Companion', objectMeta); + protoOf($serializer_811).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_811, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KRcmdArchive_0, 'KRcmdArchive', classMeta, VOID, VOID, KRcmdArchive_0, VOID, {0: $serializer_getInstance_811}); + setMetadataFor(Companion_825, 'Companion', objectMeta); + protoOf($serializer_812).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_812, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KRcmdReason_0, 'KRcmdReason', classMeta, VOID, VOID, KRcmdReason_0, VOID, {0: $serializer_getInstance_812}); + setMetadataFor(Companion_826, 'Companion', objectMeta); + protoOf($serializer_813).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_813, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KDynServerDetailsReq, 'KDynServerDetailsReq', classMeta, VOID, VOID, KDynServerDetailsReq, VOID, {0: $serializer_getInstance_813}); + setMetadataFor(Companion_827, 'Companion', objectMeta); + protoOf($serializer_814).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_814, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KItemsEntry, 'KItemsEntry', classMeta, VOID, VOID, KItemsEntry, VOID, {0: $serializer_getInstance_814}); + setMetadataFor(Companion_828, 'Companion', objectMeta); + protoOf($serializer_815).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_815, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KDynServerDetailsReply, 'KDynServerDetailsReply', classMeta, VOID, VOID, KDynServerDetailsReply, VOID, {0: $serializer_getInstance_815}); + setMetadataFor(Companion_829, 'Companion', objectMeta); + protoOf($serializer_816).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_816, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KDynSearchReq, 'KDynSearchReq', classMeta, VOID, VOID, KDynSearchReq, VOID, {0: $serializer_getInstance_816}); + setMetadataFor(Companion_830, 'Companion', objectMeta); + protoOf($serializer_817).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_817, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KDynSearchReply, 'KDynSearchReply', classMeta, VOID, VOID, KDynSearchReply, VOID, {0: $serializer_getInstance_817}); + setMetadataFor(Companion_831, 'Companion', objectMeta); + protoOf($serializer_818).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_818, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSearchInfo, 'KSearchInfo', classMeta, VOID, VOID, KSearchInfo, VOID, {0: $serializer_getInstance_818}); + setMetadataFor(Companion_832, 'Companion', objectMeta); + protoOf($serializer_819).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_819, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSearchTopic, 'KSearchTopic', classMeta, VOID, VOID, KSearchTopic, VOID, {0: $serializer_getInstance_819}); + setMetadataFor(Companion_833, 'Companion', objectMeta); + protoOf($serializer_820).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_820, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSearchTopicButton, 'KSearchTopicButton', classMeta, VOID, VOID, KSearchTopicButton, VOID, {0: $serializer_getInstance_820}); + setMetadataFor(Companion_834, 'Companion', objectMeta); + protoOf($serializer_821).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_821, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSearchTopicItem, 'KSearchTopicItem', classMeta, VOID, VOID, KSearchTopicItem, VOID, {0: $serializer_getInstance_821}); + setMetadataFor(Companion_835, 'Companion', objectMeta); + protoOf($serializer_822).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_822, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSearchChannel, 'KSearchChannel', classMeta, VOID, VOID, KSearchChannel, VOID, {0: $serializer_getInstance_822}); + setMetadataFor(Companion_836, 'Companion', objectMeta); + protoOf($serializer_823).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_823, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KChannelInfo, 'KChannelInfo', classMeta, VOID, VOID, KChannelInfo, VOID, {0: $serializer_getInstance_823}); + setMetadataFor(Companion_837, 'Companion', objectMeta); + protoOf($serializer_824).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_824, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSetDecisionReq, 'KSetDecisionReq', classMeta, VOID, VOID, KSetDecisionReq, VOID, {0: $serializer_getInstance_824}); + setMetadataFor(Companion_838, 'Companion', objectMeta); + protoOf($serializer_825).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_825, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCampusTop, 'KCampusTop', classMeta, VOID, VOID, KCampusTop, VOID, {0: $serializer_getInstance_825}); + setMetadataFor(Companion_839, 'Companion', objectMeta); + protoOf($serializer_826).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_826, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCampusShowTabInfo, 'KCampusShowTabInfo', classMeta, VOID, VOID, KCampusShowTabInfo, VOID, {0: $serializer_getInstance_826}); + setMetadataFor(Companion_840, 'Companion', objectMeta); + protoOf($serializer_827).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_827, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCampusBannerInfo, 'KCampusBannerInfo', classMeta, VOID, VOID, KCampusBannerInfo, VOID, {0: $serializer_getInstance_827}); + setMetadataFor(Companion_841, 'Companion', objectMeta); + protoOf($serializer_828).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_828, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCampusNoticeInfo, 'KCampusNoticeInfo', classMeta, VOID, VOID, KCampusNoticeInfo, VOID, {0: $serializer_getInstance_828}); + setMetadataFor(Companion_842, 'Companion', objectMeta); + protoOf($serializer_829).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_829, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KAlumniDynamicsReq, 'KAlumniDynamicsReq', classMeta, VOID, VOID, KAlumniDynamicsReq, VOID, {0: $serializer_getInstance_829}); + setMetadataFor(Companion_843, 'Companion', objectMeta); + protoOf($serializer_830).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_830, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KAlumniDynamicsReply, 'KAlumniDynamicsReply', classMeta, VOID, VOID, KAlumniDynamicsReply, VOID, {0: $serializer_getInstance_830}); + setMetadataFor(Companion_844, 'Companion', objectMeta); + protoOf($serializer_831).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_831, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCampusRcmdReq, 'KCampusRcmdReq', classMeta, VOID, VOID, KCampusRcmdReq, VOID, {0: $serializer_getInstance_831}); + setMetadataFor(Companion_845, 'Companion', objectMeta); + protoOf($serializer_832).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_832, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCampusRcmdReply, 'KCampusRcmdReply', classMeta, VOID, VOID, KCampusRcmdReply, VOID, {0: $serializer_getInstance_832}); + setMetadataFor(Companion_846, 'Companion', objectMeta); + protoOf($serializer_833).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_833, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCampusRcmdTop, 'KCampusRcmdTop', classMeta, VOID, VOID, KCampusRcmdTop, VOID, {0: $serializer_getInstance_833}); + setMetadataFor(Companion_847, 'Companion', objectMeta); + protoOf($serializer_834).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_834, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KRcmdTopButton, 'KRcmdTopButton', classMeta, VOID, VOID, KRcmdTopButton, VOID, {0: $serializer_getInstance_834}); + setMetadataFor(Companion_848, 'Companion', objectMeta); + protoOf($serializer_835).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_835, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCampusRcmdInfo, 'KCampusRcmdInfo', classMeta, VOID, VOID, KCampusRcmdInfo, VOID, {0: $serializer_getInstance_835}); + setMetadataFor(Companion_849, 'Companion', objectMeta); + protoOf($serializer_836).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_836, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCampusRcmdItem, 'KCampusRcmdItem', classMeta, VOID, VOID, KCampusRcmdItem, VOID, {0: $serializer_getInstance_836}); + setMetadataFor(Companion_850, 'Companion', objectMeta); + protoOf($serializer_837).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_837, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCampusLabel, 'KCampusLabel', classMeta, VOID, VOID, KCampusLabel, VOID, {0: $serializer_getInstance_837}); + setMetadataFor(Companion_851, 'Companion', objectMeta); + protoOf($serializer_838).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_838, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSubscribeCampusReq, 'KSubscribeCampusReq', classMeta, VOID, VOID, KSubscribeCampusReq, VOID, {0: $serializer_getInstance_838}); + setMetadataFor(Companion_852, 'Companion', objectMeta); + protoOf($serializer_839).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_839, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSetRecentCampusReq, 'KSetRecentCampusReq', classMeta, VOID, VOID, KSetRecentCampusReq, VOID, {0: $serializer_getInstance_839}); + setMetadataFor(Companion_853, 'Companion', objectMeta); + protoOf($serializer_840).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_840, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KDynTabReq, 'KDynTabReq', classMeta, VOID, VOID, KDynTabReq, VOID, {0: $serializer_getInstance_840}); + setMetadataFor(Companion_854, 'Companion', objectMeta); + protoOf($serializer_841).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_841, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KDynTabReply, 'KDynTabReply', classMeta, VOID, VOID, KDynTabReply, VOID, {0: $serializer_getInstance_841}); + setMetadataFor(Companion_855, 'Companion', objectMeta); + protoOf($serializer_842).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_842, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KDynScreenTab, 'KDynScreenTab', classMeta, VOID, VOID, KDynScreenTab, VOID, {0: $serializer_getInstance_842}); + setMetadataFor(Companion_856, 'Companion', objectMeta); + protoOf($serializer_843).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_843, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KDynTab, 'KDynTab', classMeta, VOID, VOID, KDynTab, VOID, {0: $serializer_getInstance_843}); + setMetadataFor(Companion_857, 'Companion', objectMeta); + protoOf($serializer_844).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_844, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KPopup, 'KPopup', classMeta, VOID, VOID, KPopup, VOID, {0: $serializer_getInstance_844}); + setMetadataFor(Companion_858, 'Companion', objectMeta); + protoOf($serializer_845).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_845, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSchoolSearchReq, 'KSchoolSearchReq', classMeta, VOID, VOID, KSchoolSearchReq, VOID, {0: $serializer_getInstance_845}); + setMetadataFor(Companion_859, 'Companion', objectMeta); + protoOf($serializer_846).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_846, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSchoolSearchReply, 'KSchoolSearchReply', classMeta, VOID, VOID, KSchoolSearchReply, VOID, {0: $serializer_getInstance_846}); + setMetadataFor(Companion_860, 'Companion', objectMeta); + protoOf($serializer_847).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_847, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSearchToast, 'KSearchToast', classMeta, VOID, VOID, KSearchToast, VOID, {0: $serializer_getInstance_847}); + setMetadataFor(Companion_861, 'Companion', objectMeta); + protoOf($serializer_848).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_848, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCampusInfo, 'KCampusInfo', classMeta, VOID, VOID, KCampusInfo, VOID, {0: $serializer_getInstance_848}); + setMetadataFor(Companion_862, 'Companion', objectMeta); + protoOf($serializer_849).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_849, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSchoolRecommendReq, 'KSchoolRecommendReq', classMeta, VOID, VOID, KSchoolRecommendReq, VOID, {0: $serializer_getInstance_849}); + setMetadataFor(Companion_863, 'Companion', objectMeta); + protoOf($serializer_850).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_850, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSchoolRecommendReply, 'KSchoolRecommendReply', classMeta, VOID, VOID, KSchoolRecommendReply, VOID, {0: $serializer_getInstance_850}); + setMetadataFor(Companion_864, 'Companion', objectMeta); + protoOf($serializer_851).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_851, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KDynSpaceSearchDetailsReq, 'KDynSpaceSearchDetailsReq', classMeta, VOID, VOID, KDynSpaceSearchDetailsReq, VOID, {0: $serializer_getInstance_851}); + setMetadataFor(Companion_865, 'Companion', objectMeta); + protoOf($serializer_852).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_852, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KItemsEntry_0, 'KItemsEntry', classMeta, VOID, VOID, KItemsEntry_0, VOID, {0: $serializer_getInstance_852}); + setMetadataFor(Companion_866, 'Companion', objectMeta); + protoOf($serializer_853).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_853, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KDynSpaceSearchDetailsReply, 'KDynSpaceSearchDetailsReply', classMeta, VOID, VOID, KDynSpaceSearchDetailsReply, VOID, {0: $serializer_getInstance_853}); + setMetadataFor(Companion_867, 'Companion', objectMeta); + protoOf($serializer_854).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_854, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KOfficialAccountsReq, 'KOfficialAccountsReq', classMeta, VOID, VOID, KOfficialAccountsReq, VOID, {0: $serializer_getInstance_854}); + setMetadataFor(Companion_868, 'Companion', objectMeta); + protoOf($serializer_855).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_855, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KOfficialAccountsReply, 'KOfficialAccountsReply', classMeta, VOID, VOID, KOfficialAccountsReply, VOID, {0: $serializer_getInstance_855}); + setMetadataFor(Companion_869, 'Companion', objectMeta); + protoOf($serializer_856).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_856, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KOfficialAccountInfo, 'KOfficialAccountInfo', classMeta, VOID, VOID, KOfficialAccountInfo, VOID, {0: $serializer_getInstance_856}); + setMetadataFor(Companion_870, 'Companion', objectMeta); + protoOf($serializer_857).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_857, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KOfficialDynamicsReq, 'KOfficialDynamicsReq', classMeta, VOID, VOID, KOfficialDynamicsReq, VOID, {0: $serializer_getInstance_857}); + setMetadataFor(Companion_871, 'Companion', objectMeta); + protoOf($serializer_858).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_858, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KOfficialDynamicsReply, 'KOfficialDynamicsReply', classMeta, VOID, VOID, KOfficialDynamicsReply, VOID, {0: $serializer_getInstance_858}); + setMetadataFor(KRcmdItem_1, 'KRcmdItem', classMeta); + setMetadataFor(KRcmdArchive_1, 'KRcmdArchive', objectMeta); + setMetadataFor(KRcmdDynamic, 'KRcmdDynamic', objectMeta); + setMetadataFor(Companion_872, 'Companion', objectMeta); + protoOf($serializer_859).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_859, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KOfficialItem, 'KOfficialItem', classMeta, VOID, VOID, KOfficialItem, VOID, {0: $serializer_getInstance_859}); + setMetadataFor(Companion_873, 'Companion', objectMeta); + protoOf($serializer_860).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_860, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KOfficialRcmdArchive, 'KOfficialRcmdArchive', classMeta, VOID, VOID, KOfficialRcmdArchive, VOID, {0: $serializer_getInstance_860}); + setMetadataFor(Companion_874, 'Companion', objectMeta); + protoOf($serializer_861).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_861, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KOfficialRcmdDynamic, 'KOfficialRcmdDynamic', classMeta, VOID, VOID, KOfficialRcmdDynamic, VOID, {0: $serializer_getInstance_861}); + setMetadataFor(Companion_875, 'Companion', objectMeta); + protoOf($serializer_862).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_862, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCampusRedDotReq, 'KCampusRedDotReq', classMeta, VOID, VOID, KCampusRedDotReq, VOID, {0: $serializer_getInstance_862}); + setMetadataFor(Companion_876, 'Companion', objectMeta); + protoOf($serializer_863).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_863, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCampusRedDotReply, 'KCampusRedDotReply', classMeta, VOID, VOID, KCampusRedDotReply, VOID, {0: $serializer_getInstance_863}); + setMetadataFor(Companion_877, 'Companion', objectMeta); + protoOf($serializer_864).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_864, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCampusRcmdFeedReq, 'KCampusRcmdFeedReq', classMeta, VOID, VOID, KCampusRcmdFeedReq, VOID, {0: $serializer_getInstance_864}); + setMetadataFor(Companion_878, 'Companion', objectMeta); + protoOf($serializer_865).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_865, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCampusRcmdFeedReply, 'KCampusRcmdFeedReply', classMeta, VOID, VOID, KCampusRcmdFeedReply, VOID, {0: $serializer_getInstance_865}); + setMetadataFor(Companion_879, 'Companion', objectMeta); + protoOf($serializer_866).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_866, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KGuideBarInfo, 'KGuideBarInfo', classMeta, VOID, VOID, KGuideBarInfo, VOID, {0: $serializer_getInstance_866}); + setMetadataFor(Companion_880, 'Companion', objectMeta); + protoOf($serializer_867).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_867, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KTopicSquareReq, 'KTopicSquareReq', classMeta, VOID, VOID, KTopicSquareReq, VOID, {0: $serializer_getInstance_867}); + setMetadataFor(Companion_881, 'Companion', objectMeta); + protoOf($serializer_868).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_868, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KTopicSquareReply, 'KTopicSquareReply', classMeta, VOID, VOID, KTopicSquareReply, VOID, {0: $serializer_getInstance_868}); + setMetadataFor(Companion_882, 'Companion', objectMeta); + protoOf($serializer_869).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_869, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KTopicSquareInfo, 'KTopicSquareInfo', classMeta, VOID, VOID, KTopicSquareInfo, VOID, {0: $serializer_getInstance_869}); + setMetadataFor(Companion_883, 'Companion', objectMeta); + protoOf($serializer_870).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_870, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KTopicRcmdCard, 'KTopicRcmdCard', classMeta, VOID, VOID, KTopicRcmdCard, VOID, {0: $serializer_getInstance_870}); + setMetadataFor(Companion_884, 'Companion', objectMeta); + protoOf($serializer_871).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_871, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KTopicListReq, 'KTopicListReq', classMeta, VOID, VOID, KTopicListReq, VOID, {0: $serializer_getInstance_871}); + setMetadataFor(Companion_885, 'Companion', objectMeta); + protoOf($serializer_872).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_872, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KTopicListReply, 'KTopicListReply', classMeta, VOID, VOID, KTopicListReply, VOID, {0: $serializer_getInstance_872}); + setMetadataFor(Companion_886, 'Companion', objectMeta); + protoOf($serializer_873).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_873, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCampusMateLikeListReq, 'KCampusMateLikeListReq', classMeta, VOID, VOID, KCampusMateLikeListReq, VOID, {0: $serializer_getInstance_873}); + setMetadataFor(Companion_887, 'Companion', objectMeta); + protoOf($serializer_874).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_874, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCampusMateLikeListReply, 'KCampusMateLikeListReply', classMeta, VOID, VOID, KCampusMateLikeListReply, VOID, {0: $serializer_getInstance_874}); + setMetadataFor(Companion_888, 'Companion', objectMeta); + protoOf($serializer_875).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_875, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCampusFeedbackReq, 'KCampusFeedbackReq', classMeta, VOID, VOID, KCampusFeedbackReq, VOID, {0: $serializer_getInstance_875}); + setMetadataFor(Companion_889, 'Companion', objectMeta); + protoOf($serializer_876).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_876, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCampusFeedbackInfo, 'KCampusFeedbackInfo', classMeta, VOID, VOID, KCampusFeedbackInfo, VOID, {0: $serializer_getInstance_876}); + setMetadataFor(Companion_890, 'Companion', objectMeta); + protoOf($serializer_877).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_877, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCampusFeedbackReply, 'KCampusFeedbackReply', classMeta, VOID, VOID, KCampusFeedbackReply, VOID, {0: $serializer_getInstance_877}); + setMetadataFor(Companion_891, 'Companion', objectMeta); + protoOf($serializer_878).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_878, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCampusBillBoardReq, 'KCampusBillBoardReq', classMeta, VOID, VOID, KCampusBillBoardReq, VOID, {0: $serializer_getInstance_878}); + setMetadataFor(Companion_892, 'Companion', objectMeta); + protoOf($serializer_879).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_879, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCampusBillboardInternalReq, 'KCampusBillboardInternalReq', classMeta, VOID, VOID, KCampusBillboardInternalReq, VOID, {0: $serializer_getInstance_879}); + setMetadataFor(Companion_893, 'Companion', objectMeta); + protoOf($serializer_880).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_880, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCampusBillBoardReply, 'KCampusBillBoardReply', classMeta, VOID, VOID, KCampusBillBoardReply, VOID, {0: $serializer_getInstance_880}); + setMetadataFor(Companion_894, 'Companion', objectMeta); + protoOf($serializer_881).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_881, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCampusFeatureProgress, 'KCampusFeatureProgress', classMeta, VOID, VOID, KCampusFeatureProgress, VOID, {0: $serializer_getInstance_881}); + setMetadataFor(Companion_895, 'Companion', objectMeta); + protoOf($serializer_882).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_882, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCampusTopicRcmdFeedReq, 'KCampusTopicRcmdFeedReq', classMeta, VOID, VOID, KCampusTopicRcmdFeedReq, VOID, {0: $serializer_getInstance_882}); + setMetadataFor(Companion_896, 'Companion', objectMeta); + protoOf($serializer_883).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_883, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCampusTopicRcmdFeedReply, 'KCampusTopicRcmdFeedReply', classMeta, VOID, VOID, KCampusTopicRcmdFeedReply, VOID, {0: $serializer_getInstance_883}); + setMetadataFor(Companion_897, 'Companion', objectMeta); + protoOf($serializer_884).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_884, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KUnfollowMatchReq, 'KUnfollowMatchReq', classMeta, VOID, VOID, KUnfollowMatchReq, VOID, {0: $serializer_getInstance_884}); + setMetadataFor(Companion_898, 'Companion', objectMeta); + protoOf($serializer_885).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_885, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KFetchTabSettingReply, 'KFetchTabSettingReply', classMeta, VOID, VOID, KFetchTabSettingReply, VOID, {0: $serializer_getInstance_885}); + setMetadataFor(Companion_899, 'Companion', objectMeta); + protoOf($serializer_886).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_886, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KUpdateTabSettingReq, 'KUpdateTabSettingReq', classMeta, VOID, VOID, KUpdateTabSettingReq, VOID, {0: $serializer_getInstance_886}); + setMetadataFor(Companion_900, 'Companion', objectMeta); + protoOf($serializer_887).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_887, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCampusSquareReq, 'KCampusSquareReq', classMeta, VOID, VOID, KCampusSquareReq, VOID, {0: $serializer_getInstance_887}); + setMetadataFor(Companion_901, 'Companion', objectMeta); + protoOf($serializer_888).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_888, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCampusSquareReply, 'KCampusSquareReply', classMeta, VOID, VOID, KCampusSquareReply, VOID, {0: $serializer_getInstance_888}); + setMetadataFor(Companion_902, 'Companion', objectMeta); + protoOf($serializer_889).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_889, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KRcmdCampusBrief, 'KRcmdCampusBrief', classMeta, VOID, VOID, KRcmdCampusBrief, VOID, {0: $serializer_getInstance_889}); + setMetadataFor(Companion_903, 'Companion', objectMeta); + protoOf($serializer_890).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_890, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCampusRecommendReq, 'KCampusRecommendReq', classMeta, VOID, VOID, KCampusRecommendReq, VOID, {0: $serializer_getInstance_890}); + setMetadataFor(Companion_904, 'Companion', objectMeta); + protoOf($serializer_891).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_891, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCampusRecommendReply, 'KCampusRecommendReply', classMeta, VOID, VOID, KCampusRecommendReply, VOID, {0: $serializer_getInstance_891}); + setMetadataFor(Companion_905, 'Companion', objectMeta); + protoOf($serializer_892).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_892, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCampusHomePagesReply, 'KCampusHomePagesReply', classMeta, VOID, VOID, KCampusHomePagesReply, VOID, {0: $serializer_getInstance_892}); + setMetadataFor(Companion_906, 'Companion', objectMeta); + protoOf($serializer_893).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_893, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCampusHomePagesReq, 'KCampusHomePagesReq', classMeta, VOID, VOID, KCampusHomePagesReq, VOID, {0: $serializer_getInstance_893}); + setMetadataFor(Companion_907, 'Companion', objectMeta); + protoOf($serializer_894).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_894, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCampusEntryTabReq, 'KCampusEntryTabReq', classMeta, VOID, VOID, KCampusEntryTabReq, VOID, {0: $serializer_getInstance_894}); + setMetadataFor(Companion_908, 'Companion', objectMeta); + protoOf($serializer_895).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_895, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCampusEntryTabResp, 'KCampusEntryTabResp', classMeta, VOID, VOID, KCampusEntryTabResp, VOID, {0: $serializer_getInstance_895}); + setMetadataFor(Companion_909, 'Companion', objectMeta); + protoOf($serializer_896).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_896, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCampusHomeRcmdTopic, 'KCampusHomeRcmdTopic', classMeta, VOID, VOID, KCampusHomeRcmdTopic, VOID, {0: $serializer_getInstance_896}); + setMetadataFor(Companion_910, 'Companion', objectMeta); + protoOf($serializer_897).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_897, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KHomeSubscribeReq, 'KHomeSubscribeReq', classMeta, VOID, VOID, KHomeSubscribeReq, VOID, {0: $serializer_getInstance_897}); + setMetadataFor(Companion_911, 'Companion', objectMeta); + protoOf($serializer_898).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_898, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KHomeSubscribeReply, 'KHomeSubscribeReply', classMeta, VOID, VOID, KHomeSubscribeReply, VOID, {0: $serializer_getInstance_898}); + setMetadataFor(Companion_912, 'Companion', objectMeta); + protoOf($serializer_899).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_899, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KLbsPoiReq, 'KLbsPoiReq', classMeta, VOID, VOID, KLbsPoiReq, VOID, {0: $serializer_getInstance_899}); + setMetadataFor(Companion_913, 'Companion', objectMeta); + protoOf($serializer_900).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_900, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KLbsPoiDetail, 'KLbsPoiDetail', classMeta, VOID, VOID, KLbsPoiDetail, VOID, {0: $serializer_getInstance_900}); + setMetadataFor(Companion_914, 'Companion', objectMeta); + protoOf($serializer_901).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_901, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KLbsPoiReply, 'KLbsPoiReply', classMeta, VOID, VOID, KLbsPoiReply, VOID, {0: $serializer_getInstance_901}); + setMetadataFor(Companion_915, 'Companion', objectMeta); + protoOf($serializer_902).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_902, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KFeedFilterReq, 'KFeedFilterReq', classMeta, VOID, VOID, KFeedFilterReq, VOID, {0: $serializer_getInstance_902}); + setMetadataFor(Companion_916, 'Companion', objectMeta); + protoOf($serializer_903).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_903, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KFeedFilterReply, 'KFeedFilterReply', classMeta, VOID, VOID, KFeedFilterReply, VOID, {0: $serializer_getInstance_903}); + setMetadataFor(Companion_917, 'Companion', objectMeta); + protoOf($serializer_904).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_904, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCampusMngDetailReq, 'KCampusMngDetailReq', classMeta, VOID, VOID, KCampusMngDetailReq, VOID, {0: $serializer_getInstance_904}); + setMetadataFor(Companion_918, 'Companion', objectMeta); + protoOf($serializer_905).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_905, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCampusMngDetailReply, 'KCampusMngDetailReply', classMeta, VOID, VOID, KCampusMngDetailReply, VOID, {0: $serializer_getInstance_905}); + setMetadataFor(KItem_3, 'KItem', classMeta); + setMetadataFor(KBasicInfo, 'KBasicInfo', objectMeta); + setMetadataFor(KBadge_0, 'KBadge', objectMeta); + setMetadataFor(KSlogan, 'KSlogan', objectMeta); + setMetadataFor(KQuiz, 'KQuiz', objectMeta); + setMetadataFor(Companion_919, 'Companion', objectMeta); + protoOf($serializer_906).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_906, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCampusMngItem, 'KCampusMngItem', classMeta, VOID, VOID, KCampusMngItem, VOID, {0: $serializer_getInstance_906}); + setMetadataFor(Companion_920, 'Companion', objectMeta); + protoOf($serializer_907).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_907, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCampusMngBasicInfo, 'KCampusMngBasicInfo', classMeta, VOID, VOID, KCampusMngBasicInfo, VOID, {0: $serializer_getInstance_907}); + setMetadataFor(Companion_921, 'Companion', objectMeta); + protoOf($serializer_908).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_908, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCampusMngBadge, 'KCampusMngBadge', classMeta, VOID, VOID, KCampusMngBadge, VOID, {0: $serializer_getInstance_908}); + setMetadataFor(Companion_922, 'Companion', objectMeta); + protoOf($serializer_909).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_909, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCampusMngSlogan, 'KCampusMngSlogan', classMeta, VOID, VOID, KCampusMngSlogan, VOID, {0: $serializer_getInstance_909}); + setMetadataFor(Companion_923, 'Companion', objectMeta); + protoOf($serializer_910).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_910, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCampusMngQuiz, 'KCampusMngQuiz', classMeta, VOID, VOID, KCampusMngQuiz, VOID, {0: $serializer_getInstance_910}); + setMetadataFor(Companion_924, 'Companion', objectMeta); + protoOf($serializer_911).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_911, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCampusMngSubmitReq, 'KCampusMngSubmitReq', classMeta, VOID, VOID, KCampusMngSubmitReq, VOID, {0: $serializer_getInstance_911}); + setMetadataFor(Companion_925, 'Companion', objectMeta); + protoOf($serializer_912).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_912, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCampusMngSubmitReply, 'KCampusMngSubmitReply', classMeta, VOID, VOID, KCampusMngSubmitReply, VOID, {0: $serializer_getInstance_912}); + setMetadataFor(Companion_926, 'Companion', objectMeta); + protoOf($serializer_913).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_913, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCampusMngQuizDetail, 'KCampusMngQuizDetail', classMeta, VOID, VOID, KCampusMngQuizDetail, VOID, {0: $serializer_getInstance_913}); + setMetadataFor(Companion_927, 'Companion', objectMeta); + protoOf($serializer_914).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_914, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCampusMngQuizOperateReq, 'KCampusMngQuizOperateReq', classMeta, VOID, VOID, KCampusMngQuizOperateReq, VOID, {0: $serializer_getInstance_914}); + setMetadataFor(Companion_928, 'Companion', objectMeta); + protoOf($serializer_915).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_915, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCampusMngQuizOperateReply, 'KCampusMngQuizOperateReply', classMeta, VOID, VOID, KCampusMngQuizOperateReply, VOID, {0: $serializer_getInstance_915}); + setMetadataFor(Companion_929, 'Companion', objectMeta); + protoOf($serializer_916).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_916, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KLegacyTopicFeedReq, 'KLegacyTopicFeedReq', classMeta, VOID, VOID, KLegacyTopicFeedReq, VOID, {0: $serializer_getInstance_916}); + setMetadataFor(Companion_930, 'Companion', objectMeta); + protoOf($serializer_917).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_917, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KLegacyTopicFeedReply, 'KLegacyTopicFeedReply', classMeta, VOID, VOID, KLegacyTopicFeedReply, VOID, {0: $serializer_getInstance_917}); + setMetadataFor(Companion_931, 'Companion', objectMeta); + protoOf($serializer_918).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_918, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KDynFriendReq, 'KDynFriendReq', classMeta, VOID, VOID, KDynFriendReq, VOID, {0: $serializer_getInstance_918}); + setMetadataFor(Companion_932, 'Companion', objectMeta); + protoOf($serializer_919).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_919, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KDynFriendReply, 'KDynFriendReply', classMeta, VOID, VOID, KDynFriendReply, VOID, {0: $serializer_getInstance_919}); + setMetadataFor(Companion_933, 'Companion', objectMeta); + protoOf($serializer_920).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_920, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KReactionListReq, 'KReactionListReq', classMeta, VOID, VOID, KReactionListReq, VOID, {0: $serializer_getInstance_920}); + setMetadataFor(Companion_934, 'Companion', objectMeta); + protoOf($serializer_921).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_921, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KReactionListReply, 'KReactionListReply', classMeta, VOID, VOID, KReactionListReply, VOID, {0: $serializer_getInstance_921}); + setMetadataFor(Companion_935, 'Companion', objectMeta); + protoOf($serializer_922).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_922, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KReactionListItem, 'KReactionListItem', classMeta, VOID, VOID, KReactionListItem, VOID, {0: $serializer_getInstance_922}); + setMetadataFor(Companion_936, 'Companion', objectMeta); + protoOf($serializer_923).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_923, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KDynamicType, 'KDynamicType', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_936}); + setMetadataFor(Companion_937, 'Companion', objectMeta); + protoOf($serializer_924).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_924, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KDynModuleType, 'KDynModuleType', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_937}); + setMetadataFor(Companion_938, 'Companion', objectMeta); + protoOf($serializer_925).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_925, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KDescType_0, 'KDescType', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_938}); + setMetadataFor(Companion_939, 'Companion', objectMeta); + protoOf($serializer_926).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_926, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KEmojiType, 'KEmojiType', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_939}); + setMetadataFor(Companion_940, 'Companion', objectMeta); + protoOf($serializer_927).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_927, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KNFTRegionType, 'KNFTRegionType', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_940}); + setMetadataFor(Companion_941, 'Companion', objectMeta); + protoOf($serializer_928).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_928, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KNFTShowStatus, 'KNFTShowStatus', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_941}); + setMetadataFor(Companion_942, 'Companion', objectMeta); + protoOf($serializer_929).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_929, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KModuleAuthorBadgeType, 'KModuleAuthorBadgeType', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_942}); + setMetadataFor(Companion_943, 'Companion', objectMeta); + protoOf($serializer_930).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_930, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KRelationStatus, 'KRelationStatus', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_943}); + setMetadataFor(Companion_944, 'Companion', objectMeta); + protoOf($serializer_931).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_931, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KWeightType, 'KWeightType', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_944}); + setMetadataFor(Companion_945, 'Companion', objectMeta); + protoOf($serializer_932).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_932, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KThreePointType, 'KThreePointType', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_945}); + setMetadataFor(Companion_946, 'Companion', objectMeta); + protoOf($serializer_933).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_933, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KThreePointAttentionStatus, 'KThreePointAttentionStatus', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_946}); + setMetadataFor(Companion_947, 'Companion', objectMeta); + protoOf($serializer_934).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_934, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KTopType, 'KTopType', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_947}); + setMetadataFor(Companion_948, 'Companion', objectMeta); + protoOf($serializer_935).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_935, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KModuleDynamicType, 'KModuleDynamicType', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_948}); + setMetadataFor(Companion_949, 'Companion', objectMeta); + protoOf($serializer_936).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_936, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KDynExtendType, 'KDynExtendType', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_949}); + setMetadataFor(Companion_950, 'Companion', objectMeta); + protoOf($serializer_937).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_937, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KFoldType, 'KFoldType', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_950}); + setMetadataFor(Companion_951, 'Companion', objectMeta); + protoOf($serializer_938).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_938, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KLocalIconType, 'KLocalIconType', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_951}); + setMetadataFor(Companion_952, 'Companion', objectMeta); + protoOf($serializer_939).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_939, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KModuleBannerType, 'KModuleBannerType', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_952}); + setMetadataFor(Companion_953, 'Companion', objectMeta); + protoOf($serializer_940).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_940, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KRcmdType, 'KRcmdType', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_953}); + setMetadataFor(Companion_954, 'Companion', objectMeta); + protoOf($serializer_941).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_941, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KMdlBlockedStyle, 'KMdlBlockedStyle', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_954}); + setMetadataFor(Companion_955, 'Companion', objectMeta); + protoOf($serializer_942).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_942, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KDynamicItem, 'KDynamicItem', classMeta, VOID, VOID, KDynamicItem, VOID, {0: $serializer_getInstance_942}); + setMetadataFor(KModuleItem, 'KModuleItem', classMeta); + setMetadataFor(KModuleAuthor, 'KModuleAuthor', objectMeta); + setMetadataFor(KModuleDispute, 'KModuleDispute', objectMeta); + setMetadataFor(KModuleDesc, 'KModuleDesc', objectMeta); + setMetadataFor(KModuleDynamic, 'KModuleDynamic', objectMeta); + setMetadataFor(KModuleLikeUser, 'KModuleLikeUser', objectMeta); + setMetadataFor(KModuleExtend, 'KModuleExtend', objectMeta); + setMetadataFor(KModuleAdditional, 'KModuleAdditional', objectMeta); + setMetadataFor(KModuleStat, 'KModuleStat', objectMeta); + setMetadataFor(KModuleFold, 'KModuleFold', objectMeta); + setMetadataFor(KModuleComment, 'KModuleComment', objectMeta); + setMetadataFor(KModuleInteraction, 'KModuleInteraction', objectMeta); + setMetadataFor(KModuleAuthorForward, 'KModuleAuthorForward', objectMeta); + setMetadataFor(KModuleAd, 'KModuleAd', objectMeta); + setMetadataFor(KModuleBanner, 'KModuleBanner', objectMeta); + setMetadataFor(KModuleItemNull, 'KModuleItemNull', objectMeta); + setMetadataFor(KModuleShareInfo, 'KModuleShareInfo', objectMeta); + setMetadataFor(KModuleRecommend, 'KModuleRecommend', objectMeta); + setMetadataFor(KModuleTop, 'KModuleTop', objectMeta); + setMetadataFor(KModuleButtom, 'KModuleButtom', objectMeta); + setMetadataFor(KModuleStatForward, 'KModuleStatForward', objectMeta); + setMetadataFor(KModuleStory, 'KModuleStory', objectMeta); + setMetadataFor(KModuleTopic, 'KModuleTopic', objectMeta); + setMetadataFor(KModuleTopicDetailsExt, 'KModuleTopicDetailsExt', objectMeta); + setMetadataFor(KModuleTopTag, 'KModuleTopTag', objectMeta); + setMetadataFor(KModuleTopicBrief, 'KModuleTopicBrief', objectMeta); + setMetadataFor(KModuleTitle, 'KModuleTitle', objectMeta); + setMetadataFor(KModuleButton, 'KModuleButton', objectMeta); + setMetadataFor(KModuleNotice, 'KModuleNotice', objectMeta); + setMetadataFor(KModuleOpusSummary, 'KModuleOpusSummary', objectMeta); + setMetadataFor(KModuleCopyright, 'KModuleCopyright', objectMeta); + setMetadataFor(KModuleParagraph, 'KModuleParagraph', objectMeta); + setMetadataFor(KModuleBlocked, 'KModuleBlocked', objectMeta); + setMetadataFor(KModuleTextNotice, 'KModuleTextNotice', objectMeta); + setMetadataFor(KModuleOpusCollection, 'KModuleOpusCollection', objectMeta); + setMetadataFor(KModuleOnetimeNotice, 'KModuleOnetimeNotice', objectMeta); + setMetadataFor(Companion_956, 'Companion', objectMeta); + protoOf($serializer_943).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_943, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KModule_0, 'KModule', classMeta, VOID, VOID, KModule_0, VOID, {0: $serializer_getInstance_943}); + setMetadataFor(Companion_957, 'Companion', objectMeta); + protoOf($serializer_944).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_944, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KHistoryReportEntry, 'KHistoryReportEntry', classMeta, VOID, VOID, KHistoryReportEntry, VOID, {0: $serializer_getInstance_944}); + setMetadataFor(Companion_958, 'Companion', objectMeta); + protoOf($serializer_945).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_945, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KExtend_1, 'KExtend', classMeta, VOID, VOID, KExtend_1, VOID, {0: $serializer_getInstance_945}); + setMetadataFor(Companion_959, 'Companion', objectMeta); + protoOf($serializer_946).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_946, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KDynFeatureGate, 'KDynFeatureGate', classMeta, VOID, VOID, KDynFeatureGate, VOID, {0: $serializer_getInstance_946}); + setMetadataFor(Companion_960, 'Companion', objectMeta); + protoOf($serializer_947).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_947, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KOnlyFansProperty, 'KOnlyFansProperty', classMeta, VOID, VOID, KOnlyFansProperty, VOID, {0: $serializer_getInstance_947}); + setMetadataFor(Companion_961, 'Companion', objectMeta); + protoOf($serializer_948).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_948, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KExtendReply, 'KExtendReply', classMeta, VOID, VOID, KExtendReply, VOID, {0: $serializer_getInstance_948}); + setMetadataFor(Companion_962, 'Companion', objectMeta); + protoOf($serializer_949).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_949, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KExtendReplyParam, 'KExtendReplyParam', classMeta, VOID, VOID, KExtendReplyParam, VOID, {0: $serializer_getInstance_949}); + setMetadataFor(Companion_963, 'Companion', objectMeta); + protoOf($serializer_950).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_950, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KDescription, 'KDescription', classMeta, VOID, VOID, KDescription, VOID, {0: $serializer_getInstance_950}); + setMetadataFor(Companion_964, 'Companion', objectMeta); + protoOf($serializer_951).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_951, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KEmojiSizeSpec, 'KEmojiSizeSpec', classMeta, VOID, VOID, KEmojiSizeSpec, VOID, {0: $serializer_getInstance_951}); + setMetadataFor(Companion_965, 'Companion', objectMeta); + protoOf($serializer_952).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_952, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KModuleDescGoods, 'KModuleDescGoods', classMeta, VOID, VOID, KModuleDescGoods, VOID, {0: $serializer_getInstance_952}); + setMetadataFor(Companion_966, 'Companion', objectMeta); + protoOf($serializer_953).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_953, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KModuleAuthor_0, 'KModuleAuthor', classMeta, VOID, VOID, KModuleAuthor_0, VOID, {0: $serializer_getInstance_953}); + setMetadataFor(Companion_967, 'Companion', objectMeta); + protoOf($serializer_954).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_954, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KOnlyFans, 'KOnlyFans', classMeta, VOID, VOID, KOnlyFans, VOID, {0: $serializer_getInstance_954}); + setMetadataFor(Companion_968, 'Companion', objectMeta); + protoOf($serializer_955).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_955, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KIconBadge, 'KIconBadge', classMeta, VOID, VOID, KIconBadge, VOID, {0: $serializer_getInstance_955}); + setMetadataFor(Companion_969, 'Companion', objectMeta); + protoOf($serializer_956).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_956, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KUserInfo, 'KUserInfo', classMeta, VOID, VOID, KUserInfo, VOID, {0: $serializer_getInstance_956}); + setMetadataFor(Companion_970, 'Companion', objectMeta); + protoOf($serializer_957).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_957, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KUserPendant, 'KUserPendant', classMeta, VOID, VOID, KUserPendant, VOID, {0: $serializer_getInstance_957}); + setMetadataFor(Companion_971, 'Companion', objectMeta); + protoOf($serializer_958).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_958, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KNameplate, 'KNameplate', classMeta, VOID, VOID, KNameplate, VOID, {0: $serializer_getInstance_958}); + setMetadataFor(Companion_972, 'Companion', objectMeta); + protoOf($serializer_959).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_959, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KNFTInfo, 'KNFTInfo', classMeta, VOID, VOID, KNFTInfo, VOID, {0: $serializer_getInstance_959}); + setMetadataFor(Companion_973, 'Companion', objectMeta); + protoOf($serializer_960).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_960, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KOfficialVerify_1, 'KOfficialVerify', classMeta, VOID, VOID, KOfficialVerify_1, VOID, {0: $serializer_getInstance_960}); + setMetadataFor(Companion_974, 'Companion', objectMeta); + protoOf($serializer_961).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_961, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KVipInfo_0, 'KVipInfo', classMeta, VOID, VOID, KVipInfo_0, VOID, {0: $serializer_getInstance_961}); + setMetadataFor(Companion_975, 'Companion', objectMeta); + protoOf($serializer_962).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_962, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KVipLabel_1, 'KVipLabel', classMeta, VOID, VOID, KVipLabel_1, VOID, {0: $serializer_getInstance_962}); + setMetadataFor(Companion_976, 'Companion', objectMeta); + protoOf($serializer_963).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_963, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KDecorateCard, 'KDecorateCard', classMeta, VOID, VOID, KDecorateCard, VOID, {0: $serializer_getInstance_963}); + setMetadataFor(Companion_977, 'Companion', objectMeta); + protoOf($serializer_964).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_964, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KDecoCardFan, 'KDecoCardFan', classMeta, VOID, VOID, KDecoCardFan, VOID, {0: $serializer_getInstance_964}); + setMetadataFor(Companion_978, 'Companion', objectMeta); + protoOf($serializer_965).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_965, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KLiveInfo, 'KLiveInfo', classMeta, VOID, VOID, KLiveInfo, VOID, {0: $serializer_getInstance_965}); + setMetadataFor(Companion_979, 'Companion', objectMeta); + protoOf($serializer_966).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_966, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KModuleAuthorBadgeButton, 'KModuleAuthorBadgeButton', classMeta, VOID, VOID, KModuleAuthorBadgeButton, VOID, {0: $serializer_getInstance_966}); + setMetadataFor(Companion_980, 'Companion', objectMeta); + protoOf($serializer_967).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_967, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KRelation_1, 'KRelation', classMeta, VOID, VOID, KRelation_1, VOID, {0: $serializer_getInstance_967}); + setMetadataFor(Companion_981, 'Companion', objectMeta); + protoOf($serializer_968).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_968, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KWeight, 'KWeight', classMeta, VOID, VOID, KWeight, VOID, {0: $serializer_getInstance_968}); + setMetadataFor(KItem_4, 'KItem', classMeta); + setMetadataFor(KButton_4, 'KButton', objectMeta); + setMetadataFor(KDislike, 'KDislike', objectMeta); + setMetadataFor(Companion_982, 'Companion', objectMeta); + protoOf($serializer_969).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_969, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KWeightItem, 'KWeightItem', classMeta, VOID, VOID, KWeightItem, VOID, {0: $serializer_getInstance_969}); + setMetadataFor(Companion_983, 'Companion', objectMeta); + protoOf($serializer_970).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_970, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KWeightDislike, 'KWeightDislike', classMeta, VOID, VOID, KWeightDislike, VOID, {0: $serializer_getInstance_970}); + setMetadataFor(Companion_984, 'Companion', objectMeta); + protoOf($serializer_971).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_971, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KWeightButton, 'KWeightButton', classMeta, VOID, VOID, KWeightButton, VOID, {0: $serializer_getInstance_971}); + setMetadataFor(KItem_5, 'KItem', classMeta); + setMetadataFor(KDefault, 'KDefault', objectMeta); + setMetadataFor(KAutoPlayer, 'KAutoPlayer', objectMeta); + setMetadataFor(KShare_0, 'KShare', objectMeta); + setMetadataFor(KAttention, 'KAttention', objectMeta); + setMetadataFor(KWait, 'KWait', objectMeta); + setMetadataFor(KDislike_0, 'KDislike', objectMeta); + setMetadataFor(KFavorite, 'KFavorite', objectMeta); + setMetadataFor(KTop, 'KTop', objectMeta); + setMetadataFor(KComment, 'KComment', objectMeta); + setMetadataFor(KHide, 'KHide', objectMeta); + setMetadataFor(KTopicIrrelevant, 'KTopicIrrelevant', objectMeta); + setMetadataFor(KDynEdit, 'KDynEdit', objectMeta); + setMetadataFor(KCoin_0, 'KCoin', objectMeta); + setMetadataFor(Companion_985, 'Companion', objectMeta); + protoOf($serializer_972).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_972, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KThreePointItem, 'KThreePointItem', classMeta, VOID, VOID, KThreePointItem, VOID, {0: $serializer_getInstance_972}); + setMetadataFor(Companion_986, 'Companion', objectMeta); + protoOf($serializer_973).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_973, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KThreePointDefault, 'KThreePointDefault', classMeta, VOID, VOID, KThreePointDefault, VOID, {0: $serializer_getInstance_973}); + setMetadataFor(Companion_987, 'Companion', objectMeta); + protoOf($serializer_974).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_974, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KThreePointDefaultToast, 'KThreePointDefaultToast', classMeta, VOID, VOID, KThreePointDefaultToast, VOID, {0: $serializer_getInstance_974}); + setMetadataFor(Companion_988, 'Companion', objectMeta); + protoOf($serializer_975).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_975, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KThreePointAutoPlay, 'KThreePointAutoPlay', classMeta, VOID, VOID, KThreePointAutoPlay, VOID, {0: $serializer_getInstance_975}); + setMetadataFor(Companion_989, 'Companion', objectMeta); + protoOf($serializer_976).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_976, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KThreePointShare, 'KThreePointShare', classMeta, VOID, VOID, KThreePointShare, VOID, {0: $serializer_getInstance_976}); + setMetadataFor(Companion_990, 'Companion', objectMeta); + protoOf($serializer_977).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_977, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KShareReserve, 'KShareReserve', classMeta, VOID, VOID, KShareReserve, VOID, {0: $serializer_getInstance_977}); + setMetadataFor(Companion_991, 'Companion', objectMeta); + protoOf($serializer_978).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_978, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KThreePointShareChannel, 'KThreePointShareChannel', classMeta, VOID, VOID, KThreePointShareChannel, VOID, {0: $serializer_getInstance_978}); + setMetadataFor(Companion_992, 'Companion', objectMeta); + protoOf($serializer_979).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_979, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KThreePointAttention, 'KThreePointAttention', classMeta, VOID, VOID, KThreePointAttention, VOID, {0: $serializer_getInstance_979}); + setMetadataFor(Companion_993, 'Companion', objectMeta); + protoOf($serializer_980).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_980, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KThreePointWait, 'KThreePointWait', classMeta, VOID, VOID, KThreePointWait, VOID, {0: $serializer_getInstance_980}); + setMetadataFor(Companion_994, 'Companion', objectMeta); + protoOf($serializer_981).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_981, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KThreePointDislike, 'KThreePointDislike', classMeta, VOID, VOID, KThreePointDislike, VOID, {0: $serializer_getInstance_981}); + setMetadataFor(Companion_995, 'Companion', objectMeta); + protoOf($serializer_982).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_982, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KThreePointFavorite, 'KThreePointFavorite', classMeta, VOID, VOID, KThreePointFavorite, VOID, {0: $serializer_getInstance_982}); + setMetadataFor(Companion_996, 'Companion', objectMeta); + protoOf($serializer_983).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_983, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KThreePointTop, 'KThreePointTop', classMeta, VOID, VOID, KThreePointTop, VOID, {0: $serializer_getInstance_983}); + setMetadataFor(Companion_997, 'Companion', objectMeta); + protoOf($serializer_984).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_984, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KThreePointTopicIrrelevant, 'KThreePointTopicIrrelevant', classMeta, VOID, VOID, KThreePointTopicIrrelevant, VOID, {0: $serializer_getInstance_984}); + setMetadataFor(Companion_998, 'Companion', objectMeta); + protoOf($serializer_985).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_985, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KThreePointDynEdit, 'KThreePointDynEdit', classMeta, VOID, VOID, KThreePointDynEdit, VOID, {0: $serializer_getInstance_985}); + setMetadataFor(Companion_999, 'Companion', objectMeta); + protoOf($serializer_986).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_986, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KThreePointDynCoin, 'KThreePointDynCoin', classMeta, VOID, VOID, KThreePointDynCoin, VOID, {0: $serializer_getInstance_986}); + setMetadataFor(Companion_1000, 'Companion', objectMeta); + protoOf($serializer_987).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_987, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KThreePointComment, 'KThreePointComment', classMeta, VOID, VOID, KThreePointComment, VOID, {0: $serializer_getInstance_987}); + setMetadataFor(Companion_1001, 'Companion', objectMeta); + protoOf($serializer_988).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_988, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCommentDetail, 'KCommentDetail', classMeta, VOID, VOID, KCommentDetail, VOID, {0: $serializer_getInstance_988}); + setMetadataFor(Companion_1002, 'Companion', objectMeta); + protoOf($serializer_989).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_989, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KThreePointHide, 'KThreePointHide', classMeta, VOID, VOID, KThreePointHide, VOID, {0: $serializer_getInstance_989}); + setMetadataFor(Companion_1003, 'Companion', objectMeta); + protoOf($serializer_990).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_990, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KThreePointHideInteractive, 'KThreePointHideInteractive', classMeta, VOID, VOID, KThreePointHideInteractive, VOID, {0: $serializer_getInstance_990}); + setMetadataFor(Companion_1004, 'Companion', objectMeta); + protoOf($serializer_991).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_991, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KModuleDispute_0, 'KModuleDispute', classMeta, VOID, VOID, KModuleDispute_0, VOID, {0: $serializer_getInstance_991}); + setMetadataFor(Companion_1005, 'Companion', objectMeta); + protoOf($serializer_992).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_992, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KModuleDesc_0, 'KModuleDesc', classMeta, VOID, VOID, KModuleDesc_0, VOID, {0: $serializer_getInstance_992}); + setMetadataFor(KModuleItem_0, 'KModuleItem', classMeta); + setMetadataFor(KDynArchive, 'KDynArchive', objectMeta); + setMetadataFor(KDynPgc, 'KDynPgc', objectMeta); + setMetadataFor(KDynCourSeason, 'KDynCourSeason', objectMeta); + setMetadataFor(KDynCourBatch, 'KDynCourBatch', objectMeta); + setMetadataFor(KDynForward, 'KDynForward', objectMeta); + setMetadataFor(KDynDraw, 'KDynDraw', objectMeta); + setMetadataFor(KDynArticle, 'KDynArticle', objectMeta); + setMetadataFor(KDynMusic, 'KDynMusic', objectMeta); + setMetadataFor(KDynCommon, 'KDynCommon', objectMeta); + setMetadataFor(KDynCommonLive, 'KDynCommonLive', objectMeta); + setMetadataFor(KDynMedialist, 'KDynMedialist', objectMeta); + setMetadataFor(KDynApplet, 'KDynApplet', objectMeta); + setMetadataFor(KDynSubscription, 'KDynSubscription', objectMeta); + setMetadataFor(KDynLiveRcmd, 'KDynLiveRcmd', objectMeta); + setMetadataFor(KDynUgcSeason, 'KDynUgcSeason', objectMeta); + setMetadataFor(KDynSubscriptionNew, 'KDynSubscriptionNew', objectMeta); + setMetadataFor(KDynCourBatchUp, 'KDynCourBatchUp', objectMeta); + setMetadataFor(KDynTopicSet, 'KDynTopicSet', objectMeta); + setMetadataFor(Companion_1006, 'Companion', objectMeta); + protoOf($serializer_993).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_993, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KModuleDynamic_0, 'KModuleDynamic', classMeta, VOID, VOID, KModuleDynamic_0, VOID, {0: $serializer_getInstance_993}); + setMetadataFor(Companion_1007, 'Companion', objectMeta); + protoOf($serializer_994).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_994, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KMdlDynForward, 'KMdlDynForward', classMeta, VOID, VOID, KMdlDynForward, VOID, {0: $serializer_getInstance_994}); + setMetadataFor(Companion_1008, 'Companion', objectMeta); + protoOf($serializer_995).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_995, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KModuleLikeUser_0, 'KModuleLikeUser', classMeta, VOID, VOID, KModuleLikeUser_0, VOID, {0: $serializer_getInstance_995}); + setMetadataFor(Companion_1009, 'Companion', objectMeta); + protoOf($serializer_996).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_996, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KLikeUser, 'KLikeUser', classMeta, VOID, VOID, KLikeUser, VOID, {0: $serializer_getInstance_996}); + setMetadataFor(Companion_1010, 'Companion', objectMeta); + protoOf($serializer_997).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_997, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KModuleExtend_0, 'KModuleExtend', classMeta, VOID, VOID, KModuleExtend_0, VOID, {0: $serializer_getInstance_997}); + setMetadataFor(KExtend_2, 'KExtend', classMeta); + setMetadataFor(KExtInfoTopic, 'KExtInfoTopic', objectMeta); + setMetadataFor(KExtInfoLbs, 'KExtInfoLbs', objectMeta); + setMetadataFor(KExtInfoHot, 'KExtInfoHot', objectMeta); + setMetadataFor(KExtInfoGame, 'KExtInfoGame', objectMeta); + setMetadataFor(KExtInfoCommon, 'KExtInfoCommon', objectMeta); + setMetadataFor(KExtInfoOgv, 'KExtInfoOgv', objectMeta); + setMetadataFor(Companion_1011, 'Companion', objectMeta); + protoOf($serializer_998).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_998, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KModuleExtendItem, 'KModuleExtendItem', classMeta, VOID, VOID, KModuleExtendItem, VOID, {0: $serializer_getInstance_998}); + setMetadataFor(Companion_1012, 'Companion', objectMeta); + protoOf($serializer_999).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_999, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KExtInfoTopic_0, 'KExtInfoTopic', classMeta, VOID, VOID, KExtInfoTopic_0, VOID, {0: $serializer_getInstance_999}); + setMetadataFor(Companion_1013, 'Companion', objectMeta); + protoOf($serializer_1000).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1000, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KExtInfoLBS, 'KExtInfoLBS', classMeta, VOID, VOID, KExtInfoLBS, VOID, {0: $serializer_getInstance_1000}); + setMetadataFor(Companion_1014, 'Companion', objectMeta); + protoOf($serializer_1001).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1001, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KExtInfoHot_0, 'KExtInfoHot', classMeta, VOID, VOID, KExtInfoHot_0, VOID, {0: $serializer_getInstance_1001}); + setMetadataFor(Companion_1015, 'Companion', objectMeta); + protoOf($serializer_1002).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1002, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KExtInfoGame_0, 'KExtInfoGame', classMeta, VOID, VOID, KExtInfoGame_0, VOID, {0: $serializer_getInstance_1002}); + setMetadataFor(Companion_1016, 'Companion', objectMeta); + protoOf($serializer_1003).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1003, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KExtInfoCommon_0, 'KExtInfoCommon', classMeta, VOID, VOID, KExtInfoCommon_0, VOID, {0: $serializer_getInstance_1003}); + setMetadataFor(Companion_1017, 'Companion', objectMeta); + protoOf($serializer_1004).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1004, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KExtInfoOGV, 'KExtInfoOGV', classMeta, VOID, VOID, KExtInfoOGV, VOID, {0: $serializer_getInstance_1004}); + setMetadataFor(Companion_1018, 'Companion', objectMeta); + protoOf($serializer_1005).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1005, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KInfoOGV, 'KInfoOGV', classMeta, VOID, VOID, KInfoOGV, VOID, {0: $serializer_getInstance_1005}); + setMetadataFor(Companion_1019, 'Companion', objectMeta); + protoOf($serializer_1006).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1006, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KModuleStat_0, 'KModuleStat', classMeta, VOID, VOID, KModuleStat_0, VOID, {0: $serializer_getInstance_1006}); + setMetadataFor(Companion_1020, 'Companion', objectMeta); + protoOf($serializer_1007).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1007, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KLikeInfo, 'KLikeInfo', classMeta, VOID, VOID, KLikeInfo, VOID, {0: $serializer_getInstance_1007}); + setMetadataFor(Companion_1021, 'Companion', objectMeta); + protoOf($serializer_1008).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1008, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KLikeAnimation, 'KLikeAnimation', classMeta, VOID, VOID, KLikeAnimation, VOID, {0: $serializer_getInstance_1008}); + setMetadataFor(Companion_1022, 'Companion', objectMeta); + protoOf($serializer_1009).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1009, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KModuleFold_0, 'KModuleFold', classMeta, VOID, VOID, KModuleFold_0, VOID, {0: $serializer_getInstance_1009}); + setMetadataFor(Companion_1023, 'Companion', objectMeta); + protoOf($serializer_1010).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1010, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KTopicMergedResource, 'KTopicMergedResource', classMeta, VOID, VOID, KTopicMergedResource, VOID, {0: $serializer_getInstance_1010}); + setMetadataFor(Companion_1024, 'Companion', objectMeta); + protoOf($serializer_1011).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1011, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KModuleComment_0, 'KModuleComment', classMeta, VOID, VOID, KModuleComment_0, VOID, {0: $serializer_getInstance_1011}); + setMetadataFor(Companion_1025, 'Companion', objectMeta); + protoOf($serializer_1012).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1012, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCmtShowItem, 'KCmtShowItem', classMeta, VOID, VOID, KCmtShowItem, VOID, {0: $serializer_getInstance_1012}); + setMetadataFor(Companion_1026, 'Companion', objectMeta); + protoOf($serializer_1013).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1013, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KModuleInteraction_0, 'KModuleInteraction', classMeta, VOID, VOID, KModuleInteraction_0, VOID, {0: $serializer_getInstance_1013}); + setMetadataFor(Companion_1027, 'Companion', objectMeta); + protoOf($serializer_1014).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1014, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KExtendClickParamEntry, 'KExtendClickParamEntry', classMeta, VOID, VOID, KExtendClickParamEntry, VOID, {0: $serializer_getInstance_1014}); + setMetadataFor(Companion_1028, 'Companion', objectMeta); + protoOf($serializer_1015).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1015, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KInteractionItem, 'KInteractionItem', classMeta, VOID, VOID, KInteractionItem, VOID, {0: $serializer_getInstance_1015}); + setMetadataFor(Companion_1029, 'Companion', objectMeta); + protoOf($serializer_1016).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1016, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KInteractionFace, 'KInteractionFace', classMeta, VOID, VOID, KInteractionFace, VOID, {0: $serializer_getInstance_1016}); + setMetadataFor(Companion_1030, 'Companion', objectMeta); + protoOf($serializer_1017).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1017, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KInteractionStat, 'KInteractionStat', classMeta, VOID, VOID, KInteractionStat, VOID, {0: $serializer_getInstance_1017}); + setMetadataFor(Companion_1031, 'Companion', objectMeta); + protoOf($serializer_1018).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1018, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KModuleAuthorForward_0, 'KModuleAuthorForward', classMeta, VOID, VOID, KModuleAuthorForward_0, VOID, {0: $serializer_getInstance_1018}); + setMetadataFor(Companion_1032, 'Companion', objectMeta); + protoOf($serializer_1019).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1019, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KModuleAuthorForwardTitle, 'KModuleAuthorForwardTitle', classMeta, VOID, VOID, KModuleAuthorForwardTitle, VOID, {0: $serializer_getInstance_1019}); + setMetadataFor(Companion_1033, 'Companion', objectMeta); + protoOf($serializer_1020).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1020, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KModuleAd_0, 'KModuleAd', classMeta, VOID, VOID, KModuleAd_0, VOID, {0: $serializer_getInstance_1020}); + setMetadataFor(KItem_6, 'KItem', classMeta); + setMetadataFor(KUser_0, 'KUser', objectMeta); + setMetadataFor(Companion_1034, 'Companion', objectMeta); + protoOf($serializer_1021).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1021, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KModuleBanner_0, 'KModuleBanner', classMeta, VOID, VOID, KModuleBanner_0, VOID, {0: $serializer_getInstance_1021}); + setMetadataFor(Companion_1035, 'Companion', objectMeta); + protoOf($serializer_1022).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1022, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KModuleBannerUser, 'KModuleBannerUser', classMeta, VOID, VOID, KModuleBannerUser, VOID, {0: $serializer_getInstance_1022}); + setMetadataFor(Companion_1036, 'Companion', objectMeta); + protoOf($serializer_1023).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1023, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KModuleBannerUserItem, 'KModuleBannerUserItem', classMeta, VOID, VOID, KModuleBannerUserItem, VOID, {0: $serializer_getInstance_1023}); + setMetadataFor(Companion_1037, 'Companion', objectMeta); + protoOf($serializer_1024).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1024, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KModuleItemNull_0, 'KModuleItemNull', classMeta, VOID, VOID, KModuleItemNull_0, VOID, {0: $serializer_getInstance_1024}); + setMetadataFor(Companion_1038, 'Companion', objectMeta); + protoOf($serializer_1025).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1025, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KModuleShareInfo_0, 'KModuleShareInfo', classMeta, VOID, VOID, KModuleShareInfo_0, VOID, {0: $serializer_getInstance_1025}); + setMetadataFor(Companion_1039, 'Companion', objectMeta); + protoOf($serializer_1026).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1026, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KShareChannel, 'KShareChannel', classMeta, VOID, VOID, KShareChannel, VOID, {0: $serializer_getInstance_1026}); + setMetadataFor(Companion_1040, 'Companion', objectMeta); + protoOf($serializer_1027).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1027, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KModuleRecommend_0, 'KModuleRecommend', classMeta, VOID, VOID, KModuleRecommend_0, VOID, {0: $serializer_getInstance_1027}); + setMetadataFor(Companion_1041, 'Companion', objectMeta); + protoOf($serializer_1028).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1028, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KModuleTop_0, 'KModuleTop', classMeta, VOID, VOID, KModuleTop_0, VOID, {0: $serializer_getInstance_1028}); + setMetadataFor(Companion_1042, 'Companion', objectMeta); + protoOf($serializer_1029).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1029, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KInteractionIcon, 'KInteractionIcon', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_1042}); + setMetadataFor(Companion_1043, 'Companion', objectMeta); + protoOf($serializer_1030).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1030, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KModuleButtom_0, 'KModuleButtom', classMeta, VOID, VOID, KModuleButtom_0, VOID, {0: $serializer_getInstance_1030}); + setMetadataFor(Companion_1044, 'Companion', objectMeta); + protoOf($serializer_1031).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1031, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KModuleStory_0, 'KModuleStory', classMeta, VOID, VOID, KModuleStory_0, VOID, {0: $serializer_getInstance_1031}); + setMetadataFor(KRcmdItem_2, 'KRcmdItem', classMeta); + setMetadataFor(KStoryArchive, 'KStoryArchive', objectMeta); + setMetadataFor(Companion_1045, 'Companion', objectMeta); + protoOf($serializer_1032).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1032, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KStoryItem, 'KStoryItem', classMeta, VOID, VOID, KStoryItem, VOID, {0: $serializer_getInstance_1032}); + setMetadataFor(Companion_1046, 'Companion', objectMeta); + protoOf($serializer_1033).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1033, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KStoryArchive_0, 'KStoryArchive', classMeta, VOID, VOID, KStoryArchive_0, VOID, {0: $serializer_getInstance_1033}); + setMetadataFor(Companion_1047, 'Companion', objectMeta); + protoOf($serializer_1034).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1034, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KModuleTopic_0, 'KModuleTopic', classMeta, VOID, VOID, KModuleTopic_0, VOID, {0: $serializer_getInstance_1034}); + setMetadataFor(Companion_1048, 'Companion', objectMeta); + protoOf($serializer_1035).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1035, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KModuleTopicDetailsExt_0, 'KModuleTopicDetailsExt', classMeta, VOID, VOID, KModuleTopicDetailsExt_0, VOID, {0: $serializer_getInstance_1035}); + setMetadataFor(Companion_1049, 'Companion', objectMeta); + protoOf($serializer_1036).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1036, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KModuleTopTag_0, 'KModuleTopTag', classMeta, VOID, VOID, KModuleTopTag_0, VOID, {0: $serializer_getInstance_1036}); + setMetadataFor(Companion_1050, 'Companion', objectMeta); + protoOf($serializer_1037).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1037, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KModuleTopicBrief_0, 'KModuleTopicBrief', classMeta, VOID, VOID, KModuleTopicBrief_0, VOID, {0: $serializer_getInstance_1037}); + setMetadataFor(Companion_1051, 'Companion', objectMeta); + protoOf($serializer_1038).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1038, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KModuleTitle_0, 'KModuleTitle', classMeta, VOID, VOID, KModuleTitle_0, VOID, {0: $serializer_getInstance_1038}); + setMetadataFor(Companion_1052, 'Companion', objectMeta); + protoOf($serializer_1039).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1039, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KModuleButton_0, 'KModuleButton', classMeta, VOID, VOID, KModuleButton_0, VOID, {0: $serializer_getInstance_1039}); + setMetadataFor(Companion_1053, 'Companion', objectMeta); + protoOf($serializer_1040).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1040, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KModuleNotice_0, 'KModuleNotice', classMeta, VOID, VOID, KModuleNotice_0, VOID, {0: $serializer_getInstance_1040}); + setMetadataFor(Companion_1054, 'Companion', objectMeta); + protoOf($serializer_1041).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1041, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KModuleOpusSummary_0, 'KModuleOpusSummary', classMeta, VOID, VOID, KModuleOpusSummary_0, VOID, {0: $serializer_getInstance_1041}); + setMetadataFor(Companion_1055, 'Companion', objectMeta); + protoOf($serializer_1042).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1042, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KModuleBlocked_0, 'KModuleBlocked', classMeta, VOID, VOID, KModuleBlocked_0, VOID, {0: $serializer_getInstance_1042}); + setMetadataFor(Companion_1056, 'Companion', objectMeta); + protoOf($serializer_1043).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1043, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KImageSet, 'KImageSet', classMeta, VOID, VOID, KImageSet, VOID, {0: $serializer_getInstance_1043}); + setMetadataFor(Companion_1057, 'Companion', objectMeta); + protoOf($serializer_1044).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1044, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KModuleTextNotice_0, 'KModuleTextNotice', classMeta, VOID, VOID, KModuleTextNotice_0, VOID, {0: $serializer_getInstance_1044}); + setMetadataFor(Companion_1058, 'Companion', objectMeta); + protoOf($serializer_1045).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1045, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KModuleOnetimeNotice_0, 'KModuleOnetimeNotice', classMeta, VOID, VOID, KModuleOnetimeNotice_0, VOID, {0: $serializer_getInstance_1045}); + setMetadataFor(Companion_1059, 'Companion', objectMeta); + protoOf($serializer_1046).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1046, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KMediaType, 'KMediaType', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_1059}); + setMetadataFor(Companion_1060, 'Companion', objectMeta); + protoOf($serializer_1047).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1047, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KReserveType, 'KReserveType', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_1060}); + setMetadataFor(Companion_1061, 'Companion', objectMeta); + protoOf($serializer_1048).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1048, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KIconResLocal, 'KIconResLocal', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_1061}); + setMetadataFor(Companion_1062, 'Companion', objectMeta); + protoOf($serializer_1049).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1049, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KVideoType, 'KVideoType', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_1062}); + setMetadataFor(Companion_1063, 'Companion', objectMeta); + protoOf($serializer_1050).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1050, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KVideoSubType, 'KVideoSubType', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_1063}); + setMetadataFor(Companion_1064, 'Companion', objectMeta); + protoOf($serializer_1051).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1051, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KMdlDynDrawTagType, 'KMdlDynDrawTagType', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_1064}); + setMetadataFor(Companion_1065, 'Companion', objectMeta); + protoOf($serializer_1052).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1052, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KAddButtonType, 'KAddButtonType', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_1065}); + setMetadataFor(Companion_1066, 'Companion', objectMeta); + protoOf($serializer_1053).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1053, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KAdditionalButtonStatus, 'KAdditionalButtonStatus', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_1066}); + setMetadataFor(Companion_1067, 'Companion', objectMeta); + protoOf($serializer_1054).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1054, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KAdditionalButtonClickType, 'KAdditionalButtonClickType', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_1067}); + setMetadataFor(Companion_1068, 'Companion', objectMeta); + protoOf($serializer_1055).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1055, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KAdditionalShareShowType, 'KAdditionalShareShowType', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_1068}); + setMetadataFor(Companion_1069, 'Companion', objectMeta); + protoOf($serializer_1056).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1056, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KDisableState, 'KDisableState', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_1069}); + setMetadataFor(Companion_1070, 'Companion', objectMeta); + protoOf($serializer_1057).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1057, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KAddButtonBgStyle, 'KAddButtonBgStyle', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_1070}); + setMetadataFor(Companion_1071, 'Companion', objectMeta); + protoOf($serializer_1058).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1058, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KMdlDynCommonType, 'KMdlDynCommonType', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_1071}); + setMetadataFor(Companion_1072, 'Companion', objectMeta); + protoOf($serializer_1059).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1059, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KLiveState, 'KLiveState', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_1072}); + setMetadataFor(Companion_1073, 'Companion', objectMeta); + protoOf($serializer_1060).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1060, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KMdlDynSubscriptionNewStyle, 'KMdlDynSubscriptionNewStyle', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_1073}); + setMetadataFor(Companion_1074, 'Companion', objectMeta); + protoOf($serializer_1061).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1061, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KRouterAction, 'KRouterAction', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_1074}); + setMetadataFor(Companion_1075, 'Companion', objectMeta); + protoOf($serializer_1062).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1062, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KAdditionalType, 'KAdditionalType', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_1075}); + setMetadataFor(Companion_1076, 'Companion', objectMeta); + protoOf($serializer_1063).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1063, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KImageStyle, 'KImageStyle', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_1076}); + setMetadataFor(Companion_1077, 'Companion', objectMeta); + protoOf($serializer_1064).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1064, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KGoodsJumpType, 'KGoodsJumpType', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_1077}); + setMetadataFor(Companion_1078, 'Companion', objectMeta); + protoOf($serializer_1065).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1065, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KEspaceStyle, 'KEspaceStyle', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_1078}); + setMetadataFor(Companion_1079, 'Companion', objectMeta); + protoOf($serializer_1066).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1066, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KHighlightTextStyle, 'KHighlightTextStyle', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_1079}); + setMetadataFor(Companion_1080, 'Companion', objectMeta); + protoOf($serializer_1067).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1067, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KReserveRelationLotteryType, 'KReserveRelationLotteryType', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_1080}); + setMetadataFor(Companion_1081, 'Companion', objectMeta); + protoOf($serializer_1068).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1068, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCoverIcon, 'KCoverIcon', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_1081}); + setMetadataFor(Companion_1082, 'Companion', objectMeta); + protoOf($serializer_1069).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1069, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KAdditionVoteType, 'KAdditionVoteType', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_1082}); + setMetadataFor(Companion_1083, 'Companion', objectMeta); + protoOf($serializer_1070).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1070, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KAdditionVoteState, 'KAdditionVoteState', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_1083}); + setMetadataFor(Companion_1084, 'Companion', objectMeta); + protoOf($serializer_1071).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1071, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KMdlDynArchive, 'KMdlDynArchive', classMeta, VOID, VOID, KMdlDynArchive, VOID, {0: $serializer_getInstance_1071}); + setMetadataFor(Companion_1085, 'Companion', objectMeta); + protoOf($serializer_1072).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1072, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KDimension_2, 'KDimension', classMeta, VOID, VOID, KDimension_2, VOID, {0: $serializer_getInstance_1072}); + setMetadataFor(Companion_1086, 'Companion', objectMeta); + protoOf($serializer_1073).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1073, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KVideoBadge, 'KVideoBadge', classMeta, VOID, VOID, KVideoBadge, VOID, {0: $serializer_getInstance_1073}); + setMetadataFor(Companion_1087, 'Companion', objectMeta); + protoOf($serializer_1074).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1074, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KMdlDynPGC, 'KMdlDynPGC', classMeta, VOID, VOID, KMdlDynPGC, VOID, {0: $serializer_getInstance_1074}); + setMetadataFor(Companion_1088, 'Companion', objectMeta); + protoOf($serializer_1075).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1075, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KPGCSeason, 'KPGCSeason', classMeta, VOID, VOID, KPGCSeason, VOID, {0: $serializer_getInstance_1075}); + setMetadataFor(Companion_1089, 'Companion', objectMeta); + protoOf($serializer_1076).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1076, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KMdlDynCourSeason, 'KMdlDynCourSeason', classMeta, VOID, VOID, KMdlDynCourSeason, VOID, {0: $serializer_getInstance_1076}); + setMetadataFor(Companion_1090, 'Companion', objectMeta); + protoOf($serializer_1077).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1077, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KMdlDynCourBatch, 'KMdlDynCourBatch', classMeta, VOID, VOID, KMdlDynCourBatch, VOID, {0: $serializer_getInstance_1077}); + setMetadataFor(Companion_1091, 'Companion', objectMeta); + protoOf($serializer_1078).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1078, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KMdlDynDraw, 'KMdlDynDraw', classMeta, VOID, VOID, KMdlDynDraw, VOID, {0: $serializer_getInstance_1078}); + setMetadataFor(Companion_1092, 'Companion', objectMeta); + protoOf($serializer_1079).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1079, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KMdlDynDrawItem, 'KMdlDynDrawItem', classMeta, VOID, VOID, KMdlDynDrawItem, VOID, {0: $serializer_getInstance_1079}); + setMetadataFor(Companion_1093, 'Companion', objectMeta); + protoOf($serializer_1080).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1080, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KMdlDynDrawTag, 'KMdlDynDrawTag', classMeta, VOID, VOID, KMdlDynDrawTag, VOID, {0: $serializer_getInstance_1080}); + setMetadataFor(Companion_1094, 'Companion', objectMeta); + protoOf($serializer_1081).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1081, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KMdlDynDrawTagItem, 'KMdlDynDrawTagItem', classMeta, VOID, VOID, KMdlDynDrawTagItem, VOID, {0: $serializer_getInstance_1081}); + setMetadataFor(Companion_1095, 'Companion', objectMeta); + protoOf($serializer_1082).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1082, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KMdlDynArticle, 'KMdlDynArticle', classMeta, VOID, VOID, KMdlDynArticle, VOID, {0: $serializer_getInstance_1082}); + setMetadataFor(Companion_1096, 'Companion', objectMeta); + protoOf($serializer_1083).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1083, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KMdlDynMusic, 'KMdlDynMusic', classMeta, VOID, VOID, KMdlDynMusic, VOID, {0: $serializer_getInstance_1083}); + setMetadataFor(Companion_1097, 'Companion', objectMeta); + protoOf($serializer_1084).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1084, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KMdlDynCommon, 'KMdlDynCommon', classMeta, VOID, VOID, KMdlDynCommon, VOID, {0: $serializer_getInstance_1084}); + setMetadataFor(Companion_1098, 'Companion', objectMeta); + protoOf($serializer_1085).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1085, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KAdditionalButton, 'KAdditionalButton', classMeta, VOID, VOID, KAdditionalButton, VOID, {0: $serializer_getInstance_1085}); + setMetadataFor(Companion_1099, 'Companion', objectMeta); + protoOf($serializer_1086).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1086, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KAdditionalButtonStyle, 'KAdditionalButtonStyle', classMeta, VOID, VOID, KAdditionalButtonStyle, VOID, {0: $serializer_getInstance_1086}); + setMetadataFor(Companion_1100, 'Companion', objectMeta); + protoOf($serializer_1087).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1087, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KAdditionalButtonShare, 'KAdditionalButtonShare', classMeta, VOID, VOID, KAdditionalButtonShare, VOID, {0: $serializer_getInstance_1087}); + setMetadataFor(Companion_1101, 'Companion', objectMeta); + protoOf($serializer_1088).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1088, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KAdditionalButtonInteractive, 'KAdditionalButtonInteractive', classMeta, VOID, VOID, KAdditionalButtonInteractive, VOID, {0: $serializer_getInstance_1088}); + setMetadataFor(Companion_1102, 'Companion', objectMeta); + protoOf($serializer_1089).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1089, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KMdlDynLive, 'KMdlDynLive', classMeta, VOID, VOID, KMdlDynLive, VOID, {0: $serializer_getInstance_1089}); + setMetadataFor(Companion_1103, 'Companion', objectMeta); + protoOf($serializer_1090).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1090, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KMdlDynMedialist, 'KMdlDynMedialist', classMeta, VOID, VOID, KMdlDynMedialist, VOID, {0: $serializer_getInstance_1090}); + setMetadataFor(Companion_1104, 'Companion', objectMeta); + protoOf($serializer_1091).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1091, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KMdlDynApplet, 'KMdlDynApplet', classMeta, VOID, VOID, KMdlDynApplet, VOID, {0: $serializer_getInstance_1091}); + setMetadataFor(Companion_1105, 'Companion', objectMeta); + protoOf($serializer_1092).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1092, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KMdlDynSubscription, 'KMdlDynSubscription', classMeta, VOID, VOID, KMdlDynSubscription, VOID, {0: $serializer_getInstance_1092}); + setMetadataFor(Companion_1106, 'Companion', objectMeta); + protoOf($serializer_1093).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1093, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KMdlDynLiveRcmd, 'KMdlDynLiveRcmd', classMeta, VOID, VOID, KMdlDynLiveRcmd, VOID, {0: $serializer_getInstance_1093}); + setMetadataFor(Companion_1107, 'Companion', objectMeta); + protoOf($serializer_1094).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1094, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KLivePendant, 'KLivePendant', classMeta, VOID, VOID, KLivePendant, VOID, {0: $serializer_getInstance_1094}); + setMetadataFor(Companion_1108, 'Companion', objectMeta); + protoOf($serializer_1095).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1095, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KMdlDynUGCSeason, 'KMdlDynUGCSeason', classMeta, VOID, VOID, KMdlDynUGCSeason, VOID, {0: $serializer_getInstance_1095}); + setMetadataFor(KItem_7, 'KItem', classMeta); + setMetadataFor(KDynSubscription_0, 'KDynSubscription', objectMeta); + setMetadataFor(KDynLiveRcmd_0, 'KDynLiveRcmd', objectMeta); + setMetadataFor(Companion_1109, 'Companion', objectMeta); + protoOf($serializer_1096).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1096, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KMdlDynSubscriptionNew, 'KMdlDynSubscriptionNew', classMeta, VOID, VOID, KMdlDynSubscriptionNew, VOID, {0: $serializer_getInstance_1096}); + setMetadataFor(Companion_1110, 'Companion', objectMeta); + protoOf($serializer_1097).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1097, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KMdlDynCourUp, 'KMdlDynCourUp', classMeta, VOID, VOID, KMdlDynCourUp, VOID, {0: $serializer_getInstance_1097}); + setMetadataFor(Companion_1111, 'Companion', objectMeta); + protoOf($serializer_1098).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1098, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KMdlDynTopicSet, 'KMdlDynTopicSet', classMeta, VOID, VOID, KMdlDynTopicSet, VOID, {0: $serializer_getInstance_1098}); + setMetadataFor(Companion_1112, 'Companion', objectMeta); + protoOf($serializer_1099).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1099, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KTopicItem_0, 'KTopicItem', classMeta, VOID, VOID, KTopicItem_0, VOID, {0: $serializer_getInstance_1099}); + setMetadataFor(Companion_1113, 'Companion', objectMeta); + protoOf($serializer_1100).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1100, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KIconButton, 'KIconButton', classMeta, VOID, VOID, KIconButton, VOID, {0: $serializer_getInstance_1100}); + setMetadataFor(KItem_8, 'KItem', classMeta); + setMetadataFor(KPgc, 'KPgc', objectMeta); + setMetadataFor(KGoods, 'KGoods', objectMeta); + setMetadataFor(KVote, 'KVote', objectMeta); + setMetadataFor(KCommon, 'KCommon', objectMeta); + setMetadataFor(KEsport_0, 'KEsport', objectMeta); + setMetadataFor(KVote2, 'KVote2', objectMeta); + setMetadataFor(KUgc, 'KUgc', objectMeta); + setMetadataFor(KUp_0, 'KUp', objectMeta); + setMetadataFor(KArticle_0, 'KArticle', objectMeta); + setMetadataFor(KLive_2, 'KLive', objectMeta); + setMetadataFor(KMusic, 'KMusic', objectMeta); + setMetadataFor(Companion_1114, 'Companion', objectMeta); + protoOf($serializer_1101).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1101, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KModuleAdditional_0, 'KModuleAdditional', classMeta, VOID, VOID, KModuleAdditional_0, VOID, {0: $serializer_getInstance_1101}); + setMetadataFor(Companion_1115, 'Companion', objectMeta); + protoOf($serializer_1102).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1102, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KAdditionalPGC, 'KAdditionalPGC', classMeta, VOID, VOID, KAdditionalPGC, VOID, {0: $serializer_getInstance_1102}); + setMetadataFor(Companion_1116, 'Companion', objectMeta); + protoOf($serializer_1103).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1103, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KAdditionGoods, 'KAdditionGoods', classMeta, VOID, VOID, KAdditionGoods, VOID, {0: $serializer_getInstance_1103}); + setMetadataFor(Companion_1117, 'Companion', objectMeta); + protoOf($serializer_1104).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1104, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KGoodsItem, 'KGoodsItem', classMeta, VOID, VOID, KGoodsItem, VOID, {0: $serializer_getInstance_1104}); + setMetadataFor(Companion_1118, 'Companion', objectMeta); + protoOf($serializer_1105).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1105, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KAdditionVote, 'KAdditionVote', classMeta, VOID, VOID, KAdditionVote, VOID, {0: $serializer_getInstance_1105}); + setMetadataFor(Companion_1119, 'Companion', objectMeta); + protoOf($serializer_1106).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1106, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KAdditionUgc, 'KAdditionUgc', classMeta, VOID, VOID, KAdditionUgc, VOID, {0: $serializer_getInstance_1106}); + setMetadataFor(Companion_1120, 'Companion', objectMeta); + protoOf($serializer_1107).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1107, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KAdditionCommon, 'KAdditionCommon', classMeta, VOID, VOID, KAdditionCommon, VOID, {0: $serializer_getInstance_1107}); + setMetadataFor(KItem_9, 'KItem', classMeta); + setMetadataFor(KAdditionEsportMoba, 'KAdditionEsportMoba', objectMeta); + setMetadataFor(Companion_1121, 'Companion', objectMeta); + protoOf($serializer_1108).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1108, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KAdditionEsport, 'KAdditionEsport', classMeta, VOID, VOID, KAdditionEsport, VOID, {0: $serializer_getInstance_1108}); + setMetadataFor(Companion_1122, 'Companion', objectMeta); + protoOf($serializer_1109).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1109, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KAdditionEsportMoba_0, 'KAdditionEsportMoba', classMeta, VOID, VOID, KAdditionEsportMoba_0, VOID, {0: $serializer_getInstance_1109}); + setMetadataFor(Companion_1123, 'Companion', objectMeta); + protoOf($serializer_1110).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1110, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KAdditionEsportMobaStatus, 'KAdditionEsportMobaStatus', classMeta, VOID, VOID, KAdditionEsportMobaStatus, VOID, {0: $serializer_getInstance_1110}); + setMetadataFor(Companion_1124, 'Companion', objectMeta); + protoOf($serializer_1111).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1111, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KAdditionEsportMobaStatusDesc, 'KAdditionEsportMobaStatusDesc', classMeta, VOID, VOID, KAdditionEsportMobaStatusDesc, VOID, {0: $serializer_getInstance_1111}); + setMetadataFor(Companion_1125, 'Companion', objectMeta); + protoOf($serializer_1112).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1112, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KMatchTeam_0, 'KMatchTeam', classMeta, VOID, VOID, KMatchTeam_0, VOID, {0: $serializer_getInstance_1112}); + setMetadataFor(Companion_1126, 'Companion', objectMeta); + protoOf($serializer_1113).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1113, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KAdditionUP, 'KAdditionUP', classMeta, VOID, VOID, KAdditionUP, VOID, {0: $serializer_getInstance_1113}); + setMetadataFor(Companion_1127, 'Companion', objectMeta); + protoOf($serializer_1114).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1114, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KAdditionUserInfo, 'KAdditionUserInfo', classMeta, VOID, VOID, KAdditionUserInfo, VOID, {0: $serializer_getInstance_1114}); + setMetadataFor(Companion_1128, 'Companion', objectMeta); + protoOf($serializer_1115).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1115, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KAdditionalActSkin, 'KAdditionalActSkin', classMeta, VOID, VOID, KAdditionalActSkin, VOID, {0: $serializer_getInstance_1115}); + setMetadataFor(Companion_1129, 'Companion', objectMeta); + protoOf($serializer_1116).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1116, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KHighlightText, 'KHighlightText', classMeta, VOID, VOID, KHighlightText, VOID, {0: $serializer_getInstance_1116}); + setMetadataFor(Companion_1130, 'Companion', objectMeta); + protoOf($serializer_1117).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1117, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KAdditionArticle, 'KAdditionArticle', classMeta, VOID, VOID, KAdditionArticle, VOID, {0: $serializer_getInstance_1117}); + setMetadataFor(Companion_1131, 'Companion', objectMeta); + protoOf($serializer_1118).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1118, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KAdditionLiveRoom, 'KAdditionLiveRoom', classMeta, VOID, VOID, KAdditionLiveRoom, VOID, {0: $serializer_getInstance_1118}); + setMetadataFor(Companion_1132, 'Companion', objectMeta); + protoOf($serializer_1119).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1119, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KAdditionMusic, 'KAdditionMusic', classMeta, VOID, VOID, KAdditionMusic, VOID, {0: $serializer_getInstance_1119}); + setMetadataFor(Companion_1133, 'Companion', objectMeta); + protoOf($serializer_1120).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1120, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCoverIconWithText, 'KCoverIconWithText', classMeta, VOID, VOID, KCoverIconWithText, VOID, {0: $serializer_getInstance_1120}); + setMetadataFor(KItem_10, 'KItem', classMeta); + setMetadataFor(KAdditionVoteWord, 'KAdditionVoteWord', objectMeta); + setMetadataFor(KAdditionVotePic, 'KAdditionVotePic', objectMeta); + setMetadataFor(KAdditionVoteDefaule, 'KAdditionVoteDefaule', objectMeta); + setMetadataFor(Companion_1134, 'Companion', objectMeta); + protoOf($serializer_1121).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1121, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KAdditionVote2, 'KAdditionVote2', classMeta, VOID, VOID, KAdditionVote2, VOID, {0: $serializer_getInstance_1121}); + setMetadataFor(Companion_1135, 'Companion', objectMeta); + protoOf($serializer_1122).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1122, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KAdditionVoteWord_0, 'KAdditionVoteWord', classMeta, VOID, VOID, KAdditionVoteWord_0, VOID, {0: $serializer_getInstance_1122}); + setMetadataFor(Companion_1136, 'Companion', objectMeta); + protoOf($serializer_1123).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1123, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KAdditionVoteWordItem, 'KAdditionVoteWordItem', classMeta, VOID, VOID, KAdditionVoteWordItem, VOID, {0: $serializer_getInstance_1123}); + setMetadataFor(Companion_1137, 'Companion', objectMeta); + protoOf($serializer_1124).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1124, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KAdditionVotePic_0, 'KAdditionVotePic', classMeta, VOID, VOID, KAdditionVotePic_0, VOID, {0: $serializer_getInstance_1124}); + setMetadataFor(Companion_1138, 'Companion', objectMeta); + protoOf($serializer_1125).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1125, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KAdditionVotePicItem, 'KAdditionVotePicItem', classMeta, VOID, VOID, KAdditionVotePicItem, VOID, {0: $serializer_getInstance_1125}); + setMetadataFor(Companion_1139, 'Companion', objectMeta); + protoOf($serializer_1126).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1126, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KAdditionVoteDefaule_0, 'KAdditionVoteDefaule', classMeta, VOID, VOID, KAdditionVoteDefaule_0, VOID, {0: $serializer_getInstance_1126}); + setMetadataFor(Companion_1140, 'Companion', objectMeta); + protoOf($serializer_1127).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1127, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KOpusType, 'KOpusType', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_1140}); + setMetadataFor(Companion_1141, 'Companion', objectMeta); + protoOf($serializer_1128).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1128, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KFlowItemType, 'KFlowItemType', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_1141}); + setMetadataFor(Companion_1142, 'Companion', objectMeta); + protoOf($serializer_1129).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1129, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KOpusItem, 'KOpusItem', classMeta, VOID, VOID, KOpusItem, VOID, {0: $serializer_getInstance_1129}); + setMetadataFor(Companion_1143, 'Companion', objectMeta); + protoOf($serializer_1130).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1130, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KOpusFavItem, 'KOpusFavItem', classMeta, VOID, VOID, KOpusFavItem, VOID, {0: $serializer_getInstance_1130}); + setMetadataFor(KData_2, 'KData', classMeta); + setMetadataFor(KFlowItemOpus, 'KFlowItemOpus', objectMeta); + setMetadataFor(Companion_1144, 'Companion', objectMeta); + protoOf($serializer_1131).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1131, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KOpusFlowItem, 'KOpusFlowItem', classMeta, VOID, VOID, KOpusFlowItem, VOID, {0: $serializer_getInstance_1131}); + setMetadataFor(Companion_1145, 'Companion', objectMeta); + protoOf($serializer_1132).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1132, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KFlowItemOpus_0, 'KFlowItemOpus', classMeta, VOID, VOID, KFlowItemOpus_0, VOID, {0: $serializer_getInstance_1132}); + setMetadataFor(Companion_1146, 'Companion', objectMeta); + protoOf($serializer_1133).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1133, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSectionOpusCollection, 'KSectionOpusCollection', classMeta, VOID, VOID, KSectionOpusCollection, VOID, {0: $serializer_getInstance_1133}); + setMetadataFor(Companion_1147, 'Companion', objectMeta); + protoOf($serializer_1134).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1134, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KOpusCollectionWithCover, 'KOpusCollectionWithCover', classMeta, VOID, VOID, KOpusCollectionWithCover, VOID, {0: $serializer_getInstance_1134}); + setMetadataFor(Companion_1148, 'Companion', objectMeta); + protoOf($serializer_1135).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1135, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSectionNoteNavigationBar, 'KSectionNoteNavigationBar', classMeta, VOID, VOID, KSectionNoteNavigationBar, VOID, {0: $serializer_getInstance_1135}); + setMetadataFor(Companion_1149, 'Companion', objectMeta); + protoOf($serializer_1136).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1136, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KModuleCopyright_0, 'KModuleCopyright', classMeta, VOID, VOID, KModuleCopyright_0, VOID, {0: $serializer_getInstance_1136}); + setMetadataFor(Companion_1150, 'Companion', objectMeta); + protoOf($serializer_1137).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1137, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KModuleParagraph_0, 'KModuleParagraph', classMeta, VOID, VOID, KModuleParagraph_0, VOID, {0: $serializer_getInstance_1137}); + setMetadataFor(Companion_1151, 'Companion', objectMeta); + protoOf($serializer_1138).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1138, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KParaSpacing, 'KParaSpacing', classMeta, VOID, VOID, KParaSpacing, VOID, {0: $serializer_getInstance_1138}); + setMetadataFor(Companion_1152, 'Companion', objectMeta); + protoOf($serializer_1139).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1139, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KOneLineText, 'KOneLineText', classMeta, VOID, VOID, KOneLineText, VOID, {0: $serializer_getInstance_1139}); + setMetadataFor(Companion_1153, 'Companion', objectMeta); + protoOf($serializer_1140).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1140, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KTextWithPriority, 'KTextWithPriority', classMeta, VOID, VOID, KTextWithPriority, VOID, {0: $serializer_getInstance_1140}); + setMetadataFor(Companion_1154, 'Companion', objectMeta); + protoOf($serializer_1141).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1141, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KModuleOpusCollection_0, 'KModuleOpusCollection', classMeta, VOID, VOID, KModuleOpusCollection_0, VOID, {0: $serializer_getInstance_1141}); + setMetadataFor(Companion_1155, 'Companion', objectMeta); + protoOf($serializer_1142).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1142, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KOpusCollection, 'KOpusCollection', classMeta, VOID, VOID, KOpusCollection, VOID, {0: $serializer_getInstance_1142}); + setMetadataFor(Companion_1156, 'Companion', objectMeta); + protoOf($serializer_1143).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1143, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KOpusCollectionItem, 'KOpusCollectionItem', classMeta, VOID, VOID, KOpusCollectionItem, VOID, {0: $serializer_getInstance_1143}); + setMetadataFor(Companion_1157, 'Companion', objectMeta); + protoOf($serializer_1144).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1144, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KOpusDetailReq, 'KOpusDetailReq', classMeta, VOID, VOID, KOpusDetailReq, VOID, {0: $serializer_getInstance_1144}); + setMetadataFor(Companion_1158, 'Companion', objectMeta); + protoOf($serializer_1145).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1145, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KOpusDetailResp, 'KOpusDetailResp', classMeta, VOID, VOID, KOpusDetailResp, VOID, {0: $serializer_getInstance_1145}); + setMetadataFor(Companion_1159, 'Companion', objectMeta); + protoOf($serializer_1146).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1146, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KListFavReq, 'KListFavReq', classMeta, VOID, VOID, KListFavReq, VOID, {0: $serializer_getInstance_1146}); + setMetadataFor(Companion_1160, 'Companion', objectMeta); + protoOf($serializer_1147).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1147, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KListFavResp, 'KListFavResp', classMeta, VOID, VOID, KListFavResp, VOID, {0: $serializer_getInstance_1147}); + setMetadataFor(Companion_1161, 'Companion', objectMeta); + protoOf($serializer_1148).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1148, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KOpusSpaceFlowReq, 'KOpusSpaceFlowReq', classMeta, VOID, VOID, KOpusSpaceFlowReq, VOID, {0: $serializer_getInstance_1148}); + setMetadataFor(Companion_1162, 'Companion', objectMeta); + protoOf($serializer_1149).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1149, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KOpusSpaceFlowResp, 'KOpusSpaceFlowResp', classMeta, VOID, VOID, KOpusSpaceFlowResp, VOID, {0: $serializer_getInstance_1149}); + setMetadataFor(Companion_1163, 'Companion', objectMeta); + protoOf($serializer_1150).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1150, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KLinkNodeType, 'KLinkNodeType', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_1163}); + setMetadataFor(Companion_1164, 'Companion', objectMeta); + protoOf($serializer_1151).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1151, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(Companion_1165, 'Companion', objectMeta); + protoOf($serializer_1152).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1152, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(Companion_1166, 'Companion', objectMeta); + protoOf($serializer_1153).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1153, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(Companion_1167, 'Companion', objectMeta); + protoOf($serializer_1154).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1154, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KContent_1, 'KContent', classMeta); + setMetadataFor(KText_0, 'KText', objectMeta); + setMetadataFor(KPic, 'KPic', objectMeta); + setMetadataFor(KLine, 'KLine', objectMeta); + setMetadataFor(KLinkCard, 'KLinkCard', objectMeta); + setMetadataFor(KCode, 'KCode', objectMeta); + setMetadataFor(Companion_1168, 'Companion', objectMeta); + setMetadataFor(KParagraphType, 'KParagraphType', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_1164}); + setMetadataFor(KParagraphAlign, 'KParagraphAlign', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_1165}); + setMetadataFor(KListFormat, 'KListFormat', classMeta, VOID, VOID, KListFormat, VOID, {0: $serializer_getInstance_1153}); + setMetadataFor(KParagraphFormat, 'KParagraphFormat', classMeta, VOID, VOID, KParagraphFormat, VOID, {0: $serializer_getInstance_1154}); + protoOf($serializer_1155).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1155, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KParagraph, 'KParagraph', classMeta, VOID, VOID, KParagraph, VOID, {0: $serializer_getInstance_1155}); + setMetadataFor(Companion_1169, 'Companion', objectMeta); + protoOf($serializer_1156).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1156, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KPicParagraphStyle, 'KPicParagraphStyle', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_1169}); + setMetadataFor(Companion_1170, 'Companion', objectMeta); + protoOf($serializer_1157).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1157, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KPicParagraph, 'KPicParagraph', classMeta, VOID, VOID, KPicParagraph, VOID, {0: $serializer_getInstance_1157}); + setMetadataFor(Companion_1171, 'Companion', objectMeta); + protoOf($serializer_1158).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1158, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KLineParagraph, 'KLineParagraph', classMeta, VOID, VOID, KLineParagraph, VOID, {0: $serializer_getInstance_1158}); + setMetadataFor(Companion_1172, 'Companion', objectMeta); + protoOf($serializer_1159).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1159, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KTextParagraph, 'KTextParagraph', classMeta, VOID, VOID, KTextParagraph, VOID, {0: $serializer_getInstance_1159}); + setMetadataFor(Companion_1173, 'Companion', objectMeta); + protoOf($serializer_1160).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1160, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KText_1, 'KText', classMeta); + setMetadataFor(KWord, 'KWord', objectMeta); + setMetadataFor(KEmote, 'KEmote', objectMeta); + setMetadataFor(KLink, 'KLink', objectMeta); + setMetadataFor(KFormula, 'KFormula', objectMeta); + setMetadataFor(Companion_1174, 'Companion', objectMeta); + setMetadataFor(KTextNodeType, 'KTextNodeType', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_1173}); + protoOf($serializer_1161).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1161, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KTextNode, 'KTextNode', classMeta, VOID, VOID, KTextNode, VOID, {0: $serializer_getInstance_1161}); + setMetadataFor(Companion_1175, 'Companion', objectMeta); + protoOf($serializer_1162).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1162, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KWordNodeStyle, 'KWordNodeStyle', classMeta, VOID, VOID, KWordNodeStyle, VOID, {0: $serializer_getInstance_1162}); + setMetadataFor(Companion_1176, 'Companion', objectMeta); + protoOf($serializer_1163).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1163, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KWordNode, 'KWordNode', classMeta, VOID, VOID, KWordNode, VOID, {0: $serializer_getInstance_1163}); + setMetadataFor(Companion_1177, 'Companion', objectMeta); + protoOf($serializer_1164).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1164, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KEmoteNode, 'KEmoteNode', classMeta, VOID, VOID, KEmoteNode, VOID, {0: $serializer_getInstance_1164}); + setMetadataFor(Companion_1178, 'Companion', objectMeta); + protoOf($serializer_1165).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1165, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KImgInlineCfg, 'KImgInlineCfg', classMeta, VOID, VOID, KImgInlineCfg, VOID, {0: $serializer_getInstance_1165}); + setMetadataFor(Companion_1179, 'Companion', objectMeta); + protoOf($serializer_1166).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1166, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KColors, 'KColors', classMeta, VOID, VOID, KColors, VOID, {0: $serializer_getInstance_1166}); + setMetadataFor(Companion_1180, 'Companion', objectMeta); + protoOf($serializer_1167).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1167, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KEmoteSize, 'KEmoteSize', classMeta, VOID, VOID, KEmoteSize, VOID, {0: $serializer_getInstance_1167}); + setMetadataFor(Companion_1181, 'Companion', objectMeta); + protoOf($serializer_1168).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1168, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KLinkNode, 'KLinkNode', classMeta, VOID, VOID, KLinkNode, VOID, {0: $serializer_getInstance_1168}); + setMetadataFor(Companion_1182, 'Companion', objectMeta); + protoOf($serializer_1169).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1169, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KNoteVideoTS, 'KNoteVideoTS', classMeta, VOID, VOID, KNoteVideoTS, VOID, {0: $serializer_getInstance_1169}); + setMetadataFor(Companion_1183, 'Companion', objectMeta); + protoOf($serializer_1170).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1170, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KFormulaNode, 'KFormulaNode', classMeta, VOID, VOID, KFormulaNode, VOID, {0: $serializer_getInstance_1170}); + setMetadataFor(Companion_1184, 'Companion', objectMeta); + protoOf($serializer_1171).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1171, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCardParagraph, 'KCardParagraph', classMeta, VOID, VOID, KCardParagraph, VOID, {0: $serializer_getInstance_1171}); + setMetadataFor(Companion_1185, 'Companion', objectMeta); + protoOf($serializer_1172).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1172, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCodeParagraph, 'KCodeParagraph', classMeta, VOID, VOID, KCodeParagraph, VOID, {0: $serializer_getInstance_1172}); + setMetadataFor(Companion_1186, 'Companion', objectMeta); + protoOf($serializer_1173).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1173, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KHistorySource, 'KHistorySource', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_1186}); + setMetadataFor(Companion_1187, 'Companion', objectMeta); + protoOf($serializer_1174).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1174, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KDT, 'KDT', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_1187}); + setMetadataFor(Companion_1188, 'Companion', objectMeta); + protoOf($serializer_1175).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1175, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KHistoryTabReq, 'KHistoryTabReq', classMeta, VOID, VOID, KHistoryTabReq, VOID, {0: $serializer_getInstance_1175}); + setMetadataFor(Companion_1189, 'Companion', objectMeta); + protoOf($serializer_1176).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1176, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KHistoryTabReply, 'KHistoryTabReply', classMeta, VOID, VOID, KHistoryTabReply, VOID, {0: $serializer_getInstance_1176}); + setMetadataFor(Companion_1190, 'Companion', objectMeta); + protoOf($serializer_1177).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1177, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCursorReq, 'KCursorReq', classMeta, VOID, VOID, KCursorReq, VOID, {0: $serializer_getInstance_1177}); + setMetadataFor(Companion_1191, 'Companion', objectMeta); + protoOf($serializer_1178).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1178, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCursorReply, 'KCursorReply', classMeta, VOID, VOID, KCursorReply, VOID, {0: $serializer_getInstance_1178}); + setMetadataFor(Companion_1192, 'Companion', objectMeta); + protoOf($serializer_1179).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1179, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCursorV2Req, 'KCursorV2Req', classMeta, VOID, VOID, KCursorV2Req, VOID, {0: $serializer_getInstance_1179}); + setMetadataFor(Companion_1193, 'Companion', objectMeta); + protoOf($serializer_1180).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1180, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCursorV2Reply, 'KCursorV2Reply', classMeta, VOID, VOID, KCursorV2Reply, VOID, {0: $serializer_getInstance_1180}); + setMetadataFor(KCardItem_0, 'KCardItem', classMeta); + setMetadataFor(KCardUgc, 'KCardUgc', objectMeta); + setMetadataFor(KCardOgv, 'KCardOgv', objectMeta); + setMetadataFor(KCardArticle, 'KCardArticle', objectMeta); + setMetadataFor(KCardLive, 'KCardLive', objectMeta); + setMetadataFor(KCardCheese, 'KCardCheese', objectMeta); + setMetadataFor(Companion_1194, 'Companion', objectMeta); + protoOf($serializer_1181).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1181, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCursorItem, 'KCursorItem', classMeta, VOID, VOID, KCursorItem, VOID, {0: $serializer_getInstance_1181}); + setMetadataFor(Companion_1195, 'Companion', objectMeta); + protoOf($serializer_1182).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1182, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCardUGC, 'KCardUGC', classMeta, VOID, VOID, KCardUGC, VOID, {0: $serializer_getInstance_1182}); + setMetadataFor(Companion_1196, 'Companion', objectMeta); + protoOf($serializer_1183).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1183, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCardOGV, 'KCardOGV', classMeta, VOID, VOID, KCardOGV, VOID, {0: $serializer_getInstance_1183}); + setMetadataFor(Companion_1197, 'Companion', objectMeta); + protoOf($serializer_1184).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1184, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCardArticle_0, 'KCardArticle', classMeta, VOID, VOID, KCardArticle_0, VOID, {0: $serializer_getInstance_1184}); + setMetadataFor(Companion_1198, 'Companion', objectMeta); + protoOf($serializer_1185).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1185, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCardLive_0, 'KCardLive', classMeta, VOID, VOID, KCardLive_0, VOID, {0: $serializer_getInstance_1185}); + setMetadataFor(Companion_1199, 'Companion', objectMeta); + protoOf($serializer_1186).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1186, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCardCheese_0, 'KCardCheese', classMeta, VOID, VOID, KCardCheese_0, VOID, {0: $serializer_getInstance_1186}); + setMetadataFor(Companion_1200, 'Companion', objectMeta); + protoOf($serializer_1187).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1187, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCursorTab, 'KCursorTab', classMeta, VOID, VOID, KCursorTab, VOID, {0: $serializer_getInstance_1187}); + setMetadataFor(Companion_1201, 'Companion', objectMeta); + protoOf($serializer_1188).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1188, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCursor, 'KCursor', classMeta, VOID, VOID, KCursor, VOID, {0: $serializer_getInstance_1188}); + setMetadataFor(Companion_1202, 'Companion', objectMeta); + protoOf($serializer_1189).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1189, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KDeleteReq, 'KDeleteReq', classMeta, VOID, VOID, KDeleteReq, VOID, {0: $serializer_getInstance_1189}); + setMetadataFor(Companion_1203, 'Companion', objectMeta); + protoOf($serializer_1190).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1190, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KHisInfo, 'KHisInfo', classMeta, VOID, VOID, KHisInfo, VOID, {0: $serializer_getInstance_1190}); + setMetadataFor(Companion_1204, 'Companion', objectMeta); + protoOf($serializer_1191).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1191, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KNoReply_0, 'KNoReply', classMeta, VOID, VOID, KNoReply_0, VOID, {0: $serializer_getInstance_1191}); + setMetadataFor(Companion_1205, 'Companion', objectMeta); + protoOf($serializer_1192).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1192, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KDeviceType, 'KDeviceType', classMeta, VOID, VOID, KDeviceType, VOID, {0: $serializer_getInstance_1192}); + setMetadataFor(Companion_1206, 'Companion', objectMeta); + protoOf($serializer_1193).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1193, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KRelation_2, 'KRelation', classMeta, VOID, VOID, KRelation_2, VOID, {0: $serializer_getInstance_1193}); + setMetadataFor(Companion_1207, 'Companion', objectMeta); + protoOf($serializer_1194).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1194, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSearchReq, 'KSearchReq', classMeta, VOID, VOID, KSearchReq, VOID, {0: $serializer_getInstance_1194}); + setMetadataFor(Companion_1208, 'Companion', objectMeta); + protoOf($serializer_1195).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1195, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSearchReply, 'KSearchReply', classMeta, VOID, VOID, KSearchReply, VOID, {0: $serializer_getInstance_1195}); + setMetadataFor(Companion_1209, 'Companion', objectMeta); + protoOf($serializer_1196).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1196, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KPage_1, 'KPage', classMeta, VOID, VOID, KPage_1, VOID, {0: $serializer_getInstance_1196}); + setMetadataFor(Companion_1210, 'Companion', objectMeta); + protoOf($serializer_1197).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1197, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KPlayerPreloadParams, 'KPlayerPreloadParams', classMeta, VOID, VOID, KPlayerPreloadParams, VOID, {0: $serializer_getInstance_1197}); + setMetadataFor(Companion_1211, 'Companion', objectMeta); + protoOf($serializer_1198).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1198, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KClearReq, 'KClearReq', classMeta, VOID, VOID, KClearReq, VOID, {0: $serializer_getInstance_1198}); + setMetadataFor(Companion_1212, 'Companion', objectMeta); + protoOf($serializer_1199).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1199, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KLatestHistoryReq, 'KLatestHistoryReq', classMeta, VOID, VOID, KLatestHistoryReq, VOID, {0: $serializer_getInstance_1199}); + setMetadataFor(Companion_1213, 'Companion', objectMeta); + protoOf($serializer_1200).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1200, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KLatestHistoryReply, 'KLatestHistoryReply', classMeta, VOID, VOID, KLatestHistoryReply, VOID, {0: $serializer_getInstance_1200}); + setMetadataFor(Companion_1214, 'Companion', objectMeta); + protoOf($serializer_1201).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1201, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCommentType, 'KCommentType', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_1214}); + setMetadataFor(Companion_1215, 'Companion', objectMeta); + protoOf($serializer_1202).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1202, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KButType, 'KButType', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_1215}); + setMetadataFor(Companion_1216, 'Companion', objectMeta); + protoOf($serializer_1203).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1203, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KTabType_0, 'KTabType', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_1216}); + setMetadataFor(Companion_1217, 'Companion', objectMeta); + protoOf($serializer_1204).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1204, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KMediaCommentReq, 'KMediaCommentReq', classMeta, VOID, VOID, KMediaCommentReq, VOID, {0: $serializer_getInstance_1204}); + setMetadataFor(Companion_1218, 'Companion', objectMeta); + protoOf($serializer_1205).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1205, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KMediaCommentReply, 'KMediaCommentReply', classMeta, VOID, VOID, KMediaCommentReply, VOID, {0: $serializer_getInstance_1205}); + setMetadataFor(Companion_1219, 'Companion', objectMeta); + protoOf($serializer_1206).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1206, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCommentItem, 'KCommentItem', classMeta, VOID, VOID, KCommentItem, VOID, {0: $serializer_getInstance_1206}); + setMetadataFor(Companion_1220, 'Companion', objectMeta); + protoOf($serializer_1207).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1207, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KMediaRelationReq, 'KMediaRelationReq', classMeta, VOID, VOID, KMediaRelationReq, VOID, {0: $serializer_getInstance_1207}); + setMetadataFor(Companion_1221, 'Companion', objectMeta); + protoOf($serializer_1208).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1208, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KMediaRelationReply, 'KMediaRelationReply', classMeta, VOID, VOID, KMediaRelationReply, VOID, {0: $serializer_getInstance_1208}); + setMetadataFor(Companion_1222, 'Companion', objectMeta); + protoOf($serializer_1209).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1209, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KMediaFollowReq, 'KMediaFollowReq', classMeta, VOID, VOID, KMediaFollowReq, VOID, {0: $serializer_getInstance_1209}); + setMetadataFor(Companion_1223, 'Companion', objectMeta); + protoOf($serializer_1210).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1210, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KMediaFollowReply, 'KMediaFollowReply', classMeta, VOID, VOID, KMediaFollowReply, VOID, {0: $serializer_getInstance_1210}); + setMetadataFor(Companion_1224, 'Companion', objectMeta); + protoOf($serializer_1211).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1211, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KMediaVideoReq, 'KMediaVideoReq', classMeta, VOID, VOID, KMediaVideoReq, VOID, {0: $serializer_getInstance_1211}); + setMetadataFor(Companion_1225, 'Companion', objectMeta); + protoOf($serializer_1212).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1212, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KMediaVideoReply, 'KMediaVideoReply', classMeta, VOID, VOID, KMediaVideoReply, VOID, {0: $serializer_getInstance_1212}); + setMetadataFor(Companion_1226, 'Companion', objectMeta); + protoOf($serializer_1213).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1213, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSmallItem, 'KSmallItem', classMeta, VOID, VOID, KSmallItem, VOID, {0: $serializer_getInstance_1213}); + setMetadataFor(Companion_1227, 'Companion', objectMeta); + protoOf($serializer_1214).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1214, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KBigItem, 'KBigItem', classMeta, VOID, VOID, KBigItem, VOID, {0: $serializer_getInstance_1214}); + setMetadataFor(Companion_1228, 'Companion', objectMeta); + protoOf($serializer_1215).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1215, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KLikeButton_0, 'KLikeButton', classMeta, VOID, VOID, KLikeButton_0, VOID, {0: $serializer_getInstance_1215}); + setMetadataFor(Companion_1229, 'Companion', objectMeta); + protoOf($serializer_1216).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1216, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KLikeButtonResource, 'KLikeButtonResource', classMeta, VOID, VOID, KLikeButtonResource, VOID, {0: $serializer_getInstance_1216}); + setMetadataFor(Companion_1230, 'Companion', objectMeta); + protoOf($serializer_1217).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1217, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KLikeCard, 'KLikeCard', classMeta, VOID, VOID, KLikeCard, VOID, {0: $serializer_getInstance_1217}); + setMetadataFor(Companion_1231, 'Companion', objectMeta); + protoOf($serializer_1218).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1218, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KUserCard, 'KUserCard', classMeta, VOID, VOID, KUserCard, VOID, {0: $serializer_getInstance_1218}); + setMetadataFor(Companion_1232, 'Companion', objectMeta); + protoOf($serializer_1219).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1219, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KMediaDetailReq, 'KMediaDetailReq', classMeta, VOID, VOID, KMediaDetailReq, VOID, {0: $serializer_getInstance_1219}); + setMetadataFor(Companion_1233, 'Companion', objectMeta); + protoOf($serializer_1220).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1220, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KOverview, 'KOverview', classMeta, VOID, VOID, KOverview, VOID, {0: $serializer_getInstance_1220}); + setMetadataFor(Companion_1234, 'Companion', objectMeta); + protoOf($serializer_1221).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1221, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KStaff_0, 'KStaff', classMeta, VOID, VOID, KStaff_0, VOID, {0: $serializer_getInstance_1221}); + setMetadataFor(Companion_1235, 'Companion', objectMeta); + protoOf($serializer_1222).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1222, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KMediaDetailReply, 'KMediaDetailReply', classMeta, VOID, VOID, KMediaDetailReply, VOID, {0: $serializer_getInstance_1222}); + setMetadataFor(Companion_1236, 'Companion', objectMeta); + protoOf($serializer_1223).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1223, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCast, 'KCast', classMeta, VOID, VOID, KCast, VOID, {0: $serializer_getInstance_1223}); + setMetadataFor(Companion_1237, 'Companion', objectMeta); + protoOf($serializer_1224).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1224, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KMediaPerson, 'KMediaPerson', classMeta, VOID, VOID, KMediaPerson, VOID, {0: $serializer_getInstance_1224}); + setMetadataFor(Companion_1238, 'Companion', objectMeta); + protoOf($serializer_1225).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1225, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KArgsEntry, 'KArgsEntry', classMeta, VOID, VOID, KArgsEntry, VOID, {0: $serializer_getInstance_1225}); + setMetadataFor(Companion_1239, 'Companion', objectMeta); + protoOf($serializer_1226).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1226, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KMediaTabReq, 'KMediaTabReq', classMeta, VOID, VOID, KMediaTabReq, VOID, {0: $serializer_getInstance_1226}); + setMetadataFor(Companion_1240, 'Companion', objectMeta); + protoOf($serializer_1227).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1227, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KMediaCard, 'KMediaCard', classMeta, VOID, VOID, KMediaCard, VOID, {0: $serializer_getInstance_1227}); + setMetadataFor(Companion_1241, 'Companion', objectMeta); + protoOf($serializer_1228).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1228, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KScores, 'KScores', classMeta, VOID, VOID, KScores, VOID, {0: $serializer_getInstance_1228}); + setMetadataFor(Companion_1242, 'Companion', objectMeta); + protoOf($serializer_1229).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1229, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSupernatant, 'KSupernatant', classMeta, VOID, VOID, KSupernatant, VOID, {0: $serializer_getInstance_1229}); + setMetadataFor(Companion_1243, 'Companion', objectMeta); + protoOf($serializer_1230).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1230, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KButton_5, 'KButton', classMeta, VOID, VOID, KButton_5, VOID, {0: $serializer_getInstance_1230}); + setMetadataFor(Companion_1244, 'Companion', objectMeta); + protoOf($serializer_1231).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1231, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KShowTab, 'KShowTab', classMeta, VOID, VOID, KShowTab, VOID, {0: $serializer_getInstance_1231}); + setMetadataFor(Companion_1245, 'Companion', objectMeta); + protoOf($serializer_1232).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1232, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KMediaTabReply, 'KMediaTabReply', classMeta, VOID, VOID, KMediaTabReply, VOID, {0: $serializer_getInstance_1232}); + setMetadataFor(Companion_1246, 'Companion', objectMeta); + protoOf($serializer_1233).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1233, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KChannelInfo_0, 'KChannelInfo', classMeta, VOID, VOID, KChannelInfo_0, VOID, {0: $serializer_getInstance_1233}); + setMetadataFor(Companion_1247, 'Companion', objectMeta); + protoOf($serializer_1234).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1234, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KDefaultWordsReq, 'KDefaultWordsReq', classMeta, VOID, VOID, KDefaultWordsReq, VOID, {0: $serializer_getInstance_1234}); + setMetadataFor(Companion_1248, 'Companion', objectMeta); + protoOf($serializer_1235).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1235, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KDefaultWordsReply, 'KDefaultWordsReply', classMeta, VOID, VOID, KDefaultWordsReply, VOID, {0: $serializer_getInstance_1235}); + setMetadataFor(Companion_1249, 'Companion', objectMeta); + protoOf($serializer_1236).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1236, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSuggestionResult3Req, 'KSuggestionResult3Req', classMeta, VOID, VOID, KSuggestionResult3Req, VOID, {0: $serializer_getInstance_1236}); + setMetadataFor(Companion_1250, 'Companion', objectMeta); + protoOf($serializer_1237).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1237, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSuggestionResult3Reply, 'KSuggestionResult3Reply', classMeta, VOID, VOID, KSuggestionResult3Reply, VOID, {0: $serializer_getInstance_1237}); + setMetadataFor(Companion_1251, 'Companion', objectMeta); + protoOf($serializer_1238).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1238, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KResultItem, 'KResultItem', classMeta, VOID, VOID, KResultItem, VOID, {0: $serializer_getInstance_1238}); + setMetadataFor(Companion_1252, 'Companion', objectMeta); + protoOf($serializer_1239).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1239, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KNftFaceIcon_0, 'KNftFaceIcon', classMeta, VOID, VOID, KNftFaceIcon_0, VOID, {0: $serializer_getInstance_1239}); + setMetadataFor(Companion_1253, 'Companion', objectMeta); + protoOf($serializer_1240).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1240, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KOfficialVerify_2, 'KOfficialVerify', classMeta, VOID, VOID, KOfficialVerify_2, VOID, {0: $serializer_getInstance_1240}); + setMetadataFor(Companion_1254, 'Companion', objectMeta); + protoOf($serializer_1241).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1241, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KReasonStyle_1, 'KReasonStyle', classMeta, VOID, VOID, KReasonStyle_1, VOID, {0: $serializer_getInstance_1241}); + setMetadataFor(Companion_1255, 'Companion', objectMeta); + protoOf($serializer_1242).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1242, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KFrom, 'KFrom', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_1255}); + setMetadataFor(Companion_1256, 'Companion', objectMeta); + protoOf($serializer_1243).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1243, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSearchTabReq, 'KSearchTabReq', classMeta, VOID, VOID, KSearchTabReq, VOID, {0: $serializer_getInstance_1243}); + setMetadataFor(Companion_1257, 'Companion', objectMeta); + protoOf($serializer_1244).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1244, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSearchTabReply, 'KSearchTabReply', classMeta, VOID, VOID, KSearchTabReply, VOID, {0: $serializer_getInstance_1244}); + setMetadataFor(Companion_1258, 'Companion', objectMeta); + protoOf($serializer_1245).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1245, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KTab_1, 'KTab', classMeta, VOID, VOID, KTab_1, VOID, {0: $serializer_getInstance_1245}); + setMetadataFor(Companion_1259, 'Companion', objectMeta); + protoOf($serializer_1246).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1246, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSearchArchiveReq, 'KSearchArchiveReq', classMeta, VOID, VOID, KSearchArchiveReq, VOID, {0: $serializer_getInstance_1246}); + setMetadataFor(Companion_1260, 'Companion', objectMeta); + protoOf($serializer_1247).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1247, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSearchArchiveReply, 'KSearchArchiveReply', classMeta, VOID, VOID, KSearchArchiveReply, VOID, {0: $serializer_getInstance_1247}); + setMetadataFor(Companion_1261, 'Companion', objectMeta); + protoOf($serializer_1248).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1248, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KArc_1, 'KArc', classMeta, VOID, VOID, KArc_1, VOID, {0: $serializer_getInstance_1248}); + setMetadataFor(Companion_1262, 'Companion', objectMeta); + protoOf($serializer_1249).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1249, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSearchDynamicReq, 'KSearchDynamicReq', classMeta, VOID, VOID, KSearchDynamicReq, VOID, {0: $serializer_getInstance_1249}); + setMetadataFor(Companion_1263, 'Companion', objectMeta); + protoOf($serializer_1250).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1250, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSearchDynamicReply, 'KSearchDynamicReply', classMeta, VOID, VOID, KSearchDynamicReply, VOID, {0: $serializer_getInstance_1250}); + setMetadataFor(Companion_1264, 'Companion', objectMeta); + protoOf($serializer_1251).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1251, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KDynamic_0, 'KDynamic', classMeta, VOID, VOID, KDynamic_0, VOID, {0: $serializer_getInstance_1251}); + setMetadataFor(Companion_1265, 'Companion', objectMeta); + protoOf($serializer_1252).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1252, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KPwdFrom, 'KPwdFrom', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_1265}); + setMetadataFor(Companion_1266, 'Companion', objectMeta); + protoOf($serializer_1253).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1253, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KModelStatus, 'KModelStatus', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_1266}); + setMetadataFor(Companion_1267, 'Companion', objectMeta); + protoOf($serializer_1254).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1254, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KFacialRecognitionVerifyFrom, 'KFacialRecognitionVerifyFrom', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_1267}); + setMetadataFor(Companion_1268, 'Companion', objectMeta); + protoOf($serializer_1255).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1255, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KModifyPwdReq, 'KModifyPwdReq', classMeta, VOID, VOID, KModifyPwdReq, VOID, {0: $serializer_getInstance_1255}); + setMetadataFor(Companion_1269, 'Companion', objectMeta); + protoOf($serializer_1256).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1256, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KModifyPwdReply, 'KModifyPwdReply', classMeta, VOID, VOID, KModifyPwdReply, VOID, {0: $serializer_getInstance_1256}); + setMetadataFor(Companion_1270, 'Companion', objectMeta); + protoOf($serializer_1257).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1257, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KVerifyPwdReq, 'KVerifyPwdReq', classMeta, VOID, VOID, KVerifyPwdReq, VOID, {0: $serializer_getInstance_1257}); + setMetadataFor(Companion_1271, 'Companion', objectMeta); + protoOf($serializer_1258).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1258, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KVerifyPwdReply, 'KVerifyPwdReply', classMeta, VOID, VOID, KVerifyPwdReply, VOID, {0: $serializer_getInstance_1258}); + setMetadataFor(Companion_1272, 'Companion', objectMeta); + protoOf($serializer_1259).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1259, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KUpdateStatusReq, 'KUpdateStatusReq', classMeta, VOID, VOID, KUpdateStatusReq, VOID, {0: $serializer_getInstance_1259}); + setMetadataFor(Companion_1273, 'Companion', objectMeta); + protoOf($serializer_1260).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1260, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KUpdateStatusReply, 'KUpdateStatusReply', classMeta, VOID, VOID, KUpdateStatusReply, VOID, {0: $serializer_getInstance_1260}); + setMetadataFor(Companion_1274, 'Companion', objectMeta); + protoOf($serializer_1261).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1261, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KModeStatusReq, 'KModeStatusReq', classMeta, VOID, VOID, KModeStatusReq, VOID, {0: $serializer_getInstance_1261}); + setMetadataFor(Companion_1275, 'Companion', objectMeta); + protoOf($serializer_1262).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1262, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KModeStatusReply, 'KModeStatusReply', classMeta, VOID, VOID, KModeStatusReply, VOID, {0: $serializer_getInstance_1262}); + setMetadataFor(Companion_1276, 'Companion', objectMeta); + protoOf($serializer_1263).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1263, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KPolicy, 'KPolicy', classMeta, VOID, VOID, KPolicy, VOID, {0: $serializer_getInstance_1263}); + setMetadataFor(Companion_1277, 'Companion', objectMeta); + protoOf($serializer_1264).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1264, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KUserModel, 'KUserModel', classMeta, VOID, VOID, KUserModel, VOID, {0: $serializer_getInstance_1264}); + setMetadataFor(Companion_1278, 'Companion', objectMeta); + protoOf($serializer_1265).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1265, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KFacialRecognitionVerifyReq, 'KFacialRecognitionVerifyReq', classMeta, VOID, VOID, KFacialRecognitionVerifyReq, VOID, {0: $serializer_getInstance_1265}); + setMetadataFor(Companion_1279, 'Companion', objectMeta); + protoOf($serializer_1266).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1266, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KFacialRecognitionVerifyReply, 'KFacialRecognitionVerifyReply', classMeta, VOID, VOID, KFacialRecognitionVerifyReply, VOID, {0: $serializer_getInstance_1266}); + setMetadataFor(Companion_1280, 'Companion', objectMeta); + protoOf($serializer_1267).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1267, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KDetailListScene, 'KDetailListScene', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_1280}); + setMetadataFor(Companion_1281, 'Companion', objectMeta); + protoOf($serializer_1268).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1268, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KMode, 'KMode', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_1281}); + setMetadataFor(Companion_1282, 'Companion', objectMeta); + protoOf($serializer_1269).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1269, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KEditorIconState, 'KEditorIconState', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_1282}); + setMetadataFor(Companion_1283, 'Companion', objectMeta); + protoOf($serializer_1270).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1270, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSearchItemType, 'KSearchItemType', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_1283}); + setMetadataFor(Companion_1284, 'Companion', objectMeta); + protoOf($serializer_1271).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1271, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSearchItemVideoSubType, 'KSearchItemVideoSubType', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_1284}); + setMetadataFor(Companion_1285, 'Companion', objectMeta); + protoOf($serializer_1272).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1272, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KUserCallbackAction, 'KUserCallbackAction', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_1285}); + setMetadataFor(Companion_1286, 'Companion', objectMeta); + protoOf($serializer_1273).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1273, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KUserCallbackScene, 'KUserCallbackScene', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_1286}); + setMetadataFor(Companion_1287, 'Companion', objectMeta); + protoOf($serializer_1274).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1274, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCM_0, 'KCM', classMeta, VOID, VOID, KCM_0, VOID, {0: $serializer_getInstance_1274}); + setMetadataFor(Companion_1288, 'Companion', objectMeta); + protoOf($serializer_1275).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1275, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KDialogListReq, 'KDialogListReq', classMeta, VOID, VOID, KDialogListReq, VOID, {0: $serializer_getInstance_1275}); + setMetadataFor(Companion_1289, 'Companion', objectMeta); + protoOf($serializer_1276).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1276, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KDialogListReply, 'KDialogListReply', classMeta, VOID, VOID, KDialogListReply, VOID, {0: $serializer_getInstance_1276}); + setMetadataFor(Companion_1290, 'Companion', objectMeta); + protoOf($serializer_1277).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1277, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KDetailListReq, 'KDetailListReq', classMeta, VOID, VOID, KDetailListReq, VOID, {0: $serializer_getInstance_1277}); + setMetadataFor(Companion_1291, 'Companion', objectMeta); + protoOf($serializer_1278).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1278, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KDetailListReply, 'KDetailListReply', classMeta, VOID, VOID, KDetailListReply, VOID, {0: $serializer_getInstance_1278}); + setMetadataFor(Companion_1292, 'Companion', objectMeta); + protoOf($serializer_1279).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1279, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KItem_11, 'KItem', classMeta, VOID, VOID, KItem_11, VOID, {0: $serializer_getInstance_1279}); + setMetadataFor(Companion_1293, 'Companion', objectMeta); + protoOf($serializer_1280).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1280, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KLikeInfo_0, 'KLikeInfo', classMeta, VOID, VOID, KLikeInfo_0, VOID, {0: $serializer_getInstance_1280}); + setMetadataFor(Companion_1294, 'Companion', objectMeta); + protoOf($serializer_1281).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1281, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KMainListReq, 'KMainListReq', classMeta, VOID, VOID, KMainListReq, VOID, {0: $serializer_getInstance_1281}); + setMetadataFor(Companion_1295, 'Companion', objectMeta); + protoOf($serializer_1282).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1282, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KPreviewListReq, 'KPreviewListReq', classMeta, VOID, VOID, KPreviewListReq, VOID, {0: $serializer_getInstance_1282}); + setMetadataFor(Companion_1296, 'Companion', objectMeta); + protoOf($serializer_1283).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1283, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KReplyExtra, 'KReplyExtra', classMeta, VOID, VOID, KReplyExtra, VOID, {0: $serializer_getInstance_1283}); + setMetadataFor(Companion_1297, 'Companion', objectMeta); + protoOf($serializer_1284).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1284, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KPreviewListReply, 'KPreviewListReply', classMeta, VOID, VOID, KPreviewListReply, VOID, {0: $serializer_getInstance_1284}); + setMetadataFor(Companion_1298, 'Companion', objectMeta); + protoOf($serializer_1285).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1285, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCallbacksEntry, 'KCallbacksEntry', classMeta, VOID, VOID, KCallbacksEntry, VOID, {0: $serializer_getInstance_1285}); + setMetadataFor(Companion_1299, 'Companion', objectMeta); + protoOf($serializer_1286).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1286, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KMainListReply, 'KMainListReply', classMeta, VOID, VOID, KMainListReply, VOID, {0: $serializer_getInstance_1286}); + setMetadataFor(Companion_1300, 'Companion', objectMeta); + protoOf($serializer_1287).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1287, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KEffects_0, 'KEffects', classMeta, VOID, VOID, KEffects_0, VOID, {0: $serializer_getInstance_1287}); + setMetadataFor(Companion_1301, 'Companion', objectMeta); + protoOf($serializer_1288).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1288, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KUpSelection, 'KUpSelection', classMeta, VOID, VOID, KUpSelection, VOID, {0: $serializer_getInstance_1288}); + setMetadataFor(Companion_1302, 'Companion', objectMeta); + protoOf($serializer_1289).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1289, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KNotice_0, 'KNotice', classMeta, VOID, VOID, KNotice_0, VOID, {0: $serializer_getInstance_1289}); + setMetadataFor(Companion_1303, 'Companion', objectMeta); + protoOf($serializer_1290).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1290, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KActivity_1, 'KActivity', classMeta, VOID, VOID, KActivity_1, VOID, {0: $serializer_getInstance_1290}); + setMetadataFor(Companion_1304, 'Companion', objectMeta); + protoOf($serializer_1291).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1291, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KLottery, 'KLottery', classMeta, VOID, VOID, KLottery, VOID, {0: $serializer_getInstance_1291}); + setMetadataFor(Companion_1305, 'Companion', objectMeta); + protoOf($serializer_1292).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1292, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCursorReq_0, 'KCursorReq', classMeta, VOID, VOID, KCursorReq_0, VOID, {0: $serializer_getInstance_1292}); + setMetadataFor(Companion_1306, 'Companion', objectMeta); + protoOf($serializer_1293).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1293, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KCursorReply_0, 'KCursorReply', classMeta, VOID, VOID, KCursorReply_0, VOID, {0: $serializer_getInstance_1293}); + setMetadataFor(Companion_1307, 'Companion', objectMeta); + protoOf($serializer_1294).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1294, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KFontStyle, 'KFontStyle', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_1307}); + setMetadataFor(Companion_1308, 'Companion', objectMeta); + protoOf($serializer_1295).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1295, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KTextStyle, 'KTextStyle', classMeta, VOID, VOID, KTextStyle, VOID, {0: $serializer_getInstance_1295}); + setMetadataFor(Companion_1309, 'Companion', objectMeta); + protoOf($serializer_1296).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1296, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(Companion_1310, 'Companion', objectMeta); + protoOf($serializer_1297).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1297, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(Companion_1311, 'Companion', objectMeta); + protoOf($serializer_1298).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1298, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KAction, 'KAction', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_1309}); + setMetadataFor(KText_2, 'KText', classMeta, VOID, VOID, KText_2, VOID, {0: $serializer_getInstance_1297}); + setMetadataFor(KButton_6, 'KButton', classMeta, VOID, VOID, KButton_6, VOID, {0: $serializer_getInstance_1298}); + setMetadataFor(Companion_1312, 'Companion', objectMeta); + protoOf($serializer_1299).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1299, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KEmptyPage, 'KEmptyPage', classMeta, VOID, VOID, KEmptyPage, VOID, {0: $serializer_getInstance_1299}); + setMetadataFor(Companion_1313, 'Companion', objectMeta); + protoOf($serializer_1300).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1300, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(Companion_1314, 'Companion', objectMeta); + protoOf($serializer_1301).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1301, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KFilterTag, 'KFilterTag', classMeta, VOID, VOID, KFilterTag, VOID, {0: $serializer_getInstance_1300}); + setMetadataFor(KCmTopReplyProtection, 'KCmTopReplyProtection', classMeta, VOID, VOID, KCmTopReplyProtection, VOID, {0: $serializer_getInstance_1301}); + setMetadataFor(Companion_1315, 'Companion', objectMeta); + protoOf($serializer_1302).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1302, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSubjectControl, 'KSubjectControl', classMeta, VOID, VOID, KSubjectControl, VOID, {0: $serializer_getInstance_1302}); + setMetadataFor(Companion_1316, 'Companion', objectMeta); + protoOf($serializer_1303).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1303, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KReplyInfo, 'KReplyInfo', classMeta, VOID, VOID, KReplyInfo, VOID, {0: $serializer_getInstance_1303}); + setMetadataFor(Companion_1317, 'Companion', objectMeta); + protoOf($serializer_1304).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1304, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KReplyTrackInfo, 'KReplyTrackInfo', classMeta, VOID, VOID, KReplyTrackInfo, VOID, {0: $serializer_getInstance_1304}); + setMetadataFor(Companion_1318, 'Companion', objectMeta); + protoOf($serializer_1305).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1305, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(Companion_1319, 'Companion', objectMeta); + protoOf($serializer_1306).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1306, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(Companion_1320, 'Companion', objectMeta); + protoOf($serializer_1307).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1307, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(Companion_1321, 'Companion', objectMeta); + protoOf($serializer_1308).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1308, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(Companion_1322, 'Companion', objectMeta); + protoOf($serializer_1309).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1309, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KMembersEntry, 'KMembersEntry', classMeta, VOID, VOID, KMembersEntry, VOID, {0: $serializer_getInstance_1305}); + setMetadataFor(KEmotesEntry, 'KEmotesEntry', classMeta, VOID, VOID, KEmotesEntry, VOID, {0: $serializer_getInstance_1306}); + setMetadataFor(KTopicsEntry, 'KTopicsEntry', classMeta, VOID, VOID, KTopicsEntry, VOID, {0: $serializer_getInstance_1307}); + setMetadataFor(KUrlsEntry, 'KUrlsEntry', classMeta, VOID, VOID, KUrlsEntry, VOID, {0: $serializer_getInstance_1308}); + setMetadataFor(KAtNameToMidEntry, 'KAtNameToMidEntry', classMeta, VOID, VOID, KAtNameToMidEntry, VOID, {0: $serializer_getInstance_1309}); + setMetadataFor(Companion_1323, 'Companion', objectMeta); + protoOf($serializer_1310).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1310, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KContent_2, 'KContent', classMeta, VOID, VOID, KContent_2, VOID, {0: $serializer_getInstance_1310}); + setMetadataFor(Companion_1324, 'Companion', objectMeta); + protoOf($serializer_1311).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1311, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KPicture, 'KPicture', classMeta, VOID, VOID, KPicture, VOID, {0: $serializer_getInstance_1311}); + setMetadataFor(Companion_1325, 'Companion', objectMeta); + protoOf($serializer_1312).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1312, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KRichTextNote, 'KRichTextNote', classMeta, VOID, VOID, KRichTextNote, VOID, {0: $serializer_getInstance_1312}); + setMetadataFor(KItem_12, 'KItem', classMeta); + setMetadataFor(KNote, 'KNote', objectMeta); + setMetadataFor(KOpus, 'KOpus', objectMeta); + setMetadataFor(Companion_1326, 'Companion', objectMeta); + protoOf($serializer_1313).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1313, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KRichText, 'KRichText', classMeta, VOID, VOID, KRichText, VOID, {0: $serializer_getInstance_1313}); + setMetadataFor(Companion_1327, 'Companion', objectMeta); + protoOf($serializer_1314).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1314, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KLabelKind, 'KLabelKind', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_1327}); + setMetadataFor(Companion_1328, 'Companion', objectMeta); + protoOf($serializer_1315).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1315, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(Companion_1329, 'Companion', objectMeta); + protoOf($serializer_1316).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1316, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KText_3, 'KText', classMeta, VOID, VOID, KText_3, VOID, {0: $serializer_getInstance_1316}); + setMetadataFor(Companion_1330, 'Companion', objectMeta); + protoOf($serializer_1317).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1317, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(Companion_1331, 'Companion', objectMeta); + protoOf($serializer_1318).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1318, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KVoteOption, 'KVoteOption', classMeta, VOID, VOID, KVoteOption, VOID, {0: $serializer_getInstance_1315}); + setMetadataFor(KGradeRecord, 'KGradeRecord', classMeta, VOID, VOID, KGradeRecord, VOID, {0: $serializer_getInstance_1317}); + setMetadataFor(KEasterEggLabel, 'KEasterEggLabel', classMeta, VOID, VOID, KEasterEggLabel, VOID, {0: $serializer_getInstance_1318}); + setMetadataFor(Companion_1332, 'Companion', objectMeta); + protoOf($serializer_1319).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1319, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KReplyControl, 'KReplyControl', classMeta, VOID, VOID, KReplyControl, VOID, {0: $serializer_getInstance_1319}); + setMetadataFor(Companion_1333, 'Companion', objectMeta); + protoOf($serializer_1320).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1320, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KType_2, 'KType', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_1333}); + setMetadataFor(Companion_1334, 'Companion', objectMeta); + protoOf($serializer_1321).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1321, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KReplyCardLabel, 'KReplyCardLabel', classMeta, VOID, VOID, KReplyCardLabel, VOID, {0: $serializer_getInstance_1321}); + setMetadataFor(Companion_1335, 'Companion', objectMeta); + protoOf($serializer_1322).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1322, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(Companion_1336, 'Companion', objectMeta); + protoOf($serializer_1323).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1323, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KGoodsShowType, 'KGoodsShowType', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_1336}); + setMetadataFor(Companion_1337, 'Companion', objectMeta); + protoOf($serializer_1324).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1324, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KIconPosition, 'KIconPosition', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_1335}); + setMetadataFor(KExtra, 'KExtra', classMeta, VOID, VOID, KExtra, VOID, {0: $serializer_getInstance_1324}); + setMetadataFor(Companion_1338, 'Companion', objectMeta); + protoOf($serializer_1325).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1325, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KUrl, 'KUrl', classMeta, VOID, VOID, KUrl, VOID, {0: $serializer_getInstance_1325}); + setMetadataFor(Companion_1339, 'Companion', objectMeta); + protoOf($serializer_1326).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1326, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KTopic, 'KTopic', classMeta, VOID, VOID, KTopic, VOID, {0: $serializer_getInstance_1326}); + setMetadataFor(Companion_1340, 'Companion', objectMeta); + protoOf($serializer_1327).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1327, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KEmote_0, 'KEmote', classMeta, VOID, VOID, KEmote_0, VOID, {0: $serializer_getInstance_1327}); + setMetadataFor(Companion_1341, 'Companion', objectMeta); + protoOf($serializer_1328).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1328, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KVote_0, 'KVote', classMeta, VOID, VOID, KVote_0, VOID, {0: $serializer_getInstance_1328}); + setMetadataFor(Companion_1342, 'Companion', objectMeta); + protoOf($serializer_1329).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1329, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(Companion_1343, 'Companion', objectMeta); + protoOf($serializer_1330).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1330, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(Companion_1344, 'Companion', objectMeta); + protoOf($serializer_1331).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1331, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(Companion_1345, 'Companion', objectMeta); + protoOf($serializer_1332).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1332, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(Companion_1346, 'Companion', objectMeta); + protoOf($serializer_1333).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1333, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(Companion_1347, 'Companion', objectMeta); + protoOf($serializer_1334).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1334, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(Companion_1348, 'Companion', objectMeta); + protoOf($serializer_1335).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1335, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(Companion_1349, 'Companion', objectMeta); + protoOf($serializer_1336).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1336, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KRegionType, 'KRegionType', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_1347}); + setMetadataFor(KShowStatus, 'KShowStatus', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_1348}); + setMetadataFor(KRegion, 'KRegion', classMeta, VOID, VOID, KRegion, VOID, {0: $serializer_getInstance_1336}); + setMetadataFor(Companion_1350, 'Companion', objectMeta); + protoOf($serializer_1337).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1337, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KInteraction_2, 'KInteraction', classMeta, VOID, VOID, KInteraction_2, VOID, {0: $serializer_getInstance_1337}); + setMetadataFor(Companion_1351, 'Companion', objectMeta); + protoOf($serializer_1338).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1338, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(Companion_1352, 'Companion', objectMeta); + protoOf($serializer_1339).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1339, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KStatus, 'KStatus', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_1352}); + setMetadataFor(Companion_1353, 'Companion', objectMeta); + protoOf($serializer_1340).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1340, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(Companion_1354, 'Companion', objectMeta); + protoOf($serializer_1341).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1341, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KBasic, 'KBasic', classMeta, VOID, VOID, KBasic, VOID, {0: $serializer_getInstance_1329}); + setMetadataFor(KOfficial, 'KOfficial', classMeta, VOID, VOID, KOfficial, VOID, {0: $serializer_getInstance_1330}); + setMetadataFor(KVip_0, 'KVip', classMeta, VOID, VOID, KVip_0, VOID, {0: $serializer_getInstance_1331}); + setMetadataFor(KGarb, 'KGarb', classMeta, VOID, VOID, KGarb, VOID, {0: $serializer_getInstance_1332}); + setMetadataFor(KMedal, 'KMedal', classMeta, VOID, VOID, KMedal, VOID, {0: $serializer_getInstance_1333}); + setMetadataFor(KNft, 'KNft', classMeta, VOID, VOID, KNft, VOID, {0: $serializer_getInstance_1338}); + setMetadataFor(KSenior, 'KSenior', classMeta, VOID, VOID, KSenior, VOID, {0: $serializer_getInstance_1340}); + setMetadataFor(KContractor, 'KContractor', classMeta, VOID, VOID, KContractor, VOID, {0: $serializer_getInstance_1341}); + setMetadataFor(Companion_1355, 'Companion', objectMeta); + protoOf($serializer_1342).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1342, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KMemberV2, 'KMemberV2', classMeta, VOID, VOID, KMemberV2, VOID, {0: $serializer_getInstance_1342}); + setMetadataFor(Companion_1356, 'Companion', objectMeta); + protoOf($serializer_1343).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1343, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(Companion_1357, 'Companion', objectMeta); + protoOf($serializer_1344).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1344, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(Companion_1358, 'Companion', objectMeta); + protoOf($serializer_1345).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1345, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KRegionType_0, 'KRegionType', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_1356}); + setMetadataFor(KShowStatus_0, 'KShowStatus', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_1357}); + setMetadataFor(KRegion_0, 'KRegion', classMeta, VOID, VOID, KRegion_0, VOID, {0: $serializer_getInstance_1345}); + setMetadataFor(Companion_1359, 'Companion', objectMeta); + protoOf($serializer_1346).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1346, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KNftInteraction, 'KNftInteraction', classMeta, VOID, VOID, KNftInteraction, VOID, {0: $serializer_getInstance_1346}); + setMetadataFor(Companion_1360, 'Companion', objectMeta); + protoOf($serializer_1347).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1347, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KMember, 'KMember', classMeta, VOID, VOID, KMember, VOID, {0: $serializer_getInstance_1347}); + setMetadataFor(Companion_1361, 'Companion', objectMeta); + protoOf($serializer_1348).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1348, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSearchItemPreHookReq, 'KSearchItemPreHookReq', classMeta, VOID, VOID, KSearchItemPreHookReq, VOID, {0: $serializer_getInstance_1348}); + setMetadataFor(Companion_1362, 'Companion', objectMeta); + protoOf($serializer_1349).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1349, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSearchItemPreHookReply, 'KSearchItemPreHookReply', classMeta, VOID, VOID, KSearchItemPreHookReply, VOID, {0: $serializer_getInstance_1349}); + setMetadataFor(Companion_1363, 'Companion', objectMeta); + protoOf($serializer_1350).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1350, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSearchItemReq, 'KSearchItemReq', classMeta, VOID, VOID, KSearchItemReq, VOID, {0: $serializer_getInstance_1350}); + setMetadataFor(Companion_1364, 'Companion', objectMeta); + protoOf($serializer_1351).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1351, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSearchItemReplyExtraInfo, 'KSearchItemReplyExtraInfo', classMeta, VOID, VOID, KSearchItemReplyExtraInfo, VOID, {0: $serializer_getInstance_1351}); + setMetadataFor(Companion_1365, 'Companion', objectMeta); + protoOf($serializer_1352).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1352, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSearchItemReply, 'KSearchItemReply', classMeta, VOID, VOID, KSearchItemReply, VOID, {0: $serializer_getInstance_1352}); + setMetadataFor(Companion_1366, 'Companion', objectMeta); + protoOf($serializer_1353).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1353, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSearchItemCursorReq, 'KSearchItemCursorReq', classMeta, VOID, VOID, KSearchItemCursorReq, VOID, {0: $serializer_getInstance_1353}); + setMetadataFor(Companion_1367, 'Companion', objectMeta); + protoOf($serializer_1354).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1354, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSearchItemCursorReply, 'KSearchItemCursorReply', classMeta, VOID, VOID, KSearchItemCursorReply, VOID, {0: $serializer_getInstance_1354}); + setMetadataFor(KItem_13, 'KItem', classMeta); + setMetadataFor(KGoods_0, 'KGoods', objectMeta); + setMetadataFor(KVideo_0, 'KVideo', objectMeta); + setMetadataFor(KArticle_1, 'KArticle', objectMeta); + setMetadataFor(Companion_1368, 'Companion', objectMeta); + protoOf($serializer_1355).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1355, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSearchItem, 'KSearchItem', classMeta, VOID, VOID, KSearchItem, VOID, {0: $serializer_getInstance_1355}); + setMetadataFor(Companion_1369, 'Companion', objectMeta); + protoOf($serializer_1356).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1356, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KGoodsSearchItem, 'KGoodsSearchItem', classMeta, VOID, VOID, KGoodsSearchItem, VOID, {0: $serializer_getInstance_1356}); + setMetadataFor(KVideoItem, 'KVideoItem', classMeta); + setMetadataFor(KUgc_0, 'KUgc', objectMeta); + setMetadataFor(KPgc_0, 'KPgc', objectMeta); + setMetadataFor(Companion_1370, 'Companion', objectMeta); + protoOf($serializer_1357).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1357, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KVideoSearchItem, 'KVideoSearchItem', classMeta, VOID, VOID, KVideoSearchItem, VOID, {0: $serializer_getInstance_1357}); + setMetadataFor(Companion_1371, 'Companion', objectMeta); + protoOf($serializer_1358).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1358, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KUGCVideoSearchItem, 'KUGCVideoSearchItem', classMeta, VOID, VOID, KUGCVideoSearchItem, VOID, {0: $serializer_getInstance_1358}); + setMetadataFor(Companion_1372, 'Companion', objectMeta); + protoOf($serializer_1359).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1359, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KPGCVideoSearchItem, 'KPGCVideoSearchItem', classMeta, VOID, VOID, KPGCVideoSearchItem, VOID, {0: $serializer_getInstance_1359}); + setMetadataFor(Companion_1373, 'Companion', objectMeta); + protoOf($serializer_1360).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1360, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KArticleSearchItem, 'KArticleSearchItem', classMeta, VOID, VOID, KArticleSearchItem, VOID, {0: $serializer_getInstance_1360}); + setMetadataFor(Companion_1374, 'Companion', objectMeta); + protoOf($serializer_1361).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1361, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KOperationTitle, 'KOperationTitle', classMeta, VOID, VOID, KOperationTitle, VOID, {0: $serializer_getInstance_1361}); + setMetadataFor(Companion_1375, 'Companion', objectMeta); + protoOf($serializer_1362).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1362, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KType_3, 'KType', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_1375}); + setMetadataFor(Companion_1376, 'Companion', objectMeta); + protoOf($serializer_1363).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1363, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KOperation, 'KOperation', classMeta, VOID, VOID, KOperation, VOID, {0: $serializer_getInstance_1363}); + setMetadataFor(Companion_1377, 'Companion', objectMeta); + protoOf($serializer_1364).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1364, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(Companion_1378, 'Companion', objectMeta); + protoOf($serializer_1365).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1365, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KPosition, 'KPosition', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_1378}); + setMetadataFor(Companion_1379, 'Companion', objectMeta); + protoOf($serializer_1366).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1366, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KType_4, 'KType', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_1377}); + setMetadataFor(KIcon, 'KIcon', classMeta, VOID, VOID, KIcon, VOID, {0: $serializer_getInstance_1366}); + setMetadataFor(Companion_1380, 'Companion', objectMeta); + protoOf($serializer_1367).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1367, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KOperationV2, 'KOperationV2', classMeta, VOID, VOID, KOperationV2, VOID, {0: $serializer_getInstance_1367}); + setMetadataFor(Companion_1381, 'Companion', objectMeta); + protoOf($serializer_1368).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1368, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KOption_1, 'KOption', classMeta, VOID, VOID, KOption_1, VOID, {0: $serializer_getInstance_1368}); + setMetadataFor(Companion_1382, 'Companion', objectMeta); + protoOf($serializer_1369).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1369, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KVoteCard, 'KVoteCard', classMeta, VOID, VOID, KVoteCard, VOID, {0: $serializer_getInstance_1369}); + setMetadataFor(Companion_1383, 'Companion', objectMeta); + protoOf($serializer_1370).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1370, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KESportsGradeCard, 'KESportsGradeCard', classMeta, VOID, VOID, KESportsGradeCard, VOID, {0: $serializer_getInstance_1370}); + setMetadataFor(Companion_1384, 'Companion', objectMeta); + protoOf($serializer_1371).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1371, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KAtSearchReq, 'KAtSearchReq', classMeta, VOID, VOID, KAtSearchReq, VOID, {0: $serializer_getInstance_1371}); + setMetadataFor(Companion_1385, 'Companion', objectMeta); + protoOf($serializer_1372).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1372, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KAtItem, 'KAtItem', classMeta, VOID, VOID, KAtItem, VOID, {0: $serializer_getInstance_1372}); + setMetadataFor(Companion_1386, 'Companion', objectMeta); + protoOf($serializer_1373).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1373, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KType_5, 'KType', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_1386}); + setMetadataFor(Companion_1387, 'Companion', objectMeta); + protoOf($serializer_1374).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1374, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KAtGroup, 'KAtGroup', classMeta, VOID, VOID, KAtGroup, VOID, {0: $serializer_getInstance_1374}); + setMetadataFor(Companion_1388, 'Companion', objectMeta); + protoOf($serializer_1375).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1375, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KAtSearchReply, 'KAtSearchReply', classMeta, VOID, VOID, KAtSearchReply, VOID, {0: $serializer_getInstance_1375}); + setMetadataFor(Companion_1389, 'Companion', objectMeta); + protoOf($serializer_1376).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1376, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KReplyInfoScene, 'KReplyInfoScene', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_1389}); + setMetadataFor(Companion_1390, 'Companion', objectMeta); + protoOf($serializer_1377).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1377, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KReplyInfoReq, 'KReplyInfoReq', classMeta, VOID, VOID, KReplyInfoReq, VOID, {0: $serializer_getInstance_1377}); + setMetadataFor(Companion_1391, 'Companion', objectMeta); + protoOf($serializer_1378).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1378, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KReplyInfoReply, 'KReplyInfoReply', classMeta, VOID, VOID, KReplyInfoReply, VOID, {0: $serializer_getInstance_1378}); + setMetadataFor(Companion_1392, 'Companion', objectMeta); + protoOf($serializer_1379).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1379, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KQoeInfo, 'KQoeInfo', classMeta, VOID, VOID, KQoeInfo, VOID, {0: $serializer_getInstance_1379}); + setMetadataFor(Companion_1393, 'Companion', objectMeta); + protoOf($serializer_1380).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1380, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KForm, 'KForm', classMeta, VOID, VOID, KForm, VOID, {0: $serializer_getInstance_1380}); + setMetadataFor(Companion_1394, 'Companion', objectMeta); + protoOf($serializer_1381).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1381, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KQoeOption, 'KQoeOption', classMeta, VOID, VOID, KQoeOption, VOID, {0: $serializer_getInstance_1381}); + setMetadataFor(Companion_1395, 'Companion', objectMeta); + protoOf($serializer_1382).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1382, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KQoeOptionDesc, 'KQoeOptionDesc', classMeta, VOID, VOID, KQoeOptionDesc, VOID, {0: $serializer_getInstance_1382}); + setMetadataFor(Companion_1396, 'Companion', objectMeta); + protoOf($serializer_1383).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1383, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KQoeScoreItem, 'KQoeScoreItem', classMeta, VOID, VOID, KQoeScoreItem, VOID, {0: $serializer_getInstance_1383}); + setMetadataFor(Companion_1397, 'Companion', objectMeta); + protoOf($serializer_1384).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1384, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KUserCallbackReq, 'KUserCallbackReq', classMeta, VOID, VOID, KUserCallbackReq, VOID, {0: $serializer_getInstance_1384}); + setMetadataFor(Companion_1398, 'Companion', objectMeta); + protoOf($serializer_1385).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1385, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KUserCallbackReply, 'KUserCallbackReply', classMeta, VOID, VOID, KUserCallbackReply, VOID, {0: $serializer_getInstance_1385}); + setMetadataFor(Companion_1399, 'Companion', objectMeta); + protoOf($serializer_1386).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1386, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KShareRepliesInfoReq, 'KShareRepliesInfoReq', classMeta, VOID, VOID, KShareRepliesInfoReq, VOID, {0: $serializer_getInstance_1386}); + setMetadataFor(Companion_1400, 'Companion', objectMeta); + protoOf($serializer_1387).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1387, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KShareExtra, 'KShareExtra', classMeta, VOID, VOID, KShareExtra, VOID, {0: $serializer_getInstance_1387}); + setMetadataFor(Companion_1401, 'Companion', objectMeta); + protoOf($serializer_1388).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1388, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KShareRepliesInfoResp, 'KShareRepliesInfoResp', classMeta, VOID, VOID, KShareRepliesInfoResp, VOID, {0: $serializer_getInstance_1388}); + setMetadataFor(Companion_1402, 'Companion', objectMeta); + protoOf($serializer_1389).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1389, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KShareReplyInfo, 'KShareReplyInfo', classMeta, VOID, VOID, KShareReplyInfo, VOID, {0: $serializer_getInstance_1389}); + setMetadataFor(Companion_1403, 'Companion', objectMeta); + protoOf($serializer_1390).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1390, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KShareReplyTopic, 'KShareReplyTopic', classMeta, VOID, VOID, KShareReplyTopic, VOID, {0: $serializer_getInstance_1390}); + setMetadataFor(Companion_1404, 'Companion', objectMeta); + protoOf($serializer_1391).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1391, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSuggestEmotesReq, 'KSuggestEmotesReq', classMeta, VOID, VOID, KSuggestEmotesReq, VOID, {0: $serializer_getInstance_1391}); + setMetadataFor(Companion_1405, 'Companion', objectMeta); + protoOf($serializer_1392).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1392, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSuggestEmotesResp, 'KSuggestEmotesResp', classMeta, VOID, VOID, KSuggestEmotesResp, VOID, {0: $serializer_getInstance_1392}); + setMetadataFor(Companion_1406, 'Companion', objectMeta); + protoOf($serializer_1393).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1393, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KDoVoteReq, 'KDoVoteReq', classMeta, VOID, VOID, KDoVoteReq, VOID, {0: $serializer_getInstance_1393}); + setMetadataFor(Companion_1407, 'Companion', objectMeta); + protoOf($serializer_1394).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1394, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KDoVoteResp, 'KDoVoteResp', classMeta, VOID, VOID, KDoVoteResp, VOID, {0: $serializer_getInstance_1394}); + setMetadataFor(Companion_1408, 'Companion', objectMeta); + protoOf($serializer_1395).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1395, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KShareReplyMaterialReq, 'KShareReplyMaterialReq', classMeta, VOID, VOID, KShareReplyMaterialReq, VOID, {0: $serializer_getInstance_1395}); + setMetadataFor(Companion_1409, 'Companion', objectMeta); + protoOf($serializer_1396).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1396, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(Companion_1410, 'Companion', objectMeta); + protoOf($serializer_1397).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1397, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(Companion_1411, 'Companion', objectMeta); + protoOf($serializer_1398).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1398, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KItem_14, 'KItem', classMeta); + setMetadataFor(KArchiveMaterial, 'KArchiveMaterial', objectMeta); + setMetadataFor(KDynamicMaterial, 'KDynamicMaterial', objectMeta); + setMetadataFor(KArticleMaterial, 'KArticleMaterial', objectMeta); + setMetadataFor(Companion_1412, 'Companion', objectMeta); + protoOf($serializer_1399).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1399, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(Companion_1413, 'Companion', objectMeta); + protoOf($serializer_1400).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1400, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KArchiveMaterial_0, 'KArchiveMaterial', classMeta, VOID, VOID, KArchiveMaterial_0, VOID, {0: $serializer_getInstance_1396}); + setMetadataFor(KDynamicMaterial_0, 'KDynamicMaterial', classMeta, VOID, VOID, KDynamicMaterial_0, VOID, {0: $serializer_getInstance_1397}); + setMetadataFor(KArticleMaterial_0, 'KArticleMaterial', classMeta, VOID, VOID, KArticleMaterial_0, VOID, {0: $serializer_getInstance_1398}); + setMetadataFor(KSubjectMaterial, 'KSubjectMaterial', classMeta, VOID, VOID, KSubjectMaterial, VOID, {0: $serializer_getInstance_1399}); + setMetadataFor(KExtraData, 'KExtraData', classMeta, VOID, VOID, KExtraData, VOID, {0: $serializer_getInstance_1400}); + setMetadataFor(Companion_1414, 'Companion', objectMeta); + protoOf($serializer_1401).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1401, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KShareReplyMaterialResp, 'KShareReplyMaterialResp', classMeta, VOID, VOID, KShareReplyMaterialResp, VOID, {0: $serializer_getInstance_1401}); + setMetadataFor(Companion_1415, 'Companion', objectMeta); + protoOf($serializer_1402).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1402, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KMode_0, 'KMode', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_1415}); + setMetadataFor(Companion_1416, 'Companion', objectMeta); + protoOf($serializer_1403).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1403, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KUserCallbackScene_0, 'KUserCallbackScene', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_1416}); + setMetadataFor(Companion_1417, 'Companion', objectMeta); + protoOf($serializer_1404).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1404, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KUserCallbackAction_0, 'KUserCallbackAction', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_1417}); + setMetadataFor(Companion_1418, 'Companion', objectMeta); + protoOf($serializer_1405).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1405, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KEditorIconState_0, 'KEditorIconState', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_1418}); + setMetadataFor(Companion_1419, 'Companion', objectMeta); + protoOf($serializer_1406).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1406, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSubjectDescriptionReq, 'KSubjectDescriptionReq', classMeta, VOID, VOID, KSubjectDescriptionReq, VOID, {0: $serializer_getInstance_1406}); + setMetadataFor(Companion_1420, 'Companion', objectMeta); + protoOf($serializer_1407).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1407, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(Companion_1421, 'Companion', objectMeta); + protoOf($serializer_1408).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1408, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KGrade, 'KGrade', classMeta, VOID, VOID, KGrade, VOID, {0: $serializer_getInstance_1408}); + setMetadataFor(Companion_1422, 'Companion', objectMeta); + protoOf($serializer_1409).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1409, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KEditorIconConfig, 'KEditorIconConfig', classMeta, VOID, VOID, KEditorIconConfig, VOID, {0: $serializer_getInstance_1407}); + setMetadataFor(KGradePanel, 'KGradePanel', classMeta, VOID, VOID, KGradePanel, VOID, {0: $serializer_getInstance_1409}); + setMetadataFor(Companion_1423, 'Companion', objectMeta); + protoOf($serializer_1410).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1410, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(Companion_1424, 'Companion', objectMeta); + protoOf($serializer_1411).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1411, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(Companion_1425, 'Companion', objectMeta); + protoOf($serializer_1412).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1412, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KInputConfig, 'KInputConfig', classMeta, VOID, VOID, KInputConfig, VOID, {0: $serializer_getInstance_1410}); + setMetadataFor(KEmoteConfig, 'KEmoteConfig', classMeta, VOID, VOID, KEmoteConfig, VOID, {0: $serializer_getInstance_1411}); + setMetadataFor(KFilterTag_0, 'KFilterTag', classMeta, VOID, VOID, KFilterTag_0, VOID, {0: $serializer_getInstance_1412}); + setMetadataFor(Companion_1426, 'Companion', objectMeta); + protoOf($serializer_1413).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1413, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSubjectDescriptionReply, 'KSubjectDescriptionReply', classMeta, VOID, VOID, KSubjectDescriptionReply, VOID, {0: $serializer_getInstance_1413}); + setMetadataFor(Companion_1427, 'Companion', objectMeta); + protoOf($serializer_1414).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1414, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KSubjectID, 'KSubjectID', classMeta, VOID, VOID, KSubjectID, VOID, {0: $serializer_getInstance_1414}); + setMetadataFor(Companion_1428, 'Companion', objectMeta); + protoOf($serializer_1415).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1415, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KPlayerParams, 'KPlayerParams', classMeta, VOID, VOID, KPlayerParams, VOID, {0: $serializer_getInstance_1415}); + setMetadataFor(Companion_1429, 'Companion', objectMeta); + protoOf($serializer_1416).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1416, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KUserCallback, 'KUserCallback', classMeta, VOID, VOID, KUserCallback, VOID, {0: $serializer_getInstance_1416}); + setMetadataFor(Companion_1430, 'Companion', objectMeta); + protoOf($serializer_1417).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1417, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KFontStyle_0, 'KFontStyle', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_1430}); + setMetadataFor(Companion_1431, 'Companion', objectMeta); + protoOf($serializer_1418).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1418, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KTextStyle_0, 'KTextStyle', classMeta, VOID, VOID, KTextStyle_0, VOID, {0: $serializer_getInstance_1418}); + setMetadataFor(Companion_1432, 'Companion', objectMeta); + protoOf($serializer_1419).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1419, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(Companion_1433, 'Companion', objectMeta); + protoOf($serializer_1420).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1420, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(Companion_1434, 'Companion', objectMeta); + protoOf($serializer_1421).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1421, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KAction_0, 'KAction', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_1432}); + setMetadataFor(KText_4, 'KText', classMeta, VOID, VOID, KText_4, VOID, {0: $serializer_getInstance_1420}); + setMetadataFor(KButton_7, 'KButton', classMeta, VOID, VOID, KButton_7, VOID, {0: $serializer_getInstance_1421}); + setMetadataFor(Companion_1435, 'Companion', objectMeta); + protoOf($serializer_1422).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1422, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KEmptyPage_0, 'KEmptyPage', classMeta, VOID, VOID, KEmptyPage_0, VOID, {0: $serializer_getInstance_1422}); + setMetadataFor(Companion_1436, 'Companion', objectMeta); + protoOf($serializer_1423).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1423, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KEmote_1, 'KEmote', classMeta, VOID, VOID, KEmote_1, VOID, {0: $serializer_getInstance_1423}); + setMetadataFor(Companion_1437, 'Companion', objectMeta); + protoOf($serializer_1424).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1424, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KBizKind, 'KBizKind', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_1437}); + setMetadataFor(Companion_1438, 'Companion', objectMeta); + protoOf($serializer_1425).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1425, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KResource_0, 'KResource', classMeta, VOID, VOID, KResource_0, VOID, {0: $serializer_getInstance_1425}); + setMetadataFor(Companion_1439, 'Companion', objectMeta); + protoOf($serializer_1426).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1426, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KPopularResultReq, 'KPopularResultReq', classMeta, VOID, VOID, KPopularResultReq, VOID, {0: $serializer_getInstance_1426}); + setMetadataFor(Companion_1440, 'Companion', objectMeta); + protoOf($serializer_1427).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1427, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KPopularAd, 'KPopularAd', classMeta, VOID, VOID, KPopularAd, VOID, {0: $serializer_getInstance_1427}); + setMetadataFor(Companion_1441, 'Companion', objectMeta); + protoOf($serializer_1428).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1428, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KPopularReply, 'KPopularReply', classMeta, VOID, VOID, KPopularReply, VOID, {0: $serializer_getInstance_1428}); + setMetadataFor(Companion_1442, 'Companion', objectMeta); + protoOf($serializer_1429).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1429, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KConfig_2, 'KConfig', classMeta, VOID, VOID, KConfig_2, VOID, {0: $serializer_getInstance_1429}); + setMetadataFor(Companion_1443, 'Companion', objectMeta); + protoOf($serializer_1430).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1430, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KEntranceShow, 'KEntranceShow', classMeta, VOID, VOID, KEntranceShow, VOID, {0: $serializer_getInstance_1430}); + setMetadataFor(Companion_1444, 'Companion', objectMeta); + protoOf($serializer_1431).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1431, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KBubble_0, 'KBubble', classMeta, VOID, VOID, KBubble_0, VOID, {0: $serializer_getInstance_1431}); + setMetadataFor(Companion_1445, 'Companion', objectMeta); + protoOf($serializer_1432).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1432, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KPremiereState, 'KPremiereState', classMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_1445}); + setMetadataFor(Companion_1446, 'Companion', objectMeta); + protoOf($serializer_1433).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1433, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KViewUgcAny, 'KViewUgcAny', classMeta, VOID, VOID, KViewUgcAny, VOID, {0: $serializer_getInstance_1433}); + setMetadataFor(Companion_1447, 'Companion', objectMeta); + protoOf($serializer_1434).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1434, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KAiExtra, 'KAiExtra', classMeta, VOID, VOID, KAiExtra, VOID, {0: $serializer_getInstance_1434}); + setMetadataFor(Companion_1448, 'Companion', objectMeta); + protoOf($serializer_1435).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1435, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KUgcSeasonConf, 'KUgcSeasonConf', classMeta, VOID, VOID, KUgcSeasonConf, VOID, {0: $serializer_getInstance_1435}); + setMetadataFor(Companion_1449, 'Companion', objectMeta); + protoOf($serializer_1436).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1436, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KElecRank, 'KElecRank', classMeta, VOID, VOID, KElecRank, VOID, {0: $serializer_getInstance_1436}); + setMetadataFor(Companion_1450, 'Companion', objectMeta); + protoOf($serializer_1437).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1437, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KElecRankItem, 'KElecRankItem', classMeta, VOID, VOID, KElecRankItem, VOID, {0: $serializer_getInstance_1437}); + setMetadataFor(Companion_1451, 'Companion', objectMeta); + protoOf($serializer_1438).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1438, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KDislike_1, 'KDislike', classMeta, VOID, VOID, KDislike_1, VOID, {0: $serializer_getInstance_1438}); + setMetadataFor(Companion_1452, 'Companion', objectMeta); + protoOf($serializer_1439).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1439, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KDislikeReason_1, 'KDislikeReason', classMeta, VOID, VOID, KDislikeReason_1, VOID, {0: $serializer_getInstance_1439}); + setMetadataFor(Companion_1453, 'Companion', objectMeta); + protoOf($serializer_1440).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1440, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KPremiereResource, 'KPremiereResource', classMeta, VOID, VOID, KPremiereResource, VOID, {0: $serializer_getInstance_1440}); + setMetadataFor(Companion_1454, 'Companion', objectMeta); + protoOf($serializer_1441).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1441, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KPremiereReserve, 'KPremiereReserve', classMeta, VOID, VOID, KPremiereReserve, VOID, {0: $serializer_getInstance_1441}); + setMetadataFor(Companion_1455, 'Companion', objectMeta); + protoOf($serializer_1442).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1442, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KPremiereText, 'KPremiereText', classMeta, VOID, VOID, KPremiereText, VOID, {0: $serializer_getInstance_1442}); + setMetadataFor(Companion_1456, 'Companion', objectMeta); + protoOf($serializer_1443).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; + setMetadataFor($serializer_1443, '$serializer', objectMeta, VOID, [GeneratedSerializer]); + setMetadataFor(KPremiere, 'KPremiere', classMeta, VOID, VOID, KPremiere, VOID, {0: $serializer_getInstance_1443}); + setMetadataFor(JsMap, 'JsMap', classMeta); + //endregion + //region block: init + Unit_instance = new Unit(); + ByteCompanionObject_instance = new ByteCompanionObject(); + IntCompanionObject_instance = new IntCompanionObject(); + FloatCompanionObject_instance = new FloatCompanionObject(); + DoubleCompanionObject_instance = new DoubleCompanionObject(); + Companion_instance_0 = new Companion_0(); + Companion_instance_2 = new Companion_2(); + Companion_instance_4 = new Companion_4(); + Companion_instance_5 = new Companion_5(); + Companion_instance_6 = new Companion_6(); + EmptyIterator_instance = new EmptyIterator(); + Companion_instance_8 = new Companion_8(); + UNINITIALIZED_VALUE_instance = new UNINITIALIZED_VALUE(); + Companion_instance_9 = new Companion_9(); + SIZE_DELIMITED = 2; + i32 = 5; + VARINT = 0; + i64 = 1; + MISSING_TAG = new Long(19500, 0); + Companion_instance_12 = new Companion_12(); + Companion_instance_15 = new Companion_15(); + Companion_instance_16 = new Companion_16(); + Companion_instance_19 = new Companion_19(); + Companion_instance_23 = new Companion_23(); + Companion_instance_24 = new Companion_24(); + Companion_instance_29 = new Companion_29(); + Companion_instance_30 = new Companion_30(); + Companion_instance_31 = new Companion_31(); + Companion_instance_33 = new Companion_33(); + Companion_instance_35 = new Companion_35(); + Companion_instance_48 = new Companion_48(); + Companion_instance_54 = new Companion_54(); + Companion_instance_55 = new Companion_55(); + Companion_instance_57 = new Companion_57(); + Companion_instance_59 = new Companion_59(); + Companion_instance_63 = new Companion_63(); + Companion_instance_71 = new Companion_71(); + Companion_instance_72 = new Companion_72(); + Companion_instance_73 = new Companion_73(); + Companion_instance_74 = new Companion_74(); + Companion_instance_75 = new Companion_75(); + Companion_instance_76 = new Companion_76(); + Companion_instance_77 = new Companion_77(); + Companion_instance_78 = new Companion_78(); + Companion_instance_79 = new Companion_79(); + Companion_instance_80 = new Companion_80(); + Companion_instance_83 = new Companion_83(); + Companion_instance_86 = new Companion_86(); + Companion_instance_87 = new Companion_87(); + Companion_instance_90 = new Companion_90(); + Companion_instance_100 = new Companion_100(); + Companion_instance_102 = new Companion_102(); + Companion_instance_105 = new Companion_105(); + Companion_instance_107 = new Companion_107(); + Companion_instance_108 = new Companion_108(); + Companion_instance_109 = new Companion_109(); + Companion_instance_110 = new Companion_110(); + Companion_instance_112 = new Companion_112(); + Companion_instance_114 = new Companion_114(); + Companion_instance_116 = new Companion_116(); + Companion_instance_117 = new Companion_117(); + Companion_instance_118 = new Companion_118(); + Companion_instance_119 = new Companion_119(); + Companion_instance_120 = new Companion_120(); + Companion_instance_122 = new Companion_122(); + Companion_instance_130 = new Companion_130(); + Companion_instance_133 = new Companion_133(); + Companion_instance_134 = new Companion_134(); + Companion_instance_135 = new Companion_135(); + Companion_instance_140 = new Companion_140(); + Companion_instance_142 = new Companion_142(); + Companion_instance_143 = new Companion_143(); + Companion_instance_148 = new Companion_148(); + Companion_instance_149 = new Companion_149(); + Companion_instance_150 = new Companion_150(); + Companion_instance_151 = new Companion_151(); + Companion_instance_152 = new Companion_152(); + Companion_instance_153 = new Companion_153(); + Companion_instance_154 = new Companion_154(); + Companion_instance_155 = new Companion_155(); + Companion_instance_156 = new Companion_156(); + Companion_instance_158 = new Companion_158(); + Companion_instance_159 = new Companion_159(); + Companion_instance_161 = new Companion_161(); + Companion_instance_162 = new Companion_162(); + Companion_instance_164 = new Companion_164(); + Companion_instance_165 = new Companion_165(); + Companion_instance_166 = new Companion_166(); + Companion_instance_168 = new Companion_168(); + Companion_instance_169 = new Companion_169(); + Companion_instance_170 = new Companion_170(); + Companion_instance_174 = new Companion_174(); + Companion_instance_175 = new Companion_175(); + Companion_instance_178 = new Companion_178(); + Companion_instance_179 = new Companion_179(); + Companion_instance_180 = new Companion_180(); + Companion_instance_181 = new Companion_181(); + Companion_instance_182 = new Companion_182(); + Companion_instance_183 = new Companion_183(); + Companion_instance_190 = new Companion_190(); + Companion_instance_191 = new Companion_191(); + Companion_instance_192 = new Companion_192(); + Companion_instance_193 = new Companion_193(); + Companion_instance_196 = new Companion_196(); + Companion_instance_199 = new Companion_199(); + Companion_instance_203 = new Companion_203(); + Companion_instance_205 = new Companion_205(); + Companion_instance_206 = new Companion_206(); + Companion_instance_207 = new Companion_207(); + Companion_instance_208 = new Companion_208(); + Companion_instance_209 = new Companion_209(); + Companion_instance_210 = new Companion_210(); + Companion_instance_211 = new Companion_211(); + Companion_instance_233 = new Companion_233(); + Companion_instance_235 = new Companion_235(); + Companion_instance_237 = new Companion_237(); + Companion_instance_238 = new Companion_238(); + Companion_instance_239 = new Companion_239(); + Companion_instance_240 = new Companion_240(); + Companion_instance_242 = new Companion_242(); + Companion_instance_244 = new Companion_244(); + Companion_instance_246 = new Companion_246(); + Companion_instance_248 = new Companion_248(); + Companion_instance_251 = new Companion_251(); + Companion_instance_252 = new Companion_252(); + Companion_instance_253 = new Companion_253(); + Companion_instance_255 = new Companion_255(); + Companion_instance_257 = new Companion_257(); + Companion_instance_258 = new Companion_258(); + Companion_instance_260 = new Companion_260(); + Companion_instance_262 = new Companion_262(); + Companion_instance_263 = new Companion_263(); + Companion_instance_264 = new Companion_264(); + Companion_instance_265 = new Companion_265(); + Companion_instance_266 = new Companion_266(); + Companion_instance_268 = new Companion_268(); + Companion_instance_269 = new Companion_269(); + Companion_instance_270 = new Companion_270(); + Companion_instance_271 = new Companion_271(); + Companion_instance_273 = new Companion_273(); + Companion_instance_274 = new Companion_274(); + Companion_instance_275 = new Companion_275(); + Companion_instance_276 = new Companion_276(); + Companion_instance_277 = new Companion_277(); + Companion_instance_278 = new Companion_278(); + Companion_instance_279 = new Companion_279(); + Companion_instance_283 = new Companion_283(); + Companion_instance_285 = new Companion_285(); + Companion_instance_286 = new Companion_286(); + Companion_instance_287 = new Companion_287(); + Companion_instance_288 = new Companion_288(); + Companion_instance_289 = new Companion_289(); + Companion_instance_291 = new Companion_291(); + Companion_instance_292 = new Companion_292(); + Companion_instance_294 = new Companion_294(); + Companion_instance_295 = new Companion_295(); + Companion_instance_297 = new Companion_297(); + Companion_instance_299 = new Companion_299(); + Companion_instance_302 = new Companion_302(); + Companion_instance_303 = new Companion_303(); + Companion_instance_307 = new Companion_307(); + Companion_instance_308 = new Companion_308(); + Companion_instance_309 = new Companion_309(); + Companion_instance_312 = new Companion_312(); + Companion_instance_315 = new Companion_315(); + Companion_instance_316 = new Companion_316(); + Companion_instance_318 = new Companion_318(); + Companion_instance_319 = new Companion_319(); + Companion_instance_320 = new Companion_320(); + Companion_instance_321 = new Companion_321(); + Companion_instance_322 = new Companion_322(); + Companion_instance_323 = new Companion_323(); + Companion_instance_324 = new Companion_324(); + Companion_instance_325 = new Companion_325(); + Companion_instance_327 = new Companion_327(); + Companion_instance_328 = new Companion_328(); + Companion_instance_330 = new Companion_330(); + Companion_instance_331 = new Companion_331(); + Companion_instance_333 = new Companion_333(); + Companion_instance_334 = new Companion_334(); + Companion_instance_335 = new Companion_335(); + Companion_instance_336 = new Companion_336(); + Companion_instance_337 = new Companion_337(); + Companion_instance_340 = new Companion_340(); + Companion_instance_341 = new Companion_341(); + Companion_instance_342 = new Companion_342(); + Companion_instance_343 = new Companion_343(); + Companion_instance_344 = new Companion_344(); + Companion_instance_346 = new Companion_346(); + Companion_instance_347 = new Companion_347(); + Companion_instance_348 = new Companion_348(); + Companion_instance_349 = new Companion_349(); + Companion_instance_350 = new Companion_350(); + Companion_instance_352 = new Companion_352(); + Companion_instance_354 = new Companion_354(); + Companion_instance_356 = new Companion_356(); + Companion_instance_357 = new Companion_357(); + Companion_instance_359 = new Companion_359(); + Companion_instance_361 = new Companion_361(); + Companion_instance_363 = new Companion_363(); + Companion_instance_365 = new Companion_365(); + Companion_instance_367 = new Companion_367(); + Companion_instance_369 = new Companion_369(); + Companion_instance_371 = new Companion_371(); + Companion_instance_372 = new Companion_372(); + Companion_instance_373 = new Companion_373(); + Companion_instance_376 = new Companion_376(); + Companion_instance_377 = new Companion_377(); + Companion_instance_379 = new Companion_379(); + Companion_instance_380 = new Companion_380(); + Companion_instance_381 = new Companion_381(); + Companion_instance_382 = new Companion_382(); + Companion_instance_384 = new Companion_384(); + Companion_instance_385 = new Companion_385(); + Companion_instance_386 = new Companion_386(); + Companion_instance_387 = new Companion_387(); + Companion_instance_388 = new Companion_388(); + Companion_instance_390 = new Companion_390(); + Companion_instance_391 = new Companion_391(); + Companion_instance_392 = new Companion_392(); + Companion_instance_393 = new Companion_393(); + Companion_instance_394 = new Companion_394(); + Companion_instance_395 = new Companion_395(); + Companion_instance_396 = new Companion_396(); + Companion_instance_397 = new Companion_397(); + Companion_instance_398 = new Companion_398(); + Companion_instance_399 = new Companion_399(); + Companion_instance_400 = new Companion_400(); + Companion_instance_401 = new Companion_401(); + Companion_instance_402 = new Companion_402(); + Companion_instance_403 = new Companion_403(); + Companion_instance_404 = new Companion_404(); + Companion_instance_405 = new Companion_405(); + Companion_instance_406 = new Companion_406(); + Companion_instance_407 = new Companion_407(); + Companion_instance_418 = new Companion_418(); + Companion_instance_420 = new Companion_420(); + Companion_instance_421 = new Companion_421(); + Companion_instance_422 = new Companion_422(); + Companion_instance_423 = new Companion_423(); + Companion_instance_424 = new Companion_424(); + Companion_instance_425 = new Companion_425(); + Companion_instance_426 = new Companion_426(); + Companion_instance_428 = new Companion_428(); + Companion_instance_429 = new Companion_429(); + Companion_instance_431 = new Companion_431(); + Companion_instance_434 = new Companion_434(); + Companion_instance_435 = new Companion_435(); + Companion_instance_436 = new Companion_436(); + Companion_instance_438 = new Companion_438(); + Companion_instance_439 = new Companion_439(); + Companion_instance_442 = new Companion_442(); + Companion_instance_443 = new Companion_443(); + Companion_instance_444 = new Companion_444(); + Companion_instance_445 = new Companion_445(); + Companion_instance_446 = new Companion_446(); + Companion_instance_447 = new Companion_447(); + Companion_instance_448 = new Companion_448(); + Companion_instance_449 = new Companion_449(); + Companion_instance_450 = new Companion_450(); + Companion_instance_451 = new Companion_451(); + Companion_instance_452 = new Companion_452(); + Companion_instance_453 = new Companion_453(); + Companion_instance_454 = new Companion_454(); + Companion_instance_455 = new Companion_455(); + Companion_instance_456 = new Companion_456(); + Companion_instance_458 = new Companion_458(); + Companion_instance_459 = new Companion_459(); + Companion_instance_460 = new Companion_460(); + Companion_instance_461 = new Companion_461(); + Companion_instance_465 = new Companion_465(); + Companion_instance_466 = new Companion_466(); + Companion_instance_467 = new Companion_467(); + Companion_instance_468 = new Companion_468(); + Companion_instance_469 = new Companion_469(); + Companion_instance_472 = new Companion_472(); + Companion_instance_473 = new Companion_473(); + Companion_instance_476 = new Companion_476(); + Companion_instance_477 = new Companion_477(); + Companion_instance_478 = new Companion_478(); + Companion_instance_479 = new Companion_479(); + Companion_instance_480 = new Companion_480(); + Companion_instance_481 = new Companion_481(); + Companion_instance_482 = new Companion_482(); + Companion_instance_488 = new Companion_488(); + Companion_instance_490 = new Companion_490(); + Companion_instance_491 = new Companion_491(); + Companion_instance_492 = new Companion_492(); + Companion_instance_494 = new Companion_494(); + Companion_instance_495 = new Companion_495(); + Companion_instance_497 = new Companion_497(); + Companion_instance_503 = new Companion_503(); + Companion_instance_507 = new Companion_507(); + Companion_instance_508 = new Companion_508(); + Companion_instance_509 = new Companion_509(); + Companion_instance_510 = new Companion_510(); + Companion_instance_513 = new Companion_513(); + Companion_instance_514 = new Companion_514(); + Companion_instance_515 = new Companion_515(); + Companion_instance_518 = new Companion_518(); + Companion_instance_519 = new Companion_519(); + Companion_instance_521 = new Companion_521(); + Companion_instance_524 = new Companion_524(); + Companion_instance_527 = new Companion_527(); + Companion_instance_528 = new Companion_528(); + Companion_instance_530 = new Companion_530(); + Companion_instance_531 = new Companion_531(); + Companion_instance_534 = new Companion_534(); + Companion_instance_535 = new Companion_535(); + Companion_instance_536 = new Companion_536(); + Companion_instance_537 = new Companion_537(); + Companion_instance_538 = new Companion_538(); + Companion_instance_539 = new Companion_539(); + Companion_instance_540 = new Companion_540(); + Companion_instance_542 = new Companion_542(); + Companion_instance_544 = new Companion_544(); + Companion_instance_545 = new Companion_545(); + Companion_instance_550 = new Companion_550(); + Companion_instance_553 = new Companion_553(); + Companion_instance_554 = new Companion_554(); + Companion_instance_555 = new Companion_555(); + Companion_instance_556 = new Companion_556(); + Companion_instance_557 = new Companion_557(); + Companion_instance_558 = new Companion_558(); + Companion_instance_559 = new Companion_559(); + Companion_instance_560 = new Companion_560(); + Companion_instance_561 = new Companion_561(); + Companion_instance_562 = new Companion_562(); + Companion_instance_563 = new Companion_563(); + Companion_instance_564 = new Companion_564(); + Companion_instance_565 = new Companion_565(); + Companion_instance_566 = new Companion_566(); + Companion_instance_567 = new Companion_567(); + Companion_instance_568 = new Companion_568(); + Companion_instance_570 = new Companion_570(); + Companion_instance_571 = new Companion_571(); + Companion_instance_572 = new Companion_572(); + Companion_instance_573 = new Companion_573(); + Companion_instance_574 = new Companion_574(); + Companion_instance_575 = new Companion_575(); + Companion_instance_576 = new Companion_576(); + Companion_instance_577 = new Companion_577(); + Companion_instance_578 = new Companion_578(); + Companion_instance_579 = new Companion_579(); + Companion_instance_580 = new Companion_580(); + Companion_instance_581 = new Companion_581(); + Companion_instance_582 = new Companion_582(); + Companion_instance_583 = new Companion_583(); + Companion_instance_584 = new Companion_584(); + Companion_instance_585 = new Companion_585(); + Companion_instance_586 = new Companion_586(); + Companion_instance_587 = new Companion_587(); + Companion_instance_588 = new Companion_588(); + Companion_instance_589 = new Companion_589(); + Companion_instance_592 = new Companion_592(); + Companion_instance_593 = new Companion_593(); + Companion_instance_595 = new Companion_595(); + Companion_instance_596 = new Companion_596(); + Companion_instance_597 = new Companion_597(); + Companion_instance_598 = new Companion_598(); + Companion_instance_599 = new Companion_599(); + Companion_instance_601 = new Companion_601(); + Companion_instance_602 = new Companion_602(); + Companion_instance_603 = new Companion_603(); + Companion_instance_605 = new Companion_605(); + Companion_instance_606 = new Companion_606(); + Companion_instance_608 = new Companion_608(); + Companion_instance_609 = new Companion_609(); + Companion_instance_610 = new Companion_610(); + Companion_instance_611 = new Companion_611(); + Companion_instance_612 = new Companion_612(); + Companion_instance_613 = new Companion_613(); + Companion_instance_614 = new Companion_614(); + Companion_instance_615 = new Companion_615(); + Companion_instance_616 = new Companion_616(); + Companion_instance_617 = new Companion_617(); + Companion_instance_618 = new Companion_618(); + Companion_instance_619 = new Companion_619(); + Companion_instance_620 = new Companion_620(); + Companion_instance_621 = new Companion_621(); + Companion_instance_622 = new Companion_622(); + Companion_instance_625 = new Companion_625(); + Companion_instance_626 = new Companion_626(); + Companion_instance_627 = new Companion_627(); + Companion_instance_628 = new Companion_628(); + Companion_instance_629 = new Companion_629(); + Companion_instance_630 = new Companion_630(); + Companion_instance_634 = new Companion_634(); + Companion_instance_636 = new Companion_636(); + Companion_instance_638 = new Companion_638(); + Companion_instance_639 = new Companion_639(); + Companion_instance_640 = new Companion_640(); + Companion_instance_641 = new Companion_641(); + Companion_instance_642 = new Companion_642(); + Companion_instance_644 = new Companion_644(); + Companion_instance_646 = new Companion_646(); + Companion_instance_647 = new Companion_647(); + Companion_instance_649 = new Companion_649(); + Companion_instance_650 = new Companion_650(); + Companion_instance_651 = new Companion_651(); + Companion_instance_652 = new Companion_652(); + Companion_instance_653 = new Companion_653(); + Companion_instance_654 = new Companion_654(); + Companion_instance_655 = new Companion_655(); + Companion_instance_656 = new Companion_656(); + Companion_instance_657 = new Companion_657(); + Companion_instance_660 = new Companion_660(); + Companion_instance_661 = new Companion_661(); + Companion_instance_663 = new Companion_663(); + Companion_instance_664 = new Companion_664(); + Companion_instance_665 = new Companion_665(); + Companion_instance_666 = new Companion_666(); + Companion_instance_667 = new Companion_667(); + Companion_instance_670 = new Companion_670(); + Companion_instance_671 = new Companion_671(); + Companion_instance_673 = new Companion_673(); + Companion_instance_674 = new Companion_674(); + Companion_instance_675 = new Companion_675(); + Companion_instance_676 = new Companion_676(); + Companion_instance_677 = new Companion_677(); + Companion_instance_678 = new Companion_678(); + Companion_instance_681 = new Companion_681(); + Companion_instance_683 = new Companion_683(); + Companion_instance_684 = new Companion_684(); + Companion_instance_685 = new Companion_685(); + Companion_instance_686 = new Companion_686(); + Companion_instance_688 = new Companion_688(); + Companion_instance_689 = new Companion_689(); + Companion_instance_691 = new Companion_691(); + Companion_instance_693 = new Companion_693(); + Companion_instance_694 = new Companion_694(); + Companion_instance_695 = new Companion_695(); + Companion_instance_696 = new Companion_696(); + Companion_instance_697 = new Companion_697(); + Companion_instance_698 = new Companion_698(); + Companion_instance_699 = new Companion_699(); + Companion_instance_700 = new Companion_700(); + Companion_instance_701 = new Companion_701(); + Companion_instance_702 = new Companion_702(); + Companion_instance_703 = new Companion_703(); + Companion_instance_704 = new Companion_704(); + Companion_instance_705 = new Companion_705(); + Companion_instance_707 = new Companion_707(); + Companion_instance_708 = new Companion_708(); + Companion_instance_709 = new Companion_709(); + Companion_instance_711 = new Companion_711(); + Companion_instance_713 = new Companion_713(); + Companion_instance_715 = new Companion_715(); + Companion_instance_716 = new Companion_716(); + Companion_instance_718 = new Companion_718(); + Companion_instance_719 = new Companion_719(); + Companion_instance_721 = new Companion_721(); + Companion_instance_722 = new Companion_722(); + Companion_instance_724 = new Companion_724(); + Companion_instance_726 = new Companion_726(); + Companion_instance_729 = new Companion_729(); + Companion_instance_753 = new Companion_753(); + Companion_instance_754 = new Companion_754(); + Companion_instance_755 = new Companion_755(); + Companion_instance_756 = new Companion_756(); + Companion_instance_757 = new Companion_757(); + Companion_instance_759 = new Companion_759(); + Companion_instance_760 = new Companion_760(); + Companion_instance_761 = new Companion_761(); + Companion_instance_762 = new Companion_762(); + Companion_instance_764 = new Companion_764(); + Companion_instance_766 = new Companion_766(); + Companion_instance_767 = new Companion_767(); + Companion_instance_770 = new Companion_770(); + Companion_instance_771 = new Companion_771(); + Companion_instance_773 = new Companion_773(); + Companion_instance_774 = new Companion_774(); + Companion_instance_776 = new Companion_776(); + Companion_instance_778 = new Companion_778(); + Companion_instance_780 = new Companion_780(); + Companion_instance_781 = new Companion_781(); + Companion_instance_782 = new Companion_782(); + Companion_instance_784 = new Companion_784(); + Companion_instance_785 = new Companion_785(); + Companion_instance_786 = new Companion_786(); + Companion_instance_787 = new Companion_787(); + Companion_instance_788 = new Companion_788(); + Companion_instance_789 = new Companion_789(); + Companion_instance_790 = new Companion_790(); + Companion_instance_791 = new Companion_791(); + Companion_instance_792 = new Companion_792(); + Companion_instance_793 = new Companion_793(); + Companion_instance_796 = new Companion_796(); + Companion_instance_798 = new Companion_798(); + Companion_instance_799 = new Companion_799(); + Companion_instance_800 = new Companion_800(); + Companion_instance_801 = new Companion_801(); + Companion_instance_802 = new Companion_802(); + Companion_instance_804 = new Companion_804(); + Companion_instance_806 = new Companion_806(); + Companion_instance_807 = new Companion_807(); + Companion_instance_808 = new Companion_808(); + Companion_instance_809 = new Companion_809(); + Companion_instance_810 = new Companion_810(); + Companion_instance_812 = new Companion_812(); + Companion_instance_814 = new Companion_814(); + Companion_instance_816 = new Companion_816(); + Companion_instance_817 = new Companion_817(); + Companion_instance_819 = new Companion_819(); + Companion_instance_822 = new Companion_822(); + Companion_instance_824 = new Companion_824(); + Companion_instance_825 = new Companion_825(); + Companion_instance_827 = new Companion_827(); + Companion_instance_829 = new Companion_829(); + Companion_instance_830 = new Companion_830(); + Companion_instance_833 = new Companion_833(); + Companion_instance_834 = new Companion_834(); + Companion_instance_837 = new Companion_837(); + Companion_instance_839 = new Companion_839(); + Companion_instance_840 = new Companion_840(); + Companion_instance_841 = new Companion_841(); + Companion_instance_842 = new Companion_842(); + Companion_instance_844 = new Companion_844(); + Companion_instance_845 = new Companion_845(); + Companion_instance_846 = new Companion_846(); + Companion_instance_847 = new Companion_847(); + Companion_instance_850 = new Companion_850(); + Companion_instance_851 = new Companion_851(); + Companion_instance_852 = new Companion_852(); + Companion_instance_853 = new Companion_853(); + Companion_instance_855 = new Companion_855(); + Companion_instance_856 = new Companion_856(); + Companion_instance_857 = new Companion_857(); + Companion_instance_858 = new Companion_858(); + Companion_instance_860 = new Companion_860(); + Companion_instance_861 = new Companion_861(); + Companion_instance_862 = new Companion_862(); + Companion_instance_865 = new Companion_865(); + Companion_instance_867 = new Companion_867(); + Companion_instance_869 = new Companion_869(); + Companion_instance_870 = new Companion_870(); + Companion_instance_873 = new Companion_873(); + Companion_instance_874 = new Companion_874(); + Companion_instance_875 = new Companion_875(); + Companion_instance_876 = new Companion_876(); + Companion_instance_877 = new Companion_877(); + Companion_instance_879 = new Companion_879(); + Companion_instance_880 = new Companion_880(); + Companion_instance_881 = new Companion_881(); + Companion_instance_882 = new Companion_882(); + Companion_instance_883 = new Companion_883(); + Companion_instance_884 = new Companion_884(); + Companion_instance_886 = new Companion_886(); + Companion_instance_889 = new Companion_889(); + Companion_instance_890 = new Companion_890(); + Companion_instance_891 = new Companion_891(); + Companion_instance_892 = new Companion_892(); + Companion_instance_894 = new Companion_894(); + Companion_instance_895 = new Companion_895(); + Companion_instance_897 = new Companion_897(); + Companion_instance_898 = new Companion_898(); + Companion_instance_899 = new Companion_899(); + Companion_instance_900 = new Companion_900(); + Companion_instance_902 = new Companion_902(); + Companion_instance_903 = new Companion_903(); + Companion_instance_905 = new Companion_905(); + Companion_instance_906 = new Companion_906(); + Companion_instance_907 = new Companion_907(); + Companion_instance_908 = new Companion_908(); + Companion_instance_910 = new Companion_910(); + Companion_instance_911 = new Companion_911(); + Companion_instance_912 = new Companion_912(); + Companion_instance_915 = new Companion_915(); + Companion_instance_917 = new Companion_917(); + Companion_instance_920 = new Companion_920(); + Companion_instance_921 = new Companion_921(); + Companion_instance_922 = new Companion_922(); + Companion_instance_923 = new Companion_923(); + Companion_instance_925 = new Companion_925(); + Companion_instance_929 = new Companion_929(); + Companion_instance_931 = new Companion_931(); + Companion_instance_933 = new Companion_933(); + Companion_instance_935 = new Companion_935(); + Companion_instance_957 = new Companion_957(); + Companion_instance_959 = new Companion_959(); + Companion_instance_960 = new Companion_960(); + Companion_instance_962 = new Companion_962(); + Companion_instance_963 = new Companion_963(); + Companion_instance_964 = new Companion_964(); + Companion_instance_967 = new Companion_967(); + Companion_instance_968 = new Companion_968(); + Companion_instance_969 = new Companion_969(); + Companion_instance_970 = new Companion_970(); + Companion_instance_971 = new Companion_971(); + Companion_instance_972 = new Companion_972(); + Companion_instance_973 = new Companion_973(); + Companion_instance_974 = new Companion_974(); + Companion_instance_975 = new Companion_975(); + Companion_instance_976 = new Companion_976(); + Companion_instance_977 = new Companion_977(); + Companion_instance_978 = new Companion_978(); + Companion_instance_979 = new Companion_979(); + Companion_instance_980 = new Companion_980(); + Companion_instance_983 = new Companion_983(); + Companion_instance_984 = new Companion_984(); + Companion_instance_986 = new Companion_986(); + Companion_instance_987 = new Companion_987(); + Companion_instance_988 = new Companion_988(); + Companion_instance_990 = new Companion_990(); + Companion_instance_991 = new Companion_991(); + Companion_instance_992 = new Companion_992(); + Companion_instance_993 = new Companion_993(); + Companion_instance_994 = new Companion_994(); + Companion_instance_995 = new Companion_995(); + Companion_instance_996 = new Companion_996(); + Companion_instance_997 = new Companion_997(); + Companion_instance_998 = new Companion_998(); + Companion_instance_999 = new Companion_999(); + Companion_instance_1000 = new Companion_1000(); + Companion_instance_1001 = new Companion_1001(); + Companion_instance_1002 = new Companion_1002(); + Companion_instance_1003 = new Companion_1003(); + Companion_instance_1004 = new Companion_1004(); + Companion_instance_1007 = new Companion_1007(); + Companion_instance_1009 = new Companion_1009(); + Companion_instance_1012 = new Companion_1012(); + Companion_instance_1013 = new Companion_1013(); + Companion_instance_1014 = new Companion_1014(); + Companion_instance_1015 = new Companion_1015(); + Companion_instance_1016 = new Companion_1016(); + Companion_instance_1018 = new Companion_1018(); + Companion_instance_1019 = new Companion_1019(); + Companion_instance_1020 = new Companion_1020(); + Companion_instance_1021 = new Companion_1021(); + Companion_instance_1023 = new Companion_1023(); + Companion_instance_1025 = new Companion_1025(); + Companion_instance_1027 = new Companion_1027(); + Companion_instance_1029 = new Companion_1029(); + Companion_instance_1030 = new Companion_1030(); + Companion_instance_1032 = new Companion_1032(); + Companion_instance_1033 = new Companion_1033(); + Companion_instance_1036 = new Companion_1036(); + Companion_instance_1037 = new Companion_1037(); + Companion_instance_1039 = new Companion_1039(); + Companion_instance_1046 = new Companion_1046(); + Companion_instance_1047 = new Companion_1047(); + Companion_instance_1048 = new Companion_1048(); + Companion_instance_1049 = new Companion_1049(); + Companion_instance_1050 = new Companion_1050(); + Companion_instance_1051 = new Companion_1051(); + Companion_instance_1052 = new Companion_1052(); + Companion_instance_1053 = new Companion_1053(); + Companion_instance_1055 = new Companion_1055(); + Companion_instance_1056 = new Companion_1056(); + Companion_instance_1057 = new Companion_1057(); + Companion_instance_1058 = new Companion_1058(); + Companion_instance_1085 = new Companion_1085(); + Companion_instance_1086 = new Companion_1086(); + Companion_instance_1088 = new Companion_1088(); + Companion_instance_1089 = new Companion_1089(); + Companion_instance_1090 = new Companion_1090(); + Companion_instance_1093 = new Companion_1093(); + Companion_instance_1094 = new Companion_1094(); + Companion_instance_1096 = new Companion_1096(); + Companion_instance_1098 = new Companion_1098(); + Companion_instance_1099 = new Companion_1099(); + Companion_instance_1100 = new Companion_1100(); + Companion_instance_1101 = new Companion_1101(); + Companion_instance_1102 = new Companion_1102(); + Companion_instance_1103 = new Companion_1103(); + Companion_instance_1104 = new Companion_1104(); + Companion_instance_1105 = new Companion_1105(); + Companion_instance_1106 = new Companion_1106(); + Companion_instance_1107 = new Companion_1107(); + Companion_instance_1110 = new Companion_1110(); + Companion_instance_1112 = new Companion_1112(); + Companion_instance_1113 = new Companion_1113(); + Companion_instance_1115 = new Companion_1115(); + Companion_instance_1118 = new Companion_1118(); + Companion_instance_1119 = new Companion_1119(); + Companion_instance_1120 = new Companion_1120(); + Companion_instance_1124 = new Companion_1124(); + Companion_instance_1125 = new Companion_1125(); + Companion_instance_1126 = new Companion_1126(); + Companion_instance_1127 = new Companion_1127(); + Companion_instance_1128 = new Companion_1128(); + Companion_instance_1129 = new Companion_1129(); + Companion_instance_1130 = new Companion_1130(); + Companion_instance_1131 = new Companion_1131(); + Companion_instance_1132 = new Companion_1132(); + Companion_instance_1133 = new Companion_1133(); + Companion_instance_1136 = new Companion_1136(); + Companion_instance_1138 = new Companion_1138(); + Companion_instance_1143 = new Companion_1143(); + Companion_instance_1145 = new Companion_1145(); + Companion_instance_1147 = new Companion_1147(); + Companion_instance_1148 = new Companion_1148(); + Companion_instance_1149 = new Companion_1149(); + Companion_instance_1150 = new Companion_1150(); + Companion_instance_1151 = new Companion_1151(); + Companion_instance_1153 = new Companion_1153(); + Companion_instance_1154 = new Companion_1154(); + Companion_instance_1156 = new Companion_1156(); + Companion_instance_1157 = new Companion_1157(); + Companion_instance_1158 = new Companion_1158(); + Companion_instance_1159 = new Companion_1159(); + Companion_instance_1161 = new Companion_1161(); + Companion_instance_1166 = new Companion_1166(); + Companion_instance_1167 = new Companion_1167(); + Companion_instance_1170 = new Companion_1170(); + Companion_instance_1171 = new Companion_1171(); + Companion_instance_1175 = new Companion_1175(); + Companion_instance_1176 = new Companion_1176(); + Companion_instance_1177 = new Companion_1177(); + Companion_instance_1178 = new Companion_1178(); + Companion_instance_1179 = new Companion_1179(); + Companion_instance_1180 = new Companion_1180(); + Companion_instance_1181 = new Companion_1181(); + Companion_instance_1182 = new Companion_1182(); + Companion_instance_1183 = new Companion_1183(); + Companion_instance_1184 = new Companion_1184(); + Companion_instance_1185 = new Companion_1185(); + Companion_instance_1188 = new Companion_1188(); + Companion_instance_1190 = new Companion_1190(); + Companion_instance_1192 = new Companion_1192(); + Companion_instance_1195 = new Companion_1195(); + Companion_instance_1196 = new Companion_1196(); + Companion_instance_1198 = new Companion_1198(); + Companion_instance_1199 = new Companion_1199(); + Companion_instance_1200 = new Companion_1200(); + Companion_instance_1201 = new Companion_1201(); + Companion_instance_1203 = new Companion_1203(); + Companion_instance_1204 = new Companion_1204(); + Companion_instance_1205 = new Companion_1205(); + Companion_instance_1206 = new Companion_1206(); + Companion_instance_1207 = new Companion_1207(); + Companion_instance_1209 = new Companion_1209(); + Companion_instance_1210 = new Companion_1210(); + Companion_instance_1211 = new Companion_1211(); + Companion_instance_1212 = new Companion_1212(); + Companion_instance_1213 = new Companion_1213(); + Companion_instance_1217 = new Companion_1217(); + Companion_instance_1218 = new Companion_1218(); + Companion_instance_1219 = new Companion_1219(); + Companion_instance_1220 = new Companion_1220(); + Companion_instance_1222 = new Companion_1222(); + Companion_instance_1223 = new Companion_1223(); + Companion_instance_1224 = new Companion_1224(); + Companion_instance_1226 = new Companion_1226(); + Companion_instance_1227 = new Companion_1227(); + Companion_instance_1228 = new Companion_1228(); + Companion_instance_1229 = new Companion_1229(); + Companion_instance_1230 = new Companion_1230(); + Companion_instance_1231 = new Companion_1231(); + Companion_instance_1232 = new Companion_1232(); + Companion_instance_1233 = new Companion_1233(); + Companion_instance_1234 = new Companion_1234(); + Companion_instance_1235 = new Companion_1235(); + Companion_instance_1237 = new Companion_1237(); + Companion_instance_1238 = new Companion_1238(); + Companion_instance_1240 = new Companion_1240(); + Companion_instance_1241 = new Companion_1241(); + Companion_instance_1243 = new Companion_1243(); + Companion_instance_1244 = new Companion_1244(); + Companion_instance_1246 = new Companion_1246(); + Companion_instance_1247 = new Companion_1247(); + Companion_instance_1248 = new Companion_1248(); + Companion_instance_1249 = new Companion_1249(); + Companion_instance_1252 = new Companion_1252(); + Companion_instance_1253 = new Companion_1253(); + Companion_instance_1254 = new Companion_1254(); + Companion_instance_1256 = new Companion_1256(); + Companion_instance_1258 = new Companion_1258(); + Companion_instance_1259 = new Companion_1259(); + Companion_instance_1262 = new Companion_1262(); + Companion_instance_1264 = new Companion_1264(); + Companion_instance_1268 = new Companion_1268(); + Companion_instance_1269 = new Companion_1269(); + Companion_instance_1270 = new Companion_1270(); + Companion_instance_1271 = new Companion_1271(); + Companion_instance_1272 = new Companion_1272(); + Companion_instance_1273 = new Companion_1273(); + Companion_instance_1274 = new Companion_1274(); + Companion_instance_1276 = new Companion_1276(); + Companion_instance_1277 = new Companion_1277(); + Companion_instance_1278 = new Companion_1278(); + Companion_instance_1279 = new Companion_1279(); + Companion_instance_1287 = new Companion_1287(); + Companion_instance_1288 = new Companion_1288(); + Companion_instance_1290 = new Companion_1290(); + Companion_instance_1291 = new Companion_1291(); + Companion_instance_1292 = new Companion_1292(); + Companion_instance_1295 = new Companion_1295(); + Companion_instance_1296 = new Companion_1296(); + Companion_instance_1298 = new Companion_1298(); + Companion_instance_1300 = new Companion_1300(); + Companion_instance_1301 = new Companion_1301(); + Companion_instance_1302 = new Companion_1302(); + Companion_instance_1303 = new Companion_1303(); + Companion_instance_1304 = new Companion_1304(); + Companion_instance_1305 = new Companion_1305(); + Companion_instance_1306 = new Companion_1306(); + Companion_instance_1308 = new Companion_1308(); + Companion_instance_1310 = new Companion_1310(); + Companion_instance_1311 = new Companion_1311(); + Companion_instance_1313 = new Companion_1313(); + Companion_instance_1314 = new Companion_1314(); + Companion_instance_1316 = new Companion_1316(); + Companion_instance_1317 = new Companion_1317(); + Companion_instance_1318 = new Companion_1318(); + Companion_instance_1319 = new Companion_1319(); + Companion_instance_1320 = new Companion_1320(); + Companion_instance_1321 = new Companion_1321(); + Companion_instance_1322 = new Companion_1322(); + Companion_instance_1324 = new Companion_1324(); + Companion_instance_1328 = new Companion_1328(); + Companion_instance_1329 = new Companion_1329(); + Companion_instance_1331 = new Companion_1331(); + Companion_instance_1334 = new Companion_1334(); + Companion_instance_1337 = new Companion_1337(); + Companion_instance_1338 = new Companion_1338(); + Companion_instance_1339 = new Companion_1339(); + Companion_instance_1340 = new Companion_1340(); + Companion_instance_1341 = new Companion_1341(); + Companion_instance_1342 = new Companion_1342(); + Companion_instance_1343 = new Companion_1343(); + Companion_instance_1344 = new Companion_1344(); + Companion_instance_1345 = new Companion_1345(); + Companion_instance_1346 = new Companion_1346(); + Companion_instance_1349 = new Companion_1349(); + Companion_instance_1350 = new Companion_1350(); + Companion_instance_1351 = new Companion_1351(); + Companion_instance_1353 = new Companion_1353(); + Companion_instance_1354 = new Companion_1354(); + Companion_instance_1355 = new Companion_1355(); + Companion_instance_1358 = new Companion_1358(); + Companion_instance_1359 = new Companion_1359(); + Companion_instance_1360 = new Companion_1360(); + Companion_instance_1361 = new Companion_1361(); + Companion_instance_1363 = new Companion_1363(); + Companion_instance_1364 = new Companion_1364(); + Companion_instance_1366 = new Companion_1366(); + Companion_instance_1367 = new Companion_1367(); + Companion_instance_1369 = new Companion_1369(); + Companion_instance_1371 = new Companion_1371(); + Companion_instance_1372 = new Companion_1372(); + Companion_instance_1374 = new Companion_1374(); + Companion_instance_1376 = new Companion_1376(); + Companion_instance_1379 = new Companion_1379(); + Companion_instance_1380 = new Companion_1380(); + Companion_instance_1381 = new Companion_1381(); + Companion_instance_1383 = new Companion_1383(); + Companion_instance_1384 = new Companion_1384(); + Companion_instance_1385 = new Companion_1385(); + Companion_instance_1390 = new Companion_1390(); + Companion_instance_1391 = new Companion_1391(); + Companion_instance_1396 = new Companion_1396(); + Companion_instance_1398 = new Companion_1398(); + Companion_instance_1400 = new Companion_1400(); + Companion_instance_1402 = new Companion_1402(); + Companion_instance_1403 = new Companion_1403(); + Companion_instance_1404 = new Companion_1404(); + Companion_instance_1406 = new Companion_1406(); + Companion_instance_1407 = new Companion_1407(); + Companion_instance_1408 = new Companion_1408(); + Companion_instance_1409 = new Companion_1409(); + Companion_instance_1410 = new Companion_1410(); + Companion_instance_1411 = new Companion_1411(); + Companion_instance_1413 = new Companion_1413(); + Companion_instance_1414 = new Companion_1414(); + Companion_instance_1419 = new Companion_1419(); + Companion_instance_1420 = new Companion_1420(); + Companion_instance_1421 = new Companion_1421(); + Companion_instance_1423 = new Companion_1423(); + Companion_instance_1425 = new Companion_1425(); + Companion_instance_1427 = new Companion_1427(); + Companion_instance_1428 = new Companion_1428(); + Companion_instance_1429 = new Companion_1429(); + Companion_instance_1431 = new Companion_1431(); + Companion_instance_1433 = new Companion_1433(); + Companion_instance_1434 = new Companion_1434(); + Companion_instance_1436 = new Companion_1436(); + Companion_instance_1438 = new Companion_1438(); + Companion_instance_1439 = new Companion_1439(); + Companion_instance_1440 = new Companion_1440(); + Companion_instance_1443 = new Companion_1443(); + Companion_instance_1444 = new Companion_1444(); + Companion_instance_1447 = new Companion_1447(); + Companion_instance_1448 = new Companion_1448(); + Companion_instance_1450 = new Companion_1450(); + Companion_instance_1452 = new Companion_1452(); + Companion_instance_1453 = new Companion_1453(); + Companion_instance_1454 = new Companion_1454(); + Companion_instance_1455 = new Companion_1455(); + Companion_instance_1456 = new Companion_1456(); + //endregion + //region block: exports + function $jsExportAll$(_) { + var $kotlin = _.kotlin || (_.kotlin = {}); + var $kotlin$reflect = $kotlin.reflect || ($kotlin.reflect = {}); + var $kotlin = _.kotlin || (_.kotlin = {}); + var $kotlin$collections = $kotlin.collections || ($kotlin.collections = {}); + var $kntr = _.kntr || (_.kntr = {}); + var $kntr$base = $kntr.base || ($kntr.base = {}); + var $kntr$base$di = $kntr$base.di || ($kntr$base.di = {}); + var $kntr$base$di$report = $kntr$base$di.report || ($kntr$base$di.report = {}); + var $kntr = _.kntr || (_.kntr = {}); + var $kntr$base = $kntr.base || ($kntr.base = {}); + var $kntr$base$di = $kntr$base.di || ($kntr$base.di = {}); + var $kntr$base$di$report = $kntr$base$di.report || ($kntr$base$di.report = {}); + defineProp($kntr$base$di$report, 'KNeuron', KNeuron_getInstance); + $kntr$base$di$report.injectPlatformNeuron = injectPlatformNeuron; + var $com = _.com || (_.com = {}); + var $com$google = $com.google || ($com.google = {}); + var $com$google$protobuf = $com$google.protobuf || ($com$google.protobuf = {}); + $com$google$protobuf.KAny = KAny; + defineProp($com$google$protobuf.KAny, 'Companion', Companion_getInstance_12); + var $com = _.com || (_.com = {}); + var $com$google = $com.google || ($com.google = {}); + var $com$google$protobuf = $com$google.protobuf || ($com$google.protobuf = {}); + $com$google$protobuf.KApi = KApi; + defineProp($com$google$protobuf.KApi, 'Companion', Companion_getInstance_13); + $com$google$protobuf.KMethod = KMethod; + defineProp($com$google$protobuf.KMethod, 'Companion', Companion_getInstance_14); + $com$google$protobuf.KMixin = KMixin; + defineProp($com$google$protobuf.KMixin, 'Companion', Companion_getInstance_15); + var $com = _.com || (_.com = {}); + var $com$google = $com.google || ($com.google = {}); + var $com$google$protobuf = $com$google.protobuf || ($com$google.protobuf = {}); + var $com$google$protobuf$compiler = $com$google$protobuf.compiler || ($com$google$protobuf.compiler = {}); + $com$google$protobuf$compiler.KVersion = KVersion; + defineProp($com$google$protobuf$compiler.KVersion, 'Companion', Companion_getInstance_16); + $com$google$protobuf$compiler.KCodeGeneratorRequest = KCodeGeneratorRequest; + defineProp($com$google$protobuf$compiler.KCodeGeneratorRequest, 'Companion', Companion_getInstance_17); + $com$google$protobuf$compiler.KCodeGeneratorResponse = KCodeGeneratorResponse; + $com$google$protobuf$compiler.KCodeGeneratorResponse.KFeature = KFeature; + $com$google$protobuf$compiler.KCodeGeneratorResponse.KFeature.values = values; + $com$google$protobuf$compiler.KCodeGeneratorResponse.KFeature.valueOf = valueOf; + defineProp($com$google$protobuf$compiler.KCodeGeneratorResponse.KFeature, 'NONE', KFeature_NONE_getInstance); + defineProp($com$google$protobuf$compiler.KCodeGeneratorResponse.KFeature, 'PROTO3_OPTIONAL', KFeature_PROTO3_OPTIONAL_getInstance); + defineProp($com$google$protobuf$compiler.KCodeGeneratorResponse.KFeature, 'UNRECOGNIZED', KFeature_UNRECOGNIZED_getInstance); + defineProp($com$google$protobuf$compiler.KCodeGeneratorResponse.KFeature, 'Companion', Companion_getInstance_18); + $com$google$protobuf$compiler.KCodeGeneratorResponse.KFile = KFile; + defineProp($com$google$protobuf$compiler.KCodeGeneratorResponse.KFile, 'Companion', Companion_getInstance_19); + defineProp($com$google$protobuf$compiler.KCodeGeneratorResponse, 'Companion', Companion_getInstance_20); + $com$google$protobuf$compiler.values$factory = values$factory; + var $com = _.com || (_.com = {}); + var $com$google = $com.google || ($com.google = {}); + var $com$google$protobuf = $com$google.protobuf || ($com$google.protobuf = {}); + $com$google$protobuf.KFileDescriptorSet = KFileDescriptorSet; + defineProp($com$google$protobuf.KFileDescriptorSet, 'Companion', Companion_getInstance_21); + $com$google$protobuf.KFileDescriptorProto = KFileDescriptorProto; + defineProp($com$google$protobuf.KFileDescriptorProto, 'Companion', Companion_getInstance_22); + $com$google$protobuf.KDescriptorProto = KDescriptorProto; + $com$google$protobuf.KDescriptorProto.KExtensionRange = KExtensionRange; + defineProp($com$google$protobuf.KDescriptorProto.KExtensionRange, 'Companion', Companion_getInstance_23); + $com$google$protobuf.KDescriptorProto.KReservedRange = KReservedRange; + defineProp($com$google$protobuf.KDescriptorProto.KReservedRange, 'Companion', Companion_getInstance_24); + defineProp($com$google$protobuf.KDescriptorProto, 'Companion', Companion_getInstance_25); + $com$google$protobuf.KExtensionRangeOptions = KExtensionRangeOptions; + defineProp($com$google$protobuf.KExtensionRangeOptions, 'Companion', Companion_getInstance_26); + $com$google$protobuf.KFieldDescriptorProto = KFieldDescriptorProto; + $com$google$protobuf.KFieldDescriptorProto.KType = KType; + $com$google$protobuf.KFieldDescriptorProto.KType.values = values_0; + $com$google$protobuf.KFieldDescriptorProto.KType.valueOf = valueOf_0; + defineProp($com$google$protobuf.KFieldDescriptorProto.KType, 'DOUBLE', KType_DOUBLE_getInstance); + defineProp($com$google$protobuf.KFieldDescriptorProto.KType, 'FLOAT', KType_FLOAT_getInstance); + defineProp($com$google$protobuf.KFieldDescriptorProto.KType, 'INT64', KType_INT64_getInstance); + defineProp($com$google$protobuf.KFieldDescriptorProto.KType, 'UINT64', KType_UINT64_getInstance); + defineProp($com$google$protobuf.KFieldDescriptorProto.KType, 'INT32', KType_INT32_getInstance); + defineProp($com$google$protobuf.KFieldDescriptorProto.KType, 'FIXED64', KType_FIXED64_getInstance); + defineProp($com$google$protobuf.KFieldDescriptorProto.KType, 'FIXED32', KType_FIXED32_getInstance); + defineProp($com$google$protobuf.KFieldDescriptorProto.KType, 'BOOL', KType_BOOL_getInstance); + defineProp($com$google$protobuf.KFieldDescriptorProto.KType, 'STRING', KType_STRING_getInstance); + defineProp($com$google$protobuf.KFieldDescriptorProto.KType, 'GROUP', KType_GROUP_getInstance); + defineProp($com$google$protobuf.KFieldDescriptorProto.KType, 'MESSAGE', KType_MESSAGE_getInstance); + defineProp($com$google$protobuf.KFieldDescriptorProto.KType, 'BYTES', KType_BYTES_getInstance); + defineProp($com$google$protobuf.KFieldDescriptorProto.KType, 'UINT32', KType_UINT32_getInstance); + defineProp($com$google$protobuf.KFieldDescriptorProto.KType, 'ENUM', KType_ENUM_getInstance); + defineProp($com$google$protobuf.KFieldDescriptorProto.KType, 'SFIXED32', KType_SFIXED32_getInstance); + defineProp($com$google$protobuf.KFieldDescriptorProto.KType, 'SFIXED64', KType_SFIXED64_getInstance); + defineProp($com$google$protobuf.KFieldDescriptorProto.KType, 'SINT32', KType_SINT32_getInstance); + defineProp($com$google$protobuf.KFieldDescriptorProto.KType, 'SINT64', KType_SINT64_getInstance); + defineProp($com$google$protobuf.KFieldDescriptorProto.KType, 'UNRECOGNIZED', KType_UNRECOGNIZED_getInstance); + defineProp($com$google$protobuf.KFieldDescriptorProto.KType, 'Companion', Companion_getInstance_27); + $com$google$protobuf.KFieldDescriptorProto.KLabel = KLabel; + $com$google$protobuf.KFieldDescriptorProto.KLabel.values = values_1; + $com$google$protobuf.KFieldDescriptorProto.KLabel.valueOf = valueOf_1; + defineProp($com$google$protobuf.KFieldDescriptorProto.KLabel, 'OPTIONAL', KLabel_OPTIONAL_getInstance); + defineProp($com$google$protobuf.KFieldDescriptorProto.KLabel, 'REQUIRED', KLabel_REQUIRED_getInstance); + defineProp($com$google$protobuf.KFieldDescriptorProto.KLabel, 'REPEATED', KLabel_REPEATED_getInstance); + defineProp($com$google$protobuf.KFieldDescriptorProto.KLabel, 'UNRECOGNIZED', KLabel_UNRECOGNIZED_getInstance); + defineProp($com$google$protobuf.KFieldDescriptorProto.KLabel, 'Companion', Companion_getInstance_28); + defineProp($com$google$protobuf.KFieldDescriptorProto, 'Companion', Companion_getInstance_29); + $com$google$protobuf.KOneofDescriptorProto = KOneofDescriptorProto; + defineProp($com$google$protobuf.KOneofDescriptorProto, 'Companion', Companion_getInstance_30); + $com$google$protobuf.KEnumDescriptorProto = KEnumDescriptorProto; + $com$google$protobuf.KEnumDescriptorProto.KEnumReservedRange = KEnumReservedRange; + defineProp($com$google$protobuf.KEnumDescriptorProto.KEnumReservedRange, 'Companion', Companion_getInstance_31); + defineProp($com$google$protobuf.KEnumDescriptorProto, 'Companion', Companion_getInstance_32); + $com$google$protobuf.KEnumValueDescriptorProto = KEnumValueDescriptorProto; + defineProp($com$google$protobuf.KEnumValueDescriptorProto, 'Companion', Companion_getInstance_33); + $com$google$protobuf.KServiceDescriptorProto = KServiceDescriptorProto; + defineProp($com$google$protobuf.KServiceDescriptorProto, 'Companion', Companion_getInstance_34); + $com$google$protobuf.KMethodDescriptorProto = KMethodDescriptorProto; + defineProp($com$google$protobuf.KMethodDescriptorProto, 'Companion', Companion_getInstance_35); + $com$google$protobuf.KFileOptions = KFileOptions; + $com$google$protobuf.KFileOptions.KOptimizeMode = KOptimizeMode; + $com$google$protobuf.KFileOptions.KOptimizeMode.values = values_2; + $com$google$protobuf.KFileOptions.KOptimizeMode.valueOf = valueOf_2; + defineProp($com$google$protobuf.KFileOptions.KOptimizeMode, 'SPEED', KOptimizeMode_SPEED_getInstance); + defineProp($com$google$protobuf.KFileOptions.KOptimizeMode, 'CODE_SIZE', KOptimizeMode_CODE_SIZE_getInstance); + defineProp($com$google$protobuf.KFileOptions.KOptimizeMode, 'LITE_RUNTIME', KOptimizeMode_LITE_RUNTIME_getInstance); + defineProp($com$google$protobuf.KFileOptions.KOptimizeMode, 'UNRECOGNIZED', KOptimizeMode_UNRECOGNIZED_getInstance); + defineProp($com$google$protobuf.KFileOptions.KOptimizeMode, 'Companion', Companion_getInstance_36); + defineProp($com$google$protobuf.KFileOptions, 'Companion', Companion_getInstance_37); + $com$google$protobuf.KMessageOptions = KMessageOptions; + defineProp($com$google$protobuf.KMessageOptions, 'Companion', Companion_getInstance_38); + $com$google$protobuf.KFieldOptions = KFieldOptions; + $com$google$protobuf.KFieldOptions.KCType = KCType; + $com$google$protobuf.KFieldOptions.KCType.values = values_3; + $com$google$protobuf.KFieldOptions.KCType.valueOf = valueOf_3; + defineProp($com$google$protobuf.KFieldOptions.KCType, 'STRING', KCType_STRING_getInstance); + defineProp($com$google$protobuf.KFieldOptions.KCType, 'CORD', KCType_CORD_getInstance); + defineProp($com$google$protobuf.KFieldOptions.KCType, 'STRING_PIECE', KCType_STRING_PIECE_getInstance); + defineProp($com$google$protobuf.KFieldOptions.KCType, 'UNRECOGNIZED', KCType_UNRECOGNIZED_getInstance); + defineProp($com$google$protobuf.KFieldOptions.KCType, 'Companion', Companion_getInstance_39); + $com$google$protobuf.KFieldOptions.KJSType = KJSType; + $com$google$protobuf.KFieldOptions.KJSType.values = values_4; + $com$google$protobuf.KFieldOptions.KJSType.valueOf = valueOf_4; + defineProp($com$google$protobuf.KFieldOptions.KJSType, 'JS_NORMAL', KJSType_JS_NORMAL_getInstance); + defineProp($com$google$protobuf.KFieldOptions.KJSType, 'JS_STRING', KJSType_JS_STRING_getInstance); + defineProp($com$google$protobuf.KFieldOptions.KJSType, 'JS_NUMBER', KJSType_JS_NUMBER_getInstance); + defineProp($com$google$protobuf.KFieldOptions.KJSType, 'UNRECOGNIZED', KJSType_UNRECOGNIZED_getInstance); + defineProp($com$google$protobuf.KFieldOptions.KJSType, 'Companion', Companion_getInstance_40); + defineProp($com$google$protobuf.KFieldOptions, 'Companion', Companion_getInstance_41); + $com$google$protobuf.KOneofOptions = KOneofOptions; + defineProp($com$google$protobuf.KOneofOptions, 'Companion', Companion_getInstance_42); + $com$google$protobuf.KEnumOptions = KEnumOptions; + defineProp($com$google$protobuf.KEnumOptions, 'Companion', Companion_getInstance_43); + $com$google$protobuf.KEnumValueOptions = KEnumValueOptions; + defineProp($com$google$protobuf.KEnumValueOptions, 'Companion', Companion_getInstance_44); + $com$google$protobuf.KServiceOptions = KServiceOptions; + defineProp($com$google$protobuf.KServiceOptions, 'Companion', Companion_getInstance_45); + $com$google$protobuf.KMethodOptions = KMethodOptions; + $com$google$protobuf.KMethodOptions.KIdempotencyLevel = KIdempotencyLevel; + $com$google$protobuf.KMethodOptions.KIdempotencyLevel.values = values_5; + $com$google$protobuf.KMethodOptions.KIdempotencyLevel.valueOf = valueOf_5; + defineProp($com$google$protobuf.KMethodOptions.KIdempotencyLevel, 'IDEMPOTENCY_UNKNOWN', KIdempotencyLevel_IDEMPOTENCY_UNKNOWN_getInstance); + defineProp($com$google$protobuf.KMethodOptions.KIdempotencyLevel, 'NO_SIDE_EFFECTS', KIdempotencyLevel_NO_SIDE_EFFECTS_getInstance); + defineProp($com$google$protobuf.KMethodOptions.KIdempotencyLevel, 'IDEMPOTENT', KIdempotencyLevel_IDEMPOTENT_getInstance); + defineProp($com$google$protobuf.KMethodOptions.KIdempotencyLevel, 'UNRECOGNIZED', KIdempotencyLevel_UNRECOGNIZED_getInstance); + defineProp($com$google$protobuf.KMethodOptions.KIdempotencyLevel, 'Companion', Companion_getInstance_46); + defineProp($com$google$protobuf.KMethodOptions, 'Companion', Companion_getInstance_47); + $com$google$protobuf.KUninterpretedOption = KUninterpretedOption; + $com$google$protobuf.KUninterpretedOption.KNamePart = KNamePart; + defineProp($com$google$protobuf.KUninterpretedOption.KNamePart, 'Companion', Companion_getInstance_48); + defineProp($com$google$protobuf.KUninterpretedOption, 'Companion', Companion_getInstance_49); + $com$google$protobuf.KSourceCodeInfo = KSourceCodeInfo; + $com$google$protobuf.KSourceCodeInfo.KLocation = KLocation; + defineProp($com$google$protobuf.KSourceCodeInfo.KLocation, 'Companion', Companion_getInstance_50); + defineProp($com$google$protobuf.KSourceCodeInfo, 'Companion', Companion_getInstance_51); + $com$google$protobuf.KGeneratedCodeInfo = KGeneratedCodeInfo; + $com$google$protobuf.KGeneratedCodeInfo.KAnnotation = KAnnotation; + defineProp($com$google$protobuf.KGeneratedCodeInfo.KAnnotation, 'Companion', Companion_getInstance_52); + defineProp($com$google$protobuf.KGeneratedCodeInfo, 'Companion', Companion_getInstance_53); + $com$google$protobuf.values$factory = values$factory_0; + $com$google$protobuf.values$factory = values$factory_1; + $com$google$protobuf.values$factory = values$factory_2; + $com$google$protobuf.values$factory = values$factory_3; + $com$google$protobuf.values$factory = values$factory_4; + $com$google$protobuf.values$factory = values$factory_5; + var $com = _.com || (_.com = {}); + var $com$google = $com.google || ($com.google = {}); + var $com$google$protobuf = $com$google.protobuf || ($com$google.protobuf = {}); + $com$google$protobuf.KDuration = KDuration; + defineProp($com$google$protobuf.KDuration, 'Companion', Companion_getInstance_54); + var $com = _.com || (_.com = {}); + var $com$google = $com.google || ($com.google = {}); + var $com$google$protobuf = $com$google.protobuf || ($com$google.protobuf = {}); + $com$google$protobuf.KEmpty = KEmpty; + defineProp($com$google$protobuf.KEmpty, 'Companion', Companion_getInstance_55); + var $com = _.com || (_.com = {}); + var $com$google = $com.google || ($com.google = {}); + var $com$google$protobuf = $com$google.protobuf || ($com$google.protobuf = {}); + $com$google$protobuf.KFieldMask = KFieldMask; + defineProp($com$google$protobuf.KFieldMask, 'Companion', Companion_getInstance_56); + var $com = _.com || (_.com = {}); + var $com$google = $com.google || ($com.google = {}); + var $com$google$protobuf = $com$google.protobuf || ($com$google.protobuf = {}); + $com$google$protobuf.KSourceContext = KSourceContext; + defineProp($com$google$protobuf.KSourceContext, 'Companion', Companion_getInstance_57); + var $com = _.com || (_.com = {}); + var $com$google = $com.google || ($com.google = {}); + var $com$google$protobuf = $com$google.protobuf || ($com$google.protobuf = {}); + $com$google$protobuf.KNullValue = KNullValue; + $com$google$protobuf.KNullValue.values = values_6; + $com$google$protobuf.KNullValue.valueOf = valueOf_6; + defineProp($com$google$protobuf.KNullValue, 'NULL_VALUE', KNullValue_NULL_VALUE_getInstance); + defineProp($com$google$protobuf.KNullValue, 'UNRECOGNIZED', KNullValue_UNRECOGNIZED_getInstance); + defineProp($com$google$protobuf.KNullValue, 'Companion', Companion_getInstance_58); + $com$google$protobuf.KStruct = KStruct; + $com$google$protobuf.KStruct.KFieldsEntry = KFieldsEntry; + defineProp($com$google$protobuf.KStruct.KFieldsEntry, 'Companion', Companion_getInstance_59); + defineProp($com$google$protobuf.KStruct, 'Companion', Companion_getInstance_60); + $com$google$protobuf.KValue = KValue; + $com$google$protobuf.KValue.KKind = KKind; + defineProp($com$google$protobuf.KValue, 'KNullValue', KNullValue_getInstance); + defineProp($com$google$protobuf.KValue, 'KNumberValue', KNumberValue_getInstance); + defineProp($com$google$protobuf.KValue, 'KStringValue', KStringValue_getInstance); + defineProp($com$google$protobuf.KValue, 'KBoolValue', KBoolValue_getInstance); + defineProp($com$google$protobuf.KValue, 'KStructValue', KStructValue_getInstance); + defineProp($com$google$protobuf.KValue, 'KListValue', KListValue_getInstance); + defineProp($com$google$protobuf.KValue, 'Companion', Companion_getInstance_61); + $com$google$protobuf.KListValue = KListValue_0; + defineProp($com$google$protobuf.KListValue, 'Companion', Companion_getInstance_62); + $com$google$protobuf.values$factory = values$factory_6; + $com$google$protobuf.kindNumber$factory = kindNumber$factory; + $com$google$protobuf.kindValues$factory = kindValues$factory; + var $com = _.com || (_.com = {}); + var $com$google = $com.google || ($com.google = {}); + var $com$google$protobuf = $com$google.protobuf || ($com$google.protobuf = {}); + $com$google$protobuf.KTimestamp = KTimestamp; + defineProp($com$google$protobuf.KTimestamp, 'Companion', Companion_getInstance_63); + var $com = _.com || (_.com = {}); + var $com$google = $com.google || ($com.google = {}); + var $com$google$protobuf = $com$google.protobuf || ($com$google.protobuf = {}); + $com$google$protobuf.KSyntax = KSyntax; + $com$google$protobuf.KSyntax.values = values_7; + $com$google$protobuf.KSyntax.valueOf = valueOf_7; + defineProp($com$google$protobuf.KSyntax, 'PROTO2', KSyntax_PROTO2_getInstance); + defineProp($com$google$protobuf.KSyntax, 'PROTO3', KSyntax_PROTO3_getInstance); + defineProp($com$google$protobuf.KSyntax, 'UNRECOGNIZED', KSyntax_UNRECOGNIZED_getInstance); + defineProp($com$google$protobuf.KSyntax, 'Companion', Companion_getInstance_64); + $com$google$protobuf.KType = KType_0; + defineProp($com$google$protobuf.KType, 'Companion', Companion_getInstance_65); + $com$google$protobuf.KField = KField; + $com$google$protobuf.KField.KKind = KKind_0; + $com$google$protobuf.KField.KKind.values = values_8; + $com$google$protobuf.KField.KKind.valueOf = valueOf_8; + defineProp($com$google$protobuf.KField.KKind, 'TYPE_UNKNOWN', KKind_TYPE_UNKNOWN_getInstance); + defineProp($com$google$protobuf.KField.KKind, 'TYPE_DOUBLE', KKind_TYPE_DOUBLE_getInstance); + defineProp($com$google$protobuf.KField.KKind, 'TYPE_FLOAT', KKind_TYPE_FLOAT_getInstance); + defineProp($com$google$protobuf.KField.KKind, 'TYPE_INT64', KKind_TYPE_INT64_getInstance); + defineProp($com$google$protobuf.KField.KKind, 'TYPE_UINT64', KKind_TYPE_UINT64_getInstance); + defineProp($com$google$protobuf.KField.KKind, 'TYPE_INT32', KKind_TYPE_INT32_getInstance); + defineProp($com$google$protobuf.KField.KKind, 'TYPE_FIXED64', KKind_TYPE_FIXED64_getInstance); + defineProp($com$google$protobuf.KField.KKind, 'TYPE_FIXED32', KKind_TYPE_FIXED32_getInstance); + defineProp($com$google$protobuf.KField.KKind, 'TYPE_BOOL', KKind_TYPE_BOOL_getInstance); + defineProp($com$google$protobuf.KField.KKind, 'TYPE_STRING', KKind_TYPE_STRING_getInstance); + defineProp($com$google$protobuf.KField.KKind, 'TYPE_GROUP', KKind_TYPE_GROUP_getInstance); + defineProp($com$google$protobuf.KField.KKind, 'TYPE_MESSAGE', KKind_TYPE_MESSAGE_getInstance); + defineProp($com$google$protobuf.KField.KKind, 'TYPE_BYTES', KKind_TYPE_BYTES_getInstance); + defineProp($com$google$protobuf.KField.KKind, 'TYPE_UINT32', KKind_TYPE_UINT32_getInstance); + defineProp($com$google$protobuf.KField.KKind, 'TYPE_ENUM', KKind_TYPE_ENUM_getInstance); + defineProp($com$google$protobuf.KField.KKind, 'TYPE_SFIXED32', KKind_TYPE_SFIXED32_getInstance); + defineProp($com$google$protobuf.KField.KKind, 'TYPE_SFIXED64', KKind_TYPE_SFIXED64_getInstance); + defineProp($com$google$protobuf.KField.KKind, 'TYPE_SINT32', KKind_TYPE_SINT32_getInstance); + defineProp($com$google$protobuf.KField.KKind, 'TYPE_SINT64', KKind_TYPE_SINT64_getInstance); + defineProp($com$google$protobuf.KField.KKind, 'UNRECOGNIZED', KKind_UNRECOGNIZED_getInstance); + defineProp($com$google$protobuf.KField.KKind, 'Companion', Companion_getInstance_66); + $com$google$protobuf.KField.KCardinality = KCardinality; + $com$google$protobuf.KField.KCardinality.values = values_9; + $com$google$protobuf.KField.KCardinality.valueOf = valueOf_9; + defineProp($com$google$protobuf.KField.KCardinality, 'UNKNOWN', KCardinality_UNKNOWN_getInstance); + defineProp($com$google$protobuf.KField.KCardinality, 'OPTIONAL', KCardinality_OPTIONAL_getInstance); + defineProp($com$google$protobuf.KField.KCardinality, 'REQUIRED', KCardinality_REQUIRED_getInstance); + defineProp($com$google$protobuf.KField.KCardinality, 'REPEATED', KCardinality_REPEATED_getInstance); + defineProp($com$google$protobuf.KField.KCardinality, 'UNRECOGNIZED', KCardinality_UNRECOGNIZED_getInstance); + defineProp($com$google$protobuf.KField.KCardinality, 'Companion', Companion_getInstance_67); + defineProp($com$google$protobuf.KField, 'Companion', Companion_getInstance_68); + $com$google$protobuf.KEnum = KEnum; + defineProp($com$google$protobuf.KEnum, 'Companion', Companion_getInstance_69); + $com$google$protobuf.KEnumValue = KEnumValue; + defineProp($com$google$protobuf.KEnumValue, 'Companion', Companion_getInstance_70); + $com$google$protobuf.KOption = KOption; + defineProp($com$google$protobuf.KOption, 'Companion', Companion_getInstance_71); + $com$google$protobuf.values$factory = values$factory_7; + $com$google$protobuf.values$factory = values$factory_8; + $com$google$protobuf.values$factory = values$factory_9; + var $com = _.com || (_.com = {}); + var $com$google = $com.google || ($com.google = {}); + var $com$google$protobuf = $com$google.protobuf || ($com$google.protobuf = {}); + $com$google$protobuf.KDoubleValue = KDoubleValue; + defineProp($com$google$protobuf.KDoubleValue, 'Companion', Companion_getInstance_72); + $com$google$protobuf.KFloatValue = KFloatValue; + defineProp($com$google$protobuf.KFloatValue, 'Companion', Companion_getInstance_73); + $com$google$protobuf.KInt64Value = KInt64Value; + defineProp($com$google$protobuf.KInt64Value, 'Companion', Companion_getInstance_74); + $com$google$protobuf.KUInt64Value = KUInt64Value; + defineProp($com$google$protobuf.KUInt64Value, 'Companion', Companion_getInstance_75); + $com$google$protobuf.KInt32Value = KInt32Value; + defineProp($com$google$protobuf.KInt32Value, 'Companion', Companion_getInstance_76); + $com$google$protobuf.KUInt32Value = KUInt32Value; + defineProp($com$google$protobuf.KUInt32Value, 'Companion', Companion_getInstance_77); + $com$google$protobuf.KBoolValue = KBoolValue_0; + defineProp($com$google$protobuf.KBoolValue, 'Companion', Companion_getInstance_78); + $com$google$protobuf.KStringValue = KStringValue_0; + defineProp($com$google$protobuf.KStringValue, 'Companion', Companion_getInstance_79); + $com$google$protobuf.KBytesValue = KBytesValue; + defineProp($com$google$protobuf.KBytesValue, 'Companion', Companion_getInstance_80); + var $com = _.com || (_.com = {}); + var $com$bapis = $com.bapis || ($com.bapis = {}); + var $com$bapis$bilibili = $com$bapis.bilibili || ($com$bapis.bilibili = {}); + var $com$bapis$bilibili$playershared = $com$bapis$bilibili.playershared || ($com$bapis$bilibili.playershared = {}); + $com$bapis$bilibili$playershared.KConfType = KConfType; + $com$bapis$bilibili$playershared.KConfType.values = values_10; + $com$bapis$bilibili$playershared.KConfType.valueOf = valueOf_10; + defineProp($com$bapis$bilibili$playershared.KConfType, 'NO_TYPE', KConfType_NO_TYPE_getInstance); + defineProp($com$bapis$bilibili$playershared.KConfType, 'FLIPCONF', KConfType_FLIPCONF_getInstance); + defineProp($com$bapis$bilibili$playershared.KConfType, 'CASTCONF', KConfType_CASTCONF_getInstance); + defineProp($com$bapis$bilibili$playershared.KConfType, 'FEEDBACK', KConfType_FEEDBACK_getInstance); + defineProp($com$bapis$bilibili$playershared.KConfType, 'SUBTITLE', KConfType_SUBTITLE_getInstance); + defineProp($com$bapis$bilibili$playershared.KConfType, 'PLAYBACKRATE', KConfType_PLAYBACKRATE_getInstance); + defineProp($com$bapis$bilibili$playershared.KConfType, 'TIMEUP', KConfType_TIMEUP_getInstance); + defineProp($com$bapis$bilibili$playershared.KConfType, 'PLAYBACKMODE', KConfType_PLAYBACKMODE_getInstance); + defineProp($com$bapis$bilibili$playershared.KConfType, 'SCALEMODE', KConfType_SCALEMODE_getInstance); + defineProp($com$bapis$bilibili$playershared.KConfType, 'BACKGROUNDPLAY', KConfType_BACKGROUNDPLAY_getInstance); + defineProp($com$bapis$bilibili$playershared.KConfType, 'LIKE', KConfType_LIKE_getInstance); + defineProp($com$bapis$bilibili$playershared.KConfType, 'DISLIKE', KConfType_DISLIKE_getInstance); + defineProp($com$bapis$bilibili$playershared.KConfType, 'COIN', KConfType_COIN_getInstance); + defineProp($com$bapis$bilibili$playershared.KConfType, 'ELEC', KConfType_ELEC_getInstance); + defineProp($com$bapis$bilibili$playershared.KConfType, 'SHARE', KConfType_SHARE_getInstance); + defineProp($com$bapis$bilibili$playershared.KConfType, 'SCREENSHOT', KConfType_SCREENSHOT_getInstance); + defineProp($com$bapis$bilibili$playershared.KConfType, 'LOCKSCREEN', KConfType_LOCKSCREEN_getInstance); + defineProp($com$bapis$bilibili$playershared.KConfType, 'RECOMMEND', KConfType_RECOMMEND_getInstance); + defineProp($com$bapis$bilibili$playershared.KConfType, 'PLAYBACKSPEED', KConfType_PLAYBACKSPEED_getInstance); + defineProp($com$bapis$bilibili$playershared.KConfType, 'DEFINITION', KConfType_DEFINITION_getInstance); + defineProp($com$bapis$bilibili$playershared.KConfType, 'SELECTIONS', KConfType_SELECTIONS_getInstance); + defineProp($com$bapis$bilibili$playershared.KConfType, 'NEXT', KConfType_NEXT_getInstance); + defineProp($com$bapis$bilibili$playershared.KConfType, 'EDITDM', KConfType_EDITDM_getInstance); + defineProp($com$bapis$bilibili$playershared.KConfType, 'SMALLWINDOW', KConfType_SMALLWINDOW_getInstance); + defineProp($com$bapis$bilibili$playershared.KConfType, 'SHAKE', KConfType_SHAKE_getInstance); + defineProp($com$bapis$bilibili$playershared.KConfType, 'OUTERDM', KConfType_OUTERDM_getInstance); + defineProp($com$bapis$bilibili$playershared.KConfType, 'INNERDM', KConfType_INNERDM_getInstance); + defineProp($com$bapis$bilibili$playershared.KConfType, 'PANORAMA', KConfType_PANORAMA_getInstance); + defineProp($com$bapis$bilibili$playershared.KConfType, 'DOLBY', KConfType_DOLBY_getInstance); + defineProp($com$bapis$bilibili$playershared.KConfType, 'COLORFILTER', KConfType_COLORFILTER_getInstance); + defineProp($com$bapis$bilibili$playershared.KConfType, 'LOSSLESS', KConfType_LOSSLESS_getInstance); + defineProp($com$bapis$bilibili$playershared.KConfType, 'FREYAENTER', KConfType_FREYAENTER_getInstance); + defineProp($com$bapis$bilibili$playershared.KConfType, 'FREYAFULLENTER', KConfType_FREYAFULLENTER_getInstance); + defineProp($com$bapis$bilibili$playershared.KConfType, 'SKIPOPED', KConfType_SKIPOPED_getInstance); + defineProp($com$bapis$bilibili$playershared.KConfType, 'RECORDSCREEN', KConfType_RECORDSCREEN_getInstance); + defineProp($com$bapis$bilibili$playershared.KConfType, 'DUBBING', KConfType_DUBBING_getInstance); + defineProp($com$bapis$bilibili$playershared.KConfType, 'LISTEN', KConfType_LISTEN_getInstance); + defineProp($com$bapis$bilibili$playershared.KConfType, 'UNRECOGNIZED', KConfType_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$playershared.KConfType, 'Companion', Companion_getInstance_81); + $com$bapis$bilibili$playershared.KUnsupportScene = KUnsupportScene; + $com$bapis$bilibili$playershared.KUnsupportScene.values = values_11; + $com$bapis$bilibili$playershared.KUnsupportScene.valueOf = valueOf_11; + defineProp($com$bapis$bilibili$playershared.KUnsupportScene, 'UNKNOWN_SCENE', KUnsupportScene_UNKNOWN_SCENE_getInstance); + defineProp($com$bapis$bilibili$playershared.KUnsupportScene, 'PREMIERE', KUnsupportScene_PREMIERE_getInstance); + defineProp($com$bapis$bilibili$playershared.KUnsupportScene, 'UNRECOGNIZED', KUnsupportScene_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$playershared.KUnsupportScene, 'Companion', Companion_getInstance_82); + $com$bapis$bilibili$playershared.KPlayArcConf = KPlayArcConf; + $com$bapis$bilibili$playershared.KPlayArcConf.KArcConfsEntry = KArcConfsEntry; + defineProp($com$bapis$bilibili$playershared.KPlayArcConf.KArcConfsEntry, 'Companion', Companion_getInstance_83); + defineProp($com$bapis$bilibili$playershared.KPlayArcConf, 'Companion', Companion_getInstance_84); + $com$bapis$bilibili$playershared.KArcConf = KArcConf; + defineProp($com$bapis$bilibili$playershared.KArcConf, 'Companion', Companion_getInstance_85); + $com$bapis$bilibili$playershared.KExtraContent = KExtraContent; + defineProp($com$bapis$bilibili$playershared.KExtraContent, 'Companion', Companion_getInstance_86); + $com$bapis$bilibili$playershared.KPlayDeviceConf = KPlayDeviceConf; + $com$bapis$bilibili$playershared.KPlayDeviceConf.KDeviceConfsEntry = KDeviceConfsEntry; + defineProp($com$bapis$bilibili$playershared.KPlayDeviceConf.KDeviceConfsEntry, 'Companion', Companion_getInstance_87); + defineProp($com$bapis$bilibili$playershared.KPlayDeviceConf, 'Companion', Companion_getInstance_88); + $com$bapis$bilibili$playershared.KConfValue = KConfValue; + $com$bapis$bilibili$playershared.KConfValue.KValue = KValue_0; + defineProp($com$bapis$bilibili$playershared.KConfValue, 'KSwitchVal', KSwitchVal_getInstance); + defineProp($com$bapis$bilibili$playershared.KConfValue, 'KSelectedVal', KSelectedVal_getInstance); + defineProp($com$bapis$bilibili$playershared.KConfValue, 'Companion', Companion_getInstance_89); + $com$bapis$bilibili$playershared.KDeviceConf = KDeviceConf; + defineProp($com$bapis$bilibili$playershared.KDeviceConf, 'Companion', Companion_getInstance_90); + $com$bapis$bilibili$playershared.values$factory = values$factory_10; + $com$bapis$bilibili$playershared.values$factory = values$factory_11; + $com$bapis$bilibili$playershared.valueNumber$factory = valueNumber$factory; + $com$bapis$bilibili$playershared.valueValues$factory = valueValues$factory; + var $com = _.com || (_.com = {}); + var $com$bapis = $com.bapis || ($com.bapis = {}); + var $com$bapis$bilibili = $com$bapis.bilibili || ($com$bapis.bilibili = {}); + var $com$bapis$bilibili$playershared = $com$bapis$bilibili.playershared || ($com$bapis$bilibili.playershared = {}); + $com$bapis$bilibili$playershared.KToastType = KToastType; + $com$bapis$bilibili$playershared.KToastType.values = values_12; + $com$bapis$bilibili$playershared.KToastType.valueOf = valueOf_12; + defineProp($com$bapis$bilibili$playershared.KToastType, 'UNKNOWN', KToastType_UNKNOWN_getInstance); + defineProp($com$bapis$bilibili$playershared.KToastType, 'VIP_CONTENT_REMIND', KToastType_VIP_CONTENT_REMIND_getInstance); + defineProp($com$bapis$bilibili$playershared.KToastType, 'VIP_DEFINITION_REMIND', KToastType_VIP_DEFINITION_REMIND_getInstance); + defineProp($com$bapis$bilibili$playershared.KToastType, 'VIP_DEFINITION_GUIDE', KToastType_VIP_DEFINITION_GUIDE_getInstance); + defineProp($com$bapis$bilibili$playershared.KToastType, 'OGV_VIDEO_START_TOAST', KToastType_OGV_VIDEO_START_TOAST_getInstance); + defineProp($com$bapis$bilibili$playershared.KToastType, 'CHARGING_TOAST', KToastType_CHARGING_TOAST_getInstance); + defineProp($com$bapis$bilibili$playershared.KToastType, 'VIP_SKIP_FRAGMENT_TOAST', KToastType_VIP_SKIP_FRAGMENT_TOAST_getInstance); + defineProp($com$bapis$bilibili$playershared.KToastType, 'UNRECOGNIZED', KToastType_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$playershared.KToastType, 'Companion', Companion_getInstance_91); + $com$bapis$bilibili$playershared.KShowStyleType = KShowStyleType; + $com$bapis$bilibili$playershared.KShowStyleType.values = values_13; + $com$bapis$bilibili$playershared.KShowStyleType.valueOf = valueOf_13; + defineProp($com$bapis$bilibili$playershared.KShowStyleType, 'UNKNOWN', KShowStyleType_UNKNOWN_getInstance); + defineProp($com$bapis$bilibili$playershared.KShowStyleType, 'ORDINARY', KShowStyleType_ORDINARY_getInstance); + defineProp($com$bapis$bilibili$playershared.KShowStyleType, 'RESIDENT', KShowStyleType_RESIDENT_getInstance); + defineProp($com$bapis$bilibili$playershared.KShowStyleType, 'UNRECOGNIZED', KShowStyleType_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$playershared.KShowStyleType, 'Companion', Companion_getInstance_92); + $com$bapis$bilibili$playershared.KGuideStyle = KGuideStyle; + $com$bapis$bilibili$playershared.KGuideStyle.values = values_14; + $com$bapis$bilibili$playershared.KGuideStyle.valueOf = valueOf_14; + defineProp($com$bapis$bilibili$playershared.KGuideStyle, 'STYLE_UNKNOWN', KGuideStyle_STYLE_UNKNOWN_getInstance); + defineProp($com$bapis$bilibili$playershared.KGuideStyle, 'HORIZONTAL_IMAGE', KGuideStyle_HORIZONTAL_IMAGE_getInstance); + defineProp($com$bapis$bilibili$playershared.KGuideStyle, 'VERTICAL_TEXT', KGuideStyle_VERTICAL_TEXT_getInstance); + defineProp($com$bapis$bilibili$playershared.KGuideStyle, 'SIMPLE_TEXT', KGuideStyle_SIMPLE_TEXT_getInstance); + defineProp($com$bapis$bilibili$playershared.KGuideStyle, 'CHARGING_TEXT', KGuideStyle_CHARGING_TEXT_getInstance); + defineProp($com$bapis$bilibili$playershared.KGuideStyle, 'UNRECOGNIZED', KGuideStyle_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$playershared.KGuideStyle, 'Companion', Companion_getInstance_93); + $com$bapis$bilibili$playershared.KPromptBarType = KPromptBarType; + $com$bapis$bilibili$playershared.KPromptBarType.values = values_15; + $com$bapis$bilibili$playershared.KPromptBarType.valueOf = valueOf_15; + defineProp($com$bapis$bilibili$playershared.KPromptBarType, 'UNKNOWN', KPromptBarType_UNKNOWN_getInstance); + defineProp($com$bapis$bilibili$playershared.KPromptBarType, 'OPEN_PROMPT_BAR', KPromptBarType_OPEN_PROMPT_BAR_getInstance); + defineProp($com$bapis$bilibili$playershared.KPromptBarType, 'TRY_PROMPT_BAR', KPromptBarType_TRY_PROMPT_BAR_getInstance); + defineProp($com$bapis$bilibili$playershared.KPromptBarType, 'UNRECOGNIZED', KPromptBarType_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$playershared.KPromptBarType, 'Companion', Companion_getInstance_94); + $com$bapis$bilibili$playershared.KPromptBarStyle = KPromptBarStyle; + $com$bapis$bilibili$playershared.KPromptBarStyle.values = values_16; + $com$bapis$bilibili$playershared.KPromptBarStyle.valueOf = valueOf_16; + defineProp($com$bapis$bilibili$playershared.KPromptBarStyle, 'UNKNOWN', KPromptBarStyle_UNKNOWN_getInstance); + defineProp($com$bapis$bilibili$playershared.KPromptBarStyle, 'TEXT', KPromptBarStyle_TEXT_getInstance); + defineProp($com$bapis$bilibili$playershared.KPromptBarStyle, 'CURING_BENEFITS', KPromptBarStyle_CURING_BENEFITS_getInstance); + defineProp($com$bapis$bilibili$playershared.KPromptBarStyle, 'CARD_OPENING_GIFT', KPromptBarStyle_CARD_OPENING_GIFT_getInstance); + defineProp($com$bapis$bilibili$playershared.KPromptBarStyle, 'COUNTDOWN', KPromptBarStyle_COUNTDOWN_getInstance); + defineProp($com$bapis$bilibili$playershared.KPromptBarStyle, 'UNRECOGNIZED', KPromptBarStyle_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$playershared.KPromptBarStyle, 'Companion', Companion_getInstance_95); + $com$bapis$bilibili$playershared.KLimitActionType = KLimitActionType; + $com$bapis$bilibili$playershared.KLimitActionType.values = values_17; + $com$bapis$bilibili$playershared.KLimitActionType.valueOf = valueOf_17; + defineProp($com$bapis$bilibili$playershared.KLimitActionType, 'LAT_UNKNOWN', KLimitActionType_LAT_UNKNOWN_getInstance); + defineProp($com$bapis$bilibili$playershared.KLimitActionType, 'SHOW_LIMIT_DIALOG', KLimitActionType_SHOW_LIMIT_DIALOG_getInstance); + defineProp($com$bapis$bilibili$playershared.KLimitActionType, 'SKIP_CURRENT_EP', KLimitActionType_SKIP_CURRENT_EP_getInstance); + defineProp($com$bapis$bilibili$playershared.KLimitActionType, 'UNRECOGNIZED', KLimitActionType_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$playershared.KLimitActionType, 'Companion', Companion_getInstance_96); + $com$bapis$bilibili$playershared.KExtDataType = KExtDataType; + $com$bapis$bilibili$playershared.KExtDataType.values = values_18; + $com$bapis$bilibili$playershared.KExtDataType.valueOf = valueOf_18; + defineProp($com$bapis$bilibili$playershared.KExtDataType, 'UNKNOWN', KExtDataType_UNKNOWN_getInstance); + defineProp($com$bapis$bilibili$playershared.KExtDataType, 'PLAY_LIST', KExtDataType_PLAY_LIST_getInstance); + defineProp($com$bapis$bilibili$playershared.KExtDataType, 'BANNER', KExtDataType_BANNER_getInstance); + defineProp($com$bapis$bilibili$playershared.KExtDataType, 'HE_INLINE', KExtDataType_HE_INLINE_getInstance); + defineProp($com$bapis$bilibili$playershared.KExtDataType, 'UNRECOGNIZED', KExtDataType_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$playershared.KExtDataType, 'Companion', Companion_getInstance_97); + $com$bapis$bilibili$playershared.KEffects = KEffects; + $com$bapis$bilibili$playershared.KEffects.values = values_19; + $com$bapis$bilibili$playershared.KEffects.valueOf = valueOf_19; + defineProp($com$bapis$bilibili$playershared.KEffects, 'UNKNOWN', KEffects_UNKNOWN_getInstance); + defineProp($com$bapis$bilibili$playershared.KEffects, 'GAUSSIAN_BLUR', KEffects_GAUSSIAN_BLUR_getInstance); + defineProp($com$bapis$bilibili$playershared.KEffects, 'HALF_ALPHA', KEffects_HALF_ALPHA_getInstance); + defineProp($com$bapis$bilibili$playershared.KEffects, 'UNRECOGNIZED', KEffects_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$playershared.KEffects, 'Companion', Companion_getInstance_98); + $com$bapis$bilibili$playershared.KButtonAction = KButtonAction; + $com$bapis$bilibili$playershared.KButtonAction.values = values_20; + $com$bapis$bilibili$playershared.KButtonAction.valueOf = valueOf_20; + defineProp($com$bapis$bilibili$playershared.KButtonAction, 'BUTTON_UNKNOWN', KButtonAction_BUTTON_UNKNOWN_getInstance); + defineProp($com$bapis$bilibili$playershared.KButtonAction, 'PAY', KButtonAction_PAY_getInstance); + defineProp($com$bapis$bilibili$playershared.KButtonAction, 'VIP', KButtonAction_VIP_getInstance); + defineProp($com$bapis$bilibili$playershared.KButtonAction, 'PACK', KButtonAction_PACK_getInstance); + defineProp($com$bapis$bilibili$playershared.KButtonAction, 'LINK', KButtonAction_LINK_getInstance); + defineProp($com$bapis$bilibili$playershared.KButtonAction, 'COUPON', KButtonAction_COUPON_getInstance); + defineProp($com$bapis$bilibili$playershared.KButtonAction, 'DEMAND', KButtonAction_DEMAND_getInstance); + defineProp($com$bapis$bilibili$playershared.KButtonAction, 'DEMAND_PACK', KButtonAction_DEMAND_PACK_getInstance); + defineProp($com$bapis$bilibili$playershared.KButtonAction, 'FOLLOW', KButtonAction_FOLLOW_getInstance); + defineProp($com$bapis$bilibili$playershared.KButtonAction, 'APPOINTMENT', KButtonAction_APPOINTMENT_getInstance); + defineProp($com$bapis$bilibili$playershared.KButtonAction, 'VIP_FREE', KButtonAction_VIP_FREE_getInstance); + defineProp($com$bapis$bilibili$playershared.KButtonAction, 'TASK', KButtonAction_TASK_getInstance); + defineProp($com$bapis$bilibili$playershared.KButtonAction, 'CHARGINGPLUS', KButtonAction_CHARGINGPLUS_getInstance); + defineProp($com$bapis$bilibili$playershared.KButtonAction, 'BP', KButtonAction_BP_getInstance); + defineProp($com$bapis$bilibili$playershared.KButtonAction, 'PRE_SELL', KButtonAction_PRE_SELL_getInstance); + defineProp($com$bapis$bilibili$playershared.KButtonAction, 'LOGIN', KButtonAction_LOGIN_getInstance); + defineProp($com$bapis$bilibili$playershared.KButtonAction, 'UNRECOGNIZED', KButtonAction_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$playershared.KButtonAction, 'Companion', Companion_getInstance_99); + $com$bapis$bilibili$playershared.KViewInfo = KViewInfo; + $com$bapis$bilibili$playershared.KViewInfo.KDialogMapEntry = KDialogMapEntry; + defineProp($com$bapis$bilibili$playershared.KViewInfo.KDialogMapEntry, 'Companion', Companion_getInstance_100); + defineProp($com$bapis$bilibili$playershared.KViewInfo, 'Companion', Companion_getInstance_101); + $com$bapis$bilibili$playershared.KComprehensiveToast = KComprehensiveToast; + $com$bapis$bilibili$playershared.KComprehensiveToast.KOrderReportParamsEntry = KOrderReportParamsEntry; + defineProp($com$bapis$bilibili$playershared.KComprehensiveToast.KOrderReportParamsEntry, 'Companion', Companion_getInstance_102); + defineProp($com$bapis$bilibili$playershared.KComprehensiveToast, 'Companion', Companion_getInstance_103); + $com$bapis$bilibili$playershared.KPromptBar = KPromptBar; + defineProp($com$bapis$bilibili$playershared.KPromptBar, 'Companion', Companion_getInstance_104); + $com$bapis$bilibili$playershared.KBenefitInfo = KBenefitInfo; + defineProp($com$bapis$bilibili$playershared.KBenefitInfo, 'Companion', Companion_getInstance_105); + $com$bapis$bilibili$playershared.KDialog = KDialog; + defineProp($com$bapis$bilibili$playershared.KDialog, 'Companion', Companion_getInstance_106); + $com$bapis$bilibili$playershared.KBottomDisplay = KBottomDisplay; + defineProp($com$bapis$bilibili$playershared.KBottomDisplay, 'Companion', Companion_getInstance_107); + $com$bapis$bilibili$playershared.KReport = KReport; + defineProp($com$bapis$bilibili$playershared.KReport, 'Companion', Companion_getInstance_108); + $com$bapis$bilibili$playershared.KTextInfo = KTextInfo; + defineProp($com$bapis$bilibili$playershared.KTextInfo, 'Companion', Companion_getInstance_109); + $com$bapis$bilibili$playershared.KImageInfo = KImageInfo; + defineProp($com$bapis$bilibili$playershared.KImageInfo, 'Companion', Companion_getInstance_110); + $com$bapis$bilibili$playershared.KExtData = KExtData; + $com$bapis$bilibili$playershared.KExtData.KData = KData; + defineProp($com$bapis$bilibili$playershared.KExtData, 'KPlayListInfo', KPlayListInfo_getInstance); + defineProp($com$bapis$bilibili$playershared.KExtData, 'KBanner', KBanner_getInstance); + defineProp($com$bapis$bilibili$playershared.KExtData, 'KEpInlineVideoInfo', KEpInlineVideoInfo_getInstance); + defineProp($com$bapis$bilibili$playershared.KExtData, 'Companion', Companion_getInstance_111); + $com$bapis$bilibili$playershared.KBanner = KBanner_0; + defineProp($com$bapis$bilibili$playershared.KBanner, 'Companion', Companion_getInstance_112); + $com$bapis$bilibili$playershared.KEpInlineVideoInfo = KEpInlineVideoInfo_0; + defineProp($com$bapis$bilibili$playershared.KEpInlineVideoInfo, 'Companion', Companion_getInstance_113); + $com$bapis$bilibili$playershared.KEpInlineVideo = KEpInlineVideo; + defineProp($com$bapis$bilibili$playershared.KEpInlineVideo, 'Companion', Companion_getInstance_114); + $com$bapis$bilibili$playershared.KPlayListInfo = KPlayListInfo_0; + defineProp($com$bapis$bilibili$playershared.KPlayListInfo, 'Companion', Companion_getInstance_115); + $com$bapis$bilibili$playershared.KPlayList = KPlayList; + defineProp($com$bapis$bilibili$playershared.KPlayList, 'Companion', Companion_getInstance_116); + $com$bapis$bilibili$playershared.KBadgeInfo = KBadgeInfo; + defineProp($com$bapis$bilibili$playershared.KBadgeInfo, 'Companion', Companion_getInstance_117); + $com$bapis$bilibili$playershared.KGradientColor = KGradientColor; + defineProp($com$bapis$bilibili$playershared.KGradientColor, 'Companion', Companion_getInstance_118); + $com$bapis$bilibili$playershared.KBackgroundInfo = KBackgroundInfo; + defineProp($com$bapis$bilibili$playershared.KBackgroundInfo, 'Companion', Companion_getInstance_119); + $com$bapis$bilibili$playershared.KButtonInfo = KButtonInfo; + $com$bapis$bilibili$playershared.KButtonInfo.KOrderReportParamsEntry = KOrderReportParamsEntry_0; + defineProp($com$bapis$bilibili$playershared.KButtonInfo.KOrderReportParamsEntry, 'Companion', Companion_getInstance_120); + defineProp($com$bapis$bilibili$playershared.KButtonInfo, 'Companion', Companion_getInstance_121); + $com$bapis$bilibili$playershared.KTaskParam = KTaskParam; + defineProp($com$bapis$bilibili$playershared.KTaskParam, 'Companion', Companion_getInstance_122); + $com$bapis$bilibili$playershared.values$factory = values$factory_12; + $com$bapis$bilibili$playershared.values$factory = values$factory_13; + $com$bapis$bilibili$playershared.values$factory = values$factory_14; + $com$bapis$bilibili$playershared.values$factory = values$factory_15; + $com$bapis$bilibili$playershared.values$factory = values$factory_16; + $com$bapis$bilibili$playershared.values$factory = values$factory_17; + $com$bapis$bilibili$playershared.values$factory = values$factory_18; + $com$bapis$bilibili$playershared.values$factory = values$factory_19; + $com$bapis$bilibili$playershared.values$factory = values$factory_20; + $com$bapis$bilibili$playershared.dataNumber$factory = dataNumber$factory; + $com$bapis$bilibili$playershared.dataValues$factory = dataValues$factory; + var $com = _.com || (_.com = {}); + var $com$bapis = $com.bapis || ($com.bapis = {}); + var $com$bapis$bilibili = $com$bapis.bilibili || ($com$bapis.bilibili = {}); + var $com$bapis$bilibili$playershared = $com$bapis$bilibili.playershared || ($com$bapis$bilibili.playershared = {}); + $com$bapis$bilibili$playershared.KCodeType = KCodeType; + $com$bapis$bilibili$playershared.KCodeType.values = values_21; + $com$bapis$bilibili$playershared.KCodeType.valueOf = valueOf_21; + defineProp($com$bapis$bilibili$playershared.KCodeType, 'NOCODE', KCodeType_NOCODE_getInstance); + defineProp($com$bapis$bilibili$playershared.KCodeType, 'CODE264', KCodeType_CODE264_getInstance); + defineProp($com$bapis$bilibili$playershared.KCodeType, 'CODE265', KCodeType_CODE265_getInstance); + defineProp($com$bapis$bilibili$playershared.KCodeType, 'CODEAV1', KCodeType_CODEAV1_getInstance); + defineProp($com$bapis$bilibili$playershared.KCodeType, 'UNRECOGNIZED', KCodeType_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$playershared.KCodeType, 'Companion', Companion_getInstance_123); + $com$bapis$bilibili$playershared.KPlayErr = KPlayErr; + $com$bapis$bilibili$playershared.KPlayErr.values = values_22; + $com$bapis$bilibili$playershared.KPlayErr.valueOf = valueOf_22; + defineProp($com$bapis$bilibili$playershared.KPlayErr, 'NO_ERR', KPlayErr_NO_ERR_getInstance); + defineProp($com$bapis$bilibili$playershared.KPlayErr, 'WITH_MULTI_DEVICE_LOGIN_ERR', KPlayErr_WITH_MULTI_DEVICE_LOGIN_ERR_getInstance); + defineProp($com$bapis$bilibili$playershared.KPlayErr, 'UNRECOGNIZED', KPlayErr_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$playershared.KPlayErr, 'Companion', Companion_getInstance_124); + $com$bapis$bilibili$playershared.KFragmentType = KFragmentType; + $com$bapis$bilibili$playershared.KFragmentType.values = values_23; + $com$bapis$bilibili$playershared.KFragmentType.valueOf = valueOf_23; + defineProp($com$bapis$bilibili$playershared.KFragmentType, 'UNKNOWN', KFragmentType_UNKNOWN_getInstance); + defineProp($com$bapis$bilibili$playershared.KFragmentType, 'AD_FRAGMENT', KFragmentType_AD_FRAGMENT_getInstance); + defineProp($com$bapis$bilibili$playershared.KFragmentType, 'OGV_FRAGMENT', KFragmentType_OGV_FRAGMENT_getInstance); + defineProp($com$bapis$bilibili$playershared.KFragmentType, 'UNRECOGNIZED', KFragmentType_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$playershared.KFragmentType, 'Companion', Companion_getInstance_125); + $com$bapis$bilibili$playershared.KFragmentPosition = KFragmentPosition; + $com$bapis$bilibili$playershared.KFragmentPosition.values = values_24; + $com$bapis$bilibili$playershared.KFragmentPosition.valueOf = valueOf_24; + defineProp($com$bapis$bilibili$playershared.KFragmentPosition, 'INVALID', KFragmentPosition_INVALID_getInstance); + defineProp($com$bapis$bilibili$playershared.KFragmentPosition, 'PRE', KFragmentPosition_PRE_getInstance); + defineProp($com$bapis$bilibili$playershared.KFragmentPosition, 'MIDDLE', KFragmentPosition_MIDDLE_getInstance); + defineProp($com$bapis$bilibili$playershared.KFragmentPosition, 'POST', KFragmentPosition_POST_getInstance); + defineProp($com$bapis$bilibili$playershared.KFragmentPosition, 'UNRECOGNIZED', KFragmentPosition_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$playershared.KFragmentPosition, 'Companion', Companion_getInstance_126); + $com$bapis$bilibili$playershared.KArcType = KArcType; + $com$bapis$bilibili$playershared.KArcType.values = values_25; + $com$bapis$bilibili$playershared.KArcType.valueOf = valueOf_25; + defineProp($com$bapis$bilibili$playershared.KArcType, 'NORMAL', KArcType_NORMAL_getInstance); + defineProp($com$bapis$bilibili$playershared.KArcType, 'INTERACT', KArcType_INTERACT_getInstance); + defineProp($com$bapis$bilibili$playershared.KArcType, 'UNRECOGNIZED', KArcType_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$playershared.KArcType, 'Companion', Companion_getInstance_127); + $com$bapis$bilibili$playershared.KDrmTechType = KDrmTechType; + $com$bapis$bilibili$playershared.KDrmTechType.values = values_26; + $com$bapis$bilibili$playershared.KDrmTechType.valueOf = valueOf_26; + defineProp($com$bapis$bilibili$playershared.KDrmTechType, 'UNKNOWN_DRM', KDrmTechType_UNKNOWN_DRM_getInstance); + defineProp($com$bapis$bilibili$playershared.KDrmTechType, 'FAIR_PLAY', KDrmTechType_FAIR_PLAY_getInstance); + defineProp($com$bapis$bilibili$playershared.KDrmTechType, 'WIDE_VINE', KDrmTechType_WIDE_VINE_getInstance); + defineProp($com$bapis$bilibili$playershared.KDrmTechType, 'BILI_DRM', KDrmTechType_BILI_DRM_getInstance); + defineProp($com$bapis$bilibili$playershared.KDrmTechType, 'UNRECOGNIZED', KDrmTechType_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$playershared.KDrmTechType, 'Companion', Companion_getInstance_128); + $com$bapis$bilibili$playershared.KBizType = KBizType; + $com$bapis$bilibili$playershared.KBizType.values = values_27; + $com$bapis$bilibili$playershared.KBizType.valueOf = valueOf_27; + defineProp($com$bapis$bilibili$playershared.KBizType, 'UNKNOWN', KBizType_UNKNOWN_getInstance); + defineProp($com$bapis$bilibili$playershared.KBizType, 'UGC', KBizType_UGC_getInstance); + defineProp($com$bapis$bilibili$playershared.KBizType, 'PGC', KBizType_PGC_getInstance); + defineProp($com$bapis$bilibili$playershared.KBizType, 'PUGV', KBizType_PUGV_getInstance); + defineProp($com$bapis$bilibili$playershared.KBizType, 'UNRECOGNIZED', KBizType_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$playershared.KBizType, 'Companion', Companion_getInstance_129); + $com$bapis$bilibili$playershared.KVideoVod = KVideoVod; + defineProp($com$bapis$bilibili$playershared.KVideoVod, 'Companion', Companion_getInstance_130); + $com$bapis$bilibili$playershared.KVodInfo = KVodInfo; + defineProp($com$bapis$bilibili$playershared.KVodInfo, 'Companion', Companion_getInstance_131); + $com$bapis$bilibili$playershared.KFragmentVideo = KFragmentVideo; + defineProp($com$bapis$bilibili$playershared.KFragmentVideo, 'Companion', Companion_getInstance_132); + $com$bapis$bilibili$playershared.KFragmentVideoInfo = KFragmentVideoInfo; + defineProp($com$bapis$bilibili$playershared.KFragmentVideoInfo, 'Companion', Companion_getInstance_133); + $com$bapis$bilibili$playershared.KLossLessItem = KLossLessItem; + defineProp($com$bapis$bilibili$playershared.KLossLessItem, 'Companion', Companion_getInstance_134); + $com$bapis$bilibili$playershared.KVolumeInfo = KVolumeInfo; + defineProp($com$bapis$bilibili$playershared.KVolumeInfo, 'Companion', Companion_getInstance_135); + $com$bapis$bilibili$playershared.KDolbyItem = KDolbyItem; + $com$bapis$bilibili$playershared.KDolbyItem.KType = KType_1; + $com$bapis$bilibili$playershared.KDolbyItem.KType.values = values_28; + $com$bapis$bilibili$playershared.KDolbyItem.KType.valueOf = valueOf_28; + defineProp($com$bapis$bilibili$playershared.KDolbyItem.KType, 'NONE', KType_NONE_getInstance); + defineProp($com$bapis$bilibili$playershared.KDolbyItem.KType, 'COMMON', KType_COMMON_getInstance); + defineProp($com$bapis$bilibili$playershared.KDolbyItem.KType, 'ATMOS', KType_ATMOS_getInstance); + defineProp($com$bapis$bilibili$playershared.KDolbyItem.KType, 'UNRECOGNIZED', KType_UNRECOGNIZED_getInstance_0); + defineProp($com$bapis$bilibili$playershared.KDolbyItem.KType, 'Companion', Companion_getInstance_136); + defineProp($com$bapis$bilibili$playershared.KDolbyItem, 'Companion', Companion_getInstance_137); + $com$bapis$bilibili$playershared.KStream = KStream; + $com$bapis$bilibili$playershared.KStream.KContent = KContent; + defineProp($com$bapis$bilibili$playershared.KStream, 'KDashVideo', KDashVideo_getInstance); + defineProp($com$bapis$bilibili$playershared.KStream, 'KSegmentVideo', KSegmentVideo_getInstance); + defineProp($com$bapis$bilibili$playershared.KStream, 'Companion', Companion_getInstance_138); + $com$bapis$bilibili$playershared.KSegmentVideo = KSegmentVideo_0; + defineProp($com$bapis$bilibili$playershared.KSegmentVideo, 'Companion', Companion_getInstance_139); + $com$bapis$bilibili$playershared.KStreamInfo = KStreamInfo; + defineProp($com$bapis$bilibili$playershared.KStreamInfo, 'Companion', Companion_getInstance_140); + $com$bapis$bilibili$playershared.KScheme = KScheme; + $com$bapis$bilibili$playershared.KScheme.KActionType = KActionType; + $com$bapis$bilibili$playershared.KScheme.KActionType.values = values_29; + $com$bapis$bilibili$playershared.KScheme.KActionType.valueOf = valueOf_29; + defineProp($com$bapis$bilibili$playershared.KScheme.KActionType, 'UNKNOWN', KActionType_UNKNOWN_getInstance); + defineProp($com$bapis$bilibili$playershared.KScheme.KActionType, 'SHOW_TOAST', KActionType_SHOW_TOAST_getInstance); + defineProp($com$bapis$bilibili$playershared.KScheme.KActionType, 'UNRECOGNIZED', KActionType_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$playershared.KScheme.KActionType, 'Companion', Companion_getInstance_141); + defineProp($com$bapis$bilibili$playershared.KScheme, 'Companion', Companion_getInstance_142); + $com$bapis$bilibili$playershared.KStreamLimit = KStreamLimit; + defineProp($com$bapis$bilibili$playershared.KStreamLimit, 'Companion', Companion_getInstance_143); + $com$bapis$bilibili$playershared.KDashVideo = KDashVideo_0; + defineProp($com$bapis$bilibili$playershared.KDashVideo, 'Companion', Companion_getInstance_144); + $com$bapis$bilibili$playershared.KResponseDash = KResponseDash; + defineProp($com$bapis$bilibili$playershared.KResponseDash, 'Companion', Companion_getInstance_145); + $com$bapis$bilibili$playershared.KDashItem = KDashItem; + defineProp($com$bapis$bilibili$playershared.KDashItem, 'Companion', Companion_getInstance_146); + $com$bapis$bilibili$playershared.KResponseUrl = KResponseUrl; + defineProp($com$bapis$bilibili$playershared.KResponseUrl, 'Companion', Companion_getInstance_147); + $com$bapis$bilibili$playershared.KPlayArc = KPlayArc; + defineProp($com$bapis$bilibili$playershared.KPlayArc, 'Companion', Companion_getInstance_148); + $com$bapis$bilibili$playershared.KDimension = KDimension; + defineProp($com$bapis$bilibili$playershared.KDimension, 'Companion', Companion_getInstance_149); + $com$bapis$bilibili$playershared.KInteraction = KInteraction; + defineProp($com$bapis$bilibili$playershared.KInteraction, 'Companion', Companion_getInstance_150); + $com$bapis$bilibili$playershared.KNode = KNode; + defineProp($com$bapis$bilibili$playershared.KNode, 'Companion', Companion_getInstance_151); + $com$bapis$bilibili$playershared.KEvent = KEvent; + defineProp($com$bapis$bilibili$playershared.KEvent, 'Companion', Companion_getInstance_152); + $com$bapis$bilibili$playershared.KShake = KShake; + defineProp($com$bapis$bilibili$playershared.KShake, 'Companion', Companion_getInstance_153); + $com$bapis$bilibili$playershared.KQnTrialInfo = KQnTrialInfo; + defineProp($com$bapis$bilibili$playershared.KQnTrialInfo, 'Companion', Companion_getInstance_154); + $com$bapis$bilibili$playershared.KToast = KToast; + defineProp($com$bapis$bilibili$playershared.KToast, 'Companion', Companion_getInstance_155); + $com$bapis$bilibili$playershared.KButton = KButton; + $com$bapis$bilibili$playershared.KButton.KReportParamsEntry = KReportParamsEntry; + defineProp($com$bapis$bilibili$playershared.KButton.KReportParamsEntry, 'Companion', Companion_getInstance_156); + defineProp($com$bapis$bilibili$playershared.KButton, 'Companion', Companion_getInstance_157); + $com$bapis$bilibili$playershared.KHistory = KHistory; + defineProp($com$bapis$bilibili$playershared.KHistory, 'Companion', Companion_getInstance_158); + $com$bapis$bilibili$playershared.KHistoryInfo = KHistoryInfo; + defineProp($com$bapis$bilibili$playershared.KHistoryInfo, 'Companion', Companion_getInstance_159); + $com$bapis$bilibili$playershared.KFragment = KFragment; + defineProp($com$bapis$bilibili$playershared.KFragment, 'Companion', Companion_getInstance_160); + $com$bapis$bilibili$playershared.KFragmentInfo = KFragmentInfo; + defineProp($com$bapis$bilibili$playershared.KFragmentInfo, 'Companion', Companion_getInstance_161); + $com$bapis$bilibili$playershared.values$factory = values$factory_21; + $com$bapis$bilibili$playershared.values$factory = values$factory_22; + $com$bapis$bilibili$playershared.values$factory = values$factory_23; + $com$bapis$bilibili$playershared.values$factory = values$factory_24; + $com$bapis$bilibili$playershared.values$factory = values$factory_25; + $com$bapis$bilibili$playershared.values$factory = values$factory_26; + $com$bapis$bilibili$playershared.values$factory = values$factory_27; + $com$bapis$bilibili$playershared.values$factory = values$factory_28; + $com$bapis$bilibili$playershared.contentNumber$factory = contentNumber$factory; + $com$bapis$bilibili$playershared.contentValues$factory = contentValues$factory; + $com$bapis$bilibili$playershared.values$factory = values$factory_29; + var $com = _.com || (_.com = {}); + var $com$bapis = $com.bapis || ($com.bapis = {}); + var $com$bapis$bilibili = $com$bapis.bilibili || ($com$bapis.bilibili = {}); + var $com$bapis$bilibili$app = $com$bapis$bilibili.app || ($com$bapis$bilibili.app = {}); + var $com$bapis$bilibili$app$playerunite = $com$bapis$bilibili$app.playerunite || ($com$bapis$bilibili$app.playerunite = {}); + var $com$bapis$bilibili$app$playerunite$v1 = $com$bapis$bilibili$app$playerunite.v1 || ($com$bapis$bilibili$app$playerunite.v1 = {}); + $com$bapis$bilibili$app$playerunite$v1.KPlayViewUniteReq = KPlayViewUniteReq; + $com$bapis$bilibili$app$playerunite$v1.KPlayViewUniteReq.KExtraContentEntry = KExtraContentEntry; + defineProp($com$bapis$bilibili$app$playerunite$v1.KPlayViewUniteReq.KExtraContentEntry, 'Companion', Companion_getInstance_162); + defineProp($com$bapis$bilibili$app$playerunite$v1.KPlayViewUniteReq, 'Companion', Companion_getInstance_163); + $com$bapis$bilibili$app$playerunite$v1.KPlayViewUniteReply = KPlayViewUniteReply; + defineProp($com$bapis$bilibili$app$playerunite$v1.KPlayViewUniteReply, 'Companion', Companion_getInstance_164); + var $com = _.com || (_.com = {}); + var $com$bapis = $com.bapis || ($com.bapis = {}); + var $com$bapis$bilibili = $com$bapis.bilibili || ($com$bapis.bilibili = {}); + var $com$bapis$bilibili$app = $com$bapis$bilibili.app || ($com$bapis$bilibili.app = {}); + var $com$bapis$bilibili$app$archive = $com$bapis$bilibili$app.archive || ($com$bapis$bilibili$app.archive = {}); + var $com$bapis$bilibili$app$archive$middleware = $com$bapis$bilibili$app$archive.middleware || ($com$bapis$bilibili$app$archive.middleware = {}); + var $com$bapis$bilibili$app$archive$middleware$v1 = $com$bapis$bilibili$app$archive$middleware.v1 || ($com$bapis$bilibili$app$archive$middleware.v1 = {}); + $com$bapis$bilibili$app$archive$middleware$v1.KPlayerArgs = KPlayerArgs; + defineProp($com$bapis$bilibili$app$archive$middleware$v1.KPlayerArgs, 'Companion', Companion_getInstance_165); + var $com = _.com || (_.com = {}); + var $com$bapis = $com.bapis || ($com.bapis = {}); + var $com$bapis$bilibili = $com$bapis.bilibili || ($com$bapis.bilibili = {}); + var $com$bapis$bilibili$dagw = $com$bapis$bilibili.dagw || ($com$bapis$bilibili.dagw = {}); + var $com$bapis$bilibili$dagw$component = $com$bapis$bilibili$dagw.component || ($com$bapis$bilibili$dagw.component = {}); + var $com$bapis$bilibili$dagw$component$avatar = $com$bapis$bilibili$dagw$component.avatar || ($com$bapis$bilibili$dagw$component.avatar = {}); + var $com$bapis$bilibili$dagw$component$avatar$common = $com$bapis$bilibili$dagw$component$avatar.common || ($com$bapis$bilibili$dagw$component$avatar.common = {}); + $com$bapis$bilibili$dagw$component$avatar$common.KSizeSpec = KSizeSpec; + defineProp($com$bapis$bilibili$dagw$component$avatar$common.KSizeSpec, 'Companion', Companion_getInstance_166); + $com$bapis$bilibili$dagw$component$avatar$common.KPositionSpec = KPositionSpec; + $com$bapis$bilibili$dagw$component$avatar$common.KPositionSpec.KCoordinatePos = KCoordinatePos; + $com$bapis$bilibili$dagw$component$avatar$common.KPositionSpec.KCoordinatePos.values = values_30; + $com$bapis$bilibili$dagw$component$avatar$common.KPositionSpec.KCoordinatePos.valueOf = valueOf_30; + defineProp($com$bapis$bilibili$dagw$component$avatar$common.KPositionSpec.KCoordinatePos, 'INVALID_COORDINATE', KCoordinatePos_INVALID_COORDINATE_getInstance); + defineProp($com$bapis$bilibili$dagw$component$avatar$common.KPositionSpec.KCoordinatePos, 'DEFAULT_COORDINATE', KCoordinatePos_DEFAULT_COORDINATE_getInstance); + defineProp($com$bapis$bilibili$dagw$component$avatar$common.KPositionSpec.KCoordinatePos, 'CENTRAL_COORDINATE', KCoordinatePos_CENTRAL_COORDINATE_getInstance); + defineProp($com$bapis$bilibili$dagw$component$avatar$common.KPositionSpec.KCoordinatePos, 'UNRECOGNIZED', KCoordinatePos_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$dagw$component$avatar$common.KPositionSpec.KCoordinatePos, 'Companion', Companion_getInstance_167); + defineProp($com$bapis$bilibili$dagw$component$avatar$common.KPositionSpec, 'Companion', Companion_getInstance_168); + $com$bapis$bilibili$dagw$component$avatar$common.KBasicRenderSpec = KBasicRenderSpec; + defineProp($com$bapis$bilibili$dagw$component$avatar$common.KBasicRenderSpec, 'Companion', Companion_getInstance_169); + $com$bapis$bilibili$dagw$component$avatar$common.KLayerGeneralSpec = KLayerGeneralSpec; + defineProp($com$bapis$bilibili$dagw$component$avatar$common.KLayerGeneralSpec, 'Companion', Companion_getInstance_170); + $com$bapis$bilibili$dagw$component$avatar$common.KResourceSource = KResourceSource; + $com$bapis$bilibili$dagw$component$avatar$common.KResourceSource.KRes = KRes; + defineProp($com$bapis$bilibili$dagw$component$avatar$common.KResourceSource, 'KRemote', KRemote_getInstance); + defineProp($com$bapis$bilibili$dagw$component$avatar$common.KResourceSource, 'KLocal', KLocal_getInstance); + defineProp($com$bapis$bilibili$dagw$component$avatar$common.KResourceSource, 'KDraw', KDraw_getInstance); + defineProp($com$bapis$bilibili$dagw$component$avatar$common.KResourceSource, 'Companion', Companion_getInstance_173); + $com$bapis$bilibili$dagw$component$avatar$common.KResourceSource.KSourceType = KSourceType; + $com$bapis$bilibili$dagw$component$avatar$common.KResourceSource.KSourceType.values = values_31; + $com$bapis$bilibili$dagw$component$avatar$common.KResourceSource.KSourceType.valueOf = valueOf_31; + defineProp($com$bapis$bilibili$dagw$component$avatar$common.KResourceSource.KSourceType, 'SRC_TYPE_INVALID', KSourceType_SRC_TYPE_INVALID_getInstance); + defineProp($com$bapis$bilibili$dagw$component$avatar$common.KResourceSource.KSourceType, 'SRC_TYPE_URL', KSourceType_SRC_TYPE_URL_getInstance); + defineProp($com$bapis$bilibili$dagw$component$avatar$common.KResourceSource.KSourceType, 'SRC_TYPE_LOCAL', KSourceType_SRC_TYPE_LOCAL_getInstance); + defineProp($com$bapis$bilibili$dagw$component$avatar$common.KResourceSource.KSourceType, 'SRC_TYPE_DRAW', KSourceType_SRC_TYPE_DRAW_getInstance); + defineProp($com$bapis$bilibili$dagw$component$avatar$common.KResourceSource.KSourceType, 'UNRECOGNIZED', KSourceType_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$dagw$component$avatar$common.KResourceSource.KSourceType, 'Companion', Companion_getInstance_171); + $com$bapis$bilibili$dagw$component$avatar$common.KResourceSource.KLocalRes = KLocalRes; + $com$bapis$bilibili$dagw$component$avatar$common.KResourceSource.KLocalRes.values = values_32; + $com$bapis$bilibili$dagw$component$avatar$common.KResourceSource.KLocalRes.valueOf = valueOf_32; + defineProp($com$bapis$bilibili$dagw$component$avatar$common.KResourceSource.KLocalRes, 'INVALID', KLocalRes_INVALID_getInstance); + defineProp($com$bapis$bilibili$dagw$component$avatar$common.KResourceSource.KLocalRes, 'ICON_VIP', KLocalRes_ICON_VIP_getInstance); + defineProp($com$bapis$bilibili$dagw$component$avatar$common.KResourceSource.KLocalRes, 'ICON_SMALL_VIP', KLocalRes_ICON_SMALL_VIP_getInstance); + defineProp($com$bapis$bilibili$dagw$component$avatar$common.KResourceSource.KLocalRes, 'ICON_PERSONAL_VERIFY', KLocalRes_ICON_PERSONAL_VERIFY_getInstance); + defineProp($com$bapis$bilibili$dagw$component$avatar$common.KResourceSource.KLocalRes, 'ICON_ENTERPRISE_VERIFY', KLocalRes_ICON_ENTERPRISE_VERIFY_getInstance); + defineProp($com$bapis$bilibili$dagw$component$avatar$common.KResourceSource.KLocalRes, 'ICON_NFT_MAINLAND', KLocalRes_ICON_NFT_MAINLAND_getInstance); + defineProp($com$bapis$bilibili$dagw$component$avatar$common.KResourceSource.KLocalRes, 'DEFAULT_AVATAR', KLocalRes_DEFAULT_AVATAR_getInstance); + defineProp($com$bapis$bilibili$dagw$component$avatar$common.KResourceSource.KLocalRes, 'UNRECOGNIZED', KLocalRes_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$dagw$component$avatar$common.KResourceSource.KLocalRes, 'Companion', Companion_getInstance_172); + $com$bapis$bilibili$dagw$component$avatar$common.KMaskProperty = KMaskProperty; + defineProp($com$bapis$bilibili$dagw$component$avatar$common.KMaskProperty, 'Companion', Companion_getInstance_174); + $com$bapis$bilibili$dagw$component$avatar$common.KRemoteRes = KRemoteRes; + defineProp($com$bapis$bilibili$dagw$component$avatar$common.KRemoteRes, 'Companion', Companion_getInstance_175); + $com$bapis$bilibili$dagw$component$avatar$common.KNativeDrawRes = KNativeDrawRes; + $com$bapis$bilibili$dagw$component$avatar$common.KNativeDrawRes.KNativeDraw = KNativeDraw; + $com$bapis$bilibili$dagw$component$avatar$common.KNativeDrawRes.KNativeDraw.values = values_33; + $com$bapis$bilibili$dagw$component$avatar$common.KNativeDrawRes.KNativeDraw.valueOf = valueOf_33; + defineProp($com$bapis$bilibili$dagw$component$avatar$common.KNativeDrawRes.KNativeDraw, 'DRAW_INVALID', KNativeDraw_DRAW_INVALID_getInstance); + defineProp($com$bapis$bilibili$dagw$component$avatar$common.KNativeDrawRes.KNativeDraw, 'DRAW_CIRCLE', KNativeDraw_DRAW_CIRCLE_getInstance); + defineProp($com$bapis$bilibili$dagw$component$avatar$common.KNativeDrawRes.KNativeDraw, 'DRAW_RECTANGLE', KNativeDraw_DRAW_RECTANGLE_getInstance); + defineProp($com$bapis$bilibili$dagw$component$avatar$common.KNativeDrawRes.KNativeDraw, 'UNRECOGNIZED', KNativeDraw_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$dagw$component$avatar$common.KNativeDrawRes.KNativeDraw, 'Companion', Companion_getInstance_176); + $com$bapis$bilibili$dagw$component$avatar$common.KNativeDrawRes.KFillMode = KFillMode; + $com$bapis$bilibili$dagw$component$avatar$common.KNativeDrawRes.KFillMode.values = values_34; + $com$bapis$bilibili$dagw$component$avatar$common.KNativeDrawRes.KFillMode.valueOf = valueOf_34; + defineProp($com$bapis$bilibili$dagw$component$avatar$common.KNativeDrawRes.KFillMode, 'INVALID', KFillMode_INVALID_getInstance); + defineProp($com$bapis$bilibili$dagw$component$avatar$common.KNativeDrawRes.KFillMode, 'INTERNAL', KFillMode_INTERNAL_getInstance); + defineProp($com$bapis$bilibili$dagw$component$avatar$common.KNativeDrawRes.KFillMode, 'EDGE', KFillMode_EDGE_getInstance); + defineProp($com$bapis$bilibili$dagw$component$avatar$common.KNativeDrawRes.KFillMode, 'UNRECOGNIZED', KFillMode_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$dagw$component$avatar$common.KNativeDrawRes.KFillMode, 'Companion', Companion_getInstance_177); + defineProp($com$bapis$bilibili$dagw$component$avatar$common.KNativeDrawRes, 'Companion', Companion_getInstance_178); + $com$bapis$bilibili$dagw$component$avatar$common.KColorConfig = KColorConfig; + defineProp($com$bapis$bilibili$dagw$component$avatar$common.KColorConfig, 'Companion', Companion_getInstance_179); + $com$bapis$bilibili$dagw$component$avatar$common.KColorSpec = KColorSpec; + defineProp($com$bapis$bilibili$dagw$component$avatar$common.KColorSpec, 'Companion', Companion_getInstance_180); + $com$bapis$bilibili$dagw$component$avatar$common.values$factory = values$factory_30; + $com$bapis$bilibili$dagw$component$avatar$common.resNumber$factory = resNumber$factory; + $com$bapis$bilibili$dagw$component$avatar$common.resValues$factory = resValues$factory; + $com$bapis$bilibili$dagw$component$avatar$common.values$factory = values$factory_31; + $com$bapis$bilibili$dagw$component$avatar$common.values$factory = values$factory_32; + $com$bapis$bilibili$dagw$component$avatar$common.values$factory = values$factory_33; + $com$bapis$bilibili$dagw$component$avatar$common.values$factory = values$factory_34; + var $com = _.com || (_.com = {}); + var $com$bapis = $com.bapis || ($com.bapis = {}); + var $com$bapis$bilibili = $com$bapis.bilibili || ($com$bapis.bilibili = {}); + var $com$bapis$bilibili$dagw = $com$bapis$bilibili.dagw || ($com$bapis$bilibili.dagw = {}); + var $com$bapis$bilibili$dagw$component = $com$bapis$bilibili$dagw.component || ($com$bapis$bilibili$dagw.component = {}); + var $com$bapis$bilibili$dagw$component$avatar = $com$bapis$bilibili$dagw$component.avatar || ($com$bapis$bilibili$dagw$component.avatar = {}); + var $com$bapis$bilibili$dagw$component$avatar$v1 = $com$bapis$bilibili$dagw$component$avatar.v1 || ($com$bapis$bilibili$dagw$component$avatar.v1 = {}); + var $com$bapis$bilibili$dagw$component$avatar$v1$plugin = $com$bapis$bilibili$dagw$component$avatar$v1.plugin || ($com$bapis$bilibili$dagw$component$avatar$v1.plugin = {}); + $com$bapis$bilibili$dagw$component$avatar$v1$plugin.KCommentDoubleClickConfig = KCommentDoubleClickConfig; + defineProp($com$bapis$bilibili$dagw$component$avatar$v1$plugin.KCommentDoubleClickConfig, 'Companion', Companion_getInstance_181); + $com$bapis$bilibili$dagw$component$avatar$v1$plugin.KInteraction = KInteraction_0; + defineProp($com$bapis$bilibili$dagw$component$avatar$v1$plugin.KInteraction, 'Companion', Companion_getInstance_182); + var $com = _.com || (_.com = {}); + var $com$bapis = $com.bapis || ($com.bapis = {}); + var $com$bapis$bilibili = $com$bapis.bilibili || ($com$bapis.bilibili = {}); + var $com$bapis$bilibili$dagw = $com$bapis$bilibili.dagw || ($com$bapis$bilibili.dagw = {}); + var $com$bapis$bilibili$dagw$component = $com$bapis$bilibili$dagw.component || ($com$bapis$bilibili$dagw.component = {}); + var $com$bapis$bilibili$dagw$component$avatar = $com$bapis$bilibili$dagw$component.avatar || ($com$bapis$bilibili$dagw$component.avatar = {}); + var $com$bapis$bilibili$dagw$component$avatar$v1 = $com$bapis$bilibili$dagw$component$avatar.v1 || ($com$bapis$bilibili$dagw$component$avatar.v1 = {}); + var $com$bapis$bilibili$dagw$component$avatar$v1$plugin = $com$bapis$bilibili$dagw$component$avatar$v1.plugin || ($com$bapis$bilibili$dagw$component$avatar$v1.plugin = {}); + $com$bapis$bilibili$dagw$component$avatar$v1$plugin.KGyroConfig = KGyroConfig; + defineProp($com$bapis$bilibili$dagw$component$avatar$v1$plugin.KGyroConfig, 'Companion', Companion_getInstance_183); + $com$bapis$bilibili$dagw$component$avatar$v1$plugin.KNFTImageV2 = KNFTImageV2; + defineProp($com$bapis$bilibili$dagw$component$avatar$v1$plugin.KNFTImageV2, 'Companion', Companion_getInstance_184); + $com$bapis$bilibili$dagw$component$avatar$v1$plugin.KGyroscopeEntityV2 = KGyroscopeEntityV2; + defineProp($com$bapis$bilibili$dagw$component$avatar$v1$plugin.KGyroscopeEntityV2, 'Companion', Companion_getInstance_185); + $com$bapis$bilibili$dagw$component$avatar$v1$plugin.KGyroscopeContentV2 = KGyroscopeContentV2; + defineProp($com$bapis$bilibili$dagw$component$avatar$v1$plugin.KGyroscopeContentV2, 'Companion', Companion_getInstance_186); + $com$bapis$bilibili$dagw$component$avatar$v1$plugin.KPhysicalOrientationV2 = KPhysicalOrientationV2; + defineProp($com$bapis$bilibili$dagw$component$avatar$v1$plugin.KPhysicalOrientationV2, 'Companion', Companion_getInstance_187); + $com$bapis$bilibili$dagw$component$avatar$v1$plugin.KPhysicalOrientationAnimation = KPhysicalOrientationAnimation; + defineProp($com$bapis$bilibili$dagw$component$avatar$v1$plugin.KPhysicalOrientationAnimation, 'Companion', Companion_getInstance_188); + var $com = _.com || (_.com = {}); + var $com$bapis = $com.bapis || ($com.bapis = {}); + var $com$bapis$bilibili = $com$bapis.bilibili || ($com$bapis.bilibili = {}); + var $com$bapis$bilibili$dagw = $com$bapis$bilibili.dagw || ($com$bapis$bilibili.dagw = {}); + var $com$bapis$bilibili$dagw$component = $com$bapis$bilibili$dagw.component || ($com$bapis$bilibili$dagw.component = {}); + var $com$bapis$bilibili$dagw$component$avatar = $com$bapis$bilibili$dagw$component.avatar || ($com$bapis$bilibili$dagw$component.avatar = {}); + var $com$bapis$bilibili$dagw$component$avatar$v1 = $com$bapis$bilibili$dagw$component$avatar.v1 || ($com$bapis$bilibili$dagw$component$avatar.v1 = {}); + var $com$bapis$bilibili$dagw$component$avatar$v1$plugin = $com$bapis$bilibili$dagw$component$avatar$v1.plugin || ($com$bapis$bilibili$dagw$component$avatar$v1.plugin = {}); + $com$bapis$bilibili$dagw$component$avatar$v1$plugin.KLiveAnimeConfig = KLiveAnimeConfig; + defineProp($com$bapis$bilibili$dagw$component$avatar$v1$plugin.KLiveAnimeConfig, 'Companion', Companion_getInstance_189); + $com$bapis$bilibili$dagw$component$avatar$v1$plugin.KBorderConfig = KBorderConfig; + defineProp($com$bapis$bilibili$dagw$component$avatar$v1$plugin.KBorderConfig, 'Companion', Companion_getInstance_190); + $com$bapis$bilibili$dagw$component$avatar$v1$plugin.KLiveTextConfig = KLiveTextConfig; + defineProp($com$bapis$bilibili$dagw$component$avatar$v1$plugin.KLiveTextConfig, 'Companion', Companion_getInstance_191); + $com$bapis$bilibili$dagw$component$avatar$v1$plugin.KLiveAnimeItem = KLiveAnimeItem; + defineProp($com$bapis$bilibili$dagw$component$avatar$v1$plugin.KLiveAnimeItem, 'Companion', Companion_getInstance_192); + var $com = _.com || (_.com = {}); + var $com$bapis = $com.bapis || ($com.bapis = {}); + var $com$bapis$bilibili = $com$bapis.bilibili || ($com$bapis.bilibili = {}); + var $com$bapis$bilibili$dagw = $com$bapis$bilibili.dagw || ($com$bapis$bilibili.dagw = {}); + var $com$bapis$bilibili$dagw$component = $com$bapis$bilibili$dagw.component || ($com$bapis$bilibili$dagw.component = {}); + var $com$bapis$bilibili$dagw$component$avatar = $com$bapis$bilibili$dagw$component.avatar || ($com$bapis$bilibili$dagw$component.avatar = {}); + var $com$bapis$bilibili$dagw$component$avatar$v1 = $com$bapis$bilibili$dagw$component$avatar.v1 || ($com$bapis$bilibili$dagw$component$avatar.v1 = {}); + var $com$bapis$bilibili$dagw$component$avatar$v1$plugin = $com$bapis$bilibili$dagw$component$avatar$v1.plugin || ($com$bapis$bilibili$dagw$component$avatar$v1.plugin = {}); + $com$bapis$bilibili$dagw$component$avatar$v1$plugin.KWebLiveAnimeConfig = KWebLiveAnimeConfig; + defineProp($com$bapis$bilibili$dagw$component$avatar$v1$plugin.KWebLiveAnimeConfig, 'Companion', Companion_getInstance_193); + var $com = _.com || (_.com = {}); + var $com$bapis = $com.bapis || ($com.bapis = {}); + var $com$bapis$bilibili = $com$bapis.bilibili || ($com$bapis.bilibili = {}); + var $com$bapis$bilibili$dagw = $com$bapis$bilibili.dagw || ($com$bapis$bilibili.dagw = {}); + var $com$bapis$bilibili$dagw$component = $com$bapis$bilibili$dagw.component || ($com$bapis$bilibili$dagw.component = {}); + var $com$bapis$bilibili$dagw$component$avatar = $com$bapis$bilibili$dagw$component.avatar || ($com$bapis$bilibili$dagw$component.avatar = {}); + var $com$bapis$bilibili$dagw$component$avatar$v1 = $com$bapis$bilibili$dagw$component$avatar.v1 || ($com$bapis$bilibili$dagw$component$avatar.v1 = {}); + $com$bapis$bilibili$dagw$component$avatar$v1.KAvatarItem = KAvatarItem; + defineProp($com$bapis$bilibili$dagw$component$avatar$v1.KAvatarItem, 'Companion', Companion_getInstance_194); + $com$bapis$bilibili$dagw$component$avatar$v1.KLayerGroup = KLayerGroup; + defineProp($com$bapis$bilibili$dagw$component$avatar$v1.KLayerGroup, 'Companion', Companion_getInstance_195); + $com$bapis$bilibili$dagw$component$avatar$v1.KLayer = KLayer; + defineProp($com$bapis$bilibili$dagw$component$avatar$v1.KLayer, 'Companion', Companion_getInstance_196); + $com$bapis$bilibili$dagw$component$avatar$v1.KBasicLayerResource = KBasicLayerResource; + $com$bapis$bilibili$dagw$component$avatar$v1.KBasicLayerResource.KPayload = KPayload; + defineProp($com$bapis$bilibili$dagw$component$avatar$v1.KBasicLayerResource, 'KResImage', KResImage_getInstance); + defineProp($com$bapis$bilibili$dagw$component$avatar$v1.KBasicLayerResource, 'KResAnimation', KResAnimation_getInstance); + defineProp($com$bapis$bilibili$dagw$component$avatar$v1.KBasicLayerResource, 'KResNativeDraw', KResNativeDraw_getInstance); + defineProp($com$bapis$bilibili$dagw$component$avatar$v1.KBasicLayerResource, 'Companion', Companion_getInstance_198); + $com$bapis$bilibili$dagw$component$avatar$v1.KBasicLayerResource.KResType = KResType; + $com$bapis$bilibili$dagw$component$avatar$v1.KBasicLayerResource.KResType.values = values_35; + $com$bapis$bilibili$dagw$component$avatar$v1.KBasicLayerResource.KResType.valueOf = valueOf_35; + defineProp($com$bapis$bilibili$dagw$component$avatar$v1.KBasicLayerResource.KResType, 'INVALID', KResType_INVALID_getInstance); + defineProp($com$bapis$bilibili$dagw$component$avatar$v1.KBasicLayerResource.KResType, 'PLUGIN', KResType_PLUGIN_getInstance); + defineProp($com$bapis$bilibili$dagw$component$avatar$v1.KBasicLayerResource.KResType, 'EMPTY', KResType_EMPTY_getInstance); + defineProp($com$bapis$bilibili$dagw$component$avatar$v1.KBasicLayerResource.KResType, 'IMAGE', KResType_IMAGE_getInstance); + defineProp($com$bapis$bilibili$dagw$component$avatar$v1.KBasicLayerResource.KResType, 'ANIMATION', KResType_ANIMATION_getInstance); + defineProp($com$bapis$bilibili$dagw$component$avatar$v1.KBasicLayerResource.KResType, 'NATIVE_DRAW', KResType_NATIVE_DRAW_getInstance); + defineProp($com$bapis$bilibili$dagw$component$avatar$v1.KBasicLayerResource.KResType, 'UNRECOGNIZED', KResType_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$dagw$component$avatar$v1.KBasicLayerResource.KResType, 'Companion', Companion_getInstance_197); + $com$bapis$bilibili$dagw$component$avatar$v1.KLayerConfig = KLayerConfig; + $com$bapis$bilibili$dagw$component$avatar$v1.KLayerConfig.KTagsEntry = KTagsEntry; + defineProp($com$bapis$bilibili$dagw$component$avatar$v1.KLayerConfig.KTagsEntry, 'Companion', Companion_getInstance_199); + defineProp($com$bapis$bilibili$dagw$component$avatar$v1.KLayerConfig, 'Companion', Companion_getInstance_200); + $com$bapis$bilibili$dagw$component$avatar$v1.KLayerTagConfig = KLayerTagConfig; + $com$bapis$bilibili$dagw$component$avatar$v1.KLayerTagConfig.KConfig = KConfig; + defineProp($com$bapis$bilibili$dagw$component$avatar$v1.KLayerTagConfig, 'KGeneralConfig', KGeneralConfig_getInstance); + defineProp($com$bapis$bilibili$dagw$component$avatar$v1.KLayerTagConfig, 'KGyroConfig', KGyroConfig_getInstance); + defineProp($com$bapis$bilibili$dagw$component$avatar$v1.KLayerTagConfig, 'KCommentDoubleClickConfig', KCommentDoubleClickConfig_getInstance); + defineProp($com$bapis$bilibili$dagw$component$avatar$v1.KLayerTagConfig, 'KLiveAnimeConfig', KLiveAnimeConfig_getInstance); + defineProp($com$bapis$bilibili$dagw$component$avatar$v1.KLayerTagConfig, 'KWebLiveAnimeConfig', KWebLiveAnimeConfig_getInstance); + defineProp($com$bapis$bilibili$dagw$component$avatar$v1.KLayerTagConfig, 'Companion', Companion_getInstance_202); + $com$bapis$bilibili$dagw$component$avatar$v1.KLayerTagConfig.KTagConfigType = KTagConfigType; + $com$bapis$bilibili$dagw$component$avatar$v1.KLayerTagConfig.KTagConfigType.values = values_36; + $com$bapis$bilibili$dagw$component$avatar$v1.KLayerTagConfig.KTagConfigType.valueOf = valueOf_36; + defineProp($com$bapis$bilibili$dagw$component$avatar$v1.KLayerTagConfig.KTagConfigType, 'TAG_CFG_INVALID', KTagConfigType_TAG_CFG_INVALID_getInstance); + defineProp($com$bapis$bilibili$dagw$component$avatar$v1.KLayerTagConfig.KTagConfigType, 'TAG_CFG_GENERAL', KTagConfigType_TAG_CFG_GENERAL_getInstance); + defineProp($com$bapis$bilibili$dagw$component$avatar$v1.KLayerTagConfig.KTagConfigType, 'TAG_CFG_GYRO', KTagConfigType_TAG_CFG_GYRO_getInstance); + defineProp($com$bapis$bilibili$dagw$component$avatar$v1.KLayerTagConfig.KTagConfigType, 'TAG_CFG_COMMENT_DOUBLE_CLICK', KTagConfigType_TAG_CFG_COMMENT_DOUBLE_CLICK_getInstance); + defineProp($com$bapis$bilibili$dagw$component$avatar$v1.KLayerTagConfig.KTagConfigType, 'TAG_CFG_IN_LIVE', KTagConfigType_TAG_CFG_IN_LIVE_getInstance); + defineProp($com$bapis$bilibili$dagw$component$avatar$v1.KLayerTagConfig.KTagConfigType, 'TAG_CFG_WEB_IN_LIVE', KTagConfigType_TAG_CFG_WEB_IN_LIVE_getInstance); + defineProp($com$bapis$bilibili$dagw$component$avatar$v1.KLayerTagConfig.KTagConfigType, 'UNRECOGNIZED', KTagConfigType_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$dagw$component$avatar$v1.KLayerTagConfig.KTagConfigType, 'Companion', Companion_getInstance_201); + $com$bapis$bilibili$dagw$component$avatar$v1.KGeneralConfig = KGeneralConfig_0; + $com$bapis$bilibili$dagw$component$avatar$v1.KGeneralConfig.KWebCssStyleEntry = KWebCssStyleEntry; + defineProp($com$bapis$bilibili$dagw$component$avatar$v1.KGeneralConfig.KWebCssStyleEntry, 'Companion', Companion_getInstance_203); + defineProp($com$bapis$bilibili$dagw$component$avatar$v1.KGeneralConfig, 'Companion', Companion_getInstance_204); + $com$bapis$bilibili$dagw$component$avatar$v1.KResImage = KResImage_0; + defineProp($com$bapis$bilibili$dagw$component$avatar$v1.KResImage, 'Companion', Companion_getInstance_205); + $com$bapis$bilibili$dagw$component$avatar$v1.KResAnimation = KResAnimation_0; + defineProp($com$bapis$bilibili$dagw$component$avatar$v1.KResAnimation, 'Companion', Companion_getInstance_206); + $com$bapis$bilibili$dagw$component$avatar$v1.KResNativeDraw = KResNativeDraw_0; + defineProp($com$bapis$bilibili$dagw$component$avatar$v1.KResNativeDraw, 'Companion', Companion_getInstance_207); + $com$bapis$bilibili$dagw$component$avatar$v1.payloadNumber$factory = payloadNumber$factory; + $com$bapis$bilibili$dagw$component$avatar$v1.payloadValues$factory = payloadValues$factory; + $com$bapis$bilibili$dagw$component$avatar$v1.values$factory = values$factory_35; + $com$bapis$bilibili$dagw$component$avatar$v1.configNumber$factory = configNumber$factory; + $com$bapis$bilibili$dagw$component$avatar$v1.configValues$factory = configValues$factory; + $com$bapis$bilibili$dagw$component$avatar$v1.values$factory = values$factory_36; + var $com = _.com || (_.com = {}); + var $com$bapis = $com.bapis || ($com.bapis = {}); + var $com$bapis$bilibili = $com$bapis.bilibili || ($com$bapis.bilibili = {}); + var $com$bapis$bilibili$pagination = $com$bapis$bilibili.pagination || ($com$bapis$bilibili.pagination = {}); + $com$bapis$bilibili$pagination.KPagination = KPagination; + defineProp($com$bapis$bilibili$pagination.KPagination, 'Companion', Companion_getInstance_208); + $com$bapis$bilibili$pagination.KPaginationReply = KPaginationReply; + defineProp($com$bapis$bilibili$pagination.KPaginationReply, 'Companion', Companion_getInstance_209); + $com$bapis$bilibili$pagination.KFeedPagination = KFeedPagination; + defineProp($com$bapis$bilibili$pagination.KFeedPagination, 'Companion', Companion_getInstance_210); + $com$bapis$bilibili$pagination.KFeedPaginationReply = KFeedPaginationReply; + defineProp($com$bapis$bilibili$pagination.KFeedPaginationReply, 'Companion', Companion_getInstance_211); + var $com = _.com || (_.com = {}); + var $com$bapis = $com.bapis || ($com.bapis = {}); + var $com$bapis$bilibili = $com$bapis.bilibili || ($com$bapis.bilibili = {}); + var $com$bapis$bilibili$app = $com$bapis$bilibili.app || ($com$bapis$bilibili.app = {}); + var $com$bapis$bilibili$app$viewunite = $com$bapis$bilibili$app.viewunite || ($com$bapis$bilibili$app.viewunite = {}); + var $com$bapis$bilibili$app$viewunite$common = $com$bapis$bilibili$app$viewunite.common || ($com$bapis$bilibili$app$viewunite.common = {}); + $com$bapis$bilibili$app$viewunite$common.KToolType = KToolType; + $com$bapis$bilibili$app$viewunite$common.KToolType.values = values_37; + $com$bapis$bilibili$app$viewunite$common.KToolType.valueOf = valueOf_37; + defineProp($com$bapis$bilibili$app$viewunite$common.KToolType, 'INTERACTIVE_DANMAKU', KToolType_INTERACTIVE_DANMAKU_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KToolType, 'INTERACTIVE_SETTINGS', KToolType_INTERACTIVE_SETTINGS_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KToolType, 'TAKE_OFF', KToolType_TAKE_OFF_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KToolType, 'UNIVERSAL', KToolType_UNIVERSAL_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KToolType, 'UNRECOGNIZED', KToolType_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KToolType, 'Companion', Companion_getInstance_212); + $com$bapis$bilibili$app$viewunite$common.KExtType = KExtType; + $com$bapis$bilibili$app$viewunite$common.KExtType.values = values_38; + $com$bapis$bilibili$app$viewunite$common.KExtType.valueOf = valueOf_38; + defineProp($com$bapis$bilibili$app$viewunite$common.KExtType, 'EXT_NONE', KExtType_EXT_NONE_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KExtType, 'EXT_DATA_CENTER', KExtType_EXT_DATA_CENTER_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KExtType, 'EXT_DATA_EARNINGS', KExtType_EXT_DATA_EARNINGS_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KExtType, 'UNRECOGNIZED', KExtType_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KExtType, 'Companion', Companion_getInstance_213); + $com$bapis$bilibili$app$viewunite$common.KRelateCardType = KRelateCardType; + $com$bapis$bilibili$app$viewunite$common.KRelateCardType.values = values_39; + $com$bapis$bilibili$app$viewunite$common.KRelateCardType.valueOf = valueOf_39; + defineProp($com$bapis$bilibili$app$viewunite$common.KRelateCardType, 'CARD_TYPE_UNKNOWN', KRelateCardType_CARD_TYPE_UNKNOWN_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KRelateCardType, 'AV', KRelateCardType_AV_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KRelateCardType, 'BANGUMI', KRelateCardType_BANGUMI_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KRelateCardType, 'RESOURCE', KRelateCardType_RESOURCE_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KRelateCardType, 'GAME', KRelateCardType_GAME_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KRelateCardType, 'CM', KRelateCardType_CM_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KRelateCardType, 'LIVE', KRelateCardType_LIVE_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KRelateCardType, 'AI_RECOMMEND', KRelateCardType_AI_RECOMMEND_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KRelateCardType, 'BANGUMI_AV', KRelateCardType_BANGUMI_AV_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KRelateCardType, 'BANGUMI_UGC', KRelateCardType_BANGUMI_UGC_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KRelateCardType, 'SPECIAL', KRelateCardType_SPECIAL_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KRelateCardType, 'COURSE', KRelateCardType_COURSE_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KRelateCardType, 'UNRECOGNIZED', KRelateCardType_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KRelateCardType, 'Companion', Companion_getInstance_214); + $com$bapis$bilibili$app$viewunite$common.KJumpType = KJumpType; + $com$bapis$bilibili$app$viewunite$common.KJumpType.values = values_40; + $com$bapis$bilibili$app$viewunite$common.KJumpType.valueOf = valueOf_40; + defineProp($com$bapis$bilibili$app$viewunite$common.KJumpType, 'UNKNOWN', KJumpType_UNKNOWN_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KJumpType, 'OPEN_URL', KJumpType_OPEN_URL_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KJumpType, 'REFRESH', KJumpType_REFRESH_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KJumpType, 'HALF_SCREEN', KJumpType_HALF_SCREEN_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KJumpType, 'OPEN_URL_BY_OUTER_BROWSER', KJumpType_OPEN_URL_BY_OUTER_BROWSER_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KJumpType, 'UNRECOGNIZED', KJumpType_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KJumpType, 'Companion', Companion_getInstance_215); + $com$bapis$bilibili$app$viewunite$common.KHonorJumpType = KHonorJumpType; + $com$bapis$bilibili$app$viewunite$common.KHonorJumpType.values = values_41; + $com$bapis$bilibili$app$viewunite$common.KHonorJumpType.valueOf = valueOf_41; + defineProp($com$bapis$bilibili$app$viewunite$common.KHonorJumpType, 'UNKNOWN', KHonorJumpType_UNKNOWN_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KHonorJumpType, 'HONOR_OPEN_URL', KHonorJumpType_HONOR_OPEN_URL_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KHonorJumpType, 'HONOR_HALF_SCREEN', KHonorJumpType_HONOR_HALF_SCREEN_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KHonorJumpType, 'HONOR_POPUP', KHonorJumpType_HONOR_POPUP_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KHonorJumpType, 'UNRECOGNIZED', KHonorJumpType_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KHonorJumpType, 'Companion', Companion_getInstance_216); + $com$bapis$bilibili$app$viewunite$common.KSerialSeasonCoverStyle = KSerialSeasonCoverStyle; + $com$bapis$bilibili$app$viewunite$common.KSerialSeasonCoverStyle.values = values_42; + $com$bapis$bilibili$app$viewunite$common.KSerialSeasonCoverStyle.valueOf = valueOf_42; + defineProp($com$bapis$bilibili$app$viewunite$common.KSerialSeasonCoverStyle, 'TITLE', KSerialSeasonCoverStyle_TITLE_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KSerialSeasonCoverStyle, 'PICTURE', KSerialSeasonCoverStyle_PICTURE_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KSerialSeasonCoverStyle, 'UNKNOWN', KSerialSeasonCoverStyle_UNKNOWN_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KSerialSeasonCoverStyle, 'UNRECOGNIZED', KSerialSeasonCoverStyle_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KSerialSeasonCoverStyle, 'Companion', Companion_getInstance_217); + $com$bapis$bilibili$app$viewunite$common.KSeasonType = KSeasonType; + $com$bapis$bilibili$app$viewunite$common.KSeasonType.values = values_43; + $com$bapis$bilibili$app$viewunite$common.KSeasonType.valueOf = valueOf_43; + defineProp($com$bapis$bilibili$app$viewunite$common.KSeasonType, 'UNKNOWN', KSeasonType_UNKNOWN_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KSeasonType, 'BASE', KSeasonType_BASE_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KSeasonType, 'GOOD', KSeasonType_GOOD_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KSeasonType, 'UNRECOGNIZED', KSeasonType_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KSeasonType, 'Companion', Companion_getInstance_218); + $com$bapis$bilibili$app$viewunite$common.KShowStyle = KShowStyle; + $com$bapis$bilibili$app$viewunite$common.KShowStyle.values = values_44; + $com$bapis$bilibili$app$viewunite$common.KShowStyle.valueOf = valueOf_44; + defineProp($com$bapis$bilibili$app$viewunite$common.KShowStyle, 'UNKNOWN', KShowStyle_UNKNOWN_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KShowStyle, 'ONE_ROW_ONE_COLUMN', KShowStyle_ONE_ROW_ONE_COLUMN_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KShowStyle, 'ONE_ROW_MULTI_COLUMN', KShowStyle_ONE_ROW_MULTI_COLUMN_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KShowStyle, 'ONE_COLUMN_MULTI_ROW', KShowStyle_ONE_COLUMN_MULTI_ROW_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KShowStyle, 'UNRECOGNIZED', KShowStyle_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KShowStyle, 'Companion', Companion_getInstance_219); + $com$bapis$bilibili$app$viewunite$common.KOccupationType = KOccupationType; + $com$bapis$bilibili$app$viewunite$common.KOccupationType.values = values_45; + $com$bapis$bilibili$app$viewunite$common.KOccupationType.valueOf = valueOf_45; + defineProp($com$bapis$bilibili$app$viewunite$common.KOccupationType, 'STAFF', KOccupationType_STAFF_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KOccupationType, 'CAST', KOccupationType_CAST_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KOccupationType, 'UNKNOWN_TYPE', KOccupationType_UNKNOWN_TYPE_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KOccupationType, 'UNRECOGNIZED', KOccupationType_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KOccupationType, 'Companion', Companion_getInstance_220); + $com$bapis$bilibili$app$viewunite$common.KAttentionRelationStatus = KAttentionRelationStatus; + $com$bapis$bilibili$app$viewunite$common.KAttentionRelationStatus.values = values_46; + $com$bapis$bilibili$app$viewunite$common.KAttentionRelationStatus.valueOf = valueOf_46; + defineProp($com$bapis$bilibili$app$viewunite$common.KAttentionRelationStatus, 'ARS_NONE', KAttentionRelationStatus_ARS_NONE_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KAttentionRelationStatus, 'ARS_N0RELATION', KAttentionRelationStatus_ARS_N0RELATION_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KAttentionRelationStatus, 'ARS_FOLLOWHIM', KAttentionRelationStatus_ARS_FOLLOWHIM_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KAttentionRelationStatus, 'ARS_FOLLOWME', KAttentionRelationStatus_ARS_FOLLOWME_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KAttentionRelationStatus, 'ARS_BUDDY', KAttentionRelationStatus_ARS_BUDDY_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KAttentionRelationStatus, 'ARS_SPECIAL', KAttentionRelationStatus_ARS_SPECIAL_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KAttentionRelationStatus, 'ARS_CANCELBLOCK', KAttentionRelationStatus_ARS_CANCELBLOCK_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KAttentionRelationStatus, 'UNRECOGNIZED', KAttentionRelationStatus_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KAttentionRelationStatus, 'Companion', Companion_getInstance_221); + $com$bapis$bilibili$app$viewunite$common.KModuleType = KModuleType; + $com$bapis$bilibili$app$viewunite$common.KModuleType.values = values_47; + $com$bapis$bilibili$app$viewunite$common.KModuleType.valueOf = valueOf_47; + defineProp($com$bapis$bilibili$app$viewunite$common.KModuleType, 'UNKNOWN', KModuleType_UNKNOWN_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KModuleType, 'OGV_INTRODUCTION', KModuleType_OGV_INTRODUCTION_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KModuleType, 'OGV_TITLE', KModuleType_OGV_TITLE_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KModuleType, 'UGC_HEADLINE', KModuleType_UGC_HEADLINE_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KModuleType, 'UGC_INTRODUCTION', KModuleType_UGC_INTRODUCTION_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KModuleType, 'KING_POSITION', KModuleType_KING_POSITION_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KModuleType, 'MASTER_USER_LIST', KModuleType_MASTER_USER_LIST_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KModuleType, 'STAFFS', KModuleType_STAFFS_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KModuleType, 'HONOR', KModuleType_HONOR_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KModuleType, 'OWNER', KModuleType_OWNER_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KModuleType, 'PAGE', KModuleType_PAGE_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KModuleType, 'ACTIVITY_RESERVE', KModuleType_ACTIVITY_RESERVE_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KModuleType, 'LIVE_ORDER', KModuleType_LIVE_ORDER_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KModuleType, 'POSITIVE', KModuleType_POSITIVE_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KModuleType, 'SECTION', KModuleType_SECTION_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KModuleType, 'RELATE', KModuleType_RELATE_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KModuleType, 'PUGV', KModuleType_PUGV_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KModuleType, 'COLLECTION_CARD', KModuleType_COLLECTION_CARD_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KModuleType, 'ACTIVITY', KModuleType_ACTIVITY_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KModuleType, 'CHARACTER', KModuleType_CHARACTER_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KModuleType, 'FOLLOW_LAYER', KModuleType_FOLLOW_LAYER_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KModuleType, 'OGV_SEASONS', KModuleType_OGV_SEASONS_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KModuleType, 'UGC_SEASON', KModuleType_UGC_SEASON_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KModuleType, 'OGV_LIVE_RESERVE', KModuleType_OGV_LIVE_RESERVE_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KModuleType, 'COMBINATION_EPISODE', KModuleType_COMBINATION_EPISODE_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KModuleType, 'SPONSOR', KModuleType_SPONSOR_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KModuleType, 'ACTIVITY_ENTRANCE', KModuleType_ACTIVITY_ENTRANCE_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KModuleType, 'THEATRE_HOT_TOPIC', KModuleType_THEATRE_HOT_TOPIC_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KModuleType, 'RELATED_RECOMMEND', KModuleType_RELATED_RECOMMEND_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KModuleType, 'PAY_BAR', KModuleType_PAY_BAR_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KModuleType, 'BANNER', KModuleType_BANNER_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KModuleType, 'AUDIO', KModuleType_AUDIO_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KModuleType, 'AGG_CARD', KModuleType_AGG_CARD_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KModuleType, 'SINGLE_EP', KModuleType_SINGLE_EP_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KModuleType, 'LIKE_COMMENT', KModuleType_LIKE_COMMENT_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KModuleType, 'ATTENTION_RECOMMEND', KModuleType_ATTENTION_RECOMMEND_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KModuleType, 'COVENANTER', KModuleType_COVENANTER_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KModuleType, 'SPECIALTAG', KModuleType_SPECIALTAG_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KModuleType, 'UPDATA', KModuleType_UPDATA_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KModuleType, 'PROFESSION_APPROVAL', KModuleType_PROFESSION_APPROVAL_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KModuleType, 'PUGV_SHOPPING_NOTICE', KModuleType_PUGV_SHOPPING_NOTICE_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KModuleType, 'PUGV_FAQ', KModuleType_PUGV_FAQ_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KModuleType, 'PUGV_SEASON_DESCRIPTION', KModuleType_PUGV_SEASON_DESCRIPTION_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KModuleType, 'PUGV_SEASON_RECOMMEND', KModuleType_PUGV_SEASON_RECOMMEND_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KModuleType, 'PUGV_SEASON_PUBLISHER', KModuleType_PUGV_SEASON_PUBLISHER_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KModuleType, 'PUGV_SEASON_SELECTION', KModuleType_PUGV_SEASON_SELECTION_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KModuleType, 'PUGV_SEASON_PRIMARY_INFO', KModuleType_PUGV_SEASON_PRIMARY_INFO_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KModuleType, 'PUGV_COOPERATION_APPLICATION', KModuleType_PUGV_COOPERATION_APPLICATION_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KModuleType, 'UP_VIDEO_TOOL', KModuleType_UP_VIDEO_TOOL_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KModuleType, 'PUGV_ZONE', KModuleType_PUGV_ZONE_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KModuleType, 'PUGV_SERIES', KModuleType_PUGV_SERIES_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KModuleType, 'PUGV_PACKAGE', KModuleType_PUGV_PACKAGE_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KModuleType, 'UNRECOGNIZED', KModuleType_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KModuleType, 'Companion', Companion_getInstance_222); + $com$bapis$bilibili$app$viewunite$common.KPugvSeasonPrimarySellPointType = KPugvSeasonPrimarySellPointType; + $com$bapis$bilibili$app$viewunite$common.KPugvSeasonPrimarySellPointType.values = values_48; + $com$bapis$bilibili$app$viewunite$common.KPugvSeasonPrimarySellPointType.valueOf = valueOf_48; + defineProp($com$bapis$bilibili$app$viewunite$common.KPugvSeasonPrimarySellPointType, 'UNSPECIFIED', KPugvSeasonPrimarySellPointType_UNSPECIFIED_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KPugvSeasonPrimarySellPointType, 'MANUAL', KPugvSeasonPrimarySellPointType_MANUAL_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KPugvSeasonPrimarySellPointType, 'AUTO', KPugvSeasonPrimarySellPointType_AUTO_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KPugvSeasonPrimarySellPointType, 'UNRECOGNIZED', KPugvSeasonPrimarySellPointType_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KPugvSeasonPrimarySellPointType, 'Companion', Companion_getInstance_223); + $com$bapis$bilibili$app$viewunite$common.KPugvSeasonDescriptionType = KPugvSeasonDescriptionType; + $com$bapis$bilibili$app$viewunite$common.KPugvSeasonDescriptionType.values = values_49; + $com$bapis$bilibili$app$viewunite$common.KPugvSeasonDescriptionType.valueOf = valueOf_49; + defineProp($com$bapis$bilibili$app$viewunite$common.KPugvSeasonDescriptionType, 'UNSPECIFIED', KPugvSeasonDescriptionType_UNSPECIFIED_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KPugvSeasonDescriptionType, 'TEXT', KPugvSeasonDescriptionType_TEXT_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KPugvSeasonDescriptionType, 'IMAGE', KPugvSeasonDescriptionType_IMAGE_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KPugvSeasonDescriptionType, 'UNRECOGNIZED', KPugvSeasonDescriptionType_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KPugvSeasonDescriptionType, 'Companion', Companion_getInstance_224); + $com$bapis$bilibili$app$viewunite$common.KPugvZoneItemType = KPugvZoneItemType; + $com$bapis$bilibili$app$viewunite$common.KPugvZoneItemType.values = values_50; + $com$bapis$bilibili$app$viewunite$common.KPugvZoneItemType.valueOf = valueOf_50; + defineProp($com$bapis$bilibili$app$viewunite$common.KPugvZoneItemType, 'UNSPECIFIED', KPugvZoneItemType_UNSPECIFIED_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KPugvZoneItemType, 'SEASON', KPugvZoneItemType_SEASON_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KPugvZoneItemType, 'POSTGRADUATE', KPugvZoneItemType_POSTGRADUATE_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KPugvZoneItemType, 'UNRECOGNIZED', KPugvZoneItemType_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KPugvZoneItemType, 'Companion', Companion_getInstance_225); + $com$bapis$bilibili$app$viewunite$common.KPugvSeriesItemState = KPugvSeriesItemState; + $com$bapis$bilibili$app$viewunite$common.KPugvSeriesItemState.values = values_51; + $com$bapis$bilibili$app$viewunite$common.KPugvSeriesItemState.valueOf = valueOf_51; + defineProp($com$bapis$bilibili$app$viewunite$common.KPugvSeriesItemState, 'PUGV_SERIRES_ITEM_STATE_UNSPECIAL', KPugvSeriesItemState_PUGV_SERIRES_ITEM_STATE_UNSPECIAL_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KPugvSeriesItemState, 'PUGV_SERIRES_ITEM_STATE_NOT_START', KPugvSeriesItemState_PUGV_SERIRES_ITEM_STATE_NOT_START_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KPugvSeriesItemState, 'PUGV_SERIRES_ITEM_STATE_START', KPugvSeriesItemState_PUGV_SERIRES_ITEM_STATE_START_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KPugvSeriesItemState, 'PUGV_SERIRES_ITEM_STATE_END', KPugvSeriesItemState_PUGV_SERIRES_ITEM_STATE_END_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KPugvSeriesItemState, 'UNRECOGNIZED', KPugvSeriesItemState_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KPugvSeriesItemState, 'Companion', Companion_getInstance_226); + $com$bapis$bilibili$app$viewunite$common.KHonorType = KHonorType; + $com$bapis$bilibili$app$viewunite$common.KHonorType.values = values_52; + $com$bapis$bilibili$app$viewunite$common.KHonorType.valueOf = valueOf_52; + defineProp($com$bapis$bilibili$app$viewunite$common.KHonorType, 'HONOR_NONE', KHonorType_HONOR_NONE_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KHonorType, 'PLAYLET', KHonorType_PLAYLET_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KHonorType, 'ARGUE', KHonorType_ARGUE_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KHonorType, 'NOTICE', KHonorType_NOTICE_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KHonorType, 'GUIDANCE', KHonorType_GUIDANCE_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KHonorType, 'HONOR_BILI_RANK', KHonorType_HONOR_BILI_RANK_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KHonorType, 'HONOR_WEEKLY_RANK', KHonorType_HONOR_WEEKLY_RANK_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KHonorType, 'HONOR_DAILY_RANK', KHonorType_HONOR_DAILY_RANK_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KHonorType, 'HONOR_CHANNEL', KHonorType_HONOR_CHANNEL_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KHonorType, 'HONOR_MUSIC', KHonorType_HONOR_MUSIC_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KHonorType, 'HONOR_REPLY', KHonorType_HONOR_REPLY_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KHonorType, 'HONOR_PROFESSION', KHonorType_HONOR_PROFESSION_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KHonorType, 'UNRECOGNIZED', KHonorType_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KHonorType, 'Companion', Companion_getInstance_227); + $com$bapis$bilibili$app$viewunite$common.KDescType = KDescType; + $com$bapis$bilibili$app$viewunite$common.KDescType.values = values_53; + $com$bapis$bilibili$app$viewunite$common.KDescType.valueOf = valueOf_53; + defineProp($com$bapis$bilibili$app$viewunite$common.KDescType, 'UNKNOWN', KDescType_UNKNOWN_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KDescType, 'TEXT', KDescType_TEXT_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KDescType, 'AT', KDescType_AT_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KDescType, 'UNRECOGNIZED', KDescType_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KDescType, 'Companion', Companion_getInstance_228); + $com$bapis$bilibili$app$viewunite$common.KKingPositionType = KKingPositionType; + $com$bapis$bilibili$app$viewunite$common.KKingPositionType.values = values_54; + $com$bapis$bilibili$app$viewunite$common.KKingPositionType.valueOf = valueOf_54; + defineProp($com$bapis$bilibili$app$viewunite$common.KKingPositionType, 'KING_POS_UNSPECIFIED', KKingPositionType_KING_POS_UNSPECIFIED_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KKingPositionType, 'LIKE', KKingPositionType_LIKE_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KKingPositionType, 'DISLIKE', KKingPositionType_DISLIKE_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KKingPositionType, 'COIN', KKingPositionType_COIN_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KKingPositionType, 'FAV', KKingPositionType_FAV_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KKingPositionType, 'SHARE', KKingPositionType_SHARE_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KKingPositionType, 'CACHE', KKingPositionType_CACHE_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KKingPositionType, 'DANMAKU', KKingPositionType_DANMAKU_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KKingPositionType, 'UNRECOGNIZED', KKingPositionType_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KKingPositionType, 'Companion', Companion_getInstance_229); + $com$bapis$bilibili$app$viewunite$common.KReserveBizType = KReserveBizType; + $com$bapis$bilibili$app$viewunite$common.KReserveBizType.values = values_55; + $com$bapis$bilibili$app$viewunite$common.KReserveBizType.valueOf = valueOf_55; + defineProp($com$bapis$bilibili$app$viewunite$common.KReserveBizType, 'BIZ_TYPE_NONE', KReserveBizType_BIZ_TYPE_NONE_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KReserveBizType, 'BIZ_TYPE_RESERVE_ACTIVITY', KReserveBizType_BIZ_TYPE_RESERVE_ACTIVITY_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KReserveBizType, 'BIZ_TYPE_FAV_SEASON', KReserveBizType_BIZ_TYPE_FAV_SEASON_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KReserveBizType, 'UNRECOGNIZED', KReserveBizType_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KReserveBizType, 'Companion', Companion_getInstance_230); + $com$bapis$bilibili$app$viewunite$common.KModule = KModule; + $com$bapis$bilibili$app$viewunite$common.KModule.KData = KData_0; + defineProp($com$bapis$bilibili$app$viewunite$common.KModule, 'KOgvIntroduction', KOgvIntroduction_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KModule, 'KUgcIntroduction', KUgcIntroduction_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KModule, 'KKingPosition', KKingPosition_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KModule, 'KHeadLine', KHeadLine_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KModule, 'KOgvTitle', KOgvTitle_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KModule, 'KHonor', KHonor_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KModule, 'KList_', KList__getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KModule, 'KStaffs', KStaffs_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KModule, 'KActivityReserve', KActivityReserve_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KModule, 'KLiveOrder', KLiveOrder_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KModule, 'KSectionData', KSectionData_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KModule, 'KDeliveryData', KDeliveryData_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KModule, 'KFollowLayer', KFollowLayer_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KModule, 'KOgvSeasons', KOgvSeasons_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KModule, 'KUgcSeason', KUgcSeason_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KModule, 'KOgvLiveReserve', KOgvLiveReserve_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KModule, 'KCombinationEp', KCombinationEp_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KModule, 'KSponsor', KSponsor_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KModule, 'KActivityEntranceModule', KActivityEntranceModule_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KModule, 'KSerialSeason', KSerialSeason_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KModule, 'KRelates', KRelates_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KModule, 'KBanner', KBanner_getInstance_0); + defineProp($com$bapis$bilibili$app$viewunite$common.KModule, 'KAudio', KAudio_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KModule, 'KLikeComment', KLikeComment_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KModule, 'KAttentionRecommend', KAttentionRecommend_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KModule, 'KCovenanter', KCovenanter_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KModule, 'KSpecialTag', KSpecialTag_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KModule, 'KUpDataModule', KUpDataModule_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KModule, 'KProfessionApproval', KProfessionApproval_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KModule, 'KPugvShoppingNotice', KPugvShoppingNotice_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KModule, 'KPugvFaq', KPugvFaq_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KModule, 'KPugvSeasonDescription', KPugvSeasonDescription_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KModule, 'KPugvSeasonRecommend', KPugvSeasonRecommend_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KModule, 'KPugvSeasonPublisher', KPugvSeasonPublisher_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KModule, 'KPugvSeasonSelection', KPugvSeasonSelection_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KModule, 'KPugvSeasonPrimaryInfo', KPugvSeasonPrimaryInfo_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KModule, 'KPugvCooperationApplication', KPugvCooperationApplication_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KModule, 'KUpVideoTool', KUpVideoTool_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KModule, 'KPugvZone', KPugvZone_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KModule, 'KPugvSeries', KPugvSeries_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KModule, 'KPugvPackage', KPugvPackage_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KModule, 'Companion', Companion_getInstance_231); + $com$bapis$bilibili$app$viewunite$common.KUpVideoTool = KUpVideoTool_0; + defineProp($com$bapis$bilibili$app$viewunite$common.KUpVideoTool, 'Companion', Companion_getInstance_232); + $com$bapis$bilibili$app$viewunite$common.KUpTool = KUpTool; + defineProp($com$bapis$bilibili$app$viewunite$common.KUpTool, 'Companion', Companion_getInstance_233); + $com$bapis$bilibili$app$viewunite$common.KUpDataModule = KUpDataModule_0; + defineProp($com$bapis$bilibili$app$viewunite$common.KUpDataModule, 'Companion', Companion_getInstance_234); + $com$bapis$bilibili$app$viewunite$common.KExtTab = KExtTab; + defineProp($com$bapis$bilibili$app$viewunite$common.KExtTab, 'Companion', Companion_getInstance_235); + $com$bapis$bilibili$app$viewunite$common.KSpecialTag = KSpecialTag_0; + defineProp($com$bapis$bilibili$app$viewunite$common.KSpecialTag, 'Companion', Companion_getInstance_236); + $com$bapis$bilibili$app$viewunite$common.KAttentionRecommend = KAttentionRecommend_0; + defineProp($com$bapis$bilibili$app$viewunite$common.KAttentionRecommend, 'Companion', Companion_getInstance_237); + $com$bapis$bilibili$app$viewunite$common.KCovenanter = KCovenanter_0; + defineProp($com$bapis$bilibili$app$viewunite$common.KCovenanter, 'Companion', Companion_getInstance_238); + $com$bapis$bilibili$app$viewunite$common.KContractText = KContractText; + defineProp($com$bapis$bilibili$app$viewunite$common.KContractText, 'Companion', Companion_getInstance_239); + $com$bapis$bilibili$app$viewunite$common.KAudio = KAudio_0; + $com$bapis$bilibili$app$viewunite$common.KAudio.KAudioInfoEntry = KAudioInfoEntry; + defineProp($com$bapis$bilibili$app$viewunite$common.KAudio.KAudioInfoEntry, 'Companion', Companion_getInstance_240); + defineProp($com$bapis$bilibili$app$viewunite$common.KAudio, 'Companion', Companion_getInstance_241); + $com$bapis$bilibili$app$viewunite$common.KAudioInfo = KAudioInfo; + defineProp($com$bapis$bilibili$app$viewunite$common.KAudioInfo, 'Companion', Companion_getInstance_242); + $com$bapis$bilibili$app$viewunite$common.KBanner = KBanner_2; + defineProp($com$bapis$bilibili$app$viewunite$common.KBanner, 'Companion', Companion_getInstance_243); + $com$bapis$bilibili$app$viewunite$common.KActBannerItem = KActBannerItem; + $com$bapis$bilibili$app$viewunite$common.KActBannerItem.KReportEntry = KReportEntry; + defineProp($com$bapis$bilibili$app$viewunite$common.KActBannerItem.KReportEntry, 'Companion', Companion_getInstance_244); + defineProp($com$bapis$bilibili$app$viewunite$common.KActBannerItem, 'Companion', Companion_getInstance_245); + $com$bapis$bilibili$app$viewunite$common.KRelateItem = KRelateItem; + defineProp($com$bapis$bilibili$app$viewunite$common.KRelateItem, 'Companion', Companion_getInstance_246); + $com$bapis$bilibili$app$viewunite$common.KActivityEntranceModule = KActivityEntranceModule_0; + defineProp($com$bapis$bilibili$app$viewunite$common.KActivityEntranceModule, 'Companion', Companion_getInstance_247); + $com$bapis$bilibili$app$viewunite$common.KActivityEntrance = KActivityEntrance; + $com$bapis$bilibili$app$viewunite$common.KActivityEntrance.KReportEntry = KReportEntry_0; + defineProp($com$bapis$bilibili$app$viewunite$common.KActivityEntrance.KReportEntry, 'Companion', Companion_getInstance_248); + defineProp($com$bapis$bilibili$app$viewunite$common.KActivityEntrance, 'Companion', Companion_getInstance_249); + $com$bapis$bilibili$app$viewunite$common.KSponsor = KSponsor_0; + defineProp($com$bapis$bilibili$app$viewunite$common.KSponsor, 'Companion', Companion_getInstance_250); + $com$bapis$bilibili$app$viewunite$common.KPointActivity = KPointActivity; + defineProp($com$bapis$bilibili$app$viewunite$common.KPointActivity, 'Companion', Companion_getInstance_251); + $com$bapis$bilibili$app$viewunite$common.KSponsorRank = KSponsorRank; + defineProp($com$bapis$bilibili$app$viewunite$common.KSponsorRank, 'Companion', Companion_getInstance_252); + $com$bapis$bilibili$app$viewunite$common.KMine = KMine; + defineProp($com$bapis$bilibili$app$viewunite$common.KMine, 'Companion', Companion_getInstance_253); + $com$bapis$bilibili$app$viewunite$common.KRelates = KRelates_0; + defineProp($com$bapis$bilibili$app$viewunite$common.KRelates, 'Companion', Companion_getInstance_254); + $com$bapis$bilibili$app$viewunite$common.KRelateConfig = KRelateConfig; + defineProp($com$bapis$bilibili$app$viewunite$common.KRelateConfig, 'Companion', Companion_getInstance_255); + $com$bapis$bilibili$app$viewunite$common.KRelateCard = KRelateCard; + $com$bapis$bilibili$app$viewunite$common.KRelateCard.KCard = KCard; + defineProp($com$bapis$bilibili$app$viewunite$common.KRelateCard, 'KAv', KAv_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KRelateCard, 'KBangumi', KBangumi_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KRelateCard, 'KResource', KResource_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KRelateCard, 'KGame', KGame_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KRelateCard, 'KCm', KCm_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KRelateCard, 'KLive', KLive_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KRelateCard, 'KBangumiAv', KBangumiAv_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KRelateCard, 'KAiCard', KAiCard_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KRelateCard, 'KBangumiUgc', KBangumiUgc_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KRelateCard, 'KSpecial', KSpecial_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KRelateCard, 'KCourse', KCourse_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KRelateCard, 'Companion', Companion_getInstance_256); + $com$bapis$bilibili$app$viewunite$common.KRelateSpecial = KRelateSpecial; + defineProp($com$bapis$bilibili$app$viewunite$common.KRelateSpecial, 'Companion', Companion_getInstance_257); + $com$bapis$bilibili$app$viewunite$common.KRelatedAICard = KRelatedAICard; + $com$bapis$bilibili$app$viewunite$common.KRelatedAICard.KReportEntry = KReportEntry_1; + defineProp($com$bapis$bilibili$app$viewunite$common.KRelatedAICard.KReportEntry, 'Companion', Companion_getInstance_258); + defineProp($com$bapis$bilibili$app$viewunite$common.KRelatedAICard, 'Companion', Companion_getInstance_259); + $com$bapis$bilibili$app$viewunite$common.KRelateThreePoint = KRelateThreePoint; + defineProp($com$bapis$bilibili$app$viewunite$common.KRelateThreePoint, 'Companion', Companion_getInstance_260); + $com$bapis$bilibili$app$viewunite$common.KRelateDislike = KRelateDislike; + defineProp($com$bapis$bilibili$app$viewunite$common.KRelateDislike, 'Companion', Companion_getInstance_261); + $com$bapis$bilibili$app$viewunite$common.KCardBasicInfo = KCardBasicInfo; + defineProp($com$bapis$bilibili$app$viewunite$common.KCardBasicInfo, 'Companion', Companion_getInstance_262); + $com$bapis$bilibili$app$viewunite$common.KRelateBangumiAvCard = KRelateBangumiAvCard; + defineProp($com$bapis$bilibili$app$viewunite$common.KRelateBangumiAvCard, 'Companion', Companion_getInstance_263); + $com$bapis$bilibili$app$viewunite$common.KRelateAVCard = KRelateAVCard; + defineProp($com$bapis$bilibili$app$viewunite$common.KRelateAVCard, 'Companion', Companion_getInstance_264); + $com$bapis$bilibili$app$viewunite$common.KRelateCourseCard = KRelateCourseCard; + defineProp($com$bapis$bilibili$app$viewunite$common.KRelateCourseCard, 'Companion', Companion_getInstance_265); + $com$bapis$bilibili$app$viewunite$common.KRelateBangumiCard = KRelateBangumiCard; + $com$bapis$bilibili$app$viewunite$common.KRelateBangumiCard.KReportEntry = KReportEntry_2; + defineProp($com$bapis$bilibili$app$viewunite$common.KRelateBangumiCard.KReportEntry, 'Companion', Companion_getInstance_266); + defineProp($com$bapis$bilibili$app$viewunite$common.KRelateBangumiCard, 'Companion', Companion_getInstance_267); + $com$bapis$bilibili$app$viewunite$common.KRelateBangumiUGCCard = KRelateBangumiUGCCard; + defineProp($com$bapis$bilibili$app$viewunite$common.KRelateBangumiUGCCard, 'Companion', Companion_getInstance_268); + $com$bapis$bilibili$app$viewunite$common.KIconFont = KIconFont; + defineProp($com$bapis$bilibili$app$viewunite$common.KIconFont, 'Companion', Companion_getInstance_269); + $com$bapis$bilibili$app$viewunite$common.KUserStatus = KUserStatus; + defineProp($com$bapis$bilibili$app$viewunite$common.KUserStatus, 'Companion', Companion_getInstance_270); + $com$bapis$bilibili$app$viewunite$common.KRelateBangumiResourceCard = KRelateBangumiResourceCard; + $com$bapis$bilibili$app$viewunite$common.KRelateBangumiResourceCard.KReportEntry = KReportEntry_3; + defineProp($com$bapis$bilibili$app$viewunite$common.KRelateBangumiResourceCard.KReportEntry, 'Companion', Companion_getInstance_271); + defineProp($com$bapis$bilibili$app$viewunite$common.KRelateBangumiResourceCard, 'Companion', Companion_getInstance_272); + $com$bapis$bilibili$app$viewunite$common.KRelateGameCard = KRelateGameCard; + defineProp($com$bapis$bilibili$app$viewunite$common.KRelateGameCard, 'Companion', Companion_getInstance_273); + $com$bapis$bilibili$app$viewunite$common.KWikiInfo = KWikiInfo; + defineProp($com$bapis$bilibili$app$viewunite$common.KWikiInfo, 'Companion', Companion_getInstance_274); + $com$bapis$bilibili$app$viewunite$common.KPowerIconStyle = KPowerIconStyle; + defineProp($com$bapis$bilibili$app$viewunite$common.KPowerIconStyle, 'Companion', Companion_getInstance_275); + $com$bapis$bilibili$app$viewunite$common.KRankInfo = KRankInfo; + defineProp($com$bapis$bilibili$app$viewunite$common.KRankInfo, 'Companion', Companion_getInstance_276); + $com$bapis$bilibili$app$viewunite$common.KRelateCMCard = KRelateCMCard; + defineProp($com$bapis$bilibili$app$viewunite$common.KRelateCMCard, 'Companion', Companion_getInstance_277); + $com$bapis$bilibili$app$viewunite$common.KRelateLiveCard = KRelateLiveCard; + defineProp($com$bapis$bilibili$app$viewunite$common.KRelateLiveCard, 'Companion', Companion_getInstance_278); + $com$bapis$bilibili$app$viewunite$common.KOgvLiveReserve = KOgvLiveReserve_0; + $com$bapis$bilibili$app$viewunite$common.KOgvLiveReserve.KReportEntry = KReportEntry_4; + defineProp($com$bapis$bilibili$app$viewunite$common.KOgvLiveReserve.KReportEntry, 'Companion', Companion_getInstance_279); + defineProp($com$bapis$bilibili$app$viewunite$common.KOgvLiveReserve, 'Companion', Companion_getInstance_280); + $com$bapis$bilibili$app$viewunite$common.KOgvSeasons = KOgvSeasons_0; + defineProp($com$bapis$bilibili$app$viewunite$common.KOgvSeasons, 'Companion', Companion_getInstance_281); + $com$bapis$bilibili$app$viewunite$common.KUgcSeasons = KUgcSeasons; + defineProp($com$bapis$bilibili$app$viewunite$common.KUgcSeasons, 'Companion', Companion_getInstance_282); + $com$bapis$bilibili$app$viewunite$common.KSeasonHead = KSeasonHead; + defineProp($com$bapis$bilibili$app$viewunite$common.KSeasonHead, 'Companion', Companion_getInstance_283); + $com$bapis$bilibili$app$viewunite$common.KUgcSection = KUgcSection; + defineProp($com$bapis$bilibili$app$viewunite$common.KUgcSection, 'Companion', Companion_getInstance_284); + $com$bapis$bilibili$app$viewunite$common.KUgcEpisode = KUgcEpisode; + defineProp($com$bapis$bilibili$app$viewunite$common.KUgcEpisode, 'Companion', Companion_getInstance_285); + $com$bapis$bilibili$app$viewunite$common.KUgcSeasonActivity = KUgcSeasonActivity; + defineProp($com$bapis$bilibili$app$viewunite$common.KUgcSeasonActivity, 'Companion', Companion_getInstance_286); + $com$bapis$bilibili$app$viewunite$common.KUserActivity = KUserActivity; + defineProp($com$bapis$bilibili$app$viewunite$common.KUserActivity, 'Companion', Companion_getInstance_287); + $com$bapis$bilibili$app$viewunite$common.KSeasonShow = KSeasonShow; + defineProp($com$bapis$bilibili$app$viewunite$common.KSeasonShow, 'Companion', Companion_getInstance_288); + $com$bapis$bilibili$app$viewunite$common.KSerialSeason = KSerialSeason_0; + $com$bapis$bilibili$app$viewunite$common.KSerialSeason.KReportEntry = KReportEntry_5; + defineProp($com$bapis$bilibili$app$viewunite$common.KSerialSeason.KReportEntry, 'Companion', Companion_getInstance_289); + defineProp($com$bapis$bilibili$app$viewunite$common.KSerialSeason, 'Companion', Companion_getInstance_290); + $com$bapis$bilibili$app$viewunite$common.KNewEp = KNewEp; + defineProp($com$bapis$bilibili$app$viewunite$common.KNewEp, 'Companion', Companion_getInstance_291); + $com$bapis$bilibili$app$viewunite$common.KFollowLayer = KFollowLayer_0; + $com$bapis$bilibili$app$viewunite$common.KFollowLayer.KReportEntry = KReportEntry_6; + defineProp($com$bapis$bilibili$app$viewunite$common.KFollowLayer.KReportEntry, 'Companion', Companion_getInstance_292); + defineProp($com$bapis$bilibili$app$viewunite$common.KFollowLayer, 'Companion', Companion_getInstance_293); + $com$bapis$bilibili$app$viewunite$common.KDesc = KDesc; + defineProp($com$bapis$bilibili$app$viewunite$common.KDesc, 'Companion', Companion_getInstance_294); + $com$bapis$bilibili$app$viewunite$common.KSectionData = KSectionData_0; + $com$bapis$bilibili$app$viewunite$common.KSectionData.KReportEntry = KReportEntry_7; + defineProp($com$bapis$bilibili$app$viewunite$common.KSectionData.KReportEntry, 'Companion', Companion_getInstance_295); + defineProp($com$bapis$bilibili$app$viewunite$common.KSectionData, 'Companion', Companion_getInstance_296); + $com$bapis$bilibili$app$viewunite$common.KButton = KButton_0; + defineProp($com$bapis$bilibili$app$viewunite$common.KButton, 'Companion', Companion_getInstance_297); + $com$bapis$bilibili$app$viewunite$common.KCombinationEp = KCombinationEp_0; + defineProp($com$bapis$bilibili$app$viewunite$common.KCombinationEp, 'Companion', Companion_getInstance_298); + $com$bapis$bilibili$app$viewunite$common.KDeliveryData = KDeliveryData_0; + $com$bapis$bilibili$app$viewunite$common.KDeliveryData.KData = KData_1; + defineProp($com$bapis$bilibili$app$viewunite$common.KDeliveryData, 'KActivity', KActivity_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KDeliveryData, 'KCharacters', KCharacters_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KDeliveryData, 'KTheatreHotTopic', KTheatreHotTopic_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KDeliveryData, 'KAggEps', KAggEps_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KDeliveryData, 'KActPageItems', KActPageItems_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KDeliveryData, 'Companion', Companion_getInstance_300); + $com$bapis$bilibili$app$viewunite$common.KDeliveryData.KReportEntry = KReportEntry_8; + defineProp($com$bapis$bilibili$app$viewunite$common.KDeliveryData.KReportEntry, 'Companion', Companion_getInstance_299); + $com$bapis$bilibili$app$viewunite$common.KAggEps = KAggEps_0; + defineProp($com$bapis$bilibili$app$viewunite$common.KAggEps, 'Companion', Companion_getInstance_301); + $com$bapis$bilibili$app$viewunite$common.KAggEpCard = KAggEpCard; + defineProp($com$bapis$bilibili$app$viewunite$common.KAggEpCard, 'Companion', Companion_getInstance_302); + $com$bapis$bilibili$app$viewunite$common.KTheatreHotTopic = KTheatreHotTopic_0; + $com$bapis$bilibili$app$viewunite$common.KTheatreHotTopic.KReportEntry = KReportEntry_9; + defineProp($com$bapis$bilibili$app$viewunite$common.KTheatreHotTopic.KReportEntry, 'Companion', Companion_getInstance_303); + defineProp($com$bapis$bilibili$app$viewunite$common.KTheatreHotTopic, 'Companion', Companion_getInstance_304); + $com$bapis$bilibili$app$viewunite$common.KActPageItems = KActPageItems_0; + defineProp($com$bapis$bilibili$app$viewunite$common.KActPageItems, 'Companion', Companion_getInstance_305); + $com$bapis$bilibili$app$viewunite$common.KActivity = KActivity_0; + defineProp($com$bapis$bilibili$app$viewunite$common.KActivity, 'Companion', Companion_getInstance_306); + $com$bapis$bilibili$app$viewunite$common.KPendant = KPendant; + defineProp($com$bapis$bilibili$app$viewunite$common.KPendant, 'Companion', Companion_getInstance_307); + $com$bapis$bilibili$app$viewunite$common.KThreshold = KThreshold; + defineProp($com$bapis$bilibili$app$viewunite$common.KThreshold, 'Companion', Companion_getInstance_308); + $com$bapis$bilibili$app$viewunite$common.KItem = KItem; + defineProp($com$bapis$bilibili$app$viewunite$common.KItem, 'Companion', Companion_getInstance_309); + $com$bapis$bilibili$app$viewunite$common.KCharacters = KCharacters_0; + defineProp($com$bapis$bilibili$app$viewunite$common.KCharacters, 'Companion', Companion_getInstance_310); + $com$bapis$bilibili$app$viewunite$common.KCharacterGroup = KCharacterGroup; + defineProp($com$bapis$bilibili$app$viewunite$common.KCharacterGroup, 'Companion', Companion_getInstance_311); + $com$bapis$bilibili$app$viewunite$common.KCelebrity = KCelebrity; + $com$bapis$bilibili$app$viewunite$common.KCelebrity.KReportEntry = KReportEntry_10; + defineProp($com$bapis$bilibili$app$viewunite$common.KCelebrity.KReportEntry, 'Companion', Companion_getInstance_312); + defineProp($com$bapis$bilibili$app$viewunite$common.KCelebrity, 'Companion', Companion_getInstance_313); + $com$bapis$bilibili$app$viewunite$common.KStyle = KStyle; + defineProp($com$bapis$bilibili$app$viewunite$common.KStyle, 'Companion', Companion_getInstance_314); + $com$bapis$bilibili$app$viewunite$common.KCardStyle = KCardStyle; + defineProp($com$bapis$bilibili$app$viewunite$common.KCardStyle, 'Companion', Companion_getInstance_315); + $com$bapis$bilibili$app$viewunite$common.KViewEpisode = KViewEpisode; + $com$bapis$bilibili$app$viewunite$common.KViewEpisode.KReportEntry = KReportEntry_11; + defineProp($com$bapis$bilibili$app$viewunite$common.KViewEpisode.KReportEntry, 'Companion', Companion_getInstance_316); + defineProp($com$bapis$bilibili$app$viewunite$common.KViewEpisode, 'Companion', Companion_getInstance_317); + $com$bapis$bilibili$app$viewunite$common.KRights = KRights; + defineProp($com$bapis$bilibili$app$viewunite$common.KRights, 'Companion', Companion_getInstance_318); + $com$bapis$bilibili$app$viewunite$common.KInteraction = KInteraction_1; + defineProp($com$bapis$bilibili$app$viewunite$common.KInteraction, 'Companion', Companion_getInstance_319); + $com$bapis$bilibili$app$viewunite$common.KHistoryNode = KHistoryNode; + defineProp($com$bapis$bilibili$app$viewunite$common.KHistoryNode, 'Companion', Companion_getInstance_320); + $com$bapis$bilibili$app$viewunite$common.KSkipRange = KSkipRange; + defineProp($com$bapis$bilibili$app$viewunite$common.KSkipRange, 'Companion', Companion_getInstance_321); + $com$bapis$bilibili$app$viewunite$common.KMultiViewEp = KMultiViewEp; + defineProp($com$bapis$bilibili$app$viewunite$common.KMultiViewEp, 'Companion', Companion_getInstance_322); + $com$bapis$bilibili$app$viewunite$common.KLikeComment = KLikeComment_0; + defineProp($com$bapis$bilibili$app$viewunite$common.KLikeComment, 'Companion', Companion_getInstance_323); + $com$bapis$bilibili$app$viewunite$common.KLiveOrder = KLiveOrder_0; + defineProp($com$bapis$bilibili$app$viewunite$common.KLiveOrder, 'Companion', Companion_getInstance_324); + $com$bapis$bilibili$app$viewunite$common.KActivityReserve = KActivityReserve_0; + defineProp($com$bapis$bilibili$app$viewunite$common.KActivityReserve, 'Companion', Companion_getInstance_325); + $com$bapis$bilibili$app$viewunite$common.KReserveButton = KReserveButton; + $com$bapis$bilibili$app$viewunite$common.KReserveButton.KOrderParam = KOrderParam; + defineProp($com$bapis$bilibili$app$viewunite$common.KReserveButton, 'KReserve', KReserve_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KReserveButton, 'KFav', KFav_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KReserveButton, 'Companion', Companion_getInstance_326); + $com$bapis$bilibili$app$viewunite$common.KOgvTitle = KOgvTitle_0; + defineProp($com$bapis$bilibili$app$viewunite$common.KOgvTitle, 'Companion', Companion_getInstance_327); + $com$bapis$bilibili$app$viewunite$common.KTitleDeliveryButton = KTitleDeliveryButton; + $com$bapis$bilibili$app$viewunite$common.KTitleDeliveryButton.KReportEntry = KReportEntry_12; + defineProp($com$bapis$bilibili$app$viewunite$common.KTitleDeliveryButton.KReportEntry, 'Companion', Companion_getInstance_328); + defineProp($com$bapis$bilibili$app$viewunite$common.KTitleDeliveryButton, 'Companion', Companion_getInstance_329); + $com$bapis$bilibili$app$viewunite$common.KCatalogTab = KCatalogTab; + defineProp($com$bapis$bilibili$app$viewunite$common.KCatalogTab, 'Companion', Companion_getInstance_330); + $com$bapis$bilibili$app$viewunite$common.KActivityTab = KActivityTab; + $com$bapis$bilibili$app$viewunite$common.KActivityTab.KReportEntry = KReportEntry_13; + defineProp($com$bapis$bilibili$app$viewunite$common.KActivityTab.KReportEntry, 'Companion', Companion_getInstance_331); + defineProp($com$bapis$bilibili$app$viewunite$common.KActivityTab, 'Companion', Companion_getInstance_332); + $com$bapis$bilibili$app$viewunite$common.KDimension = KDimension_0; + defineProp($com$bapis$bilibili$app$viewunite$common.KDimension, 'Companion', Companion_getInstance_333); + $com$bapis$bilibili$app$viewunite$common.KStaff = KStaff; + defineProp($com$bapis$bilibili$app$viewunite$common.KStaff, 'Companion', Companion_getInstance_334); + $com$bapis$bilibili$app$viewunite$common.KVip = KVip; + defineProp($com$bapis$bilibili$app$viewunite$common.KVip, 'Companion', Companion_getInstance_335); + $com$bapis$bilibili$app$viewunite$common.KVipLabel = KVipLabel; + defineProp($com$bapis$bilibili$app$viewunite$common.KVipLabel, 'Companion', Companion_getInstance_336); + $com$bapis$bilibili$app$viewunite$common.KOfficialVerify = KOfficialVerify; + defineProp($com$bapis$bilibili$app$viewunite$common.KOfficialVerify, 'Companion', Companion_getInstance_337); + $com$bapis$bilibili$app$viewunite$common.KStaffs = KStaffs_0; + defineProp($com$bapis$bilibili$app$viewunite$common.KStaffs, 'Companion', Companion_getInstance_338); + $com$bapis$bilibili$app$viewunite$common.KOwner = KOwner; + defineProp($com$bapis$bilibili$app$viewunite$common.KOwner, 'Companion', Companion_getInstance_339); + $com$bapis$bilibili$app$viewunite$common.KLive = KLive_0; + defineProp($com$bapis$bilibili$app$viewunite$common.KLive, 'Companion', Companion_getInstance_340); + $com$bapis$bilibili$app$viewunite$common.KPugvSeasonSelection = KPugvSeasonSelection_0; + defineProp($com$bapis$bilibili$app$viewunite$common.KPugvSeasonSelection, 'Companion', Companion_getInstance_341); + $com$bapis$bilibili$app$viewunite$common.KPugvSeasonPrimaryHotRank = KPugvSeasonPrimaryHotRank; + defineProp($com$bapis$bilibili$app$viewunite$common.KPugvSeasonPrimaryHotRank, 'Companion', Companion_getInstance_342); + $com$bapis$bilibili$app$viewunite$common.KPugvSeasonPrimaryBadge = KPugvSeasonPrimaryBadge; + defineProp($com$bapis$bilibili$app$viewunite$common.KPugvSeasonPrimaryBadge, 'Companion', Companion_getInstance_343); + $com$bapis$bilibili$app$viewunite$common.KPugvSeasonPrimaryRankInfo = KPugvSeasonPrimaryRankInfo; + defineProp($com$bapis$bilibili$app$viewunite$common.KPugvSeasonPrimaryRankInfo, 'Companion', Companion_getInstance_344); + $com$bapis$bilibili$app$viewunite$common.KPugvSeasonPrimarySellPointInfo = KPugvSeasonPrimarySellPointInfo; + defineProp($com$bapis$bilibili$app$viewunite$common.KPugvSeasonPrimarySellPointInfo, 'Companion', Companion_getInstance_345); + $com$bapis$bilibili$app$viewunite$common.KPugvSeasonPrimarySellPoint = KPugvSeasonPrimarySellPoint; + defineProp($com$bapis$bilibili$app$viewunite$common.KPugvSeasonPrimarySellPoint, 'Companion', Companion_getInstance_346); + $com$bapis$bilibili$app$viewunite$common.KPugvSeasonPrimaryCustomInfo = KPugvSeasonPrimaryCustomInfo; + defineProp($com$bapis$bilibili$app$viewunite$common.KPugvSeasonPrimaryCustomInfo, 'Companion', Companion_getInstance_347); + $com$bapis$bilibili$app$viewunite$common.KPugvSeasonPrimaryInfo = KPugvSeasonPrimaryInfo_0; + defineProp($com$bapis$bilibili$app$viewunite$common.KPugvSeasonPrimaryInfo, 'Companion', Companion_getInstance_348); + $com$bapis$bilibili$app$viewunite$common.KPugvCooperationApplication = KPugvCooperationApplication_0; + defineProp($com$bapis$bilibili$app$viewunite$common.KPugvCooperationApplication, 'Companion', Companion_getInstance_349); + $com$bapis$bilibili$app$viewunite$common.KPugvSeasonNav = KPugvSeasonNav; + defineProp($com$bapis$bilibili$app$viewunite$common.KPugvSeasonNav, 'Companion', Companion_getInstance_350); + $com$bapis$bilibili$app$viewunite$common.KPugvShoppingNotice = KPugvShoppingNotice_0; + defineProp($com$bapis$bilibili$app$viewunite$common.KPugvShoppingNotice, 'Companion', Companion_getInstance_351); + $com$bapis$bilibili$app$viewunite$common.KPugvShoppingNoticeContent = KPugvShoppingNoticeContent; + defineProp($com$bapis$bilibili$app$viewunite$common.KPugvShoppingNoticeContent, 'Companion', Companion_getInstance_352); + $com$bapis$bilibili$app$viewunite$common.KPugvFaq = KPugvFaq_0; + defineProp($com$bapis$bilibili$app$viewunite$common.KPugvFaq, 'Companion', Companion_getInstance_353); + $com$bapis$bilibili$app$viewunite$common.KPugvFaqContent = KPugvFaqContent; + defineProp($com$bapis$bilibili$app$viewunite$common.KPugvFaqContent, 'Companion', Companion_getInstance_354); + $com$bapis$bilibili$app$viewunite$common.KPugvSeasonRecommend = KPugvSeasonRecommend_0; + defineProp($com$bapis$bilibili$app$viewunite$common.KPugvSeasonRecommend, 'Companion', Companion_getInstance_355); + $com$bapis$bilibili$app$viewunite$common.KPugvSeasonRecommendContent = KPugvSeasonRecommendContent; + defineProp($com$bapis$bilibili$app$viewunite$common.KPugvSeasonRecommendContent, 'Companion', Companion_getInstance_356); + $com$bapis$bilibili$app$viewunite$common.KPugvSeasonRecommendMore = KPugvSeasonRecommendMore; + defineProp($com$bapis$bilibili$app$viewunite$common.KPugvSeasonRecommendMore, 'Companion', Companion_getInstance_357); + $com$bapis$bilibili$app$viewunite$common.KPugvSeasonPublisher = KPugvSeasonPublisher_0; + defineProp($com$bapis$bilibili$app$viewunite$common.KPugvSeasonPublisher, 'Companion', Companion_getInstance_358); + $com$bapis$bilibili$app$viewunite$common.KPugvSeasonCooperator = KPugvSeasonCooperator; + defineProp($com$bapis$bilibili$app$viewunite$common.KPugvSeasonCooperator, 'Companion', Companion_getInstance_359); + $com$bapis$bilibili$app$viewunite$common.KPugvSeasonPublisherSkuContent = KPugvSeasonPublisherSkuContent; + defineProp($com$bapis$bilibili$app$viewunite$common.KPugvSeasonPublisherSkuContent, 'Companion', Companion_getInstance_360); + $com$bapis$bilibili$app$viewunite$common.KPugvSeasonPublisherSkuContentItem = KPugvSeasonPublisherSkuContentItem; + defineProp($com$bapis$bilibili$app$viewunite$common.KPugvSeasonPublisherSkuContentItem, 'Companion', Companion_getInstance_361); + $com$bapis$bilibili$app$viewunite$common.KPugvSeasonDescription = KPugvSeasonDescription_0; + $com$bapis$bilibili$app$viewunite$common.KPugvSeasonDescription.KContent = KContent_0; + defineProp($com$bapis$bilibili$app$viewunite$common.KPugvSeasonDescription, 'KText', KText_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KPugvSeasonDescription, 'KImage', KImage_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KPugvSeasonDescription, 'Companion', Companion_getInstance_362); + $com$bapis$bilibili$app$viewunite$common.KPugvSeasonDescriptionText = KPugvSeasonDescriptionText; + defineProp($com$bapis$bilibili$app$viewunite$common.KPugvSeasonDescriptionText, 'Companion', Companion_getInstance_363); + $com$bapis$bilibili$app$viewunite$common.KPugvSeasonDescriptionImage = KPugvSeasonDescriptionImage; + defineProp($com$bapis$bilibili$app$viewunite$common.KPugvSeasonDescriptionImage, 'Companion', Companion_getInstance_364); + $com$bapis$bilibili$app$viewunite$common.KPugvSeasonDescriptionImageItem = KPugvSeasonDescriptionImageItem; + defineProp($com$bapis$bilibili$app$viewunite$common.KPugvSeasonDescriptionImageItem, 'Companion', Companion_getInstance_365); + $com$bapis$bilibili$app$viewunite$common.KPugvZone = KPugvZone_0; + defineProp($com$bapis$bilibili$app$viewunite$common.KPugvZone, 'Companion', Companion_getInstance_366); + $com$bapis$bilibili$app$viewunite$common.KPugvZoneItem = KPugvZoneItem; + defineProp($com$bapis$bilibili$app$viewunite$common.KPugvZoneItem, 'Companion', Companion_getInstance_367); + $com$bapis$bilibili$app$viewunite$common.KPugvSeries = KPugvSeries_0; + defineProp($com$bapis$bilibili$app$viewunite$common.KPugvSeries, 'Companion', Companion_getInstance_368); + $com$bapis$bilibili$app$viewunite$common.KPugvSeriesItem = KPugvSeriesItem; + defineProp($com$bapis$bilibili$app$viewunite$common.KPugvSeriesItem, 'Companion', Companion_getInstance_369); + $com$bapis$bilibili$app$viewunite$common.KPugvPackage = KPugvPackage_0; + defineProp($com$bapis$bilibili$app$viewunite$common.KPugvPackage, 'Companion', Companion_getInstance_370); + $com$bapis$bilibili$app$viewunite$common.KPugvPackageItem = KPugvPackageItem; + defineProp($com$bapis$bilibili$app$viewunite$common.KPugvPackageItem, 'Companion', Companion_getInstance_371); + $com$bapis$bilibili$app$viewunite$common.KProfessionApproval = KProfessionApproval_0; + defineProp($com$bapis$bilibili$app$viewunite$common.KProfessionApproval, 'Companion', Companion_getInstance_372); + $com$bapis$bilibili$app$viewunite$common.KHonor = KHonor_0; + $com$bapis$bilibili$app$viewunite$common.KHonor.KExtend = KExtend; + defineProp($com$bapis$bilibili$app$viewunite$common.KHonor, 'KProfessionExt', KProfessionExt_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KHonor, 'Companion', Companion_getInstance_374); + $com$bapis$bilibili$app$viewunite$common.KHonor.KReportEntry = KReportEntry_14; + defineProp($com$bapis$bilibili$app$viewunite$common.KHonor.KReportEntry, 'Companion', Companion_getInstance_373); + $com$bapis$bilibili$app$viewunite$common.KUserList = KUserList; + defineProp($com$bapis$bilibili$app$viewunite$common.KUserList, 'Companion', Companion_getInstance_375); + $com$bapis$bilibili$app$viewunite$common.KUser = KUser; + defineProp($com$bapis$bilibili$app$viewunite$common.KUser, 'Companion', Companion_getInstance_376); + $com$bapis$bilibili$app$viewunite$common.KOgvIntroduction = KOgvIntroduction_0; + defineProp($com$bapis$bilibili$app$viewunite$common.KOgvIntroduction, 'Companion', Companion_getInstance_377); + $com$bapis$bilibili$app$viewunite$common.KUgcIntroduction = KUgcIntroduction_0; + defineProp($com$bapis$bilibili$app$viewunite$common.KUgcIntroduction, 'Companion', Companion_getInstance_378); + $com$bapis$bilibili$app$viewunite$common.KNeutral = KNeutral; + defineProp($com$bapis$bilibili$app$viewunite$common.KNeutral, 'Companion', Companion_getInstance_379); + $com$bapis$bilibili$app$viewunite$common.KStatInfo = KStatInfo; + defineProp($com$bapis$bilibili$app$viewunite$common.KStatInfo, 'Companion', Companion_getInstance_380); + $com$bapis$bilibili$app$viewunite$common.KDescV2 = KDescV2; + defineProp($com$bapis$bilibili$app$viewunite$common.KDescV2, 'Companion', Companion_getInstance_381); + $com$bapis$bilibili$app$viewunite$common.KRank = KRank; + defineProp($com$bapis$bilibili$app$viewunite$common.KRank, 'Companion', Companion_getInstance_382); + $com$bapis$bilibili$app$viewunite$common.KKingPosition = KKingPosition_0; + defineProp($com$bapis$bilibili$app$viewunite$common.KKingPosition, 'Companion', Companion_getInstance_383); + $com$bapis$bilibili$app$viewunite$common.KRating = KRating; + defineProp($com$bapis$bilibili$app$viewunite$common.KRating, 'Companion', Companion_getInstance_384); + $com$bapis$bilibili$app$viewunite$common.KViewMaterial = KViewMaterial; + defineProp($com$bapis$bilibili$app$viewunite$common.KViewMaterial, 'Companion', Companion_getInstance_385); + $com$bapis$bilibili$app$viewunite$common.KHeadline = KHeadline; + defineProp($com$bapis$bilibili$app$viewunite$common.KHeadline, 'Companion', Companion_getInstance_386); + $com$bapis$bilibili$app$viewunite$common.KLabel = KLabel_0; + defineProp($com$bapis$bilibili$app$viewunite$common.KLabel, 'Companion', Companion_getInstance_387); + $com$bapis$bilibili$app$viewunite$common.KTag = KTag; + defineProp($com$bapis$bilibili$app$viewunite$common.KTag, 'Companion', Companion_getInstance_388); + $com$bapis$bilibili$app$viewunite$common.KKingPos = KKingPos; + $com$bapis$bilibili$app$viewunite$common.KKingPos.KExtend = KExtend_0; + defineProp($com$bapis$bilibili$app$viewunite$common.KKingPos, 'KLike', KLike_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KKingPos, 'KCoin', KCoin_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$common.KKingPos, 'Companion', Companion_getInstance_389); + $com$bapis$bilibili$app$viewunite$common.KBadgeInfo = KBadgeInfo_0; + defineProp($com$bapis$bilibili$app$viewunite$common.KBadgeInfo, 'Companion', Companion_getInstance_390); + $com$bapis$bilibili$app$viewunite$common.KCoinExtend = KCoinExtend; + defineProp($com$bapis$bilibili$app$viewunite$common.KCoinExtend, 'Companion', Companion_getInstance_391); + $com$bapis$bilibili$app$viewunite$common.KLikeExtend = KLikeExtend; + defineProp($com$bapis$bilibili$app$viewunite$common.KLikeExtend, 'Companion', Companion_getInstance_392); + $com$bapis$bilibili$app$viewunite$common.KActivityResource = KActivityResource; + defineProp($com$bapis$bilibili$app$viewunite$common.KActivityResource, 'Companion', Companion_getInstance_393); + $com$bapis$bilibili$app$viewunite$common.KPlayerAnimation = KPlayerAnimation; + defineProp($com$bapis$bilibili$app$viewunite$common.KPlayerAnimation, 'Companion', Companion_getInstance_394); + $com$bapis$bilibili$app$viewunite$common.KDislikeReasons = KDislikeReasons; + defineProp($com$bapis$bilibili$app$viewunite$common.KDislikeReasons, 'Companion', Companion_getInstance_395); + $com$bapis$bilibili$app$viewunite$common.KUpLikeImg = KUpLikeImg; + defineProp($com$bapis$bilibili$app$viewunite$common.KUpLikeImg, 'Companion', Companion_getInstance_396); + $com$bapis$bilibili$app$viewunite$common.KBizReserveActivityParam = KBizReserveActivityParam; + defineProp($com$bapis$bilibili$app$viewunite$common.KBizReserveActivityParam, 'Companion', Companion_getInstance_397); + $com$bapis$bilibili$app$viewunite$common.KBizFavParam = KBizFavParam; + defineProp($com$bapis$bilibili$app$viewunite$common.KBizFavParam, 'Companion', Companion_getInstance_398); + $com$bapis$bilibili$app$viewunite$common.KPage = KPage; + defineProp($com$bapis$bilibili$app$viewunite$common.KPage, 'Companion', Companion_getInstance_399); + $com$bapis$bilibili$app$viewunite$common.KStat = KStat; + defineProp($com$bapis$bilibili$app$viewunite$common.KStat, 'Companion', Companion_getInstance_400); + $com$bapis$bilibili$app$viewunite$common.KSpecialCell = KSpecialCell; + defineProp($com$bapis$bilibili$app$viewunite$common.KSpecialCell, 'Companion', Companion_getInstance_401); + $com$bapis$bilibili$app$viewunite$common.KCellFluid = KCellFluid; + defineProp($com$bapis$bilibili$app$viewunite$common.KCellFluid, 'Companion', Companion_getInstance_402); + $com$bapis$bilibili$app$viewunite$common.KProfessionHonorExtend = KProfessionHonorExtend; + defineProp($com$bapis$bilibili$app$viewunite$common.KProfessionHonorExtend, 'Companion', Companion_getInstance_403); + $com$bapis$bilibili$app$viewunite$common.KProfessionPopup = KProfessionPopup; + defineProp($com$bapis$bilibili$app$viewunite$common.KProfessionPopup, 'Companion', Companion_getInstance_404); + $com$bapis$bilibili$app$viewunite$common.KReserveCalendarInfo = KReserveCalendarInfo; + defineProp($com$bapis$bilibili$app$viewunite$common.KReserveCalendarInfo, 'Companion', Companion_getInstance_405); + $com$bapis$bilibili$app$viewunite$common.KEpBgInfo = KEpBgInfo; + defineProp($com$bapis$bilibili$app$viewunite$common.KEpBgInfo, 'Companion', Companion_getInstance_406); + $com$bapis$bilibili$app$viewunite$common.KBgInfo = KBgInfo; + defineProp($com$bapis$bilibili$app$viewunite$common.KBgInfo, 'Companion', Companion_getInstance_407); + $com$bapis$bilibili$app$viewunite$common.values$factory = values$factory_37; + $com$bapis$bilibili$app$viewunite$common.values$factory = values$factory_38; + $com$bapis$bilibili$app$viewunite$common.values$factory = values$factory_39; + $com$bapis$bilibili$app$viewunite$common.values$factory = values$factory_40; + $com$bapis$bilibili$app$viewunite$common.values$factory = values$factory_41; + $com$bapis$bilibili$app$viewunite$common.values$factory = values$factory_42; + $com$bapis$bilibili$app$viewunite$common.values$factory = values$factory_43; + $com$bapis$bilibili$app$viewunite$common.values$factory = values$factory_44; + $com$bapis$bilibili$app$viewunite$common.values$factory = values$factory_45; + $com$bapis$bilibili$app$viewunite$common.values$factory = values$factory_46; + $com$bapis$bilibili$app$viewunite$common.values$factory = values$factory_47; + $com$bapis$bilibili$app$viewunite$common.values$factory = values$factory_48; + $com$bapis$bilibili$app$viewunite$common.values$factory = values$factory_49; + $com$bapis$bilibili$app$viewunite$common.values$factory = values$factory_50; + $com$bapis$bilibili$app$viewunite$common.values$factory = values$factory_51; + $com$bapis$bilibili$app$viewunite$common.values$factory = values$factory_52; + $com$bapis$bilibili$app$viewunite$common.values$factory = values$factory_53; + $com$bapis$bilibili$app$viewunite$common.values$factory = values$factory_54; + $com$bapis$bilibili$app$viewunite$common.values$factory = values$factory_55; + $com$bapis$bilibili$app$viewunite$common.dataNumber$factory = dataNumber$factory_0; + $com$bapis$bilibili$app$viewunite$common.dataValues$factory = dataValues$factory_0; + $com$bapis$bilibili$app$viewunite$common.cardNumber$factory = cardNumber$factory; + $com$bapis$bilibili$app$viewunite$common.cardValues$factory = cardValues$factory; + $com$bapis$bilibili$app$viewunite$common.dataNumber$factory = dataNumber$factory_1; + $com$bapis$bilibili$app$viewunite$common.dataValues$factory = dataValues$factory_1; + $com$bapis$bilibili$app$viewunite$common.orderParamNumber$factory = orderParamNumber$factory; + $com$bapis$bilibili$app$viewunite$common.orderParamValues$factory = orderParamValues$factory; + $com$bapis$bilibili$app$viewunite$common.contentNumber$factory = contentNumber$factory_0; + $com$bapis$bilibili$app$viewunite$common.contentValues$factory = contentValues$factory_0; + $com$bapis$bilibili$app$viewunite$common.extendNumber$factory = extendNumber$factory; + $com$bapis$bilibili$app$viewunite$common.extendValues$factory = extendValues$factory; + $com$bapis$bilibili$app$viewunite$common.extendNumber$factory = extendNumber$factory_0; + $com$bapis$bilibili$app$viewunite$common.extendValues$factory = extendValues$factory_0; + var $com = _.com || (_.com = {}); + var $com$bapis = $com.bapis || ($com.bapis = {}); + var $com$bapis$bilibili = $com$bapis.bilibili || ($com$bapis.bilibili = {}); + var $com$bapis$bilibili$app = $com$bapis$bilibili.app || ($com$bapis$bilibili.app = {}); + var $com$bapis$bilibili$app$viewunite = $com$bapis$bilibili$app.viewunite || ($com$bapis$bilibili$app.viewunite = {}); + var $com$bapis$bilibili$app$viewunite$v1 = $com$bapis$bilibili$app$viewunite.v1 || ($com$bapis$bilibili$app$viewunite.v1 = {}); + $com$bapis$bilibili$app$viewunite$v1.KECode = KECode; + $com$bapis$bilibili$app$viewunite$v1.KECode.values = values_56; + $com$bapis$bilibili$app$viewunite$v1.KECode.valueOf = valueOf_56; + defineProp($com$bapis$bilibili$app$viewunite$v1.KECode, 'CODE_DEFAULT', KECode_CODE_DEFAULT_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$v1.KECode, 'CODE_404', KECode_CODE_404_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$v1.KECode, 'CODE_TEENAGER', KECode_CODE_TEENAGER_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$v1.KECode, 'UNRECOGNIZED', KECode_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$v1.KECode, 'Companion', Companion_getInstance_408); + $com$bapis$bilibili$app$viewunite$v1.KPlayToastEnum = KPlayToastEnum; + $com$bapis$bilibili$app$viewunite$v1.KPlayToastEnum.values = values_57; + $com$bapis$bilibili$app$viewunite$v1.KPlayToastEnum.valueOf = valueOf_57; + defineProp($com$bapis$bilibili$app$viewunite$v1.KPlayToastEnum, 'PLAYTOAST_UNKNOWN', KPlayToastEnum_PLAYTOAST_UNKNOWN_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$v1.KPlayToastEnum, 'PLAYTOAST_CHARGINGPLUS', KPlayToastEnum_PLAYTOAST_CHARGINGPLUS_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$v1.KPlayToastEnum, 'UNRECOGNIZED', KPlayToastEnum_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$v1.KPlayToastEnum, 'Companion', Companion_getInstance_409); + $com$bapis$bilibili$app$viewunite$v1.KJumpShowType = KJumpShowType; + $com$bapis$bilibili$app$viewunite$v1.KJumpShowType.values = values_58; + $com$bapis$bilibili$app$viewunite$v1.KJumpShowType.valueOf = valueOf_58; + defineProp($com$bapis$bilibili$app$viewunite$v1.KJumpShowType, 'JST_DEFAULT', KJumpShowType_JST_DEFAULT_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$v1.KJumpShowType, 'JST_FULLSCREEN', KJumpShowType_JST_FULLSCREEN_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$v1.KJumpShowType, 'JST_HALFSCREEN', KJumpShowType_JST_HALFSCREEN_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$v1.KJumpShowType, 'UNRECOGNIZED', KJumpShowType_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$v1.KJumpShowType, 'Companion', Companion_getInstance_410); + $com$bapis$bilibili$app$viewunite$v1.KTabType = KTabType; + $com$bapis$bilibili$app$viewunite$v1.KTabType.values = values_59; + $com$bapis$bilibili$app$viewunite$v1.KTabType.valueOf = valueOf_59; + defineProp($com$bapis$bilibili$app$viewunite$v1.KTabType, 'TAB_NONE', KTabType_TAB_NONE_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$v1.KTabType, 'TAB_INTRODUCTION', KTabType_TAB_INTRODUCTION_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$v1.KTabType, 'TAB_REPLY', KTabType_TAB_REPLY_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$v1.KTabType, 'TAB_OGV_ACTIVITY', KTabType_TAB_OGV_ACTIVITY_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$v1.KTabType, 'TAB_CATALOG', KTabType_TAB_CATALOG_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$v1.KTabType, 'UNRECOGNIZED', KTabType_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$v1.KTabType, 'Companion', Companion_getInstance_411); + $com$bapis$bilibili$app$viewunite$v1.KPageCategory = KPageCategory; + $com$bapis$bilibili$app$viewunite$v1.KPageCategory.values = values_60; + $com$bapis$bilibili$app$viewunite$v1.KPageCategory.valueOf = valueOf_60; + defineProp($com$bapis$bilibili$app$viewunite$v1.KPageCategory, 'COMMON_PAGE', KPageCategory_COMMON_PAGE_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$v1.KPageCategory, 'ACTIVITY_PAGE', KPageCategory_ACTIVITY_PAGE_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$v1.KPageCategory, 'UNRECOGNIZED', KPageCategory_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$v1.KPageCategory, 'Companion', Companion_getInstance_412); + $com$bapis$bilibili$app$viewunite$v1.KBizType = KBizType_0; + $com$bapis$bilibili$app$viewunite$v1.KBizType.values = values_61; + $com$bapis$bilibili$app$viewunite$v1.KBizType.valueOf = valueOf_61; + defineProp($com$bapis$bilibili$app$viewunite$v1.KBizType, 'NONE', KBizType_NONE_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$v1.KBizType, 'FOLLOW_VIDEO', KBizType_FOLLOW_VIDEO_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$v1.KBizType, 'RESERVE_ACTIVITY', KBizType_RESERVE_ACTIVITY_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$v1.KBizType, 'JUMP_LINK', KBizType_JUMP_LINK_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$v1.KBizType, 'FAV_SEASON', KBizType_FAV_SEASON_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$v1.KBizType, 'RESERVE_GAME', KBizType_RESERVE_GAME_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$v1.KBizType, 'UNRECOGNIZED', KBizType_UNRECOGNIZED_getInstance_0); + defineProp($com$bapis$bilibili$app$viewunite$v1.KBizType, 'Companion', Companion_getInstance_413); + $com$bapis$bilibili$app$viewunite$v1.KPageType = KPageType; + $com$bapis$bilibili$app$viewunite$v1.KPageType.values = values_62; + $com$bapis$bilibili$app$viewunite$v1.KPageType.valueOf = valueOf_62; + defineProp($com$bapis$bilibili$app$viewunite$v1.KPageType, 'H5', KPageType_H5_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$v1.KPageType, 'NA', KPageType_NA_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$v1.KPageType, 'UNRECOGNIZED', KPageType_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$v1.KPageType, 'Companion', Companion_getInstance_414); + $com$bapis$bilibili$app$viewunite$v1.KUnionType = KUnionType; + $com$bapis$bilibili$app$viewunite$v1.KUnionType.values = values_63; + $com$bapis$bilibili$app$viewunite$v1.KUnionType.valueOf = valueOf_63; + defineProp($com$bapis$bilibili$app$viewunite$v1.KUnionType, 'UGC', KUnionType_UGC_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$v1.KUnionType, 'OGV', KUnionType_OGV_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$v1.KUnionType, 'PUGV', KUnionType_PUGV_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$v1.KUnionType, 'UNRECOGNIZED', KUnionType_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$v1.KUnionType, 'Companion', Companion_getInstance_415); + $com$bapis$bilibili$app$viewunite$v1.KMaterialSource = KMaterialSource; + $com$bapis$bilibili$app$viewunite$v1.KMaterialSource.values = values_64; + $com$bapis$bilibili$app$viewunite$v1.KMaterialSource.valueOf = valueOf_64; + defineProp($com$bapis$bilibili$app$viewunite$v1.KMaterialSource, 'DEFAULT', KMaterialSource_DEFAULT_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$v1.KMaterialSource, 'BIJIAN', KMaterialSource_BIJIAN_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$v1.KMaterialSource, 'UNRECOGNIZED', KMaterialSource_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$v1.KMaterialSource, 'Companion', Companion_getInstance_416); + $com$bapis$bilibili$app$viewunite$v1.KMaterialBizType = KMaterialBizType; + $com$bapis$bilibili$app$viewunite$v1.KMaterialBizType.values = values_65; + $com$bapis$bilibili$app$viewunite$v1.KMaterialBizType.valueOf = valueOf_65; + defineProp($com$bapis$bilibili$app$viewunite$v1.KMaterialBizType, 'NONE', KMaterialBizType_NONE_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$v1.KMaterialBizType, 'ACTIVITY', KMaterialBizType_ACTIVITY_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$v1.KMaterialBizType, 'BGM', KMaterialBizType_BGM_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$v1.KMaterialBizType, 'EFFECT', KMaterialBizType_EFFECT_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$v1.KMaterialBizType, 'SHOOT_SAME', KMaterialBizType_SHOOT_SAME_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$v1.KMaterialBizType, 'SHOOT_TOGETHER', KMaterialBizType_SHOOT_TOGETHER_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$v1.KMaterialBizType, 'ACTIVITY_ICON', KMaterialBizType_ACTIVITY_ICON_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$v1.KMaterialBizType, 'NEW_BGM', KMaterialBizType_NEW_BGM_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$v1.KMaterialBizType, 'GENERAL_TYPE', KMaterialBizType_GENERAL_TYPE_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$v1.KMaterialBizType, 'UNRECOGNIZED', KMaterialBizType_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$v1.KMaterialBizType, 'Companion', Companion_getInstance_417); + $com$bapis$bilibili$app$viewunite$v1.KRelatesFeedReq = KRelatesFeedReq; + defineProp($com$bapis$bilibili$app$viewunite$v1.KRelatesFeedReq, 'Companion', Companion_getInstance_418); + $com$bapis$bilibili$app$viewunite$v1.KRelatesFeedReply = KRelatesFeedReply; + defineProp($com$bapis$bilibili$app$viewunite$v1.KRelatesFeedReply, 'Companion', Companion_getInstance_419); + $com$bapis$bilibili$app$viewunite$v1.KArcRefreshReq = KArcRefreshReq; + defineProp($com$bapis$bilibili$app$viewunite$v1.KArcRefreshReq, 'Companion', Companion_getInstance_420); + $com$bapis$bilibili$app$viewunite$v1.KArcRefreshReply = KArcRefreshReply; + defineProp($com$bapis$bilibili$app$viewunite$v1.KArcRefreshReply, 'Companion', Companion_getInstance_421); + $com$bapis$bilibili$app$viewunite$v1.KSimpleOwner = KSimpleOwner; + defineProp($com$bapis$bilibili$app$viewunite$v1.KSimpleOwner, 'Companion', Companion_getInstance_422); + $com$bapis$bilibili$app$viewunite$v1.KLikeConfig = KLikeConfig; + defineProp($com$bapis$bilibili$app$viewunite$v1.KLikeConfig, 'Companion', Companion_getInstance_423); + $com$bapis$bilibili$app$viewunite$v1.KSimpleArc = KSimpleArc; + defineProp($com$bapis$bilibili$app$viewunite$v1.KSimpleArc, 'Companion', Companion_getInstance_424); + $com$bapis$bilibili$app$viewunite$v1.KSimpleReqUser = KSimpleReqUser; + defineProp($com$bapis$bilibili$app$viewunite$v1.KSimpleReqUser, 'Companion', Companion_getInstance_425); + $com$bapis$bilibili$app$viewunite$v1.KViewReq = KViewReq; + $com$bapis$bilibili$app$viewunite$v1.KViewReq.KExtraContentEntry = KExtraContentEntry_0; + defineProp($com$bapis$bilibili$app$viewunite$v1.KViewReq.KExtraContentEntry, 'Companion', Companion_getInstance_426); + defineProp($com$bapis$bilibili$app$viewunite$v1.KViewReq, 'Companion', Companion_getInstance_427); + $com$bapis$bilibili$app$viewunite$v1.KRelate = KRelate; + defineProp($com$bapis$bilibili$app$viewunite$v1.KRelate, 'Companion', Companion_getInstance_428); + $com$bapis$bilibili$app$viewunite$v1.KViewReply = KViewReply; + $com$bapis$bilibili$app$viewunite$v1.KViewReply.KReportEntry = KReportEntry_15; + defineProp($com$bapis$bilibili$app$viewunite$v1.KViewReply.KReportEntry, 'Companion', Companion_getInstance_429); + defineProp($com$bapis$bilibili$app$viewunite$v1.KViewReply, 'Companion', Companion_getInstance_430); + $com$bapis$bilibili$app$viewunite$v1.KECodeConfig = KECodeConfig; + defineProp($com$bapis$bilibili$app$viewunite$v1.KECodeConfig, 'Companion', Companion_getInstance_431); + $com$bapis$bilibili$app$viewunite$v1.KCM = KCM; + defineProp($com$bapis$bilibili$app$viewunite$v1.KCM, 'Companion', Companion_getInstance_432); + $com$bapis$bilibili$app$viewunite$v1.KTab = KTab; + defineProp($com$bapis$bilibili$app$viewunite$v1.KTab, 'Companion', Companion_getInstance_433); + $com$bapis$bilibili$app$viewunite$v1.KTabControl = KTabControl; + defineProp($com$bapis$bilibili$app$viewunite$v1.KTabControl, 'Companion', Companion_getInstance_434); + $com$bapis$bilibili$app$viewunite$v1.KReqUser = KReqUser; + defineProp($com$bapis$bilibili$app$viewunite$v1.KReqUser, 'Companion', Companion_getInstance_435); + $com$bapis$bilibili$app$viewunite$v1.KReqUserExtra = KReqUserExtra; + defineProp($com$bapis$bilibili$app$viewunite$v1.KReqUserExtra, 'Companion', Companion_getInstance_436); + $com$bapis$bilibili$app$viewunite$v1.KChargingPlus = KChargingPlus; + defineProp($com$bapis$bilibili$app$viewunite$v1.KChargingPlus, 'Companion', Companion_getInstance_437); + $com$bapis$bilibili$app$viewunite$v1.KPlayToast = KPlayToast; + defineProp($com$bapis$bilibili$app$viewunite$v1.KPlayToast, 'Companion', Companion_getInstance_438); + $com$bapis$bilibili$app$viewunite$v1.KButton = KButton_1; + defineProp($com$bapis$bilibili$app$viewunite$v1.KButton, 'Companion', Companion_getInstance_439); + $com$bapis$bilibili$app$viewunite$v1.KTabModule = KTabModule; + $com$bapis$bilibili$app$viewunite$v1.KTabModule.KTab = KTab_0; + defineProp($com$bapis$bilibili$app$viewunite$v1.KTabModule, 'KIntroduction', KIntroduction_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$v1.KTabModule, 'KReply', KReply_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$v1.KTabModule, 'KActivityTab', KActivityTab_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$v1.KTabModule, 'KCatalog', KCatalog_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$v1.KTabModule, 'Companion', Companion_getInstance_440); + $com$bapis$bilibili$app$viewunite$v1.KIntroductionTab = KIntroductionTab; + defineProp($com$bapis$bilibili$app$viewunite$v1.KIntroductionTab, 'Companion', Companion_getInstance_441); + $com$bapis$bilibili$app$viewunite$v1.KReplyTab = KReplyTab; + defineProp($com$bapis$bilibili$app$viewunite$v1.KReplyTab, 'Companion', Companion_getInstance_442); + $com$bapis$bilibili$app$viewunite$v1.KReplyStyle = KReplyStyle; + defineProp($com$bapis$bilibili$app$viewunite$v1.KReplyStyle, 'Companion', Companion_getInstance_443); + $com$bapis$bilibili$app$viewunite$v1.KViewBase = KViewBase; + defineProp($com$bapis$bilibili$app$viewunite$v1.KViewBase, 'Companion', Companion_getInstance_444); + $com$bapis$bilibili$app$viewunite$v1.KConfig = KConfig_0; + defineProp($com$bapis$bilibili$app$viewunite$v1.KConfig, 'Companion', Companion_getInstance_445); + $com$bapis$bilibili$app$viewunite$v1.KBgPlayNotice = KBgPlayNotice; + defineProp($com$bapis$bilibili$app$viewunite$v1.KBgPlayNotice, 'Companion', Companion_getInstance_446); + $com$bapis$bilibili$app$viewunite$v1.KStoryEntrance = KStoryEntrance; + defineProp($com$bapis$bilibili$app$viewunite$v1.KStoryEntrance, 'Companion', Companion_getInstance_447); + $com$bapis$bilibili$app$viewunite$v1.KPlayerIcon = KPlayerIcon; + defineProp($com$bapis$bilibili$app$viewunite$v1.KPlayerIcon, 'Companion', Companion_getInstance_448); + $com$bapis$bilibili$app$viewunite$v1.KIconData = KIconData; + defineProp($com$bapis$bilibili$app$viewunite$v1.KIconData, 'Companion', Companion_getInstance_449); + $com$bapis$bilibili$app$viewunite$v1.KOnline = KOnline; + defineProp($com$bapis$bilibili$app$viewunite$v1.KOnline, 'Companion', Companion_getInstance_450); + $com$bapis$bilibili$app$viewunite$v1.KPageControl = KPageControl; + defineProp($com$bapis$bilibili$app$viewunite$v1.KPageControl, 'Companion', Companion_getInstance_451); + $com$bapis$bilibili$app$viewunite$v1.KControl = KControl; + defineProp($com$bapis$bilibili$app$viewunite$v1.KControl, 'Companion', Companion_getInstance_452); + $com$bapis$bilibili$app$viewunite$v1.KActivityResource = KActivityResource_0; + defineProp($com$bapis$bilibili$app$viewunite$v1.KActivityResource, 'Companion', Companion_getInstance_453); + $com$bapis$bilibili$app$viewunite$v1.KArc = KArc; + defineProp($com$bapis$bilibili$app$viewunite$v1.KArc, 'Companion', Companion_getInstance_454); + $com$bapis$bilibili$app$viewunite$v1.KRights = KRights_0; + defineProp($com$bapis$bilibili$app$viewunite$v1.KRights, 'Companion', Companion_getInstance_455); + $com$bapis$bilibili$app$viewunite$v1.KViewProgressReq = KViewProgressReq; + defineProp($com$bapis$bilibili$app$viewunite$v1.KViewProgressReq, 'Companion', Companion_getInstance_456); + $com$bapis$bilibili$app$viewunite$v1.KFragmentParam = KFragmentParam; + defineProp($com$bapis$bilibili$app$viewunite$v1.KFragmentParam, 'Companion', Companion_getInstance_457); + $com$bapis$bilibili$app$viewunite$v1.KFragmentArc = KFragmentArc; + defineProp($com$bapis$bilibili$app$viewunite$v1.KFragmentArc, 'Companion', Companion_getInstance_458); + $com$bapis$bilibili$app$viewunite$v1.KChronosParam = KChronosParam; + defineProp($com$bapis$bilibili$app$viewunite$v1.KChronosParam, 'Companion', Companion_getInstance_459); + $com$bapis$bilibili$app$viewunite$v1.KViewProgressReply = KViewProgressReply; + defineProp($com$bapis$bilibili$app$viewunite$v1.KViewProgressReply, 'Companion', Companion_getInstance_460); + $com$bapis$bilibili$app$viewunite$v1.KFragmentRes = KFragmentRes; + $com$bapis$bilibili$app$viewunite$v1.KFragmentRes.KVideoShotEntry = KVideoShotEntry; + defineProp($com$bapis$bilibili$app$viewunite$v1.KFragmentRes.KVideoShotEntry, 'Companion', Companion_getInstance_461); + defineProp($com$bapis$bilibili$app$viewunite$v1.KFragmentRes, 'Companion', Companion_getInstance_462); + $com$bapis$bilibili$app$viewunite$v1.KDmResource = KDmResource; + defineProp($com$bapis$bilibili$app$viewunite$v1.KDmResource, 'Companion', Companion_getInstance_463); + $com$bapis$bilibili$app$viewunite$v1.KOperationCard = KOperationCard; + $com$bapis$bilibili$app$viewunite$v1.KOperationCard.KParam = KParam; + defineProp($com$bapis$bilibili$app$viewunite$v1.KOperationCard, 'KFollow', KFollow_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$v1.KOperationCard, 'KReserve', KReserve_getInstance_0); + defineProp($com$bapis$bilibili$app$viewunite$v1.KOperationCard, 'KJump', KJump_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$v1.KOperationCard, 'KGame', KGame_getInstance_0); + defineProp($com$bapis$bilibili$app$viewunite$v1.KOperationCard, 'Companion', Companion_getInstance_464); + $com$bapis$bilibili$app$viewunite$v1.KBizFollowVideoParam = KBizFollowVideoParam; + defineProp($com$bapis$bilibili$app$viewunite$v1.KBizFollowVideoParam, 'Companion', Companion_getInstance_465); + $com$bapis$bilibili$app$viewunite$v1.KBizReserveActivityParam = KBizReserveActivityParam_0; + defineProp($com$bapis$bilibili$app$viewunite$v1.KBizReserveActivityParam, 'Companion', Companion_getInstance_466); + $com$bapis$bilibili$app$viewunite$v1.KBizJumpLinkParam = KBizJumpLinkParam; + defineProp($com$bapis$bilibili$app$viewunite$v1.KBizJumpLinkParam, 'Companion', Companion_getInstance_467); + $com$bapis$bilibili$app$viewunite$v1.KBizReserveGameParam = KBizReserveGameParam; + defineProp($com$bapis$bilibili$app$viewunite$v1.KBizReserveGameParam, 'Companion', Companion_getInstance_468); + $com$bapis$bilibili$app$viewunite$v1.KOperationCardContent = KOperationCardContent; + defineProp($com$bapis$bilibili$app$viewunite$v1.KOperationCardContent, 'Companion', Companion_getInstance_469); + $com$bapis$bilibili$app$viewunite$v1.KVideoViewPoint = KVideoViewPoint; + defineProp($com$bapis$bilibili$app$viewunite$v1.KVideoViewPoint, 'Companion', Companion_getInstance_470); + $com$bapis$bilibili$app$viewunite$v1.KVideoShot = KVideoShot; + defineProp($com$bapis$bilibili$app$viewunite$v1.KVideoShot, 'Companion', Companion_getInstance_471); + $com$bapis$bilibili$app$viewunite$v1.KVideoPoint = KVideoPoint; + defineProp($com$bapis$bilibili$app$viewunite$v1.KVideoPoint, 'Companion', Companion_getInstance_472); + $com$bapis$bilibili$app$viewunite$v1.KChronos = KChronos; + defineProp($com$bapis$bilibili$app$viewunite$v1.KChronos, 'Companion', Companion_getInstance_473); + $com$bapis$bilibili$app$viewunite$v1.KVideoGuide = KVideoGuide; + defineProp($com$bapis$bilibili$app$viewunite$v1.KVideoGuide, 'Companion', Companion_getInstance_474); + $com$bapis$bilibili$app$viewunite$v1.KAttentionCard = KAttentionCard; + defineProp($com$bapis$bilibili$app$viewunite$v1.KAttentionCard, 'Companion', Companion_getInstance_475); + $com$bapis$bilibili$app$viewunite$v1.KContractCard = KContractCard; + defineProp($com$bapis$bilibili$app$viewunite$v1.KContractCard, 'Companion', Companion_getInstance_476); + $com$bapis$bilibili$app$viewunite$v1.KContractText = KContractText_0; + defineProp($com$bapis$bilibili$app$viewunite$v1.KContractText, 'Companion', Companion_getInstance_477); + $com$bapis$bilibili$app$viewunite$v1.KUpperInfos = KUpperInfos; + defineProp($com$bapis$bilibili$app$viewunite$v1.KUpperInfos, 'Companion', Companion_getInstance_478); + $com$bapis$bilibili$app$viewunite$v1.KCommandDm = KCommandDm; + defineProp($com$bapis$bilibili$app$viewunite$v1.KCommandDm, 'Companion', Companion_getInstance_479); + $com$bapis$bilibili$app$viewunite$v1.KShowTime = KShowTime; + defineProp($com$bapis$bilibili$app$viewunite$v1.KShowTime, 'Companion', Companion_getInstance_480); + $com$bapis$bilibili$app$viewunite$v1.KPointMaterial = KPointMaterial; + defineProp($com$bapis$bilibili$app$viewunite$v1.KPointMaterial, 'Companion', Companion_getInstance_481); + $com$bapis$bilibili$app$viewunite$v1.KMaterial = KMaterial; + $com$bapis$bilibili$app$viewunite$v1.KMaterial.KReportEntry = KReportEntry_16; + defineProp($com$bapis$bilibili$app$viewunite$v1.KMaterial.KReportEntry, 'Companion', Companion_getInstance_482); + defineProp($com$bapis$bilibili$app$viewunite$v1.KMaterial, 'Companion', Companion_getInstance_483); + $com$bapis$bilibili$app$viewunite$v1.values$factory = values$factory_56; + $com$bapis$bilibili$app$viewunite$v1.values$factory = values$factory_57; + $com$bapis$bilibili$app$viewunite$v1.values$factory = values$factory_58; + $com$bapis$bilibili$app$viewunite$v1.values$factory = values$factory_59; + $com$bapis$bilibili$app$viewunite$v1.values$factory = values$factory_60; + $com$bapis$bilibili$app$viewunite$v1.values$factory = values$factory_61; + $com$bapis$bilibili$app$viewunite$v1.values$factory = values$factory_62; + $com$bapis$bilibili$app$viewunite$v1.values$factory = values$factory_63; + $com$bapis$bilibili$app$viewunite$v1.values$factory = values$factory_64; + $com$bapis$bilibili$app$viewunite$v1.values$factory = values$factory_65; + $com$bapis$bilibili$app$viewunite$v1.tabNumber$factory = tabNumber$factory; + $com$bapis$bilibili$app$viewunite$v1.tabValues$factory = tabValues$factory; + $com$bapis$bilibili$app$viewunite$v1.paramNumber$factory = paramNumber$factory; + $com$bapis$bilibili$app$viewunite$v1.paramValues$factory = paramValues$factory; + var $com = _.com || (_.com = {}); + var $com$bapis = $com.bapis || ($com.bapis = {}); + var $com$bapis$bilibili = $com$bapis.bilibili || ($com$bapis.bilibili = {}); + var $com$bapis$bilibili$polymer = $com$bapis$bilibili.polymer || ($com$bapis$bilibili.polymer = {}); + var $com$bapis$bilibili$polymer$app = $com$bapis$bilibili$polymer.app || ($com$bapis$bilibili$polymer.app = {}); + var $com$bapis$bilibili$polymer$app$search = $com$bapis$bilibili$polymer$app.search || ($com$bapis$bilibili$polymer$app.search = {}); + var $com$bapis$bilibili$polymer$app$search$v1 = $com$bapis$bilibili$polymer$app$search.v1 || ($com$bapis$bilibili$polymer$app$search.v1 = {}); + $com$bapis$bilibili$polymer$app$search$v1.KSort = KSort; + $com$bapis$bilibili$polymer$app$search$v1.KSort.values = values_66; + $com$bapis$bilibili$polymer$app$search$v1.KSort.valueOf = valueOf_66; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KSort, 'DEFAULT', KSort_DEFAULT_getInstance); + defineProp($com$bapis$bilibili$polymer$app$search$v1.KSort, 'VIEW_COUNT', KSort_VIEW_COUNT_getInstance); + defineProp($com$bapis$bilibili$polymer$app$search$v1.KSort, 'PUBLISH_TIME', KSort_PUBLISH_TIME_getInstance); + defineProp($com$bapis$bilibili$polymer$app$search$v1.KSort, 'DANMAKU_COUNT', KSort_DANMAKU_COUNT_getInstance); + defineProp($com$bapis$bilibili$polymer$app$search$v1.KSort, 'UNRECOGNIZED', KSort_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$polymer$app$search$v1.KSort, 'Companion', Companion_getInstance_484); + $com$bapis$bilibili$polymer$app$search$v1.KCategorySort = KCategorySort; + $com$bapis$bilibili$polymer$app$search$v1.KCategorySort.values = values_67; + $com$bapis$bilibili$polymer$app$search$v1.KCategorySort.valueOf = valueOf_67; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KCategorySort, 'DEFAULT', KCategorySort_DEFAULT_getInstance); + defineProp($com$bapis$bilibili$polymer$app$search$v1.KCategorySort, 'PUBLISH_TIME', KCategorySort_PUBLISH_TIME_getInstance); + defineProp($com$bapis$bilibili$polymer$app$search$v1.KCategorySort, 'CLICK_COUNT', KCategorySort_CLICK_COUNT_getInstance); + defineProp($com$bapis$bilibili$polymer$app$search$v1.KCategorySort, 'COMMENT_COUNT', KCategorySort_COMMENT_COUNT_getInstance); + defineProp($com$bapis$bilibili$polymer$app$search$v1.KCategorySort, 'LIKE_COUNT', KCategorySort_LIKE_COUNT_getInstance); + defineProp($com$bapis$bilibili$polymer$app$search$v1.KCategorySort, 'UNRECOGNIZED', KCategorySort_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$polymer$app$search$v1.KCategorySort, 'Companion', Companion_getInstance_485); + $com$bapis$bilibili$polymer$app$search$v1.KUserType = KUserType; + $com$bapis$bilibili$polymer$app$search$v1.KUserType.values = values_68; + $com$bapis$bilibili$polymer$app$search$v1.KUserType.valueOf = valueOf_68; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KUserType, 'ALL', KUserType_ALL_getInstance); + defineProp($com$bapis$bilibili$polymer$app$search$v1.KUserType, 'UP', KUserType_UP_getInstance); + defineProp($com$bapis$bilibili$polymer$app$search$v1.KUserType, 'NORMAL_USER', KUserType_NORMAL_USER_getInstance); + defineProp($com$bapis$bilibili$polymer$app$search$v1.KUserType, 'AUTHENTICATED_USER', KUserType_AUTHENTICATED_USER_getInstance); + defineProp($com$bapis$bilibili$polymer$app$search$v1.KUserType, 'UNRECOGNIZED', KUserType_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$polymer$app$search$v1.KUserType, 'Companion', Companion_getInstance_486); + $com$bapis$bilibili$polymer$app$search$v1.KUserSort = KUserSort; + $com$bapis$bilibili$polymer$app$search$v1.KUserSort.values = values_69; + $com$bapis$bilibili$polymer$app$search$v1.KUserSort.valueOf = valueOf_69; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KUserSort, 'DEFAULT', KUserSort_DEFAULT_getInstance); + defineProp($com$bapis$bilibili$polymer$app$search$v1.KUserSort, 'FANS_DESCEND', KUserSort_FANS_DESCEND_getInstance); + defineProp($com$bapis$bilibili$polymer$app$search$v1.KUserSort, 'FANS_ASCEND', KUserSort_FANS_ASCEND_getInstance); + defineProp($com$bapis$bilibili$polymer$app$search$v1.KUserSort, 'LEVEL_DESCEND', KUserSort_LEVEL_DESCEND_getInstance); + defineProp($com$bapis$bilibili$polymer$app$search$v1.KUserSort, 'LEVEL_ASCEND', KUserSort_LEVEL_ASCEND_getInstance); + defineProp($com$bapis$bilibili$polymer$app$search$v1.KUserSort, 'UNRECOGNIZED', KUserSort_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$polymer$app$search$v1.KUserSort, 'Companion', Companion_getInstance_487); + $com$bapis$bilibili$polymer$app$search$v1.KSearchAllRequest = KSearchAllRequest; + $com$bapis$bilibili$polymer$app$search$v1.KSearchAllRequest.KFromExtraEntry = KFromExtraEntry; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KSearchAllRequest.KFromExtraEntry, 'Companion', Companion_getInstance_488); + defineProp($com$bapis$bilibili$polymer$app$search$v1.KSearchAllRequest, 'Companion', Companion_getInstance_489); + $com$bapis$bilibili$polymer$app$search$v1.KSearchComicRequest = KSearchComicRequest; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KSearchComicRequest, 'Companion', Companion_getInstance_490); + $com$bapis$bilibili$polymer$app$search$v1.KSearchByTypeRequest = KSearchByTypeRequest; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KSearchByTypeRequest, 'Companion', Companion_getInstance_491); + $com$bapis$bilibili$polymer$app$search$v1.KPageOffset = KPageOffset; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KPageOffset, 'Companion', Companion_getInstance_492); + $com$bapis$bilibili$polymer$app$search$v1.KSearchComicResponse = KSearchComicResponse; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KSearchComicResponse, 'Companion', Companion_getInstance_493); + $com$bapis$bilibili$polymer$app$search$v1.KSearchComicInfo = KSearchComicInfo; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KSearchComicInfo, 'Companion', Companion_getInstance_494); + $com$bapis$bilibili$polymer$app$search$v1.KSearchAllResponse = KSearchAllResponse; + $com$bapis$bilibili$polymer$app$search$v1.KSearchAllResponse.KAnnotationEntry = KAnnotationEntry; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KSearchAllResponse.KAnnotationEntry, 'Companion', Companion_getInstance_495); + defineProp($com$bapis$bilibili$polymer$app$search$v1.KSearchAllResponse, 'Companion', Companion_getInstance_496); + $com$bapis$bilibili$polymer$app$search$v1.KSearchByTypeResponse = KSearchByTypeResponse; + $com$bapis$bilibili$polymer$app$search$v1.KSearchByTypeResponse.KAnnotationEntry = KAnnotationEntry_0; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KSearchByTypeResponse.KAnnotationEntry, 'Companion', Companion_getInstance_497); + defineProp($com$bapis$bilibili$polymer$app$search$v1.KSearchByTypeResponse, 'Companion', Companion_getInstance_498); + $com$bapis$bilibili$polymer$app$search$v1.KItem = KItem_0; + $com$bapis$bilibili$polymer$app$search$v1.KItem.KCardItem = KCardItem; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KItem, 'KSpecial', KSpecial_getInstance_0); + defineProp($com$bapis$bilibili$polymer$app$search$v1.KItem, 'KArticle', KArticle_getInstance); + defineProp($com$bapis$bilibili$polymer$app$search$v1.KItem, 'KBanner', KBanner_getInstance_1); + defineProp($com$bapis$bilibili$polymer$app$search$v1.KItem, 'KLive', KLive_getInstance_0); + defineProp($com$bapis$bilibili$polymer$app$search$v1.KItem, 'KGame', KGame_getInstance_1); + defineProp($com$bapis$bilibili$polymer$app$search$v1.KItem, 'KPurchase', KPurchase_getInstance); + defineProp($com$bapis$bilibili$polymer$app$search$v1.KItem, 'KRecommendWord', KRecommendWord_getInstance); + defineProp($com$bapis$bilibili$polymer$app$search$v1.KItem, 'KDynamic', KDynamic_getInstance); + defineProp($com$bapis$bilibili$polymer$app$search$v1.KItem, 'KSuggestKeyword', KSuggestKeyword_getInstance); + defineProp($com$bapis$bilibili$polymer$app$search$v1.KItem, 'KSpecialGuide', KSpecialGuide_getInstance); + defineProp($com$bapis$bilibili$polymer$app$search$v1.KItem, 'KComic', KComic_getInstance); + defineProp($com$bapis$bilibili$polymer$app$search$v1.KItem, 'KChannelNew', KChannelNew_getInstance); + defineProp($com$bapis$bilibili$polymer$app$search$v1.KItem, 'KOgvCard', KOgvCard_getInstance); + defineProp($com$bapis$bilibili$polymer$app$search$v1.KItem, 'KBangumiRelates', KBangumiRelates_getInstance); + defineProp($com$bapis$bilibili$polymer$app$search$v1.KItem, 'KFindMore', KFindMore_getInstance); + defineProp($com$bapis$bilibili$polymer$app$search$v1.KItem, 'KEsport', KEsport_getInstance); + defineProp($com$bapis$bilibili$polymer$app$search$v1.KItem, 'KAuthorNew', KAuthorNew_getInstance); + defineProp($com$bapis$bilibili$polymer$app$search$v1.KItem, 'KTips', KTips_getInstance); + defineProp($com$bapis$bilibili$polymer$app$search$v1.KItem, 'KCm', KCm_getInstance_0); + defineProp($com$bapis$bilibili$polymer$app$search$v1.KItem, 'KPediaCard', KPediaCard_getInstance); + defineProp($com$bapis$bilibili$polymer$app$search$v1.KItem, 'KUgcInline', KUgcInline_getInstance); + defineProp($com$bapis$bilibili$polymer$app$search$v1.KItem, 'KLiveInline', KLiveInline_getInstance); + defineProp($com$bapis$bilibili$polymer$app$search$v1.KItem, 'KTopGame', KTopGame_getInstance); + defineProp($com$bapis$bilibili$polymer$app$search$v1.KItem, 'KSports', KSports_getInstance); + defineProp($com$bapis$bilibili$polymer$app$search$v1.KItem, 'KPediaCardInline', KPediaCardInline_getInstance); + defineProp($com$bapis$bilibili$polymer$app$search$v1.KItem, 'KRecommendTips', KRecommendTips_getInstance); + defineProp($com$bapis$bilibili$polymer$app$search$v1.KItem, 'KCollectionCard', KCollectionCard_getInstance); + defineProp($com$bapis$bilibili$polymer$app$search$v1.KItem, 'KOgvChannel', KOgvChannel_getInstance); + defineProp($com$bapis$bilibili$polymer$app$search$v1.KItem, 'KOgvInline', KOgvInline_getInstance); + defineProp($com$bapis$bilibili$polymer$app$search$v1.KItem, 'KAuthor', KAuthor_getInstance); + defineProp($com$bapis$bilibili$polymer$app$search$v1.KItem, 'KAv', KAv_getInstance_0); + defineProp($com$bapis$bilibili$polymer$app$search$v1.KItem, 'KBangumi', KBangumi_getInstance_0); + defineProp($com$bapis$bilibili$polymer$app$search$v1.KItem, 'KEsportsInline', KEsportsInline_getInstance); + defineProp($com$bapis$bilibili$polymer$app$search$v1.KItem, 'KHotBanner', KHotBanner_getInstance); + defineProp($com$bapis$bilibili$polymer$app$search$v1.KItem, 'KSubject', KSubject_getInstance); + defineProp($com$bapis$bilibili$polymer$app$search$v1.KItem, 'KDynamicNew', KDynamicNew_getInstance); + defineProp($com$bapis$bilibili$polymer$app$search$v1.KItem, 'KArticleNew', KArticleNew_getInstance); + defineProp($com$bapis$bilibili$polymer$app$search$v1.KItem, 'KPediaCardPic', KPediaCardPic_getInstance); + defineProp($com$bapis$bilibili$polymer$app$search$v1.KItem, 'KNpsCard', KNpsCard_getInstance); + defineProp($com$bapis$bilibili$polymer$app$search$v1.KItem, 'KChatGpt', KChatGpt_getInstance); + defineProp($com$bapis$bilibili$polymer$app$search$v1.KItem, 'KHotRecommend', KHotRecommend_getInstance); + defineProp($com$bapis$bilibili$polymer$app$search$v1.KItem, 'KLiveMaster', KLiveMaster_getInstance); + defineProp($com$bapis$bilibili$polymer$app$search$v1.KItem, 'KLiveRoomTitle', KLiveRoomTitle_getInstance); + defineProp($com$bapis$bilibili$polymer$app$search$v1.KItem, 'KLiveRoom', KLiveRoom_getInstance); + defineProp($com$bapis$bilibili$polymer$app$search$v1.KItem, 'KCheese', KCheese_getInstance); + defineProp($com$bapis$bilibili$polymer$app$search$v1.KItem, 'KRelatedSearch', KRelatedSearch_getInstance); + defineProp($com$bapis$bilibili$polymer$app$search$v1.KItem, 'Companion', Companion_getInstance_499); + $com$bapis$bilibili$polymer$app$search$v1.KSearchUpperCard = KSearchUpperCard; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KSearchUpperCard, 'Companion', Companion_getInstance_500); + $com$bapis$bilibili$polymer$app$search$v1.KSearchVideoCard = KSearchVideoCard; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KSearchVideoCard, 'Companion', Companion_getInstance_501); + $com$bapis$bilibili$polymer$app$search$v1.KTimeLine = KTimeLine; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KTimeLine, 'Companion', Companion_getInstance_502); + $com$bapis$bilibili$polymer$app$search$v1.KVideoTextItem = KVideoTextItem; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KVideoTextItem, 'Companion', Companion_getInstance_503); + $com$bapis$bilibili$polymer$app$search$v1.KSearchBangumiCard = KSearchBangumiCard; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KSearchBangumiCard, 'Companion', Companion_getInstance_504); + $com$bapis$bilibili$polymer$app$search$v1.KSearchSpecialCard = KSearchSpecialCard; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KSearchSpecialCard, 'Companion', Companion_getInstance_505); + $com$bapis$bilibili$polymer$app$search$v1.KSearchArticleCard = KSearchArticleCard; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KSearchArticleCard, 'Companion', Companion_getInstance_506); + $com$bapis$bilibili$polymer$app$search$v1.KSearchBannerCard = KSearchBannerCard; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KSearchBannerCard, 'Companion', Companion_getInstance_507); + $com$bapis$bilibili$polymer$app$search$v1.KSearchLiveCard = KSearchLiveCard; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KSearchLiveCard, 'Companion', Companion_getInstance_508); + $com$bapis$bilibili$polymer$app$search$v1.KSearchGameCard = KSearchGameCard; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KSearchGameCard, 'Companion', Companion_getInstance_509); + $com$bapis$bilibili$polymer$app$search$v1.KSearchPurchaseCard = KSearchPurchaseCard; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KSearchPurchaseCard, 'Companion', Companion_getInstance_510); + $com$bapis$bilibili$polymer$app$search$v1.KSearchRecommendWordCard = KSearchRecommendWordCard; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KSearchRecommendWordCard, 'Companion', Companion_getInstance_511); + $com$bapis$bilibili$polymer$app$search$v1.KSearchDynamicCard = KSearchDynamicCard; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KSearchDynamicCard, 'Companion', Companion_getInstance_512); + $com$bapis$bilibili$polymer$app$search$v1.KSearchNoResultSuggestWordCard = KSearchNoResultSuggestWordCard; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KSearchNoResultSuggestWordCard, 'Companion', Companion_getInstance_513); + $com$bapis$bilibili$polymer$app$search$v1.KSearchSpecialGuideCard = KSearchSpecialGuideCard; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KSearchSpecialGuideCard, 'Companion', Companion_getInstance_514); + $com$bapis$bilibili$polymer$app$search$v1.KSearchComicCard = KSearchComicCard; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KSearchComicCard, 'Companion', Companion_getInstance_515); + $com$bapis$bilibili$polymer$app$search$v1.KSearchNewChannelCard = KSearchNewChannelCard; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KSearchNewChannelCard, 'Companion', Companion_getInstance_516); + $com$bapis$bilibili$polymer$app$search$v1.KSearchOgvRelationCard = KSearchOgvRelationCard; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KSearchOgvRelationCard, 'Companion', Companion_getInstance_517); + $com$bapis$bilibili$polymer$app$search$v1.KOgvCardUI = KOgvCardUI; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KOgvCardUI, 'Companion', Companion_getInstance_518); + $com$bapis$bilibili$polymer$app$search$v1.KDetailsRelationItem = KDetailsRelationItem; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KDetailsRelationItem, 'Companion', Companion_getInstance_519); + $com$bapis$bilibili$polymer$app$search$v1.KSearchOgvRecommendCard = KSearchOgvRecommendCard; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KSearchOgvRecommendCard, 'Companion', Companion_getInstance_520); + $com$bapis$bilibili$polymer$app$search$v1.KOgvRecommendWord = KOgvRecommendWord; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KOgvRecommendWord, 'Companion', Companion_getInstance_521); + $com$bapis$bilibili$polymer$app$search$v1.KSearchSportCard = KSearchSportCard; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KSearchSportCard, 'Companion', Companion_getInstance_522); + $com$bapis$bilibili$polymer$app$search$v1.KSearchSportInlineCard = KSearchSportInlineCard; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KSearchSportInlineCard, 'Companion', Companion_getInstance_523); + $com$bapis$bilibili$polymer$app$search$v1.KSearchHotBannerCard = KSearchHotBannerCard; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KSearchHotBannerCard, 'Companion', Companion_getInstance_524); + $com$bapis$bilibili$polymer$app$search$v1.KSearchSubjectCard = KSearchSubjectCard; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KSearchSubjectCard, 'Companion', Companion_getInstance_525); + $com$bapis$bilibili$polymer$app$search$v1.KSearchPediaPicCard = KSearchPediaPicCard; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KSearchPediaPicCard, 'Companion', Companion_getInstance_526); + $com$bapis$bilibili$polymer$app$search$v1.KTopicItem = KTopicItem; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KTopicItem, 'Companion', Companion_getInstance_527); + $com$bapis$bilibili$polymer$app$search$v1.KMatchInfoObj = KMatchInfoObj; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KMatchInfoObj, 'Companion', Companion_getInstance_528); + $com$bapis$bilibili$polymer$app$search$v1.KSearchAuthorNewCard = KSearchAuthorNewCard; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KSearchAuthorNewCard, 'Companion', Companion_getInstance_529); + $com$bapis$bilibili$polymer$app$search$v1.KAvatar = KAvatar; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KAvatar, 'Companion', Companion_getInstance_530); + $com$bapis$bilibili$polymer$app$search$v1.KArgs = KArgs; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KArgs, 'Companion', Companion_getInstance_531); + $com$bapis$bilibili$polymer$app$search$v1.KInlineThreePointPanel = KInlineThreePointPanel; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KInlineThreePointPanel, 'Companion', Companion_getInstance_532); + $com$bapis$bilibili$polymer$app$search$v1.KShareButtonItem = KShareButtonItem; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KShareButtonItem, 'Companion', Companion_getInstance_533); + $com$bapis$bilibili$polymer$app$search$v1.KButtonMeta = KButtonMeta; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KButtonMeta, 'Companion', Companion_getInstance_534); + $com$bapis$bilibili$polymer$app$search$v1.KSearchLikeButtonItem = KSearchLikeButtonItem; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KSearchLikeButtonItem, 'Companion', Companion_getInstance_535); + $com$bapis$bilibili$polymer$app$search$v1.KLikeResource = KLikeResource; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KLikeResource, 'Companion', Companion_getInstance_536); + $com$bapis$bilibili$polymer$app$search$v1.KSpace = KSpace; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KSpace, 'Companion', Companion_getInstance_537); + $com$bapis$bilibili$polymer$app$search$v1.KAvItem = KAvItem; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KAvItem, 'Companion', Companion_getInstance_538); + $com$bapis$bilibili$polymer$app$search$v1.KSearchTipsCard = KSearchTipsCard; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KSearchTipsCard, 'Companion', Companion_getInstance_539); + $com$bapis$bilibili$polymer$app$search$v1.KSearchAdCard = KSearchAdCard; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KSearchAdCard, 'Companion', Companion_getInstance_540); + $com$bapis$bilibili$polymer$app$search$v1.KSearchPediaCard = KSearchPediaCard; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KSearchPediaCard, 'Companion', Companion_getInstance_541); + $com$bapis$bilibili$polymer$app$search$v1.KSearchUgcInlineCard = KSearchUgcInlineCard; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KSearchUgcInlineCard, 'Companion', Companion_getInstance_542); + $com$bapis$bilibili$polymer$app$search$v1.KSearchInlineData = KSearchInlineData; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KSearchInlineData, 'Companion', Companion_getInstance_543); + $com$bapis$bilibili$polymer$app$search$v1.KSearchLiveInlineCard = KSearchLiveInlineCard; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KSearchLiveInlineCard, 'Companion', Companion_getInstance_544); + $com$bapis$bilibili$polymer$app$search$v1.KPlayerWidget = KPlayerWidget; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KPlayerWidget, 'Companion', Companion_getInstance_545); + $com$bapis$bilibili$polymer$app$search$v1.KSearchOgvInlineCard = KSearchOgvInlineCard; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KSearchOgvInlineCard, 'Companion', Companion_getInstance_546); + $com$bapis$bilibili$polymer$app$search$v1.KSearchTopGameCard = KSearchTopGameCard; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KSearchTopGameCard, 'Companion', Companion_getInstance_547); + $com$bapis$bilibili$polymer$app$search$v1.KSearchOlympicGameCard = KSearchOlympicGameCard; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KSearchOlympicGameCard, 'Companion', Companion_getInstance_548); + $com$bapis$bilibili$polymer$app$search$v1.KSearchOlympicWikiCard = KSearchOlympicWikiCard; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KSearchOlympicWikiCard, 'Companion', Companion_getInstance_549); + $com$bapis$bilibili$polymer$app$search$v1.KSearchRecommendTipCard = KSearchRecommendTipCard; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KSearchRecommendTipCard, 'Companion', Companion_getInstance_550); + $com$bapis$bilibili$polymer$app$search$v1.KSearchCollectionCard = KSearchCollectionCard; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KSearchCollectionCard, 'Companion', Companion_getInstance_551); + $com$bapis$bilibili$polymer$app$search$v1.KSearchOgvChannelCard = KSearchOgvChannelCard; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KSearchOgvChannelCard, 'Companion', Companion_getInstance_552); + $com$bapis$bilibili$polymer$app$search$v1.KSearchOgvCard = KSearchOgvCard; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KSearchOgvCard, 'Companion', Companion_getInstance_553); + $com$bapis$bilibili$polymer$app$search$v1.KRecommendWord = KRecommendWord_0; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KRecommendWord, 'Companion', Companion_getInstance_554); + $com$bapis$bilibili$polymer$app$search$v1.KEasterEgg = KEasterEgg; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KEasterEgg, 'Companion', Companion_getInstance_555); + $com$bapis$bilibili$polymer$app$search$v1.KNav = KNav; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KNav, 'Companion', Companion_getInstance_556); + $com$bapis$bilibili$polymer$app$search$v1.KVideo = KVideo; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KVideo, 'Companion', Companion_getInstance_557); + $com$bapis$bilibili$polymer$app$search$v1.KNavigation = KNavigation; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KNavigation, 'Companion', Companion_getInstance_558); + $com$bapis$bilibili$polymer$app$search$v1.KNavigationButton = KNavigationButton; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KNavigationButton, 'Companion', Companion_getInstance_559); + $com$bapis$bilibili$polymer$app$search$v1.KPediaCover = KPediaCover; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KPediaCover, 'Companion', Companion_getInstance_560); + $com$bapis$bilibili$polymer$app$search$v1.KTabInfo = KTabInfo; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KTabInfo, 'Companion', Companion_getInstance_561); + $com$bapis$bilibili$polymer$app$search$v1.KTopGameUI = KTopGameUI; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KTopGameUI, 'Companion', Companion_getInstance_562); + $com$bapis$bilibili$polymer$app$search$v1.KCardBusinessBadge = KCardBusinessBadge; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KCardBusinessBadge, 'Companion', Companion_getInstance_563); + $com$bapis$bilibili$polymer$app$search$v1.KGotoIcon = KGotoIcon; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KGotoIcon, 'Companion', Companion_getInstance_564); + $com$bapis$bilibili$polymer$app$search$v1.KBrandADAccount = KBrandADAccount; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KBrandADAccount, 'Companion', Companion_getInstance_565); + $com$bapis$bilibili$polymer$app$search$v1.KBrandADArc = KBrandADArc; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KBrandADArc, 'Companion', Companion_getInstance_566); + $com$bapis$bilibili$polymer$app$search$v1.KSportsMatchItem = KSportsMatchItem; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KSportsMatchItem, 'Companion', Companion_getInstance_567); + $com$bapis$bilibili$polymer$app$search$v1.KShare = KShare; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KShare, 'Companion', Companion_getInstance_568); + $com$bapis$bilibili$polymer$app$search$v1.KEpisode = KEpisode; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KEpisode, 'Companion', Companion_getInstance_569); + $com$bapis$bilibili$polymer$app$search$v1.KUpper = KUpper; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KUpper, 'Companion', Companion_getInstance_570); + $com$bapis$bilibili$polymer$app$search$v1.KStat = KStat_0; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KStat, 'Companion', Companion_getInstance_571); + $com$bapis$bilibili$polymer$app$search$v1.KDyTopic = KDyTopic; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KDyTopic, 'Companion', Companion_getInstance_572); + $com$bapis$bilibili$polymer$app$search$v1.KTextLabel = KTextLabel; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KTextLabel, 'Companion', Companion_getInstance_573); + $com$bapis$bilibili$polymer$app$search$v1.KTextButton = KTextButton; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KTextButton, 'Companion', Companion_getInstance_574); + $com$bapis$bilibili$polymer$app$search$v1.KChannelMixedItem = KChannelMixedItem; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KChannelMixedItem, 'Companion', Companion_getInstance_575); + $com$bapis$bilibili$polymer$app$search$v1.KBadge2 = KBadge2; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KBadge2, 'Companion', Companion_getInstance_576); + $com$bapis$bilibili$polymer$app$search$v1.KBottomButton = KBottomButton; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KBottomButton, 'Companion', Companion_getInstance_577); + $com$bapis$bilibili$polymer$app$search$v1.KOgvClipInfo = KOgvClipInfo; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KOgvClipInfo, 'Companion', Companion_getInstance_578); + $com$bapis$bilibili$polymer$app$search$v1.KThreePoint = KThreePoint; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KThreePoint, 'Companion', Companion_getInstance_579); + $com$bapis$bilibili$polymer$app$search$v1.KRelation = KRelation; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KRelation, 'Companion', Companion_getInstance_580); + $com$bapis$bilibili$polymer$app$search$v1.KBadge = KBadge; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KBadge, 'Companion', Companion_getInstance_581); + $com$bapis$bilibili$polymer$app$search$v1.KChannelLabel = KChannelLabel; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KChannelLabel, 'Companion', Companion_getInstance_582); + $com$bapis$bilibili$polymer$app$search$v1.KExtraLink = KExtraLink; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KExtraLink, 'Companion', Companion_getInstance_583); + $com$bapis$bilibili$polymer$app$search$v1.KMatchTeam = KMatchTeam; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KMatchTeam, 'Companion', Companion_getInstance_584); + $com$bapis$bilibili$polymer$app$search$v1.KMatchItem = KMatchItem; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KMatchItem, 'Companion', Companion_getInstance_585); + $com$bapis$bilibili$polymer$app$search$v1.KTexts = KTexts; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KTexts, 'Companion', Companion_getInstance_586); + $com$bapis$bilibili$polymer$app$search$v1.KUpArgs = KUpArgs; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KUpArgs, 'Companion', Companion_getInstance_587); + $com$bapis$bilibili$polymer$app$search$v1.KThreePointV4 = KThreePointV4; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KThreePointV4, 'Companion', Companion_getInstance_588); + $com$bapis$bilibili$polymer$app$search$v1.KWatchLater = KWatchLater; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KWatchLater, 'Companion', Companion_getInstance_589); + $com$bapis$bilibili$polymer$app$search$v1.KThreePointV3 = KThreePointV3; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KThreePointV3, 'Companion', Companion_getInstance_590); + $com$bapis$bilibili$polymer$app$search$v1.KThreePointV2 = KThreePointV2; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KThreePointV2, 'Companion', Companion_getInstance_591); + $com$bapis$bilibili$polymer$app$search$v1.KMask = KMask; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KMask, 'Companion', Companion_getInstance_592); + $com$bapis$bilibili$polymer$app$search$v1.KButton = KButton_2; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KButton, 'Companion', Companion_getInstance_593); + $com$bapis$bilibili$polymer$app$search$v1.KThreePoint2 = KThreePoint2; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KThreePoint2, 'Companion', Companion_getInstance_594); + $com$bapis$bilibili$polymer$app$search$v1.KDislikeReason = KDislikeReason; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KDislikeReason, 'Companion', Companion_getInstance_595); + $com$bapis$bilibili$polymer$app$search$v1.KPlayerArgs = KPlayerArgs_0; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KPlayerArgs, 'Companion', Companion_getInstance_596); + $com$bapis$bilibili$polymer$app$search$v1.KRightTopLiveBadge = KRightTopLiveBadge; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KRightTopLiveBadge, 'Companion', Companion_getInstance_597); + $com$bapis$bilibili$polymer$app$search$v1.KInlineProgressBar = KInlineProgressBar; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KInlineProgressBar, 'Companion', Companion_getInstance_598); + $com$bapis$bilibili$polymer$app$search$v1.KLiveBadgeResource = KLiveBadgeResource; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KLiveBadgeResource, 'Companion', Companion_getInstance_599); + $com$bapis$bilibili$polymer$app$search$v1.KTrafficConfig = KTrafficConfig; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KTrafficConfig, 'Companion', Companion_getInstance_600); + $com$bapis$bilibili$polymer$app$search$v1.KTrafficConfigOption = KTrafficConfigOption; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KTrafficConfigOption, 'Companion', Companion_getInstance_601); + $com$bapis$bilibili$polymer$app$search$v1.KCloudGameParams = KCloudGameParams; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KCloudGameParams, 'Companion', Companion_getInstance_602); + $com$bapis$bilibili$polymer$app$search$v1.KRankInfo = KRankInfo_0; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KRankInfo, 'Companion', Companion_getInstance_603); + $com$bapis$bilibili$polymer$app$search$v1.KEpisodeNew = KEpisodeNew; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KEpisodeNew, 'Companion', Companion_getInstance_604); + $com$bapis$bilibili$polymer$app$search$v1.KCheckMore = KCheckMore; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KCheckMore, 'Companion', Companion_getInstance_605); + $com$bapis$bilibili$polymer$app$search$v1.KFollowButton = KFollowButton; + $com$bapis$bilibili$polymer$app$search$v1.KFollowButton.KTextsEntry = KTextsEntry; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KFollowButton.KTextsEntry, 'Companion', Companion_getInstance_606); + defineProp($com$bapis$bilibili$polymer$app$search$v1.KFollowButton, 'Companion', Companion_getInstance_607); + $com$bapis$bilibili$polymer$app$search$v1.KPurchaseButton = KPurchaseButton; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KPurchaseButton, 'Companion', Companion_getInstance_608); + $com$bapis$bilibili$polymer$app$search$v1.KWatchButton = KWatchButton; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KWatchButton, 'Companion', Companion_getInstance_609); + $com$bapis$bilibili$polymer$app$search$v1.KRcmdReason = KRcmdReason; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KRcmdReason, 'Companion', Companion_getInstance_610); + $com$bapis$bilibili$polymer$app$search$v1.KWatchedShow = KWatchedShow; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KWatchedShow, 'Companion', Companion_getInstance_611); + $com$bapis$bilibili$polymer$app$search$v1.KNotice = KNotice; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KNotice, 'Companion', Companion_getInstance_612); + $com$bapis$bilibili$polymer$app$search$v1.KBackground = KBackground; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KBackground, 'Companion', Companion_getInstance_613); + $com$bapis$bilibili$polymer$app$search$v1.KNftFaceIcon = KNftFaceIcon; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KNftFaceIcon, 'Companion', Companion_getInstance_614); + $com$bapis$bilibili$polymer$app$search$v1.KVipInfo = KVipInfo; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KVipInfo, 'Companion', Companion_getInstance_615); + $com$bapis$bilibili$polymer$app$search$v1.KVipLabel = KVipLabel_0; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KVipLabel, 'Companion', Companion_getInstance_616); + $com$bapis$bilibili$polymer$app$search$v1.KOfficialVerify = KOfficialVerify_0; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KOfficialVerify, 'Companion', Companion_getInstance_617); + $com$bapis$bilibili$polymer$app$search$v1.KFullTextResult = KFullTextResult; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KFullTextResult, 'Companion', Companion_getInstance_618); + $com$bapis$bilibili$polymer$app$search$v1.KReasonStyle = KReasonStyle; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KReasonStyle, 'Companion', Companion_getInstance_619); + $com$bapis$bilibili$polymer$app$search$v1.KSharePlane = KSharePlane; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KSharePlane, 'Companion', Companion_getInstance_620); + $com$bapis$bilibili$polymer$app$search$v1.KShareTo = KShareTo; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KShareTo, 'Companion', Companion_getInstance_621); + $com$bapis$bilibili$polymer$app$search$v1.KDisplayOption = KDisplayOption; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KDisplayOption, 'Companion', Companion_getInstance_622); + $com$bapis$bilibili$polymer$app$search$v1.KFeedback = KFeedback; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KFeedback, 'Companion', Companion_getInstance_623); + $com$bapis$bilibili$polymer$app$search$v1.KFeedbackSection = KFeedbackSection; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KFeedbackSection, 'Companion', Companion_getInstance_624); + $com$bapis$bilibili$polymer$app$search$v1.KFeedbackItem = KFeedbackItem; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KFeedbackItem, 'Companion', Companion_getInstance_625); + $com$bapis$bilibili$polymer$app$search$v1.KPicNavigation = KPicNavigation; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KPicNavigation, 'Companion', Companion_getInstance_626); + $com$bapis$bilibili$polymer$app$search$v1.KReserveInfo = KReserveInfo; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KReserveInfo, 'Companion', Companion_getInstance_627); + $com$bapis$bilibili$polymer$app$search$v1.KSearchReserveRequest = KSearchReserveRequest; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KSearchReserveRequest, 'Companion', Companion_getInstance_628); + $com$bapis$bilibili$polymer$app$search$v1.KSearchReserveResponse = KSearchReserveResponse; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KSearchReserveResponse, 'Companion', Companion_getInstance_629); + $com$bapis$bilibili$polymer$app$search$v1.KSearchNPSCard = KSearchNPSCard; + $com$bapis$bilibili$polymer$app$search$v1.KSearchNPSCard.KOption = KOption_0; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KSearchNPSCard.KOption, 'Companion', Companion_getInstance_630); + defineProp($com$bapis$bilibili$polymer$app$search$v1.KSearchNPSCard, 'Companion', Companion_getInstance_631); + $com$bapis$bilibili$polymer$app$search$v1.KFoldingTimeLine = KFoldingTimeLine; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KFoldingTimeLine, 'Companion', Companion_getInstance_632); + $com$bapis$bilibili$polymer$app$search$v1.KSearchChatGPTCard = KSearchChatGPTCard; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KSearchChatGPTCard, 'Companion', Companion_getInstance_633); + $com$bapis$bilibili$polymer$app$search$v1.KDisclaimer = KDisclaimer; + $com$bapis$bilibili$polymer$app$search$v1.KDisclaimer.KItem = KItem_1; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KDisclaimer.KItem, 'Companion', Companion_getInstance_634); + defineProp($com$bapis$bilibili$polymer$app$search$v1.KDisclaimer, 'Companion', Companion_getInstance_635); + $com$bapis$bilibili$polymer$app$search$v1.KSearchHotRecommend = KSearchHotRecommend; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KSearchHotRecommend, 'Companion', Companion_getInstance_636); + $com$bapis$bilibili$polymer$app$search$v1.KGloryInfo = KGloryInfo; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KGloryInfo, 'Companion', Companion_getInstance_637); + $com$bapis$bilibili$polymer$app$search$v1.KGloryItem = KGloryItem; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KGloryItem, 'Companion', Companion_getInstance_638); + $com$bapis$bilibili$polymer$app$search$v1.KSearchLiveMaster = KSearchLiveMaster; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KSearchLiveMaster, 'Companion', Companion_getInstance_639); + $com$bapis$bilibili$polymer$app$search$v1.KSearchLiveRoomTitle = KSearchLiveRoomTitle; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KSearchLiveRoomTitle, 'Companion', Companion_getInstance_640); + $com$bapis$bilibili$polymer$app$search$v1.KSearchLiveRoom = KSearchLiveRoom; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KSearchLiveRoom, 'Companion', Companion_getInstance_641); + $com$bapis$bilibili$polymer$app$search$v1.KLabelStyle = KLabelStyle; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KLabelStyle, 'Companion', Companion_getInstance_642); + $com$bapis$bilibili$polymer$app$search$v1.KSearchCheese = KSearchCheese; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KSearchCheese, 'Companion', Companion_getInstance_643); + $com$bapis$bilibili$polymer$app$search$v1.KRelatedQuery = KRelatedQuery; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KRelatedQuery, 'Companion', Companion_getInstance_644); + $com$bapis$bilibili$polymer$app$search$v1.KSearchRelatedSearch = KSearchRelatedSearch; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KSearchRelatedSearch, 'Companion', Companion_getInstance_645); + $com$bapis$bilibili$polymer$app$search$v1.KCardLayout = KCardLayout; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KCardLayout, 'Companion', Companion_getInstance_646); + $com$bapis$bilibili$polymer$app$search$v1.KSaleInfo = KSaleInfo; + defineProp($com$bapis$bilibili$polymer$app$search$v1.KSaleInfo, 'Companion', Companion_getInstance_647); + $com$bapis$bilibili$polymer$app$search$v1.values$factory = values$factory_66; + $com$bapis$bilibili$polymer$app$search$v1.values$factory = values$factory_67; + $com$bapis$bilibili$polymer$app$search$v1.values$factory = values$factory_68; + $com$bapis$bilibili$polymer$app$search$v1.values$factory = values$factory_69; + $com$bapis$bilibili$polymer$app$search$v1.cardItemNumber$factory = cardItemNumber$factory; + $com$bapis$bilibili$polymer$app$search$v1.cardItemValues$factory = cardItemValues$factory; + var $com = _.com || (_.com = {}); + var $com$bapis = $com.bapis || ($com.bapis = {}); + var $com$bapis$bilibili = $com$bapis.bilibili || ($com$bapis.bilibili = {}); + var $com$bapis$bilibili$app = $com$bapis$bilibili.app || ($com$bapis$bilibili.app = {}); + var $com$bapis$bilibili$app$archive = $com$bapis$bilibili$app.archive || ($com$bapis$bilibili$app.archive = {}); + var $com$bapis$bilibili$app$archive$v1 = $com$bapis$bilibili$app$archive.v1 || ($com$bapis$bilibili$app$archive.v1 = {}); + $com$bapis$bilibili$app$archive$v1.KArc = KArc_0; + defineProp($com$bapis$bilibili$app$archive$v1.KArc, 'Companion', Companion_getInstance_648); + $com$bapis$bilibili$app$archive$v1.KSeasonTheme = KSeasonTheme; + defineProp($com$bapis$bilibili$app$archive$v1.KSeasonTheme, 'Companion', Companion_getInstance_649); + $com$bapis$bilibili$app$archive$v1.KStaffInfo = KStaffInfo; + defineProp($com$bapis$bilibili$app$archive$v1.KStaffInfo, 'Companion', Companion_getInstance_650); + $com$bapis$bilibili$app$archive$v1.KDimension = KDimension_1; + defineProp($com$bapis$bilibili$app$archive$v1.KDimension, 'Companion', Companion_getInstance_651); + $com$bapis$bilibili$app$archive$v1.KRights = KRights_1; + defineProp($com$bapis$bilibili$app$archive$v1.KRights, 'Companion', Companion_getInstance_652); + $com$bapis$bilibili$app$archive$v1.KAuthor = KAuthor_0; + defineProp($com$bapis$bilibili$app$archive$v1.KAuthor, 'Companion', Companion_getInstance_653); + $com$bapis$bilibili$app$archive$v1.KStat = KStat_1; + defineProp($com$bapis$bilibili$app$archive$v1.KStat, 'Companion', Companion_getInstance_654); + $com$bapis$bilibili$app$archive$v1.KPage = KPage_0; + defineProp($com$bapis$bilibili$app$archive$v1.KPage, 'Companion', Companion_getInstance_655); + var $com = _.com || (_.com = {}); + var $com$bapis = $com.bapis || ($com.bapis = {}); + var $com$bapis$bilibili = $com$bapis.bilibili || ($com$bapis.bilibili = {}); + var $com$bapis$bilibili$app = $com$bapis$bilibili.app || ($com$bapis$bilibili.app = {}); + var $com$bapis$bilibili$app$card = $com$bapis$bilibili$app.card || ($com$bapis$bilibili$app.card = {}); + var $com$bapis$bilibili$app$card$v1 = $com$bapis$bilibili$app$card.v1 || ($com$bapis$bilibili$app$card.v1 = {}); + $com$bapis$bilibili$app$card$v1.KAdInfo = KAdInfo; + defineProp($com$bapis$bilibili$app$card$v1.KAdInfo, 'Companion', Companion_getInstance_656); + $com$bapis$bilibili$app$card$v1.KCreativeContent = KCreativeContent; + defineProp($com$bapis$bilibili$app$card$v1.KCreativeContent, 'Companion', Companion_getInstance_657); + var $com = _.com || (_.com = {}); + var $com$bapis = $com.bapis || ($com.bapis = {}); + var $com$bapis$bilibili = $com$bapis.bilibili || ($com$bapis.bilibili = {}); + var $com$bapis$bilibili$app = $com$bapis$bilibili.app || ($com$bapis$bilibili.app = {}); + var $com$bapis$bilibili$app$card = $com$bapis$bilibili$app.card || ($com$bapis$bilibili$app.card = {}); + var $com$bapis$bilibili$app$card$v1 = $com$bapis$bilibili$app$card.v1 || ($com$bapis$bilibili$app$card.v1 = {}); + $com$bapis$bilibili$app$card$v1.KCard = KCard_0; + $com$bapis$bilibili$app$card$v1.KCard.KItem = KItem_2; + defineProp($com$bapis$bilibili$app$card$v1.KCard, 'KSmallCoverV5', KSmallCoverV5_getInstance); + defineProp($com$bapis$bilibili$app$card$v1.KCard, 'KLargeCoverV1', KLargeCoverV1_getInstance); + defineProp($com$bapis$bilibili$app$card$v1.KCard, 'KThreeItemAllV2', KThreeItemAllV2_getInstance); + defineProp($com$bapis$bilibili$app$card$v1.KCard, 'KThreeItemV1', KThreeItemV1_getInstance); + defineProp($com$bapis$bilibili$app$card$v1.KCard, 'KHotTopic', KHotTopic_getInstance); + defineProp($com$bapis$bilibili$app$card$v1.KCard, 'KThreeItemHV5', KThreeItemHV5_getInstance); + defineProp($com$bapis$bilibili$app$card$v1.KCard, 'KMiddleCoverV3', KMiddleCoverV3_getInstance); + defineProp($com$bapis$bilibili$app$card$v1.KCard, 'KLargeCoverV4', KLargeCoverV4_getInstance); + defineProp($com$bapis$bilibili$app$card$v1.KCard, 'KPopularTopEntrance', KPopularTopEntrance_getInstance); + defineProp($com$bapis$bilibili$app$card$v1.KCard, 'KRcmdOneItem', KRcmdOneItem_getInstance); + defineProp($com$bapis$bilibili$app$card$v1.KCard, 'KSmallCoverV5Ad', KSmallCoverV5Ad_getInstance); + defineProp($com$bapis$bilibili$app$card$v1.KCard, 'KTopicList', KTopicList_getInstance); + defineProp($com$bapis$bilibili$app$card$v1.KCard, 'Companion', Companion_getInstance_658); + $com$bapis$bilibili$app$card$v1.itemNumber$factory = itemNumber$factory; + $com$bapis$bilibili$app$card$v1.itemValues$factory = itemValues$factory; + var $com = _.com || (_.com = {}); + var $com$bapis = $com.bapis || ($com.bapis = {}); + var $com$bapis$bilibili = $com$bapis.bilibili || ($com$bapis.bilibili = {}); + var $com$bapis$bilibili$app = $com$bapis$bilibili.app || ($com$bapis$bilibili.app = {}); + var $com$bapis$bilibili$app$card = $com$bapis$bilibili$app.card || ($com$bapis$bilibili$app.card = {}); + var $com$bapis$bilibili$app$card$v1 = $com$bapis$bilibili$app$card.v1 || ($com$bapis$bilibili$app$card.v1 = {}); + $com$bapis$bilibili$app$card$v1.KBase = KBase; + defineProp($com$bapis$bilibili$app$card$v1.KBase, 'Companion', Companion_getInstance_659); + $com$bapis$bilibili$app$card$v1.KUpArgs = KUpArgs_0; + defineProp($com$bapis$bilibili$app$card$v1.KUpArgs, 'Companion', Companion_getInstance_660); + $com$bapis$bilibili$app$card$v1.KButton = KButton_3; + defineProp($com$bapis$bilibili$app$card$v1.KButton, 'Companion', Companion_getInstance_661); + $com$bapis$bilibili$app$card$v1.KThreePoint = KThreePoint_0; + defineProp($com$bapis$bilibili$app$card$v1.KThreePoint, 'Companion', Companion_getInstance_662); + $com$bapis$bilibili$app$card$v1.KDislikeReason = KDislikeReason_0; + defineProp($com$bapis$bilibili$app$card$v1.KDislikeReason, 'Companion', Companion_getInstance_663); + $com$bapis$bilibili$app$card$v1.KArgs = KArgs_0; + defineProp($com$bapis$bilibili$app$card$v1.KArgs, 'Companion', Companion_getInstance_664); + $com$bapis$bilibili$app$card$v1.KPlayerArgs = KPlayerArgs_1; + defineProp($com$bapis$bilibili$app$card$v1.KPlayerArgs, 'Companion', Companion_getInstance_665); + $com$bapis$bilibili$app$card$v1.KMask = KMask_0; + defineProp($com$bapis$bilibili$app$card$v1.KMask, 'Companion', Companion_getInstance_666); + $com$bapis$bilibili$app$card$v1.KAvatar = KAvatar_0; + defineProp($com$bapis$bilibili$app$card$v1.KAvatar, 'Companion', Companion_getInstance_667); + $com$bapis$bilibili$app$card$v1.KThreePointV2 = KThreePointV2_0; + defineProp($com$bapis$bilibili$app$card$v1.KThreePointV2, 'Companion', Companion_getInstance_668); + $com$bapis$bilibili$app$card$v1.KThreePointV3 = KThreePointV3_0; + defineProp($com$bapis$bilibili$app$card$v1.KThreePointV3, 'Companion', Companion_getInstance_669); + $com$bapis$bilibili$app$card$v1.KThreePointV4 = KThreePointV4_0; + defineProp($com$bapis$bilibili$app$card$v1.KThreePointV4, 'Companion', Companion_getInstance_670); + $com$bapis$bilibili$app$card$v1.KSharePlane = KSharePlane_0; + $com$bapis$bilibili$app$card$v1.KSharePlane.KShareToEntry = KShareToEntry; + defineProp($com$bapis$bilibili$app$card$v1.KSharePlane.KShareToEntry, 'Companion', Companion_getInstance_671); + defineProp($com$bapis$bilibili$app$card$v1.KSharePlane, 'Companion', Companion_getInstance_672); + $com$bapis$bilibili$app$card$v1.KInlineProgressBar = KInlineProgressBar_0; + defineProp($com$bapis$bilibili$app$card$v1.KInlineProgressBar, 'Companion', Companion_getInstance_673); + $com$bapis$bilibili$app$card$v1.KWatchLater = KWatchLater_0; + defineProp($com$bapis$bilibili$app$card$v1.KWatchLater, 'Companion', Companion_getInstance_674); + $com$bapis$bilibili$app$card$v1.KReasonStyle = KReasonStyle_0; + defineProp($com$bapis$bilibili$app$card$v1.KReasonStyle, 'Companion', Companion_getInstance_675); + $com$bapis$bilibili$app$card$v1.KLikeButton = KLikeButton; + defineProp($com$bapis$bilibili$app$card$v1.KLikeButton, 'Companion', Companion_getInstance_676); + $com$bapis$bilibili$app$card$v1.KUp = KUp; + defineProp($com$bapis$bilibili$app$card$v1.KUp, 'Companion', Companion_getInstance_677); + $com$bapis$bilibili$app$card$v1.KRelation = KRelation_0; + defineProp($com$bapis$bilibili$app$card$v1.KRelation, 'Companion', Companion_getInstance_678); + $com$bapis$bilibili$app$card$v1.KPanelMeta = KPanelMeta; + defineProp($com$bapis$bilibili$app$card$v1.KPanelMeta, 'Companion', Companion_getInstance_679); + $com$bapis$bilibili$app$card$v1.KFunctionalButton = KFunctionalButton; + defineProp($com$bapis$bilibili$app$card$v1.KFunctionalButton, 'Companion', Companion_getInstance_680); + $com$bapis$bilibili$app$card$v1.KFunctionalButtonMeta = KFunctionalButtonMeta; + defineProp($com$bapis$bilibili$app$card$v1.KFunctionalButtonMeta, 'Companion', Companion_getInstance_681); + var $com = _.com || (_.com = {}); + var $com$bapis = $com.bapis || ($com.bapis = {}); + var $com$bapis$bilibili = $com$bapis.bilibili || ($com$bapis.bilibili = {}); + var $com$bapis$bilibili$app = $com$bapis$bilibili.app || ($com$bapis$bilibili.app = {}); + var $com$bapis$bilibili$app$card = $com$bapis$bilibili$app.card || ($com$bapis$bilibili$app.card = {}); + var $com$bapis$bilibili$app$card$v1 = $com$bapis$bilibili$app$card.v1 || ($com$bapis$bilibili$app$card.v1 = {}); + $com$bapis$bilibili$app$card$v1.KDoubleCards = KDoubleCards; + $com$bapis$bilibili$app$card$v1.KDoubleCards.KCard = KCard_1; + defineProp($com$bapis$bilibili$app$card$v1.KDoubleCards, 'KSmallCoverV2', KSmallCoverV2_getInstance); + defineProp($com$bapis$bilibili$app$card$v1.KDoubleCards, 'KOnePicV2', KOnePicV2_getInstance); + defineProp($com$bapis$bilibili$app$card$v1.KDoubleCards, 'KThreePicV2', KThreePicV2_getInstance); + defineProp($com$bapis$bilibili$app$card$v1.KDoubleCards, 'Companion', Companion_getInstance_682); + $com$bapis$bilibili$app$card$v1.KSmallCoverV2 = KSmallCoverV2_0; + defineProp($com$bapis$bilibili$app$card$v1.KSmallCoverV2, 'Companion', Companion_getInstance_683); + $com$bapis$bilibili$app$card$v1.KSmallCoverV3 = KSmallCoverV3; + defineProp($com$bapis$bilibili$app$card$v1.KSmallCoverV3, 'Companion', Companion_getInstance_684); + $com$bapis$bilibili$app$card$v1.KMiddleCoverV2 = KMiddleCoverV2; + defineProp($com$bapis$bilibili$app$card$v1.KMiddleCoverV2, 'Companion', Companion_getInstance_685); + $com$bapis$bilibili$app$card$v1.KLargeCoverV2 = KLargeCoverV2; + defineProp($com$bapis$bilibili$app$card$v1.KLargeCoverV2, 'Companion', Companion_getInstance_686); + $com$bapis$bilibili$app$card$v1.KThreeItemV2 = KThreeItemV2; + defineProp($com$bapis$bilibili$app$card$v1.KThreeItemV2, 'Companion', Companion_getInstance_687); + $com$bapis$bilibili$app$card$v1.KThreeItemV2Item = KThreeItemV2Item; + defineProp($com$bapis$bilibili$app$card$v1.KThreeItemV2Item, 'Companion', Companion_getInstance_688); + $com$bapis$bilibili$app$card$v1.KSmallCoverV4 = KSmallCoverV4; + defineProp($com$bapis$bilibili$app$card$v1.KSmallCoverV4, 'Companion', Companion_getInstance_689); + $com$bapis$bilibili$app$card$v1.KTwoItemV2 = KTwoItemV2; + defineProp($com$bapis$bilibili$app$card$v1.KTwoItemV2, 'Companion', Companion_getInstance_690); + $com$bapis$bilibili$app$card$v1.KTwoItemV2Item = KTwoItemV2Item; + defineProp($com$bapis$bilibili$app$card$v1.KTwoItemV2Item, 'Companion', Companion_getInstance_691); + $com$bapis$bilibili$app$card$v1.KMultiItem = KMultiItem; + defineProp($com$bapis$bilibili$app$card$v1.KMultiItem, 'Companion', Companion_getInstance_692); + $com$bapis$bilibili$app$card$v1.KThreePicV2 = KThreePicV2_0; + defineProp($com$bapis$bilibili$app$card$v1.KThreePicV2, 'Companion', Companion_getInstance_693); + $com$bapis$bilibili$app$card$v1.KOnePicV2 = KOnePicV2_0; + defineProp($com$bapis$bilibili$app$card$v1.KOnePicV2, 'Companion', Companion_getInstance_694); + $com$bapis$bilibili$app$card$v1.KLargeCoverV3 = KLargeCoverV3; + defineProp($com$bapis$bilibili$app$card$v1.KLargeCoverV3, 'Companion', Companion_getInstance_695); + $com$bapis$bilibili$app$card$v1.KThreePicV3 = KThreePicV3; + defineProp($com$bapis$bilibili$app$card$v1.KThreePicV3, 'Companion', Companion_getInstance_696); + $com$bapis$bilibili$app$card$v1.KOnePicV3 = KOnePicV3; + defineProp($com$bapis$bilibili$app$card$v1.KOnePicV3, 'Companion', Companion_getInstance_697); + $com$bapis$bilibili$app$card$v1.KSmallCoverV7 = KSmallCoverV7; + defineProp($com$bapis$bilibili$app$card$v1.KSmallCoverV7, 'Companion', Companion_getInstance_698); + $com$bapis$bilibili$app$card$v1.KSmallCoverV9 = KSmallCoverV9; + defineProp($com$bapis$bilibili$app$card$v1.KSmallCoverV9, 'Companion', Companion_getInstance_699); + $com$bapis$bilibili$app$card$v1.KSmallCoverConvergeV2 = KSmallCoverConvergeV2; + defineProp($com$bapis$bilibili$app$card$v1.KSmallCoverConvergeV2, 'Companion', Companion_getInstance_700); + $com$bapis$bilibili$app$card$v1.KSmallChannelSpecial = KSmallChannelSpecial; + defineProp($com$bapis$bilibili$app$card$v1.KSmallChannelSpecial, 'Companion', Companion_getInstance_701); + $com$bapis$bilibili$app$card$v1.cardNumber$factory = cardNumber$factory_0; + $com$bapis$bilibili$app$card$v1.cardValues$factory = cardValues$factory_0; + var $com = _.com || (_.com = {}); + var $com$bapis = $com.bapis || ($com.bapis = {}); + var $com$bapis$bilibili = $com$bapis.bilibili || ($com$bapis.bilibili = {}); + var $com$bapis$bilibili$app = $com$bapis$bilibili.app || ($com$bapis$bilibili.app = {}); + var $com$bapis$bilibili$app$card = $com$bapis$bilibili$app.card || ($com$bapis$bilibili$app.card = {}); + var $com$bapis$bilibili$app$card$v1 = $com$bapis$bilibili$app$card.v1 || ($com$bapis$bilibili$app$card.v1 = {}); + $com$bapis$bilibili$app$card$v1.KSmallCoverV5Ad = KSmallCoverV5Ad_0; + defineProp($com$bapis$bilibili$app$card$v1.KSmallCoverV5Ad, 'Companion', Companion_getInstance_702); + $com$bapis$bilibili$app$card$v1.KSmallCoverV5 = KSmallCoverV5_0; + defineProp($com$bapis$bilibili$app$card$v1.KSmallCoverV5, 'Companion', Companion_getInstance_703); + $com$bapis$bilibili$app$card$v1.KHotwordEntrance = KHotwordEntrance; + defineProp($com$bapis$bilibili$app$card$v1.KHotwordEntrance, 'Companion', Companion_getInstance_704); + $com$bapis$bilibili$app$card$v1.KLargeCoverV1 = KLargeCoverV1_0; + defineProp($com$bapis$bilibili$app$card$v1.KLargeCoverV1, 'Companion', Companion_getInstance_705); + $com$bapis$bilibili$app$card$v1.KThreeItemAllV2 = KThreeItemAllV2_0; + defineProp($com$bapis$bilibili$app$card$v1.KThreeItemAllV2, 'Companion', Companion_getInstance_706); + $com$bapis$bilibili$app$card$v1.KTwoItemHV1Item = KTwoItemHV1Item; + defineProp($com$bapis$bilibili$app$card$v1.KTwoItemHV1Item, 'Companion', Companion_getInstance_707); + $com$bapis$bilibili$app$card$v1.KRcmdOneItem = KRcmdOneItem_0; + defineProp($com$bapis$bilibili$app$card$v1.KRcmdOneItem, 'Companion', Companion_getInstance_708); + $com$bapis$bilibili$app$card$v1.KSmallCoverRcmdItem = KSmallCoverRcmdItem; + defineProp($com$bapis$bilibili$app$card$v1.KSmallCoverRcmdItem, 'Companion', Companion_getInstance_709); + $com$bapis$bilibili$app$card$v1.KThreeItemV1 = KThreeItemV1_0; + defineProp($com$bapis$bilibili$app$card$v1.KThreeItemV1, 'Companion', Companion_getInstance_710); + $com$bapis$bilibili$app$card$v1.KThreeItemV1Item = KThreeItemV1Item; + defineProp($com$bapis$bilibili$app$card$v1.KThreeItemV1Item, 'Companion', Companion_getInstance_711); + $com$bapis$bilibili$app$card$v1.KHotTopic = KHotTopic_0; + defineProp($com$bapis$bilibili$app$card$v1.KHotTopic, 'Companion', Companion_getInstance_712); + $com$bapis$bilibili$app$card$v1.KHotTopicItem = KHotTopicItem; + defineProp($com$bapis$bilibili$app$card$v1.KHotTopicItem, 'Companion', Companion_getInstance_713); + $com$bapis$bilibili$app$card$v1.KDynamicHot = KDynamicHot; + defineProp($com$bapis$bilibili$app$card$v1.KDynamicHot, 'Companion', Companion_getInstance_714); + $com$bapis$bilibili$app$card$v1.KMiddleCoverV3 = KMiddleCoverV3_0; + defineProp($com$bapis$bilibili$app$card$v1.KMiddleCoverV3, 'Companion', Companion_getInstance_715); + $com$bapis$bilibili$app$card$v1.KLargeCoverV4 = KLargeCoverV4_0; + defineProp($com$bapis$bilibili$app$card$v1.KLargeCoverV4, 'Companion', Companion_getInstance_716); + $com$bapis$bilibili$app$card$v1.KPopularTopEntrance = KPopularTopEntrance_0; + defineProp($com$bapis$bilibili$app$card$v1.KPopularTopEntrance, 'Companion', Companion_getInstance_717); + $com$bapis$bilibili$app$card$v1.KEntranceItem = KEntranceItem; + defineProp($com$bapis$bilibili$app$card$v1.KEntranceItem, 'Companion', Companion_getInstance_718); + $com$bapis$bilibili$app$card$v1.KBubble = KBubble; + defineProp($com$bapis$bilibili$app$card$v1.KBubble, 'Companion', Companion_getInstance_719); + $com$bapis$bilibili$app$card$v1.KTopicList = KTopicList_0; + defineProp($com$bapis$bilibili$app$card$v1.KTopicList, 'Companion', Companion_getInstance_720); + $com$bapis$bilibili$app$card$v1.KTopicListItem = KTopicListItem; + defineProp($com$bapis$bilibili$app$card$v1.KTopicListItem, 'Companion', Companion_getInstance_721); + $com$bapis$bilibili$app$card$v1.KTopicButton = KTopicButton; + defineProp($com$bapis$bilibili$app$card$v1.KTopicButton, 'Companion', Companion_getInstance_722); + var $com = _.com || (_.com = {}); + var $com$bapis = $com.bapis || ($com.bapis = {}); + var $com$bapis$bilibili = $com$bapis.bilibili || ($com$bapis.bilibili = {}); + var $com$bapis$bilibili$app = $com$bapis$bilibili.app || ($com$bapis$bilibili.app = {}); + var $com$bapis$bilibili$app$dynamic = $com$bapis$bilibili$app.dynamic || ($com$bapis$bilibili$app.dynamic = {}); + var $com$bapis$bilibili$app$dynamic$common = $com$bapis$bilibili$app$dynamic.common || ($com$bapis$bilibili$app$dynamic.common = {}); + $com$bapis$bilibili$app$dynamic$common.KWHRatio = KWHRatio; + $com$bapis$bilibili$app$dynamic$common.KWHRatio.values = values_70; + $com$bapis$bilibili$app$dynamic$common.KWHRatio.valueOf = valueOf_70; + defineProp($com$bapis$bilibili$app$dynamic$common.KWHRatio, 'W_H_RATIO_1_1', KWHRatio_W_H_RATIO_1_1_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$common.KWHRatio, 'W_H_RATIO_16_9', KWHRatio_W_H_RATIO_16_9_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$common.KWHRatio, 'W_H_RATIO_3_4', KWHRatio_W_H_RATIO_3_4_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$common.KWHRatio, 'W_H_RATIO_CUSTOM', KWHRatio_W_H_RATIO_CUSTOM_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$common.KWHRatio, 'UNRECOGNIZED', KWHRatio_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$common.KWHRatio, 'Companion', Companion_getInstance_723); + $com$bapis$bilibili$app$dynamic$common.KItemWHRatio = KItemWHRatio; + defineProp($com$bapis$bilibili$app$dynamic$common.KItemWHRatio, 'Companion', Companion_getInstance_724); + $com$bapis$bilibili$app$dynamic$common.values$factory = values$factory_70; + var $com = _.com || (_.com = {}); + var $com$bapis = $com.bapis || ($com.bapis = {}); + var $com$bapis$bilibili = $com$bapis.bilibili || ($com$bapis.bilibili = {}); + var $com$bapis$bilibili$app = $com$bapis$bilibili.app || ($com$bapis$bilibili.app = {}); + var $com$bapis$bilibili$app$dynamic = $com$bapis$bilibili$app.dynamic || ($com$bapis$bilibili$app.dynamic = {}); + var $com$bapis$bilibili$app$dynamic$v2 = $com$bapis$bilibili$app$dynamic.v2 || ($com$bapis$bilibili$app$dynamic.v2 = {}); + $com$bapis$bilibili$app$dynamic$v2.KWFItemType = KWFItemType; + $com$bapis$bilibili$app$dynamic$v2.KWFItemType.values = values_71; + $com$bapis$bilibili$app$dynamic$v2.KWFItemType.valueOf = valueOf_71; + defineProp($com$bapis$bilibili$app$dynamic$v2.KWFItemType, 'WATER_FLOW_TYPE_NONE', KWFItemType_WATER_FLOW_TYPE_NONE_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KWFItemType, 'WATER_FLOW_TYPE_ARCHIVE', KWFItemType_WATER_FLOW_TYPE_ARCHIVE_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KWFItemType, 'WATER_FLOW_TYPE_DYNAMIC', KWFItemType_WATER_FLOW_TYPE_DYNAMIC_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KWFItemType, 'UNRECOGNIZED', KWFItemType_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KWFItemType, 'Companion', Companion_getInstance_725); + $com$bapis$bilibili$app$dynamic$v2.KWFItemDefault = KWFItemDefault; + $com$bapis$bilibili$app$dynamic$v2.KWFItemDefault.KAnnotationsEntry = KAnnotationsEntry; + defineProp($com$bapis$bilibili$app$dynamic$v2.KWFItemDefault.KAnnotationsEntry, 'Companion', Companion_getInstance_726); + defineProp($com$bapis$bilibili$app$dynamic$v2.KWFItemDefault, 'Companion', Companion_getInstance_727); + $com$bapis$bilibili$app$dynamic$v2.KCampusWaterFlowItem = KCampusWaterFlowItem; + $com$bapis$bilibili$app$dynamic$v2.KCampusWaterFlowItem.KFlowItem = KFlowItem; + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusWaterFlowItem, 'KItemDefault', KItemDefault_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusWaterFlowItem, 'Companion', Companion_getInstance_728); + $com$bapis$bilibili$app$dynamic$v2.KWaterFlowRcmdReq = KWaterFlowRcmdReq; + defineProp($com$bapis$bilibili$app$dynamic$v2.KWaterFlowRcmdReq, 'Companion', Companion_getInstance_729); + $com$bapis$bilibili$app$dynamic$v2.KWaterFlowRcmdResp = KWaterFlowRcmdResp; + defineProp($com$bapis$bilibili$app$dynamic$v2.KWaterFlowRcmdResp, 'Companion', Companion_getInstance_730); + $com$bapis$bilibili$app$dynamic$v2.values$factory = values$factory_71; + $com$bapis$bilibili$app$dynamic$v2.flowItemNumber$factory = flowItemNumber$factory; + $com$bapis$bilibili$app$dynamic$v2.flowItemValues$factory = flowItemValues$factory; + var $com = _.com || (_.com = {}); + var $com$bapis = $com.bapis || ($com.bapis = {}); + var $com$bapis$bilibili = $com$bapis.bilibili || ($com$bapis.bilibili = {}); + var $com$bapis$bilibili$app = $com$bapis$bilibili.app || ($com$bapis$bilibili.app = {}); + var $com$bapis$bilibili$app$dynamic = $com$bapis$bilibili$app.dynamic || ($com$bapis$bilibili$app.dynamic = {}); + var $com$bapis$bilibili$app$dynamic$v2 = $com$bapis$bilibili$app$dynamic.v2 || ($com$bapis$bilibili$app$dynamic.v2 = {}); + $com$bapis$bilibili$app$dynamic$v2.KRefresh = KRefresh; + $com$bapis$bilibili$app$dynamic$v2.KRefresh.values = values_72; + $com$bapis$bilibili$app$dynamic$v2.KRefresh.valueOf = valueOf_72; + defineProp($com$bapis$bilibili$app$dynamic$v2.KRefresh, 'NEW', KRefresh_NEW_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KRefresh, 'HISTORY', KRefresh_HISTORY_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KRefresh, 'UNRECOGNIZED', KRefresh_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KRefresh, 'Companion', Companion_getInstance_731); + $com$bapis$bilibili$app$dynamic$v2.KStyleType = KStyleType; + $com$bapis$bilibili$app$dynamic$v2.KStyleType.values = values_73; + $com$bapis$bilibili$app$dynamic$v2.KStyleType.valueOf = valueOf_73; + defineProp($com$bapis$bilibili$app$dynamic$v2.KStyleType, 'NONE', KStyleType_NONE_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KStyleType, 'LIVE', KStyleType_LIVE_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KStyleType, 'DYN_UP', KStyleType_DYN_UP_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KStyleType, 'UNRECOGNIZED', KStyleType_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KStyleType, 'Companion', Companion_getInstance_732); + $com$bapis$bilibili$app$dynamic$v2.KUserItemType = KUserItemType; + $com$bapis$bilibili$app$dynamic$v2.KUserItemType.values = values_74; + $com$bapis$bilibili$app$dynamic$v2.KUserItemType.valueOf = valueOf_74; + defineProp($com$bapis$bilibili$app$dynamic$v2.KUserItemType, 'NONE', KUserItemType_NONE_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KUserItemType, 'LIVE', KUserItemType_LIVE_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KUserItemType, 'LIVE_CUSTOM', KUserItemType_LIVE_CUSTOM_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KUserItemType, 'NORMAL', KUserItemType_NORMAL_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KUserItemType, 'EXTEND', KUserItemType_EXTEND_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KUserItemType, 'PREMIERE_RESERVE', KUserItemType_PREMIERE_RESERVE_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KUserItemType, 'PREMIERE', KUserItemType_PREMIERE_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KUserItemType, 'LIVE_CARD', KUserItemType_LIVE_CARD_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KUserItemType, 'OGV_SEASON', KUserItemType_OGV_SEASON_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KUserItemType, 'UGC_SEASON', KUserItemType_UGC_SEASON_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KUserItemType, 'UNRECOGNIZED', KUserItemType_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KUserItemType, 'Companion', Companion_getInstance_733); + $com$bapis$bilibili$app$dynamic$v2.KFollowType = KFollowType; + $com$bapis$bilibili$app$dynamic$v2.KFollowType.values = values_75; + $com$bapis$bilibili$app$dynamic$v2.KFollowType.valueOf = valueOf_75; + defineProp($com$bapis$bilibili$app$dynamic$v2.KFollowType, 'FT_NOT_FOLLOW', KFollowType_FT_NOT_FOLLOW_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KFollowType, 'FT_FOLLOW', KFollowType_FT_FOLLOW_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KFollowType, 'UNRECOGNIZED', KFollowType_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KFollowType, 'Companion', Companion_getInstance_734); + $com$bapis$bilibili$app$dynamic$v2.KThumbType = KThumbType; + $com$bapis$bilibili$app$dynamic$v2.KThumbType.values = values_76; + $com$bapis$bilibili$app$dynamic$v2.KThumbType.valueOf = valueOf_76; + defineProp($com$bapis$bilibili$app$dynamic$v2.KThumbType, 'CANCEL', KThumbType_CANCEL_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KThumbType, 'THUMB', KThumbType_THUMB_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KThumbType, 'UNRECOGNIZED', KThumbType_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KThumbType, 'Companion', Companion_getInstance_735); + $com$bapis$bilibili$app$dynamic$v2.KVoteStatus = KVoteStatus; + $com$bapis$bilibili$app$dynamic$v2.KVoteStatus.values = values_77; + $com$bapis$bilibili$app$dynamic$v2.KVoteStatus.valueOf = valueOf_77; + defineProp($com$bapis$bilibili$app$dynamic$v2.KVoteStatus, 'NORMAL', KVoteStatus_NORMAL_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KVoteStatus, 'ANONYMOUS', KVoteStatus_ANONYMOUS_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KVoteStatus, 'UNRECOGNIZED', KVoteStatus_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KVoteStatus, 'Companion', Companion_getInstance_736); + $com$bapis$bilibili$app$dynamic$v2.KLightFromType = KLightFromType; + $com$bapis$bilibili$app$dynamic$v2.KLightFromType.values = values_78; + $com$bapis$bilibili$app$dynamic$v2.KLightFromType.valueOf = valueOf_78; + defineProp($com$bapis$bilibili$app$dynamic$v2.KLightFromType, 'FROM_LOGIN', KLightFromType_FROM_LOGIN_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KLightFromType, 'FROM_UNLOGIN', KLightFromType_FROM_UNLOGIN_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KLightFromType, 'UNRECOGNIZED', KLightFromType_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KLightFromType, 'Companion', Companion_getInstance_737); + $com$bapis$bilibili$app$dynamic$v2.KRepostType = KRepostType; + $com$bapis$bilibili$app$dynamic$v2.KRepostType.values = values_79; + $com$bapis$bilibili$app$dynamic$v2.KRepostType.valueOf = valueOf_79; + defineProp($com$bapis$bilibili$app$dynamic$v2.KRepostType, 'REPOST_HOT', KRepostType_REPOST_HOT_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KRepostType, 'REPOST_GENERAL', KRepostType_REPOST_GENERAL_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KRepostType, 'UNRECOGNIZED', KRepostType_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KRepostType, 'Companion', Companion_getInstance_738); + $com$bapis$bilibili$app$dynamic$v2.KRcmdReasonStyle = KRcmdReasonStyle; + $com$bapis$bilibili$app$dynamic$v2.KRcmdReasonStyle.values = values_80; + $com$bapis$bilibili$app$dynamic$v2.KRcmdReasonStyle.valueOf = valueOf_80; + defineProp($com$bapis$bilibili$app$dynamic$v2.KRcmdReasonStyle, 'NONE', KRcmdReasonStyle_NONE_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KRcmdReasonStyle, 'CAMPUS_NEARBY', KRcmdReasonStyle_CAMPUS_NEARBY_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KRcmdReasonStyle, 'CAMPUS_UP', KRcmdReasonStyle_CAMPUS_UP_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KRcmdReasonStyle, 'CAMPUS_NEAR_UP_MIX', KRcmdReasonStyle_CAMPUS_NEAR_UP_MIX_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KRcmdReasonStyle, 'UNRECOGNIZED', KRcmdReasonStyle_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KRcmdReasonStyle, 'Companion', Companion_getInstance_739); + $com$bapis$bilibili$app$dynamic$v2.KCampusTabType = KCampusTabType; + $com$bapis$bilibili$app$dynamic$v2.KCampusTabType.values = values_81; + $com$bapis$bilibili$app$dynamic$v2.KCampusTabType.valueOf = valueOf_81; + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusTabType, 'CAMPUS_NONE', KCampusTabType_CAMPUS_NONE_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusTabType, 'CAMPUS_SCHOOL', KCampusTabType_CAMPUS_SCHOOL_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusTabType, 'CAMPUS_DYNAMIC', KCampusTabType_CAMPUS_DYNAMIC_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusTabType, 'CAMPUS_ACCOUNT', KCampusTabType_CAMPUS_ACCOUNT_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusTabType, 'CAMPUS_BILLBOARD', KCampusTabType_CAMPUS_BILLBOARD_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusTabType, 'CAMPUS_TOPIC', KCampusTabType_CAMPUS_TOPIC_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusTabType, 'CAMPUES_OTHER', KCampusTabType_CAMPUES_OTHER_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusTabType, 'UNRECOGNIZED', KCampusTabType_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusTabType, 'Companion', Companion_getInstance_740); + $com$bapis$bilibili$app$dynamic$v2.KShowType = KShowType; + $com$bapis$bilibili$app$dynamic$v2.KShowType.values = values_82; + $com$bapis$bilibili$app$dynamic$v2.KShowType.valueOf = valueOf_82; + defineProp($com$bapis$bilibili$app$dynamic$v2.KShowType, 'NONE', KShowType_NONE_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KShowType, 'BACKUP', KShowType_BACKUP_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KShowType, 'UNRECOGNIZED', KShowType_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KShowType, 'Companion', Companion_getInstance_741); + $com$bapis$bilibili$app$dynamic$v2.KNetworkType = KNetworkType; + $com$bapis$bilibili$app$dynamic$v2.KNetworkType.values = values_83; + $com$bapis$bilibili$app$dynamic$v2.KNetworkType.valueOf = valueOf_83; + defineProp($com$bapis$bilibili$app$dynamic$v2.KNetworkType, 'NT_UNKNOWN', KNetworkType_NT_UNKNOWN_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KNetworkType, 'WIFI', KNetworkType_WIFI_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KNetworkType, 'CELLULAR', KNetworkType_CELLULAR_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KNetworkType, 'OFFLINE', KNetworkType_OFFLINE_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KNetworkType, 'OTHERNET', KNetworkType_OTHERNET_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KNetworkType, 'ETHERNET', KNetworkType_ETHERNET_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KNetworkType, 'UNRECOGNIZED', KNetworkType_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KNetworkType, 'Companion', Companion_getInstance_742); + $com$bapis$bilibili$app$dynamic$v2.KTFType = KTFType; + $com$bapis$bilibili$app$dynamic$v2.KTFType.values = values_84; + $com$bapis$bilibili$app$dynamic$v2.KTFType.valueOf = valueOf_84; + defineProp($com$bapis$bilibili$app$dynamic$v2.KTFType, 'TF_UNKNOWN', KTFType_TF_UNKNOWN_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KTFType, 'U_CARD', KTFType_U_CARD_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KTFType, 'U_PKG', KTFType_U_PKG_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KTFType, 'C_CARD', KTFType_C_CARD_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KTFType, 'C_PKG', KTFType_C_PKG_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KTFType, 'T_CARD', KTFType_T_CARD_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KTFType, 'T_PKG', KTFType_T_PKG_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KTFType, 'UNRECOGNIZED', KTFType_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KTFType, 'Companion', Companion_getInstance_743); + $com$bapis$bilibili$app$dynamic$v2.KHomePageTabSttingStatus = KHomePageTabSttingStatus; + $com$bapis$bilibili$app$dynamic$v2.KHomePageTabSttingStatus.values = values_85; + $com$bapis$bilibili$app$dynamic$v2.KHomePageTabSttingStatus.valueOf = valueOf_85; + defineProp($com$bapis$bilibili$app$dynamic$v2.KHomePageTabSttingStatus, 'SETTING_INVALID', KHomePageTabSttingStatus_SETTING_INVALID_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KHomePageTabSttingStatus, 'SETTING_OPEN', KHomePageTabSttingStatus_SETTING_OPEN_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KHomePageTabSttingStatus, 'SETTING_CLOSE', KHomePageTabSttingStatus_SETTING_CLOSE_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KHomePageTabSttingStatus, 'UNRECOGNIZED', KHomePageTabSttingStatus_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KHomePageTabSttingStatus, 'Companion', Companion_getInstance_744); + $com$bapis$bilibili$app$dynamic$v2.KCampusHomePageType = KCampusHomePageType; + $com$bapis$bilibili$app$dynamic$v2.KCampusHomePageType.values = values_86; + $com$bapis$bilibili$app$dynamic$v2.KCampusHomePageType.valueOf = valueOf_86; + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusHomePageType, 'PAGE_MAJOR', KCampusHomePageType_PAGE_MAJOR_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusHomePageType, 'PAGE_SUBORDINATE', KCampusHomePageType_PAGE_SUBORDINATE_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusHomePageType, 'PAGE_MAJOR_DETAIL', KCampusHomePageType_PAGE_MAJOR_DETAIL_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusHomePageType, 'UNRECOGNIZED', KCampusHomePageType_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusHomePageType, 'Companion', Companion_getInstance_745); + $com$bapis$bilibili$app$dynamic$v2.KCampusReqFromType = KCampusReqFromType; + $com$bapis$bilibili$app$dynamic$v2.KCampusReqFromType.values = values_87; + $com$bapis$bilibili$app$dynamic$v2.KCampusReqFromType.valueOf = valueOf_87; + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusReqFromType, 'DYNAMIC', KCampusReqFromType_DYNAMIC_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusReqFromType, 'HOME', KCampusReqFromType_HOME_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusReqFromType, 'UNRECOGNIZED', KCampusReqFromType_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusReqFromType, 'Companion', Companion_getInstance_746); + $com$bapis$bilibili$app$dynamic$v2.KCampusRcmdReqFrom = KCampusRcmdReqFrom; + $com$bapis$bilibili$app$dynamic$v2.KCampusRcmdReqFrom.values = values_88; + $com$bapis$bilibili$app$dynamic$v2.KCampusRcmdReqFrom.valueOf = valueOf_88; + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusRcmdReqFrom, 'CAMPUS_RCMD_FROM_UNKNOWN', KCampusRcmdReqFrom_CAMPUS_RCMD_FROM_UNKNOWN_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusRcmdReqFrom, 'CAMPUS_RCMD_FROM_HOME_UN_OPEN', KCampusRcmdReqFrom_CAMPUS_RCMD_FROM_HOME_UN_OPEN_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusRcmdReqFrom, 'CAMPUS_RCMD_FROM_VISIT_OTHER', KCampusRcmdReqFrom_CAMPUS_RCMD_FROM_VISIT_OTHER_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusRcmdReqFrom, 'CAMPUS_RCMD_FROM_HOME_MOMENT', KCampusRcmdReqFrom_CAMPUS_RCMD_FROM_HOME_MOMENT_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusRcmdReqFrom, 'CAMPUS_RCMD_FROM_DYN_MOMENT', KCampusRcmdReqFrom_CAMPUS_RCMD_FROM_DYN_MOMENT_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusRcmdReqFrom, 'CAMPUS_RCMD_FROM_PAGE_SUBORDINATE_MOMENT', KCampusRcmdReqFrom_CAMPUS_RCMD_FROM_PAGE_SUBORDINATE_MOMENT_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusRcmdReqFrom, 'UNRECOGNIZED', KCampusRcmdReqFrom_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusRcmdReqFrom, 'Companion', Companion_getInstance_747); + $com$bapis$bilibili$app$dynamic$v2.KCampusEntryType = KCampusEntryType; + $com$bapis$bilibili$app$dynamic$v2.KCampusEntryType.values = values_89; + $com$bapis$bilibili$app$dynamic$v2.KCampusEntryType.valueOf = valueOf_89; + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusEntryType, 'NONE', KCampusEntryType_NONE_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusEntryType, 'ENTRY_DYNAMIC', KCampusEntryType_ENTRY_DYNAMIC_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusEntryType, 'ENTRY_HOME', KCampusEntryType_ENTRY_HOME_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusEntryType, 'UNRECOGNIZED', KCampusEntryType_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusEntryType, 'Companion', Companion_getInstance_748); + $com$bapis$bilibili$app$dynamic$v2.KCampusOnlineStatus = KCampusOnlineStatus; + $com$bapis$bilibili$app$dynamic$v2.KCampusOnlineStatus.values = values_90; + $com$bapis$bilibili$app$dynamic$v2.KCampusOnlineStatus.valueOf = valueOf_90; + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusOnlineStatus, 'CAMPUS_ONLINE_OFFLINE', KCampusOnlineStatus_CAMPUS_ONLINE_OFFLINE_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusOnlineStatus, 'CAMPUS_ONLINE_ONLINE', KCampusOnlineStatus_CAMPUS_ONLINE_ONLINE_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusOnlineStatus, 'UNRECOGNIZED', KCampusOnlineStatus_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusOnlineStatus, 'Companion', Companion_getInstance_749); + $com$bapis$bilibili$app$dynamic$v2.KCampusMngAuditStatus = KCampusMngAuditStatus; + $com$bapis$bilibili$app$dynamic$v2.KCampusMngAuditStatus.values = values_91; + $com$bapis$bilibili$app$dynamic$v2.KCampusMngAuditStatus.valueOf = valueOf_91; + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusMngAuditStatus, 'CAMPUS_MNG_AUDIT_NONE', KCampusMngAuditStatus_CAMPUS_MNG_AUDIT_NONE_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusMngAuditStatus, 'CAMPUS_MNG_AUDIT_IN_PROCESS', KCampusMngAuditStatus_CAMPUS_MNG_AUDIT_IN_PROCESS_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusMngAuditStatus, 'CAMPUS_MNG_AUDIT_FAILED', KCampusMngAuditStatus_CAMPUS_MNG_AUDIT_FAILED_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusMngAuditStatus, 'UNRECOGNIZED', KCampusMngAuditStatus_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusMngAuditStatus, 'Companion', Companion_getInstance_750); + $com$bapis$bilibili$app$dynamic$v2.KCampusMngItemType = KCampusMngItemType; + $com$bapis$bilibili$app$dynamic$v2.KCampusMngItemType.values = values_92; + $com$bapis$bilibili$app$dynamic$v2.KCampusMngItemType.valueOf = valueOf_92; + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusMngItemType, 'CAMPUS_MNG_NONE', KCampusMngItemType_CAMPUS_MNG_NONE_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusMngItemType, 'CAMPUS_MNG_BASIC_INFO', KCampusMngItemType_CAMPUS_MNG_BASIC_INFO_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusMngItemType, 'CAMPUS_MNG_BADGE', KCampusMngItemType_CAMPUS_MNG_BADGE_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusMngItemType, 'CAMPUS_MNG_SLOGAN', KCampusMngItemType_CAMPUS_MNG_SLOGAN_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusMngItemType, 'CAMPUS_MNG_QUIZ', KCampusMngItemType_CAMPUS_MNG_QUIZ_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusMngItemType, 'UNRECOGNIZED', KCampusMngItemType_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusMngItemType, 'Companion', Companion_getInstance_751); + $com$bapis$bilibili$app$dynamic$v2.KCampusMngQuizAction = KCampusMngQuizAction; + $com$bapis$bilibili$app$dynamic$v2.KCampusMngQuizAction.values = values_93; + $com$bapis$bilibili$app$dynamic$v2.KCampusMngQuizAction.valueOf = valueOf_93; + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusMngQuizAction, 'CAMPUS_MNG_QUIZ_ACT_LIST', KCampusMngQuizAction_CAMPUS_MNG_QUIZ_ACT_LIST_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusMngQuizAction, 'CAMPUS_MNG_QUIZ_ACT_ADD', KCampusMngQuizAction_CAMPUS_MNG_QUIZ_ACT_ADD_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusMngQuizAction, 'CAMPUS_MNG_QUIZ_ACT_DEL', KCampusMngQuizAction_CAMPUS_MNG_QUIZ_ACT_DEL_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusMngQuizAction, 'UNRECOGNIZED', KCampusMngQuizAction_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusMngQuizAction, 'Companion', Companion_getInstance_752); + $com$bapis$bilibili$app$dynamic$v2.KNoReq = KNoReq; + defineProp($com$bapis$bilibili$app$dynamic$v2.KNoReq, 'Companion', Companion_getInstance_753); + $com$bapis$bilibili$app$dynamic$v2.KNoReply = KNoReply; + defineProp($com$bapis$bilibili$app$dynamic$v2.KNoReply, 'Companion', Companion_getInstance_754); + $com$bapis$bilibili$app$dynamic$v2.KDynVideoReq = KDynVideoReq; + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynVideoReq, 'Companion', Companion_getInstance_755); + $com$bapis$bilibili$app$dynamic$v2.KPlayurlParam = KPlayurlParam; + defineProp($com$bapis$bilibili$app$dynamic$v2.KPlayurlParam, 'Companion', Companion_getInstance_756); + $com$bapis$bilibili$app$dynamic$v2.KDynVideoReply = KDynVideoReply; + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynVideoReply, 'Companion', Companion_getInstance_757); + $com$bapis$bilibili$app$dynamic$v2.KCardVideoDynList = KCardVideoDynList; + defineProp($com$bapis$bilibili$app$dynamic$v2.KCardVideoDynList, 'Companion', Companion_getInstance_758); + $com$bapis$bilibili$app$dynamic$v2.KDynAllReq = KDynAllReq; + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynAllReq, 'Companion', Companion_getInstance_759); + $com$bapis$bilibili$app$dynamic$v2.KRcmdUPsParam = KRcmdUPsParam; + defineProp($com$bapis$bilibili$app$dynamic$v2.KRcmdUPsParam, 'Companion', Companion_getInstance_760); + $com$bapis$bilibili$app$dynamic$v2.KAdParam = KAdParam; + defineProp($com$bapis$bilibili$app$dynamic$v2.KAdParam, 'Companion', Companion_getInstance_761); + $com$bapis$bilibili$app$dynamic$v2.KConfig = KConfig_1; + $com$bapis$bilibili$app$dynamic$v2.KConfig.KExtraRouterKvsEntry = KExtraRouterKvsEntry; + defineProp($com$bapis$bilibili$app$dynamic$v2.KConfig.KExtraRouterKvsEntry, 'Companion', Companion_getInstance_762); + defineProp($com$bapis$bilibili$app$dynamic$v2.KConfig, 'Companion', Companion_getInstance_763); + $com$bapis$bilibili$app$dynamic$v2.KDynAllReply = KDynAllReply; + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynAllReply, 'Companion', Companion_getInstance_764); + $com$bapis$bilibili$app$dynamic$v2.KFeedSortConfig = KFeedSortConfig; + defineProp($com$bapis$bilibili$app$dynamic$v2.KFeedSortConfig, 'Companion', Companion_getInstance_765); + $com$bapis$bilibili$app$dynamic$v2.KFeedSortOption = KFeedSortOption; + defineProp($com$bapis$bilibili$app$dynamic$v2.KFeedSortOption, 'Companion', Companion_getInstance_766); + $com$bapis$bilibili$app$dynamic$v2.KFeedSortOptionReq = KFeedSortOptionReq; + defineProp($com$bapis$bilibili$app$dynamic$v2.KFeedSortOptionReq, 'Companion', Companion_getInstance_767); + $com$bapis$bilibili$app$dynamic$v2.KDynamicList = KDynamicList; + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynamicList, 'Companion', Companion_getInstance_768); + $com$bapis$bilibili$app$dynamic$v2.KTopicList = KTopicList_1; + defineProp($com$bapis$bilibili$app$dynamic$v2.KTopicList, 'Companion', Companion_getInstance_769); + $com$bapis$bilibili$app$dynamic$v2.KTopicListItem = KTopicListItem_0; + defineProp($com$bapis$bilibili$app$dynamic$v2.KTopicListItem, 'Companion', Companion_getInstance_770); + $com$bapis$bilibili$app$dynamic$v2.KTopicButton = KTopicButton_0; + defineProp($com$bapis$bilibili$app$dynamic$v2.KTopicButton, 'Companion', Companion_getInstance_771); + $com$bapis$bilibili$app$dynamic$v2.KUnfollow = KUnfollow; + defineProp($com$bapis$bilibili$app$dynamic$v2.KUnfollow, 'Companion', Companion_getInstance_772); + $com$bapis$bilibili$app$dynamic$v2.KUnfollowUserItem = KUnfollowUserItem; + defineProp($com$bapis$bilibili$app$dynamic$v2.KUnfollowUserItem, 'Companion', Companion_getInstance_773); + $com$bapis$bilibili$app$dynamic$v2.KDynDetailsReq = KDynDetailsReq; + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynDetailsReq, 'Companion', Companion_getInstance_774); + $com$bapis$bilibili$app$dynamic$v2.KDynDetailsReply = KDynDetailsReply; + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynDetailsReply, 'Companion', Companion_getInstance_775); + $com$bapis$bilibili$app$dynamic$v2.KDynVideoPersonalReq = KDynVideoPersonalReq; + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynVideoPersonalReq, 'Companion', Companion_getInstance_776); + $com$bapis$bilibili$app$dynamic$v2.KDynVideoPersonalReply = KDynVideoPersonalReply; + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynVideoPersonalReply, 'Companion', Companion_getInstance_777); + $com$bapis$bilibili$app$dynamic$v2.KDynVideoUpdOffsetReq = KDynVideoUpdOffsetReq; + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynVideoUpdOffsetReq, 'Companion', Companion_getInstance_778); + $com$bapis$bilibili$app$dynamic$v2.KCardVideoUpList = KCardVideoUpList; + defineProp($com$bapis$bilibili$app$dynamic$v2.KCardVideoUpList, 'Companion', Companion_getInstance_779); + $com$bapis$bilibili$app$dynamic$v2.KUpListMoreLabel = KUpListMoreLabel; + defineProp($com$bapis$bilibili$app$dynamic$v2.KUpListMoreLabel, 'Companion', Companion_getInstance_780); + $com$bapis$bilibili$app$dynamic$v2.KUpListItem = KUpListItem; + defineProp($com$bapis$bilibili$app$dynamic$v2.KUpListItem, 'Companion', Companion_getInstance_781); + $com$bapis$bilibili$app$dynamic$v2.KUserItemStyle = KUserItemStyle; + defineProp($com$bapis$bilibili$app$dynamic$v2.KUserItemStyle, 'Companion', Companion_getInstance_782); + $com$bapis$bilibili$app$dynamic$v2.KCardVideoFollowList = KCardVideoFollowList; + defineProp($com$bapis$bilibili$app$dynamic$v2.KCardVideoFollowList, 'Companion', Companion_getInstance_783); + $com$bapis$bilibili$app$dynamic$v2.KFollowListItem = KFollowListItem; + defineProp($com$bapis$bilibili$app$dynamic$v2.KFollowListItem, 'Companion', Companion_getInstance_784); + $com$bapis$bilibili$app$dynamic$v2.KNewEP = KNewEP; + defineProp($com$bapis$bilibili$app$dynamic$v2.KNewEP, 'Companion', Companion_getInstance_785); + $com$bapis$bilibili$app$dynamic$v2.KDynAdditionCommonFollowReq = KDynAdditionCommonFollowReq; + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynAdditionCommonFollowReq, 'Companion', Companion_getInstance_786); + $com$bapis$bilibili$app$dynamic$v2.KDynAdditionCommonFollowReply = KDynAdditionCommonFollowReply; + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynAdditionCommonFollowReply, 'Companion', Companion_getInstance_787); + $com$bapis$bilibili$app$dynamic$v2.KDynThumbReq = KDynThumbReq; + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynThumbReq, 'Companion', Companion_getInstance_788); + $com$bapis$bilibili$app$dynamic$v2.KDynFakeCardReq = KDynFakeCardReq; + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynFakeCardReq, 'Companion', Companion_getInstance_789); + $com$bapis$bilibili$app$dynamic$v2.KDynFakeCardReply = KDynFakeCardReply; + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynFakeCardReply, 'Companion', Companion_getInstance_790); + $com$bapis$bilibili$app$dynamic$v2.KDynRcmdUpExchangeReq = KDynRcmdUpExchangeReq; + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynRcmdUpExchangeReq, 'Companion', Companion_getInstance_791); + $com$bapis$bilibili$app$dynamic$v2.KDynRcmdUpExchangeReply = KDynRcmdUpExchangeReply; + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynRcmdUpExchangeReply, 'Companion', Companion_getInstance_792); + $com$bapis$bilibili$app$dynamic$v2.KDynAllPersonalReq = KDynAllPersonalReq; + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynAllPersonalReq, 'Companion', Companion_getInstance_793); + $com$bapis$bilibili$app$dynamic$v2.KDynAllPersonalReply = KDynAllPersonalReply; + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynAllPersonalReply, 'Companion', Companion_getInstance_794); + $com$bapis$bilibili$app$dynamic$v2.KTopAdditionUP = KTopAdditionUP; + defineProp($com$bapis$bilibili$app$dynamic$v2.KTopAdditionUP, 'Companion', Companion_getInstance_795); + $com$bapis$bilibili$app$dynamic$v2.KDynAllUpdOffsetReq = KDynAllUpdOffsetReq; + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynAllUpdOffsetReq, 'Companion', Companion_getInstance_796); + $com$bapis$bilibili$app$dynamic$v2.KDynVoteReq = KDynVoteReq; + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynVoteReq, 'Companion', Companion_getInstance_797); + $com$bapis$bilibili$app$dynamic$v2.KDynVoteReply = KDynVoteReply; + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynVoteReply, 'Companion', Companion_getInstance_798); + $com$bapis$bilibili$app$dynamic$v2.KMixUpListLiveItem = KMixUpListLiveItem; + defineProp($com$bapis$bilibili$app$dynamic$v2.KMixUpListLiveItem, 'Companion', Companion_getInstance_799); + $com$bapis$bilibili$app$dynamic$v2.KMixUpListItem = KMixUpListItem; + defineProp($com$bapis$bilibili$app$dynamic$v2.KMixUpListItem, 'Companion', Companion_getInstance_800); + $com$bapis$bilibili$app$dynamic$v2.KDynMixUpListViewMoreReq = KDynMixUpListViewMoreReq; + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynMixUpListViewMoreReq, 'Companion', Companion_getInstance_801); + $com$bapis$bilibili$app$dynamic$v2.KSortType = KSortType; + defineProp($com$bapis$bilibili$app$dynamic$v2.KSortType, 'Companion', Companion_getInstance_802); + $com$bapis$bilibili$app$dynamic$v2.KDynMixUpListViewMoreReply = KDynMixUpListViewMoreReply; + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynMixUpListViewMoreReply, 'Companion', Companion_getInstance_803); + $com$bapis$bilibili$app$dynamic$v2.KDynMixUpListSearchReq = KDynMixUpListSearchReq; + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynMixUpListSearchReq, 'Companion', Companion_getInstance_804); + $com$bapis$bilibili$app$dynamic$v2.KDynMixUpListSearchReply = KDynMixUpListSearchReply; + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynMixUpListSearchReply, 'Companion', Companion_getInstance_805); + $com$bapis$bilibili$app$dynamic$v2.KDynLightReq = KDynLightReq; + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynLightReq, 'Companion', Companion_getInstance_806); + $com$bapis$bilibili$app$dynamic$v2.KDynLightReply = KDynLightReply; + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynLightReply, 'Companion', Companion_getInstance_807); + $com$bapis$bilibili$app$dynamic$v2.KDynDetailReq = KDynDetailReq; + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynDetailReq, 'Companion', Companion_getInstance_808); + $com$bapis$bilibili$app$dynamic$v2.KDynDetailReply = KDynDetailReply; + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynDetailReply, 'Companion', Companion_getInstance_809); + $com$bapis$bilibili$app$dynamic$v2.KLikeListReq = KLikeListReq; + defineProp($com$bapis$bilibili$app$dynamic$v2.KLikeListReq, 'Companion', Companion_getInstance_810); + $com$bapis$bilibili$app$dynamic$v2.KLikeListReply = KLikeListReply; + defineProp($com$bapis$bilibili$app$dynamic$v2.KLikeListReply, 'Companion', Companion_getInstance_811); + $com$bapis$bilibili$app$dynamic$v2.KRepostListReq = KRepostListReq; + defineProp($com$bapis$bilibili$app$dynamic$v2.KRepostListReq, 'Companion', Companion_getInstance_812); + $com$bapis$bilibili$app$dynamic$v2.KRepostListRsp = KRepostListRsp; + defineProp($com$bapis$bilibili$app$dynamic$v2.KRepostListRsp, 'Companion', Companion_getInstance_813); + $com$bapis$bilibili$app$dynamic$v2.KDynSpaceReq = KDynSpaceReq; + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynSpaceReq, 'Companion', Companion_getInstance_814); + $com$bapis$bilibili$app$dynamic$v2.KDynSpaceRsp = KDynSpaceRsp; + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynSpaceRsp, 'Companion', Companion_getInstance_815); + $com$bapis$bilibili$app$dynamic$v2.KDynRcmdReq = KDynRcmdReq; + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynRcmdReq, 'Companion', Companion_getInstance_816); + $com$bapis$bilibili$app$dynamic$v2.KDynRcmdReply = KDynRcmdReply; + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynRcmdReply, 'Companion', Companion_getInstance_817); + $com$bapis$bilibili$app$dynamic$v2.KDynRegionRcmd = KDynRegionRcmd; + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynRegionRcmd, 'Companion', Companion_getInstance_818); + $com$bapis$bilibili$app$dynamic$v2.KRcmdOption = KRcmdOption; + defineProp($com$bapis$bilibili$app$dynamic$v2.KRcmdOption, 'Companion', Companion_getInstance_819); + $com$bapis$bilibili$app$dynamic$v2.KDynRegionRcmdItem = KDynRegionRcmdItem; + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynRegionRcmdItem, 'Companion', Companion_getInstance_820); + $com$bapis$bilibili$app$dynamic$v2.KModuleRcmd = KModuleRcmd; + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleRcmd, 'Companion', Companion_getInstance_821); + $com$bapis$bilibili$app$dynamic$v2.KRcmdAuthor = KRcmdAuthor; + defineProp($com$bapis$bilibili$app$dynamic$v2.KRcmdAuthor, 'Companion', Companion_getInstance_822); + $com$bapis$bilibili$app$dynamic$v2.KRcmdItem = KRcmdItem_0; + $com$bapis$bilibili$app$dynamic$v2.KRcmdItem.KRcmdItem = KRcmdItem; + defineProp($com$bapis$bilibili$app$dynamic$v2.KRcmdItem, 'KRcmdArchive', KRcmdArchive_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KRcmdItem, 'Companion', Companion_getInstance_823); + $com$bapis$bilibili$app$dynamic$v2.KRcmdArchive = KRcmdArchive_0; + defineProp($com$bapis$bilibili$app$dynamic$v2.KRcmdArchive, 'Companion', Companion_getInstance_824); + $com$bapis$bilibili$app$dynamic$v2.KRcmdReason = KRcmdReason_0; + defineProp($com$bapis$bilibili$app$dynamic$v2.KRcmdReason, 'Companion', Companion_getInstance_825); + $com$bapis$bilibili$app$dynamic$v2.KDynServerDetailsReq = KDynServerDetailsReq; + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynServerDetailsReq, 'Companion', Companion_getInstance_826); + $com$bapis$bilibili$app$dynamic$v2.KDynServerDetailsReply = KDynServerDetailsReply; + $com$bapis$bilibili$app$dynamic$v2.KDynServerDetailsReply.KItemsEntry = KItemsEntry; + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynServerDetailsReply.KItemsEntry, 'Companion', Companion_getInstance_827); + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynServerDetailsReply, 'Companion', Companion_getInstance_828); + $com$bapis$bilibili$app$dynamic$v2.KDynSearchReq = KDynSearchReq; + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynSearchReq, 'Companion', Companion_getInstance_829); + $com$bapis$bilibili$app$dynamic$v2.KDynSearchReply = KDynSearchReply; + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynSearchReply, 'Companion', Companion_getInstance_830); + $com$bapis$bilibili$app$dynamic$v2.KSearchInfo = KSearchInfo; + defineProp($com$bapis$bilibili$app$dynamic$v2.KSearchInfo, 'Companion', Companion_getInstance_831); + $com$bapis$bilibili$app$dynamic$v2.KSearchTopic = KSearchTopic; + defineProp($com$bapis$bilibili$app$dynamic$v2.KSearchTopic, 'Companion', Companion_getInstance_832); + $com$bapis$bilibili$app$dynamic$v2.KSearchTopicButton = KSearchTopicButton; + defineProp($com$bapis$bilibili$app$dynamic$v2.KSearchTopicButton, 'Companion', Companion_getInstance_833); + $com$bapis$bilibili$app$dynamic$v2.KSearchTopicItem = KSearchTopicItem; + defineProp($com$bapis$bilibili$app$dynamic$v2.KSearchTopicItem, 'Companion', Companion_getInstance_834); + $com$bapis$bilibili$app$dynamic$v2.KSearchChannel = KSearchChannel; + defineProp($com$bapis$bilibili$app$dynamic$v2.KSearchChannel, 'Companion', Companion_getInstance_835); + $com$bapis$bilibili$app$dynamic$v2.KChannelInfo = KChannelInfo; + defineProp($com$bapis$bilibili$app$dynamic$v2.KChannelInfo, 'Companion', Companion_getInstance_836); + $com$bapis$bilibili$app$dynamic$v2.KSetDecisionReq = KSetDecisionReq; + defineProp($com$bapis$bilibili$app$dynamic$v2.KSetDecisionReq, 'Companion', Companion_getInstance_837); + $com$bapis$bilibili$app$dynamic$v2.KCampusTop = KCampusTop; + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusTop, 'Companion', Companion_getInstance_838); + $com$bapis$bilibili$app$dynamic$v2.KCampusShowTabInfo = KCampusShowTabInfo; + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusShowTabInfo, 'Companion', Companion_getInstance_839); + $com$bapis$bilibili$app$dynamic$v2.KCampusBannerInfo = KCampusBannerInfo; + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusBannerInfo, 'Companion', Companion_getInstance_840); + $com$bapis$bilibili$app$dynamic$v2.KCampusNoticeInfo = KCampusNoticeInfo; + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusNoticeInfo, 'Companion', Companion_getInstance_841); + $com$bapis$bilibili$app$dynamic$v2.KAlumniDynamicsReq = KAlumniDynamicsReq; + defineProp($com$bapis$bilibili$app$dynamic$v2.KAlumniDynamicsReq, 'Companion', Companion_getInstance_842); + $com$bapis$bilibili$app$dynamic$v2.KAlumniDynamicsReply = KAlumniDynamicsReply; + defineProp($com$bapis$bilibili$app$dynamic$v2.KAlumniDynamicsReply, 'Companion', Companion_getInstance_843); + $com$bapis$bilibili$app$dynamic$v2.KCampusRcmdReq = KCampusRcmdReq; + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusRcmdReq, 'Companion', Companion_getInstance_844); + $com$bapis$bilibili$app$dynamic$v2.KCampusRcmdReply = KCampusRcmdReply; + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusRcmdReply, 'Companion', Companion_getInstance_845); + $com$bapis$bilibili$app$dynamic$v2.KCampusRcmdTop = KCampusRcmdTop; + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusRcmdTop, 'Companion', Companion_getInstance_846); + $com$bapis$bilibili$app$dynamic$v2.KRcmdTopButton = KRcmdTopButton; + defineProp($com$bapis$bilibili$app$dynamic$v2.KRcmdTopButton, 'Companion', Companion_getInstance_847); + $com$bapis$bilibili$app$dynamic$v2.KCampusRcmdInfo = KCampusRcmdInfo; + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusRcmdInfo, 'Companion', Companion_getInstance_848); + $com$bapis$bilibili$app$dynamic$v2.KCampusRcmdItem = KCampusRcmdItem; + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusRcmdItem, 'Companion', Companion_getInstance_849); + $com$bapis$bilibili$app$dynamic$v2.KCampusLabel = KCampusLabel; + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusLabel, 'Companion', Companion_getInstance_850); + $com$bapis$bilibili$app$dynamic$v2.KSubscribeCampusReq = KSubscribeCampusReq; + defineProp($com$bapis$bilibili$app$dynamic$v2.KSubscribeCampusReq, 'Companion', Companion_getInstance_851); + $com$bapis$bilibili$app$dynamic$v2.KSetRecentCampusReq = KSetRecentCampusReq; + defineProp($com$bapis$bilibili$app$dynamic$v2.KSetRecentCampusReq, 'Companion', Companion_getInstance_852); + $com$bapis$bilibili$app$dynamic$v2.KDynTabReq = KDynTabReq; + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynTabReq, 'Companion', Companion_getInstance_853); + $com$bapis$bilibili$app$dynamic$v2.KDynTabReply = KDynTabReply; + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynTabReply, 'Companion', Companion_getInstance_854); + $com$bapis$bilibili$app$dynamic$v2.KDynScreenTab = KDynScreenTab; + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynScreenTab, 'Companion', Companion_getInstance_855); + $com$bapis$bilibili$app$dynamic$v2.KDynTab = KDynTab; + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynTab, 'Companion', Companion_getInstance_856); + $com$bapis$bilibili$app$dynamic$v2.KPopup = KPopup; + defineProp($com$bapis$bilibili$app$dynamic$v2.KPopup, 'Companion', Companion_getInstance_857); + $com$bapis$bilibili$app$dynamic$v2.KSchoolSearchReq = KSchoolSearchReq; + defineProp($com$bapis$bilibili$app$dynamic$v2.KSchoolSearchReq, 'Companion', Companion_getInstance_858); + $com$bapis$bilibili$app$dynamic$v2.KSchoolSearchReply = KSchoolSearchReply; + defineProp($com$bapis$bilibili$app$dynamic$v2.KSchoolSearchReply, 'Companion', Companion_getInstance_859); + $com$bapis$bilibili$app$dynamic$v2.KSearchToast = KSearchToast; + defineProp($com$bapis$bilibili$app$dynamic$v2.KSearchToast, 'Companion', Companion_getInstance_860); + $com$bapis$bilibili$app$dynamic$v2.KCampusInfo = KCampusInfo; + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusInfo, 'Companion', Companion_getInstance_861); + $com$bapis$bilibili$app$dynamic$v2.KSchoolRecommendReq = KSchoolRecommendReq; + defineProp($com$bapis$bilibili$app$dynamic$v2.KSchoolRecommendReq, 'Companion', Companion_getInstance_862); + $com$bapis$bilibili$app$dynamic$v2.KSchoolRecommendReply = KSchoolRecommendReply; + defineProp($com$bapis$bilibili$app$dynamic$v2.KSchoolRecommendReply, 'Companion', Companion_getInstance_863); + $com$bapis$bilibili$app$dynamic$v2.KDynSpaceSearchDetailsReq = KDynSpaceSearchDetailsReq; + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynSpaceSearchDetailsReq, 'Companion', Companion_getInstance_864); + $com$bapis$bilibili$app$dynamic$v2.KDynSpaceSearchDetailsReply = KDynSpaceSearchDetailsReply; + $com$bapis$bilibili$app$dynamic$v2.KDynSpaceSearchDetailsReply.KItemsEntry = KItemsEntry_0; + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynSpaceSearchDetailsReply.KItemsEntry, 'Companion', Companion_getInstance_865); + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynSpaceSearchDetailsReply, 'Companion', Companion_getInstance_866); + $com$bapis$bilibili$app$dynamic$v2.KOfficialAccountsReq = KOfficialAccountsReq; + defineProp($com$bapis$bilibili$app$dynamic$v2.KOfficialAccountsReq, 'Companion', Companion_getInstance_867); + $com$bapis$bilibili$app$dynamic$v2.KOfficialAccountsReply = KOfficialAccountsReply; + defineProp($com$bapis$bilibili$app$dynamic$v2.KOfficialAccountsReply, 'Companion', Companion_getInstance_868); + $com$bapis$bilibili$app$dynamic$v2.KOfficialAccountInfo = KOfficialAccountInfo; + defineProp($com$bapis$bilibili$app$dynamic$v2.KOfficialAccountInfo, 'Companion', Companion_getInstance_869); + $com$bapis$bilibili$app$dynamic$v2.KOfficialDynamicsReq = KOfficialDynamicsReq; + defineProp($com$bapis$bilibili$app$dynamic$v2.KOfficialDynamicsReq, 'Companion', Companion_getInstance_870); + $com$bapis$bilibili$app$dynamic$v2.KOfficialDynamicsReply = KOfficialDynamicsReply; + defineProp($com$bapis$bilibili$app$dynamic$v2.KOfficialDynamicsReply, 'Companion', Companion_getInstance_871); + $com$bapis$bilibili$app$dynamic$v2.KOfficialItem = KOfficialItem; + $com$bapis$bilibili$app$dynamic$v2.KOfficialItem.KRcmdItem = KRcmdItem_1; + defineProp($com$bapis$bilibili$app$dynamic$v2.KOfficialItem, 'KRcmdArchive', KRcmdArchive_getInstance_0); + defineProp($com$bapis$bilibili$app$dynamic$v2.KOfficialItem, 'KRcmdDynamic', KRcmdDynamic_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KOfficialItem, 'Companion', Companion_getInstance_872); + $com$bapis$bilibili$app$dynamic$v2.KOfficialRcmdArchive = KOfficialRcmdArchive; + defineProp($com$bapis$bilibili$app$dynamic$v2.KOfficialRcmdArchive, 'Companion', Companion_getInstance_873); + $com$bapis$bilibili$app$dynamic$v2.KOfficialRcmdDynamic = KOfficialRcmdDynamic; + defineProp($com$bapis$bilibili$app$dynamic$v2.KOfficialRcmdDynamic, 'Companion', Companion_getInstance_874); + $com$bapis$bilibili$app$dynamic$v2.KCampusRedDotReq = KCampusRedDotReq; + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusRedDotReq, 'Companion', Companion_getInstance_875); + $com$bapis$bilibili$app$dynamic$v2.KCampusRedDotReply = KCampusRedDotReply; + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusRedDotReply, 'Companion', Companion_getInstance_876); + $com$bapis$bilibili$app$dynamic$v2.KCampusRcmdFeedReq = KCampusRcmdFeedReq; + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusRcmdFeedReq, 'Companion', Companion_getInstance_877); + $com$bapis$bilibili$app$dynamic$v2.KCampusRcmdFeedReply = KCampusRcmdFeedReply; + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusRcmdFeedReply, 'Companion', Companion_getInstance_878); + $com$bapis$bilibili$app$dynamic$v2.KGuideBarInfo = KGuideBarInfo; + defineProp($com$bapis$bilibili$app$dynamic$v2.KGuideBarInfo, 'Companion', Companion_getInstance_879); + $com$bapis$bilibili$app$dynamic$v2.KTopicSquareReq = KTopicSquareReq; + defineProp($com$bapis$bilibili$app$dynamic$v2.KTopicSquareReq, 'Companion', Companion_getInstance_880); + $com$bapis$bilibili$app$dynamic$v2.KTopicSquareReply = KTopicSquareReply; + defineProp($com$bapis$bilibili$app$dynamic$v2.KTopicSquareReply, 'Companion', Companion_getInstance_881); + $com$bapis$bilibili$app$dynamic$v2.KTopicSquareInfo = KTopicSquareInfo; + defineProp($com$bapis$bilibili$app$dynamic$v2.KTopicSquareInfo, 'Companion', Companion_getInstance_882); + $com$bapis$bilibili$app$dynamic$v2.KTopicRcmdCard = KTopicRcmdCard; + defineProp($com$bapis$bilibili$app$dynamic$v2.KTopicRcmdCard, 'Companion', Companion_getInstance_883); + $com$bapis$bilibili$app$dynamic$v2.KTopicListReq = KTopicListReq; + defineProp($com$bapis$bilibili$app$dynamic$v2.KTopicListReq, 'Companion', Companion_getInstance_884); + $com$bapis$bilibili$app$dynamic$v2.KTopicListReply = KTopicListReply; + defineProp($com$bapis$bilibili$app$dynamic$v2.KTopicListReply, 'Companion', Companion_getInstance_885); + $com$bapis$bilibili$app$dynamic$v2.KCampusMateLikeListReq = KCampusMateLikeListReq; + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusMateLikeListReq, 'Companion', Companion_getInstance_886); + $com$bapis$bilibili$app$dynamic$v2.KCampusMateLikeListReply = KCampusMateLikeListReply; + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusMateLikeListReply, 'Companion', Companion_getInstance_887); + $com$bapis$bilibili$app$dynamic$v2.KCampusFeedbackReq = KCampusFeedbackReq; + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusFeedbackReq, 'Companion', Companion_getInstance_888); + $com$bapis$bilibili$app$dynamic$v2.KCampusFeedbackInfo = KCampusFeedbackInfo; + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusFeedbackInfo, 'Companion', Companion_getInstance_889); + $com$bapis$bilibili$app$dynamic$v2.KCampusFeedbackReply = KCampusFeedbackReply; + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusFeedbackReply, 'Companion', Companion_getInstance_890); + $com$bapis$bilibili$app$dynamic$v2.KCampusBillBoardReq = KCampusBillBoardReq; + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusBillBoardReq, 'Companion', Companion_getInstance_891); + $com$bapis$bilibili$app$dynamic$v2.KCampusBillboardInternalReq = KCampusBillboardInternalReq; + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusBillboardInternalReq, 'Companion', Companion_getInstance_892); + $com$bapis$bilibili$app$dynamic$v2.KCampusBillBoardReply = KCampusBillBoardReply; + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusBillBoardReply, 'Companion', Companion_getInstance_893); + $com$bapis$bilibili$app$dynamic$v2.KCampusFeatureProgress = KCampusFeatureProgress; + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusFeatureProgress, 'Companion', Companion_getInstance_894); + $com$bapis$bilibili$app$dynamic$v2.KCampusTopicRcmdFeedReq = KCampusTopicRcmdFeedReq; + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusTopicRcmdFeedReq, 'Companion', Companion_getInstance_895); + $com$bapis$bilibili$app$dynamic$v2.KCampusTopicRcmdFeedReply = KCampusTopicRcmdFeedReply; + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusTopicRcmdFeedReply, 'Companion', Companion_getInstance_896); + $com$bapis$bilibili$app$dynamic$v2.KUnfollowMatchReq = KUnfollowMatchReq; + defineProp($com$bapis$bilibili$app$dynamic$v2.KUnfollowMatchReq, 'Companion', Companion_getInstance_897); + $com$bapis$bilibili$app$dynamic$v2.KFetchTabSettingReply = KFetchTabSettingReply; + defineProp($com$bapis$bilibili$app$dynamic$v2.KFetchTabSettingReply, 'Companion', Companion_getInstance_898); + $com$bapis$bilibili$app$dynamic$v2.KUpdateTabSettingReq = KUpdateTabSettingReq; + defineProp($com$bapis$bilibili$app$dynamic$v2.KUpdateTabSettingReq, 'Companion', Companion_getInstance_899); + $com$bapis$bilibili$app$dynamic$v2.KCampusSquareReq = KCampusSquareReq; + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusSquareReq, 'Companion', Companion_getInstance_900); + $com$bapis$bilibili$app$dynamic$v2.KCampusSquareReply = KCampusSquareReply; + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusSquareReply, 'Companion', Companion_getInstance_901); + $com$bapis$bilibili$app$dynamic$v2.KRcmdCampusBrief = KRcmdCampusBrief; + defineProp($com$bapis$bilibili$app$dynamic$v2.KRcmdCampusBrief, 'Companion', Companion_getInstance_902); + $com$bapis$bilibili$app$dynamic$v2.KCampusRecommendReq = KCampusRecommendReq; + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusRecommendReq, 'Companion', Companion_getInstance_903); + $com$bapis$bilibili$app$dynamic$v2.KCampusRecommendReply = KCampusRecommendReply; + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusRecommendReply, 'Companion', Companion_getInstance_904); + $com$bapis$bilibili$app$dynamic$v2.KCampusHomePagesReply = KCampusHomePagesReply; + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusHomePagesReply, 'Companion', Companion_getInstance_905); + $com$bapis$bilibili$app$dynamic$v2.KCampusHomePagesReq = KCampusHomePagesReq; + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusHomePagesReq, 'Companion', Companion_getInstance_906); + $com$bapis$bilibili$app$dynamic$v2.KCampusEntryTabReq = KCampusEntryTabReq; + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusEntryTabReq, 'Companion', Companion_getInstance_907); + $com$bapis$bilibili$app$dynamic$v2.KCampusEntryTabResp = KCampusEntryTabResp; + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusEntryTabResp, 'Companion', Companion_getInstance_908); + $com$bapis$bilibili$app$dynamic$v2.KCampusHomeRcmdTopic = KCampusHomeRcmdTopic; + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusHomeRcmdTopic, 'Companion', Companion_getInstance_909); + $com$bapis$bilibili$app$dynamic$v2.KHomeSubscribeReq = KHomeSubscribeReq; + defineProp($com$bapis$bilibili$app$dynamic$v2.KHomeSubscribeReq, 'Companion', Companion_getInstance_910); + $com$bapis$bilibili$app$dynamic$v2.KHomeSubscribeReply = KHomeSubscribeReply; + defineProp($com$bapis$bilibili$app$dynamic$v2.KHomeSubscribeReply, 'Companion', Companion_getInstance_911); + $com$bapis$bilibili$app$dynamic$v2.KLbsPoiReq = KLbsPoiReq; + defineProp($com$bapis$bilibili$app$dynamic$v2.KLbsPoiReq, 'Companion', Companion_getInstance_912); + $com$bapis$bilibili$app$dynamic$v2.KLbsPoiDetail = KLbsPoiDetail; + defineProp($com$bapis$bilibili$app$dynamic$v2.KLbsPoiDetail, 'Companion', Companion_getInstance_913); + $com$bapis$bilibili$app$dynamic$v2.KLbsPoiReply = KLbsPoiReply; + defineProp($com$bapis$bilibili$app$dynamic$v2.KLbsPoiReply, 'Companion', Companion_getInstance_914); + $com$bapis$bilibili$app$dynamic$v2.KFeedFilterReq = KFeedFilterReq; + defineProp($com$bapis$bilibili$app$dynamic$v2.KFeedFilterReq, 'Companion', Companion_getInstance_915); + $com$bapis$bilibili$app$dynamic$v2.KFeedFilterReply = KFeedFilterReply; + defineProp($com$bapis$bilibili$app$dynamic$v2.KFeedFilterReply, 'Companion', Companion_getInstance_916); + $com$bapis$bilibili$app$dynamic$v2.KCampusMngDetailReq = KCampusMngDetailReq; + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusMngDetailReq, 'Companion', Companion_getInstance_917); + $com$bapis$bilibili$app$dynamic$v2.KCampusMngDetailReply = KCampusMngDetailReply; + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusMngDetailReply, 'Companion', Companion_getInstance_918); + $com$bapis$bilibili$app$dynamic$v2.KCampusMngItem = KCampusMngItem; + $com$bapis$bilibili$app$dynamic$v2.KCampusMngItem.KItem = KItem_3; + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusMngItem, 'KBasicInfo', KBasicInfo_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusMngItem, 'KBadge', KBadge_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusMngItem, 'KSlogan', KSlogan_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusMngItem, 'KQuiz', KQuiz_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusMngItem, 'Companion', Companion_getInstance_919); + $com$bapis$bilibili$app$dynamic$v2.KCampusMngBasicInfo = KCampusMngBasicInfo; + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusMngBasicInfo, 'Companion', Companion_getInstance_920); + $com$bapis$bilibili$app$dynamic$v2.KCampusMngBadge = KCampusMngBadge; + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusMngBadge, 'Companion', Companion_getInstance_921); + $com$bapis$bilibili$app$dynamic$v2.KCampusMngSlogan = KCampusMngSlogan; + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusMngSlogan, 'Companion', Companion_getInstance_922); + $com$bapis$bilibili$app$dynamic$v2.KCampusMngQuiz = KCampusMngQuiz; + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusMngQuiz, 'Companion', Companion_getInstance_923); + $com$bapis$bilibili$app$dynamic$v2.KCampusMngSubmitReq = KCampusMngSubmitReq; + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusMngSubmitReq, 'Companion', Companion_getInstance_924); + $com$bapis$bilibili$app$dynamic$v2.KCampusMngSubmitReply = KCampusMngSubmitReply; + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusMngSubmitReply, 'Companion', Companion_getInstance_925); + $com$bapis$bilibili$app$dynamic$v2.KCampusMngQuizDetail = KCampusMngQuizDetail; + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusMngQuizDetail, 'Companion', Companion_getInstance_926); + $com$bapis$bilibili$app$dynamic$v2.KCampusMngQuizOperateReq = KCampusMngQuizOperateReq; + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusMngQuizOperateReq, 'Companion', Companion_getInstance_927); + $com$bapis$bilibili$app$dynamic$v2.KCampusMngQuizOperateReply = KCampusMngQuizOperateReply; + defineProp($com$bapis$bilibili$app$dynamic$v2.KCampusMngQuizOperateReply, 'Companion', Companion_getInstance_928); + $com$bapis$bilibili$app$dynamic$v2.KLegacyTopicFeedReq = KLegacyTopicFeedReq; + defineProp($com$bapis$bilibili$app$dynamic$v2.KLegacyTopicFeedReq, 'Companion', Companion_getInstance_929); + $com$bapis$bilibili$app$dynamic$v2.KLegacyTopicFeedReply = KLegacyTopicFeedReply; + defineProp($com$bapis$bilibili$app$dynamic$v2.KLegacyTopicFeedReply, 'Companion', Companion_getInstance_930); + $com$bapis$bilibili$app$dynamic$v2.KDynFriendReq = KDynFriendReq; + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynFriendReq, 'Companion', Companion_getInstance_931); + $com$bapis$bilibili$app$dynamic$v2.KDynFriendReply = KDynFriendReply; + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynFriendReply, 'Companion', Companion_getInstance_932); + $com$bapis$bilibili$app$dynamic$v2.KReactionListReq = KReactionListReq; + defineProp($com$bapis$bilibili$app$dynamic$v2.KReactionListReq, 'Companion', Companion_getInstance_933); + $com$bapis$bilibili$app$dynamic$v2.KReactionListReply = KReactionListReply; + defineProp($com$bapis$bilibili$app$dynamic$v2.KReactionListReply, 'Companion', Companion_getInstance_934); + $com$bapis$bilibili$app$dynamic$v2.KReactionListItem = KReactionListItem; + defineProp($com$bapis$bilibili$app$dynamic$v2.KReactionListItem, 'Companion', Companion_getInstance_935); + $com$bapis$bilibili$app$dynamic$v2.values$factory = values$factory_72; + $com$bapis$bilibili$app$dynamic$v2.values$factory = values$factory_73; + $com$bapis$bilibili$app$dynamic$v2.values$factory = values$factory_74; + $com$bapis$bilibili$app$dynamic$v2.values$factory = values$factory_75; + $com$bapis$bilibili$app$dynamic$v2.values$factory = values$factory_76; + $com$bapis$bilibili$app$dynamic$v2.values$factory = values$factory_77; + $com$bapis$bilibili$app$dynamic$v2.values$factory = values$factory_78; + $com$bapis$bilibili$app$dynamic$v2.values$factory = values$factory_79; + $com$bapis$bilibili$app$dynamic$v2.values$factory = values$factory_80; + $com$bapis$bilibili$app$dynamic$v2.values$factory = values$factory_81; + $com$bapis$bilibili$app$dynamic$v2.values$factory = values$factory_82; + $com$bapis$bilibili$app$dynamic$v2.values$factory = values$factory_83; + $com$bapis$bilibili$app$dynamic$v2.values$factory = values$factory_84; + $com$bapis$bilibili$app$dynamic$v2.values$factory = values$factory_85; + $com$bapis$bilibili$app$dynamic$v2.values$factory = values$factory_86; + $com$bapis$bilibili$app$dynamic$v2.values$factory = values$factory_87; + $com$bapis$bilibili$app$dynamic$v2.values$factory = values$factory_88; + $com$bapis$bilibili$app$dynamic$v2.values$factory = values$factory_89; + $com$bapis$bilibili$app$dynamic$v2.values$factory = values$factory_90; + $com$bapis$bilibili$app$dynamic$v2.values$factory = values$factory_91; + $com$bapis$bilibili$app$dynamic$v2.values$factory = values$factory_92; + $com$bapis$bilibili$app$dynamic$v2.values$factory = values$factory_93; + $com$bapis$bilibili$app$dynamic$v2.rcmdItemNumber$factory = rcmdItemNumber$factory; + $com$bapis$bilibili$app$dynamic$v2.rcmdItemValues$factory = rcmdItemValues$factory; + $com$bapis$bilibili$app$dynamic$v2.rcmdItemNumber$factory = rcmdItemNumber$factory_0; + $com$bapis$bilibili$app$dynamic$v2.rcmdItemValues$factory = rcmdItemValues$factory_0; + $com$bapis$bilibili$app$dynamic$v2.itemNumber$factory = itemNumber$factory_0; + $com$bapis$bilibili$app$dynamic$v2.itemValues$factory = itemValues$factory_0; + var $com = _.com || (_.com = {}); + var $com$bapis = $com.bapis || ($com.bapis = {}); + var $com$bapis$bilibili = $com$bapis.bilibili || ($com$bapis.bilibili = {}); + var $com$bapis$bilibili$app = $com$bapis$bilibili.app || ($com$bapis$bilibili.app = {}); + var $com$bapis$bilibili$app$dynamic = $com$bapis$bilibili$app.dynamic || ($com$bapis$bilibili$app.dynamic = {}); + var $com$bapis$bilibili$app$dynamic$v2 = $com$bapis$bilibili$app$dynamic.v2 || ($com$bapis$bilibili$app$dynamic.v2 = {}); + $com$bapis$bilibili$app$dynamic$v2.KDynamicType = KDynamicType; + $com$bapis$bilibili$app$dynamic$v2.KDynamicType.values = values_94; + $com$bapis$bilibili$app$dynamic$v2.KDynamicType.valueOf = valueOf_94; + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynamicType, 'DYN_NONE', KDynamicType_DYN_NONE_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynamicType, 'FORWARD', KDynamicType_FORWARD_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynamicType, 'AV', KDynamicType_AV_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynamicType, 'PGC', KDynamicType_PGC_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynamicType, 'COURSES', KDynamicType_COURSES_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynamicType, 'FOLD', KDynamicType_FOLD_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynamicType, 'WORD', KDynamicType_WORD_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynamicType, 'DRAW', KDynamicType_DRAW_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynamicType, 'ARTICLE', KDynamicType_ARTICLE_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynamicType, 'MUSIC', KDynamicType_MUSIC_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynamicType, 'COMMON_SQUARE', KDynamicType_COMMON_SQUARE_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynamicType, 'COMMON_VERTICAL', KDynamicType_COMMON_VERTICAL_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynamicType, 'LIVE', KDynamicType_LIVE_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynamicType, 'MEDIALIST', KDynamicType_MEDIALIST_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynamicType, 'COURSES_SEASON', KDynamicType_COURSES_SEASON_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynamicType, 'AD', KDynamicType_AD_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynamicType, 'APPLET', KDynamicType_APPLET_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynamicType, 'SUBSCRIPTION', KDynamicType_SUBSCRIPTION_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynamicType, 'LIVE_RCMD', KDynamicType_LIVE_RCMD_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynamicType, 'BANNER', KDynamicType_BANNER_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynamicType, 'UGC_SEASON', KDynamicType_UGC_SEASON_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynamicType, 'SUBSCRIPTION_NEW', KDynamicType_SUBSCRIPTION_NEW_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynamicType, 'STORY', KDynamicType_STORY_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynamicType, 'TOPIC_RCMD', KDynamicType_TOPIC_RCMD_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynamicType, 'COUR_UP', KDynamicType_COUR_UP_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynamicType, 'TOPIC_SET', KDynamicType_TOPIC_SET_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynamicType, 'NOTICE', KDynamicType_NOTICE_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynamicType, 'TEXT_NOTICE', KDynamicType_TEXT_NOTICE_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynamicType, 'ONETIME_NOTICE', KDynamicType_ONETIME_NOTICE_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynamicType, 'UNRECOGNIZED', KDynamicType_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynamicType, 'Companion', Companion_getInstance_936); + $com$bapis$bilibili$app$dynamic$v2.KDynModuleType = KDynModuleType; + $com$bapis$bilibili$app$dynamic$v2.KDynModuleType.values = values_95; + $com$bapis$bilibili$app$dynamic$v2.KDynModuleType.valueOf = valueOf_95; + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynModuleType, 'MODULE_NONE', KDynModuleType_MODULE_NONE_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynModuleType, 'MODULE_AUTHOR', KDynModuleType_MODULE_AUTHOR_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynModuleType, 'MODULE_DISPUTE', KDynModuleType_MODULE_DISPUTE_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynModuleType, 'MODULE_DESC', KDynModuleType_MODULE_DESC_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynModuleType, 'MODULE_DYNAMIC', KDynModuleType_MODULE_DYNAMIC_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynModuleType, 'MODULE_FORWARD', KDynModuleType_MODULE_FORWARD_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynModuleType, 'MODULE_LIKE_USER', KDynModuleType_MODULE_LIKE_USER_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynModuleType, 'MODULE_EXTEND', KDynModuleType_MODULE_EXTEND_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynModuleType, 'MODULE_ADDITIONAL', KDynModuleType_MODULE_ADDITIONAL_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynModuleType, 'MODULE_STAT', KDynModuleType_MODULE_STAT_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynModuleType, 'MODULE_FOLD', KDynModuleType_MODULE_FOLD_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynModuleType, 'MODULE_COMMENT', KDynModuleType_MODULE_COMMENT_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynModuleType, 'MODULE_INTERACTION', KDynModuleType_MODULE_INTERACTION_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynModuleType, 'MODULE_AUTHOR_FORWARD', KDynModuleType_MODULE_AUTHOR_FORWARD_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynModuleType, 'MODULE_AD', KDynModuleType_MODULE_AD_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynModuleType, 'MODULE_BANNER', KDynModuleType_MODULE_BANNER_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynModuleType, 'MODULE_ITEM_NULL', KDynModuleType_MODULE_ITEM_NULL_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynModuleType, 'MODULE_SHARE_INFO', KDynModuleType_MODULE_SHARE_INFO_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynModuleType, 'MODULE_RECOMMEND', KDynModuleType_MODULE_RECOMMEND_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynModuleType, 'MODULE_STAT_FORWARD', KDynModuleType_MODULE_STAT_FORWARD_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynModuleType, 'MODULE_TOP', KDynModuleType_MODULE_TOP_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynModuleType, 'MODULE_BOTTOM', KDynModuleType_MODULE_BOTTOM_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynModuleType, 'MODULE_STORY', KDynModuleType_MODULE_STORY_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynModuleType, 'MODULE_TOPIC', KDynModuleType_MODULE_TOPIC_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynModuleType, 'MODULE_TOPIC_DETAILS_EXT', KDynModuleType_MODULE_TOPIC_DETAILS_EXT_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynModuleType, 'MODULE_TOP_TAG', KDynModuleType_MODULE_TOP_TAG_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynModuleType, 'MODULE_TOPIC_BRIEF', KDynModuleType_MODULE_TOPIC_BRIEF_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynModuleType, 'MODULE_TITLE', KDynModuleType_MODULE_TITLE_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynModuleType, 'MODULE_BUTTON', KDynModuleType_MODULE_BUTTON_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynModuleType, 'MODULE_NOTICE', KDynModuleType_MODULE_NOTICE_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynModuleType, 'MODULE_OPUS_SUMMARY', KDynModuleType_MODULE_OPUS_SUMMARY_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynModuleType, 'MODULE_COPYRIGHT', KDynModuleType_MODULE_COPYRIGHT_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynModuleType, 'MODULE_PARAGRAPH', KDynModuleType_MODULE_PARAGRAPH_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynModuleType, 'MODULE_BLOCKED', KDynModuleType_MODULE_BLOCKED_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynModuleType, 'MODULE_TEXT_NOTICE', KDynModuleType_MODULE_TEXT_NOTICE_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynModuleType, 'MODULE_OPUS_COLLECTION', KDynModuleType_MODULE_OPUS_COLLECTION_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynModuleType, 'MODULE_ONETIME_NOTICE', KDynModuleType_MODULE_ONETIME_NOTICE_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynModuleType, 'UNRECOGNIZED', KDynModuleType_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynModuleType, 'Companion', Companion_getInstance_937); + $com$bapis$bilibili$app$dynamic$v2.KDescType = KDescType_0; + $com$bapis$bilibili$app$dynamic$v2.KDescType.values = values_96; + $com$bapis$bilibili$app$dynamic$v2.KDescType.valueOf = valueOf_96; + defineProp($com$bapis$bilibili$app$dynamic$v2.KDescType, 'NONE', KDescType_NONE_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KDescType, 'TEXT', KDescType_TEXT_getInstance_0); + defineProp($com$bapis$bilibili$app$dynamic$v2.KDescType, 'AITE', KDescType_AITE_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KDescType, 'LOTTERY', KDescType_LOTTERY_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KDescType, 'VOTE', KDescType_VOTE_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KDescType, 'TOPIC', KDescType_TOPIC_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KDescType, 'GOODS', KDescType_GOODS_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KDescType, 'BV', KDescType_BV_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KDescType, 'AV', KDescType_AV_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KDescType, 'EMOJI', KDescType_EMOJI_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KDescType, 'USER', KDescType_USER_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KDescType, 'CV', KDescType_CV_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KDescType, 'VC', KDescType_VC_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KDescType, 'WEB', KDescType_WEB_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KDescType, 'TAOBAO', KDescType_TAOBAO_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KDescType, 'MAIL', KDescType_MAIL_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KDescType, 'OGV_SEASON', KDescType_OGV_SEASON_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KDescType, 'OGV_EP', KDescType_OGV_EP_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KDescType, 'SEARCH_WORD', KDescType_SEARCH_WORD_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KDescType, 'UNRECOGNIZED', KDescType_UNRECOGNIZED_getInstance_0); + defineProp($com$bapis$bilibili$app$dynamic$v2.KDescType, 'Companion', Companion_getInstance_938); + $com$bapis$bilibili$app$dynamic$v2.KEmojiType = KEmojiType; + $com$bapis$bilibili$app$dynamic$v2.KEmojiType.values = values_97; + $com$bapis$bilibili$app$dynamic$v2.KEmojiType.valueOf = valueOf_97; + defineProp($com$bapis$bilibili$app$dynamic$v2.KEmojiType, 'EMOJI_NONE', KEmojiType_EMOJI_NONE_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KEmojiType, 'EMOJI_OLD', KEmojiType_EMOJI_OLD_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KEmojiType, 'EMOJI_NEW', KEmojiType_EMOJI_NEW_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KEmojiType, 'VIP', KEmojiType_VIP_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KEmojiType, 'UNRECOGNIZED', KEmojiType_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KEmojiType, 'Companion', Companion_getInstance_939); + $com$bapis$bilibili$app$dynamic$v2.KNFTRegionType = KNFTRegionType; + $com$bapis$bilibili$app$dynamic$v2.KNFTRegionType.values = values_98; + $com$bapis$bilibili$app$dynamic$v2.KNFTRegionType.valueOf = valueOf_98; + defineProp($com$bapis$bilibili$app$dynamic$v2.KNFTRegionType, 'NFT_REGION_DEFAULT', KNFTRegionType_NFT_REGION_DEFAULT_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KNFTRegionType, 'NFT_REGION_MAINLANG', KNFTRegionType_NFT_REGION_MAINLANG_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KNFTRegionType, 'NFT_REGION_GAT', KNFTRegionType_NFT_REGION_GAT_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KNFTRegionType, 'UNRECOGNIZED', KNFTRegionType_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KNFTRegionType, 'Companion', Companion_getInstance_940); + $com$bapis$bilibili$app$dynamic$v2.KNFTShowStatus = KNFTShowStatus; + $com$bapis$bilibili$app$dynamic$v2.KNFTShowStatus.values = values_99; + $com$bapis$bilibili$app$dynamic$v2.KNFTShowStatus.valueOf = valueOf_99; + defineProp($com$bapis$bilibili$app$dynamic$v2.KNFTShowStatus, 'NFT_SHOW_DEFAULT', KNFTShowStatus_NFT_SHOW_DEFAULT_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KNFTShowStatus, 'NFT_SHOW_ZOOMINMAINLANG', KNFTShowStatus_NFT_SHOW_ZOOMINMAINLANG_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KNFTShowStatus, 'NFT_SHOW_RAW', KNFTShowStatus_NFT_SHOW_RAW_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KNFTShowStatus, 'UNRECOGNIZED', KNFTShowStatus_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KNFTShowStatus, 'Companion', Companion_getInstance_941); + $com$bapis$bilibili$app$dynamic$v2.KModuleAuthorBadgeType = KModuleAuthorBadgeType; + $com$bapis$bilibili$app$dynamic$v2.KModuleAuthorBadgeType.values = values_100; + $com$bapis$bilibili$app$dynamic$v2.KModuleAuthorBadgeType.valueOf = valueOf_100; + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleAuthorBadgeType, 'NONE', KModuleAuthorBadgeType_NONE_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleAuthorBadgeType, 'THREE_POINT', KModuleAuthorBadgeType_THREE_POINT_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleAuthorBadgeType, 'BUTTON', KModuleAuthorBadgeType_BUTTON_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleAuthorBadgeType, 'WEIGHT', KModuleAuthorBadgeType_WEIGHT_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleAuthorBadgeType, 'UNRECOGNIZED', KModuleAuthorBadgeType_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleAuthorBadgeType, 'Companion', Companion_getInstance_942); + $com$bapis$bilibili$app$dynamic$v2.KRelationStatus = KRelationStatus; + $com$bapis$bilibili$app$dynamic$v2.KRelationStatus.values = values_101; + $com$bapis$bilibili$app$dynamic$v2.KRelationStatus.valueOf = valueOf_101; + defineProp($com$bapis$bilibili$app$dynamic$v2.KRelationStatus, 'NONE', KRelationStatus_NONE_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KRelationStatus, 'NOFOLLOW', KRelationStatus_NOFOLLOW_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KRelationStatus, 'FOLLOW', KRelationStatus_FOLLOW_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KRelationStatus, 'FOLLOWED', KRelationStatus_FOLLOWED_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KRelationStatus, 'MUTUAL_CONCERN', KRelationStatus_MUTUAL_CONCERN_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KRelationStatus, 'SPECIAL', KRelationStatus_SPECIAL_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KRelationStatus, 'UNRECOGNIZED', KRelationStatus_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KRelationStatus, 'Companion', Companion_getInstance_943); + $com$bapis$bilibili$app$dynamic$v2.KWeightType = KWeightType; + $com$bapis$bilibili$app$dynamic$v2.KWeightType.values = values_102; + $com$bapis$bilibili$app$dynamic$v2.KWeightType.valueOf = valueOf_102; + defineProp($com$bapis$bilibili$app$dynamic$v2.KWeightType, 'WEIGHT_NONE', KWeightType_WEIGHT_NONE_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KWeightType, 'WEIGHT_DISLIKE', KWeightType_WEIGHT_DISLIKE_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KWeightType, 'WEIGHT_JUMP', KWeightType_WEIGHT_JUMP_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KWeightType, 'UNRECOGNIZED', KWeightType_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KWeightType, 'Companion', Companion_getInstance_944); + $com$bapis$bilibili$app$dynamic$v2.KThreePointType = KThreePointType; + $com$bapis$bilibili$app$dynamic$v2.KThreePointType.values = values_103; + $com$bapis$bilibili$app$dynamic$v2.KThreePointType.valueOf = valueOf_103; + defineProp($com$bapis$bilibili$app$dynamic$v2.KThreePointType, 'TP_NONE', KThreePointType_TP_NONE_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KThreePointType, 'BACKGROUND', KThreePointType_BACKGROUND_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KThreePointType, 'AUTO_PLAY', KThreePointType_AUTO_PLAY_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KThreePointType, 'SHARE', KThreePointType_SHARE_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KThreePointType, 'WAIT', KThreePointType_WAIT_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KThreePointType, 'ATTENTION', KThreePointType_ATTENTION_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KThreePointType, 'REPORT', KThreePointType_REPORT_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KThreePointType, 'DELETE', KThreePointType_DELETE_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KThreePointType, 'DISLIKE', KThreePointType_DISLIKE_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KThreePointType, 'FAVORITE', KThreePointType_FAVORITE_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KThreePointType, 'TOP', KThreePointType_TOP_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KThreePointType, 'COMMENT', KThreePointType_COMMENT_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KThreePointType, 'HIDE', KThreePointType_HIDE_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KThreePointType, 'CAMPUS_DELETE', KThreePointType_CAMPUS_DELETE_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KThreePointType, 'TOPIC_IRRELEVANT', KThreePointType_TOPIC_IRRELEVANT_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KThreePointType, 'BATCH_CANCEL', KThreePointType_BATCH_CANCEL_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KThreePointType, 'TOPIC_SET_CANCEL', KThreePointType_TOPIC_SET_CANCEL_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KThreePointType, 'DYNAMIC_EDIT', KThreePointType_DYNAMIC_EDIT_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KThreePointType, 'CREATE_VIDEO', KThreePointType_CREATE_VIDEO_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KThreePointType, 'COIN', KThreePointType_COIN_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KThreePointType, 'OGV_SUBSCRIBE', KThreePointType_OGV_SUBSCRIBE_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KThreePointType, 'UNRECOGNIZED', KThreePointType_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KThreePointType, 'Companion', Companion_getInstance_945); + $com$bapis$bilibili$app$dynamic$v2.KThreePointAttentionStatus = KThreePointAttentionStatus; + $com$bapis$bilibili$app$dynamic$v2.KThreePointAttentionStatus.values = values_104; + $com$bapis$bilibili$app$dynamic$v2.KThreePointAttentionStatus.valueOf = valueOf_104; + defineProp($com$bapis$bilibili$app$dynamic$v2.KThreePointAttentionStatus, 'TP_NOT_ATTENTION', KThreePointAttentionStatus_TP_NOT_ATTENTION_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KThreePointAttentionStatus, 'TP_ATTENTION', KThreePointAttentionStatus_TP_ATTENTION_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KThreePointAttentionStatus, 'UNRECOGNIZED', KThreePointAttentionStatus_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KThreePointAttentionStatus, 'Companion', Companion_getInstance_946); + $com$bapis$bilibili$app$dynamic$v2.KTopType = KTopType; + $com$bapis$bilibili$app$dynamic$v2.KTopType.values = values_105; + $com$bapis$bilibili$app$dynamic$v2.KTopType.valueOf = valueOf_105; + defineProp($com$bapis$bilibili$app$dynamic$v2.KTopType, 'TOP_NONE', KTopType_TOP_NONE_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KTopType, 'TOP_CANCEL', KTopType_TOP_CANCEL_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KTopType, 'UNRECOGNIZED', KTopType_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KTopType, 'Companion', Companion_getInstance_947); + $com$bapis$bilibili$app$dynamic$v2.KModuleDynamicType = KModuleDynamicType; + $com$bapis$bilibili$app$dynamic$v2.KModuleDynamicType.values = values_106; + $com$bapis$bilibili$app$dynamic$v2.KModuleDynamicType.valueOf = valueOf_106; + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleDynamicType, 'MDL_DYN_ARCHIVE', KModuleDynamicType_MDL_DYN_ARCHIVE_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleDynamicType, 'MDL_DYN_PGC', KModuleDynamicType_MDL_DYN_PGC_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleDynamicType, 'MDL_DYN_COUR_SEASON', KModuleDynamicType_MDL_DYN_COUR_SEASON_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleDynamicType, 'MDL_DYN_COUR_BATCH', KModuleDynamicType_MDL_DYN_COUR_BATCH_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleDynamicType, 'MDL_DYN_FORWARD', KModuleDynamicType_MDL_DYN_FORWARD_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleDynamicType, 'MDL_DYN_DRAW', KModuleDynamicType_MDL_DYN_DRAW_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleDynamicType, 'MDL_DYN_ARTICLE', KModuleDynamicType_MDL_DYN_ARTICLE_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleDynamicType, 'MDL_DYN_MUSIC', KModuleDynamicType_MDL_DYN_MUSIC_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleDynamicType, 'MDL_DYN_COMMON', KModuleDynamicType_MDL_DYN_COMMON_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleDynamicType, 'MDL_DYN_LIVE', KModuleDynamicType_MDL_DYN_LIVE_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleDynamicType, 'MDL_DYN_MEDIALIST', KModuleDynamicType_MDL_DYN_MEDIALIST_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleDynamicType, 'MDL_DYN_APPLET', KModuleDynamicType_MDL_DYN_APPLET_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleDynamicType, 'MDL_DYN_SUBSCRIPTION', KModuleDynamicType_MDL_DYN_SUBSCRIPTION_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleDynamicType, 'MDL_DYN_LIVE_RCMD', KModuleDynamicType_MDL_DYN_LIVE_RCMD_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleDynamicType, 'MDL_DYN_UGC_SEASON', KModuleDynamicType_MDL_DYN_UGC_SEASON_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleDynamicType, 'MDL_DYN_SUBSCRIPTION_NEW', KModuleDynamicType_MDL_DYN_SUBSCRIPTION_NEW_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleDynamicType, 'MDL_DYN_COUR_UP', KModuleDynamicType_MDL_DYN_COUR_UP_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleDynamicType, 'MDL_DYN_TOPIC_SET', KModuleDynamicType_MDL_DYN_TOPIC_SET_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleDynamicType, 'UNRECOGNIZED', KModuleDynamicType_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleDynamicType, 'Companion', Companion_getInstance_948); + $com$bapis$bilibili$app$dynamic$v2.KDynExtendType = KDynExtendType; + $com$bapis$bilibili$app$dynamic$v2.KDynExtendType.values = values_107; + $com$bapis$bilibili$app$dynamic$v2.KDynExtendType.valueOf = valueOf_107; + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynExtendType, 'DYN_EXT_TYPE_NONE', KDynExtendType_DYN_EXT_TYPE_NONE_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynExtendType, 'DYN_EXT_TYPE_TOPIC', KDynExtendType_DYN_EXT_TYPE_TOPIC_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynExtendType, 'DYN_EXT_TYPE_LBS', KDynExtendType_DYN_EXT_TYPE_LBS_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynExtendType, 'DYN_EXT_TYPE_HOT', KDynExtendType_DYN_EXT_TYPE_HOT_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynExtendType, 'DYN_EXT_TYPE_GAME', KDynExtendType_DYN_EXT_TYPE_GAME_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynExtendType, 'DYN_EXT_TYPE_COMMON', KDynExtendType_DYN_EXT_TYPE_COMMON_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynExtendType, 'DYN_EXT_TYPE_BILI_CUT', KDynExtendType_DYN_EXT_TYPE_BILI_CUT_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynExtendType, 'DYN_EXT_TYPE_OGV', KDynExtendType_DYN_EXT_TYPE_OGV_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynExtendType, 'DYN_EXT_TYPE_AUTO_OGV', KDynExtendType_DYN_EXT_TYPE_AUTO_OGV_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynExtendType, 'UNRECOGNIZED', KDynExtendType_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynExtendType, 'Companion', Companion_getInstance_949); + $com$bapis$bilibili$app$dynamic$v2.KFoldType = KFoldType; + $com$bapis$bilibili$app$dynamic$v2.KFoldType.values = values_108; + $com$bapis$bilibili$app$dynamic$v2.KFoldType.valueOf = valueOf_108; + defineProp($com$bapis$bilibili$app$dynamic$v2.KFoldType, 'ZORE', KFoldType_ZORE_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KFoldType, 'PUBLISH', KFoldType_PUBLISH_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KFoldType, 'FREQUENT', KFoldType_FREQUENT_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KFoldType, 'UNITE', KFoldType_UNITE_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KFoldType, 'LIMIT', KFoldType_LIMIT_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KFoldType, 'TOPIC_MERGED', KFoldType_TOPIC_MERGED_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KFoldType, 'UNRECOGNIZED', KFoldType_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KFoldType, 'Companion', Companion_getInstance_950); + $com$bapis$bilibili$app$dynamic$v2.KLocalIconType = KLocalIconType; + $com$bapis$bilibili$app$dynamic$v2.KLocalIconType.values = values_109; + $com$bapis$bilibili$app$dynamic$v2.KLocalIconType.valueOf = valueOf_109; + defineProp($com$bapis$bilibili$app$dynamic$v2.KLocalIconType, 'LOCAL_ICON_COMMENT', KLocalIconType_LOCAL_ICON_COMMENT_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KLocalIconType, 'LOCAL_ICON_LIKE', KLocalIconType_LOCAL_ICON_LIKE_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KLocalIconType, 'LOCAL_ICON_AVATAR', KLocalIconType_LOCAL_ICON_AVATAR_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KLocalIconType, 'LOCAL_ICON_COVER', KLocalIconType_LOCAL_ICON_COVER_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KLocalIconType, 'LOCAL_ICON_LIKE_AND_FORWARD', KLocalIconType_LOCAL_ICON_LIKE_AND_FORWARD_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KLocalIconType, 'UNRECOGNIZED', KLocalIconType_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KLocalIconType, 'Companion', Companion_getInstance_951); + $com$bapis$bilibili$app$dynamic$v2.KModuleBannerType = KModuleBannerType; + $com$bapis$bilibili$app$dynamic$v2.KModuleBannerType.values = values_110; + $com$bapis$bilibili$app$dynamic$v2.KModuleBannerType.valueOf = valueOf_110; + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleBannerType, 'NONE', KModuleBannerType_NONE_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleBannerType, 'USER', KModuleBannerType_USER_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleBannerType, 'UNRECOGNIZED', KModuleBannerType_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleBannerType, 'Companion', Companion_getInstance_952); + $com$bapis$bilibili$app$dynamic$v2.KRcmdType = KRcmdType; + $com$bapis$bilibili$app$dynamic$v2.KRcmdType.values = values_111; + $com$bapis$bilibili$app$dynamic$v2.KRcmdType.valueOf = valueOf_111; + defineProp($com$bapis$bilibili$app$dynamic$v2.KRcmdType, 'RCMD_ARCHIVE', KRcmdType_RCMD_ARCHIVE_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KRcmdType, 'RCMD_DYNAMIC', KRcmdType_RCMD_DYNAMIC_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KRcmdType, 'UNRECOGNIZED', KRcmdType_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KRcmdType, 'Companion', Companion_getInstance_953); + $com$bapis$bilibili$app$dynamic$v2.KMdlBlockedStyle = KMdlBlockedStyle; + $com$bapis$bilibili$app$dynamic$v2.KMdlBlockedStyle.values = values_112; + $com$bapis$bilibili$app$dynamic$v2.KMdlBlockedStyle.valueOf = valueOf_112; + defineProp($com$bapis$bilibili$app$dynamic$v2.KMdlBlockedStyle, 'BLOCKED_STYLE_DEFAULT', KMdlBlockedStyle_BLOCKED_STYLE_DEFAULT_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KMdlBlockedStyle, 'BLOCKED_STYLE_IN_AUDIT', KMdlBlockedStyle_BLOCKED_STYLE_IN_AUDIT_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KMdlBlockedStyle, 'BLOCKED_STYLE_ONLY_FANS_LIST', KMdlBlockedStyle_BLOCKED_STYLE_ONLY_FANS_LIST_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KMdlBlockedStyle, 'BLOCKED_STYLE_ONLY_FANS_VIDEO', KMdlBlockedStyle_BLOCKED_STYLE_ONLY_FANS_VIDEO_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KMdlBlockedStyle, 'UNRECOGNIZED', KMdlBlockedStyle_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KMdlBlockedStyle, 'Companion', Companion_getInstance_954); + $com$bapis$bilibili$app$dynamic$v2.KDynamicItem = KDynamicItem; + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynamicItem, 'Companion', Companion_getInstance_955); + $com$bapis$bilibili$app$dynamic$v2.KModule = KModule_0; + $com$bapis$bilibili$app$dynamic$v2.KModule.KModuleItem = KModuleItem; + defineProp($com$bapis$bilibili$app$dynamic$v2.KModule, 'KModuleAuthor', KModuleAuthor_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModule, 'KModuleDispute', KModuleDispute_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModule, 'KModuleDesc', KModuleDesc_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModule, 'KModuleDynamic', KModuleDynamic_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModule, 'KModuleLikeUser', KModuleLikeUser_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModule, 'KModuleExtend', KModuleExtend_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModule, 'KModuleAdditional', KModuleAdditional_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModule, 'KModuleStat', KModuleStat_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModule, 'KModuleFold', KModuleFold_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModule, 'KModuleComment', KModuleComment_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModule, 'KModuleInteraction', KModuleInteraction_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModule, 'KModuleAuthorForward', KModuleAuthorForward_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModule, 'KModuleAd', KModuleAd_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModule, 'KModuleBanner', KModuleBanner_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModule, 'KModuleItemNull', KModuleItemNull_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModule, 'KModuleShareInfo', KModuleShareInfo_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModule, 'KModuleRecommend', KModuleRecommend_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModule, 'KModuleTop', KModuleTop_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModule, 'KModuleButtom', KModuleButtom_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModule, 'KModuleStatForward', KModuleStatForward_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModule, 'KModuleStory', KModuleStory_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModule, 'KModuleTopic', KModuleTopic_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModule, 'KModuleTopicDetailsExt', KModuleTopicDetailsExt_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModule, 'KModuleTopTag', KModuleTopTag_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModule, 'KModuleTopicBrief', KModuleTopicBrief_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModule, 'KModuleTitle', KModuleTitle_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModule, 'KModuleButton', KModuleButton_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModule, 'KModuleNotice', KModuleNotice_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModule, 'KModuleOpusSummary', KModuleOpusSummary_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModule, 'KModuleCopyright', KModuleCopyright_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModule, 'KModuleParagraph', KModuleParagraph_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModule, 'KModuleBlocked', KModuleBlocked_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModule, 'KModuleTextNotice', KModuleTextNotice_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModule, 'KModuleOpusCollection', KModuleOpusCollection_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModule, 'KModuleOnetimeNotice', KModuleOnetimeNotice_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModule, 'Companion', Companion_getInstance_956); + $com$bapis$bilibili$app$dynamic$v2.KExtend = KExtend_1; + $com$bapis$bilibili$app$dynamic$v2.KExtend.KHistoryReportEntry = KHistoryReportEntry; + defineProp($com$bapis$bilibili$app$dynamic$v2.KExtend.KHistoryReportEntry, 'Companion', Companion_getInstance_957); + defineProp($com$bapis$bilibili$app$dynamic$v2.KExtend, 'Companion', Companion_getInstance_958); + $com$bapis$bilibili$app$dynamic$v2.KDynFeatureGate = KDynFeatureGate; + defineProp($com$bapis$bilibili$app$dynamic$v2.KDynFeatureGate, 'Companion', Companion_getInstance_959); + $com$bapis$bilibili$app$dynamic$v2.KOnlyFansProperty = KOnlyFansProperty; + defineProp($com$bapis$bilibili$app$dynamic$v2.KOnlyFansProperty, 'Companion', Companion_getInstance_960); + $com$bapis$bilibili$app$dynamic$v2.KExtendReply = KExtendReply; + defineProp($com$bapis$bilibili$app$dynamic$v2.KExtendReply, 'Companion', Companion_getInstance_961); + $com$bapis$bilibili$app$dynamic$v2.KExtendReplyParam = KExtendReplyParam; + defineProp($com$bapis$bilibili$app$dynamic$v2.KExtendReplyParam, 'Companion', Companion_getInstance_962); + $com$bapis$bilibili$app$dynamic$v2.KDescription = KDescription; + defineProp($com$bapis$bilibili$app$dynamic$v2.KDescription, 'Companion', Companion_getInstance_963); + $com$bapis$bilibili$app$dynamic$v2.KEmojiSizeSpec = KEmojiSizeSpec; + defineProp($com$bapis$bilibili$app$dynamic$v2.KEmojiSizeSpec, 'Companion', Companion_getInstance_964); + $com$bapis$bilibili$app$dynamic$v2.KModuleDescGoods = KModuleDescGoods; + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleDescGoods, 'Companion', Companion_getInstance_965); + $com$bapis$bilibili$app$dynamic$v2.KModuleAuthor = KModuleAuthor_0; + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleAuthor, 'Companion', Companion_getInstance_966); + $com$bapis$bilibili$app$dynamic$v2.KOnlyFans = KOnlyFans; + defineProp($com$bapis$bilibili$app$dynamic$v2.KOnlyFans, 'Companion', Companion_getInstance_967); + $com$bapis$bilibili$app$dynamic$v2.KIconBadge = KIconBadge; + defineProp($com$bapis$bilibili$app$dynamic$v2.KIconBadge, 'Companion', Companion_getInstance_968); + $com$bapis$bilibili$app$dynamic$v2.KUserInfo = KUserInfo; + defineProp($com$bapis$bilibili$app$dynamic$v2.KUserInfo, 'Companion', Companion_getInstance_969); + $com$bapis$bilibili$app$dynamic$v2.KUserPendant = KUserPendant; + defineProp($com$bapis$bilibili$app$dynamic$v2.KUserPendant, 'Companion', Companion_getInstance_970); + $com$bapis$bilibili$app$dynamic$v2.KNameplate = KNameplate; + defineProp($com$bapis$bilibili$app$dynamic$v2.KNameplate, 'Companion', Companion_getInstance_971); + $com$bapis$bilibili$app$dynamic$v2.KNFTInfo = KNFTInfo; + defineProp($com$bapis$bilibili$app$dynamic$v2.KNFTInfo, 'Companion', Companion_getInstance_972); + $com$bapis$bilibili$app$dynamic$v2.KOfficialVerify = KOfficialVerify_1; + defineProp($com$bapis$bilibili$app$dynamic$v2.KOfficialVerify, 'Companion', Companion_getInstance_973); + $com$bapis$bilibili$app$dynamic$v2.KVipInfo = KVipInfo_0; + defineProp($com$bapis$bilibili$app$dynamic$v2.KVipInfo, 'Companion', Companion_getInstance_974); + $com$bapis$bilibili$app$dynamic$v2.KVipLabel = KVipLabel_1; + defineProp($com$bapis$bilibili$app$dynamic$v2.KVipLabel, 'Companion', Companion_getInstance_975); + $com$bapis$bilibili$app$dynamic$v2.KDecorateCard = KDecorateCard; + defineProp($com$bapis$bilibili$app$dynamic$v2.KDecorateCard, 'Companion', Companion_getInstance_976); + $com$bapis$bilibili$app$dynamic$v2.KDecoCardFan = KDecoCardFan; + defineProp($com$bapis$bilibili$app$dynamic$v2.KDecoCardFan, 'Companion', Companion_getInstance_977); + $com$bapis$bilibili$app$dynamic$v2.KLiveInfo = KLiveInfo; + defineProp($com$bapis$bilibili$app$dynamic$v2.KLiveInfo, 'Companion', Companion_getInstance_978); + $com$bapis$bilibili$app$dynamic$v2.KModuleAuthorBadgeButton = KModuleAuthorBadgeButton; + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleAuthorBadgeButton, 'Companion', Companion_getInstance_979); + $com$bapis$bilibili$app$dynamic$v2.KRelation = KRelation_1; + defineProp($com$bapis$bilibili$app$dynamic$v2.KRelation, 'Companion', Companion_getInstance_980); + $com$bapis$bilibili$app$dynamic$v2.KWeight = KWeight; + defineProp($com$bapis$bilibili$app$dynamic$v2.KWeight, 'Companion', Companion_getInstance_981); + $com$bapis$bilibili$app$dynamic$v2.KWeightItem = KWeightItem; + $com$bapis$bilibili$app$dynamic$v2.KWeightItem.KItem = KItem_4; + defineProp($com$bapis$bilibili$app$dynamic$v2.KWeightItem, 'KButton', KButton_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KWeightItem, 'KDislike', KDislike_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KWeightItem, 'Companion', Companion_getInstance_982); + $com$bapis$bilibili$app$dynamic$v2.KWeightDislike = KWeightDislike; + defineProp($com$bapis$bilibili$app$dynamic$v2.KWeightDislike, 'Companion', Companion_getInstance_983); + $com$bapis$bilibili$app$dynamic$v2.KWeightButton = KWeightButton; + defineProp($com$bapis$bilibili$app$dynamic$v2.KWeightButton, 'Companion', Companion_getInstance_984); + $com$bapis$bilibili$app$dynamic$v2.KThreePointItem = KThreePointItem; + $com$bapis$bilibili$app$dynamic$v2.KThreePointItem.KItem = KItem_5; + defineProp($com$bapis$bilibili$app$dynamic$v2.KThreePointItem, 'KDefault', KDefault_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KThreePointItem, 'KAutoPlayer', KAutoPlayer_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KThreePointItem, 'KShare', KShare_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KThreePointItem, 'KAttention', KAttention_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KThreePointItem, 'KWait', KWait_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KThreePointItem, 'KDislike', KDislike_getInstance_0); + defineProp($com$bapis$bilibili$app$dynamic$v2.KThreePointItem, 'KFavorite', KFavorite_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KThreePointItem, 'KTop', KTop_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KThreePointItem, 'KComment', KComment_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KThreePointItem, 'KHide', KHide_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KThreePointItem, 'KTopicIrrelevant', KTopicIrrelevant_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KThreePointItem, 'KDynEdit', KDynEdit_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KThreePointItem, 'KCoin', KCoin_getInstance_0); + defineProp($com$bapis$bilibili$app$dynamic$v2.KThreePointItem, 'Companion', Companion_getInstance_985); + $com$bapis$bilibili$app$dynamic$v2.KThreePointDefault = KThreePointDefault; + defineProp($com$bapis$bilibili$app$dynamic$v2.KThreePointDefault, 'Companion', Companion_getInstance_986); + $com$bapis$bilibili$app$dynamic$v2.KThreePointDefaultToast = KThreePointDefaultToast; + defineProp($com$bapis$bilibili$app$dynamic$v2.KThreePointDefaultToast, 'Companion', Companion_getInstance_987); + $com$bapis$bilibili$app$dynamic$v2.KThreePointAutoPlay = KThreePointAutoPlay; + defineProp($com$bapis$bilibili$app$dynamic$v2.KThreePointAutoPlay, 'Companion', Companion_getInstance_988); + $com$bapis$bilibili$app$dynamic$v2.KThreePointShare = KThreePointShare; + defineProp($com$bapis$bilibili$app$dynamic$v2.KThreePointShare, 'Companion', Companion_getInstance_989); + $com$bapis$bilibili$app$dynamic$v2.KShareReserve = KShareReserve; + defineProp($com$bapis$bilibili$app$dynamic$v2.KShareReserve, 'Companion', Companion_getInstance_990); + $com$bapis$bilibili$app$dynamic$v2.KThreePointShareChannel = KThreePointShareChannel; + defineProp($com$bapis$bilibili$app$dynamic$v2.KThreePointShareChannel, 'Companion', Companion_getInstance_991); + $com$bapis$bilibili$app$dynamic$v2.KThreePointAttention = KThreePointAttention; + defineProp($com$bapis$bilibili$app$dynamic$v2.KThreePointAttention, 'Companion', Companion_getInstance_992); + $com$bapis$bilibili$app$dynamic$v2.KThreePointWait = KThreePointWait; + defineProp($com$bapis$bilibili$app$dynamic$v2.KThreePointWait, 'Companion', Companion_getInstance_993); + $com$bapis$bilibili$app$dynamic$v2.KThreePointDislike = KThreePointDislike; + defineProp($com$bapis$bilibili$app$dynamic$v2.KThreePointDislike, 'Companion', Companion_getInstance_994); + $com$bapis$bilibili$app$dynamic$v2.KThreePointFavorite = KThreePointFavorite; + defineProp($com$bapis$bilibili$app$dynamic$v2.KThreePointFavorite, 'Companion', Companion_getInstance_995); + $com$bapis$bilibili$app$dynamic$v2.KThreePointTop = KThreePointTop; + defineProp($com$bapis$bilibili$app$dynamic$v2.KThreePointTop, 'Companion', Companion_getInstance_996); + $com$bapis$bilibili$app$dynamic$v2.KThreePointTopicIrrelevant = KThreePointTopicIrrelevant; + defineProp($com$bapis$bilibili$app$dynamic$v2.KThreePointTopicIrrelevant, 'Companion', Companion_getInstance_997); + $com$bapis$bilibili$app$dynamic$v2.KThreePointDynEdit = KThreePointDynEdit; + defineProp($com$bapis$bilibili$app$dynamic$v2.KThreePointDynEdit, 'Companion', Companion_getInstance_998); + $com$bapis$bilibili$app$dynamic$v2.KThreePointDynCoin = KThreePointDynCoin; + defineProp($com$bapis$bilibili$app$dynamic$v2.KThreePointDynCoin, 'Companion', Companion_getInstance_999); + $com$bapis$bilibili$app$dynamic$v2.KThreePointComment = KThreePointComment; + defineProp($com$bapis$bilibili$app$dynamic$v2.KThreePointComment, 'Companion', Companion_getInstance_1000); + $com$bapis$bilibili$app$dynamic$v2.KCommentDetail = KCommentDetail; + defineProp($com$bapis$bilibili$app$dynamic$v2.KCommentDetail, 'Companion', Companion_getInstance_1001); + $com$bapis$bilibili$app$dynamic$v2.KThreePointHide = KThreePointHide; + defineProp($com$bapis$bilibili$app$dynamic$v2.KThreePointHide, 'Companion', Companion_getInstance_1002); + $com$bapis$bilibili$app$dynamic$v2.KThreePointHideInteractive = KThreePointHideInteractive; + defineProp($com$bapis$bilibili$app$dynamic$v2.KThreePointHideInteractive, 'Companion', Companion_getInstance_1003); + $com$bapis$bilibili$app$dynamic$v2.KModuleDispute = KModuleDispute_0; + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleDispute, 'Companion', Companion_getInstance_1004); + $com$bapis$bilibili$app$dynamic$v2.KModuleDesc = KModuleDesc_0; + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleDesc, 'Companion', Companion_getInstance_1005); + $com$bapis$bilibili$app$dynamic$v2.KModuleDynamic = KModuleDynamic_0; + $com$bapis$bilibili$app$dynamic$v2.KModuleDynamic.KModuleItem = KModuleItem_0; + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleDynamic, 'KDynArchive', KDynArchive_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleDynamic, 'KDynPgc', KDynPgc_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleDynamic, 'KDynCourSeason', KDynCourSeason_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleDynamic, 'KDynCourBatch', KDynCourBatch_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleDynamic, 'KDynForward', KDynForward_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleDynamic, 'KDynDraw', KDynDraw_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleDynamic, 'KDynArticle', KDynArticle_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleDynamic, 'KDynMusic', KDynMusic_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleDynamic, 'KDynCommon', KDynCommon_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleDynamic, 'KDynCommonLive', KDynCommonLive_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleDynamic, 'KDynMedialist', KDynMedialist_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleDynamic, 'KDynApplet', KDynApplet_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleDynamic, 'KDynSubscription', KDynSubscription_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleDynamic, 'KDynLiveRcmd', KDynLiveRcmd_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleDynamic, 'KDynUgcSeason', KDynUgcSeason_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleDynamic, 'KDynSubscriptionNew', KDynSubscriptionNew_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleDynamic, 'KDynCourBatchUp', KDynCourBatchUp_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleDynamic, 'KDynTopicSet', KDynTopicSet_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleDynamic, 'Companion', Companion_getInstance_1006); + $com$bapis$bilibili$app$dynamic$v2.KMdlDynForward = KMdlDynForward; + defineProp($com$bapis$bilibili$app$dynamic$v2.KMdlDynForward, 'Companion', Companion_getInstance_1007); + $com$bapis$bilibili$app$dynamic$v2.KModuleLikeUser = KModuleLikeUser_0; + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleLikeUser, 'Companion', Companion_getInstance_1008); + $com$bapis$bilibili$app$dynamic$v2.KLikeUser = KLikeUser; + defineProp($com$bapis$bilibili$app$dynamic$v2.KLikeUser, 'Companion', Companion_getInstance_1009); + $com$bapis$bilibili$app$dynamic$v2.KModuleExtend = KModuleExtend_0; + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleExtend, 'Companion', Companion_getInstance_1010); + $com$bapis$bilibili$app$dynamic$v2.KModuleExtendItem = KModuleExtendItem; + $com$bapis$bilibili$app$dynamic$v2.KModuleExtendItem.KExtend = KExtend_2; + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleExtendItem, 'KExtInfoTopic', KExtInfoTopic_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleExtendItem, 'KExtInfoLbs', KExtInfoLbs_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleExtendItem, 'KExtInfoHot', KExtInfoHot_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleExtendItem, 'KExtInfoGame', KExtInfoGame_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleExtendItem, 'KExtInfoCommon', KExtInfoCommon_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleExtendItem, 'KExtInfoOgv', KExtInfoOgv_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleExtendItem, 'Companion', Companion_getInstance_1011); + $com$bapis$bilibili$app$dynamic$v2.KExtInfoTopic = KExtInfoTopic_0; + defineProp($com$bapis$bilibili$app$dynamic$v2.KExtInfoTopic, 'Companion', Companion_getInstance_1012); + $com$bapis$bilibili$app$dynamic$v2.KExtInfoLBS = KExtInfoLBS; + defineProp($com$bapis$bilibili$app$dynamic$v2.KExtInfoLBS, 'Companion', Companion_getInstance_1013); + $com$bapis$bilibili$app$dynamic$v2.KExtInfoHot = KExtInfoHot_0; + defineProp($com$bapis$bilibili$app$dynamic$v2.KExtInfoHot, 'Companion', Companion_getInstance_1014); + $com$bapis$bilibili$app$dynamic$v2.KExtInfoGame = KExtInfoGame_0; + defineProp($com$bapis$bilibili$app$dynamic$v2.KExtInfoGame, 'Companion', Companion_getInstance_1015); + $com$bapis$bilibili$app$dynamic$v2.KExtInfoCommon = KExtInfoCommon_0; + defineProp($com$bapis$bilibili$app$dynamic$v2.KExtInfoCommon, 'Companion', Companion_getInstance_1016); + $com$bapis$bilibili$app$dynamic$v2.KExtInfoOGV = KExtInfoOGV; + defineProp($com$bapis$bilibili$app$dynamic$v2.KExtInfoOGV, 'Companion', Companion_getInstance_1017); + $com$bapis$bilibili$app$dynamic$v2.KInfoOGV = KInfoOGV; + defineProp($com$bapis$bilibili$app$dynamic$v2.KInfoOGV, 'Companion', Companion_getInstance_1018); + $com$bapis$bilibili$app$dynamic$v2.KModuleStat = KModuleStat_0; + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleStat, 'Companion', Companion_getInstance_1019); + $com$bapis$bilibili$app$dynamic$v2.KLikeInfo = KLikeInfo; + defineProp($com$bapis$bilibili$app$dynamic$v2.KLikeInfo, 'Companion', Companion_getInstance_1020); + $com$bapis$bilibili$app$dynamic$v2.KLikeAnimation = KLikeAnimation; + defineProp($com$bapis$bilibili$app$dynamic$v2.KLikeAnimation, 'Companion', Companion_getInstance_1021); + $com$bapis$bilibili$app$dynamic$v2.KModuleFold = KModuleFold_0; + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleFold, 'Companion', Companion_getInstance_1022); + $com$bapis$bilibili$app$dynamic$v2.KTopicMergedResource = KTopicMergedResource; + defineProp($com$bapis$bilibili$app$dynamic$v2.KTopicMergedResource, 'Companion', Companion_getInstance_1023); + $com$bapis$bilibili$app$dynamic$v2.KModuleComment = KModuleComment_0; + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleComment, 'Companion', Companion_getInstance_1024); + $com$bapis$bilibili$app$dynamic$v2.KCmtShowItem = KCmtShowItem; + defineProp($com$bapis$bilibili$app$dynamic$v2.KCmtShowItem, 'Companion', Companion_getInstance_1025); + $com$bapis$bilibili$app$dynamic$v2.KModuleInteraction = KModuleInteraction_0; + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleInteraction, 'Companion', Companion_getInstance_1026); + $com$bapis$bilibili$app$dynamic$v2.KInteractionItem = KInteractionItem; + $com$bapis$bilibili$app$dynamic$v2.KInteractionItem.KExtendClickParamEntry = KExtendClickParamEntry; + defineProp($com$bapis$bilibili$app$dynamic$v2.KInteractionItem.KExtendClickParamEntry, 'Companion', Companion_getInstance_1027); + defineProp($com$bapis$bilibili$app$dynamic$v2.KInteractionItem, 'Companion', Companion_getInstance_1028); + $com$bapis$bilibili$app$dynamic$v2.KInteractionFace = KInteractionFace; + defineProp($com$bapis$bilibili$app$dynamic$v2.KInteractionFace, 'Companion', Companion_getInstance_1029); + $com$bapis$bilibili$app$dynamic$v2.KInteractionStat = KInteractionStat; + defineProp($com$bapis$bilibili$app$dynamic$v2.KInteractionStat, 'Companion', Companion_getInstance_1030); + $com$bapis$bilibili$app$dynamic$v2.KModuleAuthorForward = KModuleAuthorForward_0; + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleAuthorForward, 'Companion', Companion_getInstance_1031); + $com$bapis$bilibili$app$dynamic$v2.KModuleAuthorForwardTitle = KModuleAuthorForwardTitle; + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleAuthorForwardTitle, 'Companion', Companion_getInstance_1032); + $com$bapis$bilibili$app$dynamic$v2.KModuleAd = KModuleAd_0; + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleAd, 'Companion', Companion_getInstance_1033); + $com$bapis$bilibili$app$dynamic$v2.KModuleBanner = KModuleBanner_0; + $com$bapis$bilibili$app$dynamic$v2.KModuleBanner.KItem = KItem_6; + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleBanner, 'KUser', KUser_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleBanner, 'Companion', Companion_getInstance_1034); + $com$bapis$bilibili$app$dynamic$v2.KModuleBannerUser = KModuleBannerUser; + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleBannerUser, 'Companion', Companion_getInstance_1035); + $com$bapis$bilibili$app$dynamic$v2.KModuleBannerUserItem = KModuleBannerUserItem; + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleBannerUserItem, 'Companion', Companion_getInstance_1036); + $com$bapis$bilibili$app$dynamic$v2.KModuleItemNull = KModuleItemNull_0; + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleItemNull, 'Companion', Companion_getInstance_1037); + $com$bapis$bilibili$app$dynamic$v2.KModuleShareInfo = KModuleShareInfo_0; + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleShareInfo, 'Companion', Companion_getInstance_1038); + $com$bapis$bilibili$app$dynamic$v2.KShareChannel = KShareChannel; + defineProp($com$bapis$bilibili$app$dynamic$v2.KShareChannel, 'Companion', Companion_getInstance_1039); + $com$bapis$bilibili$app$dynamic$v2.KModuleRecommend = KModuleRecommend_0; + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleRecommend, 'Companion', Companion_getInstance_1040); + $com$bapis$bilibili$app$dynamic$v2.KModuleTop = KModuleTop_0; + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleTop, 'Companion', Companion_getInstance_1041); + $com$bapis$bilibili$app$dynamic$v2.KModuleButtom = KModuleButtom_0; + $com$bapis$bilibili$app$dynamic$v2.KModuleButtom.KInteractionIcon = KInteractionIcon; + $com$bapis$bilibili$app$dynamic$v2.KModuleButtom.KInteractionIcon.values = values_113; + $com$bapis$bilibili$app$dynamic$v2.KModuleButtom.KInteractionIcon.valueOf = valueOf_113; + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleButtom.KInteractionIcon, 'ICON_INVALID', KInteractionIcon_ICON_INVALID_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleButtom.KInteractionIcon, 'ICON_FORWARD', KInteractionIcon_ICON_FORWARD_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleButtom.KInteractionIcon, 'ICON_COMMENT', KInteractionIcon_ICON_COMMENT_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleButtom.KInteractionIcon, 'ICON_FAVORITE', KInteractionIcon_ICON_FAVORITE_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleButtom.KInteractionIcon, 'ICON_LIKE', KInteractionIcon_ICON_LIKE_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleButtom.KInteractionIcon, 'UNRECOGNIZED', KInteractionIcon_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleButtom.KInteractionIcon, 'Companion', Companion_getInstance_1042); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleButtom, 'Companion', Companion_getInstance_1043); + $com$bapis$bilibili$app$dynamic$v2.KModuleStory = KModuleStory_0; + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleStory, 'Companion', Companion_getInstance_1044); + $com$bapis$bilibili$app$dynamic$v2.KStoryItem = KStoryItem; + $com$bapis$bilibili$app$dynamic$v2.KStoryItem.KRcmdItem = KRcmdItem_2; + defineProp($com$bapis$bilibili$app$dynamic$v2.KStoryItem, 'KStoryArchive', KStoryArchive_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KStoryItem, 'Companion', Companion_getInstance_1045); + $com$bapis$bilibili$app$dynamic$v2.KStoryArchive = KStoryArchive_0; + defineProp($com$bapis$bilibili$app$dynamic$v2.KStoryArchive, 'Companion', Companion_getInstance_1046); + $com$bapis$bilibili$app$dynamic$v2.KModuleTopic = KModuleTopic_0; + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleTopic, 'Companion', Companion_getInstance_1047); + $com$bapis$bilibili$app$dynamic$v2.KModuleTopicDetailsExt = KModuleTopicDetailsExt_0; + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleTopicDetailsExt, 'Companion', Companion_getInstance_1048); + $com$bapis$bilibili$app$dynamic$v2.KModuleTopTag = KModuleTopTag_0; + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleTopTag, 'Companion', Companion_getInstance_1049); + $com$bapis$bilibili$app$dynamic$v2.KModuleTopicBrief = KModuleTopicBrief_0; + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleTopicBrief, 'Companion', Companion_getInstance_1050); + $com$bapis$bilibili$app$dynamic$v2.KModuleTitle = KModuleTitle_0; + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleTitle, 'Companion', Companion_getInstance_1051); + $com$bapis$bilibili$app$dynamic$v2.KModuleButton = KModuleButton_0; + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleButton, 'Companion', Companion_getInstance_1052); + $com$bapis$bilibili$app$dynamic$v2.KModuleNotice = KModuleNotice_0; + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleNotice, 'Companion', Companion_getInstance_1053); + $com$bapis$bilibili$app$dynamic$v2.KModuleOpusSummary = KModuleOpusSummary_0; + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleOpusSummary, 'Companion', Companion_getInstance_1054); + $com$bapis$bilibili$app$dynamic$v2.KModuleBlocked = KModuleBlocked_0; + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleBlocked, 'Companion', Companion_getInstance_1055); + $com$bapis$bilibili$app$dynamic$v2.KImageSet = KImageSet; + defineProp($com$bapis$bilibili$app$dynamic$v2.KImageSet, 'Companion', Companion_getInstance_1056); + $com$bapis$bilibili$app$dynamic$v2.KModuleTextNotice = KModuleTextNotice_0; + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleTextNotice, 'Companion', Companion_getInstance_1057); + $com$bapis$bilibili$app$dynamic$v2.KModuleOnetimeNotice = KModuleOnetimeNotice_0; + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleOnetimeNotice, 'Companion', Companion_getInstance_1058); + $com$bapis$bilibili$app$dynamic$v2.values$factory = values$factory_94; + $com$bapis$bilibili$app$dynamic$v2.values$factory = values$factory_95; + $com$bapis$bilibili$app$dynamic$v2.values$factory = values$factory_96; + $com$bapis$bilibili$app$dynamic$v2.values$factory = values$factory_97; + $com$bapis$bilibili$app$dynamic$v2.values$factory = values$factory_98; + $com$bapis$bilibili$app$dynamic$v2.values$factory = values$factory_99; + $com$bapis$bilibili$app$dynamic$v2.values$factory = values$factory_100; + $com$bapis$bilibili$app$dynamic$v2.values$factory = values$factory_101; + $com$bapis$bilibili$app$dynamic$v2.values$factory = values$factory_102; + $com$bapis$bilibili$app$dynamic$v2.values$factory = values$factory_103; + $com$bapis$bilibili$app$dynamic$v2.values$factory = values$factory_104; + $com$bapis$bilibili$app$dynamic$v2.values$factory = values$factory_105; + $com$bapis$bilibili$app$dynamic$v2.values$factory = values$factory_106; + $com$bapis$bilibili$app$dynamic$v2.values$factory = values$factory_107; + $com$bapis$bilibili$app$dynamic$v2.values$factory = values$factory_108; + $com$bapis$bilibili$app$dynamic$v2.values$factory = values$factory_109; + $com$bapis$bilibili$app$dynamic$v2.values$factory = values$factory_110; + $com$bapis$bilibili$app$dynamic$v2.values$factory = values$factory_111; + $com$bapis$bilibili$app$dynamic$v2.values$factory = values$factory_112; + $com$bapis$bilibili$app$dynamic$v2.moduleItemNumber$factory = moduleItemNumber$factory; + $com$bapis$bilibili$app$dynamic$v2.moduleItemValues$factory = moduleItemValues$factory; + $com$bapis$bilibili$app$dynamic$v2.itemNumber$factory = itemNumber$factory_1; + $com$bapis$bilibili$app$dynamic$v2.itemValues$factory = itemValues$factory_1; + $com$bapis$bilibili$app$dynamic$v2.itemNumber$factory = itemNumber$factory_2; + $com$bapis$bilibili$app$dynamic$v2.itemValues$factory = itemValues$factory_2; + $com$bapis$bilibili$app$dynamic$v2.moduleItemNumber$factory = moduleItemNumber$factory_0; + $com$bapis$bilibili$app$dynamic$v2.moduleItemValues$factory = moduleItemValues$factory_0; + $com$bapis$bilibili$app$dynamic$v2.extendNumber$factory = extendNumber$factory_1; + $com$bapis$bilibili$app$dynamic$v2.extendValues$factory = extendValues$factory_1; + $com$bapis$bilibili$app$dynamic$v2.itemNumber$factory = itemNumber$factory_3; + $com$bapis$bilibili$app$dynamic$v2.itemValues$factory = itemValues$factory_3; + $com$bapis$bilibili$app$dynamic$v2.values$factory = values$factory_113; + $com$bapis$bilibili$app$dynamic$v2.rcmdItemNumber$factory = rcmdItemNumber$factory_1; + $com$bapis$bilibili$app$dynamic$v2.rcmdItemValues$factory = rcmdItemValues$factory_1; + var $com = _.com || (_.com = {}); + var $com$bapis = $com.bapis || ($com.bapis = {}); + var $com$bapis$bilibili = $com$bapis.bilibili || ($com$bapis.bilibili = {}); + var $com$bapis$bilibili$app = $com$bapis$bilibili.app || ($com$bapis$bilibili.app = {}); + var $com$bapis$bilibili$app$dynamic = $com$bapis$bilibili$app.dynamic || ($com$bapis$bilibili$app.dynamic = {}); + var $com$bapis$bilibili$app$dynamic$v2 = $com$bapis$bilibili$app$dynamic.v2 || ($com$bapis$bilibili$app$dynamic.v2 = {}); + $com$bapis$bilibili$app$dynamic$v2.KMediaType = KMediaType; + $com$bapis$bilibili$app$dynamic$v2.KMediaType.values = values_114; + $com$bapis$bilibili$app$dynamic$v2.KMediaType.valueOf = valueOf_114; + defineProp($com$bapis$bilibili$app$dynamic$v2.KMediaType, 'NONE', KMediaType_NONE_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KMediaType, 'UGC', KMediaType_UGC_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KMediaType, 'PGC', KMediaType_PGC_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KMediaType, 'LIVE', KMediaType_LIVE_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KMediaType, 'VCS', KMediaType_VCS_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KMediaType, 'UNRECOGNIZED', KMediaType_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KMediaType, 'Companion', Companion_getInstance_1059); + $com$bapis$bilibili$app$dynamic$v2.KReserveType = KReserveType; + $com$bapis$bilibili$app$dynamic$v2.KReserveType.values = values_115; + $com$bapis$bilibili$app$dynamic$v2.KReserveType.valueOf = valueOf_115; + defineProp($com$bapis$bilibili$app$dynamic$v2.KReserveType, 'RESERVE_NONE', KReserveType_RESERVE_NONE_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KReserveType, 'RESERVE_RECALL', KReserveType_RESERVE_RECALL_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KReserveType, 'UNRECOGNIZED', KReserveType_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KReserveType, 'Companion', Companion_getInstance_1060); + $com$bapis$bilibili$app$dynamic$v2.KIconResLocal = KIconResLocal; + $com$bapis$bilibili$app$dynamic$v2.KIconResLocal.values = values_116; + $com$bapis$bilibili$app$dynamic$v2.KIconResLocal.valueOf = valueOf_116; + defineProp($com$bapis$bilibili$app$dynamic$v2.KIconResLocal, 'NONE', KIconResLocal_NONE_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KIconResLocal, 'LIVE', KIconResLocal_LIVE_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KIconResLocal, 'UNRECOGNIZED', KIconResLocal_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KIconResLocal, 'Companion', Companion_getInstance_1061); + $com$bapis$bilibili$app$dynamic$v2.KVideoType = KVideoType; + $com$bapis$bilibili$app$dynamic$v2.KVideoType.values = values_117; + $com$bapis$bilibili$app$dynamic$v2.KVideoType.valueOf = valueOf_117; + defineProp($com$bapis$bilibili$app$dynamic$v2.KVideoType, 'GENERAL', KVideoType_GENERAL_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KVideoType, 'DYNAMIC', KVideoType_DYNAMIC_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KVideoType, 'PLAYBACK', KVideoType_PLAYBACK_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KVideoType, 'STORY', KVideoType_STORY_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KVideoType, 'UNRECOGNIZED', KVideoType_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KVideoType, 'Companion', Companion_getInstance_1062); + $com$bapis$bilibili$app$dynamic$v2.KVideoSubType = KVideoSubType; + $com$bapis$bilibili$app$dynamic$v2.KVideoSubType.values = values_118; + $com$bapis$bilibili$app$dynamic$v2.KVideoSubType.valueOf = valueOf_118; + defineProp($com$bapis$bilibili$app$dynamic$v2.KVideoSubType, 'NONE', KVideoSubType_NONE_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KVideoSubType, 'BANGUMI', KVideoSubType_BANGUMI_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KVideoSubType, 'MOVIE', KVideoSubType_MOVIE_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KVideoSubType, 'DOCUMENTARY', KVideoSubType_DOCUMENTARY_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KVideoSubType, 'DOMESTIC', KVideoSubType_DOMESTIC_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KVideoSubType, 'TELEPLAY', KVideoSubType_TELEPLAY_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KVideoSubType, 'UNRECOGNIZED', KVideoSubType_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KVideoSubType, 'Companion', Companion_getInstance_1063); + $com$bapis$bilibili$app$dynamic$v2.KMdlDynDrawTagType = KMdlDynDrawTagType; + $com$bapis$bilibili$app$dynamic$v2.KMdlDynDrawTagType.values = values_119; + $com$bapis$bilibili$app$dynamic$v2.KMdlDynDrawTagType.valueOf = valueOf_119; + defineProp($com$bapis$bilibili$app$dynamic$v2.KMdlDynDrawTagType, 'MDL_DRAW_TAG_NONE', KMdlDynDrawTagType_MDL_DRAW_TAG_NONE_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KMdlDynDrawTagType, 'MDL_DRAW_TAG_COMMON', KMdlDynDrawTagType_MDL_DRAW_TAG_COMMON_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KMdlDynDrawTagType, 'MDL_DRAW_TAG_GOODS', KMdlDynDrawTagType_MDL_DRAW_TAG_GOODS_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KMdlDynDrawTagType, 'MDL_DRAW_TAG_USER', KMdlDynDrawTagType_MDL_DRAW_TAG_USER_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KMdlDynDrawTagType, 'MDL_DRAW_TAG_TOPIC', KMdlDynDrawTagType_MDL_DRAW_TAG_TOPIC_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KMdlDynDrawTagType, 'MDL_DRAW_TAG_LBS', KMdlDynDrawTagType_MDL_DRAW_TAG_LBS_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KMdlDynDrawTagType, 'UNRECOGNIZED', KMdlDynDrawTagType_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KMdlDynDrawTagType, 'Companion', Companion_getInstance_1064); + $com$bapis$bilibili$app$dynamic$v2.KAddButtonType = KAddButtonType; + $com$bapis$bilibili$app$dynamic$v2.KAddButtonType.values = values_120; + $com$bapis$bilibili$app$dynamic$v2.KAddButtonType.valueOf = valueOf_120; + defineProp($com$bapis$bilibili$app$dynamic$v2.KAddButtonType, 'BT_NONE', KAddButtonType_BT_NONE_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KAddButtonType, 'BT_JUMP', KAddButtonType_BT_JUMP_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KAddButtonType, 'BT_BUTTON', KAddButtonType_BT_BUTTON_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KAddButtonType, 'UNRECOGNIZED', KAddButtonType_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KAddButtonType, 'Companion', Companion_getInstance_1065); + $com$bapis$bilibili$app$dynamic$v2.KAdditionalButtonStatus = KAdditionalButtonStatus; + $com$bapis$bilibili$app$dynamic$v2.KAdditionalButtonStatus.values = values_121; + $com$bapis$bilibili$app$dynamic$v2.KAdditionalButtonStatus.valueOf = valueOf_121; + defineProp($com$bapis$bilibili$app$dynamic$v2.KAdditionalButtonStatus, 'NONE', KAdditionalButtonStatus_NONE_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KAdditionalButtonStatus, 'UNCHECK', KAdditionalButtonStatus_UNCHECK_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KAdditionalButtonStatus, 'CHECK', KAdditionalButtonStatus_CHECK_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KAdditionalButtonStatus, 'UNRECOGNIZED', KAdditionalButtonStatus_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KAdditionalButtonStatus, 'Companion', Companion_getInstance_1066); + $com$bapis$bilibili$app$dynamic$v2.KAdditionalButtonClickType = KAdditionalButtonClickType; + $com$bapis$bilibili$app$dynamic$v2.KAdditionalButtonClickType.values = values_122; + $com$bapis$bilibili$app$dynamic$v2.KAdditionalButtonClickType.valueOf = valueOf_122; + defineProp($com$bapis$bilibili$app$dynamic$v2.KAdditionalButtonClickType, 'CLICK_NONE', KAdditionalButtonClickType_CLICK_NONE_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KAdditionalButtonClickType, 'CLICK_UP', KAdditionalButtonClickType_CLICK_UP_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KAdditionalButtonClickType, 'UNRECOGNIZED', KAdditionalButtonClickType_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KAdditionalButtonClickType, 'Companion', Companion_getInstance_1067); + $com$bapis$bilibili$app$dynamic$v2.KAdditionalShareShowType = KAdditionalShareShowType; + $com$bapis$bilibili$app$dynamic$v2.KAdditionalShareShowType.values = values_123; + $com$bapis$bilibili$app$dynamic$v2.KAdditionalShareShowType.valueOf = valueOf_123; + defineProp($com$bapis$bilibili$app$dynamic$v2.KAdditionalShareShowType, 'ST_NONE', KAdditionalShareShowType_ST_NONE_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KAdditionalShareShowType, 'ST_SHOW', KAdditionalShareShowType_ST_SHOW_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KAdditionalShareShowType, 'UNRECOGNIZED', KAdditionalShareShowType_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KAdditionalShareShowType, 'Companion', Companion_getInstance_1068); + $com$bapis$bilibili$app$dynamic$v2.KDisableState = KDisableState; + $com$bapis$bilibili$app$dynamic$v2.KDisableState.values = values_124; + $com$bapis$bilibili$app$dynamic$v2.KDisableState.valueOf = valueOf_124; + defineProp($com$bapis$bilibili$app$dynamic$v2.KDisableState, 'HIGHLIGHT', KDisableState_HIGHLIGHT_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KDisableState, 'GARY', KDisableState_GARY_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KDisableState, 'UNRECOGNIZED', KDisableState_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KDisableState, 'Companion', Companion_getInstance_1069); + $com$bapis$bilibili$app$dynamic$v2.KAddButtonBgStyle = KAddButtonBgStyle; + $com$bapis$bilibili$app$dynamic$v2.KAddButtonBgStyle.values = values_125; + $com$bapis$bilibili$app$dynamic$v2.KAddButtonBgStyle.valueOf = valueOf_125; + defineProp($com$bapis$bilibili$app$dynamic$v2.KAddButtonBgStyle, 'FILL', KAddButtonBgStyle_FILL_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KAddButtonBgStyle, 'STROKE', KAddButtonBgStyle_STROKE_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KAddButtonBgStyle, 'GRAY', KAddButtonBgStyle_GRAY_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KAddButtonBgStyle, 'UNRECOGNIZED', KAddButtonBgStyle_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KAddButtonBgStyle, 'Companion', Companion_getInstance_1070); + $com$bapis$bilibili$app$dynamic$v2.KMdlDynCommonType = KMdlDynCommonType; + $com$bapis$bilibili$app$dynamic$v2.KMdlDynCommonType.values = values_126; + $com$bapis$bilibili$app$dynamic$v2.KMdlDynCommonType.valueOf = valueOf_126; + defineProp($com$bapis$bilibili$app$dynamic$v2.KMdlDynCommonType, 'MDL_DYN_COMMON_NONE', KMdlDynCommonType_MDL_DYN_COMMON_NONE_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KMdlDynCommonType, 'MDL_DYN_COMMON_SQUARE', KMdlDynCommonType_MDL_DYN_COMMON_SQUARE_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KMdlDynCommonType, 'MDL_DYN_COMMON_VERTICA', KMdlDynCommonType_MDL_DYN_COMMON_VERTICA_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KMdlDynCommonType, 'UNRECOGNIZED', KMdlDynCommonType_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KMdlDynCommonType, 'Companion', Companion_getInstance_1071); + $com$bapis$bilibili$app$dynamic$v2.KLiveState = KLiveState; + $com$bapis$bilibili$app$dynamic$v2.KLiveState.values = values_127; + $com$bapis$bilibili$app$dynamic$v2.KLiveState.valueOf = valueOf_127; + defineProp($com$bapis$bilibili$app$dynamic$v2.KLiveState, 'LIVE_NONE', KLiveState_LIVE_NONE_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KLiveState, 'LIVE_LIVE', KLiveState_LIVE_LIVE_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KLiveState, 'LIVE_ROTATION', KLiveState_LIVE_ROTATION_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KLiveState, 'UNRECOGNIZED', KLiveState_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KLiveState, 'Companion', Companion_getInstance_1072); + $com$bapis$bilibili$app$dynamic$v2.KMdlDynSubscriptionNewStyle = KMdlDynSubscriptionNewStyle; + $com$bapis$bilibili$app$dynamic$v2.KMdlDynSubscriptionNewStyle.values = values_128; + $com$bapis$bilibili$app$dynamic$v2.KMdlDynSubscriptionNewStyle.valueOf = valueOf_128; + defineProp($com$bapis$bilibili$app$dynamic$v2.KMdlDynSubscriptionNewStyle, 'NONT', KMdlDynSubscriptionNewStyle_NONT_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KMdlDynSubscriptionNewStyle, 'LIVE', KMdlDynSubscriptionNewStyle_LIVE_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KMdlDynSubscriptionNewStyle, 'DRAW', KMdlDynSubscriptionNewStyle_DRAW_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KMdlDynSubscriptionNewStyle, 'UNRECOGNIZED', KMdlDynSubscriptionNewStyle_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KMdlDynSubscriptionNewStyle, 'Companion', Companion_getInstance_1073); + $com$bapis$bilibili$app$dynamic$v2.KRouterAction = KRouterAction; + $com$bapis$bilibili$app$dynamic$v2.KRouterAction.values = values_129; + $com$bapis$bilibili$app$dynamic$v2.KRouterAction.valueOf = valueOf_129; + defineProp($com$bapis$bilibili$app$dynamic$v2.KRouterAction, 'OPEN', KRouterAction_OPEN_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KRouterAction, 'EMBED', KRouterAction_EMBED_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KRouterAction, 'UNRECOGNIZED', KRouterAction_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KRouterAction, 'Companion', Companion_getInstance_1074); + $com$bapis$bilibili$app$dynamic$v2.KAdditionalType = KAdditionalType; + $com$bapis$bilibili$app$dynamic$v2.KAdditionalType.values = values_130; + $com$bapis$bilibili$app$dynamic$v2.KAdditionalType.valueOf = valueOf_130; + defineProp($com$bapis$bilibili$app$dynamic$v2.KAdditionalType, 'ADDITIONAL_NONE', KAdditionalType_ADDITIONAL_NONE_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KAdditionalType, 'PGC', KAdditionalType_PGC_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KAdditionalType, 'GOODS', KAdditionalType_GOODS_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KAdditionalType, 'VOTE', KAdditionalType_VOTE_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KAdditionalType, 'COMMON', KAdditionalType_COMMON_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KAdditionalType, 'ESPORT', KAdditionalType_ESPORT_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KAdditionalType, 'UP_RCMD', KAdditionalType_UP_RCMD_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KAdditionalType, 'UGC', KAdditionalType_UGC_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KAdditionalType, 'UP_RESERVATION', KAdditionalType_UP_RESERVATION_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KAdditionalType, 'ARTICLE', KAdditionalType_ARTICLE_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KAdditionalType, 'LIVE_ROOM', KAdditionalType_LIVE_ROOM_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KAdditionalType, 'MUSIC', KAdditionalType_MUSIC_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KAdditionalType, 'UNRECOGNIZED', KAdditionalType_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KAdditionalType, 'Companion', Companion_getInstance_1075); + $com$bapis$bilibili$app$dynamic$v2.KImageStyle = KImageStyle; + $com$bapis$bilibili$app$dynamic$v2.KImageStyle.values = values_131; + $com$bapis$bilibili$app$dynamic$v2.KImageStyle.valueOf = valueOf_131; + defineProp($com$bapis$bilibili$app$dynamic$v2.KImageStyle, 'ADD_STYLE_VERTICAL', KImageStyle_ADD_STYLE_VERTICAL_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KImageStyle, 'ADD_STYLE_SQUARE', KImageStyle_ADD_STYLE_SQUARE_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KImageStyle, 'UNRECOGNIZED', KImageStyle_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KImageStyle, 'Companion', Companion_getInstance_1076); + $com$bapis$bilibili$app$dynamic$v2.KGoodsJumpType = KGoodsJumpType; + $com$bapis$bilibili$app$dynamic$v2.KGoodsJumpType.values = values_132; + $com$bapis$bilibili$app$dynamic$v2.KGoodsJumpType.valueOf = valueOf_132; + defineProp($com$bapis$bilibili$app$dynamic$v2.KGoodsJumpType, 'GOODS_NONE', KGoodsJumpType_GOODS_NONE_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KGoodsJumpType, 'GOODS_SCHEMA', KGoodsJumpType_GOODS_SCHEMA_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KGoodsJumpType, 'GOODS_URL', KGoodsJumpType_GOODS_URL_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KGoodsJumpType, 'UNRECOGNIZED', KGoodsJumpType_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KGoodsJumpType, 'Companion', Companion_getInstance_1077); + $com$bapis$bilibili$app$dynamic$v2.KEspaceStyle = KEspaceStyle; + $com$bapis$bilibili$app$dynamic$v2.KEspaceStyle.values = values_133; + $com$bapis$bilibili$app$dynamic$v2.KEspaceStyle.valueOf = valueOf_133; + defineProp($com$bapis$bilibili$app$dynamic$v2.KEspaceStyle, 'MOBA', KEspaceStyle_MOBA_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KEspaceStyle, 'UNRECOGNIZED', KEspaceStyle_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KEspaceStyle, 'Companion', Companion_getInstance_1078); + $com$bapis$bilibili$app$dynamic$v2.KHighlightTextStyle = KHighlightTextStyle; + $com$bapis$bilibili$app$dynamic$v2.KHighlightTextStyle.values = values_134; + $com$bapis$bilibili$app$dynamic$v2.KHighlightTextStyle.valueOf = valueOf_134; + defineProp($com$bapis$bilibili$app$dynamic$v2.KHighlightTextStyle, 'STYLE_NONE', KHighlightTextStyle_STYLE_NONE_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KHighlightTextStyle, 'STYLE_HIGHLIGHT', KHighlightTextStyle_STYLE_HIGHLIGHT_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KHighlightTextStyle, 'UNRECOGNIZED', KHighlightTextStyle_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KHighlightTextStyle, 'Companion', Companion_getInstance_1079); + $com$bapis$bilibili$app$dynamic$v2.KReserveRelationLotteryType = KReserveRelationLotteryType; + $com$bapis$bilibili$app$dynamic$v2.KReserveRelationLotteryType.values = values_135; + $com$bapis$bilibili$app$dynamic$v2.KReserveRelationLotteryType.valueOf = valueOf_135; + defineProp($com$bapis$bilibili$app$dynamic$v2.KReserveRelationLotteryType, 'DEFAULT', KReserveRelationLotteryType_DEFAULT_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KReserveRelationLotteryType, 'CRON', KReserveRelationLotteryType_CRON_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KReserveRelationLotteryType, 'UNRECOGNIZED', KReserveRelationLotteryType_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KReserveRelationLotteryType, 'Companion', Companion_getInstance_1080); + $com$bapis$bilibili$app$dynamic$v2.KCoverIcon = KCoverIcon; + $com$bapis$bilibili$app$dynamic$v2.KCoverIcon.values = values_136; + $com$bapis$bilibili$app$dynamic$v2.KCoverIcon.valueOf = valueOf_136; + defineProp($com$bapis$bilibili$app$dynamic$v2.KCoverIcon, 'NONE', KCoverIcon_NONE_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KCoverIcon, 'PLAY', KCoverIcon_PLAY_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KCoverIcon, 'DANMAKU', KCoverIcon_DANMAKU_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KCoverIcon, 'UP', KCoverIcon_UP_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KCoverIcon, 'VT', KCoverIcon_VT_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KCoverIcon, 'VIEW_CNT', KCoverIcon_VIEW_CNT_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KCoverIcon, 'THUMB_UP', KCoverIcon_THUMB_UP_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KCoverIcon, 'UNRECOGNIZED', KCoverIcon_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KCoverIcon, 'Companion', Companion_getInstance_1081); + $com$bapis$bilibili$app$dynamic$v2.KAdditionVoteType = KAdditionVoteType; + $com$bapis$bilibili$app$dynamic$v2.KAdditionVoteType.values = values_137; + $com$bapis$bilibili$app$dynamic$v2.KAdditionVoteType.valueOf = valueOf_137; + defineProp($com$bapis$bilibili$app$dynamic$v2.KAdditionVoteType, 'NONE', KAdditionVoteType_NONE_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KAdditionVoteType, 'WORD', KAdditionVoteType_WORD_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KAdditionVoteType, 'PIC', KAdditionVoteType_PIC_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KAdditionVoteType, 'DEFAULT', KAdditionVoteType_DEFAULT_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KAdditionVoteType, 'UNRECOGNIZED', KAdditionVoteType_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KAdditionVoteType, 'Companion', Companion_getInstance_1082); + $com$bapis$bilibili$app$dynamic$v2.KAdditionVoteState = KAdditionVoteState; + $com$bapis$bilibili$app$dynamic$v2.KAdditionVoteState.values = values_138; + $com$bapis$bilibili$app$dynamic$v2.KAdditionVoteState.valueOf = valueOf_138; + defineProp($com$bapis$bilibili$app$dynamic$v2.KAdditionVoteState, 'NONE', KAdditionVoteState_NONE_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KAdditionVoteState, 'OPEN', KAdditionVoteState_OPEN_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KAdditionVoteState, 'CLOSE', KAdditionVoteState_CLOSE_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KAdditionVoteState, 'UNRECOGNIZED', KAdditionVoteState_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KAdditionVoteState, 'Companion', Companion_getInstance_1083); + $com$bapis$bilibili$app$dynamic$v2.KMdlDynArchive = KMdlDynArchive; + defineProp($com$bapis$bilibili$app$dynamic$v2.KMdlDynArchive, 'Companion', Companion_getInstance_1084); + $com$bapis$bilibili$app$dynamic$v2.KDimension = KDimension_2; + defineProp($com$bapis$bilibili$app$dynamic$v2.KDimension, 'Companion', Companion_getInstance_1085); + $com$bapis$bilibili$app$dynamic$v2.KVideoBadge = KVideoBadge; + defineProp($com$bapis$bilibili$app$dynamic$v2.KVideoBadge, 'Companion', Companion_getInstance_1086); + $com$bapis$bilibili$app$dynamic$v2.KMdlDynPGC = KMdlDynPGC; + defineProp($com$bapis$bilibili$app$dynamic$v2.KMdlDynPGC, 'Companion', Companion_getInstance_1087); + $com$bapis$bilibili$app$dynamic$v2.KPGCSeason = KPGCSeason; + defineProp($com$bapis$bilibili$app$dynamic$v2.KPGCSeason, 'Companion', Companion_getInstance_1088); + $com$bapis$bilibili$app$dynamic$v2.KMdlDynCourSeason = KMdlDynCourSeason; + defineProp($com$bapis$bilibili$app$dynamic$v2.KMdlDynCourSeason, 'Companion', Companion_getInstance_1089); + $com$bapis$bilibili$app$dynamic$v2.KMdlDynCourBatch = KMdlDynCourBatch; + defineProp($com$bapis$bilibili$app$dynamic$v2.KMdlDynCourBatch, 'Companion', Companion_getInstance_1090); + $com$bapis$bilibili$app$dynamic$v2.KMdlDynDraw = KMdlDynDraw; + defineProp($com$bapis$bilibili$app$dynamic$v2.KMdlDynDraw, 'Companion', Companion_getInstance_1091); + $com$bapis$bilibili$app$dynamic$v2.KMdlDynDrawItem = KMdlDynDrawItem; + defineProp($com$bapis$bilibili$app$dynamic$v2.KMdlDynDrawItem, 'Companion', Companion_getInstance_1092); + $com$bapis$bilibili$app$dynamic$v2.KMdlDynDrawTag = KMdlDynDrawTag; + defineProp($com$bapis$bilibili$app$dynamic$v2.KMdlDynDrawTag, 'Companion', Companion_getInstance_1093); + $com$bapis$bilibili$app$dynamic$v2.KMdlDynDrawTagItem = KMdlDynDrawTagItem; + defineProp($com$bapis$bilibili$app$dynamic$v2.KMdlDynDrawTagItem, 'Companion', Companion_getInstance_1094); + $com$bapis$bilibili$app$dynamic$v2.KMdlDynArticle = KMdlDynArticle; + defineProp($com$bapis$bilibili$app$dynamic$v2.KMdlDynArticle, 'Companion', Companion_getInstance_1095); + $com$bapis$bilibili$app$dynamic$v2.KMdlDynMusic = KMdlDynMusic; + defineProp($com$bapis$bilibili$app$dynamic$v2.KMdlDynMusic, 'Companion', Companion_getInstance_1096); + $com$bapis$bilibili$app$dynamic$v2.KMdlDynCommon = KMdlDynCommon; + defineProp($com$bapis$bilibili$app$dynamic$v2.KMdlDynCommon, 'Companion', Companion_getInstance_1097); + $com$bapis$bilibili$app$dynamic$v2.KAdditionalButton = KAdditionalButton; + defineProp($com$bapis$bilibili$app$dynamic$v2.KAdditionalButton, 'Companion', Companion_getInstance_1098); + $com$bapis$bilibili$app$dynamic$v2.KAdditionalButtonStyle = KAdditionalButtonStyle; + defineProp($com$bapis$bilibili$app$dynamic$v2.KAdditionalButtonStyle, 'Companion', Companion_getInstance_1099); + $com$bapis$bilibili$app$dynamic$v2.KAdditionalButtonShare = KAdditionalButtonShare; + defineProp($com$bapis$bilibili$app$dynamic$v2.KAdditionalButtonShare, 'Companion', Companion_getInstance_1100); + $com$bapis$bilibili$app$dynamic$v2.KAdditionalButtonInteractive = KAdditionalButtonInteractive; + defineProp($com$bapis$bilibili$app$dynamic$v2.KAdditionalButtonInteractive, 'Companion', Companion_getInstance_1101); + $com$bapis$bilibili$app$dynamic$v2.KMdlDynLive = KMdlDynLive; + defineProp($com$bapis$bilibili$app$dynamic$v2.KMdlDynLive, 'Companion', Companion_getInstance_1102); + $com$bapis$bilibili$app$dynamic$v2.KMdlDynMedialist = KMdlDynMedialist; + defineProp($com$bapis$bilibili$app$dynamic$v2.KMdlDynMedialist, 'Companion', Companion_getInstance_1103); + $com$bapis$bilibili$app$dynamic$v2.KMdlDynApplet = KMdlDynApplet; + defineProp($com$bapis$bilibili$app$dynamic$v2.KMdlDynApplet, 'Companion', Companion_getInstance_1104); + $com$bapis$bilibili$app$dynamic$v2.KMdlDynSubscription = KMdlDynSubscription; + defineProp($com$bapis$bilibili$app$dynamic$v2.KMdlDynSubscription, 'Companion', Companion_getInstance_1105); + $com$bapis$bilibili$app$dynamic$v2.KMdlDynLiveRcmd = KMdlDynLiveRcmd; + defineProp($com$bapis$bilibili$app$dynamic$v2.KMdlDynLiveRcmd, 'Companion', Companion_getInstance_1106); + $com$bapis$bilibili$app$dynamic$v2.KLivePendant = KLivePendant; + defineProp($com$bapis$bilibili$app$dynamic$v2.KLivePendant, 'Companion', Companion_getInstance_1107); + $com$bapis$bilibili$app$dynamic$v2.KMdlDynUGCSeason = KMdlDynUGCSeason; + defineProp($com$bapis$bilibili$app$dynamic$v2.KMdlDynUGCSeason, 'Companion', Companion_getInstance_1108); + $com$bapis$bilibili$app$dynamic$v2.KMdlDynSubscriptionNew = KMdlDynSubscriptionNew; + $com$bapis$bilibili$app$dynamic$v2.KMdlDynSubscriptionNew.KItem = KItem_7; + defineProp($com$bapis$bilibili$app$dynamic$v2.KMdlDynSubscriptionNew, 'KDynSubscription', KDynSubscription_getInstance_0); + defineProp($com$bapis$bilibili$app$dynamic$v2.KMdlDynSubscriptionNew, 'KDynLiveRcmd', KDynLiveRcmd_getInstance_0); + defineProp($com$bapis$bilibili$app$dynamic$v2.KMdlDynSubscriptionNew, 'Companion', Companion_getInstance_1109); + $com$bapis$bilibili$app$dynamic$v2.KMdlDynCourUp = KMdlDynCourUp; + defineProp($com$bapis$bilibili$app$dynamic$v2.KMdlDynCourUp, 'Companion', Companion_getInstance_1110); + $com$bapis$bilibili$app$dynamic$v2.KMdlDynTopicSet = KMdlDynTopicSet; + defineProp($com$bapis$bilibili$app$dynamic$v2.KMdlDynTopicSet, 'Companion', Companion_getInstance_1111); + $com$bapis$bilibili$app$dynamic$v2.KTopicItem = KTopicItem_0; + defineProp($com$bapis$bilibili$app$dynamic$v2.KTopicItem, 'Companion', Companion_getInstance_1112); + $com$bapis$bilibili$app$dynamic$v2.KIconButton = KIconButton; + defineProp($com$bapis$bilibili$app$dynamic$v2.KIconButton, 'Companion', Companion_getInstance_1113); + $com$bapis$bilibili$app$dynamic$v2.KModuleAdditional = KModuleAdditional_0; + $com$bapis$bilibili$app$dynamic$v2.KModuleAdditional.KItem = KItem_8; + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleAdditional, 'KPgc', KPgc_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleAdditional, 'KGoods', KGoods_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleAdditional, 'KVote', KVote_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleAdditional, 'KCommon', KCommon_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleAdditional, 'KEsport', KEsport_getInstance_0); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleAdditional, 'KVote2', KVote2_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleAdditional, 'KUgc', KUgc_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleAdditional, 'KUp', KUp_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleAdditional, 'KArticle', KArticle_getInstance_0); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleAdditional, 'KLive', KLive_getInstance_1); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleAdditional, 'KMusic', KMusic_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleAdditional, 'Companion', Companion_getInstance_1114); + $com$bapis$bilibili$app$dynamic$v2.KAdditionalPGC = KAdditionalPGC; + defineProp($com$bapis$bilibili$app$dynamic$v2.KAdditionalPGC, 'Companion', Companion_getInstance_1115); + $com$bapis$bilibili$app$dynamic$v2.KAdditionGoods = KAdditionGoods; + defineProp($com$bapis$bilibili$app$dynamic$v2.KAdditionGoods, 'Companion', Companion_getInstance_1116); + $com$bapis$bilibili$app$dynamic$v2.KGoodsItem = KGoodsItem; + defineProp($com$bapis$bilibili$app$dynamic$v2.KGoodsItem, 'Companion', Companion_getInstance_1117); + $com$bapis$bilibili$app$dynamic$v2.KAdditionVote = KAdditionVote; + defineProp($com$bapis$bilibili$app$dynamic$v2.KAdditionVote, 'Companion', Companion_getInstance_1118); + $com$bapis$bilibili$app$dynamic$v2.KAdditionUgc = KAdditionUgc; + defineProp($com$bapis$bilibili$app$dynamic$v2.KAdditionUgc, 'Companion', Companion_getInstance_1119); + $com$bapis$bilibili$app$dynamic$v2.KAdditionCommon = KAdditionCommon; + defineProp($com$bapis$bilibili$app$dynamic$v2.KAdditionCommon, 'Companion', Companion_getInstance_1120); + $com$bapis$bilibili$app$dynamic$v2.KAdditionEsport = KAdditionEsport; + $com$bapis$bilibili$app$dynamic$v2.KAdditionEsport.KItem = KItem_9; + defineProp($com$bapis$bilibili$app$dynamic$v2.KAdditionEsport, 'KAdditionEsportMoba', KAdditionEsportMoba_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KAdditionEsport, 'Companion', Companion_getInstance_1121); + $com$bapis$bilibili$app$dynamic$v2.KAdditionEsportMoba = KAdditionEsportMoba_0; + defineProp($com$bapis$bilibili$app$dynamic$v2.KAdditionEsportMoba, 'Companion', Companion_getInstance_1122); + $com$bapis$bilibili$app$dynamic$v2.KAdditionEsportMobaStatus = KAdditionEsportMobaStatus; + defineProp($com$bapis$bilibili$app$dynamic$v2.KAdditionEsportMobaStatus, 'Companion', Companion_getInstance_1123); + $com$bapis$bilibili$app$dynamic$v2.KAdditionEsportMobaStatusDesc = KAdditionEsportMobaStatusDesc; + defineProp($com$bapis$bilibili$app$dynamic$v2.KAdditionEsportMobaStatusDesc, 'Companion', Companion_getInstance_1124); + $com$bapis$bilibili$app$dynamic$v2.KMatchTeam = KMatchTeam_0; + defineProp($com$bapis$bilibili$app$dynamic$v2.KMatchTeam, 'Companion', Companion_getInstance_1125); + $com$bapis$bilibili$app$dynamic$v2.KAdditionUP = KAdditionUP; + defineProp($com$bapis$bilibili$app$dynamic$v2.KAdditionUP, 'Companion', Companion_getInstance_1126); + $com$bapis$bilibili$app$dynamic$v2.KAdditionUserInfo = KAdditionUserInfo; + defineProp($com$bapis$bilibili$app$dynamic$v2.KAdditionUserInfo, 'Companion', Companion_getInstance_1127); + $com$bapis$bilibili$app$dynamic$v2.KAdditionalActSkin = KAdditionalActSkin; + defineProp($com$bapis$bilibili$app$dynamic$v2.KAdditionalActSkin, 'Companion', Companion_getInstance_1128); + $com$bapis$bilibili$app$dynamic$v2.KHighlightText = KHighlightText; + defineProp($com$bapis$bilibili$app$dynamic$v2.KHighlightText, 'Companion', Companion_getInstance_1129); + $com$bapis$bilibili$app$dynamic$v2.KAdditionArticle = KAdditionArticle; + defineProp($com$bapis$bilibili$app$dynamic$v2.KAdditionArticle, 'Companion', Companion_getInstance_1130); + $com$bapis$bilibili$app$dynamic$v2.KAdditionLiveRoom = KAdditionLiveRoom; + defineProp($com$bapis$bilibili$app$dynamic$v2.KAdditionLiveRoom, 'Companion', Companion_getInstance_1131); + $com$bapis$bilibili$app$dynamic$v2.KAdditionMusic = KAdditionMusic; + defineProp($com$bapis$bilibili$app$dynamic$v2.KAdditionMusic, 'Companion', Companion_getInstance_1132); + $com$bapis$bilibili$app$dynamic$v2.KCoverIconWithText = KCoverIconWithText; + defineProp($com$bapis$bilibili$app$dynamic$v2.KCoverIconWithText, 'Companion', Companion_getInstance_1133); + $com$bapis$bilibili$app$dynamic$v2.KAdditionVote2 = KAdditionVote2; + $com$bapis$bilibili$app$dynamic$v2.KAdditionVote2.KItem = KItem_10; + defineProp($com$bapis$bilibili$app$dynamic$v2.KAdditionVote2, 'KAdditionVoteWord', KAdditionVoteWord_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KAdditionVote2, 'KAdditionVotePic', KAdditionVotePic_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KAdditionVote2, 'KAdditionVoteDefaule', KAdditionVoteDefaule_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KAdditionVote2, 'Companion', Companion_getInstance_1134); + $com$bapis$bilibili$app$dynamic$v2.KAdditionVoteWord = KAdditionVoteWord_0; + defineProp($com$bapis$bilibili$app$dynamic$v2.KAdditionVoteWord, 'Companion', Companion_getInstance_1135); + $com$bapis$bilibili$app$dynamic$v2.KAdditionVoteWordItem = KAdditionVoteWordItem; + defineProp($com$bapis$bilibili$app$dynamic$v2.KAdditionVoteWordItem, 'Companion', Companion_getInstance_1136); + $com$bapis$bilibili$app$dynamic$v2.KAdditionVotePic = KAdditionVotePic_0; + defineProp($com$bapis$bilibili$app$dynamic$v2.KAdditionVotePic, 'Companion', Companion_getInstance_1137); + $com$bapis$bilibili$app$dynamic$v2.KAdditionVotePicItem = KAdditionVotePicItem; + defineProp($com$bapis$bilibili$app$dynamic$v2.KAdditionVotePicItem, 'Companion', Companion_getInstance_1138); + $com$bapis$bilibili$app$dynamic$v2.KAdditionVoteDefaule = KAdditionVoteDefaule_0; + defineProp($com$bapis$bilibili$app$dynamic$v2.KAdditionVoteDefaule, 'Companion', Companion_getInstance_1139); + $com$bapis$bilibili$app$dynamic$v2.values$factory = values$factory_114; + $com$bapis$bilibili$app$dynamic$v2.values$factory = values$factory_115; + $com$bapis$bilibili$app$dynamic$v2.values$factory = values$factory_116; + $com$bapis$bilibili$app$dynamic$v2.values$factory = values$factory_117; + $com$bapis$bilibili$app$dynamic$v2.values$factory = values$factory_118; + $com$bapis$bilibili$app$dynamic$v2.values$factory = values$factory_119; + $com$bapis$bilibili$app$dynamic$v2.values$factory = values$factory_120; + $com$bapis$bilibili$app$dynamic$v2.values$factory = values$factory_121; + $com$bapis$bilibili$app$dynamic$v2.values$factory = values$factory_122; + $com$bapis$bilibili$app$dynamic$v2.values$factory = values$factory_123; + $com$bapis$bilibili$app$dynamic$v2.values$factory = values$factory_124; + $com$bapis$bilibili$app$dynamic$v2.values$factory = values$factory_125; + $com$bapis$bilibili$app$dynamic$v2.values$factory = values$factory_126; + $com$bapis$bilibili$app$dynamic$v2.values$factory = values$factory_127; + $com$bapis$bilibili$app$dynamic$v2.values$factory = values$factory_128; + $com$bapis$bilibili$app$dynamic$v2.values$factory = values$factory_129; + $com$bapis$bilibili$app$dynamic$v2.values$factory = values$factory_130; + $com$bapis$bilibili$app$dynamic$v2.values$factory = values$factory_131; + $com$bapis$bilibili$app$dynamic$v2.values$factory = values$factory_132; + $com$bapis$bilibili$app$dynamic$v2.values$factory = values$factory_133; + $com$bapis$bilibili$app$dynamic$v2.values$factory = values$factory_134; + $com$bapis$bilibili$app$dynamic$v2.values$factory = values$factory_135; + $com$bapis$bilibili$app$dynamic$v2.values$factory = values$factory_136; + $com$bapis$bilibili$app$dynamic$v2.values$factory = values$factory_137; + $com$bapis$bilibili$app$dynamic$v2.values$factory = values$factory_138; + $com$bapis$bilibili$app$dynamic$v2.itemNumber$factory = itemNumber$factory_4; + $com$bapis$bilibili$app$dynamic$v2.itemValues$factory = itemValues$factory_4; + $com$bapis$bilibili$app$dynamic$v2.itemNumber$factory = itemNumber$factory_5; + $com$bapis$bilibili$app$dynamic$v2.itemValues$factory = itemValues$factory_5; + $com$bapis$bilibili$app$dynamic$v2.itemNumber$factory = itemNumber$factory_6; + $com$bapis$bilibili$app$dynamic$v2.itemValues$factory = itemValues$factory_6; + $com$bapis$bilibili$app$dynamic$v2.itemNumber$factory = itemNumber$factory_7; + $com$bapis$bilibili$app$dynamic$v2.itemValues$factory = itemValues$factory_7; + var $com = _.com || (_.com = {}); + var $com$bapis = $com.bapis || ($com.bapis = {}); + var $com$bapis$bilibili = $com$bapis.bilibili || ($com$bapis.bilibili = {}); + var $com$bapis$bilibili$app = $com$bapis$bilibili.app || ($com$bapis$bilibili.app = {}); + var $com$bapis$bilibili$app$dynamic = $com$bapis$bilibili$app.dynamic || ($com$bapis$bilibili$app.dynamic = {}); + var $com$bapis$bilibili$app$dynamic$v2 = $com$bapis$bilibili$app$dynamic.v2 || ($com$bapis$bilibili$app$dynamic.v2 = {}); + $com$bapis$bilibili$app$dynamic$v2.KOpusType = KOpusType; + $com$bapis$bilibili$app$dynamic$v2.KOpusType.values = values_139; + $com$bapis$bilibili$app$dynamic$v2.KOpusType.valueOf = valueOf_139; + defineProp($com$bapis$bilibili$app$dynamic$v2.KOpusType, 'DYN', KOpusType_DYN_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KOpusType, 'ARTICLE', KOpusType_ARTICLE_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KOpusType, 'NOTE', KOpusType_NOTE_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KOpusType, 'WORD', KOpusType_WORD_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KOpusType, 'UNRECOGNIZED', KOpusType_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KOpusType, 'Companion', Companion_getInstance_1140); + $com$bapis$bilibili$app$dynamic$v2.KFlowItemType = KFlowItemType; + $com$bapis$bilibili$app$dynamic$v2.KFlowItemType.values = values_140; + $com$bapis$bilibili$app$dynamic$v2.KFlowItemType.valueOf = valueOf_140; + defineProp($com$bapis$bilibili$app$dynamic$v2.KFlowItemType, 'INVALID', KFlowItemType_INVALID_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KFlowItemType, 'OPUS', KFlowItemType_OPUS_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KFlowItemType, 'UNRECOGNIZED', KFlowItemType_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KFlowItemType, 'Companion', Companion_getInstance_1141); + $com$bapis$bilibili$app$dynamic$v2.KOpusItem = KOpusItem; + defineProp($com$bapis$bilibili$app$dynamic$v2.KOpusItem, 'Companion', Companion_getInstance_1142); + $com$bapis$bilibili$app$dynamic$v2.KOpusFavItem = KOpusFavItem; + defineProp($com$bapis$bilibili$app$dynamic$v2.KOpusFavItem, 'Companion', Companion_getInstance_1143); + $com$bapis$bilibili$app$dynamic$v2.KOpusFlowItem = KOpusFlowItem; + $com$bapis$bilibili$app$dynamic$v2.KOpusFlowItem.KData = KData_2; + defineProp($com$bapis$bilibili$app$dynamic$v2.KOpusFlowItem, 'KFlowItemOpus', KFlowItemOpus_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KOpusFlowItem, 'Companion', Companion_getInstance_1144); + $com$bapis$bilibili$app$dynamic$v2.KFlowItemOpus = KFlowItemOpus_0; + defineProp($com$bapis$bilibili$app$dynamic$v2.KFlowItemOpus, 'Companion', Companion_getInstance_1145); + $com$bapis$bilibili$app$dynamic$v2.KSectionOpusCollection = KSectionOpusCollection; + defineProp($com$bapis$bilibili$app$dynamic$v2.KSectionOpusCollection, 'Companion', Companion_getInstance_1146); + $com$bapis$bilibili$app$dynamic$v2.KOpusCollectionWithCover = KOpusCollectionWithCover; + defineProp($com$bapis$bilibili$app$dynamic$v2.KOpusCollectionWithCover, 'Companion', Companion_getInstance_1147); + $com$bapis$bilibili$app$dynamic$v2.KSectionNoteNavigationBar = KSectionNoteNavigationBar; + defineProp($com$bapis$bilibili$app$dynamic$v2.KSectionNoteNavigationBar, 'Companion', Companion_getInstance_1148); + $com$bapis$bilibili$app$dynamic$v2.values$factory = values$factory_139; + $com$bapis$bilibili$app$dynamic$v2.values$factory = values$factory_140; + $com$bapis$bilibili$app$dynamic$v2.dataNumber$factory = dataNumber$factory_2; + $com$bapis$bilibili$app$dynamic$v2.dataValues$factory = dataValues$factory_2; + var $com = _.com || (_.com = {}); + var $com$bapis = $com.bapis || ($com.bapis = {}); + var $com$bapis$bilibili = $com$bapis.bilibili || ($com$bapis.bilibili = {}); + var $com$bapis$bilibili$app = $com$bapis$bilibili.app || ($com$bapis$bilibili.app = {}); + var $com$bapis$bilibili$app$dynamic = $com$bapis$bilibili$app.dynamic || ($com$bapis$bilibili$app.dynamic = {}); + var $com$bapis$bilibili$app$dynamic$v2 = $com$bapis$bilibili$app$dynamic.v2 || ($com$bapis$bilibili$app$dynamic.v2 = {}); + $com$bapis$bilibili$app$dynamic$v2.KModuleCopyright = KModuleCopyright_0; + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleCopyright, 'Companion', Companion_getInstance_1149); + $com$bapis$bilibili$app$dynamic$v2.KModuleParagraph = KModuleParagraph_0; + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleParagraph, 'Companion', Companion_getInstance_1150); + $com$bapis$bilibili$app$dynamic$v2.KParaSpacing = KParaSpacing; + defineProp($com$bapis$bilibili$app$dynamic$v2.KParaSpacing, 'Companion', Companion_getInstance_1151); + $com$bapis$bilibili$app$dynamic$v2.KOneLineText = KOneLineText; + defineProp($com$bapis$bilibili$app$dynamic$v2.KOneLineText, 'Companion', Companion_getInstance_1152); + $com$bapis$bilibili$app$dynamic$v2.KTextWithPriority = KTextWithPriority; + defineProp($com$bapis$bilibili$app$dynamic$v2.KTextWithPriority, 'Companion', Companion_getInstance_1153); + $com$bapis$bilibili$app$dynamic$v2.KModuleOpusCollection = KModuleOpusCollection_0; + defineProp($com$bapis$bilibili$app$dynamic$v2.KModuleOpusCollection, 'Companion', Companion_getInstance_1154); + $com$bapis$bilibili$app$dynamic$v2.KOpusCollection = KOpusCollection; + defineProp($com$bapis$bilibili$app$dynamic$v2.KOpusCollection, 'Companion', Companion_getInstance_1155); + $com$bapis$bilibili$app$dynamic$v2.KOpusCollectionItem = KOpusCollectionItem; + defineProp($com$bapis$bilibili$app$dynamic$v2.KOpusCollectionItem, 'Companion', Companion_getInstance_1156); + var $com = _.com || (_.com = {}); + var $com$bapis = $com.bapis || ($com.bapis = {}); + var $com$bapis$bilibili = $com$bapis.bilibili || ($com$bapis.bilibili = {}); + var $com$bapis$bilibili$app = $com$bapis$bilibili.app || ($com$bapis$bilibili.app = {}); + var $com$bapis$bilibili$app$dynamic = $com$bapis$bilibili$app.dynamic || ($com$bapis$bilibili$app.dynamic = {}); + var $com$bapis$bilibili$app$dynamic$v2 = $com$bapis$bilibili$app$dynamic.v2 || ($com$bapis$bilibili$app$dynamic.v2 = {}); + $com$bapis$bilibili$app$dynamic$v2.KOpusDetailReq = KOpusDetailReq; + defineProp($com$bapis$bilibili$app$dynamic$v2.KOpusDetailReq, 'Companion', Companion_getInstance_1157); + $com$bapis$bilibili$app$dynamic$v2.KOpusDetailResp = KOpusDetailResp; + defineProp($com$bapis$bilibili$app$dynamic$v2.KOpusDetailResp, 'Companion', Companion_getInstance_1158); + $com$bapis$bilibili$app$dynamic$v2.KListFavReq = KListFavReq; + defineProp($com$bapis$bilibili$app$dynamic$v2.KListFavReq, 'Companion', Companion_getInstance_1159); + $com$bapis$bilibili$app$dynamic$v2.KListFavResp = KListFavResp; + defineProp($com$bapis$bilibili$app$dynamic$v2.KListFavResp, 'Companion', Companion_getInstance_1160); + $com$bapis$bilibili$app$dynamic$v2.KOpusSpaceFlowReq = KOpusSpaceFlowReq; + defineProp($com$bapis$bilibili$app$dynamic$v2.KOpusSpaceFlowReq, 'Companion', Companion_getInstance_1161); + $com$bapis$bilibili$app$dynamic$v2.KOpusSpaceFlowResp = KOpusSpaceFlowResp; + defineProp($com$bapis$bilibili$app$dynamic$v2.KOpusSpaceFlowResp, 'Companion', Companion_getInstance_1162); + var $com = _.com || (_.com = {}); + var $com$bapis = $com.bapis || ($com.bapis = {}); + var $com$bapis$bilibili = $com$bapis.bilibili || ($com$bapis.bilibili = {}); + var $com$bapis$bilibili$app = $com$bapis$bilibili.app || ($com$bapis$bilibili.app = {}); + var $com$bapis$bilibili$app$dynamic = $com$bapis$bilibili$app.dynamic || ($com$bapis$bilibili$app.dynamic = {}); + var $com$bapis$bilibili$app$dynamic$v2 = $com$bapis$bilibili$app$dynamic.v2 || ($com$bapis$bilibili$app$dynamic.v2 = {}); + $com$bapis$bilibili$app$dynamic$v2.KLinkNodeType = KLinkNodeType; + $com$bapis$bilibili$app$dynamic$v2.KLinkNodeType.values = values_141; + $com$bapis$bilibili$app$dynamic$v2.KLinkNodeType.valueOf = valueOf_141; + defineProp($com$bapis$bilibili$app$dynamic$v2.KLinkNodeType, 'INVALID', KLinkNodeType_INVALID_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KLinkNodeType, 'VIDEO', KLinkNodeType_VIDEO_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KLinkNodeType, 'RESERVE', KLinkNodeType_RESERVE_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KLinkNodeType, 'VOTE', KLinkNodeType_VOTE_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KLinkNodeType, 'LIVE', KLinkNodeType_LIVE_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KLinkNodeType, 'LOTTERY', KLinkNodeType_LOTTERY_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KLinkNodeType, 'MATCH', KLinkNodeType_MATCH_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KLinkNodeType, 'GOODS', KLinkNodeType_GOODS_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KLinkNodeType, 'OGV_SS', KLinkNodeType_OGV_SS_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KLinkNodeType, 'OGV_EP', KLinkNodeType_OGV_EP_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KLinkNodeType, 'MANGA', KLinkNodeType_MANGA_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KLinkNodeType, 'CHEESE', KLinkNodeType_CHEESE_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KLinkNodeType, 'VIDEO_TS', KLinkNodeType_VIDEO_TS_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KLinkNodeType, 'AT', KLinkNodeType_AT_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KLinkNodeType, 'HASH_TAG', KLinkNodeType_HASH_TAG_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KLinkNodeType, 'ARTICLE', KLinkNodeType_ARTICLE_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KLinkNodeType, 'URL', KLinkNodeType_URL_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KLinkNodeType, 'MAIL', KLinkNodeType_MAIL_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KLinkNodeType, 'LBS', KLinkNodeType_LBS_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KLinkNodeType, 'ACTIVITY', KLinkNodeType_ACTIVITY_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KLinkNodeType, 'ATTACH_CARD_OFFICIAL_ACTIVITY', KLinkNodeType_ATTACH_CARD_OFFICIAL_ACTIVITY_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KLinkNodeType, 'GAME', KLinkNodeType_GAME_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KLinkNodeType, 'DECORATION', KLinkNodeType_DECORATION_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KLinkNodeType, 'UP_TOPIC', KLinkNodeType_UP_TOPIC_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KLinkNodeType, 'UP_ACTIVITY', KLinkNodeType_UP_ACTIVITY_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KLinkNodeType, 'UP_MAOER', KLinkNodeType_UP_MAOER_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KLinkNodeType, 'MEMBER_GOODS', KLinkNodeType_MEMBER_GOODS_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KLinkNodeType, 'OPENMALL_UP_ITEMS', KLinkNodeType_OPENMALL_UP_ITEMS_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KLinkNodeType, 'SEARCH', KLinkNodeType_SEARCH_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KLinkNodeType, 'MUSIC', KLinkNodeType_MUSIC_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KLinkNodeType, 'GPT_RCMD_QUESTION', KLinkNodeType_GPT_RCMD_QUESTION_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KLinkNodeType, 'MEMBER_TICKET', KLinkNodeType_MEMBER_TICKET_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KLinkNodeType, 'UNRECOGNIZED', KLinkNodeType_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KLinkNodeType, 'Companion', Companion_getInstance_1163); + $com$bapis$bilibili$app$dynamic$v2.KParagraph = KParagraph; + $com$bapis$bilibili$app$dynamic$v2.KParagraph.KContent = KContent_1; + defineProp($com$bapis$bilibili$app$dynamic$v2.KParagraph, 'KText', KText_getInstance_0); + defineProp($com$bapis$bilibili$app$dynamic$v2.KParagraph, 'KPic', KPic_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KParagraph, 'KLine', KLine_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KParagraph, 'KLinkCard', KLinkCard_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KParagraph, 'KCode', KCode_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KParagraph, 'Companion', Companion_getInstance_1168); + $com$bapis$bilibili$app$dynamic$v2.KParagraph.KParagraphType = KParagraphType; + $com$bapis$bilibili$app$dynamic$v2.KParagraph.KParagraphType.values = values_142; + $com$bapis$bilibili$app$dynamic$v2.KParagraph.KParagraphType.valueOf = valueOf_142; + defineProp($com$bapis$bilibili$app$dynamic$v2.KParagraph.KParagraphType, 'INVALID', KParagraphType_INVALID_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KParagraph.KParagraphType, 'TEXT', KParagraphType_TEXT_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KParagraph.KParagraphType, 'PICTURES', KParagraphType_PICTURES_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KParagraph.KParagraphType, 'LINE', KParagraphType_LINE_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KParagraph.KParagraphType, 'REFERENCE', KParagraphType_REFERENCE_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KParagraph.KParagraphType, 'SORTED_LIST', KParagraphType_SORTED_LIST_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KParagraph.KParagraphType, 'UNSORTED_LIST', KParagraphType_UNSORTED_LIST_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KParagraph.KParagraphType, 'LINK_CARD', KParagraphType_LINK_CARD_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KParagraph.KParagraphType, 'CODE', KParagraphType_CODE_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KParagraph.KParagraphType, 'UNRECOGNIZED', KParagraphType_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KParagraph.KParagraphType, 'Companion', Companion_getInstance_1164); + $com$bapis$bilibili$app$dynamic$v2.KParagraph.KParagraphAlign = KParagraphAlign; + $com$bapis$bilibili$app$dynamic$v2.KParagraph.KParagraphAlign.values = values_143; + $com$bapis$bilibili$app$dynamic$v2.KParagraph.KParagraphAlign.valueOf = valueOf_143; + defineProp($com$bapis$bilibili$app$dynamic$v2.KParagraph.KParagraphAlign, 'LEFT', KParagraphAlign_LEFT_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KParagraph.KParagraphAlign, 'MIDDLE', KParagraphAlign_MIDDLE_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KParagraph.KParagraphAlign, 'RIGHT', KParagraphAlign_RIGHT_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KParagraph.KParagraphAlign, 'UNRECOGNIZED', KParagraphAlign_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KParagraph.KParagraphAlign, 'Companion', Companion_getInstance_1165); + $com$bapis$bilibili$app$dynamic$v2.KParagraph.KListFormat = KListFormat; + defineProp($com$bapis$bilibili$app$dynamic$v2.KParagraph.KListFormat, 'Companion', Companion_getInstance_1166); + $com$bapis$bilibili$app$dynamic$v2.KParagraph.KParagraphFormat = KParagraphFormat; + defineProp($com$bapis$bilibili$app$dynamic$v2.KParagraph.KParagraphFormat, 'Companion', Companion_getInstance_1167); + $com$bapis$bilibili$app$dynamic$v2.KPicParagraph = KPicParagraph; + $com$bapis$bilibili$app$dynamic$v2.KPicParagraph.KPicParagraphStyle = KPicParagraphStyle; + $com$bapis$bilibili$app$dynamic$v2.KPicParagraph.KPicParagraphStyle.values = values_144; + $com$bapis$bilibili$app$dynamic$v2.KPicParagraph.KPicParagraphStyle.valueOf = valueOf_144; + defineProp($com$bapis$bilibili$app$dynamic$v2.KPicParagraph.KPicParagraphStyle, 'INVALID', KPicParagraphStyle_INVALID_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KPicParagraph.KPicParagraphStyle, 'NINE_CELL', KPicParagraphStyle_NINE_CELL_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KPicParagraph.KPicParagraphStyle, 'BIG_SCROLL', KPicParagraphStyle_BIG_SCROLL_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KPicParagraph.KPicParagraphStyle, 'UNRECOGNIZED', KPicParagraphStyle_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KPicParagraph.KPicParagraphStyle, 'Companion', Companion_getInstance_1169); + defineProp($com$bapis$bilibili$app$dynamic$v2.KPicParagraph, 'Companion', Companion_getInstance_1170); + $com$bapis$bilibili$app$dynamic$v2.KLineParagraph = KLineParagraph; + defineProp($com$bapis$bilibili$app$dynamic$v2.KLineParagraph, 'Companion', Companion_getInstance_1171); + $com$bapis$bilibili$app$dynamic$v2.KTextParagraph = KTextParagraph; + defineProp($com$bapis$bilibili$app$dynamic$v2.KTextParagraph, 'Companion', Companion_getInstance_1172); + $com$bapis$bilibili$app$dynamic$v2.KTextNode = KTextNode; + $com$bapis$bilibili$app$dynamic$v2.KTextNode.KText = KText_1; + defineProp($com$bapis$bilibili$app$dynamic$v2.KTextNode, 'KWord', KWord_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KTextNode, 'KEmote', KEmote_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KTextNode, 'KLink', KLink_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KTextNode, 'KFormula', KFormula_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KTextNode, 'Companion', Companion_getInstance_1174); + $com$bapis$bilibili$app$dynamic$v2.KTextNode.KTextNodeType = KTextNodeType; + $com$bapis$bilibili$app$dynamic$v2.KTextNode.KTextNodeType.values = values_145; + $com$bapis$bilibili$app$dynamic$v2.KTextNode.KTextNodeType.valueOf = valueOf_145; + defineProp($com$bapis$bilibili$app$dynamic$v2.KTextNode.KTextNodeType, 'INVALID', KTextNodeType_INVALID_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KTextNode.KTextNodeType, 'WORDS', KTextNodeType_WORDS_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KTextNode.KTextNodeType, 'EMOTE', KTextNodeType_EMOTE_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KTextNode.KTextNodeType, 'AT', KTextNodeType_AT_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KTextNode.KTextNodeType, 'BIZ_LINK', KTextNodeType_BIZ_LINK_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KTextNode.KTextNodeType, 'FORMULA', KTextNodeType_FORMULA_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KTextNode.KTextNodeType, 'UNRECOGNIZED', KTextNodeType_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$dynamic$v2.KTextNode.KTextNodeType, 'Companion', Companion_getInstance_1173); + $com$bapis$bilibili$app$dynamic$v2.KWordNode = KWordNode; + $com$bapis$bilibili$app$dynamic$v2.KWordNode.KWordNodeStyle = KWordNodeStyle; + defineProp($com$bapis$bilibili$app$dynamic$v2.KWordNode.KWordNodeStyle, 'Companion', Companion_getInstance_1175); + defineProp($com$bapis$bilibili$app$dynamic$v2.KWordNode, 'Companion', Companion_getInstance_1176); + $com$bapis$bilibili$app$dynamic$v2.KEmoteNode = KEmoteNode; + defineProp($com$bapis$bilibili$app$dynamic$v2.KEmoteNode, 'Companion', Companion_getInstance_1177); + $com$bapis$bilibili$app$dynamic$v2.KImgInlineCfg = KImgInlineCfg; + defineProp($com$bapis$bilibili$app$dynamic$v2.KImgInlineCfg, 'Companion', Companion_getInstance_1178); + $com$bapis$bilibili$app$dynamic$v2.KColors = KColors; + defineProp($com$bapis$bilibili$app$dynamic$v2.KColors, 'Companion', Companion_getInstance_1179); + $com$bapis$bilibili$app$dynamic$v2.KEmoteSize = KEmoteSize; + defineProp($com$bapis$bilibili$app$dynamic$v2.KEmoteSize, 'Companion', Companion_getInstance_1180); + $com$bapis$bilibili$app$dynamic$v2.KLinkNode = KLinkNode; + defineProp($com$bapis$bilibili$app$dynamic$v2.KLinkNode, 'Companion', Companion_getInstance_1181); + $com$bapis$bilibili$app$dynamic$v2.KNoteVideoTS = KNoteVideoTS; + defineProp($com$bapis$bilibili$app$dynamic$v2.KNoteVideoTS, 'Companion', Companion_getInstance_1182); + $com$bapis$bilibili$app$dynamic$v2.KFormulaNode = KFormulaNode; + defineProp($com$bapis$bilibili$app$dynamic$v2.KFormulaNode, 'Companion', Companion_getInstance_1183); + $com$bapis$bilibili$app$dynamic$v2.KCardParagraph = KCardParagraph; + defineProp($com$bapis$bilibili$app$dynamic$v2.KCardParagraph, 'Companion', Companion_getInstance_1184); + $com$bapis$bilibili$app$dynamic$v2.KCodeParagraph = KCodeParagraph; + defineProp($com$bapis$bilibili$app$dynamic$v2.KCodeParagraph, 'Companion', Companion_getInstance_1185); + $com$bapis$bilibili$app$dynamic$v2.values$factory = values$factory_141; + $com$bapis$bilibili$app$dynamic$v2.contentNumber$factory = contentNumber$factory_1; + $com$bapis$bilibili$app$dynamic$v2.contentValues$factory = contentValues$factory_1; + $com$bapis$bilibili$app$dynamic$v2.values$factory = values$factory_142; + $com$bapis$bilibili$app$dynamic$v2.values$factory = values$factory_143; + $com$bapis$bilibili$app$dynamic$v2.values$factory = values$factory_144; + $com$bapis$bilibili$app$dynamic$v2.textNumber$factory = textNumber$factory; + $com$bapis$bilibili$app$dynamic$v2.textValues$factory = textValues$factory; + $com$bapis$bilibili$app$dynamic$v2.values$factory = values$factory_145; + var $com = _.com || (_.com = {}); + var $com$bapis = $com.bapis || ($com.bapis = {}); + var $com$bapis$bilibili = $com$bapis.bilibili || ($com$bapis.bilibili = {}); + var $com$bapis$bilibili$app = $com$bapis$bilibili.app || ($com$bapis$bilibili.app = {}); + var $com$bapis$bilibili$app$interfaces = $com$bapis$bilibili$app.interfaces || ($com$bapis$bilibili$app.interfaces = {}); + var $com$bapis$bilibili$app$interfaces$v1 = $com$bapis$bilibili$app$interfaces.v1 || ($com$bapis$bilibili$app$interfaces.v1 = {}); + $com$bapis$bilibili$app$interfaces$v1.KHistorySource = KHistorySource; + $com$bapis$bilibili$app$interfaces$v1.KHistorySource.values = values_146; + $com$bapis$bilibili$app$interfaces$v1.KHistorySource.valueOf = valueOf_146; + defineProp($com$bapis$bilibili$app$interfaces$v1.KHistorySource, 'HISTORY', KHistorySource_HISTORY_getInstance); + defineProp($com$bapis$bilibili$app$interfaces$v1.KHistorySource, 'SHOPPING', KHistorySource_SHOPPING_getInstance); + defineProp($com$bapis$bilibili$app$interfaces$v1.KHistorySource, 'UNRECOGNIZED', KHistorySource_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$interfaces$v1.KHistorySource, 'Companion', Companion_getInstance_1186); + $com$bapis$bilibili$app$interfaces$v1.KDT = KDT; + $com$bapis$bilibili$app$interfaces$v1.KDT.values = values_147; + $com$bapis$bilibili$app$interfaces$v1.KDT.valueOf = valueOf_147; + defineProp($com$bapis$bilibili$app$interfaces$v1.KDT, 'UNKNOWN', KDT_UNKNOWN_getInstance); + defineProp($com$bapis$bilibili$app$interfaces$v1.KDT, 'PHONE', KDT_PHONE_getInstance); + defineProp($com$bapis$bilibili$app$interfaces$v1.KDT, 'PAD', KDT_PAD_getInstance); + defineProp($com$bapis$bilibili$app$interfaces$v1.KDT, 'PC', KDT_PC_getInstance); + defineProp($com$bapis$bilibili$app$interfaces$v1.KDT, 'TV', KDT_TV_getInstance); + defineProp($com$bapis$bilibili$app$interfaces$v1.KDT, 'CAR', KDT_CAR_getInstance); + defineProp($com$bapis$bilibili$app$interfaces$v1.KDT, 'IOT', KDT_IOT_getInstance); + defineProp($com$bapis$bilibili$app$interfaces$v1.KDT, 'AND_PAD', KDT_AND_PAD_getInstance); + defineProp($com$bapis$bilibili$app$interfaces$v1.KDT, 'UNRECOGNIZED', KDT_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$interfaces$v1.KDT, 'Companion', Companion_getInstance_1187); + $com$bapis$bilibili$app$interfaces$v1.KHistoryTabReq = KHistoryTabReq; + defineProp($com$bapis$bilibili$app$interfaces$v1.KHistoryTabReq, 'Companion', Companion_getInstance_1188); + $com$bapis$bilibili$app$interfaces$v1.KHistoryTabReply = KHistoryTabReply; + defineProp($com$bapis$bilibili$app$interfaces$v1.KHistoryTabReply, 'Companion', Companion_getInstance_1189); + $com$bapis$bilibili$app$interfaces$v1.KCursorReq = KCursorReq; + defineProp($com$bapis$bilibili$app$interfaces$v1.KCursorReq, 'Companion', Companion_getInstance_1190); + $com$bapis$bilibili$app$interfaces$v1.KCursorReply = KCursorReply; + defineProp($com$bapis$bilibili$app$interfaces$v1.KCursorReply, 'Companion', Companion_getInstance_1191); + $com$bapis$bilibili$app$interfaces$v1.KCursorV2Req = KCursorV2Req; + defineProp($com$bapis$bilibili$app$interfaces$v1.KCursorV2Req, 'Companion', Companion_getInstance_1192); + $com$bapis$bilibili$app$interfaces$v1.KCursorV2Reply = KCursorV2Reply; + defineProp($com$bapis$bilibili$app$interfaces$v1.KCursorV2Reply, 'Companion', Companion_getInstance_1193); + $com$bapis$bilibili$app$interfaces$v1.KCursorItem = KCursorItem; + $com$bapis$bilibili$app$interfaces$v1.KCursorItem.KCardItem = KCardItem_0; + defineProp($com$bapis$bilibili$app$interfaces$v1.KCursorItem, 'KCardUgc', KCardUgc_getInstance); + defineProp($com$bapis$bilibili$app$interfaces$v1.KCursorItem, 'KCardOgv', KCardOgv_getInstance); + defineProp($com$bapis$bilibili$app$interfaces$v1.KCursorItem, 'KCardArticle', KCardArticle_getInstance); + defineProp($com$bapis$bilibili$app$interfaces$v1.KCursorItem, 'KCardLive', KCardLive_getInstance); + defineProp($com$bapis$bilibili$app$interfaces$v1.KCursorItem, 'KCardCheese', KCardCheese_getInstance); + defineProp($com$bapis$bilibili$app$interfaces$v1.KCursorItem, 'Companion', Companion_getInstance_1194); + $com$bapis$bilibili$app$interfaces$v1.KCardUGC = KCardUGC; + defineProp($com$bapis$bilibili$app$interfaces$v1.KCardUGC, 'Companion', Companion_getInstance_1195); + $com$bapis$bilibili$app$interfaces$v1.KCardOGV = KCardOGV; + defineProp($com$bapis$bilibili$app$interfaces$v1.KCardOGV, 'Companion', Companion_getInstance_1196); + $com$bapis$bilibili$app$interfaces$v1.KCardArticle = KCardArticle_0; + defineProp($com$bapis$bilibili$app$interfaces$v1.KCardArticle, 'Companion', Companion_getInstance_1197); + $com$bapis$bilibili$app$interfaces$v1.KCardLive = KCardLive_0; + defineProp($com$bapis$bilibili$app$interfaces$v1.KCardLive, 'Companion', Companion_getInstance_1198); + $com$bapis$bilibili$app$interfaces$v1.KCardCheese = KCardCheese_0; + defineProp($com$bapis$bilibili$app$interfaces$v1.KCardCheese, 'Companion', Companion_getInstance_1199); + $com$bapis$bilibili$app$interfaces$v1.KCursorTab = KCursorTab; + defineProp($com$bapis$bilibili$app$interfaces$v1.KCursorTab, 'Companion', Companion_getInstance_1200); + $com$bapis$bilibili$app$interfaces$v1.KCursor = KCursor; + defineProp($com$bapis$bilibili$app$interfaces$v1.KCursor, 'Companion', Companion_getInstance_1201); + $com$bapis$bilibili$app$interfaces$v1.KDeleteReq = KDeleteReq; + defineProp($com$bapis$bilibili$app$interfaces$v1.KDeleteReq, 'Companion', Companion_getInstance_1202); + $com$bapis$bilibili$app$interfaces$v1.KHisInfo = KHisInfo; + defineProp($com$bapis$bilibili$app$interfaces$v1.KHisInfo, 'Companion', Companion_getInstance_1203); + $com$bapis$bilibili$app$interfaces$v1.KNoReply = KNoReply_0; + defineProp($com$bapis$bilibili$app$interfaces$v1.KNoReply, 'Companion', Companion_getInstance_1204); + $com$bapis$bilibili$app$interfaces$v1.KDeviceType = KDeviceType; + defineProp($com$bapis$bilibili$app$interfaces$v1.KDeviceType, 'Companion', Companion_getInstance_1205); + $com$bapis$bilibili$app$interfaces$v1.KRelation = KRelation_2; + defineProp($com$bapis$bilibili$app$interfaces$v1.KRelation, 'Companion', Companion_getInstance_1206); + $com$bapis$bilibili$app$interfaces$v1.KSearchReq = KSearchReq; + defineProp($com$bapis$bilibili$app$interfaces$v1.KSearchReq, 'Companion', Companion_getInstance_1207); + $com$bapis$bilibili$app$interfaces$v1.KSearchReply = KSearchReply; + defineProp($com$bapis$bilibili$app$interfaces$v1.KSearchReply, 'Companion', Companion_getInstance_1208); + $com$bapis$bilibili$app$interfaces$v1.KPage = KPage_1; + defineProp($com$bapis$bilibili$app$interfaces$v1.KPage, 'Companion', Companion_getInstance_1209); + $com$bapis$bilibili$app$interfaces$v1.KPlayerPreloadParams = KPlayerPreloadParams; + defineProp($com$bapis$bilibili$app$interfaces$v1.KPlayerPreloadParams, 'Companion', Companion_getInstance_1210); + $com$bapis$bilibili$app$interfaces$v1.KClearReq = KClearReq; + defineProp($com$bapis$bilibili$app$interfaces$v1.KClearReq, 'Companion', Companion_getInstance_1211); + $com$bapis$bilibili$app$interfaces$v1.KLatestHistoryReq = KLatestHistoryReq; + defineProp($com$bapis$bilibili$app$interfaces$v1.KLatestHistoryReq, 'Companion', Companion_getInstance_1212); + $com$bapis$bilibili$app$interfaces$v1.KLatestHistoryReply = KLatestHistoryReply; + defineProp($com$bapis$bilibili$app$interfaces$v1.KLatestHistoryReply, 'Companion', Companion_getInstance_1213); + $com$bapis$bilibili$app$interfaces$v1.values$factory = values$factory_146; + $com$bapis$bilibili$app$interfaces$v1.values$factory = values$factory_147; + $com$bapis$bilibili$app$interfaces$v1.cardItemNumber$factory = cardItemNumber$factory_0; + $com$bapis$bilibili$app$interfaces$v1.cardItemValues$factory = cardItemValues$factory_0; + var $com = _.com || (_.com = {}); + var $com$bapis = $com.bapis || ($com.bapis = {}); + var $com$bapis$bilibili = $com$bapis.bilibili || ($com$bapis.bilibili = {}); + var $com$bapis$bilibili$app = $com$bapis$bilibili.app || ($com$bapis$bilibili.app = {}); + var $com$bapis$bilibili$app$interfaces = $com$bapis$bilibili$app.interfaces || ($com$bapis$bilibili$app.interfaces = {}); + var $com$bapis$bilibili$app$interfaces$v1 = $com$bapis$bilibili$app$interfaces.v1 || ($com$bapis$bilibili$app$interfaces.v1 = {}); + $com$bapis$bilibili$app$interfaces$v1.KCommentType = KCommentType; + $com$bapis$bilibili$app$interfaces$v1.KCommentType.values = values_148; + $com$bapis$bilibili$app$interfaces$v1.KCommentType.valueOf = valueOf_148; + defineProp($com$bapis$bilibili$app$interfaces$v1.KCommentType, 'NONE', KCommentType_NONE_getInstance); + defineProp($com$bapis$bilibili$app$interfaces$v1.KCommentType, 'REDIRECT', KCommentType_REDIRECT_getInstance); + defineProp($com$bapis$bilibili$app$interfaces$v1.KCommentType, 'JUDGE', KCommentType_JUDGE_getInstance); + defineProp($com$bapis$bilibili$app$interfaces$v1.KCommentType, 'UNRECOGNIZED', KCommentType_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$interfaces$v1.KCommentType, 'Companion', Companion_getInstance_1214); + $com$bapis$bilibili$app$interfaces$v1.KButType = KButType; + $com$bapis$bilibili$app$interfaces$v1.KButType.values = values_149; + $com$bapis$bilibili$app$interfaces$v1.KButType.valueOf = valueOf_149; + defineProp($com$bapis$bilibili$app$interfaces$v1.KButType, 'BUT_INVALID', KButType_BUT_INVALID_getInstance); + defineProp($com$bapis$bilibili$app$interfaces$v1.KButType, 'BUT_REDIRECT', KButType_BUT_REDIRECT_getInstance); + defineProp($com$bapis$bilibili$app$interfaces$v1.KButType, 'BUT_LIKE', KButType_BUT_LIKE_getInstance); + defineProp($com$bapis$bilibili$app$interfaces$v1.KButType, 'UNRECOGNIZED', KButType_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$interfaces$v1.KButType, 'Companion', Companion_getInstance_1215); + $com$bapis$bilibili$app$interfaces$v1.KTabType = KTabType_0; + $com$bapis$bilibili$app$interfaces$v1.KTabType.values = values_150; + $com$bapis$bilibili$app$interfaces$v1.KTabType.valueOf = valueOf_150; + defineProp($com$bapis$bilibili$app$interfaces$v1.KTabType, 'TAB_INVALID', KTabType_TAB_INVALID_getInstance); + defineProp($com$bapis$bilibili$app$interfaces$v1.KTabType, 'TAB_OGV_DETAIL', KTabType_TAB_OGV_DETAIL_getInstance); + defineProp($com$bapis$bilibili$app$interfaces$v1.KTabType, 'TAB_OGV_REPLY', KTabType_TAB_OGV_REPLY_getInstance); + defineProp($com$bapis$bilibili$app$interfaces$v1.KTabType, 'TAB_FEED_BID', KTabType_TAB_FEED_BID_getInstance); + defineProp($com$bapis$bilibili$app$interfaces$v1.KTabType, 'TAB_FEED_SMALL', KTabType_TAB_FEED_SMALL_getInstance); + defineProp($com$bapis$bilibili$app$interfaces$v1.KTabType, 'UNRECOGNIZED', KTabType_UNRECOGNIZED_getInstance_0); + defineProp($com$bapis$bilibili$app$interfaces$v1.KTabType, 'Companion', Companion_getInstance_1216); + $com$bapis$bilibili$app$interfaces$v1.KMediaCommentReq = KMediaCommentReq; + defineProp($com$bapis$bilibili$app$interfaces$v1.KMediaCommentReq, 'Companion', Companion_getInstance_1217); + $com$bapis$bilibili$app$interfaces$v1.KMediaCommentReply = KMediaCommentReply; + defineProp($com$bapis$bilibili$app$interfaces$v1.KMediaCommentReply, 'Companion', Companion_getInstance_1218); + $com$bapis$bilibili$app$interfaces$v1.KCommentItem = KCommentItem; + defineProp($com$bapis$bilibili$app$interfaces$v1.KCommentItem, 'Companion', Companion_getInstance_1219); + $com$bapis$bilibili$app$interfaces$v1.KMediaRelationReq = KMediaRelationReq; + defineProp($com$bapis$bilibili$app$interfaces$v1.KMediaRelationReq, 'Companion', Companion_getInstance_1220); + $com$bapis$bilibili$app$interfaces$v1.KMediaRelationReply = KMediaRelationReply; + defineProp($com$bapis$bilibili$app$interfaces$v1.KMediaRelationReply, 'Companion', Companion_getInstance_1221); + $com$bapis$bilibili$app$interfaces$v1.KMediaFollowReq = KMediaFollowReq; + defineProp($com$bapis$bilibili$app$interfaces$v1.KMediaFollowReq, 'Companion', Companion_getInstance_1222); + $com$bapis$bilibili$app$interfaces$v1.KMediaFollowReply = KMediaFollowReply; + defineProp($com$bapis$bilibili$app$interfaces$v1.KMediaFollowReply, 'Companion', Companion_getInstance_1223); + $com$bapis$bilibili$app$interfaces$v1.KMediaVideoReq = KMediaVideoReq; + defineProp($com$bapis$bilibili$app$interfaces$v1.KMediaVideoReq, 'Companion', Companion_getInstance_1224); + $com$bapis$bilibili$app$interfaces$v1.KMediaVideoReply = KMediaVideoReply; + defineProp($com$bapis$bilibili$app$interfaces$v1.KMediaVideoReply, 'Companion', Companion_getInstance_1225); + $com$bapis$bilibili$app$interfaces$v1.KSmallItem = KSmallItem; + defineProp($com$bapis$bilibili$app$interfaces$v1.KSmallItem, 'Companion', Companion_getInstance_1226); + $com$bapis$bilibili$app$interfaces$v1.KBigItem = KBigItem; + defineProp($com$bapis$bilibili$app$interfaces$v1.KBigItem, 'Companion', Companion_getInstance_1227); + $com$bapis$bilibili$app$interfaces$v1.KLikeButton = KLikeButton_0; + defineProp($com$bapis$bilibili$app$interfaces$v1.KLikeButton, 'Companion', Companion_getInstance_1228); + $com$bapis$bilibili$app$interfaces$v1.KLikeButtonResource = KLikeButtonResource; + defineProp($com$bapis$bilibili$app$interfaces$v1.KLikeButtonResource, 'Companion', Companion_getInstance_1229); + $com$bapis$bilibili$app$interfaces$v1.KLikeCard = KLikeCard; + defineProp($com$bapis$bilibili$app$interfaces$v1.KLikeCard, 'Companion', Companion_getInstance_1230); + $com$bapis$bilibili$app$interfaces$v1.KUserCard = KUserCard; + defineProp($com$bapis$bilibili$app$interfaces$v1.KUserCard, 'Companion', Companion_getInstance_1231); + $com$bapis$bilibili$app$interfaces$v1.KMediaDetailReq = KMediaDetailReq; + defineProp($com$bapis$bilibili$app$interfaces$v1.KMediaDetailReq, 'Companion', Companion_getInstance_1232); + $com$bapis$bilibili$app$interfaces$v1.KOverview = KOverview; + defineProp($com$bapis$bilibili$app$interfaces$v1.KOverview, 'Companion', Companion_getInstance_1233); + $com$bapis$bilibili$app$interfaces$v1.KStaff = KStaff_0; + defineProp($com$bapis$bilibili$app$interfaces$v1.KStaff, 'Companion', Companion_getInstance_1234); + $com$bapis$bilibili$app$interfaces$v1.KMediaDetailReply = KMediaDetailReply; + defineProp($com$bapis$bilibili$app$interfaces$v1.KMediaDetailReply, 'Companion', Companion_getInstance_1235); + $com$bapis$bilibili$app$interfaces$v1.KCast = KCast; + defineProp($com$bapis$bilibili$app$interfaces$v1.KCast, 'Companion', Companion_getInstance_1236); + $com$bapis$bilibili$app$interfaces$v1.KMediaPerson = KMediaPerson; + defineProp($com$bapis$bilibili$app$interfaces$v1.KMediaPerson, 'Companion', Companion_getInstance_1237); + $com$bapis$bilibili$app$interfaces$v1.KMediaTabReq = KMediaTabReq; + $com$bapis$bilibili$app$interfaces$v1.KMediaTabReq.KArgsEntry = KArgsEntry; + defineProp($com$bapis$bilibili$app$interfaces$v1.KMediaTabReq.KArgsEntry, 'Companion', Companion_getInstance_1238); + defineProp($com$bapis$bilibili$app$interfaces$v1.KMediaTabReq, 'Companion', Companion_getInstance_1239); + $com$bapis$bilibili$app$interfaces$v1.KMediaCard = KMediaCard; + defineProp($com$bapis$bilibili$app$interfaces$v1.KMediaCard, 'Companion', Companion_getInstance_1240); + $com$bapis$bilibili$app$interfaces$v1.KScores = KScores; + defineProp($com$bapis$bilibili$app$interfaces$v1.KScores, 'Companion', Companion_getInstance_1241); + $com$bapis$bilibili$app$interfaces$v1.KSupernatant = KSupernatant; + defineProp($com$bapis$bilibili$app$interfaces$v1.KSupernatant, 'Companion', Companion_getInstance_1242); + $com$bapis$bilibili$app$interfaces$v1.KButton = KButton_5; + defineProp($com$bapis$bilibili$app$interfaces$v1.KButton, 'Companion', Companion_getInstance_1243); + $com$bapis$bilibili$app$interfaces$v1.KShowTab = KShowTab; + defineProp($com$bapis$bilibili$app$interfaces$v1.KShowTab, 'Companion', Companion_getInstance_1244); + $com$bapis$bilibili$app$interfaces$v1.KMediaTabReply = KMediaTabReply; + defineProp($com$bapis$bilibili$app$interfaces$v1.KMediaTabReply, 'Companion', Companion_getInstance_1245); + $com$bapis$bilibili$app$interfaces$v1.KChannelInfo = KChannelInfo_0; + defineProp($com$bapis$bilibili$app$interfaces$v1.KChannelInfo, 'Companion', Companion_getInstance_1246); + $com$bapis$bilibili$app$interfaces$v1.values$factory = values$factory_148; + $com$bapis$bilibili$app$interfaces$v1.values$factory = values$factory_149; + $com$bapis$bilibili$app$interfaces$v1.values$factory = values$factory_150; + var $com = _.com || (_.com = {}); + var $com$bapis = $com.bapis || ($com.bapis = {}); + var $com$bapis$bilibili = $com$bapis.bilibili || ($com$bapis.bilibili = {}); + var $com$bapis$bilibili$app = $com$bapis$bilibili.app || ($com$bapis$bilibili.app = {}); + var $com$bapis$bilibili$app$interfaces = $com$bapis$bilibili$app.interfaces || ($com$bapis$bilibili$app.interfaces = {}); + var $com$bapis$bilibili$app$interfaces$v1 = $com$bapis$bilibili$app$interfaces.v1 || ($com$bapis$bilibili$app$interfaces.v1 = {}); + $com$bapis$bilibili$app$interfaces$v1.KDefaultWordsReq = KDefaultWordsReq; + defineProp($com$bapis$bilibili$app$interfaces$v1.KDefaultWordsReq, 'Companion', Companion_getInstance_1247); + $com$bapis$bilibili$app$interfaces$v1.KDefaultWordsReply = KDefaultWordsReply; + defineProp($com$bapis$bilibili$app$interfaces$v1.KDefaultWordsReply, 'Companion', Companion_getInstance_1248); + $com$bapis$bilibili$app$interfaces$v1.KSuggestionResult3Req = KSuggestionResult3Req; + defineProp($com$bapis$bilibili$app$interfaces$v1.KSuggestionResult3Req, 'Companion', Companion_getInstance_1249); + $com$bapis$bilibili$app$interfaces$v1.KSuggestionResult3Reply = KSuggestionResult3Reply; + defineProp($com$bapis$bilibili$app$interfaces$v1.KSuggestionResult3Reply, 'Companion', Companion_getInstance_1250); + $com$bapis$bilibili$app$interfaces$v1.KResultItem = KResultItem; + defineProp($com$bapis$bilibili$app$interfaces$v1.KResultItem, 'Companion', Companion_getInstance_1251); + $com$bapis$bilibili$app$interfaces$v1.KNftFaceIcon = KNftFaceIcon_0; + defineProp($com$bapis$bilibili$app$interfaces$v1.KNftFaceIcon, 'Companion', Companion_getInstance_1252); + $com$bapis$bilibili$app$interfaces$v1.KOfficialVerify = KOfficialVerify_2; + defineProp($com$bapis$bilibili$app$interfaces$v1.KOfficialVerify, 'Companion', Companion_getInstance_1253); + $com$bapis$bilibili$app$interfaces$v1.KReasonStyle = KReasonStyle_1; + defineProp($com$bapis$bilibili$app$interfaces$v1.KReasonStyle, 'Companion', Companion_getInstance_1254); + var $com = _.com || (_.com = {}); + var $com$bapis = $com.bapis || ($com.bapis = {}); + var $com$bapis$bilibili = $com$bapis.bilibili || ($com$bapis.bilibili = {}); + var $com$bapis$bilibili$app = $com$bapis$bilibili.app || ($com$bapis$bilibili.app = {}); + var $com$bapis$bilibili$app$interfaces = $com$bapis$bilibili$app.interfaces || ($com$bapis$bilibili$app.interfaces = {}); + var $com$bapis$bilibili$app$interfaces$v1 = $com$bapis$bilibili$app$interfaces.v1 || ($com$bapis$bilibili$app$interfaces.v1 = {}); + $com$bapis$bilibili$app$interfaces$v1.KFrom = KFrom; + $com$bapis$bilibili$app$interfaces$v1.KFrom.values = values_151; + $com$bapis$bilibili$app$interfaces$v1.KFrom.valueOf = valueOf_151; + defineProp($com$bapis$bilibili$app$interfaces$v1.KFrom, 'ARCHIVE_TAB', KFrom_ARCHIVE_TAB_getInstance); + defineProp($com$bapis$bilibili$app$interfaces$v1.KFrom, 'DYNAMIC_TAB', KFrom_DYNAMIC_TAB_getInstance); + defineProp($com$bapis$bilibili$app$interfaces$v1.KFrom, 'UNRECOGNIZED', KFrom_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$interfaces$v1.KFrom, 'Companion', Companion_getInstance_1255); + $com$bapis$bilibili$app$interfaces$v1.KSearchTabReq = KSearchTabReq; + defineProp($com$bapis$bilibili$app$interfaces$v1.KSearchTabReq, 'Companion', Companion_getInstance_1256); + $com$bapis$bilibili$app$interfaces$v1.KSearchTabReply = KSearchTabReply; + defineProp($com$bapis$bilibili$app$interfaces$v1.KSearchTabReply, 'Companion', Companion_getInstance_1257); + $com$bapis$bilibili$app$interfaces$v1.KTab = KTab_1; + defineProp($com$bapis$bilibili$app$interfaces$v1.KTab, 'Companion', Companion_getInstance_1258); + $com$bapis$bilibili$app$interfaces$v1.KSearchArchiveReq = KSearchArchiveReq; + defineProp($com$bapis$bilibili$app$interfaces$v1.KSearchArchiveReq, 'Companion', Companion_getInstance_1259); + $com$bapis$bilibili$app$interfaces$v1.KSearchArchiveReply = KSearchArchiveReply; + defineProp($com$bapis$bilibili$app$interfaces$v1.KSearchArchiveReply, 'Companion', Companion_getInstance_1260); + $com$bapis$bilibili$app$interfaces$v1.KArc = KArc_1; + defineProp($com$bapis$bilibili$app$interfaces$v1.KArc, 'Companion', Companion_getInstance_1261); + $com$bapis$bilibili$app$interfaces$v1.KSearchDynamicReq = KSearchDynamicReq; + defineProp($com$bapis$bilibili$app$interfaces$v1.KSearchDynamicReq, 'Companion', Companion_getInstance_1262); + $com$bapis$bilibili$app$interfaces$v1.KSearchDynamicReply = KSearchDynamicReply; + defineProp($com$bapis$bilibili$app$interfaces$v1.KSearchDynamicReply, 'Companion', Companion_getInstance_1263); + $com$bapis$bilibili$app$interfaces$v1.KDynamic = KDynamic_0; + defineProp($com$bapis$bilibili$app$interfaces$v1.KDynamic, 'Companion', Companion_getInstance_1264); + $com$bapis$bilibili$app$interfaces$v1.values$factory = values$factory_151; + var $com = _.com || (_.com = {}); + var $com$bapis = $com.bapis || ($com.bapis = {}); + var $com$bapis$bilibili = $com$bapis.bilibili || ($com$bapis.bilibili = {}); + var $com$bapis$bilibili$app = $com$bapis$bilibili.app || ($com$bapis$bilibili.app = {}); + var $com$bapis$bilibili$app$interfaces = $com$bapis$bilibili$app.interfaces || ($com$bapis$bilibili$app.interfaces = {}); + var $com$bapis$bilibili$app$interfaces$v1 = $com$bapis$bilibili$app$interfaces.v1 || ($com$bapis$bilibili$app$interfaces.v1 = {}); + $com$bapis$bilibili$app$interfaces$v1.KPwdFrom = KPwdFrom; + $com$bapis$bilibili$app$interfaces$v1.KPwdFrom.values = values_152; + $com$bapis$bilibili$app$interfaces$v1.KPwdFrom.valueOf = valueOf_152; + defineProp($com$bapis$bilibili$app$interfaces$v1.KPwdFrom, 'UNKNOWN_FROM', KPwdFrom_UNKNOWN_FROM_getInstance); + defineProp($com$bapis$bilibili$app$interfaces$v1.KPwdFrom, 'TEENAGERS_ANTI_ADDICTION_FROM', KPwdFrom_TEENAGERS_ANTI_ADDICTION_FROM_getInstance); + defineProp($com$bapis$bilibili$app$interfaces$v1.KPwdFrom, 'TEENAGERS_CURFEW_FROM', KPwdFrom_TEENAGERS_CURFEW_FROM_getInstance); + defineProp($com$bapis$bilibili$app$interfaces$v1.KPwdFrom, 'TEENAGERS_LOGIN_FROM', KPwdFrom_TEENAGERS_LOGIN_FROM_getInstance); + defineProp($com$bapis$bilibili$app$interfaces$v1.KPwdFrom, 'TEENAGERS_LOG_OUT_FROM', KPwdFrom_TEENAGERS_LOG_OUT_FROM_getInstance); + defineProp($com$bapis$bilibili$app$interfaces$v1.KPwdFrom, 'FAMILY_ANTI_ADDICTION_FROM', KPwdFrom_FAMILY_ANTI_ADDICTION_FROM_getInstance); + defineProp($com$bapis$bilibili$app$interfaces$v1.KPwdFrom, 'FAMILY_CURFEW_FROM', KPwdFrom_FAMILY_CURFEW_FROM_getInstance); + defineProp($com$bapis$bilibili$app$interfaces$v1.KPwdFrom, 'FAMILY_LOG_OUT_FROM', KPwdFrom_FAMILY_LOG_OUT_FROM_getInstance); + defineProp($com$bapis$bilibili$app$interfaces$v1.KPwdFrom, 'FAMILY_TIME_LOCK_FROM', KPwdFrom_FAMILY_TIME_LOCK_FROM_getInstance); + defineProp($com$bapis$bilibili$app$interfaces$v1.KPwdFrom, 'TEENAGERS_QUIT_PWD_FROM', KPwdFrom_TEENAGERS_QUIT_PWD_FROM_getInstance); + defineProp($com$bapis$bilibili$app$interfaces$v1.KPwdFrom, 'TEENAGERS_MODIFY_PWD_FROM', KPwdFrom_TEENAGERS_MODIFY_PWD_FROM_getInstance); + defineProp($com$bapis$bilibili$app$interfaces$v1.KPwdFrom, 'FAMILY_QUIT_FROM', KPwdFrom_FAMILY_QUIT_FROM_getInstance); + defineProp($com$bapis$bilibili$app$interfaces$v1.KPwdFrom, 'UNRECOGNIZED', KPwdFrom_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$interfaces$v1.KPwdFrom, 'Companion', Companion_getInstance_1265); + $com$bapis$bilibili$app$interfaces$v1.KModelStatus = KModelStatus; + $com$bapis$bilibili$app$interfaces$v1.KModelStatus.values = values_153; + $com$bapis$bilibili$app$interfaces$v1.KModelStatus.valueOf = valueOf_153; + defineProp($com$bapis$bilibili$app$interfaces$v1.KModelStatus, 'CLOSE_STATUS', KModelStatus_CLOSE_STATUS_getInstance); + defineProp($com$bapis$bilibili$app$interfaces$v1.KModelStatus, 'OPEN_STATUS', KModelStatus_OPEN_STATUS_getInstance); + defineProp($com$bapis$bilibili$app$interfaces$v1.KModelStatus, 'NOT_SET_STATUS', KModelStatus_NOT_SET_STATUS_getInstance); + defineProp($com$bapis$bilibili$app$interfaces$v1.KModelStatus, 'UNRECOGNIZED', KModelStatus_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$interfaces$v1.KModelStatus, 'Companion', Companion_getInstance_1266); + $com$bapis$bilibili$app$interfaces$v1.KFacialRecognitionVerifyFrom = KFacialRecognitionVerifyFrom; + $com$bapis$bilibili$app$interfaces$v1.KFacialRecognitionVerifyFrom.values = values_154; + $com$bapis$bilibili$app$interfaces$v1.KFacialRecognitionVerifyFrom.valueOf = valueOf_154; + defineProp($com$bapis$bilibili$app$interfaces$v1.KFacialRecognitionVerifyFrom, 'VERIFY_UNKNOWN_FROM', KFacialRecognitionVerifyFrom_VERIFY_UNKNOWN_FROM_getInstance); + defineProp($com$bapis$bilibili$app$interfaces$v1.KFacialRecognitionVerifyFrom, 'VERIFY_FROM_GUARDIAN', KFacialRecognitionVerifyFrom_VERIFY_FROM_GUARDIAN_getInstance); + defineProp($com$bapis$bilibili$app$interfaces$v1.KFacialRecognitionVerifyFrom, 'VERIFY_FROM_APPEAL', KFacialRecognitionVerifyFrom_VERIFY_FROM_APPEAL_getInstance); + defineProp($com$bapis$bilibili$app$interfaces$v1.KFacialRecognitionVerifyFrom, 'UNRECOGNIZED', KFacialRecognitionVerifyFrom_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$interfaces$v1.KFacialRecognitionVerifyFrom, 'Companion', Companion_getInstance_1267); + $com$bapis$bilibili$app$interfaces$v1.KModifyPwdReq = KModifyPwdReq; + defineProp($com$bapis$bilibili$app$interfaces$v1.KModifyPwdReq, 'Companion', Companion_getInstance_1268); + $com$bapis$bilibili$app$interfaces$v1.KModifyPwdReply = KModifyPwdReply; + defineProp($com$bapis$bilibili$app$interfaces$v1.KModifyPwdReply, 'Companion', Companion_getInstance_1269); + $com$bapis$bilibili$app$interfaces$v1.KVerifyPwdReq = KVerifyPwdReq; + defineProp($com$bapis$bilibili$app$interfaces$v1.KVerifyPwdReq, 'Companion', Companion_getInstance_1270); + $com$bapis$bilibili$app$interfaces$v1.KVerifyPwdReply = KVerifyPwdReply; + defineProp($com$bapis$bilibili$app$interfaces$v1.KVerifyPwdReply, 'Companion', Companion_getInstance_1271); + $com$bapis$bilibili$app$interfaces$v1.KUpdateStatusReq = KUpdateStatusReq; + defineProp($com$bapis$bilibili$app$interfaces$v1.KUpdateStatusReq, 'Companion', Companion_getInstance_1272); + $com$bapis$bilibili$app$interfaces$v1.KUpdateStatusReply = KUpdateStatusReply; + defineProp($com$bapis$bilibili$app$interfaces$v1.KUpdateStatusReply, 'Companion', Companion_getInstance_1273); + $com$bapis$bilibili$app$interfaces$v1.KModeStatusReq = KModeStatusReq; + defineProp($com$bapis$bilibili$app$interfaces$v1.KModeStatusReq, 'Companion', Companion_getInstance_1274); + $com$bapis$bilibili$app$interfaces$v1.KModeStatusReply = KModeStatusReply; + defineProp($com$bapis$bilibili$app$interfaces$v1.KModeStatusReply, 'Companion', Companion_getInstance_1275); + $com$bapis$bilibili$app$interfaces$v1.KPolicy = KPolicy; + defineProp($com$bapis$bilibili$app$interfaces$v1.KPolicy, 'Companion', Companion_getInstance_1276); + $com$bapis$bilibili$app$interfaces$v1.KUserModel = KUserModel; + defineProp($com$bapis$bilibili$app$interfaces$v1.KUserModel, 'Companion', Companion_getInstance_1277); + $com$bapis$bilibili$app$interfaces$v1.KFacialRecognitionVerifyReq = KFacialRecognitionVerifyReq; + defineProp($com$bapis$bilibili$app$interfaces$v1.KFacialRecognitionVerifyReq, 'Companion', Companion_getInstance_1278); + $com$bapis$bilibili$app$interfaces$v1.KFacialRecognitionVerifyReply = KFacialRecognitionVerifyReply; + defineProp($com$bapis$bilibili$app$interfaces$v1.KFacialRecognitionVerifyReply, 'Companion', Companion_getInstance_1279); + $com$bapis$bilibili$app$interfaces$v1.values$factory = values$factory_152; + $com$bapis$bilibili$app$interfaces$v1.values$factory = values$factory_153; + $com$bapis$bilibili$app$interfaces$v1.values$factory = values$factory_154; + var $com = _.com || (_.com = {}); + var $com$bapis = $com.bapis || ($com.bapis = {}); + var $com$bapis$bilibili = $com$bapis.bilibili || ($com$bapis.bilibili = {}); + var $com$bapis$bilibili$main = $com$bapis$bilibili.main || ($com$bapis$bilibili.main = {}); + var $com$bapis$bilibili$main$community = $com$bapis$bilibili$main.community || ($com$bapis$bilibili$main.community = {}); + var $com$bapis$bilibili$main$community$reply = $com$bapis$bilibili$main$community.reply || ($com$bapis$bilibili$main$community.reply = {}); + var $com$bapis$bilibili$main$community$reply$v1 = $com$bapis$bilibili$main$community$reply.v1 || ($com$bapis$bilibili$main$community$reply.v1 = {}); + $com$bapis$bilibili$main$community$reply$v1.KDetailListScene = KDetailListScene; + $com$bapis$bilibili$main$community$reply$v1.KDetailListScene.values = values_155; + $com$bapis$bilibili$main$community$reply$v1.KDetailListScene.valueOf = valueOf_155; + defineProp($com$bapis$bilibili$main$community$reply$v1.KDetailListScene, 'REPLY', KDetailListScene_REPLY_getInstance); + defineProp($com$bapis$bilibili$main$community$reply$v1.KDetailListScene, 'MSG_FEED', KDetailListScene_MSG_FEED_getInstance); + defineProp($com$bapis$bilibili$main$community$reply$v1.KDetailListScene, 'NOTIFY', KDetailListScene_NOTIFY_getInstance); + defineProp($com$bapis$bilibili$main$community$reply$v1.KDetailListScene, 'UNRECOGNIZED', KDetailListScene_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$main$community$reply$v1.KDetailListScene, 'Companion', Companion_getInstance_1280); + $com$bapis$bilibili$main$community$reply$v1.KMode = KMode; + $com$bapis$bilibili$main$community$reply$v1.KMode.values = values_156; + $com$bapis$bilibili$main$community$reply$v1.KMode.valueOf = valueOf_156; + defineProp($com$bapis$bilibili$main$community$reply$v1.KMode, 'DEFAULT', KMode_DEFAULT_getInstance); + defineProp($com$bapis$bilibili$main$community$reply$v1.KMode, 'UNSPECIFIED', KMode_UNSPECIFIED_getInstance); + defineProp($com$bapis$bilibili$main$community$reply$v1.KMode, 'MAIN_LIST_TIME', KMode_MAIN_LIST_TIME_getInstance); + defineProp($com$bapis$bilibili$main$community$reply$v1.KMode, 'MAIN_LIST_HOT', KMode_MAIN_LIST_HOT_getInstance); + defineProp($com$bapis$bilibili$main$community$reply$v1.KMode, 'UNRECOGNIZED', KMode_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$main$community$reply$v1.KMode, 'Companion', Companion_getInstance_1281); + $com$bapis$bilibili$main$community$reply$v1.KEditorIconState = KEditorIconState; + $com$bapis$bilibili$main$community$reply$v1.KEditorIconState.values = values_157; + $com$bapis$bilibili$main$community$reply$v1.KEditorIconState.valueOf = valueOf_157; + defineProp($com$bapis$bilibili$main$community$reply$v1.KEditorIconState, 'DEFAULT', KEditorIconState_DEFAULT_getInstance); + defineProp($com$bapis$bilibili$main$community$reply$v1.KEditorIconState, 'ENABLE', KEditorIconState_ENABLE_getInstance); + defineProp($com$bapis$bilibili$main$community$reply$v1.KEditorIconState, 'DISABLE', KEditorIconState_DISABLE_getInstance); + defineProp($com$bapis$bilibili$main$community$reply$v1.KEditorIconState, 'HIDE', KEditorIconState_HIDE_getInstance); + defineProp($com$bapis$bilibili$main$community$reply$v1.KEditorIconState, 'UNRECOGNIZED', KEditorIconState_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$main$community$reply$v1.KEditorIconState, 'Companion', Companion_getInstance_1282); + $com$bapis$bilibili$main$community$reply$v1.KSearchItemType = KSearchItemType; + $com$bapis$bilibili$main$community$reply$v1.KSearchItemType.values = values_158; + $com$bapis$bilibili$main$community$reply$v1.KSearchItemType.valueOf = valueOf_158; + defineProp($com$bapis$bilibili$main$community$reply$v1.KSearchItemType, 'DEFAULT_ITEM_TYPE', KSearchItemType_DEFAULT_ITEM_TYPE_getInstance); + defineProp($com$bapis$bilibili$main$community$reply$v1.KSearchItemType, 'GOODS', KSearchItemType_GOODS_getInstance); + defineProp($com$bapis$bilibili$main$community$reply$v1.KSearchItemType, 'VIDEO', KSearchItemType_VIDEO_getInstance); + defineProp($com$bapis$bilibili$main$community$reply$v1.KSearchItemType, 'ARTICLE', KSearchItemType_ARTICLE_getInstance); + defineProp($com$bapis$bilibili$main$community$reply$v1.KSearchItemType, 'UNRECOGNIZED', KSearchItemType_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$main$community$reply$v1.KSearchItemType, 'Companion', Companion_getInstance_1283); + $com$bapis$bilibili$main$community$reply$v1.KSearchItemVideoSubType = KSearchItemVideoSubType; + $com$bapis$bilibili$main$community$reply$v1.KSearchItemVideoSubType.values = values_159; + $com$bapis$bilibili$main$community$reply$v1.KSearchItemVideoSubType.valueOf = valueOf_159; + defineProp($com$bapis$bilibili$main$community$reply$v1.KSearchItemVideoSubType, 'UGC', KSearchItemVideoSubType_UGC_getInstance); + defineProp($com$bapis$bilibili$main$community$reply$v1.KSearchItemVideoSubType, 'PGC', KSearchItemVideoSubType_PGC_getInstance); + defineProp($com$bapis$bilibili$main$community$reply$v1.KSearchItemVideoSubType, 'UNRECOGNIZED', KSearchItemVideoSubType_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$main$community$reply$v1.KSearchItemVideoSubType, 'Companion', Companion_getInstance_1284); + $com$bapis$bilibili$main$community$reply$v1.KUserCallbackAction = KUserCallbackAction; + $com$bapis$bilibili$main$community$reply$v1.KUserCallbackAction.values = values_160; + $com$bapis$bilibili$main$community$reply$v1.KUserCallbackAction.valueOf = valueOf_160; + defineProp($com$bapis$bilibili$main$community$reply$v1.KUserCallbackAction, 'DISMISS', KUserCallbackAction_DISMISS_getInstance); + defineProp($com$bapis$bilibili$main$community$reply$v1.KUserCallbackAction, 'UNRECOGNIZED', KUserCallbackAction_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$main$community$reply$v1.KUserCallbackAction, 'Companion', Companion_getInstance_1285); + $com$bapis$bilibili$main$community$reply$v1.KUserCallbackScene = KUserCallbackScene; + $com$bapis$bilibili$main$community$reply$v1.KUserCallbackScene.values = values_161; + $com$bapis$bilibili$main$community$reply$v1.KUserCallbackScene.valueOf = valueOf_161; + defineProp($com$bapis$bilibili$main$community$reply$v1.KUserCallbackScene, 'INSERT', KUserCallbackScene_INSERT_getInstance); + defineProp($com$bapis$bilibili$main$community$reply$v1.KUserCallbackScene, 'RECOMMEND_SUPERB_REPLY', KUserCallbackScene_RECOMMEND_SUPERB_REPLY_getInstance); + defineProp($com$bapis$bilibili$main$community$reply$v1.KUserCallbackScene, 'UNRECOGNIZED', KUserCallbackScene_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$main$community$reply$v1.KUserCallbackScene, 'Companion', Companion_getInstance_1286); + $com$bapis$bilibili$main$community$reply$v1.KCM = KCM_0; + defineProp($com$bapis$bilibili$main$community$reply$v1.KCM, 'Companion', Companion_getInstance_1287); + $com$bapis$bilibili$main$community$reply$v1.KDialogListReq = KDialogListReq; + defineProp($com$bapis$bilibili$main$community$reply$v1.KDialogListReq, 'Companion', Companion_getInstance_1288); + $com$bapis$bilibili$main$community$reply$v1.KDialogListReply = KDialogListReply; + defineProp($com$bapis$bilibili$main$community$reply$v1.KDialogListReply, 'Companion', Companion_getInstance_1289); + $com$bapis$bilibili$main$community$reply$v1.KDetailListReq = KDetailListReq; + defineProp($com$bapis$bilibili$main$community$reply$v1.KDetailListReq, 'Companion', Companion_getInstance_1290); + $com$bapis$bilibili$main$community$reply$v1.KDetailListReply = KDetailListReply; + defineProp($com$bapis$bilibili$main$community$reply$v1.KDetailListReply, 'Companion', Companion_getInstance_1291); + $com$bapis$bilibili$main$community$reply$v1.KLikeInfo = KLikeInfo_0; + $com$bapis$bilibili$main$community$reply$v1.KLikeInfo.KItem = KItem_11; + defineProp($com$bapis$bilibili$main$community$reply$v1.KLikeInfo.KItem, 'Companion', Companion_getInstance_1292); + defineProp($com$bapis$bilibili$main$community$reply$v1.KLikeInfo, 'Companion', Companion_getInstance_1293); + $com$bapis$bilibili$main$community$reply$v1.KMainListReq = KMainListReq; + defineProp($com$bapis$bilibili$main$community$reply$v1.KMainListReq, 'Companion', Companion_getInstance_1294); + $com$bapis$bilibili$main$community$reply$v1.KPreviewListReq = KPreviewListReq; + defineProp($com$bapis$bilibili$main$community$reply$v1.KPreviewListReq, 'Companion', Companion_getInstance_1295); + $com$bapis$bilibili$main$community$reply$v1.KReplyExtra = KReplyExtra; + defineProp($com$bapis$bilibili$main$community$reply$v1.KReplyExtra, 'Companion', Companion_getInstance_1296); + $com$bapis$bilibili$main$community$reply$v1.KPreviewListReply = KPreviewListReply; + defineProp($com$bapis$bilibili$main$community$reply$v1.KPreviewListReply, 'Companion', Companion_getInstance_1297); + $com$bapis$bilibili$main$community$reply$v1.KMainListReply = KMainListReply; + $com$bapis$bilibili$main$community$reply$v1.KMainListReply.KCallbacksEntry = KCallbacksEntry; + defineProp($com$bapis$bilibili$main$community$reply$v1.KMainListReply.KCallbacksEntry, 'Companion', Companion_getInstance_1298); + defineProp($com$bapis$bilibili$main$community$reply$v1.KMainListReply, 'Companion', Companion_getInstance_1299); + $com$bapis$bilibili$main$community$reply$v1.KEffects = KEffects_0; + defineProp($com$bapis$bilibili$main$community$reply$v1.KEffects, 'Companion', Companion_getInstance_1300); + $com$bapis$bilibili$main$community$reply$v1.KUpSelection = KUpSelection; + defineProp($com$bapis$bilibili$main$community$reply$v1.KUpSelection, 'Companion', Companion_getInstance_1301); + $com$bapis$bilibili$main$community$reply$v1.KNotice = KNotice_0; + defineProp($com$bapis$bilibili$main$community$reply$v1.KNotice, 'Companion', Companion_getInstance_1302); + $com$bapis$bilibili$main$community$reply$v1.KActivity = KActivity_1; + defineProp($com$bapis$bilibili$main$community$reply$v1.KActivity, 'Companion', Companion_getInstance_1303); + $com$bapis$bilibili$main$community$reply$v1.KLottery = KLottery; + defineProp($com$bapis$bilibili$main$community$reply$v1.KLottery, 'Companion', Companion_getInstance_1304); + $com$bapis$bilibili$main$community$reply$v1.KCursorReq = KCursorReq_0; + defineProp($com$bapis$bilibili$main$community$reply$v1.KCursorReq, 'Companion', Companion_getInstance_1305); + $com$bapis$bilibili$main$community$reply$v1.KCursorReply = KCursorReply_0; + defineProp($com$bapis$bilibili$main$community$reply$v1.KCursorReply, 'Companion', Companion_getInstance_1306); + $com$bapis$bilibili$main$community$reply$v1.KTextStyle = KTextStyle; + $com$bapis$bilibili$main$community$reply$v1.KTextStyle.KFontStyle = KFontStyle; + $com$bapis$bilibili$main$community$reply$v1.KTextStyle.KFontStyle.values = values_162; + $com$bapis$bilibili$main$community$reply$v1.KTextStyle.KFontStyle.valueOf = valueOf_162; + defineProp($com$bapis$bilibili$main$community$reply$v1.KTextStyle.KFontStyle, 'NORMAL', KFontStyle_NORMAL_getInstance); + defineProp($com$bapis$bilibili$main$community$reply$v1.KTextStyle.KFontStyle, 'BOLD', KFontStyle_BOLD_getInstance); + defineProp($com$bapis$bilibili$main$community$reply$v1.KTextStyle.KFontStyle, 'UNRECOGNIZED', KFontStyle_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$main$community$reply$v1.KTextStyle.KFontStyle, 'Companion', Companion_getInstance_1307); + defineProp($com$bapis$bilibili$main$community$reply$v1.KTextStyle, 'Companion', Companion_getInstance_1308); + $com$bapis$bilibili$main$community$reply$v1.KEmptyPage = KEmptyPage; + $com$bapis$bilibili$main$community$reply$v1.KEmptyPage.KAction = KAction; + $com$bapis$bilibili$main$community$reply$v1.KEmptyPage.KAction.values = values_163; + $com$bapis$bilibili$main$community$reply$v1.KEmptyPage.KAction.valueOf = valueOf_163; + defineProp($com$bapis$bilibili$main$community$reply$v1.KEmptyPage.KAction, 'UNAVAILABLE', KAction_UNAVAILABLE_getInstance); + defineProp($com$bapis$bilibili$main$community$reply$v1.KEmptyPage.KAction, 'SHOW_KEYBOARD', KAction_SHOW_KEYBOARD_getInstance); + defineProp($com$bapis$bilibili$main$community$reply$v1.KEmptyPage.KAction, 'SEND_REPLY_WITH_BOLD_TEXT', KAction_SEND_REPLY_WITH_BOLD_TEXT_getInstance); + defineProp($com$bapis$bilibili$main$community$reply$v1.KEmptyPage.KAction, 'UNRECOGNIZED', KAction_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$main$community$reply$v1.KEmptyPage.KAction, 'Companion', Companion_getInstance_1309); + $com$bapis$bilibili$main$community$reply$v1.KEmptyPage.KText = KText_2; + defineProp($com$bapis$bilibili$main$community$reply$v1.KEmptyPage.KText, 'Companion', Companion_getInstance_1310); + $com$bapis$bilibili$main$community$reply$v1.KEmptyPage.KButton = KButton_6; + defineProp($com$bapis$bilibili$main$community$reply$v1.KEmptyPage.KButton, 'Companion', Companion_getInstance_1311); + defineProp($com$bapis$bilibili$main$community$reply$v1.KEmptyPage, 'Companion', Companion_getInstance_1312); + $com$bapis$bilibili$main$community$reply$v1.KSubjectControl = KSubjectControl; + $com$bapis$bilibili$main$community$reply$v1.KSubjectControl.KFilterTag = KFilterTag; + defineProp($com$bapis$bilibili$main$community$reply$v1.KSubjectControl.KFilterTag, 'Companion', Companion_getInstance_1313); + $com$bapis$bilibili$main$community$reply$v1.KSubjectControl.KCmTopReplyProtection = KCmTopReplyProtection; + defineProp($com$bapis$bilibili$main$community$reply$v1.KSubjectControl.KCmTopReplyProtection, 'Companion', Companion_getInstance_1314); + defineProp($com$bapis$bilibili$main$community$reply$v1.KSubjectControl, 'Companion', Companion_getInstance_1315); + $com$bapis$bilibili$main$community$reply$v1.KReplyInfo = KReplyInfo; + defineProp($com$bapis$bilibili$main$community$reply$v1.KReplyInfo, 'Companion', Companion_getInstance_1316); + $com$bapis$bilibili$main$community$reply$v1.KReplyTrackInfo = KReplyTrackInfo; + defineProp($com$bapis$bilibili$main$community$reply$v1.KReplyTrackInfo, 'Companion', Companion_getInstance_1317); + $com$bapis$bilibili$main$community$reply$v1.KContent = KContent_2; + $com$bapis$bilibili$main$community$reply$v1.KContent.KMembersEntry = KMembersEntry; + defineProp($com$bapis$bilibili$main$community$reply$v1.KContent.KMembersEntry, 'Companion', Companion_getInstance_1318); + $com$bapis$bilibili$main$community$reply$v1.KContent.KEmotesEntry = KEmotesEntry; + defineProp($com$bapis$bilibili$main$community$reply$v1.KContent.KEmotesEntry, 'Companion', Companion_getInstance_1319); + $com$bapis$bilibili$main$community$reply$v1.KContent.KTopicsEntry = KTopicsEntry; + defineProp($com$bapis$bilibili$main$community$reply$v1.KContent.KTopicsEntry, 'Companion', Companion_getInstance_1320); + $com$bapis$bilibili$main$community$reply$v1.KContent.KUrlsEntry = KUrlsEntry; + defineProp($com$bapis$bilibili$main$community$reply$v1.KContent.KUrlsEntry, 'Companion', Companion_getInstance_1321); + $com$bapis$bilibili$main$community$reply$v1.KContent.KAtNameToMidEntry = KAtNameToMidEntry; + defineProp($com$bapis$bilibili$main$community$reply$v1.KContent.KAtNameToMidEntry, 'Companion', Companion_getInstance_1322); + defineProp($com$bapis$bilibili$main$community$reply$v1.KContent, 'Companion', Companion_getInstance_1323); + $com$bapis$bilibili$main$community$reply$v1.KPicture = KPicture; + defineProp($com$bapis$bilibili$main$community$reply$v1.KPicture, 'Companion', Companion_getInstance_1324); + $com$bapis$bilibili$main$community$reply$v1.KRichTextNote = KRichTextNote; + defineProp($com$bapis$bilibili$main$community$reply$v1.KRichTextNote, 'Companion', Companion_getInstance_1325); + $com$bapis$bilibili$main$community$reply$v1.KRichText = KRichText; + $com$bapis$bilibili$main$community$reply$v1.KRichText.KItem = KItem_12; + defineProp($com$bapis$bilibili$main$community$reply$v1.KRichText, 'KNote', KNote_getInstance); + defineProp($com$bapis$bilibili$main$community$reply$v1.KRichText, 'KOpus', KOpus_getInstance); + defineProp($com$bapis$bilibili$main$community$reply$v1.KRichText, 'Companion', Companion_getInstance_1326); + $com$bapis$bilibili$main$community$reply$v1.KReplyControl = KReplyControl; + $com$bapis$bilibili$main$community$reply$v1.KReplyControl.KVoteOption = KVoteOption; + $com$bapis$bilibili$main$community$reply$v1.KReplyControl.KVoteOption.KLabelKind = KLabelKind; + $com$bapis$bilibili$main$community$reply$v1.KReplyControl.KVoteOption.KLabelKind.values = values_164; + $com$bapis$bilibili$main$community$reply$v1.KReplyControl.KVoteOption.KLabelKind.valueOf = valueOf_164; + defineProp($com$bapis$bilibili$main$community$reply$v1.KReplyControl.KVoteOption.KLabelKind, 'DEFAULT', KLabelKind_DEFAULT_getInstance); + defineProp($com$bapis$bilibili$main$community$reply$v1.KReplyControl.KVoteOption.KLabelKind, 'RED', KLabelKind_RED_getInstance); + defineProp($com$bapis$bilibili$main$community$reply$v1.KReplyControl.KVoteOption.KLabelKind, 'BLUE', KLabelKind_BLUE_getInstance); + defineProp($com$bapis$bilibili$main$community$reply$v1.KReplyControl.KVoteOption.KLabelKind, 'PLAIN', KLabelKind_PLAIN_getInstance); + defineProp($com$bapis$bilibili$main$community$reply$v1.KReplyControl.KVoteOption.KLabelKind, 'UNRECOGNIZED', KLabelKind_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$main$community$reply$v1.KReplyControl.KVoteOption.KLabelKind, 'Companion', Companion_getInstance_1327); + defineProp($com$bapis$bilibili$main$community$reply$v1.KReplyControl.KVoteOption, 'Companion', Companion_getInstance_1328); + $com$bapis$bilibili$main$community$reply$v1.KReplyControl.KGradeRecord = KGradeRecord; + $com$bapis$bilibili$main$community$reply$v1.KReplyControl.KGradeRecord.KText = KText_3; + defineProp($com$bapis$bilibili$main$community$reply$v1.KReplyControl.KGradeRecord.KText, 'Companion', Companion_getInstance_1329); + defineProp($com$bapis$bilibili$main$community$reply$v1.KReplyControl.KGradeRecord, 'Companion', Companion_getInstance_1330); + $com$bapis$bilibili$main$community$reply$v1.KReplyControl.KEasterEggLabel = KEasterEggLabel; + defineProp($com$bapis$bilibili$main$community$reply$v1.KReplyControl.KEasterEggLabel, 'Companion', Companion_getInstance_1331); + defineProp($com$bapis$bilibili$main$community$reply$v1.KReplyControl, 'Companion', Companion_getInstance_1332); + $com$bapis$bilibili$main$community$reply$v1.KReplyCardLabel = KReplyCardLabel; + $com$bapis$bilibili$main$community$reply$v1.KReplyCardLabel.KType = KType_2; + $com$bapis$bilibili$main$community$reply$v1.KReplyCardLabel.KType.values = values_165; + $com$bapis$bilibili$main$community$reply$v1.KReplyCardLabel.KType.valueOf = valueOf_165; + defineProp($com$bapis$bilibili$main$community$reply$v1.KReplyCardLabel.KType, 'UNDERLINE', KType_UNDERLINE_getInstance); + defineProp($com$bapis$bilibili$main$community$reply$v1.KReplyCardLabel.KType, 'BACKGROUND', KType_BACKGROUND_getInstance); + defineProp($com$bapis$bilibili$main$community$reply$v1.KReplyCardLabel.KType, 'UNRECOGNIZED', KType_UNRECOGNIZED_getInstance_1); + defineProp($com$bapis$bilibili$main$community$reply$v1.KReplyCardLabel.KType, 'Companion', Companion_getInstance_1333); + defineProp($com$bapis$bilibili$main$community$reply$v1.KReplyCardLabel, 'Companion', Companion_getInstance_1334); + $com$bapis$bilibili$main$community$reply$v1.KUrl = KUrl; + $com$bapis$bilibili$main$community$reply$v1.KUrl.KIconPosition = KIconPosition; + $com$bapis$bilibili$main$community$reply$v1.KUrl.KIconPosition.values = values_166; + $com$bapis$bilibili$main$community$reply$v1.KUrl.KIconPosition.valueOf = valueOf_166; + defineProp($com$bapis$bilibili$main$community$reply$v1.KUrl.KIconPosition, 'PREFIX', KIconPosition_PREFIX_getInstance); + defineProp($com$bapis$bilibili$main$community$reply$v1.KUrl.KIconPosition, 'SUFFIX', KIconPosition_SUFFIX_getInstance); + defineProp($com$bapis$bilibili$main$community$reply$v1.KUrl.KIconPosition, 'UNRECOGNIZED', KIconPosition_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$main$community$reply$v1.KUrl.KIconPosition, 'Companion', Companion_getInstance_1335); + $com$bapis$bilibili$main$community$reply$v1.KUrl.KExtra = KExtra; + $com$bapis$bilibili$main$community$reply$v1.KUrl.KExtra.KGoodsShowType = KGoodsShowType; + $com$bapis$bilibili$main$community$reply$v1.KUrl.KExtra.KGoodsShowType.values = values_167; + $com$bapis$bilibili$main$community$reply$v1.KUrl.KExtra.KGoodsShowType.valueOf = valueOf_167; + defineProp($com$bapis$bilibili$main$community$reply$v1.KUrl.KExtra.KGoodsShowType, 'POPUP', KGoodsShowType_POPUP_getInstance); + defineProp($com$bapis$bilibili$main$community$reply$v1.KUrl.KExtra.KGoodsShowType, 'FULL_SCREEN', KGoodsShowType_FULL_SCREEN_getInstance); + defineProp($com$bapis$bilibili$main$community$reply$v1.KUrl.KExtra.KGoodsShowType, 'HALF_SCREEN', KGoodsShowType_HALF_SCREEN_getInstance); + defineProp($com$bapis$bilibili$main$community$reply$v1.KUrl.KExtra.KGoodsShowType, 'UNRECOGNIZED', KGoodsShowType_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$main$community$reply$v1.KUrl.KExtra.KGoodsShowType, 'Companion', Companion_getInstance_1336); + defineProp($com$bapis$bilibili$main$community$reply$v1.KUrl.KExtra, 'Companion', Companion_getInstance_1337); + defineProp($com$bapis$bilibili$main$community$reply$v1.KUrl, 'Companion', Companion_getInstance_1338); + $com$bapis$bilibili$main$community$reply$v1.KTopic = KTopic; + defineProp($com$bapis$bilibili$main$community$reply$v1.KTopic, 'Companion', Companion_getInstance_1339); + $com$bapis$bilibili$main$community$reply$v1.KEmote = KEmote_0; + defineProp($com$bapis$bilibili$main$community$reply$v1.KEmote, 'Companion', Companion_getInstance_1340); + $com$bapis$bilibili$main$community$reply$v1.KVote = KVote_0; + defineProp($com$bapis$bilibili$main$community$reply$v1.KVote, 'Companion', Companion_getInstance_1341); + $com$bapis$bilibili$main$community$reply$v1.KMemberV2 = KMemberV2; + $com$bapis$bilibili$main$community$reply$v1.KMemberV2.KBasic = KBasic; + defineProp($com$bapis$bilibili$main$community$reply$v1.KMemberV2.KBasic, 'Companion', Companion_getInstance_1342); + $com$bapis$bilibili$main$community$reply$v1.KMemberV2.KOfficial = KOfficial; + defineProp($com$bapis$bilibili$main$community$reply$v1.KMemberV2.KOfficial, 'Companion', Companion_getInstance_1343); + $com$bapis$bilibili$main$community$reply$v1.KMemberV2.KVip = KVip_0; + defineProp($com$bapis$bilibili$main$community$reply$v1.KMemberV2.KVip, 'Companion', Companion_getInstance_1344); + $com$bapis$bilibili$main$community$reply$v1.KMemberV2.KGarb = KGarb; + defineProp($com$bapis$bilibili$main$community$reply$v1.KMemberV2.KGarb, 'Companion', Companion_getInstance_1345); + $com$bapis$bilibili$main$community$reply$v1.KMemberV2.KMedal = KMedal; + defineProp($com$bapis$bilibili$main$community$reply$v1.KMemberV2.KMedal, 'Companion', Companion_getInstance_1346); + $com$bapis$bilibili$main$community$reply$v1.KMemberV2.KNft = KNft; + $com$bapis$bilibili$main$community$reply$v1.KMemberV2.KNft.KInteraction = KInteraction_2; + $com$bapis$bilibili$main$community$reply$v1.KMemberV2.KNft.KInteraction.KRegionType = KRegionType; + $com$bapis$bilibili$main$community$reply$v1.KMemberV2.KNft.KInteraction.KRegionType.values = values_168; + $com$bapis$bilibili$main$community$reply$v1.KMemberV2.KNft.KInteraction.KRegionType.valueOf = valueOf_168; + defineProp($com$bapis$bilibili$main$community$reply$v1.KMemberV2.KNft.KInteraction.KRegionType, 'DEFAULT', KRegionType_DEFAULT_getInstance); + defineProp($com$bapis$bilibili$main$community$reply$v1.KMemberV2.KNft.KInteraction.KRegionType, 'MAINLAND', KRegionType_MAINLAND_getInstance); + defineProp($com$bapis$bilibili$main$community$reply$v1.KMemberV2.KNft.KInteraction.KRegionType, 'GAT', KRegionType_GAT_getInstance); + defineProp($com$bapis$bilibili$main$community$reply$v1.KMemberV2.KNft.KInteraction.KRegionType, 'UNRECOGNIZED', KRegionType_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$main$community$reply$v1.KMemberV2.KNft.KInteraction.KRegionType, 'Companion', Companion_getInstance_1347); + $com$bapis$bilibili$main$community$reply$v1.KMemberV2.KNft.KInteraction.KShowStatus = KShowStatus; + $com$bapis$bilibili$main$community$reply$v1.KMemberV2.KNft.KInteraction.KShowStatus.values = values_169; + $com$bapis$bilibili$main$community$reply$v1.KMemberV2.KNft.KInteraction.KShowStatus.valueOf = valueOf_169; + defineProp($com$bapis$bilibili$main$community$reply$v1.KMemberV2.KNft.KInteraction.KShowStatus, 'SHOWDEFAULT', KShowStatus_SHOWDEFAULT_getInstance); + defineProp($com$bapis$bilibili$main$community$reply$v1.KMemberV2.KNft.KInteraction.KShowStatus, 'ZOOMINMAINLAND', KShowStatus_ZOOMINMAINLAND_getInstance); + defineProp($com$bapis$bilibili$main$community$reply$v1.KMemberV2.KNft.KInteraction.KShowStatus, 'RAW', KShowStatus_RAW_getInstance); + defineProp($com$bapis$bilibili$main$community$reply$v1.KMemberV2.KNft.KInteraction.KShowStatus, 'UNRECOGNIZED', KShowStatus_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$main$community$reply$v1.KMemberV2.KNft.KInteraction.KShowStatus, 'Companion', Companion_getInstance_1348); + $com$bapis$bilibili$main$community$reply$v1.KMemberV2.KNft.KInteraction.KRegion = KRegion; + defineProp($com$bapis$bilibili$main$community$reply$v1.KMemberV2.KNft.KInteraction.KRegion, 'Companion', Companion_getInstance_1349); + defineProp($com$bapis$bilibili$main$community$reply$v1.KMemberV2.KNft.KInteraction, 'Companion', Companion_getInstance_1350); + defineProp($com$bapis$bilibili$main$community$reply$v1.KMemberV2.KNft, 'Companion', Companion_getInstance_1351); + $com$bapis$bilibili$main$community$reply$v1.KMemberV2.KSenior = KSenior; + $com$bapis$bilibili$main$community$reply$v1.KMemberV2.KSenior.KStatus = KStatus; + $com$bapis$bilibili$main$community$reply$v1.KMemberV2.KSenior.KStatus.values = values_170; + $com$bapis$bilibili$main$community$reply$v1.KMemberV2.KSenior.KStatus.valueOf = valueOf_170; + defineProp($com$bapis$bilibili$main$community$reply$v1.KMemberV2.KSenior.KStatus, 'NORMAL', KStatus_NORMAL_getInstance); + defineProp($com$bapis$bilibili$main$community$reply$v1.KMemberV2.KSenior.KStatus, 'PENDING', KStatus_PENDING_getInstance); + defineProp($com$bapis$bilibili$main$community$reply$v1.KMemberV2.KSenior.KStatus, 'SENIOR', KStatus_SENIOR_getInstance); + defineProp($com$bapis$bilibili$main$community$reply$v1.KMemberV2.KSenior.KStatus, 'WILL_EXPIRE', KStatus_WILL_EXPIRE_getInstance); + defineProp($com$bapis$bilibili$main$community$reply$v1.KMemberV2.KSenior.KStatus, 'EXPIRED', KStatus_EXPIRED_getInstance); + defineProp($com$bapis$bilibili$main$community$reply$v1.KMemberV2.KSenior.KStatus, 'UNRECOGNIZED', KStatus_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$main$community$reply$v1.KMemberV2.KSenior.KStatus, 'Companion', Companion_getInstance_1352); + defineProp($com$bapis$bilibili$main$community$reply$v1.KMemberV2.KSenior, 'Companion', Companion_getInstance_1353); + $com$bapis$bilibili$main$community$reply$v1.KMemberV2.KContractor = KContractor; + defineProp($com$bapis$bilibili$main$community$reply$v1.KMemberV2.KContractor, 'Companion', Companion_getInstance_1354); + defineProp($com$bapis$bilibili$main$community$reply$v1.KMemberV2, 'Companion', Companion_getInstance_1355); + $com$bapis$bilibili$main$community$reply$v1.KMember = KMember; + $com$bapis$bilibili$main$community$reply$v1.KMember.KNftInteraction = KNftInteraction; + $com$bapis$bilibili$main$community$reply$v1.KMember.KNftInteraction.KRegionType = KRegionType_0; + $com$bapis$bilibili$main$community$reply$v1.KMember.KNftInteraction.KRegionType.values = values_171; + $com$bapis$bilibili$main$community$reply$v1.KMember.KNftInteraction.KRegionType.valueOf = valueOf_171; + defineProp($com$bapis$bilibili$main$community$reply$v1.KMember.KNftInteraction.KRegionType, 'DEFAULT', KRegionType_DEFAULT_getInstance_0); + defineProp($com$bapis$bilibili$main$community$reply$v1.KMember.KNftInteraction.KRegionType, 'MAINLAND', KRegionType_MAINLAND_getInstance_0); + defineProp($com$bapis$bilibili$main$community$reply$v1.KMember.KNftInteraction.KRegionType, 'GAT', KRegionType_GAT_getInstance_0); + defineProp($com$bapis$bilibili$main$community$reply$v1.KMember.KNftInteraction.KRegionType, 'UNRECOGNIZED', KRegionType_UNRECOGNIZED_getInstance_0); + defineProp($com$bapis$bilibili$main$community$reply$v1.KMember.KNftInteraction.KRegionType, 'Companion', Companion_getInstance_1356); + $com$bapis$bilibili$main$community$reply$v1.KMember.KNftInteraction.KShowStatus = KShowStatus_0; + $com$bapis$bilibili$main$community$reply$v1.KMember.KNftInteraction.KShowStatus.values = values_172; + $com$bapis$bilibili$main$community$reply$v1.KMember.KNftInteraction.KShowStatus.valueOf = valueOf_172; + defineProp($com$bapis$bilibili$main$community$reply$v1.KMember.KNftInteraction.KShowStatus, 'SHOWDEFAULT', KShowStatus_SHOWDEFAULT_getInstance_0); + defineProp($com$bapis$bilibili$main$community$reply$v1.KMember.KNftInteraction.KShowStatus, 'ZOOMINMAINLAND', KShowStatus_ZOOMINMAINLAND_getInstance_0); + defineProp($com$bapis$bilibili$main$community$reply$v1.KMember.KNftInteraction.KShowStatus, 'RAW', KShowStatus_RAW_getInstance_0); + defineProp($com$bapis$bilibili$main$community$reply$v1.KMember.KNftInteraction.KShowStatus, 'UNRECOGNIZED', KShowStatus_UNRECOGNIZED_getInstance_0); + defineProp($com$bapis$bilibili$main$community$reply$v1.KMember.KNftInteraction.KShowStatus, 'Companion', Companion_getInstance_1357); + $com$bapis$bilibili$main$community$reply$v1.KMember.KNftInteraction.KRegion = KRegion_0; + defineProp($com$bapis$bilibili$main$community$reply$v1.KMember.KNftInteraction.KRegion, 'Companion', Companion_getInstance_1358); + defineProp($com$bapis$bilibili$main$community$reply$v1.KMember.KNftInteraction, 'Companion', Companion_getInstance_1359); + defineProp($com$bapis$bilibili$main$community$reply$v1.KMember, 'Companion', Companion_getInstance_1360); + $com$bapis$bilibili$main$community$reply$v1.KSearchItemPreHookReq = KSearchItemPreHookReq; + defineProp($com$bapis$bilibili$main$community$reply$v1.KSearchItemPreHookReq, 'Companion', Companion_getInstance_1361); + $com$bapis$bilibili$main$community$reply$v1.KSearchItemPreHookReply = KSearchItemPreHookReply; + defineProp($com$bapis$bilibili$main$community$reply$v1.KSearchItemPreHookReply, 'Companion', Companion_getInstance_1362); + $com$bapis$bilibili$main$community$reply$v1.KSearchItemReq = KSearchItemReq; + defineProp($com$bapis$bilibili$main$community$reply$v1.KSearchItemReq, 'Companion', Companion_getInstance_1363); + $com$bapis$bilibili$main$community$reply$v1.KSearchItemReplyExtraInfo = KSearchItemReplyExtraInfo; + defineProp($com$bapis$bilibili$main$community$reply$v1.KSearchItemReplyExtraInfo, 'Companion', Companion_getInstance_1364); + $com$bapis$bilibili$main$community$reply$v1.KSearchItemReply = KSearchItemReply; + defineProp($com$bapis$bilibili$main$community$reply$v1.KSearchItemReply, 'Companion', Companion_getInstance_1365); + $com$bapis$bilibili$main$community$reply$v1.KSearchItemCursorReq = KSearchItemCursorReq; + defineProp($com$bapis$bilibili$main$community$reply$v1.KSearchItemCursorReq, 'Companion', Companion_getInstance_1366); + $com$bapis$bilibili$main$community$reply$v1.KSearchItemCursorReply = KSearchItemCursorReply; + defineProp($com$bapis$bilibili$main$community$reply$v1.KSearchItemCursorReply, 'Companion', Companion_getInstance_1367); + $com$bapis$bilibili$main$community$reply$v1.KSearchItem = KSearchItem; + $com$bapis$bilibili$main$community$reply$v1.KSearchItem.KItem = KItem_13; + defineProp($com$bapis$bilibili$main$community$reply$v1.KSearchItem, 'KGoods', KGoods_getInstance_0); + defineProp($com$bapis$bilibili$main$community$reply$v1.KSearchItem, 'KVideo', KVideo_getInstance); + defineProp($com$bapis$bilibili$main$community$reply$v1.KSearchItem, 'KArticle', KArticle_getInstance_1); + defineProp($com$bapis$bilibili$main$community$reply$v1.KSearchItem, 'Companion', Companion_getInstance_1368); + $com$bapis$bilibili$main$community$reply$v1.KGoodsSearchItem = KGoodsSearchItem; + defineProp($com$bapis$bilibili$main$community$reply$v1.KGoodsSearchItem, 'Companion', Companion_getInstance_1369); + $com$bapis$bilibili$main$community$reply$v1.KVideoSearchItem = KVideoSearchItem; + $com$bapis$bilibili$main$community$reply$v1.KVideoSearchItem.KVideoItem = KVideoItem; + defineProp($com$bapis$bilibili$main$community$reply$v1.KVideoSearchItem, 'KUgc', KUgc_getInstance_0); + defineProp($com$bapis$bilibili$main$community$reply$v1.KVideoSearchItem, 'KPgc', KPgc_getInstance_0); + defineProp($com$bapis$bilibili$main$community$reply$v1.KVideoSearchItem, 'Companion', Companion_getInstance_1370); + $com$bapis$bilibili$main$community$reply$v1.KUGCVideoSearchItem = KUGCVideoSearchItem; + defineProp($com$bapis$bilibili$main$community$reply$v1.KUGCVideoSearchItem, 'Companion', Companion_getInstance_1371); + $com$bapis$bilibili$main$community$reply$v1.KPGCVideoSearchItem = KPGCVideoSearchItem; + defineProp($com$bapis$bilibili$main$community$reply$v1.KPGCVideoSearchItem, 'Companion', Companion_getInstance_1372); + $com$bapis$bilibili$main$community$reply$v1.KArticleSearchItem = KArticleSearchItem; + defineProp($com$bapis$bilibili$main$community$reply$v1.KArticleSearchItem, 'Companion', Companion_getInstance_1373); + $com$bapis$bilibili$main$community$reply$v1.KOperationTitle = KOperationTitle; + defineProp($com$bapis$bilibili$main$community$reply$v1.KOperationTitle, 'Companion', Companion_getInstance_1374); + $com$bapis$bilibili$main$community$reply$v1.KOperation = KOperation; + $com$bapis$bilibili$main$community$reply$v1.KOperation.KType = KType_3; + $com$bapis$bilibili$main$community$reply$v1.KOperation.KType.values = values_173; + $com$bapis$bilibili$main$community$reply$v1.KOperation.KType.valueOf = valueOf_173; + defineProp($com$bapis$bilibili$main$community$reply$v1.KOperation.KType, 'UNKNOWN', KType_UNKNOWN_getInstance); + defineProp($com$bapis$bilibili$main$community$reply$v1.KOperation.KType, 'NOTE', KType_NOTE_getInstance); + defineProp($com$bapis$bilibili$main$community$reply$v1.KOperation.KType, 'TOPIC', KType_TOPIC_getInstance); + defineProp($com$bapis$bilibili$main$community$reply$v1.KOperation.KType, 'NOTICE', KType_NOTICE_getInstance); + defineProp($com$bapis$bilibili$main$community$reply$v1.KOperation.KType, 'UNRECOGNIZED', KType_UNRECOGNIZED_getInstance_2); + defineProp($com$bapis$bilibili$main$community$reply$v1.KOperation.KType, 'Companion', Companion_getInstance_1375); + defineProp($com$bapis$bilibili$main$community$reply$v1.KOperation, 'Companion', Companion_getInstance_1376); + $com$bapis$bilibili$main$community$reply$v1.KOperationV2 = KOperationV2; + $com$bapis$bilibili$main$community$reply$v1.KOperationV2.KType = KType_4; + $com$bapis$bilibili$main$community$reply$v1.KOperationV2.KType.values = values_174; + $com$bapis$bilibili$main$community$reply$v1.KOperationV2.KType.valueOf = valueOf_174; + defineProp($com$bapis$bilibili$main$community$reply$v1.KOperationV2.KType, 'UNKNOWN', KType_UNKNOWN_getInstance_0); + defineProp($com$bapis$bilibili$main$community$reply$v1.KOperationV2.KType, 'NOTE', KType_NOTE_getInstance_0); + defineProp($com$bapis$bilibili$main$community$reply$v1.KOperationV2.KType, 'TOPIC', KType_TOPIC_getInstance_0); + defineProp($com$bapis$bilibili$main$community$reply$v1.KOperationV2.KType, 'SEARCH', KType_SEARCH_getInstance); + defineProp($com$bapis$bilibili$main$community$reply$v1.KOperationV2.KType, 'UNRECOGNIZED', KType_UNRECOGNIZED_getInstance_3); + defineProp($com$bapis$bilibili$main$community$reply$v1.KOperationV2.KType, 'Companion', Companion_getInstance_1377); + $com$bapis$bilibili$main$community$reply$v1.KOperationV2.KIcon = KIcon; + $com$bapis$bilibili$main$community$reply$v1.KOperationV2.KIcon.KPosition = KPosition; + $com$bapis$bilibili$main$community$reply$v1.KOperationV2.KIcon.KPosition.values = values_175; + $com$bapis$bilibili$main$community$reply$v1.KOperationV2.KIcon.KPosition.valueOf = valueOf_175; + defineProp($com$bapis$bilibili$main$community$reply$v1.KOperationV2.KIcon.KPosition, 'PREFIX', KPosition_PREFIX_getInstance); + defineProp($com$bapis$bilibili$main$community$reply$v1.KOperationV2.KIcon.KPosition, 'SUFFIX', KPosition_SUFFIX_getInstance); + defineProp($com$bapis$bilibili$main$community$reply$v1.KOperationV2.KIcon.KPosition, 'UNRECOGNIZED', KPosition_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$main$community$reply$v1.KOperationV2.KIcon.KPosition, 'Companion', Companion_getInstance_1378); + defineProp($com$bapis$bilibili$main$community$reply$v1.KOperationV2.KIcon, 'Companion', Companion_getInstance_1379); + defineProp($com$bapis$bilibili$main$community$reply$v1.KOperationV2, 'Companion', Companion_getInstance_1380); + $com$bapis$bilibili$main$community$reply$v1.KVoteCard = KVoteCard; + $com$bapis$bilibili$main$community$reply$v1.KVoteCard.KOption = KOption_1; + defineProp($com$bapis$bilibili$main$community$reply$v1.KVoteCard.KOption, 'Companion', Companion_getInstance_1381); + defineProp($com$bapis$bilibili$main$community$reply$v1.KVoteCard, 'Companion', Companion_getInstance_1382); + $com$bapis$bilibili$main$community$reply$v1.KESportsGradeCard = KESportsGradeCard; + defineProp($com$bapis$bilibili$main$community$reply$v1.KESportsGradeCard, 'Companion', Companion_getInstance_1383); + $com$bapis$bilibili$main$community$reply$v1.KAtSearchReq = KAtSearchReq; + defineProp($com$bapis$bilibili$main$community$reply$v1.KAtSearchReq, 'Companion', Companion_getInstance_1384); + $com$bapis$bilibili$main$community$reply$v1.KAtItem = KAtItem; + defineProp($com$bapis$bilibili$main$community$reply$v1.KAtItem, 'Companion', Companion_getInstance_1385); + $com$bapis$bilibili$main$community$reply$v1.KAtGroup = KAtGroup; + $com$bapis$bilibili$main$community$reply$v1.KAtGroup.KType = KType_5; + $com$bapis$bilibili$main$community$reply$v1.KAtGroup.KType.values = values_176; + $com$bapis$bilibili$main$community$reply$v1.KAtGroup.KType.valueOf = valueOf_176; + defineProp($com$bapis$bilibili$main$community$reply$v1.KAtGroup.KType, 'DEFAULT', KType_DEFAULT_getInstance); + defineProp($com$bapis$bilibili$main$community$reply$v1.KAtGroup.KType, 'RECENT', KType_RECENT_getInstance); + defineProp($com$bapis$bilibili$main$community$reply$v1.KAtGroup.KType, 'FOLLOW', KType_FOLLOW_getInstance); + defineProp($com$bapis$bilibili$main$community$reply$v1.KAtGroup.KType, 'FANS', KType_FANS_getInstance); + defineProp($com$bapis$bilibili$main$community$reply$v1.KAtGroup.KType, 'OTHERS', KType_OTHERS_getInstance); + defineProp($com$bapis$bilibili$main$community$reply$v1.KAtGroup.KType, 'UNRECOGNIZED', KType_UNRECOGNIZED_getInstance_4); + defineProp($com$bapis$bilibili$main$community$reply$v1.KAtGroup.KType, 'Companion', Companion_getInstance_1386); + defineProp($com$bapis$bilibili$main$community$reply$v1.KAtGroup, 'Companion', Companion_getInstance_1387); + $com$bapis$bilibili$main$community$reply$v1.KAtSearchReply = KAtSearchReply; + defineProp($com$bapis$bilibili$main$community$reply$v1.KAtSearchReply, 'Companion', Companion_getInstance_1388); + $com$bapis$bilibili$main$community$reply$v1.KReplyInfoReq = KReplyInfoReq; + $com$bapis$bilibili$main$community$reply$v1.KReplyInfoReq.KReplyInfoScene = KReplyInfoScene; + $com$bapis$bilibili$main$community$reply$v1.KReplyInfoReq.KReplyInfoScene.values = values_177; + $com$bapis$bilibili$main$community$reply$v1.KReplyInfoReq.KReplyInfoScene.valueOf = valueOf_177; + defineProp($com$bapis$bilibili$main$community$reply$v1.KReplyInfoReq.KReplyInfoScene, 'INSERT', KReplyInfoScene_INSERT_getInstance); + defineProp($com$bapis$bilibili$main$community$reply$v1.KReplyInfoReq.KReplyInfoScene, 'UNRECOGNIZED', KReplyInfoScene_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$main$community$reply$v1.KReplyInfoReq.KReplyInfoScene, 'Companion', Companion_getInstance_1389); + defineProp($com$bapis$bilibili$main$community$reply$v1.KReplyInfoReq, 'Companion', Companion_getInstance_1390); + $com$bapis$bilibili$main$community$reply$v1.KReplyInfoReply = KReplyInfoReply; + defineProp($com$bapis$bilibili$main$community$reply$v1.KReplyInfoReply, 'Companion', Companion_getInstance_1391); + $com$bapis$bilibili$main$community$reply$v1.KQoeInfo = KQoeInfo; + defineProp($com$bapis$bilibili$main$community$reply$v1.KQoeInfo, 'Companion', Companion_getInstance_1392); + $com$bapis$bilibili$main$community$reply$v1.KForm = KForm; + defineProp($com$bapis$bilibili$main$community$reply$v1.KForm, 'Companion', Companion_getInstance_1393); + $com$bapis$bilibili$main$community$reply$v1.KQoeOption = KQoeOption; + defineProp($com$bapis$bilibili$main$community$reply$v1.KQoeOption, 'Companion', Companion_getInstance_1394); + $com$bapis$bilibili$main$community$reply$v1.KQoeOptionDesc = KQoeOptionDesc; + defineProp($com$bapis$bilibili$main$community$reply$v1.KQoeOptionDesc, 'Companion', Companion_getInstance_1395); + $com$bapis$bilibili$main$community$reply$v1.KQoeScoreItem = KQoeScoreItem; + defineProp($com$bapis$bilibili$main$community$reply$v1.KQoeScoreItem, 'Companion', Companion_getInstance_1396); + $com$bapis$bilibili$main$community$reply$v1.KUserCallbackReq = KUserCallbackReq; + defineProp($com$bapis$bilibili$main$community$reply$v1.KUserCallbackReq, 'Companion', Companion_getInstance_1397); + $com$bapis$bilibili$main$community$reply$v1.KUserCallbackReply = KUserCallbackReply; + defineProp($com$bapis$bilibili$main$community$reply$v1.KUserCallbackReply, 'Companion', Companion_getInstance_1398); + $com$bapis$bilibili$main$community$reply$v1.KShareRepliesInfoReq = KShareRepliesInfoReq; + defineProp($com$bapis$bilibili$main$community$reply$v1.KShareRepliesInfoReq, 'Companion', Companion_getInstance_1399); + $com$bapis$bilibili$main$community$reply$v1.KShareRepliesInfoResp = KShareRepliesInfoResp; + $com$bapis$bilibili$main$community$reply$v1.KShareRepliesInfoResp.KShareExtra = KShareExtra; + defineProp($com$bapis$bilibili$main$community$reply$v1.KShareRepliesInfoResp.KShareExtra, 'Companion', Companion_getInstance_1400); + defineProp($com$bapis$bilibili$main$community$reply$v1.KShareRepliesInfoResp, 'Companion', Companion_getInstance_1401); + $com$bapis$bilibili$main$community$reply$v1.KShareReplyInfo = KShareReplyInfo; + defineProp($com$bapis$bilibili$main$community$reply$v1.KShareReplyInfo, 'Companion', Companion_getInstance_1402); + $com$bapis$bilibili$main$community$reply$v1.KShareReplyTopic = KShareReplyTopic; + defineProp($com$bapis$bilibili$main$community$reply$v1.KShareReplyTopic, 'Companion', Companion_getInstance_1403); + $com$bapis$bilibili$main$community$reply$v1.KSuggestEmotesReq = KSuggestEmotesReq; + defineProp($com$bapis$bilibili$main$community$reply$v1.KSuggestEmotesReq, 'Companion', Companion_getInstance_1404); + $com$bapis$bilibili$main$community$reply$v1.KSuggestEmotesResp = KSuggestEmotesResp; + defineProp($com$bapis$bilibili$main$community$reply$v1.KSuggestEmotesResp, 'Companion', Companion_getInstance_1405); + $com$bapis$bilibili$main$community$reply$v1.KDoVoteReq = KDoVoteReq; + defineProp($com$bapis$bilibili$main$community$reply$v1.KDoVoteReq, 'Companion', Companion_getInstance_1406); + $com$bapis$bilibili$main$community$reply$v1.KDoVoteResp = KDoVoteResp; + defineProp($com$bapis$bilibili$main$community$reply$v1.KDoVoteResp, 'Companion', Companion_getInstance_1407); + $com$bapis$bilibili$main$community$reply$v1.KShareReplyMaterialReq = KShareReplyMaterialReq; + defineProp($com$bapis$bilibili$main$community$reply$v1.KShareReplyMaterialReq, 'Companion', Companion_getInstance_1408); + $com$bapis$bilibili$main$community$reply$v1.KShareReplyMaterialResp = KShareReplyMaterialResp; + $com$bapis$bilibili$main$community$reply$v1.KShareReplyMaterialResp.KArchiveMaterial = KArchiveMaterial_0; + defineProp($com$bapis$bilibili$main$community$reply$v1.KShareReplyMaterialResp.KArchiveMaterial, 'Companion', Companion_getInstance_1409); + $com$bapis$bilibili$main$community$reply$v1.KShareReplyMaterialResp.KDynamicMaterial = KDynamicMaterial_0; + defineProp($com$bapis$bilibili$main$community$reply$v1.KShareReplyMaterialResp.KDynamicMaterial, 'Companion', Companion_getInstance_1410); + $com$bapis$bilibili$main$community$reply$v1.KShareReplyMaterialResp.KArticleMaterial = KArticleMaterial_0; + defineProp($com$bapis$bilibili$main$community$reply$v1.KShareReplyMaterialResp.KArticleMaterial, 'Companion', Companion_getInstance_1411); + $com$bapis$bilibili$main$community$reply$v1.KShareReplyMaterialResp.KSubjectMaterial = KSubjectMaterial; + $com$bapis$bilibili$main$community$reply$v1.KShareReplyMaterialResp.KSubjectMaterial.KItem = KItem_14; + defineProp($com$bapis$bilibili$main$community$reply$v1.KShareReplyMaterialResp.KSubjectMaterial, 'KArchiveMaterial', KArchiveMaterial_getInstance); + defineProp($com$bapis$bilibili$main$community$reply$v1.KShareReplyMaterialResp.KSubjectMaterial, 'KDynamicMaterial', KDynamicMaterial_getInstance); + defineProp($com$bapis$bilibili$main$community$reply$v1.KShareReplyMaterialResp.KSubjectMaterial, 'KArticleMaterial', KArticleMaterial_getInstance); + defineProp($com$bapis$bilibili$main$community$reply$v1.KShareReplyMaterialResp.KSubjectMaterial, 'Companion', Companion_getInstance_1412); + $com$bapis$bilibili$main$community$reply$v1.KShareReplyMaterialResp.KExtraData = KExtraData; + defineProp($com$bapis$bilibili$main$community$reply$v1.KShareReplyMaterialResp.KExtraData, 'Companion', Companion_getInstance_1413); + defineProp($com$bapis$bilibili$main$community$reply$v1.KShareReplyMaterialResp, 'Companion', Companion_getInstance_1414); + $com$bapis$bilibili$main$community$reply$v1.values$factory = values$factory_155; + $com$bapis$bilibili$main$community$reply$v1.values$factory = values$factory_156; + $com$bapis$bilibili$main$community$reply$v1.values$factory = values$factory_157; + $com$bapis$bilibili$main$community$reply$v1.values$factory = values$factory_158; + $com$bapis$bilibili$main$community$reply$v1.values$factory = values$factory_159; + $com$bapis$bilibili$main$community$reply$v1.values$factory = values$factory_160; + $com$bapis$bilibili$main$community$reply$v1.values$factory = values$factory_161; + $com$bapis$bilibili$main$community$reply$v1.values$factory = values$factory_162; + $com$bapis$bilibili$main$community$reply$v1.values$factory = values$factory_163; + $com$bapis$bilibili$main$community$reply$v1.itemNumber$factory = itemNumber$factory_8; + $com$bapis$bilibili$main$community$reply$v1.itemValues$factory = itemValues$factory_8; + $com$bapis$bilibili$main$community$reply$v1.values$factory = values$factory_164; + $com$bapis$bilibili$main$community$reply$v1.values$factory = values$factory_165; + $com$bapis$bilibili$main$community$reply$v1.values$factory = values$factory_166; + $com$bapis$bilibili$main$community$reply$v1.values$factory = values$factory_167; + $com$bapis$bilibili$main$community$reply$v1.values$factory = values$factory_168; + $com$bapis$bilibili$main$community$reply$v1.values$factory = values$factory_169; + $com$bapis$bilibili$main$community$reply$v1.values$factory = values$factory_170; + $com$bapis$bilibili$main$community$reply$v1.values$factory = values$factory_171; + $com$bapis$bilibili$main$community$reply$v1.values$factory = values$factory_172; + $com$bapis$bilibili$main$community$reply$v1.itemNumber$factory = itemNumber$factory_9; + $com$bapis$bilibili$main$community$reply$v1.itemValues$factory = itemValues$factory_9; + $com$bapis$bilibili$main$community$reply$v1.videoItemNumber$factory = videoItemNumber$factory; + $com$bapis$bilibili$main$community$reply$v1.videoItemValues$factory = videoItemValues$factory; + $com$bapis$bilibili$main$community$reply$v1.values$factory = values$factory_173; + $com$bapis$bilibili$main$community$reply$v1.values$factory = values$factory_174; + $com$bapis$bilibili$main$community$reply$v1.values$factory = values$factory_175; + $com$bapis$bilibili$main$community$reply$v1.values$factory = values$factory_176; + $com$bapis$bilibili$main$community$reply$v1.values$factory = values$factory_177; + $com$bapis$bilibili$main$community$reply$v1.itemNumber$factory = itemNumber$factory_10; + $com$bapis$bilibili$main$community$reply$v1.itemValues$factory = itemValues$factory_10; + var $com = _.com || (_.com = {}); + var $com$bapis = $com.bapis || ($com.bapis = {}); + var $com$bapis$bilibili = $com$bapis.bilibili || ($com$bapis.bilibili = {}); + var $com$bapis$bilibili$main = $com$bapis$bilibili.main || ($com$bapis$bilibili.main = {}); + var $com$bapis$bilibili$main$community = $com$bapis$bilibili$main.community || ($com$bapis$bilibili$main.community = {}); + var $com$bapis$bilibili$main$community$reply = $com$bapis$bilibili$main$community.reply || ($com$bapis$bilibili$main$community.reply = {}); + var $com$bapis$bilibili$main$community$reply$v2 = $com$bapis$bilibili$main$community$reply.v2 || ($com$bapis$bilibili$main$community$reply.v2 = {}); + $com$bapis$bilibili$main$community$reply$v2.KMode = KMode_0; + $com$bapis$bilibili$main$community$reply$v2.KMode.values = values_178; + $com$bapis$bilibili$main$community$reply$v2.KMode.valueOf = valueOf_178; + defineProp($com$bapis$bilibili$main$community$reply$v2.KMode, 'DEFAULT', KMode_DEFAULT_getInstance_0); + defineProp($com$bapis$bilibili$main$community$reply$v2.KMode, 'TIME', KMode_TIME_getInstance); + defineProp($com$bapis$bilibili$main$community$reply$v2.KMode, 'HOT', KMode_HOT_getInstance); + defineProp($com$bapis$bilibili$main$community$reply$v2.KMode, 'UNRECOGNIZED', KMode_UNRECOGNIZED_getInstance_0); + defineProp($com$bapis$bilibili$main$community$reply$v2.KMode, 'Companion', Companion_getInstance_1415); + $com$bapis$bilibili$main$community$reply$v2.KUserCallbackScene = KUserCallbackScene_0; + $com$bapis$bilibili$main$community$reply$v2.KUserCallbackScene.values = values_179; + $com$bapis$bilibili$main$community$reply$v2.KUserCallbackScene.valueOf = valueOf_179; + defineProp($com$bapis$bilibili$main$community$reply$v2.KUserCallbackScene, 'DEFAULT', KUserCallbackScene_DEFAULT_getInstance); + defineProp($com$bapis$bilibili$main$community$reply$v2.KUserCallbackScene, 'INSERT', KUserCallbackScene_INSERT_getInstance_0); + defineProp($com$bapis$bilibili$main$community$reply$v2.KUserCallbackScene, 'RECOMMEND_SUPERB_REPLY', KUserCallbackScene_RECOMMEND_SUPERB_REPLY_getInstance_0); + defineProp($com$bapis$bilibili$main$community$reply$v2.KUserCallbackScene, 'UNRECOGNIZED', KUserCallbackScene_UNRECOGNIZED_getInstance_0); + defineProp($com$bapis$bilibili$main$community$reply$v2.KUserCallbackScene, 'Companion', Companion_getInstance_1416); + $com$bapis$bilibili$main$community$reply$v2.KUserCallbackAction = KUserCallbackAction_0; + $com$bapis$bilibili$main$community$reply$v2.KUserCallbackAction.values = values_180; + $com$bapis$bilibili$main$community$reply$v2.KUserCallbackAction.valueOf = valueOf_180; + defineProp($com$bapis$bilibili$main$community$reply$v2.KUserCallbackAction, 'DEFAULT', KUserCallbackAction_DEFAULT_getInstance); + defineProp($com$bapis$bilibili$main$community$reply$v2.KUserCallbackAction, 'DISMISS', KUserCallbackAction_DISMISS_getInstance_0); + defineProp($com$bapis$bilibili$main$community$reply$v2.KUserCallbackAction, 'UNRECOGNIZED', KUserCallbackAction_UNRECOGNIZED_getInstance_0); + defineProp($com$bapis$bilibili$main$community$reply$v2.KUserCallbackAction, 'Companion', Companion_getInstance_1417); + $com$bapis$bilibili$main$community$reply$v2.KEditorIconState = KEditorIconState_0; + $com$bapis$bilibili$main$community$reply$v2.KEditorIconState.values = values_181; + $com$bapis$bilibili$main$community$reply$v2.KEditorIconState.valueOf = valueOf_181; + defineProp($com$bapis$bilibili$main$community$reply$v2.KEditorIconState, 'DEFAULT', KEditorIconState_DEFAULT_getInstance_0); + defineProp($com$bapis$bilibili$main$community$reply$v2.KEditorIconState, 'ENABLE', KEditorIconState_ENABLE_getInstance_0); + defineProp($com$bapis$bilibili$main$community$reply$v2.KEditorIconState, 'DISABLE', KEditorIconState_DISABLE_getInstance_0); + defineProp($com$bapis$bilibili$main$community$reply$v2.KEditorIconState, 'HIDE', KEditorIconState_HIDE_getInstance_0); + defineProp($com$bapis$bilibili$main$community$reply$v2.KEditorIconState, 'UNRECOGNIZED', KEditorIconState_UNRECOGNIZED_getInstance_0); + defineProp($com$bapis$bilibili$main$community$reply$v2.KEditorIconState, 'Companion', Companion_getInstance_1418); + $com$bapis$bilibili$main$community$reply$v2.KSubjectDescriptionReq = KSubjectDescriptionReq; + defineProp($com$bapis$bilibili$main$community$reply$v2.KSubjectDescriptionReq, 'Companion', Companion_getInstance_1419); + $com$bapis$bilibili$main$community$reply$v2.KSubjectDescriptionReply = KSubjectDescriptionReply; + $com$bapis$bilibili$main$community$reply$v2.KSubjectDescriptionReply.KInputConfig = KInputConfig; + $com$bapis$bilibili$main$community$reply$v2.KSubjectDescriptionReply.KInputConfig.KEditorIconConfig = KEditorIconConfig; + defineProp($com$bapis$bilibili$main$community$reply$v2.KSubjectDescriptionReply.KInputConfig.KEditorIconConfig, 'Companion', Companion_getInstance_1420); + $com$bapis$bilibili$main$community$reply$v2.KSubjectDescriptionReply.KInputConfig.KGradePanel = KGradePanel; + $com$bapis$bilibili$main$community$reply$v2.KSubjectDescriptionReply.KInputConfig.KGradePanel.KGrade = KGrade; + defineProp($com$bapis$bilibili$main$community$reply$v2.KSubjectDescriptionReply.KInputConfig.KGradePanel.KGrade, 'Companion', Companion_getInstance_1421); + defineProp($com$bapis$bilibili$main$community$reply$v2.KSubjectDescriptionReply.KInputConfig.KGradePanel, 'Companion', Companion_getInstance_1422); + defineProp($com$bapis$bilibili$main$community$reply$v2.KSubjectDescriptionReply.KInputConfig, 'Companion', Companion_getInstance_1423); + $com$bapis$bilibili$main$community$reply$v2.KSubjectDescriptionReply.KEmoteConfig = KEmoteConfig; + defineProp($com$bapis$bilibili$main$community$reply$v2.KSubjectDescriptionReply.KEmoteConfig, 'Companion', Companion_getInstance_1424); + $com$bapis$bilibili$main$community$reply$v2.KSubjectDescriptionReply.KFilterTag = KFilterTag_0; + defineProp($com$bapis$bilibili$main$community$reply$v2.KSubjectDescriptionReply.KFilterTag, 'Companion', Companion_getInstance_1425); + defineProp($com$bapis$bilibili$main$community$reply$v2.KSubjectDescriptionReply, 'Companion', Companion_getInstance_1426); + $com$bapis$bilibili$main$community$reply$v2.KSubjectID = KSubjectID; + defineProp($com$bapis$bilibili$main$community$reply$v2.KSubjectID, 'Companion', Companion_getInstance_1427); + $com$bapis$bilibili$main$community$reply$v2.KPlayerParams = KPlayerParams; + defineProp($com$bapis$bilibili$main$community$reply$v2.KPlayerParams, 'Companion', Companion_getInstance_1428); + $com$bapis$bilibili$main$community$reply$v2.KUserCallback = KUserCallback; + defineProp($com$bapis$bilibili$main$community$reply$v2.KUserCallback, 'Companion', Companion_getInstance_1429); + $com$bapis$bilibili$main$community$reply$v2.KTextStyle = KTextStyle_0; + $com$bapis$bilibili$main$community$reply$v2.KTextStyle.KFontStyle = KFontStyle_0; + $com$bapis$bilibili$main$community$reply$v2.KTextStyle.KFontStyle.values = values_182; + $com$bapis$bilibili$main$community$reply$v2.KTextStyle.KFontStyle.valueOf = valueOf_182; + defineProp($com$bapis$bilibili$main$community$reply$v2.KTextStyle.KFontStyle, 'NORMAL', KFontStyle_NORMAL_getInstance_0); + defineProp($com$bapis$bilibili$main$community$reply$v2.KTextStyle.KFontStyle, 'BOLD', KFontStyle_BOLD_getInstance_0); + defineProp($com$bapis$bilibili$main$community$reply$v2.KTextStyle.KFontStyle, 'UNRECOGNIZED', KFontStyle_UNRECOGNIZED_getInstance_0); + defineProp($com$bapis$bilibili$main$community$reply$v2.KTextStyle.KFontStyle, 'Companion', Companion_getInstance_1430); + defineProp($com$bapis$bilibili$main$community$reply$v2.KTextStyle, 'Companion', Companion_getInstance_1431); + $com$bapis$bilibili$main$community$reply$v2.KEmptyPage = KEmptyPage_0; + $com$bapis$bilibili$main$community$reply$v2.KEmptyPage.KAction = KAction_0; + $com$bapis$bilibili$main$community$reply$v2.KEmptyPage.KAction.values = values_183; + $com$bapis$bilibili$main$community$reply$v2.KEmptyPage.KAction.valueOf = valueOf_183; + defineProp($com$bapis$bilibili$main$community$reply$v2.KEmptyPage.KAction, 'UNAVAILABLE', KAction_UNAVAILABLE_getInstance_0); + defineProp($com$bapis$bilibili$main$community$reply$v2.KEmptyPage.KAction, 'SHOW_KEYBOARD', KAction_SHOW_KEYBOARD_getInstance_0); + defineProp($com$bapis$bilibili$main$community$reply$v2.KEmptyPage.KAction, 'SEND_REPLY_WITH_BOLD_TEXT', KAction_SEND_REPLY_WITH_BOLD_TEXT_getInstance_0); + defineProp($com$bapis$bilibili$main$community$reply$v2.KEmptyPage.KAction, 'UNRECOGNIZED', KAction_UNRECOGNIZED_getInstance_0); + defineProp($com$bapis$bilibili$main$community$reply$v2.KEmptyPage.KAction, 'Companion', Companion_getInstance_1432); + $com$bapis$bilibili$main$community$reply$v2.KEmptyPage.KText = KText_4; + defineProp($com$bapis$bilibili$main$community$reply$v2.KEmptyPage.KText, 'Companion', Companion_getInstance_1433); + $com$bapis$bilibili$main$community$reply$v2.KEmptyPage.KButton = KButton_7; + defineProp($com$bapis$bilibili$main$community$reply$v2.KEmptyPage.KButton, 'Companion', Companion_getInstance_1434); + defineProp($com$bapis$bilibili$main$community$reply$v2.KEmptyPage, 'Companion', Companion_getInstance_1435); + $com$bapis$bilibili$main$community$reply$v2.KEmote = KEmote_1; + defineProp($com$bapis$bilibili$main$community$reply$v2.KEmote, 'Companion', Companion_getInstance_1436); + $com$bapis$bilibili$main$community$reply$v2.KResource = KResource_0; + $com$bapis$bilibili$main$community$reply$v2.KResource.KBizKind = KBizKind; + $com$bapis$bilibili$main$community$reply$v2.KResource.KBizKind.values = values_184; + $com$bapis$bilibili$main$community$reply$v2.KResource.KBizKind.valueOf = valueOf_184; + defineProp($com$bapis$bilibili$main$community$reply$v2.KResource.KBizKind, 'UNKNOWN', KBizKind_UNKNOWN_getInstance); + defineProp($com$bapis$bilibili$main$community$reply$v2.KResource.KBizKind, 'LIKE_SUCCESS', KBizKind_LIKE_SUCCESS_getInstance); + defineProp($com$bapis$bilibili$main$community$reply$v2.KResource.KBizKind, 'REPLY_SUCCESS', KBizKind_REPLY_SUCCESS_getInstance); + defineProp($com$bapis$bilibili$main$community$reply$v2.KResource.KBizKind, 'REPLY_EASTER_EGG', KBizKind_REPLY_EASTER_EGG_getInstance); + defineProp($com$bapis$bilibili$main$community$reply$v2.KResource.KBizKind, 'UNRECOGNIZED', KBizKind_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$main$community$reply$v2.KResource.KBizKind, 'Companion', Companion_getInstance_1437); + defineProp($com$bapis$bilibili$main$community$reply$v2.KResource, 'Companion', Companion_getInstance_1438); + $com$bapis$bilibili$main$community$reply$v2.values$factory = values$factory_178; + $com$bapis$bilibili$main$community$reply$v2.values$factory = values$factory_179; + $com$bapis$bilibili$main$community$reply$v2.values$factory = values$factory_180; + $com$bapis$bilibili$main$community$reply$v2.values$factory = values$factory_181; + $com$bapis$bilibili$main$community$reply$v2.values$factory = values$factory_182; + $com$bapis$bilibili$main$community$reply$v2.values$factory = values$factory_183; + $com$bapis$bilibili$main$community$reply$v2.values$factory = values$factory_184; + var $com = _.com || (_.com = {}); + var $com$bapis = $com.bapis || ($com.bapis = {}); + var $com$bapis$bilibili = $com$bapis.bilibili || ($com$bapis.bilibili = {}); + var $com$bapis$bilibili$app = $com$bapis$bilibili.app || ($com$bapis$bilibili.app = {}); + var $com$bapis$bilibili$app$show = $com$bapis$bilibili$app.show || ($com$bapis$bilibili$app.show = {}); + var $com$bapis$bilibili$app$show$popular = $com$bapis$bilibili$app$show.popular || ($com$bapis$bilibili$app$show.popular = {}); + var $com$bapis$bilibili$app$show$popular$v1 = $com$bapis$bilibili$app$show$popular.v1 || ($com$bapis$bilibili$app$show$popular.v1 = {}); + $com$bapis$bilibili$app$show$popular$v1.KPopularResultReq = KPopularResultReq; + defineProp($com$bapis$bilibili$app$show$popular$v1.KPopularResultReq, 'Companion', Companion_getInstance_1439); + $com$bapis$bilibili$app$show$popular$v1.KPopularAd = KPopularAd; + defineProp($com$bapis$bilibili$app$show$popular$v1.KPopularAd, 'Companion', Companion_getInstance_1440); + $com$bapis$bilibili$app$show$popular$v1.KPopularReply = KPopularReply; + defineProp($com$bapis$bilibili$app$show$popular$v1.KPopularReply, 'Companion', Companion_getInstance_1441); + $com$bapis$bilibili$app$show$popular$v1.KConfig = KConfig_2; + defineProp($com$bapis$bilibili$app$show$popular$v1.KConfig, 'Companion', Companion_getInstance_1442); + $com$bapis$bilibili$app$show$popular$v1.KEntranceShow = KEntranceShow; + defineProp($com$bapis$bilibili$app$show$popular$v1.KEntranceShow, 'Companion', Companion_getInstance_1443); + $com$bapis$bilibili$app$show$popular$v1.KBubble = KBubble_0; + defineProp($com$bapis$bilibili$app$show$popular$v1.KBubble, 'Companion', Companion_getInstance_1444); + var $com = _.com || (_.com = {}); + var $com$bapis = $com.bapis || ($com.bapis = {}); + var $com$bapis$bilibili = $com$bapis.bilibili || ($com$bapis.bilibili = {}); + var $com$bapis$bilibili$app = $com$bapis$bilibili.app || ($com$bapis$bilibili.app = {}); + var $com$bapis$bilibili$app$viewunite = $com$bapis$bilibili$app.viewunite || ($com$bapis$bilibili$app.viewunite = {}); + var $com$bapis$bilibili$app$viewunite$ugcanymodel = $com$bapis$bilibili$app$viewunite.ugcanymodel || ($com$bapis$bilibili$app$viewunite.ugcanymodel = {}); + $com$bapis$bilibili$app$viewunite$ugcanymodel.KPremiereState = KPremiereState; + $com$bapis$bilibili$app$viewunite$ugcanymodel.KPremiereState.values = values_185; + $com$bapis$bilibili$app$viewunite$ugcanymodel.KPremiereState.valueOf = valueOf_185; + defineProp($com$bapis$bilibili$app$viewunite$ugcanymodel.KPremiereState, 'PREMIERE_NONE', KPremiereState_PREMIERE_NONE_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$ugcanymodel.KPremiereState, 'PREMIERE_BEFORE', KPremiereState_PREMIERE_BEFORE_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$ugcanymodel.KPremiereState, 'PREMIERE_IN', KPremiereState_PREMIERE_IN_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$ugcanymodel.KPremiereState, 'PREMIERE_AFTER', KPremiereState_PREMIERE_AFTER_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$ugcanymodel.KPremiereState, 'UNRECOGNIZED', KPremiereState_UNRECOGNIZED_getInstance); + defineProp($com$bapis$bilibili$app$viewunite$ugcanymodel.KPremiereState, 'Companion', Companion_getInstance_1445); + $com$bapis$bilibili$app$viewunite$ugcanymodel.KViewUgcAny = KViewUgcAny; + defineProp($com$bapis$bilibili$app$viewunite$ugcanymodel.KViewUgcAny, 'Companion', Companion_getInstance_1446); + $com$bapis$bilibili$app$viewunite$ugcanymodel.KAiExtra = KAiExtra; + defineProp($com$bapis$bilibili$app$viewunite$ugcanymodel.KAiExtra, 'Companion', Companion_getInstance_1447); + $com$bapis$bilibili$app$viewunite$ugcanymodel.KUgcSeasonConf = KUgcSeasonConf; + defineProp($com$bapis$bilibili$app$viewunite$ugcanymodel.KUgcSeasonConf, 'Companion', Companion_getInstance_1448); + $com$bapis$bilibili$app$viewunite$ugcanymodel.KElecRank = KElecRank; + defineProp($com$bapis$bilibili$app$viewunite$ugcanymodel.KElecRank, 'Companion', Companion_getInstance_1449); + $com$bapis$bilibili$app$viewunite$ugcanymodel.KElecRankItem = KElecRankItem; + defineProp($com$bapis$bilibili$app$viewunite$ugcanymodel.KElecRankItem, 'Companion', Companion_getInstance_1450); + $com$bapis$bilibili$app$viewunite$ugcanymodel.KDislike = KDislike_1; + defineProp($com$bapis$bilibili$app$viewunite$ugcanymodel.KDislike, 'Companion', Companion_getInstance_1451); + $com$bapis$bilibili$app$viewunite$ugcanymodel.KDislikeReason = KDislikeReason_1; + defineProp($com$bapis$bilibili$app$viewunite$ugcanymodel.KDislikeReason, 'Companion', Companion_getInstance_1452); + $com$bapis$bilibili$app$viewunite$ugcanymodel.KPremiereResource = KPremiereResource; + defineProp($com$bapis$bilibili$app$viewunite$ugcanymodel.KPremiereResource, 'Companion', Companion_getInstance_1453); + $com$bapis$bilibili$app$viewunite$ugcanymodel.KPremiereReserve = KPremiereReserve; + defineProp($com$bapis$bilibili$app$viewunite$ugcanymodel.KPremiereReserve, 'Companion', Companion_getInstance_1454); + $com$bapis$bilibili$app$viewunite$ugcanymodel.KPremiereText = KPremiereText; + defineProp($com$bapis$bilibili$app$viewunite$ugcanymodel.KPremiereText, 'Companion', Companion_getInstance_1455); + $com$bapis$bilibili$app$viewunite$ugcanymodel.KPremiere = KPremiere; + defineProp($com$bapis$bilibili$app$viewunite$ugcanymodel.KPremiere, 'Companion', Companion_getInstance_1456); + $com$bapis$bilibili$app$viewunite$ugcanymodel.values$factory = values$factory_185; + var $kntr = _.kntr || (_.kntr = {}); + var $kntr$utils = $kntr.utils || ($kntr.utils = {}); + $kntr$utils.JsMap = JsMap; + $kntr$utils.mapToJsMap = mapToJsMap; + $kntr$utils.listToArray = listToArray; + $kntr$utils.arrayToList = arrayToList; + $kntr$utils.stringToLong = stringToLong; + $kntr$utils.longToString = longToString; + $kntr$utils.suggestionResult3ReqToByteArray = suggestionResult3ReqToByteArray; + $kntr$utils.suggestionResult3ReplyFromByteArray = suggestionResult3ReplyFromByteArray; + $kntr$utils.defaultWordsReqToByteArray = defaultWordsReqToByteArray; + $kntr$utils.defaultWordsReplyFromByteArray = defaultWordsReplyFromByteArray; + $kntr$utils.searchAllRequestToByteArray = searchAllRequestToByteArray; + $kntr$utils.searchAllResponseFromByteArray = searchAllResponseFromByteArray; + $kntr$utils.searchByTypeRequestToByteArray = searchByTypeRequestToByteArray; + $kntr$utils.searchByTypeResponseFromByteArray = searchByTypeResponseFromByteArray; + $kntr$utils.playViewUniteReqToByteArray = playViewUniteReqToByteArray; + $kntr$utils.playViewUniteReplyFromByteArray = playViewUniteReplyFromByteArray; + $kntr$utils.viewReqToByteArray = viewReqToByteArray; + $kntr$utils.viewReplyFromByteArray = viewReplyFromByteArray; + $kntr$utils.mainListReqToByteArray = mainListReqToByteArray; + $kntr$utils.mainListReplyFromByteArray = mainListReplyFromByteArray; + $kntr$utils.detailListReqToByteArray = detailListReqToByteArray; + $kntr$utils.detailListReplyFromByteArray = detailListReplyFromByteArray; + $kntr$utils.dialogListReqToByteArray = dialogListReqToByteArray; + $kntr$utils.dialogListReplyFromByteArray = dialogListReplyFromByteArray; + $kntr$utils.replyInfoReqToByteArray = replyInfoReqToByteArray; + $kntr$utils.replyInfoReplyFromByteArray = replyInfoReplyFromByteArray; + $kntr$utils.suggestEmotesReqToByteArray = suggestEmotesReqToByteArray; + $kntr$utils.suggestEmotesRespFromByteArray = suggestEmotesRespFromByteArray; + $kntr$utils.subjectDescriptionReqToByteArray = subjectDescriptionReqToByteArray; + $kntr$utils.subjectDescriptionReplyFromByteArray = subjectDescriptionReplyFromByteArray; + $kntr$utils.popularResultReqToByteArray = popularResultReqToByteArray; + $kntr$utils.popularReplyFromByteArray = popularReplyFromByteArray; + $kntr$utils.historyTabReqToByteArray = historyTabReqToByteArray; + $kntr$utils.historyTabReplyFromByteArray = historyTabReplyFromByteArray; + $kntr$utils.cursorV2ReqToByteArray = cursorV2ReqToByteArray; + $kntr$utils.cursorV2ReplyFromByteArray = cursorV2ReplyFromByteArray; + $kntr$utils.dynAllReqToByteArray = dynAllReqToByteArray; + $kntr$utils.dynAllReplyFromByteArray = dynAllReplyFromByteArray; + $kntr$utils.relatesFeedReqToByteArray = relatesFeedReqToByteArray; + $kntr$utils.relatesFeedReplyFromByteArray = relatesFeedReplyFromByteArray; + } + $jsExportAll$(_); + //endregion + return _; +})); + +//# sourceMappingURL=kntr.js.map -- Gitee From e19ca2ee0c55202ee66fb440be87a23e318fd67a Mon Sep 17 00:00:00 2001 From: liuzhen Date: Sat, 9 Dec 2023 20:31:19 +0800 Subject: [PATCH 2/4] optimize memory --- arkguard/src/ArkObfuscator.ts | 52 +++++++++--- .../rename/RenameIdentifierTransformer.ts | 83 +++++++++++-------- arkguard/src/utils/ScopeAnalyzer.ts | 26 +++--- 3 files changed, 105 insertions(+), 56 deletions(-) diff --git a/arkguard/src/ArkObfuscator.ts b/arkguard/src/ArkObfuscator.ts index ed4795d8c9..83cc5fe7af 100644 --- a/arkguard/src/ArkObfuscator.ts +++ b/arkguard/src/ArkObfuscator.ts @@ -95,19 +95,41 @@ export class ArkObfuscator { } /** - * init ArkObfuscator according to user config - * should be called after constructor + * desc: local user config is first if local config and config both exist + * @param config + * @private */ - public init(config?: IOptions): boolean { + private resolveConfig(config?: IOptions): boolean { if (!this.mConfigPath && !config) { + console.error("config file is not found and no given config."); return false; } + this.mCustomProfiles = config; if (this.mConfigPath) { - config = FileUtils.readFileAsJson(this.mConfigPath); + const localConfig = FileUtils.readFileAsJson(this.mConfigPath); + if (localConfig != undefined) { + this.mCustomProfiles = localConfig; + } } - this.mCustomProfiles = config; + return this.mCustomProfiles != undefined; + } + + /** + * init ArkObfuscator according to user config + * should be called after constructor + */ + public init(config?: IOptions): boolean { + if (!this.resolveConfig(config)) { + console.error("config is error."); + return false; + } + + if (!this.mCustomProfiles.mOutputDir) { + console.error("output directory is not declare in config file."); + return false; + } if (this.mCustomProfiles.mCompact) { this.mTextWriter = createObfTextSingleLineWriter(); @@ -140,9 +162,10 @@ export class ArkObfuscator { this.mCustomProfiles.mOutputDir = path.join(path.dirname(this.mConfigPath), this.mCustomProfiles.mOutputDir); } - if (this.mCustomProfiles.mOutputDir && !fs.existsSync(this.mCustomProfiles.mOutputDir)) { + if (!fs.existsSync(this.mCustomProfiles.mOutputDir)) { fs.mkdirSync(this.mCustomProfiles.mOutputDir); } + readProjectProperties(this.mSourceFiles, this.mCustomProfiles); this.readPropertyCache(this.mCustomProfiles.mOutputDir); @@ -197,7 +220,7 @@ export class ArkObfuscator { } private readNameCache(sourceFile: string, outputDir: string): void { - if (!this.mCustomProfiles.mNameObfuscation.mEnable || !this.mCustomProfiles.mEnableNameCache) { + if (!this.mCustomProfiles.mNameObfuscation?.mEnable || !this.mCustomProfiles.mEnableNameCache) { return; } @@ -208,7 +231,7 @@ export class ArkObfuscator { } private readPropertyCache(outputDir: string): void { - if (!this.mCustomProfiles.mNameObfuscation.mRenameProperties || !this.mCustomProfiles.mEnableNameCache) { + if (!this.mCustomProfiles.mNameObfuscation?.mRenameProperties || !this.mCustomProfiles.mEnableNameCache) { return; } @@ -227,7 +250,9 @@ export class ArkObfuscator { } private producePropertyCache(outputDir: string): void { - if (this.mCustomProfiles.mNameObfuscation.mRenameProperties && this.mCustomProfiles.mEnableNameCache) { + if (this.mCustomProfiles.mNameObfuscation && + this.mCustomProfiles.mNameObfuscation.mRenameProperties && + this.mCustomProfiles.mEnableNameCache) { const propertyCachePath: string = path.join(outputDir, PROPERTY_CACHE_FILE); writeCache(renamePropertyModule.globalMangledTable, propertyCachePath); } @@ -313,14 +338,14 @@ export class ArkObfuscator { if (outputDir && mixedInfo) { // the writing file is for the ut. const testCasesRootPath = path.join(__dirname, '../', 'test/grammar'); - let relativePath = ''; - let resultPath = ''; + let relativePath; if (this.mCustomProfiles.mRenameFileName?.mEnable && mixedInfo.filePath) { relativePath = mixedInfo.filePath.replace(testCasesRootPath, ''); } else { relativePath = sourceFilePath.replace(testCasesRootPath, ''); } - resultPath = path.join(outputDir, relativePath); + + let resultPath = path.join(outputDir, relativePath); fs.mkdirSync(path.dirname(resultPath), {recursive: true}); fs.writeFileSync(resultPath, mixedInfo.content); @@ -403,7 +428,10 @@ export class ArkObfuscator { if (renameIdentifierModule.nameCache) { renameIdentifierModule.nameCache.clear(); } + + renameIdentifierModule.historyNameCache = undefined; return result; } } + export {ApiExtractor}; diff --git a/arkguard/src/transformers/rename/RenameIdentifierTransformer.ts b/arkguard/src/transformers/rename/RenameIdentifierTransformer.ts index f6b43289b4..42b88de735 100644 --- a/arkguard/src/transformers/rename/RenameIdentifierTransformer.ts +++ b/arkguard/src/transformers/rename/RenameIdentifierTransformer.ts @@ -42,7 +42,6 @@ import { isEnumScope, isInterfaceScope, isObjectLiteralScope, - mangledIdentifierNames } from '../../utils/ScopeAnalyzer'; import type { @@ -129,8 +128,8 @@ namespace secharmony { if (nameCache === undefined) { nameCache = new Map(); } - let root: Scope = manager.getRootScope(); + let root: Scope = manager.getRootScope(); renameInScope(root); // collect all identifiers of shadow sourceFile @@ -150,8 +149,8 @@ namespace secharmony { renameNamesInScope(scope); let subScope = undefined; - for (let index = 0; index < scope.children.length; index++) { - subScope = scope.children[index]; + while (scope.children.length > 0) { + subScope = scope.children.pop(); renameInScope(subScope); subScope = undefined; } @@ -163,12 +162,9 @@ namespace secharmony { } scope.defs.forEach((def) => { - let parentScope = scope; - while (parentScope) { - if (parentScope.importNames && parentScope.importNames.has(def.name)) { - scope.defs.delete(def); - } - parentScope = parentScope.parent; + if (scope.importNames && scope.importNames.has(def.name)) { + scope.defs.delete(def); + scope.mangledNames.add(def.name); } }); @@ -177,7 +173,6 @@ namespace secharmony { } function renames(scope: Scope, defs: Set, generator: INameGenerator): void { - const localCache: Map = new Map(); findNoSymbolIdentifiers(scope); defs.forEach((def) => { @@ -185,7 +180,7 @@ namespace secharmony { let mangled: string = original; // No allow to rename reserved names. if (reservedNames.includes(original) || scope.exportNames.has(def.name) || isSkippedGlobal(openTopLevel, scope)) { - mangledIdentifierNames.add(mangled); + scope.mangledNames.add(mangled); mangledSymbolNames.set(def, mangled); return; } @@ -200,15 +195,13 @@ namespace secharmony { if (specifyName) { mangled = specifyName; } else { - const sameMangled: string = localCache.get(original); - mangled = sameMangled ? sameMangled : getMangled(scope, generator); + mangled = getMangled(scope, generator); } // add new names to name cache nameCache.set(path, mangled); - mangledIdentifierNames.add(mangled); + scope.mangledNames.add(mangled); mangledSymbolNames.set(def, mangled); - localCache.set(original, mangled); }); } @@ -228,6 +221,45 @@ namespace secharmony { return isObjectLiteralScope(scope); } + function searchMangledInParent(scope: Scope, name: string): boolean { + let found: boolean = false; + let parentScope = scope; + while (parentScope) { + if (parentScope.mangledNames.has(name)) { + found = true; + break; + } + + parentScope = parentScope.parent; + } + + return found; + } + + function searchMangledInChildScope(scope: Scope, name: string): boolean { + let found: boolean = false; + + let search = (childScope: Scope): void => { + if (found) { + return; + } + + if (childScope.mangledNames.has(name)) { + found = true; + return; + } + + childScope.children.forEach((child) => { + search(child); + }); + }; + + scope.children.forEach((child) => { + search(child); + }); + return found; + } + function getMangled(scope: Scope, localGenerator: INameGenerator): string { let mangled: string = ''; do { @@ -238,11 +270,6 @@ namespace secharmony { continue; } - if (scope.importNames && scope.importNames.has(mangled)) { - mangled = ''; - continue; - } - if (scope.exportNames && scope.exportNames.has(mangled)) { mangled = ''; continue; @@ -253,19 +280,9 @@ namespace secharmony { continue; } - // the anme has already been generated in the current scope - if (mangledIdentifierNames.has(mangled)) { + if (searchMangledInParent(scope, mangled) || searchMangledInChildScope(scope, mangled)) { mangled = ''; } - - let parentScope = scope.parent; - while (parentScope) { - if (parentScope.mangledNames.has(mangled) || (parentScope.importNames && parentScope.importNames.has(mangled))) { - mangled = ''; - break; - } - parentScope = parentScope.parent; - } } while (mangled === ''); return mangled; @@ -346,7 +363,7 @@ namespace secharmony { const sym: Symbol | undefined = checker.getSymbolAtLocation(targetNode); if (!sym) { - mangledIdentifierNames.add((targetNode as Identifier).escapedText.toString()); + scope.mangledNames.add((targetNode as Identifier).escapedText.toString()); } }; diff --git a/arkguard/src/utils/ScopeAnalyzer.ts b/arkguard/src/utils/ScopeAnalyzer.ts index 5aec6b812e..11c7c1d93f 100644 --- a/arkguard/src/utils/ScopeAnalyzer.ts +++ b/arkguard/src/utils/ScopeAnalyzer.ts @@ -106,7 +106,6 @@ namespace secharmony { return scope.kind === ScopeKind.OBJECT_LITERAL; } - export const mangledIdentifierNames: Set = new Set(); /** * Structure of a scope */ @@ -155,6 +154,8 @@ namespace secharmony { exportNames?: Set; + mangledNames?: Set; + /** * add a sub scope to current scope * @@ -230,6 +231,7 @@ namespace secharmony { 'loc': loc, 'importNames': importNames, 'exportNames': exportNames, + 'mangledNames': mangledNames, addChild, addDefinition, addLabel, @@ -634,16 +636,18 @@ namespace secharmony { const visitParam = (param: ParameterDeclaration): void => { const modifiers = getModifiers(param); - if (modifiers && modifiers.length > 0) { - const hasParameterPropertyModifier: boolean = modifiers.find(modifier => isParameterPropertyModifier(modifier)) !== undefined; - if (isIdentifier(param.name) && hasParameterPropertyModifier) { - current.defs.forEach((def) => { - if (def.name === param.name.getText()) { - current.defs.delete(def); - mangledIdentifierNames.add(def.name); - } - }); - } + if (!modifiers || modifiers.length <= 0) { + return; + } + + const findRet = modifiers.find(modifier => isParameterPropertyModifier(modifier)); + if (isIdentifier(param.name) && findRet !== undefined) { + current.defs.forEach((def) => { + if (def.name === param.name.getText()) { + current.defs.delete(def); + current.mangledNames.add(def.name); + } + }); } }; -- Gitee From b1b4b863312c5432e3f03cbc7400a361fed60c27 Mon Sep 17 00:00:00 2001 From: liuzhen Date: Sat, 9 Dec 2023 21:45:07 +0800 Subject: [PATCH 3/4] optimize memory --- .../rename/RenameIdentifierTransformer.ts | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/arkguard/src/transformers/rename/RenameIdentifierTransformer.ts b/arkguard/src/transformers/rename/RenameIdentifierTransformer.ts index 42b88de735..3215b38c23 100644 --- a/arkguard/src/transformers/rename/RenameIdentifierTransformer.ts +++ b/arkguard/src/transformers/rename/RenameIdentifierTransformer.ts @@ -84,7 +84,7 @@ namespace secharmony { return renameIdentifierFactory; function renameIdentifierFactory(context: TransformationContext): Transformer { - let reservedNames: string[] = [...(profile?.mReservedNames ?? []), 'this', '__global']; + let reservedNames: string[] = ['this', '__global']; let mangledSymbolNames: Map = new Map(); let mangledLabelNames: Map = new Map(); @@ -121,10 +121,6 @@ namespace secharmony { checker = TypeUtils.createChecker(shadowSourceAst); manager.analyze(shadowSourceAst, checker); - manager.getReservedNames().forEach((name) => { - reservedNames.push(name); - }); - if (nameCache === undefined) { nameCache = new Map(); } @@ -179,7 +175,11 @@ namespace secharmony { const original: string = def.name; let mangled: string = original; // No allow to rename reserved names. - if (reservedNames.includes(original) || scope.exportNames.has(def.name) || isSkippedGlobal(openTopLevel, scope)) { + if (reservedNames.includes(original) || + profile.mReservedNames?.includes(original) || + manager.getReservedNames().has(original) || + scope.exportNames.has(def.name) || + isSkippedGlobal(openTopLevel, scope)) { scope.mangledNames.add(mangled); mangledSymbolNames.set(def, mangled); return; @@ -265,7 +265,9 @@ namespace secharmony { do { mangled = localGenerator.getName()!; // if it is a globally reserved name, it needs to be regenerated - if (reservedNames.includes(mangled)) { + if (reservedNames.includes(mangled) || + profile.mReservedNames?.includes(mangled) || + manager.getReservedNames().has(mangled)) { mangled = ''; continue; } -- Gitee From e6e1366ace997e65f70e97846ac8ce074631b119 Mon Sep 17 00:00:00 2001 From: liuzhen Date: Sun, 10 Dec 2023 16:51:29 +0800 Subject: [PATCH 4/4] speed up for big file --- .../rename/RenameIdentifierTransformer.ts | 26 +-------------- arkguard/src/utils/ScopeAnalyzer.ts | 32 ++++++++++++------- 2 files changed, 22 insertions(+), 36 deletions(-) diff --git a/arkguard/src/transformers/rename/RenameIdentifierTransformer.ts b/arkguard/src/transformers/rename/RenameIdentifierTransformer.ts index 3215b38c23..0662a88aa5 100644 --- a/arkguard/src/transformers/rename/RenameIdentifierTransformer.ts +++ b/arkguard/src/transformers/rename/RenameIdentifierTransformer.ts @@ -236,30 +236,6 @@ namespace secharmony { return found; } - function searchMangledInChildScope(scope: Scope, name: string): boolean { - let found: boolean = false; - - let search = (childScope: Scope): void => { - if (found) { - return; - } - - if (childScope.mangledNames.has(name)) { - found = true; - return; - } - - childScope.children.forEach((child) => { - search(child); - }); - }; - - scope.children.forEach((child) => { - search(child); - }); - return found; - } - function getMangled(scope: Scope, localGenerator: INameGenerator): string { let mangled: string = ''; do { @@ -282,7 +258,7 @@ namespace secharmony { continue; } - if (searchMangledInParent(scope, mangled) || searchMangledInChildScope(scope, mangled)) { + if (searchMangledInParent(scope, mangled) || manager.getRootScope().constructorReservedParams.has(mangled)) { mangled = ''; } } while (mangled === ''); diff --git a/arkguard/src/utils/ScopeAnalyzer.ts b/arkguard/src/utils/ScopeAnalyzer.ts index 11c7c1d93f..65ad8b37ae 100644 --- a/arkguard/src/utils/ScopeAnalyzer.ts +++ b/arkguard/src/utils/ScopeAnalyzer.ts @@ -41,7 +41,6 @@ import type { ImportSpecifier, InterfaceDeclaration, LabeledStatement, - Modifier, ModuleDeclaration, Node, ObjectBindingPattern, @@ -156,6 +155,8 @@ namespace secharmony { mangledNames?: Set; + constructorReservedParams?: Set; + /** * add a sub scope to current scope * @@ -216,6 +217,8 @@ namespace secharmony { let mangledNames: Set = new Set(); + let constructorReservedParams: Set = new Set(); + // location path let loc: string = parent?.loc ? parent.loc + '#' + scopeName : scopeName; @@ -232,6 +235,7 @@ namespace secharmony { 'importNames': importNames, 'exportNames': exportNames, 'mangledNames': mangledNames, + 'constructorReservedParams': constructorReservedParams, addChild, addDefinition, addLabel, @@ -307,6 +311,7 @@ namespace secharmony { * get reserved names like ViewPU component class name */ getReservedNames(): Set; + /** * do scope analysis * @@ -612,9 +617,9 @@ namespace secharmony { * @param node */ function analyzeModule(node: ModuleDeclaration): void { - /** - * if it is an anonymous scope, generate the scope name with a number, - * which is based on the order of its child scopes in the upper scope + /** + * if it is an anonymous scope, generate the scope name with a number, + * which is based on the order of its child scopes in the upper scope */ let scopeName: string = node.name.text ?? '$' + current.children.length; current = createScope(scopeName, node, ScopeKind.MODULE, true, current); @@ -641,14 +646,19 @@ namespace secharmony { } const findRet = modifiers.find(modifier => isParameterPropertyModifier(modifier)); - if (isIdentifier(param.name) && findRet !== undefined) { - current.defs.forEach((def) => { - if (def.name === param.name.getText()) { - current.defs.delete(def); - current.mangledNames.add(def.name); - } - }); + if (!isIdentifier(param.name) || findRet == undefined) { + return; } + + current.defs.forEach((def) => { + if (def.name !== param.name.getText()) { + return; + } + + current.defs.delete(def); + current.mangledNames.add(def.name); + root.constructorReservedParams.add(def.name); + }); }; node.parameters.forEach((param) => { -- Gitee